@smartbit4all/ng-client 7.2.11 → 7.2.12
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.
|
@@ -52,6 +52,7 @@ import { MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle } fr
|
|
|
52
52
|
import { Chart, registerables } from 'chart.js';
|
|
53
53
|
import AnnotationPlugin from 'chartjs-plugin-annotation';
|
|
54
54
|
import ZoomPlugin from 'chartjs-plugin-zoom';
|
|
55
|
+
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
|
55
56
|
import { MatToolbar } from '@angular/material/toolbar';
|
|
56
57
|
|
|
57
58
|
/**
|
|
@@ -7622,7 +7623,7 @@ var ToolbarDirection;
|
|
|
7622
7623
|
ToolbarDirection["VERTICAL"] = "VERTICAL";
|
|
7623
7624
|
})(ToolbarDirection || (ToolbarDirection = {}));
|
|
7624
7625
|
|
|
7625
|
-
let ApiModule$
|
|
7626
|
+
let ApiModule$3 = class ApiModule {
|
|
7626
7627
|
static forRoot(configurationFactory) {
|
|
7627
7628
|
return {
|
|
7628
7629
|
ngModule: ApiModule,
|
|
@@ -7642,7 +7643,7 @@ let ApiModule$1 = class ApiModule {
|
|
|
7642
7643
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
7643
7644
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
7644
7645
|
};
|
|
7645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule$
|
|
7646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule$3, decorators: [{
|
|
7646
7647
|
type: NgModule,
|
|
7647
7648
|
args: [{
|
|
7648
7649
|
imports: [],
|
|
@@ -7650,7 +7651,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
7650
7651
|
exports: [],
|
|
7651
7652
|
providers: []
|
|
7652
7653
|
}]
|
|
7653
|
-
}], ctorParameters: () => [{ type: ApiModule$
|
|
7654
|
+
}], ctorParameters: () => [{ type: ApiModule$3, decorators: [{
|
|
7654
7655
|
type: Optional
|
|
7655
7656
|
}, {
|
|
7656
7657
|
type: SkipSelf
|
|
@@ -18466,7 +18467,7 @@ var GridViewDescriptorKindEnum;
|
|
|
18466
18467
|
})(GridViewDescriptorKindEnum || (GridViewDescriptorKindEnum = {}));
|
|
18467
18468
|
;
|
|
18468
18469
|
|
|
18469
|
-
class ApiModule {
|
|
18470
|
+
let ApiModule$2 = class ApiModule {
|
|
18470
18471
|
static forRoot(configurationFactory) {
|
|
18471
18472
|
return {
|
|
18472
18473
|
ngModule: ApiModule,
|
|
@@ -18485,8 +18486,8 @@ class ApiModule {
|
|
|
18485
18486
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
18486
18487
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
18487
18488
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
18488
|
-
}
|
|
18489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule, decorators: [{
|
|
18489
|
+
};
|
|
18490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule$2, decorators: [{
|
|
18490
18491
|
type: NgModule,
|
|
18491
18492
|
args: [{
|
|
18492
18493
|
imports: [],
|
|
@@ -18494,7 +18495,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
18494
18495
|
exports: [],
|
|
18495
18496
|
providers: []
|
|
18496
18497
|
}]
|
|
18497
|
-
}], ctorParameters: () => [{ type: ApiModule, decorators: [{
|
|
18498
|
+
}], ctorParameters: () => [{ type: ApiModule$2, decorators: [{
|
|
18498
18499
|
type: Optional
|
|
18499
18500
|
}, {
|
|
18500
18501
|
type: SkipSelf
|
|
@@ -20614,6 +20615,42 @@ var GeoMapTextType;
|
|
|
20614
20615
|
GeoMapTextType["HTML"] = "HTML";
|
|
20615
20616
|
})(GeoMapTextType || (GeoMapTextType = {}));
|
|
20616
20617
|
|
|
20618
|
+
let ApiModule$1 = class ApiModule {
|
|
20619
|
+
static forRoot(configurationFactory) {
|
|
20620
|
+
return {
|
|
20621
|
+
ngModule: ApiModule,
|
|
20622
|
+
providers: [{ provide: Configuration$1, useFactory: configurationFactory }]
|
|
20623
|
+
};
|
|
20624
|
+
}
|
|
20625
|
+
constructor(parentModule, http) {
|
|
20626
|
+
if (parentModule) {
|
|
20627
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
20628
|
+
}
|
|
20629
|
+
if (!http) {
|
|
20630
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
20631
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
20632
|
+
}
|
|
20633
|
+
}
|
|
20634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
20635
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
20636
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
20637
|
+
};
|
|
20638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule$1, decorators: [{
|
|
20639
|
+
type: NgModule,
|
|
20640
|
+
args: [{
|
|
20641
|
+
imports: [],
|
|
20642
|
+
declarations: [],
|
|
20643
|
+
exports: [],
|
|
20644
|
+
providers: []
|
|
20645
|
+
}]
|
|
20646
|
+
}], ctorParameters: () => [{ type: ApiModule$1, decorators: [{
|
|
20647
|
+
type: Optional
|
|
20648
|
+
}, {
|
|
20649
|
+
type: SkipSelf
|
|
20650
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
20651
|
+
type: Optional
|
|
20652
|
+
}] }] });
|
|
20653
|
+
|
|
20617
20654
|
class AbstractMap {
|
|
20618
20655
|
constructor(el, cd, itemFactory) {
|
|
20619
20656
|
this.el = el;
|
|
@@ -21860,6 +21897,42 @@ const DrawTime = {
|
|
|
21860
21897
|
AfterDraw: 'afterDraw'
|
|
21861
21898
|
};
|
|
21862
21899
|
|
|
21900
|
+
class ApiModule {
|
|
21901
|
+
static forRoot(configurationFactory) {
|
|
21902
|
+
return {
|
|
21903
|
+
ngModule: ApiModule,
|
|
21904
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
21905
|
+
};
|
|
21906
|
+
}
|
|
21907
|
+
constructor(parentModule, http) {
|
|
21908
|
+
if (parentModule) {
|
|
21909
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
21910
|
+
}
|
|
21911
|
+
if (!http) {
|
|
21912
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
21913
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
21914
|
+
}
|
|
21915
|
+
}
|
|
21916
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
21917
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
21918
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule }); }
|
|
21919
|
+
}
|
|
21920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApiModule, decorators: [{
|
|
21921
|
+
type: NgModule,
|
|
21922
|
+
args: [{
|
|
21923
|
+
imports: [],
|
|
21924
|
+
declarations: [],
|
|
21925
|
+
exports: [],
|
|
21926
|
+
providers: []
|
|
21927
|
+
}]
|
|
21928
|
+
}], ctorParameters: () => [{ type: ApiModule, decorators: [{
|
|
21929
|
+
type: Optional
|
|
21930
|
+
}, {
|
|
21931
|
+
type: SkipSelf
|
|
21932
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
21933
|
+
type: Optional
|
|
21934
|
+
}] }] });
|
|
21935
|
+
|
|
21863
21936
|
function deepMerge(target, source) {
|
|
21864
21937
|
for (const key of Object.keys(source)) {
|
|
21865
21938
|
if (source[key] instanceof Object && target[key]) {
|
|
@@ -22198,7 +22271,7 @@ class SmartDiagramComponent {
|
|
|
22198
22271
|
this.elementSelect = output();
|
|
22199
22272
|
this.canvasClick = output();
|
|
22200
22273
|
this.dataClick = output();
|
|
22201
|
-
this.aspectClass =
|
|
22274
|
+
this.aspectClass = "default-aspect-ratio";
|
|
22202
22275
|
this.viewInitialized = false;
|
|
22203
22276
|
/** The screen component this diagram belongs to; the source of its uuid. (ADR-0005) */
|
|
22204
22277
|
this.smartComponent = injectSmartComponent();
|
|
@@ -22219,14 +22292,16 @@ class SmartDiagramComponent {
|
|
|
22219
22292
|
Chart.register(...registerables);
|
|
22220
22293
|
Chart.register(AnnotationPlugin);
|
|
22221
22294
|
Chart.register(ZoomPlugin);
|
|
22295
|
+
Chart.register(ChartDataLabels);
|
|
22296
|
+
Chart.defaults.set("plugins.datalabels", { display: false });
|
|
22222
22297
|
}
|
|
22223
22298
|
ngOnChanges(changes) {
|
|
22224
|
-
if (changes[
|
|
22225
|
-
this.diagramModel = changes[
|
|
22299
|
+
if (changes["diagramModel"]) {
|
|
22300
|
+
this.diagramModel = changes["diagramModel"].currentValue;
|
|
22226
22301
|
this.setUp();
|
|
22227
22302
|
}
|
|
22228
|
-
if (changes[
|
|
22229
|
-
this.uuid = changes[
|
|
22303
|
+
if (changes["uuid"] && this.uuid !== changes["uuid"].currentValue) {
|
|
22304
|
+
this.uuid = changes["uuid"].currentValue;
|
|
22230
22305
|
this.load();
|
|
22231
22306
|
}
|
|
22232
22307
|
}
|
|
@@ -22260,7 +22335,9 @@ class SmartDiagramComponent {
|
|
|
22260
22335
|
return;
|
|
22261
22336
|
}
|
|
22262
22337
|
let options = undefined;
|
|
22263
|
-
const type = !!this.diagramModel.descriptor?.type
|
|
22338
|
+
const type = !!this.diagramModel.descriptor?.type
|
|
22339
|
+
? this.diagramModel.descriptor.type
|
|
22340
|
+
: "";
|
|
22264
22341
|
const factory = this.diagramOptionProvider.getFactory(type);
|
|
22265
22342
|
this.type = factory.chartJsType;
|
|
22266
22343
|
options = factory.createOptions(this.diagramModel.diagramData);
|
|
@@ -22298,10 +22375,14 @@ class SmartDiagramComponent {
|
|
|
22298
22375
|
}
|
|
22299
22376
|
onCanvasClick(event) {
|
|
22300
22377
|
if (this.chart) {
|
|
22301
|
-
const element = this.chart.getElementsAtEventForMode(event,
|
|
22302
|
-
const dataset = this.chart.getElementsAtEventForMode(event,
|
|
22378
|
+
const element = this.chart.getElementsAtEventForMode(event, "nearest", { intersect: true }, false);
|
|
22379
|
+
const dataset = this.chart.getElementsAtEventForMode(event, "dataset", { intersect: true }, false);
|
|
22303
22380
|
if (element && element[0] && dataset) {
|
|
22304
|
-
this.onDataSelect({
|
|
22381
|
+
this.onDataSelect({
|
|
22382
|
+
originalEvent: event,
|
|
22383
|
+
element: element[0],
|
|
22384
|
+
dataset: dataset,
|
|
22385
|
+
});
|
|
22305
22386
|
}
|
|
22306
22387
|
}
|
|
22307
22388
|
this.handleChartClick(event);
|
|
@@ -22314,17 +22395,30 @@ class SmartDiagramComponent {
|
|
|
22314
22395
|
legend: {
|
|
22315
22396
|
display: descriptor.showLegendForChart ?? true,
|
|
22316
22397
|
},
|
|
22398
|
+
datalabels: {
|
|
22399
|
+
display: descriptor.showDataLabels ?? true,
|
|
22400
|
+
anchor: "end",
|
|
22401
|
+
align: "end",
|
|
22402
|
+
clamp: true,
|
|
22403
|
+
formatter: (value) => {
|
|
22404
|
+
// scatter/bubble values are objects {x, y}
|
|
22405
|
+
if (value !== null && typeof value === "object") {
|
|
22406
|
+
return value.y ?? value.r ?? "";
|
|
22407
|
+
}
|
|
22408
|
+
return value;
|
|
22409
|
+
},
|
|
22410
|
+
},
|
|
22317
22411
|
...(descriptor.title
|
|
22318
22412
|
? {
|
|
22319
22413
|
title: {
|
|
22320
22414
|
display: true,
|
|
22321
|
-
text: descriptor.title.content ??
|
|
22415
|
+
text: descriptor.title.content ?? "",
|
|
22322
22416
|
color: descriptor.title.color
|
|
22323
22417
|
? `rgba(${descriptor.title.color.red ?? 0},
|
|
22324
22418
|
${descriptor.title.color.green ?? 0},
|
|
22325
22419
|
${descriptor.title.color.blue ?? 0},
|
|
22326
22420
|
${descriptor.title.color.alpha ?? 1})`
|
|
22327
|
-
:
|
|
22421
|
+
: "#000000ff",
|
|
22328
22422
|
font: {
|
|
22329
22423
|
size: descriptor.title.size ?? undefined,
|
|
22330
22424
|
weight: descriptor.title.weight ?? undefined,
|
|
@@ -22334,6 +22428,26 @@ class SmartDiagramComponent {
|
|
|
22334
22428
|
},
|
|
22335
22429
|
}
|
|
22336
22430
|
: {}),
|
|
22431
|
+
...(descriptor.subTitle
|
|
22432
|
+
? {
|
|
22433
|
+
subtitle: {
|
|
22434
|
+
display: true,
|
|
22435
|
+
text: descriptor.subTitle.content ?? "",
|
|
22436
|
+
color: descriptor.subTitle.color
|
|
22437
|
+
? `rgba(${descriptor.subTitle.color.red ?? 0},
|
|
22438
|
+
${descriptor.subTitle.color.green ?? 0},
|
|
22439
|
+
${descriptor.subTitle.color.blue ?? 0},
|
|
22440
|
+
${descriptor.subTitle.color.alpha ?? 1})`
|
|
22441
|
+
: "#000000ff",
|
|
22442
|
+
font: {
|
|
22443
|
+
size: descriptor.subTitle.size ?? undefined,
|
|
22444
|
+
weight: descriptor.subTitle.weight ?? undefined,
|
|
22445
|
+
style: descriptor.subTitle.style ?? undefined,
|
|
22446
|
+
family: descriptor.subTitle.family ?? undefined,
|
|
22447
|
+
},
|
|
22448
|
+
},
|
|
22449
|
+
}
|
|
22450
|
+
: {}),
|
|
22337
22451
|
},
|
|
22338
22452
|
scales: {},
|
|
22339
22453
|
};
|
|
@@ -22373,7 +22487,8 @@ class SmartDiagramComponent {
|
|
|
22373
22487
|
if (descriptor.shapes) {
|
|
22374
22488
|
descriptor.shapes.forEach((shape, index) => {
|
|
22375
22489
|
options.plugins.annotation = options.plugins.annotation || {};
|
|
22376
|
-
options.plugins.annotation.annotations =
|
|
22490
|
+
options.plugins.annotation.annotations =
|
|
22491
|
+
options.plugins.annotation.annotations || {};
|
|
22377
22492
|
let borderColor = `rgba(
|
|
22378
22493
|
${shape.borderColor?.red ?? 0},
|
|
22379
22494
|
${shape.borderColor?.green ?? 0},
|
|
@@ -22397,7 +22512,7 @@ class SmartDiagramComponent {
|
|
|
22397
22512
|
borderDash = undefined;
|
|
22398
22513
|
}
|
|
22399
22514
|
const baseAnnotation = {
|
|
22400
|
-
type: shape.shapeType ??
|
|
22515
|
+
type: shape.shapeType ?? "line",
|
|
22401
22516
|
backgroundColor: backgroundColor ?? undefined,
|
|
22402
22517
|
borderColor: borderColor ?? undefined,
|
|
22403
22518
|
borderWidth: shape.borderWidth ?? 1,
|
|
@@ -22405,9 +22520,9 @@ class SmartDiagramComponent {
|
|
|
22405
22520
|
drawTime: shape.drawTime ?? undefined,
|
|
22406
22521
|
};
|
|
22407
22522
|
switch (shape.shapeType) {
|
|
22408
|
-
case
|
|
22409
|
-
case
|
|
22410
|
-
case
|
|
22523
|
+
case "box":
|
|
22524
|
+
case "line":
|
|
22525
|
+
case "ellipse":
|
|
22411
22526
|
options.plugins.annotation.annotations[`shape${index}`] = {
|
|
22412
22527
|
...baseAnnotation,
|
|
22413
22528
|
xMin: shape.xMin ?? undefined,
|
|
@@ -22416,7 +22531,7 @@ class SmartDiagramComponent {
|
|
|
22416
22531
|
yMax: shape.yMax ?? undefined,
|
|
22417
22532
|
};
|
|
22418
22533
|
break;
|
|
22419
|
-
case
|
|
22534
|
+
case "label":
|
|
22420
22535
|
options.plugins.annotation.annotations[`shape${index}`] = {
|
|
22421
22536
|
...baseAnnotation,
|
|
22422
22537
|
xValue: shape.xMin ?? undefined,
|
|
@@ -22429,12 +22544,12 @@ class SmartDiagramComponent {
|
|
|
22429
22544
|
weight: shape.labelText?.weight ?? undefined,
|
|
22430
22545
|
style: shape.labelText?.style ?? undefined,
|
|
22431
22546
|
},
|
|
22432
|
-
backgroundColor:
|
|
22433
|
-
borderColor:
|
|
22547
|
+
backgroundColor: "transparent",
|
|
22548
|
+
borderColor: "transparent",
|
|
22434
22549
|
};
|
|
22435
22550
|
break;
|
|
22436
|
-
case
|
|
22437
|
-
case
|
|
22551
|
+
case "point":
|
|
22552
|
+
case "polygon":
|
|
22438
22553
|
options.plugins.annotation.annotations[`shape${index}`] = {
|
|
22439
22554
|
...baseAnnotation,
|
|
22440
22555
|
xValue: shape.xMin ?? undefined,
|
|
@@ -22454,13 +22569,13 @@ class SmartDiagramComponent {
|
|
|
22454
22569
|
${descriptor.backgroundColor?.green ?? 0},
|
|
22455
22570
|
${descriptor.backgroundColor?.blue ?? 0},
|
|
22456
22571
|
${descriptor.backgroundColor?.alpha ?? 1})`;
|
|
22457
|
-
let id =
|
|
22572
|
+
let id = "customCanvasBackgroundColor";
|
|
22458
22573
|
const plugin = {
|
|
22459
22574
|
id: id,
|
|
22460
22575
|
beforeDraw: (chart, args, options) => {
|
|
22461
22576
|
const { ctx, chartArea } = chart;
|
|
22462
22577
|
ctx.save();
|
|
22463
|
-
ctx.globalCompositeOperation =
|
|
22578
|
+
ctx.globalCompositeOperation = "destination-over";
|
|
22464
22579
|
ctx.fillStyle = backgroundColor;
|
|
22465
22580
|
ctx.fillRect(chartArea.left, chartArea.top, chartArea.right - chartArea.left, chartArea.bottom - chartArea.top);
|
|
22466
22581
|
ctx.restore();
|
|
@@ -22485,7 +22600,7 @@ class SmartDiagramComponent {
|
|
|
22485
22600
|
const canvas = event.target;
|
|
22486
22601
|
const chart = Chart.getChart(canvas);
|
|
22487
22602
|
if (chart) {
|
|
22488
|
-
const elements = chart.getElementsAtEventForMode(event,
|
|
22603
|
+
const elements = chart.getElementsAtEventForMode(event, "nearest", { intersect: true }, false);
|
|
22489
22604
|
if (elements.length === 0) {
|
|
22490
22605
|
return;
|
|
22491
22606
|
}
|
|
@@ -22543,14 +22658,14 @@ class SmartDiagramComponent {
|
|
|
22543
22658
|
}
|
|
22544
22659
|
applyChartClass() {
|
|
22545
22660
|
switch (this.type) {
|
|
22546
|
-
case
|
|
22547
|
-
case
|
|
22548
|
-
case
|
|
22549
|
-
case
|
|
22550
|
-
this.aspectClass =
|
|
22661
|
+
case "pie":
|
|
22662
|
+
case "doughnut":
|
|
22663
|
+
case "polarArea":
|
|
22664
|
+
case "radar":
|
|
22665
|
+
this.aspectClass = "pie-aspect-ratio";
|
|
22551
22666
|
break;
|
|
22552
22667
|
default:
|
|
22553
|
-
this.aspectClass =
|
|
22668
|
+
this.aspectClass = "default-aspect-ratio";
|
|
22554
22669
|
}
|
|
22555
22670
|
}
|
|
22556
22671
|
calcStyle(style) {
|
|
@@ -22561,10 +22676,10 @@ class SmartDiagramComponent {
|
|
|
22561
22676
|
}
|
|
22562
22677
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SmartDiagramComponent, decorators: [{
|
|
22563
22678
|
type: Component,
|
|
22564
|
-
args: [{ selector:
|
|
22679
|
+
args: [{ selector: "smart-diagram", imports: [NgStyle], template: "<div\r\n class=\"chart-host\"\r\n [class]=\"aspectClass\"\r\n [ngStyle]=\"calcStyle($safeNavigationMigration(diagramModel?.descriptor?.style))\"\r\n>\r\n <div class=\"chart-container\">\r\n <canvas #chartCanvas role=\"img\" (click)=\"onCanvasClick($event)\"></canvas>\r\n </div>\r\n</div>\r\n", styles: [".chart-host{display:flex}.chart-container{position:relative}.default-aspect-ratio .chart-container{width:100%;aspect-ratio:1.78}.pie-aspect-ratio .chart-container{width:100%;aspect-ratio:1}\n"] }]
|
|
22565
22680
|
}], ctorParameters: () => [], propDecorators: { chartCanvas: [{
|
|
22566
22681
|
type: ViewChild,
|
|
22567
|
-
args: [
|
|
22682
|
+
args: ["chartCanvas"]
|
|
22568
22683
|
}], uuid: [{
|
|
22569
22684
|
type: Input
|
|
22570
22685
|
}], identifier: [{ type: i0.Input, args: [{ isSignal: true, alias: "identifier", required: true }] }], diagramModel: [{
|