@frontile/collections 0.17.0-beta.24 → 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 (117) 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 +4 -0
  22. package/declarations/components/table/sort-button.d.ts +413 -0
  23. package/declarations/components/table/table-body.d.ts +253 -0
  24. package/declarations/components/table/table-cell.d.ts +243 -0
  25. package/declarations/components/table/table-column.d.ts +251 -0
  26. package/declarations/components/table/table-footer.d.ts +242 -0
  27. package/declarations/components/table/table-header.d.ts +243 -0
  28. package/declarations/components/table/table-row.d.ts +263 -0
  29. package/declarations/components/table/table.d.ts +555 -0
  30. package/declarations/components/table/typed-cell-for.d.ts +34 -0
  31. package/declarations/components/table/types.d.ts +46 -0
  32. package/declarations/components/table/utils.d.ts +6 -0
  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/components/table.d.ts +2 -0
  44. package/declarations/index.d.ts +1 -0
  45. package/declarations/template-registry.d.ts +3 -1
  46. package/declarations/utils/tableManager.d.ts +25 -0
  47. package/declarations/utils/typed-table.d.ts +32 -0
  48. package/dist/_app_/components/table.js +1 -0
  49. package/dist/components/dropdown.js +1 -1
  50. package/dist/components/listbox.js +1 -1
  51. package/dist/components/table.js +2 -0
  52. package/dist/components/table.js.map +1 -0
  53. package/dist/index-OHRSSSqD.js +528 -0
  54. package/dist/index-OHRSSSqD.js.map +1 -0
  55. package/dist/index.js +2 -1
  56. package/dist/index.js.map +1 -1
  57. package/dist/{listManager-D4_vozfz.js → listManager-CKsOd2zS.js} +2 -2
  58. package/dist/{listManager-D4_vozfz.js.map → listManager-CKsOd2zS.js.map} +1 -1
  59. package/dist/listManager-Dth1-3Si.js +439 -0
  60. package/dist/listManager-Dth1-3Si.js.map +1 -0
  61. package/dist/listbox-BHb3ozlg.js +204 -0
  62. package/dist/listbox-BHb3ozlg.js.map +1 -0
  63. package/dist/listbox-CkGwpiDp.js +203 -0
  64. package/dist/listbox-CkGwpiDp.js.map +1 -0
  65. package/dist/listbox-ClqgWnnA.js +204 -0
  66. package/dist/listbox-ClqgWnnA.js.map +1 -0
  67. package/dist/listbox-rcGFjxs0.js +112 -47
  68. package/dist/listbox-y30VBGX-.js +204 -0
  69. package/dist/listbox-y30VBGX-.js.map +1 -0
  70. package/dist/simple-table-B7dwVNtZ.js +528 -0
  71. package/dist/simple-table-B7dwVNtZ.js.map +1 -0
  72. package/dist/simple-table-OHRSSSqD.js +528 -0
  73. package/dist/simple-table-OHRSSSqD.js.map +1 -0
  74. package/dist/table-B2HDNKJZ.js +406 -0
  75. package/dist/table-B2HDNKJZ.js.map +1 -0
  76. package/dist/table-BDc4IZIE.js +878 -0
  77. package/dist/table-BDc4IZIE.js.map +1 -0
  78. package/dist/table-BFkVEZvb.js +392 -0
  79. package/dist/table-BFkVEZvb.js.map +1 -0
  80. package/dist/table-BqvHQi0L.js +878 -0
  81. package/dist/table-BqvHQi0L.js.map +1 -0
  82. package/dist/table-C7ch3NLp.js +395 -0
  83. package/dist/table-C7ch3NLp.js.map +1 -0
  84. package/dist/table-CLHR4-J5.js +395 -0
  85. package/dist/table-CLHR4-J5.js.map +1 -0
  86. package/dist/table-COm7aEZ1.js +341 -0
  87. package/dist/table-COm7aEZ1.js.map +1 -0
  88. package/dist/table-CSzsuwXt.js +394 -0
  89. package/dist/table-CSzsuwXt.js.map +1 -0
  90. package/dist/table-CVCiVPCB.js +878 -0
  91. package/dist/table-CVCiVPCB.js.map +1 -0
  92. package/dist/table-CcYV8m90.js +341 -0
  93. package/dist/table-CcYV8m90.js.map +1 -0
  94. package/dist/table-DEK1U06v.js +632 -0
  95. package/dist/table-DEK1U06v.js.map +1 -0
  96. package/dist/table-DGQbKRn3.js +395 -0
  97. package/dist/table-DGQbKRn3.js.map +1 -0
  98. package/dist/table-DnQQJItF.js +632 -0
  99. package/dist/table-DnQQJItF.js.map +1 -0
  100. package/dist/table-DrBJt7Eh.js +395 -0
  101. package/dist/table-DrBJt7Eh.js.map +1 -0
  102. package/dist/table-SVR6fEqh.js +877 -0
  103. package/dist/table-SVR6fEqh.js.map +1 -0
  104. package/dist/table-XUYqiKyi.js +394 -0
  105. package/dist/table-XUYqiKyi.js.map +1 -0
  106. package/dist/table-footer-DTLYf3Ac.js +553 -0
  107. package/dist/table-footer-DTLYf3Ac.js.map +1 -0
  108. package/dist/types-B-8cgOds.js +524 -0
  109. package/dist/types-B-8cgOds.js.map +1 -0
  110. package/dist/types-CJuwIIDs.js +524 -0
  111. package/dist/types-CJuwIIDs.js.map +1 -0
  112. package/dist/types-CuXFudgJ.js +526 -0
  113. package/dist/types-CuXFudgJ.js.map +1 -0
  114. package/dist/types-DkKoxFKn.js +524 -0
  115. package/dist/types-DkKoxFKn.js.map +1 -0
  116. package/dist/utils/listManager.js +1 -1
  117. package/package.json +9 -7
@@ -0,0 +1,9 @@
1
+ export { Table, type TableSignature } from './table';
2
+ export { TableHeader, type TableHeaderSignature } from './table-header';
3
+ export { TableBody, type TableBodySignature } from './table-body';
4
+ export { TableFooter, type TableFooterSignature } from './table-footer';
5
+ export { TableColumn, type TableColumnSignature } from './table-column';
6
+ export { TableRow, type TableRowSignature } from './table-row';
7
+ export { TableCell, type TableCellSignature } from './table-cell';
8
+ export type { ColumnDefinition } from './types';
9
+ export { default } from './table';
@@ -0,0 +1,374 @@
1
+ import Component from '@glimmer/component';
2
+ import { useStyles } from '@frontile/theme';
3
+ import { TableRow } from './table-row';
4
+ import { TableCell } from './table-cell';
5
+ import type { ColumnDefinition, SlotsToClasses, TableSlots } from './types';
6
+ interface TableBodySignature<T> {
7
+ Args: {
8
+ /** Array of column definitions for automatic row generation */
9
+ columns?: ColumnDefinition<T>[];
10
+ /** Array of data items to display as rows */
11
+ items?: T[];
12
+ /** Additional CSS class to apply to the body section */
13
+ class?: string;
14
+ /**
15
+ * @internal Style functions object from Table component
16
+ * @ignore
17
+ */
18
+ styleFns?: ReturnType<ReturnType<typeof useStyles>['table']>;
19
+ /**
20
+ * @internal Classes object from Table component
21
+ * @ignore
22
+ */
23
+ classes?: SlotsToClasses<TableSlots>;
24
+ };
25
+ Element: HTMLTableSectionElement;
26
+ Blocks: {
27
+ default: [
28
+ {
29
+ Row: typeof TableRow;
30
+ Cell: typeof TableCell;
31
+ }
32
+ ];
33
+ row: [
34
+ {
35
+ item: T;
36
+ Row: typeof TableRow;
37
+ Cell: typeof TableCell;
38
+ }
39
+ ];
40
+ };
41
+ }
42
+ declare class TableBody<T = unknown> extends Component<TableBodySignature<T>> {
43
+ get styles(): {
44
+ base: (
45
+ slotProps?:
46
+ | ({
47
+ size?: 'sm' | 'md' | 'lg' | undefined;
48
+ layout?: 'fixed' | 'auto' | undefined;
49
+ striped?: boolean | undefined;
50
+ isSticky?: boolean | undefined;
51
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
52
+ isScrollable?: boolean | undefined;
53
+ hasStickyHeader?: boolean | undefined;
54
+ isInStickyRow?: boolean | undefined;
55
+ } & import('tailwind-variants').ClassProp<
56
+ import('tailwind-variants').ClassValue
57
+ >)
58
+ | undefined
59
+ ) => string;
60
+ wrapper: (
61
+ slotProps?:
62
+ | ({
63
+ size?: 'sm' | 'md' | 'lg' | undefined;
64
+ layout?: 'fixed' | 'auto' | undefined;
65
+ striped?: boolean | undefined;
66
+ isSticky?: boolean | undefined;
67
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
68
+ isScrollable?: boolean | undefined;
69
+ hasStickyHeader?: boolean | undefined;
70
+ isInStickyRow?: boolean | undefined;
71
+ } & import('tailwind-variants').ClassProp<
72
+ import('tailwind-variants').ClassValue
73
+ >)
74
+ | undefined
75
+ ) => string;
76
+ table: (
77
+ slotProps?:
78
+ | ({
79
+ size?: 'sm' | 'md' | 'lg' | undefined;
80
+ layout?: 'fixed' | 'auto' | undefined;
81
+ striped?: boolean | undefined;
82
+ isSticky?: boolean | undefined;
83
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
84
+ isScrollable?: boolean | undefined;
85
+ hasStickyHeader?: boolean | undefined;
86
+ isInStickyRow?: boolean | undefined;
87
+ } & import('tailwind-variants').ClassProp<
88
+ import('tailwind-variants').ClassValue
89
+ >)
90
+ | undefined
91
+ ) => string;
92
+ thead: (
93
+ slotProps?:
94
+ | ({
95
+ size?: 'sm' | 'md' | 'lg' | undefined;
96
+ layout?: 'fixed' | 'auto' | undefined;
97
+ striped?: boolean | undefined;
98
+ isSticky?: boolean | undefined;
99
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
100
+ isScrollable?: boolean | undefined;
101
+ hasStickyHeader?: boolean | undefined;
102
+ isInStickyRow?: boolean | undefined;
103
+ } & import('tailwind-variants').ClassProp<
104
+ import('tailwind-variants').ClassValue
105
+ >)
106
+ | undefined
107
+ ) => string;
108
+ tbody: (
109
+ slotProps?:
110
+ | ({
111
+ size?: 'sm' | 'md' | 'lg' | undefined;
112
+ layout?: 'fixed' | 'auto' | undefined;
113
+ striped?: boolean | undefined;
114
+ isSticky?: boolean | undefined;
115
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
116
+ isScrollable?: boolean | undefined;
117
+ hasStickyHeader?: boolean | undefined;
118
+ isInStickyRow?: boolean | undefined;
119
+ } & import('tailwind-variants').ClassProp<
120
+ import('tailwind-variants').ClassValue
121
+ >)
122
+ | undefined
123
+ ) => string;
124
+ tfoot: (
125
+ slotProps?:
126
+ | ({
127
+ size?: 'sm' | 'md' | 'lg' | undefined;
128
+ layout?: 'fixed' | 'auto' | undefined;
129
+ striped?: boolean | undefined;
130
+ isSticky?: boolean | undefined;
131
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
132
+ isScrollable?: boolean | undefined;
133
+ hasStickyHeader?: boolean | undefined;
134
+ isInStickyRow?: boolean | undefined;
135
+ } & import('tailwind-variants').ClassProp<
136
+ import('tailwind-variants').ClassValue
137
+ >)
138
+ | undefined
139
+ ) => string;
140
+ tr: (
141
+ slotProps?:
142
+ | ({
143
+ size?: 'sm' | 'md' | 'lg' | undefined;
144
+ layout?: 'fixed' | 'auto' | undefined;
145
+ striped?: boolean | undefined;
146
+ isSticky?: boolean | undefined;
147
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
148
+ isScrollable?: boolean | undefined;
149
+ hasStickyHeader?: boolean | undefined;
150
+ isInStickyRow?: boolean | undefined;
151
+ } & import('tailwind-variants').ClassProp<
152
+ import('tailwind-variants').ClassValue
153
+ >)
154
+ | undefined
155
+ ) => string;
156
+ th: (
157
+ slotProps?:
158
+ | ({
159
+ size?: 'sm' | 'md' | 'lg' | undefined;
160
+ layout?: 'fixed' | 'auto' | undefined;
161
+ striped?: boolean | undefined;
162
+ isSticky?: boolean | undefined;
163
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
164
+ isScrollable?: boolean | undefined;
165
+ hasStickyHeader?: boolean | undefined;
166
+ isInStickyRow?: boolean | undefined;
167
+ } & import('tailwind-variants').ClassProp<
168
+ import('tailwind-variants').ClassValue
169
+ >)
170
+ | undefined
171
+ ) => string;
172
+ td: (
173
+ slotProps?:
174
+ | ({
175
+ size?: 'sm' | 'md' | 'lg' | undefined;
176
+ layout?: 'fixed' | 'auto' | undefined;
177
+ striped?: boolean | undefined;
178
+ isSticky?: boolean | undefined;
179
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
180
+ isScrollable?: boolean | undefined;
181
+ hasStickyHeader?: boolean | undefined;
182
+ isInStickyRow?: boolean | undefined;
183
+ } & import('tailwind-variants').ClassProp<
184
+ import('tailwind-variants').ClassValue
185
+ >)
186
+ | undefined
187
+ ) => string;
188
+ emptyCell: (
189
+ slotProps?:
190
+ | ({
191
+ size?: 'sm' | 'md' | 'lg' | undefined;
192
+ layout?: 'fixed' | 'auto' | undefined;
193
+ striped?: boolean | undefined;
194
+ isSticky?: boolean | undefined;
195
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
196
+ isScrollable?: boolean | undefined;
197
+ hasStickyHeader?: boolean | undefined;
198
+ isInStickyRow?: boolean | undefined;
199
+ } & import('tailwind-variants').ClassProp<
200
+ import('tailwind-variants').ClassValue
201
+ >)
202
+ | undefined
203
+ ) => string;
204
+ } & {
205
+ base: (
206
+ slotProps?:
207
+ | ({
208
+ size?: 'sm' | 'md' | 'lg' | undefined;
209
+ layout?: 'fixed' | 'auto' | undefined;
210
+ striped?: boolean | undefined;
211
+ isSticky?: boolean | undefined;
212
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
213
+ isScrollable?: boolean | undefined;
214
+ hasStickyHeader?: boolean | undefined;
215
+ isInStickyRow?: boolean | undefined;
216
+ } & import('tailwind-variants').ClassProp<
217
+ import('tailwind-variants').ClassValue
218
+ >)
219
+ | undefined
220
+ ) => string;
221
+ wrapper: (
222
+ slotProps?:
223
+ | ({
224
+ size?: 'sm' | 'md' | 'lg' | undefined;
225
+ layout?: 'fixed' | 'auto' | undefined;
226
+ striped?: boolean | undefined;
227
+ isSticky?: boolean | undefined;
228
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
229
+ isScrollable?: boolean | undefined;
230
+ hasStickyHeader?: boolean | undefined;
231
+ isInStickyRow?: boolean | undefined;
232
+ } & import('tailwind-variants').ClassProp<
233
+ import('tailwind-variants').ClassValue
234
+ >)
235
+ | undefined
236
+ ) => string;
237
+ table: (
238
+ slotProps?:
239
+ | ({
240
+ size?: 'sm' | 'md' | 'lg' | undefined;
241
+ layout?: 'fixed' | 'auto' | undefined;
242
+ striped?: boolean | undefined;
243
+ isSticky?: boolean | undefined;
244
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
245
+ isScrollable?: boolean | undefined;
246
+ hasStickyHeader?: boolean | undefined;
247
+ isInStickyRow?: boolean | undefined;
248
+ } & import('tailwind-variants').ClassProp<
249
+ import('tailwind-variants').ClassValue
250
+ >)
251
+ | undefined
252
+ ) => string;
253
+ thead: (
254
+ slotProps?:
255
+ | ({
256
+ size?: 'sm' | 'md' | 'lg' | undefined;
257
+ layout?: 'fixed' | 'auto' | undefined;
258
+ striped?: boolean | undefined;
259
+ isSticky?: boolean | undefined;
260
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
261
+ isScrollable?: boolean | undefined;
262
+ hasStickyHeader?: boolean | undefined;
263
+ isInStickyRow?: boolean | undefined;
264
+ } & import('tailwind-variants').ClassProp<
265
+ import('tailwind-variants').ClassValue
266
+ >)
267
+ | undefined
268
+ ) => string;
269
+ tbody: (
270
+ slotProps?:
271
+ | ({
272
+ size?: 'sm' | 'md' | 'lg' | undefined;
273
+ layout?: 'fixed' | 'auto' | undefined;
274
+ striped?: boolean | undefined;
275
+ isSticky?: boolean | undefined;
276
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
277
+ isScrollable?: boolean | undefined;
278
+ hasStickyHeader?: boolean | undefined;
279
+ isInStickyRow?: boolean | undefined;
280
+ } & import('tailwind-variants').ClassProp<
281
+ import('tailwind-variants').ClassValue
282
+ >)
283
+ | undefined
284
+ ) => string;
285
+ tfoot: (
286
+ slotProps?:
287
+ | ({
288
+ size?: 'sm' | 'md' | 'lg' | undefined;
289
+ layout?: 'fixed' | 'auto' | undefined;
290
+ striped?: boolean | undefined;
291
+ isSticky?: boolean | undefined;
292
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
293
+ isScrollable?: boolean | undefined;
294
+ hasStickyHeader?: boolean | undefined;
295
+ isInStickyRow?: boolean | undefined;
296
+ } & import('tailwind-variants').ClassProp<
297
+ import('tailwind-variants').ClassValue
298
+ >)
299
+ | undefined
300
+ ) => string;
301
+ tr: (
302
+ slotProps?:
303
+ | ({
304
+ size?: 'sm' | 'md' | 'lg' | undefined;
305
+ layout?: 'fixed' | 'auto' | undefined;
306
+ striped?: boolean | undefined;
307
+ isSticky?: boolean | undefined;
308
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
309
+ isScrollable?: boolean | undefined;
310
+ hasStickyHeader?: boolean | undefined;
311
+ isInStickyRow?: boolean | undefined;
312
+ } & import('tailwind-variants').ClassProp<
313
+ import('tailwind-variants').ClassValue
314
+ >)
315
+ | undefined
316
+ ) => string;
317
+ th: (
318
+ slotProps?:
319
+ | ({
320
+ size?: 'sm' | 'md' | 'lg' | undefined;
321
+ layout?: 'fixed' | 'auto' | undefined;
322
+ striped?: boolean | undefined;
323
+ isSticky?: boolean | undefined;
324
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
325
+ isScrollable?: boolean | undefined;
326
+ hasStickyHeader?: boolean | undefined;
327
+ isInStickyRow?: boolean | undefined;
328
+ } & import('tailwind-variants').ClassProp<
329
+ import('tailwind-variants').ClassValue
330
+ >)
331
+ | undefined
332
+ ) => string;
333
+ td: (
334
+ slotProps?:
335
+ | ({
336
+ size?: 'sm' | 'md' | 'lg' | undefined;
337
+ layout?: 'fixed' | 'auto' | undefined;
338
+ striped?: boolean | undefined;
339
+ isSticky?: boolean | undefined;
340
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
341
+ isScrollable?: boolean | undefined;
342
+ hasStickyHeader?: boolean | undefined;
343
+ isInStickyRow?: boolean | undefined;
344
+ } & import('tailwind-variants').ClassProp<
345
+ import('tailwind-variants').ClassValue
346
+ >)
347
+ | undefined
348
+ ) => string;
349
+ emptyCell: (
350
+ slotProps?:
351
+ | ({
352
+ size?: 'sm' | 'md' | 'lg' | undefined;
353
+ layout?: 'fixed' | 'auto' | undefined;
354
+ striped?: boolean | undefined;
355
+ isSticky?: boolean | undefined;
356
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
357
+ isScrollable?: boolean | undefined;
358
+ hasStickyHeader?: boolean | undefined;
359
+ isInStickyRow?: boolean | undefined;
360
+ } & import('tailwind-variants').ClassProp<
361
+ import('tailwind-variants').ClassValue
362
+ >)
363
+ | undefined
364
+ ) => string;
365
+ } & {};
366
+
367
+ get classNames(): string;
368
+ getValue: (
369
+ item: T,
370
+ column: ColumnDefinition<T>
371
+ ) => import('@glint/template').ContentValue;
372
+ }
373
+ export { TableBody, type TableBodySignature };
374
+ export default TableBody;