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