@frontile/collections 0.18.0-alpha.2 → 0.18.0-alpha.20

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 (52) hide show
  1. package/declarations/index.d.ts +1 -3
  2. package/declarations/template-registry.d.ts +1 -7
  3. package/dist/index.js +13 -3
  4. package/dist/index.js.map +1 -1
  5. package/package.json +14 -23
  6. package/declarations/components/dropdown.d.ts +0 -99
  7. package/declarations/components/listbox/item.d.ts +0 -51
  8. package/declarations/components/listbox/listbox.d.ts +0 -75
  9. package/declarations/components/listbox.d.ts +0 -2
  10. package/declarations/components/simple-table/body.d.ts +0 -428
  11. package/declarations/components/simple-table/cell.d.ts +0 -427
  12. package/declarations/components/simple-table/column.d.ts +0 -419
  13. package/declarations/components/simple-table/footer.d.ts +0 -430
  14. package/declarations/components/simple-table/header.d.ts +0 -430
  15. package/declarations/components/simple-table/index.d.ts +0 -446
  16. package/declarations/components/simple-table/row.d.ts +0 -430
  17. package/declarations/components/table/cell-default.d.ts +0 -43
  18. package/declarations/components/table/cell-for.d.ts +0 -38
  19. package/declarations/components/table/cell-rendering-context.d.ts +0 -24
  20. package/declarations/components/table/checkbox.d.ts +0 -50
  21. package/declarations/components/table/column-visibility.d.ts +0 -416
  22. package/declarations/components/table/icons.d.ts +0 -11
  23. package/declarations/components/table/index.d.ts +0 -4
  24. package/declarations/components/table/sort-button.d.ts +0 -413
  25. package/declarations/components/table/table.d.ts +0 -555
  26. package/declarations/components/table/types.d.ts +0 -46
  27. package/declarations/components/table/utils.d.ts +0 -6
  28. package/declarations/components/table.d.ts +0 -2
  29. package/declarations/utils/listManager.d.ts +0 -74
  30. package/dist/_app_/components/dropdown.js +0 -1
  31. package/dist/_app_/components/listbox.js +0 -1
  32. package/dist/_app_/components/table.js +0 -1
  33. package/dist/components/dropdown.js +0 -94
  34. package/dist/components/dropdown.js.map +0 -1
  35. package/dist/components/listbox.js +0 -2
  36. package/dist/components/listbox.js.map +0 -1
  37. package/dist/components/table.js +0 -2
  38. package/dist/components/table.js.map +0 -1
  39. package/dist/listManager-CKsOd2zS.js +0 -438
  40. package/dist/listManager-CKsOd2zS.js.map +0 -1
  41. package/dist/listbox-CkGwpiDp.js +0 -203
  42. package/dist/listbox-CkGwpiDp.js.map +0 -1
  43. package/dist/listbox-Czwb-jUT.js +0 -203
  44. package/dist/listbox-Czwb-jUT.js.map +0 -1
  45. package/dist/table-3uScDwoD.js +0 -877
  46. package/dist/table-3uScDwoD.js.map +0 -1
  47. package/dist/table-DvivyvLm.js +0 -877
  48. package/dist/table-DvivyvLm.js.map +0 -1
  49. package/dist/table-SVR6fEqh.js +0 -877
  50. package/dist/table-SVR6fEqh.js.map +0 -1
  51. package/dist/utils/listManager.js +0 -5
  52. package/dist/utils/listManager.js.map +0 -1
@@ -1,430 +0,0 @@
1
- import Component from '@glimmer/component';
2
- import { useStyles } from '@frontile/theme';
3
- import { SimpleTableCell } from './cell';
4
- import type { SlotsToClasses, TableSlots } from '../table/types';
5
- interface SimpleTableRowSignature {
6
- Args: {
7
- /** Additional CSS class to apply to the row */
8
- class?: string;
9
- /** Whether this row should be sticky during vertical scrolling */
10
- isSticky?: boolean;
11
- /** Whether the table has a sticky header (affects positioning of sticky rows) */
12
- hasStickyHeader?: boolean;
13
- /**
14
- * @internal Style functions object from SimpleTable component
15
- * @ignore
16
- */
17
- styleFns?: ReturnType<ReturnType<typeof useStyles>['table']>;
18
- /**
19
- * @internal Classes object from SimpleTable component
20
- * @ignore
21
- */
22
- classes?: SlotsToClasses<TableSlots>;
23
- };
24
- Element: HTMLTableRowElement;
25
- Blocks: {
26
- default: [
27
- {
28
- Cell: typeof SimpleTableCell;
29
- }
30
- ];
31
- };
32
- }
33
- declare class SimpleTableRow extends Component<SimpleTableRowSignature> {
34
- get styles(): {
35
- base: (slotProps?: ({
36
- size?: "sm" | "md" | "lg" | undefined;
37
- isLoading?: boolean | undefined;
38
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
39
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
40
- layout?: "fixed" | "auto" | undefined;
41
- striped?: boolean | undefined;
42
- isSticky?: boolean | undefined;
43
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
44
- isScrollable?: boolean | undefined;
45
- hasStickyHeader?: boolean | undefined;
46
- isInStickyRow?: boolean | undefined;
47
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
48
- wrapper: (slotProps?: ({
49
- size?: "sm" | "md" | "lg" | undefined;
50
- isLoading?: boolean | undefined;
51
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
52
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
53
- layout?: "fixed" | "auto" | undefined;
54
- striped?: boolean | undefined;
55
- isSticky?: boolean | undefined;
56
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
57
- isScrollable?: boolean | undefined;
58
- hasStickyHeader?: boolean | undefined;
59
- isInStickyRow?: boolean | undefined;
60
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
61
- table: (slotProps?: ({
62
- size?: "sm" | "md" | "lg" | undefined;
63
- isLoading?: boolean | undefined;
64
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
65
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
66
- layout?: "fixed" | "auto" | undefined;
67
- striped?: boolean | undefined;
68
- isSticky?: boolean | undefined;
69
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
70
- isScrollable?: boolean | undefined;
71
- hasStickyHeader?: boolean | undefined;
72
- isInStickyRow?: boolean | undefined;
73
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
74
- thead: (slotProps?: ({
75
- size?: "sm" | "md" | "lg" | undefined;
76
- isLoading?: boolean | undefined;
77
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
78
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
79
- layout?: "fixed" | "auto" | undefined;
80
- striped?: boolean | undefined;
81
- isSticky?: boolean | undefined;
82
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
83
- isScrollable?: boolean | undefined;
84
- hasStickyHeader?: boolean | undefined;
85
- isInStickyRow?: boolean | undefined;
86
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
87
- tbody: (slotProps?: ({
88
- size?: "sm" | "md" | "lg" | undefined;
89
- isLoading?: boolean | undefined;
90
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
91
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
92
- layout?: "fixed" | "auto" | undefined;
93
- striped?: boolean | undefined;
94
- isSticky?: boolean | undefined;
95
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
96
- isScrollable?: boolean | undefined;
97
- hasStickyHeader?: boolean | undefined;
98
- isInStickyRow?: boolean | undefined;
99
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
100
- tfoot: (slotProps?: ({
101
- size?: "sm" | "md" | "lg" | undefined;
102
- isLoading?: boolean | undefined;
103
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
104
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
105
- layout?: "fixed" | "auto" | undefined;
106
- striped?: boolean | undefined;
107
- isSticky?: boolean | undefined;
108
- stickyPosition?: "bottom" | "left" | "right" | "top" | 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
- tr: (slotProps?: ({
114
- size?: "sm" | "md" | "lg" | undefined;
115
- isLoading?: boolean | undefined;
116
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
117
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
118
- layout?: "fixed" | "auto" | undefined;
119
- striped?: boolean | undefined;
120
- isSticky?: boolean | undefined;
121
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
122
- isScrollable?: boolean | undefined;
123
- hasStickyHeader?: boolean | undefined;
124
- isInStickyRow?: boolean | undefined;
125
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
126
- separator: (slotProps?: ({
127
- size?: "sm" | "md" | "lg" | undefined;
128
- isLoading?: boolean | undefined;
129
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
130
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
131
- layout?: "fixed" | "auto" | undefined;
132
- striped?: boolean | undefined;
133
- isSticky?: boolean | undefined;
134
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
135
- isScrollable?: boolean | undefined;
136
- hasStickyHeader?: boolean | undefined;
137
- isInStickyRow?: boolean | undefined;
138
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
139
- th: (slotProps?: ({
140
- size?: "sm" | "md" | "lg" | undefined;
141
- isLoading?: boolean | undefined;
142
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
143
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
144
- layout?: "fixed" | "auto" | undefined;
145
- striped?: boolean | undefined;
146
- isSticky?: boolean | undefined;
147
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
148
- isScrollable?: boolean | undefined;
149
- hasStickyHeader?: boolean | undefined;
150
- isInStickyRow?: boolean | undefined;
151
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
152
- sortButton: (slotProps?: ({
153
- size?: "sm" | "md" | "lg" | undefined;
154
- isLoading?: boolean | undefined;
155
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
156
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
157
- layout?: "fixed" | "auto" | undefined;
158
- striped?: boolean | undefined;
159
- isSticky?: boolean | undefined;
160
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
161
- isScrollable?: boolean | undefined;
162
- hasStickyHeader?: boolean | undefined;
163
- isInStickyRow?: boolean | undefined;
164
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
165
- sortIcon: (slotProps?: ({
166
- size?: "sm" | "md" | "lg" | undefined;
167
- isLoading?: boolean | undefined;
168
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
169
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
170
- layout?: "fixed" | "auto" | undefined;
171
- striped?: boolean | undefined;
172
- isSticky?: boolean | undefined;
173
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
174
- isScrollable?: boolean | undefined;
175
- hasStickyHeader?: boolean | undefined;
176
- isInStickyRow?: boolean | undefined;
177
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
178
- columnVisibilityButton: (slotProps?: ({
179
- size?: "sm" | "md" | "lg" | undefined;
180
- isLoading?: boolean | undefined;
181
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
182
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
183
- layout?: "fixed" | "auto" | undefined;
184
- striped?: boolean | undefined;
185
- isSticky?: boolean | undefined;
186
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
187
- isScrollable?: boolean | undefined;
188
- hasStickyHeader?: boolean | undefined;
189
- isInStickyRow?: boolean | undefined;
190
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
191
- columnVisibilityIcon: (slotProps?: ({
192
- size?: "sm" | "md" | "lg" | undefined;
193
- isLoading?: boolean | undefined;
194
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
195
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
196
- layout?: "fixed" | "auto" | undefined;
197
- striped?: boolean | undefined;
198
- isSticky?: boolean | undefined;
199
- stickyPosition?: "bottom" | "left" | "right" | "top" | 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
- td: (slotProps?: ({
205
- size?: "sm" | "md" | "lg" | undefined;
206
- isLoading?: boolean | undefined;
207
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
208
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
209
- layout?: "fixed" | "auto" | undefined;
210
- striped?: boolean | undefined;
211
- isSticky?: boolean | undefined;
212
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
213
- isScrollable?: boolean | undefined;
214
- hasStickyHeader?: boolean | undefined;
215
- isInStickyRow?: boolean | undefined;
216
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
217
- empty: (slotProps?: ({
218
- size?: "sm" | "md" | "lg" | undefined;
219
- isLoading?: boolean | undefined;
220
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
221
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
222
- layout?: "fixed" | "auto" | undefined;
223
- striped?: boolean | undefined;
224
- isSticky?: boolean | undefined;
225
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
226
- isScrollable?: boolean | undefined;
227
- hasStickyHeader?: boolean | undefined;
228
- isInStickyRow?: boolean | undefined;
229
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
230
- } & {
231
- base: (slotProps?: ({
232
- size?: "sm" | "md" | "lg" | undefined;
233
- isLoading?: boolean | undefined;
234
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
235
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
236
- layout?: "fixed" | "auto" | undefined;
237
- striped?: boolean | undefined;
238
- isSticky?: boolean | undefined;
239
- stickyPosition?: "bottom" | "left" | "right" | "top" | 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
- wrapper: (slotProps?: ({
245
- size?: "sm" | "md" | "lg" | undefined;
246
- isLoading?: boolean | undefined;
247
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
248
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
249
- layout?: "fixed" | "auto" | undefined;
250
- striped?: boolean | undefined;
251
- isSticky?: boolean | undefined;
252
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
253
- isScrollable?: boolean | undefined;
254
- hasStickyHeader?: boolean | undefined;
255
- isInStickyRow?: boolean | undefined;
256
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
257
- table: (slotProps?: ({
258
- size?: "sm" | "md" | "lg" | undefined;
259
- isLoading?: boolean | undefined;
260
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
261
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
262
- layout?: "fixed" | "auto" | undefined;
263
- striped?: boolean | undefined;
264
- isSticky?: boolean | undefined;
265
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
266
- isScrollable?: boolean | undefined;
267
- hasStickyHeader?: boolean | undefined;
268
- isInStickyRow?: boolean | undefined;
269
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
270
- thead: (slotProps?: ({
271
- size?: "sm" | "md" | "lg" | undefined;
272
- isLoading?: boolean | undefined;
273
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
274
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
275
- layout?: "fixed" | "auto" | undefined;
276
- striped?: boolean | undefined;
277
- isSticky?: boolean | undefined;
278
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
279
- isScrollable?: boolean | undefined;
280
- hasStickyHeader?: boolean | undefined;
281
- isInStickyRow?: boolean | undefined;
282
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
283
- tbody: (slotProps?: ({
284
- size?: "sm" | "md" | "lg" | undefined;
285
- isLoading?: boolean | undefined;
286
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
287
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
288
- layout?: "fixed" | "auto" | undefined;
289
- striped?: boolean | undefined;
290
- isSticky?: boolean | undefined;
291
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
292
- isScrollable?: boolean | undefined;
293
- hasStickyHeader?: boolean | undefined;
294
- isInStickyRow?: boolean | undefined;
295
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
296
- tfoot: (slotProps?: ({
297
- size?: "sm" | "md" | "lg" | undefined;
298
- isLoading?: boolean | undefined;
299
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
300
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
301
- layout?: "fixed" | "auto" | undefined;
302
- striped?: boolean | undefined;
303
- isSticky?: boolean | undefined;
304
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
305
- isScrollable?: boolean | undefined;
306
- hasStickyHeader?: boolean | undefined;
307
- isInStickyRow?: boolean | undefined;
308
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
309
- tr: (slotProps?: ({
310
- size?: "sm" | "md" | "lg" | undefined;
311
- isLoading?: boolean | undefined;
312
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
313
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
314
- layout?: "fixed" | "auto" | undefined;
315
- striped?: boolean | undefined;
316
- isSticky?: boolean | undefined;
317
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
318
- isScrollable?: boolean | undefined;
319
- hasStickyHeader?: boolean | undefined;
320
- isInStickyRow?: boolean | undefined;
321
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
322
- separator: (slotProps?: ({
323
- size?: "sm" | "md" | "lg" | undefined;
324
- isLoading?: boolean | undefined;
325
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
326
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
327
- layout?: "fixed" | "auto" | undefined;
328
- striped?: boolean | undefined;
329
- isSticky?: boolean | undefined;
330
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
331
- isScrollable?: boolean | undefined;
332
- hasStickyHeader?: boolean | undefined;
333
- isInStickyRow?: boolean | undefined;
334
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
335
- th: (slotProps?: ({
336
- size?: "sm" | "md" | "lg" | undefined;
337
- isLoading?: boolean | undefined;
338
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
339
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
340
- layout?: "fixed" | "auto" | undefined;
341
- striped?: boolean | undefined;
342
- isSticky?: boolean | undefined;
343
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
344
- isScrollable?: boolean | undefined;
345
- hasStickyHeader?: boolean | undefined;
346
- isInStickyRow?: boolean | undefined;
347
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
348
- sortButton: (slotProps?: ({
349
- size?: "sm" | "md" | "lg" | undefined;
350
- isLoading?: boolean | undefined;
351
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
352
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
353
- layout?: "fixed" | "auto" | undefined;
354
- striped?: boolean | undefined;
355
- isSticky?: boolean | undefined;
356
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
357
- isScrollable?: boolean | undefined;
358
- hasStickyHeader?: boolean | undefined;
359
- isInStickyRow?: boolean | undefined;
360
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
361
- sortIcon: (slotProps?: ({
362
- size?: "sm" | "md" | "lg" | undefined;
363
- isLoading?: boolean | undefined;
364
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
365
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
366
- layout?: "fixed" | "auto" | undefined;
367
- striped?: boolean | undefined;
368
- isSticky?: boolean | undefined;
369
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
370
- isScrollable?: boolean | undefined;
371
- hasStickyHeader?: boolean | undefined;
372
- isInStickyRow?: boolean | undefined;
373
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
374
- columnVisibilityButton: (slotProps?: ({
375
- size?: "sm" | "md" | "lg" | undefined;
376
- isLoading?: boolean | undefined;
377
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
378
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
379
- layout?: "fixed" | "auto" | undefined;
380
- striped?: boolean | undefined;
381
- isSticky?: boolean | undefined;
382
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
383
- isScrollable?: boolean | undefined;
384
- hasStickyHeader?: boolean | undefined;
385
- isInStickyRow?: boolean | undefined;
386
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
387
- columnVisibilityIcon: (slotProps?: ({
388
- size?: "sm" | "md" | "lg" | undefined;
389
- isLoading?: boolean | undefined;
390
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
391
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
392
- layout?: "fixed" | "auto" | undefined;
393
- striped?: boolean | undefined;
394
- isSticky?: boolean | undefined;
395
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
396
- isScrollable?: boolean | undefined;
397
- hasStickyHeader?: boolean | undefined;
398
- isInStickyRow?: boolean | undefined;
399
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
400
- td: (slotProps?: ({
401
- size?: "sm" | "md" | "lg" | undefined;
402
- isLoading?: boolean | undefined;
403
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
404
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
405
- layout?: "fixed" | "auto" | undefined;
406
- striped?: boolean | undefined;
407
- isSticky?: boolean | undefined;
408
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
409
- isScrollable?: boolean | undefined;
410
- hasStickyHeader?: boolean | undefined;
411
- isInStickyRow?: boolean | undefined;
412
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
413
- empty: (slotProps?: ({
414
- size?: "sm" | "md" | "lg" | undefined;
415
- isLoading?: boolean | undefined;
416
- loadingColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
417
- selectionColor?: "default" | "primary" | "success" | "warning" | "danger" | undefined;
418
- layout?: "fixed" | "auto" | undefined;
419
- striped?: boolean | undefined;
420
- isSticky?: boolean | undefined;
421
- stickyPosition?: "bottom" | "left" | "right" | "top" | undefined;
422
- isScrollable?: boolean | undefined;
423
- hasStickyHeader?: boolean | undefined;
424
- isInStickyRow?: boolean | undefined;
425
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
426
- } & {};
427
- get classNames(): string;
428
- }
429
- export { SimpleTableRow, type SimpleTableRowSignature };
430
- export default SimpleTableRow;
@@ -1,43 +0,0 @@
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 {};
@@ -1,38 +0,0 @@
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 {};
@@ -1,24 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
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;