vue-devui 1.5.13 → 1.5.15-feat.1
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/auto-complete/index.es.js +3 -0
- package/auto-complete/index.umd.js +1 -1
- package/breadcrumb/index.es.js +3 -0
- package/breadcrumb/index.umd.js +1 -1
- package/checkbox/index.es.js +3 -0
- package/checkbox/index.umd.js +1 -1
- package/code-review/index.es.js +39 -14
- package/code-review/index.umd.js +14 -14
- package/date-picker-pro/index.es.js +3 -0
- package/date-picker-pro/index.umd.js +8 -8
- package/dropdown/index.es.js +3 -0
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +5 -1
- package/editable-select/index.umd.js +7 -7
- package/editor-md/index.es.js +1428 -1213
- package/editor-md/index.umd.js +45 -45
- package/editor-md/style.css +1 -1
- package/form/index.es.js +3 -0
- package/form/index.umd.js +1 -1
- package/git-graph/index.es.js +3 -0
- package/git-graph/index.umd.js +12 -12
- package/input/index.es.js +3 -0
- package/input/index.umd.js +6 -6
- package/input-number/index.es.js +3 -0
- package/input-number/index.umd.js +1 -1
- package/mention/index.es.js +3 -0
- package/mention/index.umd.js +1 -1
- package/menu/index.es.js +6 -2
- package/menu/index.umd.js +1 -1
- package/modal/index.es.js +3 -0
- package/modal/index.umd.js +1 -1
- package/nuxt/components/checkbox.js +3 -0
- package/overlay/index.es.js +3 -0
- package/overlay/index.umd.js +1 -1
- package/package.json +1 -1
- package/pagination/index.es.js +156 -292
- package/pagination/index.umd.js +18 -18
- package/pagination/style.css +1 -1
- package/popover/index.es.js +3 -0
- package/popover/index.umd.js +6 -6
- package/radio/index.es.js +3 -0
- package/radio/index.umd.js +1 -1
- package/search/index.es.js +3 -0
- package/search/index.umd.js +1 -1
- package/select/index.es.js +120 -265
- package/select/index.umd.js +17 -17
- package/select/style.css +1 -1
- package/splitter/index.es.js +14 -6
- package/splitter/index.umd.js +4 -4
- package/splitter/style.css +1 -1
- package/style.css +1 -1
- package/switch/index.es.js +3 -0
- package/switch/index.umd.js +1 -1
- package/table/index.es.js +14 -6
- package/table/index.umd.js +2 -2
- package/table/style.css +1 -1
- package/textarea/index.es.js +3 -0
- package/textarea/index.umd.js +1 -1
- package/time-picker/index.es.js +3 -0
- package/time-picker/index.umd.js +1 -1
- package/time-select/index.es.js +120 -265
- package/time-select/index.umd.js +18 -18
- package/time-select/style.css +1 -1
- package/tooltip/index.es.js +14 -6
- package/tooltip/index.umd.js +9 -9
- package/tooltip/style.css +1 -1
- package/tree/index.es.js +3 -0
- package/tree/index.umd.js +1 -1
- package/types/code-review/src/utils.d.ts +3 -3
- package/types/editable-select/src/editable-select.d.ts +1 -1
- package/types/editor-md/index.d.ts +1 -0
- package/types/editor-md/src/components/md-render.d.ts +1 -1
- package/types/editor-md/src/composables/use-editor-md.d.ts +3 -0
- package/types/editor-md/src/editor-md-types.d.ts +9 -1
- package/types/editor-md/src/editor-md.d.ts +6 -3
- package/types/editor-md/src/plugins/checkbox.d.ts +1 -0
- package/types/menu/src/menu-types.d.ts +4 -0
- package/types/menu/src/menu.d.ts +9 -0
- package/types/pagination/src/pagination-types.d.ts +4 -13
- package/types/pagination/src/pagination.d.ts +218 -0
- package/types/select/src/select-types.d.ts +4 -23
- package/types/select/src/select.d.ts +1 -19
- package/types/select/src/use-select.d.ts +1 -1
- package/types/tag/src/tag.d.ts +2 -2
- package/vue-devui.es.js +283 -263
- package/vue-devui.umd.js +50 -50
package/switch/index.es.js
CHANGED
|
@@ -5912,6 +5912,9 @@ function useOverlay(props, emit) {
|
|
|
5912
5912
|
];
|
|
5913
5913
|
props.showArrow && middleware.push(arrow({ element: arrowEl }));
|
|
5914
5914
|
props.shiftOffset !== void 0 && middleware.push(shift());
|
|
5915
|
+
if (!overlayEl) {
|
|
5916
|
+
return;
|
|
5917
|
+
}
|
|
5915
5918
|
const { x, y, placement, middlewareData } = await computePosition(hostEl, overlayEl, {
|
|
5916
5919
|
strategy: "fixed",
|
|
5917
5920
|
middleware
|
package/switch/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@ __p += '`),X&&(E+=`' +
|
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+E+`return __p
|
|
27
|
-
}`;var z=ea(function(){return k(a,P+"return "+E).apply(i,s)});if(z.source=E,nu(z))throw z;return z}function x1(e){return j(e).toLowerCase()}function A1(e){return j(e).toUpperCase()}function C1(e,n,t){if(e=j(e),e&&(t||n===i))return af(e);if(!e||!(n=Be(n)))return e;var r=je(e),u=je(n),a=lf(r,u),s=sf(r,u)+1;return Ln(r,a,s).join("")}function b1(e,n,t){if(e=j(e),e&&(t||n===i))return e.slice(0,df(e)+1);if(!e||!(n=Be(n)))return e;var r=je(e),u=sf(r,je(n))+1;return Ln(r,0,u).join("")}function E1(e,n,t){if(e=j(e),e&&(t||n===i))return e.replace(ni,"");if(!e||!(n=Be(n)))return e;var r=je(e),u=lf(r,je(n));return Ln(r,u).join("")}function S1(e,n){var t=Pn,r=Dt;if(ae(n)){var u="separator"in n?n.separator:u;t="length"in n?$(n.length):t,r="omission"in n?Be(n.omission):r}e=j(e);var a=e.length;if(Jn(e)){var s=je(e);a=s.length}if(t>=a)return e;var h=t-Qn(r);if(h<1)return r;var v=s?Ln(s,0,h).join(""):e.slice(0,h);if(u===i)return v+r;if(s&&(h+=v.length-h),tu(u)){if(e.slice(h).search(u)){var A,C=v;for(u.global||(u=mi(u.source,j(Ru.exec(u))+"g")),u.lastIndex=0;A=u.exec(C);)var E=A.index;v=v.slice(0,E===i?h:E)}}else if(e.indexOf(Be(u),h)!=h){var O=v.lastIndexOf(u);O>-1&&(v=v.slice(0,O))}return v+r}function O1(e){return e=j(e),e&&Dl.test(e)?e.replace(Su,tc):e}var L1=it(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),uu=eo("toUpperCase");function jo(e,n,t){return e=j(e),n=t?i:n,n===i?Qs(e)?uc(e):$s(e):e.match(n)||[]}var ea=G(function(e,n){try{return Ne(e,i,n)}catch(t){return nu(t)?t:new V(t)}}),R1=pn(function(e,n){return ze(n,function(t){t=on(t),dn(e,t,ji(e[t],e))}),e});function T1(e){var n=e==null?0:e.length,t=B();return e=n?oe(e,function(r){if(typeof r[1]!="function")throw new Ge(_);return[t(r[0]),r[1]]}):[],G(function(r){for(var u=-1;++u<n;){var a=e[u];if(Ne(a[0],this,r))return Ne(a[1],this,r)}})}function F1(e){return td(Ze(e,M))}function fu(e){return function(){return e}}function I1(e,n){return e==null||e!==e?n:e}var P1=to(),N1=to(!0);function Fe(e){return e}function ou(e){return If(typeof e=="function"?e:Ze(e,M))}function M1(e){return Nf(Ze(e,M))}function B1(e,n){return Mf(e,Ze(n,M))}var q1=G(function(e,n){return function(t){return Lt(t,e,n)}}),D1=G(function(e,n){return function(t){return Lt(e,t,n)}});function au(e,n,t){var r=me(n),u=hr(n,r);t==null&&!(ae(n)&&(u.length||!r.length))&&(t=n,n=e,e=this,u=hr(n,me(n)));var a=!(ae(t)&&"chain"in t)||!!t.chain,s=vn(e);return ze(u,function(h){var v=n[h];e[h]=v,s&&(e.prototype[h]=function(){var A=this.__chain__;if(a||A){var C=e(this.__wrapped__),E=C.__actions__=Le(this.__actions__);return E.push({func:v,args:arguments,thisArg:e}),C.__chain__=A,C}return v.apply(e,An([this.value()],arguments))})}),e}function V1(){return ye._===this&&(ye._=cc),this}function lu(){}function W1(e){return e=$(e),G(function(n){return Bf(n,e)})}var U1=Wi(oe),$1=Wi(tf),z1=Wi(ci);function na(e){return Ki(e)?di(on(e)):yd(e)}function G1(e){return function(n){return e==null?i:Wn(e,n)}}var H1=io(),Z1=io(!0);function su(){return[]}function cu(){return!1}function K1(){return{}}function Y1(){return""}function X1(){return!0}function J1(e,n){if(e=$(e),e<1||e>wn)return[];var t=rn,r=xe(e,rn);n=B(n),e-=rn;for(var u=gi(r,n);++t<e;)n(t);return u}function Q1(e){return W(e)?oe(e,on):qe(e)?[e]:Le(xo(j(e)))}function k1(e){var n=++lc;return j(e)+n}var j1=yr(function(e,n){return e+n},0),e0=Ui("ceil"),n0=yr(function(e,n){return e/n},1),t0=Ui("floor");function r0(e){return e&&e.length?dr(e,Fe,Si):i}function i0(e,n){return e&&e.length?dr(e,B(n,2),Si):i}function u0(e){return ff(e,Fe)}function f0(e,n){return ff(e,B(n,2))}function o0(e){return e&&e.length?dr(e,Fe,Ti):i}function a0(e,n){return e&&e.length?dr(e,B(n,2),Ti):i}var l0=yr(function(e,n){return e*n},1),s0=Ui("round"),c0=yr(function(e,n){return e-n},0);function d0(e){return e&&e.length?pi(e,Fe):0}function h0(e,n){return e&&e.length?pi(e,B(n,2)):0}return o.after=Mp,o.ary=Io,o.assign=Ag,o.assignIn=Zo,o.assignInWith=Ir,o.assignWith=Cg,o.at=bg,o.before=Po,o.bind=ji,o.bindAll=R1,o.bindKey=No,o.castArray=Kp,o.chain=Ro,o.chunk=th,o.compact=rh,o.concat=ih,o.cond=T1,o.conforms=F1,o.constant=fu,o.countBy=dp,o.create=Eg,o.curry=Mo,o.curryRight=Bo,o.debounce=qo,o.defaults=Sg,o.defaultsDeep=Og,o.defer=Bp,o.delay=qp,o.difference=uh,o.differenceBy=fh,o.differenceWith=oh,o.drop=ah,o.dropRight=lh,o.dropRightWhile=sh,o.dropWhile=ch,o.fill=dh,o.filter=pp,o.flatMap=_p,o.flatMapDeep=mp,o.flatMapDepth=yp,o.flatten=Eo,o.flattenDeep=hh,o.flattenDepth=ph,o.flip=Dp,o.flow=P1,o.flowRight=N1,o.fromPairs=gh,o.functions=Ng,o.functionsIn=Mg,o.groupBy=wp,o.initial=_h,o.intersection=mh,o.intersectionBy=yh,o.intersectionWith=wh,o.invert=qg,o.invertBy=Dg,o.invokeMap=Ap,o.iteratee=ou,o.keyBy=Cp,o.keys=me,o.keysIn=Te,o.map=Sr,o.mapKeys=Wg,o.mapValues=Ug,o.matches=M1,o.matchesProperty=B1,o.memoize=Lr,o.merge=$g,o.mergeWith=Ko,o.method=q1,o.methodOf=D1,o.mixin=au,o.negate=Rr,o.nthArg=W1,o.omit=zg,o.omitBy=Gg,o.once=Vp,o.orderBy=bp,o.over=U1,o.overArgs=Wp,o.overEvery=$1,o.overSome=z1,o.partial=eu,o.partialRight=Do,o.partition=Ep,o.pick=Hg,o.pickBy=Yo,o.property=na,o.propertyOf=G1,o.pull=bh,o.pullAll=Oo,o.pullAllBy=Eh,o.pullAllWith=Sh,o.pullAt=Oh,o.range=H1,o.rangeRight=Z1,o.rearg=Up,o.reject=Lp,o.remove=Lh,o.rest=$p,o.reverse=Qi,o.sampleSize=Tp,o.set=Kg,o.setWith=Yg,o.shuffle=Fp,o.slice=Rh,o.sortBy=Np,o.sortedUniq=Bh,o.sortedUniqBy=qh,o.split=_1,o.spread=zp,o.tail=Dh,o.take=Vh,o.takeRight=Wh,o.takeRightWhile=Uh,o.takeWhile=$h,o.tap=rp,o.throttle=Gp,o.thru=Er,o.toArray=zo,o.toPairs=Xo,o.toPairsIn=Jo,o.toPath=Q1,o.toPlainObject=Ho,o.transform=Xg,o.unary=Hp,o.union=zh,o.unionBy=Gh,o.unionWith=Hh,o.uniq=Zh,o.uniqBy=Kh,o.uniqWith=Yh,o.unset=Jg,o.unzip=ki,o.unzipWith=Lo,o.update=Qg,o.updateWith=kg,o.values=ot,o.valuesIn=jg,o.without=Xh,o.words=jo,o.wrap=Zp,o.xor=Jh,o.xorBy=Qh,o.xorWith=kh,o.zip=jh,o.zipObject=ep,o.zipObjectDeep=np,o.zipWith=tp,o.entries=Xo,o.entriesIn=Jo,o.extend=Zo,o.extendWith=Ir,au(o,o),o.add=j1,o.attempt=ea,o.camelCase=r1,o.capitalize=Qo,o.ceil=e0,o.clamp=e1,o.clone=Yp,o.cloneDeep=Jp,o.cloneDeepWith=Qp,o.cloneWith=Xp,o.conformsTo=kp,o.deburr=ko,o.defaultTo=I1,o.divide=n0,o.endsWith=i1,o.eq=nn,o.escape=u1,o.escapeRegExp=f1,o.every=hp,o.find=gp,o.findIndex=Co,o.findKey=Lg,o.findLast=vp,o.findLastIndex=bo,o.findLastKey=Rg,o.floor=t0,o.forEach=To,o.forEachRight=Fo,o.forIn=Tg,o.forInRight=Fg,o.forOwn=Ig,o.forOwnRight=Pg,o.get=ru,o.gt=jp,o.gte=eg,o.has=Bg,o.hasIn=iu,o.head=So,o.identity=Fe,o.includes=xp,o.indexOf=vh,o.inRange=n1,o.invoke=Vg,o.isArguments=zn,o.isArray=W,o.isArrayBuffer=ng,o.isArrayLike=Re,o.isArrayLikeObject=ce,o.isBoolean=tg,o.isBuffer=Rn,o.isDate=rg,o.isElement=ig,o.isEmpty=ug,o.isEqual=fg,o.isEqualWith=og,o.isError=nu,o.isFinite=ag,o.isFunction=vn,o.isInteger=Vo,o.isLength=Tr,o.isMap=Wo,o.isMatch=lg,o.isMatchWith=sg,o.isNaN=cg,o.isNative=dg,o.isNil=pg,o.isNull=hg,o.isNumber=Uo,o.isObject=ae,o.isObjectLike=le,o.isPlainObject=Nt,o.isRegExp=tu,o.isSafeInteger=gg,o.isSet=$o,o.isString=Fr,o.isSymbol=qe,o.isTypedArray=ft,o.isUndefined=vg,o.isWeakMap=_g,o.isWeakSet=mg,o.join=xh,o.kebabCase=o1,o.last=Ye,o.lastIndexOf=Ah,o.lowerCase=a1,o.lowerFirst=l1,o.lt=yg,o.lte=wg,o.max=r0,o.maxBy=i0,o.mean=u0,o.meanBy=f0,o.min=o0,o.minBy=a0,o.stubArray=su,o.stubFalse=cu,o.stubObject=K1,o.stubString=Y1,o.stubTrue=X1,o.multiply=l0,o.nth=Ch,o.noConflict=V1,o.noop=lu,o.now=Or,o.pad=s1,o.padEnd=c1,o.padStart=d1,o.parseInt=h1,o.random=t1,o.reduce=Sp,o.reduceRight=Op,o.repeat=p1,o.replace=g1,o.result=Zg,o.round=s0,o.runInContext=g,o.sample=Rp,o.size=Ip,o.snakeCase=v1,o.some=Pp,o.sortedIndex=Th,o.sortedIndexBy=Fh,o.sortedIndexOf=Ih,o.sortedLastIndex=Ph,o.sortedLastIndexBy=Nh,o.sortedLastIndexOf=Mh,o.startCase=m1,o.startsWith=y1,o.subtract=c0,o.sum=d0,o.sumBy=h0,o.template=w1,o.times=J1,o.toFinite=_n,o.toInteger=$,o.toLength=Go,o.toLower=x1,o.toNumber=Xe,o.toSafeInteger=xg,o.toString=j,o.toUpper=A1,o.trim=C1,o.trimEnd=b1,o.trimStart=E1,o.truncate=S1,o.unescape=O1,o.uniqueId=k1,o.upperCase=L1,o.upperFirst=uu,o.each=To,o.eachRight=Fo,o.first=So,au(o,function(){var e={};return un(o,function(n,t){ne.call(o.prototype,t)||(e[t]=n)}),e}(),{chain:!1}),o.VERSION=c,ze(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){o[e].placeholder=o}),ze(["drop","take"],function(e,n){Y.prototype[e]=function(t){t=t===i?1:ve($(t),0);var r=this.__filtered__&&!n?new Y(this):this.clone();return r.__filtered__?r.__takeCount__=xe(t,r.__takeCount__):r.__views__.push({size:xe(t,rn),type:e+(r.__dir__<0?"Right":"")}),r},Y.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),ze(["filter","map","takeWhile"],function(e,n){var t=n+1,r=t==Vt||t==bl;Y.prototype[e]=function(u){var a=this.clone();return a.__iteratees__.push({iteratee:B(u,3),type:t}),a.__filtered__=a.__filtered__||r,a}}),ze(["head","last"],function(e,n){var t="take"+(n?"Right":"");Y.prototype[e]=function(){return this[t](1).value()[0]}}),ze(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[t](1)}}),Y.prototype.compact=function(){return this.filter(Fe)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=G(function(e,n){return typeof e=="function"?new Y(this):this.map(function(t){return Lt(t,e,n)})}),Y.prototype.reject=function(e){return this.filter(Rr(B(e)))},Y.prototype.slice=function(e,n){e=$(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Y(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==i&&(n=$(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(rn)},un(Y.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=o[r?"take"+(n=="last"?"Right":""):n],a=r||/^find/.test(n);!u||(o.prototype[n]=function(){var s=this.__wrapped__,h=r?[1]:arguments,v=s instanceof Y,A=h[0],C=v||W(s),E=function(Z){var X=u.apply(o,An([Z],h));return r&&O?X[0]:X};C&&t&&typeof A=="function"&&A.length!=1&&(v=C=!1);var O=this.__chain__,P=!!this.__actions__.length,q=a&&!O,z=v&&!P;if(!a&&C){s=z?s:new Y(this);var D=e.apply(s,h);return D.__actions__.push({func:Er,args:[E],thisArg:i}),new He(D,O)}return q&&z?e.apply(this,h):(D=this.thru(E),q?r?D.value()[0]:D.value():D)})}),ze(["pop","push","shift","sort","splice","unshift"],function(e){var n=Qt[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);o.prototype[e]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return n.apply(W(a)?a:[],u)}return this[t](function(s){return n.apply(W(s)?s:[],u)})}}),un(Y.prototype,function(e,n){var t=o[n];if(t){var r=t.name+"";ne.call(nt,r)||(nt[r]=[]),nt[r].push({name:n,func:t})}}),nt[mr(i,S).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Oc,Y.prototype.reverse=Lc,Y.prototype.value=Rc,o.prototype.at=ip,o.prototype.chain=up,o.prototype.commit=fp,o.prototype.next=op,o.prototype.plant=lp,o.prototype.reverse=sp,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=cp,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=ap),o},kn=fc();Mn?((Mn.exports=kn)._=kn,oi._=kn):ye._=kn}).call(at)})(Ie,Ie.exports);function sa(l){const f=y=>{if(!l.length)return[];const b=Ie.exports.castArray(y),T=b.length?l.filter(R=>R.field&&b.includes(R.field)):l;return T.length?T:[]},i=async(y=[])=>{const b=f(y);if(!b.length)return!0;let T={};for(const R of b)try{await R.validate("")}catch(M){T=Tn(Tn({},T),M)}return Object.keys(T).length?Promise.reject(T):!0},c=async(y=[],b)=>{try{const T=await i(y);return T&&(b==null||b(T)),T}catch(T){const R=T;return b==null||b(!1,R),!b&&Promise.reject(R)}};return{validate:async y=>c(void 0,y),validateFields:c,resetFields:(y=[])=>{f(y).forEach(b=>b.resetField())},clearValidate:(y=[])=>{f(y).forEach(b=>b.clearValidate())}}}d.defineComponent({name:"DForm",props:oa,emits:["validate"],setup(l,f){const i=Fn("form"),{itemContexts:c,addItemContext:p,removeItemContext:m}=la(),{validate:_,validateFields:y,resetFields:b,clearValidate:T}=sa(c),R=M=>{M.preventDefault()};return d.watch(()=>l.rules,()=>{l.validateOnRuleChange&&_()},{deep:!0}),d.provide(an,d.reactive(Nr(Tn({},d.toRefs(l)),{emit:f.emit,addItemContext:p,removeItemContext:m}))),d.provide(aa,l.styleType),f.expose({validate:_,validateFields:y,resetFields:b,clearValidate:T}),()=>{var M,U;return d.createVNode("form",{onSubmit:R,class:i.b()},[(U=(M=f.slots).default)==null?void 0:U.call(M)])}}});const ca={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:""}},Mr=Symbol("dFormItem"),Br=Symbol("labelData"),da={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function ha(l,f){let i;const c=m=>{m.preventDefault(),f.emit("click",m),l.closeOnClickOverlay&&f.emit("update:modelValue",!1)},p=()=>{i==null||i()};return d.watch(()=>l.modelValue,m=>{m?l.lockScroll&&(i=fa()):p()}),d.onUnmounted(p),{onClick:c}}function Bt(l,f,i){let c=l;return f&&(c+=`__${f}`),i&&(c+=`--${i}`),c}function Gn(l,f=!1){const i=f?`.devui-${l}`:`devui-${l}`;return{b:()=>Bt(i),e:y=>y?Bt(i,y):"",m:y=>y?Bt(i,"",y):"",em:(y,b)=>y&&b?Bt(i,y,b):""}}var _0="";d.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:da,emits:["update:modelValue","click"],setup(l,f){const{modelValue:i}=d.toRefs(l),c=Gn("fixed-overlay"),{onClick:p}=ha(l,f);return()=>d.createVNode(d.Transition,{name:c.m("fade")},{default:()=>{var m,_;return[i.value&&d.createVNode("div",d.mergeProps({class:c.b()},f.attrs,{onClick:p}),[(_=(m=f.slots).default)==null?void 0:_.call(m)])]}})}});const pa={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}};function ga(l){const f=/(auto|scroll|hidden)/;for(let i=l;i=i.parentElement;i.parentElement!==document.body){const c=window.getComputedStyle(i);if(f.test(c.overflow+c.overflowX+c.overflowY))return i}return window}function va(l,f,i,c){let{x:p,y:m}=f;if(!l){const{width:_,height:y}=c;p&&i.includes("start")&&(p=12),p&&i.includes("end")&&(p=Math.round(_-24)),m&&i.includes("start")&&(m=10),m&&i.includes("end")&&(m=y-14)}return{x:p,y:m}}function _a(l,f){const i=d.ref(),c=d.ref();let p=null;const m=(y,b,T,R)=>{const{x:M,y:U}=va(l.isArrowCenter,T,b,R.getBoundingClientRect()),Q={top:"bottom",right:"left",bottom:"top",left:"right"}[b.split("-")[0]];Object.assign(y.style,{left:M?`${M}px`:"",top:U?`${U}px`:"",right:"",bottom:"",[Q]:"-4px"})},_=async()=>{const y=l.origin,b=d.unref(i.value),T=d.unref(c.value),R=[be.offset(l.offset),be.autoPlacement({alignment:l.align,allowedPlacements:l.position})];l.showArrow&&R.push(be.arrow({element:T})),l.shiftOffset!==void 0&&R.push(be.shift());const{x:M,y:U,placement:Q,middlewareData:J}=await be.computePosition(y,b,{strategy:"fixed",middleware:R});let I=M,F=U;if(l.shiftOffset!==void 0){const{x:S,y:H}=J.shift;S<0&&(I-=l.shiftOffset),S>0&&(I+=l.shiftOffset),H<0&&(F-=l.shiftOffset),H>0&&(F+=l.shiftOffset)}f("positionChange",Q),Object.assign(b.style,{top:`${F}px`,left:`${I}px`}),l.showArrow&&m(T,Q,J.arrow,b)};return d.watch(()=>l.modelValue,()=>{l.modelValue&&l.origin?(p=ga(l.origin),d.nextTick(_),p==null||p.addEventListener("scroll",_),p!==window&&window.addEventListener("scroll",_),window.addEventListener("resize",_)):(p==null||p.removeEventListener("scroll",_),p!==window&&window.removeEventListener("scroll",_),window.removeEventListener("resize",_))}),d.onUnmounted(()=>{p==null||p.removeEventListener("scroll",_),p!==window&&window.removeEventListener("scroll",_),window.removeEventListener("resize",_)}),{arrowRef:c,overlayRef:i,updatePosition:_}}var m0="";const ma=d.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:pa,emits:["update:modelValue","positionChange"],setup(l,{slots:f,attrs:i,emit:c,expose:p}){const m=Gn("flexible-overlay"),{clickEventBubble:_}=d.toRefs(l),{arrowRef:y,overlayRef:b,updatePosition:T}=_a(l,c);return p({updatePosition:T}),()=>{var R;return l.modelValue&&d.createVNode("div",d.mergeProps({ref:b,class:m.b()},i,{onClick:d.withModifiers(()=>({}),[_.value?"":"stop"]),onPointerup:d.withModifiers(()=>({}),["stop"])}),[(R=f.default)==null?void 0:R.call(f),l.showArrow&&d.createVNode("div",{ref:y,class:m.e("arrow")},null)])}}}),pu=Symbol("popper-trigger"),ya=l=>l!==null&&typeof l=="object",wa=Gn("popper-trigger");function gu(l){return d.h("span",{class:wa.b()},l)}function vu(l){for(const f of l){if(ya(f)){if(f.type===d.Comment)continue;return f.type==="svg"||f.type===d.Text?gu(f):f.type===d.Fragment?vu(f.children):f}return gu(f)}return null}var xa=d.defineComponent({name:"DPopperTrigger",setup(l,f){const{slots:i,attrs:c}=f;return()=>{var y;const p=(y=i.default)==null?void 0:y.call(i,c),m=d.inject(pu);if(!p)return null;const _=vu(p);return _?d.withDirectives(d.cloneVNode(_,c),[[{mounted(b){m.value=b},updated(b){m.value=b},unmounted(){m.value=null}}]]):null}}});const Aa={isOpen:{type:Boolean,default:!1},position:{type:Array,default:["bottom"]},align:{type:String,default:null},offset:{type:[Number,Object],default:8},content:{type:String,default:""},trigger:{type:String,default:"click"},popType:{type:String,default:"default"},showAnimation:{type:Boolean,default:!0},mouseEnterDelay:{type:Number,default:150},mouseLeaveDelay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},Ca={top:"50% calc(100% + 8px)",bottom:"50% -8px",left:"calc(100% + 8px)",right:"-8px 50%"};function ba(l,f,i,c,p){const{trigger:m,isOpen:_}=d.toRefs(l),y=d.computed(()=>({zIndex:"var(--devui-z-index-pop-up, 1060)",transformOrigin:Ca[i.value]})),b=T=>{var R,M;!((R=c.value)==null?void 0:R.contains(T.target))&&!((M=p.value.$el)==null?void 0:M.contains(T.target))&&(f.value=!1)};return d.watch(_,T=>{f.value=T}),d.watch(f,()=>{f.value&&m.value!=="manually"?document.addEventListener("click",b):document.removeEventListener("click",b)}),d.onUnmounted(()=>{document.removeEventListener("click",b)}),{overlayStyles:y}}function Ea(l,f,i){const{trigger:c,position:p,mouseEnterDelay:m,mouseLeaveDelay:_,disabled:y}=d.toRefs(l),b=d.computed(()=>c.value==="click"),T=d.ref(p.value[0].split("-")[0]),R=d.ref(!1),M=()=>{y.value||b.value&&(f.value=!f.value)},U=Ie.exports.debounce(()=>{R.value&&(f.value=!0)},m.value),Q=Ie.exports.debounce(()=>{!R.value&&(f.value=!1)},_.value),J=()=>{y.value||b.value||(R.value=!0,U())},I=()=>{b.value||(R.value=!1,Q())},F=()=>{R.value=!1,f.value=!1};d.watch(y,H=>{H&&f.value&&F()});const S=H=>{T.value=H.split("-")[0]};return d.onMounted(()=>{c.value==="click"?i.value.addEventListener("click",M):c.value==="hover"&&(i.value.addEventListener("mouseenter",J),i.value.addEventListener("mouseleave",I))}),{placement:T,handlePositionChange:S,onMouseenter:J,onMouseleave:I}}const yn=Gn("popover");function Sa(){return d.createVNode("svg",{class:[yn.e("icon"),yn.em("icon","success")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[d.createVNode("circle",{cx:"8",cy:"8",r:"7"},null),d.createVNode("path",{d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z","fill-rule":"nonzero"},null),d.createVNode("polygon",{"stroke-width":"0.4","fill-rule":"nonzero",points:"8.16 10.48 7.32 11.32 6.48 10.48 6.48 10.48 3.6 7.68 4.44 6.84 7.28 9.68 11.52 5.44 12.36 6.28"},null)])])}function Oa(){return d.createVNode("svg",{class:[yn.e("icon"),yn.em("icon","warning")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[d.createVNode("polygon",{points:"7.5 1.74501946 1.39184847 13.5954649 7.08947368 14.2207621 13.9973698 13.5954649 10.9383683 5.61273879 8.40084114 1.27624313"},null),d.createVNode("path",{d:`M8.51325441,0.127397589 C8.70423071,0.228333932
|
|
27
|
+
}`;var z=ea(function(){return k(a,P+"return "+E).apply(i,s)});if(z.source=E,nu(z))throw z;return z}function x1(e){return j(e).toLowerCase()}function A1(e){return j(e).toUpperCase()}function C1(e,n,t){if(e=j(e),e&&(t||n===i))return af(e);if(!e||!(n=Be(n)))return e;var r=je(e),u=je(n),a=lf(r,u),s=sf(r,u)+1;return Ln(r,a,s).join("")}function b1(e,n,t){if(e=j(e),e&&(t||n===i))return e.slice(0,df(e)+1);if(!e||!(n=Be(n)))return e;var r=je(e),u=sf(r,je(n))+1;return Ln(r,0,u).join("")}function E1(e,n,t){if(e=j(e),e&&(t||n===i))return e.replace(ni,"");if(!e||!(n=Be(n)))return e;var r=je(e),u=lf(r,je(n));return Ln(r,u).join("")}function S1(e,n){var t=Pn,r=Dt;if(ae(n)){var u="separator"in n?n.separator:u;t="length"in n?$(n.length):t,r="omission"in n?Be(n.omission):r}e=j(e);var a=e.length;if(Jn(e)){var s=je(e);a=s.length}if(t>=a)return e;var h=t-Qn(r);if(h<1)return r;var v=s?Ln(s,0,h).join(""):e.slice(0,h);if(u===i)return v+r;if(s&&(h+=v.length-h),tu(u)){if(e.slice(h).search(u)){var A,C=v;for(u.global||(u=mi(u.source,j(Ru.exec(u))+"g")),u.lastIndex=0;A=u.exec(C);)var E=A.index;v=v.slice(0,E===i?h:E)}}else if(e.indexOf(Be(u),h)!=h){var O=v.lastIndexOf(u);O>-1&&(v=v.slice(0,O))}return v+r}function O1(e){return e=j(e),e&&Dl.test(e)?e.replace(Su,tc):e}var L1=it(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),uu=eo("toUpperCase");function jo(e,n,t){return e=j(e),n=t?i:n,n===i?Qs(e)?uc(e):$s(e):e.match(n)||[]}var ea=G(function(e,n){try{return Ne(e,i,n)}catch(t){return nu(t)?t:new V(t)}}),R1=pn(function(e,n){return ze(n,function(t){t=on(t),dn(e,t,ji(e[t],e))}),e});function T1(e){var n=e==null?0:e.length,t=B();return e=n?oe(e,function(r){if(typeof r[1]!="function")throw new Ge(_);return[t(r[0]),r[1]]}):[],G(function(r){for(var u=-1;++u<n;){var a=e[u];if(Ne(a[0],this,r))return Ne(a[1],this,r)}})}function F1(e){return td(Ze(e,M))}function fu(e){return function(){return e}}function I1(e,n){return e==null||e!==e?n:e}var P1=to(),N1=to(!0);function Fe(e){return e}function ou(e){return If(typeof e=="function"?e:Ze(e,M))}function M1(e){return Nf(Ze(e,M))}function B1(e,n){return Mf(e,Ze(n,M))}var q1=G(function(e,n){return function(t){return Lt(t,e,n)}}),D1=G(function(e,n){return function(t){return Lt(e,t,n)}});function au(e,n,t){var r=me(n),u=hr(n,r);t==null&&!(ae(n)&&(u.length||!r.length))&&(t=n,n=e,e=this,u=hr(n,me(n)));var a=!(ae(t)&&"chain"in t)||!!t.chain,s=vn(e);return ze(u,function(h){var v=n[h];e[h]=v,s&&(e.prototype[h]=function(){var A=this.__chain__;if(a||A){var C=e(this.__wrapped__),E=C.__actions__=Le(this.__actions__);return E.push({func:v,args:arguments,thisArg:e}),C.__chain__=A,C}return v.apply(e,An([this.value()],arguments))})}),e}function V1(){return ye._===this&&(ye._=cc),this}function lu(){}function W1(e){return e=$(e),G(function(n){return Bf(n,e)})}var U1=Wi(oe),$1=Wi(tf),z1=Wi(ci);function na(e){return Ki(e)?di(on(e)):yd(e)}function G1(e){return function(n){return e==null?i:Wn(e,n)}}var H1=io(),Z1=io(!0);function su(){return[]}function cu(){return!1}function K1(){return{}}function Y1(){return""}function X1(){return!0}function J1(e,n){if(e=$(e),e<1||e>wn)return[];var t=rn,r=xe(e,rn);n=B(n),e-=rn;for(var u=gi(r,n);++t<e;)n(t);return u}function Q1(e){return W(e)?oe(e,on):qe(e)?[e]:Le(xo(j(e)))}function k1(e){var n=++lc;return j(e)+n}var j1=yr(function(e,n){return e+n},0),e0=Ui("ceil"),n0=yr(function(e,n){return e/n},1),t0=Ui("floor");function r0(e){return e&&e.length?dr(e,Fe,Si):i}function i0(e,n){return e&&e.length?dr(e,B(n,2),Si):i}function u0(e){return ff(e,Fe)}function f0(e,n){return ff(e,B(n,2))}function o0(e){return e&&e.length?dr(e,Fe,Ti):i}function a0(e,n){return e&&e.length?dr(e,B(n,2),Ti):i}var l0=yr(function(e,n){return e*n},1),s0=Ui("round"),c0=yr(function(e,n){return e-n},0);function d0(e){return e&&e.length?pi(e,Fe):0}function h0(e,n){return e&&e.length?pi(e,B(n,2)):0}return o.after=Mp,o.ary=Io,o.assign=Ag,o.assignIn=Zo,o.assignInWith=Ir,o.assignWith=Cg,o.at=bg,o.before=Po,o.bind=ji,o.bindAll=R1,o.bindKey=No,o.castArray=Kp,o.chain=Ro,o.chunk=th,o.compact=rh,o.concat=ih,o.cond=T1,o.conforms=F1,o.constant=fu,o.countBy=dp,o.create=Eg,o.curry=Mo,o.curryRight=Bo,o.debounce=qo,o.defaults=Sg,o.defaultsDeep=Og,o.defer=Bp,o.delay=qp,o.difference=uh,o.differenceBy=fh,o.differenceWith=oh,o.drop=ah,o.dropRight=lh,o.dropRightWhile=sh,o.dropWhile=ch,o.fill=dh,o.filter=pp,o.flatMap=_p,o.flatMapDeep=mp,o.flatMapDepth=yp,o.flatten=Eo,o.flattenDeep=hh,o.flattenDepth=ph,o.flip=Dp,o.flow=P1,o.flowRight=N1,o.fromPairs=gh,o.functions=Ng,o.functionsIn=Mg,o.groupBy=wp,o.initial=_h,o.intersection=mh,o.intersectionBy=yh,o.intersectionWith=wh,o.invert=qg,o.invertBy=Dg,o.invokeMap=Ap,o.iteratee=ou,o.keyBy=Cp,o.keys=me,o.keysIn=Te,o.map=Sr,o.mapKeys=Wg,o.mapValues=Ug,o.matches=M1,o.matchesProperty=B1,o.memoize=Lr,o.merge=$g,o.mergeWith=Ko,o.method=q1,o.methodOf=D1,o.mixin=au,o.negate=Rr,o.nthArg=W1,o.omit=zg,o.omitBy=Gg,o.once=Vp,o.orderBy=bp,o.over=U1,o.overArgs=Wp,o.overEvery=$1,o.overSome=z1,o.partial=eu,o.partialRight=Do,o.partition=Ep,o.pick=Hg,o.pickBy=Yo,o.property=na,o.propertyOf=G1,o.pull=bh,o.pullAll=Oo,o.pullAllBy=Eh,o.pullAllWith=Sh,o.pullAt=Oh,o.range=H1,o.rangeRight=Z1,o.rearg=Up,o.reject=Lp,o.remove=Lh,o.rest=$p,o.reverse=Qi,o.sampleSize=Tp,o.set=Kg,o.setWith=Yg,o.shuffle=Fp,o.slice=Rh,o.sortBy=Np,o.sortedUniq=Bh,o.sortedUniqBy=qh,o.split=_1,o.spread=zp,o.tail=Dh,o.take=Vh,o.takeRight=Wh,o.takeRightWhile=Uh,o.takeWhile=$h,o.tap=rp,o.throttle=Gp,o.thru=Er,o.toArray=zo,o.toPairs=Xo,o.toPairsIn=Jo,o.toPath=Q1,o.toPlainObject=Ho,o.transform=Xg,o.unary=Hp,o.union=zh,o.unionBy=Gh,o.unionWith=Hh,o.uniq=Zh,o.uniqBy=Kh,o.uniqWith=Yh,o.unset=Jg,o.unzip=ki,o.unzipWith=Lo,o.update=Qg,o.updateWith=kg,o.values=ot,o.valuesIn=jg,o.without=Xh,o.words=jo,o.wrap=Zp,o.xor=Jh,o.xorBy=Qh,o.xorWith=kh,o.zip=jh,o.zipObject=ep,o.zipObjectDeep=np,o.zipWith=tp,o.entries=Xo,o.entriesIn=Jo,o.extend=Zo,o.extendWith=Ir,au(o,o),o.add=j1,o.attempt=ea,o.camelCase=r1,o.capitalize=Qo,o.ceil=e0,o.clamp=e1,o.clone=Yp,o.cloneDeep=Jp,o.cloneDeepWith=Qp,o.cloneWith=Xp,o.conformsTo=kp,o.deburr=ko,o.defaultTo=I1,o.divide=n0,o.endsWith=i1,o.eq=nn,o.escape=u1,o.escapeRegExp=f1,o.every=hp,o.find=gp,o.findIndex=Co,o.findKey=Lg,o.findLast=vp,o.findLastIndex=bo,o.findLastKey=Rg,o.floor=t0,o.forEach=To,o.forEachRight=Fo,o.forIn=Tg,o.forInRight=Fg,o.forOwn=Ig,o.forOwnRight=Pg,o.get=ru,o.gt=jp,o.gte=eg,o.has=Bg,o.hasIn=iu,o.head=So,o.identity=Fe,o.includes=xp,o.indexOf=vh,o.inRange=n1,o.invoke=Vg,o.isArguments=zn,o.isArray=W,o.isArrayBuffer=ng,o.isArrayLike=Re,o.isArrayLikeObject=ce,o.isBoolean=tg,o.isBuffer=Rn,o.isDate=rg,o.isElement=ig,o.isEmpty=ug,o.isEqual=fg,o.isEqualWith=og,o.isError=nu,o.isFinite=ag,o.isFunction=vn,o.isInteger=Vo,o.isLength=Tr,o.isMap=Wo,o.isMatch=lg,o.isMatchWith=sg,o.isNaN=cg,o.isNative=dg,o.isNil=pg,o.isNull=hg,o.isNumber=Uo,o.isObject=ae,o.isObjectLike=le,o.isPlainObject=Nt,o.isRegExp=tu,o.isSafeInteger=gg,o.isSet=$o,o.isString=Fr,o.isSymbol=qe,o.isTypedArray=ft,o.isUndefined=vg,o.isWeakMap=_g,o.isWeakSet=mg,o.join=xh,o.kebabCase=o1,o.last=Ye,o.lastIndexOf=Ah,o.lowerCase=a1,o.lowerFirst=l1,o.lt=yg,o.lte=wg,o.max=r0,o.maxBy=i0,o.mean=u0,o.meanBy=f0,o.min=o0,o.minBy=a0,o.stubArray=su,o.stubFalse=cu,o.stubObject=K1,o.stubString=Y1,o.stubTrue=X1,o.multiply=l0,o.nth=Ch,o.noConflict=V1,o.noop=lu,o.now=Or,o.pad=s1,o.padEnd=c1,o.padStart=d1,o.parseInt=h1,o.random=t1,o.reduce=Sp,o.reduceRight=Op,o.repeat=p1,o.replace=g1,o.result=Zg,o.round=s0,o.runInContext=g,o.sample=Rp,o.size=Ip,o.snakeCase=v1,o.some=Pp,o.sortedIndex=Th,o.sortedIndexBy=Fh,o.sortedIndexOf=Ih,o.sortedLastIndex=Ph,o.sortedLastIndexBy=Nh,o.sortedLastIndexOf=Mh,o.startCase=m1,o.startsWith=y1,o.subtract=c0,o.sum=d0,o.sumBy=h0,o.template=w1,o.times=J1,o.toFinite=_n,o.toInteger=$,o.toLength=Go,o.toLower=x1,o.toNumber=Xe,o.toSafeInteger=xg,o.toString=j,o.toUpper=A1,o.trim=C1,o.trimEnd=b1,o.trimStart=E1,o.truncate=S1,o.unescape=O1,o.uniqueId=k1,o.upperCase=L1,o.upperFirst=uu,o.each=To,o.eachRight=Fo,o.first=So,au(o,function(){var e={};return un(o,function(n,t){ne.call(o.prototype,t)||(e[t]=n)}),e}(),{chain:!1}),o.VERSION=c,ze(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){o[e].placeholder=o}),ze(["drop","take"],function(e,n){Y.prototype[e]=function(t){t=t===i?1:ve($(t),0);var r=this.__filtered__&&!n?new Y(this):this.clone();return r.__filtered__?r.__takeCount__=xe(t,r.__takeCount__):r.__views__.push({size:xe(t,rn),type:e+(r.__dir__<0?"Right":"")}),r},Y.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),ze(["filter","map","takeWhile"],function(e,n){var t=n+1,r=t==Vt||t==bl;Y.prototype[e]=function(u){var a=this.clone();return a.__iteratees__.push({iteratee:B(u,3),type:t}),a.__filtered__=a.__filtered__||r,a}}),ze(["head","last"],function(e,n){var t="take"+(n?"Right":"");Y.prototype[e]=function(){return this[t](1).value()[0]}}),ze(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[t](1)}}),Y.prototype.compact=function(){return this.filter(Fe)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=G(function(e,n){return typeof e=="function"?new Y(this):this.map(function(t){return Lt(t,e,n)})}),Y.prototype.reject=function(e){return this.filter(Rr(B(e)))},Y.prototype.slice=function(e,n){e=$(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Y(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==i&&(n=$(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(rn)},un(Y.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=o[r?"take"+(n=="last"?"Right":""):n],a=r||/^find/.test(n);!u||(o.prototype[n]=function(){var s=this.__wrapped__,h=r?[1]:arguments,v=s instanceof Y,A=h[0],C=v||W(s),E=function(Z){var X=u.apply(o,An([Z],h));return r&&O?X[0]:X};C&&t&&typeof A=="function"&&A.length!=1&&(v=C=!1);var O=this.__chain__,P=!!this.__actions__.length,q=a&&!O,z=v&&!P;if(!a&&C){s=z?s:new Y(this);var D=e.apply(s,h);return D.__actions__.push({func:Er,args:[E],thisArg:i}),new He(D,O)}return q&&z?e.apply(this,h):(D=this.thru(E),q?r?D.value()[0]:D.value():D)})}),ze(["pop","push","shift","sort","splice","unshift"],function(e){var n=Qt[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);o.prototype[e]=function(){var u=arguments;if(r&&!this.__chain__){var a=this.value();return n.apply(W(a)?a:[],u)}return this[t](function(s){return n.apply(W(s)?s:[],u)})}}),un(Y.prototype,function(e,n){var t=o[n];if(t){var r=t.name+"";ne.call(nt,r)||(nt[r]=[]),nt[r].push({name:n,func:t})}}),nt[mr(i,S).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Oc,Y.prototype.reverse=Lc,Y.prototype.value=Rc,o.prototype.at=ip,o.prototype.chain=up,o.prototype.commit=fp,o.prototype.next=op,o.prototype.plant=lp,o.prototype.reverse=sp,o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=cp,o.prototype.first=o.prototype.head,xt&&(o.prototype[xt]=ap),o},kn=fc();Mn?((Mn.exports=kn)._=kn,oi._=kn):ye._=kn}).call(at)})(Ie,Ie.exports);function sa(l){const f=y=>{if(!l.length)return[];const b=Ie.exports.castArray(y),T=b.length?l.filter(R=>R.field&&b.includes(R.field)):l;return T.length?T:[]},i=async(y=[])=>{const b=f(y);if(!b.length)return!0;let T={};for(const R of b)try{await R.validate("")}catch(M){T=Tn(Tn({},T),M)}return Object.keys(T).length?Promise.reject(T):!0},c=async(y=[],b)=>{try{const T=await i(y);return T&&(b==null||b(T)),T}catch(T){const R=T;return b==null||b(!1,R),!b&&Promise.reject(R)}};return{validate:async y=>c(void 0,y),validateFields:c,resetFields:(y=[])=>{f(y).forEach(b=>b.resetField())},clearValidate:(y=[])=>{f(y).forEach(b=>b.clearValidate())}}}d.defineComponent({name:"DForm",props:oa,emits:["validate"],setup(l,f){const i=Fn("form"),{itemContexts:c,addItemContext:p,removeItemContext:m}=la(),{validate:_,validateFields:y,resetFields:b,clearValidate:T}=sa(c),R=M=>{M.preventDefault()};return d.watch(()=>l.rules,()=>{l.validateOnRuleChange&&_()},{deep:!0}),d.provide(an,d.reactive(Nr(Tn({},d.toRefs(l)),{emit:f.emit,addItemContext:p,removeItemContext:m}))),d.provide(aa,l.styleType),f.expose({validate:_,validateFields:y,resetFields:b,clearValidate:T}),()=>{var M,U;return d.createVNode("form",{onSubmit:R,class:i.b()},[(U=(M=f.slots).default)==null?void 0:U.call(M)])}}});const ca={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:""}},Mr=Symbol("dFormItem"),Br=Symbol("labelData"),da={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function ha(l,f){let i;const c=m=>{m.preventDefault(),f.emit("click",m),l.closeOnClickOverlay&&f.emit("update:modelValue",!1)},p=()=>{i==null||i()};return d.watch(()=>l.modelValue,m=>{m?l.lockScroll&&(i=fa()):p()}),d.onUnmounted(p),{onClick:c}}function Bt(l,f,i){let c=l;return f&&(c+=`__${f}`),i&&(c+=`--${i}`),c}function Gn(l,f=!1){const i=f?`.devui-${l}`:`devui-${l}`;return{b:()=>Bt(i),e:y=>y?Bt(i,y):"",m:y=>y?Bt(i,"",y):"",em:(y,b)=>y&&b?Bt(i,y,b):""}}var _0="";d.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:da,emits:["update:modelValue","click"],setup(l,f){const{modelValue:i}=d.toRefs(l),c=Gn("fixed-overlay"),{onClick:p}=ha(l,f);return()=>d.createVNode(d.Transition,{name:c.m("fade")},{default:()=>{var m,_;return[i.value&&d.createVNode("div",d.mergeProps({class:c.b()},f.attrs,{onClick:p}),[(_=(m=f.slots).default)==null?void 0:_.call(m)])]}})}});const pa={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}};function ga(l){const f=/(auto|scroll|hidden)/;for(let i=l;i=i.parentElement;i.parentElement!==document.body){const c=window.getComputedStyle(i);if(f.test(c.overflow+c.overflowX+c.overflowY))return i}return window}function va(l,f,i,c){let{x:p,y:m}=f;if(!l){const{width:_,height:y}=c;p&&i.includes("start")&&(p=12),p&&i.includes("end")&&(p=Math.round(_-24)),m&&i.includes("start")&&(m=10),m&&i.includes("end")&&(m=y-14)}return{x:p,y:m}}function _a(l,f){const i=d.ref(),c=d.ref();let p=null;const m=(y,b,T,R)=>{const{x:M,y:U}=va(l.isArrowCenter,T,b,R.getBoundingClientRect()),Q={top:"bottom",right:"left",bottom:"top",left:"right"}[b.split("-")[0]];Object.assign(y.style,{left:M?`${M}px`:"",top:U?`${U}px`:"",right:"",bottom:"",[Q]:"-4px"})},_=async()=>{const y=l.origin,b=d.unref(i.value),T=d.unref(c.value),R=[be.offset(l.offset),be.autoPlacement({alignment:l.align,allowedPlacements:l.position})];if(l.showArrow&&R.push(be.arrow({element:T})),l.shiftOffset!==void 0&&R.push(be.shift()),!b)return;const{x:M,y:U,placement:Q,middlewareData:J}=await be.computePosition(y,b,{strategy:"fixed",middleware:R});let I=M,F=U;if(l.shiftOffset!==void 0){const{x:S,y:H}=J.shift;S<0&&(I-=l.shiftOffset),S>0&&(I+=l.shiftOffset),H<0&&(F-=l.shiftOffset),H>0&&(F+=l.shiftOffset)}f("positionChange",Q),Object.assign(b.style,{top:`${F}px`,left:`${I}px`}),l.showArrow&&m(T,Q,J.arrow,b)};return d.watch(()=>l.modelValue,()=>{l.modelValue&&l.origin?(p=ga(l.origin),d.nextTick(_),p==null||p.addEventListener("scroll",_),p!==window&&window.addEventListener("scroll",_),window.addEventListener("resize",_)):(p==null||p.removeEventListener("scroll",_),p!==window&&window.removeEventListener("scroll",_),window.removeEventListener("resize",_))}),d.onUnmounted(()=>{p==null||p.removeEventListener("scroll",_),p!==window&&window.removeEventListener("scroll",_),window.removeEventListener("resize",_)}),{arrowRef:c,overlayRef:i,updatePosition:_}}var m0="";const ma=d.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:pa,emits:["update:modelValue","positionChange"],setup(l,{slots:f,attrs:i,emit:c,expose:p}){const m=Gn("flexible-overlay"),{clickEventBubble:_}=d.toRefs(l),{arrowRef:y,overlayRef:b,updatePosition:T}=_a(l,c);return p({updatePosition:T}),()=>{var R;return l.modelValue&&d.createVNode("div",d.mergeProps({ref:b,class:m.b()},i,{onClick:d.withModifiers(()=>({}),[_.value?"":"stop"]),onPointerup:d.withModifiers(()=>({}),["stop"])}),[(R=f.default)==null?void 0:R.call(f),l.showArrow&&d.createVNode("div",{ref:y,class:m.e("arrow")},null)])}}}),pu=Symbol("popper-trigger"),ya=l=>l!==null&&typeof l=="object",wa=Gn("popper-trigger");function gu(l){return d.h("span",{class:wa.b()},l)}function vu(l){for(const f of l){if(ya(f)){if(f.type===d.Comment)continue;return f.type==="svg"||f.type===d.Text?gu(f):f.type===d.Fragment?vu(f.children):f}return gu(f)}return null}var xa=d.defineComponent({name:"DPopperTrigger",setup(l,f){const{slots:i,attrs:c}=f;return()=>{var y;const p=(y=i.default)==null?void 0:y.call(i,c),m=d.inject(pu);if(!p)return null;const _=vu(p);return _?d.withDirectives(d.cloneVNode(_,c),[[{mounted(b){m.value=b},updated(b){m.value=b},unmounted(){m.value=null}}]]):null}}});const Aa={isOpen:{type:Boolean,default:!1},position:{type:Array,default:["bottom"]},align:{type:String,default:null},offset:{type:[Number,Object],default:8},content:{type:String,default:""},trigger:{type:String,default:"click"},popType:{type:String,default:"default"},showAnimation:{type:Boolean,default:!0},mouseEnterDelay:{type:Number,default:150},mouseLeaveDelay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},Ca={top:"50% calc(100% + 8px)",bottom:"50% -8px",left:"calc(100% + 8px)",right:"-8px 50%"};function ba(l,f,i,c,p){const{trigger:m,isOpen:_}=d.toRefs(l),y=d.computed(()=>({zIndex:"var(--devui-z-index-pop-up, 1060)",transformOrigin:Ca[i.value]})),b=T=>{var R,M;!((R=c.value)==null?void 0:R.contains(T.target))&&!((M=p.value.$el)==null?void 0:M.contains(T.target))&&(f.value=!1)};return d.watch(_,T=>{f.value=T}),d.watch(f,()=>{f.value&&m.value!=="manually"?document.addEventListener("click",b):document.removeEventListener("click",b)}),d.onUnmounted(()=>{document.removeEventListener("click",b)}),{overlayStyles:y}}function Ea(l,f,i){const{trigger:c,position:p,mouseEnterDelay:m,mouseLeaveDelay:_,disabled:y}=d.toRefs(l),b=d.computed(()=>c.value==="click"),T=d.ref(p.value[0].split("-")[0]),R=d.ref(!1),M=()=>{y.value||b.value&&(f.value=!f.value)},U=Ie.exports.debounce(()=>{R.value&&(f.value=!0)},m.value),Q=Ie.exports.debounce(()=>{!R.value&&(f.value=!1)},_.value),J=()=>{y.value||b.value||(R.value=!0,U())},I=()=>{b.value||(R.value=!1,Q())},F=()=>{R.value=!1,f.value=!1};d.watch(y,H=>{H&&f.value&&F()});const S=H=>{T.value=H.split("-")[0]};return d.onMounted(()=>{c.value==="click"?i.value.addEventListener("click",M):c.value==="hover"&&(i.value.addEventListener("mouseenter",J),i.value.addEventListener("mouseleave",I))}),{placement:T,handlePositionChange:S,onMouseenter:J,onMouseleave:I}}const yn=Gn("popover");function Sa(){return d.createVNode("svg",{class:[yn.e("icon"),yn.em("icon","success")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[d.createVNode("circle",{cx:"8",cy:"8",r:"7"},null),d.createVNode("path",{d:"M8,0 C3.6,0 0,3.6 0,8 C0,12.4 3.6,16 8,16 C12.4,16 16,12.4 16,8 C16,3.6 12.4,0 8,0 Z","fill-rule":"nonzero"},null),d.createVNode("polygon",{"stroke-width":"0.4","fill-rule":"nonzero",points:"8.16 10.48 7.32 11.32 6.48 10.48 6.48 10.48 3.6 7.68 4.44 6.84 7.28 9.68 11.52 5.44 12.36 6.28"},null)])])}function Oa(){return d.createVNode("svg",{class:[yn.e("icon"),yn.em("icon","warning")],viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[d.createVNode("polygon",{points:"7.5 1.74501946 1.39184847 13.5954649 7.08947368 14.2207621 13.9973698 13.5954649 10.9383683 5.61273879 8.40084114 1.27624313"},null),d.createVNode("path",{d:`M8.51325441,0.127397589 C8.70423071,0.228333932
|
|
28
28
|
8.8605922,0.383286648 8.96244623,0.57254229 L15.8714442,13.4101975
|
|
29
29
|
C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158
|
|
30
30
|
C15.2642579,14.9563203 15.0879506,15 14.9088903,15 L1.09089441,15
|
package/table/index.es.js
CHANGED
|
@@ -1242,6 +1242,9 @@ function useOverlay(props, emit) {
|
|
|
1242
1242
|
];
|
|
1243
1243
|
props.showArrow && middleware.push(arrow({ element: arrowEl }));
|
|
1244
1244
|
props.shiftOffset !== void 0 && middleware.push(shift());
|
|
1245
|
+
if (!overlayEl) {
|
|
1246
|
+
return;
|
|
1247
|
+
}
|
|
1245
1248
|
const { x, y, placement, middlewareData } = await computePosition(hostEl, overlayEl, {
|
|
1246
1249
|
strategy: "fixed",
|
|
1247
1250
|
middleware
|
|
@@ -10837,9 +10840,11 @@ var Tooltip = defineComponent({
|
|
|
10837
10840
|
onMouseenterOverlay
|
|
10838
10841
|
} = useTooltip(origin, props);
|
|
10839
10842
|
const ns2 = useNamespace$1("tooltip");
|
|
10840
|
-
const className = computed(() => {
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
+
const className = computed(() => ({
|
|
10844
|
+
[ns2.b()]: true,
|
|
10845
|
+
[ns2.m(placement.value)]: true,
|
|
10846
|
+
[ns2.m("with-content")]: slots.content
|
|
10847
|
+
}));
|
|
10843
10848
|
provide(POPPER_TRIGGER_TOKEN, origin);
|
|
10844
10849
|
return () => createVNode(Fragment, null, [createVNode(PopperTrigger, null, {
|
|
10845
10850
|
default: () => {
|
|
@@ -10866,9 +10871,12 @@ var Tooltip = defineComponent({
|
|
|
10866
10871
|
"onMouseenter": onMouseenterOverlay,
|
|
10867
10872
|
"onMouseleave": onMouseleave
|
|
10868
10873
|
}, {
|
|
10869
|
-
default: () =>
|
|
10870
|
-
|
|
10871
|
-
|
|
10874
|
+
default: () => {
|
|
10875
|
+
var _a;
|
|
10876
|
+
return [slots.content ? (_a = slots.content) == null ? void 0 : _a.call(slots) : createVNode("span", {
|
|
10877
|
+
"innerHTML": content.value
|
|
10878
|
+
}, null)];
|
|
10879
|
+
}
|
|
10872
10880
|
})]
|
|
10873
10881
|
})]
|
|
10874
10882
|
})]);
|