@point-hub/papp 0.0.149 → 0.0.150
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/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +1 -1
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -233,7 +233,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
|
|
|
233
233
|
Q(a.$slots, "default", {}, void 0, !0)
|
|
234
234
|
]));
|
|
235
235
|
}
|
|
236
|
-
}), hs = /* @__PURE__ */ oe(ms, [["__scopeId", "data-v-7c8ade6a"]]), gs = { class: "breadcrumb-ul" }, bs = /* @__PURE__ */ R({
|
|
236
|
+
}), hs = /* @__PURE__ */ oe(ms, [["__scopeId", "data-v-7c8ade6a"]]), gs = { class: "breadcrumb-ul overflow-hidden" }, bs = /* @__PURE__ */ R({
|
|
237
237
|
__name: "base-breadcrumb",
|
|
238
238
|
props: {
|
|
239
239
|
items: {},
|
|
@@ -265,7 +265,7 @@ const ps = /* @__PURE__ */ oe(ds, [["render", fs], ["__scopeId", "data-v-85c79e7
|
|
|
265
265
|
]))), 128))
|
|
266
266
|
]));
|
|
267
267
|
}
|
|
268
|
-
}), ys = /* @__PURE__ */ oe(bs, [["__scopeId", "data-v-
|
|
268
|
+
}), ys = /* @__PURE__ */ oe(bs, [["__scopeId", "data-v-e40f9683"]]), As = ["type", "disabled", "data-testid"], ws = {
|
|
269
269
|
key: 0,
|
|
270
270
|
class: "spinner spinner-black spinner-xs"
|
|
271
271
|
}, xs = {
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(P,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("vue-router"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","pinia"],n):(P=typeof globalThis<"u"?globalThis:P||self,n(P.Papp={},P.Vue,P.vueRouter,P.pinia))})(this,(function(P,n,uo,dn){"use strict";function Nl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const co=Nl(n),Il={class:"accordion-container"},Rl=n.defineComponent({__name:"base-accordion",props:{alwaysOpen:{type:Boolean,default:!1}},setup(e){const t=e,r=n.ref(t.alwaysOpen),o=n.ref(0);return n.provide("alwaysOpen",r),n.provide("activeItemId",o),(a,i)=>(n.openBlock(),n.createElementBlock("div",Il,[n.renderSlot(a.$slots,"default",{},void 0,!0)]))}}),H=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},fo=H(Rl,[["__scopeId","data-v-72d57350"]]),Ll={class:"accordion-item"},_l=32,po=H(n.defineComponent({__name:"base-accordion-item",props:{itemId:{},title:{default:""},content:{default:""},dataTestid:{}},setup(e){const t=n.inject("alwaysOpen"),r=n.inject("activeItemId"),o=n.ref(),a=n.ref(0),i=n.ref(!1);n.watch(r,()=>{l(),a.value===0&&(i.value=!1)});const l=()=>{i.value&&a.value===0?a.value=o.value.scrollHeight+_l:a.value=0},s=()=>{if(i.value=!i.value,t.value){l();return}r.value!==u.itemId?r.value=u.itemId:r.value=0},u=e;return(d,c)=>{const f=n.resolveComponent("base-button");return n.openBlock(),n.createElementBlock("div",Ll,[n.createVNode(f,{onClick:c[0]||(c[0]=p=>s()),class:"accordion-title","data-testid":u.dataTestid},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"title",{},()=>[n.createElementVNode("span",null,n.toDisplayString(u.title),1)],!0),n.createElementVNode("i",{class:n.normalizeClass(["accordion-collapse-item-icon i-fa7-solid:angle-down",{"accordiont-collapse-item-icon-active":i.value}])},null,2)]),_:3},8,["data-testid"]),n.createElementVNode("div",{ref_key:"contentRef",ref:o,class:n.normalizeClass(["accordion-content",{"accordion-content-active":i.value}]),style:n.normalizeStyle({height:`${a.value}px`})},[n.renderSlot(d.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.content),1)],!0)],6)])}}}),[["__scopeId","data-v-4ecb8017"]]),Fl={class:"alert-icon-container"},jl={key:0,class:"alert-icon"},zl={key:0,class:"block i-fa7-regular:circle-check"},Wl={class:"alert-text"},Hl={class:"font-extrabold"},mo=H(n.defineComponent({__name:"base-alert",props:{title:{default:""},icon:{},color:{default:"primary"},variant:{default:"fill"},isClosed:{type:Boolean,default:!1},isDismissable:{type:Boolean,default:!1}},setup(e){const t=e,r=[];r.push("alert");let o="";t.variant==="fill"&&(o=`alert-${t.color}`),t.variant==="light"&&(o=`alert-light-${t.color}`),t.variant==="outline"&&(o=`alert-outline-${t.color}`),r.push(`${o}`);const a=n.ref(t.isClosed),i=()=>{a.value=!0};return(l,s)=>{const u=n.resolveComponent("base-icon"),d=n.resolveComponent("base-button");return a.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(r)},[n.createElementVNode("div",Fl,[e.icon?(n.openBlock(),n.createElementBlock("div",jl,[e.icon==="success"?(n.openBlock(),n.createElementBlock("i",zl)):n.createCommentVNode("",!0),e.icon==="info"?(n.openBlock(),n.createBlock(u,{key:1,icon:"i-fa7-regular:circle-info"})):n.createCommentVNode("",!0),e.icon==="success"?(n.openBlock(),n.createBlock(u,{key:2,icon:"i-fa7-regular:circle-check"})):n.createCommentVNode("",!0),e.icon==="warning"?(n.openBlock(),n.createBlock(u,{key:3,icon:"i-fa7-regular:circle-exclamation"})):n.createCommentVNode("",!0),e.icon==="danger"?(n.openBlock(),n.createBlock(u,{key:4,icon:"i-fa7-regular:triangle-exclamation"})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",Wl,[n.createElementVNode("div",null,[n.renderSlot(l.$slots,"title",{},()=>[n.createElementVNode("span",Hl,n.toDisplayString(t.title),1)],!0)]),n.createElementVNode("div",null,[n.renderSlot(l.$slots,"default",{},void 0,!0)])])]),e.isDismissable?(n.openBlock(),n.createBlock(d,{key:0,type:"button",onClick:s[0]||(s[0]=c=>i()),variant:"text",size:"xs",color:"danger",class:"close-button"},{default:n.withCtx(()=>[n.createVNode(u,{icon:"i-fa7-solid:xmark"})]),_:1})):n.createCommentVNode("",!0)]))}}}),[["__scopeId","data-v-b4b4a5d0"]]),ql=["src"],Un=H(n.defineComponent({__name:"base-avatar",props:{name:{},src:{},color:{default:"secondary"},colorIndicator:{default:"success"},shape:{default:"circle"},size:{default:64},indicator:{type:Boolean,default:!1},animate:{type:Boolean,default:!1},indicatorScale:{default:"15%"}},setup(e){const t=e,r=n.computed(()=>{let s=t.size;return(typeof s=="number"||/^\d+$/.test(String(s)))&&(s=`${s}px`),{width:s,height:s,"--indicator-size":t.indicatorScale}}),o=n.computed(()=>{const s=[];return t.animate&&s.push("animate-slide-y"),s}),a=n.computed(()=>{const s=[];return t.shape==="circle"?s.push("rounded-full"):t.shape==="square"?s.push("rounded-lg"):t.shape==="squircle"&&s.push("mask mask-squircle"),t.color==="primary"?s.push("bg-primary text-white"):t.color==="secondary"?s.push("bg-secondary text-white"):t.color==="info"?s.push("bg-info text-white"):t.color==="success"?s.push("bg-success text-white"):t.color==="warning"?s.push("bg-warning text-white"):t.color==="danger"&&s.push("bg-danger text-white"),s}),i=n.computed(()=>[`bg-${t.colorIndicator}`]),l=s=>{if(s){const u=s.split(" ",2);return u.length===2?u[0].substring(0,1)+u[1].substring(0,1):s.substring(0,2)}return""};return(s,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["avatar",o.value]),style:n.normalizeStyle(r.value)},[e.src?(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(["avatar-ring h-full w-full",a.value]),src:e.src},null,10,ql)):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(["avatar-initial h-full w-full",a.value])},n.toDisplayString(l(e.name)),3)),e.indicator?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(["avatar-indicator",i.value])},null,2)):n.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-4f83265a"]]),Ul={},Yl={class:"avatar-group"};function Xl(e,t){return n.openBlock(),n.createElementBlock("div",Yl,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}const vo=H(Ul,[["render",Xl],["__scopeId","data-v-85c79e7a"]]),Ql={key:0,class:"h-2 w-2 rounded-full bg-current"},ho=H(n.defineComponent({__name:"base-badge",props:{color:{default:"primary"},variant:{default:"filled"},withDot:{type:Boolean,default:!1}},setup(e){const t=e,r=[];let o="";return t.variant==="filled"&&(o=`badge-${t.color}`),t.variant==="light"&&(o=`badge-light-${t.color}`),t.variant==="outlined"&&(o=`badge-outline-${t.color}`),r.push(`${o}`),(a,i)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["badge",r])},[e.withDot?(n.openBlock(),n.createElementBlock("div",Ql)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-7c8ade6a"]]),Gl={class:"breadcrumb-ul"},go=H(n.defineComponent({__name:"base-breadcrumb",props:{items:{},separator:{default:"angle"}},setup(e){const t=e;return(r,o)=>(n.openBlock(),n.createElementBlock("ul",Gl,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(a,i)=>(n.openBlock(),n.createElementBlock("li",{key:i,class:"breadcrumb-li"},[n.createElementVNode("span",{class:n.normalizeClass(["whitespace-nowrap",{"breadcrumb-link":a.path}])},[n.renderSlot(r.$slots,"default",{index:i,item:a},void 0,!0)],2),i+1<t.items.length?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["block breadcrumb-separator",{"i-fa7-solid:angle-right":e.separator==="angle","i-fa7-solid:arrow-right":e.separator==="arrow","i-fa7-solid:slash-forward":e.separator==="slash"}])},null,2)):n.createCommentVNode("",!0)]))),128))]))}}),[["__scopeId","data-v-74fdc103"]]),Kl=["type","disabled","data-testid"],Jl={key:0,class:"spinner spinner-black spinner-xs"},Zl={key:1,class:"spinner spinner-white spinner-xs"},fn=H(n.defineComponent({__name:"base-button",props:{type:{default:"button"},size:{default:"md"},color:{default:"none"},variant:{default:"filled"},shape:{default:"sharp"},align:{default:"middle"},isBlock:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{}},setup(e){const t=e,r=[];let o="";t.variant==="filled"&&(o=`btn-${t.color}`),t.variant==="light"&&(o=`btn-light-${t.color}`),t.variant==="outlined"&&(o=`btn-outline-${t.color}`),t.variant==="text"&&(o=`btn-text-${t.color}`),r.push(`${o}`);let a="";return t.shape==="sharp"&&(a="rounded-none"),t.shape==="rounded"&&(a="rounded-lg"),t.shape==="pill"&&(t.size==="xs"&&(a="rounded-full !px-2"),t.size==="sm"&&(a="rounded-full !px-2.5"),t.size==="md"&&(a="rounded-full !px-3"),t.size==="lg"&&(a="rounded-full !px-4"),t.size==="xl"&&(a="rounded-full !px-4.5"),t.size==="2xl"&&(a="rounded-full !px-5")),r.push(`${a}`),t.isBlock&&r.push("btn-block"),t.size!=="none"&&r.push(`btn-${t.size}`),t.align&&r.push(`text-${t.align}`),(i,l)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["btn",r]),type:e.type,disabled:e.disabled||e.isLoading,"data-testid":t.dataTestid},[n.renderSlot(i.$slots,"default",{},void 0,!0),e.isLoading&&(e.variant==="text"||e.variant==="outlined")?(n.openBlock(),n.createElementBlock("span",Jl)):n.createCommentVNode("",!0),e.isLoading&&(e.variant==="filled"||e.variant==="light")?(n.openBlock(),n.createElementBlock("span",Zl)):n.createCommentVNode("",!0)],8,Kl))}}),[["__scopeId","data-v-0a388736"]]),$l={class:"card-header"},es={class:"flex justify-between items-center text-xs uppercase font-semibold"},ts={key:0,class:"border-b border-slate-200 dark:border-slate-700 -mx-4 my-4"},bo=H(n.defineComponent({__name:"base-card",props:{title:{},bgColor:{},titleColor:{},bodyColor:{},shadow:{type:Boolean,default:!1},shape:{default:"sharp"}},setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["card",{"card-shadow ":e.shadow,"card-rounded":e.shape==="rounded"}]),style:n.normalizeStyle({backgroundColor:e.bgColor,color:e.titleColor})},[n.createElementVNode("div",$l,[n.createElementVNode("div",es,[n.createElementVNode("div",null,[n.renderSlot(t.$slots,"header",{},()=>[n.createTextVNode(n.toDisplayString(e.title),1)],!0)]),n.createElementVNode("div",null,[n.renderSlot(t.$slots,"header-button",{},void 0,!0)])])]),e.title?(n.openBlock(),n.createElementBlock("div",ts)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"card-body",style:n.normalizeStyle({color:e.bodyColor})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4)],6))}}),[["__scopeId","data-v-e824d2d1"]]),ns={key:0,class:"text-xs text-slate-500"},yo=H(n.defineComponent({__name:"base-divider",props:{text:{},orientation:{}},setup(e){const t=e;return(r,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"divider-horizontal":t.orientation==="horizontal","divider-vertical":t.orientation==="vertical"})},[n.createElementVNode("div",{class:n.normalizeClass({"divider-horizontal-line":t.orientation==="horizontal","divider-vertical-line":t.orientation==="vertical"})},null,2),e.text?(n.openBlock(),n.createElementBlock("p",ns,n.toDisplayString(t.text),1)):n.createCommentVNode("",!0),e.text?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass({"divider-horizontal-line":t.orientation==="horizontal","divider-vertical-line":t.orientation==="vertical"})},null,2)):n.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-35004ef6"]]);function yt(e,t,r){let o=r.initialDeps??[],a;function i(){var l,s,u,d;let c;r.key&&((l=r.debug)!=null&&l.call(r))&&(c=Date.now());const f=e();if(!(f.length!==o.length||f.some((b,m)=>o[m]!==b)))return a;o=f;let g;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(g=Date.now()),a=t(...f),r.key&&((u=r.debug)!=null&&u.call(r))){const b=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-g)*100)/100,h=m/16,y=(A,B)=>{for(A=String(A);A.length<B;)A=" "+A;return A};console.info(`%c⏱ ${y(m,5)} /${y(b,5)} ms`,`
|
|
1
|
+
(function(P,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("vue-router"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","pinia"],n):(P=typeof globalThis<"u"?globalThis:P||self,n(P.Papp={},P.Vue,P.vueRouter,P.pinia))})(this,(function(P,n,uo,dn){"use strict";function Nl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const co=Nl(n),Il={class:"accordion-container"},Rl=n.defineComponent({__name:"base-accordion",props:{alwaysOpen:{type:Boolean,default:!1}},setup(e){const t=e,r=n.ref(t.alwaysOpen),o=n.ref(0);return n.provide("alwaysOpen",r),n.provide("activeItemId",o),(a,i)=>(n.openBlock(),n.createElementBlock("div",Il,[n.renderSlot(a.$slots,"default",{},void 0,!0)]))}}),H=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},fo=H(Rl,[["__scopeId","data-v-72d57350"]]),Ll={class:"accordion-item"},_l=32,po=H(n.defineComponent({__name:"base-accordion-item",props:{itemId:{},title:{default:""},content:{default:""},dataTestid:{}},setup(e){const t=n.inject("alwaysOpen"),r=n.inject("activeItemId"),o=n.ref(),a=n.ref(0),i=n.ref(!1);n.watch(r,()=>{l(),a.value===0&&(i.value=!1)});const l=()=>{i.value&&a.value===0?a.value=o.value.scrollHeight+_l:a.value=0},s=()=>{if(i.value=!i.value,t.value){l();return}r.value!==u.itemId?r.value=u.itemId:r.value=0},u=e;return(d,c)=>{const f=n.resolveComponent("base-button");return n.openBlock(),n.createElementBlock("div",Ll,[n.createVNode(f,{onClick:c[0]||(c[0]=p=>s()),class:"accordion-title","data-testid":u.dataTestid},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"title",{},()=>[n.createElementVNode("span",null,n.toDisplayString(u.title),1)],!0),n.createElementVNode("i",{class:n.normalizeClass(["accordion-collapse-item-icon i-fa7-solid:angle-down",{"accordiont-collapse-item-icon-active":i.value}])},null,2)]),_:3},8,["data-testid"]),n.createElementVNode("div",{ref_key:"contentRef",ref:o,class:n.normalizeClass(["accordion-content",{"accordion-content-active":i.value}]),style:n.normalizeStyle({height:`${a.value}px`})},[n.renderSlot(d.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.content),1)],!0)],6)])}}}),[["__scopeId","data-v-4ecb8017"]]),Fl={class:"alert-icon-container"},jl={key:0,class:"alert-icon"},zl={key:0,class:"block i-fa7-regular:circle-check"},Wl={class:"alert-text"},Hl={class:"font-extrabold"},mo=H(n.defineComponent({__name:"base-alert",props:{title:{default:""},icon:{},color:{default:"primary"},variant:{default:"fill"},isClosed:{type:Boolean,default:!1},isDismissable:{type:Boolean,default:!1}},setup(e){const t=e,r=[];r.push("alert");let o="";t.variant==="fill"&&(o=`alert-${t.color}`),t.variant==="light"&&(o=`alert-light-${t.color}`),t.variant==="outline"&&(o=`alert-outline-${t.color}`),r.push(`${o}`);const a=n.ref(t.isClosed),i=()=>{a.value=!0};return(l,s)=>{const u=n.resolveComponent("base-icon"),d=n.resolveComponent("base-button");return a.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(r)},[n.createElementVNode("div",Fl,[e.icon?(n.openBlock(),n.createElementBlock("div",jl,[e.icon==="success"?(n.openBlock(),n.createElementBlock("i",zl)):n.createCommentVNode("",!0),e.icon==="info"?(n.openBlock(),n.createBlock(u,{key:1,icon:"i-fa7-regular:circle-info"})):n.createCommentVNode("",!0),e.icon==="success"?(n.openBlock(),n.createBlock(u,{key:2,icon:"i-fa7-regular:circle-check"})):n.createCommentVNode("",!0),e.icon==="warning"?(n.openBlock(),n.createBlock(u,{key:3,icon:"i-fa7-regular:circle-exclamation"})):n.createCommentVNode("",!0),e.icon==="danger"?(n.openBlock(),n.createBlock(u,{key:4,icon:"i-fa7-regular:triangle-exclamation"})):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createElementVNode("div",Wl,[n.createElementVNode("div",null,[n.renderSlot(l.$slots,"title",{},()=>[n.createElementVNode("span",Hl,n.toDisplayString(t.title),1)],!0)]),n.createElementVNode("div",null,[n.renderSlot(l.$slots,"default",{},void 0,!0)])])]),e.isDismissable?(n.openBlock(),n.createBlock(d,{key:0,type:"button",onClick:s[0]||(s[0]=c=>i()),variant:"text",size:"xs",color:"danger",class:"close-button"},{default:n.withCtx(()=>[n.createVNode(u,{icon:"i-fa7-solid:xmark"})]),_:1})):n.createCommentVNode("",!0)]))}}}),[["__scopeId","data-v-b4b4a5d0"]]),ql=["src"],Un=H(n.defineComponent({__name:"base-avatar",props:{name:{},src:{},color:{default:"secondary"},colorIndicator:{default:"success"},shape:{default:"circle"},size:{default:64},indicator:{type:Boolean,default:!1},animate:{type:Boolean,default:!1},indicatorScale:{default:"15%"}},setup(e){const t=e,r=n.computed(()=>{let s=t.size;return(typeof s=="number"||/^\d+$/.test(String(s)))&&(s=`${s}px`),{width:s,height:s,"--indicator-size":t.indicatorScale}}),o=n.computed(()=>{const s=[];return t.animate&&s.push("animate-slide-y"),s}),a=n.computed(()=>{const s=[];return t.shape==="circle"?s.push("rounded-full"):t.shape==="square"?s.push("rounded-lg"):t.shape==="squircle"&&s.push("mask mask-squircle"),t.color==="primary"?s.push("bg-primary text-white"):t.color==="secondary"?s.push("bg-secondary text-white"):t.color==="info"?s.push("bg-info text-white"):t.color==="success"?s.push("bg-success text-white"):t.color==="warning"?s.push("bg-warning text-white"):t.color==="danger"&&s.push("bg-danger text-white"),s}),i=n.computed(()=>[`bg-${t.colorIndicator}`]),l=s=>{if(s){const u=s.split(" ",2);return u.length===2?u[0].substring(0,1)+u[1].substring(0,1):s.substring(0,2)}return""};return(s,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["avatar",o.value]),style:n.normalizeStyle(r.value)},[e.src?(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(["avatar-ring h-full w-full",a.value]),src:e.src},null,10,ql)):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(["avatar-initial h-full w-full",a.value])},n.toDisplayString(l(e.name)),3)),e.indicator?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(["avatar-indicator",i.value])},null,2)):n.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-4f83265a"]]),Ul={},Yl={class:"avatar-group"};function Xl(e,t){return n.openBlock(),n.createElementBlock("div",Yl,[n.renderSlot(e.$slots,"default",{},void 0,!0)])}const vo=H(Ul,[["render",Xl],["__scopeId","data-v-85c79e7a"]]),Ql={key:0,class:"h-2 w-2 rounded-full bg-current"},ho=H(n.defineComponent({__name:"base-badge",props:{color:{default:"primary"},variant:{default:"filled"},withDot:{type:Boolean,default:!1}},setup(e){const t=e,r=[];let o="";return t.variant==="filled"&&(o=`badge-${t.color}`),t.variant==="light"&&(o=`badge-light-${t.color}`),t.variant==="outlined"&&(o=`badge-outline-${t.color}`),r.push(`${o}`),(a,i)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["badge",r])},[e.withDot?(n.openBlock(),n.createElementBlock("div",Ql)):n.createCommentVNode("",!0),n.renderSlot(a.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-7c8ade6a"]]),Gl={class:"breadcrumb-ul overflow-hidden"},go=H(n.defineComponent({__name:"base-breadcrumb",props:{items:{},separator:{default:"angle"}},setup(e){const t=e;return(r,o)=>(n.openBlock(),n.createElementBlock("ul",Gl,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.items,(a,i)=>(n.openBlock(),n.createElementBlock("li",{key:i,class:"breadcrumb-li"},[n.createElementVNode("span",{class:n.normalizeClass(["whitespace-nowrap",{"breadcrumb-link":a.path}])},[n.renderSlot(r.$slots,"default",{index:i,item:a},void 0,!0)],2),i+1<t.items.length?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["block breadcrumb-separator",{"i-fa7-solid:angle-right":e.separator==="angle","i-fa7-solid:arrow-right":e.separator==="arrow","i-fa7-solid:slash-forward":e.separator==="slash"}])},null,2)):n.createCommentVNode("",!0)]))),128))]))}}),[["__scopeId","data-v-e40f9683"]]),Kl=["type","disabled","data-testid"],Jl={key:0,class:"spinner spinner-black spinner-xs"},Zl={key:1,class:"spinner spinner-white spinner-xs"},fn=H(n.defineComponent({__name:"base-button",props:{type:{default:"button"},size:{default:"md"},color:{default:"none"},variant:{default:"filled"},shape:{default:"sharp"},align:{default:"middle"},isBlock:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dataTestid:{}},setup(e){const t=e,r=[];let o="";t.variant==="filled"&&(o=`btn-${t.color}`),t.variant==="light"&&(o=`btn-light-${t.color}`),t.variant==="outlined"&&(o=`btn-outline-${t.color}`),t.variant==="text"&&(o=`btn-text-${t.color}`),r.push(`${o}`);let a="";return t.shape==="sharp"&&(a="rounded-none"),t.shape==="rounded"&&(a="rounded-lg"),t.shape==="pill"&&(t.size==="xs"&&(a="rounded-full !px-2"),t.size==="sm"&&(a="rounded-full !px-2.5"),t.size==="md"&&(a="rounded-full !px-3"),t.size==="lg"&&(a="rounded-full !px-4"),t.size==="xl"&&(a="rounded-full !px-4.5"),t.size==="2xl"&&(a="rounded-full !px-5")),r.push(`${a}`),t.isBlock&&r.push("btn-block"),t.size!=="none"&&r.push(`btn-${t.size}`),t.align&&r.push(`text-${t.align}`),(i,l)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["btn",r]),type:e.type,disabled:e.disabled||e.isLoading,"data-testid":t.dataTestid},[n.renderSlot(i.$slots,"default",{},void 0,!0),e.isLoading&&(e.variant==="text"||e.variant==="outlined")?(n.openBlock(),n.createElementBlock("span",Jl)):n.createCommentVNode("",!0),e.isLoading&&(e.variant==="filled"||e.variant==="light")?(n.openBlock(),n.createElementBlock("span",Zl)):n.createCommentVNode("",!0)],8,Kl))}}),[["__scopeId","data-v-0a388736"]]),$l={class:"card-header"},es={class:"flex justify-between items-center text-xs uppercase font-semibold"},ts={key:0,class:"border-b border-slate-200 dark:border-slate-700 -mx-4 my-4"},bo=H(n.defineComponent({__name:"base-card",props:{title:{},bgColor:{},titleColor:{},bodyColor:{},shadow:{type:Boolean,default:!1},shape:{default:"sharp"}},setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["card",{"card-shadow ":e.shadow,"card-rounded":e.shape==="rounded"}]),style:n.normalizeStyle({backgroundColor:e.bgColor,color:e.titleColor})},[n.createElementVNode("div",$l,[n.createElementVNode("div",es,[n.createElementVNode("div",null,[n.renderSlot(t.$slots,"header",{},()=>[n.createTextVNode(n.toDisplayString(e.title),1)],!0)]),n.createElementVNode("div",null,[n.renderSlot(t.$slots,"header-button",{},void 0,!0)])])]),e.title?(n.openBlock(),n.createElementBlock("div",ts)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"card-body",style:n.normalizeStyle({color:e.bodyColor})},[n.renderSlot(t.$slots,"default",{},void 0,!0)],4)],6))}}),[["__scopeId","data-v-e824d2d1"]]),ns={key:0,class:"text-xs text-slate-500"},yo=H(n.defineComponent({__name:"base-divider",props:{text:{},orientation:{}},setup(e){const t=e;return(r,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"divider-horizontal":t.orientation==="horizontal","divider-vertical":t.orientation==="vertical"})},[n.createElementVNode("div",{class:n.normalizeClass({"divider-horizontal-line":t.orientation==="horizontal","divider-vertical-line":t.orientation==="vertical"})},null,2),e.text?(n.openBlock(),n.createElementBlock("p",ns,n.toDisplayString(t.text),1)):n.createCommentVNode("",!0),e.text?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass({"divider-horizontal-line":t.orientation==="horizontal","divider-vertical-line":t.orientation==="vertical"})},null,2)):n.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-35004ef6"]]);function yt(e,t,r){let o=r.initialDeps??[],a;function i(){var l,s,u,d;let c;r.key&&((l=r.debug)!=null&&l.call(r))&&(c=Date.now());const f=e();if(!(f.length!==o.length||f.some((b,m)=>o[m]!==b)))return a;o=f;let g;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(g=Date.now()),a=t(...f),r.key&&((u=r.debug)!=null&&u.call(r))){const b=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-g)*100)/100,h=m/16,y=(A,B)=>{for(A=String(A);A.length<B;)A=" "+A;return A};console.info(`%c⏱ ${y(m,5)} /${y(b,5)} ms`,`
|
|
2
2
|
font-size: .6rem;
|
|
3
3
|
font-weight: bold;
|
|
4
4
|
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,r?.key)}return(d=r?.onChange)==null||d.call(r,a),a}return i.updateDeps=l=>{o=l},i}function Ao(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const rs=(e,t)=>Math.abs(e-t)<1.01,os=(e,t,r)=>{let o;return function(...a){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,a),r)}},wo=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},as=e=>e,is=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let a=t;a<=r;a++)o.push(a);return o},ls=(e,t)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const a=l=>{const{width:s,height:u}=l;t({width:Math.round(s),height:Math.round(u)})};if(a(wo(r)),!o.ResizeObserver)return()=>{};const i=new o.ResizeObserver(l=>{const s=()=>{const u=l[0];if(u?.borderBoxSize){const d=u.borderBoxSize[0];if(d){a({width:d.inlineSize,height:d.blockSize});return}}a(wo(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},xo={passive:!0},ko=typeof window>"u"?!0:"onscrollend"in window,ss=(e,t)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;let a=0;const i=e.options.useScrollendEvent&&ko?()=>{}:os(o,()=>{t(a,!1)},e.options.isScrollingResetDelay),l=c=>()=>{const{horizontal:f,isRtl:p}=e.options;a=f?r.scrollLeft*(p&&-1||1):r.scrollTop,i(),t(a,c)},s=l(!0),u=l(!1);u(),r.addEventListener("scroll",s,xo);const d=e.options.useScrollendEvent&&ko;return d&&r.addEventListener("scrollend",u,xo),()=>{r.removeEventListener("scroll",s),d&&r.removeEventListener("scrollend",u)}},us=(e,t,r)=>{if(t?.borderBoxSize){const o=t.borderBoxSize[0];if(o)return Math.round(o[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},cs=(e,{adjustments:t=0,behavior:r},o)=>{var a,i;const l=e+t;(i=(a=o.scrollElement)==null?void 0:a.scrollTo)==null||i.call(a,{[o.options.horizontal?"left":"top"]:l,behavior:r})};class ds{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const o=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(a=>{a.forEach(i=>{const l=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var a;(a=o())==null||a.disconnect(),r=null},observe:a=>{var i;return(i=o())==null?void 0:i.observe(a,{box:"border-box"})},unobserve:a=>{var i;return(i=o())==null?void 0:i.unobserve(a)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([o,a])=>{typeof a>"u"&&delete r[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:as,rangeExtractor:is,onChange:()=>{},measureElement:us,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var o,a;(a=(o=this.options).onChange)==null||a.call(o,this,r)},this.maybeNotify=yt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,o)=>{const a=new Map,i=new Map;for(let l=o-1;l>=0;l--){const s=r[l];if(a.has(s.lane))continue;const u=i.get(s.lane);if(u==null||s.end>u.end?i.set(s.lane,s):s.end<u.end&&a.set(s.lane,!0),a.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,s)=>l.end===s.end?l.index-s.index:l.end-s.end)[0]:void 0},this.getMeasurementOptions=yt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,o,a,i,l)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:o,scrollMargin:a,getItemKey:i,enabled:l}),{key:!1}),this.getMeasurements=yt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:o,scrollMargin:a,getItemKey:i,enabled:l},s)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,u);for(let c=u;c<r;c++){const f=i(c),p=this.options.lanes===1?d[c-1]:this.getFurthestMeasurement(d,c),g=p?p.end+this.options.gap:o+a,b=s.get(f),m=typeof b=="number"?b:this.options.estimateSize(c),h=g+m,y=p?p.lane:c%this.options.lanes;d[c]={index:c,start:g,size:m,end:h,key:f,lane:y}}return this.measurementsCache=d,d},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=yt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,o,a,i)=>this.range=r.length>0&&o>0?fs({measurements:r,outerSize:o,scrollOffset:a,lanes:i}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=yt(()=>{let r=null,o=null;const a=this.calculateRange();return a&&(r=a.startIndex,o=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,o]},(r,o,a,i,l)=>i===null||l===null?[]:r({startIndex:i,endIndex:l,overscan:o,count:a}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const o=this.options.indexAttribute,a=r.getAttribute(o);return a?parseInt(a,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(r,o)=>{const a=this.indexFromElement(r),i=this.measurementsCache[a];if(!i)return;const l=i.key,s=this.elementsCache.get(l);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(l,r)),r.isConnected&&this.resizeItem(a,this.options.measureElement(r,o,this))},this.resizeItem=(r,o)=>{const a=this.measurementsCache[r];if(!a)return;const i=this.itemSizeCache.get(a.key)??a.size,l=o-i;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,l,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,o)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((o,a)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(a))});return}this._measureElement(r,void 0)},this.getVirtualItems=yt(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,o)=>{const a=[];for(let i=0,l=r.length;i<l;i++){const s=r[i],u=o[s];a.push(u)}return a},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const o=this.getMeasurements();if(o.length!==0)return Ao(o[Co(0,o.length-1,a=>Ao(o[a]).start,r)])},this.getOffsetForAlignment=(r,o,a=0)=>{const i=this.getSize(),l=this.getScrollOffset();o==="auto"&&(o=r>=l+i?"end":"start"),o==="center"?r+=(a-i)/2:o==="end"&&(r-=i);const s=this.getTotalSize()+this.options.scrollMargin-i;return Math.max(Math.min(s,r),0)},this.getOffsetForIndex=(r,o="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const a=this.measurementsCache[r];if(!a)return;const i=this.getSize(),l=this.getScrollOffset();if(o==="auto")if(a.end>=l+i-this.options.scrollPaddingEnd)o="end";else if(a.start<=l+this.options.scrollPaddingStart)o="start";else return[l,o];const s=o==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,o,a.size),o]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(r,{align:o="start",behavior:a}={})=>{a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=(r,{align:o="auto",behavior:a}={})=>{a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),r=Math.max(0,Math.min(r,this.options.count-1));let i=0;const l=10,s=d=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(r,d);if(!c){console.warn("Failed to get offset for index:",r);return}const[f,p]=c;this._scrollToOffset(f,{adjustments:void 0,behavior:a}),this.targetWindow.requestAnimationFrame(()=>{const g=this.getScrollOffset(),b=this.getOffsetForIndex(r,p);if(!b){console.warn("Failed to get offset for index:",r);return}rs(b[0],g)||u(p)})},u=d=>{this.targetWindow&&(i++,i<l?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",i,l),this.targetWindow.requestAnimationFrame(()=>s(d))):console.warn(`Failed to scroll to index ${r} after ${l} attempts.`))};s(o)},this.scrollBy=(r,{behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var r;const o=this.getMeasurements();let a;if(o.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((r=o[o.length-1])==null?void 0:r.end)??0;else{const i=Array(this.options.lanes).fill(null);let l=o.length-1;for(;l>=0&&i.some(s=>s===null);){const s=o[l];i[s.lane]===null&&(i[s.lane]=s.end),l--}a=Math.max(...i.filter(s=>s!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:o,behavior:a})=>{this.options.scrollToFn(r,{behavior:a,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const Co=(e,t,r,o)=>{for(;e<=t;){const a=(e+t)/2|0,i=r(a);if(i<o)e=a+1;else if(i>o)t=a-1;else return a}return e>0?e-1:0};function fs({measurements:e,outerSize:t,scrollOffset:r,lanes:o}){const a=e.length-1,i=u=>e[u].start;if(e.length<=o)return{startIndex:0,endIndex:a};let l=Co(0,a,i,r),s=l;if(o===1)for(;s<a&&e[s].end<r+t;)s++;else if(o>1){const u=Array(o).fill(0);for(;s<a&&u.some(c=>c<r+t);){const c=e[s];u[c.lane]=c.end,s++}const d=Array(o).fill(r+t);for(;l>=0&&d.some(c=>c>=r);){const c=e[l];d[c.lane]=c.start,l--}l=Math.max(0,l-l%o),s=Math.min(a,s+(o-1-s%o))}return{startIndex:l,endIndex:s}}function ps(e){const t=new ds(n.unref(e)),r=n.shallowRef(t),o=t._didMount();return n.watch(()=>n.unref(e).getScrollElement(),a=>{a&&t._willUpdate()},{immediate:!0}),n.watch(()=>n.unref(e),a=>{t.setOptions({...a,onChange:(i,l)=>{var s;n.triggerRef(r),(s=a.onChange)==null||s.call(a,i,l)}}),t._willUpdate(),n.triggerRef(r)},{immediate:!0}),n.onScopeDispose(o),r}function ms(e){return ps(n.computed(()=>({observeElementRect:ls,observeElementOffset:ss,scrollToFn:cs,...n.unref(e)})))}function Bo(e,t,r){let o=n.ref(r?.value),a=n.computed(()=>e.value!==void 0);return[n.computed(()=>a.value?e.value:o.value),function(i){return a.value||(o.value=i),t?.(i)}]}function pn(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function qe(){let e=[],t={addEventListener(r,o,a,i){return r.addEventListener(o,a,i),t.add(()=>r.removeEventListener(o,a,i))},requestAnimationFrame(...r){let o=requestAnimationFrame(...r);t.add(()=>cancelAnimationFrame(o))},nextFrame(...r){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...r)})},setTimeout(...r){let o=setTimeout(...r);t.add(()=>clearTimeout(o))},microTask(...r){let o={current:!0};return pn(()=>{o.current&&r[0]()}),t.add(()=>{o.current=!1})},style(r,o,a){let i=r.style.getPropertyValue(o);return Object.assign(r.style,{[o]:a}),this.add(()=>{Object.assign(r.style,{[o]:i})})},group(r){let o=qe();return r(o),this.add(()=>o.dispose())},add(r){return e.push(r),()=>{let o=e.indexOf(r);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function vs(){let e=qe();return n.onUnmounted(()=>e.dispose()),e}function hs(){let e=vs();return t=>{e.dispose(),e.nextFrame(t)}}var So;let gs=Symbol("headlessui.useid"),bs=0;const ie=(So=co.useId)!=null?So:function(){return co.inject(gs,()=>`${++bs}`)()};function V(e){var t;if(e==null||e.value==null)return null;let r=(t=e.value.$el)!=null?t:e.value;return r instanceof Node?r:null}function oe(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,oe),o}var ys=Object.defineProperty,As=(e,t,r)=>t in e?ys(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Eo=(e,t,r)=>(As(e,typeof t!="symbol"?t+"":t,r),r);let ws=class{constructor(){Eo(this,"current",this.detect()),Eo(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},It=new ws;function pe(e){if(It.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=V(e);if(t)return t.ownerDocument}return document}let Yn=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var re=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(re||{}),Ue=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ue||{}),xs=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(xs||{});function Oo(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Yn)).sort((t,r)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xn||{});function Qn(e,t=0){var r;return e===((r=pe(e))==null?void 0:r.body)?!1:oe(t,{0(){return e.matches(Yn)},1(){let o=e;for(;o!==null;){if(o.matches(Yn))return!0;o=o.parentElement}return!1}})}function To(e){let t=pe(e);n.nextTick(()=>{t&&!Qn(t.activeElement,0)&&Ye(e)})}var ks=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ks||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ye(e){e?.focus({preventScroll:!0})}let Cs=["textarea","input"].join(",");function Bs(e){var t,r;return(r=(t=e?.matches)==null?void 0:t.call(e,Cs))!=null?r:!1}function Fe(e,t=r=>r){return e.slice().sort((r,o)=>{let a=t(r),i=t(o);if(a===null||i===null)return 0;let l=a.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ss(e,t){return me(Oo(),t,{relativeTo:e})}function me(e,t,{sorted:r=!0,relativeTo:o=null,skipElements:a=[]}={}){var i;let l=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e?.ownerDocument)!=null?i:document,s=Array.isArray(e)?r?Fe(e):e:Oo(e);a.length>0&&s.length>1&&(s=s.filter(b=>!a.includes(b))),o=o??l.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(o))-1;if(t&4)return Math.max(0,s.indexOf(o))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,p=s.length,g;do{if(f>=p||f+p<=0)return 0;let b=d+f;if(t&16)b=(b+p)%p;else{if(b<0)return 3;if(b>=p)return 1}g=s[b],g?.focus(c),f+=u}while(g!==l.activeElement);return t&6&&Bs(g)&&g.select(),2}function Mo(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Es(){return/Android/gi.test(window.navigator.userAgent)}function Do(){return Mo()||Es()}function mn(e,t,r){It.isServer||n.watchEffect(o=>{document.addEventListener(e,t,r),o(()=>document.removeEventListener(e,t,r))})}function Vo(e,t,r){It.isServer||n.watchEffect(o=>{window.addEventListener(e,t,r),o(()=>window.removeEventListener(e,t,r))})}function Gn(e,t,r=n.computed(()=>!0)){function o(i,l){if(!r.value||i.defaultPrevented)return;let s=l(i);if(s===null||!s.getRootNode().contains(s))return;let u=(function d(c){return typeof c=="function"?d(c()):Array.isArray(c)||c instanceof Set?c:[c]})(e);for(let d of u){if(d===null)continue;let c=d instanceof HTMLElement?d:V(d);if(c!=null&&c.contains(s)||i.composed&&i.composedPath().includes(c))return}return!Qn(s,Xn.Loose)&&s.tabIndex!==-1&&i.preventDefault(),t(i,s)}let a=n.ref(null);mn("pointerdown",i=>{var l,s;r.value&&(a.value=((s=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:s[0])||i.target)},!0),mn("mousedown",i=>{var l,s;r.value&&(a.value=((s=(l=i.composedPath)==null?void 0:l.call(i))==null?void 0:s[0])||i.target)},!0),mn("click",i=>{Do()||a.value&&(o(i,()=>a.value),a.value=null)},!0),mn("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Vo("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Po(e,t){if(e)return e;let r=t??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function Kn(e,t){let r=n.ref(Po(e.value.type,e.value.as));return n.onMounted(()=>{r.value=Po(e.value.type,e.value.as)}),n.watchEffect(()=>{var o;r.value||V(t)&&V(t)instanceof HTMLButtonElement&&!((o=V(t))!=null&&o.hasAttribute("type"))&&(r.value="button")}),r}function No(e){return[e.screenX,e.screenY]}function Io(){let e=n.ref([-1,-1]);return{wasMoved(t){let r=No(t);return e.value[0]===r[0]&&e.value[1]===r[1]?!1:(e.value=r,!0)},update(t){e.value=No(t)}}}function Jn({container:e,accept:t,walk:r,enabled:o}){n.watchEffect(()=>{let a=e.value;if(!a||o!==void 0&&!o.value)return;let i=pe(e);if(!i)return;let l=Object.assign(u=>t(u),{acceptNode:t}),s=i.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,l,!1);for(;s.nextNode();)r(s.currentNode)})}var ve=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ve||{}),Xe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Xe||{});function Q({visible:e=!0,features:t=0,ourProps:r,theirProps:o,...a}){var i;let l=Lo(o,r),s=Object.assign(a,{props:l});if(e||t&2&&l.static)return Zn(s);if(t&1){let u=(i=l.unmount)==null||i?0:1;return oe(u,{0(){return null},1(){return Zn({...a,props:{...l,hidden:!0,style:{display:"none"}}})}})}return Zn(s)}function Zn({props:e,attrs:t,slots:r,slot:o,name:a}){var i,l;let{as:s,...u}=nt(e,["unmount","static"]),d=(i=r.default)==null?void 0:i.call(r,o),c={};if(o){let f=!1,p=[];for(let[g,b]of Object.entries(o))typeof b=="boolean"&&(f=!0),b===!0&&p.push(g);f&&(c["data-headlessui-state"]=p.join(" "))}if(s==="template"){if(d=Ro(d??[]),Object.keys(u).length>0||Object.keys(t).length>0){let[f,...p]=d??[];if(!Os(f)||p.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(u).concat(Object.keys(t)).map(m=>m.trim()).filter((m,h,y)=>y.indexOf(m)===h).sort((m,h)=>m.localeCompare(h)).map(m=>` - ${m}`).join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@point-hub/papp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.150",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@point-hub/js-utils": "^0.0.6",
|
|
44
44
|
"@point-hub/preset-papp-icon": "^0.0.12",
|
|
45
45
|
"@tsconfig/node22": "^22.0.5",
|
|
46
|
-
"@unocss/vite": "^66.5.
|
|
46
|
+
"@unocss/vite": "^66.5.12",
|
|
47
47
|
"@vueuse/components": "^14.1.0",
|
|
48
48
|
"@vueuse/core": "^14.1.0",
|
|
49
49
|
"cleave.js": "^1.6.0",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.8",
|
|
64
64
|
"@types/cleave.js": "^1.4.12",
|
|
65
65
|
"@types/jsdom": "^27.0.0",
|
|
66
|
-
"@types/node": "^25.0.
|
|
66
|
+
"@types/node": "^25.0.6",
|
|
67
67
|
"@types/textarea-caret": "^3.0.4",
|
|
68
68
|
"@types/uuid": "^11.0.0",
|
|
69
|
-
"@unocss/preset-web-fonts": "^66.5.
|
|
70
|
-
"@unocss/reset": "^66.5.
|
|
71
|
-
"@unocss/transformer-directives": "^66.5.
|
|
69
|
+
"@unocss/preset-web-fonts": "^66.5.12",
|
|
70
|
+
"@unocss/reset": "^66.5.12",
|
|
71
|
+
"@unocss/transformer-directives": "^66.5.12",
|
|
72
72
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
73
|
-
"@vitest/eslint-plugin": "^1.
|
|
73
|
+
"@vitest/eslint-plugin": "^1.6.6",
|
|
74
74
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
75
75
|
"@vue/test-utils": "^2.4.6",
|
|
76
76
|
"@vue/tsconfig": "^0.8.1",
|
|
@@ -78,22 +78,22 @@
|
|
|
78
78
|
"chokidar-cli": "^3.0.0",
|
|
79
79
|
"cypress-file-upload": "^5.0.8",
|
|
80
80
|
"eslint": "9.39.2",
|
|
81
|
-
"eslint-plugin-cypress": "^5.2.
|
|
81
|
+
"eslint-plugin-cypress": "^5.2.1",
|
|
82
82
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
83
83
|
"eslint-plugin-vue": "^10.6.2",
|
|
84
|
-
"jsdom": "^27.
|
|
84
|
+
"jsdom": "^27.4.0",
|
|
85
85
|
"npm-run-all2": "^8.0.4",
|
|
86
86
|
"postcss": "^8.5.6",
|
|
87
87
|
"rimraf": "^6.1.2",
|
|
88
88
|
"start-server-and-test": "^2.1.3",
|
|
89
89
|
"typescript": "5.9.3",
|
|
90
|
-
"unocss": "^66.5.
|
|
91
|
-
"vite": "^7.3.
|
|
90
|
+
"unocss": "^66.5.12",
|
|
91
|
+
"vite": "^7.3.1",
|
|
92
92
|
"vite-plugin-dts": "4.5.4",
|
|
93
93
|
"vitepress": "^2.0.0-alpha.15",
|
|
94
|
-
"vitest": "^4.0.
|
|
95
|
-
"vue": "^3.5.
|
|
96
|
-
"vue-tsc": "^3.
|
|
94
|
+
"vitest": "^4.0.16",
|
|
95
|
+
"vue": "^3.5.26",
|
|
96
|
+
"vue-tsc": "^3.2.2"
|
|
97
97
|
},
|
|
98
98
|
"repository": {
|
|
99
99
|
"type": "git",
|