rayyy-vue-table-components 1.3.30 → 1.3.31

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
@@ -21597,9 +21597,7 @@ function XD(e, t = {}) {
21597
21597
  console.log("[I18nPlugin] 檢測到現有 i18n 實例,將合併翻譯訊息");
21598
21598
  const g = {};
21599
21599
  if (Object.keys(Fo).forEach((m) => {
21600
- g[m] = {
21601
- [f]: Fo[m].messages
21602
- };
21600
+ g[m] = Fo[m].messages;
21603
21601
  }), a && o) {
21604
21602
  console.log("[I18nPlugin] 啟用語系同步,監聽外部專案語系變更");
21605
21603
  const m = (_) => {
@@ -21637,9 +21635,7 @@ function XD(e, t = {}) {
21637
21635
  console.log(d ? "[I18nPlugin] 使用獨立 i18n 實例,避免與外部專案衝突" : "[I18nPlugin] 未檢測到現有 i18n 實例,創建新的實例");
21638
21636
  let h = {};
21639
21637
  Object.keys(Fo).forEach((g) => {
21640
- h[g] = {
21641
- [f]: Fo[g].messages
21642
- };
21638
+ h[g] = Fo[g].messages;
21643
21639
  }), i && Object.keys(s).length > 0 && (h = Object.keys(h).reduce(
21644
21640
  (g, m) => {
21645
21641
  const _ = h[m], S = s[m] || {};
package/dist/index.umd.js CHANGED
@@ -62,4 +62,4 @@ __p += '`),Ge&&(ne+=`' +
62
62
  function print() { __p += __j.call(arguments, '') }
63
63
  `:`;
64
64
  `)+ne+`return __p
65
- }`;var $e=Z_(function(){return tt(A,he+"return "+ne).apply(o,B)});if($e.source=ne,td($e))throw $e;return $e}function H$(r){return nt(r).toLowerCase()}function K$(r){return nt(r).toUpperCase()}function G$(r,a,f){if(r=nt(r),r&&(f||a===o))return ib(r);if(!r||!(a=Ln(a)))return r;var h=oo(r),E=oo(a),A=sb(h,E),B=cb(h,E)+1;return mr(h,A,B).join("")}function j$(r,a,f){if(r=nt(r),r&&(f||a===o))return r.slice(0,fb(r)+1);if(!r||!(a=Ln(a)))return r;var h=oo(r),E=cb(h,oo(a))+1;return mr(h,0,E).join("")}function Y$(r,a,f){if(r=nt(r),r&&(f||a===o))return r.replace(Sl,"");if(!r||!(a=Ln(a)))return r;var h=oo(r),E=sb(h,oo(a));return mr(h,E).join("")}function q$(r,a){var f=K,h=U;if(wt(a)){var E="separator"in a?a.separator:E;f="length"in a?Me(a.length):f,h="omission"in a?Ln(a.omission):h}r=nt(r);var A=r.length;if(Ll(r)){var B=oo(r);A=B.length}if(f>=A)return r;var x=f-Il(h);if(x<1)return h;var F=B?mr(B,0,x).join(""):r.slice(0,x);if(E===o)return F+h;if(B&&(x+=F.length-x),nd(E)){if(r.slice(x).search(E)){var J,Z=F;for(E.global||(E=_f(E.source,nt(Tt.exec(E))+"g")),E.lastIndex=0;J=E.exec(Z);)var ne=J.index;F=F.slice(0,ne===o?x:ne)}}else if(r.indexOf(Ln(E),x)!=x){var se=F.lastIndexOf(E);se>-1&&(F=F.slice(0,se))}return F+h}function X$(r){return r=nt(r),r&&Wu.test(r)?r.replace(Bo,TR):r}var J$=$l(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),ld=Qb("toUpperCase");function J_(r,a,f){return r=nt(r),a=f?o:a,a===o?CR(r)?OR(r):fR(r):r.match(a)||[]}var Z_=ze(function(r,a){try{return Nn(r,o,a)}catch(f){return td(f)?f:new Ie(f)}}),Z$=$o(function(r,a){return Un(a,function(f){f=wo(f),xo(r,f,Qf(r[f],r))}),r});function Q$(r){var a=r==null?0:r.length,f=_e();return r=a?gt(r,function(h){if(typeof h[1]!="function")throw new Wn(c);return[f(h[0]),h[1]]}):[],ze(function(h){for(var E=-1;++E<a;){var A=r[E];if(Nn(A[0],this,h))return Nn(A[1],this,h)}})}function eD(r){return Tx(Kn(r,g))}function ad(r){return function(){return r}}function tD(r,a){return r==null||r!==r?a:r}var nD=t_(),oD=t_(!0);function _n(r){return r}function id(r){return Ab(typeof r=="function"?r:Kn(r,g))}function rD(r){return Pb(Kn(r,g))}function lD(r,a){return Rb(r,Kn(a,g))}var aD=ze(function(r,a){return function(f){return Da(f,r,a)}}),iD=ze(function(r,a){return function(f){return Da(r,f,a)}});function sd(r,a,f){var h=Dt(a),E=ys(a,h);f==null&&!(wt(a)&&(E.length||!h.length))&&(f=a,a=r,r=this,E=ys(a,Dt(a)));var A=!(wt(f)&&"chain"in f)||!!f.chain,B=Fo(r);return Un(E,function(x){var F=a[x];r[x]=F,B&&(r.prototype[x]=function(){var J=this.__chain__;if(A||J){var Z=r(this.__wrapped__),ne=Z.__actions__=hn(this.__actions__);return ne.push({func:F,args:arguments,thisArg:r}),Z.__chain__=J,Z}return F.apply(r,sr([this.value()],arguments))})}),r}function sD(){return Wt._===this&&(Wt._=RR),this}function cd(){}function cD(r){return r=Me(r),ze(function(a){return xb(a,r)})}var uD=Vf(gt),fD=Vf(nb),dD=Vf(ff);function Q_(r){return jf(r)?df(wo(r)):Ux(r)}function pD(r){return function(a){return r==null?o:jr(r,a)}}var mD=o_(),hD=o_(!0);function ud(){return[]}function fd(){return!1}function gD(){return{}}function bD(){return""}function _D(){return!0}function yD(r,a){if(r=Me(r),r<1||r>G)return[];var f=re,h=qt(r,re);a=_e(a),r-=re;for(var E=hf(h,a);++f<r;)a(f);return E}function CD(r){return Be(r)?gt(r,wo):In(r)?[r]:hn(y_(nt(r)))}function wD(r){var a=++BR;return nt(r)+a}var vD=Ts(function(r,a){return r+a},0),ED=zf("ceil"),SD=Ts(function(r,a){return r/a},1),TD=zf("floor");function kD(r){return r&&r.length?_s(r,_n,kf):o}function ND(r,a){return r&&r.length?_s(r,_e(a,2),kf):o}function OD(r){return lb(r,_n)}function LD(r,a){return lb(r,_e(a,2))}function ID(r){return r&&r.length?_s(r,_n,If):o}function AD(r,a){return r&&r.length?_s(r,_e(a,2),If):o}var BD=Ts(function(r,a){return r*a},1),PD=zf("round"),RD=Ts(function(r,a){return r-a},0);function xD(r){return r&&r.length?mf(r,_n):0}function MD(r,a){return r&&r.length?mf(r,_e(a,2)):0}return L.after=r8,L.ary=I_,L.assign=K8,L.assignIn=H_,L.assignInWith=Ds,L.assignWith=G8,L.at=j8,L.before=A_,L.bind=Qf,L.bindAll=Z$,L.bindKey=B_,L.castArray=g8,L.chain=N_,L.chunk=TM,L.compact=kM,L.concat=NM,L.cond=Q$,L.conforms=eD,L.constant=ad,L.countBy=x3,L.create=Y8,L.curry=P_,L.curryRight=R_,L.debounce=x_,L.defaults=q8,L.defaultsDeep=X8,L.defer=l8,L.delay=a8,L.difference=OM,L.differenceBy=LM,L.differenceWith=IM,L.drop=AM,L.dropRight=BM,L.dropRightWhile=PM,L.dropWhile=RM,L.fill=xM,L.filter=$3,L.flatMap=V3,L.flatMapDeep=z3,L.flatMapDepth=U3,L.flatten=E_,L.flattenDeep=MM,L.flattenDepth=$M,L.flip=i8,L.flow=nD,L.flowRight=oD,L.fromPairs=DM,L.functions=o$,L.functionsIn=r$,L.groupBy=W3,L.initial=VM,L.intersection=zM,L.intersectionBy=UM,L.intersectionWith=WM,L.invert=a$,L.invertBy=i$,L.invokeMap=K3,L.iteratee=id,L.keyBy=G3,L.keys=Dt,L.keysIn=bn,L.map=Bs,L.mapKeys=c$,L.mapValues=u$,L.matches=rD,L.matchesProperty=lD,L.memoize=Rs,L.merge=f$,L.mergeWith=K_,L.method=aD,L.methodOf=iD,L.mixin=sd,L.negate=xs,L.nthArg=cD,L.omit=d$,L.omitBy=p$,L.once=s8,L.orderBy=j3,L.over=uD,L.overArgs=c8,L.overEvery=fD,L.overSome=dD,L.partial=ed,L.partialRight=M_,L.partition=Y3,L.pick=m$,L.pickBy=G_,L.property=Q_,L.propertyOf=pD,L.pull=jM,L.pullAll=T_,L.pullAllBy=YM,L.pullAllWith=qM,L.pullAt=XM,L.range=mD,L.rangeRight=hD,L.rearg=u8,L.reject=J3,L.remove=JM,L.rest=f8,L.reverse=Jf,L.sampleSize=Q3,L.set=g$,L.setWith=b$,L.shuffle=e8,L.slice=ZM,L.sortBy=o8,L.sortedUniq=l3,L.sortedUniqBy=a3,L.split=V$,L.spread=d8,L.tail=i3,L.take=s3,L.takeRight=c3,L.takeRightWhile=u3,L.takeWhile=f3,L.tap=k3,L.throttle=p8,L.thru=As,L.toArray=z_,L.toPairs=j_,L.toPairsIn=Y_,L.toPath=CD,L.toPlainObject=W_,L.transform=_$,L.unary=m8,L.union=d3,L.unionBy=p3,L.unionWith=m3,L.uniq=h3,L.uniqBy=g3,L.uniqWith=b3,L.unset=y$,L.unzip=Zf,L.unzipWith=k_,L.update=C$,L.updateWith=w$,L.values=Vl,L.valuesIn=v$,L.without=_3,L.words=J_,L.wrap=h8,L.xor=y3,L.xorBy=C3,L.xorWith=w3,L.zip=v3,L.zipObject=E3,L.zipObjectDeep=S3,L.zipWith=T3,L.entries=j_,L.entriesIn=Y_,L.extend=H_,L.extendWith=Ds,sd(L,L),L.add=vD,L.attempt=Z_,L.camelCase=k$,L.capitalize=q_,L.ceil=ED,L.clamp=E$,L.clone=b8,L.cloneDeep=y8,L.cloneDeepWith=C8,L.cloneWith=_8,L.conformsTo=w8,L.deburr=X_,L.defaultTo=tD,L.divide=SD,L.endsWith=N$,L.eq=lo,L.escape=O$,L.escapeRegExp=L$,L.every=M3,L.find=D3,L.findIndex=w_,L.findKey=J8,L.findLast=F3,L.findLastIndex=v_,L.findLastKey=Z8,L.floor=TD,L.forEach=O_,L.forEachRight=L_,L.forIn=Q8,L.forInRight=e$,L.forOwn=t$,L.forOwnRight=n$,L.get=od,L.gt=v8,L.gte=E8,L.has=l$,L.hasIn=rd,L.head=S_,L.identity=_n,L.includes=H3,L.indexOf=FM,L.inRange=S$,L.invoke=s$,L.isArguments=Xr,L.isArray=Be,L.isArrayBuffer=S8,L.isArrayLike=gn,L.isArrayLikeObject=Lt,L.isBoolean=T8,L.isBuffer=hr,L.isDate=k8,L.isElement=N8,L.isEmpty=O8,L.isEqual=L8,L.isEqualWith=I8,L.isError=td,L.isFinite=A8,L.isFunction=Fo,L.isInteger=$_,L.isLength=Ms,L.isMap=D_,L.isMatch=B8,L.isMatchWith=P8,L.isNaN=R8,L.isNative=x8,L.isNil=$8,L.isNull=M8,L.isNumber=F_,L.isObject=wt,L.isObjectLike=kt,L.isPlainObject=Ha,L.isRegExp=nd,L.isSafeInteger=D8,L.isSet=V_,L.isString=$s,L.isSymbol=In,L.isTypedArray=Fl,L.isUndefined=F8,L.isWeakMap=V8,L.isWeakSet=z8,L.join=HM,L.kebabCase=I$,L.last=jn,L.lastIndexOf=KM,L.lowerCase=A$,L.lowerFirst=B$,L.lt=U8,L.lte=W8,L.max=kD,L.maxBy=ND,L.mean=OD,L.meanBy=LD,L.min=ID,L.minBy=AD,L.stubArray=ud,L.stubFalse=fd,L.stubObject=gD,L.stubString=bD,L.stubTrue=_D,L.multiply=BD,L.nth=GM,L.noConflict=sD,L.noop=cd,L.now=Ps,L.pad=P$,L.padEnd=R$,L.padStart=x$,L.parseInt=M$,L.random=T$,L.reduce=q3,L.reduceRight=X3,L.repeat=$$,L.replace=D$,L.result=h$,L.round=PD,L.runInContext=D,L.sample=Z3,L.size=t8,L.snakeCase=F$,L.some=n8,L.sortedIndex=QM,L.sortedIndexBy=e3,L.sortedIndexOf=t3,L.sortedLastIndex=n3,L.sortedLastIndexBy=o3,L.sortedLastIndexOf=r3,L.startCase=z$,L.startsWith=U$,L.subtract=RD,L.sum=xD,L.sumBy=MD,L.template=W$,L.times=yD,L.toFinite=Vo,L.toInteger=Me,L.toLength=U_,L.toLower=H$,L.toNumber=Yn,L.toSafeInteger=H8,L.toString=nt,L.toUpper=K$,L.trim=G$,L.trimEnd=j$,L.trimStart=Y$,L.truncate=q$,L.unescape=X$,L.uniqueId=wD,L.upperCase=J$,L.upperFirst=ld,L.each=O_,L.eachRight=L_,L.first=S_,sd(L,(function(){var r={};return yo(L,function(a,f){rt.call(L.prototype,f)||(r[f]=a)}),r})(),{chain:!1}),L.VERSION=l,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){L[r].placeholder=L}),Un(["drop","take"],function(r,a){Ke.prototype[r]=function(f){f=f===o?1:xt(Me(f),0);var h=this.__filtered__&&!a?new Ke(this):this.clone();return h.__filtered__?h.__takeCount__=qt(f,h.__takeCount__):h.__views__.push({size:qt(f,re),type:r+(h.__dir__<0?"Right":"")}),h},Ke.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),Un(["filter","map","takeWhile"],function(r,a){var f=a+1,h=f==fe||f==te;Ke.prototype[r]=function(E){var A=this.clone();return A.__iteratees__.push({iteratee:_e(E,3),type:f}),A.__filtered__=A.__filtered__||h,A}}),Un(["head","last"],function(r,a){var f="take"+(a?"Right":"");Ke.prototype[r]=function(){return this[f](1).value()[0]}}),Un(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");Ke.prototype[r]=function(){return this.__filtered__?new Ke(this):this[f](1)}}),Ke.prototype.compact=function(){return this.filter(_n)},Ke.prototype.find=function(r){return this.filter(r).head()},Ke.prototype.findLast=function(r){return this.reverse().find(r)},Ke.prototype.invokeMap=ze(function(r,a){return typeof r=="function"?new Ke(this):this.map(function(f){return Da(f,r,a)})}),Ke.prototype.reject=function(r){return this.filter(xs(_e(r)))},Ke.prototype.slice=function(r,a){r=Me(r);var f=this;return f.__filtered__&&(r>0||a<0)?new Ke(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==o&&(a=Me(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},Ke.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Ke.prototype.toArray=function(){return this.take(re)},yo(Ke.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),E=L[h?"take"+(a=="last"?"Right":""):a],A=h||/^find/.test(a);E&&(L.prototype[a]=function(){var B=this.__wrapped__,x=h?[1]:arguments,F=B instanceof Ke,J=x[0],Z=F||Be(B),ne=function(We){var Ge=E.apply(L,sr([We],x));return h&&se?Ge[0]:Ge};Z&&f&&typeof J=="function"&&J.length!=1&&(F=Z=!1);var se=this.__chain__,he=!!this.__actions__.length,we=A&&!se,$e=F&&!he;if(!A&&Z){B=$e?B:new Ke(this);var ve=r.apply(B,x);return ve.__actions__.push({func:As,args:[ne],thisArg:o}),new Hn(ve,se)}return we&&$e?r.apply(this,x):(ve=this.thru(ne),we?h?ve.value()[0]:ve.value():ve)})}),Un(["pop","push","shift","sort","splice","unshift"],function(r){var a=os[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",h=/^(?:pop|shift)$/.test(r);L.prototype[r]=function(){var E=arguments;if(h&&!this.__chain__){var A=this.value();return a.apply(Be(A)?A:[],E)}return this[f](function(B){return a.apply(Be(B)?B:[],E)})}}),yo(Ke.prototype,function(r,a){var f=L[a];if(f){var h=f.name+"";rt.call(Rl,h)||(Rl[h]=[]),Rl[h].push({name:a,func:f})}}),Rl[Ss(o,v).name]=[{name:"wrapper",func:o}],Ke.prototype.clone=XR,Ke.prototype.reverse=JR,Ke.prototype.value=ZR,L.prototype.at=N3,L.prototype.chain=O3,L.prototype.commit=L3,L.prototype.next=I3,L.prototype.plant=B3,L.prototype.reverse=P3,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=R3,L.prototype.first=L.prototype.head,Aa&&(L.prototype[Aa]=A3),L}),Al=LR();Ur?((Ur.exports=Al)._=Al,af._=Al):Wt._=Al}).call(ZB)})(Ca,Ca.exports)),Ca.exports}var eP=QB();const ji=KT(eP),yl=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:n}){const o=e,l=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=n,s=()=>{l.itemOnClick=!0,l.itemOnHover=!1},c=()=>{l.itemOnClick=!1,l.itemOnHover=!0};t.watch(()=>o.dialogModalVisible,g=>{g||(l.itemOnClick=!1,l.itemOnHover=!1)});const u=t.computed(()=>!!o.columnsValue.fixed),p=t.computed(()=>[{icon:DE,emitKey:"update:toUnLock",isDisabled:!u.value},{icon:LE,emitKey:"update:toLock",isDisabled:u.value},{icon:ME,emitKey:"update:toTop",isDisabled:o.columnsIndex===0},{icon:jp,emitKey:"update:toPre",isDisabled:o.columnsIndex===0},{icon:ui,emitKey:"update:toNext",isDisabled:o.columnsIndex===o.columnsLen-1},{icon:gE,emitKey:"update:toBottom",isDisabled:o.columnsIndex===o.columnsLen-1}]),d=24/p.value.length,m=g=>{i(g)};return(g,y)=>{const b=er,_=hk,C=IO;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":l.itemOnHover,"cursor-grabbing":l.itemOnClick}]),onMouseenter:y[0]||(y[0]=S=>l.itemOnHover=!0),onMouseleave:y[1]||(y[1]=S=>l.itemOnHover=!1),onMousedown:s,onMouseup:c},[(t.openBlock(),t.createBlock(b,{label:g.columnsValue.label,value:g.columnsValue.prop,key:g.columnsValue.prop},null,8,["label","value"])),t.createVNode(C,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,S=>(t.openBlock(),t.createBlock(_,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(mn),{icon:S.icon,disabled:S.isDisabled,link:"",type:"primary",onClick:v=>m(S.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),tP={class:"search-bar"},nP={class:"transfer-sort-wrapper"},wa=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:n}){const o=e,l=n,i=t.computed({get:()=>o.modelValue,set:C=>l("update:modelValue",C)}),s=t.reactive({localColumns:ji.cloneDeep(o.columnsValue),clickItemProp:"",checkList:o.columnsValue.map(C=>C.prop)}),c={toTop:C=>{if(C<=0)return;const S=s.localColumns.splice(C,1)[0];s.localColumns.unshift(S)},toBottom:C=>{if(C>=s.localColumns.length-1)return;const S=s.localColumns.splice(C,1)[0];s.localColumns.push(S)},toPre:C=>{if(C>0){const S=s.localColumns[C];s.localColumns[C]=s.localColumns[C-1],s.localColumns[C-1]=S}},toNext:C=>{if(C<s.localColumns.length-1){const S=s.localColumns[C];s.localColumns[C]=s.localColumns[C+1],s.localColumns[C+1]=S}},toLock:C=>{if(C<=0)return;const S=s.localColumns.splice(C,1)[0];S.fixed="left",s.localColumns.unshift(S)},toUnLock:C=>{if(C<s.localColumns.length-1){const S=s.localColumns[C];delete S.fixed}}},u=()=>{s.localColumns=ji.cloneDeep(o.columnsValue),s.checkList=o.columnsValue.filter(C=>C.checkActive).map(C=>C.prop||"")};t.watch(()=>i.value,C=>{C?u():(s.clickItemProp="",s.localColumns=[],s.checkList=[])});const p=()=>{l("update:submit",s.localColumns)},d=C=>{const S=o.columnsValue.map(v=>v.prop);s.checkList=C?S:[],m(s.checkList)},m=C=>{const S=C.map(v=>String(v));s.localColumns.forEach(v=>{v.checkActive=S.includes(v.prop)}),l("update:checkChange",{columns:s.localColumns,checkList:s.checkList})},g=t.computed(()=>s.localColumns.length>0&&s.checkList.length===s.localColumns.length),y=t.computed({get:()=>g.value,set:C=>d(C)}),b=()=>{s.localColumns=ji.cloneDeep(o.columnsValue)},_=C=>{if(C.length>0){const S=ji.cloneDeep(s.localColumns);s.localColumns=S.filter(v=>v.label.includes(C))}else b()};return(C,S)=>{const v=er,T=lk;return t.openBlock(),t.createBlock($r,{modelValue:i.value,"onUpdate:modelValue":S[2]||(S[2]=k=>i.value=k),title:C.transferTitle,"onClick:submit":p},{default:t.withCtx(()=>[t.createElementVNode("div",tP,[t.createVNode(Dr,{"show-search":!0,"onUpdate:clear":b,"onKeydown:enter":_})]),t.createElementVNode("div",nP,[t.createVNode(v,{modelValue:y.value,"onUpdate:modelValue":S[0]||(S[0]=k=>y.value=k),class:"px-4",onChange:d},{default:t.withCtx(()=>[t.createTextVNode(" 欄 ("+t.toDisplayString(s.checkList.length)+"/"+t.toDisplayString(s.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(T,{modelValue:s.checkList,"onUpdate:modelValue":S[1]||(S[1]=k=>s.checkList=k),onChange:m},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"list-container",{columns:s.localColumns,clickItemProp:s.clickItemProp,handleItemEvents:c,handleMousedown:k=>s.clickItemProp=k},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.localColumns,(k,w)=>(t.openBlock(),t.createBlock(yl,{key:k.prop,"dialog-modal-visible":i.value,"columns-value":k,"columns-index":w,"columns-len":s.localColumns.length,class:t.normalizeClass({"transfer-active-bg":k.checkActive,"transfer-active-border":s.clickItemProp==k.prop}),onMousedown:N=>s.clickItemProp=k.prop||"","onUpdate:toTop":N=>c.toTop(w),"onUpdate:toBottom":N=>c.toBottom(w),"onUpdate:toPre":N=>c.toPre(w),"onUpdate:toNext":N=>c.toNext(w),"onUpdate:toLock":N=>c.toLock(w),"onUpdate:toUnLock":N=>c.toUnLock(w)},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"])}}}),oP={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},rP={class:"flex items-center gap-2"},lP={key:0,class:"flex items-center text-black"},aP={class:"font-bold text-text text-xl md:text-2xl;"},iP={class:"flex items-center gap-3"},Cl=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:n}){const o=e,l=n,i=()=>{const s={};switch(typeof o.showBack){case"string":s.path=o.showBack;break;case"object":Object.assign(s,o.showBack);break;default:s.path=""}l("back",s)};return(s,c)=>{const u=Nt;return t.openBlock(),t.createElementBlock("div",oP,[t.createElementVNode("div",rP,[e.showBack?(t.openBlock(),t.createElementBlock("div",lP,[t.createVNode(u,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref(uE))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",aP,t.toDisplayString(o.title),1)]),t.createElementVNode("div",iP,[t.renderSlot(s.$slots,"default")])])}}}),sP={key:0,class:"px-4 pt-1.5"},cP={key:1,class:"py-1.5 px-4"},uP={key:0,class:"flex justify-start pl-1.5 pt-0"},rr=ba(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:n}){const o=e,l=n,i=()=>{l("click:back")};return(s,c)=>{const u=Ql;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(Cl),{title:o.title,showBack:o.showBack,onBack:i,depth:o.depth},null,8,["title","showBack","depth"]),t.createVNode(u,{class:"panel-scrollbar"},{default:t.withCtx(()=>[s.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",sP,[t.renderSlot(s.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),s.$slots.main?(t.openBlock(),t.createElementBlock("div",cP,[t.renderSlot(s.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),s.$slots.footer?(t.openBlock(),t.createElementBlock("div",uP,[t.renderSlot(s.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-c88d2537"]]),va=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},showEdit:{type:Boolean},showFilter:{type:Boolean},showDefaultSearch:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:n}){const o=e,{pagination:l}=t.toRefs(o),i=n,s=t.computed(()=>o.showDefaultSearch||o.showSearch&&o.showEdit&&o.showFilter),c=g=>{i("search",g)},u=()=>{i("search",null)},p=g=>{i("updatePage",g)},d=g=>{i("updatePageSize",g)},m=()=>{i("click:back")};return(g,y)=>{const b=TO;return t.openBlock(),t.createBlock(t.unref(rr),{title:o.title,"show-back":g.showBack,"onClick:back":m},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Dr),{"show-filter":s.value||g.showFilter,"show-search":s.value||g.showSearch,"onKeydown:enter":c,"onUpdate:clear":u},{button:t.withCtx(()=>[t.renderSlot(g.$slots,"firstButton"),s.value||g.showEdit?t.renderSlot(g.$slots,"customButton",{key:0}):t.createCommentVNode("",!0),t.renderSlot(g.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(g.$slots,"filterButton")]),_:3},8,["show-filter","show-search"])]),main:t.withCtx(()=>[t.renderSlot(g.$slots,"main")]),footer:t.withCtx(()=>[t.unref(l).totalCount>0?(t.openBlock(),t.createBlock(b,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":[10,20,30,40,50],"current-page":t.unref(l).page,"page-size":t.unref(l).limit,total:t.unref(l).totalCount,onCurrentChange:p,onSizeChange:d},null,8,["current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),fP={class:"detail-container"},dP={class:"content-wrapper"},pP={key:0,class:"border-t pt-4 w-full flex items-center justify-end"},Ea=ba(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:n}){const{t:o}=bo(),l=n,i=()=>{l("update:saveEdit",!1)},s=()=>{l("update:cancelEdit")},c=()=>{l("click:back")};return(u,p)=>{const d=ca;return t.openBlock(),t.createBlock(t.unref(rr),{title:u.title,"show-back":u.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",fP,[t.renderSlot(u.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",dP,[t.renderSlot(u.$slots,"main",{},void 0,!0)])])),[[d,u.pageLoading]])]),footer:t.withCtx(()=>[u.isEditable?(t.openBlock(),t.createElementBlock("div",pP,[t.createVNode(t.unref(mn),{text:t.unref(o)("common.save"),type:"primary","is-fill":"",onClick:i},null,8,["text"]),t.createVNode(t.unref(mn),{text:t.unref(o)("common.discard"),type:"primary",onClick:s},null,8,["text"])])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-af71ee59"]]),mP={class:"filter-container"},hP={class:"filter-header"},gP={class:"submit-row"},Sa=ba(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:n}){const{t:o}=bo(),l=n,i=()=>{l("submitEmit")},s=()=>{l("resetEmit")},c=()=>{l("click:back")};return(u,p)=>(t.openBlock(),t.createBlock(t.unref(rr),{title:u.mainTitle,"show-back":u.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.createElementVNode("div",mP,[t.createElementVNode("div",hP,t.toDisplayString(u.filterTitle),1),t.renderSlot(u.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",gP,[t.createVNode(t.unref(mn),{text:t.unref(o)("common.execute"),"is-fill":"",type:"primary",onClick:i},null,8,["text"]),t.createVNode(t.unref(mn),{text:t.unref(o)("common.reset"),type:"primary",onClick:s},null,8,["text"])])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-32b37758"]]),w0={"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.back":"回到前一頁","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":"捨棄"},v0={"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.back":" Back","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"},Ao={"zh-TW":{name:"繁體中文",messages:w0},"en-US":{name:"English",messages:v0}},Ta=g0({legacy:!1,locale:"zh-TW",fallbackLocale:"en-US",messages:{"zh-TW":w0,"en-US":v0}}),Fr=e=>{var o,l,i;const n=(i=(l=(o=window.__VUE_APP__)==null?void 0:o.config)==null?void 0:l.globalProperties)==null?void 0:i.$i18n;n?n.locale.value=e:Ta.global.locale.value=e,localStorage.setItem("locale",e),window.dispatchEvent(new CustomEvent("localeChanged",{detail:{locale:e,localeConfig:Ao[e]}}))},wl=()=>{var n,o,l;const e=(l=(o=(n=window.__VUE_APP__)==null?void 0:n.config)==null?void 0:o.globalProperties)==null?void 0:l.$i18n;return e?e.locale.value:Ta.global.locale.value},zu=()=>{const e=wl();return Ao[e]},vl=[{value:"zh-TW",label:"繁體中文"},{value:"en-US",label:"English"}],Yi=e=>{var n;return((n=Ao[e])==null?void 0:n.name)||e},E0=e=>{const o={zh:"zh-TW","zh-TW":"zh-TW","zh-CN":"zh-TW",en:"en-US","en-US":"en-US","en-GB":"en-US"}[e]||"zh-TW";return console.log(`[I18nPlugin] 同步外部語系 ${e} -> 組件庫語系 ${o}`),Fr(o),o},qi=()=>{const e=localStorage.getItem("locale");e&&["zh-TW","en-US"].includes(e)&&(Ta.global.locale.value=e),window.dispatchEvent(new CustomEvent("localeInitialized",{detail:{locale:wl(),localeConfig:zu()}}))};function Xi(e,n,o){switch(o){case"override":return{...e,...n};case"component":return{...n,...e};case"merge":default:return S0(e,n)}}function S0(e,n){const o={...e};for(const l in n)n.hasOwnProperty(l)&&(typeof n[l]=="object"&&n[l]!==null&&!Array.isArray(n[l])?typeof o[l]=="object"&&o[l]!==null&&!Array.isArray(o[l])?o[l]=S0(o[l],n[l]):o[l]={...n[l]}:o[l]=n[l]);return o}function T0(e,n={}){const{componentLocale:o="zh-TW",externalLocale:l,syncWithExternal:i=!1,messages:s={},mergeMessages:c=!0,mergeStrategy:u="merge",useIndependentInstance:p=!1,namespace:d="vue-table-components"}=n,m=e.config.globalProperties.$i18n;if(m&&!p){console.log("[I18nPlugin] 檢測到現有 i18n 實例,將合併翻譯訊息");const b={};if(Object.keys(Ao).forEach(_=>{b[_]={[d]:Ao[_].messages}}),i&&l){console.log("[I18nPlugin] 啟用語系同步,監聽外部專案語系變更");const _=C=>{var v;const S=(v=C.detail)==null?void 0:v.locale;S&&["zh-TW","en-US"].includes(S)&&(console.log(`[I18nPlugin] 外部專案語系變更為: ${S}`),Fr(S))};window.addEventListener("externalLocaleChanged",_)}try{typeof m.mergeLocaleMessage=="function"?(console.log("[I18nPlugin] 開始合併組件庫翻譯到現有實例"),Object.keys(b).forEach(_=>{var T;const C=b[_];console.log(`[I18nPlugin] 合併 ${_} 語言,命名空間: ${d}`);const S=((T=m.getLocaleMessage)==null?void 0:T.call(m,_))||{},v=Xi(S,C,"merge");console.log(`[I18nPlugin] 合併後的 ${_} 語言鍵值:`,Object.keys(v)),m.mergeLocaleMessage(_,v)})):(console.log("[I18nPlugin] 現有 i18n 實例沒有 mergeLocaleMessage 方法,手動合併翻譯"),Object.keys(b).forEach(_=>{var w;const C=b[_],S=s[_]||{},v=((w=m.getLocaleMessage)==null?void 0:w.call(m,_))||{};let T=C;c&&Object.keys(S).length>0&&(T=Xi(C,S,u));const k=Xi(v,T,"merge");m.setLocaleMessage?m.setLocaleMessage(_,k):m.__setLocaleMessage&&m.__setLocaleMessage(_,k)}))}catch(_){console.warn("[I18nPlugin] 合併翻譯時發生錯誤:",_),console.log("[I18nPlugin] 將創建新的 i18n 實例")}e.config.globalProperties.$switchLanguage=Fr,e.config.globalProperties.$getCurrentLocale=wl,e.config.globalProperties.$availableLocales=vl,e.config.globalProperties.$getLanguageName=Yi,qi();return}console.log(p?"[I18nPlugin] 使用獨立 i18n 實例,避免與外部專案衝突":"[I18nPlugin] 未檢測到現有 i18n 實例,創建新的實例");let g={};Object.keys(Ao).forEach(b=>{g[b]={[d]:Ao[b].messages}}),c&&Object.keys(s).length>0&&(g=Object.keys(g).reduce((b,_)=>{const C=g[_],S=s[_]||{};return b[_]=Xi(C,S,u),b},{}));const y=g0({legacy:!1,locale:o,fallbackLocale:"en-US",messages:g});y.global.locale.value=o,y.global.fallbackLocale.value="en-US",e.use(y),qi(),e.config.globalProperties.$switchLanguage=Fr,e.config.globalProperties.$getCurrentLocale=wl,e.config.globalProperties.$availableLocales=vl,e.config.globalProperties.$getLanguageName=Yi,e.config.globalProperties.$i18n=y.global}const bP={install:T0,i18n:Ta,switchLanguage:Fr,getCurrentLocale:wl,getCurrentLocaleConfig:zu,availableLocales:vl,getLanguageName:Yi,initLocale:qi,localeConfig:Ao,syncWithExternalLocale:E0},_P={class:"language-switcher"},ka=t.defineComponent({__name:"LanguageSwitcher",setup(e){const{locale:n}=bo(),o=i=>{Fr(i)},l=t.computed(()=>{const i=vl.find(s=>s.value===n.value);return(i==null?void 0:i.label)||"繁體中文"});return(i,s)=>{const c=Ni,u=LN,p=IN,d=ON;return t.openBlock(),t.createElementBlock("div",_P,[t.createVNode(d,{onCommand:o,trigger:"click"},{dropdown:t.withCtx(()=>[t.createVNode(p,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(vl),m=>(t.openBlock(),t.createBlock(u,{key:m.value,command:m.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:t.withCtx(()=>[t.createVNode(c,{type:"text",class:"flex items-center"},{default:t.withCtx(()=>[s[0]||(s[0]=t.createElementVNode("svg",{class:"w-4 h-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"})],-1)),t.createTextVNode(" "+t.toDisplayString(l.value)+" ",1),s[1]||(s[1]=t.createElementVNode("svg",{class:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),_:1,__:[0,1]})]),_:1})])}}}),yP={class:"w-full mb-4"},CP={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},wP={class:"flex items-center mr-4"},Na=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","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:n}){const o=n,l=()=>{o("open:transfer")},i=d=>{o("update:selectRow",d)},s=(d,m)=>{o("click:cell",d,m)},c=d=>{o("click:columnSort",d)},u=d=>{o("click:checkRow",d)},p=d=>{o("click:editRow",d)};return(d,m)=>{const g=Nt;return t.openBlock(),t.createElementBlock("div",yP,[t.createElementVNode("div",CP,[t.createElementVNode("div",wP,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:l},[t.createVNode(g,null,{default:t.withCtx(()=>[t.createVNode(t.unref(RE))]),_:1})])])]),t.createVNode(t.unref(Mr),{loading:d.loading,data:d.data,columns:d.columns,"show-selection":d.showSelection,"show-summary":d.showSummary,"show-over-flow-tooltip":d.showOverFlowTooltip,"summary-method":d.summaryMethod,"base-table-row-class-name":d.sortTableRowClassName,"show-check-btn":d.showCheckBtn,"show-edit-btn":d.showEditBtn,onSelectionChange:i,onCellClick:s,onColumnSortChange:c,"onClick:checkRow":u,"onClick:editRow":p},null,8,["loading","data","columns","show-selection","show-summary","show-over-flow-tooltip","summary-method","base-table-row-class-name","show-check-btn","show-edit-btn"])])}}});function vP(e){return e.map(n=>({...n,checkActive:!0}))}let vt={locales:[...[{value:"zh-TW",label:"繁體中文"},{value:"en-US",label:"English"}]],defaultLocale:"zh-TW",storageKey:"locale"};const EP=()=>vt.externalHandler?vt.externalHandler.availableLocales():vt.locales,SP=e=>{vt={...vt,...e}},TP=e=>{var n;if(vt.externalHandler){vt.externalHandler.switchLanguage(e);return}if(!vt.locales.some(o=>o.value===e)){console.warn(`Language ${e} is not configured`);return}localStorage.setItem(vt.storageKey,e),window.dispatchEvent(new CustomEvent("languageChanged",{detail:{locale:e,localeConfig:(n=vt.localeConfigs)==null?void 0:n[e]}}))},Uu=()=>{if(vt.externalHandler)return vt.externalHandler.getCurrentLocale();const e=localStorage.getItem(vt.storageKey);return e&&vt.locales.some(n=>n.value===e)?e:vt.defaultLocale},kP=e=>{var o,l;if((o=vt.externalHandler)!=null&&o.getLanguageName)return vt.externalHandler.getLanguageName(e);const n=vt.locales.find(i=>i.value===e);return(n==null?void 0:n.label)||((l=vt.locales[0])==null?void 0:l.label)||"Unknown"},k0=e=>{var n,o;return(n=vt.externalHandler)!=null&&n.getLocaleConfig?vt.externalHandler.getLocaleConfig(e):(o=vt.localeConfigs)==null?void 0:o[e]},N0=()=>{const e=Uu();return k0(e)},NP=()=>{const e=Uu(),n=N0();return window.dispatchEvent(new CustomEvent("languageInitialized",{detail:{locale:e,localeConfig:n}})),e},O0=[Mr,mn,_l,$r,_a,Na,ya,Dr,wa,yl,Cl,rr,va,Ea,Sa,ka];function L0(e,n){O0.forEach(o=>{e.component(o.name||"VueTableComponent",o)})}const OP={install:L0,...O0};Mr.install=e=>{e.component(Mr.name||"BaseTable",Mr)},mn.install=e=>{e.component(mn.name||"BaseBtn",mn)},_l.install=e=>{e.component(_l.name||"BaseInput",_l)},$r.install=e=>{e.component($r.name||"BaseDialog",$r)},Na.install=e=>{e.component(Na.name||"SortTable",Na)},ya.install=e=>{e.component(ya.name||"TitleTable",ya)},Dr.install=e=>{e.component(Dr.name||"SearchBar",Dr)},_a.install=e=>{e.component(_a.name||"BaseWaringDialog",_a)},wa.install=e=>{e.component(wa.name||"TransferDialog",wa)},yl.install=e=>{e.component(yl.name||"TransferItem",yl)},Cl.install=e=>{e.component(Cl.name||"FunctionHeader",Cl)},rr.install=e=>{e.component(rr.name||"MainPanel",rr)},va.install=e=>{e.component(va.name||"SearchableListPanel",va)},Ea.install=e=>{e.component(Ea.name||"DetailLayout",Ea)},Sa.install=e=>{e.component(Sa.name||"FilterLayout",Sa)},ka.install=e=>{e.component(ka.name||"LanguageSwitcher",ka)},be.BaseBtn=mn,be.BaseDialog=$r,be.BaseInput=_l,be.BaseTable=Mr,be.BaseWaringDialog=_a,be.DetailLayout=Ea,be.FilterLayout=Sa,be.FunctionHeader=Cl,be.I18nPlugin=bP,be.LanguageSwitcher=ka,be.MainPanel=rr,be.SearchBar=Dr,be.SearchableListPanel=va,be.SortTable=Na,be.TitleTable=ya,be.TransferDialog=wa,be.TransferItem=yl,be.availableLocales=vl,be.availableLocalesUtil=EP,be.configureLanguageSwitcher=SP,be.default=OP,be.getCurrentLocale=wl,be.getCurrentLocaleConfig=zu,be.getCurrentLocaleConfigUtil=N0,be.getCurrentLocaleUtil=Uu,be.getLanguageName=Yi,be.getLanguageNameUtil=kP,be.getLocaleConfig=k0,be.i18n=Ta,be.initLanguageSwitcher=NP,be.initLocale=qi,be.install=L0,be.installI18n=T0,be.localeConfig=Ao,be.setActiveColumn=vP,be.switchLanguage=Fr,be.switchLanguageUtil=TP,be.syncWithExternalLocale=E0,Object.defineProperties(be,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
65
+ }`;var $e=Z_(function(){return tt(A,he+"return "+ne).apply(o,B)});if($e.source=ne,td($e))throw $e;return $e}function H$(r){return nt(r).toLowerCase()}function K$(r){return nt(r).toUpperCase()}function G$(r,a,f){if(r=nt(r),r&&(f||a===o))return ib(r);if(!r||!(a=Ln(a)))return r;var h=oo(r),E=oo(a),A=sb(h,E),B=cb(h,E)+1;return mr(h,A,B).join("")}function j$(r,a,f){if(r=nt(r),r&&(f||a===o))return r.slice(0,fb(r)+1);if(!r||!(a=Ln(a)))return r;var h=oo(r),E=cb(h,oo(a))+1;return mr(h,0,E).join("")}function Y$(r,a,f){if(r=nt(r),r&&(f||a===o))return r.replace(Sl,"");if(!r||!(a=Ln(a)))return r;var h=oo(r),E=sb(h,oo(a));return mr(h,E).join("")}function q$(r,a){var f=K,h=U;if(wt(a)){var E="separator"in a?a.separator:E;f="length"in a?Me(a.length):f,h="omission"in a?Ln(a.omission):h}r=nt(r);var A=r.length;if(Ll(r)){var B=oo(r);A=B.length}if(f>=A)return r;var x=f-Il(h);if(x<1)return h;var F=B?mr(B,0,x).join(""):r.slice(0,x);if(E===o)return F+h;if(B&&(x+=F.length-x),nd(E)){if(r.slice(x).search(E)){var J,Z=F;for(E.global||(E=_f(E.source,nt(Tt.exec(E))+"g")),E.lastIndex=0;J=E.exec(Z);)var ne=J.index;F=F.slice(0,ne===o?x:ne)}}else if(r.indexOf(Ln(E),x)!=x){var se=F.lastIndexOf(E);se>-1&&(F=F.slice(0,se))}return F+h}function X$(r){return r=nt(r),r&&Wu.test(r)?r.replace(Bo,TR):r}var J$=$l(function(r,a,f){return r+(f?" ":"")+a.toUpperCase()}),ld=Qb("toUpperCase");function J_(r,a,f){return r=nt(r),a=f?o:a,a===o?CR(r)?OR(r):fR(r):r.match(a)||[]}var Z_=ze(function(r,a){try{return Nn(r,o,a)}catch(f){return td(f)?f:new Ie(f)}}),Z$=$o(function(r,a){return Un(a,function(f){f=wo(f),xo(r,f,Qf(r[f],r))}),r});function Q$(r){var a=r==null?0:r.length,f=_e();return r=a?gt(r,function(h){if(typeof h[1]!="function")throw new Wn(c);return[f(h[0]),h[1]]}):[],ze(function(h){for(var E=-1;++E<a;){var A=r[E];if(Nn(A[0],this,h))return Nn(A[1],this,h)}})}function eD(r){return Tx(Kn(r,g))}function ad(r){return function(){return r}}function tD(r,a){return r==null||r!==r?a:r}var nD=t_(),oD=t_(!0);function _n(r){return r}function id(r){return Ab(typeof r=="function"?r:Kn(r,g))}function rD(r){return Pb(Kn(r,g))}function lD(r,a){return Rb(r,Kn(a,g))}var aD=ze(function(r,a){return function(f){return Da(f,r,a)}}),iD=ze(function(r,a){return function(f){return Da(r,f,a)}});function sd(r,a,f){var h=Dt(a),E=ys(a,h);f==null&&!(wt(a)&&(E.length||!h.length))&&(f=a,a=r,r=this,E=ys(a,Dt(a)));var A=!(wt(f)&&"chain"in f)||!!f.chain,B=Fo(r);return Un(E,function(x){var F=a[x];r[x]=F,B&&(r.prototype[x]=function(){var J=this.__chain__;if(A||J){var Z=r(this.__wrapped__),ne=Z.__actions__=hn(this.__actions__);return ne.push({func:F,args:arguments,thisArg:r}),Z.__chain__=J,Z}return F.apply(r,sr([this.value()],arguments))})}),r}function sD(){return Wt._===this&&(Wt._=RR),this}function cd(){}function cD(r){return r=Me(r),ze(function(a){return xb(a,r)})}var uD=Vf(gt),fD=Vf(nb),dD=Vf(ff);function Q_(r){return jf(r)?df(wo(r)):Ux(r)}function pD(r){return function(a){return r==null?o:jr(r,a)}}var mD=o_(),hD=o_(!0);function ud(){return[]}function fd(){return!1}function gD(){return{}}function bD(){return""}function _D(){return!0}function yD(r,a){if(r=Me(r),r<1||r>G)return[];var f=re,h=qt(r,re);a=_e(a),r-=re;for(var E=hf(h,a);++f<r;)a(f);return E}function CD(r){return Be(r)?gt(r,wo):In(r)?[r]:hn(y_(nt(r)))}function wD(r){var a=++BR;return nt(r)+a}var vD=Ts(function(r,a){return r+a},0),ED=zf("ceil"),SD=Ts(function(r,a){return r/a},1),TD=zf("floor");function kD(r){return r&&r.length?_s(r,_n,kf):o}function ND(r,a){return r&&r.length?_s(r,_e(a,2),kf):o}function OD(r){return lb(r,_n)}function LD(r,a){return lb(r,_e(a,2))}function ID(r){return r&&r.length?_s(r,_n,If):o}function AD(r,a){return r&&r.length?_s(r,_e(a,2),If):o}var BD=Ts(function(r,a){return r*a},1),PD=zf("round"),RD=Ts(function(r,a){return r-a},0);function xD(r){return r&&r.length?mf(r,_n):0}function MD(r,a){return r&&r.length?mf(r,_e(a,2)):0}return L.after=r8,L.ary=I_,L.assign=K8,L.assignIn=H_,L.assignInWith=Ds,L.assignWith=G8,L.at=j8,L.before=A_,L.bind=Qf,L.bindAll=Z$,L.bindKey=B_,L.castArray=g8,L.chain=N_,L.chunk=TM,L.compact=kM,L.concat=NM,L.cond=Q$,L.conforms=eD,L.constant=ad,L.countBy=x3,L.create=Y8,L.curry=P_,L.curryRight=R_,L.debounce=x_,L.defaults=q8,L.defaultsDeep=X8,L.defer=l8,L.delay=a8,L.difference=OM,L.differenceBy=LM,L.differenceWith=IM,L.drop=AM,L.dropRight=BM,L.dropRightWhile=PM,L.dropWhile=RM,L.fill=xM,L.filter=$3,L.flatMap=V3,L.flatMapDeep=z3,L.flatMapDepth=U3,L.flatten=E_,L.flattenDeep=MM,L.flattenDepth=$M,L.flip=i8,L.flow=nD,L.flowRight=oD,L.fromPairs=DM,L.functions=o$,L.functionsIn=r$,L.groupBy=W3,L.initial=VM,L.intersection=zM,L.intersectionBy=UM,L.intersectionWith=WM,L.invert=a$,L.invertBy=i$,L.invokeMap=K3,L.iteratee=id,L.keyBy=G3,L.keys=Dt,L.keysIn=bn,L.map=Bs,L.mapKeys=c$,L.mapValues=u$,L.matches=rD,L.matchesProperty=lD,L.memoize=Rs,L.merge=f$,L.mergeWith=K_,L.method=aD,L.methodOf=iD,L.mixin=sd,L.negate=xs,L.nthArg=cD,L.omit=d$,L.omitBy=p$,L.once=s8,L.orderBy=j3,L.over=uD,L.overArgs=c8,L.overEvery=fD,L.overSome=dD,L.partial=ed,L.partialRight=M_,L.partition=Y3,L.pick=m$,L.pickBy=G_,L.property=Q_,L.propertyOf=pD,L.pull=jM,L.pullAll=T_,L.pullAllBy=YM,L.pullAllWith=qM,L.pullAt=XM,L.range=mD,L.rangeRight=hD,L.rearg=u8,L.reject=J3,L.remove=JM,L.rest=f8,L.reverse=Jf,L.sampleSize=Q3,L.set=g$,L.setWith=b$,L.shuffle=e8,L.slice=ZM,L.sortBy=o8,L.sortedUniq=l3,L.sortedUniqBy=a3,L.split=V$,L.spread=d8,L.tail=i3,L.take=s3,L.takeRight=c3,L.takeRightWhile=u3,L.takeWhile=f3,L.tap=k3,L.throttle=p8,L.thru=As,L.toArray=z_,L.toPairs=j_,L.toPairsIn=Y_,L.toPath=CD,L.toPlainObject=W_,L.transform=_$,L.unary=m8,L.union=d3,L.unionBy=p3,L.unionWith=m3,L.uniq=h3,L.uniqBy=g3,L.uniqWith=b3,L.unset=y$,L.unzip=Zf,L.unzipWith=k_,L.update=C$,L.updateWith=w$,L.values=Vl,L.valuesIn=v$,L.without=_3,L.words=J_,L.wrap=h8,L.xor=y3,L.xorBy=C3,L.xorWith=w3,L.zip=v3,L.zipObject=E3,L.zipObjectDeep=S3,L.zipWith=T3,L.entries=j_,L.entriesIn=Y_,L.extend=H_,L.extendWith=Ds,sd(L,L),L.add=vD,L.attempt=Z_,L.camelCase=k$,L.capitalize=q_,L.ceil=ED,L.clamp=E$,L.clone=b8,L.cloneDeep=y8,L.cloneDeepWith=C8,L.cloneWith=_8,L.conformsTo=w8,L.deburr=X_,L.defaultTo=tD,L.divide=SD,L.endsWith=N$,L.eq=lo,L.escape=O$,L.escapeRegExp=L$,L.every=M3,L.find=D3,L.findIndex=w_,L.findKey=J8,L.findLast=F3,L.findLastIndex=v_,L.findLastKey=Z8,L.floor=TD,L.forEach=O_,L.forEachRight=L_,L.forIn=Q8,L.forInRight=e$,L.forOwn=t$,L.forOwnRight=n$,L.get=od,L.gt=v8,L.gte=E8,L.has=l$,L.hasIn=rd,L.head=S_,L.identity=_n,L.includes=H3,L.indexOf=FM,L.inRange=S$,L.invoke=s$,L.isArguments=Xr,L.isArray=Be,L.isArrayBuffer=S8,L.isArrayLike=gn,L.isArrayLikeObject=Lt,L.isBoolean=T8,L.isBuffer=hr,L.isDate=k8,L.isElement=N8,L.isEmpty=O8,L.isEqual=L8,L.isEqualWith=I8,L.isError=td,L.isFinite=A8,L.isFunction=Fo,L.isInteger=$_,L.isLength=Ms,L.isMap=D_,L.isMatch=B8,L.isMatchWith=P8,L.isNaN=R8,L.isNative=x8,L.isNil=$8,L.isNull=M8,L.isNumber=F_,L.isObject=wt,L.isObjectLike=kt,L.isPlainObject=Ha,L.isRegExp=nd,L.isSafeInteger=D8,L.isSet=V_,L.isString=$s,L.isSymbol=In,L.isTypedArray=Fl,L.isUndefined=F8,L.isWeakMap=V8,L.isWeakSet=z8,L.join=HM,L.kebabCase=I$,L.last=jn,L.lastIndexOf=KM,L.lowerCase=A$,L.lowerFirst=B$,L.lt=U8,L.lte=W8,L.max=kD,L.maxBy=ND,L.mean=OD,L.meanBy=LD,L.min=ID,L.minBy=AD,L.stubArray=ud,L.stubFalse=fd,L.stubObject=gD,L.stubString=bD,L.stubTrue=_D,L.multiply=BD,L.nth=GM,L.noConflict=sD,L.noop=cd,L.now=Ps,L.pad=P$,L.padEnd=R$,L.padStart=x$,L.parseInt=M$,L.random=T$,L.reduce=q3,L.reduceRight=X3,L.repeat=$$,L.replace=D$,L.result=h$,L.round=PD,L.runInContext=D,L.sample=Z3,L.size=t8,L.snakeCase=F$,L.some=n8,L.sortedIndex=QM,L.sortedIndexBy=e3,L.sortedIndexOf=t3,L.sortedLastIndex=n3,L.sortedLastIndexBy=o3,L.sortedLastIndexOf=r3,L.startCase=z$,L.startsWith=U$,L.subtract=RD,L.sum=xD,L.sumBy=MD,L.template=W$,L.times=yD,L.toFinite=Vo,L.toInteger=Me,L.toLength=U_,L.toLower=H$,L.toNumber=Yn,L.toSafeInteger=H8,L.toString=nt,L.toUpper=K$,L.trim=G$,L.trimEnd=j$,L.trimStart=Y$,L.truncate=q$,L.unescape=X$,L.uniqueId=wD,L.upperCase=J$,L.upperFirst=ld,L.each=O_,L.eachRight=L_,L.first=S_,sd(L,(function(){var r={};return yo(L,function(a,f){rt.call(L.prototype,f)||(r[f]=a)}),r})(),{chain:!1}),L.VERSION=l,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){L[r].placeholder=L}),Un(["drop","take"],function(r,a){Ke.prototype[r]=function(f){f=f===o?1:xt(Me(f),0);var h=this.__filtered__&&!a?new Ke(this):this.clone();return h.__filtered__?h.__takeCount__=qt(f,h.__takeCount__):h.__views__.push({size:qt(f,re),type:r+(h.__dir__<0?"Right":"")}),h},Ke.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),Un(["filter","map","takeWhile"],function(r,a){var f=a+1,h=f==fe||f==te;Ke.prototype[r]=function(E){var A=this.clone();return A.__iteratees__.push({iteratee:_e(E,3),type:f}),A.__filtered__=A.__filtered__||h,A}}),Un(["head","last"],function(r,a){var f="take"+(a?"Right":"");Ke.prototype[r]=function(){return this[f](1).value()[0]}}),Un(["initial","tail"],function(r,a){var f="drop"+(a?"":"Right");Ke.prototype[r]=function(){return this.__filtered__?new Ke(this):this[f](1)}}),Ke.prototype.compact=function(){return this.filter(_n)},Ke.prototype.find=function(r){return this.filter(r).head()},Ke.prototype.findLast=function(r){return this.reverse().find(r)},Ke.prototype.invokeMap=ze(function(r,a){return typeof r=="function"?new Ke(this):this.map(function(f){return Da(f,r,a)})}),Ke.prototype.reject=function(r){return this.filter(xs(_e(r)))},Ke.prototype.slice=function(r,a){r=Me(r);var f=this;return f.__filtered__&&(r>0||a<0)?new Ke(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),a!==o&&(a=Me(a),f=a<0?f.dropRight(-a):f.take(a-r)),f)},Ke.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Ke.prototype.toArray=function(){return this.take(re)},yo(Ke.prototype,function(r,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),E=L[h?"take"+(a=="last"?"Right":""):a],A=h||/^find/.test(a);E&&(L.prototype[a]=function(){var B=this.__wrapped__,x=h?[1]:arguments,F=B instanceof Ke,J=x[0],Z=F||Be(B),ne=function(We){var Ge=E.apply(L,sr([We],x));return h&&se?Ge[0]:Ge};Z&&f&&typeof J=="function"&&J.length!=1&&(F=Z=!1);var se=this.__chain__,he=!!this.__actions__.length,we=A&&!se,$e=F&&!he;if(!A&&Z){B=$e?B:new Ke(this);var ve=r.apply(B,x);return ve.__actions__.push({func:As,args:[ne],thisArg:o}),new Hn(ve,se)}return we&&$e?r.apply(this,x):(ve=this.thru(ne),we?h?ve.value()[0]:ve.value():ve)})}),Un(["pop","push","shift","sort","splice","unshift"],function(r){var a=os[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",h=/^(?:pop|shift)$/.test(r);L.prototype[r]=function(){var E=arguments;if(h&&!this.__chain__){var A=this.value();return a.apply(Be(A)?A:[],E)}return this[f](function(B){return a.apply(Be(B)?B:[],E)})}}),yo(Ke.prototype,function(r,a){var f=L[a];if(f){var h=f.name+"";rt.call(Rl,h)||(Rl[h]=[]),Rl[h].push({name:a,func:f})}}),Rl[Ss(o,v).name]=[{name:"wrapper",func:o}],Ke.prototype.clone=XR,Ke.prototype.reverse=JR,Ke.prototype.value=ZR,L.prototype.at=N3,L.prototype.chain=O3,L.prototype.commit=L3,L.prototype.next=I3,L.prototype.plant=B3,L.prototype.reverse=P3,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=R3,L.prototype.first=L.prototype.head,Aa&&(L.prototype[Aa]=A3),L}),Al=LR();Ur?((Ur.exports=Al)._=Al,af._=Al):Wt._=Al}).call(ZB)})(Ca,Ca.exports)),Ca.exports}var eP=QB();const ji=KT(eP),yl=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:n}){const o=e,l=t.reactive({itemOnHover:!1,itemOnClick:!1}),i=n,s=()=>{l.itemOnClick=!0,l.itemOnHover=!1},c=()=>{l.itemOnClick=!1,l.itemOnHover=!0};t.watch(()=>o.dialogModalVisible,g=>{g||(l.itemOnClick=!1,l.itemOnHover=!1)});const u=t.computed(()=>!!o.columnsValue.fixed),p=t.computed(()=>[{icon:DE,emitKey:"update:toUnLock",isDisabled:!u.value},{icon:LE,emitKey:"update:toLock",isDisabled:u.value},{icon:ME,emitKey:"update:toTop",isDisabled:o.columnsIndex===0},{icon:jp,emitKey:"update:toPre",isDisabled:o.columnsIndex===0},{icon:ui,emitKey:"update:toNext",isDisabled:o.columnsIndex===o.columnsLen-1},{icon:gE,emitKey:"update:toBottom",isDisabled:o.columnsIndex===o.columnsLen-1}]),d=24/p.value.length,m=g=>{i(g)};return(g,y)=>{const b=er,_=hk,C=IO;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["transfer-item-wrapper",{"cursor-grab":l.itemOnHover,"cursor-grabbing":l.itemOnClick}]),onMouseenter:y[0]||(y[0]=S=>l.itemOnHover=!0),onMouseleave:y[1]||(y[1]=S=>l.itemOnHover=!1),onMousedown:s,onMouseup:c},[(t.openBlock(),t.createBlock(b,{label:g.columnsValue.label,value:g.columnsValue.prop,key:g.columnsValue.prop},null,8,["label","value"])),t.createVNode(C,{class:"transfer-arrow-wrapper",justify:"space-around",gutter:8},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.value,S=>(t.openBlock(),t.createBlock(_,{span:d},{default:t.withCtx(()=>[t.createVNode(t.unref(mn),{icon:S.icon,disabled:S.isDisabled,link:"",type:"primary",onClick:v=>m(S.emitKey)},null,8,["icon","disabled","onClick"])]),_:2},1024))),256))]),_:1})],34)}}}),tP={class:"search-bar"},nP={class:"transfer-sort-wrapper"},wa=t.defineComponent({__name:"TransferDialog",props:{modelValue:{type:Boolean},columnsValue:{},transferTitle:{}},emits:["update:modelValue","update:submit","update:checkChange"],setup(e,{emit:n}){const o=e,l=n,i=t.computed({get:()=>o.modelValue,set:C=>l("update:modelValue",C)}),s=t.reactive({localColumns:ji.cloneDeep(o.columnsValue),clickItemProp:"",checkList:o.columnsValue.map(C=>C.prop)}),c={toTop:C=>{if(C<=0)return;const S=s.localColumns.splice(C,1)[0];s.localColumns.unshift(S)},toBottom:C=>{if(C>=s.localColumns.length-1)return;const S=s.localColumns.splice(C,1)[0];s.localColumns.push(S)},toPre:C=>{if(C>0){const S=s.localColumns[C];s.localColumns[C]=s.localColumns[C-1],s.localColumns[C-1]=S}},toNext:C=>{if(C<s.localColumns.length-1){const S=s.localColumns[C];s.localColumns[C]=s.localColumns[C+1],s.localColumns[C+1]=S}},toLock:C=>{if(C<=0)return;const S=s.localColumns.splice(C,1)[0];S.fixed="left",s.localColumns.unshift(S)},toUnLock:C=>{if(C<s.localColumns.length-1){const S=s.localColumns[C];delete S.fixed}}},u=()=>{s.localColumns=ji.cloneDeep(o.columnsValue),s.checkList=o.columnsValue.filter(C=>C.checkActive).map(C=>C.prop||"")};t.watch(()=>i.value,C=>{C?u():(s.clickItemProp="",s.localColumns=[],s.checkList=[])});const p=()=>{l("update:submit",s.localColumns)},d=C=>{const S=o.columnsValue.map(v=>v.prop);s.checkList=C?S:[],m(s.checkList)},m=C=>{const S=C.map(v=>String(v));s.localColumns.forEach(v=>{v.checkActive=S.includes(v.prop)}),l("update:checkChange",{columns:s.localColumns,checkList:s.checkList})},g=t.computed(()=>s.localColumns.length>0&&s.checkList.length===s.localColumns.length),y=t.computed({get:()=>g.value,set:C=>d(C)}),b=()=>{s.localColumns=ji.cloneDeep(o.columnsValue)},_=C=>{if(C.length>0){const S=ji.cloneDeep(s.localColumns);s.localColumns=S.filter(v=>v.label.includes(C))}else b()};return(C,S)=>{const v=er,T=lk;return t.openBlock(),t.createBlock($r,{modelValue:i.value,"onUpdate:modelValue":S[2]||(S[2]=k=>i.value=k),title:C.transferTitle,"onClick:submit":p},{default:t.withCtx(()=>[t.createElementVNode("div",tP,[t.createVNode(Dr,{"show-search":!0,"onUpdate:clear":b,"onKeydown:enter":_})]),t.createElementVNode("div",nP,[t.createVNode(v,{modelValue:y.value,"onUpdate:modelValue":S[0]||(S[0]=k=>y.value=k),class:"px-4",onChange:d},{default:t.withCtx(()=>[t.createTextVNode(" 欄 ("+t.toDisplayString(s.checkList.length)+"/"+t.toDisplayString(s.localColumns.length)+") ",1)]),_:1},8,["modelValue"]),t.createVNode(T,{modelValue:s.checkList,"onUpdate:modelValue":S[1]||(S[1]=k=>s.checkList=k),onChange:m},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"list-container",{columns:s.localColumns,clickItemProp:s.clickItemProp,handleItemEvents:c,handleMousedown:k=>s.clickItemProp=k},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.localColumns,(k,w)=>(t.openBlock(),t.createBlock(yl,{key:k.prop,"dialog-modal-visible":i.value,"columns-value":k,"columns-index":w,"columns-len":s.localColumns.length,class:t.normalizeClass({"transfer-active-bg":k.checkActive,"transfer-active-border":s.clickItemProp==k.prop}),onMousedown:N=>s.clickItemProp=k.prop||"","onUpdate:toTop":N=>c.toTop(w),"onUpdate:toBottom":N=>c.toBottom(w),"onUpdate:toPre":N=>c.toPre(w),"onUpdate:toNext":N=>c.toNext(w),"onUpdate:toLock":N=>c.toLock(w),"onUpdate:toUnLock":N=>c.toUnLock(w)},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"])}}}),oP={class:"h-header px-4 py-4 flex justify-between items-center bg-primary-10"},rP={class:"flex items-center gap-2"},lP={key:0,class:"flex items-center text-black"},aP={class:"font-bold text-text text-xl md:text-2xl;"},iP={class:"flex items-center gap-3"},Cl=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:n}){const o=e,l=n,i=()=>{const s={};switch(typeof o.showBack){case"string":s.path=o.showBack;break;case"object":Object.assign(s,o.showBack);break;default:s.path=""}l("back",s)};return(s,c)=>{const u=Nt;return t.openBlock(),t.createElementBlock("div",oP,[t.createElementVNode("div",rP,[e.showBack?(t.openBlock(),t.createElementBlock("div",lP,[t.createVNode(u,{size:16,class:"cursor-pointer",onClick:i},{default:t.withCtx(()=>[t.createVNode(t.unref(uE))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",aP,t.toDisplayString(o.title),1)]),t.createElementVNode("div",iP,[t.renderSlot(s.$slots,"default")])])}}}),sP={key:0,class:"px-4 pt-1.5"},cP={key:1,class:"py-1.5 px-4"},uP={key:0,class:"flex justify-start pl-1.5 pt-0"},rr=ba(t.defineComponent({__name:"MainPanel",props:{title:{default:""},showBack:{type:[Boolean,String,Object],default:!1},depth:{default:1}},emits:["click:back"],setup(e,{emit:n}){const o=e,l=n,i=()=>{l("click:back")};return(s,c)=>{const u=Ql;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(Cl),{title:o.title,showBack:o.showBack,onBack:i,depth:o.depth},null,8,["title","showBack","depth"]),t.createVNode(u,{class:"panel-scrollbar"},{default:t.withCtx(()=>[s.$slots.searchBar?(t.openBlock(),t.createElementBlock("div",sP,[t.renderSlot(s.$slots,"searchBar",{},void 0,!0)])):t.createCommentVNode("",!0),s.$slots.main?(t.openBlock(),t.createElementBlock("div",cP,[t.renderSlot(s.$slots,"main",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3}),s.$slots.footer?(t.openBlock(),t.createElementBlock("div",uP,[t.renderSlot(s.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-c88d2537"]]),va=t.defineComponent({__name:"SearchableListPanel",props:{title:{},pagination:{},showBack:{type:[Boolean,String,Object]},showSearch:{type:Boolean},showEdit:{type:Boolean},showFilter:{type:Boolean},showDefaultSearch:{type:Boolean}},emits:["search","updatePage","updatePageSize","click:back"],setup(e,{emit:n}){const o=e,{pagination:l}=t.toRefs(o),i=n,s=t.computed(()=>o.showDefaultSearch||o.showSearch&&o.showEdit&&o.showFilter),c=g=>{i("search",g)},u=()=>{i("search",null)},p=g=>{i("updatePage",g)},d=g=>{i("updatePageSize",g)},m=()=>{i("click:back")};return(g,y)=>{const b=TO;return t.openBlock(),t.createBlock(t.unref(rr),{title:o.title,"show-back":g.showBack,"onClick:back":m},{searchBar:t.withCtx(()=>[t.createVNode(t.unref(Dr),{"show-filter":s.value||g.showFilter,"show-search":s.value||g.showSearch,"onKeydown:enter":c,"onUpdate:clear":u},{button:t.withCtx(()=>[t.renderSlot(g.$slots,"firstButton"),s.value||g.showEdit?t.renderSlot(g.$slots,"customButton",{key:0}):t.createCommentVNode("",!0),t.renderSlot(g.$slots,"lastButton")]),customerFilter:t.withCtx(()=>[t.renderSlot(g.$slots,"filterButton")]),_:3},8,["show-filter","show-search"])]),main:t.withCtx(()=>[t.renderSlot(g.$slots,"main")]),footer:t.withCtx(()=>[t.unref(l).totalCount>0?(t.openBlock(),t.createBlock(b,{key:0,layout:"jumper, prev, pager, next, total, sizes","page-sizes":[10,20,30,40,50],"current-page":t.unref(l).page,"page-size":t.unref(l).limit,total:t.unref(l).totalCount,onCurrentChange:p,onSizeChange:d},null,8,["current-page","page-size","total"])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),fP={class:"detail-container"},dP={class:"content-wrapper"},pP={key:0,class:"border-t pt-4 w-full flex items-center justify-end"},Ea=ba(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:n}){const{t:o}=bo(),l=n,i=()=>{l("update:saveEdit",!1)},s=()=>{l("update:cancelEdit")},c=()=>{l("click:back")};return(u,p)=>{const d=ca;return t.openBlock(),t.createBlock(t.unref(rr),{title:u.title,"show-back":u.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("div",fP,[t.renderSlot(u.$slots,"detailHeader",{},void 0,!0),t.createElementVNode("div",dP,[t.renderSlot(u.$slots,"main",{},void 0,!0)])])),[[d,u.pageLoading]])]),footer:t.withCtx(()=>[u.isEditable?(t.openBlock(),t.createElementBlock("div",pP,[t.createVNode(t.unref(mn),{text:t.unref(o)("common.save"),type:"primary","is-fill":"",onClick:i},null,8,["text"]),t.createVNode(t.unref(mn),{text:t.unref(o)("common.discard"),type:"primary",onClick:s},null,8,["text"])])):t.createCommentVNode("",!0)]),_:3},8,["title","show-back"])}}}),[["__scopeId","data-v-af71ee59"]]),mP={class:"filter-container"},hP={class:"filter-header"},gP={class:"submit-row"},Sa=ba(t.defineComponent({__name:"FilterLayout",props:{mainTitle:{},showBack:{type:[Boolean,String,Object]},filterTitle:{}},emits:["submitEmit","resetEmit","click:back"],setup(e,{emit:n}){const{t:o}=bo(),l=n,i=()=>{l("submitEmit")},s=()=>{l("resetEmit")},c=()=>{l("click:back")};return(u,p)=>(t.openBlock(),t.createBlock(t.unref(rr),{title:u.mainTitle,"show-back":u.showBack,"onClick:back":c},{main:t.withCtx(()=>[t.createElementVNode("div",mP,[t.createElementVNode("div",hP,t.toDisplayString(u.filterTitle),1),t.renderSlot(u.$slots,"default",{},void 0,!0)])]),footer:t.withCtx(()=>[t.createElementVNode("div",gP,[t.createVNode(t.unref(mn),{text:t.unref(o)("common.execute"),"is-fill":"",type:"primary",onClick:i},null,8,["text"]),t.createVNode(t.unref(mn),{text:t.unref(o)("common.reset"),type:"primary",onClick:s},null,8,["text"])])]),_:3},8,["title","show-back"]))}}),[["__scopeId","data-v-32b37758"]]),w0={"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.back":"回到前一頁","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":"捨棄"},v0={"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.back":" Back","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"},Ao={"zh-TW":{name:"繁體中文",messages:w0},"en-US":{name:"English",messages:v0}},Ta=g0({legacy:!1,locale:"zh-TW",fallbackLocale:"en-US",messages:{"zh-TW":w0,"en-US":v0}}),Fr=e=>{var o,l,i;const n=(i=(l=(o=window.__VUE_APP__)==null?void 0:o.config)==null?void 0:l.globalProperties)==null?void 0:i.$i18n;n?n.locale.value=e:Ta.global.locale.value=e,localStorage.setItem("locale",e),window.dispatchEvent(new CustomEvent("localeChanged",{detail:{locale:e,localeConfig:Ao[e]}}))},wl=()=>{var n,o,l;const e=(l=(o=(n=window.__VUE_APP__)==null?void 0:n.config)==null?void 0:o.globalProperties)==null?void 0:l.$i18n;return e?e.locale.value:Ta.global.locale.value},zu=()=>{const e=wl();return Ao[e]},vl=[{value:"zh-TW",label:"繁體中文"},{value:"en-US",label:"English"}],Yi=e=>{var n;return((n=Ao[e])==null?void 0:n.name)||e},E0=e=>{const o={zh:"zh-TW","zh-TW":"zh-TW","zh-CN":"zh-TW",en:"en-US","en-US":"en-US","en-GB":"en-US"}[e]||"zh-TW";return console.log(`[I18nPlugin] 同步外部語系 ${e} -> 組件庫語系 ${o}`),Fr(o),o},qi=()=>{const e=localStorage.getItem("locale");e&&["zh-TW","en-US"].includes(e)&&(Ta.global.locale.value=e),window.dispatchEvent(new CustomEvent("localeInitialized",{detail:{locale:wl(),localeConfig:zu()}}))};function Xi(e,n,o){switch(o){case"override":return{...e,...n};case"component":return{...n,...e};case"merge":default:return S0(e,n)}}function S0(e,n){const o={...e};for(const l in n)n.hasOwnProperty(l)&&(typeof n[l]=="object"&&n[l]!==null&&!Array.isArray(n[l])?typeof o[l]=="object"&&o[l]!==null&&!Array.isArray(o[l])?o[l]=S0(o[l],n[l]):o[l]={...n[l]}:o[l]=n[l]);return o}function T0(e,n={}){const{componentLocale:o="zh-TW",externalLocale:l,syncWithExternal:i=!1,messages:s={},mergeMessages:c=!0,mergeStrategy:u="merge",useIndependentInstance:p=!1,namespace:d="vue-table-components"}=n,m=e.config.globalProperties.$i18n;if(m&&!p){console.log("[I18nPlugin] 檢測到現有 i18n 實例,將合併翻譯訊息");const b={};if(Object.keys(Ao).forEach(_=>{b[_]=Ao[_].messages}),i&&l){console.log("[I18nPlugin] 啟用語系同步,監聽外部專案語系變更");const _=C=>{var v;const S=(v=C.detail)==null?void 0:v.locale;S&&["zh-TW","en-US"].includes(S)&&(console.log(`[I18nPlugin] 外部專案語系變更為: ${S}`),Fr(S))};window.addEventListener("externalLocaleChanged",_)}try{typeof m.mergeLocaleMessage=="function"?(console.log("[I18nPlugin] 開始合併組件庫翻譯到現有實例"),Object.keys(b).forEach(_=>{var T;const C=b[_];console.log(`[I18nPlugin] 合併 ${_} 語言,命名空間: ${d}`);const S=((T=m.getLocaleMessage)==null?void 0:T.call(m,_))||{},v=Xi(S,C,"merge");console.log(`[I18nPlugin] 合併後的 ${_} 語言鍵值:`,Object.keys(v)),m.mergeLocaleMessage(_,v)})):(console.log("[I18nPlugin] 現有 i18n 實例沒有 mergeLocaleMessage 方法,手動合併翻譯"),Object.keys(b).forEach(_=>{var w;const C=b[_],S=s[_]||{},v=((w=m.getLocaleMessage)==null?void 0:w.call(m,_))||{};let T=C;c&&Object.keys(S).length>0&&(T=Xi(C,S,u));const k=Xi(v,T,"merge");m.setLocaleMessage?m.setLocaleMessage(_,k):m.__setLocaleMessage&&m.__setLocaleMessage(_,k)}))}catch(_){console.warn("[I18nPlugin] 合併翻譯時發生錯誤:",_),console.log("[I18nPlugin] 將創建新的 i18n 實例")}e.config.globalProperties.$switchLanguage=Fr,e.config.globalProperties.$getCurrentLocale=wl,e.config.globalProperties.$availableLocales=vl,e.config.globalProperties.$getLanguageName=Yi,qi();return}console.log(p?"[I18nPlugin] 使用獨立 i18n 實例,避免與外部專案衝突":"[I18nPlugin] 未檢測到現有 i18n 實例,創建新的實例");let g={};Object.keys(Ao).forEach(b=>{g[b]=Ao[b].messages}),c&&Object.keys(s).length>0&&(g=Object.keys(g).reduce((b,_)=>{const C=g[_],S=s[_]||{};return b[_]=Xi(C,S,u),b},{}));const y=g0({legacy:!1,locale:o,fallbackLocale:"en-US",messages:g});y.global.locale.value=o,y.global.fallbackLocale.value="en-US",e.use(y),qi(),e.config.globalProperties.$switchLanguage=Fr,e.config.globalProperties.$getCurrentLocale=wl,e.config.globalProperties.$availableLocales=vl,e.config.globalProperties.$getLanguageName=Yi,e.config.globalProperties.$i18n=y.global}const bP={install:T0,i18n:Ta,switchLanguage:Fr,getCurrentLocale:wl,getCurrentLocaleConfig:zu,availableLocales:vl,getLanguageName:Yi,initLocale:qi,localeConfig:Ao,syncWithExternalLocale:E0},_P={class:"language-switcher"},ka=t.defineComponent({__name:"LanguageSwitcher",setup(e){const{locale:n}=bo(),o=i=>{Fr(i)},l=t.computed(()=>{const i=vl.find(s=>s.value===n.value);return(i==null?void 0:i.label)||"繁體中文"});return(i,s)=>{const c=Ni,u=LN,p=IN,d=ON;return t.openBlock(),t.createElementBlock("div",_P,[t.createVNode(d,{onCommand:o,trigger:"click"},{dropdown:t.withCtx(()=>[t.createVNode(p,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(vl),m=>(t.openBlock(),t.createBlock(u,{key:m.value,command:m.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:t.withCtx(()=>[t.createVNode(c,{type:"text",class:"flex items-center"},{default:t.withCtx(()=>[s[0]||(s[0]=t.createElementVNode("svg",{class:"w-4 h-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"})],-1)),t.createTextVNode(" "+t.toDisplayString(l.value)+" ",1),s[1]||(s[1]=t.createElementVNode("svg",{class:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),_:1,__:[0,1]})]),_:1})])}}}),yP={class:"w-full mb-4"},CP={class:"flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-end"},wP={class:"flex items-center mr-4"},Na=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","update:selectRow","click:cell","click:columnSort","click:checkRow","click:editRow"],setup(e,{emit:n}){const o=n,l=()=>{o("open:transfer")},i=d=>{o("update:selectRow",d)},s=(d,m)=>{o("click:cell",d,m)},c=d=>{o("click:columnSort",d)},u=d=>{o("click:checkRow",d)},p=d=>{o("click:editRow",d)};return(d,m)=>{const g=Nt;return t.openBlock(),t.createElementBlock("div",yP,[t.createElementVNode("div",CP,[t.createElementVNode("div",wP,[t.createElementVNode("div",{class:"cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",onClick:l},[t.createVNode(g,null,{default:t.withCtx(()=>[t.createVNode(t.unref(RE))]),_:1})])])]),t.createVNode(t.unref(Mr),{loading:d.loading,data:d.data,columns:d.columns,"show-selection":d.showSelection,"show-summary":d.showSummary,"show-over-flow-tooltip":d.showOverFlowTooltip,"summary-method":d.summaryMethod,"base-table-row-class-name":d.sortTableRowClassName,"show-check-btn":d.showCheckBtn,"show-edit-btn":d.showEditBtn,onSelectionChange:i,onCellClick:s,onColumnSortChange:c,"onClick:checkRow":u,"onClick:editRow":p},null,8,["loading","data","columns","show-selection","show-summary","show-over-flow-tooltip","summary-method","base-table-row-class-name","show-check-btn","show-edit-btn"])])}}});function vP(e){return e.map(n=>({...n,checkActive:!0}))}let vt={locales:[...[{value:"zh-TW",label:"繁體中文"},{value:"en-US",label:"English"}]],defaultLocale:"zh-TW",storageKey:"locale"};const EP=()=>vt.externalHandler?vt.externalHandler.availableLocales():vt.locales,SP=e=>{vt={...vt,...e}},TP=e=>{var n;if(vt.externalHandler){vt.externalHandler.switchLanguage(e);return}if(!vt.locales.some(o=>o.value===e)){console.warn(`Language ${e} is not configured`);return}localStorage.setItem(vt.storageKey,e),window.dispatchEvent(new CustomEvent("languageChanged",{detail:{locale:e,localeConfig:(n=vt.localeConfigs)==null?void 0:n[e]}}))},Uu=()=>{if(vt.externalHandler)return vt.externalHandler.getCurrentLocale();const e=localStorage.getItem(vt.storageKey);return e&&vt.locales.some(n=>n.value===e)?e:vt.defaultLocale},kP=e=>{var o,l;if((o=vt.externalHandler)!=null&&o.getLanguageName)return vt.externalHandler.getLanguageName(e);const n=vt.locales.find(i=>i.value===e);return(n==null?void 0:n.label)||((l=vt.locales[0])==null?void 0:l.label)||"Unknown"},k0=e=>{var n,o;return(n=vt.externalHandler)!=null&&n.getLocaleConfig?vt.externalHandler.getLocaleConfig(e):(o=vt.localeConfigs)==null?void 0:o[e]},N0=()=>{const e=Uu();return k0(e)},NP=()=>{const e=Uu(),n=N0();return window.dispatchEvent(new CustomEvent("languageInitialized",{detail:{locale:e,localeConfig:n}})),e},O0=[Mr,mn,_l,$r,_a,Na,ya,Dr,wa,yl,Cl,rr,va,Ea,Sa,ka];function L0(e,n){O0.forEach(o=>{e.component(o.name||"VueTableComponent",o)})}const OP={install:L0,...O0};Mr.install=e=>{e.component(Mr.name||"BaseTable",Mr)},mn.install=e=>{e.component(mn.name||"BaseBtn",mn)},_l.install=e=>{e.component(_l.name||"BaseInput",_l)},$r.install=e=>{e.component($r.name||"BaseDialog",$r)},Na.install=e=>{e.component(Na.name||"SortTable",Na)},ya.install=e=>{e.component(ya.name||"TitleTable",ya)},Dr.install=e=>{e.component(Dr.name||"SearchBar",Dr)},_a.install=e=>{e.component(_a.name||"BaseWaringDialog",_a)},wa.install=e=>{e.component(wa.name||"TransferDialog",wa)},yl.install=e=>{e.component(yl.name||"TransferItem",yl)},Cl.install=e=>{e.component(Cl.name||"FunctionHeader",Cl)},rr.install=e=>{e.component(rr.name||"MainPanel",rr)},va.install=e=>{e.component(va.name||"SearchableListPanel",va)},Ea.install=e=>{e.component(Ea.name||"DetailLayout",Ea)},Sa.install=e=>{e.component(Sa.name||"FilterLayout",Sa)},ka.install=e=>{e.component(ka.name||"LanguageSwitcher",ka)},be.BaseBtn=mn,be.BaseDialog=$r,be.BaseInput=_l,be.BaseTable=Mr,be.BaseWaringDialog=_a,be.DetailLayout=Ea,be.FilterLayout=Sa,be.FunctionHeader=Cl,be.I18nPlugin=bP,be.LanguageSwitcher=ka,be.MainPanel=rr,be.SearchBar=Dr,be.SearchableListPanel=va,be.SortTable=Na,be.TitleTable=ya,be.TransferDialog=wa,be.TransferItem=yl,be.availableLocales=vl,be.availableLocalesUtil=EP,be.configureLanguageSwitcher=SP,be.default=OP,be.getCurrentLocale=wl,be.getCurrentLocaleConfig=zu,be.getCurrentLocaleConfigUtil=N0,be.getCurrentLocaleUtil=Uu,be.getLanguageName=Yi,be.getLanguageNameUtil=kP,be.getLocaleConfig=k0,be.i18n=Ta,be.initLanguageSwitcher=NP,be.initLocale=qi,be.install=L0,be.installI18n=T0,be.localeConfig=Ao,be.setActiveColumn=vP,be.switchLanguage=Fr,be.switchLanguageUtil=TP,be.syncWithExternalLocale=E0,Object.defineProperties(be,{__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": "1.3.30",
3
+ "version": "1.3.31",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",