@vanelsas/baredom 0.2.1-alpha → 0.2.2-alpha

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.
@@ -6,5 +6,5 @@ $APP.l(c,"root"),b=$APP.l(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert
6
6
  q=$APP.l(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(k)&&d.setAttribute("icon",k);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.S.g(m|0));q===!1&&d.setAttribute("dismissible","false");c.appendChild(d);Gk(a,"x-notification-center-push",new $APP.P(null,2,[$APP.Ih,e,$APP.Hg,c.querySelectorAll("x-alert").length],null))}return null},Lk=function(a){Object.defineProperty(a,"position",{get:function(){return Ck(this.getAttribute("position"))},
7
7
  set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return Dk(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.S.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.l(this,"__xNcRefs");return $APP.n(b)?$APP.l(b,"container").querySelectorAll("x-alert").length:
8
8
  0},enumerable:!0,configurable:!0})},Nk=function(){var a=class extends HTMLElement{};a.observedAttributes=Mk;a.prototype.connectedCallback=function(){Ek(this);Ik(this);Hk(this);Fk(this);return null};a.prototype.disconnectedCallback=function(){Ik(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.E.h(b,"position")?Fk(this):$APP.E.h(b,"max")&&(this.__xNcMax=Dk(this.getAttribute("max")));return null};Lk(a.prototype);a.prototype.push=function(b){return Kk(this,b)};a.prototype.clear=
9
- function(){var b=Ek(this);b=$APP.v($APP.gc($APP.l(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.v(b))c=b,$APP.yc(c)?(b=$APP.ob(c),e=$APP.pb(c),c=b,d=$APP.B(b),b=e):($APP.x(c).remove(),b=$APP.y(c),c=null,d=0),e=0;else break;return null};return a},Ok=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Nk());return null};var Mk=["position","max"],Bk=new $APP.R(null,new $APP.P(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
9
+ function(){var b=Ek(this);b=$APP.u($APP.gc($APP.l(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.u(b))c=b,$APP.yc(c)?(b=$APP.ob(c),e=$APP.pb(c),c=b,d=$APP.B(b),b=e):($APP.x(c).remove(),b=$APP.y(c),c=null,d=0),e=0;else break;return null};return a},Ok=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Nk());return null};var Mk=["position","max"],Bk=new $APP.R(null,new $APP.P(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
10
10
  $APP.wd(["x-notification-center-push",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.Ih,$APP.X,$APP.Hg,$APP.Gh],null),$APP.wi,!1],null),"x-notification-center-dismiss",new $APP.P(null,2,[$APP.Y,new $APP.P(null,5,[$APP.Ih,$APP.X,$APP.Z,$APP.X,$APP.xh,$APP.X,$APP.Mh,$APP.X,$APP.Hg,$APP.Gh],null),$APP.wi,!1],null),"x-notification-center-empty",new $APP.P(null,2,[$APP.Y,$APP.xd,$APP.wi,!1],null)]);var Jk={v:0};$APP.ka("baredom.exports.x_notification_center.init",Ok);export const init=Ok;
@@ -4,14 +4,14 @@ var g=document.createElement("li");var h=document.createElement("button"),k=docu
4
4
  k.setAttribute("part","button button-next");k.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";k.appendChild(m);h.appendChild(k);h=new $APP.P(null,2,[$v,h,aw,k],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:0.375rem;--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:0.875rem;--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}";
5
5
  d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild($v.g(g));e.appendChild($v.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.P(null,6,[$APP.nh,d,$APP.mh,e,bw,$v.g(g),cw,aw.g(g),dw,$v.g(h),ew,aw.g(h)],null);a.__xPaginationRefs=b;return $APP.l(a,"__xPaginationRefs")},gw=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
6
6
  "button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},hw=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},tw=function(a){a=new $APP.P(null,7,[kw,a.getAttribute("page"),lw,a.getAttribute("total-pages"),mw,a.getAttribute("sibling-count"),nw,a.getAttribute("boundary-count"),$APP.hi,a.getAttribute("size"),$APP.$h,a.hasAttribute("disabled"),$APP.dh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,kw),d=$APP.I(b,lw),e=$APP.I(b,mw),g=$APP.I(b,nw),h=$APP.I(b,$APP.hi);a=$APP.I(b,$APP.$h);b=$APP.I(b,$APP.dh);d=Zv(d);c=$APP.kg.h(1,$APP.lg.h(Zv(c),d));if(typeof e==="string"){e=
7
+ "…";a.appendChild(b);return a},tw=function(a){a=new $APP.P(null,7,[iw,a.getAttribute("page"),lw,a.getAttribute("total-pages"),mw,a.getAttribute("sibling-count"),nw,a.getAttribute("boundary-count"),$APP.hi,a.getAttribute("size"),$APP.$h,a.hasAttribute("disabled"),$APP.dh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.I(b,iw),d=$APP.I(b,lw),e=$APP.I(b,mw),g=$APP.I(b,nw),h=$APP.I(b,$APP.hi);a=$APP.I(b,$APP.$h);b=$APP.I(b,$APP.dh);d=Zv(d);c=$APP.kg.h(1,$APP.lg.h(Zv(c),d));if(typeof e==="string"){e=
8
8
  parseInt(e,10);var k=isFinite(e);e=$APP.n($APP.n(k)?e>=0:k)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),k=isFinite(g),k=$APP.n($APP.n(k)?g>=0:k)?g:1):k=1;g=e;e=k;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.Cc(ow,h)?h:"md";return new $APP.P(null,7,[pw,c,qw,d,rw,g,sw,e,$APP.Ag,h,$APP.yi,$APP.J(a),$APP.W,$APP.n(b)?b:"Pagination"],null)},ww=function(a){var b=fw(a),c=$APP.mh.g(b),d=$APP.nh.g(b),e=cw.g(b),g=ew.g(b),h=bw.g(b);b=dw.g(b);var k=tw(a),m=$APP.M(k),q=$APP.I(m,pw),r=$APP.I(m,
9
- qw),u=$APP.I(m,rw),w=$APP.I(m,sw),z=$APP.I(m,$APP.Ag);m=$APP.I(m,$APP.W);a:if(r<=0)r=$APP.Ld;else{var A=$APP.lg.h(w,r);w=$APP.kg.h(r-w- -1,1);var C=$APP.kg.h(1,q-u);u=$APP.lg.h(r,q+u);r=$APP.Ae.h($APP.Ae.h($APP.Ae.h(Yv(),$APP.Bf(1,A+1)),$APP.Bf(w,r+1)),$APP.Bf(C,u+1));r=$APP.be(r);C=$APP.Ld;for(u=0;;){if(u>=$APP.B(r)){r=C;break a}A=$APP.cc(r,u);var F=w=u>0?$APP.cc(r,u-1):null;w=$APP.n($APP.n(F)?A>w+1:F)?$APP.ef.h(C,new $APP.P(null,1,[$APP.Z,uw],null)):C;A=$APP.ef.h(w,new $APP.P(null,2,[$APP.Z,pw,
10
- vw,A],null));u+=1;C=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",z);d=$APP.M(k);a=$APP.I(d,pw);d=$APP.I(d,$APP.yi);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(k);e=$APP.I(d,pw);a=$APP.I(d,qw);d=$APP.I(d,$APP.yi);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.v(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.E.h(uw,$APP.Z.g(d))?c.appendChild(hw()):c.appendChild(gw(vw.g(d),
11
- $APP.E.h(vw.g(d),q),$APP.yi.g(k))),a+=1;else if(g=$APP.v(g))h=g,$APP.yc(h)?(g=$APP.ob(h),a=$APP.pb(h),h=g,e=$APP.B(g),g=a):(g=$APP.x(h),$APP.E.h(uw,$APP.Z.g(g))?c.appendChild(hw()):c.appendChild(gw(vw.g(g),$APP.E.h(vw.g(g),q),$APP.yi.g(k))),g=$APP.y(h),h=null,e=0),a=0;else break;c.appendChild(b)},xw=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},yw=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=
9
+ qw),v=$APP.I(m,rw),w=$APP.I(m,sw),z=$APP.I(m,$APP.Ag);m=$APP.I(m,$APP.W);a:if(r<=0)r=$APP.Ld;else{var A=$APP.lg.h(w,r);w=$APP.kg.h(r-w- -1,1);var C=$APP.kg.h(1,q-v);v=$APP.lg.h(r,q+v);r=$APP.Ae.h($APP.Ae.h($APP.Ae.h(Yv(),$APP.Bf(1,A+1)),$APP.Bf(w,r+1)),$APP.Bf(C,v+1));r=$APP.be(r);C=$APP.Ld;for(v=0;;){if(v>=$APP.B(r)){r=C;break a}A=$APP.cc(r,v);var F=w=v>0?$APP.cc(r,v-1):null;w=$APP.n($APP.n(F)?A>w+1:F)?$APP.ef.h(C,new $APP.P(null,1,[$APP.Z,uw],null)):C;A=$APP.ef.h(w,new $APP.P(null,2,[$APP.Z,pw,
10
+ vw,A],null));v+=1;C=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",z);d=$APP.M(k);a=$APP.I(d,pw);d=$APP.I(d,$APP.yi);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(k);e=$APP.I(d,pw);a=$APP.I(d,qw);d=$APP.I(d,$APP.yi);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.u(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.E.h(uw,$APP.Z.g(d))?c.appendChild(hw()):c.appendChild(gw(vw.g(d),
11
+ $APP.E.h(vw.g(d),q),$APP.yi.g(k))),a+=1;else if(g=$APP.u(g))h=g,$APP.yc(h)?(g=$APP.ob(h),a=$APP.pb(h),h=g,e=$APP.B(g),g=a):(g=$APP.x(h),$APP.E.h(uw,$APP.Z.g(g))?c.appendChild(hw()):c.appendChild(gw(vw.g(g),$APP.E.h(vw.g(g),q),$APP.yi.g(k))),g=$APP.y(h),h=null,e=0),a=0;else break;c.appendChild(b)},xw=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},yw=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=
12
12
  b[d];if($APP.E.h("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.p(b.hasAttribute("disabled")):b)){d=$APP.l(a,"__xPaginationRefs");c=cw.g(d);d=ew.g(d);e=b.getAttribute("data-page");if(b===c)return c=tw(a),b=pw.g(c),b>1?xw(a,b-1):null;if(b===d)return c=tw(a),b=pw.g(c),c=qw.g(c),b<c?xw(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?xw(a,b):null}return null},zw=function(a){function b(d){return yw(a,d)}var c=fw(a);$APP.mh.g(c).addEventListener("click",
13
13
  b);$APP.ma(a,"__xPaginationHandlers",{click:b})},Aw=function(a){var b=$APP.l(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.l(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.mh.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},Bw=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,
14
14
  configurable:!0})},Cw=function(a,b,c){Object.defineProperty(a,b,{get:function(){return Zv(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},Dw=function(a){Cw(a,"page","page");Cw(a,"total-pages","total-pages");Cw(a,"sibling-count","sibling-count");Cw(a,"boundary-count","boundary-count");Bw(a)},Fw=function(){var a=class extends HTMLElement{};a.observedAttributes=Ew;a.prototype.connectedCallback=function(){fw(this);
15
15
  Aw(this);zw(this);ww(this);return null};a.prototype.disconnectedCallback=function(){Aw(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&ww(this);return null};Dw(a.prototype);return a},Gw=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",Fw());return null},lw=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),ew=new $APP.K(null,"next-btn","next-btn",-286265938),bw=new $APP.K(null,"prev-li","prev-li",940258334),
16
- sw=new $APP.K(null,"boundary-count","boundary-count",1637925987),kw=new $APP.K(null,"page-raw","page-raw",-1198808870),$v=new $APP.K(null,"li","li",723558921),cw=new $APP.K(null,"prev-btn","prev-btn",-352689882),uw=new $APP.K(null,"ellipsis","ellipsis",998505738),vw=new $APP.K(null,"n","n",562130025),nw=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),qw=new $APP.K(null,"total-pages","total-pages",685894112),pw=new $APP.K(null,"page","page",849072397),dw=new $APP.K(null,"next-li",
16
+ sw=new $APP.K(null,"boundary-count","boundary-count",1637925987),iw=new $APP.K(null,"page-raw","page-raw",-1198808870),$v=new $APP.K(null,"li","li",723558921),cw=new $APP.K(null,"prev-btn","prev-btn",-352689882),uw=new $APP.K(null,"ellipsis","ellipsis",998505738),vw=new $APP.K(null,"n","n",562130025),nw=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),qw=new $APP.K(null,"total-pages","total-pages",685894112),pw=new $APP.K(null,"page","page",849072397),dw=new $APP.K(null,"next-li",
17
17
  "next-li",648524823),mw=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),aw=new $APP.K(null,"btn","btn",1978294651),rw=new $APP.K(null,"sibling-count","sibling-count",1756034573);var Ew="page total-pages sibling-count boundary-count size disabled label".split(" "),ow=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ka("baredom.exports.x_pagination.init",Gw);export const init=Gw;
package/dist/x-popover.js CHANGED
@@ -6,8 +6,8 @@ if($APP.n(b)){var c=$APP.l(b,"docClick"),d=$APP.l(b,"docKeydown");return setTime
6
6
  "pointer")},closeBtnClick:function(){return Sm(a,"close-button")},hostFocusout:function(b){return $APP.n(a.hasAttribute("open"))?(b=b.relatedTarget,b==null||$APP.p(a.contains(b))?Sm(a,"focusout"):null):null},docClick:function(b){return $APP.n(a.hasAttribute("open"))?(b=$APP.hc(b.composedPath()),b=$APP.Ad(function(c){return c===a},b),$APP.n(b)?null:Sm(a,"outside-click")):null},docKeydown:function(b){b=$APP.E.h(b.key,"Escape");return $APP.n(b?a.hasAttribute("open"):b)?Sm(a,"escape"):null}}},Xm=function(a){var b=
7
7
  $APP.l(a,"__xPopoverRefs");if($APP.n(b)){var c=$APP.l(a,"__xPopoverHandlers");if($APP.n(c)){var d=$APP.l(b,"closeBtn");$APP.l(b,"trigger").removeEventListener("click",$APP.l(c,"triggerClick"));d.removeEventListener("click",$APP.l(c,"closeBtnClick"));a.removeEventListener("focusout",$APP.l(c,"hostFocusout"))}}},Ym=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Nm(this,c,$APP.J(d))}})},Zm=function(a,b,c){Object.defineProperty(a,
8
8
  b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},an=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return $m}});Ym(b,"open","open");Ym(b,"disabled","disabled");Ym(b,"noClose","no-close");Zm(b,"placement","placement");Zm(b,"heading","heading");Zm(b,"closeLabel",
9
- "close-label");b.show=function(){return Rm(this,"programmatic")};b.hide=function(){return Sm(this,"programmatic")};b.toggle=function(){return Tm(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Mm("style"),e=Mm("span"),g=Mm("slot"),h=Mm("div"),k=Mm("div"),m=Mm("div"),q=Mm("span"),r=Mm("button"),u=Mm("div"),w=Mm("slot"),z=Mm("div"),A=Mm("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter]:not(:has(slot[name\x3dfooter] \x3e *)){display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
9
+ "close-label");b.show=function(){return Rm(this,"programmatic")};b.hide=function(){return Sm(this,"programmatic")};b.toggle=function(){return Tm(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xPopoverRefs"))){var c=this.attachShadow({mode:"open"}),d=Mm("style"),e=Mm("span"),g=Mm("slot"),h=Mm("div"),k=Mm("div"),m=Mm("div"),q=Mm("span"),r=Mm("button"),v=Mm("div"),w=Mm("slot"),z=Mm("div"),A=Mm("slot");d.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-popover-panel-bg:#ffffff;--x-popover-panel-border:1px solid #e2e8f0;--x-popover-panel-radius:8px;--x-popover-panel-shadow:0 4px 16px rgba(0,0,0,0.12);--x-popover-panel-min-width:12rem;--x-popover-panel-max-width:24rem;--x-popover-panel-max-height:24rem;--x-popover-panel-offset:4px;--x-popover-panel-z:1000;--x-popover-header-padding:0.625rem 0.75rem 0.625rem 0.875rem;--x-popover-header-border:1px solid #e2e8f0;--x-popover-heading-color:#0f172a;--x-popover-heading-font-size:0.9375rem;--x-popover-heading-font-weight:600;--x-popover-close-bg:transparent;--x-popover-close-bg-hover:#f1f5f9;--x-popover-close-color:#64748b;--x-popover-close-color-hover:#0f172a;--x-popover-close-radius:4px;--x-popover-close-size:1.5rem;--x-popover-focus-ring:#60a5fa;--x-popover-body-padding:0.875rem;--x-popover-body-color:#334155;--x-popover-body-font-size:0.9375rem;--x-popover-footer-padding:0.625rem 0.875rem;--x-popover-footer-border:1px solid #e2e8f0;--x-popover-arrow-size:8px;--x-popover-arrow-bg:#ffffff;--x-popover-arrow-border:#e2e8f0;--x-popover-transition-duration:150ms;--x-popover-transition-easing:ease;}@media (prefers-color-scheme:dark){:host{--x-popover-panel-bg:#1e293b;--x-popover-panel-border:1px solid #334155;--x-popover-panel-shadow:0 4px 24px rgba(0,0,0,0.4);--x-popover-header-border:1px solid #334155;--x-popover-heading-color:#e2e8f0;--x-popover-close-bg-hover:#334155;--x-popover-close-color:#94a3b8;--x-popover-close-color-hover:#e2e8f0;--x-popover-focus-ring:#93c5fd;--x-popover-body-color:#cbd5e1;--x-popover-footer-border:1px solid #334155;--x-popover-arrow-bg:#1e293b;--x-popover-arrow-border:#334155;}}[part\x3dtrigger]{display:inline-block;}[part\x3dpanel]{position:absolute;z-index:var(--x-popover-panel-z);box-sizing:border-box;background:var(--x-popover-panel-bg);border:var(--x-popover-panel-border);border-radius:var(--x-popover-panel-radius);box-shadow:var(--x-popover-panel-shadow);min-width:var(--x-popover-panel-min-width);max-width:var(--x-popover-panel-max-width);max-height:var(--x-popover-panel-max-height);overflow-y:auto;visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96) translateY(-4px);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s var(--x-popover-transition-duration);}:host([open]) [part\x3dpanel]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity var(--x-popover-transition-duration) var(--x-popover-transition-easing),transform var(--x-popover-transition-duration) var(--x-popover-transition-easing),visibility 0s 0s;}[part\x3dpanel][data-placement\x3dbottom-start]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:top left;}[part\x3dpanel][data-placement\x3dbottom-end]{top:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:top right;}[part\x3dpanel][data-placement\x3dtop-start]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));left:0;transform-origin:bottom left;}[part\x3dpanel][data-placement\x3dtop-end]{bottom:calc(100% + var(--x-popover-arrow-size) + var(--x-popover-panel-offset));right:0;transform-origin:bottom right;}[part\x3darrow]{position:absolute;width:var(--x-popover-arrow-size);height:var(--x-popover-arrow-size);background:var(--x-popover-arrow-bg);transform:rotate(45deg);pointer-events:none;}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{top:calc(var(--x-popover-arrow-size) / -2 - 1px);border-left:1px solid var(--x-popover-arrow-border);border-top:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dbottom-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dbottom-end] [part\x3darrow]{right:1rem;}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow],[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{bottom:calc(var(--x-popover-arrow-size) / -2 - 1px);border-right:1px solid var(--x-popover-arrow-border);border-bottom:1px solid var(--x-popover-arrow-border);}[part\x3dpanel][data-placement\x3dtop-start] [part\x3darrow]{left:1rem;}[part\x3dpanel][data-placement\x3dtop-end] [part\x3darrow]{right:1rem;}[part\x3dheader]{display:flex;align-items:center;justify-content:space-between;padding:var(--x-popover-header-padding);border-bottom:var(--x-popover-header-border);gap:0.5rem;}[part\x3dheading]{flex:1;font-size:var(--x-popover-heading-font-size);font-weight:var(--x-popover-heading-font-weight);color:var(--x-popover-heading-color);font-family:inherit;}[part\x3dclose-button]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-popover-close-size);height:var(--x-popover-close-size);background:var(--x-popover-close-bg);color:var(--x-popover-close-color);border-radius:var(--x-popover-close-radius);cursor:pointer;flex-shrink:0;transition:background 100ms ease,color 100ms ease;}[part\x3dclose-button]:hover{background:var(--x-popover-close-bg-hover);color:var(--x-popover-close-color-hover);}[part\x3dclose-button]:focus-visible{outline:none;box-shadow:0 0 0 2px var(--x-popover-focus-ring);}[part\x3dclose-button][hidden]{display:none;}[part\x3dbody]{padding:var(--x-popover-body-padding);color:var(--x-popover-body-color);font-size:var(--x-popover-body-font-size);font-family:inherit;}[part\x3dfooter]{padding:var(--x-popover-footer-padding);border-top:var(--x-popover-footer-border);}[part\x3dfooter]:not(:has(slot[name\x3dfooter] \x3e *)){display:none;}@media (prefers-reduced-motion:reduce){[part\x3dpanel]{transition:none !important;}[part\x3dclose-button]{transition:none !important;}}";
10
10
  e.setAttribute("part","trigger");g.setAttribute("name","trigger");h.setAttribute("part","panel");h.setAttribute("role","dialog");h.setAttribute("inert","");h.setAttribute("data-placement","bottom-start");k.setAttribute("part","arrow");k.setAttribute("aria-hidden","true");m.setAttribute("part","header");q.setAttribute("part","heading");q.setAttribute("id","popover-heading");r.setAttribute("part","close-button");r.setAttribute("type","button");r.setAttribute("aria-label","Close");r.innerHTML='\x3csvg width\x3d"14" height\x3d"14" viewBox\x3d"0 0 14 14" fill\x3d"none" xmlns\x3d"http://www.w3.org/2000/svg" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M1 1L13 13M13 1L1 13" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round"/\x3e\x3c/svg\x3e';
11
- u.setAttribute("part","body");z.setAttribute("part","footer");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(q);m.appendChild(r);u.appendChild(w);z.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(u);h.appendChild(z);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,heading:q,closeBtn:r,body:u,footer:z}}Xm(this);Vm(this);this.__xPopoverHandlers=Wm(this);c=$APP.l(this,"__xPopoverRefs");$APP.n(c)&&(d=$APP.l(this,"__xPopoverHandlers"),
11
+ v.setAttribute("part","body");z.setAttribute("part","footer");A.setAttribute("name","footer");e.appendChild(g);m.appendChild(q);m.appendChild(r);v.appendChild(w);z.appendChild(A);h.appendChild(k);h.appendChild(m);h.appendChild(v);h.appendChild(z);c.appendChild(d);c.appendChild(e);c.appendChild(h);this.__xPopoverRefs={trigger:e,panel:h,heading:q,closeBtn:r,body:v,footer:z}}Xm(this);Vm(this);this.__xPopoverHandlers=Wm(this);c=$APP.l(this,"__xPopoverRefs");$APP.n(c)&&(d=$APP.l(this,"__xPopoverHandlers"),
12
12
  $APP.n(d)&&(e=$APP.l(c,"closeBtn"),$APP.l(c,"trigger").addEventListener("click",$APP.l(d,"triggerClick")),e.addEventListener("click",$APP.l(d,"closeBtnClick")),this.addEventListener("focusout",$APP.l(d,"hostFocusout"))));$APP.n(this.hasAttribute("open"))&&Um(this);return Om(this)};b.disconnectedCallback=function(){Xm(this);return Vm(this)};b.attributeChangedCallback=function(c){$APP.n($APP.l(this,"__xPopoverRefs"))?(Om(this),c=$APP.E.h(c,"open")?$APP.n(this.hasAttribute("open"))?Um(this):Vm(this):
13
13
  null):c=null;return c};return a},bn=function(){return $APP.n(customElements.get("x-popover"))?null:customElements.define("x-popover",an())};var Km=new $APP.R(null,new $APP.P(null,4,["bottom-start",null,"bottom-end",null,"top-end",null,"top-start",null],null),null),$m="open placement heading close-label no-close disabled".split(" ");$APP.wd(["x-popover-toggle",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,2,[$APP.si,$APP.Li,$APP.Ch,$APP.X],null)],null),"x-popover-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null)]);$APP.ka("baredom.exports.x_popover.init",bn);export const init=bn;
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var gD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},jD=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.fh,a.getAttribute("max"),$APP.Wg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.$i,a.hasAttribute("show-value"),$APP.Ci,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.fh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Wg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.$i);
3
3
  c=$APP.I(c,$APP.Ci);d=gD(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(gD(e,0),0),d);g=typeof g==="string"&&$APP.Cc(hD,g)?g:"default";h=typeof h==="string"&&$APP.Cc(iD,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.bf([$APP.Wg,$APP.$i,$APP.T,$APP.Ag,$APP.Ci,$APP.Wi,$APP.fh,$APP.W,$APP.Yh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Yh);k=$APP.I(q,$APP.Wg);d=$APP.I(q,$APP.$i);
4
- h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);g=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressCircleBase"),u=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");u.setAttribute("stroke-dasharray",""+$APP.S.g(100));u.setAttribute("stroke-dashoffset",
4
+ h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);g=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));v.setAttribute("stroke-dashoffset",
5
5
  ""+$APP.S.g(C));w.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
6
  m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(z)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCircleCompleted=$APP.J(A)},kD=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=
7
7
  this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var IH=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},LH=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.fh,a.getAttribute("max"),$APP.Wg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.$i,a.hasAttribute("show-value"),$APP.Ci,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.fh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Wg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.$i);
3
3
  c=$APP.I(c,$APP.Ci);d=IH(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(IH(e,0),0),d);g=typeof g==="string"&&$APP.Cc(JH,g)?g:"default";h=typeof h==="string"&&$APP.Cc(KH,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.bf([$APP.Wg,$APP.$i,$APP.T,$APP.Ag,$APP.Ci,$APP.Wi,$APP.fh,$APP.W,$APP.Yh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Yh);k=$APP.I(q,$APP.Wg);d=$APP.I(q,$APP.$i);
4
- h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);g=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressBase"),u=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var F=$APP.l(a,"__xProgressCompleted"),D=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
5
- "40%":""+$APP.S.g(b.toFixed(2))+"%";u.style.display=$APP.n(C)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",
4
+ h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);g=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var F=$APP.l(a,"__xProgressCompleted"),D=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
5
+ "40%":""+$APP.S.g(b.toFixed(2))+"%";v.style.display=$APP.n(C)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",
6
6
  ""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");D&&$APP.p(F)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.J(D)},MH=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,
7
7
  configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
8
  set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},OH=function(){var a=class extends HTMLElement{};a.observedAttributes=NH;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),
package/dist/x-select.js CHANGED
@@ -2,7 +2,7 @@ import { $APP, shadow$provide } from "./base.js";
2
2
  var az=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"wrapper"),d=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");a=new $APP.P(null,6,[$APP.$h,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.hi,a.getAttribute("size"),$APP.wh,a.getAttribute("placeholder"),$APP.Gi,a.getAttribute("value"),$APP.Kh,a.getAttribute("name")],null);var e=$APP.M(a);var g=$APP.I(e,$APP.$h);var h=$APP.I(e,$APP.Cg),k=$APP.I(e,$APP.hi);a=$APP.I(e,$APP.wh);var m=$APP.I(e,$APP.Gi);e=
3
3
  $APP.I(e,$APP.Kh);g=$APP.J(g);h=$APP.J(h);k=typeof k==="string"&&$APP.Cc($y,k)?k:"md";g=new $APP.P(null,6,[$APP.U,g,$APP.bh,h,$APP.Ag,k,$APP.Di,a,$APP.T,m,$APP.ii,e],null);a=$APP.U.g(g);m=$APP.bh.g(g);k=$APP.Ag.g(g);e=$APP.Di.g(g);h=$APP.T.g(g);g=$APP.ii.g(g);d.disabled=a;$APP.n(m)?d.setAttribute("required",""):d.removeAttribute("required");typeof g==="string"&&$APP.N(g,"")?d.setAttribute("name",g):d.removeAttribute("name");typeof e==="string"&&$APP.N(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=
4
4
  !0;d.value=$APP.n(h)?h:"";c.setAttribute("data-size",k);$APP.n(a)?c.setAttribute("data-disabled",""):c.removeAttribute("data-disabled");return g==null||$APP.E.h(g,"")?d.setAttribute("aria-label",$APP.n(e)?e:"select"):d.removeAttribute("aria-label")}return null},bz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);
5
- else break}d=$APP.v($APP.gc(b));b=null;for(g=e=0;;)if(g<e){var h=b.F(null,g),k=h.tagName.toLowerCase();($APP.E.h(k,"option")||$APP.E.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.v(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),b=e,e=$APP.B(e)):(b=$APP.x(d),e=b.tagName.toLowerCase(),($APP.E.h(e,"option")||$APP.E.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.y(d),b=null,e=0),g=0;else break;return az(a)}return null},cz=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");
5
+ else break}d=$APP.u($APP.gc(b));b=null;for(g=e=0;;)if(g<e){var h=b.F(null,g),k=h.tagName.toLowerCase();($APP.E.h(k,"option")||$APP.E.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),b=e,e=$APP.B(e)):(b=$APP.x(d),e=b.tagName.toLowerCase(),($APP.E.h(e,"option")||$APP.E.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.y(d),b=null,e=0),g=0;else break;return az(a)}return null},cz=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");
6
6
  return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},dz=function(a){return function(){return bz(a)}},ez=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("slotchange",
7
7
  $APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},fz=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},gz=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",
8
8
  b)):b=this.removeAttribute("value");return b}})},iz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return hz}});fz(b,"disabled","disabled");fz(b,"required","required");gz(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),h=document.createElement("option"),k=document.createElement("span"),
package/dist/x-sidebar.js CHANGED
@@ -8,9 +8,9 @@ a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():nul
8
8
  a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-border: color-mix(in srgb, currentColor 12%, transparent); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-border: color-mix(in srgb, currentColor 20%, transparent); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
9
9
  d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},SG=function(a){wG(a);var b=$APP.l(a,"_prevState");b=b==null?null:nG(b);b=$APP.n(b)?b:$APP.xd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),
10
10
  g=a.getAttribute("variant"),h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.P(null,8,[xG,c,yG,d,zG,e,AG,g,BG,h,CG,k,DG,m,EG,$APP.J(q.matches)],null));k=$APP.I(c,xG);h=$APP.I(c,yG);d=$APP.I(c,zG);e=$APP.I(c,AG);m=$APP.I(c,BG);q=$APP.I(c,CG);g=$APP.I(c,DG);c=$APP.I(c,EG);d=$APP.Cc(FG,d)?d:$APP.Ai.g(GG);e=$APP.Cc(HG,e)?e:$APP.Wg.g(GG);var r=$APP.Ph.g(GG);m=m==null?null:""+$APP.S.g(m);m=m==null?null:
11
- (0,$APP.dg)(m);$APP.v(m)?(m=Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.dg)(q):null;q=$APP.v(q)?q:null;q=$APP.n(q)?q:$APP.W.g(GG);k=$APP.M(new $APP.P(null,1,[xG,k],null));k=$APP.I(k,xG);k=$APP.J(k);h=$APP.J(h);g=g<m?"modal":e;r=$APP.E.h(g,"modal");var u=$APP.E.h(g,"overlay"),w=$APP.E.h(g,"docked");c=$APP.bf([$APP.si,IG,JG,KG,$APP.Ph,LG,MG,NG,OG,$APP.W,$APP.Ai,PG,QG,RG],[k,g,!k,w&&h,m,w,h,e,k&&(r||u),q,d,$APP.J(c),r,u]);k=$APP.M(c);d=$APP.I(k,IG);e=$APP.I(k,$APP.Ai);g=$APP.I(k,
11
+ (0,$APP.dg)(m);$APP.u(m)?(m=Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.dg)(q):null;q=$APP.u(q)?q:null;q=$APP.n(q)?q:$APP.W.g(GG);k=$APP.M(new $APP.P(null,1,[xG,k],null));k=$APP.I(k,xG);k=$APP.J(k);h=$APP.J(h);g=g<m?"modal":e;r=$APP.E.h(g,"modal");var v=$APP.E.h(g,"overlay"),w=$APP.E.h(g,"docked");c=$APP.bf([$APP.si,IG,JG,KG,$APP.Ph,LG,MG,NG,OG,$APP.W,$APP.Ai,PG,QG,RG],[k,g,!k,w&&h,m,w,h,e,k&&(r||v),q,d,$APP.J(c),r,v]);k=$APP.M(c);d=$APP.I(k,IG);e=$APP.I(k,$APP.Ai);g=$APP.I(k,
12
12
  $APP.si);h=$APP.I(k,KG);k=$APP.I(k,PG);a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=QG.g(c);$APP.n(d)&&(d=$APP.si.g(c),$APP.n(d)&&(d=QG.g(b),d=$APP.n(d)?$APP.si.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.be($APP.Kd(sG,$APP.gc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
13
- a._restoreFocusTarget=document.activeElement,e=$APP.xg(d),a._tabbables=e,$APP.v(d)?$APP.x(d).focus():tG(a)):(d=QG.g(b),$APP.n(d)&&(d=$APP.si.g(b),$APP.n(d)&&(d=QG.g(c),d=$APP.n(d)?$APP.si.g(c):d,d=$APP.p(d))),$APP.n(d)&&uG(a));e=$APP.M(c);d=$APP.I(e,$APP.W);e=$APP.I(e,JG);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.I(d,OG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
13
+ a._restoreFocusTarget=document.activeElement,e=$APP.xg(d),a._tabbables=e,$APP.u(d)?$APP.x(d).focus():tG(a)):(d=QG.g(b),$APP.n(d)&&(d=$APP.si.g(b),$APP.n(d)&&(d=QG.g(c),d=$APP.n(d)?$APP.si.g(c):d,d=$APP.p(d))),$APP.n(d)&&uG(a));e=$APP.M(c);d=$APP.I(e,$APP.W);e=$APP.I(e,JG);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.I(d,OG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
14
14
  $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.M(c);d=$APP.I(h,$APP.si);e=$APP.I(h,$APP.Ai);g=$APP.I(h,IG);h=$APP.I(h,KG);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.si.g(b),$APP.si.g(c))&&(b=$APP.si.g(c),pG(a,"toggle",new $APP.P(null,1,[$APP.si,$APP.J(b)],null)));b=$APP.xg(c);a._prevState=
15
15
  b},TG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:nG(e)}(),d=$APP.l(a,"_backdrop");return $APP.n(function(){var e=QG.g(c);e=$APP.n(e)?e:RG.g(c);return $APP.n(e)?(e=$APP.si.g(c),$APP.n(e)?$APP.E.h(b.target,d):e):e}())?(rG(a,"backdrop"),oG(a,"open",!1)):null},UG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:nG(e)}(),d=b.key;return $APP.n(function(){var e=QG.g(c);e=$APP.n(e)?e:RG.g(c);return $APP.n(e)?$APP.si.g(c):e}())?$APP.E.h(d,
16
16
  "Escape")?(b.preventDefault(),rG(a,"escape"),oG(a,"open",!1)):$APP.n(function(){var e=QG.g(c);return $APP.n(e)?$APP.E.h(d,"Tab"):e}())?vG(a,b):null:null},VG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){return TG(a,b)},onKeydown:function(b){return UG(a,b)},onResize:function(){return SG(a)}})},WG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return oG(this,"open",$APP.J(b))},enumerable:!0,
@@ -21,7 +21,7 @@ ZG;return customElements.define("x-sidebar",a)},aH=function(){return $G()};$APP.
21
21
  $APP.O.prototype.C=$APP.ca(17,function(){return $APP.Ua($APP.Ld,this.s)});$APP.ce.prototype.C=$APP.ca(16,function(){return $APP.Lb});$APP.te.prototype.C=$APP.ca(15,function(){return null});$APP.ue.prototype.C=$APP.ca(14,function(){return $APP.Lb});$APP.P.prototype.C=$APP.ca(13,function(){return $APP.Ua($APP.xd,this.s)});$APP.Se.prototype.C=$APP.ca(12,function(){return $APP.Lb});$APP.We.prototype.C=$APP.ca(11,function(){return $APP.Lb});
22
22
  $APP.af.prototype.C=$APP.ca(10,function(){return $APP.Ua($APP.Ce,this.s)});$APP.gf.prototype.C=$APP.ca(9,function(){return $APP.Lb});$APP.hf.prototype.C=$APP.ca(8,function(){return null});$APP.jf.prototype.C=$APP.ca(7,function(){return null});$APP.kf.prototype.C=$APP.ca(6,function(){return new $APP.kf(this.Ca,null,0,this.s,0)});$APP.mf.prototype.C=$APP.ca(5,function(){return $APP.Lb});$APP.of.prototype.C=$APP.ca(4,function(){return $APP.Lb});
23
23
  $APP.R.prototype.C=$APP.ca(3,function(){return $APP.Ua($APP.rf,this.s)});$APP.uf.prototype.C=$APP.ca(2,function(){return new $APP.uf(this.s,eG(this.Ka),0)});$APP.yf.prototype.C=$APP.ca(1,function(){return $APP.Lb});$APP.zf.prototype.C=$APP.ca(0,function(){return $APP.Lb});var mG=function mG(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return mG.G(0<c.length?new $APP.Ib(c.slice(0),0,null):null)};
24
- mG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:jG(a);var b=a.length;if(!$APP.Ac(b))throw Error(["Argument must be an integer: ",$APP.ta(b)].join(""));if((b&1)!==0)throw Error(["No value supplied for key: ",$APP.ta($APP.ic(a))].join(""));return $APP.wd(a)};mG.Y=0;mG.X=function(a){return this.G($APP.v(a))};
24
+ mG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:jG(a);var b=a.length;if(!$APP.Ac(b))throw Error(["Argument must be an integer: ",$APP.ta(b)].join(""));if((b&1)!==0)throw Error(["No value supplied for key: ",$APP.ta($APP.ic(a))].join(""));return $APP.wd(a)};mG.Y=0;mG.X=function(a){return this.G($APP.u(a))};
25
25
  var NG=new $APP.K(null,"declared-variant","declared-variant",-2054964950),bH=new $APP.K(null,"collapsed","collapsed",-628494523),DG=new $APP.K(null,"viewport-width","viewport-width",-1146235948),JG=new $APP.K(null,"aria-hidden","aria-hidden",399337029),EG=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),MG=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),BG=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),AG=new $APP.K(null,"variant-attr",
26
26
  "variant-attr",-1143729279),IG=new $APP.K(null,"effective-variant","effective-variant",-829495195),PG=new $APP.K(null,"reduced-motion","reduced-motion",79621277),OG=new $APP.K(null,"show-backdrop","show-backdrop",-532209910),LG=new $APP.K(null,"is-docked","is-docked",875310728),yG=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),QG=new $APP.K(null,"is-modal","is-modal",1610761086),zG=new $APP.K(null,"placement-attr","placement-attr",-1321967286),RG=new $APP.K(null,"is-overlay","is-overlay",
27
27
  1953921119),CG=new $APP.K(null,"label-attr","label-attr",-571749887),xG=new $APP.K(null,"open-attr","open-attr",-1772289801),KG=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var ZG="open collapsed placement variant breakpoint label".split(" "),FG=$APP.sf(["right","left"]),HG=$APP.sf(["overlay","docked","modal"]),qG=$APP.sf(["backdrop","escape"]),GG=new $APP.P(null,6,[$APP.Ai,"left",$APP.Wg,"docked",$APP.Ph,768,$APP.W,"Sidebar",$APP.si,!1,bH,!1],null);$APP.wd(["toggle",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null),"dismiss",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.xh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",aH);export const init=aH;
package/dist/x-slider.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var mu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},nu=function(a,b,c){return a.setAttribute(b,c)},ou=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},tu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.bf([$APP.Vi,$APP.yi,$APP.$i,$APP.ii,$APP.T,$APP.ji,$APP.Oi,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,pu],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.bi);var m=$APP.I(k,pu),q=$APP.I(k,$APP.Vi),r=$APP.I(k,$APP.yi),u=$APP.I(k,$APP.$i),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.ii),A=$APP.I(k,$APP.ji),C=$APP.I(k,
4
- $APP.Oi),F=$APP.I(k,$APP.Ag),D=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.fh);k=$APP.I(k,$APP.Xi);q=mu(q,0);Q=mu(Q,100);w=$APP.lg.h($APP.kg.h(mu(w,0),q),Q);$APP.E.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(qu,F)?F:"md";r=$APP.J(r);A=$APP.J(A);u=$APP.J(u);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.bf([$APP.Vi,$APP.cj,$APP.ii,$APP.T,$APP.Oi,ru,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,$APP.U,pu,su],[q,
5
- A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,u,F,Q,typeof D==="string"&&$APP.N("",D)?D:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.bi);C=$APP.I(m,$APP.U);D=$APP.I(m,pu);k=$APP.I(m,su);u=$APP.I(m,$APP.Vi);q=$APP.I(m,$APP.cj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Oi);Q=$APP.I(m,ru);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.fh);m=$APP.I(m,$APP.Xi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
- r);ou(a,"data-disabled",C);ou(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(Q)?""+$APP.S.g(h):"";g.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");nu(b,"min",""+$APP.S.g(u));nu(b,"max",""+$APP.S.g(F));b.setAttribute("step",D);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));nu(b,"aria-valuemin",""+$APP.S.g(u));nu(b,"aria-valuemax",""+$APP.S.g(F));
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.bi);var m=$APP.I(k,pu),q=$APP.I(k,$APP.Vi),r=$APP.I(k,$APP.yi),v=$APP.I(k,$APP.$i),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.ii),A=$APP.I(k,$APP.ji),C=$APP.I(k,
4
+ $APP.Oi),F=$APP.I(k,$APP.Ag),D=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.fh);k=$APP.I(k,$APP.Xi);q=mu(q,0);Q=mu(Q,100);w=$APP.lg.h($APP.kg.h(mu(w,0),q),Q);$APP.E.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(qu,F)?F:"md";r=$APP.J(r);A=$APP.J(A);v=$APP.J(v);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.bf([$APP.Vi,$APP.cj,$APP.ii,$APP.T,$APP.Oi,ru,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,$APP.U,pu,su],[q,
5
+ A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,v,F,Q,typeof D==="string"&&$APP.N("",D)?D:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.bi);C=$APP.I(m,$APP.U);D=$APP.I(m,pu);k=$APP.I(m,su);v=$APP.I(m,$APP.Vi);q=$APP.I(m,$APP.cj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Oi);Q=$APP.I(m,ru);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.fh);m=$APP.I(m,$APP.Xi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
+ r);ou(a,"data-disabled",C);ou(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(Q)?""+$APP.S.g(h):"";g.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");nu(b,"min",""+$APP.S.g(v));nu(b,"max",""+$APP.S.g(F));b.setAttribute("step",D);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));nu(b,"aria-valuemin",""+$APP.S.g(v));nu(b,"aria-valuemax",""+$APP.S.g(F));
7
7
  nu(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):w!=null?b.setAttribute("aria-label",w):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(C)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
8
  $APP.S.g(h)):null}return null},uu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},vu=function(a){return function(){var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return uu(a,"x-slider-input",{value:c,min:d,max:e})}},wu=function(a){return function(){var b=
9
9
  parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return uu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("disabled");return $APP.n($APP.n(c)?c:a.hasAttribute("readonly"))?(b.preventDefault(),b.stopPropagation()):null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=
package/dist/x-stat.js CHANGED
@@ -3,8 +3,8 @@ var Hy=function(a,b,c){return $APP.Cc(b,a)?a:c},Iy=function(a){return $APP.n($AP
3
3
  [d,e,g,Iy(a),Iy(h),k,m,Iy(b),m?"true":null,c])},Sy=function(a){return $APP.bf([Ky,$APP.ei,$APP.Wg,$APP.T,$APP.mi,$APP.Ag,$APP.Hh,$APP.W,Jy],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},Ty=function(a,b){a.setAttribute("role","figure");var c=Qy.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
4
  $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},Uy=function(a,b){a.setAttribute("data-variant",$APP.Wg.g(b));a.setAttribute("data-align",$APP.ei.g(b));a.setAttribute("data-size",$APP.Ag.g(b));a.setAttribute("data-emphasis",Jy.g(b));a.setAttribute("data-trend",Ky.g(b));$APP.n($APP.Hh.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},Vy=function(a){var b=Ry(Sy(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
5
  g=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(Ty(a,b),Uy(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.T.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.mi.g(b);return $APP.n(h)?h:""}()):null},Wy=function(a){if($APP.l(a,"__x_stat_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
6
- k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),u=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),C=document.createElement("slot"),F=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:grid;gap:6px;}.label{font-size:12px;opacity:0.8;}.value{font-weight:600;font-size:20px;}.hint{font-size:12px;opacity:0.7;}.base[data-loading\x3d'true']{opacity:0.6;}";
7
- d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");w.setAttribute("name","icon");z.setAttribute("name","label");A.setAttribute("name","value");C.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(C);m.appendChild(u);g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(F);d.appendChild(e);
8
- d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=q;a.__x_stat_value=r;a.__x_stat_hint=u;a.__x_stat_initialized=!0}Vy(a);return a},Yy=function(){var a=class extends HTMLElement{};a.observedAttributes=Xy;a.prototype.connectedCallback=function(){return Wy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Vy(this):Wy(this)};return a},Zy=function(){return $APP.n(customElements.get("x-stat"))?null:
6
+ k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),C=document.createElement("slot"),F=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:grid;gap:6px;}.label{font-size:12px;opacity:0.8;}.value{font-weight:600;font-size:20px;}.hint{font-size:12px;opacity:0.7;}.base[data-loading\x3d'true']{opacity:0.6;}";
7
+ d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");w.setAttribute("name","icon");z.setAttribute("name","label");A.setAttribute("name","value");C.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(C);m.appendChild(v);g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(F);d.appendChild(e);
8
+ d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=q;a.__x_stat_value=r;a.__x_stat_hint=v;a.__x_stat_initialized=!0}Vy(a);return a},Yy=function(){var a=class extends HTMLElement{};a.observedAttributes=Xy;a.prototype.connectedCallback=function(){return Wy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Vy(this):Wy(this)};return a},Zy=function(){return $APP.n(customElements.get("x-stat"))?null:
9
9
  customElements.define("x-stat",Yy())},Jy=new $APP.K(null,"emphasis","emphasis",293543451),Qy=new $APP.K(null,"aria-busy","aria-busy",793864247),Ky=new $APP.K(null,"trend","trend",54563841);var Xy="variant align size emphasis trend loading label value hint".split(" "),Ly=new $APP.R(null,new $APP.P(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),My=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),Ny=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Oy=new $APP.R(null,new $APP.P(null,2,["high",null,"normal",null],null),null),Py=new $APP.R(null,new $APP.P(null,3,["neutral",null,
10
10
  "up",null,"down",null],null),null);$APP.ka("baredom.exports.x_stat.init",Zy);export const init=Zy;
package/dist/x-stepper.js CHANGED
@@ -4,10 +4,10 @@ b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Md(function(d){return new $APP.P(nu
4
4
  $APP.gc(c)):$APP.Ld}catch(d){return $APP.Ld}else return $APP.Ld}else return $APP.Ld},al=function(a){var b=$APP.l(a,"__xStepperRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-stepper-indicator-size:2rem;--x-stepper-connector-thickness:2px;--x-stepper-step-gap:0.75rem;--x-stepper-font-size:0.875rem;--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:999px;--x-stepper-motion:120ms;--x-stepper-press-scale:0.93;--x-stepper-focus-ring:rgba(0,0,0,0.55);--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:rgba(16,140,72,1);--x-stepper-complete-color:#fff;--x-stepper-complete-connector:rgba(16,140,72,1);--x-stepper-current-bg:rgba(0,102,204,1);--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:rgba(0,0,0,0.45);--x-stepper-idle-connector:rgba(0,0,0,0.12);--x-stepper-label-done-color:rgba(0,0,0,0.85);--x-stepper-label-current-color:rgba(0,0,0,0.85);--x-stepper-label-upcoming-color:rgba(0,0,0,0.4);--x-stepper-desc-color:rgba(0,0,0,0.4);}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:rgba(255,255,255,0.7);--x-stepper-complete-bg:rgba(60,210,120,1);--x-stepper-complete-color:#000;--x-stepper-complete-connector:rgba(60,210,120,1);--x-stepper-current-bg:rgba(80,160,255,1);--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:rgba(255,255,255,0.35);--x-stepper-idle-connector:rgba(255,255,255,0.12);--x-stepper-label-done-color:rgba(255,255,255,0.9);--x-stepper-label-current-color:rgba(255,255,255,0.9);--x-stepper-label-upcoming-color:rgba(255,255,255,0.3);--x-stepper-desc-color:rgba(255,255,255,0.35);}}[part\x3dcontainer]{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;}:host([data-orientation\x3dhorizontal]) [part\x3dcontainer]{flex-direction:row;}:host([data-orientation\x3dhorizontal]) [part\x3dstep]{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-track]{display:flex;align-items:center;width:100%;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-connector]{flex:1;height:var(--x-stepper-connector-thickness);min-width:8px;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-content]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--x-stepper-step-gap) 4px 0;width:100%;}:host([data-orientation\x3dvertical]) [part\x3dcontainer]{flex-direction:column;}:host([data-orientation\x3dvertical]) [part\x3dstep]{display:flex;flex-direction:row;gap:var(--x-stepper-step-gap);}:host([data-orientation\x3dvertical]) [part\x3dstep-track]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:var(--x-stepper-indicator-size);}:host([data-orientation\x3dvertical]) [part\x3dstep-connector]{flex:1;width:var(--x-stepper-connector-thickness);min-height:16px;margin:4px 0;}:host([data-orientation\x3dvertical]) [part\x3dstep-content]{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--x-stepper-step-gap);}[part\x3dstep-indicator]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-stepper-indicator-size);height:var(--x-stepper-indicator-size);border-radius:var(--x-stepper-radius);border:none;padding:0;margin:0;cursor:pointer;font-size:0.875em;font-weight:600;font-family:inherit;flex-shrink:0;position:relative;z-index:1;transition:background var(--x-stepper-motion) ease,color var(--x-stepper-motion) ease,transform 80ms ease;}[part\x3dstep-indicator]:focus{outline:none;}[part\x3dstep-indicator]:focus-visible{outline:2px solid var(--x-stepper-focus-ring);outline-offset:3px;}[data-state\x3dcomplete] [part\x3dstep-indicator]{background:var(--x-stepper-complete-bg);color:var(--x-stepper-complete-color);}[data-state\x3dcurrent] [part\x3dstep-indicator]{background:var(--x-stepper-current-bg);color:var(--x-stepper-current-color);cursor:default;}[data-state\x3dupcoming] [part\x3dstep-indicator]{background:var(--x-stepper-upcoming-bg);color:var(--x-stepper-upcoming-color);}[data-state\x3dcomplete] [part\x3dstep-connector]{background:var(--x-stepper-complete-connector);}[data-state\x3dcurrent] [part\x3dstep-connector],[data-state\x3dupcoming] [part\x3dstep-connector]{background:var(--x-stepper-idle-connector);}[part\x3dstep]:last-child [part\x3dstep-connector]{display:none;}[part\x3dstep-label]{font-size:var(--x-stepper-font-size);line-height:1.3;font-family:inherit;}[data-state\x3dcomplete] [part\x3dstep-label]{color:var(--x-stepper-label-done-color);}[data-state\x3dcurrent] [part\x3dstep-label]{color:var(--x-stepper-label-current-color);font-weight:var(--x-stepper-label-font-weight);}[data-state\x3dupcoming] [part\x3dstep-label]{color:var(--x-stepper-label-upcoming-color);}[part\x3dstep-description]{font-size:var(--x-stepper-desc-font-size);color:var(--x-stepper-desc-color);line-height:1.3;margin-top:0.2em;}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:hover,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:hover{filter:brightness(0.88);}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:active,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:active{transform:scale(var(--x-stepper-press-scale));}:host([disabled]){opacity:var(--x-stepper-disabled-opacity);}:host([disabled]) [part\x3dstep-indicator]{cursor:default;pointer-events:none;}:host([data-size\x3dsm]){--x-stepper-indicator-size:1.5rem;--x-stepper-font-size:0.8125rem;--x-stepper-desc-font-size:0.6875rem;}:host([data-size\x3dlg]){--x-stepper-indicator-size:2.5rem;--x-stepper-font-size:1rem;--x-stepper-desc-font-size:0.875rem;}@media (prefers-reduced-motion:reduce){[part\x3dstep-indicator]{transition:none;}}";
5
5
  d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.P(null,2,[$APP.sh,b,$APP.ri,d],null);return $APP.l(a,"__xStepperRefs")},fl=function(a){a=new $APP.P(null,5,[bl,a.getAttribute("steps"),cl,a.getAttribute("current"),$APP.li,a.getAttribute("orientation"),$APP.hi,a.getAttribute("size"),$APP.U,a.hasAttribute("disabled")],null);var b=$APP.M(a),c=$APP.I(b,bl);a=$APP.I(b,cl);var d=$APP.I(b,$APP.li),e=$APP.I(b,$APP.hi);b=$APP.I(b,$APP.U);
6
6
  c=$k(c);var g=$APP.B(c);return new $APP.P(null,5,[dl,c,el,g===0?0:$APP.kg.h(0,$APP.lg.h(Zk(a),g-1)),$APP.Ah,Rk(d),$APP.Ag,Wk(e),$APP.U,$APP.J(b)],null)},gl=function(a,b,c){return"Step "+$APP.S.g(a+1)+": "+$APP.S.g(b)+" ("+$APP.S.g(function(){var d=c instanceof $APP.K?c.oa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.S.g(d));}}())+")"},hl=function(a,b,c,d){var e=$APP.M(b);b=$APP.I(e,
7
- $APP.W);e=$APP.I(e,$APP.Dg);var g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),u=document.createElement("span"),w=document.createElement("span");a:{var z=c instanceof $APP.K?c.oa:null;switch(z){case "complete":z="complete";break a;case "current":z="current";break a;case "upcoming":z="upcoming";break a;default:throw Error("No matching clause: "+$APP.S.g(z));
7
+ $APP.W);e=$APP.I(e,$APP.Dg);var g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),v=document.createElement("span"),w=document.createElement("span");a:{var z=c instanceof $APP.K?c.oa:null;switch(z){case "complete":z="complete";break a;case "current":z="current";break a;case "upcoming":z="upcoming";break a;default:throw Error("No matching clause: "+$APP.S.g(z));
8
8
  }}b=$APP.n(b)?b:"";g.setAttribute("part","step");g.setAttribute("role","listitem");g.setAttribute("data-index",""+$APP.S.g(a));g.setAttribute("data-state",z);h.setAttribute("part","step-track");k.setAttribute("part","step-indicator");k.setAttribute("type","button");k.setAttribute("aria-label",gl(a,b,c));$APP.E.h(c,el)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");m.setAttribute("part","step-number");m.setAttribute("aria-hidden",
9
- "true");m.textContent=$APP.E.h(c,$APP.Qi)?"✓":""+$APP.S.g(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");u.setAttribute("part","step-label");u.textContent=b;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.N(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(q);r.appendChild(u);r.appendChild(w);g.appendChild(h);g.appendChild(r);return g},jl=
10
- function(a){var b=fl(a);if($APP.N($APP.l(a,"__xStepperModel"),b)){b=$APP.M(b);var c=$APP.I(b,dl),d=$APP.I(b,el),e=$APP.I(b,$APP.Ah),g=$APP.I(b,$APP.Ag),h=$APP.I(b,$APP.U),k=al(a);k=$APP.M(k);k=$APP.I(k,$APP.ri);a.setAttribute("data-orientation",Tk(e));a.setAttribute("data-size",Yk(g));k.innerHTML="";c=$APP.v($APP.Bd($APP.og,c));e=null;for(var m=g=0;;)if(m<g){var q=e.F(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var u=r<d?$APP.Qi:$APP.E.h(r,d)?el:il;k.appendChild(hl(r,q,u,h));m+=1}else if(c=$APP.v(c))$APP.yc(c)?
9
+ "true");m.textContent=$APP.E.h(c,$APP.Qi)?"✓":""+$APP.S.g(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");v.setAttribute("part","step-label");v.textContent=b;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.N(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(q);r.appendChild(v);r.appendChild(w);g.appendChild(h);g.appendChild(r);return g},jl=
10
+ function(a){var b=fl(a);if($APP.N($APP.l(a,"__xStepperModel"),b)){b=$APP.M(b);var c=$APP.I(b,dl),d=$APP.I(b,el),e=$APP.I(b,$APP.Ah),g=$APP.I(b,$APP.Ag),h=$APP.I(b,$APP.U),k=al(a);k=$APP.M(k);k=$APP.I(k,$APP.ri);a.setAttribute("data-orientation",Tk(e));a.setAttribute("data-size",Yk(g));k.innerHTML="";c=$APP.u($APP.Bd($APP.og,c));e=null;for(var m=g=0;;)if(m<g){var q=e.F(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var v=r<d?$APP.Qi:$APP.E.h(r,d)?el:il;k.appendChild(hl(r,q,v,h));m+=1}else if(c=$APP.u(c))$APP.yc(c)?
11
11
  (g=$APP.ob(c),c=$APP.pb(c),e=g,g=$APP.B(g)):(g=$APP.x(c),e=$APP.H(g,0,null),g=$APP.H(g,1,null),m=e<d?$APP.Qi:$APP.E.h(e,d)?el:il,k.appendChild(hl(e,g,m,h)),c=$APP.y(c),e=null,g=0),m=0;else break;a.__xStepperModel=b}},ll=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:fl(a);$APP.n($APP.U.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=el.g(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.N(d,
12
12
  e)&&(e=$APP.xg(new $APP.P(null,2,[$APP.Mg,e,kl,d],null)),e=new CustomEvent("x-stepper-change",{detail:e,bubbles:!0,composed:!0,cancelable:!0}),e=a.dispatchEvent(e),$APP.n(e)&&a.setAttribute("current",""+$APP.S.g(d)))));return null}var c=al(a);c=$APP.M(c);$APP.I(c,$APP.ri).addEventListener("click",b);$APP.ma(a,"__xStepperHandlers",{click:b})},ml=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&(c=$APP.ri.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?
13
13
  b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},nl=function(a){Object.defineProperty(a,"steps",{get:function(){var b=this.getAttribute("steps");return $APP.n(b)?b:"[]"},set:function(b){return $APP.n(b)?this.setAttribute("steps",""+$APP.S.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return Zk(this.getAttribute("current"))},set:function(b){return b==null?this.removeAttribute("current"):this.setAttribute("current",
package/dist/x-tab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var jj=function(a,b,c){return $APP.Cc(b,a)?a:c},rj=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.bj),d=$APP.I(b,$APP.yi);a=$APP.I(b,$APP.Ah);var e=$APP.I(b,$APP.Ag),g=$APP.I(b,$APP.Wg),h=$APP.I(b,$APP.W);b=$APP.I(b,kj);c=$APP.J(c);var k=(d=$APP.J(d))?"-1":c?"0":"-1";return new $APP.P(null,8,[$APP.bj,c,$APP.yi,d,$APP.Ah,jj(a,lj,"horizontal"),$APP.Ag,jj(e,mj,"md"),$APP.Wg,jj(g,qj,"default"),$APP.W,h,kj,b,$APP.Ug,k],null)},sj=function(a){return new $APP.P(null,8,[$APP.T,a.getAttribute("value"),$APP.bj,
2
+ var jj=function(a,b,c){return $APP.Cc(b,a)?a:c},rj=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.bj),d=$APP.I(b,$APP.yi);a=$APP.I(b,$APP.Ah);var e=$APP.I(b,$APP.Ag),g=$APP.I(b,$APP.Wg),h=$APP.I(b,$APP.W);b=$APP.I(b,kj);c=$APP.J(c);var k=(d=$APP.J(d))?"-1":c?"0":"-1";return new $APP.P(null,8,[$APP.bj,c,$APP.yi,d,$APP.Ah,jj(a,lj,"horizontal"),$APP.Ag,jj(e,mj,"md"),$APP.Wg,jj(g,nj,"default"),$APP.W,h,kj,b,$APP.Ug,k],null)},sj=function(a){return new $APP.P(null,8,[$APP.T,a.getAttribute("value"),$APP.bj,
3
3
  a.hasAttribute("selected"),$APP.yi,a.hasAttribute("disabled"),$APP.Ah,a.getAttribute("orientation"),$APP.Ag,a.getAttribute("size"),$APP.Wg,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),kj,a.getAttribute("controls")],null)},tj=function(a){var b=rj(sj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.bj.g(b))?"true":"false");$APP.n($APP.yi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
4
  $APP.Ug.g(b));var d=kj.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.N(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.N(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.bj.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.yi.g(b))?"true":"false");c.setAttribute("data-size",$APP.Ag.g(b));c.setAttribute("data-variant",$APP.Wg.g(b));return c.setAttribute("data-orientation",
5
5
  $APP.Ah.g(b))}return null},uj=function(a){var b=rj(sj(a)),c=$APP.M(b);b=$APP.I(c,$APP.bj);c=$APP.I(c,$APP.yi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},vj=function(a){a.addEventListener("click",function(){return uj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.E.h(c,"Enter")||$APP.E.h(c," ")?(b.preventDefault(),b=uj(a)):b=null;return b})},wj=function(a){if($APP.l(a,
6
6
  "__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#1d4ed8;--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#60a5fa;}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) ease,color var(--x-tab-transition-duration,120ms) ease,border-color var(--x-tab-transition-duration,120ms) ease;}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
7
  d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;vj(a);a.__x_tab_initialized=!0}tj(a);return a},xj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
8
  set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},zj=function(){var a=class extends HTMLElement{};a.observedAttributes=yj;a.prototype.connectedCallback=function(){return wj(this)};a.prototype.attributeChangedCallback=
9
- function(){return $APP.l(this,"__x_tab_initialized")===!0?tj(this):wj(this)};xj(a);return a},Aj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",zj())},kj=new $APP.K(null,"controls","controls",1340701452);var yj="value selected disabled orientation size variant label controls".split(" "),lj=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),mj=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),qj=new $APP.R(null,new $APP.P(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tab.init",Aj);export const init=Aj;
9
+ function(){return $APP.l(this,"__x_tab_initialized")===!0?tj(this):wj(this)};xj(a);return a},Aj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",zj())},kj=new $APP.K(null,"controls","controls",1340701452);var yj="value selected disabled orientation size variant label controls".split(" "),lj=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),mj=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),nj=new $APP.R(null,new $APP.P(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tab.init",Aj);export const init=Aj;
@@ -5,8 +5,8 @@ g=document.createElement("slot"),h=document.createElement("button"),k=document.c
5
5
  d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(g);h.setAttribute("part","sort-btn");h.setAttribute("type","button");k.setAttribute("name","sort-icon");m.setAttribute("part","sort-icon-default");m.setAttribute("aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';k.appendChild(m);h.appendChild(k);d.appendChild(e);d.appendChild(h);
6
6
  b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.P(null,5,[$APP.sh,b,Kx,d,Lx,e,Mx,h,Nx,m],null);return $APP.l(a,"__xTableCellRefs")},fy=function(a){a=$APP.bf([$APP.Dh,Px,Qx,Rx,Ex,Sx,$APP.jh,Tx,Ux,$APP.U,Vx],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
7
  var b=$APP.M(a);a=$APP.I(b,$APP.U);var c=$APP.I(b,Vx),d=$APP.I(b,$APP.Dh),e=$APP.I(b,Px),g=$APP.I(b,Qx),h=$APP.I(b,Rx),k=$APP.I(b,Ex),m=$APP.I(b,Sx),q=$APP.I(b,$APP.jh),r=$APP.I(b,Tx);b=$APP.I(b,Ux);return $APP.bf([$APP.ei,Fx,Wx,$APP.Z,Xx,Ex,$APP.Rh,Yx,Sx,$APP.U,Zx],[Cx(d,$x,"start"),Cx(h,ay,"none"),Cx(g,by,"middle"),Cx(q,cy,"data"),Cx(b,dy,"col"),$APP.J(k),Cx(r,ey,"none"),Dx(c),$APP.J(m),$APP.J(a),Dx(e)])},gy=function(a){var b=fy(a);if($APP.N($APP.l(a,"__xTableCellModel"),b)){b=$APP.M(b);var c=$APP.I(b,
8
- Yx),d=$APP.I(b,Zx),e=$APP.I(b,$APP.U),g=$APP.I(b,Fx),h=Ox(a);h=$APP.M(h);var k=$APP.I(h,Mx);h=$APP.I(h,Nx);var m=Hx(b),q=$APP.M(b),r=$APP.I(q,$APP.Z),u=$APP.I(q,$APP.ei),w=$APP.I(q,Wx),z=$APP.I(q,$APP.Rh),A=$APP.I(q,Sx),C=$APP.I(q,$APP.U);$APP.I(q,Ex);$APP.I(q,Fx);var F=a.setAttribute,D=$APP.M(q);var Q=$APP.I(D,$APP.Z);D=$APP.I(D,Xx);Q=$APP.E.h(Q,"header")?$APP.E.h(D,"row")||$APP.E.h(D,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",Q);q=Gx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
- a.removeAttribute("aria-sort");$APP.n(C)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",u);a.setAttribute("data-valign",w);$APP.E.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.S.g(c):"";a.style.gridRow=d>1?"span "+$APP.S.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.M(b);
8
+ Yx),d=$APP.I(b,Zx),e=$APP.I(b,$APP.U),g=$APP.I(b,Fx),h=Ox(a);h=$APP.M(h);var k=$APP.I(h,Mx);h=$APP.I(h,Nx);var m=Hx(b),q=$APP.M(b),r=$APP.I(q,$APP.Z),v=$APP.I(q,$APP.ei),w=$APP.I(q,Wx),z=$APP.I(q,$APP.Rh),A=$APP.I(q,Sx),C=$APP.I(q,$APP.U);$APP.I(q,Ex);$APP.I(q,Fx);var F=a.setAttribute,D=$APP.M(q);var Q=$APP.I(D,$APP.Z);D=$APP.I(D,Xx);Q=$APP.E.h(Q,"header")?$APP.E.h(D,"row")||$APP.E.h(D,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",Q);q=Gx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
+ a.removeAttribute("aria-sort");$APP.n(C)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",v);a.setAttribute("data-valign",w);$APP.E.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.S.g(c):"";a.style.gridRow=d>1?"span "+$APP.S.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.M(b);
10
10
  m=$APP.I(r,$APP.Z);d=$APP.I(r,Ex);r=$APP.I(r,$APP.U);m=$APP.E.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Jx(g));k.disabled=$APP.J(e);a:switch(e=$APP.M(b),$APP.I(e,Fx)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
11
  break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},hy=function(a){var b=a.getAttribute("sort-direction");b=Cx(b,ay,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Ix(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},iy=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
12
  return $APP.n(c)?c:fy(a)}();$APP.n(function(){var c=Hx(b);return $APP.n(c)?$APP.p($APP.U.g(b)):c}())&&hy(a);return null},jy=function(a){function b(){return iy(a)}var c=Ox(a);c=$APP.M(c);$APP.I(c,Mx).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},ky=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.M(c),c=$APP.I(c,Mx),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
package/dist/x-tabs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var wt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.v(a);if(a==null)return $APP.rf;if(a instanceof $APP.Ib&&a.u===0)return $APP.sf(a.i);for(var b=$APP.hb($APP.rf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},Bt=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.T);var c=$APP.I(b,$APP.Ah),d=$APP.I(b,xt),e=$APP.I(b,$APP.W);b=$APP.I(b,yt);c=$APP.Cc(zt,c)?c:"horizontal";d=$APP.Cc(At,d)?d:"auto";return new $APP.P(null,5,[$APP.T,a,$APP.Ah,c,xt,d,$APP.W,e,yt,$APP.J(b)],
2
+ var wt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.u(a);if(a==null)return $APP.rf;if(a instanceof $APP.Ib&&a.u===0)return $APP.sf(a.i);for(var b=$APP.hb($APP.rf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},Bt=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.T);var c=$APP.I(b,$APP.Ah),d=$APP.I(b,xt),e=$APP.I(b,$APP.W);b=$APP.I(b,yt);c=$APP.Cc(zt,c)?c:"horizontal";d=$APP.Cc(At,d)?d:"auto";return new $APP.P(null,5,[$APP.T,a,$APP.Ah,c,xt,d,$APP.W,e,yt,$APP.J(b)],
3
3
  null)},Ct=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},Dt=function(a){return new $APP.P(null,5,[$APP.T,a.getAttribute("value"),$APP.Ah,a.getAttribute("orientation"),xt,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),yt,a.hasAttribute("loop")],null)},Et=function(a){return $APP.be($APP.Kd(function(b){return $APP.E.h("X-TAB",b.tagName)},$APP.gc(a.children)))},Ft=function(a){return $APP.p(a.hasAttribute("disabled"))},Gt=function(a){return a.getAttribute("value")},Ht=function(a){return $APP.Ad(function(b){return Ft(b)?
4
4
  b:null},a)},It=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.N(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.E.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},Jt=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?a.setAttribute("selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},Kt=function(a,b){var c=a.getAttribute("tabindex");$APP.N(c,b)&&a.setAttribute("tabindex",b)},Lt=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
- $APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Mt=function(a){var b=Et(a),c=a.getAttribute("value"),d=wt($APP.Cd(Gt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Ht(b),c=$APP.n(c)?Gt(c):null);if($APP.n(c)){a:{d=$APP.v(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.F(null,h),m=$APP.E.h(Gt(k),c);Jt(k,m);m&&Ft(k)?Kt(k,"0"):Kt(k,"-1");h+=1}else if(d=$APP.v(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,g=$APP.B(e),e=k):(k=$APP.x(d),
6
- e=$APP.E.h(Gt(k),c),Jt(k,e),e&&Ft(k)?Kt(k,"0"):Kt(k,"-1"),d=$APP.y(d),e=null,g=0),h=0;else break a}a:for(b=$APP.v(b),d=null,g=e=0;;)if(g<e)k=d.F(null,g),Lt(k,$APP.E.h(Gt(k),c)),g+=1;else if(b=$APP.v(b))d=b,$APP.yc(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Lt(k,$APP.E.h(Gt(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;It(a,c)}return c},Nt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(It(a,b),Mt(a),a.dispatchEvent(new CustomEvent("value-change",
5
+ $APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Mt=function(a){var b=Et(a),c=a.getAttribute("value"),d=wt($APP.Cd(Gt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Ht(b),c=$APP.n(c)?Gt(c):null);if($APP.n(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.F(null,h),m=$APP.E.h(Gt(k),c);Jt(k,m);m&&Ft(k)?Kt(k,"0"):Kt(k,"-1");h+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,g=$APP.B(e),e=k):(k=$APP.x(d),
6
+ e=$APP.E.h(Gt(k),c),Jt(k,e),e&&Ft(k)?Kt(k,"0"):Kt(k,"-1"),d=$APP.y(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.F(null,g),Lt(k,$APP.E.h(Gt(k),c)),g+=1;else if(b=$APP.u(b))d=b,$APP.yc(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Lt(k,$APP.E.h(Gt(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;It(a,c)}return c},Nt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(It(a,b),Mt(a),a.dispatchEvent(new CustomEvent("value-change",
7
7
  {detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Ot=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Pt=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Qt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=Bt(Dt(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.Ah.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.N(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Mt(a)},Rt=function(a){var b=
8
8
  new MutationObserver(function(){return Qt(a)});b.observe(a,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},St=function(a){function b(d){a:{var e=$APP.be($APP.Kd(Ft,Et(a))),g=Bt(Dt(a)),h=$APP.Ah.g(g);var k=xt.g(g);g=yt.g(g);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.E.h(h,"horizontal")&&$APP.E.h(m,"ArrowRight")?Ot(q,e,g):$APP.E.h(h,"horizontal")&&$APP.E.h(m,"ArrowLeft")?Pt(q,e,g):$APP.E.h(h,"vertical")&&
9
9
  $APP.E.h(m,"ArrowDown")?Ot(q,e,g):$APP.E.h(h,"vertical")&&$APP.E.h(m,"ArrowUp")?Pt(q,e,g):$APP.E.h(m,"Home")?0:$APP.E.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.H(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.E.h(k,"auto")?Nt(a,Gt(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Nt(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;Rt(a)},Tt=function(a){Object.defineProperty(a.prototype,
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var AF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},BF=function(a,b,c){return a.setAttribute(b,c)},CF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},DF=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.E.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
3
  c):b.setValidity({},"",c)},MF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.bf([EF,$APP.dh,$APP.Kh,$APP.th,$APP.Fh,FF,$APP.$h,GF,$APP.Cg,$APP.vi,$APP.Gi,$APP.ch,HF,$APP.wh],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
- a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),k=$APP.I(h,HF),m=$APP.I(h,$APP.wh),q=$APP.I(h,EF),r=$APP.I(h,$APP.dh),u=$APP.I(h,$APP.Kh),w=$APP.I(h,$APP.th),z=$APP.I(h,$APP.Fh),A=$APP.I(h,FF);g=$APP.I(h,$APP.$h);var C=$APP.I(h,GF),F=$APP.I(h,$APP.Cg),D=$APP.I(h,$APP.vi),Q=$APP.I(h,$APP.Gi);h=$APP.I(h,$APP.ch);var V=$APP.n(w)?w:"",ea=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.J(F);D=$APP.J(D);
5
- m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.N(z,"")&&z!=null;u=$APP.n(u)?u:"";Q=$APP.n(Q)?Q:"";k=AF(k);r=typeof r==="string"&&$APP.N(r,"")&&r!=null;w=typeof w==="string"&&$APP.N(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(IF,q)?q:"vertical";A=AF(A);g=$APP.bf([$APP.bh,$APP.cj,$APP.Di,$APP.gh,$APP.ii,$APP.T,JF,$APP.Nh,$APP.kh,KF,$APP.mi,LF,$APP.Xh,$APP.W,$APP.qh,$APP.oi,$APP.U],[F,D,m,z,u,Q,k,r,w,q,ea,AF(C),$APP.n(A)?A:3,wa,V,$APP.n(h)?h:"",$APP.J(g)]);C=$APP.kh.g(g);A=$APP.gh.g(g);h=$APP.Nh.g(g);
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),k=$APP.I(h,HF),m=$APP.I(h,$APP.wh),q=$APP.I(h,EF),r=$APP.I(h,$APP.dh),v=$APP.I(h,$APP.Kh),w=$APP.I(h,$APP.th),z=$APP.I(h,$APP.Fh),A=$APP.I(h,FF);g=$APP.I(h,$APP.$h);var C=$APP.I(h,GF),F=$APP.I(h,$APP.Cg),D=$APP.I(h,$APP.vi),Q=$APP.I(h,$APP.Gi);h=$APP.I(h,$APP.ch);var V=$APP.n(w)?w:"",fa=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.J(F);D=$APP.J(D);
5
+ m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.N(z,"")&&z!=null;v=$APP.n(v)?v:"";Q=$APP.n(Q)?Q:"";k=AF(k);r=typeof r==="string"&&$APP.N(r,"")&&r!=null;w=typeof w==="string"&&$APP.N(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(IF,q)?q:"vertical";A=AF(A);g=$APP.bf([$APP.bh,$APP.cj,$APP.Di,$APP.gh,$APP.ii,$APP.T,JF,$APP.Nh,$APP.kh,KF,$APP.mi,LF,$APP.Xh,$APP.W,$APP.qh,$APP.oi,$APP.U],[F,D,m,z,v,Q,k,r,w,q,fa,AF(C),$APP.n(A)?A:3,wa,V,$APP.n(h)?h:"",$APP.J(g)]);C=$APP.kh.g(g);A=$APP.gh.g(g);h=$APP.Nh.g(g);
6
6
  c.name=$APP.ii.g(g);c.placeholder=$APP.Di.g(g);c.disabled=$APP.U.g(g);c.readOnly=$APP.cj.g(g);c.required=$APP.bh.g(g);c.rows=$APP.Xh.g(g);c.autocomplete=$APP.oi.g(g);V=LF.g(g);$APP.n(V)?BF(c,"maxlength",""+$APP.S.g(V)):c.removeAttribute("maxlength");V=JF.g(g);$APP.n(V)?BF(c,"minlength",""+$APP.S.g(V)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",KF.g(g));BF(c,"aria-required",$APP.n($APP.bh.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");V=
7
7
  $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(V)?c.setAttribute("aria-describedby",V):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.mi.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.qh.g(g);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");CF(a,"data-invalid",C);d=$APP.l(a,
8
8
  "__xTextAreaInternals");return $APP.n(d)?DF(a,d,c):null}return null},NF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},OF=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),DF(a,e,b));return NF(a,"x-text-area-input",{name:d,value:c})}return null}},PF=function(a){return function(){var b=
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var Cj=function(a){a=$APP.I(Bj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Zg},Ej=function(a){a=$APP.I(Dj,a);return $APP.n(a)?a:"pending"},Hj=function(a){a=$APP.I(Fj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Gj},Ij=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Jj=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Lj=function(a,
3
3
  b){a=$APP.I(Kj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(Kj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.zi);return b},Mj=function(a,b,c){a=Ej(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},ak=function(a){var b=$APP.M(a),c=$APP.I(b,Nj);a=$APP.I(b,$APP.U);var d=$APP.I(b,$APP.Ii),e=$APP.I(b,$APP.dh),g=$APP.I(b,Oj),h=$APP.I(b,Pj),k=$APP.I(b,Qj),m=$APP.I(b,
4
- $APP.Bh),q=$APP.I(b,Rj),r=$APP.I(b,$APP.Kg),u=$APP.I(b,Sj);b=$APP.I(b,$APP.ni);var w=Cj(m),z=Ij(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Zi:z!=null?$APP.Oh:$APP.ah;m=function(){var C=A instanceof $APP.K?A.oa:null;switch(C){case "default":return C=$APP.I(Tj,w),$APP.n(C)?C:$APP.I(Tj,$APP.Zg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=Jj(c);d=Lj(k,d);e=$APP.n(e)?e:"";u=$APP.n(u)?u:"";return $APP.bf([Uj,Vj,Wj,Oj,Rj,$APP.$g,Xj,$APP.Gg,$APP.W,
5
- Yj,$APP.ej,$APP.U,Zj],[Hj(h),c,m,$APP.J(g),$APP.J(q),$APP.E.h(A,$APP.Oh)?z:null,u,w,e,Mj(w,e,c),A,$APP.J(a),d])},bk=function(a){a=$APP.M(a);a=$APP.I(a,$APP.U);return $APP.p(a)},nk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
- q=document.createElement("slot"),r=document.createElement("span"),u=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),F=document.createElement("div"),D=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);u.setAttribute("class","connector");k.appendChild(m);k.appendChild(u);w.setAttribute("class","content-col");z.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(C);F.setAttribute("class","actions");D.setAttribute("name","actions");F.appendChild(D);w.appendChild(z);w.appendChild(A);w.appendChild(F);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.bf([Uj,ck,dk,$APP.Ui,ek,fk,$APP.Mi,gk,$APP.sh,hk,ik,jk,kk,lk,$APP.di,mk],[u,h,m,r,e,k,A,C,b,D,z,w,d,F,q,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},ok=function(a){return ak($APP.bf([$APP.Ii,$APP.dh,
4
+ $APP.Bh),q=$APP.I(b,Rj),r=$APP.I(b,$APP.Kg),v=$APP.I(b,Sj);b=$APP.I(b,$APP.ni);var w=Cj(m),z=Ij(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Zi:z!=null?$APP.Oh:$APP.ah;m=function(){var C=A instanceof $APP.K?A.oa:null;switch(C){case "default":return C=$APP.I(Tj,w),$APP.n(C)?C:$APP.I(Tj,$APP.Zg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=Jj(c);d=Lj(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.bf([Uj,Vj,Wj,Oj,Rj,$APP.$g,Xj,$APP.Gg,$APP.W,
5
+ Yj,$APP.ej,$APP.U,Zj],[Hj(h),c,m,$APP.J(g),$APP.J(q),$APP.E.h(A,$APP.Oh)?z:null,v,w,e,Mj(w,e,c),A,$APP.J(a),d])},bk=function(a){a=$APP.M(a);a=$APP.I(a,$APP.U);return $APP.p(a)},nk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
+ q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),F=document.createElement("div"),D=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");k.appendChild(m);k.appendChild(v);w.setAttribute("class","content-col");z.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(C);F.setAttribute("class","actions");D.setAttribute("name","actions");F.appendChild(D);w.appendChild(z);w.appendChild(A);w.appendChild(F);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.bf([Uj,ck,dk,$APP.Ui,ek,fk,$APP.Mi,gk,$APP.sh,hk,ik,jk,kk,lk,$APP.di,mk],[v,h,m,r,e,k,A,C,b,D,z,w,d,F,q,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},ok=function(a){return ak($APP.bf([$APP.Ii,$APP.dh,
9
9
  Oj,Pj,Qj,$APP.Bh,Rj,$APP.Kg,Sj,$APP.ni,Nj,$APP.U],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},rk=function(a){var b=ok(a);if($APP.N($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.W),d=$APP.I(b,
10
- Xj),e=$APP.I(b,$APP.Gg),g=$APP.I(b,Zj),h=$APP.I(b,$APP.U),k=$APP.I(b,Wj),m=$APP.I(b,Yj),q=nk(a),r=$APP.M(q);q=$APP.I(r,ck);var u=$APP.I(r,dk),w=$APP.I(r,ik);r=$APP.I(r,$APP.Ui);a.setAttribute("data-status",Ej(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.vf(g));a.__xTimelineItemSelfPos=null;$APP.E.h(Uj.g(b),pk)?a.setAttribute("data-connector","dashed"):$APP.E.h(Uj.g(b),qk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
- $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");u.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.N(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},sk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
10
+ Xj),e=$APP.I(b,$APP.Gg),g=$APP.I(b,Zj),h=$APP.I(b,$APP.U),k=$APP.I(b,Wj),m=$APP.I(b,Yj),q=nk(a),r=$APP.M(q);q=$APP.I(r,ck);var v=$APP.I(r,dk),w=$APP.I(r,ik);r=$APP.I(r,$APP.Ui);a.setAttribute("data-status",Ej(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.vf(g));a.__xTimelineItemSelfPos=null;$APP.E.h(Uj.g(b),pk)?a.setAttribute("data-connector","dashed"):$APP.E.h(Uj.g(b),qk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
+ $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.N(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},sk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
12
  !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.E.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},tk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);e=$APP.I(e,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!0}))},
13
13
  uk=function(a){function b(d){var e=d.key;if($APP.E.h(e,"Enter")||$APP.E.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:ok(a),bk(e)&&(d.preventDefault(),tk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:ok(a);bk(d)&&tk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},vk=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,
14
14
  "keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},wk=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?
package/dist/x-toast.js CHANGED
@@ -2,13 +2,13 @@ import { $APP, shadow$provide } from "./base.js";
2
2
  var Zl=function(a){a=$APP.I(Yl,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.yh},am=function(a){a=$APP.I($l,a);return $APP.n(a)?a:"info"},bm=function(a){return a==null?!0:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},cm=function(a){return a==null?!1:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},dm=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},em=function(a){return typeof a==="string"?(a=
3
3
  a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},hm=function(a){var b=$APP.M(a),c=$APP.I(b,$APP.Lg),d=$APP.I(b,$APP.Lh);a=$APP.I(b,$APP.Zh);var e=$APP.I(b,$APP.$h),g=$APP.I(b,$APP.hh),h=$APP.I(b,$APP.Kg),k=$APP.I(b,fm),m=$APP.I(b,$APP.jh);b=$APP.I(b,$APP.ni);m=Zl(m);b=em(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.Zi:b!=null?$APP.Oh:$APP.ah;return $APP.bf([gm,$APP.vh,$APP.Z,$APP.$g,$APP.ej,$APP.U,$APP.Fi,$APP.Lg,$APP.Lh],[cm(k),bm(a),m,$APP.E.h(h,$APP.Oh)?b:null,h,$APP.J(e),dm(g),function(){var q=
4
4
  typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},im=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.vh);b=$APP.I(b,$APP.U);return $APP.n(a)?$APP.p(b):a},jm=function(a,b){var c=$APP.M(a);a=$APP.I(c,$APP.Z);var d=$APP.I(c,$APP.Lh);c=$APP.I(c,$APP.Lg);return new $APP.P(null,4,[$APP.Z,am(a),$APP.xh,b,$APP.Lh,d,$APP.Lg,c],null)},km=function(a){var b=$APP.M(a);a=$APP.I(b,gm);b=$APP.I(b,$APP.Fi);return $APP.J($APP.n(a)?
5
- b!=null&&b>0:a)},qm=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),u=document.createElement("button"),w=document.createElement("span"),z=document.createElement("div"),
5
+ b!=null&&b>0:a)},qm=function(a){var b=$APP.l(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),k=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),w=document.createElement("span"),z=document.createElement("div"),
6
6
  A=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:12px;--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:0.875rem;--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:280px;--x-toast-max-width:480px;--x-toast-border-width:1px;--x-toast-shadow:0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08);--x-toast-motion-fast:120ms;--x-toast-motion-ease:cubic-bezier(0.2,0,0,1);--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:rgba(0,0,0,0.6);--x-toast-dismiss-color:rgba(0,0,0,0.50);--x-toast-dismiss-hover-bg:rgba(0,0,0,0.06);--x-toast-progress-height:3px;--x-toast-progress-bg:rgba(0,0,0,0.08);--x-toast-info-bg:#ffffff;--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:#ffffff;--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:#ffffff;--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:#ffffff;--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30);--x-toast-focus-ring:rgba(255,255,255,0.75);--x-toast-dismiss-color:rgba(255,255,255,0.65);--x-toast-dismiss-hover-bg:rgba(255,255,255,0.12);--x-toast-progress-bg:rgba(255,255,255,0.10);--x-toast-info-bg:#1e293b;--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:#1e293b;--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:#1e293b;--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:#1e293b;--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
- d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);g.appendChild(h);m.setAttribute("part","body");q.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(q);m.appendChild(r);u.setAttribute("part","dismiss");u.setAttribute("type","button");u.setAttribute("aria-label","Dismiss toast");w.setAttribute("aria-hidden",
8
- "true");w.textContent="×";u.appendChild(w);e.appendChild(g);e.appendChild(m);e.appendChild(u);z.setAttribute("part","progress");A.setAttribute("part","progress-bar");z.appendChild(A);d.appendChild(e);d.appendChild(z);b.appendChild(c);b.appendChild(d);b=$APP.bf([lm,$APP.Ui,mm,$APP.eh,$APP.Mi,nm,$APP.sh,$APP.ri,om,$APP.Fg,$APP.di,pm],[A,k,r,u,m,e,b,d,z,g,h,q]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},rm=function(a){return hm($APP.bf([$APP.Zh,$APP.$h,$APP.hh,$APP.Kg,fm,$APP.ni,$APP.jh,$APP.Lg,
7
+ d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");k.setAttribute("part","default-icon");h.appendChild(k);g.appendChild(h);m.setAttribute("part","body");q.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(q);m.appendChild(r);v.setAttribute("part","dismiss");v.setAttribute("type","button");v.setAttribute("aria-label","Dismiss toast");w.setAttribute("aria-hidden",
8
+ "true");w.textContent="×";v.appendChild(w);e.appendChild(g);e.appendChild(m);e.appendChild(v);z.setAttribute("part","progress");A.setAttribute("part","progress-bar");z.appendChild(A);d.appendChild(e);d.appendChild(z);b.appendChild(c);b.appendChild(d);b=$APP.bf([lm,$APP.Ui,mm,$APP.eh,$APP.Mi,nm,$APP.sh,$APP.ri,om,$APP.Fg,$APP.di,pm],[A,k,r,v,m,e,b,d,z,g,h,q]);a.__xToastRefs=b;return $APP.l(a,"__xToastRefs")},rm=function(a){return hm($APP.bf([$APP.Zh,$APP.$h,$APP.hh,$APP.Kg,fm,$APP.ni,$APP.jh,$APP.Lg,
9
9
  $APP.Lh],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},tm=function(a){var b=rm(a);if($APP.N($APP.l(a,"__xToastModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.Z),d=$APP.I(b,$APP.Lh),e=$APP.I(b,$APP.Lg),g=$APP.I(b,$APP.ej),h=$APP.I(b,$APP.$g),k=$APP.I(b,$APP.vh),m=$APP.I(b,$APP.U),q=$APP.I(b,$APP.Fi),r=qm(a),
10
- u=$APP.M(r),w=$APP.I(u,$APP.di);r=$APP.I(u,pm);var z=$APP.I(u,lm),A=$APP.I(u,$APP.Ui),C=$APP.I(u,mm),F=$APP.I(u,$APP.eh),D=$APP.I(u,$APP.ri),Q=$APP.I(u,om);u=$APP.I(u,$APP.Fg);w=$APP.n(w)?w.assignedNodes().length>0:null;$APP.E.h(g,$APP.Oh)||(h=$APP.I(sm,c),h=$APP.n(h)?h:$APP.I(sm,$APP.yh));g=$APP.p(w)&&$APP.E.h(g,$APP.Zi);w=km(b);a.setAttribute("data-type",am(c));var V=D.setAttribute;c=$APP.E.h(c,$APP.ui)||$APP.E.h(c,$APP.qh)?"alert":"status";V.call(D,"role",c);r.textContent=d;r.style.display=$APP.E.h(d,
11
- "")?"none":"";C.textContent=e;g?(A.textContent="",u.style.display="none"):(A.textContent=h,u.style.display="inline");$APP.n(k)?(F.disabled=$APP.J(m),F.style.display="inline-flex"):(F.disabled=!0,F.style.display="none");w?(Q.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.S.g(q)+"ms")):Q.style.display="none";d=$APP.n(k)?$APP.p(m):k;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
10
+ v=$APP.M(r),w=$APP.I(v,$APP.di);r=$APP.I(v,pm);var z=$APP.I(v,lm),A=$APP.I(v,$APP.Ui),C=$APP.I(v,mm),F=$APP.I(v,$APP.eh),D=$APP.I(v,$APP.ri),Q=$APP.I(v,om);v=$APP.I(v,$APP.Fg);w=$APP.n(w)?w.assignedNodes().length>0:null;$APP.E.h(g,$APP.Oh)||(h=$APP.I(sm,c),h=$APP.n(h)?h:$APP.I(sm,$APP.yh));g=$APP.p(w)&&$APP.E.h(g,$APP.Zi);w=km(b);a.setAttribute("data-type",am(c));var V=D.setAttribute;c=$APP.E.h(c,$APP.ui)||$APP.E.h(c,$APP.qh)?"alert":"status";V.call(D,"role",c);r.textContent=d;r.style.display=$APP.E.h(d,
11
+ "")?"none":"";C.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(k)?(F.disabled=$APP.J(m),F.style.display="inline-flex"):(F.disabled=!0,F.style.display="none");w?(Q.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.S.g(q)+"ms")):Q.style.display="none";d=$APP.n(k)?$APP.p(m):k;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
12
  "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},um=function(a){a=typeof a==="string"?a.trim():"";return $APP.E.h(a,"")||$APP.E.h(a,"0")||$APP.E.h(a,"0ms")||$APP.E.h(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*a))):0},vm=function(a){var b=window.getComputedStyle(a);a=um(b.getPropertyValue("--x-toast-exit-duration"));
13
13
  b=um(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},wm=function(a){var b=$APP.l(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},ym=function(a){wm(a);var b=function(){var c=$APP.l(a,"__xToastModel");return $APP.n(c)?c:rm(a)}();$APP.n(function(){var c=im(b);return $APP.n(c)?typeof $APP.Fi.g(b)==="number"&&$APP.p($APP.l(a,"__xToastExiting")):c}())&&$APP.ma(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;
14
14
  return $APP.n(d)?$APP.p($APP.l(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.l(a,"__xToastModel");return $APP.n(d)?d:rm(a)}();if($APP.n(im(c)))return c=$APP.xg(jm(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?xm.g?xm.g(a):xm.call(null,a):null}return null},$APP.Fi.g(b)))},zm=function(a){if(!$APP.n($APP.l(a,"__xToastEntered"))){a.__xToastEntered=!0;a.setAttribute("data-entering","");var b=qm(a);b=$APP.M(b);
package/package.json CHANGED
@@ -259,6 +259,6 @@
259
259
  "shadow-cljs" : "^3.3.6"
260
260
  },
261
261
  "files" : [ "dist", "README.md", "LICENSE", "CHANGELOG.md" ],
262
- "version" : "0.2.1-alpha",
262
+ "version" : "0.2.2-alpha",
263
263
  "sideEffects" : [ "./dist/*.js" ]
264
264
  }