@wemake4u/form-player-se 1.0.29 → 1.0.30
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/dynamic-fields/dynamic-fields.component.mjs +15 -27
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +17 -19
- package/esm2022/lib/services/event.service.mjs +45 -13
- package/esm2022/lib/services/programmability.service.mjs +18 -13
- package/esm2022/lib/services/status.service.mjs +9 -21
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/wemake4u-form-player-se.mjs +97 -85
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +1 -3
- package/lib/dynamic-form/dynamic-form.component.d.ts +4 -5
- package/lib/services/event.service.d.ts +14 -10
- package/lib/services/programmability.service.d.ts +3 -2
- package/lib/services/status.service.d.ts +4 -6
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -6,7 +6,6 @@ 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 { EventService } from '../services/event.service';
|
|
10
9
|
import { WeakService } from '../services/weak.service';
|
|
11
10
|
import { RegisterService } from '../services/register.service';
|
|
12
11
|
import { MetadataService } from '../services/metadata.service';
|
|
@@ -26,7 +25,6 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
26
25
|
private markdown;
|
|
27
26
|
private mime;
|
|
28
27
|
private programmability;
|
|
29
|
-
private events;
|
|
30
28
|
private weak;
|
|
31
29
|
private register;
|
|
32
30
|
private metadata;
|
|
@@ -315,7 +313,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
315
313
|
CloseMenu: string;
|
|
316
314
|
LoadingFailed: string;
|
|
317
315
|
};
|
|
318
|
-
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService,
|
|
316
|
+
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, el: ElementRef, cdr: ChangeDetectorRef);
|
|
319
317
|
ngOnInit(): void;
|
|
320
318
|
ngAfterViewInit(): void;
|
|
321
319
|
getRegister(): RegisterService;
|
|
@@ -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: {
|
|
@@ -372,5 +371,5 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
372
371
|
private getDefaultValue;
|
|
373
372
|
private splitPath;
|
|
374
373
|
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"; "
|
|
374
|
+
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
375
|
}
|
|
@@ -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,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;
|
|
@@ -37,6 +38,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
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,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
|
}
|
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';
|