{"version":3,"sources":["kendo.pager.js"],"names":["f","define","$","undefined","button","template","idx","text","numeric","title","ns","kendo","selectOption","selected","icon","className","wrapClassName","iconTemplate","substring","update","element","selector","page","disabled","find","parent","attr","toggleClass","first","FIRST","prev","PREV","Math","max","next","totalPages","NEXT","min","last","LAST","window","ui","Widget","proxy","SIZE","CHANGE","NS","CLICK","KEYDOWN","DISABLED","MOUSEDOWN","MAX_VALUE","Number","Pager","extend","init","options","pageSizes","pageItems","that","this","sizeClassName","fn","call","_createDataSource","linkTemplate","selectTemplate","currentPageTemplate","numericSelectItemTemplate","_refreshHandler","refresh","dataSource","bind","downEvent","applyEventMap","guid","previousNext","length","append","messages","previous","_numericWrap","appendTo","_numericSelect","list","total","empty","input","format","of","on","_keydown","map","size","toLowerCase","allPages","itemsPerPage","html","join","end","val","pageSize","DropDownList","show","kendoDropDownList","_change","_refreshClick","info","_click","_numericSelectChange","addClass","autoBind","_resizeHandler","resize","_getWidthSizeClass","outerWidth","notify","destroy","off","unbind","events","name","numericItemTemplate","buttonCount","responsive","display","morePages","setDataSource","fetch","_resize","el","width","hasClass","removeClass","data","DataSource","create","e","reminder","hasAll","selectAll","start","selectHtml","collapsedTotal","_collapsedTotal","_isGroupPaged","groupsTotal","action","endless","filter","keyCode","keys","ENTER","parseInt","isNaN","preventDefault","read","value","currentTarget","_pageSize","_take","_skip","target","blur","is","ceil","trigger","index","sizes","split","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,eAAgB,cAAeD,IACxC,WA0WE,MAlWC,UAAUE,EAAGC,GAEV,QAASC,GAAOC,EAAUC,EAAKC,EAAMC,EAASC,GAC1C,MAAOJ,IACHC,IAAKA,EACLC,KAAMA,EACNG,GAAIC,EAAMD,GACVF,QAASA,EACTC,MAAOA,GAAS,KAGxB,QAASG,GAAaP,EAAUC,EAAKC,EAAMM,GACvC,MAAOR,IACHC,IAAKA,EACLC,KA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\n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('kendo.pager', ['kendo.data'], f);\n}(function () {\n var __meta__ = {\n id: 'pager',\n name: 'Pager',\n category: 'framework',\n depends: ['data'],\n advanced: true\n };\n (function ($, undefined) {\n var kendo = window.kendo, ui = kendo.ui, Widget = ui.Widget, proxy = $.proxy, FIRST = '.k-i-arrow-end-left', LAST = '.k-i-arrow-end-right', PREV = '.k-i-arrow-60-left', NEXT = '.k-i-arrow-60-right', SIZE = 'k-pager-md k-pager-sm', CHANGE = 'change', NS = '.kendoPager', CLICK = 'click', KEYDOWN = 'keydown', DISABLED = 'disabled', MOUSEDOWN = 'down', MAX_VALUE = Number.MAX_VALUE, iconTemplate = kendo.template('');\n function button(template, idx, text, numeric, title) {\n return template({\n idx: idx,\n text: text,\n ns: kendo.ns,\n numeric: numeric,\n title: title || ''\n });\n }\n function selectOption(template, idx, text, selected) {\n return template({\n idx: idx,\n text: text || idx,\n selected: selected || false\n });\n }\n function icon(className, text, wrapClassName) {\n return iconTemplate({\n className: className.substring(1),\n text: text,\n wrapClassName: wrapClassName || ''\n });\n }\n function update(element, selector, page, disabled) {\n element.find(selector).parent().attr(kendo.attr('page'), page).attr('tabindex', -1).toggleClass('k-state-disabled', disabled);\n }\n function first(element, page) {\n update(element, FIRST, 1, page <= 1);\n }\n function prev(element, page) {\n update(element, PREV, Math.max(1, page - 1), page <= 1);\n }\n function next(element, page, totalPages) {\n update(element, NEXT, Math.min(totalPages, page + 1), page >= totalPages);\n }\n function last(element, page, totalPages) {\n update(element, LAST, totalPages, page >= totalPages);\n }\n var Pager = Widget.extend({\n init: function (element, options) {\n var that = this, page, totalPages;\n var sizeClassName = null;\n Widget.fn.init.call(that, element, options);\n options = that.options;\n that._createDataSource(options);\n that.linkTemplate = kendo.template(that.options.linkTemplate);\n that.selectTemplate = kendo.template(that.options.selectTemplate);\n that.currentPageTemplate = kendo.template(that.options.currentPageTemplate);\n that.numericSelectItemTemplate = kendo.template(that.options.numericSelectItemTemplate);\n page = that.page();\n totalPages = that.totalPages();\n that._refreshHandler = proxy(that.refresh, that);\n that.dataSource.bind(CHANGE, that._refreshHandler);\n that.downEvent = kendo.applyEventMap(MOUSEDOWN, kendo.guid());\n if (options.previousNext) {\n if (!that.element.find(FIRST).length) {\n that.element.append(icon(FIRST, options.messages.first, 'k-pager-first'));\n first(that.element, page, totalPages);\n }\n if (!that.element.find(PREV).length) {\n that.element.append(icon(PREV, options.messages.previous));\n prev(that.element, page, totalPages);\n }\n }\n if (options.numeric) {\n if (!that._numericWrap) {\n that._numericWrap = that.element.find('.k-pager-numbers-wrap');\n if (that._numericWrap.length === 0) {\n that._numericWrap = $('
').appendTo(that.element);\n }\n }\n if (!that._numericSelect) {\n that._numericSelect = that._numericWrap.find('.k-dropdown');\n if (that._numericSelect.length === 0) {\n that._numericSelect = $('').appendTo(that._numericWrap);\n }\n }\n if (!that.list) {\n that.list = that._numericWrap.find('.k-pager-numbers');\n if (that.list.length === 0) {\n that.list = $('