wuic-framework-lib 1.2.1 → 1.3.2

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-B1V8Q-Qq.mjs → wuic-framework-lib-chart-list.component-DAP-TPJR.mjs} +2 -2
  2. package/fesm2022/{wuic-framework-lib-code-editor.component-4N95qt3D.mjs → wuic-framework-lib-code-editor.component-CLMDvOWs.mjs} +59 -2
  3. package/fesm2022/{wuic-framework-lib-designer.component-pW1YK-oY.mjs → wuic-framework-lib-designer.component-DA7abiLW.mjs} +1063 -18
  4. package/fesm2022/{wuic-framework-lib-first-run-wizard.component-CaGePYLi.mjs → wuic-framework-lib-first-run-wizard.component-BLrUrfZ9.mjs} +83 -97
  5. package/fesm2022/{wuic-framework-lib-framework-docs.component-m0IlS0Sl.mjs → wuic-framework-lib-framework-docs.component-DphKhTef.mjs} +3733 -344
  6. package/fesm2022/{wuic-framework-lib-pivot-builder.component-VIs0CIH_.mjs → wuic-framework-lib-pivot-builder.component-BqUUwrJM.mjs} +5 -5
  7. package/fesm2022/{wuic-framework-lib-prompt-dialog-fallback-host.component-Dm9GTZ07.mjs → wuic-framework-lib-prompt-dialog-fallback-host.component-DZrhwMH5.mjs} +2 -2
  8. package/fesm2022/{wuic-framework-lib-report-designer.component-FiAwNkPM.mjs → wuic-framework-lib-report-designer.component-D_qbefud.mjs} +2 -2
  9. package/fesm2022/{wuic-framework-lib-report-viewer.component-DY0dGMrt.mjs → wuic-framework-lib-report-viewer.component-CIN2fY0P.mjs} +2 -2
  10. package/fesm2022/{wuic-framework-lib-scheduler-list.component-3E5m-9Qd.mjs → wuic-framework-lib-scheduler-list.component-CdcI1Uor.mjs} +2 -2
  11. package/fesm2022/{wuic-framework-lib-spreadsheet-list-sf.component-D9P9WbDl.mjs → wuic-framework-lib-spreadsheet-list-sf.component-j1HTRI_P.mjs} +2 -2
  12. package/fesm2022/{wuic-framework-lib-workflow-designer.component-4RC2EkGA.mjs → wuic-framework-lib-workflow-designer.component-SE_7ZogW.mjs} +2 -2
  13. package/fesm2022/{wuic-framework-lib-wuic-framework-lib-BSyGhpM1.mjs → wuic-framework-lib-wuic-framework-lib-BRujEwpR.mjs} +2252 -156
  14. package/fesm2022/wuic-framework-lib.mjs +1 -1
  15. package/package.json +1 -1
  16. package/types/wuic-framework-lib.d.ts +852 -13
@@ -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-BSyGhpM1.mjs';
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-BRujEwpR.mjs';
5
5
  import * as i5 from 'primeng/chart';
6
6
  import { ChartModule } from 'primeng/chart';
7
7
  import * as i8 from '@ngx-translate/core';
@@ -1377,4 +1377,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
1377
1377
  }] } });
1378
1378
 
1379
1379
  export { ChartListComponent };
1380
- //# sourceMappingURL=wuic-framework-lib-chart-list.component-B1V8Q-Qq.mjs.map
1380
+ //# sourceMappingURL=wuic-framework-lib-chart-list.component-DAP-TPJR.mjs.map
@@ -6,7 +6,7 @@ import * as i1 from '@materia-ui/ngx-monaco-editor';
6
6
  import { MonacoEditorModule } from '@materia-ui/ngx-monaco-editor';
7
7
  import { filter, take } from 'rxjs/operators';
8
8
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event';
9
- import { W as WtoolboxService, M as MetadataProviderService, e as MetadatiColonna, m as MetaInfo, U as UserInfoService, f as DataProviderService } from './wuic-framework-lib-wuic-framework-lib-BSyGhpM1.mjs';
9
+ import { W as WtoolboxService, M as MetadataProviderService, e as MetadatiColonna, m as MetaInfo, U as UserInfoService, f as DataProviderService } from './wuic-framework-lib-wuic-framework-lib-BRujEwpR.mjs';
10
10
  import { NgClass, NgStyle } from '@angular/common';
11
11
  import * as i14 from 'primeng/contextmenu';
12
12
  import { ContextMenuModule } from 'primeng/contextmenu';
@@ -2256,6 +2256,45 @@ class EditorOptions {
2256
2256
  // import { editor } from 'monaco-editor';
2257
2257
  // import { LinkedList } from 'monaco-editor/esm/vs/base/common/linkedList';
2258
2258
  // import { MenuId, MenuRegistry } from 'monaco-editor/esm/vs/platform/actions/common/actions';
2259
+ /**
2260
+ * Stub ambient delle classi rxjs core iniettato in Monaco come extra-lib.
2261
+ *
2262
+ * Perche' serve: i campi del `record` nel formula editor sono tipati
2263
+ * `BehaviorSubject<T>`, ma (1) il bundle `wuic-framework-lib.d.ts` IMPORTA
2264
+ * `BehaviorSubject` da 'rxjs' senza includerne la definizione, e (2)
2265
+ * `registerTSProvider` strippa tutte le righe `import ...` prima di passare le lib
2266
+ * a Monaco. Risultato: `BehaviorSubject` resta un tipo NON risolto -> Monaco ne
2267
+ * conosce il nome (hover) ma non i membri -> niente autocomplete di `.next()`,
2268
+ * `.value`, `.getValue()`, `.subscribe()` dopo `record.<colonna>.`.
2269
+ *
2270
+ * Questo stub dichiara globalmente la gerarchia minima (Observable -> Subject ->
2271
+ * BehaviorSubject + Subscription) col sottoinsieme di membri rilevante per le
2272
+ * formule, cosi' l'IntelliSense suggerisce i metodi corretti. Non e' filtrato
2273
+ * dallo strip degli `import` (viene aggiunto direttamente a `extraLibs`).
2274
+ */
2275
+ const RXJS_AMBIENT_DTS = `
2276
+ declare class Subscription {
2277
+ unsubscribe(): void;
2278
+ add(teardown: any): void;
2279
+ closed: boolean;
2280
+ }
2281
+ declare class Observable<T> {
2282
+ subscribe(next?: (value: T) => void, error?: (err: any) => void, complete?: () => void): Subscription;
2283
+ pipe(...operations: any[]): Observable<any>;
2284
+ toPromise(): Promise<T>;
2285
+ }
2286
+ declare class Subject<T> extends Observable<T> {
2287
+ next(value: T): void;
2288
+ error(err: any): void;
2289
+ complete(): void;
2290
+ asObservable(): Observable<T>;
2291
+ }
2292
+ declare class BehaviorSubject<T> extends Subject<T> {
2293
+ constructor(value: T);
2294
+ readonly value: T;
2295
+ getValue(): T;
2296
+ }
2297
+ `;
2259
2298
  class TSProvider {
2260
2299
  http;
2261
2300
  previousStatements;
@@ -2362,6 +2401,19 @@ class TSProvider {
2362
2401
  }
2363
2402
  }
2364
2403
  monaco.languages.typescript.typescriptDefaults.setCompilerOptions(compilerOptions);
2404
+ // Silenzia i diagnostic TS che sono "falsi positivi" in questi editor di
2405
+ // formula: l'utente edita il CORPO della funzione (es. `return record.x.value;`)
2406
+ // mentre il wrapper `(metaInfo, record, datasource, wtoolbox) => { ... }` viene
2407
+ // aggiunto a runtime. Senza questo, Monaco segnala errori innocui:
2408
+ // 1108 = "A 'return' statement can only be used within a function body"
2409
+ // 1375 = "'await' expressions are only allowed within async functions..."
2410
+ // 1378 = "Top-level 'await' expressions are only allowed when 'module'..."
2411
+ // La validazione (sintattica + semantica) resta ATTIVA per gli errori reali.
2412
+ monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions({
2413
+ noSemanticValidation: false,
2414
+ noSyntaxValidation: false,
2415
+ diagnosticCodesToIgnore: [1108, 1375, 1378],
2416
+ });
2365
2417
  // //esportare i tipi usando angular.json (riduci i file esportati alle cartelle ...)
2366
2418
  // // "assets": [
2367
2419
  // // ....
@@ -2474,6 +2526,11 @@ class TSProvider {
2474
2526
  let newtext = parsedLines.join('\n');
2475
2527
  extraLibs.push({ content: newtext });
2476
2528
  });
2529
+ // Stub rxjs ambient: rende risolvibili i membri di BehaviorSubject
2530
+ // (next/value/getValue/subscribe) nelle formule -> autocomplete su
2531
+ // `record.<colonna>.`. Va aggiunto allo STESSO set passato a
2532
+ // setExtraLibs (che rimpiazza tutte le extra-lib precedenti).
2533
+ extraLibs.unshift({ content: RXJS_AMBIENT_DTS });
2477
2534
  monaco.languages.typescript.typescriptDefaults.setExtraLibs(extraLibs);
2478
2535
  });
2479
2536
  }
@@ -3939,4 +3996,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
3939
3996
  }] } });
3940
3997
 
3941
3998
  export { CodeEditorComponent };
3942
- //# sourceMappingURL=wuic-framework-lib-code-editor.component-4N95qt3D.mjs.map
3999
+ //# sourceMappingURL=wuic-framework-lib-code-editor.component-CLMDvOWs.mjs.map