wuic-framework-lib 1.0.7 → 1.0.9

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.
Files changed (16) hide show
  1. package/fesm2022/{wuic-framework-lib-chart-list.component-j1eRaGZV.mjs → wuic-framework-lib-chart-list.component-Cjdbe3i0.mjs} +56 -4
  2. package/fesm2022/{wuic-framework-lib-code-editor.component-CNREC7r_.mjs → wuic-framework-lib-code-editor.component-xbC6-KoE.mjs} +4 -4
  3. package/fesm2022/{wuic-framework-lib-designer.component-Bb4B6eDu.mjs → wuic-framework-lib-designer.component-ChMnwQH_.mjs} +49 -33
  4. package/fesm2022/{wuic-framework-lib-first-run-wizard.component-CQTs6hR6.mjs → wuic-framework-lib-first-run-wizard.component-DoVifTlj.mjs} +31 -12
  5. package/fesm2022/{wuic-framework-lib-framework-docs.component-CzyQHVAV.mjs → wuic-framework-lib-framework-docs.component-Cqhp5yIg.mjs} +484 -13
  6. package/fesm2022/{wuic-framework-lib-pivot-builder.component-ms-x0Yob.mjs → wuic-framework-lib-pivot-builder.component-ala8bb7P.mjs} +29 -16
  7. package/fesm2022/{wuic-framework-lib-prompt-dialog-fallback-host.component-mXhyuLAE.mjs → wuic-framework-lib-prompt-dialog-fallback-host.component-CdRKaYSG.mjs} +2 -2
  8. package/fesm2022/{wuic-framework-lib-report-designer.component-BjUmOBU3.mjs → wuic-framework-lib-report-designer.component-BeEWCPy0.mjs} +2 -2
  9. package/fesm2022/{wuic-framework-lib-report-viewer.component-BOenTSd2.mjs → wuic-framework-lib-report-viewer.component-CWamvZrx.mjs} +2 -2
  10. package/fesm2022/{wuic-framework-lib-scheduler-list.component-DHcLQ_X7.mjs → wuic-framework-lib-scheduler-list.component-BvrjIVRY.mjs} +12 -4
  11. package/fesm2022/{wuic-framework-lib-spreadsheet-list-sf.component-AFm6hAX4.mjs → wuic-framework-lib-spreadsheet-list-sf.component-CRg47ux6.mjs} +10 -4
  12. package/fesm2022/{wuic-framework-lib-workflow-designer.component-Bn6ocOVw.mjs → wuic-framework-lib-workflow-designer.component-CKFG_J6E.mjs} +29 -3
  13. package/fesm2022/{wuic-framework-lib-wuic-framework-lib-KFbUlRIT.mjs → wuic-framework-lib-wuic-framework-lib-WQiFu5aA.mjs} +2047 -489
  14. package/fesm2022/wuic-framework-lib.mjs +1 -1
  15. package/package.json +1 -1
  16. package/types/wuic-framework-lib.d.ts +448 -14
@@ -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-KFbUlRIT.mjs';
10
+ import { W as WtoolboxService, M as MetadataProviderService, U as UserInfoService, b as DataSourceComponent, I as ImportExportButtonComponent } from './wuic-framework-lib-wuic-framework-lib-WQiFu5aA.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
- return new Function('metaInfo', 'record', 'wtoolbox', expressionWrapper);
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
- return new Function('metaInfo', 'record', 'wtoolbox', blockWrapper);
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-AFm6hAX4.mjs.map
3883
+ //# sourceMappingURL=wuic-framework-lib-spreadsheet-list-sf.component-CRg47ux6.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-KFbUlRIT.mjs';
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-WQiFu5aA.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
- const graph = this.parseMaybeJson(graphJson) || {};
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-Bn6ocOVw.mjs.map
5094
+ //# sourceMappingURL=wuic-framework-lib-workflow-designer.component-CKFG_J6E.mjs.map