@praxisui/charts 10.0.0-rc.0 → 10.0.0-rc.10
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 +27 -0
- package/ai/component-registry.json +203 -5
- package/fesm2022/praxisui-charts.mjs +1372 -92
- package/package.json +3 -3
- package/types/praxisui-charts.d.ts +138 -6
package/README.md
CHANGED
|
@@ -257,6 +257,26 @@ follows the host. Palette inheritance is preserved. Explicit chart surface/backg
|
|
|
257
257
|
and text colors remain authoritative; choosing them requires a coherent contrast pair.
|
|
258
258
|
Changing the host theme updates inherited colors without modifying the chart document.
|
|
259
259
|
|
|
260
|
+
Existing color strings in palette arrays, metric/series colors, surface backgrounds,
|
|
261
|
+
text colors and gauge bands can reference host CSS custom properties (for example,
|
|
262
|
+
`var(--md-sys-color-primary, #1263b4)`). The default engine resolves them against the
|
|
263
|
+
chart host on every render and projects modern CSS colors such as OKLCH into sRGB
|
|
264
|
+
for Canvas. Explicit literal colors and palette overrides retain precedence. Missing
|
|
265
|
+
or invalid tokens use bounded engine defaults; gauge bands retain their semantic
|
|
266
|
+
tone fallback. Persisted documents and source data remain unchanged. A string
|
|
267
|
+
`theme.palette` in `x-ui.chart` still names a registered Praxis palette; use an array
|
|
268
|
+
for individual CSS colors.
|
|
269
|
+
|
|
270
|
+
Palette array items must be non-empty strings; malformed persisted values are
|
|
271
|
+
rejected by canonical validation with the item path. Direct runtime color fields
|
|
272
|
+
also fall back safely when untyped JSON supplies another value type. Color probes
|
|
273
|
+
isolate their measured color from host CSS rules, including rules with `!important`.
|
|
274
|
+
|
|
275
|
+
The engine also derives tooltip background, foreground and border from the host's
|
|
276
|
+
existing popover roles, with card/foreground and Material fallbacks. Tooltip
|
|
277
|
+
formatting, triggers and disabled state keep their authored semantics; these
|
|
278
|
+
computed appearance values are transient and never saved into the chart document.
|
|
279
|
+
|
|
260
280
|
## Micro Visualizations
|
|
261
281
|
|
|
262
282
|
Transparent charts inside `WidgetShell` inherit the shell foreground, including fixed dark finishes in a light application theme. The chart's opaque accessible-data panel pairs its own background with the corresponding foreground. Explicit chart text colors keep precedence.
|
|
@@ -377,3 +397,10 @@ consumers must explicitly supply their own owner to adopt the same lifecycle.
|
|
|
377
397
|
### Cor dos nomes dos eixos
|
|
378
398
|
|
|
379
399
|
O adaptador ECharts aplica a cor efetiva de texto (`theme.textColor`) tanto aos valores quanto aos nomes dos eixos cartesianos, incluindo eixo secundário, orientação horizontal e dispersão. Essa projeção não cria opções de engine no contrato público nem altera dados ou formatação. A legibilidade final ainda depende da coerência entre a cor de texto e o fundo configurado.
|
|
400
|
+
|
|
401
|
+
<!-- praxis-npm-catalog-links:start -->
|
|
402
|
+
## Official documentation and examples
|
|
403
|
+
|
|
404
|
+
- [Canonical technical overview: Overview](https://praxisui.dev/docs/components/praxis-charts)
|
|
405
|
+
- [Praxis Angular public catalog](https://praxisui.dev/angular)
|
|
406
|
+
<!-- praxis-npm-catalog-links:end -->
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-10-13T14:47:21.726Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.10",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
|
-
"componentCount":
|
|
8
|
+
"componentCount": 4,
|
|
9
9
|
"components": {
|
|
10
10
|
"praxis-analytics-presentation": {
|
|
11
11
|
"id": "praxis-analytics-presentation",
|
|
@@ -424,6 +424,13 @@
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
},
|
|
427
|
+
{
|
|
428
|
+
"name": "resourceKey",
|
|
429
|
+
"type": "string | null",
|
|
430
|
+
"required": false,
|
|
431
|
+
"description": "Canonical resource identifier used to automatically discover and execute /stats services on the Praxis backend.",
|
|
432
|
+
"default": null
|
|
433
|
+
},
|
|
427
434
|
{
|
|
428
435
|
"name": "data",
|
|
429
436
|
"type": "PraxisChartDataRow[]",
|
|
@@ -687,6 +694,22 @@
|
|
|
687
694
|
"group": "config"
|
|
688
695
|
}
|
|
689
696
|
},
|
|
697
|
+
{
|
|
698
|
+
"id": "resourceKey",
|
|
699
|
+
"label": "Resource Key",
|
|
700
|
+
"direction": "input",
|
|
701
|
+
"semanticKind": "value",
|
|
702
|
+
"description": "Canonical resource identifier used to automatically discover and execute /stats services on the Praxis backend.",
|
|
703
|
+
"schema": {
|
|
704
|
+
"id": "string",
|
|
705
|
+
"kind": "ts-type",
|
|
706
|
+
"ref": "string"
|
|
707
|
+
},
|
|
708
|
+
"exposure": {
|
|
709
|
+
"public": true,
|
|
710
|
+
"group": "data"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
690
713
|
{
|
|
691
714
|
"id": "pointClick",
|
|
692
715
|
"label": "Point Click",
|
|
@@ -3547,9 +3570,9 @@
|
|
|
3547
3570
|
{
|
|
3548
3571
|
"chunkIndex": 0,
|
|
3549
3572
|
"chunkKind": "summary",
|
|
3550
|
-
"content": "Component ID: praxis-chart\nSelector: praxis-chart\nFriendly Name: Praxis Chart\nDescription: Chart component for analytics and metadata-driven visualizations in Praxis UI.\nLib/Package: @praxisui/charts\nTags: chart, analytics, widget, visualization\nInputs:\n - config (PraxisChartConfig)\n - data (PraxisChartDataRow[])\n - chartDocument (PraxisXUiChartContract | null)\n - queryContext (PraxisDataQueryContext | null)\n - remoteDataResolver (PraxisChartRemoteDataResolver | null)\n - filterCriteria (Record<string, unknown> | null)\n - enableCustomization (boolean)\n - availableResources (ReadonlyArray<ChartEditorResourceOption>)\n - availableFields (ReadonlyArray<ChartEditorFieldOption>)\n - availableTargets (ReadonlyArray<ChartEditorTargetOption>)\nOutputs:\n - pointClick (PraxisChartPointEvent)\n - pointAction (PraxisChartPointActionEvent)\n - selectionChange (PraxisChartSelectionEvent)\n - drillDown (PraxisChartDrillDownEvent)\n - crossFilter (PraxisChartCrossFilterEvent)\n - queryRequest (PraxisChartQueryRequestEvent)\n - loadStateChange (PraxisChartLoadState)\n - chartDocumentApplied (PraxisXUiChartContract)\n - chartDocumentSaved (PraxisXUiChartContract)\n - chartDocumentPatchChange (PraxisChartDocumentPatchChangeEvent)\nInsertion Presets:\n - canonical-chart: Canonical chart - Creates a chart widget from the canonical x-ui.chart authoring document.\n",
|
|
3573
|
+
"content": "Component ID: praxis-chart\nSelector: praxis-chart\nFriendly Name: Praxis Chart\nDescription: Chart component for analytics and metadata-driven visualizations in Praxis UI.\nLib/Package: @praxisui/charts\nTags: chart, analytics, widget, visualization\nInputs:\n - config (PraxisChartConfig)\n - resourceKey (string | null)\n - data (PraxisChartDataRow[])\n - chartDocument (PraxisXUiChartContract | null)\n - queryContext (PraxisDataQueryContext | null)\n - remoteDataResolver (PraxisChartRemoteDataResolver | null)\n - filterCriteria (Record<string, unknown> | null)\n - enableCustomization (boolean)\n - availableResources (ReadonlyArray<ChartEditorResourceOption>)\n - availableFields (ReadonlyArray<ChartEditorFieldOption>)\n - availableTargets (ReadonlyArray<ChartEditorTargetOption>)\nOutputs:\n - pointClick (PraxisChartPointEvent)\n - pointAction (PraxisChartPointActionEvent)\n - selectionChange (PraxisChartSelectionEvent)\n - drillDown (PraxisChartDrillDownEvent)\n - crossFilter (PraxisChartCrossFilterEvent)\n - queryRequest (PraxisChartQueryRequestEvent)\n - loadStateChange (PraxisChartLoadState)\n - chartDocumentApplied (PraxisXUiChartContract)\n - chartDocumentSaved (PraxisXUiChartContract)\n - chartDocumentPatchChange (PraxisChartDocumentPatchChangeEvent)\nInsertion Presets:\n - canonical-chart: Canonical chart - Creates a chart widget from the canonical x-ui.chart authoring document.\n",
|
|
3551
3574
|
"sourcePointer": "projects/praxis-charts/src/lib/praxis-chart.metadata.ts",
|
|
3552
|
-
"contentHash": "
|
|
3575
|
+
"contentHash": "e1c99961aba854e05112df6c72c6dd3d90a1d9ef8bc3b8d03c5f956f624835cc",
|
|
3553
3576
|
"sourceKind": "component_definition",
|
|
3554
3577
|
"sourceId": "praxis-chart",
|
|
3555
3578
|
"corpusVersion": "1.0.0"
|
|
@@ -3839,6 +3862,181 @@
|
|
|
3839
3862
|
"corpusVersion": "1.0.0"
|
|
3840
3863
|
}
|
|
3841
3864
|
]
|
|
3865
|
+
},
|
|
3866
|
+
"praxis-micro-visualization": {
|
|
3867
|
+
"id": "praxis-micro-visualization",
|
|
3868
|
+
"description": "Renderiza micro-visualizações ultraleves e autônomas (bullet, radial, sparkline, processFlow, comparison, etc.) como widget independente no canvas ou célula.",
|
|
3869
|
+
"inputs": [
|
|
3870
|
+
{
|
|
3871
|
+
"name": "visualization",
|
|
3872
|
+
"type": "PraxisPresentationVisualizationConfig",
|
|
3873
|
+
"required": false,
|
|
3874
|
+
"description": "Configuração estruturada da micro-visualização (kind, value, target, points, thresholds, tone, etc.).",
|
|
3875
|
+
"default": {
|
|
3876
|
+
"kind": "radial",
|
|
3877
|
+
"value": 75,
|
|
3878
|
+
"total": 100,
|
|
3879
|
+
"tone": "primary",
|
|
3880
|
+
"fallbackText": "75%"
|
|
3881
|
+
}
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
"name": "fallbackText",
|
|
3885
|
+
"type": "string",
|
|
3886
|
+
"required": false,
|
|
3887
|
+
"description": "Texto exibido caso a visualização não seja suportada ou esteja em fallback.",
|
|
3888
|
+
"default": ""
|
|
3889
|
+
}
|
|
3890
|
+
],
|
|
3891
|
+
"outputs": [],
|
|
3892
|
+
"configSchemaId": null,
|
|
3893
|
+
"selector": "praxis-micro-visualization",
|
|
3894
|
+
"friendlyName": "Micro-visualização Analítica",
|
|
3895
|
+
"icon": "ssid_chart",
|
|
3896
|
+
"tags": [
|
|
3897
|
+
"chart",
|
|
3898
|
+
"analytics",
|
|
3899
|
+
"widget",
|
|
3900
|
+
"microchart",
|
|
3901
|
+
"visualization",
|
|
3902
|
+
"sparkline",
|
|
3903
|
+
"bullet",
|
|
3904
|
+
"radial"
|
|
3905
|
+
],
|
|
3906
|
+
"lib": "@praxisui/charts",
|
|
3907
|
+
"insertionPresets": [
|
|
3908
|
+
{
|
|
3909
|
+
"id": "bullet-kpi",
|
|
3910
|
+
"label": "Bullet Graph KPI",
|
|
3911
|
+
"description": "Microchart do tipo bullet com faixas de tolerância e valor meta.",
|
|
3912
|
+
"icon": "linear_scale",
|
|
3913
|
+
"inputs": {
|
|
3914
|
+
"visualization": {
|
|
3915
|
+
"kind": "bullet",
|
|
3916
|
+
"value": 78,
|
|
3917
|
+
"target": 90,
|
|
3918
|
+
"total": 100,
|
|
3919
|
+
"tone": "success",
|
|
3920
|
+
"fallbackText": "Performance Operacional",
|
|
3921
|
+
"thresholds": [
|
|
3922
|
+
{
|
|
3923
|
+
"value": 50,
|
|
3924
|
+
"tone": "danger",
|
|
3925
|
+
"label": "Crítico"
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
"value": 75,
|
|
3929
|
+
"tone": "warning",
|
|
3930
|
+
"label": "Atenção"
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
"value": 100,
|
|
3934
|
+
"tone": "success",
|
|
3935
|
+
"label": "Ideal"
|
|
3936
|
+
}
|
|
3937
|
+
]
|
|
3938
|
+
}
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
"id": "radial-score",
|
|
3943
|
+
"label": "Radial Score",
|
|
3944
|
+
"description": "Medidor circular compacto de pontuação ou progresso percentual.",
|
|
3945
|
+
"icon": "radio_button_checked",
|
|
3946
|
+
"inputs": {
|
|
3947
|
+
"visualization": {
|
|
3948
|
+
"kind": "radial",
|
|
3949
|
+
"value": 85,
|
|
3950
|
+
"total": 100,
|
|
3951
|
+
"tone": "primary",
|
|
3952
|
+
"fallbackText": "Prontidão: 85%"
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
"id": "sparkline-area",
|
|
3958
|
+
"label": "Sparkline de Tendência (Área)",
|
|
3959
|
+
"description": "Minigráfico contínuo de área para visualização de tendência temporal.",
|
|
3960
|
+
"icon": "show_chart",
|
|
3961
|
+
"inputs": {
|
|
3962
|
+
"visualization": {
|
|
3963
|
+
"kind": "area",
|
|
3964
|
+
"tone": "info",
|
|
3965
|
+
"points": [
|
|
3966
|
+
{
|
|
3967
|
+
"value": 12,
|
|
3968
|
+
"label": "Jan"
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
"value": 19,
|
|
3972
|
+
"label": "Fev"
|
|
3973
|
+
},
|
|
3974
|
+
{
|
|
3975
|
+
"value": 15,
|
|
3976
|
+
"label": "Mar"
|
|
3977
|
+
},
|
|
3978
|
+
{
|
|
3979
|
+
"value": 27,
|
|
3980
|
+
"label": "Abr"
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
"value": 34,
|
|
3984
|
+
"label": "Mai"
|
|
3985
|
+
}
|
|
3986
|
+
],
|
|
3987
|
+
"fallbackText": "Tendência Trimestral"
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
"id": "process-flow",
|
|
3993
|
+
"label": "Fluxo de Etapas (Process Flow)",
|
|
3994
|
+
"description": "Indicador visual compacto de etapas sequenciais ou esteira de estados.",
|
|
3995
|
+
"icon": "route",
|
|
3996
|
+
"inputs": {
|
|
3997
|
+
"visualization": {
|
|
3998
|
+
"kind": "processFlow",
|
|
3999
|
+
"points": [
|
|
4000
|
+
{
|
|
4001
|
+
"label": "Triagem",
|
|
4002
|
+
"icon": "check",
|
|
4003
|
+
"tone": "success"
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
"label": "Análise",
|
|
4007
|
+
"icon": "sync",
|
|
4008
|
+
"tone": "info"
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
"label": "Aprovação",
|
|
4012
|
+
"icon": "schedule",
|
|
4013
|
+
"tone": "warning"
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"label": "Conclusão",
|
|
4017
|
+
"icon": "flag",
|
|
4018
|
+
"tone": "neutral"
|
|
4019
|
+
}
|
|
4020
|
+
],
|
|
4021
|
+
"fallbackText": "Etapa 2/4: Em Análise"
|
|
4022
|
+
}
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
],
|
|
4026
|
+
"source": "projects/praxis-charts/src/lib/praxis-micro-visualization.metadata.ts",
|
|
4027
|
+
"exportName": "PRAXIS_MICRO_VISUALIZATION_COMPONENT_METADATA",
|
|
4028
|
+
"chunks": [
|
|
4029
|
+
{
|
|
4030
|
+
"chunkIndex": 0,
|
|
4031
|
+
"chunkKind": "summary",
|
|
4032
|
+
"content": "Component ID: praxis-micro-visualization\nSelector: praxis-micro-visualization\nFriendly Name: Micro-visualização Analítica\nDescription: Renderiza micro-visualizações ultraleves e autônomas (bullet, radial, sparkline, processFlow, comparison, etc.) como widget independente no canvas ou célula.\nLib/Package: @praxisui/charts\nTags: chart, analytics, widget, microchart, visualization, sparkline, bullet, radial\nInputs:\n - visualization (PraxisPresentationVisualizationConfig)\n - fallbackText (string)\nInsertion Presets:\n - bullet-kpi: Bullet Graph KPI - Microchart do tipo bullet com faixas de tolerância e valor meta.\n - radial-score: Radial Score - Medidor circular compacto de pontuação ou progresso percentual.\n - sparkline-area: Sparkline de Tendência (Área) - Minigráfico contínuo de área para visualização de tendência temporal.\n - process-flow: Fluxo de Etapas (Process Flow) - Indicador visual compacto de etapas sequenciais ou esteira de estados.\n",
|
|
4033
|
+
"sourcePointer": "projects/praxis-charts/src/lib/praxis-micro-visualization.metadata.ts",
|
|
4034
|
+
"contentHash": "455a9d78d9176e7b267f6cb9f0a511dffd981c889b810b09ea1b45952512d060",
|
|
4035
|
+
"sourceKind": "component_definition",
|
|
4036
|
+
"sourceId": "praxis-micro-visualization",
|
|
4037
|
+
"corpusVersion": "1.0.0"
|
|
4038
|
+
}
|
|
4039
|
+
]
|
|
3842
4040
|
}
|
|
3843
4041
|
},
|
|
3844
4042
|
"note": "Package-scoped Praxis component registry for source-free agent discovery. Use the canonical ingestion registry for cross-package aggregate analysis."
|