vue-devui 1.6.20 → 1.6.21
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/breadcrumb/index.es.js +6 -2
- package/breadcrumb/index.umd.js +2 -2
- package/category-search/index.es.js +6 -2
- package/category-search/index.umd.js +17 -17
- package/code-review/index.es.js +185 -9
- package/code-review/index.umd.js +27 -27
- package/code-review/style.css +1 -1
- package/data-grid/index.es.js +6 -2
- package/data-grid/index.umd.js +11 -11
- package/dropdown/index.es.js +6 -2
- package/dropdown/index.umd.js +2 -2
- package/editor-md/index.es.js +6 -2
- package/editor-md/index.umd.js +35 -35
- package/global.d.ts +0 -1
- package/package.json +1 -1
- package/pagination/index.es.js +6 -2
- package/pagination/index.umd.js +12 -12
- package/style.css +1 -1
- package/table/index.es.js +6 -2
- package/table/index.umd.js +11 -11
- package/tree/index.es.js +2 -2
- package/tree/index.umd.js +1 -1
- package/types/code-review/src/code-review-types.d.ts +4 -0
- package/types/code-review/src/composables/use-code-review-comment.d.ts +3 -0
- package/vue-devui.es.js +193 -13
- package/vue-devui.umd.js +82 -82
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
|
|
@@ -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
|
};
|
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, {
|
|
@@ -17238,8 +17257,10 @@ function parseDiffCode(container, code, outputFormat, isAddCode = false) {
|
|
|
17238
17257
|
let newTrStr = "";
|
|
17239
17258
|
const offset2 = trListLength / 2;
|
|
17240
17259
|
for (let i = 0; i < trListLength / 2; i++) {
|
|
17241
|
-
|
|
17242
|
-
|
|
17260
|
+
let leftTdList = trList[i].match(TableTdReg);
|
|
17261
|
+
let rightTdList = trList[i + offset2].match(TableTdReg);
|
|
17262
|
+
leftTdList = addClassToDiffCode(leftTdList, "d-code-left");
|
|
17263
|
+
rightTdList = addClassToDiffCode(rightTdList, "d-code-right");
|
|
17243
17264
|
newTrStr += `<tr>${leftTdList == null ? void 0 : leftTdList.join("")}${rightTdList == null ? void 0 : rightTdList.join("")}</tr>`;
|
|
17244
17265
|
}
|
|
17245
17266
|
const tbodyAttr = ((_a = diffHtmlStr.match(TableTbodyAttrReg)) == null ? void 0 : _a[1]) || "";
|
|
@@ -17716,13 +17737,24 @@ function useCodeReviewFold(props, ctx2) {
|
|
|
17716
17737
|
return { isFold, toggleFold };
|
|
17717
17738
|
}
|
|
17718
17739
|
function useCodeReviewComment(reviewContentRef, props, ctx2) {
|
|
17719
|
-
const { outputFormat, allowComment } = toRefs(props);
|
|
17740
|
+
const { outputFormat, allowComment, allowChecked } = toRefs(props);
|
|
17720
17741
|
const ns2 = useNamespace$1("code-review");
|
|
17721
17742
|
const commentLeft = ref(-100);
|
|
17722
17743
|
const commentTop = ref(-100);
|
|
17723
17744
|
let currentLeftLineNumber = -1;
|
|
17724
17745
|
let currentRightLineNumber = -1;
|
|
17725
17746
|
let lastLineNumberContainer;
|
|
17747
|
+
let checkedLineNumberContainer = [];
|
|
17748
|
+
let isShift = false;
|
|
17749
|
+
let currentLeftLineNumbers = [];
|
|
17750
|
+
let currentRightLineNumbers = [];
|
|
17751
|
+
let checkedLineCodeString = {};
|
|
17752
|
+
watch(() => outputFormat.value, () => {
|
|
17753
|
+
checkedLineNumberContainer = [];
|
|
17754
|
+
currentLeftLineNumbers = [];
|
|
17755
|
+
currentRightLineNumbers = [];
|
|
17756
|
+
checkedLineCodeString = [];
|
|
17757
|
+
});
|
|
17726
17758
|
const resetLeftTop = () => {
|
|
17727
17759
|
commentLeft.value = -100;
|
|
17728
17760
|
commentTop.value = -100;
|
|
@@ -17805,6 +17837,141 @@ function useCodeReviewComment(reviewContentRef, props, ctx2) {
|
|
|
17805
17837
|
resetLeftTop();
|
|
17806
17838
|
}
|
|
17807
17839
|
};
|
|
17840
|
+
function commentKeyDown(e) {
|
|
17841
|
+
switch (e.key) {
|
|
17842
|
+
case "Shift":
|
|
17843
|
+
isShift = true;
|
|
17844
|
+
break;
|
|
17845
|
+
}
|
|
17846
|
+
}
|
|
17847
|
+
function commentKeyUp(e) {
|
|
17848
|
+
e.preventDefault();
|
|
17849
|
+
switch (e.key) {
|
|
17850
|
+
case "Shift":
|
|
17851
|
+
isShift = false;
|
|
17852
|
+
break;
|
|
17853
|
+
}
|
|
17854
|
+
}
|
|
17855
|
+
const unCommentKeyDown = () => {
|
|
17856
|
+
document.removeEventListener("keydown", commentKeyDown);
|
|
17857
|
+
document.removeEventListener("keyup", commentKeyUp);
|
|
17858
|
+
};
|
|
17859
|
+
const onCommentKeyDown = () => {
|
|
17860
|
+
document.addEventListener("keydown", commentKeyDown);
|
|
17861
|
+
document.addEventListener("keyup", commentKeyUp);
|
|
17862
|
+
};
|
|
17863
|
+
const getLineNumbers = (currentNumber, currentNumbers, e) => {
|
|
17864
|
+
if (currentNumber === -1) {
|
|
17865
|
+
return currentNumbers;
|
|
17866
|
+
}
|
|
17867
|
+
if (currentNumbers.length === 0) {
|
|
17868
|
+
return [currentNumber];
|
|
17869
|
+
}
|
|
17870
|
+
const numbers = [...currentNumbers];
|
|
17871
|
+
let max = Math.max(...numbers);
|
|
17872
|
+
const min = Math.min(...numbers);
|
|
17873
|
+
if (currentNumber > max) {
|
|
17874
|
+
max = currentNumber;
|
|
17875
|
+
}
|
|
17876
|
+
return Array.from({ length: max - min + 1 }, (_, i) => i + min);
|
|
17877
|
+
};
|
|
17878
|
+
const getCommonClassAndJudge = (side) => {
|
|
17879
|
+
const lineClassName = side === "line-by-line" ? ".d2h-code-linenumber" : ".d2h-code-side-linenumber";
|
|
17880
|
+
const linenumberDom = reviewContentRef.value.querySelectorAll(lineClassName);
|
|
17881
|
+
const checkedLine = [currentLeftLineNumbers, currentRightLineNumbers];
|
|
17882
|
+
return {
|
|
17883
|
+
linenumberDom,
|
|
17884
|
+
checkedLine
|
|
17885
|
+
};
|
|
17886
|
+
};
|
|
17887
|
+
const addCommentCheckedClass = (Dom) => {
|
|
17888
|
+
!Dom.classList.contains("comment-checked") && Dom.classList.add("comment-checked");
|
|
17889
|
+
};
|
|
17890
|
+
const addCommentClassSingle = (side) => {
|
|
17891
|
+
const { linenumberDom, checkedLine } = getCommonClassAndJudge(side);
|
|
17892
|
+
const checkedCodeContent = [];
|
|
17893
|
+
for (let i = 0; i < linenumberDom.length; i++) {
|
|
17894
|
+
const lineNumberDomLeft = linenumberDom[i].children[0];
|
|
17895
|
+
const lineNumberDomRight = linenumberDom[i].children[1];
|
|
17896
|
+
if (lineNumberDomLeft || lineNumberDomRight) {
|
|
17897
|
+
const codeLineNumberLeft = parseInt(lineNumberDomLeft == null ? void 0 : lineNumberDomLeft.innerText);
|
|
17898
|
+
const codeLineNumberRight = parseInt(lineNumberDomRight == null ? void 0 : lineNumberDomRight.innerText);
|
|
17899
|
+
if (checkedLine[0].includes(codeLineNumberLeft) || checkedLine[1].includes(codeLineNumberRight)) {
|
|
17900
|
+
checkedLineNumberContainer.push(linenumberDom[i]);
|
|
17901
|
+
const codeNode = linenumberDom[i].nextSibling.nodeName === "#text" ? linenumberDom[i].nextSibling.nextSibling : linenumberDom[i].nextSibling;
|
|
17902
|
+
checkedCodeContent.push(codeNode == null ? void 0 : codeNode.innerText);
|
|
17903
|
+
addCommentCheckedClass(linenumberDom[i]);
|
|
17904
|
+
addCommentCheckedClass(codeNode);
|
|
17905
|
+
}
|
|
17906
|
+
}
|
|
17907
|
+
}
|
|
17908
|
+
checkedLineCodeString = checkedCodeContent;
|
|
17909
|
+
};
|
|
17910
|
+
const addCommentClassDouble = (side) => {
|
|
17911
|
+
var _a;
|
|
17912
|
+
const { linenumberDom, checkedLine } = getCommonClassAndJudge(side);
|
|
17913
|
+
const checkedCodeContentLeft = [];
|
|
17914
|
+
const checkedCodeContentRight = [];
|
|
17915
|
+
function checkedFunc(Dom) {
|
|
17916
|
+
checkedLineNumberContainer.push(Dom);
|
|
17917
|
+
const codeNode = Dom.nextSibling.nodeName === "#text" ? Dom.nextSibling.nextSibling : Dom.nextSibling;
|
|
17918
|
+
addCommentCheckedClass(Dom);
|
|
17919
|
+
addCommentCheckedClass(codeNode);
|
|
17920
|
+
return codeNode == null ? void 0 : codeNode.innerText;
|
|
17921
|
+
}
|
|
17922
|
+
for (let i = 0; i < linenumberDom.length; i++) {
|
|
17923
|
+
const codeLineNumber = parseInt((_a = linenumberDom[i]) == null ? void 0 : _a.innerHTML);
|
|
17924
|
+
if (linenumberDom[i].classList.contains("d-code-left") && checkedLine[0].includes(codeLineNumber)) {
|
|
17925
|
+
const lineNumText = checkedFunc(linenumberDom[i]);
|
|
17926
|
+
checkedCodeContentLeft.push(lineNumText);
|
|
17927
|
+
continue;
|
|
17928
|
+
}
|
|
17929
|
+
if (linenumberDom[i].classList.contains("d-code-right") && checkedLine[1].includes(codeLineNumber)) {
|
|
17930
|
+
const lineNumText = checkedFunc(linenumberDom[i]);
|
|
17931
|
+
checkedCodeContentRight.push(lineNumText);
|
|
17932
|
+
}
|
|
17933
|
+
}
|
|
17934
|
+
checkedLineCodeString = { leftCode: checkedCodeContentLeft, rightCode: checkedCodeContentRight };
|
|
17935
|
+
};
|
|
17936
|
+
const updateCheckedLineClass = () => {
|
|
17937
|
+
if (outputFormat.value === "line-by-line") {
|
|
17938
|
+
addCommentClassSingle(outputFormat.value);
|
|
17939
|
+
return;
|
|
17940
|
+
}
|
|
17941
|
+
addCommentClassDouble(outputFormat.value);
|
|
17942
|
+
};
|
|
17943
|
+
const resetCommentClass = () => {
|
|
17944
|
+
for (let i = 0; i < checkedLineNumberContainer.length; i++) {
|
|
17945
|
+
checkedLineNumberContainer[i].classList.remove("comment-checked");
|
|
17946
|
+
const codeNode = checkedLineNumberContainer[i].nextSibling.nodeName === "#text" ? checkedLineNumberContainer[i].nextSibling.nextSibling : checkedLineNumberContainer[i].nextSibling;
|
|
17947
|
+
codeNode == null ? void 0 : codeNode.classList.remove("comment-checked");
|
|
17948
|
+
}
|
|
17949
|
+
checkedLineNumberContainer = [];
|
|
17950
|
+
};
|
|
17951
|
+
const commentShiftClick = (e) => {
|
|
17952
|
+
currentLeftLineNumbers = currentLeftLineNumber === -1 ? currentLeftLineNumbers : getLineNumbers(currentLeftLineNumber, currentLeftLineNumbers);
|
|
17953
|
+
currentRightLineNumbers = currentRightLineNumber === -1 ? currentRightLineNumbers : getLineNumbers(currentRightLineNumber, currentRightLineNumbers);
|
|
17954
|
+
updateCheckedLineClass();
|
|
17955
|
+
};
|
|
17956
|
+
const commentClick = (e) => {
|
|
17957
|
+
let obj = { left: currentLeftLineNumber, right: currentRightLineNumber };
|
|
17958
|
+
if (currentLeftLineNumbers.length >= 1 || currentRightLineNumbers.length >= 1 && allowChecked.value) {
|
|
17959
|
+
const maxCurrentLeftLineNumber = currentLeftLineNumbers[currentLeftLineNumbers.length - 1];
|
|
17960
|
+
const maxCurrentRightLineNumber = currentRightLineNumbers[currentRightLineNumbers.length - 1];
|
|
17961
|
+
if (maxCurrentLeftLineNumber === currentLeftLineNumber || maxCurrentRightLineNumber === currentRightLineNumber) {
|
|
17962
|
+
obj = { left: currentLeftLineNumber, right: currentRightLineNumber, details: {
|
|
17963
|
+
lefts: currentLeftLineNumbers,
|
|
17964
|
+
rights: currentRightLineNumbers,
|
|
17965
|
+
codes: checkedLineCodeString
|
|
17966
|
+
} };
|
|
17967
|
+
} else {
|
|
17968
|
+
currentLeftLineNumbers = [];
|
|
17969
|
+
currentRightLineNumbers = [];
|
|
17970
|
+
resetCommentClass();
|
|
17971
|
+
}
|
|
17972
|
+
}
|
|
17973
|
+
ctx2.emit("addComment", obj);
|
|
17974
|
+
};
|
|
17808
17975
|
const onCommentIconClick = (e) => {
|
|
17809
17976
|
if (e) {
|
|
17810
17977
|
const composedPath = e.composedPath();
|
|
@@ -17818,9 +17985,11 @@ function useCodeReviewComment(reviewContentRef, props, ctx2) {
|
|
|
17818
17985
|
return;
|
|
17819
17986
|
}
|
|
17820
17987
|
}
|
|
17821
|
-
if (
|
|
17822
|
-
;
|
|
17823
|
-
|
|
17988
|
+
if (isShift && allowChecked.value) {
|
|
17989
|
+
commentShiftClick();
|
|
17990
|
+
return;
|
|
17991
|
+
}
|
|
17992
|
+
commentClick();
|
|
17824
17993
|
};
|
|
17825
17994
|
const insertComment = (lineNumber, lineSide, commentDom) => {
|
|
17826
17995
|
if (outputFormat.value === "line-by-line") {
|
|
@@ -17869,8 +18038,11 @@ function useCodeReviewComment(reviewContentRef, props, ctx2) {
|
|
|
17869
18038
|
commentLeft,
|
|
17870
18039
|
commentTop,
|
|
17871
18040
|
mouseEvent,
|
|
18041
|
+
updateCheckedLineClass,
|
|
17872
18042
|
onCommentMouseLeave,
|
|
17873
18043
|
onCommentIconClick,
|
|
18044
|
+
onCommentKeyDown,
|
|
18045
|
+
unCommentKeyDown,
|
|
17874
18046
|
insertComment,
|
|
17875
18047
|
removeComment
|
|
17876
18048
|
};
|
|
@@ -17901,15 +18073,23 @@ var CodeReview = defineComponent({
|
|
|
17901
18073
|
mouseEvent,
|
|
17902
18074
|
onCommentMouseLeave,
|
|
17903
18075
|
onCommentIconClick,
|
|
18076
|
+
onCommentKeyDown,
|
|
18077
|
+
unCommentKeyDown,
|
|
17904
18078
|
insertComment,
|
|
17905
|
-
removeComment
|
|
18079
|
+
removeComment,
|
|
18080
|
+
updateCheckedLineClass
|
|
17906
18081
|
} = useCodeReviewComment(reviewContentRef, props, ctx2);
|
|
17907
18082
|
onMounted(() => {
|
|
17908
18083
|
ctx2.emit("afterViewInit", {
|
|
17909
18084
|
toggleFold,
|
|
17910
18085
|
insertComment,
|
|
17911
|
-
removeComment
|
|
18086
|
+
removeComment,
|
|
18087
|
+
updateCheckedLineClass
|
|
17912
18088
|
});
|
|
18089
|
+
onCommentKeyDown();
|
|
18090
|
+
});
|
|
18091
|
+
onBeforeUnmount(() => {
|
|
18092
|
+
unCommentKeyDown();
|
|
17913
18093
|
});
|
|
17914
18094
|
provide(CodeReviewInjectionKey, {
|
|
17915
18095
|
diffType,
|
|
@@ -52380,8 +52560,8 @@ function useTree(tree2, plugins = [], context2) {
|
|
|
52380
52560
|
const ns = useNamespace$1("tree");
|
|
52381
52561
|
function useTreeNode(data) {
|
|
52382
52562
|
const nodeClass = computed(() => {
|
|
52383
|
-
var _a;
|
|
52384
|
-
return [ns.e("node"), ((_a = data.value) == null ? void 0 : _a.expanded) && ns.em("node", "open")];
|
|
52563
|
+
var _a, _b;
|
|
52564
|
+
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
52565
|
});
|
|
52386
52566
|
const nodeStyle = computed(() => {
|
|
52387
52567
|
var _a;
|
|
@@ -53950,7 +54130,7 @@ const installs = [
|
|
|
53950
54130
|
VirtualListInstall
|
|
53951
54131
|
];
|
|
53952
54132
|
var vueDevui = {
|
|
53953
|
-
version: "1.6.
|
|
54133
|
+
version: "1.6.21",
|
|
53954
54134
|
install(app) {
|
|
53955
54135
|
installs.forEach((p) => app.use(p));
|
|
53956
54136
|
}
|