@praxisui/charts 10.0.0-rc.66 → 10.0.0-rc.68
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-27T11:36:36.596Z",
|
|
4
4
|
"packageName": "@praxisui/charts",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.68",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 13,
|
|
@@ -9833,7 +9833,7 @@ class PraxisChartComponent {
|
|
|
9833
9833
|
this.hasRenderedOnce.set(false);
|
|
9834
9834
|
this.pendingResizeOnReady = false;
|
|
9835
9835
|
this.destroyResizeObserver();
|
|
9836
|
-
this.engine.destroy();
|
|
9836
|
+
this.ngZone.runOutsideAngular(() => this.engine.destroy());
|
|
9837
9837
|
}
|
|
9838
9838
|
this.previousRemoteSignature = nextSignature;
|
|
9839
9839
|
this.previousRemoteIdentitySignature = nextIdentitySignature;
|
|
@@ -9957,7 +9957,7 @@ class PraxisChartComponent {
|
|
|
9957
9957
|
this.hasRenderedOnce.set(false);
|
|
9958
9958
|
this.pendingResizeOnReady = false;
|
|
9959
9959
|
this.destroyResizeObserver();
|
|
9960
|
-
this.engine.destroy();
|
|
9960
|
+
this.ngZone.runOutsideAngular(() => this.engine.destroy());
|
|
9961
9961
|
}
|
|
9962
9962
|
return;
|
|
9963
9963
|
}
|
|
@@ -9975,23 +9975,28 @@ class PraxisChartComponent {
|
|
|
9975
9975
|
this.deferredRenderAttempts = 0;
|
|
9976
9976
|
const hierarchyRootPath = this.activeHierarchyPath();
|
|
9977
9977
|
const renderCfg = this.renderConfig();
|
|
9978
|
-
this.
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9978
|
+
const resolvedData = this.resolvedData();
|
|
9979
|
+
const dataAlternativeMode = this.dataAlternativeMode();
|
|
9980
|
+
const externalDataAlternativeLabel = this.externalDataAlternativeLabel();
|
|
9981
|
+
this.ngZone.runOutsideAngular(() => {
|
|
9982
|
+
this.engine.render(host, {
|
|
9983
|
+
config: renderCfg,
|
|
9984
|
+
data: resolvedData,
|
|
9985
|
+
hierarchyRootPath,
|
|
9986
|
+
dataAlternativeMode,
|
|
9987
|
+
externalDataAlternativeLabel,
|
|
9988
|
+
onPointClick: (event) => this.ngZone.run(() => this.handlePointClick(event)),
|
|
9989
|
+
onPointHoverEnter: (event) => this.ngZone.run(() => this.handlePointHoverEnter(host, event)),
|
|
9990
|
+
onPointHoverLeave: () => this.ngZone.run(() => this.handlePointHoverLeave()),
|
|
9991
|
+
onBrushSelected: (indices) => this.ngZone.run(() => this.handleBrushSelected(indices)),
|
|
9992
|
+
onTimelineChanged: (stepIndex) => this.ngZone.run(() => this.handleTimelineChanged(stepIndex)),
|
|
9993
|
+
});
|
|
9994
|
+
this.engine.setSyncGroup?.(renderCfg.syncGroup ?? null);
|
|
9989
9995
|
});
|
|
9990
|
-
this.engine.setSyncGroup?.(renderCfg.syncGroup ?? null);
|
|
9991
9996
|
if (this.pendingResizeOnReady) {
|
|
9992
9997
|
this.pendingResizeOnReady = false;
|
|
9993
9998
|
this.dismissActiveQuickView('anchor-invalid');
|
|
9994
|
-
this.engine.resize();
|
|
9999
|
+
this.ngZone.runOutsideAngular(() => this.engine.resize());
|
|
9995
10000
|
}
|
|
9996
10001
|
if (!untracked(() => this.hasRenderedOnce())) {
|
|
9997
10002
|
this.hasRenderedOnce.set(true);
|
|
@@ -10006,7 +10011,7 @@ class PraxisChartComponent {
|
|
|
10006
10011
|
this.themeObserver()?.disconnect();
|
|
10007
10012
|
this.cancelScheduledResize();
|
|
10008
10013
|
this.cancelScheduledRender();
|
|
10009
|
-
this.engine.destroy();
|
|
10014
|
+
this.ngZone.runOutsideAngular(() => this.engine.destroy());
|
|
10010
10015
|
});
|
|
10011
10016
|
}
|
|
10012
10017
|
resolveDataDiagnosticDescription(diagnostic) {
|
|
@@ -10319,7 +10324,9 @@ class PraxisChartComponent {
|
|
|
10319
10324
|
}
|
|
10320
10325
|
clearBrushSelection() {
|
|
10321
10326
|
this.brushSelectionState.set(null);
|
|
10322
|
-
this.
|
|
10327
|
+
this.ngZone.runOutsideAngular(() => {
|
|
10328
|
+
this.engine.dispatchAction?.({ type: 'brush', areas: [] });
|
|
10329
|
+
});
|
|
10323
10330
|
}
|
|
10324
10331
|
handleBrushSelected(selectedDataIndices) {
|
|
10325
10332
|
const config = this.renderConfig();
|
|
@@ -11073,14 +11080,17 @@ class PraxisChartComponent {
|
|
|
11073
11080
|
return;
|
|
11074
11081
|
}
|
|
11075
11082
|
this.destroyResizeObserver();
|
|
11076
|
-
const observer =
|
|
11077
|
-
|
|
11078
|
-
|
|
11083
|
+
const observer = this.ngZone.runOutsideAngular(() => {
|
|
11084
|
+
const nextObserver = new ResizeObserver(() => {
|
|
11085
|
+
this.scheduleChartRender();
|
|
11086
|
+
this.scheduleEngineResize();
|
|
11087
|
+
});
|
|
11088
|
+
nextObserver.observe(host);
|
|
11089
|
+
if (host.parentElement) {
|
|
11090
|
+
nextObserver.observe(host.parentElement);
|
|
11091
|
+
}
|
|
11092
|
+
return nextObserver;
|
|
11079
11093
|
});
|
|
11080
|
-
observer.observe(host);
|
|
11081
|
-
if (host.parentElement) {
|
|
11082
|
-
observer.observe(host.parentElement);
|
|
11083
|
-
}
|
|
11084
11094
|
this.resizeObserverHost = host;
|
|
11085
11095
|
this.resizeObserver.set(observer);
|
|
11086
11096
|
}
|
|
@@ -11297,13 +11307,13 @@ class PraxisChartComponent {
|
|
|
11297
11307
|
if (typeof requestAnimationFrame !== 'function') {
|
|
11298
11308
|
this.pendingResizeOnReady = false;
|
|
11299
11309
|
this.dismissActiveQuickView('anchor-invalid');
|
|
11300
|
-
this.engine.resize();
|
|
11310
|
+
this.ngZone.runOutsideAngular(() => this.engine.resize());
|
|
11301
11311
|
return;
|
|
11302
11312
|
}
|
|
11303
11313
|
if (this.resizeFrameId !== null) {
|
|
11304
11314
|
return;
|
|
11305
11315
|
}
|
|
11306
|
-
this.resizeFrameId = requestAnimationFrame(() => {
|
|
11316
|
+
this.resizeFrameId = this.ngZone.runOutsideAngular(() => requestAnimationFrame(() => {
|
|
11307
11317
|
this.resizeFrameId = null;
|
|
11308
11318
|
if (this.loadState() !== 'ready') {
|
|
11309
11319
|
if (this.hasRenderedOnce()) {
|
|
@@ -11312,9 +11322,11 @@ class PraxisChartComponent {
|
|
|
11312
11322
|
return;
|
|
11313
11323
|
}
|
|
11314
11324
|
this.pendingResizeOnReady = false;
|
|
11315
|
-
this.
|
|
11316
|
-
|
|
11317
|
-
|
|
11325
|
+
if (this.activeQuickViewAnchor && this.quickView) {
|
|
11326
|
+
this.ngZone.run(() => this.dismissActiveQuickView('anchor-invalid'));
|
|
11327
|
+
}
|
|
11328
|
+
this.ngZone.runOutsideAngular(() => this.engine.resize());
|
|
11329
|
+
}));
|
|
11318
11330
|
}
|
|
11319
11331
|
scheduleChartRender() {
|
|
11320
11332
|
if (this.renderFrameId !== null) {
|
|
@@ -11328,11 +11340,20 @@ class PraxisChartComponent {
|
|
|
11328
11340
|
this.renderAttempt.update((value) => value + 1);
|
|
11329
11341
|
return;
|
|
11330
11342
|
}
|
|
11331
|
-
this.renderFrameId = requestAnimationFrame(() => {
|
|
11343
|
+
this.renderFrameId = this.ngZone.runOutsideAngular(() => requestAnimationFrame(() => {
|
|
11332
11344
|
this.renderFrameId = null;
|
|
11333
11345
|
this.deferredRenderAttempts += 1;
|
|
11334
|
-
this.
|
|
11335
|
-
|
|
11346
|
+
const host = this.chartHost()?.nativeElement;
|
|
11347
|
+
if (!host || this.hasRenderableSize(host)) {
|
|
11348
|
+
this.ngZone.run(() => {
|
|
11349
|
+
this.renderAttempt.update((value) => value + 1);
|
|
11350
|
+
});
|
|
11351
|
+
return;
|
|
11352
|
+
}
|
|
11353
|
+
if (this.loadState() === 'ready') {
|
|
11354
|
+
this.scheduleChartRender();
|
|
11355
|
+
}
|
|
11356
|
+
}));
|
|
11336
11357
|
}
|
|
11337
11358
|
cancelScheduledRender() {
|
|
11338
11359
|
if (this.renderFrameId === null) {
|
|
@@ -31284,8 +31305,11 @@ class EChartsOptionBuilderService {
|
|
|
31284
31305
|
...(labelLayout ? { labelLayout } : {}),
|
|
31285
31306
|
label: {
|
|
31286
31307
|
show: effectiveLabelsVisible,
|
|
31308
|
+
...(series.type === 'bar'
|
|
31309
|
+
? { position: series.stack ? 'inside' : horizontal ? 'right' : 'top' }
|
|
31310
|
+
: {}),
|
|
31287
31311
|
hideOverlap: true,
|
|
31288
|
-
color: textColor,
|
|
31312
|
+
color: series.type === 'bar' && series.stack ? '#ffffff' : textColor,
|
|
31289
31313
|
formatter: effectiveLabelsVisible
|
|
31290
31314
|
? (params) => this.formatSeriesDataLabel(params, config, series.id, comparisonBaseField, Boolean(series.labelsVisible), showComparisonLabels)
|
|
31291
31315
|
: undefined,
|
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.68",
|
|
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.68",
|
|
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.68",
|
|
12
12
|
"rxjs": "~7.8.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
@@ -4349,7 +4349,9 @@ declare class PraxisChartCompositionShowcaseComponent {
|
|
|
4349
4349
|
protected readonly widgetPage: _angular_core.Signal<{
|
|
4350
4350
|
composition?: _praxisui_core.WidgetPageCompositionDefinition | undefined;
|
|
4351
4351
|
canvas?: _praxisui_core.WidgetPageCanvasLayout | undefined;
|
|
4352
|
+
title?: string | undefined;
|
|
4352
4353
|
state?: _praxisui_core.WidgetPageStateInput | undefined;
|
|
4354
|
+
metadata?: Record<string, any> | undefined;
|
|
4353
4355
|
widgets: _praxisui_core.WidgetInstance[];
|
|
4354
4356
|
context?: Record<string, any> | undefined;
|
|
4355
4357
|
dataSources?: _praxisui_core.WidgetPageDataSourceDefinition[] | undefined;
|
|
@@ -4366,7 +4368,9 @@ declare class PraxisChartCompositionShowcaseComponent {
|
|
|
4366
4368
|
protected readonly canvasPage: _angular_core.Signal<({
|
|
4367
4369
|
composition?: _praxisui_core.WidgetPageCompositionDefinition | undefined;
|
|
4368
4370
|
canvas?: _praxisui_core.WidgetPageCanvasLayout | undefined;
|
|
4371
|
+
title?: string | undefined;
|
|
4369
4372
|
state?: _praxisui_core.WidgetPageStateInput | undefined;
|
|
4373
|
+
metadata?: Record<string, any> | undefined;
|
|
4370
4374
|
widgets: _praxisui_core.WidgetInstance[];
|
|
4371
4375
|
context?: Record<string, any> | undefined;
|
|
4372
4376
|
dataSources?: _praxisui_core.WidgetPageDataSourceDefinition[] | undefined;
|
|
@@ -4401,7 +4405,9 @@ declare class PraxisChartCompositionShowcaseComponent {
|
|
|
4401
4405
|
collisionPolicy?: _praxisui_core.WidgetPageCanvasCollisionPolicy;
|
|
4402
4406
|
};
|
|
4403
4407
|
composition?: _praxisui_core.WidgetPageCompositionDefinition | undefined;
|
|
4408
|
+
title?: string | undefined;
|
|
4404
4409
|
state?: _praxisui_core.WidgetPageStateInput | undefined;
|
|
4410
|
+
metadata?: Record<string, any> | undefined;
|
|
4405
4411
|
context?: Record<string, any> | undefined;
|
|
4406
4412
|
dataSources?: _praxisui_core.WidgetPageDataSourceDefinition[] | undefined;
|
|
4407
4413
|
i18n?: Partial<_praxisui_core.PraxisI18nConfig> | undefined;
|
|
@@ -4417,7 +4423,9 @@ declare class PraxisChartCompositionShowcaseComponent {
|
|
|
4417
4423
|
protected readonly resolvedPage: _angular_core.Signal<{
|
|
4418
4424
|
composition?: _praxisui_core.WidgetPageCompositionDefinition | undefined;
|
|
4419
4425
|
canvas?: _praxisui_core.WidgetPageCanvasLayout | undefined;
|
|
4426
|
+
title?: string | undefined;
|
|
4420
4427
|
state?: _praxisui_core.WidgetPageStateInput | undefined;
|
|
4428
|
+
metadata?: Record<string, any> | undefined;
|
|
4421
4429
|
widgets: _praxisui_core.WidgetInstance[];
|
|
4422
4430
|
context?: Record<string, any> | undefined;
|
|
4423
4431
|
dataSources?: _praxisui_core.WidgetPageDataSourceDefinition[] | undefined;
|
|
@@ -4444,7 +4452,9 @@ declare class PraxisChartCompositionShowcaseComponent {
|
|
|
4444
4452
|
collisionPolicy?: _praxisui_core.WidgetPageCanvasCollisionPolicy;
|
|
4445
4453
|
};
|
|
4446
4454
|
composition?: _praxisui_core.WidgetPageCompositionDefinition | undefined;
|
|
4455
|
+
title?: string | undefined;
|
|
4447
4456
|
state?: _praxisui_core.WidgetPageStateInput | undefined;
|
|
4457
|
+
metadata?: Record<string, any> | undefined;
|
|
4448
4458
|
context?: Record<string, any> | undefined;
|
|
4449
4459
|
dataSources?: _praxisui_core.WidgetPageDataSourceDefinition[] | undefined;
|
|
4450
4460
|
i18n?: Partial<_praxisui_core.PraxisI18nConfig> | undefined;
|