wuic-framework-lib 1.0.10 → 1.0.19
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/fesm2022/{wuic-framework-lib-chart-list.component-vuzmQW9F.mjs → wuic-framework-lib-chart-list.component-C0OYuZoM.mjs} +8 -8
- package/fesm2022/{wuic-framework-lib-code-editor.component-BjbIkm4g.mjs → wuic-framework-lib-code-editor.component-B8OQ3Z0k.mjs} +258 -258
- package/fesm2022/{wuic-framework-lib-designer.component-BM3elB-a.mjs → wuic-framework-lib-designer.component-DsWgWtFj.mjs} +99 -105
- package/fesm2022/{wuic-framework-lib-first-run-wizard.component-5tcl67dK.mjs → wuic-framework-lib-first-run-wizard.component-wR_LrvPK.mjs} +244 -38
- package/fesm2022/{wuic-framework-lib-framework-docs.component-BGcJ7k1X.mjs → wuic-framework-lib-framework-docs.component-eyzu9tdV.mjs} +31 -15
- package/fesm2022/{wuic-framework-lib-pivot-builder.component-ChNyMAfi.mjs → wuic-framework-lib-pivot-builder.component-BFdZW5Ch.mjs} +215 -88
- package/fesm2022/{wuic-framework-lib-prompt-dialog-fallback-host.component-DFLR_EmK.mjs → wuic-framework-lib-prompt-dialog-fallback-host.component-B583WbYe.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-report-designer.component-B_SC7VkW.mjs → wuic-framework-lib-report-designer.component-HJUpslLX.mjs} +12 -12
- package/fesm2022/{wuic-framework-lib-report-viewer.component-BTK-p8xF.mjs → wuic-framework-lib-report-viewer.component-El32zpzi.mjs} +81 -11
- package/fesm2022/{wuic-framework-lib-scheduler-list.component-CIoGVf4O.mjs → wuic-framework-lib-scheduler-list.component-E8s_e533.mjs} +16 -16
- package/fesm2022/{wuic-framework-lib-spreadsheet-list-sf.component-DQ5OxO4j.mjs → wuic-framework-lib-spreadsheet-list-sf.component-CDn0qi_C.mjs} +19 -5
- package/fesm2022/{wuic-framework-lib-workflow-designer.component-BHLT4MER.mjs → wuic-framework-lib-workflow-designer.component-hL7oKqYO.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-wuic-framework-lib-DDokY6wY.mjs → wuic-framework-lib-wuic-framework-lib-ABS_G7lO.mjs} +2149 -1089
- package/fesm2022/wuic-framework-lib.mjs +1 -1
- package/package.json +1 -1
- package/types/wuic-framework-lib.d.ts +308 -24
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, ViewChild, Output, Input, Component } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { W as WtoolboxService, k as WuicClientException, l as WuicErrorCodes, G as GlobalHandler, M as MetadataProviderService, T as TranslationManagerService, U as UserInfoService, A as ArchetypeConfiguratorComponent } from './wuic-framework-lib-wuic-framework-lib-
|
|
4
|
+
import { W as WtoolboxService, k as WuicClientException, l as WuicErrorCodes, G as GlobalHandler, M as MetadataProviderService, T as TranslationManagerService, U as UserInfoService, A as ArchetypeConfiguratorComponent } from './wuic-framework-lib-wuic-framework-lib-ABS_G7lO.mjs';
|
|
5
5
|
import * as i5 from 'primeng/chart';
|
|
6
6
|
import { ChartModule } from 'primeng/chart';
|
|
7
7
|
import * as i2 from '@ngx-translate/core';
|
|
@@ -337,7 +337,7 @@ class ChartListComponent {
|
|
|
337
337
|
this.refreshChartOptions();
|
|
338
338
|
this.startChartResizeObserver();
|
|
339
339
|
this.scheduleChartResizePasses();
|
|
340
|
-
|
|
340
|
+
let title = this.metaInfo.tableMetadata.md_display_string;
|
|
341
341
|
this.titleService.setTitle(title);
|
|
342
342
|
if (info.resultInfo.dato) {
|
|
343
343
|
this.lastResultInfo = info.resultInfo;
|
|
@@ -386,7 +386,7 @@ class ChartListComponent {
|
|
|
386
386
|
*/
|
|
387
387
|
drillDown($event) {
|
|
388
388
|
this.onChartDataSelect.emit($event);
|
|
389
|
-
|
|
389
|
+
let clicked = this.datasource?.value?.resultInfo?.dato?.[$event?.element?.index];
|
|
390
390
|
this.onChartDrillDown.emit({
|
|
391
391
|
event: $event,
|
|
392
392
|
clickedItem: clicked,
|
|
@@ -1046,7 +1046,7 @@ class ChartListComponent {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
_parseDataInternal(result, runtimeCutOff) {
|
|
1049
|
-
|
|
1049
|
+
let chartData;
|
|
1050
1050
|
// = {
|
|
1051
1051
|
// labels: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
1052
1052
|
// datasets: [
|
|
@@ -1060,7 +1060,7 @@ class ChartListComponent {
|
|
|
1060
1060
|
// ]
|
|
1061
1061
|
// };
|
|
1062
1062
|
if (this.metaInfo.tableMetadata.extraProps?.archetypes?.chart?.dataOptions) {
|
|
1063
|
-
|
|
1063
|
+
let dataOptions = this.metaInfo.tableMetadata.extraProps.archetypes.chart.dataOptions;
|
|
1064
1064
|
if (dataOptions.getChartData) {
|
|
1065
1065
|
chartData = typeof dataOptions.getChartData === 'string' ? new Function("data", dataOptions.getChartData)(result) : dataOptions.getChartData(result);
|
|
1066
1066
|
}
|
|
@@ -1069,7 +1069,7 @@ class ChartListComponent {
|
|
|
1069
1069
|
labels: [],
|
|
1070
1070
|
datasets: []
|
|
1071
1071
|
};
|
|
1072
|
-
|
|
1072
|
+
let data = Array.isArray(result[dataOptions.dataProperty]) ? result[dataOptions.dataProperty] : [];
|
|
1073
1073
|
const groupRows = data.filter((d) => d && d.__group_header === 1);
|
|
1074
1074
|
const chartRows = groupRows.length ? groupRows : data;
|
|
1075
1075
|
const sortField = dataOptions.datasets?.[0]?.dataField;
|
|
@@ -1091,7 +1091,7 @@ class ChartListComponent {
|
|
|
1091
1091
|
chartData.datasets.push(typeof ds.parseData === 'string' ? new Function("data", ds.parseData)(result) : ds.parseData(data));
|
|
1092
1092
|
}
|
|
1093
1093
|
else if (ds.labelField && ds.dataField) {
|
|
1094
|
-
|
|
1094
|
+
let dsInstance = {
|
|
1095
1095
|
label: ds.label,
|
|
1096
1096
|
// backgroundColor: ds.backgroundColor,
|
|
1097
1097
|
// borderColor: ds.borderColor,
|
|
@@ -1317,4 +1317,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
1317
1317
|
}] } });
|
|
1318
1318
|
|
|
1319
1319
|
export { ChartListComponent };
|
|
1320
|
-
//# sourceMappingURL=wuic-framework-lib-chart-list.component-
|
|
1320
|
+
//# sourceMappingURL=wuic-framework-lib-chart-list.component-C0OYuZoM.mjs.map
|