@wemake4u/form-player-se 1.0.29 → 1.0.31
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/directives/repeat.directive.mjs +1 -5
- package/esm2022/lib/directives/tabitem.directive.mjs +26 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +82 -28
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +68 -53
- 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/event.service.mjs +45 -13
- package/esm2022/lib/services/form.service.mjs +41 -18
- package/esm2022/lib/services/programmability.service.mjs +69 -26
- package/esm2022/lib/services/scope.service.mjs +7 -1
- package/esm2022/lib/services/status.service.mjs +9 -21
- package/esm2022/lib/utils/isMeaningful.mjs +13 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/wemake4u-form-player-se.mjs +385 -156
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/common/path.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/tabitem.directive.d.ts +9 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +25 -4
- package/lib/dynamic-form/dynamic-form.component.d.ts +16 -9
- 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/event.service.d.ts +14 -10
- package/lib/services/form.service.d.ts +7 -2
- package/lib/services/programmability.service.d.ts +4 -3
- package/lib/services/scope.service.d.ts +5 -0
- package/lib/services/status.service.d.ts +4 -6
- package/lib/utils/isMeaningful.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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;
|
|
@@ -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
|
+
}
|
|
@@ -6,7 +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 {
|
|
9
|
+
import { DialogService } from '../services/dialog.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';
|
|
@@ -26,7 +26,6 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
26
26
|
private markdown;
|
|
27
27
|
private mime;
|
|
28
28
|
private programmability;
|
|
29
|
-
private events;
|
|
30
29
|
private weak;
|
|
31
30
|
private register;
|
|
32
31
|
private metadata;
|
|
@@ -35,6 +34,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
35
34
|
private formService;
|
|
36
35
|
private grid;
|
|
37
36
|
private chart;
|
|
37
|
+
private dialog;
|
|
38
38
|
private el;
|
|
39
39
|
private cdr;
|
|
40
40
|
rows: Array<any> | undefined;
|
|
@@ -80,6 +80,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
80
80
|
OpenMenu: string;
|
|
81
81
|
CloseMenu: string;
|
|
82
82
|
LoadingFailed: string;
|
|
83
|
+
ConfirmDelete: string;
|
|
83
84
|
};
|
|
84
85
|
en: {
|
|
85
86
|
TypeToSearch: string;
|
|
@@ -119,6 +120,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
119
120
|
OpenMenu: string;
|
|
120
121
|
CloseMenu: string;
|
|
121
122
|
LoadingFailed: string;
|
|
123
|
+
ConfirmDelete: string;
|
|
122
124
|
};
|
|
123
125
|
de: {
|
|
124
126
|
TypeToSearch: string;
|
|
@@ -158,6 +160,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
158
160
|
OpenMenu: string;
|
|
159
161
|
CloseMenu: string;
|
|
160
162
|
LoadingFailed: string;
|
|
163
|
+
ConfirmDelete: string;
|
|
161
164
|
};
|
|
162
165
|
fr: {
|
|
163
166
|
TypeToSearch: string;
|
|
@@ -197,6 +200,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
197
200
|
OpenMenu: string;
|
|
198
201
|
CloseMenu: string;
|
|
199
202
|
LoadingFailed: string;
|
|
203
|
+
ConfirmDelete: string;
|
|
200
204
|
};
|
|
201
205
|
es: {
|
|
202
206
|
TypeToSearch: string;
|
|
@@ -236,6 +240,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
236
240
|
OpenMenu: string;
|
|
237
241
|
CloseMenu: string;
|
|
238
242
|
LoadingFailed: string;
|
|
243
|
+
ConfirmDelete: string;
|
|
239
244
|
};
|
|
240
245
|
pt: {
|
|
241
246
|
TypeToSearch: string;
|
|
@@ -275,6 +280,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
275
280
|
OpenMenu: string;
|
|
276
281
|
CloseMenu: string;
|
|
277
282
|
LoadingFailed: string;
|
|
283
|
+
ConfirmDelete: string;
|
|
278
284
|
};
|
|
279
285
|
};
|
|
280
286
|
TypeToSearch: string;
|
|
@@ -314,8 +320,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
314
320
|
OpenMenu: string;
|
|
315
321
|
CloseMenu: string;
|
|
316
322
|
LoadingFailed: string;
|
|
323
|
+
ConfirmDelete: string;
|
|
317
324
|
};
|
|
318
|
-
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService,
|
|
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, cdr: ChangeDetectorRef);
|
|
319
326
|
ngOnInit(): void;
|
|
320
327
|
ngAfterViewInit(): void;
|
|
321
328
|
getRegister(): RegisterService;
|
|
@@ -339,8 +346,14 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
339
346
|
sanitize(html: string): SafeHtml;
|
|
340
347
|
getMimeTypes(extensions: string): string;
|
|
341
348
|
clickButton(component: any, event: any): void;
|
|
349
|
+
hasValues(component: any): boolean;
|
|
342
350
|
getValues(component: any): Observable<any>;
|
|
343
351
|
refreshValues(component: any): () => void;
|
|
352
|
+
toLabel(value: any, list: Array<{
|
|
353
|
+
label: string;
|
|
354
|
+
value: any;
|
|
355
|
+
}>): any;
|
|
356
|
+
supportValues(component: any): boolean;
|
|
344
357
|
getChartOptions(component: any): Observable<AgChartOptions>;
|
|
345
358
|
invalidateChart(component: any): () => void;
|
|
346
359
|
getChartData(component: any): any;
|
|
@@ -350,7 +363,9 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
350
363
|
getRowSource(component: any): any;
|
|
351
364
|
refreshRowSource(component: any): () => void;
|
|
352
365
|
addItem(formArray: FormArray): void;
|
|
353
|
-
removeItem(formArray: FormArray, index: number): void;
|
|
366
|
+
removeItem(formArray: FormArray, index: number, withConfirm: boolean): void;
|
|
367
|
+
moveUpItem(formArray: FormArray, index: number): void;
|
|
368
|
+
moveDownItem(formArray: FormArray, index: number): void;
|
|
354
369
|
createUploadTables(component: any): any;
|
|
355
370
|
fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
|
|
356
371
|
getFeelableProperties(component: any): Record<string, any> | null;
|
|
@@ -364,6 +379,12 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
364
379
|
[x: string]: boolean;
|
|
365
380
|
};
|
|
366
381
|
getTextAlignment(component: any): string;
|
|
382
|
+
getHorizontalAlignment(component: any): {
|
|
383
|
+
"horizontal-left": boolean;
|
|
384
|
+
"horizontal-center": boolean;
|
|
385
|
+
"horizontal-right": boolean;
|
|
386
|
+
"horizontal-fill": boolean;
|
|
387
|
+
};
|
|
367
388
|
getLightView(component: any): string;
|
|
368
389
|
private noData;
|
|
369
390
|
private get language();
|
|
@@ -4,7 +4,7 @@ import { ProgrammabilityService } from '../services/programmability.service';
|
|
|
4
4
|
import { ValidationService } from '../services/validation.service';
|
|
5
5
|
import { DisableService } from '../services/disable.service';
|
|
6
6
|
import { StatusService } from '../services/status.service';
|
|
7
|
-
import {
|
|
7
|
+
import { EventService } from '../services/event.service';
|
|
8
8
|
import { MetadataService } from '../services/metadata.service';
|
|
9
9
|
import { FormService } from '../services/form.service';
|
|
10
10
|
import { DialogService, FormDialogOptions } from '../services/dialog.service';
|
|
@@ -19,7 +19,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
19
19
|
private validationService;
|
|
20
20
|
private disableService;
|
|
21
21
|
private statusService;
|
|
22
|
-
private
|
|
22
|
+
private eventService;
|
|
23
23
|
private registerService;
|
|
24
24
|
private languageService;
|
|
25
25
|
private metadata;
|
|
@@ -37,10 +37,9 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
37
37
|
progressStatus: boolean;
|
|
38
38
|
valueChange: EventEmitter<any>;
|
|
39
39
|
initialized: EventEmitter<FormGroup<any>>;
|
|
40
|
-
onCommand: EventEmitter<CommandEvent>;
|
|
41
40
|
activeNavChange: EventEmitter<any>;
|
|
42
41
|
formDiv: ElementRef<HTMLDivElement>;
|
|
43
|
-
constructor(fb: FormBuilder, programmability: ProgrammabilityService, validationService: ValidationService, disableService: DisableService, statusService: StatusService,
|
|
42
|
+
constructor(fb: FormBuilder, programmability: ProgrammabilityService, validationService: ValidationService, disableService: DisableService, statusService: StatusService, eventService: EventService, registerService: RegisterService, languageService: LanguageService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
44
43
|
Texts: {
|
|
45
44
|
i18n: {
|
|
46
45
|
it: {
|
|
@@ -81,6 +80,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
81
80
|
OpenMenu: string;
|
|
82
81
|
CloseMenu: string;
|
|
83
82
|
LoadingFailed: string;
|
|
83
|
+
ConfirmDelete: string;
|
|
84
84
|
};
|
|
85
85
|
en: {
|
|
86
86
|
TypeToSearch: string;
|
|
@@ -120,6 +120,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
120
120
|
OpenMenu: string;
|
|
121
121
|
CloseMenu: string;
|
|
122
122
|
LoadingFailed: string;
|
|
123
|
+
ConfirmDelete: string;
|
|
123
124
|
};
|
|
124
125
|
de: {
|
|
125
126
|
TypeToSearch: string;
|
|
@@ -159,6 +160,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
159
160
|
OpenMenu: string;
|
|
160
161
|
CloseMenu: string;
|
|
161
162
|
LoadingFailed: string;
|
|
163
|
+
ConfirmDelete: string;
|
|
162
164
|
};
|
|
163
165
|
fr: {
|
|
164
166
|
TypeToSearch: string;
|
|
@@ -198,6 +200,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
198
200
|
OpenMenu: string;
|
|
199
201
|
CloseMenu: string;
|
|
200
202
|
LoadingFailed: string;
|
|
203
|
+
ConfirmDelete: string;
|
|
201
204
|
};
|
|
202
205
|
es: {
|
|
203
206
|
TypeToSearch: string;
|
|
@@ -237,6 +240,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
237
240
|
OpenMenu: string;
|
|
238
241
|
CloseMenu: string;
|
|
239
242
|
LoadingFailed: string;
|
|
243
|
+
ConfirmDelete: string;
|
|
240
244
|
};
|
|
241
245
|
pt: {
|
|
242
246
|
TypeToSearch: string;
|
|
@@ -276,6 +280,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
276
280
|
OpenMenu: string;
|
|
277
281
|
CloseMenu: string;
|
|
278
282
|
LoadingFailed: string;
|
|
283
|
+
ConfirmDelete: string;
|
|
279
284
|
};
|
|
280
285
|
};
|
|
281
286
|
TypeToSearch: string;
|
|
@@ -315,9 +320,9 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
315
320
|
OpenMenu: string;
|
|
316
321
|
CloseMenu: string;
|
|
317
322
|
LoadingFailed: string;
|
|
323
|
+
ConfirmDelete: string;
|
|
318
324
|
};
|
|
319
325
|
ngOnDestroy(): void;
|
|
320
|
-
private internalChange;
|
|
321
326
|
ngOnChanges(changes: SimpleChanges): void;
|
|
322
327
|
get forms(): Array<any>;
|
|
323
328
|
locale(component: any, key: string): string;
|
|
@@ -336,7 +341,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
336
341
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
337
342
|
evaluateTemplate(value: string | null): string;
|
|
338
343
|
openForm(template: string, options: FormDialogOptions): void;
|
|
339
|
-
refresh(): void;
|
|
340
344
|
isChanged(): boolean;
|
|
341
345
|
isValid(): boolean;
|
|
342
346
|
private valueChangesSubscription;
|
|
@@ -347,6 +351,11 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
347
351
|
private get language();
|
|
348
352
|
private onChangeSchema;
|
|
349
353
|
private onChangeValue;
|
|
354
|
+
private suspendValueChanges;
|
|
355
|
+
private internalChange;
|
|
356
|
+
private registerHandlers;
|
|
357
|
+
private clearHandlers;
|
|
358
|
+
refresh(): void;
|
|
350
359
|
private getNext;
|
|
351
360
|
private getPrevious;
|
|
352
361
|
private getMaxNav;
|
|
@@ -354,8 +363,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
354
363
|
private isInactive;
|
|
355
364
|
private clearControls;
|
|
356
365
|
private clearFormArrays;
|
|
357
|
-
private registerHandlers;
|
|
358
|
-
private clearHandlers;
|
|
359
366
|
private buildForm;
|
|
360
367
|
private addControls;
|
|
361
368
|
private createFormArray;
|
|
@@ -372,5 +379,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
372
379
|
private getDefaultValue;
|
|
373
380
|
private splitPath;
|
|
374
381
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
375
|
-
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"; "
|
|
382
|
+
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>;
|
|
376
383
|
}
|
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
|
};
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
2
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export interface CommandEvent {
|
|
4
|
-
name: string;
|
|
5
|
-
component: any;
|
|
6
|
-
formGroup: FormGroup;
|
|
7
|
-
event: any;
|
|
8
|
-
}
|
|
9
4
|
export declare class EventService {
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
private programmability;
|
|
6
|
+
constructor(programmability: ProgrammabilityService);
|
|
7
|
+
suppress: boolean;
|
|
8
|
+
createCollection(): EventCollection;
|
|
9
|
+
addToCollection(collection: EventCollection, control: AbstractControl, component: any, formGroup: FormGroup): void;
|
|
10
|
+
setupCollection(collection: EventCollection): void;
|
|
11
|
+
private processHandler;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
14
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
15
14
|
}
|
|
15
|
+
export interface EventContext {
|
|
16
|
+
component: any;
|
|
17
|
+
formGroup: FormGroup;
|
|
18
|
+
}
|
|
19
|
+
export type EventCollection = Map<AbstractControl, EventContext>;
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
3
3
|
import { FeelService } from '../services/feel.service';
|
|
4
4
|
import { ScopeService } from '../services/scope.service';
|
|
5
5
|
import { RegisterService } from '../services/register.service';
|
|
@@ -10,6 +10,7 @@ import { FormService } from './form.service';
|
|
|
10
10
|
import { DialogService } from '../services/dialog.service';
|
|
11
11
|
import { FormatterService } from '../services/formatter.service';
|
|
12
12
|
import { WeakService } from '../services/weak.service';
|
|
13
|
+
import { Observable } from "rxjs";
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class ProgrammabilityService implements OnDestroy {
|
|
15
16
|
private feelService;
|
|
@@ -32,11 +33,12 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
32
33
|
evaluateBoolean(formGroup: FormGroup, value: boolean | string | null, options?: EvaluateOptions): boolean | null;
|
|
33
34
|
evaluateNumber(formGroup: FormGroup, value: number | string | null): number | null;
|
|
34
35
|
evaluate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
35
|
-
evaluateTemplate(formGroup: FormGroup, value: string | null): any;
|
|
36
|
+
evaluateTemplate(formGroup: FormGroup, value: string | null, options?: EvaluateOptions): any;
|
|
36
37
|
evaluateUnary(formGroup: FormGroup, value: string | null, input: any): any;
|
|
37
38
|
invalidate(value: string | null): void;
|
|
38
39
|
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
|
|
39
40
|
getDependencies(expression: string): (string | string[])[];
|
|
41
|
+
subscribeChanges<T>(observable$: Observable<T>, control: AbstractControl, initial: T, callback: (() => void) | ((oldValue: T, newValue: T) => void), logFn?: (control: AbstractControl) => void): void;
|
|
40
42
|
get verbose(): boolean;
|
|
41
43
|
get cacheable(): boolean;
|
|
42
44
|
private _verbose;
|
|
@@ -56,7 +58,6 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
56
58
|
private watchingExpression;
|
|
57
59
|
private watchingTemplateExpression;
|
|
58
60
|
private watchingDependencies;
|
|
59
|
-
private subscribeChanges;
|
|
60
61
|
private invalidateExpression;
|
|
61
62
|
private processDependencies;
|
|
62
63
|
private getPath;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Path } from '../common/path';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class ScopeService implements IEvaluatorProvider {
|
|
4
6
|
private parent;
|
|
5
7
|
constructor(parent: ScopeService | null);
|
|
6
8
|
private scope;
|
|
9
|
+
private readonly refreshSubject;
|
|
10
|
+
readonly onRefresh: Observable<Path>;
|
|
7
11
|
set(scope: Record<string, any> | null): void;
|
|
8
12
|
get(): Record<string, any> | null;
|
|
13
|
+
refresh(path?: Path): void;
|
|
9
14
|
getContext(): Record<string, any>;
|
|
10
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScopeService, [{ optional: true; skipSelf: true; }]>;
|
|
11
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScopeService>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { FormService } from './form.service';
|
|
3
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class StatusService
|
|
5
|
+
export declare class StatusService {
|
|
6
|
+
private programmability;
|
|
6
7
|
private formService;
|
|
7
|
-
constructor(formService: FormService);
|
|
8
|
-
ngOnDestroy(): void;
|
|
8
|
+
constructor(programmability: ProgrammabilityService, formService: FormService);
|
|
9
9
|
createCollection(): StatusCollection;
|
|
10
10
|
addToCollection(collection: StatusCollection, control: AbstractControl): void;
|
|
11
11
|
setupCollection(key: any, collection: StatusCollection): void;
|
|
12
12
|
countInvalid(key: any): number;
|
|
13
|
-
private destroy$;
|
|
14
13
|
private invalidMap;
|
|
15
|
-
private subscribeChanges;
|
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusService, never>;
|
|
17
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<StatusService>;
|
|
18
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isMeaningful(x: any): boolean;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './lib/services/data.service';
|
|
|
9
9
|
export * from './lib/services/scope.service';
|
|
10
10
|
export * from './lib/services/dialog.service';
|
|
11
11
|
export * from './lib/services/global.service';
|
|
12
|
+
export * from './lib/services/form.service';
|
|
12
13
|
export * from './lib/interact/confirmation';
|
|
13
14
|
export * from './lib/interact/notification';
|
|
14
15
|
export * from './lib/interact/prompt';
|