wuic-framework-lib 1.5.0 → 1.7.0
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-0J1ghIrS.mjs → wuic-framework-lib-chart-list.component-Bl424n7x.mjs} +50 -38
- package/fesm2022/{wuic-framework-lib-code-editor.component-C21mvjyr.mjs → wuic-framework-lib-code-editor.component-N6HMl2mf.mjs} +174 -274
- package/fesm2022/{wuic-framework-lib-designer.component-x10ZzUEy.mjs → wuic-framework-lib-designer.component-Bd2fwl6H.mjs} +499 -581
- package/fesm2022/{wuic-framework-lib-first-run-wizard.component-BuSxs_CM.mjs → wuic-framework-lib-first-run-wizard.component-NN6cWVHL.mjs} +22 -24
- package/fesm2022/{wuic-framework-lib-framework-docs.component-xTGLbEnp.mjs → wuic-framework-lib-framework-docs.component-B867JAYe.mjs} +2912 -294
- package/fesm2022/{wuic-framework-lib-pivot-builder.component-BkFFjPm4.mjs → wuic-framework-lib-pivot-builder.component-DWukH0L-.mjs} +580 -68
- package/fesm2022/{wuic-framework-lib-prompt-dialog-fallback-host.component-Bi-TrJB6.mjs → wuic-framework-lib-prompt-dialog-fallback-host.component-DWO1Rcgv.mjs} +2 -2
- package/fesm2022/wuic-framework-lib-report-designer.component-QcrU81m6.mjs +380 -0
- package/fesm2022/wuic-framework-lib-report-scaffold-dialog.component-U-zdOoRV.mjs +431 -0
- package/fesm2022/{wuic-framework-lib-report-viewer.component-BR-BfI2r.mjs → wuic-framework-lib-report-viewer.component-B4LhA3SL.mjs} +8 -13
- package/fesm2022/{wuic-framework-lib-scene3d-designer.component-BQzFxSXP.mjs → wuic-framework-lib-scene3d-designer.component-DjOfzKLo.mjs} +323 -88
- package/fesm2022/{wuic-framework-lib-scene3d-light-baker-gpu-0LjqhSNn.mjs → wuic-framework-lib-scene3d-light-baker-gpu-C96T9uIW.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-scene3d-shader-effect-CQLWkuh1.mjs → wuic-framework-lib-scene3d-shader-effect-DjHyCAFK.mjs} +612 -32
- package/fesm2022/{wuic-framework-lib-scene3d-viewer.component-imoV3HOs.mjs → wuic-framework-lib-scene3d-viewer.component-Dboz1fjl.mjs} +149 -18
- package/fesm2022/{wuic-framework-lib-scheduler-list.component-xzlTEkoq.mjs → wuic-framework-lib-scheduler-list.component--wY21R3o.mjs} +169 -53
- package/fesm2022/{wuic-framework-lib-spreadsheet-list-sf.component-CrS6fOGj.mjs → wuic-framework-lib-spreadsheet-list-sf.component-Ek30J8v-.mjs} +149 -108
- package/fesm2022/{wuic-framework-lib-stimulsoft-license.service-BIyxB4pO.mjs → wuic-framework-lib-stimulsoft-license.service-CsNNSFYs.mjs} +3 -3
- package/fesm2022/wuic-framework-lib-timeline-list.component-aqCH4P0G.mjs +805 -0
- package/fesm2022/{wuic-framework-lib-workflow-designer.component-5xtQ7-6z.mjs → wuic-framework-lib-workflow-designer.component-DMM8BeXm.mjs} +180 -150
- package/fesm2022/{wuic-framework-lib-wuic-framework-lib-3TZ-j-yL.mjs → wuic-framework-lib-wuic-framework-lib-dfLTqam5.mjs} +6761 -2347
- package/fesm2022/wuic-framework-lib.mjs +1 -1
- package/package.json +4 -2
- package/styles/_wuic-tokens.scss +82 -0
- package/styles/styles.scss +160 -0
- package/types/wuic-framework-lib.d.ts +4264 -2691
- package/fesm2022/wuic-framework-lib-report-designer.component-ZvB46-LV.mjs +0 -194
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewChild, Component } from '@angular/core';
|
|
3
|
-
import { W as WtoolboxService, M as MetadataProviderService } from './wuic-framework-lib-wuic-framework-lib-3TZ-j-yL.mjs';
|
|
4
|
-
import * as i3 from 'stimulsoft-designer-angular';
|
|
5
|
-
import { StimulsoftDesignerModule, StimulsoftDesignerComponent } from 'stimulsoft-designer-angular';
|
|
6
|
-
import * as i1 from '@angular/router';
|
|
7
|
-
import { NavigationEnd } from '@angular/router';
|
|
8
|
-
import { e as ensureWuicStimulsoftLicenseRegistered } from './wuic-framework-lib-stimulsoft-license.service-BIyxB4pO.mjs';
|
|
9
|
-
|
|
10
|
-
class ReportDesignerComponent {
|
|
11
|
-
router;
|
|
12
|
-
aRoute;
|
|
13
|
-
metaSrv;
|
|
14
|
-
/**
|
|
15
|
-
* Vedi commento equivalente in `report-viewer.component.ts`: registra la
|
|
16
|
-
* Stimulsoft license al primo mount del designer (lazy-load del chunk
|
|
17
|
-
* `stimulsoft-reports-js` che pesa ~5.4 MB / 12.7 MB raw).
|
|
18
|
-
*/
|
|
19
|
-
ngOnInit() {
|
|
20
|
-
void ensureWuicStimulsoftLicenseRegistered();
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Riferimento a elementi o componenti figli usato dalla logica UI per designer.
|
|
24
|
-
*/
|
|
25
|
-
designer;
|
|
26
|
-
/**
|
|
27
|
-
* Proprieta di stato del componente per request url, usata dalla logica interna e dal template.
|
|
28
|
-
*/
|
|
29
|
-
requestUrl;
|
|
30
|
-
/**
|
|
31
|
-
* Proprieta di stato del componente per base request url, usata dalla logica interna e dal template.
|
|
32
|
-
*/
|
|
33
|
-
baseRequestUrl;
|
|
34
|
-
/**
|
|
35
|
-
* Proprieta di stato del componente per route, usata dalla logica interna e dal template.
|
|
36
|
-
*/
|
|
37
|
-
route;
|
|
38
|
-
/**
|
|
39
|
-
* Valore corrente selezionato per current report, usato dai flussi interattivi del componente.
|
|
40
|
-
*/
|
|
41
|
-
currentReport;
|
|
42
|
-
/**
|
|
43
|
-
* Proprieta di stato del componente per router events subscription, usata dalla logica interna e dal template.
|
|
44
|
-
*/
|
|
45
|
-
routerEventsSubscription;
|
|
46
|
-
/**
|
|
47
|
-
* Proprieta di stato del componente per designer bootstrap interval, usata dalla logica interna e dal template.
|
|
48
|
-
*/
|
|
49
|
-
designerBootstrapInterval;
|
|
50
|
-
reportCacheInvalidationTimer;
|
|
51
|
-
/**
|
|
52
|
-
* function Object() { [native code] }
|
|
53
|
-
* @param router Informazioni di routing usate per comporre o risolvere la navigazione.
|
|
54
|
-
* @param aRoute Informazioni di routing usate per comporre o risolvere la navigazione.
|
|
55
|
-
*/
|
|
56
|
-
constructor(router, aRoute, metaSrv) {
|
|
57
|
-
this.router = router;
|
|
58
|
-
this.aRoute = aRoute;
|
|
59
|
-
this.metaSrv = metaSrv;
|
|
60
|
-
this.baseRequestUrl = WtoolboxService.appSettings.api_url + 'ReportDesigner';
|
|
61
|
-
this.requestUrl = WtoolboxService.appSettings.api_url + 'ReportDesigner';
|
|
62
|
-
this.syncRequestUrl();
|
|
63
|
-
this.routerEventsSubscription = this.router.events.subscribe((val) => {
|
|
64
|
-
if (val instanceof NavigationEnd) {
|
|
65
|
-
this.syncRequestUrl();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Esegue operazioni di persistenza/sincronizzazione in `syncRequestUrl` allineando lo stato con parametri route/query.
|
|
71
|
-
*/
|
|
72
|
-
syncRequestUrl() {
|
|
73
|
-
this.route = this.aRoute.snapshot.paramMap.get('route');
|
|
74
|
-
const reportName = this.aRoute.snapshot.queryParamMap.get('reportName');
|
|
75
|
-
this.currentReport = reportName || '';
|
|
76
|
-
this.requestUrl = this.baseRequestUrl + '?route=' + this.route
|
|
77
|
-
+ (reportName ? '&reportName=' + encodeURIComponent(reportName) : '');
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Gestisce la logica di `fix` con il flusso specifico definito dalla sua implementazione.
|
|
81
|
-
*/
|
|
82
|
-
fix() {
|
|
83
|
-
let designer = this.designer;
|
|
84
|
-
debugger;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Completa inizializzazione dopo il rendering della view e collega riferimenti UI.
|
|
88
|
-
*
|
|
89
|
-
* NOTE: <stimulsoft-designer-angular> is now wrapped in @defer (on immediate)
|
|
90
|
-
* in the template — so the @ViewChild reference (`this.designer`) may not be
|
|
91
|
-
* resolved yet when ngAfterViewInit first fires. The bootstrap interval below
|
|
92
|
-
* already polls for readiness, but we guard the initial access too.
|
|
93
|
-
*/
|
|
94
|
-
ngAfterViewInit() {
|
|
95
|
-
let self = this;
|
|
96
|
-
this.designerBootstrapInterval = setInterval(() => {
|
|
97
|
-
if (!this.designer) {
|
|
98
|
-
return; // @defer block hasn't rendered yet
|
|
99
|
-
}
|
|
100
|
-
if (this.designer.designerEl?.nativeElement && this.designer.designerEl.nativeElement.style.height !== "100%") {
|
|
101
|
-
this.designer.designerEl.nativeElement.style.height = "100%";
|
|
102
|
-
}
|
|
103
|
-
if (this.designer.designer) {
|
|
104
|
-
if (this.designer.designerEl.nativeElement.getElementsByClassName("stiChildWorkPanel stiWorkPanelScrollContainer").length > 0) {
|
|
105
|
-
if (this.designer.designerEl.nativeElement.getElementsByClassName("stiChildWorkPanel stiWorkPanelScrollContainer")[0].getElementsByTagName("table").length > 0) {
|
|
106
|
-
if (this.designerBootstrapInterval) {
|
|
107
|
-
clearInterval(this.designerBootstrapInterval);
|
|
108
|
-
this.designerBootstrapInterval = undefined;
|
|
109
|
-
}
|
|
110
|
-
let tr = this.designer.designerEl.nativeElement.getElementsByClassName("stiChildWorkPanel stiWorkPanelScrollContainer")[0].getElementsByTagName("table")[0].getElementsByTagName("tr")[0];
|
|
111
|
-
let saveBtn = tr.children[0];
|
|
112
|
-
saveBtn.addEventListener("click", () => {
|
|
113
|
-
if (this.reportCacheInvalidationTimer) {
|
|
114
|
-
clearTimeout(this.reportCacheInvalidationTimer);
|
|
115
|
-
}
|
|
116
|
-
// Delay breve per lasciare al designer il tempo di completare la save lato backend.
|
|
117
|
-
this.reportCacheInvalidationTimer = setTimeout(() => {
|
|
118
|
-
this.metaSrv.invalidateReportListCache(this.route);
|
|
119
|
-
}, 400);
|
|
120
|
-
});
|
|
121
|
-
let cloned = saveBtn.cloneNode(true);
|
|
122
|
-
cloned.id = "saveAsBtn";
|
|
123
|
-
saveBtn.parentElement.prepend(cloned);
|
|
124
|
-
cloned.getElementsByTagName("table")[0].getElementsByTagName("tr")[2].getElementsByTagName("td")[0].innerText = "Save As";
|
|
125
|
-
setTimeout(() => {
|
|
126
|
-
cloned.className = "stiDesignerStandartBigButton stiDesignerStandartBigButton_Mouse stiDesignerStandartBigButtonDefault";
|
|
127
|
-
}, 200);
|
|
128
|
-
cloned.onclick = () => {
|
|
129
|
-
debugger;
|
|
130
|
-
//ask name -> save copy of current
|
|
131
|
-
//change requestUrl and reload
|
|
132
|
-
};
|
|
133
|
-
let td = document.createElement("td");
|
|
134
|
-
td.className = "stiDesignerClearAllStyles";
|
|
135
|
-
let div = document.createElement("div");
|
|
136
|
-
div.className = "stiDesignerGroupBlock";
|
|
137
|
-
let div2 = document.createElement("div");
|
|
138
|
-
div2.className = "stiDesignerGroupBlockContainer";
|
|
139
|
-
let formElement = document.createElement("select");
|
|
140
|
-
formElement.className = "stiDesignerTextBox stiDesignerTextBoxDefault";
|
|
141
|
-
let optionElement = document.createElement("option");
|
|
142
|
-
optionElement.value = "foo";
|
|
143
|
-
optionElement.text = "foo";
|
|
144
|
-
optionElement.selected = true;
|
|
145
|
-
formElement.appendChild(optionElement);
|
|
146
|
-
optionElement = document.createElement("option");
|
|
147
|
-
optionElement.value = "foo2";
|
|
148
|
-
optionElement.text = "foo2";
|
|
149
|
-
optionElement.selected = false;
|
|
150
|
-
formElement.appendChild(optionElement);
|
|
151
|
-
formElement.id = "bar";
|
|
152
|
-
td.appendChild(div);
|
|
153
|
-
div.appendChild(div2);
|
|
154
|
-
div2.appendChild(formElement);
|
|
155
|
-
formElement.onchange = () => {
|
|
156
|
-
debugger;
|
|
157
|
-
//set current report
|
|
158
|
-
self.currentReport = formElement.value;
|
|
159
|
-
//change requestUrl and reload
|
|
160
|
-
this.requestUrl = this.baseRequestUrl + '?route=' + this.route + '&reportName=' + self.currentReport;
|
|
161
|
-
};
|
|
162
|
-
tr.prepend(td);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}, 500);
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Rilascia risorse e sottoscrizioni per evitare leak e stati pendenti.
|
|
170
|
-
*/
|
|
171
|
-
ngOnDestroy() {
|
|
172
|
-
this.routerEventsSubscription?.unsubscribe();
|
|
173
|
-
if (this.designerBootstrapInterval) {
|
|
174
|
-
clearInterval(this.designerBootstrapInterval);
|
|
175
|
-
this.designerBootstrapInterval = undefined;
|
|
176
|
-
}
|
|
177
|
-
if (this.reportCacheInvalidationTimer) {
|
|
178
|
-
clearTimeout(this.reportCacheInvalidationTimer);
|
|
179
|
-
this.reportCacheInvalidationTimer = undefined;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReportDesignerComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: MetadataProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ReportDesignerComponent, isStandalone: true, selector: "wuic-report-designer", viewQueries: [{ propertyName: "designer", first: true, predicate: StimulsoftDesignerComponent, descendants: true }], ngImport: i0, template: "<!-- <button (click)=\"fix()\">Fix</button> -->\r\n@defer (on immediate) {\r\n <stimulsoft-designer-angular #designer [requestUrl]=\"requestUrl\" [width]=\"'100%'\"\r\n [height]=\"'100%'\"></stimulsoft-designer-angular>\r\n} @placeholder {\r\n <div class=\"stimulsoft-loading-placeholder\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n <span>Caricamento Report Designer\u2026</span>\r\n <small>Il SDK Stimulsoft \u00E8 in download (~16 MB). Operazione una tantum.</small>\r\n </div>\r\n} @loading (minimum 300ms) {\r\n <div class=\"stimulsoft-loading-placeholder\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n <span>Inizializzazione editor\u2026</span>\r\n </div>\r\n} @error {\r\n <div class=\"stimulsoft-error-placeholder\">\r\n <i class=\"pi pi-exclamation-triangle\"></i>\r\n <span>Errore nel caricamento del Report Designer. Verifica connessione e ricarica la pagina.</span>\r\n </div>\r\n}", styles: [":host{display:flex;width:100%;height:100%;min-height:0;flex:1 1 auto}:host ::ng-deep stimulsoft-designer-angular{display:block;width:100%;height:100%;min-height:0;flex:1 1 auto}:host ::ng-deep .stiDesignerMainPanel,:host ::ng-deep .stiDesignerMainPanel *{box-sizing:border-box}:host ::ng-deep .stiDesignerMainPanel{height:100%!important;min-height:0!important}.stimulsoft-loading-placeholder,.stimulsoft-error-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-height:400px;color:#64748b;font-size:1rem;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px}.stimulsoft-loading-placeholder .pi-spinner{font-size:2rem;color:#6366f1}.stimulsoft-loading-placeholder small{font-size:.8rem;color:#94a3b8;max-width:400px;text-align:center}.stimulsoft-error-placeholder{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.stimulsoft-error-placeholder .pi-exclamation-triangle{font-size:2rem}\n"], dependencies: [{ kind: "ngmodule", type: StimulsoftDesignerModule }], deferBlockDependencies: [() => [i3.StimulsoftDesignerComponent]] });
|
|
184
|
-
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReportDesignerComponent, decorators: [{
|
|
186
|
-
type: Component,
|
|
187
|
-
args: [{ selector: 'wuic-report-designer', imports: [StimulsoftDesignerModule], template: "<!-- <button (click)=\"fix()\">Fix</button> -->\r\n@defer (on immediate) {\r\n <stimulsoft-designer-angular #designer [requestUrl]=\"requestUrl\" [width]=\"'100%'\"\r\n [height]=\"'100%'\"></stimulsoft-designer-angular>\r\n} @placeholder {\r\n <div class=\"stimulsoft-loading-placeholder\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n <span>Caricamento Report Designer\u2026</span>\r\n <small>Il SDK Stimulsoft \u00E8 in download (~16 MB). Operazione una tantum.</small>\r\n </div>\r\n} @loading (minimum 300ms) {\r\n <div class=\"stimulsoft-loading-placeholder\">\r\n <i class=\"pi pi-spin pi-spinner\"></i>\r\n <span>Inizializzazione editor\u2026</span>\r\n </div>\r\n} @error {\r\n <div class=\"stimulsoft-error-placeholder\">\r\n <i class=\"pi pi-exclamation-triangle\"></i>\r\n <span>Errore nel caricamento del Report Designer. Verifica connessione e ricarica la pagina.</span>\r\n </div>\r\n}", styles: [":host{display:flex;width:100%;height:100%;min-height:0;flex:1 1 auto}:host ::ng-deep stimulsoft-designer-angular{display:block;width:100%;height:100%;min-height:0;flex:1 1 auto}:host ::ng-deep .stiDesignerMainPanel,:host ::ng-deep .stiDesignerMainPanel *{box-sizing:border-box}:host ::ng-deep .stiDesignerMainPanel{height:100%!important;min-height:0!important}.stimulsoft-loading-placeholder,.stimulsoft-error-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;height:100%;min-height:400px;color:#64748b;font-size:1rem;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px}.stimulsoft-loading-placeholder .pi-spinner{font-size:2rem;color:#6366f1}.stimulsoft-loading-placeholder small{font-size:.8rem;color:#94a3b8;max-width:400px;text-align:center}.stimulsoft-error-placeholder{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.stimulsoft-error-placeholder .pi-exclamation-triangle{font-size:2rem}\n"] }]
|
|
188
|
-
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: MetadataProviderService }], propDecorators: { designer: [{
|
|
189
|
-
type: ViewChild,
|
|
190
|
-
args: [StimulsoftDesignerComponent]
|
|
191
|
-
}] } });
|
|
192
|
-
|
|
193
|
-
export { ReportDesignerComponent };
|
|
194
|
-
//# sourceMappingURL=wuic-framework-lib-report-designer.component-ZvB46-LV.mjs.map
|