UNPKG

bootstrap-table

Version:

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11 lines (9 loc) 17 kB
/** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * * @version v1.24.1 * @homepage https://bootstrap-table.com * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/) * @license MIT */ !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t((r="undefined"!=typeof globalThis?globalThis:r||self).jQuery)}(this,(function(r){"use strict";function t(r,t,n){return t=o(t),function(r,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,u()?Reflect.construct(t,n||[],o(r).constructor):t.apply(r,n))}function n(r,t,n){return function(r,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,f(e.key),e)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function e(){return e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(r,t,n){var e=function(r,t){for(;!{}.hasOwnProperty.call(r,t)&&null!==(r=o(r)););return r}(r,t);if(e){var u=Object.getOwnPropertyDescriptor(e,t);return u.get?u.get.call(arguments.length<3?r:n):u.value}},e.apply(null,arguments)}function o(r){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},o(r)}function u(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(u=function(){return!!r})()}function i(r,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,t){return r.__proto__=t,r},i(r,t)}function f(r){var t=function(r,t){if("object"!=typeof r||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var e=n.call(r,t);if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r,"string");return"symbol"==typeof t?t:t+""}var c,a,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p={};function s(){if(a)return c;a=1;var r=function(r){return r&&r.Math===Math&&r};return c=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof l&&l)||r("object"==typeof c&&c)||function(){return this}()||Function("return this")()}var v,y,b,g,h,d,m,w,O={};function j(){return y?v:(y=1,v=function(r){try{return!!r()}catch(r){return!0}})}function S(){if(g)return b;g=1;var r=j();return b=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function P(){if(d)return h;d=1;var r=j();return h=!r((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))}function E(){if(w)return m;w=1;var r=P(),t=Function.prototype.call;return m=r?t.bind(t):function(){return t.apply(t,arguments)},m}var T,_,x,k,C,M,R,F,I,D,L,z,A,B,N,q,U,G,W,$,K,Q,V,X,Y,H,J,Z,rr,tr,nr,er,or,ur,ir,fr,cr,ar,lr,pr,sr,vr={};function yr(){if(T)return vr;T=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return vr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,vr}function br(){return x?_:(x=1,_=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function gr(){if(C)return k;C=1;var r=P(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return k=r?e:function(r){return function(){return n.apply(r,arguments)}},k}function hr(){if(I)return F;I=1;var r=gr(),t=j(),n=function(){if(R)return M;R=1;var r=gr(),t=r({}.toString),n=r("".slice);return M=function(r){return n(t(r),8,-1)}}(),e=Object,o=r("".split);return F=t((function(){return!e("z").propertyIsEnumerable(0)}))?function(r){return"String"===n(r)?o(r,""):e(r)}:e}function dr(){return L?D:(L=1,D=function(r){return null==r})}function mr(){if(A)return z;A=1;var r=dr(),t=TypeError;return z=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function wr(){if(N)return B;N=1;var r=hr(),t=mr();return B=function(n){return r(t(n))}}function Or(){if(U)return q;U=1;var r="object"==typeof document&&document.all;return q=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function jr(){if(W)return G;W=1;var r=Or();return G=function(t){return"object"==typeof t?null!==t:r(t)}}function Sr(){if(K)return $;K=1;var r=s(),t=Or();return $=function(n,e){return arguments.length<2?(o=r[n],t(o)?o:void 0):r[n]&&r[n][e];var o},$}function Pr(){if(J)return H;J=1;var r,t,n=s(),e=function(){if(Y)return X;Y=1;var r=s().navigator,t=r&&r.userAgent;return X=t?String(t):""}(),o=n.process,u=n.Deno,i=o&&o.versions||u&&u.version,f=i&&i.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),H=t}function Er(){if(rr)return Z;rr=1;var r=Pr(),t=j(),n=s().String;return Z=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))}function Tr(){if(nr)return tr;nr=1;var r=Er();return tr=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function _r(){if(or)return er;or=1;var r=Sr(),t=Or(),n=function(){if(V)return Q;V=1;var r=gr();return Q=r({}.isPrototypeOf)}(),e=Tr(),o=Object;return er=e?function(r){return"symbol"==typeof r}:function(e){var u=r("Symbol");return t(u)&&n(u.prototype,o(e))}}function xr(){if(ir)return ur;ir=1;var r=String;return ur=function(t){try{return r(t)}catch(r){return"Object"}}}function kr(){if(cr)return fr;cr=1;var r=Or(),t=xr(),n=TypeError;return fr=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Cr(){if(lr)return ar;lr=1;var r=kr(),t=dr();return ar=function(n,e){var o=n[e];return t(o)?void 0:r(o)}}function Mr(){if(sr)return pr;sr=1;var r=E(),t=Or(),n=jr(),e=TypeError;return pr=function(o,u){var i,f;if("string"===u&&t(i=o.toString)&&!n(f=r(i,o)))return f;if(t(i=o.valueOf)&&!n(f=r(i,o)))return f;if("string"!==u&&t(i=o.toString)&&!n(f=r(i,o)))return f;throw new e("Can't convert object to primitive value")}}var Rr,Fr,Ir,Dr,Lr,zr,Ar,Br,Nr,qr,Ur,Gr,Wr,$r,Kr,Qr,Vr,Xr,Yr,Hr,Jr,Zr,rt,tt,nt={exports:{}};function et(){if(Dr)return Ir;Dr=1;var r=s(),t=Object.defineProperty;return Ir=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function ot(){if(Lr)return nt.exports;Lr=1;var r=Fr?Rr:(Fr=1,Rr=!1),t=s(),n=et(),e="__core-js_shared__",o=nt.exports=t[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),nt.exports}function ut(){if(Ar)return zr;Ar=1;var r=ot();return zr=function(t,n){return r[t]||(r[t]=n||{})}}function it(){if(Nr)return Br;Nr=1;var r=mr(),t=Object;return Br=function(n){return t(r(n))}}function ft(){if(Ur)return qr;Ur=1;var r=gr(),t=it(),n=r({}.hasOwnProperty);return qr=Object.hasOwn||function(r,e){return n(t(r),e)}}function ct(){if(Wr)return Gr;Wr=1;var r=gr(),t=0,n=Math.random(),e=r(1..toString);return Gr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function at(){if(Kr)return $r;Kr=1;var r=s(),t=ut(),n=ft(),e=ct(),o=Er(),u=Tr(),i=r.Symbol,f=t("wks"),c=u?i.for||i:i&&i.withoutSetter||e;return $r=function(r){return n(f,r)||(f[r]=o&&n(i,r)?i[r]:c("Symbol."+r)),f[r]}}function lt(){if(Vr)return Qr;Vr=1;var r=E(),t=jr(),n=_r(),e=Cr(),o=Mr(),u=at(),i=TypeError,f=u("toPrimitive");return Qr=function(u,c){if(!t(u)||n(u))return u;var a,l=e(u,f);if(l){if(void 0===c&&(c="default"),a=r(l,u,c),!t(a)||n(a))return a;throw new i("Can't convert object to primitive value")}return void 0===c&&(c="number"),o(u,c)}}function pt(){if(Yr)return Xr;Yr=1;var r=lt(),t=_r();return Xr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function st(){if(rt)return Zr;rt=1;var r=S(),t=j(),n=function(){if(Jr)return Hr;Jr=1;var r=s(),t=jr(),n=r.document,e=t(n)&&t(n.createElement);return Hr=function(r){return e?n.createElement(r):{}}}();return Zr=!r&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function vt(){if(tt)return O;tt=1;var r=S(),t=E(),n=yr(),e=br(),o=wr(),u=pt(),i=ft(),f=st(),c=Object.getOwnPropertyDescriptor;return O.f=r?c:function(r,a){if(r=o(r),a=u(a),f)try{return c(r,a)}catch(r){}if(i(r,a))return e(!t(n.f,r,a),r[a])},O}var yt,bt,gt,ht,dt,mt,wt,Ot={};function jt(){if(ht)return gt;ht=1;var r=jr(),t=String,n=TypeError;return gt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function St(){if(dt)return Ot;dt=1;var r=S(),t=st(),n=function(){if(bt)return yt;bt=1;var r=S(),t=j();return yt=r&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}(),e=jt(),o=pt(),u=TypeError,i=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",l="writable";return Ot.f=r?n?function(r,t,n){if(e(r),t=o(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var u=f(r,t);u&&u[l]&&(r[t]=n.value,n={configurable:a in n?n[a]:u[a],enumerable:c in n?n[c]:u[c],writable:!1})}return i(r,t,n)}:i:function(r,n,f){if(e(r),n=o(n),e(f),t)try{return i(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new u("Accessors not supported");return"value"in f&&(r[n]=f.value),r},Ot}function Pt(){if(wt)return mt;wt=1;var r=S(),t=St(),n=br();return mt=r?function(r,e,o){return t.f(r,e,n(1,o))}:function(r,t,n){return r[t]=n,r}}var Et,Tt,_t,xt,kt,Ct,Mt,Rt,Ft,It,Dt,Lt,zt,At,Bt,Nt={exports:{}};function qt(){if(xt)return _t;xt=1;var r=gr(),t=Or(),n=ot(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),_t=n.inspectSource}function Ut(){if(Rt)return Mt;Rt=1;var r=ut(),t=ct(),n=r("keys");return Mt=function(r){return n[r]||(n[r]=t(r))}}function Gt(){return It?Ft:(It=1,Ft={})}function Wt(){if(Lt)return Dt;Lt=1;var r,t,n,e=function(){if(Ct)return kt;Ct=1;var r=s(),t=Or(),n=r.WeakMap;return kt=t(n)&&/native code/.test(String(n))}(),o=s(),u=jr(),i=Pt(),f=ft(),c=ot(),a=Ut(),l=Gt(),p="Object already initialized",v=o.TypeError,y=o.WeakMap;if(e||c.state){var b=c.state||(c.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,r=function(r,t){if(b.has(r))throw new v(p);return t.facade=r,b.set(r,t),t},t=function(r){return b.get(r)||{}},n=function(r){return b.has(r)}}else{var g=a("state");l[g]=!0,r=function(r,t){if(f(r,g))throw new v(p);return t.facade=r,i(r,g,t),t},t=function(r){return f(r,g)?r[g]:{}},n=function(r){return f(r,g)}}return Dt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!u(n)||(e=t(n)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}}function $t(){if(zt)return Nt.exports;zt=1;var r=gr(),t=j(),n=Or(),e=ft(),o=S(),u=function(){if(Tt)return Et;Tt=1;var r=S(),t=ft(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,o=t(n,"name"),u=o&&"something"===function(){}.name,i=o&&(!r||r&&e(n,"name").configurable);return Et={EXISTS:o,PROPER:u,CONFIGURABLE:i}}().CONFIGURABLE,i=qt(),f=Wt(),c=f.enforce,a=f.get,l=String,p=Object.defineProperty,s=r("".slice),v=r("".replace),y=r([].join),b=o&&!t((function(){return 8!==p((function(){}),"length",{value:8}).length})),g=String(String).split("String"),h=Nt.exports=function(r,t,n){"Symbol("===s(l(t),0,7)&&(t="["+v(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||u&&r.name!==t)&&(o?p(r,"name",{value:t,configurable:!0}):r.name=t),b&&n&&e(n,"arity")&&r.length!==n.arity&&p(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&p(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var i=c(r);return e(i,"source")||(i.source=y(g,"string"==typeof t?t:"")),r};return Function.prototype.toString=h((function(){return n(this)&&a(this).source||i(this)}),"toString"),Nt.exports}function Kt(){if(Bt)return At;Bt=1;var r=Or(),t=St(),n=$t(),e=et();return At=function(o,u,i,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:u;if(r(i)&&n(i,a,f),f.global)c?o[u]=i:e(u,i);else{try{f.unsafe?o[u]&&(c=!0):delete o[u]}catch(r){}c?o[u]=i:t.f(o,u,{value:i,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return o}}var Qt,Vt,Xt,Yt,Ht,Jt,Zt,rn,tn,nn,en,on,un,fn,cn,an,ln,pn={};function sn(){if(Yt)return Xt;Yt=1;var r=function(){if(Vt)return Qt;Vt=1;var r=Math.ceil,t=Math.floor;return Qt=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return Xt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function vn(){if(Jt)return Ht;Jt=1;var r=sn(),t=Math.max,n=Math.min;return Ht=function(e,o){var u=r(e);return u<0?t(u+o,0):n(u,o)}}function yn(){if(rn)return Zt;rn=1;var r=sn(),t=Math.min;return Zt=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function bn(){if(nn)return tn;nn=1;var r=yn();return tn=function(t){return r(t.length)}}function gn(){if(fn)return un;fn=1;var r=gr(),t=ft(),n=wr(),e=function(){if(on)return en;on=1;var r=wr(),t=vn(),n=bn(),e=function(e){return function(o,u,i){var f=r(o),c=n(f);if(0===c)return!e&&-1;var a,l=t(i,c);if(e&&u!=u){for(;c>l;)if((a=f[l++])!=a)return!0}else for(;c>l;l++)if((e||l in f)&&f[l]===u)return e||l||0;return!e&&-1}};return en={includes:e(!0),indexOf:e(!1)}}().indexOf,o=Gt(),u=r([].push);return un=function(r,i){var f,c=n(r),a=0,l=[];for(f in c)!t(o,f)&&t(c,f)&&u(l,f);for(;i.length>a;)t(c,f=i[a++])&&(~e(l,f)||u(l,f));return l}}function hn(){return an?cn:(an=1,cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var dn,mn,wn,On,jn,Sn,Pn,En,Tn,_n,xn,kn,Cn,Mn,Rn={};function Fn(){return dn||(dn=1,Rn.f=Object.getOwnPropertySymbols),Rn}function In(){if(wn)return mn;wn=1;var r=Sr(),t=gr(),n=function(){if(ln)return pn;ln=1;var r=gn(),t=hn().concat("length","prototype");return pn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},pn}(),e=Fn(),o=jt(),u=t([].concat);return mn=r("Reflect","ownKeys")||function(r){var t=n.f(o(r)),i=e.f;return i?u(t,i(r)):t}}function Dn(){if(jn)return On;jn=1;var r=ft(),t=In(),n=vt(),e=St();return On=function(o,u,i){for(var f=t(u),c=e.f,a=n.f,l=0;l<f.length;l++){var p=f[l];r(o,p)||i&&r(i,p)||c(o,p,a(u,p))}}}function Ln(){if(Tn)return En;Tn=1;var r=s(),t=vt().f,n=Pt(),e=Kt(),o=et(),u=Dn(),i=function(){if(Pn)return Sn;Pn=1;var r=j(),t=Or(),n=/#|\.prototype\./,e=function(n,e){var c=u[o(n)];return c===f||c!==i&&(t(e)?r(e):!!e)},o=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},u=e.data={},i=e.NATIVE="N",f=e.POLYFILL="P";return Sn=e}();return En=function(f,c){var a,l,p,s,v,y=f.target,b=f.global,g=f.stat;if(a=b?r:g?r[y]||o(y,{}):r[y]&&r[y].prototype)for(l in c){if(s=c[l],p=f.dontCallGetSet?(v=t(a,l))&&v.value:a[l],!i(b?l:y+(g?".":"#")+l,f.forced)&&void 0!==p){if(typeof s==typeof p)continue;u(s,p)}(f.sham||p&&p.sham)&&n(s,"sham",!0),e(a,l,s,f)}}}function zn(){if(xn)return _n;xn=1;var r=gn(),t=hn();return _n=Object.keys||function(n){return r(n,t)}}!function(){if(Mn)return p;Mn=1;var r=Ln(),t=function(){if(Cn)return kn;Cn=1;var r=S(),t=gr(),n=E(),e=j(),o=zn(),u=Fn(),i=yr(),f=it(),c=hr(),a=Object.assign,l=Object.defineProperty,p=t([].concat);return kn=!a||e((function(){if(r&&1!==a({b:1},a(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol("assign detection"),u="abcdefghijklmnopqrst";return t[e]=7,u.split("").forEach((function(r){n[r]=r})),7!==a({},t)[e]||o(a({},n)).join("")!==u}))?function(t,e){for(var a=f(t),l=arguments.length,s=1,v=u.f,y=i.f;l>s;)for(var b,g=c(arguments[s++]),h=v?p(o(g),v(g)):o(g),d=h.length,m=0;d>m;)b=h[m++],r&&!n(y,g,b)||(a[b]=g[b]);return a}:a,kn}();r({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t})}(),Object.assign(r.fn.bootstrapTable.defaults,{deferUrl:void 0}),r.BootstrapTable=function(r){function u(){return function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t(this,u,arguments)}return function(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&i(r,t)}(u,r),n(u,[{key:"init",value:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var i,f,c;(i="init",f=this,"function"==typeof(c=e(o(u.prototype),i,f))?function(r){return c.apply(f,r)}:c)(t),this.options.deferUrl&&(this.options.url=this.options.deferUrl)}}])}(r.BootstrapTable)}));