hs-admin-ui 16.0.8 → 16.0.9

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.
Files changed (24) hide show
  1. package/dist/{bcIcon-yArMcfT8.js → bcIcon-BnzU9Y20.cjs} +1 -1
  2. package/dist/{bcIcon-C9X7fHMn.mjs → bcIcon-CEW6HYbq.js} +1 -1
  3. package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-COr4IvZN.mjs → bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js} +2 -2
  4. package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BxwLctae.js → bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Dl660Hz3.cjs} +2 -2
  5. package/dist/{components-DLXckk4C.mjs → components-BweH2evj.js} +1 -1
  6. package/dist/components-D4Q0gfqQ.cjs +3 -0
  7. package/dist/element-plus-ui.js +1 -1
  8. package/dist/element-plus-ui.mjs +10 -10
  9. package/dist/h5.js +1 -1
  10. package/dist/h5.mjs +2 -2
  11. package/dist/{index-Cffr-T4a.mjs → index-BMV_E6GB.js} +3 -3
  12. package/dist/{index-D9s2LT3q.js → index-BS6I1KCa.cjs} +1 -1
  13. package/dist/{index-413Nqtv2.js → index-BqER59zX.cjs} +1 -1
  14. package/dist/{index-DbVnKvm5.mjs → index-fAYztMsu.js} +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/index.mjs +10 -10
  17. package/dist/vxe-table-ui.js +1 -1
  18. package/dist/vxe-table-ui.mjs +12 -12
  19. package/package.json +2 -1
  20. package/dist/components-BnTw-qiD.js +0 -3
  21. /package/dist/{_plugin-vue_export-helper-VLDak8vc.js → _plugin-vue_export-helper-VLDak8vc.cjs} +0 -0
  22. /package/dist/{_plugin-vue_export-helper-Y3IFIQZf.mjs → _plugin-vue_export-helper-Y3IFIQZf.js} +0 -0
  23. /package/dist/{bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-B4FHqtSa.js → bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-B4FHqtSa.cjs} +0 -0
  24. /package/dist/{bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.mjs → bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.js} +0 -0
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ao=require("./index-413Nqtv2.js"),Tt=require("./components-BnTw-qiD.js"),V=require("./index-D9s2LT3q.js"),qa=require("./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-B4FHqtSa.js"),e=require("vue"),l=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BxwLctae.js"),R=require("./_plugin-vue_export-helper-VLDak8vc.js");typeof String.prototype.removeHTMLTag>"u"&&(String.prototype.removeHTMLTag=function(){return this.replace(/<.+?>([^<>]+?)<.+?>/g,"$1")});(function(t,n){n(t),typeof define=="function"&&define.amd?define([],n):typeof module<"u"&&module.exports?module.exports=n():t.ws=n()})(window,function(t,n){if(!("WebSocket"in window))return;var a,o=document.createElement("div"),r={automaticOpen:!0,reconnectDecay:1.5,host:"127.0.0.1",port:54321,protocol:"ws"},i=function(u){switch(u.type){case"connecting":console.log("Connecting to cfprint.",u);break;case"open":console.log("Connected to cfprint.",u);break;case"close":console.log("Disconnected from cfprint.",u);break;case"message":console.log("Got a message from cfprint: "+u.data,u);break;case"error":console.log("A error occured: "+u.data,u);break;default:console.log("EVENT: ",u)}},s={CONNECTING:WebSocket.CONNECTING,OPEN:WebSocket.OPEN,CLOSING:WebSocket.CLOSING,CLOSED:WebSocket.CLOSED};function d(u,f,m){var h=this;this.ver="1.3.8.1",m||(m={});for(var p in r)typeof m[p]<"u"?this[p]=m[p]:this[p]=r[p];this.host=u||this.host,this.port=f||this.port,this.url=this.getURL(),this.readyState=WebSocket.CONNECTING;for(var _ in s)this[_]=s[_];return o.addEventListener("connecting",function(g){h!==window&&h.onconnecting(g)}),o.addEventListener("open",function(g){h!==window&&h.onopen(g)}),o.addEventListener("message",function(g){h!==window&&h.onmessage(g)}),o.addEventListener("close",function(g){h!==window&&h.onclose(g)}),o.addEventListener("error",function(g){h!==window&&h.onerror(g)}),this.addEventListener=o.addEventListener.bind(o),this.removeEventListener=o.removeEventListener.bind(o),this.dispatchEvent=o.dispatchEvent.bind(o),this.automaticOpen===!0&&this!==window&&this.open(),this}function c(u,f){var m=document.createEvent("CustomEvent");return m.initCustomEvent(u,!1,!1,f),m}return d.prototype.onconnecting=i,d.prototype.onopen=i,d.prototype.onmessage=i,d.prototype.onclose=i,d.prototype.onerror=i,d.prototype.setProtocol=function(u){this.wsocket&&(this.protocol=u)},d.prototype.setPort=function(u){this.wsocket&&(this.port=u)},d.prototype.setHost=function(u){this.wsocket&&(this.host=u)},d.prototype.getURL=function(u){return this.wsocket&&this.wsocket.readyState===this.OPEN?this.wsocket.url:(this.protocol||"ws")+"://"+(this.host||"127.0.0.1")+":"+(this.port||54321)},d.prototype.send=function(u){if(this.wsocket&&this.wsocket.readyState===1){var f="";if(typeof u=="string")f=u;else if(typeof u=="object")f=JSON.stringify(u,null,2);else{var m=c("error",{message:"Invalid data format, only json string or json object is allowed."});o.dispatchEvent(m);return}try{f=btoa(unescape(encodeURIComponent(f))),f="base64:"+f,this.wsocket.send(f)}catch(h){var m=c("error",{message:h.message});h.dispatchEvent(m)}}else{var f=c("error",{message:"Not connected to cfprint server or disconnected."});o.dispatchEvent(f)}},d.prototype.close=function(u,f){typeof u>"u"&&(u=1e3),this.wsocket&&this.wsocket.close(u,f)},d.prototype.open=function(){var u=this;return this.url=this.getURL(),a=new WebSocket(this.url,this.protocol||[]),o.dispatchEvent(c("connecting")),a.onopen=function(f){u.protocol=d.protocol,u.readyState=WebSocket.OPEN;var m=c("open");o.dispatchEvent(m)},a.onclose=function(f){u.readyState=WebSocket.CLOSED;var m=c("connecting");m.code=f.code,m.reason=f.reason,m.wasClean=f.wasClean,o.dispatchEvent(m),o.dispatchEvent(c("close"))},a.onmessage=function(f){var m=c("message");m.data=f.data,o.dispatchEvent(m)},a.onerror=function(f){var m=c("error");o.dispatchEvent(m)},this.wsocket=a,this},d.prototype.state=function(){return this.wsocket?this.wsocket.readyState:WebSocket.CLOSED},d.prototype.log=function(u,f){var m=this.output||"output",h=document.getElementById(m);if(h&&h.appendChild){var p=document.createElement("p");p.style.wordWrap="break-word",p.style.padding="8px",p.style.background="#eee",p.innerHTML="LOG: "+u,h.childNodes.length>0?h.insertBefore(p,h.childNodes[0]):h.appendChild(p)}f?console.log(u,f):console.log(u)},d});const Ma=(t,n=0)=>{if(n===0)return t;const a=e.ref(!1);let o=null;const r=()=>{o&&clearTimeout(o),o=setTimeout(()=>{a.value=t.value},n)};return e.onMounted(r),e.watch(()=>t.value,i=>{i?r():a.value=i}),a},Fa=R.buildProps({size:{type:[Number,String],values:R.componentSizes,default:"",validator:t=>R.isNumber(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:R.iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:R.definePropType(String),default:"cover"}}),Aa={error:t=>t instanceof Event},Ua=e.defineComponent({name:"ElAvatar"}),za=e.defineComponent({...Ua,props:Fa,emits:Aa,setup(t,{emit:n}){const a=t,o=R.useNamespace("avatar"),r=e.ref(!1),i=e.computed(()=>{const{size:u,icon:f,shape:m}=a,h=[o.b()];return R.isString(u)&&h.push(o.m(u)),f&&h.push(o.m("icon")),m&&h.push(o.m(m)),h}),s=e.computed(()=>{const{size:u}=a;return R.isNumber(u)?o.cssVarBlock({size:R.addUnit(u)||""}):void 0}),d=e.computed(()=>({objectFit:a.fit}));e.watch(()=>a.src,()=>r.value=!1);function c(u){r.value=!0,n("error",u)}return(u,f)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(i)),style:e.normalizeStyle(e.unref(s))},[(u.src||u.srcSet)&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:e.normalizeStyle(e.unref(d)),onError:c},null,44,["src","alt","srcset"])):u.icon?(e.openBlock(),e.createBlock(e.unref(R.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.icon)))]),_:1})):e.renderSlot(u.$slots,"default",{key:2})],6))}});var ja=R._export_sfc(za,[["__file","avatar.vue"]]);const Ha=R.withInstall(ja),Wa=R.buildProps({icon:{type:R.iconPropType,default:()=>R.back_default},title:String,content:{type:String,default:""}}),Ya={back:()=>!0},Ga=e.defineComponent({name:"ElPageHeader"}),Ka=e.defineComponent({...Ga,props:Wa,emits:Ya,setup(t,{emit:n}){const a=e.useSlots(),{t:o}=R.useLocale(),r=R.useNamespace("page-header"),i=e.computed(()=>[r.b(),{[r.m("has-breadcrumb")]:!!a.breadcrumb,[r.m("has-extra")]:!!a.extra,[r.is("contentful")]:!!a.default}]);function s(){n("back")}return(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i))},[d.$slots.breadcrumb?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("breadcrumb"))},[e.renderSlot(d.$slots,"breadcrumb")],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("left"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("back")),role:"button",tabindex:"0",onClick:s},[d.icon||d.$slots.icon?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":d.title||e.unref(o)("el.pageHeader.title"),class:e.normalizeClass(e.unref(r).e("icon"))},[e.renderSlot(d.$slots,"icon",{},()=>[d.icon?(e.openBlock(),e.createBlock(e.unref(R.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))]),_:1})):e.createCommentVNode("v-if",!0)])],10,["aria-label"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("title"))},[e.renderSlot(d.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(d.title||e.unref(o)("el.pageHeader.title")),1)])],2)],2),e.createVNode(e.unref(V.ElDivider),{direction:"vertical"}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("content"))},[e.renderSlot(d.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(d.content),1)])],2)],2),d.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("extra"))},[e.renderSlot(d.$slots,"extra")],2)):e.createCommentVNode("v-if",!0)],2),d.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).e("main"))},[e.renderSlot(d.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],2))}});var Qa=R._export_sfc(Ka,[["__file","page-header.vue"]]);const Xa=R.withInstall(Qa),Ja=({atXEndEdge:t,atXStartEdge:n,atYEndEdge:a,atYStartEdge:o},r)=>{let i=null,s=0,d=0;const c=(f,m)=>{const h=f<=0&&n.value||f>=0&&t.value,p=m<=0&&o.value||m>=0&&a.value;return h&&p};return{hasReachedEdge:c,onWheel:f=>{l.cAF(i);let m=f.deltaX,h=f.deltaY;Math.abs(m)>Math.abs(h)?h=0:m=0,f.shiftKey&&h!==0&&(m=h,h=0),!(c(s,d)&&c(s+m,d+h))&&(s+=m,d+=h,f.preventDefault(),i=l.rAF(()=>{r(s,d),s=0,d=0}))}}},Uo=({name:t,clearCache:n,getColumnPosition:a,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:i,getEstimatedTotalWidth:s,getColumnOffset:d,getRowOffset:c,getRowPosition:u,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:m,initCache:h,injectToInstance:p,validateProps:_})=>e.defineComponent({name:t??"ElVirtualList",props:V.virtualizedGridProps,emits:[V.ITEM_RENDER_EVT,V.SCROLL_EVT],setup(g,{emit:w,expose:v,slots:S}){const y=R.useNamespace("vl");_(g);const D=e.getCurrentInstance(),N=e.ref(h(g,D));p==null||p(D,N);const k=e.ref(),b=e.ref(),O=e.ref(),B=e.ref(null),E=e.ref({isScrolling:!1,scrollLeft:R.isNumber(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:R.isNumber(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:V.FORWARD,yAxisScrollDir:V.FORWARD}),x=V.useCache(),C=e.computed(()=>Number.parseInt(`${g.height}`,10)),I=e.computed(()=>Number.parseInt(`${g.width}`,10)),$=e.computed(()=>{const{totalColumn:le,totalRow:ae,columnCache:ce}=g,{isScrolling:pe,xAxisScrollDir:he,scrollLeft:ge}=e.unref(E);if(le===0||ae===0)return[0,0,0,0];const ve=o(g,ge,e.unref(N)),ye=r(g,ve,ge,e.unref(N)),Ie=!pe||he===V.BACKWARD?Math.max(1,ce):1,Ve=!pe||he===V.FORWARD?Math.max(1,ce):1;return[Math.max(0,ve-Ie),Math.max(0,Math.min(le-1,ye+Ve)),ve,ye]}),T=e.computed(()=>{const{totalColumn:le,totalRow:ae,rowCache:ce}=g,{isScrolling:pe,yAxisScrollDir:he,scrollTop:ge}=e.unref(E);if(le===0||ae===0)return[0,0,0,0];const ve=f(g,ge,e.unref(N)),ye=m(g,ve,ge,e.unref(N)),Ie=!pe||he===V.BACKWARD?Math.max(1,ce):1,Ve=!pe||he===V.FORWARD?Math.max(1,ce):1;return[Math.max(0,ve-Ie),Math.max(0,Math.min(ae-1,ye+Ve)),ve,ye]}),U=e.computed(()=>i(g,e.unref(N))),j=e.computed(()=>s(g,e.unref(N))),L=e.computed(()=>{var le;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:R.isNumber(g.height)?`${g.height}px`:g.height,width:R.isNumber(g.width)?`${g.width}px`:g.width},(le=g.style)!=null?le:{}]}),P=e.computed(()=>{const le=`${e.unref(j)}px`;return{height:`${e.unref(U)}px`,pointerEvents:e.unref(E).isScrolling?"none":void 0,width:le}}),H=()=>{const{totalColumn:le,totalRow:ae}=g;if(le>0&&ae>0){const[ye,Ie,Ve,Ne]=e.unref($),[ke,Te,qe,Ye]=e.unref(T);w(V.ITEM_RENDER_EVT,{columnCacheStart:ye,columnCacheEnd:Ie,rowCacheStart:ke,rowCacheEnd:Te,columnVisibleStart:Ve,columnVisibleEnd:Ne,rowVisibleStart:qe,rowVisibleEnd:Ye})}const{scrollLeft:ce,scrollTop:pe,updateRequested:he,xAxisScrollDir:ge,yAxisScrollDir:ve}=e.unref(E);w(V.SCROLL_EVT,{xAxisScrollDir:ge,scrollLeft:ce,yAxisScrollDir:ve,scrollTop:pe,updateRequested:he})},z=le=>{const{clientHeight:ae,clientWidth:ce,scrollHeight:pe,scrollLeft:he,scrollTop:ge,scrollWidth:ve}=le.currentTarget,ye=e.unref(E);if(ye.scrollTop===ge&&ye.scrollLeft===he)return;let Ie=he;if(V.isRTL(g.direction))switch(V.getRTLOffsetType()){case V.RTL_OFFSET_NAG:Ie=-he;break;case V.RTL_OFFSET_POS_DESC:Ie=ve-ce-he;break}E.value={...ye,isScrolling:!0,scrollLeft:Ie,scrollTop:Math.max(0,Math.min(ge,pe-ae)),updateRequested:!0,xAxisScrollDir:V.getScrollDir(ye.scrollLeft,Ie),yAxisScrollDir:V.getScrollDir(ye.scrollTop,ge)},e.nextTick(()=>F()),W(),H()},K=(le,ae)=>{const ce=e.unref(C),pe=(U.value-ce)/ae*le;G({scrollTop:Math.min(U.value-ce,pe)})},re=(le,ae)=>{const ce=e.unref(I),pe=(j.value-ce)/ae*le;G({scrollLeft:Math.min(j.value-ce,pe)})},{onWheel:A}=Ja({atXStartEdge:e.computed(()=>E.value.scrollLeft<=0),atXEndEdge:e.computed(()=>E.value.scrollLeft>=j.value-e.unref(I)),atYStartEdge:e.computed(()=>E.value.scrollTop<=0),atYEndEdge:e.computed(()=>E.value.scrollTop>=U.value-e.unref(C))},(le,ae)=>{var ce,pe,he,ge;(pe=(ce=b.value)==null?void 0:ce.onMouseUp)==null||pe.call(ce),(ge=(he=O.value)==null?void 0:he.onMouseUp)==null||ge.call(he);const ve=e.unref(I),ye=e.unref(C);G({scrollLeft:Math.min(E.value.scrollLeft+le,j.value-ve),scrollTop:Math.min(E.value.scrollTop+ae,U.value-ye)})});R.useEventListener(k,"wheel",A,{passive:!1});const G=({scrollLeft:le=E.value.scrollLeft,scrollTop:ae=E.value.scrollTop})=>{le=Math.max(le,0),ae=Math.max(ae,0);const ce=e.unref(E);ae===ce.scrollTop&&le===ce.scrollLeft||(E.value={...ce,xAxisScrollDir:V.getScrollDir(ce.scrollLeft,le),yAxisScrollDir:V.getScrollDir(ce.scrollTop,ae),scrollLeft:le,scrollTop:ae,updateRequested:!0},e.nextTick(()=>F()),W(),H())},X=(le=0,ae=0,ce=V.AUTO_ALIGNMENT)=>{const pe=e.unref(E);ae=Math.max(0,Math.min(ae,g.totalColumn-1)),le=Math.max(0,Math.min(le,g.totalRow-1));const he=l.getScrollBarWidth(y.namespace.value),ge=e.unref(N),ve=i(g,ge),ye=s(g,ge);G({scrollLeft:d(g,ae,ce,pe.scrollLeft,ge,ye>g.width?he:0),scrollTop:c(g,le,ce,pe.scrollTop,ge,ve>g.height?he:0)})},ne=(le,ae)=>{const{columnWidth:ce,direction:pe,rowHeight:he}=g,ge=x.value(n&&ce,n&&he,n&&pe),ve=`${le},${ae}`;if(R.hasOwn(ge,ve))return ge[ve];{const[,ye]=a(g,ae,e.unref(N)),Ie=e.unref(N),Ve=V.isRTL(pe),[Ne,ke]=u(g,le,Ie),[Te]=a(g,ae,Ie);return ge[ve]={position:"absolute",left:Ve?void 0:`${ye}px`,right:Ve?`${ye}px`:void 0,top:`${ke}px`,height:`${Ne}px`,width:`${Te}px`},ge[ve]}},F=()=>{E.value.isScrolling=!1,e.nextTick(()=>{x.value(-1,null,null)})};e.onMounted(()=>{if(!R.isClient)return;const{initScrollLeft:le,initScrollTop:ae}=g,ce=e.unref(k);ce&&(R.isNumber(le)&&(ce.scrollLeft=le),R.isNumber(ae)&&(ce.scrollTop=ae)),H()});const W=()=>{const{direction:le}=g,{scrollLeft:ae,scrollTop:ce,updateRequested:pe}=e.unref(E),he=e.unref(k);if(pe&&he){if(le===V.RTL)switch(V.getRTLOffsetType()){case V.RTL_OFFSET_NAG:{he.scrollLeft=-ae;break}case V.RTL_OFFSET_POS_ASC:{he.scrollLeft=ae;break}default:{const{clientWidth:ge,scrollWidth:ve}=he;he.scrollLeft=ve-ge-ae;break}}else he.scrollLeft=Math.max(0,ae);he.scrollTop=Math.max(0,ce)}},{resetAfterColumnIndex:J,resetAfterRowIndex:oe,resetAfter:se}=D.proxy;v({windowRef:k,innerRef:B,getItemStyleCache:x,scrollTo:G,scrollToItem:X,states:E,resetAfterColumnIndex:J,resetAfterRowIndex:oe,resetAfter:se});const we=()=>{const{scrollbarAlwaysOn:le,scrollbarStartGap:ae,scrollbarEndGap:ce,totalColumn:pe,totalRow:he}=g,ge=e.unref(I),ve=e.unref(C),ye=e.unref(j),Ie=e.unref(U),{scrollLeft:Ve,scrollTop:Ne}=e.unref(E),ke=e.h(V.ScrollBar,{ref:b,alwaysOn:le,startGap:ae,endGap:ce,class:y.e("horizontal"),clientSize:ge,layout:"horizontal",onScroll:re,ratio:ge*100/ye,scrollFrom:Ve/(ye-ge),total:he,visible:!0}),Te=e.h(V.ScrollBar,{ref:O,alwaysOn:le,startGap:ae,endGap:ce,class:y.e("vertical"),clientSize:ve,layout:"vertical",onScroll:K,ratio:ve*100/Ie,scrollFrom:Ne/(Ie-ve),total:pe,visible:!0});return{horizontalScrollbar:ke,verticalScrollbar:Te}},xe=()=>{var le;const[ae,ce]=e.unref($),[pe,he]=e.unref(T),{data:ge,totalColumn:ve,totalRow:ye,useIsScrolling:Ie,itemKey:Ve}=g,Ne=[];if(ye>0&&ve>0)for(let ke=pe;ke<=he;ke++)for(let Te=ae;Te<=ce;Te++){const qe=Ve({columnIndex:Te,data:ge,rowIndex:ke});Ne.push(e.h(e.Fragment,{key:qe},(le=S.default)==null?void 0:le.call(S,{columnIndex:Te,data:ge,isScrolling:Ie?e.unref(E).isScrolling:void 0,style:ne(ke,Te),rowIndex:ke})))}return Ne},me=()=>{const le=e.resolveDynamicComponent(g.innerElement),ae=xe();return[e.h(le,{style:e.unref(P),ref:B},R.isString(le)?ae:{default:()=>ae})]};return()=>{const le=e.resolveDynamicComponent(g.containerElement),{horizontalScrollbar:ae,verticalScrollbar:ce}=we(),pe=me();return e.h("div",{key:0,class:y.e("wrapper"),role:g.role},[e.h(le,{class:g.className,style:e.unref(L),onScroll:z,ref:k},R.isString(le)?pe:{default:()=>pe}),ae,ce])}}}),io="ElFixedSizeGrid",Za=Uo({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},n)=>[t,n*t],getRowPosition:({rowHeight:t},n)=>[t,n*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:n})=>n*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:n})=>n*t,getColumnOffset:({totalColumn:t,columnWidth:n,width:a},o,r,i,s,d)=>{a=Number(a);const c=Math.max(0,t*n-a),u=Math.min(c,o*n),f=Math.max(0,o*n-a+d+n);switch(r==="smart"&&(i>=f-a&&i<=u+a?r=V.AUTO_ALIGNMENT:r=V.CENTERED_ALIGNMENT),r){case V.START_ALIGNMENT:return u;case V.END_ALIGNMENT:return f;case V.CENTERED_ALIGNMENT:{const m=Math.round(f+(u-f)/2);return m<Math.ceil(a/2)?0:m>c+Math.floor(a/2)?c:m}case V.AUTO_ALIGNMENT:default:return i>=f&&i<=u?i:f>u||i<f?f:u}},getRowOffset:({rowHeight:t,height:n,totalRow:a},o,r,i,s,d)=>{n=Number(n);const c=Math.max(0,a*t-n),u=Math.min(c,o*t),f=Math.max(0,o*t-n+d+t);switch(r===V.SMART_ALIGNMENT&&(i>=f-n&&i<=u+n?r=V.AUTO_ALIGNMENT:r=V.CENTERED_ALIGNMENT),r){case V.START_ALIGNMENT:return u;case V.END_ALIGNMENT:return f;case V.CENTERED_ALIGNMENT:{const m=Math.round(f+(u-f)/2);return m<Math.ceil(n/2)?0:m>c+Math.floor(n/2)?c:m}case V.AUTO_ALIGNMENT:default:return i>=f&&i<=u?i:f>u||i<f?f:u}},getColumnStartIndexForOffset:({columnWidth:t,totalColumn:n},a)=>Math.max(0,Math.min(n-1,Math.floor(a/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:n,width:a},o,r)=>{const i=o*t,s=Math.ceil((a+r-i)/t);return Math.max(0,Math.min(n-1,o+s-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:n},a)=>Math.max(0,Math.min(n-1,Math.floor(a/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:n,height:a},o,r)=>{const i=o*t,s=Math.ceil((a+r-i)/t);return Math.max(0,Math.min(n-1,o+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:n})=>{process.env.NODE_ENV!=="production"&&(R.isNumber(t)||R.throwError(io,`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ao=require("./index-BqER59zX.cjs"),Tt=require("./components-D4Q0gfqQ.cjs"),V=require("./index-BS6I1KCa.cjs"),qa=require("./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-B4FHqtSa.cjs"),e=require("vue"),l=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Dl660Hz3.cjs"),R=require("./_plugin-vue_export-helper-VLDak8vc.cjs");typeof String.prototype.removeHTMLTag>"u"&&(String.prototype.removeHTMLTag=function(){return this.replace(/<.+?>([^<>]+?)<.+?>/g,"$1")});(function(t,n){n(t),typeof define=="function"&&define.amd?define([],n):typeof module<"u"&&module.exports?module.exports=n():t.ws=n()})(window,function(t,n){if(!("WebSocket"in window))return;var a,o=document.createElement("div"),r={automaticOpen:!0,reconnectDecay:1.5,host:"127.0.0.1",port:54321,protocol:"ws"},i=function(u){switch(u.type){case"connecting":console.log("Connecting to cfprint.",u);break;case"open":console.log("Connected to cfprint.",u);break;case"close":console.log("Disconnected from cfprint.",u);break;case"message":console.log("Got a message from cfprint: "+u.data,u);break;case"error":console.log("A error occured: "+u.data,u);break;default:console.log("EVENT: ",u)}},s={CONNECTING:WebSocket.CONNECTING,OPEN:WebSocket.OPEN,CLOSING:WebSocket.CLOSING,CLOSED:WebSocket.CLOSED};function d(u,f,m){var h=this;this.ver="1.3.8.1",m||(m={});for(var p in r)typeof m[p]<"u"?this[p]=m[p]:this[p]=r[p];this.host=u||this.host,this.port=f||this.port,this.url=this.getURL(),this.readyState=WebSocket.CONNECTING;for(var _ in s)this[_]=s[_];return o.addEventListener("connecting",function(g){h!==window&&h.onconnecting(g)}),o.addEventListener("open",function(g){h!==window&&h.onopen(g)}),o.addEventListener("message",function(g){h!==window&&h.onmessage(g)}),o.addEventListener("close",function(g){h!==window&&h.onclose(g)}),o.addEventListener("error",function(g){h!==window&&h.onerror(g)}),this.addEventListener=o.addEventListener.bind(o),this.removeEventListener=o.removeEventListener.bind(o),this.dispatchEvent=o.dispatchEvent.bind(o),this.automaticOpen===!0&&this!==window&&this.open(),this}function c(u,f){var m=document.createEvent("CustomEvent");return m.initCustomEvent(u,!1,!1,f),m}return d.prototype.onconnecting=i,d.prototype.onopen=i,d.prototype.onmessage=i,d.prototype.onclose=i,d.prototype.onerror=i,d.prototype.setProtocol=function(u){this.wsocket&&(this.protocol=u)},d.prototype.setPort=function(u){this.wsocket&&(this.port=u)},d.prototype.setHost=function(u){this.wsocket&&(this.host=u)},d.prototype.getURL=function(u){return this.wsocket&&this.wsocket.readyState===this.OPEN?this.wsocket.url:(this.protocol||"ws")+"://"+(this.host||"127.0.0.1")+":"+(this.port||54321)},d.prototype.send=function(u){if(this.wsocket&&this.wsocket.readyState===1){var f="";if(typeof u=="string")f=u;else if(typeof u=="object")f=JSON.stringify(u,null,2);else{var m=c("error",{message:"Invalid data format, only json string or json object is allowed."});o.dispatchEvent(m);return}try{f=btoa(unescape(encodeURIComponent(f))),f="base64:"+f,this.wsocket.send(f)}catch(h){var m=c("error",{message:h.message});h.dispatchEvent(m)}}else{var f=c("error",{message:"Not connected to cfprint server or disconnected."});o.dispatchEvent(f)}},d.prototype.close=function(u,f){typeof u>"u"&&(u=1e3),this.wsocket&&this.wsocket.close(u,f)},d.prototype.open=function(){var u=this;return this.url=this.getURL(),a=new WebSocket(this.url,this.protocol||[]),o.dispatchEvent(c("connecting")),a.onopen=function(f){u.protocol=d.protocol,u.readyState=WebSocket.OPEN;var m=c("open");o.dispatchEvent(m)},a.onclose=function(f){u.readyState=WebSocket.CLOSED;var m=c("connecting");m.code=f.code,m.reason=f.reason,m.wasClean=f.wasClean,o.dispatchEvent(m),o.dispatchEvent(c("close"))},a.onmessage=function(f){var m=c("message");m.data=f.data,o.dispatchEvent(m)},a.onerror=function(f){var m=c("error");o.dispatchEvent(m)},this.wsocket=a,this},d.prototype.state=function(){return this.wsocket?this.wsocket.readyState:WebSocket.CLOSED},d.prototype.log=function(u,f){var m=this.output||"output",h=document.getElementById(m);if(h&&h.appendChild){var p=document.createElement("p");p.style.wordWrap="break-word",p.style.padding="8px",p.style.background="#eee",p.innerHTML="LOG: "+u,h.childNodes.length>0?h.insertBefore(p,h.childNodes[0]):h.appendChild(p)}f?console.log(u,f):console.log(u)},d});const Ma=(t,n=0)=>{if(n===0)return t;const a=e.ref(!1);let o=null;const r=()=>{o&&clearTimeout(o),o=setTimeout(()=>{a.value=t.value},n)};return e.onMounted(r),e.watch(()=>t.value,i=>{i?r():a.value=i}),a},Fa=R.buildProps({size:{type:[Number,String],values:R.componentSizes,default:"",validator:t=>R.isNumber(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:R.iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:R.definePropType(String),default:"cover"}}),Aa={error:t=>t instanceof Event},Ua=e.defineComponent({name:"ElAvatar"}),za=e.defineComponent({...Ua,props:Fa,emits:Aa,setup(t,{emit:n}){const a=t,o=R.useNamespace("avatar"),r=e.ref(!1),i=e.computed(()=>{const{size:u,icon:f,shape:m}=a,h=[o.b()];return R.isString(u)&&h.push(o.m(u)),f&&h.push(o.m("icon")),m&&h.push(o.m(m)),h}),s=e.computed(()=>{const{size:u}=a;return R.isNumber(u)?o.cssVarBlock({size:R.addUnit(u)||""}):void 0}),d=e.computed(()=>({objectFit:a.fit}));e.watch(()=>a.src,()=>r.value=!1);function c(u){r.value=!0,n("error",u)}return(u,f)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(i)),style:e.normalizeStyle(e.unref(s))},[(u.src||u.srcSet)&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:e.normalizeStyle(e.unref(d)),onError:c},null,44,["src","alt","srcset"])):u.icon?(e.openBlock(),e.createBlock(e.unref(R.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.icon)))]),_:1})):e.renderSlot(u.$slots,"default",{key:2})],6))}});var ja=R._export_sfc(za,[["__file","avatar.vue"]]);const Ha=R.withInstall(ja),Wa=R.buildProps({icon:{type:R.iconPropType,default:()=>R.back_default},title:String,content:{type:String,default:""}}),Ya={back:()=>!0},Ga=e.defineComponent({name:"ElPageHeader"}),Ka=e.defineComponent({...Ga,props:Wa,emits:Ya,setup(t,{emit:n}){const a=e.useSlots(),{t:o}=R.useLocale(),r=R.useNamespace("page-header"),i=e.computed(()=>[r.b(),{[r.m("has-breadcrumb")]:!!a.breadcrumb,[r.m("has-extra")]:!!a.extra,[r.is("contentful")]:!!a.default}]);function s(){n("back")}return(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i))},[d.$slots.breadcrumb?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("breadcrumb"))},[e.renderSlot(d.$slots,"breadcrumb")],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("left"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("back")),role:"button",tabindex:"0",onClick:s},[d.icon||d.$slots.icon?(e.openBlock(),e.createElementBlock("div",{key:0,"aria-label":d.title||e.unref(o)("el.pageHeader.title"),class:e.normalizeClass(e.unref(r).e("icon"))},[e.renderSlot(d.$slots,"icon",{},()=>[d.icon?(e.openBlock(),e.createBlock(e.unref(R.ElIcon),{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))]),_:1})):e.createCommentVNode("v-if",!0)])],10,["aria-label"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("title"))},[e.renderSlot(d.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(d.title||e.unref(o)("el.pageHeader.title")),1)])],2)],2),e.createVNode(e.unref(V.ElDivider),{direction:"vertical"}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("content"))},[e.renderSlot(d.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(d.content),1)])],2)],2),d.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("extra"))},[e.renderSlot(d.$slots,"extra")],2)):e.createCommentVNode("v-if",!0)],2),d.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).e("main"))},[e.renderSlot(d.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],2))}});var Qa=R._export_sfc(Ka,[["__file","page-header.vue"]]);const Xa=R.withInstall(Qa),Ja=({atXEndEdge:t,atXStartEdge:n,atYEndEdge:a,atYStartEdge:o},r)=>{let i=null,s=0,d=0;const c=(f,m)=>{const h=f<=0&&n.value||f>=0&&t.value,p=m<=0&&o.value||m>=0&&a.value;return h&&p};return{hasReachedEdge:c,onWheel:f=>{l.cAF(i);let m=f.deltaX,h=f.deltaY;Math.abs(m)>Math.abs(h)?h=0:m=0,f.shiftKey&&h!==0&&(m=h,h=0),!(c(s,d)&&c(s+m,d+h))&&(s+=m,d+=h,f.preventDefault(),i=l.rAF(()=>{r(s,d),s=0,d=0}))}}},Uo=({name:t,clearCache:n,getColumnPosition:a,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:i,getEstimatedTotalWidth:s,getColumnOffset:d,getRowOffset:c,getRowPosition:u,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:m,initCache:h,injectToInstance:p,validateProps:_})=>e.defineComponent({name:t??"ElVirtualList",props:V.virtualizedGridProps,emits:[V.ITEM_RENDER_EVT,V.SCROLL_EVT],setup(g,{emit:w,expose:v,slots:S}){const y=R.useNamespace("vl");_(g);const D=e.getCurrentInstance(),N=e.ref(h(g,D));p==null||p(D,N);const k=e.ref(),b=e.ref(),O=e.ref(),B=e.ref(null),E=e.ref({isScrolling:!1,scrollLeft:R.isNumber(g.initScrollLeft)?g.initScrollLeft:0,scrollTop:R.isNumber(g.initScrollTop)?g.initScrollTop:0,updateRequested:!1,xAxisScrollDir:V.FORWARD,yAxisScrollDir:V.FORWARD}),x=V.useCache(),C=e.computed(()=>Number.parseInt(`${g.height}`,10)),I=e.computed(()=>Number.parseInt(`${g.width}`,10)),$=e.computed(()=>{const{totalColumn:le,totalRow:ae,columnCache:ce}=g,{isScrolling:pe,xAxisScrollDir:he,scrollLeft:ge}=e.unref(E);if(le===0||ae===0)return[0,0,0,0];const ve=o(g,ge,e.unref(N)),ye=r(g,ve,ge,e.unref(N)),Ie=!pe||he===V.BACKWARD?Math.max(1,ce):1,Ve=!pe||he===V.FORWARD?Math.max(1,ce):1;return[Math.max(0,ve-Ie),Math.max(0,Math.min(le-1,ye+Ve)),ve,ye]}),T=e.computed(()=>{const{totalColumn:le,totalRow:ae,rowCache:ce}=g,{isScrolling:pe,yAxisScrollDir:he,scrollTop:ge}=e.unref(E);if(le===0||ae===0)return[0,0,0,0];const ve=f(g,ge,e.unref(N)),ye=m(g,ve,ge,e.unref(N)),Ie=!pe||he===V.BACKWARD?Math.max(1,ce):1,Ve=!pe||he===V.FORWARD?Math.max(1,ce):1;return[Math.max(0,ve-Ie),Math.max(0,Math.min(ae-1,ye+Ve)),ve,ye]}),U=e.computed(()=>i(g,e.unref(N))),j=e.computed(()=>s(g,e.unref(N))),L=e.computed(()=>{var le;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:g.direction,height:R.isNumber(g.height)?`${g.height}px`:g.height,width:R.isNumber(g.width)?`${g.width}px`:g.width},(le=g.style)!=null?le:{}]}),P=e.computed(()=>{const le=`${e.unref(j)}px`;return{height:`${e.unref(U)}px`,pointerEvents:e.unref(E).isScrolling?"none":void 0,width:le}}),H=()=>{const{totalColumn:le,totalRow:ae}=g;if(le>0&&ae>0){const[ye,Ie,Ve,Ne]=e.unref($),[ke,Te,qe,Ye]=e.unref(T);w(V.ITEM_RENDER_EVT,{columnCacheStart:ye,columnCacheEnd:Ie,rowCacheStart:ke,rowCacheEnd:Te,columnVisibleStart:Ve,columnVisibleEnd:Ne,rowVisibleStart:qe,rowVisibleEnd:Ye})}const{scrollLeft:ce,scrollTop:pe,updateRequested:he,xAxisScrollDir:ge,yAxisScrollDir:ve}=e.unref(E);w(V.SCROLL_EVT,{xAxisScrollDir:ge,scrollLeft:ce,yAxisScrollDir:ve,scrollTop:pe,updateRequested:he})},z=le=>{const{clientHeight:ae,clientWidth:ce,scrollHeight:pe,scrollLeft:he,scrollTop:ge,scrollWidth:ve}=le.currentTarget,ye=e.unref(E);if(ye.scrollTop===ge&&ye.scrollLeft===he)return;let Ie=he;if(V.isRTL(g.direction))switch(V.getRTLOffsetType()){case V.RTL_OFFSET_NAG:Ie=-he;break;case V.RTL_OFFSET_POS_DESC:Ie=ve-ce-he;break}E.value={...ye,isScrolling:!0,scrollLeft:Ie,scrollTop:Math.max(0,Math.min(ge,pe-ae)),updateRequested:!0,xAxisScrollDir:V.getScrollDir(ye.scrollLeft,Ie),yAxisScrollDir:V.getScrollDir(ye.scrollTop,ge)},e.nextTick(()=>F()),W(),H()},K=(le,ae)=>{const ce=e.unref(C),pe=(U.value-ce)/ae*le;G({scrollTop:Math.min(U.value-ce,pe)})},re=(le,ae)=>{const ce=e.unref(I),pe=(j.value-ce)/ae*le;G({scrollLeft:Math.min(j.value-ce,pe)})},{onWheel:A}=Ja({atXStartEdge:e.computed(()=>E.value.scrollLeft<=0),atXEndEdge:e.computed(()=>E.value.scrollLeft>=j.value-e.unref(I)),atYStartEdge:e.computed(()=>E.value.scrollTop<=0),atYEndEdge:e.computed(()=>E.value.scrollTop>=U.value-e.unref(C))},(le,ae)=>{var ce,pe,he,ge;(pe=(ce=b.value)==null?void 0:ce.onMouseUp)==null||pe.call(ce),(ge=(he=O.value)==null?void 0:he.onMouseUp)==null||ge.call(he);const ve=e.unref(I),ye=e.unref(C);G({scrollLeft:Math.min(E.value.scrollLeft+le,j.value-ve),scrollTop:Math.min(E.value.scrollTop+ae,U.value-ye)})});R.useEventListener(k,"wheel",A,{passive:!1});const G=({scrollLeft:le=E.value.scrollLeft,scrollTop:ae=E.value.scrollTop})=>{le=Math.max(le,0),ae=Math.max(ae,0);const ce=e.unref(E);ae===ce.scrollTop&&le===ce.scrollLeft||(E.value={...ce,xAxisScrollDir:V.getScrollDir(ce.scrollLeft,le),yAxisScrollDir:V.getScrollDir(ce.scrollTop,ae),scrollLeft:le,scrollTop:ae,updateRequested:!0},e.nextTick(()=>F()),W(),H())},X=(le=0,ae=0,ce=V.AUTO_ALIGNMENT)=>{const pe=e.unref(E);ae=Math.max(0,Math.min(ae,g.totalColumn-1)),le=Math.max(0,Math.min(le,g.totalRow-1));const he=l.getScrollBarWidth(y.namespace.value),ge=e.unref(N),ve=i(g,ge),ye=s(g,ge);G({scrollLeft:d(g,ae,ce,pe.scrollLeft,ge,ye>g.width?he:0),scrollTop:c(g,le,ce,pe.scrollTop,ge,ve>g.height?he:0)})},ne=(le,ae)=>{const{columnWidth:ce,direction:pe,rowHeight:he}=g,ge=x.value(n&&ce,n&&he,n&&pe),ve=`${le},${ae}`;if(R.hasOwn(ge,ve))return ge[ve];{const[,ye]=a(g,ae,e.unref(N)),Ie=e.unref(N),Ve=V.isRTL(pe),[Ne,ke]=u(g,le,Ie),[Te]=a(g,ae,Ie);return ge[ve]={position:"absolute",left:Ve?void 0:`${ye}px`,right:Ve?`${ye}px`:void 0,top:`${ke}px`,height:`${Ne}px`,width:`${Te}px`},ge[ve]}},F=()=>{E.value.isScrolling=!1,e.nextTick(()=>{x.value(-1,null,null)})};e.onMounted(()=>{if(!R.isClient)return;const{initScrollLeft:le,initScrollTop:ae}=g,ce=e.unref(k);ce&&(R.isNumber(le)&&(ce.scrollLeft=le),R.isNumber(ae)&&(ce.scrollTop=ae)),H()});const W=()=>{const{direction:le}=g,{scrollLeft:ae,scrollTop:ce,updateRequested:pe}=e.unref(E),he=e.unref(k);if(pe&&he){if(le===V.RTL)switch(V.getRTLOffsetType()){case V.RTL_OFFSET_NAG:{he.scrollLeft=-ae;break}case V.RTL_OFFSET_POS_ASC:{he.scrollLeft=ae;break}default:{const{clientWidth:ge,scrollWidth:ve}=he;he.scrollLeft=ve-ge-ae;break}}else he.scrollLeft=Math.max(0,ae);he.scrollTop=Math.max(0,ce)}},{resetAfterColumnIndex:J,resetAfterRowIndex:oe,resetAfter:se}=D.proxy;v({windowRef:k,innerRef:B,getItemStyleCache:x,scrollTo:G,scrollToItem:X,states:E,resetAfterColumnIndex:J,resetAfterRowIndex:oe,resetAfter:se});const we=()=>{const{scrollbarAlwaysOn:le,scrollbarStartGap:ae,scrollbarEndGap:ce,totalColumn:pe,totalRow:he}=g,ge=e.unref(I),ve=e.unref(C),ye=e.unref(j),Ie=e.unref(U),{scrollLeft:Ve,scrollTop:Ne}=e.unref(E),ke=e.h(V.ScrollBar,{ref:b,alwaysOn:le,startGap:ae,endGap:ce,class:y.e("horizontal"),clientSize:ge,layout:"horizontal",onScroll:re,ratio:ge*100/ye,scrollFrom:Ve/(ye-ge),total:he,visible:!0}),Te=e.h(V.ScrollBar,{ref:O,alwaysOn:le,startGap:ae,endGap:ce,class:y.e("vertical"),clientSize:ve,layout:"vertical",onScroll:K,ratio:ve*100/Ie,scrollFrom:Ne/(Ie-ve),total:pe,visible:!0});return{horizontalScrollbar:ke,verticalScrollbar:Te}},xe=()=>{var le;const[ae,ce]=e.unref($),[pe,he]=e.unref(T),{data:ge,totalColumn:ve,totalRow:ye,useIsScrolling:Ie,itemKey:Ve}=g,Ne=[];if(ye>0&&ve>0)for(let ke=pe;ke<=he;ke++)for(let Te=ae;Te<=ce;Te++){const qe=Ve({columnIndex:Te,data:ge,rowIndex:ke});Ne.push(e.h(e.Fragment,{key:qe},(le=S.default)==null?void 0:le.call(S,{columnIndex:Te,data:ge,isScrolling:Ie?e.unref(E).isScrolling:void 0,style:ne(ke,Te),rowIndex:ke})))}return Ne},me=()=>{const le=e.resolveDynamicComponent(g.innerElement),ae=xe();return[e.h(le,{style:e.unref(P),ref:B},R.isString(le)?ae:{default:()=>ae})]};return()=>{const le=e.resolveDynamicComponent(g.containerElement),{horizontalScrollbar:ae,verticalScrollbar:ce}=we(),pe=me();return e.h("div",{key:0,class:y.e("wrapper"),role:g.role},[e.h(le,{class:g.className,style:e.unref(L),onScroll:z,ref:k},R.isString(le)?pe:{default:()=>pe}),ae,ce])}}}),io="ElFixedSizeGrid",Za=Uo({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},n)=>[t,n*t],getRowPosition:({rowHeight:t},n)=>[t,n*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:n})=>n*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:n})=>n*t,getColumnOffset:({totalColumn:t,columnWidth:n,width:a},o,r,i,s,d)=>{a=Number(a);const c=Math.max(0,t*n-a),u=Math.min(c,o*n),f=Math.max(0,o*n-a+d+n);switch(r==="smart"&&(i>=f-a&&i<=u+a?r=V.AUTO_ALIGNMENT:r=V.CENTERED_ALIGNMENT),r){case V.START_ALIGNMENT:return u;case V.END_ALIGNMENT:return f;case V.CENTERED_ALIGNMENT:{const m=Math.round(f+(u-f)/2);return m<Math.ceil(a/2)?0:m>c+Math.floor(a/2)?c:m}case V.AUTO_ALIGNMENT:default:return i>=f&&i<=u?i:f>u||i<f?f:u}},getRowOffset:({rowHeight:t,height:n,totalRow:a},o,r,i,s,d)=>{n=Number(n);const c=Math.max(0,a*t-n),u=Math.min(c,o*t),f=Math.max(0,o*t-n+d+t);switch(r===V.SMART_ALIGNMENT&&(i>=f-n&&i<=u+n?r=V.AUTO_ALIGNMENT:r=V.CENTERED_ALIGNMENT),r){case V.START_ALIGNMENT:return u;case V.END_ALIGNMENT:return f;case V.CENTERED_ALIGNMENT:{const m=Math.round(f+(u-f)/2);return m<Math.ceil(n/2)?0:m>c+Math.floor(n/2)?c:m}case V.AUTO_ALIGNMENT:default:return i>=f&&i<=u?i:f>u||i<f?f:u}},getColumnStartIndexForOffset:({columnWidth:t,totalColumn:n},a)=>Math.max(0,Math.min(n-1,Math.floor(a/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:n,width:a},o,r)=>{const i=o*t,s=Math.ceil((a+r-i)/t);return Math.max(0,Math.min(n-1,o+s-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:n},a)=>Math.max(0,Math.min(n-1,Math.floor(a/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:n,height:a},o,r)=>{const i=o*t,s=Math.ceil((a+r-i)/t);return Math.max(0,Math.min(n-1,o+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:n})=>{process.env.NODE_ENV!=="production"&&(R.isNumber(t)||R.throwError(io,`
2
2
  "columnWidth" must be passed as number,
3
3
  instead ${typeof t} was given.
4
4
  `),R.isNumber(n)||R.throwError(io,`
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- import { E as mv, a as hv } from "./index-DbVnKvm5.mjs";
2
- import { V as di } from "./components-DLXckk4C.mjs";
3
- import { c as pv, b as vv, d as bv, a as yv, e as _v } from "./components-DLXckk4C.mjs";
4
- import { E as ci, I as fl, S as ml, v as qa, F as xn, u as fi, A as Ta, B as hl, g as In, R as mi, a as gl, b as hi, c as pl, d as vl, i as bl, e as gi, C as Ua, f as Eo, h as ko, j as os, D as yl, k as pi, l as vi, m as bi, n as yi, o as _i, p as wi, q as Si, r as Di } from "./index-Cffr-T4a.mjs";
5
- import { aZ as Sv, a_ as Dv, a$ as Cv, b0 as xv, b1 as Iv, b2 as Ev, b3 as kv, b4 as $v, b5 as Tv, b6 as Rv, b7 as qv, b8 as Vv, b9 as Ov, ba as Nv, bb as Lv, bc as Mv, bd as Av, c9 as Fv, be as Pv, bf as jv, bg as Bv, aX as Uv, bh as zv, bi as Hv, bj as Wv, bk as Kv, bl as Gv, bm as Yv, bn as Qv, bo as Xv, bp as Jv, bq as Zv, br as eb, bs as tb, bt as ab, bu as nb, bv as ob, s as lb, t as sb, w as ib, x as rb, y as ub, z as db, G as cb, H as fb, J as mb, K as hb, L as gb, M as pb, N as vb, O as bb, P as yb, Q as _b, T as wb, U as Sb, V as Db, W as Cb, X as xb, Y as Ib, Z as Eb, _ as kb, $ as $b, a0 as Tb, a1 as Rb, a2 as qb, a3 as Vb, a4 as Ob, a5 as Nb, a6 as Lb, a7 as Mb, a8 as Ab, a9 as Fb, aa as Pb, ab as jb, ac as Bb, ad as Ub, ae as zb, af as Hb, ag as Wb, ak as Kb, ah as Gb, ai as Yb, aj as Qb, al as Xb, am as Jb, an as Zb, ao as ey, ap as ty, aq as ay, ar as ny, as as oy, at as ly, au as sy, av as iy, aw as ry, ax as uy, ay as dy, az as cy, aA as fy, aB as my, aC as hy, aD as gy, aE as py, aF as vy, aG as by, aJ as yy, aH as _y, aI as wy, aK as Sy, aL as Dy, aM as Cy, aN as xy, aO as Iy, aP as Ey, aQ as ky, aR as $y, aS as Ty, aT as Ry, aU as qy, aV as Vy, aW as Oy, bw as Ny, bx as Ly, by as My, bz as Ay, bA as Fy, bB as Py, bC as jy, bD as By, bE as Uy, bF as zy, bG as Hy, bH as Wy, bI as Ky, bJ as Gy, bK as Yy, bZ as Qy, b_ as Xy, bM as Jy, bN as Zy, bO as e_, bP as t_, bQ as a_, bR as n_, bS as o_, bT as l_, bU as s_, bV as i_, bW as r_, bX as u_, bY as d_, b$ as c_, c0 as f_, c1 as m_, c2 as h_, c3 as g_, bL as p_, c4 as v_, c7 as b_, c5 as y_, c6 as __, c8 as w_, ca as S_, cb as D_, ce as C_, cf as x_, cc as I_, cd as E_, cg as k_, ch as $_, ci as T_, cj as R_, ck as q_, cl as V_, cm as O_, cn as N_, co as L_, aY as M_ } from "./index-Cffr-T4a.mjs";
6
- import { _ as Ci } from "./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.mjs";
1
+ import { E as mv, a as hv } from "./index-fAYztMsu.js";
2
+ import { V as di } from "./components-BweH2evj.js";
3
+ import { c as pv, b as vv, d as bv, a as yv, e as _v } from "./components-BweH2evj.js";
4
+ import { E as ci, I as fl, S as ml, v as qa, F as xn, u as fi, A as Ta, B as hl, g as In, R as mi, a as gl, b as hi, c as pl, d as vl, i as bl, e as gi, C as Ua, f as Eo, h as ko, j as os, D as yl, k as pi, l as vi, m as bi, n as yi, o as _i, p as wi, q as Si, r as Di } from "./index-BMV_E6GB.js";
5
+ import { aZ as Sv, a_ as Dv, a$ as Cv, b0 as xv, b1 as Iv, b2 as Ev, b3 as kv, b4 as $v, b5 as Tv, b6 as Rv, b7 as qv, b8 as Vv, b9 as Ov, ba as Nv, bb as Lv, bc as Mv, bd as Av, c9 as Fv, be as Pv, bf as jv, bg as Bv, aX as Uv, bh as zv, bi as Hv, bj as Wv, bk as Kv, bl as Gv, bm as Yv, bn as Qv, bo as Xv, bp as Jv, bq as Zv, br as eb, bs as tb, bt as ab, bu as nb, bv as ob, s as lb, t as sb, w as ib, x as rb, y as ub, z as db, G as cb, H as fb, J as mb, K as hb, L as gb, M as pb, N as vb, O as bb, P as yb, Q as _b, T as wb, U as Sb, V as Db, W as Cb, X as xb, Y as Ib, Z as Eb, _ as kb, $ as $b, a0 as Tb, a1 as Rb, a2 as qb, a3 as Vb, a4 as Ob, a5 as Nb, a6 as Lb, a7 as Mb, a8 as Ab, a9 as Fb, aa as Pb, ab as jb, ac as Bb, ad as Ub, ae as zb, af as Hb, ag as Wb, ak as Kb, ah as Gb, ai as Yb, aj as Qb, al as Xb, am as Jb, an as Zb, ao as ey, ap as ty, aq as ay, ar as ny, as as oy, at as ly, au as sy, av as iy, aw as ry, ax as uy, ay as dy, az as cy, aA as fy, aB as my, aC as hy, aD as gy, aE as py, aF as vy, aG as by, aJ as yy, aH as _y, aI as wy, aK as Sy, aL as Dy, aM as Cy, aN as xy, aO as Iy, aP as Ey, aQ as ky, aR as $y, aS as Ty, aT as Ry, aU as qy, aV as Vy, aW as Oy, bw as Ny, bx as Ly, by as My, bz as Ay, bA as Fy, bB as Py, bC as jy, bD as By, bE as Uy, bF as zy, bG as Hy, bH as Wy, bI as Ky, bJ as Gy, bK as Yy, bZ as Qy, b_ as Xy, bM as Jy, bN as Zy, bO as e_, bP as t_, bQ as a_, bR as n_, bS as o_, bT as l_, bU as s_, bV as i_, bW as r_, bX as u_, bY as d_, b$ as c_, c0 as f_, c1 as m_, c2 as h_, c3 as g_, bL as p_, c4 as v_, c7 as b_, c5 as y_, c6 as __, c8 as w_, ca as S_, cb as D_, ce as C_, cf as x_, cc as I_, cd as E_, cg as k_, ch as $_, ci as T_, cj as R_, ck as q_, cl as V_, cm as O_, cn as N_, co as L_, aY as M_ } from "./index-BMV_E6GB.js";
6
+ import { _ as Ci } from "./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.js";
7
7
  import { ref as Z, onMounted as vt, watch as nt, defineComponent as ue, computed as J, createElementBlock as j, openBlock as E, normalizeStyle as ot, normalizeClass as He, unref as m, createBlock as Q, renderSlot as he, withCtx as L, resolveDynamicComponent as $t, useSlots as xi, createCommentVNode as se, createElementVNode as P, createVNode as R, createTextVNode as we, toDisplayString as Re, getCurrentInstance as Xa, nextTick as Fe, h as oa, Fragment as ye, toRef as $o, mergeProps as me, renderList as _e, normalizeProps as ct, watchEffect as Ii, isVNode as ca, shallowRef as ke, onBeforeUnmount as jt, inject as Me, provide as qt, useAttrs as ao, resolveComponent as U, onBeforeMount as no, resolveDirective as Ja, withDirectives as ua, createSlots as _t, guardReactiveProps as yt, onActivated as Wo, onDeactivated as ls, withModifiers as ea, onUnmounted as Sa, toRefs as Ei, reactive as fa, isRef as Va, createStaticVNode as Ko, toValue as Ee, mergeModels as Oa, useModel as Tt, vShow as To, Teleport as ss, Transition as ki, shallowReactive as $i, withAsyncContext as Ti, Suspense as Ri, KeepAlive as qi, triggerRef as Vi, TransitionGroup as Oi } from "vue";
8
- import { c as Ni, r as Li, g as Mi, P as ha, i as _l, a as Ai, _ as p, b as Na, s as Vt, d as It, M as Fi, e as gt, f as Ro, h as qo, j as We, E as Gt, k as bt, l as sa, C as Ka, m as Pi, H as Jt, n as Vo, o as Aa, p as is, q as Bn, t as rs, u as us, v as Oo, w as wn, x as No, y as ji, z as Go, A as dt, B as Ga, D as wa, F as Bi, G as Un, I as Ui, J as wl, K as zi, L as Hi, N as Wi, O as Yo, Q as Qo, R as Ki, S as Gi, T as Za, U as Yi, V as ds, W as Ut, X as Ve, Y as ia, Z as Ya, $ as Qi, a0 as Xi, a1 as Ji, a2 as Xo, a3 as Zi, a4 as er, a5 as tr, a6 as ar, a7 as nr, a8 as or, a9 as lr, aa as sr, ab as ir, ac as rr, ad as ur, ae as Sl, af as Lo, ag as dr, ah as cr, ai as fr, aj as mr, ak as hr, al as gr, am as pr, an as Mt, ao as On, ap as ve, aq as vr, ar as Be, as as br, at as yr, au as _r, av as wr, aw as Sr, ax as Dr, ay as En, az as ut, aA as Cr, aB as xr, aC as Ir, aD as Er, aE as kr, aF as $r, aG as cs, aH as xt, aI as Tr, aJ as Rr, aK as qr, aL as Wt, aM as Dl, aN as on, aO as Vr, aP as Mo, aQ as Or, aR as Nr, aS as fs, aT as zn, aU as Lr, aV as Fa, aW as va, aX as Mr, aY as Ar, aZ as Fr, a_ as Pr, a$ as jr } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-COr4IvZN.mjs";
9
- import { b5 as F_, b6 as P_, b0 as j_, b1 as B_, b9 as U_, b2 as z_, b8 as H_, b4 as W_, ba as K_, b3 as G_, b7 as Y_ } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-COr4IvZN.mjs";
10
- import { b as zt, d as Ue, i as ms, a as ft, c as hs, _ as oo, u as Yt, e as Hn, f as un, E as lo, w as en, g as Br, h as Ur, j as zr, k as Hr, l as Wr, t as Wn, m as gn, n as Kr, p as Gr, o as Yr, q as ta, r as Jo, s as Qr, v as Xr, x as Jr, y as Zr, z as eu, A as tu, B as Oe, C as au, D as nu, F as gs, G as Cl, H as Kn } from "./_plugin-vue_export-helper-Y3IFIQZf.mjs";
11
- import { I as X_, J as J_ } from "./_plugin-vue_export-helper-Y3IFIQZf.mjs";
8
+ import { c as Ni, r as Li, g as Mi, P as ha, i as _l, a as Ai, _ as p, b as Na, s as Vt, d as It, M as Fi, e as gt, f as Ro, h as qo, j as We, E as Gt, k as bt, l as sa, C as Ka, m as Pi, H as Jt, n as Vo, o as Aa, p as is, q as Bn, t as rs, u as us, v as Oo, w as wn, x as No, y as ji, z as Go, A as dt, B as Ga, D as wa, F as Bi, G as Un, I as Ui, J as wl, K as zi, L as Hi, N as Wi, O as Yo, Q as Qo, R as Ki, S as Gi, T as Za, U as Yi, V as ds, W as Ut, X as Ve, Y as ia, Z as Ya, $ as Qi, a0 as Xi, a1 as Ji, a2 as Xo, a3 as Zi, a4 as er, a5 as tr, a6 as ar, a7 as nr, a8 as or, a9 as lr, aa as sr, ab as ir, ac as rr, ad as ur, ae as Sl, af as Lo, ag as dr, ah as cr, ai as fr, aj as mr, ak as hr, al as gr, am as pr, an as Mt, ao as On, ap as ve, aq as vr, ar as Be, as as br, at as yr, au as _r, av as wr, aw as Sr, ax as Dr, ay as En, az as ut, aA as Cr, aB as xr, aC as Ir, aD as Er, aE as kr, aF as $r, aG as cs, aH as xt, aI as Tr, aJ as Rr, aK as qr, aL as Wt, aM as Dl, aN as on, aO as Vr, aP as Mo, aQ as Or, aR as Nr, aS as fs, aT as zn, aU as Lr, aV as Fa, aW as va, aX as Mr, aY as Ar, aZ as Fr, a_ as Pr, a$ as jr } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js";
9
+ import { b5 as F_, b6 as P_, b0 as j_, b1 as B_, b9 as U_, b2 as z_, b8 as H_, b4 as W_, ba as K_, b3 as G_, b7 as Y_ } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js";
10
+ import { b as zt, d as Ue, i as ms, a as ft, c as hs, _ as oo, u as Yt, e as Hn, f as un, E as lo, w as en, g as Br, h as Ur, j as zr, k as Hr, l as Wr, t as Wn, m as gn, n as Kr, p as Gr, o as Yr, q as ta, r as Jo, s as Qr, v as Xr, x as Jr, y as Zr, z as eu, A as tu, B as Oe, C as au, D as nu, F as gs, G as Cl, H as Kn } from "./_plugin-vue_export-helper-Y3IFIQZf.js";
11
+ import { I as X_, J as J_ } from "./_plugin-vue_export-helper-Y3IFIQZf.js";
12
12
  typeof String.prototype.removeHTMLTag > "u" && (String.prototype.removeHTMLTag = function() {
13
13
  return this.replace(/<.+?>([^<>]+?)<.+?>/g, "$1");
14
14
  });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./components-BnTw-qiD.js"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BxwLctae.js");require("vue");const l=require("./_plugin-vue_export-helper-VLDak8vc.js");function c(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",l.ElLoading.directive),r.use(u.VxeUIExport).use(a.VxeTableExport)}exports.HsMessage=u.HsMessage;exports.HsMessageBox=u.HsMessageBox;exports.HsNotification=u.HsNotification;exports.Utils=u.index;exports.VxeUI=u.VxeUI;exports.mathTool=u.mathTool;exports.useVxeTableUi=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./components-D4Q0gfqQ.cjs"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Dl660Hz3.cjs");require("vue");const c=require("./_plugin-vue_export-helper-VLDak8vc.cjs");function l(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",c.ElLoading.directive),r.use(u.VxeUIExport).use(a.VxeTableExport)}exports.HsMessage=u.HsMessage;exports.HsMessageBox=u.HsMessageBox;exports.HsNotification=u.HsNotification;exports.Utils=u.index;exports.VxeUI=u.VxeUI;exports.mathTool=u.mathTool;exports.useHsAdminUi=l;
@@ -1,17 +1,17 @@
1
- import { V as r } from "./components-DLXckk4C.mjs";
2
- import { ao as u, aY as l, aZ as m, a_ as x, a$ as E } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-COr4IvZN.mjs";
3
- import { H as T, b0 as _, b1 as d, b2 as g, b4 as t, b3 as I } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-COr4IvZN.mjs";
1
+ import { V as r } from "./components-BweH2evj.js";
2
+ import { ao as u, aY as m, aZ as l, a_ as E, a$ as x } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js";
3
+ import { H as N, b0 as _, b1 as g, b2 as t, b4 as I, b3 as M } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js";
4
4
  import "vue";
5
- import { H as b } from "./_plugin-vue_export-helper-Y3IFIQZf.mjs";
6
- function s(a, e) {
7
- u.value = e == null ? void 0 : e.NEXT_NAME, l.value = e == null ? void 0 : e.IS_DEV, m.value = e == null ? void 0 : e.currentRoute, x.value = e == null ? void 0 : e.currentRouter, a.directive("loading", b.directive), a.use(E).use(r);
5
+ import { H as b } from "./_plugin-vue_export-helper-Y3IFIQZf.js";
6
+ function H(a, e) {
7
+ u.value = e == null ? void 0 : e.NEXT_NAME, m.value = e == null ? void 0 : e.IS_DEV, l.value = e == null ? void 0 : e.currentRoute, E.value = e == null ? void 0 : e.currentRouter, a.directive("loading", b.directive), a.use(x).use(r);
8
8
  }
9
9
  export {
10
- T as HsMessage,
10
+ N as HsMessage,
11
11
  _ as HsMessageBox,
12
- d as HsNotification,
13
- g as Utils,
14
- t as VxeUI,
15
- I as mathTool,
16
- s as useVxeTableUi
12
+ g as HsNotification,
13
+ t as Utils,
14
+ I as VxeUI,
15
+ M as mathTool,
16
+ H as useHsAdminUi
17
17
  };
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "hs-admin-ui",
3
- "version": "16.0.8",
3
+ "version": "16.0.9",
4
4
  "private": false,
5
+ "type": "module",
5
6
  "main": "./dist/index.js",
6
7
  "module": "./dist/index.mjs",
7
8
  "types": "./dist/types/index.d.ts",