wuic-framework-lib 1.0.7 → 1.0.10
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-j1eRaGZV.mjs → wuic-framework-lib-chart-list.component-vuzmQW9F.mjs} +56 -4
- package/fesm2022/{wuic-framework-lib-code-editor.component-CNREC7r_.mjs → wuic-framework-lib-code-editor.component-BjbIkm4g.mjs} +4 -4
- package/fesm2022/wuic-framework-lib-core.mjs +1 -1
- package/fesm2022/{wuic-framework-lib-designer.component-Bb4B6eDu.mjs → wuic-framework-lib-designer.component-BM3elB-a.mjs} +49 -33
- package/fesm2022/{wuic-framework-lib-first-run-wizard.component-CQTs6hR6.mjs → wuic-framework-lib-first-run-wizard.component-5tcl67dK.mjs} +31 -12
- package/fesm2022/{wuic-framework-lib-framework-docs.component-CzyQHVAV.mjs → wuic-framework-lib-framework-docs.component-BGcJ7k1X.mjs} +484 -13
- package/fesm2022/{wuic-framework-lib-pivot-builder.component-ms-x0Yob.mjs → wuic-framework-lib-pivot-builder.component-ChNyMAfi.mjs} +29 -16
- package/fesm2022/{wuic-framework-lib-prompt-dialog-fallback-host.component-mXhyuLAE.mjs → wuic-framework-lib-prompt-dialog-fallback-host.component-DFLR_EmK.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-report-designer.component-BjUmOBU3.mjs → wuic-framework-lib-report-designer.component-B_SC7VkW.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-report-viewer.component-BOenTSd2.mjs → wuic-framework-lib-report-viewer.component-BTK-p8xF.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-scheduler-list.component-DHcLQ_X7.mjs → wuic-framework-lib-scheduler-list.component-CIoGVf4O.mjs} +12 -4
- package/fesm2022/{wuic-framework-lib-spreadsheet-list-sf.component-AFm6hAX4.mjs → wuic-framework-lib-spreadsheet-list-sf.component-DQ5OxO4j.mjs} +10 -4
- package/fesm2022/{wuic-framework-lib-workflow-designer.component-Bn6ocOVw.mjs → wuic-framework-lib-workflow-designer.component-BHLT4MER.mjs} +29 -3
- package/fesm2022/{wuic-framework-lib-wuic-framework-lib-KFbUlRIT.mjs → wuic-framework-lib-wuic-framework-lib-DDokY6wY.mjs} +2130 -491
- package/fesm2022/wuic-framework-lib.mjs +1 -1
- package/package.json +1 -1
- package/types/wuic-framework-lib-core.d.ts +1 -1
- package/types/wuic-framework-lib.d.ts +458 -15
|
@@ -7,7 +7,7 @@ import * as i2 from '@ngx-translate/core';
|
|
|
7
7
|
import { TranslateModule } from '@ngx-translate/core';
|
|
8
8
|
import * as i7 from '@syncfusion/ej2-angular-spreadsheet';
|
|
9
9
|
import { SpreadsheetModule } from '@syncfusion/ej2-angular-spreadsheet';
|
|
10
|
-
import { W as WtoolboxService, M as MetadataProviderService, U as UserInfoService, b as DataSourceComponent, I as ImportExportButtonComponent } from './wuic-framework-lib-wuic-framework-lib-
|
|
10
|
+
import { W as WtoolboxService, M as MetadataProviderService, U as UserInfoService, b as DataSourceComponent, I as ImportExportButtonComponent } from './wuic-framework-lib-wuic-framework-lib-DDokY6wY.mjs';
|
|
11
11
|
import { registerLicense } from '@syncfusion/ej2-base';
|
|
12
12
|
import * as i1 from '@angular/platform-browser';
|
|
13
13
|
import * as i1$1 from '@angular/router';
|
|
@@ -2430,8 +2430,9 @@ class SpreadsheetListSfComponent {
|
|
|
2430
2430
|
const rowData = record;
|
|
2431
2431
|
return (${conditionCode});
|
|
2432
2432
|
`;
|
|
2433
|
+
let compiled = null;
|
|
2433
2434
|
try {
|
|
2434
|
-
|
|
2435
|
+
compiled = new Function('metaInfo', 'record', 'wtoolbox', expressionWrapper);
|
|
2435
2436
|
}
|
|
2436
2437
|
catch {
|
|
2437
2438
|
const blockWrapper = `
|
|
@@ -2441,12 +2442,17 @@ class SpreadsheetListSfComponent {
|
|
|
2441
2442
|
return true;
|
|
2442
2443
|
`;
|
|
2443
2444
|
try {
|
|
2444
|
-
|
|
2445
|
+
compiled = new Function('metaInfo', 'record', 'wtoolbox', blockWrapper);
|
|
2445
2446
|
}
|
|
2446
2447
|
catch {
|
|
2447
2448
|
return () => false;
|
|
2448
2449
|
}
|
|
2449
2450
|
}
|
|
2451
|
+
// skills/typed-localized-exceptions: cached compiled fn invocata per ogni
|
|
2452
|
+
// cell-style check → wrap il call-site cosi' un throw runtime emette typed
|
|
2453
|
+
// envelope (`errors.client.user_callback.failed`) invece di propagare uncaught.
|
|
2454
|
+
const route = this.metaInfo?.tableMetadata?.md_route_name;
|
|
2455
|
+
return (metaInfo, record, wtoolbox) => WtoolboxService.runUserCallbackSync('archetypes.spreadsheet.conditionalStyle', () => compiled(metaInfo, record, wtoolbox), [], { archetype: 'spreadsheet', route }, { fallback: false }) ?? false;
|
|
2450
2456
|
}
|
|
2451
2457
|
/**
|
|
2452
2458
|
* cellEdit: intercettato per lookup columns per mostrare un autocomplete
|
|
@@ -3874,4 +3880,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
3874
3880
|
}] } });
|
|
3875
3881
|
|
|
3876
3882
|
export { SpreadsheetListSfComponent };
|
|
3877
|
-
//# sourceMappingURL=wuic-framework-lib-spreadsheet-list-sf.component-
|
|
3883
|
+
//# sourceMappingURL=wuic-framework-lib-spreadsheet-list-sf.component-DQ5OxO4j.mjs.map
|
|
@@ -20,7 +20,7 @@ import { SelectModule } from 'primeng/select';
|
|
|
20
20
|
import * as i2$2 from '@ngx-translate/core';
|
|
21
21
|
import { TranslateModule } from '@ngx-translate/core';
|
|
22
22
|
import { BehaviorSubject } from 'rxjs';
|
|
23
|
-
import { W as WtoolboxService, M as MetadataProviderService, d as ParametricDialogComponent, f as DataProviderService, b as DataSourceComponent, j as MetadataEditorComponent } from './wuic-framework-lib-wuic-framework-lib-
|
|
23
|
+
import { W as WtoolboxService, M as MetadataProviderService, d as ParametricDialogComponent, k as WuicClientException, l as WuicErrorCodes, G as GlobalHandler, f as DataProviderService, b as DataSourceComponent, j as MetadataEditorComponent } from './wuic-framework-lib-wuic-framework-lib-DDokY6wY.mjs';
|
|
24
24
|
|
|
25
25
|
class WorkflowDesignerLayoutHelper {
|
|
26
26
|
/**
|
|
@@ -4115,7 +4115,33 @@ class WorkflowDesignerComponent {
|
|
|
4115
4115
|
const normalizedRaw = this.parseMaybeJson(raw);
|
|
4116
4116
|
const root = Array.isArray(normalizedRaw) ? (normalizedRaw[0] || {}) : (normalizedRaw || {});
|
|
4117
4117
|
const graphJson = this.pickFirstDefined(root, ['graph_json', 'wg_graph_json', 'graphjson']) || '{}';
|
|
4118
|
-
|
|
4118
|
+
// skills/typed-localized-exceptions: detect graph_json parse failure
|
|
4119
|
+
// ed emit typed envelope. Senza questa guard il silent fall-back mostrava
|
|
4120
|
+
// un canvas vuoto col solo Start node senza dire all'utente che il grafo
|
|
4121
|
+
// salvato e' corrotto (DB row con JSON malformato).
|
|
4122
|
+
let graph = null;
|
|
4123
|
+
let parseError = null;
|
|
4124
|
+
if (typeof graphJson === 'string' && graphJson.trim().length > 0 && graphJson.trim() !== '{}') {
|
|
4125
|
+
try {
|
|
4126
|
+
graph = JSON.parse(graphJson);
|
|
4127
|
+
}
|
|
4128
|
+
catch (err) {
|
|
4129
|
+
parseError = err;
|
|
4130
|
+
graph = {};
|
|
4131
|
+
}
|
|
4132
|
+
}
|
|
4133
|
+
else {
|
|
4134
|
+
graph = this.parseMaybeJson(graphJson) || {};
|
|
4135
|
+
}
|
|
4136
|
+
if (parseError) {
|
|
4137
|
+
const exc = new WuicClientException(WuicErrorCodes.MetadataPropsBagMalformed, {
|
|
4138
|
+
route: String(this.pickFirstDefined(root, ['graph_name', 'wg_name', 'graphname']) || 'workflow'),
|
|
4139
|
+
field: 'wg_graph_json',
|
|
4140
|
+
parserMessage: (parseError instanceof Error ? parseError.message : String(parseError)).slice(0, 500),
|
|
4141
|
+
phase: 'workflow.normalizeLoadedWorkflow',
|
|
4142
|
+
}, { surface: 'component', targetName: 'WorkflowDesignerComponent.normalizeLoadedWorkflow', cause: parseError });
|
|
4143
|
+
GlobalHandler.emitClientException(exc);
|
|
4144
|
+
}
|
|
4119
4145
|
const nodes = Array.isArray(graph?.nodes) ? graph.nodes : [];
|
|
4120
4146
|
const connections = Array.isArray(graph?.connections) ? graph.connections : [];
|
|
4121
4147
|
const routeMetadata = Array.isArray(root?.route_metadata)
|
|
@@ -5065,4 +5091,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
5065
5091
|
}] } });
|
|
5066
5092
|
|
|
5067
5093
|
export { WorkflowDesignerComponent };
|
|
5068
|
-
//# sourceMappingURL=wuic-framework-lib-workflow-designer.component-
|
|
5094
|
+
//# sourceMappingURL=wuic-framework-lib-workflow-designer.component-BHLT4MER.mjs.map
|