abl-ui 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/abl-ui.umd.js CHANGED
@@ -1,21 +1 @@
1
- (function(H,re){typeof exports=="object"&&typeof module<"u"?re(exports):typeof define=="function"&&define.amd?define(["exports"],re):(H=typeof globalThis<"u"?globalThis:H||self,re(H["abl-ui"]={}))})(this,function(H){"use strict";/**
2
- * @vue/shared v3.4.21
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function re(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const T={}.NODE_ENV!=="production"?Object.freeze({}):{},nn={}.NODE_ENV!=="production"?Object.freeze([]):[],oe=()=>{},rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),V=Object.assign,on=Object.prototype.hasOwnProperty,m=(e,t)=>on.call(e,t),h=Array.isArray,K=e=>he(e)==="[object Map]",ct=e=>he(e)==="[object Set]",b=e=>typeof e=="function",O=e=>typeof e=="string",X=e=>typeof e=="symbol",w=e=>e!==null&&typeof e=="object",sn=e=>(w(e)||b(e))&&b(e.then)&&b(e.catch),lt=Object.prototype.toString,he=e=>lt.call(e),at=e=>he(e).slice(8,-1),ut=e=>he(e)==="[object Object]",$e=e=>O(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cn=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),Z=(e,t)=>!Object.is(e,t),ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let ft;const dt=()=>ft||(ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function se(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=O(o)?dn(o):se(o);if(r)for(const s in r)t[s]=r[s]}return t}else if(O(e)||w(e))return e}const an=/;(?![^(]*\))/g,un=/:([^]+)/,fn=/\/\*[^]*?\*\//g;function dn(e){const t={};return e.replace(fn,"").split(an).forEach(n=>{if(n){const o=n.split(un);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function k(e){let t="";if(O(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const o=k(e[n]);o&&(t+=o+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const pt=e=>O(e)?e:e==null?"":h(e)||w(e)&&(e.toString===lt||!b(e.toString))?JSON.stringify(e,ht,2):String(e),ht=(e,t)=>t&&t.__v_isRef?ht(e,t.value):K(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[De(o,s)+" =>"]=r,n),{})}:ct(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>De(n))}:X(t)?De(t):w(t)&&!h(t)&&!ut(t)?String(t):t,De=(e,t="")=>{var n;return X(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.4.21
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/function ie(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let pn;function hn(e,t=pn){t&&t.active&&t.effects.push(e)}let ce;class _n{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,hn(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Me();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(gn(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ae()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=U,n=ce;try{return U=!0,ce=this,this._runnings++,_t(this),this.fn()}finally{gt(this),this._runnings--,ce=n,U=t}}stop(){var t;this.active&&(_t(this),gt(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function gn(e){return e.value}function _t(e){e._trackId++,e._depsLength=0}function gt(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)mt(e.deps[t],e);e.deps.length=e._depsLength}}function mt(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let U=!0,ve=0;const Et=[];function Me(){Et.push(U),U=!1}function Ae(){const e=Et.pop();U=e===void 0?!0:e}function Fe(){ve++}function je(){for(ve--;!ve&&Le.length;)Le.shift()()}function mn(e,t,n){var o;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&mt(r,e),e.deps[e._depsLength++]=t):e._depsLength++,{}.NODE_ENV!=="production"&&((o=e.onTrack)==null||o.call(e,V({effect:e},n)))}}const Le=[];function En(e,t,n){var o;Fe();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((o=r.onTrigger)==null||o.call(r,V({effect:r},n))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Le.push(r.scheduler)))}je()}const bn=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ze=new WeakMap,W=Symbol({}.NODE_ENV!=="production"?"iterate":""),He=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function y(e,t,n){if(U&&ce){let o=ze.get(e);o||ze.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=bn(()=>o.delete(n))),mn(ce,r,{}.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function F(e,t,n,o,r,s){const i=ze.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&h(e)){const a=Number(o);i.forEach((u,_)=>{(_==="length"||!X(_)&&_>=a)&&c.push(u)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":h(e)?$e(n)&&c.push(i.get("length")):(c.push(i.get(W)),K(e)&&c.push(i.get(He)));break;case"delete":h(e)||(c.push(i.get(W)),K(e)&&c.push(i.get(He)));break;case"set":K(e)&&c.push(i.get(W));break}Fe();for(const a of c)a&&En(a,4,{}.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:s}:void 0);je()}const wn=re("__proto__,__v_isRef,__isVue"),bt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(X)),wt=Nn();function Nn(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=d(this);for(let s=0,i=this.length;s<i;s++)y(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(d)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Me(),Fe();const o=d(this)[t].apply(this,n);return je(),Ae(),o}}),e}function Sn(e){const t=d(this);return y(t,"has",e),t.hasOwnProperty(e)}class Nt{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return o===(r?s?Pt:It:s?Mn:Ct).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=h(t);if(!r){if(i&&m(wt,n))return Reflect.get(wt,n,o);if(n==="hasOwnProperty")return Sn}const c=Reflect.get(t,n,o);return(X(n)?bt.has(n):wn(n))||(r||y(t,"get",n),s)?c:R(c)?i&&$e(n)?c:c.value:w(c)?r?$t(c):Tt(c):c}}class yn extends Nt{constructor(t=!1){super(!1,t)}set(t,n,o,r){let s=t[n];if(!this._isShallow){const a=J(s);if(!ee(o)&&!J(o)&&(s=d(s),o=d(o)),!h(t)&&R(s)&&!R(o))return a?!1:(s.value=o,!0)}const i=h(t)&&$e(n)?Number(n)<t.length:m(t,n),c=Reflect.set(t,n,o,r);return t===d(r)&&(i?Z(o,s)&&F(t,"set",n,o,s):F(t,"add",n,o)),c}deleteProperty(t,n){const o=m(t,n),r=t[n],s=Reflect.deleteProperty(t,n);return s&&o&&F(t,"delete",n,void 0,r),s}has(t,n){const o=Reflect.has(t,n);return(!X(n)||!bt.has(n))&&y(t,"has",n),o}ownKeys(t){return y(t,"iterate",h(t)?"length":W),Reflect.ownKeys(t)}}class St extends Nt{constructor(t=!1){super(!0,t)}set(t,n){return{}.NODE_ENV!=="production"&&ie(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return{}.NODE_ENV!=="production"&&ie(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const On=new yn,xn=new St,Rn=new St(!0),Ke=e=>e,_e=e=>Reflect.getPrototypeOf(e);function ge(e,t,n=!1,o=!1){e=e.__v_raw;const r=d(e),s=d(t);n||(Z(t,s)&&y(r,"get",t),y(r,"get",s));const{has:i}=_e(r),c=o?Ke:n?qe:Je;if(i.call(r,t))return c(e.get(t));if(i.call(r,s))return c(e.get(s));e!==r&&e.get(t)}function me(e,t=!1){const n=this.__v_raw,o=d(n),r=d(e);return t||(Z(e,r)&&y(o,"has",e),y(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ee(e,t=!1){return e=e.__v_raw,!t&&y(d(e),"iterate",W),Reflect.get(e,"size",e)}function yt(e){e=d(e);const t=d(this);return _e(t).has.call(t,e)||(t.add(e),F(t,"add",e,e)),this}function Ot(e,t){t=d(t);const n=d(this),{has:o,get:r}=_e(n);let s=o.call(n,e);s?{}.NODE_ENV!=="production"&&Vt(n,o,e):(e=d(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?Z(t,i)&&F(n,"set",e,t,i):F(n,"add",e,t),this}function xt(e){const t=d(this),{has:n,get:o}=_e(t);let r=n.call(t,e);r?{}.NODE_ENV!=="production"&&Vt(t,n,e):(e=d(e),r=n.call(t,e));const s=o?o.call(t,e):void 0,i=t.delete(e);return r&&F(t,"delete",e,void 0,s),i}function Rt(){const e=d(this),t=e.size!==0,n={}.NODE_ENV!=="production"?K(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&F(e,"clear",void 0,void 0,n),o}function be(e,t){return function(o,r){const s=this,i=s.__v_raw,c=d(i),a=t?Ke:e?qe:Je;return!e&&y(c,"iterate",W),i.forEach((u,_)=>o.call(r,a(u),a(_),s))}}function we(e,t,n){return function(...o){const r=this.__v_raw,s=d(r),i=K(s),c=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=r[e](...o),_=n?Ke:t?qe:Je;return!t&&y(s,"iterate",a?He:W),{next(){const{value:l,done:f}=u.next();return f?{value:l,done:f}:{value:c?[_(l[0]),_(l[1])]:_(l),done:f}},[Symbol.iterator](){return this}}}}function j(e){return function(...t){if({}.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";ie(`${cn(e)} operation ${n}failed: target is readonly.`,d(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Vn(){const e={get(s){return ge(this,s)},get size(){return Ee(this)},has:me,add:yt,set:Ot,delete:xt,clear:Rt,forEach:be(!1,!1)},t={get(s){return ge(this,s,!1,!0)},get size(){return Ee(this)},has:me,add:yt,set:Ot,delete:xt,clear:Rt,forEach:be(!1,!0)},n={get(s){return ge(this,s,!0)},get size(){return Ee(this,!0)},has(s){return me.call(this,s,!0)},add:j("add"),set:j("set"),delete:j("delete"),clear:j("clear"),forEach:be(!0,!1)},o={get(s){return ge(this,s,!0,!0)},get size(){return Ee(this,!0)},has(s){return me.call(this,s,!0)},add:j("add"),set:j("set"),delete:j("delete"),clear:j("clear"),forEach:be(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=we(s,!1,!1),n[s]=we(s,!0,!1),t[s]=we(s,!1,!0),o[s]=we(s,!0,!0)}),[e,n,t,o]}const[Cn,In,Pn,Tn]=Vn();function Ue(e,t){const n=t?e?Tn:Pn:e?In:Cn;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(m(n,r)&&r in o?n:o,r,s)}const $n={get:Ue(!1,!1)},Dn={get:Ue(!0,!1)},vn={get:Ue(!0,!0)};function Vt(e,t,n){const o=d(n);if(o!==n&&t.call(e,o)){const r=at(e);ie(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Ct=new WeakMap,Mn=new WeakMap,It=new WeakMap,Pt=new WeakMap;function An(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fn(e){return e.__v_skip||!Object.isExtensible(e)?0:An(at(e))}function Tt(e){return J(e)?e:We(e,!1,On,$n,Ct)}function $t(e){return We(e,!0,xn,Dn,It)}function Ne(e){return We(e,!0,Rn,vn,Pt)}function We(e,t,n,o,r){if(!w(e))return{}.NODE_ENV!=="production"&&ie(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Fn(e);if(i===0)return e;const c=new Proxy(e,i===2?o:n);return r.set(e,c),c}function B(e){return J(e)?B(e.__v_raw):!!(e&&e.__v_isReactive)}function J(e){return!!(e&&e.__v_isReadonly)}function ee(e){return!!(e&&e.__v_isShallow)}function Be(e){return B(e)||J(e)}function d(e){const t=e&&e.__v_raw;return t?d(t):e}function jn(e){return Object.isExtensible(e)&&ln(e,"__v_skip",!0),e}const Je=e=>w(e)?Tt(e):e,qe=e=>w(e)?$t(e):e;function R(e){return!!(e&&e.__v_isRef===!0)}function Ln(e){return R(e)?e.value:e}const zn={get:(e,t,n)=>Ln(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return R(r)&&!R(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Hn(e){return B(e)?e:new Proxy(e,zn)}/**
10
- * @vue/runtime-core v3.4.21
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/const q=[];function Kn(e){q.push(e)}function Un(){q.pop()}function E(e,...t){Me();const n=q.length?q[q.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Wn();if(o)G(o,n,11,[e+t.map(s=>{var i,c;return(c=(i=s.toString)==null?void 0:i.call(s))!=null?c:JSON.stringify(s)}).join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${kt(n,s.type)}>`).join(`
14
- `),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
15
- `,...Bn(r)),console.warn(...s)}Ae()}function Wn(){let e=q[q.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Bn(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...Jn(n))}),t}function Jn({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${kt(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...qn(e.props),s]:[r+s]}function qn(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Dt(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Dt(e,t,n){return O(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:R(t)?(t=Dt(e,d(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):b(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=d(t),n?t:[`${e}=`,t])}const vt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function G(e,t,n,o){try{return o?e(...o):e()}catch(r){Ge(r,t,n)}}function Se(e,t,n,o){if(b(e)){const s=G(e,t,n,o);return s&&sn(s)&&s.catch(i=>{Ge(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Se(e[s],t,n,o));return r}function Ge(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,c={}.NODE_ENV!=="production"?vt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const u=s.ec;if(u){for(let _=0;_<u.length;_++)if(u[_](e,i,c)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){G(a,null,10,[e,i,c]);return}}Gn(e,n,r,o)}function Gn(e,t,n,o=!0){if({}.NODE_ENV!=="production"){const r=vt[t];if(n&&Kn(n),E(`Unhandled error${r?` during execution of ${r}`:""}`),n&&Un(),o)throw e;console.error(e)}else console.error(e)}let ye=!1,Ye=!1;const C=[];let L=0;const te=[];let D=null,z=0;const Mt=Promise.resolve();let Qe=null;const Yn=100;function Qn(e){const t=Qe||Mt;return e?t.then(this?e.bind(this):e):t}function Xn(e){let t=L+1,n=C.length;for(;t<n;){const o=t+n>>>1,r=C[o],s=le(r);s<e||s===e&&r.pre?t=o+1:n=o}return t}function Xe(e){(!C.length||!C.includes(e,ye&&e.allowRecurse?L+1:L))&&(e.id==null?C.push(e):C.splice(Xn(e.id),0,e),At())}function At(){!ye&&!Ye&&(Ye=!0,Qe=Mt.then(jt))}function Ft(e){h(e)?te.push(...e):(!D||!D.includes(e,e.allowRecurse?z+1:z))&&te.push(e),At()}function Zn(e){if(te.length){const t=[...new Set(te)].sort((n,o)=>le(n)-le(o));if(te.length=0,D){D.push(...t);return}for(D=t,{}.NODE_ENV!=="production"&&(e=e||new Map),z=0;z<D.length;z++)({}).NODE_ENV!=="production"&&Lt(e,D[z])||D[z]();D=null,z=0}}const le=e=>e.id==null?1/0:e.id,kn=(e,t)=>{const n=le(e)-le(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function jt(e){Ye=!1,ye=!0,{}.NODE_ENV!=="production"&&(e=e||new Map),C.sort(kn);const t={}.NODE_ENV!=="production"?n=>Lt(e,n):oe;try{for(L=0;L<C.length;L++){const n=C[L];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&t(n))continue;G(n,null,14)}}}finally{L=0,C.length=0,Zn(e),ye=!1,Qe=null,(C.length||te.length)&&jt(e)}}function Lt(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Yn){const o=t.ownerInstance,r=o&&Zt(o.type);return Ge(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const ae=new Set;({}).NODE_ENV!=="production"&&(dt().__VUE_HMR_RUNTIME__={createRecord:Ze(er),rerender:Ze(tr),reload:Ze(nr)});const Oe=new Map;function er(e,t){return Oe.has(e)?!1:(Oe.set(e,{initialDef:ue(t),instances:new Set}),!0)}function ue(e){return en(e)?e.__vccOpts:e}function tr(e,t){const n=Oe.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,ue(o.type).render=t),o.renderCache=[],o.effect.dirty=!0,o.update()}))}function nr(e,t){const n=Oe.get(e);if(!n)return;t=ue(t),zt(n.initialDef,t);const o=[...n.instances];for(const r of o){const s=ue(r.type);ae.has(s)||(s!==n.initialDef&&zt(s,t),ae.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(ae.add(s),r.ceReload(t.styles),ae.delete(s)):r.parent?(r.parent.effect.dirty=!0,Xe(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Ft(()=>{for(const r of o)ae.delete(ue(r.type))})}function zt(e,t){V(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ze(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let v=null,rr=null;const or=Symbol.for("v-ndc"),sr=e=>e.__isSuspense;function ir(e,t){t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):Ft(e)}const cr=Symbol.for("v-scx"),lr=()=>{{const e=Er(cr);return e||{}.NODE_ENV!=="production"&&E("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},xe={};function ar(e,t,{immediate:n,deep:o,flush:r,once:s,onTrack:i,onTrigger:c}=T){if(t&&s){const p=t;t=(...it)=>{p(...it),st()}}({}).NODE_ENV!=="production"&&o!==void 0&&typeof o=="number"&&E('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(n!==void 0&&E('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&E('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&E('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=p=>{E("Invalid watch source: ",p,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Pe,_=p=>o===!0?p:ne(p,o===!1?1:void 0);let l,f=!1,g=!1;if(R(e)?(l=()=>e.value,f=ee(e)):B(e)?(l=()=>_(e),f=!0):h(e)?(g=!0,f=e.some(p=>B(p)||ee(p)),l=()=>e.map(p=>{if(R(p))return p.value;if(B(p))return _(p);if(b(p))return G(p,u,2);({}).NODE_ENV!=="production"&&a(p)})):b(e)?t?l=()=>G(e,u,2):l=()=>(N&&N(),Se(e,u,3,[$])):(l=oe,{}.NODE_ENV!=="production"&&a(e)),t&&o){const p=l;l=()=>ne(p())}let N,$=p=>{N=x.onStop=()=>{G(p,u,4),N=x.onStop=void 0}},ot;if(Xt)if($=oe,t?n&&Se(t,u,3,[l(),g?[]:void 0,$]):l(),r==="sync"){const p=lr();ot=p.__watcherHandles||(p.__watcherHandles=[])}else return oe;let Y=g?new Array(e.length).fill(xe):xe;const Q=()=>{if(!(!x.active||!x.dirty))if(t){const p=x.run();(o||f||(g?p.some((it,Gr)=>Z(it,Y[Gr])):Z(p,Y)))&&(N&&N(),Se(t,u,3,[p,Y===xe?void 0:g&&Y[0]===xe?[]:Y,$]),Y=p)}else x.run()};Q.allowRecurse=!!t;let Te;r==="sync"?Te=Q:r==="post"?Te=()=>Jt(Q,u&&u.suspense):(Q.pre=!0,u&&(Q.id=u.uid),Te=()=>Xe(Q));const x=new _n(l,oe,Te),st=()=>{x.stop()};return{}.NODE_ENV!=="production"&&(x.onTrack=i,x.onTrigger=c),t?n?Q():Y=x.run():r==="post"?Jt(x.run.bind(x),u&&u.suspense):x.run(),ot&&ot.push(st),st}function ur(e,t,n){const o=this.proxy,r=O(e)?e.includes(".")?fr(o,e):()=>o[e]:e.bind(o,o);let s;b(t)?s=t:(s=t.handler,n=t);const i=Pr(this),c=ar(r,s.bind(o),n);return i(),c}function fr(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function ne(e,t,n=0,o){if(!w(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),R(e))ne(e.value,t,n,o);else if(h(e))for(let r=0;r<e.length;r++)ne(e[r],t,n,o);else if(ct(e)||K(e))e.forEach(r=>{ne(r,t,n,o)});else if(ut(e))for(const r in e)ne(e[r],t,n,o);return e}function ke(e,t,n,o){let r;const s=n&&n[o];if(h(e)||O(e)){r=new Array(e.length);for(let i=0,c=e.length;i<c;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(e)&&E(`The v-for range expect an integer value but got ${e}.`),r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(w(e))if(e[Symbol.iterator])r=Array.from(e,(i,c)=>t(i,c,void 0,s&&s[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,a=i.length;c<a;c++){const u=i[c];r[c]=t(e[u],u,c,s&&s[c])}}else r=[];return n&&(n[o]=r),r}const et=e=>e?Tr(e)?$r(e)||e.proxy:et(e.parent):null,fe=V(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>({}).NODE_ENV!=="production"?Ne(e.props):e.props,$attrs:e=>({}).NODE_ENV!=="production"?Ne(e.attrs):e.attrs,$slots:e=>({}).NODE_ENV!=="production"?Ne(e.slots):e.slots,$refs:e=>({}).NODE_ENV!=="production"?Ne(e.refs):e.refs,$parent:e=>et(e.parent),$root:e=>et(e.root),$emit:e=>e.emit,$options:e=>hr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Xe(e.update)}),$nextTick:e=>e.n||(e.n=Qn.bind(e.proxy)),$watch:e=>ur.bind(e)}),dr=e=>e==="_"||e==="$",tt=(e,t)=>e!==T&&!e.__isScriptSetup&&m(e,t),pr={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:c,appContext:a}=e;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(tt(o,t))return i[t]=1,o[t];if(r!==T&&m(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&m(u,t))return i[t]=3,s[t];if(n!==T&&m(n,t))return i[t]=4,n[t];i[t]=0}}const _=fe[t];let l,f;if(_)return(t==="$attrs"||{}.NODE_ENV!=="production"&&t==="$slots")&&y(e,"get",t),_(e);if((l=c.__cssModules)&&(l=l[t]))return l;if(n!==T&&m(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,m(f,t))return f[t];({}).NODE_ENV!=="production"&&v&&(!O(t)||t.indexOf("__v")!==0)&&(r!==T&&dr(t[0])&&m(r,t)?E(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===v&&E(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return tt(r,t)?(r[t]=n,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&m(r,t)?(E(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==T&&m(o,t)?(o[t]=n,!0):m(e.props,t)?({}.NODE_ENV!=="production"&&E(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?({}.NODE_ENV!=="production"&&E(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let c;return!!n[i]||e!==T&&m(e,i)||tt(t,i)||(c=s[0])&&m(c,i)||m(o,i)||m(fe,i)||m(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:m(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};({}).NODE_ENV!=="production"&&(pr.ownKeys=e=>(E("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function Ht(e){return h(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function hr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,c=s.get(t);let a;return c?a=c:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(u=>Re(a,u,i,!0)),Re(a,t,i)),w(t)&&s.set(t,a),a}function Re(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Re(e,s,n,!0),r&&r.forEach(i=>Re(e,i,n,!0));for(const i in t)if(o&&i==="expose")({}).NODE_ENV!=="production"&&E('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=_r[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const _r={data:Kt,props:Wt,emits:Wt,methods:de,computed:de,beforeCreate:S,created:S,beforeMount:S,mounted:S,beforeUpdate:S,updated:S,beforeDestroy:S,beforeUnmount:S,destroyed:S,unmounted:S,activated:S,deactivated:S,errorCaptured:S,serverPrefetch:S,components:de,directives:de,watch:mr,provide:Kt,inject:gr};function Kt(e,t){return t?e?function(){return V(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function gr(e,t){return de(Ut(e),Ut(t))}function Ut(e){if(h(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function S(e,t){return e?[...new Set([].concat(e,t))]:t}function de(e,t){return e?V(Object.create(null),e,t):t}function Wt(e,t){return e?h(e)&&h(t)?[...new Set([...e,...t])]:V(Object.create(null),Ht(e),Ht(t??{})):t}function mr(e,t){if(!e)return t;if(!t)return e;const n=V(Object.create(null),e);for(const o in t)n[o]=S(e[o],t[o]);return n}let Bt=null;function Er(e,t,n=!1){const o=Pe||v;if(o||Bt){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Bt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&b(t)?t.call(o&&o.proxy):t;({}).NODE_ENV!=="production"&&E(`injection "${String(e)}" not found.`)}else({}).NODE_ENV!=="production"&&E("inject() can only be used inside setup() or functional components.")}const Jt=ir,br=e=>e.__isTeleport,pe=Symbol.for("v-fgt"),wr=Symbol.for("v-txt"),Nr=Symbol.for("v-cmt"),Ve=[];let I=null;function M(e=!1){Ve.push(I=e?null:[])}function Sr(){Ve.pop(),I=Ve[Ve.length-1]||null}function yr(e){return e.dynamicChildren=I||nn,Sr(),I&&I.push(e),e}function A(e,t,n,o,r,s){return yr(P(e,t,n,o,r,s,!0))}function Or(e){return e?e.__v_isVNode===!0:!1}const xr=(...e)=>Yt(...e),qt="__vInternal",Gt=({key:e})=>e??null,Ce=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?O(e)||R(e)||b(e)?{i:v,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,o=0,r=null,s=e===pe?0:1,i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gt(t),ref:t&&Ce(t),scopeId:rr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:v};return c?(nt(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=O(n)?8:16),{}.NODE_ENV!=="production"&&a.key!==a.key&&E("VNode created with invalid key (NaN). VNode type:",a.type),!i&&I&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&I.push(a),a}const Rr={}.NODE_ENV!=="production"?xr:Yt;function Yt(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===or)&&({}.NODE_ENV!=="production"&&!e&&E(`Invalid vnode type when creating vnode: ${e}.`),e=Nr),Or(e)){const c=Ie(e,t,!0);return n&&nt(c,n),!s&&I&&(c.shapeFlag&6?I[I.indexOf(e)]=c:I.push(c)),c.patchFlag|=-2,c}if(en(e)&&(e=e.__vccOpts),t){t=Vr(t);let{class:c,style:a}=t;c&&!O(c)&&(t.class=k(c)),w(a)&&(Be(a)&&!h(a)&&(a=V({},a)),t.style=se(a))}const i=O(e)?1:sr(e)?128:br(e)?64:w(e)?4:b(e)?2:0;return{}.NODE_ENV!=="production"&&i&4&&Be(e)&&(e=d(e),E("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
17
- Component that was made reactive: `,e)),P(e,t,n,o,r,i,s,!0)}function Vr(e){return e?Be(e)||qt in e?V({},e):e:null}function Ie(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,c=t?Ir(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Gt(c),ref:t&&t.ref?n&&r?h(r)?r.concat(Ce(t)):[r,Ce(t)]:Ce(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:{}.NODE_ENV!=="production"&&s===-1&&h(i)?i.map(Qt):i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ie(e.ssContent),ssFallback:e.ssFallback&&Ie(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qt(e){const t=Ie(e);return h(e.children)&&(t.children=e.children.map(Qt)),t}function Cr(e=" ",t=0){return Rr(wr,null,e,t)}function nt(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(h(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),nt(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(qt in t)?t._ctx=v:r===3&&v&&(v.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else b(t)?(t={default:t,_ctx:v},n=32):(t=String(t),o&64?(n=16,t=[Cr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ir(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=k([t.class,o.class]));else if(r==="style")t.style=se([t.style,o.style]);else if(rn(r)){const s=t[r],i=o[r];i&&s!==i&&!(h(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}let Pe=null,rt;{const e=dt(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(i=>i(s)):r[0](s)}};rt=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),t("__VUE_SSR_SETTERS__",n=>Xt=n)}const Pr=e=>{const t=Pe;return rt(e),e.scope.on(),()=>{e.scope.off(),rt(t)}};function Tr(e){return e.vnode.shapeFlag&4}let Xt=!1;function $r(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hn(jn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fe)return fe[n](e)},has(t,n){return n in t||n in fe}}))}const Dr=/(?:^|[-_])(\w)/g,vr=e=>e.replace(Dr,t=>t.toUpperCase()).replace(/[-_]/g,"");function Zt(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}function kt(e,t,n=!1){let o=Zt(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=s=>{for(const i in s)if(s[i]===t)return i};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?vr(o):n?"App":"Anonymous"}function en(e){return b(e)&&"__vccOpts"in e}function Mr(){if({}.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},o={style:"color:#eb2f96"},r={header(l){return w(l)?l.__isVue?["div",e,"VueInstance"]:R(l)?["div",{},["span",e,_(l)],"<",c(l.value),">"]:B(l)?["div",{},["span",e,ee(l)?"ShallowReactive":"Reactive"],"<",c(l),`>${J(l)?" (readonly)":""}`]:J(l)?["div",{},["span",e,ee(l)?"ShallowReadonly":"Readonly"],"<",c(l),">"]:null:null},hasBody(l){return l&&l.__isVue},body(l){if(l&&l.__isVue)return["div",{},...s(l.$)]}};function s(l){const f=[];l.type.props&&l.props&&f.push(i("props",d(l.props))),l.setupState!==T&&f.push(i("setup",l.setupState)),l.data!==T&&f.push(i("data",d(l.data)));const g=a(l,"computed");g&&f.push(i("computed",g));const N=a(l,"inject");return N&&f.push(i("injected",N)),f.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:l}]]),f}function i(l,f){return f=V({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},l],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(g=>["div",{},["span",o,g+": "],c(f[g],!1)])]]:["span",{}]}function c(l,f=!0){return typeof l=="number"?["span",t,l]:typeof l=="string"?["span",n,JSON.stringify(l)]:typeof l=="boolean"?["span",o,l]:w(l)?["object",{object:f?d(l):l}]:["span",n,String(l)]}function a(l,f){const g=l.type;if(b(g))return;const N={};for(const $ in l.ctx)u(g,$,f)&&(N[$]=l.ctx[$]);return N}function u(l,f,g){const N=l[g];if(h(N)&&N.includes(f)||w(N)&&f in N||l.extends&&u(l.extends,f,g)||l.mixins&&l.mixins.some($=>u($,f,g)))return!0}function _(l){return ee(l)?"ShallowRef":l.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}/**
18
- * vue v3.4.21
19
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
- * @license MIT
21
- **/function Ar(){Mr()}({}).NODE_ENV!=="production"&&Ar();const Qr="",Fr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},jr={class:"abl-table"},Lr={class:"gridtable"},zr={class:"table-thead"},Hr={class:"cell"},Kr={key:0},Ur={class:"cell"},Wr={key:1},Br=["colspan"],tn=Fr({__name:"index",props:{name:"abl-table",data:{type:Array,default:[]},columns:{type:Array,default:[]},border:{type:Boolean,default:!1}},setup(e,{emit:t}){const n=e,o=r=>{let s=document.getElementsByClassName("table-fixed-column--left");r.target.scrollLeft>0?[...s].forEach(i=>{i.classList.add("box-shadow")}):[...s].forEach(i=>{i.classList.remove("box-shadow")})};return(r,s)=>(M(),A("section",null,[P("div",jr,[P("div",{class:k(["table__inner-wrapper",e.border?"has-table-border":""]),onScroll:o,id:"box"},[P("table",Lr,[P("thead",zr,[P("tr",null,[(M(!0),A(pe,null,ke(n.columns,(i,c)=>(M(),A("th",{key:c,style:se({"text-align":i.align||"left"}),class:k(i.fixed=="left"?"table-fixed-column--left":i.fixed=="right"?"table-fixed-column--right":"")},[P("div",Hr,pt(i.title),1)],6))),128))])]),n.data.length>0?(M(),A("tbody",Kr,[(M(!0),A(pe,null,ke(n.data,(i,c)=>(M(),A("tr",{key:c},[(M(!0),A(pe,null,ke(e.columns,(a,u)=>(M(),A("td",{style:se({"text-align":a.align||"left",width:a.width||"auto"}),key:u,class:k(a.fixed=="left"?"table-fixed-column--left":a.fixed=="right"?"table-fixed-column--right":"")},[P("div",Ur,pt(i[a.prop]),1)],6))),128))]))),128))])):(M(),A("tbody",Wr,[P("tr",null,[P("td",{class:"no-data-td",colspan:n.data.length+2},"暂无数据",8,Br)])]))])],34)])]))}},[["__scopeId","data-v-4382ab0e"]]),Jr=[tn],qr={install:function(e,t){Jr.forEach(n=>{e.component(n.name,n)})}};H.ablTable=tn,H.default=qr,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a["abl-ui"]={},a.Vue))})(this,function(a,e){"use strict";const E="",p=(t,s)=>{const n=t.__vccOpts||t;for(const[c,r]of s)n[c]=r;return n},b={class:"abl-tabs"},h={class:"tabs-header"},v=["onClick"],f=p({__name:"index",props:{name:"abl-tabs",modelValue:{type:String,default:""}},emits:["tabClick"],setup(t,{emit:s}){const n=s,c=t,r=e.ref([]),m=e.ref(),d=e.ref();e.provide("active",d),e.onMounted(()=>{S()});function S(){let i=[...m.value.children],u=[],l="";i.forEach(o=>{u.push({title:o.dataset.title,value:o.attributes.value.value}),c.modelValue==o.attributes.value.value&&(l=o.attributes.value.value)}),d.value=l||u[0].value,r.value=u}const B=i=>{d.value=i,n("tabClick",i)};return(i,u)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("header",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.title,class:e.normalizeClass(`header-btn ${d.value===l.value?"header-btn-active":""}`),onClick:o=>B(l.value)},e.toDisplayString(l.title),11,v))),128))]),e.createElementVNode("main",{ref_key:"ref_main",ref:m,class:"tab-content"},[e.renderSlot(i.$slots,"default",{},void 0,!0)],512)]))}},[["__scopeId","data-v-37029b31"]]),k=["data-title","value"],_={__name:"pane",props:{title:{type:String,default:""},value:{type:String,default:""}},setup(t){const s=e.inject("active");return(n,c)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-title":t.title,value:t.value},[e.renderSlot(n.$slots,"default")],8,k)),[[e.vShow,e.unref(s)===t.value]])}},y=[f,_],g={install:function(t,s){y.forEach(n=>{t.component(n.name,n)})}};a.ablPane=_,a.ablTabs=f,a.default=g,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .table__inner-wrapper[data-v-4382ab0e]{width:100%;overflow:auto;position:relative;border:none}table.gridtable[data-v-4382ab0e]{font-size:13px;color:#333;border-width:1px;border-color:#ccc;border-collapse:collapse;width:100%}table.gridtable .table-thead[data-v-4382ab0e]{color:#909399}table.gridtable .table-thead th[data-v-4382ab0e]{padding:8px 0;font-weight:500;border-bottom:1px solid #ebeef5;background-color:#f1f1f1}table.gridtable .table-thead th .cell[data-v-4382ab0e]{padding:0 12px}table.gridtable td[data-v-4382ab0e]{padding:8px 0;background-color:#fff;color:#606266;border-bottom:1px solid #ebeef5}table.gridtable td .cell[data-v-4382ab0e]{padding:0 12px}table.gridtable .no-data-td[data-v-4382ab0e]{text-align:center}table.gridtable .table-fixed-column--left[data-v-4382ab0e]{position:sticky!important;left:0;background:inherit;background-color:#fff}table.gridtable .box-shadow[data-v-4382ab0e]{box-shadow:inset -10px 0 10px -10px #00000026}.has-table-border[data-v-4382ab0e]{border:1px solid #ebeef5}.has-table-border td[data-v-4382ab0e],.has-table-border th[data-v-4382ab0e]{border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5}.has-table-border tr:last-child td[data-v-4382ab0e]{border-bottom:none}.has-table-border td[data-v-4382ab0e]:last-child{border-right:none}.has-table-border th[data-v-4382ab0e]:last-child{border-bottom:none;border-right:none}
1
+ .abl-tabs .tabs-header[data-v-37029b31]{display:flex;border-bottom:1px solid var(--border-bm-color)}.abl-tabs .header-btn[data-v-37029b31]{cursor:pointer;padding:10px;display:flex;align-items:center;justify-content:center;letter-spacing:1px}.abl-tabs .header-btn[data-v-37029b31]:hover{color:var(--theme-color)}.abl-tabs .header-btn-active[data-v-37029b31]{color:var(--primary-color);border-bottom:2px solid var(--theme-color)}.abl-tabs .tab-content[data-v-37029b31]{padding:20px 10px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abl-ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "abl-ui",
5
5
  "main": "lib/abl-ui.es.js",
6
6
  "directories": {