@praxisui/charts 10.0.0-rc.60 → 10.0.0-rc.62
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 +6 -0
- package/ai/component-registry.json +214 -9
- package/fesm2022/praxisui-charts.mjs +1532 -254
- package/package.json +3 -3
- package/types/praxisui-charts.d.ts +146 -11
package/README.md
CHANGED
|
@@ -459,6 +459,12 @@ Formalized in [`ADR-0003`](./docs/adr/0003-hierarchical-sunburst-treemap-and-san
|
|
|
459
459
|
- **`sunburst` & multilevel `treemap`:** builds a proportional aggregated tree from ordered `dimensions[]` (`2+` levels, e.g. `['orgao', 'subempresa', 'setor']`) or explicit `path` / `parentId` / `children` data, keeping single-dimension 1D `treemap` configs unchanged. Supports interactive breadcrumb level zoom with `crossFilter` emission and hierarchical table fallback.
|
|
460
460
|
- **`radar` (Multidimensional Comparison vs. "Radar Preventivo"):** compares multiple series over `>= 3` indicators with explicit `[min, max]` bounds (`max > min`) and accessible tabular breakdown. **Semantic Disambiguation:** `kind = 'radar'` renders a geometric `RadarChart` comparing quantitative indicator axes; it must **not** be confused with business domain features/endpoints named **"Radar Preventivo"** (e.g. retirement eligibility or workforce vacancy monitoring, which map to KPIs, `gauge`, `bar`, `funnel`, or `<praxis-timeline-lanes>` unless explicitly plotting `>= 3` comparative `[min, max]` indicators).
|
|
461
461
|
|
|
462
|
+
## Micro-KPI Strip, Monthly Normalization & Override Sanitization
|
|
463
|
+
|
|
464
|
+
- **`PraxisMicroKpiStripComponent` & `providePraxisMicroKpiStripMetadata()`:** Integrated into `PraxisAnalyticsCockpitComponent` using `switchMap`, bounded TTL caching isolated per enterprise context/tenant/user (`EnterpriseRuntimeContextService`, `cacheScope`, `WeakMap` fetcher identity), `retry()`/`invalidateCache()`, non-interactive `<div>` cards when a KPI filter is empty, non-clobbering merge of cockpit widget and KPI cross-filters, and `aria-live="polite"` announcements. Switching or toggling active KPI filters removes prior KPI filter keys cleanly without leaking stale criteria.
|
|
465
|
+
- **Monthly & Calendar Normalization:** `normalizeYearMonthToken` (`'YYYY-MM'`), `normalizeMonthlyFilterValues` (`['YYYY-MM']`), `expandMonthlyRangeToIsoDates` (`['YYYY-MM-01', 'YYYY-MM-lastDay']`), and date-part extractors validate UTC calendar dates for timestamps and ISO strings, rejecting impossible dates (such as February 31) and formatting date tokens in a single-pass tokenizer respecting quoted literals.
|
|
466
|
+
- **Visual Overrides & Projection Eligibility:** `sanitizeChartDocumentOverride` and `sanitizeChartDocumentOverridesMap` recursively strip `source`, `dataSource`, `query`, `data`, prototype-pollution keys, empty nested containers/arrays, and circular references across nested structures while preserving DAG-shared visual branches; projection selectors surface proactive family eligibility hints when dataset shape constrains available chart kinds and suppress misleading fallback indicators on the active projection.
|
|
467
|
+
|
|
462
468
|
<!-- praxis-npm-catalog-links:start -->
|
|
463
469
|
## Official documentation and examples
|
|
464
470
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-24T14:00:56.078Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.62",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
|
-
"componentCount":
|
|
8
|
+
"componentCount": 11,
|
|
9
9
|
"components": {
|
|
10
10
|
"praxis-analytics-cockpit": {
|
|
11
11
|
"id": "praxis-analytics-cockpit",
|
|
@@ -32,6 +32,27 @@
|
|
|
32
32
|
"description": "Optional cockpit layout, KPI cards, and widget arrangement.",
|
|
33
33
|
"default": null
|
|
34
34
|
},
|
|
35
|
+
{
|
|
36
|
+
"name": "kpiFetcher",
|
|
37
|
+
"type": "PraxisMicroKpiStripFetcher | null",
|
|
38
|
+
"required": false,
|
|
39
|
+
"description": "Reactive KPI strip resolver triggered via switchMap with bounded TTL caching.",
|
|
40
|
+
"default": null
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "kpiCacheTtlMs",
|
|
44
|
+
"type": "number",
|
|
45
|
+
"required": false,
|
|
46
|
+
"description": "TTL in milliseconds for reactive cockpit KPI caching.",
|
|
47
|
+
"default": 30000
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "kpiCacheMaxEntries",
|
|
51
|
+
"type": "number",
|
|
52
|
+
"required": false,
|
|
53
|
+
"description": "Maximum cached entries retained by the cockpit KPI strip.",
|
|
54
|
+
"default": 32
|
|
55
|
+
},
|
|
35
56
|
{
|
|
36
57
|
"name": "queryContext",
|
|
37
58
|
"type": "PraxisDataQueryContext | null",
|
|
@@ -123,15 +144,32 @@
|
|
|
123
144
|
"cross-filter"
|
|
124
145
|
],
|
|
125
146
|
"lib": "@praxisui/charts",
|
|
147
|
+
"transientInputs": [
|
|
148
|
+
"queryContext",
|
|
149
|
+
"kpiFetcher"
|
|
150
|
+
],
|
|
151
|
+
"lockedInputs": [
|
|
152
|
+
"resourcePath",
|
|
153
|
+
"analytics",
|
|
154
|
+
"availableFamilies"
|
|
155
|
+
],
|
|
156
|
+
"visualOverrideKeys": [
|
|
157
|
+
"title",
|
|
158
|
+
"subtitle",
|
|
159
|
+
"surfaceVariant",
|
|
160
|
+
"controlsPlacement",
|
|
161
|
+
"controlsDisplay"
|
|
162
|
+
],
|
|
163
|
+
"schemaVersion": "1.0.0",
|
|
126
164
|
"source": "projects/praxis-charts/src/lib/components/praxis-analytics-cockpit/praxis-analytics-cockpit.metadata.ts",
|
|
127
165
|
"exportName": "PRAXIS_ANALYTICS_COCKPIT_COMPONENT_METADATA",
|
|
128
166
|
"chunks": [
|
|
129
167
|
{
|
|
130
168
|
"chunkIndex": 0,
|
|
131
169
|
"chunkKind": "summary",
|
|
132
|
-
"content": "Component ID: praxis-analytics-cockpit\nSelector: praxis-analytics-cockpit\nFriendly Name: Painel Analítico Integrado\nDescription: Multi-widget analytical cockpit auto-hydrating x-ui.analytics projections from /schemas/filtered with synchronized cross-filters, KPI cards, and record opening.\nLib/Package: @praxisui/charts\nTags: analytics, cockpit, dashboard, charts, cross-filter\nInputs:\n - resourcePath (string | null)\n - analytics (PraxisXUiAnalytics | null)\n - config (PraxisAnalyticsCockpitConfig | null)\n - queryContext (PraxisDataQueryContext | null)\n - availableFamilies (AnalyticsPresentationFamily[])\n - controlsPlacement (PraxisAnalyticsPresentationControlsPlacement)\n - controlsDisplay (PraxisAnalyticsPresentationControlsDisplay)\n - title (PraxisTextValue | undefined)\n - subtitle (PraxisTextValue | undefined)\n - surfaceVariant ('default' | 'frameless' | 'embedded')\nOutputs:\n - queryContextChange (PraxisDataQueryContext)\n - crossFilterApplied (Record<string, unknown>)\n - recordOpen (PraxisAnalyticsCockpitRecordOpenEvent)\n - drillDown (PraxisChartDrillDownEvent & { projectionId: string })\n",
|
|
170
|
+
"content": "Component ID: praxis-analytics-cockpit\nSelector: praxis-analytics-cockpit\nFriendly Name: Painel Analítico Integrado\nDescription: Multi-widget analytical cockpit auto-hydrating x-ui.analytics projections from /schemas/filtered with synchronized cross-filters, KPI cards, and record opening.\nLib/Package: @praxisui/charts\nTags: analytics, cockpit, dashboard, charts, cross-filter\nInputs:\n - resourcePath (string | null)\n - analytics (PraxisXUiAnalytics | null)\n - config (PraxisAnalyticsCockpitConfig | null)\n - kpiFetcher (PraxisMicroKpiStripFetcher | null)\n - kpiCacheTtlMs (number)\n - kpiCacheMaxEntries (number)\n - queryContext (PraxisDataQueryContext | null)\n - availableFamilies (AnalyticsPresentationFamily[])\n - controlsPlacement (PraxisAnalyticsPresentationControlsPlacement)\n - controlsDisplay (PraxisAnalyticsPresentationControlsDisplay)\n - title (PraxisTextValue | undefined)\n - subtitle (PraxisTextValue | undefined)\n - surfaceVariant ('default' | 'frameless' | 'embedded')\nOutputs:\n - queryContextChange (PraxisDataQueryContext)\n - crossFilterApplied (Record<string, unknown>)\n - recordOpen (PraxisAnalyticsCockpitRecordOpenEvent)\n - drillDown (PraxisChartDrillDownEvent & { projectionId: string })\n",
|
|
133
171
|
"sourcePointer": "projects/praxis-charts/src/lib/components/praxis-analytics-cockpit/praxis-analytics-cockpit.metadata.ts",
|
|
134
|
-
"contentHash": "
|
|
172
|
+
"contentHash": "e637a3f7288fa3d71aa6b17c6537da738b014011cfa956f6df56037e01f6d6b5",
|
|
135
173
|
"sourceKind": "component_definition",
|
|
136
174
|
"sourceId": "praxis-analytics-cockpit",
|
|
137
175
|
"corpusVersion": "1.0.0"
|
|
@@ -259,6 +297,20 @@
|
|
|
259
297
|
"description": "Define o modo de apresentação dos controles contribuídos ao cabeçalho do WidgetShell (ícone+rótulo adaptativo, somente ícone com tooltip ou seção no menu de ações).",
|
|
260
298
|
"default": "auto"
|
|
261
299
|
},
|
|
300
|
+
{
|
|
301
|
+
"name": "filterProjectionsByFamily",
|
|
302
|
+
"type": "AnalyticsPresentationFamily | 'active' | null",
|
|
303
|
+
"required": false,
|
|
304
|
+
"description": "Filtra proativamente o seletor de projeções para exibir apenas projeções compatíveis com a família solicitada (mantendo a seleção atual).",
|
|
305
|
+
"default": null
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "showProjectionFamilyIndicators",
|
|
309
|
+
"type": "boolean",
|
|
310
|
+
"required": false,
|
|
311
|
+
"description": "Exibe indicadores proativos de famílias elegíveis e eventual fallback de apresentação no seletor de projeções.",
|
|
312
|
+
"default": true
|
|
313
|
+
},
|
|
262
314
|
{
|
|
263
315
|
"name": "queryContext",
|
|
264
316
|
"type": "PraxisDataQueryContext | null",
|
|
@@ -392,6 +444,28 @@
|
|
|
392
444
|
"dashboard"
|
|
393
445
|
],
|
|
394
446
|
"lib": "@praxisui/charts",
|
|
447
|
+
"transientInputs": [
|
|
448
|
+
"queryContext"
|
|
449
|
+
],
|
|
450
|
+
"lockedInputs": [
|
|
451
|
+
"analytics",
|
|
452
|
+
"resourcePath",
|
|
453
|
+
"availableFamilies"
|
|
454
|
+
],
|
|
455
|
+
"visualOverrideKeys": [
|
|
456
|
+
"preferredFamily",
|
|
457
|
+
"controlsPlacement",
|
|
458
|
+
"controlsDisplay",
|
|
459
|
+
"surfaceMode",
|
|
460
|
+
"title",
|
|
461
|
+
"subtitle",
|
|
462
|
+
"height",
|
|
463
|
+
"motion",
|
|
464
|
+
"chartDocumentOverrides",
|
|
465
|
+
"showProjectionFamilyIndicators",
|
|
466
|
+
"filterProjectionsByFamily"
|
|
467
|
+
],
|
|
468
|
+
"schemaVersion": "1.0.0",
|
|
395
469
|
"configEditor": {
|
|
396
470
|
"title": "Configurar apresentação analítica"
|
|
397
471
|
},
|
|
@@ -520,6 +594,16 @@
|
|
|
520
594
|
"name": "chartDocumentOverrides",
|
|
521
595
|
"type": "Record<string, Partial<PraxisXUiChartContract>> | null",
|
|
522
596
|
"description": "Per-projection persisted chart contract overrides."
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "showProjectionFamilyIndicators",
|
|
600
|
+
"type": "boolean",
|
|
601
|
+
"description": "Surfaces proactive family eligibility indicators in projection selectors when dataset shape constrains available chart kinds."
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "filterProjectionsByFamily",
|
|
605
|
+
"type": "AnalyticsPresentationFamily | 'active' | null",
|
|
606
|
+
"description": "Proactively filters the projection selector to projections compatible with the requested family while keeping the active selection visible."
|
|
523
607
|
}
|
|
524
608
|
],
|
|
525
609
|
"editableTargets": [
|
|
@@ -857,9 +941,9 @@
|
|
|
857
941
|
{
|
|
858
942
|
"chunkIndex": 0,
|
|
859
943
|
"chunkKind": "summary",
|
|
860
|
-
"content": "Component ID: praxis-analytics-presentation\nSelector: praxis-analytics-presentation\nFriendly Name: Apresentação analítica governada\nDescription: Alterna renderers elegíveis para uma projection x-ui.analytics selecionada por id, preservando o query context.\nCategory: table\nLib/Package: @praxisui/charts\nTags: analytics, chart, table, kpi, summary-list, projection, dashboard\nInputs:\n - analytics (PraxisXUiAnalytics)\n - projectionId (string)\n - resourcePath (string | null)\n - filterOperation ('get' | 'post' | 'put' | 'patch' | 'delete')\n - schemaType ('request' | 'response')\n - coerceCrossFilters (boolean)\n - availableFamilies (AnalyticsPresentationFamily[])\n - preferredFamily (AnalyticsPresentationFamily | null)\n - surfaceMode ('auto' | 'standalone' | 'embedded')\n - controlsPlacement ('auto' | 'shell-header' | 'inline')\n - controlsDisplay ('auto' | 'icon-label' | 'icon-only' | 'menu')\n - queryContext (PraxisDataQueryContext | null)\n - title (PraxisTextValue)\n - subtitle (PraxisTextValue)\n - height (number | string | undefined)\n - motion (PraxisChartMotionConfig | undefined)\n - chartDocumentOverrides (Record<string, Partial<PraxisXUiChartContract>> | null)\nOutputs:\n - analyticsHydrated (PraxisXUiAnalytics)\n - presentationChange (PraxisAnalyticsPresentationChange)\n - projectionChange (PraxisAnalyticsProjectionChange)\n - chartDocumentApplied (PraxisXUiChartContract)\n - chartDocumentSaved (PraxisXUiChartContract)\n - chartDocumentPatchChange (PraxisChartDocumentPatchChangeEvent)\n - pointClick (PraxisChartPointEvent)\n - pointAction (PraxisChartPointActionEvent)\n - selectionChange (PraxisChartSelectionEvent)\n - drillDown (PraxisChartDrillDownEvent)\n - crossFilter (PraxisChartCrossFilterEvent)\n - queryRequest (PraxisChartQueryRequestEvent)\n - loadStateChange (PraxisChartLoadState)\n",
|
|
944
|
+
"content": "Component ID: praxis-analytics-presentation\nSelector: praxis-analytics-presentation\nFriendly Name: Apresentação analítica governada\nDescription: Alterna renderers elegíveis para uma projection x-ui.analytics selecionada por id, preservando o query context.\nCategory: table\nLib/Package: @praxisui/charts\nTags: analytics, chart, table, kpi, summary-list, projection, dashboard\nInputs:\n - analytics (PraxisXUiAnalytics)\n - projectionId (string)\n - resourcePath (string | null)\n - filterOperation ('get' | 'post' | 'put' | 'patch' | 'delete')\n - schemaType ('request' | 'response')\n - coerceCrossFilters (boolean)\n - availableFamilies (AnalyticsPresentationFamily[])\n - preferredFamily (AnalyticsPresentationFamily | null)\n - surfaceMode ('auto' | 'standalone' | 'embedded')\n - controlsPlacement ('auto' | 'shell-header' | 'inline')\n - controlsDisplay ('auto' | 'icon-label' | 'icon-only' | 'menu')\n - filterProjectionsByFamily (AnalyticsPresentationFamily | 'active' | null)\n - showProjectionFamilyIndicators (boolean)\n - queryContext (PraxisDataQueryContext | null)\n - title (PraxisTextValue)\n - subtitle (PraxisTextValue)\n - height (number | string | undefined)\n - motion (PraxisChartMotionConfig | undefined)\n - chartDocumentOverrides (Record<string, Partial<PraxisXUiChartContract>> | null)\nOutputs:\n - analyticsHydrated (PraxisXUiAnalytics)\n - presentationChange (PraxisAnalyticsPresentationChange)\n - projectionChange (PraxisAnalyticsProjectionChange)\n - chartDocumentApplied (PraxisXUiChartContract)\n - chartDocumentSaved (PraxisXUiChartContract)\n - chartDocumentPatchChange (PraxisChartDocumentPatchChangeEvent)\n - pointClick (PraxisChartPointEvent)\n - pointAction (PraxisChartPointActionEvent)\n - selectionChange (PraxisChartSelectionEvent)\n - drillDown (PraxisChartDrillDownEvent)\n - crossFilter (PraxisChartCrossFilterEvent)\n - queryRequest (PraxisChartQueryRequestEvent)\n - loadStateChange (PraxisChartLoadState)\n",
|
|
861
945
|
"sourcePointer": "projects/praxis-charts/src/lib/praxis-analytics-presentation.metadata.ts",
|
|
862
|
-
"contentHash": "
|
|
946
|
+
"contentHash": "01047966f251d7194548303702dc8cc68636c08a333a6272f850184ddcb2b150",
|
|
863
947
|
"sourceKind": "component_definition",
|
|
864
948
|
"sourceId": "praxis-analytics-presentation",
|
|
865
949
|
"corpusVersion": "1.0.0"
|
|
@@ -907,9 +991,9 @@
|
|
|
907
991
|
{
|
|
908
992
|
"chunkIndex": 5,
|
|
909
993
|
"chunkKind": "authoring_manifest",
|
|
910
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-analytics-presentation\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisAnalyticsPresentationInputs\",\"chunkSection\":\"runtimeInputs\",\"runtimeInputs\":[{\"name\":\"analytics\",\"type\":\"PraxisXUiAnalytics\",\"description\":\"Canonical x-ui.analytics projections.\"},{\"name\":\"projectionId\",\"type\":\"string\",\"description\":\"Stable projection identity; labels never select projections.\"},{\"name\":\"resourcePath\",\"type\":\"string | null\",\"description\":\"Optional canonical resource path for schema and capability hydration.\"},{\"name\":\"filterOperation\",\"type\":\"'get' | 'post' | 'put' | 'patch' | 'delete'\",\"description\":\"OpenAPI HTTP operation used when resolving /schemas/filtered via resourcePath.\"},{\"name\":\"schemaType\",\"type\":\"'request' | 'response'\",\"description\":\"Schema side used when resolving /schemas/filtered via resourcePath.\"},{\"name\":\"availableFamilies\",\"type\":\"AnalyticsPresentationFamily[]\",\"description\":\"Capability- and host-authorized renderer families.\"},{\"name\":\"preferredFamily\",\"type\":\"AnalyticsPresentationFamily | null\",\"allowedValues\":[\"chart\",\"analytic-table\",\"kpi\",\"summary-list\"],\"description\":\"Persisted host preference. Temporary user choice remains runtime-only.\"},{\"name\":\"surfaceMode\",\"type\":\"'auto' | 'standalone' | 'embedded'\",\"allowedValues\":[\"auto\",\"standalone\",\"embedded\"],\"description\":\"Controls whether inner renderers suppress duplicate outer chrome when hosted inside shells or cockpits.\"},{\"name\":\"controlsPlacement\",\"type\":\"'auto' | 'shell-header' | 'inline'\",\"allowedValues\":[\"auto\",\"shell-header\",\"inline\"],\"description\":\"Selects whether the family switcher contributes to an owning WidgetShell header or stays inline in the widget body.\"},{\"name\":\"controlsDisplay\",\"type\":\"'auto' | 'icon-label' | 'icon-only' | 'menu'\",\"allowedValues\":[\"auto\",\"icon-label\",\"icon-only\",\"menu\"],\"description\":\"Selects how shell-header family controls render: adaptive icon+label, icon-only with tooltips, or grouped radio items inside the overflow menu.\"},{\"name\":\"queryContext\",\"type\":\"PraxisDataQueryContext | null\",\"description\":\"Shared governed query context forwarded to the selected renderer.\"},{\"name\":\"title\",\"type\":\"PraxisTextValue\",\"description\":\"Shared heading override forwarded to active analytics renderers.\"},{\"name\":\"subtitle\",\"type\":\"PraxisTextValue\",\"description\":\"Shared subtitle override forwarded to active analytics renderers.\"},{\"name\":\"height\",\"type\":\"number | string | undefined\",\"description\":\"Explicit height constraint forwarded to the chart renderer.\"},{\"name\":\"motion\",\"type\":\"PraxisChartMotionConfig | undefined\",\"description\":\"Governed chart motion settings.\"},{\"name\":\"coerceCrossFilters\",\"type\":\"boolean\",\"description\":\"Coerces crossFilter outputs into canonical FilterDTO payloads.\"},{\"name\":\"enableCustomization\",\"type\":\"boolean\",\"description\":\"Enables settings-panel customization when rendering the chart family.\"},{\"name\":\"chartDocumentOverrides\",\"type\":\"Record<string, Partial<PraxisXUiChartContract>> | null\",\"description\":\"Per-projection persisted chart contract overrides.\"}]}",
|
|
994
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-analytics-presentation\",\"ownerPackage\":\"@praxisui/charts\",\"configSchemaId\":\"PraxisAnalyticsPresentationInputs\",\"chunkSection\":\"runtimeInputs\",\"runtimeInputs\":[{\"name\":\"analytics\",\"type\":\"PraxisXUiAnalytics\",\"description\":\"Canonical x-ui.analytics projections.\"},{\"name\":\"projectionId\",\"type\":\"string\",\"description\":\"Stable projection identity; labels never select projections.\"},{\"name\":\"resourcePath\",\"type\":\"string | null\",\"description\":\"Optional canonical resource path for schema and capability hydration.\"},{\"name\":\"filterOperation\",\"type\":\"'get' | 'post' | 'put' | 'patch' | 'delete'\",\"description\":\"OpenAPI HTTP operation used when resolving /schemas/filtered via resourcePath.\"},{\"name\":\"schemaType\",\"type\":\"'request' | 'response'\",\"description\":\"Schema side used when resolving /schemas/filtered via resourcePath.\"},{\"name\":\"availableFamilies\",\"type\":\"AnalyticsPresentationFamily[]\",\"description\":\"Capability- and host-authorized renderer families.\"},{\"name\":\"preferredFamily\",\"type\":\"AnalyticsPresentationFamily | null\",\"allowedValues\":[\"chart\",\"analytic-table\",\"kpi\",\"summary-list\"],\"description\":\"Persisted host preference. Temporary user choice remains runtime-only.\"},{\"name\":\"surfaceMode\",\"type\":\"'auto' | 'standalone' | 'embedded'\",\"allowedValues\":[\"auto\",\"standalone\",\"embedded\"],\"description\":\"Controls whether inner renderers suppress duplicate outer chrome when hosted inside shells or cockpits.\"},{\"name\":\"controlsPlacement\",\"type\":\"'auto' | 'shell-header' | 'inline'\",\"allowedValues\":[\"auto\",\"shell-header\",\"inline\"],\"description\":\"Selects whether the family switcher contributes to an owning WidgetShell header or stays inline in the widget body.\"},{\"name\":\"controlsDisplay\",\"type\":\"'auto' | 'icon-label' | 'icon-only' | 'menu'\",\"allowedValues\":[\"auto\",\"icon-label\",\"icon-only\",\"menu\"],\"description\":\"Selects how shell-header family controls render: adaptive icon+label, icon-only with tooltips, or grouped radio items inside the overflow menu.\"},{\"name\":\"queryContext\",\"type\":\"PraxisDataQueryContext | null\",\"description\":\"Shared governed query context forwarded to the selected renderer.\"},{\"name\":\"title\",\"type\":\"PraxisTextValue\",\"description\":\"Shared heading override forwarded to active analytics renderers.\"},{\"name\":\"subtitle\",\"type\":\"PraxisTextValue\",\"description\":\"Shared subtitle override forwarded to active analytics renderers.\"},{\"name\":\"height\",\"type\":\"number | string | undefined\",\"description\":\"Explicit height constraint forwarded to the chart renderer.\"},{\"name\":\"motion\",\"type\":\"PraxisChartMotionConfig | undefined\",\"description\":\"Governed chart motion settings.\"},{\"name\":\"coerceCrossFilters\",\"type\":\"boolean\",\"description\":\"Coerces crossFilter outputs into canonical FilterDTO payloads.\"},{\"name\":\"enableCustomization\",\"type\":\"boolean\",\"description\":\"Enables settings-panel customization when rendering the chart family.\"},{\"name\":\"chartDocumentOverrides\",\"type\":\"Record<string, Partial<PraxisXUiChartContract>> | null\",\"description\":\"Per-projection persisted chart contract overrides.\"},{\"name\":\"showProjectionFamilyIndicators\",\"type\":\"boolean\",\"description\":\"Surfaces proactive family eligibility indicators in projection selectors when dataset shape constrains available chart kinds.\"},{\"name\":\"filterProjectionsByFamily\",\"type\":\"AnalyticsPresentationFamily | 'active' | null\",\"description\":\"Proactively filters the projection selector to projections compatible with the requested family while keeping the active selection visible.\"}]}",
|
|
911
995
|
"sourcePointer": "projects/praxis-charts/src/lib/ai/praxis-analytics-presentation-authoring-manifest.ts",
|
|
912
|
-
"contentHash": "
|
|
996
|
+
"contentHash": "d3595554674888716b5baf1c9977861f33041cd4942665202a0169686965299a",
|
|
913
997
|
"sourceKind": "component_definition",
|
|
914
998
|
"sourceId": "praxis-analytics-presentation",
|
|
915
999
|
"corpusVersion": "1.0.0"
|
|
@@ -1288,6 +1372,21 @@
|
|
|
1288
1372
|
"visualization"
|
|
1289
1373
|
],
|
|
1290
1374
|
"lib": "@praxisui/charts",
|
|
1375
|
+
"transientInputs": [
|
|
1376
|
+
"data",
|
|
1377
|
+
"queryContext",
|
|
1378
|
+
"remoteDataResolver"
|
|
1379
|
+
],
|
|
1380
|
+
"lockedInputs": [
|
|
1381
|
+
"resourceKey"
|
|
1382
|
+
],
|
|
1383
|
+
"visualOverrideKeys": [
|
|
1384
|
+
"title",
|
|
1385
|
+
"subtitle",
|
|
1386
|
+
"height",
|
|
1387
|
+
"motion"
|
|
1388
|
+
],
|
|
1389
|
+
"schemaVersion": "1.0.0",
|
|
1291
1390
|
"actions": [
|
|
1292
1391
|
{
|
|
1293
1392
|
"id": "open-chart-editor",
|
|
@@ -6152,6 +6251,112 @@
|
|
|
6152
6251
|
}
|
|
6153
6252
|
]
|
|
6154
6253
|
},
|
|
6254
|
+
"praxis-micro-kpi-strip": {
|
|
6255
|
+
"id": "praxis-micro-kpi-strip",
|
|
6256
|
+
"description": "Faixa responsiva de KPIs analíticos com suporte a fetcher reativo, cache LRU/TTL limitado e cancelamento automático em transições de filtro.",
|
|
6257
|
+
"inputs": [
|
|
6258
|
+
{
|
|
6259
|
+
"name": "items",
|
|
6260
|
+
"type": "PraxisMicroKpiItem[]",
|
|
6261
|
+
"required": false,
|
|
6262
|
+
"description": "Lista estática de cartões KPI.",
|
|
6263
|
+
"default": []
|
|
6264
|
+
},
|
|
6265
|
+
{
|
|
6266
|
+
"name": "fetcher",
|
|
6267
|
+
"type": "PraxisMicroKpiStripFetcher | null",
|
|
6268
|
+
"required": false,
|
|
6269
|
+
"description": "Resolvedor reativo (Observable/Promise) acionado em trocas de filtro com switchMap e cache TTL.",
|
|
6270
|
+
"default": null
|
|
6271
|
+
},
|
|
6272
|
+
{
|
|
6273
|
+
"name": "queryContext",
|
|
6274
|
+
"type": "PraxisDataQueryContext | null",
|
|
6275
|
+
"required": false,
|
|
6276
|
+
"description": "Contexto de consulta sincronizado com o resolvedor reativo."
|
|
6277
|
+
},
|
|
6278
|
+
{
|
|
6279
|
+
"name": "activeFilters",
|
|
6280
|
+
"type": "Record<string, unknown> | null",
|
|
6281
|
+
"required": false,
|
|
6282
|
+
"description": "Mapa de filtros ativos para destaque e chave de cache."
|
|
6283
|
+
},
|
|
6284
|
+
{
|
|
6285
|
+
"name": "cacheScope",
|
|
6286
|
+
"type": "string | null",
|
|
6287
|
+
"required": false,
|
|
6288
|
+
"description": "Identificador opcional de escopo para isolar entradas de cache por widget/host além do tenant ativo.",
|
|
6289
|
+
"default": null
|
|
6290
|
+
},
|
|
6291
|
+
{
|
|
6292
|
+
"name": "cacheTtlMs",
|
|
6293
|
+
"type": "number",
|
|
6294
|
+
"required": false,
|
|
6295
|
+
"description": "Tempo de expiração do cache de KPIs em milissegundos.",
|
|
6296
|
+
"default": 30000
|
|
6297
|
+
},
|
|
6298
|
+
{
|
|
6299
|
+
"name": "cacheMaxEntries",
|
|
6300
|
+
"type": "number",
|
|
6301
|
+
"required": false,
|
|
6302
|
+
"description": "Limite máximo de entradas mantidas no cache LRU.",
|
|
6303
|
+
"default": 32
|
|
6304
|
+
},
|
|
6305
|
+
{
|
|
6306
|
+
"name": "density",
|
|
6307
|
+
"type": "'compact' | 'comfortable'",
|
|
6308
|
+
"required": false,
|
|
6309
|
+
"description": "Densidade visual da faixa de KPIs.",
|
|
6310
|
+
"default": "comfortable"
|
|
6311
|
+
}
|
|
6312
|
+
],
|
|
6313
|
+
"outputs": [
|
|
6314
|
+
{
|
|
6315
|
+
"name": "kpiSelect",
|
|
6316
|
+
"type": "PraxisMicroKpiItem",
|
|
6317
|
+
"required": false,
|
|
6318
|
+
"description": "Emitido quando o usuário aciona um cartão KPI interativo."
|
|
6319
|
+
},
|
|
6320
|
+
{
|
|
6321
|
+
"name": "loadError",
|
|
6322
|
+
"type": "unknown",
|
|
6323
|
+
"required": false,
|
|
6324
|
+
"description": "Emitido quando o fetcher reativo falha ao carregar indicadores."
|
|
6325
|
+
}
|
|
6326
|
+
],
|
|
6327
|
+
"configSchemaId": null,
|
|
6328
|
+
"selector": "praxis-micro-kpi-strip",
|
|
6329
|
+
"friendlyName": "Faixa de Micro-Indicadores Analíticos",
|
|
6330
|
+
"icon": "speed",
|
|
6331
|
+
"tags": [
|
|
6332
|
+
"analytics",
|
|
6333
|
+
"kpi",
|
|
6334
|
+
"micro-kpi",
|
|
6335
|
+
"cockpit",
|
|
6336
|
+
"charts"
|
|
6337
|
+
],
|
|
6338
|
+
"lib": "@praxisui/charts",
|
|
6339
|
+
"transientInputs": [
|
|
6340
|
+
"activeFilters",
|
|
6341
|
+
"queryContext",
|
|
6342
|
+
"fetcher"
|
|
6343
|
+
],
|
|
6344
|
+
"schemaVersion": "1.0.0",
|
|
6345
|
+
"source": "projects/praxis-charts/src/lib/components/praxis-micro-kpi-strip/praxis-micro-kpi-strip.metadata.ts",
|
|
6346
|
+
"exportName": "PRAXIS_MICRO_KPI_STRIP_COMPONENT_METADATA",
|
|
6347
|
+
"chunks": [
|
|
6348
|
+
{
|
|
6349
|
+
"chunkIndex": 0,
|
|
6350
|
+
"chunkKind": "summary",
|
|
6351
|
+
"content": "Component ID: praxis-micro-kpi-strip\nSelector: praxis-micro-kpi-strip\nFriendly Name: Faixa de Micro-Indicadores Analíticos\nDescription: Faixa responsiva de KPIs analíticos com suporte a fetcher reativo, cache LRU/TTL limitado e cancelamento automático em transições de filtro.\nLib/Package: @praxisui/charts\nTags: analytics, kpi, micro-kpi, cockpit, charts\nInputs:\n - items (PraxisMicroKpiItem[])\n - fetcher (PraxisMicroKpiStripFetcher | null)\n - queryContext (PraxisDataQueryContext | null)\n - activeFilters (Record<string, unknown> | null)\n - cacheScope (string | null)\n - cacheTtlMs (number)\n - cacheMaxEntries (number)\n - density ('compact' | 'comfortable')\nOutputs:\n - kpiSelect (PraxisMicroKpiItem)\n - loadError (unknown)\n",
|
|
6352
|
+
"sourcePointer": "projects/praxis-charts/src/lib/components/praxis-micro-kpi-strip/praxis-micro-kpi-strip.metadata.ts",
|
|
6353
|
+
"contentHash": "25ae640e46c849cb8b0aa0e69cab3fec9a22a728781dce5781af22fb1ffb0f5a",
|
|
6354
|
+
"sourceKind": "component_definition",
|
|
6355
|
+
"sourceId": "praxis-micro-kpi-strip",
|
|
6356
|
+
"corpusVersion": "1.0.0"
|
|
6357
|
+
}
|
|
6358
|
+
]
|
|
6359
|
+
},
|
|
6155
6360
|
"praxis-micro-visualization": {
|
|
6156
6361
|
"id": "praxis-micro-visualization",
|
|
6157
6362
|
"description": "Renderiza micro-visualizações ultraleves e autônomas (bullet, radial, sparkline, processFlow, comparison, etc.) como widget independente no canvas ou célula.",
|