/* * JTSage-DateBox-5.2.0 (jqm) * For: {"bootstrap-v4":"4.3.1","bootstrap-v3":"3.4.1","zurb-foundation":"6.5.3","bulma":"0.7.4","jquery-mobile":"1.4.5","fomantic-ui":"2.7.2","uikit":"3.0.3","noframe":"0.0.1"} * Date: 2019-10-18T19:35:01.481Z * http://datebox.jtsage.dev/ * https://github.com/jtsage/jtsage-datebox * * Copyright 2010, 2019 JTSage. and other contributors * Released under the MIT license. * https://github.com/jtsage/jtsage-datebox/blob/master/LICENSE.txt * */ if (typeof Object.assign != "function") { Object.defineProperty(Object, "assign", { value: function assign(target, varArgs) { "use strict"; if (target == null) { throw new TypeError("Cannot convert undefined or null to object"); } var to = Object(target); for (var index = 1; index < arguments.length; index++) { var nextSource = arguments[index]; if (nextSource != null) { for (var nextKey in nextSource) { if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey]; } } } } return to; }, writable: true, configurable: true }); } (function($) { $.widget("jtsage.datebox", { initSelector: "input[data-role='datebox']", options: { mode: false, hideInput: false, lockInput: true, safeEdit: true, controlWidth: "290px", controlWidthImp: "", breakpointWidth: "567px", zindex: "1100", clickEvent: "vclick", disableWheel: false, useKinetic: true, flipSizeOverride: false, defaultValue: false, showInitialValue: false, linkedField: false, linkedFieldFormat: "%J", displayMode: "dropdown", displayDropdownPosition: "bottomRight", displayInlinePosition: "center", displayForcePosition: false, dismissOutsideClick: true, dismissOnEscape: false, useHeader: true, useImmediate: false, useButton: true, buttonIcon: false, useFocus: false, useSetButton: true, useCancelButton: false, useTodayButton: false, closeTodayButton: false, useTomorrowButton: false, closeTomorrowButton: false, useClearButton: false, useCollapsedBut: false, usePlaceholder: false, headerFollowsPlaceholder: true, headerFollowsTitle: true, headerFollowsLabel: true, beforeOpenCallback: false, beforeOpenCallbackArgs: [], openCallback: false, openCallbackArgs: [], closeCallback: false, closeCallbackArgs: [], runOnBlurCallback: false, startOffsetYears: false, startOffsetMonths: false, startOffsetDays: false, afterToday: false, beforeToday: false, notToday: false, maxDate: false, minDate: false, maxDays: false, minDays: false, maxYear: false, minYear: false, blackDates: false, blackDatesRec: false, blackDays: false, whiteDates: false, enableDates: false, validHours: false, minHour: false, maxHour: false, minTime: false, maxTime: false, maxDur: false, minDur: false, minuteStep: 1, minuteStepRound: 0, twoDigitYearCutoff: 38, flipboxLensAdjust: false, rolloverMode: { m: true, d: true, h: true, i: true, s: true }, useLang: "default", lang: { default: { setDateButtonLabel: "Set Date", setTimeButtonLabel: "Set Time", setDurationButtonLabel: "Set Duration", todayButtonLabel: "Jump to Today", tomorrowButtonLabel: "Jump to Tomorrow", titleDateDialogLabel: "Set Date", titleTimeDialogLabel: "Set Time", daysOfWeek: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], daysOfWeekShort: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], monthsOfYear: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], monthsOfYearShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], durationLabel: [ "Days", "Hours", "Minutes", "Seconds" ], durationDays: [ "Day", "Days" ], timeFormat: 24, headerFormat: "%A, %B %-d, %Y", tooltip: "Open Date Picker", nextMonth: "Next Month", prevMonth: "Previous Month", dateFieldOrder: [ "m", "d", "y" ], timeFieldOrder: [ "h", "i", "a" ], datetimeFieldOrder: [ "y", "m", "d", "h", "i", "s", "a" ], slideFieldOrder: [ "y", "m", "d" ], dateFormat: "%Y-%m-%d", datetimeFormat: "%Y-%m-%dT%k:%M:%S", useArabicIndic: false, isRTL: false, calStartDay: 0, clearButton: "Clear", cancelButton: "Cancel", durationOrder: [ "d", "h", "i", "s" ], meridiem: [ "AM", "PM" ], timeOutput: "%k:%M", durationFormat: "%Dd %DA, %Dl:%DM:%DS", calDateListLabel: "Other Dates", calHeaderFormat: "%B %Y" } }, theme_clearBtn: [ "recycle", "a" ], theme_closeBtn: [ "check", "a" ], theme_cancelBtn: [ "delete", "a" ], theme_tomorrowBtn: [ "action", "a" ], theme_todayBtn: [ "action", "a" ], theme_dropdownContainer: "ui-body-a", theme_modalContainer: "ui-body-a", theme_inlineContainer: "ui-body-a", theme_headerTheme: "inherit", theme_headerBtn: [ "delete", "a" ], theme_openButton: false, theme_cal_Today: "b", theme_cal_DayHigh: "b", theme_cal_Selected: "active", theme_cal_DateHigh: "b", theme_cal_DateHighAlt: "b", theme_cal_DateHighRec: "b", theme_cal_Default: "a", theme_cal_OutOfBounds: "a", theme_cal_NextBtn: [ "plus", "a" ], theme_cal_PrevBtn: [ "minus", "a" ], theme_cal_Pickers: "a", theme_cal_DateList: "a", theme_dbox_NextBtn: [ "plus", "a" ], theme_dbox_PrevBtn: [ "minus", "a" ], theme_dbox_Inputs: "inherit", theme_fbox_Selected: "a ui-flipswitch-active", theme_fbox_Default: "a", theme_fbox_Forbidden: "a ui-disabled", theme_fbox_RollHeight: "135px", theme_slide_Today: "b", theme_slide_DayHigh: "b", theme_slide_Selected: "active", theme_slide_DateHigh: "b", theme_slide_DateHighAlt: "b", theme_slide_DateHighRec: "b", theme_slide_Default: "a", theme_slide_NextBtn: [ "plus", "a" ], theme_slide_PrevBtn: [ "minus", "a" ], theme_slide_NextDateBtn: [ "carat-r", "a" ], theme_slide_PrevDateBtn: [ "carat-l", "a" ], theme_slide_Pickers: "a", theme_slide_DateList: "a", theme_backgroundMask: { position: "fixed", left: 0, top: 0, right: 0, bottom: 0, backgroundColor: "rgba(0,0,0,.4)" }, theme_headStyle: " .center { text-align: center !important; } .p0 { padding: 0 !important; }.m0 { margin: 0 !important; } .w-100 { width: 100% !important; }", theme_spanStyle: false, buttonIconDate: "calendar", buttonIconTime: "clock", disabledState: "ui-disabled", tranDone: "webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", calHighToday: true, calHighPick: true, calHighOutOfBounds: true, calSelectedOutOfBounds: true, calShowDays: true, calOnlyMonth: false, calShowWeek: false, calUsePickers: false, calNoHeader: false, calYearPickMin: -6, calYearPickMax: 6, calYearPickRelative: true, calFormatter: false, calBeforeAppendFunc: function(t) { return t; }, highDays: false, highDates: false, highDatesRec: false, highDatesAlt: false, calDateList: false, calShowDateList: false, durationStep: 1, durationSteppers: { d: 1, h: 1, i: 1, s: 1 }, flen: { y: 25, m: 24, d: 40, h: 24, i: 30, s: 30, a: 30 }, fboxNatural: "default", slideHighToday: true, slideHighPick: true, slideUsePickers: false, slideNoHeader: false, slideYearPickMin: -6, slideYearPickMax: 6, slideYearPickRelative: true, slideDateList: false, slideShowDateList: false }, icons: { getIcon: function(name) { var w = this, icnF = w.options.iconFactory; if (name === false) { return false; } if (typeof icnF === "function") { return icnF.call(w, name); } if (name.substr(0, 4) === "', prev: '', plus: '', minus: '', check: '', cancel: '', goto: '', clear: '', clock: '', calendar: '' }, styleFunctions: {}, _getLongOptions: function(element) { var key, temp, returnObj = {}, prefix = "datebox", prefixLength = 7; for (key in element.data()) { if (key.substr(0, prefixLength) === prefix && key.length > prefixLength) { temp = key.substr(prefixLength); temp = temp.charAt(0).toLowerCase() + temp.slice(1); if (temp !== "options") { returnObj[temp] = element.data(key); } } } return returnObj; }, _setOption: function() { $.Widget.prototype._setOption.apply(this, arguments); this.refresh(); }, getOption: function(opt) { var i18nTester = this.__(opt); if (i18nTester !== "Err:NotFound") { return i18nTester; } else { return this.options[opt]; } }, style_attach: function(isInline) { var w = this, possibleAttach = w.d.wrap.parent(), hardAttachPoint = $("body").find("#" + w.baseID + "-dbAttach"); if (hardAttachPoint.length === 1) { return hardAttachPoint; } if (!isInline) { possibleAttach = $(".ui-page-active"); if (possibleAttach.length === 1) { return possibleAttach; } possibleAttach = w.d.input.closest("[data-role='page']"); if (possibleAttach.length === 1) { return possibleAttach; } return $("body"); } if (possibleAttach.hasClass("ui-field-contain")) { return possibleAttach; } else { return w.d.wrap; } }, style_btn: function(theme, contents) { var retty; contents = typeof contents === "undefined" ? "" : contents; retty = "" + contents + ""; return retty; }, style_btnGrp: function(collapse) { var style = collapse ? "margin: 0 auto;" : "margin: 0 .446em"; return $("
";
returnVal += "";
returnVal += "";
if (label !== null) {
returnVal += " " + label + " ";
}
returnVal += "";
returnVal += " ";
returnVal += "";
returnVal += "";
returnVal += "";
return $(returnVal);
},
style_slideGrid: function() {
return $(" | |
" + "" + "" + this.__("daysOfWeekShort")[data.dateObj.getDay()] + " " + data.dateObj.getDate() + "" + " | ");
},
style_slideCtrl: function(eventCls, theme) {
var style = " style='width: " + 100 / 8 / 2 + "%'", cls = "class='m0 ui-corner-all ui-btn ui-mini ui-btn-icon-notext ui-btn-" + theme[1] + " " + eventCls + " ui-icon-" + theme[0] + "'";
return $("" + " | "); }, style_fboxCtr: function(size) { return $("