@vanelsas/baredom 1.0.0 → 1.2.0

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 (71) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +14 -4
  3. package/dist/base.js +368 -349
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +14 -14
  9. package/dist/x-button.js +16 -16
  10. package/dist/x-cancel-dialogue.js +17 -17
  11. package/dist/x-card.js +7 -7
  12. package/dist/x-chart.js +46 -46
  13. package/dist/x-checkbox.js +11 -11
  14. package/dist/x-chip.js +8 -8
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +31 -31
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -20
  19. package/dist/x-copy.js +23 -23
  20. package/dist/x-currency-field.js +23 -23
  21. package/dist/x-date-picker.js +39 -39
  22. package/dist/x-divider.js +12 -12
  23. package/dist/x-drawer.js +12 -12
  24. package/dist/x-dropdown.js +10 -10
  25. package/dist/x-fieldset.js +6 -6
  26. package/dist/x-file-download.js +7 -7
  27. package/dist/x-form-field.js +17 -17
  28. package/dist/x-form.js +10 -10
  29. package/dist/x-gaussian-blur.js +33 -0
  30. package/dist/x-grid.js +7 -7
  31. package/dist/x-kinetic-typography.js +62 -0
  32. package/dist/x-menu-item.js +10 -10
  33. package/dist/x-menu.js +10 -10
  34. package/dist/x-modal.js +13 -13
  35. package/dist/x-navbar.js +13 -13
  36. package/dist/x-notification-center.js +10 -10
  37. package/dist/x-organic-divider.js +20 -0
  38. package/dist/x-organic-shape.js +15 -0
  39. package/dist/x-pagination.js +16 -16
  40. package/dist/x-popover.js +15 -15
  41. package/dist/x-progress-circle.js +10 -10
  42. package/dist/x-progress.js +11 -11
  43. package/dist/x-radio.js +11 -11
  44. package/dist/x-ripple-effect.js +14 -0
  45. package/dist/x-scroll-parallax.js +20 -0
  46. package/dist/x-scroll-stack.js +20 -0
  47. package/dist/x-scroll-story.js +38 -0
  48. package/dist/x-scroll-timeline.js +51 -0
  49. package/dist/x-scroll.js +43 -0
  50. package/dist/x-search-field.js +14 -14
  51. package/dist/x-select.js +9 -9
  52. package/dist/x-sidebar.js +16 -16
  53. package/dist/x-skeleton.js +6 -7
  54. package/dist/x-slider.js +16 -16
  55. package/dist/x-spacer.js +5 -5
  56. package/dist/x-spinner.js +5 -5
  57. package/dist/x-stat.js +11 -11
  58. package/dist/x-stepper.js +16 -16
  59. package/dist/x-switch.js +10 -10
  60. package/dist/x-tab.js +7 -7
  61. package/dist/x-table-cell.js +23 -23
  62. package/dist/x-table-row.js +10 -10
  63. package/dist/x-table.js +15 -15
  64. package/dist/x-tabs.js +11 -12
  65. package/dist/x-text-area.js +19 -19
  66. package/dist/x-timeline-item.js +24 -24
  67. package/dist/x-timeline.js +9 -9
  68. package/dist/x-toast.js +24 -24
  69. package/dist/x-toaster.js +8 -8
  70. package/dist/x-typography.js +11 -0
  71. package/package.json +47 -2
package/dist/x-slider.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lu=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},mu=function(a,b,c){return a.setAttribute(b,c)},nu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},su=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(b,"base"),d=$APP.l(b,"header"),e=$APP.l(b,"label"),g=$APP.l(b,"value");b=$APP.l(b,"input");var h=$APP.Xe([$APP.Ni,$APP.pi,$APP.Si,$APP.ai,$APP.U,$APP.bi,$APP.Gi,$APP.sg,$APP.Yg,$APP.W,$APP.Pi,$APP.Uh,ou],[a.getAttribute("min"),
3
- a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.N(h);h=$APP.I(k,$APP.Uh);var m=$APP.I(k,ou),q=$APP.I(k,$APP.Ni),r=$APP.I(k,$APP.pi),v=$APP.I(k,$APP.Si),w=$APP.I(k,$APP.U),z=$APP.I(k,$APP.ai),A=$APP.I(k,$APP.bi),D=$APP.I(k,
4
- $APP.Gi),G=$APP.I(k,$APP.sg),J=$APP.I(k,$APP.W),E=$APP.I(k,$APP.Yg);k=$APP.I(k,$APP.Pi);q=lu(q,0);E=lu(E,100);w=$APP.eg.h($APP.dg.h(lu(w,0),q),E);$APP.C.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.p(isNaN(m))&&m>0?""+$APP.T.g(m):"1");G=typeof G==="string"&&$APP.yc(pu,G)?G:"md";r=$APP.K(r);A=$APP.K(A);v=$APP.K(v);var R=E>q?$APP.eg.h($APP.dg.h((w-q)/(E-q)*100,0),100):0;h=$APP.Xe([$APP.Ni,$APP.Vi,$APP.ai,$APP.U,$APP.Gi,qu,$APP.sg,$APP.Yg,$APP.W,$APP.Pi,$APP.Uh,$APP.V,ou,ru],[q,
5
- A,typeof z==="string"&&$APP.O("",z)?z:null,w,typeof D==="string"&&$APP.O("",D)?D:null,v,G,E,typeof J==="string"&&$APP.O("",J)?J:null,typeof k==="string"&&$APP.O("",k)?k:null,typeof h==="string"&&$APP.O("",h)?h:null,r,m,R]);m=$APP.N(h);z=$APP.I(m,$APP.Uh);D=$APP.I(m,$APP.V);J=$APP.I(m,ou);k=$APP.I(m,ru);v=$APP.I(m,$APP.Ni);q=$APP.I(m,$APP.Vi);h=$APP.I(m,$APP.U);A=$APP.I(m,$APP.Gi);E=$APP.I(m,qu);r=$APP.I(m,$APP.sg);w=$APP.I(m,$APP.W);G=$APP.I(m,$APP.Yg);m=$APP.I(m,$APP.Pi);R=(R=w!=null)?R:E;c.setAttribute("data-size",
6
- r);nu(a,"data-disabled",D);nu(a,"data-readonly",q);d.style.display=$APP.n(R)?"flex":"none";e.textContent=$APP.n(w)?w:"";e.style.display=w!=null?"":"none";g.textContent=$APP.n(E)?""+$APP.T.g(h):"";g.style.display=$APP.n(E)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.T.g(k.toFixed(2))+"%");mu(b,"min",""+$APP.T.g(v));mu(b,"max",""+$APP.T.g(G));b.setAttribute("step",J);$APP.O(b.value,""+$APP.T.g(h))&&(b.value=""+$APP.T.g(h));mu(b,"aria-valuemin",""+$APP.T.g(v));mu(b,"aria-valuemax",""+$APP.T.g(G));
7
- mu(b,"aria-valuenow",""+$APP.T.g(h));b.setAttribute("aria-readonly",$APP.n(q)?"true":"false");$APP.n(z)?b.setAttribute("aria-label",z):w!=null?b.setAttribute("aria-label",w):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
- $APP.T.g(h)):null}return null},tu=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},uu=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return tu(a,"x-slider-input",
9
- {value:c,min:d,max:e})}},vu=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return tu(a,"x-slider-change",{value:b,min:c,max:d})}},xu=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.yc(wu,b.key):c;return $APP.n(c)?
10
- b.preventDefault():null}},yu=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},zu=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return nu(this,
11
- c,$APP.K(d))}})},Au=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?mu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Cu=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return Bu}});zu(b,"disabled","disabled");zu(b,"readOnly","readonly");zu(b,"showValue","show-value");Au(b,
12
- "value","value");Au(b,"min","min");Au(b,"max","max");Au(b,"step","step");Au(b,"name","name");Au(b,"label","label");Au(b,"size","size");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSliderRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("input");d.textContent=":host{display:block;color-scheme:light dark;--x-slider-track-color:rgba(0,0,0,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-thumb-shadow:0 1px 4px rgba(0,0,0,0.20);--x-slider-focus-ring:#60a5fa;--x-slider-disabled-opacity:0.45;--x-slider-label-color:rgba(0,0,0,0.60);--x-slider-value-color:rgba(0,0,0,0.50);--x-slider-radius:9999px;}@media (prefers-color-scheme:dark){:host{--x-slider-track-color:rgba(255,255,255,0.15);--x-slider-fill-color:#3b82f6;--x-slider-thumb-color:#ffffff;--x-slider-thumb-border:2px solid #3b82f6;--x-slider-focus-ring:#93c5fd;--x-slider-label-color:rgba(255,255,255,0.60);--x-slider-value-color:rgba(255,255,255,0.50);}}[part\x3dbase]{width:100%;box-sizing:border-box;}[part\x3dbase][data-size\x3dsm]{--_x-slider-track-h:4px;--_x-slider-thumb-sz:14px;}[part\x3dbase][data-size\x3dmd]{--_x-slider-track-h:6px;--_x-slider-thumb-sz:18px;}[part\x3dbase][data-size\x3dlg]{--_x-slider-track-h:8px;--_x-slider-thumb-sz:22px;}[part\x3dheader]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px;}[part\x3dlabel-text]{font-size:0.875rem;color:var(--x-slider-label-color);font-weight:500;}[part\x3dvalue-text]{font-size:0.8125rem;color:var(--x-slider-value-color);}[part\x3dinput]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:var(--_x-slider-thumb-sz,18px);cursor:pointer;margin:0;padding:0;background:transparent;outline:none;box-sizing:border-box;}[part\x3dinput]::-webkit-slider-runnable-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:linear-gradient(to right,var(--x-slider-fill-color) var(--_x-slider-fill,0%),var(--x-slider-track-color) var(--_x-slider-fill,0%));}[part\x3dinput]::-moz-range-track{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-track-color);border:none;}[part\x3dinput]::-moz-range-progress{height:var(--_x-slider-track-h,6px);border-radius:var(--x-slider-radius);background:var(--x-slider-fill-color);}[part\x3dinput]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);margin-top:calc(var(--_x-slider-track-h,6px)/2 - var(--_x-slider-thumb-sz,18px)/2);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]::-moz-range-thumb{width:var(--_x-slider-thumb-sz,18px);height:var(--_x-slider-thumb-sz,18px);border-radius:50%;background:var(--x-slider-thumb-color);border:var(--x-slider-thumb-border);box-shadow:var(--x-slider-thumb-shadow);cursor:pointer;transition:box-shadow 100ms ease;}[part\x3dinput]:focus-visible::-webkit-slider-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}[part\x3dinput]:focus-visible::-moz-range-thumb{box-shadow:var(--x-slider-thumb-shadow),0 0 0 3px var(--x-slider-focus-ring);}:host([data-disabled]) [part\x3dinput]{opacity:var(--x-slider-disabled-opacity);cursor:default;pointer-events:none;}:host([data-readonly]) [part\x3dinput]{pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]::-webkit-slider-thumb{transition:none;}[part\x3dinput]::-moz-range-thumb{transition:none;}}";
13
- e.setAttribute("part","base");g.setAttribute("part","header");h.setAttribute("part","label-text");k.setAttribute("part","value-text");m.setAttribute("part","input");m.setAttribute("type","range");g.appendChild(h);g.appendChild(k);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xSliderRefs={base:e,header:g,label:h,value:k,input:m};$APP.n(this.attachInternals)&&(this.__xSliderInternals=this.attachInternals())}yu(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
- "input"),d=uu(this),e=vu(this),g=xu(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return su(this)};b.disconnectedCallback=function(){return yu(this)};b.attributeChangedCallback=function(){return su(this)};b.formDisabledCallback=function(c){nu(this,"disabled",$APP.K(c));return su(this)};b.formResetCallback=function(){mu(this,"value",""+$APP.T.g(0));return su(this)};return a},Du=function(){return $APP.n(customElements.get("x-slider"))?
15
- null:customElements.define("x-slider",Cu())},qu=new $APP.M(null,"show-value?","show-value?",-1960833108),ru=new $APP.M(null,"fill-percent","fill-percent",-1813848228),ou=new $APP.M(null,"step","step",1288888124);var pu=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Bu="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
- $APP.Xe([$APP.Ni,$APP.pi,$APP.wg,$APP.ai,$APP.U,$APP.sg,$APP.si,$APP.Yg,$APP.W,ou],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"readonly"],null),new $APP.Q(null,
17
- 2,[$APP.Z,$APP.X,$APP.Hg,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"step"],null)]);$APP.sd(["x-slider-input",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.zh,$APP.Ni,$APP.zh,$APP.Yg,$APP.zh],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.zh,$APP.Ni,$APP.zh,$APP.Yg,$APP.zh],null)],null)]);var wu=new $APP.S(null,new $APP.Q(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ja("baredom.exports.x_slider.init",Du);export const init=Du;
2
+ var ay=function(a,b){return typeof a==="string"?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},by=function(a,b,c){return a.setAttribute(b,c)},cy=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},hy=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.gf([$APP.lk,$APP.Fj,$APP.rk,$APP.mj,$APP.si,$APP.nj,$APP.ek,$APP.Qg,$APP.Ih,$APP.W,$APP.ok,$APP.cj,dy],[a.getAttribute("min"),
3
+ a.hasAttribute("disabled"),a.hasAttribute("show-value"),a.getAttribute("name"),a.getAttribute("value"),a.hasAttribute("readonly"),a.getAttribute("aria-labelledby"),a.getAttribute("size"),a.getAttribute("max"),a.getAttribute("label"),a.getAttribute("aria-describedby"),a.getAttribute("aria-label"),a.getAttribute("step")]);var k=$APP.N(h);h=$APP.H(k,$APP.cj);var m=$APP.H(k,dy),p=$APP.H(k,$APP.lk),r=$APP.H(k,$APP.Fj),v=$APP.H(k,$APP.rk),x=$APP.H(k,$APP.si),y=$APP.H(k,$APP.mj),A=$APP.H(k,$APP.nj),D=$APP.H(k,
4
+ $APP.ek),G=$APP.H(k,$APP.Qg),I=$APP.H(k,$APP.W),F=$APP.H(k,$APP.Ih);k=$APP.H(k,$APP.ok);p=ay(p,0);F=ay(F,100);x=$APP.Bg.h($APP.Ag.h(ay(x,0),p),F);$APP.C.h(m,"any")?m="any":(m=typeof m==="string"?parseFloat(m):NaN,m=$APP.q(isNaN(m))&&m>0?""+$APP.S.g(m):"1");G=typeof G==="string"&&$APP.K(ey,G)?G:"md";r=$APP.J(r);A=$APP.J(A);v=$APP.J(v);var P=F>p?$APP.Bg.h($APP.Ag.h((x-p)/(F-p)*100,0),100):0;h=$APP.gf([$APP.lk,$APP.uk,$APP.mj,$APP.si,$APP.ek,fy,$APP.Qg,$APP.Ih,$APP.W,$APP.ok,$APP.cj,$APP.V,dy,gy],[p,
5
+ A,typeof y==="string"&&$APP.O("",y)?y:null,x,typeof D==="string"&&$APP.O("",D)?D:null,v,G,F,typeof I==="string"&&$APP.O("",I)?I:null,typeof k==="string"&&$APP.O("",k)?k:null,typeof h==="string"&&$APP.O("",h)?h:null,r,m,P]);m=$APP.N(h);y=$APP.H(m,$APP.cj);D=$APP.H(m,$APP.V);I=$APP.H(m,dy);k=$APP.H(m,gy);v=$APP.H(m,$APP.lk);p=$APP.H(m,$APP.uk);h=$APP.H(m,$APP.si);A=$APP.H(m,$APP.ek);F=$APP.H(m,fy);r=$APP.H(m,$APP.Qg);x=$APP.H(m,$APP.W);G=$APP.H(m,$APP.Ih);m=$APP.H(m,$APP.ok);P=(P=x!=null)?P:F;c.setAttribute("data-size",
6
+ r);cy(a,"data-disabled",D);cy(a,"data-readonly",p);d.style.display=$APP.n(P)?"flex":"none";e.textContent=$APP.n(x)?x:"";e.style.display=x!=null?"":"none";g.textContent=$APP.n(F)?""+$APP.S.g(h):"";g.style.display=$APP.n(F)?"":"none";a.style.setProperty("--_x-slider-fill",""+$APP.S.g(k.toFixed(2))+"%");by(b,"min",""+$APP.S.g(v));by(b,"max",""+$APP.S.g(G));b.setAttribute("step",I);$APP.O(b.value,""+$APP.S.g(h))&&(b.value=""+$APP.S.g(h));by(b,"aria-valuemin",""+$APP.S.g(v));by(b,"aria-valuemax",""+$APP.S.g(G));
7
+ by(b,"aria-valuenow",""+$APP.S.g(h));b.setAttribute("aria-readonly",$APP.n(p)?"true":"false");$APP.n(y)?b.setAttribute("aria-label",y):x!=null?b.setAttribute("aria-label",x):b.removeAttribute("aria-label");$APP.n(A)?b.setAttribute("aria-labelledby",A):b.removeAttribute("aria-labelledby");$APP.n(m)?b.setAttribute("aria-describedby",m):b.removeAttribute("aria-describedby");$APP.n(D)?b.setAttribute("disabled",""):b.removeAttribute("disabled");a=$APP.l(a,"__xSliderInternals");return $APP.n(a)?a.setFormValue(""+
8
+ $APP.S.g(h)):null}return null},iy=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},jy=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=$APP.l($APP.l(a,"__xSliderRefs"),"input").value,c=parseFloat(b),d=parseFloat(function(){var g=a.getAttribute("min");return $APP.n(g)?g:"0"}()),e=parseFloat(function(){var g=a.getAttribute("max");return $APP.n(g)?g:"100"}());a.setAttribute("value",b);return iy(a,"x-slider-input",
9
+ {value:c,min:d,max:e})}},ky=function(a){return function(){if($APP.n(a.hasAttribute("disabled")))return null;var b=parseFloat($APP.l($APP.l(a,"__xSliderRefs"),"input").value),c=parseFloat(function(){var e=a.getAttribute("min");return $APP.n(e)?e:"0"}()),d=parseFloat(function(){var e=a.getAttribute("max");return $APP.n(e)?e:"100"}());return iy(a,"x-slider-change",{value:b,min:c,max:d})}},my=function(a){return function(b){var c=a.hasAttribute("readonly");c=$APP.n(c)?$APP.K(ly,b.key):c;return $APP.n(c)?
10
+ b.preventDefault():null}},ny=function(a){var b=$APP.l(a,"__xSliderRefs");if($APP.n(b)){var c=$APP.l(a,"__xSliderHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSliderHandlers=null;return}}return null},oy=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return cy(this,
11
+ c,$APP.J(d))}})},py=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?by(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},ry=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return qy}});oy(b,"disabled","disabled");oy(b,"readOnly","readonly");oy(b,"showValue","show-value");py(b,
12
+ "value","value");py(b,"min","min");py(b,"max","max");py(b,"step","step");py(b,"name","name");py(b,"label","label");py(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())}ny(this);c=$APP.l(this,"__xSliderRefs");$APP.n(c)&&(c=$APP.l(c,
14
+ "input"),d=jy(this),e=ky(this),g=my(this),h={input:d,change:e,keydown:g},c.addEventListener("input",d),c.addEventListener("change",e),c.addEventListener("keydown",g),this.__xSliderHandlers=h);return hy(this)};b.disconnectedCallback=function(){return ny(this)};b.attributeChangedCallback=function(){return hy(this)};b.formDisabledCallback=function(c){cy(this,"disabled",$APP.J(c));return hy(this)};b.formResetCallback=function(){by(this,"value",""+$APP.S.g(0));return hy(this)};return a},sy=function(){return $APP.n(customElements.get("x-slider"))?
15
+ null:customElements.define("x-slider",ry())},fy=new $APP.M(null,"show-value?","show-value?",-1960833108),gy=new $APP.M(null,"fill-percent","fill-percent",-1813848228),dy=new $APP.M(null,"step","step",1288888124);var ey=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),qy="value min max step disabled readonly name label show-value size aria-label aria-labelledby aria-describedby".split(" ");
16
+ $APP.gf([$APP.lk,$APP.Fj,$APP.Vg,$APP.mj,$APP.si,$APP.Qg,$APP.Ij,$APP.Ih,$APP.W,dy],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"min"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"show-value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Yj,$APP.T,"readonly"],null),new $APP.Q(null,2,[$APP.Z,
17
+ $APP.X,$APP.T,"max"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"label"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.T,"step"],null)]);$APP.zd(["x-slider-input",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.si,$APP.U,$APP.lk,$APP.U,$APP.Ih,$APP.U],null)],null),"x-slider-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,3,[$APP.si,$APP.U,$APP.lk,$APP.U,$APP.Ih,$APP.U],null)],null)]);var ly=new $APP.R(null,new $APP.Q(null,8,["PageDown",null,"ArrowUp",null,"ArrowDown",null,"End",null,"ArrowRight",null,"ArrowLeft",null,"PageUp",null,"Home",null],null),null);$APP.ja("baredom.exports.x_slider.init",sy);export const init=sy;
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.O((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Cv=function(a){var b=new $APP.Q(null,3,[$APP.$h,a.getAttribute("size"),xv,a.getAttribute("axis"),yv,a.getAttribute("grow")],null);b=$APP.N(b);var c=$APP.I(b,$APP.$h),d=$APP.I(b,xv);b=$APP.I(b,yv);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.yc(zv,d)?d:"vertical";b=new $APP.Q(null,3,[$APP.sg,c,Av,d,Bv,wv(b)],null);c=$APP.N(b);b=$APP.I(c,$APP.sg);
3
- d=$APP.I(c,Av);c=$APP.I(c,Bv);var e=a.style;a.setAttribute("data-axis",d);a.setAttribute("data-grow",$APP.n(c)?"true":"false");e.setProperty("--x-spacer-size",b);a.setAttribute("role","none");a.setAttribute("aria-hidden","true")},Dv=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Ev=function(a){Object.defineProperty(a,
4
- "grow",{get:function(){return wv(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},Fv=function(a){Dv(a,"size","1rem");Dv(a,"axis","vertical");Ev(a)},Hv=function(){var a=class extends HTMLElement{};a.observedAttributes=Gv;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpacerRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent=":host{display:block;flex-shrink:0;height:var(--x-spacer-size,1rem);width:0;pointer-events:none;}:host([data-axis\x3d'horizontal']){height:0;width:var(--x-spacer-size,1rem);}:host([data-grow\x3d'true']){flex:1 0 var(--x-spacer-size,0px);height:0;width:0;}";
5
- b.appendChild(c);this.__xSpacerRefs={root:b}}Cv(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&Cv(this);return null};Fv(a.prototype);return a},Iv=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",Hv());return null},Av=new $APP.M(null,"axis","axis",-1215390822),Bv=new $APP.M(null,"grow?","grow?",2124334580),yv=new $APP.M(null,"grow-raw",
6
- "grow-raw",441172903),xv=new $APP.M(null,"axis-raw","axis-raw",291213231);var Gv=["size","axis","grow"],zv=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null);$APP.ja("baredom.exports.x_spacer.init",Iv);export const init=Iv;
2
+ var hB=function(a){return a!=null&&$APP.O((""+$APP.S.g(a)).trim().toLowerCase(),"false")},nB=function(a){var b=new $APP.Q(null,3,[$APP.lj,a.getAttribute("size"),iB,a.getAttribute("axis"),jB,a.getAttribute("grow")],null);b=$APP.N(b);var c=$APP.H(b,$APP.lj),d=$APP.H(b,iB);b=$APP.H(b,jB);c=typeof c==="string"&&c.trim().length>0?c.trim():"1rem";d=typeof d==="string"?d.trim().toLowerCase():null;d=$APP.K(kB,d)?d:"vertical";b=new $APP.Q(null,3,[$APP.Qg,c,lB,d,mB,hB(b)],null);c=$APP.N(b);b=$APP.H(c,$APP.Qg);
3
+ d=$APP.H(c,lB);c=$APP.H(c,mB);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")},oB=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})},pB=function(a){Object.defineProperty(a,
4
+ "grow",{get:function(){return hB(this.getAttribute("grow"))},set:function(b){return $APP.n(b)?this.setAttribute("grow",""):this.removeAttribute("grow")},enumerable:!0,configurable:!0})},qB=function(a){oB(a,"size","1rem");oB(a,"axis","vertical");pB(a)},sB=function(){var a=class extends HTMLElement{};a.observedAttributes=rB;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}}nB(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpacerRefs"):b)&&nB(this);return null};qB(a.prototype);return a},tB=function(){$APP.n(customElements.get("x-spacer"))||customElements.define("x-spacer",sB());return null},lB=new $APP.M(null,"axis","axis",-1215390822),mB=new $APP.M(null,"grow?","grow?",2124334580),jB=new $APP.M(null,"grow-raw",
6
+ "grow-raw",441172903),iB=new $APP.M(null,"axis-raw","axis-raw",291213231);var rB=["size","axis","grow"],kB=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null);$APP.ja("baredom.exports.x_spacer.init",tB);export const init=tB;
package/dist/x-spinner.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var kG=function(a){var b=new $APP.Q(null,3,[$APP.sg,a.getAttribute("size"),$APP.Ng,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.N(b),d=$APP.I(c,$APP.sg);b=$APP.I(c,$APP.Ng);c=$APP.I(c,$APP.W);d=typeof d==="string"&&$APP.yc(iG,d)?d:"md";b=typeof b==="string"&&$APP.yc(jG,b)?b:"default";c=typeof c==="string"&&$APP.O("",c.trim())?c.trim():"Loading";d=$APP.N(new $APP.Q(null,3,[$APP.sg,d,$APP.Ng,b,$APP.W,c],null));b=$APP.I(d,$APP.sg);c=$APP.I(d,$APP.Ng);d=$APP.I(d,$APP.W);
3
- a.setAttribute("data-size",b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},lG=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",
4
- ""+$APP.T.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},nG=function(){var a=class extends HTMLElement{};a.observedAttributes=mG;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
2
+ var cO=function(a){var b=new $APP.Q(null,3,[$APP.Qg,a.getAttribute("size"),$APP.th,a.getAttribute("variant"),$APP.W,a.getAttribute("label")],null);var c=$APP.N(b),d=$APP.H(c,$APP.Qg);b=$APP.H(c,$APP.th);c=$APP.H(c,$APP.W);d=typeof d==="string"&&$APP.K(aO,d)?d:"md";b=typeof b==="string"&&$APP.K(bO,b)?b:"default";c=typeof c==="string"&&$APP.O("",c.trim())?c.trim():"Loading";d=$APP.N(new $APP.Q(null,3,[$APP.Qg,d,$APP.th,b,$APP.W,c],null));b=$APP.H(d,$APP.Qg);c=$APP.H(d,$APP.th);d=$APP.H(d,$APP.W);a.setAttribute("data-size",
3
+ b);a.setAttribute("data-variant",c);a.setAttribute("aria-label",d)},dO=function(a){Object.defineProperty(a,"size",{get:function(){var b=this.getAttribute("size");return $APP.n(b)?b:"md"},set:function(b){return $APP.n(b)?this.setAttribute("size",""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){var b=this.getAttribute("variant");return $APP.n(b)?b:"default"},set:function(b){return $APP.n(b)?this.setAttribute("variant",""+
4
+ $APP.S.g(b)):this.removeAttribute("variant")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Loading"},set:function(b){return $APP.n(b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0})},fO=function(){var a=class extends HTMLElement{};a.observedAttributes=eO;a.prototype.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSpinnerInit"))){var b=this.attachShadow({mode:"open"}),
5
5
  c=document.createElement("style"),d=document.createElement("span");c.textContent=":host{display:inline-flex;align-items:center;justify-content:center;color-scheme:light dark;--x-spinner-size:24px;--x-spinner-color:currentColor;--x-spinner-track-color:rgba(0,0,0,0.12);--x-spinner-thickness:2px;--x-spinner-duration:0.75s;}@media (prefers-color-scheme:dark){:host{--x-spinner-track-color:rgba(255,255,255,0.15);}}:host([data-size\x3d'xs']){--x-spinner-size:16px;}:host([data-size\x3d'sm']){--x-spinner-size:20px;}:host([data-size\x3d'md']){--x-spinner-size:24px;}:host([data-size\x3d'lg']){--x-spinner-size:32px;}:host([data-size\x3d'xl']){--x-spinner-size:48px;}:host([data-variant\x3d'primary']){--x-spinner-color:#3b82f6;}:host([data-variant\x3d'success']){--x-spinner-color:#22c55e;}:host([data-variant\x3d'warning']){--x-spinner-color:#f59e0b;}:host([data-variant\x3d'danger']){--x-spinner-color:#ef4444;}[part\x3dring]{display:block;width:var(--x-spinner-size);height:var(--x-spinner-size);border-radius:50%;border:var(--x-spinner-thickness) solid var(--x-spinner-track-color);border-top-color:var(--x-spinner-color);box-sizing:border-box;animation:x-spinner-spin var(--x-spinner-duration) linear infinite;}@keyframes x-spinner-spin{to{transform:rotate(360deg);}}@media (prefers-reduced-motion:reduce){[part\x3dring]{animation-play-state:paused;}}";
6
- d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}kG(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&kG(this);return null};lG(a.prototype);return a},oG=function(){$APP.n(customElements.get("x-spinner"))||
7
- customElements.define("x-spinner",nG());return null};var mG=["size","variant","label"],iG=new $APP.S(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),jG=new $APP.S(null,new $APP.Q(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ja("baredom.exports.x_spinner.init",oG);export const init=oG;
6
+ d.setAttribute("part","ring");d.setAttribute("aria-hidden","true");b.appendChild(c);b.appendChild(d);this.setAttribute("role","status");this.setAttribute("aria-live","polite");this.__xSpinnerRing=d;this.__xSpinnerInit=!0}cO(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){b=$APP.O(c,d);$APP.n(b?$APP.l(this,"__xSpinnerInit"):b)&&cO(this);return null};dO(a.prototype);return a},gO=function(){$APP.n(customElements.get("x-spinner"))||
7
+ customElements.define("x-spinner",fO());return null};var eO=["size","variant","label"],aO=new $APP.R(null,new $APP.Q(null,5,["xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),bO=new $APP.R(null,new $APP.Q(null,5,["success",null,"warning",null,"primary",null,"danger",null,"default",null],null),null);$APP.ja("baredom.exports.x_spinner.init",gO);export const init=gO;
package/dist/x-stat.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Hy=function(a,b,c){return $APP.yc(b,a)?a:c},Iy=function(a){return $APP.n($APP.n(a)?$APP.O("",a):a)?a:null},Ry=function(a){var b=$APP.N(a),c=$APP.I(b,Jy),d=$APP.I(b,Ky),e=$APP.I(b,$APP.Xh),g=$APP.I(b,$APP.Ng);a=$APP.I(b,$APP.U);var h=$APP.I(b,$APP.ei),k=$APP.I(b,$APP.sg),m=$APP.I(b,$APP.Ah);b=$APP.I(b,$APP.W);g=Hy(g,Ly,"default");e=Hy(e,My,"start");k=Hy(k,Ny,"md");c=Hy(c,Oy,"normal");d=Hy(d,Py,"neutral");m=$APP.K(m);return $APP.Xe([Ky,$APP.Xh,$APP.Ng,$APP.U,$APP.ei,$APP.sg,$APP.Ah,$APP.W,Qy,Jy],
3
- [d,e,g,Iy(a),Iy(h),k,m,Iy(b),m?"true":null,c])},Sy=function(a){return $APP.Xe([Ky,$APP.Xh,$APP.Ng,$APP.U,$APP.ei,$APP.sg,$APP.Ah,$APP.W,Jy],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},Ty=function(a,b){a.setAttribute("role","figure");var c=Qy.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
- $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},Uy=function(a,b){a.setAttribute("data-variant",$APP.Ng.g(b));a.setAttribute("data-align",$APP.Xh.g(b));a.setAttribute("data-size",$APP.sg.g(b));a.setAttribute("data-emphasis",Jy.g(b));a.setAttribute("data-trend",Ky.g(b));$APP.n($APP.Ah.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},Vy=function(a){var b=Ry(Sy(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
- g=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(Ty(a,b),Uy(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.U.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.ei.g(b);return $APP.n(h)?h:""}()):null},Wy=function(a){if($APP.l(a,"__x_stat_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
6
- k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("span"),w=document.createElement("slot"),z=document.createElement("slot"),A=document.createElement("slot"),D=document.createElement("slot"),G=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-stat-background:transparent;--x-stat-color:inherit;--x-stat-muted-color:rgba(0,0,0,0.55);--x-stat-border-color:transparent;--x-stat-radius:12px;--x-stat-padding:16px;--x-stat-gap:6px;--x-stat-label-color:var(--x-stat-muted-color);--x-stat-label-size:12px;--x-stat-value-color:var(--x-stat-color);--x-stat-value-size:20px;--x-stat-hint-color:var(--x-stat-muted-color);--x-stat-hint-size:12px;--x-stat-icon-color:var(--x-stat-color);--x-stat-positive-color:#16a34a;--x-stat-warning-color:#d97706;--x-stat-danger-color:#dc2626;--x-stat-transition-duration:120ms;--x-stat-transition-timing:ease;--x-stat-loading-opacity:0.6;}@media (prefers-color-scheme:dark){:host{--x-stat-muted-color:rgba(255,255,255,0.55);--x-stat-positive-color:#4ade80;--x-stat-warning-color:#fbbf24;--x-stat-danger-color:#f87171;}}:host([variant\x3d'positive']){--x-stat-value-color:var(--x-stat-positive-color);}:host([variant\x3d'warning']){--x-stat-value-color:var(--x-stat-warning-color);}:host([variant\x3d'danger']){--x-stat-value-color:var(--x-stat-danger-color);}:host([variant\x3d'subtle']){--x-stat-value-color:var(--x-stat-muted-color);}[part\x3dbase]{display:grid;gap:var(--x-stat-gap);padding:var(--x-stat-padding);border-radius:var(--x-stat-radius);background:var(--x-stat-background);border:1px solid var(--x-stat-border-color);color:var(--x-stat-color);transition:background var(--x-stat-transition-duration) var(--x-stat-transition-timing),border-color var(--x-stat-transition-duration) var(--x-stat-transition-timing),color var(--x-stat-transition-duration) var(--x-stat-transition-timing),opacity var(--x-stat-transition-duration) var(--x-stat-transition-timing);}[part\x3dbase][data-align\x3d'center']{text-align:center;}[part\x3dbase][data-align\x3d'end']{text-align:end;}[part\x3dbase][data-size\x3d'sm'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 0.8);}[part\x3dbase][data-size\x3d'lg'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 1.6);}[part\x3dbase][data-emphasis\x3d'high'] [part\x3dvalue]{font-weight:800;}[part\x3dicon]{flex:0 0 auto;color:var(--x-stat-icon-color);line-height:1;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dlabel]{font-size:var(--x-stat-label-size);color:var(--x-stat-label-color);}[part\x3dvalue]{font-weight:600;font-size:var(--x-stat-value-size);color:var(--x-stat-value-color);}[part\x3dhint]{font-size:var(--x-stat-hint-size);color:var(--x-stat-hint-color);}[part\x3dbase][data-loading\x3d'true']{opacity:var(--x-stat-loading-opacity);}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none;}}";
7
- d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");w.setAttribute("name","icon");z.setAttribute("name","label");A.setAttribute("name","value");D.setAttribute("name","hint");e.appendChild(w);h.appendChild(z);h.appendChild(q);k.appendChild(A);k.appendChild(r);m.appendChild(D);m.appendChild(v);g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(G);d.appendChild(e);
8
- d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=q;a.__x_stat_value=r;a.__x_stat_hint=v;a.__x_stat_initialized=!0}Vy(a);return a},Xy=function(a,b){Object.defineProperty(a,b,{get:function(){var c=this.getAttribute(b);return $APP.n(c)?c:""},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},Yy=function(a){Xy(a,"variant");Xy(a,"align");Xy(a,"size");Xy(a,"emphasis");Xy(a,
9
- "trend");Xy(a,"label");Xy(a,"value");Xy(a,"hint");Object.defineProperty(a,"loading",{get:function(){return this.hasAttribute("loading")},set:function(b){return $APP.n(b)?this.setAttribute("loading",""):this.removeAttribute("loading")},enumerable:!0,configurable:!0})},$y=function(){var a=class extends HTMLElement{};a.observedAttributes=Zy;a.prototype.connectedCallback=function(){return Wy(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?Vy(this):
10
- Wy(this)};Yy(a.prototype);return a},az=function(){return $APP.n(customElements.get("x-stat"))?null:customElements.define("x-stat",$y())},Jy=new $APP.M(null,"emphasis","emphasis",293543451),Qy=new $APP.M(null,"aria-busy","aria-busy",793864247),Ky=new $APP.M(null,"trend","trend",54563841);var Zy="variant align size emphasis trend loading label value hint".split(" "),Ly=new $APP.S(null,new $APP.Q(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),My=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),Ny=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Oy=new $APP.S(null,new $APP.Q(null,2,["high",null,"normal",null],null),null),Py=new $APP.S(null,new $APP.Q(null,3,["neutral",null,
2
+ var mE=function(a,b,c){return $APP.K(b,a)?a:c},nE=function(a){return $APP.n($APP.n(a)?$APP.O("",a):a)?a:null},wE=function(a){var b=$APP.N(a),c=$APP.H(b,oE),d=$APP.H(b,pE),e=$APP.H(b,$APP.hj),g=$APP.H(b,$APP.th);a=$APP.H(b,$APP.si);var h=$APP.H(b,$APP.qj),k=$APP.H(b,$APP.Qg),m=$APP.H(b,$APP.wi);b=$APP.H(b,$APP.W);g=mE(g,qE,"default");e=mE(e,rE,"start");k=mE(k,sE,"md");c=mE(c,tE,"normal");d=mE(d,uE,"neutral");m=$APP.J(m);return $APP.gf([pE,$APP.hj,$APP.th,$APP.si,$APP.qj,$APP.Qg,$APP.wi,$APP.W,vE,oE],
3
+ [d,e,g,nE(a),nE(h),k,m,nE(b),m?"true":null,c])},xE=function(a){return $APP.gf([pE,$APP.hj,$APP.th,$APP.si,$APP.qj,$APP.Qg,$APP.wi,$APP.W,oE],[a.getAttribute("trend"),a.getAttribute("align"),a.getAttribute("variant"),a.getAttribute("value"),a.getAttribute("hint"),a.getAttribute("size"),a.hasAttribute("loading"),a.getAttribute("label"),a.getAttribute("emphasis")])},yE=function(a,b){a.setAttribute("role","figure");var c=vE.g(b);$APP.n(c)?a.setAttribute("aria-busy",c):a.removeAttribute("aria-busy");b=
4
+ $APP.W.g(b);$APP.n(b)?a.setAttribute("aria-label",b):a.removeAttribute("aria-label")},zE=function(a,b){a.setAttribute("data-variant",$APP.th.g(b));a.setAttribute("data-align",$APP.hj.g(b));a.setAttribute("data-size",$APP.Qg.g(b));a.setAttribute("data-emphasis",oE.g(b));a.setAttribute("data-trend",pE.g(b));$APP.n($APP.wi.g(b))?a.setAttribute("data-loading","true"):a.removeAttribute("data-loading")},AE=function(a){var b=wE(xE(a)),c=$APP.l(a,"__x_stat_base"),d=$APP.l(a,"__x_stat_label"),e=$APP.l(a,"__x_stat_value"),
5
+ g=$APP.l(a,"__x_stat_hint");return $APP.n(c)?(yE(a,b),zE(c,b),d.textContent=function(){var h=$APP.W.g(b);return $APP.n(h)?h:""}(),e.textContent=function(){var h=$APP.si.g(b);return $APP.n(h)?h:""}(),g.textContent=function(){var h=$APP.qj.g(b);return $APP.n(h)?h:""}()):null},BE=function(a){if($APP.l(a,"__x_stat_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("div"),h=document.createElement("div"),
6
+ k=document.createElement("div"),m=document.createElement("div"),p=document.createElement("span"),r=document.createElement("span"),v=document.createElement("span"),x=document.createElement("slot"),y=document.createElement("slot"),A=document.createElement("slot"),D=document.createElement("slot"),G=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-stat-background:transparent;--x-stat-color:inherit;--x-stat-muted-color:rgba(0,0,0,0.55);--x-stat-border-color:transparent;--x-stat-radius:12px;--x-stat-padding:16px;--x-stat-gap:6px;--x-stat-label-color:var(--x-stat-muted-color);--x-stat-label-size:12px;--x-stat-value-color:var(--x-stat-color);--x-stat-value-size:20px;--x-stat-hint-color:var(--x-stat-muted-color);--x-stat-hint-size:12px;--x-stat-icon-color:var(--x-stat-color);--x-stat-positive-color:#16a34a;--x-stat-warning-color:#d97706;--x-stat-danger-color:#dc2626;--x-stat-transition-duration:120ms;--x-stat-transition-timing:ease;--x-stat-loading-opacity:0.6;}@media (prefers-color-scheme:dark){:host{--x-stat-muted-color:rgba(255,255,255,0.55);--x-stat-positive-color:#4ade80;--x-stat-warning-color:#fbbf24;--x-stat-danger-color:#f87171;}}:host([variant\x3d'positive']){--x-stat-value-color:var(--x-stat-positive-color);}:host([variant\x3d'warning']){--x-stat-value-color:var(--x-stat-warning-color);}:host([variant\x3d'danger']){--x-stat-value-color:var(--x-stat-danger-color);}:host([variant\x3d'subtle']){--x-stat-value-color:var(--x-stat-muted-color);}[part\x3dbase]{display:grid;gap:var(--x-stat-gap);padding:var(--x-stat-padding);border-radius:var(--x-stat-radius);background:var(--x-stat-background);border:1px solid var(--x-stat-border-color);color:var(--x-stat-color);transition:background var(--x-stat-transition-duration) var(--x-stat-transition-timing),border-color var(--x-stat-transition-duration) var(--x-stat-transition-timing),color var(--x-stat-transition-duration) var(--x-stat-transition-timing),opacity var(--x-stat-transition-duration) var(--x-stat-transition-timing);}[part\x3dbase][data-align\x3d'center']{text-align:center;}[part\x3dbase][data-align\x3d'end']{text-align:end;}[part\x3dbase][data-size\x3d'sm'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 0.8);}[part\x3dbase][data-size\x3d'lg'] [part\x3dvalue]{font-size:calc(var(--x-stat-value-size) * 1.6);}[part\x3dbase][data-emphasis\x3d'high'] [part\x3dvalue]{font-weight:800;}[part\x3dicon]{flex:0 0 auto;color:var(--x-stat-icon-color);line-height:1;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dlabel]{font-size:var(--x-stat-label-size);color:var(--x-stat-label-color);}[part\x3dvalue]{font-weight:600;font-size:var(--x-stat-value-size);color:var(--x-stat-value-color);}[part\x3dhint]{font-size:var(--x-stat-hint-size);color:var(--x-stat-hint-color);}[part\x3dbase][data-loading\x3d'true']{opacity:var(--x-stat-loading-opacity);}@media (prefers-reduced-motion:reduce){[part\x3dbase]{transition:none;}}";
7
+ d.setAttribute("part","base");e.setAttribute("part","icon");g.setAttribute("part","body");h.setAttribute("part","label");k.setAttribute("part","value");m.setAttribute("part","hint");x.setAttribute("name","icon");y.setAttribute("name","label");A.setAttribute("name","value");D.setAttribute("name","hint");e.appendChild(x);h.appendChild(y);h.appendChild(p);k.appendChild(A);k.appendChild(r);m.appendChild(D);m.appendChild(v);g.appendChild(h);g.appendChild(k);g.appendChild(m);g.appendChild(G);d.appendChild(e);
8
+ d.appendChild(g);b.appendChild(c);b.appendChild(d);a.__x_stat_root=b;a.__x_stat_base=d;a.__x_stat_label=p;a.__x_stat_value=r;a.__x_stat_hint=v;a.__x_stat_initialized=!0}AE(a);return a},CE=function(a,b){Object.defineProperty(a,b,{get:function(){var c=this.getAttribute(b);return $APP.n(c)?c:""},set:function(c){return $APP.n(c)?this.setAttribute(b,""+$APP.S.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},DE=function(a){CE(a,"variant");CE(a,"align");CE(a,"size");CE(a,"emphasis");CE(a,
9
+ "trend");CE(a,"label");CE(a,"value");CE(a,"hint");Object.defineProperty(a,"loading",{get:function(){return this.hasAttribute("loading")},set:function(b){return $APP.n(b)?this.setAttribute("loading",""):this.removeAttribute("loading")},enumerable:!0,configurable:!0})},FE=function(){var a=class extends HTMLElement{};a.observedAttributes=EE;a.prototype.connectedCallback=function(){return BE(this)};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_stat_initialized")===!0?AE(this):
10
+ BE(this)};DE(a.prototype);return a},GE=function(){return $APP.n(customElements.get("x-stat"))?null:customElements.define("x-stat",FE())},oE=new $APP.M(null,"emphasis","emphasis",293543451),vE=new $APP.M(null,"aria-busy","aria-busy",793864247),pE=new $APP.M(null,"trend","trend",54563841);var EE="variant align size emphasis trend loading label value hint".split(" "),qE=new $APP.R(null,new $APP.Q(null,5,["warning",null,"positive",null,"subtle",null,"danger",null,"default",null],null),null),rE=new $APP.R(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),sE=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),tE=new $APP.R(null,new $APP.Q(null,2,["high",null,"normal",null],null),null),uE=new $APP.R(null,new $APP.Q(null,3,["neutral",null,
11
11
  "up",null,"down",null],null),null);
12
- $APP.Xe([Ky,$APP.Xh,$APP.Ng,$APP.U,$APP.ei,$APP.sg,$APP.Ah,$APP.W,Jy],[new $APP.Q(null,4,[$APP.mh,"trend",$APP.Z,$APP.X,$APP.Sg,"neutral",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"align",$APP.Z,$APP.X,$APP.Sg,"start",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"variant",$APP.Z,$APP.X,$APP.Sg,"default",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"value",$APP.Z,$APP.X,$APP.Sg,"",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"hint",$APP.Z,$APP.X,$APP.Sg,"",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,
13
- "size",$APP.Z,$APP.X,$APP.Sg,"md",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"loading",$APP.Z,$APP.Di,$APP.Sg,!1,$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"label",$APP.Z,$APP.X,$APP.Sg,"",$APP.Ug,!0],null),new $APP.Q(null,4,[$APP.mh,"emphasis",$APP.Z,$APP.X,$APP.Sg,"normal",$APP.Ug,!0],null)]);$APP.ja("baredom.exports.x_stat.init",az);export const init=az;
12
+ $APP.gf([pE,$APP.hj,$APP.th,$APP.si,$APP.qj,$APP.Qg,$APP.wi,$APP.W,oE],[new $APP.Q(null,4,[$APP.ai,"trend",$APP.Z,$APP.X,$APP.yh,"neutral",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"align",$APP.Z,$APP.X,$APP.yh,"start",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"variant",$APP.Z,$APP.X,$APP.yh,"default",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"value",$APP.Z,$APP.X,$APP.yh,"",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"hint",$APP.Z,$APP.X,$APP.yh,"",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,
13
+ "size",$APP.Z,$APP.X,$APP.yh,"md",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"loading",$APP.Z,$APP.Yj,$APP.yh,!1,$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"label",$APP.Z,$APP.X,$APP.yh,"",$APP.Bh,!0],null),new $APP.Q(null,4,[$APP.ai,"emphasis",$APP.Z,$APP.X,$APP.yh,"normal",$APP.Bh,!0],null)]);$APP.ja("baredom.exports.x_stat.init",GE);export const init=GE;
package/dist/x-stepper.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Ik=function(a,b){return new $APP.Wc(null,function(){if(a>0){var c=$APP.u(b);return c?$APP.Tc($APP.x(c),Ik(a-1,$APP.Jb(c))):null}return null},null)},Lk=function(a){a=$APP.I(Jk,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Kk},Nk=function(a){a=$APP.I(Mk,a);return $APP.n(a)?a:"horizontal"},Qk=function(a){a=$APP.I(Ok,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Pk},Sk=function(a){a=$APP.I(Rk,a);return $APP.n(a)?a:"md"},Tk=function(a){return typeof a==="string"?(a=parseInt(a.trim(),
3
- 10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:0):0},Uk=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.xf(/^\d+$/,b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Gd(function(g){return new $APP.Q(null,2,[$APP.W,"Step "+$APP.T.g(g),$APP.vg,null],null)},$APP.wf(1,a+1)):$APP.Fd;if($APP.n(function(){var g=$APP.O("",b);return g?b.startsWith("["):g}()))try{var c=JSON.parse(b);if($APP.n(Array.isArray(c))){var d=$APP.dc(c),e=$APP.B(d)>200?Ik(200,d):d;return $APP.Gd(function(g){return new $APP.Q(null,
4
- 2,[$APP.W,function(){var h=$APP.l(g,"label");return typeof h==="string"?h:""}(),$APP.vg,function(){var h=$APP.l(g,"description");return typeof h==="string"?h:null}()],null)},e)}return $APP.Fd}catch(g){return $APP.Fd}else return $APP.Fd}else return $APP.Fd},Vk=function(a){var b=$APP.l(a,"__xStepperRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-stepper-indicator-size:2rem;--x-stepper-connector-thickness:2px;--x-stepper-step-gap:0.75rem;--x-stepper-font-size:0.875rem;--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:999px;--x-stepper-motion:120ms;--x-stepper-press-scale:0.93;--x-stepper-focus-ring:rgba(0,0,0,0.55);--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:rgba(16,140,72,1);--x-stepper-complete-color:#fff;--x-stepper-complete-connector:rgba(16,140,72,1);--x-stepper-current-bg:rgba(0,102,204,1);--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:rgba(0,0,0,0.45);--x-stepper-idle-connector:rgba(0,0,0,0.12);--x-stepper-label-done-color:rgba(0,0,0,0.85);--x-stepper-label-current-color:rgba(0,0,0,0.85);--x-stepper-label-upcoming-color:rgba(0,0,0,0.4);--x-stepper-desc-color:rgba(0,0,0,0.4);}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:rgba(255,255,255,0.7);--x-stepper-complete-bg:rgba(60,210,120,1);--x-stepper-complete-color:#000;--x-stepper-complete-connector:rgba(60,210,120,1);--x-stepper-current-bg:rgba(80,160,255,1);--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:rgba(255,255,255,0.35);--x-stepper-idle-connector:rgba(255,255,255,0.12);--x-stepper-label-done-color:rgba(255,255,255,0.9);--x-stepper-label-current-color:rgba(255,255,255,0.9);--x-stepper-label-upcoming-color:rgba(255,255,255,0.3);--x-stepper-desc-color:rgba(255,255,255,0.35);}}[part\x3dcontainer]{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;}:host([data-orientation\x3dhorizontal]) [part\x3dcontainer]{flex-direction:row;}:host([data-orientation\x3dhorizontal]) [part\x3dstep]{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-track]{display:flex;align-items:center;width:100%;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-connector]{flex:1;height:var(--x-stepper-connector-thickness);min-width:8px;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-content]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--x-stepper-step-gap) 4px 0;width:100%;}:host([data-orientation\x3dvertical]) [part\x3dcontainer]{flex-direction:column;}:host([data-orientation\x3dvertical]) [part\x3dstep]{display:flex;flex-direction:row;gap:var(--x-stepper-step-gap);}:host([data-orientation\x3dvertical]) [part\x3dstep-track]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:var(--x-stepper-indicator-size);}:host([data-orientation\x3dvertical]) [part\x3dstep-connector]{flex:1;width:var(--x-stepper-connector-thickness);min-height:16px;margin:4px 0;}:host([data-orientation\x3dvertical]) [part\x3dstep-content]{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--x-stepper-step-gap);}[part\x3dstep-indicator]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-stepper-indicator-size);height:var(--x-stepper-indicator-size);border-radius:var(--x-stepper-radius);border:none;padding:0;margin:0;cursor:pointer;font-size:0.875em;font-weight:600;font-family:inherit;flex-shrink:0;position:relative;z-index:1;transition:background var(--x-stepper-motion) ease,color var(--x-stepper-motion) ease,transform 80ms ease;}[part\x3dstep-indicator]:focus{outline:none;}[part\x3dstep-indicator]:focus-visible{outline:2px solid var(--x-stepper-focus-ring);outline-offset:3px;}[data-state\x3dcomplete] [part\x3dstep-indicator]{background:var(--x-stepper-complete-bg);color:var(--x-stepper-complete-color);}[data-state\x3dcurrent] [part\x3dstep-indicator]{background:var(--x-stepper-current-bg);color:var(--x-stepper-current-color);cursor:default;}[data-state\x3dupcoming] [part\x3dstep-indicator]{background:var(--x-stepper-upcoming-bg);color:var(--x-stepper-upcoming-color);}[data-state\x3dcomplete] [part\x3dstep-connector]{background:var(--x-stepper-complete-connector);}[data-state\x3dcurrent] [part\x3dstep-connector],[data-state\x3dupcoming] [part\x3dstep-connector]{background:var(--x-stepper-idle-connector);}[part\x3dstep]:last-child [part\x3dstep-connector]{display:none;}[part\x3dstep-label]{font-size:var(--x-stepper-font-size);line-height:1.3;font-family:inherit;}[data-state\x3dcomplete] [part\x3dstep-label]{color:var(--x-stepper-label-done-color);}[data-state\x3dcurrent] [part\x3dstep-label]{color:var(--x-stepper-label-current-color);font-weight:var(--x-stepper-label-font-weight);}[data-state\x3dupcoming] [part\x3dstep-label]{color:var(--x-stepper-label-upcoming-color);}[part\x3dstep-description]{font-size:var(--x-stepper-desc-font-size);color:var(--x-stepper-desc-color);line-height:1.3;margin-top:0.2em;}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:hover,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:hover{filter:brightness(0.88);}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:active,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:active{transform:scale(var(--x-stepper-press-scale));}:host([disabled]){opacity:var(--x-stepper-disabled-opacity);}:host([disabled]) [part\x3dstep-indicator]{cursor:default;pointer-events:none;}:host([data-size\x3dsm]){--x-stepper-indicator-size:1.5rem;--x-stepper-font-size:0.8125rem;--x-stepper-desc-font-size:0.6875rem;}:host([data-size\x3dlg]){--x-stepper-indicator-size:2.5rem;--x-stepper-font-size:1rem;--x-stepper-desc-font-size:0.875rem;}@media (prefers-reduced-motion:reduce){[part\x3dstep-indicator]{transition:none;}}";
5
- d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.Q(null,2,[$APP.kh,b,$APP.ii,d],null);return $APP.l(a,"__xStepperRefs")},$k=function(a){a=new $APP.Q(null,5,[Wk,a.getAttribute("steps"),Xk,a.getAttribute("current"),$APP.di,a.getAttribute("orientation"),$APP.$h,a.getAttribute("size"),$APP.V,a.hasAttribute("disabled")],null);var b=$APP.N(a),c=$APP.I(b,Wk);a=$APP.I(b,Xk);var d=$APP.I(b,$APP.di),e=$APP.I(b,$APP.$h);b=$APP.I(b,$APP.V);
6
- c=Uk(c);var g=$APP.B(c);return new $APP.Q(null,5,[Yk,c,Zk,g===0?0:$APP.dg.h(0,$APP.eg.h(Tk(a),g-1)),$APP.th,Lk(d),$APP.sg,Qk(e),$APP.V,$APP.K(b)],null)},al=function(a,b,c){return"Step "+$APP.T.g(a+1)+": "+$APP.T.g(b)+" ("+$APP.T.g(function(){var d=c instanceof $APP.M?c.na:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.T.g(d));}}())+")"},bl=function(a,b,c,d){var e=$APP.N(b);b=$APP.I(e,
7
- $APP.W);e=$APP.I(e,$APP.vg);var g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("button"),m=document.createElement("span"),q=document.createElement("div"),r=document.createElement("div"),v=document.createElement("span"),w=document.createElement("span");a:{var z=c instanceof $APP.M?c.na:null;switch(z){case "complete":z="complete";break a;case "current":z="current";break a;case "upcoming":z="upcoming";break a;default:throw Error("No matching clause: "+$APP.T.g(z));
8
- }}b=$APP.n(b)?b:"";g.setAttribute("part","step");g.setAttribute("role","listitem");g.setAttribute("data-index",""+$APP.T.g(a));g.setAttribute("data-state",z);h.setAttribute("part","step-track");k.setAttribute("part","step-indicator");k.setAttribute("type","button");k.setAttribute("aria-label",al(a,b,c));$APP.C.h(c,Zk)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");$APP.n(d)&&k.setAttribute("aria-disabled","true");m.setAttribute("part",
9
- "step-number");m.setAttribute("aria-hidden","true");m.textContent=$APP.C.h(c,$APP.Ii)?"✓":""+$APP.T.g(a+1);q.setAttribute("part","step-connector");q.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");v.setAttribute("part","step-label");v.textContent=b;w.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.O(e,""):e)?(w.textContent=e,w.style.display="block"):w.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(q);r.appendChild(v);r.appendChild(w);g.appendChild(h);
10
- g.appendChild(r);return g},dl=function(a){var b=$k(a);if($APP.O($APP.l(a,"__xStepperModel"),b)){b=$APP.N(b);var c=$APP.I(b,Yk),d=$APP.I(b,Zk),e=$APP.I(b,$APP.th),g=$APP.I(b,$APP.sg),h=$APP.I(b,$APP.V),k=Vk(a);k=$APP.N(k);k=$APP.I(k,$APP.ii);a.setAttribute("data-orientation",Nk(e));a.setAttribute("data-size",Sk(g));k.innerHTML="";c=$APP.u($APP.yd($APP.hg,c));e=null;for(var m=g=0;;)if(m<g){var q=e.D(null,m),r=$APP.H(q,0,null);q=$APP.H(q,1,null);var v=r<d?$APP.Ii:$APP.C.h(r,d)?Zk:cl;k.appendChild(bl(r,
11
- q,v,h));m+=1}else if(c=$APP.u(c))$APP.uc(c)?(g=$APP.mb(c),c=$APP.nb(c),e=g,g=$APP.B(g)):(g=$APP.x(c),e=$APP.H(g,0,null),g=$APP.H(g,1,null),m=e<d?$APP.Ii:$APP.C.h(e,d)?Zk:cl,k.appendChild(bl(e,g,m,h)),c=$APP.y(c),e=null,g=0),m=0;else break;a.__xStepperModel=b}},fl=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:$k(a);$APP.n($APP.V.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=Zk.g(e),
12
- typeof d==="number"&&$APP.p(isNaN(d))&&$APP.O(d,e)&&(e=$APP.pg(new $APP.Q(null,2,[$APP.Dg,e,el,d],null)),e=new CustomEvent("x-stepper-change",{detail:e,bubbles:!0,composed:!0,cancelable:!0}),e=a.dispatchEvent(e),$APP.n(e)&&a.setAttribute("current",""+$APP.T.g(d)))));return null}var c=Vk(a);c=$APP.N(c);$APP.I(c,$APP.ii).addEventListener("click",b);$APP.la(a,"__xStepperHandlers",{click:b})},gl=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&
13
- (c=$APP.ii.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},hl=function(a){Object.defineProperty(a,"steps",{get:function(){var b=this.getAttribute("steps");return $APP.n(b)?b:"[]"},set:function(b){return $APP.n(b)?this.setAttribute("steps",""+$APP.T.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return Tk(this.getAttribute("current"))},set:function(b){return b==null?
14
- this.removeAttribute("current"):this.setAttribute("current",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return Nk(Lk(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.T.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return Sk(Qk(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",
15
- ""+$APP.T.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},jl=function(){var a=class extends HTMLElement{};a.observedAttributes=il;a.prototype.connectedCallback=function(){Vk(this);gl(this);fl(this);dl(this);return null};a.prototype.disconnectedCallback=function(){gl(this);
16
- return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&dl(this);return null};hl(a.prototype);return a},kl=function(){$APP.n(customElements.get("x-stepper"))||customElements.define("x-stepper",jl());return null},cl=new $APP.M(null,"upcoming","upcoming",1873315471),Zk=new $APP.M(null,"current","current",-1088038603),Wk=new $APP.M(null,"steps-raw","steps-raw",1741812533),Pk=new $APP.M(null,"md","md",707286655),ll=new $APP.M(null,"lg","lg",-80787836),Kk=new $APP.M(null,"horizontal",
17
- "horizontal",2062109475),ml=new $APP.M(null,"vertical","vertical",718696748),nl=new $APP.M(null,"sm","sm",-1402575065),el=new $APP.M(null,"to","to",192099007),Yk=new $APP.M(null,"steps","steps",-128433302),Xk=new $APP.M(null,"current-raw","current-raw",-1440665509);var il=["steps","current","orientation","size","disabled"];$APP.sd(["x-stepper-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Dg,$APP.zh,el,$APP.zh],null),$APP.ni,!0],null)]);var Jk=new $APP.Q(null,2,["horizontal",Kk,"vertical",ml],null),Mk=new $APP.Q(null,2,[Kk,"horizontal",ml,"vertical"],null),Ok=new $APP.Q(null,3,["sm",nl,"md",Pk,"lg",ll],null),Rk=new $APP.Q(null,3,[nl,"sm",Pk,"md",ll,"lg"],null);$APP.ja("baredom.exports.x_stepper.init",kl);export const init=kl;
2
+ var om=function(a,b){return new $APP.bd(null,function(){if(a>0){var c=$APP.u(b);return c?$APP.Zc($APP.w(c),om(a-1,$APP.Lb(c))):null}return null},null)},rm=function(a){a=$APP.H(pm,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:qm},tm=function(a){a=$APP.H(sm,a);return $APP.n(a)?a:"horizontal"},wm=function(a){a=$APP.H(um,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:vm},ym=function(a){a=$APP.H(xm,a);return $APP.n(a)?a:"md"},zm=function(a){return typeof a==="string"?(a=parseInt(a.trim(),
3
+ 10),typeof a==="number"&&$APP.q(isNaN(a))&&a>=0?a:0):0},Am=function(a){if(typeof a==="string"){var b=a.trim();if($APP.n($APP.Qf(/^\d+$/,b)))return a=parseInt(b,10),a>0&&a<=200?$APP.Od(function(g){return new $APP.Q(null,2,[$APP.W,"Step "+$APP.S.g(g),$APP.Ug,null],null)},$APP.Pf(1,a+1)):$APP.Nd;if($APP.n(function(){var g=$APP.O("",b);return g?b.startsWith("["):g}()))try{var c=JSON.parse(b);if($APP.n(Array.isArray(c))){var d=$APP.ic(c),e=$APP.B(d)>200?om(200,d):d;return $APP.Od(function(g){return new $APP.Q(null,
4
+ 2,[$APP.W,function(){var h=$APP.l(g,"label");return typeof h==="string"?h:""}(),$APP.Ug,function(){var h=$APP.l(g,"description");return typeof h==="string"?h:null}()],null)},e)}return $APP.Nd}catch(g){return $APP.Nd}else return $APP.Nd}else return $APP.Nd},Bm=function(a){var b=$APP.l(a,"__xStepperRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-stepper-indicator-size:2rem;--x-stepper-connector-thickness:2px;--x-stepper-step-gap:0.75rem;--x-stepper-font-size:0.875rem;--x-stepper-label-font-weight:500;--x-stepper-desc-font-size:0.75rem;--x-stepper-radius:999px;--x-stepper-motion:120ms;--x-stepper-press-scale:0.93;--x-stepper-focus-ring:rgba(0,0,0,0.55);--x-stepper-disabled-opacity:0.5;--x-stepper-complete-bg:rgba(16,140,72,1);--x-stepper-complete-color:#fff;--x-stepper-complete-connector:rgba(16,140,72,1);--x-stepper-current-bg:rgba(0,102,204,1);--x-stepper-current-color:#fff;--x-stepper-upcoming-bg:rgba(0,0,0,0.08);--x-stepper-upcoming-color:rgba(0,0,0,0.45);--x-stepper-idle-connector:rgba(0,0,0,0.12);--x-stepper-label-done-color:rgba(0,0,0,0.85);--x-stepper-label-current-color:rgba(0,0,0,0.85);--x-stepper-label-upcoming-color:rgba(0,0,0,0.4);--x-stepper-desc-color:rgba(0,0,0,0.4);}@media (prefers-color-scheme:dark){:host{--x-stepper-focus-ring:rgba(255,255,255,0.7);--x-stepper-complete-bg:rgba(60,210,120,1);--x-stepper-complete-color:#000;--x-stepper-complete-connector:rgba(60,210,120,1);--x-stepper-current-bg:rgba(80,160,255,1);--x-stepper-current-color:#000;--x-stepper-upcoming-bg:rgba(255,255,255,0.1);--x-stepper-upcoming-color:rgba(255,255,255,0.35);--x-stepper-idle-connector:rgba(255,255,255,0.12);--x-stepper-label-done-color:rgba(255,255,255,0.9);--x-stepper-label-current-color:rgba(255,255,255,0.9);--x-stepper-label-upcoming-color:rgba(255,255,255,0.3);--x-stepper-desc-color:rgba(255,255,255,0.35);}}[part\x3dcontainer]{display:flex;align-items:flex-start;margin:0;padding:0;list-style:none;}:host([data-orientation\x3dhorizontal]) [part\x3dcontainer]{flex-direction:row;}:host([data-orientation\x3dhorizontal]) [part\x3dstep]{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-track]{display:flex;align-items:center;width:100%;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-connector]{flex:1;height:var(--x-stepper-connector-thickness);min-width:8px;}:host([data-orientation\x3dhorizontal]) [part\x3dstep-content]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--x-stepper-step-gap) 4px 0;width:100%;}:host([data-orientation\x3dvertical]) [part\x3dcontainer]{flex-direction:column;}:host([data-orientation\x3dvertical]) [part\x3dstep]{display:flex;flex-direction:row;gap:var(--x-stepper-step-gap);}:host([data-orientation\x3dvertical]) [part\x3dstep-track]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:var(--x-stepper-indicator-size);}:host([data-orientation\x3dvertical]) [part\x3dstep-connector]{flex:1;width:var(--x-stepper-connector-thickness);min-height:16px;margin:4px 0;}:host([data-orientation\x3dvertical]) [part\x3dstep-content]{display:flex;flex-direction:column;flex:1;min-width:0;padding-bottom:var(--x-stepper-step-gap);}[part\x3dstep-indicator]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-stepper-indicator-size);height:var(--x-stepper-indicator-size);border-radius:var(--x-stepper-radius);border:none;padding:0;margin:0;cursor:pointer;font-size:0.875em;font-weight:600;font-family:inherit;flex-shrink:0;position:relative;z-index:1;transition:background var(--x-stepper-motion) ease,color var(--x-stepper-motion) ease,transform 80ms ease;}[part\x3dstep-indicator]:focus{outline:none;}[part\x3dstep-indicator]:focus-visible{outline:2px solid var(--x-stepper-focus-ring);outline-offset:3px;}[data-state\x3dcomplete] [part\x3dstep-indicator]{background:var(--x-stepper-complete-bg);color:var(--x-stepper-complete-color);}[data-state\x3dcurrent] [part\x3dstep-indicator]{background:var(--x-stepper-current-bg);color:var(--x-stepper-current-color);cursor:default;}[data-state\x3dupcoming] [part\x3dstep-indicator]{background:var(--x-stepper-upcoming-bg);color:var(--x-stepper-upcoming-color);}[data-state\x3dcomplete] [part\x3dstep-connector]{background:var(--x-stepper-complete-connector);}[data-state\x3dcurrent] [part\x3dstep-connector],[data-state\x3dupcoming] [part\x3dstep-connector]{background:var(--x-stepper-idle-connector);}[part\x3dstep]:last-child [part\x3dstep-connector]{display:none;}[part\x3dstep-label]{font-size:var(--x-stepper-font-size);line-height:1.3;font-family:inherit;}[data-state\x3dcomplete] [part\x3dstep-label]{color:var(--x-stepper-label-done-color);}[data-state\x3dcurrent] [part\x3dstep-label]{color:var(--x-stepper-label-current-color);font-weight:var(--x-stepper-label-font-weight);}[data-state\x3dupcoming] [part\x3dstep-label]{color:var(--x-stepper-label-upcoming-color);}[part\x3dstep-description]{font-size:var(--x-stepper-desc-font-size);color:var(--x-stepper-desc-color);line-height:1.3;margin-top:0.2em;}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:hover,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:hover{filter:brightness(0.88);}:host(:not([disabled])) [data-state\x3dcomplete] [part\x3dstep-indicator]:active,:host(:not([disabled])) [data-state\x3dupcoming] [part\x3dstep-indicator]:active{transform:scale(var(--x-stepper-press-scale));}:host([disabled]){opacity:var(--x-stepper-disabled-opacity);}:host([disabled]) [part\x3dstep-indicator]{cursor:default;pointer-events:none;}:host([data-size\x3dsm]){--x-stepper-indicator-size:1.5rem;--x-stepper-font-size:0.8125rem;--x-stepper-desc-font-size:0.6875rem;}:host([data-size\x3dlg]){--x-stepper-indicator-size:2.5rem;--x-stepper-font-size:1rem;--x-stepper-desc-font-size:0.875rem;}@media (prefers-reduced-motion:reduce){[part\x3dstep-indicator]{transition:none;}}";
5
+ d.setAttribute("part","container");d.setAttribute("role","list");b.appendChild(c);b.appendChild(d);a.__xStepperRefs=new $APP.Q(null,2,[$APP.Yh,b,$APP.xj,d],null);return $APP.l(a,"__xStepperRefs")},Fm=function(a){a=new $APP.Q(null,5,[Cm,a.getAttribute("steps"),Dm,a.getAttribute("current"),$APP.pj,a.getAttribute("orientation"),$APP.lj,a.getAttribute("size"),$APP.V,a.hasAttribute("disabled")],null);var b=$APP.N(a),c=$APP.H(b,Cm);a=$APP.H(b,Dm);var d=$APP.H(b,$APP.pj),e=$APP.H(b,$APP.lj);b=$APP.H(b,$APP.V);
6
+ c=Am(c);var g=$APP.B(c);return new $APP.Q(null,5,[$APP.Sj,c,Em,g===0?0:$APP.Ag.h(0,$APP.Bg.h(zm(a),g-1)),$APP.li,rm(d),$APP.Qg,wm(e),$APP.V,$APP.J(b)],null)},Gm=function(a,b,c){return"Step "+$APP.S.g(a+1)+": "+$APP.S.g(b)+" ("+$APP.S.g(function(){var d=c instanceof $APP.M?c.ra:null;switch(d){case "complete":return"completed";case "current":return"current";case "upcoming":return"upcoming";default:throw Error("No matching clause: "+$APP.S.g(d));}}())+")"},Hm=function(a,b,c,d){var e=$APP.N(b);b=$APP.H(e,
7
+ $APP.W);e=$APP.H(e,$APP.Ug);var g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("button"),m=document.createElement("span"),p=document.createElement("div"),r=document.createElement("div"),v=document.createElement("span"),x=document.createElement("span");a:{var y=c instanceof $APP.M?c.ra:null;switch(y){case "complete":y="complete";break a;case "current":y="current";break a;case "upcoming":y="upcoming";break a;default:throw Error("No matching clause: "+$APP.S.g(y));
8
+ }}b=$APP.n(b)?b:"";g.setAttribute("part","step");g.setAttribute("role","listitem");g.setAttribute("data-index",""+$APP.S.g(a));g.setAttribute("data-state",y);h.setAttribute("part","step-track");k.setAttribute("part","step-indicator");k.setAttribute("type","button");k.setAttribute("aria-label",Gm(a,b,c));$APP.C.h(c,Em)?k.setAttribute("aria-current","step"):k.removeAttribute("aria-current");k.setAttribute("tabindex",$APP.n(d)?"-1":"0");$APP.n(d)&&k.setAttribute("aria-disabled","true");m.setAttribute("part",
9
+ "step-number");m.setAttribute("aria-hidden","true");m.textContent=$APP.C.h(c,$APP.gk)?"✓":""+$APP.S.g(a+1);p.setAttribute("part","step-connector");p.setAttribute("aria-hidden","true");r.setAttribute("part","step-content");v.setAttribute("part","step-label");v.textContent=b;x.setAttribute("part","step-description");$APP.n($APP.n(e)?$APP.O(e,""):e)?(x.textContent=e,x.style.display="block"):x.style.display="none";k.appendChild(m);h.appendChild(k);h.appendChild(p);r.appendChild(v);r.appendChild(x);g.appendChild(h);
10
+ g.appendChild(r);return g},Jm=function(a){var b=Fm(a);if($APP.O($APP.l(a,"__xStepperModel"),b)){b=$APP.N(b);var c=$APP.H(b,$APP.Sj),d=$APP.H(b,Em),e=$APP.H(b,$APP.li),g=$APP.H(b,$APP.Qg),h=$APP.H(b,$APP.V),k=Bm(a);k=$APP.N(k);k=$APP.H(k,$APP.xj);a.setAttribute("data-orientation",tm(e));a.setAttribute("data-size",ym(g));k.innerHTML="";c=$APP.u($APP.Fd($APP.Eg,c));e=null;for(var m=g=0;;)if(m<g){var p=e.H(null,m),r=$APP.E(p,0,null);p=$APP.E(p,1,null);var v=r<d?$APP.gk:$APP.C.h(r,d)?Em:Im;k.appendChild(Hm(r,
11
+ p,v,h));m+=1}else if(c=$APP.u(c))$APP.Ac(c)?(g=$APP.ob(c),c=$APP.pb(c),e=g,g=$APP.B(g)):(g=$APP.w(c),e=$APP.E(g,0,null),g=$APP.E(g,1,null),m=e<d?$APP.gk:$APP.C.h(e,d)?Em:Im,k.appendChild(Hm(e,g,m,h)),c=$APP.z(c),e=null,g=0),m=0;else break;a.__xStepperModel=b}},Lm=function(a){function b(d){var e=$APP.l(a,"__xStepperModel");e=$APP.n(e)?e:Fm(a);$APP.n($APP.V.g(e))||(d=d.target.closest("[part\x3dstep-indicator]"),$APP.n(d)&&(d=parseInt(d.closest("[part\x3dstep]").getAttribute("data-index"),10),e=Em.g(e),
12
+ typeof d==="number"&&$APP.q(isNaN(d))&&$APP.O(d,e)&&(e=$APP.Mg(new $APP.Q(null,2,[$APP.ch,e,Km,d],null)),e=new CustomEvent("x-stepper-change",{detail:e,bubbles:!0,composed:!0,cancelable:!0}),e=a.dispatchEvent(e),$APP.n(e)&&a.setAttribute("current",""+$APP.S.g(d)))));return null}var c=Bm(a);c=$APP.N(c);$APP.H(c,$APP.xj).addEventListener("click",b);$APP.ma(a,"__xStepperHandlers",{click:b})},Mm=function(a){var b=$APP.l(a,"__xStepperHandlers");if($APP.n(b)){var c=$APP.l(a,"__xStepperRefs");$APP.n(c)&&
13
+ (c=$APP.xj.g(c),b=$APP.l(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xStepperHandlers=null},Nm=function(a){Object.defineProperty(a,"steps",{get:function(){var b=this.getAttribute("steps");return $APP.n(b)?b:"[]"},set:function(b){return $APP.n(b)?this.setAttribute("steps",""+$APP.S.g(b)):this.removeAttribute("steps")},enumerable:!0,configurable:!0});Object.defineProperty(a,"current",{get:function(){return zm(this.getAttribute("current"))},set:function(b){return b==null?
14
+ this.removeAttribute("current"):this.setAttribute("current",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return tm(rm(this.getAttribute("orientation")))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.S.g(b)):this.removeAttribute("orientation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"size",{get:function(){return ym(wm(this.getAttribute("size")))},set:function(b){return $APP.n(b)?this.setAttribute("size",
15
+ ""+$APP.S.g(b)):this.removeAttribute("size")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},Pm=function(){var a=class extends HTMLElement{};a.observedAttributes=Om;a.prototype.connectedCallback=function(){Bm(this);Mm(this);Lm(this);Jm(this);return null};a.prototype.disconnectedCallback=function(){Mm(this);
16
+ return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Jm(this);return null};Nm(a.prototype);return a},Qm=function(){$APP.n(customElements.get("x-stepper"))||customElements.define("x-stepper",Pm());return null},Im=new $APP.M(null,"upcoming","upcoming",1873315471),Em=new $APP.M(null,"current","current",-1088038603),Cm=new $APP.M(null,"steps-raw","steps-raw",1741812533),vm=new $APP.M(null,"md","md",707286655),Rm=new $APP.M(null,"lg","lg",-80787836),qm=new $APP.M(null,"horizontal",
17
+ "horizontal",2062109475),Sm=new $APP.M(null,"vertical","vertical",718696748),Tm=new $APP.M(null,"sm","sm",-1402575065),Km=new $APP.M(null,"to","to",192099007),Dm=new $APP.M(null,"current-raw","current-raw",-1440665509);var Om=["steps","current","orientation","size","disabled"];$APP.zd(["x-stepper-change",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.ch,$APP.U,Km,$APP.U],null),$APP.Dj,!0],null)]);var pm=new $APP.Q(null,2,["horizontal",qm,"vertical",Sm],null),sm=new $APP.Q(null,2,[qm,"horizontal",Sm,"vertical"],null),um=new $APP.Q(null,3,["sm",Tm,"md",vm,"lg",Rm],null),xm=new $APP.Q(null,3,[Tm,"sm",vm,"md",Rm,"lg"],null);$APP.ja("baredom.exports.x_stepper.init",Qm);export const init=Qm;
package/dist/x-switch.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ZA=function(a,b,c){return a.setAttribute(b,c)},$A=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},aB=function(a){a=$APP.Xe([$APP.Dh,$APP.Sh,$APP.ug,$APP.Ig,$APP.Th,$APP.mi,$APP.yi,$APP.wi,$APP.ci],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
- $APP.I(b,$APP.wi);var c=$APP.I(b,$APP.ci),d=$APP.I(b,$APP.Dh),e=$APP.I(b,$APP.Sh),g=$APP.I(b,$APP.ug),h=$APP.I(b,$APP.Ig),k=$APP.I(b,$APP.Th),m=$APP.I(b,$APP.mi);b=$APP.I(b,$APP.yi);k=$APP.K(k);g=$APP.K(g);return $APP.Xe([$APP.Tg,$APP.Og,$APP.Vi,$APP.hi,$APP.Ag,$APP.ai,$APP.U,$APP.Gi,$APP.Pi,$APP.Uh,$APP.V],[g,k?"true":"false",$APP.K(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.K(e)])},bB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=aB(a);var d=$APP.V.g(b),
4
- e=$APP.hi.g(b);ZA(c,"aria-checked",$APP.Og.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");ZA(c,"aria-required",$APP.n($APP.Tg.g(b))?"true":"false");ZA(c,"aria-readonly",$APP.n($APP.Vi.g(b))?"true":"false");var g=$APP.Uh.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.Gi.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Pi.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$A(a,"data-checked",e);$A(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.U.g(b):null):null}return null},cB=function(a){var b=aB(a),c=$APP.V.g(b),d=$APP.Vi.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.hi.g(b);c=$APP.p(d);b=$APP.U.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
- cancelable:!0});a.dispatchEvent(d);return $APP.p(d.defaultPrevented)?($A(a,"checked",c),bB(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},dB=function(a){return function(){return cB(a)}},eB=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),cB(a)):null}},fB=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
- $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},gB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $A(this,c,$APP.K(d))}})},hB=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
- null&&$APP.O(d)?ZA(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},jB=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return iB}});gB(b,"checked","checked");gB(b,"disabled","disabled");gB(b,"readOnly","readonly");gB(b,"required","required");hB(b,"name","name");hB(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
2
+ var qH=function(a,b,c){return a.setAttribute(b,c)},rH=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},sH=function(a){a=$APP.gf([$APP.Ai,$APP.aj,$APP.Tg,$APP.jh,$APP.bj,$APP.Cj,$APP.Rj,$APP.Nj,$APP.oj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=
3
+ $APP.H(b,$APP.Nj);var c=$APP.H(b,$APP.oj),d=$APP.H(b,$APP.Ai),e=$APP.H(b,$APP.aj),g=$APP.H(b,$APP.Tg),h=$APP.H(b,$APP.jh),k=$APP.H(b,$APP.bj),m=$APP.H(b,$APP.Cj);b=$APP.H(b,$APP.Rj);k=$APP.J(k);g=$APP.J(g);return $APP.gf([$APP.zh,$APP.uh,$APP.uk,$APP.tj,$APP.$g,$APP.mj,$APP.si,$APP.ek,$APP.ok,$APP.cj,$APP.V],[g,k?"true":"false",$APP.J(m),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,c,a,$APP.J(e)])},tH=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=sH(a);var d=$APP.V.g(b),
4
+ e=$APP.tj.g(b);qH(c,"aria-checked",$APP.uh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");qH(c,"aria-required",$APP.n($APP.zh.g(b))?"true":"false");qH(c,"aria-readonly",$APP.n($APP.uk.g(b))?"true":"false");var g=$APP.cj.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.ek.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.ok.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");rH(a,"data-checked",e);rH(a,"data-disabled",d);a=$APP.l(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.si.g(b):null):null}return null},uH=function(a){var b=sH(a),c=$APP.V.g(b),d=$APP.uk.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.tj.g(b);c=$APP.q(d);b=$APP.si.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
+ cancelable:!0});a.dispatchEvent(d);return $APP.q(d.defaultPrevented)?(rH(a,"checked",c),tH(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},vH=function(a){return function(){return uH(a)}},wH=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),uH(a)):null}},xH=function(a){var b=$APP.l(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.l(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
+ $APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},yH=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return rH(this,c,$APP.J(d))}})},zH=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
+ null&&$APP.O(d)?qH(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},BH=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return AH}});yH(b,"checked","checked");yH(b,"disabled","disabled");yH(b,"readOnly","readonly");yH(b,"required","required");zH(b,"name","name");zH(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
9
9
  e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:999px;--x-switch-track-bg:#d1d5db;--x-switch-track-bg-checked:#2563eb;--x-switch-thumb-bg:#ffffff;--x-switch-focus-ring:#60a5fa;--x-switch-disabled-opacity:0.45;--x-switch-transition:background 150ms ease,transform 150ms ease;}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:#4b5563;--x-switch-track-bg-checked:#3b82f6;--x-switch-thumb-bg:#f9fafb;--x-switch-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}fB(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=dB(this),e=eB(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return bB(this)};b.disconnectedCallback=function(){return fB(this)};b.attributeChangedCallback=function(){return bB(this)};b.formDisabledCallback=
12
- function(c){$A(this,"disabled",$APP.K(c));return bB(this)};b.formResetCallback=function(){this.removeAttribute("checked");return bB(this)};return a},kB=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",jB())};var iB="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.sd(["x-switch-change-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.tg,$APP.Di,$APP.Zh,$APP.Di],null)],null),"x-switch-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Ki,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_switch.init",kB);export const init=kB;
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}xH(this);c=$APP.l(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=vH(this),e=wH(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.S.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.S.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xSwitchRefs"),$APP.n(d)&&$APP.l(d,"control").setAttribute("aria-labelledby",c)));return tH(this)};b.disconnectedCallback=function(){return xH(this)};b.attributeChangedCallback=function(){return tH(this)};b.formDisabledCallback=
12
+ function(c){rH(this,"disabled",$APP.J(c));return tH(this)};b.formResetCallback=function(){this.removeAttribute("checked");return tH(this)};return a},CH=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",BH())};var AH="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.zd(["x-switch-change-request",new $APP.Q(null,2,[$APP.Dj,!0,$APP.Y,new $APP.Q(null,3,[$APP.si,$APP.X,$APP.Rg,$APP.Yj,$APP.kj,$APP.Yj],null)],null),"x-switch-change",new $APP.Q(null,2,[$APP.Dj,!1,$APP.Y,new $APP.Q(null,2,[$APP.si,$APP.X,$APP.ik,$APP.Yj],null)],null)]);$APP.ja("baredom.exports.x_switch.init",CH);export const init=CH;
package/dist/x-tab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bj=function(a,b,c){return $APP.yc(b,a)?a:c},gj=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.Ui),d=$APP.I(b,$APP.pi);a=$APP.I(b,$APP.th);var e=$APP.I(b,$APP.sg),g=$APP.I(b,$APP.Ng),h=$APP.I(b,$APP.W);b=$APP.I(b,cj);c=$APP.K(c);var k=(d=$APP.K(d))?"-1":c?"0":"-1";return new $APP.Q(null,8,[$APP.Ui,c,$APP.pi,d,$APP.th,bj(a,dj,"horizontal"),$APP.sg,bj(e,ej,"md"),$APP.Ng,bj(g,fj,"default"),$APP.W,h,cj,b,$APP.Lg,k],null)},hj=function(a){return new $APP.Q(null,8,[$APP.U,a.getAttribute("value"),$APP.Ui,
3
- a.hasAttribute("selected"),$APP.pi,a.hasAttribute("disabled"),$APP.th,a.getAttribute("orientation"),$APP.sg,a.getAttribute("size"),$APP.Ng,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),cj,a.getAttribute("controls")],null)},ij=function(a){var b=gj(hj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.Ui.g(b))?"true":"false");$APP.n($APP.pi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
- $APP.Lg.g(b));var d=cj.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.O(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.O(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.Ui.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.pi.g(b))?"true":"false");c.setAttribute("data-size",$APP.sg.g(b));c.setAttribute("data-variant",$APP.Ng.g(b));return c.setAttribute("data-orientation",
5
- $APP.th.g(b))}return null},jj=function(a){var b=gj(hj(a)),c=$APP.N(b);b=$APP.I(c,$APP.Ui);c=$APP.I(c,$APP.pi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},kj=function(a){a.addEventListener("click",function(){return jj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.C.h(c,"Enter")||$APP.C.h(c," ")?(b.preventDefault(),b=jj(a)):b=null;return b})},lj=function(a){if($APP.l(a,
2
+ var Ek=function(a,b,c){return $APP.K(b,a)?a:c},Jk=function(a){var b=$APP.N(a),c=$APP.H(b,$APP.tk),d=$APP.H(b,$APP.Fj);a=$APP.H(b,$APP.li);var e=$APP.H(b,$APP.Qg),g=$APP.H(b,$APP.th),h=$APP.H(b,$APP.W);b=$APP.H(b,Fk);c=$APP.J(c);var k=(d=$APP.J(d))?"-1":c?"0":"-1";return new $APP.Q(null,8,[$APP.tk,c,$APP.Fj,d,$APP.li,Ek(a,Gk,"horizontal"),$APP.Qg,Ek(e,Hk,"md"),$APP.th,Ek(g,Ik,"default"),$APP.W,h,Fk,b,$APP.mh,k],null)},Kk=function(a){return new $APP.Q(null,8,[$APP.si,a.getAttribute("value"),$APP.tk,
3
+ a.hasAttribute("selected"),$APP.Fj,a.hasAttribute("disabled"),$APP.li,a.getAttribute("orientation"),$APP.Qg,a.getAttribute("size"),$APP.th,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),Fk,a.getAttribute("controls")],null)},Lk=function(a){var b=Jk(Kk(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.tk.g(b))?"true":"false");$APP.n($APP.Fj.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
+ $APP.mh.g(b));var d=Fk.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.O(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.O(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.tk.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.Fj.g(b))?"true":"false");c.setAttribute("data-size",$APP.Qg.g(b));c.setAttribute("data-variant",$APP.th.g(b));return c.setAttribute("data-orientation",
5
+ $APP.li.g(b))}return null},Mk=function(a){var b=Jk(Kk(a)),c=$APP.N(b);b=$APP.H(c,$APP.tk);c=$APP.H(c,$APP.Fj);$APP.q(c)&&$APP.q(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},Nk=function(a){a.addEventListener("click",function(){return Mk(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.C.h(c,"Enter")||$APP.C.h(c," ")?(b.preventDefault(),b=Mk(a)):b=null;return b})},Ok=function(a){if($APP.l(a,
6
6
  "__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#1d4ed8;--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#60a5fa;}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),border-color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease);}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;kj(a);a.__x_tab_initialized=!0}ij(a);return a},mj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},oj=function(){var a=class extends HTMLElement{};a.observedAttributes=nj;a.prototype.connectedCallback=function(){return lj(this)};a.prototype.attributeChangedCallback=
9
- function(){return $APP.l(this,"__x_tab_initialized")===!0?ij(this):lj(this)};mj(a);return a},pj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",oj())},cj=new $APP.M(null,"controls","controls",1340701452);var nj="value selected disabled orientation size variant label controls".split(" "),dj=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),ej=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),fj=new $APP.S(null,new $APP.Q(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.sd(["tab-select",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_tab.init",pj);export const init=pj;
7
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;Nk(a);a.__x_tab_initialized=!0}Lk(a);return a},Pk=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},Rk=function(){var a=class extends HTMLElement{};a.observedAttributes=Qk;a.prototype.connectedCallback=function(){return Ok(this)};a.prototype.attributeChangedCallback=
9
+ function(){return $APP.l(this,"__x_tab_initialized")===!0?Lk(this):Ok(this)};Pk(a);return a},Sk=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",Rk())},Fk=new $APP.M(null,"controls","controls",1340701452);var Qk="value selected disabled orientation size variant label controls".split(" "),Gk=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),Hk=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),Ik=new $APP.R(null,new $APP.Q(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.zd(["tab-select",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.si,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_tab.init",Sk);export const init=Sk;
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Cx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.yc(b,a)?a:c},Dx=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Gx=function(a){var b=$APP.N(a);a=$APP.I(b,Ex);b=$APP.I(b,Fx);if($APP.n($APP.n(a)?a:$APP.O(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Hx=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.Z);b=$APP.I(b,Ex);return(a=$APP.C.h(a,
3
- "header"))?b:a},Ix=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Jx=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},Ox=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
2
+ var iD=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.K(b,a)?a:c},jD=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.q(isNaN(a))&&a>0?Math.floor(a):1):1},mD=function(a){var b=$APP.N(a);a=$APP.H(b,kD);b=$APP.H(b,lD);if($APP.n($APP.n(a)?a:$APP.O(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},nD=function(a){var b=$APP.N(a);a=$APP.H(b,$APP.Z);b=$APP.H(b,kD);return(a=$APP.C.h(a,
3
+ "header"))?b:a},oD=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},pD=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},uD=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
4
4
  g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("slot"),m=document.createElement("span");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-table-cell-padding:0.5rem 0.75rem;--x-table-cell-bg:transparent;--x-table-cell-header-bg:rgba(0,0,0,0.04);--x-table-cell-border-color:rgba(0,0,0,0.1);--x-table-cell-border-width:1px;--x-table-cell-color:inherit;--x-table-cell-header-color:inherit;--x-table-cell-font-size:inherit;--x-table-cell-header-font-weight:600;--x-table-cell-min-width:0;--x-table-cell-max-width:none;--x-table-cell-sort-color:rgba(0,0,0,0.4);--x-table-cell-sort-hover-color:rgba(0,0,0,0.7);--x-table-cell-focus-ring:rgba(59,130,246,0.5);--x-table-cell-transition-duration:150ms;--x-table-cell-sticky-bg:#ffffff;--x-table-cell-disabled-opacity:0.45;min-width:var(--x-table-cell-min-width);max-width:var(--x-table-cell-max-width);}@media (prefers-color-scheme:dark){:host{--x-table-cell-header-bg:rgba(255,255,255,0.06);--x-table-cell-border-color:rgba(255,255,255,0.1);--x-table-cell-sort-color:rgba(255,255,255,0.4);--x-table-cell-sort-hover-color:rgba(255,255,255,0.7);--x-table-cell-sticky-bg:#1f2937;}}:host([data-sticky\x3d'start']){position:sticky;inset-inline-start:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([data-sticky\x3d'end']){position:sticky;inset-inline-end:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([disabled]){opacity:var(--x-table-cell-disabled-opacity);}[part\x3dcell]{display:flex;align-items:center;justify-content:flex-start;padding:var(--x-table-cell-padding);background:var(--x-table-cell-bg);border-bottom:var(--x-table-cell-border-width) solid var(--x-table-cell-border-color);color:var(--x-table-cell-color);font-size:var(--x-table-cell-font-size);min-width:0;box-sizing:border-box;}:host([data-type\x3d'header']) [part\x3dcell]{background:var(--x-table-cell-header-bg);color:var(--x-table-cell-header-color);font-weight:var(--x-table-cell-header-font-weight);}:host([data-align\x3d'start']) [part\x3dcell]{justify-content:flex-start;}:host([data-align\x3d'center']) [part\x3dcell]{justify-content:center;}:host([data-align\x3d'end']) [part\x3dcell]{justify-content:flex-end;}:host([data-valign\x3d'top']) [part\x3dcell]{align-items:flex-start;}:host([data-valign\x3d'middle']) [part\x3dcell]{align-items:center;}:host([data-valign\x3d'bottom']) [part\x3dcell]{align-items:flex-end;}[part\x3dcontent]{flex:1 1 auto;min-width:0;}:host([data-truncate]) [part\x3dcontent]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dsort-btn]{flex:0 0 auto;appearance:none;border:0;background:transparent;padding:2px;margin:0 0 0 4px;cursor:pointer;color:var(--x-table-cell-sort-color);display:inline-flex;align-items:center;justify-content:center;border-radius:4px;transition:color var(--x-table-cell-transition-duration) ease;line-height:1;}[part\x3dsort-btn]:hover{color:var(--x-table-cell-sort-hover-color);}[part\x3dsort-btn]:focus{outline:none;}[part\x3dsort-btn]:focus-visible{outline:2px solid var(--x-table-cell-focus-ring);outline-offset:2px;}[part\x3dsort-btn][disabled]{cursor:default;pointer-events:none;opacity:0.4;}[part\x3dsort-btn][hidden]{display:none !important;}@media (prefers-reduced-motion:reduce){[part\x3dsort-btn]{transition:none !important;}}";
5
5
  d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(g);h.setAttribute("part","sort-btn");h.setAttribute("type","button");k.setAttribute("name","sort-icon");m.setAttribute("part","sort-icon-default");m.setAttribute("aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';k.appendChild(m);h.appendChild(k);d.appendChild(e);d.appendChild(h);
6
- b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.Q(null,5,[$APP.kh,b,Kx,d,Lx,e,Mx,h,Nx,m],null);return $APP.l(a,"__xTableCellRefs")},fy=function(a){a=$APP.Xe([$APP.wh,Px,Qx,Rx,Ex,Sx,$APP.bh,Tx,Ux,$APP.V,Vx],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
- var b=$APP.N(a);a=$APP.I(b,$APP.V);var c=$APP.I(b,Vx),d=$APP.I(b,$APP.wh),e=$APP.I(b,Px),g=$APP.I(b,Qx),h=$APP.I(b,Rx),k=$APP.I(b,Ex),m=$APP.I(b,Sx),q=$APP.I(b,$APP.bh),r=$APP.I(b,Tx);b=$APP.I(b,Ux);return $APP.Xe([$APP.Xh,Fx,Wx,$APP.Z,Xx,Ex,$APP.Kh,Yx,Sx,$APP.V,Zx],[Cx(d,$x,"start"),Cx(h,ay,"none"),Cx(g,by,"middle"),Cx(q,cy,"data"),Cx(b,dy,"col"),$APP.K(k),Cx(r,ey,"none"),Dx(c),$APP.K(m),$APP.K(a),Dx(e)])},gy=function(a){var b=fy(a);if($APP.O($APP.l(a,"__xTableCellModel"),b)){b=$APP.N(b);var c=$APP.I(b,
8
- Yx),d=$APP.I(b,Zx),e=$APP.I(b,$APP.V),g=$APP.I(b,Fx),h=Ox(a);h=$APP.N(h);var k=$APP.I(h,Mx);h=$APP.I(h,Nx);var m=Hx(b),q=$APP.N(b),r=$APP.I(q,$APP.Z),v=$APP.I(q,$APP.Xh),w=$APP.I(q,Wx),z=$APP.I(q,$APP.Kh),A=$APP.I(q,Sx),D=$APP.I(q,$APP.V);$APP.I(q,Ex);$APP.I(q,Fx);var G=a.setAttribute,J=$APP.N(q);var E=$APP.I(J,$APP.Z);J=$APP.I(J,Xx);E=$APP.C.h(E,"header")?$APP.C.h(J,"row")||$APP.C.h(J,"rowgroup")?"rowheader":"columnheader":"cell";G.call(a,"role",E);q=Gx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
- a.removeAttribute("aria-sort");$APP.n(D)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",v);a.setAttribute("data-valign",w);$APP.C.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.T.g(c):"";a.style.gridRow=d>1?"span "+$APP.T.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.N(b);
10
- m=$APP.I(r,$APP.Z);d=$APP.I(r,Ex);r=$APP.I(r,$APP.V);m=$APP.C.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Jx(g));k.disabled=$APP.K(e);a:switch(e=$APP.N(b),$APP.I(e,Fx)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
- break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},hy=function(a){var b=a.getAttribute("sort-direction");b=Cx(b,ay,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Ix(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},iy=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
- return $APP.n(c)?c:fy(a)}();$APP.n(function(){var c=Hx(b);return $APP.n(c)?$APP.p($APP.V.g(b)):c}())&&hy(a);return null},jy=function(a){function b(){return iy(a)}var c=Ox(a);c=$APP.N(c);$APP.I(c,Mx).addEventListener("click",b);$APP.la(a,"__xTableCellHandlers",{"sort-click":b})},ky=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.N(c),c=$APP.I(c,Mx),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
- null},ly=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.T.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
14
- Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"valign",{get:function(){var b=this.getAttribute("valign");return $APP.n(b)?b:"middle"},set:function(b){return $APP.n(b)?this.setAttribute("valign",""+$APP.T.g(b)):this.removeAttribute("valign")},enumerable:!0,configurable:!0});Object.defineProperty(a,
15
- "truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.T.g(b)):this.removeAttribute("sticky")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortable",{get:function(){return this.hasAttribute("sortable")},
16
- set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return Dx(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
17
- b>0?this.setAttribute("col-span",""+$APP.T.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return Dx(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.T.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
- set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.T.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},py=function(){var a=class extends HTMLElement{};a.observedAttributes=my;a.prototype.connectedCallback=function(){Ox(this);ky(this);jy(this);gy(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:fy(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.Z);var g=$APP.I(e,Xx),h=$APP.I(e,Yx),k=$APP.I(e,Zx);e=$APP.I(e,
19
- $APP.Xh);b.call(this,new d("x-table-cell-connected",{detail:$APP.pg(new $APP.Q(null,5,[$APP.Z,c,Xx,g,ny,h,oy,k,$APP.Xh,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){ky(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&gy(this);return null};ly(a.prototype);return a},qy=function(){$APP.n(customElements.get("x-table-cell"))||
20
- customElements.define("x-table-cell",py());return null},Zx=new $APP.M(null,"row-span","row-span",-365554241),Xx=new $APP.M(null,"scope","scope",-439358418),Mx=new $APP.M(null,"sort-btn","sort-btn",1913954560),Lx=new $APP.M(null,"content","content",15833224),Sx=new $APP.M(null,"truncate?","truncate?",135673334),ny=new $APP.M(null,"colSpan","colSpan",872137394),Kx=new $APP.M(null,"cell","cell",764245084),Wx=new $APP.M(null,"valign","valign",1485197511),Ex=new $APP.M(null,"sortable?","sortable?",291547474),
21
- Nx=new $APP.M(null,"sort-icon-default","sort-icon-default",-596209230),Vx=new $APP.M(null,"col-span-raw","col-span-raw",1425293661),Qx=new $APP.M(null,"valign-raw","valign-raw",-1083375124),Rx=new $APP.M(null,"sort-direction-raw","sort-direction-raw",-1822100883),Tx=new $APP.M(null,"sticky-raw","sticky-raw",1857578519),Yx=new $APP.M(null,"col-span","col-span",-232603210),oy=new $APP.M(null,"rowSpan","rowSpan",826884002),Px=new $APP.M(null,"row-span-raw","row-span-raw",-1130003707),Ux=new $APP.M(null,
22
- "scope-raw","scope-raw",-773628648),Fx=new $APP.M(null,"sort-direction","sort-direction",-1635889628);var my="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
23
- $APP.Xe([$APP.Xh,oy,new $APP.M(null,"truncate","truncate",-1327322939),$APP.pi,Wx,$APP.Z,Xx,ny,$APP.Kh,new $APP.M(null,"sortable","sortable",2109633621),new $APP.M(null,"sortDirection","sortDirection",-45816999)],[new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.zh],null),new $APP.Q(null,1,[$APP.Z,$APP.Di],null),new $APP.Q(null,1,[$APP.Z,$APP.Di],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,
24
- 1,[$APP.Z,$APP.zh],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Di],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);$APP.sd(["x-table-cell-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Vh,$APP.X,$APP.Bi,$APP.X],null),$APP.ni,!0],null),"x-table-cell-connected",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,5,[$APP.Z,$APP.X,Xx,$APP.X,ny,$APP.zh,oy,$APP.zh,$APP.Xh,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.Q(null,1,[$APP.Y,$APP.td],null)]);
25
- var cy=new $APP.S(null,new $APP.Q(null,2,["data",null,"header",null],null),null),dy=new $APP.S(null,new $APP.Q(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),$x=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),by=new $APP.S(null,new $APP.Q(null,3,["top",null,"middle",null,"bottom",null],null),null),ey=new $APP.S(null,new $APP.Q(null,3,["none",null,"start",null,"end",null],null),null),ay=new $APP.S(null,new $APP.Q(null,3,["none",null,
26
- "desc",null,"asc",null],null),null);$APP.ja("baredom.exports.x_table_cell.init",qy);export const init=qy;
6
+ b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.Q(null,5,[$APP.Yh,b,qD,d,rD,e,sD,h,tD,m],null);return $APP.l(a,"__xTableCellRefs")},LD=function(a){a=$APP.gf([$APP.qi,vD,wD,xD,kD,$APP.di,$APP.Nh,yD,zD,$APP.V,AD],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
+ var b=$APP.N(a);a=$APP.H(b,$APP.V);var c=$APP.H(b,AD),d=$APP.H(b,$APP.qi),e=$APP.H(b,vD),g=$APP.H(b,wD),h=$APP.H(b,xD),k=$APP.H(b,kD),m=$APP.H(b,$APP.di),p=$APP.H(b,$APP.Nh),r=$APP.H(b,yD);b=$APP.H(b,zD);return $APP.gf([$APP.hj,lD,BD,$APP.Z,CD,kD,$APP.Ri,DD,$APP.di,$APP.V,ED],[iD(d,FD,"start"),iD(h,GD,"none"),iD(g,HD,"middle"),iD(p,ID,"data"),iD(b,JD,"col"),$APP.J(k),iD(r,KD,"none"),jD(c),$APP.J(m),$APP.J(a),jD(e)])},MD=function(a){var b=LD(a);if($APP.O($APP.l(a,"__xTableCellModel"),b)){b=$APP.N(b);
8
+ var c=$APP.H(b,DD),d=$APP.H(b,ED),e=$APP.H(b,$APP.V),g=$APP.H(b,lD),h=uD(a);h=$APP.N(h);var k=$APP.H(h,sD);h=$APP.H(h,tD);var m=nD(b),p=$APP.N(b),r=$APP.H(p,$APP.Z),v=$APP.H(p,$APP.hj),x=$APP.H(p,BD),y=$APP.H(p,$APP.Ri),A=$APP.H(p,$APP.di),D=$APP.H(p,$APP.V);$APP.H(p,kD);$APP.H(p,lD);var G=a.setAttribute,I=$APP.N(p);var F=$APP.H(I,$APP.Z);I=$APP.H(I,CD);F=$APP.C.h(F,"header")?$APP.C.h(I,"row")||$APP.C.h(I,"rowgroup")?"rowheader":"columnheader":"cell";G.call(a,"role",F);p=mD(p);$APP.n(p)?a.setAttribute("aria-sort",
9
+ p):a.removeAttribute("aria-sort");$APP.n(D)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",v);a.setAttribute("data-valign",x);$APP.C.h(y,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",y);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.S.g(c):"";a.style.gridRow=d>1?"span "+$APP.S.g(d):"";k.hidden=$APP.q(m);c=parseInt;r=$APP.N(b);
10
+ m=$APP.H(r,$APP.Z);d=$APP.H(r,kD);r=$APP.H(r,$APP.V);m=$APP.C.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.q(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",pD(g));k.disabled=$APP.J(e);a:switch(e=$APP.N(b),$APP.H(e,lD)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
+ break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},ND=function(a){var b=a.getAttribute("sort-direction");b=iD(b,GD,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:oD(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},OD=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
+ return $APP.n(c)?c:LD(a)}();$APP.n(function(){var c=nD(b);return $APP.n(c)?$APP.q($APP.V.g(b)):c}())&&ND(a);return null},PD=function(a){function b(){return OD(a)}var c=uD(a);c=$APP.N(c);$APP.H(c,sD).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},QD=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.N(c),c=$APP.H(c,sD),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
+ null},RD=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.S.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.S.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
14
+ Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.S.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"valign",{get:function(){var b=this.getAttribute("valign");return $APP.n(b)?b:"middle"},set:function(b){return $APP.n(b)?this.setAttribute("valign",""+$APP.S.g(b)):this.removeAttribute("valign")},enumerable:!0,configurable:!0});Object.defineProperty(a,
15
+ "truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.S.g(b)):this.removeAttribute("sticky")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortable",{get:function(){return this.hasAttribute("sortable")},
16
+ set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return jD(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.q(isNaN(b))&&
17
+ b>0?this.setAttribute("col-span",""+$APP.S.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return jD(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.q(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.S.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
+ set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.S.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},VD=function(){var a=class extends HTMLElement{};a.observedAttributes=SD;a.prototype.connectedCallback=function(){uD(this);QD(this);PD(this);MD(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:LD(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.H(e,$APP.Z);var g=$APP.H(e,CD),h=$APP.H(e,DD),k=$APP.H(e,ED);e=$APP.H(e,
19
+ $APP.hj);b.call(this,new d("x-table-cell-connected",{detail:$APP.Mg(new $APP.Q(null,5,[$APP.Z,c,CD,g,TD,h,UD,k,$APP.hj,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){QD(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&MD(this);return null};RD(a.prototype);return a},WD=function(){$APP.n(customElements.get("x-table-cell"))||
20
+ customElements.define("x-table-cell",VD());return null},ED=new $APP.M(null,"row-span","row-span",-365554241),CD=new $APP.M(null,"scope","scope",-439358418),sD=new $APP.M(null,"sort-btn","sort-btn",1913954560),rD=new $APP.M(null,"content","content",15833224),TD=new $APP.M(null,"colSpan","colSpan",872137394),qD=new $APP.M(null,"cell","cell",764245084),BD=new $APP.M(null,"valign","valign",1485197511),kD=new $APP.M(null,"sortable?","sortable?",291547474),tD=new $APP.M(null,"sort-icon-default","sort-icon-default",
21
+ -596209230),AD=new $APP.M(null,"col-span-raw","col-span-raw",1425293661),wD=new $APP.M(null,"valign-raw","valign-raw",-1083375124),xD=new $APP.M(null,"sort-direction-raw","sort-direction-raw",-1822100883),yD=new $APP.M(null,"sticky-raw","sticky-raw",1857578519),DD=new $APP.M(null,"col-span","col-span",-232603210),UD=new $APP.M(null,"rowSpan","rowSpan",826884002),vD=new $APP.M(null,"row-span-raw","row-span-raw",-1130003707),zD=new $APP.M(null,"scope-raw","scope-raw",-773628648),lD=new $APP.M(null,
22
+ "sort-direction","sort-direction",-1635889628);var SD="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
23
+ $APP.gf([$APP.hj,UD,$APP.ni,$APP.Fj,BD,$APP.Z,CD,TD,$APP.Ri,new $APP.M(null,"sortable","sortable",2109633621),new $APP.M(null,"sortDirection","sortDirection",-45816999)],[new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.U],null),new $APP.Q(null,
24
+ 1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Yj],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);$APP.zd(["x-table-cell-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.dj,$APP.X,$APP.Wj,$APP.X],null),$APP.Dj,!0],null),"x-table-cell-connected",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,5,[$APP.Z,$APP.X,CD,$APP.X,TD,$APP.U,UD,$APP.U,$APP.hj,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.Q(null,1,[$APP.Y,$APP.Ad],null)]);
25
+ var ID=new $APP.R(null,new $APP.Q(null,2,["data",null,"header",null],null),null),JD=new $APP.R(null,new $APP.Q(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),FD=new $APP.R(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),HD=new $APP.R(null,new $APP.Q(null,3,["top",null,"middle",null,"bottom",null],null),null),KD=new $APP.R(null,new $APP.Q(null,3,["none",null,"start",null,"end",null],null),null),GD=new $APP.R(null,new $APP.Q(null,3,["none",null,
26
+ "desc",null,"asc",null],null),null);$APP.ja("baredom.exports.x_table_cell.init",WD);export const init=WD;