@wemake4u/form-player-se 1.0.24 → 1.0.26
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/esm2022/lib/dialog/dialog.component.mjs +15 -7
- package/esm2022/lib/directives/collapse.directive.mjs +20 -12
- package/esm2022/lib/directives/date.directive.mjs +2 -2
- package/esm2022/lib/directives/dialog.directive.mjs +2 -1
- package/esm2022/lib/directives/dropdown.directive.mjs +23 -5
- package/esm2022/lib/directives/formIndex.directive.mjs +25 -0
- package/esm2022/lib/directives/grid.directive.mjs +64 -19
- package/esm2022/lib/directives/readonly.directive.mjs +101 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +51 -25
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +123 -107
- package/esm2022/lib/locale/locale-de.mjs +3 -2
- package/esm2022/lib/locale/locale-en.mjs +3 -2
- package/esm2022/lib/locale/locale-es.mjs +3 -2
- package/esm2022/lib/locale/locale-fr.mjs +3 -2
- package/esm2022/lib/locale/locale-it.mjs +3 -2
- package/esm2022/lib/locale/locale-pt.mjs +3 -2
- package/esm2022/lib/services/chart.service.mjs +62 -56
- package/esm2022/lib/services/dialog.service.mjs +17 -2
- package/esm2022/lib/services/feel.service.mjs +186 -19
- package/esm2022/lib/services/form.service.mjs +100 -12
- package/esm2022/lib/services/formatter.service.mjs +68 -54
- package/esm2022/lib/services/function.service.mjs +2 -4
- package/esm2022/lib/services/grid.service.mjs +163 -51
- package/esm2022/lib/services/metadata.service.mjs +1 -8
- package/esm2022/lib/services/programmability.service.mjs +318 -64
- package/esm2022/lib/services/weak.service.mjs +3 -5
- package/esm2022/lib/utils/groupByRow.mjs +3 -1
- package/fesm2022/wemake4u-form-player-se.mjs +1337 -582
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/components/deleteRowRenderer/deleteRowRenderer.component.d.ts +1 -0
- package/lib/components/objectURLRenderer/objectURLRenderer.component.d.ts +1 -0
- package/lib/components/setFilter/setFilter.component.d.ts +1 -0
- package/lib/dialog/dialog.component.d.ts +11 -0
- package/lib/directives/collapse.directive.d.ts +7 -4
- package/lib/directives/dropdown.directive.d.ts +4 -0
- package/lib/directives/formIndex.directive.d.ts +10 -0
- package/lib/directives/grid.directive.d.ts +12 -5
- package/lib/directives/{disable.directive.d.ts → readonly.directive.d.ts} +7 -4
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +27 -4
- package/lib/dynamic-form/dynamic-form.component.d.ts +19 -10
- package/lib/locale/locale-de.d.ts +1 -0
- package/lib/locale/locale-en.d.ts +1 -0
- package/lib/locale/locale-es.d.ts +1 -0
- package/lib/locale/locale-fr.d.ts +1 -0
- package/lib/locale/locale-it.d.ts +1 -0
- package/lib/locale/locale-pt.d.ts +1 -0
- package/lib/locale/locale.d.ts +7 -0
- package/lib/services/chart.service.d.ts +5 -2
- package/lib/services/dialog.service.d.ts +1 -1
- package/lib/services/feel.service.d.ts +8 -0
- package/lib/services/form.service.d.ts +12 -1
- package/lib/services/formatter.service.d.ts +8 -6
- package/lib/services/grid.service.d.ts +13 -3
- package/lib/services/metadata.service.d.ts +0 -3
- package/lib/services/programmability.service.d.ts +28 -4
- package/lib/utils/groupByRow.d.ts +2 -0
- package/package.json +2 -2
- package/esm2022/lib/directives/disable.directive.mjs +0 -90
- package/esm2022/lib/directives/disable.path.directive.mjs +0 -40
- package/lib/directives/disable.path.directive.d.ts +0 -16
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FormDialogOptions, DialogAction } from '../services/dialog.service';
|
|
2
2
|
import { SirioDialogElement } from 'ngx-sirio-lib';
|
|
3
|
+
import { LanguageService } from '@wemake4u/interact';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DialogComponent extends SirioDialogElement {
|
|
6
|
+
private languageService;
|
|
5
7
|
private formHost;
|
|
6
8
|
private formRef;
|
|
7
9
|
private dynamicFormType;
|
|
@@ -44,6 +46,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
44
46
|
Information: string;
|
|
45
47
|
OpenMenu: string;
|
|
46
48
|
CloseMenu: string;
|
|
49
|
+
LoadingFailed: string;
|
|
47
50
|
};
|
|
48
51
|
en: {
|
|
49
52
|
TypeToSearch: string;
|
|
@@ -82,6 +85,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
82
85
|
Information: string;
|
|
83
86
|
OpenMenu: string;
|
|
84
87
|
CloseMenu: string;
|
|
88
|
+
LoadingFailed: string;
|
|
85
89
|
};
|
|
86
90
|
de: {
|
|
87
91
|
TypeToSearch: string;
|
|
@@ -120,6 +124,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
120
124
|
Information: string;
|
|
121
125
|
OpenMenu: string;
|
|
122
126
|
CloseMenu: string;
|
|
127
|
+
LoadingFailed: string;
|
|
123
128
|
};
|
|
124
129
|
fr: {
|
|
125
130
|
TypeToSearch: string;
|
|
@@ -158,6 +163,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
158
163
|
Information: string;
|
|
159
164
|
OpenMenu: string;
|
|
160
165
|
CloseMenu: string;
|
|
166
|
+
LoadingFailed: string;
|
|
161
167
|
};
|
|
162
168
|
es: {
|
|
163
169
|
TypeToSearch: string;
|
|
@@ -196,6 +202,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
196
202
|
Information: string;
|
|
197
203
|
OpenMenu: string;
|
|
198
204
|
CloseMenu: string;
|
|
205
|
+
LoadingFailed: string;
|
|
199
206
|
};
|
|
200
207
|
pt: {
|
|
201
208
|
TypeToSearch: string;
|
|
@@ -234,6 +241,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
234
241
|
Information: string;
|
|
235
242
|
OpenMenu: string;
|
|
236
243
|
CloseMenu: string;
|
|
244
|
+
LoadingFailed: string;
|
|
237
245
|
};
|
|
238
246
|
};
|
|
239
247
|
TypeToSearch: string;
|
|
@@ -272,7 +280,9 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
272
280
|
Information: string;
|
|
273
281
|
OpenMenu: string;
|
|
274
282
|
CloseMenu: string;
|
|
283
|
+
LoadingFailed: string;
|
|
275
284
|
};
|
|
285
|
+
constructor(languageService: LanguageService);
|
|
276
286
|
ngOnInit(): void;
|
|
277
287
|
options: FormDialogOptions;
|
|
278
288
|
ngAfterViewInit(): void;
|
|
@@ -288,6 +298,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
288
298
|
private destroy$;
|
|
289
299
|
private currentValue;
|
|
290
300
|
private setCurrentValue;
|
|
301
|
+
private get language();
|
|
291
302
|
private SendResult;
|
|
292
303
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
293
304
|
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "dynamic-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ElementRef, Renderer2, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { LanguageService } from '@wemake4u/interact';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
4
5
|
private el;
|
|
5
6
|
private renderer;
|
|
7
|
+
private languageService;
|
|
6
8
|
maxHeight: number | null;
|
|
7
|
-
language: string;
|
|
8
9
|
private currentHeight;
|
|
9
10
|
private button;
|
|
10
11
|
private iconSpan;
|
|
@@ -12,9 +13,12 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
|
12
13
|
private viewInitialized;
|
|
13
14
|
private timeoutFocusOut;
|
|
14
15
|
private unlistenFocusOut;
|
|
15
|
-
|
|
16
|
+
private subscription;
|
|
17
|
+
constructor(el: ElementRef, renderer: Renderer2, languageService: LanguageService);
|
|
18
|
+
ngOnDestroy(): void;
|
|
16
19
|
ngAfterViewInit(): void;
|
|
17
20
|
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
private get language();
|
|
18
22
|
private applyCollapseLogic;
|
|
19
23
|
private applyStyle;
|
|
20
24
|
private resetStyles;
|
|
@@ -27,7 +31,6 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
|
27
31
|
private collapse;
|
|
28
32
|
private updateIcon;
|
|
29
33
|
private locale;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", never, { "maxHeight": { "alias": "collapse"; "required": false; };
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", never, { "maxHeight": { "alias": "collapse"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
36
|
}
|
|
@@ -12,6 +12,10 @@ export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
|
12
12
|
private handleValue;
|
|
13
13
|
private handleSearchable;
|
|
14
14
|
private handleOptionsChanges;
|
|
15
|
+
private validator;
|
|
16
|
+
private addValidator;
|
|
17
|
+
private removeValidator;
|
|
18
|
+
private validateOptions;
|
|
15
19
|
private deactivate;
|
|
16
20
|
private activate;
|
|
17
21
|
private onKeyUp;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormIndexDirective implements AfterContentInit {
|
|
4
|
+
formIndex: number;
|
|
5
|
+
componentRef: any;
|
|
6
|
+
constructor();
|
|
7
|
+
ngAfterContentInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormIndexDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormIndexDirective, "[formIndex]", never, { "formIndex": { "alias": "formIndex"; "required": false; }; "componentRef": { "alias": "componentRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -2,26 +2,33 @@ import { OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { AgGridAngular } from 'ag-grid-angular';
|
|
4
4
|
import { GridService } from '../services/grid.service';
|
|
5
|
+
import { LanguageService } from '@wemake4u/interact';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class GridDirective implements OnChanges {
|
|
7
8
|
private grid;
|
|
8
9
|
private gridService;
|
|
10
|
+
private languageService;
|
|
9
11
|
rowSource: any;
|
|
10
12
|
columnDefs: any;
|
|
11
13
|
formGroup: FormGroup;
|
|
12
|
-
language: string;
|
|
13
14
|
component: any;
|
|
14
|
-
|
|
15
|
+
private destroyRef;
|
|
16
|
+
constructor(grid: AgGridAngular, gridService: GridService, languageService: LanguageService);
|
|
15
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
18
|
private gridApi;
|
|
17
19
|
private isGridReady;
|
|
18
|
-
private
|
|
20
|
+
private noData;
|
|
21
|
+
private applyResult;
|
|
19
22
|
private setRowData;
|
|
20
23
|
private setDataSource;
|
|
21
24
|
private isArray;
|
|
22
25
|
private isDataSource;
|
|
23
26
|
private onGridReady;
|
|
24
27
|
private onColumnsChanges;
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
private showLoading;
|
|
29
|
+
private showLoadError;
|
|
30
|
+
private get language();
|
|
31
|
+
private locale;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }, null, null]>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GridDirective, "[rowSource], [columnDefs]", never, { "rowSource": { "alias": "rowSource"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
34
|
}
|
|
@@ -2,12 +2,11 @@ import { OnChanges, SimpleChanges, ElementRef, Renderer2 } from '@angular/core';
|
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
|
3
3
|
import { GlobalService } from '../services/global.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadOnlyDirective implements OnChanges {
|
|
6
6
|
private ngControl;
|
|
7
7
|
private global;
|
|
8
8
|
private el;
|
|
9
9
|
private renderer;
|
|
10
|
-
disableControl: boolean | null;
|
|
11
10
|
readonly: boolean | null;
|
|
12
11
|
placeholder: string | null;
|
|
13
12
|
componentRef: any;
|
|
@@ -16,10 +15,14 @@ export declare class DisableDirective implements OnChanges {
|
|
|
16
15
|
private disableClass;
|
|
17
16
|
private readonlyClass;
|
|
18
17
|
private lightReadonlyClass;
|
|
18
|
+
private sub?;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
19
21
|
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
private apply;
|
|
20
23
|
private toggleClass;
|
|
21
24
|
private overridePlaceholder;
|
|
22
25
|
private useLightReadonly;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReadOnlyDirective, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReadOnlyDirective, "[readonly]", never, { "readonly": { "alias": "readonly"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "componentRef": { "alias": "componentRef"; "required": false; }; "properties": { "alias": "properties"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
28
|
}
|
|
@@ -10,6 +10,7 @@ import { EventService } from '../services/event.service';
|
|
|
10
10
|
import { WeakService } from '../services/weak.service';
|
|
11
11
|
import { RegisterService } from '../services/register.service';
|
|
12
12
|
import { MetadataService } from '../services/metadata.service';
|
|
13
|
+
import { FormService } from '../services/form.service';
|
|
13
14
|
import { GridService } from '../services/grid.service';
|
|
14
15
|
import { ChartService } from '../services/chart.service';
|
|
15
16
|
import { ButtonColors } from 'ngx-sirio-lib';
|
|
@@ -17,6 +18,7 @@ import { Observable } from 'rxjs';
|
|
|
17
18
|
import { SirioFileUploadComponent, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
18
19
|
import { Module, GridOptions } from 'ag-grid-community';
|
|
19
20
|
import { AgChartOptions } from 'ag-charts-community';
|
|
21
|
+
import { LanguageService } from '@wemake4u/interact';
|
|
20
22
|
import * as i0 from "@angular/core";
|
|
21
23
|
export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, IDynamicFieldsComponent {
|
|
22
24
|
private sanitizer;
|
|
@@ -27,13 +29,15 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
27
29
|
private weak;
|
|
28
30
|
private register;
|
|
29
31
|
private metadata;
|
|
32
|
+
private languageService;
|
|
33
|
+
private formService;
|
|
30
34
|
private grid;
|
|
31
35
|
private chart;
|
|
32
36
|
private el;
|
|
33
37
|
private cdr;
|
|
34
38
|
rows: Array<any> | undefined;
|
|
35
39
|
formGroup: FormGroup;
|
|
36
|
-
|
|
40
|
+
alignment: string;
|
|
37
41
|
Texts: {
|
|
38
42
|
i18n: {
|
|
39
43
|
it: {
|
|
@@ -73,6 +77,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
73
77
|
Information: string;
|
|
74
78
|
OpenMenu: string;
|
|
75
79
|
CloseMenu: string;
|
|
80
|
+
LoadingFailed: string;
|
|
76
81
|
};
|
|
77
82
|
en: {
|
|
78
83
|
TypeToSearch: string;
|
|
@@ -111,6 +116,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
111
116
|
Information: string;
|
|
112
117
|
OpenMenu: string;
|
|
113
118
|
CloseMenu: string;
|
|
119
|
+
LoadingFailed: string;
|
|
114
120
|
};
|
|
115
121
|
de: {
|
|
116
122
|
TypeToSearch: string;
|
|
@@ -149,6 +155,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
149
155
|
Information: string;
|
|
150
156
|
OpenMenu: string;
|
|
151
157
|
CloseMenu: string;
|
|
158
|
+
LoadingFailed: string;
|
|
152
159
|
};
|
|
153
160
|
fr: {
|
|
154
161
|
TypeToSearch: string;
|
|
@@ -187,6 +194,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
187
194
|
Information: string;
|
|
188
195
|
OpenMenu: string;
|
|
189
196
|
CloseMenu: string;
|
|
197
|
+
LoadingFailed: string;
|
|
190
198
|
};
|
|
191
199
|
es: {
|
|
192
200
|
TypeToSearch: string;
|
|
@@ -225,6 +233,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
225
233
|
Information: string;
|
|
226
234
|
OpenMenu: string;
|
|
227
235
|
CloseMenu: string;
|
|
236
|
+
LoadingFailed: string;
|
|
228
237
|
};
|
|
229
238
|
pt: {
|
|
230
239
|
TypeToSearch: string;
|
|
@@ -263,6 +272,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
263
272
|
Information: string;
|
|
264
273
|
OpenMenu: string;
|
|
265
274
|
CloseMenu: string;
|
|
275
|
+
LoadingFailed: string;
|
|
266
276
|
};
|
|
267
277
|
};
|
|
268
278
|
TypeToSearch: string;
|
|
@@ -301,8 +311,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
301
311
|
Information: string;
|
|
302
312
|
OpenMenu: string;
|
|
303
313
|
CloseMenu: string;
|
|
314
|
+
LoadingFailed: string;
|
|
304
315
|
};
|
|
305
|
-
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, grid: GridService, chart: ChartService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
316
|
+
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, formService: FormService, grid: GridService, chart: ChartService, el: ElementRef, cdr: ChangeDetectorRef);
|
|
306
317
|
ngOnInit(): void;
|
|
307
318
|
ngAfterViewInit(): void;
|
|
308
319
|
getRegister(): RegisterService;
|
|
@@ -334,18 +345,30 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
334
345
|
getGridOptions(component: any): GridOptions;
|
|
335
346
|
getGridModules(component: any): Module[];
|
|
336
347
|
onGridSelectionChanged(component: any, event: any): void;
|
|
337
|
-
getRowSource(component: any):
|
|
348
|
+
getRowSource(component: any): any;
|
|
338
349
|
refreshRowSource(component: any): () => void;
|
|
339
350
|
addItem(formArray: FormArray): void;
|
|
340
351
|
removeItem(formArray: FormArray, index: number): void;
|
|
341
352
|
createUploadTables(component: any): any;
|
|
342
353
|
fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
|
|
343
354
|
getFeelableProperties(component: any): Record<string, any> | null;
|
|
355
|
+
getGroupOutline(component: any): {
|
|
356
|
+
'group-outline': boolean;
|
|
357
|
+
};
|
|
358
|
+
getFormAlignment(): {
|
|
359
|
+
[x: string]: boolean;
|
|
360
|
+
};
|
|
361
|
+
getComponentAlignment(component: any): {
|
|
362
|
+
[x: string]: boolean;
|
|
363
|
+
};
|
|
364
|
+
private noData;
|
|
365
|
+
private get language();
|
|
366
|
+
private getAlignmentRules;
|
|
344
367
|
private invalidate;
|
|
345
368
|
private getControlFromPath;
|
|
346
369
|
private focusFirst;
|
|
347
370
|
private getAsObservable;
|
|
348
371
|
private configureDatepicker;
|
|
349
372
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
350
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "
|
|
373
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; }, {}, never, never, true, never>;
|
|
351
374
|
}
|
|
@@ -5,15 +5,17 @@ import { CommandEvent, EventService } from '../services/event.service';
|
|
|
5
5
|
import { MetadataService } from '../services/metadata.service';
|
|
6
6
|
import { FormService } from '../services/form.service';
|
|
7
7
|
import { DialogService, FormDialogOptions } from '../services/dialog.service';
|
|
8
|
-
import { SirioStepperProgressStatus } from 'ngx-sirio-lib';
|
|
8
|
+
import { SirioStepperProgressBarComponent, SirioStepperProgressStatus, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
9
9
|
import { RegisterService } from '../services/register.service';
|
|
10
10
|
import { Control } from '../controls/control';
|
|
11
|
+
import { LanguageService } from '@wemake4u/interact';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
13
14
|
private fb;
|
|
14
15
|
private programmability;
|
|
15
16
|
private events;
|
|
16
17
|
private registerService;
|
|
18
|
+
private languageService;
|
|
17
19
|
private metadata;
|
|
18
20
|
private formService;
|
|
19
21
|
private dialog;
|
|
@@ -32,7 +34,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
32
34
|
onCommand: EventEmitter<CommandEvent>;
|
|
33
35
|
activeNavChange: EventEmitter<any>;
|
|
34
36
|
formDiv: ElementRef<HTMLDivElement>;
|
|
35
|
-
constructor(fb: FormBuilder, programmability: ProgrammabilityService, events: EventService, registerService: RegisterService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
37
|
+
constructor(fb: FormBuilder, programmability: ProgrammabilityService, events: EventService, registerService: RegisterService, languageService: LanguageService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
36
38
|
Texts: {
|
|
37
39
|
i18n: {
|
|
38
40
|
it: {
|
|
@@ -72,6 +74,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
72
74
|
Information: string;
|
|
73
75
|
OpenMenu: string;
|
|
74
76
|
CloseMenu: string;
|
|
77
|
+
LoadingFailed: string;
|
|
75
78
|
};
|
|
76
79
|
en: {
|
|
77
80
|
TypeToSearch: string;
|
|
@@ -110,6 +113,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
110
113
|
Information: string;
|
|
111
114
|
OpenMenu: string;
|
|
112
115
|
CloseMenu: string;
|
|
116
|
+
LoadingFailed: string;
|
|
113
117
|
};
|
|
114
118
|
de: {
|
|
115
119
|
TypeToSearch: string;
|
|
@@ -148,6 +152,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
148
152
|
Information: string;
|
|
149
153
|
OpenMenu: string;
|
|
150
154
|
CloseMenu: string;
|
|
155
|
+
LoadingFailed: string;
|
|
151
156
|
};
|
|
152
157
|
fr: {
|
|
153
158
|
TypeToSearch: string;
|
|
@@ -186,6 +191,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
186
191
|
Information: string;
|
|
187
192
|
OpenMenu: string;
|
|
188
193
|
CloseMenu: string;
|
|
194
|
+
LoadingFailed: string;
|
|
189
195
|
};
|
|
190
196
|
es: {
|
|
191
197
|
TypeToSearch: string;
|
|
@@ -224,6 +230,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
224
230
|
Information: string;
|
|
225
231
|
OpenMenu: string;
|
|
226
232
|
CloseMenu: string;
|
|
233
|
+
LoadingFailed: string;
|
|
227
234
|
};
|
|
228
235
|
pt: {
|
|
229
236
|
TypeToSearch: string;
|
|
@@ -262,6 +269,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
262
269
|
Information: string;
|
|
263
270
|
OpenMenu: string;
|
|
264
271
|
CloseMenu: string;
|
|
272
|
+
LoadingFailed: string;
|
|
265
273
|
};
|
|
266
274
|
};
|
|
267
275
|
TypeToSearch: string;
|
|
@@ -300,6 +308,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
300
308
|
Information: string;
|
|
301
309
|
OpenMenu: string;
|
|
302
310
|
CloseMenu: string;
|
|
311
|
+
LoadingFailed: string;
|
|
303
312
|
};
|
|
304
313
|
ngOnDestroy(): void;
|
|
305
314
|
private internalChange;
|
|
@@ -314,11 +323,10 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
314
323
|
getControlAs<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
315
324
|
get activeNav(): number;
|
|
316
325
|
set activeNav(value: number);
|
|
317
|
-
get language(): string;
|
|
318
|
-
set language(value: string);
|
|
319
326
|
getFormGroup(path: string | null): FormGroup;
|
|
320
327
|
getFormStatus(form: any, index: number): SirioStepperProgressStatus;
|
|
321
|
-
|
|
328
|
+
getErrors(form: any): number;
|
|
329
|
+
activateForm(event: NgxSirioEvent<SirioStepperProgressBarComponent>): void;
|
|
322
330
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
323
331
|
evaluateTemplate(value: string | null): string;
|
|
324
332
|
openForm(template: string, options: FormDialogOptions): void;
|
|
@@ -327,26 +335,27 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
327
335
|
private onCommandSubscription;
|
|
328
336
|
private _forms;
|
|
329
337
|
private _activeNav;
|
|
330
|
-
private _language;
|
|
331
338
|
private defaultValue;
|
|
339
|
+
private controlMap;
|
|
340
|
+
private get language();
|
|
332
341
|
private onChangeSchema;
|
|
333
342
|
private onChangeValue;
|
|
334
343
|
private getNext;
|
|
335
344
|
private getPrevious;
|
|
336
345
|
private getMaxNav;
|
|
337
346
|
private isDisabled;
|
|
347
|
+
private isInactive;
|
|
338
348
|
private clearControls;
|
|
339
349
|
private clearFormArrays;
|
|
340
350
|
private registerHandlers;
|
|
341
351
|
private clearHandlers;
|
|
342
352
|
private buildForm;
|
|
343
353
|
private addControls;
|
|
354
|
+
private getValidationRules;
|
|
344
355
|
private createFormArray;
|
|
345
356
|
private resizeFormArray;
|
|
357
|
+
private hasPath;
|
|
346
358
|
private applyPath;
|
|
347
|
-
private getValidators;
|
|
348
|
-
private validateFn;
|
|
349
|
-
private invalidateFn;
|
|
350
359
|
private isFormComponent;
|
|
351
360
|
private isContainerComponent;
|
|
352
361
|
private isComponentWithInput;
|
|
@@ -358,5 +367,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
358
367
|
private splitPath;
|
|
359
368
|
private hasValue;
|
|
360
369
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
361
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "showFormTitle": { "alias": "showFormTitle"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; };
|
|
370
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "showFormTitle": { "alias": "showFormTitle"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "onCommand": "onCommand"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
362
371
|
}
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare const Texts: {
|
|
|
37
37
|
Information: string;
|
|
38
38
|
OpenMenu: string;
|
|
39
39
|
CloseMenu: string;
|
|
40
|
+
LoadingFailed: string;
|
|
40
41
|
};
|
|
41
42
|
en: {
|
|
42
43
|
TypeToSearch: string;
|
|
@@ -75,6 +76,7 @@ export declare const Texts: {
|
|
|
75
76
|
Information: string;
|
|
76
77
|
OpenMenu: string;
|
|
77
78
|
CloseMenu: string;
|
|
79
|
+
LoadingFailed: string;
|
|
78
80
|
};
|
|
79
81
|
de: {
|
|
80
82
|
TypeToSearch: string;
|
|
@@ -113,6 +115,7 @@ export declare const Texts: {
|
|
|
113
115
|
Information: string;
|
|
114
116
|
OpenMenu: string;
|
|
115
117
|
CloseMenu: string;
|
|
118
|
+
LoadingFailed: string;
|
|
116
119
|
};
|
|
117
120
|
fr: {
|
|
118
121
|
TypeToSearch: string;
|
|
@@ -151,6 +154,7 @@ export declare const Texts: {
|
|
|
151
154
|
Information: string;
|
|
152
155
|
OpenMenu: string;
|
|
153
156
|
CloseMenu: string;
|
|
157
|
+
LoadingFailed: string;
|
|
154
158
|
};
|
|
155
159
|
es: {
|
|
156
160
|
TypeToSearch: string;
|
|
@@ -189,6 +193,7 @@ export declare const Texts: {
|
|
|
189
193
|
Information: string;
|
|
190
194
|
OpenMenu: string;
|
|
191
195
|
CloseMenu: string;
|
|
196
|
+
LoadingFailed: string;
|
|
192
197
|
};
|
|
193
198
|
pt: {
|
|
194
199
|
TypeToSearch: string;
|
|
@@ -227,6 +232,7 @@ export declare const Texts: {
|
|
|
227
232
|
Information: string;
|
|
228
233
|
OpenMenu: string;
|
|
229
234
|
CloseMenu: string;
|
|
235
|
+
LoadingFailed: string;
|
|
230
236
|
};
|
|
231
237
|
};
|
|
232
238
|
TypeToSearch: string;
|
|
@@ -265,4 +271,5 @@ export declare const Texts: {
|
|
|
265
271
|
Information: string;
|
|
266
272
|
OpenMenu: string;
|
|
267
273
|
CloseMenu: string;
|
|
274
|
+
LoadingFailed: string;
|
|
268
275
|
};
|
|
@@ -2,13 +2,16 @@ import { FormGroup } from '@angular/forms';
|
|
|
2
2
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { AgChartOptions } from 'ag-charts-community';
|
|
5
|
+
import { LanguageService } from '@wemake4u/interact';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ChartService {
|
|
7
8
|
private programmability;
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
private languageService;
|
|
10
|
+
constructor(programmability: ProgrammabilityService, languageService: LanguageService);
|
|
11
|
+
getOptions(component: any, formGroup: FormGroup): Observable<AgChartOptions>;
|
|
10
12
|
getDataExpression(component: any): string;
|
|
11
13
|
private bindData;
|
|
14
|
+
private get language();
|
|
12
15
|
private locale;
|
|
13
16
|
private getTheme;
|
|
14
17
|
private getSeries;
|
|
@@ -9,6 +9,7 @@ export declare class DialogService implements IEvaluatorProvider {
|
|
|
9
9
|
alert(text: string, options?: DialogOptions): void;
|
|
10
10
|
info(text: string, options?: DialogOptions): void;
|
|
11
11
|
confirm(text: string, options?: DialogOptions): void;
|
|
12
|
+
show(text: string, options?: DialogOptions): void;
|
|
12
13
|
prompt(text: string, defaultValue?: string, options?: DialogOptions): void;
|
|
13
14
|
getContext(): Record<string, any>;
|
|
14
15
|
private showDialog;
|
|
@@ -23,7 +24,6 @@ export interface DialogOptions {
|
|
|
23
24
|
title?: string;
|
|
24
25
|
isDrawer?: boolean;
|
|
25
26
|
closeButton?: boolean;
|
|
26
|
-
language?: string;
|
|
27
27
|
buttons?: DialogButtons;
|
|
28
28
|
onResult?: (result: DialogResult) => void;
|
|
29
29
|
}
|
|
@@ -5,6 +5,14 @@ export declare class FeelService {
|
|
|
5
5
|
evalExpression(expression: string, context?: Record<string, any>): any;
|
|
6
6
|
evalUnaryTest(expression: string, context?: Record<string, any>, input?: any): boolean;
|
|
7
7
|
getDependencies(expression: string, context?: Record<string, any>): (string | string[])[];
|
|
8
|
+
getTemplateDependencies(expression: string, context?: Record<string, any>): (string | string[])[];
|
|
9
|
+
private findAncestor;
|
|
10
|
+
private findDescendant;
|
|
11
|
+
private findChild;
|
|
12
|
+
private findChildren;
|
|
13
|
+
private getFunctionName;
|
|
14
|
+
private getStatusDependencies;
|
|
15
|
+
private splitQuoted;
|
|
8
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeelService, never>;
|
|
9
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<FeelService>;
|
|
10
18
|
}
|