@vanelsas/baredom 0.1.11-alpha → 0.2.2-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +2 -2
  3. package/dist/base.js +245 -245
  4. package/dist/x-alert.js +9 -9
  5. package/dist/x-avatar-group.js +4 -4
  6. package/dist/x-avatar.js +17 -17
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-breadcrumbs.js +7 -7
  9. package/dist/x-button.js +15 -15
  10. package/dist/x-cancel-dialogue.js +14 -14
  11. package/dist/x-card.js +2 -2
  12. package/dist/x-chart.js +44 -44
  13. package/dist/x-checkbox.js +7 -7
  14. package/dist/x-chip.js +5 -5
  15. package/dist/x-collapse.js +11 -11
  16. package/dist/x-command-palette.js +17 -17
  17. package/dist/x-container.js +6 -6
  18. package/dist/x-context-menu.js +19 -19
  19. package/dist/x-copy.js +14 -14
  20. package/dist/x-currency-field.js +21 -21
  21. package/dist/x-date-picker.js +36 -36
  22. package/dist/x-divider.js +10 -10
  23. package/dist/x-drawer.js +9 -9
  24. package/dist/x-dropdown.js +6 -6
  25. package/dist/x-fieldset.js +5 -5
  26. package/dist/x-file-download.js +6 -6
  27. package/dist/x-form-field.js +17 -15
  28. package/dist/x-form.js +10 -10
  29. package/dist/x-grid.js +7 -7
  30. package/dist/x-menu-item.js +10 -10
  31. package/dist/x-menu.js +10 -10
  32. package/dist/x-modal.js +13 -13
  33. package/dist/x-navbar.js +12 -12
  34. package/dist/x-notification-center.js +6 -6
  35. package/dist/x-pagination.js +16 -16
  36. package/dist/x-popover.js +7 -7
  37. package/dist/x-progress-circle.js +9 -9
  38. package/dist/x-progress.js +8 -8
  39. package/dist/x-radio.js +9 -9
  40. package/dist/x-search-field.js +11 -11
  41. package/dist/x-select.js +10 -10
  42. package/dist/x-sidebar.js +24 -24
  43. package/dist/x-skeleton.js +5 -5
  44. package/dist/x-slider.js +9 -9
  45. package/dist/x-spacer.js +5 -5
  46. package/dist/x-spinner.js +5 -5
  47. package/dist/x-stat.js +9 -9
  48. package/dist/x-stepper.js +6 -6
  49. package/dist/x-switch.js +11 -11
  50. package/dist/x-tab.js +3 -3
  51. package/dist/x-table-cell.js +23 -23
  52. package/dist/x-table-row.js +5 -5
  53. package/dist/x-table.js +6 -6
  54. package/dist/x-tabs.js +7 -7
  55. package/dist/x-text-area.js +18 -18
  56. package/dist/x-timeline-item.js +13 -13
  57. package/dist/x-timeline.js +9 -9
  58. package/dist/x-toast.js +11 -11
  59. package/dist/x-toaster.js +1 -1
  60. package/package.json +1 -1
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Dx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(b,a)?a:c},Ex=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Hx=function(a){var b=$APP.M(a);a=$APP.I(b,Fx);b=$APP.I(b,Gx);if($APP.n($APP.n(a)?a:$APP.N(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Ix=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.Z);b=$APP.I(b,Fx);return(a=$APP.D.h(a,
3
- "header"))?b:a},Jx=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Kx=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},Px=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
- f=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
- d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(f);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.P(null,5,[$APP.sh,b,Lx,d,Mx,e,Nx,h,Ox,m],null);return $APP.l(a,"__xTableCellRefs")},gy=function(a){a=$APP.bf([$APP.Dh,Qx,Rx,Sx,Fx,Tx,$APP.jh,Ux,Vx,$APP.U,Wx],[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.M(a);a=$APP.I(b,$APP.U);var c=$APP.I(b,Wx),d=$APP.I(b,$APP.Dh),e=$APP.I(b,Qx),f=$APP.I(b,Rx),h=$APP.I(b,Sx),k=$APP.I(b,Fx),m=$APP.I(b,Tx),q=$APP.I(b,$APP.jh),r=$APP.I(b,Ux);b=$APP.I(b,Vx);return $APP.bf([$APP.ei,Gx,Xx,$APP.Z,Yx,Fx,$APP.Rh,Zx,Tx,$APP.U,$x],[Dx(d,ay,"start"),Dx(h,by,"none"),Dx(f,cy,"middle"),Dx(q,dy,"data"),Dx(b,ey,"col"),$APP.J(k),Dx(r,fy,"none"),Ex(c),$APP.J(m),$APP.J(a),Ex(e)])},hy=function(a){var b=gy(a);if($APP.N($APP.l(a,"__xTableCellModel"),b)){b=$APP.M(b);var c=$APP.I(b,
8
- Zx),d=$APP.I(b,$x),e=$APP.I(b,$APP.U),f=$APP.I(b,Gx),h=Px(a);h=$APP.M(h);var k=$APP.I(h,Nx);h=$APP.I(h,Ox);var m=Ix(b),q=$APP.M(b),r=$APP.I(q,$APP.Z),u=$APP.I(q,$APP.ei),w=$APP.I(q,Xx),z=$APP.I(q,$APP.Rh),A=$APP.I(q,Tx),C=$APP.I(q,$APP.U);$APP.I(q,Fx);$APP.I(q,Gx);var F=a.setAttribute,E=$APP.M(q);var Q=$APP.I(E,$APP.Z);E=$APP.I(E,Yx);Q=$APP.D.h(Q,"header")?$APP.D.h(E,"row")||$APP.D.h(E,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",Q);q=Hx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
- a.removeAttribute("aria-sort");$APP.n(C)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",u);a.setAttribute("data-valign",w);$APP.D.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.S.g(c):"";a.style.gridRow=d>1?"span "+$APP.S.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.M(b);
10
- m=$APP.I(r,$APP.Z);d=$APP.I(r,Fx);r=$APP.I(r,$APP.U);m=$APP.D.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Kx(f));k.disabled=$APP.J(e);a:switch(e=$APP.M(b),$APP.I(e,Gx)){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}},iy=function(a){var b=a.getAttribute("sort-direction");b=Dx(b,by,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Jx(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},jy=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
- return $APP.n(c)?c:gy(a)}();$APP.n(function(){var c=Ix(b);return $APP.n(c)?$APP.p($APP.U.g(b)):c}())&&iy(a);return null},ky=function(a){function b(){return jy(a)}var c=Px(a);c=$APP.M(c);$APP.I(c,Nx).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},ly=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.M(c),c=$APP.I(c,Nx),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
- null},my=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});
2
+ var Cx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(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.M(a);a=$APP.I(b,Ex);b=$APP.I(b,Fx);if($APP.n($APP.n(a)?a:$APP.N(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Hx=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.Z);b=$APP.I(b,Ex);return(a=$APP.E.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"),
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
+ 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.P(null,5,[$APP.sh,b,Kx,d,Lx,e,Mx,h,Nx,m],null);return $APP.l(a,"__xTableCellRefs")},fy=function(a){a=$APP.bf([$APP.Dh,Px,Qx,Rx,Ex,Sx,$APP.jh,Tx,Ux,$APP.U,Vx],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
+ var b=$APP.M(a);a=$APP.I(b,$APP.U);var c=$APP.I(b,Vx),d=$APP.I(b,$APP.Dh),e=$APP.I(b,Px),g=$APP.I(b,Qx),h=$APP.I(b,Rx),k=$APP.I(b,Ex),m=$APP.I(b,Sx),q=$APP.I(b,$APP.jh),r=$APP.I(b,Tx);b=$APP.I(b,Ux);return $APP.bf([$APP.ei,Fx,Wx,$APP.Z,Xx,Ex,$APP.Rh,Yx,Sx,$APP.U,Zx],[Cx(d,$x,"start"),Cx(h,ay,"none"),Cx(g,by,"middle"),Cx(q,cy,"data"),Cx(b,dy,"col"),$APP.J(k),Cx(r,ey,"none"),Dx(c),$APP.J(m),$APP.J(a),Dx(e)])},gy=function(a){var b=fy(a);if($APP.N($APP.l(a,"__xTableCellModel"),b)){b=$APP.M(b);var c=$APP.I(b,
8
+ Yx),d=$APP.I(b,Zx),e=$APP.I(b,$APP.U),g=$APP.I(b,Fx),h=Ox(a);h=$APP.M(h);var k=$APP.I(h,Mx);h=$APP.I(h,Nx);var m=Hx(b),q=$APP.M(b),r=$APP.I(q,$APP.Z),v=$APP.I(q,$APP.ei),w=$APP.I(q,Wx),z=$APP.I(q,$APP.Rh),A=$APP.I(q,Sx),C=$APP.I(q,$APP.U);$APP.I(q,Ex);$APP.I(q,Fx);var F=a.setAttribute,D=$APP.M(q);var Q=$APP.I(D,$APP.Z);D=$APP.I(D,Xx);Q=$APP.E.h(Q,"header")?$APP.E.h(D,"row")||$APP.E.h(D,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",Q);q=Gx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
+ a.removeAttribute("aria-sort");$APP.n(C)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",v);a.setAttribute("data-valign",w);$APP.E.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.S.g(c):"";a.style.gridRow=d>1?"span "+$APP.S.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.M(b);
10
+ m=$APP.I(r,$APP.Z);d=$APP.I(r,Ex);r=$APP.I(r,$APP.U);m=$APP.E.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Jx(g));k.disabled=$APP.J(e);a:switch(e=$APP.M(b),$APP.I(e,Fx)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
+ 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.U.g(b)):c}())&&hy(a);return null},jy=function(a){function b(){return iy(a)}var c=Ox(a);c=$APP.M(c);$APP.I(c,Mx).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},ky=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.M(c),c=$APP.I(c,Mx),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
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.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
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
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 Ex(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(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 Ex(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(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})},qy=function(){var a=class extends HTMLElement{};a.observedAttributes=ny;a.prototype.connectedCallback=function(){Px(this);ly(this);ky(this);hy(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:gy(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Z);var f=$APP.I(e,Yx),h=$APP.I(e,Zx),k=$APP.I(e,$x);e=$APP.I(e,
19
- $APP.ei);b.call(this,new d("x-table-cell-connected",{detail:$APP.xg(new $APP.P(null,5,[$APP.Z,c,Yx,f,oy,h,py,k,$APP.ei,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){ly(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.N(c,d)&&hy(this);return null};my(a.prototype);return a},ry=function(){$APP.n(customElements.get("x-table-cell"))||
20
- customElements.define("x-table-cell",qy());return null},$x=new $APP.K(null,"row-span","row-span",-365554241),Yx=new $APP.K(null,"scope","scope",-439358418),Nx=new $APP.K(null,"sort-btn","sort-btn",1913954560),Mx=new $APP.K(null,"content","content",15833224),Tx=new $APP.K(null,"truncate?","truncate?",135673334),oy=new $APP.K(null,"colSpan","colSpan",872137394),Lx=new $APP.K(null,"cell","cell",764245084),Xx=new $APP.K(null,"valign","valign",1485197511),Fx=new $APP.K(null,"sortable?","sortable?",291547474),
21
- Ox=new $APP.K(null,"sort-icon-default","sort-icon-default",-596209230),Wx=new $APP.K(null,"col-span-raw","col-span-raw",1425293661),Rx=new $APP.K(null,"valign-raw","valign-raw",-1083375124),Sx=new $APP.K(null,"sort-direction-raw","sort-direction-raw",-1822100883),Ux=new $APP.K(null,"sticky-raw","sticky-raw",1857578519),Zx=new $APP.K(null,"col-span","col-span",-232603210),py=new $APP.K(null,"rowSpan","rowSpan",826884002),Qx=new $APP.K(null,"row-span-raw","row-span-raw",-1130003707),Vx=new $APP.K(null,
22
- "scope-raw","scope-raw",-773628648),Gx=new $APP.K(null,"sort-direction","sort-direction",-1635889628);var ny="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
23
- $APP.bf([$APP.ei,py,new $APP.K(null,"truncate","truncate",-1327322939),$APP.yi,Xx,$APP.Z,Yx,oy,$APP.Rh,new $APP.K(null,"sortable","sortable",2109633621),new $APP.K(null,"sortDirection","sortDirection",-45816999)],[new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.Gh],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,
24
- 1,[$APP.Z,$APP.Gh],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.X],null)]);$APP.wd(["x-table-cell-sort",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.ci,$APP.X,$APP.Ji,$APP.X],null),$APP.wi,!0],null),"x-table-cell-connected",new $APP.P(null,1,[$APP.Y,new $APP.P(null,5,[$APP.Z,$APP.X,Yx,$APP.X,oy,$APP.Gh,py,$APP.Gh,$APP.ei,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.P(null,1,[$APP.Y,$APP.xd],null)]);
25
- var dy=new $APP.R(null,new $APP.P(null,2,["data",null,"header",null],null),null),ey=new $APP.R(null,new $APP.P(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),ay=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),cy=new $APP.R(null,new $APP.P(null,3,["top",null,"middle",null,"bottom",null],null),null),fy=new $APP.R(null,new $APP.P(null,3,["none",null,"start",null,"end",null],null),null),by=new $APP.R(null,new $APP.P(null,3,["none",null,
26
- "desc",null,"asc",null],null),null);$APP.ka("baredom.exports.x_table_cell.init",ry);export const init=ry;
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.S.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.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})},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.M(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.ei);b.call(this,new d("x-table-cell-connected",{detail:$APP.xg(new $APP.P(null,5,[$APP.Z,c,Xx,g,ny,h,oy,k,$APP.ei,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.N(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.K(null,"row-span","row-span",-365554241),Xx=new $APP.K(null,"scope","scope",-439358418),Mx=new $APP.K(null,"sort-btn","sort-btn",1913954560),Lx=new $APP.K(null,"content","content",15833224),Sx=new $APP.K(null,"truncate?","truncate?",135673334),ny=new $APP.K(null,"colSpan","colSpan",872137394),Kx=new $APP.K(null,"cell","cell",764245084),Wx=new $APP.K(null,"valign","valign",1485197511),Ex=new $APP.K(null,"sortable?","sortable?",291547474),
21
+ Nx=new $APP.K(null,"sort-icon-default","sort-icon-default",-596209230),Vx=new $APP.K(null,"col-span-raw","col-span-raw",1425293661),Qx=new $APP.K(null,"valign-raw","valign-raw",-1083375124),Rx=new $APP.K(null,"sort-direction-raw","sort-direction-raw",-1822100883),Tx=new $APP.K(null,"sticky-raw","sticky-raw",1857578519),Yx=new $APP.K(null,"col-span","col-span",-232603210),oy=new $APP.K(null,"rowSpan","rowSpan",826884002),Px=new $APP.K(null,"row-span-raw","row-span-raw",-1130003707),Ux=new $APP.K(null,
22
+ "scope-raw","scope-raw",-773628648),Fx=new $APP.K(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.bf([$APP.ei,oy,new $APP.K(null,"truncate","truncate",-1327322939),$APP.yi,Wx,$APP.Z,Xx,ny,$APP.Rh,new $APP.K(null,"sortable","sortable",2109633621),new $APP.K(null,"sortDirection","sortDirection",-45816999)],[new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.Gh],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,
24
+ 1,[$APP.Z,$APP.Gh],null),new $APP.P(null,1,[$APP.Z,$APP.X],null),new $APP.P(null,1,[$APP.Z,$APP.Li],null),new $APP.P(null,1,[$APP.Z,$APP.X],null)]);$APP.wd(["x-table-cell-sort",new $APP.P(null,2,[$APP.Y,new $APP.P(null,2,[$APP.ci,$APP.X,$APP.Ji,$APP.X],null),$APP.wi,!0],null),"x-table-cell-connected",new $APP.P(null,1,[$APP.Y,new $APP.P(null,5,[$APP.Z,$APP.X,Xx,$APP.X,ny,$APP.Gh,oy,$APP.Gh,$APP.ei,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.P(null,1,[$APP.Y,$APP.xd],null)]);
25
+ var cy=new $APP.R(null,new $APP.P(null,2,["data",null,"header",null],null),null),dy=new $APP.R(null,new $APP.P(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),$x=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null),by=new $APP.R(null,new $APP.P(null,3,["top",null,"middle",null,"bottom",null],null),null),ey=new $APP.R(null,new $APP.P(null,3,["none",null,"start",null,"end",null],null),null),ay=new $APP.R(null,new $APP.P(null,3,["none",null,
26
+ "desc",null,"asc",null],null),null);$APP.ka("baredom.exports.x_table_cell.init",qy);export const init=qy;
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var Bp=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},Dp=function(a){var b=$APP.M(a);a=$APP.I(b,Cp);b=$APP.I(b,$APP.U);return $APP.n(a)?$APP.p(b):a},Ep=function(a){if(!$APP.n($APP.l(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring:rgba(59,130,246,0.5);--x-table-row-transition-duration:150ms;--x-table-row-disabled-opacity:0.45;--x-table-row-cursor:pointer;background:var(--x-table-row-bg);transition:background var(--x-table-row-transition-duration) ease;}@media (prefers-color-scheme:dark){:host{--x-table-row-hover-bg:rgba(255,255,255,0.04);--x-table-row-selected-bg:rgba(99,160,255,0.12);--x-table-row-selected-hover-bg:rgba(99,160,255,0.16);}}:host([data-selected]){background:var(--x-table-row-selected-bg);}:host([data-interactive]){cursor:var(--x-table-row-cursor);}:host([data-interactive]:hover){background:var(--x-table-row-hover-bg);}:host([data-interactive][data-selected]:hover){background:var(--x-table-row-selected-hover-bg);}:host([data-interactive]:focus){outline:none;}:host([data-interactive]:focus-visible){outline:2px solid var(--x-table-row-focus-ring);outline-offset:-2px;}:host([disabled]){opacity:var(--x-table-row-disabled-opacity);pointer-events:none;}slot{display:contents;}@media (prefers-reduced-motion:reduce){:host{transition:none !important;}}";
3
3
  b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.P(null,2,[$APP.sh,b,$APP.Qh,d],null)}},Hp=function(a){a=new $APP.P(null,4,[$APP.Jh,a.hasAttribute("selected"),$APP.U,a.hasAttribute("disabled"),Cp,a.hasAttribute("interactive"),Fp,a.getAttribute("row-index")],null);var b=$APP.M(a);a=$APP.I(b,$APP.Jh);var c=$APP.I(b,$APP.U),d=$APP.I(b,Cp);b=$APP.I(b,Fp);return new $APP.P(null,4,[$APP.Jh,$APP.J(a),$APP.U,$APP.J(c),Cp,$APP.J(d),Gp,Bp(b)],null)},Ip=function(a){var b=Hp(a);if($APP.N($APP.l(a,
4
- "__xTableRowModel"),b)){Ep(a);var c=$APP.M(b),d=$APP.I(c,$APP.Jh),e=$APP.I(c,$APP.U),f=$APP.I(c,Cp),h=$APP.I(c,Gp);a.setAttribute("role","row");var k=$APP.M(c);var m=$APP.I(k,$APP.Jh);k=$APP.I(k,Cp);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.S.g(h)):a.removeAttribute("aria-rowindex");$APP.n(d)?
5
- a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(f)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(Dp(c))?0:-1;a.__xTableRowModel=b}},Jp=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.n(b)?b:Hp(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Jh);var f=$APP.I(e,$APP.U);e=$APP.I(e,Gp);b.call(a,new d("x-table-row-click",{detail:$APP.xg(new $APP.P(null,3,[$APP.ti,$APP.n(e)?e:0,$APP.bj,c,$APP.yi,f],
6
- null)),bubbles:!0,composed:!0,cancelable:!0}))},Kp=function(a){function b(d){var e=d.key;if($APP.D.h(e,"Enter")||$APP.D.h(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.n(e)?e:Hp(a),$APP.n(Dp(e))&&(d.preventDefault(),Jp(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:Hp(a);$APP.n(Dp(d))&&Jp(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTableRowHandlers",{click:c,keydown:b})},Lp=function(a){var b=$APP.l(a,"__xTableRowHandlers");
4
+ "__xTableRowModel"),b)){Ep(a);var c=$APP.M(b),d=$APP.I(c,$APP.Jh),e=$APP.I(c,$APP.U),g=$APP.I(c,Cp),h=$APP.I(c,Gp);a.setAttribute("role","row");var k=$APP.M(c);var m=$APP.I(k,$APP.Jh);k=$APP.I(k,Cp);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.S.g(h)):a.removeAttribute("aria-rowindex");$APP.n(d)?
5
+ a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(Dp(c))?0:-1;a.__xTableRowModel=b}},Jp=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.n(b)?b:Hp(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Jh);var g=$APP.I(e,$APP.U);e=$APP.I(e,Gp);b.call(a,new d("x-table-row-click",{detail:$APP.xg(new $APP.P(null,3,[$APP.ti,$APP.n(e)?e:0,$APP.bj,c,$APP.yi,g],
6
+ null)),bubbles:!0,composed:!0,cancelable:!0}))},Kp=function(a){function b(d){var e=d.key;if($APP.E.h(e,"Enter")||$APP.E.h(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.n(e)?e:Hp(a),$APP.n(Dp(e))&&(d.preventDefault(),Jp(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:Hp(a);$APP.n(Dp(d))&&Jp(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTableRowHandlers",{click:c,keydown:b})},Lp=function(a){var b=$APP.l(a,"__xTableRowHandlers");
7
7
  if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},Mp=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
8
  set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return Bp(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
9
- b>0?this.setAttribute("row-index",""+$APP.S.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Op=function(){var a=class extends HTMLElement{};a.observedAttributes=Np;a.prototype.connectedCallback=function(){Ep(this);Lp(this);Kp(this);Ip(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.n(b)?b:Hp(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Jh);var f=$APP.I(e,$APP.U),h=$APP.I(e,Cp);e=$APP.I(e,Gp);b.call(this,new d("x-table-row-connected",{detail:$APP.xg(new $APP.P(null,
10
- 4,[$APP.ti,$APP.n(e)?e:0,$APP.bj,c,$APP.yi,f,$APP.Sh,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Lp(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Ip(this);return null};Mp(a.prototype);return a},Pp=function(){$APP.n(customElements.get("x-table-row"))||customElements.define("x-table-row",
9
+ b>0?this.setAttribute("row-index",""+$APP.S.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Op=function(){var a=class extends HTMLElement{};a.observedAttributes=Np;a.prototype.connectedCallback=function(){Ep(this);Lp(this);Kp(this);Ip(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.n(b)?b:Hp(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Jh);var g=$APP.I(e,$APP.U),h=$APP.I(e,Cp);e=$APP.I(e,Gp);b.call(this,new d("x-table-row-connected",{detail:$APP.xg(new $APP.P(null,
10
+ 4,[$APP.ti,$APP.n(e)?e:0,$APP.bj,c,$APP.yi,g,$APP.Sh,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Lp(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Ip(this);return null};Mp(a.prototype);return a},Pp=function(){$APP.n(customElements.get("x-table-row"))||customElements.define("x-table-row",
11
11
  Op());return null},Cp=new $APP.K(null,"interactive?","interactive?",367617676),Gp=new $APP.K(null,"row-index","row-index",-828710296),Fp=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var Np=["selected","disabled","interactive","row-index"];$APP.wd(["x-table-row-click",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[$APP.ti,$APP.Gh,$APP.bj,$APP.Li,$APP.yi,$APP.Li],null),$APP.wi,!0],null),"x-table-row-connected",new $APP.P(null,2,[$APP.Y,new $APP.P(null,4,[$APP.ti,$APP.Gh,$APP.bj,$APP.Li,$APP.yi,$APP.Li,$APP.Sh,$APP.Li],null),$APP.wi,!1],null),"x-table-row-disconnected",new $APP.P(null,2,[$APP.Y,$APP.xd,$APP.wi,!1],null)]);$APP.ka("baredom.exports.x_table_row.init",Pp);export const init=Pp;
package/dist/x-table.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var ws=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},ys=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:rgba(0,0,0,0.1);--x-table-border-radius:8px;--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:inherit;--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:rgba(255,255,255,0.1);--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
3
  d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.P(null,3,[$APP.sh,b,xs,d,$APP.Qh,e],null);return $APP.l(a,"__xTableRefs")},Ks=function(a){a=new $APP.P(null,8,[zs,a.getAttribute("columns"),As,a.getAttribute("caption"),Bs,a.getAttribute("selectable"),$APP.lh,a.hasAttribute("striped"),Cs,a.hasAttribute("bordered"),Ds,a.hasAttribute("full-width"),Es,a.hasAttribute("compact"),Fs,a.getAttribute("row-count")],null);var b=
4
- $APP.M(a),c=$APP.I(b,zs),d=$APP.I(b,As),e=$APP.I(b,Bs);a=$APP.I(b,$APP.lh);var f=$APP.I(b,Cs),h=$APP.I(b,Ds),k=$APP.I(b,Es);b=$APP.I(b,Fs);a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.D.h(c,""+$APP.S.g(m))?"repeat("+$APP.S.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Cc(Gs,e)?e:"none";return new $APP.P(null,8,[$APP.Tg,c,Hs,d,Is,e,$APP.lh,$APP.J(a),Cs,$APP.J(f),Ds,$APP.J(h),Es,$APP.J(k),
5
- Js,ws(b)],null)},Ls=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Qc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Ms=function(a){var b=Ks(a);if($APP.N($APP.l(a,"__xTableModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.Tg),d=$APP.I(b,Hs),e=$APP.I(b,Is),f=$APP.I(b,$APP.lh),h=$APP.I(b,Cs),k=$APP.I(b,Ds),m=$APP.I(b,Es),q=$APP.I(b,Js),r=ys(a);r=$APP.M(r);r=$APP.I(r,xs);a.style.gridTemplateColumns=$APP.n(c)?
6
- c:"";a.setAttribute("role",$APP.D.h(e,"none")?"table":"grid");c=$APP.D.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");q!=null?a.setAttribute("aria-rowcount",""+$APP.S.g(q)):a.removeAttribute("aria-rowcount");$APP.N(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.N(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(f)?a.setAttribute("data-striped",
7
- ""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(k)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(f)&&Ls(a);a.__xTableModel=b}},Ps=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Ks(a);$APP.n($APP.lh.g(e))&&Ls(a);return null}function c(e){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:Ks(a);
8
- var h=Is.g(f);if($APP.N(h,"none")){f=e.target;e=$APP.l(e.detail,"rowIndex");var k=f.hasAttribute("selected");k=($APP.D.h(h,"single"),$APP.p(k));e=$APP.xg(new $APP.P(null,3,[$APP.ti,$APP.n(e)?e:0,$APP.bj,k,Ns,h],null));a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0}));if($APP.D.h(h,"single")){h=a.querySelectorAll("x-table-row[selected]");e=h.length;for(k=0;;)if(k<e)h[k].removeAttribute("selected"),k+=1;else break;f.setAttribute("selected","")}else $APP.D.h(h,
9
- "multi")&&($APP.n(f.hasAttribute("selected"))?f.removeAttribute("selected"):f.setAttribute("selected",""))}return null}function d(e){var f=e.target;f=Array.from(f.parentElement.querySelectorAll("x-table-cell")).indexOf(f);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");f>=0&&(e.stopPropagation(),e=$APP.xg(new $APP.P(null,3,[Os,f,$APP.ci,h,$APP.Ji,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));return null}a.addEventListener("x-table-cell-sort",
4
+ $APP.M(a),c=$APP.I(b,zs),d=$APP.I(b,As),e=$APP.I(b,Bs);a=$APP.I(b,$APP.lh);var g=$APP.I(b,Cs),h=$APP.I(b,Ds),k=$APP.I(b,Es);b=$APP.I(b,Fs);a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.E.h(c,""+$APP.S.g(m))?"repeat("+$APP.S.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Cc(Gs,e)?e:"none";return new $APP.P(null,8,[$APP.Tg,c,Hs,d,Is,e,$APP.lh,$APP.J(a),Cs,$APP.J(g),Ds,$APP.J(h),Es,$APP.J(k),
5
+ Js,ws(b)],null)},Ls=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Qc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Ms=function(a){var b=Ks(a);if($APP.N($APP.l(a,"__xTableModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.Tg),d=$APP.I(b,Hs),e=$APP.I(b,Is),g=$APP.I(b,$APP.lh),h=$APP.I(b,Cs),k=$APP.I(b,Ds),m=$APP.I(b,Es),q=$APP.I(b,Js),r=ys(a);r=$APP.M(r);r=$APP.I(r,xs);a.style.gridTemplateColumns=$APP.n(c)?
6
+ c:"";a.setAttribute("role",$APP.E.h(e,"none")?"table":"grid");c=$APP.E.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");q!=null?a.setAttribute("aria-rowcount",""+$APP.S.g(q)):a.removeAttribute("aria-rowcount");$APP.N(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.N(d,"")?(r.textContent=d,r.removeAttribute("hidden")):(r.textContent="",r.setAttribute("hidden",""));$APP.n(g)?a.setAttribute("data-striped",
7
+ ""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(k)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(g)&&Ls(a);a.__xTableModel=b}},Ps=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Ks(a);$APP.n($APP.lh.g(e))&&Ls(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.n(g)?g:Ks(a);
8
+ var h=Is.g(g);if($APP.N(h,"none")){g=e.target;e=$APP.l(e.detail,"rowIndex");var k=g.hasAttribute("selected");k=($APP.E.h(h,"single"),$APP.p(k));e=$APP.xg(new $APP.P(null,3,[$APP.ti,$APP.n(e)?e:0,$APP.bj,k,Ns,h],null));a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0}));if($APP.E.h(h,"single")){h=a.querySelectorAll("x-table-row[selected]");e=h.length;for(k=0;;)if(k<e)h[k].removeAttribute("selected"),k+=1;else break;g.setAttribute("selected","")}else $APP.E.h(h,
9
+ "multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""))}return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.l(e.detail,"direction"),k=$APP.l(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.xg(new $APP.P(null,3,[Os,g,$APP.ci,h,$APP.Ji,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));return null}a.addEventListener("x-table-cell-sort",
10
10
  d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ma(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},Qs=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}a.__xTableHandlers=null},Rs=function(a){Object.defineProperty(a,
11
11
  "columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.S.g(b)):this.removeAttribute("columns")},enumerable:!0,configurable:!0});Object.defineProperty(a,"caption",{get:function(){var b=this.getAttribute("caption");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("caption",""+$APP.S.g(b)):this.removeAttribute("caption")},enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",
12
12
  {get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.S.g(b)):this.removeAttribute("selectable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0});Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var wt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.v(a);if(a==null)return $APP.rf;if(a instanceof $APP.Ib&&a.u===0)return $APP.sf(a.i);for(var b=$APP.hb($APP.rf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},Bt=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.T);var c=$APP.I(b,$APP.Ah),d=$APP.I(b,xt),e=$APP.I(b,$APP.W);b=$APP.I(b,yt);c=$APP.Cc(zt,c)?c:"horizontal";d=$APP.Cc(At,d)?d:"auto";return new $APP.P(null,5,[$APP.T,a,$APP.Ah,c,xt,d,$APP.W,e,yt,$APP.J(b)],
3
- null)},Ct=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},Dt=function(a){return new $APP.P(null,5,[$APP.T,a.getAttribute("value"),$APP.Ah,a.getAttribute("orientation"),xt,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),yt,a.hasAttribute("loop")],null)},Et=function(a){return $APP.be($APP.Kd(function(b){return $APP.D.h("X-TAB",b.tagName)},$APP.gc(a.children)))},Ft=function(a){return $APP.p(a.hasAttribute("disabled"))},Gt=function(a){return a.getAttribute("value")},Ht=function(a){return $APP.Ad(function(b){return Ft(b)?
4
- b:null},a)},It=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.N(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.D.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},Jt=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?a.setAttribute("selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},Kt=function(a,b){var c=a.getAttribute("tabindex");$APP.N(c,b)&&a.setAttribute("tabindex",b)},Lt=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
- $APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Mt=function(a){var b=Et(a),c=a.getAttribute("value"),d=wt($APP.Cd(Gt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Ht(b),c=$APP.n(c)?Gt(c):null);if($APP.n(c)){a:{d=$APP.v(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.F(null,h),m=$APP.D.h(Gt(k),c);Jt(k,m);m&&Ft(k)?Kt(k,"0"):Kt(k,"-1");h+=1}else if(d=$APP.v(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,f=$APP.B(e),e=k):(k=$APP.x(d),
6
- e=$APP.D.h(Gt(k),c),Jt(k,e),e&&Ft(k)?Kt(k,"0"):Kt(k,"-1"),d=$APP.y(d),e=null,f=0),h=0;else break a}a:for(b=$APP.v(b),d=null,f=e=0;;)if(f<e)k=d.F(null,f),Lt(k,$APP.D.h(Gt(k),c)),f+=1;else if(b=$APP.v(b))d=b,$APP.yc(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Lt(k,$APP.D.h(Gt(k),c)),b=$APP.y(d),d=null,e=0),f=0;else break a;It(a,c)}return c},Nt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(It(a,b),Mt(a),a.dispatchEvent(new CustomEvent("value-change",
2
+ var wt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.u(a);if(a==null)return $APP.rf;if(a instanceof $APP.Ib&&a.u===0)return $APP.sf(a.i);for(var b=$APP.hb($APP.rf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},Bt=function(a){var b=$APP.M(a);a=$APP.I(b,$APP.T);var c=$APP.I(b,$APP.Ah),d=$APP.I(b,xt),e=$APP.I(b,$APP.W);b=$APP.I(b,yt);c=$APP.Cc(zt,c)?c:"horizontal";d=$APP.Cc(At,d)?d:"auto";return new $APP.P(null,5,[$APP.T,a,$APP.Ah,c,xt,d,$APP.W,e,yt,$APP.J(b)],
3
+ null)},Ct=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},Dt=function(a){return new $APP.P(null,5,[$APP.T,a.getAttribute("value"),$APP.Ah,a.getAttribute("orientation"),xt,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),yt,a.hasAttribute("loop")],null)},Et=function(a){return $APP.be($APP.Kd(function(b){return $APP.E.h("X-TAB",b.tagName)},$APP.gc(a.children)))},Ft=function(a){return $APP.p(a.hasAttribute("disabled"))},Gt=function(a){return a.getAttribute("value")},Ht=function(a){return $APP.Ad(function(b){return Ft(b)?
4
+ b:null},a)},It=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.N(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.E.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},Jt=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?a.setAttribute("selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&a.removeAttribute("selected"))},Kt=function(a,b){var c=a.getAttribute("tabindex");$APP.N(c,b)&&a.setAttribute("tabindex",b)},Lt=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
+ $APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Mt=function(a){var b=Et(a),c=a.getAttribute("value"),d=wt($APP.Cd(Gt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Ht(b),c=$APP.n(c)?Gt(c):null);if($APP.n(c)){a:{d=$APP.u(b);for(var e=null,g=0,h=0;;)if(h<g){var k=e.F(null,h),m=$APP.E.h(Gt(k),c);Jt(k,m);m&&Ft(k)?Kt(k,"0"):Kt(k,"-1");h+=1}else if(d=$APP.u(d))$APP.yc(d)?(e=$APP.ob(d),d=$APP.pb(d),k=e,g=$APP.B(e),e=k):(k=$APP.x(d),
6
+ e=$APP.E.h(Gt(k),c),Jt(k,e),e&&Ft(k)?Kt(k,"0"):Kt(k,"-1"),d=$APP.y(d),e=null,g=0),h=0;else break a}a:for(b=$APP.u(b),d=null,g=e=0;;)if(g<e)k=d.F(null,g),Lt(k,$APP.E.h(Gt(k),c)),g+=1;else if(b=$APP.u(b))d=b,$APP.yc(d)?(b=$APP.ob(d),e=$APP.pb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Lt(k,$APP.E.h(Gt(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;It(a,c)}return c},Nt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(It(a,b),Mt(a),a.dispatchEvent(new CustomEvent("value-change",
7
7
  {detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Ot=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Pt=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Qt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=Bt(Dt(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.Ah.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.N(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Mt(a)},Rt=function(a){var b=
8
- new MutationObserver(function(){return Qt(a)});b.observe(a,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},St=function(a){function b(d){a:{var e=$APP.be($APP.Kd(Ft,Et(a))),f=Bt(Dt(a)),h=$APP.Ah.g(f);var k=xt.g(f);f=yt.g(f);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.D.h(h,"horizontal")&&$APP.D.h(m,"ArrowRight")?Ot(q,e,f):$APP.D.h(h,"horizontal")&&$APP.D.h(m,"ArrowLeft")?Pt(q,e,f):$APP.D.h(h,"vertical")&&
9
- $APP.D.h(m,"ArrowDown")?Ot(q,e,f):$APP.D.h(h,"vertical")&&$APP.D.h(m,"ArrowUp")?Pt(q,e,f):$APP.D.h(m,"Home")?0:$APP.D.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.H(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.D.h(k,"auto")?Nt(a,Gt(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Nt(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;Rt(a)},Tt=function(a){Object.defineProperty(a.prototype,
8
+ new MutationObserver(function(){return Qt(a)});b.observe(a,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},St=function(a){function b(d){a:{var e=$APP.be($APP.Kd(Ft,Et(a))),g=Bt(Dt(a)),h=$APP.Ah.g(g);var k=xt.g(g);g=yt.g(g);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.E.h(h,"horizontal")&&$APP.E.h(m,"ArrowRight")?Ot(q,e,g):$APP.E.h(h,"horizontal")&&$APP.E.h(m,"ArrowLeft")?Pt(q,e,g):$APP.E.h(h,"vertical")&&
9
+ $APP.E.h(m,"ArrowDown")?Ot(q,e,g):$APP.E.h(h,"vertical")&&$APP.E.h(m,"ArrowUp")?Pt(q,e,g):$APP.E.h(m,"Home")?0:$APP.E.h(m,"End")?$APP.B(e)-1:null,h!=null)){d.preventDefault();d=$APP.H(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.E.h(k,"auto")?Nt(a,Gt(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Nt(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;Rt(a)},Tt=function(a){Object.defineProperty(a.prototype,
10
10
  "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})},Vt=function(){var a=class extends HTMLElement{};a.observedAttributes=Ut;a.prototype.connectedCallback=function(){if(Ct(this)){St(this);var b=Qt(this)}else{if(!Ct(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
11
11
  ":host{display:block;color-scheme:light dark;}.base{display:block;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}";d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_tabs_root=b;this.__x_tabs_base=d;this.__x_tabs_slot=e;St(this);this.__x_tabs_initialized=!0}Qt(this);b=this}return b};a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__x_tabs_on_tab_select");$APP.n(b)&&this.removeEventListener("tab-select",b);b=$APP.l(this,
12
12
  "__x_tabs_on_keydown");$APP.n(b)&&this.removeEventListener("keydown",b);b=$APP.l(this,"__x_tabs_observer");return $APP.n(b)?b.disconnect():null};a.prototype.attributeChangedCallback=function(){return Ct(this)?Qt(this):null};Tt(a);return a},Wt=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",Vt())},xt=new $APP.K(null,"activation","activation",2128521072),yt=new $APP.K(null,"loop","loop",-395552849);var Ut=["value","orientation","activation","label","loop"],zt=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),At=new $APP.R(null,new $APP.P(null,2,["auto",null,"manual",null],null),null);$APP.wd(["value-change",new $APP.P(null,1,[$APP.Y,new $APP.P(null,1,[$APP.T,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tabs.init",Wt);export const init=Wt;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},CF=function(a,b,c){return a.setAttribute(b,c)},DF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},EF=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.D.h(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},NF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var f=$APP.bf([FF,$APP.dh,$APP.Kh,$APP.th,$APP.Fh,GF,$APP.$h,HF,$APP.Cg,$APP.vi,$APP.Gi,$APP.ch,IF,$APP.wh],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
- a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(f),k=$APP.I(h,IF),m=$APP.I(h,$APP.wh),q=$APP.I(h,FF),r=$APP.I(h,$APP.dh),u=$APP.I(h,$APP.Kh),w=$APP.I(h,$APP.th),z=$APP.I(h,$APP.Fh),A=$APP.I(h,GF);f=$APP.I(h,$APP.$h);var C=$APP.I(h,HF),F=$APP.I(h,$APP.Cg),E=$APP.I(h,$APP.vi),Q=$APP.I(h,$APP.Gi);h=$APP.I(h,$APP.ch);var V=$APP.n(w)?w:"",ea=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.J(F);E=$APP.J(E);
5
- m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.N(z,"")&&z!=null;u=$APP.n(u)?u:"";Q=$APP.n(Q)?Q:"";k=BF(k);r=typeof r==="string"&&$APP.N(r,"")&&r!=null;w=typeof w==="string"&&$APP.N(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(JF,q)?q:"vertical";A=BF(A);f=$APP.bf([$APP.bh,$APP.cj,$APP.Di,$APP.gh,$APP.ii,$APP.T,KF,$APP.Nh,$APP.kh,LF,$APP.mi,MF,$APP.Xh,$APP.W,$APP.qh,$APP.oi,$APP.U],[F,E,m,z,u,Q,k,r,w,q,ea,BF(C),$APP.n(A)?A:3,wa,V,$APP.n(h)?h:"",$APP.J(f)]);C=$APP.kh.g(f);A=$APP.gh.g(f);h=$APP.Nh.g(f);
6
- c.name=$APP.ii.g(f);c.placeholder=$APP.Di.g(f);c.disabled=$APP.U.g(f);c.readOnly=$APP.cj.g(f);c.required=$APP.bh.g(f);c.rows=$APP.Xh.g(f);c.autocomplete=$APP.oi.g(f);V=MF.g(f);$APP.n(V)?CF(c,"maxlength",""+$APP.S.g(V)):c.removeAttribute("maxlength");V=KF.g(f);$APP.n(V)?CF(c,"minlength",""+$APP.S.g(V)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",LF.g(f));CF(c,"aria-required",$APP.n($APP.bh.g(f))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");V=
7
- $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(V)?c.setAttribute("aria-describedby",V):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(f);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.mi.g(f);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.qh.g(f);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");DF(a,"data-invalid",C);d=$APP.l(a,
8
- "__xTextAreaInternals");return $APP.n(d)?EF(a,d,c):null}return null},OF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},PF=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),EF(a,e,b));return OF(a,"x-text-area-input",{name:d,value:c})}return null}},QF=function(a){return function(){var b=
9
- $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),EF(a,e,b));return OF(a,"x-text-area-change",{name:d,value:c})}return null}},RF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
10
- a.__xTextAreaHandlers=null;return}}return null},SF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?CF(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},TF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return DF(this,c,$APP.J(d))}})},UF=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
- enumerable:!0,get:function(){var e=BF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.N(e)&&e>0?CF(this,c,""+$APP.S.g(Math.floor(e))):this.removeAttribute(c)}})},VF=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",
12
- b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},XF=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return WF}});VF(b);SF(b,"name","name");SF(b,"placeholder","placeholder");SF(b,"autocomplete","autocomplete");TF(b,"disabled","disabled");TF(b,"readOnly","readonly");TF(b,"required","required");UF(b,"rows","rows",3);UF(b,"maxLength","maxlength",null);UF(b,"minLength",
13
- "minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),f=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),q=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:0.875rem;--x-text-area-bg:#ffffff;--x-text-area-color:#111827;--x-text-area-border:1px solid #d1d5db;--x-text-area-border-radius:6px;--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:#2563eb;--x-text-area-error-color:#dc2626;--x-text-area-hint-color:#6b7280;--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:1rem;--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:#d1d5db;--x-text-area-bg:#1f2937;--x-text-area-color:#f9fafb;--x-text-area-border:1px solid #4b5563;--x-text-area-focus-ring-color:#3b82f6;--x-text-area-error-color:#f87171;--x-text-area-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
- e.setAttribute("part","field");f.setAttribute("part","label");f.setAttribute("id","label");f.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");k.setAttribute("part","textarea");k.setAttribute("id","textarea");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");q.setAttribute("part","error");q.setAttribute("id","error");q.setAttribute("role","alert");q.setAttribute("aria-live","assertive");h.appendChild(k);
15
- e.appendChild(f);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:f,textarea:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}RF(this);c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
16
- $APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=PF(this),e=QF(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return NF(this)};b.disconnectedCallback=function(){return RF(this)};b.attributeChangedCallback=function(c,d,e){$APP.D.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return NF(this)};b.formDisabledCallback=function(c){DF(this,
17
- "disabled",$APP.J(c));return NF(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return NF(this)};return a},YF=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",XF())},KF=new $APP.K(null,"minlength","minlength",259053545),IF=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
- HF=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),FF=new $APP.K(null,"resize-raw","resize-raw",-287517888),MF=new $APP.K(null,"maxlength","maxlength",-1163911985),GF=new $APP.K(null,"rows-raw","rows-raw",-1828357145),LF=new $APP.K(null,"resize","resize",297367086);var WF="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),JF=new $APP.R(null,new $APP.P(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
2
+ var AF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},BF=function(a,b,c){return a.setAttribute(b,c)},CF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},DF=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.E.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},MF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(b,"textarea"),d=$APP.l(b,"label"),e=$APP.l(b,"hint");b=$APP.l(b,"error");var g=$APP.bf([EF,$APP.dh,$APP.Kh,$APP.th,$APP.Fh,FF,$APP.$h,GF,$APP.Cg,$APP.vi,$APP.Gi,$APP.ch,HF,$APP.wh],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),k=$APP.I(h,HF),m=$APP.I(h,$APP.wh),q=$APP.I(h,EF),r=$APP.I(h,$APP.dh),v=$APP.I(h,$APP.Kh),w=$APP.I(h,$APP.th),z=$APP.I(h,$APP.Fh),A=$APP.I(h,FF);g=$APP.I(h,$APP.$h);var C=$APP.I(h,GF),F=$APP.I(h,$APP.Cg),D=$APP.I(h,$APP.vi),Q=$APP.I(h,$APP.Gi);h=$APP.I(h,$APP.ch);var V=$APP.n(w)?w:"",fa=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.J(F);D=$APP.J(D);
5
+ m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.N(z,"")&&z!=null;v=$APP.n(v)?v:"";Q=$APP.n(Q)?Q:"";k=AF(k);r=typeof r==="string"&&$APP.N(r,"")&&r!=null;w=typeof w==="string"&&$APP.N(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(IF,q)?q:"vertical";A=AF(A);g=$APP.bf([$APP.bh,$APP.cj,$APP.Di,$APP.gh,$APP.ii,$APP.T,JF,$APP.Nh,$APP.kh,KF,$APP.mi,LF,$APP.Xh,$APP.W,$APP.qh,$APP.oi,$APP.U],[F,D,m,z,v,Q,k,r,w,q,fa,AF(C),$APP.n(A)?A:3,wa,V,$APP.n(h)?h:"",$APP.J(g)]);C=$APP.kh.g(g);A=$APP.gh.g(g);h=$APP.Nh.g(g);
6
+ c.name=$APP.ii.g(g);c.placeholder=$APP.Di.g(g);c.disabled=$APP.U.g(g);c.readOnly=$APP.cj.g(g);c.required=$APP.bh.g(g);c.rows=$APP.Xh.g(g);c.autocomplete=$APP.oi.g(g);V=LF.g(g);$APP.n(V)?BF(c,"maxlength",""+$APP.S.g(V)):c.removeAttribute("maxlength");V=JF.g(g);$APP.n(V)?BF(c,"minlength",""+$APP.S.g(V)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",KF.g(g));BF(c,"aria-required",$APP.n($APP.bh.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");V=
7
+ $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(V)?c.setAttribute("aria-describedby",V):c.removeAttribute("aria-describedby");d.textContent=$APP.W.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.mi.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.qh.g(g);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");CF(a,"data-invalid",C);d=$APP.l(a,
8
+ "__xTextAreaInternals");return $APP.n(d)?DF(a,d,c):null}return null},NF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},OF=function(a){return function(){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),DF(a,e,b));return NF(a,"x-text-area-input",{name:d,value:c})}return null}},PF=function(a){return function(){var b=
9
+ $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),DF(a,e,b));return NF(a,"x-text-area-change",{name:d,value:c})}return null}},QF=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.l(b,"textarea");b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));
10
+ a.__xTextAreaHandlers=null;return}}return null},RF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?BF(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},SF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return CF(this,c,$APP.J(d))}})},TF=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
+ enumerable:!0,get:function(){var e=AF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.N(e)&&e>0?BF(this,c,""+$APP.S.g(Math.floor(e))):this.removeAttribute(c)}})},UF=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",
12
+ b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},WF=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return VF}});UF(b);RF(b,"name","name");RF(b,"placeholder","placeholder");RF(b,"autocomplete","autocomplete");SF(b,"disabled","disabled");SF(b,"readOnly","readonly");SF(b,"required","required");TF(b,"rows","rows",3);TF(b,"maxLength","maxlength",null);TF(b,"minLength",
13
+ "minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),k=document.createElement("textarea"),m=document.createElement("span"),q=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:0.875rem;--x-text-area-bg:#ffffff;--x-text-area-color:#111827;--x-text-area-border:1px solid #d1d5db;--x-text-area-border-radius:6px;--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:#2563eb;--x-text-area-error-color:#dc2626;--x-text-area-hint-color:#6b7280;--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:1rem;--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:#d1d5db;--x-text-area-bg:#1f2937;--x-text-area-color:#f9fafb;--x-text-area-border:1px solid #4b5563;--x-text-area-focus-ring-color:#3b82f6;--x-text-area-error-color:#f87171;--x-text-area-hint-color:#9ca3af;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
+ e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");k.setAttribute("part","textarea");k.setAttribute("id","textarea");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");q.setAttribute("part","error");q.setAttribute("id","error");q.setAttribute("role","alert");q.setAttribute("aria-live","assertive");h.appendChild(k);
15
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(q);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:k,hint:m,error:q};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}QF(this);c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
16
+ $APP.l(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.l(c,"textarea"),d=OF(this),e=PF(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return MF(this)};b.disconnectedCallback=function(){return QF(this)};b.attributeChangedCallback=function(c,d,e){$APP.E.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return MF(this)};b.formDisabledCallback=function(c){CF(this,
17
+ "disabled",$APP.J(c));return MF(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xTextAreaRefs");$APP.n(c)&&($APP.l(c,"textarea").value="");c=$APP.l(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return MF(this)};return a},XF=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",WF())},JF=new $APP.K(null,"minlength","minlength",259053545),HF=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
+ GF=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),EF=new $APP.K(null,"resize-raw","resize-raw",-287517888),LF=new $APP.K(null,"maxlength","maxlength",-1163911985),FF=new $APP.K(null,"rows-raw","rows-raw",-1828357145),KF=new $APP.K(null,"resize","resize",297367086);var VF="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),IF=new $APP.R(null,new $APP.P(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
19
  $APP.bf([$APP.yi,$APP.ii,$APP.T,new $APP.K(null,"minLength","minLength",-1538722770),$APP.Xh,$APP.Bi,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.oi,$APP.Ng],[new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"minlength"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"rows"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,
20
- "readonly"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"maxlength"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"autocomplete"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"required"],null)]);$APP.ka("baredom.exports.x_text_area.init",YF);export const init=YF;
20
+ "readonly"],null),new $APP.P(null,2,[$APP.Z,$APP.Gh,$APP.Qg,"maxlength"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Qg,"autocomplete"],null),new $APP.P(null,2,[$APP.Z,$APP.Li,$APP.Qg,"required"],null)]);$APP.ka("baredom.exports.x_text_area.init",XF);export const init=XF;
@@ -1,23 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var Cj=function(a){a=$APP.I(Bj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Zg},Ej=function(a){a=$APP.I(Dj,a);return $APP.n(a)?a:"pending"},Hj=function(a){a=$APP.I(Fj,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Gj},Ij=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Jj=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Lj=function(a,
3
- b){a=$APP.I(Kj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(Kj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.zi);return b},Mj=function(a,b,c){a=Ej(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},ak=function(a){var b=$APP.M(a),c=$APP.I(b,Nj);a=$APP.I(b,$APP.U);var d=$APP.I(b,$APP.Ii),e=$APP.I(b,$APP.dh),f=$APP.I(b,Oj),h=$APP.I(b,Pj),k=$APP.I(b,Qj),m=$APP.I(b,
4
- $APP.Bh),q=$APP.I(b,Rj),r=$APP.I(b,$APP.Kg),u=$APP.I(b,Sj);b=$APP.I(b,$APP.ni);var w=Cj(m),z=Ij(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Zi:z!=null?$APP.Oh:$APP.ah;m=function(){var C=A instanceof $APP.K?A.oa:null;switch(C){case "default":return C=$APP.I(Tj,w),$APP.n(C)?C:$APP.I(Tj,$APP.Zg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=Jj(c);d=Lj(k,d);e=$APP.n(e)?e:"";u=$APP.n(u)?u:"";return $APP.bf([Uj,Vj,Wj,Oj,Rj,$APP.$g,Xj,$APP.Gg,$APP.W,
5
- Yj,$APP.ej,$APP.U,Zj],[Hj(h),c,m,$APP.J(f),$APP.J(q),$APP.D.h(A,$APP.Oh)?z:null,u,w,e,Mj(w,e,c),A,$APP.J(a),d])},bk=function(a){a=$APP.M(a);a=$APP.I(a,$APP.U);return $APP.p(a)},nk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
- q=document.createElement("slot"),r=document.createElement("span"),u=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),F=document.createElement("div"),E=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);k.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);u.setAttribute("class","connector");k.appendChild(m);k.appendChild(u);w.setAttribute("class","content-col");z.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(C);F.setAttribute("class","actions");E.setAttribute("name","actions");F.appendChild(E);w.appendChild(z);w.appendChild(A);w.appendChild(F);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.bf([Uj,ck,dk,$APP.Ui,ek,fk,$APP.Mi,gk,$APP.sh,hk,ik,jk,kk,lk,$APP.di,mk],[u,h,m,r,e,k,A,C,b,E,z,w,d,F,q,f]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},ok=function(a){return ak($APP.bf([$APP.Ii,$APP.dh,
3
+ b){a=$APP.I(Kj,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.I(Kj,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.zi);return b},Mj=function(a,b,c){a=Ej(a);c=c!=null?"Step "+$APP.S.g(c+1)+": ":null;return""+$APP.S.g(c)+$APP.S.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.S.g(b)+" ":null)+"("+$APP.S.g(a)+")"},ak=function(a){var b=$APP.M(a),c=$APP.I(b,Nj);a=$APP.I(b,$APP.U);var d=$APP.I(b,$APP.Ii),e=$APP.I(b,$APP.dh),g=$APP.I(b,Oj),h=$APP.I(b,Pj),k=$APP.I(b,Qj),m=$APP.I(b,
4
+ $APP.Bh),q=$APP.I(b,Rj),r=$APP.I(b,$APP.Kg),v=$APP.I(b,Sj);b=$APP.I(b,$APP.ni);var w=Cj(m),z=Ij(b),A=$APP.n($APP.n(r)?z==null:r)?$APP.Zi:z!=null?$APP.Oh:$APP.ah;m=function(){var C=A instanceof $APP.K?A.oa:null;switch(C){case "default":return C=$APP.I(Tj,w),$APP.n(C)?C:$APP.I(Tj,$APP.Zg);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.S.g(C));}}();c=Jj(c);d=Lj(k,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.bf([Uj,Vj,Wj,Oj,Rj,$APP.$g,Xj,$APP.Gg,$APP.W,
5
+ Yj,$APP.ej,$APP.U,Zj],[Hj(h),c,m,$APP.J(g),$APP.J(q),$APP.E.h(A,$APP.Oh)?z:null,v,w,e,Mj(w,e,c),A,$APP.J(a),d])},bk=function(a){a=$APP.M(a);a=$APP.I(a,$APP.U);return $APP.p(a)},nk=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
6
+ q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),w=document.createElement("div"),z=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),F=document.createElement("div"),D=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:rgba(0,0,0,0.06);--x-timeline-item-marker-color:rgba(0,0,0,0.45);--x-timeline-item-connector-color:rgba(0,0,0,0.12);--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:rgba(0,0,0,0.5);--x-timeline-item-label-font-size:0.8125rem;--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:rgba(0,0,0,0.025);--x-timeline-item-motion:150ms;--x-timeline-item-motion-ease:cubic-bezier(0.2,0,0,1);--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:rgba(255,255,255,0.10);--x-timeline-item-marker-color:rgba(255,255,255,0.55);--x-timeline-item-connector-color:rgba(255,255,255,0.15);--x-timeline-item-label-color:rgba(255,255,255,0.5);--x-timeline-item-stripe-bg:rgba(255,255,255,0.03);}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(0,102,204,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(0,102,204,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(16,140,72,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(16,140,72,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(190,20,40,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(190,20,40,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(204,120,0,1);--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:rgba(204,120,0,0.4);}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:rgba(80,160,255,1);--x-timeline-item-connector-color:rgba(80,160,255,0.4);}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:rgba(60,210,120,1);--x-timeline-item-connector-color:rgba(60,210,120,0.5);}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:rgba(255,90,110,1);--x-timeline-item-connector-color:rgba(255,90,110,0.4);}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:rgba(255,190,90,1);--x-timeline-item-connector-color:rgba(255,190,90,0.4);}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:4px;}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid rgba(0,102,204,0.55);outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:rgba(80,160,255,0.7);}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);k.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");k.appendChild(m);k.appendChild(v);w.setAttribute("class","content-col");z.setAttribute("class",
8
+ "title");A.setAttribute("class","body");A.appendChild(C);F.setAttribute("class","actions");D.setAttribute("name","actions");F.appendChild(D);w.appendChild(z);w.appendChild(A);w.appendChild(F);d.appendChild(e);d.appendChild(k);d.appendChild(w);b.appendChild(c);b.appendChild(d);b=$APP.bf([Uj,ck,dk,$APP.Ui,ek,fk,$APP.Mi,gk,$APP.sh,hk,ik,jk,kk,lk,$APP.di,mk],[v,h,m,r,e,k,A,C,b,D,z,w,d,F,q,g]);a.__xTimelineItemRefs=b;return $APP.l(a,"__xTimelineItemRefs")},ok=function(a){return ak($APP.bf([$APP.Ii,$APP.dh,
9
9
  Oj,Pj,Qj,$APP.Bh,Rj,$APP.Kg,Sj,$APP.ni,Nj,$APP.U],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},rk=function(a){var b=ok(a);if($APP.N($APP.l(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.W),d=$APP.I(b,
10
- Xj),e=$APP.I(b,$APP.Gg),f=$APP.I(b,Zj),h=$APP.I(b,$APP.U),k=$APP.I(b,Wj),m=$APP.I(b,Yj),q=nk(a),r=$APP.M(q);q=$APP.I(r,ck);var u=$APP.I(r,dk),w=$APP.I(r,ik);r=$APP.I(r,$APP.Ui);a.setAttribute("data-status",Ej(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.vf(f));a.__xTimelineItemSelfPos=null;$APP.D.h(Uj.g(b),pk)?a.setAttribute("data-connector","dashed"):$APP.D.h(Uj.g(b),qk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
- $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");u.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.N(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},sk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
- !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.D.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},tk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);e=$APP.I(e,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!0}))},
13
- uk=function(a){function b(d){var e=d.key;if($APP.D.h(e,"Enter")||$APP.D.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:ok(a),bk(e)&&(d.preventDefault(),tk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:ok(a);bk(d)&&tk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},vk=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,
10
+ Xj),e=$APP.I(b,$APP.Gg),g=$APP.I(b,Zj),h=$APP.I(b,$APP.U),k=$APP.I(b,Wj),m=$APP.I(b,Yj),q=nk(a),r=$APP.M(q);q=$APP.I(r,ck);var v=$APP.I(r,dk),w=$APP.I(r,ik);r=$APP.I(r,$APP.Ui);a.setAttribute("data-status",Ej(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.vf(g));a.__xTimelineItemSelfPos=null;$APP.E.h(Uj.g(b),pk)?a.setAttribute("data-connector","dashed"):$APP.E.h(Uj.g(b),qk)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");a.setAttribute("role","listitem");
11
+ $APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=k!=null?k:"";$APP.N(d,"")?(w.removeAttribute("hidden"),w.textContent=d):(w.setAttribute("hidden",""),w.textContent="");a.__xTimelineItemModel=b}},sk=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=
12
+ !0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.E.h(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},tk=function(a){var b=$APP.l(a,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);e=$APP.I(e,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(c),$APP.W,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!0}))},
13
+ uk=function(a){function b(d){var e=d.key;if($APP.E.h(e,"Enter")||$APP.E.h(e," "))e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:ok(a),bk(e)&&(d.preventDefault(),tk(a));return null}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:ok(a);bk(d)&&tk(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTimelineItemHandlers",{click:c,keydown:b})},vk=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.l(b,"click");b=$APP.l(b,
14
14
  "keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},wk=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?
15
15
  b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("title",""+$APP.S.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.S.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
16
  set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.S.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.S.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
17
  b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},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})},yk=function(){var a=class extends HTMLElement{};a.observedAttributes=xk;a.prototype.connectedCallback=function(){nk(this);vk(this);
18
- uk(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);rk(this);sk(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);var f=$APP.I(e,$APP.W),h=$APP.I(e,Zj);e=$APP.I(e,$APP.U);c=new $APP.P(null,4,[$APP.Gg,Ej(c),$APP.W,f,$APP.aj,$APP.vf(h),$APP.yi,$APP.J(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
- a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(this);vk(this);b=document;var d=b.dispatchEvent,e=CustomEvent,f=$APP.M(c);c=$APP.I(f,$APP.Gg);f=$APP.I(f,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(c),$APP.W,f],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.xg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.N(c,d))c=$APP.D.h(b,"data-position"),c=!$APP.n(c?
20
- $APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.D.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),rk(this));return null};wk(a.prototype);return a},zk=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",yk());return null},Sj=new $APP.K(null,"title-raw","title-raw",976469452),fk=new $APP.K(null,"track-col","track-col",629248272),hk=new $APP.K(null,"actions-slot","actions-slot",1424248629),Wj=new $APP.K(null,"marker-icon","marker-icon",424963779),
18
+ uk(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);rk(this);sk(this);b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.I(e,$APP.Gg);var g=$APP.I(e,$APP.W),h=$APP.I(e,Zj);e=$APP.I(e,$APP.U);c=new $APP.P(null,4,[$APP.Gg,Ej(c),$APP.W,g,$APP.aj,$APP.vf(h),$APP.yi,$APP.J(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.xg(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
+ a.prototype.disconnectedCallback=function(){var b=$APP.l(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ok(this);vk(this);b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.M(c);c=$APP.I(g,$APP.Gg);g=$APP.I(g,$APP.W);c=new $APP.P(null,2,[$APP.Gg,Ej(c),$APP.W,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.xg(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.N(c,d))c=$APP.E.h(b,"data-position"),c=!$APP.n(c?
20
+ $APP.l(this,"__xTimelineItemSelfPos"):c);c&&($APP.E.h(b,"data-position")&&(this.__xTimelineItemParentPos=d),rk(this));return null};wk(a.prototype);return a},zk=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",yk());return null},Sj=new $APP.K(null,"title-raw","title-raw",976469452),fk=new $APP.K(null,"track-col","track-col",629248272),hk=new $APP.K(null,"actions-slot","actions-slot",1424248629),Wj=new $APP.K(null,"marker-icon","marker-icon",424963779),
21
21
  dk=new $APP.K(null,"marker","marker",865118313),Uj=new $APP.K(null,"connector","connector",-1517293248),Gj=new $APP.K(null,"solid","solid",-2023773691),ik=new $APP.K(null,"title-el","title-el",-401767816),Xj=new $APP.K(null,"title","title",636505583),Pj=new $APP.K(null,"connector-raw","connector-raw",106333796),gk=new $APP.K(null,"default-slot","default-slot",-1145647151),Zj=new $APP.K(null,"effective-position","effective-position",840072317),ek=new $APP.K(null,"label-col","label-col",1883390160),
22
22
  Rj=new $APP.K(null,"data-last?","data-last?",-1110326839),ck=new $APP.K(null,"label-text","label-text",-1566972381),Oj=new $APP.K(null,"data-striped?","data-striped?",906911587),Qj=new $APP.K(null,"data-position-raw","data-position-raw",256144356),lk=new $APP.K(null,"actions-el","actions-el",1486248509),jk=new $APP.K(null,"content-col","content-col",767367449),pk=new $APP.K(null,"dashed","dashed",-1449249319),Nj=new $APP.K(null,"data-index-raw","data-index-raw",491574874),kk=new $APP.K(null,"item-div",
23
23
  "item-div",1630512700),Ak=new $APP.K(null,"active","active",1895962068),Vj=new $APP.K(null,"data-index","data-index",1161508385),mk=new $APP.K(null,"label-slot","label-slot",-1755862561),qk=new $APP.K(null,"none","none",1333468478),Yj=new $APP.K(null,"marker-aria","marker-aria",-353426855);var xk="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var $D=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(ZD,a)?a:"start"},aE=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Qc(b,2)===0?"start":"end";default:return"start"}},cE=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.P(null,3,[$APP.sh,b,bE,d,$APP.Qh,e],null);return $APP.l(a,"__xTimelineRefs")},dE=function(a){a=new $APP.P(null,3,[$APP.dh,a.getAttribute("label"),$APP.Ii,a.getAttribute("position"),$APP.lh,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.I(b,$APP.dh);var c=$APP.I(b,$APP.Ii);b=$APP.I(b,$APP.lh);return new $APP.P(null,3,[$APP.W,$APP.n(a)?a:"",$APP.aj,$D(c),
4
- $APP.lh,$APP.J(b)],null)},eE=function(a){var b=dE(a);if($APP.N($APP.l(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.W),d=cE(a);d=$APP.M(d);d=$APP.I(d,bE);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},fE=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:dE(a);var c=$APP.M(b);b=$APP.I(c,$APP.aj);
5
- c=$APP.I(c,$APP.lh);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.D.h(e,d-1);f.setAttribute("data-index",""+$APP.S.g(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",aE(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},gE=function(a){function b(){$APP.n(a.isConnected)&&fE(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");
6
- e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.xg(new $APP.P(null,3,[$APP.Vg,$APP.n(f)?f:0,$APP.Gg,$APP.n(h)?h:"",$APP.W,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){fE(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.ma(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},hE=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},iE=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return $D(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},kE=function(){var a=class extends HTMLElement{};a.observedAttributes=jE;a.prototype.connectedCallback=function(){cE(this);eE(this);hE(this);gE(this);fE(this);return null};a.prototype.disconnectedCallback=function(){hE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(eE(this),
10
- fE(this));return null};iE(a.prototype);return a},lE=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",kE());return null},bE=new $APP.K(null,"label-div","label-div",1505730697);var jE=["label","position","striped"];$APP.wd(["x-timeline-select",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[$APP.Vg,$APP.Gh,$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.wi,!1],null)]);var ZD=new $APP.R(null,new $APP.P(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ka("baredom.exports.x_timeline.init",lE);export const init=lE;
2
+ var ZD=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(YD,a)?a:"start"},$D=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.Qc(b,2)===0?"start":"end";default:return"start"}},bE=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:inherit;--x-timeline-label-font-size:0.875rem;--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.P(null,3,[$APP.sh,b,aE,d,$APP.Qh,e],null);return $APP.l(a,"__xTimelineRefs")},cE=function(a){a=new $APP.P(null,3,[$APP.dh,a.getAttribute("label"),$APP.Ii,a.getAttribute("position"),$APP.lh,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.I(b,$APP.dh);var c=$APP.I(b,$APP.Ii);b=$APP.I(b,$APP.lh);return new $APP.P(null,3,[$APP.W,$APP.n(a)?a:"",$APP.aj,ZD(c),
4
+ $APP.lh,$APP.J(b)],null)},dE=function(a){var b=cE(a);if($APP.N($APP.l(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.I(b,$APP.W),d=bE(a);d=$APP.M(d);d=$APP.I(d,aE);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},eE=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:cE(a);var c=$APP.M(b);b=$APP.I(c,$APP.aj);
5
+ c=$APP.I(c,$APP.lh);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.E.h(e,d-1);g.setAttribute("data-index",""+$APP.S.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",$D(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},fE=function(a){function b(){$APP.n(a.isConnected)&&eE(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.l(e,"status");e=$APP.l(e,"label");e=$APP.xg(new $APP.P(null,3,[$APP.Vg,$APP.n(g)?g:0,$APP.Gg,$APP.n(h)?h:"",$APP.W,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){eE(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
+ b);$APP.ma(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},gE=function(a){var b=$APP.l(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},hE=function(a){Object.defineProperty(a,
8
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.S.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return ZD(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
+ "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},jE=function(){var a=class extends HTMLElement{};a.observedAttributes=iE;a.prototype.connectedCallback=function(){bE(this);dE(this);gE(this);fE(this);eE(this);return null};a.prototype.disconnectedCallback=function(){gE(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(dE(this),
10
+ eE(this));return null};hE(a.prototype);return a},kE=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",jE());return null},aE=new $APP.K(null,"label-div","label-div",1505730697);var iE=["label","position","striped"];$APP.wd(["x-timeline-select",new $APP.P(null,2,[$APP.Y,new $APP.P(null,3,[$APP.Vg,$APP.Gh,$APP.Gg,$APP.X,$APP.W,$APP.X],null),$APP.wi,!1],null)]);var YD=new $APP.R(null,new $APP.P(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ka("baredom.exports.x_timeline.init",kE);export const init=kE;