@mediusinc/mng-commons 0.0.1-rc.2
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/README.md +19 -0
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +49 -0
- package/esm2020/lib/api/models/filter-match-type.model.mjs +24 -0
- package/esm2020/lib/api/models/filter-param.model.mjs +46 -0
- package/esm2020/lib/api/models/index.mjs +9 -0
- package/esm2020/lib/api/models/mappers.mjs +17 -0
- package/esm2020/lib/api/models/query-mode.model.mjs +19 -0
- package/esm2020/lib/api/models/query-param.model.mjs +69 -0
- package/esm2020/lib/api/models/query-result.model.mjs +45 -0
- package/esm2020/lib/api/models/serialization.model.mjs +2 -0
- package/esm2020/lib/api/services/abstract-crud-api.service.mjs +72 -0
- package/esm2020/lib/api/services/index.mjs +2 -0
- package/esm2020/lib/api/utils/index.mjs +3 -0
- package/esm2020/lib/api/utils/medius-rest.util.mjs +70 -0
- package/esm2020/lib/api/utils/object-serializer.util.mjs +226 -0
- package/esm2020/lib/components/action/action.component.mjs +63 -0
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +148 -0
- package/esm2020/lib/components/action/index.mjs +4 -0
- package/esm2020/lib/components/action/route/action-route.component.mjs +144 -0
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +140 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +58 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +51 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +16 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +94 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +124 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +17 -0
- package/esm2020/lib/components/form/formly/fields/index.mjs +8 -0
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +17 -0
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +16 -0
- package/esm2020/lib/components/form/formly/wrappers/index.mjs +3 -0
- package/esm2020/lib/components/form/index.mjs +2 -0
- package/esm2020/lib/components/layout/app.breadcrumb.component.mjs +27 -0
- package/esm2020/lib/components/layout/app.footer.component.mjs +35 -0
- package/esm2020/lib/components/layout/app.main.component.mjs +25 -0
- package/esm2020/lib/components/layout/app.main.component.service.mjs +133 -0
- package/esm2020/lib/components/layout/app.menu.component.mjs +38 -0
- package/esm2020/lib/components/layout/app.menuitem.component.mjs +243 -0
- package/esm2020/lib/components/layout/app.topbar.component.mjs +135 -0
- package/esm2020/lib/components/layout/index.mjs +7 -0
- package/esm2020/lib/components/tableview/index.mjs +4 -0
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +31 -0
- package/esm2020/lib/components/tableview/table/table.component.mjs +173 -0
- package/esm2020/lib/components/tableview/tableview.component.mjs +82 -0
- package/esm2020/lib/components/tableview/tableview.component.service.mjs +18 -0
- package/esm2020/lib/config/formly.config.mjs +165 -0
- package/esm2020/lib/config/index.mjs +2 -0
- package/esm2020/lib/directives/index.mjs +2 -0
- package/esm2020/lib/directives/template.directive.mjs +25 -0
- package/esm2020/lib/mng-commons.module.mjs +338 -0
- package/esm2020/lib/models/action/action.model.mjs +58 -0
- package/esm2020/lib/models/action/index.mjs +2 -0
- package/esm2020/lib/models/config/index.mjs +2 -0
- package/esm2020/lib/models/config/mng-config.model.mjs +3 -0
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +283 -0
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +647 -0
- package/esm2020/lib/models/descriptors/index.mjs +6 -0
- package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +34 -0
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +123 -0
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +124 -0
- package/esm2020/lib/models/events/editor-event.model.mjs +14 -0
- package/esm2020/lib/models/events/index.mjs +3 -0
- package/esm2020/lib/models/events/table-event.model.mjs +16 -0
- package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +2 -0
- package/esm2020/lib/models/interfaces/index.mjs +2 -0
- package/esm2020/lib/models/providers/data-provider.model.mjs +86 -0
- package/esm2020/lib/models/providers/index.mjs +2 -0
- package/esm2020/lib/models/types/index.mjs +3 -0
- package/esm2020/lib/models/types/type.decorator.mjs +8 -0
- package/esm2020/lib/models/types/type.model.mjs +2 -0
- package/esm2020/lib/models/validators/field.validator.mjs +21 -0
- package/esm2020/lib/models/validators/index.mjs +2 -0
- package/esm2020/lib/pipes/index.mjs +2 -0
- package/esm2020/lib/pipes/property-path.pipe.mjs +36 -0
- package/esm2020/lib/services/action.service.mjs +239 -0
- package/esm2020/lib/services/breadcrumb.service.mjs +21 -0
- package/esm2020/lib/services/configuration.service.mjs +77 -0
- package/esm2020/lib/services/index.mjs +7 -0
- package/esm2020/lib/services/menu.service.mjs +26 -0
- package/esm2020/lib/services/navigation.service.mjs +49 -0
- package/esm2020/lib/services/providers/config-service.provider.mjs +12 -0
- package/esm2020/lib/services/providers/formly-config.provider.mjs +31 -0
- package/esm2020/lib/services/providers/index.mjs +3 -0
- package/esm2020/lib/services/settings.service.mjs +40 -0
- package/esm2020/lib/utils/editor-formly.util.mjs +165 -0
- package/esm2020/lib/utils/i18n.util.mjs +75 -0
- package/esm2020/lib/utils/index.mjs +5 -0
- package/esm2020/lib/utils/model.util.mjs +38 -0
- package/esm2020/lib/utils/type.util.mjs +43 -0
- package/esm2020/mediusinc-mng-commons.mjs +5 -0
- package/esm2020/public-api.mjs +33 -0
- package/fesm2015/mediusinc-mng-commons.mjs +5056 -0
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -0
- package/fesm2020/mediusinc-mng-commons.mjs +5012 -0
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -0
- package/lib/api/models/builders/query-param.builder.d.ts +11 -0
- package/lib/api/models/filter-match-type.model.d.ts +21 -0
- package/lib/api/models/filter-param.model.d.ts +23 -0
- package/lib/api/models/index.d.ts +8 -0
- package/lib/api/models/mappers.d.ts +6 -0
- package/lib/api/models/query-mode.model.d.ts +16 -0
- package/lib/api/models/query-param.model.d.ts +31 -0
- package/lib/api/models/query-result.model.d.ts +36 -0
- package/lib/api/models/serialization.model.d.ts +8 -0
- package/lib/api/services/abstract-crud-api.service.d.ts +23 -0
- package/lib/api/services/index.d.ts +1 -0
- package/lib/api/utils/index.d.ts +2 -0
- package/lib/api/utils/medius-rest.util.d.ts +6 -0
- package/lib/api/utils/object-serializer.util.d.ts +30 -0
- package/lib/components/action/action.component.d.ts +36 -0
- package/lib/components/action/dialog/action-dialog.component.d.ts +48 -0
- package/lib/components/action/index.d.ts +3 -0
- package/lib/components/action/route/action-route.component.d.ts +32 -0
- package/lib/components/form/editor/form-editor.component.d.ts +37 -0
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +21 -0
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +19 -0
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +6 -0
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +12 -0
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +17 -0
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +36 -0
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +6 -0
- package/lib/components/form/formly/fields/index.d.ts +7 -0
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +8 -0
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +8 -0
- package/lib/components/form/formly/wrappers/index.d.ts +2 -0
- package/lib/components/form/index.d.ts +1 -0
- package/lib/components/layout/app.breadcrumb.component.d.ts +16 -0
- package/lib/components/layout/app.footer.component.d.ts +8 -0
- package/lib/components/layout/app.main.component.d.ts +12 -0
- package/lib/components/layout/app.main.component.service.d.ts +40 -0
- package/lib/components/layout/app.menu.component.d.ts +14 -0
- package/lib/components/layout/app.menuitem.component.d.ts +31 -0
- package/lib/components/layout/app.topbar.component.d.ts +16 -0
- package/lib/components/layout/index.d.ts +6 -0
- package/lib/components/tableview/index.d.ts +3 -0
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +15 -0
- package/lib/components/tableview/table/table.component.d.ts +47 -0
- package/lib/components/tableview/tableview.component.d.ts +36 -0
- package/lib/components/tableview/tableview.component.service.d.ts +11 -0
- package/lib/config/formly.config.d.ts +8 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/template.directive.d.ts +11 -0
- package/lib/mng-commons.module.d.ts +74 -0
- package/lib/models/action/action.model.d.ts +53 -0
- package/lib/models/action/index.d.ts +1 -0
- package/lib/models/config/index.d.ts +1 -0
- package/lib/models/config/mng-config.model.d.ts +19 -0
- package/lib/models/descriptors/action-descriptor.model.d.ts +124 -0
- package/lib/models/descriptors/editor-descriptor.model.d.ts +248 -0
- package/lib/models/descriptors/index.d.ts +5 -0
- package/lib/models/descriptors/model-descriptor.model.d.ts +15 -0
- package/lib/models/descriptors/table-descriptor.model.d.ts +45 -0
- package/lib/models/descriptors/tableview-descriptor.model.d.ts +38 -0
- package/lib/models/events/editor-event.model.d.ts +11 -0
- package/lib/models/events/index.d.ts +2 -0
- package/lib/models/events/table-event.model.d.ts +17 -0
- package/lib/models/interfaces/confirmation-service.model.d.ts +6 -0
- package/lib/models/interfaces/index.d.ts +1 -0
- package/lib/models/providers/data-provider.model.d.ts +62 -0
- package/lib/models/providers/index.d.ts +1 -0
- package/lib/models/types/index.d.ts +2 -0
- package/lib/models/types/type.decorator.d.ts +2 -0
- package/lib/models/types/type.model.d.ts +10 -0
- package/lib/models/validators/field.validator.d.ts +18 -0
- package/lib/models/validators/index.d.ts +1 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/property-path.pipe.d.ts +7 -0
- package/lib/services/action.service.d.ts +92 -0
- package/lib/services/breadcrumb.service.d.ts +9 -0
- package/lib/services/configuration.service.d.ts +35 -0
- package/lib/services/index.d.ts +6 -0
- package/lib/services/menu.service.d.ts +11 -0
- package/lib/services/navigation.service.d.ts +14 -0
- package/lib/services/providers/config-service.provider.d.ts +5 -0
- package/lib/services/providers/formly-config.provider.d.ts +4 -0
- package/lib/services/providers/index.d.ts +2 -0
- package/lib/services/settings.service.d.ts +18 -0
- package/lib/utils/editor-formly.util.d.ts +9 -0
- package/lib/utils/i18n.util.d.ts +14 -0
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/model.util.d.ts +5 -0
- package/lib/utils/type.util.d.ts +15 -0
- package/mediusinc-mng-commons-0.0.1-rc.2.tgz +0 -0
- package/mediusinc-mng-commons.d.ts +5 -0
- package/package.json +38 -0
- package/public-api.d.ts +22 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AppSettingsService } from '../../services/settings.service';
|
|
2
|
+
import { MenuService } from '../../services/menu.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AppMainComponentService {
|
|
5
|
+
private appSettings;
|
|
6
|
+
private menuService;
|
|
7
|
+
overlayMenuActive: boolean;
|
|
8
|
+
staticMenuDesktopInactive: boolean;
|
|
9
|
+
staticMenuMobileActive: boolean;
|
|
10
|
+
sidebarActive: boolean;
|
|
11
|
+
sidebarStatic: boolean;
|
|
12
|
+
menuClick: boolean;
|
|
13
|
+
menuHoverActive: boolean;
|
|
14
|
+
topbarMenuActive: boolean;
|
|
15
|
+
topbarItemClick: boolean;
|
|
16
|
+
activeTopbarItem: any;
|
|
17
|
+
configActive: boolean;
|
|
18
|
+
configClick: boolean;
|
|
19
|
+
rightMenuActive: boolean;
|
|
20
|
+
rightMenuClick: boolean;
|
|
21
|
+
searchActive: boolean;
|
|
22
|
+
searchClick: boolean;
|
|
23
|
+
pinActive: boolean;
|
|
24
|
+
constructor(appSettings: AppSettingsService, menuService: MenuService);
|
|
25
|
+
onLayoutClick(): void;
|
|
26
|
+
onSidebarClick(event: any): void;
|
|
27
|
+
onToggleMenu(event: any): void;
|
|
28
|
+
onSidebarMouseOver(event: any): void;
|
|
29
|
+
onSidebarMouseLeave(event: any): void;
|
|
30
|
+
onMenuButtonClick(event: any): void;
|
|
31
|
+
onTopbarItemClick(event: any, item: any): void;
|
|
32
|
+
onTopbarSubItemClick(event: any): void;
|
|
33
|
+
onConfigClick(event: any): void;
|
|
34
|
+
onRightMenuButtonClick(): void;
|
|
35
|
+
onRightMenuClick(event: any): void;
|
|
36
|
+
isDesktop(): boolean;
|
|
37
|
+
isMobile(): boolean;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppMainComponentService, never>;
|
|
39
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppMainComponentService>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MenuItem } from 'primeng/api';
|
|
3
|
+
import { AppSettingsService } from '../../services/settings.service';
|
|
4
|
+
import { AppMainComponentService } from './app.main.component.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AppMenuComponent implements OnInit {
|
|
7
|
+
appSettings: AppSettingsService;
|
|
8
|
+
appMainService: AppMainComponentService;
|
|
9
|
+
model: MenuItem[];
|
|
10
|
+
constructor(appSettings: AppSettingsService, appMainService: AppMainComponentService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppMenuComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppMenuComponent, "app-menu", never, {}, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { MenuService } from '../../services/menu.service';
|
|
5
|
+
import { AppSettingsService } from '../../services/settings.service';
|
|
6
|
+
import { AppMainComponentService } from './app.main.component.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class AppMenuitemComponent implements OnInit, OnDestroy {
|
|
9
|
+
appSettings: AppSettingsService;
|
|
10
|
+
appMainService: AppMainComponentService;
|
|
11
|
+
router: Router;
|
|
12
|
+
private cd;
|
|
13
|
+
private menuService;
|
|
14
|
+
item: any;
|
|
15
|
+
index: number;
|
|
16
|
+
root: boolean;
|
|
17
|
+
parentKey: string | null;
|
|
18
|
+
active: boolean;
|
|
19
|
+
hover: boolean;
|
|
20
|
+
menuSourceSubscription: Subscription;
|
|
21
|
+
menuResetSubscription: Subscription;
|
|
22
|
+
key: string;
|
|
23
|
+
constructor(appSettings: AppSettingsService, appMainService: AppMainComponentService, router: Router, cd: ChangeDetectorRef, menuService: MenuService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
updateActiveStateFromRoute(): void;
|
|
26
|
+
itemClick(event: Event): void;
|
|
27
|
+
onMouseEnter(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppMenuitemComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppMenuitemComponent, "[app-menuitem]", never, { "item": "item"; "index": "index"; "root": "root"; "parentKey": "parentKey"; }, {}, never, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { AppSettingsService } from '../../services/settings.service';
|
|
4
|
+
import { AppMainComponentService } from './app.main.component.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AppTopbarComponent implements OnInit {
|
|
7
|
+
appSettings: AppSettingsService;
|
|
8
|
+
translateService: TranslateService;
|
|
9
|
+
appMainService: AppMainComponentService;
|
|
10
|
+
languages: Array<string>;
|
|
11
|
+
constructor(appSettings: AppSettingsService, translateService: TranslateService, appMainService: AppMainComponentService);
|
|
12
|
+
switchLanguage(language: string): void;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppTopbarComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppTopbarComponent, "app-topbar", never, {}, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TableviewDescriptor, ActionDescriptor } from '../../../models/descriptors';
|
|
2
|
+
import { ITableviewDataProvider } from '../../../models/providers';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const mngTableviewRouteComponentTemplate: string;
|
|
5
|
+
export declare abstract class AMngTableviewRouteComponent<T, S> {
|
|
6
|
+
descriptor: TableviewDescriptor<T>;
|
|
7
|
+
dataProvider: ITableviewDataProvider<T, S>;
|
|
8
|
+
actions: Array<ActionDescriptor<T>>;
|
|
9
|
+
protected constructor();
|
|
10
|
+
protected abstract createTableviewDescriptor(): TableviewDescriptor<T>;
|
|
11
|
+
protected abstract createTableviewDataProvider(): ITableviewDataProvider<T, S>;
|
|
12
|
+
protected createActionDescriptors(): Array<ActionDescriptor<T>>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AMngTableviewRouteComponent<any, any>, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AMngTableviewRouteComponent<any, any>, never, never, {}, {}, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AfterContentInit, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { LazyLoadEvent, SortMeta } from 'primeng/api';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { QueryResult } from '../../../api/models';
|
|
5
|
+
import { TableDescriptor, ColumnDescriptor } from '../../../models/descriptors';
|
|
6
|
+
import { ITableDataProvider } from '../../../models/providers';
|
|
7
|
+
import { TemplateDirective } from '../../../directives';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TableComponent<T> implements OnInit, AfterContentInit, OnDestroy {
|
|
10
|
+
private injector;
|
|
11
|
+
descriptor: TableDescriptor<T>;
|
|
12
|
+
items?: Observable<Array<T>> | Array<T>;
|
|
13
|
+
queryResult?: Observable<QueryResult<T>> | QueryResult<T>;
|
|
14
|
+
loading?: Observable<boolean> | boolean;
|
|
15
|
+
dataProvider?: ITableDataProvider<T, any>;
|
|
16
|
+
selectionEnabled: boolean;
|
|
17
|
+
private loadEventEmitter;
|
|
18
|
+
private cellClickEventEmitter;
|
|
19
|
+
private selectionChangeEventEmitter;
|
|
20
|
+
templates: QueryList<TemplateDirective>;
|
|
21
|
+
private primeTable;
|
|
22
|
+
captionTemplate?: TemplateRef<any>;
|
|
23
|
+
columnActionTemplate?: TemplateRef<any>;
|
|
24
|
+
useDataProvider: boolean;
|
|
25
|
+
queryResult$?: Observable<QueryResult<T>>;
|
|
26
|
+
loading$?: Observable<boolean>;
|
|
27
|
+
private dataProviderService;
|
|
28
|
+
private dataProviderQueryResultSubject;
|
|
29
|
+
private dataProviderLoadingSubject;
|
|
30
|
+
private dataProviderLatestLazyLoadEvent?;
|
|
31
|
+
private dataProviderSubscription?;
|
|
32
|
+
readonly rowsPerPageOptions: number[];
|
|
33
|
+
multiSortMeta?: SortMeta[];
|
|
34
|
+
selection: Array<T>;
|
|
35
|
+
private subscriptions;
|
|
36
|
+
constructor(injector: Injector);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
ngAfterContentInit(): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
reload(emitEvent?: boolean, resetParams?: boolean): void;
|
|
41
|
+
onTableLazyLoad(event: LazyLoadEvent): void;
|
|
42
|
+
onCellClick(col: ColumnDescriptor<any>, item: T, idx: number): void;
|
|
43
|
+
onSelectionChange(event: Array<T>): void;
|
|
44
|
+
private loadTableWithDataProvider;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "selectionEnabled": "selectionEnabled"; }, { "loadEventEmitter": "onLoad"; "cellClickEventEmitter": "onCellClick"; "selectionChangeEventEmitter": "onSelectionChange"; }, ["templates"], never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
5
|
+
import { DialogService } from 'primeng/dynamicdialog';
|
|
6
|
+
import { ActionService } from '../../services';
|
|
7
|
+
import { TableviewDescriptor } from '../../models/descriptors';
|
|
8
|
+
import { ITableviewDataProvider } from '../../models/providers';
|
|
9
|
+
import { MngTableCellClickEvent } from '../../models/events';
|
|
10
|
+
import { ActionDescriptor } from '../../models/descriptors';
|
|
11
|
+
import { TableComponent } from './table/table.component';
|
|
12
|
+
import { TableviewComponentService } from './tableview.component.service';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class TableviewComponent<T, S> implements OnInit {
|
|
15
|
+
private route;
|
|
16
|
+
private messageService;
|
|
17
|
+
private translateService;
|
|
18
|
+
private dialogService;
|
|
19
|
+
private confirmationService;
|
|
20
|
+
private actionService;
|
|
21
|
+
private tableviewService;
|
|
22
|
+
descriptor: TableviewDescriptor<T>;
|
|
23
|
+
dataProvider?: ITableviewDataProvider<T, S>;
|
|
24
|
+
actions: Array<ActionDescriptor<T>>;
|
|
25
|
+
tableComponent: TableComponent<T> | null;
|
|
26
|
+
rowClickActions: ActionDescriptor<T>[];
|
|
27
|
+
rowInlineActions: ActionDescriptor<T>[];
|
|
28
|
+
toolbarLeftActions: ActionDescriptor<T>[];
|
|
29
|
+
toolbarRightActions: ActionDescriptor<T>[];
|
|
30
|
+
constructor(route: ActivatedRoute, messageService: MessageService, translateService: TranslateService, dialogService: DialogService, confirmationService: ConfirmationService, actionService: ActionService, tableviewService: TableviewComponentService<T, S>);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
reloadTable(): void;
|
|
33
|
+
onTableCellClick(event: MngTableCellClickEvent<T>): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableviewComponent<any, any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, never, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ITableviewDataProvider } from '../../models/providers';
|
|
2
|
+
import { ActionDescriptor } from '../../models/descriptors';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableviewComponentService<T, S> {
|
|
5
|
+
dataProvider?: ITableviewDataProvider<T, S>;
|
|
6
|
+
actions: Array<ActionDescriptor<T>>;
|
|
7
|
+
constructor();
|
|
8
|
+
reloadTable(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableviewComponentService<any, any>, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TableviewComponentService<any, any>>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormlyFieldWrapperComponent } from '../components/form/formly/wrappers';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
export declare const formlyWrappersConfig: {
|
|
4
|
+
name: string;
|
|
5
|
+
component: typeof FormlyFieldWrapperComponent;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const formlyTypesConfig: any[];
|
|
8
|
+
export declare const getFormlyValidationMessages: (translate: TranslateService) => any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formly.config';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './template.directive';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateDirective {
|
|
4
|
+
template: TemplateRef<any>;
|
|
5
|
+
type: string;
|
|
6
|
+
name: string;
|
|
7
|
+
constructor(template: TemplateRef<any>);
|
|
8
|
+
getType(): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TemplateDirective, "[mngTemplate]", never, { "type": "type"; "name": "mngTemplate"; }, {}, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
4
|
+
import { MngModuleConfig } from './models/config';
|
|
5
|
+
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "./directives/template.directive";
|
|
8
|
+
import * as i2 from "./pipes/property-path.pipe";
|
|
9
|
+
import * as i3 from "./components/layout/app.breadcrumb.component";
|
|
10
|
+
import * as i4 from "./components/layout/app.footer.component";
|
|
11
|
+
import * as i5 from "./components/layout/app.main.component";
|
|
12
|
+
import * as i6 from "./components/layout/app.menu.component";
|
|
13
|
+
import * as i7 from "./components/layout/app.menuitem.component";
|
|
14
|
+
import * as i8 from "./components/layout/app.topbar.component";
|
|
15
|
+
import * as i9 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
|
|
16
|
+
import * as i10 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
|
|
17
|
+
import * as i11 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
|
|
18
|
+
import * as i12 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
|
|
19
|
+
import * as i13 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
|
|
20
|
+
import * as i14 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
|
|
21
|
+
import * as i15 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
|
|
22
|
+
import * as i16 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
23
|
+
import * as i17 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
24
|
+
import * as i18 from "./components/tableview/table/table.component";
|
|
25
|
+
import * as i19 from "./components/tableview/tableview.component";
|
|
26
|
+
import * as i20 from "./components/form/editor/form-editor.component";
|
|
27
|
+
import * as i21 from "./components/action/action.component";
|
|
28
|
+
import * as i22 from "./components/action/dialog/action-dialog.component";
|
|
29
|
+
import * as i23 from "./components/action/route/action-route.component";
|
|
30
|
+
import * as i24 from "@angular/common";
|
|
31
|
+
import * as i25 from "@angular/router";
|
|
32
|
+
import * as i26 from "@angular/common/http";
|
|
33
|
+
import * as i27 from "@angular/forms";
|
|
34
|
+
import * as i28 from "@ngx-translate/core";
|
|
35
|
+
import * as i29 from "@ngx-formly/core";
|
|
36
|
+
import * as i30 from "primeng/autocomplete";
|
|
37
|
+
import * as i31 from "primeng/breadcrumb";
|
|
38
|
+
import * as i32 from "primeng/button";
|
|
39
|
+
import * as i33 from "primeng/calendar";
|
|
40
|
+
import * as i34 from "primeng/card";
|
|
41
|
+
import * as i35 from "primeng/checkbox";
|
|
42
|
+
import * as i36 from "primeng/chip";
|
|
43
|
+
import * as i37 from "primeng/confirmdialog";
|
|
44
|
+
import * as i38 from "primeng/confirmpopup";
|
|
45
|
+
import * as i39 from "primeng/dialog";
|
|
46
|
+
import * as i40 from "primeng/dynamicdialog";
|
|
47
|
+
import * as i41 from "primeng/dropdown";
|
|
48
|
+
import * as i42 from "primeng/inputnumber";
|
|
49
|
+
import * as i43 from "primeng/inputmask";
|
|
50
|
+
import * as i44 from "primeng/inputswitch";
|
|
51
|
+
import * as i45 from "primeng/inputtext";
|
|
52
|
+
import * as i46 from "primeng/inputtextarea";
|
|
53
|
+
import * as i47 from "primeng/paginator";
|
|
54
|
+
import * as i48 from "primeng/radiobutton";
|
|
55
|
+
import * as i49 from "primeng/ripple";
|
|
56
|
+
import * as i50 from "primeng/selectbutton";
|
|
57
|
+
import * as i51 from "primeng/table";
|
|
58
|
+
import * as i52 from "primeng/tag";
|
|
59
|
+
import * as i53 from "primeng/toast";
|
|
60
|
+
import * as i54 from "primeng/togglebutton";
|
|
61
|
+
import * as i55 from "primeng/toolbar";
|
|
62
|
+
import * as i56 from "primeng/tooltip";
|
|
63
|
+
import * as i57 from "primeng/messages";
|
|
64
|
+
import * as i58 from "primeng/progressspinner";
|
|
65
|
+
import * as i59 from "primeng/tabview";
|
|
66
|
+
import * as i60 from "primeng/fieldset";
|
|
67
|
+
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
68
|
+
export declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
|
|
69
|
+
export declare class MngCommonsModule {
|
|
70
|
+
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
72
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.TemplateDirective, typeof i2.PropertyPathPipe, typeof i3.AppBreadcrumbComponent, typeof i4.AppFooterComponent, typeof i5.AppMainComponent, typeof i6.AppMenuComponent, typeof i7.AppMenuitemComponent, typeof i8.AppTopbarComponent, typeof i9.FormlyFieldWrapperComponent, typeof i10.FormlyTableWrapperComponent, typeof i11.FormlyFieldInputComponent, typeof i12.FormlyFieldDropdownComponent, typeof i13.FormlyFieldAutocompleteComponent, typeof i14.FormlyFieldTableDialogMultiselectComponent, typeof i15.FormlyFieldTableDialogFormComponent, typeof i16.FormlyFieldTabsComponent, typeof i17.FormlyFieldFieldsetComponent, typeof i18.TableComponent, typeof i19.TableviewComponent, typeof i20.FormEditorComponent, typeof i21.ActionComponent, typeof i22.ActionDialogComponent, typeof i23.ActionRouteComponent], [typeof i24.CommonModule, typeof i25.RouterModule, typeof i26.HttpClientModule, typeof i27.ReactiveFormsModule, typeof i28.TranslateModule, typeof i29.FormlyModule, typeof i30.AutoCompleteModule, typeof i31.BreadcrumbModule, typeof i32.ButtonModule, typeof i33.CalendarModule, typeof i34.CardModule, typeof i35.CheckboxModule, typeof i36.ChipModule, typeof i37.ConfirmDialogModule, typeof i38.ConfirmPopupModule, typeof i39.DialogModule, typeof i40.DynamicDialogModule, typeof i41.DropdownModule, typeof i42.InputNumberModule, typeof i43.InputMaskModule, typeof i44.InputSwitchModule, typeof i45.InputTextModule, typeof i46.InputTextareaModule, typeof i47.PaginatorModule, typeof i48.RadioButtonModule, typeof i49.RippleModule, typeof i50.SelectButtonModule, typeof i51.TableModule, typeof i52.TagModule, typeof i53.ToastModule, typeof i54.ToggleButtonModule, typeof i55.ToolbarModule, typeof i56.TooltipModule, typeof i57.MessagesModule, typeof i58.ProgressSpinnerModule, typeof i59.TabViewModule, typeof i60.FieldsetModule], [typeof i1.TemplateDirective, typeof i2.PropertyPathPipe, typeof i3.AppBreadcrumbComponent, typeof i4.AppFooterComponent, typeof i5.AppMainComponent, typeof i6.AppMenuComponent, typeof i7.AppMenuitemComponent, typeof i8.AppTopbarComponent, typeof i9.FormlyFieldWrapperComponent, typeof i10.FormlyTableWrapperComponent, typeof i11.FormlyFieldInputComponent, typeof i12.FormlyFieldDropdownComponent, typeof i13.FormlyFieldAutocompleteComponent, typeof i14.FormlyFieldTableDialogMultiselectComponent, typeof i15.FormlyFieldTableDialogFormComponent, typeof i16.FormlyFieldTabsComponent, typeof i17.FormlyFieldFieldsetComponent, typeof i18.TableComponent, typeof i19.TableviewComponent, typeof i20.FormEditorComponent, typeof i21.ActionComponent, typeof i22.ActionDialogComponent, typeof i23.ActionRouteComponent]>;
|
|
73
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IdType } from '../types';
|
|
4
|
+
import { IDataProvider } from '../providers';
|
|
5
|
+
import { TableviewComponentService } from '../../components/tableview/tableview.component.service';
|
|
6
|
+
export declare class ActionExecContext<T, S, DP extends IDataProvider<T, S>> {
|
|
7
|
+
readonly dataProvider?: DP | undefined;
|
|
8
|
+
readonly serviceInstance?: S | undefined;
|
|
9
|
+
readonly data?: {
|
|
10
|
+
item?: T | undefined;
|
|
11
|
+
itemId?: IdType | undefined;
|
|
12
|
+
actionData?: ActionData | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
readonly sourceComponent: any;
|
|
15
|
+
readonly tableview: TableviewComponentService<T, S> | null;
|
|
16
|
+
constructor(dataProvider?: DP | undefined, serviceInstance?: S | undefined, data?: {
|
|
17
|
+
item?: T | undefined;
|
|
18
|
+
itemId?: IdType | undefined;
|
|
19
|
+
actionData?: ActionData | undefined;
|
|
20
|
+
} | undefined, sourceComponent?: any, tableview?: TableviewComponentService<T, S> | null);
|
|
21
|
+
}
|
|
22
|
+
export declare class ActionError {
|
|
23
|
+
readonly error: any;
|
|
24
|
+
readonly dismissed: boolean;
|
|
25
|
+
constructor(error: any, // error details
|
|
26
|
+
dismissed?: boolean);
|
|
27
|
+
}
|
|
28
|
+
export declare class ActionRunResult<T, S, DP extends IDataProvider<T, S>> {
|
|
29
|
+
readonly context?: ActionExecContext<T, S, DP> | undefined;
|
|
30
|
+
readonly result?: T | undefined;
|
|
31
|
+
readonly error?: ActionError | undefined;
|
|
32
|
+
constructor(context?: ActionExecContext<T, S, DP> | undefined, result?: T | undefined, error?: ActionError | undefined);
|
|
33
|
+
}
|
|
34
|
+
export declare class ActionActivationResult<T, S, DP extends IDataProvider<T, S>> {
|
|
35
|
+
readonly runResult?: ActionRunResult<T, S, DP> | undefined;
|
|
36
|
+
readonly dialogRef?: DynamicDialogRef | undefined;
|
|
37
|
+
constructor(runResult?: ActionRunResult<T, S, DP> | undefined, dialogRef?: DynamicDialogRef | undefined);
|
|
38
|
+
get runContext(): ActionExecContext<T, S, DP> | null | undefined;
|
|
39
|
+
get result(): T | null | undefined;
|
|
40
|
+
get error(): ActionError | null | undefined;
|
|
41
|
+
}
|
|
42
|
+
export declare class ActionTriggerResult<T, S, DP extends IDataProvider<T, S>> {
|
|
43
|
+
readonly activationResult?: ActionActivationResult<T, S, DP> | undefined;
|
|
44
|
+
readonly routerNavigation?: Observable<boolean> | undefined;
|
|
45
|
+
constructor(activationResult?: ActionActivationResult<T, S, DP> | undefined, routerNavigation?: Observable<boolean> | undefined);
|
|
46
|
+
get runContext(): ActionRunResult<T, S, DP> | null | undefined;
|
|
47
|
+
get result(): T | null | undefined;
|
|
48
|
+
get error(): ActionError | null | undefined;
|
|
49
|
+
get dialogRef(): DynamicDialogRef | null | undefined;
|
|
50
|
+
}
|
|
51
|
+
export declare type ActionData = {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action.model';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mng-config.model';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
export declare const MNG_MODULE_CONFIG_IT: InjectionToken<MngModuleConfig>;
|
|
4
|
+
export interface MngModuleConfig {
|
|
5
|
+
configuration?: {
|
|
6
|
+
projectEnvironment?: any;
|
|
7
|
+
jsonSource?: string;
|
|
8
|
+
skipJsonSourceInit?: boolean;
|
|
9
|
+
};
|
|
10
|
+
formly?: {
|
|
11
|
+
skip?: boolean;
|
|
12
|
+
merge?: boolean;
|
|
13
|
+
types?: any[];
|
|
14
|
+
wrappers?: any[];
|
|
15
|
+
validators?: any[];
|
|
16
|
+
getValidationMessages?: (translate: TranslateService) => any[];
|
|
17
|
+
};
|
|
18
|
+
skipObjectSerializer?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ClassType } from '../types';
|
|
3
|
+
import { EditorDescriptor, ModelDescriptor } from '../descriptors';
|
|
4
|
+
import { IDataProvider, IEditorDataProvider } from '../providers';
|
|
5
|
+
import { ActionExecContext } from '../action';
|
|
6
|
+
export declare class ActionDescriptor<T> {
|
|
7
|
+
protected readonly _model: ModelDescriptor<T>;
|
|
8
|
+
protected readonly _actionName: string;
|
|
9
|
+
protected readonly _parentType?: ClassType<any>;
|
|
10
|
+
protected readonly _parentTypeName?: string;
|
|
11
|
+
protected readonly _parentProperty?: string;
|
|
12
|
+
protected readonly _i18nModelActionBaseKey: string;
|
|
13
|
+
protected _type: ActionTypeEnum;
|
|
14
|
+
protected _activationTrigger: ActionActivationTriggerEnum;
|
|
15
|
+
protected _position: ActionPositionEnum;
|
|
16
|
+
protected _level: ActionLevelEnum;
|
|
17
|
+
protected _routeUrl: string | null;
|
|
18
|
+
protected _title?: string | null;
|
|
19
|
+
protected _icon?: string;
|
|
20
|
+
protected _className: string;
|
|
21
|
+
protected _runFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
22
|
+
protected _isVisibleFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
|
|
23
|
+
protected _isEnabledFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
|
|
24
|
+
private _hasRunConfirmation;
|
|
25
|
+
private _runConfirmationIcon?;
|
|
26
|
+
private _runConfirmationTitle?;
|
|
27
|
+
private _runConfirmationMessage?;
|
|
28
|
+
private _runConfirmationAcceptTitle?;
|
|
29
|
+
private _runConfirmationRejectTitle?;
|
|
30
|
+
constructor(model: ModelDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
31
|
+
get model(): ModelDescriptor<T>;
|
|
32
|
+
get parentTypeName(): string | undefined;
|
|
33
|
+
get parentProperty(): string | undefined;
|
|
34
|
+
get i18nModelActionBaseKey(): string;
|
|
35
|
+
get type(): ActionTypeEnum;
|
|
36
|
+
get activationTrigger(): ActionActivationTriggerEnum;
|
|
37
|
+
get position(): ActionPositionEnum;
|
|
38
|
+
get level(): ActionLevelEnum;
|
|
39
|
+
get routeUrl(): string | null;
|
|
40
|
+
get title(): string | null | undefined;
|
|
41
|
+
get icon(): string | undefined;
|
|
42
|
+
get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
43
|
+
get isVisibleFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
|
|
44
|
+
get isEnabledFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
|
|
45
|
+
get actionName(): string;
|
|
46
|
+
get className(): string;
|
|
47
|
+
get hasRunConfirmation(): boolean;
|
|
48
|
+
get runConfirmationIcon(): string | undefined;
|
|
49
|
+
get runConfirmationTitle(): string | undefined;
|
|
50
|
+
get runConfirmationMessage(): string | undefined;
|
|
51
|
+
get runConfirmationAcceptTitle(): string | undefined;
|
|
52
|
+
get runConfirmationRejectTitle(): string | undefined;
|
|
53
|
+
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
54
|
+
withIsVisibleFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<boolean>): this;
|
|
55
|
+
withIsEnabledFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<boolean>): this;
|
|
56
|
+
withRouteTrigger(routeUrl: string): this;
|
|
57
|
+
withLevel(level: ActionLevelEnum): this;
|
|
58
|
+
/**
|
|
59
|
+
* Overrides default title key with model action key (${model.typeName}.actions.${actionName}). Not relevant if parentType name is provided.
|
|
60
|
+
*/
|
|
61
|
+
withModelTitle(): this;
|
|
62
|
+
/**
|
|
63
|
+
* Overrides default title key (${actionName}.title). If null, no title will be shown.
|
|
64
|
+
* @param title Title i18n key or title.
|
|
65
|
+
*/
|
|
66
|
+
withTitle(title: string | null): this;
|
|
67
|
+
withIcon(icon: string): this;
|
|
68
|
+
withClassName(className: string): this;
|
|
69
|
+
withPosition(position: ActionPositionEnum): this;
|
|
70
|
+
withRunConfirmation(icon?: string, title?: string, message?: string, acceptTitle?: string, rejectTitle?: string): this;
|
|
71
|
+
}
|
|
72
|
+
export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
73
|
+
private readonly _editorDescriptor;
|
|
74
|
+
protected _editorTitle?: string;
|
|
75
|
+
protected _fetchFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
76
|
+
protected _submitFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
77
|
+
constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
78
|
+
get editorTitle(): string | undefined;
|
|
79
|
+
get editorDescriptor(): EditorDescriptor<T>;
|
|
80
|
+
get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
81
|
+
get fetchFunction(): (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
82
|
+
get submitFunction(): ((ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>) | undefined;
|
|
83
|
+
withEditorTitle(title: string): this;
|
|
84
|
+
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
85
|
+
withFetchFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
86
|
+
withSubmitFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
87
|
+
}
|
|
88
|
+
export declare class ActionEditorDetailsDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
89
|
+
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
90
|
+
}
|
|
91
|
+
export declare class ActionEditorAddDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
92
|
+
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
93
|
+
}
|
|
94
|
+
export declare class ActionEditorEditDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
95
|
+
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
96
|
+
}
|
|
97
|
+
export declare class ActionDeleteDescriptor<T> extends ActionDescriptor<T> {
|
|
98
|
+
constructor(model: ModelDescriptor<T>);
|
|
99
|
+
}
|
|
100
|
+
export declare enum ActionPositionEnum {
|
|
101
|
+
ToolbarLeft = 0,
|
|
102
|
+
ToolbarRight = 1,
|
|
103
|
+
TableHeader = 2,
|
|
104
|
+
RowInline = 3,
|
|
105
|
+
RowClick = 4
|
|
106
|
+
}
|
|
107
|
+
export declare enum ActionActivationTriggerEnum {
|
|
108
|
+
OnClick = 0,
|
|
109
|
+
OnRoute = 1
|
|
110
|
+
}
|
|
111
|
+
export declare enum ActionTypeEnum {
|
|
112
|
+
Direct = 0,
|
|
113
|
+
Editor = 1
|
|
114
|
+
}
|
|
115
|
+
export declare enum ActionLevelEnum {
|
|
116
|
+
Default = 0,
|
|
117
|
+
Primary = 1,
|
|
118
|
+
Secondary = 2,
|
|
119
|
+
Info = 3,
|
|
120
|
+
Help = 4,
|
|
121
|
+
Success = 5,
|
|
122
|
+
Warning = 6,
|
|
123
|
+
Danger = 7
|
|
124
|
+
}
|