@vanelsas/baredom 0.2.6-alpha → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +16 -101
  2. package/README.md +15 -222
  3. package/dist/base.js +349 -346
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +17 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +15 -15
  10. package/dist/x-cancel-dialogue.js +16 -16
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +47 -47
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +10 -10
  16. package/dist/x-command-palette.js +30 -30
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -19
  19. package/dist/x-copy.js +22 -22
  20. package/dist/x-currency-field.js +21 -21
  21. package/dist/x-date-picker.js +37 -37
  22. package/dist/x-divider.js +13 -10
  23. package/dist/x-drawer.js +11 -11
  24. package/dist/x-dropdown.js +9 -9
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +15 -15
  28. package/dist/x-form.js +9 -9
  29. package/dist/x-grid.js +7 -7
  30. package/dist/x-menu-item.js +10 -10
  31. package/dist/x-menu.js +10 -10
  32. package/dist/x-modal.js +12 -12
  33. package/dist/x-navbar.js +13 -12
  34. package/dist/x-notification-center.js +10 -9
  35. package/dist/x-pagination.js +16 -16
  36. package/dist/x-popover.js +14 -11
  37. package/dist/x-progress-circle.js +7 -7
  38. package/dist/x-progress.js +9 -8
  39. package/dist/x-radio.js +11 -11
  40. package/dist/x-search-field.js +14 -14
  41. package/dist/x-select.js +10 -10
  42. package/dist/x-sidebar.js +17 -26
  43. package/dist/x-skeleton.js +5 -5
  44. package/dist/x-slider.js +16 -16
  45. package/dist/x-spacer.js +5 -5
  46. package/dist/x-spinner.js +5 -5
  47. package/dist/x-stat.js +12 -9
  48. package/dist/x-stepper.js +16 -16
  49. package/dist/x-switch.js +10 -10
  50. package/dist/x-tab.js +8 -8
  51. package/dist/x-table-cell.js +20 -20
  52. package/dist/x-table-row.js +10 -10
  53. package/dist/x-table.js +15 -14
  54. package/dist/x-tabs.js +12 -11
  55. package/dist/x-text-area.js +17 -17
  56. package/dist/x-timeline-item.js +21 -21
  57. package/dist/x-timeline.js +9 -9
  58. package/dist/x-toast.js +23 -23
  59. package/dist/x-toaster.js +8 -8
  60. package/package.json +1 -1
package/dist/x-sidebar.js CHANGED
@@ -1,27 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gG=function(a){if(a!=null&&a.C!=null)a=a.C(a);else{var b=gG[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=gG._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.sa("IEmptyableCollection.-empty",a);}return a},hG=function(){},iG=function(){},jG=function(a){return a==null?null:a!=null&&(a.l&4||$APP.t===a.Zb)?a.C(null):(a!=null?a.l&4||$APP.t===a.Zb||(a.l?0:$APP.qa(hG,a)):$APP.qa(hG,a))?gG(a):null},kG=function(a){return a==null?!1:a!=null?a.l&64||$APP.t===a.mb?!0:a.l?
3
- !1:$APP.qa(iG,a):$APP.qa(iG,a)},lG=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Fc?$APP.Fc(b,c,a):$APP.Gc.call(null,b,c,a)},mG=function(){},nG=function(a,b){if(a!=null&&a.$b!=null)a=a.$b(a,b);else{var c=nG[$APP.da(a==null?null:a)];if(c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else if(c=nG._,c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else throw $APP.sa("IEncodeClojure.-js-\x3eclj",a);}return a},pG=function(a){var b=$APP.gc([$APP.oi,!0]),c=$APP.N(b);c=$APP.J(c,$APP.oi);var d=$APP.n(c)?
4
- $APP.Pf:$APP.ta;return function h(g){return(g!=null?$APP.t===g.rc||(g.Ub?0:$APP.qa(mG,g)):$APP.qa(mG,g))?nG(g,$APP.rd(oG,b)):kG(g)?$APP.Df($APP.Id.h(h,g)):$APP.Zd(g)?new $APP.ue(h($APP.Ma(g)),h($APP.Na(g))):$APP.sc(g)?$APP.Be.m(jG(g),$APP.Id.g(h),g):$APP.n($APP.pa(g))?$APP.jd($APP.Fc(function(k,m){return $APP.kd(k,h(m))},$APP.hb($APP.Ld),g)):$APP.ra(g)===Object?$APP.jd($APP.Fc(function(k,m){var q=d.g?d.g(m):d.call(null,m);m=h($APP.l(g,m));return $APP.kb(k,q,m)},$APP.hb($APP.xd),$APP.la(g))):g}(a)},
5
- qG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},rG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.xg(new $APP.Q(null,3,[$APP.Y,c,$APP.Fi,!0,$APP.Ri,!0],null))))},tG=function(a,b){$APP.Cc(sG,b)&&rG(a,"dismiss",new $APP.Q(null,1,[$APP.wh,b],null))},uG=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},vG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
6
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},wG=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
7
- a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},xG=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.be($APP.gc(c)):$APP.Ld;var d=$APP.l(a,"_panel");if($APP.rc(c))return b.preventDefault(),$APP.n(d)?vG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.ic(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.C.h(a,c)?(b.preventDefault(),d.focus()):null},yG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
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
- 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}},UG=function(a){yG(a);var b=$APP.l(a,"_prevState");b=b==null?null:pG(b);b=$APP.n(b)?b:$APP.xd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),
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.N(new $APP.Q(null,8,[zG,c,AG,d,BG,e,CG,g,DG,h,EG,k,FG,m,GG,$APP.K(q.matches)],null));k=$APP.J(c,zG);h=$APP.J(c,AG);d=$APP.J(c,BG);e=$APP.J(c,CG);m=$APP.J(c,DG);q=$APP.J(c,EG);g=$APP.J(c,FG);c=$APP.J(c,GG);d=$APP.Cc(HG,d)?d:$APP.yi.g(IG);e=$APP.Cc(JG,e)?e:$APP.Vg.g(IG);var r=$APP.Oh.g(IG);m=m==null?null:""+$APP.T.g(m);m=m==null?null:
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(IG);k=$APP.N(new $APP.Q(null,1,[zG,k],null));k=$APP.J(k,zG);k=$APP.K(k);h=$APP.K(h);g=g<m?"modal":e;r=$APP.C.h(g,"modal");var v=$APP.C.h(g,"overlay"),w=$APP.C.h(g,"docked");c=$APP.cf([$APP.qi,KG,LG,MG,$APP.Oh,NG,OG,PG,QG,$APP.W,$APP.yi,RG,SG,TG],[k,g,!k,w&&h,m,w,h,e,k&&(r||v),q,d,$APP.K(c),r,v]);k=$APP.N(c);d=$APP.J(k,KG);e=$APP.J(k,$APP.yi);g=$APP.J(k,
12
- $APP.qi);h=$APP.J(k,MG);k=$APP.J(k,RG);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=SG.g(c);$APP.n(d)&&(d=$APP.qi.g(c),$APP.n(d)&&(d=SG.g(b),d=$APP.n(d)?$APP.qi.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.be($APP.Kd(uG,$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.u(d)?$APP.x(d).focus():vG(a)):(d=SG.g(b),$APP.n(d)&&(d=$APP.qi.g(b),$APP.n(d)&&(d=SG.g(c),d=$APP.n(d)?$APP.qi.g(c):d,d=$APP.p(d))),$APP.n(d)&&wG(a));e=$APP.N(c);d=$APP.J(e,$APP.W);e=$APP.J(e,LG);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.N(c);d=$APP.J(d,QG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
14
- $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.N(c);d=$APP.J(h,$APP.qi);e=$APP.J(h,$APP.yi);g=$APP.J(h,KG);h=$APP.J(h,MG);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.O($APP.qi.g(b),$APP.qi.g(c))&&(b=$APP.qi.g(c),rG(a,"toggle",new $APP.Q(null,1,[$APP.qi,$APP.K(b)],null)));b=$APP.xg(c);a._prevState=
15
- b},VG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:pG(e)}(),d=$APP.l(a,"_backdrop");return $APP.n(function(){var e=SG.g(c);e=$APP.n(e)?e:TG.g(c);return $APP.n(e)?(e=$APP.qi.g(c),$APP.n(e)?$APP.C.h(b.target,d):e):e}())?(tG(a,"backdrop"),qG(a,"open",!1)):null},WG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:pG(e)}(),d=b.key;return $APP.n(function(){var e=SG.g(c);e=$APP.n(e)?e:TG.g(c);return $APP.n(e)?$APP.qi.g(c):e}())?$APP.C.h(d,
16
- "Escape")?(b.preventDefault(),tG(a,"escape"),qG(a,"open",!1)):$APP.n(function(){var e=SG.g(c);return $APP.n(e)?$APP.C.h(d,"Tab"):e}())?xG(a,b):null:null},XG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){return VG(a,b)},onKeydown:function(b){return WG(a,b)},onResize:function(){return UG(a)}})},YG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return qG(this,"open",$APP.K(b))},enumerable:!0,
17
- configurable:!0})},ZG=function(a){Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return qG(this,"collapsed",$APP.K(b))},enumerable:!0,configurable:!0})},$G=function(){var a=Object.create(HTMLElement.prototype);$APP.ma(a,"connectedCallback",function(){yG(this);XG(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,
18
- "onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",$APP.l(b,"onResize"));this._listening=!0}return UG(this)});$APP.ma(a,"disconnectedCallback",function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,
19
- "onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return wG(this)});$APP.ma(a,"attributeChangedCallback",function(b,c,d){return $APP.O(c,d)?UG(this):null});YG(a);ZG(a);return a},bH=function(){function a(){return Reflect.construct(HTMLElement,[],this.constructor)}if($APP.n(customElements.get("x-sidebar")))return null;var b=$G();a.prototype=b;Object.defineProperty(b,"constructor",{value:a});Object.setPrototypeOf(a,HTMLElement);a.observedAttributes=
20
- aH;return customElements.define("x-sidebar",a)},cH=function(){return bH()};$APP.Ib.prototype.C=$APP.ca(24,function(){return $APP.Lb});$APP.Uc.prototype.C=$APP.ca(23,function(){return $APP.Ua($APP.Lb,this.s)});$APP.Vc.prototype.C=$APP.ca(22,function(){return this});$APP.Wc.prototype.C=$APP.ca(21,function(){return $APP.Lb});$APP.$c.prototype.C=$APP.ca(20,function(){return $APP.Ua($APP.Lb,this.s)});$APP.ed.prototype.C=$APP.ca(19,function(){return $APP.Lb});$APP.Fd.prototype.C=$APP.ca(18,function(){return $APP.Lb});
21
- $APP.P.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.ue.prototype.C=$APP.ca(15,function(){return null});$APP.ve.prototype.C=$APP.ca(14,function(){return $APP.Lb});$APP.Q.prototype.C=$APP.ca(13,function(){return $APP.Ua($APP.xd,this.s)});$APP.Te.prototype.C=$APP.ca(12,function(){return $APP.Lb});$APP.Xe.prototype.C=$APP.ca(11,function(){return $APP.Lb});
22
- $APP.bf.prototype.C=$APP.ca(10,function(){return $APP.Ua($APP.De,this.s)});$APP.hf.prototype.C=$APP.ca(9,function(){return $APP.Lb});$APP.jf.prototype.C=$APP.ca(8,function(){return null});$APP.kf.prototype.C=$APP.ca(7,function(){return null});$APP.lf.prototype.C=$APP.ca(6,function(){return new $APP.lf(this.Ca,null,0,this.s,0)});$APP.nf.prototype.C=$APP.ca(5,function(){return $APP.Lb});$APP.pf.prototype.C=$APP.ca(4,function(){return $APP.Lb});
23
- $APP.S.prototype.C=$APP.ca(3,function(){return $APP.Ua($APP.sf,this.s)});$APP.vf.prototype.C=$APP.ca(2,function(){return new $APP.vf(this.s,gG(this.Ka),0)});$APP.zf.prototype.C=$APP.ca(1,function(){return $APP.Lb});$APP.Af.prototype.C=$APP.ca(0,function(){return $APP.Lb});var oG=function oG(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return oG.G(0<c.length?new $APP.Ib(c.slice(0),0,null):null)};
24
- oG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:lG(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)};oG.Y=0;oG.X=function(a){return this.G($APP.u(a))};
25
- var PG=new $APP.M(null,"declared-variant","declared-variant",-2054964950),dH=new $APP.M(null,"collapsed","collapsed",-628494523),FG=new $APP.M(null,"viewport-width","viewport-width",-1146235948),LG=new $APP.M(null,"aria-hidden","aria-hidden",399337029),GG=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),OG=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),DG=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),CG=new $APP.M(null,"variant-attr",
26
- "variant-attr",-1143729279),KG=new $APP.M(null,"effective-variant","effective-variant",-829495195),RG=new $APP.M(null,"reduced-motion","reduced-motion",79621277),QG=new $APP.M(null,"show-backdrop","show-backdrop",-532209910),NG=new $APP.M(null,"is-docked","is-docked",875310728),AG=new $APP.M(null,"collapsed-attr","collapsed-attr",-1535396832),SG=new $APP.M(null,"is-modal","is-modal",1610761086),BG=new $APP.M(null,"placement-attr","placement-attr",-1321967286),TG=new $APP.M(null,"is-overlay","is-overlay",
27
- 1953921119),EG=new $APP.M(null,"label-attr","label-attr",-571749887),zG=new $APP.M(null,"open-attr","open-attr",-1772289801),MG=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var aH="open collapsed placement variant breakpoint label".split(" "),HG=$APP.tf(["right","left"]),JG=$APP.tf(["overlay","docked","modal"]),sG=$APP.tf(["backdrop","escape"]),IG=new $APP.Q(null,6,[$APP.yi,"left",$APP.Vg,"docked",$APP.Oh,768,$APP.W,"Sidebar",$APP.qi,!1,dH,!1],null);$APP.wd(["toggle",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.qi,$APP.Ji],null)],null),"dismiss",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.wh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",cH);export const init=cH;
2
+ var pG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.pg(new $APP.Q(null,3,[$APP.Y,c,$APP.zi,!0,$APP.Li,!0],null))))},sG=function(a,b){$APP.yc(rG,b)&&qG(a,"dismiss",new $APP.Q(null,1,[$APP.qh,b],null))},tG=function(a){var b=window.getComputedStyle(a);return $APP.O("none",b.display)&&$APP.O("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},uG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
3
+ (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},vG=function(a){var b=$APP.l(a,"_restoreFocusTarget"),c=$APP.l(a,"_panel"),d=$APP.l(a,"_panelTabindexAdded")===!0,e=$APP.l(a,"_root");var g=$APP.l(a,"_sidebar");e=$APP.n(e)?e.activeElement:null;var h=document.activeElement;g=$APP.n($APP.n(e)?$APP.n(g)?g.contains(e):g:e)?e:$APP.n($APP.n(h)?$APP.n(g)?g.contains(h):g:h)?h:null;$APP.n(g)&&g.blur();a._tabbables=null;a._restoreFocusTarget=null;$APP.n($APP.n(c)?d:c)&&(c.removeAttribute("tabindex"),
4
+ a._panelTabindexAdded=!1);return $APP.n($APP.n(b)?b.isConnected:b)?b.focus():null},wG=function(a,b){var c=$APP.l(a,"_tabbables");c=$APP.n(c)?$APP.Wd($APP.dc(c)):$APP.Fd;var d=$APP.l(a,"_panel");if($APP.oc(c))return b.preventDefault(),$APP.n(d)?uG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.fc(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.C.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.C.h(a,c)?(b.preventDefault(),d.focus()):null},xG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
5
+ 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-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-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
6
+ 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}},TG=function(a){xG(a);var b=$APP.l(a,"_prevState");b=$APP.n(b)?b:$APP.td;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),g=a.getAttribute("variant"),
7
+ h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.N(new $APP.Q(null,8,[yG,c,zG,d,AG,e,BG,g,CG,h,DG,k,EG,m,FG,$APP.K(q.matches)],null));k=$APP.I(c,yG);h=$APP.I(c,zG);d=$APP.I(c,AG);e=$APP.I(c,BG);m=$APP.I(c,CG);q=$APP.I(c,DG);g=$APP.I(c,EG);c=$APP.I(c,FG);d=$APP.yc(GG,d)?d:$APP.ri.g(HG);e=$APP.yc(IG,e)?e:$APP.Ng.g(HG);var r=$APP.Ih.g(HG);m=m==null?null:""+$APP.T.g(m);m=m==null?null:(0,$APP.Vf)(m);$APP.u(m)?(m=
8
+ Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.Vf)(q):null;q=$APP.u(q)?q:null;q=$APP.n(q)?q:$APP.W.g(HG);k=$APP.N(new $APP.Q(null,1,[yG,k],null));k=$APP.I(k,yG);k=$APP.K(k);h=$APP.K(h);g=g<m?"modal":e;r=$APP.C.h(g,"modal");var v=$APP.C.h(g,"overlay"),w=$APP.C.h(g,"docked");c=$APP.Xe([$APP.ji,JG,KG,LG,$APP.Ih,MG,NG,OG,PG,$APP.W,$APP.ri,QG,RG,SG],[k,g,!k,w&&h,m,w,h,e,k&&(r||v),q,d,$APP.K(c),r,v]);k=$APP.N(c);d=$APP.I(k,JG);e=$APP.I(k,$APP.ri);g=$APP.I(k,$APP.ji);h=$APP.I(k,LG);k=
9
+ $APP.I(k,QG);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=RG.g(c);$APP.n(d)&&(d=$APP.ji.g(c),$APP.n(d)&&(d=RG.g(b),d=$APP.n(d)?$APP.ji.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.Wd($APP.Ed(tG,$APP.dc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
10
+ a._restoreFocusTarget=document.activeElement,e=$APP.pg(d),a._tabbables=e,$APP.u(d)?$APP.x(d).focus():uG(a)):(d=RG.g(b),$APP.n(d)&&(d=$APP.ji.g(b),$APP.n(d)&&(d=RG.g(c),d=$APP.n(d)?$APP.ji.g(c):d,d=$APP.p(d))),$APP.n(d)&&vG(a));e=$APP.N(c);d=$APP.I(e,$APP.W);e=$APP.I(e,KG);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.N(c);d=$APP.I(d,PG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
11
+ $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.N(c);d=$APP.I(h,$APP.ji);e=$APP.I(h,$APP.ri);g=$APP.I(h,JG);h=$APP.I(h,LG);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.O($APP.ji.g(b),$APP.ji.g(c))&&(b=$APP.ji.g(c),qG(a,"toggle",new $APP.Q(null,1,[$APP.ji,$APP.K(b)],null)));a._prevState=c},
12
+ UG=function(a,b){var c=$APP.l(a,"_prevState"),d=b.key;return $APP.n(function(){var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);return $APP.n(e)?$APP.ji.g(c):e}())?$APP.C.h(d,"Escape")?(b.preventDefault(),sG(a,"escape"),pG(a,"open",!1)):$APP.n(function(){var e=RG.g(c);return $APP.n(e)?$APP.C.h(d,"Tab"):e}())?wG(a,b):null:null},VG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.la(a,"_handlers",{onBackdropClick:function(b){var c=$APP.l(a,"_prevState"),d=$APP.l(a,"_backdrop");var e=RG.g(c);e=$APP.n(e)?e:SG.g(c);
13
+ $APP.n(e)?(c=$APP.ji.g(c),b=$APP.n(c)?$APP.C.h(b.target,d):c):b=e;$APP.n(b)?(sG(a,"backdrop"),b=pG(a,"open",!1)):b=null;return b},onKeydown:function(b){return UG(a,b)},onResize:function(){return TG(a)}})},WG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return pG(this,"open",$APP.K(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return pG(this,
14
+ "collapsed",$APP.K(b))},enumerable:!0,configurable:!0})},YG=function(){var a=class extends HTMLElement{};a.observedAttributes=XG;a.prototype.connectedCallback=function(){xG(this);VG(this);if($APP.l(this,"_listening")!==!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.addEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.addEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.addEventListener("resize",
15
+ $APP.l(b,"onResize"));this._listening=!0}return TG(this)};a.prototype.disconnectedCallback=function(){if($APP.l(this,"_listening")===!0){var b=$APP.l(this,"_handlers"),c=$APP.l(this,"_backdrop"),d=$APP.l(this,"_root");$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",$APP.l(b,"onBackdropClick"));$APP.n($APP.n(d)?b:d)&&d.removeEventListener("keydown",$APP.l(b,"onKeydown"));$APP.n(b)&&window.removeEventListener("resize",$APP.l(b,"onResize"));this._listening=!1}return vG(this)};a.prototype.attributeChangedCallback=
16
+ function(b,c,d){return $APP.O(c,d)?TG(this):null};WG(a.prototype);return a},ZG=function(){return $APP.n(customElements.get("x-sidebar"))?null:customElements.define("x-sidebar",YG())},OG=new $APP.M(null,"declared-variant","declared-variant",-2054964950),$G=new $APP.M(null,"collapsed","collapsed",-628494523),EG=new $APP.M(null,"viewport-width","viewport-width",-1146235948),KG=new $APP.M(null,"aria-hidden","aria-hidden",399337029),FG=new $APP.M(null,"prefers-reduced-motion","prefers-reduced-motion",
17
+ -2023150975),NG=new $APP.M(null,"collapsed-requested","collapsed-requested",1573505800),CG=new $APP.M(null,"breakpoint-attr","breakpoint-attr",-250275627),BG=new $APP.M(null,"variant-attr","variant-attr",-1143729279),JG=new $APP.M(null,"effective-variant","effective-variant",-829495195),QG=new $APP.M(null,"reduced-motion","reduced-motion",79621277),PG=new $APP.M(null,"show-backdrop","show-backdrop",-532209910),MG=new $APP.M(null,"is-docked","is-docked",875310728),zG=new $APP.M(null,"collapsed-attr",
18
+ "collapsed-attr",-1535396832),RG=new $APP.M(null,"is-modal","is-modal",1610761086),AG=new $APP.M(null,"placement-attr","placement-attr",-1321967286),SG=new $APP.M(null,"is-overlay","is-overlay",1953921119),DG=new $APP.M(null,"label-attr","label-attr",-571749887),yG=new $APP.M(null,"open-attr","open-attr",-1772289801),LG=new $APP.M(null,"collapsed-applied","collapsed-applied",-1696231706);var XG="open collapsed placement variant breakpoint label".split(" "),GG=$APP.nf(["right","left"]),IG=$APP.nf(["overlay","docked","modal"]),rG=$APP.nf(["backdrop","escape"]),HG=new $APP.Q(null,6,[$APP.ri,"left",$APP.Ng,"docked",$APP.Ih,768,$APP.W,"Sidebar",$APP.ji,!1,$G,!1],null);$APP.sd(["toggle",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.ji,$APP.Di],null)],null),"dismiss",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.qh,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_sidebar.init",ZG);export const init=ZG;
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gz=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},kz=function(a){var b=new $APP.Q(null,4,[$APP.Vg,a.getAttribute("variant"),hz,a.getAttribute("animation"),$APP.Ng,a.getAttribute("width"),$APP.Ii,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.J(c,$APP.Vg),e=$APP.J(c,hz);b=$APP.J(c,$APP.Ng);c=$APP.J(c,$APP.Ii);d=typeof d==="string"&&$APP.Cc(iz,d)?d:"rect";e=typeof e==="string"&&$APP.Cc(jz,e)?e:"pulse";b=new $APP.Q(null,4,[$APP.Vg,d,hz,e,$APP.Ng,gz(b),$APP.Ii,gz(c)],null);d=
3
- $APP.N(b);b=$APP.J(d,$APP.Vg);e=$APP.J(d,hz);c=$APP.J(d,$APP.Ng);d=$APP.J(d,$APP.Ii);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},lz=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"rect"},set:function(b){return typeof b===
2
+ var mz=function(a){return typeof a==="string"&&$APP.O("",a)?a:null},qz=function(a){var b=new $APP.Q(null,4,[$APP.Ng,a.getAttribute("variant"),nz,a.getAttribute("animation"),$APP.Fg,a.getAttribute("width"),$APP.Ci,a.getAttribute("height")],null);var c=$APP.N(b),d=$APP.I(c,$APP.Ng),e=$APP.I(c,nz);b=$APP.I(c,$APP.Fg);c=$APP.I(c,$APP.Ci);d=typeof d==="string"&&$APP.yc(oz,d)?d:"rect";e=typeof e==="string"&&$APP.yc(pz,e)?e:"pulse";b=new $APP.Q(null,4,[$APP.Ng,d,nz,e,$APP.Fg,mz(b),$APP.Ci,mz(c)],null);d=
3
+ $APP.N(b);b=$APP.I(d,$APP.Ng);e=$APP.I(d,nz);c=$APP.I(d,$APP.Fg);d=$APP.I(d,$APP.Ci);var g=$APP.l(a,"__xSkeletonBase");g.setAttribute("data-variant",b);g.setAttribute("data-animation",e);$APP.n(c)?g.style.setProperty("width",c):g.style.removeProperty("width");$APP.n(d)?g.style.setProperty("height",d):g.style.removeProperty("height");a.setAttribute("aria-hidden","true")},rz=function(a){Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"rect"},set:function(b){return typeof b===
4
4
  "string"&&$APP.O("",b)?this.setAttribute("variant",b):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"pulse"},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b===
5
- "string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},nz=function(){var a=class extends HTMLElement{};a.observedAttributes=mz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
5
+ "string"&&$APP.O("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.O("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},tz=function(){var a=class extends HTMLElement{};a.observedAttributes=sz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
6
6
  "__xSkeletonInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-skeleton-color:rgba(0,0,0,0.08);--x-skeleton-highlight:rgba(255,255,255,0.65);--x-skeleton-border-radius:4px;--x-skeleton-duration:1.5s;}@media (prefers-color-scheme:dark){:host{--x-skeleton-color:rgba(255,255,255,0.10);--x-skeleton-highlight:rgba(255,255,255,0.18);}}[part\x3dbase]{width:100%;height:1rem;position:relative;overflow:hidden;background:var(--x-skeleton-color);border-radius:var(--x-skeleton-border-radius);}[part\x3dbase][data-variant\x3d'text']{height:1em;border-radius:3px;}[part\x3dbase][data-variant\x3d'circle']{width:2.5rem;height:2.5rem;border-radius:50%;}[part\x3dshimmer]{position:absolute;inset:0;background:linear-gradient(90deg,transparent 0%,var(--x-skeleton-highlight) 50%,transparent 100%);transform:translateX(-100%);display:none;pointer-events:none;}@keyframes x-skeleton-pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}@keyframes x-skeleton-wave{0%{transform:translateX(-100%);}100%{transform:translateX(200%);}}[part\x3dbase][data-animation\x3d'pulse']{animation:x-skeleton-pulse var(--x-skeleton-duration,1.5s) ease-in-out infinite;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{display:block;animation:x-skeleton-wave var(--x-skeleton-duration,1.5s) linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dbase][data-animation\x3d'pulse']{animation:none;}[part\x3dbase][data-animation\x3d'wave'] [part\x3dshimmer]{animation:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}kz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&kz(this);return null};lz(a.prototype);return a},oz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",nz());return null},
8
- hz=new $APP.M(null,"animation","animation",-1248293244);var iz=new $APP.S(null,new $APP.Q(null,3,["text",null,"rect",null,"circle",null],null),null),jz=new $APP.S(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),mz=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",oz);export const init=oz;
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}qz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&qz(this);return null};rz(a.prototype);return a},uz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",tz());return null},
8
+ nz=new $APP.M(null,"animation","animation",-1248293244);var oz=new $APP.S(null,new $APP.Q(null,3,["text",null,"rect",null,"circle",null],null),null),pz=new $APP.S(null,new $APP.Q(null,3,["none",null,"pulse",null,"wave",null],null),null),sz=["variant","animation","width","height"];$APP.ja("baredom.exports.x_skeleton.init",uz);export const init=uz;
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ju=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},ku=function(a,b,c){return a.setAttribute(b,c)},lu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},qu=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.cf([$APP.Ti,$APP.wi,$APP.Yi,$APP.gi,$APP.U,$APP.hi,$APP.Mi,$APP.Ag,$APP.eh,$APP.W,$APP.Vi,$APP.$h,mu],[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.N(h);h=$APP.J(k,$APP.$h);var m=$APP.J(k,mu),q=$APP.J(k,$APP.Ti),r=$APP.J(k,$APP.wi),v=$APP.J(k,$APP.Yi),w=$APP.J(k,$APP.U),z=$APP.J(k,$APP.gi),A=$APP.J(k,$APP.hi),D=$APP.J(k,
4
- $APP.Mi),F=$APP.J(k,$APP.Ag),I=$APP.J(k,$APP.W),E=$APP.J(k,$APP.eh);k=$APP.J(k,$APP.Vi);q=ju(q,0);E=ju(E,100);w=$APP.lg.h($APP.kg.h(ju(w,0),q),E);$APP.C.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.T.g(m):"1");F=typeof F==="string"&&$APP.Cc(nu,F)?F:"md";r=$APP.K(r);A=$APP.K(A);v=$APP.K(v);var R=E>q?$APP.lg.h($APP.kg.h((w-q)/(E-q)*100,0),100):0;h=$APP.cf([$APP.Ti,$APP.aj,$APP.gi,$APP.U,$APP.Mi,ou,$APP.Ag,$APP.eh,$APP.W,$APP.Vi,$APP.$h,$APP.V,mu,pu],[q,
5
- A,typeof z==="string"&&$APP.O("",z)?z:null,w,typeof D==="string"&&$APP.O("",D)?D:null,v,F,E,typeof I==="string"&&$APP.O("",I)?I:null,typeof k==="string"&&$APP.O("",k)?k:null,typeof h==="string"&&$APP.O("",h)?h:null,r,m,R]);m=$APP.N(h);z=$APP.J(m,$APP.$h);D=$APP.J(m,$APP.V);I=$APP.J(m,mu);k=$APP.J(m,pu);v=$APP.J(m,$APP.Ti);q=$APP.J(m,$APP.aj);h=$APP.J(m,$APP.U);A=$APP.J(m,$APP.Mi);E=$APP.J(m,ou);r=$APP.J(m,$APP.Ag);w=$APP.J(m,$APP.W);F=$APP.J(m,$APP.eh);m=$APP.J(m,$APP.Vi);R=(R=w!=null)?R:E;c.setAttribute("data-size",
6
- r);lu(a,"data-disabled",D);lu(a,"data-readonly",q);d.style.display=$APP.n(R)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(E)?""+$APP.T.g(h):"";g.style.display=$APP.n(E)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(k.toFixed(2))+"%");ku(b,"min",""+$APP.T.g(v));ku(b,"max",""+$APP.T.g(F));b.setAttribute("step",I);$APP.O(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));ku(b,"aria-valuemin",""+$APP.T.g(v));ku(b,"aria-valuemax",""+$APP.T.g(F));
7
- ku(b,"aria-valuenow",""+$APP.T.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(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
- $APP.T.g(h)):null}return null},ru=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},su=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 ru(a,"x-slider-input",{value:c,min:d,max:e})}},tu=function(a){return function(){var b=
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 ru(a,"x-slider-change",{value:b,min:c,max:d})}},uu=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}},vu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=
10
- $APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},wu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return lu(this,c,$APP.K(d))}})},xu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
11
- get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?ku(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},zu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return yu}});wu(b,"disabled","disabled");wu(b,"readOnly","readonly");wu(b,"showValue","show-value");xu(b,"value","value");xu(b,"min","min");xu(b,"max","max");xu(b,"step","step");xu(b,"name","name");
12
- xu(b,"label","label");xu(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:#60a5fa;--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-focus-ring:#93c5fd;--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}";
13
- e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}vu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
- "input"),d=su(this),e=tu(this),g=uu(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return qu(this)};b.disconnectedCallback=function(){return vu(this)};b.attributeChangedCallback=function(){return qu(this)};b.formDisabledCallback=function(c){lu(this,"disabled",$APP.K(c));return qu(this)};b.formResetCallback=function(){ku(this,"value",""+$APP.T.g(0));return qu(this)};return a},Au=function(){return $APP.n(customElements.get("x-slider"))?
15
- null:customElements.define("x-slider",zu())},ou=new $APP.M(null,"show-value?","show-value?",-1960833108),pu=new $APP.M(null,"fill-percent","fill-percent",-1813848228),mu=new $APP.M(null,"step","step",1288888124);var nu=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),yu="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
- $APP.cf([$APP.Ti,$APP.wi,$APP.Eg,$APP.gi,$APP.U,$APP.Ag,$APP.zi,$APP.eh,$APP.W,mu],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"readonly"],null),new $APP.Q(null,
17
- 2,[$APP.Z,$APP.X,$APP.Pg,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"step"],null)]);$APP.wd(["x-slider-input",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.Fh,$APP.Ti,$APP.Fh,$APP.eh,$APP.Fh],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.Fh,$APP.Ti,$APP.Fh,$APP.eh,$APP.Fh],null)],null)]);$APP.ka("baredom.exports.x_slider.init",Au);export const init=Au;
2
+ var lu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},mu=function(a,b,c){return a.setAttribute(b,c)},nu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},su=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.Xe([$APP.Ni,$APP.pi,$APP.Si,$APP.ai,$APP.U,$APP.bi,$APP.Gi,$APP.sg,$APP.Yg,$APP.W,$APP.Pi,$APP.Uh,ou],[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.N(h);h=$APP.I(k,$APP.Uh);var m=$APP.I(k,ou),q=$APP.I(k,$APP.Ni),r=$APP.I(k,$APP.pi),v=$APP.I(k,$APP.Si),w=$APP.I(k,$APP.U),z=$APP.I(k,$APP.ai),A=$APP.I(k,$APP.bi),D=$APP.I(k,
4
+ $APP.Gi),G=$APP.I(k,$APP.sg),J=$APP.I(k,$APP.W),E=$APP.I(k,$APP.Yg);k=$APP.I(k,$APP.Pi);q=lu(q,0);E=lu(E,100);w=$APP.eg.h($APP.dg.h(lu(w,0),q),E);$APP.C.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.T.g(m):"1");G=typeof G==="string"&&$APP.yc(pu,G)?G:"md";r=$APP.K(r);A=$APP.K(A);v=$APP.K(v);var R=E>q?$APP.eg.h($APP.dg.h((w-q)/(E-q)*100,0),100):0;h=$APP.Xe([$APP.Ni,$APP.Vi,$APP.ai,$APP.U,$APP.Gi,qu,$APP.sg,$APP.Yg,$APP.W,$APP.Pi,$APP.Uh,$APP.V,ou,ru],[q,
5
+ A,typeof z==="string"&&$APP.O("",z)?z:null,w,typeof D==="string"&&$APP.O("",D)?D:null,v,G,E,typeof J==="string"&&$APP.O("",J)?J:null,typeof k==="string"&&$APP.O("",k)?k:null,typeof h==="string"&&$APP.O("",h)?h:null,r,m,R]);m=$APP.N(h);z=$APP.I(m,$APP.Uh);D=$APP.I(m,$APP.V);J=$APP.I(m,ou);k=$APP.I(m,ru);v=$APP.I(m,$APP.Ni);q=$APP.I(m,$APP.Vi);h=$APP.I(m,$APP.U);A=$APP.I(m,$APP.Gi);E=$APP.I(m,qu);r=$APP.I(m,$APP.sg);w=$APP.I(m,$APP.W);G=$APP.I(m,$APP.Yg);m=$APP.I(m,$APP.Pi);R=(R=w!=null)?R:E;c.setAttribute("data-size",
6
+ r);nu(a,"data-disabled",D);nu(a,"data-readonly",q);d.style.display=$APP.n(R)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(E)?""+$APP.T.g(h):"";g.style.display=$APP.n(E)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(k.toFixed(2))+"%");mu(b,"min",""+$APP.T.g(v));mu(b,"max",""+$APP.T.g(G));b.setAttribute("step",J);$APP.O(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));mu(b,"aria-valuemin",""+$APP.T.g(v));mu(b,"aria-valuemax",""+$APP.T.g(G));
7
+ mu(b,"aria-valuenow",""+$APP.T.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(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.T.g(h)):null}return null},tu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},uu=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;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 tu(a,"x-slider-input",
9
+ {value:c,min:d,max:e})}},vu=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=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 tu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.yc(wu,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},zu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return nu(this,
11
+ c,$APP.K(d))}})},Au=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?mu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Cu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Bu}});zu(b,"disabled","disabled");zu(b,"readOnly","readonly");zu(b,"showValue","show-value");Au(b,
12
+ "value","value");Au(b,"min","min");Au(b,"max","max");Au(b,"step","step");Au(b,"name","name");Au(b,"label","label");Au(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:#60a5fa;--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-focus-ring:#93c5fd;--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}";
13
+ e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}yu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
+ "input"),d=uu(this),e=vu(this),g=xu(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return su(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return su(this)};b.formDisabledCallback=function(c){nu(this,"disabled",$APP.K(c));return su(this)};b.formResetCallback=function(){mu(this,"value",""+$APP.T.g(0));return su(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",Cu())},qu=new $APP.M(null,"show-value?","show-value?",-1960833108),ru=new $APP.M(null,"fill-percent","fill-percent",-1813848228),ou=new $APP.M(null,"step","step",1288888124);var pu=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Bu="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
+ $APP.Xe([$APP.Ni,$APP.pi,$APP.wg,$APP.ai,$APP.U,$APP.sg,$APP.si,$APP.Yg,$APP.W,ou],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"readonly"],null),new $APP.Q(null,
17
+ 2,[$APP.Z,$APP.X,$APP.Hg,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"step"],null)]);$APP.sd(["x-slider-input",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.zh,$APP.Ni,$APP.zh,$APP.Yg,$APP.zh],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.zh,$APP.Ni,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);var wu=new $APP.S(null,new $APP.Q(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ja("baredom.exports.x_slider.init",Du);export const init=Du;
package/dist/x-spacer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tv=function(a){return a!=null&&$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},zv=function(a){var b=new $APP.Q(null,3,[$APP.fi,a.getAttribute("size"),uv,a.getAttribute("axis"),vv,a.getAttribute("grow")],null);b=$APP.N(b);var c=$APP.J(b,$APP.fi),d=$APP.J(b,uv);b=$APP.J(b,vv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Cc(wv,d)?d:"vertical";b=new $APP.Q(null,3,[$APP.Ag,c,xv,d,yv,tv(b)],null);c=$APP.N(b);b=$APP.J(c,$APP.Ag);
3
- d=$APP.J(c,xv);c=$APP.J(c,yv);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},Av=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Bv=function(a){Object.defineProperty(a,
4
- "grow",{get:function(){return tv(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},Cv=function(a){Av(a,"size","1rem");Av(a,"axis","vertical");Bv(a)},Ev=function(){var a=class extends HTMLElement{};a.observedAttributes=Dv;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
- b.appendChild(c);this.__xSpacerRefs={root:b}}zv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&zv(this);return null};Cv(a.prototype);return a},Fv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Ev());return null},xv=new $APP.M(null,"axis","axis",-1215390822),yv=new $APP.M(null,"grow?","grow?",2124334580),vv=new $APP.M(null,"grow-raw",
6
- "grow-raw",441172903),uv=new $APP.M(null,"axis-raw","axis-raw",291213231);var Dv=["size","axis","grow"],wv=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("baredom.exports.x_spacer.init",Fv);export const init=Fv;
2
+ var wv=function(a){return a!=null&&$APP.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Cv=function(a){var b=new $APP.Q(null,3,[$APP.$h,a.getAttribute("size"),xv,a.getAttribute("axis"),yv,a.getAttribute("grow")],null);b=$APP.N(b);var c=$APP.I(b,$APP.$h),d=$APP.I(b,xv);b=$APP.I(b,yv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.yc(zv,d)?d:"vertical";b=new $APP.Q(null,3,[$APP.sg,c,Av,d,Bv,wv(b)],null);c=$APP.N(b);b=$APP.I(c,$APP.sg);
3
+ d=$APP.I(c,Av);c=$APP.I(c,Bv);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},Dv=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Ev=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return wv(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},Fv=function(a){Dv(a,"size","1rem");Dv(a,"axis","vertical");Ev(a)},Hv=function(){var a=class extends HTMLElement{};a.observedAttributes=Gv;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
+ b.appendChild(c);this.__xSpacerRefs={root:b}}Cv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&Cv(this);return null};Fv(a.prototype);return a},Iv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Hv());return null},Av=new $APP.M(null,"axis","axis",-1215390822),Bv=new $APP.M(null,"grow?","grow?",2124334580),yv=new $APP.M(null,"grow-raw",
6
+ "grow-raw",441172903),xv=new $APP.M(null,"axis-raw","axis-raw",291213231);var Gv=["size","axis","grow"],zv=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null);$APP.ja("baredom.exports.x_spacer.init",Iv);export const init=Iv;
package/dist/x-spinner.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bG=function(a){var b=new $APP.Q(null,3,[$APP.Ag,a.getAttribute("size"),$APP.Vg,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.N(b),d=$APP.J(c,$APP.Ag);b=$APP.J(c,$APP.Vg);c=$APP.J(c,$APP.W);d=typeof d==="string"&&$APP.Cc($F,d)?d:"md";b=typeof b==="string"&&$APP.Cc(aG,b)?b:"default";c=typeof c==="string"&&$APP.O("",c.trim())?c.trim():"Loading";d=$APP.N(new $APP.Q(null,3,[$APP.Ag,d,$APP.Vg,b,$APP.W,c],null));b=$APP.J(d,$APP.Ag);c=$APP.J(d,$APP.Vg);d=$APP.J(d,$APP.W);
3
- a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},cG=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",
4
- ""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},eG=function(){var a=class extends HTMLElement{};a.observedAttributes=dG;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
2
+ var kG=function(a){var b=new $APP.Q(null,3,[$APP.sg,a.getAttribute("size"),$APP.Ng,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.N(b),d=$APP.I(c,$APP.sg);b=$APP.I(c,$APP.Ng);c=$APP.I(c,$APP.W);d=typeof d==="string"&&$APP.yc(iG,d)?d:"md";b=typeof b==="string"&&$APP.yc(jG,b)?b:"default";c=typeof c==="string"&&$APP.O("",c.trim())?c.trim():"Loading";d=$APP.N(new $APP.Q(null,3,[$APP.sg,d,$APP.Ng,b,$APP.W,c],null));b=$APP.I(d,$APP.sg);c=$APP.I(d,$APP.Ng);d=$APP.I(d,$APP.W);
3
+ a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},lG=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",
4
+ ""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},nG=function(){var a=class extends HTMLElement{};a.observedAttributes=mG;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
5
5
  c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:#3b82f6;}:host([data-variant\x3d'success']){--x-spinner-color:#22c55e;}:host([data-variant\x3d'warning']){--x-spinner-color:#f59e0b;}:host([data-variant\x3d'danger']){--x-spinner-color:#ef4444;}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
6
- d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}bG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&bG(this);return null};cG(a.prototype);return a},fG=function(){$APP.n(customElements.get("x-spinner"))||
7
- customElements.define("x-spinner",eG());return null};var dG=["size","variant","label"],$F=new $APP.S(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),aG=new $APP.S(null,new $APP.Q(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ka("baredom.exports.x_spinner.init",fG);export const init=fG;
6
+ d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}kG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&kG(this);return null};lG(a.prototype);return a},oG=function(){$APP.n(customElements.get("x-spinner"))||
7
+ customElements.define("x-spinner",nG());return null};var mG=["size","variant","label"],iG=new $APP.S(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),jG=new $APP.S(null,new $APP.Q(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ja("baredom.exports.x_spinner.init",oG);export const init=oG;
package/dist/x-stat.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Dy=function(a,b,c){return $APP.Cc(b,a)?a:c},Ey=function(a){return $APP.n($APP.n(a)?$APP.O("",a):a)?a:null},Ny=function(a){var b=$APP.N(a),c=$APP.J(b,Fy),d=$APP.J(b,Gy),e=$APP.J(b,$APP.ci),g=$APP.J(b,$APP.Vg);a=$APP.J(b,$APP.U);var h=$APP.J(b,$APP.ki),k=$APP.J(b,$APP.Ag),m=$APP.J(b,$APP.Gh);b=$APP.J(b,$APP.W);g=Dy(g,Hy,"default");e=Dy(e,Iy,"start");k=Dy(k,Jy,"md");c=Dy(c,Ky,"normal");d=Dy(d,Ly,"neutral");m=$APP.K(m);return $APP.cf([Gy,$APP.ci,$APP.Vg,$APP.U,$APP.ki,$APP.Ag,$APP.Gh,$APP.W,My,Fy],
3
- [d,e,g,Ey(a),Ey(h),k,m,Ey(b),m?"true":null,c])},Oy=function(a){return $APP.cf([Gy,$APP.ci,$APP.Vg,$APP.U,$APP.ki,$APP.Ag,$APP.Gh,$APP.W,Fy],[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")])},Py=function(a,b){a.setAttribute("role","figure");var c=My.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
- $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},Qy=function(a,b){a.setAttribute("data-variant",$APP.Vg.g(b));a.setAttribute("data-align",$APP.ci.g(b));a.setAttribute("data-size",$APP.Ag.g(b));a.setAttribute("data-emphasis",Fy.g(b));a.setAttribute("data-trend",Gy.g(b));$APP.n($APP.Gh.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},Ry=function(a){var b=Ny(Oy(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
- g=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(Py(a,b),Qy(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.U.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.ki.g(b);return $APP.n(h)?h:""}()):null},Sy=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"),v=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),D=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");D.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(D);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}Ry(a);return a},Uy=function(){var a=class extends HTMLElement{};a.observedAttributes=Ty;a.prototype.connectedCallback=function(){return Sy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Ry(this):Sy(this)};return a},Vy=function(){return $APP.n(customElements.get("x-stat"))?null:
9
- customElements.define("x-stat",Uy())},Fy=new $APP.M(null,"emphasis","emphasis",293543451),My=new $APP.M(null,"aria-busy","aria-busy",793864247),Gy=new $APP.M(null,"trend","trend",54563841);var Ty="variant align size emphasis trend loading label value hint".split(" "),Hy=new $APP.S(null,new $APP.Q(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),Iy=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),Jy=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Ky=new $APP.S(null,new $APP.Q(null,2,["high",null,"normal",null],null),null),Ly=new $APP.S(null,new $APP.Q(null,3,["neutral",null,
10
- "up",null,"down",null],null),null);$APP.ka("baredom.exports.x_stat.init",Vy);export const init=Vy;
2
+ var Hy=function(a,b,c){return $APP.yc(b,a)?a:c},Iy=function(a){return $APP.n($APP.n(a)?$APP.O("",a):a)?a:null},Ry=function(a){var b=$APP.N(a),c=$APP.I(b,Jy),d=$APP.I(b,Ky),e=$APP.I(b,$APP.Xh),g=$APP.I(b,$APP.Ng);a=$APP.I(b,$APP.U);var h=$APP.I(b,$APP.ei),k=$APP.I(b,$APP.sg),m=$APP.I(b,$APP.Ah);b=$APP.I(b,$APP.W);g=Hy(g,Ly,"default");e=Hy(e,My,"start");k=Hy(k,Ny,"md");c=Hy(c,Oy,"normal");d=Hy(d,Py,"neutral");m=$APP.K(m);return $APP.Xe([Ky,$APP.Xh,$APP.Ng,$APP.U,$APP.ei,$APP.sg,$APP.Ah,$APP.W,Qy,Jy],
3
+ [d,e,g,Iy(a),Iy(h),k,m,Iy(b),m?"true":null,c])},Sy=function(a){return $APP.Xe([Ky,$APP.Xh,$APP.Ng,$APP.U,$APP.ei,$APP.sg,$APP.Ah,$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
+ $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.Ng.g(b));a.setAttribute("data-align",$APP.Xh.g(b));a.setAttribute("data-size",$APP.sg.g(b));a.setAttribute("data-emphasis",Jy.g(b));a.setAttribute("data-trend",Ky.g(b));$APP.n($APP.Ah.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
+ 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.U.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.ei.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"),v=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),D=document.createElement("slot"),G=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-stat-background:transparent;--x-stat-color:inherit;--x-stat-muted-color:rgba(0,0,0,0.55);--x-stat-border-color:transparent;--x-stat-radius:12px;--x-stat-padding:16px;--x-stat-gap:6px;--x-stat-label-color:var(--x-stat-muted-color);--x-stat-label-size:12px;--x-stat-value-color:var(--x-stat-color);--x-stat-value-size:20px;--x-stat-hint-color:var(--x-stat-muted-color);--x-stat-hint-size:12px;--x-stat-icon-color:var(--x-stat-color);--x-stat-positive-color:#16a34a;--x-stat-warning-color:#d97706;--x-stat-danger-color:#dc2626;--x-stat-transition-duration:120ms;--x-stat-transition-timing:ease;--x-stat-loading-opacity:0.6;}@media (prefers-color-scheme:dark){:host{--x-stat-muted-color:rgba(255,255,255,0.55);--x-stat-positive-color:#4ade80;--x-stat-warning-color:#fbbf24;--x-stat-danger-color:#f87171;}}:host([variant\x3d'positive']){--x-stat-value-color:var(--x-stat-positive-color);}:host([variant\x3d'warning']){--x-stat-value-color:var(--x-stat-warning-color);}:host([variant\x3d'danger']){--x-stat-value-color:var(--x-stat-danger-color);}:host([variant\x3d'subtle']){--x-stat-value-color:var(--x-stat-muted-color);}[part\x3dbase]{display:grid;gap:var(--x-stat-gap);padding:var(--x-stat-padding);border-radius:var(--x-stat-radius);background:var(--x-stat-background);border:1px solid var(--x-stat-border-color);color:var(--x-stat-color);transition:background var(--x-stat-transition-duration) var(--x-stat-transition-timing),border-color var(--x-stat-transition-duration) var(--x-stat-transition-timing),color var(--x-stat-transition-duration) var(--x-stat-transition-timing),opacity var(--x-stat-transition-duration) var(--x-stat-transition-timing);}[part\x3dbase][data-align\x3d'center']{text-align:center;}[part\x3dbase][data-align\x3d'end']{text-align:end;}[part\x3dbase][data-size\x3d'sm'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 0.8);}[part\x3dbase][data-size\x3d'lg'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 1.6);}[part\x3dbase][data-emphasis\x3d'high'] [part\x3dvalue]{font-weight:800;}[part\x3dicon]{flex:0 0 auto;color:var(--x-stat-icon-color);line-height:1;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dlabel]{font-size:var(--x-stat-label-size);color:var(--x-stat-label-color);}[part\x3dvalue]{font-weight:600;font-size:var(--x-stat-value-size);color:var(--x-stat-value-color);}[part\x3dhint]{font-size:var(--x-stat-hint-size);color:var(--x-stat-hint-color);}[part\x3dbase][data-loading\x3d'true']{opacity:var(--x-stat-loading-opacity);}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none;}}";
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");D.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(D);m.appendChild(v);g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(G);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},Xy=function(a,b){Object.defineProperty(a,b,{get:function(){var c=this.getAttribute(b);return $APP.n(c)?c:""},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Yy=function(a){Xy(a,"variant");Xy(a,"align");Xy(a,"size");Xy(a,"emphasis");Xy(a,
9
+ "trend");Xy(a,"label");Xy(a,"value");Xy(a,"hint");Object.defineProperty(a,"loading",{get:function(){return this.hasAttribute("loading")},set:function(b){return $APP.n(b)?this.setAttribute("loading",""):this.removeAttribute("loading")},enumerable:!0,configurable:!0})},$y=function(){var a=class extends HTMLElement{};a.observedAttributes=Zy;a.prototype.connectedCallback=function(){return Wy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Vy(this):
10
+ Wy(this)};Yy(a.prototype);return a},az=function(){return $APP.n(customElements.get("x-stat"))?null:customElements.define("x-stat",$y())},Jy=new $APP.M(null,"emphasis","emphasis",293543451),Qy=new $APP.M(null,"aria-busy","aria-busy",793864247),Ky=new $APP.M(null,"trend","trend",54563841);var Zy="variant align size emphasis trend loading label value hint".split(" "),Ly=new $APP.S(null,new $APP.Q(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),My=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),Ny=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Oy=new $APP.S(null,new $APP.Q(null,2,["high",null,"normal",null],null),null),Py=new $APP.S(null,new $APP.Q(null,3,["neutral",null,
11
+ "up",null,"down",null],null),null);
12
+ $APP.Xe([Ky,$APP.Xh,$APP.Ng,$APP.U,$APP.ei,$APP.sg,$APP.Ah,$APP.W,Jy],[new $APP.Q(null,4,[$APP.mh,"trend",$APP.Z,$APP.X,$APP.Sg,"neutral",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"align",$APP.Z,$APP.X,$APP.Sg,"start",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"variant",$APP.Z,$APP.X,$APP.Sg,"default",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"value",$APP.Z,$APP.X,$APP.Sg,"",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"hint",$APP.Z,$APP.X,$APP.Sg,"",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,
13
+ "size",$APP.Z,$APP.X,$APP.Sg,"md",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"loading",$APP.Z,$APP.Di,$APP.Sg,!1,$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"label",$APP.Z,$APP.X,$APP.Sg,"",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"emphasis",$APP.Z,$APP.X,$APP.Sg,"normal",$APP.Ug,!0],null)]);$APP.ja("baredom.exports.x_stat.init",az);export const init=az;
package/dist/x-stepper.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Qk=function(a){a=$APP.J(Ok,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Pk},Sk=function(a){a=$APP.J(Rk,a);return $APP.n(a)?a:"horizontal"},Vk=function(a){a=$APP.J(Tk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Uk},Xk=function(a){a=$APP.J(Wk,a);return $APP.n(a)?a:"md"},Yk=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},Zk=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.Ef(/^\d+$/,
3
- b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Md(function(d){return new $APP.Q(null,2,[$APP.W,"Step "+$APP.T.g(d),$APP.Dg,null],null)},$APP.Cf(1,a+1)):$APP.Ld;if($APP.n(function(){var d=$APP.O("",b);return d?b.startsWith("["):d}()))try{var c=JSON.parse(b);return $APP.n(Array.isArray(c))?$APP.Md(function(d){return new $APP.Q(null,2,[$APP.W,function(){var e=$APP.l(d,"label");return typeof e==="string"?e:""}(),$APP.Dg,function(){var e=$APP.l(d,"description");return typeof e==="string"?e:null}()],null)},
4
- $APP.gc(c)):$APP.Ld}catch(d){return $APP.Ld}else return $APP.Ld}else return $APP.Ld},$k=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
- d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.Q(null,2,[$APP.rh,b,$APP.pi,d],null);return $APP.l(a,"__xStepperRefs")},el=function(a){a=new $APP.Q(null,5,[al,a.getAttribute("steps"),bl,a.getAttribute("current"),$APP.ji,a.getAttribute("orientation"),$APP.fi,a.getAttribute("size"),$APP.V,a.hasAttribute("disabled")],null);var b=$APP.N(a),c=$APP.J(b,al);a=$APP.J(b,bl);var d=$APP.J(b,$APP.ji),e=$APP.J(b,$APP.fi);b=$APP.J(b,$APP.V);
6
- c=Zk(c);var g=$APP.B(c);return new $APP.Q(null,5,[cl,c,dl,g===0?0:$APP.kg.h(0,$APP.lg.h(Yk(a),g-1)),$APP.zh,Qk(d),$APP.Ag,Vk(e),$APP.V,$APP.K(b)],null)},fl=function(a,b,c){return"Step "+$APP.T.g(a+1)+": "+$APP.T.g(b)+" ("+$APP.T.g(function(){var d=c instanceof $APP.M?c.oa:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.T.g(d));}}())+")"},gl=function(a,b,c,d){var e=$APP.N(b);b=$APP.J(e,
7
- $APP.W);e=$APP.J(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.M?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.T.g(z));
8
- }}b=$APP.n(b)?b:"";g.setAttribute("part","step");g.setAttribute("role","listitem");g.setAttribute("data-index",""+$APP.T.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",fl(a,b,c));$APP.C.h(c,dl)?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.C.h(c,$APP.Oi)?"✓":""+$APP.T.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.O(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},il=
10
- function(a){var b=el(a);if($APP.O($APP.l(a,"__xStepperModel"),b)){b=$APP.N(b);var c=$APP.J(b,cl),d=$APP.J(b,dl),e=$APP.J(b,$APP.zh),g=$APP.J(b,$APP.Ag),h=$APP.J(b,$APP.V),k=$k(a);k=$APP.N(k);k=$APP.J(k,$APP.pi);a.setAttribute("data-orientation",Sk(e));a.setAttribute("data-size",Xk(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.Oi:$APP.C.h(r,d)?dl:hl;k.appendChild(gl(r,q,v,h));m+=1}else if(c=$APP.u(c))$APP.yc(c)?
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.Oi:$APP.C.h(e,d)?dl:hl,k.appendChild(gl(e,g,m,h)),c=$APP.y(c),e=null,g=0),m=0;else break;a.__xStepperModel=b}},kl=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:el(a);$APP.n($APP.V.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=dl.g(e),typeof d==="number"&&$APP.p(isNaN(d))&&$APP.O(d,
12
- e)&&(e=$APP.xg(new $APP.Q(null,2,[$APP.Lg,e,jl,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.T.g(d)))));return null}var c=$k(a);c=$APP.N(c);$APP.J(c,$APP.pi).addEventListener("click",b);$APP.ma(a,"__xStepperHandlers",{click:b})},ll=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&(c=$APP.pi.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?
13
- b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},ml=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.T.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return Yk(this.getAttribute("current"))},set:function(b){return b==null?this.removeAttribute("current"):this.setAttribute("current",
14
- ""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return Sk(Qk(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.T.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return Xk(Vk(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,
15
- configurable:!0});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,configurable:!0})},ol=function(){var a=class extends HTMLElement{};a.observedAttributes=nl;a.prototype.connectedCallback=function(){$k(this);ll(this);kl(this);il(this);return null};a.prototype.disconnectedCallback=function(){ll(this);return null};a.prototype.attributeChangedCallback=
16
- function(b,c,d){$APP.O(c,d)&&il(this);return null};ml(a.prototype);return a},pl=function(){$APP.n(customElements.get("x-stepper"))||customElements.define("x-stepper",ol());return null},hl=new $APP.M(null,"upcoming","upcoming",1873315471),dl=new $APP.M(null,"current","current",-1088038603),al=new $APP.M(null,"steps-raw","steps-raw",1741812533),Uk=new $APP.M(null,"md","md",707286655),ql=new $APP.M(null,"lg","lg",-80787836),Pk=new $APP.M(null,"horizontal","horizontal",2062109475),rl=new $APP.M(null,
17
- "vertical","vertical",718696748),sl=new $APP.M(null,"sm","sm",-1402575065),jl=new $APP.M(null,"to","to",192099007),cl=new $APP.M(null,"steps","steps",-128433302),bl=new $APP.M(null,"current-raw","current-raw",-1440665509);var nl=["steps","current","orientation","size","disabled"];$APP.wd(["x-stepper-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Lg,$APP.Fh,jl,$APP.Fh],null),$APP.ui,!0],null)]);var Ok=new $APP.Q(null,2,["horizontal",Pk,"vertical",rl],null),Rk=new $APP.Q(null,2,[Pk,"horizontal",rl,"vertical"],null),Tk=new $APP.Q(null,3,["sm",sl,"md",Uk,"lg",ql],null),Wk=new $APP.Q(null,3,[sl,"sm",Uk,"md",ql,"lg"],null);$APP.ka("baredom.exports.x_stepper.init",pl);export const init=pl;
2
+ var Ik=function(a,b){return new $APP.Wc(null,function(){if(a>0){var c=$APP.u(b);return c?$APP.Tc($APP.x(c),Ik(a-1,$APP.Jb(c))):null}return null},null)},Lk=function(a){a=$APP.I(Jk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Kk},Nk=function(a){a=$APP.I(Mk,a);return $APP.n(a)?a:"horizontal"},Qk=function(a){a=$APP.I(Ok,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Pk},Sk=function(a){a=$APP.I(Rk,a);return $APP.n(a)?a:"md"},Tk=function(a){return typeof a==="string"?(a=parseInt(a.trim(),
3
+ 10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},Uk=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.xf(/^\d+$/,b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Gd(function(g){return new $APP.Q(null,2,[$APP.W,"Step "+$APP.T.g(g),$APP.vg,null],null)},$APP.wf(1,a+1)):$APP.Fd;if($APP.n(function(){var g=$APP.O("",b);return g?b.startsWith("["):g}()))try{var c=JSON.parse(b);if($APP.n(Array.isArray(c))){var d=$APP.dc(c),e=$APP.B(d)>200?Ik(200,d):d;return $APP.Gd(function(g){return new $APP.Q(null,
4
+ 2,[$APP.W,function(){var h=$APP.l(g,"label");return typeof h==="string"?h:""}(),$APP.vg,function(){var h=$APP.l(g,"description");return typeof h==="string"?h:null}()],null)},e)}return $APP.Fd}catch(g){return $APP.Fd}else return $APP.Fd}else return $APP.Fd},Vk=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
+ d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.Q(null,2,[$APP.kh,b,$APP.ii,d],null);return $APP.l(a,"__xStepperRefs")},$k=function(a){a=new $APP.Q(null,5,[Wk,a.getAttribute("steps"),Xk,a.getAttribute("current"),$APP.di,a.getAttribute("orientation"),$APP.$h,a.getAttribute("size"),$APP.V,a.hasAttribute("disabled")],null);var b=$APP.N(a),c=$APP.I(b,Wk);a=$APP.I(b,Xk);var d=$APP.I(b,$APP.di),e=$APP.I(b,$APP.$h);b=$APP.I(b,$APP.V);
6
+ c=Uk(c);var g=$APP.B(c);return new $APP.Q(null,5,[Yk,c,Zk,g===0?0:$APP.dg.h(0,$APP.eg.h(Tk(a),g-1)),$APP.th,Lk(d),$APP.sg,Qk(e),$APP.V,$APP.K(b)],null)},al=function(a,b,c){return"Step "+$APP.T.g(a+1)+": "+$APP.T.g(b)+" ("+$APP.T.g(function(){var d=c instanceof $APP.M?c.na:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.T.g(d));}}())+")"},bl=function(a,b,c,d){var e=$APP.N(b);b=$APP.I(e,
7
+ $APP.W);e=$APP.I(e,$APP.vg);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.M?c.na: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.T.g(z));
8
+ }}b=$APP.n(b)?b:"";g.setAttribute("part","step");g.setAttribute("role","listitem");g.setAttribute("data-index",""+$APP.T.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",al(a,b,c));$APP.C.h(c,Zk)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");$APP.n(d)&&k.setAttribute("aria-disabled","true");m.setAttribute("part",
9
+ "step-number");m.setAttribute("aria-hidden","true");m.textContent=$APP.C.h(c,$APP.Ii)?"✓":""+$APP.T.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.O(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);
10
+ g.appendChild(r);return g},dl=function(a){var b=$k(a);if($APP.O($APP.l(a,"__xStepperModel"),b)){b=$APP.N(b);var c=$APP.I(b,Yk),d=$APP.I(b,Zk),e=$APP.I(b,$APP.th),g=$APP.I(b,$APP.sg),h=$APP.I(b,$APP.V),k=Vk(a);k=$APP.N(k);k=$APP.I(k,$APP.ii);a.setAttribute("data-orientation",Nk(e));a.setAttribute("data-size",Sk(g));k.innerHTML="";c=$APP.u($APP.yd($APP.hg,c));e=null;for(var m=g=0;;)if(m<g){var q=e.D(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var v=r<d?$APP.Ii:$APP.C.h(r,d)?Zk:cl;k.appendChild(bl(r,
11
+ q,v,h));m+=1}else if(c=$APP.u(c))$APP.uc(c)?(g=$APP.mb(c),c=$APP.nb(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.Ii:$APP.C.h(e,d)?Zk:cl,k.appendChild(bl(e,g,m,h)),c=$APP.y(c),e=null,g=0),m=0;else break;a.__xStepperModel=b}},fl=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:$k(a);$APP.n($APP.V.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=Zk.g(e),
12
+ typeof d==="number"&&$APP.p(isNaN(d))&&$APP.O(d,e)&&(e=$APP.pg(new $APP.Q(null,2,[$APP.Dg,e,el,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.T.g(d)))));return null}var c=Vk(a);c=$APP.N(c);$APP.I(c,$APP.ii).addEventListener("click",b);$APP.la(a,"__xStepperHandlers",{click:b})},gl=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&
13
+ (c=$APP.ii.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},hl=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.T.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return Tk(this.getAttribute("current"))},set:function(b){return b==null?
14
+ this.removeAttribute("current"):this.setAttribute("current",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return Nk(Lk(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.T.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return Sk(Qk(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",
15
+ ""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});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,configurable:!0})},jl=function(){var a=class extends HTMLElement{};a.observedAttributes=il;a.prototype.connectedCallback=function(){Vk(this);gl(this);fl(this);dl(this);return null};a.prototype.disconnectedCallback=function(){gl(this);
16
+ return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&dl(this);return null};hl(a.prototype);return a},kl=function(){$APP.n(customElements.get("x-stepper"))||customElements.define("x-stepper",jl());return null},cl=new $APP.M(null,"upcoming","upcoming",1873315471),Zk=new $APP.M(null,"current","current",-1088038603),Wk=new $APP.M(null,"steps-raw","steps-raw",1741812533),Pk=new $APP.M(null,"md","md",707286655),ll=new $APP.M(null,"lg","lg",-80787836),Kk=new $APP.M(null,"horizontal",
17
+ "horizontal",2062109475),ml=new $APP.M(null,"vertical","vertical",718696748),nl=new $APP.M(null,"sm","sm",-1402575065),el=new $APP.M(null,"to","to",192099007),Yk=new $APP.M(null,"steps","steps",-128433302),Xk=new $APP.M(null,"current-raw","current-raw",-1440665509);var il=["steps","current","orientation","size","disabled"];$APP.sd(["x-stepper-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Dg,$APP.zh,el,$APP.zh],null),$APP.ni,!0],null)]);var Jk=new $APP.Q(null,2,["horizontal",Kk,"vertical",ml],null),Mk=new $APP.Q(null,2,[Kk,"horizontal",ml,"vertical"],null),Ok=new $APP.Q(null,3,["sm",nl,"md",Pk,"lg",ll],null),Rk=new $APP.Q(null,3,[nl,"sm",Pk,"md",ll,"lg"],null);$APP.ja("baredom.exports.x_stepper.init",kl);export const init=kl;
package/dist/x-switch.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var SA=function(a,b,c){return a.setAttribute(b,c)},TA=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},UA=function(a){a=$APP.cf([$APP.Jh,$APP.Yh,$APP.Cg,$APP.Qg,$APP.Zh,$APP.ti,$APP.Ei,$APP.Ci,$APP.ii],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
- $APP.J(b,$APP.Ci);var c=$APP.J(b,$APP.ii),d=$APP.J(b,$APP.Jh),e=$APP.J(b,$APP.Yh),g=$APP.J(b,$APP.Cg),h=$APP.J(b,$APP.Qg),k=$APP.J(b,$APP.Zh),m=$APP.J(b,$APP.ti);b=$APP.J(b,$APP.Ei);k=$APP.K(k);g=$APP.K(g);return $APP.cf([$APP.ah,$APP.Wg,$APP.aj,$APP.ni,$APP.Ig,$APP.gi,$APP.U,$APP.Mi,$APP.Vi,$APP.$h,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},VA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=UA(a);var d=$APP.V.g(b),
4
- e=$APP.ni.g(b);SA(c,"aria-checked",$APP.Wg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");SA(c,"aria-required",$APP.n($APP.ah.g(b))?"true":"false");SA(c,"aria-readonly",$APP.n($APP.aj.g(b))?"true":"false");var g=$APP.$h.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Mi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Vi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");TA(a,"data-checked",e);TA(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.U.g(b):null):null}return null},WA=function(a){var b=UA(a),c=$APP.V.g(b),d=$APP.aj.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.ni.g(b);c=$APP.p(d);b=$APP.U.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
- cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?(TA(a,"checked",c),VA(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},XA=function(a){return function(){return WA(a)}},YA=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),WA(a)):null}},ZA=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
- $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},$A=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return TA(this,c,$APP.K(d))}})},aB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
- null&&$APP.O(d)?SA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},cB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return bB}});$A(b,"checked","checked");$A(b,"disabled","disabled");$A(b,"readOnly","readonly");$A(b,"required","required");aB(b,"name","name");aB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
2
+ var ZA=function(a,b,c){return a.setAttribute(b,c)},$A=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},aB=function(a){a=$APP.Xe([$APP.Dh,$APP.Sh,$APP.ug,$APP.Ig,$APP.Th,$APP.mi,$APP.yi,$APP.wi,$APP.ci],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
+ $APP.I(b,$APP.wi);var c=$APP.I(b,$APP.ci),d=$APP.I(b,$APP.Dh),e=$APP.I(b,$APP.Sh),g=$APP.I(b,$APP.ug),h=$APP.I(b,$APP.Ig),k=$APP.I(b,$APP.Th),m=$APP.I(b,$APP.mi);b=$APP.I(b,$APP.yi);k=$APP.K(k);g=$APP.K(g);return $APP.Xe([$APP.Tg,$APP.Og,$APP.Vi,$APP.hi,$APP.Ag,$APP.ai,$APP.U,$APP.Gi,$APP.Pi,$APP.Uh,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},bB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=aB(a);var d=$APP.V.g(b),
4
+ e=$APP.hi.g(b);ZA(c,"aria-checked",$APP.Og.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");ZA(c,"aria-required",$APP.n($APP.Tg.g(b))?"true":"false");ZA(c,"aria-readonly",$APP.n($APP.Vi.g(b))?"true":"false");var g=$APP.Uh.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Gi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Pi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$A(a,"data-checked",e);$A(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.U.g(b):null):null}return null},cB=function(a){var b=aB(a),c=$APP.V.g(b),d=$APP.Vi.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.hi.g(b);c=$APP.p(d);b=$APP.U.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
+ cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?($A(a,"checked",c),bB(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},dB=function(a){return function(){return cB(a)}},eB=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),cB(a)):null}},fB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
+ $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},gB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $A(this,c,$APP.K(d))}})},hB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
+ null&&$APP.O(d)?ZA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},jB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return iB}});gB(b,"checked","checked");gB(b,"disabled","disabled");gB(b,"readOnly","readonly");gB(b,"required","required");hB(b,"name","name");hB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
9
9
  e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:999px;--x-switch-track-bg:#d1d5db;--x-switch-track-bg-checked:#2563eb;--x-switch-thumb-bg:#ffffff;--x-switch-focus-ring:#60a5fa;--x-switch-disabled-opacity:0.45;--x-switch-transition:background 150ms ease,transform 150ms ease;}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:#4b5563;--x-switch-track-bg-checked:#3b82f6;--x-switch-thumb-bg:#f9fafb;--x-switch-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}ZA(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=XA(this),e=YA(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return VA(this)};b.disconnectedCallback=function(){return ZA(this)};b.attributeChangedCallback=function(){return VA(this)};b.formDisabledCallback=
12
- function(c){TA(this,"disabled",$APP.K(c));return VA(this)};b.formResetCallback=function(){this.removeAttribute("checked");return VA(this)};return a},dB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",cB())};var bB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-switch-change-request",new $APP.Q(null,2,[$APP.ui,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.Bg,$APP.Ji,$APP.ei,$APP.Ji],null)],null),"x-switch-change",new $APP.Q(null,2,[$APP.ui,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Qi,$APP.Ji],null)],null)]);$APP.ka("baredom.exports.x_switch.init",dB);export const init=dB;
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}fB(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=dB(this),e=eB(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return bB(this)};b.disconnectedCallback=function(){return fB(this)};b.attributeChangedCallback=function(){return bB(this)};b.formDisabledCallback=
12
+ function(c){$A(this,"disabled",$APP.K(c));return bB(this)};b.formResetCallback=function(){this.removeAttribute("checked");return bB(this)};return a},kB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",jB())};var iB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.sd(["x-switch-change-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.tg,$APP.Di,$APP.Zh,$APP.Di],null)],null),"x-switch-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Ki,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_switch.init",kB);export const init=kB;