{"version":3,"sources":["kendo.daterangepicker.js"],"names":["f","define","$","undefined","preventDefault","e","DateRangePicker","kendo","window","ui","keys","Widget","MONTH","OPEN","CLOSE","CHANGE","DIV","MIN","MAX","template","extend","ID","support","mobileOS","SELECTED","ARIA_EXPANDED","ARIA_DISABLED","STATEDISABLED","DISABLED","READONLY","DEFAULT","ARIA_HIDDEN","ns","CLICK","MOUSEDOWN","UP","mouseAndTouchPresent","applyEventMap","slice","proxy","parse","parseDate","DateRangeView","options","DateView","call","this","prototype","Object","create","_calendar","div","that","calendar","attr","guid","appendTo","popup","element","on","_click","MultiViewCalendar","_setOptions","makeUnselectable","navigate","_value","_current","start","selectRange","_range","range","setOptions","focusOnNav","change","culture","dates","depth","footer","format","selectable","max","min","month","weekNumber","disableDates","end","rangeSelectable","clear","move","key","keyCode","selectIsClicked","ctrlKey","DOWN","ENTER","handled","altKey","open","close","visible","ESC","_cell","hasClass","_move","ios","android","browser","currentTarget","className","indexOf","init","disabled","fn","_initialOptions","_buildHTML","_changeTriggered","dateView","id","anchor","wrapper","views","trigger","_startDateInput","_endDateInput","_updateARIA","_ariaTemplate","ARIATemplate","_reset","role","aria-expanded","aria-owns","_dateViewID","autocomplete","_inputs","_keydown","_initializeDateInputs","is","enable","readonly","name","labels","Date","animation","startField","endField","messages","startLabel","endLabel","events","off","_preventInputAction","stopImmediatePropagation","date","cell","length","removeAttribute","_dateInViews","_cellByDate","current","_focusCell","_startChange","input","sender","startValue","value","endValue","_endChange","inputOptions","destroy","empty","_startInput","kendoDateInput","getKendoDateInput","_endInput","_startChangeHandler","bind","_endChangeHandler","addClass","find","eq","add","_option","option","parseFormats","formId","form","closest","_resetHandler","_form","_editable","inputs","disable","removeClass","each","item","unbind","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,yBACH,aACA,0BACA,oBACDD,IACL,WAycE,MA7bC,UAAUE,EAAGC,GAMV,QAASC,G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,OACE,kBAAVN,SAAwBA,OAAOqM,IAAMrM,OAAS,SAAUsM,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.daterangepicker.min.js","sourcesContent":["/*!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('kendo.daterangepicker', [\n 'kendo.core',\n 'kendo.multiviewcalendar',\n 'kendo.datepicker'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'daterangepicker',\n name: 'DateRangePicker',\n category: 'web',\n description: 'Date range picker.',\n depends: [\n 'core',\n 'multiviewcalendar',\n 'datepicker'\n ]\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, keys = kendo.keys, Widget = ui.Widget, MONTH = 'month', OPEN = 'open', CLOSE = 'close', CHANGE = 'change', DIV = '
', MIN = 'min', MAX = 'max', template = kendo.template, extend = $.extend, ID = 'id', support = kendo.support, mobileOS = support.mobileOS, SELECTED = 'k-state-selected', ARIA_EXPANDED = 'aria-expanded', ARIA_DISABLED = 'aria-disabled', STATEDISABLED = 'k-state-disabled', DISABLED = 'disabled', READONLY = 'readonly', DEFAULT = 'k-state-default', ARIA_HIDDEN = 'aria-hidden', ns = '.kendoDateRangePicker', CLICK = 'click' + ns, MOUSEDOWN = 'mousedown' + ns, UP = support.mouseAndTouchPresent ? kendo.applyEventMap('up', ns.slice(1)) : CLICK, proxy = $.proxy, parse = kendo.parseDate;\n var DateRangeView = function (options) {\n kendo.DateView.call(this, options);\n };\n DateRangeView.prototype = Object.create(kendo.DateView.prototype);\n function preventDefault(e) {\n e.preventDefault();\n }\n DateRangeView.prototype._calendar = function () {\n var that = this;\n var calendar = that.calendar;\n var options = that.options;\n var div;\n if (!calendar) {\n div = $(DIV).attr(ID, kendo.guid()).appendTo(that.popup.element).on(MOUSEDOWN, preventDefault).on(CLICK, 'td:has(.k-link)', proxy(that._click, that));\n that.calendar = calendar = new ui.MultiViewCalendar(div);\n that._setOptions(options);\n kendo.calendar.makeUnselectable(calendar.element);\n calendar.navigate(that._value || that._current, options.start);\n that.calendar.selectRange(that._range || options.range || {});\n }\n };\n DateRangeView.prototype._setOptions = function (options) {\n this.calendar.setOptions({\n focusOnNav: false,\n change: options.change,\n culture: options.culture,\n dates: options.dates,\n depth: options.depth,\n footer: options.footer,\n format: options.format,\n selectable: options.selectable,\n max: options.max,\n min: options.min,\n month: options.month,\n weekNumber: options.weekNumber,\n start: options.start,\n disableDates: options.disableDates,\n range: options.range\n });\n };\n DateRangeView.prototype.range = function (range) {\n this._range = range;\n if (this.calendar) {\n if (!range.start && !range.end) {\n this.calendar.selectRange(range);\n this.calendar.rangeSelectable.clear(true);\n } else {\n this.calendar.selectRange(range);\n }\n }\n };\n DateRangeView.prototype.move = function (e) {\n var that = this;\n var key = e.keyCode;\n var calendar = that.calendar;\n var selectIsClicked = e.ctrlKey && key == keys.DOWN || key == keys.ENTER;\n var handled = false;\n if (e.altKey) {\n if (key == keys.DOWN) {\n that.open();\n e.preventDefault();\n handled = true;\n } else if (key == keys.UP) {\n that.close();\n e.preventDefault();\n handled = true;\n }\n } else if (that.popup.visible()) {\n if (key == keys.ESC || selectIsClicked && calendar._cell.hasClass(SELECTED)) {\n that.close();\n e.preventDefault();\n return true;\n }\n that._current = calendar._move(e, true);\n handled = true;\n }\n return handled;\n };\n DateRangeView.prototype._click = function (e) {\n if (mobileOS.ios || mobileOS.android && (mobileOS.browser == 'firefox' || mobileOS.browser == 'chrome')) {\n if (this._range && this._range.end) {\n this.close();\n }\n } else if (this._range && this._range.end === null && e.currentTarget.className.indexOf('k-state-selected') !== -1) {\n this.close();\n }\n };\n kendo.DateRangeView = DateRangeView;\n var DateRangePicker = Widget.extend({\n init: function (element, options) {\n var that = this;\n var div;\n var disabled;\n Widget.fn.init.call(that, element, options);\n element = that.element;\n options = that.options;\n options.disableDates = kendo.calendar.disabled(options.disableDates);\n options.min = parse(element.attr('min')) || parse(options.min);\n options.max = parse(element.attr('max')) || parse(options.max);\n that._initialOptions = extend({}, options);\n that._buildHTML();\n that._range = that.options.range;\n that._changeTriggered = false;\n that.dateView = new DateRangeView(extend({}, options, {\n id: element.attr(ID),\n anchor: that.wrapper,\n views: 2,\n selectable: 'range',\n range: that._range,\n change: function () {\n var range = this.selectRange();\n that.range(range);\n that.trigger(CHANGE);\n that._changeTriggered = true;\n that._startDateInput.trigger(CHANGE);\n that._endDateInput.trigger(CHANGE);\n that._changeTriggered = false;\n },\n close: function (e) {\n if (that.trigger(CLOSE)) {\n e.preventDefault();\n } else {\n that.wrapper.attr(ARIA_EXPANDED, false);\n div.attr(ARIA_HIDDEN, true);\n }\n },\n open: function (e) {\n if (that.trigger(OPEN)) {\n e.preventDefault();\n } else {\n that.wrapper.attr(ARIA_EXPANDED, true);\n div.attr(ARIA_HIDDEN, false);\n that._updateARIA();\n }\n }\n }));\n div = that.dateView.div;\n that._ariaTemplate = template(this.options.ARIATemplate);\n that._reset();\n that.wrapper.attr({\n role: 'combobox',\n 'aria-expanded': false,\n 'aria-owns': that.dateView._dateViewID,\n 'autocomplete': 'off'\n });\n that._inputs.on(UP + ns, proxy(that._click, that)).on('keydown' + ns, proxy(that._keydown, that));\n that._initializeDateInputs();\n disabled = element.is('[disabled]');\n if (disabled) {\n that.enable(false);\n } else {\n that.readonly(element.is('[readonly]'));\n }\n },\n options: {\n name: 'DateRangePicker',\n labels: true,\n footer: '',\n format: '',\n culture: '',\n min: new Date(1900, 0, 1),\n max: new Date(2099, 11, 31),\n start: MONTH,\n depth: MONTH,\n animation: {},\n month: {},\n startField: '',\n endField: '',\n dates: [],\n disableDates: null,\n range: null,\n ARIATemplate: 'Current focused date is #=kendo.toString(data.current, \"D\")#',\n weekNumber: false,\n messages: {\n startLabel: 'Start',\n endLabel: 'End'\n }\n },\n events: [\n OPEN,\n CLOSE,\n CHANGE\n ],\n setOptions: function (options) {\n var that = this;\n Widget.fn.setOptions.call(that, options);\n options = that.options;\n options.min = parse(options.min);\n options.max = parse(options.max);\n that._inputs.off(ns);\n this._initializeDateInputs();\n that.dateView.setOptions(options);\n that._range = options.range;\n },\n _click: function () {\n var that = this;\n if (!that._preventInputAction && !that.dateView.popup.visible()) {\n that.dateView.open();\n }\n },\n _keydown: function (e) {\n var that = this, dateView = that.dateView, handled = false;\n if (that._preventInputAction) {\n e.stopImmediatePropagation();\n return;\n }\n handled = dateView.move(e);\n that._updateARIA(dateView._current);\n if (handled && e.stopImmediatePropagation) {\n e.stopImmediatePropagation();\n }\n },\n _updateARIA: function (date) {\n var cell;\n var that = this;\n var calendar = that.dateView.calendar;\n if (that.element && that.element.length) {\n that.element[0].removeAttribute('aria-activedescendant');\n }\n if (calendar) {\n if (date && !calendar._dateInViews(date)) {\n calendar.navigate(date);\n }\n cell = calendar._cellByDate(date || calendar.current());\n calendar._focusCell(cell);\n cell.attr('aria-label', that._ariaTemplate({ current: date || calendar.current() }));\n that.element.attr('aria-activedescendant', cell.attr('id'));\n }\n },\n _startChange: function (e) {\n var that = this;\n var input = e.sender;\n var startValue = input.value();\n var endValue = that._endDateInput.value();\n if (that.options.disableDates(startValue)) {\n e.sender.value(null);\n startValue = null;\n }\n that.range({\n start: startValue,\n end: endValue\n });\n if (!that._changeTriggered) {\n that.trigger(CHANGE);\n }\n },\n _endChange: function (e) {\n var that = this;\n var input = e.sender;\n var endValue = input.value();\n var startValue = that._startDateInput.value();\n if (that.options.disableDates(endValue)) {\n e.sender.value(null);\n endValue = null;\n }\n that.range({\n start: startValue,\n end: endValue\n });\n if (!that._changeTriggered) {\n that.trigger(CHANGE);\n }\n },\n _initializeDateInputs: function () {\n var that = this;\n var options = that.options;\n var range = options.range || {};\n var inputOptions = {\n footer: options.footer,\n format: options.format,\n culture: options.culture,\n min: options.min,\n max: options.max,\n start: options.start,\n startField: options.startField,\n endField: options.endField,\n depth: options.depth,\n animation: options.animation,\n month: options.month,\n dates: options.dates,\n disableDates: options.disableDates,\n ARIATemplate: options.ARIATemplate,\n weekNumber: options.weekNumber\n };\n if (that._startDateInput) {\n that._startDateInput.destroy();\n that._endDateInput.destroy();\n that.wrapper.empty();\n that._buildHTML();\n that._inputs.on(UP + ns, proxy(that._click, that)).on('keydown' + ns, proxy(that._keydown, that));\n }\n that._startDateInput = that._startInput.kendoDateInput(extend(true, inputOptions, { value: range.start })).getKendoDateInput();\n that._endDateInput = that._endInput.kendoDateInput(extend(true, inputOptions, { value: range.end })).getKendoDateInput();\n that._startChangeHandler = proxy(that._startChange, that);\n that._startDateInput.bind(CHANGE, that._startChangeHandler);\n that._endChangeHandler = proxy(that._endChange, that);\n that._endDateInput.bind(CHANGE, that._endChangeHandler);\n },\n _buildHTML: function () {\n var that = this;\n var element = that.element;\n if (!that.wrapper) {\n that.wrapper = element.addClass('k-widget k-daterangepicker');\n }\n if (that.options.labels) {\n $('').appendTo(that.wrapper);\n $(' ').appendTo(that.wrapper);\n } else {\n $(' ').appendTo(that.wrapper);\n }\n that._startInput = that.wrapper.find('input').eq(0);\n that._endInput = that.wrapper.find('input').eq(1);\n if (that.options.startField !== '') {\n that._startInput.attr(kendo.attr('bind'), 'value: ' + that.options.startField);\n that._startInput.attr('name', that.options.startField);\n }\n if (that.options.endField !== '') {\n that._endInput.attr(kendo.attr('bind'), 'value: ' + that.options.endField);\n that._endInput.attr('name', that.options.endField);\n }\n that._inputs = that._startInput.add(that._endInput);\n },\n _option: function (option, value) {\n var that = this, options = that.options;\n if (value === undefined) {\n return options[option];\n }\n value = parse(value, options.parseFormats, options.culture);\n if (!value) {\n return;\n }\n options[option] = new Date(+value);\n that.dateView[option](value);\n },\n _reset: function () {\n var that = this, element = that.element, formId = element.attr('form'), form = formId ? $('#' + formId) : element.closest('form');\n if (form[0]) {\n that._resetHandler = function () {\n that.max(that._initialOptions.max);\n that.min(that._initialOptions.min);\n };\n that._form = form.on('reset', that._resetHandler);\n }\n },\n _editable: function (options) {\n var that = this, inputs = that._inputs, readonly = options.readonly, disable = options.disable;\n if (!readonly && !disable) {\n that.wrapper.addClass(DEFAULT).removeClass(STATEDISABLED);\n $.each(inputs, function (key, item) {\n item.removeAttribute(DISABLED);\n item.removeAttribute(READONLY);\n });\n inputs.attr(ARIA_DISABLED, false);\n that._preventInputAction = false;\n } else {\n that.wrapper.addClass(disable ? STATEDISABLED : DEFAULT).removeClass(disable ? DEFAULT : STATEDISABLED);\n inputs.attr(DISABLED, disable).attr(READONLY, readonly).attr(ARIA_DISABLED, disable);\n that._preventInputAction = true;\n }\n },\n destroy: function () {\n var that = this;\n if (that._startDateInput) {\n that._startDateInput.unbind(CHANGE, that._startChangeHandler);\n that._startDateInput.destroy();\n that._startChangeHandler = null;\n }\n if (that._endDateInput) {\n that._endDateInput.unbind(CHANGE, that._endChangeHandler);\n that._endDateInput.destroy();\n that._endChangeHandler = null;\n }\n if (that._form) {\n that._form.off('reset', that._resetHandler);\n }\n that._inputs.off(ns);\n that._inputs = null;\n that.dateView.destroy();\n that.element.off(ns);\n Widget.fn.destroy.call(that);\n },\n range: function (range) {\n var that = this;\n if (range === undefined) {\n return that._range;\n }\n that._range = range;\n that.dateView.range({\n start: null,\n end: null\n });\n if (!range) {\n that._startDateInput.value(null);\n that._endDateInput.value(null);\n }\n that._startDateInput.value(range.start ? range.start : null);\n that._endDateInput.value(range.end ? range.end : null);\n if (range.start && !range.end) {\n that.dateView.range({\n start: range.start,\n end: null\n });\n } else if (range.start && range.start && +range.start <= +range.end) {\n that.dateView.range({\n start: range.start,\n end: range.end\n });\n }\n },\n open: function () {\n this.dateView.open();\n },\n close: function () {\n this.dateView.close();\n },\n min: function (value) {\n return this._option(MIN, value);\n },\n max: function (value) {\n return this._option(MAX, value);\n },\n readonly: function (readonly) {\n this._startDateInput.readonly(readonly);\n this._endDateInput.readonly(readonly);\n this._editable({\n readonly: readonly === undefined ? true : readonly,\n disable: false\n });\n },\n enable: function (enable) {\n this._startDateInput.enable(enable);\n this._endDateInput.enable(enable);\n if (!enable) {\n this.close();\n }\n this._editable({\n readonly: false,\n disable: !(enable = enable === undefined ? true : enable)\n });\n }\n });\n kendo.ui.plugin(DateRangePicker);\n }(window.kendo.jQuery));\n return window.kendo;\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"]}