vue-devui 1.6.20 → 1.6.22

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/tree/index.es.js CHANGED
@@ -7343,8 +7343,8 @@ function useTree(tree2, plugins = [], context) {
7343
7343
  const ns$2 = useNamespace("tree");
7344
7344
  function useTreeNode(data) {
7345
7345
  const nodeClass = computed(() => {
7346
- var _a;
7347
- return [ns$2.e("node"), ((_a = data.value) == null ? void 0 : _a.expanded) && ns$2.em("node", "open")];
7346
+ var _a, _b;
7347
+ return [ns$2.e("node"), ((_a = data.value) == null ? void 0 : _a.expanded) && ns$2.em("node", "open"), ((_b = data.value) == null ? void 0 : _b.selected) && "active"];
7348
7348
  });
7349
7349
  const nodeStyle = computed(() => {
7350
7350
  var _a;
package/tree/index.umd.js CHANGED
@@ -24,7 +24,7 @@ __p += '`),ie&&(M+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+M+`return __p
27
- }`;var J=pf(function(){return ae(h,H+"return "+M).apply(r,v)});if(J.source=M,ia(J))throw J;return J}function qA(e){return se(e).toLowerCase()}function HA(e){return se(e).toUpperCase()}function WA(e,t,n){if(e=se(e),e&&(n||t===r))return Ts(e);if(!e||!(t=ke(t)))return e;var a=st(e),f=st(t),h=As(a,f),v=Cs(a,f)+1;return qt(a,h,v).join("")}function jA(e,t,n){if(e=se(e),e&&(n||t===r))return e.slice(0,Es(e)+1);if(!e||!(t=ke(t)))return e;var a=st(e),f=Cs(a,st(t))+1;return qt(a,0,f).join("")}function zA(e,t,n){if(e=se(e),e&&(n||t===r))return e.replace(ro,"");if(!e||!(t=ke(t)))return e;var a=st(e),f=As(a,st(t));return qt(a,f).join("")}function kA(e,t){var n=Se,a=Be;if(me(t)){var f="separator"in t?t.separator:f;n="length"in t?Z(t.length):n,a="omission"in t?ke(t.omission):a}e=se(e);var h=e.length;if(gn(e)){var v=st(e);h=v.length}if(n>=h)return e;var y=n-pn(a);if(y<1)return a;var A=v?qt(v,0,y).join(""):e.slice(0,y);if(f===r)return A+a;if(v&&(y+=A.length-y),oa(f)){if(e.slice(y).search(f)){var P,R=A;for(f.global||(f=bo(f.source,se(zu.exec(f))+"g")),f.lastIndex=0;P=f.exec(R);)var M=P.index;A=A.slice(0,M===r?y:M)}}else if(e.indexOf(ke(f),y)!=y){var V=A.lastIndexOf(f);V>-1&&(A=A.slice(0,V))}return A+a}function GA(e){return e=se(e),e&&i_.test(e)?e.replace(Hu,xw):e}var KA=xn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),sa=pl("toUpperCase");function gf(e,t,n){return e=se(e),t=n?r:t,t===r?mw(e)?Cw(e):sw(e):e.match(t)||[]}var pf=X(function(e,t){try{return je(e,r,t)}catch(n){return ia(n)?n:new K(n)}}),YA=St(function(e,t){return Xe(t,function(n){n=vt(n),At(e,n,na(e[n],e))}),e});function ZA(e){var t=e==null?0:e.length,n=j();return e=t?ve(e,function(a){if(typeof a[1]!="function")throw new Qe(g);return[n(a[0]),a[1]]}):[],X(function(a){for(var f=-1;++f<t;){var h=e[f];if(je(h[0],this,a))return je(h[1],this,a)}})}function JA(e){return xb(tt(e,w))}function la(e){return function(){return e}}function XA(e,t){return e==null||e!==e?t:e}var QA=ml(),eC=ml(!0);function He(e){return e}function fa(e){return Gs(typeof e=="function"?e:tt(e,w))}function tC(e){return Ys(tt(e,w))}function nC(e,t){return Zs(e,tt(t,w))}var rC=X(function(e,t){return function(n){return Xn(n,e,t)}}),iC=X(function(e,t){return function(n){return Xn(e,n,t)}});function ca(e,t,n){var a=Ie(t),f=zr(t,a);n==null&&!(me(t)&&(f.length||!a.length))&&(n=t,t=e,e=this,f=zr(t,Ie(t)));var h=!(me(n)&&"chain"in n)||!!n.chain,v=It(e);return Xe(f,function(y){var A=t[y];e[y]=A,v&&(e.prototype[y]=function(){var P=this.__chain__;if(h||P){var R=e(this.__wrapped__),M=R.__actions__=Ve(this.__actions__);return M.push({func:A,args:arguments,thisArg:e}),R.__chain__=P,R}return A.apply(e,Rt([this.value()],arguments))})}),e}function oC(){return Ne._===this&&(Ne._=$w),this}function da(){}function aC(e){return e=Z(e),X(function(t){return Js(t,e)})}var uC=Wo(ve),sC=Wo(ys),lC=Wo(go);function vf(e){return Zo(e)?po(vt(e)):Vb(e)}function fC(e){return function(t){return e==null?r:en(e,t)}}var cC=_l(),dC=_l(!0);function ha(){return[]}function ga(){return!1}function hC(){return{}}function gC(){return""}function pC(){return!0}function vC(e,t){if(e=Z(e),e<1||e>le)return[];var n=ue,a=Fe(e,ue);t=j(t),e-=ue;for(var f=yo(a,t);++n<e;)t(n);return f}function mC(e){return Y(e)?ve(e,vt):Ge(e)?[e]:Ve(Rl(se(e)))}function yC(e){var t=++Ow;return se(e)+t}var _C=Jr(function(e,t){return e+t},0),wC=jo("ceil"),bC=Jr(function(e,t){return e/t},1),xC=jo("floor");function TC(e){return e&&e.length?jr(e,He,Oo):r}function AC(e,t){return e&&e.length?jr(e,j(t,2),Oo):r}function CC(e){return bs(e,He)}function SC(e,t){return bs(e,j(t,2))}function EC(e){return e&&e.length?jr(e,He,Lo):r}function IC(e,t){return e&&e.length?jr(e,j(t,2),Lo):r}var OC=Jr(function(e,t){return e*t},1),NC=jo("round"),$C=Jr(function(e,t){return e-t},0);function FC(e){return e&&e.length?mo(e,He):0}function LC(e,t){return e&&e.length?mo(e,j(t,2)):0}return c.after=tT,c.ary=kl,c.assign=HT,c.assignIn=uf,c.assignInWith=fi,c.assignWith=WT,c.at=jT,c.before=Gl,c.bind=na,c.bindAll=YA,c.bindKey=Kl,c.castArray=hT,c.chain=Wl,c.chunk=xx,c.compact=Tx,c.concat=Ax,c.cond=ZA,c.conforms=JA,c.constant=la,c.countBy=F2,c.create=zT,c.curry=Yl,c.curryRight=Zl,c.debounce=Jl,c.defaults=kT,c.defaultsDeep=GT,c.defer=nT,c.delay=rT,c.difference=Cx,c.differenceBy=Sx,c.differenceWith=Ex,c.drop=Ix,c.dropRight=Ox,c.dropRightWhile=Nx,c.dropWhile=$x,c.fill=Fx,c.filter=P2,c.flatMap=D2,c.flatMapDeep=B2,c.flatMapDepth=V2,c.flatten=Vl,c.flattenDeep=Lx,c.flattenDepth=Px,c.flip=iT,c.flow=QA,c.flowRight=eC,c.fromPairs=Rx,c.functions=eA,c.functionsIn=tA,c.groupBy=U2,c.initial=Dx,c.intersection=Bx,c.intersectionBy=Vx,c.intersectionWith=Ux,c.invert=rA,c.invertBy=iA,c.invokeMap=H2,c.iteratee=fa,c.keyBy=W2,c.keys=Ie,c.keysIn=qe,c.map=ii,c.mapKeys=aA,c.mapValues=uA,c.matches=tC,c.matchesProperty=nC,c.memoize=ai,c.merge=sA,c.mergeWith=sf,c.method=rC,c.methodOf=iC,c.mixin=ca,c.negate=ui,c.nthArg=aC,c.omit=lA,c.omitBy=fA,c.once=oT,c.orderBy=j2,c.over=uC,c.overArgs=aT,c.overEvery=sC,c.overSome=lC,c.partial=ra,c.partialRight=Xl,c.partition=z2,c.pick=cA,c.pickBy=lf,c.property=vf,c.propertyOf=fC,c.pull=jx,c.pullAll=ql,c.pullAllBy=zx,c.pullAllWith=kx,c.pullAt=Gx,c.range=cC,c.rangeRight=dC,c.rearg=uT,c.reject=K2,c.remove=Kx,c.rest=sT,c.reverse=ea,c.sampleSize=Z2,c.set=hA,c.setWith=gA,c.shuffle=J2,c.slice=Yx,c.sortBy=eT,c.sortedUniq=n2,c.sortedUniqBy=r2,c.split=DA,c.spread=lT,c.tail=i2,c.take=o2,c.takeRight=a2,c.takeRightWhile=u2,c.takeWhile=s2,c.tap=T2,c.throttle=fT,c.thru=ri,c.toArray=rf,c.toPairs=ff,c.toPairsIn=cf,c.toPath=mC,c.toPlainObject=af,c.transform=pA,c.unary=cT,c.union=l2,c.unionBy=f2,c.unionWith=c2,c.uniq=d2,c.uniqBy=h2,c.uniqWith=g2,c.unset=vA,c.unzip=ta,c.unzipWith=Hl,c.update=mA,c.updateWith=yA,c.values=Cn,c.valuesIn=_A,c.without=p2,c.words=gf,c.wrap=dT,c.xor=v2,c.xorBy=m2,c.xorWith=y2,c.zip=_2,c.zipObject=w2,c.zipObjectDeep=b2,c.zipWith=x2,c.entries=ff,c.entriesIn=cf,c.extend=uf,c.extendWith=fi,ca(c,c),c.add=_C,c.attempt=pf,c.camelCase=TA,c.capitalize=df,c.ceil=wC,c.clamp=wA,c.clone=gT,c.cloneDeep=vT,c.cloneDeepWith=mT,c.cloneWith=pT,c.conformsTo=yT,c.deburr=hf,c.defaultTo=XA,c.divide=bC,c.endsWith=AA,c.eq=ft,c.escape=CA,c.escapeRegExp=SA,c.every=L2,c.find=R2,c.findIndex=Dl,c.findKey=KT,c.findLast=M2,c.findLastIndex=Bl,c.findLastKey=YT,c.floor=xC,c.forEach=jl,c.forEachRight=zl,c.forIn=ZT,c.forInRight=JT,c.forOwn=XT,c.forOwnRight=QT,c.get=aa,c.gt=_T,c.gte=wT,c.has=nA,c.hasIn=ua,c.head=Ul,c.identity=He,c.includes=q2,c.indexOf=Mx,c.inRange=bA,c.invoke=oA,c.isArguments=rn,c.isArray=Y,c.isArrayBuffer=bT,c.isArrayLike=Ue,c.isArrayLikeObject=we,c.isBoolean=xT,c.isBuffer=Ht,c.isDate=TT,c.isElement=AT,c.isEmpty=CT,c.isEqual=ST,c.isEqualWith=ET,c.isError=ia,c.isFinite=IT,c.isFunction=It,c.isInteger=Ql,c.isLength=si,c.isMap=ef,c.isMatch=OT,c.isMatchWith=NT,c.isNaN=$T,c.isNative=FT,c.isNil=PT,c.isNull=LT,c.isNumber=tf,c.isObject=me,c.isObjectLike=ye,c.isPlainObject=ir,c.isRegExp=oa,c.isSafeInteger=RT,c.isSet=nf,c.isString=li,c.isSymbol=Ge,c.isTypedArray=An,c.isUndefined=MT,c.isWeakMap=DT,c.isWeakSet=BT,c.join=qx,c.kebabCase=EA,c.last=rt,c.lastIndexOf=Hx,c.lowerCase=IA,c.lowerFirst=OA,c.lt=VT,c.lte=UT,c.max=TC,c.maxBy=AC,c.mean=CC,c.meanBy=SC,c.min=EC,c.minBy=IC,c.stubArray=ha,c.stubFalse=ga,c.stubObject=hC,c.stubString=gC,c.stubTrue=pC,c.multiply=OC,c.nth=Wx,c.noConflict=oC,c.noop=da,c.now=oi,c.pad=NA,c.padEnd=$A,c.padStart=FA,c.parseInt=LA,c.random=xA,c.reduce=k2,c.reduceRight=G2,c.repeat=PA,c.replace=RA,c.result=dA,c.round=NC,c.runInContext=b,c.sample=Y2,c.size=X2,c.snakeCase=MA,c.some=Q2,c.sortedIndex=Zx,c.sortedIndexBy=Jx,c.sortedIndexOf=Xx,c.sortedLastIndex=Qx,c.sortedLastIndexBy=e2,c.sortedLastIndexOf=t2,c.startCase=BA,c.startsWith=VA,c.subtract=$C,c.sum=FC,c.sumBy=LC,c.template=UA,c.times=vC,c.toFinite=Ot,c.toInteger=Z,c.toLength=of,c.toLower=qA,c.toNumber=it,c.toSafeInteger=qT,c.toString=se,c.toUpper=HA,c.trim=WA,c.trimEnd=jA,c.trimStart=zA,c.truncate=kA,c.unescape=GA,c.uniqueId=yC,c.upperCase=KA,c.upperFirst=sa,c.each=jl,c.eachRight=zl,c.first=Ul,ca(c,function(){var e={};return gt(c,function(t,n){fe.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=u,Xe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),Xe(["drop","take"],function(e,t){ne.prototype[e]=function(n){n=n===r?1:Ce(Z(n),0);var a=this.__filtered__&&!t?new ne(this):this.clone();return a.__filtered__?a.__takeCount__=Fe(n,a.__takeCount__):a.__views__.push({size:Fe(n,ue),type:e+(a.__dir__<0?"Right":"")}),a},ne.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Xe(["filter","map","takeWhile"],function(e,t){var n=t+1,a=n==_t||n==z;ne.prototype[e]=function(f){var h=this.clone();return h.__iteratees__.push({iteratee:j(f,3),type:n}),h.__filtered__=h.__filtered__||a,h}}),Xe(["head","last"],function(e,t){var n="take"+(t?"Right":"");ne.prototype[e]=function(){return this[n](1).value()[0]}}),Xe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ne.prototype[e]=function(){return this.__filtered__?new ne(this):this[n](1)}}),ne.prototype.compact=function(){return this.filter(He)},ne.prototype.find=function(e){return this.filter(e).head()},ne.prototype.findLast=function(e){return this.reverse().find(e)},ne.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new ne(this):this.map(function(n){return Xn(n,e,t)})}),ne.prototype.reject=function(e){return this.filter(ui(j(e)))},ne.prototype.slice=function(e,t){e=Z(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ne(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=Z(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},ne.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ne.prototype.toArray=function(){return this.take(ue)},gt(ne.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),f=c[a?"take"+(t=="last"?"Right":""):t],h=a||/^find/.test(t);!f||(c.prototype[t]=function(){var v=this.__wrapped__,y=a?[1]:arguments,A=v instanceof ne,P=y[0],R=A||Y(v),M=function(ee){var ie=f.apply(c,Rt([ee],y));return a&&V?ie[0]:ie};R&&n&&typeof P=="function"&&P.length!=1&&(A=R=!1);var V=this.__chain__,H=!!this.__actions__.length,k=h&&!V,J=A&&!H;if(!h&&R){v=J?v:new ne(this);var G=e.apply(v,y);return G.__actions__.push({func:ri,args:[M],thisArg:r}),new et(G,V)}return k&&J?e.apply(this,y):(G=this.thru(M),k?a?G.value()[0]:G.value():G)})}),Xe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Or[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var h=this.value();return t.apply(Y(h)?h:[],f)}return this[n](function(v){return t.apply(Y(v)?v:[],f)})}}),gt(ne.prototype,function(e,t){var n=c[t];if(n){var a=n.name+"";fe.call(_n,a)||(_n[a]=[]),_n[a].push({name:t,func:n})}}),_n[Zr(r,_).name]=[{name:"wrapper",func:r}],ne.prototype.clone=Gw,ne.prototype.reverse=Kw,ne.prototype.value=Yw,c.prototype.at=A2,c.prototype.chain=C2,c.prototype.commit=S2,c.prototype.next=E2,c.prototype.plant=O2,c.prototype.reverse=N2,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=$2,c.prototype.first=c.prototype.head,zn&&(c.prototype[zn]=I2),c},vn=Sw();Yt?((Yt.exports=vn)._=vn,lo._=vn):Ne._=vn}).call(yt)})(De,De.exports);function em(){return function(o,r){const{clearNodeMap:u,getExpendedTree:s}=r,d=l.ref(),g=()=>{o.value.forEach(E=>{E.childrenMatched=!1,E.isHide=!1,E.isMatched=!1,E.matchedText=""}),d.value&&d.value.scrollTo(0)},p=(E,I,x)=>o.value[E].parentId===o.value[I].parentId&&o.value[E].isMatched||x.has(o.value[E].id)&&o.value[E].childrenMatched,m=(E,I,x)=>{const S=De.exports.trim(E).toLocaleLowerCase();for(let _=0;_<o.value.length;_++){const F=I?o.value[_][I]:o.value[_].label,T=x?x.test(F):F.toLocaleLowerCase().includes(S);if(o.value[_].isMatched=T,T){if(o.value[_].matchedText=I?o.value[_].label:S,!o.value[_].parentId)continue;let B=_-1;const D=new Set;for(D.add(o.value[_].parentId);B>=0&&o.value[B].parentId&&!p(B,_,D);)D.has(o.value[B].id)&&(o.value[B].childrenMatched=!0,o.value[B].expanded=!0,D.add(o.value[B].parentId)),B--;B>=0&&!o.value[B].parentId&&D.has(o.value[B].id)&&(o.value[B].childrenMatched=!0,o.value[B].expanded=!0)}}},C=(E,I,x)=>x.has(o.value[E].id)&&o.value[E].isMatched,$=()=>{o.value.forEach((E,I)=>{if(E.isMatched||E.childrenMatched)E.isHide=!1;else{if(!E.parentId){E.isHide=!0;return}let x=I-1;const S=new Set;for(S.add(o.value[I].parentId);x>=0&&o.value[x].parentId&&!C(x,I,S);)S.has(o.value[x].id)&&S.add(o.value[x].parentId),x--;!o.value[x].parentId&&!o.value[x].isMatched?E.isHide=!0:E.isHide=!1}})},w=()=>{let E=0;const I=s().value;for(;E<=I.length-1&&!I[E].isMatched;)E++;return E>=I.length?0:E};return{virtualListRef:d,searchTree:(E,I)=>{if(u(),g(),!!E&&(m(E,I.matchKey,I.pattern),I.isFilter&&$(),d.value)){const x=w();d.value.scrollTo(x)}}}}}function tm(){return function(o,r,u){const{setNodeValue:s}=r,{getInitSelectedNodes:d,clearInitSelectedNodes:g}=wa();let p;const m=O=>{if(O.disableSelect)return;const E=d();if(E.length&&(E.forEach(I=>{s(I,"selected",!1)}),g()),p){const I=o.value.findIndex(x=>x.id===p.id);s(o.value[I],"selected",!1)}s(O,"selected",!0),u.emit("select-change",O),p=O},C=O=>{s(O,"selected",!1),u.emit("select-change",O)};return{selectNode:m,deselectNode:C,toggleSelectNode:O=>{O.selected?C(O):m(O)},getSelectedNode:()=>o.value.find(O=>O.selected)}}}function nm(){return function(o,r,u,s){const{getNode:d,setNodeValue:g}=r,{lazyLoadNodes:p}=s,m=O=>{O.disableToggle||O.loading||(g(O,"expanded",!0),u.emit("toggle-change",O))},C=O=>{O.disableToggle||O.loading||(g(O,"expanded",!1),u.emit("toggle-change",O))};return{expandNode:m,collapseNode:C,toggleNode:O=>{O.disableToggle||O.loading||(d(O).expanded?C(O):m(O),p(O))},expandAllNodes:()=>{o.value.forEach(O=>{m(O)})}}}}const rm=[nm()];function im(i,o=[],r){const u=l.ref(ar(i)),s=bf()(u),d=X0()(u,s,r),g=rm.concat(o).reduce((p,m)=>({...p,...m(u,s,r,d)}),{});return{treeData:u,...g,...s}}const $t=Ze("tree");function pu(i){const o=l.computed(()=>{var w;return[$t.e("node"),((w=i.value)==null?void 0:w.expanded)&&$t.em("node","open")]}),r=l.computed(()=>{var w;return{paddingLeft:`${24*(((w=i.value)==null?void 0:w.level)-1)}px`}}),u=l.computed(()=>{var w;return[((w=i.value)==null?void 0:w.level)!==1&&$t.e("node-vline")]}),s=l.computed(()=>{if(!i.value||i.value.level===1)return[];const{currentIndex:w=0,parentChildNodeCount:O=0,level:E,expanded:I,isLeaf:x}=i.value;return Array.from({length:i.value.level-1}).map((S,_)=>({height:`${w+1===O&&_===0&&(x||!I)?30/2:30}px`,left:`${24*(E-_-2)+9}px`,top:"0px"}))}),d=l.computed(()=>{var w;return[((w=i.value)==null?void 0:w.level)!==1&&$t.e("node-hline")]}),g=l.computed(()=>{var w;return[$t.e("node-content"),((w=i.value)==null?void 0:w.selected)&&"active"]}),p=l.computed(()=>{var w;return[$t.e("node-title"),((w=i.value)==null?void 0:w.disableSelect)&&"select-disabled"]}),m=l.computed(()=>$t.e("node-operation-area")),C=l.computed(()=>{var x,S;const w=((x=i.value)==null?void 0:x.matchedText)||"",O=((S=i.value)==null?void 0:S.label)||"",E=_=>_.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),I=new RegExp("("+E(w)+")","gi");return O.split(I)}),$=$t.e("match-highlight");return{nodeClass:o,nodeStyle:r,nodeContentClass:g,nodeTitleClass:p,nodeVLineClass:u,nodeVLineStyles:s,nodeHLineClass:d,nodeOperationAreaClass:m,matchedContents:C,highlightCls:$}}const om=()=>l.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"svg-icon"},[l.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l.createVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"2",stroke:"#252b3a"},null),l.createVNode("path",{fill:"#252b3a",d:"M8.75,4 L8.75,7.25 L12,7.25 L12,8.75 L8.749,8.75 L8.75,12 L7.25,12 L7.249,8.75 L4,8.75 L4,7.25 L7.25,7.25 L7.25,4 L8.75,4 Z"},null)])]),am=()=>l.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"svg-icon svg-icon-close"},[l.createVNode("g",{"stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l.createVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"2",stroke:"#5e7ce0"},null),l.createVNode("rect",{x:"4",y:"7",width:"8",height:"2",fill:"#5e7ce0"},null)])]);var vu=l.defineComponent({name:"DTreeNodeToggle",props:{data:{type:Object,default:()=>({})}},setup(i){const{data:o}=l.toRefs(i),{toggleNode:r}=l.inject(ci),u=Ze("tree");return()=>{var s;return l.createVNode("span",{class:[u.e("node-folder"),((s=o.value)==null?void 0:s.disableToggle)&&"toggle-disabled"],onClick:d=>{d.stopPropagation(),r&&r(o.value)}},[o.value.isLeaf?l.createVNode("span",{class:u.e("node-indent")},null):o.value.expanded?l.createVNode(am,{class:"mr-xs"},null):l.createVNode(om,{class:"mr-xs"},null)])}}});function mu(...i){const o=r=>r&&typeof r=="object";return i.reduce((r,u)=>(Object.keys(u).forEach(s=>{const d=r[s],g=u[s];Array.isArray(d)&&Array.isArray(g)?r[s]=Array.from(new Set([...g,...d])):o(d)&&o(g)?r[s]=mu(d,g):r[s]=g}),r),{})}var um={pagination:{totalItemText:"\u6240\u6709\u6761\u76EE",goToText:"\u8DF3\u81F3",perPage:"\u6761/\u9875"},accordion:{loading:"\u52A0\u8F7D\u4E2D",noData:"\u6CA1\u6709\u6570\u636E"},autoCompleteDropdown:{latestInput:"\u6700\u8FD1\u8F93\u5165"},cascaderList:{noData:"\u6CA1\u6709\u6570\u636E"},colorPicker:{foundationPanel:"\u57FA\u7840\u9762\u677F",advancedPanel:"\u9AD8\u7EA7\u9762\u677F"},datePickerPro:{ok:"\u786E\u5B9A",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",month1:"1\u6708",month2:"2\u6708",month3:"3\u6708",month4:"4\u6708",month5:"5\u6708",month6:"6\u6708",month7:"7\u6708",month8:"8\u6708",month9:"9\u6708",month10:"10\u6708",month11:"11\u6708",month12:"12\u6708",year:"\u5E74",startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",getWeekDays(){return["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},getTimeArr(){return["\u65F6","\u5206","\u79D2"]},getYearMonthStr(i,o){return`${i}\u5E74${o}\u6708`}},editableSelect:{noRelatedRecords:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",noData:"\u6CA1\u6709\u6570\u636E"},input:{placeholder:"\u8BF7\u8F93\u5165"},splitterBar:{collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},stepsGuide:{previous:"\u4E0A\u4E00\u6B65",continue:"\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",ok:"\u6211\u77E5\u9053\u5566"},table:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},dataGrid:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},timePopup:{ok:"\u786E\u5B9A"},transfer:{unit:"\u9879",panelUnit:"\u9879",headerUnit:"\u9879",noData:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},tree:{loading:"\u52A0\u8F7D\u4E2D",newNode:"\u65B0\u8282\u70B9",selectPlaceholder:"\u8BF7\u9009\u62E9"},upload:{placeholder:"\u9009\u62E9\u6587\u4EF6",getExistSameNameFilesMsg(i){return`\u60A8\u4E0A\u4F20\u7684 "${i}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`},getAllFilesBeyondMaximalFileSizeMsg(i){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${i}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getBeyondMaximalFileSizeMsg(i,o){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${o}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${i}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getNotAllowedFileTypeMsg(i,o){return`\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${o}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${i}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`}},search:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57"},select:{placeholder:"\u8BF7\u9009\u62E9",noDataText:"\u65E0\u6570\u636E",noMatchText:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",loadingText:"\u52A0\u8F7D\u4E2D..."},tagInput:{maxTagsText:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},timeSelect:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}};const mr=l.ref("zh-CN");let Pi=l.reactive({[mr.value]:um});const sm={messages(){return Pi[mr.value]},lang(){return mr.value},use(i,o){mr.value=i,this.add({[i]:o})},add(i={}){Pi=mu(Pi,i)}},lm=i=>i.substring(1).replace(/^\S/,o=>o.toLocaleLowerCase());function yu(i,o){const r=o.split(".");let u=i;return r.forEach(s=>{var d;u=(d=u[s])!=null?d:""}),u}function _u(i,o,r){const u=r||lm(i)+".";return s=>{var p;const d=((p=o==null?void 0:o.appContext.config.globalProperties.langMessages)==null?void 0:p.value)||sm.messages();return yu(d,u+s)||yu(d,s)}}var wu=l.defineComponent({name:"DTreeNodeLoading",setup(){const i=l.getCurrentInstance(),o=_u("DTree",i),r=Ze("loading-children ");return()=>l.createVNode("span",{class:r.b()},[`${o("loading")||"Loading"}...`])}});const bu={name:{type:String,default:void 0},halfChecked:{type:Boolean,default:!1},isShowTitle:{type:Boolean,default:!0},title:{type:String},color:{type:String,default:void 0},showAnimation:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},beforeChange:{type:Function,default:void 0},size:{type:String},showGlowStyle:{type:Boolean,default:!0}},xu={...bu,checked:{type:Boolean,default:!1},value:{type:[Number,String]},label:{type:String,default:""},"onUpdate:checked":{type:Function,default:void 0},onChange:{type:Function,default:void 0},modelValue:{type:Boolean},"onUpdate:modelValue":{type:Function},border:{type:Boolean,default:!1}},fm={...bu,modelValue:{type:Array,required:!0},direction:{type:String,default:"column"},itemWidth:{type:Number,default:void 0},options:{type:Array,default:()=>[]},onChange:{type:Function,default:void 0},"onUpdate:modelValue":{type:Function,default:void 0},border:{type:Boolean,default:!1},max:{type:Number,default:void 0},textColor:{type:String,default:""}},Ri=Symbol("d-checkbox-group"),cm={data:{type:Object,default:()=>({})},layout:{type:String,default:"horizontal"},labelSize:{type:String,default:"md"},labelAlign:{type:String,default:"start"},rules:{type:Object},messageType:{type:String,default:"popover"},popPosition:{type:Array,default:["right","bottom"]},validateOnRuleChange:{type:Boolean,default:!1},showFeedback:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},hideRequiredMark:{type:Boolean,default:!1},styleType:{type:String,default:"default"},appendToBodyScrollStrategy:{type:String,default:"reposition"},requirePosition:{type:String,default:"left"}},ht="dForm",dm="dFormStyle";function hm(){const i=[];return{itemContexts:i,addItemContext:u=>{i.push(u)},removeItemContext:u=>{i.splice(i.indexOf(u),1)}}}function gm(i){const o=p=>{if(!i.length)return[];const m=De.exports.castArray(p),C=m.length?i.filter($=>$.field&&m.includes($.field)):i;return C.length?C:[]},r=async(p=[])=>{const m=o(p);if(!m.length)return!0;let C={};for(const $ of m)try{await $.validate("")}catch(w){C={...C,...w}}return Object.keys(C).length?Promise.reject(C):!0},u=async(p=[],m)=>{try{const C=await r(p);return C&&(m==null||m(C)),C}catch(C){const $=C;return m==null||m(!1,$),!m&&Promise.reject($)}};return{validate:async p=>u(void 0,p),validateFields:u,resetFields:(p=[])=>{o(p).forEach(m=>m.resetField())},clearValidate:(p=[])=>{o(p).forEach(m=>m.clearValidate())}}}l.defineComponent({name:"DForm",props:cm,emits:["validate"],setup(i,o){const r=mt("form"),{itemContexts:u,addItemContext:s,removeItemContext:d}=hm(),{validate:g,validateFields:p,resetFields:m,clearValidate:C}=gm(u),$=w=>{w.preventDefault()};return l.watch(()=>i.rules,()=>{i.validateOnRuleChange&&g()},{deep:!0}),l.provide(ht,l.reactive({...l.toRefs(i),emit:o.emit,addItemContext:s,removeItemContext:d})),l.provide(dm,i.styleType),o.expose({validate:g,validateFields:p,resetFields:m,clearValidate:C}),()=>{var w,O;return l.createVNode("form",{onSubmit:$,class:r.b()},[(O=(w=o.slots).default)==null?void 0:O.call(w)])}}});const pm={label:{type:String},field:{type:String,default:""},required:{type:Boolean,default:!1},messageType:{type:String},popPosition:{type:Array},rules:{type:[Object,Array]},showFeedback:{type:Boolean,default:void 0},helpTips:{type:[String,Object],default:""},feedbackStatus:{type:String},extraInfo:{type:String,default:""},isAsyncValidate:{type:Boolean,default:!1}},$n="dFormItem",Mi="dFormLabelData",vm={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function mm(i,o){let r;const u=d=>{d.preventDefault(),o.emit("click",d),i.closeOnClickOverlay&&o.emit("update:modelValue",!1)},s=()=>{r==null||r()};return l.watch(()=>i.modelValue,d=>{d?i.lockScroll&&(r=_f()):s()}),l.onUnmounted(s),{onClick:u}}var DC="";l.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:vm,emits:["update:modelValue","click"],setup(i,o){const{modelValue:r}=l.toRefs(i),u=Ze("fixed-overlay"),{onClick:s}=mm(i,o);return()=>l.createVNode(l.Transition,{name:u.m("fade")},{default:()=>{var d,g;return[r.value&&l.createVNode("div",l.mergeProps({class:u.b()},o.attrs,{onClick:s}),[(g=(d=o.slots).default)==null?void 0:g.call(d)])]}})}});const ym={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0},clickEventBubble:{type:Boolean,default:!1},fitOriginWidth:{type:Boolean,default:!1}};function _m(i,o,r,u){let{x:s,y:d}=o;if(!i){const{width:g,height:p}=u;s&&r.includes("start")&&(s=12),s&&r.includes("end")&&(s=Math.round(g-24)),d&&r.includes("start")&&(d=10),d&&r.includes("end")&&(d=p-14)}return{x:s,y:d}}function wm(i,o){const{fitOriginWidth:r,position:u,showArrow:s}=l.toRefs(i),d=l.ref(),g=l.ref(),p=l.ref(0);let m;const C=l.computed(()=>r.value?{width:p.value+"px"}:{}),$=(S,_,F,T)=>{const{x:B,y:D}=_m(i.isArrowCenter,F,_,T.getBoundingClientRect()),U={top:"bottom",right:"left",bottom:"top",left:"right"}[_.split("-")[0]];Object.assign(S.style,{left:B?`${B}px`:"",top:D?`${D}px`:"",right:"",bottom:"",[U]:"-4px"})},w=async()=>{const S=i.origin,_=l.unref(d.value),F=l.unref(g.value),[T,...B]=u.value,D=[Sn.offset(i.offset)];D.push(B.length?Sn.flip({fallbackPlacements:B}):Sn.flip()),s.value&&D.push(Sn.arrow({element:g.value}));const{x:U,y:W,placement:re,middlewareData:oe}=await Sn.computePosition(S,_,{strategy:"fixed",placement:T,middleware:D});let Se=U,Be=W;o("positionChange",re),Object.assign(_.style,{top:`${Be}px`,left:`${Se}px`}),i.showArrow&&$(F,re,oe.arrow,_)},O=S=>{var F,T;const _=S.target;_!=null&&_.contains((T=(F=i.origin)==null?void 0:F.$el)!=null?T:i.origin)&&w()},E=S=>{p.value=S.getBoundingClientRect().width,w()},I=()=>{var S,_;if(r.value&&typeof window!="undefined"){const F=(_=(S=i.origin)==null?void 0:S.$el)!=null?_:i.origin;F&&(m=new window.ResizeObserver(()=>E(F)),m.observe(F))}},x=()=>{var _,F;const S=(F=(_=i.origin)==null?void 0:_.$el)!=null?F:i.origin;S&&(m==null||m.unobserve(S))};return l.watch(()=>i.modelValue,()=>{i.modelValue&&i.origin?(l.nextTick(w),window.addEventListener("scroll",O,!0),window.addEventListener("resize",w),I()):(window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",w),x())}),l.onUnmounted(()=>{window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",w),x()}),{arrowRef:g,overlayRef:d,styles:C,updatePosition:w}}var BC="";const bm=l.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:ym,emits:["update:modelValue","positionChange"],setup(i,{slots:o,attrs:r,emit:u,expose:s}){const d=Ze("flexible-overlay"),{clickEventBubble:g}=l.toRefs(i),{arrowRef:p,overlayRef:m,styles:C,updatePosition:$}=wm(i,u);return s({updatePosition:$}),()=>{var w;return i.modelValue&&l.createVNode("div",l.mergeProps({ref:m,class:d.b(),style:C.value},r,{onClick:l.withModifiers(()=>({}),[g.value?"":"stop"]),onPointerup:l.withModifiers(()=>({}),["stop"])}),[(w=o.default)==null?void 0:w.call(o),i.showArrow&&l.createVNode("div",{ref:p,class:d.e("arrow")},null)])}}}),Tu=Symbol("popper-trigger");/**
27
+ }`;var J=pf(function(){return ae(h,H+"return "+M).apply(r,v)});if(J.source=M,ia(J))throw J;return J}function qA(e){return se(e).toLowerCase()}function HA(e){return se(e).toUpperCase()}function WA(e,t,n){if(e=se(e),e&&(n||t===r))return Ts(e);if(!e||!(t=ke(t)))return e;var a=st(e),f=st(t),h=As(a,f),v=Cs(a,f)+1;return qt(a,h,v).join("")}function jA(e,t,n){if(e=se(e),e&&(n||t===r))return e.slice(0,Es(e)+1);if(!e||!(t=ke(t)))return e;var a=st(e),f=Cs(a,st(t))+1;return qt(a,0,f).join("")}function zA(e,t,n){if(e=se(e),e&&(n||t===r))return e.replace(ro,"");if(!e||!(t=ke(t)))return e;var a=st(e),f=As(a,st(t));return qt(a,f).join("")}function kA(e,t){var n=Se,a=Be;if(me(t)){var f="separator"in t?t.separator:f;n="length"in t?Z(t.length):n,a="omission"in t?ke(t.omission):a}e=se(e);var h=e.length;if(gn(e)){var v=st(e);h=v.length}if(n>=h)return e;var y=n-pn(a);if(y<1)return a;var A=v?qt(v,0,y).join(""):e.slice(0,y);if(f===r)return A+a;if(v&&(y+=A.length-y),oa(f)){if(e.slice(y).search(f)){var P,R=A;for(f.global||(f=bo(f.source,se(zu.exec(f))+"g")),f.lastIndex=0;P=f.exec(R);)var M=P.index;A=A.slice(0,M===r?y:M)}}else if(e.indexOf(ke(f),y)!=y){var V=A.lastIndexOf(f);V>-1&&(A=A.slice(0,V))}return A+a}function GA(e){return e=se(e),e&&i_.test(e)?e.replace(Hu,xw):e}var KA=xn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),sa=pl("toUpperCase");function gf(e,t,n){return e=se(e),t=n?r:t,t===r?mw(e)?Cw(e):sw(e):e.match(t)||[]}var pf=X(function(e,t){try{return je(e,r,t)}catch(n){return ia(n)?n:new K(n)}}),YA=St(function(e,t){return Xe(t,function(n){n=vt(n),At(e,n,na(e[n],e))}),e});function ZA(e){var t=e==null?0:e.length,n=j();return e=t?ve(e,function(a){if(typeof a[1]!="function")throw new Qe(g);return[n(a[0]),a[1]]}):[],X(function(a){for(var f=-1;++f<t;){var h=e[f];if(je(h[0],this,a))return je(h[1],this,a)}})}function JA(e){return xb(tt(e,w))}function la(e){return function(){return e}}function XA(e,t){return e==null||e!==e?t:e}var QA=ml(),eC=ml(!0);function He(e){return e}function fa(e){return Gs(typeof e=="function"?e:tt(e,w))}function tC(e){return Ys(tt(e,w))}function nC(e,t){return Zs(e,tt(t,w))}var rC=X(function(e,t){return function(n){return Xn(n,e,t)}}),iC=X(function(e,t){return function(n){return Xn(e,n,t)}});function ca(e,t,n){var a=Ie(t),f=zr(t,a);n==null&&!(me(t)&&(f.length||!a.length))&&(n=t,t=e,e=this,f=zr(t,Ie(t)));var h=!(me(n)&&"chain"in n)||!!n.chain,v=It(e);return Xe(f,function(y){var A=t[y];e[y]=A,v&&(e.prototype[y]=function(){var P=this.__chain__;if(h||P){var R=e(this.__wrapped__),M=R.__actions__=Ve(this.__actions__);return M.push({func:A,args:arguments,thisArg:e}),R.__chain__=P,R}return A.apply(e,Rt([this.value()],arguments))})}),e}function oC(){return Ne._===this&&(Ne._=$w),this}function da(){}function aC(e){return e=Z(e),X(function(t){return Js(t,e)})}var uC=Wo(ve),sC=Wo(ys),lC=Wo(go);function vf(e){return Zo(e)?po(vt(e)):Vb(e)}function fC(e){return function(t){return e==null?r:en(e,t)}}var cC=_l(),dC=_l(!0);function ha(){return[]}function ga(){return!1}function hC(){return{}}function gC(){return""}function pC(){return!0}function vC(e,t){if(e=Z(e),e<1||e>le)return[];var n=ue,a=Fe(e,ue);t=j(t),e-=ue;for(var f=yo(a,t);++n<e;)t(n);return f}function mC(e){return Y(e)?ve(e,vt):Ge(e)?[e]:Ve(Rl(se(e)))}function yC(e){var t=++Ow;return se(e)+t}var _C=Jr(function(e,t){return e+t},0),wC=jo("ceil"),bC=Jr(function(e,t){return e/t},1),xC=jo("floor");function TC(e){return e&&e.length?jr(e,He,Oo):r}function AC(e,t){return e&&e.length?jr(e,j(t,2),Oo):r}function CC(e){return bs(e,He)}function SC(e,t){return bs(e,j(t,2))}function EC(e){return e&&e.length?jr(e,He,Lo):r}function IC(e,t){return e&&e.length?jr(e,j(t,2),Lo):r}var OC=Jr(function(e,t){return e*t},1),NC=jo("round"),$C=Jr(function(e,t){return e-t},0);function FC(e){return e&&e.length?mo(e,He):0}function LC(e,t){return e&&e.length?mo(e,j(t,2)):0}return c.after=tT,c.ary=kl,c.assign=HT,c.assignIn=uf,c.assignInWith=fi,c.assignWith=WT,c.at=jT,c.before=Gl,c.bind=na,c.bindAll=YA,c.bindKey=Kl,c.castArray=hT,c.chain=Wl,c.chunk=xx,c.compact=Tx,c.concat=Ax,c.cond=ZA,c.conforms=JA,c.constant=la,c.countBy=F2,c.create=zT,c.curry=Yl,c.curryRight=Zl,c.debounce=Jl,c.defaults=kT,c.defaultsDeep=GT,c.defer=nT,c.delay=rT,c.difference=Cx,c.differenceBy=Sx,c.differenceWith=Ex,c.drop=Ix,c.dropRight=Ox,c.dropRightWhile=Nx,c.dropWhile=$x,c.fill=Fx,c.filter=P2,c.flatMap=D2,c.flatMapDeep=B2,c.flatMapDepth=V2,c.flatten=Vl,c.flattenDeep=Lx,c.flattenDepth=Px,c.flip=iT,c.flow=QA,c.flowRight=eC,c.fromPairs=Rx,c.functions=eA,c.functionsIn=tA,c.groupBy=U2,c.initial=Dx,c.intersection=Bx,c.intersectionBy=Vx,c.intersectionWith=Ux,c.invert=rA,c.invertBy=iA,c.invokeMap=H2,c.iteratee=fa,c.keyBy=W2,c.keys=Ie,c.keysIn=qe,c.map=ii,c.mapKeys=aA,c.mapValues=uA,c.matches=tC,c.matchesProperty=nC,c.memoize=ai,c.merge=sA,c.mergeWith=sf,c.method=rC,c.methodOf=iC,c.mixin=ca,c.negate=ui,c.nthArg=aC,c.omit=lA,c.omitBy=fA,c.once=oT,c.orderBy=j2,c.over=uC,c.overArgs=aT,c.overEvery=sC,c.overSome=lC,c.partial=ra,c.partialRight=Xl,c.partition=z2,c.pick=cA,c.pickBy=lf,c.property=vf,c.propertyOf=fC,c.pull=jx,c.pullAll=ql,c.pullAllBy=zx,c.pullAllWith=kx,c.pullAt=Gx,c.range=cC,c.rangeRight=dC,c.rearg=uT,c.reject=K2,c.remove=Kx,c.rest=sT,c.reverse=ea,c.sampleSize=Z2,c.set=hA,c.setWith=gA,c.shuffle=J2,c.slice=Yx,c.sortBy=eT,c.sortedUniq=n2,c.sortedUniqBy=r2,c.split=DA,c.spread=lT,c.tail=i2,c.take=o2,c.takeRight=a2,c.takeRightWhile=u2,c.takeWhile=s2,c.tap=T2,c.throttle=fT,c.thru=ri,c.toArray=rf,c.toPairs=ff,c.toPairsIn=cf,c.toPath=mC,c.toPlainObject=af,c.transform=pA,c.unary=cT,c.union=l2,c.unionBy=f2,c.unionWith=c2,c.uniq=d2,c.uniqBy=h2,c.uniqWith=g2,c.unset=vA,c.unzip=ta,c.unzipWith=Hl,c.update=mA,c.updateWith=yA,c.values=Cn,c.valuesIn=_A,c.without=p2,c.words=gf,c.wrap=dT,c.xor=v2,c.xorBy=m2,c.xorWith=y2,c.zip=_2,c.zipObject=w2,c.zipObjectDeep=b2,c.zipWith=x2,c.entries=ff,c.entriesIn=cf,c.extend=uf,c.extendWith=fi,ca(c,c),c.add=_C,c.attempt=pf,c.camelCase=TA,c.capitalize=df,c.ceil=wC,c.clamp=wA,c.clone=gT,c.cloneDeep=vT,c.cloneDeepWith=mT,c.cloneWith=pT,c.conformsTo=yT,c.deburr=hf,c.defaultTo=XA,c.divide=bC,c.endsWith=AA,c.eq=ft,c.escape=CA,c.escapeRegExp=SA,c.every=L2,c.find=R2,c.findIndex=Dl,c.findKey=KT,c.findLast=M2,c.findLastIndex=Bl,c.findLastKey=YT,c.floor=xC,c.forEach=jl,c.forEachRight=zl,c.forIn=ZT,c.forInRight=JT,c.forOwn=XT,c.forOwnRight=QT,c.get=aa,c.gt=_T,c.gte=wT,c.has=nA,c.hasIn=ua,c.head=Ul,c.identity=He,c.includes=q2,c.indexOf=Mx,c.inRange=bA,c.invoke=oA,c.isArguments=rn,c.isArray=Y,c.isArrayBuffer=bT,c.isArrayLike=Ue,c.isArrayLikeObject=we,c.isBoolean=xT,c.isBuffer=Ht,c.isDate=TT,c.isElement=AT,c.isEmpty=CT,c.isEqual=ST,c.isEqualWith=ET,c.isError=ia,c.isFinite=IT,c.isFunction=It,c.isInteger=Ql,c.isLength=si,c.isMap=ef,c.isMatch=OT,c.isMatchWith=NT,c.isNaN=$T,c.isNative=FT,c.isNil=PT,c.isNull=LT,c.isNumber=tf,c.isObject=me,c.isObjectLike=ye,c.isPlainObject=ir,c.isRegExp=oa,c.isSafeInteger=RT,c.isSet=nf,c.isString=li,c.isSymbol=Ge,c.isTypedArray=An,c.isUndefined=MT,c.isWeakMap=DT,c.isWeakSet=BT,c.join=qx,c.kebabCase=EA,c.last=rt,c.lastIndexOf=Hx,c.lowerCase=IA,c.lowerFirst=OA,c.lt=VT,c.lte=UT,c.max=TC,c.maxBy=AC,c.mean=CC,c.meanBy=SC,c.min=EC,c.minBy=IC,c.stubArray=ha,c.stubFalse=ga,c.stubObject=hC,c.stubString=gC,c.stubTrue=pC,c.multiply=OC,c.nth=Wx,c.noConflict=oC,c.noop=da,c.now=oi,c.pad=NA,c.padEnd=$A,c.padStart=FA,c.parseInt=LA,c.random=xA,c.reduce=k2,c.reduceRight=G2,c.repeat=PA,c.replace=RA,c.result=dA,c.round=NC,c.runInContext=b,c.sample=Y2,c.size=X2,c.snakeCase=MA,c.some=Q2,c.sortedIndex=Zx,c.sortedIndexBy=Jx,c.sortedIndexOf=Xx,c.sortedLastIndex=Qx,c.sortedLastIndexBy=e2,c.sortedLastIndexOf=t2,c.startCase=BA,c.startsWith=VA,c.subtract=$C,c.sum=FC,c.sumBy=LC,c.template=UA,c.times=vC,c.toFinite=Ot,c.toInteger=Z,c.toLength=of,c.toLower=qA,c.toNumber=it,c.toSafeInteger=qT,c.toString=se,c.toUpper=HA,c.trim=WA,c.trimEnd=jA,c.trimStart=zA,c.truncate=kA,c.unescape=GA,c.uniqueId=yC,c.upperCase=KA,c.upperFirst=sa,c.each=jl,c.eachRight=zl,c.first=Ul,ca(c,function(){var e={};return gt(c,function(t,n){fe.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=u,Xe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),Xe(["drop","take"],function(e,t){ne.prototype[e]=function(n){n=n===r?1:Ce(Z(n),0);var a=this.__filtered__&&!t?new ne(this):this.clone();return a.__filtered__?a.__takeCount__=Fe(n,a.__takeCount__):a.__views__.push({size:Fe(n,ue),type:e+(a.__dir__<0?"Right":"")}),a},ne.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Xe(["filter","map","takeWhile"],function(e,t){var n=t+1,a=n==_t||n==z;ne.prototype[e]=function(f){var h=this.clone();return h.__iteratees__.push({iteratee:j(f,3),type:n}),h.__filtered__=h.__filtered__||a,h}}),Xe(["head","last"],function(e,t){var n="take"+(t?"Right":"");ne.prototype[e]=function(){return this[n](1).value()[0]}}),Xe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ne.prototype[e]=function(){return this.__filtered__?new ne(this):this[n](1)}}),ne.prototype.compact=function(){return this.filter(He)},ne.prototype.find=function(e){return this.filter(e).head()},ne.prototype.findLast=function(e){return this.reverse().find(e)},ne.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new ne(this):this.map(function(n){return Xn(n,e,t)})}),ne.prototype.reject=function(e){return this.filter(ui(j(e)))},ne.prototype.slice=function(e,t){e=Z(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ne(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=Z(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},ne.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ne.prototype.toArray=function(){return this.take(ue)},gt(ne.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),f=c[a?"take"+(t=="last"?"Right":""):t],h=a||/^find/.test(t);!f||(c.prototype[t]=function(){var v=this.__wrapped__,y=a?[1]:arguments,A=v instanceof ne,P=y[0],R=A||Y(v),M=function(ee){var ie=f.apply(c,Rt([ee],y));return a&&V?ie[0]:ie};R&&n&&typeof P=="function"&&P.length!=1&&(A=R=!1);var V=this.__chain__,H=!!this.__actions__.length,k=h&&!V,J=A&&!H;if(!h&&R){v=J?v:new ne(this);var G=e.apply(v,y);return G.__actions__.push({func:ri,args:[M],thisArg:r}),new et(G,V)}return k&&J?e.apply(this,y):(G=this.thru(M),k?a?G.value()[0]:G.value():G)})}),Xe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Or[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var f=arguments;if(a&&!this.__chain__){var h=this.value();return t.apply(Y(h)?h:[],f)}return this[n](function(v){return t.apply(Y(v)?v:[],f)})}}),gt(ne.prototype,function(e,t){var n=c[t];if(n){var a=n.name+"";fe.call(_n,a)||(_n[a]=[]),_n[a].push({name:t,func:n})}}),_n[Zr(r,_).name]=[{name:"wrapper",func:r}],ne.prototype.clone=Gw,ne.prototype.reverse=Kw,ne.prototype.value=Yw,c.prototype.at=A2,c.prototype.chain=C2,c.prototype.commit=S2,c.prototype.next=E2,c.prototype.plant=O2,c.prototype.reverse=N2,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=$2,c.prototype.first=c.prototype.head,zn&&(c.prototype[zn]=I2),c},vn=Sw();Yt?((Yt.exports=vn)._=vn,lo._=vn):Ne._=vn}).call(yt)})(De,De.exports);function em(){return function(o,r){const{clearNodeMap:u,getExpendedTree:s}=r,d=l.ref(),g=()=>{o.value.forEach(E=>{E.childrenMatched=!1,E.isHide=!1,E.isMatched=!1,E.matchedText=""}),d.value&&d.value.scrollTo(0)},p=(E,I,x)=>o.value[E].parentId===o.value[I].parentId&&o.value[E].isMatched||x.has(o.value[E].id)&&o.value[E].childrenMatched,m=(E,I,x)=>{const S=De.exports.trim(E).toLocaleLowerCase();for(let _=0;_<o.value.length;_++){const F=I?o.value[_][I]:o.value[_].label,T=x?x.test(F):F.toLocaleLowerCase().includes(S);if(o.value[_].isMatched=T,T){if(o.value[_].matchedText=I?o.value[_].label:S,!o.value[_].parentId)continue;let B=_-1;const D=new Set;for(D.add(o.value[_].parentId);B>=0&&o.value[B].parentId&&!p(B,_,D);)D.has(o.value[B].id)&&(o.value[B].childrenMatched=!0,o.value[B].expanded=!0,D.add(o.value[B].parentId)),B--;B>=0&&!o.value[B].parentId&&D.has(o.value[B].id)&&(o.value[B].childrenMatched=!0,o.value[B].expanded=!0)}}},C=(E,I,x)=>x.has(o.value[E].id)&&o.value[E].isMatched,$=()=>{o.value.forEach((E,I)=>{if(E.isMatched||E.childrenMatched)E.isHide=!1;else{if(!E.parentId){E.isHide=!0;return}let x=I-1;const S=new Set;for(S.add(o.value[I].parentId);x>=0&&o.value[x].parentId&&!C(x,I,S);)S.has(o.value[x].id)&&S.add(o.value[x].parentId),x--;!o.value[x].parentId&&!o.value[x].isMatched?E.isHide=!0:E.isHide=!1}})},w=()=>{let E=0;const I=s().value;for(;E<=I.length-1&&!I[E].isMatched;)E++;return E>=I.length?0:E};return{virtualListRef:d,searchTree:(E,I)=>{if(u(),g(),!!E&&(m(E,I.matchKey,I.pattern),I.isFilter&&$(),d.value)){const x=w();d.value.scrollTo(x)}}}}}function tm(){return function(o,r,u){const{setNodeValue:s}=r,{getInitSelectedNodes:d,clearInitSelectedNodes:g}=wa();let p;const m=O=>{if(O.disableSelect)return;const E=d();if(E.length&&(E.forEach(I=>{s(I,"selected",!1)}),g()),p){const I=o.value.findIndex(x=>x.id===p.id);s(o.value[I],"selected",!1)}s(O,"selected",!0),u.emit("select-change",O),p=O},C=O=>{s(O,"selected",!1),u.emit("select-change",O)};return{selectNode:m,deselectNode:C,toggleSelectNode:O=>{O.selected?C(O):m(O)},getSelectedNode:()=>o.value.find(O=>O.selected)}}}function nm(){return function(o,r,u,s){const{getNode:d,setNodeValue:g}=r,{lazyLoadNodes:p}=s,m=O=>{O.disableToggle||O.loading||(g(O,"expanded",!0),u.emit("toggle-change",O))},C=O=>{O.disableToggle||O.loading||(g(O,"expanded",!1),u.emit("toggle-change",O))};return{expandNode:m,collapseNode:C,toggleNode:O=>{O.disableToggle||O.loading||(d(O).expanded?C(O):m(O),p(O))},expandAllNodes:()=>{o.value.forEach(O=>{m(O)})}}}}const rm=[nm()];function im(i,o=[],r){const u=l.ref(ar(i)),s=bf()(u),d=X0()(u,s,r),g=rm.concat(o).reduce((p,m)=>({...p,...m(u,s,r,d)}),{});return{treeData:u,...g,...s}}const $t=Ze("tree");function pu(i){const o=l.computed(()=>{var w,O;return[$t.e("node"),((w=i.value)==null?void 0:w.expanded)&&$t.em("node","open"),((O=i.value)==null?void 0:O.selected)&&"active"]}),r=l.computed(()=>{var w;return{paddingLeft:`${24*(((w=i.value)==null?void 0:w.level)-1)}px`}}),u=l.computed(()=>{var w;return[((w=i.value)==null?void 0:w.level)!==1&&$t.e("node-vline")]}),s=l.computed(()=>{if(!i.value||i.value.level===1)return[];const{currentIndex:w=0,parentChildNodeCount:O=0,level:E,expanded:I,isLeaf:x}=i.value;return Array.from({length:i.value.level-1}).map((S,_)=>({height:`${w+1===O&&_===0&&(x||!I)?30/2:30}px`,left:`${24*(E-_-2)+9}px`,top:"0px"}))}),d=l.computed(()=>{var w;return[((w=i.value)==null?void 0:w.level)!==1&&$t.e("node-hline")]}),g=l.computed(()=>{var w;return[$t.e("node-content"),((w=i.value)==null?void 0:w.selected)&&"active"]}),p=l.computed(()=>{var w;return[$t.e("node-title"),((w=i.value)==null?void 0:w.disableSelect)&&"select-disabled"]}),m=l.computed(()=>$t.e("node-operation-area")),C=l.computed(()=>{var x,S;const w=((x=i.value)==null?void 0:x.matchedText)||"",O=((S=i.value)==null?void 0:S.label)||"",E=_=>_.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),I=new RegExp("("+E(w)+")","gi");return O.split(I)}),$=$t.e("match-highlight");return{nodeClass:o,nodeStyle:r,nodeContentClass:g,nodeTitleClass:p,nodeVLineClass:u,nodeVLineStyles:s,nodeHLineClass:d,nodeOperationAreaClass:m,matchedContents:C,highlightCls:$}}const om=()=>l.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"svg-icon"},[l.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l.createVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"2",stroke:"#252b3a"},null),l.createVNode("path",{fill:"#252b3a",d:"M8.75,4 L8.75,7.25 L12,7.25 L12,8.75 L8.749,8.75 L8.75,12 L7.25,12 L7.249,8.75 L4,8.75 L4,7.25 L7.25,7.25 L7.25,4 L8.75,4 Z"},null)])]),am=()=>l.createVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"svg-icon svg-icon-close"},[l.createVNode("g",{"stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l.createVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"2",stroke:"#5e7ce0"},null),l.createVNode("rect",{x:"4",y:"7",width:"8",height:"2",fill:"#5e7ce0"},null)])]);var vu=l.defineComponent({name:"DTreeNodeToggle",props:{data:{type:Object,default:()=>({})}},setup(i){const{data:o}=l.toRefs(i),{toggleNode:r}=l.inject(ci),u=Ze("tree");return()=>{var s;return l.createVNode("span",{class:[u.e("node-folder"),((s=o.value)==null?void 0:s.disableToggle)&&"toggle-disabled"],onClick:d=>{d.stopPropagation(),r&&r(o.value)}},[o.value.isLeaf?l.createVNode("span",{class:u.e("node-indent")},null):o.value.expanded?l.createVNode(am,{class:"mr-xs"},null):l.createVNode(om,{class:"mr-xs"},null)])}}});function mu(...i){const o=r=>r&&typeof r=="object";return i.reduce((r,u)=>(Object.keys(u).forEach(s=>{const d=r[s],g=u[s];Array.isArray(d)&&Array.isArray(g)?r[s]=Array.from(new Set([...g,...d])):o(d)&&o(g)?r[s]=mu(d,g):r[s]=g}),r),{})}var um={pagination:{totalItemText:"\u6240\u6709\u6761\u76EE",goToText:"\u8DF3\u81F3",perPage:"\u6761/\u9875"},accordion:{loading:"\u52A0\u8F7D\u4E2D",noData:"\u6CA1\u6709\u6570\u636E"},autoCompleteDropdown:{latestInput:"\u6700\u8FD1\u8F93\u5165"},cascaderList:{noData:"\u6CA1\u6709\u6570\u636E"},colorPicker:{foundationPanel:"\u57FA\u7840\u9762\u677F",advancedPanel:"\u9AD8\u7EA7\u9762\u677F"},datePickerPro:{ok:"\u786E\u5B9A",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",month1:"1\u6708",month2:"2\u6708",month3:"3\u6708",month4:"4\u6708",month5:"5\u6708",month6:"6\u6708",month7:"7\u6708",month8:"8\u6708",month9:"9\u6708",month10:"10\u6708",month11:"11\u6708",month12:"12\u6708",year:"\u5E74",startPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",getWeekDays(){return["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},getTimeArr(){return["\u65F6","\u5206","\u79D2"]},getYearMonthStr(i,o){return`${i}\u5E74${o}\u6708`}},editableSelect:{noRelatedRecords:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",noData:"\u6CA1\u6709\u6570\u636E"},input:{placeholder:"\u8BF7\u8F93\u5165"},splitterBar:{collapse:"\u6536\u8D77",expand:"\u5C55\u5F00"},stepsGuide:{previous:"\u4E0A\u4E00\u6B65",continue:"\u6211\u77E5\u9053\u5566\uFF0C\u7EE7\u7EED",ok:"\u6211\u77E5\u9053\u5566"},table:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},dataGrid:{selectAll:"\u5168\u9009",ok:"\u786E\u5B9A"},timePopup:{ok:"\u786E\u5B9A"},transfer:{unit:"\u9879",panelUnit:"\u9879",headerUnit:"\u9879",noData:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},tree:{loading:"\u52A0\u8F7D\u4E2D",newNode:"\u65B0\u8282\u70B9",selectPlaceholder:"\u8BF7\u9009\u62E9"},upload:{placeholder:"\u9009\u62E9\u6587\u4EF6",getExistSameNameFilesMsg(i){return`\u60A8\u4E0A\u4F20\u7684 "${i}" \u5B58\u5728\u91CD\u540D\u6587\u4EF6, \u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`},getAllFilesBeyondMaximalFileSizeMsg(i){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${i}MB\u7684\u6587\u4EF6, \u60A8\u672C\u6B21\u4E0A\u4F20\u7684\u6240\u6709\u6587\u4EF6\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getBeyondMaximalFileSizeMsg(i,o){return`\u6700\u5927\u652F\u6301\u4E0A\u4F20${o}MB\u7684\u6587\u4EF6, \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${i}"\u8D85\u8FC7\u53EF\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F`},getNotAllowedFileTypeMsg(i,o){return`\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B: "${o}", \u60A8\u4E0A\u4F20\u7684\u6587\u4EF6"${i}"\u4E0D\u5728\u5141\u8BB8\u8303\u56F4\u5185\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6`}},search:{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57"},select:{placeholder:"\u8BF7\u9009\u62E9",noDataText:"\u65E0\u6570\u636E",noMatchText:"\u627E\u4E0D\u5230\u76F8\u5173\u8BB0\u5F55",loadingText:"\u52A0\u8F7D\u4E2D..."},tagInput:{maxTagsText:"\u5DF2\u8FBE\u5230\u6700\u5927\u4E2A\u6570\uFF1A"},timeSelect:{placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}};const mr=l.ref("zh-CN");let Pi=l.reactive({[mr.value]:um});const sm={messages(){return Pi[mr.value]},lang(){return mr.value},use(i,o){mr.value=i,this.add({[i]:o})},add(i={}){Pi=mu(Pi,i)}},lm=i=>i.substring(1).replace(/^\S/,o=>o.toLocaleLowerCase());function yu(i,o){const r=o.split(".");let u=i;return r.forEach(s=>{var d;u=(d=u[s])!=null?d:""}),u}function _u(i,o,r){const u=r||lm(i)+".";return s=>{var p;const d=((p=o==null?void 0:o.appContext.config.globalProperties.langMessages)==null?void 0:p.value)||sm.messages();return yu(d,u+s)||yu(d,s)}}var wu=l.defineComponent({name:"DTreeNodeLoading",setup(){const i=l.getCurrentInstance(),o=_u("DTree",i),r=Ze("loading-children ");return()=>l.createVNode("span",{class:r.b()},[`${o("loading")||"Loading"}...`])}});const bu={name:{type:String,default:void 0},halfChecked:{type:Boolean,default:!1},isShowTitle:{type:Boolean,default:!0},title:{type:String},color:{type:String,default:void 0},showAnimation:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},beforeChange:{type:Function,default:void 0},size:{type:String},showGlowStyle:{type:Boolean,default:!0}},xu={...bu,checked:{type:Boolean,default:!1},value:{type:[Number,String]},label:{type:String,default:""},"onUpdate:checked":{type:Function,default:void 0},onChange:{type:Function,default:void 0},modelValue:{type:Boolean},"onUpdate:modelValue":{type:Function},border:{type:Boolean,default:!1}},fm={...bu,modelValue:{type:Array,required:!0},direction:{type:String,default:"column"},itemWidth:{type:Number,default:void 0},options:{type:Array,default:()=>[]},onChange:{type:Function,default:void 0},"onUpdate:modelValue":{type:Function,default:void 0},border:{type:Boolean,default:!1},max:{type:Number,default:void 0},textColor:{type:String,default:""}},Ri=Symbol("d-checkbox-group"),cm={data:{type:Object,default:()=>({})},layout:{type:String,default:"horizontal"},labelSize:{type:String,default:"md"},labelAlign:{type:String,default:"start"},rules:{type:Object},messageType:{type:String,default:"popover"},popPosition:{type:Array,default:["right","bottom"]},validateOnRuleChange:{type:Boolean,default:!1},showFeedback:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},hideRequiredMark:{type:Boolean,default:!1},styleType:{type:String,default:"default"},appendToBodyScrollStrategy:{type:String,default:"reposition"},requirePosition:{type:String,default:"left"}},ht="dForm",dm="dFormStyle";function hm(){const i=[];return{itemContexts:i,addItemContext:u=>{i.push(u)},removeItemContext:u=>{i.splice(i.indexOf(u),1)}}}function gm(i){const o=p=>{if(!i.length)return[];const m=De.exports.castArray(p),C=m.length?i.filter($=>$.field&&m.includes($.field)):i;return C.length?C:[]},r=async(p=[])=>{const m=o(p);if(!m.length)return!0;let C={};for(const $ of m)try{await $.validate("")}catch(w){C={...C,...w}}return Object.keys(C).length?Promise.reject(C):!0},u=async(p=[],m)=>{try{const C=await r(p);return C&&(m==null||m(C)),C}catch(C){const $=C;return m==null||m(!1,$),!m&&Promise.reject($)}};return{validate:async p=>u(void 0,p),validateFields:u,resetFields:(p=[])=>{o(p).forEach(m=>m.resetField())},clearValidate:(p=[])=>{o(p).forEach(m=>m.clearValidate())}}}l.defineComponent({name:"DForm",props:cm,emits:["validate"],setup(i,o){const r=mt("form"),{itemContexts:u,addItemContext:s,removeItemContext:d}=hm(),{validate:g,validateFields:p,resetFields:m,clearValidate:C}=gm(u),$=w=>{w.preventDefault()};return l.watch(()=>i.rules,()=>{i.validateOnRuleChange&&g()},{deep:!0}),l.provide(ht,l.reactive({...l.toRefs(i),emit:o.emit,addItemContext:s,removeItemContext:d})),l.provide(dm,i.styleType),o.expose({validate:g,validateFields:p,resetFields:m,clearValidate:C}),()=>{var w,O;return l.createVNode("form",{onSubmit:$,class:r.b()},[(O=(w=o.slots).default)==null?void 0:O.call(w)])}}});const pm={label:{type:String},field:{type:String,default:""},required:{type:Boolean,default:!1},messageType:{type:String},popPosition:{type:Array},rules:{type:[Object,Array]},showFeedback:{type:Boolean,default:void 0},helpTips:{type:[String,Object],default:""},feedbackStatus:{type:String},extraInfo:{type:String,default:""},isAsyncValidate:{type:Boolean,default:!1}},$n="dFormItem",Mi="dFormLabelData",vm={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function mm(i,o){let r;const u=d=>{d.preventDefault(),o.emit("click",d),i.closeOnClickOverlay&&o.emit("update:modelValue",!1)},s=()=>{r==null||r()};return l.watch(()=>i.modelValue,d=>{d?i.lockScroll&&(r=_f()):s()}),l.onUnmounted(s),{onClick:u}}var DC="";l.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:vm,emits:["update:modelValue","click"],setup(i,o){const{modelValue:r}=l.toRefs(i),u=Ze("fixed-overlay"),{onClick:s}=mm(i,o);return()=>l.createVNode(l.Transition,{name:u.m("fade")},{default:()=>{var d,g;return[r.value&&l.createVNode("div",l.mergeProps({class:u.b()},o.attrs,{onClick:s}),[(g=(d=o.slots).default)==null?void 0:g.call(d)])]}})}});const ym={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0},clickEventBubble:{type:Boolean,default:!1},fitOriginWidth:{type:Boolean,default:!1}};function _m(i,o,r,u){let{x:s,y:d}=o;if(!i){const{width:g,height:p}=u;s&&r.includes("start")&&(s=12),s&&r.includes("end")&&(s=Math.round(g-24)),d&&r.includes("start")&&(d=10),d&&r.includes("end")&&(d=p-14)}return{x:s,y:d}}function wm(i,o){const{fitOriginWidth:r,position:u,showArrow:s}=l.toRefs(i),d=l.ref(),g=l.ref(),p=l.ref(0);let m;const C=l.computed(()=>r.value?{width:p.value+"px"}:{}),$=(S,_,F,T)=>{const{x:B,y:D}=_m(i.isArrowCenter,F,_,T.getBoundingClientRect()),U={top:"bottom",right:"left",bottom:"top",left:"right"}[_.split("-")[0]];Object.assign(S.style,{left:B?`${B}px`:"",top:D?`${D}px`:"",right:"",bottom:"",[U]:"-4px"})},w=async()=>{const S=i.origin,_=l.unref(d.value),F=l.unref(g.value),[T,...B]=u.value,D=[Sn.offset(i.offset)];D.push(B.length?Sn.flip({fallbackPlacements:B}):Sn.flip()),s.value&&D.push(Sn.arrow({element:g.value}));const{x:U,y:W,placement:re,middlewareData:oe}=await Sn.computePosition(S,_,{strategy:"fixed",placement:T,middleware:D});let Se=U,Be=W;o("positionChange",re),Object.assign(_.style,{top:`${Be}px`,left:`${Se}px`}),i.showArrow&&$(F,re,oe.arrow,_)},O=S=>{var F,T;const _=S.target;_!=null&&_.contains((T=(F=i.origin)==null?void 0:F.$el)!=null?T:i.origin)&&w()},E=S=>{p.value=S.getBoundingClientRect().width,w()},I=()=>{var S,_;if(r.value&&typeof window!="undefined"){const F=(_=(S=i.origin)==null?void 0:S.$el)!=null?_:i.origin;F&&(m=new window.ResizeObserver(()=>E(F)),m.observe(F))}},x=()=>{var _,F;const S=(F=(_=i.origin)==null?void 0:_.$el)!=null?F:i.origin;S&&(m==null||m.unobserve(S))};return l.watch(()=>i.modelValue,()=>{i.modelValue&&i.origin?(l.nextTick(w),window.addEventListener("scroll",O,!0),window.addEventListener("resize",w),I()):(window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",w),x())}),l.onUnmounted(()=>{window.removeEventListener("scroll",O,!0),window.removeEventListener("resize",w),x()}),{arrowRef:g,overlayRef:d,styles:C,updatePosition:w}}var BC="";const bm=l.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:ym,emits:["update:modelValue","positionChange"],setup(i,{slots:o,attrs:r,emit:u,expose:s}){const d=Ze("flexible-overlay"),{clickEventBubble:g}=l.toRefs(i),{arrowRef:p,overlayRef:m,styles:C,updatePosition:$}=wm(i,u);return s({updatePosition:$}),()=>{var w;return i.modelValue&&l.createVNode("div",l.mergeProps({ref:m,class:d.b(),style:C.value},r,{onClick:l.withModifiers(()=>({}),[g.value?"":"stop"]),onPointerup:l.withModifiers(()=>({}),["stop"])}),[(w=o.default)==null?void 0:w.call(o),i.showArrow&&l.createVNode("div",{ref:p,class:d.e("arrow")},null)])}}}),Tu=Symbol("popper-trigger");/**
28
28
  * @vue/shared v3.4.27
29
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
30
30
  * @license MIT
@@ -28,6 +28,10 @@ export declare const codeReviewProps: {
28
28
  type: BooleanConstructor;
29
29
  default: boolean;
30
30
  };
31
+ allowChecked: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
31
35
  allowExpand: {
32
36
  type: BooleanConstructor;
33
37
  default: boolean;
@@ -10,8 +10,11 @@ export declare function useCodeReviewComment(reviewContentRef: Ref<HTMLElement>,
10
10
  onMousemove?: undefined;
11
11
  onMouseleave?: undefined;
12
12
  };
13
+ updateCheckedLineClass: () => void;
13
14
  onCommentMouseLeave: (e: MouseEvent) => void;
14
15
  onCommentIconClick: (e: Event) => void;
16
+ onCommentKeyDown: () => void;
17
+ unCommentKeyDown: () => void;
15
18
  insertComment: (lineNumber: number, lineSide: LineSide, commentDom: HTMLElement) => void;
16
19
  removeComment: (lineNumber: number, lineSide: LineSide) => void;
17
20
  };
@@ -5,7 +5,7 @@ export declare const BOLD_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"
5
5
  export declare const ITALIC_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <polygon id=\"\u8DEF\u5F84\" points=\"6 15 9 1 6 1 6 0 13 0 13 1 10 1 7 15 10 15 10 16 3 16 3 15\"></polygon>\n </g>\n</g>\n</svg>";
6
6
  export declare const UNDERLINE_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <path d=\"M4,0 L4,7 C4,9.209139 5.790861,11 8,11 C10.209139,11 12,9.209139 12,7 L12,0 L13,0 L13,7 C13,9.76142375 10.7614237,12 8,12 C5.23857625,12 3,9.76142375 3,7 L3,0 L4,0 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z\" id=\"\u5F62\u72B6\"></path>\n </g>\n</g>\n</svg>";
7
7
  export declare const STRIKE_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <path d=\"M16,8 L16,10 L11.4648712,10 C11.8052114,10.5883467 12,11.2714257 12,12 C12,14.209139 10.209139,16 8,16 C5.790861,16 4,14.209139 4,12 C4,11.6547004 4.043753,11.3196199 4.12601749,11 L5.17070571,11 C5.06015422,11.3127789 5,11.6493646 5,12 C5,13.6568542 6.34314575,15 8,15 C9.65685425,15 11,13.6568542 11,12 C11,11.2316456 10.7111464,10.5307565 10.2361065,10 L0,10 L0,8 L5.3541756,8 C4.52375489,7.26705555 4,6.19469253 4,5 C4,2.790861 5.790861,1 8,1 C10.209139,1 12,2.790861 12,5 C12,5.72857429 11.8052114,6.41165327 11.4648712,7 L10.2361065,7 C10.7111464,6.46924351 11,5.76835444 11,5 C11,3.34314575 9.65685425,2 8,2 C6.34314575,2 5,3.34314575 5,5 C5,6.65685425 6.34314575,8 8,8 L16,8 Z M4.53512878,10 L5.76389349,10 L4.53512878,10 L4.53512878,10 Z\" id=\"\u5F62\u72B6\"></path>\n </g>\n</g>\n</svg>";
8
- export declare const COLOR_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g id=\"edit-icon/background-color\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <g>\n <path d=\"M10.4761905,8 L5.52380952,8 L4,12 L3,12 L7.5,-3.84581256e-13 L8.5,-3.84581256e-13 L13,12 L12,12 L10.4761905,8 L10.4761905,8 Z M10.0952381,7 L8,1.5 L5.9047619,7 L10.0952381,7 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z\" id=\"\u5F62\u72B6\"></path>\n </g>\n </g>\n</g>\n</svg>";
8
+ export declare const COLOR_ICON = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.05597 9.5L4.05895 12H2.94092L7.55273 0.776367H8.44716L13.059 12H11.9409L10.9439 9.5H5.05597ZM5.45477 8.5H10.5451L7.99995 2.11801L5.45477 8.5Z\" fill=\"#3B3E55\"/>\n <path d=\"M1 13H15V16H1V13Z\" fill=\"#3B3E55\"/>\n</svg>";
9
9
  export declare const BACKGROUND_COLOR_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g id=\"edit-icon/background-color\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <g>\n <path d=\"M10.4761905,8 L5.52380952,8 L4,12 L3,12 L7.5,-3.84581256e-13 L8.5,-3.84581256e-13 L13,12 L12,12 L10.4761905,8 L10.4761905,8 Z M10.0952381,7 L8,1.5 L5.9047619,7 L10.0952381,7 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z\" id=\"\u5F62\u72B6\"></path>\n </g>\n </g>\n</g>\n</svg>";
10
10
  export declare const LIST_UNORDERED_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g id=\"edit-icon/unordered-list\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <g>\n <path d=\"M5,1 L16,1 L16,2.5 L5,2.5 L5,1 Z M2,4 C0.8954305,4 0,3.1045695 0,2 C0,0.8954305 0.8954305,0 2,0 C3.1045695,0 4,0.8954305 4,2 C4,3.1045695 3.1045695,4 2,4 Z M2,3 C2.55228475,3 3,2.55228475 3,2 C3,1.44771525 2.55228475,1 2,1 C1.44771525,1 1,1.44771525 1,2 C1,2.55228475 1.44771525,3 2,3 Z M2,10 C0.8954305,10 0,9.1045695 0,8 C0,6.8954305 0.8954305,6 2,6 C3.1045695,6 4,6.8954305 4,8 C4,9.1045695 3.1045695,10 2,10 Z M2,9 C2.55228475,9 3,8.55228475 3,8 C3,7.44771525 2.55228475,7 2,7 C1.44771525,7 1,7.44771525 1,8 C1,8.55228475 1.44771525,9 2,9 Z M2,16 C0.8954305,16 0,15.1045695 0,14 C0,12.8954305 0.8954305,12 2,12 C3.1045695,12 4,12.8954305 4,14 C4,15.1045695 3.1045695,16 2,16 Z M2,15 C2.55228475,15 3,14.5522847 3,14 C3,13.4477153 2.55228475,13 2,13 C1.44771525,13 1,13.4477153 1,14 C1,14.5522847 1.44771525,15 2,15 Z M5,7 L16,7 L16,8.5 L5,8.5 L5,7 Z M5,13 L16,13 L16,14.5 L5,14.5 L5,13 Z\" id=\"\u5F62\u72B6\"></path>\n </g>\n </g>\n</g>\n</svg>";
11
11
  export declare const LIST_ORDERED_ICON = "<svg width=\"16px\" height=\"16px\" viewBox=\"0 0 16 16\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill=\"#293040\">\n <path d=\"M5,1 L16,1 L16,2.5 L5,2.5 L5,1 Z M0,0 L2,0 L2,3 L3,3 L3,4 L0,4 L0,3 L1,3 L1,1 L0,1 L0,0 Z M5,7 L16,7 L16,8.5 L5,8.5 L5,7 Z M5,13 L16,13 L16,14.5 L5,14.5 L5,13 Z M0,15 L1.75,15 C1.88807119,15 2,14.8880712 2,14.75 C2,14.6119288 1.88807119,14.5 1.75,14.5 L0,14.5 L0,13.5 L1.75,13.5 C1.88807119,13.5 2,13.3880712 2,13.25 C2,13.1119288 1.88807119,13 1.75,13 L0,13 L0,12 L1.5,12 C2.32842712,12 3,12.6715729 3,13.5 C3,13.6753177 2.96992289,13.8436105 2.91464715,14 C2.96992289,14.1563895 3,14.3246823 3,14.5 C3,15.3284271 2.32842712,16 1.5,16 L0,16 L0,15 Z M2,7.5 C2,7.35127258 1.9375,7.22627258 1.84375,7.13845444 C1.76307119,7.05596441 1.63807119,7 1.5,7 C1.22385763,7 1,7.22385763 1,7.5 L1.62630326e-19,7.5 C0.147399902,6.5 0.647399902,6 1.5,6 C2.32842712,6 3,6.67157288 3,7.5 C3,8.07312512 2.50016007,8.55650475 2.22821045,8.74661255 C1.95626083,8.93672035 1.77325955,8.99789088 1.76769962,9 L3,9 L3,10 L0,10 L1.62630326e-19,9 C0.619515577,8.77257137 1.06188822,8.55939591 1.32711792,8.36047363 C1.6371448,8.12795347 1.87259637,7.91592701 1.96143498,7.69289356 C1.98627694,7.633537 2,7.5683711 2,7.5 Z\" id=\"\u5F62\u72B6\"></path>\n </g>\n</g>\n</svg>";
package/vue-devui.es.js CHANGED
@@ -1181,11 +1181,15 @@ function debounce(func, wait, immediate) {
1181
1181
  return result2;
1182
1182
  };
1183
1183
  }
1184
+ function judgeFireIsElement(element) {
1185
+ const str = Object.prototype.toString.call(element);
1186
+ return str.includes("object") && str.includes("HTML") && str.includes("Element");
1187
+ }
1184
1188
  function getElement(element) {
1185
- if (element instanceof Element) {
1189
+ if (element instanceof Element || judgeFireIsElement(element)) {
1186
1190
  return element;
1187
1191
  }
1188
- if (element && typeof element === "object" && element.$el instanceof Element) {
1192
+ if (element && typeof element === "object" && (element.$el instanceof Element || judgeFireIsElement(element.$el))) {
1189
1193
  return element.$el;
1190
1194
  }
1191
1195
  return null;
@@ -16984,6 +16988,10 @@ const codeReviewProps = {
16984
16988
  type: Boolean,
16985
16989
  default: true
16986
16990
  },
16991
+ allowChecked: {
16992
+ type: Boolean,
16993
+ default: false
16994
+ },
16987
16995
  allowExpand: {
16988
16996
  type: Boolean,
16989
16997
  default: true
@@ -17219,6 +17227,17 @@ function updateExpandLineCount(expandDom, newExpandDom) {
17219
17227
  const newChangedNumRight = parseInt((curMatches == null ? void 0 : curMatches[4]) || "") + parseInt((newMatches == null ? void 0 : newMatches[4]) || "");
17220
17228
  expandDom.children[1].children[0].innerText = `@@ -${(newMatches == null ? void 0 : newMatches[1]) || 0},${newChangedNumLeft} +${(newMatches == null ? void 0 : newMatches[3]) || 0},${newChangedNumRight} @@`;
17221
17229
  }
17230
+ function addClassToDiffCode(codeStrArr, theClassName) {
17231
+ if (!codeStrArr || codeStrArr.length === 0) {
17232
+ return null;
17233
+ }
17234
+ const newArray = codeStrArr.map((item) => {
17235
+ const classNames = item == null ? void 0 : item.match(/class="([^"]+)"/)[1].split(" ");
17236
+ classNames.push(theClassName);
17237
+ return item.replace(/class="([^"]+)"/, `class="${classNames.join(" ")}"`);
17238
+ });
17239
+ return newArray;
17240
+ }
17222
17241
  function parseDiffCode(container, code, outputFormat, isAddCode = false) {
17223
17242
  var _a;
17224
17243
  const diff2HtmlUi = new Diff2HtmlUI(container, code, {
@@ -17226,6 +17245,7 @@ function parseDiffCode(container, code, outputFormat, isAddCode = false) {
17226
17245
  matching: "lines",
17227
17246
  outputFormat,
17228
17247
  highlight: true,
17248
+ diffStyle: "char",
17229
17249
  rawTemplates: TemplateMap[outputFormat]
17230
17250
  });
17231
17251
  if (outputFormat === "side-by-side") {
@@ -17238,8 +17258,10 @@ function parseDiffCode(container, code, outputFormat, isAddCode = false) {
17238
17258
  let newTrStr = "";
17239
17259
  const offset2 = trListLength / 2;
17240
17260
  for (let i = 0; i < trListLength / 2; i++) {
17241
- const leftTdList = trList[i].match(TableTdReg);
17242
- const rightTdList = trList[i + offset2].match(TableTdReg);
17261
+ let leftTdList = trList[i].match(TableTdReg);
17262
+ let rightTdList = trList[i + offset2].match(TableTdReg);
17263
+ leftTdList = addClassToDiffCode(leftTdList, "d-code-left");
17264
+ rightTdList = addClassToDiffCode(rightTdList, "d-code-right");
17243
17265
  newTrStr += `<tr>${leftTdList == null ? void 0 : leftTdList.join("")}${rightTdList == null ? void 0 : rightTdList.join("")}</tr>`;
17244
17266
  }
17245
17267
  const tbodyAttr = ((_a = diffHtmlStr.match(TableTbodyAttrReg)) == null ? void 0 : _a[1]) || "";
@@ -17716,13 +17738,24 @@ function useCodeReviewFold(props, ctx2) {
17716
17738
  return { isFold, toggleFold };
17717
17739
  }
17718
17740
  function useCodeReviewComment(reviewContentRef, props, ctx2) {
17719
- const { outputFormat, allowComment } = toRefs(props);
17741
+ const { outputFormat, allowComment, allowChecked } = toRefs(props);
17720
17742
  const ns2 = useNamespace$1("code-review");
17721
17743
  const commentLeft = ref(-100);
17722
17744
  const commentTop = ref(-100);
17723
17745
  let currentLeftLineNumber = -1;
17724
17746
  let currentRightLineNumber = -1;
17725
17747
  let lastLineNumberContainer;
17748
+ let checkedLineNumberContainer = [];
17749
+ let isShift = false;
17750
+ let currentLeftLineNumbers = [];
17751
+ let currentRightLineNumbers = [];
17752
+ let checkedLineCodeString = {};
17753
+ watch(() => outputFormat.value, () => {
17754
+ checkedLineNumberContainer = [];
17755
+ currentLeftLineNumbers = [];
17756
+ currentRightLineNumbers = [];
17757
+ checkedLineCodeString = [];
17758
+ });
17726
17759
  const resetLeftTop = () => {
17727
17760
  commentLeft.value = -100;
17728
17761
  commentTop.value = -100;
@@ -17805,6 +17838,141 @@ function useCodeReviewComment(reviewContentRef, props, ctx2) {
17805
17838
  resetLeftTop();
17806
17839
  }
17807
17840
  };
17841
+ function commentKeyDown(e) {
17842
+ switch (e.key) {
17843
+ case "Shift":
17844
+ isShift = true;
17845
+ break;
17846
+ }
17847
+ }
17848
+ function commentKeyUp(e) {
17849
+ e.preventDefault();
17850
+ switch (e.key) {
17851
+ case "Shift":
17852
+ isShift = false;
17853
+ break;
17854
+ }
17855
+ }
17856
+ const unCommentKeyDown = () => {
17857
+ document.removeEventListener("keydown", commentKeyDown);
17858
+ document.removeEventListener("keyup", commentKeyUp);
17859
+ };
17860
+ const onCommentKeyDown = () => {
17861
+ document.addEventListener("keydown", commentKeyDown);
17862
+ document.addEventListener("keyup", commentKeyUp);
17863
+ };
17864
+ const getLineNumbers = (currentNumber, currentNumbers, e) => {
17865
+ if (currentNumber === -1) {
17866
+ return currentNumbers;
17867
+ }
17868
+ if (currentNumbers.length === 0) {
17869
+ return [currentNumber];
17870
+ }
17871
+ const numbers = [...currentNumbers];
17872
+ let max = Math.max(...numbers);
17873
+ const min = Math.min(...numbers);
17874
+ if (currentNumber > max) {
17875
+ max = currentNumber;
17876
+ }
17877
+ return Array.from({ length: max - min + 1 }, (_, i) => i + min);
17878
+ };
17879
+ const getCommonClassAndJudge = (side) => {
17880
+ const lineClassName = side === "line-by-line" ? ".d2h-code-linenumber" : ".d2h-code-side-linenumber";
17881
+ const linenumberDom = reviewContentRef.value.querySelectorAll(lineClassName);
17882
+ const checkedLine = [currentLeftLineNumbers, currentRightLineNumbers];
17883
+ return {
17884
+ linenumberDom,
17885
+ checkedLine
17886
+ };
17887
+ };
17888
+ const addCommentCheckedClass = (Dom) => {
17889
+ !Dom.classList.contains("comment-checked") && Dom.classList.add("comment-checked");
17890
+ };
17891
+ const addCommentClassSingle = (side) => {
17892
+ const { linenumberDom, checkedLine } = getCommonClassAndJudge(side);
17893
+ const checkedCodeContent = [];
17894
+ for (let i = 0; i < linenumberDom.length; i++) {
17895
+ const lineNumberDomLeft = linenumberDom[i].children[0];
17896
+ const lineNumberDomRight = linenumberDom[i].children[1];
17897
+ if (lineNumberDomLeft || lineNumberDomRight) {
17898
+ const codeLineNumberLeft = parseInt(lineNumberDomLeft == null ? void 0 : lineNumberDomLeft.innerText);
17899
+ const codeLineNumberRight = parseInt(lineNumberDomRight == null ? void 0 : lineNumberDomRight.innerText);
17900
+ if (checkedLine[0].includes(codeLineNumberLeft) || checkedLine[1].includes(codeLineNumberRight)) {
17901
+ checkedLineNumberContainer.push(linenumberDom[i]);
17902
+ const codeNode = linenumberDom[i].nextSibling.nodeName === "#text" ? linenumberDom[i].nextSibling.nextSibling : linenumberDom[i].nextSibling;
17903
+ checkedCodeContent.push(codeNode == null ? void 0 : codeNode.innerText);
17904
+ addCommentCheckedClass(linenumberDom[i]);
17905
+ addCommentCheckedClass(codeNode);
17906
+ }
17907
+ }
17908
+ }
17909
+ checkedLineCodeString = checkedCodeContent;
17910
+ };
17911
+ const addCommentClassDouble = (side) => {
17912
+ var _a;
17913
+ const { linenumberDom, checkedLine } = getCommonClassAndJudge(side);
17914
+ const checkedCodeContentLeft = [];
17915
+ const checkedCodeContentRight = [];
17916
+ function checkedFunc(Dom) {
17917
+ checkedLineNumberContainer.push(Dom);
17918
+ const codeNode = Dom.nextSibling.nodeName === "#text" ? Dom.nextSibling.nextSibling : Dom.nextSibling;
17919
+ addCommentCheckedClass(Dom);
17920
+ addCommentCheckedClass(codeNode);
17921
+ return codeNode == null ? void 0 : codeNode.innerText;
17922
+ }
17923
+ for (let i = 0; i < linenumberDom.length; i++) {
17924
+ const codeLineNumber = parseInt((_a = linenumberDom[i]) == null ? void 0 : _a.innerHTML);
17925
+ if (linenumberDom[i].classList.contains("d-code-left") && checkedLine[0].includes(codeLineNumber)) {
17926
+ const lineNumText = checkedFunc(linenumberDom[i]);
17927
+ checkedCodeContentLeft.push(lineNumText);
17928
+ continue;
17929
+ }
17930
+ if (linenumberDom[i].classList.contains("d-code-right") && checkedLine[1].includes(codeLineNumber)) {
17931
+ const lineNumText = checkedFunc(linenumberDom[i]);
17932
+ checkedCodeContentRight.push(lineNumText);
17933
+ }
17934
+ }
17935
+ checkedLineCodeString = { leftCode: checkedCodeContentLeft, rightCode: checkedCodeContentRight };
17936
+ };
17937
+ const updateCheckedLineClass = () => {
17938
+ if (outputFormat.value === "line-by-line") {
17939
+ addCommentClassSingle(outputFormat.value);
17940
+ return;
17941
+ }
17942
+ addCommentClassDouble(outputFormat.value);
17943
+ };
17944
+ const resetCommentClass = () => {
17945
+ for (let i = 0; i < checkedLineNumberContainer.length; i++) {
17946
+ checkedLineNumberContainer[i].classList.remove("comment-checked");
17947
+ const codeNode = checkedLineNumberContainer[i].nextSibling.nodeName === "#text" ? checkedLineNumberContainer[i].nextSibling.nextSibling : checkedLineNumberContainer[i].nextSibling;
17948
+ codeNode == null ? void 0 : codeNode.classList.remove("comment-checked");
17949
+ }
17950
+ checkedLineNumberContainer = [];
17951
+ };
17952
+ const commentShiftClick = (e) => {
17953
+ currentLeftLineNumbers = currentLeftLineNumber === -1 ? currentLeftLineNumbers : getLineNumbers(currentLeftLineNumber, currentLeftLineNumbers);
17954
+ currentRightLineNumbers = currentRightLineNumber === -1 ? currentRightLineNumbers : getLineNumbers(currentRightLineNumber, currentRightLineNumbers);
17955
+ updateCheckedLineClass();
17956
+ };
17957
+ const commentClick = (e) => {
17958
+ let obj = { left: currentLeftLineNumber, right: currentRightLineNumber };
17959
+ if (currentLeftLineNumbers.length >= 1 || currentRightLineNumbers.length >= 1 && allowChecked.value) {
17960
+ const maxCurrentLeftLineNumber = currentLeftLineNumbers[currentLeftLineNumbers.length - 1];
17961
+ const maxCurrentRightLineNumber = currentRightLineNumbers[currentRightLineNumbers.length - 1];
17962
+ if (maxCurrentLeftLineNumber === currentLeftLineNumber || maxCurrentRightLineNumber === currentRightLineNumber) {
17963
+ obj = { left: currentLeftLineNumber, right: currentRightLineNumber, details: {
17964
+ lefts: currentLeftLineNumbers,
17965
+ rights: currentRightLineNumbers,
17966
+ codes: checkedLineCodeString
17967
+ } };
17968
+ } else {
17969
+ currentLeftLineNumbers = [];
17970
+ currentRightLineNumbers = [];
17971
+ resetCommentClass();
17972
+ }
17973
+ }
17974
+ ctx2.emit("addComment", obj);
17975
+ };
17808
17976
  const onCommentIconClick = (e) => {
17809
17977
  if (e) {
17810
17978
  const composedPath = e.composedPath();
@@ -17818,9 +17986,11 @@ function useCodeReviewComment(reviewContentRef, props, ctx2) {
17818
17986
  return;
17819
17987
  }
17820
17988
  }
17821
- if (outputFormat.value === "line-by-line")
17822
- ;
17823
- ctx2.emit("addComment", { left: currentLeftLineNumber, right: currentRightLineNumber });
17989
+ if (isShift && allowChecked.value) {
17990
+ commentShiftClick();
17991
+ return;
17992
+ }
17993
+ commentClick();
17824
17994
  };
17825
17995
  const insertComment = (lineNumber, lineSide, commentDom) => {
17826
17996
  if (outputFormat.value === "line-by-line") {
@@ -17869,8 +18039,11 @@ function useCodeReviewComment(reviewContentRef, props, ctx2) {
17869
18039
  commentLeft,
17870
18040
  commentTop,
17871
18041
  mouseEvent,
18042
+ updateCheckedLineClass,
17872
18043
  onCommentMouseLeave,
17873
18044
  onCommentIconClick,
18045
+ onCommentKeyDown,
18046
+ unCommentKeyDown,
17874
18047
  insertComment,
17875
18048
  removeComment
17876
18049
  };
@@ -17901,15 +18074,23 @@ var CodeReview = defineComponent({
17901
18074
  mouseEvent,
17902
18075
  onCommentMouseLeave,
17903
18076
  onCommentIconClick,
18077
+ onCommentKeyDown,
18078
+ unCommentKeyDown,
17904
18079
  insertComment,
17905
- removeComment
18080
+ removeComment,
18081
+ updateCheckedLineClass
17906
18082
  } = useCodeReviewComment(reviewContentRef, props, ctx2);
17907
18083
  onMounted(() => {
17908
18084
  ctx2.emit("afterViewInit", {
17909
18085
  toggleFold,
17910
18086
  insertComment,
17911
- removeComment
18087
+ removeComment,
18088
+ updateCheckedLineClass
17912
18089
  });
18090
+ onCommentKeyDown();
18091
+ });
18092
+ onBeforeUnmount(() => {
18093
+ unCommentKeyDown();
17913
18094
  });
17914
18095
  provide(CodeReviewInjectionKey, {
17915
18096
  diffType,
@@ -34789,14 +34970,9 @@ const STRIKE_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
34789
34970
  </g>
34790
34971
  </g>
34791
34972
  </svg>`;
34792
- const COLOR_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
34793
- <g id="edit-icon/background-color" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
34794
- <g fill="#293040">
34795
- <g>
34796
- <path d="M10.4761905,8 L5.52380952,8 L4,12 L3,12 L7.5,-3.84581256e-13 L8.5,-3.84581256e-13 L13,12 L12,12 L10.4761905,8 L10.4761905,8 Z M10.0952381,7 L8,1.5 L5.9047619,7 L10.0952381,7 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z" id="\u5F62\u72B6"></path>
34797
- </g>
34798
- </g>
34799
- </g>
34973
+ const COLOR_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
34974
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.05597 9.5L4.05895 12H2.94092L7.55273 0.776367H8.44716L13.059 12H11.9409L10.9439 9.5H5.05597ZM5.45477 8.5H10.5451L7.99995 2.11801L5.45477 8.5Z" fill="#3B3E55"/>
34975
+ <path d="M1 13H15V16H1V13Z" fill="#3B3E55"/>
34800
34976
  </svg>`;
34801
34977
  const LIST_UNORDERED_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
34802
34978
  <g id="edit-icon/unordered-list" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
@@ -35067,7 +35243,8 @@ ToolBarHandler.code = (editor) => {
35067
35243
  }
35068
35244
  };
35069
35245
  ToolBarHandler.table = (editor) => {
35070
- const table2 = `| | | |
35246
+ const table2 = `
35247
+ | | | |
35071
35248
  |--|--|--|
35072
35249
  | | | |`;
35073
35250
  editor.replaceSelection(table2);
@@ -52380,8 +52557,8 @@ function useTree(tree2, plugins = [], context2) {
52380
52557
  const ns = useNamespace$1("tree");
52381
52558
  function useTreeNode(data) {
52382
52559
  const nodeClass = computed(() => {
52383
- var _a;
52384
- return [ns.e("node"), ((_a = data.value) == null ? void 0 : _a.expanded) && ns.em("node", "open")];
52560
+ var _a, _b;
52561
+ return [ns.e("node"), ((_a = data.value) == null ? void 0 : _a.expanded) && ns.em("node", "open"), ((_b = data.value) == null ? void 0 : _b.selected) && "active"];
52385
52562
  });
52386
52563
  const nodeStyle = computed(() => {
52387
52564
  var _a;
@@ -53950,7 +54127,7 @@ const installs = [
53950
54127
  VirtualListInstall
53951
54128
  ];
53952
54129
  var vueDevui = {
53953
- version: "1.6.20",
54130
+ version: "1.6.22",
53954
54131
  install(app) {
53955
54132
  installs.forEach((p) => app.use(p));
53956
54133
  }