@wemake4u/form-player-se 1.0.39 → 1.0.41
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 +35 -5
- package/esm2022/lib/controls/accordion.mjs +50 -3
- package/esm2022/lib/controls/control.mjs +70 -25
- package/esm2022/lib/controls/factory.mjs +42 -42
- package/esm2022/lib/controls/tab.mjs +47 -25
- package/esm2022/lib/controls/table.mjs +89 -15
- package/esm2022/lib/controls/textfield.mjs +4 -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 +32 -15
- 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 +28 -5
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +46 -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/formatter.service.mjs +3 -1
- package/esm2022/lib/services/grid.service.mjs +4 -1
- package/esm2022/lib/services/listener.service.mjs +23 -0
- package/esm2022/lib/services/navigation.service.mjs +35 -0
- package/esm2022/lib/services/programmability.service.mjs +54 -38
- package/esm2022/lib/services/register.service.mjs +40 -2
- package/esm2022/lib/services/state.service.mjs +40 -0
- 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/navigation.mjs +20 -0
- package/esm2022/lib/utils/observable.mjs +7 -0
- package/esm2022/lib/utils/patch.mjs +17 -0
- package/esm2022/lib/utils/proxy.mjs +28 -1
- package/esm2022/lib/utils/resolveRefs.mjs +67 -0
- package/esm2022/public-api.mjs +7 -1
- package/fesm2022/wemake4u-form-player-se.mjs +2027 -276
- 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/controls/accordion.d.ts +5 -1
- package/lib/controls/control.d.ts +31 -12
- package/lib/controls/factory.d.ts +2 -4
- package/lib/controls/tab.d.ts +9 -6
- package/lib/controls/table.d.ts +16 -5
- package/lib/controls/textfield.d.ts +1 -1
- 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 +4 -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 +4 -1
- 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/navigation.service.d.ts +11 -0
- package/lib/services/programmability.service.d.ts +8 -9
- package/lib/services/register.service.d.ts +9 -0
- package/lib/services/state.service.d.ts +14 -0
- 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/navigation.d.ts +6 -0
- package/lib/utils/observable.d.ts +2 -0
- package/lib/utils/patch.d.ts +1 -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 +6 -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,4 +1,8 @@
|
|
|
1
1
|
import { ContainerControl } from "./control";
|
|
2
2
|
export declare class AccordionControl extends ContainerControl {
|
|
3
|
-
|
|
3
|
+
openPanel(index: number): void;
|
|
4
|
+
onLoadState(): void;
|
|
5
|
+
onSaveState(): void;
|
|
6
|
+
private createState;
|
|
7
|
+
private get accordion();
|
|
4
8
|
}
|
|
@@ -1,21 +1,40 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
1
|
+
import { ElementRef, Injector, DestroyRef } from "@angular/core";
|
|
2
2
|
import { RegisterService } from "../services/register.service";
|
|
3
3
|
export declare class Control {
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
private readonly context;
|
|
5
|
+
constructor(context: ControlContext);
|
|
6
|
+
get name(): string;
|
|
7
|
+
protected getMetadata(): any;
|
|
8
|
+
protected getComponentRef(): any;
|
|
9
|
+
protected getElementRef(): ElementRef;
|
|
10
|
+
protected getInjector(): Injector;
|
|
11
|
+
protected getDestroyRef(): DestroyRef;
|
|
12
|
+
protected getRegister(): RegisterService | undefined;
|
|
13
|
+
protected onInit(): void;
|
|
14
|
+
protected onLoadState(): void;
|
|
15
|
+
protected onSaveState(): void;
|
|
16
|
+
protected onDestroy(): void;
|
|
17
|
+
protected getState<T = any>(): T | null;
|
|
18
|
+
protected setState(state: any): void;
|
|
19
|
+
protected clearState(): void;
|
|
20
|
+
private getId;
|
|
21
|
+
private State;
|
|
12
22
|
}
|
|
13
23
|
export declare class ContainerControl extends Control {
|
|
14
|
-
|
|
15
|
-
constructor(name: string, metadata: any, componentRef: any, elementRef: ElementRef, register: RegisterService | undefined);
|
|
24
|
+
constructor(context: ControlContext);
|
|
16
25
|
findControl(predicate: (control: Control) => boolean, firstOnly: boolean): Control[];
|
|
17
26
|
}
|
|
18
27
|
export declare class ItemControl extends ContainerControl {
|
|
19
28
|
readonly index: number;
|
|
20
|
-
constructor(
|
|
29
|
+
constructor(context: ControlContext, index: number);
|
|
30
|
+
}
|
|
31
|
+
export interface ControlContext {
|
|
32
|
+
name: string;
|
|
33
|
+
path: string;
|
|
34
|
+
metadata: any;
|
|
35
|
+
componentRef: any;
|
|
36
|
+
elementRef: ElementRef;
|
|
37
|
+
injector: Injector;
|
|
38
|
+
destroyRef: DestroyRef;
|
|
39
|
+
register?: RegisterService;
|
|
21
40
|
}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { RegisterService } from '../services/register.service';
|
|
4
|
-
export declare function createControl(name: string, metadata: any, componentRef: any, elementRef: ElementRef, register: RegisterService | undefined): Control;
|
|
1
|
+
import { Control, ControlContext } from '../controls/control';
|
|
2
|
+
export declare function createControl(context: ControlContext): Control;
|
package/lib/controls/tab.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ContainerControl } from "./control";
|
|
2
2
|
export declare class TabControl extends ContainerControl {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
canNext(): boolean;
|
|
4
|
+
goNext(): void;
|
|
5
|
+
canPrevious(): boolean;
|
|
6
|
+
goPrevious(): void;
|
|
7
|
+
setActiveIndex(index: number): void;
|
|
8
|
+
onLoadState(): void;
|
|
9
|
+
onSaveState(): void;
|
|
10
|
+
private createState;
|
|
11
|
+
private get tab();
|
|
9
12
|
private getPreviousIndex;
|
|
10
13
|
private getNextIndex;
|
|
11
14
|
}
|
package/lib/controls/table.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Control } from "./control";
|
|
2
|
+
import { FilterModel } from 'ag-grid-community';
|
|
2
3
|
export declare class TableControl extends Control {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
setFilter(filter: FilterModel): void;
|
|
5
|
+
getFilter(): FilterModel;
|
|
6
|
+
clearFilter(): void;
|
|
7
|
+
refresh(): void;
|
|
8
|
+
redraw(): void;
|
|
9
|
+
private currentState;
|
|
10
|
+
onLoadState(): void;
|
|
11
|
+
onSaveState(): void;
|
|
12
|
+
private createState;
|
|
13
|
+
private applyState;
|
|
14
|
+
private applyPagination;
|
|
15
|
+
private applyPageSize;
|
|
16
|
+
private applyPageNumber;
|
|
17
|
+
private get grid();
|
|
18
|
+
private paginationEnabled;
|
|
8
19
|
}
|
|
@@ -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,19 @@
|
|
|
1
|
-
import { ElementRef, AfterContentInit, OnDestroy, QueryList } from '@angular/core';
|
|
1
|
+
import { ElementRef, AfterContentInit, OnDestroy, QueryList, DestroyRef, Injector } 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;
|
|
9
|
+
private injector;
|
|
8
10
|
register: any;
|
|
9
11
|
componentRef: any;
|
|
10
12
|
dynamicField?: IDynamicFieldsComponent;
|
|
11
13
|
itemFields: QueryList<IDynamicFieldsComponent>;
|
|
12
|
-
constructor(el: ElementRef, registerService: RegisterService);
|
|
14
|
+
constructor(el: ElementRef, destroyRef: DestroyRef, registerService: RegisterService, injector: Injector);
|
|
13
15
|
ngAfterContentInit(): void;
|
|
14
16
|
ngOnDestroy(): void;
|
|
15
|
-
private destroy$;
|
|
16
17
|
private registerControl;
|
|
17
18
|
private unregisterControl;
|
|
18
19
|
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
|
}
|
|
@@ -45,6 +45,8 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
45
45
|
alignment: string;
|
|
46
46
|
readOnly: boolean | null;
|
|
47
47
|
recursionLevel: number;
|
|
48
|
+
identity: string;
|
|
49
|
+
identityIndex?: number;
|
|
48
50
|
Texts: {
|
|
49
51
|
i18n: {
|
|
50
52
|
it: {
|
|
@@ -420,6 +422,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
420
422
|
"horizontal-fill": boolean;
|
|
421
423
|
};
|
|
422
424
|
getLightView(component: any): string;
|
|
425
|
+
getPanels(component: any): Observable<any>;
|
|
423
426
|
private noData;
|
|
424
427
|
private get language();
|
|
425
428
|
private getAlignmentRules;
|
|
@@ -430,5 +433,5 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, ID
|
|
|
430
433
|
private markForAutoFocus;
|
|
431
434
|
private requireAutoFocus;
|
|
432
435
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
433
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; }, {}, never, never, true, never>;
|
|
436
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; "identity": { "alias": "identity"; "required": false; }; "identityIndex": { "alias": "identityIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
434
437
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavigationService {
|
|
4
|
+
private router;
|
|
5
|
+
constructor(router: Router);
|
|
6
|
+
private _skipState;
|
|
7
|
+
get skipState(): boolean;
|
|
8
|
+
private shouldSkipState;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
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 {
|
|
@@ -8,6 +8,11 @@ export declare class RegisterService implements IEvaluatorProvider {
|
|
|
8
8
|
register(name: string, control: Control): void;
|
|
9
9
|
unregister(name: string): void;
|
|
10
10
|
unregisterAll(): void;
|
|
11
|
+
identify(id: string, index?: number): void;
|
|
12
|
+
getPath(): string;
|
|
13
|
+
private _path?;
|
|
14
|
+
private identityNode?;
|
|
15
|
+
private get identityChain();
|
|
11
16
|
getContext(): Record<string, any>;
|
|
12
17
|
getControl(name: string): Control | null;
|
|
13
18
|
getControlAs<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
@@ -17,3 +22,7 @@ export declare class RegisterService implements IEvaluatorProvider {
|
|
|
17
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterService, [{ optional: true; skipSelf: true; }]>;
|
|
18
23
|
static ɵprov: i0.ɵɵInjectableDeclaration<RegisterService>;
|
|
19
24
|
}
|
|
25
|
+
export interface IdentityNode {
|
|
26
|
+
id: string;
|
|
27
|
+
index?: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NavigationService } from './navigation.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StateService {
|
|
4
|
+
private navigation;
|
|
5
|
+
constructor(navigation: NavigationService);
|
|
6
|
+
private static readonly store;
|
|
7
|
+
private readonly prefix;
|
|
8
|
+
getState<T = any>(componentId: string): T | null;
|
|
9
|
+
setState(componentId: string, value: any): void;
|
|
10
|
+
clearState(componentId: string): void;
|
|
11
|
+
private buildKey;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateService>;
|
|
14
|
+
}
|