wcz-layout 10.1.2 → 10.1.7
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/dist/{AggregatedCell-C7nAQyMO.mjs → AggregatedCell-CqGptV6i.mjs} +199 -150
- package/dist/AggregatedCell-CqGptV6i.mjs.map +1 -0
- package/dist/Approval-DoD-GRRH.mjs.map +1 -1
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +1 -1
- package/dist/Email-BzQQkbe9.mjs.map +1 -1
- package/dist/FileMeta-DDqUju1Y.mjs.map +1 -1
- package/dist/{LayoutTable-DX9IaO8V.d.mts → LayoutTable-CRo43iWr.d.mts} +7 -3
- package/dist/{RouterListItemButton-ULMlaQh6.mjs → RouterListItemButton-ke6iPKkL.mjs} +9 -9
- package/dist/RouterListItemButton-ke6iPKkL.mjs.map +1 -0
- package/dist/{approval-DiNOXd4B.mjs → approval-L09uPzTU.mjs} +2 -2
- package/dist/approval-L09uPzTU.mjs.map +1 -0
- package/dist/auth.d.mts +1 -0
- package/dist/auth.mjs +15 -12
- package/dist/auth.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.mjs +594 -361
- package/dist/components.mjs.map +1 -1
- package/dist/{createApi-DGJJ4I_R.mjs → createApi-BhNkG4jz.mjs} +3 -3
- package/dist/createApi-BhNkG4jz.mjs.map +1 -0
- package/dist/data/client.mjs +3 -3
- package/dist/data/client.mjs.map +1 -1
- package/dist/data/server.mjs +4 -4
- package/dist/data/server.mjs.map +1 -1
- package/dist/{file-C14fhUeg.mjs → file-Chlljz3o.mjs} +4 -4
- package/dist/file-Chlljz3o.mjs.map +1 -0
- package/dist/{file-C5BOj1q8.mjs → file-Dl8JCcqy.mjs} +4 -4
- package/dist/file-Dl8JCcqy.mjs.map +1 -0
- package/dist/hooks.d.mts +2 -1
- package/dist/hooks.mjs +541 -591
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +438 -428
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.mjs +2 -2
- package/dist/middleware.mjs.map +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/{peoplesoft-BkJMCcHb.mjs → peoplesoft-BhintHQz.mjs} +3 -3
- package/dist/peoplesoft-BhintHQz.mjs.map +1 -0
- package/dist/{providers-DrairEO2.mjs → providers-BvuZWkpD.mjs} +2 -2
- package/dist/providers-BvuZWkpD.mjs.map +1 -0
- package/dist/{tokens-BLRreL1j.mjs → tokens-XuFhVbh5.mjs} +9 -6
- package/dist/tokens-XuFhVbh5.mjs.map +1 -0
- package/dist/{utils-BUpDoqme.mjs → utils-CaeVFWF-.mjs} +18 -7
- package/dist/utils-CaeVFWF-.mjs.map +1 -0
- package/dist/utils.mjs +1 -1
- package/dist/vite.mjs +11 -0
- package/dist/vite.mjs.map +1 -1
- package/package.json +131 -130
- package/skills/client-db/SKILL.md +136 -136
- package/skills/db-schema/SKILL.md +98 -98
- package/skills/dialogs/SKILL.md +74 -74
- package/skills/forms/SKILL.md +122 -122
- package/skills/general/SKILL.md +127 -127
- package/skills/general/references/exports.md +6 -1
- package/skills/migrations/SKILL.md +57 -57
- package/skills/migrations/versions/migrate-v10-to-v11.md +2 -1
- package/skills/migrations/versions/migrate-v9-to-v10.md +582 -582
- package/skills/routing/SKILL.md +87 -87
- package/skills/server-functions/SKILL.md +95 -95
- package/skills/services/SKILL.md +34 -34
- package/skills/services/docs/email.md +32 -32
- package/skills/services/docs/file.md +108 -108
- package/skills/services/docs/peoplesoft.md +114 -114
- package/skills/start/SKILL.md +52 -52
- package/skills/start/steps/01-git-setup.md +10 -10
- package/skills/start/steps/02-project-name-setup.md +19 -19
- package/skills/start/steps/03-apm-setup.md +97 -208
- package/skills/start/steps/04-wicop-setup.md +105 -105
- package/skills/start/steps/05-database-setup.md +52 -52
- package/skills/start/steps/06-entra-setup.md +96 -96
- package/skills/start/steps/07-vault-setup.md +115 -115
- package/skills/start/steps/08-generate-favicon.md +8 -8
- package/skills/start/steps/09-gitlab-ci.md +25 -25
- package/skills/start/steps/10-commit.md +15 -15
- package/skills/table/SKILL.md +266 -264
- package/dist/AggregatedCell-C7nAQyMO.mjs.map +0 -1
- package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
- package/dist/approval-DiNOXd4B.mjs.map +0 -1
- package/dist/createApi-DGJJ4I_R.mjs.map +0 -1
- package/dist/file-C14fhUeg.mjs.map +0 -1
- package/dist/file-C5BOj1q8.mjs.map +0 -1
- package/dist/peoplesoft-BkJMCcHb.mjs.map +0 -1
- package/dist/providers-DrairEO2.mjs.map +0 -1
- package/dist/tokens-BLRreL1j.mjs.map +0 -1
- package/dist/utils-BUpDoqme.mjs.map +0 -1
package/skills/table/SKILL.md
CHANGED
|
@@ -1,264 +1,266 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: table
|
|
3
|
-
description: "Use when building or changing a data table. Covers useLayoutTable, LayoutTable, createLayoutColumnHelper, column definitions and headers, cell formatters, filter variants, sorting, row selection and bulk actions, per-row actions, pagination, footer aggregation."
|
|
4
|
-
metadata:
|
|
5
|
-
type: convention
|
|
6
|
-
library: wcz-layout
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Table patterns
|
|
10
|
-
|
|
11
|
-
> Mechanics (`createTableHook`, column helpers, row models, faceting, the state
|
|
12
|
-
> atoms) belong to TanStack Table v9 itself. List the skills shipped by
|
|
13
|
-
> `@tanstack/table-core` and `@tanstack/react-table` and load whichever cover the task at
|
|
14
|
-
> hand. This skill covers only the wcz-layout conventions on top of it.
|
|
15
|
-
|
|
16
|
-
## Rules
|
|
17
|
-
|
|
18
|
-
- Build the instance with `useLayoutTable({ data, columns })` and pass it to
|
|
19
|
-
`<LayoutTable table={table} />`. Rows are keyed by `row.id`, so every row object
|
|
20
|
-
needs an `id`.
|
|
21
|
-
- For selection and actions display columns, always set `size: 50`,
|
|
22
|
-
`enableResizing: false`, and `enableCellSelection: false`. An actions column
|
|
23
|
-
that shows more than one button needs about 40px more per extra button.
|
|
24
|
-
- Render cells with the bound components off the render prop
|
|
25
|
-
(`cell.ValueCell`, `NumberCell`, `DateCell`, `DateTimeCell`, `BooleanCell`)
|
|
26
|
-
instead of raw JSX. They carry the alignment, the number and date locale, and
|
|
27
|
-
the noWrap behaviour. Write raw JSX only when the cell is a link or
|
|
28
|
-
another interactive element.
|
|
29
|
-
- Give `meta.label` to any column whose `header` is not a plain string. A string
|
|
30
|
-
header supplies the label automatically; a function or JSX header leaves the
|
|
31
|
-
header menu and column selector without a label; the filter picker falls back to
|
|
32
|
-
`column.id`. `meta` has five keys: `label`, `align`, `variant`, `options`, `flex`.
|
|
33
|
-
- `meta.flex` makes a column
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
`
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
`
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
1
|
+
---
|
|
2
|
+
name: table
|
|
3
|
+
description: "Use when building or changing a data table. Covers useLayoutTable, LayoutTable, createLayoutColumnHelper, column definitions and headers, cell formatters, filter variants, sorting, row selection and bulk actions, per-row actions, pagination, footer aggregation."
|
|
4
|
+
metadata:
|
|
5
|
+
type: convention
|
|
6
|
+
library: wcz-layout
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Table patterns
|
|
10
|
+
|
|
11
|
+
> Mechanics (`createTableHook`, column helpers, row models, faceting, the state
|
|
12
|
+
> atoms) belong to TanStack Table v9 itself. List the skills shipped by
|
|
13
|
+
> `@tanstack/table-core` and `@tanstack/react-table` and load whichever cover the task at
|
|
14
|
+
> hand. This skill covers only the wcz-layout conventions on top of it.
|
|
15
|
+
|
|
16
|
+
## Rules
|
|
17
|
+
|
|
18
|
+
- Build the instance with `useLayoutTable({ data, columns })` and pass it to
|
|
19
|
+
`<LayoutTable table={table} />`. Rows are keyed by `row.id`, so every row object
|
|
20
|
+
needs an `id`.
|
|
21
|
+
- For selection and actions display columns, always set `size: 50`,
|
|
22
|
+
`enableResizing: false`, and `enableCellSelection: false`. An actions column
|
|
23
|
+
that shows more than one button needs about 40px more per extra button.
|
|
24
|
+
- Render cells with the bound components off the render prop
|
|
25
|
+
(`cell.ValueCell`, `NumberCell`, `DateCell`, `DateTimeCell`, `BooleanCell`)
|
|
26
|
+
instead of raw JSX. They carry the alignment, the number and date locale, and
|
|
27
|
+
the noWrap behaviour. Write raw JSX only when the cell is a link or
|
|
28
|
+
another interactive element.
|
|
29
|
+
- Give `meta.label` to any column whose `header` is not a plain string. A string
|
|
30
|
+
header supplies the label automatically; a function or JSX header leaves the
|
|
31
|
+
header menu and column selector without a label; the filter picker falls back to
|
|
32
|
+
`column.id`. `meta` has five keys: `label`, `align`, `variant`, `options`, `flex`.
|
|
33
|
+
- `meta.flex` makes a column grow or shrink, in proportion like CSS `flex`, so the
|
|
34
|
+
table fills its container exactly with no horizontal scroll. `size` is the starting
|
|
35
|
+
width; it shrinks no further than `minSize` (default 20), and when that still cannot
|
|
36
|
+
fit the columns keep their sizes and the table scrolls. Resizing the column pins it
|
|
37
|
+
to a fixed width.
|
|
38
|
+
- Wrap the table in `Fullscreen` when it is the only content on the page.
|
|
39
|
+
- Props: `title`, `actions`, `showToolbar`,
|
|
40
|
+
`loading`, `pagination`, `pageSizeOptions`, `onRowClick`, `onRowDoubleClick`,
|
|
41
|
+
`sx`, and the `disableSearch` / `disableColumnFilter` / `disableColumnSelector` /
|
|
42
|
+
`disableColumnMenu` escape hatches.
|
|
43
|
+
- Rows and columns virtualize by default.
|
|
44
|
+
- Set `meta.variant` for non-text filters. Omission means `"text"`.
|
|
45
|
+
- Do not enumerate `meta.options` for a free-text column. `select` and
|
|
46
|
+
`multi-select` read their options from the faceted unique values, so the choices
|
|
47
|
+
track the data. Pass explicit string options when labels differ from stored values or
|
|
48
|
+
the UI needs a fixed list. Derive database-enum options from `enumValues`, never a
|
|
49
|
+
second hand-written list.
|
|
50
|
+
|
|
51
|
+
## Example
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import { Fullscreen, LayoutTable, RouterIconButton, RouterLink } from "wcz-layout/components";
|
|
55
|
+
import {
|
|
56
|
+
createLayoutColumnHelper,
|
|
57
|
+
useDialogs,
|
|
58
|
+
useLayoutTable,
|
|
59
|
+
useTranslation,
|
|
60
|
+
} from "wcz-layout/hooks";
|
|
61
|
+
|
|
62
|
+
const columnHelper = createLayoutColumnHelper<Todo>();
|
|
63
|
+
|
|
64
|
+
function RouteComponent() {
|
|
65
|
+
const { t } = useTranslation();
|
|
66
|
+
const { confirm, alert } = useDialogs();
|
|
67
|
+
const navigate = useNavigate();
|
|
68
|
+
const todos = useTodoCollection();
|
|
69
|
+
const { data, isLoading } = useLiveQuery(todosQueryOptions);
|
|
70
|
+
|
|
71
|
+
const columns = columnHelper.columns([
|
|
72
|
+
columnHelper.display({
|
|
73
|
+
id: "select",
|
|
74
|
+
header: ({ header }) => <header.SelectAllCell scope="all" />,
|
|
75
|
+
cell: ({ cell }) => <cell.SelectCell />,
|
|
76
|
+
size: 50,
|
|
77
|
+
enableResizing: false,
|
|
78
|
+
enableCellSelection: false,
|
|
79
|
+
}),
|
|
80
|
+
columnHelper.accessor("name", {
|
|
81
|
+
header: t("Todo.Name"),
|
|
82
|
+
cell: ({ cell }) => (
|
|
83
|
+
<RouterLink
|
|
84
|
+
to="/todos/$id"
|
|
85
|
+
params={{ id: cell.row.original.id }}
|
|
86
|
+
underline="hover"
|
|
87
|
+
color="inherit"
|
|
88
|
+
>
|
|
89
|
+
{cell.getValue()}
|
|
90
|
+
</RouterLink>
|
|
91
|
+
),
|
|
92
|
+
size: 260,
|
|
93
|
+
}),
|
|
94
|
+
columnHelper.accessor("assignee", {
|
|
95
|
+
header: t("Todo.Assignee"),
|
|
96
|
+
cell: ({ cell }) => <cell.ValueCell />,
|
|
97
|
+
// No options: the filter builds them from the faceted unique values.
|
|
98
|
+
meta: { variant: "multi-select" },
|
|
99
|
+
size: 180,
|
|
100
|
+
}),
|
|
101
|
+
columnHelper.accessor("priority", {
|
|
102
|
+
header: t("Todo.Priority"),
|
|
103
|
+
cell: ({ cell }) => <cell.NumberCell />,
|
|
104
|
+
footer: ({ header }) => <header.AggregationFooter options={{ maximumFractionDigits: 1 }} />,
|
|
105
|
+
aggregationFn: "mean",
|
|
106
|
+
meta: { variant: "number", align: "right" },
|
|
107
|
+
size: 120,
|
|
108
|
+
}),
|
|
109
|
+
columnHelper.accessor("starred", {
|
|
110
|
+
header: t("Todo.Starred"),
|
|
111
|
+
cell: ({ cell }) => <cell.BooleanCell />,
|
|
112
|
+
meta: { variant: "boolean", align: "center" },
|
|
113
|
+
size: 120,
|
|
114
|
+
}),
|
|
115
|
+
columnHelper.accessor("createdAt", {
|
|
116
|
+
header: t("Todo.CreatedAt"),
|
|
117
|
+
cell: ({ cell }) => <cell.DateTimeCell />,
|
|
118
|
+
meta: { variant: "date" },
|
|
119
|
+
size: 190,
|
|
120
|
+
}),
|
|
121
|
+
]);
|
|
122
|
+
|
|
123
|
+
const table = useLayoutTable({ data, columns });
|
|
124
|
+
const selectedIds = table.getSelectedRowIds();
|
|
125
|
+
|
|
126
|
+
const handleOnDelete = createOptimisticAction<Array<string>>({
|
|
127
|
+
onMutate: (ids) => {
|
|
128
|
+
ids.forEach((id) => {
|
|
129
|
+
todos.delete(id);
|
|
130
|
+
});
|
|
131
|
+
},
|
|
132
|
+
mutationFn: async (ids) => {
|
|
133
|
+
await deleteTodos({ data: ids });
|
|
134
|
+
await todos.utils.refetch({ throwOnError: true });
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
return (
|
|
139
|
+
<Fullscreen>
|
|
140
|
+
<LayoutTable
|
|
141
|
+
table={table}
|
|
142
|
+
loading={isLoading}
|
|
143
|
+
showToolbar
|
|
144
|
+
title={t("Todo.Todos")}
|
|
145
|
+
onRowDoubleClick={(row) => navigate({ to: "/todos/$id", params: { id: row.id } })}
|
|
146
|
+
actions={
|
|
147
|
+
<>
|
|
148
|
+
<Tooltip title={t("Create")}>
|
|
149
|
+
<RouterIconButton to="/todos/create">
|
|
150
|
+
<Add fontSize="small" />
|
|
151
|
+
</RouterIconButton>
|
|
152
|
+
</Tooltip>
|
|
153
|
+
|
|
154
|
+
{selectedIds.length === 1 && (
|
|
155
|
+
<Tooltip title={t("Edit")}>
|
|
156
|
+
<RouterIconButton to="/todos/edit/$id" params={{ id: selectedIds[0] }}>
|
|
157
|
+
<Edit fontSize="small" />
|
|
158
|
+
</RouterIconButton>
|
|
159
|
+
</Tooltip>
|
|
160
|
+
)}
|
|
161
|
+
|
|
162
|
+
{selectedIds.length > 0 && (
|
|
163
|
+
<Tooltip title={t("Delete")}>
|
|
164
|
+
<IconButton
|
|
165
|
+
onClick={async () => {
|
|
166
|
+
const confirmed = await confirm(
|
|
167
|
+
t("DeleteConfirmation", { count: selectedIds.length }),
|
|
168
|
+
);
|
|
169
|
+
if (!confirmed) return;
|
|
170
|
+
|
|
171
|
+
try {
|
|
172
|
+
const transaction = handleOnDelete(selectedIds);
|
|
173
|
+
await transaction.isPersisted.promise;
|
|
174
|
+
table.resetRowSelection();
|
|
175
|
+
} catch (error) {
|
|
176
|
+
if (error instanceof Error) await alert(error.message);
|
|
177
|
+
}
|
|
178
|
+
}}
|
|
179
|
+
>
|
|
180
|
+
<Badge
|
|
181
|
+
badgeContent={selectedIds.length}
|
|
182
|
+
invisible={selectedIds.length <= 1}
|
|
183
|
+
color="error"
|
|
184
|
+
>
|
|
185
|
+
<Delete fontSize="small" />
|
|
186
|
+
</Badge>
|
|
187
|
+
</IconButton>
|
|
188
|
+
</Tooltip>
|
|
189
|
+
)}
|
|
190
|
+
</>
|
|
191
|
+
}
|
|
192
|
+
/>
|
|
193
|
+
</Fullscreen>
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Per-row actions
|
|
199
|
+
|
|
200
|
+
```tsx
|
|
201
|
+
columnHelper.display({
|
|
202
|
+
id: "actions",
|
|
203
|
+
cell: ({ cell }) => (
|
|
204
|
+
<cell.ActionsCell
|
|
205
|
+
actions={[
|
|
206
|
+
{
|
|
207
|
+
label: t("Edit"),
|
|
208
|
+
icon: <Edit fontSize="small" />,
|
|
209
|
+
onClick: (row) => navigate({ to: "/todos/edit/$id", params: { id: row.id } }),
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
label: t("Delete"),
|
|
213
|
+
icon: <Delete fontSize="small" />,
|
|
214
|
+
showInMenu: true,
|
|
215
|
+
onClick: (row) => remove(row.id),
|
|
216
|
+
},
|
|
217
|
+
]}
|
|
218
|
+
/>
|
|
219
|
+
),
|
|
220
|
+
size: 50,
|
|
221
|
+
enableResizing: false,
|
|
222
|
+
enableCellSelection: false,
|
|
223
|
+
});
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Other bound components
|
|
227
|
+
|
|
228
|
+
On the header render prop: `SelectAllCell`, `ExpandAllCell`, `AggregationFooter`,
|
|
229
|
+
`HeaderMenu`, `HeaderSortLabel`, `HeaderResizeHandle`. On the cell one:
|
|
230
|
+
`SelectCell`, `ExpandCell`, `GroupCell`, `PinRowCell`, `ActionsCell` and the
|
|
231
|
+
formatter cells. `LayoutTable` already places the menu, the sort label and the
|
|
232
|
+
resize handle, so reach for those three only when building a table by hand.
|
|
233
|
+
|
|
234
|
+
### Custom cells and headers
|
|
235
|
+
|
|
236
|
+
The render prop only exposes the components registered in the library. To write your
|
|
237
|
+
own, read the context directly inside a plain component: `useCellContext<TValue>()`,
|
|
238
|
+
`useHeaderContext()` or `useTableContext()` from `wcz-layout/hooks`.
|
|
239
|
+
`layoutTableFeatures` and the `LayoutTableFeatures` type are the feature set
|
|
240
|
+
`useLayoutTable` installs — you need them only to type a hand-built table instance.
|
|
241
|
+
|
|
242
|
+
## Common Mistakes
|
|
243
|
+
|
|
244
|
+
### CRITICAL: Writing TanStack Table v8 column definitions
|
|
245
|
+
|
|
246
|
+
Wrong: `accessorKey: "name"`, `cell: (info) => info.getValue()`, `getCoreRowModel:
|
|
247
|
+
getCoreRowModel()`.
|
|
248
|
+
|
|
249
|
+
Correct: `columnHelper.accessor("name", { cell: ({ cell }) => <cell.ValueCell /> })`
|
|
250
|
+
inside `columnHelper.columns([...])`, and no row models at all.
|
|
251
|
+
|
|
252
|
+
This is v9. v8 column defs either type-error inside `columnHelper.columns()` or
|
|
253
|
+
silently no-op, and row models are gone.
|
|
254
|
+
|
|
255
|
+
### HIGH: Adding your own virtualizer or pager
|
|
256
|
+
|
|
257
|
+
Wrong: wrapping rows in `useVirtualizer` from `@tanstack/react-virtual`, or bolting on
|
|
258
|
+
a `TablePagination`.
|
|
259
|
+
|
|
260
|
+
Correct: render `<LayoutTable table={table} />` and pass `pagination` if the user wants
|
|
261
|
+
a pager.
|
|
262
|
+
|
|
263
|
+
`LayoutTable` already virtualizes rows and columns. A second virtualizer fights the
|
|
264
|
+
first over scroll position.
|
|
265
|
+
|
|
266
|
+
Use only `LayoutTable`'s `pagination` prop for its pager.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AggregatedCell-C7nAQyMO.mjs","names":["Button","Dialog","DialogActions","DialogContent","DialogTitle","useEventCallback","useContext","useTranslation","DialogsContext","ReactNode","OpenDialogOptions","onClose","result","TResult","Promise","AlertOptions","title","ConfirmOptions","cancelText","DialogProps","payload","TPayload","open","OpenAlertDialog","message","options","OpenConfirmDialog","DialogComponent","React","ComponentType","OpenDialog","Component","CloseDialog","dialog","AlertDialogPayload","AlertDialogProps","AlertDialog","t0","$","_c","$i","Symbol","for","t","t1","t2","t3","t4","t5","t6","t7","t8","ConfirmDialogPayload","ConfirmDialogProps","ConfirmDialog","t9","t10","t11","t12","DialogHook","alert","confirm","close","useDialogs","undefined","message_0","options_0","_c","Theme","formatForDisplay","Cell","CellData","Column","RowData","Range","defaultRangeExtractor","LayoutTableFeatures","LayoutColumnMeta","shortcutLabel","label","hotkey","AnyColumn","TData","TValue","columnLabel","column","meta","columnDef","header","id","hasColumnLabel","Boolean","columnAlign","align","columnFlex","Object","hasOwn","table","atoms","columnSizing","get","flex","moveColumn","delta","current","columnOrder","order","length","getAllLeafColumns","map","from","indexOf","to","splice","setColumnOrder","pinnedSx","isHeader","pinned","getIsPinned","position","zIndex","insetInlineStart","getStart","undefined","insetInlineEnd","getAfter","bgcolor","backgroundImage","theme","palette","action","hover","selected","getIsLastColumn","borderInlineEnd","borderInlineEndStyle","borderColor","getIsFirstColumn","borderInlineStart","borderInlineStartStyle","cellSelectionSx","cell","getIsSelected","edges","getSelectionEdges","outline","top","primary","main","bottom","left","right","filter","join","boxShadow","quoteTsv","text","test","replaceAll","toClipboardValue","value","String","Date","toISOString","JSON","stringify","toClipboardText","regions","Array","rows","cells","lookaheadRange","range","direction","lookahead","behind","overscan","ahead","startIndex","endIndex","dayjs","formatValue","value","dateFormat","undefined","Date","format","toString","JSON","stringify","aggregationFn_count","aggregationFn_extent","aggregationFn_first","aggregationFn_last","aggregationFn_max","aggregationFn_mean","aggregationFn_median","aggregationFn_min","aggregationFn_sum","aggregationFn_unique","aggregationFn_uniqueCount","createExpandedRowModel","createFacetedMinMaxValues","createFacetedRowModel","createFacetedUniqueValues","createFilteredRowModel","createGroupedRowModel","createPaginatedRowModel","createSortedRowModel","createTableHookContexts","filterFn_arrHas","filterFn_arrIncludes","filterFn_arrIncludesAll","filterFn_arrIncludesSome","filterFn_between","filterFn_betweenInclusive","filterFn_empty","filterFn_endsWith","filterFn_equals","filterFn_equalsString","filterFn_equalsStringSensitive","filterFn_greaterThan","filterFn_greaterThanOrEqualTo","filterFn_inDateRange","filterFn_inNumberRange","filterFn_includesString","filterFn_includesStringSensitive","filterFn_lessThan","filterFn_lessThanOrEqualTo","filterFn_notEmpty","filterFn_startsWith","filterFn_weakEquals","metaHelper","sortFn_alphanumeric","sortFn_alphanumericCaseSensitive","sortFn_basic","sortFn_datetime","sortFn_text","sortFn_textCaseSensitive","stockFeatures","tableFeatures","AggregationFnDef","LayoutColumnMeta","RangeValue","Date","WithResult","TFn","TFeatures","TData","TValue","TResult","layoutTableFeatures","columnMeta","filteredRowModel","sortedRowModel","paginatedRowModel","expandedRowModel","groupedRowModel","facetedRowModel","facetedUniqueValues","facetedMinMaxValues","filterFns","arrHas","arrIncludes","arrIncludesAll","arrIncludesSome","between","betweenInclusive","empty","endsWith","equals","equalsString","equalsStringSensitive","greaterThan","greaterThanOrEqualTo","inDateRange","inNumberRange","includesString","includesStringSensitive","lessThan","lessThanOrEqualTo","notEmpty","startsWith","weakEquals","sortFns","alphanumeric","alphanumericCaseSensitive","basic","datetime","text","textCaseSensitive","aggregationFns","sum","min","max","extent","mean","median","unique","uniqueCount","count","first","last","LayoutTableFeatures","tableContext","cellContext","headerContext","useTableContext","useCellContext","useHeaderContext","TypographyProps","Typography","FC","formatValue","useCellContext","AggregatedCell","prefix","options","Intl","NumberFormatOptions","dateFormat","t0","$","_c","$i","Symbol","for","props","t1","undefined","cell","T0","t2","t3","t4","t5","t6","t7","t8","bb0","value","getValue","t9","entry","toLocaleString","format","Array","isArray","map","join","_c"],"sources":["../src/hooks/useDialogs.tsx","../src/components/table/utils.ts","../src/components/table/formatValue.ts","../src/components/table/context.ts","../src/components/table/cells/formatters/AggregatedCell.tsx"],"sourcesContent":["import {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n useEventCallback,\n} from \"@mui/material\";\nimport { useContext } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { DialogsContext } from \"../contexts/DialogsContext\";\nimport type { ReactNode } from \"react\";\n\nexport interface OpenDialogOptions<TResult> {\n onClose?: (result: TResult) => Promise<void>;\n}\n\nexport interface AlertOptions {\n title?: ReactNode;\n}\n\nexport interface ConfirmOptions {\n title?: ReactNode;\n cancelText?: ReactNode;\n}\n\nexport interface DialogProps<TPayload = undefined, TResult = void> {\n payload: TPayload;\n open: boolean;\n onClose: (result: TResult) => Promise<void>;\n}\n\nexport type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;\n\nexport type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;\n\nexport type DialogComponent<TPayload, TResult> = React.ComponentType<\n DialogProps<TPayload, TResult>\n>;\n\nexport interface OpenDialog {\n <TPayload extends undefined, TResult>(\n Component: DialogComponent<TPayload, TResult>,\n payload?: TPayload,\n options?: OpenDialogOptions<TResult>,\n ): Promise<TResult>;\n <TPayload, TResult>(\n Component: DialogComponent<TPayload, TResult>,\n payload: TPayload,\n options?: OpenDialogOptions<TResult>,\n ): Promise<TResult>;\n}\n\nexport type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;\n\nexport interface AlertDialogPayload extends AlertOptions {\n message: ReactNode;\n}\n\nexport type AlertDialogProps = DialogProps<AlertDialogPayload, void>;\n\nexport function AlertDialog({ open, payload, onClose }: Readonly<AlertDialogProps>) {\n const { t } = useTranslation();\n\n return (\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose()} disableRestoreFocus>\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Alert\")}</DialogTitle>\n <DialogContent>{payload.message}</DialogContent>\n <DialogActions>\n <Button onClick={() => onClose()} autoFocus>\n {t(\"Layout.Dialog.Confirm\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\nexport interface ConfirmDialogPayload extends ConfirmOptions {\n message: ReactNode;\n}\n\nexport type ConfirmDialogProps = DialogProps<ConfirmDialogPayload, boolean>;\n\nexport function ConfirmDialog({ open, payload, onClose }: Readonly<ConfirmDialogProps>) {\n const { t } = useTranslation();\n\n return (\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose(false)} disableRestoreFocus>\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Confirm\")}</DialogTitle>\n <DialogContent>{payload.message}</DialogContent>\n <DialogActions>\n <Button onClick={() => onClose(false)}>\n {payload.cancelText ?? t(\"Layout.Dialog.Cancel\")}\n </Button>\n <Button onClick={() => onClose(true)} autoFocus>\n {t(\"Layout.Dialog.Confirm\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\ninterface DialogHook {\n alert: OpenAlertDialog;\n confirm: OpenConfirmDialog;\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport function useDialogs(): DialogHook {\n const { open, close } = useContext(DialogsContext);\n\n const alert = useEventCallback<OpenAlertDialog>((message, { ...options } = {}) =>\n open(AlertDialog, { ...options, message }),\n );\n\n const confirm = useEventCallback<OpenConfirmDialog>((message, { ...options } = {}) =>\n open(ConfirmDialog, { ...options, message }),\n );\n\n return { alert, confirm, open, close };\n}\n","import type { Theme } from \"@mui/material\";\nimport { formatForDisplay } from \"@tanstack/react-hotkeys\";\nimport type { Cell, CellData, Column, RowData } from \"@tanstack/react-table\";\nimport type { Range } from \"@tanstack/react-virtual\";\nimport { defaultRangeExtractor } from \"@tanstack/react-virtual\";\nimport type { LayoutTableFeatures } from \"~/components/table/context\";\nimport type { LayoutColumnMeta } from \"./types\";\n\nexport const shortcutLabel = (label: string, hotkey: string): string =>\n `${label} (${formatForDisplay(hotkey)})`;\n\ntype AnyColumn<TData extends RowData, TValue extends CellData> = Column<\n LayoutTableFeatures,\n TData,\n TValue\n>;\n\nexport const columnLabel = <TData extends RowData, TValue extends CellData>(\n column: AnyColumn<TData, TValue>,\n): string => {\n const meta = column.columnDef.meta as LayoutColumnMeta | undefined;\n if (meta?.label) return meta.label;\n\n return typeof column.columnDef.header === \"string\" ? column.columnDef.header : column.id;\n};\n\nexport const hasColumnLabel = <TData extends RowData, TValue extends CellData>(\n column: AnyColumn<TData, TValue>,\n): boolean =>\n Boolean((column.columnDef.meta as LayoutColumnMeta | undefined)?.label) ||\n typeof column.columnDef.header === \"string\";\n\nexport const columnAlign = <TData extends RowData, TValue extends CellData>(\n column: AnyColumn<TData, TValue>,\n): \"left\" | \"center\" | \"right\" =>\n (column.columnDef.meta as LayoutColumnMeta | undefined)?.align ??\n (hasColumnLabel(column) ? \"left\" : \"center\");\n\n/** The column's `meta.flex`, or 0 once the user has resized it to a fixed width. */\nexport const columnFlex = <TData extends RowData, TValue extends CellData>(\n column: AnyColumn<TData, TValue>,\n): number =>\n Object.hasOwn(column.table.atoms.columnSizing.get(), column.id)\n ? 0\n : ((column.columnDef.meta as LayoutColumnMeta | undefined)?.flex ?? 0);\n\nexport const moveColumn = <TData extends RowData, TValue extends CellData>(\n column: AnyColumn<TData, TValue>,\n delta: number,\n): void => {\n const { table } = column;\n const current = table.atoms.columnOrder.get();\n const order = current.length ? [...current] : table.getAllLeafColumns().map(({ id }) => id);\n const from = order.indexOf(column.id);\n const to = from + delta;\n if (from < 0 || to < 0 || to >= order.length) return;\n\n order.splice(to, 0, ...order.splice(from, 1));\n table.setColumnOrder(order);\n};\n\nexport const pinnedSx = <TData extends RowData, TValue extends CellData>(\n column: AnyColumn<TData, TValue>,\n isHeader = false,\n) => {\n const pinned = column.getIsPinned();\n if (!pinned) return {};\n\n return {\n position: \"sticky\",\n zIndex: isHeader ? 4 : 2,\n insetInlineStart: pinned === \"start\" ? column.getStart(\"start\") : undefined,\n insetInlineEnd: pinned === \"end\" ? column.getAfter(\"end\") : undefined,\n bgcolor: \"background.paper\",\n ...(!isHeader && {\n \".MuiTableRow-root:hover > &\": {\n backgroundImage: (theme: Theme) =>\n `linear-gradient(${theme.palette.action.hover}, ${theme.palette.action.hover})`,\n },\n \".MuiTableRow-root.Mui-selected > &\": {\n backgroundImage: (theme: Theme) =>\n `linear-gradient(${theme.palette.action.selected}, ${theme.palette.action.selected})`,\n },\n }),\n ...(pinned === \"start\" &&\n column.getIsLastColumn(\"start\") && {\n borderInlineEnd: 1,\n borderInlineEndStyle: \"solid\",\n borderColor: \"divider\",\n }),\n ...(pinned === \"end\" &&\n column.getIsFirstColumn(\"end\") && {\n borderInlineStart: 1,\n borderInlineStartStyle: \"solid\",\n borderColor: \"divider\",\n }),\n };\n};\n\nexport const cellSelectionSx = <TData extends RowData, TValue extends CellData>(\n cell: Cell<LayoutTableFeatures, TData, TValue>,\n) => {\n if (!cell.getIsSelected()) return {};\n\n const edges = cell.getSelectionEdges();\n const outline = (theme: Theme) =>\n [\n edges.top && `inset 0 2px 0 0 ${theme.palette.primary.main}`,\n edges.bottom && `inset 0 -2px 0 0 ${theme.palette.primary.main}`,\n edges.left && `inset 2px 0 0 0 ${theme.palette.primary.main}`,\n edges.right && `inset -2px 0 0 0 ${theme.palette.primary.main}`,\n ]\n .filter(Boolean)\n .join(\", \") || \"none\";\n\n return {\n backgroundImage: (theme: Theme) =>\n `linear-gradient(${theme.palette.action.selected}, ${theme.palette.action.selected})`,\n boxShadow: outline,\n };\n};\n\n/** Spreadsheet TSV quoting, so a cell holding a tab or a newline stays one cell. */\nconst quoteTsv = (text: string): string =>\n /[\"\\t\\n\\r]/.test(text) ? `\"${text.replaceAll('\"', '\"\"')}\"` : text;\n\nconst toClipboardValue = (value: unknown): string => {\n if (value == null) return \"\";\n if (typeof value === \"string\") return quoteTsv(value);\n if (typeof value === \"number\" || typeof value === \"boolean\" || typeof value === \"bigint\")\n return quoteTsv(String(value));\n if (value instanceof Date) return quoteTsv(value.toISOString());\n\n // Everything else — objects, and the odd symbol or function — as JSON or blank.\n return quoteTsv(JSON.stringify(value) ?? \"\");\n};\n\n/**\n * Serializes `table.getSelectedCellRangesData()` as TSV, which is what Excel,\n * Google Sheets and LibreOffice all paste as a grid. Disjoint selection regions\n * are separated by a blank line.\n */\nexport const toClipboardText = (regions: Array<Array<Array<unknown>>>): string =>\n regions\n .map((rows) => rows.map((cells) => cells.map(toClipboardValue).join(\"\\t\")).join(\"\\n\"))\n .join(\"\\n\\n\");\n\nexport const lookaheadRange = (\n range: Range,\n direction: \"forward\" | \"backward\" | null,\n lookahead: number,\n): Array<number> => {\n const behind = direction ? 0 : range.overscan;\n const ahead = direction ? lookahead : range.overscan;\n\n return defaultRangeExtractor({\n ...range,\n startIndex: range.startIndex - (direction === \"backward\" ? ahead : behind),\n endIndex: range.endIndex + (direction === \"backward\" ? behind : ahead),\n overscan: 0,\n });\n};\n","import dayjs from \"dayjs\";\n\nexport const formatValue = (value: unknown, dateFormat = \"L LT\"): string => {\n if (value === null || value === undefined) return \"\";\n if (value instanceof Date) return dayjs(value).format(dateFormat);\n if (typeof value === \"string\") return value;\n if (typeof value === \"number\" || typeof value === \"boolean\" || typeof value === \"bigint\") {\n return value.toString();\n }\n\n return JSON.stringify(value) ?? \"\";\n};\n","import {\n aggregationFn_count,\n aggregationFn_extent,\n aggregationFn_first,\n aggregationFn_last,\n aggregationFn_max,\n aggregationFn_mean,\n aggregationFn_median,\n aggregationFn_min,\n aggregationFn_sum,\n aggregationFn_unique,\n aggregationFn_uniqueCount,\n createExpandedRowModel,\n createFacetedMinMaxValues,\n createFacetedRowModel,\n createFacetedUniqueValues,\n createFilteredRowModel,\n createGroupedRowModel,\n createPaginatedRowModel,\n createSortedRowModel,\n createTableHookContexts,\n filterFn_arrHas,\n filterFn_arrIncludes,\n filterFn_arrIncludesAll,\n filterFn_arrIncludesSome,\n filterFn_between,\n filterFn_betweenInclusive,\n filterFn_empty,\n filterFn_endsWith,\n filterFn_equals,\n filterFn_equalsString,\n filterFn_equalsStringSensitive,\n filterFn_greaterThan,\n filterFn_greaterThanOrEqualTo,\n filterFn_inDateRange,\n filterFn_inNumberRange,\n filterFn_includesString,\n filterFn_includesStringSensitive,\n filterFn_lessThan,\n filterFn_lessThanOrEqualTo,\n filterFn_notEmpty,\n filterFn_startsWith,\n filterFn_weakEquals,\n metaHelper,\n sortFn_alphanumeric,\n sortFn_alphanumericCaseSensitive,\n sortFn_basic,\n sortFn_datetime,\n sortFn_text,\n sortFn_textCaseSensitive,\n stockFeatures,\n tableFeatures,\n} from \"@tanstack/react-table\";\nimport type { AggregationFnDef } from \"@tanstack/react-table\";\nimport type { LayoutColumnMeta } from \"~/components/table/types\";\n\n// table-core types min/max/extent with its non-exported `RangeValue`, which breaks .d.ts emit.\ntype RangeValue = Date | number | undefined;\ntype WithResult<TFn, TResult> =\n TFn extends AggregationFnDef<infer TFeatures, infer TData, infer TValue, unknown>\n ? AggregationFnDef<TFeatures, TData, TValue, TResult>\n : never;\n\nexport const layoutTableFeatures = tableFeatures({\n ...stockFeatures,\n columnMeta: metaHelper<LayoutColumnMeta>(),\n filteredRowModel: createFilteredRowModel(),\n sortedRowModel: createSortedRowModel(),\n paginatedRowModel: createPaginatedRowModel(),\n expandedRowModel: createExpandedRowModel(),\n groupedRowModel: createGroupedRowModel(),\n facetedRowModel: createFacetedRowModel(),\n facetedUniqueValues: createFacetedUniqueValues(),\n facetedMinMaxValues: createFacetedMinMaxValues(),\n filterFns: {\n arrHas: filterFn_arrHas,\n arrIncludes: filterFn_arrIncludes,\n arrIncludesAll: filterFn_arrIncludesAll,\n arrIncludesSome: filterFn_arrIncludesSome,\n between: filterFn_between,\n betweenInclusive: filterFn_betweenInclusive,\n empty: filterFn_empty,\n endsWith: filterFn_endsWith,\n equals: filterFn_equals,\n equalsString: filterFn_equalsString,\n equalsStringSensitive: filterFn_equalsStringSensitive,\n greaterThan: filterFn_greaterThan,\n greaterThanOrEqualTo: filterFn_greaterThanOrEqualTo,\n inDateRange: filterFn_inDateRange,\n inNumberRange: filterFn_inNumberRange,\n includesString: filterFn_includesString,\n includesStringSensitive: filterFn_includesStringSensitive,\n lessThan: filterFn_lessThan,\n lessThanOrEqualTo: filterFn_lessThanOrEqualTo,\n notEmpty: filterFn_notEmpty,\n startsWith: filterFn_startsWith,\n weakEquals: filterFn_weakEquals,\n },\n sortFns: {\n alphanumeric: sortFn_alphanumeric,\n alphanumericCaseSensitive: sortFn_alphanumericCaseSensitive,\n basic: sortFn_basic,\n datetime: sortFn_datetime,\n text: sortFn_text,\n textCaseSensitive: sortFn_textCaseSensitive,\n },\n aggregationFns: {\n sum: aggregationFn_sum,\n min: aggregationFn_min as WithResult<typeof aggregationFn_min, RangeValue>,\n max: aggregationFn_max as WithResult<typeof aggregationFn_max, RangeValue>,\n extent: aggregationFn_extent as WithResult<\n typeof aggregationFn_extent,\n [RangeValue, RangeValue]\n >,\n mean: aggregationFn_mean,\n median: aggregationFn_median,\n unique: aggregationFn_unique,\n uniqueCount: aggregationFn_uniqueCount,\n count: aggregationFn_count,\n first: aggregationFn_first,\n last: aggregationFn_last,\n },\n});\n\nexport type LayoutTableFeatures = typeof layoutTableFeatures;\n\nexport const {\n tableContext,\n cellContext,\n headerContext,\n useTableContext,\n useCellContext,\n useHeaderContext,\n} = createTableHookContexts<LayoutTableFeatures>();\n","import type { TypographyProps } from \"@mui/material\";\nimport { Typography } from \"@mui/material\";\nimport type { FC } from \"react\";\nimport { formatValue } from \"~/components/table/formatValue\";\nimport { useCellContext } from \"~/components/table/context\";\n\nexport const AggregatedCell: FC<\n TypographyProps & {\n prefix?: string;\n options?: Intl.NumberFormatOptions;\n dateFormat?: string;\n }\n> = ({ prefix = \"\", options, dateFormat, ...props }) => {\n const cell = useCellContext();\n const value = cell.getValue();\n if (value === null || value === undefined || value === \"\") return null;\n\n const format = (entry: unknown) =>\n typeof entry === \"number\"\n ? entry.toLocaleString(undefined, options)\n : formatValue(entry, dateFormat);\n\n return (\n <Typography variant=\"body2\" color=\"text.secondary\" noWrap {...props}>\n {prefix}\n {/* `extent` — the default aggregate for anything non-numeric — is a [min, max] pair. */}\n {Array.isArray(value) ? value.map(format).join(\" – \") : format(value)}\n </Typography>\n );\n};\n"],"mappings":";;;;;;;;;;;AA6DA,SAAOoC,YAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAD,EAAA,OAAA,oEAAA;EAAA,KAAA,IAAAE,KAAA,GAAAA,KAAA,IAAAA,MAAA,GAAAF,EAAAE,MAAAC,OAAAC,I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