@praxisui/charts 9.0.0-beta.30 → 9.0.0-beta.32
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 +11 -3
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-charts.mjs +20 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -139,16 +139,24 @@ Supported sizing modes are `fixed`, `fill-container` and `auto`. Prefer `fill-co
|
|
|
139
139
|
`PraxisMicroVisualizationComponent` renders the first renderer-neutral presentation visualizations from `@praxisui/core`.
|
|
140
140
|
It is intended for compact presentation surfaces, especially table cells, list items and read-only form summaries.
|
|
141
141
|
|
|
142
|
-
The
|
|
142
|
+
The table-safe kinds currently aligned with `PraxisPresentationVisualizationKind` are:
|
|
143
143
|
|
|
144
|
+
- `line`
|
|
145
|
+
- `area`
|
|
146
|
+
- `column`
|
|
144
147
|
- `comparison`
|
|
145
148
|
- `stackedBar`
|
|
149
|
+
- `radial`
|
|
150
|
+
- `harveyBall`
|
|
146
151
|
- `bullet`
|
|
147
152
|
- `delta`
|
|
153
|
+
- `processFlow`
|
|
148
154
|
|
|
149
155
|
The component does not instantiate ECharts. It renders lightweight HTML/CSS from `PraxisPresentationVisualizationConfig`
|
|
150
|
-
and falls back to `fallbackText` when the visualization kind
|
|
151
|
-
|
|
156
|
+
and falls back to `fallbackText` when the visualization kind cannot be rendered for the current compact surface.
|
|
157
|
+
Use `points` as the canonical numeric series for `line`, `area`, `column`, and `comparison`;
|
|
158
|
+
use `segments` for `stackedBar`, `thresholds` for `bullet`, and `items` for item/step-oriented visualizations such as `processFlow`.
|
|
159
|
+
Rich charts still use the canonical `x-ui.chart` document flow above; micro visualizations are the lightweight presentation contract for dense cells, list items, object headers, card summaries and form presentation surfaces.
|
|
152
160
|
|
|
153
161
|
## Authoring Surface
|
|
154
162
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-02T23:12:01.271Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "9.0.0-beta.
|
|
5
|
+
"packageVersion": "9.0.0-beta.32",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 2,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Inject, InjectionToken, input, booleanAttribute, output, viewChild, inject, ElementRef, NgZone, DestroyRef, signal, computed, afterNextRender, effect, ChangeDetectionStrategy, Component, ViewChild, Input, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@praxisui/core';
|
|
4
|
-
import { buildApiUrl, API_URL, PraxisI18nService, SETTINGS_PANEL_BRIDGE, normalizePraxisPresentationVisualization, providePraxisI18n, SETTINGS_PANEL_DATA, ComponentMetadataRegistry, createDefaultTableConfig, AnalyticsStatsRequestBuilderService, DynamicWidgetPageComponent } from '@praxisui/core';
|
|
4
|
+
import { buildApiUrl, API_URL, PraxisI18nService, SETTINGS_PANEL_BRIDGE, normalizePraxisPresentationVisualization, providePraxisI18n, SETTINGS_PANEL_DATA, ComponentMetadataRegistry, createDefaultTableConfig, PRAXIS_TABLE_DETAIL_INLINE_RENDERERS, AnalyticsStatsRequestBuilderService, DynamicWidgetPageComponent } from '@praxisui/core';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { throwError, map, of, isObservable, from, BehaviorSubject, Subscription } from 'rxjs';
|
|
7
7
|
import * as i1$2 from '@angular/material/button';
|
|
@@ -6189,6 +6189,20 @@ function providePraxisChartShowcaseWidgetMetadata() {
|
|
|
6189
6189
|
};
|
|
6190
6190
|
}
|
|
6191
6191
|
|
|
6192
|
+
const PRAXIS_TABLE_CHART_DETAIL_RENDERER = {
|
|
6193
|
+
nodeType: 'chartRef',
|
|
6194
|
+
renderMode: 'inline',
|
|
6195
|
+
component: PraxisChartComponent,
|
|
6196
|
+
buildInputs: ({ node }) => {
|
|
6197
|
+
if (!node.chartDocument || typeof node.chartDocument !== 'object') {
|
|
6198
|
+
return null;
|
|
6199
|
+
}
|
|
6200
|
+
return {
|
|
6201
|
+
...(node.inputs && typeof node.inputs === 'object' ? node.inputs : {}),
|
|
6202
|
+
chartDocument: node.chartDocument,
|
|
6203
|
+
};
|
|
6204
|
+
},
|
|
6205
|
+
};
|
|
6192
6206
|
function providePraxisCharts() {
|
|
6193
6207
|
return [
|
|
6194
6208
|
EChartsEngineAdapter,
|
|
@@ -6200,6 +6214,11 @@ function providePraxisCharts() {
|
|
|
6200
6214
|
providePraxisChartDrilldownPanelMetadata(),
|
|
6201
6215
|
providePraxisChartStateProbeMetadata(),
|
|
6202
6216
|
providePraxisChartShowcaseWidgetMetadata(),
|
|
6217
|
+
{
|
|
6218
|
+
provide: PRAXIS_TABLE_DETAIL_INLINE_RENDERERS,
|
|
6219
|
+
multi: true,
|
|
6220
|
+
useValue: PRAXIS_TABLE_CHART_DETAIL_RENDERER,
|
|
6221
|
+
},
|
|
6203
6222
|
];
|
|
6204
6223
|
}
|
|
6205
6224
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/charts",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.32",
|
|
4
4
|
"description": "Metadata-driven charts library for Praxis UI Angular with engine adapters and Apache ECharts as the initial renderer.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^9.0.0-beta.32",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/table": "^9.0.0-beta.
|
|
11
|
+
"@praxisui/table": "^9.0.0-beta.32",
|
|
12
12
|
"rxjs": "~7.8.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|