rayyy-vue-table-components 2.0.14 → 2.0.15

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/dist/index.es.js CHANGED
@@ -17283,17 +17283,16 @@ function EA() {
17283
17283
  return R(() => a.locale.value === "zh-TW" ? Sh : Oc);
17284
17284
  }
17285
17285
  function rA() {
17286
- const e = Ue(), r = ls().global;
17287
- return R(() => {
17288
- let l;
17289
- try {
17290
- const s = e == null ? void 0 : e.appContext.config.globalProperties, c = s == null ? void 0 : s.$i18n;
17291
- c && "global" in c && (l = c.global);
17292
- } catch {
17293
- l = void 0;
17294
- }
17295
- return (l || r).locale.value === "zh-TW" ? Sh : Oc;
17296
- });
17286
+ const e = Ue();
17287
+ let n;
17288
+ try {
17289
+ const u = e == null ? void 0 : e.appContext.config.globalProperties, s = u == null ? void 0 : u.$i18n;
17290
+ s && "global" in s && (n = s.global);
17291
+ } catch {
17292
+ n = void 0;
17293
+ }
17294
+ const l = ls().global, a = n || l;
17295
+ return R(() => a.locale.value === "zh-TW" ? Sh : Oc);
17297
17296
  }
17298
17297
  const xA = /* @__PURE__ */ J({
17299
17298
  __name: "SearchableListPanel",
package/dist/index.umd.js CHANGED
@@ -41,4 +41,4 @@ __p += '`),Re&&(Y+=`' +
41
41
  function print() { __p += __j.call(arguments, '') }
42
42
  `:`;
43
43
  `)+Y+`return __p
44
- }`;var ke=Nh(function(){return De(k,se+"return "+Y).apply(r,A)});if(ke.source=Y,nu(ke))throw ke;return ke}function sB(n){return ze(n).toLowerCase()}function cB(n){return ze(n).toUpperCase()}function uB(n,l,s){if(n=ze(n),n&&(s||l===r))return Vp(n);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tn(l),k=Dp(p,w),A=zp(p,w)+1;return Lo(p,k,A).join("")}function fB(n,l,s){if(n=ze(n),n&&(s||l===r))return n.slice(0,Hp(n)+1);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=zp(p,Tn(l))+1;return Lo(p,0,w).join("")}function dB(n,l,s){if(n=ze(n),n&&(s||l===r))return n.replace(Lr,"");if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Dp(p,Tn(l));return Lo(p,w).join("")}function pB(n,l){var s=U,p=z;if(tt(l)){var w="separator"in l?l.separator:w;s="length"in l?Se(l.length):s,p="omission"in l?nn(l.omission):p}n=ze(n);var k=n.length;if($r(n)){var A=Tn(n);k=A.length}if(s>=k)return n;var I=s-Fr(p);if(I<1)return p;var M=A?Lo(A,0,I).join(""):n.slice(0,I);if(w===r)return M+p;if(A&&(I+=M.length-I),ou(w)){if(n.slice(I).search(w)){var K,j=M;for(w.global||(w=yc(w.source,ze(ot.exec(w))+"g")),w.lastIndex=0;K=w.exec(j);)var Y=K.index;M=M.slice(0,Y===r?I:Y)}}else if(n.indexOf(nn(w),I)!=I){var ee=M.lastIndexOf(w);ee>-1&&(M=M.slice(0,ee))}return M+p}function hB(n){return n=ze(n),n&&Ks.test(n)?n.replace(eo,Hw):n}var mB=Kr(function(n,l,s){return n+(s?" ":"")+l.toUpperCase()}),au=A2("toUpperCase");function Oh(n,l,s){return n=ze(n),l=s?r:l,l===r?Fw(n)?jw(n):Ow(n):n.match(l)||[]}var Nh=Te(function(n,l){try{return en(n,r,l)}catch(s){return nu(s)?s:new ge(s)}}),gB=lo(function(n,l){return mn(l,function(s){s=Un(s),oo(n,s,eu(n[s],n))}),n});function bB(n){var l=n==null?0:n.length,s=ue();return n=l?Qe(n,function(p){if(typeof p[1]!="function")throw new gn(c);return[s(p[0]),p[1]]}):[],Te(function(p){for(var w=-1;++w<l;){var k=n[w];if(en(k[0],this,p))return en(k[1],this,p)}})}function CB(n){return Hv(Cn(n,g))}function iu(n){return function(){return n}}function yB(n,l){return n==null||n!==n?l:n}var wB=I2(),vB=I2(!0);function Gt(n){return n}function su(n){return c2(typeof n=="function"?n:Cn(n,g))}function _B(n){return f2(Cn(n,g))}function SB(n,l){return d2(n,Cn(l,g))}var EB=Te(function(n,l){return function(s){return Nl(s,n,l)}}),kB=Te(function(n,l){return function(s){return Nl(n,s,l)}});function cu(n,l,s){var p=pt(l),w=Ja(l,p);s==null&&!(tt(l)&&(w.length||!p.length))&&(s=l,l=n,n=this,w=Ja(l,pt(l)));var k=!(tt(s)&&"chain"in s)||!!s.chain,A=io(n);return mn(w,function(I){var M=l[I];n[I]=M,A&&(n.prototype[I]=function(){var K=this.__chain__;if(k||K){var j=n(this.__wrapped__),Y=j.__actions__=Ut(this.__actions__);return Y.push({func:M,args:arguments,thisArg:n}),j.__chain__=K,j}return M.apply(n,Bo([this.value()],arguments))})}),n}function BB(){return wt._===this&&(wt._=Jw),this}function uu(){}function xB(n){return n=Se(n),Te(function(l){return p2(l,n)})}var TB=zc(Qe),OB=zc(Rp),NB=zc(dc);function Ah(n){return qc(n)?pc(Un(n)):a_(n)}function AB(n){return function(l){return n==null?r:ar(n,l)}}var LB=P2(),IB=P2(!0);function fu(){return[]}function du(){return!1}function RB(){return{}}function PB(){return""}function MB(){return!0}function $B(n,l){if(n=Se(n),n<1||n>W)return[];var s=Q,p=kt(n,Q);l=ue(l),n-=Q;for(var w=gc(p,l);++s<n;)l(s);return w}function FB(n){return Ce(n)?Qe(n,Un):on(n)?[n]:Ut(Z2(ze(n)))}function VB(n){var l=++Xw;return ze(n)+l}var DB=ri(function(n,l){return n+l},0),zB=Wc("ceil"),WB=ri(function(n,l){return n/l},1),HB=Wc("floor");function UB(n){return n&&n.length?Za(n,Gt,xc):r}function KB(n,l){return n&&n.length?Za(n,ue(l,2),xc):r}function jB(n){return $p(n,Gt)}function GB(n,l){return $p(n,ue(l,2))}function qB(n){return n&&n.length?Za(n,Gt,Ac):r}function YB(n,l){return n&&n.length?Za(n,ue(l,2),Ac):r}var XB=ri(function(n,l){return n*l},1),ZB=Wc("round"),JB=ri(function(n,l){return n-l},0);function QB(n){return n&&n.length?mc(n,Gt):0}function ex(n,l){return n&&n.length?mc(n,ue(l,2)):0}return S.after=_E,S.ary=sh,S.assign=ck,S.assignIn=_h,S.assignInWith=bi,S.assignWith=uk,S.at=fk,S.before=ch,S.bind=eu,S.bindAll=gB,S.bindKey=uh,S.castArray=RE,S.chain=lh,S.chunk=H_,S.compact=U_,S.concat=K_,S.cond=bB,S.conforms=CB,S.constant=iu,S.countBy=QS,S.create=dk,S.curry=fh,S.curryRight=dh,S.debounce=ph,S.defaults=pk,S.defaultsDeep=hk,S.defer=SE,S.delay=EE,S.difference=j_,S.differenceBy=G_,S.differenceWith=q_,S.drop=Y_,S.dropRight=X_,S.dropRightWhile=Z_,S.dropWhile=J_,S.fill=Q_,S.filter=tE,S.flatMap=rE,S.flatMapDeep=lE,S.flatMapDepth=aE,S.flatten=th,S.flattenDeep=eS,S.flattenDepth=tS,S.flip=kE,S.flow=wB,S.flowRight=vB,S.fromPairs=nS,S.functions=vk,S.functionsIn=_k,S.groupBy=iE,S.initial=rS,S.intersection=lS,S.intersectionBy=aS,S.intersectionWith=iS,S.invert=Ek,S.invertBy=kk,S.invokeMap=cE,S.iteratee=su,S.keyBy=uE,S.keys=pt,S.keysIn=jt,S.map=fi,S.mapKeys=xk,S.mapValues=Tk,S.matches=_B,S.matchesProperty=SB,S.memoize=pi,S.merge=Ok,S.mergeWith=Sh,S.method=EB,S.methodOf=kB,S.mixin=cu,S.negate=hi,S.nthArg=xB,S.omit=Nk,S.omitBy=Ak,S.once=BE,S.orderBy=fE,S.over=TB,S.overArgs=xE,S.overEvery=OB,S.overSome=NB,S.partial=tu,S.partialRight=hh,S.partition=dE,S.pick=Lk,S.pickBy=Eh,S.property=Ah,S.propertyOf=AB,S.pull=fS,S.pullAll=oh,S.pullAllBy=dS,S.pullAllWith=pS,S.pullAt=hS,S.range=LB,S.rangeRight=IB,S.rearg=TE,S.reject=mE,S.remove=mS,S.rest=OE,S.reverse=Jc,S.sampleSize=bE,S.set=Rk,S.setWith=Pk,S.shuffle=CE,S.slice=gS,S.sortBy=vE,S.sortedUniq=SS,S.sortedUniqBy=ES,S.split=rB,S.spread=NE,S.tail=kS,S.take=BS,S.takeRight=xS,S.takeRightWhile=TS,S.takeWhile=OS,S.tap=US,S.throttle=AE,S.thru=ui,S.toArray=yh,S.toPairs=kh,S.toPairsIn=Bh,S.toPath=FB,S.toPlainObject=vh,S.transform=Mk,S.unary=LE,S.union=NS,S.unionBy=AS,S.unionWith=LS,S.uniq=IS,S.uniqBy=RS,S.uniqWith=PS,S.unset=$k,S.unzip=Qc,S.unzipWith=rh,S.update=Fk,S.updateWith=Vk,S.values=qr,S.valuesIn=Dk,S.without=MS,S.words=Oh,S.wrap=IE,S.xor=$S,S.xorBy=FS,S.xorWith=VS,S.zip=DS,S.zipObject=zS,S.zipObjectDeep=WS,S.zipWith=HS,S.entries=kh,S.entriesIn=Bh,S.extend=_h,S.extendWith=bi,cu(S,S),S.add=DB,S.attempt=Nh,S.camelCase=Uk,S.capitalize=xh,S.ceil=zB,S.clamp=zk,S.clone=PE,S.cloneDeep=$E,S.cloneDeepWith=FE,S.cloneWith=ME,S.conformsTo=VE,S.deburr=Th,S.defaultTo=yB,S.divide=WB,S.endsWith=Kk,S.eq=Nn,S.escape=jk,S.escapeRegExp=Gk,S.every=eE,S.find=nE,S.findIndex=Q2,S.findKey=mk,S.findLast=oE,S.findLastIndex=eh,S.findLastKey=gk,S.floor=HB,S.forEach=ah,S.forEachRight=ih,S.forIn=bk,S.forInRight=Ck,S.forOwn=yk,S.forOwnRight=wk,S.get=ru,S.gt=DE,S.gte=zE,S.has=Sk,S.hasIn=lu,S.head=nh,S.identity=Gt,S.includes=sE,S.indexOf=oS,S.inRange=Wk,S.invoke=Bk,S.isArguments=cr,S.isArray=Ce,S.isArrayBuffer=WE,S.isArrayLike=Kt,S.isArrayLikeObject=at,S.isBoolean=HE,S.isBuffer=Io,S.isDate=UE,S.isElement=KE,S.isEmpty=jE,S.isEqual=GE,S.isEqualWith=qE,S.isError=nu,S.isFinite=YE,S.isFunction=io,S.isInteger=mh,S.isLength=mi,S.isMap=gh,S.isMatch=XE,S.isMatchWith=ZE,S.isNaN=JE,S.isNative=QE,S.isNil=tk,S.isNull=ek,S.isNumber=bh,S.isObject=tt,S.isObjectLike=rt,S.isPlainObject=Ml,S.isRegExp=ou,S.isSafeInteger=nk,S.isSet=Ch,S.isString=gi,S.isSymbol=on,S.isTypedArray=Gr,S.isUndefined=ok,S.isWeakMap=rk,S.isWeakSet=lk,S.join=sS,S.kebabCase=qk,S.last=wn,S.lastIndexOf=cS,S.lowerCase=Yk,S.lowerFirst=Xk,S.lt=ak,S.lte=ik,S.max=UB,S.maxBy=KB,S.mean=jB,S.meanBy=GB,S.min=qB,S.minBy=YB,S.stubArray=fu,S.stubFalse=du,S.stubObject=RB,S.stubString=PB,S.stubTrue=MB,S.multiply=XB,S.nth=uS,S.noConflict=BB,S.noop=uu,S.now=di,S.pad=Zk,S.padEnd=Jk,S.padStart=Qk,S.parseInt=eB,S.random=Hk,S.reduce=pE,S.reduceRight=hE,S.repeat=tB,S.replace=nB,S.result=Ik,S.round=ZB,S.runInContext=P,S.sample=gE,S.size=yE,S.snakeCase=oB,S.some=wE,S.sortedIndex=bS,S.sortedIndexBy=CS,S.sortedIndexOf=yS,S.sortedLastIndex=wS,S.sortedLastIndexBy=vS,S.sortedLastIndexOf=_S,S.startCase=lB,S.startsWith=aB,S.subtract=JB,S.sum=QB,S.sumBy=ex,S.template=iB,S.times=$B,S.toFinite=so,S.toInteger=Se,S.toLength=wh,S.toLower=sB,S.toNumber=vn,S.toSafeInteger=sk,S.toString=ze,S.toUpper=cB,S.trim=uB,S.trimEnd=fB,S.trimStart=dB,S.truncate=pB,S.unescape=hB,S.uniqueId=VB,S.upperCase=mB,S.upperFirst=au,S.each=ah,S.eachRight=ih,S.first=nh,cu(S,(function(){var n={};return Wn(S,function(l,s){Ue.call(S.prototype,s)||(n[s]=l)}),n})(),{chain:!1}),S.VERSION=a,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){S[n].placeholder=S}),mn(["drop","take"],function(n,l){Ie.prototype[n]=function(s){s=s===r?1:ft(Se(s),0);var p=this.__filtered__&&!l?new Ie(this):this.clone();return p.__filtered__?p.__takeCount__=kt(s,p.__takeCount__):p.__views__.push({size:kt(s,Q),type:n+(p.__dir__<0?"Right":"")}),p},Ie.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),mn(["filter","map","takeWhile"],function(n,l){var s=l+1,p=s==re||s==oe;Ie.prototype[n]=function(w){var k=this.clone();return k.__iteratees__.push({iteratee:ue(w,3),type:s}),k.__filtered__=k.__filtered__||p,k}}),mn(["head","last"],function(n,l){var s="take"+(l?"Right":"");Ie.prototype[n]=function(){return this[s](1).value()[0]}}),mn(["initial","tail"],function(n,l){var s="drop"+(l?"":"Right");Ie.prototype[n]=function(){return this.__filtered__?new Ie(this):this[s](1)}}),Ie.prototype.compact=function(){return this.filter(Gt)},Ie.prototype.find=function(n){return this.filter(n).head()},Ie.prototype.findLast=function(n){return this.reverse().find(n)},Ie.prototype.invokeMap=Te(function(n,l){return typeof n=="function"?new Ie(this):this.map(function(s){return Nl(s,n,l)})}),Ie.prototype.reject=function(n){return this.filter(hi(ue(n)))},Ie.prototype.slice=function(n,l){n=Se(n);var s=this;return s.__filtered__&&(n>0||l<0)?new Ie(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),l!==r&&(l=Se(l),s=l<0?s.dropRight(-l):s.take(l-n)),s)},Ie.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ie.prototype.toArray=function(){return this.take(Q)},Wn(Ie.prototype,function(n,l){var s=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),w=S[p?"take"+(l=="last"?"Right":""):l],k=p||/^find/.test(l);w&&(S.prototype[l]=function(){var A=this.__wrapped__,I=p?[1]:arguments,M=A instanceof Ie,K=I[0],j=M||Ce(A),Y=function(Ae){var Re=w.apply(S,Bo([Ae],I));return p&&ee?Re[0]:Re};j&&s&&typeof K=="function"&&K.length!=1&&(M=j=!1);var ee=this.__chain__,se=!!this.__actions__.length,fe=k&&!ee,ke=M&&!se;if(!k&&j){A=ke?A:new Ie(this);var de=n.apply(A,I);return de.__actions__.push({func:ui,args:[Y],thisArg:r}),new bn(de,ee)}return fe&&ke?n.apply(this,I):(de=this.thru(Y),fe?p?de.value()[0]:de.value():de)})}),mn(["pop","push","shift","sort","splice","unshift"],function(n){var l=Ma[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);S.prototype[n]=function(){var w=arguments;if(p&&!this.__chain__){var k=this.value();return l.apply(Ce(k)?k:[],w)}return this[s](function(A){return l.apply(Ce(A)?A:[],w)})}}),Wn(Ie.prototype,function(n,l){var s=S[l];if(s){var p=s.name+"";Ue.call(Wr,p)||(Wr[p]=[]),Wr[p].push({name:l,func:s})}}),Wr[oi(r,B).name]=[{name:"wrapper",func:r}],Ie.prototype.clone=hv,Ie.prototype.reverse=mv,Ie.prototype.value=gv,S.prototype.at=KS,S.prototype.chain=jS,S.prototype.commit=GS,S.prototype.next=qS,S.prototype.plant=XS,S.prototype.reverse=ZS,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=JS,S.prototype.first=S.prototype.head,Sl&&(S.prototype[Sl]=YS),S}),Vr=Gw();tr?((tr.exports=Vr)._=Vr,sc._=Vr):wt._=Vr}).call(m9)})(Cl,Cl.exports)),Cl.exports}var b9=g9();const xa=_7(b9),Z0=t.defineComponent({__name:"transferItem",props:{dialogModalVisible:{type:Boolean},columnsValue:{},columnsIndex:{},columnsLen:{}},emits:["update:toUnLock","update:toLock","update:toTop","update:toPre","update:toNext","update:toBottom"],setup(e,{emit:o}){const r=e,a=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=o,u=()=>{a.itemOnClick=!0,a.itemOnHover=!1},c=()=>{a.itemOnClick=!1,a.itemOnHover=!0};t.watch(()=>r.dialogModalVisible,g=>{g||(a.itemOnClick=!1,a.itemOnHover=!1)});const f=t.computed(()=>!!r.columnsValue.fixed),h=t.computed(()=>[{icon:p3,emitKey:"update:toUnLock",isDisabled:!f.value},{icon:r3,emitKey:"update:toLock",isDisabled:f.value},{icon:f3,emitKey:"update:toTop",isDisabled:r.columnsIndex===0},{icon:Zf,emitKey:"update:toPre",isDisabled:r.columnsIndex===0},{icon:Hi,emitKey:"update:toNext",isDisabled:r.columnsIndex===r.columnsLen-1},{icon:K5,emitKey:"update:toBottom",isDisabled:r.columnsIndex===r.columnsLen-1}]),d=24/h.value.length,m=g=>{i(g)};return(g,y)=>{const C=vo,b=K7,v=yC;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":a.itemOnHover,"cursor-grabbing":a.itemOnClick}]),onMouseenter:y[0]||(y[0]=E=>a.itemOnHover=!0),onMouseleave:y[1]||(y[1]=E=>a.itemOnHover=!1),onMousedown:u,onMouseup:c},[(t.openBlock(),t.createBlock(C,{label:g.columnsValue.label,value:g.columnsValue.prop,key:g.columnsValue.prop},null,8,["label","value"])),t.createVNode(v,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,E=>(t.openBlock(),t.createBlock(b,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(Nt),{icon:E.icon,disabled:E.isDisabled,link:"",type:"primary",onClick:B=>m(E.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),C9={class:"search-bar"},y9={class:"transfer-sort-wrapper"},w9=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:o}){const{t:r}=Kn.useI18n(),a=e,i=o,u=t.computed({get:()=>a.modelValue,set:E=>i("update:modelValue",E)}),c=t.reactive({localColumns:xa.cloneDeep(a.columnsValue),clickItemProp:"",checkList:a.columnsValue.map(E=>E.prop)}),f={toTop:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.unshift(B)},toBottom:E=>{if(E>=c.localColumns.length-1)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.push(B)},toPre:E=>{if(E>0){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E-1],c.localColumns[E-1]=B}},toNext:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E+1],c.localColumns[E+1]=B}},toLock:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];B.fixed="left",c.localColumns.unshift(B)},toUnLock:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];delete B.fixed}}},h=()=>{c.localColumns=xa.cloneDeep(a.columnsValue),c.checkList=a.columnsValue.filter(E=>E.checkActive).map(E=>E.prop||"")};t.watch(()=>u.value,E=>{E?h():(c.clickItemProp="",c.localColumns=[],c.checkList=[])});const d=()=>{i("update:submit",c.localColumns)},m=E=>{const B=a.columnsValue.map(O=>O.prop);c.checkList=E?B:[],g(c.checkList)},g=E=>{const B=E.map(O=>String(O));c.localColumns.forEach(O=>{O.checkActive=B.includes(O.prop)}),i("update:checkChange",{columns:c.localColumns,checkList:c.checkList})},y=t.computed(()=>c.localColumns.length>0&&c.checkList.length===c.localColumns.length),C=t.computed({get:()=>y.value,set:E=>m(E)}),b=()=>{c.localColumns=xa.cloneDeep(a.columnsValue)},v=E=>{if(E.length>0){const B=xa.cloneDeep(c.localColumns);c.localColumns=B.filter(O=>O.label.includes(E))}else b()};return(E,B)=>{const O=vo,T=M7;return t.openBlock(),t.createBlock(Xo,{modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=_=>u.value=_),title:E.transferTitle,"onClick:submit":d},{default:t.withCtx(()=>[t.createElementVNode("div",C9,[t.createVNode(Zo,{"show-search":!0,"onUpdate:clear":b,"onKeydown:enter":v})]),t.createElementVNode("div",y9,[t.createVNode(O,{modelValue:C.value,"onUpdate:modelValue":B[0]||(B[0]=_=>C.value=_),class:"px-4",onChange:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("common.column"))+" ("+t.toDisplayString(c.checkList.length)+"/"+t.toDisplayString(c.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(T,{modelValue:c.checkList,"onUpdate:modelValue":B[1]||(B[1]=_=>c.checkList=_),onChange:g},{default:t.withCtx(()=>[t.renderSlot(E.$slots,"list-container",{columns:c.localColumns,clickItemProp:c.clickItemProp,handleItemEvents:f,handleMousedown:_=>c.clickItemProp=_},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localColumns,(_,x)=>(t.openBlock(),t.createBlock(Z0,{key:_.prop,"dialog-modal-visible":u.value,"columns-value":_,"columns-index":x,"columns-len":c.localColumns.length,class:t.normalizeClass({"transfer-active-bg":_.checkActive,"transfer-active-border":c.clickItemProp==_.prop}),onMousedown:N=>c.clickItemProp=_.prop||"","onUpdate:toTop":N=>f.toTop(x),"onUpdate:toBottom":N=>f.toBottom(x),"onUpdate:toPre":N=>f.toPre(x),"onUpdate:toNext":N=>f.toNext(x),"onUpdate:toLock":N=>f.toLock(x),"onUpdate:toUnLock":N=>f.toUnLock(x)},null,8,["dialog-modal-visible","columns-value","columns-index","columns-len","class","onMousedown","onUpdate:toTop","onUpdate:toBottom","onUpdate:toPre","onUpdate:toNext","onUpdate:toLock","onUpdate:toUnLock"]))),128))])]),_:3},8,["modelValue"])])]),_:3},8,["modelValue","title"])}}}),v9={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},_9={class:"flex items-center gap-2"},S9={key:0,class:"flex items-center text-black"},E9={class:"font-bold text-text text-xl md:text-2xl;"},k9={class:"flex items-center gap-3"},J0=t.defineComponent({__name:"FunctionHeader",props:{title:{type:String,required:!1,default:""},showBack:{type:[Boolean,String,Object],required:!1,default:!1},depth:{type:Number,required:!1,default:1}},emits:["back"],setup(e,{emit:o}){const r=e,a=o,i=()=>{const u={};switch(typeof r.showBack){case"string":u.path=r.showBack;break;case"object":Object.assign(u,r.showBack);break;default:u.path=""}a("back",u)};return(u,c)=>{const f=st;return t.openBlock(),t.createElementBlock("div",v9,[t.createElementVNode("div",_9,[e.showBack?(t.openBlock(),t.createElementBlock("div",S9,[t.createVNode(f,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref(V5))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",E9,t.toDisplayString(r.title),1)]),t.createElementVNode("div",k9,[t.renderSlot(u.$slots,"default")])])}}}),B9={key:0,class:"px-4 pt-1.5"},x9={key:1,class:"py-1.5 px-4"},T9={key:0,class:"flex justify-start pl-1.5 pt-0"},Ta=Or(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:o}){const r=e,a=o,i=()=>{a("click:back")};return(u,c)=>{const f=aa;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(J0),{title:r.title,showBack:r.showBack,onBack:i,depth:r.depth},null,8,["title","showBack","depth"]),t.createVNode(f,{class:"panel-scrollbar"},{default:t.withCtx(()=>[u.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",B9,[t.renderSlot(u.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),u.$slots.main?(t.openBlock(),t.createElementBlock("div",x9,[t.renderSlot(u.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),u.$slots.footer?(t.openBlock(),t.createElementBlock("div",T9,[t.renderSlot(u.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-a95f0b83"]]),Q0={"common.select":"請選擇","common.confirm":"確定","common.cancel":"取消","dialog.confirmRemoveUser":"請問是否確認移除該使用者","common.warning":"警告","search.placeholder":"請輸入關鍵字搜尋列表","common.execute":"執行","common.reset":"重設","common.loading":"數據加載中","common.view":"查看","common.edit":"編輯","common.column":"欄","common.close":"關閉","demo.componentDemo":"組件示範","button.title":"按鈕","button.primary ":"主要","button.default":"默認","button.danger":"危險","button.success":"成功","button.warning":"警告","button.info":"信息","button.style":"樣式","button.size":"尺寸","button.small":"小","button.medium":"中","button.large ":"大","status.title":"狀態","status.normal ":"正常","status.loading":"載入中","status.disabled":"禁用","button.withIcon ":"帶圖標的","button.add":"添加","button.delete":"刪除","common.save":"儲存","common.discard":"捨棄"},ep={"common.select":"Please select","common.confirm":"Confirm","common.cancel":"Cancel","dialog.confirmRemoveUser":"Are you sure you want to remove this user?","common.warning":"Warning","search.placeholder":"Please enter keywords to search the list","common.execute":"Execute","common.reset":"Reset","common.loading":"Data loading","common.view":"View","common.edit":"Edit","common.column":"Column","common.close":"Close","demo.componentDemo":"Component Demo","button.title":"Button","button.primary ":"Primary","button.default":"Default","button.danger":"Danger","button.success":"Success","button.warning":"Warning","button.info":"Info","button.style":"Style","button.size":"Size","button.small":"Small","button.medium":"Medium","button.large ":"Large","status.title":"Status","status.normal ":"Normal","status.loading":"Loading","status.disabled":"Disabled","button.withIcon ":"With Icon","button.add":"Add","button.delete":"Delete","common.save":"Save","common.discard":"Discard"},tp={"zh-TW":Q0,"en-US":ep};var np={name:"zh-tw",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"確認",clear:"清空",defaultLabel:"色彩選擇器",description:"目前色彩為 {color}。按一下 Enter 以選擇新色彩。",alphaLabel:"選擇透明度的值"},datepicker:{now:"現在",today:"今天",cancel:"取消",clear:"清空",confirm:"確認",dateTablePrompt:"使用方向鍵與 Enter 鍵以選擇日期",monthTablePrompt:"使用方向鍵與 Enter 鍵以選擇月份",yearTablePrompt:"使用方向鍵與 Enter 鍵以選擇年份",selectedDate:"已選日期",selectDate:"選擇日期",selectTime:"選擇時間",startDate:"開始日期",startTime:"開始時間",endDate:"結束日期",endTime:"結束時間",prevYear:"前一年",nextYear:"後一年",prevMonth:"上個月",nextMonth:"下個月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"減少數值",increase:"增加數值"},select:{loading:"載入中",noMatch:"無相符資料",noData:"無資料",placeholder:"請選擇"},mention:{loading:"載入中"},dropdown:{toggleDropdown:"切換下拉選單"},cascader:{noMatch:"無相符資料",loading:"載入中",placeholder:"請選擇",noData:"無資料"},pagination:{goto:"前往",pagesize:"項/頁",total:"共 {total} 項",pageClassifier:"頁",page:"頁",prev:"上一頁",next:"下一頁",currentPage:"第 {pager} 頁",prevPages:"向前 {pager} 頁",nextPages:"向後 {pager} 頁",deprecationWarning:"偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊"},dialog:{close:"關閉此對話框"},drawer:{close:"關閉此對話框"},messagebox:{title:"提示",confirm:"確定",cancel:"取消",error:"輸入的資料不符合規定!",close:"關閉此對話框"},upload:{deleteTip:"按 Delete 鍵以刪除",delete:"刪除",preview:"查看圖片",continue:"繼續上傳"},slider:{defaultLabel:"滑桿介於 {min} 至 {max}",defaultRangeStartLabel:"選擇起始值",defaultRangeEndLabel:"選擇結束值"},table:{emptyText:"暫無資料",confirmFilter:"篩選",resetFilter:"重置",clearFilter:"全部",sumText:"合計"},tour:{next:"下一步",previous:"上一步",finish:"結束導覽"},tree:{emptyText:"暫無資料"},transfer:{noMatch:"無相符資料",noData:"無資料",titles:["列表 1","列表 2"],filterPlaceholder:"請輸入搜尋內容",noCheckedFormat:"共 {total} 項",hasCheckedFormat:"已選 {checked}/{total} 項"},image:{error:"載入失敗"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"確認",cancelButtonText:"取消"},carousel:{leftArrow:"上一張投影片",rightArrow:"下一張投影片",indicator:"投影片切換至索引 {index}"}}};let Us=null;const op="zh-TW";function Oa(){return Us||(Us=Kn.createI18n({legacy:!1,locale:op,fallbackLocale:op,messages:tp,silentTranslationWarn:!0,missingWarn:!1,fallbackWarn:!1})),Us}function rp(e){const r=Oa().global;r.locale.value=e}function O9(){return Oa().global}function N9(){const e=t.getCurrentInstance();let o;try{const u=e==null?void 0:e.appContext.config.globalProperties,c=u==null?void 0:u.$i18n;c&&"global"in c&&(o=c.global)}catch{o=void 0}const a=Oa().global,i=o||a;return t.computed(()=>i.locale.value==="zh-TW"?np:Wi)}function lp(){const e=t.getCurrentInstance(),r=Oa().global;return t.computed(()=>{let a;try{const c=e==null?void 0:e.appContext.config.globalProperties,f=c==null?void 0:c.$i18n;f&&"global"in f&&(a=f.global)}catch{a=void 0}return(a||r).locale.value==="zh-TW"?np:Wi})}const A9=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},pageSizeList:{default:()=>[10,25,50,100,200]},showPagination:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:o}){const r=e,{pagination:a}=t.toRefs(r),i=o,u=y=>{i("search",y)},c=()=>{i("search",null)},f=y=>{i("updatePage",y)},h=y=>{i("updatePageSize",y)},d=()=>{i("click:back")},m=t.computed(()=>r.showPagination?r.showPagination:r.pagination.totalCount>0),g=lp();return(y,C)=>{const b=hC,v=Y7;return t.openBlock(),t.createBlock(t.unref(Ta),{title:r.title,"show-back":y.showBack,"onClick:back":d},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Zo),{"show-search":y.showSearch,"onKeydown:enter":u,"onUpdate:clear":c},{button:t.withCtx(()=>[t.renderSlot(y.$slots,"firstButton"),t.renderSlot(y.$slots,"customButton"),t.renderSlot(y.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(y.$slots,"filterButton")]),_:3},8,["show-search"])]),main:t.withCtx(()=>[t.renderSlot(y.$slots,"main")]),footer:t.withCtx(()=>[t.createVNode(v,{locale:t.unref(g)},{default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(b,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":y.pageSizeList,"current-page":t.unref(a).page,"page-size":t.unref(a).limit,total:t.unref(a).totalCount,onCurrentChange:f,onSizeChange:h},null,8,["page-sizes","current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:1},8,["locale"])]),_:3},8,["title","show-back"])}}}),L9={class:"detail-container"},I9={class:"content-wrapper"},R9={key:0,class:"border-t py-4 w-full flex items-center justify-end"},P9=Or(t.defineComponent({__name:"DetailLayout",props:{title:{},showBack:{type:[Boolean,String,Object]},isEditable:{type:Boolean},pageLoading:{type:Boolean}},emits:["update:saveEdit","update:cancelEdit","click:back"],setup(e,{emit:o}){const{t:r}=Kn.useI18n(),a=o,i=()=>{a("update:saveEdit",!1)},u=()=>{a("update:cancelEdit")},c=()=>{a("click:back")};return(f,h)=>{const d=qo;return t.openBlock(),t.createBlock(t.unref(Ta),{title:f.title,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",L9,[t.renderSlot(f.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",I9,[t.renderSlot(f.$slots,"main",{},void 0,!0)])])),[[d,f.pageLoading]])]),footer:t.withCtx(()=>[f.isEditable?(t.openBlock(),t.createElementBlock("div",R9,[t.createVNode(t.unref(Nt),{text:t.unref(r)("common.save"),type:"primary","is-fill":"",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(r)("common.discard"),type:"primary",onClick:u},null,8,["text"])])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-3b4bc285"]]),M9={class:"filter-container"},$9={class:"filter-header"},F9={class:"submit-row"},V9=Or(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:o}){const{t:r}=Kn.useI18n(),a=o,i=()=>{a("submitEmit")},u=()=>{a("resetEmit")},c=()=>{a("click:back")};return(f,h)=>(t.openBlock(),t.createBlock(t.unref(Ta),{title:f.mainTitle,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.createElementVNode("div",M9,[t.createElementVNode("div",$9,t.toDisplayString(f.filterTitle),1),t.renderSlot(f.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",F9,[t.createVNode(t.unref(Nt),{text:t.unref(r)("common.execute"),"is-fill":"",type:"primary",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(r)("common.reset"),type:"primary",onClick:u},null,8,["text"])])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-32b37758"]]),D9={class:"w-full mb-4"},z9={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},W9={class:"flex items-center mr-4"},H9={key:0,src:n9,alt:"Excel",class:"w-6 h-6"},U9={key:1,src:o9,alt:"Excel-active",class:"w-6 h-6"},yl=t.defineComponent({__name:"SortTable",props:{data:{},columns:{},tableTitle:{},showSelection:{type:Boolean},loading:{type:Boolean},showSummary:{type:Boolean},showOverFlowTooltip:{type:Boolean},summaryMethod:{type:Function},sortTableRowClassName:{type:Function},showCheckBtn:{type:Boolean},showEditBtn:{type:Boolean}},emits:["open:transfer","click:downloadExcelFile","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:o}){const r=o,a=()=>{r("open:transfer")},i=g=>{r("update:selectRow",g)},u=(g,y)=>{r("click:cell",g,y)},c=g=>{r("click:columnSort",g)},f=g=>{r("click:checkRow",g)},h=g=>{r("click:editRow",g)},d=()=>{r("click:downloadExcelFile")},m=t.reactive({itemOnHover:!1});return(g,y)=>{const C=st,b=qo;return t.openBlock(),t.createElementBlock("div",D9,[t.createElementVNode("div",z9,[t.createElementVNode("div",W9,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:a},[t.createVNode(C,null,{default:t.withCtx(()=>[t.createVNode(t.unref(c3))]),_:1})]),t.createElementVNode("div",{class:"cursor-pointer flex items-center justify-center ml-1",onMouseenter:y[0]||(y[0]=v=>m.itemOnHover=!0),onMouseleave:y[1]||(y[1]=v=>m.itemOnHover=!1),onClick:d},[m.itemOnHover?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",H9)),m.itemOnHover?(t.openBlock(),t.createElementBlock("img",U9)):t.createCommentVNode("",!0)],32)])]),t.withDirectives(t.createVNode(t.unref(Yo),{data:g.data,columns:g.columns,"show-summary":g.showSummary,"show-over-flow-tooltip":g.showOverFlowTooltip,"summary-method":g.summaryMethod,"show-selection":g.showSelection,"base-table-row-class-name":g.sortTableRowClassName,"show-check-btn":g.showCheckBtn,"show-edit-btn":g.showEditBtn,onSelectionChange:i,onCellClick:u,onColumnSortChange:c,"onClick:checkRow":f,"onClick:editRow":h},null,8,["data","columns","show-summary","show-over-flow-tooltip","summary-method","show-selection","base-table-row-class-name","show-check-btn","show-edit-btn"]),[[b,g.loading]])])}}});function K9(e){return e.map(o=>({...o,checkActive:!0}))}const ap=[Yo,Nt,Nr,Xo,yl,bl,Zo];function ip(e,o){o!=null&&o.locale&&rp(o.locale),ap.forEach(r=>{e.component(r.name||"VueTableComponent",r)})}const j9={install:ip,...ap};Yo.install=e=>{e.component(Yo.name||"BaseTable",Yo)},Nt.install=e=>{e.component(Nt.name||"BaseBtn",Nt)},Nr.install=e=>{e.component(Nr.name||"BaseInput",Nr)},Xo.install=e=>{e.component(Xo.name||"BaseDialog",Xo)},yl.install=e=>{e.component(yl.name||"SortTable",yl)},bl.install=e=>{e.component(bl.name||"TitleTable",bl)},Zo.install=e=>{e.component(Zo.name||"SearchBar",Zo)},me.BaseBtn=Nt,me.BaseDialog=Xo,me.BaseInput=Nr,me.BaseMultipleInput=a9,me.BaseTable=Yo,me.BaseWaringDialog=l9,me.DetailLayout=P9,me.FilterLayout=V9,me.FunctionHeader=J0,me.MainPanel=Ta,me.SearchBar=Zo,me.SearchableListPanel=A9,me.SortTable=yl,me.TitleTable=bl,me.TransferDialog=w9,me.TransferItem=Z0,me.default=j9,me.enUS=ep,me.install=ip,me.messages=tp,me.setActiveColumn=K9,me.setLocale=rp,me.useComponentElementLocale=lp,me.useElementLocale=N9,me.useI18n=O9,me.zhTW=Q0,Object.defineProperties(me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
44
+ }`;var ke=Nh(function(){return De(k,se+"return "+Y).apply(r,A)});if(ke.source=Y,nu(ke))throw ke;return ke}function sB(n){return ze(n).toLowerCase()}function cB(n){return ze(n).toUpperCase()}function uB(n,l,s){if(n=ze(n),n&&(s||l===r))return Vp(n);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Tn(l),k=Dp(p,w),A=zp(p,w)+1;return Lo(p,k,A).join("")}function fB(n,l,s){if(n=ze(n),n&&(s||l===r))return n.slice(0,Hp(n)+1);if(!n||!(l=nn(l)))return n;var p=Tn(n),w=zp(p,Tn(l))+1;return Lo(p,0,w).join("")}function dB(n,l,s){if(n=ze(n),n&&(s||l===r))return n.replace(Lr,"");if(!n||!(l=nn(l)))return n;var p=Tn(n),w=Dp(p,Tn(l));return Lo(p,w).join("")}function pB(n,l){var s=U,p=z;if(tt(l)){var w="separator"in l?l.separator:w;s="length"in l?Se(l.length):s,p="omission"in l?nn(l.omission):p}n=ze(n);var k=n.length;if($r(n)){var A=Tn(n);k=A.length}if(s>=k)return n;var I=s-Fr(p);if(I<1)return p;var M=A?Lo(A,0,I).join(""):n.slice(0,I);if(w===r)return M+p;if(A&&(I+=M.length-I),ou(w)){if(n.slice(I).search(w)){var K,j=M;for(w.global||(w=yc(w.source,ze(ot.exec(w))+"g")),w.lastIndex=0;K=w.exec(j);)var Y=K.index;M=M.slice(0,Y===r?I:Y)}}else if(n.indexOf(nn(w),I)!=I){var ee=M.lastIndexOf(w);ee>-1&&(M=M.slice(0,ee))}return M+p}function hB(n){return n=ze(n),n&&Ks.test(n)?n.replace(eo,Hw):n}var mB=Kr(function(n,l,s){return n+(s?" ":"")+l.toUpperCase()}),au=A2("toUpperCase");function Oh(n,l,s){return n=ze(n),l=s?r:l,l===r?Fw(n)?jw(n):Ow(n):n.match(l)||[]}var Nh=Te(function(n,l){try{return en(n,r,l)}catch(s){return nu(s)?s:new ge(s)}}),gB=lo(function(n,l){return mn(l,function(s){s=Un(s),oo(n,s,eu(n[s],n))}),n});function bB(n){var l=n==null?0:n.length,s=ue();return n=l?Qe(n,function(p){if(typeof p[1]!="function")throw new gn(c);return[s(p[0]),p[1]]}):[],Te(function(p){for(var w=-1;++w<l;){var k=n[w];if(en(k[0],this,p))return en(k[1],this,p)}})}function CB(n){return Hv(Cn(n,g))}function iu(n){return function(){return n}}function yB(n,l){return n==null||n!==n?l:n}var wB=I2(),vB=I2(!0);function Gt(n){return n}function su(n){return c2(typeof n=="function"?n:Cn(n,g))}function _B(n){return f2(Cn(n,g))}function SB(n,l){return d2(n,Cn(l,g))}var EB=Te(function(n,l){return function(s){return Nl(s,n,l)}}),kB=Te(function(n,l){return function(s){return Nl(n,s,l)}});function cu(n,l,s){var p=pt(l),w=Ja(l,p);s==null&&!(tt(l)&&(w.length||!p.length))&&(s=l,l=n,n=this,w=Ja(l,pt(l)));var k=!(tt(s)&&"chain"in s)||!!s.chain,A=io(n);return mn(w,function(I){var M=l[I];n[I]=M,A&&(n.prototype[I]=function(){var K=this.__chain__;if(k||K){var j=n(this.__wrapped__),Y=j.__actions__=Ut(this.__actions__);return Y.push({func:M,args:arguments,thisArg:n}),j.__chain__=K,j}return M.apply(n,Bo([this.value()],arguments))})}),n}function BB(){return wt._===this&&(wt._=Jw),this}function uu(){}function xB(n){return n=Se(n),Te(function(l){return p2(l,n)})}var TB=zc(Qe),OB=zc(Rp),NB=zc(dc);function Ah(n){return qc(n)?pc(Un(n)):a_(n)}function AB(n){return function(l){return n==null?r:ar(n,l)}}var LB=P2(),IB=P2(!0);function fu(){return[]}function du(){return!1}function RB(){return{}}function PB(){return""}function MB(){return!0}function $B(n,l){if(n=Se(n),n<1||n>W)return[];var s=Q,p=kt(n,Q);l=ue(l),n-=Q;for(var w=gc(p,l);++s<n;)l(s);return w}function FB(n){return Ce(n)?Qe(n,Un):on(n)?[n]:Ut(Z2(ze(n)))}function VB(n){var l=++Xw;return ze(n)+l}var DB=ri(function(n,l){return n+l},0),zB=Wc("ceil"),WB=ri(function(n,l){return n/l},1),HB=Wc("floor");function UB(n){return n&&n.length?Za(n,Gt,xc):r}function KB(n,l){return n&&n.length?Za(n,ue(l,2),xc):r}function jB(n){return $p(n,Gt)}function GB(n,l){return $p(n,ue(l,2))}function qB(n){return n&&n.length?Za(n,Gt,Ac):r}function YB(n,l){return n&&n.length?Za(n,ue(l,2),Ac):r}var XB=ri(function(n,l){return n*l},1),ZB=Wc("round"),JB=ri(function(n,l){return n-l},0);function QB(n){return n&&n.length?mc(n,Gt):0}function ex(n,l){return n&&n.length?mc(n,ue(l,2)):0}return S.after=_E,S.ary=sh,S.assign=ck,S.assignIn=_h,S.assignInWith=bi,S.assignWith=uk,S.at=fk,S.before=ch,S.bind=eu,S.bindAll=gB,S.bindKey=uh,S.castArray=RE,S.chain=lh,S.chunk=H_,S.compact=U_,S.concat=K_,S.cond=bB,S.conforms=CB,S.constant=iu,S.countBy=QS,S.create=dk,S.curry=fh,S.curryRight=dh,S.debounce=ph,S.defaults=pk,S.defaultsDeep=hk,S.defer=SE,S.delay=EE,S.difference=j_,S.differenceBy=G_,S.differenceWith=q_,S.drop=Y_,S.dropRight=X_,S.dropRightWhile=Z_,S.dropWhile=J_,S.fill=Q_,S.filter=tE,S.flatMap=rE,S.flatMapDeep=lE,S.flatMapDepth=aE,S.flatten=th,S.flattenDeep=eS,S.flattenDepth=tS,S.flip=kE,S.flow=wB,S.flowRight=vB,S.fromPairs=nS,S.functions=vk,S.functionsIn=_k,S.groupBy=iE,S.initial=rS,S.intersection=lS,S.intersectionBy=aS,S.intersectionWith=iS,S.invert=Ek,S.invertBy=kk,S.invokeMap=cE,S.iteratee=su,S.keyBy=uE,S.keys=pt,S.keysIn=jt,S.map=fi,S.mapKeys=xk,S.mapValues=Tk,S.matches=_B,S.matchesProperty=SB,S.memoize=pi,S.merge=Ok,S.mergeWith=Sh,S.method=EB,S.methodOf=kB,S.mixin=cu,S.negate=hi,S.nthArg=xB,S.omit=Nk,S.omitBy=Ak,S.once=BE,S.orderBy=fE,S.over=TB,S.overArgs=xE,S.overEvery=OB,S.overSome=NB,S.partial=tu,S.partialRight=hh,S.partition=dE,S.pick=Lk,S.pickBy=Eh,S.property=Ah,S.propertyOf=AB,S.pull=fS,S.pullAll=oh,S.pullAllBy=dS,S.pullAllWith=pS,S.pullAt=hS,S.range=LB,S.rangeRight=IB,S.rearg=TE,S.reject=mE,S.remove=mS,S.rest=OE,S.reverse=Jc,S.sampleSize=bE,S.set=Rk,S.setWith=Pk,S.shuffle=CE,S.slice=gS,S.sortBy=vE,S.sortedUniq=SS,S.sortedUniqBy=ES,S.split=rB,S.spread=NE,S.tail=kS,S.take=BS,S.takeRight=xS,S.takeRightWhile=TS,S.takeWhile=OS,S.tap=US,S.throttle=AE,S.thru=ui,S.toArray=yh,S.toPairs=kh,S.toPairsIn=Bh,S.toPath=FB,S.toPlainObject=vh,S.transform=Mk,S.unary=LE,S.union=NS,S.unionBy=AS,S.unionWith=LS,S.uniq=IS,S.uniqBy=RS,S.uniqWith=PS,S.unset=$k,S.unzip=Qc,S.unzipWith=rh,S.update=Fk,S.updateWith=Vk,S.values=qr,S.valuesIn=Dk,S.without=MS,S.words=Oh,S.wrap=IE,S.xor=$S,S.xorBy=FS,S.xorWith=VS,S.zip=DS,S.zipObject=zS,S.zipObjectDeep=WS,S.zipWith=HS,S.entries=kh,S.entriesIn=Bh,S.extend=_h,S.extendWith=bi,cu(S,S),S.add=DB,S.attempt=Nh,S.camelCase=Uk,S.capitalize=xh,S.ceil=zB,S.clamp=zk,S.clone=PE,S.cloneDeep=$E,S.cloneDeepWith=FE,S.cloneWith=ME,S.conformsTo=VE,S.deburr=Th,S.defaultTo=yB,S.divide=WB,S.endsWith=Kk,S.eq=Nn,S.escape=jk,S.escapeRegExp=Gk,S.every=eE,S.find=nE,S.findIndex=Q2,S.findKey=mk,S.findLast=oE,S.findLastIndex=eh,S.findLastKey=gk,S.floor=HB,S.forEach=ah,S.forEachRight=ih,S.forIn=bk,S.forInRight=Ck,S.forOwn=yk,S.forOwnRight=wk,S.get=ru,S.gt=DE,S.gte=zE,S.has=Sk,S.hasIn=lu,S.head=nh,S.identity=Gt,S.includes=sE,S.indexOf=oS,S.inRange=Wk,S.invoke=Bk,S.isArguments=cr,S.isArray=Ce,S.isArrayBuffer=WE,S.isArrayLike=Kt,S.isArrayLikeObject=at,S.isBoolean=HE,S.isBuffer=Io,S.isDate=UE,S.isElement=KE,S.isEmpty=jE,S.isEqual=GE,S.isEqualWith=qE,S.isError=nu,S.isFinite=YE,S.isFunction=io,S.isInteger=mh,S.isLength=mi,S.isMap=gh,S.isMatch=XE,S.isMatchWith=ZE,S.isNaN=JE,S.isNative=QE,S.isNil=tk,S.isNull=ek,S.isNumber=bh,S.isObject=tt,S.isObjectLike=rt,S.isPlainObject=Ml,S.isRegExp=ou,S.isSafeInteger=nk,S.isSet=Ch,S.isString=gi,S.isSymbol=on,S.isTypedArray=Gr,S.isUndefined=ok,S.isWeakMap=rk,S.isWeakSet=lk,S.join=sS,S.kebabCase=qk,S.last=wn,S.lastIndexOf=cS,S.lowerCase=Yk,S.lowerFirst=Xk,S.lt=ak,S.lte=ik,S.max=UB,S.maxBy=KB,S.mean=jB,S.meanBy=GB,S.min=qB,S.minBy=YB,S.stubArray=fu,S.stubFalse=du,S.stubObject=RB,S.stubString=PB,S.stubTrue=MB,S.multiply=XB,S.nth=uS,S.noConflict=BB,S.noop=uu,S.now=di,S.pad=Zk,S.padEnd=Jk,S.padStart=Qk,S.parseInt=eB,S.random=Hk,S.reduce=pE,S.reduceRight=hE,S.repeat=tB,S.replace=nB,S.result=Ik,S.round=ZB,S.runInContext=P,S.sample=gE,S.size=yE,S.snakeCase=oB,S.some=wE,S.sortedIndex=bS,S.sortedIndexBy=CS,S.sortedIndexOf=yS,S.sortedLastIndex=wS,S.sortedLastIndexBy=vS,S.sortedLastIndexOf=_S,S.startCase=lB,S.startsWith=aB,S.subtract=JB,S.sum=QB,S.sumBy=ex,S.template=iB,S.times=$B,S.toFinite=so,S.toInteger=Se,S.toLength=wh,S.toLower=sB,S.toNumber=vn,S.toSafeInteger=sk,S.toString=ze,S.toUpper=cB,S.trim=uB,S.trimEnd=fB,S.trimStart=dB,S.truncate=pB,S.unescape=hB,S.uniqueId=VB,S.upperCase=mB,S.upperFirst=au,S.each=ah,S.eachRight=ih,S.first=nh,cu(S,(function(){var n={};return Wn(S,function(l,s){Ue.call(S.prototype,s)||(n[s]=l)}),n})(),{chain:!1}),S.VERSION=a,mn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){S[n].placeholder=S}),mn(["drop","take"],function(n,l){Ie.prototype[n]=function(s){s=s===r?1:ft(Se(s),0);var p=this.__filtered__&&!l?new Ie(this):this.clone();return p.__filtered__?p.__takeCount__=kt(s,p.__takeCount__):p.__views__.push({size:kt(s,Q),type:n+(p.__dir__<0?"Right":"")}),p},Ie.prototype[n+"Right"]=function(s){return this.reverse()[n](s).reverse()}}),mn(["filter","map","takeWhile"],function(n,l){var s=l+1,p=s==re||s==oe;Ie.prototype[n]=function(w){var k=this.clone();return k.__iteratees__.push({iteratee:ue(w,3),type:s}),k.__filtered__=k.__filtered__||p,k}}),mn(["head","last"],function(n,l){var s="take"+(l?"Right":"");Ie.prototype[n]=function(){return this[s](1).value()[0]}}),mn(["initial","tail"],function(n,l){var s="drop"+(l?"":"Right");Ie.prototype[n]=function(){return this.__filtered__?new Ie(this):this[s](1)}}),Ie.prototype.compact=function(){return this.filter(Gt)},Ie.prototype.find=function(n){return this.filter(n).head()},Ie.prototype.findLast=function(n){return this.reverse().find(n)},Ie.prototype.invokeMap=Te(function(n,l){return typeof n=="function"?new Ie(this):this.map(function(s){return Nl(s,n,l)})}),Ie.prototype.reject=function(n){return this.filter(hi(ue(n)))},Ie.prototype.slice=function(n,l){n=Se(n);var s=this;return s.__filtered__&&(n>0||l<0)?new Ie(s):(n<0?s=s.takeRight(-n):n&&(s=s.drop(n)),l!==r&&(l=Se(l),s=l<0?s.dropRight(-l):s.take(l-n)),s)},Ie.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ie.prototype.toArray=function(){return this.take(Q)},Wn(Ie.prototype,function(n,l){var s=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),w=S[p?"take"+(l=="last"?"Right":""):l],k=p||/^find/.test(l);w&&(S.prototype[l]=function(){var A=this.__wrapped__,I=p?[1]:arguments,M=A instanceof Ie,K=I[0],j=M||Ce(A),Y=function(Ae){var Re=w.apply(S,Bo([Ae],I));return p&&ee?Re[0]:Re};j&&s&&typeof K=="function"&&K.length!=1&&(M=j=!1);var ee=this.__chain__,se=!!this.__actions__.length,fe=k&&!ee,ke=M&&!se;if(!k&&j){A=ke?A:new Ie(this);var de=n.apply(A,I);return de.__actions__.push({func:ui,args:[Y],thisArg:r}),new bn(de,ee)}return fe&&ke?n.apply(this,I):(de=this.thru(Y),fe?p?de.value()[0]:de.value():de)})}),mn(["pop","push","shift","sort","splice","unshift"],function(n){var l=Ma[n],s=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",p=/^(?:pop|shift)$/.test(n);S.prototype[n]=function(){var w=arguments;if(p&&!this.__chain__){var k=this.value();return l.apply(Ce(k)?k:[],w)}return this[s](function(A){return l.apply(Ce(A)?A:[],w)})}}),Wn(Ie.prototype,function(n,l){var s=S[l];if(s){var p=s.name+"";Ue.call(Wr,p)||(Wr[p]=[]),Wr[p].push({name:l,func:s})}}),Wr[oi(r,B).name]=[{name:"wrapper",func:r}],Ie.prototype.clone=hv,Ie.prototype.reverse=mv,Ie.prototype.value=gv,S.prototype.at=KS,S.prototype.chain=jS,S.prototype.commit=GS,S.prototype.next=qS,S.prototype.plant=XS,S.prototype.reverse=ZS,S.prototype.toJSON=S.prototype.valueOf=S.prototype.value=JS,S.prototype.first=S.prototype.head,Sl&&(S.prototype[Sl]=YS),S}),Vr=Gw();tr?((tr.exports=Vr)._=Vr,sc._=Vr):wt._=Vr}).call(m9)})(Cl,Cl.exports)),Cl.exports}var b9=g9();const xa=_7(b9),Z0=t.defineComponent({__name:"transferItem",props:{dialogModalVisible:{type:Boolean},columnsValue:{},columnsIndex:{},columnsLen:{}},emits:["update:toUnLock","update:toLock","update:toTop","update:toPre","update:toNext","update:toBottom"],setup(e,{emit:o}){const r=e,a=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=o,u=()=>{a.itemOnClick=!0,a.itemOnHover=!1},c=()=>{a.itemOnClick=!1,a.itemOnHover=!0};t.watch(()=>r.dialogModalVisible,g=>{g||(a.itemOnClick=!1,a.itemOnHover=!1)});const f=t.computed(()=>!!r.columnsValue.fixed),h=t.computed(()=>[{icon:p3,emitKey:"update:toUnLock",isDisabled:!f.value},{icon:r3,emitKey:"update:toLock",isDisabled:f.value},{icon:f3,emitKey:"update:toTop",isDisabled:r.columnsIndex===0},{icon:Zf,emitKey:"update:toPre",isDisabled:r.columnsIndex===0},{icon:Hi,emitKey:"update:toNext",isDisabled:r.columnsIndex===r.columnsLen-1},{icon:K5,emitKey:"update:toBottom",isDisabled:r.columnsIndex===r.columnsLen-1}]),d=24/h.value.length,m=g=>{i(g)};return(g,y)=>{const C=vo,b=K7,v=yC;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":a.itemOnHover,"cursor-grabbing":a.itemOnClick}]),onMouseenter:y[0]||(y[0]=E=>a.itemOnHover=!0),onMouseleave:y[1]||(y[1]=E=>a.itemOnHover=!1),onMousedown:u,onMouseup:c},[(t.openBlock(),t.createBlock(C,{label:g.columnsValue.label,value:g.columnsValue.prop,key:g.columnsValue.prop},null,8,["label","value"])),t.createVNode(v,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,E=>(t.openBlock(),t.createBlock(b,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(Nt),{icon:E.icon,disabled:E.isDisabled,link:"",type:"primary",onClick:B=>m(E.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),C9={class:"search-bar"},y9={class:"transfer-sort-wrapper"},w9=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:o}){const{t:r}=Kn.useI18n(),a=e,i=o,u=t.computed({get:()=>a.modelValue,set:E=>i("update:modelValue",E)}),c=t.reactive({localColumns:xa.cloneDeep(a.columnsValue),clickItemProp:"",checkList:a.columnsValue.map(E=>E.prop)}),f={toTop:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.unshift(B)},toBottom:E=>{if(E>=c.localColumns.length-1)return;const B=c.localColumns.splice(E,1)[0];c.localColumns.push(B)},toPre:E=>{if(E>0){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E-1],c.localColumns[E-1]=B}},toNext:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];c.localColumns[E]=c.localColumns[E+1],c.localColumns[E+1]=B}},toLock:E=>{if(E<=0)return;const B=c.localColumns.splice(E,1)[0];B.fixed="left",c.localColumns.unshift(B)},toUnLock:E=>{if(E<c.localColumns.length-1){const B=c.localColumns[E];delete B.fixed}}},h=()=>{c.localColumns=xa.cloneDeep(a.columnsValue),c.checkList=a.columnsValue.filter(E=>E.checkActive).map(E=>E.prop||"")};t.watch(()=>u.value,E=>{E?h():(c.clickItemProp="",c.localColumns=[],c.checkList=[])});const d=()=>{i("update:submit",c.localColumns)},m=E=>{const B=a.columnsValue.map(O=>O.prop);c.checkList=E?B:[],g(c.checkList)},g=E=>{const B=E.map(O=>String(O));c.localColumns.forEach(O=>{O.checkActive=B.includes(O.prop)}),i("update:checkChange",{columns:c.localColumns,checkList:c.checkList})},y=t.computed(()=>c.localColumns.length>0&&c.checkList.length===c.localColumns.length),C=t.computed({get:()=>y.value,set:E=>m(E)}),b=()=>{c.localColumns=xa.cloneDeep(a.columnsValue)},v=E=>{if(E.length>0){const B=xa.cloneDeep(c.localColumns);c.localColumns=B.filter(O=>O.label.includes(E))}else b()};return(E,B)=>{const O=vo,T=M7;return t.openBlock(),t.createBlock(Xo,{modelValue:u.value,"onUpdate:modelValue":B[2]||(B[2]=_=>u.value=_),title:E.transferTitle,"onClick:submit":d},{default:t.withCtx(()=>[t.createElementVNode("div",C9,[t.createVNode(Zo,{"show-search":!0,"onUpdate:clear":b,"onKeydown:enter":v})]),t.createElementVNode("div",y9,[t.createVNode(O,{modelValue:C.value,"onUpdate:modelValue":B[0]||(B[0]=_=>C.value=_),class:"px-4",onChange:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("common.column"))+" ("+t.toDisplayString(c.checkList.length)+"/"+t.toDisplayString(c.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(T,{modelValue:c.checkList,"onUpdate:modelValue":B[1]||(B[1]=_=>c.checkList=_),onChange:g},{default:t.withCtx(()=>[t.renderSlot(E.$slots,"list-container",{columns:c.localColumns,clickItemProp:c.clickItemProp,handleItemEvents:f,handleMousedown:_=>c.clickItemProp=_},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localColumns,(_,x)=>(t.openBlock(),t.createBlock(Z0,{key:_.prop,"dialog-modal-visible":u.value,"columns-value":_,"columns-index":x,"columns-len":c.localColumns.length,class:t.normalizeClass({"transfer-active-bg":_.checkActive,"transfer-active-border":c.clickItemProp==_.prop}),onMousedown:N=>c.clickItemProp=_.prop||"","onUpdate:toTop":N=>f.toTop(x),"onUpdate:toBottom":N=>f.toBottom(x),"onUpdate:toPre":N=>f.toPre(x),"onUpdate:toNext":N=>f.toNext(x),"onUpdate:toLock":N=>f.toLock(x),"onUpdate:toUnLock":N=>f.toUnLock(x)},null,8,["dialog-modal-visible","columns-value","columns-index","columns-len","class","onMousedown","onUpdate:toTop","onUpdate:toBottom","onUpdate:toPre","onUpdate:toNext","onUpdate:toLock","onUpdate:toUnLock"]))),128))])]),_:3},8,["modelValue"])])]),_:3},8,["modelValue","title"])}}}),v9={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},_9={class:"flex items-center gap-2"},S9={key:0,class:"flex items-center text-black"},E9={class:"font-bold text-text text-xl md:text-2xl;"},k9={class:"flex items-center gap-3"},J0=t.defineComponent({__name:"FunctionHeader",props:{title:{type:String,required:!1,default:""},showBack:{type:[Boolean,String,Object],required:!1,default:!1},depth:{type:Number,required:!1,default:1}},emits:["back"],setup(e,{emit:o}){const r=e,a=o,i=()=>{const u={};switch(typeof r.showBack){case"string":u.path=r.showBack;break;case"object":Object.assign(u,r.showBack);break;default:u.path=""}a("back",u)};return(u,c)=>{const f=st;return t.openBlock(),t.createElementBlock("div",v9,[t.createElementVNode("div",_9,[e.showBack?(t.openBlock(),t.createElementBlock("div",S9,[t.createVNode(f,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref(V5))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",E9,t.toDisplayString(r.title),1)]),t.createElementVNode("div",k9,[t.renderSlot(u.$slots,"default")])])}}}),B9={key:0,class:"px-4 pt-1.5"},x9={key:1,class:"py-1.5 px-4"},T9={key:0,class:"flex justify-start pl-1.5 pt-0"},Ta=Or(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:o}){const r=e,a=o,i=()=>{a("click:back")};return(u,c)=>{const f=aa;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(J0),{title:r.title,showBack:r.showBack,onBack:i,depth:r.depth},null,8,["title","showBack","depth"]),t.createVNode(f,{class:"panel-scrollbar"},{default:t.withCtx(()=>[u.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",B9,[t.renderSlot(u.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),u.$slots.main?(t.openBlock(),t.createElementBlock("div",x9,[t.renderSlot(u.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),u.$slots.footer?(t.openBlock(),t.createElementBlock("div",T9,[t.renderSlot(u.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-a95f0b83"]]),Q0={"common.select":"請選擇","common.confirm":"確定","common.cancel":"取消","dialog.confirmRemoveUser":"請問是否確認移除該使用者","common.warning":"警告","search.placeholder":"請輸入關鍵字搜尋列表","common.execute":"執行","common.reset":"重設","common.loading":"數據加載中","common.view":"查看","common.edit":"編輯","common.column":"欄","common.close":"關閉","demo.componentDemo":"組件示範","button.title":"按鈕","button.primary ":"主要","button.default":"默認","button.danger":"危險","button.success":"成功","button.warning":"警告","button.info":"信息","button.style":"樣式","button.size":"尺寸","button.small":"小","button.medium":"中","button.large ":"大","status.title":"狀態","status.normal ":"正常","status.loading":"載入中","status.disabled":"禁用","button.withIcon ":"帶圖標的","button.add":"添加","button.delete":"刪除","common.save":"儲存","common.discard":"捨棄"},ep={"common.select":"Please select","common.confirm":"Confirm","common.cancel":"Cancel","dialog.confirmRemoveUser":"Are you sure you want to remove this user?","common.warning":"Warning","search.placeholder":"Please enter keywords to search the list","common.execute":"Execute","common.reset":"Reset","common.loading":"Data loading","common.view":"View","common.edit":"Edit","common.column":"Column","common.close":"Close","demo.componentDemo":"Component Demo","button.title":"Button","button.primary ":"Primary","button.default":"Default","button.danger":"Danger","button.success":"Success","button.warning":"Warning","button.info":"Info","button.style":"Style","button.size":"Size","button.small":"Small","button.medium":"Medium","button.large ":"Large","status.title":"Status","status.normal ":"Normal","status.loading":"Loading","status.disabled":"Disabled","button.withIcon ":"With Icon","button.add":"Add","button.delete":"Delete","common.save":"Save","common.discard":"Discard"},tp={"zh-TW":Q0,"en-US":ep};var np={name:"zh-tw",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"確認",clear:"清空",defaultLabel:"色彩選擇器",description:"目前色彩為 {color}。按一下 Enter 以選擇新色彩。",alphaLabel:"選擇透明度的值"},datepicker:{now:"現在",today:"今天",cancel:"取消",clear:"清空",confirm:"確認",dateTablePrompt:"使用方向鍵與 Enter 鍵以選擇日期",monthTablePrompt:"使用方向鍵與 Enter 鍵以選擇月份",yearTablePrompt:"使用方向鍵與 Enter 鍵以選擇年份",selectedDate:"已選日期",selectDate:"選擇日期",selectTime:"選擇時間",startDate:"開始日期",startTime:"開始時間",endDate:"結束日期",endTime:"結束時間",prevYear:"前一年",nextYear:"後一年",prevMonth:"上個月",nextMonth:"下個月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"減少數值",increase:"增加數值"},select:{loading:"載入中",noMatch:"無相符資料",noData:"無資料",placeholder:"請選擇"},mention:{loading:"載入中"},dropdown:{toggleDropdown:"切換下拉選單"},cascader:{noMatch:"無相符資料",loading:"載入中",placeholder:"請選擇",noData:"無資料"},pagination:{goto:"前往",pagesize:"項/頁",total:"共 {total} 項",pageClassifier:"頁",page:"頁",prev:"上一頁",next:"下一頁",currentPage:"第 {pager} 頁",prevPages:"向前 {pager} 頁",nextPages:"向後 {pager} 頁",deprecationWarning:"偵測到已過時的使用方式,請參閱 el-pagination 說明文件以了解更多資訊"},dialog:{close:"關閉此對話框"},drawer:{close:"關閉此對話框"},messagebox:{title:"提示",confirm:"確定",cancel:"取消",error:"輸入的資料不符合規定!",close:"關閉此對話框"},upload:{deleteTip:"按 Delete 鍵以刪除",delete:"刪除",preview:"查看圖片",continue:"繼續上傳"},slider:{defaultLabel:"滑桿介於 {min} 至 {max}",defaultRangeStartLabel:"選擇起始值",defaultRangeEndLabel:"選擇結束值"},table:{emptyText:"暫無資料",confirmFilter:"篩選",resetFilter:"重置",clearFilter:"全部",sumText:"合計"},tour:{next:"下一步",previous:"上一步",finish:"結束導覽"},tree:{emptyText:"暫無資料"},transfer:{noMatch:"無相符資料",noData:"無資料",titles:["列表 1","列表 2"],filterPlaceholder:"請輸入搜尋內容",noCheckedFormat:"共 {total} 項",hasCheckedFormat:"已選 {checked}/{total} 項"},image:{error:"載入失敗"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"確認",cancelButtonText:"取消"},carousel:{leftArrow:"上一張投影片",rightArrow:"下一張投影片",indicator:"投影片切換至索引 {index}"}}};let Us=null;const op="zh-TW";function Oa(){return Us||(Us=Kn.createI18n({legacy:!1,locale:op,fallbackLocale:op,messages:tp,silentTranslationWarn:!0,missingWarn:!1,fallbackWarn:!1})),Us}function rp(e){const r=Oa().global;r.locale.value=e}function O9(){return Oa().global}function N9(){const e=t.getCurrentInstance();let o;try{const u=e==null?void 0:e.appContext.config.globalProperties,c=u==null?void 0:u.$i18n;c&&"global"in c&&(o=c.global)}catch{o=void 0}const a=Oa().global,i=o||a;return t.computed(()=>i.locale.value==="zh-TW"?np:Wi)}function lp(){const e=t.getCurrentInstance();let o;try{const u=e==null?void 0:e.appContext.config.globalProperties,c=u==null?void 0:u.$i18n;c&&"global"in c&&(o=c.global)}catch{o=void 0}const a=Oa().global,i=o||a;return t.computed(()=>i.locale.value==="zh-TW"?np:Wi)}const A9=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},pageSizeList:{default:()=>[10,25,50,100,200]},showPagination:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:o}){const r=e,{pagination:a}=t.toRefs(r),i=o,u=y=>{i("search",y)},c=()=>{i("search",null)},f=y=>{i("updatePage",y)},h=y=>{i("updatePageSize",y)},d=()=>{i("click:back")},m=t.computed(()=>r.showPagination?r.showPagination:r.pagination.totalCount>0),g=lp();return(y,C)=>{const b=hC,v=Y7;return t.openBlock(),t.createBlock(t.unref(Ta),{title:r.title,"show-back":y.showBack,"onClick:back":d},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Zo),{"show-search":y.showSearch,"onKeydown:enter":u,"onUpdate:clear":c},{button:t.withCtx(()=>[t.renderSlot(y.$slots,"firstButton"),t.renderSlot(y.$slots,"customButton"),t.renderSlot(y.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(y.$slots,"filterButton")]),_:3},8,["show-search"])]),main:t.withCtx(()=>[t.renderSlot(y.$slots,"main")]),footer:t.withCtx(()=>[t.createVNode(v,{locale:t.unref(g)},{default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(b,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":y.pageSizeList,"current-page":t.unref(a).page,"page-size":t.unref(a).limit,total:t.unref(a).totalCount,onCurrentChange:f,onSizeChange:h},null,8,["page-sizes","current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:1},8,["locale"])]),_:3},8,["title","show-back"])}}}),L9={class:"detail-container"},I9={class:"content-wrapper"},R9={key:0,class:"border-t py-4 w-full flex items-center justify-end"},P9=Or(t.defineComponent({__name:"DetailLayout",props:{title:{},showBack:{type:[Boolean,String,Object]},isEditable:{type:Boolean},pageLoading:{type:Boolean}},emits:["update:saveEdit","update:cancelEdit","click:back"],setup(e,{emit:o}){const{t:r}=Kn.useI18n(),a=o,i=()=>{a("update:saveEdit",!1)},u=()=>{a("update:cancelEdit")},c=()=>{a("click:back")};return(f,h)=>{const d=qo;return t.openBlock(),t.createBlock(t.unref(Ta),{title:f.title,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",L9,[t.renderSlot(f.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",I9,[t.renderSlot(f.$slots,"main",{},void 0,!0)])])),[[d,f.pageLoading]])]),footer:t.withCtx(()=>[f.isEditable?(t.openBlock(),t.createElementBlock("div",R9,[t.createVNode(t.unref(Nt),{text:t.unref(r)("common.save"),type:"primary","is-fill":"",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(r)("common.discard"),type:"primary",onClick:u},null,8,["text"])])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-3b4bc285"]]),M9={class:"filter-container"},$9={class:"filter-header"},F9={class:"submit-row"},V9=Or(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:o}){const{t:r}=Kn.useI18n(),a=o,i=()=>{a("submitEmit")},u=()=>{a("resetEmit")},c=()=>{a("click:back")};return(f,h)=>(t.openBlock(),t.createBlock(t.unref(Ta),{title:f.mainTitle,"show-back":f.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.createElementVNode("div",M9,[t.createElementVNode("div",$9,t.toDisplayString(f.filterTitle),1),t.renderSlot(f.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",F9,[t.createVNode(t.unref(Nt),{text:t.unref(r)("common.execute"),"is-fill":"",type:"primary",onClick:i},null,8,["text"]),t.createVNode(t.unref(Nt),{text:t.unref(r)("common.reset"),type:"primary",onClick:u},null,8,["text"])])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-32b37758"]]),D9={class:"w-full mb-4"},z9={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},W9={class:"flex items-center mr-4"},H9={key:0,src:n9,alt:"Excel",class:"w-6 h-6"},U9={key:1,src:o9,alt:"Excel-active",class:"w-6 h-6"},yl=t.defineComponent({__name:"SortTable",props:{data:{},columns:{},tableTitle:{},showSelection:{type:Boolean},loading:{type:Boolean},showSummary:{type:Boolean},showOverFlowTooltip:{type:Boolean},summaryMethod:{type:Function},sortTableRowClassName:{type:Function},showCheckBtn:{type:Boolean},showEditBtn:{type:Boolean}},emits:["open:transfer","click:downloadExcelFile","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:o}){const r=o,a=()=>{r("open:transfer")},i=g=>{r("update:selectRow",g)},u=(g,y)=>{r("click:cell",g,y)},c=g=>{r("click:columnSort",g)},f=g=>{r("click:checkRow",g)},h=g=>{r("click:editRow",g)},d=()=>{r("click:downloadExcelFile")},m=t.reactive({itemOnHover:!1});return(g,y)=>{const C=st,b=qo;return t.openBlock(),t.createElementBlock("div",D9,[t.createElementVNode("div",z9,[t.createElementVNode("div",W9,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:a},[t.createVNode(C,null,{default:t.withCtx(()=>[t.createVNode(t.unref(c3))]),_:1})]),t.createElementVNode("div",{class:"cursor-pointer flex items-center justify-center ml-1",onMouseenter:y[0]||(y[0]=v=>m.itemOnHover=!0),onMouseleave:y[1]||(y[1]=v=>m.itemOnHover=!1),onClick:d},[m.itemOnHover?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",H9)),m.itemOnHover?(t.openBlock(),t.createElementBlock("img",U9)):t.createCommentVNode("",!0)],32)])]),t.withDirectives(t.createVNode(t.unref(Yo),{data:g.data,columns:g.columns,"show-summary":g.showSummary,"show-over-flow-tooltip":g.showOverFlowTooltip,"summary-method":g.summaryMethod,"show-selection":g.showSelection,"base-table-row-class-name":g.sortTableRowClassName,"show-check-btn":g.showCheckBtn,"show-edit-btn":g.showEditBtn,onSelectionChange:i,onCellClick:u,onColumnSortChange:c,"onClick:checkRow":f,"onClick:editRow":h},null,8,["data","columns","show-summary","show-over-flow-tooltip","summary-method","show-selection","base-table-row-class-name","show-check-btn","show-edit-btn"]),[[b,g.loading]])])}}});function K9(e){return e.map(o=>({...o,checkActive:!0}))}const ap=[Yo,Nt,Nr,Xo,yl,bl,Zo];function ip(e,o){o!=null&&o.locale&&rp(o.locale),ap.forEach(r=>{e.component(r.name||"VueTableComponent",r)})}const j9={install:ip,...ap};Yo.install=e=>{e.component(Yo.name||"BaseTable",Yo)},Nt.install=e=>{e.component(Nt.name||"BaseBtn",Nt)},Nr.install=e=>{e.component(Nr.name||"BaseInput",Nr)},Xo.install=e=>{e.component(Xo.name||"BaseDialog",Xo)},yl.install=e=>{e.component(yl.name||"SortTable",yl)},bl.install=e=>{e.component(bl.name||"TitleTable",bl)},Zo.install=e=>{e.component(Zo.name||"SearchBar",Zo)},me.BaseBtn=Nt,me.BaseDialog=Xo,me.BaseInput=Nr,me.BaseMultipleInput=a9,me.BaseTable=Yo,me.BaseWaringDialog=l9,me.DetailLayout=P9,me.FilterLayout=V9,me.FunctionHeader=J0,me.MainPanel=Ta,me.SearchBar=Zo,me.SearchableListPanel=A9,me.SortTable=yl,me.TitleTable=bl,me.TransferDialog=w9,me.TransferItem=Z0,me.default=j9,me.enUS=ep,me.install=ip,me.messages=tp,me.setActiveColumn=K9,me.setLocale=rp,me.useComponentElementLocale=lp,me.useElementLocale=N9,me.useI18n=O9,me.zhTW=Q0,Object.defineProperties(me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayyy-vue-table-components",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
package/src/utils/i18n.ts CHANGED
@@ -93,7 +93,7 @@ export function useI18n() {
93
93
  export function useElementLocale() {
94
94
  const instance = getCurrentInstance()
95
95
 
96
- // 嘗試取得外部專案的 i18n(支援 Composition API 模式)
96
+ // computed 外部一次性獲取 i18n 引用
97
97
  let externalI18n: Composer | undefined
98
98
  try {
99
99
  const globalProperties = instance?.appContext.config.globalProperties
@@ -112,12 +112,13 @@ export function useElementLocale() {
112
112
  const internalI18nInstance = getInternalI18n()
113
113
  const internalGlobal = internalI18nInstance.global as Composer
114
114
 
115
- // 如果存在外部 i18n,優先使用外部的,否則使用內部的
115
+ // 決定使用哪個 i18n(在 computed 外部決定)
116
116
  const currentI18n = externalI18n || internalGlobal
117
117
 
118
118
  // 返回響應式的 Element Plus locale
119
+ // 現在 Vue 可以正確追蹤 currentI18n.locale.value 的變化
119
120
  return computed(() => {
120
- const locale = currentI18n.locale.value
121
+ const locale = currentI18n.locale.value // ✅ Vue 可以追蹤!
121
122
  return locale === 'zh-TW' ? zhTw : enUs
122
123
  })
123
124
  }
@@ -129,30 +130,30 @@ export function useElementLocale() {
129
130
  export function useComponentElementLocale() {
130
131
  const instance = getCurrentInstance()
131
132
 
133
+ // 在 computed 外部一次性獲取 i18n 引用
134
+ let externalI18n: Composer | undefined
135
+ try {
136
+ const globalProperties = instance?.appContext.config.globalProperties
137
+ const externalI18nInstance = globalProperties?.$i18n as I18n | undefined
138
+
139
+ if (externalI18nInstance && 'global' in externalI18nInstance) {
140
+ externalI18n = externalI18nInstance.global as Composer
141
+ }
142
+ } catch (e) {
143
+ externalI18n = undefined
144
+ }
145
+
132
146
  // 取得內部 i18n
133
147
  const internalI18nInstance = getInternalI18n()
134
148
  const internalGlobal = internalI18nInstance.global as Composer
135
149
 
150
+ // 決定使用哪個 i18n(在 computed 外部決定)
151
+ const currentI18n = externalI18n || internalGlobal
152
+
136
153
  // 返回響應式的 Element Plus locale
154
+ // 現在 Vue 可以正確追蹤 currentI18n.locale.value 的變化
137
155
  return computed(() => {
138
- // 每次計算時都重新嘗試取得外部專案的 i18n
139
- let externalI18n: Composer | undefined
140
- try {
141
- const globalProperties = instance?.appContext.config.globalProperties
142
- const externalI18nInstance = globalProperties?.$i18n as I18n | undefined
143
-
144
- // 如果是 I18n 實例,取得其 global 屬性
145
- if (externalI18nInstance && 'global' in externalI18nInstance) {
146
- externalI18n = externalI18nInstance.global as Composer
147
- }
148
- } catch (e) {
149
- // 如果取得失敗,繼續使用內部 i18n
150
- externalI18n = undefined
151
- }
152
-
153
- // 如果存在外部 i18n,優先使用外部的,否則使用內部的
154
- const currentI18n = externalI18n || internalGlobal
155
- const locale = currentI18n.locale.value
156
+ const locale = currentI18n.locale.value // Vue 可以追蹤!
156
157
  return locale === 'zh-TW' ? zhTw : enUs
157
158
  })
158
159
  }