@mediusinc/mng-commons 3.5.0-rc.0 → 3.6.0-rc.0
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/assets/i18n/en.json +6 -2
- package/assets/i18n/sl.json +6 -2
- package/esm2022/lib/api/models/filter-match-type.model.mjs +3 -1
- package/esm2022/lib/api/utils/medius-rest.util.mjs +70 -40
- package/esm2022/lib/components/action/action.component.mjs +4 -4
- package/esm2022/lib/components/action/editor/action-editor.component.mjs +8 -7
- package/esm2022/lib/components/form/autocomplete/autocomplete.component.mjs +95 -22
- package/esm2022/lib/components/form/date-range/date-range.component.mjs +8 -4
- package/esm2022/lib/components/form/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +3 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +17 -3
- package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +16 -4
- package/esm2022/lib/components/layout/menu-item.component.mjs +3 -3
- package/esm2022/lib/components/tableview/index.mjs +2 -1
- package/esm2022/lib/components/tableview/table/column-filter/column-filter.component.mjs +3 -6
- package/esm2022/lib/components/tableview/table/column-filter-full/column-filter-full.component.mjs +471 -0
- package/esm2022/lib/components/tableview/table/table.component.mjs +24 -16
- package/esm2022/lib/components/tableview/tableview.component.mjs +6 -5
- package/esm2022/lib/descriptors/editor/editor.descriptor.mjs +131 -34
- package/esm2022/lib/descriptors/editor/field.descriptor.mjs +25 -13
- package/esm2022/lib/descriptors/table/table.descriptor.mjs +10 -1
- package/esm2022/lib/descriptors/types/filter.type.mjs +3 -1
- package/esm2022/lib/directives/dialog-keydown-handler.directive.mjs +49 -0
- package/esm2022/lib/directives/index.mjs +2 -1
- package/esm2022/lib/mng-commons.module.mjs +10 -3
- package/esm2022/lib/models/common-init-event-enum.model.mjs +11 -0
- package/esm2022/lib/models/index.mjs +2 -1
- package/esm2022/lib/models/menu.model.mjs +1 -1
- package/esm2022/lib/router/route-builder.mjs +42 -15
- package/esm2022/lib/services/commons.service.mjs +26 -4
- package/esm2022/lib/services/internal/commons-init.service.mjs +28 -3
- package/esm2022/lib/utils/coercion.util.mjs +6 -0
- package/esm2022/lib/utils/index.mjs +2 -1
- package/fesm2022/mediusinc-mng-commons.mjs +1021 -175
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/filter-match-type.model.d.ts +3 -1
- package/lib/components/action/action.component.d.ts +1 -0
- package/lib/components/action/editor/action-editor.component.d.ts +2 -1
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +23 -2
- package/lib/components/form/date-range/date-range.component.d.ts +3 -1
- package/lib/components/tableview/index.d.ts +1 -0
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +2 -3
- package/lib/components/tableview/table/column-filter-full/column-filter-full.component.d.ts +85 -0
- package/lib/components/tableview/table/table.component.d.ts +8 -6
- package/lib/descriptors/editor/editor.descriptor.d.ts +139 -42
- package/lib/descriptors/editor/field.descriptor.d.ts +35 -30
- package/lib/descriptors/table/table.descriptor.d.ts +3 -0
- package/lib/descriptors/types/filter.type.d.ts +3 -1
- package/lib/directives/dialog-keydown-handler.directive.d.ts +12 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/mng-commons.module.d.ts +50 -48
- package/lib/models/common-init-event-enum.model.d.ts +9 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/menu.model.d.ts +1 -1
- package/lib/router/route-builder.d.ts +15 -2
- package/lib/services/internal/commons-init.service.d.ts +5 -0
- package/lib/utils/coercion.util.d.ts +2 -0
- package/lib/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/scss/mng-overrides/_theme_autocomplete.scss +10 -12
- package/scss/mng-overrides/_theme_fileupload.scss +24 -0
- package/scss/mng-overrides/_theme_styles.scss +1 -0
|
@@ -78,4 +78,5 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
|
|
|
78
78
|
private initializeViewContainer;
|
|
79
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionComponent<any, any>, [null, null, null, null, null, { optional: true; }]>;
|
|
80
80
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": { "alias": "action"; "required": true; }; "item": { "alias": "item"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "actionData": { "alias": "actionData"; "required": false; }; "queryParam": { "alias": "queryParam"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "hostComponent": { "alias": "hostComponent"; "required": false; }; "routeInit": { "alias": "route"; "required": false; }; "inputDisabled": { "alias": "disabled"; "required": false; }; "inputLoading": { "alias": "loading"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; }, { "finishEventEmitter": "finish"; }, never, never, true, never>;
|
|
81
|
+
static ngAcceptInputType_inputDisabled: unknown;
|
|
81
82
|
}
|
|
@@ -15,6 +15,7 @@ import { MngFormEditorComponent } from '../../form';
|
|
|
15
15
|
import { MngFormEditorSubmitEvent } from '../../form/models';
|
|
16
16
|
import { ActionData } from '../models';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "../../../directives/dialog-keydown-handler.directive";
|
|
18
19
|
export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges, OnDestroy, IActionEditorComponent {
|
|
19
20
|
private translate;
|
|
20
21
|
private actionExecutor;
|
|
@@ -88,5 +89,5 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
88
89
|
closeWithUnsavedChangesConfirmation(callFromGuard?: boolean): Observable<boolean>;
|
|
89
90
|
private unsetInstance;
|
|
90
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionEditorComponent<any, any>, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": { "alias": "action"; "required": true; }; "itemIdInit": { "alias": "itemId"; "required": false; }; "itemInit": { "alias": "item"; "required": false; }; "actionData": { "alias": "actionData"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never, true,
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": { "alias": "action"; "required": true; }; "itemIdInit": { "alias": "itemId"; "required": false; }; "itemInit": { "alias": "item"; "required": false; }; "actionData": { "alias": "actionData"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "viewContainerInit": { "alias": "viewContainer"; "required": false; }; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never, true, [{ directive: typeof i1.MngDialogKeydownHandlerDirective; inputs: {}; outputs: {}; }]>;
|
|
92
93
|
}
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, ExistingProvider, Injector, OnDestroy, OnInit } from '@an
|
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { AutoComplete } from 'primeng/autocomplete';
|
|
5
|
-
import { Observable, Subscription } from 'rxjs';
|
|
5
|
+
import { Observable, ReplaySubject, Subscription } from 'rxjs';
|
|
6
6
|
import { ILookupDataProvider } from '../../../data-providers';
|
|
7
7
|
import { MngFormlyFieldWrapperComponent } from '../formly/wrappers';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -39,14 +39,35 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
|
|
|
39
39
|
autocompleteFormControl: FormControl;
|
|
40
40
|
suggestions$: Observable<Array<any>>;
|
|
41
41
|
suggestionSubscription?: Subscription;
|
|
42
|
+
private isPanelShown;
|
|
43
|
+
private isFocused;
|
|
44
|
+
private userSelectedItem?;
|
|
45
|
+
queryResultCacheSubject?: ReplaySubject<any>;
|
|
42
46
|
constructor(injector: Injector, translate: TranslateService, formlyWrapper: MngFormlyFieldWrapperComponent);
|
|
43
47
|
ngOnInit(): void;
|
|
44
48
|
ngOnDestroy(): void;
|
|
45
|
-
onSearch(event: any): void;
|
|
49
|
+
onSearch(event: any, isInit?: boolean): void;
|
|
50
|
+
private selectFirstItem;
|
|
51
|
+
/**
|
|
52
|
+
* Triggered by user when selecting an item from an autocomplete suggestion list.
|
|
53
|
+
*/
|
|
46
54
|
onSelect(value: any): void;
|
|
55
|
+
/**
|
|
56
|
+
* Selects and sets new value
|
|
57
|
+
*/
|
|
58
|
+
private setValue;
|
|
47
59
|
onFocus(event: Event): void;
|
|
60
|
+
/**
|
|
61
|
+
* calls the selectFirst item anytime the input field goes out of focus and if the suggestions panel is not displayed.
|
|
62
|
+
*/
|
|
48
63
|
onBlur(event: any): void;
|
|
64
|
+
onShow(): void;
|
|
65
|
+
/**
|
|
66
|
+
* calls the selectFirst item anytime the suggestions panel is closed and input field isn't focused.
|
|
67
|
+
*/
|
|
68
|
+
onHide(): void;
|
|
49
69
|
onClear(): void;
|
|
70
|
+
private propagateValueChange;
|
|
50
71
|
registerOnChange(fn: any): void;
|
|
51
72
|
registerOnTouched(fn: any): void;
|
|
52
73
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -8,6 +8,7 @@ export declare class MngDateRangeComponent implements OnInit, OnDestroy, Control
|
|
|
8
8
|
showTime: boolean;
|
|
9
9
|
showSeconds: boolean;
|
|
10
10
|
dateFormat?: string;
|
|
11
|
+
disabled: boolean;
|
|
11
12
|
private fromToFormControl;
|
|
12
13
|
private onChangeFn;
|
|
13
14
|
onTouchedFn: any;
|
|
@@ -24,5 +25,6 @@ export declare class MngDateRangeComponent implements OnInit, OnDestroy, Control
|
|
|
24
25
|
writeValue(obj: any): void;
|
|
25
26
|
private onValueChange;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDateRangeComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDateRangeComponent, "mng-date-range", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDateRangeComponent, "mng-date-range", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
static ngAcceptInputType_disabled: unknown;
|
|
28
30
|
}
|
|
@@ -3,4 +3,5 @@ export * from './route/tableview-route.abstract.component';
|
|
|
3
3
|
export * from './route/tableview-route.component';
|
|
4
4
|
export * from './table/table.component';
|
|
5
5
|
export * from './table/column-filter/column-filter.component';
|
|
6
|
+
export * from './table/column-filter-full/column-filter-full.component';
|
|
6
7
|
export * from './table/column-value/column-value.component';
|
|
@@ -2,7 +2,7 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { PrimeNGConfig, SelectItem } from 'primeng/api';
|
|
3
3
|
import { ColumnFilter } from 'primeng/table';
|
|
4
4
|
import { FilterDescriptor, FilterLookupDescriptor } from '../../../../descriptors/filter';
|
|
5
|
-
import { FilterLookupTypeEnum, FilterMatchModeEnum
|
|
5
|
+
import { FilterLookupTypeEnum, FilterMatchModeEnum } from '../../../../descriptors/types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
@@ -13,7 +13,6 @@ export declare class MngTableColumnFilterComponent<T> implements OnInit, OnDestr
|
|
|
13
13
|
readonly lookupTypeDropdown: FilterLookupTypeEnum;
|
|
14
14
|
readonly lookupTypeAutocomplete: FilterLookupTypeEnum;
|
|
15
15
|
descriptor: FilterDescriptor<T>;
|
|
16
|
-
display: TableFilterDisplayEnum;
|
|
17
16
|
primeColumnFilter: ColumnFilter;
|
|
18
17
|
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
19
18
|
primeField: string;
|
|
@@ -34,5 +33,5 @@ export declare class MngTableColumnFilterComponent<T> implements OnInit, OnDestr
|
|
|
34
33
|
autocompleteFilter(value: T, filterCallback: Function): void;
|
|
35
34
|
dropdownFilter(value: any, filterCallback: Function): void;
|
|
36
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": { "alias": "descriptor"; "required": true; };
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterComponent<any>, "mng-table-column-filter", never, { "descriptor": { "alias": "descriptor"; "required": true; }; }, {}, never, never, true, never>;
|
|
38
37
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { FilterMetadata, SelectItem } from 'primeng/api';
|
|
3
|
+
import { Nullable } from 'primeng/ts-helpers';
|
|
4
|
+
import { FilterDescriptor, FilterLookupDescriptor } from '../../../../descriptors/filter';
|
|
5
|
+
import { FilterLookupTypeEnum, FilterMatchModeEnum } from '../../../../descriptors/types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
9
|
+
* and these must be propagated through to this component and beyond to primeNG.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MngTableColumnFilterFullComponent<T> implements OnInit, OnDestroy {
|
|
12
|
+
readonly lookupTypeDropdown: FilterLookupTypeEnum;
|
|
13
|
+
readonly lookupTypeAutocomplete: FilterLookupTypeEnum;
|
|
14
|
+
private readonly el;
|
|
15
|
+
private readonly primeTable;
|
|
16
|
+
private readonly mngTable;
|
|
17
|
+
private readonly renderer;
|
|
18
|
+
private readonly primeConfig;
|
|
19
|
+
private readonly overlayService;
|
|
20
|
+
private readonly cd;
|
|
21
|
+
private readonly document;
|
|
22
|
+
descriptor: FilterDescriptor<T>;
|
|
23
|
+
icon: Nullable<ElementRef>;
|
|
24
|
+
primeField: string;
|
|
25
|
+
primeType: string;
|
|
26
|
+
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
27
|
+
matchModes: WritableSignal<SelectItem[]>;
|
|
28
|
+
filterConstraint: WritableSignal<FilterMetadata | undefined>;
|
|
29
|
+
isFilterSet: import("@angular/core").Signal<boolean>;
|
|
30
|
+
isInputDisabled: import("@angular/core").Signal<boolean>;
|
|
31
|
+
overlayVisible: WritableSignal<boolean>;
|
|
32
|
+
private overlaySubscription?;
|
|
33
|
+
private overlay;
|
|
34
|
+
private scrollHandler?;
|
|
35
|
+
private documentClickListener;
|
|
36
|
+
private documentResizeListener;
|
|
37
|
+
private translationSubscription?;
|
|
38
|
+
private resetSubscription?;
|
|
39
|
+
private selfClick?;
|
|
40
|
+
private overlayEventListener;
|
|
41
|
+
private mngTableFilterMetadataSubscription?;
|
|
42
|
+
private readonly window;
|
|
43
|
+
private dateDebounceSubject;
|
|
44
|
+
get activeMatchMode(): FilterMatchModeEnum | undefined;
|
|
45
|
+
constructor();
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
ngOnDestroy(): void;
|
|
48
|
+
onTextModelChange(event: Event): void;
|
|
49
|
+
onTextInputEnterKeyDown(event: Event): void;
|
|
50
|
+
onNumericModelChange(value: number | null): void;
|
|
51
|
+
onNumericInputKeyDown(event: KeyboardEvent): void;
|
|
52
|
+
onTristateModelChange(value: boolean | null): void;
|
|
53
|
+
dateFilter(value: Date | Date[] | null): void;
|
|
54
|
+
autocompleteFilter(value: T): void;
|
|
55
|
+
dropdownFilter(value: any): void;
|
|
56
|
+
onMatchModeChange(matchMode: string): void;
|
|
57
|
+
onMatchModeKeyDown(event: KeyboardEvent): void;
|
|
58
|
+
onRowClearItemClick(): void;
|
|
59
|
+
toggleMenu(event: Event): void;
|
|
60
|
+
onToggleButtonKeyDown(event: KeyboardEvent): void;
|
|
61
|
+
onEscape(): void;
|
|
62
|
+
onContentClick(): void;
|
|
63
|
+
onOverlayAnimationStart(event: any): void;
|
|
64
|
+
onOverlayAnimationEnd(event: any): void;
|
|
65
|
+
get noFilterLabel(): string;
|
|
66
|
+
clearFilter(): void;
|
|
67
|
+
private generateMatchModeOptions;
|
|
68
|
+
private getDefaultMatchMode;
|
|
69
|
+
private findNextMenuModeItem;
|
|
70
|
+
private findPrevMenuModeItem;
|
|
71
|
+
private isOutsideClicked;
|
|
72
|
+
private bindDocumentClickListener;
|
|
73
|
+
private unbindDocumentClickListener;
|
|
74
|
+
private bindDocumentResizeListener;
|
|
75
|
+
private unbindDocumentResizeListener;
|
|
76
|
+
private bindScrollListener;
|
|
77
|
+
private unbindScrollListener;
|
|
78
|
+
private hideOverlay;
|
|
79
|
+
private onOverlayHide;
|
|
80
|
+
private updateFilterValue;
|
|
81
|
+
private updateDtFilter;
|
|
82
|
+
private initFilterConstraint;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterFullComponent<any>, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableColumnFilterFullComponent<any>, "mng-table-column-filter-full", never, { "descriptor": { "alias": "descriptor"; "required": true; }; }, {}, never, never, true, never>;
|
|
85
|
+
}
|
|
@@ -8,7 +8,6 @@ import { MediusQueryResult } from '../../../api/models';
|
|
|
8
8
|
import { ITableDataProvider } from '../../../data-providers';
|
|
9
9
|
import { ActionDescriptor } from '../../../descriptors/action';
|
|
10
10
|
import { ColumnDescriptor, TableDescriptor } from '../../../descriptors/table';
|
|
11
|
-
import { TableFilterDisplayEnum } from '../../../descriptors/types';
|
|
12
11
|
import { MngComponentDirective, MngTemplateDirective } from '../../../directives';
|
|
13
12
|
import { IViewContainer } from '../../../models';
|
|
14
13
|
import { MngActionExecutorService, MngCommonsService, MngLocalStorageService, MngViewContainerComponentService } from '../../../services';
|
|
@@ -25,7 +24,6 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
25
24
|
private actionExecutor;
|
|
26
25
|
private viewContainerService;
|
|
27
26
|
private localStorageService;
|
|
28
|
-
readonly filterDisplayRow: TableFilterDisplayEnum;
|
|
29
27
|
readonly cmpTypeName = "MngTableComponent";
|
|
30
28
|
private readonly logger;
|
|
31
29
|
initialDescriptor: TableDescriptor<T>;
|
|
@@ -58,7 +56,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
58
56
|
isLazy: boolean;
|
|
59
57
|
isPagination: boolean;
|
|
60
58
|
private useDataProvider;
|
|
61
|
-
private
|
|
59
|
+
private useQueryParamsInitializedSubject;
|
|
62
60
|
useQueryParamsInitialized$: Observable<boolean>;
|
|
63
61
|
queryResult$?: Observable<MediusQueryResult<T>>;
|
|
64
62
|
loading$?: Observable<boolean>;
|
|
@@ -69,10 +67,14 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
69
67
|
rows: number;
|
|
70
68
|
offset: number;
|
|
71
69
|
multiSortMeta: SortMeta[] | null;
|
|
72
|
-
|
|
73
|
-
[s: string]: FilterMetadata;
|
|
74
|
-
};
|
|
70
|
+
private filterMetadataSubject;
|
|
75
71
|
globalFilterFields: string[];
|
|
72
|
+
get filterMetadata(): {
|
|
73
|
+
[p: string]: FilterMetadata;
|
|
74
|
+
};
|
|
75
|
+
get filterMetadata$(): Observable<{
|
|
76
|
+
[p: string]: FilterMetadata;
|
|
77
|
+
}>;
|
|
76
78
|
infiniteScroll: boolean;
|
|
77
79
|
className: string;
|
|
78
80
|
tableFullHeightOffset: number | null;
|
|
@@ -12,103 +12,200 @@ import { FieldInputTypeEnum, TableviewEditorTypeEnum } from '../types';
|
|
|
12
12
|
import { AFieldDescriptor, FieldActionDescriptor, FieldGroupDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor } from './field.descriptor';
|
|
13
13
|
export declare class EditorDescriptor<T> {
|
|
14
14
|
static readonly defaultGroupName = "_default";
|
|
15
|
-
protected readonly _model: ModelDescriptor<T>;
|
|
16
|
-
protected readonly _modelType: ClassType<T>;
|
|
17
|
-
protected readonly _tableviewEditorType: TableviewEditorTypeEnum;
|
|
18
|
-
protected readonly _tabs: Array<FieldTabGroupDescriptor<T>>;
|
|
19
|
-
protected readonly _groups: Array<FieldGroupDescriptor<T>>;
|
|
20
|
-
protected _fields: Array<AFieldDescriptor<any, T>>;
|
|
21
|
-
protected _currentTabGroup?: FieldTabGroupDescriptor<T>;
|
|
22
|
-
protected _currentGroup?: FieldGroupDescriptor<T>;
|
|
23
|
-
protected _disabled: boolean;
|
|
24
|
-
protected _isLocalized: boolean;
|
|
25
|
-
protected _localizationLocaleProperty?: string;
|
|
26
|
-
protected _localizationLocalizationProperty?: string;
|
|
27
|
-
protected _localizationModelType?: ClassType<any>;
|
|
28
|
-
protected _localeLookup?: (queryParam?: MediusQueryParam, service?: any, search?: string) => Observable<Array<string>>;
|
|
29
|
-
protected readonly _eventsSubject: Subject<MngFormEvent<T>>;
|
|
15
|
+
/** @ignore */ protected readonly _model: ModelDescriptor<T>;
|
|
16
|
+
/** @ignore */ protected readonly _modelType: ClassType<T>;
|
|
17
|
+
/** @ignore */ protected readonly _tableviewEditorType: TableviewEditorTypeEnum;
|
|
18
|
+
/** @ignore */ protected readonly _tabs: Array<FieldTabGroupDescriptor<T>>;
|
|
19
|
+
/** @ignore */ protected readonly _groups: Array<FieldGroupDescriptor<T>>;
|
|
20
|
+
/** @ignore */ protected _fields: Array<AFieldDescriptor<any, T>>;
|
|
21
|
+
/** @ignore */ protected _currentTabGroup?: FieldTabGroupDescriptor<T>;
|
|
22
|
+
/** @ignore */ protected _currentGroup?: FieldGroupDescriptor<T>;
|
|
23
|
+
/** @ignore */ protected _disabled: boolean;
|
|
24
|
+
/** @ignore */ protected _isLocalized: boolean;
|
|
25
|
+
/** @ignore */ protected _localizationLocaleProperty?: string;
|
|
26
|
+
/** @ignore */ protected _localizationLocalizationProperty?: string;
|
|
27
|
+
/** @ignore */ protected _localizationModelType?: ClassType<any>;
|
|
28
|
+
/** @ignore */ protected _localeLookup?: (queryParam?: MediusQueryParam, service?: any, search?: string) => Observable<Array<string>>;
|
|
29
|
+
/** @ignore */ protected readonly _eventsSubject: Subject<MngFormEvent<T>>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates new instance of editor descriptor.
|
|
32
|
+
* @param modelType Model's class.
|
|
33
|
+
* @param idProperty Id property representing model (optional).
|
|
34
|
+
* @param titleProperty Title property representing model (optional). If not provided, it will be automatically chosen.
|
|
35
|
+
* @param tableviewEditorType Type of editor in tableview (add, edit, view or none).
|
|
36
|
+
* @param i18nBaseKey Base key for translations.
|
|
37
|
+
*/
|
|
30
38
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableviewEditorType?: TableviewEditorTypeEnum, i18nBaseKey?: string | ClassType<unknown>);
|
|
31
39
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
37
|
-
* @param tableEditorType
|
|
40
|
+
* Creates editor descriptor automatically based on openapi model's attributes definition which is automatically extracted. All fields will be included.
|
|
41
|
+
* @param modelType Model's class.
|
|
42
|
+
* @param idProperty Id property representing model (optional).
|
|
43
|
+
* @param titleProperty Title property representing model (optional). If not provided, it will be automatically chosen.
|
|
44
|
+
* @param tableEditorType Type of editor in tableview (add, edit, view or none).
|
|
38
45
|
*/
|
|
39
46
|
static from<T>(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableEditorType?: TableviewEditorTypeEnum): EditorDescriptor<T>;
|
|
40
47
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @param tableEditorType
|
|
48
|
+
* Creates editor descriptor automatically based on openapi model's attributes definition provided in parameters. Only fields for provided attributes will be included.
|
|
49
|
+
* @param modelType Model's class.
|
|
50
|
+
* @param attributes List of attribute definitions from which fields should be created.
|
|
51
|
+
* @param idProperty Id property representing model (optional).
|
|
52
|
+
* @param titleProperty Title property representing model (optional). If not provided, it will be automatically chosen.
|
|
53
|
+
* @param tableEditorType Type of editor in tableview (add, edit, view or none).
|
|
48
54
|
*/
|
|
49
55
|
static fromModelWithAttributes<T>(modelType: ClassType<T>, attributes: TableviewAttributeDef[], idProperty?: string, titleProperty?: string, tableEditorType?: TableviewEditorTypeEnum): EditorDescriptor<T>;
|
|
56
|
+
/**
|
|
57
|
+
* Model descriptor for editor.
|
|
58
|
+
*/
|
|
50
59
|
get model(): ModelDescriptor<T>;
|
|
60
|
+
/**
|
|
61
|
+
* Editor's tabs.
|
|
62
|
+
*/
|
|
51
63
|
get tabs(): FieldTabGroupDescriptor<T>[];
|
|
64
|
+
/**
|
|
65
|
+
* Editor's fields.
|
|
66
|
+
*/
|
|
52
67
|
get fields(): AFieldDescriptor<any, T, any>[];
|
|
68
|
+
/**
|
|
69
|
+
* Type of editor for tableview.
|
|
70
|
+
*/
|
|
53
71
|
get tableviewEditorType(): TableviewEditorTypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
* If editor is disabled.
|
|
74
|
+
*/
|
|
54
75
|
get disabled(): boolean;
|
|
55
76
|
get isLocalized(): boolean;
|
|
56
77
|
get localizationLocaleProperty(): string | undefined;
|
|
57
78
|
get localizationLocalizationProperty(): string | undefined;
|
|
58
79
|
get localizationBeanType(): ClassType<any> | undefined;
|
|
59
80
|
get localeLookup(): ((queryParam?: MediusQueryParam | undefined, service?: any, search?: string | undefined) => Observable<string[]>) | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Creates new tab group. Next added fields are added to newly created tab group.
|
|
83
|
+
* @param name Name of the group.
|
|
84
|
+
* @param title Title key for the tab.
|
|
85
|
+
*/
|
|
60
86
|
createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
|
|
87
|
+
/**
|
|
88
|
+
* Creates new field group. Next added fields are added to newly created field group.
|
|
89
|
+
* @param name Name of the group.
|
|
90
|
+
* @param title Title key for the group.
|
|
91
|
+
*/
|
|
61
92
|
createFieldGroup(name: string, title?: string | null): FieldGroupDescriptor<T>;
|
|
93
|
+
/**
|
|
94
|
+
* Adds field by the descriptor.
|
|
95
|
+
* @param field Field descriptor.
|
|
96
|
+
*/
|
|
62
97
|
addFieldDescriptor<FT, FVT = FT>(field: AFieldDescriptor<FT, T, FVT>): this;
|
|
98
|
+
/**
|
|
99
|
+
* Adds field by the model property name.
|
|
100
|
+
* @param property Model property name.
|
|
101
|
+
*/
|
|
63
102
|
addField(property: string): FieldInputDescriptor<T>;
|
|
64
103
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @param property
|
|
104
|
+
* Removes field by the model property name.
|
|
105
|
+
* @param property Model property name.
|
|
67
106
|
*/
|
|
68
107
|
removeField(property: string): void;
|
|
108
|
+
/**
|
|
109
|
+
* Gets field by the model property name.
|
|
110
|
+
* @param property Model property name.
|
|
111
|
+
*/
|
|
69
112
|
getField(property: string): AFieldDescriptor<any, T> | null;
|
|
70
113
|
addFieldAction(actionName: string): FieldActionDescriptor<T>;
|
|
114
|
+
/**
|
|
115
|
+
* Adds lookup field.
|
|
116
|
+
* @param property Model property name.
|
|
117
|
+
* @param modelType Model's class type (must be registered in ObjectSerializer!).
|
|
118
|
+
*/
|
|
71
119
|
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
120
|
+
/**
|
|
121
|
+
* Adds enum lookup field.
|
|
122
|
+
* @param property Model's property name.
|
|
123
|
+
* @param enumType Type of enum (must be registered in ObjectSerializer!).
|
|
124
|
+
* @param options Provides subset of enum's available constants.
|
|
125
|
+
* @param nameAsValue If constant's name should be used as final value of the enum. Primarily, constant's value will be used.
|
|
126
|
+
* @param optionsTitlePath Title key path from where translations are provided. If null, the enum's values won't be translated.
|
|
127
|
+
*/
|
|
72
128
|
addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
|
|
129
|
+
/**
|
|
130
|
+
* Adds table/details/add/edit field for one-to-many (1:n) relations.
|
|
131
|
+
* @param property Model's property name.
|
|
132
|
+
* @param tableviewDescriptor Tableview descriptor for related model.
|
|
133
|
+
*/
|
|
73
134
|
addFieldManyEditor<FT>(property: string, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
135
|
+
/**
|
|
136
|
+
* Adds tables for many-to-many (m:n) relations.
|
|
137
|
+
* @param property Model's property name.
|
|
138
|
+
* @param mainTableDescriptor Main table descriptor for displaying items added to main model's property.
|
|
139
|
+
* @param lookupTableDescriptor Lookup table descriptor for displaying items to be added to main model's property.
|
|
140
|
+
*/
|
|
74
141
|
addFieldManyToManyEditor<FT>(property: string, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
142
|
+
/**
|
|
143
|
+
* Disables field on editor.
|
|
144
|
+
* @param disabled
|
|
145
|
+
*/
|
|
75
146
|
withDisabled(disabled?: boolean): this;
|
|
147
|
+
/**
|
|
148
|
+
* Adds group validator to editor.
|
|
149
|
+
* @param name Name of the validation.
|
|
150
|
+
* @param validator Field validator function.
|
|
151
|
+
* @param message Field validation message.
|
|
152
|
+
*/
|
|
76
153
|
addValidation(name: string, validator?: MngFieldValidator, message?: MngFieldValidationMessage): void;
|
|
154
|
+
/**
|
|
155
|
+
* Creates a copy of editor descriptor object.
|
|
156
|
+
*/
|
|
77
157
|
copy(): EditorDescriptor<T>;
|
|
158
|
+
/**
|
|
159
|
+
* Created group from field group descriptor.
|
|
160
|
+
* @param fieldGroup Field group descriptor.
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
78
163
|
createFieldGroupDescriptor(fieldGroup: FieldGroupDescriptor<T>): this;
|
|
164
|
+
/**
|
|
165
|
+
* Creates tab group from tab group descriptor.
|
|
166
|
+
* @param tabGroup Tab group descriptor.
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
79
169
|
protected createTabGroupDescriptor(tabGroup: FieldTabGroupDescriptor<T>): this;
|
|
170
|
+
/**
|
|
171
|
+
* Creates default field group.
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
80
174
|
private createDefaultGroup;
|
|
175
|
+
/**
|
|
176
|
+
* Creates default tab group.
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
81
179
|
private createDefaultTabGroup;
|
|
82
180
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* @param property field name
|
|
181
|
+
* Modifies selected field by field property. For enums use {withFieldModifiedEnum} instead.
|
|
182
|
+
* @param property Model's property name.
|
|
86
183
|
* @param fieldType new field type for selected field
|
|
87
184
|
* @param args additional parameters for field
|
|
88
185
|
*/
|
|
89
186
|
withFieldModifiedType(property: string, fieldType: FieldInputTypeEnum, ...args: any[]): this;
|
|
90
187
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param property
|
|
188
|
+
* Modifies selected field with enum type.
|
|
189
|
+
* @param property Model's property name.
|
|
93
190
|
* @param enumType type of enum for new field
|
|
94
191
|
* @param optionsTitlePath
|
|
95
192
|
* @param values
|
|
96
|
-
* @param nameAsValue
|
|
97
193
|
*/
|
|
98
194
|
withFieldModifiedEnum(property: string, enumType?: EnumType, optionsTitlePath?: string | null, values?: Array<EnumConstantType>, nameAsValue?: boolean): this;
|
|
99
195
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @param property
|
|
196
|
+
* Modifies selected field with lookup field.
|
|
197
|
+
* @param property Model's property name.
|
|
102
198
|
* @param modelType model type of field
|
|
103
199
|
* @param lookupProvider provider to be added to field
|
|
104
200
|
* @param titleProperty
|
|
105
201
|
*/
|
|
106
202
|
withFieldModifiedLookup<MT>(property: string, modelType: ClassType<MT>, lookupProvider: ILookupDataProvider<any, any>, titleProperty?: string): this;
|
|
107
203
|
/**
|
|
108
|
-
*
|
|
109
|
-
* @param attribute definition
|
|
110
|
-
* @param field
|
|
111
|
-
* @param args additional arguments
|
|
204
|
+
* Generates field based on attribute definition, used for auto model
|
|
205
|
+
* @param attribute Attribute definition.
|
|
206
|
+
* @param field Optional, if defined will be replaced, otherwise new will be generated.
|
|
207
|
+
* @param args Optional additional arguments mapped to filed type. Arguments depend on possible arguments on fields.
|
|
208
|
+
* @internal
|
|
112
209
|
*/
|
|
113
210
|
private upsertFieldFromAttributeDef;
|
|
114
211
|
/**
|
|
@@ -24,38 +24,43 @@ export declare abstract class AGenericFieldDescriptor<ET> {
|
|
|
24
24
|
get editor(): EditorDescriptor<ET>;
|
|
25
25
|
get config(): FieldConfig;
|
|
26
26
|
withConfig(config: FieldConfig): this;
|
|
27
|
+
/**
|
|
28
|
+
* Override toJSON implementation to prevent overflow with circular dependency.
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
protected toJSON(): string;
|
|
27
32
|
}
|
|
28
33
|
export declare abstract class AFieldDescriptor<T, ET, VT = T> extends AGenericFieldDescriptor<ET> {
|
|
29
|
-
protected readonly _property: string;
|
|
30
|
-
protected _label?: string | null;
|
|
31
|
-
protected _placeholder?: string;
|
|
32
|
-
protected _helpText?: string;
|
|
33
|
-
protected _required: boolean;
|
|
34
|
-
protected _requiredHideLabelMarker: boolean;
|
|
35
|
-
protected _disabled: boolean;
|
|
36
|
-
protected _defaultValue?: VT;
|
|
37
|
-
protected _getter?: (item: ET) => VT;
|
|
38
|
-
protected _setter?: (item: ET, value: VT) => void;
|
|
39
|
-
protected _validations: Array<FieldValidationDescriptor>;
|
|
40
|
-
protected _asyncValidations: Array<FieldValidationDescriptor>;
|
|
41
|
-
protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
42
|
-
protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
43
|
-
protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
44
|
-
protected _updateOn: 'change' | 'blur' | 'submit';
|
|
45
|
-
protected _onInit?: MngFormlyHookFn;
|
|
46
|
-
protected _onChanges?: MngFormlyHookFn;
|
|
47
|
-
protected _afterContentInit?: MngFormlyHookFn;
|
|
48
|
-
protected _afterViewInit?: MngFormlyHookFn;
|
|
49
|
-
protected _onDestroy?: MngFormlyHookFn;
|
|
50
|
-
protected _onValueChange?: (field: MngFormlyFieldConfig, value: any) => void;
|
|
51
|
-
protected _className: string;
|
|
52
|
-
protected _fieldClassName?: string;
|
|
53
|
-
protected _labelClassName: string;
|
|
54
|
-
protected _inputClassName: string;
|
|
55
|
-
protected _size: FieldSizeEnum;
|
|
56
|
-
protected _isLocalized: boolean;
|
|
57
|
-
protected _localizationTableview?: TableviewDescriptor<any>;
|
|
58
|
-
protected readonly _eventsSubject: Subject<MngFormFieldEvent<T, ET>>;
|
|
34
|
+
/** @ignore */ protected readonly _property: string;
|
|
35
|
+
/** @ignore */ protected _label?: string | null;
|
|
36
|
+
/** @ignore */ protected _placeholder?: string;
|
|
37
|
+
/** @ignore */ protected _helpText?: string;
|
|
38
|
+
/** @ignore */ protected _required: boolean;
|
|
39
|
+
/** @ignore */ protected _requiredHideLabelMarker: boolean;
|
|
40
|
+
/** @ignore */ protected _disabled: boolean;
|
|
41
|
+
/** @ignore */ protected _defaultValue?: VT;
|
|
42
|
+
/** @ignore */ protected _getter?: (item: ET) => VT;
|
|
43
|
+
/** @ignore */ protected _setter?: (item: ET, value: VT) => void;
|
|
44
|
+
/** @ignore */ protected _validations: Array<FieldValidationDescriptor>;
|
|
45
|
+
/** @ignore */ protected _asyncValidations: Array<FieldValidationDescriptor>;
|
|
46
|
+
/** @ignore */ protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
47
|
+
/** @ignore */ protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
48
|
+
/** @ignore */ protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
49
|
+
/** @ignore */ protected _updateOn: 'change' | 'blur' | 'submit';
|
|
50
|
+
/** @ignore */ protected _onInit?: MngFormlyHookFn;
|
|
51
|
+
/** @ignore */ protected _onChanges?: MngFormlyHookFn;
|
|
52
|
+
/** @ignore */ protected _afterContentInit?: MngFormlyHookFn;
|
|
53
|
+
/** @ignore */ protected _afterViewInit?: MngFormlyHookFn;
|
|
54
|
+
/** @ignore */ protected _onDestroy?: MngFormlyHookFn;
|
|
55
|
+
/** @ignore */ protected _onValueChange?: (field: MngFormlyFieldConfig, value: any) => void;
|
|
56
|
+
/** @ignore */ protected _className: string;
|
|
57
|
+
/** @ignore */ protected _fieldClassName?: string;
|
|
58
|
+
/** @ignore */ protected _labelClassName: string;
|
|
59
|
+
/** @ignore */ protected _inputClassName: string;
|
|
60
|
+
/** @ignore */ protected _size: FieldSizeEnum;
|
|
61
|
+
/** @ignore */ protected _isLocalized: boolean;
|
|
62
|
+
/** @ignore */ protected _localizationTableview?: TableviewDescriptor<any>;
|
|
63
|
+
/** @ignore */ protected readonly _eventsSubject: Subject<MngFormFieldEvent<T, ET>>;
|
|
59
64
|
protected constructor(editor: EditorDescriptor<ET>, property: string);
|
|
60
65
|
get property(): string;
|
|
61
66
|
get label(): string | null | undefined;
|
|
@@ -39,6 +39,7 @@ export declare class TableDescriptor<T> {
|
|
|
39
39
|
private _autoGenerated;
|
|
40
40
|
private _isLocalized;
|
|
41
41
|
private _localizationLocaleProperty?;
|
|
42
|
+
private _deprecatedFilters;
|
|
42
43
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, i18nBaseKey?: string | ClassType<unknown>);
|
|
43
44
|
/**
|
|
44
45
|
* generates descriptor based on modelType attribute definition
|
|
@@ -85,6 +86,7 @@ export declare class TableDescriptor<T> {
|
|
|
85
86
|
get headerClassName(): string | undefined;
|
|
86
87
|
get isLocalized(): boolean;
|
|
87
88
|
get localizationLocaleProperty(): string | undefined;
|
|
89
|
+
get deprecatedFilters(): boolean;
|
|
88
90
|
/**
|
|
89
91
|
* dataKey is used for the purpose of combined saving user preferences in localstorage if 2 tables have the same dataKey they will share the same localstorage entry.
|
|
90
92
|
* Similarly, this property can also be used to differentiate two tables of the same model on the same url (so that they have separate entries in localstorage).
|
|
@@ -171,6 +173,7 @@ export declare class TableDescriptor<T> {
|
|
|
171
173
|
* @param filterProperty
|
|
172
174
|
*/
|
|
173
175
|
withColumnModifiedLookup(property: string, lookupProvider: ILookupDataProvider<any, any>, itemsLabelProperty?: string, filterProperty?: string): this;
|
|
176
|
+
withDeprecatedFilters(deprecatedFilters?: boolean): this;
|
|
174
177
|
}
|
|
175
178
|
export declare class TableDynamicDescriptor extends TableDescriptor<any> {
|
|
176
179
|
private _excludedColumns;
|
|
@@ -19,7 +19,9 @@ export declare enum FilterMatchModeEnum {
|
|
|
19
19
|
DateIs = "dateIs",
|
|
20
20
|
DateIsNot = "dateIsNot",
|
|
21
21
|
DateBefore = "dateBefore",
|
|
22
|
-
DateAfter = "dateAfter"
|
|
22
|
+
DateAfter = "dateAfter",
|
|
23
|
+
Exists = "is",
|
|
24
|
+
DoesNotExist = "isNot"
|
|
23
25
|
}
|
|
24
26
|
export declare enum FilterLookupTypeEnum {
|
|
25
27
|
Dropdown = 0,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngDialogKeydownHandlerDirective implements OnInit, OnDestroy {
|
|
4
|
+
private readonly dialogService;
|
|
5
|
+
private readonly dynamicDialog;
|
|
6
|
+
private readonly dialog;
|
|
7
|
+
private readonly dialogsWithKeydownListener;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngDialogKeydownHandlerDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MngDialogKeydownHandlerDirective, "[mngDialogKeydownHandler]", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|