@praxisui/table 10.0.0-rc.61 → 10.0.0-rc.63
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 +14 -3
- package/ai/component-registry.json +772 -166
- package/docs/adr/2026-07-table-rich-cells-governance.md +5 -4
- package/fesm2022/praxisui-table-authoring.mjs +15 -135
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-DfOXx5lp.mjs → praxisui-table-filter-form-dialog-host.component-C1WLSr0O.mjs} +1 -1
- package/fesm2022/{praxisui-table-praxisui-table-PvwtPvhN.mjs → praxisui-table-praxisui-table-CLqu-jPA.mjs} +1627 -608
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-DgbfJI3k.mjs → praxisui-table-table-agentic-authoring-turn-flow-scRbaa9U.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-DWR_lxPJ.mjs → praxisui-table-table-ai.adapter-C7SgxQiE.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +77 -31
package/README.md
CHANGED
|
@@ -438,11 +438,11 @@ For `iconValue`, `presentation.prefix` and `presentation.suffix` are rendered as
|
|
|
438
438
|
|
|
439
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
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
|
|
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
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 `
|
|
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).
|
|
444
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 `
|
|
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.
|
|
446
446
|
|
|
447
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
448
|
|
|
@@ -847,6 +847,17 @@ Hierarchy cells retain the descriptor and identity title from schema consumption
|
|
|
847
847
|
- 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.
|
|
848
848
|
- Table Settings Panel integration wires `configStorageKey`, awaited async `onSave` / `onReset` handlers, and normalized `configPersistenceStrategy` (`'local-first' | 'input-first' | 'volatile'`).
|
|
849
849
|
|
|
850
|
+
### Schema-driven semantic presentation & CSP-safe cell alignment
|
|
851
|
+
|
|
852
|
+
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`:
|
|
853
|
+
- **Supported presenters**: `badge`, `chip`, `status`, `iconValue`, `progress`, `rating`, and `microVisualization`.
|
|
854
|
+
- **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.
|
|
855
|
+
- **Conditional presentation (`x-ui.presentationRules`)**: evaluated per row via Json Logic using `first-match` precedence aligned with `FieldShell` and `ResourceQuickViewService`.
|
|
856
|
+
- **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.
|
|
857
|
+
- **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.
|
|
858
|
+
- **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.
|
|
859
|
+
- **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.
|
|
860
|
+
|
|
850
861
|
<!-- praxis-npm-catalog-links:start -->
|
|
851
862
|
## Official documentation and examples
|
|
852
863
|
|