@wemake4u/form-player-se 1.0.10 → 1.0.12

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.
Files changed (31) hide show
  1. package/esm2022/lib/directives/collapse.directive.mjs +14 -7
  2. package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +22 -12
  3. package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +17 -7
  4. package/esm2022/lib/locale/locale-de.mjs +29 -0
  5. package/esm2022/lib/locale/locale-en.mjs +29 -0
  6. package/esm2022/lib/locale/locale-es.mjs +29 -0
  7. package/esm2022/lib/locale/locale-fr.mjs +29 -0
  8. package/esm2022/lib/locale/locale-it.mjs +4 -1
  9. package/esm2022/lib/locale/locale-pt.mjs +29 -0
  10. package/esm2022/lib/locale/locale.mjs +18 -0
  11. package/esm2022/lib/locale/localize.mjs +14 -0
  12. package/esm2022/lib/services/grid.service.mjs +38 -15
  13. package/esm2022/lib/utils/groupByRow.mjs +2 -1
  14. package/fesm2022/wemake4u-form-player-se.mjs +258 -37
  15. package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
  16. package/lib/directives/collapse.directive.d.ts +3 -1
  17. package/lib/dynamic-fields/dynamic-fields.component.d.ts +179 -3
  18. package/lib/dynamic-form/dynamic-form.component.d.ts +177 -1
  19. package/lib/locale/locale-de.d.ts +28 -0
  20. package/lib/locale/locale-en.d.ts +28 -0
  21. package/lib/locale/locale-es.d.ts +28 -0
  22. package/lib/locale/locale-fr.d.ts +28 -0
  23. package/lib/locale/locale-it.d.ts +3 -0
  24. package/lib/locale/locale-pt.d.ts +28 -0
  25. package/lib/locale/locale.d.ts +198 -0
  26. package/lib/locale/localize.d.ts +1 -0
  27. package/lib/services/grid.service.d.ts +2 -1
  28. package/lib/utils/gridCells.d.ts +6 -0
  29. package/lib/utils/groupByRow.d.ts +1 -0
  30. package/lib/utils/setFilter.d.ts +3 -0
  31. package/package.json +1 -1
@@ -4,6 +4,7 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
4
4
  private el;
5
5
  private renderer;
6
6
  maxHeight: number | null;
7
+ language: string;
7
8
  private currentHeight;
8
9
  private button;
9
10
  private iconSpan;
@@ -25,7 +26,8 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
25
26
  private expand;
26
27
  private collapse;
27
28
  private updateIcon;
29
+ private locale;
28
30
  ngOnDestroy(): void;
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", never, { "maxHeight": { "alias": "collapse"; "required": false; }; }, {}, never, never, true, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", never, { "maxHeight": { "alias": "collapse"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, {}, never, never, true, never>;
31
33
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, ElementRef, AfterViewInit } from '@angular/core';
1
+ import { OnInit, ElementRef, AfterViewInit, ChangeDetectorRef } 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';
@@ -27,9 +27,181 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
27
27
  private metadata;
28
28
  private grid;
29
29
  private el;
30
+ private cdr;
30
31
  rows: Array<any> | undefined;
31
32
  formGroup: FormGroup;
33
+ language: string;
32
34
  Texts: {
35
+ i18n: {
36
+ it: {
37
+ TypeToSearch: string;
38
+ Upload: string;
39
+ ScrollLeft: string;
40
+ ScrollRight: string;
41
+ AddItem: string;
42
+ RemoveItem: string;
43
+ PreviousSection: string;
44
+ NextSection: string;
45
+ Show: string;
46
+ Remove: string;
47
+ Close: string;
48
+ Name: string;
49
+ Size: string;
50
+ Type: string;
51
+ Actions: string;
52
+ ReadMore: string;
53
+ ReadLess: string;
54
+ SelectAll: string;
55
+ ChooseOne: string;
56
+ True: string;
57
+ False: string;
58
+ Blank: string;
59
+ NotBlank: string;
60
+ Information: string;
61
+ OpenMenu: string;
62
+ CloseMenu: string;
63
+ };
64
+ en: {
65
+ TypeToSearch: string;
66
+ Upload: string;
67
+ ScrollLeft: string;
68
+ ScrollRight: string;
69
+ AddItem: string;
70
+ RemoveItem: string;
71
+ PreviousSection: string;
72
+ NextSection: string;
73
+ Show: string;
74
+ Remove: string;
75
+ Close: string;
76
+ Name: string;
77
+ Size: string;
78
+ Type: string;
79
+ Actions: string;
80
+ ReadMore: string;
81
+ ReadLess: string;
82
+ SelectAll: string;
83
+ ChooseOne: string;
84
+ True: string;
85
+ False: string;
86
+ Blank: string;
87
+ NotBlank: string;
88
+ Information: string;
89
+ OpenMenu: string;
90
+ CloseMenu: string;
91
+ };
92
+ de: {
93
+ TypeToSearch: string;
94
+ Upload: string;
95
+ ScrollLeft: string;
96
+ ScrollRight: string;
97
+ AddItem: string;
98
+ RemoveItem: string;
99
+ PreviousSection: string;
100
+ NextSection: string;
101
+ Show: string;
102
+ Remove: string;
103
+ Close: string;
104
+ Name: string;
105
+ Size: string;
106
+ Type: string;
107
+ Actions: string;
108
+ ReadMore: string;
109
+ ReadLess: string;
110
+ SelectAll: string;
111
+ ChooseOne: string;
112
+ True: string;
113
+ False: string;
114
+ Blank: string;
115
+ NotBlank: string;
116
+ Information: string;
117
+ OpenMenu: string;
118
+ CloseMenu: string;
119
+ };
120
+ fr: {
121
+ TypeToSearch: string;
122
+ Upload: string;
123
+ ScrollLeft: string;
124
+ ScrollRight: string;
125
+ AddItem: string;
126
+ RemoveItem: string;
127
+ PreviousSection: string;
128
+ NextSection: string;
129
+ Show: string;
130
+ Remove: string;
131
+ Close: string;
132
+ Name: string;
133
+ Size: string;
134
+ Type: string;
135
+ Actions: string;
136
+ ReadMore: string;
137
+ ReadLess: string;
138
+ SelectAll: string;
139
+ ChooseOne: string;
140
+ True: string;
141
+ False: string;
142
+ Blank: string;
143
+ NotBlank: string;
144
+ Information: string;
145
+ OpenMenu: string;
146
+ CloseMenu: string;
147
+ };
148
+ es: {
149
+ TypeToSearch: string;
150
+ Upload: string;
151
+ ScrollLeft: string;
152
+ ScrollRight: string;
153
+ AddItem: string;
154
+ RemoveItem: string;
155
+ PreviousSection: string;
156
+ NextSection: string;
157
+ Show: string;
158
+ Remove: string;
159
+ Close: string;
160
+ Name: string;
161
+ Size: string;
162
+ Type: string;
163
+ Actions: string;
164
+ ReadMore: string;
165
+ ReadLess: string;
166
+ SelectAll: string;
167
+ ChooseOne: string;
168
+ True: string;
169
+ False: string;
170
+ Blank: string;
171
+ NotBlank: string;
172
+ Information: string;
173
+ OpenMenu: string;
174
+ CloseMenu: string;
175
+ };
176
+ pt: {
177
+ TypeToSearch: string;
178
+ Upload: string;
179
+ ScrollLeft: string;
180
+ ScrollRight: string;
181
+ AddItem: string;
182
+ RemoveItem: string;
183
+ PreviousSection: string;
184
+ NextSection: string;
185
+ Show: string;
186
+ Remove: string;
187
+ Close: string;
188
+ Name: string;
189
+ Size: string;
190
+ Type: string;
191
+ Actions: string;
192
+ ReadMore: string;
193
+ ReadLess: string;
194
+ SelectAll: string;
195
+ ChooseOne: string;
196
+ True: string;
197
+ False: string;
198
+ Blank: string;
199
+ NotBlank: string;
200
+ Information: string;
201
+ OpenMenu: string;
202
+ CloseMenu: string;
203
+ };
204
+ };
33
205
  TypeToSearch: string;
34
206
  Upload: string;
35
207
  ScrollLeft: string;
@@ -53,14 +225,18 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
53
225
  False: string;
54
226
  Blank: string;
55
227
  NotBlank: string;
228
+ Information: string;
229
+ OpenMenu: string;
230
+ CloseMenu: string;
56
231
  };
57
- constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, grid: GridService, el: ElementRef);
232
+ constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, weak: WeakService, register: RegisterService, metadata: MetadataService, grid: GridService, el: ElementRef, cdr: ChangeDetectorRef);
58
233
  ngOnInit(): void;
59
234
  ngAfterViewInit(): void;
60
235
  getRegister(): RegisterService;
61
236
  getClass(component: any): string;
62
237
  getTextFeedback(component: any): string;
63
238
  isWarning(component: any): boolean;
239
+ locale(component: any, key: string): string;
64
240
  evaluateString(value: string | null): string;
65
241
  evaluateBoolean(value: boolean | string | null): boolean | null;
66
242
  evaluateNumber(value: number | string | null): number | null;
@@ -89,5 +265,5 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
89
265
  private getAsObservable;
90
266
  private configureDatepicker;
91
267
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
92
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
268
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, {}, never, never, true, never>;
93
269
  }
@@ -16,9 +16,11 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
16
16
  schema: any;
17
17
  formGroup: FormGroup;
18
18
  value: any;
19
+ language: string;
19
20
  showNav: boolean;
20
21
  showNavButton: boolean;
21
22
  showProgress: boolean;
23
+ showFormTitle: boolean;
22
24
  progressStatus: boolean;
23
25
  valueChange: EventEmitter<any>;
24
26
  initialized: EventEmitter<FormGroup<any>>;
@@ -26,6 +28,176 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
26
28
  activeNavChange: EventEmitter<any>;
27
29
  constructor(fb: FormBuilder, programmability: ProgrammabilityService, events: EventService, registerService: RegisterService, metadata: MetadataService);
28
30
  Texts: {
31
+ i18n: {
32
+ it: {
33
+ TypeToSearch: string;
34
+ Upload: string;
35
+ ScrollLeft: string;
36
+ ScrollRight: string;
37
+ AddItem: string;
38
+ RemoveItem: string;
39
+ PreviousSection: string;
40
+ NextSection: string;
41
+ Show: string;
42
+ Remove: string;
43
+ Close: string;
44
+ Name: string;
45
+ Size: string;
46
+ Type: string;
47
+ Actions: string;
48
+ ReadMore: string;
49
+ ReadLess: string;
50
+ SelectAll: string;
51
+ ChooseOne: string;
52
+ True: string;
53
+ False: string;
54
+ Blank: string;
55
+ NotBlank: string;
56
+ Information: string;
57
+ OpenMenu: string;
58
+ CloseMenu: string;
59
+ };
60
+ en: {
61
+ TypeToSearch: string;
62
+ Upload: string;
63
+ ScrollLeft: string;
64
+ ScrollRight: string;
65
+ AddItem: string;
66
+ RemoveItem: string;
67
+ PreviousSection: string;
68
+ NextSection: string;
69
+ Show: string;
70
+ Remove: string;
71
+ Close: string;
72
+ Name: string;
73
+ Size: string;
74
+ Type: string;
75
+ Actions: string;
76
+ ReadMore: string;
77
+ ReadLess: string;
78
+ SelectAll: string;
79
+ ChooseOne: string;
80
+ True: string;
81
+ False: string;
82
+ Blank: string;
83
+ NotBlank: string;
84
+ Information: string;
85
+ OpenMenu: string;
86
+ CloseMenu: string;
87
+ };
88
+ de: {
89
+ TypeToSearch: string;
90
+ Upload: string;
91
+ ScrollLeft: string;
92
+ ScrollRight: string;
93
+ AddItem: string;
94
+ RemoveItem: string;
95
+ PreviousSection: string;
96
+ NextSection: string;
97
+ Show: string;
98
+ Remove: string;
99
+ Close: string;
100
+ Name: string;
101
+ Size: string;
102
+ Type: string;
103
+ Actions: string;
104
+ ReadMore: string;
105
+ ReadLess: string;
106
+ SelectAll: string;
107
+ ChooseOne: string;
108
+ True: string;
109
+ False: string;
110
+ Blank: string;
111
+ NotBlank: string;
112
+ Information: string;
113
+ OpenMenu: string;
114
+ CloseMenu: string;
115
+ };
116
+ fr: {
117
+ TypeToSearch: string;
118
+ Upload: string;
119
+ ScrollLeft: string;
120
+ ScrollRight: string;
121
+ AddItem: string;
122
+ RemoveItem: string;
123
+ PreviousSection: string;
124
+ NextSection: string;
125
+ Show: string;
126
+ Remove: string;
127
+ Close: string;
128
+ Name: string;
129
+ Size: string;
130
+ Type: string;
131
+ Actions: string;
132
+ ReadMore: string;
133
+ ReadLess: string;
134
+ SelectAll: string;
135
+ ChooseOne: string;
136
+ True: string;
137
+ False: string;
138
+ Blank: string;
139
+ NotBlank: string;
140
+ Information: string;
141
+ OpenMenu: string;
142
+ CloseMenu: string;
143
+ };
144
+ es: {
145
+ TypeToSearch: string;
146
+ Upload: string;
147
+ ScrollLeft: string;
148
+ ScrollRight: string;
149
+ AddItem: string;
150
+ RemoveItem: string;
151
+ PreviousSection: string;
152
+ NextSection: string;
153
+ Show: string;
154
+ Remove: string;
155
+ Close: string;
156
+ Name: string;
157
+ Size: string;
158
+ Type: string;
159
+ Actions: string;
160
+ ReadMore: string;
161
+ ReadLess: string;
162
+ SelectAll: string;
163
+ ChooseOne: string;
164
+ True: string;
165
+ False: string;
166
+ Blank: string;
167
+ NotBlank: string;
168
+ Information: string;
169
+ OpenMenu: string;
170
+ CloseMenu: string;
171
+ };
172
+ pt: {
173
+ TypeToSearch: string;
174
+ Upload: string;
175
+ ScrollLeft: string;
176
+ ScrollRight: string;
177
+ AddItem: string;
178
+ RemoveItem: string;
179
+ PreviousSection: string;
180
+ NextSection: string;
181
+ Show: string;
182
+ Remove: string;
183
+ Close: string;
184
+ Name: string;
185
+ Size: string;
186
+ Type: string;
187
+ Actions: string;
188
+ ReadMore: string;
189
+ ReadLess: string;
190
+ SelectAll: string;
191
+ ChooseOne: string;
192
+ True: string;
193
+ False: string;
194
+ Blank: string;
195
+ NotBlank: string;
196
+ Information: string;
197
+ OpenMenu: string;
198
+ CloseMenu: string;
199
+ };
200
+ };
29
201
  TypeToSearch: string;
30
202
  Upload: string;
31
203
  ScrollLeft: string;
@@ -49,11 +221,15 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
49
221
  False: string;
50
222
  Blank: string;
51
223
  NotBlank: string;
224
+ Information: string;
225
+ OpenMenu: string;
226
+ CloseMenu: string;
52
227
  };
53
228
  ngOnDestroy(): void;
54
229
  private internalChange;
55
230
  ngOnChanges(changes: SimpleChanges): void;
56
231
  get forms(): Array<any>;
232
+ locale(component: any, key: string): string;
57
233
  canPrevious(): boolean;
58
234
  goPrevious(): void;
59
235
  canNext(): boolean;
@@ -96,5 +272,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
96
272
  private splitPath;
97
273
  private hasValue;
98
274
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
99
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "onCommand": "onCommand"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
275
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "language": { "alias": "language"; "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>;
100
276
  }
@@ -0,0 +1,28 @@
1
+ export declare const Texts: {
2
+ TypeToSearch: string;
3
+ Upload: string;
4
+ ScrollLeft: string;
5
+ ScrollRight: string;
6
+ AddItem: string;
7
+ RemoveItem: string;
8
+ PreviousSection: string;
9
+ NextSection: string;
10
+ Show: string;
11
+ Remove: string;
12
+ Close: string;
13
+ Name: string;
14
+ Size: string;
15
+ Type: string;
16
+ Actions: string;
17
+ ReadMore: string;
18
+ ReadLess: string;
19
+ SelectAll: string;
20
+ ChooseOne: string;
21
+ True: string;
22
+ False: string;
23
+ Blank: string;
24
+ NotBlank: string;
25
+ Information: string;
26
+ OpenMenu: string;
27
+ CloseMenu: string;
28
+ };
@@ -0,0 +1,28 @@
1
+ export declare const Texts: {
2
+ TypeToSearch: string;
3
+ Upload: string;
4
+ ScrollLeft: string;
5
+ ScrollRight: string;
6
+ AddItem: string;
7
+ RemoveItem: string;
8
+ PreviousSection: string;
9
+ NextSection: string;
10
+ Show: string;
11
+ Remove: string;
12
+ Close: string;
13
+ Name: string;
14
+ Size: string;
15
+ Type: string;
16
+ Actions: string;
17
+ ReadMore: string;
18
+ ReadLess: string;
19
+ SelectAll: string;
20
+ ChooseOne: string;
21
+ True: string;
22
+ False: string;
23
+ Blank: string;
24
+ NotBlank: string;
25
+ Information: string;
26
+ OpenMenu: string;
27
+ CloseMenu: string;
28
+ };
@@ -0,0 +1,28 @@
1
+ export declare const Texts: {
2
+ TypeToSearch: string;
3
+ Upload: string;
4
+ ScrollLeft: string;
5
+ ScrollRight: string;
6
+ AddItem: string;
7
+ RemoveItem: string;
8
+ PreviousSection: string;
9
+ NextSection: string;
10
+ Show: string;
11
+ Remove: string;
12
+ Close: string;
13
+ Name: string;
14
+ Size: string;
15
+ Type: string;
16
+ Actions: string;
17
+ ReadMore: string;
18
+ ReadLess: string;
19
+ SelectAll: string;
20
+ ChooseOne: string;
21
+ True: string;
22
+ False: string;
23
+ Blank: string;
24
+ NotBlank: string;
25
+ Information: string;
26
+ OpenMenu: string;
27
+ CloseMenu: string;
28
+ };
@@ -0,0 +1,28 @@
1
+ export declare const Texts: {
2
+ TypeToSearch: string;
3
+ Upload: string;
4
+ ScrollLeft: string;
5
+ ScrollRight: string;
6
+ AddItem: string;
7
+ RemoveItem: string;
8
+ PreviousSection: string;
9
+ NextSection: string;
10
+ Show: string;
11
+ Remove: string;
12
+ Close: string;
13
+ Name: string;
14
+ Size: string;
15
+ Type: string;
16
+ Actions: string;
17
+ ReadMore: string;
18
+ ReadLess: string;
19
+ SelectAll: string;
20
+ ChooseOne: string;
21
+ True: string;
22
+ False: string;
23
+ Blank: string;
24
+ NotBlank: string;
25
+ Information: string;
26
+ OpenMenu: string;
27
+ CloseMenu: string;
28
+ };
@@ -22,4 +22,7 @@ export declare const Texts: {
22
22
  False: string;
23
23
  Blank: string;
24
24
  NotBlank: string;
25
+ Information: string;
26
+ OpenMenu: string;
27
+ CloseMenu: string;
25
28
  };
@@ -0,0 +1,28 @@
1
+ export declare const Texts: {
2
+ TypeToSearch: string;
3
+ Upload: string;
4
+ ScrollLeft: string;
5
+ ScrollRight: string;
6
+ AddItem: string;
7
+ RemoveItem: string;
8
+ PreviousSection: string;
9
+ NextSection: string;
10
+ Show: string;
11
+ Remove: string;
12
+ Close: string;
13
+ Name: string;
14
+ Size: string;
15
+ Type: string;
16
+ Actions: string;
17
+ ReadMore: string;
18
+ ReadLess: string;
19
+ SelectAll: string;
20
+ ChooseOne: string;
21
+ True: string;
22
+ False: string;
23
+ Blank: string;
24
+ NotBlank: string;
25
+ Information: string;
26
+ OpenMenu: string;
27
+ CloseMenu: string;
28
+ };