/** * Copyright 2014 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ !function(e,define){define(["./kendo.data.min"],e)}(function(){return function(e,t){function n(e,t,n,i,r){return e({idx:t,text:n,ns:u.ns,numeric:i,title:r||""})}function i(e,t,n){return x({className:e.substring(1),text:t,wrapClassName:n||""})}function r(e,t,n,i){e.find(t).parent().attr(u.attr("page"),n).attr("tabindex",-1).toggleClass("k-state-disabled",i)}function o(e,t){r(e,h,1,1>=t)}function a(e,t){r(e,g,Math.max(1,t-1),1>=t)}function s(e,t,n){r(e,m,Math.min(n,t+1),t>=n)}function l(e,t,n){r(e,p,n,t>=n)}var u=window.kendo,d=u.ui,c=d.Widget,f=e.proxy,h=".k-i-seek-w",p=".k-i-seek-e",g=".k-i-arrow-w",m=".k-i-arrow-e",v="change",_=".kendoPager",y="click",b="keydown",w="disabled",x=u.template('#=text#'),k=c.extend({init:function(t,n){var r,d,w=this;c.fn.init.call(w,t,n),n=w.options,w.dataSource=u.data.DataSource.create(n.dataSource),w.linkTemplate=u.template(w.options.linkTemplate),w.selectTemplate=u.template(w.options.selectTemplate),r=w.page(),d=w.totalPages(),w._refreshHandler=f(w.refresh,w),w.dataSource.bind(v,w._refreshHandler),n.previousNext&&(w.element.find(h).length||(w.element.append(i(h,n.messages.first,"k-pager-first")),o(w.element,r,d)),w.element.find(g).length||(w.element.append(i(g,n.messages.previous)),a(w.element,r,d))),n.numeric&&(w.list=w.element.find(".k-pager-numbers"),w.list.length||(w.list=e('