bootstrap-table-resizable.min.js 11 KB

12345678910
  1. /**
  2. * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)
  3. *
  4. * @version v1.19.1
  5. * @homepage https://bootstrap-table.com
  6. * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
  7. * @license MIT
  8. */
  9. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t){return t&&t.Math==Math&&t},y=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},b=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,v={f:g&&!d.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:d},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m={}.toString,O=function(t){return m.call(t).slice(8,-1)},j="".split,S=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?j.call(t,""):Object(t)}:Object,P=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},T=function(t){return S(P(t))},E=function(t){return"object"==typeof t?null!==t:"function"==typeof t},x=function(t,e){if(!E(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!E(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!E(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!E(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,A=function(t,e){return _.call(t,e)},M=y.document,k=E(M)&&E(M.createElement),z=!b&&!h((function(){return 7!=Object.defineProperty((t="div",k?M.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),R=Object.getOwnPropertyDescriptor,C={f:b?R:function(t,e){if(t=T(t),e=x(e,!0),z)try{return R(t,e)}catch(t){}if(A(t,e))return w(!v.f.call(t,e),t[e])}},B=function(t){if(!E(t))throw TypeError(String(t)+" is not an object");return t},V=Object.defineProperty,I={f:b?V:function(t,e,n){if(B(t),e=x(e,!0),B(n),z)try{return V(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},F=b?function(t,e,n){return I.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},L=function(t,e){try{F(y,t,e)}catch(n){y[t]=e}return e},N="__core-js_shared__",$=y[N]||L(N,{}),q=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(t){return q.call(t)});var D,G,W,K,Q=$.inspectSource,Y=y.WeakMap,H="function"==typeof Y&&/native code/.test(Q(Y)),J=s((function(t){(t.exports=function(t,e){return $[t]||($[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),U=0,X=Math.random(),Z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++U+X).toString(36)},tt=J("keys"),et={},nt=y.WeakMap;if(H){var rt=$.state||($.state=new nt),ot=rt.get,it=rt.has,ut=rt.set;D=function(t,e){return e.facade=t,ut.call(rt,t,e),e},G=function(t){return ot.call(rt,t)||{}},W=function(t){return it.call(rt,t)}}else{var ct=tt[K="state"]||(tt[K]=Z(K));et[ct]=!0,D=function(t,e){return e.facade=t,F(t,ct,e),e},G=function(t){return A(t,ct)?t[ct]:{}},W=function(t){return A(t,ct)}}var ft,at,lt={set:D,get:G,has:W,enforce:function(t){return W(t)?G(t):D(t,{})},getterFor:function(t){return function(e){var n;if(!E(e)||(n=G(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},st=s((function(t){var e=lt.get,n=lt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var u,c=!!i&&!!i.unsafe,f=!!i&&!!i.enumerable,a=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||A(o,"name")||F(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==y?(c?!a&&t[e]&&(f=!0):delete t[e],f?t[e]=o:F(t,e,o)):f?t[e]=o:L(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Q(this)}))})),pt=y,yt=function(t){return"function"==typeof t?t:void 0},ht=function(t,e){return arguments.length<2?yt(pt[t])||yt(y[t]):pt[t]&&pt[t][e]||y[t]&&y[t][e]},bt=Math.ceil,dt=Math.floor,gt=function(t){return isNaN(t=+t)?0:(t>0?dt:bt)(t)},vt=Math.min,wt=function(t){return t>0?vt(gt(t),9007199254740991):0},mt=Math.max,Ot=Math.min,jt=function(t){return function(e,n,r){var o,i=T(e),u=wt(i.length),c=function(t,e){var n=gt(t);return n<0?mt(n+e,0):Ot(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},St={includes:jt(!0),indexOf:jt(!1)}.indexOf,Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Tt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=T(t),o=0,i=[];for(n in r)!A(et,n)&&A(r,n)&&i.push(n);for(;e.length>o;)A(r,n=e[o++])&&(~St(i,n)||i.push(n));return i}(t,Pt)}},Et={f:Object.getOwnPropertySymbols},xt=ht("Reflect","ownKeys")||function(t){var e=Tt.f(B(t)),n=Et.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=xt(e),r=I.f,o=C.f,i=0;i<n.length;i++){var u=n[i];A(t,u)||r(t,u,o(e,u))}},At=/#|\.prototype\./,Mt=function(t,e){var n=zt[kt(t)];return n==Ct||n!=Rt&&("function"==typeof e?h(e):!!e)},kt=Mt.normalize=function(t){return String(t).replace(At,".").toLowerCase()},zt=Mt.data={},Rt=Mt.NATIVE="N",Ct=Mt.POLYFILL="P",Bt=Mt,Vt=C.f,It=Array.isArray||function(t){return"Array"==O(t)},Ft=function(t){return Object(P(t))},Lt=function(t,e,n){var r=x(e);r in t?I.f(t,r,w(0,n)):t[r]=n},Nt="process"==O(y.process),$t=ht("navigator","userAgent")||"",qt=y.process,Dt=qt&&qt.versions,Gt=Dt&&Dt.v8;Gt?at=(ft=Gt.split("."))[0]+ft[1]:$t&&(!(ft=$t.match(/Edge\/(\d+)/))||ft[1]>=74)&&(ft=$t.match(/Chrome\/(\d+)/))&&(at=ft[1]);var Wt,Kt=at&&+at,Qt=!!Object.getOwnPropertySymbols&&!h((function(){return!Symbol.sham&&(Nt?38===Kt:Kt>37&&Kt<41)})),Yt=Qt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ht=J("wks"),Jt=y.Symbol,Ut=Yt?Jt:Jt&&Jt.withoutSetter||Z,Xt=function(t){return A(Ht,t)&&(Qt||"string"==typeof Ht[t])||(Qt&&A(Jt,t)?Ht[t]=Jt[t]:Ht[t]=Ut("Symbol."+t)),Ht[t]},Zt=Xt("species"),te=function(t,e){var n;return It(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!It(n.prototype)?E(n)&&null===(n=n[Zt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ee=Xt("species"),ne=Xt("isConcatSpreadable"),re=9007199254740991,oe="Maximum allowed index exceeded",ie=Kt>=51||!h((function(){var t=[];return t[ne]=!1,t.concat()[0]!==t})),ue=(Wt="concat",Kt>=51||!h((function(){var t=[];return(t.constructor={})[ee]=function(){return{foo:1}},1!==t[Wt](Boolean).foo}))),ce=function(t){if(!E(t))return!1;var e=t[ne];return void 0!==e?!!e:It(t)};!function(t,e){var n,r,o,i,u,c=t.target,f=t.global,a=t.stat;if(n=f?y:a?y[c]||L(c,{}):(y[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Vt(n,r))&&u.value:n[r],!Bt(f?r:c+(a?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;_t(i,o)}(t.sham||o&&o.sham)&&F(i,"sham",!0),st(n,r,i,t)}}({target:"Array",proto:!0,forced:!ie||!ue},{concat:function(t){var e,n,r,o,i,u=Ft(this),c=te(u,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(ce(i=-1===e?u:arguments[e])){if(f+(o=wt(i.length))>re)throw TypeError(oe);for(n=0;n<o;n++,f++)n in i&&Lt(c,f,i[n])}else{if(f>=re)throw TypeError(oe);Lt(c,f++,i)}return c.length=f,c}});var fe=function(t){return void 0!==t.$el.data("resizableColumns")},ae=function(t){t.options.resizable&&!t.options.cardView&&!fe(t)&&t.$el.is(":visible")&&t.$el.resizableColumns({store:window.store})},le=function(t){fe(t)&&t.$el.data("resizableColumns").destroy()},se=function(t){le(t),ae(t)};n.default.extend(n.default.fn.bootstrapTable.defaults,{resizable:!1}),n.default.BootstrapTable=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,c,l=f(s);function s(){return r(this,s),l.apply(this,arguments)}return e=s,(n=[{key:"initBody",value:function(){for(var t,e=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(t=a(i(s.prototype),"initBody",this)).call.apply(t,[this].concat(r)),this.$el.off("column-switch.bs.table page-change.bs.table").on("column-switch.bs.table page-change.bs.table",(function(){se(e)})),se(this)}},{key:"toggleView",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=a(i(s.prototype),"toggleView",this)).call.apply(t,[this].concat(n)),this.options.resizable&&this.options.cardView&&le(this)}},{key:"resetView",value:function(){for(var t,e=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(t=a(i(s.prototype),"resetView",this)).call.apply(t,[this].concat(r)),this.options.resizable&&setTimeout((function(){ae(e)}),100)}}])&&o(e.prototype,n),c&&o(e,c),s}(n.default.BootstrapTable)}));