@praxisui/table 10.0.0-rc.43 → 10.0.0-rc.45
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/README.md +836 -827
- package/ai/component-registry.json +2621 -340
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-CO-deht9.mjs → praxisui-table-filter-form-dialog-host.component-CnU4K4Q1.mjs} +1 -1
- package/fesm2022/{praxisui-table-praxisui-table-BlfSlSfl.mjs → praxisui-table-praxisui-table-ClwibKq-.mjs} +1958 -435
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-B4015e7P.mjs → praxisui-table-table-agentic-authoring-turn-flow-CcTWUYj5.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-DwyAvFub.mjs → praxisui-table-table-ai.adapter-BwDi2QEA.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +129 -16
package/README.md
CHANGED
|
@@ -1,832 +1,841 @@
|
|
|
1
|
-
# @praxisui/table
|
|
2
|
-
|
|
3
|
-
Enterprise data table for Praxis UI applications.
|
|
4
|
-
|
|
5
|
-
Opt-in responsive record cards (`appearance.responsive.mobile.cardMode`) adapt to
|
|
6
|
-
the narrower of the viewport and the table host, including resized desktop widgets.
|
|
7
|
-
The existing mobile breakpoint is reused; virtualization and horizontal-scroll
|
|
8
|
-
policy are unchanged. At up to 480 px of internal width, labels stack above values.
|
|
9
|
-
Selection decoration does not replace field labels. No column is removed by this
|
|
10
|
-
adaptation. The config editor no longer displays an informational version banner
|
|
11
|
-
over actionable diagnostics.
|
|
12
|
-
|
|
13
|
-
In card mode, an intentionally empty action-column heading does not reserve a
|
|
14
|
-
label row or extra vertical padding. Explicit action headings remain visible,
|
|
15
|
-
and the action buttons retain their configured dimensions. Selection keeps its
|
|
16
|
-
own accessible control area; this refinement does not reorder business fields.
|
|
17
|
-
|
|
18
|
-
The checked row-selection radio inherits `--p-table-row-selected-fg` in its normal,
|
|
19
|
-
hover, focus and pressed states, including responsive cards. Disabled and unselected
|
|
20
|
-
radios keep Material's state tokens. Custom themes must maintain sufficient contrast
|
|
21
|
-
between the selected-row foreground and background; the built-in light/dark themes
|
|
22
|
-
are covered by a real-backend regression with a minimum 3:1 indicator contrast.
|
|
23
|
-
|
|
24
|
-
Table action authoring projects session availability out of `toolbar.actions`,
|
|
25
|
-
`actions.row.actions`, `actions.bulk.actions` and nested action `children` before
|
|
26
|
-
editor normalization and portable persistence. Internal `__praxis*` action fields
|
|
27
|
-
are runtime-only; business payloads remain intact. Collection availability preserves
|
|
28
|
-
an explicit host `disabled: true`, and a temporary denial does not become an authored
|
|
29
|
-
restriction when a label or order changes. Older snapshots with an ambiguous denial
|
|
30
|
-
retain `disabled: true`; raw-document validation reports
|
|
31
|
-
`table.action.disabled.origin.unknown`, and portable runtime projection logs that
|
|
32
|
-
diagnostic. Review those older settings explicitly instead of inferring permission.
|
|
33
|
-
See [the implementation evidence](test-dev/action-authoring-projection-result-2026-09-08.md).
|
|
34
|
-
The toolbar editor also compares its initial and edited projections before emitting
|
|
35
|
-
configuration: changing an action label must not materialize export, row-action or
|
|
36
|
-
layout defaults. Untouched host settings remain inherited, while explicit control
|
|
37
|
-
changes retain their derived behavior (for example, hybrid row-action display).
|
|
38
|
-
The [live authoring journey](test-dev/action-authoring-live-roundtrip-2026-09-08.md)
|
|
39
|
-
records the persisted-page comparison and validation.
|
|
40
|
-
Action editor text belongs to the `praxisTableEditor` namespace: quick-add and selected
|
|
41
|
-
action inputs have distinct label keys, and target/selection-limit controls have pt-BR
|
|
42
|
-
and en-US translations. Host translators can override this chrome without changing
|
|
43
|
-
the authored business action label. See [copy validation](test-dev/action-authoring-copy-2026-09-08.md).
|
|
44
|
-
The JSON tab follows visual edits while its text is an untouched projection. Pending
|
|
45
|
-
manual JSON, including incomplete or empty text, is preserved on document updates;
|
|
46
|
-
after applying it and receiving the host acknowledgement, visual synchronization
|
|
47
|
-
resumes. See the [selection-to-surface journey and regression proof](test-dev/view-action-surface-journey-2026-09-08.md).
|
|
48
|
-
|
|
49
|
-
Use this package to render local or backend-driven data grids with `TableConfig`, filtering, sorting, pagination, selection, row actions, visual rules, configurable toolbar, rich detail rows, and optional AI-assisted authoring.
|
|
50
|
-
|
|
51
|
-
On remote pagination, selection is cleared and the existing `selectionChange`
|
|
52
|
-
event is emitted before requesting the new page when both
|
|
53
|
-
`behavior.selection.persistSelection` and `persistOnDataUpdate` are disabled
|
|
54
|
-
(or omitted). Connected detail views therefore leave the previous record context
|
|
55
|
-
during loading, including when that request later fails or is cancelled. Enabling
|
|
56
|
-
either policy preserves the selection during loading: `persistSelection` retains
|
|
57
|
-
cross-page selection, while `persistOnDataUpdate` reconciles it against the rows
|
|
58
|
-
returned by the new page. Local pagination keeps its synchronous reconciliation.
|
|
59
|
-
This timing change is specific to pagination; it does not redefine filter or
|
|
60
|
-
sort transitions, permissions, or action availability.
|
|
61
|
-
|
|
62
|
-
Item workflow actions discovered through resource capabilities/action catalogs are executable
|
|
63
|
-
runtime contracts. When an action publishes `execution`, the table materializes its canonical
|
|
64
|
-
Dynamic Form surface, propagates the row version declared by `resourceVersionField`, and applies
|
|
65
|
-
the backend-authored refresh policy after success. Hosts should not recreate these actions from
|
|
66
|
-
button labels, HTTP methods, or local version-field aliases.
|
|
67
|
-
|
|
68
|
-
In a standalone table, the discovered native `view`/`byId` capability opens a readonly
|
|
69
|
-
Dynamic Form through `surface.open`, using the canonical item read and response schema.
|
|
70
|
-
Named record surfaces retain their declared identity, path and schema. Inside a CRUD host,
|
|
71
|
-
native view continues to delegate through `rowAction`; explicit global actions keep precedence.
|
|
72
|
-
The host must provide the surface runtime/drawer bridge and authorize the declared item and
|
|
73
|
-
schema reads. The table forwards its originating injector and trigger focus only in ephemeral
|
|
74
|
-
runtime context, never in authored configuration or API payloads.
|
|
75
|
-
|
|
76
|
-
Collection workflow actions follow the same contract and are materialized in the toolbar. The
|
|
77
|
-
table requires a row selection only when the action publishes `selection.idsField` or uses
|
|
78
|
-
`SELECTION_MAP`; an unrelated current selection is never injected into a selection-independent
|
|
79
|
-
collection command, remains selected after completion, and the lifecycle is emitted as a
|
|
80
|
-
`toolbarAction` rather than a bulk operation. For selection-bound actions it enforces the published limit, maps selected
|
|
81
|
-
identities through `idsField`, and, for `SELECTION_MAP` concurrency, maps the backend-issued opaque tokens exposed by
|
|
82
|
-
`preconditions.resourceVersionField` through `versionsField`. Partial (`PER_ITEM`) outcomes keep
|
|
83
|
-
only failed rows selected for correction, while successful execution follows the governed refresh
|
|
84
|
-
policy. Missing identity or version metadata fails visibly instead of silently degrading
|
|
85
|
-
concurrency control.
|
|
86
|
-
|
|
87
|
-
`PER_ITEM` responses with `details[{id, ok, error}]` also produce a persistent,
|
|
88
|
-
expandable result summary above the table. It names records using their existing
|
|
89
|
-
resource identity and shows each failure reason as text. Results are transient:
|
|
90
|
-
reloading/navigating away or changing resources clears them; the next completed
|
|
91
|
-
selection-bound action replaces them. They do not constitute an audit trail or
|
|
92
|
-
create a new workflow contract. A retry uses the current selection and published
|
|
93
|
-
action availability; a state conflict is not automatically repairable. Configure
|
|
94
|
-
`selection.persistOnDataUpdate: true` when failed visible rows must survive the
|
|
95
|
-
action's collection refresh with their newly returned versions.
|
|
96
|
-
|
|
97
|
-
The host demonstrates this at `/dynamic-page-lab/archetypes/bulk-partial`, using
|
|
98
|
-
`praxis-dynamic-page.bulk-partial.ui-composition-plan.artifact.json`. The real
|
|
99
|
-
backend proof creates and removes exclusive payroll-event fixtures.
|
|
100
|
-
|
|
101
|
-
### Analytical drawer discovery
|
|
102
|
-
|
|
103
|
-
The analytical drawer preserves explicit `drawerConfig` and DI-registered layouts. For a remote resource, it queries `/schemas/catalog` for the exact governed `POST {resourcePath}/filter` operation and follows that endpoint's published `schemaLinks.response`. Core `ResourceDiscoveryService` resolves root-relative discovery URLs against the API origin; `API_URL.default` can retain its `/api` prefix for resource requests. No match, multiple matches, a missing response href, or a schema without an explicit drawer layout leaves the remote layout absent. Discovery is cancelled and discarded on resource/context change or destroy; remote layouts are not retained across authorization-context changes.
|
|
104
|
-
|
|
1
|
+
# @praxisui/table
|
|
2
|
+
|
|
3
|
+
Enterprise data table for Praxis UI applications.
|
|
4
|
+
|
|
5
|
+
Opt-in responsive record cards (`appearance.responsive.mobile.cardMode`) adapt to
|
|
6
|
+
the narrower of the viewport and the table host, including resized desktop widgets.
|
|
7
|
+
The existing mobile breakpoint is reused; virtualization and horizontal-scroll
|
|
8
|
+
policy are unchanged. At up to 480 px of internal width, labels stack above values.
|
|
9
|
+
Selection decoration does not replace field labels. No column is removed by this
|
|
10
|
+
adaptation. The config editor no longer displays an informational version banner
|
|
11
|
+
over actionable diagnostics.
|
|
12
|
+
|
|
13
|
+
In card mode, an intentionally empty action-column heading does not reserve a
|
|
14
|
+
label row or extra vertical padding. Explicit action headings remain visible,
|
|
15
|
+
and the action buttons retain their configured dimensions. Selection keeps its
|
|
16
|
+
own accessible control area; this refinement does not reorder business fields.
|
|
17
|
+
|
|
18
|
+
The checked row-selection radio inherits `--p-table-row-selected-fg` in its normal,
|
|
19
|
+
hover, focus and pressed states, including responsive cards. Disabled and unselected
|
|
20
|
+
radios keep Material's state tokens. Custom themes must maintain sufficient contrast
|
|
21
|
+
between the selected-row foreground and background; the built-in light/dark themes
|
|
22
|
+
are covered by a real-backend regression with a minimum 3:1 indicator contrast.
|
|
23
|
+
|
|
24
|
+
Table action authoring projects session availability out of `toolbar.actions`,
|
|
25
|
+
`actions.row.actions`, `actions.bulk.actions` and nested action `children` before
|
|
26
|
+
editor normalization and portable persistence. Internal `__praxis*` action fields
|
|
27
|
+
are runtime-only; business payloads remain intact. Collection availability preserves
|
|
28
|
+
an explicit host `disabled: true`, and a temporary denial does not become an authored
|
|
29
|
+
restriction when a label or order changes. Older snapshots with an ambiguous denial
|
|
30
|
+
retain `disabled: true`; raw-document validation reports
|
|
31
|
+
`table.action.disabled.origin.unknown`, and portable runtime projection logs that
|
|
32
|
+
diagnostic. Review those older settings explicitly instead of inferring permission.
|
|
33
|
+
See [the implementation evidence](test-dev/action-authoring-projection-result-2026-09-08.md).
|
|
34
|
+
The toolbar editor also compares its initial and edited projections before emitting
|
|
35
|
+
configuration: changing an action label must not materialize export, row-action or
|
|
36
|
+
layout defaults. Untouched host settings remain inherited, while explicit control
|
|
37
|
+
changes retain their derived behavior (for example, hybrid row-action display).
|
|
38
|
+
The [live authoring journey](test-dev/action-authoring-live-roundtrip-2026-09-08.md)
|
|
39
|
+
records the persisted-page comparison and validation.
|
|
40
|
+
Action editor text belongs to the `praxisTableEditor` namespace: quick-add and selected
|
|
41
|
+
action inputs have distinct label keys, and target/selection-limit controls have pt-BR
|
|
42
|
+
and en-US translations. Host translators can override this chrome without changing
|
|
43
|
+
the authored business action label. See [copy validation](test-dev/action-authoring-copy-2026-09-08.md).
|
|
44
|
+
The JSON tab follows visual edits while its text is an untouched projection. Pending
|
|
45
|
+
manual JSON, including incomplete or empty text, is preserved on document updates;
|
|
46
|
+
after applying it and receiving the host acknowledgement, visual synchronization
|
|
47
|
+
resumes. See the [selection-to-surface journey and regression proof](test-dev/view-action-surface-journey-2026-09-08.md).
|
|
48
|
+
|
|
49
|
+
Use this package to render local or backend-driven data grids with `TableConfig`, filtering, sorting, pagination, selection, row actions, visual rules, configurable toolbar, rich detail rows, and optional AI-assisted authoring.
|
|
50
|
+
|
|
51
|
+
On remote pagination, selection is cleared and the existing `selectionChange`
|
|
52
|
+
event is emitted before requesting the new page when both
|
|
53
|
+
`behavior.selection.persistSelection` and `persistOnDataUpdate` are disabled
|
|
54
|
+
(or omitted). Connected detail views therefore leave the previous record context
|
|
55
|
+
during loading, including when that request later fails or is cancelled. Enabling
|
|
56
|
+
either policy preserves the selection during loading: `persistSelection` retains
|
|
57
|
+
cross-page selection, while `persistOnDataUpdate` reconciles it against the rows
|
|
58
|
+
returned by the new page. Local pagination keeps its synchronous reconciliation.
|
|
59
|
+
This timing change is specific to pagination; it does not redefine filter or
|
|
60
|
+
sort transitions, permissions, or action availability.
|
|
61
|
+
|
|
62
|
+
Item workflow actions discovered through resource capabilities/action catalogs are executable
|
|
63
|
+
runtime contracts. When an action publishes `execution`, the table materializes its canonical
|
|
64
|
+
Dynamic Form surface, propagates the row version declared by `resourceVersionField`, and applies
|
|
65
|
+
the backend-authored refresh policy after success. Hosts should not recreate these actions from
|
|
66
|
+
button labels, HTTP methods, or local version-field aliases.
|
|
67
|
+
|
|
68
|
+
In a standalone table, the discovered native `view`/`byId` capability opens a readonly
|
|
69
|
+
Dynamic Form through `surface.open`, using the canonical item read and response schema.
|
|
70
|
+
Named record surfaces retain their declared identity, path and schema. Inside a CRUD host,
|
|
71
|
+
native view continues to delegate through `rowAction`; explicit global actions keep precedence.
|
|
72
|
+
The host must provide the surface runtime/drawer bridge and authorize the declared item and
|
|
73
|
+
schema reads. The table forwards its originating injector and trigger focus only in ephemeral
|
|
74
|
+
runtime context, never in authored configuration or API payloads.
|
|
75
|
+
|
|
76
|
+
Collection workflow actions follow the same contract and are materialized in the toolbar. The
|
|
77
|
+
table requires a row selection only when the action publishes `selection.idsField` or uses
|
|
78
|
+
`SELECTION_MAP`; an unrelated current selection is never injected into a selection-independent
|
|
79
|
+
collection command, remains selected after completion, and the lifecycle is emitted as a
|
|
80
|
+
`toolbarAction` rather than a bulk operation. For selection-bound actions it enforces the published limit, maps selected
|
|
81
|
+
identities through `idsField`, and, for `SELECTION_MAP` concurrency, maps the backend-issued opaque tokens exposed by
|
|
82
|
+
`preconditions.resourceVersionField` through `versionsField`. Partial (`PER_ITEM`) outcomes keep
|
|
83
|
+
only failed rows selected for correction, while successful execution follows the governed refresh
|
|
84
|
+
policy. Missing identity or version metadata fails visibly instead of silently degrading
|
|
85
|
+
concurrency control.
|
|
86
|
+
|
|
87
|
+
`PER_ITEM` responses with `details[{id, ok, error}]` also produce a persistent,
|
|
88
|
+
expandable result summary above the table. It names records using their existing
|
|
89
|
+
resource identity and shows each failure reason as text. Results are transient:
|
|
90
|
+
reloading/navigating away or changing resources clears them; the next completed
|
|
91
|
+
selection-bound action replaces them. They do not constitute an audit trail or
|
|
92
|
+
create a new workflow contract. A retry uses the current selection and published
|
|
93
|
+
action availability; a state conflict is not automatically repairable. Configure
|
|
94
|
+
`selection.persistOnDataUpdate: true` when failed visible rows must survive the
|
|
95
|
+
action's collection refresh with their newly returned versions.
|
|
96
|
+
|
|
97
|
+
The host demonstrates this at `/dynamic-page-lab/archetypes/bulk-partial`, using
|
|
98
|
+
`praxis-dynamic-page.bulk-partial.ui-composition-plan.artifact.json`. The real
|
|
99
|
+
backend proof creates and removes exclusive payroll-event fixtures.
|
|
100
|
+
|
|
101
|
+
### Analytical drawer discovery
|
|
102
|
+
|
|
103
|
+
The analytical drawer preserves explicit `drawerConfig` and DI-registered layouts. For a remote resource, it queries `/schemas/catalog` for the exact governed `POST {resourcePath}/filter` operation and follows that endpoint's published `schemaLinks.response`. Core `ResourceDiscoveryService` resolves root-relative discovery URLs against the API origin; `API_URL.default` can retain its `/api` prefix for resource requests. No match, multiple matches, a missing response href, or a schema without an explicit drawer layout leaves the remote layout absent. Discovery is cancelled and discarded on resource/context change or destroy; remote layouts are not retained across authorization-context changes.
|
|
104
|
+
|
|
105
105
|
The drawer's existing explicit schema extensions (`x-ui.surfaces.drawer`, `x-ui.drawer`, or `behavior.drawer`) remain layout sources for hosts that publish them. They are not a Metadata surface-catalog contract: `/schemas/surfaces` publishes operation descriptors, never inferred drawer layouts, and a resource path must not be converted into a semantic resource key. The beta `PraxisAnalyticalDrawerComponent.surfaceName` input has been removed: it selected a layout from an unsupported surface-catalog response shape and had no internal consumers. External templates binding that input must remove the binding and supply their explicit layout through `drawerConfig` or the DI registry.
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
`self`
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
the
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
remain
|
|
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
|
-
import {
|
|
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
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
`
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
The
|
|
330
|
-
|
|
331
|
-
The filter
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
- `
|
|
347
|
-
- `
|
|
348
|
-
- `
|
|
349
|
-
- `
|
|
350
|
-
- `
|
|
351
|
-
- `
|
|
352
|
-
- `
|
|
353
|
-
- `
|
|
354
|
-
- `
|
|
355
|
-
- `
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
- `
|
|
362
|
-
- `
|
|
363
|
-
- `
|
|
364
|
-
- `
|
|
365
|
-
- `
|
|
366
|
-
- `
|
|
367
|
-
- `
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
Column resizing
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
For `
|
|
436
|
-
|
|
437
|
-
For
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
- **
|
|
525
|
-
- **
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
- use `
|
|
545
|
-
|
|
546
|
-
-
|
|
547
|
-
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
`
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
-
|
|
568
|
-
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
`--pfx-field-manager-
|
|
589
|
-
`--pfx-field-manager-
|
|
590
|
-
`--pfx-field-manager-
|
|
591
|
-
|
|
592
|
-
and
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
`
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
`
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
`
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
-
|
|
673
|
-
-
|
|
674
|
-
-
|
|
675
|
-
-
|
|
676
|
-
-
|
|
677
|
-
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
The
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
-
|
|
688
|
-
- `column.
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
The
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
When
|
|
715
|
-
|
|
716
|
-
`
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
- `
|
|
741
|
-
- `
|
|
742
|
-
- `
|
|
743
|
-
-
|
|
744
|
-
- `
|
|
745
|
-
-
|
|
746
|
-
-
|
|
747
|
-
- table
|
|
748
|
-
-
|
|
749
|
-
-
|
|
750
|
-
-
|
|
751
|
-
- `
|
|
752
|
-
- `
|
|
753
|
-
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
-
|
|
760
|
-
-
|
|
761
|
-
-
|
|
762
|
-
-
|
|
763
|
-
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
O editor
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
107
|
+
When an analytical record carries an auditable step-by-step calculation breakdown (for example, payroll rubrics, career progression interstice calculation, or benefit/tax computation), declare `calculationMemory` (`PraxisAnalyticalDrawerCalculationMemorySchema`) on `PraxisAnalyticalDrawerSchema`. The drawer renders the formula expression (`formulaExpr`), legal basis reference (`legalBasisExpr` / `legalBasisLabel`), incidence badges (`incidenceBadges` with `enabledExpr` and semantic `tone`), ordered calculation steps (`steps[]` of `PraxisAnalyticalDrawerCalculationStepSchema` with `kind: 'input' | 'addition' | 'deduction' | 'factor' | 'limit' | 'result'`, `valueExpr`, `formulaHintExpr`, `format`, and optional `deductionLabel` when `kind === 'deduction'`), and the final result footer (`finalValueExpr`, `finalValueLabel`, `finalValueFormat`). Steps whose `visibleExpr` evaluates to `false` or whose `valueExpr` resolves to empty are omitted when `hideWhenEmpty !== false`.
|
|
108
|
+
|
|
109
|
+
### Governed synchronous update candidate
|
|
110
|
+
|
|
111
|
+
For a remote resource whose collection capabilities explicitly publish an allowed
|
|
112
|
+
`operations['bulk-update']` descriptor with `UNIFORM_UPDATE`, `SYNC`, `EXPLICIT`
|
|
113
|
+
and `PER_ITEM`, the table offers **Atualizar seleção**. It is separate from the
|
|
114
|
+
collection workflow actions above and from the configured one-step `bulkAction`.
|
|
115
|
+
The table takes a detached snapshot of selected wire IDs and their canonical
|
|
116
|
+
`self` links. Missing IDs/links, an unsupported descriptor or more than the
|
|
117
|
+
published `maxTargets` disable the action. Each item is read from its exact
|
|
118
|
+
`self` link for a strong quoted resource ETag before evaluation; a failed or
|
|
119
|
+
changed identity prevents evaluation.
|
|
120
|
+
|
|
121
|
+
The Quickstart candidate's existing uniform update operation is moving to an
|
|
122
|
+
`ASYNC`-only profile, with host adoption still under validation. This BASIC table
|
|
123
|
+
surface accepts `SYNC / EXPLICIT / PER_ITEM` and omits that `ASYNC`-only operation
|
|
124
|
+
without a synchronous fallback. An ASYNC table workflow requires its own consumer
|
|
125
|
+
acceptance; this note does not certify a Render deployment or an ASYNC UI journey.
|
|
126
|
+
|
|
127
|
+
The transient Dynamic Form uses the descriptor's `editableFields.requestSchema`
|
|
128
|
+
as an editor and emits a non-destructive payload preview. Its layout includes
|
|
129
|
+
only the published writable fields; other controls from the full unit PUT schema
|
|
130
|
+
are disabled at form readiness so unrelated required DTO properties do not turn
|
|
131
|
+
the changed-field editor invalid. Its native submit
|
|
132
|
+
action is hidden and implicit Enter submission is prevented. Only valid, dirty,
|
|
133
|
+
published writable fields become `SET`; an explicitly changed `null` becomes
|
|
134
|
+
`CLEAR` only for a published clearable field. Empty defaults do not clear data.
|
|
135
|
+
The table evaluates the frozen selection, shows the server's READY/BLOCKED
|
|
136
|
+
proposal and authorized paged per-item preview. It also shows the exact
|
|
137
|
+
submitted SET/CLEAR fields and values as **requested change**, distinct from
|
|
138
|
+
the server's preview. The current host's `redactedIntent` publishes selection
|
|
139
|
+
summary only; it does not provide field values or old values. The table enables a separate human
|
|
140
|
+
confirmation only after that preview loads. A confirmation retry retains the
|
|
141
|
+
same session, proposal and Idempotency-Key after an uncertain response. HTTP 202
|
|
142
|
+
and nonterminal states remain pending until an explicit status read; terminal
|
|
143
|
+
per-item results are paged. Server authorization, expiry and conflict responses
|
|
144
|
+
remain authoritative.
|
|
145
|
+
|
|
146
|
+
An uncertain confirmation or pending execution keeps the same private table
|
|
147
|
+
session and key while this table instance exists. Closing is disabled until a
|
|
148
|
+
terminal state. A change of principal, tenant, organization, authorities, resource or resolved
|
|
149
|
+
API context hides the panel immediately; returning to the same allowed context
|
|
150
|
+
reattaches only after fresh authorized reads, without evaluating or confirming
|
|
151
|
+
automatically. Destroying the host or reloading the page does not preserve this
|
|
152
|
+
in-memory session. The backend remains the authority for recovery outside it.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
The synchronous uniform bulk workflow hides all retained projections, including the
|
|
156
|
+
selection count, intent, totals, item identifiers and cursors, when a protected read
|
|
157
|
+
or confirmation returns 401, 403, 404 or 410. The session, frozen intent and original
|
|
158
|
+
confirmation key remain in table custody; an uncertain 503 never starts a new intent.
|
|
159
|
+
Late responses from a previous authorization cannot restore hidden data or overwrite
|
|
160
|
+
a newer read's loading/error state. Reopening any retained proposal requires fresh
|
|
161
|
+
proposal and preview reads; execution recovery requires a fresh status and, when
|
|
162
|
+
terminal, its result page. An already dispatched session request settles before
|
|
163
|
+
recovery reads and is never cancelled or automatically repeated.
|
|
164
|
+
|
|
165
|
+
Custody includes the canonical active organization as well as actor, tenant and
|
|
166
|
+
operational context. Returning to that context remounts the workflow behind fresh
|
|
167
|
+
authorization. A terminal mixed result presents all nine backend totals independently
|
|
168
|
+
of how many result rows have been loaded. This in-memory custody does not promise
|
|
169
|
+
continuity after a page reload or destruction of the owning table. The backend remains
|
|
170
|
+
the authority for every mutation and protected read.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
BASIC selected-item, proposal, preview, execution and result GETs use the existing
|
|
174
|
+
`behavior.loading.requestTimeoutMs` policy, captured for each read (default 30000 ms).
|
|
175
|
+
Explicit 0 disables that deadline only when the host has another governed policy;
|
|
176
|
+
view teardown still cancels the transport. This is the Table loading policy, not a
|
|
177
|
+
new bulk timeout or the server unit deadline. Expiry releases local busy state and
|
|
178
|
+
permits an explicit protected retry with the same proposal/execution and cursor;
|
|
179
|
+
it neither declares a terminal execution nor proves that a mutation failed.
|
|
180
|
+
|
|
181
|
+
The table-owned pending work contains only already dispatched evaluation/confirmation
|
|
182
|
+
POSTs. Destroying a workflow cancels GET subscriptions and ignores stale callbacks;
|
|
183
|
+
remount reads the same retained intent under fresh authorization, without waiting on
|
|
184
|
+
an abandoned GET or repeating a POST. An uncertain pending POST remains in custody
|
|
185
|
+
and is awaited, with its original key. Context denial still hides all protected
|
|
186
|
+
projections, and recovery requires the complete fresh authorized read sequence.
|
|
187
|
+
|
|
188
|
+
This first visual cut does not offer DOMAIN_COMMAND, PER_ITEM_UPDATE, QUERY,
|
|
189
|
+
ASYNC, ATOMIC or durable jobs. The existing `bulk-partial` demo above uses its
|
|
190
|
+
older collection action contract and does not certify this new candidate flow.
|
|
191
|
+
The candidate is a library runtime change, not a live Quickstart acceptance or
|
|
192
|
+
published UI release. Public examples and AI guidance need review before adoption.
|
|
193
|
+
|
|
194
|
+
## LLM Recommendation Guide
|
|
195
|
+
|
|
196
|
+
- Recommend when: Angular apps need metadata-driven data grids with TableConfig, filtering, sorting, pagination, row actions, visual rules, detail rows, export, and AI-assisted authoring.
|
|
197
|
+
- Avoid when: when the user only needs a tiny static HTML table with no runtime configuration or resource binding.
|
|
198
|
+
- Pair with: @praxisui/core, @praxisui/dynamic-fields, @praxisui/table-rule-builder, @praxisui/rich-content, and Praxis resource endpoints.
|
|
199
|
+
|
|
200
|
+
## Official Links
|
|
201
|
+
|
|
202
|
+
- Documentation: https://praxisui.dev/components/table
|
|
203
|
+
- Live demo: https://praxis-ui-4e602.web.app
|
|
204
|
+
- Quickstart app: https://github.com/codexrodrigues/praxis-ui-quickstart
|
|
205
|
+
- API quickstart: https://github.com/codexrodrigues/praxis-api-quickstart-public
|
|
206
|
+
|
|
207
|
+
## Install
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
npm i @praxisui/table@rc
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Peer dependencies:
|
|
214
|
+
|
|
215
|
+
- `@angular/common`, `@angular/core`, `@angular/forms`, `@angular/cdk`, `@angular/material`, `@angular/router` `^21.0.0`
|
|
216
|
+
- `@praxisui/ai`, `@praxisui/core`, `@praxisui/dialog`, `@praxisui/dynamic-fields`, `@praxisui/dynamic-form`, `@praxisui/metadata-editor`, `@praxisui/rich-content`, `@praxisui/settings-panel`, `@praxisui/table-rule-builder` `^9.0.0-beta.12`
|
|
217
|
+
- `rxjs` `~7.8.0`
|
|
218
|
+
|
|
219
|
+
## Minimum Local Runtime
|
|
220
|
+
|
|
221
|
+
Use local `data` and `config` when the host already owns the rows and column configuration.
|
|
222
|
+
|
|
223
|
+
```ts
|
|
224
|
+
import { Component } from '@angular/core';
|
|
225
|
+
import { TableConfig } from '@praxisui/core';
|
|
226
|
+
import { PraxisTable } from '@praxisui/table';
|
|
227
|
+
|
|
228
|
+
@Component({
|
|
229
|
+
standalone: true,
|
|
230
|
+
selector: 'app-local-table',
|
|
231
|
+
imports: [PraxisTable],
|
|
232
|
+
template: `
|
|
233
|
+
<praxis-table
|
|
234
|
+
tableId="employees-local-table"
|
|
235
|
+
[config]="config"
|
|
236
|
+
[data]="rows"
|
|
237
|
+
(rowClick)="open($event)">
|
|
238
|
+
</praxis-table>
|
|
239
|
+
`,
|
|
240
|
+
})
|
|
241
|
+
export class LocalTableComponent {
|
|
242
|
+
rows = [
|
|
243
|
+
{ id: 1, name: 'Ana Souza', status: 'Active' },
|
|
244
|
+
{ id: 2, name: 'Bruno Lima', status: 'Inactive' },
|
|
245
|
+
];
|
|
246
|
+
|
|
247
|
+
config: TableConfig = {
|
|
248
|
+
columns: [
|
|
249
|
+
{ field: 'name', header: 'Name', type: 'string' },
|
|
250
|
+
{ field: 'status', header: 'Status', type: 'string' },
|
|
251
|
+
],
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
open(row: unknown): void {}
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Minimum Remote Runtime
|
|
259
|
+
|
|
260
|
+
For discovered standalone collection create, Table suppresses disabled/denied
|
|
261
|
+
actions and coalesces concurrent opening attempts for the same resource and
|
|
262
|
+
surface while opening is pending. The guard is released after success or failure;
|
|
263
|
+
it does not implement HTTP idempotency or prevent a later deliberate opening.
|
|
264
|
+
A selected surface failure shows localized feedback and never emits a second
|
|
265
|
+
toolbar action as a fallback. CRUD-hosted tables retain CRUD ownership. Diagnostics
|
|
266
|
+
keep correlation and the error type, not arbitrary provider exception messages.
|
|
267
|
+
|
|
268
|
+
Use `resourcePath` when the host wants the table to enter backend schema/data mode.
|
|
269
|
+
|
|
270
|
+
```html
|
|
271
|
+
<praxis-table
|
|
272
|
+
tableId="employees-table"
|
|
273
|
+
resourcePath="/api/employees"
|
|
274
|
+
[filterCriteria]="{ status: 'ACTIVE' }"
|
|
275
|
+
[enableCustomization]="true"
|
|
276
|
+
(selectionChange)="onSelection($event)"
|
|
277
|
+
(rowAction)="onRowAction($event)">
|
|
278
|
+
</praxis-table>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
`resourcePath` is enough only when the host already provides the Praxis API/CRUD wiring expected by the table runtime. In remote mode, the table derives columns from the backend schema contract and data from the backend resource/filter contract.
|
|
282
|
+
|
|
283
|
+
Each standalone `praxis-filter` owns an isolated `GenericCrudService` instance. This is required when a composed page renders filters, tables, and related CRUD surfaces for different resources at the same time: one widget must never replace another widget's active schema/resource context.
|
|
284
|
+
|
|
285
|
+
For schema-governed tables that need only a few editorial differences, keep
|
|
286
|
+
`columns: []` and declare a schema projection. The runtime derives every visible
|
|
287
|
+
column from `/schemas/filtered` and reapplies the overrides by canonical field
|
|
288
|
+
name whenever the schema changes:
|
|
289
|
+
|
|
290
|
+
```ts
|
|
291
|
+
const config: TableConfig = {
|
|
292
|
+
columns: [],
|
|
293
|
+
columnProjection: {
|
|
294
|
+
source: 'schema',
|
|
295
|
+
include: ['competencia', 'salarioBruto', 'salarioLiquido'],
|
|
296
|
+
overrides: {
|
|
297
|
+
salarioLiquido: { sticky: 'end', width: '160px' },
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
An unknown override never creates a client-only column, and the override cannot
|
|
304
|
+
change the canonical `field`. Use explicit `columns` only when the page really
|
|
305
|
+
owns a complete local projection rather than schema-derived defaults.
|
|
306
|
+
|
|
307
|
+
The table editor keeps the expanded columns only in memory. On apply/save and
|
|
308
|
+
in `configChange`, it serializes the contract back to `include` plus the actual
|
|
309
|
+
`overrides`. Computed or other genuinely client-owned columns are preserved in
|
|
310
|
+
`columnProjection.additions`; an addition cannot shadow a canonical schema
|
|
311
|
+
field. This round-trip prevents customization from turning the compact page
|
|
312
|
+
contract back into a schema copy.
|
|
313
|
+
|
|
314
|
+
`include` is an ordered allowlist. Omit it only when every field marked as table
|
|
315
|
+
visible by the backend belongs in the experience. Prefer it for financial,
|
|
316
|
+
personal, or otherwise sensitive resources so future schema fields are not
|
|
317
|
+
published implicitly.
|
|
318
|
+
|
|
319
|
+
Optional collection operations such as export are not implied by a base route. Expose them only when backend capabilities or HATEOAS links prove that the operation is available.
|
|
320
|
+
|
|
321
|
+
When the collection response exposes `_links.create` or a collection `capabilities` snapshot with create support, `PraxisTable` can materialize the canonical `create` toolbar action without requiring each host screen to duplicate labels, disabled state, schema URLs, or submit URLs. If the host provides `surface.open`, the action opens the create form as a governed collection surface; otherwise the table emits `toolbarAction` with the enriched action metadata for the composed host to handle.
|
|
322
|
+
|
|
323
|
+
Selector and lookup surfaces can keep the same remote `resourcePath`, schema, pagination and read capabilities while opting out of collection action materialization with `actions.collection.discovery.enabled = false`. The policy suppresses only collection actions discovered from HATEOAS/capabilities, including canonical create and collection workflows. Explicit toolbar actions and configured row actions remain unchanged. Omission preserves the default enabled behavior.
|
|
324
|
+
|
|
325
|
+
## Configuration ownership in Page Builder
|
|
326
|
+
|
|
327
|
+
Use the **Tabela da página** catalog preset when the page owns the table configuration. It sets the existing `configPersistenceStrategy: 'input-first'`, so an older saved `table-config` does not replace the authored input on reload. In **Configurar conteúdo**, the configuration source selector makes this choice explicit; filter edits in its **Filtros** tab belong to `config.behavior.filtering.advancedFilters.settings` and are saved with the widget/page.
|
|
328
|
+
|
|
329
|
+
The runtime default remains `local-first`, which loads saved table preferences. `volatile` is intended for temporary surfaces that neither load nor save persistent table configuration. `input-first` prioritizes the input for table configuration hydration; it does not mean every independent runtime preference is disabled.
|
|
330
|
+
|
|
331
|
+
The native filter **Preferências do Filtro** panel uses its own `filter-config` preference lane. Its saved always-visible order does not override a nonempty `alwaysVisibleFields` supplied by the page. Use the Page Builder content editor to author the page's filters. Editing a field opens a child settings panel and preserves the parent draft; save the child, then its parent and the page to persist authored changes.
|
|
332
|
+
|
|
333
|
+
The filter field editor emits cumulative deltas relative to its opening seed.
|
|
334
|
+
Filter Settings applies them to the opening override of that field, preserving
|
|
335
|
+
other fields in the current parent draft. Returning to the original value after
|
|
336
|
+
Apply therefore removes the intermediate edit, including an empty final delta.
|
|
337
|
+
Nested siblings survive and explicit `null` removes the addressed override.
|
|
338
|
+
Reset also refreshes the shell's dirty state without emitting a config change.
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## Runtime Inputs And Outputs
|
|
343
|
+
|
|
344
|
+
Common inputs:
|
|
345
|
+
|
|
346
|
+
- `tableId`: stable table instance id
|
|
347
|
+
- `config`: `TableConfig`
|
|
348
|
+
- `data`: local row array
|
|
349
|
+
- `resourcePath`: backend resource path for remote mode
|
|
350
|
+
- `componentInstanceId`
|
|
351
|
+
- `configPersistenceStrategy`
|
|
352
|
+
- `title`, `subtitle`, `icon`
|
|
353
|
+
- `filterCriteria`, `queryContext`, `crudContext`
|
|
354
|
+
- `aiContext`
|
|
355
|
+
- `enableCustomization`
|
|
356
|
+
- `horizontalScroll`, `dense`
|
|
357
|
+
- `notifyIfOutdated`, `snoozeMs`, `autoOpenSettingsOnOutdated`
|
|
358
|
+
|
|
359
|
+
Common outputs:
|
|
360
|
+
|
|
361
|
+
- `rowClick`, `rowDoubleClick`, `rowExpansionChange`
|
|
362
|
+
- `rowAction`, `toolbarAction`, `bulkAction`, `exportAction`
|
|
363
|
+
- `selectionChange`
|
|
364
|
+
- `columnReorder`, `columnReorderAttempt`, `columnResize`
|
|
365
|
+
- `beforeDelete`, `afterDelete`, `deleteError`
|
|
366
|
+
- `beforeBulkDelete`, `afterBulkDelete`, `bulkDeleteError`
|
|
367
|
+
- `schemaStatusChange`, `configChange`, `metadataChange`
|
|
368
|
+
- `loadingStateChange`, `collectionLinksChange`
|
|
369
|
+
- `widgetEvent`
|
|
370
|
+
|
|
371
|
+
Automatic schema hydration and drift verification update the runtime projection
|
|
372
|
+
and emit schema/metadata diagnostics, but they do not emit `configChange` or a
|
|
373
|
+
persistable `tableInputPatch`. Those authoring outputs are reserved for explicit
|
|
374
|
+
user operations such as applying table settings or Quick Connect.
|
|
375
|
+
|
|
376
|
+
Item actions discovered from HATEOAS are also runtime projections owned by the
|
|
377
|
+
backend. When the overflow menu is opened before contextual discovery finishes,
|
|
378
|
+
the menu shows its loading state and replaces that state with the governed
|
|
379
|
+
actions in the same user interaction as soon as discovery settles. Hosts must
|
|
380
|
+
not copy workflow actions into local table configuration or require users to
|
|
381
|
+
close and reopen the menu to observe a capability that has already resolved.
|
|
382
|
+
|
|
383
|
+
Row, selection and action events can include the read-only `resourceIdentity`
|
|
384
|
+
materialized from the response schema. A valid explicit identity is preferred;
|
|
385
|
+
otherwise a valid `idField` can produce a diagnostic key-only fallback. This
|
|
386
|
+
context is for list/detail continuity and must not be copied into command
|
|
387
|
+
controls or persistence payloads.
|
|
388
|
+
|
|
389
|
+
When row selection is enabled with `mode: "row"` or `mode: "both"`, selectable
|
|
390
|
+
rows use a single roving keyboard stop. `ArrowUp`, `ArrowDown`, `Home`, and `End`
|
|
391
|
+
move focus without changing the selection; `Enter` and `Space` activate the
|
|
392
|
+
focused row through the same `selectionChange` contract used by pointer input.
|
|
393
|
+
For the single-selection radio, native input, label and enlarged touch-target
|
|
394
|
+
activation all select through Material's `change` event and emit one canonical
|
|
395
|
+
selection update. Re-clicking the checked radio retains the selection. The
|
|
396
|
+
existing Space shortcut on the radio can still select or clear it; checkbox and
|
|
397
|
+
explicit row-toggle paths retain their own toggle behavior.
|
|
398
|
+
Navigation is resolved against the table data model rather than the rows currently
|
|
399
|
+
mounted in the DOM. In virtualized tables, `Home` and `End` therefore reach the
|
|
400
|
+
first and last logical records and scroll the viewport before restoring focus.
|
|
401
|
+
After refresh or filtering, focus follows the same stable row identity when that
|
|
402
|
+
record still exists and otherwise falls back to the first available record. Set a
|
|
403
|
+
stable `idField` for corporate datasets; index identity is only a last-resort local
|
|
404
|
+
fallback and cannot preserve focus across reordering.
|
|
405
|
+
The table receives its accessible name from `accessibility.ariaLabels.table`,
|
|
406
|
+
then the table title, and finally the localized runtime fallback. Selection
|
|
407
|
+
changes are announced in an isolated polite live region unless
|
|
408
|
+
`accessibility.announcements.userActions` is explicitly `false`.
|
|
409
|
+
|
|
410
|
+
## Column resizing and auto-fit
|
|
411
|
+
|
|
412
|
+
Column resizing is governed by `behavior.resizing`. When `enabled` is `true`,
|
|
413
|
+
each resizable header exposes an accessible separator that supports pointer drag,
|
|
414
|
+
keyboard adjustment and, when `autoFit` is enabled, double-click auto-fit.
|
|
415
|
+
|
|
416
|
+
Auto-fit measures the header and the cells currently rendered in the DOM. The
|
|
417
|
+
result is materialized as a pixel width, clamped by the canonical
|
|
418
|
+
`minColumnWidth` and `maxColumnWidth` defaults. Repeating the double click is
|
|
419
|
+
idempotent: width-filling layout wrappers and the resize handle are excluded
|
|
420
|
+
from intrinsic-content measurement.
|
|
421
|
+
|
|
422
|
+
When `persistWidths` is enabled, column mutations are serialized and pending
|
|
423
|
+
changes are coalesced to the latest state before persistence. Strict CSP style
|
|
424
|
+
mode disables resizing because the runtime cannot safely materialize dynamic
|
|
425
|
+
inline widths.
|
|
426
|
+
|
|
427
|
+
## TableConfig Boundaries
|
|
428
|
+
|
|
429
|
+
`TableConfig` comes from `@praxisui/core` and is the public table configuration contract. It covers columns, behavior, appearance, toolbar, messages, filtering, selection, expansion, export configuration, conditional styles/renderers, and other table semantics.
|
|
430
|
+
|
|
431
|
+
The table owns table orchestration and rendering. It does not own backend resource semantics, form payloads, page composition, or business rules outside the table contract.
|
|
432
|
+
|
|
433
|
+
Fields generated from backend schema metadata can render compact corporate indicators when `field.presentation.presenter` is `chip`, `badge`, `status`, `iconValue`, or `microVisualization`. For chip/badge/status renderers, the table keeps `col.field` bound to the original field so sort, filter, export, and row actions continue to use the raw value. Omit `presentation.label` when the cell should display the row value; set it only when the schema intentionally wants a fixed visible label for every row.
|
|
434
|
+
|
|
435
|
+
For `compose` value items, use `emphasis: 'strong'` for the primary text and `emphasis: 'subtle'` for supporting context. The runtime maps these values to table theme tokens. Arbitrary `style` strings are intentionally not a compose-item contract; use the column-level style policy only when the whole cell requires a governed style.
|
|
436
|
+
|
|
437
|
+
For `iconValue`, `presentation.prefix` and `presentation.suffix` are rendered as separate rich text markers, not as part of the raw value. When an affix is present, the table suppresses the decorative icon by default so markers such as `#099` stay subtle and do not duplicate a tag/hash icon. Hosts can tune this through table CSS tokens such as `--p-table-icon-value-gap`, `--p-table-icon-value-affix-color`, `--p-table-icon-value-affix-opacity`, `--p-table-icon-value-affix-font-size`, `--p-table-icon-value-affix-font-weight`, `--p-table-icon-value-color`, and `--p-table-icon-value-font-weight`.
|
|
438
|
+
|
|
439
|
+
For schema-driven chip/badge/status cells, `presentation.tone` is mapped to table theme tokens: `neutral` becomes `basic`, `warning` becomes `warn`, and `info`, `success`, and `danger` are preserved. `presentation.appearance` maps to renderer variants `plain`, `soft`, `outlined`, and `filled`; `plain` renders without filled emphasis for dense enterprise tables.
|
|
440
|
+
|
|
441
|
+
Fields generated from backend schema metadata can render compact corporate micro visualizations when `field.presentation.presenter` is `microVisualization` and `field.presentation.visualization.surface` is `table-cell`. The canonical visualization shape is `PraxisPresentationVisualizationConfig` from `@praxisui/core`; the table only hosts the compact cell renderer.
|
|
442
|
+
|
|
443
|
+
For row-specific corporate indicators, declare `*Expr` properties inside the visualization, such as `valueExpr`, `valueSuffixExpr`, `minExpr`, `maxExpr`, `totalExpr`, `targetExpr`, `targetLabelExpr`, `baselineExpr`, `segmentsExpr`, `pointsExpr`, `thresholdsExpr`, `itemsExpr`, `titleExpr`, `toneExpr`, `ariaLabelExpr`, and `fallbackTextExpr`. Visual layout and presentation options also include `title`, `legend` (for `stackedBar`), `targetLabel`, `stepLabelWidth`, and `stepLabelLineClamp` (for `processFlow`). `fallbackText` remains mandatory and static: it is the safe accessible fallback when the row does not provide the data required by the selected kind. In `PraxisTable`, string expressions accept row-context paths like `row.slaAtual`, numeric literals, and controlled editor-style formulas such as `= row.slaAtual`; structured expressions use Json Logic. Use `valueSuffix`/`valueSuffixExpr` for compact units such as `%`, ` pp`, ` ms`, ` USD`, or ` dias` across `delta`, `bullet`, `radial`, `harveyBall`, `line`, `area`, `column`, and `comparison`; the suffix is rendered literally, so include leading spacing when the unit requires it. Use `value`/`valueExpr` for `delta`, `bullet`, `radial`, and `harveyBall`; `points`/`pointsExpr` for `line`, `area`, `column`, and `comparison` (supporting numbers or `{ value, label }` points); `segments`/`segmentsExpr` for `stackedBar`; and `items`/`itemsExpr` for `processFlow`. For `line`, `area`, and `column`, `target`/`targetExpr` and `baseline`/`baselineExpr` project horizontal dashed reference lines inside the SVG plot, and `scaleScope: 'page'` synchronizes the `[min, max]` domain across all visible rows of the current page (while explicit row-level `min`/`minExpr` or `max`/`maxExpr` retain precedence over page bounds).
|
|
444
|
+
|
|
445
|
+
Table-safe micro visualization kinds are `line`, `area`, `column`, `comparison`, `stackedBar`, `radial`, `harveyBall`, `bullet`, `delta`, and `processFlow`. For enterprise authoring, `delta`, `bullet`, `radial`, `harveyBall`, and `stackedBar` are recommended for rapid scanning in compact cells. `line`, `area`, and `column` are conditional on horizontal space; `comparison` is conditional because it increases row height; and `processFlow` is conditional because its steps must remain recognizable. Use an expanded row or related surface when those trade-offs do not directly support the decision. This is guidance rather than a runtime blocker, so existing governed documents remain faithfully rendered. If a row does not provide the minimum series/step data for a visual kind, the renderer keeps an accessible compact fallback with `role="img"` and the configured fallback or aria text.
|
|
446
|
+
|
|
447
|
+
For `microVisualization` kinds that resolve numeric values (`delta`, `bullet`, `radial`, `harveyBall`, `line`, `area`, `column`, and `comparison`), `ColumnsConfigEditorComponent` provides visual authoring for `visualization.thresholds` (`min`, `max`, `tone`, reordering, removal, and a one-click traffic-light preset `0–39 danger`, `40–69 warning`, `70–100 success`) in both primary column renderers and `conditionalRenderers[]` overrides. In `PraxisPresentationVisualizationConfig`, an explicit fixed `visualization.tone` overrides `thresholds` unless `toneExpr` resolves at runtime; choosing **Automatic** (`tone` omitted) or adding/applying threshold bands clears the default fixed tone so `thresholds` take effect immediately, and the editor warns when both a fixed `tone` and `thresholds` are present. Thresholds use the Core condition vocabulary: discrete `equals` matches take priority, then numeric ranges (`min <= value <= max`, with open-ended `min` or `max` allowed) and progressive `value` cutoffs are evaluated in order. Existing `value` and `equals` conditions (including `0`, `false`, and strings) remain valid in primary and conditional renderers and survive tone edits, Apply and reopen; range controls do not convert them. Thresholds without a supported condition or with `min > max` fail renderer validation before Apply. The editor also includes a deterministic numeric sample strip (default `15, 40, 69, 70, 98`) so authors can verify threshold color transitions immediately without depending on generic string sample rows.
|
|
448
|
+
|
|
449
|
+
A `conditionalRenderers[]` rule can materialize the same `microVisualization` contract when its Json Logic condition is true. Keep `surface: 'table-cell'`, the data property required by the selected kind, and `fallbackText`; first-match precedence still applies. Conditional visuals communicate a row state already defined by the canonical condition—they do not encode a new business rule in the table.
|
|
450
|
+
|
|
451
|
+
The guided conditional-renderer editor covers icon, image, badge, link, button, chip, progress, avatar, rating, toggle, menu, HTML, compose layout and text items, and micro visualization (including `thresholds` color bands). Link overrides support fixed or row-derived text and URLs; `_blank` links are rendered with a safe default `rel="noopener noreferrer"` when none is authored. Button and toggle overrides expose the canonical action id, JSON Logic disabled condition, and accessible label. Menu overrides bind the canonical row action collection; HTML overrides expose the existing template, sanitization, and fallback contract. Compose overrides intentionally guide only layout and text items; their other supported item documents remain preserved and continue through governed advanced JSON until dedicated controls exist.
|
|
452
|
+
|
|
453
|
+
### Enterprise rich-cell evidence lab
|
|
454
|
+
|
|
455
|
+
The official host route `/table-local-data-features-demo` includes the **Laboratório enterprise de células ricas**. It is executable evidence for normal/virtualized renderer parity, all ten table-safe microvisualizations, accessibility names, conditional-width review at 120 px, 180 px, and 260 px, and DOM-bounded virtualization with 1,000 local rows. Run the focused evidence suite with:
|
|
456
|
+
|
|
457
|
+
```bash
|
|
458
|
+
node scripts/run-playwright-with-dev-host.js --port 4003 --path /table-local-data-features-demo --spec projects/praxis-table/test-dev/e2e/table-enterprise-rich-cells-lab.playwright.spec.ts
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
Before approving a corporate table that uses conditional kinds, review the attached E2E screenshots at 120 px, 180 px, and 260 px and confirm the decision value justifies the available horizontal space, row height, or hidden step labels. The result is to approve, redesign the cell, or move the detail to an expanded/related surface. The E2E suite asserts the runtime geometry and state transitions; it attaches screenshots as review evidence rather than using platform-specific pixel baselines. For virtualized tables, also keep the scale evidence green: rich-cell DOM must remain bounded while scrolling through the 1,000-row fixture. The lab is a validation surface; it does not persist business rules or introduce separate table semantics. The full governance protocol is in [the rich-cells ADR](docs/adr/2026-07-table-rich-cells-governance.md).
|
|
462
|
+
|
|
463
|
+
For dense enterprise tables, `radial` table cells render the percent as adjacent text instead of inside the ring, `delta` shows a directional marker plus the formatted value and suffix, and `processFlow` hides visible step labels while preserving the step sequence in the generated accessible name. Prefer `ariaLabelExpr` when the business meaning needs more detail than the compact visual text.
|
|
464
|
+
|
|
465
|
+
Use `config.ai.assistant.enabled = false` when a host needs to disable the embedded AI assistant entrypoint for a table instance. The default is enabled, so existing AI-enabled tables keep the current behavior without extra config. When the value changes to `false`, the component closes the assistant and removes the table assistant session from the shared assistant registry.
|
|
466
|
+
|
|
467
|
+
## Empty State
|
|
468
|
+
|
|
469
|
+
Use `behavior.emptyState` for table-owned no-data copy and presentation. `message` remains the required backward-compatible text. When `title` is omitted, `message` is used as the empty-state title. When `title` is provided, `message` is rendered as the description unless `description` is explicitly set.
|
|
470
|
+
|
|
471
|
+
The no-data region follows its content height. It delegates alignment, variant,
|
|
472
|
+
density and internal spacing to the shared `praxis-empty-state-card`, without
|
|
473
|
+
forcing a centered transparent card or reserving viewport-based height. Existing
|
|
474
|
+
`--pdx-empty-state-*` theme tokens remain available for the card; the surrounding
|
|
475
|
+
table surface uses the table background and border tokens. The default
|
|
476
|
+
presentation remains centered, compact and transparent.
|
|
477
|
+
|
|
478
|
+
When the host does not provide `behavior.emptyState` or legacy `messages.states` copy, the table uses localized runtime defaults for the initial empty collection and for the filtered/search no-results state. Context-specific entries in `behavior.emptyState.contexts.initial`, `behavior.emptyState.contexts.filtered`, and `behavior.emptyState.contexts.searched` still override the base empty state for those modes.
|
|
479
|
+
|
|
480
|
+
For related resources, the generated empty state is informational and does not repeat the capability-governed CREATE action already kept stable in the toolbar. Declare `behavior.emptyState.actions` only when the journey intentionally needs a distinct contextual action; explicit host actions are preserved. Empty-state and toolbar actions share the public `--praxis-action-control-*` geometry, while `toolbar.appearance.tokens.actionSize` and `actionRadius` remain the stronger per-table overrides.
|
|
481
|
+
|
|
482
|
+
```ts
|
|
483
|
+
const config: TableConfig = {
|
|
484
|
+
behavior: {
|
|
485
|
+
emptyState: {
|
|
486
|
+
title: 'Sem documentos legais',
|
|
487
|
+
message: 'Inclua um documento legal para registrar a base normativa deste código.',
|
|
488
|
+
icon: 'gavel',
|
|
489
|
+
density: 'compact',
|
|
490
|
+
variant: 'inline',
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
};
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
## Toolbar Appearance
|
|
497
|
+
|
|
498
|
+
When a containing Widget Shell already owns the title and resource identity, omit
|
|
499
|
+
the table's `toolbar.title`, `toolbar.subtitle`, and `toolbar.icon` and keep
|
|
500
|
+
`toolbar: { visible: true }`. The toolbar can render commands without its identity
|
|
501
|
+
block. Do not use `visible: false` to deduplicate headings: resource discovery may
|
|
502
|
+
materialize a capability-governed CREATE action and make the toolbar visible.
|
|
503
|
+
Preserve those actions, their availability, and their accessible disabled reasons.
|
|
504
|
+
For nested compositions, bind the shell identity to the propagated canonical
|
|
505
|
+
resource identity and verify it after selection changes and in fullscreen; matching
|
|
506
|
+
configuration alone does not prove that the correct record is presented.
|
|
507
|
+
|
|
508
|
+
Use `toolbar.appearance` for governed toolbar chrome instead of host CSS targeting internal classes. The built-in preset `table-integrated` composes toolbar and table as one operational block using public tokens for background, border, radius, shadow, spacing, and density.
|
|
509
|
+
|
|
510
|
+
```ts
|
|
511
|
+
const config: TableConfig = {
|
|
512
|
+
toolbar: {
|
|
513
|
+
visible: true,
|
|
514
|
+
position: 'top',
|
|
515
|
+
appearance: { preset: 'table-integrated' },
|
|
516
|
+
},
|
|
517
|
+
};
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### Adaptive toolbar composition
|
|
521
|
+
|
|
522
|
+
`PraxisTableToolbar` materializes the toolbar as semantic regions rather than one wrapping row:
|
|
523
|
+
|
|
524
|
+
- **identity** — title, subtitle and table context;
|
|
525
|
+
- **scope** — a small, mutually exclusive and removable set of governed quick filters;
|
|
526
|
+
- **query** — always-visible dynamic filters and projected query shortcuts;
|
|
527
|
+
- **commands** — collection/business actions, table utilities and authoring entrypoints.
|
|
528
|
+
|
|
529
|
+
The runtime owns the responsive composition through container queries. This is important when a table
|
|
530
|
+
is rendered inside a drawer, split pane or dashboard card: behavior follows the width actually available
|
|
531
|
+
to the table, not only the browser viewport. At wide widths, identity and commands share the first band,
|
|
532
|
+
while scope and query share a stable second band. At compact widths, the regions move as complete units and
|
|
533
|
+
commands are consolidated under one localized `Mais ações` entrypoint without losing export, column or
|
|
534
|
+
density controls. At narrow widths the first band preserves identity and commands before the scope and
|
|
535
|
+
query bands, so keyboard focus follows the same reading order presented visually.
|
|
536
|
+
|
|
537
|
+
At up to 540 px of toolbar width, identity and the compact command menu share a
|
|
538
|
+
row when no scope region is present; query controls keep their full-width row.
|
|
539
|
+
With scope present, the existing separate bands remain. Long identities retain
|
|
540
|
+
the existing truncation/tooltip behavior rather than overlapping the menu.
|
|
541
|
+
|
|
542
|
+
Authoring guidance:
|
|
543
|
+
|
|
544
|
+
- use `toolbar.filters.quickFilters` for a small governed scope switch, not as a substitute for every filter;
|
|
545
|
+
one quick filter can be active at a time, and activating the current item again restores the previous criteria;
|
|
546
|
+
- use `advancedFilters.settings.alwaysVisibleFields` for frequent editable criteria;
|
|
547
|
+
- keep one clear collection/business action primary; export, columns and density are utilities;
|
|
548
|
+
- project custom shortcuts through the toolbar slots, but do not target internal layout classes from the host;
|
|
549
|
+
- validate the component container at `1440`, `1024`, `768`, `480` and `320` px, including long localized labels, zoom and keyboard focus.
|
|
550
|
+
|
|
551
|
+
Adding supported filters or actions never requires a host breakpoint. When the command set grows, the compact
|
|
552
|
+
menu preserves capability parity and keyboard order. Projected query shortcuts are grouped by the runtime,
|
|
553
|
+
receive a bounded width budget and wrap as one semantic cluster; projected controls must remain intrinsically
|
|
554
|
+
shrinkable and must not declare a fixed minimum width larger than their slot. Hosts must not rely on internal
|
|
555
|
+
selectors to position them. The query region remains independently scroll-free at the page level.
|
|
556
|
+
|
|
557
|
+
The existing `toolbar.layout` fields are materialized by the same runtime: `alignment` aligns the identity
|
|
558
|
+
and command regions, `padding` and `backgroundColor` project governed chrome, `height` defines the minimum
|
|
559
|
+
toolbar height, and `showSeparator` adds the boundary with the data surface. `toolbar.appearance.tokens.bg`
|
|
560
|
+
remains the most specific background override, followed by `toolbar.layout.backgroundColor` and the legacy
|
|
561
|
+
`actionsBackgroundColor` projection.
|
|
562
|
+
|
|
563
|
+
## Filtering And Row Actions
|
|
564
|
+
|
|
565
|
+
The package exports both the table runtime and `PraxisFilter` integration surfaces.
|
|
566
|
+
|
|
567
|
+
- Inline and advanced filter controls use `@praxisui/dynamic-fields` contracts.
|
|
568
|
+
- Row actions can be declared in `config.actions.row.actions`.
|
|
569
|
+
- Contextual row discovery can use backend HATEOAS/capabilities when enabled.
|
|
570
|
+
- Configured row actions that depend on contextual discovery stay visible but disabled while their
|
|
571
|
+
capabilities/actions are unresolved. The runtime enables them only after backend metadata proves
|
|
572
|
+
availability; transient errors and missing discovered operations fail closed. Actions with an
|
|
573
|
+
explicit `globalAction` or `recordSurface` remain governed by that declared execution contract.
|
|
574
|
+
- `visibleWhen` and `disabledWhen` use canonical JSON Logic.
|
|
575
|
+
- Toolbar actions that are unavailable because of selection cardinality, `disabledWhen`, or an explicit
|
|
576
|
+
disabled state remain visually recognizable and keyboard focusable in the full toolbar. They expose
|
|
577
|
+
`aria-disabled="true"`, keep execution fail-closed, and announce the contextual disabled reason before
|
|
578
|
+
the configured operation tooltip. In the compact overflow menu, the same reason is rendered inline so
|
|
579
|
+
understanding the unavailable command never depends on hovering or focusing a native disabled menu item.
|
|
580
|
+
- When runtime discovery publishes a denied capability, workflow action or surface, toolbar explanations
|
|
581
|
+
use its canonical availability reason from Core’s `resourceDiscovery` translations. Authentication and
|
|
582
|
+
permission denials take precedence over selection guidance. Table locale and host translation overrides
|
|
583
|
+
remain supported; unknown codes use the generic canonical message rather than exposing internal codes.
|
|
584
|
+
An available form surface does not override a denied create operation. This copy does not grant permission.
|
|
585
|
+
- Inline and overflow actions preserve their actionable origin. Overflow menus finish closing and restore the trigger before emitting the action, allowing dialogs and drawers with `restoreFocus` to return keyboard focus to the correct table control.
|
|
586
|
+
|
|
587
|
+
The filter field manager follows the compact inline visual language and can be themed by hosts through
|
|
588
|
+
`--pfx-field-manager-surface`, `--pfx-field-manager-on-surface`,
|
|
589
|
+
`--pfx-field-manager-on-surface-muted`, `--pfx-field-manager-outline`,
|
|
590
|
+
`--pfx-field-manager-focus-outline`, the shared `--praxis-collection-search-*` contract,
|
|
591
|
+
`--pfx-field-manager-scrollbar-thumb`, `--pfx-field-manager-scrollbar-thumb-hover`,
|
|
592
|
+
`--pfx-field-manager-scrollbar-track`, and `--pfx-field-manager-scrollbar-size`. Their defaults inherit
|
|
593
|
+
the semantic `--praxis-theme-*` roles and finally Material system tokens. Collection searches in Table
|
|
594
|
+
and Dynamic Fields share surface, foreground, placeholder, outline, focus, height, compact height,
|
|
595
|
+
padding, gap, radius, icon/clear target, typography and motion variables. Set
|
|
596
|
+
`--praxis-collection-search-radius: 0`, an intermediate radius such as `8px`, or `999px` on the global
|
|
597
|
+
theme scope to select square, corporate-rounded or pill geometry without targeting internal selectors.
|
|
598
|
+
The former Table-only `--pfx-field-manager-search-*` family is removed during beta so it cannot become
|
|
599
|
+
a competing public contract. The runtime resolves every remaining public `--pfx-field-manager-*` token
|
|
600
|
+
from the host before applying its private fallback. The scrollable field list reserves a stable scrollbar gutter
|
|
601
|
+
and derives a contrasting thumb from the manager surface and on-surface roles, so its overflow affordance
|
|
602
|
+
does not depend on application-global scrollbar styles. Native scrollbar auto-hide preferences can still
|
|
603
|
+
control when the operating system displays the thumb. Because the manager renders in a CDK overlay, define host overrides on a global theme scope
|
|
604
|
+
such as `html`, `body`, or the application theme class rather than only on the `praxis-filter` element.
|
|
605
|
+
When using the `PraxisFilter` i18n input, `selectedFieldsSectionTitle` and
|
|
606
|
+
`availableFieldsSectionTitle` customize the grouped field-manager headings; both are optional and
|
|
607
|
+
default to the Portuguese runtime labels. The trigger count includes fixed and selected filters.
|
|
608
|
+
Inside the manager, **Campos fixos**, **Campos selecionados** and **Campos disponíveis** state the
|
|
609
|
+
three distinct roles; the selected-section summary counts only the customizable selection. Its
|
|
610
|
+
`selectedFieldsCount` and `selectedFieldsCountSingular` text remains overridable through the same
|
|
611
|
+
i18n input. Each manageable field preserves its authored
|
|
612
|
+
`FieldMetadata.description` (falling back to its explicit tooltip/help metadata) as an information
|
|
613
|
+
tooltip on hover and keyboard focus. This lets operators distinguish semantically different filters
|
|
614
|
+
with similar labels—such as a single date, a date range, and a relative period—without the table
|
|
615
|
+
runtime fabricating domain guidance.
|
|
616
|
+
|
|
617
|
+
While the field manager is open, its selected and available sections preserve the composition they
|
|
618
|
+
had when the draft began. Checkbox state, the selected-field summary, pending-change badges, and the
|
|
619
|
+
Apply count update immediately, but rows are regrouped only after Apply closes the overlay or when it
|
|
620
|
+
is opened again. This keeps pointer position, keyboard focus, and scroll anchoring stable. Optional
|
|
621
|
+
`PraxisFilter.i18n` entries `fieldPendingAddition`, `fieldPendingRemoval`,
|
|
622
|
+
`fieldAddedAnnouncement`, `fieldRemovedAnnouncement`, and
|
|
623
|
+
`fieldSelectionSummaryAnnouncement` customize the pending-state badges and polite live-region
|
|
624
|
+
feedback; announcement templates accept `{field}` and `{summary}` placeholders.
|
|
625
|
+
|
|
626
|
+
```ts
|
|
627
|
+
const config: TableConfig = {
|
|
628
|
+
columns: [{ field: 'name', header: 'Name' }],
|
|
629
|
+
actions: {
|
|
630
|
+
row: {
|
|
631
|
+
enabled: true,
|
|
632
|
+
display: 'buttons',
|
|
633
|
+
discovery: { enabled: false },
|
|
634
|
+
actions: [
|
|
635
|
+
{
|
|
636
|
+
id: 'open-detail',
|
|
637
|
+
label: 'Open detail',
|
|
638
|
+
action: 'navigation.openRoute',
|
|
639
|
+
visibleWhen: { '===': [{ var: 'status' }, 'ACTIVE'] },
|
|
640
|
+
},
|
|
641
|
+
],
|
|
642
|
+
},
|
|
643
|
+
},
|
|
644
|
+
};
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
## Visual Authoring
|
|
648
|
+
|
|
649
|
+
Use `PraxisTableConfigEditor` or the table settings surfaces when `enableCustomization` is true.
|
|
650
|
+
|
|
651
|
+
For `surface.open` actions, invalid input/context JSON remains an unsaved draft:
|
|
652
|
+
the owning editor combines the subeditor's `validationChange` with its other
|
|
653
|
+
validation sources and blocks Apply/Save. Switching tabs preserves the draft;
|
|
654
|
+
correct it or use Cancel/discard before switching or replacing actions. Raw invalid
|
|
655
|
+
text is never included in the settings document. See the
|
|
656
|
+
[Core validation evidence and rollout boundary](../praxis-core/docs/surface-invalid-drafts-validation-2026-09-08.md).
|
|
657
|
+
|
|
658
|
+
In **Overview and behavior → Narrow screens** (Portuguese: **Visão geral e
|
|
659
|
+
comportamento → Telas estreitas**), choose **Cards** and set the maximum width in
|
|
660
|
+
pixels. The native editor and the Page Builder content editor use the existing
|
|
661
|
+
`appearance.responsive.mobile.cardMode` and `appearance.responsive.breakpoints.mobile`
|
|
662
|
+
properties. Missing width defaults to 768 px. The control accepts positive whole
|
|
663
|
+
numbers; invalid drafts block apply/save without replacing the last valid document.
|
|
664
|
+
Switching back to Table keeps other responsive preferences and column priorities.
|
|
665
|
+
Cards retain visible fields, row selection and actions; virtualization keeps the
|
|
666
|
+
standard table renderer. Selection still follows the authored connections and does
|
|
667
|
+
not implicitly navigate to an offscreen detail widget.
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
Main authoring areas include:
|
|
671
|
+
|
|
672
|
+
- columns
|
|
673
|
+
- behavior
|
|
674
|
+
- toolbar actions
|
|
675
|
+
- filters
|
|
676
|
+
- messages/localization
|
|
677
|
+
- visual rules
|
|
678
|
+
- value mapping
|
|
679
|
+
- JSON config editing
|
|
680
|
+
|
|
681
|
+
The runtime loads `PraxisTableConfigEditor` only when `openTableSettings()` reaches the native table authoring flow. Rendering a table does not eagerly materialize the editor chunk; delegated CRUD authoring also returns before that chunk is requested.
|
|
682
|
+
|
|
683
|
+
The package exports separate governed contracts for the two authoring documents: `PRAXIS_TABLE_AUTHORING_MANIFEST` owns `TableConfig`, including embedded filtering under `behavior.filtering`, while `PRAXIS_FILTER_AUTHORING_MANIFEST` owns the standalone `FilterConfig`. The standalone manifest never persists the controlled `value` DTO and does not expose Table query-builder operations or the nominal `submit` alias. `TABLE_AI_CAPABILITIES` / `TABLE_COMPONENT_AI_CAPABILITIES` remain the component capability discovery surface for the Table aggregate.
|
|
684
|
+
|
|
685
|
+
Canonical table refinements preserve business meaning across preview, persistence, reopen and runtime rendering:
|
|
686
|
+
|
|
687
|
+
- The global table title belongs to `toolbar.title` with the toolbar visible. It is distinct from a column header and must not be stored as an ad hoc root `title` or public widget input.
|
|
688
|
+
- `column.format.set` materializes both the requested format and its compatible visual column type. For example, `BRL|symbol|2` produces a currency column while preserving the schema's numeric data shape and every unrelated column property.
|
|
689
|
+
- `column.order.set` is a discrete visual move; order `0` means the first position. Its compiler emits a complete, collision-free order for all sibling columns so reopen and stable-sort runtimes cannot turn the edit into a visual no-op.
|
|
690
|
+
- `column.sticky.set` only pins a column during horizontal scrolling. It never means move-to-start and never substitutes for `column.order.set`.
|
|
691
|
+
|
|
692
|
+
Certification of these refinements must inspect the rendered table DOM—not only the authored JSON—including the toolbar title, visible header sequence, hidden-column absence and formatted cell content.
|
|
693
|
+
|
|
694
|
+
## Analytics And Rich Content
|
|
695
|
+
|
|
696
|
+
The table can materialize analytic table projections produced by the canonical `x-ui.analytics` decision in `@praxisui/core`. Services such as `AnalyticsTableContractService` help hosts resolve analytic table contracts and data without reimplementing that projection.
|
|
697
|
+
|
|
698
|
+
`AnalyticsTableStatsApiService.execute()` returns an `Observable<AnalyticsTableRow[]>`. The subscription owns the HTTP transport: unsubscribing aborts an in-flight stats request. `PraxisTable` applies the same `behavior.loading.requestTimeoutMs`, `behavior.loading.allowCancel`, retry, supersession and destruction lifecycle to REST resources and `analyticsProjection`, while preserving the last stable rows on cancellation or failure. Consumers that need a one-shot promise may use `firstValueFrom(...)` at their own orchestration boundary.
|
|
699
|
+
When both `resourcePath` and `analyticsProjection` are present, the canonical `DataMode` precedence remains remote: the table cancels any analytical transport and does not mix rows from the stats endpoint with the resource collection.
|
|
700
|
+
|
|
701
|
+
Detail rows can host governed rich content surfaces. Rich content semantics belong to the shared rich content/core contracts; the table provides the row-detail shell and host-mediated dispatch.
|
|
702
|
+
`behavior.detail` owns governed rich content for both row expansion and the contextual bottom panel. Set `detail.presentation.placement` to `bottom` to use the existing selection model: exactly one visible record supplies the body. `presentation.emptyBehavior` chooses an instructional state (`message`, the default) or removes the surface when it has no renderable selected-record content (`hide`). `presentation.bottomStackPosition` defaults to `afterControls`, keeping the table, footer toolbar and paginator together before the contextual panel; `beforeControls` is available for deliberately authored compositions. `behavior.expansion` owns row interaction. The finite migration moves old `behavior.expansion.detail` documents and rejects conflicting definitions; runtime does not read both paths.
|
|
703
|
+
|
|
704
|
+
The Details editor preserves authored field expressions and provider references through Apply/Save/reopen. `detail.configure`, `detail.source.configure` and `detail.presentation.configure` declare semantic operations; the canonical executor couples presentation, expansion and selection. See [the presentation ADR](docs/adr/table-detail-presentation.md) for activation, migration and async ownership rules. Rich content semantics belong to the shared rich content/core contracts; the table provides the detail shell and host-mediated dispatch.
|
|
705
|
+
|
|
706
|
+
The visual source editor exposes the complete identity required by `source.mode: "resource"` (`kind`, `id`, and `version`) and the guarded HTTP fields required by `source.mode: "resourcePath"` (`path`, `method`, `resourceAllowList`, and `fallbackMode`). A resource fallback exposes the same identity fields even while another primary source is selected. Fallback cannot point back to the primary mode. Explicit incomplete sources and fallback cycles block Apply/Save. `paramsMap`, `contextMap`, and other advanced source extensions remain available in the advanced JSON without being rewritten by hydration.
|
|
707
|
+
|
|
708
|
+
Use a `richContent` detail node when the selected-record body needs a callout, semantic card, icon, formatted hierarchy, token-based tone or contextual action. `source.inlineSchema` accepts either a detail document or one detail node; a single node is normalized into the same governed stack before validation and rendering. The Rich Content `document` and `rootClassName` use the canonical Rich Content validators before Apply/Save and again before rendering. The Details editor delegates that document to `PraxisRichContentConfigEditor`; Table does not redefine callout/card properties. Each Rich action ID must also be declared in `actions.row.actions[]`; an undeclared action blocks local authoring and remains unavailable at runtime for remotely supplied documents. Quick starts therefore create content without inventing a domain action. Declared actions use the Table row-action pipeline, so application handlers, global actions, capability checks and backend authorization keep their existing ownership. `requiresCapabilities` is evaluated against the canonical enterprise runtime capability list; the Table does not infer capabilities from authorities. Prefer semantic tones and application tokens. Arbitrary gradients remain an advanced style choice and require rendered contrast/theme evidence.
|
|
709
|
+
|
|
710
|
+
The selected-record body supports the governed detail schema and its Rich Content presenter subset. The shell states for zero, multiple, off-page, loading, blocked and error remain localized plain text under `table.detail.*`; hosts can override them through `localization.translations`. The Details editor exposes guided copy overrides for the common zero-selection and selected-record introduction states. Other shell states remain available through localization, and shell states do not accept Rich Content documents. `textExpr`, `labelExpr` and `valueExpr` resolve governed context paths rather than arbitrary string formulas. Compose several presenter nodes to show multiple fields together, or materialize a canonical derived value upstream when the result carries reusable business meaning. The guided editor covers the common presets; advanced supported node properties round-trip through the detail JSON.
|
|
711
|
+
|
|
712
|
+
Detail documents obtained from a provider or endpoint are untrusted input. In addition to the Table node allowlist, nested Rich Content presenters are validated by the canonical Rich Content document validator; unsafe styles, URLs, expressions or nested schemas fail closed according to the configured unsupported-node policy. Backend authorization and field-level disclosure policy remain mandatory because presentation sanitization does not decide whether a record or field may be returned.
|
|
713
|
+
|
|
714
|
+
When the actions column header combines an icon and a label, the table materializes that rich content with inline, non-wrapping layout. Column width may still be governed by the table contract, but the icon is not allowed to force the label onto a second line.
|
|
715
|
+
|
|
716
|
+
When `EnterpriseRuntimeContextService` publishes a different user, tenant, environment, profile, module, authority/capability set, locale or timezone, Table invalidates pending detail/data work, selection, rendered rows and row discovery. Local hosts must deliver a new `data` array for the effective context and cancel their own obsolete requests; retaining or mutating the previous array does not make it eligible again. Remote Table reloads through its existing data pipeline. Configure the host's canonical context propagation and enforce authorization in the backend; UI invalidation does not authorize a record or prove tenant isolation. Label and timestamp refreshes alone preserve runtime state.
|
|
717
|
+
|
|
718
|
+
`initiallyCollapsed` applies after persisted hydration and configuration Apply as well as initial input. Known detail group shapes, source modes, presentation modes and booleans are validated before Apply; unknown extension properties remain preserved. A missing `height` uses dynamic sizing, matching the editor default. `height.mode: "dynamic"` makes that intent explicit, follows the rendered content and occupies no body space when the surface is hidden. `height.mode: "fixed"` requires a positive pixel height; the editor starts at 192px when fixed mode is selected without a previous value.
|
|
719
|
+
|
|
720
|
+
Within `lazyLoad`, only `cache.enabled` (retention after collapse) and `cancelOnCollapse` currently change runtime behavior. `enabled`, `actionId`, `cache.ttlMs`, `retry.maxAttempts`, and `dedupeByRowKey` are deprecated compatibility fields: they round-trip but do not enable TTL, retries, action-based loading, or a deduplication override. Corporate configurations must not rely on those fields until an owning transport contract implements and tests them.
|
|
721
|
+
|
|
722
|
+
The fixed bottom body is a named, keyboard-focusable scroll region. This keeps long notes, timelines, referenced content and actions reachable, including when the operating system hides scrollbars until interaction. Dynamic mode lets short or variable content determine the panel height and keeps the collection controls in their stable position above the panel by default.
|
|
723
|
+
|
|
724
|
+
For detail `source.mode: "resourcePath"`, only a relative route that resolves to the host origin is executable. The runtime admits the canonical pathname through `resourceAllowList`, rejects explicit or encoded path traversal/separators and follows no redirects. Requests use same-origin credentials and `EnterpriseRuntimeContextService.effectiveRequestHeaders()`; this explicit surface can include the current context and host-configured authentication data without changing the context-only `headers()` contract. The allowlist is a document guardrail, not authorization, and it is not method-aware. Backend authorization remains mandatory for every GET/POST. Query semantics remain the endpoint owner's contract. Relative routes without a leading slash retain document-base behavior. Hosts that rely on Angular authentication or XSRF interceptors must use `source.mode: "resource"` with `PRAXIS_TABLE_DETAIL_RESOURCE_RESOLVER`, or publish the required headers through the canonical enterprise runtime header configuration, because this redirect-denying transport intentionally uses Fetch.
|
|
725
|
+
|
|
726
|
+
The Fetch-based detail transport currently buffers the response body before parsing and does not define a client-side byte limit. Corporate gateways and detail endpoints must therefore enforce response-size and timeout policies. Treat a configurable client-side budget as a future platform contract, not as a property that can be improvised in a Table document.
|
|
727
|
+
|
|
728
|
+
Every non-2xx response is a failed detail resolution even when its body resembles a valid schema. Error bodies are never materialized as UI content; the configured fallback may run, otherwise the detail stays in its governed blocked state.
|
|
729
|
+
|
|
730
|
+
When no bottom paginator or footer toolbar follows the data surface, the table closes its lower corners. When a bottom surface is present, the table keeps square lower corners so the stack remains visually continuous.
|
|
731
|
+
Governed embed nodes (`formRef`, `tableRef`, `chartRef`, `templateRef`, `diagramEmbed`) default to `renderMode: "reference"` when the field is omitted.
|
|
732
|
+
`renderMode: "inline"` is an explicit intent for an owning runtime/provider to materialize the referenced surface inside the detail row; hosts must still keep the reference shell as the accessible fallback when the provider, data, or capability is unavailable.
|
|
733
|
+
For charts, use `chartDocumentRef` or a governed `chartDocument` payload that follows the canonical `x-ui.chart` contract; do not place raw chart-engine options directly inside the table detail schema.
|
|
734
|
+
Hosts can register `PRAXIS_TABLE_DETAIL_INLINE_NODE_RESOLVERS` to resolve lightweight references such as `chartDocumentRef` into governed runtime inputs before the inline renderer runs, keeping persisted detail schemas small and auditable.
|
|
735
|
+
|
|
736
|
+
## Public API
|
|
737
|
+
|
|
738
|
+
Main exports:
|
|
739
|
+
|
|
740
|
+
- `PraxisTable`
|
|
741
|
+
- `PraxisTableToolbar`
|
|
742
|
+
- `PraxisTableConfigEditor`
|
|
743
|
+
- `PraxisTableWidgetConfigEditor`
|
|
744
|
+
- `PraxisFilter`
|
|
745
|
+
- filter settings and widget config editor
|
|
746
|
+
- `DataFormattingService`, `DataFormatterComponent`
|
|
747
|
+
- analytics table services
|
|
748
|
+
- rich content and action utilities
|
|
749
|
+
- table editor document/capability models
|
|
750
|
+
- behavior, columns, toolbar, messages, value mapping, JSON, filter, and rules editor components
|
|
751
|
+
- `providePraxisTableMetadata`
|
|
752
|
+
- `TABLE_AI_CAPABILITIES`, `TABLE_COMPONENT_AI_CAPABILITIES`
|
|
753
|
+
- `PRAXIS_TABLE_AUTHORING_MANIFEST`
|
|
754
|
+
- `PRAXIS_FILTER_AUTHORING_MANIFEST`
|
|
755
|
+
- table component edit-plan helpers
|
|
756
|
+
|
|
757
|
+
## Notes
|
|
758
|
+
|
|
759
|
+
- Separate local data mode from backend resource mode before deciding the minimum setup.
|
|
760
|
+
- `enableCustomization` is opt-in and gates settings/authoring surfaces; it does not change the data mode.
|
|
761
|
+
- `authoringCapability` optionally requires an exact capability from `EnterpriseRuntimeContext.capabilities` before those authoring surfaces are materialized. Use it for governed configuration; do not derive authorization from client-side usernames or roles.
|
|
762
|
+
- Treat export as a governed optional operation, not as automatic support implied by `resourcePath`.
|
|
763
|
+
- When `excel` is enabled in `export.formats`, the toolbar also exposes a current-page Excel export that downloads only the rows currently loaded in the table runtime with visible columns and formatted cell values. Full filtered exports continue to use the configured collection export provider.
|
|
764
|
+
- Theme the table through Material/Praxis tokens instead of targeting internal descendants.
|
|
765
|
+
- Use the official documentation for full recipes on filters, rich detail rows, rules, formatting, AI authoring, and backend capabilities.
|
|
766
|
+
|
|
767
|
+
### Authoring de tabela e filtro no Page Builder
|
|
768
|
+
|
|
769
|
+
O editor de conteúdo da tabela recebe a configuração efetiva em contexto transitório. Ao salvar, aplica apenas as mudanças autoradas, preservando paginação e renderizadores derivados do schema. Essa projeção não é copiada integralmente para o documento.
|
|
770
|
+
|
|
771
|
+
O editor do filtro permite selecionar o recurso e carregar seus campos pelo schema de filtro canônico. `resourcePath` e preferências visuais são persistidos; os metadados carregados permanecem derivados da API.
|
|
772
|
+
|
|
773
|
+
Ao receber novos `filterCriteria` ou `queryContext` de outro widget, a consulta remota reinicia na página zero. Com a estratégia omitida, paginação e ordenação são inferidas da origem: `server` para remoto e `client` para local. O editor oferece **Automática (pela fonte de dados)**, que remove a propriedade; escolhas explícitas são preservadas. Consulte [a precedência oficial](docs/local-data-mode-precedence.md) para as regras de round-trip e validação do total remoto.
|
|
774
|
+
|
|
775
|
+
## Filter heading and advanced-action presentation
|
|
776
|
+
|
|
777
|
+
Tables and standalone filters share Core `FilterPresentationConfig`. Configure an optional heading above or inline with the filters and present the advanced action as icon, text, or both. Heading visibility is opt-in; omitting presentation preserves the existing appearance. Action placement stays within the auxiliary controls group. It does not move table actions or change filter values.
|
|
778
|
+
|
|
779
|
+
For tables use `config.behavior.filtering.advancedFilters.settings.presentation`; for standalone filters use `FilterConfig.presentation` (runtime input `presentation`). The guided editor exposes semantic choices, while the optional nine `--pfx-filter-*` tokens support theme customization. See [the canonical JSON API](src/lib/praxis-table.json-api.md#filter-presentation) for the exact fields, defaults and token list.
|
|
780
|
+
|
|
781
|
+
When filter persistence is enabled, a presentation acknowledged by **Save and close** is restored over the authored page baseline for the same component identity. **Apply** changes only the current preview. Set `disablePersistence` when the host must always materialize the authored input and must not read or write user filter preferences.
|
|
782
|
+
|
|
783
|
+
The preferences editor carries the complete effective filter document through Apply and Save. Editing presentation, layout or behavior therefore preserves `selectedFieldIds` and metadata overrides owned by the same preference record.
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
## Ciclo de vida dos editores do filtro
|
|
787
|
+
|
|
788
|
+
Os painéis de preferências e de metadados são vinculados ao `DestroyRef` da origem
|
|
789
|
+
pelo contrato `owner` do Settings Panel. Remover a origem encerra seus painéis e
|
|
790
|
+
as assinaturas de Apply/Save. Um carregamento lazy concluído após a destruição
|
|
791
|
+
do pai não abre um editor filho. O host deve destruir efetivamente o componente
|
|
792
|
+
quando sua origem deixa de existir, em vez de apenas ocultá-lo por CSS.
|
|
793
|
+
|
|
794
|
+
Salvar metadados no editor filho altera o rascunho do pai; a gravação da configuração
|
|
795
|
+
continua pertencendo ao fluxo de Save do filtro. Destruir a origem não inicia Save
|
|
796
|
+
e não implica cancelar requisições de gravação já iniciadas legitimamente.
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
### Confirmação de Save nas preferências do filtro
|
|
800
|
+
|
|
801
|
+
O painel aguarda a conclusão do storage antes de fechar. Apply permanece uma
|
|
802
|
+
prévia sem gravação; erros de Save mantêm o rascunho aberto para nova tentativa.
|
|
803
|
+
Conflitos 409/412 não são sobrescritos automaticamente. Alterações feitas durante
|
|
804
|
+
uma requisição também permanecem abertas após a confirmação da versão enviada.
|
|
805
|
+
O cache local de FilterConfigService é atualizado ou removido somente após sucesso
|
|
806
|
+
de Save/Clear. A garantia corresponde ao storage configurado: o adapter local não
|
|
807
|
+
constitui confirmação de gravação no backend.
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
### Navegação em painéis estreitos
|
|
811
|
+
|
|
812
|
+
A adaptação de authoring considera a largura do contêiner, inclusive quando o
|
|
813
|
+
painel é estreito em uma janela desktop. Table e Dynamic Form exibem “Seção do
|
|
814
|
+
editor” até 768px de largura disponível, mantendo a mesma seleção e os conteúdos
|
|
815
|
+
das abas. Acima desse limite, reaparece a navegação por abas. O Settings Panel
|
|
816
|
+
organiza título, expandir e fechar em uma grade até 599px; a prévia, quando
|
|
817
|
+
suportada, ocupa a linha seguinte. Nenhum documento ou protocolo de Save é alterado.
|
|
818
|
+
|
|
819
|
+
### Filhos de páginas governadas
|
|
820
|
+
|
|
821
|
+
Consulte [o adapter nativo de página](docs/governed-page-widget-adapter.md) para reconstrução sem defaults, presença exata, identidade derivada e execução sem preferências concorrentes.
|
|
822
|
+
|
|
823
|
+
### Shared assistant voice policy
|
|
824
|
+
|
|
825
|
+
Configure `{ provide: PRAXIS_ASSISTANT_VOICE_INPUT_MODE, useValue: 'governed-transcription' }` once in the host application (token from `@praxisui/ai`). The shell, Page Builder and Table inherit it; explicit component inputs can override it, including `disabled`. The default remains disabled when the host does not opt in.
|
|
826
|
+
|
|
827
|
+
The shared composer checks `GET /api/praxis/config/ai/transcriptions/capabilities` before requesting microphone permission. Readiness means local provider/credential configuration, not quota or network health. Recording, transcription and cancellation preserve the editable draft and never auto-submit. Deploy the backend capability before enabling the updated client.
|
|
828
|
+
|
|
829
|
+
Voice language also inherits `PRAXIS_ASSISTANT_VOICE_LANGUAGE`; explicit component inputs override it. Governed capture is bound to confirmed enterprise context (user/tenant/profile/version) and is cancelled when that authority is invalidated. Page Builder session resets and Table owner changes discard the old shell capture; editing the current draft does not cancel it. The host must keep its session and runtime authority coherent and invalidate it on session-generation changes.
|
|
830
|
+
|
|
831
|
+
Corporate adoption requires a ready context and current context-version headers, a host resolver bound to the server session/membership, and the correct cookie transport. The quickstart enterprise resolver applies this admission to all its AI callers. Local header-only integration cannot detect cookie changes that the host does not report. Focused/mock tests are not proof of durable session persistence, provider connectivity or published package adoption.
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
### Published collection surfaces
|
|
835
|
+
|
|
836
|
+
`collectionSurface` accepts the backend `ResourceSurfaceCatalogItem` for a readable collection (`VIEW`, `READ_PROJECTION`, `HIERARCHY_TREE`). The resource surface adapter supplies it automatically. The table consumes the published filtered response schema and GET/POST operation through Core; GET filters are scalar query parameters (arrays become repeated keys), while POST filters retain their JSON body. A collection response is treated as a complete result; paged responses retain their server pagination. Disallowed or unsupported operations fail closed.
|
|
837
|
+
|
|
838
|
+
Hierarchy cells retain the descriptor and identity title from schema consumption. Schema reload, resource reconfiguration and tenant/context invalidation clear this snapshot; rendering cells does not resolve service headers or clone metadata. This input is backend discovery state, not an editable authoring target.
|
|
830
839
|
|
|
831
840
|
<!-- praxis-npm-catalog-links:start -->
|
|
832
841
|
## Official documentation and examples
|