@smartbit4all/ng-client 4.0.116 → 4.0.118
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/esm2022/lib/view-context/smart-view-context.module.mjs +5 -11
- package/esm2022/projects.mjs +1 -2
- package/esm2022/src/lib/smart-chart/api/api/api.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/api.module.mjs +40 -0
- package/esm2022/src/lib/smart-chart/api/configuration.mjs +91 -0
- package/esm2022/src/lib/smart-chart/api/index.mjs +7 -0
- package/esm2022/src/lib/smart-chart/api/model/chartData.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/model/chartDescriptor.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/model/chartOrientation.mjs +16 -0
- package/esm2022/src/lib/smart-chart/api/model/chartType.mjs +21 -0
- package/esm2022/{lib/smart-chart/api/model/chartOrientation.mjs → src/lib/smart-chart/api/model/chartValue.mjs} +2 -5
- package/esm2022/src/lib/smart-chart/api/model/diagramDataContainer.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/model/diagramDataItem.mjs +13 -0
- package/esm2022/src/lib/smart-chart/api/model/diagramDataSet.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/model/diagramDataSetConstructionInstruction.mjs +13 -0
- package/esm2022/src/lib/smart-chart/api/model/diagramDescriptor.mjs +13 -0
- package/esm2022/src/lib/smart-chart/api/model/diagramUiModel.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/model/models.mjs +13 -0
- package/esm2022/src/lib/smart-chart/api/model/pieChartLegendPosition.mjs +16 -0
- package/esm2022/src/lib/smart-chart/api/param.mjs +2 -0
- package/esm2022/src/lib/smart-chart/api/variables.mjs +9 -0
- package/esm2022/src/lib/smart-chart/default-chart-options.provider.mjs +233 -0
- package/esm2022/src/lib/smart-chart/projects.mjs +8 -0
- package/esm2022/src/lib/smart-chart/smart-chart.component.mjs +96 -0
- package/esm2022/src/lib/smart-chart/smart-chart.module.mjs +39 -0
- package/esm2022/src/lib/smart-chart/smartbit4all-ng-client-src-lib-smart-chart.mjs +5 -0
- package/fesm2022/smartbit4all-ng-client-src-lib-smart-chart.mjs +473 -0
- package/fesm2022/smartbit4all-ng-client-src-lib-smart-chart.mjs.map +1 -0
- package/fesm2022/smartbit4all-ng-client.mjs +4 -470
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-view-context.module.d.ts +1 -2
- package/package.json +7 -1
- package/projects.d.ts +0 -1
- package/smartbit4all-ng-client-4.0.118.tgz +0 -0
- package/src/lib/smart-chart/index.d.ts +5 -0
- package/{lib → src/lib}/smart-chart/smart-chart.component.d.ts +1 -1
- package/esm2022/lib/smart-chart/api/api/api.mjs +0 -2
- package/esm2022/lib/smart-chart/api/api.module.mjs +0 -40
- package/esm2022/lib/smart-chart/api/configuration.mjs +0 -91
- package/esm2022/lib/smart-chart/api/index.mjs +0 -7
- package/esm2022/lib/smart-chart/api/model/chartData.mjs +0 -2
- package/esm2022/lib/smart-chart/api/model/chartDescriptor.mjs +0 -2
- package/esm2022/lib/smart-chart/api/model/chartType.mjs +0 -21
- package/esm2022/lib/smart-chart/api/model/chartValue.mjs +0 -13
- package/esm2022/lib/smart-chart/api/model/diagramDataContainer.mjs +0 -2
- package/esm2022/lib/smart-chart/api/model/diagramDataItem.mjs +0 -13
- package/esm2022/lib/smart-chart/api/model/diagramDataSet.mjs +0 -2
- package/esm2022/lib/smart-chart/api/model/diagramDataSetConstructionInstruction.mjs +0 -13
- package/esm2022/lib/smart-chart/api/model/diagramDescriptor.mjs +0 -13
- package/esm2022/lib/smart-chart/api/model/diagramUiModel.mjs +0 -2
- package/esm2022/lib/smart-chart/api/model/models.mjs +0 -13
- package/esm2022/lib/smart-chart/api/model/pieChartLegendPosition.mjs +0 -16
- package/esm2022/lib/smart-chart/api/param.mjs +0 -2
- package/esm2022/lib/smart-chart/api/variables.mjs +0 -9
- package/esm2022/lib/smart-chart/default-chart-options.provider.mjs +0 -233
- package/esm2022/lib/smart-chart/projects.mjs +0 -8
- package/esm2022/lib/smart-chart/smart-chart.component.mjs +0 -96
- package/esm2022/lib/smart-chart/smart-chart.module.mjs +0 -39
- package/smartbit4all-ng-client-4.0.116.tgz +0 -0
- /package/{lib → src/lib}/smart-chart/api/api/api.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/api.module.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/configuration.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/index.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/chartData.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/chartDescriptor.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/chartOrientation.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/chartType.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/chartValue.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/diagramDataContainer.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/diagramDataItem.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/diagramDataSet.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/diagramDataSetConstructionInstruction.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/diagramDescriptor.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/diagramUiModel.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/models.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/model/pieChartLegendPosition.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/param.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/api/variables.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/default-chart-options.provider.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/projects.d.ts +0 -0
- /package/{lib → src/lib}/smart-chart/smart-chart.module.d.ts +0 -0
|
@@ -95,8 +95,6 @@ import * as i6$1 from '@angular/material/table';
|
|
|
95
95
|
import { MatTableModule } from '@angular/material/table';
|
|
96
96
|
import { provideNgxMask } from 'ngx-mask';
|
|
97
97
|
import { ToastModule } from 'primeng/toast';
|
|
98
|
-
import * as i2$4 from 'primeng/chart';
|
|
99
|
-
import { ChartModule } from 'primeng/chart';
|
|
100
98
|
import { catchError as catchError$1, switchMap } from 'rxjs/operators';
|
|
101
99
|
import * as i9$1 from '@angular/material/paginator';
|
|
102
100
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
@@ -9215,360 +9213,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
9215
9213
|
type: Injectable
|
|
9216
9214
|
}], ctorParameters: () => [{ type: SmartViewContextErrorDialogService }] });
|
|
9217
9215
|
|
|
9218
|
-
const CUSTOM_CHART_OPTIONS = new InjectionToken('CUSTOM_CHART_OPTIONS');
|
|
9219
|
-
function transformDataToBasicDataSets(chartData) {
|
|
9220
|
-
return {
|
|
9221
|
-
labels: chartData.labels,
|
|
9222
|
-
datasets: chartData.items.map((dataset) => {
|
|
9223
|
-
const color = dataset.dataSetcolor || generateRandomColor();
|
|
9224
|
-
return {
|
|
9225
|
-
data: dataset.items.map((item) => item.xValue),
|
|
9226
|
-
label: dataset.label,
|
|
9227
|
-
backgroundColor: color,
|
|
9228
|
-
borderColor: color,
|
|
9229
|
-
};
|
|
9230
|
-
}),
|
|
9231
|
-
};
|
|
9232
|
-
}
|
|
9233
|
-
function transformDataToBarLikeDataSet(chartData) {
|
|
9234
|
-
return {
|
|
9235
|
-
labels: chartData.labels,
|
|
9236
|
-
datasets: chartData.items.map((dataset) => {
|
|
9237
|
-
return {
|
|
9238
|
-
data: dataset.items.map((item) => item.xValue),
|
|
9239
|
-
label: dataset.label,
|
|
9240
|
-
backgroundColor: dataset.items.map((item) => item.itemColor || generateRandomColor()),
|
|
9241
|
-
borderColor: dataset.items.map((item) => item.itemColor || generateRandomColor()),
|
|
9242
|
-
};
|
|
9243
|
-
}),
|
|
9244
|
-
};
|
|
9245
|
-
}
|
|
9246
|
-
function transformDataToScatter(chartData) {
|
|
9247
|
-
return {
|
|
9248
|
-
datasets: chartData.items.map((dataset) => {
|
|
9249
|
-
const color = dataset.dataSetcolor || generateRandomColor();
|
|
9250
|
-
return {
|
|
9251
|
-
label: dataset.label,
|
|
9252
|
-
data: dataset.items.map((item) => ({
|
|
9253
|
-
x: item.xValue,
|
|
9254
|
-
y: item.yValue,
|
|
9255
|
-
})),
|
|
9256
|
-
backgroundColor: color,
|
|
9257
|
-
borderColor: color,
|
|
9258
|
-
};
|
|
9259
|
-
}),
|
|
9260
|
-
};
|
|
9261
|
-
}
|
|
9262
|
-
function transformDataToBubble(chartData) {
|
|
9263
|
-
return {
|
|
9264
|
-
datasets: chartData.items.map((dataset) => {
|
|
9265
|
-
const color = dataset.dataSetcolor || generateRandomColor();
|
|
9266
|
-
return {
|
|
9267
|
-
label: dataset.label,
|
|
9268
|
-
data: dataset.items.map((item) => ({
|
|
9269
|
-
x: item.xValue,
|
|
9270
|
-
y: item.yValue,
|
|
9271
|
-
r: item.rValue ?? 5,
|
|
9272
|
-
})),
|
|
9273
|
-
backgroundColor: color,
|
|
9274
|
-
borderColor: color,
|
|
9275
|
-
};
|
|
9276
|
-
}),
|
|
9277
|
-
};
|
|
9278
|
-
}
|
|
9279
|
-
const barChart = {
|
|
9280
|
-
chartType: 'bar',
|
|
9281
|
-
chartJsType: 'bar',
|
|
9282
|
-
createOptions: () => {
|
|
9283
|
-
return {};
|
|
9284
|
-
},
|
|
9285
|
-
transformData: transformDataToBarLikeDataSet,
|
|
9286
|
-
};
|
|
9287
|
-
const horizontalBarChart = {
|
|
9288
|
-
chartType: 'horizontalBar',
|
|
9289
|
-
chartJsType: 'bar',
|
|
9290
|
-
createOptions: () => {
|
|
9291
|
-
return {
|
|
9292
|
-
indexAxis: 'y',
|
|
9293
|
-
};
|
|
9294
|
-
},
|
|
9295
|
-
transformData: transformDataToBarLikeDataSet,
|
|
9296
|
-
};
|
|
9297
|
-
const radarChart = {
|
|
9298
|
-
chartType: 'radar',
|
|
9299
|
-
chartJsType: 'radar',
|
|
9300
|
-
createOptions: () => {
|
|
9301
|
-
return {};
|
|
9302
|
-
},
|
|
9303
|
-
transformData: (chartData) => {
|
|
9304
|
-
return {
|
|
9305
|
-
labels: chartData.labels,
|
|
9306
|
-
datasets: chartData.items.map((dataset) => ({
|
|
9307
|
-
data: dataset.items.map((item) => item.xValue),
|
|
9308
|
-
label: dataset.label,
|
|
9309
|
-
borderColor: dataset.dataSetcolor,
|
|
9310
|
-
pointBackgroundColor: dataset.dataSetcolor,
|
|
9311
|
-
pointBorderColor: dataset.dataSetcolor,
|
|
9312
|
-
pointHoverBackgroundColor: '#000000',
|
|
9313
|
-
pointHoverBorderColor: dataset.dataSetcolor,
|
|
9314
|
-
})),
|
|
9315
|
-
};
|
|
9316
|
-
},
|
|
9317
|
-
};
|
|
9318
|
-
const stackedBarChart = {
|
|
9319
|
-
chartType: 'stackedBar',
|
|
9320
|
-
chartJsType: 'bar',
|
|
9321
|
-
createOptions: () => {
|
|
9322
|
-
return {
|
|
9323
|
-
scales: {
|
|
9324
|
-
x: {
|
|
9325
|
-
stacked: true,
|
|
9326
|
-
},
|
|
9327
|
-
y: {
|
|
9328
|
-
stacked: true,
|
|
9329
|
-
},
|
|
9330
|
-
},
|
|
9331
|
-
};
|
|
9332
|
-
},
|
|
9333
|
-
transformData: transformDataToBasicDataSets,
|
|
9334
|
-
};
|
|
9335
|
-
const pieChart = {
|
|
9336
|
-
chartType: 'pie',
|
|
9337
|
-
chartJsType: 'pie',
|
|
9338
|
-
createOptions: () => {
|
|
9339
|
-
return {};
|
|
9340
|
-
},
|
|
9341
|
-
transformData: transformDataToBarLikeDataSet,
|
|
9342
|
-
};
|
|
9343
|
-
const doughnutChart = {
|
|
9344
|
-
chartType: 'doughnut',
|
|
9345
|
-
chartJsType: 'doughnut',
|
|
9346
|
-
createOptions: () => {
|
|
9347
|
-
return {};
|
|
9348
|
-
},
|
|
9349
|
-
transformData: transformDataToBarLikeDataSet,
|
|
9350
|
-
};
|
|
9351
|
-
const scatterChart = {
|
|
9352
|
-
chartType: 'scatter',
|
|
9353
|
-
chartJsType: 'scatter',
|
|
9354
|
-
createOptions: () => {
|
|
9355
|
-
return {};
|
|
9356
|
-
},
|
|
9357
|
-
transformData: transformDataToScatter,
|
|
9358
|
-
};
|
|
9359
|
-
const bubbleChart = {
|
|
9360
|
-
chartType: 'bubble',
|
|
9361
|
-
chartJsType: 'bubble',
|
|
9362
|
-
createOptions: () => {
|
|
9363
|
-
return {};
|
|
9364
|
-
},
|
|
9365
|
-
transformData: transformDataToBubble,
|
|
9366
|
-
};
|
|
9367
|
-
const multiAxisLineChart = {
|
|
9368
|
-
chartType: 'multiAxisLine',
|
|
9369
|
-
chartJsType: 'line',
|
|
9370
|
-
createOptions: (chartData) => {
|
|
9371
|
-
const yAxes = chartData.items.map((dataset, index) => ({
|
|
9372
|
-
id: `y${index == 1 ? '' : index}`,
|
|
9373
|
-
type: 'linear',
|
|
9374
|
-
position: index % 2 === 0 ? 'left' : 'right',
|
|
9375
|
-
}));
|
|
9376
|
-
return {
|
|
9377
|
-
scales: {
|
|
9378
|
-
...yAxes.reduce((acc, axis) => {
|
|
9379
|
-
acc[axis.id] = axis;
|
|
9380
|
-
return acc;
|
|
9381
|
-
}, {}),
|
|
9382
|
-
},
|
|
9383
|
-
};
|
|
9384
|
-
},
|
|
9385
|
-
transformData: (chartData) => {
|
|
9386
|
-
return {
|
|
9387
|
-
labels: chartData.labels,
|
|
9388
|
-
datasets: chartData.items.map((dataset, index) => ({
|
|
9389
|
-
data: dataset.items.map((item) => item.xValue),
|
|
9390
|
-
label: dataset.label,
|
|
9391
|
-
yAxisID: `y${index == 1 ? '' : index}`,
|
|
9392
|
-
backgroundColor: dataset.dataSetcolor,
|
|
9393
|
-
borderColor: dataset.dataSetcolor,
|
|
9394
|
-
})),
|
|
9395
|
-
};
|
|
9396
|
-
},
|
|
9397
|
-
};
|
|
9398
|
-
const polarAreaChart = {
|
|
9399
|
-
chartType: 'polarArea',
|
|
9400
|
-
chartJsType: 'polarArea',
|
|
9401
|
-
createOptions: () => {
|
|
9402
|
-
return {};
|
|
9403
|
-
},
|
|
9404
|
-
transformData: (chartData) => {
|
|
9405
|
-
return {
|
|
9406
|
-
labels: chartData.labels,
|
|
9407
|
-
datasets: chartData.items.map((dataset) => ({
|
|
9408
|
-
data: dataset.items.map((item) => item.xValue),
|
|
9409
|
-
label: dataset.label,
|
|
9410
|
-
borderColor: dataset.items.map((item) => item.itemColor),
|
|
9411
|
-
backgroundColor: dataset.items.map((item) => item.itemColor),
|
|
9412
|
-
})),
|
|
9413
|
-
};
|
|
9414
|
-
},
|
|
9415
|
-
};
|
|
9416
|
-
class DefaultChartOptionsProvider {
|
|
9417
|
-
constructor(factories) {
|
|
9418
|
-
this.factoriesByType = new Map(factories?.map((f) => [f.chartType, f]) ?? []);
|
|
9419
|
-
}
|
|
9420
|
-
getFactory(chartType) {
|
|
9421
|
-
return (this.factoriesByType.get(chartType) ?? {
|
|
9422
|
-
chartType: chartType,
|
|
9423
|
-
chartJsType: chartType,
|
|
9424
|
-
transformData: transformDataToBasicDataSets,
|
|
9425
|
-
createOptions: () => {
|
|
9426
|
-
return {};
|
|
9427
|
-
},
|
|
9428
|
-
});
|
|
9429
|
-
}
|
|
9430
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DefaultChartOptionsProvider, deps: [{ token: CUSTOM_CHART_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9431
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DefaultChartOptionsProvider, providedIn: 'root' }); }
|
|
9432
|
-
}
|
|
9433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DefaultChartOptionsProvider, decorators: [{
|
|
9434
|
-
type: Injectable,
|
|
9435
|
-
args: [{
|
|
9436
|
-
providedIn: 'root',
|
|
9437
|
-
}]
|
|
9438
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
9439
|
-
type: Inject,
|
|
9440
|
-
args: [CUSTOM_CHART_OPTIONS]
|
|
9441
|
-
}, {
|
|
9442
|
-
type: Optional
|
|
9443
|
-
}] }] });
|
|
9444
|
-
function generateRandomColor() {
|
|
9445
|
-
const random = Math.floor(Math.random() * 16777215).toString(16);
|
|
9446
|
-
return `#${'000000'.substring(0, 6 - random.length) + random}`;
|
|
9447
|
-
}
|
|
9448
|
-
|
|
9449
|
-
class SmartChartComponent {
|
|
9450
|
-
constructor(chartOptionProvider, compLib) {
|
|
9451
|
-
this.chartOptionProvider = chartOptionProvider;
|
|
9452
|
-
this.compLib = compLib;
|
|
9453
|
-
this.componentLibrary = ComponentLibrary;
|
|
9454
|
-
}
|
|
9455
|
-
ngOnInit() {
|
|
9456
|
-
let options = undefined;
|
|
9457
|
-
const diagramType = !!this.diagramUiModel.Descriptor?.diagramType
|
|
9458
|
-
? this.diagramUiModel.Descriptor.diagramType
|
|
9459
|
-
: '';
|
|
9460
|
-
const factory = this.chartOptionProvider.getFactory(diagramType);
|
|
9461
|
-
this.type = factory.chartJsType;
|
|
9462
|
-
options = factory.createOptions(this.diagramUiModel.DiagramData);
|
|
9463
|
-
if (this.diagramUiModel.Descriptor) {
|
|
9464
|
-
options = this.deepMerge(this.convertBackendOptions(this.diagramUiModel.Descriptor), options);
|
|
9465
|
-
}
|
|
9466
|
-
if (this.options) {
|
|
9467
|
-
options = this.deepMerge(this.options, options);
|
|
9468
|
-
}
|
|
9469
|
-
this.options = options;
|
|
9470
|
-
this.data = factory.transformData(this.diagramUiModel.DiagramData);
|
|
9471
|
-
}
|
|
9472
|
-
deepMerge(target, source) {
|
|
9473
|
-
for (const key of Object.keys(source)) {
|
|
9474
|
-
if (source[key] instanceof Object && target[key]) {
|
|
9475
|
-
Object.assign(source[key], this.deepMerge(target[key], source[key]));
|
|
9476
|
-
}
|
|
9477
|
-
}
|
|
9478
|
-
Object.assign(target || {}, source);
|
|
9479
|
-
return target;
|
|
9480
|
-
}
|
|
9481
|
-
convertBackendOptions(descriptor) {
|
|
9482
|
-
const options = {
|
|
9483
|
-
plugins: {
|
|
9484
|
-
legend: {
|
|
9485
|
-
display: descriptor.showLegendForChart ?? true,
|
|
9486
|
-
},
|
|
9487
|
-
},
|
|
9488
|
-
scales: {},
|
|
9489
|
-
};
|
|
9490
|
-
if (descriptor.diagramMinX !== undefined && descriptor.diagramMaxX !== undefined) {
|
|
9491
|
-
options.scales.x = {
|
|
9492
|
-
ticks: {
|
|
9493
|
-
display: descriptor.showLabelsForXAxis ?? true,
|
|
9494
|
-
},
|
|
9495
|
-
min: descriptor.diagramMinX,
|
|
9496
|
-
max: descriptor.diagramMaxX,
|
|
9497
|
-
};
|
|
9498
|
-
}
|
|
9499
|
-
else {
|
|
9500
|
-
options.scales.x = {
|
|
9501
|
-
ticks: {
|
|
9502
|
-
display: descriptor.showLabelsForXAxis ?? true,
|
|
9503
|
-
},
|
|
9504
|
-
};
|
|
9505
|
-
}
|
|
9506
|
-
if (descriptor.diagramMinY !== undefined && descriptor.diagramMaxY !== undefined) {
|
|
9507
|
-
options.scales.y = {
|
|
9508
|
-
ticks: {
|
|
9509
|
-
display: descriptor.showLabelsForYAxis ?? true,
|
|
9510
|
-
},
|
|
9511
|
-
min: descriptor.diagramMinY,
|
|
9512
|
-
max: descriptor.diagramMaxY,
|
|
9513
|
-
};
|
|
9514
|
-
}
|
|
9515
|
-
else {
|
|
9516
|
-
options.scales.y = {
|
|
9517
|
-
ticks: {
|
|
9518
|
-
display: descriptor.showLabelsForYAxis ?? true,
|
|
9519
|
-
},
|
|
9520
|
-
};
|
|
9521
|
-
}
|
|
9522
|
-
return options;
|
|
9523
|
-
}
|
|
9524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartChartComponent, deps: [{ token: DefaultChartOptionsProvider }, { token: COMPONENT_LIBRARY }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9525
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.11", type: SmartChartComponent, selector: "smart-chart", inputs: { diagramUiModel: "diagramUiModel", options: "options" }, ngImport: i0, template: "@if(compLib === componentLibrary.PRIMENG) {\r\n<p-chart [type]=\"type\" [data]=\"data\" [options]=\"options\" />\r\n} @else {\r\n<p>Only PrimeNg component library is supported </p>\r\n}\r\n", styles: [""], dependencies: [{ kind: "component", type: i2$4.UIChart, selector: "p-chart", inputs: ["type", "plugins", "width", "height", "responsive", "ariaLabel", "ariaLabelledBy", "data", "options"], outputs: ["onDataSelect"] }] }); }
|
|
9526
|
-
}
|
|
9527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartChartComponent, decorators: [{
|
|
9528
|
-
type: Component,
|
|
9529
|
-
args: [{ selector: 'smart-chart', template: "@if(compLib === componentLibrary.PRIMENG) {\r\n<p-chart [type]=\"type\" [data]=\"data\" [options]=\"options\" />\r\n} @else {\r\n<p>Only PrimeNg component library is supported </p>\r\n}\r\n" }]
|
|
9530
|
-
}], ctorParameters: () => [{ type: DefaultChartOptionsProvider }, { type: ComponentLibrary, decorators: [{
|
|
9531
|
-
type: Inject,
|
|
9532
|
-
args: [COMPONENT_LIBRARY]
|
|
9533
|
-
}] }], propDecorators: { diagramUiModel: [{
|
|
9534
|
-
type: Input
|
|
9535
|
-
}], options: [{
|
|
9536
|
-
type: Input
|
|
9537
|
-
}] } });
|
|
9538
|
-
|
|
9539
|
-
const DEFAULT_PROVIDERS = [
|
|
9540
|
-
DefaultChartOptionsProvider,
|
|
9541
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: barChart, multi: true },
|
|
9542
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: scatterChart, multi: true },
|
|
9543
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: bubbleChart, multi: true },
|
|
9544
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: horizontalBarChart, multi: true },
|
|
9545
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: stackedBarChart, multi: true },
|
|
9546
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: multiAxisLineChart, multi: true },
|
|
9547
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: polarAreaChart, multi: true },
|
|
9548
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: radarChart, multi: true },
|
|
9549
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: doughnutChart, multi: true },
|
|
9550
|
-
{ provide: CUSTOM_CHART_OPTIONS, useValue: pieChart, multi: true },
|
|
9551
|
-
];
|
|
9552
|
-
class SmartChartModule {
|
|
9553
|
-
static forRoot(providers) {
|
|
9554
|
-
return {
|
|
9555
|
-
ngModule: SmartChartModule,
|
|
9556
|
-
providers: [...DEFAULT_PROVIDERS, ...providers],
|
|
9557
|
-
};
|
|
9558
|
-
}
|
|
9559
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9560
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: SmartChartModule, declarations: [SmartChartComponent], imports: [BrowserModule, ChartModule], exports: [SmartChartComponent] }); }
|
|
9561
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartChartModule, imports: [BrowserModule, ChartModule] }); }
|
|
9562
|
-
}
|
|
9563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartChartModule, decorators: [{
|
|
9564
|
-
type: NgModule,
|
|
9565
|
-
args: [{
|
|
9566
|
-
declarations: [SmartChartComponent],
|
|
9567
|
-
imports: [BrowserModule, ChartModule],
|
|
9568
|
-
exports: [SmartChartComponent],
|
|
9569
|
-
}]
|
|
9570
|
-
}] });
|
|
9571
|
-
|
|
9572
9216
|
class SmartViewContextModule {
|
|
9573
9217
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartViewContextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9574
9218
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: SmartViewContextModule, declarations: [MessageDialogComponent,
|
|
@@ -9628,8 +9272,7 @@ class SmartViewContextModule {
|
|
|
9628
9272
|
DynamicDialogModule,
|
|
9629
9273
|
FileUploadModule,
|
|
9630
9274
|
ChipsModule,
|
|
9631
|
-
CalendarModule,
|
|
9632
|
-
SmartChartModule], exports: [UiActionToolbarComponent,
|
|
9275
|
+
CalendarModule], exports: [UiActionToolbarComponent,
|
|
9633
9276
|
UiActionInputDialogComponent,
|
|
9634
9277
|
SmartformComponent,
|
|
9635
9278
|
SmartformwidgetComponent,
|
|
@@ -9637,8 +9280,7 @@ class SmartViewContextModule {
|
|
|
9637
9280
|
SmartfileuploaderComponent,
|
|
9638
9281
|
HighlightPipe,
|
|
9639
9282
|
ComparableDropdownDirective,
|
|
9640
|
-
ComparableMultiselectDirective
|
|
9641
|
-
SmartChartModule] }); }
|
|
9283
|
+
ComparableMultiselectDirective] }); }
|
|
9642
9284
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartViewContextModule, providers: [
|
|
9643
9285
|
Dropdown,
|
|
9644
9286
|
MultiSelect,
|
|
@@ -9705,8 +9347,7 @@ class SmartViewContextModule {
|
|
|
9705
9347
|
DynamicDialogModule,
|
|
9706
9348
|
FileUploadModule,
|
|
9707
9349
|
ChipsModule,
|
|
9708
|
-
CalendarModule
|
|
9709
|
-
SmartChartModule, SmartChartModule] }); }
|
|
9350
|
+
CalendarModule] }); }
|
|
9710
9351
|
}
|
|
9711
9352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartViewContextModule, decorators: [{
|
|
9712
9353
|
type: NgModule,
|
|
@@ -9776,7 +9417,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
9776
9417
|
FileUploadModule,
|
|
9777
9418
|
ChipsModule,
|
|
9778
9419
|
CalendarModule,
|
|
9779
|
-
SmartChartModule,
|
|
9780
9420
|
],
|
|
9781
9421
|
exports: [
|
|
9782
9422
|
UiActionToolbarComponent,
|
|
@@ -9788,7 +9428,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
9788
9428
|
HighlightPipe,
|
|
9789
9429
|
ComparableDropdownDirective,
|
|
9790
9430
|
ComparableMultiselectDirective,
|
|
9791
|
-
SmartChartModule,
|
|
9792
9431
|
],
|
|
9793
9432
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
9794
9433
|
providers: [
|
|
@@ -17553,111 +17192,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
17553
17192
|
* Public API Surface of smart-tab-group
|
|
17554
17193
|
*/
|
|
17555
17194
|
|
|
17556
|
-
/**
|
|
17557
|
-
* Chart API
|
|
17558
|
-
* API for consume charts.
|
|
17559
|
-
*
|
|
17560
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17561
|
-
* Contact: info@it4all.hu
|
|
17562
|
-
*
|
|
17563
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17564
|
-
* https://openapi-generator.tech
|
|
17565
|
-
* Do not edit the class manually.
|
|
17566
|
-
*/
|
|
17567
|
-
const ChartOrientation = {
|
|
17568
|
-
Horizontal: 'Horizontal',
|
|
17569
|
-
Vertical: 'Vertical'
|
|
17570
|
-
};
|
|
17571
|
-
|
|
17572
|
-
/**
|
|
17573
|
-
* Chart API
|
|
17574
|
-
* API for consume charts.
|
|
17575
|
-
*
|
|
17576
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17577
|
-
* Contact: info@it4all.hu
|
|
17578
|
-
*
|
|
17579
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17580
|
-
* https://openapi-generator.tech
|
|
17581
|
-
* Do not edit the class manually.
|
|
17582
|
-
*/
|
|
17583
|
-
const ChartType = {
|
|
17584
|
-
BarChart: 'BarChart',
|
|
17585
|
-
GroupedBarChart: 'GroupedBarChart',
|
|
17586
|
-
StackedBarChart: 'StackedBarChart',
|
|
17587
|
-
NormalizedBarChart: 'NormalizedBarChart',
|
|
17588
|
-
PieChart: 'PieChart',
|
|
17589
|
-
AdvancedPieChart: 'AdvancedPieChart',
|
|
17590
|
-
PieGrid: 'PieGrid'
|
|
17591
|
-
};
|
|
17592
|
-
|
|
17593
|
-
/**
|
|
17594
|
-
* Chart API
|
|
17595
|
-
* API for consume charts.
|
|
17596
|
-
*
|
|
17597
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17598
|
-
* Contact: info@it4all.hu
|
|
17599
|
-
*
|
|
17600
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17601
|
-
* https://openapi-generator.tech
|
|
17602
|
-
* Do not edit the class manually.
|
|
17603
|
-
*/
|
|
17604
|
-
|
|
17605
|
-
/**
|
|
17606
|
-
* Chart API
|
|
17607
|
-
* API for consume charts.
|
|
17608
|
-
*
|
|
17609
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17610
|
-
* Contact: info@it4all.hu
|
|
17611
|
-
*
|
|
17612
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17613
|
-
* https://openapi-generator.tech
|
|
17614
|
-
* Do not edit the class manually.
|
|
17615
|
-
*/
|
|
17616
|
-
|
|
17617
|
-
/**
|
|
17618
|
-
* Chart API
|
|
17619
|
-
* API for consume charts.
|
|
17620
|
-
*
|
|
17621
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17622
|
-
* Contact: info@it4all.hu
|
|
17623
|
-
*
|
|
17624
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17625
|
-
* https://openapi-generator.tech
|
|
17626
|
-
* Do not edit the class manually.
|
|
17627
|
-
*/
|
|
17628
|
-
|
|
17629
|
-
/**
|
|
17630
|
-
* Chart API
|
|
17631
|
-
* API for consume charts.
|
|
17632
|
-
*
|
|
17633
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17634
|
-
* Contact: info@it4all.hu
|
|
17635
|
-
*
|
|
17636
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17637
|
-
* https://openapi-generator.tech
|
|
17638
|
-
* Do not edit the class manually.
|
|
17639
|
-
*/
|
|
17640
|
-
|
|
17641
|
-
/**
|
|
17642
|
-
* Chart API
|
|
17643
|
-
* API for consume charts.
|
|
17644
|
-
*
|
|
17645
|
-
* The version of the OpenAPI document: 1.0.0
|
|
17646
|
-
* Contact: info@it4all.hu
|
|
17647
|
-
*
|
|
17648
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17649
|
-
* https://openapi-generator.tech
|
|
17650
|
-
* Do not edit the class manually.
|
|
17651
|
-
*/
|
|
17652
|
-
const PieChartLegendPosition = {
|
|
17653
|
-
Right: 'right',
|
|
17654
|
-
Below: 'below'
|
|
17655
|
-
};
|
|
17656
|
-
|
|
17657
|
-
/*
|
|
17658
|
-
* Public API Surface of smart-chart
|
|
17659
|
-
*/
|
|
17660
|
-
|
|
17661
17195
|
/*
|
|
17662
17196
|
* Public API Surface of smart-ng-client
|
|
17663
17197
|
*/
|
|
@@ -17666,5 +17200,5 @@ const PieChartLegendPosition = {
|
|
|
17666
17200
|
* Generated bundle index. Do not edit.
|
|
17667
17201
|
*/
|
|
17668
17202
|
|
|
17669
|
-
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$5 as BASE_PATH, COLLECTION_FORMATS$5 as COLLECTION_FORMATS, COMPONENT_LIBRARY,
|
|
17203
|
+
export { APIS$3 as APIS, ApiModule$3 as ApiModule, ApiQueueService, BASE_PATH$5 as BASE_PATH, COLLECTION_FORMATS$5 as COLLECTION_FORMATS, COMPONENT_LIBRARY, CloseResult, ComparableDropdownDirective, ComparableMultiselectDirective, ComponentFactoryService, ComponentFactoryServiceModule, ComponentLibrary, ComponentType, ComponentWidgetType, Configuration$5 as Configuration, DIALOG_DISABLE_CLOSE, DataChangeKind, DefaultUiActionCode_CLOSE, ExpandableSectionButtonIconPosition, ExpandableSectionButtonType, ExpandableSectionComponent, FilterExpressionBoolOperator$1 as FilterExpressionBoolOperator, FilterExpressionBuilderGroupBuilderGroupKindEnum, FilterExpressionDataType, FilterExpressionFieldWidgetType, FilterExpressionOperation, FilterExpressionOrderByOrderEnum, GridColumnContentType, GridDataAccessConfigKindEnum, GridSelectionMode, GridSelectionType, GridUiActionType, GridViewDescriptorKindEnum, HighlightPipe, IS_ASYNC_PARAM_NAME, IconPosition, ImageResourceKindEnum, LayoutDirection, LinkTargetEnum, MessageOptionType, MessageTextType, MessageType, SelectionDefinitionTypeEnum, ServerRequestType, SessionAPIS, SessionErrorBehaviour, SessionService, SharedModule, SimplifiedTabGroupComponent, SmartActionType, SmartAuthService, SmartComponent, SmartComponentApiClient, SmartComponentLayoutComponent, SmartComponentLayoutModule, SmartComponentLayoutUtility, SmartDatePipe, SmartDateTimePipe, SmartDialog, SmartExpandableSectionModule, SmartExpandableSectionService, SmartFileUploaderComponent, SmartFilterComponent, SmartFilterEditorContentComponent, SmartFilterEditorModule, SmartFilterEditorService, SmartFilterExpressionItemComponent, SmartFilterExpressionItemsComponent, SmartFilterModule, SmartFilterParamComponent, SmartFilterParamsComponent, SmartFilterPosition, SmartFilterType, SmartFormInputMode, SmartFormTextFieldButtonIconPosition, SmartFormWidgetDirection, SmartFormWidgetType, SmartFormWidgetWidth, SmartGridButtonType, SmartGridComponent, SmartGridDataLayout, SmartGridModule, SmartGridService, SmartGridType, SmartIconComponent, SmartIconModule, SmartIconService, SmartLayoutDef, SmartLinkChannelVariableInPath, SmartLinkUuidVariableInPath, SmartNavbarComponent, SmartNavbarModule, SmartNavbarService, SmartNavigationModule, SmartNavigationService, SmartNgClientModule, SmartNgClientService, SmartService, SmartSessionModule, SmartSessionService, SmartSessionTimerComponent, SmartSessionTimerService, SmartSubject, SmartTabGroupModule, SmartTabGroupService, SmartTable, SmartTableButtonType, SmartTableHeaderPropertyType, SmartTableInterfaceTypeEnum, SmartTableOptionButtonDirection, SmartTableOrder, SmartTableType, SmartTimePipe, SmartTooltipDirective, SmartTreeComponent, SmartTreeNodeButtonType, SmartUserSettinsIconPosition, SmartValidatorName, SmartViewContextErrorDialogButtonLabel, SmartViewContextErrorDialogMessage, SmartViewContextErrorDialogTitle, SmartViewContextModule, SmartViewContextService, SmartViewRedirect, SmartWidgetHintPosition, SmartWidgetHintPositionEnum, SmartWidgetSettings, SmartdialogModule, SmartdialogService, SmartfileuploaderComponent, SmartformComponent, SmartformLayoutDefinitionService, SmartformwidgetComponent, SmarttableComponent, SmarttableModule, SmarttableService, SmarttreeGenericService, SmarttreeModule, SmarttreeService, TabGroupComponent, ToggleLabelPosition, UiActionButtonType, UiActionConfirmDialogComponent, UiActionConfirmDialogService, UiActionDescriptorService, UiActionDialogButtonComponent, UiActionDialogType, UiActionFeedbackType, UiActionInputDialogComponent, UiActionInputDialogService, UiActionInputType, UiActionService, UiActionToolbarComponent, UiActionTooltipTooltipPositionEnum, ValueChangeMode, ViewEventHandlerViewEventTypeEnum, ViewService, ViewState, ViewType };
|
|
17670
17204
|
//# sourceMappingURL=smartbit4all-ng-client.mjs.map
|