@wemake4u/form-player-se 1.0.30 → 1.0.32
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/common/path.mjs +35 -0
- package/esm2022/lib/components/actionsCellRenderer/actionsCellRenderer.component.mjs +29 -16
- package/esm2022/lib/components/hostCellRenderer/hostCellRenderer.component.mjs +3 -2
- package/esm2022/lib/directives/grid.directive.mjs +82 -24
- package/esm2022/lib/directives/repeat.directive.mjs +1 -5
- package/esm2022/lib/directives/tabitem.directive.mjs +26 -0
- package/esm2022/lib/directives/validationpatch.directive.mjs +44 -2
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +94 -15
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +60 -38
- package/esm2022/lib/locale/locale-de.mjs +3 -2
- package/esm2022/lib/locale/locale-en.mjs +3 -2
- package/esm2022/lib/locale/locale-es.mjs +3 -2
- package/esm2022/lib/locale/locale-fr.mjs +3 -2
- package/esm2022/lib/locale/locale-it.mjs +3 -2
- package/esm2022/lib/locale/locale-pt.mjs +3 -2
- package/esm2022/lib/services/cache.service.mjs +86 -0
- package/esm2022/lib/services/dialog.service.mjs +2 -2
- package/esm2022/lib/services/form.service.mjs +41 -18
- 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 +80 -45
- package/esm2022/lib/services/scope.service.mjs +9 -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/isMeaningful.mjs +13 -0
- package/esm2022/lib/utils/proxy.mjs +55 -0
- package/fesm2022/wemake4u-form-player-se.mjs +702 -207
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/common/path.d.ts +4 -0
- package/lib/components/actionsCellRenderer/actionsCellRenderer.component.d.ts +4 -0
- package/lib/components/deleteRowRenderer/deleteRowRenderer.component.d.ts +1 -0
- package/lib/components/objectURLRenderer/objectURLRenderer.component.d.ts +1 -0
- package/lib/components/setFilter/setFilter.component.d.ts +1 -0
- package/lib/dialog/dialog.component.d.ts +7 -0
- package/lib/directives/grid.directive.d.ts +17 -4
- package/lib/directives/tabitem.directive.d.ts +9 -0
- package/lib/directives/validationpatch.directive.d.ts +9 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +29 -5
- package/lib/dynamic-form/dynamic-form.component.d.ts +16 -6
- package/lib/locale/locale-de.d.ts +1 -0
- package/lib/locale/locale-en.d.ts +1 -0
- package/lib/locale/locale-es.d.ts +1 -0
- package/lib/locale/locale-fr.d.ts +1 -0
- package/lib/locale/locale-it.d.ts +1 -0
- package/lib/locale/locale-pt.d.ts +1 -0
- package/lib/locale/locale.d.ts +7 -0
- package/lib/services/cache.service.d.ts +21 -0
- package/lib/services/form.service.d.ts +7 -2
- 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 +5 -4
- package/lib/services/scope.service.d.ts +5 -0
- 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/isMeaningful.d.ts +1 -0
- package/lib/utils/proxy.d.ts +2 -0
- package/package.json +1 -1
- 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
|
}
|
|
@@ -47,6 +47,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
47
47
|
OpenMenu: string;
|
|
48
48
|
CloseMenu: string;
|
|
49
49
|
LoadingFailed: string;
|
|
50
|
+
ConfirmDelete: string;
|
|
50
51
|
};
|
|
51
52
|
en: {
|
|
52
53
|
TypeToSearch: string;
|
|
@@ -86,6 +87,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
86
87
|
OpenMenu: string;
|
|
87
88
|
CloseMenu: string;
|
|
88
89
|
LoadingFailed: string;
|
|
90
|
+
ConfirmDelete: string;
|
|
89
91
|
};
|
|
90
92
|
de: {
|
|
91
93
|
TypeToSearch: string;
|
|
@@ -125,6 +127,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
125
127
|
OpenMenu: string;
|
|
126
128
|
CloseMenu: string;
|
|
127
129
|
LoadingFailed: string;
|
|
130
|
+
ConfirmDelete: string;
|
|
128
131
|
};
|
|
129
132
|
fr: {
|
|
130
133
|
TypeToSearch: string;
|
|
@@ -164,6 +167,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
164
167
|
OpenMenu: string;
|
|
165
168
|
CloseMenu: string;
|
|
166
169
|
LoadingFailed: string;
|
|
170
|
+
ConfirmDelete: string;
|
|
167
171
|
};
|
|
168
172
|
es: {
|
|
169
173
|
TypeToSearch: string;
|
|
@@ -203,6 +207,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
203
207
|
OpenMenu: string;
|
|
204
208
|
CloseMenu: string;
|
|
205
209
|
LoadingFailed: string;
|
|
210
|
+
ConfirmDelete: string;
|
|
206
211
|
};
|
|
207
212
|
pt: {
|
|
208
213
|
TypeToSearch: string;
|
|
@@ -242,6 +247,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
242
247
|
OpenMenu: string;
|
|
243
248
|
CloseMenu: string;
|
|
244
249
|
LoadingFailed: string;
|
|
250
|
+
ConfirmDelete: string;
|
|
245
251
|
};
|
|
246
252
|
};
|
|
247
253
|
TypeToSearch: string;
|
|
@@ -281,6 +287,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
281
287
|
OpenMenu: string;
|
|
282
288
|
CloseMenu: string;
|
|
283
289
|
LoadingFailed: string;
|
|
290
|
+
ConfirmDelete: string;
|
|
284
291
|
};
|
|
285
292
|
constructor(languageService: LanguageService);
|
|
286
293
|
ngOnInit(): void;
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TabItemDirective implements OnChanges {
|
|
4
|
+
componentRef: any;
|
|
5
|
+
disabled: any;
|
|
6
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabItemDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabItemDirective, "[tabItem]", never, { "componentRef": { "alias": "componentRef"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -2,6 +2,15 @@ import { SirioValidationDirective } from 'ngx-sirio-lib';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ValidationPatchDirective extends SirioValidationDirective {
|
|
4
4
|
subscribeToNgControlChanges(): void;
|
|
5
|
+
checkValidation(): void;
|
|
6
|
+
cleanupValidation(): void;
|
|
7
|
+
setValid(): void;
|
|
8
|
+
setInvalid(): void;
|
|
9
|
+
setWarning(): void;
|
|
10
|
+
setPending(): void;
|
|
11
|
+
private applyClass;
|
|
12
|
+
private waitUntilSettled;
|
|
13
|
+
private getRenderer;
|
|
5
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationPatchDirective, never>;
|
|
6
15
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationPatchDirective, "[validation]", never, {}, {}, never, never, true, never>;
|
|
7
16
|
}
|
|
@@ -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';
|
|
@@ -6,6 +6,7 @@ import { SanitizeService } from '../services/sanitize.service';
|
|
|
6
6
|
import { MarkdownService } from '../services/markdown.service';
|
|
7
7
|
import { MimeService } from '../services/mime.service';
|
|
8
8
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
9
|
+
import { DialogService } from '../services/dialog.service';
|
|
9
10
|
import { WeakService } from '../services/weak.service';
|
|
10
11
|
import { RegisterService } from '../services/register.service';
|
|
11
12
|
import { MetadataService } from '../services/metadata.service';
|
|
@@ -33,11 +34,12 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
33
34
|
private formService;
|
|
34
35
|
private grid;
|
|
35
36
|
private chart;
|
|
37
|
+
private dialog;
|
|
36
38
|
private el;
|
|
37
|
-
private cdr;
|
|
38
39
|
rows: Array<any> | undefined;
|
|
39
40
|
formGroup: FormGroup;
|
|
40
41
|
alignment: string;
|
|
42
|
+
readOnly: boolean | null;
|
|
41
43
|
Texts: {
|
|
42
44
|
i18n: {
|
|
43
45
|
it: {
|
|
@@ -78,6 +80,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
78
80
|
OpenMenu: string;
|
|
79
81
|
CloseMenu: string;
|
|
80
82
|
LoadingFailed: string;
|
|
83
|
+
ConfirmDelete: string;
|
|
81
84
|
};
|
|
82
85
|
en: {
|
|
83
86
|
TypeToSearch: string;
|
|
@@ -117,6 +120,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
117
120
|
OpenMenu: string;
|
|
118
121
|
CloseMenu: string;
|
|
119
122
|
LoadingFailed: string;
|
|
123
|
+
ConfirmDelete: string;
|
|
120
124
|
};
|
|
121
125
|
de: {
|
|
122
126
|
TypeToSearch: string;
|
|
@@ -156,6 +160,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
156
160
|
OpenMenu: string;
|
|
157
161
|
CloseMenu: string;
|
|
158
162
|
LoadingFailed: string;
|
|
163
|
+
ConfirmDelete: string;
|
|
159
164
|
};
|
|
160
165
|
fr: {
|
|
161
166
|
TypeToSearch: string;
|
|
@@ -195,6 +200,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
195
200
|
OpenMenu: string;
|
|
196
201
|
CloseMenu: string;
|
|
197
202
|
LoadingFailed: string;
|
|
203
|
+
ConfirmDelete: string;
|
|
198
204
|
};
|
|
199
205
|
es: {
|
|
200
206
|
TypeToSearch: string;
|
|
@@ -234,6 +240,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
234
240
|
OpenMenu: string;
|
|
235
241
|
CloseMenu: string;
|
|
236
242
|
LoadingFailed: string;
|
|
243
|
+
ConfirmDelete: string;
|
|
237
244
|
};
|
|
238
245
|
pt: {
|
|
239
246
|
TypeToSearch: string;
|
|
@@ -273,6 +280,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
273
280
|
OpenMenu: string;
|
|
274
281
|
CloseMenu: string;
|
|
275
282
|
LoadingFailed: string;
|
|
283
|
+
ConfirmDelete: string;
|
|
276
284
|
};
|
|
277
285
|
};
|
|
278
286
|
TypeToSearch: string;
|
|
@@ -312,8 +320,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
312
320
|
OpenMenu: string;
|
|
313
321
|
CloseMenu: string;
|
|
314
322
|
LoadingFailed: string;
|
|
323
|
+
ConfirmDelete: string;
|
|
315
324
|
};
|
|
316
|
-
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,
|
|
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);
|
|
317
326
|
ngOnInit(): void;
|
|
318
327
|
ngAfterViewInit(): void;
|
|
319
328
|
getRegister(): RegisterService;
|
|
@@ -325,6 +334,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
325
334
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
326
335
|
evaluateNumber(value: number | string | null): number | null;
|
|
327
336
|
evaluateUrl(value: string | null): SafeResourceUrl;
|
|
337
|
+
evaluateHeight(value: number | string | null): string | null;
|
|
328
338
|
evaluateTemplate(value: string | null): string;
|
|
329
339
|
evaluate(text: string | null, cacheable?: boolean): any;
|
|
330
340
|
evaluateColor(value: string | null): ButtonColors | null;
|
|
@@ -337,8 +347,14 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
337
347
|
sanitize(html: string): SafeHtml;
|
|
338
348
|
getMimeTypes(extensions: string): string;
|
|
339
349
|
clickButton(component: any, event: any): void;
|
|
350
|
+
hasValues(component: any): boolean;
|
|
340
351
|
getValues(component: any): Observable<any>;
|
|
341
352
|
refreshValues(component: any): () => void;
|
|
353
|
+
toLabel(value: any, list: Array<{
|
|
354
|
+
label: string;
|
|
355
|
+
value: any;
|
|
356
|
+
}>): any;
|
|
357
|
+
supportValues(component: any): boolean;
|
|
342
358
|
getChartOptions(component: any): Observable<AgChartOptions>;
|
|
343
359
|
invalidateChart(component: any): () => void;
|
|
344
360
|
getChartData(component: any): any;
|
|
@@ -348,7 +364,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
348
364
|
getRowSource(component: any): any;
|
|
349
365
|
refreshRowSource(component: any): () => void;
|
|
350
366
|
addItem(formArray: FormArray): void;
|
|
351
|
-
removeItem(formArray: FormArray, index: number): void;
|
|
367
|
+
removeItem(formArray: FormArray, index: number, withConfirm: boolean): void;
|
|
368
|
+
moveUpItem(formArray: FormArray, index: number): void;
|
|
369
|
+
moveDownItem(formArray: FormArray, index: number): void;
|
|
352
370
|
createUploadTables(component: any): any;
|
|
353
371
|
fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
|
|
354
372
|
getFeelableProperties(component: any): Record<string, any> | null;
|
|
@@ -362,6 +380,12 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
362
380
|
[x: string]: boolean;
|
|
363
381
|
};
|
|
364
382
|
getTextAlignment(component: any): string;
|
|
383
|
+
getHorizontalAlignment(component: any): {
|
|
384
|
+
"horizontal-left": boolean;
|
|
385
|
+
"horizontal-center": boolean;
|
|
386
|
+
"horizontal-right": boolean;
|
|
387
|
+
"horizontal-fill": boolean;
|
|
388
|
+
};
|
|
365
389
|
getLightView(component: any): string;
|
|
366
390
|
private noData;
|
|
367
391
|
private get language();
|
|
@@ -372,5 +396,5 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
372
396
|
private getAsObservable;
|
|
373
397
|
private configureDatepicker;
|
|
374
398
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
375
|
-
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>;
|
|
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>;
|
|
376
400
|
}
|
|
@@ -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;
|
|
@@ -80,6 +81,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
80
81
|
OpenMenu: string;
|
|
81
82
|
CloseMenu: string;
|
|
82
83
|
LoadingFailed: string;
|
|
84
|
+
ConfirmDelete: string;
|
|
83
85
|
};
|
|
84
86
|
en: {
|
|
85
87
|
TypeToSearch: string;
|
|
@@ -119,6 +121,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
119
121
|
OpenMenu: string;
|
|
120
122
|
CloseMenu: string;
|
|
121
123
|
LoadingFailed: string;
|
|
124
|
+
ConfirmDelete: string;
|
|
122
125
|
};
|
|
123
126
|
de: {
|
|
124
127
|
TypeToSearch: string;
|
|
@@ -158,6 +161,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
158
161
|
OpenMenu: string;
|
|
159
162
|
CloseMenu: string;
|
|
160
163
|
LoadingFailed: string;
|
|
164
|
+
ConfirmDelete: string;
|
|
161
165
|
};
|
|
162
166
|
fr: {
|
|
163
167
|
TypeToSearch: string;
|
|
@@ -197,6 +201,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
197
201
|
OpenMenu: string;
|
|
198
202
|
CloseMenu: string;
|
|
199
203
|
LoadingFailed: string;
|
|
204
|
+
ConfirmDelete: string;
|
|
200
205
|
};
|
|
201
206
|
es: {
|
|
202
207
|
TypeToSearch: string;
|
|
@@ -236,6 +241,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
236
241
|
OpenMenu: string;
|
|
237
242
|
CloseMenu: string;
|
|
238
243
|
LoadingFailed: string;
|
|
244
|
+
ConfirmDelete: string;
|
|
239
245
|
};
|
|
240
246
|
pt: {
|
|
241
247
|
TypeToSearch: string;
|
|
@@ -275,6 +281,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
275
281
|
OpenMenu: string;
|
|
276
282
|
CloseMenu: string;
|
|
277
283
|
LoadingFailed: string;
|
|
284
|
+
ConfirmDelete: string;
|
|
278
285
|
};
|
|
279
286
|
};
|
|
280
287
|
TypeToSearch: string;
|
|
@@ -314,9 +321,9 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
314
321
|
OpenMenu: string;
|
|
315
322
|
CloseMenu: string;
|
|
316
323
|
LoadingFailed: string;
|
|
324
|
+
ConfirmDelete: string;
|
|
317
325
|
};
|
|
318
326
|
ngOnDestroy(): void;
|
|
319
|
-
private internalChange;
|
|
320
327
|
ngOnChanges(changes: SimpleChanges): void;
|
|
321
328
|
get forms(): Array<any>;
|
|
322
329
|
locale(component: any, key: string): string;
|
|
@@ -335,17 +342,22 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
335
342
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
336
343
|
evaluateTemplate(value: string | null): string;
|
|
337
344
|
openForm(template: string, options: FormDialogOptions): void;
|
|
338
|
-
refresh(): void;
|
|
339
345
|
isChanged(): boolean;
|
|
340
346
|
isValid(): boolean;
|
|
341
347
|
private valueChangesSubscription;
|
|
342
|
-
private onCommandSubscription;
|
|
343
348
|
private _forms;
|
|
344
349
|
private _activeNav;
|
|
345
350
|
private defaultValue;
|
|
346
351
|
private get language();
|
|
347
352
|
private onChangeSchema;
|
|
348
353
|
private onChangeValue;
|
|
354
|
+
private suspendValueChanges;
|
|
355
|
+
private registerHandlers;
|
|
356
|
+
private clearHandlers;
|
|
357
|
+
private emittedValues;
|
|
358
|
+
private isEmittedValue;
|
|
359
|
+
private emitValueChange;
|
|
360
|
+
refresh(): void;
|
|
349
361
|
private getNext;
|
|
350
362
|
private getPrevious;
|
|
351
363
|
private getMaxNav;
|
|
@@ -353,8 +365,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
353
365
|
private isInactive;
|
|
354
366
|
private clearControls;
|
|
355
367
|
private clearFormArrays;
|
|
356
|
-
private registerHandlers;
|
|
357
|
-
private clearHandlers;
|
|
358
368
|
private buildForm;
|
|
359
369
|
private addControls;
|
|
360
370
|
private createFormArray;
|
|
@@ -371,5 +381,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
371
381
|
private getDefaultValue;
|
|
372
382
|
private splitPath;
|
|
373
383
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
374
|
-
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>;
|
|
384
|
+
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>;
|
|
375
385
|
}
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare const Texts: {
|
|
|
38
38
|
OpenMenu: string;
|
|
39
39
|
CloseMenu: string;
|
|
40
40
|
LoadingFailed: string;
|
|
41
|
+
ConfirmDelete: string;
|
|
41
42
|
};
|
|
42
43
|
en: {
|
|
43
44
|
TypeToSearch: string;
|
|
@@ -77,6 +78,7 @@ export declare const Texts: {
|
|
|
77
78
|
OpenMenu: string;
|
|
78
79
|
CloseMenu: string;
|
|
79
80
|
LoadingFailed: string;
|
|
81
|
+
ConfirmDelete: string;
|
|
80
82
|
};
|
|
81
83
|
de: {
|
|
82
84
|
TypeToSearch: string;
|
|
@@ -116,6 +118,7 @@ export declare const Texts: {
|
|
|
116
118
|
OpenMenu: string;
|
|
117
119
|
CloseMenu: string;
|
|
118
120
|
LoadingFailed: string;
|
|
121
|
+
ConfirmDelete: string;
|
|
119
122
|
};
|
|
120
123
|
fr: {
|
|
121
124
|
TypeToSearch: string;
|
|
@@ -155,6 +158,7 @@ export declare const Texts: {
|
|
|
155
158
|
OpenMenu: string;
|
|
156
159
|
CloseMenu: string;
|
|
157
160
|
LoadingFailed: string;
|
|
161
|
+
ConfirmDelete: string;
|
|
158
162
|
};
|
|
159
163
|
es: {
|
|
160
164
|
TypeToSearch: string;
|
|
@@ -194,6 +198,7 @@ export declare const Texts: {
|
|
|
194
198
|
OpenMenu: string;
|
|
195
199
|
CloseMenu: string;
|
|
196
200
|
LoadingFailed: string;
|
|
201
|
+
ConfirmDelete: string;
|
|
197
202
|
};
|
|
198
203
|
pt: {
|
|
199
204
|
TypeToSearch: string;
|
|
@@ -233,6 +238,7 @@ export declare const Texts: {
|
|
|
233
238
|
OpenMenu: string;
|
|
234
239
|
CloseMenu: string;
|
|
235
240
|
LoadingFailed: string;
|
|
241
|
+
ConfirmDelete: string;
|
|
236
242
|
};
|
|
237
243
|
};
|
|
238
244
|
TypeToSearch: string;
|
|
@@ -272,4 +278,5 @@ export declare const Texts: {
|
|
|
272
278
|
OpenMenu: string;
|
|
273
279
|
CloseMenu: string;
|
|
274
280
|
LoadingFailed: string;
|
|
281
|
+
ConfirmDelete: string;
|
|
275
282
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
evaluateString(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): string;
|
|
8
|
+
evaluateBoolean(cacheControl: any, formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
9
|
+
evaluateNumber(cacheControl: any, formGroup: FormGroup, value: number | string | null, options?: EvaluateOptions): number | null;
|
|
10
|
+
evaluate(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
11
|
+
evaluateTemplate(cacheControl: any, formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
12
|
+
evaluateUnary(cacheControl: any, formGroup: FormGroup, value: string | null, input: any, options?: EvaluateOptions): any;
|
|
13
|
+
invalidate(cacheControl: any): void;
|
|
14
|
+
invalidateAll(): void;
|
|
15
|
+
private getOptions;
|
|
16
|
+
private call;
|
|
17
|
+
private isExpression;
|
|
18
|
+
private cache;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CacheContextService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CacheContextService>;
|
|
21
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IEvaluatorProvider } from './programmability.service';
|
|
2
|
-
import { AbstractControl, FormControlStatus } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, FormGroup, FormControlStatus } from '@angular/forms';
|
|
3
|
+
import { Path } from '../common/path';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type Path = string | number | Array<string | number>;
|
|
5
6
|
type ControlType = 'array' | 'group' | 'control';
|
|
6
7
|
export interface PatchOptions {
|
|
7
8
|
emitEvent?: boolean;
|
|
@@ -16,6 +17,7 @@ export interface PathOptions {
|
|
|
16
17
|
emitWarn?: boolean;
|
|
17
18
|
create?: boolean;
|
|
18
19
|
expected?: ControlType;
|
|
20
|
+
breakOnArray?: boolean;
|
|
19
21
|
}
|
|
20
22
|
export declare class FormService implements IEvaluatorProvider {
|
|
21
23
|
set(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
@@ -28,6 +30,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
28
30
|
moveUp(control: AbstractControl, path: Path, index: number): boolean;
|
|
29
31
|
moveDown(control: AbstractControl, path: Path, index: number): boolean;
|
|
30
32
|
status(control: AbstractControl, path: Path, pathOptions?: PathOptions): FormControlStatus | undefined;
|
|
33
|
+
updateAllValueAndValidity(control: AbstractControl, emitEvent?: boolean): void;
|
|
31
34
|
countInvalid(controls: Iterable<AbstractControl>): number;
|
|
32
35
|
getInvalidControls(control: AbstractControl): {
|
|
33
36
|
path: string;
|
|
@@ -35,6 +38,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
35
38
|
}[];
|
|
36
39
|
patch(control: AbstractControl, value: any, options?: PatchOptions): void;
|
|
37
40
|
getPath(control: AbstractControl): (string | number)[];
|
|
41
|
+
waitForControl(formGroup: FormGroup, path: Path, pathOptions?: PathOptions): Observable<AbstractControl>;
|
|
38
42
|
getContext(formGroup: any): Record<string, any>;
|
|
39
43
|
private applyPath;
|
|
40
44
|
private asObject;
|
|
@@ -44,6 +48,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
44
48
|
private createArrayItem;
|
|
45
49
|
private createControlFromValue;
|
|
46
50
|
private createControlFromArray;
|
|
51
|
+
private enumerateControls;
|
|
47
52
|
private collectErrors;
|
|
48
53
|
private setUnknown;
|
|
49
54
|
private isUnknown;
|
|
@@ -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;
|