@vanelsas/baredom 2.4.1 → 2.6.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 (187) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +63 -270
  3. package/custom-elements.json +7373 -0
  4. package/dist/baredom.d.ts +97 -0
  5. package/dist/base.js +74 -74
  6. package/dist/integrity.json +93 -93
  7. package/dist/x-alert.d.ts +43 -0
  8. package/dist/x-alert.js +17 -17
  9. package/dist/x-avatar-group.d.ts +18 -0
  10. package/dist/x-avatar-group.js +10 -10
  11. package/dist/x-avatar.d.ts +21 -0
  12. package/dist/x-avatar.js +13 -13
  13. package/dist/x-badge.d.ts +19 -0
  14. package/dist/x-badge.js +11 -11
  15. package/dist/x-bento-grid.d.ts +12 -0
  16. package/dist/x-bento-grid.js +5 -5
  17. package/dist/x-bento-item.d.ts +12 -0
  18. package/dist/x-bento-item.js +4 -4
  19. package/dist/x-breadcrumbs.d.ts +20 -0
  20. package/dist/x-breadcrumbs.js +14 -14
  21. package/dist/x-button.d.ts +45 -0
  22. package/dist/x-button.js +15 -15
  23. package/dist/x-cancel-dialogue.d.ts +50 -0
  24. package/dist/x-cancel-dialogue.js +12 -12
  25. package/dist/x-card.d.ts +39 -0
  26. package/dist/x-card.js +7 -7
  27. package/dist/x-carousel.d.ts +48 -0
  28. package/dist/x-carousel.js +28 -28
  29. package/dist/x-chart.d.ts +23 -0
  30. package/dist/x-chart.js +46 -46
  31. package/dist/x-checkbox.d.ts +45 -0
  32. package/dist/x-checkbox.js +11 -11
  33. package/dist/x-chip.d.ts +41 -0
  34. package/dist/x-chip.js +8 -8
  35. package/dist/x-collapse.d.ts +42 -0
  36. package/dist/x-collapse.js +10 -10
  37. package/dist/x-color-picker.d.ts +47 -0
  38. package/dist/x-color-picker.js +41 -41
  39. package/dist/x-combobox.d.ts +47 -0
  40. package/dist/x-combobox.js +25 -25
  41. package/dist/x-command-palette.d.ts +46 -0
  42. package/dist/x-command-palette.js +24 -24
  43. package/dist/x-container.d.ts +14 -0
  44. package/dist/x-container.js +6 -6
  45. package/dist/x-context-menu.d.ts +17 -0
  46. package/dist/x-context-menu.js +18 -18
  47. package/dist/x-copy.d.ts +51 -0
  48. package/dist/x-copy.js +20 -20
  49. package/dist/x-currency-field.d.ts +52 -0
  50. package/dist/x-currency-field.js +23 -21
  51. package/dist/x-date-picker.d.ts +20 -0
  52. package/dist/x-date-picker.js +37 -37
  53. package/dist/x-divider.d.ts +20 -0
  54. package/dist/x-divider.js +8 -8
  55. package/dist/x-drawer.d.ts +44 -0
  56. package/dist/x-drawer.js +11 -11
  57. package/dist/x-dropdown.d.ts +42 -0
  58. package/dist/x-dropdown.js +9 -9
  59. package/dist/x-fieldset.d.ts +14 -0
  60. package/dist/x-fieldset.js +5 -5
  61. package/dist/x-file-download.d.ts +40 -0
  62. package/dist/x-file-download.js +7 -7
  63. package/dist/x-file-upload.d.ts +46 -0
  64. package/dist/x-file-upload.js +22 -22
  65. package/dist/x-form-field.d.ts +47 -0
  66. package/dist/x-form-field.js +15 -15
  67. package/dist/x-form.d.ts +41 -0
  68. package/dist/x-form.js +9 -9
  69. package/dist/x-gaussian-blur.d.ts +20 -0
  70. package/dist/x-gaussian-blur.js +16 -16
  71. package/dist/x-grid.d.ts +12 -0
  72. package/dist/x-grid.js +6 -6
  73. package/dist/x-icon.d.ts +15 -0
  74. package/dist/x-icon.js +7 -7
  75. package/dist/x-image.d.ts +48 -0
  76. package/dist/x-image.js +18 -18
  77. package/dist/x-kinetic-font.d.ts +48 -0
  78. package/dist/x-kinetic-font.js +28 -28
  79. package/dist/x-kinetic-typography.d.ts +27 -0
  80. package/dist/x-kinetic-typography.js +37 -37
  81. package/dist/x-liquid-dock.d.ts +47 -0
  82. package/dist/x-liquid-dock.js +35 -35
  83. package/dist/x-liquid-fill.d.ts +46 -0
  84. package/dist/x-liquid-fill.js +40 -40
  85. package/dist/x-liquid-glass.d.ts +25 -0
  86. package/dist/x-liquid-glass.js +35 -35
  87. package/dist/x-menu-item.d.ts +41 -0
  88. package/dist/x-menu-item.js +10 -10
  89. package/dist/x-menu.d.ts +42 -0
  90. package/dist/x-menu.js +10 -10
  91. package/dist/x-metaball-cursor.d.ts +21 -0
  92. package/dist/x-metaball-cursor.js +25 -25
  93. package/dist/x-modal.d.ts +44 -0
  94. package/dist/x-modal.js +11 -11
  95. package/dist/x-morph-stack.d.ts +46 -0
  96. package/dist/x-morph-stack.js +39 -39
  97. package/dist/x-navbar.d.ts +46 -0
  98. package/dist/x-navbar.js +12 -12
  99. package/dist/x-neural-glow.d.ts +22 -0
  100. package/dist/x-neural-glow.js +30 -30
  101. package/dist/x-notification-center.d.ts +42 -0
  102. package/dist/x-notification-center.js +10 -10
  103. package/dist/x-organic-divider.d.ts +19 -0
  104. package/dist/x-organic-divider.js +15 -15
  105. package/dist/x-organic-progress.d.ts +45 -0
  106. package/dist/x-organic-progress.js +35 -35
  107. package/dist/x-organic-shape.d.ts +18 -0
  108. package/dist/x-organic-shape.js +12 -12
  109. package/dist/x-pagination.d.ts +45 -0
  110. package/dist/x-pagination.js +17 -16
  111. package/dist/x-particle-button.d.ts +47 -0
  112. package/dist/x-particle-button.js +46 -46
  113. package/dist/x-popover.d.ts +45 -0
  114. package/dist/x-popover.js +23 -23
  115. package/dist/x-progress-circle.d.ts +41 -0
  116. package/dist/x-progress-circle.js +7 -7
  117. package/dist/x-progress.d.ts +44 -0
  118. package/dist/x-progress.js +7 -7
  119. package/dist/x-radio.d.ts +44 -0
  120. package/dist/x-radio.js +11 -11
  121. package/dist/x-ripple-effect.d.ts +42 -0
  122. package/dist/x-ripple-effect.js +11 -11
  123. package/dist/x-scroll-parallax.d.ts +45 -0
  124. package/dist/x-scroll-parallax.js +17 -17
  125. package/dist/x-scroll-stack.d.ts +46 -0
  126. package/dist/x-scroll-stack.js +18 -18
  127. package/dist/x-scroll-story.d.ts +56 -0
  128. package/dist/x-scroll-story.js +33 -33
  129. package/dist/x-scroll-timeline.d.ts +58 -0
  130. package/dist/x-scroll-timeline.js +44 -44
  131. package/dist/x-scroll.d.ts +51 -0
  132. package/dist/x-scroll.js +39 -39
  133. package/dist/x-search-field.d.ts +47 -0
  134. package/dist/x-search-field.js +15 -14
  135. package/dist/x-select.d.ts +41 -0
  136. package/dist/x-select.js +10 -10
  137. package/dist/x-sidebar.d.ts +40 -0
  138. package/dist/x-sidebar.js +16 -16
  139. package/dist/x-skeleton-group.d.ts +15 -0
  140. package/dist/x-skeleton-group.js +13 -13
  141. package/dist/x-skeleton.d.ts +16 -0
  142. package/dist/x-skeleton.js +1 -1
  143. package/dist/x-slider.d.ts +49 -0
  144. package/dist/x-slider.js +18 -16
  145. package/dist/x-soft-body.d.ts +44 -0
  146. package/dist/x-soft-body.js +20 -20
  147. package/dist/x-spacer.d.ts +15 -0
  148. package/dist/x-spacer.js +5 -5
  149. package/dist/x-spinner.d.ts +15 -0
  150. package/dist/x-spinner.js +5 -5
  151. package/dist/x-splash.d.ts +42 -0
  152. package/dist/x-splash.js +13 -13
  153. package/dist/x-stat.d.ts +21 -0
  154. package/dist/x-stat.js +9 -9
  155. package/dist/x-stepper.d.ts +42 -0
  156. package/dist/x-stepper.js +14 -14
  157. package/dist/x-switch.d.ts +44 -0
  158. package/dist/x-switch.js +10 -10
  159. package/dist/x-tab.d.ts +40 -0
  160. package/dist/x-tab.js +7 -7
  161. package/dist/x-table-cell.d.ts +50 -0
  162. package/dist/x-table-cell.js +19 -19
  163. package/dist/x-table-row.d.ts +43 -0
  164. package/dist/x-table-row.js +10 -10
  165. package/dist/x-table.d.ts +124 -0
  166. package/dist/x-table.js +13 -13
  167. package/dist/x-tabs.d.ts +71 -0
  168. package/dist/x-tabs.js +11 -11
  169. package/dist/x-text-area.d.ts +48 -0
  170. package/dist/x-text-area.js +20 -18
  171. package/dist/x-theme.d.ts +15 -0
  172. package/dist/x-theme.js +24 -24
  173. package/dist/x-timeline-item.d.ts +46 -0
  174. package/dist/x-timeline-item.js +19 -19
  175. package/dist/x-timeline.d.ts +78 -0
  176. package/dist/x-timeline.js +9 -9
  177. package/dist/x-toast.d.ts +45 -0
  178. package/dist/x-toast.js +21 -21
  179. package/dist/x-toaster.d.ts +41 -0
  180. package/dist/x-toaster.js +8 -8
  181. package/dist/x-tooltip.d.ts +43 -0
  182. package/dist/x-tooltip.js +12 -12
  183. package/dist/x-typography.d.ts +16 -0
  184. package/dist/x-typography.js +8 -8
  185. package/dist/x-welcome-tour.d.ts +92 -0
  186. package/dist/x-welcome-tour.js +58 -58
  187. package/package.json +506 -392
@@ -0,0 +1,44 @@
1
+ // x-switch.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XSwitchEventMap {
6
+ "x-switch-change-request": CustomEvent<{ value: string; previousChecked: boolean; nextChecked: boolean }>;
7
+ "x-switch-change": CustomEvent<{ value: string; checked: boolean }>;
8
+ }
9
+
10
+ export interface XSwitch extends HTMLElement {
11
+ checked: boolean;
12
+ disabled: boolean;
13
+ readOnly: boolean;
14
+ required: boolean;
15
+ name: string;
16
+ value: string;
17
+
18
+ addEventListener<K extends keyof XSwitchEventMap>(
19
+ type: K,
20
+ listener: (this: XSwitch, ev: XSwitchEventMap[K]) => any,
21
+ options?: boolean | AddEventListenerOptions
22
+ ): void;
23
+ addEventListener(
24
+ type: string,
25
+ listener: EventListenerOrEventListenerObject,
26
+ options?: boolean | AddEventListenerOptions
27
+ ): void;
28
+ removeEventListener<K extends keyof XSwitchEventMap>(
29
+ type: K,
30
+ listener: (this: XSwitch, ev: XSwitchEventMap[K]) => any,
31
+ options?: boolean | EventListenerOptions
32
+ ): void;
33
+ removeEventListener(
34
+ type: string,
35
+ listener: EventListenerOrEventListenerObject,
36
+ options?: boolean | EventListenerOptions
37
+ ): void;
38
+ }
39
+
40
+ declare global {
41
+ interface HTMLElementTagNameMap {
42
+ "x-switch": XSwitch;
43
+ }
44
+ }
package/dist/x-switch.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ZU=function(a,b,c){return a.setAttribute(b,c)},$U=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},aV=function(a){a=$APP.zf([$APP.yl,$APP.Ml,$APP.Nh,$APP.Zh,$APP.sj,$APP.Lj,$APP.Cm,$APP.Uj,$APP.Cj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
- $APP.D(b,$APP.Uj);var c=$APP.D(b,$APP.Cj),d=$APP.D(b,$APP.yl),e=$APP.D(b,$APP.Ml),g=$APP.D(b,$APP.Nh),h=$APP.D(b,$APP.Zh),l=$APP.D(b,$APP.sj),m=$APP.D(b,$APP.Lj);b=$APP.D(b,$APP.Cm);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.mi,$APP.ci,$APP.bn,$APP.Ej,$APP.Th,$APP.Aj,$APP.Yi,$APP.ek,$APP.Ym,$APP.Ol,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},bV=function(a){var b=$APP.k(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=aV(a);var d=$APP.X.g(b),
4
- e=$APP.Ej.g(b);ZU(c,"aria-checked",$APP.ci.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");ZU(c,"aria-required",$APP.n($APP.mi.g(b))?"true":"false");ZU(c,"aria-readonly",$APP.n($APP.bn.g(b))?"true":"false");var g=$APP.Ol.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.ek.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.Ym.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
- c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");$U(a,"data-checked",e);$U(a,"data-disabled",d);a=$APP.k(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Yi.g(b):null):null}return null},cV=function(a){var b=aV(a),c=$APP.X.g(b),d=$APP.bn.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.Ej.g(b);c=$APP.r(d);b=$APP.Yi.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
- cancelable:!0});a.dispatchEvent(d);return $APP.r(d.defaultPrevented)?($U(a,"checked",c),bV(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},dV=function(a){return function(){return cV(a)}},eV=function(a){return function(b){var c=b.key;return $APP.B.i(c," ")||$APP.B.i(c,"Enter")?(b.preventDefault(),cV(a)):null}},fV=function(a){var b=$APP.k(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.k(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
- $APP.k(b,"control");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},gV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $U(this,c,$APP.F(d))}})},hV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
- null&&$APP.N(d)?ZU(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},jV=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return iV}});gV(b,"checked","checked");gV(b,"disabled","disabled");gV(b,"readOnly","readonly");gV(b,"required","required");hV(b,"name","name");hV(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
2
+ var bV=function(a,b,c){return a.setAttribute(b,c)},cV=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},dV=function(a){a=$APP.zf([$APP.Al,$APP.Ol,$APP.Nh,$APP.Zh,$APP.sj,$APP.Lj,$APP.Em,$APP.Uj,$APP.Cj],[a.getAttribute("name"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.getAttribute("aria-labelledby"),a.hasAttribute("checked"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.M(a);a=
3
+ $APP.D(b,$APP.Uj);var c=$APP.D(b,$APP.Cj),d=$APP.D(b,$APP.Al),e=$APP.D(b,$APP.Ol),g=$APP.D(b,$APP.Nh),h=$APP.D(b,$APP.Zh),l=$APP.D(b,$APP.sj),m=$APP.D(b,$APP.Lj);b=$APP.D(b,$APP.Em);l=$APP.F(l);g=$APP.F(g);return $APP.zf([$APP.mi,$APP.ci,$APP.dn,$APP.Ej,$APP.Th,$APP.Aj,$APP.Yi,$APP.bk,$APP.$m,$APP.Ql,$APP.X],[g,l?"true":"false",$APP.F(m),l,$APP.n(g)?l:!0,d,b!=null?b:"on",h,c,a,$APP.F(e)])},eV=function(a){var b=$APP.k(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.k(b,"control");b=dV(a);var d=$APP.X.g(b),
4
+ e=$APP.Ej.g(b);bV(c,"aria-checked",$APP.ci.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");bV(c,"aria-required",$APP.n($APP.mi.g(b))?"true":"false");bV(c,"aria-readonly",$APP.n($APP.dn.g(b))?"true":"false");var g=$APP.Ql.g(b);$APP.n(g)?c.setAttribute("aria-label",g):c.removeAttribute("aria-label");g=$APP.bk.g(b);$APP.n(g)?c.setAttribute("aria-labelledby",g):c.removeAttribute("aria-labelledby");g=$APP.$m.g(b);$APP.n(g)?c.setAttribute("aria-describedby",g):c.removeAttribute("aria-describedby");
5
+ c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");cV(a,"data-checked",e);cV(a,"data-disabled",d);a=$APP.k(a,"__xSwitchInternals");return $APP.n(a)?a.setFormValue($APP.n(e)?$APP.Yi.g(b):null):null}return null},fV=function(a){var b=dV(a),c=$APP.X.g(b),d=$APP.dn.g(b);if($APP.n($APP.n(c)?c:d))return null;d=$APP.Ej.g(b);c=$APP.r(d);b=$APP.Yi.g(b);d=new CustomEvent("x-switch-change-request",{detail:{value:b,previousChecked:d,nextChecked:c},bubbles:!0,composed:!0,
6
+ cancelable:!0});a.dispatchEvent(d);return $APP.r(d.defaultPrevented)?(cV(a,"checked",c),eV(a),a.dispatchEvent(new CustomEvent("x-switch-change",{detail:{value:b,checked:c},bubbles:!0,composed:!0,cancelable:!1}))):null},gV=function(a){return function(){return fV(a)}},hV=function(a){return function(b){var c=b.key;return $APP.B.i(c," ")||$APP.B.i(c,"Enter")?(b.preventDefault(),fV(a)):null}},iV=function(a){var b=$APP.k(a,"__xSwitchRefs");if($APP.n(b)){var c=$APP.k(a,"__xSwitchHandlers");if($APP.n(c)){b=
7
+ $APP.k(b,"control");b.removeEventListener("click",$APP.k(c,"click"));b.removeEventListener("keydown",$APP.k(c,"keydown"));a.__xSwitchHandlers=null;return}}return null},jV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return cV(this,c,$APP.F(d))}})},kV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=
8
+ null&&$APP.N(d)?bV(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},mV=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return lV}});jV(b,"checked","checked");jV(b,"disabled","disabled");jV(b,"readOnly","readonly");jV(b,"required","required");kV(b,"name","name");kV(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xSwitchRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),
9
9
  e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-switch-track-width:44px;--x-switch-track-height:24px;--x-switch-thumb-size:18px;--x-switch-thumb-offset:3px;--x-switch-track-radius:var(--x-radius-full,999px);--x-switch-track-bg:var(--x-color-border,#d1d5db);--x-switch-track-bg-checked:var(--x-color-primary,#2563eb);--x-switch-thumb-bg:var(--x-color-bg,#ffffff);--x-switch-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-switch-disabled-opacity:0.45;--x-switch-transition:background var(--x-transition-duration,150ms) var(--x-transition-easing,ease),transform var(--x-transition-duration,150ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-switch-track-bg:var(--x-color-border,#4b5563);--x-switch-track-bg-checked:var(--x-color-primary,#3b82f6);--x-switch-thumb-bg:var(--x-color-bg,#f9fafb);--x-switch-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-switch-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-switch-focus-ring);border-radius:calc(var(--x-switch-track-radius) + 2px);}[part\x3dtrack]{position:relative;display:inline-block;width:var(--x-switch-track-width);height:var(--x-switch-track-height);border-radius:var(--x-switch-track-radius);background:var(--x-switch-track-bg);transition:background 150ms ease;flex-shrink:0;}:host([data-checked]) [part\x3dtrack]{background:var(--x-switch-track-bg-checked);}[part\x3dthumb]{position:absolute;top:var(--x-switch-thumb-offset);left:var(--x-switch-thumb-offset);width:var(--x-switch-thumb-size);height:var(--x-switch-thumb-size);border-radius:50%;background:var(--x-switch-thumb-bg);box-shadow:0 1px 3px rgba(0,0,0,0.25);transition:transform 150ms ease;}:host([data-checked]) [part\x3dthumb]{transform:translateX(calc(var(--x-switch-track-width) - var(--x-switch-thumb-size) - calc(var(--x-switch-thumb-offset) * 2)));}@media (prefers-reduced-motion:reduce){[part\x3dtrack]{transition:none;}[part\x3dthumb]{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}fV(this);c=$APP.k(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=dV(this),e=eV(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xSwitchRefs"),$APP.n(d)&&$APP.k(d,"control").setAttribute("aria-labelledby",c)));return bV(this)};b.disconnectedCallback=function(){return fV(this)};b.attributeChangedCallback=function(){return bV(this)};b.formDisabledCallback=
12
- function(c){$U(this,"disabled",$APP.F(c));return bV(this)};b.formResetCallback=function(){this.removeAttribute("checked");return bV(this)};return a},kV=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",jV())};var iV="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-switch-change-request",new $APP.R(null,2,[$APP.jm,!0,$APP.V,new $APP.R(null,3,[$APP.Yi,$APP.Y,$APP.vk,$APP.Zj,$APP.Tl,$APP.Zj],null)],null),"x-switch-change",new $APP.R(null,2,[$APP.jm,!1,$APP.V,new $APP.R(null,2,[$APP.Yi,$APP.Y,$APP.Qm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_switch.init",kV);export const init=kV;
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","switch");g.setAttribute("part","track");h.setAttribute("part","thumb");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xSwitchRefs={root:c,control:e,track:g,thumb:h};$APP.n(this.attachInternals)&&(this.__xSwitchInternals=this.attachInternals())}iV(this);c=$APP.k(this,"__xSwitchRefs");$APP.n(c)&&(c=$APP.k(c,"control"),d=gV(this),e=hV(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xSwitchHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-sw-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.k(this,"__xSwitchRefs"),$APP.n(d)&&$APP.k(d,"control").setAttribute("aria-labelledby",c)));return eV(this)};b.disconnectedCallback=function(){return iV(this)};b.attributeChangedCallback=function(){return eV(this)};b.formDisabledCallback=
12
+ function(c){cV(this,"disabled",$APP.F(c));return eV(this)};b.formResetCallback=function(){this.removeAttribute("checked");return eV(this)};return a},nV=function(){return $APP.n(customElements.get("x-switch"))?null:customElements.define("x-switch",mV())};var lV="checked disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Pd(["x-switch-change-request",new $APP.Q(null,2,[$APP.lm,!0,$APP.V,new $APP.Q(null,3,[$APP.Yi,$APP.Y,$APP.vk,$APP.Zj,$APP.Vl,$APP.Zj],null)],null),"x-switch-change",new $APP.Q(null,2,[$APP.lm,!1,$APP.V,new $APP.Q(null,2,[$APP.Yi,$APP.Y,$APP.Sm,$APP.Zj],null)],null)]);$APP.ha("baredom.exports.x_switch.init",nV);export const init=nV;
@@ -0,0 +1,40 @@
1
+ // x-tab.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTabEventMap {
6
+ "tab-select": CustomEvent<{ value: string }>;
7
+ }
8
+
9
+ export interface XTab extends HTMLElement {
10
+ selected: boolean;
11
+ disabled: boolean;
12
+ value: string;
13
+
14
+ addEventListener<K extends keyof XTabEventMap>(
15
+ type: K,
16
+ listener: (this: XTab, ev: XTabEventMap[K]) => any,
17
+ options?: boolean | AddEventListenerOptions
18
+ ): void;
19
+ addEventListener(
20
+ type: string,
21
+ listener: EventListenerOrEventListenerObject,
22
+ options?: boolean | AddEventListenerOptions
23
+ ): void;
24
+ removeEventListener<K extends keyof XTabEventMap>(
25
+ type: K,
26
+ listener: (this: XTab, ev: XTabEventMap[K]) => any,
27
+ options?: boolean | EventListenerOptions
28
+ ): void;
29
+ removeEventListener(
30
+ type: string,
31
+ listener: EventListenerOrEventListenerObject,
32
+ options?: boolean | EventListenerOptions
33
+ ): void;
34
+ }
35
+
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ "x-tab": XTab;
39
+ }
40
+ }
package/dist/x-tab.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mn=function(a,b,c){return $APP.I(b,a)?a:c},rn=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.ok),d=$APP.D(b,$APP.Pj);a=$APP.D(b,$APP.pl);var e=$APP.D(b,$APP.Mh),g=$APP.D(b,$APP.Vg),h=$APP.D(b,$APP.U);b=$APP.D(b,nn);c=$APP.F(c);var l=(d=$APP.F(d))?"-1":c?"0":"-1";return new $APP.R(null,8,[$APP.ok,c,$APP.Pj,d,$APP.pl,mn(a,on,"horizontal"),$APP.Mh,mn(e,pn,"md"),$APP.Vg,mn(g,qn,"default"),$APP.U,h,nn,b,$APP.Nk,l],null)},sn=function(a){return new $APP.R(null,8,[$APP.Yi,a.getAttribute("value"),$APP.ok,
3
- a.hasAttribute("selected"),$APP.Pj,a.hasAttribute("disabled"),$APP.pl,a.getAttribute("orientation"),$APP.Mh,a.getAttribute("size"),$APP.Vg,a.getAttribute("variant"),$APP.U,a.getAttribute("label"),nn,a.getAttribute("controls")],null)},tn=function(a){var b=rn(sn(a)),c=$APP.k(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.ok.g(b))?"true":"false");$APP.n($APP.Pj.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
- $APP.Nk.g(b));var d=nn.g(b),e=$APP.U.g(b);$APP.n($APP.n(d)?$APP.N(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.N(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.ok.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.Pj.g(b))?"true":"false");c.setAttribute("data-size",$APP.Mh.g(b));c.setAttribute("data-variant",$APP.Vg.g(b));return c.setAttribute("data-orientation",
5
- $APP.pl.g(b))}return null},un=function(a){var b=rn(sn(a)),c=$APP.M(b);b=$APP.D(c,$APP.ok);c=$APP.D(c,$APP.Pj);$APP.r(c)&&$APP.r(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},vn=function(a){a.addEventListener("click",function(){return un(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.B.i(c,"Enter")||$APP.B.i(c," ")?(b.preventDefault(),b=un(a)):b=null;return b})},wn=function(a){if(!$APP.Dg(a,
2
+ var on=function(a,b,c){return $APP.I(b,a)?a:c},tn=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.ok),d=$APP.D(b,$APP.Pj);a=$APP.D(b,$APP.rl);var e=$APP.D(b,$APP.Mh),g=$APP.D(b,$APP.Vg),h=$APP.D(b,$APP.U);b=$APP.D(b,pn);c=$APP.F(c);var l=(d=$APP.F(d))?"-1":c?"0":"-1";return new $APP.Q(null,8,[$APP.ok,c,$APP.Pj,d,$APP.rl,on(a,qn,"horizontal"),$APP.Mh,on(e,rn,"md"),$APP.Vg,on(g,sn,"default"),$APP.U,h,pn,b,$APP.Nk,l],null)},un=function(a){return new $APP.Q(null,8,[$APP.Yi,a.getAttribute("value"),$APP.ok,
3
+ a.hasAttribute("selected"),$APP.Pj,a.hasAttribute("disabled"),$APP.rl,a.getAttribute("orientation"),$APP.Mh,a.getAttribute("size"),$APP.Vg,a.getAttribute("variant"),$APP.U,a.getAttribute("label"),pn,a.getAttribute("controls")],null)},vn=function(a){var b=tn(un(a)),c=$APP.k(a,"__x_tab_base");if($APP.n(c)){a.setAttribute("role","tab");a.setAttribute("aria-selected",$APP.n($APP.ok.g(b))?"true":"false");$APP.n($APP.Pj.g(b))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("tabindex",
4
+ $APP.Nk.g(b));var d=pn.g(b),e=$APP.U.g(b);$APP.n($APP.n(d)?$APP.N(d,""):d)?a.setAttribute("aria-controls",d):a.removeAttribute("aria-controls");$APP.n($APP.n(e)?$APP.N(e,""):e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");c.setAttribute("data-selected",$APP.n($APP.ok.g(b))?"true":"false");c.setAttribute("data-disabled",$APP.n($APP.Pj.g(b))?"true":"false");c.setAttribute("data-size",$APP.Mh.g(b));c.setAttribute("data-variant",$APP.Vg.g(b));return c.setAttribute("data-orientation",
5
+ $APP.rl.g(b))}return null},wn=function(a){var b=tn(un(a)),c=$APP.M(b);b=$APP.D(c,$APP.ok);c=$APP.D(c,$APP.Pj);$APP.r(c)&&$APP.r(b)?(b=a.getAttribute("value"),a=a.dispatchEvent(new CustomEvent("tab-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):a=null;return a},xn=function(a){a.addEventListener("click",function(){return wn(a)});a.addEventListener("keydown",function(b){var c=b.key;$APP.B.i(c,"Enter")||$APP.B.i(c," ")?(b.preventDefault(),b=wn(a)):b=null;return b})},yn=function(a){if(!$APP.Dg(a,
6
6
  "__x_tab_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:inline-block;color-scheme:light dark;outline:none;--x-tab-color:var(--x-color-text,#0f172a);--x-tab-hover-background:rgba(15,23,42,0.05);--x-tab-selected-color:var(--x-color-primary-hover,#1d4ed8);--x-tab-selected-background:rgba(59,130,246,0.12);--x-tab-selected-border-color:transparent;}@media (prefers-color-scheme:dark){:host{--x-tab-color:var(--x-color-text-muted,#94a3b8);--x-tab-hover-background:rgba(248,250,252,0.06);--x-tab-selected-color:var(--x-color-focus-ring,#60a5fa);--x-tab-selected-background:rgba(59,130,246,0.18);--x-tab-selected-border-color:var(--x-color-focus-ring,#60a5fa);}}.base{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none;padding:var(--x-tab-padding-md,10px 16px);border-radius:var(--x-tab-radius,8px);color:var(--x-tab-color);background:var(--x-tab-background,transparent);border:1px solid var(--x-tab-border-color,transparent);transition:background var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease),border-color var(--x-tab-transition-duration,120ms) var(--x-tab-transition-timing,ease);}.base[data-size\x3d'sm']{padding:var(--x-tab-padding-sm,6px 12px);}.base[data-size\x3d'md']{padding:var(--x-tab-padding-md,10px 16px);}.base[data-size\x3d'lg']{padding:var(--x-tab-padding-lg,14px 20px);}.base:hover{background:var(--x-tab-hover-background);}.base[data-selected\x3d'true']{color:var(--x-tab-selected-color);background:var(--x-tab-selected-background);border-color:var(--x-tab-selected-border-color);}.base[data-variant\x3d'underline'][data-selected\x3d'true']{border-bottom:2px solid var(--x-tab-selected-color);background:transparent;}.base[data-variant\x3d'pill'][data-selected\x3d'true']{background:var(--x-tab-selected-background);}.base[data-disabled\x3d'true']{opacity:var(--x-tab-disabled-opacity,0.5);cursor:default;}:host(:focus-visible) .base{box-shadow:0 0 0 3px var(--x-tab-focus-ring,rgba(59,130,246,0.4));}@media (prefers-reduced-motion: reduce){.base{transition:none;}}";
7
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;vn(a);a.__x_tab_initialized=!0}tn(a);return a},xn=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},zn=function(){var a=class extends HTMLElement{};a.observedAttributes=yn;a.prototype.connectedCallback=function(){return wn(this)};a.prototype.attributeChangedCallback=
9
- function(){return $APP.Dg(this,"__x_tab_initialized")?tn(this):wn(this)};xn(a);return a},An=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",zn())},nn=new $APP.K(null,"controls","controls",1340701452);var yn="value selected disabled orientation size variant label controls".split(" "),on=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),pn=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null),qn=new $APP.S(null,new $APP.R(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.Pd(["tab-select",new $APP.R(null,1,[$APP.V,new $APP.R(null,1,[$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_tab.init",An);export const init=An;
7
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_tab_root=b;a.__x_tab_base=d;xn(a);a.__x_tab_initialized=!0}vn(a);return a},zn=function(a){Object.defineProperty(a.prototype,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a.prototype,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},configurable:!0,enumerable:!0})},Bn=function(){var a=class extends HTMLElement{};a.observedAttributes=An;a.prototype.connectedCallback=function(){return yn(this)};a.prototype.attributeChangedCallback=
9
+ function(){return $APP.Dg(this,"__x_tab_initialized")?vn(this):yn(this)};zn(a);return a},Cn=function(){return $APP.n(customElements.get("x-tab"))?null:customElements.define("x-tab",Bn())},pn=new $APP.K(null,"controls","controls",1340701452);var An="value selected disabled orientation size variant label controls".split(" "),qn=new $APP.S(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),rn=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null),sn=new $APP.S(null,new $APP.Q(null,3,["default",null,"underline",null,"pill",null],null),null);$APP.Pd(["tab-select",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_tab.init",Cn);export const init=Cn;
@@ -0,0 +1,50 @@
1
+ // x-table-cell.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTableCellEventMap {
6
+ "x-table-cell-sort": CustomEvent<{ direction: string; previousDirection: string }>;
7
+ "x-table-cell-connected": CustomEvent<{ type: string; scope: string; colSpan: number; rowSpan: number; align: string }>;
8
+ "x-table-cell-disconnected": CustomEvent<{}>;
9
+ }
10
+
11
+ export interface XTableCell extends HTMLElement {
12
+ align: string;
13
+ rowSpan: number;
14
+ truncate: boolean;
15
+ disabled: boolean;
16
+ valign: string;
17
+ type: string;
18
+ scope: string;
19
+ colSpan: number;
20
+ sticky: string;
21
+ sortable: boolean;
22
+ sortDirection: string;
23
+
24
+ addEventListener<K extends keyof XTableCellEventMap>(
25
+ type: K,
26
+ listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
27
+ options?: boolean | AddEventListenerOptions
28
+ ): void;
29
+ addEventListener(
30
+ type: string,
31
+ listener: EventListenerOrEventListenerObject,
32
+ options?: boolean | AddEventListenerOptions
33
+ ): void;
34
+ removeEventListener<K extends keyof XTableCellEventMap>(
35
+ type: K,
36
+ listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
37
+ options?: boolean | EventListenerOptions
38
+ ): void;
39
+ removeEventListener(
40
+ type: string,
41
+ listener: EventListenerOrEventListenerObject,
42
+ options?: boolean | EventListenerOptions
43
+ ): void;
44
+ }
45
+
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ "x-table-cell": XTableCell;
49
+ }
50
+ }
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var jR=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(b,a)?a:c},kR=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):1):1},nR=function(a){var b=$APP.M(a);a=$APP.D(b,lR);b=$APP.D(b,mR);if($APP.n($APP.n(a)?a:$APP.N(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},oR=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Z);b=$APP.D(b,lR);return(a=$APP.B.i(a,
3
- "header"))?b:a},pR=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},qR=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},uR=function(a){var b=$APP.k(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 mR=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(b,a)?a:c},nR=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):1):1},qR=function(a){var b=$APP.M(a);a=$APP.D(b,oR);b=$APP.D(b,pR);if($APP.n($APP.n(a)?a:$APP.N(b,"none")))switch(b){case "asc":return"ascending";case "desc":return"descending";default:return"none"}else return null},rR=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Z);b=$APP.D(b,oR);return(a=$APP.B.i(a,
3
+ "header"))?b:a},sR=function(a){switch(a){case "none":return"asc";case "asc":return"desc";case "desc":return"none";default:return"asc"}},tR=function(a){switch(a){case "none":return"Sort ascending";case "asc":return"Sort descending";case "desc":return"Remove sort";default:return"Sort ascending"}},xR=function(a){var b=$APP.k(a,"__xTableCellRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),
4
4
  g=document.createElement("slot"),h=document.createElement("button"),l=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
  d.setAttribute("part","cell");e.setAttribute("part","content");e.appendChild(g);h.setAttribute("part","sort-btn");h.setAttribute("type","button");l.setAttribute("name","sort-icon");m.setAttribute("part","sort-icon-default");m.setAttribute("aria-hidden","true");m.innerHTML='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e';l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(h);
6
- b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.R(null,5,[$APP.Hi,b,rR,d,$APP.zi,e,sR,h,tR,m],null);return $APP.k(a,"__xTableCellRefs")},JR=function(a){a=$APP.zf([$APP.Xi,vR,wR,xR,lR,$APP.Mi,$APP.yi,yR,zR,$APP.X,AR],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
- var b=$APP.M(a);a=$APP.D(b,$APP.X);var c=$APP.D(b,AR),d=$APP.D(b,$APP.Xi),e=$APP.D(b,vR),g=$APP.D(b,wR),h=$APP.D(b,xR),l=$APP.D(b,lR),m=$APP.D(b,$APP.Mi),p=$APP.D(b,$APP.yi),q=$APP.D(b,yR);b=$APP.D(b,zR);return $APP.zf([$APP.vj,mR,BR,$APP.Z,CR,lR,$APP.Fl,$APP.tm,$APP.Mi,$APP.X,$APP.Yh],[jR(d,DR,"start"),jR(h,ER,"none"),jR(g,FR,"middle"),jR(p,GR,"data"),jR(b,HR,"col"),$APP.F(l),jR(q,IR,"none"),kR(c),$APP.F(m),$APP.F(a),kR(e)])},KR=function(a){var b=JR(a);if($APP.N($APP.k(a,"__xTableCellModel"),b)){b=
8
- $APP.M(b);var c=$APP.D(b,$APP.tm),d=$APP.D(b,$APP.Yh),e=$APP.D(b,$APP.X),g=$APP.D(b,mR),h=uR(a);h=$APP.M(h);var l=$APP.D(h,sR);h=$APP.D(h,tR);var m=oR(b),p=$APP.M(b),q=$APP.D(p,$APP.Z),v=$APP.D(p,$APP.vj),x=$APP.D(p,BR),y=$APP.D(p,$APP.Fl),A=$APP.D(p,$APP.Mi),C=$APP.D(p,$APP.X),E=a.setAttribute,H=$APP.M(p);var G=$APP.D(H,$APP.Z);H=$APP.D(H,CR);G=$APP.B.i(G,"header")?$APP.B.i(H,"row")||$APP.B.i(H,"rowgroup")?"rowheader":"columnheader":"cell";E.call(a,"role",G);p=nR(p);$APP.n(p)?a.setAttribute("aria-sort",
6
+ b.appendChild(c);b.appendChild(d);a.__xTableCellRefs=new $APP.Q(null,5,[$APP.Hi,b,uR,d,$APP.zi,e,vR,h,wR,m],null);return $APP.k(a,"__xTableCellRefs")},MR=function(a){a=$APP.zf([$APP.Xi,yR,zR,AR,oR,$APP.Mi,$APP.yi,BR,CR,$APP.X,DR],[a.getAttribute("align"),a.getAttribute("row-span"),a.getAttribute("valign"),a.getAttribute("sort-direction"),a.hasAttribute("sortable"),a.hasAttribute("truncate"),a.getAttribute("type"),a.getAttribute("sticky"),a.getAttribute("scope"),a.hasAttribute("disabled"),a.getAttribute("col-span")]);
7
+ var b=$APP.M(a);a=$APP.D(b,$APP.X);var c=$APP.D(b,DR),d=$APP.D(b,$APP.Xi),e=$APP.D(b,yR),g=$APP.D(b,zR),h=$APP.D(b,AR),l=$APP.D(b,oR),m=$APP.D(b,$APP.Mi),p=$APP.D(b,$APP.yi),q=$APP.D(b,BR);b=$APP.D(b,CR);return $APP.zf([$APP.vj,pR,ER,$APP.Z,FR,oR,$APP.Hl,$APP.vm,$APP.Mi,$APP.X,$APP.Yh],[mR(d,GR,"start"),mR(h,HR,"none"),mR(g,IR,"middle"),mR(p,JR,"data"),mR(b,KR,"col"),$APP.F(l),mR(q,LR,"none"),nR(c),$APP.F(m),$APP.F(a),nR(e)])},NR=function(a){var b=MR(a);if($APP.N($APP.k(a,"__xTableCellModel"),b)){b=
8
+ $APP.M(b);var c=$APP.D(b,$APP.vm),d=$APP.D(b,$APP.Yh),e=$APP.D(b,$APP.X),g=$APP.D(b,pR),h=xR(a);h=$APP.M(h);var l=$APP.D(h,vR);h=$APP.D(h,wR);var m=rR(b),p=$APP.M(b),q=$APP.D(p,$APP.Z),v=$APP.D(p,$APP.vj),x=$APP.D(p,ER),y=$APP.D(p,$APP.Hl),A=$APP.D(p,$APP.Mi),C=$APP.D(p,$APP.X),E=a.setAttribute,H=$APP.M(p);var G=$APP.D(H,$APP.Z);H=$APP.D(H,FR);G=$APP.B.i(G,"header")?$APP.B.i(H,"row")||$APP.B.i(H,"rowgroup")?"rowheader":"columnheader":"cell";E.call(a,"role",G);p=qR(p);$APP.n(p)?a.setAttribute("aria-sort",
9
9
  p):a.removeAttribute("aria-sort");$APP.n(C)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");a.setAttribute("data-type",q);a.setAttribute("data-align",v);a.setAttribute("data-valign",x);$APP.B.i(y,"none")?a.removeAttribute("data-sticky"):a.setAttribute("data-sticky",y);$APP.n(A)?a.setAttribute("data-truncate",""):a.removeAttribute("data-truncate");a.style.gridColumn=c>1?"span "+$APP.T.g(c):"";a.style.gridRow=d>1?"span "+$APP.T.g(d):"";l.hidden=$APP.r(m);c=parseInt;q=$APP.M(b);
10
- m=$APP.D(q,$APP.Z);d=$APP.D(q,lR);q=$APP.D(q,$APP.X);m=$APP.B.i(m,"header");l.tabIndex=c($APP.n(m?$APP.n(d)?$APP.r(q):d:m)?"0":"-1",10);l.setAttribute("aria-label",qR(g));l.disabled=$APP.F(e);a:switch(e=$APP.M(b),$APP.D(e,mR)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
- break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},LR=function(a){var b=a.getAttribute("sort-direction");b=jR(b,ER,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:pR(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},MR=function(a){var b=function(){var c=$APP.k(a,"__xTableCellModel");
12
- return $APP.n(c)?c:JR(a)}();$APP.n(function(){var c=oR(b);return $APP.n(c)?$APP.r($APP.X.g(b)):c}())&&LR(a);return null},NR=function(a){function b(){return MR(a)}var c=uR(a);c=$APP.M(c);$APP.D(c,sR).addEventListener("click",b);$APP.ja(a,"__xTableCellHandlers",{"sort-click":b})},OR=function(a){var b=$APP.k(a,"__xTableCellHandlers"),c=$APP.k(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.M(c),c=$APP.D(c,sR),b=$APP.k(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
- null},PR=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.T.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
10
+ m=$APP.D(q,$APP.Z);d=$APP.D(q,oR);q=$APP.D(q,$APP.X);m=$APP.B.i(m,"header");l.tabIndex=c($APP.n(m?$APP.n(d)?$APP.r(q):d:m)?"0":"-1",10);l.setAttribute("aria-label",tR(g));l.disabled=$APP.F(e);a:switch(e=$APP.M(b),$APP.D(e,pR)){case "asc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 4L4 10h8L8 4z"/\x3e\x3c/svg\x3e';break a;case "desc":e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 12l4-6H4l4 6z"/\x3e\x3c/svg\x3e';
11
+ break a;default:e='\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"currentColor" aria-hidden\x3d"true"\x3e\x3cpath d\x3d"M8 3L5 7h6L8 3zm0 10l3-4H5l3 4z"/\x3e\x3c/svg\x3e'}h.innerHTML=e;a.__xTableCellModel=b}},OR=function(a){var b=a.getAttribute("sort-direction");b=mR(b,HR,"none");b=new CustomEvent("x-table-cell-sort",{detail:{direction:sR(b),previousDirection:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b)},PR=function(a){var b=function(){var c=$APP.k(a,"__xTableCellModel");
12
+ return $APP.n(c)?c:MR(a)}();$APP.n(function(){var c=rR(b);return $APP.n(c)?$APP.r($APP.X.g(b)):c}())&&OR(a);return null},QR=function(a){function b(){return PR(a)}var c=xR(a);c=$APP.M(c);$APP.D(c,vR).addEventListener("click",b);$APP.ja(a,"__xTableCellHandlers",{"sort-click":b})},RR=function(a){var b=$APP.k(a,"__xTableCellHandlers"),c=$APP.k(a,"__xTableCellRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.M(c),c=$APP.D(c,vR),b=$APP.k(b,"sort-click"),$APP.n(b)&&c.removeEventListener("click",b));a.__xTableCellHandlers=
13
+ null},SR=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"data"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"scope",{get:function(){var b=this.getAttribute("scope");return $APP.n(b)?b:"col"},set:function(b){return $APP.n(b)?this.setAttribute("scope",""+$APP.T.g(b)):this.removeAttribute("scope")},enumerable:!0,configurable:!0});
14
14
  Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align");return $APP.n(b)?b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("align",""+$APP.T.g(b)):this.removeAttribute("align")},enumerable:!0,configurable:!0});Object.defineProperty(a,"valign",{get:function(){var b=this.getAttribute("valign");return $APP.n(b)?b:"middle"},set:function(b){return $APP.n(b)?this.setAttribute("valign",""+$APP.T.g(b)):this.removeAttribute("valign")},enumerable:!0,configurable:!0});Object.defineProperty(a,
15
15
  "truncate",{get:function(){return this.hasAttribute("truncate")},set:function(b){return $APP.n(b)?this.setAttribute("truncate",""):this.removeAttribute("truncate")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sticky",{get:function(){var b=this.getAttribute("sticky");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("sticky",""+$APP.T.g(b)):this.removeAttribute("sticky")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortable",{get:function(){return this.hasAttribute("sortable")},
16
- set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return kR(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&
17
- b>0?this.setAttribute("col-span",""+$APP.T.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return kR(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.T.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
- set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.T.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},TR=function(){var a=class extends HTMLElement{};a.observedAttributes=QR;a.prototype.connectedCallback=function(){uR(this);OR(this);NR(this);KR(this);var b=$APP.k(this,"__xTableCellModel");var c=$APP.n(b)?b:JR(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Z);var g=$APP.D(e,CR),h=$APP.D(e,$APP.tm),l=$APP.D(e,$APP.Yh);
19
- e=$APP.D(e,$APP.vj);b.call(this,new d("x-table-cell-connected",{detail:$APP.Hh(new $APP.R(null,5,[$APP.Z,c,CR,g,RR,h,SR,l,$APP.vj,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){OR(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&KR(this);return null};PR(a.prototype);return a},UR=function(){$APP.n(customElements.get("x-table-cell"))||
20
- customElements.define("x-table-cell",TR());return null},sR=new $APP.K(null,"sort-btn","sort-btn",1913954560),RR=new $APP.K(null,"colSpan","colSpan",872137394),rR=new $APP.K(null,"cell","cell",764245084),BR=new $APP.K(null,"valign","valign",1485197511),tR=new $APP.K(null,"sort-icon-default","sort-icon-default",-596209230),AR=new $APP.K(null,"col-span-raw","col-span-raw",1425293661),xR=new $APP.K(null,"sort-direction-raw","sort-direction-raw",-1822100883),yR=new $APP.K(null,"sticky-raw","sticky-raw",
21
- 1857578519),vR=new $APP.K(null,"row-span-raw","row-span-raw",-1130003707),zR=new $APP.K(null,"scope-raw","scope-raw",-773628648),mR=new $APP.K(null,"sort-direction","sort-direction",-1635889628),CR=new $APP.K(null,"scope","scope",-439358418),lR=new $APP.K(null,"sortable?","sortable?",291547474),wR=new $APP.K(null,"valign-raw","valign-raw",-1083375124),SR=new $APP.K(null,"rowSpan","rowSpan",826884002);var QR="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
22
- $APP.zf([$APP.vj,SR,$APP.Ui,$APP.Pj,BR,$APP.Z,CR,RR,$APP.Fl,new $APP.K(null,"sortable","sortable",2109633621),new $APP.K(null,"sortDirection","sortDirection",-45816999)],[new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.W],null),new $APP.R(null,
23
- 1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-table-cell-sort",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.tj,$APP.Y,$APP.Gm,$APP.Y],null),$APP.jm,!0],null),"x-table-cell-connected",new $APP.R(null,1,[$APP.V,new $APP.R(null,5,[$APP.Z,$APP.Y,CR,$APP.Y,RR,$APP.W,SR,$APP.W,$APP.vj,$APP.Y],null)],null),"x-table-cell-disconnected",new $APP.R(null,1,[$APP.V,$APP.Qd],null)]);
24
- var GR=new $APP.S(null,new $APP.R(null,2,["data",null,"header",null],null),null),HR=new $APP.S(null,new $APP.R(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),DR=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null),FR=new $APP.S(null,new $APP.R(null,3,["top",null,"middle",null,"bottom",null],null),null),IR=new $APP.S(null,new $APP.R(null,3,["none",null,"start",null,"end",null],null),null),ER=new $APP.S(null,new $APP.R(null,3,["none",null,
25
- "desc",null,"asc",null],null),null);$APP.ha("baredom.exports.x_table_cell.init",UR);export const init=UR;
16
+ set:function(b){return $APP.n(b)?this.setAttribute("sortable",""):this.removeAttribute("sortable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"colSpan",{get:function(){return nR(this.getAttribute("col-span"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&
17
+ b>0?this.setAttribute("col-span",""+$APP.T.g(b)):this.removeAttribute("col-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowSpan",{get:function(){return nR(this.getAttribute("row-span"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&b>0?this.setAttribute("row-span",""+$APP.T.g(b)):this.removeAttribute("row-span")},enumerable:!0,configurable:!0});Object.defineProperty(a,"sortDirection",{get:function(){var b=this.getAttribute("sort-direction");return $APP.n(b)?b:"none"},
18
+ set:function(b){return $APP.n(b)?this.setAttribute("sort-direction",""+$APP.T.g(b)):this.removeAttribute("sort-direction")},enumerable:!0,configurable:!0})},WR=function(){var a=class extends HTMLElement{};a.observedAttributes=TR;a.prototype.connectedCallback=function(){xR(this);RR(this);QR(this);NR(this);var b=$APP.k(this,"__xTableCellModel");var c=$APP.n(b)?b:MR(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.Z);var g=$APP.D(e,FR),h=$APP.D(e,$APP.vm),l=$APP.D(e,$APP.Yh);
19
+ e=$APP.D(e,$APP.vj);b.call(this,new d("x-table-cell-connected",{detail:$APP.Hh(new $APP.Q(null,5,[$APP.Z,c,FR,g,UR,h,VR,l,$APP.vj,e],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){RR(this);this.dispatchEvent(new CustomEvent("x-table-cell-disconnected",{detail:{},bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&NR(this);return null};SR(a.prototype);return a},YR=function(){$APP.n(customElements.get("x-table-cell"))||
20
+ customElements.define("x-table-cell",WR());return null},vR=new $APP.K(null,"sort-btn","sort-btn",1913954560),UR=new $APP.K(null,"colSpan","colSpan",872137394),uR=new $APP.K(null,"cell","cell",764245084),ER=new $APP.K(null,"valign","valign",1485197511),wR=new $APP.K(null,"sort-icon-default","sort-icon-default",-596209230),DR=new $APP.K(null,"col-span-raw","col-span-raw",1425293661),AR=new $APP.K(null,"sort-direction-raw","sort-direction-raw",-1822100883),BR=new $APP.K(null,"sticky-raw","sticky-raw",
21
+ 1857578519),yR=new $APP.K(null,"row-span-raw","row-span-raw",-1130003707),CR=new $APP.K(null,"scope-raw","scope-raw",-773628648),pR=new $APP.K(null,"sort-direction","sort-direction",-1635889628),FR=new $APP.K(null,"scope","scope",-439358418),oR=new $APP.K(null,"sortable?","sortable?",291547474),zR=new $APP.K(null,"valign-raw","valign-raw",-1083375124),VR=new $APP.K(null,"rowSpan","rowSpan",826884002);var TR="type scope align valign col-span row-span truncate sticky sortable sort-direction disabled".split(" ");
22
+ $APP.zf([$APP.vj,VR,$APP.Ui,$APP.Pj,ER,$APP.Z,FR,UR,$APP.Hl,new $APP.K(null,"sortable","sortable",2109633621),new $APP.K(null,"sortDirection","sortDirection",-45816999)],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
23
+ 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Zj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-table-cell-sort",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.tj,$APP.Y,$APP.Im,$APP.Y],null),$APP.lm,!0],null),"x-table-cell-connected",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,5,[$APP.Z,$APP.Y,FR,$APP.Y,UR,$APP.W,VR,$APP.W,$APP.vj,$APP.Y],null)],null),"x-table-cell-disconnected",new $APP.Q(null,1,[$APP.V,$APP.Qd],null)]);
24
+ var JR=new $APP.S(null,new $APP.Q(null,2,["data",null,"header",null],null),null),KR=new $APP.S(null,new $APP.Q(null,4,["rowgroup",null,"col",null,"row",null,"colgroup",null],null),null),GR=new $APP.S(null,new $APP.Q(null,3,["center",null,"start",null,"end",null],null),null),IR=new $APP.S(null,new $APP.Q(null,3,["top",null,"middle",null,"bottom",null],null),null),LR=new $APP.S(null,new $APP.Q(null,3,["none",null,"start",null,"end",null],null),null),HR=new $APP.S(null,new $APP.Q(null,3,["none",null,
25
+ "desc",null,"asc",null],null),null);$APP.ha("baredom.exports.x_table_cell.init",YR);export const init=YR;
@@ -0,0 +1,43 @@
1
+ // x-table-row.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTableRowEventMap {
6
+ "x-table-row-click": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean }>;
7
+ "x-table-row-connected": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean; interactive: boolean }>;
8
+ "x-table-row-disconnected": CustomEvent<{}>;
9
+ }
10
+
11
+ export interface XTableRow extends HTMLElement {
12
+ selected: boolean;
13
+ disabled: boolean;
14
+ interactive: boolean;
15
+ rowIndex: number;
16
+
17
+ addEventListener<K extends keyof XTableRowEventMap>(
18
+ type: K,
19
+ listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
20
+ options?: boolean | AddEventListenerOptions
21
+ ): void;
22
+ addEventListener(
23
+ type: string,
24
+ listener: EventListenerOrEventListenerObject,
25
+ options?: boolean | AddEventListenerOptions
26
+ ): void;
27
+ removeEventListener<K extends keyof XTableRowEventMap>(
28
+ type: K,
29
+ listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
30
+ options?: boolean | EventListenerOptions
31
+ ): void;
32
+ removeEventListener(
33
+ type: string,
34
+ listener: EventListenerOrEventListenerObject,
35
+ options?: boolean | EventListenerOptions
36
+ ): void;
37
+ }
38
+
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "x-table-row": XTableRow;
42
+ }
43
+ }
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},wz=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Hl);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},xz=function(a){if(!$APP.n($APP.k(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring: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);a.__xTableRowRefs=new $APP.R(null,2,[$APP.Hi,b,$APP.Dl,d],null)}},Az=function(a){a=new $APP.R(null,4,[$APP.cj,a.hasAttribute("selected"),$APP.X,a.hasAttribute("disabled"),$APP.Hl,a.hasAttribute("interactive"),yz,a.getAttribute("row-index")],null);var b=$APP.M(a);a=$APP.D(b,$APP.cj);var c=$APP.D(b,$APP.X),d=$APP.D(b,$APP.Hl);b=$APP.D(b,yz);return new $APP.R(null,4,[$APP.cj,$APP.F(a),$APP.X,$APP.F(c),$APP.Hl,$APP.F(d),zz,vz(b)],null)},Bz=function(a){var b=Az(a);if($APP.N($APP.k(a,
4
- "__xTableRowModel"),b)){xz(a);var c=$APP.M(b),d=$APP.D(c,$APP.cj),e=$APP.D(c,$APP.X),g=$APP.D(c,$APP.Hl),h=$APP.D(c,zz);a.setAttribute("role","row");var l=$APP.M(c);var m=$APP.D(l,$APP.cj);l=$APP.D(l,$APP.Hl);m=$APP.n(m)?"true":$APP.n(l)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.T.g(h)):a.removeAttribute("aria-rowindex");
5
- $APP.n(d)?a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(wz(c))?0:-1;a.__xTableRowModel=b}},Cz=function(a){var b=$APP.k(a,"__xTableRowModel");var c=$APP.n(b)?b:Az(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.cj);var g=$APP.D(e,$APP.X);e=$APP.D(e,zz);b.call(a,new d("x-table-row-click",{detail:$APP.Hh(new $APP.R(null,3,[$APP.Jj,$APP.n(e)?e:0,$APP.ok,c,
6
- $APP.Pj,g],null)),bubbles:!0,composed:!0,cancelable:!0}))},Dz=function(a){function b(d){var e=d.key;if($APP.B.i(e,"Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTableRowModel"),e=$APP.n(e)?e:Az(a),$APP.n(wz(e))&&(d.preventDefault(),Cz(a));return null}function c(){var d=$APP.k(a,"__xTableRowModel");d=$APP.n(d)?d:Az(a);$APP.n(wz(d))&&Cz(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTableRowHandlers",{click:c,keydown:b})},Ez=function(a){var b=$APP.k(a,"__xTableRowHandlers");
7
- if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},Fz=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
- set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return vz(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&
9
- b>0?this.setAttribute("row-index",""+$APP.T.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Hz=function(){var a=class extends HTMLElement{};a.observedAttributes=Gz;a.prototype.connectedCallback=function(){xz(this);Ez(this);Dz(this);Bz(this);var b=$APP.k(this,"__xTableRowModel");var c=$APP.n(b)?b:Az(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.cj);var g=$APP.D(e,$APP.X),h=$APP.D(e,$APP.Hl);e=$APP.D(e,zz);b.call(this,new d("x-table-row-connected",
10
- {detail:$APP.Hh(new $APP.R(null,4,[$APP.Jj,$APP.n(e)?e:0,$APP.ok,c,$APP.Pj,g,$APP.lj,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Ez(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Bz(this);return null};Fz(a.prototype);return a},Iz=function(){$APP.n(customElements.get("x-table-row"))||
11
- customElements.define("x-table-row",Hz());return null},zz=new $APP.K(null,"row-index","row-index",-828710296),yz=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var Gz=["selected","disabled","interactive","row-index"];$APP.Pd(["x-table-row-click",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.Jj,$APP.W,$APP.ok,$APP.Zj,$APP.Pj,$APP.Zj],null),$APP.jm,!0],null),"x-table-row-connected",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.Jj,$APP.W,$APP.ok,$APP.Zj,$APP.Pj,$APP.Zj,$APP.lj,$APP.Zj],null),$APP.jm,!1],null),"x-table-row-disconnected",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.jm,!1],null)]);$APP.ha("baredom.exports.x_table_row.init",Iz);export const init=Iz;
2
+ var xz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},yz=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Jl);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},zz=function(a){if(!$APP.n($APP.k(a,"__xTableRowRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=":host{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;box-sizing:border-box;color-scheme:light dark;--x-table-row-bg:transparent;--x-table-row-hover-bg:rgba(0,0,0,0.03);--x-table-row-selected-bg:rgba(59,130,246,0.08);--x-table-row-selected-hover-bg:rgba(59,130,246,0.12);--x-table-row-focus-ring: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);a.__xTableRowRefs=new $APP.Q(null,2,[$APP.Hi,b,$APP.Fl,d],null)}},Cz=function(a){a=new $APP.Q(null,4,[$APP.cj,a.hasAttribute("selected"),$APP.X,a.hasAttribute("disabled"),$APP.Jl,a.hasAttribute("interactive"),Az,a.getAttribute("row-index")],null);var b=$APP.M(a);a=$APP.D(b,$APP.cj);var c=$APP.D(b,$APP.X),d=$APP.D(b,$APP.Jl);b=$APP.D(b,Az);return new $APP.Q(null,4,[$APP.cj,$APP.F(a),$APP.X,$APP.F(c),$APP.Jl,$APP.F(d),Bz,xz(b)],null)},Dz=function(a){var b=Cz(a);if($APP.N($APP.k(a,
4
+ "__xTableRowModel"),b)){zz(a);var c=$APP.M(b),d=$APP.D(c,$APP.cj),e=$APP.D(c,$APP.X),g=$APP.D(c,$APP.Jl),h=$APP.D(c,Bz);a.setAttribute("role","row");var l=$APP.M(c);var m=$APP.D(l,$APP.cj);l=$APP.D(l,$APP.Jl);m=$APP.n(m)?"true":$APP.n(l)?"false":null;$APP.n(m)?a.setAttribute("aria-selected",m):a.removeAttribute("aria-selected");$APP.n(e)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");h!=null?a.setAttribute("aria-rowindex",""+$APP.T.g(h)):a.removeAttribute("aria-rowindex");
5
+ $APP.n(d)?a.setAttribute("data-selected",""):a.removeAttribute("data-selected");$APP.n(g)?a.setAttribute("data-interactive",""):a.removeAttribute("data-interactive");a.tabIndex=$APP.n(yz(c))?0:-1;a.__xTableRowModel=b}},Ez=function(a){var b=$APP.k(a,"__xTableRowModel");var c=$APP.n(b)?b:Cz(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.cj);var g=$APP.D(e,$APP.X);e=$APP.D(e,Bz);b.call(a,new d("x-table-row-click",{detail:$APP.Hh(new $APP.Q(null,3,[$APP.Jj,$APP.n(e)?e:0,$APP.ok,c,
6
+ $APP.Pj,g],null)),bubbles:!0,composed:!0,cancelable:!0}))},Fz=function(a){function b(d){var e=d.key;if($APP.B.i(e,"Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTableRowModel"),e=$APP.n(e)?e:Cz(a),$APP.n(yz(e))&&(d.preventDefault(),Ez(a));return null}function c(){var d=$APP.k(a,"__xTableRowModel");d=$APP.n(d)?d:Cz(a);$APP.n(yz(d))&&Ez(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTableRowHandlers",{click:c,keydown:b})},Gz=function(a){var b=$APP.k(a,"__xTableRowHandlers");
7
+ if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTableRowHandlers=null},Hz=function(a){Object.defineProperty(a,"selected",{get:function(){return this.hasAttribute("selected")},set:function(b){return $APP.n(b)?this.setAttribute("selected",""):this.removeAttribute("selected")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
8
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"interactive",{get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowIndex",{get:function(){return xz(this.getAttribute("row-index"))},set:function(b){b=parseInt(b,10);return $APP.r(isNaN(b))&&
9
+ b>0?this.setAttribute("row-index",""+$APP.T.g(b)):this.removeAttribute("row-index")},enumerable:!0,configurable:!0})},Jz=function(){var a=class extends HTMLElement{};a.observedAttributes=Iz;a.prototype.connectedCallback=function(){zz(this);Gz(this);Fz(this);Dz(this);var b=$APP.k(this,"__xTableRowModel");var c=$APP.n(b)?b:Cz(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.cj);var g=$APP.D(e,$APP.X),h=$APP.D(e,$APP.Jl);e=$APP.D(e,Bz);b.call(this,new d("x-table-row-connected",
10
+ {detail:$APP.Hh(new $APP.Q(null,4,[$APP.Jj,$APP.n(e)?e:0,$APP.ok,c,$APP.Pj,g,$APP.lj,h],null)),bubbles:!0,composed:!0,cancelable:!1}));return null};a.prototype.disconnectedCallback=function(){Gz(this);document.dispatchEvent(new CustomEvent("x-table-row-disconnected",{detail:{},bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Dz(this);return null};Hz(a.prototype);return a},Kz=function(){$APP.n(customElements.get("x-table-row"))||
11
+ customElements.define("x-table-row",Jz());return null},Bz=new $APP.K(null,"row-index","row-index",-828710296),Az=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var Iz=["selected","disabled","interactive","row-index"];$APP.Pd(["x-table-row-click",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Jj,$APP.W,$APP.ok,$APP.Zj,$APP.Pj,$APP.Zj],null),$APP.lm,!0],null),"x-table-row-connected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Jj,$APP.W,$APP.ok,$APP.Zj,$APP.Pj,$APP.Zj,$APP.lj,$APP.Zj],null),$APP.lm,!1],null),"x-table-row-disconnected",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.lm,!1],null)]);$APP.ha("baredom.exports.x_table_row.init",Kz);export const init=Kz;
@@ -0,0 +1,124 @@
1
+ // x-table.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTableEventMap {
6
+ "x-table-sort": CustomEvent<{ colIndex: number; direction: string; previousDirection: string }>;
7
+ "x-table-row-select": CustomEvent<{ rowIndex: number; selected: boolean; selectionMode: string }>;
8
+ }
9
+
10
+ export interface XTable extends HTMLElement {
11
+ columns: string;
12
+ caption: string;
13
+ selectable: string;
14
+ striped: boolean;
15
+ bordered: boolean;
16
+ fullWidth: boolean;
17
+ compact: boolean;
18
+ rowCount: number;
19
+
20
+ addEventListener<K extends keyof XTableEventMap>(
21
+ type: K,
22
+ listener: (this: XTable, ev: XTableEventMap[K]) => any,
23
+ options?: boolean | AddEventListenerOptions
24
+ ): void;
25
+ addEventListener(
26
+ type: string,
27
+ listener: EventListenerOrEventListenerObject,
28
+ options?: boolean | AddEventListenerOptions
29
+ ): void;
30
+ removeEventListener<K extends keyof XTableEventMap>(
31
+ type: K,
32
+ listener: (this: XTable, ev: XTableEventMap[K]) => any,
33
+ options?: boolean | EventListenerOptions
34
+ ): void;
35
+ removeEventListener(
36
+ type: string,
37
+ listener: EventListenerOrEventListenerObject,
38
+ options?: boolean | EventListenerOptions
39
+ ): void;
40
+ }
41
+
42
+ export interface XTableRowEventMap {
43
+ "x-table-row-click": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean }>;
44
+ "x-table-row-connected": CustomEvent<{ rowIndex: number; selected: boolean; disabled: boolean; interactive: boolean }>;
45
+ "x-table-row-disconnected": CustomEvent<{}>;
46
+ }
47
+
48
+ export interface XTableRow extends HTMLElement {
49
+ selected: boolean;
50
+ disabled: boolean;
51
+ interactive: boolean;
52
+ rowIndex: number;
53
+
54
+ addEventListener<K extends keyof XTableRowEventMap>(
55
+ type: K,
56
+ listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
57
+ options?: boolean | AddEventListenerOptions
58
+ ): void;
59
+ addEventListener(
60
+ type: string,
61
+ listener: EventListenerOrEventListenerObject,
62
+ options?: boolean | AddEventListenerOptions
63
+ ): void;
64
+ removeEventListener<K extends keyof XTableRowEventMap>(
65
+ type: K,
66
+ listener: (this: XTableRow, ev: XTableRowEventMap[K]) => any,
67
+ options?: boolean | EventListenerOptions
68
+ ): void;
69
+ removeEventListener(
70
+ type: string,
71
+ listener: EventListenerOrEventListenerObject,
72
+ options?: boolean | EventListenerOptions
73
+ ): void;
74
+ }
75
+
76
+
77
+ export interface XTableCellEventMap {
78
+ "x-table-cell-sort": CustomEvent<{ direction: string; previousDirection: string }>;
79
+ "x-table-cell-connected": CustomEvent<{ type: string; scope: string; colSpan: number; rowSpan: number; align: string }>;
80
+ "x-table-cell-disconnected": CustomEvent<{}>;
81
+ }
82
+
83
+ export interface XTableCell extends HTMLElement {
84
+ align: string;
85
+ rowSpan: number;
86
+ truncate: boolean;
87
+ disabled: boolean;
88
+ valign: string;
89
+ type: string;
90
+ scope: string;
91
+ colSpan: number;
92
+ sticky: string;
93
+ sortable: boolean;
94
+ sortDirection: string;
95
+
96
+ addEventListener<K extends keyof XTableCellEventMap>(
97
+ type: K,
98
+ listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
99
+ options?: boolean | AddEventListenerOptions
100
+ ): void;
101
+ addEventListener(
102
+ type: string,
103
+ listener: EventListenerOrEventListenerObject,
104
+ options?: boolean | AddEventListenerOptions
105
+ ): void;
106
+ removeEventListener<K extends keyof XTableCellEventMap>(
107
+ type: K,
108
+ listener: (this: XTableCell, ev: XTableCellEventMap[K]) => any,
109
+ options?: boolean | EventListenerOptions
110
+ ): void;
111
+ removeEventListener(
112
+ type: string,
113
+ listener: EventListenerOrEventListenerObject,
114
+ options?: boolean | EventListenerOptions
115
+ ): void;
116
+ }
117
+
118
+ declare global {
119
+ interface HTMLElementTagNameMap {
120
+ "x-table": XTable;
121
+ "x-table-row": XTableRow;
122
+ "x-table-cell": XTableCell;
123
+ }
124
+ }