@wemake4u/form-player-se 1.0.32 → 1.0.34
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/directives/collapsepatch.directive.mjs +39 -0
- package/esm2022/lib/directives/dropdown.directive.mjs +3 -2
- package/esm2022/lib/directives/grid.directive.mjs +1 -1
- package/esm2022/lib/directives/recursion.directive.mjs +189 -0
- package/esm2022/lib/directives/validationpatch.directive.mjs +15 -19
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +18 -9
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +52 -23
- package/esm2022/lib/locale/locale-de.mjs +4 -2
- package/esm2022/lib/locale/locale-en.mjs +4 -2
- package/esm2022/lib/locale/locale-es.mjs +4 -2
- package/esm2022/lib/locale/locale-fr.mjs +4 -2
- package/esm2022/lib/locale/locale-it.mjs +4 -2
- package/esm2022/lib/locale/locale-pt.mjs +4 -2
- package/esm2022/lib/services/cache.service.mjs +7 -4
- package/esm2022/lib/services/compute.service.mjs +73 -0
- package/esm2022/lib/services/disable.service.mjs +19 -12
- package/esm2022/lib/services/event.service.mjs +2 -2
- package/esm2022/lib/services/form.service.mjs +38 -2
- package/esm2022/lib/services/function.service.mjs +7 -2
- package/esm2022/lib/services/grid.service.mjs +10 -1
- package/esm2022/lib/services/programmability.service.mjs +17 -10
- package/esm2022/lib/services/validation.service.mjs +2 -2
- package/esm2022/lib/utils/uuid.mjs +11 -0
- package/fesm2022/wemake4u-form-player-se.mjs +560 -157
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/components/deleteRowRenderer/deleteRowRenderer.component.d.ts +2 -0
- package/lib/components/objectURLRenderer/objectURLRenderer.component.d.ts +2 -0
- package/lib/components/setFilter/setFilter.component.d.ts +2 -0
- package/lib/dialog/dialog.component.d.ts +14 -0
- package/lib/directives/collapsepatch.directive.d.ts +9 -0
- package/lib/directives/recursion.directive.d.ts +38 -0
- package/lib/directives/validationpatch.directive.d.ts +3 -1
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +18 -1
- package/lib/dynamic-form/dynamic-form.component.d.ts +20 -3
- package/lib/locale/locale-de.d.ts +2 -0
- package/lib/locale/locale-en.d.ts +2 -0
- package/lib/locale/locale-es.d.ts +2 -0
- package/lib/locale/locale-fr.d.ts +2 -0
- package/lib/locale/locale-it.d.ts +2 -0
- package/lib/locale/locale-pt.d.ts +2 -0
- package/lib/locale/locale.d.ts +14 -0
- package/lib/services/cache.service.d.ts +2 -1
- package/lib/services/compute.service.d.ts +21 -0
- package/lib/services/disable.service.d.ts +3 -2
- package/lib/services/event.service.d.ts +1 -1
- package/lib/services/form.service.d.ts +2 -0
- package/lib/services/function.service.d.ts +1 -0
- package/lib/services/grid.service.d.ts +1 -0
- package/lib/services/programmability.service.d.ts +3 -1
- package/lib/services/validation.service.d.ts +1 -1
- package/lib/utils/uuid.d.ts +1 -0
- package/package.json +2 -2
|
@@ -41,6 +41,8 @@ export declare class DeleteRowRendererComponent implements ICellRendererAngularC
|
|
|
41
41
|
CloseMenu: string;
|
|
42
42
|
LoadingFailed: string;
|
|
43
43
|
ConfirmDelete: string;
|
|
44
|
+
MoveUp: string;
|
|
45
|
+
MoveDown: string;
|
|
44
46
|
};
|
|
45
47
|
agInit(params: any): void;
|
|
46
48
|
onClick(event: Event): void;
|
|
@@ -42,6 +42,8 @@ export declare class ObjectURLRendererComponent implements ICellRendererAngularC
|
|
|
42
42
|
CloseMenu: string;
|
|
43
43
|
LoadingFailed: string;
|
|
44
44
|
ConfirmDelete: string;
|
|
45
|
+
MoveUp: string;
|
|
46
|
+
MoveDown: string;
|
|
45
47
|
};
|
|
46
48
|
agInit(params: ICellRendererParams): void;
|
|
47
49
|
onClick(event: Event): void;
|
|
@@ -48,6 +48,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
48
48
|
CloseMenu: string;
|
|
49
49
|
LoadingFailed: string;
|
|
50
50
|
ConfirmDelete: string;
|
|
51
|
+
MoveUp: string;
|
|
52
|
+
MoveDown: string;
|
|
51
53
|
};
|
|
52
54
|
en: {
|
|
53
55
|
TypeToSearch: string;
|
|
@@ -88,6 +90,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
88
90
|
CloseMenu: string;
|
|
89
91
|
LoadingFailed: string;
|
|
90
92
|
ConfirmDelete: string;
|
|
93
|
+
MoveUp: string;
|
|
94
|
+
MoveDown: string;
|
|
91
95
|
};
|
|
92
96
|
de: {
|
|
93
97
|
TypeToSearch: string;
|
|
@@ -128,6 +132,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
128
132
|
CloseMenu: string;
|
|
129
133
|
LoadingFailed: string;
|
|
130
134
|
ConfirmDelete: string;
|
|
135
|
+
MoveUp: string;
|
|
136
|
+
MoveDown: string;
|
|
131
137
|
};
|
|
132
138
|
fr: {
|
|
133
139
|
TypeToSearch: string;
|
|
@@ -168,6 +174,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
168
174
|
CloseMenu: string;
|
|
169
175
|
LoadingFailed: string;
|
|
170
176
|
ConfirmDelete: string;
|
|
177
|
+
MoveUp: string;
|
|
178
|
+
MoveDown: string;
|
|
171
179
|
};
|
|
172
180
|
es: {
|
|
173
181
|
TypeToSearch: string;
|
|
@@ -208,6 +216,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
208
216
|
CloseMenu: string;
|
|
209
217
|
LoadingFailed: string;
|
|
210
218
|
ConfirmDelete: string;
|
|
219
|
+
MoveUp: string;
|
|
220
|
+
MoveDown: string;
|
|
211
221
|
};
|
|
212
222
|
pt: {
|
|
213
223
|
TypeToSearch: string;
|
|
@@ -248,6 +258,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
248
258
|
CloseMenu: string;
|
|
249
259
|
LoadingFailed: string;
|
|
250
260
|
ConfirmDelete: string;
|
|
261
|
+
MoveUp: string;
|
|
262
|
+
MoveDown: string;
|
|
251
263
|
};
|
|
252
264
|
};
|
|
253
265
|
TypeToSearch: string;
|
|
@@ -288,6 +300,8 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
288
300
|
CloseMenu: string;
|
|
289
301
|
LoadingFailed: string;
|
|
290
302
|
ConfirmDelete: string;
|
|
303
|
+
MoveUp: string;
|
|
304
|
+
MoveDown: string;
|
|
291
305
|
};
|
|
292
306
|
constructor(languageService: LanguageService);
|
|
293
307
|
ngOnInit(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SirioCollapseComponent } from 'ngx-sirio-lib';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CollapsePatchDirective {
|
|
4
|
+
private host;
|
|
5
|
+
constructor(host: SirioCollapseComponent);
|
|
6
|
+
get isOpen(): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapsePatchDirective, [{ host: true; }]>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapsePatchDirective, "[collapseExtension]", ["collapseExtension"], {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlContainer, FormArray, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CacheContextService } from '../services/cache.service';
|
|
4
|
+
import { FormService } from '../services/form.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RecursionDirective implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private controlContainer;
|
|
8
|
+
private formService;
|
|
9
|
+
private cacheContext;
|
|
10
|
+
formGroup: FormGroup;
|
|
11
|
+
component: any;
|
|
12
|
+
private subscription;
|
|
13
|
+
private componentRows;
|
|
14
|
+
private nestedFormGroup;
|
|
15
|
+
constructor(controlContainer: ControlContainer, formService: FormService, cacheContext: CacheContextService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
getItemsArray(formItem: FormGroup): FormArray | null;
|
|
20
|
+
getComponentRows(): any;
|
|
21
|
+
getFormGroup(formItem: FormGroup): FormGroup;
|
|
22
|
+
private isSubscribeRequired;
|
|
23
|
+
private isRecursionAllowed;
|
|
24
|
+
private isRecursionByKey;
|
|
25
|
+
private isRecursionByExpression;
|
|
26
|
+
private shouldCreateItems;
|
|
27
|
+
private subscribeToChanges;
|
|
28
|
+
private unsubscribeToChanges;
|
|
29
|
+
private onChangeArray;
|
|
30
|
+
private getFormArray;
|
|
31
|
+
private creatingItems;
|
|
32
|
+
private getArrayFromKey;
|
|
33
|
+
private getArrayFromExpression;
|
|
34
|
+
private createComponentRows;
|
|
35
|
+
private createNestedFormGroup;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecursionDirective, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RecursionDirective, "[recursion]", ["recursion"], { "formGroup": { "alias": "formGroup"; "required": false; }; "component": { "alias": "recursion"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { SirioValidationDirective } from 'ngx-sirio-lib';
|
|
2
|
+
import { FormService } from '../services/form.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ValidationPatchDirective extends SirioValidationDirective {
|
|
5
|
+
private formService;
|
|
6
|
+
constructor(formService: FormService);
|
|
4
7
|
subscribeToNgControlChanges(): void;
|
|
5
8
|
checkValidation(): void;
|
|
6
9
|
cleanupValidation(): void;
|
|
@@ -9,7 +12,6 @@ export declare class ValidationPatchDirective extends SirioValidationDirective {
|
|
|
9
12
|
setWarning(): void;
|
|
10
13
|
setPending(): void;
|
|
11
14
|
private applyClass;
|
|
12
|
-
private waitUntilSettled;
|
|
13
15
|
private getRenderer;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationPatchDirective, never>;
|
|
15
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationPatchDirective, "[validation]", never, {}, {}, never, never, true, never>;
|
|
@@ -20,6 +20,7 @@ import { SirioFileUploadComponent, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
|
20
20
|
import { Module, GridOptions } from 'ag-grid-community';
|
|
21
21
|
import { AgChartOptions } from 'ag-charts-community';
|
|
22
22
|
import { LanguageService } from '@wemake4u/interact';
|
|
23
|
+
import { DynamicFormComponent } from '../dynamic-form/dynamic-form.component';
|
|
23
24
|
import * as i0 from "@angular/core";
|
|
24
25
|
export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, IDynamicFieldsComponent {
|
|
25
26
|
private sanitizer;
|
|
@@ -36,10 +37,12 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
36
37
|
private chart;
|
|
37
38
|
private dialog;
|
|
38
39
|
private el;
|
|
40
|
+
form: DynamicFormComponent;
|
|
39
41
|
rows: Array<any> | undefined;
|
|
40
42
|
formGroup: FormGroup;
|
|
41
43
|
alignment: string;
|
|
42
44
|
readOnly: boolean | null;
|
|
45
|
+
recursionLevel: number;
|
|
43
46
|
Texts: {
|
|
44
47
|
i18n: {
|
|
45
48
|
it: {
|
|
@@ -81,6 +84,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
81
84
|
CloseMenu: string;
|
|
82
85
|
LoadingFailed: string;
|
|
83
86
|
ConfirmDelete: string;
|
|
87
|
+
MoveUp: string;
|
|
88
|
+
MoveDown: string;
|
|
84
89
|
};
|
|
85
90
|
en: {
|
|
86
91
|
TypeToSearch: string;
|
|
@@ -121,6 +126,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
121
126
|
CloseMenu: string;
|
|
122
127
|
LoadingFailed: string;
|
|
123
128
|
ConfirmDelete: string;
|
|
129
|
+
MoveUp: string;
|
|
130
|
+
MoveDown: string;
|
|
124
131
|
};
|
|
125
132
|
de: {
|
|
126
133
|
TypeToSearch: string;
|
|
@@ -161,6 +168,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
161
168
|
CloseMenu: string;
|
|
162
169
|
LoadingFailed: string;
|
|
163
170
|
ConfirmDelete: string;
|
|
171
|
+
MoveUp: string;
|
|
172
|
+
MoveDown: string;
|
|
164
173
|
};
|
|
165
174
|
fr: {
|
|
166
175
|
TypeToSearch: string;
|
|
@@ -201,6 +210,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
201
210
|
CloseMenu: string;
|
|
202
211
|
LoadingFailed: string;
|
|
203
212
|
ConfirmDelete: string;
|
|
213
|
+
MoveUp: string;
|
|
214
|
+
MoveDown: string;
|
|
204
215
|
};
|
|
205
216
|
es: {
|
|
206
217
|
TypeToSearch: string;
|
|
@@ -241,6 +252,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
241
252
|
CloseMenu: string;
|
|
242
253
|
LoadingFailed: string;
|
|
243
254
|
ConfirmDelete: string;
|
|
255
|
+
MoveUp: string;
|
|
256
|
+
MoveDown: string;
|
|
244
257
|
};
|
|
245
258
|
pt: {
|
|
246
259
|
TypeToSearch: string;
|
|
@@ -281,6 +294,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
281
294
|
CloseMenu: string;
|
|
282
295
|
LoadingFailed: string;
|
|
283
296
|
ConfirmDelete: string;
|
|
297
|
+
MoveUp: string;
|
|
298
|
+
MoveDown: string;
|
|
284
299
|
};
|
|
285
300
|
};
|
|
286
301
|
TypeToSearch: string;
|
|
@@ -321,6 +336,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
321
336
|
CloseMenu: string;
|
|
322
337
|
LoadingFailed: string;
|
|
323
338
|
ConfirmDelete: string;
|
|
339
|
+
MoveUp: string;
|
|
340
|
+
MoveDown: string;
|
|
324
341
|
};
|
|
325
342
|
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, formService: FormService, grid: GridService, chart: ChartService, dialog: DialogService, el: ElementRef);
|
|
326
343
|
ngOnInit(): void;
|
|
@@ -396,5 +413,5 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
396
413
|
private getAsObservable;
|
|
397
414
|
private configureDatepicker;
|
|
398
415
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
399
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
416
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; }, {}, never, never, true, never>;
|
|
400
417
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, SimpleChanges, EventEmitter, ElementRef, Injector } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
|
+
import { IEvaluatorProvider, ProgrammabilityService } from '../services/programmability.service';
|
|
4
4
|
import { ValidationService } from '../services/validation.service';
|
|
5
5
|
import { DisableService } from '../services/disable.service';
|
|
6
6
|
import { StatusService } from '../services/status.service';
|
|
7
7
|
import { EventService } from '../services/event.service';
|
|
8
|
+
import { ComputeService } from '../services/compute.service';
|
|
8
9
|
import { MetadataService } from '../services/metadata.service';
|
|
9
10
|
import { FormService } from '../services/form.service';
|
|
10
11
|
import { DialogService, FormDialogOptions } from '../services/dialog.service';
|
|
@@ -13,11 +14,12 @@ import { RegisterService } from '../services/register.service';
|
|
|
13
14
|
import { Control } from '../controls/control';
|
|
14
15
|
import { LanguageService } from '@wemake4u/interact';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
|
-
export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
17
|
+
export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEvaluatorProvider {
|
|
17
18
|
private fb;
|
|
18
19
|
private programmability;
|
|
19
20
|
private validationService;
|
|
20
21
|
private disableService;
|
|
22
|
+
private computeService;
|
|
21
23
|
private statusService;
|
|
22
24
|
private eventService;
|
|
23
25
|
private registerService;
|
|
@@ -40,7 +42,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
40
42
|
initialized: EventEmitter<FormGroup<any>>;
|
|
41
43
|
activeNavChange: EventEmitter<any>;
|
|
42
44
|
formDiv: ElementRef<HTMLDivElement>;
|
|
43
|
-
constructor(fb: FormBuilder, programmability: ProgrammabilityService, validationService: ValidationService, disableService: DisableService, statusService: StatusService, eventService: EventService, registerService: RegisterService, languageService: LanguageService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
45
|
+
constructor(fb: FormBuilder, programmability: ProgrammabilityService, validationService: ValidationService, disableService: DisableService, computeService: ComputeService, statusService: StatusService, eventService: EventService, registerService: RegisterService, languageService: LanguageService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
44
46
|
Texts: {
|
|
45
47
|
i18n: {
|
|
46
48
|
it: {
|
|
@@ -82,6 +84,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
82
84
|
CloseMenu: string;
|
|
83
85
|
LoadingFailed: string;
|
|
84
86
|
ConfirmDelete: string;
|
|
87
|
+
MoveUp: string;
|
|
88
|
+
MoveDown: string;
|
|
85
89
|
};
|
|
86
90
|
en: {
|
|
87
91
|
TypeToSearch: string;
|
|
@@ -122,6 +126,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
122
126
|
CloseMenu: string;
|
|
123
127
|
LoadingFailed: string;
|
|
124
128
|
ConfirmDelete: string;
|
|
129
|
+
MoveUp: string;
|
|
130
|
+
MoveDown: string;
|
|
125
131
|
};
|
|
126
132
|
de: {
|
|
127
133
|
TypeToSearch: string;
|
|
@@ -162,6 +168,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
162
168
|
CloseMenu: string;
|
|
163
169
|
LoadingFailed: string;
|
|
164
170
|
ConfirmDelete: string;
|
|
171
|
+
MoveUp: string;
|
|
172
|
+
MoveDown: string;
|
|
165
173
|
};
|
|
166
174
|
fr: {
|
|
167
175
|
TypeToSearch: string;
|
|
@@ -202,6 +210,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
202
210
|
CloseMenu: string;
|
|
203
211
|
LoadingFailed: string;
|
|
204
212
|
ConfirmDelete: string;
|
|
213
|
+
MoveUp: string;
|
|
214
|
+
MoveDown: string;
|
|
205
215
|
};
|
|
206
216
|
es: {
|
|
207
217
|
TypeToSearch: string;
|
|
@@ -242,6 +252,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
242
252
|
CloseMenu: string;
|
|
243
253
|
LoadingFailed: string;
|
|
244
254
|
ConfirmDelete: string;
|
|
255
|
+
MoveUp: string;
|
|
256
|
+
MoveDown: string;
|
|
245
257
|
};
|
|
246
258
|
pt: {
|
|
247
259
|
TypeToSearch: string;
|
|
@@ -282,6 +294,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
282
294
|
CloseMenu: string;
|
|
283
295
|
LoadingFailed: string;
|
|
284
296
|
ConfirmDelete: string;
|
|
297
|
+
MoveUp: string;
|
|
298
|
+
MoveDown: string;
|
|
285
299
|
};
|
|
286
300
|
};
|
|
287
301
|
TypeToSearch: string;
|
|
@@ -322,6 +336,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
322
336
|
CloseMenu: string;
|
|
323
337
|
LoadingFailed: string;
|
|
324
338
|
ConfirmDelete: string;
|
|
339
|
+
MoveUp: string;
|
|
340
|
+
MoveDown: string;
|
|
325
341
|
};
|
|
326
342
|
ngOnDestroy(): void;
|
|
327
343
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -344,6 +360,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
344
360
|
openForm(template: string, options: FormDialogOptions): void;
|
|
345
361
|
isChanged(): boolean;
|
|
346
362
|
isValid(): boolean;
|
|
363
|
+
getContext(): Record<string, any>;
|
|
347
364
|
private valueChangesSubscription;
|
|
348
365
|
private _forms;
|
|
349
366
|
private _activeNav;
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export declare const Texts: {
|
|
|
39
39
|
CloseMenu: string;
|
|
40
40
|
LoadingFailed: string;
|
|
41
41
|
ConfirmDelete: string;
|
|
42
|
+
MoveUp: string;
|
|
43
|
+
MoveDown: string;
|
|
42
44
|
};
|
|
43
45
|
en: {
|
|
44
46
|
TypeToSearch: string;
|
|
@@ -79,6 +81,8 @@ export declare const Texts: {
|
|
|
79
81
|
CloseMenu: string;
|
|
80
82
|
LoadingFailed: string;
|
|
81
83
|
ConfirmDelete: string;
|
|
84
|
+
MoveUp: string;
|
|
85
|
+
MoveDown: string;
|
|
82
86
|
};
|
|
83
87
|
de: {
|
|
84
88
|
TypeToSearch: string;
|
|
@@ -119,6 +123,8 @@ export declare const Texts: {
|
|
|
119
123
|
CloseMenu: string;
|
|
120
124
|
LoadingFailed: string;
|
|
121
125
|
ConfirmDelete: string;
|
|
126
|
+
MoveUp: string;
|
|
127
|
+
MoveDown: string;
|
|
122
128
|
};
|
|
123
129
|
fr: {
|
|
124
130
|
TypeToSearch: string;
|
|
@@ -159,6 +165,8 @@ export declare const Texts: {
|
|
|
159
165
|
CloseMenu: string;
|
|
160
166
|
LoadingFailed: string;
|
|
161
167
|
ConfirmDelete: string;
|
|
168
|
+
MoveUp: string;
|
|
169
|
+
MoveDown: string;
|
|
162
170
|
};
|
|
163
171
|
es: {
|
|
164
172
|
TypeToSearch: string;
|
|
@@ -199,6 +207,8 @@ export declare const Texts: {
|
|
|
199
207
|
CloseMenu: string;
|
|
200
208
|
LoadingFailed: string;
|
|
201
209
|
ConfirmDelete: string;
|
|
210
|
+
MoveUp: string;
|
|
211
|
+
MoveDown: string;
|
|
202
212
|
};
|
|
203
213
|
pt: {
|
|
204
214
|
TypeToSearch: string;
|
|
@@ -239,6 +249,8 @@ export declare const Texts: {
|
|
|
239
249
|
CloseMenu: string;
|
|
240
250
|
LoadingFailed: string;
|
|
241
251
|
ConfirmDelete: string;
|
|
252
|
+
MoveUp: string;
|
|
253
|
+
MoveDown: string;
|
|
242
254
|
};
|
|
243
255
|
};
|
|
244
256
|
TypeToSearch: string;
|
|
@@ -279,4 +291,6 @@ export declare const Texts: {
|
|
|
279
291
|
CloseMenu: string;
|
|
280
292
|
LoadingFailed: string;
|
|
281
293
|
ConfirmDelete: string;
|
|
294
|
+
MoveUp: string;
|
|
295
|
+
MoveDown: string;
|
|
282
296
|
};
|
|
@@ -4,6 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class CacheContextService {
|
|
5
5
|
private programmability;
|
|
6
6
|
constructor(programmability: ProgrammabilityService);
|
|
7
|
+
isExpression(text: string | null): boolean;
|
|
8
|
+
getExpression(text: string | null): string;
|
|
7
9
|
evaluateString(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): string;
|
|
8
10
|
evaluateBoolean(cacheControl: any, formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
9
11
|
evaluateNumber(cacheControl: any, formGroup: FormGroup, value: number | string | null, options?: EvaluateOptions): number | null;
|
|
@@ -14,7 +16,6 @@ export declare class CacheContextService {
|
|
|
14
16
|
invalidateAll(): void;
|
|
15
17
|
private getOptions;
|
|
16
18
|
private call;
|
|
17
|
-
private isExpression;
|
|
18
19
|
private cache;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CacheContextService, never>;
|
|
20
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<CacheContextService>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ProgrammabilityService } from './programmability.service';
|
|
2
|
+
import { FormService } from './form.service';
|
|
3
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ComputeService {
|
|
6
|
+
private programmability;
|
|
7
|
+
private formService;
|
|
8
|
+
constructor(programmability: ProgrammabilityService, formService: FormService);
|
|
9
|
+
createCollection(): ComputeCollection;
|
|
10
|
+
addToCollection(collection: ComputeCollection, control: AbstractControl, parentGroup: FormGroup, component: any): void;
|
|
11
|
+
setupCollection(collection: ComputeCollection): void;
|
|
12
|
+
private applyExpression;
|
|
13
|
+
private getPath;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComputeService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComputeService>;
|
|
16
|
+
}
|
|
17
|
+
export interface ComputeContext {
|
|
18
|
+
parentGroup: FormGroup;
|
|
19
|
+
component: any;
|
|
20
|
+
}
|
|
21
|
+
export type ComputeCollection = Map<AbstractControl, ComputeContext>;
|
|
@@ -7,15 +7,16 @@ export declare class DisableService {
|
|
|
7
7
|
private formService;
|
|
8
8
|
constructor(programmability: ProgrammabilityService, formService: FormService);
|
|
9
9
|
createCollection(): DisableCollection;
|
|
10
|
-
addToCollection(collection: DisableCollection, control: AbstractControl, parentGroup: FormGroup,
|
|
10
|
+
addToCollection(collection: DisableCollection, control: AbstractControl, parentGroup: FormGroup, component: any): void;
|
|
11
11
|
setupCollection(collection: DisableCollection): void;
|
|
12
12
|
private applyRule;
|
|
13
|
+
private isAllowedValue;
|
|
13
14
|
private getPath;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DisableService, never>;
|
|
15
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<DisableService>;
|
|
16
17
|
}
|
|
17
18
|
export interface DisableContext {
|
|
18
19
|
parentGroup: FormGroup;
|
|
19
|
-
|
|
20
|
+
component: any;
|
|
20
21
|
}
|
|
21
22
|
export type DisableCollection = Map<AbstractControl, DisableContext>;
|
|
@@ -6,7 +6,7 @@ export declare class EventService {
|
|
|
6
6
|
constructor(programmability: ProgrammabilityService);
|
|
7
7
|
suppress: boolean;
|
|
8
8
|
createCollection(): EventCollection;
|
|
9
|
-
addToCollection(collection: EventCollection, control: AbstractControl,
|
|
9
|
+
addToCollection(collection: EventCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
10
10
|
setupCollection(collection: EventCollection): void;
|
|
11
11
|
private processHandler;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
@@ -40,6 +40,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
40
40
|
getPath(control: AbstractControl): (string | number)[];
|
|
41
41
|
waitForControl(formGroup: FormGroup, path: Path, pathOptions?: PathOptions): Observable<AbstractControl>;
|
|
42
42
|
getContext(formGroup: any): Record<string, any>;
|
|
43
|
+
statusChanges(control: AbstractControl, waitForPending?: () => void): Observable<FormControlStatus>;
|
|
43
44
|
private applyPath;
|
|
44
45
|
private asObject;
|
|
45
46
|
private asArray;
|
|
@@ -52,6 +53,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
52
53
|
private collectErrors;
|
|
53
54
|
private setUnknown;
|
|
54
55
|
private isUnknown;
|
|
56
|
+
private waitUntilSettled;
|
|
55
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
56
58
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
57
59
|
}
|
|
@@ -12,6 +12,7 @@ export declare class FunctionService implements IEvaluatorProvider {
|
|
|
12
12
|
invokable(func: any): Function;
|
|
13
13
|
executeOnce<T>(observable: Observable<T>, callback: any): void;
|
|
14
14
|
openForm(template: string | object, options: DialogOptions): void;
|
|
15
|
+
newGuid(): string;
|
|
15
16
|
getContext(): Record<string, any>;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionService, never>;
|
|
17
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<FunctionService>;
|
|
@@ -24,9 +24,11 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
24
24
|
private register;
|
|
25
25
|
private scope;
|
|
26
26
|
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, formatterService: FormatterService, functionService: FunctionService, formService: FormService, globalService: GlobalService, register: RegisterService, scope: ScopeService);
|
|
27
|
-
private
|
|
27
|
+
private predefinedFunctions;
|
|
28
28
|
private destroy$;
|
|
29
|
+
private evaluatorProviders;
|
|
29
30
|
ngOnDestroy(): void;
|
|
31
|
+
addEvaluatorProviders(evaluatorProvider: IEvaluatorProvider): void;
|
|
30
32
|
isExpression(text: string | null): boolean;
|
|
31
33
|
getExpression(text: string | null): string;
|
|
32
34
|
evaluateString(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): string;
|
|
@@ -8,7 +8,7 @@ export declare class ValidationService {
|
|
|
8
8
|
constructor(languageService: LanguageService, programmability: ProgrammabilityService);
|
|
9
9
|
suppress: boolean;
|
|
10
10
|
createCollection(): ValidationCollection;
|
|
11
|
-
addToCollection(collection: ValidationCollection, control: AbstractControl,
|
|
11
|
+
addToCollection(collection: ValidationCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
12
12
|
setupCollection(collection: ValidationCollection): void;
|
|
13
13
|
private getRules;
|
|
14
14
|
private validateRules;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateGuid(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wemake4u/form-player-se",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^18.2.0",
|
|
6
6
|
"@angular/common": "^18.2.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"ag-charts-community": "^11.3.2",
|
|
16
16
|
"ngx-sirio-lib": "^1.2.6-A16",
|
|
17
17
|
"util": "^0.12.5",
|
|
18
|
-
"@wemake4u/interact": "^1.0.
|
|
18
|
+
"@wemake4u/interact": "^1.0.5"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"tslib": "^2.3.0",
|