{"version":3,"sources":["kendo.columnmenu.js"],"names":["f","define","$","undefined","trim","text","replace","toHash","arr","key","idx","len","current","result","length","leafColumns","columns","concat","push","kendo","window","ui","proxy","extend","grep","map","inArray","ACTIVE","ASC","DESC","CHANGE","INIT","SELECT","POPUP","FILTERMENU","MENU","NS","Widget","ColumnMenu","init","element","options","link","that","this","fn","call","owner","dataSource","field","attr","title","find","addClass","prepend","messages","settings","on","_click","wrapper","_refreshHandler","refresh","bind","_init","pane","_isMobile","_createMobileMenu","_createMenu","_muteAngularRebind","_angularItems","_sort","_columns","_filter","_lockColumns","trigger","container","events","name","sortAscending","sortDescending","filter","done","lock","unlock","sortable","filterable","animations","left","html","template","uid","guid","ns","_ownerColumns","showColumns","lockedColumns","popup","anchor","open","_open","activate","_activate","close","closeCallback","data","menu","children","orientation","closeOnClick","mobileTemplate","view","append","MobileMenu","e","preventDefault","_updateLockedColumns","action","angular","items","closest","col","column","_originalObject","elements","destroy","filterMenu","unbind","_updateColumnsMenuHandler","_updateColumnsLockedStateHandler","off","purge","stopPropagation","is","navigate","toggle","not","each","keyCode","keys","ESC","focus","menuColumns","originalField","hidden","index","locked","dir","item","hasClass","parent","removeClass","_sortDataSource","compare","sort","allowUnsort","mode","splice","_updateColumnsMenu","_updateColumnsLockedState","input","showColumn","hideColumn","checked","checkboxes","fieldAttr","lockedAttr","visible","visibleDataFields","lockedCount","nonLockedCount","prop","eq","widget","multi","checkSource","appendToElement","values","change","lockColumn","unlockColumn","lockItem","unlockItem","descriptor","_filterExist","filters","found","target","currentTarget","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,oBACH,cACA,mBACA,cACDD,IACL,WAyhBE,MA7gBC,UAAUE,EAAGC,GAEV,QAASC,GAAKC,GACV,MAAOH,GAAEE,KAAKC,GAAMC,QAAQ,WAAY,IAE5C,QAASC,GAAOC,EAAKC,GAArB,GAEQC,GAAKC,EAAKC,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GAAV,GAENxG,GAKKtE,EAASI,EANd2K,GAAQ,CAEZ,IAAKD,EAAL,CAIA,IADAA,EAAUA,EAAQA,QACT9K,EAAM,EAAGI,EAAS0K,EAAQ1K,OAAQJ,EAAMI,EAAQJ,IACrDsE,EAASwG,EAAQ9K,GACbsE,EAAO/B,OAASL,KAAKK,MACrBwI,GAAQ,EACDzG,EAAOwG,UACdC,EAAQA,GAAS7I,KAAK2I,aAAavG,GAG3C,OAAOyG,OAGXhG,EAAW,y9CACXoB,EAAiB,m9CACjBG,EAAa3E,EAAOd,QACpBgB,KAAM,SAAUC,EAASC,GACrBJ,EAAOQ,GAAGN,KAAKO,KAAKF,KAAMJ,EAASC,GACnCG,KAAKJ,QAAQiB,GAAG,QAAUrB,EAAI,qDAAsD,WAExFwC,QAAS5C,GACT0B,OAAQ,SAAUuD,GACT/G,EAAE+G,EAAEyE,QAAQtD,GAAG,oBAChBnB,EAAEC,iBAENtE,KAAK8B,QAAQ1C,GAAUmH,KAAMlC,EAAE0E,iBAEnCrF,MAAO,WACH1D,KAAKH,QAAQuB,KAAKqE,SAAS,KAE/BT,QAAS,WACLvF,EAAOQ,GAAG+E,QAAQ9E,KAAKF,MACvBA,KAAKJ,QAAQyF,IAAI7F,KAGzBf,GAAGuK,OAAOtJ,IACZlB,OAAOD,MAAM0K,QACRzK,OAAOD,OACE,kBAAVlB,SAAwBA,OAAO6L,IAAM7L,OAAS,SAAU8L,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.columnmenu.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.columnmenu', [\n 'kendo.popup',\n 'kendo.filtermenu',\n 'kendo.menu'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'columnmenu',\n name: 'Column Menu',\n category: 'framework',\n depends: [\n 'popup',\n 'filtermenu',\n 'menu'\n ],\n advanced: true\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, proxy = $.proxy, extend = $.extend, grep = $.grep, map = $.map, inArray = $.inArray, ACTIVE = 'k-state-selected', ASC = 'asc', DESC = 'desc', CHANGE = 'change', INIT = 'init', SELECT = 'select', POPUP = 'kendoPopup', FILTERMENU = 'kendoFilterMenu', MENU = 'kendoMenu', NS = '.kendoColumnMenu', Widget = ui.Widget;\n function trim(text) {\n return $.trim(text).replace(/ /gi, '');\n }\n function toHash(arr, key) {\n var result = {};\n var idx, len, current;\n for (idx = 0, len = arr.length; idx < len; idx++) {\n current = arr[idx];\n result[current[key]] = current;\n }\n return result;\n }\n function leafColumns(columns) {\n var result = [];\n for (var idx = 0; idx < columns.length; idx++) {\n if (!columns[idx].columns) {\n result.push(columns[idx]);\n continue;\n }\n result = result.concat(leafColumns(columns[idx].columns));\n }\n return result;\n }\n var ColumnMenu = Widget.extend({\n init: function (element, options) {\n var that = this, link;\n Widget.fn.init.call(that, element, options);\n element = that.element;\n options = that.options;\n that.owner = options.owner;\n that.dataSource = options.dataSource;\n that.field = element.attr(kendo.attr('field'));\n that.title = element.attr(kendo.attr('title'));\n link = element.find('.k-header-column-menu');\n if (!link[0]) {\n link = element.addClass('k-with-icon').prepend('' + options.messages.settings + '').find('.k-header-column-menu');\n }\n that.link = link.attr('tabindex', -1).on('click' + NS, proxy(that._click, that));\n that.wrapper = $('
');\n that._refreshHandler = proxy(that.refresh, that);\n that.dataSource.bind(CHANGE, that._refreshHandler);\n },\n _init: function () {\n var that = this;\n that.pane = that.options.pane;\n if (that.pane) {\n that._isMobile = true;\n }\n if (that._isMobile) {\n that._createMobileMenu();\n } else {\n that._createMenu();\n }\n that.owner._muteAngularRebind(function () {\n that._angularItems('compile');\n });\n that._sort();\n that._columns();\n that._filter();\n that._lockColumns();\n that.trigger(INIT, {\n field: that.field,\n container: that.wrapper\n });\n },\n events: [\n INIT,\n 'sort',\n 'filtering'\n ],\n options: {\n name: 'ColumnMenu',\n messages: {\n sortAscending: 'Sort Ascending',\n sortDescending: 'Sort Descending',\n filter: 'Filter',\n columns: 'Columns',\n done: 'Done',\n settings: 'Column Settings',\n lock: 'Lock',\n unlock: 'Unlock'\n },\n filter: '',\n columns: true,\n sortable: true,\n filterable: true,\n animations: { left: 'slide' }\n },\n _createMenu: function () {\n var that = this, options = that.options;\n that.wrapper.html(kendo.template(template)({\n uid: kendo.guid(),\n ns: kendo.ns,\n messages: options.messages,\n sortable: options.sortable,\n filterable: options.filterable,\n columns: that._ownerColumns(),\n showColumns: options.columns,\n lockedColumns: options.lockedColumns\n }));\n that.popup = that.wrapper[POPUP]({\n anchor: that.link,\n open: proxy(that._open, that),\n activate: proxy(that._activate, that),\n close: function () {\n if (that.options.closeCallback) {\n that.options.closeCallback(that.element);\n }\n }\n }).data(POPUP);\n that.menu = that.wrapper.children()[MENU]({\n orientation: 'vertical',\n closeOnClick: false\n }).data(MENU);\n },\n _createMobileMenu: function () {\n var that = this, options = that.options;\n var html = kendo.template(mobileTemplate)({\n ns: kendo.ns,\n field: that.field,\n title: that.title || that.field,\n messages: options.messages,\n sortable: options.sortable,\n filterable: options.filterable,\n columns: that._ownerColumns(),\n showColumns: options.columns,\n lockedColumns: options.lockedColumns\n });\n that.view = that.pane.append(html);\n that.wrapper = that.view.element.find('.k-column-menu');\n that.menu = new MobileMenu(that.wrapper.children(), { pane: that.pane });\n that.view.element.on('click', '.k-done', function (e) {\n that.close();\n e.preventDefault();\n });\n if (that.options.lockedColumns) {\n that.view.bind('show', function () {\n that._updateLockedColumns();\n });\n }\n },\n _angularItems: function (action) {\n var that = this;\n that.angular(action, function () {\n var items = that.wrapper.find('.k-columns-item input[' + kendo.attr('field') + ']').map(function () {\n return $(this).closest('li');\n });\n var data = map(that._ownerColumns(), function (col) {\n return { column: col._originalObject };\n });\n return {\n elements: items,\n data: data\n };\n });\n },\n destroy: function () {\n var that = this;\n that._angularItems('cleanup');\n Widget.fn.destroy.call(that);\n if (that.filterMenu) {\n that.filterMenu.destroy();\n }\n if (that._refreshHandler) {\n that.dataSource.unbind(CHANGE, that._refreshHandler);\n }\n if (that.options.columns && that.owner) {\n if (that._updateColumnsMenuHandler) {\n that.owner.unbind('columnShow', that._updateColumnsMenuHandler);\n that.owner.unbind('columnHide', that._updateColumnsMenuHandler);\n }\n if (that._updateColumnsLockedStateHandler) {\n that.owner.unbind('columnLock', that._updateColumnsLockedStateHandler);\n that.owner.unbind('columnUnlock', that._updateColumnsLockedStateHandler);\n }\n }\n if (that.menu) {\n that.menu.element.off(NS);\n that.menu.destroy();\n }\n that.wrapper.off(NS);\n if (that.popup) {\n that.popup.destroy();\n }\n if (that.view) {\n that.view.purge();\n }\n that.link.off(NS);\n that.owner = null;\n that.wrapper = null;\n that.element = null;\n },\n close: function () {\n this.menu.close();\n if (this.popup) {\n this.popup.close();\n this.popup.element.off('keydown' + NS);\n }\n },\n _click: function (e) {\n e.preventDefault();\n e.stopPropagation();\n var options = this.options;\n if (options.filter && this.element.is(!options.filter)) {\n return;\n }\n if (!this.popup && !this.pane) {\n this._init();\n }\n if (this._isMobile) {\n this.pane.navigate(this.view, this.options.animations.left);\n } else {\n this.popup.toggle();\n }\n },\n _open: function () {\n var that = this;\n $('.k-column-menu').not(that.wrapper).each(function () {\n $(this).data(POPUP).close();\n });\n that.popup.element.on('keydown' + NS, function (e) {\n if (e.keyCode == kendo.keys.ESC) {\n that.close();\n }\n });\n if (that.options.lockedColumns) {\n that._updateLockedColumns();\n }\n },\n _activate: function () {\n this.menu.element.focus();\n },\n _ownerColumns: function () {\n var columns = leafColumns(this.owner.columns), menuColumns = grep(columns, function (col) {\n var result = true, title = trim(col.title || '');\n if (col.menu === false || !col.field && !title.length) {\n result = false;\n }\n return result;\n });\n return map(menuColumns, function (col) {\n return {\n originalField: col.field,\n field: col.field || col.title,\n title: col.title || col.field,\n hidden: col.hidden,\n index: inArray(col, columns),\n locked: !!col.locked,\n _originalObject: col\n };\n });\n },\n _sort: function () {\n var that = this;\n if (that.options.sortable) {\n that.refresh();\n that.menu.bind(SELECT, function (e) {\n var item = $(e.item), dir;\n if (item.hasClass('k-sort-asc')) {\n dir = ASC;\n } else if (item.hasClass('k-sort-desc')) {\n dir = DESC;\n }\n if (!dir) {\n return;\n }\n item.parent().find('.k-sort-' + (dir == ASC ? DESC : ASC)).removeClass(ACTIVE);\n that._sortDataSource(item, dir);\n that.close();\n });\n }\n },\n _sortDataSource: function (item, dir) {\n var that = this, sortable = that.options.sortable, compare = sortable.compare === null ? undefined : sortable.compare, dataSource = that.dataSource, idx, length, sort = dataSource.sort() || [];\n var removeClass = item.hasClass(ACTIVE) && sortable && sortable.allowUnsort !== false;\n dir = !removeClass ? dir : undefined;\n if (that.trigger('sort', {\n sort: {\n field: that.field,\n dir: dir,\n compare: compare\n }\n })) {\n return;\n }\n if (removeClass) {\n item.removeClass(ACTIVE);\n } else {\n item.addClass(ACTIVE);\n }\n if (sortable.mode === 'multiple') {\n for (idx = 0, length = sort.length; idx < length; idx++) {\n if (sort[idx].field === that.field) {\n sort.splice(idx, 1);\n break;\n }\n }\n sort.push({\n field: that.field,\n dir: dir,\n compare: compare\n });\n } else {\n sort = [{\n field: that.field,\n dir: dir,\n compare: compare\n }];\n }\n dataSource.sort(sort);\n },\n _columns: function () {\n var that = this;\n if (that.options.columns) {\n that._updateColumnsMenu();\n that._updateColumnsMenuHandler = proxy(that._updateColumnsMenu, that);\n that.owner.bind([\n 'columnHide',\n 'columnShow'\n ], that._updateColumnsMenuHandler);\n that._updateColumnsLockedStateHandler = proxy(that._updateColumnsLockedState, that);\n that.owner.bind([\n 'columnUnlock',\n 'columnLock'\n ], that._updateColumnsLockedStateHandler);\n that.menu.bind(SELECT, function (e) {\n var item = $(e.item), input, column, columns = leafColumns(that.owner.columns), field;\n if (that._isMobile) {\n e.preventDefault();\n }\n if (!item.parent().closest('li.k-columns-item')[0]) {\n return;\n }\n input = item.find(':checkbox');\n if (input.attr('disabled')) {\n return;\n }\n field = input.attr(kendo.attr('field'));\n column = grep(columns, function (column) {\n return column.field == field || column.title == field;\n })[0];\n if (column.hidden === true) {\n that.owner.showColumn(column);\n } else {\n that.owner.hideColumn(column);\n }\n });\n }\n },\n _updateColumnsMenu: function () {\n var idx, length, current, checked, locked;\n var fieldAttr = kendo.attr('field'), lockedAttr = kendo.attr('locked'), visible = grep(this._ownerColumns(), function (field) {\n return !field.hidden;\n }), visibleDataFields = grep(visible, function (field) {\n return field.originalField;\n }), lockedCount = grep(visibleDataFields, function (col) {\n return col.locked === true;\n }).length, nonLockedCount = grep(visibleDataFields, function (col) {\n return col.locked !== true;\n }).length;\n visible = map(visible, function (col) {\n return col.field;\n });\n this.wrapper.find('[role=\\'menuitemcheckbox\\']').attr('aria-checked', false);\n var checkboxes = this.wrapper.find('.k-columns-item input[' + fieldAttr + ']').prop('disabled', false).prop('checked', false);\n for (idx = 0, length = checkboxes.length; idx < length; idx++) {\n current = checkboxes.eq(idx);\n locked = current.attr(lockedAttr) === 'true';\n checked = false;\n if (inArray(current.attr(fieldAttr), visible) > -1) {\n checked = true;\n current.prop('checked', checked);\n }\n current.closest('[role=\\'menuitemcheckbox\\']').attr('aria-checked', checked);\n if (checked) {\n if (lockedCount == 1 && locked) {\n current.prop('disabled', true);\n }\n if (nonLockedCount == 1 && !locked) {\n current.prop('disabled', true);\n }\n }\n }\n },\n _updateColumnsLockedState: function () {\n var idx, length, current, column;\n var fieldAttr = kendo.attr('field');\n var lockedAttr = kendo.attr('locked');\n var columns = toHash(this._ownerColumns(), 'field');\n var checkboxes = this.wrapper.find('.k-columns-item input[type=checkbox]');\n for (idx = 0, length = checkboxes.length; idx < length; idx++) {\n current = checkboxes.eq(idx);\n column = columns[current.attr(fieldAttr)];\n if (column) {\n current.attr(lockedAttr, column.locked);\n }\n }\n this._updateColumnsMenu();\n },\n _filter: function () {\n var that = this, widget = FILTERMENU, options = that.options;\n if (options.filterable !== false) {\n if (options.filterable.multi) {\n widget = 'kendoFilterMultiCheck';\n if (options.filterable.dataSource) {\n options.filterable.checkSource = options.filterable.dataSource;\n delete options.filterable.dataSource;\n }\n }\n that.filterMenu = that.wrapper.find('.k-filterable')[widget](extend(true, {}, {\n appendToElement: true,\n dataSource: options.dataSource,\n values: options.values,\n field: that.field,\n title: that.title,\n change: function (e) {\n if (that.trigger('filtering', {\n filter: e.filter,\n field: e.field\n })) {\n e.preventDefault();\n }\n }\n }, options.filterable)).data(widget);\n if (that._isMobile) {\n that.menu.bind(SELECT, function (e) {\n var item = $(e.item);\n if (item.hasClass('k-filter-item')) {\n that.pane.navigate(that.filterMenu.view, that.options.animations.left);\n }\n });\n }\n }\n },\n _lockColumns: function () {\n var that = this;\n that.menu.bind(SELECT, function (e) {\n var item = $(e.item);\n if (item.hasClass('k-lock')) {\n that.owner.lockColumn(that.field);\n that.close();\n } else if (item.hasClass('k-unlock')) {\n that.owner.unlockColumn(that.field);\n that.close();\n }\n });\n },\n _updateLockedColumns: function () {\n var field = this.field;\n var columns = this.owner.columns;\n var column = grep(columns, function (column) {\n return column.field == field || column.title == field;\n })[0];\n if (!column) {\n return;\n }\n var locked = column.locked === true;\n var length = grep(columns, function (column) {\n return !column.hidden && (column.locked && locked || !column.locked && !locked);\n }).length;\n var lockItem = this.wrapper.find('.k-lock').removeClass('k-state-disabled');\n var unlockItem = this.wrapper.find('.k-unlock').removeClass('k-state-disabled');\n if (locked || length == 1) {\n lockItem.addClass('k-state-disabled');\n }\n if (!locked || length == 1) {\n unlockItem.addClass('k-state-disabled');\n }\n this._updateColumnsLockedState();\n },\n refresh: function () {\n var that = this, sort = that.options.dataSource.sort() || [], descriptor, field = that.field, idx, length;\n that.wrapper.find('.k-sort-asc, .k-sort-desc').removeClass(ACTIVE);\n for (idx = 0, length = sort.length; idx < length; idx++) {\n descriptor = sort[idx];\n if (field == descriptor.field) {\n that.wrapper.find('.k-sort-' + descriptor.dir).addClass(ACTIVE);\n }\n }\n that.link[that._filterExist(that.dataSource.filter()) ? 'addClass' : 'removeClass']('k-state-active');\n },\n _filterExist: function (filters) {\n var found = false;\n var filter;\n if (!filters) {\n return;\n }\n filters = filters.filters;\n for (var idx = 0, length = filters.length; idx < length; idx++) {\n filter = filters[idx];\n if (filter.field == this.field) {\n found = true;\n } else if (filter.filters) {\n found = found || this._filterExist(filter);\n }\n }\n return found;\n }\n });\n var template = '';\n var mobileTemplate = '
' + '
' + '${messages.settings}' + '' + '
' + '
  • ' + '${title}
      ' + '#if(sortable){#' + '
    • ${messages.sortAscending}
    • ' + '
    • ${messages.sortDescending}
    • ' + '#}#' + '#if(lockedColumns){#' + '
    • ${messages.lock}
    • ' + '
    • ${messages.unlock}
    • ' + '#}#' + '#if(filterable){#' + '
    • ' + '' + '' + '${messages.filter}' + '
    • ' + '#}#' + '
  • ' + '#if(showColumns){#' + '
  • ${messages.columns}
      ' + '#for (var idx = 0; idx < columns.length; idx++) {#' + '
    • ' + '#}#' + '
  • ' + '#}#' + '
' + '
';\n var MobileMenu = Widget.extend({\n init: function (element, options) {\n Widget.fn.init.call(this, element, options);\n this.element.on('click' + NS, 'li.k-item:not(.k-separator):not(.k-state-disabled)', '_click');\n },\n events: [SELECT],\n _click: function (e) {\n if (!$(e.target).is('[type=checkbox]')) {\n e.preventDefault();\n }\n this.trigger(SELECT, { item: e.currentTarget });\n },\n close: function () {\n this.options.pane.navigate('');\n },\n destroy: function () {\n Widget.fn.destroy.call(this);\n this.element.off(NS);\n }\n });\n ui.plugin(ColumnMenu);\n }(window.kendo.jQuery));\n return window.kendo;\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"],"sourceRoot":"/source/"}