@sepveneto/dnde 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.js +279 -200
- package/package.json +2 -2
package/dist/editor.js
CHANGED
|
@@ -23464,10 +23464,10 @@ const _sfc_main$2N = defineComponent({
|
|
|
23464
23464
|
};
|
|
23465
23465
|
}
|
|
23466
23466
|
});
|
|
23467
|
-
function _sfc_render$
|
|
23467
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23468
23468
|
return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
23469
23469
|
}
|
|
23470
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc$2(_sfc_main$2N, [["render", _sfc_render$
|
|
23470
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc$2(_sfc_main$2N, [["render", _sfc_render$y], ["__file", "focus-trap.vue"]]);
|
|
23471
23471
|
|
|
23472
23472
|
var E$1="top",R="bottom",W="right",P$1="left",me="auto",G=[E$1,R,W,P$1],U$1="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(t,e){return t.concat([e+"-"+U$1,e+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function(t,e){return t.concat([e,e+"-"+U$1,e+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C(t){return t?(t.nodeName||"").toLowerCase():null}function H(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Q(t){var e=H(t).Element;return t instanceof e||t instanceof Element}function B(t){var e=H(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Pe(t){if(typeof ShadowRoot=="undefined")return false;var e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Mt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!B(i)||!C(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===false?i.removeAttribute(a):i.setAttribute(a,s===true?"":s);}));});}function Rt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f},{});!B(o)||!C(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(f){o.removeAttribute(f);}));});}}var Ae={name:"applyStyles",enabled:true,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(t){return t.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee(t,e){e===void 0&&(e=false);var n=t.getBoundingClientRect(),r=1,o=1;if(B(t)&&e){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Z(n.width)/a||1),i>0&&(o=Z(n.height)/i||1);}return {width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ke(t){var e=ee(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function it(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return true;if(n&&Pe(n)){var r=e;do{if(r&&t.isSameNode(r))return true;r=r.parentNode||r.host;}while(r)}return false}function N$1(t){return H(t).getComputedStyle(t)}function Wt(t){return ["table","td","th"].indexOf(C(t))>=0}function I$1(t){return ((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe(t)?t.host:null)||I$1(t)}function at(t){return !B(t)||N$1(t).position==="fixed"?null:t.offsetParent}function Bt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&B(t)){var r=N$1(t);if(r.position==="fixed")return null}var o=ge(t);for(Pe(o)&&(o=o.host);B(o)&&["html","body"].indexOf(C(o))<0;){var i=N$1(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode;}return null}function se(t){for(var e=H(t),n=at(t);n&&Wt(n)&&N$1(n).position==="static";)n=at(n);return n&&(C(n)==="html"||C(n)==="body"&&N$1(n).position==="static")?e:n||Bt(t)||e}function Le(t){return ["top","bottom"].indexOf(t)>=0?"x":"y"}function fe(t,e,n){return X$1(t,ve(e,n))}function St(t,e,n){var r=fe(t,e,n);return r>n?n:r}function st(){return {top:0,right:0,bottom:0,left:0}}function ft(t){return Object.assign({},st(),t)}function ct(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Tt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ft(typeof t!="number"?t:ct(t,G))};function Ht(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=q(n.placement),f=Le(s),c=[P$1,W].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var m=Tt(o.padding,n),v=ke(i),l=f==="y"?E$1:P$1,h=f==="y"?R:W,p=n.rects.reference[u]+n.rects.reference[f]-a[f]-n.rects.popper[u],g=a[f]-n.rects.reference[f],x=se(i),y=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,$=p/2-g/2,d=m[l],b=y-v[u]-m[h],w=y/2-v[u]/2+$,O=fe(d,w,b),j=f;n.modifiersData[r]=(e={},e[j]=O,e.centerOffset=O-w,e);}}function Ct(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!it(e.elements.popper,o)||(e.elements.arrow=o));}var pt={name:"arrow",enabled:true,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return {x:Z(e*o)/o||0,y:Z(n*o)/o||0}}function ut(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,m=t.isFixed,v=a.x,l=v===void 0?0:v,h=a.y,p=h===void 0?0:h,g=typeof u=="function"?u({x:l,y:p}):{x:l,y:p};l=g.x,p=g.y;var x=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),$=P$1,d=E$1,b=window;if(c){var w=se(n),O="clientHeight",j="clientWidth";if(w===H(n)&&(w=I$1(n),N$1(w).position!=="static"&&s==="absolute"&&(O="scrollHeight",j="scrollWidth")),w=w,o===E$1||(o===P$1||o===W)&&i===J){d=R;var A=m&&w===b&&b.visualViewport?b.visualViewport.height:w[O];p-=A-r.height,p*=f?1:-1;}if(o===P$1||(o===E$1||o===R)&&i===J){$=W;var k=m&&w===b&&b.visualViewport?b.visualViewport.width:w[j];l-=k-r.width,l*=f?1:-1;}}var D=Object.assign({position:s},c&&qt),S=u===true?Vt({x:l,y:p}):{x:l,y:p};if(l=S.x,p=S.y,f){var L;return Object.assign({},D,(L={},L[d]=y?"0":"",L[$]=x?"0":"",L.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",L))}return Object.assign({},D,(e={},e[d]=y?p+"px":"",e[$]=x?l+"px":"",e.transform="",e))}function Nt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?true:r,i=n.adaptive,a=i===void 0?true:i,s=n.roundOffsets,f=s===void 0?true:s,c={placement:q(e.placement),variation:te(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ut(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ut(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement});}var Me={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:true};function It(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?true:o,a=r.resize,s=a===void 0?true:a,f=H(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ye);}),s&&f.addEventListener("resize",n.update,ye),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ye);}),s&&f.removeEventListener("resize",n.update,ye);}}var Re={name:"eventListeners",enabled:true,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return _t[e]})}var zt={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,function(e){return zt[e]})}function We(t){var e=H(t),n=e.pageXOffset,r=e.pageYOffset;return {scrollLeft:n,scrollTop:r}}function Be(t){return ee(I$1(t)).left+We(t).scrollLeft}function Ft(t){var e=H(t),n=I$1(t),r=e.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Be(t),y:s}}function Ut(t){var e,n=I$1(t),r=We(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=X$1(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=X$1(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Be(t),f=-r.scrollTop;return N$1(o||n).direction==="rtl"&&(s+=X$1(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}function Se(t){var e=N$1(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return /auto|scroll|overlay|hidden/.test(n+o+r)}function dt(t){return ["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B(t)&&Se(t)?t:dt(ge(t))}function ce(t,e){var n;e===void 0&&(e=[]);var r=dt(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=H(r),a=o?[i].concat(i.visualViewport||[],Se(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(ce(ge(a)))}function Te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t){var e=ee(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ht(t,e){return e===je?Te(Ft(t)):Q(e)?Xt(e):Te(Ut(I$1(t)))}function Yt(t){var e=ce(ge(t)),n=["absolute","fixed"].indexOf(N$1(t).position)>=0,r=n&&B(t)?se(t):t;return Q(r)?e.filter(function(o){return Q(o)&&it(o,r)&&C(o)!=="body"}):[]}function Gt(t,e,n){var r=e==="clippingParents"?Yt(t):[].concat(e),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,f){var c=ht(t,f);return s.top=X$1(c.top,s.top),s.right=ve(c.right,s.right),s.bottom=ve(c.bottom,s.bottom),s.left=X$1(c.left,s.left),s},ht(t,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mt(t){var e=t.reference,n=t.element,r=t.placement,o=r?q(r):null,i=r?te(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(o){case E$1:f={x:a,y:e.y-n.height};break;case R:f={x:a,y:e.y+e.height};break;case W:f={x:e.x+e.width,y:s};break;case P$1:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y};}var c=o?Le(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case U$1:f[c]=f[c]-(e[u]/2-n[u]/2);break;case J:f[c]=f[c]+(e[u]/2-n[u]/2);break}}return f}function ne(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.boundary,a=i===void 0?Xe:i,s=n.rootBoundary,f=s===void 0?je:s,c=n.elementContext,u=c===void 0?K:c,m=n.altBoundary,v=m===void 0?false:m,l=n.padding,h=l===void 0?0:l,p=ft(typeof h!="number"?h:ct(h,G)),g=u===K?Ye:K,x=t.rects.popper,y=t.elements[v?g:u],$=Gt(Q(y)?y:y.contextElement||I$1(t.elements.popper),a,f),d=ee(t.elements.reference),b=mt({reference:d,element:x,placement:o}),w=Te(Object.assign({},x,b)),O=u===K?w:d,j={top:$.top-O.top+p.top,bottom:O.bottom-$.bottom+p.bottom,left:$.left-O.left+p.left,right:O.right-$.right+p.right},A=t.modifiersData.offset;if(u===K&&A){var k=A[o];Object.keys(j).forEach(function(D){var S=[W,R].indexOf(D)>=0?1:-1,L=[E$1,R].indexOf(D)>=0?"y":"x";j[D]+=k[L]*S;});}return j}function Jt(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?Ee:f,u=te(r),m=u?s?De:De.filter(function(h){return te(h)===u}):G,v=m.filter(function(h){return c.indexOf(h)>=0});v.length===0&&(v=m);var l=v.reduce(function(h,p){return h[p]=ne(t,{placement:p,boundary:o,rootBoundary:i,padding:a})[q(p)],h},{});return Object.keys(l).sort(function(h,p){return l[h]-l[p]})}function Kt(t){if(q(t)===me)return [];var e=be(t);return [lt(t),e,lt(e)]}function Qt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?true:o,a=n.altAxis,s=a===void 0?true:a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,m=n.rootBoundary,v=n.altBoundary,l=n.flipVariations,h=l===void 0?true:l,p=n.allowedAutoPlacements,g=e.options.placement,x=q(g),y=x===g,$=f||(y||!h?[be(g)]:Kt(g)),d=[g].concat($).reduce(function(z,V){return z.concat(q(V)===me?Jt(e,{placement:V,boundary:u,rootBoundary:m,padding:c,flipVariations:h,allowedAutoPlacements:p}):V)},[]),b=e.rects.reference,w=e.rects.popper,O=new Map,j=true,A=d[0],k=0;k<d.length;k++){var D=d[k],S=q(D),L=te(D)===U$1,re=[E$1,R].indexOf(S)>=0,oe=re?"width":"height",M=ne(e,{placement:D,boundary:u,rootBoundary:m,altBoundary:v,padding:c}),T=re?L?W:P$1:L?R:E$1;b[oe]>w[oe]&&(T=be(T));var pe=be(T),_=[];if(i&&_.push(M[S]<=0),s&&_.push(M[T]<=0,M[pe]<=0),_.every(function(z){return z})){A=D,j=false;break}O.set(D,_);}if(j)for(var ue=h?3:1,xe=function(z){var V=d.find(function(de){var ae=O.get(de);if(ae)return ae.slice(0,z).every(function(Y){return Y})});if(V)return A=V,"break"},ie=ue;ie>0;ie--){var le=xe(ie);if(le==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=true,e.placement=A,e.reset=true);}}var vt={name:"flip",enabled:true,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:false}};function gt(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function yt(t){return [E$1,W,R,P$1].some(function(e){return t[e]>=0})}function Zt(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ne(e,{elementContext:"reference"}),s=ne(e,{altBoundary:true}),f=gt(a,r),c=gt(s,o,i),u=yt(f),m=yt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m});}var bt={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(t,e,n){var r=q(t),o=[P$1,E$1].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P$1,W].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function tn(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ee.reduce(function(u,m){return u[m]=en(m,e.rects,i),u},{}),s=a[e.placement],f=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a;}var wt={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:tn};function nn(t){var e=t.state,n=t.name;e.modifiersData[n]=mt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement});}var He={name:"popperOffsets",enabled:true,phase:"read",fn:nn,data:{}};function rn(t){return t==="x"?"y":"x"}function on$2(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?true:o,a=n.altAxis,s=a===void 0?false:a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,m=n.padding,v=n.tether,l=v===void 0?true:v,h=n.tetherOffset,p=h===void 0?0:h,g=ne(e,{boundary:f,rootBoundary:c,padding:m,altBoundary:u}),x=q(e.placement),y=te(e.placement),$=!y,d=Le(x),b=rn(d),w=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,A=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,k=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(w){if(i){var L,re=d==="y"?E$1:P$1,oe=d==="y"?R:W,M=d==="y"?"height":"width",T=w[d],pe=T+g[re],_=T-g[oe],ue=l?-j[M]/2:0,xe=y===U$1?O[M]:j[M],ie=y===U$1?-j[M]:-O[M],le=e.elements.arrow,z=l&&le?ke(le):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:st(),de=V[re],ae=V[oe],Y=fe(0,O[M],z[M]),jt=$?O[M]/2-ue-Y-de-k.mainAxis:xe-Y-de-k.mainAxis,Dt=$?-O[M]/2+ue+Y+ae+k.mainAxis:ie+Y+ae+k.mainAxis,Oe=e.elements.arrow&&se(e.elements.arrow),Et=Oe?d==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ce=(L=D==null?void 0:D[d])!=null?L:0,Pt=T+jt-Ce-Et,At=T+Dt-Ce,qe=fe(l?ve(pe,Pt):pe,T,l?X$1(_,At):_);w[d]=qe,S[d]=qe-T;}if(s){var Ve,kt=d==="x"?E$1:P$1,Lt=d==="x"?R:W,F=w[b],he=b==="y"?"height":"width",Ne=F+g[kt],Ie=F-g[Lt],$e=[E$1,P$1].indexOf(x)!==-1,_e=(Ve=D==null?void 0:D[b])!=null?Ve:0,ze=$e?Ne:F-O[he]-j[he]-_e+k.altAxis,Fe=$e?F+O[he]+j[he]-_e-k.altAxis:Ie,Ue=l&&$e?St(ze,F,Fe):fe(l?ze:Ne,F,l?Fe:Ie);w[b]=Ue,S[b]=Ue-F;}e.modifiersData[r]=S;}}var xt={name:"preventOverflow",enabled:true,phase:"main",fn:on$2,requiresIfExists:["offset"]};function an(t){return {scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sn(t){return t===H(t)||!B(t)?We(t):an(t)}function fn(t){var e=t.getBoundingClientRect(),n=Z(e.width)/t.offsetWidth||1,r=Z(e.height)/t.offsetHeight||1;return n!==1||r!==1}function cn(t,e,n){n===void 0&&(n=false);var r=B(e),o=B(e)&&fn(e),i=I$1(e),a=ee(t,o),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return (r||!r&&!n)&&((C(e)!=="body"||Se(i))&&(s=sn(e)),B(e)?(f=ee(e,true),f.x+=e.clientLeft,f.y+=e.clientTop):i&&(f.x=Be(i))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function pn(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i);});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&o(f);}}),r.push(i);}return t.forEach(function(i){n.has(i.name)||o(i);}),r}function un(t){var e=pn(t);return ot.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function ln(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t());});})),e}}function dn(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return !e.some(function(r){return !(r&&typeof r.getBoundingClientRect=="function")})}function we(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Ot:o;return function(a,s,f){f===void 0&&(f=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],m=false,v={state:c,setOptions:function(p){var g=typeof p=="function"?p(c.options):p;h(),c.options=Object.assign({},i,c.options,g),c.scrollParents={reference:Q(a)?ce(a):a.contextElement?ce(a.contextElement):[],popper:ce(s)};var x=un(dn([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(y){return y.enabled}),l(),v.update()},forceUpdate:function(){if(!m){var p=c.elements,g=p.reference,x=p.popper;if($t(g,x)){c.rects={reference:cn(g,se(x),c.options.strategy==="fixed"),popper:ke(x)},c.reset=false,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===true){c.reset=false,y=-1;continue}var $=c.orderedModifiers[y],d=$.fn,b=$.options,w=b===void 0?{}:b,O=$.name;typeof d=="function"&&(c=d({state:c,options:w,name:O,instance:v})||c);}}}},update:ln(function(){return new Promise(function(p){v.forceUpdate(),p(c);})}),destroy:function(){h(),m=true;}};if(!$t(a,s))return v;v.setOptions(f).then(function(p){!m&&f.onFirstUpdate&&f.onFirstUpdate(p);});function l(){c.orderedModifiers.forEach(function(p){var g=p.name,x=p.options,y=x===void 0?{}:x,$=p.effect;if(typeof $=="function"){var d=$({state:c,name:g,instance:v,options:y}),b=function(){};u.push(d||b);}});}function h(){u.forEach(function(p){return p()}),u=[];}return v}}we();var mn=[Re,He,Me,Ae];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae,wt,vt,xt,pt,bt],yn=we({defaultModifiers:gn});
|
|
23473
23473
|
|
|
@@ -40681,19 +40681,19 @@ const ElDrawer = withInstall(Drawer);
|
|
|
40681
40681
|
const _sfc_main$1N = defineComponent({
|
|
40682
40682
|
inheritAttrs: false
|
|
40683
40683
|
});
|
|
40684
|
-
function _sfc_render$
|
|
40684
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40685
40685
|
return renderSlot(_ctx.$slots, "default");
|
|
40686
40686
|
}
|
|
40687
|
-
var Collection = /* @__PURE__ */ _export_sfc$2(_sfc_main$1N, [["render", _sfc_render$
|
|
40687
|
+
var Collection = /* @__PURE__ */ _export_sfc$2(_sfc_main$1N, [["render", _sfc_render$x], ["__file", "collection.vue"]]);
|
|
40688
40688
|
|
|
40689
40689
|
const _sfc_main$1M = defineComponent({
|
|
40690
40690
|
name: "ElCollectionItem",
|
|
40691
40691
|
inheritAttrs: false
|
|
40692
40692
|
});
|
|
40693
|
-
function _sfc_render$
|
|
40693
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40694
40694
|
return renderSlot(_ctx.$slots, "default");
|
|
40695
40695
|
}
|
|
40696
|
-
var CollectionItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1M, [["render", _sfc_render$
|
|
40696
|
+
var CollectionItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1M, [["render", _sfc_render$w], ["__file", "collection-item.vue"]]);
|
|
40697
40697
|
|
|
40698
40698
|
const COLLECTION_ITEM_SIGN = `data-el-collection-item`;
|
|
40699
40699
|
const createCollectionWithScope = (name) => {
|
|
@@ -40928,10 +40928,10 @@ const _sfc_main$1L = defineComponent({
|
|
|
40928
40928
|
useEventListener$1(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
40929
40929
|
}
|
|
40930
40930
|
});
|
|
40931
|
-
function _sfc_render$
|
|
40931
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40932
40932
|
return renderSlot(_ctx.$slots, "default");
|
|
40933
40933
|
}
|
|
40934
|
-
var ElRovingFocusGroupImpl = /* @__PURE__ */ _export_sfc$2(_sfc_main$1L, [["render", _sfc_render$
|
|
40934
|
+
var ElRovingFocusGroupImpl = /* @__PURE__ */ _export_sfc$2(_sfc_main$1L, [["render", _sfc_render$v], ["__file", "roving-focus-group-impl.vue"]]);
|
|
40935
40935
|
|
|
40936
40936
|
const _sfc_main$1K = defineComponent({
|
|
40937
40937
|
name: "ElRovingFocusGroup",
|
|
@@ -40940,7 +40940,7 @@ const _sfc_main$1K = defineComponent({
|
|
|
40940
40940
|
ElRovingFocusGroupImpl
|
|
40941
40941
|
}
|
|
40942
40942
|
});
|
|
40943
|
-
function _sfc_render$
|
|
40943
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
40944
40944
|
const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
|
|
40945
40945
|
const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
|
|
40946
40946
|
return openBlock(), createBlock(_component_el_focus_group_collection, null, {
|
|
@@ -40955,7 +40955,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40955
40955
|
_: 3
|
|
40956
40956
|
});
|
|
40957
40957
|
}
|
|
40958
|
-
var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc$2(_sfc_main$1K, [["render", _sfc_render$
|
|
40958
|
+
var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc$2(_sfc_main$1K, [["render", _sfc_render$u], ["__file", "roving-focus-group.vue"]]);
|
|
40959
40959
|
|
|
40960
40960
|
const dropdownProps = buildProps$1({
|
|
40961
40961
|
trigger: {
|
|
@@ -41176,7 +41176,7 @@ const _sfc_main$1J = defineComponent({
|
|
|
41176
41176
|
};
|
|
41177
41177
|
}
|
|
41178
41178
|
});
|
|
41179
|
-
function _sfc_render$
|
|
41179
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41180
41180
|
var _a;
|
|
41181
41181
|
const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
|
|
41182
41182
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
@@ -41302,7 +41302,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41302
41302
|
})) : createCommentVNode("v-if", true)
|
|
41303
41303
|
], 2);
|
|
41304
41304
|
}
|
|
41305
|
-
var Dropdown = /* @__PURE__ */ _export_sfc$2(_sfc_main$1J, [["render", _sfc_render$
|
|
41305
|
+
var Dropdown = /* @__PURE__ */ _export_sfc$2(_sfc_main$1J, [["render", _sfc_render$t], ["__file", "dropdown.vue"]]);
|
|
41306
41306
|
|
|
41307
41307
|
const _sfc_main$1I = defineComponent({
|
|
41308
41308
|
components: {
|
|
@@ -41363,7 +41363,7 @@ const _sfc_main$1I = defineComponent({
|
|
|
41363
41363
|
};
|
|
41364
41364
|
}
|
|
41365
41365
|
});
|
|
41366
|
-
function _sfc_render$
|
|
41366
|
+
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41367
41367
|
const _component_el_roving_focus_collection_item = resolveComponent("el-roving-focus-collection-item");
|
|
41368
41368
|
return openBlock(), createBlock(_component_el_roving_focus_collection_item, {
|
|
41369
41369
|
id: _ctx.id,
|
|
@@ -41376,7 +41376,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41376
41376
|
_: 3
|
|
41377
41377
|
}, 8, ["id", "focusable", "active"]);
|
|
41378
41378
|
}
|
|
41379
|
-
var ElRovingFocusItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1I, [["render", _sfc_render$
|
|
41379
|
+
var ElRovingFocusItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1I, [["render", _sfc_render$s], ["__file", "roving-focus-item.vue"]]);
|
|
41380
41380
|
|
|
41381
41381
|
const _sfc_main$1H = defineComponent({
|
|
41382
41382
|
name: "DropdownItemImpl",
|
|
@@ -41428,7 +41428,7 @@ const _sfc_main$1H = defineComponent({
|
|
|
41428
41428
|
};
|
|
41429
41429
|
}
|
|
41430
41430
|
});
|
|
41431
|
-
function _sfc_render$
|
|
41431
|
+
function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41432
41432
|
const _component_el_icon = resolveComponent("el-icon");
|
|
41433
41433
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
41434
41434
|
_ctx.divided ? (openBlock(), createElementBlock("li", {
|
|
@@ -41458,7 +41458,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41458
41458
|
], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
|
|
41459
41459
|
], 64);
|
|
41460
41460
|
}
|
|
41461
|
-
var ElDropdownItemImpl = /* @__PURE__ */ _export_sfc$2(_sfc_main$1H, [["render", _sfc_render$
|
|
41461
|
+
var ElDropdownItemImpl = /* @__PURE__ */ _export_sfc$2(_sfc_main$1H, [["render", _sfc_render$r], ["__file", "dropdown-item-impl.vue"]]);
|
|
41462
41462
|
|
|
41463
41463
|
const useDropdown = () => {
|
|
41464
41464
|
const elDropdown = inject(DROPDOWN_INSTANCE_INJECTION_KEY, {});
|
|
@@ -41531,7 +41531,7 @@ const _sfc_main$1G = defineComponent({
|
|
|
41531
41531
|
};
|
|
41532
41532
|
}
|
|
41533
41533
|
});
|
|
41534
|
-
function _sfc_render$
|
|
41534
|
+
function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41535
41535
|
const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
|
|
41536
41536
|
const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
|
|
41537
41537
|
return openBlock(), createBlock(_component_el_roving_focus_item, {
|
|
@@ -41552,7 +41552,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41552
41552
|
_: 3
|
|
41553
41553
|
}, 8, ["focusable"]);
|
|
41554
41554
|
}
|
|
41555
|
-
var DropdownItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1G, [["render", _sfc_render$
|
|
41555
|
+
var DropdownItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1G, [["render", _sfc_render$q], ["__file", "dropdown-item.vue"]]);
|
|
41556
41556
|
|
|
41557
41557
|
const _sfc_main$1F = defineComponent({
|
|
41558
41558
|
name: "ElDropdownMenu",
|
|
@@ -41604,7 +41604,7 @@ const _sfc_main$1F = defineComponent({
|
|
|
41604
41604
|
};
|
|
41605
41605
|
}
|
|
41606
41606
|
});
|
|
41607
|
-
function _sfc_render$
|
|
41607
|
+
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41608
41608
|
return openBlock(), createElementBlock("ul", {
|
|
41609
41609
|
ref: _ctx.dropdownListWrapperRef,
|
|
41610
41610
|
class: normalizeClass(_ctx.dropdownKls),
|
|
@@ -41620,7 +41620,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41620
41620
|
renderSlot(_ctx.$slots, "default")
|
|
41621
41621
|
], 46, ["role", "aria-labelledby", "onFocusin", "onFocusout", "onKeydown", "onMousedown"]);
|
|
41622
41622
|
}
|
|
41623
|
-
var DropdownMenu = /* @__PURE__ */ _export_sfc$2(_sfc_main$1F, [["render", _sfc_render$
|
|
41623
|
+
var DropdownMenu = /* @__PURE__ */ _export_sfc$2(_sfc_main$1F, [["render", _sfc_render$p], ["__file", "dropdown-menu.vue"]]);
|
|
41624
41624
|
|
|
41625
41625
|
const ElDropdown = withInstall(Dropdown, {
|
|
41626
41626
|
DropdownItem,
|
|
@@ -47258,7 +47258,7 @@ const _sfc_main$1p = defineComponent({
|
|
|
47258
47258
|
};
|
|
47259
47259
|
}
|
|
47260
47260
|
});
|
|
47261
|
-
function _sfc_render$
|
|
47261
|
+
function _sfc_render$o(_ctx, _cache) {
|
|
47262
47262
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
47263
47263
|
id: _ctx.id,
|
|
47264
47264
|
class: normalizeClass(_ctx.containerKls),
|
|
@@ -47275,7 +47275,7 @@ function _sfc_render$l(_ctx, _cache) {
|
|
|
47275
47275
|
[vShow, _ctx.visible]
|
|
47276
47276
|
]);
|
|
47277
47277
|
}
|
|
47278
|
-
var Option = /* @__PURE__ */ _export_sfc$2(_sfc_main$1p, [["render", _sfc_render$
|
|
47278
|
+
var Option = /* @__PURE__ */ _export_sfc$2(_sfc_main$1p, [["render", _sfc_render$o], ["__file", "option.vue"]]);
|
|
47279
47279
|
|
|
47280
47280
|
const _sfc_main$1o = defineComponent({
|
|
47281
47281
|
name: "ElSelectDropdown",
|
|
@@ -47309,7 +47309,7 @@ const _sfc_main$1o = defineComponent({
|
|
|
47309
47309
|
};
|
|
47310
47310
|
}
|
|
47311
47311
|
});
|
|
47312
|
-
function _sfc_render$
|
|
47312
|
+
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
47313
47313
|
return openBlock(), createElementBlock("div", {
|
|
47314
47314
|
class: normalizeClass([_ctx.ns.b("dropdown"), _ctx.ns.is("multiple", _ctx.isMultiple), _ctx.popperClass]),
|
|
47315
47315
|
style: normalizeStyle$1({ [_ctx.isFitInputWidth ? "width" : "minWidth"]: _ctx.minWidth })
|
|
@@ -47329,7 +47329,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47329
47329
|
], 2)) : createCommentVNode("v-if", true)
|
|
47330
47330
|
], 6);
|
|
47331
47331
|
}
|
|
47332
|
-
var ElSelectMenu$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$1o, [["render", _sfc_render$
|
|
47332
|
+
var ElSelectMenu$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$1o, [["render", _sfc_render$n], ["__file", "select-dropdown.vue"]]);
|
|
47333
47333
|
|
|
47334
47334
|
const useSelect$2 = (props, emit) => {
|
|
47335
47335
|
const { t } = useLocale();
|
|
@@ -48274,7 +48274,7 @@ const _sfc_main$1n = defineComponent({
|
|
|
48274
48274
|
};
|
|
48275
48275
|
}
|
|
48276
48276
|
});
|
|
48277
|
-
function _sfc_render$
|
|
48277
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
48278
48278
|
return withDirectives((openBlock(), createElementBlock("ul", {
|
|
48279
48279
|
ref: "groupRef",
|
|
48280
48280
|
class: normalizeClass(_ctx.ns.be("group", "wrap"))
|
|
@@ -48293,7 +48293,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48293
48293
|
[vShow, _ctx.visible]
|
|
48294
48294
|
]);
|
|
48295
48295
|
}
|
|
48296
|
-
var OptionGroup = /* @__PURE__ */ _export_sfc$2(_sfc_main$1n, [["render", _sfc_render$
|
|
48296
|
+
var OptionGroup = /* @__PURE__ */ _export_sfc$2(_sfc_main$1n, [["render", _sfc_render$m], ["__file", "option-group.vue"]]);
|
|
48297
48297
|
|
|
48298
48298
|
const COMPONENT_NAME$a = "ElSelect";
|
|
48299
48299
|
const _sfc_main$1m = defineComponent({
|
|
@@ -48425,7 +48425,7 @@ const _sfc_main$1m = defineComponent({
|
|
|
48425
48425
|
};
|
|
48426
48426
|
}
|
|
48427
48427
|
});
|
|
48428
|
-
function _sfc_render$
|
|
48428
|
+
function _sfc_render$l(_ctx, _cache) {
|
|
48429
48429
|
const _component_el_tag = resolveComponent("el-tag");
|
|
48430
48430
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
48431
48431
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -48799,7 +48799,7 @@ function _sfc_render$i(_ctx, _cache) {
|
|
|
48799
48799
|
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
|
48800
48800
|
]);
|
|
48801
48801
|
}
|
|
48802
|
-
var Select$2 = /* @__PURE__ */ _export_sfc$2(_sfc_main$1m, [["render", _sfc_render$
|
|
48802
|
+
var Select$2 = /* @__PURE__ */ _export_sfc$2(_sfc_main$1m, [["render", _sfc_render$l], ["__file", "select.vue"]]);
|
|
48803
48803
|
|
|
48804
48804
|
const ElSelect = withInstall(Select$2, {
|
|
48805
48805
|
Option,
|
|
@@ -50616,13 +50616,13 @@ const _sfc_main$1b = defineComponent({
|
|
|
50616
50616
|
};
|
|
50617
50617
|
}
|
|
50618
50618
|
});
|
|
50619
|
-
function _sfc_render$
|
|
50619
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50620
50620
|
return openBlock(), createElementBlock("div", {
|
|
50621
50621
|
class: normalizeClass(_ctx.ns.be("group", "title")),
|
|
50622
50622
|
style: normalizeStyle$1({ ..._ctx.style, lineHeight: `${_ctx.height}px` })
|
|
50623
50623
|
}, toDisplayString(_ctx.item.label), 7);
|
|
50624
50624
|
}
|
|
50625
|
-
var GroupItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1b, [["render", _sfc_render$
|
|
50625
|
+
var GroupItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1b, [["render", _sfc_render$k], ["__file", "group-item.vue"]]);
|
|
50626
50626
|
|
|
50627
50627
|
function useOption(props, { emit }) {
|
|
50628
50628
|
return {
|
|
@@ -50823,7 +50823,7 @@ const _sfc_main$1a = defineComponent({
|
|
|
50823
50823
|
};
|
|
50824
50824
|
}
|
|
50825
50825
|
});
|
|
50826
|
-
function _sfc_render$
|
|
50826
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50827
50827
|
return openBlock(), createElementBlock("li", {
|
|
50828
50828
|
id: `${_ctx.contentId}-${_ctx.index}`,
|
|
50829
50829
|
role: "option",
|
|
@@ -50849,7 +50849,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50849
50849
|
])
|
|
50850
50850
|
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick"]);
|
|
50851
50851
|
}
|
|
50852
|
-
var OptionItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1a, [["render", _sfc_render$
|
|
50852
|
+
var OptionItem = /* @__PURE__ */ _export_sfc$2(_sfc_main$1a, [["render", _sfc_render$j], ["__file", "option-item.vue"]]);
|
|
50853
50853
|
|
|
50854
50854
|
var safeIsNaN = Number.isNaN ||
|
|
50855
50855
|
function ponyfill(value) {
|
|
@@ -52961,7 +52961,7 @@ const _sfc_main$19 = defineComponent({
|
|
|
52961
52961
|
};
|
|
52962
52962
|
}
|
|
52963
52963
|
});
|
|
52964
|
-
function _sfc_render$
|
|
52964
|
+
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52965
52965
|
const _component_el_tag = resolveComponent("el-tag");
|
|
52966
52966
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
52967
52967
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -53317,7 +53317,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53317
53317
|
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
|
53318
53318
|
]);
|
|
53319
53319
|
}
|
|
53320
|
-
var Select$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$19, [["render", _sfc_render$
|
|
53320
|
+
var Select$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$19, [["render", _sfc_render$i], ["__file", "select.vue"]]);
|
|
53321
53321
|
|
|
53322
53322
|
const ElSelectV2 = withInstall(Select$1);
|
|
53323
53323
|
|
|
@@ -57220,7 +57220,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
57220
57220
|
};
|
|
57221
57221
|
}
|
|
57222
57222
|
});
|
|
57223
|
-
function _sfc_render$
|
|
57223
|
+
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
57224
57224
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
57225
57225
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
57226
57226
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
@@ -57337,7 +57337,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57337
57337
|
_: 3
|
|
57338
57338
|
}, 8, ["visible", "placement", "popper-class", "append-to"]);
|
|
57339
57339
|
}
|
|
57340
|
-
var FilterPanel = /* @__PURE__ */ _export_sfc$2(_sfc_main$$, [["render", _sfc_render$
|
|
57340
|
+
var FilterPanel = /* @__PURE__ */ _export_sfc$2(_sfc_main$$, [["render", _sfc_render$h], ["__file", "filter-panel.vue"]]);
|
|
57341
57341
|
|
|
57342
57342
|
function useLayoutObserver(root) {
|
|
57343
57343
|
const instance = getCurrentInstance();
|
|
@@ -59366,7 +59366,7 @@ const _sfc_main$Z = defineComponent({
|
|
|
59366
59366
|
};
|
|
59367
59367
|
}
|
|
59368
59368
|
});
|
|
59369
|
-
function _sfc_render$
|
|
59369
|
+
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59370
59370
|
const _component_hColgroup = resolveComponent("hColgroup");
|
|
59371
59371
|
const _component_table_header = resolveComponent("table-header");
|
|
59372
59372
|
const _component_table_body = resolveComponent("table-body");
|
|
@@ -59562,7 +59562,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
59562
59562
|
])
|
|
59563
59563
|
], 46, ["data-prefix", "onMouseleave"]);
|
|
59564
59564
|
}
|
|
59565
|
-
var Table$2 = /* @__PURE__ */ _export_sfc$2(_sfc_main$Z, [["render", _sfc_render$
|
|
59565
|
+
var Table$2 = /* @__PURE__ */ _export_sfc$2(_sfc_main$Z, [["render", _sfc_render$g], ["__file", "table.vue"]]);
|
|
59566
59566
|
|
|
59567
59567
|
const defaultClassNames = {
|
|
59568
59568
|
selection: "table-column--selection",
|
|
@@ -66034,7 +66034,7 @@ const _sfc_main$Q = defineComponent({
|
|
|
66034
66034
|
};
|
|
66035
66035
|
}
|
|
66036
66036
|
});
|
|
66037
|
-
function _sfc_render$
|
|
66037
|
+
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66038
66038
|
const _component_el_icon = resolveComponent("el-icon");
|
|
66039
66039
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
66040
66040
|
const _component_loading = resolveComponent("loading");
|
|
@@ -66141,7 +66141,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66141
66141
|
[vShow, _ctx.node.visible]
|
|
66142
66142
|
]);
|
|
66143
66143
|
}
|
|
66144
|
-
var ElTreeNode$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$Q, [["render", _sfc_render$
|
|
66144
|
+
var ElTreeNode$1 = /* @__PURE__ */ _export_sfc$2(_sfc_main$Q, [["render", _sfc_render$f], ["__file", "tree-node.vue"]]);
|
|
66145
66145
|
|
|
66146
66146
|
function useKeydown({ el$ }, store) {
|
|
66147
66147
|
const ns = useNamespace("tree");
|
|
@@ -66521,7 +66521,7 @@ const _sfc_main$P = defineComponent({
|
|
|
66521
66521
|
};
|
|
66522
66522
|
}
|
|
66523
66523
|
});
|
|
66524
|
-
function _sfc_render$
|
|
66524
|
+
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66525
66525
|
const _component_el_tree_node = resolveComponent("el-tree-node");
|
|
66526
66526
|
return openBlock(), createElementBlock("div", {
|
|
66527
66527
|
ref: "el$",
|
|
@@ -66567,7 +66567,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
66567
66567
|
])
|
|
66568
66568
|
], 2);
|
|
66569
66569
|
}
|
|
66570
|
-
var Tree = /* @__PURE__ */ _export_sfc$2(_sfc_main$P, [["render", _sfc_render$
|
|
66570
|
+
var Tree = /* @__PURE__ */ _export_sfc$2(_sfc_main$P, [["render", _sfc_render$e], ["__file", "tree.vue"]]);
|
|
66571
66571
|
|
|
66572
66572
|
const ElTree = withInstall(Tree);
|
|
66573
66573
|
|
|
@@ -74767,7 +74767,7 @@ const _sfc_main$t = defineComponent({
|
|
|
74767
74767
|
};
|
|
74768
74768
|
}
|
|
74769
74769
|
});
|
|
74770
|
-
function _sfc_render$
|
|
74770
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74771
74771
|
const _component_el_icon = resolveComponent("el-icon");
|
|
74772
74772
|
const _component_el_input = resolveComponent("el-input");
|
|
74773
74773
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -74963,7 +74963,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74963
74963
|
_: 3
|
|
74964
74964
|
}, 8, ["onAfterLeave"]);
|
|
74965
74965
|
}
|
|
74966
|
-
var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$2(_sfc_main$t, [["render", _sfc_render$
|
|
74966
|
+
var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$2(_sfc_main$t, [["render", _sfc_render$d], ["__file", "index.vue"]]);
|
|
74967
74967
|
|
|
74968
74968
|
const messageInstance = /* @__PURE__ */ new Map();
|
|
74969
74969
|
const getAppendToElement = (props) => {
|
|
@@ -75446,7 +75446,7 @@ const buttonProps = {
|
|
|
75446
75446
|
mini: Boolean
|
|
75447
75447
|
};
|
|
75448
75448
|
|
|
75449
|
-
var Button = defineComponent({
|
|
75449
|
+
var Button = /* @__PURE__ */ defineComponent({
|
|
75450
75450
|
name: "BcButton",
|
|
75451
75451
|
components: {
|
|
75452
75452
|
ElButton,
|
|
@@ -75642,14 +75642,14 @@ var _export_sfc$1 = (sfc, props) => {
|
|
|
75642
75642
|
return target;
|
|
75643
75643
|
};
|
|
75644
75644
|
|
|
75645
|
-
function _sfc_render$
|
|
75645
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75646
75646
|
return openBlock(), createElementBlock("div", {
|
|
75647
75647
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
75648
75648
|
}, [
|
|
75649
75649
|
renderSlot(_ctx.$slots, "default")
|
|
75650
75650
|
]);
|
|
75651
75651
|
}
|
|
75652
|
-
var Clipboard = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$
|
|
75652
|
+
var Clipboard = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["render", _sfc_render$c], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/clipboard/src/clipboard.vue"]]);
|
|
75653
75653
|
|
|
75654
75654
|
const BcClipboard = compInstall(Clipboard);
|
|
75655
75655
|
|
|
@@ -75734,7 +75734,7 @@ function isObject$1(a) {
|
|
|
75734
75734
|
return Object.prototype.toString.call(a) === "[object Object]";
|
|
75735
75735
|
}
|
|
75736
75736
|
|
|
75737
|
-
var ConfigProvider = defineComponent({
|
|
75737
|
+
var ConfigProvider = /* @__PURE__ */ defineComponent({
|
|
75738
75738
|
name: "BcConfigProvider",
|
|
75739
75739
|
props: configProviderProps,
|
|
75740
75740
|
setup(props, {
|
|
@@ -75995,20 +75995,18 @@ var warning_filled_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
75995
75995
|
// src/components/warning-filled.vue
|
|
75996
75996
|
var warning_filled_default = warning_filled_vue_vue_type_script_setup_true_lang_default;
|
|
75997
75997
|
|
|
75998
|
-
|
|
75999
|
-
|
|
76000
|
-
|
|
76001
|
-
|
|
76002
|
-
|
|
76003
|
-
|
|
76004
|
-
|
|
76005
|
-
|
|
75998
|
+
var _sfc_main$q = defineComponent({
|
|
75999
|
+
name: "BcDialog",
|
|
76000
|
+
components: {
|
|
76001
|
+
ElButton,
|
|
76002
|
+
ElDialog,
|
|
76003
|
+
ElIcon,
|
|
76004
|
+
ElScrollbar,
|
|
76005
|
+
IconFullScreen: full_screen_default
|
|
76006
|
+
},
|
|
76006
76007
|
props: dialogProps,
|
|
76007
76008
|
emits: dialogEmits,
|
|
76008
|
-
setup(
|
|
76009
|
-
const props = __props;
|
|
76010
|
-
const slots = useSlots();
|
|
76011
|
-
const rawAttrs = useAttrs$1();
|
|
76009
|
+
setup(props, { slots, attrs: rawAttrs, emit, expose }) {
|
|
76012
76010
|
const loading = ref(false);
|
|
76013
76011
|
const visible = ref(false);
|
|
76014
76012
|
watch(() => props.modelValue, (show) => {
|
|
@@ -76064,75 +76062,110 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
76064
76062
|
function setLoading(state) {
|
|
76065
76063
|
loading.value = state;
|
|
76066
76064
|
}
|
|
76067
|
-
|
|
76065
|
+
expose({
|
|
76068
76066
|
open,
|
|
76069
76067
|
close,
|
|
76070
76068
|
setLoading
|
|
76071
76069
|
});
|
|
76072
|
-
return
|
|
76073
|
-
|
|
76074
|
-
|
|
76075
|
-
|
|
76076
|
-
|
|
76077
|
-
|
|
76078
|
-
|
|
76079
|
-
|
|
76080
|
-
|
|
76081
|
-
|
|
76082
|
-
|
|
76083
|
-
|
|
76084
|
-
|
|
76070
|
+
return {
|
|
76071
|
+
visible,
|
|
76072
|
+
loading,
|
|
76073
|
+
fullscreen,
|
|
76074
|
+
close,
|
|
76075
|
+
hasHeader,
|
|
76076
|
+
hasTitle,
|
|
76077
|
+
rawAttrs,
|
|
76078
|
+
handleFullScreen,
|
|
76079
|
+
scrollbarClass,
|
|
76080
|
+
hasFooter,
|
|
76081
|
+
handleCancel,
|
|
76082
|
+
handleSubmit
|
|
76083
|
+
};
|
|
76084
|
+
}
|
|
76085
|
+
});
|
|
76086
|
+
|
|
76087
|
+
const _hoisted_1$f = { class: "bc-dialog-header" };
|
|
76088
|
+
const _hoisted_2$7 = {
|
|
76089
|
+
key: 2,
|
|
76090
|
+
class: "text"
|
|
76091
|
+
};
|
|
76092
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76093
|
+
const _component_IconFullScreen = resolveComponent("IconFullScreen");
|
|
76094
|
+
const _component_ElIcon = resolveComponent("ElIcon");
|
|
76095
|
+
const _component_ElScrollbar = resolveComponent("ElScrollbar");
|
|
76096
|
+
const _component_ElButton = resolveComponent("ElButton");
|
|
76097
|
+
const _component_ElDialog = resolveComponent("ElDialog");
|
|
76098
|
+
return openBlock(), createBlock(_component_ElDialog, mergeProps({
|
|
76099
|
+
"model-value": _ctx.visible,
|
|
76100
|
+
"close-on-click-modal": false,
|
|
76101
|
+
fullscreen: _ctx.fullscreen
|
|
76102
|
+
}, _ctx.$attrs, { "onUpdate:modelValue": _ctx.close }), createSlots({
|
|
76103
|
+
header: withCtx(() => [
|
|
76104
|
+
createBaseVNode("header", _hoisted_1$f, [
|
|
76105
|
+
_ctx.hasHeader ? renderSlot(_ctx.$slots, "header", { key: 0 }) : _ctx.hasTitle ? renderSlot(_ctx.$slots, "title", { key: 1 }) : (openBlock(), createElementBlock(
|
|
76106
|
+
"span",
|
|
76107
|
+
_hoisted_2$7,
|
|
76108
|
+
toDisplayString(_ctx.rawAttrs.title),
|
|
76109
|
+
1
|
|
76110
|
+
/* TEXT */
|
|
76111
|
+
)),
|
|
76112
|
+
_ctx.needFullscreen ? (openBlock(), createBlock(_component_ElIcon, {
|
|
76113
|
+
key: 3,
|
|
76114
|
+
style: { "cursor": "pointer" },
|
|
76115
|
+
onClick: _ctx.handleFullScreen
|
|
76116
|
+
}, {
|
|
76117
|
+
default: withCtx(() => [
|
|
76118
|
+
createVNode(_component_IconFullScreen)
|
|
76119
|
+
]),
|
|
76120
|
+
_: 1
|
|
76121
|
+
/* STABLE */
|
|
76122
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
76123
|
+
])
|
|
76124
|
+
]),
|
|
76125
|
+
default: withCtx(() => [
|
|
76126
|
+
createVNode(_component_ElScrollbar, {
|
|
76127
|
+
class: normalizeClass(_ctx.scrollbarClass)
|
|
76128
|
+
}, {
|
|
76129
|
+
default: withCtx(() => [
|
|
76130
|
+
renderSlot(_ctx.$slots, "default")
|
|
76131
|
+
]),
|
|
76132
|
+
_: 3
|
|
76133
|
+
/* FORWARDED */
|
|
76134
|
+
}, 8, ["class"])
|
|
76135
|
+
]),
|
|
76136
|
+
_: 2
|
|
76137
|
+
/* DYNAMIC */
|
|
76138
|
+
}, [
|
|
76139
|
+
_ctx.hasFooter || !_ctx.noFooter ? {
|
|
76140
|
+
name: "footer",
|
|
76141
|
+
fn: withCtx(() => [
|
|
76142
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
76143
|
+
createBaseVNode("footer", null, [
|
|
76144
|
+
createVNode(_component_ElButton, { onClick: _ctx.handleCancel }, {
|
|
76145
|
+
default: withCtx(() => [
|
|
76146
|
+
createTextVNode(" \u53D6\u6D88 ")
|
|
76147
|
+
]),
|
|
76148
|
+
_: 1
|
|
76149
|
+
/* STABLE */
|
|
76150
|
+
}, 8, ["onClick"]),
|
|
76151
|
+
createVNode(_component_ElButton, {
|
|
76152
|
+
loading: _ctx.loading,
|
|
76153
|
+
onClick: _ctx.handleSubmit
|
|
76085
76154
|
}, {
|
|
76086
76155
|
default: withCtx(() => [
|
|
76087
|
-
|
|
76156
|
+
createTextVNode(" \u786E\u8BA4 ")
|
|
76088
76157
|
]),
|
|
76089
76158
|
_: 1
|
|
76090
|
-
|
|
76159
|
+
/* STABLE */
|
|
76160
|
+
}, 8, ["loading", "onClick"])
|
|
76091
76161
|
])
|
|
76092
|
-
])
|
|
76093
|
-
|
|
76094
|
-
|
|
76095
|
-
|
|
76096
|
-
|
|
76097
|
-
|
|
76098
|
-
|
|
76099
|
-
]),
|
|
76100
|
-
_: 3
|
|
76101
|
-
}, 8, ["class"])
|
|
76102
|
-
]),
|
|
76103
|
-
_: 2
|
|
76104
|
-
}, [
|
|
76105
|
-
hasFooter.value || !_ctx.noFooter ? {
|
|
76106
|
-
name: "footer",
|
|
76107
|
-
fn: withCtx(() => [
|
|
76108
|
-
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
76109
|
-
createBaseVNode("footer", null, [
|
|
76110
|
-
createVNode(unref(ElButton), { onClick: handleCancel }, {
|
|
76111
|
-
default: withCtx(() => [
|
|
76112
|
-
createTextVNode(" \u53D6\u6D88 ")
|
|
76113
|
-
]),
|
|
76114
|
-
_: 1
|
|
76115
|
-
}),
|
|
76116
|
-
createVNode(unref(ElButton), {
|
|
76117
|
-
loading: loading.value,
|
|
76118
|
-
onClick: handleSubmit
|
|
76119
|
-
}, {
|
|
76120
|
-
default: withCtx(() => [
|
|
76121
|
-
createTextVNode(" \u786E\u8BA4 ")
|
|
76122
|
-
]),
|
|
76123
|
-
_: 1
|
|
76124
|
-
}, 8, ["loading"])
|
|
76125
|
-
])
|
|
76126
|
-
])
|
|
76127
|
-
]),
|
|
76128
|
-
key: "0"
|
|
76129
|
-
} : void 0
|
|
76130
|
-
]), 1040, ["model-value", "fullscreen"]);
|
|
76131
|
-
};
|
|
76132
|
-
}
|
|
76133
|
-
});
|
|
76134
|
-
|
|
76135
|
-
var Dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/dialog/src/dialog.vue"]]);
|
|
76162
|
+
])
|
|
76163
|
+
]),
|
|
76164
|
+
key: "0"
|
|
76165
|
+
} : void 0
|
|
76166
|
+
]), 1040, ["model-value", "fullscreen", "onUpdate:modelValue"]);
|
|
76167
|
+
}
|
|
76168
|
+
var Dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_render$b], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/dialog/src/dialog.vue"]]);
|
|
76136
76169
|
|
|
76137
76170
|
const createDialog$1 = function(component, props = {}) {
|
|
76138
76171
|
const compRef = shallowRef();
|
|
@@ -76214,7 +76247,7 @@ const inputProps = {
|
|
|
76214
76247
|
}
|
|
76215
76248
|
};
|
|
76216
76249
|
|
|
76217
|
-
var Input = defineComponent({
|
|
76250
|
+
var Input = /* @__PURE__ */ defineComponent({
|
|
76218
76251
|
name: "BcInput",
|
|
76219
76252
|
components: {
|
|
76220
76253
|
DocumentCopy: document_copy_default,
|
|
@@ -76319,7 +76352,7 @@ var _sfc_main$p = defineComponent({
|
|
|
76319
76352
|
}
|
|
76320
76353
|
});
|
|
76321
76354
|
|
|
76322
|
-
function _sfc_render$
|
|
76355
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76323
76356
|
return openBlock(), createBlock(Transition, mergeProps({
|
|
76324
76357
|
class: "bc-motion-config",
|
|
76325
76358
|
name: _ctx.name
|
|
@@ -76338,7 +76371,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76338
76371
|
/* FORWARDED */
|
|
76339
76372
|
}, 16, ["name", "style"]);
|
|
76340
76373
|
}
|
|
76341
|
-
var Motion = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$
|
|
76374
|
+
var Motion = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$a], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/motion/src/CssMotion.vue"]]);
|
|
76342
76375
|
|
|
76343
76376
|
const BcMotion = compInstall(Motion);
|
|
76344
76377
|
|
|
@@ -76353,7 +76386,7 @@ const motionGroupProps = {
|
|
|
76353
76386
|
}
|
|
76354
76387
|
};
|
|
76355
76388
|
|
|
76356
|
-
var MotionGroup = defineComponent({
|
|
76389
|
+
var MotionGroup = /* @__PURE__ */ defineComponent({
|
|
76357
76390
|
name: "BcMotionGroup",
|
|
76358
76391
|
props: motionGroupProps,
|
|
76359
76392
|
setup(props, context) {
|
|
@@ -76529,7 +76562,7 @@ const _hoisted_6 = /* @__PURE__ */ createBaseVNode(
|
|
|
76529
76562
|
-1
|
|
76530
76563
|
/* HOISTED */
|
|
76531
76564
|
);
|
|
76532
|
-
function _sfc_render$
|
|
76565
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76533
76566
|
const _component_el_link = resolveComponent("el-link");
|
|
76534
76567
|
const _component_el_alert = resolveComponent("el-alert");
|
|
76535
76568
|
const _component_IconPlus = resolveComponent("IconPlus");
|
|
@@ -76619,14 +76652,14 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76619
76652
|
/* STABLE */
|
|
76620
76653
|
}, 8, ["modelValue"]);
|
|
76621
76654
|
}
|
|
76622
|
-
var Upload = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$
|
|
76655
|
+
var Upload = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$9], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/upload/src/upload.vue"]]);
|
|
76623
76656
|
|
|
76624
76657
|
const BcUpload = compInstall(Upload);
|
|
76625
76658
|
|
|
76626
76659
|
function _isSlot$1(s) {
|
|
76627
76660
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
76628
76661
|
}
|
|
76629
|
-
var Search = defineComponent({
|
|
76662
|
+
var Search = /* @__PURE__ */ defineComponent({
|
|
76630
76663
|
name: "BcSearch",
|
|
76631
76664
|
components: {
|
|
76632
76665
|
ElForm,
|
|
@@ -76883,7 +76916,21 @@ var _sfc_main$n = defineComponent({
|
|
|
76883
76916
|
});
|
|
76884
76917
|
const apiOptions = ref([]);
|
|
76885
76918
|
const selectOptions = computed(() => {
|
|
76886
|
-
|
|
76919
|
+
const labelName = optionLabel.value;
|
|
76920
|
+
const valueName = optionValue.value;
|
|
76921
|
+
const options = props.options || apiOptions.value || [];
|
|
76922
|
+
const res = [];
|
|
76923
|
+
for (const item of options) {
|
|
76924
|
+
if (typeof item !== "object") {
|
|
76925
|
+
res.push({
|
|
76926
|
+
[labelName]: item,
|
|
76927
|
+
[valueName]: item
|
|
76928
|
+
});
|
|
76929
|
+
} else {
|
|
76930
|
+
res.push(item);
|
|
76931
|
+
}
|
|
76932
|
+
}
|
|
76933
|
+
return res;
|
|
76887
76934
|
});
|
|
76888
76935
|
const needGroup = computed(() => {
|
|
76889
76936
|
if (!props.group) {
|
|
@@ -77008,7 +77055,7 @@ var _sfc_main$n = defineComponent({
|
|
|
77008
77055
|
});
|
|
77009
77056
|
|
|
77010
77057
|
const _hoisted_1$d = { key: 1 };
|
|
77011
|
-
function _sfc_render$
|
|
77058
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77012
77059
|
const _component_ElOption = resolveComponent("ElOption");
|
|
77013
77060
|
const _component_ElOptionGroup = resolveComponent("ElOptionGroup");
|
|
77014
77061
|
const _component_ElSelect = resolveComponent("ElSelect");
|
|
@@ -77089,7 +77136,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77089
77136
|
/* TEXT */
|
|
77090
77137
|
));
|
|
77091
77138
|
}
|
|
77092
|
-
var Select = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$
|
|
77139
|
+
var Select = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$8], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/select/src/select.vue"]]);
|
|
77093
77140
|
|
|
77094
77141
|
const BcSelect = compInstall(Select);
|
|
77095
77142
|
|
|
@@ -77147,7 +77194,7 @@ const _hoisted_3$2 = {
|
|
|
77147
77194
|
key: 3,
|
|
77148
77195
|
class: "svg-badge"
|
|
77149
77196
|
};
|
|
77150
|
-
function _sfc_render$
|
|
77197
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77151
77198
|
return openBlock(), createElementBlock(
|
|
77152
77199
|
"span",
|
|
77153
77200
|
{
|
|
@@ -77195,11 +77242,11 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77195
77242
|
/* CLASS, STYLE */
|
|
77196
77243
|
);
|
|
77197
77244
|
}
|
|
77198
|
-
var SvgIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$
|
|
77245
|
+
var SvgIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$7], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/svgIcon/svgIcon.vue"]]);
|
|
77199
77246
|
|
|
77200
77247
|
const BcSvgIcon = compInstall(SvgIcon);
|
|
77201
77248
|
|
|
77202
|
-
var cellEdit = defineComponent({
|
|
77249
|
+
var cellEdit = /* @__PURE__ */ defineComponent({
|
|
77203
77250
|
name: "BcTableCellEdit",
|
|
77204
77251
|
directives: {
|
|
77205
77252
|
focus: {
|
|
@@ -77427,7 +77474,7 @@ function useSelection(rowSelectionRef, configRef) {
|
|
|
77427
77474
|
function _isSlot(s) {
|
|
77428
77475
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
77429
77476
|
}
|
|
77430
|
-
var customTable = defineComponent({
|
|
77477
|
+
var customTable = /* @__PURE__ */ defineComponent({
|
|
77431
77478
|
name: "CustomTable",
|
|
77432
77479
|
components: {
|
|
77433
77480
|
CellEdit: cellEdit,
|
|
@@ -77656,7 +77703,7 @@ var _sfc_main$l = defineComponent({
|
|
|
77656
77703
|
}
|
|
77657
77704
|
});
|
|
77658
77705
|
|
|
77659
|
-
function _sfc_render$
|
|
77706
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77660
77707
|
const _component_ElPagination = resolveComponent("ElPagination");
|
|
77661
77708
|
return openBlock(), createBlock(_component_ElPagination, mergeProps({
|
|
77662
77709
|
class: "bc-pagination",
|
|
@@ -77666,7 +77713,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77666
77713
|
layout: _ctx.layout
|
|
77667
77714
|
}, _ctx.$attrs), null, 16, ["background", "page-sizes", "layout"]);
|
|
77668
77715
|
}
|
|
77669
|
-
var customPagination = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$
|
|
77716
|
+
var customPagination = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$6], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/table/src/pagination.vue"]]);
|
|
77670
77717
|
|
|
77671
77718
|
const tableProps = {
|
|
77672
77719
|
arrayName: {
|
|
@@ -77688,7 +77735,7 @@ const tableProps = {
|
|
|
77688
77735
|
type: Boolean,
|
|
77689
77736
|
default: true
|
|
77690
77737
|
},
|
|
77691
|
-
pagination: Boolean,
|
|
77738
|
+
pagination: [Object, Boolean],
|
|
77692
77739
|
api: Function,
|
|
77693
77740
|
modelValue: {
|
|
77694
77741
|
type: Object,
|
|
@@ -77724,7 +77771,7 @@ const tableEmits = {
|
|
|
77724
77771
|
save: (cell, prop, record) => typeof cell === "string" && typeof prop === "string" && typeof record === "object"
|
|
77725
77772
|
};
|
|
77726
77773
|
|
|
77727
|
-
var Table = defineComponent({
|
|
77774
|
+
var Table = /* @__PURE__ */ defineComponent({
|
|
77728
77775
|
name: "BcTable",
|
|
77729
77776
|
components: {
|
|
77730
77777
|
CustomTable: customTable,
|
|
@@ -77939,6 +77986,13 @@ var Table = defineComponent({
|
|
|
77939
77986
|
function handleSimpleRowsChange(rows) {
|
|
77940
77987
|
simpleTable.rows = rows;
|
|
77941
77988
|
}
|
|
77989
|
+
const paginationConfig = computed(() => {
|
|
77990
|
+
if (["string", "boolean"].includes(typeof props.pagination)) {
|
|
77991
|
+
return {};
|
|
77992
|
+
} else {
|
|
77993
|
+
return props.pagination;
|
|
77994
|
+
}
|
|
77995
|
+
});
|
|
77942
77996
|
const pagination = () => {
|
|
77943
77997
|
if (!props.pagination) {
|
|
77944
77998
|
return null;
|
|
@@ -77947,23 +78001,24 @@ var Table = defineComponent({
|
|
|
77947
78001
|
"currentPage": simpleTable.page,
|
|
77948
78002
|
"onUpdate:currentPage": ($event) => simpleTable.page = $event,
|
|
77949
78003
|
"pageSize": simpleTable.rows,
|
|
77950
|
-
"onUpdate:pageSize": ($event) => simpleTable.rows = $event
|
|
77951
|
-
}, {
|
|
77952
|
-
"onUpdate:currentPage": handleSimplePageChange,
|
|
77953
|
-
"onUpdate:pageSize": handleSimpleRowsChange
|
|
77954
|
-
}, {
|
|
78004
|
+
"onUpdate:pageSize": ($event) => simpleTable.rows = $event,
|
|
77955
78005
|
"total": tableData.value.length,
|
|
77956
78006
|
"layout": "prev, pager, next"
|
|
78007
|
+
}, {
|
|
78008
|
+
"onUpdate:currentPage": handleSimplePageChange,
|
|
78009
|
+
"onUpdate:pageSize": handleSimpleRowsChange,
|
|
78010
|
+
...paginationConfig.value
|
|
77957
78011
|
}), null) : createVNode(resolveComponent("custom-pagination"), mergeProps({
|
|
77958
78012
|
"currentPage": searchModel.value.page,
|
|
77959
78013
|
"onUpdate:currentPage": ($event) => searchModel.value.page = $event,
|
|
77960
78014
|
"pageSize": searchModel.value.rows,
|
|
77961
|
-
"onUpdate:pageSize": ($event) => searchModel.value.rows = $event
|
|
78015
|
+
"onUpdate:pageSize": ($event) => searchModel.value.rows = $event,
|
|
78016
|
+
"total": props.custom ? props.total : arrayTotal.value
|
|
77962
78017
|
}, {
|
|
77963
78018
|
"onUpdate:currentPage": handlePageChange,
|
|
77964
|
-
"onUpdate:pageSize": handleRowsChange
|
|
77965
|
-
|
|
77966
|
-
|
|
78019
|
+
"onUpdate:pageSize": handleRowsChange,
|
|
78020
|
+
...context.attrs,
|
|
78021
|
+
...paginationConfig.value
|
|
77967
78022
|
}), null);
|
|
77968
78023
|
};
|
|
77969
78024
|
context.expose({
|
|
@@ -78007,7 +78062,7 @@ var _sfc_main$k = defineComponent({
|
|
|
78007
78062
|
});
|
|
78008
78063
|
|
|
78009
78064
|
const _hoisted_1$b = { class: "bc-status" };
|
|
78010
|
-
function _sfc_render$
|
|
78065
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78011
78066
|
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
78012
78067
|
createBaseVNode(
|
|
78013
78068
|
"i",
|
|
@@ -78021,11 +78076,11 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78021
78076
|
renderSlot(_ctx.$slots, "default")
|
|
78022
78077
|
]);
|
|
78023
78078
|
}
|
|
78024
|
-
var Status = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$
|
|
78079
|
+
var Status = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$5], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/status/src/index.vue"]]);
|
|
78025
78080
|
|
|
78026
78081
|
const BcStatus = compInstall(Status);
|
|
78027
78082
|
|
|
78028
|
-
var DatePicker = defineComponent({
|
|
78083
|
+
var DatePicker = /* @__PURE__ */ defineComponent({
|
|
78029
78084
|
name: "BcDatePicker",
|
|
78030
78085
|
components: {
|
|
78031
78086
|
ElDatePicker
|
|
@@ -78084,24 +78139,30 @@ var DatePicker = defineComponent({
|
|
|
78084
78139
|
|
|
78085
78140
|
const BcDatePicker = compInstall(DatePicker);
|
|
78086
78141
|
|
|
78087
|
-
var _sfc_main$j =
|
|
78088
|
-
|
|
78089
|
-
|
|
78090
|
-
|
|
78091
|
-
__name: "form",
|
|
78092
|
-
setup(__props) {
|
|
78093
|
-
return (_ctx, _cache) => {
|
|
78094
|
-
return openBlock(), createBlock(unref(ElForm), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
|
78095
|
-
default: withCtx(() => [
|
|
78096
|
-
renderSlot(_ctx.$slots, "default")
|
|
78097
|
-
]),
|
|
78098
|
-
_: 3
|
|
78099
|
-
}, 16);
|
|
78100
|
-
};
|
|
78142
|
+
var _sfc_main$j = defineComponent({
|
|
78143
|
+
name: "BcForm",
|
|
78144
|
+
components: {
|
|
78145
|
+
ElForm
|
|
78101
78146
|
}
|
|
78102
78147
|
});
|
|
78103
78148
|
|
|
78104
|
-
|
|
78149
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78150
|
+
const _component_ElForm = resolveComponent("ElForm");
|
|
78151
|
+
return openBlock(), createBlock(
|
|
78152
|
+
_component_ElForm,
|
|
78153
|
+
normalizeProps(guardReactiveProps(_ctx.$attrs)),
|
|
78154
|
+
{
|
|
78155
|
+
default: withCtx(() => [
|
|
78156
|
+
renderSlot(_ctx.$slots, "default")
|
|
78157
|
+
]),
|
|
78158
|
+
_: 3
|
|
78159
|
+
/* FORWARDED */
|
|
78160
|
+
},
|
|
78161
|
+
16
|
|
78162
|
+
/* FULL_PROPS */
|
|
78163
|
+
);
|
|
78164
|
+
}
|
|
78165
|
+
var Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$4], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/form/src/form.vue"]]);
|
|
78105
78166
|
|
|
78106
78167
|
const formItemProps = {
|
|
78107
78168
|
required: {
|
|
@@ -78110,15 +78171,13 @@ const formItemProps = {
|
|
|
78110
78171
|
}
|
|
78111
78172
|
};
|
|
78112
78173
|
|
|
78113
|
-
var _sfc_main$i =
|
|
78114
|
-
|
|
78115
|
-
|
|
78174
|
+
var _sfc_main$i = defineComponent({
|
|
78175
|
+
name: "BcFormItem",
|
|
78176
|
+
components: {
|
|
78177
|
+
ElFormItem
|
|
78116
78178
|
},
|
|
78117
|
-
__name: "formItem",
|
|
78118
78179
|
props: formItemProps,
|
|
78119
|
-
setup(
|
|
78120
|
-
const props = __props;
|
|
78121
|
-
const rawAttrs = useAttrs$1();
|
|
78180
|
+
setup(props, { attrs: rawAttrs }) {
|
|
78122
78181
|
const message = computed(() => {
|
|
78123
78182
|
if (typeof props.required === "string") {
|
|
78124
78183
|
return props.required;
|
|
@@ -78132,21 +78191,33 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
78132
78191
|
}
|
|
78133
78192
|
return void 0;
|
|
78134
78193
|
});
|
|
78135
|
-
return
|
|
78136
|
-
|
|
78137
|
-
|
|
78138
|
-
rules: rules.value
|
|
78139
|
-
})), {
|
|
78140
|
-
default: withCtx(() => [
|
|
78141
|
-
renderSlot(_ctx.$slots, "default")
|
|
78142
|
-
]),
|
|
78143
|
-
_: 3
|
|
78144
|
-
}, 16);
|
|
78194
|
+
return {
|
|
78195
|
+
rules,
|
|
78196
|
+
message
|
|
78145
78197
|
};
|
|
78146
78198
|
}
|
|
78147
78199
|
});
|
|
78148
78200
|
|
|
78149
|
-
|
|
78201
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78202
|
+
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
78203
|
+
return openBlock(), createBlock(
|
|
78204
|
+
_component_ElFormItem,
|
|
78205
|
+
normalizeProps(guardReactiveProps({
|
|
78206
|
+
..._ctx.$attrs,
|
|
78207
|
+
rules: _ctx.rules
|
|
78208
|
+
})),
|
|
78209
|
+
{
|
|
78210
|
+
default: withCtx(() => [
|
|
78211
|
+
renderSlot(_ctx.$slots, "default")
|
|
78212
|
+
]),
|
|
78213
|
+
_: 3
|
|
78214
|
+
/* FORWARDED */
|
|
78215
|
+
},
|
|
78216
|
+
16
|
|
78217
|
+
/* FULL_PROPS */
|
|
78218
|
+
);
|
|
78219
|
+
}
|
|
78220
|
+
var FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$3], ["__file", "/home/runner/work/basic-comp/basic-comp/packages/components/form/src/formItem.vue"]]);
|
|
78150
78221
|
|
|
78151
78222
|
const _Form = compInstall(Form);
|
|
78152
78223
|
const _FormItem = compInstall(FormItem);
|
|
@@ -106133,7 +106204,6 @@ const useEditor = defineStore("editor", () => {
|
|
|
106133
106204
|
});
|
|
106134
106205
|
|
|
106135
106206
|
const useApp = defineStore("app", () => {
|
|
106136
|
-
const editor = useEditor();
|
|
106137
106207
|
const widgets = shallowRef();
|
|
106138
106208
|
const widgetMap = /* @__PURE__ */ new Map();
|
|
106139
106209
|
function setWidgets(data) {
|
|
@@ -106152,7 +106222,12 @@ const useApp = defineStore("app", () => {
|
|
|
106152
106222
|
}
|
|
106153
106223
|
});
|
|
106154
106224
|
if (widgetMap.has("page")) {
|
|
106155
|
-
editor
|
|
106225
|
+
const editor = useEditor();
|
|
106226
|
+
const widget = widgetMap.get("page");
|
|
106227
|
+
editor.rootNode = new Node$1(
|
|
106228
|
+
widget,
|
|
106229
|
+
JSON.parse(JSON.stringify({ props: widget.defaultData, style: widget.defaultStyle }))
|
|
106230
|
+
);
|
|
106156
106231
|
}
|
|
106157
106232
|
}
|
|
106158
106233
|
function isGroup(data) {
|
|
@@ -106232,7 +106307,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
106232
106307
|
}
|
|
106233
106308
|
});
|
|
106234
106309
|
|
|
106235
|
-
const _style_0$7 = "@charset \"UTF-8\";\n.node-container[data-v-
|
|
106310
|
+
const _style_0$7 = "@charset \"UTF-8\";\n.node-container[data-v-24c8a3d6] {\n width: 100%;\n height: 100%;\n background: #ddd;\n position: relative;\n}\n.node-container[data-v-24c8a3d6]::before {\n content: \"拖曳组件到这里\";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n color: #aaa;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}";
|
|
106236
106311
|
|
|
106237
106312
|
const _export_sfc = (sfc, props) => {
|
|
106238
106313
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -106242,7 +106317,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
106242
106317
|
return target;
|
|
106243
106318
|
};
|
|
106244
106319
|
|
|
106245
|
-
const NodeContainer = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["styles", [_style_0$7]], ["__scopeId", "data-v-
|
|
106320
|
+
const NodeContainer = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["styles", [_style_0$7]], ["__scopeId", "data-v-24c8a3d6"]]);
|
|
106246
106321
|
|
|
106247
106322
|
const _sfc_main$g = { };
|
|
106248
106323
|
|
|
@@ -106666,6 +106741,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
106666
106741
|
}
|
|
106667
106742
|
};
|
|
106668
106743
|
});
|
|
106744
|
+
if (type.value === "manual") {
|
|
106745
|
+
value.value = Number(props.modelValue);
|
|
106746
|
+
}
|
|
106669
106747
|
function onChange(type2) {
|
|
106670
106748
|
if (type2 === "auto") {
|
|
106671
106749
|
value.value = "100%";
|
|
@@ -106826,11 +106904,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
106826
106904
|
case "radio":
|
|
106827
106905
|
case "radioButton":
|
|
106828
106906
|
case "select": {
|
|
106829
|
-
console.log("type", props.config.type, props.config.link, props.config.key);
|
|
106830
106907
|
if (!props.config.link) {
|
|
106831
106908
|
return [];
|
|
106832
106909
|
}
|
|
106833
|
-
console.log(props.config.link, props.form[props.config.key]);
|
|
106834
106910
|
return props.config.link[props.form[props.config.key]] || [];
|
|
106835
106911
|
}
|
|
106836
106912
|
default:
|
|
@@ -107043,12 +107119,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
107043
107119
|
"wrap-style": "padding-right: 20px;"
|
|
107044
107120
|
}, {
|
|
107045
107121
|
default: withCtx(() => [
|
|
107046
|
-
|
|
107122
|
+
(openBlock(), createBlock(_sfc_main$7, {
|
|
107047
107123
|
ref: "propRef",
|
|
107124
|
+
key: unref(editor).selectedNode.wid,
|
|
107048
107125
|
modelValue: unref(editor).selectedNode.data,
|
|
107049
107126
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editor).selectedNode.data = $event),
|
|
107050
107127
|
list: propSchema.value
|
|
107051
|
-
}, null, 8, ["modelValue", "list"])
|
|
107128
|
+
}, null, 8, ["modelValue", "list"]))
|
|
107052
107129
|
]),
|
|
107053
107130
|
_: 1
|
|
107054
107131
|
})
|
|
@@ -107066,12 +107143,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
107066
107143
|
"wrap-style": "padding-right: 20px;"
|
|
107067
107144
|
}, {
|
|
107068
107145
|
default: withCtx(() => [
|
|
107069
|
-
|
|
107146
|
+
(openBlock(), createBlock(_sfc_main$7, {
|
|
107070
107147
|
ref: "styleRef",
|
|
107148
|
+
key: unref(editor).selectedNode.wid,
|
|
107071
107149
|
modelValue: unref(editor).selectedNode.style,
|
|
107072
107150
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(editor).selectedNode.style = $event),
|
|
107073
107151
|
list: styleSchema.value
|
|
107074
|
-
}, null, 8, ["modelValue", "list"])
|
|
107152
|
+
}, null, 8, ["modelValue", "list"]))
|
|
107075
107153
|
]),
|
|
107076
107154
|
_: 1
|
|
107077
107155
|
})
|
|
@@ -107348,7 +107426,7 @@ const _sfc_main$2 = {
|
|
|
107348
107426
|
return list.some((item) => !(item instanceof Widget));
|
|
107349
107427
|
}
|
|
107350
107428
|
function handleClone(original) {
|
|
107351
|
-
const node = new Node$1(original, { props: original.defaultData, style: original.defaultStyle });
|
|
107429
|
+
const node = new Node$1(original, JSON.parse(JSON.stringify({ props: original.defaultData, style: original.defaultStyle })));
|
|
107352
107430
|
editor.dragging = node;
|
|
107353
107431
|
return node;
|
|
107354
107432
|
}
|
|
@@ -107449,9 +107527,9 @@ const _sfc_main$2 = {
|
|
|
107449
107527
|
}
|
|
107450
107528
|
};
|
|
107451
107529
|
|
|
107452
|
-
const _style_0$1 = ".widgets-menu[data-v-
|
|
107530
|
+
const _style_0$1 = ".widgets-menu[data-v-c7d61bc1] {\n width: 300px;\n height: 100%;\n background-color: #ffffff;\n border-right: 1px solid #ebeef5;\n}\n.widgets-menu .widgets-tabs[data-v-c7d61bc1] {\n height: 100%;\n}\n.widgets-menu .widgets-tabs[data-v-c7d61bc1] .el-tabs__header {\n margin-bottom: 0;\n background: white;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.widgets-menu .widgets-tabs[data-v-c7d61bc1] .el-tabs__header .el-tabs__nav-wrap::after {\n background-color: #e4e7ed;\n}\n.widgets-menu .widgets-tabs[data-v-c7d61bc1] .el-tabs__header .el-tabs__item {\n color: #606266;\n transition: all 0.3s;\n position: relative;\n padding: 0 20px;\n}\n.widgets-menu .widgets-tabs[data-v-c7d61bc1] .el-tabs__header .el-tabs__item.is-active {\n color: #409eff;\n}\n.widgets-menu .widgets-tabs[data-v-c7d61bc1] .el-tabs__content {\n flex: 1;\n overflow: hidden;\n}\n.widgets-menu .widgets-card[data-v-c7d61bc1] {\n height: 100%;\n border: none;\n background: transparent;\n}\n.widgets-menu .widgets-card[data-v-c7d61bc1] .el-card__header {\n background: white;\n border-bottom: 1px solid #ebeef5;\n padding: 15px 20px;\n}\n.widgets-menu .widgets-card .card-header[data-v-c7d61bc1] {\n font-size: 16px;\n font-weight: 500;\n color: #303133;\n}\n.widgets-menu .widgets-scrollbar[data-v-c7d61bc1] .el-scrollbar__bar {\n opacity: 0;\n transition: opacity 0.3s;\n}\n.widgets-menu .widgets-scrollbar[data-v-c7d61bc1]:hover .el-scrollbar__bar {\n opacity: 1;\n}\n.widgets-menu .widgets-grid[data-v-c7d61bc1] {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 12px;\n padding: 12px;\n}\n.widgets-menu .widgets-list[data-v-c7d61bc1] {\n padding: 12px;\n}\n.widgets-menu .widget-item[data-v-c7d61bc1] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background: white;\n border-radius: 4px;\n padding: 12px 6px;\n cursor: grab;\n transition: all 0.3s;\n border: 1px solid #ebeef5;\n}\n.widgets-menu .widget-item[data-v-c7d61bc1]:hover {\n border-color: #409eff;\n box-shadow: 0 0 6px rgba(64, 158, 255, 0.2);\n}\n.widgets-menu .widget-item .widget-icon[data-v-c7d61bc1] {\n font-size: 20px;\n margin-bottom: 6px;\n color: #606266;\n}\n.widgets-menu .widget-item .widget-name[data-v-c7d61bc1] {\n font-size: 12px;\n color: #606266;\n text-align: center;\n line-height: 1.4;\n}\n.widgets-menu .widget-item-simple[data-v-c7d61bc1] {\n padding: 10px 12px;\n background: white;\n border-radius: 4px;\n margin-bottom: 6px;\n cursor: grab;\n transition: all 0.2s;\n border: 1px solid #ebeef5;\n}\n.widgets-menu .widget-item-simple[data-v-c7d61bc1]:hover {\n border-color: #409eff;\n background: #ecf5ff;\n}";
|
|
107453
107531
|
|
|
107454
|
-
const WidgetsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["styles", [_style_0$1]], ["__scopeId", "data-v-
|
|
107532
|
+
const WidgetsMenu = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["styles", [_style_0$1]], ["__scopeId", "data-v-c7d61bc1"]]);
|
|
107455
107533
|
|
|
107456
107534
|
const editorProps = {
|
|
107457
107535
|
remoteUrl: {
|
|
@@ -107483,7 +107561,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
107483
107561
|
props: editorProps,
|
|
107484
107562
|
setup(__props, { expose: __expose }) {
|
|
107485
107563
|
const props = __props;
|
|
107486
|
-
const app = useApp();
|
|
107487
107564
|
const editor = useEditor();
|
|
107488
107565
|
const inst = getCurrentInstance();
|
|
107489
107566
|
const bus = new EventEmitter((event, ...args) => {
|
|
@@ -107541,7 +107618,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
107541
107618
|
editor.addNode(node);
|
|
107542
107619
|
}
|
|
107543
107620
|
const ViewRender = loadFromRemote("widgets", "remote");
|
|
107544
|
-
app.setWidgets(props.widgets);
|
|
107545
107621
|
const refConfigPanel = useTemplateRef("configPanelRef");
|
|
107546
107622
|
__expose({
|
|
107547
107623
|
validate() {
|
|
@@ -107588,8 +107664,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
107588
107664
|
createVNode(unref(ViewRender), {
|
|
107589
107665
|
scope: "widgets",
|
|
107590
107666
|
type: `${element.type}.view`,
|
|
107591
|
-
config: element
|
|
107592
|
-
|
|
107667
|
+
config: element,
|
|
107668
|
+
data: element.data
|
|
107669
|
+
}, null, 8, ["type", "config", "data"])
|
|
107593
107670
|
]),
|
|
107594
107671
|
_: 2
|
|
107595
107672
|
}, 1032, ["node"])
|
|
@@ -107650,6 +107727,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
107650
107727
|
if (inst) {
|
|
107651
107728
|
Object.assign(inst.appContext, app._context);
|
|
107652
107729
|
}
|
|
107730
|
+
const appStore = useApp();
|
|
107731
|
+
appStore.setWidgets(props.widgets);
|
|
107653
107732
|
const editor = useEditor();
|
|
107654
107733
|
editor.shadowRoot = useShadowRoot();
|
|
107655
107734
|
const updateModelValue = useDebounceFn(() => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sepveneto/dnde",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.4",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "GPL",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@element-plus/icons-vue": "^2.3.1",
|
|
41
41
|
"@module-federation/enhanced": "^0.21.0",
|
|
42
|
-
"@sepveneto/basic-comp": "^0.
|
|
42
|
+
"@sepveneto/basic-comp": "^0.10.7",
|
|
43
43
|
"@sepveneto/dnde-core": " *",
|
|
44
44
|
"@sepveneto/free-dom": "^0.14.7",
|
|
45
45
|
"@vueuse/core": "^13.3.0",
|