@wemake4u/form-player-se 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/controls/tab.mjs +47 -1
- package/esm2022/lib/directives/grid.directive.mjs +3 -1
- package/esm2022/lib/directives/recursion.directive.mjs +18 -2
- package/esm2022/lib/directives/tabcontrol.directive.mjs +11 -1
- package/esm2022/lib/directives/text.directive.mjs +20 -2
- package/esm2022/lib/directives/valuesync.directive.mjs +63 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +7 -14
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +2 -2
- 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/form.service.mjs +1 -27
- package/esm2022/lib/services/grid.service.mjs +37 -3
- package/esm2022/lib/utils/focusable.mjs +7 -2
- package/fesm2022/wemake4u-form-player-se.mjs +212 -52
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- 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/controls/tab.d.ts +7 -0
- package/lib/dialog/dialog.component.d.ts +7 -0
- package/lib/directives/recursion.directive.d.ts +1 -0
- package/lib/directives/tabcontrol.directive.d.ts +1 -0
- package/lib/directives/text.directive.d.ts +3 -0
- package/lib/directives/valuesync.directive.d.ts +15 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +7 -1
- package/lib/dynamic-form/dynamic-form.component.d.ts +7 -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/grid.service.d.ts +6 -0
- package/package.json +1 -1
package/lib/controls/tab.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { ContainerControl } from "./control";
|
|
2
2
|
export declare class TabControl extends ContainerControl {
|
|
3
|
+
readonly canNext: () => boolean;
|
|
4
|
+
readonly goNext: () => void;
|
|
5
|
+
readonly canPrevious: () => boolean;
|
|
6
|
+
readonly goPrevious: () => void;
|
|
7
|
+
readonly setActiveIndex: (index: number) => void;
|
|
3
8
|
private getTab;
|
|
9
|
+
private getPreviousIndex;
|
|
10
|
+
private getNextIndex;
|
|
4
11
|
}
|
|
@@ -50,6 +50,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
50
50
|
ConfirmDelete: string;
|
|
51
51
|
MoveUp: string;
|
|
52
52
|
MoveDown: string;
|
|
53
|
+
NoData: string;
|
|
53
54
|
};
|
|
54
55
|
en: {
|
|
55
56
|
TypeToSearch: string;
|
|
@@ -92,6 +93,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
92
93
|
ConfirmDelete: string;
|
|
93
94
|
MoveUp: string;
|
|
94
95
|
MoveDown: string;
|
|
96
|
+
NoData: string;
|
|
95
97
|
};
|
|
96
98
|
de: {
|
|
97
99
|
TypeToSearch: string;
|
|
@@ -134,6 +136,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
134
136
|
ConfirmDelete: string;
|
|
135
137
|
MoveUp: string;
|
|
136
138
|
MoveDown: string;
|
|
139
|
+
NoData: string;
|
|
137
140
|
};
|
|
138
141
|
fr: {
|
|
139
142
|
TypeToSearch: string;
|
|
@@ -176,6 +179,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
176
179
|
ConfirmDelete: string;
|
|
177
180
|
MoveUp: string;
|
|
178
181
|
MoveDown: string;
|
|
182
|
+
NoData: string;
|
|
179
183
|
};
|
|
180
184
|
es: {
|
|
181
185
|
TypeToSearch: string;
|
|
@@ -218,6 +222,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
218
222
|
ConfirmDelete: string;
|
|
219
223
|
MoveUp: string;
|
|
220
224
|
MoveDown: string;
|
|
225
|
+
NoData: string;
|
|
221
226
|
};
|
|
222
227
|
pt: {
|
|
223
228
|
TypeToSearch: string;
|
|
@@ -260,6 +265,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
260
265
|
ConfirmDelete: string;
|
|
261
266
|
MoveUp: string;
|
|
262
267
|
MoveDown: string;
|
|
268
|
+
NoData: string;
|
|
263
269
|
};
|
|
264
270
|
};
|
|
265
271
|
TypeToSearch: string;
|
|
@@ -302,6 +308,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
302
308
|
ConfirmDelete: string;
|
|
303
309
|
MoveUp: string;
|
|
304
310
|
MoveDown: string;
|
|
311
|
+
NoData: string;
|
|
305
312
|
};
|
|
306
313
|
constructor(languageService: LanguageService);
|
|
307
314
|
ngOnInit(): void;
|
|
@@ -33,6 +33,7 @@ export declare class RecursionDirective implements OnInit, OnChanges, OnDestroy
|
|
|
33
33
|
private getArrayFromExpression;
|
|
34
34
|
private createComponentRows;
|
|
35
35
|
private createNestedFormGroup;
|
|
36
|
+
private prepareChildArray;
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<RecursionDirective, never>;
|
|
37
38
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RecursionDirective, "[recursion]", ["recursion"], { "formGroup": { "alias": "formGroup"; "required": false; }; "component": { "alias": "recursion"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
39
|
}
|
|
@@ -9,6 +9,7 @@ export declare class TabControlDirective implements OnInit, OnDestroy {
|
|
|
9
9
|
private tabChangeSub;
|
|
10
10
|
private HandleIndexChange;
|
|
11
11
|
private validateIndex;
|
|
12
|
+
private setFocus;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabControlDirective, [{ host: true; }]>;
|
|
13
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TabControlDirective, "[tabControl]", never, {}, {}, never, never, true, never>;
|
|
14
15
|
}
|
|
@@ -13,6 +13,9 @@ export declare class TextDirective implements OnChanges, AfterViewInit {
|
|
|
13
13
|
private applyCase;
|
|
14
14
|
private applyMaxLength;
|
|
15
15
|
private configureTextCase;
|
|
16
|
+
private applyTextTransform;
|
|
17
|
+
private applyTextTransformByValue;
|
|
18
|
+
private configureSpellCheck;
|
|
16
19
|
private configureMaxLength;
|
|
17
20
|
private replaceInputValue;
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextDirective, [{ host: true; }, null]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NgControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ValueSyncDirective {
|
|
4
|
+
private ngControl;
|
|
5
|
+
valueSync: boolean | null;
|
|
6
|
+
constructor(ngControl: NgControl);
|
|
7
|
+
private sub?;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
private startSync;
|
|
12
|
+
private stopSync;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueSyncDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueSyncDirective, "[valueSync]", never, { "valueSync": { "alias": "valueSync"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -86,6 +86,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
86
86
|
ConfirmDelete: string;
|
|
87
87
|
MoveUp: string;
|
|
88
88
|
MoveDown: string;
|
|
89
|
+
NoData: string;
|
|
89
90
|
};
|
|
90
91
|
en: {
|
|
91
92
|
TypeToSearch: string;
|
|
@@ -128,6 +129,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
128
129
|
ConfirmDelete: string;
|
|
129
130
|
MoveUp: string;
|
|
130
131
|
MoveDown: string;
|
|
132
|
+
NoData: string;
|
|
131
133
|
};
|
|
132
134
|
de: {
|
|
133
135
|
TypeToSearch: string;
|
|
@@ -170,6 +172,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
170
172
|
ConfirmDelete: string;
|
|
171
173
|
MoveUp: string;
|
|
172
174
|
MoveDown: string;
|
|
175
|
+
NoData: string;
|
|
173
176
|
};
|
|
174
177
|
fr: {
|
|
175
178
|
TypeToSearch: string;
|
|
@@ -212,6 +215,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
212
215
|
ConfirmDelete: string;
|
|
213
216
|
MoveUp: string;
|
|
214
217
|
MoveDown: string;
|
|
218
|
+
NoData: string;
|
|
215
219
|
};
|
|
216
220
|
es: {
|
|
217
221
|
TypeToSearch: string;
|
|
@@ -254,6 +258,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
254
258
|
ConfirmDelete: string;
|
|
255
259
|
MoveUp: string;
|
|
256
260
|
MoveDown: string;
|
|
261
|
+
NoData: string;
|
|
257
262
|
};
|
|
258
263
|
pt: {
|
|
259
264
|
TypeToSearch: string;
|
|
@@ -296,6 +301,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
296
301
|
ConfirmDelete: string;
|
|
297
302
|
MoveUp: string;
|
|
298
303
|
MoveDown: string;
|
|
304
|
+
NoData: string;
|
|
299
305
|
};
|
|
300
306
|
};
|
|
301
307
|
TypeToSearch: string;
|
|
@@ -338,6 +344,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
338
344
|
ConfirmDelete: string;
|
|
339
345
|
MoveUp: string;
|
|
340
346
|
MoveDown: string;
|
|
347
|
+
NoData: string;
|
|
341
348
|
};
|
|
342
349
|
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);
|
|
343
350
|
ngOnInit(): void;
|
|
@@ -409,7 +416,6 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
409
416
|
private getAlignmentRules;
|
|
410
417
|
private invalidate;
|
|
411
418
|
private getControlFromPath;
|
|
412
|
-
private focusFirst;
|
|
413
419
|
private getAsObservable;
|
|
414
420
|
private configureDatepicker;
|
|
415
421
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
@@ -86,6 +86,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
86
86
|
ConfirmDelete: string;
|
|
87
87
|
MoveUp: string;
|
|
88
88
|
MoveDown: string;
|
|
89
|
+
NoData: string;
|
|
89
90
|
};
|
|
90
91
|
en: {
|
|
91
92
|
TypeToSearch: string;
|
|
@@ -128,6 +129,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
128
129
|
ConfirmDelete: string;
|
|
129
130
|
MoveUp: string;
|
|
130
131
|
MoveDown: string;
|
|
132
|
+
NoData: string;
|
|
131
133
|
};
|
|
132
134
|
de: {
|
|
133
135
|
TypeToSearch: string;
|
|
@@ -170,6 +172,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
170
172
|
ConfirmDelete: string;
|
|
171
173
|
MoveUp: string;
|
|
172
174
|
MoveDown: string;
|
|
175
|
+
NoData: string;
|
|
173
176
|
};
|
|
174
177
|
fr: {
|
|
175
178
|
TypeToSearch: string;
|
|
@@ -212,6 +215,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
212
215
|
ConfirmDelete: string;
|
|
213
216
|
MoveUp: string;
|
|
214
217
|
MoveDown: string;
|
|
218
|
+
NoData: string;
|
|
215
219
|
};
|
|
216
220
|
es: {
|
|
217
221
|
TypeToSearch: string;
|
|
@@ -254,6 +258,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
254
258
|
ConfirmDelete: string;
|
|
255
259
|
MoveUp: string;
|
|
256
260
|
MoveDown: string;
|
|
261
|
+
NoData: string;
|
|
257
262
|
};
|
|
258
263
|
pt: {
|
|
259
264
|
TypeToSearch: string;
|
|
@@ -296,6 +301,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
296
301
|
ConfirmDelete: string;
|
|
297
302
|
MoveUp: string;
|
|
298
303
|
MoveDown: string;
|
|
304
|
+
NoData: string;
|
|
299
305
|
};
|
|
300
306
|
};
|
|
301
307
|
TypeToSearch: string;
|
|
@@ -338,6 +344,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
338
344
|
ConfirmDelete: string;
|
|
339
345
|
MoveUp: string;
|
|
340
346
|
MoveDown: string;
|
|
347
|
+
NoData: string;
|
|
341
348
|
};
|
|
342
349
|
ngOnDestroy(): void;
|
|
343
350
|
ngOnChanges(changes: SimpleChanges): void;
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const Texts: {
|
|
|
41
41
|
ConfirmDelete: string;
|
|
42
42
|
MoveUp: string;
|
|
43
43
|
MoveDown: string;
|
|
44
|
+
NoData: string;
|
|
44
45
|
};
|
|
45
46
|
en: {
|
|
46
47
|
TypeToSearch: string;
|
|
@@ -83,6 +84,7 @@ export declare const Texts: {
|
|
|
83
84
|
ConfirmDelete: string;
|
|
84
85
|
MoveUp: string;
|
|
85
86
|
MoveDown: string;
|
|
87
|
+
NoData: string;
|
|
86
88
|
};
|
|
87
89
|
de: {
|
|
88
90
|
TypeToSearch: string;
|
|
@@ -125,6 +127,7 @@ export declare const Texts: {
|
|
|
125
127
|
ConfirmDelete: string;
|
|
126
128
|
MoveUp: string;
|
|
127
129
|
MoveDown: string;
|
|
130
|
+
NoData: string;
|
|
128
131
|
};
|
|
129
132
|
fr: {
|
|
130
133
|
TypeToSearch: string;
|
|
@@ -167,6 +170,7 @@ export declare const Texts: {
|
|
|
167
170
|
ConfirmDelete: string;
|
|
168
171
|
MoveUp: string;
|
|
169
172
|
MoveDown: string;
|
|
173
|
+
NoData: string;
|
|
170
174
|
};
|
|
171
175
|
es: {
|
|
172
176
|
TypeToSearch: string;
|
|
@@ -209,6 +213,7 @@ export declare const Texts: {
|
|
|
209
213
|
ConfirmDelete: string;
|
|
210
214
|
MoveUp: string;
|
|
211
215
|
MoveDown: string;
|
|
216
|
+
NoData: string;
|
|
212
217
|
};
|
|
213
218
|
pt: {
|
|
214
219
|
TypeToSearch: string;
|
|
@@ -251,6 +256,7 @@ export declare const Texts: {
|
|
|
251
256
|
ConfirmDelete: string;
|
|
252
257
|
MoveUp: string;
|
|
253
258
|
MoveDown: string;
|
|
259
|
+
NoData: string;
|
|
254
260
|
};
|
|
255
261
|
};
|
|
256
262
|
TypeToSearch: string;
|
|
@@ -293,4 +299,5 @@ export declare const Texts: {
|
|
|
293
299
|
ConfirmDelete: string;
|
|
294
300
|
MoveUp: string;
|
|
295
301
|
MoveDown: string;
|
|
302
|
+
NoData: string;
|
|
296
303
|
};
|
|
@@ -17,6 +17,8 @@ export declare class GridService {
|
|
|
17
17
|
onSelectionChanged(component: any, formGroup: FormGroup, event: any): any;
|
|
18
18
|
getCacheKey(): string;
|
|
19
19
|
invalidateOptions(component: any): void;
|
|
20
|
+
onRowDataChanged(component: any, api: GridApi, rowData: any): void;
|
|
21
|
+
onDataSourceChanged(component: any, api: GridApi, dataSource: any): void;
|
|
20
22
|
private get language();
|
|
21
23
|
private locale;
|
|
22
24
|
resizeGrid(component: any, api: GridApi): void;
|
|
@@ -25,11 +27,13 @@ export declare class GridService {
|
|
|
25
27
|
private createColumnDefs;
|
|
26
28
|
private addActionColumnDef;
|
|
27
29
|
private addRowNumbersColumnDef;
|
|
30
|
+
private refreshRowNumbers;
|
|
28
31
|
private groupColumns;
|
|
29
32
|
private groupsToColumnDefs;
|
|
30
33
|
private setCellDataType;
|
|
31
34
|
private setStyles;
|
|
32
35
|
private setCellRenderer;
|
|
36
|
+
private setCellChangeFlash;
|
|
33
37
|
private setAutoHeight;
|
|
34
38
|
private setResizable;
|
|
35
39
|
private setSortable;
|
|
@@ -46,6 +50,8 @@ export declare class GridService {
|
|
|
46
50
|
private setWidth;
|
|
47
51
|
private setValueFormatter;
|
|
48
52
|
getRowSelection(component: any, formGroup: FormGroup): RowSelectionOptions | undefined;
|
|
53
|
+
private hasRowId;
|
|
54
|
+
private getRowId;
|
|
49
55
|
private onRowSelectable;
|
|
50
56
|
private onRowSelected;
|
|
51
57
|
private onRowSelecting;
|