@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,878 @@
1
+
2
+ import Component from '@glimmer/component';
3
+ import { hash, fn } from '@ember/helper';
4
+ import { useStyles, twMerge } from '@frontile/theme';
5
+ import { modifier } from 'ember-modifier';
6
+ import { tracked, cached } from '@glimmer/tracking';
7
+ import { precompileTemplate } from '@ember/template-compilation';
8
+ import { setComponentTemplate } from '@ember/component';
9
+ import { d as decorateMethodV2, a as decorateFieldV2, i as initializeDeferredDecorator, k as keyAndLabelForItem } from './listManager-Dth1-3Si.js';
10
+ import { action } from '@ember/object';
11
+ import { Dropdown } from './components/dropdown.js';
12
+ import { isVisible, show, hide, ColumnVisibility as ColumnVisibility$1 } from '@universal-ember/table/plugins/column-visibility';
13
+ import templateOnly from '@ember/component/template-only';
14
+ import { press } from '@frontile/utilities';
15
+ import { SortDirection, DataSorting, sort, sortDirection, isSortable } from '@universal-ember/table/plugins/data-sorting';
16
+ import { on } from '@ember/modifier';
17
+ import { headlessTable } from '@universal-ember/table';
18
+ import { columns } from '@universal-ember/table/plugins';
19
+ import { RowSelection } from '@universal-ember/table/plugins/row-selection';
20
+
21
+ class SimpleTableColumn extends Component {
22
+ get styles() {
23
+ return this.args.styleFns || useStyles().table();
24
+ }
25
+ get classNames() {
26
+ const options = {
27
+ isSticky: this.args.isSticky || false,
28
+ stickyPosition: this.args.isSticky ? this.args.stickyPosition || 'left' : undefined,
29
+ class: this.args.class
30
+ };
31
+ return this.styles.th(options);
32
+ }
33
+ static {
34
+ setComponentTemplate(precompileTemplate("\n <th class={{this.classNames}} data-test-id=\"table-column\" data-component=\"table-column\" ...attributes>\n {{yield}}\n </th>\n ", {
35
+ strictMode: true
36
+ }), this);
37
+ }
38
+ }
39
+
40
+ class SimpleTableHeader extends Component {
41
+ get styles() {
42
+ return this.args.styleFns || useStyles().table();
43
+ }
44
+ get classNames() {
45
+ const options = {
46
+ isSticky: this.args.isSticky || false,
47
+ stickyPosition: this.args.isSticky ? 'top' : undefined,
48
+ class: twMerge(this.args.class, this.args.classes?.thead)
49
+ };
50
+ return this.styles.thead(options);
51
+ }
52
+ get rowClassNames() {
53
+ const options = {
54
+ class: twMerge('', this.args.classes?.tr || ''),
55
+ isSticky: false
56
+ };
57
+ return this.styles.tr(options);
58
+ }
59
+ get separatorClassNames() {
60
+ return this.styles.separator({
61
+ class: this.args.classes?.separator
62
+ });
63
+ }
64
+ static {
65
+ setComponentTemplate(precompileTemplate("\n <thead class={{this.classNames}} data-test-id=\"table-header\" data-component=\"table-header\" ...attributes>\n <tr class={{this.rowClassNames}}>\n {{yield (hash Column=SimpleTableColumn)}}\n </tr>\n <tr class={{this.separatorClassNames}} />\n </thead>\n ", {
66
+ strictMode: true,
67
+ scope: () => ({
68
+ hash,
69
+ SimpleTableColumn
70
+ })
71
+ }), this);
72
+ }
73
+ }
74
+
75
+ class SimpleTableCell extends Component {
76
+ get styles() {
77
+ return this.args.styleFns || useStyles().table();
78
+ }
79
+ get classNames() {
80
+ const options = {
81
+ isSticky: this.args.isSticky || false,
82
+ stickyPosition: this.args.isSticky ? this.args.stickyPosition || 'left' : undefined,
83
+ isInStickyRow: this.args.isInStickyRow || false,
84
+ class: twMerge(this.args.class || '', this.args.classes?.td || '')
85
+ };
86
+ return this.styles.td(options);
87
+ }
88
+ static {
89
+ setComponentTemplate(precompileTemplate("\n <td class={{this.classNames}} data-test-id=\"table-cell\" data-component=\"table-cell\" ...attributes>\n {{yield}}\n </td>\n ", {
90
+ strictMode: true
91
+ }), this);
92
+ }
93
+ }
94
+
95
+ class SimpleTableRow extends Component {
96
+ get styles() {
97
+ return this.args.styleFns || useStyles().table();
98
+ }
99
+ get classNames() {
100
+ const options = {
101
+ isSticky: this.args.isSticky || false,
102
+ stickyPosition: this.args.isSticky ? 'top' : undefined,
103
+ hasStickyHeader: this.args.hasStickyHeader || false,
104
+ class: twMerge(this.args.class || '', this.args.classes?.tr || '')
105
+ };
106
+ return this.styles.tr(options);
107
+ }
108
+ static {
109
+ setComponentTemplate(precompileTemplate("\n <tr class={{this.classNames}} data-test-id=\"table-row\" data-component=\"table-row\" ...attributes>\n {{yield (hash Cell=SimpleTableCell)}}\n </tr>\n ", {
110
+ strictMode: true,
111
+ scope: () => ({
112
+ hash,
113
+ SimpleTableCell
114
+ })
115
+ }), this);
116
+ }
117
+ }
118
+
119
+ class SimpleTableBody extends Component {
120
+ get styles() {
121
+ return this.args.styleFns || useStyles().table();
122
+ }
123
+ get classNames() {
124
+ const mergedClass = twMerge(this.args.class, this.args.classes?.tbody);
125
+ return this.styles.tbody({
126
+ class: mergedClass
127
+ });
128
+ }
129
+ static {
130
+ setComponentTemplate(precompileTemplate("\n <tbody class={{this.classNames}} data-test-id=\"table-body\" data-component=\"table-body\" ...attributes>\n {{yield (hash Row=SimpleTableRow Cell=SimpleTableCell)}}\n </tbody>\n ", {
131
+ strictMode: true,
132
+ scope: () => ({
133
+ hash,
134
+ SimpleTableRow,
135
+ SimpleTableCell
136
+ })
137
+ }), this);
138
+ }
139
+ }
140
+
141
+ class SimpleTableFooter extends Component {
142
+ get styles() {
143
+ return this.args.styleFns || useStyles().table();
144
+ }
145
+ get classNames() {
146
+ const options = {
147
+ isSticky: this.args.isSticky || false,
148
+ stickyPosition: this.args.isSticky ? 'bottom' : undefined,
149
+ class: twMerge(this.args.class, this.args.classes?.tfoot)
150
+ };
151
+ return this.styles.tfoot(options);
152
+ }
153
+ get rowClassNames() {
154
+ const options = {
155
+ class: twMerge('', this.args.classes?.tr || ''),
156
+ isSticky: false
157
+ };
158
+ return this.styles.tr(options);
159
+ }
160
+ get separatorClassNames() {
161
+ return this.styles.separator({
162
+ class: this.args.classes?.separator
163
+ });
164
+ }
165
+ static {
166
+ setComponentTemplate(precompileTemplate("\n <tfoot class={{this.classNames}} data-test-id=\"table-footer\" data-component=\"table-footer\" ...attributes>\n <tr class={{this.separatorClassNames}} />\n <tr class={{this.rowClassNames}}>\n {{yield (hash Column=SimpleTableColumn)}}\n </tr>\n </tfoot>\n ", {
167
+ strictMode: true,
168
+ scope: () => ({
169
+ hash,
170
+ SimpleTableColumn
171
+ })
172
+ }), this);
173
+ }
174
+ }
175
+
176
+ class SimpleTable extends Component {
177
+ get hasWrapper() {
178
+ return this.args.hasWrapper ?? true;
179
+ }
180
+ get styles() {
181
+ const {
182
+ table
183
+ } = useStyles();
184
+ return table({
185
+ size: this.args.size,
186
+ layout: this.args.layout,
187
+ striped: this.args.isStriped,
188
+ isScrollable: this.args.isScrollable || false,
189
+ hasStickyHeader: false,
190
+ isLoading: this.args.hasCustomLoading ? false : this.args.isLoading || false,
191
+ loadingColor: this.args.loadingColor,
192
+ selectionColor: this.args.selectionColor,
193
+ class: this.args.classes?.base
194
+ });
195
+ }
196
+ get wrapperClassNames() {
197
+ return this.styles.wrapper({
198
+ class: this.args.classes?.wrapper
199
+ });
200
+ }
201
+ get tableClassNames() {
202
+ return this.styles.table({
203
+ class: this.args.classes?.table
204
+ });
205
+ }
206
+ static {
207
+ setComponentTemplate(precompileTemplate("\n {{#if this.hasWrapper}}\n <div class={{this.wrapperClassNames}} data-component=\"table-wrapper\">\n <table class={{this.tableClassNames}} data-test-id=\"table\" data-component=\"table\" data-loading={{if this.args.isLoading \"true\" \"false\"}} ...attributes>\n {{yield (hash Header=(component SimpleTableHeader styleFns=this.styles classes=this.args.classes) Body=(component SimpleTableBody styleFns=this.styles classes=this.args.classes) Footer=(component SimpleTableFooter styleFns=this.styles classes=this.args.classes) Column=(component SimpleTableColumn styleFns=this.styles) Row=(component SimpleTableRow styleFns=this.styles classes=this.args.classes) Cell=(component SimpleTableCell styleFns=this.styles classes=this.args.classes))}}\n </table>\n </div>\n {{else}}\n <table class={{this.tableClassNames}} data-test-id=\"table\" data-component=\"table\" data-loading={{if this.args.isLoading \"true\" \"false\"}} ...attributes>\n {{yield (hash Header=(component SimpleTableHeader styleFns=this.styles classes=this.args.classes) Body=(component SimpleTableBody styleFns=this.styles classes=this.args.classes) Footer=(component SimpleTableFooter styleFns=this.styles classes=this.args.classes) Column=(component SimpleTableColumn styleFns=this.styles) Row=(component SimpleTableRow styleFns=this.styles classes=this.args.classes) Cell=(component SimpleTableCell styleFns=this.styles classes=this.args.classes))}}\n </table>\n {{/if}}\n ", {
208
+ strictMode: true,
209
+ scope: () => ({
210
+ hash,
211
+ SimpleTableHeader,
212
+ SimpleTableBody,
213
+ SimpleTableFooter,
214
+ SimpleTableColumn,
215
+ SimpleTableRow,
216
+ SimpleTableCell
217
+ })
218
+ }), this);
219
+ }
220
+ }
221
+
222
+ /**
223
+ * Helper to extract Frontile sticky options from a universal-ember column's pluginOptions
224
+ */
225
+ function extractFrontileOptions(column) {
226
+ if (!column?.config?.pluginOptions) {
227
+ return undefined;
228
+ }
229
+
230
+ // Find the frontile plugin option
231
+ const pluginOptions = column.config.pluginOptions;
232
+ const frontileOption = pluginOptions.find(option => Array.isArray(option) && option[0] === 'frontile');
233
+ if (frontileOption && typeof frontileOption[1] === 'function') {
234
+ return frontileOption[1]();
235
+ }
236
+ return undefined;
237
+ }
238
+
239
+ /**
240
+ * Icon components used in the table component
241
+ */
242
+ const ChevronUpIcon = setComponentTemplate(precompileTemplate("\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" ...attributes>\n {{!-- @glint-ignore: error after glint upgrade --}}\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m4.5 15.75 7.5-7.5 7.5 7.5\" />\n </svg>\n", {
243
+ strictMode: true
244
+ }), templateOnly());
245
+ const ChevronDownIcon = setComponentTemplate(precompileTemplate("\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" ...attributes>\n {{!-- @glint-ignore: error after glint upgrade --}}\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m19.5 8.25-7.5 7.5-7.5-7.5\" />\n </svg>\n", {
246
+ strictMode: true
247
+ }), templateOnly());
248
+ const ColumnVisibilityIcon = setComponentTemplate(precompileTemplate("\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" ...attributes>\n {{!-- @glint-ignore: error after glint upgrade --}}\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z\" />\n </svg>\n", {
249
+ strictMode: true
250
+ }), templateOnly());
251
+
252
+ class ColumnVisibility extends Component {
253
+ get styles() {
254
+ const {
255
+ table
256
+ } = useStyles();
257
+ return table();
258
+ }
259
+ get size() {
260
+ return this.args.size ?? 'xs';
261
+ }
262
+ get columns() {
263
+ return this.args.tableInstance?.columns.values() || [];
264
+ }
265
+ get selectedKeys() {
266
+ return this.columns.filter(column => isVisible(column)).map(column => column.key);
267
+ }
268
+ get allColumnKeys() {
269
+ return this.columns.map(column => column.key);
270
+ }
271
+ handleSelectionChange(selectedKeys) {
272
+ this.columns.forEach(column => {
273
+ if (selectedKeys.includes(column.key)) {
274
+ if (!isVisible(column)) {
275
+ show(column);
276
+ }
277
+ } else {
278
+ if (isVisible(column)) {
279
+ hide(column);
280
+ }
281
+ }
282
+ });
283
+ }
284
+ static {
285
+ decorateMethodV2(this.prototype, "handleSelectionChange", [action]);
286
+ }
287
+ static {
288
+ setComponentTemplate(precompileTemplate("\n <Dropdown @closeOnItemSelect={{false}} ...attributes>\n <:default as |d|>\n <d.Trigger @intent=\"default\" @size={{this.size}} @class={{(this.styles.columnVisibilityButton)}}>\n\n {{#if (has-block \"icon\")}}\n {{yield to=\"icon\"}}\n {{else}}\n <ColumnVisibilityIcon class={{(this.styles.columnVisibilityIcon)}} />\n {{/if}}\n {{yield}}\n </d.Trigger>\n\n <d.Menu @selectionMode=\"multiple\" @selectedKeys={{this.selectedKeys}} @onSelectionChange={{this.handleSelectionChange}} as |Item|>\n {{#each @tableInstance.columns as |column|}}\n <Item @key={{column.key}}>\n {{column.name}}\n </Item>\n {{/each}}\n </d.Menu>\n </:default>\n </Dropdown>\n ", {
289
+ strictMode: true,
290
+ scope: () => ({
291
+ Dropdown,
292
+ ColumnVisibilityIcon
293
+ })
294
+ }), this);
295
+ }
296
+ }
297
+
298
+ /**
299
+ * Conditional rendering component for table cells. Only renders its content
300
+ * when the current column key matches the specified @key argument.
301
+ *
302
+ * Usage:
303
+ * ```hbs
304
+ * <c.For @key="status">
305
+ * <StatusBadge @status={{c.value}} />
306
+ * </c.For>
307
+ * ```
308
+ */
309
+ class CellForComponent extends Component {
310
+ get shouldRender() {
311
+ const matches = this.args.column.key === this.args.key;
312
+ // If this component matches the current column, claim the key
313
+ // so that CellDefaultComponent knows not to render
314
+ if (matches) {
315
+ this.args.registry.claimKey(this.args.key);
316
+ }
317
+ return matches;
318
+ }
319
+ static {
320
+ setComponentTemplate(precompileTemplate("\n {{#if this.shouldRender}}\n {{yield}}\n {{/if}}\n ", {
321
+ strictMode: true
322
+ }), this);
323
+ }
324
+ }
325
+
326
+ /**
327
+ * Default/fallback rendering component for table cells. Only renders its content
328
+ * when no CellForComponent has claimed the current column key.
329
+ *
330
+ * Usage:
331
+ * ```hbs
332
+ * <c.Default>
333
+ * Default: {{c.value}}
334
+ * </c.Default>
335
+ *
336
+ * <!-- Or with explicit exclusions -->
337
+ * <c.Default @except={{array "status" "actions"}}>
338
+ * {{c.value}}
339
+ * </c.Default>
340
+ * ```
341
+ */
342
+ class CellDefaultComponent extends Component {
343
+ get shouldRender() {
344
+ const currentKey = this.args.column.key;
345
+ // Check explicit exclusions first
346
+ if (this.args.except?.includes(currentKey)) {
347
+ return false;
348
+ }
349
+ // Check if any CellForComponent has claimed this key
350
+ return !this.args.registry.isKeyClaimed(currentKey);
351
+ }
352
+ static {
353
+ setComponentTemplate(precompileTemplate("\n {{#if this.shouldRender}}\n {{yield}}\n {{/if}}\n ", {
354
+ strictMode: true
355
+ }), this);
356
+ }
357
+ }
358
+
359
+ class SortButton extends Component {
360
+ get styles() {
361
+ const {
362
+ table
363
+ } = useStyles();
364
+ return table();
365
+ }
366
+ get showUpIcon() {
367
+ return this.args.sortDirection === SortDirection.Ascending;
368
+ }
369
+ static {
370
+ setComponentTemplate(precompileTemplate("\n <button type=\"button\" class=\"{{(this.styles.sortButton)}}\" data-sort-direction={{@sortDirection}} data-sorted=\"{{@isSorted}}\" {{press @onSort}} ...attributes>\n <span>\n {{@column.name}}\n </span>\n {{#if this.showUpIcon}}\n <ChevronUpIcon class={{(this.styles.sortIcon)}} data-sorted=\"{{@isSorted}}\" aria-hidden=\"true\" />\n {{else}}\n <ChevronDownIcon class={{(this.styles.sortIcon)}} data-sorted=\"{{@isSorted}}\" aria-hidden=\"true\" />\n {{/if}}\n </button>\n ", {
371
+ strictMode: true,
372
+ scope: () => ({
373
+ press,
374
+ ChevronUpIcon,
375
+ ChevronDownIcon
376
+ })
377
+ }), this);
378
+ }
379
+ }
380
+
381
+ /**
382
+ * Internal checkbox component for table selection.
383
+ * Simplified version without FormControl wrapper.
384
+ */
385
+ class Checkbox extends Component {
386
+ get isChecked() {
387
+ return !!this.args.checked;
388
+ }
389
+ handleChange(event) {
390
+ if (this.args.disabled) {
391
+ return;
392
+ }
393
+ const target = event.target;
394
+ const value = target.checked;
395
+ if (typeof this.args.onChange === 'function') {
396
+ this.args.onChange(value, event);
397
+ }
398
+ }
399
+ static {
400
+ decorateMethodV2(this.prototype, "handleChange", [action]);
401
+ }
402
+ get classes() {
403
+ const {
404
+ checkbox
405
+ } = useStyles();
406
+ return checkbox({
407
+ size: this.args.size
408
+ });
409
+ }
410
+ setIndeterminate = modifier((element, [indeterminate]) => {
411
+ element.indeterminate = !!indeterminate;
412
+ });
413
+ static {
414
+ setComponentTemplate(precompileTemplate("\n <input {{on \"change\" this.handleChange}} {{this.setIndeterminate @indeterminate}} type=\"checkbox\" checked={{this.isChecked}} disabled={{@disabled}} class={{this.classes.input class=@classes.input}} aria-label={{@ariaLabel}} aria-labelledby={{@ariaLabelledby}} role=\"checkbox\" aria-checked={{if @indeterminate \"mixed\" (if this.isChecked \"true\" \"false\")}} ...attributes />\n ", {
415
+ strictMode: true,
416
+ scope: () => ({
417
+ on
418
+ })
419
+ }), this);
420
+ }
421
+ }
422
+
423
+ /**
424
+ * Context class to track which column keys have been claimed by CellForComponent
425
+ * instances during cell rendering. This enables CellDefaultComponent to only
426
+ * render when no specific column renderer has claimed the current column key.
427
+ */
428
+ class CellRenderingContext {
429
+ claimedKeys = new Set();
430
+
431
+ /**
432
+ * Mark a column key as claimed by a CellForComponent
433
+ */
434
+ claimKey(key) {
435
+ this.claimedKeys.add(key);
436
+ }
437
+
438
+ /**
439
+ * Check if a column key has been claimed by any CellForComponent
440
+ */
441
+ isKeyClaimed(key) {
442
+ return this.claimedKeys.has(key);
443
+ }
444
+
445
+ /**
446
+ * Reset the claimed keys (called between cell renders)
447
+ */
448
+ reset() {
449
+ this.claimedKeys.clear();
450
+ }
451
+
452
+ /**
453
+ * Get all claimed keys (useful for debugging)
454
+ */
455
+ get claimedKeysList() {
456
+ return Array.from(this.claimedKeys);
457
+ }
458
+ }
459
+
460
+ const and = (a, b) => {
461
+ return a && b;
462
+ };
463
+ // Standalone helper functions that don't depend on component state
464
+ function columnIsSticky(column) {
465
+ const frontileOptions = extractFrontileOptions(column);
466
+ return frontileOptions?.isSticky ?? false;
467
+ }
468
+ function columnStickyPosition(column) {
469
+ const frontileOptions = extractFrontileOptions(column);
470
+ return frontileOptions?.stickyPosition;
471
+ }
472
+ function createCellContext(column, row) {
473
+ const registry = new CellRenderingContext();
474
+ return {
475
+ column,
476
+ row,
477
+ value: column.getValueForRow(row),
478
+ registry
479
+ };
480
+ }
481
+ function columnIsSorted(column) {
482
+ return sortDirection(column) !== 'none';
483
+ }
484
+ function isSelectionColumn(column) {
485
+ return column.key === '__selection__';
486
+ }
487
+ const calculateHeaderHeight = modifier((el, [isStickyHeader]) => {
488
+ if (isStickyHeader) {
489
+ const updateHeight = () => {
490
+ const thead = el.querySelector('thead');
491
+ if (thead) {
492
+ const headerHeight = Math.round(thead.offsetHeight);
493
+ el.style.setProperty('--table-header-height', `${headerHeight}px`);
494
+ }
495
+ };
496
+ requestAnimationFrame(updateHeight);
497
+ // Update on resize
498
+ let observer;
499
+ observer = new ResizeObserver(updateHeight);
500
+ observer.observe(el);
501
+ return () => {
502
+ if (observer) {
503
+ observer.disconnect();
504
+ }
505
+ };
506
+ }
507
+ });
508
+ class Table extends Component {
509
+ ColumnVisibility = ColumnVisibility;
510
+ CellFor = CellForComponent;
511
+ CellDefault = CellDefaultComponent;
512
+ SortButton = SortButton;
513
+ Checkbox = Checkbox;
514
+ // Tracked state for sorting
515
+ static {
516
+ decorateFieldV2(this.prototype, "sorts", [tracked], function () {
517
+ return [];
518
+ });
519
+ }
520
+ #sorts = (initializeDeferredDecorator(this, "sorts"), void 0);
521
+ static {
522
+ decorateFieldV2(this.prototype, "internalSelectedKeys", [tracked], function () {
523
+ return new Set();
524
+ });
525
+ }
526
+ #internalSelectedKeys = (initializeDeferredDecorator(this, "internalSelectedKeys"), void 0); // Tracked state for uncontrolled selection
527
+ constructor(owner, args) {
528
+ super(owner, args);
529
+ // Initialize sorts from initialSort if provided (only on mount)
530
+ if (args.initialSort) {
531
+ this.sorts = [args.initialSort];
532
+ }
533
+ }
534
+ // Selection helpers
535
+ get selectionMode() {
536
+ return this.args.selectionMode ?? 'none';
537
+ }
538
+ get hasSelection() {
539
+ return this.selectionMode !== 'none';
540
+ }
541
+ get selectedKeysSet() {
542
+ // Use controlled state if provided, otherwise use internal state
543
+ const isControlled = this.args.selectedKeys !== undefined;
544
+ const sourceKeys = isControlled ? this.args.selectedKeys : this.internalSelectedKeys;
545
+ if (!sourceKeys) {
546
+ return new Set();
547
+ }
548
+ return sourceKeys instanceof Set ? sourceKeys : new Set(sourceKeys);
549
+ }
550
+ static {
551
+ decorateMethodV2(this.prototype, "selectedKeysSet", [cached]);
552
+ }
553
+ get disabledKeysSet() {
554
+ const keys = this.args.disabledKeys;
555
+ return keys ? new Set(keys) : new Set();
556
+ }
557
+ // Extract actual data from row (handles both row.data and direct row)
558
+ static {
559
+ decorateMethodV2(this.prototype, "disabledKeysSet", [cached]);
560
+ }
561
+ getRowData = row => {
562
+ if (row.data && row.table) {
563
+ return row.data;
564
+ }
565
+ return row;
566
+ };
567
+ // Get key from item or row - unified method
568
+ getKey = itemOrRow => {
569
+ // Extract the actual item from row if needed
570
+ const item = itemOrRow.data ? this.getRowData(itemOrRow) : itemOrRow;
571
+ // Use provided getKey function if available
572
+ if (this.args.getKey) {
573
+ return this.args.getKey(item);
574
+ }
575
+ // Try keyAndLabelForItem helper
576
+ try {
577
+ const {
578
+ key
579
+ } = keyAndLabelForItem(item);
580
+ return key;
581
+ } catch {
582
+ // Final fallback
583
+ return String(item);
584
+ }
585
+ };
586
+ // Check if a key is disabled
587
+ isKeyDisabled = key => {
588
+ return this.disabledKeysSet.has(key);
589
+ };
590
+ // Selection handlers
591
+ handleSelect = key => {
592
+ if (this.isKeyDisabled(key)) return;
593
+ const newSelection = new Set(this.selectedKeysSet);
594
+ if (this.selectionMode === 'single') {
595
+ // Single selection: clear all and add only the new one
596
+ newSelection.clear();
597
+ newSelection.add(key);
598
+ } else {
599
+ // Multiple selection: add to existing
600
+ newSelection.add(key);
601
+ }
602
+ // Update internal state if uncontrolled
603
+ const isControlled = this.args.selectedKeys !== undefined;
604
+ if (!isControlled) {
605
+ this.internalSelectedKeys = newSelection;
606
+ }
607
+ // Always call onChange callback if provided
608
+ this.args.onSelectionChange?.(newSelection);
609
+ };
610
+ handleDeselect = key => {
611
+ if (this.isKeyDisabled(key)) return;
612
+ const newSelection = new Set(this.selectedKeysSet);
613
+ newSelection.delete(key);
614
+ // Update internal state if uncontrolled
615
+ const isControlled = this.args.selectedKeys !== undefined;
616
+ if (!isControlled) {
617
+ this.internalSelectedKeys = newSelection;
618
+ }
619
+ // Always call onChange callback if provided
620
+ this.args.onSelectionChange?.(newSelection);
621
+ };
622
+ // Check if a row is selected
623
+ isRowSelected = row => {
624
+ return this.selectedKeysSet.has(this.getKey(row.data));
625
+ };
626
+ // Check if a row is disabled
627
+ isRowDisabled = row => {
628
+ return this.isKeyDisabled(this.getKey(row.data));
629
+ };
630
+ // Handler for row checkbox change
631
+ handleRowSelectionChange = (row, checked) => {
632
+ const key = this.getKey(row.data);
633
+ if (checked) {
634
+ this.handleSelect(key);
635
+ } else {
636
+ this.handleDeselect(key);
637
+ }
638
+ };
639
+ // Handler for keyboard row selection and navigation
640
+ handleRowKeydown = (row, event) => {
641
+ if (!this.hasSelection) return;
642
+ // Handle arrow key navigation
643
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
644
+ event.preventDefault();
645
+ const currentElement = event.target;
646
+ const allRows = Array.from(currentElement.closest('tbody')?.querySelectorAll('[data-selectable="true"]') || []);
647
+ const currentIndex = allRows.indexOf(currentElement);
648
+ if (event.key === 'ArrowDown' && currentIndex < allRows.length - 1) {
649
+ allRows[currentIndex + 1]?.focus();
650
+ } else if (event.key === 'ArrowUp' && currentIndex > 0) {
651
+ allRows[currentIndex - 1]?.focus();
652
+ }
653
+ return;
654
+ }
655
+ // Handle selection (Space/Enter)
656
+ if (this.isRowDisabled(row)) return;
657
+ // Only handle Space and Enter keys
658
+ if (event.key !== ' ' && event.key !== 'Enter') return;
659
+ // Prevent default behavior (scroll for Space, form submission for Enter)
660
+ event.preventDefault();
661
+ const key = this.getKey(row.data);
662
+ const isSelected = this.isRowSelected(row);
663
+ if (this.selectionMode === 'single') {
664
+ // Single selection: always select the row
665
+ this.handleSelect(key);
666
+ } else {
667
+ // Multiple selection: toggle
668
+ if (isSelected) {
669
+ this.handleDeselect(key);
670
+ } else {
671
+ this.handleSelect(key);
672
+ }
673
+ }
674
+ };
675
+ // Modifier for row keyboard navigation
676
+ rowKeyboardHandler = modifier((element, [row]) => {
677
+ const handler = event => {
678
+ this.handleRowKeydown(row, event);
679
+ };
680
+ element.addEventListener('keydown', handler);
681
+ return () => {
682
+ element.removeEventListener('keydown', handler);
683
+ };
684
+ });
685
+ // Get all selectable (non-disabled) item keys
686
+ get selectableKeys() {
687
+ const items = this.args.items || [];
688
+ return items.map(item => this.getKey(item)).filter(key => !this.isKeyDisabled(key));
689
+ }
690
+ // Check if all selectable rows are selected
691
+ get isAllSelected() {
692
+ if (this.selectableKeys.length === 0) return false;
693
+ return this.selectableKeys.every(key => this.selectedKeysSet.has(key));
694
+ }
695
+ // Check if some (but not all) selectable rows are selected
696
+ get isSomeSelected() {
697
+ if (this.selectedKeysSet.size === 0) return false;
698
+ if (this.isAllSelected) return false;
699
+ return this.selectableKeys.some(key => this.selectedKeysSet.has(key));
700
+ }
701
+ // Handler for select all checkbox change
702
+ handleSelectAllChange = checked => {
703
+ const newSelection = new Set(this.selectedKeysSet);
704
+ if (checked) {
705
+ // Select all selectable rows
706
+ this.selectableKeys.forEach(key => {
707
+ newSelection.add(key);
708
+ });
709
+ } else {
710
+ // Deselect all selectable rows
711
+ this.selectableKeys.forEach(key => {
712
+ newSelection.delete(key);
713
+ });
714
+ }
715
+ // Update internal state if uncontrolled
716
+ const isControlled = this.args.selectedKeys !== undefined;
717
+ if (!isControlled) {
718
+ this.internalSelectedKeys = newSelection;
719
+ }
720
+ // Always call onChange callback if provided
721
+ this.args.onSelectionChange?.(newSelection);
722
+ };
723
+ // Add checkbox column for multiple selection
724
+ get columnsWithSelection() {
725
+ if (this.selectionMode !== 'multiple') {
726
+ return this.args.columns;
727
+ }
728
+ // Add checkbox column as the first column
729
+ const checkboxColumn = {
730
+ key: '__selection__',
731
+ name: '',
732
+ isSticky: this.args.isScrollable || false,
733
+ stickyPosition: 'left'
734
+ };
735
+ return [checkboxColumn, ...this.args.columns];
736
+ }
737
+ // Transform Frontile ColumnConfig to universal-ember ColumnConfig with pluginOptions
738
+ processColumns(columns) {
739
+ if (!columns) return [];
740
+ return columns.map(column => {
741
+ const {
742
+ isSticky,
743
+ stickyPosition,
744
+ isVisible,
745
+ isSortable,
746
+ sortProperty,
747
+ Cell,
748
+ value,
749
+ ...baseColumn
750
+ } = column;
751
+ const pluginOptions = [];
752
+ // Add Frontile sticky options if present
753
+ if (isSticky !== undefined || stickyPosition !== undefined) {
754
+ const frontileOption = ['frontile', () => ({
755
+ isSticky,
756
+ stickyPosition
757
+ })];
758
+ pluginOptions.push(frontileOption);
759
+ }
760
+ // Add ColumnVisibility plugin option if isVisible is explicitly set
761
+ if (isVisible !== undefined) {
762
+ pluginOptions.push(ColumnVisibility$1.forColumn(() => ({
763
+ isVisible
764
+ })));
765
+ }
766
+ // Add DataSorting plugin option - always add it to override the default (true) with our default (false)
767
+ pluginOptions.push(DataSorting.forColumn(() => ({
768
+ isSortable: isSortable ?? false,
769
+ sortProperty
770
+ })));
771
+ // Create the universal-ember column configuration
772
+ const universalColumn = {
773
+ key: baseColumn.key,
774
+ name: baseColumn.name,
775
+ pluginOptions: pluginOptions.length > 0 ? pluginOptions : undefined
776
+ };
777
+ // Add value function if provided
778
+ if (value) {
779
+ universalColumn.value = value;
780
+ }
781
+ // Add Cell component if provided
782
+ if (Cell) {
783
+ universalColumn.Cell = Cell;
784
+ }
785
+ return universalColumn;
786
+ });
787
+ }
788
+ // Handler for sort state changes from the DataSorting plugin
789
+ handleSortChange = newSorts => {
790
+ this.sorts = newSorts;
791
+ };
792
+ tableInstance = headlessTable(this, {
793
+ data: () => this.sortedItems,
794
+ columns: () => this.processColumns(this.columnsWithSelection),
795
+ plugins: [ColumnVisibility$1, DataSorting.with(() => ({
796
+ sorts: this.sorts,
797
+ onSort: this.handleSortChange
798
+ })), ...(this.hasSelection ? [RowSelection.with(() => ({
799
+ selection: this.selectedKeysSet,
800
+ key: this.getKey,
801
+ onSelect: this.handleSelect,
802
+ onDeselect: this.handleDeselect
803
+ }))] : [])]
804
+ });
805
+ // Computed property that returns sorted items based on current sort state
806
+ get sortedItems() {
807
+ const items = this.args.items || [];
808
+ // If no onSort handler or no active sorts, return items as-is
809
+ if (!this.args.onSort || this.sorts.length === 0) {
810
+ return items;
811
+ }
812
+ // Only use the first sort item (single column sorting)
813
+ const sortDescriptor = this.sorts[0];
814
+ if (!sortDescriptor) {
815
+ return items;
816
+ }
817
+ return this.args.onSort(items, sortDescriptor);
818
+ }
819
+ get styles() {
820
+ const {
821
+ table
822
+ } = useStyles();
823
+ return table({
824
+ size: this.args.size,
825
+ layout: this.args.layout,
826
+ striped: this.args.isStriped,
827
+ isScrollable: this.args.isScrollable || false,
828
+ hasStickyHeader: this.args.isStickyHeader || false,
829
+ isLoading: this.args.isLoading || false,
830
+ loadingColor: this.args.loadingColor,
831
+ selectionColor: this.args.selectionColor,
832
+ class: this.args.classes?.base
833
+ });
834
+ }
835
+ get wrapperClassNames() {
836
+ return this.styles.wrapper({
837
+ class: this.args.classes?.wrapper
838
+ });
839
+ }
840
+ get tableClassNames() {
841
+ return this.styles.table({
842
+ class: this.args.classes?.table
843
+ });
844
+ }
845
+ get headlessColumns() {
846
+ return columns.for(this.tableInstance);
847
+ }
848
+ get headlessRows() {
849
+ return this.tableInstance.rows.values();
850
+ }
851
+ // Helper to check if a row is sticky
852
+ isRowSticky = row => {
853
+ return !!this.args.stickyKeys?.includes(this.getKey(row));
854
+ };
855
+ static {
856
+ setComponentTemplate(precompileTemplate("\n <div class={{this.wrapperClassNames}} {{calculateHeaderHeight @isStickyHeader}} {{this.tableInstance.modifiers.container}} data-component=\"table-wrapper\">\n {{#if (has-block \"toolbar\")}}\n <div class=\"table-toolbar\" data-component=\"table-toolbar\">\n {{yield (hash ColumnVisibility=(component this.ColumnVisibility tableInstance=this.tableInstance)) to=\"toolbar\"}}\n </div>\n {{/if}}\n\n <SimpleTable @classes={{this.args.classes}} @size={{@size}} @layout={{@layout}} @isStriped={{@isStriped}} @isScrollable={{@isScrollable}} @hasWrapper={{false}} @isLoading={{@isLoading}} @loadingColor={{@loadingColor}} @selectionColor={{@selectionColor}} @hasCustomLoading={{has-block \"loading\"}} as |t|>\n <t.Header @isSticky={{@isStickyHeader}}>\n {{#each this.headlessColumns as |column|}}\n <t.Column {{this.tableInstance.modifiers.columnHeader column}} @isSticky={{columnIsSticky column}} @stickyPosition={{columnStickyPosition column}} data-key={{column.key}} data-sortable=\"{{(isColumnSortable column)}}\">\n {{#if (isSelectionColumn column)}}\n {{!-- Selection column header - render select all checkbox if enabled (default true) --}}\n {{#if (if @showSelectAll @showSelectAll true)}}\n <this.Checkbox @checked={{this.isAllSelected}} @indeterminate={{this.isSomeSelected}} @onChange={{this.handleSelectAllChange}} @size={{@size}} @ariaLabel=\"Select all rows\" />\n {{/if}}\n {{else if (has-block \"header\")}}\n {{yield (hash column=column isSortable=(isColumnSortable column) sortDirection=(getColumnSortDirection column) isSorted=(columnIsSorted column) onSort=(fn sortColumn column)) to=\"header\"}}\n {{else if (isColumnSortable column)}}\n <this.SortButton @column={{column}} @sortDirection={{getColumnSortDirection column}} @isSorted={{columnIsSorted column}} @onSort={{fn sortColumn column}} />\n {{else}}\n {{column.name}}\n {{/if}}\n </t.Column>\n {{/each}}\n </t.Header>\n\n <t.Body>\n {{#if (has-block \"bodyTop\")}}\n {{yield to=\"bodyTop\"}}\n {{/if}}\n\n {{#each this.headlessRows as |row|}}\n <t.Row {{this.tableInstance.modifiers.row row}} {{this.rowKeyboardHandler row}} @isSticky={{this.isRowSticky row}} @hasStickyHeader={{@isStickyHeader}} data-key={{this.getKey row}} data-selected={{if (this.isRowSelected row) \"true\" \"false\"}} data-disabled={{if (this.isRowDisabled row) \"true\"}} data-selectable={{if this.hasSelection \"true\"}} tabindex={{if this.hasSelection \"0\" \"-1\"}}>\n {{#each this.headlessColumns as |column|}}\n <t.Cell @isSticky={{columnIsSticky column}} @stickyPosition={{columnStickyPosition column}} @isInStickyRow={{this.isRowSticky row}} data-column={{column.key}}>\n {{#if (isSelectionColumn column)}}\n {{!-- Selection column cell - render checkbox --}}\n <this.Checkbox @checked={{this.isRowSelected row}} @disabled={{this.isRowDisabled row}} @onChange={{fn this.handleRowSelectionChange row}} @size={{@size}} @ariaLabel=\"Select row\" />\n {{else if (has-block \"cell\")}}\n {{#let (createCellContext column row) as |cellContext|}}\n {{yield (hash column=cellContext.column value=cellContext.value row=cellContext.row For=(component this.CellFor column=column registry=cellContext.registry) Default=(component this.CellDefault column=column registry=cellContext.registry)) to=\"cell\"}}\n {{/let}}\n {{else}}\n {{#if column.Cell}}\n <column.Cell @row={{row}} @column={{column}} />\n {{else}}\n {{column.getValueForRow row}}\n {{/if}}\n {{/if}}\n </t.Cell>\n {{/each}}\n </t.Row>\n {{else}}\n {{#unless @isLoading}}\n {{#if (has-block \"empty\")}}\n <t.Row data-test-id=\"table-empty-row\">\n <t.Cell @class={{(this.styles.empty)}} colspan={{this.headlessColumns.length}} data-test-id=\"table-empty-cell\">\n {{yield to=\"empty\"}}\n </t.Cell>\n </t.Row>\n {{else if @emptyContent}}\n <t.Row data-test-id=\"table-empty-row\">\n <t.Cell @class={{(this.styles.empty)}} colspan={{this.headlessColumns.length}} data-test-id=\"table-empty-cell\">\n {{@emptyContent}}\n </t.Cell>\n </t.Row>\n {{/if}}\n {{/unless}}\n {{/each}}\n\n {{#if (and @isLoading (has-block \"loading\"))}}\n <t.Row data-test-id=\"table-loading-row\">\n <t.Cell colspan={{this.headlessColumns.length}} data-test-id=\"table-loading-cell\">\n {{yield to=\"loading\"}}\n </t.Cell>\n </t.Row>\n {{/if}}\n\n {{#if (has-block \"bodyBottom\")}}\n {{yield to=\"bodyBottom\"}}\n {{/if}}\n </t.Body>\n\n {{#if @footerColumns}}\n <t.Footer @isSticky={{@isStickyFooter}}>\n {{#each @footerColumns as |column|}}\n <t.Column data-key={{column.key}}>\n {{column.name}}\n </t.Column>\n {{/each}}\n </t.Footer>\n {{/if}}\n </SimpleTable>\n </div>\n ", {
857
+ strictMode: true,
858
+ scope: () => ({
859
+ calculateHeaderHeight,
860
+ hash,
861
+ SimpleTable,
862
+ columnIsSticky,
863
+ columnStickyPosition,
864
+ isColumnSortable: isSortable,
865
+ isSelectionColumn,
866
+ getColumnSortDirection: sortDirection,
867
+ columnIsSorted,
868
+ fn,
869
+ sortColumn: sort,
870
+ createCellContext,
871
+ and
872
+ })
873
+ }), this);
874
+ }
875
+ }
876
+
877
+ export { SimpleTable as S, Table as T };
878
+ //# sourceMappingURL=table-BDc4IZIE.js.map