@wemake4u/form-player-se 1.0.31 → 1.0.33
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/components/actionsCellRenderer/actionsCellRenderer.component.mjs +29 -16
- package/esm2022/lib/components/hostCellRenderer/hostCellRenderer.component.mjs +3 -2
- package/esm2022/lib/directives/collapsepatch.directive.mjs +39 -0
- package/esm2022/lib/directives/grid.directive.mjs +82 -24
- package/esm2022/lib/directives/recursion.directive.mjs +189 -0
- package/esm2022/lib/directives/validationpatch.directive.mjs +46 -8
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +33 -15
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +30 -19
- 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 +89 -0
- package/esm2022/lib/services/dialog.service.mjs +2 -2
- package/esm2022/lib/services/form.service.mjs +38 -2
- package/esm2022/lib/services/formatter.service.mjs +2 -2
- package/esm2022/lib/services/function.service.mjs +14 -3
- package/esm2022/lib/services/grid.service.mjs +46 -26
- package/esm2022/lib/services/programmability.service.mjs +28 -31
- package/esm2022/lib/services/scope.service.mjs +3 -2
- package/esm2022/lib/services/toast.service.mjs +2 -2
- package/esm2022/lib/services/validation.service.mjs +2 -2
- package/esm2022/lib/services/weak.service.mjs +6 -1
- package/esm2022/lib/utils/bound.mjs +12 -0
- package/esm2022/lib/utils/groupByRow.mjs +2 -1
- package/esm2022/lib/utils/proxy.mjs +55 -0
- package/fesm2022/wemake4u-form-player-se.mjs +712 -162
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/components/actionsCellRenderer/actionsCellRenderer.component.d.ts +4 -0
- 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/grid.directive.d.ts +17 -4
- package/lib/directives/recursion.directive.d.ts +38 -0
- package/lib/directives/validationpatch.directive.d.ts +11 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +20 -4
- package/lib/dynamic-form/dynamic-form.component.d.ts +19 -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 +22 -0
- package/lib/services/form.service.d.ts +2 -0
- package/lib/services/function.service.d.ts +2 -0
- package/lib/services/grid.service.d.ts +11 -5
- package/lib/services/programmability.service.d.ts +4 -3
- package/lib/services/weak.service.d.ts +1 -0
- package/lib/utils/{functions.d.ts → bound.d.ts} +0 -1
- package/lib/utils/groupByRow.d.ts +1 -0
- package/lib/utils/proxy.d.ts +2 -0
- package/package.json +2 -2
- package/esm2022/lib/utils/functions.mjs +0 -31
|
@@ -10,9 +10,13 @@ export declare class ActionsCellRendererComponent implements ICellRendererAngula
|
|
|
10
10
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
11
11
|
evaluateString(value: string | null): string;
|
|
12
12
|
clickButton(action: any, event: any): any;
|
|
13
|
+
private cacheContext;
|
|
14
|
+
private getCacheControl;
|
|
15
|
+
private getOptions;
|
|
13
16
|
private getData;
|
|
14
17
|
private getRowIndex;
|
|
15
18
|
private getFormGroup;
|
|
19
|
+
private getCacheContext;
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsCellRendererComponent, never>;
|
|
17
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionsCellRendererComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
18
22
|
}
|
|
@@ -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
|
+
}
|
|
@@ -2,35 +2,48 @@ 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 { CacheContextService } from '../services/cache.service';
|
|
5
6
|
import { LanguageService } from '@wemake4u/interact';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class GridDirective implements OnChanges {
|
|
8
9
|
private grid;
|
|
9
10
|
private gridService;
|
|
11
|
+
private cacheContext;
|
|
10
12
|
private languageService;
|
|
11
13
|
rowSource: any;
|
|
12
14
|
columnDefs: any;
|
|
15
|
+
selectable: boolean | null;
|
|
16
|
+
multiSelect: boolean | null;
|
|
17
|
+
suppressActions: boolean | null;
|
|
13
18
|
formGroup: FormGroup;
|
|
14
19
|
component: any;
|
|
15
20
|
private destroyRef;
|
|
16
|
-
constructor(grid: AgGridAngular, gridService: GridService, languageService: LanguageService);
|
|
21
|
+
constructor(grid: AgGridAngular, gridService: GridService, cacheContext: CacheContextService, languageService: LanguageService);
|
|
17
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
23
|
private gridApi;
|
|
19
24
|
private isGridReady;
|
|
20
25
|
private noData;
|
|
26
|
+
private prepareContext;
|
|
21
27
|
private applyResult;
|
|
22
28
|
private setRowData;
|
|
23
29
|
private setDataSource;
|
|
24
30
|
private isArray;
|
|
25
31
|
private isDataSource;
|
|
26
32
|
private onGridReady;
|
|
27
|
-
private
|
|
33
|
+
private isRowSourceChanged;
|
|
34
|
+
private onRowSourceChanged;
|
|
35
|
+
private isColumnDefsChanged;
|
|
36
|
+
private onColumnDefsChanged;
|
|
37
|
+
private isSelectionChanged;
|
|
38
|
+
private onSelectionChanged;
|
|
39
|
+
private isSuppressActionChanged;
|
|
40
|
+
private onSuppressAction;
|
|
28
41
|
private showLoading;
|
|
29
42
|
private showLoadError;
|
|
30
43
|
private get language();
|
|
31
44
|
private locale;
|
|
32
45
|
private wrapObservable;
|
|
33
46
|
private wrapRowsSource;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }, null, null]>;
|
|
35
|
-
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>;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }, null, null, null]>;
|
|
48
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GridDirective, "[rowSource], [columnDefs], [selectable], [multiSelect], [suppressActions]", never, { "rowSource": { "alias": "rowSource"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "multiSelect": { "alias": "multiSelect"; "required": false; }; "suppressActions": { "alias": "suppressActions"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
49
|
}
|
|
@@ -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,7 +1,18 @@
|
|
|
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;
|
|
8
|
+
checkValidation(): void;
|
|
9
|
+
cleanupValidation(): void;
|
|
10
|
+
setValid(): void;
|
|
11
|
+
setInvalid(): void;
|
|
12
|
+
setWarning(): void;
|
|
13
|
+
setPending(): void;
|
|
14
|
+
private applyClass;
|
|
15
|
+
private getRenderer;
|
|
5
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationPatchDirective, never>;
|
|
6
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationPatchDirective, "[validation]", never, {}, {}, never, never, true, never>;
|
|
7
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, ElementRef, AfterViewInit
|
|
1
|
+
import { OnInit, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { IDynamicFieldsComponent } from './dynamic-fields.interface';
|
|
3
3
|
import { FormGroup, FormArray, AbstractControl } from '@angular/forms';
|
|
4
4
|
import { SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
|
|
@@ -36,10 +36,11 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
36
36
|
private chart;
|
|
37
37
|
private dialog;
|
|
38
38
|
private el;
|
|
39
|
-
private cdr;
|
|
40
39
|
rows: Array<any> | undefined;
|
|
41
40
|
formGroup: FormGroup;
|
|
42
41
|
alignment: string;
|
|
42
|
+
readOnly: boolean | null;
|
|
43
|
+
recursionLevel: number;
|
|
43
44
|
Texts: {
|
|
44
45
|
i18n: {
|
|
45
46
|
it: {
|
|
@@ -81,6 +82,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
81
82
|
CloseMenu: string;
|
|
82
83
|
LoadingFailed: string;
|
|
83
84
|
ConfirmDelete: string;
|
|
85
|
+
MoveUp: string;
|
|
86
|
+
MoveDown: string;
|
|
84
87
|
};
|
|
85
88
|
en: {
|
|
86
89
|
TypeToSearch: string;
|
|
@@ -121,6 +124,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
121
124
|
CloseMenu: string;
|
|
122
125
|
LoadingFailed: string;
|
|
123
126
|
ConfirmDelete: string;
|
|
127
|
+
MoveUp: string;
|
|
128
|
+
MoveDown: string;
|
|
124
129
|
};
|
|
125
130
|
de: {
|
|
126
131
|
TypeToSearch: string;
|
|
@@ -161,6 +166,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
161
166
|
CloseMenu: string;
|
|
162
167
|
LoadingFailed: string;
|
|
163
168
|
ConfirmDelete: string;
|
|
169
|
+
MoveUp: string;
|
|
170
|
+
MoveDown: string;
|
|
164
171
|
};
|
|
165
172
|
fr: {
|
|
166
173
|
TypeToSearch: string;
|
|
@@ -201,6 +208,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
201
208
|
CloseMenu: string;
|
|
202
209
|
LoadingFailed: string;
|
|
203
210
|
ConfirmDelete: string;
|
|
211
|
+
MoveUp: string;
|
|
212
|
+
MoveDown: string;
|
|
204
213
|
};
|
|
205
214
|
es: {
|
|
206
215
|
TypeToSearch: string;
|
|
@@ -241,6 +250,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
241
250
|
CloseMenu: string;
|
|
242
251
|
LoadingFailed: string;
|
|
243
252
|
ConfirmDelete: string;
|
|
253
|
+
MoveUp: string;
|
|
254
|
+
MoveDown: string;
|
|
244
255
|
};
|
|
245
256
|
pt: {
|
|
246
257
|
TypeToSearch: string;
|
|
@@ -281,6 +292,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
281
292
|
CloseMenu: string;
|
|
282
293
|
LoadingFailed: string;
|
|
283
294
|
ConfirmDelete: string;
|
|
295
|
+
MoveUp: string;
|
|
296
|
+
MoveDown: string;
|
|
284
297
|
};
|
|
285
298
|
};
|
|
286
299
|
TypeToSearch: string;
|
|
@@ -321,8 +334,10 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
321
334
|
CloseMenu: string;
|
|
322
335
|
LoadingFailed: string;
|
|
323
336
|
ConfirmDelete: string;
|
|
337
|
+
MoveUp: string;
|
|
338
|
+
MoveDown: string;
|
|
324
339
|
};
|
|
325
|
-
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
|
|
340
|
+
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
341
|
ngOnInit(): void;
|
|
327
342
|
ngAfterViewInit(): void;
|
|
328
343
|
getRegister(): RegisterService;
|
|
@@ -334,6 +349,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
334
349
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
335
350
|
evaluateNumber(value: number | string | null): number | null;
|
|
336
351
|
evaluateUrl(value: string | null): SafeResourceUrl;
|
|
352
|
+
evaluateHeight(value: number | string | null): string | null;
|
|
337
353
|
evaluateTemplate(value: string | null): string;
|
|
338
354
|
evaluate(text: string | null, cacheable?: boolean): any;
|
|
339
355
|
evaluateColor(value: string | null): ButtonColors | null;
|
|
@@ -395,5 +411,5 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
395
411
|
private getAsObservable;
|
|
396
412
|
private configureDatepicker;
|
|
397
413
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
398
|
-
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>;
|
|
414
|
+
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; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; }, {}, never, never, true, never>;
|
|
399
415
|
}
|
|
@@ -28,6 +28,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
28
28
|
private injector;
|
|
29
29
|
schema: any;
|
|
30
30
|
formGroup: FormGroup;
|
|
31
|
+
readOnly: boolean | null;
|
|
31
32
|
value: any;
|
|
32
33
|
strict: boolean;
|
|
33
34
|
showNav: boolean;
|
|
@@ -81,6 +82,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
81
82
|
CloseMenu: string;
|
|
82
83
|
LoadingFailed: string;
|
|
83
84
|
ConfirmDelete: string;
|
|
85
|
+
MoveUp: string;
|
|
86
|
+
MoveDown: string;
|
|
84
87
|
};
|
|
85
88
|
en: {
|
|
86
89
|
TypeToSearch: string;
|
|
@@ -121,6 +124,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
121
124
|
CloseMenu: string;
|
|
122
125
|
LoadingFailed: string;
|
|
123
126
|
ConfirmDelete: string;
|
|
127
|
+
MoveUp: string;
|
|
128
|
+
MoveDown: string;
|
|
124
129
|
};
|
|
125
130
|
de: {
|
|
126
131
|
TypeToSearch: string;
|
|
@@ -161,6 +166,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
161
166
|
CloseMenu: string;
|
|
162
167
|
LoadingFailed: string;
|
|
163
168
|
ConfirmDelete: string;
|
|
169
|
+
MoveUp: string;
|
|
170
|
+
MoveDown: string;
|
|
164
171
|
};
|
|
165
172
|
fr: {
|
|
166
173
|
TypeToSearch: string;
|
|
@@ -201,6 +208,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
201
208
|
CloseMenu: string;
|
|
202
209
|
LoadingFailed: string;
|
|
203
210
|
ConfirmDelete: string;
|
|
211
|
+
MoveUp: string;
|
|
212
|
+
MoveDown: string;
|
|
204
213
|
};
|
|
205
214
|
es: {
|
|
206
215
|
TypeToSearch: string;
|
|
@@ -241,6 +250,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
241
250
|
CloseMenu: string;
|
|
242
251
|
LoadingFailed: string;
|
|
243
252
|
ConfirmDelete: string;
|
|
253
|
+
MoveUp: string;
|
|
254
|
+
MoveDown: string;
|
|
244
255
|
};
|
|
245
256
|
pt: {
|
|
246
257
|
TypeToSearch: string;
|
|
@@ -281,6 +292,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
281
292
|
CloseMenu: string;
|
|
282
293
|
LoadingFailed: string;
|
|
283
294
|
ConfirmDelete: string;
|
|
295
|
+
MoveUp: string;
|
|
296
|
+
MoveDown: string;
|
|
284
297
|
};
|
|
285
298
|
};
|
|
286
299
|
TypeToSearch: string;
|
|
@@ -321,6 +334,8 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
321
334
|
CloseMenu: string;
|
|
322
335
|
LoadingFailed: string;
|
|
323
336
|
ConfirmDelete: string;
|
|
337
|
+
MoveUp: string;
|
|
338
|
+
MoveDown: string;
|
|
324
339
|
};
|
|
325
340
|
ngOnDestroy(): void;
|
|
326
341
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -344,7 +359,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
344
359
|
isChanged(): boolean;
|
|
345
360
|
isValid(): boolean;
|
|
346
361
|
private valueChangesSubscription;
|
|
347
|
-
private onCommandSubscription;
|
|
348
362
|
private _forms;
|
|
349
363
|
private _activeNav;
|
|
350
364
|
private defaultValue;
|
|
@@ -352,9 +366,11 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
352
366
|
private onChangeSchema;
|
|
353
367
|
private onChangeValue;
|
|
354
368
|
private suspendValueChanges;
|
|
355
|
-
private internalChange;
|
|
356
369
|
private registerHandlers;
|
|
357
370
|
private clearHandlers;
|
|
371
|
+
private emittedValues;
|
|
372
|
+
private isEmittedValue;
|
|
373
|
+
private emitValueChange;
|
|
358
374
|
refresh(): void;
|
|
359
375
|
private getNext;
|
|
360
376
|
private getPrevious;
|
|
@@ -379,5 +395,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
379
395
|
private getDefaultValue;
|
|
380
396
|
private splitPath;
|
|
381
397
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
382
|
-
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"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
398
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "readOnly": { "alias": "readOnly"; "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"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
383
399
|
}
|
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
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EvaluateOptions, ProgrammabilityService } from '../services/programmability.service';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CacheContextService {
|
|
5
|
+
private programmability;
|
|
6
|
+
constructor(programmability: ProgrammabilityService);
|
|
7
|
+
isExpression(text: string | null): boolean;
|
|
8
|
+
getExpression(text: string | null): string;
|
|
9
|
+
evaluateString(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): string;
|
|
10
|
+
evaluateBoolean(cacheControl: any, formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
11
|
+
evaluateNumber(cacheControl: any, formGroup: FormGroup, value: number | string | null, options?: EvaluateOptions): number | null;
|
|
12
|
+
evaluate(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
13
|
+
evaluateTemplate(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
14
|
+
evaluateUnary(cacheControl: any, formGroup: FormGroup, value: string | null, input: any, options?: EvaluateOptions): any;
|
|
15
|
+
invalidate(cacheControl: any): void;
|
|
16
|
+
invalidateAll(): void;
|
|
17
|
+
private getOptions;
|
|
18
|
+
private call;
|
|
19
|
+
private cache;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CacheContextService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CacheContextService>;
|
|
22
|
+
}
|
|
@@ -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
|
}
|
|
@@ -2,6 +2,7 @@ import { Injector } from '@angular/core';
|
|
|
2
2
|
import { MetadataService } from '../services/metadata.service';
|
|
3
3
|
import { DialogService, DialogOptions } from '../services/dialog.service';
|
|
4
4
|
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FunctionService implements IEvaluatorProvider {
|
|
7
8
|
private metadata;
|
|
@@ -9,6 +10,7 @@ export declare class FunctionService implements IEvaluatorProvider {
|
|
|
9
10
|
private injector;
|
|
10
11
|
constructor(metadata: MetadataService, dialog: DialogService, injector: Injector);
|
|
11
12
|
invokable(func: any): Function;
|
|
13
|
+
executeOnce<T>(observable: Observable<T>, callback: any): void;
|
|
12
14
|
openForm(template: string | object, options: DialogOptions): void;
|
|
13
15
|
getContext(): Record<string, any>;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionService, never>;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { Module, ColDef, GridOptions } from 'ag-grid-community';
|
|
1
|
+
import { Module, RowSelectionOptions, ColDef, GridOptions, GridApi } from 'ag-grid-community';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormatterService } from '../services/formatter.service';
|
|
4
4
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
5
|
+
import { WeakService } from '../services/weak.service';
|
|
5
6
|
import { LanguageService } from '@wemake4u/interact';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class GridService {
|
|
8
9
|
private formatter;
|
|
9
10
|
private languageService;
|
|
10
11
|
private programmability;
|
|
11
|
-
|
|
12
|
+
private weak;
|
|
13
|
+
constructor(formatter: FormatterService, languageService: LanguageService, programmability: ProgrammabilityService, weak: WeakService);
|
|
12
14
|
getModules(): Module[];
|
|
13
15
|
getOptions(component: any, formGroup: FormGroup): GridOptions;
|
|
14
16
|
getColumnDefs(component: any, columns: any, formGroup: FormGroup): ColDef[];
|
|
15
17
|
onSelectionChanged(component: any, formGroup: FormGroup, event: any): any;
|
|
18
|
+
getCacheKey(): string;
|
|
19
|
+
invalidateOptions(component: any): void;
|
|
16
20
|
private get language();
|
|
17
21
|
private locale;
|
|
18
|
-
|
|
22
|
+
resizeGrid(component: any, api: GridApi): void;
|
|
19
23
|
private hasActions;
|
|
20
24
|
private hasRowNumbers;
|
|
21
25
|
private createColumnDefs;
|
|
@@ -40,11 +44,13 @@ export declare class GridService {
|
|
|
40
44
|
private setPinned;
|
|
41
45
|
private setWidth;
|
|
42
46
|
private setValueFormatter;
|
|
43
|
-
|
|
47
|
+
getRowSelection(component: any, formGroup: FormGroup): RowSelectionOptions | undefined;
|
|
44
48
|
private onRowSelectable;
|
|
45
49
|
private onRowSelected;
|
|
46
50
|
private onRowSelecting;
|
|
47
|
-
private
|
|
51
|
+
private suppressActions;
|
|
52
|
+
private selectable;
|
|
53
|
+
private multiSelect;
|
|
48
54
|
private getPaginable;
|
|
49
55
|
private getPageSize;
|
|
50
56
|
private getTexts;
|
|
@@ -29,12 +29,12 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
29
29
|
ngOnDestroy(): void;
|
|
30
30
|
isExpression(text: string | null): boolean;
|
|
31
31
|
getExpression(text: string | null): string;
|
|
32
|
-
evaluateString(formGroup: FormGroup, value: string | null): string;
|
|
32
|
+
evaluateString(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): string;
|
|
33
33
|
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
34
|
-
evaluateNumber(formGroup: FormGroup, value: number | string | null): number | null;
|
|
34
|
+
evaluateNumber(formGroup: FormGroup, value: number | string | null, options?: EvaluateOptions): number | null;
|
|
35
35
|
evaluate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
36
36
|
evaluateTemplate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
37
|
-
evaluateUnary(formGroup: FormGroup, value: string | null, input: any): any;
|
|
37
|
+
evaluateUnary(formGroup: FormGroup, value: string | null, input: any, options?: EvaluateOptions): any;
|
|
38
38
|
invalidate(value: string | null): void;
|
|
39
39
|
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
|
|
40
40
|
getDependencies(expression: string): (string | string[])[];
|
|
@@ -69,6 +69,7 @@ export interface IEvaluatorProvider {
|
|
|
69
69
|
}
|
|
70
70
|
export interface EvaluateOptions {
|
|
71
71
|
cacheable?: boolean;
|
|
72
|
+
ignoreDeps?: boolean;
|
|
72
73
|
extendContext?: ExtendContextFn;
|
|
73
74
|
}
|
|
74
75
|
export type ExtendContextFn = () => Record<string, any>;
|