@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.
- package/declarations/components/simple-table/body.d.ts +428 -0
- package/declarations/components/simple-table/cell.d.ts +427 -0
- package/declarations/components/simple-table/column.d.ts +419 -0
- package/declarations/components/simple-table/footer.d.ts +430 -0
- package/declarations/components/simple-table/header.d.ts +430 -0
- package/declarations/components/simple-table/index.d.ts +446 -0
- package/declarations/components/simple-table/row.d.ts +430 -0
- package/declarations/components/simple-table/simple-table-body.d.ts +238 -0
- package/declarations/components/simple-table/simple-table-cell.d.ts +231 -0
- package/declarations/components/simple-table/simple-table-column.d.ts +225 -0
- package/declarations/components/simple-table/simple-table-footer.d.ts +237 -0
- package/declarations/components/simple-table/simple-table-header.d.ts +237 -0
- package/declarations/components/simple-table/simple-table-row.d.ts +236 -0
- package/declarations/components/simple-table/simple-table.d.ts +249 -0
- package/declarations/components/table/cell-default.d.ts +43 -0
- package/declarations/components/table/cell-for.d.ts +38 -0
- package/declarations/components/table/cell-rendering-context.d.ts +24 -0
- package/declarations/components/table/checkbox.d.ts +50 -0
- package/declarations/components/table/column-visibility.d.ts +416 -0
- package/declarations/components/table/icons.d.ts +11 -0
- package/declarations/components/table/index.d.ts +4 -0
- package/declarations/components/table/sort-button.d.ts +413 -0
- package/declarations/components/table/table-body.d.ts +253 -0
- package/declarations/components/table/table-cell.d.ts +243 -0
- package/declarations/components/table/table-column.d.ts +251 -0
- package/declarations/components/table/table-footer.d.ts +242 -0
- package/declarations/components/table/table-header.d.ts +243 -0
- package/declarations/components/table/table-row.d.ts +263 -0
- package/declarations/components/table/table.d.ts +555 -0
- package/declarations/components/table/typed-cell-for.d.ts +34 -0
- package/declarations/components/table/types.d.ts +46 -0
- package/declarations/components/table/utils.d.ts +6 -0
- package/declarations/components/table-legacy/index.d.ts +9 -0
- package/declarations/components/table-legacy/table-body.d.ts +374 -0
- package/declarations/components/table-legacy/table-cell.d.ts +364 -0
- package/declarations/components/table-legacy/table-column.d.ts +357 -0
- package/declarations/components/table-legacy/table-footer.d.ts +365 -0
- package/declarations/components/table-legacy/table-header.d.ts +364 -0
- package/declarations/components/table-legacy/table-row.d.ts +373 -0
- package/declarations/components/table-legacy/table.d.ts +437 -0
- package/declarations/components/table-legacy/types.d.ts +20 -0
- package/declarations/components/table-legacy/utils.d.ts +16 -0
- package/declarations/components/table.d.ts +2 -0
- package/declarations/index.d.ts +1 -0
- package/declarations/template-registry.d.ts +3 -1
- package/declarations/utils/tableManager.d.ts +25 -0
- package/declarations/utils/typed-table.d.ts +32 -0
- package/dist/_app_/components/table.js +1 -0
- package/dist/components/dropdown.js +1 -1
- package/dist/components/listbox.js +1 -1
- package/dist/components/table.js +2 -0
- package/dist/components/table.js.map +1 -0
- package/dist/index-OHRSSSqD.js +528 -0
- package/dist/index-OHRSSSqD.js.map +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/{listManager-D4_vozfz.js → listManager-CKsOd2zS.js} +2 -2
- package/dist/{listManager-D4_vozfz.js.map → listManager-CKsOd2zS.js.map} +1 -1
- package/dist/listManager-Dth1-3Si.js +439 -0
- package/dist/listManager-Dth1-3Si.js.map +1 -0
- package/dist/listbox-BHb3ozlg.js +204 -0
- package/dist/listbox-BHb3ozlg.js.map +1 -0
- package/dist/listbox-CkGwpiDp.js +203 -0
- package/dist/listbox-CkGwpiDp.js.map +1 -0
- package/dist/listbox-ClqgWnnA.js +204 -0
- package/dist/listbox-ClqgWnnA.js.map +1 -0
- package/dist/listbox-rcGFjxs0.js +112 -47
- package/dist/listbox-y30VBGX-.js +204 -0
- package/dist/listbox-y30VBGX-.js.map +1 -0
- package/dist/simple-table-B7dwVNtZ.js +528 -0
- package/dist/simple-table-B7dwVNtZ.js.map +1 -0
- package/dist/simple-table-OHRSSSqD.js +528 -0
- package/dist/simple-table-OHRSSSqD.js.map +1 -0
- package/dist/table-B2HDNKJZ.js +406 -0
- package/dist/table-B2HDNKJZ.js.map +1 -0
- package/dist/table-BDc4IZIE.js +878 -0
- package/dist/table-BDc4IZIE.js.map +1 -0
- package/dist/table-BFkVEZvb.js +392 -0
- package/dist/table-BFkVEZvb.js.map +1 -0
- package/dist/table-BqvHQi0L.js +878 -0
- package/dist/table-BqvHQi0L.js.map +1 -0
- package/dist/table-C7ch3NLp.js +395 -0
- package/dist/table-C7ch3NLp.js.map +1 -0
- package/dist/table-CLHR4-J5.js +395 -0
- package/dist/table-CLHR4-J5.js.map +1 -0
- package/dist/table-COm7aEZ1.js +341 -0
- package/dist/table-COm7aEZ1.js.map +1 -0
- package/dist/table-CSzsuwXt.js +394 -0
- package/dist/table-CSzsuwXt.js.map +1 -0
- package/dist/table-CVCiVPCB.js +878 -0
- package/dist/table-CVCiVPCB.js.map +1 -0
- package/dist/table-CcYV8m90.js +341 -0
- package/dist/table-CcYV8m90.js.map +1 -0
- package/dist/table-DEK1U06v.js +632 -0
- package/dist/table-DEK1U06v.js.map +1 -0
- package/dist/table-DGQbKRn3.js +395 -0
- package/dist/table-DGQbKRn3.js.map +1 -0
- package/dist/table-DnQQJItF.js +632 -0
- package/dist/table-DnQQJItF.js.map +1 -0
- package/dist/table-DrBJt7Eh.js +395 -0
- package/dist/table-DrBJt7Eh.js.map +1 -0
- package/dist/table-SVR6fEqh.js +877 -0
- package/dist/table-SVR6fEqh.js.map +1 -0
- package/dist/table-XUYqiKyi.js +394 -0
- package/dist/table-XUYqiKyi.js.map +1 -0
- package/dist/table-footer-DTLYf3Ac.js +553 -0
- package/dist/table-footer-DTLYf3Ac.js.map +1 -0
- package/dist/types-B-8cgOds.js +524 -0
- package/dist/types-B-8cgOds.js.map +1 -0
- package/dist/types-CJuwIIDs.js +524 -0
- package/dist/types-CJuwIIDs.js.map +1 -0
- package/dist/types-CuXFudgJ.js +526 -0
- package/dist/types-CuXFudgJ.js.map +1 -0
- package/dist/types-DkKoxFKn.js +524 -0
- package/dist/types-DkKoxFKn.js.map +1 -0
- package/dist/utils/listManager.js +1 -1
- package/package.json +9 -7
|
@@ -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;
|