@wemake4u/form-player-se 1.0.35 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/directives/tabcontrol.directive.mjs +2 -2
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +24 -12
- 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/autofocus.service.mjs +22 -0
- package/esm2022/lib/services/grid.service.mjs +2 -2
- package/esm2022/lib/services/validation.service.mjs +30 -3
- package/esm2022/lib/utils/focusable.mjs +6 -5
- package/fesm2022/wemake4u-form-player-se.mjs +91 -27
- 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/dialog/dialog.component.d.ts +7 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +12 -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/autofocus.service.d.ts +8 -0
- package/lib/services/validation.service.d.ts +5 -0
- package/lib/utils/focusable.d.ts +1 -1
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
51
51
|
MoveUp: string;
|
|
52
52
|
MoveDown: string;
|
|
53
53
|
NoData: string;
|
|
54
|
+
RequiredField: string;
|
|
54
55
|
};
|
|
55
56
|
en: {
|
|
56
57
|
TypeToSearch: string;
|
|
@@ -94,6 +95,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
94
95
|
MoveUp: string;
|
|
95
96
|
MoveDown: string;
|
|
96
97
|
NoData: string;
|
|
98
|
+
RequiredField: string;
|
|
97
99
|
};
|
|
98
100
|
de: {
|
|
99
101
|
TypeToSearch: string;
|
|
@@ -137,6 +139,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
137
139
|
MoveUp: string;
|
|
138
140
|
MoveDown: string;
|
|
139
141
|
NoData: string;
|
|
142
|
+
RequiredField: string;
|
|
140
143
|
};
|
|
141
144
|
fr: {
|
|
142
145
|
TypeToSearch: string;
|
|
@@ -180,6 +183,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
180
183
|
MoveUp: string;
|
|
181
184
|
MoveDown: string;
|
|
182
185
|
NoData: string;
|
|
186
|
+
RequiredField: string;
|
|
183
187
|
};
|
|
184
188
|
es: {
|
|
185
189
|
TypeToSearch: string;
|
|
@@ -223,6 +227,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
223
227
|
MoveUp: string;
|
|
224
228
|
MoveDown: string;
|
|
225
229
|
NoData: string;
|
|
230
|
+
RequiredField: string;
|
|
226
231
|
};
|
|
227
232
|
pt: {
|
|
228
233
|
TypeToSearch: string;
|
|
@@ -266,6 +271,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
266
271
|
MoveUp: string;
|
|
267
272
|
MoveDown: string;
|
|
268
273
|
NoData: string;
|
|
274
|
+
RequiredField: string;
|
|
269
275
|
};
|
|
270
276
|
};
|
|
271
277
|
TypeToSearch: string;
|
|
@@ -309,6 +315,7 @@ export declare class DialogComponent extends SirioDialogElement {
|
|
|
309
315
|
MoveUp: string;
|
|
310
316
|
MoveDown: string;
|
|
311
317
|
NoData: string;
|
|
318
|
+
RequiredField: string;
|
|
312
319
|
};
|
|
313
320
|
constructor(languageService: LanguageService);
|
|
314
321
|
ngOnInit(): void;
|
|
@@ -14,6 +14,7 @@ import { GlobalService } from '../services/global.service';
|
|
|
14
14
|
import { FormService } from '../services/form.service';
|
|
15
15
|
import { GridService } from '../services/grid.service';
|
|
16
16
|
import { ChartService } from '../services/chart.service';
|
|
17
|
+
import { AutoFocusService } from '../services/autofocus.service';
|
|
17
18
|
import { ButtonColors } from 'ngx-sirio-lib';
|
|
18
19
|
import { Observable } from 'rxjs';
|
|
19
20
|
import { SirioFileUploadComponent, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
@@ -36,6 +37,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
36
37
|
private grid;
|
|
37
38
|
private chart;
|
|
38
39
|
private dialog;
|
|
40
|
+
private autoFocus;
|
|
39
41
|
private el;
|
|
40
42
|
form: DynamicFormComponent;
|
|
41
43
|
rows: Array<any> | undefined;
|
|
@@ -87,6 +89,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
87
89
|
MoveUp: string;
|
|
88
90
|
MoveDown: string;
|
|
89
91
|
NoData: string;
|
|
92
|
+
RequiredField: string;
|
|
90
93
|
};
|
|
91
94
|
en: {
|
|
92
95
|
TypeToSearch: string;
|
|
@@ -130,6 +133,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
130
133
|
MoveUp: string;
|
|
131
134
|
MoveDown: string;
|
|
132
135
|
NoData: string;
|
|
136
|
+
RequiredField: string;
|
|
133
137
|
};
|
|
134
138
|
de: {
|
|
135
139
|
TypeToSearch: string;
|
|
@@ -173,6 +177,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
173
177
|
MoveUp: string;
|
|
174
178
|
MoveDown: string;
|
|
175
179
|
NoData: string;
|
|
180
|
+
RequiredField: string;
|
|
176
181
|
};
|
|
177
182
|
fr: {
|
|
178
183
|
TypeToSearch: string;
|
|
@@ -216,6 +221,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
216
221
|
MoveUp: string;
|
|
217
222
|
MoveDown: string;
|
|
218
223
|
NoData: string;
|
|
224
|
+
RequiredField: string;
|
|
219
225
|
};
|
|
220
226
|
es: {
|
|
221
227
|
TypeToSearch: string;
|
|
@@ -259,6 +265,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
259
265
|
MoveUp: string;
|
|
260
266
|
MoveDown: string;
|
|
261
267
|
NoData: string;
|
|
268
|
+
RequiredField: string;
|
|
262
269
|
};
|
|
263
270
|
pt: {
|
|
264
271
|
TypeToSearch: string;
|
|
@@ -302,6 +309,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
302
309
|
MoveUp: string;
|
|
303
310
|
MoveDown: string;
|
|
304
311
|
NoData: string;
|
|
312
|
+
RequiredField: string;
|
|
305
313
|
};
|
|
306
314
|
};
|
|
307
315
|
TypeToSearch: string;
|
|
@@ -345,8 +353,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
345
353
|
MoveUp: string;
|
|
346
354
|
MoveDown: string;
|
|
347
355
|
NoData: string;
|
|
356
|
+
RequiredField: string;
|
|
348
357
|
};
|
|
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);
|
|
358
|
+
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, autoFocus: AutoFocusService, el: ElementRef);
|
|
350
359
|
ngOnInit(): void;
|
|
351
360
|
ngAfterViewInit(): void;
|
|
352
361
|
getRegister(): RegisterService;
|
|
@@ -418,6 +427,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
418
427
|
private getControlFromPath;
|
|
419
428
|
private getAsObservable;
|
|
420
429
|
private configureDatepicker;
|
|
430
|
+
private markForAutoFocus;
|
|
431
|
+
private requireAutoFocus;
|
|
421
432
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
422
433
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; }, {}, never, never, true, never>;
|
|
423
434
|
}
|
|
@@ -87,6 +87,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
87
87
|
MoveUp: string;
|
|
88
88
|
MoveDown: string;
|
|
89
89
|
NoData: string;
|
|
90
|
+
RequiredField: string;
|
|
90
91
|
};
|
|
91
92
|
en: {
|
|
92
93
|
TypeToSearch: string;
|
|
@@ -130,6 +131,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
130
131
|
MoveUp: string;
|
|
131
132
|
MoveDown: string;
|
|
132
133
|
NoData: string;
|
|
134
|
+
RequiredField: string;
|
|
133
135
|
};
|
|
134
136
|
de: {
|
|
135
137
|
TypeToSearch: string;
|
|
@@ -173,6 +175,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
173
175
|
MoveUp: string;
|
|
174
176
|
MoveDown: string;
|
|
175
177
|
NoData: string;
|
|
178
|
+
RequiredField: string;
|
|
176
179
|
};
|
|
177
180
|
fr: {
|
|
178
181
|
TypeToSearch: string;
|
|
@@ -216,6 +219,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
216
219
|
MoveUp: string;
|
|
217
220
|
MoveDown: string;
|
|
218
221
|
NoData: string;
|
|
222
|
+
RequiredField: string;
|
|
219
223
|
};
|
|
220
224
|
es: {
|
|
221
225
|
TypeToSearch: string;
|
|
@@ -259,6 +263,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
259
263
|
MoveUp: string;
|
|
260
264
|
MoveDown: string;
|
|
261
265
|
NoData: string;
|
|
266
|
+
RequiredField: string;
|
|
262
267
|
};
|
|
263
268
|
pt: {
|
|
264
269
|
TypeToSearch: string;
|
|
@@ -302,6 +307,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
302
307
|
MoveUp: string;
|
|
303
308
|
MoveDown: string;
|
|
304
309
|
NoData: string;
|
|
310
|
+
RequiredField: string;
|
|
305
311
|
};
|
|
306
312
|
};
|
|
307
313
|
TypeToSearch: string;
|
|
@@ -345,6 +351,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
345
351
|
MoveUp: string;
|
|
346
352
|
MoveDown: string;
|
|
347
353
|
NoData: string;
|
|
354
|
+
RequiredField: string;
|
|
348
355
|
};
|
|
349
356
|
ngOnDestroy(): void;
|
|
350
357
|
ngOnChanges(changes: SimpleChanges): void;
|
package/lib/locale/locale.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare const Texts: {
|
|
|
42
42
|
MoveUp: string;
|
|
43
43
|
MoveDown: string;
|
|
44
44
|
NoData: string;
|
|
45
|
+
RequiredField: string;
|
|
45
46
|
};
|
|
46
47
|
en: {
|
|
47
48
|
TypeToSearch: string;
|
|
@@ -85,6 +86,7 @@ export declare const Texts: {
|
|
|
85
86
|
MoveUp: string;
|
|
86
87
|
MoveDown: string;
|
|
87
88
|
NoData: string;
|
|
89
|
+
RequiredField: string;
|
|
88
90
|
};
|
|
89
91
|
de: {
|
|
90
92
|
TypeToSearch: string;
|
|
@@ -128,6 +130,7 @@ export declare const Texts: {
|
|
|
128
130
|
MoveUp: string;
|
|
129
131
|
MoveDown: string;
|
|
130
132
|
NoData: string;
|
|
133
|
+
RequiredField: string;
|
|
131
134
|
};
|
|
132
135
|
fr: {
|
|
133
136
|
TypeToSearch: string;
|
|
@@ -171,6 +174,7 @@ export declare const Texts: {
|
|
|
171
174
|
MoveUp: string;
|
|
172
175
|
MoveDown: string;
|
|
173
176
|
NoData: string;
|
|
177
|
+
RequiredField: string;
|
|
174
178
|
};
|
|
175
179
|
es: {
|
|
176
180
|
TypeToSearch: string;
|
|
@@ -214,6 +218,7 @@ export declare const Texts: {
|
|
|
214
218
|
MoveUp: string;
|
|
215
219
|
MoveDown: string;
|
|
216
220
|
NoData: string;
|
|
221
|
+
RequiredField: string;
|
|
217
222
|
};
|
|
218
223
|
pt: {
|
|
219
224
|
TypeToSearch: string;
|
|
@@ -257,6 +262,7 @@ export declare const Texts: {
|
|
|
257
262
|
MoveUp: string;
|
|
258
263
|
MoveDown: string;
|
|
259
264
|
NoData: string;
|
|
265
|
+
RequiredField: string;
|
|
260
266
|
};
|
|
261
267
|
};
|
|
262
268
|
TypeToSearch: string;
|
|
@@ -300,4 +306,5 @@ export declare const Texts: {
|
|
|
300
306
|
MoveUp: string;
|
|
301
307
|
MoveDown: string;
|
|
302
308
|
NoData: string;
|
|
309
|
+
RequiredField: string;
|
|
303
310
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AutoFocusService {
|
|
3
|
+
private map;
|
|
4
|
+
mark(target: object): void;
|
|
5
|
+
consume(target: object): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFocusService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AutoFocusService>;
|
|
8
|
+
}
|
|
@@ -20,6 +20,11 @@ export declare class ValidationService {
|
|
|
20
20
|
private readonly nullObserver;
|
|
21
21
|
private get language();
|
|
22
22
|
private locale;
|
|
23
|
+
private getRequiredValidator;
|
|
24
|
+
private requiredValidator;
|
|
25
|
+
private requiredTrueValidator;
|
|
26
|
+
private isTrueValidator;
|
|
27
|
+
private getRequiredMessage;
|
|
23
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationService, never>;
|
|
24
29
|
static ɵprov: i0.ɵɵInjectableDeclaration<ValidationService>;
|
|
25
30
|
}
|
package/lib/utils/focusable.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function getFocusables(el: HTMLElement, firstOnly?: boolean): HTMLElement[];
|
|
2
|
-
export declare function setFocus(el: HTMLElement):
|
|
2
|
+
export declare function setFocus(el: HTMLElement, preventScroll?: boolean): HTMLElement | null;
|