bootstrap-table-vue.min.js 16 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?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).BootstrapTable=e()}(this,(function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){t(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))}))}return n}function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var u=function(t){return t&&t.Math==Math&&t},f=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof a&&a)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},s=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,h={f:d&&!p.call({1:2},1)?function(t){var e=d(this,t);return!!e&&e.enumerable}:p},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v={}.toString,g=function(t){return v.call(t).slice(8,-1)},b="".split,m=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?b.call(t,""):Object(t)}:Object,E=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},x=function(t){return m(E(t))},S=function(t){return"object"==typeof t?null!==t:"function"==typeof t},O=function(t,e){if(!S(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!S(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!S(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!S(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,_=function(t,e){return w.call(t,e)},T=f.document,j=S(T)&&S(T.createElement),A=!s&&!l((function(){return 7!=Object.defineProperty((t="div",j?T.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),P=Object.getOwnPropertyDescriptor,I={f:s?P:function(t,e){if(t=x(t),e=O(e,!0),A)try{return P(t,e)}catch(t){}if(_(t,e))return y(!h.f.call(t,e),t[e])}},R=function(t){if(!S(t))throw TypeError(String(t)+" is not an object");return t},$=Object.defineProperty,C={f:s?$:function(t,e,n){if(R(t),e=O(e,!0),R(n),A)try{return $(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}},M=s?function(t,e,n){return C.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},N=function(t,e){try{M(f,t,e)}catch(n){f[t]=e}return e},U="__core-js_shared__",D=f[U]||N(U,{}),k=Function.toString;"function"!=typeof D.inspectSource&&(D.inspectSource=function(t){return k.call(t)});var F,L,B,K,G=D.inspectSource,X=f.WeakMap,z="function"==typeof X&&/native code/.test(G(X)),V=c((function(t){(t.exports=function(t,e){return D[t]||(D[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.10.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Y=0,q=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Y+q).toString(36)},Q=V("keys"),Z={},H=f.WeakMap;if(z){var J=D.state||(D.state=new H),tt=J.get,et=J.has,nt=J.set;F=function(t,e){return e.facade=t,nt.call(J,t,e),e},L=function(t){return tt.call(J,t)||{}},B=function(t){return et.call(J,t)}}else{var rt=Q[K="state"]||(Q[K]=W(K));Z[rt]=!0,F=function(t,e){return e.facade=t,M(t,rt,e),e},L=function(t){return _(t,rt)?t[rt]:{}},B=function(t){return _(t,rt)}}var ot={set:F,get:L,has:B,enforce:function(t){return B(t)?L(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!S(e)||(n=L(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},it=c((function(t){var e=ot.get,n=ot.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var a,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||_(o,"name")||M(o,"name",e),(a=n(o)).source||(a.source=r.join("string"==typeof e?e:""))),t!==f?(c?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=o:M(t,e,o)):u?t[e]=o:N(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||G(this)}))})),at=f,ct=function(t){return"function"==typeof t?t:void 0},ut=function(t,e){return arguments.length<2?ct(at[t])||ct(f[t]):at[t]&&at[t][e]||f[t]&&f[t][e]},ft=Math.ceil,lt=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?lt:ft)(t)},pt=Math.min,dt=function(t){return t>0?pt(st(t),9007199254740991):0},ht=Math.max,yt=Math.min,vt=function(t){return function(e,n,r){var o,i=x(e),a=dt(i.length),c=function(t,e){var n=st(t);return n<0?ht(n+e,0):yt(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},gt={includes:vt(!0),indexOf:vt(!1)}.indexOf,bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=x(t),o=0,i=[];for(n in r)!_(Z,n)&&_(r,n)&&i.push(n);for(;e.length>o;)_(r,n=e[o++])&&(~gt(i,n)||i.push(n));return i}(t,bt)}},Et={f:Object.getOwnPropertySymbols},xt=ut("Reflect","ownKeys")||function(t){var e=mt.f(R(t)),n=Et.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=xt(e),r=C.f,o=I.f,i=0;i<n.length;i++){var a=n[i];_(t,a)||r(t,a,o(e,a))}},Ot=/#|\.prototype\./,wt=function(t,e){var n=Tt[_t(t)];return n==At||n!=jt&&("function"==typeof e?l(e):!!e)},_t=wt.normalize=function(t){return String(t).replace(Ot,".").toLowerCase()},Tt=wt.data={},jt=wt.NATIVE="N",At=wt.POLYFILL="P",Pt=wt,It=I.f,Rt=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,l=t.stat;if(n=u?f:l?f[c]||N(c,{}):(f[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=It(n,r))&&a.value:n[r],!Pt(u?r:c+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;St(i,o)}(t.sham||o&&o.sham)&&M(i,"sham",!0),it(n,r,i,t)}},$t=function(){var t=R(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Ct(t,e){return RegExp(t,e)}var Mt,Nt,Ut={UNSUPPORTED_Y:l((function(){var t=Ct("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:l((function(){var t=Ct("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Dt=RegExp.prototype.exec,kt=V("native-string-replace",String.prototype.replace),Ft=Dt,Lt=(Mt=/a/,Nt=/b*/g,Dt.call(Mt,"a"),Dt.call(Nt,"a"),0!==Mt.lastIndex||0!==Nt.lastIndex),Bt=Ut.UNSUPPORTED_Y||Ut.BROKEN_CARET,Kt=void 0!==/()??/.exec("")[1];(Lt||Kt||Bt)&&(Ft=function(t){var e,n,r,o,i=this,a=Bt&&i.sticky,c=$t.call(i),u=i.source,f=0,l=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",c)),Kt&&(n=new RegExp("^"+u+"$(?!\\s)",c)),Lt&&(e=i.lastIndex),r=Dt.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Lt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Kt&&r&&r.length>1&&kt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Gt=Ft;Rt({target:"RegExp",proto:!0,forced:/./.exec!==Gt},{exec:Gt});var Xt,zt,Vt="process"==g(f.process),Yt=ut("navigator","userAgent")||"",qt=f.process,Wt=qt&&qt.versions,Qt=Wt&&Wt.v8;Qt?zt=(Xt=Qt.split("."))[0]+Xt[1]:Yt&&(!(Xt=Yt.match(/Edge\/(\d+)/))||Xt[1]>=74)&&(Xt=Yt.match(/Chrome\/(\d+)/))&&(zt=Xt[1]);var Zt=zt&&+zt,Ht=!!Object.getOwnPropertySymbols&&!l((function(){return!Symbol.sham&&(Vt?38===Zt:Zt>37&&Zt<41)})),Jt=Ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=V("wks"),ee=f.Symbol,ne=Jt?ee:ee&&ee.withoutSetter||W,re=function(t){return _(te,t)&&(Ht||"string"==typeof te[t])||(Ht&&_(ee,t)?te[t]=ee[t]:te[t]=ne("Symbol."+t)),te[t]},oe=re("species"),ie=!l((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ae="$0"==="a".replace(/./,"$0"),ce=re("replace"),ue=!!/./[ce]&&""===/./[ce]("a","$0"),fe=!l((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),le=function(t){return function(e,n){var r,o,i=String(E(e)),a=st(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},se={codeAt:le(!1),charAt:le(!0)}.charAt,pe=function(t,e,n){return e+(n?se(t,e).length:1)},de=function(t){return Object(E(t))},he=Math.floor,ye="".replace,ve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ge=/\$([$&'`]|\d{1,2})/g,be=function(t,e,n,r,o,i){var a=n+t.length,c=r.length,u=ge;return void 0!==o&&(o=de(o),u=ve),ye.call(i,u,(function(i,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":f=o[u.slice(1,-1)];break;default:var l=+u;if(0===l)return i;if(l>c){var s=he(l/10);return 0===s?i:s<=c?void 0===r[s-1]?u.charAt(1):r[s-1]+u.charAt(1):i}f=r[l-1]}return void 0===f?"":f}))},me=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==g(t))throw TypeError("RegExp#exec called on incompatible receiver");return Gt.call(t,e)},Ee=Math.max,xe=Math.min;!function(t,e,n,r){var o=re(t),i=!l((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!l((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[oe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||"replace"===t&&(!ie||!ae||ue)||"split"===t&&!fe){var c=/./[o],u=n(o,""[t],(function(t,e,n,r,o){return e.exec===RegExp.prototype.exec?i&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ae,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ue}),f=u[0],s=u[1];it(String.prototype,t,f),it(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&M(RegExp.prototype[o],"sham",!0)}("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=E(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var c=n(e,t,this,r);if(c.done)return c.value}var u=R(t),f=String(this),l="function"==typeof r;l||(r=String(r));var s=u.global;if(s){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var h=me(u,f);if(null===h)break;if(d.push(h),!s)break;""===String(h[0])&&(u.lastIndex=pe(f,dt(u.lastIndex),p))}for(var y,v="",g=0,b=0;b<d.length;b++){h=d[b];for(var m=String(h[0]),E=Ee(xe(st(h.index),f.length),0),x=[],S=1;S<h.length;S++)x.push(void 0===(y=h[S])?y:String(y));var O=h.groups;if(l){var w=[m].concat(x,E,f);void 0!==O&&w.push(O);var _=String(r.apply(void 0,w))}else _=be(m,f,E,x,O,r);E>=g&&(v+=f.slice(g,E)+_,g=E+m.length)}return v+f.slice(g)}]}));var Se,Oe=Array.isArray||function(t){return"Array"==g(t)},we=function(t,e,n){var r=O(e);r in t?C.f(t,r,y(0,n)):t[r]=n},_e=re("species"),Te=function(t,e){var n;return Oe(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Oe(n.prototype)?S(n)&&null===(n=n[_e])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},je=re("species"),Ae=re("isConcatSpreadable"),Pe=9007199254740991,Ie="Maximum allowed index exceeded",Re=Zt>=51||!l((function(){var t=[];return t[Ae]=!1,t.concat()[0]!==t})),$e=(Se="concat",Zt>=51||!l((function(){var t=[];return(t.constructor={})[je]=function(){return{foo:1}},1!==t[Se](Boolean).foo}))),Ce=function(t){if(!S(t))return!1;var e=t[Ae];return void 0!==e?!!e:Oe(t)};Rt({target:"Array",proto:!0,forced:!Re||!$e},{concat:function(t){var e,n,r,o,i,a=de(this),c=Te(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Ce(i=-1===e?a:arguments[e])){if(u+(o=dt(i.length))>Pe)throw TypeError(Ie);for(n=0;n<o;n++,u++)n in i&&we(c,u,i[n])}else{if(u>=Pe)throw TypeError(Ie);we(c,u++,i)}return c.length=u,c}});var Me=window.jQuery,Ne=function(t){return void 0===t?t:Me.extend(!0,Array.isArray(t)?[]:{},t)};function Ue(t,e,n,r,o,i,a,c,u,f){"boolean"!=typeof a&&(u=c,c=a,a=!1);const l="function"==typeof n?n.options:n;let s;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):e&&(s=a?function(t){e.call(this,f(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,c(t))}),s)if(l.functional){const t=l.render;l.render=function(e,n){return s.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,s):[s]}return n}return Ue({render:function(){var t=this.$createElement;return(this._self._c||t)("table")},staticRenderFns:[]},undefined,{name:"BootstrapTable",props:{columns:{type:Array,require:!0},data:{type:[Array,Object],default:function(){}},options:{type:Object,default:function(){return{}}}},mounted:function(){var t=this;this.$table=Me(this.$el),this.$table.on("all.bs.table",(function(e,n,o){var i=Me.fn.bootstrapTable.events[n];i=i.replace(/([A-Z])/g,"-$1").toLowerCase(),t.$emit.apply(t,["on-all"].concat(r(o))),t.$emit.apply(t,[i].concat(r(o)))})),this._initTable()},methods:n({_initTable:function(){var t=n(n({},Ne(this.options)),{},{columns:Ne(this.columns),data:Ne(this.data)});this._hasInit?this.refreshOptions(t):(this.$table.bootstrapTable(t),this._hasInit=!0)}},function(){var t,e={},n=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}(Me.fn.bootstrapTable.methods);try{var r=function(){var n=t.value;e[n]=function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=this.$table).bootstrapTable.apply(t,[n].concat(r))}};for(n.s();!(t=n.n()).done;)r()}catch(t){n.e(t)}finally{n.f()}return e}()),watch:{options:{handler:function(){this._initTable()},deep:!0},columns:{handler:function(){this._initTable()},deep:!0},data:{handler:function(){this.load(Ne(this.data))},deep:!0}}},undefined,false,undefined,!1,void 0,void 0,void 0)}));