26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
27 lines
7.6 KiB
JavaScript
Executable File
27 lines
7.6 KiB
JavaScript
Executable File
/**
|
|
* Kendo UI v2019.2.619 (http://www.telerik.com/kendo-ui)
|
|
* Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
|
|
*
|
|
* Kendo UI commercial licenses may be obtained at
|
|
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
|
|
* If you do not own a commercial license, this file shall be governed by the trial license terms.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
!function(e,define){define("kendo.columnsorter.min",["kendo.core.min"],e)}(function(){return function(e,t){function r(r){var i,o=r.find("tr:not(.k-filter-row)"),s=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},a=e();return o.length>1&&(a=o.find("th:visible").filter(s).filter(function(){return this.rowSpan>1})),a=a.add(o.last().find("th:visible").filter(s)),i=n.attr("index"),a.sort(function(r,n){var o,s;return r=e(r),n=e(n),o=r.attr(i),s=n.attr(i),o===t&&(o=e(r).index()),s===t&&(s=e(n).index()),o=parseInt(o,10),s=parseInt(s,10),o>s?1:o<s?-1:0}),a}var n=window.kendo,i=n.ui,o=i.Widget,s="dir",a="asc",l="single",d="field",c="desc",f=".kendoColumnSorter",h=".k-link",u="aria-sort",p=e.proxy,k=o.extend({init:function(e,t){var r,n=this;o.fn.init.call(n,e,t),n._refreshHandler=p(n.refresh,n),n.dataSource=n.options.dataSource.bind("change",n._refreshHandler),n.directions=n.options.initialDirection===a?[a,c]:[c,a],r=n.element.find(h),r[0]||(r=n.element.wrapInner('<a class="k-link" href="#"/>').find(h)),n.link=r,n.element.on("click"+f,p(n._click,n))},options:{name:"ColumnSorter",mode:l,allowUnsort:!0,compare:null,filter:"",initialDirection:a,showIndexes:!1},events:["change"],destroy:function(){var e=this;o.fn.destroy.call(e),e.element.off(f),e.dataSource.unbind("change",e._refreshHandler),e._refreshHandler=e.element=e.link=e.dataSource=null},refresh:function(){var i,o,l,f,h,p,k,g,m=this,S=m.dataSource.sort()||[],v=m.element,w=v.attr(n.attr(d));for(v.removeAttr(n.attr(s)),v.removeAttr(u),i=0,o=S.length;i<o;i++)l=S[i],w==l.field&&(v.attr(n.attr(s),l.dir),p=i+1);f=v.attr(n.attr(s)),v.is("th")&&(g=v.closest("table"),g.parent().hasClass("k-grid-header-wrap")?g=g.closest(".k-grid").find(".k-grid-content > table"):g.parent().hasClass("k-grid-header-locked")?g=g.closest(".k-grid").find(".k-grid-content-locked > table"):g.parent().hasClass("k-grid")||(g=null),g&&(v.attr(n.attr("index"))?(k=r(v.closest(".k-grid-header")),h=k.index(v)):h=v.parent().children(":visible").index(v),v.toggleClass("k-sorted",f!==t),g.children("colgroup").children(":not(.k-group-col):not(.k-hierarchy-col)").eq(h).toggleClass("k-sorted",f!==t))),v.find(".k-i-sort-asc-sm,.k-i-sort-desc-sm,.k-sort-order").remove(),f===a?(e('<span class="k-icon k-i-sort-asc-sm" />').appendTo(m.link),v.attr(u,"ascending")):f===c&&(e('<span class="k-icon k-i-sort-desc-sm" />').appendTo(m.link),v.attr(u,"descending")),m.options.showIndexes&&S.length>1&&p&&e('<span class="k-sort-order" />').html(p).appendTo(m.link)},_toggleSortDirection:function(e){var r=this.directions;return e===r[r.length-1]&&this.options.allowUnsort?t:r[0]===e?r[1]:r[0]},_click:function(e){var r,i,o=this,a=o.element,c=a.attr(n.attr(d)),f=a.attr(n.attr(s)),h=o.options,u=null===o.options.compare?t:o.options.compare,p=o.dataSource.sort()||[];if(e.preventDefault(),(!h.filter||a.is(h.filter))&&(f=this._toggleSortDirection(f),!this.trigger("change",{sort:{field:c,dir:f,compare:u}}))){if(h.mode===l)p=[{field:c,dir:f,compare:u}];else if("multiple"===h.mode){for(r=0,i=p.length;r<i;r++)if(p[r].field===c){p.splice(r,1);break}p.push({field:c,dir:f,compare:u})}this.dataSource.options.endless&&(this.dataSource.options.endless=null,a.closest(".k-grid").getKendoGrid()._endlessPageSize=o.dataSource.options.pageSize,this.dataSource.pageSize(o.dataSource.options.pageSize)),this.dataSource.sort(p)}}});i.plugin(k)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,r){(r||t)()});
|
|
//# sourceMappingURL=kendo.columnsorter.min.js.map
|