{"version":3,"sources":["kendo.filtermenu.js"],"names":["f","define","$","undefined","removeFiltersForField","expression","field","filters","grep","filter","length","convertItems","items","idx","item","value","text","result","clearFilter","expr","nested","filterValuesForField","operator","flatFilterValues","logic","map","distinct","getter","kendo","index","seen","hasOwnProperty","push","removeDuplicates","dataSelector","dataTextField","e","window","ui","proxy","support","AUTOCOMPLETEVALUE","browser","chrome","POPUP","INIT","OPEN","REFRESH","CHANGE","NS","EQ","NEQ","roles","number","date","mobileRoles","string","isFunction","Widget","booleanTemplate","customBooleanTemplate","defaultTemplate","defaultMobileTemplate","booleanMobileTemplate","FilterMenu","extend","init","element","options","operators","initial","link","that","this","type","fn","call","appendToElement","addClass","find","prepend","messages","attr","on","_click","dataSource","DataSource","create","model","reader","_parse","fields","parse","values","_defaultFilter","_refreshHandler","refresh","bind","_init","role","setUI","pane","_isMobile","_createMobileForm","_createForm","form","_submit","_reset","removeClass","each","end","trigger","container","cycleForm","hasCustomTemplate","title","html","template","format","ns","extra","append","popup","closest","data","anchor","copyAnchorStyles","open","_open","activate","_activate","close","closeCallback","_keydown","filterMenuGuid","guid","inputType","view","submit","preventDefault","_closeForm","_mobileClear","defaultFilters","defaultOperator","filterModel","observable","children","first","_bind","destroy","unbind","purge","currentFilter","found","current","set","_stripFilters","_merge","clear","_removeFilter","booleanRadioButton","booleanRadioButtonValue","operatorSelects","valueInputs","andLogicRadio","viewElement","val","prop","i","input","containsFilters","currentExpression","stopPropagation","toJSON","_checkForNullOrEmptyFilter","firstNullOrEmpty","secondNullOrEmpty","search","parent","show","navigate","animations","right","left","toggle","not","focus","keyCode","keys","ESC","events","name","eq","neq","startswith","contains","doesnotcontain","endswith","isnull","isnotnull","isempty","isnotempty","isnullorempty","isnotnullorempty","gte","gt","lte","lt","enums","info","isTrue","isFalse","and","or","selectValue","additionalValue","additionalOperator","cancel","done","into","multiCheckNS","multiCkeckMobileTemplate","FilterMultiCheck","checkSource","_foreignKeyValues","fetch","forceUnique","pageSize","toLowerCase","parseFloat","_createLink","_link","serverPaging","_attachProgress","checkChangeHandler","empty","_filter","_progressHandler","progress","_progressHideHandler","_input","_clearTypingTimeout","_typingTimeout","setTimeout","clearTimeout","label","labelText","ignoreCase","searchString","searchTextBox","labels","checkAll","style","visibility","parentNode","display","textContent","innerText","indexOf","selectedItemsFormat","_mobileCheckAll","kendoPopup","createCheckAllItem","itemTemplate","mobile","checkAllContainer","all","checkBoxAll","checkAllHandler","updateCheckAllState","state","getFilterArray","toggleClass","sender","action","autoSync","is","createCheckBoxes","checkValues","flatValues","itemsHtml","templateOptions","valueField","_isServerGrouped","_flatData","render","ele","checkBoxVal","getTime","checkboxes","checkbox","valueFormat","clearAll","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,oBACH,mBACA,uBACA,qBACA,gBACDD,IACL,WA2iCE,MA9hCC,UAAUE,EAAGC,GAcV,QAASC,GAAsBC,EAAYC,GACnCD,EAAWE,UACXF,EAAWE,QAAUL,EAAEM,KAAKH,EAAWE,QAAS,SAAUE,GAEtD,MADAL,GAAsBK,EAAQH,GAC1BG,EAAOF,QACAE,EAAOF,QAAQG,OAEfD,EAAOH,OAASA,KAKvC,QAASK,GAAaC,GAClB,GAAIC,GAAKH,EAAQI,EAAMC,EAAOC,EAAMC,CACpC,IAAIL,GAASA,EAAMF,OAEf,IADAO,KACKJ,EAAM,EAAGH,EAASE,EAAMF,OAAQG,EAAMH,EAAQG,IAC/CC,EAAOF,EAAMC,GACbG,EAAqB,KAAdF,EAAKE,KAAcF,EAAKE,MAAQF,EAAKC,OAASD,EAAOA,EAAKE,KACjED,EAAsB,MAAdD,EAAKC,MAAgBD,EAAKE,MAAQF,EAAOA,EAAKC,MACtDE,EAAOJ,IACHG,KAAMA,EACND,MAAOA,EAInB,OAAOE,GAEX,QAASC,GAAYX,EAASD,GAC1B,MAAOJ,GAAEM,KAAKD,EAAS,SAAUY,GAC7B,MAAIA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,SACR0C,oBAAqB,qBACrBzC,KAAM,OACNC,KAAM,MAEVO,aAAa,EACb7C,YACIE,KAAM,QACND,MAAO,gBAGfQ,QACIjJ,EACAE,EACA,SACAD,IAGR5C,GAAE+D,OAAO6J,EAAiBnJ,IACtBS,OAAQpB,EAAWW,GAAGS,OACtBiD,SAAUrE,EAAWW,GAAG0D,SACxB1B,OAAQ3C,EAAWW,GAAGgC,OACtBiC,WAAY5E,EAAWW,GAAGiE,WAC1BmB,cAAe/F,EAAWW,GAAGoF,cAC7BD,MAAO9F,EAAWW,GAAGmF,MACrBD,OAAQ7F,EAAWW,GAAGkF,SAE1BvH,EAAG+P,OAAOrO,GACV1B,EAAG+P,OAAOvE,IACZzL,OAAOT,MAAM0Q,QACRjQ,OAAOT,OACE,kBAAV3B,SAAwBA,OAAOsS,IAAMtS,OAAS,SAAUuS,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.filtermenu.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.filtermenu', [\n 'kendo.datepicker',\n 'kendo.numerictextbox',\n 'kendo.dropdownlist',\n 'kendo.binder'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'filtermenu',\n name: 'Filtering Menu',\n category: 'framework',\n depends: [\n 'datepicker',\n 'numerictextbox',\n 'dropdownlist',\n 'binder'\n ],\n advanced: true\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, proxy = $.proxy, support = kendo.support, AUTOCOMPLETEVALUE = support.browser.chrome ? 'disabled' : 'off', POPUP = 'kendoPopup', INIT = 'init', OPEN = 'open', REFRESH = 'refresh', CHANGE = 'change', NS = '.kendoFilterMenu', EQ = 'Is equal to', NEQ = 'Is not equal to', roles = {\n 'number': 'numerictextbox',\n 'date': 'datepicker'\n }, mobileRoles = {\n 'string': 'text',\n 'number': 'number',\n 'date': 'date'\n }, isFunction = kendo.isFunction, Widget = ui.Widget;\n var booleanTemplate = '
';\n var customBooleanTemplate = ' ';\n var defaultTemplate = ' ';\n var defaultMobileTemplate = ' ';\n var booleanMobileTemplate = ' ';\n function removeFiltersForField(expression, field) {\n if (expression.filters) {\n expression.filters = $.grep(expression.filters, function (filter) {\n removeFiltersForField(filter, field);\n if (filter.filters) {\n return filter.filters.length;\n } else {\n return filter.field != field;\n }\n });\n }\n }\n function convertItems(items) {\n var idx, length, item, value, text, result;\n if (items && items.length) {\n result = [];\n for (idx = 0, length = items.length; idx < length; idx++) {\n item = items[idx];\n text = item.text !== '' ? item.text || item.value || item : item.text;\n value = item.value == null ? item.text || item : item.value;\n result[idx] = {\n text: text,\n value: value\n };\n }\n }\n return result;\n }\n function clearFilter(filters, field) {\n return $.grep(filters, function (expr) {\n if (expr.filters) {\n expr.filters = $.grep(expr.filters, function (nested) {\n return nested.field != field;\n });\n return expr.filters.length;\n }\n return expr.field != field;\n });\n }\n var FilterMenu = Widget.extend({\n init: function (element, options) {\n var that = this, type = 'string', operators, initial, link, field;\n Widget.fn.init.call(that, element, options);\n operators = that.operators = options.operators || {};\n element = that.element;\n options = that.options;\n if (!options.appendToElement) {\n link = element.addClass('k-with-icon k-filterable').find('.k-grid-filter');\n if (!link[0]) {\n link = element.prepend('').find('.k-grid-filter');\n }\n link.attr('tabindex', -1).on('click' + NS, proxy(that._click, that));\n }\n that.link = link || $();\n that.dataSource = DataSource.create(options.dataSource);\n that.field = options.field || element.attr(kendo.attr('field'));\n that.model = that.dataSource.reader.model;\n that._parse = function (value) {\n return value != null ? value + '' : value;\n };\n if (that.model && that.model.fields) {\n field = that.model.fields[that.field];\n if (field) {\n type = field.type || 'string';\n if (field.parse) {\n that._parse = proxy(field.parse, field);\n }\n }\n }\n if (options.values) {\n type = 'enums';\n }\n that.type = type;\n operators = operators[type] || options.operators[type];\n for (initial in operators) {\n break;\n }\n that._defaultFilter = function () {\n return {\n field: that.field,\n operator: initial || 'eq',\n value: ''\n };\n };\n that._refreshHandler = proxy(that.refresh, that);\n that.dataSource.bind(CHANGE, that._refreshHandler);\n if (options.appendToElement) {\n that._init();\n } else {\n that.refresh();\n }\n },\n _init: function () {\n var that = this, ui = that.options.ui, setUI = isFunction(ui), role;\n that.pane = that.options.pane;\n if (that.pane) {\n that._isMobile = true;\n }\n if (!setUI) {\n role = ui || roles[that.type];\n }\n if (that._isMobile) {\n that._createMobileForm(role);\n } else {\n that._createForm(role);\n }\n that.form.on('submit' + NS, proxy(that._submit, that)).on('reset' + NS, proxy(that._reset, that));\n if (setUI) {\n that.form.find('.k-textbox').removeClass('k-textbox').each(function () {\n ui($(this));\n });\n }\n that.form.find('[' + kendo.attr('role') + '=numerictextbox]').removeClass('k-textbox').end().find('[' + kendo.attr('role') + '=datetimepicker]').removeClass('k-textbox').end().find('[' + kendo.attr('role') + '=timepicker]').removeClass('k-textbox').end().find('[' + kendo.attr('role') + '=datepicker]').removeClass('k-textbox');\n that.refresh();\n that.trigger(INIT, {\n field: that.field,\n container: that.form\n });\n kendo.cycleForm(that.form);\n },\n _createForm: function (role) {\n var that = this, options = that.options, operators = that.operators || {}, type = that.type, hasCustomTemplate = isFunction(that.options.ui);\n operators = operators[type] || options.operators[type];\n that.form = $('