@praxisui/charts 10.0.0-rc.59 → 10.0.0-rc.60
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-23T14:32:32.238Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.60",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 10,
|
|
@@ -290,13 +290,6 @@
|
|
|
290
290
|
"required": false,
|
|
291
291
|
"description": "Configuração governada de motion encaminhada para o renderer de gráfico."
|
|
292
292
|
},
|
|
293
|
-
{
|
|
294
|
-
"name": "enableCustomization",
|
|
295
|
-
"type": "boolean",
|
|
296
|
-
"required": false,
|
|
297
|
-
"description": "Habilita authoring interno do chart quando aplicável.",
|
|
298
|
-
"default": false
|
|
299
|
-
},
|
|
300
293
|
{
|
|
301
294
|
"name": "chartDocumentOverrides",
|
|
302
295
|
"type": "Record<string, Partial<PraxisXUiChartContract>> | null",
|
|
@@ -864,9 +857,9 @@
|
|
|
864
857
|
{
|
|
865
858
|
"chunkIndex": 0,
|
|
866
859
|
"chunkKind": "summary",
|
|
867
|
-
"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 -
|
|
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",
|
|
868
861
|
"sourcePointer": "projects/praxis-charts/src/lib/praxis-analytics-presentation.metadata.ts",
|
|
869
|
-
"contentHash": "
|
|
862
|
+
"contentHash": "592e614bf3f197ef844300508f1fcea7dfc2b53c59551b5d6978a8e46ccf07bc",
|
|
870
863
|
"sourceKind": "component_definition",
|
|
871
864
|
"sourceId": "praxis-analytics-presentation",
|
|
872
865
|
"corpusVersion": "1.0.0"
|
|
@@ -12587,12 +12587,23 @@ const SCALAR_COMPOUND_IN_KEYS = new Set([
|
|
|
12587
12587
|
'walkin',
|
|
12588
12588
|
'builtin',
|
|
12589
12589
|
'dropin',
|
|
12590
|
+
'clockin',
|
|
12591
|
+
'optin',
|
|
12592
|
+
'punchin',
|
|
12590
12593
|
'clock_in',
|
|
12591
12594
|
'check_in',
|
|
12592
12595
|
'sign_in',
|
|
12593
12596
|
'log_in',
|
|
12594
12597
|
'walk_in',
|
|
12598
|
+
'built_in',
|
|
12599
|
+
'drop_in',
|
|
12600
|
+
'trade_in',
|
|
12601
|
+
'linked_in',
|
|
12602
|
+
'opt_in',
|
|
12603
|
+
'punch_in',
|
|
12595
12604
|
]);
|
|
12605
|
+
const PREFIXED_SCALAR_CAMEL_IN_RE = /(?:Check|Sign|Log|Clock|Walk|Drop|Trade|Built|Linked|Opt|Punch)In$/;
|
|
12606
|
+
const PREFIXED_SCALAR_SNAKE_IN_RE = /(?:^|_)(?:check|sign|log|clock|walk|drop|trade|built|linked|opt|punch)_in$/i;
|
|
12596
12607
|
function isRecord(value) {
|
|
12597
12608
|
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
12598
12609
|
}
|
|
@@ -12607,7 +12618,9 @@ function coerceCrossFilterValue(key, rawValue) {
|
|
|
12607
12618
|
return rawValue;
|
|
12608
12619
|
}
|
|
12609
12620
|
const trimmedKey = key.trim();
|
|
12610
|
-
const isKnownScalarInCompound = SCALAR_COMPOUND_IN_KEYS.has(trimmedKey.toLowerCase())
|
|
12621
|
+
const isKnownScalarInCompound = SCALAR_COMPOUND_IN_KEYS.has(trimmedKey.toLowerCase()) ||
|
|
12622
|
+
PREFIXED_SCALAR_CAMEL_IN_RE.test(trimmedKey) ||
|
|
12623
|
+
PREFIXED_SCALAR_SNAKE_IN_RE.test(trimmedKey);
|
|
12611
12624
|
const isBooleanInFlag = !Array.isArray(rawValue) &&
|
|
12612
12625
|
typeof rawValue === 'boolean' &&
|
|
12613
12626
|
/(?:In|_in)$/i.test(trimmedKey);
|
|
@@ -14299,6 +14312,7 @@ class PraxisAnalyticsPresentationComponent {
|
|
|
14299
14312
|
embeddedInShell = signal(false, ...(ngDevMode ? [{ debugName: "embeddedInShell" }] : /* istanbul ignore next */ []));
|
|
14300
14313
|
shellObserver = null;
|
|
14301
14314
|
temporaryFamily = signal(null, ...(ngDevMode ? [{ debugName: "temporaryFamily" }] : /* istanbul ignore next */ []));
|
|
14315
|
+
explicitUserFamily = signal(null, ...(ngDevMode ? [{ debugName: "explicitUserFamily" }] : /* istanbul ignore next */ []));
|
|
14302
14316
|
authoredChartDocumentOverrides = signal({}, ...(ngDevMode ? [{ debugName: "authoredChartDocumentOverrides" }] : /* istanbul ignore next */ []));
|
|
14303
14317
|
selectedProjectionId = signal(null, ...(ngDevMode ? [{ debugName: "selectedProjectionId" }] : /* istanbul ignore next */ []));
|
|
14304
14318
|
hydratedAnalytics = signal(null, ...(ngDevMode ? [{ debugName: "hydratedAnalytics" }] : /* istanbul ignore next */ []));
|
|
@@ -14547,6 +14561,7 @@ class PraxisAnalyticsPresentationComponent {
|
|
|
14547
14561
|
}
|
|
14548
14562
|
this.selectedProjectionId.set(null);
|
|
14549
14563
|
this.temporaryFamily.set(null);
|
|
14564
|
+
this.explicitUserFamily.set(null);
|
|
14550
14565
|
this.clearCrossFilterState(previousId ?? undefined);
|
|
14551
14566
|
}
|
|
14552
14567
|
}
|
|
@@ -14683,12 +14698,18 @@ class PraxisAnalyticsPresentationComponent {
|
|
|
14683
14698
|
if (previousProjectionId === trimmed) {
|
|
14684
14699
|
return;
|
|
14685
14700
|
}
|
|
14686
|
-
const
|
|
14701
|
+
const previousFamily = this.activeFamily();
|
|
14687
14702
|
const authorized = this.availableFamilies().filter((family) => INSTALLED_FAMILIES.includes(family));
|
|
14688
|
-
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14703
|
+
const userFamily = this.explicitUserFamily();
|
|
14704
|
+
const hostPreferred = this.preferredFamily();
|
|
14705
|
+
let nextFamily = null;
|
|
14706
|
+
if (userFamily && authorized.includes(userFamily) && this.isEligible(targetProjection, userFamily)) {
|
|
14707
|
+
this.temporaryFamily.set(userFamily);
|
|
14708
|
+
nextFamily = userFamily;
|
|
14709
|
+
}
|
|
14710
|
+
else if (hostPreferred && authorized.includes(hostPreferred) && this.isEligible(targetProjection, hostPreferred)) {
|
|
14711
|
+
this.temporaryFamily.set(null);
|
|
14712
|
+
nextFamily = hostPreferred;
|
|
14692
14713
|
}
|
|
14693
14714
|
else {
|
|
14694
14715
|
const eligibleForTarget = authorized.filter((family) => this.isEligible(targetProjection, family));
|
|
@@ -14702,6 +14723,7 @@ class PraxisAnalyticsPresentationComponent {
|
|
|
14702
14723
|
}
|
|
14703
14724
|
}
|
|
14704
14725
|
this.temporaryFamily.set(fallbackFamily);
|
|
14726
|
+
nextFamily = fallbackFamily;
|
|
14705
14727
|
}
|
|
14706
14728
|
this.resultDiagnostic.set(null);
|
|
14707
14729
|
this.clearCrossFilterState(previousProjectionId);
|
|
@@ -14711,6 +14733,13 @@ class PraxisAnalyticsPresentationComponent {
|
|
|
14711
14733
|
previousProjectionId,
|
|
14712
14734
|
source: 'temporary-user-choice',
|
|
14713
14735
|
});
|
|
14736
|
+
if (nextFamily && nextFamily !== previousFamily) {
|
|
14737
|
+
this.presentationChange.emit({
|
|
14738
|
+
projectionId: trimmed,
|
|
14739
|
+
family: nextFamily,
|
|
14740
|
+
source: 'temporary-user-choice',
|
|
14741
|
+
});
|
|
14742
|
+
}
|
|
14714
14743
|
}
|
|
14715
14744
|
projectionLabel(projection) {
|
|
14716
14745
|
const metricLabel = projection.bindings.primaryMetrics[0]?.label?.trim();
|
|
@@ -14730,6 +14759,7 @@ class PraxisAnalyticsPresentationComponent {
|
|
|
14730
14759
|
}
|
|
14731
14760
|
this.resultDiagnostic.set(null);
|
|
14732
14761
|
this.temporaryFamily.set(family);
|
|
14762
|
+
this.explicitUserFamily.set(family);
|
|
14733
14763
|
this.presentationChange.emit({
|
|
14734
14764
|
projectionId: this.effectiveProjectionId(),
|
|
14735
14765
|
family,
|
|
@@ -28664,7 +28694,6 @@ const PRAXIS_ANALYTICS_PRESENTATION_COMPONENT_METADATA = {
|
|
|
28664
28694
|
{ name: 'subtitle', type: 'PraxisTextValue', description: 'Subtítulo compartilhado pelos renderers.' },
|
|
28665
28695
|
{ name: 'height', type: 'number | string | undefined', description: 'Altura explícita encaminhada para o renderer de gráfico.' },
|
|
28666
28696
|
{ name: 'motion', type: 'PraxisChartMotionConfig | undefined', description: 'Configuração governada de motion encaminhada para o renderer de gráfico.' },
|
|
28667
|
-
{ name: 'enableCustomization', type: 'boolean', description: 'Habilita authoring interno do chart quando aplicável.', default: false },
|
|
28668
28697
|
{ name: 'chartDocumentOverrides', type: 'Record<string, Partial<PraxisXUiChartContract>> | null', description: 'Customizações de documento do gráfico persistidas por projectionId.', default: null },
|
|
28669
28698
|
],
|
|
28670
28699
|
outputs: [
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/charts",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.60",
|
|
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": "^10.0.0-rc.
|
|
8
|
+
"@praxisui/core": "^10.0.0-rc.60",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/table": "^10.0.0-rc.
|
|
11
|
+
"@praxisui/table": "^10.0.0-rc.60",
|
|
12
12
|
"rxjs": "~7.8.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
@@ -1887,6 +1887,7 @@ declare class PraxisAnalyticsPresentationComponent implements OnInit, WidgetShel
|
|
|
1887
1887
|
readonly embeddedInShell: _angular_core.WritableSignal<boolean>;
|
|
1888
1888
|
private shellObserver;
|
|
1889
1889
|
private readonly temporaryFamily;
|
|
1890
|
+
private readonly explicitUserFamily;
|
|
1890
1891
|
private readonly authoredChartDocumentOverrides;
|
|
1891
1892
|
private readonly selectedProjectionId;
|
|
1892
1893
|
private readonly hydratedAnalytics;
|