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(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function r(t,r,n){return r=e(r),function(t,r){if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,o()?Reflect.construct(r,n||[],e(t).constructor):r.apply(t,n))}function n(t,r,n){return function(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,u(e.key),e)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e(t)}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o=function(){return!!t})()}function i(t,r){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},i(t,r)}function u(t){var r=function(t,r){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r);if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof r?r:r+""}var c,f,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};function l(){if(f)return c;f=1;var t=function(t){return t&&t.Math===Math&&t};return c=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof a&&a)||t("object"==typeof c&&c)||function(){return this}()||Function("return this")()}var p,v,y,b,h,d,g,m,S,w,j,O,T,L,E,P,M,C,A,F,k,x,_,R,D,G,B,I,N,z,V,q,H,U,W,$,Q,X={exports:{}};function J(){if(b)return y;b=1;var t=l(),r=Object.defineProperty;return y=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function K(){if(h)return X.exports;h=1;var t=v?p:(v=1,p=!1),r=l(),n=J(),e="__core-js_shared__",o=X.exports=r[e]||n(e,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:t?"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"}),X.exports}function Y(){if(g)return d;g=1;var t=K();return d=function(r,n){return t[r]||(t[r]=n||{})}}function Z(){return S?m:(S=1,m=function(t){try{return!!t()}catch(t){return!0}})}function tt(){if(j)return w;j=1;var t=Z();return w=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function rt(){if(T)return O;T=1;var t=tt(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return O=t?e:function(t){return function(){return n.apply(t,arguments)}},O}function nt(){return E?L:(E=1,L=function(t){return null==t})}function et(){if(M)return P;M=1;var t=nt(),r=TypeError;return P=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function ot(){if(A)return C;A=1;var t=et(),r=Object;return C=function(n){return r(t(n))}}function it(){if(k)return F;k=1;var t=rt(),r=ot(),n=t({}.hasOwnProperty);return F=Object.hasOwn||function(t,e){return n(r(t),e)}}function ut(){if(_)return x;_=1;var t=rt(),r=0,n=Math.random(),e=t(1..toString);return x=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function ct(){if(B)return G;B=1;var t,r,n=l(),e=function(){if(D)return R;D=1;var t=l().navigator,r=t&&t.userAgent;return R=r?String(r):""}(),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),G=r}function ft(){if(N)return I;N=1;var t=ct(),r=Z(),n=l().String;return I=!!Object.getOwnPropertySymbols&&!r((function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function at(){if(V)return z;V=1;var t=ft();return z=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function st(){if(H)return q;H=1;var t=l(),r=Y(),n=it(),e=ut(),o=ft(),i=at(),u=t.Symbol,c=r("wks"),f=i?u.for||u:u&&u.withoutSetter||e;return q=function(t){return n(c,t)||(c[t]=o&&n(u,t)?u[t]:f("Symbol."+t)),c[t]}}function lt(){if(W)return U;W=1;var t={};return t[st()("toStringTag")]="z",U="[object z]"===String(t)}function pt(){if(Q)return $;Q=1;var t="object"==typeof document&&document.all;return $=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}var vt,yt,bt,ht,dt,gt,mt,St,wt,jt,Ot,Tt,Lt,Et,Pt,Mt,Ct,At,Ft,kt,xt,_t,Rt,Dt,Gt,Bt,It,Nt,zt,Vt,qt,Ht,Ut,Wt={};function $t(){if(yt)return vt;yt=1;var t=Z();return vt=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Qt(){if(ht)return bt;ht=1;var t=pt();return bt=function(r){return"object"==typeof r?null!==r:t(r)}}function Xt(){if(gt)return dt;gt=1;var t=l(),r=Qt(),n=t.document,e=r(n)&&r(n.createElement);return dt=function(t){return e?n.createElement(t):{}}}function Jt(){if(Tt)return Ot;Tt=1;var t=Qt(),r=String,n=TypeError;return Ot=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Kt(){if(Et)return Lt;Et=1;var t=tt(),r=Function.prototype.call;return Lt=t?r.bind(r):function(){return r.apply(r,arguments)},Lt}function Yt(){if(Mt)return Pt;Mt=1;var t=l(),r=pt();return Pt=function(n,e){return arguments.length<2?(o=t[n],r(o)?o:void 0):t[n]&&t[n][e];var o},Pt}function Zt(){if(kt)return Ft;kt=1;var t=Yt(),r=pt(),n=function(){if(At)return Ct;At=1;var t=rt();return Ct=t({}.isPrototypeOf)}(),e=at(),o=Object;return Ft=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,o(e))}}function tr(){if(_t)return xt;_t=1;var t=String;return xt=function(r){try{return t(r)}catch(t){return"Object"}}}function rr(){if(Dt)return Rt;Dt=1;var t=pt(),r=tr(),n=TypeError;return Rt=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function nr(){if(Bt)return Gt;Bt=1;var t=rr(),r=nt();return Gt=function(n,e){var o=n[e];return r(o)?void 0:t(o)}}function er(){if(Nt)return It;Nt=1;var t=Kt(),r=pt(),n=Qt(),e=TypeError;return It=function(o,i){var u,c;if("string"===i&&r(u=o.toString)&&!n(c=t(u,o)))return c;if(r(u=o.valueOf)&&!n(c=t(u,o)))return c;if("string"!==i&&r(u=o.toString)&&!n(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")}}function or(){if(Vt)return zt;Vt=1;var t=Kt(),r=Qt(),n=Zt(),e=nr(),o=er(),i=st(),u=TypeError,c=i("toPrimitive");return zt=function(i,f){if(!r(i)||n(i))return i;var a,s=e(i,c);if(s){if(void 0===f&&(f="default"),a=t(s,i,f),!r(a)||n(a))return a;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),o(i,f)}}function ir(){if(Ht)return qt;Ht=1;var t=or(),r=Zt();return qt=function(n){var e=t(n,"string");return r(e)?e:e+""}}function ur(){if(Ut)return Wt;Ut=1;var t=$t(),r=function(){if(St)return mt;St=1;var t=$t(),r=Z(),n=Xt();return mt=!t&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}(),n=function(){if(jt)return wt;jt=1;var t=$t(),r=Z();return wt=t&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}(),e=Jt(),o=ir(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",s="writable";return Wt.f=t?n?function(t,r,n){if(e(t),r=o(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=c(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:f in n?n[f]:i[f],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=o(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Wt}var cr,fr,ar,sr,lr,pr,vr,yr,br,hr,dr,gr,mr,Sr,wr,jr,Or,Tr,Lr,Er,Pr,Mr,Cr,Ar,Fr,kr,xr={exports:{}};function _r(){if(sr)return ar;sr=1;var t=rt(),r=pt(),n=K(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),ar=n.inspectSource}function Rr(){return yr?vr:(yr=1,vr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function Dr(){if(hr)return br;hr=1;var t=$t(),r=ur(),n=Rr();return br=t?function(t,e,o){return r.f(t,e,n(1,o))}:function(t,r,n){return t[r]=n,t}}function Gr(){if(gr)return dr;gr=1;var t=Y(),r=ut(),n=t("keys");return dr=function(t){return n[t]||(n[t]=r(t))}}function Br(){return Sr?mr:(Sr=1,mr={})}function Ir(){if(jr)return wr;jr=1;var t,r,n,e=function(){if(pr)return lr;pr=1;var t=l(),r=pt(),n=t.WeakMap;return lr=r(n)&&/native code/.test(String(n))}(),o=l(),i=Qt(),u=Dr(),c=it(),f=K(),a=Gr(),s=Br(),p="Object already initialized",v=o.TypeError,y=o.WeakMap;if(e||f.state){var b=f.state||(f.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,t=function(t,r){if(b.has(t))throw new v(p);return r.facade=t,b.set(t,r),r},r=function(t){return b.get(t)||{}},n=function(t){return b.has(t)}}else{var h=a("state");s[h]=!0,t=function(t,r){if(c(t,h))throw new v(p);return r.facade=t,u(t,h,r),r},r=function(t){return c(t,h)?t[h]:{}},n=function(t){return c(t,h)}}return wr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new v("Incompatible receiver, "+t+" required");return e}}}}function Nr(){if(Or)return xr.exports;Or=1;var t=rt(),r=Z(),n=pt(),e=it(),o=$t(),i=function(){if(fr)return cr;fr=1;var t=$t(),r=it(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=r(n,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(n,"name").configurable);return cr={EXISTS:o,PROPER:i,CONFIGURABLE:u}}().CONFIGURABLE,u=_r(),c=Ir(),f=c.enforce,a=c.get,s=String,l=Object.defineProperty,p=t("".slice),v=t("".replace),y=t([].join),b=o&&!r((function(){return 8!==l((function(){}),"length",{value:8}).length})),h=String(String).split("String"),d=xr.exports=function(t,r,n){"Symbol("===p(s(r),0,7)&&(r="["+v(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(o?l(t,"name",{value:r,configurable:!0}):t.name=r),b&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?o&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=y(h,"string"==typeof r?r:"")),t};return Function.prototype.toString=d((function(){return n(this)&&a(this).source||u(this)}),"toString"),xr.exports}function zr(){if(Lr)return Tr;Lr=1;var t=pt(),r=ur(),n=Nr(),e=J();return Tr=function(o,i,u,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:i;if(t(u)&&n(u,a,c),c.global)f?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(f=!0):delete o[i]}catch(t){}f?o[i]=u:r.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}function Vr(){if(Pr)return Er;Pr=1;var t=rt(),r=t({}.toString),n=t("".slice);return Er=function(t){return n(r(t),8,-1)}}function qr(){if(Cr)return Mr;Cr=1;var t=lt(),r=pt(),n=Vr(),e=st()("toStringTag"),o=Object,i="Arguments"===n(function(){return arguments}());return Mr=t?n:function(t){var u,c,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=o(t),e))?c:i?n(u):"Object"===(f=n(u))&&r(u.callee)?"Arguments":f}}!function(){if(kr)return s;kr=1;var t=lt(),r=zr(),n=function(){if(Fr)return Ar;Fr=1;var t=lt(),r=qr();return Ar=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Hr,Ur,Wr,$r,Qr,Xr,Jr,Kr,Yr,Zr,tn,rn,nn,en,on,un,cn,fn,an,sn,ln,pn,vn,yn,bn,hn,dn,gn,mn,Sn,wn,jn,On,Tn={};function Ln(){if(Kr)return Jr;Kr=1;var t=function(){if(Xr)return Qr;Xr=1;var t=Vr(),r=rt();return Qr=function(n){if("Function"===t(n))return r(n)}}(),r=rr(),n=tt(),e=t(t.bind);return Jr=function(t,o){return r(t),void 0===o?t:n?e(t,o):function(){return t.apply(o,arguments)}},Jr}function En(){if(en)return nn;en=1;var t=function(){if(rn)return tn;rn=1;var t=Math.ceil,r=Math.floor;return tn=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return nn=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function Pn(){if(un)return on;un=1;var t=En(),r=Math.min;return on=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function Mn(){if(fn)return cn;fn=1;var t=Pn();return cn=function(r){return t(r.length)}}function Cn(){if(sn)return an;sn=1;var t=Vr();return an=Array.isArray||function(r){return"Array"===t(r)}}function An(){if(pn)return ln;pn=1;var t=rt(),r=Z(),n=pt(),e=qr(),o=Yt(),i=_r(),u=function(){},c=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),s=!f.test(u),l=function(t){if(!n(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(f,i(t))}catch(t){return!0}};return p.sham=!0,ln=!c||r((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?p:l}function Fn(){if(yn)return vn;yn=1;var t=Cn(),r=An(),n=Qt(),e=st()("species"),o=Array;return vn=function(i){var u;return t(i)&&(u=i.constructor,(r(u)&&(u===o||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function kn(){if(hn)return bn;hn=1;var t=Fn();return bn=function(r,n){return new(t(r))(0===n?0:n)}}function xn(){if(gn)return dn;gn=1;var t=Ln(),r=rt(),n=function(){if(Zr)return Yr;Zr=1;var t=rt(),r=Z(),n=Vr(),e=Object,o=t("".split);return Yr=r((function(){return!e("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?o(t,""):e(t)}:e}(),e=ot(),o=Mn(),i=kn(),u=r([].push),c=function(r){var c=1===r,f=2===r,a=3===r,s=4===r,l=6===r,p=7===r,v=5===r||l;return function(y,b,h,d){for(var g,m,S=e(y),w=n(S),j=o(w),O=t(b,h),T=0,L=d||i,E=c?L(y,j):f||p?L(y,0):void 0;j>T;T++)if((v||T in w)&&(m=O(g=w[T],T,S),r))if(c)E[T]=m;else if(m)switch(r){case 3:return!0;case 5:return g;case 6:return T;case 2:u(E,g)}else switch(r){case 4:return!1;case 7:u(E,g)}return l?-1:a||s?s:E}};return dn={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}}!function(){if(On)return Tn;On=1;var t=l(),r=Ur?Hr:(Ur=1,Hr={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),n=function(){if($r)return Wr;$r=1;var t=Xt()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return Wr=r===Object.prototype?void 0:r}(),e=function(){if(jn)return wn;jn=1;var t=xn().forEach,r=function(){if(Sn)return mn;Sn=1;var t=Z();return mn=function(r,n){var e=[][r];return!!e&&t((function(){e.call(null,n||function(){return 1},1)}))}}()("forEach");return wn=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},wn}(),o=Dr(),i=function(t){if(t&&t.forEach!==e)try{o(t,"forEach",e)}catch(r){t.forEach=e}};for(var u in r)r[u]&&i(t[u]&&t[u].prototype);i(n)}(),t.fn.bootstrapTable.methods.push("changeTitle"),t.fn.bootstrapTable.methods.push("changeLocale"),t.BootstrapTable=function(t){function e(){return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,e,arguments)}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&i(t,r)}(e,t),n(e,[{key:"changeTitle",value:function(t){this.options.columns.forEach((function(r){r.forEach((function(r){r.field&&(r.title=t[r.field])}))})),this.initHeader(),this.initBody(),this.initToolbar()}},{key:"changeLocale",value:function(t){this.options.locale=t,this.initLocale(),this.initPagination(),this.initBody(),this.initToolbar()}}])}(t.BootstrapTable)}));