@mediusinc/mng-commons 4.0.0-rc.2 → 4.0.0-rc.3
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/index.mjs +5 -1
- package/esm2022/lib/api/utils/medius-rest.util.mjs +15 -7
- package/esm2022/lib/api/utils/object-serializer.util.mjs +8 -4
- package/esm2022/lib/components/action/action.component.mjs +16 -45
- package/esm2022/lib/components/action/editor/action-editor.component.mjs +60 -434
- package/esm2022/lib/components/action/editor/injector-context/action-editor-injector-context.component.mjs +394 -0
- package/esm2022/lib/components/action/localization/data-language-dropdown.component.mjs +6 -7
- package/esm2022/lib/components/action/models/action-component.model.mjs +1 -1
- package/esm2022/lib/components/action/models/action-execution.model.mjs +3 -6
- package/esm2022/lib/components/action/models/index.mjs +1 -2
- package/esm2022/lib/components/action/route/action-route.component.mjs +14 -30
- package/esm2022/lib/components/action/table/action-table.component.mjs +9 -19
- package/esm2022/lib/components/form/editor/form-editor.component.mjs +5 -11
- package/esm2022/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +1 -1
- package/esm2022/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +4 -4
- package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +5 -5
- package/esm2022/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -4
- package/esm2022/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +1 -1
- package/esm2022/lib/components/layout/main-layout.component.mjs +21 -25
- package/esm2022/lib/components/layout/topbar.component.mjs +8 -8
- package/esm2022/lib/components/layoutV2/main-layout.component.mjs +13 -10
- package/esm2022/lib/components/layoutV2/menu-item.component.mjs +48 -5
- package/esm2022/lib/components/layoutV2/menu.component.mjs +13 -4
- package/esm2022/lib/components/layoutV2/services/main-layout.component.service.mjs +11 -2
- package/esm2022/lib/components/layoutV2/sidebar.component.mjs +5 -5
- package/esm2022/lib/components/layoutV2/topbar.component.mjs +7 -7
- package/esm2022/lib/components/notification/notification-wrapper.component.mjs +50 -0
- package/esm2022/lib/components/table/column-value/column-value.component.mjs +2 -2
- package/esm2022/lib/components/table/table.component.mjs +17 -23
- package/esm2022/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -5
- package/esm2022/lib/components/tableview/route/tableview-route.component.mjs +3 -9
- package/esm2022/lib/components/tableview/tableview.component.mjs +17 -76
- package/esm2022/lib/descriptors/editor/field-lookup.descriptor.mjs +1 -2
- package/esm2022/lib/descriptors/filter/filter.descriptor.mjs +20 -20
- package/esm2022/lib/directives/component.directive.mjs +8 -4
- package/esm2022/lib/helpers/coercion.mjs +8 -1
- package/esm2022/lib/models/action-editor.model.mjs +1 -1
- package/esm2022/lib/models/config.model.mjs +1 -1
- package/esm2022/lib/models/index.mjs +2 -2
- package/esm2022/lib/models/layout-config.model.mjs +2 -0
- package/esm2022/lib/models/view-container.model.mjs +1 -1
- package/esm2022/lib/provide-commons.mjs +7 -1
- package/esm2022/lib/registry/type.registry.mjs +2 -3
- package/esm2022/lib/router/route-builder.mjs +1 -1
- package/esm2022/lib/services/action/action-executor.service.mjs +725 -0
- package/esm2022/lib/services/action/component-action-executor.service.mjs +19 -0
- package/esm2022/lib/services/action/index.mjs +5 -0
- package/esm2022/lib/services/action/provide-action-executor.mjs +9 -0
- package/esm2022/lib/services/action/root-action-executor.service.mjs +18 -0
- package/esm2022/lib/services/commons.service.mjs +5 -5
- package/esm2022/lib/services/index.mjs +1 -3
- package/esm2022/lib/services/logger.service.mjs +2 -2
- package/esm2022/lib/services/view/index.mjs +3 -0
- package/esm2022/lib/services/view/provide-view-container.mjs +17 -0
- package/esm2022/lib/services/view/view-container.service.mjs +59 -0
- package/esm2022/lib/utils/date.util.mjs +33 -23
- package/esm2022/lib/utils/notification.util.mjs +9 -16
- package/esm2022/lib/utils/string.util.mjs +2 -2
- package/fesm2022/mediusinc-mng-commons.mjs +3199 -3156
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/lib/components/action/action.component.d.ts +11 -17
- package/lib/components/action/editor/action-editor.component.d.ts +20 -80
- package/lib/components/action/editor/injector-context/action-editor-injector-context.component.d.ts +80 -0
- package/lib/components/action/localization/data-language-dropdown.component.d.ts +2 -3
- package/lib/components/action/models/action-component.model.d.ts +0 -2
- package/lib/components/action/models/action-execution.model.d.ts +6 -6
- package/lib/components/action/models/index.d.ts +0 -1
- package/lib/components/action/route/action-route.component.d.ts +6 -12
- package/lib/components/action/table/action-table.component.d.ts +3 -8
- package/lib/components/form/editor/form-editor.component.d.ts +4 -7
- package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +1 -3
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +0 -2
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +0 -2
- package/lib/components/layout/main-layout.component.d.ts +4 -7
- package/lib/components/layoutV2/main-layout.component.d.ts +4 -3
- package/lib/components/layoutV2/menu-item.component.d.ts +7 -3
- package/lib/components/layoutV2/menu.component.d.ts +2 -0
- package/lib/components/layoutV2/services/main-layout.component.service.d.ts +3 -0
- package/lib/components/layoutV2/sidebar.component.d.ts +1 -1
- package/lib/components/layoutV2/topbar.component.d.ts +2 -2
- package/lib/components/notification/notification-wrapper.component.d.ts +12 -0
- package/lib/components/table/table.component.d.ts +4 -7
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -3
- package/lib/components/tableview/route/tableview-route.component.d.ts +0 -3
- package/lib/components/tableview/tableview.component.d.ts +3 -19
- package/lib/descriptors/filter/filter.descriptor.d.ts +7 -7
- package/lib/directives/component.directive.d.ts +3 -2
- package/lib/models/action-editor.model.d.ts +11 -0
- package/lib/models/config.model.d.ts +3 -13
- package/lib/models/index.d.ts +1 -1
- package/lib/models/layout-config.model.d.ts +33 -0
- package/lib/models/view-container.model.d.ts +0 -25
- package/lib/router/route-builder.d.ts +1 -1
- package/lib/services/{action-executor.service.d.ts → action/action-executor.service.d.ts} +32 -31
- package/lib/services/action/component-action-executor.service.d.ts +9 -0
- package/lib/services/action/index.d.ts +4 -0
- package/lib/services/action/provide-action-executor.d.ts +2 -0
- package/lib/services/action/root-action-executor.service.d.ts +9 -0
- package/lib/services/index.d.ts +0 -2
- package/lib/services/view/index.d.ts +2 -0
- package/lib/services/view/provide-view-container.d.ts +2 -0
- package/lib/services/view/view-container.service.d.ts +32 -0
- package/lib/utils/date.util.d.ts +12 -2
- package/lib/utils/notification.util.d.ts +6 -6
- package/openapi/angular/README.mustache +226 -0
- package/openapi/angular/api.module.mustache +39 -0
- package/openapi/angular/api.service.mustache +253 -0
- package/openapi/angular/apiInterface.mustache +47 -0
- package/openapi/angular/apis.mustache +12 -0
- package/openapi/angular/configuration.mustache +128 -0
- package/openapi/angular/custom/base-api.service.mustache +14 -0
- package/openapi/angular/custom/helpers.mustache +71 -0
- package/openapi/angular/custom/modelSchema.mustache +46 -0
- package/openapi/angular/custom/schema.mustache +18 -0
- package/openapi/angular/encoder.mustache +20 -0
- package/openapi/angular/git_push.sh.mustache +57 -0
- package/openapi/angular/index.mustache +0 -0
- package/openapi/angular/licenseInfo.mustache +11 -0
- package/openapi/angular/model.mustache +16 -0
- package/openapi/angular/modelAlias.mustache +1 -0
- package/openapi/angular/modelEnum.mustache +24 -0
- package/openapi/angular/modelGeneric.mustache +14 -0
- package/openapi/angular/modelGenericAdditionalProperties.mustache +5 -0
- package/openapi/angular/modelGenericEnums.mustache +30 -0
- package/openapi/angular/modelOneOf.mustache +14 -0
- package/openapi/angular/modelTaggedUnion.mustache +21 -0
- package/openapi/angular/models.mustache +5 -0
- package/openapi/angular/ng-package.mustache +6 -0
- package/openapi/angular/package.mustache +39 -0
- package/openapi/angular/param.mustache +69 -0
- package/openapi/angular/tsconfig.mustache +28 -0
- package/openapi/angular/variables.mustache +9 -0
- package/openapi/{templates → node}/model.mustache +3 -17
- package/package.json +2 -2
- package/scss/mng-commons-dark-v2.scss +1 -1
- package/scss/mng-commons-light-v2.scss +1 -1
- package/scss/v2/layout/layout.scss +2 -2
- package/scss/v2/layout/mng/_mng_layout_topbar.scss +2 -0
- package/scss/v2/layout/preloading.scss +8 -8
- package/esm2022/lib/components/action/models/action-confirmation-service.model.mjs +0 -2
- package/esm2022/lib/models/menu-config.model.mjs +0 -2
- package/esm2022/lib/services/action-executor.service.mjs +0 -747
- package/esm2022/lib/services/view-container.component.service.mjs +0 -65
- package/lib/components/action/models/action-confirmation-service.model.d.ts +0 -6
- package/lib/models/menu-config.model.d.ts +0 -15
- package/lib/services/view-container.component.service.d.ts +0 -36
- /package/openapi/{templates → node}/models.mustache +0 -0
|
@@ -9,9 +9,10 @@ export declare class MngMainLayoutV2Component implements OnInit, OnDestroy {
|
|
|
9
9
|
private readonly renderer;
|
|
10
10
|
appTopbar?: ElementRef;
|
|
11
11
|
private menuOutsideClickListener;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
useNotificationWrapper: boolean;
|
|
13
|
+
topbarComponent: Type<any> | false;
|
|
14
|
+
breadcrumbsComponent: Type<any> | false;
|
|
15
|
+
footerComponent: Type<any> | false;
|
|
15
16
|
constructor();
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
blockBodyScroll(): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
|
2
|
+
import { AfterViewChecked, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
3
|
import { MngMenuItem } from '../../models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MngMenuItemV2Component implements OnInit, OnDestroy {
|
|
5
|
+
export declare class MngMenuItemV2Component implements OnInit, OnDestroy, AfterViewChecked {
|
|
5
6
|
private readonly router;
|
|
6
7
|
private readonly injector;
|
|
7
8
|
private readonly destroyRef;
|
|
@@ -25,11 +26,14 @@ export declare class MngMenuItemV2Component implements OnInit, OnDestroy {
|
|
|
25
26
|
visible: import("@angular/core").WritableSignal<boolean>;
|
|
26
27
|
constructor();
|
|
27
28
|
ngOnInit(): void;
|
|
29
|
+
ngAfterViewChecked(): void;
|
|
28
30
|
ngOnDestroy(): void;
|
|
29
|
-
get submenuAnimation(): "collapsed" | "expanded";
|
|
31
|
+
get submenuAnimation(): "hidden" | "visible" | "collapsed" | "expanded";
|
|
30
32
|
get activeClass(): boolean;
|
|
31
33
|
itemClick(event: Event): void;
|
|
34
|
+
onSubmenuAnimated(event: AnimationEvent): void;
|
|
32
35
|
onChildVisibleChange(visible: boolean, item: MngMenuItem, idx: number): void;
|
|
36
|
+
private calculatePosition;
|
|
33
37
|
private checkIfMenuItemIsAllowedFromGuard;
|
|
34
38
|
private updateActiveStateFromRoute;
|
|
35
39
|
private processItemChildrenVisibility;
|
|
@@ -5,8 +5,10 @@ export declare class MngMenuV2Component implements OnInit {
|
|
|
5
5
|
private readonly route;
|
|
6
6
|
private readonly menuService;
|
|
7
7
|
private readonly mngCommons;
|
|
8
|
+
private readonly layoutService;
|
|
8
9
|
menuItems: Array<MngMenuItem>;
|
|
9
10
|
ngOnInit(): void;
|
|
11
|
+
private wrapMenuItems;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuV2Component, never>;
|
|
11
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuV2Component, "mng-menu-v2", never, {}, {}, never, never, true, never>;
|
|
12
14
|
}
|
|
@@ -6,7 +6,10 @@ export declare class MngMainLayoutComponentV2Service {
|
|
|
6
6
|
private overlayOpen;
|
|
7
7
|
overlayOpen$: import("rxjs").Observable<any>;
|
|
8
8
|
onMenuToggle(): void;
|
|
9
|
+
onOverlaySubmenuOpen(): void;
|
|
9
10
|
isOverlay(): boolean;
|
|
11
|
+
isSlim(): boolean;
|
|
12
|
+
isSlimPlus(): boolean;
|
|
10
13
|
isDesktop(): boolean;
|
|
11
14
|
isMobile(): boolean;
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponentV2Service, never>;
|
|
@@ -9,7 +9,7 @@ export declare class MngSidebarV2Component implements OnInit {
|
|
|
9
9
|
el: ElementRef<any>;
|
|
10
10
|
timeout: any;
|
|
11
11
|
menuContainer: ElementRef;
|
|
12
|
-
menuComponent: Type<any
|
|
12
|
+
menuComponent: Type<any> | false;
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
onMouseEnter(): void;
|
|
15
15
|
onMouseLeave(): void;
|
|
@@ -10,8 +10,8 @@ export declare class MngTopbarV2Component implements OnInit {
|
|
|
10
10
|
private config;
|
|
11
11
|
menuButton: ElementRef;
|
|
12
12
|
appSidebar: MngSidebarV2Component;
|
|
13
|
-
breadcrumbComponent: Type<any
|
|
14
|
-
topbarUserComponent: Type<any
|
|
13
|
+
breadcrumbComponent: Type<any> | false;
|
|
14
|
+
topbarUserComponent: Type<any> | false;
|
|
15
15
|
languages: Array<string>;
|
|
16
16
|
selectedLanguage: string;
|
|
17
17
|
ngOnInit(): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Message } from 'primeng/api';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NotificationWrapperComponent {
|
|
4
|
+
readonly notificationCutoff = 70;
|
|
5
|
+
isDialogNotificationVisible: import("@angular/core").Signal<boolean>;
|
|
6
|
+
dialogNotification: import("@angular/core").WritableSignal<Message | null>;
|
|
7
|
+
getNotificationIconClass(message: Message | null): string;
|
|
8
|
+
onShowNotificationInDialog(message: Message): void;
|
|
9
|
+
onDialogNotificationVisibilityChange(visible: boolean): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationWrapperComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationWrapperComponent, "mng-notification-wrapper", never, {}, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
@@ -8,7 +8,6 @@ import { MediusQueryResult } from '../../api/models';
|
|
|
8
8
|
import { ITableDataProvider } from '../../data-providers';
|
|
9
9
|
import { ColumnDescriptor, TableDescriptorInst } from '../../descriptors/table';
|
|
10
10
|
import { MngComponentDirective, MngTemplateDirective } from '../../directives';
|
|
11
|
-
import { IViewContainer } from '../../models';
|
|
12
11
|
import { MngTableCellClickEvent, MngTableLoadEvent } from './models/table.event';
|
|
13
12
|
import { ColumnWithPreferences } from './models/table.interface';
|
|
14
13
|
import * as i0 from "@angular/core";
|
|
@@ -22,17 +21,17 @@ export declare class MngTableComponent<T = any, S = any> implements OnInit, OnCh
|
|
|
22
21
|
private readonly mngCommonsService;
|
|
23
22
|
private readonly localStorageService;
|
|
24
23
|
private readonly destroyRef;
|
|
25
|
-
private readonly
|
|
24
|
+
private readonly viewContainer;
|
|
25
|
+
private readonly messageService;
|
|
26
26
|
descriptorInput: TableDescriptorInst<T>;
|
|
27
27
|
items?: Observable<Array<T>>;
|
|
28
|
-
queryResult?: Observable<MediusQueryResult<T
|
|
28
|
+
queryResult?: Observable<MediusQueryResult<T> | undefined>;
|
|
29
29
|
loadingInput?: Observable<boolean>;
|
|
30
30
|
dataProvider?: ITableDataProvider;
|
|
31
31
|
useQueryParams: boolean;
|
|
32
32
|
selectionMode: 'single' | 'multiple';
|
|
33
33
|
selectionEnabled: boolean;
|
|
34
34
|
columnLastMinWidth?: number;
|
|
35
|
-
viewContainerInit?: IViewContainer<T, S>;
|
|
36
35
|
captionComponent?: Type<any>;
|
|
37
36
|
columnCustomLastComponent?: Type<any>;
|
|
38
37
|
globalFilterFieldsInput?: string[];
|
|
@@ -85,7 +84,6 @@ export declare class MngTableComponent<T = any, S = any> implements OnInit, OnCh
|
|
|
85
84
|
private layoutPreferences;
|
|
86
85
|
private localstorageKey;
|
|
87
86
|
private routerIsNavigationOutsideInProgress;
|
|
88
|
-
private viewContainer?;
|
|
89
87
|
ngOnInit(): void;
|
|
90
88
|
ngAfterContentInit(): void;
|
|
91
89
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -108,7 +106,6 @@ export declare class MngTableComponent<T = any, S = any> implements OnInit, OnCh
|
|
|
108
106
|
private createFilterMeta;
|
|
109
107
|
private createSortMeta;
|
|
110
108
|
private initializeDataLoadingTriggers;
|
|
111
|
-
private initializeViewContainer;
|
|
112
109
|
onColumnToggle(event: MultiSelectChangeEvent): void;
|
|
113
110
|
onColumnToggleAll(): void;
|
|
114
111
|
onColumnReorder(event: TableColumnReorderEvent): void;
|
|
@@ -118,7 +115,7 @@ export declare class MngTableComponent<T = any, S = any> implements OnInit, OnCh
|
|
|
118
115
|
*/
|
|
119
116
|
resetDefaultLayout(): void;
|
|
120
117
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, never>;
|
|
121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptorInput": { "alias": "descriptor"; "required": true; }; "items": { "alias": "items"; "required": false; }; "queryResult": { "alias": "queryResult"; "required": false; }; "loadingInput": { "alias": "loading"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; }; "columnLastMinWidth": { "alias": "columnLastMinWidth"; "required": false; }; "
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptorInput": { "alias": "descriptor"; "required": true; }; "items": { "alias": "items"; "required": false; }; "queryResult": { "alias": "queryResult"; "required": false; }; "loadingInput": { "alias": "loading"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; }; "columnLastMinWidth": { "alias": "columnLastMinWidth"; "required": false; }; "captionComponent": { "alias": "captionComponent"; "required": false; }; "columnCustomLastComponent": { "alias": "columnCustomLastComponent"; "required": false; }; "globalFilterFieldsInput": { "alias": "globalFilterFields"; "required": false; }; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnCustomLastCmpInstEventEmitter": "columnCustomLastComponentInstance"; }, ["templates"], never, true, never>;
|
|
122
119
|
static ngAcceptInputType_items: unknown;
|
|
123
120
|
static ngAcceptInputType_queryResult: unknown;
|
|
124
121
|
static ngAcceptInputType_loadingInput: unknown;
|
|
@@ -9,12 +9,11 @@ import { TableviewDescriptorInst } from '../../../descriptors/tableview';
|
|
|
9
9
|
import { MngRouterData } from '../../../router/models';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare abstract class AMngTableviewRouteComponent<T = any, S = undefined> implements OnInit {
|
|
12
|
+
protected readonly route: ActivatedRoute;
|
|
13
|
+
protected readonly translateService: TranslateService;
|
|
12
14
|
descriptor: TableviewDescriptorInst<T>;
|
|
13
15
|
dataProvider: ITableviewDataProvider<T, S>;
|
|
14
16
|
actions: Array<ActionDescriptorInst<any>>;
|
|
15
|
-
protected route: ActivatedRoute;
|
|
16
|
-
protected translateService: TranslateService;
|
|
17
|
-
constructor();
|
|
18
17
|
protected get routeData(): MngRouterData;
|
|
19
18
|
ngOnInit(): void;
|
|
20
19
|
protected abstract createTableviewDescriptor(): TableviewDescriptorInst<T>;
|
|
@@ -2,18 +2,15 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { ITableviewDataProvider } from '../../../data-providers';
|
|
3
3
|
import { ActionDescriptorInst } from '../../../descriptors/action';
|
|
4
4
|
import { TableviewDescriptorInst } from '../../../descriptors/tableview';
|
|
5
|
-
import { MngTableviewComponent } from '../tableview.component';
|
|
6
5
|
import { AMngTableviewRouteComponent } from './tableview-route.abstract.component';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class MngTableviewRouteComponent<T, S = undefined> extends AMngTableviewRouteComponent<T, S> implements OnInit {
|
|
9
8
|
descriptorInit?: TableviewDescriptorInst<T>;
|
|
10
9
|
dataProviderInit?: ITableviewDataProvider<T, S>;
|
|
11
10
|
actionsInit?: Array<ActionDescriptorInst<T>>;
|
|
12
|
-
tableviewComponent?: MngTableviewComponent<T, S>;
|
|
13
11
|
protected createTableviewDescriptor(): TableviewDescriptorInst<T>;
|
|
14
12
|
protected createTableviewDataProvider(): ITableviewDataProvider<T, S>;
|
|
15
13
|
protected createActionDescriptors(): Array<ActionDescriptorInst<T>>;
|
|
16
|
-
reloadTable(): void;
|
|
17
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewRouteComponent<any, any>, never>;
|
|
18
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewRouteComponent<any, any>, "mng-tableview-route", never, { "descriptorInit": { "alias": "descriptor"; "required": false; }; "dataProviderInit": { "alias": "dataProvider"; "required": false; }; "actionsInit": { "alias": "actions"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { AfterContentInit, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Message, MessageService } from 'primeng/api';
|
|
3
2
|
import { MediusQueryParam } from '../../api/models';
|
|
4
|
-
import {
|
|
3
|
+
import { ITableviewDataProvider } from '../../data-providers';
|
|
5
4
|
import { ActionDescriptorInst } from '../../descriptors/action';
|
|
6
5
|
import { TableviewDescriptorInst } from '../../descriptors/tableview';
|
|
7
6
|
import { MngTemplateDirective } from '../../directives';
|
|
8
|
-
import { IViewContainer } from '../../models';
|
|
9
|
-
import { MngViewContainerComponentService } from '../../services';
|
|
10
|
-
import { MngActionTableComponent } from '../action';
|
|
11
7
|
import { MngTableLoadEvent } from '../table/models/table.event';
|
|
12
8
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, AfterContentInit
|
|
14
|
-
private
|
|
15
|
-
private viewContainerService;
|
|
9
|
+
export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, AfterContentInit {
|
|
10
|
+
private readonly viewContainer;
|
|
16
11
|
descriptor: TableviewDescriptorInst<T>;
|
|
17
12
|
dataProvider?: ITableviewDataProvider<T, S>;
|
|
18
13
|
actions: Array<ActionDescriptorInst<any>>;
|
|
19
|
-
tableComponent?: MngActionTableComponent<T, S>;
|
|
20
14
|
tableActions: ActionDescriptorInst<T>[];
|
|
21
15
|
toolbarLeftActions: ActionDescriptorInst<T>[];
|
|
22
16
|
toolbarRightActions: ActionDescriptorInst<T>[];
|
|
@@ -26,21 +20,11 @@ export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, A
|
|
|
26
20
|
selectedItems: T[];
|
|
27
21
|
templates: QueryList<MngTemplateDirective>;
|
|
28
22
|
footerTemplate?: TemplateRef<any>;
|
|
29
|
-
isDialogNotificationVisible: boolean;
|
|
30
|
-
dialogNotification: Message | null;
|
|
31
|
-
readonly notificationCutoff = 70;
|
|
32
|
-
constructor(messageService: MessageService, viewContainerService: MngViewContainerComponentService<T, S>);
|
|
33
23
|
ngOnInit(): void;
|
|
34
24
|
ngAfterContentInit(): void;
|
|
35
25
|
ngOnDestroy(): void;
|
|
36
|
-
getMessageService(): MessageService;
|
|
37
|
-
getDataProvider(): IDataProvider<T, S> | undefined;
|
|
38
|
-
getActions(): ActionDescriptorInst<any, any>[];
|
|
39
|
-
reloadTable(): void;
|
|
40
26
|
onTableLoad(event: MngTableLoadEvent): void;
|
|
41
27
|
selectionChange(selectedItems: Array<T>): void;
|
|
42
|
-
onShowNotificationInDialog(message: Message): void;
|
|
43
|
-
getNotificationIconClass(message: Message | null): string;
|
|
44
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
|
|
45
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": { "alias": "descriptor"; "required": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, {}, ["templates"], never, true, never>;
|
|
46
30
|
}
|
|
@@ -13,9 +13,9 @@ export declare class FilterDescriptor<FilterModel> {
|
|
|
13
13
|
protected _numberUseGrouping: boolean;
|
|
14
14
|
protected _datePickerFormat?: string;
|
|
15
15
|
protected _datePickerShowTime: boolean;
|
|
16
|
-
protected
|
|
17
|
-
protected
|
|
18
|
-
protected
|
|
16
|
+
protected _datePickerValueNoTime?: boolean;
|
|
17
|
+
protected _datePickerValueNoTimezone?: boolean;
|
|
18
|
+
protected _datePickerValueUtc?: boolean;
|
|
19
19
|
protected _placeholder?: string;
|
|
20
20
|
protected _className: string;
|
|
21
21
|
protected _columnClassName: string;
|
|
@@ -34,9 +34,9 @@ export declare class FilterDescriptor<FilterModel> {
|
|
|
34
34
|
get numberUseGrouping(): boolean;
|
|
35
35
|
get datePickerFormat(): string | undefined;
|
|
36
36
|
get datePickerShowTime(): boolean;
|
|
37
|
-
get
|
|
38
|
-
get
|
|
39
|
-
get
|
|
37
|
+
get datePickerValueUtc(): boolean | undefined;
|
|
38
|
+
get datePickerValueNoTimezone(): boolean | undefined;
|
|
39
|
+
get datePickerValueNoTime(): boolean | undefined;
|
|
40
40
|
get placeholder(): string | undefined;
|
|
41
41
|
get className(): string;
|
|
42
42
|
get columnClassName(): string;
|
|
@@ -53,7 +53,7 @@ export declare class FilterDescriptor<FilterModel> {
|
|
|
53
53
|
withNumberFractions(min?: number, max?: number): this;
|
|
54
54
|
withNumberGrouping(useGrouping?: boolean): this;
|
|
55
55
|
withDateFormat(format?: string, showTime?: boolean): this;
|
|
56
|
-
withDateValue(
|
|
56
|
+
withDateValue(utc?: boolean, noTimezone?: boolean, noTime?: boolean): this;
|
|
57
57
|
withPlaceholder(placeholder: string): this;
|
|
58
58
|
withClassName(className: string): this;
|
|
59
59
|
withColumnClassName(className: string): this;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentRef, OnInit, Type } from '@angular/core';
|
|
1
|
+
import { ComponentRef, Injector, OnInit, Type } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MngComponentDirective<C> implements OnInit {
|
|
4
4
|
private readonly injector;
|
|
@@ -10,10 +10,11 @@ export declare class MngComponentDirective<C> implements OnInit {
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
12
|
attachToHost: boolean;
|
|
13
|
+
nodeInjector?: Injector;
|
|
13
14
|
private componentInstanceEventEmitter;
|
|
14
15
|
componentRef: ComponentRef<C>;
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
private isCmpInstanceOfColumnValue;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": { "alias": "mngComponent"; "required": true; }; "inputs": { "alias": "inputs"; "required": false; }; "attachToHost": { "alias": "attachToHost"; "required": false; }; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never, never, true, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": { "alias": "mngComponent"; "required": true; }; "inputs": { "alias": "inputs"; "required": false; }; "attachToHost": { "alias": "attachToHost"; "required": false; }; "nodeInjector": { "alias": "nodeInjector"; "required": false; }; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never, never, true, never>;
|
|
19
20
|
}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { ActionInstance } from '../components/action/models';
|
|
4
|
+
import { ActionEditorDescriptorInst } from '../descriptors/action';
|
|
2
5
|
export interface IActionEditorComponent {
|
|
3
6
|
closeWithUnsavedChangesConfirmation(callFromGuard: boolean): Observable<boolean>;
|
|
4
7
|
}
|
|
8
|
+
export interface ActionEditorDialogData<T, S> {
|
|
9
|
+
action: {
|
|
10
|
+
descriptor: ActionEditorDescriptorInst<T>;
|
|
11
|
+
instance: ActionInstance<T, S>;
|
|
12
|
+
previousInstance?: ActionInstance<any, any>;
|
|
13
|
+
};
|
|
14
|
+
injector: Injector;
|
|
15
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
1
|
import { ValidatorOption, WrapperOption } from '@ngx-formly/core/lib/models/config';
|
|
3
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
3
|
import { MngFormlyTypeConfig } from '../components/form/formly/models';
|
|
4
|
+
import { MngLayoutConfig, MngLayoutConfigV2 } from './layout-config.model';
|
|
5
5
|
import { MngLogConfig } from './log.model';
|
|
6
|
-
import { MngMenuConfig, MngMenuConfigV2 } from './menu-config.model';
|
|
7
6
|
import { VersionConfigType } from './version.model';
|
|
8
7
|
export type ColorScheme = 'light' | 'dark';
|
|
9
8
|
export interface MngModuleConfig {
|
|
@@ -25,8 +24,8 @@ export interface MngModuleConfig {
|
|
|
25
24
|
/**
|
|
26
25
|
* @deprecated use menuV2 instead
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
layout?: MngLayoutConfig;
|
|
28
|
+
layoutV2?: MngLayoutConfigV2;
|
|
30
29
|
configuration?: {
|
|
31
30
|
projectEnvironment?: any;
|
|
32
31
|
jsonSource?: string | Array<string>;
|
|
@@ -41,15 +40,6 @@ export interface MngModuleConfig {
|
|
|
41
40
|
validators?: ValidatorOption[];
|
|
42
41
|
getValidationMessages?: (translate: TranslateService) => any[];
|
|
43
42
|
};
|
|
44
|
-
components?: {
|
|
45
|
-
layout?: {
|
|
46
|
-
topbar?: Type<any>;
|
|
47
|
-
menu?: Type<any>;
|
|
48
|
-
footer?: Type<any>;
|
|
49
|
-
breadcrumb?: Type<any>;
|
|
50
|
-
topbarUser?: Type<any>;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
43
|
serialization?: {
|
|
54
44
|
dateTimeInUtc?: boolean;
|
|
55
45
|
dateTimeWithTimezone?: boolean;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { MenuItem } from 'primeng/api';
|
|
3
|
+
export type MngMenuMode = 'static' | 'overlay' | 'reveal' | 'drawer' | 'slim' | 'slim-plus';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated use MngMenuConfigV2 instead
|
|
6
|
+
*/
|
|
7
|
+
export interface MngLayoutConfig {
|
|
8
|
+
menuMode: 'static' | 'sidebar' | 'slim' | 'overlay';
|
|
9
|
+
menuItems?: MenuItem[];
|
|
10
|
+
pinEnabled?: boolean;
|
|
11
|
+
sidebarSlim?: boolean;
|
|
12
|
+
disableNotificationWrapper?: boolean;
|
|
13
|
+
components?: {
|
|
14
|
+
topbar?: Type<any>;
|
|
15
|
+
menu?: Type<any>;
|
|
16
|
+
footer?: Type<any>;
|
|
17
|
+
breadcrumb?: Type<any>;
|
|
18
|
+
topbarUser?: Type<any>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface MngLayoutConfigV2 {
|
|
22
|
+
menuMode: MngMenuMode;
|
|
23
|
+
menuItems?: MenuItem[];
|
|
24
|
+
ripple?: boolean;
|
|
25
|
+
disableNotificationWrapper?: boolean;
|
|
26
|
+
components?: {
|
|
27
|
+
topbar?: Type<any> | false;
|
|
28
|
+
menu?: Type<any> | false;
|
|
29
|
+
footer?: Type<any> | false;
|
|
30
|
+
breadcrumb?: Type<any> | false;
|
|
31
|
+
topbarUser?: Type<any> | false;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
import { MessageService } from 'primeng/api';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
1
|
import { MediusQueryParam } from '../api/models';
|
|
4
|
-
import { ActionInstance } from '../components/action/models';
|
|
5
|
-
import { IDataProvider } from '../data-providers';
|
|
6
|
-
import { ActionDescriptorInst } from '../descriptors/action';
|
|
7
|
-
export interface IViewContainer<T = any, S = any> {
|
|
8
|
-
getMessageService(): MessageService | undefined;
|
|
9
|
-
getDataProvider(): IDataProvider<T, S> | undefined;
|
|
10
|
-
getActions(): Array<ActionDescriptorInst<T, S>>;
|
|
11
|
-
}
|
|
12
|
-
export interface IViewContainerTable<T = any, S = any> extends IViewContainer<T, S> {
|
|
13
|
-
getTableReload$(): Observable<ViewContainerTableReloadEvent>;
|
|
14
|
-
reloadTable(event: ViewContainerTableReloadEvent): void;
|
|
15
|
-
}
|
|
16
|
-
export interface IViewContainerEditor<T = any, S = any> extends IViewContainer<T, S> {
|
|
17
|
-
getEditorReset$(): Observable<ViewContainerEditorResetEvent<T>>;
|
|
18
|
-
resetEditor(event?: ViewContainerEditorResetEvent<T>): void;
|
|
19
|
-
getEditorClose$(): Observable<ViewContainerEditorCloseEvent<T>>;
|
|
20
|
-
closeEditor(event?: ViewContainerEditorCloseEvent<T>): void;
|
|
21
|
-
}
|
|
22
|
-
export interface IViewActionRouteTriggeredContainer<T = any, S = any> {
|
|
23
|
-
getActionRouteTriggeredInstance(): ActionInstance<T, S> | undefined;
|
|
24
|
-
setActionRouteTriggeredInstance(instance: ActionInstance<T, S>): void;
|
|
25
|
-
unsetActionRouteTriggeredInstance(): void;
|
|
26
|
-
}
|
|
27
2
|
export interface ViewContainerTableReloadEvent {
|
|
28
3
|
emitEvent?: boolean;
|
|
29
4
|
resetParams?: boolean;
|
|
@@ -9,7 +9,7 @@ import { BreadcrumbType, MngRouterData } from './models';
|
|
|
9
9
|
import { RoutesBuilder } from './routes-builder';
|
|
10
10
|
import { TableviewRouteBuilderInternal } from './tableview-route-builder';
|
|
11
11
|
export declare class RouteBuilder {
|
|
12
|
-
|
|
12
|
+
protected readonly route: Route;
|
|
13
13
|
private routePath;
|
|
14
14
|
protected routeData: MngRouterData;
|
|
15
15
|
private root?;
|
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
4
5
|
import { DialogService } from 'primeng/dynamicdialog';
|
|
5
|
-
import { ActionContext, ActionContextValidation, ActionInstance, ActionParameters } from '
|
|
6
|
-
import { IDataProvider
|
|
7
|
-
import { ActionDescriptorInst, ActionEditorDescriptorInst } from '
|
|
8
|
-
import { IActionEditorComponent, IMngError } from '
|
|
9
|
-
import { MngParametrizePipe } from '
|
|
10
|
-
import { MngActionErrorMapperService } from '
|
|
11
|
-
import { MngCommonsService } from '
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
import { ActionContext, ActionContextValidation, ActionInstance, ActionInstanceStateEnum, ActionParameters } from '../../components/action/models';
|
|
7
|
+
import { IDataProvider } from '../../data-providers';
|
|
8
|
+
import { ActionDescriptorInst, ActionEditorDescriptorInst } from '../../descriptors/action';
|
|
9
|
+
import { IActionEditorComponent, IMngError } from '../../models';
|
|
10
|
+
import { MngParametrizePipe } from '../../pipes';
|
|
11
|
+
import { MngActionErrorMapperService } from '../action-error-mapper.service';
|
|
12
|
+
import { MngCommonsService } from '../commons.service';
|
|
13
|
+
import { MngLoggerService } from '../logger.service';
|
|
14
|
+
import { MngNavigationService } from '../navigation.service';
|
|
15
|
+
import { ViewContainer } from '../view';
|
|
16
|
+
export declare abstract class MngActionExecutorService {
|
|
17
|
+
protected readonly injector: Injector;
|
|
18
|
+
protected readonly router: Router;
|
|
19
|
+
protected readonly dialogService: DialogService;
|
|
20
|
+
protected readonly translate: TranslateService;
|
|
21
|
+
protected readonly mngCommons: MngCommonsService;
|
|
22
|
+
protected readonly navigationService: MngNavigationService;
|
|
23
|
+
protected readonly errorMapper: MngActionErrorMapperService;
|
|
24
|
+
protected readonly parametrize: MngParametrizePipe;
|
|
25
|
+
protected readonly defaultEditorDialogComponent: import("@angular/core").Type<any>;
|
|
26
|
+
protected readonly messageService: MessageService;
|
|
27
|
+
protected readonly confirmationService: ConfirmationService;
|
|
28
|
+
protected readonly viewContainer: ViewContainer<any, any> | null;
|
|
29
|
+
protected readonly instancesBufferMax = 100;
|
|
30
|
+
protected logger: MngLoggerService;
|
|
31
|
+
abstract get instances(): ActionInstance<any, any>[];
|
|
29
32
|
/**
|
|
30
33
|
* Prepares action context for usage in validation.
|
|
31
34
|
* @param action Action descriptor.
|
|
@@ -60,7 +63,7 @@ export declare class MngActionExecutorService {
|
|
|
60
63
|
*
|
|
61
64
|
* @return Action context for fetch function.
|
|
62
65
|
*/
|
|
63
|
-
prepareContextForEditorFetch<T, S>(action: ActionEditorDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?:
|
|
66
|
+
prepareContextForEditorFetch<T, S>(action: ActionEditorDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<T, S>;
|
|
64
67
|
/**
|
|
65
68
|
* Runs editor action's submit (=main run) function by creating new action context for action instance.
|
|
66
69
|
*
|
|
@@ -72,7 +75,7 @@ export declare class MngActionExecutorService {
|
|
|
72
75
|
*
|
|
73
76
|
* @return Action context for submit (=run) function.
|
|
74
77
|
*/
|
|
75
|
-
prepareContextForEditorSubmit<T, S>(action: ActionEditorDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?:
|
|
78
|
+
prepareContextForEditorSubmit<T, S>(action: ActionEditorDescriptorInst<T>, parameters: ActionParameters<T>, dataProvider?: IDataProvider<T, S>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<unknown, unknown>): ActionContext<T, S>;
|
|
76
79
|
/**
|
|
77
80
|
* Prepares action exec context for action of type editor.
|
|
78
81
|
*
|
|
@@ -106,7 +109,7 @@ export declare class MngActionExecutorService {
|
|
|
106
109
|
*
|
|
107
110
|
* @return Action instance - if non provided in parameters, the newly created will be returned.
|
|
108
111
|
*/
|
|
109
|
-
activateAction<T, S>(action: ActionDescriptorInst<T>, parameters: ActionParameters<T>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<
|
|
112
|
+
activateAction<T, S>(action: ActionDescriptorInst<T>, parameters: ActionParameters<T>, instance?: ActionInstance<T, S>, previousActionInstance?: ActionInstance<any, any>, runContext?: boolean): ActionInstance<T, S>;
|
|
110
113
|
/**
|
|
111
114
|
* To be called when action editor is initialized to correctly activate action.
|
|
112
115
|
* @param action Action descriptor.
|
|
@@ -168,7 +171,5 @@ export declare class MngActionExecutorService {
|
|
|
168
171
|
* @param skipInitializationFromViewContainer If initialization of instance from view container should be skipped.
|
|
169
172
|
* @private
|
|
170
173
|
*/
|
|
171
|
-
|
|
172
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionExecutorService, never>;
|
|
173
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MngActionExecutorService>;
|
|
174
|
+
protected getOrCreateInstance<T, S>(instance: ActionInstance<T, S> | undefined, action?: ActionDescriptorInst<T>, parameters?: ActionParameters<T>, instanceInitialStatus?: ActionInstanceStateEnum, skipInitializationFromViewContainer?: boolean): ActionInstance<T, S>;
|
|
174
175
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionInstance } from '../../components/action/models';
|
|
2
|
+
import { MngActionExecutorService } from './action-executor.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngComponentActionExecutorService extends MngActionExecutorService {
|
|
5
|
+
private readonly rootActionExecutorService;
|
|
6
|
+
get instances(): ActionInstance<any, any>[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentActionExecutorService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngComponentActionExecutorService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionInstance } from '../../components/action/models';
|
|
2
|
+
import { MngActionExecutorService } from './action-executor.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngRootActionExecutorService extends MngActionExecutorService {
|
|
5
|
+
private readonly _instances;
|
|
6
|
+
get instances(): ActionInstance<any, any>[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngRootActionExecutorService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngRootActionExecutorService>;
|
|
9
|
+
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
export * from './action-executor.service';
|
|
2
1
|
export * from './action-error-mapper.service';
|
|
3
2
|
export * from './configuration.service';
|
|
4
3
|
export * from './commons.service';
|
|
5
4
|
export * from './navigation.service';
|
|
6
5
|
export * from './router.service';
|
|
7
6
|
export * from './version.service';
|
|
8
|
-
export * from './view-container.component.service';
|
|
9
7
|
export * from './mng-localstorage-config.service';
|
|
10
8
|
export * from './log-publisher-console.service';
|
|
11
9
|
export * from './logger.service';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ActionInstance } from '../../components/action/models';
|
|
3
|
+
import { IDataProvider } from '../../data-providers';
|
|
4
|
+
import { ActionDescriptorInst } from '../../descriptors/action';
|
|
5
|
+
import { ViewContainerEditorCloseEvent, ViewContainerEditorResetEvent, ViewContainerTableReloadEvent } from '../../models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Should be used with providers defined within component.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ViewContainer<T, S> {
|
|
11
|
+
private _dataProvider?;
|
|
12
|
+
private _routeTriggeredActionInstance?;
|
|
13
|
+
private actions;
|
|
14
|
+
private _tableReloadSubject;
|
|
15
|
+
private _editorResetSubject;
|
|
16
|
+
private _editorCloseSubject;
|
|
17
|
+
set dataProvider(dataProvider: IDataProvider<T, S>);
|
|
18
|
+
getDataProvider(): IDataProvider<T, S> | undefined;
|
|
19
|
+
getActions(): Array<ActionDescriptorInst<T>>;
|
|
20
|
+
setActions(actions: Array<ActionDescriptorInst<T>>): void;
|
|
21
|
+
getTableReload$(): Observable<ViewContainerTableReloadEvent>;
|
|
22
|
+
reloadTable(event?: ViewContainerTableReloadEvent): void;
|
|
23
|
+
getEditorReset$(): Observable<ViewContainerEditorResetEvent<T>>;
|
|
24
|
+
resetEditor(event?: ViewContainerEditorResetEvent<T> | undefined): void;
|
|
25
|
+
getEditorClose$(): Observable<ViewContainerEditorCloseEvent<T>>;
|
|
26
|
+
closeEditor(event?: ViewContainerEditorCloseEvent<T>): void;
|
|
27
|
+
getRouteTriggeredActionInstance(): ActionInstance<T, S> | undefined;
|
|
28
|
+
setRouteTriggeredActionInstance(instance: ActionInstance<T, S>): void;
|
|
29
|
+
unsetRouteTriggeredActionInstance(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewContainer<any, any>, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ViewContainer<any, any>>;
|
|
32
|
+
}
|