@vanelsas/baredom 3.2.0 → 4.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +82 -170
  3. package/custom-elements.json +3705 -3385
  4. package/dist/barebuild-action.d.ts +45 -0
  5. package/dist/barebuild-action.js +9 -0
  6. package/dist/barebuild-data.d.ts +39 -0
  7. package/dist/barebuild-data.js +5 -0
  8. package/dist/barebuild-invalidate-on.d.ts +42 -0
  9. package/dist/barebuild-invalidate-on.js +5 -0
  10. package/dist/barebuild-route.d.ts +39 -0
  11. package/dist/barebuild-route.js +4 -0
  12. package/dist/barebuild-router.d.ts +41 -0
  13. package/dist/barebuild-router.js +13 -0
  14. package/dist/baredom.d.ts +96 -91
  15. package/dist/base.js +589 -579
  16. package/dist/integrity.json +113 -108
  17. package/dist/x-alert.js +17 -17
  18. package/dist/x-avatar-group.js +9 -9
  19. package/dist/x-avatar.js +14 -14
  20. package/dist/x-badge.js +9 -9
  21. package/dist/x-bento-grid.js +5 -5
  22. package/dist/x-bento-item.js +4 -4
  23. package/dist/x-breadcrumbs.js +13 -13
  24. package/dist/x-button.js +1 -1
  25. package/dist/x-calendar.js +38 -38
  26. package/dist/x-cancel-dialogue.js +13 -13
  27. package/dist/x-card.js +7 -7
  28. package/dist/x-carousel.js +33 -33
  29. package/dist/x-chart.js +47 -47
  30. package/dist/x-checkbox.js +1 -1
  31. package/dist/x-chip.js +1 -1
  32. package/dist/x-code.js +27 -27
  33. package/dist/x-collapse.js +11 -11
  34. package/dist/x-color-picker.js +44 -44
  35. package/dist/x-combobox.js +28 -28
  36. package/dist/x-command-palette.js +27 -27
  37. package/dist/x-confetti.js +24 -24
  38. package/dist/x-container.js +5 -5
  39. package/dist/x-context-menu.js +20 -20
  40. package/dist/x-copy.js +1 -1
  41. package/dist/x-currency-field.js +24 -24
  42. package/dist/x-date-picker.d.ts +5 -4
  43. package/dist/x-date-picker.js +37 -37
  44. package/dist/x-divider.js +10 -10
  45. package/dist/x-drawer.js +11 -11
  46. package/dist/x-dropdown.js +12 -12
  47. package/dist/x-fieldset.js +5 -5
  48. package/dist/x-file-download.js +5 -5
  49. package/dist/x-file-upload.js +22 -22
  50. package/dist/x-form-field.js +14 -14
  51. package/dist/x-form.js +11 -10
  52. package/dist/x-gaussian-blur.js +13 -13
  53. package/dist/x-grid.js +6 -6
  54. package/dist/x-i18n-provider.js +7 -7
  55. package/dist/x-i18n.js +4 -4
  56. package/dist/x-icon.js +7 -7
  57. package/dist/x-image.js +17 -17
  58. package/dist/x-kbd.js +12 -12
  59. package/dist/x-kinetic-canvas.js +25 -25
  60. package/dist/x-kinetic-font.js +27 -27
  61. package/dist/x-kinetic-typography.js +33 -33
  62. package/dist/x-liquid-dock.js +31 -31
  63. package/dist/x-liquid-fill.js +41 -41
  64. package/dist/x-liquid-glass.js +34 -34
  65. package/dist/x-menu-item.js +8 -8
  66. package/dist/x-menu.js +9 -9
  67. package/dist/x-metaball-cursor.js +23 -23
  68. package/dist/x-modal.js +12 -12
  69. package/dist/x-morph-stack.js +37 -37
  70. package/dist/x-multi-combobox.js +35 -35
  71. package/dist/x-navbar.js +15 -15
  72. package/dist/x-neural-glow.js +29 -29
  73. package/dist/x-notification-center.js +9 -9
  74. package/dist/x-organic-divider.js +17 -17
  75. package/dist/x-organic-progress.js +33 -33
  76. package/dist/x-organic-shape.js +12 -12
  77. package/dist/x-otp-input.js +21 -21
  78. package/dist/x-pagination.js +14 -14
  79. package/dist/x-particle-button.js +48 -48
  80. package/dist/x-popover.js +26 -26
  81. package/dist/x-progress-circle.js +7 -7
  82. package/dist/x-progress.js +7 -7
  83. package/dist/x-proximity-list.js +20 -20
  84. package/dist/x-radio.js +11 -11
  85. package/dist/x-range-slider.js +28 -28
  86. package/dist/x-rating.js +23 -23
  87. package/dist/x-ripple-effect.js +9 -9
  88. package/dist/x-scroll-parallax.js +17 -17
  89. package/dist/x-scroll-stack.js +16 -16
  90. package/dist/x-scroll-story.js +33 -33
  91. package/dist/x-scroll-timeline.js +45 -45
  92. package/dist/x-scroll.js +37 -37
  93. package/dist/x-search-field.js +1 -1
  94. package/dist/x-select.d.ts +1 -0
  95. package/dist/x-select.js +1 -1
  96. package/dist/x-sidebar.js +16 -16
  97. package/dist/x-skeleton-group.js +12 -12
  98. package/dist/x-skeleton.js +1 -1
  99. package/dist/x-slider.js +15 -15
  100. package/dist/x-soft-body.js +18 -18
  101. package/dist/x-spacer.js +4 -4
  102. package/dist/x-spinner.js +4 -4
  103. package/dist/x-splash.js +12 -12
  104. package/dist/x-split-pane.js +15 -15
  105. package/dist/x-spotlight-card.js +12 -12
  106. package/dist/x-stat.js +10 -10
  107. package/dist/x-stepper.js +13 -13
  108. package/dist/x-switch.js +10 -10
  109. package/dist/x-tab.js +6 -6
  110. package/dist/x-table-cell.js +19 -19
  111. package/dist/x-table-row.js +8 -8
  112. package/dist/x-table.js +13 -13
  113. package/dist/x-tabs.js +11 -11
  114. package/dist/x-text-area.js +18 -18
  115. package/dist/x-theme.js +25 -25
  116. package/dist/x-timeline-item.js +20 -20
  117. package/dist/x-timeline.js +8 -8
  118. package/dist/x-toast.js +22 -22
  119. package/dist/x-toaster.js +6 -6
  120. package/dist/x-tooltip.js +12 -12
  121. package/dist/x-trace-history.js +124 -124
  122. package/dist/x-typography.js +6 -6
  123. package/dist/x-welcome-tour.js +63 -63
  124. package/package.json +28 -1
@@ -1,22 +1,22 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var GZ=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(b,a)?a:c},HZ=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},dla=function(a){var b=$APP.G(a);a=$APP.C(b,IZ);b=$APP.C(b,JZ);if($APP.n($APP.n(a)?a:$APP.I(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},KZ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.O);b=$APP.C(b,IZ);return(a=$APP.z.j(a,
3
- "header"))?b:a},ela=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},fla=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},NZ=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 jZ=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.ed(b,a)?a:c},kZ=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):1):1},sma=function(a){var b=$APP.G(a);a=$APP.C(b,lZ);b=$APP.C(b,mZ);if($APP.n($APP.n(a)?a:$APP.I(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},nZ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.N);b=$APP.C(b,lZ);return(a=$APP.z.j(a,
3
+ "header"))?b:a},tma=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},uma=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},qZ=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
  f=document.createElement("slot"),h=document.createElement("button"),k=document.createElement("slot"),m=document.createElement("span");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-table-cell-padding:0.5rem 0.75rem;--x-table-cell-bg:transparent;--x-table-cell-header-bg:rgba(0,0,0,0.04);--x-table-cell-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-cell-border-width:1px;--x-table-cell-color:var(--x-color-text,inherit);--x-table-cell-header-color:var(--x-color-text,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:var(--x-color-text-muted,rgba(0,0,0,0.4));--x-table-cell-sort-hover-color:var(--x-color-text,rgba(0,0,0,0.7));--x-table-cell-focus-ring:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-cell-transition-duration:var(--x-transition-duration,150ms);--x-table-cell-sticky-bg:var(--x-color-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:var(--x-color-border,rgba(255,255,255,0.1));--x-table-cell-sort-color:var(--x-color-text-muted,rgba(255,255,255,0.4));--x-table-cell-sort-hover-color:var(--x-color-text,rgba(255,255,255,0.7));--x-table-cell-sticky-bg:var(--x-color-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;height:100%;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
  $APP.T(d,"part","cell");$APP.T(e,"part","content");e.appendChild(f);$APP.T(h,"part","sort-btn");$APP.T(h,"type","button");$APP.T(k,"name","sort-icon");$APP.T(m,"part","sort-icon-default");$APP.T(m,"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);b.appendChild(c);b.appendChild(d);
6
- $APP.Q(a,"__xTableCellRefs",new $APP.M(null,5,[$APP.Ak,b,gla,d,$APP.yp,e,LZ,h,MZ,m],null));return $APP.l(a,"__xTableCellRefs")},XZ=function(a){a=$APP.Eg([$APP.aq,OZ,PZ,QZ,IZ,$APP.Op,$APP.xp,RZ,SZ,$APP.Sj,TZ],[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")]);var b=
7
- $APP.G(a);a=$APP.C(b,$APP.Sj);var c=$APP.C(b,TZ),d=$APP.C(b,$APP.aq),e=$APP.C(b,OZ),f=$APP.C(b,PZ),h=$APP.C(b,QZ),k=$APP.C(b,IZ),m=$APP.C(b,$APP.Op),q=$APP.C(b,$APP.xp),u=$APP.C(b,RZ);b=$APP.C(b,SZ);return $APP.Eg([$APP.Gq,JZ,UZ,$APP.O,VZ,IZ,$APP.Ts,$APP.Kt,$APP.Op,$APP.Sj,$APP.ep],[GZ(d,hla,"start"),GZ(h,WZ,"none"),GZ(f,ila,"middle"),GZ(q,jla,"data"),GZ(b,kla,"col"),$APP.D(k),GZ(u,lla,"none"),HZ(c),$APP.D(m),$APP.D(a),HZ(e)])},YZ=function(a){var b=XZ(a);if($APP.I($APP.l(a,"__xTableCellModel"),b)){b=
8
- $APP.G(b);var c=$APP.C(b,$APP.Kt),d=$APP.C(b,$APP.ep),e=$APP.C(b,$APP.Sj),f=$APP.C(b,JZ),h=NZ(a);h=$APP.G(h);var k=$APP.C(h,LZ);h=$APP.C(h,MZ);var m=KZ(b),q=$APP.G(b),u=$APP.C(q,$APP.O),x=$APP.C(q,$APP.Gq),y=$APP.C(q,UZ),A=$APP.C(q,$APP.Ts),E=$APP.C(q,$APP.Op),H=$APP.C(q,$APP.Sj),N=$APP.G(q);var S=$APP.C(N,$APP.O);N=$APP.C(N,VZ);S=$APP.z.j(S,"header")?$APP.z.j(N,"row")||$APP.z.j(N,"rowgroup")?"rowheader":"columnheader":"cell";$APP.T(a,"role",S);q=dla(q);$APP.n(q)?$APP.T(a,"aria-sort",q):$APP.U(a,
9
- "aria-sort");$APP.n(H)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.T(a,"data-type",u);$APP.T(a,"data-align",x);$APP.T(a,"data-valign",y);$APP.z.j(A,"none")?$APP.U(a,"data-sticky"):$APP.T(a,"data-sticky",A);$APP.n(E)?$APP.T(a,"data-truncate",""):$APP.U(a,"data-truncate");a.style.gridColumn=c>1?"span "+$APP.P.i(c):"";a.style.gridRow=d>1?"span "+$APP.P.i(d):"";k.hidden=$APP.p(m);c=parseInt;u=$APP.G(b);m=$APP.C(u,$APP.O);d=$APP.C(u,IZ);u=$APP.C(u,$APP.Sj);m=$APP.z.j(m,"header");k.tabIndex=
10
- c($APP.n(m?$APP.n(d)?$APP.p(u):d:m)?"0":"-1",10);$APP.T(k,"aria-label",fla(f));k.disabled=$APP.D(e);a:switch(e=$APP.G(b),$APP.C(e,JZ)){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';break a;default:e=
11
- '\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=$APP.Q(a,"__xTableCellModel",b)}else a=null;return a},mla=function(a){var b=a.getAttribute("sort-direction");b=GZ(b,WZ,"none");return $APP.fj(a,"x-table-cell-sort",{direction:ela(b),previousDirection:b})},nla=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");return $APP.n(c)?c:XZ(a)}();return $APP.n(function(){var c=
12
- KZ(b);return $APP.n(c)?$APP.p($APP.Sj.i(b)):c}())?mla(a):null},ola=function(a){function b(){return nla(a)}var c=NZ(a);c=$APP.G(c);$APP.C(c,LZ).addEventListener("click",b);$APP.Q(a,"__xTableCellHandlers",{"sort-click":b})},ZZ=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.G(c),c=$APP.C(c,LZ),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));$APP.Q(a,"__xTableCellHandlers",null)},pla=function(a){$APP.lj(a,"type","type",
13
- "data");$APP.lj(a,"scope","scope","col");$APP.lj(a,"align","align","start");$APP.lj(a,"valign","valign","middle");$APP.ij(a,"truncate","truncate");$APP.lj(a,"sticky","sticky","none");$APP.ij(a,"sortable","sortable");$APP.ij(a,"disabled","disabled");Object.defineProperty(a,"colSpan",{get:function(){return HZ(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"col-span",""+$APP.P.i(b)):$APP.U(this,"col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
- "rowSpan",{get:function(){return HZ(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-span",""+$APP.P.i(b)):$APP.U(this,"row-span")},enumerable:!0,configurable:!0});return $APP.lj(a,"sortDirection","sort-direction","none")},qla=function(a){NZ(a);ZZ(a);ola(a);YZ(a);var b=$APP.l(a,"__xTableCellModel");b=$APP.n(b)?b:XZ(a);var c=$APP.G(b);b=$APP.C(c,$APP.O);var d=$APP.C(c,VZ),e=$APP.C(c,$APP.Kt),f=$APP.C(c,$APP.ep);c=$APP.C(c,$APP.Gq);return $APP.dj(a,
15
- "x-table-cell-connected",$APP.bm(new $APP.M(null,5,[$APP.O,b,VZ,d,$Z,e,a_,f,$APP.Gq,c],null)))},rla=function(a){ZZ(a);return $APP.dj(a,"x-table-cell-disconnected",{})},sla=function(a,b,c,d){return $APP.I(c,d)?YZ(a):null},b_=function(){return $APP.xi("x-table-cell",new $APP.M(null,5,[$APP.hi,tla,$APP.fi,qla,$APP.ci,rla,$APP.bi,sla,$APP.gi,pla],null))},LZ=new $APP.F(null,"sort-btn","sort-btn",1913954560),$Z=new $APP.F(null,"colSpan","colSpan",872137394),gla=new $APP.F(null,"cell","cell",764245084),
16
- UZ=new $APP.F(null,"valign","valign",1485197511),MZ=new $APP.F(null,"sort-icon-default","sort-icon-default",-596209230),TZ=new $APP.F(null,"col-span-raw","col-span-raw",1425293661),QZ=new $APP.F(null,"sort-direction-raw","sort-direction-raw",-1822100883),RZ=new $APP.F(null,"sticky-raw","sticky-raw",1857578519),OZ=new $APP.F(null,"row-span-raw","row-span-raw",-1130003707),SZ=new $APP.F(null,"scope-raw","scope-raw",-773628648),JZ=new $APP.F(null,"sort-direction","sort-direction",-1635889628),VZ=new $APP.F(null,
17
- "scope","scope",-439358418),IZ=new $APP.F(null,"sortable?","sortable?",291547474),PZ=new $APP.F(null,"valign-raw","valign-raw",-1083375124),a_=new $APP.F(null,"rowSpan","rowSpan",826884002);var tla="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
18
- $APP.Eg([$APP.Gq,a_,$APP.Yp,$APP.um,UZ,$APP.O,VZ,$Z,$APP.Ts,new $APP.F(null,"sortable","sortable",2109633621),new $APP.F(null,"sortDirection","sortDirection",-45816999)],[new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"align"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"row-span"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"truncate"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"valign"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"type"],
19
- null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"scope"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"col-span"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"sticky"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"sortable"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"sort-direction"],null)]);
20
- $APP.he(["x-table-cell-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Cq,$APP.X,$APP.Rt,$APP.X],null),$APP.yt,!0],null),"x-table-cell-connected",new $APP.M(null,1,[$APP.V,new $APP.M(null,5,[$APP.O,$APP.X,VZ,$APP.X,$Z,$APP.Z,a_,$APP.Z,$APP.Gq,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.M(null,1,[$APP.V,$APP.ie],null)]);
21
- var jla=new $APP.ah(null,new $APP.M(null,2,["data",null,"header",null],null),null),kla=new $APP.ah(null,new $APP.M(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),hla=new $APP.ah(null,new $APP.M(null,3,["center",null,"start",null,"end",null],null),null),ila=new $APP.ah(null,new $APP.M(null,3,["top",null,"middle",null,"bottom",null],null),null),lla=new $APP.ah(null,new $APP.M(null,3,["none",null,"start",null,"end",null],null),null),WZ=new $APP.ah(null,new $APP.M(null,3,["none",
22
- null,"desc",null,"asc",null],null),null);$APP.fa("baredom.exports.x_table_cell.init",b_);export const init=b_;
6
+ $APP.Q(a,"__xTableCellRefs",new $APP.M(null,5,[$APP.Fk,b,vma,d,$APP.aq,e,oZ,h,pZ,m],null));return $APP.l(a,"__xTableCellRefs")},AZ=function(a){a=$APP.Gg([$APP.Gq,rZ,sZ,tZ,lZ,$APP.tq,$APP.Zp,uZ,vZ,$APP.Xj,wZ],[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")]);var b=
7
+ $APP.G(a);a=$APP.C(b,$APP.Xj);var c=$APP.C(b,wZ),d=$APP.C(b,$APP.Gq),e=$APP.C(b,rZ),f=$APP.C(b,sZ),h=$APP.C(b,tZ),k=$APP.C(b,lZ),m=$APP.C(b,$APP.tq),r=$APP.C(b,$APP.Zp),u=$APP.C(b,uZ);b=$APP.C(b,vZ);return $APP.Gg([$APP.jr,mZ,xZ,$APP.N,yZ,lZ,$APP.xt,$APP.su,$APP.tq,$APP.Xj,$APP.Fp],[jZ(d,wma,"start"),jZ(h,zZ,"none"),jZ(f,xma,"middle"),jZ(r,yma,"data"),jZ(b,zma,"col"),$APP.D(k),jZ(u,Ama,"none"),kZ(c),$APP.D(m),$APP.D(a),kZ(e)])},BZ=function(a){var b=AZ(a);if($APP.I($APP.l(a,"__xTableCellModel"),b)){b=
8
+ $APP.G(b);var c=$APP.C(b,$APP.su),d=$APP.C(b,$APP.Fp),e=$APP.C(b,$APP.Xj),f=$APP.C(b,mZ),h=qZ(a);h=$APP.G(h);var k=$APP.C(h,oZ);h=$APP.C(h,pZ);var m=nZ(b),r=$APP.G(b),u=$APP.C(r,$APP.N),x=$APP.C(r,$APP.jr),y=$APP.C(r,xZ),A=$APP.C(r,$APP.xt),E=$APP.C(r,$APP.tq),H=$APP.C(r,$APP.Xj),O=$APP.G(r);var S=$APP.C(O,$APP.N);O=$APP.C(O,yZ);S=$APP.z.j(S,"header")?$APP.z.j(O,"row")||$APP.z.j(O,"rowgroup")?"rowheader":"columnheader":"cell";$APP.T(a,"role",S);r=sma(r);$APP.n(r)?$APP.T(a,"aria-sort",r):$APP.U(a,
9
+ "aria-sort");$APP.n(H)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");$APP.T(a,"data-type",u);$APP.T(a,"data-align",x);$APP.T(a,"data-valign",y);$APP.z.j(A,"none")?$APP.U(a,"data-sticky"):$APP.T(a,"data-sticky",A);$APP.n(E)?$APP.T(a,"data-truncate",""):$APP.U(a,"data-truncate");a.style.gridColumn=c>1?"span "+$APP.P.i(c):"";a.style.gridRow=d>1?"span "+$APP.P.i(d):"";k.hidden=$APP.p(m);c=parseInt;u=$APP.G(b);m=$APP.C(u,$APP.N);d=$APP.C(u,lZ);u=$APP.C(u,$APP.Xj);m=$APP.z.j(m,"header");k.tabIndex=
10
+ c($APP.n(m?$APP.n(d)?$APP.p(u):d:m)?"0":"-1",10);$APP.T(k,"aria-label",uma(f));k.disabled=$APP.D(e);a:switch(e=$APP.G(b),$APP.C(e,mZ)){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';break a;default:e=
11
+ '\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=$APP.Q(a,"__xTableCellModel",b)}else a=null;return a},Bma=function(a){var b=a.getAttribute("sort-direction");b=jZ(b,zZ,"none");return $APP.jj(a,"x-table-cell-sort",{direction:tma(b),previousDirection:b})},Cma=function(a){var b=function(){var c=$APP.l(a,"__xTableCellModel");return $APP.n(c)?c:AZ(a)}();return $APP.n(function(){var c=
12
+ nZ(b);return $APP.n(c)?$APP.p($APP.Xj.i(b)):c}())?Bma(a):null},Dma=function(a){function b(){return Cma(a)}var c=qZ(a);c=$APP.G(c);$APP.C(c,oZ).addEventListener("click",b);$APP.Q(a,"__xTableCellHandlers",{"sort-click":b})},CZ=function(a){var b=$APP.l(a,"__xTableCellHandlers"),c=$APP.l(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.G(c),c=$APP.C(c,oZ),b=$APP.l(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));$APP.Q(a,"__xTableCellHandlers",null)},Ema=function(a){$APP.pj(a,"type","type",
13
+ "data");$APP.pj(a,"scope","scope","col");$APP.pj(a,"align","align","start");$APP.pj(a,"valign","valign","middle");$APP.mj(a,"truncate","truncate");$APP.pj(a,"sticky","sticky","none");$APP.mj(a,"sortable","sortable");$APP.mj(a,"disabled","disabled");Object.defineProperty(a,"colSpan",{get:function(){return kZ(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"col-span",""+$APP.P.i(b)):$APP.U(this,"col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
+ "rowSpan",{get:function(){return kZ(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-span",""+$APP.P.i(b)):$APP.U(this,"row-span")},enumerable:!0,configurable:!0});return $APP.pj(a,"sortDirection","sort-direction","none")},Fma=function(a){qZ(a);CZ(a);Dma(a);BZ(a);var b=$APP.l(a,"__xTableCellModel");b=$APP.n(b)?b:AZ(a);var c=$APP.G(b);b=$APP.C(c,$APP.N);var d=$APP.C(c,yZ),e=$APP.C(c,$APP.su),f=$APP.C(c,$APP.Fp);c=$APP.C(c,$APP.jr);return $APP.hj(a,
15
+ "x-table-cell-connected",$APP.gm(new $APP.M(null,5,[$APP.N,b,yZ,d,DZ,e,EZ,f,$APP.jr,c],null)))},Gma=function(a){CZ(a);return $APP.hj(a,"x-table-cell-disconnected",{})},Hma=function(a,b,c,d){return $APP.I(c,d)?BZ(a):null},FZ=function(){return $APP.zi("x-table-cell",new $APP.M(null,5,[$APP.ji,Ima,$APP.hi,Fma,$APP.ei,Gma,$APP.di,Hma,$APP.ii,Ema],null))},oZ=new $APP.F(null,"sort-btn","sort-btn",1913954560),DZ=new $APP.F(null,"colSpan","colSpan",872137394),vma=new $APP.F(null,"cell","cell",764245084),
16
+ xZ=new $APP.F(null,"valign","valign",1485197511),pZ=new $APP.F(null,"sort-icon-default","sort-icon-default",-596209230),wZ=new $APP.F(null,"col-span-raw","col-span-raw",1425293661),tZ=new $APP.F(null,"sort-direction-raw","sort-direction-raw",-1822100883),uZ=new $APP.F(null,"sticky-raw","sticky-raw",1857578519),rZ=new $APP.F(null,"row-span-raw","row-span-raw",-1130003707),vZ=new $APP.F(null,"scope-raw","scope-raw",-773628648),mZ=new $APP.F(null,"sort-direction","sort-direction",-1635889628),yZ=new $APP.F(null,
17
+ "scope","scope",-439358418),lZ=new $APP.F(null,"sortable?","sortable?",291547474),sZ=new $APP.F(null,"valign-raw","valign-raw",-1083375124),EZ=new $APP.F(null,"rowSpan","rowSpan",826884002);var Ima="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
18
+ $APP.Gg([$APP.jr,EZ,$APP.Dq,$APP.zm,xZ,$APP.N,yZ,DZ,$APP.xt,new $APP.F(null,"sortable","sortable",2109633621),new $APP.F(null,"sortDirection","sortDirection",-45816999)],[new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"align"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"row-span"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"truncate"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"valign"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"type"],
19
+ null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"scope"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"col-span"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"sticky"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"sortable"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"sort-direction"],null)]);
20
+ $APP.je(["x-table-cell-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.fr,$APP.X,$APP.zu,$APP.X],null),$APP.fu,!0],null),"x-table-cell-connected",new $APP.M(null,1,[$APP.V,new $APP.M(null,5,[$APP.N,$APP.X,yZ,$APP.X,DZ,$APP.Y,EZ,$APP.Y,$APP.jr,$APP.X],null)],null),"x-table-cell-disconnected",new $APP.M(null,1,[$APP.V,$APP.ke],null)]);
21
+ var yma=new $APP.ch(null,new $APP.M(null,2,["data",null,"header",null],null),null),zma=new $APP.ch(null,new $APP.M(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),wma=new $APP.ch(null,new $APP.M(null,3,["center",null,"start",null,"end",null],null),null),xma=new $APP.ch(null,new $APP.M(null,3,["top",null,"middle",null,"bottom",null],null),null),Ama=new $APP.ch(null,new $APP.M(null,3,["none",null,"start",null,"end",null],null),null),zZ=new $APP.ch(null,new $APP.M(null,3,["none",
22
+ null,"desc",null,"asc",null],null),null);$APP.fa("baredom.exports.x_table_cell.init",FZ);export const init=FZ;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var gI=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},hI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Vs);b=$APP.C(b,$APP.Sj);return $APP.n(a)?$APP.p(b):a},iI=function(a){if(!$APP.Ti(a,"__xTableRowInitialized")){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:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-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);$APP.Ui(a,"__xTableRowInitialized")}},lI=function(a){a=new $APP.M(null,4,[$APP.kq,a.hasAttribute("selected"),$APP.Sj,a.hasAttribute("disabled"),$APP.Vs,a.hasAttribute("interactive"),jI,a.getAttribute("row-index")],null);var b=$APP.G(a);a=$APP.C(b,$APP.kq);var c=$APP.C(b,$APP.Sj),d=$APP.C(b,$APP.Vs);b=$APP.C(b,jI);return new $APP.M(null,4,[$APP.kq,$APP.D(a),$APP.Sj,$APP.D(c),$APP.Vs,$APP.D(d),kI,gI(b)],null)},mI=function(a){var b=lI(a);if($APP.I($APP.l(a,"__xTableRowModel"),
4
- b)){iI(a);var c=$APP.G(b),d=$APP.C(c,$APP.kq),e=$APP.C(c,$APP.Sj),f=$APP.C(c,$APP.Vs),h=$APP.C(c,kI);$APP.T(a,"role","row");var k=$APP.G(c);var m=$APP.C(k,$APP.kq);k=$APP.C(k,$APP.Vs);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?$APP.T(a,"aria-selected",m):$APP.U(a,"aria-selected");$APP.n(e)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");h!=null?$APP.T(a,"aria-rowindex",""+$APP.P.i(h)):$APP.U(a,"aria-rowindex");$APP.n(d)?$APP.T(a,"data-selected",""):$APP.U(a,"data-selected");$APP.n(f)?
5
- $APP.T(a,"data-interactive",""):$APP.U(a,"data-interactive");a.tabIndex=$APP.n(hI(c))?0:-1;a=$APP.Q(a,"__xTableRowModel",b)}else a=null;return a},nI=function(a){var b=$APP.l(a,"__xTableRowModel");b=$APP.n(b)?b:lI(a);var c=$APP.G(b);b=$APP.C(c,$APP.kq);var d=$APP.C(c,$APP.Sj);c=$APP.C(c,kI);return $APP.fj(a,"x-table-row-click",$APP.bm(new $APP.M(null,3,[$APP.Qq,$APP.n(c)?c:0,$APP.tr,b,$APP.um,d],null)))},Haa=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,
6
- "__xTableRowModel"),e=$APP.n(e)?e:lI(a),$APP.n(hI(e))){d.preventDefault();d=nI(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:lI(a);return $APP.n(hI(d))?nI(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTableRowHandlers",{click:c,keydown:b})},oI=function(a){var b=$APP.l(a,"__xTableRowHandlers");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",
7
- b)}$APP.Q(a,"__xTableRowHandlers",null)},Iaa=function(a){$APP.ij(a,"selected","selected");$APP.ij(a,"disabled","disabled");$APP.ij(a,"interactive","interactive");return Object.defineProperty(a,"rowIndex",{get:function(){return gI(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-index",""+$APP.P.i(b)):$APP.U(this,"row-index")},enumerable:!0,configurable:!0})},Jaa=function(a){iI(a);oI(a);Haa(a);mI(a);var b=$APP.l(a,"__xTableRowModel");b=
8
- $APP.n(b)?b:lI(a);var c=$APP.G(b);b=$APP.C(c,$APP.kq);var d=$APP.C(c,$APP.Sj),e=$APP.C(c,$APP.Vs);c=$APP.C(c,kI);return $APP.dj(a,"x-table-row-connected",$APP.bm(new $APP.M(null,4,[$APP.Qq,$APP.n(c)?c:0,$APP.tr,b,$APP.um,d,$APP.uq,e],null)))},Kaa=function(a){oI(a);return $APP.hj("x-table-row-disconnected",{})},Laa=function(a,b,c,d){return $APP.I(c,d)?mI(a):null},pI=function(){return $APP.xi("x-table-row",new $APP.M(null,5,[$APP.hi,Maa,$APP.fi,Jaa,$APP.ci,Kaa,$APP.bi,Laa,$APP.gi,Iaa],null))},kI=new $APP.F(null,
9
- "row-index","row-index",-828710296),jI=new $APP.F(null,"row-index-raw","row-index-raw",1490649093);var Maa=["selected","disabled","interactive","row-index"];$APP.he(["x-table-row-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Qq,$APP.Z,$APP.tr,$APP.qj,$APP.um,$APP.qj],null),$APP.yt,!0],null),"x-table-row-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Qq,$APP.Z,$APP.tr,$APP.qj,$APP.um,$APP.qj,$APP.uq,$APP.qj],null),$APP.yt,!1],null),"x-table-row-disconnected",new $APP.M(null,2,[$APP.V,$APP.ie,$APP.yt,!1],null)]);$APP.fa("baredom.exports.x_table_row.init",pI);export const init=pI;
2
+ var JH=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},KH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.zt);b=$APP.C(b,$APP.Xj);return $APP.n(a)?$APP.p(b):a},LH=function(a){if(!$APP.Vi(a,"__xTableRowInitialized")){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:var(--x-color-focus-ring,rgba(59,130,246,0.5));--x-table-row-transition-duration:var(--x-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);$APP.Wi(a,"__xTableRowInitialized")}},OH=function(a){a=new $APP.M(null,4,[$APP.Nq,a.hasAttribute("selected"),$APP.Xj,a.hasAttribute("disabled"),$APP.zt,a.hasAttribute("interactive"),MH,a.getAttribute("row-index")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Nq);var c=$APP.C(b,$APP.Xj),d=$APP.C(b,$APP.zt);b=$APP.C(b,MH);return new $APP.M(null,4,[$APP.Nq,$APP.D(a),$APP.Xj,$APP.D(c),$APP.zt,$APP.D(d),NH,JH(b)],null)},PH=function(a){var b=OH(a);if($APP.I($APP.l(a,"__xTableRowModel"),
4
+ b)){LH(a);var c=$APP.G(b),d=$APP.C(c,$APP.Nq),e=$APP.C(c,$APP.Xj),f=$APP.C(c,$APP.zt),h=$APP.C(c,NH);$APP.T(a,"role","row");var k=$APP.G(c);var m=$APP.C(k,$APP.Nq);k=$APP.C(k,$APP.zt);m=$APP.n(m)?"true":$APP.n(k)?"false":null;$APP.n(m)?$APP.T(a,"aria-selected",m):$APP.U(a,"aria-selected");$APP.n(e)?$APP.T(a,"aria-disabled","true"):$APP.U(a,"aria-disabled");h!=null?$APP.T(a,"aria-rowindex",""+$APP.P.i(h)):$APP.U(a,"aria-rowindex");$APP.n(d)?$APP.T(a,"data-selected",""):$APP.U(a,"data-selected");$APP.n(f)?
5
+ $APP.T(a,"data-interactive",""):$APP.U(a,"data-interactive");a.tabIndex=$APP.n(KH(c))?0:-1;a=$APP.Q(a,"__xTableRowModel",b)}else a=null;return a},QH=function(a){var b=$APP.l(a,"__xTableRowModel");b=$APP.n(b)?b:OH(a);var c=$APP.G(b);b=$APP.C(c,$APP.Nq);var d=$APP.C(c,$APP.Xj);c=$APP.C(c,NH);return $APP.jj(a,"x-table-row-click",$APP.gm(new $APP.M(null,3,[$APP.tr,$APP.n(c)?c:0,$APP.Yr,b,$APP.zm,d],null)))},Oba=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,
6
+ "__xTableRowModel"),e=$APP.n(e)?e:OH(a),$APP.n(KH(e))){d.preventDefault();d=QH(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTableRowModel");d=$APP.n(d)?d:OH(a);return $APP.n(KH(d))?QH(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTableRowHandlers",{click:c,keydown:b})},RH=function(a){var b=$APP.l(a,"__xTableRowHandlers");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",
7
+ b)}$APP.Q(a,"__xTableRowHandlers",null)},Pba=function(a){$APP.mj(a,"selected","selected");$APP.mj(a,"disabled","disabled");$APP.mj(a,"interactive","interactive");return Object.defineProperty(a,"rowIndex",{get:function(){return JH(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.p(isNaN(b))&&b>0?$APP.T(this,"row-index",""+$APP.P.i(b)):$APP.U(this,"row-index")},enumerable:!0,configurable:!0})},Qba=function(a){LH(a);RH(a);Oba(a);PH(a);var b=$APP.l(a,"__xTableRowModel");b=
8
+ $APP.n(b)?b:OH(a);var c=$APP.G(b);b=$APP.C(c,$APP.Nq);var d=$APP.C(c,$APP.Xj),e=$APP.C(c,$APP.zt);c=$APP.C(c,NH);return $APP.hj(a,"x-table-row-connected",$APP.gm(new $APP.M(null,4,[$APP.tr,$APP.n(c)?c:0,$APP.Yr,b,$APP.zm,d,$APP.Yq,e],null)))},Rba=function(a){RH(a);return $APP.lj("x-table-row-disconnected",{})},Sba=function(a,b,c,d){return $APP.I(c,d)?PH(a):null},SH=function(){return $APP.zi("x-table-row",new $APP.M(null,5,[$APP.ji,Tba,$APP.hi,Qba,$APP.ei,Rba,$APP.di,Sba,$APP.ii,Pba],null))},NH=new $APP.F(null,
9
+ "row-index","row-index",-828710296),MH=new $APP.F(null,"row-index-raw","row-index-raw",1490649093);var Tba=["selected","disabled","interactive","row-index"];$APP.je(["x-table-row-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.tr,$APP.Y,$APP.Yr,$APP.vj,$APP.zm,$APP.vj],null),$APP.fu,!0],null),"x-table-row-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.tr,$APP.Y,$APP.Yr,$APP.vj,$APP.zm,$APP.vj,$APP.Yq,$APP.vj],null),$APP.fu,!1],null),"x-table-row-disconnected",new $APP.M(null,2,[$APP.V,$APP.ke,$APP.fu,!1],null)]);$APP.fa("baredom.exports.x_table_row.init",SH);export const init=SH;
package/dist/x-table.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ZM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},aN=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:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,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:var(--x-color-border,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
- $APP.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Ak,b,$M,d,$APP.Rs,e],null));return $APP.l(a,"__xTableRefs")},lN=function(a){a=new $APP.M(null,8,[bN,a.getAttribute("columns"),cN,a.getAttribute("caption"),dN,a.getAttribute("selectable"),$APP.ms,a.hasAttribute("striped"),eN,a.hasAttribute("bordered"),fN,a.hasAttribute("full-width"),gN,a.hasAttribute("compact"),hN,a.getAttribute("row-count")],null);var b=
4
- $APP.G(a),c=$APP.C(b,bN),d=$APP.C(b,cN),e=$APP.C(b,dN);a=$APP.C(b,$APP.ms);var f=$APP.C(b,eN),h=$APP.C(b,fN),k=$APP.C(b,gN);b=$APP.C(b,hN);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.cd(Yca,e)?e:"none";return new $APP.M(null,8,[$APP.Tr,c,iN,d,jN,e,$APP.ms,$APP.D(a),eN,$APP.D(f),fN,$APP.D(h),gN,$APP.D(k),
5
- kN,ZM(b)],null)},mN=function(a){a=$APP.r($APP.we.m($APP.Ao,$APP.Cc(a.querySelectorAll("x-table-row")),$APP.vh(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.r(a))$APP.Yc(a)?(b=$APP.Db(a),a=$APP.Eb(a),f=b,c=$APP.w(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe"),
6
- a=$APP.v(a),b=null,c=0),d=0;else return null},nN=function(a){var b=lN(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.ms),d=aN(a);d=$APP.G(d);d=$APP.C(d,$M);var e=$APP.G(b);e=$APP.C(e,$APP.Tr);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,jN);e=$APP.C(f,kN);f=$APP.C(f,iN);$APP.T(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.T(a,"aria-multiselectable",h):$APP.U(a,"aria-multiselectable");
7
- e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,iN);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.ms);e=$APP.C(f,eN);h=$APP.C(f,fN);f=$APP.C(f,gN);$APP.n(d)?$APP.T(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.T(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.T(a,"data-full-width",""):$APP.U(a,
8
- "data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&mN(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Zca=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:lN(a);return $APP.n($APP.ms.i(f))?mN(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:lN(a);var k=jN.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.fj(a,"x-table-row-select",$APP.bm(new $APP.M(null,3,[$APP.Qq,$APP.n(f)?f:0,$APP.tr,
9
- $APP.p(h.hasAttribute("selected")),oN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Dc(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.r(k);for(var m=null,q=0,u=0;;)if(u<q){var x=m.C(null,u);$APP.U(x,"selected");u+=1}else if(k=$APP.r(k))m=k,$APP.Yc(m)?(k=$APP.Db(m),u=$APP.Eb(m),m=k,q=$APP.w(k),k=u):(k=$APP.t(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,q=0),u=0;else break;h=$APP.n(f)?null:$APP.T(h,"selected","")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?
10
- $APP.U(h,"selected"):$APP.T(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.fj(a,"x-table-sort",$APP.bm(new $APP.M(null,3,[pN,h,$APP.Cq,k,$APP.Rt,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",
11
- b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},qN=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)}return $APP.Q(a,"__xTableHandlers",null)},$ca=function(a){$APP.lj(a,"columns","columns","");$APP.lj(a,"caption","caption",
12
- "");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return ZM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},ada=function(a){aN(a);qN(a);Zca(a);return nN(a)},bda=function(a){return qN(a)},
13
- cda=function(a,b,c,d){return $APP.I(c,d)?nN(a):null},rN=function(){return $APP.xi("x-table",new $APP.M(null,5,[$APP.hi,dda,$APP.fi,ada,$APP.ci,bda,$APP.bi,cda,$APP.gi,$ca],null))},fN=new $APP.F(null,"full-width?","full-width?",1477288349),hN=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),dN=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),pN=new $APP.F(null,"colIndex","colIndex",171239635),kN=new $APP.F(null,"row-count","row-count",1060167988),cN=new $APP.F(null,"caption-raw",
14
- "caption-raw",-375935083),oN=new $APP.F(null,"selectionMode","selectionMode",1264773367),bN=new $APP.F(null,"columns-raw","columns-raw",-2093994046),jN=new $APP.F(null,"selectable","selectable",370587038),iN=new $APP.F(null,"caption","caption",-855383902),eN=new $APP.F(null,"bordered?","bordered?",562358476),$M=new $APP.F(null,"caption-div","caption-div",1485363333),gN=new $APP.F(null,"compact?","compact?",1216893298);var dda="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.he(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[pN,$APP.Z,$APP.Cq,$APP.X,$APP.Rt,$APP.X],null),$APP.yt,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Qq,$APP.Z,$APP.tr,$APP.qj,oN,$APP.X],null),$APP.yt,!0],null)]);var Yca=new $APP.ah(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",rN);export const init=rN;
2
+ var zM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},BM=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:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,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:var(--x-color-border,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
+ $APP.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Fk,b,AM,d,$APP.vt,e],null));return $APP.l(a,"__xTableRefs")},MM=function(a){a=new $APP.M(null,8,[CM,a.getAttribute("columns"),DM,a.getAttribute("caption"),EM,a.getAttribute("selectable"),$APP.Rs,a.hasAttribute("striped"),FM,a.hasAttribute("bordered"),GM,a.hasAttribute("full-width"),HM,a.hasAttribute("compact"),IM,a.getAttribute("row-count")],null);var b=
4
+ $APP.G(a),c=$APP.C(b,CM),d=$APP.C(b,DM),e=$APP.C(b,EM);a=$APP.C(b,$APP.Rs);var f=$APP.C(b,FM),h=$APP.C(b,GM),k=$APP.C(b,HM);b=$APP.C(b,IM);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.ed(eea,e)?e:"none";return new $APP.M(null,8,[$APP.ys,c,JM,d,KM,e,$APP.Rs,$APP.D(a),FM,$APP.D(f),GM,$APP.D(h),HM,$APP.D(k),
5
+ LM,zM(b)],null)},NM=function(a){a=$APP.q($APP.ye.m($APP.co,$APP.Ec(a.querySelectorAll("x-table-row")),$APP.xh(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.ud(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.$c(a)?(b=$APP.Fb(a),a=$APP.Gb(a),f=b,c=$APP.w(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.ud(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe"),
6
+ a=$APP.v(a),b=null,c=0),d=0;else return null},OM=function(a){var b=MM(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Rs),d=BM(a);d=$APP.G(d);d=$APP.C(d,AM);var e=$APP.G(b);e=$APP.C(e,$APP.ys);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,KM);e=$APP.C(f,LM);f=$APP.C(f,JM);$APP.T(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.T(a,"aria-multiselectable",h):$APP.U(a,"aria-multiselectable");
7
+ e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,JM);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Rs);e=$APP.C(f,FM);h=$APP.C(f,GM);f=$APP.C(f,HM);$APP.n(d)?$APP.T(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.T(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.T(a,"data-full-width",""):$APP.U(a,
8
+ "data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&NM(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},fea=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:MM(a);return $APP.n($APP.Rs.i(f))?NM(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:MM(a);var k=KM.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.jj(a,"x-table-row-select",$APP.gm(new $APP.M(null,3,[$APP.tr,$APP.n(f)?f:0,$APP.Yr,
9
+ $APP.p(h.hasAttribute("selected")),PM,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Fc(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,u=0;;)if(u<r){var x=m.C(null,u);$APP.U(x,"selected");u+=1}else if(k=$APP.q(k))m=k,$APP.$c(m)?(k=$APP.Fb(m),u=$APP.Gb(m),m=k,r=$APP.w(k),k=u):(k=$APP.t(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),u=0;else break;h=$APP.n(f)?null:$APP.T(h,"selected","")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?
10
+ $APP.U(h,"selected"):$APP.T(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.jj(a,"x-table-sort",$APP.gm(new $APP.M(null,3,[QM,h,$APP.fr,k,$APP.zu,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",
11
+ b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},RM=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)}return $APP.Q(a,"__xTableHandlers",null)},gea=function(a){$APP.pj(a,"columns","columns","");$APP.pj(a,"caption","caption",
12
+ "");$APP.pj(a,"selectable","selectable","none");$APP.mj(a,"striped","striped");$APP.mj(a,"bordered","bordered");$APP.mj(a,"compact","compact");$APP.mj(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return zM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},hea=function(a){BM(a);RM(a);fea(a);return OM(a)},iea=function(a){return RM(a)},
13
+ jea=function(a,b,c,d){return $APP.I(c,d)?OM(a):null},SM=function(){return $APP.zi("x-table",new $APP.M(null,5,[$APP.ji,kea,$APP.hi,hea,$APP.ei,iea,$APP.di,jea,$APP.ii,gea],null))},GM=new $APP.F(null,"full-width?","full-width?",1477288349),IM=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),EM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),QM=new $APP.F(null,"colIndex","colIndex",171239635),LM=new $APP.F(null,"row-count","row-count",1060167988),DM=new $APP.F(null,"caption-raw",
14
+ "caption-raw",-375935083),PM=new $APP.F(null,"selectionMode","selectionMode",1264773367),CM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),KM=new $APP.F(null,"selectable","selectable",370587038),JM=new $APP.F(null,"caption","caption",-855383902),FM=new $APP.F(null,"bordered?","bordered?",562358476),AM=new $APP.F(null,"caption-div","caption-div",1485363333),HM=new $APP.F(null,"compact?","compact?",1216893298);var kea="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.je(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[QM,$APP.Y,$APP.fr,$APP.X,$APP.zu,$APP.X],null),$APP.fu,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.tr,$APP.Y,$APP.Yr,$APP.vj,PM,$APP.X],null),$APP.fu,!0],null)]);var eea=new $APP.ch(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",SM);export const init=SM;
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var JT=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.Fs),d=$APP.C(b,IT),e=$APP.C(b,$APP.Rj);b=$APP.C(b,$APP.St);c=$APP.cd(Kga,c)?c:"horizontal";d=$APP.cd(Lga,d)?d:"auto";return new $APP.M(null,5,[$APP.Si,a,$APP.Fs,c,IT,d,$APP.Rj,e,$APP.St,$APP.D(b)],null)},KT=function(a){return new $APP.M(null,5,[$APP.Si,a.getAttribute("value"),$APP.Fs,a.getAttribute("orientation"),IT,a.getAttribute("activation"),$APP.Rj,a.getAttribute("label"),$APP.St,a.hasAttribute("loop")],null)},LT=function(a){return $APP.$e($APP.Ce(function(b){return $APP.z.j("X-TAB",
3
- b.tagName)},$APP.Cc(a.children)))},MT=function(a){return $APP.p(a.hasAttribute("disabled"))},NT=function(a){return a.getAttribute("value")},Mga=function(a){return $APP.ne(function(b){return MT(b)?b:null},a)},OT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.T(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},PT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.T(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
4
- $APP.U(a,"selected"))},QT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.T(a,"tabindex",b)},RT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.T(a,"hidden","")))},ST=function(a){var b=LT(a),c=a.getAttribute("value"),d=$APP.fh($APP.re(NT,b));$APP.n($APP.n(c)?$APP.cd(d,c):c)||(c=Mga(b),c=$APP.n(c)?NT(c):null);if($APP.n(c)){a:{d=$APP.r(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
5
- h),m=$APP.z.j(NT(k),c);PT(k,m);m&&MT(k)?QT(k,"0"):QT(k,"-1");h+=1}else if(d=$APP.r(d))$APP.Yc(d)?(e=$APP.Db(d),d=$APP.Eb(d),k=e,f=$APP.w(e),e=k):(k=$APP.t(d),e=$APP.z.j(NT(k),c),PT(k,e),e&&MT(k)?QT(k,"0"):QT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.r(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),RT(k,$APP.z.j(NT(k),c)),f+=1;else if(b=$APP.r(b))d=b,$APP.Yc(d)?(b=$APP.Db(d),e=$APP.Eb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.t(d),RT(k,$APP.z.j(NT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
6
- OT(a,c)}return c},TT=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.fj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(OT(a,b),ST(a),$APP.dj(a,"value-change",{value:$APP.n(b)?b:""})):null},UT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},VT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},WT=function(a){var b=JT(KT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.T(c,
7
- "role","tablist");$APP.T(c,"aria-orientation",$APP.Fs.i(b));var d=$APP.Rj.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return ST(a)},Nga=function(a){var b=new MutationObserver(function(){return WT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},XT=function(a){function b(d){a:{var e=$APP.$e($APP.Ce(MT,LT(a))),f=JT(KT(a)),h=$APP.Fs.i(f);
8
- var k=IT.i(f);f=$APP.St.i(f);var m=d.key,q=e.indexOf(document.activeElement);if(q>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?UT(q,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?VT(q,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?UT(q,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?VT(q,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?TT(a,NT(d)):null:
9
- null;break a}k=null}return k}function c(d){d.stopPropagation();return TT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);Nga(a)},Oga=function(a){if($APP.Ti(a,"__xTabsInitialized"))return XT(a),WT(a);if(!$APP.Ti(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":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);}";
10
- $APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);XT(a);$APP.Ui(a,"__xTabsInitialized")}WT(a);return a},Pga=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},Qga=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ti(a,"__xTabsInitialized")?WT(a):
11
- null},Sga=function(a){return $APP.sj(a,Rga)},YT=function(){return $APP.xi("x-tabs",new $APP.M(null,5,[$APP.hi,Tga,$APP.fi,Oga,$APP.ci,Pga,$APP.bi,Qga,$APP.gi,Sga],null))},IT=new $APP.F(null,"activation","activation",2128521072);var Tga=["value","orientation","activation","label","loop"],Kga=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),Lga=new $APP.ah(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),Rga=new $APP.M(null,1,[$APP.Si,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null)],null);
12
- $APP.he(["value-change-request",new $APP.M(null,2,[$APP.yt,!0,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.as,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",YT);export const init=YT;
2
+ var mT=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ui);var c=$APP.C(b,$APP.jt),d=$APP.C(b,lT),e=$APP.C(b,$APP.Wj);b=$APP.C(b,$APP.Au);c=$APP.ed(Zha,c)?c:"horizontal";d=$APP.ed($ha,d)?d:"auto";return new $APP.M(null,5,[$APP.Ui,a,$APP.jt,c,lT,d,$APP.Wj,e,$APP.Au,$APP.D(b)],null)},nT=function(a){return new $APP.M(null,5,[$APP.Ui,a.getAttribute("value"),$APP.jt,a.getAttribute("orientation"),lT,a.getAttribute("activation"),$APP.Wj,a.getAttribute("label"),$APP.Au,a.hasAttribute("loop")],null)},oT=function(a){return $APP.bf($APP.Ee(function(b){return $APP.z.j("X-TAB",
3
+ b.tagName)},$APP.Ec(a.children)))},pT=function(a){return $APP.p(a.hasAttribute("disabled"))},qT=function(a){return a.getAttribute("value")},aia=function(a){return $APP.pe(function(b){return pT(b)?b:null},a)},rT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.T(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},sT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.T(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
4
+ $APP.U(a,"selected"))},tT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.T(a,"tabindex",b)},uT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.T(a,"hidden","")))},vT=function(a){var b=oT(a),c=a.getAttribute("value"),d=$APP.hh($APP.te(qT,b));$APP.n($APP.n(c)?$APP.ed(d,c):c)||(c=aia(b),c=$APP.n(c)?qT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
5
+ h),m=$APP.z.j(qT(k),c);sT(k,m);m&&pT(k)?tT(k,"0"):tT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.$c(d)?(e=$APP.Fb(d),d=$APP.Gb(d),k=e,f=$APP.w(e),e=k):(k=$APP.t(d),e=$APP.z.j(qT(k),c),sT(k,e),e&&pT(k)?tT(k,"0"):tT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),uT(k,$APP.z.j(qT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.$c(d)?(b=$APP.Fb(d),e=$APP.Gb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.t(d),uT(k,$APP.z.j(qT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
6
+ rT(a,c)}return c},wT=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.jj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(rT(a,b),vT(a),$APP.hj(a,"value-change",{value:$APP.n(b)?b:""})):null},xT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},yT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},zT=function(a){var b=mT(nT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.T(c,
7
+ "role","tablist");$APP.T(c,"aria-orientation",$APP.jt.i(b));var d=$APP.Wj.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return vT(a)},bia=function(a){var b=new MutationObserver(function(){return zT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},AT=function(a){function b(d){a:{var e=$APP.bf($APP.Ee(pT,oT(a))),f=mT(nT(a)),h=$APP.jt.i(f);
8
+ var k=lT.i(f);f=$APP.Au.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?xT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?yT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?xT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?yT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?wT(a,qT(d)):null:
9
+ null;break a}k=null}return k}function c(d){d.stopPropagation();return wT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);bia(a)},cia=function(a){if($APP.Vi(a,"__xTabsInitialized"))return AT(a),zT(a);if(!$APP.Vi(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":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);}";
10
+ $APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);AT(a);$APP.Wi(a,"__xTabsInitialized")}zT(a);return a},dia=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},eia=function(a,b,c,d){return $APP.I(c,d)&&$APP.Vi(a,"__xTabsInitialized")?zT(a):
11
+ null},gia=function(a){return $APP.xj(a,fia)},BT=function(){return $APP.zi("x-tabs",new $APP.M(null,5,[$APP.ji,hia,$APP.hi,cia,$APP.ei,dia,$APP.di,eia,$APP.ii,gia],null))},lT=new $APP.F(null,"activation","activation",2128521072);var hia=["value","orientation","activation","label","loop"],Zha=new $APP.ch(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),$ha=new $APP.ch(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),fia=new $APP.M(null,1,[$APP.Ui,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null)],null);
12
+ $APP.je(["value-change-request",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,2,[$APP.Ui,$APP.X,$APP.Gs,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Ui,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",BT);export const init=BT;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;$APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.z.j(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},w7=function(a){a=$APP.Eg([p7,$APP.yj,$APP.vj,$APP.Lp,$APP.fq,q7,$APP.zj,r7,$APP.Mj,$APP.bl,$APP.wj,
3
- $APP.Nj,s7,$APP.xj],[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"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.xj),e=$APP.C(b,p7),f=$APP.C(b,$APP.yj),h=$APP.C(b,$APP.vj),k=$APP.C(b,
4
- $APP.Lp),m=$APP.C(b,$APP.fq),q=$APP.C(b,q7);a=$APP.C(b,$APP.zj);var u=$APP.C(b,r7),x=$APP.C(b,$APP.Mj),y=$APP.C(b,$APP.bl),A=$APP.C(b,$APP.wj);b=$APP.C(b,$APP.Nj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",N=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(hra,e)?e:"vertical";q=n7(q);return $APP.Eg([$APP.Tj,$APP.gl,$APP.Qj,
5
- $APP.sp,$APP.Pj,$APP.Si,t7,$APP.Os,$APP.ls,u7,$APP.kt,v7,$APP.yq,$APP.Rj,$APP.Dp,$APP.Uj,$APP.Sj],[x,y,d,m,h,A,c,f,k,e,H,n7(u),$APP.n(q)?q:3,N,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.Uj),m=$APP.C(h,$APP.Sj),q=$APP.C(h,$APP.Tj),u=$APP.C(h,$APP.gl),x=$APP.C(h,$APP.Qj),y=$APP.C(h,t7),A=$APP.C(h,
6
- $APP.Pj),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.yq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=u;d.required=q;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);q=$APP.G(c);k=$APP.C(q,$APP.Tj);m=$APP.C(q,$APP.ls);q=$APP.C(q,$APP.sp);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");
7
- k=$APP.n($APP.n(q)?m:q)?"hint error":$APP.n(q)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.Rj);m=$APP.C(m,$APP.Os);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.kt);k=$APP.C(k,$APP.sp);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.Dp);e=$APP.C(e,$APP.ls);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.ls);$APP.Zi(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,
8
- "__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},ira=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.fj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),
9
- $APP.dj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},jra=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return ira(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.dj(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",
10
- c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},kra=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},lra=function(a){$APP.U(a,"value");var b=$APP.l(a,"__xTextAreaRefs");
11
- $APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");return z7(a)},mra=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#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;}}";
2
+ var d7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},e7=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var f=c.value;$APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.z.j(f,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},m7=function(a){a=$APP.Gg([f7,$APP.Dj,$APP.Aj,$APP.qq,$APP.Iq,g7,$APP.Ej,h7,$APP.Fj,$APP.gl,$APP.Bj,
3
+ $APP.Sj,i7,$APP.Cj],[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"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,i7),d=$APP.C(b,$APP.Cj),e=$APP.C(b,f7),f=$APP.C(b,$APP.Dj),h=$APP.C(b,$APP.Aj),k=$APP.C(b,
4
+ $APP.qq),m=$APP.C(b,$APP.Iq),r=$APP.C(b,g7);a=$APP.C(b,$APP.Ej);var u=$APP.C(b,h7),x=$APP.C(b,$APP.Fj),y=$APP.C(b,$APP.gl),A=$APP.C(b,$APP.Bj);b=$APP.C(b,$APP.Sj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",O=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=d7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.ed(Qsa,e)?e:"vertical";r=d7(r);return $APP.Gg([$APP.Yj,$APP.ll,$APP.Vj,
5
+ $APP.Up,$APP.Uj,$APP.Ui,j7,$APP.st,$APP.Qs,k7,$APP.Rt,l7,$APP.br,$APP.Wj,$APP.fq,$APP.Zj,$APP.Xj],[x,y,d,m,h,A,c,f,k,e,H,d7(u),$APP.n(r)?r:3,O,E,$APP.n(b)?b:"",$APP.D(a)])},n7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},o7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.Zj),m=$APP.C(h,$APP.Xj),r=$APP.C(h,$APP.Yj),u=$APP.C(h,$APP.ll),x=$APP.C(h,$APP.Vj),y=$APP.C(h,j7),A=$APP.C(h,
6
+ $APP.Uj),E=$APP.C(h,k7),H=$APP.C(h,l7);h=$APP.C(h,$APP.br);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=u;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.Yj);m=$APP.C(r,$APP.Qs);r=$APP.C(r,$APP.Up);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");
7
+ k=$APP.n($APP.n(r)?m:r)?"hint error":$APP.n(r)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.Wj);m=$APP.C(m,$APP.st);n7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Rt);k=$APP.C(k,$APP.Up);n7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.fq);e=$APP.C(e,$APP.Qs);n7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.Qs);$APP.cj(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&e7(a,b,d);return $APP.Q(a,
8
+ "__xTextAreaModel",c)},p7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?o7(a,b,m7(a)):null},Rsa=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.jj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),e7(a,d,b)),
9
+ $APP.hj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Ssa=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Rsa(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),e7(a,k,e));e=$APP.hj(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",
10
+ c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},q7=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Tsa=function(a,b){$APP.cj(a,"disabled",$APP.D(b));return p7(a)},Usa=function(a){$APP.U(a,"value");var b=$APP.l(a,"__xTextAreaRefs");
11
+ $APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");return p7(a)},Vsa=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#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;}}";
12
12
  $APP.T(d,"part","field");$APP.T(e,"part","label");$APP.T(e,"id","label");$APP.T(e,"for","textarea");$APP.T(f,"part","textarea-wrapper");$APP.T(h,"part","textarea");$APP.T(h,"id","textarea");$APP.T(h,"aria-labelledby","label");$APP.T(k,"part","hint");$APP.T(k,"id","hint");$APP.T(k,"aria-live","polite");$APP.T(m,"part","error");$APP.T(m,"id","error");$APP.T(m,"role","alert");$APP.T(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(m);b.appendChild(c);
13
- b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));jra(a);return z7(a)},nra=function(a){return A7(a)},ora=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
- "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},pra=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&&
15
- $APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},qra=function(a){pra(a);$APP.lj(a,"name","name","");$APP.lj(a,"placeholder","placeholder","");$APP.lj(a,"autocomplete","autocomplete","");$APP.ij(a,"disabled","disabled");$APP.ij(a,"readOnly","readonly");$APP.ij(a,"required","required");$APP.nj(a,"rows","rows",3);$APP.nj(a,"maxLength","maxlength",null);return $APP.nj(a,"minLength","minlength",null)},B7=function(){return $APP.xi("x-text-area",
16
- new $APP.M(null,8,[$APP.hi,rra,$APP.fi,mra,$APP.ci,nra,$APP.bi,ora,$APP.di,!0,$APP.ai,kra,$APP.$h,lra,$APP.gi,qra],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw","rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",
17
- 297367086);var rra="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),hra=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
- $APP.Eg([$APP.um,$APP.Pj,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.yq,$APP.Bt,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.Uj,$APP.Kr],[new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],
19
- null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null)]);
20
- $APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.yt,!0,$APP.V,new $APP.M(null,3,[$APP.Pj,$APP.X,$APP.Si,$APP.X,$APP.as,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,2,[$APP.Pj,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.yt,!1,$APP.V,new $APP.M(null,2,[$APP.Pj,$APP.X,$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",B7);export const init=B7;
13
+ b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}q7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Ssa(a);return p7(a)},Wsa=function(a){return q7(a)},Xsa=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
+ "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=m7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?o7(a,d,b):null):a=null,a):null},Ysa=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&&
15
+ $APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},Zsa=function(a){Ysa(a);$APP.pj(a,"name","name","");$APP.pj(a,"placeholder","placeholder","");$APP.pj(a,"autocomplete","autocomplete","");$APP.mj(a,"disabled","disabled");$APP.mj(a,"readOnly","readonly");$APP.mj(a,"required","required");$APP.rj(a,"rows","rows",3);$APP.rj(a,"maxLength","maxlength",null);return $APP.rj(a,"minLength","minlength",null)},r7=function(){return $APP.zi("x-text-area",
16
+ new $APP.M(null,8,[$APP.ji,$sa,$APP.hi,Vsa,$APP.ei,Wsa,$APP.di,Xsa,$APP.fi,!0,$APP.ci,Tsa,$APP.bi,Usa,$APP.ii,Zsa],null))},j7=new $APP.F(null,"minlength","minlength",259053545),i7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),h7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),l7=new $APP.F(null,"maxlength","maxlength",-1163911985),f7=new $APP.F(null,"resize-raw","resize-raw",-287517888),g7=new $APP.F(null,"rows-raw","rows-raw",-1828357145),k7=new $APP.F(null,"resize","resize",
17
+ 297367086);var $sa="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Qsa=new $APP.ch(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
+ $APP.Gg([$APP.zm,$APP.Uj,$APP.Ui,new $APP.F(null,"minLength","minLength",-1538722770),$APP.br,$APP.iu,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.Zj,$APP.ps],[new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"readonly"],
19
+ null),new $APP.M(null,2,[$APP.N,$APP.Y,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"required"],null)]);
20
+ $APP.je(["x-text-area-change-request",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,3,[$APP.Uj,$APP.X,$APP.Ui,$APP.X,$APP.Gs,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,2,[$APP.Uj,$APP.X,$APP.Ui,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,2,[$APP.Uj,$APP.X,$APP.Ui,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",r7);export const init=r7;
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Mea=function(a,b){var c=QQ.i(RQ),d=SQ.i(RQ),e=b.light,f=b.dark;b=$APP.Wg($APP.Cc([c,$APP.n(e)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var q=$APP.r(k);if(q){if($APP.Yc(q)){var u=$APP.Db(q),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Pd(y.ea(),m($APP.Eb(q))):$APP.Pd(y.ea(),null)}y=$APP.t(q);return $APP.Dd(new $APP.J(null,
3
- 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Wg($APP.Cc([d,$APP.n(f)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var q=$APP.r(k);if(q){if($APP.Yc(q)){var u=$APP.Db(q),x=$APP.w(u),y=$APP.Kd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Pd(y.ea(),m($APP.Eb(q))):$APP.Pd(y.ea(),null)}y=$APP.t(q);
4
- return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(TQ,a,new $APP.M(null,2,[QQ,b,SQ,d],null))},UQ=function(a){var b=[];a=$APP.r(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.r(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.P.i(c)+
5
- ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},VQ=function(a){var b=new $APP.M(null,1,[$APP.Mr,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Mr),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(Nea,c)&&$APP.l(TQ,c)==null?"default":c;var e=$APP.l(TQ,c);$APP.n(e)||(c=$APP.C(Oea,c),e=$APP.n(c)?c:RQ);c=QQ.i(e);e=SQ.i(e);c=":host{display:contents;"+$APP.P.i(UQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
- $APP.P.i(UQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},Pea=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return VQ(a)},Qea=function(){return null},Rea=function(a,b,c,d){return $APP.I(c,d)?VQ(a):null},Sea=function(a){return $APP.mj(a,"preset","preset")},WQ=function(a,b){return Mea(a,
7
- b)},XQ=function(){return $APP.xi("x-theme",new $APP.M(null,5,[$APP.hi,Tea,$APP.fi,Pea,$APP.ci,Qea,$APP.bi,Rea,$APP.gi,Sea],null))},QQ=new $APP.F(null,"light","light",1918998747),SQ=new $APP.F(null,"dark","dark",1818973999);var Tea=["preset"],YQ=$APP.Eg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),ZQ=$APP.he("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- $Q=$APP.he(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),aR=$APP.he("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),bR=$APP.he("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),cR=$APP.he(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),dR=$APP.he("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
- eR=$APP.he("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),RQ=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),Uea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),Vea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),Wea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Xea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,$Q,aR,bR,cR,$APP.Eg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
- "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),SQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
- "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),Yea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,aR,bR,cR,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
- "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),SQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
- "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),Zea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([ZQ,$Q,aR,bR,cR,$APP.Eg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
- "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),SQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
- "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),$ea=new $APP.M(null,2,[QQ,$APP.Wg($APP.Cc([YQ,ZQ,$Q,dR,aR,bR,cR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),SQ,$APP.Wg($APP.Cc([eR,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),Oea=new $APP.M(null,8,["default",RQ,"ocean",Uea,"forest",Vea,"sunset",Wea,"neo-brutalist",Xea,"aurora",Yea,"mono-ai",Zea,"warm-mineral",$ea],null),TQ=Object.create(null),Nea=new $APP.ah(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
- "default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",WQ);$APP.fa("baredom.exports.x_theme.init",XQ);export const init=XQ;export const registerPreset=WQ;
2
+ var Tfa=function(a,b){var c=pQ.i(qQ),d=rQ.i(qQ),e=b.light,f=b.dark;b=$APP.Yg($APP.Ec([c,$APP.n(e)?$APP.Kf.j($APP.ke,function(){return function m(k){return new $APP.Id(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.$c(r)){var u=$APP.Fb(r),x=$APP.w(u),y=$APP.Md(x);a:{for(var A=0;;)if(A<x){var E=$APP.Jc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Rd(y.da(),m($APP.Gb(r))):$APP.Rd(y.da(),null)}y=$APP.t(r);return $APP.Fd(new $APP.J(null,
3
+ 2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.gc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Yg($APP.Ec([d,$APP.n(f)?$APP.Kf.j($APP.ke,function(){return function m(k){return new $APP.Id(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.$c(r)){var u=$APP.Fb(r),x=$APP.w(u),y=$APP.Md(x);a:{for(var A=0;;)if(A<x){var E=$APP.Jc(u,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{u=!0;break a}u=void 0}return u?$APP.Rd(y.da(),m($APP.Gb(r))):$APP.Rd(y.da(),null)}y=$APP.t(r);
4
+ return $APP.Fd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.gc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.la(sQ,a,new $APP.M(null,2,[pQ,b,rQ,d],null))},tQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.$c(a)?(d=$APP.Fb(a),a=$APP.Gb(a),c=d,d=$APP.w(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.P.i(c)+
5
+ ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},uQ=function(a){var b=new $APP.M(null,1,[$APP.rs,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.rs),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.ed(Ufa,c)&&$APP.l(sQ,c)==null?"default":c;var e=$APP.l(sQ,c);$APP.n(e)||(c=$APP.C(Vfa,c),e=$APP.n(c)?c:qQ);c=pQ.i(e);e=rQ.i(e);c=":host{display:contents;"+$APP.P.i(tQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
+ $APP.P.i(tQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},Wfa=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return uQ(a)},Xfa=function(){return null},Yfa=function(a,b,c,d){return $APP.I(c,d)?uQ(a):null},Zfa=function(a){return $APP.qj(a,"preset","preset")},vQ=function(a,b){return Tfa(a,
7
+ b)},wQ=function(){return $APP.zi("x-theme",new $APP.M(null,5,[$APP.ji,$fa,$APP.hi,Wfa,$APP.ei,Xfa,$APP.di,Yfa,$APP.ii,Zfa],null))},pQ=new $APP.F(null,"light","light",1918998747),rQ=new $APP.F(null,"dark","dark",1818973999);var $fa=["preset"],xQ=$APP.Gg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),yQ=$APP.je("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ zQ=$APP.je(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),AQ=$APP.je("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),BQ=$APP.je("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),CQ=$APP.je(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),DQ=$APP.je("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
+ EQ=$APP.je("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),qQ=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,yQ,zQ,DQ,AQ,BQ,CQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),rQ,$APP.Yg($APP.Ec([EQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),aga=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,yQ,zQ,DQ,AQ,BQ,CQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),rQ,$APP.Yg($APP.Ec([EQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),bga=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,yQ,zQ,DQ,AQ,BQ,CQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),rQ,$APP.Yg($APP.Ec([EQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),cga=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,yQ,zQ,DQ,AQ,BQ,CQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),rQ,$APP.Yg($APP.Ec([EQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),dga=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,zQ,AQ,BQ,CQ,$APP.Gg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
+ "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),rQ,$APP.Gg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
+ "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),ega=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,yQ,zQ,AQ,BQ,CQ,$APP.Gg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
+ "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),rQ,$APP.Gg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
+ "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),fga=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([yQ,zQ,AQ,BQ,CQ,$APP.Gg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
+ "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),rQ,$APP.Gg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
+ "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),gga=new $APP.M(null,2,[pQ,$APP.Yg($APP.Ec([xQ,yQ,zQ,DQ,AQ,BQ,CQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),rQ,$APP.Yg($APP.Ec([EQ,$APP.Gg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),Vfa=new $APP.M(null,8,["default",qQ,"ocean",aga,"forest",bga,"sunset",cga,"neo-brutalist",dga,"aurora",ega,"mono-ai",fga,"warm-mineral",gga],null),sQ=Object.create(null),Ufa=new $APP.ch(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
+ "default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",vQ);$APP.fa("baredom.exports.x_theme.init",wQ);export const init=wQ;export const registerPreset=vQ;