UNPKG

8.08 kBJavaScriptView Raw
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.15.5
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i,u,f="object",c=function(t){return t&&t.Math==Math&&t},a=c(typeof globalThis==f&&globalThis)||c(typeof window==f&&window)||c(typeof self==f&&self)||c(typeof e==f&&e)||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},s=!l((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,h={f:y&&!p.call({1:2},1)?function(t){var e=y(this,t);return!!e&&e.enumerable}:p},g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,b=function(t){return d.call(t).slice(8,-1)},v="".split,m=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==b(t)?v.call(t,""):Object(t)}:Object,w=function(t){return m(function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}(t))},O=function(t){return"object"==typeof t?null!==t:"function"==typeof t},j=function(t,e){if(!O(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!O(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!O(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!O(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,A=function(t,e){return S.call(t,e)},P=a.document,T=O(P)&&O(P.createElement),x=!s&&!l((function(){return 7!=Object.defineProperty((t="div",T?P.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),E=Object.getOwnPropertyDescriptor,M={f:s?E:function(t,e){if(t=w(t),e=j(e,!0),x)try{return E(t,e)}catch(t){}if(A(t,e))return g(!h.f.call(t,e),t[e])}},_=function(t){if(!O(t))throw TypeError(String(t)+" is not an object");return t},z=Object.defineProperty,C={f:s?z:function(t,e,n){if(_(t),e=j(e,!0),_(n),x)try{return z(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}},V=s?function(t,e,n){return C.f(t,e,g(1,n))}:function(t,e,n){return t[e]=n,t},k=function(t,e){try{V(a,t,e)}catch(n){a[t]=e}return e},I=n((function(t){var e=a["__core-js_shared__"]||k("__core-js_shared__",{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),F=I("native-function-to-string",Function.toString),L=a.WeakMap,N="function"==typeof L&&/native code/.test(F.call(L)),q=0,$=Math.random(),B=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+$).toString(36)},D=I("keys"),G={},W=a.WeakMap;if(N){var K=new W,Q=K.get,R=K.has,Y=K.set;r=function(t,e){return Y.call(K,t,e),e},o=function(t){return Q.call(K,t)||{}},i=function(t){return R.call(K,t)}}else{var H=D[u="state"]||(D[u]=B(u));G[H]=!0,r=function(t,e){return V(t,H,e),e},o=function(t){return A(t,H)?t[H]:{}},i=function(t){return A(t,H)}}var J,U={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!O(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},X=n((function(t){var e=U.get,n=U.enforce,r=String(F).split("toString");I("inspectSource",(function(t){return F.call(t)})),(t.exports=function(t,e,o,i){var u=!!i&&!!i.unsafe,f=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||A(o,"name")||V(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t!==a?(u?!c&&t[e]&&(f=!0):delete t[e],f?t[e]=o:V(t,e,o)):f?t[e]=o:k(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F.call(this)}))})),Z=a,tt=function(t){return"function"==typeof t?t:void 0},et=Math.ceil,nt=Math.floor,rt=function(t){return isNaN(t=+t)?0:(t>0?nt:et)(t)},ot=Math.min,it=function(t){return t>0?ot(rt(t),9007199254740991):0},ut=Math.max,ft=Math.min,ct=function(t,e){var n=rt(t);return n<0?ut(n+e,0):ft(n,e)},at=function(t){return function(e,n,r){var o,i=w(e),u=it(i.length),f=ct(r,u);if(t&&n!=n){for(;u>f;)if((o=i[f++])!=o)return!0}else for(;u>f;f++)if((t||f in i)&&i[f]===n)return t||f||0;return!t&&-1}},lt={includes:at(!0),indexOf:at(!1)}.indexOf,st=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),pt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=w(t),o=0,i=[];for(n in r)!A(G,n)&&A(r,n)&&i.push(n);for(;e.length>o;)A(r,n=e[o++])&&(~lt(i,n)||i.push(n));return i}(t,st)}},yt={f:Object.getOwnPropertySymbols},ht=function(t,e){return arguments.length<2?tt(Z[t])||tt(a[t]):Z[t]&&Z[t][e]||a[t]&&a[t][e]}("Reflect","ownKeys")||function(t){var e=pt.f(_(t)),n=yt.f;return n?e.concat(n(t)):e},gt=function(t,e){for(var n=ht(e),r=C.f,o=M.f,i=0;i<n.length;i++){var u=n[i];A(t,u)||r(t,u,o(e,u))}},dt=/#|\.prototype\./,bt=function(t,e){var n=mt[vt(t)];return n==Ot||n!=wt&&("function"==typeof e?l(e):!!e)},vt=bt.normalize=function(t){return String(t).replace(dt,".").toLowerCase()},mt=bt.data={},wt=bt.NATIVE="N",Ot=bt.POLYFILL="P",jt=bt,St=M.f,At=Array.isArray||function(t){return"Array"==b(t)},Pt=function(t,e,n){var r=j(e);r in t?C.f(t,r,g(0,n)):t[r]=n},Tt=!!Object.getOwnPropertySymbols&&!l((function(){return!String(Symbol())})),xt=a.Symbol,Et=I("wks"),Mt=function(t){return Et[t]||(Et[t]=Tt&&xt[t]||(Tt?xt:B)("Symbol."+t))},_t=Mt("species"),zt=Mt("species"),Ct=[].slice,Vt=Math.max;!function(t,e){var n,r,o,i,u,f=t.target,c=t.global,l=t.stat;if(n=c?a:l?a[f]||k(f,{}):(a[f]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=St(n,r))&&u.value:n[r],!jt(c?r:f+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;gt(i,o)}(t.sham||o&&o.sham)&&V(i,"sham",!0),X(n,r,i,t)}}({target:"Array",proto:!0,forced:(J="slice",!!l((function(){var t=[];return(t.constructor={})[_t]=function(){return{foo:1}},1!==t[J](Boolean).foo})))},{slice:function(t,e){var n,r,o,i=w(this),u=it(i.length),f=ct(t,u),c=ct(void 0===e?u:e,u);if(At(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!At(n.prototype)?O(n)&&null===(n=n[zt])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ct.call(i,f,c);for(r=new(void 0===n?Array:n)(Vt(c-f,0)),o=0;f<c;f++,o++)f in i&&Pt(r,o,i[f]);return r.length=o,r}});var kt=function(t){return void 0!==t.$el.data("resizableColumns")},It=function(t){!t.options.resizable||t.options.cardView||kt(t)||t.$el.resizableColumns()},Ft=function(t){kt(t)&&t.$el.data("resizableColumns").destroy()},Lt=function(t){Ft(t),It(t)};t.extend(t.fn.bootstrapTable.defaults,{resizable:!1});var Nt=t.fn.bootstrapTable.Constructor,qt=Nt.prototype.initBody,$t=Nt.prototype.toggleView,Bt=Nt.prototype.resetView;Nt.prototype.initBody=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];qt.apply(this,Array.prototype.slice.apply(n)),t.$el.off("column-switch.bs.table, page-change.bs.table").on("column-switch.bs.table, page-change.bs.table",(function(){Lt(t)}))},Nt.prototype.toggleView=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];$t.apply(this,Array.prototype.slice.apply(e)),this.options.resizable&&this.options.cardView&&Ft(this)},Nt.prototype.resetView=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Bt.apply(this,Array.prototype.slice.apply(n)),this.options.resizable&&setTimeout((function(){It(t)}),100)}}));