Prvi commit
This commit is contained in:
1
EveryThing/wwwroot/vendor/libs/bootstrap-table/extensions/reorder-columns/reorder-columns.js
vendored
Normal file
1
EveryThing/wwwroot/vendor/libs/bootstrap-table/extensions/reorder-columns/reorder-columns.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(e,t){var o=function(e){var t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=435)}({435:function(e,t,o){o(436)},436:function(e,t){!function(e){"use strict";e.extend(e.fn.bootstrapTable.defaults,{reorderableColumns:!1,maxMovingRows:10,onReorderColumn:function(e){return!1},dragaccept:null}),e.extend(e.fn.bootstrapTable.Constructor.EVENTS,{"reorder-column.bs.table":"onReorderColumn"});var t=e.fn.bootstrapTable.Constructor,o=t.prototype.initHeader,r=t.prototype.toggleColumn,n=t.prototype.toggleView,i=t.prototype.resetView;t.prototype.initHeader=function(){o.apply(this,Array.prototype.slice.apply(arguments)),this.options.reorderableColumns&&this.makeRowsReorderable()},t.prototype.toggleColumn=function(){r.apply(this,Array.prototype.slice.apply(arguments)),this.options.reorderableColumns&&this.makeRowsReorderable()},t.prototype.toggleView=function(){n.apply(this,Array.prototype.slice.apply(arguments)),this.options.reorderableColumns&&(this.options.cardView||this.makeRowsReorderable())},t.prototype.resetView=function(){i.apply(this,Array.prototype.slice.apply(arguments)),this.options.reorderableColumns&&this.makeRowsReorderable()},t.prototype.makeRowsReorderable=function(){var t=this;try{e(this.$el).dragtable("destroy")}catch(e){}e(this.$el).dragtable({maxMovingRows:t.options.maxMovingRows,dragaccept:t.options.dragaccept,clickDelay:200,beforeStop:function(){var o=[],r=[],n=[],i=[],l=-1,a=[];if(t.$header.find("th").each(function(t){o.push(e(this).data("field")),r.push(e(this).data("formatter"))}),o.length<t.columns.length){i=e.grep(t.columns,function(e){return!e.visible});for(var u=0;u<i.length;u++)o.push(i[u].field),r.push(i[u].formatter)}for(var u=0;u<this.length;u++)-1!==(l=t.fieldsColumnsIndex[o[u]])&&(t.columns[l].fieldIndex=u,n.push(t.columns[l]),t.columns.splice(l,1));t.columns=t.columns.concat(n),Array.prototype.filter||(Array.prototype.filter=function(e){if(null==this)throw new TypeError;var t=Object(this),o=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var r=[],n=arguments.length>=2?arguments[1]:void 0,i=0;i<o;i++)if(i in t){var l=t[i];e.call(n,l,i,t)&&r.push(l)}return r}),e.each(t.columns,function(e,o){var r=!1,n=o.field;t.options.columns[0].filter(function(e){return!(!r&&e.field==n&&(a.push(e),r=!0,1))})}),t.options.columns[0]=a,t.header.fields=o,t.header.formatters=r,t.initHeader(),t.initToolbar(),t.initBody(),t.resetView(),t.trigger("reorder-column",o)}})}}(jQuery)}});if("object"==typeof o){var r=["object"==typeof module&&"object"==typeof module.exports?module.exports:null,"undefined"!=typeof window?window:null,e&&e!==window?e:null];for(var n in o)r[0]&&(r[0][n]=o[n]),r[1]&&"__esModule"!==n&&(r[1][n]=o[n]),r[2]&&(r[2][n]=o[n])}}(this);
|
||||
Reference in New Issue
Block a user