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

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 (58) hide show
  1. package/dist/base.js +349 -346
  2. package/dist/x-alert.js +17 -17
  3. package/dist/x-avatar-group.js +11 -11
  4. package/dist/x-avatar.js +17 -17
  5. package/dist/x-badge.js +11 -11
  6. package/dist/x-breadcrumbs.js +14 -14
  7. package/dist/x-button.js +15 -15
  8. package/dist/x-cancel-dialogue.js +16 -16
  9. package/dist/x-card.js +7 -7
  10. package/dist/x-chart.js +47 -47
  11. package/dist/x-checkbox.js +11 -11
  12. package/dist/x-chip.js +8 -8
  13. package/dist/x-collapse.js +10 -10
  14. package/dist/x-command-palette.js +30 -30
  15. package/dist/x-container.js +6 -6
  16. package/dist/x-context-menu.js +19 -19
  17. package/dist/x-copy.js +22 -22
  18. package/dist/x-currency-field.js +21 -21
  19. package/dist/x-date-picker.js +37 -37
  20. package/dist/x-divider.js +13 -10
  21. package/dist/x-drawer.js +11 -11
  22. package/dist/x-dropdown.js +9 -9
  23. package/dist/x-fieldset.js +6 -6
  24. package/dist/x-file-download.js +7 -7
  25. package/dist/x-form-field.js +15 -15
  26. package/dist/x-form.js +9 -9
  27. package/dist/x-grid.js +7 -7
  28. package/dist/x-menu-item.js +10 -10
  29. package/dist/x-menu.js +10 -10
  30. package/dist/x-modal.js +12 -12
  31. package/dist/x-navbar.js +13 -12
  32. package/dist/x-notification-center.js +10 -9
  33. package/dist/x-pagination.js +16 -16
  34. package/dist/x-popover.js +14 -11
  35. package/dist/x-progress-circle.js +7 -7
  36. package/dist/x-progress.js +9 -8
  37. package/dist/x-radio.js +11 -11
  38. package/dist/x-search-field.js +14 -14
  39. package/dist/x-select.js +10 -10
  40. package/dist/x-sidebar.js +17 -26
  41. package/dist/x-skeleton.js +5 -5
  42. package/dist/x-slider.js +16 -16
  43. package/dist/x-spacer.js +5 -5
  44. package/dist/x-spinner.js +5 -5
  45. package/dist/x-stat.js +12 -9
  46. package/dist/x-stepper.js +16 -16
  47. package/dist/x-switch.js +10 -10
  48. package/dist/x-tab.js +8 -8
  49. package/dist/x-table-cell.js +20 -20
  50. package/dist/x-table-row.js +10 -10
  51. package/dist/x-table.js +15 -14
  52. package/dist/x-tabs.js +12 -11
  53. package/dist/x-text-area.js +17 -17
  54. package/dist/x-timeline-item.js +21 -21
  55. package/dist/x-timeline.js +9 -9
  56. package/dist/x-toast.js +23 -23
  57. package/dist/x-toaster.js +8 -8
  58. package/package.json +1 -1
package/dist/x-tab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hj=function(a,b,c){return $APP.Cc(b,a)?a:c},mj=function(a){var b=$APP.N(a),c=$APP.J(b,$APP.$i),d=$APP.J(b,$APP.wi);a=$APP.J(b,$APP.zh);var e=$APP.J(b,$APP.Ag),g=$APP.J(b,$APP.Vg),h=$APP.J(b,$APP.W);b=$APP.J(b,ij);c=$APP.K(c);var k=(d=$APP.K(d))?"-1":c?"0":"-1";return new $APP.Q(null,8,[$APP.$i,c,$APP.wi,d,$APP.zh,hj(a,jj,"horizontal"),$APP.Ag,hj(e,kj,"md"),$APP.Vg,hj(g,lj,"default"),$APP.W,h,ij,b,$APP.Tg,k],null)},nj=function(a){return new $APP.Q(null,8,[$APP.U,a.getAttribute("value"),$APP.$i,
3
- a.hasAttribute("selected"),$APP.wi,a.hasAttribute("disabled"),$APP.zh,a.getAttribute("orientation"),$APP.Ag,a.getAttribute("size"),$APP.Vg,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),ij,a.getAttribute("controls")],null)},oj=function(a){var b=mj(nj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.$i.g(b))?"true":"false");$APP.n($APP.wi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
- $APP.Tg.g(b));var d=ij.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.O(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.O(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.$i.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.wi.g(b))?"true":"false");c.setAttribute("data-size",$APP.Ag.g(b));c.setAttribute("data-variant",$APP.Vg.g(b));return c.setAttribute("data-orientation",
5
- $APP.zh.g(b))}return null},pj=function(a){var b=mj(nj(a)),c=$APP.N(b);b=$APP.J(c,$APP.$i);c=$APP.J(c,$APP.wi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},qj=function(a){a.addEventListener("click",function(){return pj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.C.h(c,"Enter")||$APP.C.h(c," ")?(b.preventDefault(),b=pj(a)):b=null;return b})},rj=function(a){if($APP.l(a,
6
- "__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#1d4ed8;--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#60a5fa;}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) ease,color var(--x-tab-transition-duration,120ms) ease,border-color var(--x-tab-transition-duration,120ms) ease;}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;qj(a);a.__x_tab_initialized=!0}oj(a);return a},sj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},uj=function(){var a=class extends HTMLElement{};a.observedAttributes=tj;a.prototype.connectedCallback=function(){return rj(this)};a.prototype.attributeChangedCallback=
9
- function(){return $APP.l(this,"__x_tab_initialized")===!0?oj(this):rj(this)};sj(a);return a},zj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",uj())},ij=new $APP.M(null,"controls","controls",1340701452);var tj="value selected disabled orientation size variant label controls".split(" "),jj=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),kj=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),lj=new $APP.S(null,new $APP.Q(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.wd(["tab-select",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tab.init",zj);export const init=zj;
2
+ var bj=function(a,b,c){return $APP.yc(b,a)?a:c},gj=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.Ui),d=$APP.I(b,$APP.pi);a=$APP.I(b,$APP.th);var e=$APP.I(b,$APP.sg),g=$APP.I(b,$APP.Ng),h=$APP.I(b,$APP.W);b=$APP.I(b,cj);c=$APP.K(c);var k=(d=$APP.K(d))?"-1":c?"0":"-1";return new $APP.Q(null,8,[$APP.Ui,c,$APP.pi,d,$APP.th,bj(a,dj,"horizontal"),$APP.sg,bj(e,ej,"md"),$APP.Ng,bj(g,fj,"default"),$APP.W,h,cj,b,$APP.Lg,k],null)},hj=function(a){return new $APP.Q(null,8,[$APP.U,a.getAttribute("value"),$APP.Ui,
3
+ a.hasAttribute("selected"),$APP.pi,a.hasAttribute("disabled"),$APP.th,a.getAttribute("orientation"),$APP.sg,a.getAttribute("size"),$APP.Ng,a.getAttribute("variant"),$APP.W,a.getAttribute("label"),cj,a.getAttribute("controls")],null)},ij=function(a){var b=gj(hj(a)),c=$APP.l(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.Ui.g(b))?"true":"false");$APP.n($APP.pi.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
+ $APP.Lg.g(b));var d=cj.g(b),e=$APP.W.g(b);$APP.n($APP.n(d)?$APP.O(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.O(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.Ui.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.pi.g(b))?"true":"false");c.setAttribute("data-size",$APP.sg.g(b));c.setAttribute("data-variant",$APP.Ng.g(b));return c.setAttribute("data-orientation",
5
+ $APP.th.g(b))}return null},jj=function(a){var b=gj(hj(a)),c=$APP.N(b);b=$APP.I(c,$APP.Ui);c=$APP.I(c,$APP.pi);$APP.p(c)&&$APP.p(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},kj=function(a){a.addEventListener("click",function(){return jj(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.C.h(c,"Enter")||$APP.C.h(c," ")?(b.preventDefault(),b=jj(a)):b=null;return b})},lj=function(a){if($APP.l(a,
6
+ "__x_tab_initialized")!==!0){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:#0f172a;--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:#1d4ed8;--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:#94a3b8;--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:#60a5fa;--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:#60a5fa;}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),border-color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease);}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;kj(a);a.__x_tab_initialized=!0}ij(a);return a},mj=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},oj=function(){var a=class extends HTMLElement{};a.observedAttributes=nj;a.prototype.connectedCallback=function(){return lj(this)};a.prototype.attributeChangedCallback=
9
+ function(){return $APP.l(this,"__x_tab_initialized")===!0?ij(this):lj(this)};mj(a);return a},pj=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",oj())},cj=new $APP.M(null,"controls","controls",1340701452);var nj="value selected disabled orientation size variant label controls".split(" "),dj=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),ej=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),fj=new $APP.S(null,new $APP.Q(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.sd(["tab-select",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_tab.init",pj);export const init=pj;
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var yx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Cc(b,a)?a:c},zx=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Cx=function(a){var b=$APP.N(a);a=$APP.J(b,Ax);b=$APP.J(b,Bx);if($APP.n($APP.n(a)?a:$APP.O(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Dx=function(a){var b=$APP.N(a);a=$APP.J(b,$APP.Z);b=$APP.J(b,Ax);return(a=$APP.C.h(a,
3
- "header"))?b:a},Ex=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Fx=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},Kx=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
2
+ var Cx=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.yc(b,a)?a:c},Dx=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},Gx=function(a){var b=$APP.N(a);a=$APP.I(b,Ex);b=$APP.I(b,Fx);if($APP.n($APP.n(a)?a:$APP.O(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},Hx=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.Z);b=$APP.I(b,Ex);return(a=$APP.C.h(a,
3
+ "header"))?b:a},Ix=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},Jx=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},Ox=function(a){var b=$APP.l(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
4
4
  g=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("slot"),m=document.createElement("span");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-table-cell-padding:0.5rem 0.75rem;--x-table-cell-bg:transparent;--x-table-cell-header-bg:rgba(0,0,0,0.04);--x-table-cell-border-color:rgba(0,0,0,0.1);--x-table-cell-border-width:1px;--x-table-cell-color:inherit;--x-table-cell-header-color:inherit;--x-table-cell-font-size:inherit;--x-table-cell-header-font-weight:600;--x-table-cell-min-width:0;--x-table-cell-max-width:none;--x-table-cell-sort-color:rgba(0,0,0,0.4);--x-table-cell-sort-hover-color:rgba(0,0,0,0.7);--x-table-cell-focus-ring:rgba(59,130,246,0.5);--x-table-cell-transition-duration:150ms;--x-table-cell-sticky-bg:#ffffff;--x-table-cell-disabled-opacity:0.45;min-width:var(--x-table-cell-min-width);max-width:var(--x-table-cell-max-width);}@media (prefers-color-scheme:dark){:host{--x-table-cell-header-bg:rgba(255,255,255,0.06);--x-table-cell-border-color:rgba(255,255,255,0.1);--x-table-cell-sort-color:rgba(255,255,255,0.4);--x-table-cell-sort-hover-color:rgba(255,255,255,0.7);--x-table-cell-sticky-bg:#1f2937;}}:host([data-sticky\x3d'start']){position:sticky;inset-inline-start:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([data-sticky\x3d'end']){position:sticky;inset-inline-end:0;background:var(--x-table-cell-sticky-bg);z-index:1;}:host([disabled]){opacity:var(--x-table-cell-disabled-opacity);}[part\x3dcell]{display:flex;align-items:center;justify-content:flex-start;padding:var(--x-table-cell-padding);background:var(--x-table-cell-bg);border-bottom:var(--x-table-cell-border-width) solid var(--x-table-cell-border-color);color:var(--x-table-cell-color);font-size:var(--x-table-cell-font-size);min-width:0;box-sizing:border-box;}:host([data-type\x3d'header']) [part\x3dcell]{background:var(--x-table-cell-header-bg);color:var(--x-table-cell-header-color);font-weight:var(--x-table-cell-header-font-weight);}:host([data-align\x3d'start']) [part\x3dcell]{justify-content:flex-start;}:host([data-align\x3d'center']) [part\x3dcell]{justify-content:center;}:host([data-align\x3d'end']) [part\x3dcell]{justify-content:flex-end;}:host([data-valign\x3d'top']) [part\x3dcell]{align-items:flex-start;}:host([data-valign\x3d'middle']) [part\x3dcell]{align-items:center;}:host([data-valign\x3d'bottom']) [part\x3dcell]{align-items:flex-end;}[part\x3dcontent]{flex:1 1 auto;min-width:0;}:host([data-truncate]) [part\x3dcontent]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}[part\x3dsort-btn]{flex:0 0 auto;appearance:none;border:0;background:transparent;padding:2px;margin:0 0 0 4px;cursor:pointer;color:var(--x-table-cell-sort-color);display:inline-flex;align-items:center;justify-content:center;border-radius:4px;transition:color var(--x-table-cell-transition-duration) ease;line-height:1;}[part\x3dsort-btn]:hover{color:var(--x-table-cell-sort-hover-color);}[part\x3dsort-btn]:focus{outline:none;}[part\x3dsort-btn]:focus-visible{outline:2px solid var(--x-table-cell-focus-ring);outline-offset:2px;}[part\x3dsort-btn][disabled]{cursor:default;pointer-events:none;opacity:0.4;}[part\x3dsort-btn][hidden]{display:none !important;}@media (prefers-reduced-motion:reduce){[part\x3dsort-btn]{transition:none !important;}}";
5
5
  d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(g);h.setAttribute("part","sort-btn");h.setAttribute("type","button");k.setAttribute("name","sort-icon");m.setAttribute("part","sort-icon-default");m.setAttribute("aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';k.appendChild(m);h.appendChild(k);d.appendChild(e);d.appendChild(h);
6
- b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.Q(null,5,[$APP.rh,b,Gx,d,Hx,e,Ix,h,Jx,m],null);return $APP.l(a,"__xTableCellRefs")},by=function(a){a=$APP.cf([$APP.Ch,Lx,Mx,Nx,Ax,Ox,$APP.ih,Px,Qx,$APP.V,Rx],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
- var b=$APP.N(a);a=$APP.J(b,$APP.V);var c=$APP.J(b,Rx),d=$APP.J(b,$APP.Ch),e=$APP.J(b,Lx),g=$APP.J(b,Mx),h=$APP.J(b,Nx),k=$APP.J(b,Ax),m=$APP.J(b,Ox),q=$APP.J(b,$APP.ih),r=$APP.J(b,Px);b=$APP.J(b,Qx);return $APP.cf([$APP.ci,Bx,Sx,$APP.Z,Tx,Ax,$APP.Qh,Ux,Ox,$APP.V,Vx],[yx(d,Wx,"start"),yx(h,Xx,"none"),yx(g,Yx,"middle"),yx(q,Zx,"data"),yx(b,$x,"col"),$APP.K(k),yx(r,ay,"none"),zx(c),$APP.K(m),$APP.K(a),zx(e)])},cy=function(a){var b=by(a);if($APP.O($APP.l(a,"__xTableCellModel"),b)){b=$APP.N(b);var c=$APP.J(b,
8
- Ux),d=$APP.J(b,Vx),e=$APP.J(b,$APP.V),g=$APP.J(b,Bx),h=Kx(a);h=$APP.N(h);var k=$APP.J(h,Ix);h=$APP.J(h,Jx);var m=Dx(b),q=$APP.N(b),r=$APP.J(q,$APP.Z),v=$APP.J(q,$APP.ci),w=$APP.J(q,Sx),z=$APP.J(q,$APP.Qh),A=$APP.J(q,Ox),D=$APP.J(q,$APP.V);$APP.J(q,Ax);$APP.J(q,Bx);var F=a.setAttribute,I=$APP.N(q);var E=$APP.J(I,$APP.Z);I=$APP.J(I,Tx);E=$APP.C.h(E,"header")?$APP.C.h(I,"row")||$APP.C.h(I,"rowgroup")?"rowheader":"columnheader":"cell";F.call(a,"role",E);q=Cx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
6
+ b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.Q(null,5,[$APP.kh,b,Kx,d,Lx,e,Mx,h,Nx,m],null);return $APP.l(a,"__xTableCellRefs")},fy=function(a){a=$APP.Xe([$APP.wh,Px,Qx,Rx,Ex,Sx,$APP.bh,Tx,Ux,$APP.V,Vx],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
+ var b=$APP.N(a);a=$APP.I(b,$APP.V);var c=$APP.I(b,Vx),d=$APP.I(b,$APP.wh),e=$APP.I(b,Px),g=$APP.I(b,Qx),h=$APP.I(b,Rx),k=$APP.I(b,Ex),m=$APP.I(b,Sx),q=$APP.I(b,$APP.bh),r=$APP.I(b,Tx);b=$APP.I(b,Ux);return $APP.Xe([$APP.Xh,Fx,Wx,$APP.Z,Xx,Ex,$APP.Kh,Yx,Sx,$APP.V,Zx],[Cx(d,$x,"start"),Cx(h,ay,"none"),Cx(g,by,"middle"),Cx(q,cy,"data"),Cx(b,dy,"col"),$APP.K(k),Cx(r,ey,"none"),Dx(c),$APP.K(m),$APP.K(a),Dx(e)])},gy=function(a){var b=fy(a);if($APP.O($APP.l(a,"__xTableCellModel"),b)){b=$APP.N(b);var c=$APP.I(b,
8
+ Yx),d=$APP.I(b,Zx),e=$APP.I(b,$APP.V),g=$APP.I(b,Fx),h=Ox(a);h=$APP.N(h);var k=$APP.I(h,Mx);h=$APP.I(h,Nx);var m=Hx(b),q=$APP.N(b),r=$APP.I(q,$APP.Z),v=$APP.I(q,$APP.Xh),w=$APP.I(q,Wx),z=$APP.I(q,$APP.Kh),A=$APP.I(q,Sx),D=$APP.I(q,$APP.V);$APP.I(q,Ex);$APP.I(q,Fx);var G=a.setAttribute,J=$APP.N(q);var E=$APP.I(J,$APP.Z);J=$APP.I(J,Xx);E=$APP.C.h(E,"header")?$APP.C.h(J,"row")||$APP.C.h(J,"rowgroup")?"rowheader":"columnheader":"cell";G.call(a,"role",E);q=Gx(q);$APP.n(q)?a.setAttribute("aria-sort",q):
9
9
  a.removeAttribute("aria-sort");$APP.n(D)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",r);a.setAttribute("data-align",v);a.setAttribute("data-valign",w);$APP.C.h(z,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",z);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.T.g(c):"";a.style.gridRow=d>1?"span "+$APP.T.g(d):"";k.hidden=$APP.p(m);c=parseInt;r=$APP.N(b);
10
- m=$APP.J(r,$APP.Z);d=$APP.J(r,Ax);r=$APP.J(r,$APP.V);m=$APP.C.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Fx(g));k.disabled=$APP.K(e);a:switch(e=$APP.N(b),$APP.J(e,Bx)){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}},dy=function(a){var b=a.getAttribute("sort-direction");b=yx(b,Xx,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Ex(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},ey=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
- return $APP.n(c)?c:by(a)}();$APP.n(function(){var c=Dx(b);return $APP.n(c)?$APP.p($APP.V.g(b)):c}())&&dy(a);return null},fy=function(a){function b(){return ey(a)}var c=Kx(a);c=$APP.N(c);$APP.J(c,Ix).addEventListener("click",b);$APP.ma(a,"__xTableCellHandlers",{"sort-click":b})},gy=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.N(c),c=$APP.J(c,Ix),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
- null},hy=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.T.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
10
+ m=$APP.I(r,$APP.Z);d=$APP.I(r,Ex);r=$APP.I(r,$APP.V);m=$APP.C.h(m,"header");k.tabIndex=c($APP.n(m?$APP.n(d)?$APP.p(r):d:m)?"0":"-1",10);k.setAttribute("aria-label",Jx(g));k.disabled=$APP.K(e);a:switch(e=$APP.N(b),$APP.I(e,Fx)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
+ break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},hy=function(a){var b=a.getAttribute("sort-direction");b=Cx(b,ay,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:Ix(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},iy=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");
12
+ return $APP.n(c)?c:fy(a)}();$APP.n(function(){var c=Hx(b);return $APP.n(c)?$APP.p($APP.V.g(b)):c}())&&hy(a);return null},jy=function(a){function b(){return iy(a)}var c=Ox(a);c=$APP.N(c);$APP.I(c,Mx).addEventListener("click",b);$APP.la(a,"__xTableCellHandlers",{"sort-click":b})},ky=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.N(c),c=$APP.I(c,Mx),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
+ null},ly=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.T.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
14
14
  Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"valign",{get:function(){var b=this.getAttribute("valign");return $APP.n(b)?b:"middle"},set:function(b){return $APP.n(b)?this.setAttribute("valign",""+$APP.T.g(b)):this.removeAttribute("valign")},enumerable:!0,configurable:!0});Object.defineProperty(a,
15
15
  "truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.T.g(b)):this.removeAttribute("sticky")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortable",{get:function(){return this.hasAttribute("sortable")},
16
- set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return zx(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
17
- b>0?this.setAttribute("col-span",""+$APP.T.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return zx(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.T.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
- set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.T.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},ly=function(){var a=class extends HTMLElement{};a.observedAttributes=iy;a.prototype.connectedCallback=function(){Kx(this);gy(this);fy(this);cy(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:by(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Z);var g=$APP.J(e,Tx),h=$APP.J(e,Ux),k=$APP.J(e,Vx);e=$APP.J(e,
19
- $APP.ci);b.call(this,new d("x-table-cell-connected",{detail:$APP.xg(new $APP.Q(null,5,[$APP.Z,c,Tx,g,jy,h,ky,k,$APP.ci,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){gy(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&cy(this);return null};hy(a.prototype);return a},my=function(){$APP.n(customElements.get("x-table-cell"))||
20
- customElements.define("x-table-cell",ly());return null},Vx=new $APP.M(null,"row-span","row-span",-365554241),Tx=new $APP.M(null,"scope","scope",-439358418),Ix=new $APP.M(null,"sort-btn","sort-btn",1913954560),Hx=new $APP.M(null,"content","content",15833224),Ox=new $APP.M(null,"truncate?","truncate?",135673334),jy=new $APP.M(null,"colSpan","colSpan",872137394),Gx=new $APP.M(null,"cell","cell",764245084),Sx=new $APP.M(null,"valign","valign",1485197511),Ax=new $APP.M(null,"sortable?","sortable?",291547474),
21
- Jx=new $APP.M(null,"sort-icon-default","sort-icon-default",-596209230),Rx=new $APP.M(null,"col-span-raw","col-span-raw",1425293661),Mx=new $APP.M(null,"valign-raw","valign-raw",-1083375124),Nx=new $APP.M(null,"sort-direction-raw","sort-direction-raw",-1822100883),Px=new $APP.M(null,"sticky-raw","sticky-raw",1857578519),Ux=new $APP.M(null,"col-span","col-span",-232603210),ky=new $APP.M(null,"rowSpan","rowSpan",826884002),Lx=new $APP.M(null,"row-span-raw","row-span-raw",-1130003707),Qx=new $APP.M(null,
22
- "scope-raw","scope-raw",-773628648),Bx=new $APP.M(null,"sort-direction","sort-direction",-1635889628);var iy="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
23
- $APP.cf([$APP.ci,ky,new $APP.M(null,"truncate","truncate",-1327322939),$APP.wi,Sx,$APP.Z,Tx,jy,$APP.Qh,new $APP.M(null,"sortable","sortable",2109633621),new $APP.M(null,"sortDirection","sortDirection",-45816999)],[new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Fh],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,
24
- 1,[$APP.Z,$APP.Fh],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Ji],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);$APP.wd(["x-table-cell-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.ai,$APP.X,$APP.Hi,$APP.X],null),$APP.ui,!0],null),"x-table-cell-connected",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,5,[$APP.Z,$APP.X,Tx,$APP.X,jy,$APP.Fh,ky,$APP.Fh,$APP.ci,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.Q(null,1,[$APP.Y,$APP.xd],null)]);
25
- var Zx=new $APP.S(null,new $APP.Q(null,2,["data",null,"header",null],null),null),$x=new $APP.S(null,new $APP.Q(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),Wx=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),Yx=new $APP.S(null,new $APP.Q(null,3,["top",null,"middle",null,"bottom",null],null),null),ay=new $APP.S(null,new $APP.Q(null,3,["none",null,"start",null,"end",null],null),null),Xx=new $APP.S(null,new $APP.Q(null,3,["none",null,
26
- "desc",null,"asc",null],null),null);$APP.ka("baredom.exports.x_table_cell.init",my);export const init=my;
16
+ set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return Dx(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
17
+ b>0?this.setAttribute("col-span",""+$APP.T.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return Dx(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.T.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
+ set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.T.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},py=function(){var a=class extends HTMLElement{};a.observedAttributes=my;a.prototype.connectedCallback=function(){Ox(this);ky(this);jy(this);gy(this);var b=$APP.l(this,"__xTableCellModel");var c=$APP.n(b)?b:fy(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.I(e,$APP.Z);var g=$APP.I(e,Xx),h=$APP.I(e,Yx),k=$APP.I(e,Zx);e=$APP.I(e,
19
+ $APP.Xh);b.call(this,new d("x-table-cell-connected",{detail:$APP.pg(new $APP.Q(null,5,[$APP.Z,c,Xx,g,ny,h,oy,k,$APP.Xh,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){ky(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&gy(this);return null};ly(a.prototype);return a},qy=function(){$APP.n(customElements.get("x-table-cell"))||
20
+ customElements.define("x-table-cell",py());return null},Zx=new $APP.M(null,"row-span","row-span",-365554241),Xx=new $APP.M(null,"scope","scope",-439358418),Mx=new $APP.M(null,"sort-btn","sort-btn",1913954560),Lx=new $APP.M(null,"content","content",15833224),Sx=new $APP.M(null,"truncate?","truncate?",135673334),ny=new $APP.M(null,"colSpan","colSpan",872137394),Kx=new $APP.M(null,"cell","cell",764245084),Wx=new $APP.M(null,"valign","valign",1485197511),Ex=new $APP.M(null,"sortable?","sortable?",291547474),
21
+ Nx=new $APP.M(null,"sort-icon-default","sort-icon-default",-596209230),Vx=new $APP.M(null,"col-span-raw","col-span-raw",1425293661),Qx=new $APP.M(null,"valign-raw","valign-raw",-1083375124),Rx=new $APP.M(null,"sort-direction-raw","sort-direction-raw",-1822100883),Tx=new $APP.M(null,"sticky-raw","sticky-raw",1857578519),Yx=new $APP.M(null,"col-span","col-span",-232603210),oy=new $APP.M(null,"rowSpan","rowSpan",826884002),Px=new $APP.M(null,"row-span-raw","row-span-raw",-1130003707),Ux=new $APP.M(null,
22
+ "scope-raw","scope-raw",-773628648),Fx=new $APP.M(null,"sort-direction","sort-direction",-1635889628);var my="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
23
+ $APP.Xe([$APP.Xh,oy,new $APP.M(null,"truncate","truncate",-1327322939),$APP.pi,Wx,$APP.Z,Xx,ny,$APP.Kh,new $APP.M(null,"sortable","sortable",2109633621),new $APP.M(null,"sortDirection","sortDirection",-45816999)],[new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.zh],null),new $APP.Q(null,1,[$APP.Z,$APP.Di],null),new $APP.Q(null,1,[$APP.Z,$APP.Di],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,
24
+ 1,[$APP.Z,$APP.zh],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null),new $APP.Q(null,1,[$APP.Z,$APP.Di],null),new $APP.Q(null,1,[$APP.Z,$APP.X],null)]);$APP.sd(["x-table-cell-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.Vh,$APP.X,$APP.Bi,$APP.X],null),$APP.ni,!0],null),"x-table-cell-connected",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,5,[$APP.Z,$APP.X,Xx,$APP.X,ny,$APP.zh,oy,$APP.zh,$APP.Xh,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.Q(null,1,[$APP.Y,$APP.td],null)]);
25
+ var cy=new $APP.S(null,new $APP.Q(null,2,["data",null,"header",null],null),null),dy=new $APP.S(null,new $APP.Q(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),$x=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),by=new $APP.S(null,new $APP.Q(null,3,["top",null,"middle",null,"bottom",null],null),null),ey=new $APP.S(null,new $APP.Q(null,3,["none",null,"start",null,"end",null],null),null),ay=new $APP.S(null,new $APP.Q(null,3,["none",null,
26
+ "desc",null,"asc",null],null),null);$APP.ja("baredom.exports.x_table_cell.init",qy);export const init=qy;
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var zp=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},Bp=function(a){var b=$APP.N(a);a=$APP.J(b,Ap);b=$APP.J(b,$APP.V);return $APP.n(a)?$APP.p(b):a},Cp=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
- b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.Q(null,2,[$APP.rh,b,$APP.Ph,d],null)}},Fp=function(a){a=new $APP.Q(null,4,[$APP.Ih,a.hasAttribute("selected"),$APP.V,a.hasAttribute("disabled"),Ap,a.hasAttribute("interactive"),Dp,a.getAttribute("row-index")],null);var b=$APP.N(a);a=$APP.J(b,$APP.Ih);var c=$APP.J(b,$APP.V),d=$APP.J(b,Ap);b=$APP.J(b,Dp);return new $APP.Q(null,4,[$APP.Ih,$APP.K(a),$APP.V,$APP.K(c),Ap,$APP.K(d),Ep,zp(b)],null)},Gp=function(a){var b=Fp(a);if($APP.O($APP.l(a,
4
- "__xTableRowModel"),b)){Cp(a);var c=$APP.N(b),d=$APP.J(c,$APP.Ih),e=$APP.J(c,$APP.V),g=$APP.J(c,Ap),h=$APP.J(c,Ep);a.setAttribute("role","row");var k=$APP.N(c);var m=$APP.J(k,$APP.Ih);k=$APP.J(k,Ap);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.T.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(Bp(c))?0:-1;a.__xTableRowModel=b}},Hp=function(a){var b=$APP.l(a,"__xTableRowModel");var c=$APP.n(b)?b:Fp(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Ih);var g=$APP.J(e,$APP.V);e=$APP.J(e,Ep);b.call(a,new d("x-table-row-click",{detail:$APP.xg(new $APP.Q(null,3,[$APP.ri,$APP.n(e)?e:0,$APP.$i,c,$APP.wi,g],
6
- null)),bubbles:!0,composed:!0,cancelable:!0}))},Ip=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.h(e," "))e=$APP.l(a,"__xTableRowModel"),e=$APP.n(e)?e:Fp(a),$APP.n(Bp(e))&&(d.preventDefault(),Hp(a));return null}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:Fp(a);$APP.n(Bp(d))&&Hp(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ma(a,"__xTableRowHandlers",{click:c,keydown:b})},Jp=function(a){var b=$APP.l(a,"__xTableRowHandlers");
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},Kp=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
- 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 zp(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&
9
- b>0?this.setAttribute("row-index",""+$APP.T.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Mp=function(){var a=class extends HTMLElement{};a.observedAttributes=Lp;a.prototype.connectedCallback=function(){Cp(this);Jp(this);Ip(this);Gp(this);var b=$APP.l(this,"__xTableRowModel");var c=$APP.n(b)?b:Fp(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.N(c);c=$APP.J(e,$APP.Ih);var g=$APP.J(e,$APP.V),h=$APP.J(e,Ap);e=$APP.J(e,Ep);b.call(this,new d("x-table-row-connected",{detail:$APP.xg(new $APP.Q(null,
10
- 4,[$APP.ri,$APP.n(e)?e:0,$APP.$i,c,$APP.wi,g,$APP.Rh,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Jp(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.O(c,d)&&Gp(this);return null};Kp(a.prototype);return a},Np=function(){$APP.n(customElements.get("x-table-row"))||customElements.define("x-table-row",
11
- Mp());return null},Ap=new $APP.M(null,"interactive?","interactive?",367617676),Ep=new $APP.M(null,"row-index","row-index",-828710296),Dp=new $APP.M(null,"row-index-raw","row-index-raw",1490649093);var Lp=["selected","disabled","interactive","row-index"];$APP.wd(["x-table-row-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.Fh,$APP.$i,$APP.Ji,$APP.wi,$APP.Ji],null),$APP.ui,!0],null),"x-table-row-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.ri,$APP.Fh,$APP.$i,$APP.Ji,$APP.wi,$APP.Ji,$APP.Rh,$APP.Ji],null),$APP.ui,!1],null),"x-table-row-disconnected",new $APP.Q(null,2,[$APP.Y,$APP.xd,$APP.ui,!1],null)]);$APP.ka("baredom.exports.x_table_row.init",Np);export const init=Np;
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.N(a);a=$APP.I(b,Cp);b=$APP.I(b,$APP.V);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
+ b.appendChild(c);b.appendChild(d);a.__xTableRowRefs=new $APP.Q(null,2,[$APP.kh,b,$APP.Jh,d],null)}},Hp=function(a){a=new $APP.Q(null,4,[$APP.Ch,a.hasAttribute("selected"),$APP.V,a.hasAttribute("disabled"),Cp,a.hasAttribute("interactive"),Fp,a.getAttribute("row-index")],null);var b=$APP.N(a);a=$APP.I(b,$APP.Ch);var c=$APP.I(b,$APP.V),d=$APP.I(b,Cp);b=$APP.I(b,Fp);return new $APP.Q(null,4,[$APP.Ch,$APP.K(a),$APP.V,$APP.K(c),Cp,$APP.K(d),Gp,Bp(b)],null)},Ip=function(a){var b=Hp(a);if($APP.O($APP.l(a,
4
+ "__xTableRowModel"),b)){Ep(a);var c=$APP.N(b),d=$APP.I(c,$APP.Ch),e=$APP.I(c,$APP.V),g=$APP.I(c,Cp),h=$APP.I(c,Gp);a.setAttribute("role","row");var k=$APP.N(c);var m=$APP.I(k,$APP.Ch);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.T.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.N(c);c=$APP.I(e,$APP.Ch);var g=$APP.I(e,$APP.V);e=$APP.I(e,Gp);b.call(a,new d("x-table-row-click",{detail:$APP.pg(new $APP.Q(null,3,[$APP.ki,$APP.n(e)?e:0,$APP.Ui,c,$APP.pi,g],
6
+ null)),bubbles:!0,composed:!0,cancelable:!0}))},Kp=function(a){function b(d){var e=d.key;if($APP.C.h(e,"Enter")||$APP.C.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.la(a,"__xTableRowHandlers",{click:c,keydown:b})},Lp=function(a){var b=$APP.l(a,"__xTableRowHandlers");
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
+ 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.T.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.N(c);c=$APP.I(e,$APP.Ch);var g=$APP.I(e,$APP.V),h=$APP.I(e,Cp);e=$APP.I(e,Gp);b.call(this,new d("x-table-row-connected",{detail:$APP.pg(new $APP.Q(null,
10
+ 4,[$APP.ki,$APP.n(e)?e:0,$APP.Ui,c,$APP.pi,g,$APP.Lh,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.O(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
+ Op());return null},Cp=new $APP.M(null,"interactive?","interactive?",367617676),Gp=new $APP.M(null,"row-index","row-index",-828710296),Fp=new $APP.M(null,"row-index-raw","row-index-raw",1490649093);var Np=["selected","disabled","interactive","row-index"];$APP.sd(["x-table-row-click",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ki,$APP.zh,$APP.Ui,$APP.Di,$APP.pi,$APP.Di],null),$APP.ni,!0],null),"x-table-row-connected",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,4,[$APP.ki,$APP.zh,$APP.Ui,$APP.Di,$APP.pi,$APP.Di,$APP.Lh,$APP.Di],null),$APP.ni,!1],null),"x-table-row-disconnected",new $APP.Q(null,2,[$APP.Y,$APP.td,$APP.ni,!1],null)]);$APP.ja("baredom.exports.x_table_row.init",Pp);export const init=Pp;
package/dist/x-table.js CHANGED
@@ -1,16 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ts=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},vs=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
- d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.Q(null,3,[$APP.rh,b,us,d,$APP.Ph,e],null);return $APP.l(a,"__xTableRefs")},Hs=function(a){a=new $APP.Q(null,8,[ws,a.getAttribute("columns"),xs,a.getAttribute("caption"),ys,a.getAttribute("selectable"),$APP.kh,a.hasAttribute("striped"),zs,a.hasAttribute("bordered"),As,a.hasAttribute("full-width"),Bs,a.hasAttribute("compact"),Cs,a.getAttribute("row-count")],null);var b=
4
- $APP.N(a),c=$APP.J(b,ws),d=$APP.J(b,xs),e=$APP.J(b,ys);a=$APP.J(b,$APP.kh);var g=$APP.J(b,zs),h=$APP.J(b,As),k=$APP.J(b,Bs);b=$APP.J(b,Cs);a:{if(typeof c==="string"&&(c=c.trim(),$APP.O(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.C.h(c,""+$APP.T.g(m))?"repeat("+$APP.T.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.Cc(Ds,e)?e:"none";return new $APP.Q(null,8,[$APP.Sg,c,Es,d,Fs,e,$APP.kh,$APP.K(a),zs,$APP.K(g),As,$APP.K(h),Bs,$APP.K(k),
5
- Gs,ts(b)],null)},Is=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},Js=function(a){var b=Hs(a);if($APP.O($APP.l(a,"__xTableModel"),b)){b=$APP.N(b);var c=$APP.J(b,$APP.Sg),d=$APP.J(b,Es),e=$APP.J(b,Fs),g=$APP.J(b,$APP.kh),h=$APP.J(b,zs),k=$APP.J(b,As),m=$APP.J(b,Bs),q=$APP.J(b,Gs),r=vs(a);r=$APP.N(r);r=$APP.J(r,us);a.style.gridTemplateColumns=$APP.n(c)?
2
+ var vs=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},xs=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
+ d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.Q(null,3,[$APP.kh,b,ws,d,$APP.Jh,e],null);return $APP.l(a,"__xTableRefs")},Js=function(a){a=new $APP.Q(null,8,[ys,a.getAttribute("columns"),zs,a.getAttribute("caption"),As,a.getAttribute("selectable"),$APP.dh,a.hasAttribute("striped"),Bs,a.hasAttribute("bordered"),Cs,a.hasAttribute("full-width"),Ds,a.hasAttribute("compact"),Es,a.getAttribute("row-count")],null);var b=
4
+ $APP.N(a),c=$APP.I(b,ys),d=$APP.I(b,zs),e=$APP.I(b,As);a=$APP.I(b,$APP.dh);var g=$APP.I(b,Bs),h=$APP.I(b,Cs),k=$APP.I(b,Ds);b=$APP.I(b,Es);a:{if(typeof c==="string"&&(c=c.trim(),$APP.O(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.C.h(c,""+$APP.T.g(m))?"repeat("+$APP.T.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.yc(Fs,e)?e:"none";return new $APP.Q(null,8,[$APP.Kg,c,Gs,d,Hs,e,$APP.dh,$APP.K(a),Bs,$APP.K(g),Cs,$APP.K(h),Ds,$APP.K(k),
5
+ Is,vs(b)],null)},Ks=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.Lc(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},Ls=function(a){var b=Js(a);if($APP.O($APP.l(a,"__xTableModel"),b)){b=$APP.N(b);var c=$APP.I(b,$APP.Kg),d=$APP.I(b,Gs),e=$APP.I(b,Hs),g=$APP.I(b,$APP.dh),h=$APP.I(b,Bs),k=$APP.I(b,Cs),m=$APP.I(b,Ds),q=$APP.I(b,Is),r=xs(a);r=$APP.N(r);r=$APP.I(r,ws);a.style.gridTemplateColumns=$APP.n(c)?
6
6
  c:"";a.setAttribute("role",$APP.C.h(e,"none")?"table":"grid");c=$APP.C.h(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");q!=null?a.setAttribute("aria-rowcount",""+$APP.T.g(q)):a.removeAttribute("aria-rowcount");$APP.O(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.O(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)&&Is(a);a.__xTableModel=b}},Ms=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Hs(a);$APP.n($APP.kh.g(e))&&Is(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.n(g)?g:Hs(a);
8
- var h=Fs.g(g);if($APP.O(h,"none")){g=e.target;e=$APP.l(e.detail,"rowIndex");var k=g.hasAttribute("selected");k=($APP.C.h(h,"single"),$APP.p(k));e=$APP.xg(new $APP.Q(null,3,[$APP.ri,$APP.n(e)?e:0,$APP.$i,k,Ks,h],null));a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0}));if($APP.C.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.C.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.Q(null,3,[Ls,g,$APP.ai,h,$APP.Hi,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
- 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})},Ns=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},Os=function(a){Object.defineProperty(a,
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.T.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.T.g(b)):this.removeAttribute("caption")},enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",
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.T.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")},
13
- set:function(b){return $APP.n(b)?this.setAttribute("bordered",""):this.removeAttribute("bordered")},enumerable:!0,configurable:!0});Object.defineProperty(a,"compact",{get:function(){return this.hasAttribute("compact")},set:function(b){return $APP.n(b)?this.setAttribute("compact",""):this.removeAttribute("compact")},enumerable:!0,configurable:!0});Object.defineProperty(a,"fullWidth",{get:function(){return this.hasAttribute("full-width")},set:function(b){return $APP.n(b)?this.setAttribute("full-width",
14
- ""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return ts(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0})},Qs=function(){var a=class extends HTMLElement{};a.observedAttributes=Ps;a.prototype.connectedCallback=function(){vs(this);Ns(this);Ms(this);Js(this);return null};a.prototype.disconnectedCallback=
15
- function(){Ns(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Js(this);return null};Os(a.prototype);return a},Rs=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",Qs());return null},Fs=new $APP.M(null,"selectable","selectable",370587038),As=new $APP.M(null,"full-width?","full-width?",1477288349),Cs=new $APP.M(null,"row-count-raw","row-count-raw",-1432781274),ys=new $APP.M(null,"selectable-raw","selectable-raw",-1276314763),Ls=new $APP.M(null,
16
- "colIndex","colIndex",171239635),Es=new $APP.M(null,"caption","caption",-855383902),zs=new $APP.M(null,"bordered?","bordered?",562358476),Gs=new $APP.M(null,"row-count","row-count",1060167988),us=new $APP.M(null,"caption-div","caption-div",1485363333),xs=new $APP.M(null,"caption-raw","caption-raw",-375935083),Ks=new $APP.M(null,"selectionMode","selectionMode",1264773367),ws=new $APP.M(null,"columns-raw","columns-raw",-2093994046),Bs=new $APP.M(null,"compact?","compact?",1216893298);var Ps="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.wd(["x-table-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[Ls,$APP.Fh,$APP.ai,$APP.X,$APP.Hi,$APP.X],null),$APP.ui,!0],null),"x-table-row-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ri,$APP.Fh,$APP.$i,$APP.Ji,Ks,$APP.X],null),$APP.ui,!0],null)]);var Ds=new $APP.S(null,new $APP.Q(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ka("baredom.exports.x_table.init",Rs);export const init=Rs;
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)&&Ks(a);a.__xTableModel=b}},Os=function(a){function b(){var e=$APP.l(a,"__xTableModel");e=$APP.n(e)?e:Js(a);$APP.n($APP.dh.g(e))&&Ks(a);return null}function c(e){var g=$APP.l(a,"__xTableModel");g=$APP.n(g)?g:Js(a);
8
+ var h=Hs.g(g);if($APP.O(h,"none"))if(g=e.target,e=$APP.l(e.detail,"rowIndex"),e=$APP.pg(new $APP.Q(null,3,[$APP.ki,$APP.n(e)?e:0,$APP.Ui,$APP.p(g.hasAttribute("selected")),Ms,h],null)),a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0})),$APP.C.h(h,"single")){e=g.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var k=h.length,m=0;;)if(m<k)h[m].removeAttribute("selected"),m+=1;else break;$APP.n(e)||g.setAttribute("selected",
9
+ "")}else $APP.C.h(h,"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.pg(new $APP.Q(null,3,[Ns,g,$APP.Vh,h,$APP.Bi,k],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
10
+ return null}a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.la(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},Ps=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",
11
+ b)}a.__xTableHandlers=null},Qs=function(a){Object.defineProperty(a,"columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.T.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.T.g(b)):this.removeAttribute("caption")},
12
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",{get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.T.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});
13
+ Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bordered")},set:function(b){return $APP.n(b)?this.setAttribute("bordered",""):this.removeAttribute("bordered")},enumerable:!0,configurable:!0});Object.defineProperty(a,"compact",{get:function(){return this.hasAttribute("compact")},set:function(b){return $APP.n(b)?this.setAttribute("compact",""):this.removeAttribute("compact")},enumerable:!0,configurable:!0});Object.defineProperty(a,"fullWidth",{get:function(){return this.hasAttribute("full-width")},
14
+ set:function(b){return $APP.n(b)?this.setAttribute("full-width",""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return vs(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0})},Ss=function(){var a=class extends HTMLElement{};a.observedAttributes=Rs;a.prototype.connectedCallback=function(){xs(this);
15
+ Ps(this);Os(this);Ls(this);return null};a.prototype.disconnectedCallback=function(){Ps(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Ls(this);return null};Qs(a.prototype);return a},Ts=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",Ss());return null},Hs=new $APP.M(null,"selectable","selectable",370587038),Cs=new $APP.M(null,"full-width?","full-width?",1477288349),Es=new $APP.M(null,"row-count-raw","row-count-raw",-1432781274),
16
+ As=new $APP.M(null,"selectable-raw","selectable-raw",-1276314763),Ns=new $APP.M(null,"colIndex","colIndex",171239635),Gs=new $APP.M(null,"caption","caption",-855383902),Bs=new $APP.M(null,"bordered?","bordered?",562358476),Is=new $APP.M(null,"row-count","row-count",1060167988),ws=new $APP.M(null,"caption-div","caption-div",1485363333),zs=new $APP.M(null,"caption-raw","caption-raw",-375935083),Ms=new $APP.M(null,"selectionMode","selectionMode",1264773367),ys=new $APP.M(null,"columns-raw","columns-raw",
17
+ -2093994046),Ds=new $APP.M(null,"compact?","compact?",1216893298);var Rs="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.sd(["x-table-sort",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[Ns,$APP.zh,$APP.Vh,$APP.X,$APP.Bi,$APP.X],null),$APP.ni,!0],null),"x-table-row-select",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,3,[$APP.ki,$APP.zh,$APP.Ui,$APP.Di,Ms,$APP.X],null),$APP.ni,!0],null)]);var Fs=new $APP.S(null,new $APP.Q(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ja("baredom.exports.x_table.init",Ts);export const init=Ts;
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tt=function(a){if($APP.tc(a))return $APP.pc(a,null);a=$APP.u(a);if(a==null)return $APP.sf;if(a instanceof $APP.Ib&&a.u===0)return $APP.tf(a.i);for(var b=$APP.hb($APP.sf);;)if(a!=null){var c=$APP.y(a);b=$APP.ib(b,$APP.Da(a));a=c}else return $APP.jb(b)},yt=function(a){var b=$APP.N(a);a=$APP.J(b,$APP.U);var c=$APP.J(b,$APP.zh),d=$APP.J(b,ut),e=$APP.J(b,$APP.W);b=$APP.J(b,vt);c=$APP.Cc(wt,c)?c:"horizontal";d=$APP.Cc(xt,d)?d:"auto";return new $APP.Q(null,5,[$APP.U,a,$APP.zh,c,ut,d,$APP.W,e,vt,$APP.K(b)],
3
- null)},zt=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},At=function(a){return new $APP.Q(null,5,[$APP.U,a.getAttribute("value"),$APP.zh,a.getAttribute("orientation"),ut,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),vt,a.hasAttribute("loop")],null)},Bt=function(a){return $APP.be($APP.Kd(function(b){return $APP.C.h("X-TAB",b.tagName)},$APP.gc(a.children)))},Ct=function(a){return $APP.p(a.hasAttribute("disabled"))},Dt=function(a){return a.getAttribute("value")},Et=function(a){return $APP.Ad(function(b){return Ct(b)?
4
- b:null},a)},Ft=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},Gt=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"))},Ht=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},It=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
- $APP.O(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Jt=function(a){var b=Bt(a),c=a.getAttribute("value"),d=tt($APP.Cd(Dt,b));$APP.n($APP.n(c)?$APP.Cc(d,c):c)||(c=Et(b),c=$APP.n(c)?Dt(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.C.h(Dt(k),c);Gt(k,m);m&&Ct(k)?Ht(k,"0"):Ht(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.C.h(Dt(k),c),Gt(k,e),e&&Ct(k)?Ht(k,"0"):Ht(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),It(k,$APP.C.h(Dt(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),It(k,$APP.C.h(Dt(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;Ft(a,c)}return c},Kt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.O(c,b):b)?(Ft(a,b),Jt(a),a.dispatchEvent(new CustomEvent("value-change",
7
- {detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Lt=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Mt=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Nt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=yt(At(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.zh.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Jt(a)},Ot=function(a){var b=
8
- new MutationObserver(function(){return Nt(a)});b.observe(a,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},Pt=function(a){function b(d){a:{var e=$APP.be($APP.Kd(Ct,Bt(a))),g=yt(At(a)),h=$APP.zh.g(g);var k=ut.g(g);g=vt.g(g);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowRight")?Lt(q,e,g):$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowLeft")?Mt(q,e,g):$APP.C.h(h,"vertical")&&
9
- $APP.C.h(m,"ArrowDown")?Lt(q,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowUp")?Mt(q,e,g):$APP.C.h(m,"Home")?0:$APP.C.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.C.h(k,"auto")?Kt(a,Dt(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Kt(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;Ot(a)},Qt=function(a){Object.defineProperty(a.prototype,
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})},St=function(){var a=class extends HTMLElement{};a.observedAttributes=Rt;a.prototype.connectedCallback=function(){if(zt(this)){Pt(this);var b=Nt(this)}else{if(!zt(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
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;Pt(this);this.__x_tabs_initialized=!0}Nt(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
- "__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 zt(this)?Nt(this):null};Qt(a);return a},Tt=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",St())},ut=new $APP.M(null,"activation","activation",2128521072),vt=new $APP.M(null,"loop","loop",-395552849);var Rt=["value","orientation","activation","label","loop"],wt=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),xt=new $APP.S(null,new $APP.Q(null,2,["auto",null,"manual",null],null),null);$APP.wd(["value-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_tabs.init",Tt);export const init=Tt;
2
+ var vt=function(a){if($APP.pc(a))return $APP.mc(a,null);a=$APP.u(a);if(a==null)return $APP.mf;if(a instanceof $APP.Fb&&a.s===0)return $APP.nf(a.i);for(var b=$APP.fb($APP.mf);;)if(a!=null){var c=$APP.y(a);b=$APP.gb(b,$APP.Ba(a));a=c}else return $APP.hb(b)},At=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.U);var c=$APP.I(b,$APP.th),d=$APP.I(b,wt),e=$APP.I(b,$APP.W);b=$APP.I(b,xt);c=$APP.yc(yt,c)?c:"horizontal";d=$APP.yc(zt,d)?d:"auto";return new $APP.Q(null,5,[$APP.U,a,$APP.th,c,wt,d,$APP.W,e,xt,$APP.K(b)],
3
+ null)},Bt=function(a){return $APP.l(a,"__x_tabs_initialized")===!0},Ct=function(a){return new $APP.Q(null,5,[$APP.U,a.getAttribute("value"),$APP.th,a.getAttribute("orientation"),wt,a.getAttribute("activation"),$APP.W,a.getAttribute("label"),xt,a.hasAttribute("loop")],null)},Dt=function(a){return $APP.Wd($APP.Ed(function(b){return $APP.C.h("X-TAB",b.tagName)},$APP.dc(a.children)))},Et=function(a){return $APP.p(a.hasAttribute("disabled"))},Ft=function(a){return a.getAttribute("value")},Gt=function(a){return $APP.xd(function(b){return Et(b)?
4
+ b:null},a)},Ht=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.O(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.C.h(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},It=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"))},Jt=function(a,b){var c=a.getAttribute("tabindex");$APP.O(c,b)&&a.setAttribute("tabindex",b)},Kt=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?
5
+ $APP.O(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},Lt=function(a){var b=Dt(a),c=a.getAttribute("value"),d=vt($APP.zd(Ft,b));$APP.n($APP.n(c)?$APP.yc(d,c):c)||(c=Gt(b),c=$APP.n(c)?Ft(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.D(null,h),m=$APP.C.h(Ft(k),c);It(k,m);m&&Et(k)?Jt(k,"0"):Jt(k,"-1");h+=1}else if(d=$APP.u(d))$APP.uc(d)?(e=$APP.mb(d),d=$APP.nb(d),k=e,g=$APP.B(e),e=k):(k=$APP.x(d),
6
+ e=$APP.C.h(Ft(k),c),It(k,e),e&&Et(k)?Jt(k,"0"):Jt(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.D(null,g),Kt(k,$APP.C.h(Ft(k),c)),g+=1;else if(b=$APP.u(b))d=b,$APP.uc(d)?(b=$APP.mb(d),e=$APP.nb(d),d=b,k=$APP.B(b),b=e,e=k):(k=$APP.x(d),Kt(k,$APP.C.h(Ft(k),c)),b=$APP.y(d),d=null,e=0),g=0;else break a;Ht(a,c)}return c},Mt=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.O(c,b):b)?(Ht(a,b),Lt(a),a.dispatchEvent(new CustomEvent("value-change",
7
+ {detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},Nt=function(a,b,c){b=$APP.B(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},Ot=function(a,b,c){var d=a-1;b=$APP.B(b)-1;return d>=0?d:$APP.n(c)?b:a},Pt=function(a){var b=$APP.l(a,"__x_tabs_base"),c=At(Ct(a));$APP.n(b)&&(b.setAttribute("role","tablist"),b.setAttribute("aria-orientation",$APP.th.g(c)),c=$APP.W.g(c),$APP.n($APP.n(c)?$APP.O(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return Lt(a)},Qt=function(a){var b=
8
+ new MutationObserver(function(){return Pt(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},Rt=function(a){function b(d){a:{var e=$APP.Wd($APP.Ed(Et,Dt(a))),g=At(Ct(a)),h=$APP.th.g(g);var k=wt.g(g);g=xt.g(g);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowRight")?Nt(q,e,g):$APP.C.h(h,"horizontal")&&$APP.C.h(m,"ArrowLeft")?Ot(q,e,g):$APP.C.h(h,"vertical")&&
9
+ $APP.C.h(m,"ArrowDown")?Nt(q,e,g):$APP.C.h(h,"vertical")&&$APP.C.h(m,"ArrowUp")?Ot(q,e,g):$APP.C.h(m,"Home")?0:$APP.C.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.C.h(k,"auto")?Mt(a,Ft(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return Mt(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;Qt(a)},St=function(a){Object.defineProperty(a.prototype,
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})},Ut=function(){var a=class extends HTMLElement{};a.observedAttributes=Tt;a.prototype.connectedCallback=function(){if(Bt(this)){Rt(this);var b=Pt(this)}else{if(!Bt(this)){b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
11
+ ":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-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;Rt(this);this.__x_tabs_initialized=
12
+ !0}Pt(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,"__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 Bt(this)?Pt(this):null};St(a);return a},Vt=function(){return $APP.n(customElements.get("x-tabs"))?null:customElements.define("x-tabs",
13
+ Ut())},wt=new $APP.M(null,"activation","activation",2128521072),xt=new $APP.M(null,"loop","loop",-395552849);var Tt=["value","orientation","activation","label","loop"],yt=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),zt=new $APP.S(null,new $APP.Q(null,2,["auto",null,"manual",null],null),null);$APP.sd(["value-change",new $APP.Q(null,1,[$APP.Y,new $APP.Q(null,1,[$APP.U,$APP.X],null)],null)]);$APP.ja("baredom.exports.x_tabs.init",Vt);export const init=Vt;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var CF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},DF=function(a,b,c){return a.setAttribute(b,c)},EF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},FF=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.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},OF=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.cf([GF,$APP.ch,$APP.Jh,$APP.sh,$APP.Eh,HF,$APP.Yh,IF,$APP.Cg,$APP.ti,$APP.Ei,$APP.bh,JF,$APP.vh],[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.N(g),k=$APP.J(h,JF),m=$APP.J(h,$APP.vh),q=$APP.J(h,GF),r=$APP.J(h,$APP.ch),v=$APP.J(h,$APP.Jh),w=$APP.J(h,$APP.sh),z=$APP.J(h,$APP.Eh),A=$APP.J(h,HF);g=$APP.J(h,$APP.Yh);var D=$APP.J(h,IF),F=$APP.J(h,$APP.Cg),I=$APP.J(h,$APP.ti),E=$APP.J(h,$APP.Ei);h=$APP.J(h,$APP.bh);var R=$APP.n(w)?w:"",ha=$APP.n(z)?z:"",wa=$APP.n(r)?r:"";F=$APP.K(F);I=$APP.K(I);
5
- m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.O(z,"")&&z!=null;v=$APP.n(v)?v:"";E=$APP.n(E)?E:"";k=CF(k);r=typeof r==="string"&&$APP.O(r,"")&&r!=null;w=typeof w==="string"&&$APP.O(w,"")&&w!=null;q=typeof q==="string"&&$APP.Cc(KF,q)?q:"vertical";A=CF(A);g=$APP.cf([$APP.ah,$APP.aj,$APP.Bi,$APP.fh,$APP.gi,$APP.U,LF,$APP.Mh,$APP.jh,MF,$APP.ki,NF,$APP.Vh,$APP.W,$APP.ph,$APP.mi,$APP.V],[F,I,m,z,v,E,k,r,w,q,ha,CF(D),$APP.n(A)?A:3,wa,R,$APP.n(h)?h:"",$APP.K(g)]);D=$APP.jh.g(g);A=$APP.fh.g(g);h=$APP.Mh.g(g);
6
- c.name=$APP.gi.g(g);c.placeholder=$APP.Bi.g(g);c.disabled=$APP.V.g(g);c.readOnly=$APP.aj.g(g);c.required=$APP.ah.g(g);c.rows=$APP.Vh.g(g);c.autocomplete=$APP.mi.g(g);R=NF.g(g);$APP.n(R)?DF(c,"maxlength",""+$APP.T.g(R)):c.removeAttribute("maxlength");R=LF.g(g);$APP.n(R)?DF(c,"minlength",""+$APP.T.g(R)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",MF.g(g));DF(c,"aria-required",$APP.n($APP.ah.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");R=
7
- $APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(R)?c.setAttribute("aria-describedby",R):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.ki.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.ph.g(g);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");EF(a,"data-invalid",D);d=$APP.l(a,
8
- "__xTextAreaInternals");return $APP.n(d)?FF(a,d,c):null}return null},PF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},QF=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),FF(a,e,b));return PF(a,"x-text-area-input",{name:d,value:c})}return null}},RF=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),FF(a,e,b));return PF(a,"x-text-area-change",{name:d,value:c})}return null}},SF=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},TF=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.O(d)?DF(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},UF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return EF(this,c,$APP.K(d))}})},VF=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
- enumerable:!0,get:function(){var e=CF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?DF(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},WF=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.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",
12
- b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},YF=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return XF}});WF(b);TF(b,"name","name");TF(b,"placeholder","placeholder");TF(b,"autocomplete","autocomplete");UF(b,"disabled","disabled");UF(b,"readOnly","readonly");UF(b,"required","required");VF(b,"rows","rows",3);VF(b,"maxLength","maxlength",null);VF(b,"minLength",
2
+ var LF=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},MF=function(a,b,c){return a.setAttribute(b,c)},NF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},OF=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.C.h(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},XF=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.Xe([PF,$APP.Wg,$APP.Dh,$APP.lh,$APP.yh,QF,$APP.Sh,RF,$APP.ug,$APP.mi,$APP.yi,$APP.Vg,SF,$APP.ph],[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.N(g),k=$APP.I(h,SF),m=$APP.I(h,$APP.ph),q=$APP.I(h,PF),r=$APP.I(h,$APP.Wg),v=$APP.I(h,$APP.Dh),w=$APP.I(h,$APP.lh),z=$APP.I(h,$APP.yh),A=$APP.I(h,QF);g=$APP.I(h,$APP.Sh);var D=$APP.I(h,RF),G=$APP.I(h,$APP.ug),J=$APP.I(h,$APP.mi),E=$APP.I(h,$APP.yi);h=$APP.I(h,$APP.Vg);var R=$APP.n(w)?w:"",ha=$APP.n(z)?z:"",ua=$APP.n(r)?r:"";G=$APP.K(G);J=$APP.K(J);
5
+ m=$APP.n(m)?m:"";z=typeof z==="string"&&$APP.O(z,"")&&z!=null;v=$APP.n(v)?v:"";E=$APP.n(E)?E:"";k=LF(k);r=typeof r==="string"&&$APP.O(r,"")&&r!=null;w=typeof w==="string"&&$APP.O(w,"")&&w!=null;q=typeof q==="string"&&$APP.yc(TF,q)?q:"vertical";A=LF(A);g=$APP.Xe([$APP.Tg,$APP.Vi,$APP.vi,$APP.Zg,$APP.ai,$APP.U,UF,$APP.Gh,$APP.ch,VF,$APP.ei,WF,$APP.Ph,$APP.W,$APP.ih,$APP.gi,$APP.V],[G,J,m,z,v,E,k,r,w,q,ha,LF(D),$APP.n(A)?A:3,ua,R,$APP.n(h)?h:"",$APP.K(g)]);D=$APP.ch.g(g);A=$APP.Zg.g(g);h=$APP.Gh.g(g);
6
+ c.name=$APP.ai.g(g);c.placeholder=$APP.vi.g(g);c.disabled=$APP.V.g(g);c.readOnly=$APP.Vi.g(g);c.required=$APP.Tg.g(g);c.rows=$APP.Ph.g(g);c.autocomplete=$APP.gi.g(g);R=WF.g(g);$APP.n(R)?MF(c,"maxlength",""+$APP.T.g(R)):c.removeAttribute("maxlength");R=UF.g(g);$APP.n(R)?MF(c,"minlength",""+$APP.T.g(R)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",VF.g(g));MF(c,"aria-required",$APP.n($APP.Tg.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(D)?"true":"false");R=
7
+ $APP.n($APP.n(A)?D:A)?"hint error":$APP.n(A)?"hint":$APP.n(D)?"error":null;$APP.n(R)?c.setAttribute("aria-describedby",R):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.ei.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.ih.g(g);$APP.n(D)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");NF(a,"data-invalid",D);d=$APP.l(a,
8
+ "__xTextAreaInternals");return $APP.n(d)?OF(a,d,c):null}return null},YF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},ZF=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),OF(a,e,b));return YF(a,"x-text-area-input",{name:d,value:c})}return null}},$F=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),OF(a,e,b));return YF(a,"x-text-area-change",{name:d,value:c})}return null}},aG=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},bG=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.O(d)?MF(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},cG=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return NF(this,c,$APP.K(d))}})},dG=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
+ enumerable:!0,get:function(){var e=LF(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.O(e)&&e>0?MF(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},eG=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.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",
12
+ b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},gG=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return fG}});eG(b);bG(b,"name","name");bG(b,"placeholder","placeholder");bG(b,"autocomplete","autocomplete");cG(b,"disabled","disabled");cG(b,"readOnly","readonly");cG(b,"required","required");dG(b,"rows","rows",3);dG(b,"maxLength","maxlength",null);dG(b,"minLength",
13
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
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())}SF(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=QF(this),e=RF(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return OF(this)};b.disconnectedCallback=function(){return SF(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return OF(this)};b.formDisabledCallback=function(c){EF(this,
17
- "disabled",$APP.K(c));return OF(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 OF(this)};return a},ZF=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",YF())},LF=new $APP.M(null,"minlength","minlength",259053545),JF=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
18
- IF=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),GF=new $APP.M(null,"resize-raw","resize-raw",-287517888),NF=new $APP.M(null,"maxlength","maxlength",-1163911985),HF=new $APP.M(null,"rows-raw","rows-raw",-1828357145),MF=new $APP.M(null,"resize","resize",297367086);var XF="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),KF=new $APP.S(null,new $APP.Q(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
- $APP.cf([$APP.wi,$APP.gi,$APP.U,new $APP.M(null,"minLength","minLength",-1538722770),$APP.Vh,$APP.zi,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.mi,$APP.Mg],[new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"minlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"rows"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,
20
- "readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"maxlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"required"],null)]);$APP.ka("baredom.exports.x_text_area.init",ZF);export const init=ZF;
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())}aG(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=ZF(this),e=$F(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return XF(this)};b.disconnectedCallback=function(){return aG(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.l(c,"textarea"),$APP.O(c.value,e)&&(c.value=$APP.n(e)?e:"")));return XF(this)};b.formDisabledCallback=function(c){NF(this,
17
+ "disabled",$APP.K(c));return XF(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 XF(this)};return a},hG=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",gG())},UF=new $APP.M(null,"minlength","minlength",259053545),SF=new $APP.M(null,"minlength-raw","minlength-raw",-1245403779),
18
+ RF=new $APP.M(null,"maxlength-raw","maxlength-raw",-886656470),PF=new $APP.M(null,"resize-raw","resize-raw",-287517888),WF=new $APP.M(null,"maxlength","maxlength",-1163911985),QF=new $APP.M(null,"rows-raw","rows-raw",-1828357145),VF=new $APP.M(null,"resize","resize",297367086);var fG="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),TF=new $APP.S(null,new $APP.Q(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
+ $APP.Xe([$APP.pi,$APP.ai,$APP.U,new $APP.M(null,"minLength","minLength",-1538722770),$APP.Ph,$APP.si,new $APP.M(null,"maxLength","maxLength",-1633020073),$APP.gi,$APP.Eg],[new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"minlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"rows"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,
20
+ "readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"maxlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"required"],null)]);$APP.ja("baredom.exports.x_text_area.init",hG);export const init=hG;