{"version":3,"sources":["kendo.binder.js"],"names":["f","define","$","undefined","dataSourceBinding","bindingName","fieldName","setter","Binder","extend","init","widget","bindings","options","that","this","fn","call","element","_dataBinding","proxy","dataBinding","_dataBound","dataBound","_itemChange","itemChange","e","bindElement","item","data","_ns","ns","concat","_parents","idx","length","items","removedItems","unbindElementTree","kendo","ui","all","dataviz","mobile","splice","inArray","unshift","rolesFromNamespaces","view","parents","addedItems","dataSource","hds","HierarchicalDataSource","addedDataItems","flatView","refresh","source","select","multiselect","action","destroy","bind","get","DataSource","_dataSource","Select","MultiSelect","value","retrievePrimitiveValues","dataValueField","unbind","bindingTargetForRole","roles","initWidget","WidgetBindingTarget","parseBindings","token","colonIndex","key","tokens","result","match","keyValueRegExp","indexOf","substring","charAt","createBindings","type","binding","target","children","role","getAttribute","childrenCopy","deep","unbindElement","replace","whiteSpaceRegExp","parseOptions","textField","valueField","template","valueUpdate","CHANGE","valuePrimitive","autoBind","BindingTarget","Binding","TemplateBinding","click","events","attr","style","EventBinding","css","kendoBindingTarget","dom","object","node","slice","arguments","observable","nodeType","destroyWidget","bindingTarget","deleteExpando","removeAttribute","widgetInstance","FUNCTION","destroyWidgets","unbindElementChildren","notify","namespace","values","ObservableArray","ObservableObject","TypedBinder","arraySplice","window","Observable","toString","binders","Class","VALUE","SOURCE","EVENTS","CHECKED","CSS","a","document","createElement","test","path","dependencies","_access","field","_change","change","parent","dependency","ch","trigger","start","stop","index","lastIndexOf","currentSource","set","getter","handler","render","html","attribute","dataType","toLowerCase","parsedValue","_parseValue","parseDate","parseFloat","setAttribute","classes","className","hasClass","addClass","removeClass","enabled","readonly","disabled","handlers","off","on","text","dataFormat","visible","display","invisible","innerHTML","eventName","_initChange","fetch","add","remove","container","nodeName","tBodies","appendChild","format","child","clone","cloneNode","reference","insertBefore","parentNode","removeChild","input","checked","i","Date","push","val","selectedIndex","option","selected","attributes","specified","valueIndex","sourceValue","String","apply","optionIndex","optionValue","found","check","wrapper","enable","first","_valueIsObservableObject","_valueIsObservableArray","_source","dataItem","valueLength","sourceItem","dataTextField","isArray","isObservableObject","cascadeFrom","listView","bound","_preselect","gantt","newLength","j","old","same","removeIndex","newValue","oldValues","newValues","dataItems","selectedValue","_isBound","scheduler","elements","arr","addLength","oldLength","shifted","shiftedLength","toDestroy","hasValue","hasSource","hasEvents","hasChecked","hasCss","widgetBinding","specificBinders","applyBinding","name","binder","Error","observableHierarchy","array","recursiveRead","_initChildren","create","_data","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,gBACH,aACA,cACDD,IACL,WA42CE,MAj2CC,UAAUE,EAAGC,GA4oBV,QAASC,GAAkBC,EAAaC,EAAWC,GAC/C,MAAOC,GAAOC,QACVC,KAAM,SAAUC,EAAQC,EAAUC,GAC9B,GAAIC,GAAOC,IACXP,GAAOQ,GAAGN,KAAKO,KAAKH,EAAMH,EAAOO,QAAQ,GAAIN,EAAUC,GACvDC,EAAKH,OAASA,EACdG,EAAKK,aAAeC,EAAMN,EAAKO,YAAaP,GAC5CA,EAAKQ,WAAaF,EAAMN,EAAKS,UAAWT,GACxCA,EAAKU,YAAcJ,EAAMN,EAAKW,WAAYX,IAE9CW,WAAY,SAAUC,GAClBC,EAAYD,EAAEE,KAAK,GAAIF,EAAEG,KAAMd,KAAKe,IAAIJ,EAAEK,KAAML,EAAEG,MAAMG,OAAOjB,KAAKH,SAASP,GAAa4B,cAE9FZ,YAAa,SAAUK,GACnB,GAAIQ,GAAKC,EAAQxB,EAASI,KAAKJ,OAAQyB,EAAQV,EAAEW,cAAgB1B,EAAOyB,OACxE,KAAKF,EAAM,EAAGC,EAASC,EAAMD,OAAQD,EAAMC,EAAQD,IAC/CI,EAAkBF,EAAMF,IAAM,IAGtCJ,IAAK,SAAUC,GACXA,EAAKA,GAAMQ,EAAMC,EACjB,IAAIC,IACAF,EAAMC,GACND,EAAMG,QAAQF,GACdD,EAAMI,OAAOH,GAIjB,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,EACbvB,EAAMV,KAAKiH,QAAUA,EACrBvG,EAAMV,KAAKrB,OAASA,EACpB+B,EAAM6F,OAASA,EACf7F,EAAMmF,WAAa,SAAUJ,GAIzB,MAHMA,aAAkBkB,KACpBlB,EAAS,GAAIkB,GAAiBlB,IAE3BA,GAEX/E,EAAMkP,oBAAsB,SAAUC,GAElC,QAASC,GAAc9P,GACnB,GAAI4L,GAAG9H,CACP,KAAK8H,EAAI,EAAGA,EAAI5L,EAAKM,OAAQsL,IACzB5L,EAAK4L,GAAGmE,gBACRjM,EAAW9D,EAAK4L,GAAG9H,SACnBA,EAAS6G,QACT3K,EAAK4L,GAAGrL,MAAQuD,EAAS9D,OACzB8P,EAAc9P,EAAK4L,GAAGrL,OAR9B,GAAIe,GAAaZ,EAAMV,KAAKwB,uBAAuBwO,OAAOH,EAc1D,OAHAvO,GAAWqJ,QACXmF,EAAcxO,EAAWtB,QACzBsB,EAAW2O,MAAM7N,YAAcd,EACxBA,EAAW2O,QAExBnJ,OAAOpG,MAAMwP,QACRpJ,OAAOpG,OACE,kBAAVtC,SAAwBA,OAAO+R,IAAM/R,OAAS,SAAUgS,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.binder.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.binder', [\n 'kendo.core',\n 'kendo.data'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'binder',\n name: 'MVVM',\n category: 'framework',\n description: 'Model View ViewModel (MVVM) is a design pattern which helps developers separate the Model (the data) from the View (the UI).',\n depends: [\n 'core',\n 'data'\n ]\n };\n (function ($, undefined) {\n var kendo = window.kendo, Observable = kendo.Observable, ObservableObject = kendo.data.ObservableObject, ObservableArray = kendo.data.ObservableArray, toString = {}.toString, binders = {}, Class = kendo.Class, proxy = $.proxy, VALUE = 'value', SOURCE = 'source', EVENTS = 'events', CHECKED = 'checked', CSS = 'css', deleteExpando = true, FUNCTION = 'function', CHANGE = 'change';\n (function () {\n var a = document.createElement('a');\n try {\n delete a.test;\n } catch (e) {\n deleteExpando = false;\n }\n }());\n var Binding = Observable.extend({\n init: function (parents, path) {\n var that = this;\n Observable.fn.init.call(that);\n that.source = parents[0];\n that.parents = parents;\n that.path = path;\n that.dependencies = {};\n that.dependencies[path] = true;\n that.observable = that.source instanceof Observable;\n that._access = function (e) {\n that.dependencies[e.field] = true;\n };\n if (that.observable) {\n that._change = function (e) {\n that.change(e);\n };\n that.source.bind(CHANGE, that._change);\n }\n },\n _parents: function () {\n var parents = this.parents;\n var value = this.get();\n if (value && typeof value.parent == 'function') {\n var parent = value.parent();\n if ($.inArray(parent, parents) < 0) {\n parents = [parent].concat(parents);\n }\n }\n return parents;\n },\n change: function (e) {\n var dependency, ch, field = e.field, that = this;\n if (that.path === 'this') {\n that.trigger(CHANGE, e);\n } else {\n for (dependency in that.dependencies) {\n if (dependency.indexOf(field) === 0) {\n ch = dependency.charAt(field.length);\n if (!ch || ch === '.' || ch === '[') {\n that.trigger(CHANGE, e);\n break;\n }\n }\n }\n }\n },\n start: function (source) {\n source.bind('get', this._access);\n },\n stop: function (source) {\n source.unbind('get', this._access);\n },\n get: function () {\n var that = this, source = that.source, index = 0, path = that.path, result = source;\n if (!that.observable) {\n return result;\n }\n that.start(that.source);\n result = source.get(path);\n while (result === undefined && source) {\n source = that.parents[++index];\n if (source instanceof ObservableObject) {\n result = source.get(path);\n }\n }\n if (result === undefined) {\n source = that.source;\n while (result === undefined && source) {\n source = source.parent();\n if (source instanceof ObservableObject) {\n result = source.get(path);\n }\n }\n }\n if (typeof result === 'function') {\n index = path.lastIndexOf('.');\n if (index > 0) {\n source = source.get(path.substring(0, index));\n }\n that.start(source);\n if (source !== that.source) {\n result = result.call(source, that.source);\n } else {\n result = result.call(source);\n }\n that.stop(source);\n }\n if (source && source !== that.source) {\n that.currentSource = source;\n source.unbind(CHANGE, that._change).bind(CHANGE, that._change);\n }\n that.stop(that.source);\n return result;\n },\n set: function (value) {\n var source = this.currentSource || this.source;\n var field = kendo.getter(this.path)(source);\n if (typeof field === 'function') {\n if (source !== this.source) {\n field.call(source, this.source, value);\n } else {\n field.call(source, value);\n }\n } else {\n source.set(this.path, value);\n }\n },\n destroy: function () {\n if (this.observable) {\n this.source.unbind(CHANGE, this._change);\n if (this.currentSource) {\n this.currentSource.unbind(CHANGE, this._change);\n }\n }\n this.unbind();\n }\n });\n var EventBinding = Binding.extend({\n get: function () {\n var source = this.source, path = this.path, index = 0, handler;\n handler = source.get(path);\n while (!handler && source) {\n source = this.parents[++index];\n if (source instanceof ObservableObject) {\n handler = source.get(path);\n }\n }\n return proxy(handler, source);\n }\n });\n var TemplateBinding = Binding.extend({\n init: function (source, path, template) {\n var that = this;\n Binding.fn.init.call(that, source, path);\n that.template = template;\n },\n render: function (value) {\n var html;\n this.start(this.source);\n html = kendo.render(this.template, value);\n this.stop(this.source);\n return html;\n }\n });\n var Binder = Class.extend({\n init: function (element, bindings, options) {\n this.element = element;\n this.bindings = bindings;\n this.options = options;\n },\n bind: function (binding, attribute) {\n var that = this;\n binding = attribute ? binding[attribute] : binding;\n binding.bind(CHANGE, function (e) {\n that.refresh(attribute || e);\n });\n that.refresh(attribute);\n },\n destroy: function () {\n }\n });\n var TypedBinder = Binder.extend({\n dataType: function () {\n var dataType = this.element.getAttribute('data-type') || this.element.type || 'text';\n return dataType.toLowerCase();\n },\n parsedValue: function () {\n return this._parseValue(this.element.value, this.dataType());\n },\n _parseValue: function (value, dataType) {\n if (dataType == 'date') {\n value = kendo.parseDate(value, 'yyyy-MM-dd');\n } else if (dataType == 'datetime-local') {\n value = kendo.parseDate(value, [\n 'yyyy-MM-ddTHH:mm:ss',\n 'yyyy-MM-ddTHH:mm'\n ]);\n } else if (dataType == 'number') {\n value = kendo.parseFloat(value);\n } else if (dataType == 'boolean') {\n value = value.toLowerCase();\n if (kendo.parseFloat(value) !== null) {\n value = Boolean(kendo.parseFloat(value));\n } else {\n value = value.toLowerCase() === 'true';\n }\n }\n return value;\n }\n });\n binders.attr = Binder.extend({\n refresh: function (key) {\n this.element.setAttribute(key, this.bindings.attr[key].get());\n }\n });\n binders.css = Binder.extend({\n init: function (element, bindings, options) {\n Binder.fn.init.call(this, element, bindings, options);\n this.classes = {};\n },\n refresh: function (className) {\n var element = $(this.element), binding = this.bindings.css[className], hasClass = this.classes[className] = binding.get();\n if (hasClass) {\n element.addClass(className);\n } else {\n element.removeClass(className);\n }\n }\n });\n binders.style = Binder.extend({\n refresh: function (key) {\n this.element.style[key] = this.bindings.style[key].get() || '';\n }\n });\n binders.enabled = Binder.extend({\n refresh: function () {\n if (this.bindings.enabled.get()) {\n this.element.removeAttribute('disabled');\n } else {\n this.element.setAttribute('disabled', 'disabled');\n }\n }\n });\n binders.readonly = Binder.extend({\n refresh: function () {\n if (this.bindings.readonly.get()) {\n this.element.setAttribute('readonly', 'readonly');\n } else {\n this.element.removeAttribute('readonly');\n }\n }\n });\n binders.disabled = Binder.extend({\n refresh: function () {\n if (this.bindings.disabled.get()) {\n this.element.setAttribute('disabled', 'disabled');\n } else {\n this.element.removeAttribute('disabled');\n }\n }\n });\n binders.events = Binder.extend({\n init: function (element, bindings, options) {\n Binder.fn.init.call(this, element, bindings, options);\n this.handlers = {};\n },\n refresh: function (key) {\n var element = $(this.element), binding = this.bindings.events[key], handler = this.handlers[key];\n if (handler) {\n element.off(key, handler);\n }\n handler = this.handlers[key] = binding.get();\n element.on(key, binding.source, handler);\n },\n destroy: function () {\n var element = $(this.element), handler;\n for (handler in this.handlers) {\n element.off(handler, this.handlers[handler]);\n }\n }\n });\n binders.text = Binder.extend({\n refresh: function () {\n var text = this.bindings.text.get();\n var dataFormat = this.element.getAttribute('data-format') || '';\n if (text == null) {\n text = '';\n }\n $(this.element).text(kendo.toString(text, dataFormat));\n }\n });\n binders.visible = Binder.extend({\n refresh: function () {\n if (this.bindings.visible.get()) {\n this.element.style.display = '';\n } else {\n this.element.style.display = 'none';\n }\n }\n });\n binders.invisible = Binder.extend({\n refresh: function () {\n if (!this.bindings.invisible.get()) {\n this.element.style.display = '';\n } else {\n this.element.style.display = 'none';\n }\n }\n });\n binders.html = Binder.extend({\n refresh: function () {\n this.element.innerHTML = this.bindings.html.get();\n }\n });\n binders.value = TypedBinder.extend({\n init: function (element, bindings, options) {\n TypedBinder.fn.init.call(this, element, bindings, options);\n this._change = proxy(this.change, this);\n this.eventName = options.valueUpdate || CHANGE;\n $(this.element).on(this.eventName, this._change);\n this._initChange = false;\n },\n change: function () {\n this._initChange = this.eventName != CHANGE;\n this.bindings[VALUE].set(this.parsedValue());\n this._initChange = false;\n },\n refresh: function () {\n if (!this._initChange) {\n var value = this.bindings[VALUE].get();\n if (value == null) {\n value = '';\n }\n var type = this.dataType();\n if (type == 'date') {\n value = kendo.toString(value, 'yyyy-MM-dd');\n } else if (type == 'datetime-local') {\n value = kendo.toString(value, 'yyyy-MM-ddTHH:mm:ss');\n }\n this.element.value = value;\n }\n this._initChange = false;\n },\n destroy: function () {\n $(this.element).off(this.eventName, this._change);\n }\n });\n binders.source = Binder.extend({\n init: function (element, bindings, options) {\n Binder.fn.init.call(this, element, bindings, options);\n var source = this.bindings.source.get();\n if (source instanceof kendo.data.DataSource && options.autoBind !== false) {\n source.fetch();\n }\n },\n refresh: function (e) {\n var that = this, source = that.bindings.source.get();\n if (source instanceof ObservableArray || source instanceof kendo.data.DataSource) {\n e = e || {};\n if (e.action == 'add') {\n that.add(e.index, e.items);\n } else if (e.action == 'remove') {\n that.remove(e.index, e.items);\n } else if (e.action != 'itemchange') {\n that.render();\n }\n } else {\n that.render();\n }\n },\n container: function () {\n var element = this.element;\n if (element.nodeName.toLowerCase() == 'table') {\n if (!element.tBodies[0]) {\n element.appendChild(document.createElement('tbody'));\n }\n element = element.tBodies[0];\n }\n return element;\n },\n template: function () {\n var options = this.options, template = options.template, nodeName = this.container().nodeName.toLowerCase();\n if (!template) {\n if (nodeName == 'select') {\n if (options.valueField || options.textField) {\n template = kendo.format('', options.valueField || options.textField, options.textField || options.valueField);\n } else {\n template = '';\n }\n } else if (nodeName == 'tbody') {\n template = '