@vanelsas/baredom 2.4.0 → 2.5.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 (181) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +83 -5
  3. package/custom-elements.json +7338 -0
  4. package/dist/baredom.d.ts +97 -0
  5. package/dist/base.js +53 -53
  6. package/dist/integrity.json +87 -87
  7. package/dist/x-alert.d.ts +43 -0
  8. package/dist/x-alert.js +16 -16
  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 +2 -2
  13. package/dist/x-badge.d.ts +19 -0
  14. package/dist/x-badge.js +7 -7
  15. package/dist/x-bento-grid.d.ts +12 -0
  16. package/dist/x-bento-grid.js +2 -2
  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 +4 -4
  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 +3 -3
  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 +28 -28
  31. package/dist/x-checkbox.d.ts +45 -0
  32. package/dist/x-checkbox.js +6 -6
  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 +1 -1
  37. package/dist/x-color-picker.d.ts +47 -0
  38. package/dist/x-color-picker.js +40 -40
  39. package/dist/x-combobox.d.ts +46 -0
  40. package/dist/x-combobox.js +24 -24
  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 +2 -2
  45. package/dist/x-context-menu.d.ts +17 -0
  46. package/dist/x-context-menu.js +9 -9
  47. package/dist/x-copy.d.ts +51 -0
  48. package/dist/x-copy.js +6 -6
  49. package/dist/x-currency-field.d.ts +51 -0
  50. package/dist/x-currency-field.js +9 -8
  51. package/dist/x-date-picker.d.ts +20 -0
  52. package/dist/x-date-picker.js +8 -8
  53. package/dist/x-divider.d.ts +20 -0
  54. package/dist/x-divider.js +3 -3
  55. package/dist/x-drawer.d.ts +44 -0
  56. package/dist/x-drawer.js +3 -3
  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 +2 -2
  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 +6 -6
  67. package/dist/x-form.d.ts +41 -0
  68. package/dist/x-form.js +3 -3
  69. package/dist/x-gaussian-blur.d.ts +20 -0
  70. package/dist/x-gaussian-blur.js +6 -6
  71. package/dist/x-grid.d.ts +12 -0
  72. package/dist/x-grid.js +3 -3
  73. package/dist/x-icon.d.ts +15 -0
  74. package/dist/x-icon.js +2 -2
  75. package/dist/x-image.d.ts +48 -0
  76. package/dist/x-image.js +6 -6
  77. package/dist/x-kinetic-font.d.ts +48 -0
  78. package/dist/x-kinetic-font.js +11 -11
  79. package/dist/x-kinetic-typography.d.ts +27 -0
  80. package/dist/x-kinetic-typography.js +20 -20
  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 +18 -18
  85. package/dist/x-liquid-glass.d.ts +25 -0
  86. package/dist/x-liquid-glass.js +10 -10
  87. package/dist/x-menu-item.d.ts +41 -0
  88. package/dist/x-menu.d.ts +42 -0
  89. package/dist/x-menu.js +1 -1
  90. package/dist/x-metaball-cursor.d.ts +21 -0
  91. package/dist/x-metaball-cursor.js +9 -9
  92. package/dist/x-modal.d.ts +44 -0
  93. package/dist/x-modal.js +2 -2
  94. package/dist/x-morph-stack.d.ts +46 -0
  95. package/dist/x-morph-stack.js +39 -39
  96. package/dist/x-navbar.d.ts +46 -0
  97. package/dist/x-navbar.js +3 -3
  98. package/dist/x-neural-glow.d.ts +22 -0
  99. package/dist/x-neural-glow.js +2 -2
  100. package/dist/x-notification-center.d.ts +42 -0
  101. package/dist/x-notification-center.js +10 -10
  102. package/dist/x-organic-divider.d.ts +19 -0
  103. package/dist/x-organic-progress.d.ts +45 -0
  104. package/dist/x-organic-progress.js +9 -9
  105. package/dist/x-organic-shape.d.ts +18 -0
  106. package/dist/x-pagination.d.ts +44 -0
  107. package/dist/x-pagination.js +1 -1
  108. package/dist/x-particle-button.d.ts +47 -0
  109. package/dist/x-particle-button.js +7 -7
  110. package/dist/x-popover.d.ts +45 -0
  111. package/dist/x-popover.js +23 -23
  112. package/dist/x-progress-circle.d.ts +41 -0
  113. package/dist/x-progress-circle.js +3 -3
  114. package/dist/x-progress.d.ts +44 -0
  115. package/dist/x-progress.js +3 -3
  116. package/dist/x-radio.d.ts +44 -0
  117. package/dist/x-radio.js +11 -11
  118. package/dist/x-ripple-effect.d.ts +42 -0
  119. package/dist/x-ripple-effect.js +5 -5
  120. package/dist/x-scroll-parallax.d.ts +45 -0
  121. package/dist/x-scroll-parallax.js +3 -3
  122. package/dist/x-scroll-stack.d.ts +46 -0
  123. package/dist/x-scroll-stack.js +6 -6
  124. package/dist/x-scroll-story.d.ts +56 -0
  125. package/dist/x-scroll-story.js +14 -14
  126. package/dist/x-scroll-timeline.d.ts +58 -0
  127. package/dist/x-scroll-timeline.js +43 -43
  128. package/dist/x-scroll.d.ts +51 -0
  129. package/dist/x-scroll.js +14 -14
  130. package/dist/x-search-field.d.ts +47 -0
  131. package/dist/x-search-field.js +15 -14
  132. package/dist/x-select.d.ts +40 -0
  133. package/dist/x-select.js +3 -3
  134. package/dist/x-sidebar.d.ts +40 -0
  135. package/dist/x-sidebar.js +8 -8
  136. package/dist/x-skeleton-group.d.ts +15 -0
  137. package/dist/x-skeleton-group.js +5 -5
  138. package/dist/x-skeleton.d.ts +16 -0
  139. package/dist/x-slider.d.ts +48 -0
  140. package/dist/x-slider.js +5 -5
  141. package/dist/x-soft-body.d.ts +44 -0
  142. package/dist/x-soft-body.js +5 -5
  143. package/dist/x-spacer.d.ts +15 -0
  144. package/dist/x-spacer.js +1 -1
  145. package/dist/x-spinner.d.ts +15 -0
  146. package/dist/x-splash.d.ts +42 -0
  147. package/dist/x-splash.js +3 -3
  148. package/dist/x-stat.d.ts +21 -0
  149. package/dist/x-stat.js +6 -6
  150. package/dist/x-stepper.d.ts +42 -0
  151. package/dist/x-stepper.js +14 -14
  152. package/dist/x-switch.d.ts +44 -0
  153. package/dist/x-switch.js +5 -5
  154. package/dist/x-tab.d.ts +40 -0
  155. package/dist/x-tab.js +7 -7
  156. package/dist/x-table-cell.d.ts +50 -0
  157. package/dist/x-table-cell.js +5 -5
  158. package/dist/x-table-row.d.ts +43 -0
  159. package/dist/x-table-row.js +10 -10
  160. package/dist/x-table.d.ts +124 -0
  161. package/dist/x-table.js +3 -3
  162. package/dist/x-tabs.d.ts +70 -0
  163. package/dist/x-tabs.js +2 -2
  164. package/dist/x-text-area.d.ts +47 -0
  165. package/dist/x-text-area.js +7 -7
  166. package/dist/x-theme.d.ts +15 -0
  167. package/dist/x-timeline-item.d.ts +46 -0
  168. package/dist/x-timeline-item.js +19 -19
  169. package/dist/x-timeline.d.ts +78 -0
  170. package/dist/x-timeline.js +3 -3
  171. package/dist/x-toast.d.ts +45 -0
  172. package/dist/x-toast.js +21 -21
  173. package/dist/x-toaster.d.ts +41 -0
  174. package/dist/x-toaster.js +8 -8
  175. package/dist/x-tooltip.d.ts +43 -0
  176. package/dist/x-tooltip.js +12 -12
  177. package/dist/x-typography.d.ts +16 -0
  178. package/dist/x-typography.js +1 -1
  179. package/dist/x-welcome-tour.d.ts +92 -0
  180. package/dist/x-welcome-tour.js +59 -59
  181. package/package.json +502 -392
@@ -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
+ }
@@ -4,8 +4,8 @@ var jR=function(a,b,c){a=typeof a==="string"?a.trim().toLowerCase():null;return
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
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",
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.Gl,$APP.um,$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.um),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.Gl),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",
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
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
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");
@@ -15,11 +15,11 @@ Object.defineProperty(a,"align",{get:function(){var b=this.getAttribute("align")
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
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
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);
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.um),l=$APP.D(e,$APP.Yh);
19
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
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
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)]);
22
+ $APP.zf([$APP.vj,SR,$APP.Ui,$APP.Pj,BR,$APP.Z,CR,RR,$APP.Gl,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.Hm,$APP.Y],null),$APP.km,!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
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
25
  "desc",null,"asc",null],null),null);$APP.ha("baredom.exports.x_table_cell.init",UR);export const init=UR;
@@ -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 wz=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},xz=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Il);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},yz=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.El,d],null)}},Bz=function(a){a=new $APP.R(null,4,[$APP.cj,a.hasAttribute("selected"),$APP.X,a.hasAttribute("disabled"),$APP.Il,a.hasAttribute("interactive"),zz,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.Il);b=$APP.D(b,zz);return new $APP.R(null,4,[$APP.cj,$APP.F(a),$APP.X,$APP.F(c),$APP.Il,$APP.F(d),Az,wz(b)],null)},Cz=function(a){var b=Bz(a);if($APP.N($APP.k(a,
4
+ "__xTableRowModel"),b)){yz(a);var c=$APP.M(b),d=$APP.D(c,$APP.cj),e=$APP.D(c,$APP.X),g=$APP.D(c,$APP.Il),h=$APP.D(c,Az);a.setAttribute("role","row");var l=$APP.M(c);var m=$APP.D(l,$APP.cj);l=$APP.D(l,$APP.Il);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(xz(c))?0:-1;a.__xTableRowModel=b}},Dz=function(a){var b=$APP.k(a,"__xTableRowModel");var c=$APP.n(b)?b:Bz(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,Az);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}))},Ez=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:Bz(a),$APP.n(xz(e))&&(d.preventDefault(),Dz(a));return null}function c(){var d=$APP.k(a,"__xTableRowModel");d=$APP.n(d)?d:Bz(a);$APP.n(xz(d))&&Dz(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTableRowHandlers",{click:c,keydown:b})},Fz=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},Gz=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 wz(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})},Iz=function(){var a=class extends HTMLElement{};a.observedAttributes=Hz;a.prototype.connectedCallback=function(){yz(this);Fz(this);Ez(this);Cz(this);var b=$APP.k(this,"__xTableRowModel");var c=$APP.n(b)?b:Bz(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.Il);e=$APP.D(e,Az);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(){Fz(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)&&Cz(this);return null};Gz(a.prototype);return a},Jz=function(){$APP.n(customElements.get("x-table-row"))||
11
+ customElements.define("x-table-row",Iz());return null},Az=new $APP.K(null,"row-index","row-index",-828710296),zz=new $APP.K(null,"row-index-raw","row-index-raw",1490649093);var Hz=["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.km,!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.km,!1],null),"x-table-row-disconnected",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.km,!1],null)]);$APP.ha("baredom.exports.x_table_row.init",Jz);export const init=Jz;
@@ -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
+ }
package/dist/x-table.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var $F=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},bG=function(a){var b=$APP.k(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
- d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.R(null,3,[$APP.Hi,b,aG,d,$APP.Dl,e],null);return $APP.k(a,"__xTableRefs")},nG=function(a){a=new $APP.R(null,8,[cG,a.getAttribute("columns"),dG,a.getAttribute("caption"),eG,a.getAttribute("selectable"),$APP.al,a.hasAttribute("striped"),fG,a.hasAttribute("bordered"),gG,a.hasAttribute("full-width"),hG,a.hasAttribute("compact"),iG,a.getAttribute("row-count")],null);var b=
3
+ d.setAttribute("part","caption");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTableRefs=new $APP.R(null,3,[$APP.Hi,b,aG,d,$APP.El,e],null);return $APP.k(a,"__xTableRefs")},nG=function(a){a=new $APP.R(null,8,[cG,a.getAttribute("columns"),dG,a.getAttribute("caption"),eG,a.getAttribute("selectable"),$APP.al,a.hasAttribute("striped"),fG,a.hasAttribute("bordered"),gG,a.hasAttribute("full-width"),hG,a.hasAttribute("compact"),iG,a.getAttribute("row-count")],null);var b=
4
4
  $APP.M(a),c=$APP.D(b,cG),d=$APP.D(b,dG),e=$APP.D(b,eG);a=$APP.D(b,$APP.al);var g=$APP.D(b,fG),h=$APP.D(b,gG),l=$APP.D(b,hG);b=$APP.D(b,iG);a:{if(typeof c==="string"&&(c=c.trim(),$APP.N(c,""))){var m=parseInt(c,10);c=$APP.r(isNaN(m))&&m>0&&$APP.B.i(c,""+$APP.T.g(m))?"repeat("+$APP.T.g(m)+",1fr)":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.I(jG,e)?e:"none";return new $APP.R(null,8,[$APP.Mk,c,kG,d,lG,e,$APP.al,$APP.F(a),fG,$APP.F(g),gG,$APP.F(h),hG,$APP.F(l),
5
5
  mG,$F(b)],null)},oG=function(a){a=a.querySelectorAll("x-table-row");for(var b=a.length,c=0;;)if(c<b){var d=a[c];$APP.fd(c+1,2)===0?d.setAttribute("data-stripe","even"):d.removeAttribute("data-stripe");c+=1}else break},pG=function(a){var b=nG(a);if($APP.N($APP.k(a,"__xTableModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Mk),d=$APP.D(b,kG),e=$APP.D(b,lG),g=$APP.D(b,$APP.al),h=$APP.D(b,fG),l=$APP.D(b,gG),m=$APP.D(b,hG),p=$APP.D(b,mG),q=bG(a);q=$APP.M(q);q=$APP.D(q,aG);a.style.gridTemplateColumns=$APP.n(c)?
6
6
  c:"";a.setAttribute("role",$APP.B.i(e,"none")?"table":"grid");c=$APP.B.i(e,"multi")?"true":null;$APP.n(c)?a.setAttribute("aria-multiselectable",c):a.removeAttribute("aria-multiselectable");p!=null?a.setAttribute("aria-rowcount",""+$APP.T.g(p)):a.removeAttribute("aria-rowcount");$APP.N(d,"")?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");$APP.N(d,"")?(q.textContent=d,q.removeAttribute("hidden")):(q.textContent="",q.setAttribute("hidden",""));$APP.n(g)?a.setAttribute("data-striped",
7
7
  ""):a.removeAttribute("data-striped");$APP.n(h)?a.setAttribute("data-bordered",""):a.removeAttribute("data-bordered");$APP.n(l)?a.setAttribute("data-full-width",""):a.removeAttribute("data-full-width");$APP.n(m)?a.setAttribute("data-compact",""):a.removeAttribute("data-compact");$APP.n(g)&&oG(a);a.__xTableModel=b}},sG=function(a){function b(){var e=$APP.k(a,"__xTableModel");e=$APP.n(e)?e:nG(a);$APP.n($APP.al.g(e))&&oG(a);return null}function c(e){var g=$APP.k(a,"__xTableModel");g=$APP.n(g)?g:nG(a);
8
8
  var h=lG.g(g);if($APP.N(h,"none"))if(g=e.target,e=$APP.k(e.detail,"rowIndex"),e=$APP.Hh(new $APP.R(null,3,[$APP.Jj,$APP.n(e)?e:0,$APP.ok,$APP.r(g.hasAttribute("selected")),qG,h],null)),a.dispatchEvent(new CustomEvent("x-table-row-select",{detail:e,bubbles:!0,composed:!0,cancelable:!0})),$APP.B.i(h,"single")){e=g.hasAttribute("selected");h=a.querySelectorAll("x-table-row[selected]");for(var l=h.length,m=0;;)if(m<l)h[m].removeAttribute("selected"),m+=1;else break;$APP.n(e)||g.setAttribute("selected",
9
- "")}else $APP.B.i(h,"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""));return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.k(e.detail,"direction"),l=$APP.k(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.Hh(new $APP.R(null,3,[rG,g,$APP.tj,h,$APP.Gm,l],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
9
+ "")}else $APP.B.i(h,"multi")&&($APP.n(g.hasAttribute("selected"))?g.removeAttribute("selected"):g.setAttribute("selected",""));return null}function d(e){var g=e.target;g=Array.from(g.parentElement.querySelectorAll("x-table-cell")).indexOf(g);var h=$APP.k(e.detail,"direction"),l=$APP.k(e.detail,"previousDirection");g>=0&&(e.stopPropagation(),e=$APP.Hh(new $APP.R(null,3,[rG,g,$APP.tj,h,$APP.Hm,l],null)),a.dispatchEvent(new CustomEvent("x-table-sort",{detail:e,bubbles:!0,composed:!0,cancelable:!0})));
10
10
  return null}a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);$APP.ja(a,"__xTableHandlers",{sort:d,"row-click":c,"row-conn":b})},tG=function(a){var b=$APP.k(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.k(b,"sort"),d=$APP.k(b,"row-click");b=$APP.k(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",
11
11
  b)}a.__xTableHandlers=null},uG=function(a){Object.defineProperty(a,"columns",{get:function(){var b=this.getAttribute("columns");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("columns",""+$APP.T.g(b)):this.removeAttribute("columns")},enumerable:!0,configurable:!0});Object.defineProperty(a,"caption",{get:function(){var b=this.getAttribute("caption");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("caption",""+$APP.T.g(b)):this.removeAttribute("caption")},
12
12
  enumerable:!0,configurable:!0});Object.defineProperty(a,"selectable",{get:function(){var b=this.getAttribute("selectable");return $APP.n(b)?b:"none"},set:function(b){return $APP.n(b)?this.setAttribute("selectable",""+$APP.T.g(b)):this.removeAttribute("selectable")},enumerable:!0,configurable:!0});Object.defineProperty(a,"striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0});
@@ -14,4 +14,4 @@ Object.defineProperty(a,"bordered",{get:function(){return this.hasAttribute("bor
14
14
  set:function(b){return $APP.n(b)?this.setAttribute("full-width",""):this.removeAttribute("full-width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"rowCount",{get:function(){return $F(this.getAttribute("row-count"))},set:function(b){return b==null?this.removeAttribute("row-count"):this.setAttribute("row-count",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0})},wG=function(){var a=class extends HTMLElement{};a.observedAttributes=vG;a.prototype.connectedCallback=function(){bG(this);
15
15
  tG(this);sG(this);pG(this);return null};a.prototype.disconnectedCallback=function(){tG(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&pG(this);return null};uG(a.prototype);return a},xG=function(){$APP.n(customElements.get("x-table"))||customElements.define("x-table",wG());return null},gG=new $APP.K(null,"full-width?","full-width?",1477288349),iG=new $APP.K(null,"row-count-raw","row-count-raw",-1432781274),eG=new $APP.K(null,"selectable-raw","selectable-raw",-1276314763),
16
16
  rG=new $APP.K(null,"colIndex","colIndex",171239635),mG=new $APP.K(null,"row-count","row-count",1060167988),dG=new $APP.K(null,"caption-raw","caption-raw",-375935083),qG=new $APP.K(null,"selectionMode","selectionMode",1264773367),cG=new $APP.K(null,"columns-raw","columns-raw",-2093994046),lG=new $APP.K(null,"selectable","selectable",370587038),kG=new $APP.K(null,"caption","caption",-855383902),fG=new $APP.K(null,"bordered?","bordered?",562358476),aG=new $APP.K(null,"caption-div","caption-div",1485363333),
17
- hG=new $APP.K(null,"compact?","compact?",1216893298);var vG="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.Pd(["x-table-sort",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[rG,$APP.W,$APP.tj,$APP.Y,$APP.Gm,$APP.Y],null),$APP.jm,!0],null),"x-table-row-select",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.Jj,$APP.W,$APP.ok,$APP.Zj,qG,$APP.Y],null),$APP.jm,!0],null)]);var jG=new $APP.S(null,new $APP.R(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ha("baredom.exports.x_table.init",xG);export const init=xG;
17
+ hG=new $APP.K(null,"compact?","compact?",1216893298);var vG="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.Pd(["x-table-sort",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[rG,$APP.W,$APP.tj,$APP.Y,$APP.Hm,$APP.Y],null),$APP.km,!0],null),"x-table-row-select",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.Jj,$APP.W,$APP.ok,$APP.Zj,qG,$APP.Y],null),$APP.km,!0],null)]);var jG=new $APP.S(null,new $APP.R(null,3,["none",null,"single",null,"multi",null],null),null);$APP.ha("baredom.exports.x_table.init",xG);export const init=xG;
@@ -0,0 +1,70 @@
1
+ // x-tabs.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTabsEventMap {
6
+ "value-change": CustomEvent<{ value: string }>;
7
+ }
8
+
9
+ export interface XTabs extends HTMLElement {
10
+ value: string;
11
+
12
+ addEventListener<K extends keyof XTabsEventMap>(
13
+ type: K,
14
+ listener: (this: XTabs, ev: XTabsEventMap[K]) => any,
15
+ options?: boolean | AddEventListenerOptions
16
+ ): void;
17
+ addEventListener(
18
+ type: string,
19
+ listener: EventListenerOrEventListenerObject,
20
+ options?: boolean | AddEventListenerOptions
21
+ ): void;
22
+ removeEventListener<K extends keyof XTabsEventMap>(
23
+ type: K,
24
+ listener: (this: XTabs, ev: XTabsEventMap[K]) => any,
25
+ options?: boolean | EventListenerOptions
26
+ ): void;
27
+ removeEventListener(
28
+ type: string,
29
+ listener: EventListenerOrEventListenerObject,
30
+ options?: boolean | EventListenerOptions
31
+ ): void;
32
+ }
33
+
34
+ export interface XTabEventMap {
35
+ "tab-select": CustomEvent<{ value: string }>;
36
+ }
37
+
38
+ export interface XTab extends HTMLElement {
39
+ selected: boolean;
40
+ disabled: boolean;
41
+ value: string;
42
+
43
+ addEventListener<K extends keyof XTabEventMap>(
44
+ type: K,
45
+ listener: (this: XTab, ev: XTabEventMap[K]) => any,
46
+ options?: boolean | AddEventListenerOptions
47
+ ): void;
48
+ addEventListener(
49
+ type: string,
50
+ listener: EventListenerOrEventListenerObject,
51
+ options?: boolean | AddEventListenerOptions
52
+ ): void;
53
+ removeEventListener<K extends keyof XTabEventMap>(
54
+ type: K,
55
+ listener: (this: XTab, ev: XTabEventMap[K]) => any,
56
+ options?: boolean | EventListenerOptions
57
+ ): void;
58
+ removeEventListener(
59
+ type: string,
60
+ listener: EventListenerOrEventListenerObject,
61
+ options?: boolean | EventListenerOptions
62
+ ): void;
63
+ }
64
+
65
+ declare global {
66
+ interface HTMLElementTagNameMap {
67
+ "x-tabs": XTabs;
68
+ "x-tab": XTab;
69
+ }
70
+ }
package/dist/x-tabs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var pJ=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Yi);var c=$APP.D(b,$APP.pl),d=$APP.D(b,mJ),e=$APP.D(b,$APP.U);b=$APP.D(b,$APP.Hm);c=$APP.I(nJ,c)?c:"horizontal";d=$APP.I(oJ,d)?d:"auto";return new $APP.R(null,5,[$APP.Yi,a,$APP.pl,c,mJ,d,$APP.U,e,$APP.Hm,$APP.F(b)],null)},qJ=function(a){return new $APP.R(null,5,[$APP.Yi,a.getAttribute("value"),$APP.pl,a.getAttribute("orientation"),mJ,a.getAttribute("activation"),$APP.U,a.getAttribute("label"),$APP.Hm,a.hasAttribute("loop")],null)},rJ=function(a){return $APP.xe($APP.de(function(b){return $APP.B.i("X-TAB",
2
+ var pJ=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Yi);var c=$APP.D(b,$APP.ql),d=$APP.D(b,mJ),e=$APP.D(b,$APP.U);b=$APP.D(b,$APP.Im);c=$APP.I(nJ,c)?c:"horizontal";d=$APP.I(oJ,d)?d:"auto";return new $APP.R(null,5,[$APP.Yi,a,$APP.ql,c,mJ,d,$APP.U,e,$APP.Im,$APP.F(b)],null)},qJ=function(a){return new $APP.R(null,5,[$APP.Yi,a.getAttribute("value"),$APP.ql,a.getAttribute("orientation"),mJ,a.getAttribute("activation"),$APP.U,a.getAttribute("label"),$APP.Im,a.hasAttribute("loop")],null)},rJ=function(a){return $APP.xe($APP.de(function(b){return $APP.B.i("X-TAB",
3
3
  b.tagName)},$APP.uc(a.children)))},sJ=function(a){return $APP.r(a.hasAttribute("disabled"))},tJ=function(a){return a.getAttribute("value")},uJ=function(a){return $APP.Td(function(b){return sJ(b)?b:null},a)},vJ=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.N(c,b):b)?a.setAttribute("value",b):(b=b==null||$APP.B.i(b,""),$APP.n(b?c:b)&&a.removeAttribute("value"))},wJ=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.r(c):b)?a.setAttribute("selected",""):(b=$APP.r(b),
4
4
  $APP.n(b?c:b)&&a.removeAttribute("selected"))},xJ=function(a,b){var c=a.getAttribute("tabindex");$APP.N(c,b)&&a.setAttribute("tabindex",b)},yJ=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.N(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?a.removeAttribute("hidden"):a.setAttribute("hidden","")))},zJ=function(a){var b=rJ(a),c=a.getAttribute("value"),d=$APP.Xf($APP.Yd(tJ,b));$APP.n($APP.n(c)?$APP.I(d,c):c)||(c=uJ(b),c=$APP.n(c)?tJ(c):null);if($APP.n(c)){a:{d=$APP.t(b);
5
5
  for(var e=null,g=0,h=0;;)if(h<g){var l=e.F(null,h),m=$APP.B.i(tJ(l),c);wJ(l,m);m&&sJ(l)?xJ(l,"0"):xJ(l,"-1");h+=1}else if(d=$APP.t(d))$APP.Nc(d)?(e=$APP.yb(d),d=$APP.zb(d),l=e,g=$APP.z(e),e=l):(l=$APP.u(d),e=$APP.B.i(tJ(l),c),wJ(l,e),e&&sJ(l)?xJ(l,"0"):xJ(l,"-1"),d=$APP.w(d),e=null,g=0),h=0;else break a}a:for(b=$APP.t(b),d=null,g=e=0;;)if(g<e)l=d.F(null,g),yJ(l,$APP.B.i(tJ(l),c)),g+=1;else if(b=$APP.t(b))d=b,$APP.Nc(d)?(b=$APP.yb(d),e=$APP.zb(d),d=b,l=$APP.z(b),b=e,e=l):(l=$APP.u(d),yJ(l,$APP.B.i(tJ(l),
6
6
  c)),b=$APP.w(d),d=null,e=0),g=0;else break a;vJ(a,c)}return c},AJ=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.N(c,b):b)?(vJ(a,b),zJ(a),a.dispatchEvent(new CustomEvent("value-change",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))):null},BJ=function(a,b,c){b=$APP.z(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},CJ=function(a,b,c){var d=a-1;b=$APP.z(b)-1;return d>=0?d:$APP.n(c)?b:a},DJ=function(a){var b=$APP.k(a,"__x_tabs_base"),c=pJ(qJ(a));$APP.n(b)&&(b.setAttribute("role",
7
- "tablist"),b.setAttribute("aria-orientation",$APP.pl.g(c)),c=$APP.U.g(c),$APP.n($APP.n(c)?$APP.N(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return zJ(a)},EJ=function(a){var b=new MutationObserver(function(){return DJ(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},FJ=function(a){function b(d){a:{var e=$APP.xe($APP.de(sJ,rJ(a))),g=pJ(qJ(a)),h=$APP.pl.g(g);var l=mJ.g(g);g=$APP.Hm.g(g);
7
+ "tablist"),b.setAttribute("aria-orientation",$APP.ql.g(c)),c=$APP.U.g(c),$APP.n($APP.n(c)?$APP.N(c,""):c)?b.setAttribute("aria-label",c):b.removeAttribute("aria-label"));return zJ(a)},EJ=function(a){var b=new MutationObserver(function(){return DJ(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});a.__x_tabs_observer=b},FJ=function(a){function b(d){a:{var e=$APP.xe($APP.de(sJ,rJ(a))),g=pJ(qJ(a)),h=$APP.ql.g(g);var l=mJ.g(g);g=$APP.Im.g(g);
8
8
  var m=d.key,p=e.indexOf(document.activeElement);if(p>=0&&(h=$APP.B.i(h,"horizontal")&&$APP.B.i(m,"ArrowRight")?BJ(p,e,g):$APP.B.i(h,"horizontal")&&$APP.B.i(m,"ArrowLeft")?CJ(p,e,g):$APP.B.i(h,"vertical")&&$APP.B.i(m,"ArrowDown")?BJ(p,e,g):$APP.B.i(h,"vertical")&&$APP.B.i(m,"ArrowUp")?CJ(p,e,g):$APP.B.i(m,"Home")?0:$APP.B.i(m,"End")?$APP.z(e)-1:null,h!=null)){d.preventDefault();d=$APP.Ac(e,h,null);$APP.n(d)?d.focus():d=null;l=$APP.n(d)?$APP.B.i(l,"auto")?AJ(a,tJ(d)):null:null;break a}l=null}return l}
9
9
  function c(d){d.stopPropagation();return AJ(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);a.__x_tabs_on_tab_select=c;a.__x_tabs_on_keydown=b;EJ(a)},GJ=function(a){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})},IJ=function(){var a=class extends HTMLElement{};a.observedAttributes=HJ;a.prototype.connectedCallback=
10
10
  function(){if($APP.Dg(this,"__x_tabs_initialized")){FJ(this);var b=DJ(this)}else{if(!$APP.Dg(this,"__x_tabs_initialized")){b=this.attachShadow({mode:"open"});var 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);}";
@@ -0,0 +1,47 @@
1
+ // x-text-area.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTextAreaEventMap {
6
+ "x-text-area-input": CustomEvent<{ name: string; value: string }>;
7
+ "x-text-area-change": CustomEvent<{ name: string; value: string }>;
8
+ }
9
+
10
+ export interface XTextArea extends HTMLElement {
11
+ disabled: boolean;
12
+ name: string;
13
+ value: string;
14
+ minLength: number;
15
+ rows: number;
16
+ readOnly: boolean;
17
+ maxLength: number;
18
+ autocomplete: string;
19
+ required: boolean;
20
+
21
+ addEventListener<K extends keyof XTextAreaEventMap>(
22
+ type: K,
23
+ listener: (this: XTextArea, ev: XTextAreaEventMap[K]) => any,
24
+ options?: boolean | AddEventListenerOptions
25
+ ): void;
26
+ addEventListener(
27
+ type: string,
28
+ listener: EventListenerOrEventListenerObject,
29
+ options?: boolean | AddEventListenerOptions
30
+ ): void;
31
+ removeEventListener<K extends keyof XTextAreaEventMap>(
32
+ type: K,
33
+ listener: (this: XTextArea, ev: XTextAreaEventMap[K]) => any,
34
+ options?: boolean | EventListenerOptions
35
+ ): void;
36
+ removeEventListener(
37
+ type: string,
38
+ listener: EventListenerOrEventListenerObject,
39
+ options?: boolean | EventListenerOptions
40
+ ): void;
41
+ }
42
+
43
+ declare global {
44
+ interface HTMLElementTagNameMap {
45
+ "x-text-area": XTextArea;
46
+ }
47
+ }
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var m3=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:null):null},n3=function(a,b,c){return a.setAttribute(b,c)},o3=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},p3=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},y3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([q3,$APP.pi,$APP.yl,$APP.Ji,$APP.$i,r3,$APP.Ml,s3,$APP.Nh,$APP.Lj,$APP.Cm,$APP.oi,t3,$APP.Pi],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
- a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,t3),m=$APP.D(h,$APP.Pi),p=$APP.D(h,q3),q=$APP.D(h,$APP.pi),v=$APP.D(h,$APP.yl),x=$APP.D(h,$APP.Ji),y=$APP.D(h,$APP.$i),A=$APP.D(h,r3);g=$APP.D(h,$APP.Ml);var C=$APP.D(h,s3),E=$APP.D(h,$APP.Nh),H=$APP.D(h,$APP.Lj),G=$APP.D(h,$APP.Cm);h=$APP.D(h,$APP.oi);var J=$APP.n(x)?x:"",Q=$APP.n(y)?y:"",aa=$APP.n(q)?q:"";E=$APP.F(E);H=$APP.F(H);
5
- m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.N(y,"")&&y!=null;v=$APP.n(v)?v:"";G=$APP.n(G)?G:"";l=m3(l);q=typeof q==="string"&&$APP.N(q,"")&&q!=null;x=typeof x==="string"&&$APP.N(x,"")&&x!=null;p=typeof p==="string"&&$APP.I(u3,p)?p:"vertical";A=m3(A);g=$APP.zf([$APP.mi,$APP.bn,$APP.qm,$APP.ui,$APP.Aj,$APP.Yi,v3,$APP.Bl,$APP.$k,w3,$APP.Xl,x3,$APP.pj,$APP.U,$APP.Ei,$APP.Zl,$APP.X],[E,H,m,y,v,G,l,q,x,p,Q,m3(C),$APP.n(A)?A:3,aa,J,$APP.n(h)?h:"",$APP.F(g)]);C=$APP.$k.g(g);A=$APP.ui.g(g);h=$APP.Bl.g(g);
6
- c.name=$APP.Aj.g(g);c.placeholder=$APP.qm.g(g);c.disabled=$APP.X.g(g);c.readOnly=$APP.bn.g(g);c.required=$APP.mi.g(g);c.rows=$APP.pj.g(g);c.autocomplete=$APP.Zl.g(g);J=x3.g(g);$APP.n(J)?n3(c,"maxlength",""+$APP.T.g(J)):c.removeAttribute("maxlength");J=v3.g(g);$APP.n(J)?n3(c,"minlength",""+$APP.T.g(J)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",w3.g(g));n3(c,"aria-required",$APP.n($APP.mi.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");J=
7
- $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(J)?c.setAttribute("aria-describedby",J):c.removeAttribute("aria-describedby");d.textContent=$APP.U.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.Xl.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Ei.g(g);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");o3(a,"data-invalid",C);d=$APP.k(a,
3
+ c):b.setValidity({},"",c)},y3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([q3,$APP.pi,$APP.zl,$APP.Ji,$APP.$i,r3,$APP.Nl,s3,$APP.Nh,$APP.Lj,$APP.Dm,$APP.oi,t3,$APP.Pi],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,t3),m=$APP.D(h,$APP.Pi),p=$APP.D(h,q3),q=$APP.D(h,$APP.pi),v=$APP.D(h,$APP.zl),x=$APP.D(h,$APP.Ji),y=$APP.D(h,$APP.$i),A=$APP.D(h,r3);g=$APP.D(h,$APP.Nl);var C=$APP.D(h,s3),E=$APP.D(h,$APP.Nh),H=$APP.D(h,$APP.Lj),G=$APP.D(h,$APP.Dm);h=$APP.D(h,$APP.oi);var J=$APP.n(x)?x:"",Q=$APP.n(y)?y:"",aa=$APP.n(q)?q:"";E=$APP.F(E);H=$APP.F(H);
5
+ m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.N(y,"")&&y!=null;v=$APP.n(v)?v:"";G=$APP.n(G)?G:"";l=m3(l);q=typeof q==="string"&&$APP.N(q,"")&&q!=null;x=typeof x==="string"&&$APP.N(x,"")&&x!=null;p=typeof p==="string"&&$APP.I(u3,p)?p:"vertical";A=m3(A);g=$APP.zf([$APP.mi,$APP.cn,$APP.rm,$APP.ui,$APP.Aj,$APP.Yi,v3,$APP.Cl,$APP.$k,w3,$APP.Yl,x3,$APP.pj,$APP.U,$APP.Ei,$APP.$l,$APP.X],[E,H,m,y,v,G,l,q,x,p,Q,m3(C),$APP.n(A)?A:3,aa,J,$APP.n(h)?h:"",$APP.F(g)]);C=$APP.$k.g(g);A=$APP.ui.g(g);h=$APP.Cl.g(g);
6
+ c.name=$APP.Aj.g(g);c.placeholder=$APP.rm.g(g);c.disabled=$APP.X.g(g);c.readOnly=$APP.cn.g(g);c.required=$APP.mi.g(g);c.rows=$APP.pj.g(g);c.autocomplete=$APP.$l.g(g);J=x3.g(g);$APP.n(J)?n3(c,"maxlength",""+$APP.T.g(J)):c.removeAttribute("maxlength");J=v3.g(g);$APP.n(J)?n3(c,"minlength",""+$APP.T.g(J)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",w3.g(g));n3(c,"aria-required",$APP.n($APP.mi.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");J=
7
+ $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(J)?c.setAttribute("aria-describedby",J):c.removeAttribute("aria-describedby");d.textContent=$APP.U.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.Yl.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Ei.g(g);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");o3(a,"data-invalid",C);d=$APP.k(a,
8
8
  "__xTextAreaInternals");return $APP.n(d)?p3(a,d,c):null}return null},z3=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},A3=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),p3(a,e,b));return z3(a,"x-text-area-input",{name:d,value:c})}return null}},B3=function(a){return function(){var b=
9
9
  $APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),p3(a,e,b));return z3(a,"x-text-area-change",{name:d,value:c})}return null}},C3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.k(b,"textarea");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));
10
10
  a.__xTextAreaHandlers=null;return}}return null},D3=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?n3(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},E3=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return o3(this,c,$APP.F(d))}})},F3=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
@@ -16,5 +16,5 @@ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChil
16
16
  $APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=A3(this),e=B3(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return y3(this)};b.disconnectedCallback=function(){return C3(this)};b.attributeChangedCallback=function(c,d,e){$APP.B.i(c,"value")&&(c=$APP.k(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.k(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return y3(this)};b.formDisabledCallback=function(c){o3(this,
17
17
  "disabled",$APP.F(c));return y3(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&($APP.k(c,"textarea").value="");c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return y3(this)};return a},J3=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",I3())},v3=new $APP.K(null,"minlength","minlength",259053545),t3=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
18
  s3=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),x3=new $APP.K(null,"maxlength","maxlength",-1163911985),q3=new $APP.K(null,"resize-raw","resize-raw",-287517888),r3=new $APP.K(null,"rows-raw","rows-raw",-1828357145),w3=new $APP.K(null,"resize","resize",297367086);var H3="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),u3=new $APP.S(null,new $APP.R(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
- $APP.zf([$APP.Pj,$APP.Aj,$APP.Yi,new $APP.K(null,"minLength","minLength",-1538722770),$APP.pj,$APP.lm,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.Zl,$APP.Dk],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"minlength"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"rows"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,
20
- "readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"maxlength"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"required"],null)]);$APP.ha("baredom.exports.x_text_area.init",J3);export const init=J3;
19
+ $APP.zf([$APP.Pj,$APP.Aj,$APP.Yi,new $APP.K(null,"minLength","minLength",-1538722770),$APP.pj,$APP.mm,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.$l,$APP.Dk],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"minlength"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"rows"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,
20
+ "readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"maxlength"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"required"],null)]);$APP.Pd(["x-text-area-input",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null),"x-text-area-change",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_text_area.init",J3);export const init=J3;
@@ -0,0 +1,15 @@
1
+ // x-theme.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export function registerPreset(presetName: string, data: Record<string, string>): void;
6
+
7
+ export interface XTheme extends HTMLElement {
8
+ preset: string;
9
+ }
10
+
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ "x-theme": XTheme;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ // x-timeline-item.d.ts — auto-generated by generate_types.bb, do not edit
2
+
3
+ export function init(): void;
4
+
5
+ export interface XTimelineItemEventMap {
6
+ "x-timeline-item-connected": CustomEvent<{ status: string; label: string; position: string; disabled: boolean }>;
7
+ "x-timeline-item-disconnected": CustomEvent<{ status: string; label: string }>;
8
+ "x-timeline-item-click": CustomEvent<{ status: string; label: string }>;
9
+ }
10
+
11
+ export interface XTimelineItem extends HTMLElement {
12
+ label: string;
13
+ title: string;
14
+ status: string;
15
+ icon: string;
16
+ connector: string;
17
+ position: string;
18
+ disabled: boolean;
19
+
20
+ addEventListener<K extends keyof XTimelineItemEventMap>(
21
+ type: K,
22
+ listener: (this: XTimelineItem, ev: XTimelineItemEventMap[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 XTimelineItemEventMap>(
31
+ type: K,
32
+ listener: (this: XTimelineItem, ev: XTimelineItemEventMap[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
+ declare global {
43
+ interface HTMLElementTagNameMap {
44
+ "x-timeline-item": XTimelineItem;
45
+ }
46
+ }