@wemake4u/form-player-se 1.0.17 → 1.0.19
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/controls/checklist.mjs +4 -1
- package/esm2022/lib/controls/chipchecklist.mjs +4 -1
- package/esm2022/lib/controls/chipradio.mjs +4 -1
- package/esm2022/lib/controls/control.mjs +6 -27
- package/esm2022/lib/controls/radio.mjs +4 -1
- package/esm2022/lib/controls/select.mjs +4 -1
- package/esm2022/lib/controls/table.mjs +8 -5
- package/esm2022/lib/controls/taglist.mjs +4 -1
- package/esm2022/lib/controls/textfield.mjs +3 -3
- package/esm2022/lib/dialog/dialog.component.mjs +101 -0
- package/esm2022/lib/directives/accordion.directive.mjs +2 -13
- package/esm2022/lib/directives/dialog.directive.mjs +25 -0
- package/esm2022/lib/directives/dropdown.directive.mjs +7 -7
- package/esm2022/lib/directives/grid.directive.mjs +7 -7
- package/esm2022/lib/directives/refresh.directive.mjs +25 -0
- package/esm2022/lib/directives/register.directive.mjs +5 -8
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +46 -19
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +106 -53
- package/esm2022/lib/locale/locale-de.mjs +11 -1
- package/esm2022/lib/locale/locale-en.mjs +11 -1
- package/esm2022/lib/locale/locale-es.mjs +11 -1
- package/esm2022/lib/locale/locale-fr.mjs +11 -1
- package/esm2022/lib/locale/locale-it.mjs +11 -1
- package/esm2022/lib/locale/locale-pt.mjs +11 -1
- package/esm2022/lib/services/dialog.service.mjs +103 -0
- package/esm2022/lib/services/function.service.mjs +47 -0
- package/esm2022/lib/services/grid.service.mjs +61 -5
- package/esm2022/lib/services/metadata.service.mjs +28 -1
- package/esm2022/lib/services/programmability.service.mjs +59 -40
- package/esm2022/lib/services/register.service.mjs +62 -30
- package/esm2022/lib/services/scope.service.mjs +12 -23
- package/esm2022/lib/services/toast.service.mjs +10 -1
- package/esm2022/lib/services/weak.service.mjs +1 -11
- package/esm2022/lib/utils/functions.mjs +31 -0
- package/esm2022/lib/utils/gridCells.mjs +14 -10
- package/esm2022/lib/utils/patchForm.mjs +32 -13
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/wemake4u-form-player-se.mjs +1257 -809
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/controls/checklist.d.ts +1 -0
- package/lib/controls/chipchecklist.d.ts +1 -0
- package/lib/controls/chipradio.d.ts +1 -0
- package/lib/controls/control.d.ts +1 -4
- package/lib/controls/radio.d.ts +1 -0
- package/lib/controls/select.d.ts +1 -0
- package/lib/controls/table.d.ts +3 -2
- package/lib/controls/taglist.d.ts +1 -0
- package/lib/controls/textfield.d.ts +1 -1
- package/lib/dialog/dialog.component.d.ts +293 -0
- package/lib/directives/dialog.directive.d.ts +8 -0
- package/lib/directives/refresh.directive.d.ts +10 -0
- package/lib/directives/register.directive.d.ts +1 -3
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +79 -4
- package/lib/dynamic-form/dynamic-form.component.d.ts +87 -6
- package/lib/locale/locale-de.d.ts +10 -0
- package/lib/locale/locale-en.d.ts +10 -0
- package/lib/locale/locale-es.d.ts +10 -0
- package/lib/locale/locale-fr.d.ts +10 -0
- package/lib/locale/locale-it.d.ts +10 -0
- package/lib/locale/locale-pt.d.ts +10 -0
- package/lib/locale/locale.d.ts +70 -0
- package/lib/services/dialog.service.d.ts +41 -0
- package/lib/services/function.service.d.ts +16 -0
- package/lib/services/grid.service.d.ts +3 -0
- package/lib/services/metadata.service.d.ts +4 -0
- package/lib/services/programmability.service.d.ts +14 -6
- package/lib/services/register.service.d.ts +10 -9
- package/lib/services/scope.service.d.ts +7 -8
- package/lib/services/toast.service.d.ts +3 -1
- package/lib/utils/functions.d.ts +2 -0
- package/lib/utils/gridCells.d.ts +20 -0
- package/lib/utils/patchForm.d.ts +1 -0
- package/lib/utils/setFilter.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2022/lib/services/proxy.service.mjs +0 -131
- package/lib/services/proxy.service.d.ts +0 -32
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, SimpleChanges, EventEmitter, ElementRef } from '@angular/core';
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges, EventEmitter, ElementRef, Injector } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
4
4
|
import { CommandEvent, EventService } from '../services/event.service';
|
|
5
5
|
import { MetadataService } from '../services/metadata.service';
|
|
6
|
+
import { DialogService, FormDialogOptions } from '../services/dialog.service';
|
|
6
7
|
import { SirioStepperProgressStatus } from 'ngx-sirio-lib';
|
|
7
8
|
import { RegisterService } from '../services/register.service';
|
|
8
9
|
import { Control } from '../controls/control';
|
|
@@ -13,10 +14,12 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
13
14
|
private events;
|
|
14
15
|
private registerService;
|
|
15
16
|
private metadata;
|
|
17
|
+
private dialog;
|
|
18
|
+
private injector;
|
|
16
19
|
schema: any;
|
|
17
20
|
formGroup: FormGroup;
|
|
18
21
|
value: any;
|
|
19
|
-
|
|
22
|
+
strict: boolean;
|
|
20
23
|
showNav: boolean;
|
|
21
24
|
showNavButton: boolean;
|
|
22
25
|
showProgress: boolean;
|
|
@@ -27,7 +30,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
27
30
|
onCommand: EventEmitter<CommandEvent>;
|
|
28
31
|
activeNavChange: EventEmitter<any>;
|
|
29
32
|
formDiv: ElementRef<HTMLDivElement>;
|
|
30
|
-
constructor(fb: FormBuilder, programmability: ProgrammabilityService, events: EventService, registerService: RegisterService, metadata: MetadataService);
|
|
33
|
+
constructor(fb: FormBuilder, programmability: ProgrammabilityService, events: EventService, registerService: RegisterService, metadata: MetadataService, dialog: DialogService, injector: Injector);
|
|
31
34
|
Texts: {
|
|
32
35
|
i18n: {
|
|
33
36
|
it: {
|
|
@@ -42,6 +45,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
42
45
|
Show: string;
|
|
43
46
|
Remove: string;
|
|
44
47
|
Close: string;
|
|
48
|
+
Confirm: string;
|
|
49
|
+
OK: string;
|
|
50
|
+
Cancel: string;
|
|
51
|
+
Abort: string;
|
|
52
|
+
Retry: string;
|
|
53
|
+
Ignore: string;
|
|
54
|
+
Yes: string;
|
|
55
|
+
No: string;
|
|
56
|
+
Try: string;
|
|
57
|
+
Continue: string;
|
|
45
58
|
Name: string;
|
|
46
59
|
Size: string;
|
|
47
60
|
Type: string;
|
|
@@ -70,6 +83,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
70
83
|
Show: string;
|
|
71
84
|
Remove: string;
|
|
72
85
|
Close: string;
|
|
86
|
+
Confirm: string;
|
|
87
|
+
OK: string;
|
|
88
|
+
Cancel: string;
|
|
89
|
+
Abort: string;
|
|
90
|
+
Retry: string;
|
|
91
|
+
Ignore: string;
|
|
92
|
+
Yes: string;
|
|
93
|
+
No: string;
|
|
94
|
+
Try: string;
|
|
95
|
+
Continue: string;
|
|
73
96
|
Name: string;
|
|
74
97
|
Size: string;
|
|
75
98
|
Type: string;
|
|
@@ -98,6 +121,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
98
121
|
Show: string;
|
|
99
122
|
Remove: string;
|
|
100
123
|
Close: string;
|
|
124
|
+
Confirm: string;
|
|
125
|
+
OK: string;
|
|
126
|
+
Cancel: string;
|
|
127
|
+
Abort: string;
|
|
128
|
+
Retry: string;
|
|
129
|
+
Ignore: string;
|
|
130
|
+
Yes: string;
|
|
131
|
+
No: string;
|
|
132
|
+
Try: string;
|
|
133
|
+
Continue: string;
|
|
101
134
|
Name: string;
|
|
102
135
|
Size: string;
|
|
103
136
|
Type: string;
|
|
@@ -126,6 +159,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
126
159
|
Show: string;
|
|
127
160
|
Remove: string;
|
|
128
161
|
Close: string;
|
|
162
|
+
Confirm: string;
|
|
163
|
+
OK: string;
|
|
164
|
+
Cancel: string;
|
|
165
|
+
Abort: string;
|
|
166
|
+
Retry: string;
|
|
167
|
+
Ignore: string;
|
|
168
|
+
Yes: string;
|
|
169
|
+
No: string;
|
|
170
|
+
Try: string;
|
|
171
|
+
Continue: string;
|
|
129
172
|
Name: string;
|
|
130
173
|
Size: string;
|
|
131
174
|
Type: string;
|
|
@@ -154,6 +197,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
154
197
|
Show: string;
|
|
155
198
|
Remove: string;
|
|
156
199
|
Close: string;
|
|
200
|
+
Confirm: string;
|
|
201
|
+
OK: string;
|
|
202
|
+
Cancel: string;
|
|
203
|
+
Abort: string;
|
|
204
|
+
Retry: string;
|
|
205
|
+
Ignore: string;
|
|
206
|
+
Yes: string;
|
|
207
|
+
No: string;
|
|
208
|
+
Try: string;
|
|
209
|
+
Continue: string;
|
|
157
210
|
Name: string;
|
|
158
211
|
Size: string;
|
|
159
212
|
Type: string;
|
|
@@ -182,6 +235,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
182
235
|
Show: string;
|
|
183
236
|
Remove: string;
|
|
184
237
|
Close: string;
|
|
238
|
+
Confirm: string;
|
|
239
|
+
OK: string;
|
|
240
|
+
Cancel: string;
|
|
241
|
+
Abort: string;
|
|
242
|
+
Retry: string;
|
|
243
|
+
Ignore: string;
|
|
244
|
+
Yes: string;
|
|
245
|
+
No: string;
|
|
246
|
+
Try: string;
|
|
247
|
+
Continue: string;
|
|
185
248
|
Name: string;
|
|
186
249
|
Size: string;
|
|
187
250
|
Type: string;
|
|
@@ -210,6 +273,16 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
210
273
|
Show: string;
|
|
211
274
|
Remove: string;
|
|
212
275
|
Close: string;
|
|
276
|
+
Confirm: string;
|
|
277
|
+
OK: string;
|
|
278
|
+
Cancel: string;
|
|
279
|
+
Abort: string;
|
|
280
|
+
Retry: string;
|
|
281
|
+
Ignore: string;
|
|
282
|
+
Yes: string;
|
|
283
|
+
No: string;
|
|
284
|
+
Try: string;
|
|
285
|
+
Continue: string;
|
|
213
286
|
Name: string;
|
|
214
287
|
Size: string;
|
|
215
288
|
Type: string;
|
|
@@ -235,19 +308,27 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
235
308
|
goPrevious(): void;
|
|
236
309
|
canNext(): boolean;
|
|
237
310
|
goNext(): void;
|
|
238
|
-
|
|
239
|
-
|
|
311
|
+
getControl(name: string): Control | null;
|
|
312
|
+
getControlAs<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
240
313
|
get activeNav(): number;
|
|
241
314
|
set activeNav(value: number);
|
|
315
|
+
get language(): string;
|
|
316
|
+
set language(value: string);
|
|
242
317
|
getFormGroup(path: string | null): FormGroup;
|
|
243
318
|
getFormStatus(form: any, index: number): SirioStepperProgressStatus;
|
|
244
319
|
activateForm(title: string): void;
|
|
245
320
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
321
|
+
evaluateTemplate(value: string | null): string;
|
|
322
|
+
openForm(template: string, options: FormDialogOptions): void;
|
|
323
|
+
refresh(): void;
|
|
246
324
|
private valueChangesSubscription;
|
|
247
325
|
private onCommandSubscription;
|
|
248
326
|
private _forms;
|
|
249
327
|
private _activeNav;
|
|
328
|
+
private _language;
|
|
250
329
|
private defaultValue;
|
|
330
|
+
private onChangeSchema;
|
|
331
|
+
private onChangeValue;
|
|
251
332
|
private getNext;
|
|
252
333
|
private getPrevious;
|
|
253
334
|
private getMaxNav;
|
|
@@ -274,5 +355,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
274
355
|
private splitPath;
|
|
275
356
|
private hasValue;
|
|
276
357
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
277
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "
|
|
358
|
+
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; }; "language": { "alias": "language"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "onCommand": "onCommand"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
278
359
|
}
|
|
@@ -10,6 +10,16 @@ export declare const Texts: {
|
|
|
10
10
|
Show: string;
|
|
11
11
|
Remove: string;
|
|
12
12
|
Close: string;
|
|
13
|
+
Confirm: string;
|
|
14
|
+
OK: string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Abort: string;
|
|
17
|
+
Retry: string;
|
|
18
|
+
Ignore: string;
|
|
19
|
+
Yes: string;
|
|
20
|
+
No: string;
|
|
21
|
+
Try: string;
|
|
22
|
+
Continue: string;
|
|
13
23
|
Name: string;
|
|
14
24
|
Size: string;
|
|
15
25
|
Type: string;
|
|
@@ -10,6 +10,16 @@ export declare const Texts: {
|
|
|
10
10
|
Show: string;
|
|
11
11
|
Remove: string;
|
|
12
12
|
Close: string;
|
|
13
|
+
Confirm: string;
|
|
14
|
+
OK: string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Abort: string;
|
|
17
|
+
Retry: string;
|
|
18
|
+
Ignore: string;
|
|
19
|
+
Yes: string;
|
|
20
|
+
No: string;
|
|
21
|
+
Try: string;
|
|
22
|
+
Continue: string;
|
|
13
23
|
Name: string;
|
|
14
24
|
Size: string;
|
|
15
25
|
Type: string;
|
|
@@ -10,6 +10,16 @@ export declare const Texts: {
|
|
|
10
10
|
Show: string;
|
|
11
11
|
Remove: string;
|
|
12
12
|
Close: string;
|
|
13
|
+
Confirm: string;
|
|
14
|
+
OK: string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Abort: string;
|
|
17
|
+
Retry: string;
|
|
18
|
+
Ignore: string;
|
|
19
|
+
Yes: string;
|
|
20
|
+
No: string;
|
|
21
|
+
Try: string;
|
|
22
|
+
Continue: string;
|
|
13
23
|
Name: string;
|
|
14
24
|
Size: string;
|
|
15
25
|
Type: string;
|
|
@@ -10,6 +10,16 @@ export declare const Texts: {
|
|
|
10
10
|
Show: string;
|
|
11
11
|
Remove: string;
|
|
12
12
|
Close: string;
|
|
13
|
+
Confirm: string;
|
|
14
|
+
OK: string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Abort: string;
|
|
17
|
+
Retry: string;
|
|
18
|
+
Ignore: string;
|
|
19
|
+
Yes: string;
|
|
20
|
+
No: string;
|
|
21
|
+
Try: string;
|
|
22
|
+
Continue: string;
|
|
13
23
|
Name: string;
|
|
14
24
|
Size: string;
|
|
15
25
|
Type: string;
|
|
@@ -10,6 +10,16 @@ export declare const Texts: {
|
|
|
10
10
|
Show: string;
|
|
11
11
|
Remove: string;
|
|
12
12
|
Close: string;
|
|
13
|
+
Confirm: string;
|
|
14
|
+
OK: string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Abort: string;
|
|
17
|
+
Retry: string;
|
|
18
|
+
Ignore: string;
|
|
19
|
+
Yes: string;
|
|
20
|
+
No: string;
|
|
21
|
+
Try: string;
|
|
22
|
+
Continue: string;
|
|
13
23
|
Name: string;
|
|
14
24
|
Size: string;
|
|
15
25
|
Type: string;
|
|
@@ -10,6 +10,16 @@ export declare const Texts: {
|
|
|
10
10
|
Show: string;
|
|
11
11
|
Remove: string;
|
|
12
12
|
Close: string;
|
|
13
|
+
Confirm: string;
|
|
14
|
+
OK: string;
|
|
15
|
+
Cancel: string;
|
|
16
|
+
Abort: string;
|
|
17
|
+
Retry: string;
|
|
18
|
+
Ignore: string;
|
|
19
|
+
Yes: string;
|
|
20
|
+
No: string;
|
|
21
|
+
Try: string;
|
|
22
|
+
Continue: string;
|
|
13
23
|
Name: string;
|
|
14
24
|
Size: string;
|
|
15
25
|
Type: string;
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -12,6 +12,16 @@ export declare const Texts: {
|
|
|
12
12
|
Show: string;
|
|
13
13
|
Remove: string;
|
|
14
14
|
Close: string;
|
|
15
|
+
Confirm: string;
|
|
16
|
+
OK: string;
|
|
17
|
+
Cancel: string;
|
|
18
|
+
Abort: string;
|
|
19
|
+
Retry: string;
|
|
20
|
+
Ignore: string;
|
|
21
|
+
Yes: string;
|
|
22
|
+
No: string;
|
|
23
|
+
Try: string;
|
|
24
|
+
Continue: string;
|
|
15
25
|
Name: string;
|
|
16
26
|
Size: string;
|
|
17
27
|
Type: string;
|
|
@@ -40,6 +50,16 @@ export declare const Texts: {
|
|
|
40
50
|
Show: string;
|
|
41
51
|
Remove: string;
|
|
42
52
|
Close: string;
|
|
53
|
+
Confirm: string;
|
|
54
|
+
OK: string;
|
|
55
|
+
Cancel: string;
|
|
56
|
+
Abort: string;
|
|
57
|
+
Retry: string;
|
|
58
|
+
Ignore: string;
|
|
59
|
+
Yes: string;
|
|
60
|
+
No: string;
|
|
61
|
+
Try: string;
|
|
62
|
+
Continue: string;
|
|
43
63
|
Name: string;
|
|
44
64
|
Size: string;
|
|
45
65
|
Type: string;
|
|
@@ -68,6 +88,16 @@ export declare const Texts: {
|
|
|
68
88
|
Show: string;
|
|
69
89
|
Remove: string;
|
|
70
90
|
Close: string;
|
|
91
|
+
Confirm: string;
|
|
92
|
+
OK: string;
|
|
93
|
+
Cancel: string;
|
|
94
|
+
Abort: string;
|
|
95
|
+
Retry: string;
|
|
96
|
+
Ignore: string;
|
|
97
|
+
Yes: string;
|
|
98
|
+
No: string;
|
|
99
|
+
Try: string;
|
|
100
|
+
Continue: string;
|
|
71
101
|
Name: string;
|
|
72
102
|
Size: string;
|
|
73
103
|
Type: string;
|
|
@@ -96,6 +126,16 @@ export declare const Texts: {
|
|
|
96
126
|
Show: string;
|
|
97
127
|
Remove: string;
|
|
98
128
|
Close: string;
|
|
129
|
+
Confirm: string;
|
|
130
|
+
OK: string;
|
|
131
|
+
Cancel: string;
|
|
132
|
+
Abort: string;
|
|
133
|
+
Retry: string;
|
|
134
|
+
Ignore: string;
|
|
135
|
+
Yes: string;
|
|
136
|
+
No: string;
|
|
137
|
+
Try: string;
|
|
138
|
+
Continue: string;
|
|
99
139
|
Name: string;
|
|
100
140
|
Size: string;
|
|
101
141
|
Type: string;
|
|
@@ -124,6 +164,16 @@ export declare const Texts: {
|
|
|
124
164
|
Show: string;
|
|
125
165
|
Remove: string;
|
|
126
166
|
Close: string;
|
|
167
|
+
Confirm: string;
|
|
168
|
+
OK: string;
|
|
169
|
+
Cancel: string;
|
|
170
|
+
Abort: string;
|
|
171
|
+
Retry: string;
|
|
172
|
+
Ignore: string;
|
|
173
|
+
Yes: string;
|
|
174
|
+
No: string;
|
|
175
|
+
Try: string;
|
|
176
|
+
Continue: string;
|
|
127
177
|
Name: string;
|
|
128
178
|
Size: string;
|
|
129
179
|
Type: string;
|
|
@@ -152,6 +202,16 @@ export declare const Texts: {
|
|
|
152
202
|
Show: string;
|
|
153
203
|
Remove: string;
|
|
154
204
|
Close: string;
|
|
205
|
+
Confirm: string;
|
|
206
|
+
OK: string;
|
|
207
|
+
Cancel: string;
|
|
208
|
+
Abort: string;
|
|
209
|
+
Retry: string;
|
|
210
|
+
Ignore: string;
|
|
211
|
+
Yes: string;
|
|
212
|
+
No: string;
|
|
213
|
+
Try: string;
|
|
214
|
+
Continue: string;
|
|
155
215
|
Name: string;
|
|
156
216
|
Size: string;
|
|
157
217
|
Type: string;
|
|
@@ -180,6 +240,16 @@ export declare const Texts: {
|
|
|
180
240
|
Show: string;
|
|
181
241
|
Remove: string;
|
|
182
242
|
Close: string;
|
|
243
|
+
Confirm: string;
|
|
244
|
+
OK: string;
|
|
245
|
+
Cancel: string;
|
|
246
|
+
Abort: string;
|
|
247
|
+
Retry: string;
|
|
248
|
+
Ignore: string;
|
|
249
|
+
Yes: string;
|
|
250
|
+
No: string;
|
|
251
|
+
Try: string;
|
|
252
|
+
Continue: string;
|
|
183
253
|
Name: string;
|
|
184
254
|
Size: string;
|
|
185
255
|
Type: string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { SirioDialogService, DialogTypes, DialogSizes } from 'ngx-sirio-lib';
|
|
3
|
+
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DialogService implements IEvaluatorProvider {
|
|
6
|
+
private dialogService;
|
|
7
|
+
constructor(dialogService: SirioDialogService);
|
|
8
|
+
openDialog(formSchema: any, options?: FormDialogOptions): void;
|
|
9
|
+
alert(text: string, options?: DialogOptions): void;
|
|
10
|
+
info(text: string, options?: DialogOptions): void;
|
|
11
|
+
confirm(text: string, options?: DialogOptions): void;
|
|
12
|
+
getContext(): Record<string, any>;
|
|
13
|
+
private showDialog;
|
|
14
|
+
private createTextSchema;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
17
|
+
}
|
|
18
|
+
export interface DialogOptions {
|
|
19
|
+
type?: DialogTypes;
|
|
20
|
+
size?: DialogSizes;
|
|
21
|
+
title?: string;
|
|
22
|
+
isDrawer?: boolean;
|
|
23
|
+
closeButton?: boolean;
|
|
24
|
+
language?: string;
|
|
25
|
+
buttons?: DialogButtons;
|
|
26
|
+
onResult?: (result: DialogResult) => void;
|
|
27
|
+
}
|
|
28
|
+
export interface FormDialogOptions extends DialogOptions {
|
|
29
|
+
value?: any;
|
|
30
|
+
injector?: Injector;
|
|
31
|
+
showNav?: boolean;
|
|
32
|
+
showNavButton?: boolean;
|
|
33
|
+
showProgress?: boolean;
|
|
34
|
+
showFormTitle?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface DialogResult {
|
|
37
|
+
action: DialogAction;
|
|
38
|
+
value?: any;
|
|
39
|
+
}
|
|
40
|
+
export type DialogAction = 'OK' | 'Cancel' | 'Yes' | 'No' | 'Confirm' | 'Close' | 'Abort' | 'Retry' | 'Ignore' | 'Try' | 'Continue';
|
|
41
|
+
export type DialogButtons = 'OK' | 'OKCancel' | 'ConfirmCancel' | 'AbortRetryIgnore' | 'YesNoCancel' | 'YesNo' | 'RetryCancel' | 'CancelTryContinue';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { MetadataService } from '../services/metadata.service';
|
|
3
|
+
import { DialogService, DialogOptions } from '../services/dialog.service';
|
|
4
|
+
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FunctionService implements IEvaluatorProvider {
|
|
7
|
+
private metadata;
|
|
8
|
+
private dialog;
|
|
9
|
+
private injector;
|
|
10
|
+
constructor(metadata: MetadataService, dialog: DialogService, injector: Injector);
|
|
11
|
+
invokable(func: any): Function;
|
|
12
|
+
openForm(template: string, options: DialogOptions): void;
|
|
13
|
+
getContext(): Record<string, any>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FunctionService>;
|
|
16
|
+
}
|
|
@@ -9,6 +9,7 @@ export declare class GridService {
|
|
|
9
9
|
constructor(formatter: FormatterService, programmability: ProgrammabilityService);
|
|
10
10
|
getGridModules(): Module[];
|
|
11
11
|
getGridOptions(component: any, formGroup: FormGroup, language: string): GridOptions;
|
|
12
|
+
onGridSelectionChanged(component: any, formGroup: FormGroup, event: any): any;
|
|
12
13
|
private locale;
|
|
13
14
|
private getGridColumns;
|
|
14
15
|
private setCellDataType;
|
|
@@ -27,6 +28,8 @@ export declare class GridService {
|
|
|
27
28
|
private setPinned;
|
|
28
29
|
private setWidth;
|
|
29
30
|
private setValueFormatter;
|
|
31
|
+
private getRowSelection;
|
|
32
|
+
private onRowSelectable;
|
|
30
33
|
private getGridPaginable;
|
|
31
34
|
private getGridPageSize;
|
|
32
35
|
private getGridTexts;
|
|
@@ -4,10 +4,14 @@ export declare class MetadataService {
|
|
|
4
4
|
setSchema(schema: any): void;
|
|
5
5
|
getSchema(): any;
|
|
6
6
|
setForms(forms: any[]): void;
|
|
7
|
+
getTemplateByName(name: string): any;
|
|
7
8
|
getForms(): any[];
|
|
8
9
|
getFormByName(name: string): any;
|
|
10
|
+
setLanguage(language: string): void;
|
|
11
|
+
getLanguage(): string;
|
|
9
12
|
private schema;
|
|
10
13
|
private forms;
|
|
14
|
+
private language;
|
|
11
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataService, never>;
|
|
12
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<MetadataService>;
|
|
13
17
|
}
|
|
@@ -2,19 +2,22 @@ import { OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FeelService } from '../services/feel.service';
|
|
4
4
|
import { ScopeService } from '../services/scope.service';
|
|
5
|
-
import { ProxyService, ProxyConfigFn } from '../services/proxy.service';
|
|
6
5
|
import { RegisterService } from '../services/register.service';
|
|
7
6
|
import { ToastService } from '../services/toast.service';
|
|
7
|
+
import { FunctionService } from '../services/function.service';
|
|
8
|
+
import { DialogService } from '../services/dialog.service';
|
|
8
9
|
import { WeakService } from '../services/weak.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class ProgrammabilityService implements OnDestroy {
|
|
11
12
|
private feelService;
|
|
12
13
|
private weakService;
|
|
13
|
-
private proxyService;
|
|
14
14
|
private toastService;
|
|
15
|
+
private dialogService;
|
|
16
|
+
private functionService;
|
|
15
17
|
private register;
|
|
16
18
|
private scope;
|
|
17
|
-
constructor(feelService: FeelService, weakService: WeakService,
|
|
19
|
+
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, functionService: FunctionService, register: RegisterService, scope: ScopeService);
|
|
20
|
+
private readonly predefinedFunctions;
|
|
18
21
|
private destroy$;
|
|
19
22
|
ngOnDestroy(): void;
|
|
20
23
|
isExpression(text: string | null): boolean;
|
|
@@ -25,20 +28,25 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
25
28
|
evaluate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
26
29
|
evaluateTemplate(formGroup: FormGroup, value: string | null): any;
|
|
27
30
|
evaluateUnary(formGroup: FormGroup, value: string | null, input: any): any;
|
|
31
|
+
invalidate(value: string | null): void;
|
|
28
32
|
private cacheable;
|
|
29
33
|
private evalUnaryTest;
|
|
30
34
|
private evalExpression;
|
|
31
35
|
private evalTemplate;
|
|
32
|
-
private
|
|
36
|
+
private getPredefinedFunctions;
|
|
33
37
|
private getParentContext;
|
|
34
38
|
private getParent;
|
|
35
39
|
private getContext;
|
|
36
40
|
private watchExpression;
|
|
37
41
|
private watchDependencies;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
39
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProgrammabilityService>;
|
|
40
44
|
}
|
|
45
|
+
export interface IEvaluatorProvider {
|
|
46
|
+
getContext(): Record<string, any>;
|
|
47
|
+
}
|
|
41
48
|
export interface EvaluateOptions {
|
|
42
49
|
cacheable?: boolean;
|
|
43
|
-
|
|
50
|
+
extendContext?: ExtendContextFn;
|
|
44
51
|
}
|
|
52
|
+
export type ExtendContextFn = () => Record<string, any>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { Control } from '../controls/control';
|
|
2
|
-
import {
|
|
2
|
+
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RegisterService {
|
|
5
|
-
private proxyService;
|
|
4
|
+
export declare class RegisterService implements IEvaluatorProvider {
|
|
6
5
|
private parent;
|
|
7
|
-
constructor(
|
|
6
|
+
constructor(parent: RegisterService | null);
|
|
8
7
|
private controls;
|
|
9
8
|
register(name: string, control: Control): void;
|
|
10
9
|
unregister(name: string): void;
|
|
11
10
|
unregisterAll(): void;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
getContext(): Record<string, any>;
|
|
12
|
+
getControl(name: string): Control | null;
|
|
13
|
+
getControlAs<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
14
|
+
findControl(predicate: (control: Control) => boolean, firstOnly?: boolean, parent?: boolean): Control[];
|
|
15
|
+
private castString;
|
|
16
|
+
private resolveParent;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterService, [{ optional: true; skipSelf: true; }]>;
|
|
17
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<RegisterService>;
|
|
18
19
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScopeService {
|
|
4
|
-
private proxyService;
|
|
3
|
+
export declare class ScopeService implements IEvaluatorProvider {
|
|
5
4
|
private parent;
|
|
6
|
-
constructor(
|
|
5
|
+
constructor(parent: ScopeService | null);
|
|
7
6
|
private scope;
|
|
8
|
-
set(scope: Record<string, any>): void;
|
|
9
|
-
get(): any;
|
|
10
|
-
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, [
|
|
7
|
+
set(scope: Record<string, any> | null): void;
|
|
8
|
+
get(): Record<string, any> | null;
|
|
9
|
+
getContext(): Record<string, any>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, [{ optional: true; skipSelf: true; }]>;
|
|
12
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScopeService>;
|
|
13
12
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
1
2
|
import { SirioToastService } from "ngx-sirio-lib";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ToastService {
|
|
4
|
+
export declare class ToastService implements IEvaluatorProvider {
|
|
4
5
|
private sirioToast;
|
|
5
6
|
constructor(sirioToast: SirioToastService);
|
|
6
7
|
notifyInfo(message: string, delay?: number): void;
|
|
7
8
|
notifySuccess(message: string, delay?: number): void;
|
|
8
9
|
notifyWarning(message: string, delay?: number): void;
|
|
9
10
|
notifyError(message: string, delay?: number): void;
|
|
11
|
+
getContext(): Record<string, any>;
|
|
10
12
|
private notify;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
12
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
package/lib/utils/gridCells.d.ts
CHANGED
|
@@ -16,6 +16,16 @@ export declare class ObjectURLRendererComponent implements ICellRendererAngularC
|
|
|
16
16
|
Show: string;
|
|
17
17
|
Remove: string;
|
|
18
18
|
Close: string;
|
|
19
|
+
Confirm: string;
|
|
20
|
+
OK: string;
|
|
21
|
+
Cancel: string;
|
|
22
|
+
Abort: string;
|
|
23
|
+
Retry: string;
|
|
24
|
+
Ignore: string;
|
|
25
|
+
Yes: string;
|
|
26
|
+
No: string;
|
|
27
|
+
Try: string;
|
|
28
|
+
Continue: string;
|
|
19
29
|
Name: string;
|
|
20
30
|
Size: string;
|
|
21
31
|
Type: string;
|
|
@@ -52,6 +62,16 @@ export declare class DeleteRowCellRenderer implements ICellRendererAngularComp {
|
|
|
52
62
|
Show: string;
|
|
53
63
|
Remove: string;
|
|
54
64
|
Close: string;
|
|
65
|
+
Confirm: string;
|
|
66
|
+
OK: string;
|
|
67
|
+
Cancel: string;
|
|
68
|
+
Abort: string;
|
|
69
|
+
Retry: string;
|
|
70
|
+
Ignore: string;
|
|
71
|
+
Yes: string;
|
|
72
|
+
No: string;
|
|
73
|
+
Try: string;
|
|
74
|
+
Continue: string;
|
|
55
75
|
Name: string;
|
|
56
76
|
Size: string;
|
|
57
77
|
Type: string;
|