wuic-framework-lib 1.7.0 → 1.7.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.
- package/fesm2022/{wuic-framework-lib-chart-list.component-Bl424n7x.mjs → wuic-framework-lib-chart-list.component-MeAS47VV.mjs} +4 -4
- package/fesm2022/{wuic-framework-lib-code-editor.component-N6HMl2mf.mjs → wuic-framework-lib-code-editor.component-WtZC2MZC.mjs} +6 -6
- package/fesm2022/{wuic-framework-lib-designer.component-Bd2fwl6H.mjs → wuic-framework-lib-designer.component-Dt7Yz5hn.mjs} +12 -12
- package/fesm2022/{wuic-framework-lib-first-run-wizard.component-NN6cWVHL.mjs → wuic-framework-lib-first-run-wizard.component-C8nhy5yK.mjs} +349 -33
- package/fesm2022/{wuic-framework-lib-framework-docs.component-B867JAYe.mjs → wuic-framework-lib-framework-docs.component-CGsugPCx.mjs} +1426 -979
- package/fesm2022/{wuic-framework-lib-pivot-builder.component-DWukH0L-.mjs → wuic-framework-lib-pivot-builder.component-S5zqy3vj.mjs} +164 -164
- package/fesm2022/{wuic-framework-lib-prompt-dialog-fallback-host.component-DWO1Rcgv.mjs → wuic-framework-lib-prompt-dialog-fallback-host.component-VY-gtgRW.mjs} +28 -28
- package/fesm2022/{wuic-framework-lib-report-designer.component-QcrU81m6.mjs → wuic-framework-lib-report-designer.component-QRxxueU-.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-report-scaffold-dialog.component-U-zdOoRV.mjs → wuic-framework-lib-report-scaffold-dialog.component-OGdglGPw.mjs} +246 -246
- package/fesm2022/{wuic-framework-lib-report-viewer.component-B4LhA3SL.mjs → wuic-framework-lib-report-viewer.component-CuXw3e0j.mjs} +4 -4
- package/fesm2022/{wuic-framework-lib-scene3d-designer.component-DjOfzKLo.mjs → wuic-framework-lib-scene3d-designer.component-LhC0KzWO.mjs} +20 -20
- package/fesm2022/{wuic-framework-lib-scene3d-light-baker-gpu-C96T9uIW.mjs → wuic-framework-lib-scene3d-light-baker-gpu-B5ywsrSp.mjs} +2 -2
- package/fesm2022/{wuic-framework-lib-scene3d-shader-effect-DjHyCAFK.mjs → wuic-framework-lib-scene3d-shader-effect-gBEFKNvi.mjs} +18 -18
- package/fesm2022/{wuic-framework-lib-scene3d-viewer.component-Dboz1fjl.mjs → wuic-framework-lib-scene3d-viewer.component-DiDqJO-P.mjs} +5 -5
- package/fesm2022/{wuic-framework-lib-scheduler-list.component--wY21R3o.mjs → wuic-framework-lib-scheduler-list.component-5JbxIBdp.mjs} +4 -4
- package/fesm2022/{wuic-framework-lib-spreadsheet-list-sf.component-Ek30J8v-.mjs → wuic-framework-lib-spreadsheet-list-sf.component-Dxk5d9au.mjs} +47 -47
- package/fesm2022/{wuic-framework-lib-timeline-list.component-aqCH4P0G.mjs → wuic-framework-lib-timeline-list.component-B1ro-16J.mjs} +6 -6
- package/fesm2022/{wuic-framework-lib-workflow-designer.component-DMM8BeXm.mjs → wuic-framework-lib-workflow-designer.component-D32ZMxq2.mjs} +6 -6
- package/fesm2022/{wuic-framework-lib-wuic-framework-lib-dfLTqam5.mjs → wuic-framework-lib-wuic-framework-lib-81WUtxz8.mjs} +847 -823
- package/fesm2022/wuic-framework-lib.mjs +1 -1
- package/package.json +19 -2
- package/styles/_wuic-tokens.scss +82 -82
- package/types/wuic-framework-lib.d.ts +5 -0
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, Output, Input, Component } from '@angular/core';
|
|
3
3
|
import * as i2 from 'primeng/dialog';
|
|
4
4
|
import { DialogModule } from 'primeng/dialog';
|
|
5
|
-
import { f as ParametricDialogComponent } from './wuic-framework-lib-wuic-framework-lib-
|
|
5
|
+
import { f as ParametricDialogComponent } from './wuic-framework-lib-wuic-framework-lib-81WUtxz8.mjs';
|
|
6
6
|
|
|
7
7
|
class PromptDialogFallbackHostComponent {
|
|
8
8
|
datasource;
|
|
@@ -41,19 +41,19 @@ class PromptDialogFallbackHostComponent {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PromptDialogFallbackHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: PromptDialogFallbackHostComponent, isStandalone: true, selector: "wuic-prompt-dialog-fallback-host", inputs: { datasource: "datasource", header: "header", width: "width", height: "height", styleClass: "styleClass", position: "position", closable: "closable" }, outputs: { closed: "closed" }, ngImport: i0, template: `
|
|
45
|
-
<p-dialog
|
|
46
|
-
[header]="header"
|
|
47
|
-
[visible]="visible"
|
|
48
|
-
(visibleChange)="onVisibleChange($event)"
|
|
49
|
-
[modal]="true"
|
|
50
|
-
[closable]="closable"
|
|
51
|
-
[style]="dialogStyle"
|
|
52
|
-
[styleClass]="styleClass"
|
|
53
|
-
[position]="position"
|
|
54
|
-
>
|
|
55
|
-
<wuic-parametric-dialog [datasource]="datasource"></wuic-parametric-dialog>
|
|
56
|
-
</p-dialog>
|
|
44
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: PromptDialogFallbackHostComponent, isStandalone: true, selector: "wuic-prompt-dialog-fallback-host", inputs: { datasource: "datasource", header: "header", width: "width", height: "height", styleClass: "styleClass", position: "position", closable: "closable" }, outputs: { closed: "closed" }, ngImport: i0, template: `
|
|
45
|
+
<p-dialog
|
|
46
|
+
[header]="header"
|
|
47
|
+
[visible]="visible"
|
|
48
|
+
(visibleChange)="onVisibleChange($event)"
|
|
49
|
+
[modal]="true"
|
|
50
|
+
[closable]="closable"
|
|
51
|
+
[style]="dialogStyle"
|
|
52
|
+
[styleClass]="styleClass"
|
|
53
|
+
[position]="position"
|
|
54
|
+
>
|
|
55
|
+
<wuic-parametric-dialog [datasource]="datasource"></wuic-parametric-dialog>
|
|
56
|
+
</p-dialog>
|
|
57
57
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DialogModule }, { kind: "component", type: i2.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: ParametricDialogComponent, selector: "wuic-parametric-dialog", inputs: ["datasource", "hardcodedDatasource", "hideToolbar", "isWizard", "isEditForm", "readOnly"], outputs: ["onDialogDataBound", "onDialogTabChange", "onWizardStepChange", "onDialogCustomAction", "onDialogSubmit", "onDialogRollback", "onDialogCloseRequested", "onCustomAttributesSave"] }] });
|
|
58
58
|
}
|
|
59
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PromptDialogFallbackHostComponent, decorators: [{
|
|
@@ -62,19 +62,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
62
62
|
selector: 'wuic-prompt-dialog-fallback-host',
|
|
63
63
|
standalone: true,
|
|
64
64
|
imports: [DialogModule, ParametricDialogComponent],
|
|
65
|
-
template: `
|
|
66
|
-
<p-dialog
|
|
67
|
-
[header]="header"
|
|
68
|
-
[visible]="visible"
|
|
69
|
-
(visibleChange)="onVisibleChange($event)"
|
|
70
|
-
[modal]="true"
|
|
71
|
-
[closable]="closable"
|
|
72
|
-
[style]="dialogStyle"
|
|
73
|
-
[styleClass]="styleClass"
|
|
74
|
-
[position]="position"
|
|
75
|
-
>
|
|
76
|
-
<wuic-parametric-dialog [datasource]="datasource"></wuic-parametric-dialog>
|
|
77
|
-
</p-dialog>
|
|
65
|
+
template: `
|
|
66
|
+
<p-dialog
|
|
67
|
+
[header]="header"
|
|
68
|
+
[visible]="visible"
|
|
69
|
+
(visibleChange)="onVisibleChange($event)"
|
|
70
|
+
[modal]="true"
|
|
71
|
+
[closable]="closable"
|
|
72
|
+
[style]="dialogStyle"
|
|
73
|
+
[styleClass]="styleClass"
|
|
74
|
+
[position]="position"
|
|
75
|
+
>
|
|
76
|
+
<wuic-parametric-dialog [datasource]="datasource"></wuic-parametric-dialog>
|
|
77
|
+
</p-dialog>
|
|
78
78
|
`
|
|
79
79
|
}]
|
|
80
80
|
}], propDecorators: { datasource: [{
|
|
@@ -96,4 +96,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
96
96
|
}] } });
|
|
97
97
|
|
|
98
98
|
export { PromptDialogFallbackHostComponent };
|
|
99
|
-
//# sourceMappingURL=wuic-framework-lib-prompt-dialog-fallback-host.component-
|
|
99
|
+
//# sourceMappingURL=wuic-framework-lib-prompt-dialog-fallback-host.component-VY-gtgRW.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ViewChild, Component } from '@angular/core';
|
|
3
|
-
import { W as WtoolboxService, M as MetadataProviderService, C as ChatbotHostRegistryService } from './wuic-framework-lib-wuic-framework-lib-
|
|
3
|
+
import { W as WtoolboxService, M as MetadataProviderService, C as ChatbotHostRegistryService } from './wuic-framework-lib-wuic-framework-lib-81WUtxz8.mjs';
|
|
4
4
|
import * as i4 from 'stimulsoft-designer-angular';
|
|
5
5
|
import { StimulsoftDesignerModule, StimulsoftDesignerComponent } from 'stimulsoft-designer-angular';
|
|
6
6
|
import * as i1 from '@angular/router';
|
|
@@ -377,4 +377,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
377
377
|
}] } });
|
|
378
378
|
|
|
379
379
|
export { ReportDesignerComponent };
|
|
380
|
-
//# sourceMappingURL=wuic-framework-lib-report-designer.component-
|
|
380
|
+
//# sourceMappingURL=wuic-framework-lib-report-designer.component-QRxxueU-.mjs.map
|
|
@@ -13,7 +13,7 @@ import * as i6 from 'primeng/radiobutton';
|
|
|
13
13
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
14
14
|
import * as i5$1 from 'primeng/select';
|
|
15
15
|
import { SelectModule } from 'primeng/select';
|
|
16
|
-
import { W as WtoolboxService } from './wuic-framework-lib-wuic-framework-lib-
|
|
16
|
+
import { W as WtoolboxService } from './wuic-framework-lib-wuic-framework-lib-81WUtxz8.mjs';
|
|
17
17
|
import * as i1 from 'primeng/dynamicdialog';
|
|
18
18
|
import * as i1$1 from '@angular/common/http';
|
|
19
19
|
|
|
@@ -176,256 +176,256 @@ class ReportScaffoldDialogComponent {
|
|
|
176
176
|
this.ref.close({ template: this.template, config });
|
|
177
177
|
}
|
|
178
178
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReportScaffoldDialogComponent, deps: [{ token: i1.DynamicDialogRef }, { token: i1.DynamicDialogConfig }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
179
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ReportScaffoldDialogComponent, isStandalone: true, selector: "wuic-report-scaffold-dialog", ngImport: i0, template: `
|
|
180
|
-
<div class="rsd-section">
|
|
181
|
-
<h4>{{ 'report.scaffold.template_label' | translate }}</h4>
|
|
182
|
-
<div class="rsd-templates">
|
|
183
|
-
@for (t of templates; track t.value) {
|
|
184
|
-
<div class="rsd-template-row">
|
|
185
|
-
<p-radioButton [inputId]="'rsd-t-' + t.value" name="rsdTemplate" [value]="t.value" [(ngModel)]="template" />
|
|
186
|
-
<label [for]="'rsd-t-' + t.value">
|
|
187
|
-
<b>{{ t.labelKey | translate }}</b>
|
|
188
|
-
<div class="rsd-template-desc">{{ t.descKey | translate }}</div>
|
|
189
|
-
</label>
|
|
190
|
-
</div>
|
|
191
|
-
}
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
|
|
195
|
-
@if (template === 'bands') {
|
|
196
|
-
<div class="rsd-section">
|
|
197
|
-
<h4>{{ 'report.scaffold.columns_label' | translate }}</h4>
|
|
198
|
-
<div class="rsd-columns">
|
|
199
|
-
@for (col of mainColumns; track col.name) {
|
|
200
|
-
<div class="rsd-col-row">
|
|
201
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-c-' + col.name" />
|
|
202
|
-
<label [for]="'rsd-c-' + col.name" class="rsd-col-label" [title]="col.name">{{ col.label }}</label>
|
|
203
|
-
</div>
|
|
204
|
-
}
|
|
205
|
-
</div>
|
|
206
|
-
|
|
207
|
-
@if (childRoutes.length) {
|
|
208
|
-
<h4 style="margin-top: .75rem">{{ 'report.scaffold.child_routes_label' | translate }}</h4>
|
|
209
|
-
@for (child of childRoutes; track child.route) {
|
|
210
|
-
<div class="rsd-child">
|
|
211
|
-
<div class="rsd-child-header">
|
|
212
|
-
<p-checkbox [binary]="true" [ngModel]="child.checked" (ngModelChange)="onChildToggle(child, $event)"
|
|
213
|
-
[inputId]="'rsd-ch-' + child.route" />
|
|
214
|
-
<label [for]="'rsd-ch-' + child.route">{{ child.route }}</label>
|
|
215
|
-
</div>
|
|
216
|
-
@if (child.checked) {
|
|
217
|
-
@if (child.loading) {
|
|
218
|
-
<div class="rsd-loading">{{ 'loading' | translate }}</div>
|
|
219
|
-
} @else {
|
|
220
|
-
<div class="rsd-columns" style="margin-top: .4rem">
|
|
221
|
-
@for (col of child.columns; track col.name) {
|
|
222
|
-
<div class="rsd-col-row">
|
|
223
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-cc-' + child.route + '-' + col.name" />
|
|
224
|
-
<label [for]="'rsd-cc-' + child.route + '-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
225
|
-
</div>
|
|
226
|
-
}
|
|
227
|
-
</div>
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
</div>
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
</div>
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
@if (template === 'crosstab') {
|
|
237
|
-
<div class="rsd-section">
|
|
238
|
-
<div class="rsd-field">
|
|
239
|
-
<label>{{ 'report.scaffold.rows_label' | translate }}</label>
|
|
240
|
-
<div class="rsd-columns">
|
|
241
|
-
@for (col of mainColumns; track col.name) {
|
|
242
|
-
<div class="rsd-col-row">
|
|
243
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-r-' + col.name" />
|
|
244
|
-
<label [for]="'rsd-r-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
245
|
-
</div>
|
|
246
|
-
}
|
|
247
|
-
</div>
|
|
248
|
-
</div>
|
|
249
|
-
<div class="rsd-field">
|
|
250
|
-
<label>{{ 'report.scaffold.column_label' | translate }}</label>
|
|
251
|
-
<p-select [options]="allColumnOptions" [(ngModel)]="crosstabColumn" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
252
|
-
</div>
|
|
253
|
-
<div class="rsd-field">
|
|
254
|
-
<label>{{ 'report.scaffold.value_label' | translate }}</label>
|
|
255
|
-
<p-select [options]="valueColumnOptions" [(ngModel)]="crosstabValue" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
256
|
-
</div>
|
|
257
|
-
<div class="rsd-field">
|
|
258
|
-
<label>{{ 'report.scaffold.aggregation_label' | translate }}</label>
|
|
259
|
-
<p-select [options]="aggregations" [(ngModel)]="crosstabAggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
260
|
-
</div>
|
|
261
|
-
</div>
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
@if (template === 'crossgroup') {
|
|
265
|
-
<div class="rsd-section">
|
|
266
|
-
<div class="rsd-field">
|
|
267
|
-
<label>{{ 'report.scaffold.group_by_label' | translate }}</label>
|
|
268
|
-
<p-select [options]="allColumnOptions" [(ngModel)]="groupBy" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
269
|
-
</div>
|
|
270
|
-
<div class="rsd-field">
|
|
271
|
-
<label>{{ 'report.scaffold.detail_columns_label' | translate }}</label>
|
|
272
|
-
<div class="rsd-columns">
|
|
273
|
-
@for (col of mainColumns; track col.name) {
|
|
274
|
-
<div class="rsd-col-row">
|
|
275
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-d-' + col.name" />
|
|
276
|
-
<label [for]="'rsd-d-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
277
|
-
</div>
|
|
278
|
-
}
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
<div class="rsd-field">
|
|
282
|
-
<label>{{ 'report.scaffold.totals_label' | translate }}</label>
|
|
283
|
-
@for (total of totals; track $index) {
|
|
284
|
-
<div class="rsd-total-row">
|
|
285
|
-
<p-select [options]="valueColumnOptions" [(ngModel)]="total.column" optionLabel="label" optionValue="name" appendTo="body" />
|
|
286
|
-
<p-select [options]="aggregations" [(ngModel)]="total.aggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
287
|
-
<p-button icon="pi pi-times" [text]="true" severity="danger" (onClick)="removeTotal($index)" />
|
|
288
|
-
</div>
|
|
289
|
-
}
|
|
290
|
-
<div class="rsd-total-row">
|
|
291
|
-
<p-button icon="pi pi-plus" [outlined]="true" size="small" (onClick)="addTotal()" [disabled]="!valueColumnOptions.length" />
|
|
292
|
-
</div>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
<div class="rsd-footer">
|
|
298
|
-
<p-button [label]="'Cancel' | translate" [outlined]="true" (onClick)="cancel()" />
|
|
299
|
-
<p-button [label]="'report.scaffold.create_button' | translate" [disabled]="!isValid()" (onClick)="confirm()" />
|
|
300
|
-
</div>
|
|
179
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ReportScaffoldDialogComponent, isStandalone: true, selector: "wuic-report-scaffold-dialog", ngImport: i0, template: `
|
|
180
|
+
<div class="rsd-section">
|
|
181
|
+
<h4>{{ 'report.scaffold.template_label' | translate }}</h4>
|
|
182
|
+
<div class="rsd-templates">
|
|
183
|
+
@for (t of templates; track t.value) {
|
|
184
|
+
<div class="rsd-template-row">
|
|
185
|
+
<p-radioButton [inputId]="'rsd-t-' + t.value" name="rsdTemplate" [value]="t.value" [(ngModel)]="template" />
|
|
186
|
+
<label [for]="'rsd-t-' + t.value">
|
|
187
|
+
<b>{{ t.labelKey | translate }}</b>
|
|
188
|
+
<div class="rsd-template-desc">{{ t.descKey | translate }}</div>
|
|
189
|
+
</label>
|
|
190
|
+
</div>
|
|
191
|
+
}
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
@if (template === 'bands') {
|
|
196
|
+
<div class="rsd-section">
|
|
197
|
+
<h4>{{ 'report.scaffold.columns_label' | translate }}</h4>
|
|
198
|
+
<div class="rsd-columns">
|
|
199
|
+
@for (col of mainColumns; track col.name) {
|
|
200
|
+
<div class="rsd-col-row">
|
|
201
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-c-' + col.name" />
|
|
202
|
+
<label [for]="'rsd-c-' + col.name" class="rsd-col-label" [title]="col.name">{{ col.label }}</label>
|
|
203
|
+
</div>
|
|
204
|
+
}
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
@if (childRoutes.length) {
|
|
208
|
+
<h4 style="margin-top: .75rem">{{ 'report.scaffold.child_routes_label' | translate }}</h4>
|
|
209
|
+
@for (child of childRoutes; track child.route) {
|
|
210
|
+
<div class="rsd-child">
|
|
211
|
+
<div class="rsd-child-header">
|
|
212
|
+
<p-checkbox [binary]="true" [ngModel]="child.checked" (ngModelChange)="onChildToggle(child, $event)"
|
|
213
|
+
[inputId]="'rsd-ch-' + child.route" />
|
|
214
|
+
<label [for]="'rsd-ch-' + child.route">{{ child.route }}</label>
|
|
215
|
+
</div>
|
|
216
|
+
@if (child.checked) {
|
|
217
|
+
@if (child.loading) {
|
|
218
|
+
<div class="rsd-loading">{{ 'loading' | translate }}</div>
|
|
219
|
+
} @else {
|
|
220
|
+
<div class="rsd-columns" style="margin-top: .4rem">
|
|
221
|
+
@for (col of child.columns; track col.name) {
|
|
222
|
+
<div class="rsd-col-row">
|
|
223
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-cc-' + child.route + '-' + col.name" />
|
|
224
|
+
<label [for]="'rsd-cc-' + child.route + '-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
225
|
+
</div>
|
|
226
|
+
}
|
|
227
|
+
</div>
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
</div>
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
</div>
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@if (template === 'crosstab') {
|
|
237
|
+
<div class="rsd-section">
|
|
238
|
+
<div class="rsd-field">
|
|
239
|
+
<label>{{ 'report.scaffold.rows_label' | translate }}</label>
|
|
240
|
+
<div class="rsd-columns">
|
|
241
|
+
@for (col of mainColumns; track col.name) {
|
|
242
|
+
<div class="rsd-col-row">
|
|
243
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-r-' + col.name" />
|
|
244
|
+
<label [for]="'rsd-r-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
245
|
+
</div>
|
|
246
|
+
}
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="rsd-field">
|
|
250
|
+
<label>{{ 'report.scaffold.column_label' | translate }}</label>
|
|
251
|
+
<p-select [options]="allColumnOptions" [(ngModel)]="crosstabColumn" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
252
|
+
</div>
|
|
253
|
+
<div class="rsd-field">
|
|
254
|
+
<label>{{ 'report.scaffold.value_label' | translate }}</label>
|
|
255
|
+
<p-select [options]="valueColumnOptions" [(ngModel)]="crosstabValue" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
256
|
+
</div>
|
|
257
|
+
<div class="rsd-field">
|
|
258
|
+
<label>{{ 'report.scaffold.aggregation_label' | translate }}</label>
|
|
259
|
+
<p-select [options]="aggregations" [(ngModel)]="crosstabAggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@if (template === 'crossgroup') {
|
|
265
|
+
<div class="rsd-section">
|
|
266
|
+
<div class="rsd-field">
|
|
267
|
+
<label>{{ 'report.scaffold.group_by_label' | translate }}</label>
|
|
268
|
+
<p-select [options]="allColumnOptions" [(ngModel)]="groupBy" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
269
|
+
</div>
|
|
270
|
+
<div class="rsd-field">
|
|
271
|
+
<label>{{ 'report.scaffold.detail_columns_label' | translate }}</label>
|
|
272
|
+
<div class="rsd-columns">
|
|
273
|
+
@for (col of mainColumns; track col.name) {
|
|
274
|
+
<div class="rsd-col-row">
|
|
275
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-d-' + col.name" />
|
|
276
|
+
<label [for]="'rsd-d-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
277
|
+
</div>
|
|
278
|
+
}
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
<div class="rsd-field">
|
|
282
|
+
<label>{{ 'report.scaffold.totals_label' | translate }}</label>
|
|
283
|
+
@for (total of totals; track $index) {
|
|
284
|
+
<div class="rsd-total-row">
|
|
285
|
+
<p-select [options]="valueColumnOptions" [(ngModel)]="total.column" optionLabel="label" optionValue="name" appendTo="body" />
|
|
286
|
+
<p-select [options]="aggregations" [(ngModel)]="total.aggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
287
|
+
<p-button icon="pi pi-times" [text]="true" severity="danger" (onClick)="removeTotal($index)" />
|
|
288
|
+
</div>
|
|
289
|
+
}
|
|
290
|
+
<div class="rsd-total-row">
|
|
291
|
+
<p-button icon="pi pi-plus" [outlined]="true" size="small" (onClick)="addTotal()" [disabled]="!valueColumnOptions.length" />
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
<div class="rsd-footer">
|
|
298
|
+
<p-button [label]="'Cancel' | translate" [outlined]="true" (onClick)="cancel()" />
|
|
299
|
+
<p-button [label]="'report.scaffold.create_button' | translate" [disabled]="!isValid()" (onClick)="confirm()" />
|
|
300
|
+
</div>
|
|
301
301
|
`, isInline: true, styles: [":host{display:block}.rsd-section{margin-bottom:1rem}.rsd-templates{display:flex;flex-direction:column;gap:.5rem}.rsd-template-row{display:flex;align-items:flex-start;gap:.5rem}.rsd-template-desc{font-size:.8rem;opacity:.7}.rsd-columns{max-height:220px;overflow-y:auto;border:1px solid var(--p-content-border-color, #e2e8f0);border-radius:6px;padding:.5rem}.rsd-col-row{display:flex;align-items:center;gap:.5rem;padding:.15rem 0}.rsd-col-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rsd-child{border:1px solid var(--p-content-border-color, #e2e8f0);border-radius:6px;padding:.5rem;margin-top:.5rem}.rsd-child-header{display:flex;align-items:center;gap:.5rem;font-weight:600}.rsd-field{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.75rem}.rsd-field label{font-size:.8rem;opacity:.75}.rsd-total-row{display:flex;align-items:center;gap:.5rem;margin-top:.35rem}.rsd-footer{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.rsd-loading{font-style:italic;opacity:.7;padding:.25rem 0}h4{margin:0 0 .5rem}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i4.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i5.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: RadioButtonModule }, { kind: "component", type: i6.RadioButton, selector: "p-radioButton, p-radiobutton, p-radio-button", inputs: ["value", "tabindex", "inputId", "ariaLabelledBy", "ariaLabel", "styleClass", "autofocus", "binary", "variant", "size"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i5$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo", "motionOptions"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] });
|
|
302
302
|
}
|
|
303
303
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReportScaffoldDialogComponent, decorators: [{
|
|
304
304
|
type: Component,
|
|
305
|
-
args: [{ selector: 'wuic-report-scaffold-dialog', standalone: true, imports: [ButtonModule, CheckboxModule, CommonModule, FormsModule, RadioButtonModule, SelectModule, TranslateModule], template: `
|
|
306
|
-
<div class="rsd-section">
|
|
307
|
-
<h4>{{ 'report.scaffold.template_label' | translate }}</h4>
|
|
308
|
-
<div class="rsd-templates">
|
|
309
|
-
@for (t of templates; track t.value) {
|
|
310
|
-
<div class="rsd-template-row">
|
|
311
|
-
<p-radioButton [inputId]="'rsd-t-' + t.value" name="rsdTemplate" [value]="t.value" [(ngModel)]="template" />
|
|
312
|
-
<label [for]="'rsd-t-' + t.value">
|
|
313
|
-
<b>{{ t.labelKey | translate }}</b>
|
|
314
|
-
<div class="rsd-template-desc">{{ t.descKey | translate }}</div>
|
|
315
|
-
</label>
|
|
316
|
-
</div>
|
|
317
|
-
}
|
|
318
|
-
</div>
|
|
319
|
-
</div>
|
|
320
|
-
|
|
321
|
-
@if (template === 'bands') {
|
|
322
|
-
<div class="rsd-section">
|
|
323
|
-
<h4>{{ 'report.scaffold.columns_label' | translate }}</h4>
|
|
324
|
-
<div class="rsd-columns">
|
|
325
|
-
@for (col of mainColumns; track col.name) {
|
|
326
|
-
<div class="rsd-col-row">
|
|
327
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-c-' + col.name" />
|
|
328
|
-
<label [for]="'rsd-c-' + col.name" class="rsd-col-label" [title]="col.name">{{ col.label }}</label>
|
|
329
|
-
</div>
|
|
330
|
-
}
|
|
331
|
-
</div>
|
|
332
|
-
|
|
333
|
-
@if (childRoutes.length) {
|
|
334
|
-
<h4 style="margin-top: .75rem">{{ 'report.scaffold.child_routes_label' | translate }}</h4>
|
|
335
|
-
@for (child of childRoutes; track child.route) {
|
|
336
|
-
<div class="rsd-child">
|
|
337
|
-
<div class="rsd-child-header">
|
|
338
|
-
<p-checkbox [binary]="true" [ngModel]="child.checked" (ngModelChange)="onChildToggle(child, $event)"
|
|
339
|
-
[inputId]="'rsd-ch-' + child.route" />
|
|
340
|
-
<label [for]="'rsd-ch-' + child.route">{{ child.route }}</label>
|
|
341
|
-
</div>
|
|
342
|
-
@if (child.checked) {
|
|
343
|
-
@if (child.loading) {
|
|
344
|
-
<div class="rsd-loading">{{ 'loading' | translate }}</div>
|
|
345
|
-
} @else {
|
|
346
|
-
<div class="rsd-columns" style="margin-top: .4rem">
|
|
347
|
-
@for (col of child.columns; track col.name) {
|
|
348
|
-
<div class="rsd-col-row">
|
|
349
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-cc-' + child.route + '-' + col.name" />
|
|
350
|
-
<label [for]="'rsd-cc-' + child.route + '-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
351
|
-
</div>
|
|
352
|
-
}
|
|
353
|
-
</div>
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
</div>
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
</div>
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
@if (template === 'crosstab') {
|
|
363
|
-
<div class="rsd-section">
|
|
364
|
-
<div class="rsd-field">
|
|
365
|
-
<label>{{ 'report.scaffold.rows_label' | translate }}</label>
|
|
366
|
-
<div class="rsd-columns">
|
|
367
|
-
@for (col of mainColumns; track col.name) {
|
|
368
|
-
<div class="rsd-col-row">
|
|
369
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-r-' + col.name" />
|
|
370
|
-
<label [for]="'rsd-r-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
371
|
-
</div>
|
|
372
|
-
}
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
<div class="rsd-field">
|
|
376
|
-
<label>{{ 'report.scaffold.column_label' | translate }}</label>
|
|
377
|
-
<p-select [options]="allColumnOptions" [(ngModel)]="crosstabColumn" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
378
|
-
</div>
|
|
379
|
-
<div class="rsd-field">
|
|
380
|
-
<label>{{ 'report.scaffold.value_label' | translate }}</label>
|
|
381
|
-
<p-select [options]="valueColumnOptions" [(ngModel)]="crosstabValue" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
382
|
-
</div>
|
|
383
|
-
<div class="rsd-field">
|
|
384
|
-
<label>{{ 'report.scaffold.aggregation_label' | translate }}</label>
|
|
385
|
-
<p-select [options]="aggregations" [(ngModel)]="crosstabAggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
386
|
-
</div>
|
|
387
|
-
</div>
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
@if (template === 'crossgroup') {
|
|
391
|
-
<div class="rsd-section">
|
|
392
|
-
<div class="rsd-field">
|
|
393
|
-
<label>{{ 'report.scaffold.group_by_label' | translate }}</label>
|
|
394
|
-
<p-select [options]="allColumnOptions" [(ngModel)]="groupBy" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
395
|
-
</div>
|
|
396
|
-
<div class="rsd-field">
|
|
397
|
-
<label>{{ 'report.scaffold.detail_columns_label' | translate }}</label>
|
|
398
|
-
<div class="rsd-columns">
|
|
399
|
-
@for (col of mainColumns; track col.name) {
|
|
400
|
-
<div class="rsd-col-row">
|
|
401
|
-
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-d-' + col.name" />
|
|
402
|
-
<label [for]="'rsd-d-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
403
|
-
</div>
|
|
404
|
-
}
|
|
405
|
-
</div>
|
|
406
|
-
</div>
|
|
407
|
-
<div class="rsd-field">
|
|
408
|
-
<label>{{ 'report.scaffold.totals_label' | translate }}</label>
|
|
409
|
-
@for (total of totals; track $index) {
|
|
410
|
-
<div class="rsd-total-row">
|
|
411
|
-
<p-select [options]="valueColumnOptions" [(ngModel)]="total.column" optionLabel="label" optionValue="name" appendTo="body" />
|
|
412
|
-
<p-select [options]="aggregations" [(ngModel)]="total.aggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
413
|
-
<p-button icon="pi pi-times" [text]="true" severity="danger" (onClick)="removeTotal($index)" />
|
|
414
|
-
</div>
|
|
415
|
-
}
|
|
416
|
-
<div class="rsd-total-row">
|
|
417
|
-
<p-button icon="pi pi-plus" [outlined]="true" size="small" (onClick)="addTotal()" [disabled]="!valueColumnOptions.length" />
|
|
418
|
-
</div>
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
<div class="rsd-footer">
|
|
424
|
-
<p-button [label]="'Cancel' | translate" [outlined]="true" (onClick)="cancel()" />
|
|
425
|
-
<p-button [label]="'report.scaffold.create_button' | translate" [disabled]="!isValid()" (onClick)="confirm()" />
|
|
426
|
-
</div>
|
|
305
|
+
args: [{ selector: 'wuic-report-scaffold-dialog', standalone: true, imports: [ButtonModule, CheckboxModule, CommonModule, FormsModule, RadioButtonModule, SelectModule, TranslateModule], template: `
|
|
306
|
+
<div class="rsd-section">
|
|
307
|
+
<h4>{{ 'report.scaffold.template_label' | translate }}</h4>
|
|
308
|
+
<div class="rsd-templates">
|
|
309
|
+
@for (t of templates; track t.value) {
|
|
310
|
+
<div class="rsd-template-row">
|
|
311
|
+
<p-radioButton [inputId]="'rsd-t-' + t.value" name="rsdTemplate" [value]="t.value" [(ngModel)]="template" />
|
|
312
|
+
<label [for]="'rsd-t-' + t.value">
|
|
313
|
+
<b>{{ t.labelKey | translate }}</b>
|
|
314
|
+
<div class="rsd-template-desc">{{ t.descKey | translate }}</div>
|
|
315
|
+
</label>
|
|
316
|
+
</div>
|
|
317
|
+
}
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
@if (template === 'bands') {
|
|
322
|
+
<div class="rsd-section">
|
|
323
|
+
<h4>{{ 'report.scaffold.columns_label' | translate }}</h4>
|
|
324
|
+
<div class="rsd-columns">
|
|
325
|
+
@for (col of mainColumns; track col.name) {
|
|
326
|
+
<div class="rsd-col-row">
|
|
327
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-c-' + col.name" />
|
|
328
|
+
<label [for]="'rsd-c-' + col.name" class="rsd-col-label" [title]="col.name">{{ col.label }}</label>
|
|
329
|
+
</div>
|
|
330
|
+
}
|
|
331
|
+
</div>
|
|
332
|
+
|
|
333
|
+
@if (childRoutes.length) {
|
|
334
|
+
<h4 style="margin-top: .75rem">{{ 'report.scaffold.child_routes_label' | translate }}</h4>
|
|
335
|
+
@for (child of childRoutes; track child.route) {
|
|
336
|
+
<div class="rsd-child">
|
|
337
|
+
<div class="rsd-child-header">
|
|
338
|
+
<p-checkbox [binary]="true" [ngModel]="child.checked" (ngModelChange)="onChildToggle(child, $event)"
|
|
339
|
+
[inputId]="'rsd-ch-' + child.route" />
|
|
340
|
+
<label [for]="'rsd-ch-' + child.route">{{ child.route }}</label>
|
|
341
|
+
</div>
|
|
342
|
+
@if (child.checked) {
|
|
343
|
+
@if (child.loading) {
|
|
344
|
+
<div class="rsd-loading">{{ 'loading' | translate }}</div>
|
|
345
|
+
} @else {
|
|
346
|
+
<div class="rsd-columns" style="margin-top: .4rem">
|
|
347
|
+
@for (col of child.columns; track col.name) {
|
|
348
|
+
<div class="rsd-col-row">
|
|
349
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-cc-' + child.route + '-' + col.name" />
|
|
350
|
+
<label [for]="'rsd-cc-' + child.route + '-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
351
|
+
</div>
|
|
352
|
+
}
|
|
353
|
+
</div>
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
</div>
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
</div>
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@if (template === 'crosstab') {
|
|
363
|
+
<div class="rsd-section">
|
|
364
|
+
<div class="rsd-field">
|
|
365
|
+
<label>{{ 'report.scaffold.rows_label' | translate }}</label>
|
|
366
|
+
<div class="rsd-columns">
|
|
367
|
+
@for (col of mainColumns; track col.name) {
|
|
368
|
+
<div class="rsd-col-row">
|
|
369
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-r-' + col.name" />
|
|
370
|
+
<label [for]="'rsd-r-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
371
|
+
</div>
|
|
372
|
+
}
|
|
373
|
+
</div>
|
|
374
|
+
</div>
|
|
375
|
+
<div class="rsd-field">
|
|
376
|
+
<label>{{ 'report.scaffold.column_label' | translate }}</label>
|
|
377
|
+
<p-select [options]="allColumnOptions" [(ngModel)]="crosstabColumn" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
378
|
+
</div>
|
|
379
|
+
<div class="rsd-field">
|
|
380
|
+
<label>{{ 'report.scaffold.value_label' | translate }}</label>
|
|
381
|
+
<p-select [options]="valueColumnOptions" [(ngModel)]="crosstabValue" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
382
|
+
</div>
|
|
383
|
+
<div class="rsd-field">
|
|
384
|
+
<label>{{ 'report.scaffold.aggregation_label' | translate }}</label>
|
|
385
|
+
<p-select [options]="aggregations" [(ngModel)]="crosstabAggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@if (template === 'crossgroup') {
|
|
391
|
+
<div class="rsd-section">
|
|
392
|
+
<div class="rsd-field">
|
|
393
|
+
<label>{{ 'report.scaffold.group_by_label' | translate }}</label>
|
|
394
|
+
<p-select [options]="allColumnOptions" [(ngModel)]="groupBy" optionLabel="label" optionValue="name" [filter]="true" appendTo="body" />
|
|
395
|
+
</div>
|
|
396
|
+
<div class="rsd-field">
|
|
397
|
+
<label>{{ 'report.scaffold.detail_columns_label' | translate }}</label>
|
|
398
|
+
<div class="rsd-columns">
|
|
399
|
+
@for (col of mainColumns; track col.name) {
|
|
400
|
+
<div class="rsd-col-row">
|
|
401
|
+
<p-checkbox [binary]="true" [(ngModel)]="col.checked" [inputId]="'rsd-d-' + col.name" />
|
|
402
|
+
<label [for]="'rsd-d-' + col.name" class="rsd-col-label">{{ col.label }}</label>
|
|
403
|
+
</div>
|
|
404
|
+
}
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
<div class="rsd-field">
|
|
408
|
+
<label>{{ 'report.scaffold.totals_label' | translate }}</label>
|
|
409
|
+
@for (total of totals; track $index) {
|
|
410
|
+
<div class="rsd-total-row">
|
|
411
|
+
<p-select [options]="valueColumnOptions" [(ngModel)]="total.column" optionLabel="label" optionValue="name" appendTo="body" />
|
|
412
|
+
<p-select [options]="aggregations" [(ngModel)]="total.aggregation" optionLabel="label" optionValue="value" appendTo="body" />
|
|
413
|
+
<p-button icon="pi pi-times" [text]="true" severity="danger" (onClick)="removeTotal($index)" />
|
|
414
|
+
</div>
|
|
415
|
+
}
|
|
416
|
+
<div class="rsd-total-row">
|
|
417
|
+
<p-button icon="pi pi-plus" [outlined]="true" size="small" (onClick)="addTotal()" [disabled]="!valueColumnOptions.length" />
|
|
418
|
+
</div>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
<div class="rsd-footer">
|
|
424
|
+
<p-button [label]="'Cancel' | translate" [outlined]="true" (onClick)="cancel()" />
|
|
425
|
+
<p-button [label]="'report.scaffold.create_button' | translate" [disabled]="!isValid()" (onClick)="confirm()" />
|
|
426
|
+
</div>
|
|
427
427
|
`, styles: [":host{display:block}.rsd-section{margin-bottom:1rem}.rsd-templates{display:flex;flex-direction:column;gap:.5rem}.rsd-template-row{display:flex;align-items:flex-start;gap:.5rem}.rsd-template-desc{font-size:.8rem;opacity:.7}.rsd-columns{max-height:220px;overflow-y:auto;border:1px solid var(--p-content-border-color, #e2e8f0);border-radius:6px;padding:.5rem}.rsd-col-row{display:flex;align-items:center;gap:.5rem;padding:.15rem 0}.rsd-col-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rsd-child{border:1px solid var(--p-content-border-color, #e2e8f0);border-radius:6px;padding:.5rem;margin-top:.5rem}.rsd-child-header{display:flex;align-items:center;gap:.5rem;font-weight:600}.rsd-field{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.75rem}.rsd-field label{font-size:.8rem;opacity:.75}.rsd-total-row{display:flex;align-items:center;gap:.5rem;margin-top:.35rem}.rsd-footer{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.rsd-loading{font-style:italic;opacity:.7;padding:.25rem 0}h4{margin:0 0 .5rem}\n"] }]
|
|
428
428
|
}], ctorParameters: () => [{ type: i1.DynamicDialogRef }, { type: i1.DynamicDialogConfig }, { type: i1$1.HttpClient }] });
|
|
429
429
|
|
|
430
430
|
export { ReportScaffoldDialogComponent };
|
|
431
|
-
//# sourceMappingURL=wuic-framework-lib-report-scaffold-dialog.component-
|
|
431
|
+
//# sourceMappingURL=wuic-framework-lib-report-scaffold-dialog.component-OGdglGPw.mjs.map
|