@wemake4u/form-player-se 1.0.39 → 1.0.40
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/builtIn/builtIn.mjs +24 -0
- package/esm2022/lib/builtIn/console.json +253 -0
- package/esm2022/lib/builtIn/dialog.json +109 -0
- package/esm2022/lib/builtIn/feel.json +26 -0
- package/esm2022/lib/builtIn/form.json +172 -0
- package/esm2022/lib/builtIn/formGroup.json +218 -0
- package/esm2022/lib/builtIn/formatter.json +112 -0
- package/esm2022/lib/builtIn/function.json +53 -0
- package/esm2022/lib/builtIn/register.json +14 -0
- package/esm2022/lib/components/setFilter/setFilter.component.mjs +18 -3
- package/esm2022/lib/directives/accordionpanel.directive.mjs +10 -5
- package/esm2022/lib/directives/collapse.directive.mjs +22 -12
- package/esm2022/lib/directives/collapsepatch.directive.mjs +2 -1
- package/esm2022/lib/directives/datetime.directive.mjs +18 -21
- package/esm2022/lib/directives/dropdown.directive.mjs +31 -16
- package/esm2022/lib/directives/grid.directive.mjs +10 -8
- package/esm2022/lib/directives/readonly.directive.mjs +10 -9
- package/esm2022/lib/directives/register.directive.mjs +8 -10
- package/esm2022/lib/directives/required.directive.mjs +57 -0
- package/esm2022/lib/directives/tabcontrol.directive.mjs +10 -9
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +20 -4
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +43 -21
- package/esm2022/lib/dynamic-host/dynamic-host.component.mjs +32 -10
- package/esm2022/lib/services/event.service.mjs +17 -6
- package/esm2022/lib/services/grid.service.mjs +4 -1
- package/esm2022/lib/services/listener.service.mjs +23 -0
- package/esm2022/lib/services/programmability.service.mjs +54 -38
- package/esm2022/lib/services/status.service.mjs +10 -5
- package/esm2022/lib/services/subscribe.service.mjs +54 -0
- package/esm2022/lib/services/validation.service.mjs +11 -2
- package/esm2022/lib/utils/deepEqual.mjs +46 -0
- package/esm2022/lib/utils/observable.mjs +7 -0
- package/esm2022/lib/utils/proxy.mjs +28 -1
- package/esm2022/lib/utils/resolveRefs.mjs +67 -0
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/wemake4u-form-player-se.mjs +1573 -175
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/builtIn/builtIn.d.ts +32 -0
- package/lib/components/setFilter/setFilter.component.d.ts +1 -0
- package/lib/directives/accordionpanel.directive.d.ts +4 -2
- package/lib/directives/collapse.directive.d.ts +5 -3
- package/lib/directives/datetime.directive.d.ts +7 -8
- package/lib/directives/dropdown.directive.d.ts +6 -3
- package/lib/directives/grid.directive.d.ts +4 -3
- package/lib/directives/readonly.directive.d.ts +3 -4
- package/lib/directives/register.directive.d.ts +3 -3
- package/lib/directives/required.directive.d.ts +17 -0
- package/lib/directives/tabcontrol.directive.d.ts +5 -6
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +1 -0
- package/lib/dynamic-form/dynamic-form.component.d.ts +4 -1
- package/lib/dynamic-host/dynamic-host.component.d.ts +6 -2
- package/lib/services/event.service.d.ts +8 -2
- package/lib/services/listener.service.d.ts +11 -0
- package/lib/services/programmability.service.d.ts +8 -9
- package/lib/services/status.service.d.ts +5 -1
- package/lib/services/subscribe.service.d.ts +14 -0
- package/lib/services/validation.service.d.ts +5 -2
- package/lib/utils/deepEqual.d.ts +1 -0
- package/lib/utils/observable.d.ts +2 -0
- package/lib/utils/proxy.d.ts +2 -0
- package/lib/utils/resolveRefs.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const builtIn: ({
|
|
2
|
+
name: string;
|
|
3
|
+
detail: string;
|
|
4
|
+
info: string;
|
|
5
|
+
entries: {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
detail: string;
|
|
9
|
+
info: string;
|
|
10
|
+
params: ({
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
optional?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
optional: boolean;
|
|
18
|
+
})[];
|
|
19
|
+
}[];
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
entries: {
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
detail: string;
|
|
26
|
+
info: string;
|
|
27
|
+
params: {
|
|
28
|
+
name: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}[];
|
|
31
|
+
}[];
|
|
32
|
+
})[];
|
|
@@ -86,6 +86,7 @@ export declare class SetFilterComponent implements IFilterAngularComp {
|
|
|
86
86
|
private setAll;
|
|
87
87
|
private updateFilteredOptions;
|
|
88
88
|
private resolvePath;
|
|
89
|
+
private getFilterType;
|
|
89
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<SetFilterComponent, never>;
|
|
90
91
|
static ɵcmp: i0.ɵɵComponentDeclaration<SetFilterComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
91
92
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
1
2
|
import { SirioAccordionPanelComponent } from 'ngx-sirio-lib';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AccordionPanelDirective {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
private destroyRef;
|
|
6
|
+
constructor(panel: SirioAccordionPanelComponent, destroyRef: DestroyRef);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionPanelDirective, [{ host: true; }, null]>;
|
|
6
8
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionPanelDirective, "[accordionPanel]", never, {}, {}, never, never, true, never>;
|
|
7
9
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
1
|
+
import { ElementRef, Renderer2, OnChanges, SimpleChanges, OnDestroy, DestroyRef } from '@angular/core';
|
|
2
|
+
import { ListenerService } from '../services/listener.service';
|
|
2
3
|
import { LanguageService } from '@wemake4u/interact';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
5
6
|
private el;
|
|
6
7
|
private renderer;
|
|
8
|
+
private destroyRef;
|
|
9
|
+
private listenerService;
|
|
7
10
|
private languageService;
|
|
8
11
|
maxHeight: number | null;
|
|
9
12
|
private currentHeight;
|
|
@@ -13,8 +16,7 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
|
13
16
|
private viewInitialized;
|
|
14
17
|
private timeoutFocusOut;
|
|
15
18
|
private unlistenFocusOut;
|
|
16
|
-
|
|
17
|
-
constructor(el: ElementRef, renderer: Renderer2, languageService: LanguageService);
|
|
19
|
+
constructor(el: ElementRef, renderer: Renderer2, destroyRef: DestroyRef, listenerService: ListenerService, languageService: LanguageService);
|
|
18
20
|
ngOnDestroy(): void;
|
|
19
21
|
ngAfterViewInit(): void;
|
|
20
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, Renderer2, DestroyRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { SirioDatepickerComponent, SirioTimepickerComponent } from 'ngx-sirio-lib';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DateTimeCoordinatorDirective implements ControlValueAccessor, AfterViewInit
|
|
5
|
+
export declare class DateTimeCoordinatorDirective implements ControlValueAccessor, AfterViewInit {
|
|
6
|
+
private destroyRef;
|
|
7
|
+
constructor(destroyRef: DestroyRef);
|
|
6
8
|
datePicker: SirioDatepickerComponent;
|
|
7
9
|
timePicker: SirioTimepickerComponent;
|
|
8
10
|
private onChange;
|
|
9
11
|
private onTouched;
|
|
10
12
|
private dateValue;
|
|
11
13
|
private timeValue;
|
|
12
|
-
private destroy$;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
14
|
ngAfterViewInit(): void;
|
|
15
15
|
writeValue(value: any): void;
|
|
16
16
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -20,14 +20,13 @@ export declare class DateTimeCoordinatorDirective implements ControlValueAccesso
|
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeCoordinatorDirective, never>;
|
|
21
21
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeCoordinatorDirective, "[dateTimeCoordinator]", never, { "datePicker": { "alias": "datePicker"; "required": false; }; "timePicker": { "alias": "timePicker"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
22
|
}
|
|
23
|
-
export declare class DateTimeValidationDirective implements AfterViewInit
|
|
23
|
+
export declare class DateTimeValidationDirective implements AfterViewInit {
|
|
24
24
|
private ngControl;
|
|
25
|
+
private destroyRef;
|
|
25
26
|
private renderer;
|
|
26
27
|
isWarning: boolean;
|
|
27
28
|
showWhenValid: boolean;
|
|
28
|
-
|
|
29
|
-
constructor(ngControl: NgControl, renderer: Renderer2);
|
|
30
|
-
ngOnDestroy(): void;
|
|
29
|
+
constructor(ngControl: NgControl, destroyRef: DestroyRef, renderer: Renderer2);
|
|
31
30
|
ngAfterViewInit(): void;
|
|
32
31
|
private getCoordinator;
|
|
33
32
|
private checkValidation;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, ElementRef, Renderer2, DestroyRef } from '@angular/core';
|
|
2
|
+
import { ListenerService } from '../services/listener.service';
|
|
2
3
|
import { SirioSelectComponent } from 'ngx-sirio-lib';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
5
6
|
private el;
|
|
6
7
|
private renderer;
|
|
8
|
+
private listenerService;
|
|
9
|
+
private destroyRef;
|
|
7
10
|
private sirioSelect;
|
|
8
|
-
constructor(el: ElementRef, renderer: Renderer2, sirioSelect: SirioSelectComponent);
|
|
11
|
+
constructor(el: ElementRef, renderer: Renderer2, listenerService: ListenerService, destroyRef: DestroyRef, sirioSelect: SirioSelectComponent);
|
|
9
12
|
ngAfterViewInit(): void;
|
|
10
13
|
ngOnInit(): void;
|
|
11
14
|
ngOnDestroy(): void;
|
|
@@ -31,6 +34,6 @@ export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
|
31
34
|
private scrollUp;
|
|
32
35
|
private findPreviousVisibleOption;
|
|
33
36
|
private findNextVisibleOption;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, [null, null, { host: true; }]>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, [null, null, null, null, { host: true; }]>;
|
|
35
38
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[dropdown]", never, {}, {}, never, never, true, never>;
|
|
36
39
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { DestroyRef } from '@angular/core';
|
|
3
4
|
import { AgGridAngular } from 'ag-grid-angular';
|
|
4
5
|
import { GridService } from '../services/grid.service';
|
|
5
6
|
import { CacheContextService } from '../services/cache.service';
|
|
@@ -10,6 +11,7 @@ export declare class GridDirective implements OnChanges {
|
|
|
10
11
|
private gridService;
|
|
11
12
|
private cacheContext;
|
|
12
13
|
private languageService;
|
|
14
|
+
private destroyRef;
|
|
13
15
|
rowSource: any;
|
|
14
16
|
columnDefs: any;
|
|
15
17
|
selectable: boolean | null;
|
|
@@ -17,8 +19,7 @@ export declare class GridDirective implements OnChanges {
|
|
|
17
19
|
suppressActions: boolean | null;
|
|
18
20
|
formGroup: FormGroup;
|
|
19
21
|
component: any;
|
|
20
|
-
|
|
21
|
-
constructor(grid: AgGridAngular, gridService: GridService, cacheContext: CacheContextService, languageService: LanguageService);
|
|
22
|
+
constructor(grid: AgGridAngular, gridService: GridService, cacheContext: CacheContextService, languageService: LanguageService, destroyRef: DestroyRef);
|
|
22
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
24
|
private gridApi;
|
|
24
25
|
private isGridReady;
|
|
@@ -44,6 +45,6 @@ export declare class GridDirective implements OnChanges {
|
|
|
44
45
|
private locale;
|
|
45
46
|
private wrapObservable;
|
|
46
47
|
private wrapRowsSource;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }, null, null, null]>;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }, null, null, null, null]>;
|
|
48
49
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GridDirective, "[rowSource], [columnDefs], [selectable], [multiSelect], [suppressActions]", never, { "rowSource": { "alias": "rowSource"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "multiSelect": { "alias": "multiSelect"; "required": false; }; "suppressActions": { "alias": "suppressActions"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
|
|
49
50
|
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges, ElementRef, Renderer2 } from '@angular/core';
|
|
1
|
+
import { OnChanges, SimpleChanges, ElementRef, Renderer2, DestroyRef } from '@angular/core';
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
|
3
3
|
import { GlobalService } from '../services/global.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ReadOnlyDirective implements OnChanges {
|
|
6
6
|
private ngControl;
|
|
7
7
|
private global;
|
|
8
|
+
private destroyRef;
|
|
8
9
|
private el;
|
|
9
10
|
private renderer;
|
|
10
11
|
readonly: boolean | null;
|
|
11
12
|
placeholder: string | null;
|
|
12
13
|
componentRef: any;
|
|
13
14
|
properties: any;
|
|
14
|
-
constructor(ngControl: NgControl, global: GlobalService, el: ElementRef, renderer: Renderer2);
|
|
15
|
+
constructor(ngControl: NgControl, global: GlobalService, destroyRef: DestroyRef, el: ElementRef, renderer: Renderer2);
|
|
15
16
|
private disableClass;
|
|
16
17
|
private readonlyClass;
|
|
17
18
|
private lightReadonlyClass;
|
|
18
|
-
private sub?;
|
|
19
19
|
ngOnInit(): void;
|
|
20
|
-
ngOnDestroy(): void;
|
|
21
20
|
ngOnChanges(changes: SimpleChanges): void;
|
|
22
21
|
private apply;
|
|
23
22
|
private toggleClass;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ElementRef, AfterContentInit, OnDestroy, QueryList } from '@angular/core';
|
|
1
|
+
import { ElementRef, AfterContentInit, OnDestroy, QueryList, DestroyRef } from '@angular/core';
|
|
2
2
|
import { RegisterService } from '../services/register.service';
|
|
3
3
|
import { IDynamicFieldsComponent } from '../dynamic-fields/dynamic-fields.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class RegisterDirective implements AfterContentInit, OnDestroy {
|
|
6
6
|
private el;
|
|
7
|
+
private destroyRef;
|
|
7
8
|
private registerService;
|
|
8
9
|
register: any;
|
|
9
10
|
componentRef: any;
|
|
10
11
|
dynamicField?: IDynamicFieldsComponent;
|
|
11
12
|
itemFields: QueryList<IDynamicFieldsComponent>;
|
|
12
|
-
constructor(el: ElementRef, registerService: RegisterService);
|
|
13
|
+
constructor(el: ElementRef, destroyRef: DestroyRef, registerService: RegisterService);
|
|
13
14
|
ngAfterContentInit(): void;
|
|
14
15
|
ngOnDestroy(): void;
|
|
15
|
-
private destroy$;
|
|
16
16
|
private registerControl;
|
|
17
17
|
private unregisterControl;
|
|
18
18
|
private getName;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { SirioInputComponent } from 'ngx-sirio-lib';
|
|
3
|
+
import { ValidationService } from '../services/validation.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RequiredOnInputDirective implements AfterViewInit, OnDestroy {
|
|
6
|
+
private sirioInput;
|
|
7
|
+
private validationService;
|
|
8
|
+
required: any;
|
|
9
|
+
constructor(sirioInput: SirioInputComponent, validationService: ValidationService);
|
|
10
|
+
private removeListener?;
|
|
11
|
+
private wasEmpty;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
private isEmpty;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequiredOnInputDirective, [{ host: true; }, null]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredOnInputDirective, "[requiredOnInput]", never, { "required": { "alias": "requiredOnInput"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, DestroyRef } from '@angular/core';
|
|
2
2
|
import { SirioTabComponent } from 'ngx-sirio-lib';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TabControlDirective implements OnInit
|
|
4
|
+
export declare class TabControlDirective implements OnInit {
|
|
5
5
|
private sirioTab;
|
|
6
|
-
|
|
6
|
+
private destroyRef;
|
|
7
|
+
constructor(sirioTab: SirioTabComponent, destroyRef: DestroyRef);
|
|
7
8
|
ngOnInit(): void;
|
|
8
|
-
ngOnDestroy(): void;
|
|
9
|
-
private tabChangeSub;
|
|
10
9
|
private HandleIndexChange;
|
|
11
10
|
private validateIndex;
|
|
12
11
|
private setFocus;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TabControlDirective, [{ host: true; }]>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabControlDirective, [{ host: true; }, null]>;
|
|
14
13
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TabControlDirective, "[tabControl]", never, {}, {}, never, never, true, never>;
|
|
15
14
|
}
|
|
@@ -420,6 +420,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
420
420
|
"horizontal-fill": boolean;
|
|
421
421
|
};
|
|
422
422
|
getLightView(component: any): string;
|
|
423
|
+
getPanels(component: any): Observable<any>;
|
|
423
424
|
private noData;
|
|
424
425
|
private get language();
|
|
425
426
|
private getAlignmentRules;
|
|
@@ -9,6 +9,7 @@ import { ComputeService } from '../services/compute.service';
|
|
|
9
9
|
import { MetadataService } from '../services/metadata.service';
|
|
10
10
|
import { FormService } from '../services/form.service';
|
|
11
11
|
import { DialogService, FormDialogOptions } from '../services/dialog.service';
|
|
12
|
+
import { SubscribeService } from '../services/subscribe.service';
|
|
12
13
|
import { SirioStepperProgressBarComponent, SirioStepperProgressStatus, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
13
14
|
import { RegisterService } from '../services/register.service';
|
|
14
15
|
import { Control } from '../controls/control';
|
|
@@ -24,6 +25,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
24
25
|
private eventService;
|
|
25
26
|
private registerService;
|
|
26
27
|
private languageService;
|
|
28
|
+
private subscribeService;
|
|
27
29
|
private metadata;
|
|
28
30
|
private formService;
|
|
29
31
|
private dialog;
|
|
@@ -42,7 +44,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
42
44
|
initialized: EventEmitter<FormGroup<any>>;
|
|
43
45
|
activeNavChange: EventEmitter<any>;
|
|
44
46
|
formDiv: ElementRef<HTMLDivElement>;
|
|
45
|
-
constructor(fb: FormBuilder, programmability: ProgrammabilityService, validationService: ValidationService, disableService: DisableService, computeService: ComputeService, statusService: StatusService, eventService: EventService, registerService: RegisterService, languageService: LanguageService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
47
|
+
constructor(fb: FormBuilder, programmability: ProgrammabilityService, validationService: ValidationService, disableService: DisableService, computeService: ComputeService, statusService: StatusService, eventService: EventService, registerService: RegisterService, languageService: LanguageService, subscribeService: SubscribeService, metadata: MetadataService, formService: FormService, dialog: DialogService, injector: Injector);
|
|
46
48
|
Texts: {
|
|
47
49
|
i18n: {
|
|
48
50
|
it: {
|
|
@@ -382,6 +384,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
382
384
|
private get language();
|
|
383
385
|
private onChangeSchema;
|
|
384
386
|
private onChangeValue;
|
|
387
|
+
private patchingValue;
|
|
385
388
|
private assignActivaNav;
|
|
386
389
|
private suspendValueChanges;
|
|
387
390
|
private registerHandlers;
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { AfterViewInit, ViewContainerRef, Injector, ComponentRef, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ViewContainerRef, Injector, ComponentRef, OnChanges, SimpleChanges, OnDestroy, DestroyRef } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { GlobalService } from '../services/global.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DynamicHostComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
6
6
|
private injector;
|
|
7
7
|
private globalService;
|
|
8
|
+
private destroyRef;
|
|
8
9
|
component: any;
|
|
9
10
|
properties: Record<string, any> | null;
|
|
10
11
|
formGroup: FormGroup;
|
|
11
12
|
container: ViewContainerRef;
|
|
12
|
-
constructor(injector: Injector, globalService: GlobalService);
|
|
13
|
+
constructor(injector: Injector, globalService: GlobalService, destroyRef: DestroyRef);
|
|
13
14
|
ngOnDestroy(): void;
|
|
14
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
16
|
ngAfterViewInit(): void;
|
|
16
17
|
getComponentRef(): ComponentRef<any> | null;
|
|
17
18
|
private componentRef;
|
|
18
19
|
private statusSub;
|
|
20
|
+
private subscriptions;
|
|
19
21
|
private isBindable;
|
|
20
22
|
private setBinding;
|
|
21
23
|
private setProperties;
|
|
@@ -23,6 +25,8 @@ export declare class DynamicHostComponent implements AfterViewInit, OnChanges, O
|
|
|
23
25
|
private isControlValueAccessor;
|
|
24
26
|
private resolveComponentType;
|
|
25
27
|
private validProperties;
|
|
28
|
+
private isEmitter;
|
|
29
|
+
private isFunction;
|
|
26
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicHostComponent, never>;
|
|
27
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicHostComponent, "app-dynamic-host", never, { "component": { "alias": "register"; "required": false; }; "properties": { "alias": "properties"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
32
|
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
1
2
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
3
|
+
import { SubscribeService } from '../services/subscribe.service';
|
|
2
4
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class EventService {
|
|
5
7
|
private programmability;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
private subscribeService;
|
|
9
|
+
private destroyRef;
|
|
10
|
+
constructor(programmability: ProgrammabilityService, subscribeService: SubscribeService, destroyRef: DestroyRef);
|
|
11
|
+
private _suppress;
|
|
12
|
+
set suppress(value: boolean);
|
|
13
|
+
get suppress(): boolean;
|
|
8
14
|
createCollection(): EventCollection;
|
|
9
15
|
addToCollection(collection: EventCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
10
16
|
setupCollection(collection: EventCollection): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ListenerService implements OnDestroy {
|
|
4
|
+
private renderer;
|
|
5
|
+
constructor(renderer: Renderer2);
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
private listeners;
|
|
8
|
+
listen(target: any, event: string, handler: (event: any) => void): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListenerService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListenerService>;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { 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,9 +10,9 @@ 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 {
|
|
13
|
+
import { SubscribeService } from '../services/subscribe.service';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare class ProgrammabilityService
|
|
15
|
+
export declare class ProgrammabilityService {
|
|
16
16
|
private feelService;
|
|
17
17
|
private weakService;
|
|
18
18
|
private toastService;
|
|
@@ -21,13 +21,13 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
21
21
|
private functionService;
|
|
22
22
|
private formService;
|
|
23
23
|
private globalService;
|
|
24
|
+
private subscribeService;
|
|
25
|
+
private destroyRef;
|
|
24
26
|
private register;
|
|
25
27
|
private scope;
|
|
26
|
-
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, formatterService: FormatterService, functionService: FunctionService, formService: FormService, globalService: GlobalService, register: RegisterService, scope: ScopeService);
|
|
28
|
+
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, formatterService: FormatterService, functionService: FunctionService, formService: FormService, globalService: GlobalService, subscribeService: SubscribeService, destroyRef: DestroyRef, register: RegisterService, scope: ScopeService);
|
|
27
29
|
private predefinedFunctions;
|
|
28
|
-
private destroy$;
|
|
29
30
|
private evaluatorProviders;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
31
|
addEvaluatorProviders(evaluatorProvider: IEvaluatorProvider): void;
|
|
32
32
|
isExpression(text: string | null): boolean;
|
|
33
33
|
getExpression(text: string | null): string;
|
|
@@ -40,7 +40,6 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
40
40
|
invalidate(value: string | null): void;
|
|
41
41
|
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
|
|
42
42
|
getDependencies(expression: string): (string | string[])[];
|
|
43
|
-
subscribeChanges<T>(observable$: Observable<T>, control: AbstractControl, initial: T, callback: (() => void) | ((oldValue: T, newValue: T) => void), logFn?: (control: AbstractControl) => void): void;
|
|
44
43
|
get verbose(): boolean;
|
|
45
44
|
get cacheable(): boolean;
|
|
46
45
|
private _verbose;
|
|
@@ -64,7 +63,7 @@ export declare class ProgrammabilityService implements OnDestroy {
|
|
|
64
63
|
private invalidateExpression;
|
|
65
64
|
private processDependencies;
|
|
66
65
|
private getPath;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgrammabilityService, [null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
68
67
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProgrammabilityService>;
|
|
69
68
|
}
|
|
70
69
|
export interface IEvaluatorProvider {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
1
2
|
import { FormService } from './form.service';
|
|
2
3
|
import { AbstractControl } from '@angular/forms';
|
|
3
4
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
5
|
+
import { SubscribeService } from '../services/subscribe.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class StatusService {
|
|
6
8
|
private programmability;
|
|
7
9
|
private formService;
|
|
8
|
-
|
|
10
|
+
private subscribeService;
|
|
11
|
+
private destroyRef;
|
|
12
|
+
constructor(programmability: ProgrammabilityService, formService: FormService, subscribeService: SubscribeService, destroyRef: DestroyRef);
|
|
9
13
|
createCollection(): StatusCollection;
|
|
10
14
|
addToCollection(collection: StatusCollection, control: AbstractControl): void;
|
|
11
15
|
setupCollection(key: any, collection: StatusCollection): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SubscribeService {
|
|
6
|
+
get dispatchMode(): DispatchMode;
|
|
7
|
+
set dispatchMode(value: DispatchMode);
|
|
8
|
+
subscribeChanges<T>(observable$: Observable<T>, control: AbstractControl, initial: T, destroyRef: DestroyRef, callback: (() => void) | ((oldValue: T, newValue: T) => void), logFn?: (control: AbstractControl) => void): void;
|
|
9
|
+
private _dispatchMode;
|
|
10
|
+
private dispatch;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscribeService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SubscribeService>;
|
|
13
|
+
}
|
|
14
|
+
export type DispatchMode = 'sync' | 'async';
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
2
|
-
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { LanguageService } from '@wemake4u/interact';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ValidationService {
|
|
6
6
|
private languageService;
|
|
7
7
|
private programmability;
|
|
8
8
|
constructor(languageService: LanguageService, programmability: ProgrammabilityService);
|
|
9
|
-
|
|
9
|
+
private _suppress;
|
|
10
|
+
set suppress(value: boolean);
|
|
11
|
+
get suppress(): boolean;
|
|
10
12
|
createCollection(): ValidationCollection;
|
|
11
13
|
addToCollection(collection: ValidationCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
12
14
|
setupCollection(collection: ValidationCollection): void;
|
|
15
|
+
validateRequired(control: AbstractControl): ValidationErrors | null;
|
|
13
16
|
private canAddToCollection;
|
|
14
17
|
private getRules;
|
|
15
18
|
private validateRules;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepEqual(a: any, b: any, visited?: WeakMap<object, any>): boolean;
|
package/lib/utils/proxy.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface RefContext {
|
|
2
|
+
parent: any;
|
|
3
|
+
key: string | number | null;
|
|
4
|
+
root: any;
|
|
5
|
+
}
|
|
6
|
+
export type RefResolver = (ref: string, ctx: RefContext) => any;
|
|
7
|
+
export type AsyncRefResolver = (ref: string, ctx: RefContext) => Promise<any>;
|
|
8
|
+
export interface ResolveRefsOptions {
|
|
9
|
+
mergeRef?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function resolveRefs<T>(input: T, resolver: RefResolver, options?: ResolveRefsOptions): T;
|
|
12
|
+
export declare function resolveRefsAsync<T>(input: T, resolver: AsyncRefResolver, options?: ResolveRefsOptions): Promise<T>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './lib/dynamic-form/dynamic-form.component';
|
|
2
2
|
export * from './lib/utils/toFormData';
|
|
3
3
|
export * from './lib/utils/syncronize';
|
|
4
|
+
export * from './lib/utils/resolveRefs';
|
|
5
|
+
export * from './lib/utils/observable';
|
|
6
|
+
export * from './lib/utils/deepEqual';
|
|
4
7
|
export * from './lib/services/toast.service';
|
|
5
8
|
export * from './lib/services/sanitize.service';
|
|
6
9
|
export * from './lib/services/feel.service';
|
|
@@ -13,3 +16,4 @@ export * from './lib/services/form.service';
|
|
|
13
16
|
export * from './lib/interact/confirmation';
|
|
14
17
|
export * from './lib/interact/notification';
|
|
15
18
|
export * from './lib/interact/prompt';
|
|
19
|
+
export * from './lib/builtIn/builtIn';
|