@praxisui/charts 10.0.0-rc.58 → 10.0.0-rc.59
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 +8 -4
- package/ai/component-registry.json +507 -17
- package/fesm2022/praxisui-charts.mjs +3607 -186
- package/package.json +3 -3
- package/types/praxisui-charts.d.ts +258 -24
package/README.md
CHANGED
|
@@ -159,7 +159,7 @@ The public contract is `PraxisChartConfig` or the canonical `PraxisXUiChartContr
|
|
|
159
159
|
|
|
160
160
|
The structured alternative is automatic. It does not add an accessibility field to `PraxisChartConfig` or `x-ui.chart`, and custom engines remain responsible for an accessible visual rendering while the component-level data alternative remains renderer-neutral.
|
|
161
161
|
|
|
162
|
-
Standalone charts render that toggle inside the component. When the chart is loaded by `WidgetShell`, it contributes the same stateful action to the shell toolbar and suppresses the duplicate internal control. The visual canvas becomes hidden and inert while the opaque structured-data surface is active, so the two representations never compete visually or interactively.
|
|
162
|
+
Standalone charts render that toggle inside the component. When the chart is loaded by `WidgetShell`, it contributes the same stateful action to the shell toolbar and suppresses the duplicate internal control. When hosted inside `PraxisAnalyticsPresentationComponent` with an eligible `analytic-table` family, the presentation sets `dataAlternativeMode="external"` and `externalDataAlternativeLabel` so the compact switcher becomes the single table authority, suppresses the duplicate chart trigger/action, updates the ECharts ARIA description to point at that control, and shares raw `/stats/*` responses across families. Setting `dataAlternativeMode="none"` suppresses the built-in panel and omits the table hint from the ARIA description. The visual canvas becomes hidden and inert while the opaque built-in structured-data surface is active, so the two representations never compete visually or interactively.
|
|
163
163
|
|
|
164
164
|
Supported canonical kinds are `bar`, `horizontal-bar`, `line`, `area`, `stacked-bar`,
|
|
165
165
|
`stacked-area`, `combo`, `pie`, `donut`, `scatter`, `funnel`, `pyramid`, `treemap`, `sunburst`,
|
|
@@ -209,12 +209,16 @@ adapters instead of rebuilding stats requests.
|
|
|
209
209
|
/>
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
+
When rendered inside a `<praxis-widget-shell>` via `DynamicWidgetLoaderDirective`, `PraxisAnalyticsPresentationComponent` implements `WidgetShellActionContributor` to promote the eligible family switcher (`chart`, `analytic-table`, `kpi`, `summary-list`) into the shell header as an atomic segmented group (automatically falling back to icon-only with tooltips and then to a labeled radio section inside the `More actions` overflow menu when header width is constrained). Configure placement and display with `controlsPlacement` (`'auto' | 'shell-header' | 'inline'`, default `'auto'`) and `controlsDisplay` (`'auto' | 'icon-label' | 'icon-only' | 'menu'`, default `'auto'`). Standalone renders, hosts with `showHeader: false`, or `controlsPlacement="inline"` automatically keep the inline family toolbar rendered, while multi-projection selectors stay inline in the widget body so both controls remain independent.
|
|
213
|
+
|
|
212
214
|
Choice precedence is temporary user choice, persisted `preferredFamily`, then projection hints.
|
|
213
215
|
`availableFamilies` must already reflect host policy/capabilities; the runtime intersects it with
|
|
214
216
|
installed and semantically eligible renderers. Incompatible preferences fail closed. Switching
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
between `chart`, `analytic-table`, `kpi`, and `summary-list` reuses the shared in-memory
|
|
218
|
+
raw `/stats/*` response cache (`rawStatsValueCache` LRU up to 16 entries / `inFlightRawStats` keyed by normalized
|
|
219
|
+
`resourcePath + projectionId + statsPath + statsRequest + filterExpression + runtimeContextRevision`) whenever the remote stats
|
|
220
|
+
contract allows, avoiding duplicate HTTP calls for the same slice while invalidating cache entries and
|
|
221
|
+
cancelling in-flight cache writes when `EnterpriseRuntimeContextService.contextChanges$`, `analyticsChanged`, resource hydration, or destroy occurs. KPI is eligible for canonical
|
|
218
222
|
`group-by` and `comparison` projections with one primary metric, enriched with comparison delta
|
|
219
223
|
badges and `<praxis-micro-visualization [interactiveContainer]="true">`. `summary-list` renders an
|
|
220
224
|
ordered, keyboard-accessible proportional summary list with normalized bar shares and comparison
|