@frontile/collections 0.17.0-beta.25 → 0.17.0-beta.26

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 (180) hide show
  1. package/declarations/components/simple-table/body.d.ts +428 -0
  2. package/declarations/components/simple-table/cell.d.ts +427 -0
  3. package/declarations/components/simple-table/column.d.ts +419 -0
  4. package/declarations/components/simple-table/footer.d.ts +430 -0
  5. package/declarations/components/simple-table/header.d.ts +430 -0
  6. package/declarations/components/simple-table/index.d.ts +446 -0
  7. package/declarations/components/simple-table/row.d.ts +430 -0
  8. package/declarations/components/simple-table/simple-table-body.d.ts +238 -0
  9. package/declarations/components/simple-table/simple-table-cell.d.ts +231 -0
  10. package/declarations/components/simple-table/simple-table-column.d.ts +225 -0
  11. package/declarations/components/simple-table/simple-table-footer.d.ts +237 -0
  12. package/declarations/components/simple-table/simple-table-header.d.ts +237 -0
  13. package/declarations/components/simple-table/simple-table-row.d.ts +236 -0
  14. package/declarations/components/simple-table/simple-table.d.ts +249 -0
  15. package/declarations/components/table/cell-default.d.ts +43 -0
  16. package/declarations/components/table/cell-for.d.ts +38 -0
  17. package/declarations/components/table/cell-rendering-context.d.ts +24 -0
  18. package/declarations/components/table/checkbox.d.ts +50 -0
  19. package/declarations/components/table/column-visibility.d.ts +416 -0
  20. package/declarations/components/table/icons.d.ts +11 -0
  21. package/declarations/components/table/index.d.ts +2 -7
  22. package/declarations/components/table/sort-button.d.ts +413 -0
  23. package/declarations/components/table/table-body.d.ts +10 -7
  24. package/declarations/components/table/table-cell.d.ts +4 -4
  25. package/declarations/components/table/table-column.d.ts +20 -3
  26. package/declarations/components/table/table-footer.d.ts +3 -3
  27. package/declarations/components/table/table-header.d.ts +5 -3
  28. package/declarations/components/table/table-row.d.ts +20 -6
  29. package/declarations/components/table/table.d.ts +335 -111
  30. package/declarations/components/table/typed-cell-for.d.ts +34 -0
  31. package/declarations/components/table/types.d.ts +38 -7
  32. package/declarations/components/table/utils.d.ts +4 -8
  33. package/declarations/components/table-legacy/index.d.ts +9 -0
  34. package/declarations/components/table-legacy/table-body.d.ts +374 -0
  35. package/declarations/components/table-legacy/table-cell.d.ts +364 -0
  36. package/declarations/components/table-legacy/table-column.d.ts +357 -0
  37. package/declarations/components/table-legacy/table-footer.d.ts +365 -0
  38. package/declarations/components/table-legacy/table-header.d.ts +364 -0
  39. package/declarations/components/table-legacy/table-row.d.ts +373 -0
  40. package/declarations/components/table-legacy/table.d.ts +437 -0
  41. package/declarations/components/table-legacy/types.d.ts +20 -0
  42. package/declarations/components/table-legacy/utils.d.ts +16 -0
  43. package/declarations/index.d.ts +1 -0
  44. package/declarations/template-registry.d.ts +3 -1
  45. package/declarations/utils/tableManager.d.ts +25 -0
  46. package/declarations/utils/typed-table.d.ts +32 -0
  47. package/dist/_app_/components/table.js +1 -0
  48. package/dist/components/dropdown.js +1 -1
  49. package/dist/components/listbox.js +1 -1
  50. package/dist/components/table.js +2 -0
  51. package/dist/components/table.js.map +1 -0
  52. package/dist/index-OHRSSSqD.js +528 -0
  53. package/dist/index-OHRSSSqD.js.map +1 -0
  54. package/dist/index.js +2 -1
  55. package/dist/index.js.map +1 -1
  56. package/dist/{listManager-D4_vozfz.js → listManager-CKsOd2zS.js} +2 -2
  57. package/dist/{listManager-D4_vozfz.js.map → listManager-CKsOd2zS.js.map} +1 -1
  58. package/dist/listManager-Dth1-3Si.js +439 -0
  59. package/dist/listManager-Dth1-3Si.js.map +1 -0
  60. package/dist/listbox-BHb3ozlg.js +204 -0
  61. package/dist/listbox-BHb3ozlg.js.map +1 -0
  62. package/dist/listbox-CkGwpiDp.js +203 -0
  63. package/dist/listbox-CkGwpiDp.js.map +1 -0
  64. package/dist/listbox-ClqgWnnA.js +204 -0
  65. package/dist/listbox-ClqgWnnA.js.map +1 -0
  66. package/dist/listbox-rcGFjxs0.js +112 -47
  67. package/dist/listbox-y30VBGX-.js +204 -0
  68. package/dist/listbox-y30VBGX-.js.map +1 -0
  69. package/dist/simple-table-B7dwVNtZ.js +528 -0
  70. package/dist/simple-table-B7dwVNtZ.js.map +1 -0
  71. package/dist/simple-table-OHRSSSqD.js +528 -0
  72. package/dist/simple-table-OHRSSSqD.js.map +1 -0
  73. package/dist/table-B2HDNKJZ.js +406 -0
  74. package/dist/table-B2HDNKJZ.js.map +1 -0
  75. package/dist/table-BDc4IZIE.js +878 -0
  76. package/dist/table-BDc4IZIE.js.map +1 -0
  77. package/dist/table-BFkVEZvb.js +392 -0
  78. package/dist/table-BFkVEZvb.js.map +1 -0
  79. package/dist/table-BqvHQi0L.js +878 -0
  80. package/dist/table-BqvHQi0L.js.map +1 -0
  81. package/dist/table-C7ch3NLp.js +395 -0
  82. package/dist/table-C7ch3NLp.js.map +1 -0
  83. package/dist/table-CLHR4-J5.js +395 -0
  84. package/dist/table-CLHR4-J5.js.map +1 -0
  85. package/dist/table-COm7aEZ1.js +341 -0
  86. package/dist/table-COm7aEZ1.js.map +1 -0
  87. package/dist/table-CSzsuwXt.js +394 -0
  88. package/dist/table-CSzsuwXt.js.map +1 -0
  89. package/dist/table-CVCiVPCB.js +878 -0
  90. package/dist/table-CVCiVPCB.js.map +1 -0
  91. package/dist/table-CcYV8m90.js +341 -0
  92. package/dist/table-CcYV8m90.js.map +1 -0
  93. package/dist/table-DEK1U06v.js +632 -0
  94. package/dist/table-DEK1U06v.js.map +1 -0
  95. package/dist/table-DGQbKRn3.js +395 -0
  96. package/dist/table-DGQbKRn3.js.map +1 -0
  97. package/dist/table-DnQQJItF.js +632 -0
  98. package/dist/table-DnQQJItF.js.map +1 -0
  99. package/dist/table-DrBJt7Eh.js +395 -0
  100. package/dist/table-DrBJt7Eh.js.map +1 -0
  101. package/dist/table-SVR6fEqh.js +877 -0
  102. package/dist/table-SVR6fEqh.js.map +1 -0
  103. package/dist/table-XUYqiKyi.js +394 -0
  104. package/dist/table-XUYqiKyi.js.map +1 -0
  105. package/dist/table-footer-DTLYf3Ac.js +553 -0
  106. package/dist/table-footer-DTLYf3Ac.js.map +1 -0
  107. package/dist/types-B-8cgOds.js +524 -0
  108. package/dist/types-B-8cgOds.js.map +1 -0
  109. package/dist/types-CJuwIIDs.js +524 -0
  110. package/dist/types-CJuwIIDs.js.map +1 -0
  111. package/dist/types-CuXFudgJ.js +526 -0
  112. package/dist/types-CuXFudgJ.js.map +1 -0
  113. package/dist/types-DkKoxFKn.js +524 -0
  114. package/dist/types-DkKoxFKn.js.map +1 -0
  115. package/dist/utils/listManager.js +1 -1
  116. package/package.json +9 -7
  117. package/dist/table-92ff_YNO.js +0 -277
  118. package/dist/table-92ff_YNO.js.map +0 -1
  119. package/dist/table-9AY4L0Gb.js +0 -197
  120. package/dist/table-9AY4L0Gb.js.map +0 -1
  121. package/dist/table-9lHVhRR5.js +0 -241
  122. package/dist/table-9lHVhRR5.js.map +0 -1
  123. package/dist/table-BIkLOscH.js +0 -269
  124. package/dist/table-BIkLOscH.js.map +0 -1
  125. package/dist/table-BPp_OXkX.js +0 -206
  126. package/dist/table-BPp_OXkX.js.map +0 -1
  127. package/dist/table-BQBLUGgl.js +0 -208
  128. package/dist/table-BQBLUGgl.js.map +0 -1
  129. package/dist/table-BUboQojw.js +0 -267
  130. package/dist/table-BUboQojw.js.map +0 -1
  131. package/dist/table-BUrvD0CN.js +0 -324
  132. package/dist/table-BUrvD0CN.js.map +0 -1
  133. package/dist/table-B_z4aWPh.js +0 -276
  134. package/dist/table-B_z4aWPh.js.map +0 -1
  135. package/dist/table-Bi_i2GOl.js +0 -279
  136. package/dist/table-Bi_i2GOl.js.map +0 -1
  137. package/dist/table-BkWhyzMo.js +0 -214
  138. package/dist/table-BkWhyzMo.js.map +0 -1
  139. package/dist/table-Bp_EqrlK.js +0 -309
  140. package/dist/table-Bp_EqrlK.js.map +0 -1
  141. package/dist/table-Bq1HGB9C.js +0 -240
  142. package/dist/table-Bq1HGB9C.js.map +0 -1
  143. package/dist/table-C-_mQMW_.js +0 -141
  144. package/dist/table-C-_mQMW_.js.map +0 -1
  145. package/dist/table-CaBDs-LD.js +0 -269
  146. package/dist/table-CaBDs-LD.js.map +0 -1
  147. package/dist/table-CcbmieDl.js +0 -329
  148. package/dist/table-CcbmieDl.js.map +0 -1
  149. package/dist/table-CdLut7xT.js +0 -172
  150. package/dist/table-CdLut7xT.js.map +0 -1
  151. package/dist/table-Cs_Xm3-T.js +0 -144
  152. package/dist/table-Cs_Xm3-T.js.map +0 -1
  153. package/dist/table-CwxlKxz0.js +0 -185
  154. package/dist/table-CwxlKxz0.js.map +0 -1
  155. package/dist/table-D1jyvvdd.js +0 -242
  156. package/dist/table-D1jyvvdd.js.map +0 -1
  157. package/dist/table-D7QCvl0_.js +0 -269
  158. package/dist/table-D7QCvl0_.js.map +0 -1
  159. package/dist/table-DApb61os.js +0 -185
  160. package/dist/table-DApb61os.js.map +0 -1
  161. package/dist/table-DFIwJpJO.js +0 -144
  162. package/dist/table-DFIwJpJO.js.map +0 -1
  163. package/dist/table-DIZvtyjH.js +0 -185
  164. package/dist/table-DIZvtyjH.js.map +0 -1
  165. package/dist/table-DYOLmjfk.js +0 -325
  166. package/dist/table-DYOLmjfk.js.map +0 -1
  167. package/dist/table-Da60U9eH.js +0 -269
  168. package/dist/table-Da60U9eH.js.map +0 -1
  169. package/dist/table-Dcyk7CLS.js +0 -144
  170. package/dist/table-Dcyk7CLS.js.map +0 -1
  171. package/dist/table-DzNT9tDs.js +0 -280
  172. package/dist/table-DzNT9tDs.js.map +0 -1
  173. package/dist/table-EDCy6SCT.js +0 -214
  174. package/dist/table-EDCy6SCT.js.map +0 -1
  175. package/dist/table-GRGxN-x5.js +0 -309
  176. package/dist/table-GRGxN-x5.js.map +0 -1
  177. package/dist/table-Lk0tmBng.js +0 -309
  178. package/dist/table-Lk0tmBng.js.map +0 -1
  179. package/dist/table-k5i2kvUD.js +0 -324
  180. package/dist/table-k5i2kvUD.js.map +0 -1
@@ -0,0 +1,249 @@
1
+ import Component from '@glimmer/component';
2
+ import { SimpleTableHeader } from './header';
3
+ import { SimpleTableBody } from './body';
4
+ import { SimpleTableFooter } from './footer';
5
+ import { SimpleTableColumn } from './column';
6
+ import { SimpleTableRow } from './row';
7
+ import { SimpleTableCell } from './cell';
8
+ import type { TableVariants, TableSlots, SlotsToClasses } from '../table/types';
9
+ import type { WithBoundArgs } from '@glint/template';
10
+ interface SimpleTableSignature {
11
+ Args: {
12
+ /** Custom CSS classes for different table elements (wrapper, table, th, td, etc.) */
13
+ classes?: SlotsToClasses<TableSlots>;
14
+ /** Size variant for table cells and headers. @defaultValue 'md' */
15
+ size?: TableVariants['size'];
16
+ /** Table layout algorithm - 'auto' sizes columns by content, 'fixed' uses first row for sizing. @defaultValue 'auto' */
17
+ layout?: TableVariants['layout'];
18
+ /** Enable striped rows (alternating background colors) */
19
+ isStriped?: TableVariants['striped'];
20
+ };
21
+ Element: HTMLTableElement;
22
+ Blocks: {
23
+ default: [
24
+ {
25
+ Header: WithBoundArgs<typeof SimpleTableHeader, 'styleFns' | 'classes'>;
26
+ Body: WithBoundArgs<typeof SimpleTableBody, 'styleFns' | 'classes'>;
27
+ Footer: WithBoundArgs<typeof SimpleTableFooter, 'styleFns' | 'classes'>;
28
+ Column: WithBoundArgs<typeof SimpleTableColumn, 'styleFns'>;
29
+ Row: WithBoundArgs<typeof SimpleTableRow, 'styleFns' | 'classes'>;
30
+ Cell: WithBoundArgs<typeof SimpleTableCell, 'styleFns' | 'classes'>;
31
+ }
32
+ ];
33
+ };
34
+ }
35
+ declare class SimpleTable extends Component<SimpleTableSignature> {
36
+ SimpleTableBody: typeof SimpleTableBody;
37
+ SimpleTableFooter: typeof SimpleTableFooter;
38
+ SimpleTableRow: typeof SimpleTableRow;
39
+ SimpleTableCell: typeof SimpleTableCell;
40
+ SimpleTableColumn: typeof SimpleTableColumn;
41
+ SimpleTableHeader: typeof SimpleTableHeader;
42
+ get styles(): {
43
+ base: (slotProps?: ({
44
+ size?: "sm" | "md" | "lg" | undefined;
45
+ layout?: "auto" | "fixed" | undefined;
46
+ striped?: boolean | undefined;
47
+ isSticky?: boolean | undefined;
48
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
49
+ isScrollable?: boolean | undefined;
50
+ hasStickyHeader?: boolean | undefined;
51
+ isInStickyRow?: boolean | undefined;
52
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
53
+ wrapper: (slotProps?: ({
54
+ size?: "sm" | "md" | "lg" | undefined;
55
+ layout?: "auto" | "fixed" | undefined;
56
+ striped?: boolean | undefined;
57
+ isSticky?: boolean | undefined;
58
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
59
+ isScrollable?: boolean | undefined;
60
+ hasStickyHeader?: boolean | undefined;
61
+ isInStickyRow?: boolean | undefined;
62
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
63
+ table: (slotProps?: ({
64
+ size?: "sm" | "md" | "lg" | undefined;
65
+ layout?: "auto" | "fixed" | undefined;
66
+ striped?: boolean | undefined;
67
+ isSticky?: boolean | undefined;
68
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
69
+ isScrollable?: boolean | undefined;
70
+ hasStickyHeader?: boolean | undefined;
71
+ isInStickyRow?: boolean | undefined;
72
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
73
+ thead: (slotProps?: ({
74
+ size?: "sm" | "md" | "lg" | undefined;
75
+ layout?: "auto" | "fixed" | undefined;
76
+ striped?: boolean | undefined;
77
+ isSticky?: boolean | undefined;
78
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
79
+ isScrollable?: boolean | undefined;
80
+ hasStickyHeader?: boolean | undefined;
81
+ isInStickyRow?: boolean | undefined;
82
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
83
+ tbody: (slotProps?: ({
84
+ size?: "sm" | "md" | "lg" | undefined;
85
+ layout?: "auto" | "fixed" | undefined;
86
+ striped?: boolean | undefined;
87
+ isSticky?: boolean | undefined;
88
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
89
+ isScrollable?: boolean | undefined;
90
+ hasStickyHeader?: boolean | undefined;
91
+ isInStickyRow?: boolean | undefined;
92
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
93
+ tfoot: (slotProps?: ({
94
+ size?: "sm" | "md" | "lg" | undefined;
95
+ layout?: "auto" | "fixed" | undefined;
96
+ striped?: boolean | undefined;
97
+ isSticky?: boolean | undefined;
98
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
99
+ isScrollable?: boolean | undefined;
100
+ hasStickyHeader?: boolean | undefined;
101
+ isInStickyRow?: boolean | undefined;
102
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
103
+ tr: (slotProps?: ({
104
+ size?: "sm" | "md" | "lg" | undefined;
105
+ layout?: "auto" | "fixed" | undefined;
106
+ striped?: boolean | undefined;
107
+ isSticky?: boolean | undefined;
108
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
109
+ isScrollable?: boolean | undefined;
110
+ hasStickyHeader?: boolean | undefined;
111
+ isInStickyRow?: boolean | undefined;
112
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
113
+ th: (slotProps?: ({
114
+ size?: "sm" | "md" | "lg" | undefined;
115
+ layout?: "auto" | "fixed" | undefined;
116
+ striped?: boolean | undefined;
117
+ isSticky?: boolean | undefined;
118
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
119
+ isScrollable?: boolean | undefined;
120
+ hasStickyHeader?: boolean | undefined;
121
+ isInStickyRow?: boolean | undefined;
122
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
123
+ td: (slotProps?: ({
124
+ size?: "sm" | "md" | "lg" | undefined;
125
+ layout?: "auto" | "fixed" | undefined;
126
+ striped?: boolean | undefined;
127
+ isSticky?: boolean | undefined;
128
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
129
+ isScrollable?: boolean | undefined;
130
+ hasStickyHeader?: boolean | undefined;
131
+ isInStickyRow?: boolean | undefined;
132
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
133
+ emptyCell: (slotProps?: ({
134
+ size?: "sm" | "md" | "lg" | undefined;
135
+ layout?: "auto" | "fixed" | undefined;
136
+ striped?: boolean | undefined;
137
+ isSticky?: boolean | undefined;
138
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
139
+ isScrollable?: boolean | undefined;
140
+ hasStickyHeader?: boolean | undefined;
141
+ isInStickyRow?: boolean | undefined;
142
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
143
+ } & {
144
+ base: (slotProps?: ({
145
+ size?: "sm" | "md" | "lg" | undefined;
146
+ layout?: "auto" | "fixed" | undefined;
147
+ striped?: boolean | undefined;
148
+ isSticky?: boolean | undefined;
149
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
150
+ isScrollable?: boolean | undefined;
151
+ hasStickyHeader?: boolean | undefined;
152
+ isInStickyRow?: boolean | undefined;
153
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
154
+ wrapper: (slotProps?: ({
155
+ size?: "sm" | "md" | "lg" | undefined;
156
+ layout?: "auto" | "fixed" | undefined;
157
+ striped?: boolean | undefined;
158
+ isSticky?: boolean | undefined;
159
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
160
+ isScrollable?: boolean | undefined;
161
+ hasStickyHeader?: boolean | undefined;
162
+ isInStickyRow?: boolean | undefined;
163
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
164
+ table: (slotProps?: ({
165
+ size?: "sm" | "md" | "lg" | undefined;
166
+ layout?: "auto" | "fixed" | undefined;
167
+ striped?: boolean | undefined;
168
+ isSticky?: boolean | undefined;
169
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
170
+ isScrollable?: boolean | undefined;
171
+ hasStickyHeader?: boolean | undefined;
172
+ isInStickyRow?: boolean | undefined;
173
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
174
+ thead: (slotProps?: ({
175
+ size?: "sm" | "md" | "lg" | undefined;
176
+ layout?: "auto" | "fixed" | undefined;
177
+ striped?: boolean | undefined;
178
+ isSticky?: boolean | undefined;
179
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
180
+ isScrollable?: boolean | undefined;
181
+ hasStickyHeader?: boolean | undefined;
182
+ isInStickyRow?: boolean | undefined;
183
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
184
+ tbody: (slotProps?: ({
185
+ size?: "sm" | "md" | "lg" | undefined;
186
+ layout?: "auto" | "fixed" | undefined;
187
+ striped?: boolean | undefined;
188
+ isSticky?: boolean | undefined;
189
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
190
+ isScrollable?: boolean | undefined;
191
+ hasStickyHeader?: boolean | undefined;
192
+ isInStickyRow?: boolean | undefined;
193
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
194
+ tfoot: (slotProps?: ({
195
+ size?: "sm" | "md" | "lg" | undefined;
196
+ layout?: "auto" | "fixed" | undefined;
197
+ striped?: boolean | undefined;
198
+ isSticky?: boolean | undefined;
199
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
200
+ isScrollable?: boolean | undefined;
201
+ hasStickyHeader?: boolean | undefined;
202
+ isInStickyRow?: boolean | undefined;
203
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
204
+ tr: (slotProps?: ({
205
+ size?: "sm" | "md" | "lg" | undefined;
206
+ layout?: "auto" | "fixed" | undefined;
207
+ striped?: boolean | undefined;
208
+ isSticky?: boolean | undefined;
209
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
210
+ isScrollable?: boolean | undefined;
211
+ hasStickyHeader?: boolean | undefined;
212
+ isInStickyRow?: boolean | undefined;
213
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
214
+ th: (slotProps?: ({
215
+ size?: "sm" | "md" | "lg" | undefined;
216
+ layout?: "auto" | "fixed" | undefined;
217
+ striped?: boolean | undefined;
218
+ isSticky?: boolean | undefined;
219
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
220
+ isScrollable?: boolean | undefined;
221
+ hasStickyHeader?: boolean | undefined;
222
+ isInStickyRow?: boolean | undefined;
223
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
224
+ td: (slotProps?: ({
225
+ size?: "sm" | "md" | "lg" | undefined;
226
+ layout?: "auto" | "fixed" | undefined;
227
+ striped?: boolean | undefined;
228
+ isSticky?: boolean | undefined;
229
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
230
+ isScrollable?: boolean | undefined;
231
+ hasStickyHeader?: boolean | undefined;
232
+ isInStickyRow?: boolean | undefined;
233
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
234
+ emptyCell: (slotProps?: ({
235
+ size?: "sm" | "md" | "lg" | undefined;
236
+ layout?: "auto" | "fixed" | undefined;
237
+ striped?: boolean | undefined;
238
+ isSticky?: boolean | undefined;
239
+ stickyPosition?: "left" | "right" | "top" | "bottom" | undefined;
240
+ isScrollable?: boolean | undefined;
241
+ hasStickyHeader?: boolean | undefined;
242
+ isInStickyRow?: boolean | undefined;
243
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
244
+ } & {};
245
+ get wrapperClassNames(): string;
246
+ get tableClassNames(): string;
247
+ }
248
+ export { SimpleTable, type SimpleTableSignature };
249
+ export default SimpleTable;
@@ -0,0 +1,43 @@
1
+ import Component from '@glimmer/component';
2
+ import type { CellRenderingContext } from './cell-rendering-context';
3
+ import type { Column } from './types';
4
+ interface CellDefaultSignature<T> {
5
+ Args: {
6
+ /**
7
+ * The Column object for the current cell
8
+ */
9
+ column: Column<T>;
10
+ /**
11
+ * Registry to check for claimed keys
12
+ */
13
+ registry: CellRenderingContext;
14
+ /**
15
+ * Optional array of keys to exclude from default rendering
16
+ * (alternative to using the registry system)
17
+ */
18
+ except?: string[];
19
+ };
20
+ Blocks: {
21
+ default: [];
22
+ };
23
+ }
24
+ /**
25
+ * Default/fallback rendering component for table cells. Only renders its content
26
+ * when no CellForComponent has claimed the current column key.
27
+ *
28
+ * Usage:
29
+ * ```hbs
30
+ * <c.Default>
31
+ * Default: {{c.value}}
32
+ * </c.Default>
33
+ *
34
+ * <!-- Or with explicit exclusions -->
35
+ * <c.Default @except={{array "status" "actions"}}>
36
+ * {{c.value}}
37
+ * </c.Default>
38
+ * ```
39
+ */
40
+ export default class CellDefaultComponent<T> extends Component<CellDefaultSignature<T>> {
41
+ get shouldRender(): boolean;
42
+ }
43
+ export {};
@@ -0,0 +1,38 @@
1
+ import Component from '@glimmer/component';
2
+ import type { CellRenderingContext } from './cell-rendering-context';
3
+ import type { Column, ColumnConfig, ColumnKeys } from './types';
4
+ interface CellForSignature<T, TColumns extends ColumnConfig<T>[] = ColumnConfig<T>[]> {
5
+ Args: {
6
+ /**
7
+ * The column key to match against the current column.
8
+ * When used with defineColumns(), this is type-checked against available column keys.
9
+ */
10
+ key: ColumnKeys<TColumns>;
11
+ /**
12
+ * The column object for the current cell
13
+ */
14
+ column: Column<T>;
15
+ /**
16
+ * Registry to track claimed keys
17
+ */
18
+ registry: CellRenderingContext;
19
+ };
20
+ Blocks: {
21
+ default: [];
22
+ };
23
+ }
24
+ /**
25
+ * Conditional rendering component for table cells. Only renders its content
26
+ * when the current column key matches the specified @key argument.
27
+ *
28
+ * Usage:
29
+ * ```hbs
30
+ * <c.For @key="status">
31
+ * <StatusBadge @status={{c.value}} />
32
+ * </c.For>
33
+ * ```
34
+ */
35
+ export default class CellForComponent<T, TColumns extends ColumnConfig<T>[] = ColumnConfig<T>[]> extends Component<CellForSignature<T, TColumns>> {
36
+ get shouldRender(): boolean;
37
+ }
38
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Context class to track which column keys have been claimed by CellForComponent
3
+ * instances during cell rendering. This enables CellDefaultComponent to only
4
+ * render when no specific column renderer has claimed the current column key.
5
+ */
6
+ export declare class CellRenderingContext {
7
+ private claimedKeys;
8
+ /**
9
+ * Mark a column key as claimed by a CellForComponent
10
+ */
11
+ claimKey(key: string): void;
12
+ /**
13
+ * Check if a column key has been claimed by any CellForComponent
14
+ */
15
+ isKeyClaimed(key: string): boolean;
16
+ /**
17
+ * Reset the claimed keys (called between cell renders)
18
+ */
19
+ reset(): void;
20
+ /**
21
+ * Get all claimed keys (useful for debugging)
22
+ */
23
+ get claimedKeysList(): string[];
24
+ }
@@ -0,0 +1,50 @@
1
+ import Component from '@glimmer/component';
2
+ import { type CheckboxVariants, type CheckboxSlots, type SlotsToClasses } from '@frontile/theme';
3
+ interface CheckboxSignature {
4
+ Args: {
5
+ checked?: boolean;
6
+ indeterminate?: boolean;
7
+ disabled?: boolean;
8
+ onChange?: (checked: boolean, event: Event) => void;
9
+ size?: CheckboxVariants['size'];
10
+ classes?: SlotsToClasses<CheckboxSlots>;
11
+ ariaLabel?: string;
12
+ ariaLabelledby?: string;
13
+ };
14
+ Element: HTMLInputElement;
15
+ }
16
+ /**
17
+ * Internal checkbox component for table selection.
18
+ * Simplified version without FormControl wrapper.
19
+ */
20
+ declare class Checkbox extends Component<CheckboxSignature> {
21
+ get isChecked(): boolean;
22
+ handleChange(event: Event): void;
23
+ get classes(): {
24
+ base: (slotProps?: ({
25
+ size?: "sm" | "md" | "lg" | undefined;
26
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
27
+ input: (slotProps?: ({
28
+ size?: "sm" | "md" | "lg" | undefined;
29
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
30
+ labelContainer: (slotProps?: ({
31
+ size?: "sm" | "md" | "lg" | undefined;
32
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
33
+ label: (slotProps?: ({
34
+ size?: "sm" | "md" | "lg" | undefined;
35
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
36
+ } & {
37
+ input: (slotProps?: ({
38
+ size?: "sm" | "md" | "lg" | undefined;
39
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
40
+ } & {};
41
+ setIndeterminate: import("ember-modifier").FunctionBasedModifier<{
42
+ Args: {
43
+ Positional: [boolean | undefined];
44
+ Named: import("ember-modifier/-private/signature").EmptyObject;
45
+ };
46
+ Element: HTMLInputElement;
47
+ }>;
48
+ }
49
+ export { Checkbox, type CheckboxSignature };
50
+ export default Checkbox;