@praxisui/table 10.0.0-rc.7 → 10.0.0-rc.71
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 +157 -12
- package/ai/component-registry.json +4420 -354
- package/docs/adr/2026-07-table-rich-cells-governance.md +5 -4
- package/docs/column-resize-reorder-implementation-plan.md +3 -3
- package/docs/column-resize-reorder-review-prompt.md +1 -1
- package/docs/dynamic-filter-host-integration-guide.md +49 -2
- package/docs/dynamic-filter-payload-contract.md +29 -6
- package/docs/dynamic-filter-range-filters-guide.md +125 -13
- package/docs/governed-page-widget-adapter.md +55 -0
- package/docs/local-data-mode-precedence.md +21 -0
- package/docs/performance-hardening-v2-implementation-plan.md +20 -20
- package/docs/table-bottom-detail-progress.md +2 -2
- package/fesm2022/praxisui-table-authoring.mjs +848 -161
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-DANYIQs6.mjs → praxisui-table-filter-form-dialog-host.component-CmqK_WBK.mjs} +61 -11
- package/fesm2022/{praxisui-table-praxisui-table-BIRFv2S8.mjs → praxisui-table-praxisui-table-BFyjUHDv.mjs} +22144 -2775
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-DtOwXgFW.mjs → praxisui-table-table-agentic-authoring-turn-flow-CxAJUZzG.mjs} +2 -2
- package/fesm2022/{praxisui-table-table-ai.adapter-25xtoiWq.mjs → praxisui-table-table-ai.adapter-DG81dbBu.mjs} +13 -7
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/src/lib/praxis-table.json-api.md +58 -18
- package/types/praxisui-table-authoring.d.ts +30 -2
- package/types/praxisui-table.d.ts +1223 -129
package/README.md
CHANGED
|
@@ -98,6 +98,99 @@ The host demonstrates this at `/dynamic-page-lab/archetypes/bulk-partial`, using
|
|
|
98
98
|
`praxis-dynamic-page.bulk-partial.ui-composition-plan.artifact.json`. The real
|
|
99
99
|
backend proof creates and removes exclusive payroll-event fixtures.
|
|
100
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
|
+
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
|
+
|
|
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
|
+
|
|
101
194
|
## LLM Recommendation Guide
|
|
102
195
|
|
|
103
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.
|
|
@@ -233,7 +326,7 @@ Selector and lookup surfaces can keep the same remote `resourcePath`, schema, pa
|
|
|
233
326
|
|
|
234
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.
|
|
235
328
|
|
|
236
|
-
The runtime default remains `local-first
|
|
329
|
+
The runtime default remains `local-first` (`'storage-first'` is accepted and normalized to `'local-first'` via `@praxisui/core`), 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.
|
|
237
330
|
|
|
238
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.
|
|
239
332
|
|
|
@@ -345,15 +438,17 @@ For `iconValue`, `presentation.prefix` and `presentation.suffix` are rendered as
|
|
|
345
438
|
|
|
346
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.
|
|
347
440
|
|
|
348
|
-
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
|
|
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`; `PraxisTable`, `PraxisAnalyticalDrawerComponent`, and `ColumnsConfigEditorComponent` host `<praxis-micro-viz-host>` directly with zero compile-time coupling to ECharts. When the host application installs `providePraxisCharts()` (`PRAXIS_MICRO_CHART_ENGINE`), all 6 vector/SVG kinds (`line`, `area`, `column`, `waterfall`, `radial`, and `harveyBall`) automatically render via Apache ECharts (`data-engine="echarts"`), while structural HTML/CSS kinds (`stackedBar`, `comparison`, `bullet`, `delta`, `processFlow`) and opt-out/no-engine setups fall back cleanly to `@praxisui/core` primitives (`data-engine="primitive"`). Guided table authoring (`ColumnsConfigEditorComponent`) supports all 11 canonical kinds including `waterfall` (validating `items`/`itemsExpr` or `points`/`pointsExpr`, `scaleBounds`, and `scaleScope`), while `table-ai-capabilities` and `PRAXIS_TABLE_AUTHORING_MANIFEST` intentionally preserve the 10 table-safe kinds (`line`, `area`, `column`, `comparison`, `stackedBar`, `radial`, `harveyBall`, `bullet`, `delta`, `processFlow`) until the next registry snapshot cycle.
|
|
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`. Both runtime binding (`PraxisTable`) and preview authoring (`ColumnsConfigEditorComponent`) evaluate all declared `*Expr` fields, including `titleExpr` and `targetLabelExpr`. 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`, `comparison`, and `waterfall` (supporting numbers, `{ value, label }` points, or waterfall step items); `segments`/`segmentsExpr` for `stackedBar`; and `items`/`itemsExpr` for `processFlow` and `waterfall`. For `line`, `area`, and `column`, `target`/`targetExpr` and `baseline`/`baselineExpr` can project simultaneous horizontal reference lines inside the SVG plot (`dashed` for `target`, `dotted` for `baseline` when distinct), and `scaleScope: 'page'` synchronizes the `[min, max]` domain strictly across the currently visible/filtered page rows—excluding LGPD-suppressed values/points as well as rows overridden to non-matching renderers or different kinds via `conditionalRenderers[]` (explicit row-level `min`/`minExpr` or `max`/`maxExpr` retain precedence over page bounds).
|
|
349
444
|
|
|
350
|
-
|
|
445
|
+
Table-safe micro visualization kinds are `line`, `area`, `column`, `waterfall`, `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`, `column`, and `waterfall` 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.
|
|
351
446
|
|
|
352
|
-
|
|
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.
|
|
353
448
|
|
|
354
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.
|
|
355
450
|
|
|
356
|
-
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. 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.
|
|
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.
|
|
357
452
|
|
|
358
453
|
### Enterprise rich-cell evidence lab
|
|
359
454
|
|
|
@@ -373,12 +468,7 @@ Use `config.ai.assistant.enabled = false` when a host needs to disable the embed
|
|
|
373
468
|
|
|
374
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.
|
|
375
470
|
|
|
376
|
-
|
|
377
|
-
density and internal spacing to the shared `praxis-empty-state-card`, without
|
|
378
|
-
forcing a centered transparent card or reserving viewport-based height. Existing
|
|
379
|
-
`--pdx-empty-state-*` theme tokens remain available for the card; the surrounding
|
|
380
|
-
table surface uses the table background and border tokens. The default
|
|
381
|
-
presentation remains centered, compact and transparent.
|
|
471
|
+
Unpaginated, virtualized, mobile-card, and genuinely empty (`0` unfiltered total) collections let the no-data region follow its content height without reserving viewport height. In paginated tables with a non-empty dataset baseline, `.ptable-data-surface` stabilizes its minimum block size up to `min(pageSize, unfilteredTotal, 10)` row slots (`--p-table-data-surface-min-height-runtime`, overridable by hosts via `--p-table-data-surface-min-height`), suppresses horizontal scrollbars on `0`-row filtered states, vertically centers `praxis-empty-state-card` below `<thead>`, and freezes the committed empty-state filter snapshot while filter-reset requests are in flight. Existing `--pdx-empty-state-*` theme tokens remain available for the card; the surrounding table surface uses the table background and border tokens. The default presentation remains centered, compact and transparent.
|
|
382
472
|
|
|
383
473
|
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.
|
|
384
474
|
|
|
@@ -398,6 +488,14 @@ const config: TableConfig = {
|
|
|
398
488
|
};
|
|
399
489
|
```
|
|
400
490
|
|
|
491
|
+
## Loading and Refresh
|
|
492
|
+
|
|
493
|
+
During the initial cold `replace` load (before the first resolved dataset baseline when no rows are mounted), `behavior.loading.type = "skeleton"` renders tokenized header and body placeholder rows sized to `min(pageSize, 8)` on paginated tables (or `skeleton.rows` when explicitly declared), while `spinner` and `progress` render a centered compact status capsule.
|
|
494
|
+
|
|
495
|
+
Once rows or an initial dataset baseline exist, subsequent reloads (filtering, sorting, paging, or refreshing) automatically promote from `replace` to non-destructive `overlay` mode (or stay non-blocking in `inline` mode). Instead of covering rendered rows with fake skeleton bars, the surface displays a `2px` primary header-seam bar immediately at `0ms`, a subtle `44%` surface-token veil below `<thead>` (leaving the sticky header and active native horizontal scrollbar uncovered), and a compact top-right tonal status capsule whose indicator (`skeleton`, `progress`, or `spinner`) matches `behavior.loading.type`. The live-region `role="status"` is scoped strictly to the localized message span, and when `behavior.loading.allowCancel !== false`, the cancel button reveals progressively after `1.2s` (or immediately on `:focus-within` for keyboard users). Loading motion respects `behavior.loading.skeleton.animated = false`, `appearance.animations.enabled = false`, `accessibility.reduceMotion = true`, `prefers-reduced-motion`, and `forced-colors`.
|
|
496
|
+
|
|
497
|
+
In-flight height stabilization (`--p-table-data-surface-min-height-runtime`) automatically subtracts transient expanded row detail panels (`pfx-expansion-detail-row`) when capturing height, clears pending heights on load errors or cancellations, and is bypassed in virtualized or mobile-card modes. Columns typed as `currency` without an explicit `format` derive locale-aware currency defaults (`BRL` / `R$` for `pt-BR`, `USD` / `$` for `en-US`, or matching code-keyed defaults when `currency.code` is supplied).
|
|
498
|
+
|
|
401
499
|
## Toolbar Appearance
|
|
402
500
|
|
|
403
501
|
When a containing Widget Shell already owns the title and resource identity, omit
|
|
@@ -675,7 +773,7 @@ O editor de conteúdo da tabela recebe a configuração efetiva em contexto tran
|
|
|
675
773
|
|
|
676
774
|
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.
|
|
677
775
|
|
|
678
|
-
Ao receber novos `filterCriteria` ou `queryContext` de outro widget, a consulta remota reinicia na página zero.
|
|
776
|
+
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.
|
|
679
777
|
|
|
680
778
|
## Filter heading and advanced-action presentation
|
|
681
779
|
|
|
@@ -721,6 +819,53 @@ das abas. Acima desse limite, reaparece a navegação por abas. O Settings Panel
|
|
|
721
819
|
organiza título, expandir e fechar em uma grade até 599px; a prévia, quando
|
|
722
820
|
suportada, ocupa a linha seguinte. Nenhum documento ou protocolo de Save é alterado.
|
|
723
821
|
|
|
822
|
+
### Filhos de páginas governadas
|
|
823
|
+
|
|
824
|
+
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.
|
|
825
|
+
|
|
826
|
+
### Shared assistant voice policy
|
|
827
|
+
|
|
828
|
+
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.
|
|
829
|
+
|
|
830
|
+
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.
|
|
831
|
+
|
|
832
|
+
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.
|
|
833
|
+
|
|
834
|
+
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.
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
### Published collection surfaces
|
|
839
|
+
|
|
840
|
+
`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.
|
|
841
|
+
|
|
842
|
+
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.
|
|
843
|
+
|
|
844
|
+
### `<praxis-analytical-drawer>` Portalization, Containment & Settings Persistence
|
|
845
|
+
|
|
846
|
+
- `<praxis-analytical-drawer>` mounts its backdrop and drawer panel inside a CDK `Overlay` portal so ancestor CSS containment (`contain: layout paint style`) or `overflow: hidden` never clips full-viewport drawer overlays, while forwarding host `--pfx-drawer-*` and `--praxis-z-drawer` custom properties onto the overlay pane.
|
|
847
|
+
- `<praxis-analytical-drawer>` exposes signal-backed `resizable`, `expandable`, `persistSizeKey` (default `'analytical-drawer'`), `minWidth`, and `maxWidth` inputs powered by `@praxisui/core` side-panel geometry (`min(780px, max(320px, 60vw), 100vw)` fallback, `localStorage` persistence clamped to active viewport bounds, WAI-ARIA `role="separator"` bounds, drag/keyboard/double-click resize, `window:resize` adaptation, close-time expand reset, and localized `tableRuntime` labels `drawer.resizeHandle`, `drawer.expand`, `drawer.collapse`).
|
|
848
|
+
- Internal responsive layouts rely on `container-type: inline-size` (`@container`), isolate `--pdx-page-bg: transparent` at the drawer boundary, and render high-contrast backdrops via `.pfx-drawer-backdrop::before` under `@media (forced-colors: active)` so the drawer content retains full opacity.
|
|
849
|
+
- Table Settings Panel integration wires `configStorageKey`, awaited async `onSave` / `onReset` handlers, and normalized `configPersistenceStrategy` (`'local-first' | 'input-first' | 'volatile'`). When a Quick View action or stacked contextual drawer mutates a resource matching the table or a configured column `quickView` binding (`ResourceQuickViewService.resourceMutation$`), `<praxis-table>` refreshes automatically to keep table rows synchronized.
|
|
850
|
+
|
|
851
|
+
### Schema-driven semantic presentation & CSP-safe cell alignment
|
|
852
|
+
|
|
853
|
+
When schema metadata declares `x-ui.presentation` or `x-ui.presentationRules`, `@praxisui/core` and `@praxisui/table` project them consistently into `column.renderer` and `column.conditionalRenderers`:
|
|
854
|
+
- **Supported presenters**: `badge`, `chip`, `status`, `iconValue`, `progress`, `rating`, and `microVisualization`.
|
|
855
|
+
- **Visual affixes (`prefix` / `suffix`) and hover tooltips**: preserved on `badge`, `chip`, and `icon` renderers with `tabular-nums` alignment and intentional leading/trailing spacing intact without mutating underlying sort, filter, or export values.
|
|
856
|
+
- **Conditional presentation (`x-ui.presentationRules`)**: evaluated per row via Json Logic using `first-match` precedence aligned with `FieldShell` and `ResourceQuickViewService`.
|
|
857
|
+
- **Semantic tone & surface parity**: canonical tones (`neutral`, `primary`, `secondary`, `info`, `success`, `warning`, `danger`) and aliases (`muted -> neutral`, `positive -> success`, `critical | negative -> danger`) map consistently across `badge`, `chip`, and `icon` renderers (`.pfx-badge--*-{color}`, `.pfx-chip--*-{color}`, `.pfx-icon-renderer--tone-{tone}`), with `neutral`/`muted -> basic` and `danger`/`critical`/`negative -> warn` normalized in schema reconciliation.
|
|
858
|
+
- **LGPD masked-value & affix safeguards**: `getIconText`, `getIconRichContentNodes`, `getBadgeText`, and `getChipText` delegate to shared `@praxisui/core` affix helpers so visual `prefix`/`suffix` tokens are suppressed on privacy-masked values (`***`, `••••••`, `[REDACTED]`, etc.), omitted on empty/null values (no orphan affixes), and deduplicated when the value already carries the affix.
|
|
859
|
+
- **Sibling-aware cell renderer cache**: `buildEffectiveCellRenderCacheKey` extracts Json Logic `{ var }` field dependencies from `column.conditionalRenderers` so in-place sibling property mutations on the same `rowId` deterministically invalidate and recompute the effective renderer.
|
|
860
|
+
- **CSP-safe alignment**: cell alignment applies `.pfx-cell-content--align-{left,center,right}` CSS classes in `getCellContentClasses`, preserving alignment even under strict `style-src` CSP mode.
|
|
861
|
+
- **Epistemic calculation trails & AI handoff (`<praxis-analytical-drawer>`)**: `PraxisAnalyticalDrawerComponent` supports static `PraxisAnalyticalDrawerCalculationTrail.epistemicMeta` and dynamic `*Expr` metadata resolution (such as payroll or workforce variance trails materialized from `x-ui.calculationMemory`), renders frameless `<praxis-epistemic-badge>` headers alongside deterministic trails, and passes structured `epistemicMeta` plus localized `pt-BR`/`en-US` context in `onAskCalculationMemory()` prompts when a trail is stochastic or fail-closed.
|
|
862
|
+
|
|
863
|
+
### CSS Custom Properties (Toolbar & Analytical Drawer Icons)
|
|
864
|
+
|
|
865
|
+
- **Analytical Drawer Hero & Calculation Trails:** `--pfx-drawer-hero-icon-size`, `--pfx-drawer-hero-icon-radius`, `--pfx-drawer-hero-icon-bg`, `--pfx-drawer-hero-icon-border`, `--pfx-drawer-hero-icon-glyph-size`, `--pfx-calc-trail-icon-size`, `--pfx-calc-trail-icon-padding`, `--pfx-calc-trail-icon-radius`, and `--pfx-calc-trail-icon-bg`.
|
|
866
|
+
- **Table Toolbar Identity Icon:** `--p-table-toolbar-identity-icon-bg`, `--p-table-toolbar-identity-icon-border`, and `--p-table-toolbar-identity-icon-glyph-size`.
|
|
867
|
+
- **Row Expansion & Collection Outcome Accents:** `--p-table-expansion-border-left` on `.pfx-expansion-detail-panel` (default `3px solid var(--md-sys-color-primary)`) and `--p-table-outcome-failed-border-inline-start` on `.outcome__item--failed` (default `3px solid currentColor`).
|
|
868
|
+
|
|
724
869
|
<!-- praxis-npm-catalog-links:start -->
|
|
725
870
|
## Official documentation and examples
|
|
726
871
|
|