@vanelsas/baredom 0.2.2-alpha → 0.2.3-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/base.js +164 -164
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -16
  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 -18
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +47 -43
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +9 -9
  15. package/dist/x-collapse.js +10 -10
  16. package/dist/x-command-palette.js +29 -29
  17. package/dist/x-container.js +5 -5
  18. package/dist/x-context-menu.js +19 -18
  19. package/dist/x-copy.js +21 -21
  20. package/dist/x-currency-field.js +19 -19
  21. package/dist/x-date-picker.js +33 -33
  22. package/dist/x-divider.js +9 -9
  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 +11 -11
  34. package/dist/x-notification-center.js +9 -9
  35. package/dist/x-pagination.js +16 -16
  36. package/dist/x-popover.js +11 -11
  37. package/dist/x-progress-circle.js +7 -7
  38. package/dist/x-progress.js +7 -7
  39. package/dist/x-radio.js +11 -11
  40. package/dist/x-search-field.js +14 -14
  41. package/dist/x-select.js +9 -9
  42. package/dist/x-sidebar.js +25 -25
  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 +7 -7
  48. package/dist/x-stepper.js +15 -15
  49. package/dist/x-switch.js +10 -10
  50. package/dist/x-tab.js +7 -7
  51. package/dist/x-table-cell.js +20 -20
  52. package/dist/x-table-row.js +10 -10
  53. package/dist/x-table.js +11 -11
  54. package/dist/x-tabs.js +11 -11
  55. package/dist/x-text-area.js +17 -17
  56. package/dist/x-timeline-item.js +20 -20
  57. package/dist/x-timeline.js +9 -9
  58. package/dist/x-toast.js +21 -21
  59. package/dist/x-toaster.js +8 -8
  60. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},jD=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.fh,a.getAttribute("max"),$APP.Wg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.$i,a.hasAttribute("show-value"),$APP.Ci,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.fh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Wg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.$i);
3
- c=$APP.I(c,$APP.Ci);d=gD(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(gD(e,0),0),d);g=typeof g==="string"&&$APP.Cc(hD,g)?g:"default";h=typeof h==="string"&&$APP.Cc(iD,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.bf([$APP.Wg,$APP.$i,$APP.T,$APP.Ag,$APP.Ci,$APP.Wi,$APP.fh,$APP.W,$APP.Yh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Yh);k=$APP.I(q,$APP.Wg);d=$APP.I(q,$APP.$i);
4
- h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);g=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));v.setAttribute("stroke-dashoffset",
2
+ var iD=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},lD=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.eh,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Yi,a.hasAttribute("show-value"),$APP.Ai,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.eh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Vg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Yi);
3
+ c=$APP.I(c,$APP.Ai);d=iD(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(iD(e,0),0),d);g=typeof g==="string"&&$APP.Cc(jD,g)?g:"default";h=typeof h==="string"&&$APP.Cc(kD,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.cf([$APP.Vg,$APP.Yi,$APP.T,$APP.Ag,$APP.Ai,$APP.Ui,$APP.eh,$APP.W,$APP.Wh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Wh);k=$APP.I(q,$APP.Vg);d=$APP.I(q,$APP.Yi);
4
+ h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Ui);g=$APP.I(q,$APP.Ai);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.eh);var r=$APP.l(a,"__xProgressCircleBase"),v=$APP.l(a,"__xProgressCircleFill"),w=$APP.l(a,"__xProgressCircleValueNode"),z=$APP.l(a,"__xProgressCircleCompleted"),A=$APP.p(g)&&h>=q,C=$APP.n(g)?75:100*(1-b/100);r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");v.setAttribute("stroke-dasharray",""+$APP.S.g(100));v.setAttribute("stroke-dashoffset",
5
5
  ""+$APP.S.g(C));w.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";w.style.display=$APP.n($APP.n(d)?$APP.p(g):d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));
6
- m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(z)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCircleCompleted=$APP.J(A)},kD=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=
6
+ m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");A&&$APP.p(z)&&a.dispatchEvent(new CustomEvent("x-progress-circle-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCircleCompleted=$APP.J(A)},mD=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=
7
7
  this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},set:function(b){return $APP.n(b)?
8
- this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},mD=function(){var a=class extends HTMLElement{};a.observedAttributes=lD;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg","circle"),
8
+ this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},oD=function(){var a=class extends HTMLElement{};a.observedAttributes=nD;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressCircleInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg","circle"),
9
9
  h=document.createElementNS("http://www.w3.org/2000/svg","circle"),k=document.createElement("div"),m=document.createElement("span");c.textContent=":host{display:inline-flex;color-scheme:light dark;box-sizing:border-box;--x-progress-circle-size:64px;--x-progress-circle-track-color:rgba(0,0,0,0.10);--x-progress-circle-fill-color:#3b82f6;--x-progress-circle-stroke-width:2.8;--x-progress-circle-value-color:rgba(0,0,0,0.50);--x-progress-circle-transition-duration:0.3s;}@media (prefers-color-scheme:dark){:host{--x-progress-circle-track-color:rgba(255,255,255,0.12);--x-progress-circle-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-circle-size:40px;}[part\x3dbase][data-size\x3d'md']{--x-progress-circle-size:64px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-circle-size:96px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-circle-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-circle-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-circle-fill-color:#ef4444;}[part\x3dbase]{position:relative;display:inline-flex;width:var(--x-progress-circle-size);height:var(--x-progress-circle-size);}[part\x3dsvg]{width:100%;height:100%;}[part\x3dtrack]{fill:none;stroke:var(--x-progress-circle-track-color);stroke-width:var(--x-progress-circle-stroke-width);}[part\x3dfill]{fill:none;stroke:var(--x-progress-circle-fill-color);stroke-width:var(--x-progress-circle-stroke-width);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset var(--x-progress-circle-transition-duration) ease;}[part\x3dcenter]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}[part\x3dvalue-text]{font-size:calc(var(--x-progress-circle-size) * 0.22);color:var(--x-progress-circle-value-color);font-weight:500;line-height:1;}@keyframes x-progress-circle-spin{from{transform:rotate(-90deg);}to{transform:rotate(270deg);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-circle-spin 1.2s linear infinite;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;}}";
10
10
  d.setAttribute("part","base");e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 36 36");e.setAttribute("aria-hidden","true");e.setAttribute("focusable","false");g.setAttribute("part","track");g.setAttribute("cx","18");g.setAttribute("cy","18");g.setAttribute("r","15.9155");h.setAttribute("part","fill");h.setAttribute("cx","18");h.setAttribute("cy","18");h.setAttribute("r","15.9155");k.setAttribute("part","center");m.setAttribute("part","value-text");e.appendChild(g);e.appendChild(h);k.appendChild(m);
11
- d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}jD(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xProgressCircleInit"))&&jD(this);return null};kD(a.prototype);return a},nD=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
- mD());return null};var hD=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),iD=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),lD="value max variant size label show-value indeterminate".split(" ");$APP.wd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.T,$APP.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",nD);export const init=nD;
11
+ d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressCircleBase=d;this.__xProgressCircleFill=h;this.__xProgressCircleValueNode=m;this.__xProgressCircleInit=!0}lD(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xProgressCircleInit"))&&lD(this);return null};mD(a.prototype);return a},pD=function(){$APP.n(customElements.get("x-progress-circle"))||customElements.define("x-progress-circle",
12
+ oD());return null};var jD=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),kD=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),nD="value max variant size label show-value indeterminate".split(" ");$APP.wd(["x-progress-circle-complete",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.T,$APP.Fh,$APP.eh,$APP.Fh],null)],null)]);$APP.ka("baredom.exports.x_progress_circle.init",pD);export const init=pD;
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var IH=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},LH=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.fh,a.getAttribute("max"),$APP.Wg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.$i,a.hasAttribute("show-value"),$APP.Ci,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.fh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Wg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.$i);
3
- c=$APP.I(c,$APP.Ci);d=IH(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(IH(e,0),0),d);g=typeof g==="string"&&$APP.Cc(JH,g)?g:"default";h=typeof h==="string"&&$APP.Cc(KH,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.bf([$APP.Wg,$APP.$i,$APP.T,$APP.Ag,$APP.Ci,$APP.Wi,$APP.fh,$APP.W,$APP.Yh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Yh);k=$APP.I(q,$APP.Wg);d=$APP.I(q,$APP.$i);
4
- h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Wi);g=$APP.I(q,$APP.Ci);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.fh);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var F=$APP.l(a,"__xProgressCompleted"),D=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
2
+ var JH=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},MH=function(a){var b=new $APP.P(null,7,[$APP.T,a.getAttribute("value"),$APP.eh,a.getAttribute("max"),$APP.Vg,a.getAttribute("variant"),$APP.Ag,a.getAttribute("size"),$APP.W,a.getAttribute("label"),$APP.Yi,a.hasAttribute("show-value"),$APP.Ai,a.hasAttribute("indeterminate")],null);var c=$APP.M(b),d=$APP.I(c,$APP.eh),e=$APP.I(c,$APP.T),g=$APP.I(c,$APP.Vg),h=$APP.I(c,$APP.Ag);b=$APP.I(c,$APP.W);var k=$APP.I(c,$APP.Yi);
3
+ c=$APP.I(c,$APP.Ai);d=JH(d,100);d=d>0?d:100;e=$APP.lg.h($APP.kg.h(JH(e,0),0),d);g=typeof g==="string"&&$APP.Cc(KH,g)?g:"default";h=typeof h==="string"&&$APP.Cc(LH,h)?h:"md";c=$APP.J(c);k=$APP.J(k);var m=c?50:$APP.lg.h($APP.kg.h(e/d*100,0),100);b=$APP.cf([$APP.Vg,$APP.Yi,$APP.T,$APP.Ag,$APP.Ai,$APP.Ui,$APP.eh,$APP.W,$APP.Wh],[g,k,e,h,c,c?"Loading…":""+$APP.S.g(Math.round(m))+"%",d,typeof b==="string"&&$APP.N("",b)?b:null,m]);var q=$APP.M(b);b=$APP.I(q,$APP.Wh);k=$APP.I(q,$APP.Vg);d=$APP.I(q,$APP.Yi);
4
+ h=$APP.I(q,$APP.T);c=$APP.I(q,$APP.Ag);e=$APP.I(q,$APP.Ui);g=$APP.I(q,$APP.Ai);m=$APP.I(q,$APP.W);q=$APP.I(q,$APP.eh);var r=$APP.l(a,"__xProgressBase"),v=$APP.l(a,"__xProgressHeader"),w=$APP.l(a,"__xProgressFill"),z=$APP.l(a,"__xProgressLabel"),A=$APP.l(a,"__xProgressValue");var C=(C=m!=null)?C:d;var F=$APP.l(a,"__xProgressCompleted"),D=$APP.p(g)&&h>=q;r.setAttribute("data-variant",k);r.setAttribute("data-size",c);r.setAttribute("data-indeterminate",$APP.n(g)?"true":"false");w.style.width=$APP.n(g)?
5
5
  "40%":""+$APP.S.g(b.toFixed(2))+"%";v.style.display=$APP.n(C)?"flex":"none";z.textContent=$APP.n(m)?m:"";z.style.display=m!=null?"":"none";A.textContent=$APP.n($APP.n(d)?$APP.p(g):d)?""+$APP.S.g(Math.round(b))+"%":"";A.style.display=$APP.n(d)?"":"none";a.setAttribute("role","progressbar");a.setAttribute("aria-valuemin","0");$APP.n(g)?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext",e)):(a.setAttribute("aria-valuenow",""+$APP.S.g(h)),a.setAttribute("aria-valuemax",
6
- ""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");D&&$APP.p(F)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.J(D)},MH=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,
6
+ ""+$APP.S.g(q)),a.setAttribute("aria-valuetext",e),a.removeAttribute("aria-busy"));m!=null?a.setAttribute("aria-label",m):a.removeAttribute("aria-label");D&&$APP.p(F)&&a.dispatchEvent(new CustomEvent("x-progress-complete",{bubbles:!0,composed:!0,detail:{value:h,max:q}}));a.__xProgressCompleted=$APP.J(D)},NH=function(a){Object.defineProperty(a,"value",{get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:"0"},set:function(b){return this.setAttribute("value",""+$APP.S.g(b))},enumerable:!0,
7
7
  configurable:!0});Object.defineProperty(a,"max",{get:function(){var b=this.getAttribute("max");return $APP.n(b)?b:"100"},set:function(b){return this.setAttribute("max",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"indeterminate",{get:function(){return this.hasAttribute("indeterminate")},set:function(b){return $APP.n(b)?this.setAttribute("indeterminate",""):this.removeAttribute("indeterminate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showValue",{get:function(){return this.hasAttribute("show-value")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},OH=function(){var a=class extends HTMLElement{};a.observedAttributes=NH;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),
8
+ set:function(b){return $APP.n(b)?this.setAttribute("show-value",""):this.removeAttribute("show-value")},enumerable:!0,configurable:!0})},PH=function(){var a=class extends HTMLElement{};a.observedAttributes=OH;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xProgressInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),
9
9
  m=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;box-sizing:border-box;--x-progress-border-radius:9999px;--x-progress-track-color:rgba(0,0,0,0.10);--x-progress-fill-color:#3b82f6;--x-progress-label-color:rgba(0,0,0,0.60);--x-progress-value-color:rgba(0,0,0,0.50);}@media (prefers-color-scheme:dark){:host{--x-progress-track-color:rgba(255,255,255,0.12);--x-progress-label-color:rgba(255,255,255,0.60);--x-progress-value-color:rgba(255,255,255,0.50);}}[part\x3dbase][data-size\x3d'sm']{--x-progress-height:4px;}[part\x3dbase][data-size\x3d'md']{--x-progress-height:8px;}[part\x3dbase][data-size\x3d'lg']{--x-progress-height:12px;}[part\x3dbase][data-variant\x3d'success']{--x-progress-fill-color:#22c55e;}[part\x3dbase][data-variant\x3d'warning']{--x-progress-fill-color:#f59e0b;}[part\x3dbase][data-variant\x3d'danger']{--x-progress-fill-color:#ef4444;}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-progress-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-progress-value-color);}[part\x3dtrack]{height:var(--x-progress-height,8px);border-radius:var(--x-progress-border-radius,9999px);background:var(--x-progress-track-color);overflow:hidden;position:relative;}[part\x3dfill]{height:100%;background:var(--x-progress-fill-color);border-radius:var(--x-progress-border-radius,9999px);transition:width 0.3s ease;width:0%;}@keyframes x-progress-indeterminate{0%{transform:translateX(-100%) scaleX(0.5);}50%{transform:translateX(60%) scaleX(0.8);}100%{transform:translateX(200%) scaleX(0.5);}}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:x-progress-indeterminate 1.5s ease infinite;width:40%;transform-origin:left center;}@media (prefers-reduced-motion:reduce){[part\x3dfill]{transition:none;}[part\x3dbase][data-indeterminate\x3d'true'] [part\x3dfill]{animation:none;width:50%;}}";
10
- d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}LH(this);return null};a.prototype.disconnectedCallback=
11
- function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xProgressInit"))&&LH(this);return null};MH(a.prototype);return a},PH=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",OH());return null};var JH=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),KH=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),NH="value max variant size label show-value indeterminate".split(" ");$APP.wd(["x-progress-complete",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.T,$APP.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("baredom.exports.x_progress.init",PH);export const init=PH;
10
+ d.setAttribute("part","base");e.setAttribute("part","header");g.setAttribute("part","label-text");h.setAttribute("part","value-text");k.setAttribute("part","track");m.setAttribute("part","fill");e.appendChild(g);e.appendChild(h);k.appendChild(m);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);this.__xProgressBase=d;this.__xProgressHeader=e;this.__xProgressFill=m;this.__xProgressLabel=g;this.__xProgressValue=h;this.__xProgressInit=!0}MH(this);return null};a.prototype.disconnectedCallback=
11
+ function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xProgressInit"))&&MH(this);return null};NH(a.prototype);return a},QH=function(){$APP.n(customElements.get("x-progress"))||customElements.define("x-progress",PH());return null};var KH=new $APP.R(null,new $APP.P(null,4,["success",null,"warning",null,"danger",null,"default",null],null),null),LH=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),OH="value max variant size label show-value indeterminate".split(" ");$APP.wd(["x-progress-complete",new $APP.P(null,1,[$APP.Y,new $APP.P(null,2,[$APP.T,$APP.Fh,$APP.eh,$APP.Fh],null)],null)]);$APP.ka("baredom.exports.x_progress.init",QH);export const init=QH;
package/dist/x-radio.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tn=function(a,b,c){return a.setAttribute(b,c)},un=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},vn=function(a){a=$APP.bf([$APP.Kh,$APP.$h,$APP.Cg,$APP.Rg,$APP.ai,$APP.vi,$APP.Gi,$APP.Ei,$APP.ki],[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.M(a);a=
3
- $APP.I(b,$APP.Ei);var c=$APP.I(b,$APP.ki),d=$APP.I(b,$APP.Kh),e=$APP.I(b,$APP.$h),g=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Rg),k=$APP.I(b,$APP.ai),m=$APP.I(b,$APP.vi);b=$APP.I(b,$APP.Gi);k=$APP.J(k);g=$APP.J(g);return $APP.bf([$APP.bh,$APP.Xg,$APP.cj,$APP.pi,$APP.Ig,$APP.ii,$APP.T,$APP.Oi,$APP.Xi,$APP.bi,$APP.U],[g,k?"true":"false",$APP.J(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},wn=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=vn(a);var d=$APP.U.g(b),
4
- e=$APP.pi.g(b);tn(c,"aria-checked",$APP.Xg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");tn(c,"aria-required",$APP.n($APP.bh.g(b))?"true":"false");tn(c,"aria-readonly",$APP.n($APP.cj.g(b))?"true":"false");var g=$APP.bi.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Oi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Xi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");un(a,"data-checked",e);un(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.T.g(b):null):null}return null},xn=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.E.h(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},yn=
6
- function(a){a=xn(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.l(e,"control"),d=$APP.n(b)?$APP.E.h(d,b)?0:-1:$APP.E.h(d,c)?0:-1,e.tabIndex=d):null})},zn=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},An=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
- {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},Bn=function(a){var b=vn(a),c=$APP.U.g(b),d=$APP.cj.g(b),e=$APP.pi.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.T.g(b);return zn(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),wn(a),xn(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),wn(g)):null}),yn(a),An(a,{value:b,checked:!0})):null},Cn=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
- $APP.l(a,"control").focus():null},Dn=function(a){return function(b){var c=b.key,d=xn(a),e=d.length,g=d.indexOf(a);if($APP.E.h(c," ")||$APP.E.h(c,"Enter"))return b.preventDefault(),Bn(a);if($APP.E.h(c,"ArrowDown")||$APP.E.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Qc(g+1,e)],Bn(b),Cn(b)}else if($APP.E.h(c,"ArrowUp")||$APP.E.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Qc(g-1,e)],Bn(b),Cn(b);return null}},En=function(a){return function(){return Bn(a)}},Fn=function(a){var b=
9
- $APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Gn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return un(this,c,$APP.J(d))}})},Hn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
- get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?tn(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Jn=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return In}});Gn(b,"checked","checked");Gn(b,"disabled","disabled");Gn(b,"readOnly","readonly");Gn(b,"required","required");Hn(b,"name","name");Hn(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,
2
+ var sn=function(a,b,c){return a.setAttribute(b,c)},tn=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},un=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.M(a);a=
3
+ $APP.I(b,$APP.Ci);var c=$APP.I(b,$APP.ii),d=$APP.I(b,$APP.Jh),e=$APP.I(b,$APP.Yh),g=$APP.I(b,$APP.Cg),h=$APP.I(b,$APP.Qg),k=$APP.I(b,$APP.Zh),m=$APP.I(b,$APP.ti);b=$APP.I(b,$APP.Ei);k=$APP.J(k);g=$APP.J(g);return $APP.cf([$APP.ah,$APP.Wg,$APP.aj,$APP.ni,$APP.Ig,$APP.gi,$APP.T,$APP.Mi,$APP.Vi,$APP.$h,$APP.U],[g,k?"true":"false",$APP.J(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},vn=function(a){var b=$APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=un(a);var d=$APP.U.g(b),
4
+ e=$APP.ni.g(b);sn(c,"aria-checked",$APP.Wg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");sn(c,"aria-required",$APP.n($APP.ah.g(b))?"true":"false");sn(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
+ $APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");tn(a,"data-checked",e);tn(a,"data-disabled",d);a=$APP.l(a,"__xRadioInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.T.g(b):null):null}return null},wn=function(a){var b=a.getAttribute("name"),c=$APP.n(a.form)?a.form:null;c=$APP.n(c)?c:document;if($APP.n($APP.n(b)?$APP.N(b,""):b)){var d=[];c.querySelectorAll("x-radio").forEach(function(e){return $APP.E.h(e.getAttribute("name"),b)?d.push(e):null});return d}return[a]},xn=
6
+ function(a){a=wn(a);var b=a.find(function(d){return d.hasAttribute("checked")}),c=a.length>0?a[0]:null;return a.forEach(function(d){var e=$APP.l(d,"__xRadioRefs");return $APP.n(e)?(e=$APP.l(e,"control"),d=$APP.n(b)?$APP.E.h(d,b)?0:-1:$APP.E.h(d,c)?0:-1,e.tabIndex=d):null})},yn=function(a,b){b=new CustomEvent("x-radio-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.p(b.defaultPrevented)},zn=function(a,b){return a.dispatchEvent(new CustomEvent("x-radio-change",
7
+ {detail:b,bubbles:!0,composed:!0,cancelable:!1}))},An=function(a){var b=un(a),c=$APP.U.g(b),d=$APP.aj.g(b),e=$APP.ni.g(b);if($APP.n($APP.n(c)?c:$APP.n(d)?d:e))return null;b=$APP.T.g(b);return yn(a,{value:b,previousChecked:!1,nextChecked:!0})?(a.setAttribute("checked",""),vn(a),wn(a).forEach(function(g){var h=$APP.N(g,a);return $APP.n(h?g.hasAttribute("checked"):h)?(g.removeAttribute("checked"),vn(g)):null}),xn(a),zn(a,{value:b,checked:!0})):null},Bn=function(a){a=$APP.l(a,"__xRadioRefs");return $APP.n(a)?
8
+ $APP.l(a,"control").focus():null},Cn=function(a){return function(b){var c=b.key,d=wn(a),e=d.length,g=d.indexOf(a);if($APP.E.h(c," ")||$APP.E.h(c,"Enter"))return b.preventDefault(),An(a);if($APP.E.h(c,"ArrowDown")||$APP.E.h(c,"ArrowRight")){if(b.preventDefault(),e>0)return b=d[$APP.Qc(g+1,e)],An(b),Bn(b)}else if($APP.E.h(c,"ArrowUp")||$APP.E.h(c,"ArrowLeft"))if(b.preventDefault(),e>0)return b=d[$APP.Qc(g-1,e)],An(b),Bn(b);return null}},Dn=function(a){return function(){return An(a)}},En=function(a){var b=
9
+ $APP.l(a,"__xRadioRefs");if($APP.n(b)){var c=$APP.l(a,"__xRadioHandlers");if($APP.n(c)){b=$APP.l(b,"control");a.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xRadioHandlers=null;return}}return null},Fn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return tn(this,c,$APP.J(d))}})},Gn=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
10
+ get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.N(d)?sn(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},In=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Hn}});Fn(b,"checked","checked");Fn(b,"disabled","disabled");Fn(b,"readOnly","readonly");Fn(b,"required","required");Gn(b,"name","name");Gn(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,
11
11
  "__xRadioRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-radio-size:16px;--x-radio-border-width:2px;--x-radio-border-color:#6b7280;--x-radio-bg:#ffffff;--x-radio-checked-color:#2563eb;--x-radio-dot-size:6px;--x-radio-focus-ring:#60a5fa;--x-radio-disabled-opacity:0.45;--x-radio-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-radio-border-color:#9ca3af;--x-radio-bg:#1f2937;--x-radio-checked-color:#3b82f6;--x-radio-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--x-radio-size);height:var(--x-radio-size);border:var(--x-radio-border-width) solid var(--x-radio-border-color);border-radius:50%;background:var(--x-radio-bg);transition:var(--x-radio-transition);cursor:pointer;flex-shrink:0;position:relative;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-radio-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-radio-focus-ring);}:host([data-checked]) [part\x3dcontrol]{border-color:var(--x-radio-checked-color);}[part\x3ddot]{display:block;width:var(--x-radio-dot-size);height:var(--x-radio-dot-size);border-radius:50%;background:var(--x-radio-checked-color);opacity:0;transition:opacity 100ms ease;}:host([data-checked]) [part\x3ddot]{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dcontrol]{transition:none;}[part\x3ddot]{transition:none;}}";
12
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}Fn(this);c=$APP.l(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=En(this),e=Dn(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
- g);wn(this);return yn(this)};b.disconnectedCallback=function(){return Fn(this)};b.attributeChangedCallback=function(){return wn(this)};b.formDisabledCallback=function(c){un(this,"disabled",$APP.J(c));return wn(this)};b.formResetCallback=function(){this.removeAttribute("checked");return wn(this)};return a},Kn=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",Jn())};var In="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-radio-change-request",new $APP.P(null,2,[$APP.wi,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Li,$APP.gi,$APP.Li],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Si,$APP.Li],null)],null)]);$APP.ka("baredom.exports.x_radio.init",Kn);export const init=Kn;
12
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","radio");g.setAttribute("part","dot");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xRadioRefs={root:c,control:e,dot:g};$APP.n(this.attachInternals)&&(this.__xRadioInternals=this.attachInternals())}En(this);c=$APP.l(this,"__xRadioRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=Dn(this),e=Cn(this),g={click:d,keydown:e},this.addEventListener("click",d),c.addEventListener("keydown",e),this.__xRadioHandlers=
13
+ g);vn(this);return xn(this)};b.disconnectedCallback=function(){return En(this)};b.attributeChangedCallback=function(){return vn(this)};b.formDisabledCallback=function(c){tn(this,"disabled",$APP.J(c));return vn(this)};b.formResetCallback=function(){this.removeAttribute("checked");return vn(this)};return a},Jn=function(){return $APP.n(customElements.get("x-radio"))?null:customElements.define("x-radio",In())};var Hn="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-radio-change-request",new $APP.P(null,2,[$APP.ui,!0,$APP.Y,new $APP.P(null,3,[$APP.T,$APP.X,$APP.Bg,$APP.Ji,$APP.ei,$APP.Ji],null)],null),"x-radio-change",new $APP.P(null,2,[$APP.ui,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.Qi,$APP.Ji],null)],null)]);$APP.ka("baredom.exports.x_radio.init",Jn);export const init=Jn;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ul=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},vl=function(a,b,c){a=$APP.E.h("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},wl=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.E.h(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},yl=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,
3
- "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Kh,a.getAttribute("name"),$APP.Gi,a.getAttribute("value"),$APP.wh,a.getAttribute("placeholder"),$APP.dh,a.getAttribute("label"),$APP.$h,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.ch,a.getAttribute("autocomplete")],null);var e=$APP.M(d),g=$APP.I(e,$APP.Kh),h=$APP.I(e,$APP.Gi),k=$APP.I(e,$APP.wh),m=$APP.I(e,$APP.dh),q=$APP.I(e,$APP.$h);d=$APP.I(e,$APP.Cg);e=$APP.I(e,$APP.ch);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
- k:"";m=$APP.n(m)?m:"";q=$APP.J(q);d=$APP.J(d);e=typeof e==="string"&&$APP.Cc(xl,e)?e:"off";d=new $APP.P(null,7,[$APP.ii,g,$APP.T,h,$APP.Di,k,$APP.W,m,$APP.U,q,$APP.bh,d,$APP.oi,e],null);c.name=$APP.ii.g(d);c.placeholder=$APP.Di.g(d);c.disabled=$APP.U.g(d);c.required=$APP.bh.g(d);c.autocomplete=$APP.oi.g(d);e=$APP.W.g(d);$APP.n($APP.n(e)?$APP.N(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.bh.g(d))?"true":"false";c.setAttribute("aria-required",d);vl(c,b,a);b=
5
- $APP.l(a,"__xSearchFieldInternals");return $APP.n(b)?wl(a,b,c):null}return null},zl=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.J(d)}))},Al=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.n(g)&&(g.setFormValue(d),wl(a,g,c));vl(c,b,a);return zl(a,"x-search-field-input",
6
- {name:e,value:d},!1)}return null}},Bl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),wl(a,e,b));return zl(a,"x-search-field-change",{name:d,value:c},!1)}return null}},Cl=function(a){return function(b){if($APP.E.h("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.l(b,"input").value;
7
- b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.E.h(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):zl(a,"x-search-field-search",{name:b,value:c},!0)}return null}},Dl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.l(a,
8
- "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),wl(a,e,c));vl(c,b,a);zl(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},El=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
- "click"));a.__xSearchFieldHandlers=null;return}}return null},Fl=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Gl=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ul(this,c,$APP.J(d))}})},Hl=function(a){Object.defineProperty(a,
10
- "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},Jl=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Il}});
11
- Hl(b);Fl(b,"name","name");Fl(b,"placeholder","placeholder");Fl(b,"label","label");Fl(b,"autocomplete","autocomplete");Gl(b,"disabled","disabled");Gl(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
2
+ var tl=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},ul=function(a,b,c){a=$APP.E.h("",a.value);c=c.hasAttribute("disabled");$APP.n(a?a:c)?b.classList.add("clear-hidden"):b.classList.remove("clear-hidden")},vl=function(a,b,c){a=a.hasAttribute("required");var d=c.value;return $APP.n($APP.n(a)?$APP.E.h(d,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},xl=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,
3
+ "input");b=$APP.l(b,"clear");var d=new $APP.P(null,7,[$APP.Jh,a.getAttribute("name"),$APP.Ei,a.getAttribute("value"),$APP.vh,a.getAttribute("placeholder"),$APP.ch,a.getAttribute("label"),$APP.Yh,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.bh,a.getAttribute("autocomplete")],null);var e=$APP.M(d),g=$APP.I(e,$APP.Jh),h=$APP.I(e,$APP.Ei),k=$APP.I(e,$APP.vh),m=$APP.I(e,$APP.ch),q=$APP.I(e,$APP.Yh);d=$APP.I(e,$APP.Cg);e=$APP.I(e,$APP.bh);g=$APP.n(g)?g:"";h=$APP.n(h)?h:"";k=$APP.n(k)?
4
+ k:"";m=$APP.n(m)?m:"";q=$APP.J(q);d=$APP.J(d);e=typeof e==="string"&&$APP.Cc(wl,e)?e:"off";d=new $APP.P(null,7,[$APP.gi,g,$APP.T,h,$APP.Bi,k,$APP.W,m,$APP.U,q,$APP.ah,d,$APP.mi,e],null);c.name=$APP.gi.g(d);c.placeholder=$APP.Bi.g(d);c.disabled=$APP.U.g(d);c.required=$APP.ah.g(d);c.autocomplete=$APP.mi.g(d);e=$APP.W.g(d);$APP.n($APP.n(e)?$APP.N(e,""):e)?c.setAttribute("aria-label",e):c.removeAttribute("aria-label");d=$APP.n($APP.ah.g(d))?"true":"false";c.setAttribute("aria-required",d);ul(c,b,a);b=
5
+ $APP.l(a,"__xSearchFieldInternals");return $APP.n(b)?vl(a,b,c):null}return null},yl=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:$APP.J(d)}))},zl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=c.value;var e=a.getAttribute("name");e=$APP.n(e)?e:"";var g=$APP.l(a,"__xSearchFieldInternals");$APP.n(g)&&(g.setFormValue(d),vl(a,g,c));ul(c,b,a);return yl(a,"x-search-field-input",
6
+ {name:e,value:d},!1)}return null}},Al=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(c),vl(a,e,b));return yl(a,"x-search-field-change",{name:d,value:c},!1)}return null}},Bl=function(a){return function(b){if($APP.E.h("Enter",b.key)&&(b.preventDefault(),b=$APP.l(a,"__xSearchFieldRefs"),$APP.n(b))){var c=$APP.l(b,"input").value;
7
+ b=function(){var d=a.getAttribute("name");return $APP.n(d)?d:""}();return $APP.n(function(){var d=a.hasAttribute("required");return $APP.n(d)?$APP.E.h(c,""):d}())?(b=$APP.l(a,"__xSearchFieldInternals"),$APP.n(b)?b.reportValidity():null):yl(a,"x-search-field-search",{name:b,value:c},!0)}return null}},Cl=function(a){return function(){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"clear");var d=a.getAttribute("name");d=$APP.n(d)?d:"";c.value="";var e=$APP.l(a,
8
+ "__xSearchFieldInternals");$APP.n(e)&&(e.setFormValue(""),vl(a,e,c));ul(c,b,a);yl(a,"x-search-field-clear",{name:d},!1);return c.focus()}return null}},Dl=function(a){var b=$APP.l(a,"__xSearchFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xSearchFieldHandlers");if($APP.n(c)){var d=$APP.l(b,"input");b=$APP.l(b,"clear");d.removeEventListener("input",$APP.l(c,"input"));d.removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("keydown",$APP.l(c,"keydown"));b.removeEventListener("click",$APP.l(c,
9
+ "click"));a.__xSearchFieldHandlers=null;return}}return null},El=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},Fl=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return tl(this,c,$APP.J(d))}})},Gl=function(a){Object.defineProperty(a,
10
+ "value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xSearchFieldRefs");if($APP.n(b))return $APP.l(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xSearchFieldRefs");return $APP.n(c)?$APP.l(c,"input").value=b:null}})},Il=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Hl}});
11
+ Gl(b);El(b,"name","name");El(b,"placeholder","placeholder");El(b,"label","label");El(b,"autocomplete","autocomplete");Fl(b,"disabled","disabled");Fl(b,"required","required");b.checkValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xSearchFieldInternals");return $APP.n(c)?c.reportValidity():!0};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSearchFieldRefs"))){if(!$APP.n(this.shadowRoot)){var c=
12
12
  this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("input"),k=document.createElement("button");d.textContent=":host{display:block;color-scheme:light dark;--x-search-field-bg:#ffffff;--x-search-field-color:#111827;--x-search-field-border:1px solid #d1d5db;--x-search-field-border-radius:6px;--x-search-field-focus-ring-color:#2563eb;--x-search-field-icon-color:#9ca3af;--x-search-field-clear-color:#9ca3af;--x-search-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-search-field-bg:#1f2937;--x-search-field-color:#f9fafb;--x-search-field-border:1px solid #4b5563;--x-search-field-focus-ring-color:#3b82f6;--x-search-field-icon-color:#6b7280;--x-search-field-clear-color:#6b7280;}}[part\x3dwrapper]{display:flex;align-items:center;position:relative;background:var(--x-search-field-bg);border:var(--x-search-field-border);border-radius:var(--x-search-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dwrapper]:focus-within{border-color:var(--x-search-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-search-field-focus-ring-color) 20%,transparent);}[part\x3dicon]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;color:var(--x-search-field-icon-color);pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.25rem;background:transparent;color:var(--x-search-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]::-webkit-search-cancel-button{-webkit-appearance:none;}[part\x3dinput]::-webkit-search-decoration{-webkit-appearance:none;}[part\x3dclear]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-right:2px;background:none;border:none;cursor:pointer;color:var(--x-search-field-clear-color);font-size:1.125rem;line-height:1;border-radius:4px;padding:0;}[part\x3dclear]:hover{color:var(--x-search-field-color);}.clear-hidden{display:none;}:host([disabled]) [part\x3dwrapper]{opacity:var(--x-search-field-disabled-opacity);cursor:not-allowed;}:host([disabled]) [part\x3dinput]{cursor:not-allowed;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
13
13
  e.setAttribute("part","wrapper");g.setAttribute("part","icon");g.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 24 24" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3ccircle cx\x3d"11" cy\x3d"11" r\x3d"8"/\x3e\x3cline x1\x3d"21" y1\x3d"21" x2\x3d"16.65" y2\x3d"16.65"/\x3e\x3c/svg\x3e';h.setAttribute("part","input");h.setAttribute("type","search");h.setAttribute("spellcheck",
14
- "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}El(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
- (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=Al(this),g=Bl(this),h=Cl(this),k=Dl(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return yl(this)};b.disconnectedCallback=function(){return El(this)};
16
- b.attributeChangedCallback=function(c,d,e){$APP.E.h(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return yl(this)};b.formDisabledCallback=function(c){ul(this,"disabled",$APP.J(c));return yl(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return yl(this)};
17
- return a},Kl=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Jl())};var Il="name value placeholder label disabled required autocomplete".split(" "),xl=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("baredom.exports.x_search_field.init",Kl);export const init=Kl;
14
+ "false");k.setAttribute("part","clear");k.setAttribute("type","button");k.setAttribute("aria-label","Clear search");k.textContent="×";k.classList.add("clear-hidden");e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xSearchFieldRefs={wrapper:e,icon:g,input:h,clear:k}}$APP.n(this.attachInternals)&&(this.__xSearchFieldInternals=this.attachInternals())}Dl(this);c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&(c=$APP.l(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&
15
+ (c.value=d));c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));d=$APP.l(this,"__xSearchFieldRefs");$APP.n(d)&&(c=$APP.l(d,"input"),d=$APP.l(d,"clear"),e=zl(this),g=Al(this),h=Bl(this),k=Cl(this),c.addEventListener("input",e),c.addEventListener("change",g),c.addEventListener("keydown",h),d.addEventListener("click",k),this.__xSearchFieldHandlers={input:e,change:g,keydown:h,click:k});return xl(this)};b.disconnectedCallback=function(){return Dl(this)};
16
+ b.attributeChangedCallback=function(c,d,e){$APP.E.h(c,"value")&&(c=$APP.l(this,"__xSearchFieldRefs"),$APP.n(c)&&(c=$APP.l(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return xl(this)};b.formDisabledCallback=function(c){tl(this,"disabled",$APP.J(c));return xl(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xSearchFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xSearchFieldInternals");$APP.n(c)&&c.setFormValue("");return xl(this)};
17
+ return a},Jl=function(){return $APP.n(customElements.get("x-search-field"))?null:customElements.define("x-search-field",Il())};var Hl="name value placeholder label disabled required autocomplete".split(" "),wl=new $APP.R(null,new $APP.P(null,2,["off",null,"on",null],null),null);$APP.ka("baredom.exports.x_search_field.init",Jl);export const init=Jl;
package/dist/x-select.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var az=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"wrapper"),d=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");a=new $APP.P(null,6,[$APP.$h,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.hi,a.getAttribute("size"),$APP.wh,a.getAttribute("placeholder"),$APP.Gi,a.getAttribute("value"),$APP.Kh,a.getAttribute("name")],null);var e=$APP.M(a);var g=$APP.I(e,$APP.$h);var h=$APP.I(e,$APP.Cg),k=$APP.I(e,$APP.hi);a=$APP.I(e,$APP.wh);var m=$APP.I(e,$APP.Gi);e=
3
- $APP.I(e,$APP.Kh);g=$APP.J(g);h=$APP.J(h);k=typeof k==="string"&&$APP.Cc($y,k)?k:"md";g=new $APP.P(null,6,[$APP.U,g,$APP.bh,h,$APP.Ag,k,$APP.Di,a,$APP.T,m,$APP.ii,e],null);a=$APP.U.g(g);m=$APP.bh.g(g);k=$APP.Ag.g(g);e=$APP.Di.g(g);h=$APP.T.g(g);g=$APP.ii.g(g);d.disabled=a;$APP.n(m)?d.setAttribute("required",""):d.removeAttribute("required");typeof g==="string"&&$APP.N(g,"")?d.setAttribute("name",g):d.removeAttribute("name");typeof e==="string"&&$APP.N(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=
4
- !0;d.value=$APP.n(h)?h:"";c.setAttribute("data-size",k);$APP.n(a)?c.setAttribute("data-disabled",""):c.removeAttribute("data-disabled");return g==null||$APP.E.h(g,"")?d.setAttribute("aria-label",$APP.n(e)?e:"select"):d.removeAttribute("aria-label")}return null},bz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);
5
- else break}d=$APP.u($APP.gc(b));b=null;for(g=e=0;;)if(g<e){var h=b.F(null,g),k=h.tagName.toLowerCase();($APP.E.h(k,"option")||$APP.E.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),b=e,e=$APP.B(e)):(b=$APP.x(d),e=b.tagName.toLowerCase(),($APP.E.h(e,"option")||$APP.E.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.y(d),b=null,e=0),g=0;else break;return az(a)}return null},cz=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");
6
- return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},dz=function(a){return function(){return bz(a)}},ez=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("slotchange",
7
- $APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},fz=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},gz=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",
8
- b)):b=this.removeAttribute("value");return b}})},iz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return hz}});fz(b,"disabled","disabled");fz(b,"required","required");gz(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),h=document.createElement("option"),k=document.createElement("span"),
2
+ var bz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"wrapper"),d=$APP.l(b,"select");b=$APP.l(b,"placeholder-opt");a=new $APP.P(null,6,[$APP.Yh,a.hasAttribute("disabled"),$APP.Cg,a.hasAttribute("required"),$APP.fi,a.getAttribute("size"),$APP.vh,a.getAttribute("placeholder"),$APP.Ei,a.getAttribute("value"),$APP.Jh,a.getAttribute("name")],null);var e=$APP.M(a);var g=$APP.I(e,$APP.Yh);var h=$APP.I(e,$APP.Cg),k=$APP.I(e,$APP.fi);a=$APP.I(e,$APP.vh);var m=$APP.I(e,$APP.Ei);e=
3
+ $APP.I(e,$APP.Jh);g=$APP.J(g);h=$APP.J(h);k=typeof k==="string"&&$APP.Cc(az,k)?k:"md";g=new $APP.P(null,6,[$APP.U,g,$APP.ah,h,$APP.Ag,k,$APP.Bi,a,$APP.T,m,$APP.gi,e],null);a=$APP.U.g(g);m=$APP.ah.g(g);k=$APP.Ag.g(g);e=$APP.Bi.g(g);h=$APP.T.g(g);g=$APP.gi.g(g);d.disabled=a;$APP.n(m)?d.setAttribute("required",""):d.removeAttribute("required");typeof g==="string"&&$APP.N(g,"")?d.setAttribute("name",g):d.removeAttribute("name");typeof e==="string"&&$APP.N(e,"")?(b.textContent=e,b.hidden=!1):b.hidden=
4
+ !0;d.value=$APP.n(h)?h:"";c.setAttribute("data-size",k);$APP.n(a)?c.setAttribute("data-disabled",""):c.removeAttribute("data-disabled");return g==null||$APP.E.h(g,"")?d.setAttribute("aria-label",$APP.n(e)?e:"select"):d.removeAttribute("aria-label")}return null},cz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(b,"select"),d=$APP.l(b,"placeholder-opt");for(b=$APP.l(b,"slot").assignedElements({flatten:!0});;){var e=c.lastChild,g=e;if($APP.n($APP.n(g)?e!==d:g))c.removeChild(e);
5
+ else break}d=$APP.u($APP.gc(b));b=null;for(g=e=0;;)if(g<e){var h=b.F(null,g),k=h.tagName.toLowerCase();($APP.E.h(k,"option")||$APP.E.h(k,"optgroup"))&&c.appendChild(h.cloneNode(!0));g+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),b=e,e=$APP.B(e)):(b=$APP.x(d),e=b.tagName.toLowerCase(),($APP.E.h(e,"option")||$APP.E.h(e,"optgroup"))&&c.appendChild(b.cloneNode(!0)),d=$APP.y(d),b=null,e=0),g=0;else break;return bz(a)}return null},dz=function(a){return function(){var b=$APP.l(a,"__xSelectRefs");
6
+ return $APP.n(b)?(b=$APP.l(b,"select"),a.dispatchEvent(new CustomEvent("select-change",{detail:{value:b.value,label:b.selectedOptions.length>0?b.selectedOptions[0].text:""},bubbles:!0,composed:!0,cancelable:!1}))):null}},ez=function(a){return function(){return cz(a)}},fz=function(a){var b=$APP.l(a,"__xSelectRefs");if($APP.n(b)){var c=$APP.l(a,"__xSelectHandlers");if($APP.n(c)){var d=$APP.l(b,"slot");$APP.l(b,"select").removeEventListener("change",$APP.l(c,"change"));d.removeEventListener("slotchange",
7
+ $APP.l(c,"slotchange"));a.__xSelectHandlers=null;return}}return null},gz=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},hz=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("value");return $APP.n(b)?b:null},set:function(b){b!=null&&$APP.N(b)?(b=""+$APP.S.g(b),b=this.setAttribute("value",
8
+ b)):b=this.removeAttribute("value");return b}})},jz=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return iz}});gz(b,"disabled","disabled");gz(b,"required","required");hz(b);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSelectRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("select"),h=document.createElement("option"),k=document.createElement("span"),
9
9
  m=document.createElement("slot");d.textContent=":host{display:inline-block;color-scheme:light dark;--x-select-height-sm:2rem;--x-select-height-md:2.5rem;--x-select-height-lg:3rem;--x-select-radius:0.5rem;--x-select-font-size-sm:0.75rem;--x-select-font-size-md:0.875rem;--x-select-font-size-lg:1rem;--x-select-padding-inline:0.75rem;--x-select-bg:#ffffff;--x-select-bg-disabled:#f8fafc;--x-select-fg:#0f172a;--x-select-fg-disabled:#94a3b8;--x-select-placeholder-fg:#94a3b8;--x-select-border:#cbd5e1;--x-select-border-hover:#94a3b8;--x-select-border-focus:#3b82f6;--x-select-chevron:#64748b;--x-select-focus-ring:#93c5fd;--x-select-shadow:0 1px 2px rgba(15,23,42,0.06);--x-select-transition-duration:140ms;}@media (prefers-color-scheme:dark){:host{--x-select-bg:#1f2937;--x-select-bg-disabled:#111827;--x-select-fg:#f1f5f9;--x-select-border:#374151;--x-select-border-hover:#4b5563;--x-select-border-focus:#60a5fa;--x-select-chevron:#94a3b8;}}[part\x3dwrapper]{position:relative;display:flex;align-items:stretch;height:var(--x-select-height-md);border:1px solid var(--x-select-border);border-radius:var(--x-select-radius);background:var(--x-select-bg);box-shadow:var(--x-select-shadow);transition:border-color var(--x-select-transition-duration) ease,box-shadow var(--x-select-transition-duration) ease;overflow:hidden;font-size:var(--x-select-font-size-md);}[part\x3dwrapper][data-size\x3dsm]{height:var(--x-select-height-sm);font-size:var(--x-select-font-size-sm);}[part\x3dwrapper][data-size\x3dlg]{height:var(--x-select-height-lg);font-size:var(--x-select-font-size-lg);}[part\x3dwrapper][data-disabled]{background:var(--x-select-bg-disabled);opacity:0.6;pointer-events:none;}[part\x3dwrapper]:hover:not([data-disabled]){border-color:var(--x-select-border-hover);}[part\x3dwrapper]:focus-within:not([data-disabled]){border-color:var(--x-select-border-focus);box-shadow:0 0 0 3px var(--x-select-focus-ring);}[part\x3dselect]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;background:transparent;border:none;outline:none;color:var(--x-select-fg);font-size:inherit;font-family:inherit;padding-inline:var(--x-select-padding-inline);padding-inline-end:calc(var(--x-select-padding-inline) + 1.75rem);cursor:pointer;width:100%;}[part\x3dselect]:disabled{color:var(--x-select-fg-disabled);cursor:default;}[part\x3dselect] option[data-placeholder]{color:var(--x-select-placeholder-fg);}[part\x3dchevron]{position:absolute;right:var(--x-select-padding-inline);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;color:var(--x-select-chevron);width:1rem;height:1rem;}slot{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dwrapper]{transition:none;}}";
10
10
  e.setAttribute("part","wrapper");g.setAttribute("part","select");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");h.setAttribute("data-placeholder","");h.setAttribute("value","");h.hidden=!0;h.disabled=!0;h.selected=!0;k.innerHTML='\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"2" stroke-linecap\x3d"round" stroke-linejoin\x3d"round" aria-hidden\x3d"true"\x3e\x3cpolyline points\x3d"4 6 8 10 12 6"/\x3e\x3c/svg\x3e';
11
- g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}ez(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=cz(this),g=dz(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);bz(this);return az(this)};b.disconnectedCallback=function(){return ez(this)};b.attributeChangedCallback=
12
- function(){return az(this)};return a},jz=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",iz())};var $y=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),hz="disabled required size placeholder value name".split(" ");$APP.wd(["select-change",new $APP.P(null,2,[$APP.wi,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_select.init",jz);export const init=jz;
11
+ g.appendChild(h);e.appendChild(g);e.appendChild(k);c.appendChild(d);c.appendChild(e);c.appendChild(m);this.__xSelectRefs={root:c,wrapper:e,select:g,"placeholder-opt":h,slot:m,chevron:k}}fz(this);c=$APP.l(this,"__xSelectRefs");$APP.n(c)&&(d=$APP.l(c,"slot"),e=dz(this),g=ez(this),h={change:e,slotchange:g},$APP.l(c,"select").addEventListener("change",e),d.addEventListener("slotchange",g),this.__xSelectHandlers=h);cz(this);return bz(this)};b.disconnectedCallback=function(){return fz(this)};b.attributeChangedCallback=
12
+ function(){return bz(this)};return a},kz=function(){return $APP.n(customElements.get("x-select"))?null:customElements.define("x-select",jz())};var az=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),iz="disabled required size placeholder value name".split(" ");$APP.wd(["select-change",new $APP.P(null,2,[$APP.ui,!1,$APP.Y,new $APP.P(null,2,[$APP.T,$APP.X,$APP.W,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_select.init",kz);export const init=kz;
package/dist/x-sidebar.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var eG=function(a){if(a!=null&&a.C!=null)a=a.C(a);else{var b=eG[$APP.da(a==null?null:a)];if(b!=null)a=b.g?b.g(a):b.call(null,a);else if(b=eG._,b!=null)a=b.g?b.g(a):b.call(null,a);else throw $APP.sa("IEmptyableCollection.-empty",a);}return a},fG=function(){},gG=function(){},hG=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(fG,a)):$APP.qa(fG,a))?eG(a):null},iG=function(a){return a==null?!1:a!=null?a.l&64||$APP.t===a.mb?!0:a.l?
3
- !1:$APP.qa(gG,a):$APP.qa(gG,a)},jG=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)},kG=function(){},lG=function(a,b){if(a!=null&&a.$b!=null)a=a.$b(a,b);else{var c=lG[$APP.da(a==null?null:a)];if(c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else if(c=lG._,c!=null)a=c.h?c.h(a,b):c.call(null,a,b);else throw $APP.sa("IEncodeClojure.-js-\x3eclj",a);}return a},nG=function(a){var b=$APP.gc([$APP.qi,!0]),c=$APP.M(b);c=$APP.I(c,$APP.qi);var d=$APP.n(c)?
4
- $APP.Of:$APP.ta;return function h(g){return(g!=null?$APP.t===g.rc||(g.Ub?0:$APP.qa(kG,g)):$APP.qa(kG,g))?lG(g,$APP.rd(mG,b)):iG(g)?$APP.Cf($APP.Id.h(h,g)):$APP.Zd(g)?new $APP.te(h($APP.Ma(g)),h($APP.Na(g))):$APP.sc(g)?$APP.Ae.m(hG(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
- oG=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},pG=function(a,b,c){a.dispatchEvent(new CustomEvent(b,$APP.xg(new $APP.P(null,3,[$APP.Y,c,$APP.Hi,!0,$APP.Ti,!0],null))))},rG=function(a,b){$APP.Cc(qG,b)&&pG(a,"dismiss",new $APP.P(null,1,[$APP.xh,b],null))},sG=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("hidden",b.visibility)&&a.offsetWidth>0&&a.offsetHeight>0},tG=function(a){var b=$APP.l(a,"_panel");$APP.n(b.hasAttribute("tabindex"))||
6
- (b.setAttribute("tabindex","-1"),a._panelTabindexAdded=!0);return b.focus()},uG=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},vG=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)?tG(a):null;a=document.activeElement;d=$APP.x(c);c=$APP.ic(c);var e=b.shiftKey;return $APP.n($APP.n(e)?$APP.E.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.E.h(a,c)?(b.preventDefault(),d.focus()):null},wG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
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.M(b);c=$APP.I(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.P(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.P(null,1,[$APP.wh,b],null))},uG=function(a){var b=window.getComputedStyle(a);return $APP.N("none",b.display)&&$APP.N("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.E.h(a,d):e)?(b.preventDefault(),c.focus()):$APP.p(e)&&$APP.E.h(a,c)?(b.preventDefault(),d.focus()):null},yG=function(a){if(!$APP.n($APP.l(a,"_root"))){var b=
8
8
  a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("aside"),g=document.createElement("div"),h=document.createElement("slot");c.textContent=":host { --x-sidebar-bg: Canvas; --x-sidebar-fg: CanvasText; --x-sidebar-border: color-mix(in srgb, currentColor 12%, transparent); --x-sidebar-backdrop: rgb(0 0 0 / 0.4); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.18); --x-sidebar-width: 18rem; --x-sidebar-collapsed-width: 4rem; --x-sidebar-duration: 180ms; --x-sidebar-easing: ease; display: block; position: relative;}:host([hidden]) { display: none; }.backdrop[hidden] { display: none; }.backdrop { position: fixed; inset: 0; background: var(--x-sidebar-backdrop); opacity: 0; z-index: 999; pointer-events: none; transition: opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}.backdrop[data-active\x3d'true'] { opacity: 1; pointer-events: auto;}.sidebar { position: relative; color: var(--x-sidebar-fg); block-size: 100%;}.panel { background: var(--x-sidebar-bg); color: var(--x-sidebar-fg); inline-size: var(--x-sidebar-width); min-block-size: 100%; overflow: hidden; box-shadow: var(--x-sidebar-shadow); will-change: transform, inline-size; transition: transform var(--x-sidebar-duration) var(--x-sidebar-easing), inline-size var(--x-sidebar-duration) var(--x-sidebar-easing), opacity var(--x-sidebar-duration) var(--x-sidebar-easing);}:host([data-effective-variant\x3d'docked']) .panel[data-collapsed\x3d'true'] { inline-size: var(--x-sidebar-collapsed-width);}:host([data-effective-variant\x3d'overlay']) .sidebar,:host([data-effective-variant\x3d'modal']) .sidebar { position: fixed; inset-block: 0; z-index: 1000; pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-open\x3d'true']) .sidebar,:host([data-effective-variant\x3d'modal'][data-open\x3d'true']) .sidebar { pointer-events: auto;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .sidebar { inset-inline-start: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .sidebar,:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .sidebar { inset-inline-end: 0;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'left']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'left']) .panel[data-open\x3d'false'] { transform: translateX(-100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay'][data-placement\x3d'right']) .panel[data-open\x3d'false'],:host([data-effective-variant\x3d'modal'][data-placement\x3d'right']) .panel[data-open\x3d'false'] { transform: translateX(100%); pointer-events: none;}:host([data-effective-variant\x3d'overlay']) .panel[data-open\x3d'true'],:host([data-effective-variant\x3d'modal']) .panel[data-open\x3d'true'] { transform: translateX(0); pointer-events: auto;}:host([data-reduced-motion\x3d'true']) .panel,:host([data-reduced-motion\x3d'true']) .backdrop { transition: none;}@media (prefers-color-scheme: dark) { :host { --x-sidebar-border: color-mix(in srgb, currentColor 20%, transparent); --x-sidebar-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }}";
9
- d.className="backdrop";d.setAttribute("part","backdrop");d.hidden=!0;e.className="sidebar";e.setAttribute("part","sidebar");g.className="panel";g.setAttribute("part","panel");g.appendChild(h);e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a._root=b;a._backdrop=d;a._sidebar=e;a._panel=g;a._slot=h}},SG=function(a){wG(a);var b=$APP.l(a,"_prevState");b=b==null?null:nG(b);b=$APP.n(b)?b:$APP.xd;var c=a.hasAttribute("open"),d=a.hasAttribute("collapsed"),e=a.getAttribute("placement"),
10
- g=a.getAttribute("variant"),h=a.getAttribute("breakpoint"),k=a.getAttribute("label"),m=window.innerWidth,q=window.matchMedia("(prefers-reduced-motion: reduce)");c=$APP.M(new $APP.P(null,8,[xG,c,yG,d,zG,e,AG,g,BG,h,CG,k,DG,m,EG,$APP.J(q.matches)],null));k=$APP.I(c,xG);h=$APP.I(c,yG);d=$APP.I(c,zG);e=$APP.I(c,AG);m=$APP.I(c,BG);q=$APP.I(c,CG);g=$APP.I(c,DG);c=$APP.I(c,EG);d=$APP.Cc(FG,d)?d:$APP.Ai.g(GG);e=$APP.Cc(HG,e)?e:$APP.Wg.g(GG);var r=$APP.Ph.g(GG);m=m==null?null:""+$APP.S.g(m);m=m==null?null:
11
- (0,$APP.dg)(m);$APP.u(m)?(m=Number(m),m=$APP.n(Number.isFinite(m))?m:r):m=r;q=q!=null?(0,$APP.dg)(q):null;q=$APP.u(q)?q:null;q=$APP.n(q)?q:$APP.W.g(GG);k=$APP.M(new $APP.P(null,1,[xG,k],null));k=$APP.I(k,xG);k=$APP.J(k);h=$APP.J(h);g=g<m?"modal":e;r=$APP.E.h(g,"modal");var v=$APP.E.h(g,"overlay"),w=$APP.E.h(g,"docked");c=$APP.bf([$APP.si,IG,JG,KG,$APP.Ph,LG,MG,NG,OG,$APP.W,$APP.Ai,PG,QG,RG],[k,g,!k,w&&h,m,w,h,e,k&&(r||v),q,d,$APP.J(c),r,v]);k=$APP.M(c);d=$APP.I(k,IG);e=$APP.I(k,$APP.Ai);g=$APP.I(k,
12
- $APP.si);h=$APP.I(k,KG);k=$APP.I(k,PG);a.setAttribute("data-effective-variant",d);a.setAttribute("data-placement",e);a.setAttribute("data-open",$APP.n(g)?"true":"false");a.setAttribute("data-collapsed",$APP.n(h)?"true":"false");a.setAttribute("data-reduced-motion",$APP.n(k)?"true":"false");d=QG.g(c);$APP.n(d)&&(d=$APP.si.g(c),$APP.n(d)&&(d=QG.g(b),d=$APP.n(d)?$APP.si.g(b):d,d=$APP.p(d)));$APP.n(d)?(d=$APP.be($APP.Kd(sG,$APP.gc($APP.l(a,"_panel").querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex\x3d'-1'])")))),
13
- a._restoreFocusTarget=document.activeElement,e=$APP.xg(d),a._tabbables=e,$APP.u(d)?$APP.x(d).focus():tG(a)):(d=QG.g(b),$APP.n(d)&&(d=$APP.si.g(b),$APP.n(d)&&(d=QG.g(c),d=$APP.n(d)?$APP.si.g(c):d,d=$APP.p(d))),$APP.n(d)&&uG(a));e=$APP.M(c);d=$APP.I(e,$APP.W);e=$APP.I(e,JG);g=$APP.l(a,"_sidebar");$APP.n(g)&&(g.setAttribute("role","navigation"),g.setAttribute("aria-label",d),g.setAttribute("aria-hidden",$APP.n(e)?"true":"false"));d=$APP.M(c);d=$APP.I(d,OG);e=$APP.l(a,"_backdrop");$APP.n(e)&&(e.setAttribute("data-active",
14
- $APP.n(d)?"true":"false"),e.hidden=$APP.p(d),e.inert!=null&&(e.inert=$APP.p(d)));h=$APP.M(c);d=$APP.I(h,$APP.si);e=$APP.I(h,$APP.Ai);g=$APP.I(h,IG);h=$APP.I(h,KG);k=$APP.l(a,"_panel");$APP.n(k)&&(k.setAttribute("data-open",$APP.n(d)?"true":"false"),k.setAttribute("data-placement",e),k.setAttribute("data-variant",g),k.setAttribute("data-collapsed",$APP.n(h)?"true":"false"));$APP.N($APP.si.g(b),$APP.si.g(c))&&(b=$APP.si.g(c),pG(a,"toggle",new $APP.P(null,1,[$APP.si,$APP.J(b)],null)));b=$APP.xg(c);a._prevState=
15
- b},TG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:nG(e)}(),d=$APP.l(a,"_backdrop");return $APP.n(function(){var e=QG.g(c);e=$APP.n(e)?e:RG.g(c);return $APP.n(e)?(e=$APP.si.g(c),$APP.n(e)?$APP.E.h(b.target,d):e):e}())?(rG(a,"backdrop"),oG(a,"open",!1)):null},UG=function(a,b){var c=function(){var e=$APP.l(a,"_prevState");return e==null?null:nG(e)}(),d=b.key;return $APP.n(function(){var e=QG.g(c);e=$APP.n(e)?e:RG.g(c);return $APP.n(e)?$APP.si.g(c):e}())?$APP.E.h(d,
16
- "Escape")?(b.preventDefault(),rG(a,"escape"),oG(a,"open",!1)):$APP.n(function(){var e=QG.g(c);return $APP.n(e)?$APP.E.h(d,"Tab"):e}())?vG(a,b):null:null},VG=function(a){$APP.n($APP.l(a,"_handlers"))||$APP.ma(a,"_handlers",{onBackdropClick:function(b){return TG(a,b)},onKeydown:function(b){return UG(a,b)},onResize:function(){return SG(a)}})},WG=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(b){return oG(this,"open",$APP.J(b))},enumerable:!0,
17
- configurable:!0})},XG=function(a){Object.defineProperty(a,"collapsed",{get:function(){return this.hasAttribute("collapsed")},set:function(b){return oG(this,"collapsed",$APP.J(b))},enumerable:!0,configurable:!0})},YG=function(){var a=Object.create(HTMLElement.prototype);$APP.ma(a,"connectedCallback",function(){wG(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,
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 SG(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 uG(this)});$APP.ma(a,"attributeChangedCallback",function(b,c,d){return $APP.N(c,d)?SG(this):null});WG(a);XG(a);return a},$G=function(){function a(){return Reflect.construct(HTMLElement,[],this.constructor)}if($APP.n(customElements.get("x-sidebar")))return null;var b=YG();a.prototype=b;Object.defineProperty(b,"constructor",{value:a});Object.setPrototypeOf(a,HTMLElement);a.observedAttributes=
20
- ZG;return customElements.define("x-sidebar",a)},aH=function(){return $G()};$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.O.prototype.C=$APP.ca(17,function(){return $APP.Ua($APP.Ld,this.s)});$APP.ce.prototype.C=$APP.ca(16,function(){return $APP.Lb});$APP.te.prototype.C=$APP.ca(15,function(){return null});$APP.ue.prototype.C=$APP.ca(14,function(){return $APP.Lb});$APP.P.prototype.C=$APP.ca(13,function(){return $APP.Ua($APP.xd,this.s)});$APP.Se.prototype.C=$APP.ca(12,function(){return $APP.Lb});$APP.We.prototype.C=$APP.ca(11,function(){return $APP.Lb});
22
- $APP.af.prototype.C=$APP.ca(10,function(){return $APP.Ua($APP.Ce,this.s)});$APP.gf.prototype.C=$APP.ca(9,function(){return $APP.Lb});$APP.hf.prototype.C=$APP.ca(8,function(){return null});$APP.jf.prototype.C=$APP.ca(7,function(){return null});$APP.kf.prototype.C=$APP.ca(6,function(){return new $APP.kf(this.Ca,null,0,this.s,0)});$APP.mf.prototype.C=$APP.ca(5,function(){return $APP.Lb});$APP.of.prototype.C=$APP.ca(4,function(){return $APP.Lb});
23
- $APP.R.prototype.C=$APP.ca(3,function(){return $APP.Ua($APP.rf,this.s)});$APP.uf.prototype.C=$APP.ca(2,function(){return new $APP.uf(this.s,eG(this.Ka),0)});$APP.yf.prototype.C=$APP.ca(1,function(){return $APP.Lb});$APP.zf.prototype.C=$APP.ca(0,function(){return $APP.Lb});var mG=function mG(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return mG.G(0<c.length?new $APP.Ib(c.slice(0),0,null):null)};
24
- mG.G=function(a){a=a instanceof $APP.Ib&&a.u===0?a.i:jG(a);var b=a.length;if(!$APP.Ac(b))throw Error(["Argument must be an integer: ",$APP.ta(b)].join(""));if((b&1)!==0)throw Error(["No value supplied for key: ",$APP.ta($APP.ic(a))].join(""));return $APP.wd(a)};mG.Y=0;mG.X=function(a){return this.G($APP.u(a))};
25
- var NG=new $APP.K(null,"declared-variant","declared-variant",-2054964950),bH=new $APP.K(null,"collapsed","collapsed",-628494523),DG=new $APP.K(null,"viewport-width","viewport-width",-1146235948),JG=new $APP.K(null,"aria-hidden","aria-hidden",399337029),EG=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),MG=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),BG=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),AG=new $APP.K(null,"variant-attr",
26
- "variant-attr",-1143729279),IG=new $APP.K(null,"effective-variant","effective-variant",-829495195),PG=new $APP.K(null,"reduced-motion","reduced-motion",79621277),OG=new $APP.K(null,"show-backdrop","show-backdrop",-532209910),LG=new $APP.K(null,"is-docked","is-docked",875310728),yG=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),QG=new $APP.K(null,"is-modal","is-modal",1610761086),zG=new $APP.K(null,"placement-attr","placement-attr",-1321967286),RG=new $APP.K(null,"is-overlay","is-overlay",
27
- 1953921119),CG=new $APP.K(null,"label-attr","label-attr",-571749887),xG=new $APP.K(null,"open-attr","open-attr",-1772289801),KG=new $APP.K(null,"collapsed-applied","collapsed-applied",-1696231706);var ZG="open collapsed placement variant breakpoint label".split(" "),FG=$APP.sf(["right","left"]),HG=$APP.sf(["overlay","docked","modal"]),qG=$APP.sf(["backdrop","escape"]),GG=new $APP.P(null,6,[$APP.Ai,"left",$APP.Wg,"docked",$APP.Ph,768,$APP.W,"Sidebar",$APP.si,!1,bH,!1],null);$APP.wd(["toggle",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.si,$APP.Li],null)],null),"dismiss",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.xh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",aH);export const init=aH;
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.M(new $APP.P(null,8,[zG,c,AG,d,BG,e,CG,g,DG,h,EG,k,FG,m,GG,$APP.J(q.matches)],null));k=$APP.I(c,zG);h=$APP.I(c,AG);d=$APP.I(c,BG);e=$APP.I(c,CG);m=$APP.I(c,DG);q=$APP.I(c,EG);g=$APP.I(c,FG);c=$APP.I(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.S.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.M(new $APP.P(null,1,[zG,k],null));k=$APP.I(k,zG);k=$APP.J(k);h=$APP.J(h);g=g<m?"modal":e;r=$APP.E.h(g,"modal");var v=$APP.E.h(g,"overlay"),w=$APP.E.h(g,"docked");c=$APP.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.J(c),r,v]);k=$APP.M(c);d=$APP.I(k,KG);e=$APP.I(k,$APP.yi);g=$APP.I(k,
12
+ $APP.qi);h=$APP.I(k,MG);k=$APP.I(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.M(c);d=$APP.I(e,$APP.W);e=$APP.I(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.M(c);d=$APP.I(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.M(c);d=$APP.I(h,$APP.qi);e=$APP.I(h,$APP.yi);g=$APP.I(h,KG);h=$APP.I(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.N($APP.qi.g(b),$APP.qi.g(c))&&(b=$APP.qi.g(c),rG(a,"toggle",new $APP.P(null,1,[$APP.qi,$APP.J(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.E.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.E.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.E.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.J(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.J(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.N(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.Gd.prototype.C=$APP.ca(18,function(){return $APP.Lb});
21
+ $APP.O.prototype.C=$APP.ca(17,function(){return $APP.Ua($APP.Ld,this.s)});$APP.ce.prototype.C=$APP.ca(16,function(){return $APP.Lb});$APP.ue.prototype.C=$APP.ca(15,function(){return null});$APP.ve.prototype.C=$APP.ca(14,function(){return $APP.Lb});$APP.P.prototype.C=$APP.ca(13,function(){return $APP.Ua($APP.xd,this.s)});$APP.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.R.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.K(null,"declared-variant","declared-variant",-2054964950),dH=new $APP.K(null,"collapsed","collapsed",-628494523),FG=new $APP.K(null,"viewport-width","viewport-width",-1146235948),LG=new $APP.K(null,"aria-hidden","aria-hidden",399337029),GG=new $APP.K(null,"prefers-reduced-motion","prefers-reduced-motion",-2023150975),OG=new $APP.K(null,"collapsed-requested","collapsed-requested",1573505800),DG=new $APP.K(null,"breakpoint-attr","breakpoint-attr",-250275627),CG=new $APP.K(null,"variant-attr",
26
+ "variant-attr",-1143729279),KG=new $APP.K(null,"effective-variant","effective-variant",-829495195),RG=new $APP.K(null,"reduced-motion","reduced-motion",79621277),QG=new $APP.K(null,"show-backdrop","show-backdrop",-532209910),NG=new $APP.K(null,"is-docked","is-docked",875310728),AG=new $APP.K(null,"collapsed-attr","collapsed-attr",-1535396832),SG=new $APP.K(null,"is-modal","is-modal",1610761086),BG=new $APP.K(null,"placement-attr","placement-attr",-1321967286),TG=new $APP.K(null,"is-overlay","is-overlay",
27
+ 1953921119),EG=new $APP.K(null,"label-attr","label-attr",-571749887),zG=new $APP.K(null,"open-attr","open-attr",-1772289801),MG=new $APP.K(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.P(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.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.qi,$APP.Ji],null)],null),"dismiss",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.wh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_sidebar.init",cH);export const init=cH;
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var kz=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},oz=function(a){var b=new $APP.P(null,4,[$APP.Wg,a.getAttribute("variant"),lz,a.getAttribute("animation"),$APP.Og,a.getAttribute("width"),$APP.Ki,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Wg),e=$APP.I(c,lz);b=$APP.I(c,$APP.Og);c=$APP.I(c,$APP.Ki);d=typeof d==="string"&&$APP.Cc(mz,d)?d:"rect";e=typeof e==="string"&&$APP.Cc(nz,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Wg,d,lz,e,$APP.Og,kz(b),$APP.Ki,kz(c)],null);d=
3
- $APP.M(b);b=$APP.I(d,$APP.Wg);e=$APP.I(d,lz);c=$APP.I(d,$APP.Og);d=$APP.I(d,$APP.Ki);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")},pz=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 lz=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},pz=function(a){var b=new $APP.P(null,4,[$APP.Vg,a.getAttribute("variant"),mz,a.getAttribute("animation"),$APP.Ng,a.getAttribute("width"),$APP.Ii,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.I(c,$APP.Vg),e=$APP.I(c,mz);b=$APP.I(c,$APP.Ng);c=$APP.I(c,$APP.Ii);d=typeof d==="string"&&$APP.Cc(nz,d)?d:"rect";e=typeof e==="string"&&$APP.Cc(oz,e)?e:"pulse";b=new $APP.P(null,4,[$APP.Vg,d,mz,e,$APP.Ng,lz(b),$APP.Ii,lz(c)],null);d=
3
+ $APP.M(b);b=$APP.I(d,$APP.Vg);e=$APP.I(d,mz);c=$APP.I(d,$APP.Ng);d=$APP.I(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")},qz=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.N("",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.N("",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.N("",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.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},rz=function(){var a=class extends HTMLElement{};a.observedAttributes=qz;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,
5
+ "string"&&$APP.N("",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.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},sz=function(){var a=class extends HTMLElement{};a.observedAttributes=rz;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}oz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&oz(this);return null};pz(a.prototype);return a},sz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",rz());return null},
8
- lz=new $APP.K(null,"animation","animation",-1248293244);var mz=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),nz=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),qz=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",sz);export const init=sz;
7
+ d.setAttribute("part","base");e.setAttribute("part","shimmer");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__xSkeletonBase=d;this.__xSkeletonInit=!0}pz(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.l(this,"__xSkeletonInit"))&&pz(this);return null};qz(a.prototype);return a},tz=function(){$APP.n(customElements.get("x-skeleton"))||customElements.define("x-skeleton",sz());return null},
8
+ mz=new $APP.K(null,"animation","animation",-1248293244);var nz=new $APP.R(null,new $APP.P(null,3,["text",null,"rect",null,"circle",null],null),null),oz=new $APP.R(null,new $APP.P(null,3,["none",null,"pulse",null,"wave",null],null),null),rz=["variant","animation","width","height"];$APP.ka("baredom.exports.x_skeleton.init",tz);export const init=tz;
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},nu=function(a,b,c){return a.setAttribute(b,c)},ou=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},tu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.bf([$APP.Vi,$APP.yi,$APP.$i,$APP.ii,$APP.T,$APP.ji,$APP.Oi,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,pu],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.bi);var m=$APP.I(k,pu),q=$APP.I(k,$APP.Vi),r=$APP.I(k,$APP.yi),v=$APP.I(k,$APP.$i),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.ii),A=$APP.I(k,$APP.ji),C=$APP.I(k,
4
- $APP.Oi),F=$APP.I(k,$APP.Ag),D=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.fh);k=$APP.I(k,$APP.Xi);q=mu(q,0);Q=mu(Q,100);w=$APP.lg.h($APP.kg.h(mu(w,0),q),Q);$APP.E.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(qu,F)?F:"md";r=$APP.J(r);A=$APP.J(A);v=$APP.J(v);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.bf([$APP.Vi,$APP.cj,$APP.ii,$APP.T,$APP.Oi,ru,$APP.Ag,$APP.fh,$APP.W,$APP.Xi,$APP.bi,$APP.U,pu,su],[q,
5
- A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,v,F,Q,typeof D==="string"&&$APP.N("",D)?D:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.bi);C=$APP.I(m,$APP.U);D=$APP.I(m,pu);k=$APP.I(m,su);v=$APP.I(m,$APP.Vi);q=$APP.I(m,$APP.cj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Oi);Q=$APP.I(m,ru);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.fh);m=$APP.I(m,$APP.Xi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
- r);ou(a,"data-disabled",C);ou(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(Q)?""+$APP.S.g(h):"";g.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");nu(b,"min",""+$APP.S.g(v));nu(b,"max",""+$APP.S.g(F));b.setAttribute("step",D);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));nu(b,"aria-valuemin",""+$APP.S.g(v));nu(b,"aria-valuemax",""+$APP.S.g(F));
7
- nu(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):w!=null?b.setAttribute("aria-label",w):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(C)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
- $APP.S.g(h)):null}return null},uu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},vu=function(a){return function(){var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return uu(a,"x-slider-input",{value:c,min:d,max:e})}},wu=function(a){return function(){var b=
9
- parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return uu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("disabled");return $APP.n($APP.n(c)?c:a.hasAttribute("readonly"))?(b.preventDefault(),b.stopPropagation()):null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=
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},zu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return ou(this,c,$APP.J(d))}})},Au=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.N(d)?nu(this,c,""+$APP.S.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,"value","value");Au(b,"min","min");Au(b,"max","max");Au(b,"step","step");Au(b,"name","name");
12
- 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=vu(this),e=wu(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 tu(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return tu(this)};b.formDisabledCallback=function(c){ou(this,"disabled",$APP.J(c));return tu(this)};b.formResetCallback=function(){nu(this,"value",""+$APP.S.g(0));return tu(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
15
- null:customElements.define("x-slider",Cu())},ru=new $APP.K(null,"show-value?","show-value?",-1960833108),su=new $APP.K(null,"fill-percent","fill-percent",-1813848228),pu=new $APP.K(null,"step","step",1288888124);var qu=new $APP.R(null,new $APP.P(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.bf([$APP.Vi,$APP.yi,$APP.Eg,$APP.ii,$APP.T,$APP.Ag,$APP.Bi,$APP.fh,$APP.W,pu],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"show-value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"size"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"readonly"],null),new $APP.P(null,
17
- 2,[$APP.Z,$APP.X,$APP.Qg,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"step"],null)]);$APP.wd(["x-slider-input",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Gh,$APP.Vi,$APP.Gh,$APP.fh,$APP.Gh],null)],null),"x-slider-change",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Gh,$APP.Vi,$APP.Gh,$APP.fh,$APP.Gh],null)],null)]);$APP.ka("baredom.exports.x_slider.init",Du);export const init=Du;
2
+ var nu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},ou=function(a,b,c){return a.setAttribute(b,c)},pu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},uu=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.T,$APP.hi,$APP.Mi,$APP.Ag,$APP.eh,$APP.W,$APP.Vi,$APP.$h,qu],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.M(h);h=$APP.I(k,$APP.$h);var m=$APP.I(k,qu),q=$APP.I(k,$APP.Ti),r=$APP.I(k,$APP.wi),v=$APP.I(k,$APP.Yi),w=$APP.I(k,$APP.T),z=$APP.I(k,$APP.gi),A=$APP.I(k,$APP.hi),C=$APP.I(k,
4
+ $APP.Mi),F=$APP.I(k,$APP.Ag),D=$APP.I(k,$APP.W),Q=$APP.I(k,$APP.eh);k=$APP.I(k,$APP.Vi);q=nu(q,0);Q=nu(Q,100);w=$APP.lg.h($APP.kg.h(nu(w,0),q),Q);$APP.E.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.S.g(m):"1");F=typeof F==="string"&&$APP.Cc(ru,F)?F:"md";r=$APP.J(r);A=$APP.J(A);v=$APP.J(v);var V=Q>q?$APP.lg.h($APP.kg.h((w-q)/(Q-q)*100,0),100):0;h=$APP.cf([$APP.Ti,$APP.aj,$APP.gi,$APP.T,$APP.Mi,su,$APP.Ag,$APP.eh,$APP.W,$APP.Vi,$APP.$h,$APP.U,qu,tu],[q,
5
+ A,typeof z==="string"&&$APP.N("",z)?z:null,w,typeof C==="string"&&$APP.N("",C)?C:null,v,F,Q,typeof D==="string"&&$APP.N("",D)?D:null,typeof k==="string"&&$APP.N("",k)?k:null,typeof h==="string"&&$APP.N("",h)?h:null,r,m,V]);m=$APP.M(h);z=$APP.I(m,$APP.$h);C=$APP.I(m,$APP.U);D=$APP.I(m,qu);k=$APP.I(m,tu);v=$APP.I(m,$APP.Ti);q=$APP.I(m,$APP.aj);h=$APP.I(m,$APP.T);A=$APP.I(m,$APP.Mi);Q=$APP.I(m,su);r=$APP.I(m,$APP.Ag);w=$APP.I(m,$APP.W);F=$APP.I(m,$APP.eh);m=$APP.I(m,$APP.Vi);V=(V=w!=null)?V:Q;c.setAttribute("data-size",
6
+ r);pu(a,"data-disabled",C);pu(a,"data-readonly",q);d.style.display=$APP.n(V)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(Q)?""+$APP.S.g(h):"";g.style.display=$APP.n(Q)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");ou(b,"min",""+$APP.S.g(v));ou(b,"max",""+$APP.S.g(F));b.setAttribute("step",D);$APP.N(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));ou(b,"aria-valuemin",""+$APP.S.g(v));ou(b,"aria-valuemax",""+$APP.S.g(F));
7
+ ou(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):w!=null?b.setAttribute("aria-label",w):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(C)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.S.g(h)):null}return null},vu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},wu=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 vu(a,"x-slider-input",{value:c,min:d,max:e})}},xu=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 vu(a,"x-slider-change",{value:b,min:c,max:d})}},yu=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}},zu=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},Au=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return pu(this,c,$APP.J(d))}})},Bu=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.N(d)?ou(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},Du=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Cu}});Au(b,"disabled","disabled");Au(b,"readOnly","readonly");Au(b,"showValue","show-value");Bu(b,"value","value");Bu(b,"min","min");Bu(b,"max","max");Bu(b,"step","step");Bu(b,"name","name");
12
+ Bu(b,"label","label");Bu(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())}zu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
+ "input"),d=wu(this),e=xu(this),g=yu(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return uu(this)};b.disconnectedCallback=function(){return zu(this)};b.attributeChangedCallback=function(){return uu(this)};b.formDisabledCallback=function(c){pu(this,"disabled",$APP.J(c));return uu(this)};b.formResetCallback=function(){ou(this,"value",""+$APP.S.g(0));return uu(this)};return a},Eu=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",Du())},su=new $APP.K(null,"show-value?","show-value?",-1960833108),tu=new $APP.K(null,"fill-percent","fill-percent",-1813848228),qu=new $APP.K(null,"step","step",1288888124);var ru=new $APP.R(null,new $APP.P(null,3,["md",null,"lg",null,"sm",null],null),null),Cu="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.T,$APP.Ag,$APP.zi,$APP.eh,$APP.W,qu],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pg,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"show-value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pg,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pg,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pg,"size"],null),new $APP.P(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"readonly"],null),new $APP.P(null,
17
+ 2,[$APP.Z,$APP.X,$APP.Pg,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pg,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pg,"step"],null)]);$APP.wd(["x-slider-input",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Fh,$APP.Ti,$APP.Fh,$APP.eh,$APP.Fh],null)],null),"x-slider-change",new $APP.P(null,1,[$APP.Y,new $APP.P(null,3,[$APP.T,$APP.Fh,$APP.Ti,$APP.Fh,$APP.eh,$APP.Fh],null)],null)]);$APP.ka("baredom.exports.x_slider.init",Eu);export const init=Eu;
package/dist/x-spacer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var wv=function(a){return a!=null&&$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},Cv=function(a){var b=new $APP.P(null,3,[$APP.hi,a.getAttribute("size"),xv,a.getAttribute("axis"),yv,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.I(b,$APP.hi),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.Cc(zv,d)?d:"vertical";b=new $APP.P(null,3,[$APP.Ag,c,Av,d,Bv,wv(b)],null);c=$APP.M(b);b=$APP.I(c,$APP.Ag);
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.S.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.N(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.K(null,"axis","axis",-1215390822),Bv=new $APP.K(null,"grow?","grow?",2124334580),yv=new $APP.K(null,"grow-raw",
6
- "grow-raw",441172903),xv=new $APP.K(null,"axis-raw","axis-raw",291213231);var Gv=["size","axis","grow"],zv=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("baredom.exports.x_spacer.init",Iv);export const init=Iv;
2
+ var xv=function(a){return a!=null&&$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},Dv=function(a){var b=new $APP.P(null,3,[$APP.fi,a.getAttribute("size"),yv,a.getAttribute("axis"),zv,a.getAttribute("grow")],null);b=$APP.M(b);var c=$APP.I(b,$APP.fi),d=$APP.I(b,yv);b=$APP.I(b,zv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.Cc(Av,d)?d:"vertical";b=new $APP.P(null,3,[$APP.Ag,c,Bv,d,Cv,xv(b)],null);c=$APP.M(b);b=$APP.I(c,$APP.Ag);
3
+ d=$APP.I(c,Bv);c=$APP.I(c,Cv);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")},Ev=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.S.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Fv=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return xv(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},Gv=function(a){Ev(a,"size","1rem");Ev(a,"axis","vertical");Fv(a)},Iv=function(){var a=class extends HTMLElement{};a.observedAttributes=Hv;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}}Dv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.N(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&Dv(this);return null};Gv(a.prototype);return a},Jv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Iv());return null},Bv=new $APP.K(null,"axis","axis",-1215390822),Cv=new $APP.K(null,"grow?","grow?",2124334580),zv=new $APP.K(null,"grow-raw",
6
+ "grow-raw",441172903),yv=new $APP.K(null,"axis-raw","axis-raw",291213231);var Hv=["size","axis","grow"],Av=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null);$APP.ka("baredom.exports.x_spacer.init",Jv);export const init=Jv;