@mediusinc/mng-commons 2.5.0 → 2.6.0-rc.1
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 +4 -1
- package/assets/i18n/sl.json +4 -1
- package/esm2020/lib/components/action/action.component.mjs +8 -1
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +196 -115
- package/esm2020/lib/components/action/models/action-execution.model.mjs +99 -10
- package/esm2020/lib/components/action/route/action-route.component.mjs +53 -35
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +15 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +4 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.mjs +69 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +54 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +4 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +4 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +4 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +5 -2
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -1
- package/esm2020/lib/components/form/formly/fields/index.mjs +3 -1
- package/esm2020/lib/components/form/formly/formly.config.mjs +11 -1
- package/esm2020/lib/components/form/formly/models/formly-field.model.mjs +1 -1
- package/esm2020/lib/components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +21 -3
- package/esm2020/lib/components/layout/menu-item.component.mjs +9 -11
- package/esm2020/lib/components/layout/version.component.mjs +3 -3
- package/esm2020/lib/components/tableview/table/models/index.mjs +2 -0
- package/esm2020/lib/components/tableview/table/table.component.mjs +67 -9
- package/esm2020/lib/descriptors/action/action.descriptor.mjs +13 -1
- package/esm2020/lib/descriptors/editor/field.descriptor.mjs +77 -3
- package/esm2020/lib/descriptors/table/column.descriptor.mjs +25 -1
- package/esm2020/lib/descriptors/table/table.descriptor.mjs +13 -1
- package/esm2020/lib/descriptors/types/table.type.mjs +4 -1
- package/esm2020/lib/mng-commons.module.mjs +7 -4
- package/esm2020/lib/models/config.model.mjs +1 -1
- package/esm2020/lib/models/view-container.model.mjs +1 -1
- package/esm2020/lib/services/action-executor.service.mjs +327 -192
- package/esm2020/lib/services/commons.service.mjs +8 -1
- package/esm2020/lib/services/index.mjs +3 -1
- package/esm2020/lib/services/internal/commons-init.service.mjs +5 -9
- package/esm2020/lib/services/navigation.service.mjs +6 -3
- package/esm2020/lib/services/view-container.component.service.mjs +10 -1
- package/esm2020/lib/utils/action-data-provider.util.mjs +14 -1
- package/esm2020/lib/utils/editor-formly.util.mjs +23 -3
- package/fesm2015/mediusinc-mng-commons.mjs +2552 -1806
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +2179 -1451
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/action/action.component.d.ts +1 -2
- package/lib/components/action/editor/action-editor.component.d.ts +19 -6
- package/lib/components/action/models/action-execution.model.d.ts +35 -6
- package/lib/components/action/route/action-route.component.d.ts +7 -4
- package/lib/components/form/editor/form-editor.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.d.ts +27 -0
- package/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.d.ts +11 -0
- package/lib/components/form/formly/fields/index.d.ts +2 -0
- package/lib/components/form/formly/models/formly-field.model.d.ts +1 -0
- package/lib/components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.d.ts +5 -0
- package/lib/components/layout/menu-item.component.d.ts +1 -2
- package/lib/components/layout/version.component.d.ts +1 -1
- package/lib/components/tableview/table/models/index.d.ts +6 -0
- package/lib/components/tableview/table/table.component.d.ts +16 -1
- package/lib/descriptors/action/action.descriptor.d.ts +5 -0
- package/lib/descriptors/editor/field.descriptor.d.ts +28 -1
- package/lib/descriptors/table/column.descriptor.d.ts +8 -0
- package/lib/descriptors/table/table.descriptor.d.ts +2 -0
- package/lib/descriptors/types/table.type.d.ts +3 -0
- package/lib/mng-commons.module.d.ts +15 -14
- package/lib/models/config.model.d.ts +4 -0
- package/lib/models/view-container.model.d.ts +6 -0
- package/lib/services/action-executor.service.d.ts +73 -37
- package/lib/services/commons.service.d.ts +2 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/internal/commons-init.service.d.ts +1 -3
- package/lib/services/navigation.service.d.ts +3 -2
- package/lib/services/view-container.component.service.d.ts +7 -2
- package/lib/utils/action-data-provider.util.d.ts +8 -0
- package/package.json +2 -2
- package/scss/mng-commons-light.scss +3 -0
- package/scss/mng-overrides/_theme_multiselect.scss +20 -0
- package/scss/mng-overrides/_theme_styles.scss +1 -0
|
@@ -11,8 +11,7 @@ import { IViewContainer } from '../../models';
|
|
|
11
11
|
import { MngAuthorizationService } from '../../security';
|
|
12
12
|
import { MngActionExecutorService, MngViewContainerComponentService } from '../../services';
|
|
13
13
|
import { IdType } from '../../types';
|
|
14
|
-
import { ActionData, ActionInstance, ActionParameters, IActionConfirmationService } from './models';
|
|
15
|
-
import { IActionComponent } from './models/action-component.model';
|
|
14
|
+
import { ActionData, ActionInstance, ActionParameters, IActionComponent, IActionConfirmationService } from './models';
|
|
16
15
|
import * as i0 from "@angular/core";
|
|
17
16
|
export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDestroy, IActionConfirmationService {
|
|
18
17
|
private routeService;
|
|
@@ -26,8 +26,8 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
26
26
|
readonly actionEditorSubmitTypeSubmit = ActionEditorSubmitTypeEnum.Submit;
|
|
27
27
|
readonly actionDefaultLoadingInput: Observable<boolean>;
|
|
28
28
|
action: ActionEditorDescriptor<T>;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
itemIdInit?: IdType;
|
|
30
|
+
itemInit?: T;
|
|
31
31
|
actionData?: ActionData;
|
|
32
32
|
dataProvider?: IEditorDataProvider<T, S>;
|
|
33
33
|
viewContainerInit?: IViewContainer<T, S>;
|
|
@@ -38,7 +38,14 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
38
38
|
editorComponent: MngFormEditorComponent<T>;
|
|
39
39
|
title?: string;
|
|
40
40
|
isDialog: boolean;
|
|
41
|
+
isFormDisabled: boolean;
|
|
42
|
+
itemId?: IdType;
|
|
43
|
+
item?: T;
|
|
41
44
|
private instance?;
|
|
45
|
+
private instanceStateSubscription?;
|
|
46
|
+
private instanceReactivationSubscription?;
|
|
47
|
+
private instanceSubmitFormItem?;
|
|
48
|
+
private instanceSubmitResult?;
|
|
42
49
|
private previousActionInstance?;
|
|
43
50
|
toolbarLeftActions: ActionDescriptor<T>[];
|
|
44
51
|
toolbarRightActions: ActionDescriptor<T>[];
|
|
@@ -46,10 +53,11 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
46
53
|
footerRightActions: ActionDescriptor<T>[];
|
|
47
54
|
private loadingSubject;
|
|
48
55
|
loading$: Observable<boolean>;
|
|
56
|
+
private fetchExecutionSubscription?;
|
|
49
57
|
private submitActionIdSubject;
|
|
50
58
|
private submitLoadingSubject;
|
|
51
59
|
submitLoading$: Observable<boolean>;
|
|
52
|
-
private
|
|
60
|
+
private submitExecutionSubscription?;
|
|
53
61
|
viewContainer?: IViewContainer<T, S>;
|
|
54
62
|
dialogRoute?: ActivatedRoute;
|
|
55
63
|
private sourceComponent;
|
|
@@ -61,11 +69,16 @@ export declare class MngActionEditorComponent<T, S> implements OnInit, OnChanges
|
|
|
61
69
|
onSubmit(event: MngFormEditorSubmitEvent<T>): void;
|
|
62
70
|
cancel(): void;
|
|
63
71
|
triggerSubmit(): void;
|
|
72
|
+
private initializeAsDialog;
|
|
73
|
+
private initializeAsStandalone;
|
|
74
|
+
private initializeSubActions;
|
|
64
75
|
private fetchItem;
|
|
65
|
-
private
|
|
66
|
-
private deactivateAction;
|
|
76
|
+
private updateTitle;
|
|
67
77
|
private placeActionsOnPositions;
|
|
68
78
|
private initializeViewContainer;
|
|
79
|
+
private setEditorEnabled;
|
|
80
|
+
private processActionInstance;
|
|
81
|
+
private unsetInstance;
|
|
69
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionEditorComponent<any, any>, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": "action"; "
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionEditorComponent<any, any>, "mng-action-editor", never, { "action": "action"; "itemIdInit": "itemId"; "itemInit": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; "viewContainerInit": "viewContainer"; }, { "actionRunEventEmitter": "actionSubmit"; "actionCancelEventEmitter": "actionCancel"; }, ["templates"], never, true, never>;
|
|
71
84
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivatedRoute } from '@angular/router';
|
|
2
2
|
import { Confirmation, Message } from 'primeng/api';
|
|
3
3
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
|
-
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { BehaviorSubject, Observable, ReplaySubject, Subscription } from 'rxjs';
|
|
5
5
|
import { MediusQueryParam } from '../../../api/models';
|
|
6
6
|
import { IDataProvider } from '../../../data-providers';
|
|
7
7
|
import { ActionDescriptor } from '../../../descriptors/action';
|
|
@@ -21,6 +21,7 @@ export declare class ActionInstance<T, S> {
|
|
|
21
21
|
readonly instanceId: string;
|
|
22
22
|
readonly instanceLongName: string;
|
|
23
23
|
readonly action: ActionDescriptor<T>;
|
|
24
|
+
readonly createdDate: Date;
|
|
24
25
|
readonly isRunLoadingSubject: BehaviorSubject<boolean>;
|
|
25
26
|
triggerParameters?: ActionParameters<T>;
|
|
26
27
|
activationParameters?: ActionParameters<T>;
|
|
@@ -33,8 +34,9 @@ export declare class ActionInstance<T, S> {
|
|
|
33
34
|
private contextExecutionSubscriptions;
|
|
34
35
|
private _result?;
|
|
35
36
|
private _error?;
|
|
36
|
-
triggerRouteNavigation?: Observable<boolean>;
|
|
37
37
|
activationDialogRef?: DynamicDialogRef;
|
|
38
|
+
private _reactivationInstanceSubject;
|
|
39
|
+
previousInstance?: ActionInstance<T, S>;
|
|
38
40
|
nextActionInstance?: ActionInstance<unknown, unknown>;
|
|
39
41
|
errorActionInstance?: ActionInstance<T, S>;
|
|
40
42
|
constructor(action: ActionDescriptor<T>, state?: ActionInstanceStateEnum, debug?: boolean);
|
|
@@ -51,9 +53,14 @@ export declare class ActionInstance<T, S> {
|
|
|
51
53
|
get error(): ActionError | undefined;
|
|
52
54
|
set error(error: ActionError | undefined);
|
|
53
55
|
get error$(): Observable<ActionError>;
|
|
56
|
+
set reactivationInstance(instance: ActionInstance<T, S> | undefined);
|
|
57
|
+
get reactivationInstance(): ActionInstance<T, S> | undefined;
|
|
58
|
+
get reactivationInstance$(): Observable<ActionInstance<T, S>>;
|
|
54
59
|
contextAt(idx: number): ActionContext<T, S> | undefined;
|
|
55
60
|
newContext(context: ActionContext<T, S>, finishPrevious?: boolean): void;
|
|
56
|
-
|
|
61
|
+
forceFinish(): void;
|
|
62
|
+
private finish;
|
|
63
|
+
isClosed(): boolean;
|
|
57
64
|
}
|
|
58
65
|
/**
|
|
59
66
|
* Class containing all main data for action to be executed in run/fetch/submit states.
|
|
@@ -70,6 +77,7 @@ export declare class ActionContext<T, S> {
|
|
|
70
77
|
previousActionInstance?: ActionInstance<unknown, unknown>;
|
|
71
78
|
confirmation?: Confirmation;
|
|
72
79
|
notification?: Message;
|
|
80
|
+
runSubscription?: Subscription;
|
|
73
81
|
constructor(instance: ActionInstance<T, S>, parameters: ActionParameters<T>, functionName: 'run' | 'fetch' | 'submit', dataProvider?: IDataProvider<T, S> | undefined, serviceInstance?: S | undefined, executionSubject?: ReplaySubject<T | null | undefined>, executionIsRunningSubject?: BehaviorSubject<boolean>);
|
|
74
82
|
get execution$(): Observable<T | null | undefined>;
|
|
75
83
|
get executionIsRunning$(): Observable<boolean>;
|
|
@@ -78,6 +86,7 @@ export declare class ActionContext<T, S> {
|
|
|
78
86
|
executionComplete(): void;
|
|
79
87
|
executionError(err: MngError): void;
|
|
80
88
|
finish(): void;
|
|
89
|
+
isClosed(): boolean;
|
|
81
90
|
}
|
|
82
91
|
/**
|
|
83
92
|
* Class containing all main data for action validations (enabled/visible) to be executed in validation states.
|
|
@@ -100,6 +109,8 @@ export declare class ActionParameters<T> {
|
|
|
100
109
|
route?: ActivatedRoute;
|
|
101
110
|
selectedItems: T[];
|
|
102
111
|
locale?: string;
|
|
112
|
+
formItem?: T | null;
|
|
113
|
+
submitResult?: T | null;
|
|
103
114
|
constructor(itemId?: IdType | undefined, item?: T | undefined);
|
|
104
115
|
withActionData(actionData?: ActionData): this;
|
|
105
116
|
withQueryParam(queryParam?: MediusQueryParam): this;
|
|
@@ -109,7 +120,20 @@ export declare class ActionParameters<T> {
|
|
|
109
120
|
withRoute(route?: ActivatedRoute): this;
|
|
110
121
|
withSelectedItems(selectedItems: T[]): this;
|
|
111
122
|
withLocale(locale: string): this;
|
|
123
|
+
/**
|
|
124
|
+
* Used for action editor re-fetch.
|
|
125
|
+
* @param item Form item.
|
|
126
|
+
*/
|
|
127
|
+
withFormItem(item: T | null | undefined): this;
|
|
128
|
+
/**
|
|
129
|
+
* Used for action editor re-fetch.
|
|
130
|
+
* @param item Submit result.
|
|
131
|
+
*/
|
|
132
|
+
withSubmitResult(item: T | null | undefined): this;
|
|
112
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* States of action. Enums ending with `*Final` are supposed to be final.
|
|
136
|
+
*/
|
|
113
137
|
export declare enum ActionInstanceStateEnum {
|
|
114
138
|
TriggerStart = 0,
|
|
115
139
|
TriggerEnd = 1,
|
|
@@ -126,9 +150,14 @@ export declare enum ActionInstanceStateEnum {
|
|
|
126
150
|
RunError = 12,
|
|
127
151
|
NextActionStart = 13,
|
|
128
152
|
NextActionEnd = 14,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
153
|
+
FinishSuccessFinal = 15,
|
|
154
|
+
FinishErrorFinal = 16,
|
|
155
|
+
FinishDismissedFinal = 17,
|
|
156
|
+
FinishSuccessReactivateFinal = 18,
|
|
157
|
+
FinishComponentDestroyFinal = 19,
|
|
158
|
+
FinishRouteUntriggerStart = 20,
|
|
159
|
+
FinishRouteUntriggerEndFinal = 21,
|
|
160
|
+
FinishRouteUntriggerTimeoutFinal = 22
|
|
132
161
|
}
|
|
133
162
|
export type ActionData = {
|
|
134
163
|
[key: string]: any;
|
|
@@ -14,10 +14,11 @@ export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy,
|
|
|
14
14
|
private viewContainerService;
|
|
15
15
|
cmpId: string;
|
|
16
16
|
private actions;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
17
|
+
private instance?;
|
|
18
|
+
private instanceStateSubscription?;
|
|
19
|
+
private instanceReactivationSubscription?;
|
|
20
20
|
private subscriptions;
|
|
21
|
+
private isRouterNavigationInProgress;
|
|
21
22
|
constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService: MngNavigationService, actionExecutor: MngActionExecutorService, viewContainerService: MngViewContainerComponentService<T, S> | null);
|
|
22
23
|
ngOnInit(): void;
|
|
23
24
|
ngOnDestroy(): void;
|
|
@@ -25,7 +26,9 @@ export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy,
|
|
|
25
26
|
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
26
27
|
private activateAction;
|
|
27
28
|
private untriggerAction;
|
|
28
|
-
private
|
|
29
|
+
private findActionForRoute;
|
|
30
|
+
private processActionInstance;
|
|
31
|
+
private unsetInstance;
|
|
29
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionRouteComponent<any, any>, [null, null, null, null, null, { optional: true; }]>;
|
|
30
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionRouteComponent<any, any>, "mng-action-route", never, {}, {}, never, never, true, never>;
|
|
31
34
|
}
|
|
@@ -19,6 +19,7 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
19
19
|
viewContainerInit?: IViewContainer<T, unknown>;
|
|
20
20
|
private viewContainerSubject;
|
|
21
21
|
viewContainer$: Observable<IViewContainer<T, unknown>>;
|
|
22
|
+
isFormDisabled: boolean;
|
|
22
23
|
formSubmitEventEmitter: EventEmitter<MngFormEditorSubmitEvent<T>>;
|
|
23
24
|
templates: QueryList<MngTemplateDirective>;
|
|
24
25
|
submitButtonElementRef?: ElementRef;
|
|
@@ -51,5 +52,5 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
51
52
|
*/
|
|
52
53
|
private setInitialFormState;
|
|
53
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "viewContainerInit": "viewContainer"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "viewContainerInit": "viewContainer"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
55
56
|
}
|
package/lib/components/form/formly/fields/formly-field-custom/formly-custom-field-base.model.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AbstractControl, FormArray, FormGroup } from '@angular/forms';
|
|
2
|
+
import { FieldType, FormlyFormOptions } from '@ngx-formly/core';
|
|
3
|
+
import { MngFormlyFieldConfig } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AMngFormlyCustomFieldComponent extends FieldType<MngFormlyFieldConfig> {
|
|
6
|
+
field: MngFormlyFieldConfig;
|
|
7
|
+
_model: any;
|
|
8
|
+
_form: FormGroup | FormArray;
|
|
9
|
+
_options: FormlyFormOptions;
|
|
10
|
+
_key: string | number | (string | number)[];
|
|
11
|
+
_formControl: AbstractControl;
|
|
12
|
+
_props: MngFormlyFieldConfig['props'];
|
|
13
|
+
_showError: boolean;
|
|
14
|
+
_id: string;
|
|
15
|
+
_formState: any;
|
|
16
|
+
get model(): any;
|
|
17
|
+
get form(): FormGroup<any> | FormArray<any>;
|
|
18
|
+
get options(): FormlyFormOptions;
|
|
19
|
+
get key(): string | number | (string | number)[];
|
|
20
|
+
get formControl(): AbstractControl<any, any>;
|
|
21
|
+
get props(): import("../../models").MngFormlyFieldProps;
|
|
22
|
+
get showError(): boolean;
|
|
23
|
+
get id(): string;
|
|
24
|
+
get formState(): any;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AMngFormlyCustomFieldComponent, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AMngFormlyCustomFieldComponent, never, never, { "field": "field"; "_model": "model"; "_form": "form"; "_options": "options"; "_key": "key"; "_formControl": "formControl"; "_props": "props"; "_showError": "showError"; "_id": "id"; "_formState": "formState"; }, {}, never, never, false, never>;
|
|
27
|
+
}
|
package/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { FieldInputDescriptor } from '../../../../../descriptors/editor';
|
|
4
|
+
import { MngFormlyFieldConfig } from '../../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MngFormlyFieldCustomComponent<ET> extends FieldType<MngFormlyFieldConfig> implements OnInit {
|
|
7
|
+
descriptor: FieldInputDescriptor<ET>;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldCustomComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldCustomComponent<any>, "mng-formly-field-custom", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -8,3 +8,5 @@ export * from './formly-field-table-dialog-multiselect/formly-field-table-dialog
|
|
|
8
8
|
export * from './formly-field-tabs/formly-field-tabs.component';
|
|
9
9
|
export * from './formly-field-fieldset/formly-field-fieldset.component';
|
|
10
10
|
export * from './formly-field-action/formly-field-action.component';
|
|
11
|
+
export * from './formly-field-custom/formly-field-custom.component';
|
|
12
|
+
export * from './formly-field-custom/formly-custom-field-base.model';
|
|
@@ -5,6 +5,7 @@ export type MngFormlyFieldProps = FormlyFieldProps & MngFormlyFieldAdditionalPro
|
|
|
5
5
|
export interface MngFormlyFieldConfig<Props = MngFormlyFieldProps> extends FormlyFieldConfig<Props> {
|
|
6
6
|
props: Props;
|
|
7
7
|
}
|
|
8
|
+
export type MngFormlyHookFn = (field: MngFormlyFieldConfig) => void;
|
|
8
9
|
export interface MngFormlyFieldAdditionalProps<T, ET> {
|
|
9
10
|
descriptor?: AFieldDescriptor<T, ET> | AFieldGroupDescriptor<ET>;
|
|
10
11
|
formEditorComponent?: IFormEditorComponent<ET>;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { FieldWrapper } from '@ngx-formly/core';
|
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core/lib/models/fieldconfig';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class MngFormlyFieldNoLabelWrapperComponent extends FieldWrapper {
|
|
5
|
+
shouldShowError(): boolean;
|
|
6
|
+
sanitizeErrorsForGroups(field: FormlyFieldConfig): FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
7
|
+
[additionalProperties: string]: any;
|
|
8
|
+
}>;
|
|
4
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldNoLabelWrapperComponent, never>;
|
|
5
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldNoLabelWrapperComponent, "mng-formly-field-no-label-wrapper", never, {}, {}, never, never, true, never>;
|
|
6
11
|
}
|
|
@@ -3,8 +3,7 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MngMenuItem } from '../../models';
|
|
5
5
|
import { MngAuthorizationService } from '../../security';
|
|
6
|
-
import { MngCommonsService } from '../../services';
|
|
7
|
-
import { MngRouterService } from '../../services/router.service';
|
|
6
|
+
import { MngCommonsService, MngRouterService } from '../../services';
|
|
8
7
|
import { MngMainLayoutComponentService } from './services';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { VersionConfig, VersionConfigType } from '../../models';
|
|
3
3
|
import { JsonPathPipe } from '../../pipes';
|
|
4
|
-
import { MngVersionService } from '../../services
|
|
4
|
+
import { MngVersionService } from '../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class MngVersionComponent implements OnInit {
|
|
7
7
|
private versionService;
|
|
@@ -14,6 +14,7 @@ import { IViewContainer } from '../../../models';
|
|
|
14
14
|
import { MngActionExecutorService, MngCommonsService, MngViewContainerComponentService } from '../../../services';
|
|
15
15
|
import { ActionInstance } from '../../action/models';
|
|
16
16
|
import { MngTableCellClickEvent, MngTableLoadEvent } from '../models';
|
|
17
|
+
import { ColumnWithPreferences } from './models';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
export declare class MngTableComponent<T, S> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
19
20
|
private injector;
|
|
@@ -93,6 +94,10 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
93
94
|
private routerIsNavigationOutsideInProgress;
|
|
94
95
|
viewContainer?: IViewContainer<T, S>;
|
|
95
96
|
private subscriptions;
|
|
97
|
+
areColumnsReorderable: boolean;
|
|
98
|
+
areColumnsToggleable: boolean;
|
|
99
|
+
columns: ColumnWithPreferences[];
|
|
100
|
+
visibleColumns: ColumnWithPreferences[];
|
|
96
101
|
constructor(injector: Injector, router: Router, route: ActivatedRoute, translate: TranslateService, mngCommonsService: MngCommonsService, actionExecutor: MngActionExecutorService, viewContainerService: MngViewContainerComponentService<T, S> | null);
|
|
97
102
|
ngOnInit(): void;
|
|
98
103
|
ngAfterContentInit(): void;
|
|
@@ -106,7 +111,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
106
111
|
onSelectionChange(event: Array<T>): void;
|
|
107
112
|
onCaptionCmpInst<C>(instance: C): void;
|
|
108
113
|
onColumnActionCmpInst<C>(instance: C): void;
|
|
109
|
-
onActionFinish(runResult: ActionInstance<T,
|
|
114
|
+
onActionFinish(runResult: ActionInstance<T, S>): void;
|
|
110
115
|
private loadTableWithDataProvider;
|
|
111
116
|
private loadTableFromRouteUpdate;
|
|
112
117
|
private updatePrimeSortAndFilter;
|
|
@@ -114,6 +119,16 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
114
119
|
private createSortMeta;
|
|
115
120
|
private initializeDataLoadingTriggers;
|
|
116
121
|
private initializeViewContainer;
|
|
122
|
+
onColumnToggle(event: any): void;
|
|
123
|
+
/**
|
|
124
|
+
* Propagates the column move from the this.visibleColumns array to this.columns array
|
|
125
|
+
* @param event: MultiSelectChangeEvent
|
|
126
|
+
*/
|
|
127
|
+
onColumnReorder(event: any): void;
|
|
128
|
+
/**
|
|
129
|
+
* Reset column order and column visibility to default settings
|
|
130
|
+
*/
|
|
131
|
+
resetDefaultLayout(): void;
|
|
117
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, null, null, { optional: true; }]>;
|
|
118
133
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "initialDescriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "actions": "actions"; "isColumnClickable": "isColumnClickable"; "viewContainerInit": "viewContainer"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; "columnActionMinWidth": "columnActionMinWidth"; "globalFilterFieldsInit": "globalFilterFields"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never, true, never>;
|
|
119
134
|
}
|
|
@@ -131,6 +131,8 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
131
131
|
protected _fetchFunction?: (ctx: ActionContext<T, any>) => Observable<T>;
|
|
132
132
|
protected _submitFunction?: (ctx: ActionContext<T, any>) => Observable<T>;
|
|
133
133
|
protected _editorComponent?: Type<any>;
|
|
134
|
+
protected _resubmitEnabled?: boolean;
|
|
135
|
+
protected _resubmitRefetch: boolean;
|
|
134
136
|
constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<unknown>, parentProperty?: string);
|
|
135
137
|
get editorTitle(): string | null | undefined;
|
|
136
138
|
get editorTitleParams(): any;
|
|
@@ -146,6 +148,8 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
146
148
|
get submitFunction(): ((ctx: ActionContext<T, any>) => Observable<T>) | undefined;
|
|
147
149
|
get editorActions(): ActionDescriptor<T>[];
|
|
148
150
|
get editorComponent(): Type<any> | undefined;
|
|
151
|
+
get resubmitEnabled(): boolean | undefined;
|
|
152
|
+
get resubmitRefetch(): boolean;
|
|
149
153
|
withEditorTitle(title: string | null, params?: any): this;
|
|
150
154
|
withDataProvider(dataProvider: IEditorDataProvider<T, any>): this;
|
|
151
155
|
withServiceType<S>(serviceType: Type<S>): this;
|
|
@@ -158,6 +162,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
158
162
|
withEditorAction(action: ActionDescriptor<T>): this;
|
|
159
163
|
withEditorActions(actions: ActionDescriptor<T>[]): this;
|
|
160
164
|
withEditorComponent(editorComponent: Type<any>): this;
|
|
165
|
+
withResubmit(enabled?: boolean, refetch?: boolean): this;
|
|
161
166
|
}
|
|
162
167
|
export declare class ActionEditorSubmitDescriptor<T> extends ActionDescriptor<T> {
|
|
163
168
|
private readonly _editorAction;
|
|
@@ -3,6 +3,8 @@ import { AbstractControl } from '@angular/forms';
|
|
|
3
3
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { MediusQueryParam, MediusQueryResult } from '../../api/models';
|
|
6
|
+
import { AMngFormlyCustomFieldComponent } from '../../components/form/formly/fields/';
|
|
7
|
+
import { MngFormlyFieldConfig, MngFormlyHookFn } from '../../components/form/formly/models';
|
|
6
8
|
import { MngFormFieldEvent, MngFormFieldEventData, MngFormFieldEventTypeEnum } from '../../components/form/models';
|
|
7
9
|
import { FieldActionContext } from '../../components/form/models/field-action-context.model';
|
|
8
10
|
import { ILookupDataProvider, ITableDataProvider } from '../../data-providers';
|
|
@@ -40,6 +42,13 @@ export declare abstract class AFieldDescriptor<T, ET, VT = T> extends AGenericFi
|
|
|
40
42
|
protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
41
43
|
protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
42
44
|
protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
45
|
+
protected _updateOn: 'change' | 'blur' | 'submit';
|
|
46
|
+
protected _onInit?: MngFormlyHookFn;
|
|
47
|
+
protected _onChanges?: MngFormlyHookFn;
|
|
48
|
+
protected _afterContentInit?: MngFormlyHookFn;
|
|
49
|
+
protected _afterViewInit?: MngFormlyHookFn;
|
|
50
|
+
protected _onDestroy?: MngFormlyHookFn;
|
|
51
|
+
protected _onValueChange?: (field: MngFormlyFieldConfig, value: any) => void;
|
|
43
52
|
protected _className: string;
|
|
44
53
|
protected _fieldClassName?: string;
|
|
45
54
|
protected _labelClassName: string;
|
|
@@ -70,6 +79,13 @@ export declare abstract class AFieldDescriptor<T, ET, VT = T> extends AGenericFi
|
|
|
70
79
|
get hiddenExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
71
80
|
[additionalProperties: string]: any;
|
|
72
81
|
}> | undefined) => boolean) | undefined;
|
|
82
|
+
get updateOn(): "change" | "blur" | "submit";
|
|
83
|
+
get onInit(): MngFormlyHookFn | undefined;
|
|
84
|
+
get onChanges(): MngFormlyHookFn | undefined;
|
|
85
|
+
get afterContentInit(): MngFormlyHookFn | undefined;
|
|
86
|
+
get afterViewInit(): MngFormlyHookFn | undefined;
|
|
87
|
+
get onDestroy(): MngFormlyHookFn | undefined;
|
|
88
|
+
get onValueChange(): ((field: MngFormlyFieldConfig<import("../../components/form/formly/models").MngFormlyFieldProps>, value: any) => void) | undefined;
|
|
73
89
|
get className(): string;
|
|
74
90
|
get fieldClassName(): string | undefined;
|
|
75
91
|
get labelClassName(): string;
|
|
@@ -86,6 +102,13 @@ export declare abstract class AFieldDescriptor<T, ET, VT = T> extends AGenericFi
|
|
|
86
102
|
withRequired(required?: boolean, requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>, hideLabelMarker?: boolean): this;
|
|
87
103
|
withDisabled(disabled?: boolean, disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
|
|
88
104
|
withHidden(hiddenExpression: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
|
|
105
|
+
withUpdateOn(updateOn: 'change' | 'blur' | 'submit'): this;
|
|
106
|
+
withOnInit(onInit?: MngFormlyHookFn): this;
|
|
107
|
+
withOnChanges(onChanges?: MngFormlyHookFn): this;
|
|
108
|
+
withAfterContentInit(afterContentInit?: MngFormlyHookFn): this;
|
|
109
|
+
withAfterViewInit(afterViewInit?: MngFormlyHookFn): this;
|
|
110
|
+
withOnDestroy(onDestroy?: MngFormlyHookFn): this;
|
|
111
|
+
withOnValueChange(onValueChange?: (field: MngFormlyFieldConfig, value: any) => void): this;
|
|
89
112
|
withDefaultValue(defaultValue: VT): this;
|
|
90
113
|
withGetter(getter: (item: ET) => VT): this;
|
|
91
114
|
withSetter(setter: (item: ET, value: VT) => void): this;
|
|
@@ -135,6 +158,8 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
135
158
|
private _imagePreview;
|
|
136
159
|
private _imageUrlInputHiddenOnDisabled;
|
|
137
160
|
private _customComponentName?;
|
|
161
|
+
private _customComponentType?;
|
|
162
|
+
private _customComponentWrappers;
|
|
138
163
|
constructor(editor: EditorDescriptor<ET>, property: string);
|
|
139
164
|
/**
|
|
140
165
|
* converts field to given type with additional arguments
|
|
@@ -169,6 +194,8 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
169
194
|
get imagePreview(): boolean;
|
|
170
195
|
get imageUrlInputVisibleOnDisabled(): boolean;
|
|
171
196
|
get customComponentName(): string | undefined;
|
|
197
|
+
get customComponentType(): Type<AMngFormlyCustomFieldComponent> | undefined;
|
|
198
|
+
get customComponentWrappers(): string[];
|
|
172
199
|
get locale(): string | undefined;
|
|
173
200
|
get currency(): string | undefined;
|
|
174
201
|
get currencyFromProperty(): string | undefined;
|
|
@@ -187,7 +214,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
187
214
|
asFile(multiple?: boolean, maxFileSize?: number, accept?: string): this;
|
|
188
215
|
asImageFile(multiple?: boolean, maxFileSize?: number, accept?: string): this;
|
|
189
216
|
asImageUrl(multiple?: boolean, preview?: boolean, inputVisibleOnDisabled?: boolean): this;
|
|
190
|
-
asCustomComponent(
|
|
217
|
+
asCustomComponent(customComponent: string | Type<AMngFormlyCustomFieldComponent>, useWrappers?: string[]): this;
|
|
191
218
|
withNumberValidation(min?: number, max?: number, step?: number, autoCorrect?: boolean): this;
|
|
192
219
|
withLocale(locale: string): this;
|
|
193
220
|
withNumberFractions(min?: number, max?: number): this;
|
|
@@ -20,6 +20,9 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
20
20
|
private _getter?;
|
|
21
21
|
private _isMultiline;
|
|
22
22
|
private _hasValueAsTooltip;
|
|
23
|
+
private _isReorderable;
|
|
24
|
+
private _isToggleable;
|
|
25
|
+
private _isVisible;
|
|
23
26
|
private _headerClassName;
|
|
24
27
|
private _className;
|
|
25
28
|
private _width;
|
|
@@ -74,6 +77,9 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
74
77
|
get getter(): ((item: TT, value?: T | null | undefined) => unknown) | undefined;
|
|
75
78
|
get isMultiline(): boolean;
|
|
76
79
|
get hasValueAsTooltip(): boolean;
|
|
80
|
+
get isReorderable(): boolean;
|
|
81
|
+
get isToggleable(): boolean;
|
|
82
|
+
get isVisible(): boolean;
|
|
77
83
|
get isLocalized(): boolean;
|
|
78
84
|
get localizationExistsProperty(): string | undefined;
|
|
79
85
|
/**
|
|
@@ -104,6 +110,8 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
104
110
|
withGetter(getter?: (item: TT, value?: T | null) => unknown): this;
|
|
105
111
|
withMultiline(isMultiline?: boolean): this;
|
|
106
112
|
withValueAsTooltip(valueAsTooltip?: boolean): this;
|
|
113
|
+
withReorderable(isReorderable?: boolean): this;
|
|
114
|
+
withToggleable(isToggleable?: boolean, isVisible?: boolean): this;
|
|
107
115
|
localized(existsProperty?: string): this;
|
|
108
116
|
copy(): ColumnDescriptor<T, TT>;
|
|
109
117
|
protected copyFieldsTo(obj: ColumnDescriptor<T, TT>): void;
|
|
@@ -91,6 +91,8 @@ export declare class TableDescriptor<T> {
|
|
|
91
91
|
withTitle(title: string): this;
|
|
92
92
|
withHideHeader(hideHeader?: boolean): this;
|
|
93
93
|
withDataKeyProperty(property: string): this;
|
|
94
|
+
withColumnsReorderable(columnsReorderable?: boolean): this;
|
|
95
|
+
withColumnsToggleable(columnsToggleable?: boolean): this;
|
|
94
96
|
withDefaultSort(property: string, asc?: boolean): this;
|
|
95
97
|
withClassName(className: string): this;
|
|
96
98
|
withSize(size?: TableSizeEnum): this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
3
3
|
import { MngModuleConfig } from './models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
@@ -82,21 +82,22 @@ import * as i77 from "./components/form/formly/fields/formly-field-table-dialog-
|
|
|
82
82
|
import * as i78 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
83
83
|
import * as i79 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
84
84
|
import * as i80 from "./components/form/formly/fields/formly-field-action/formly-field-action.component";
|
|
85
|
-
import * as i81 from "./components/
|
|
86
|
-
import * as i82 from "./components/tableview/
|
|
87
|
-
import * as i83 from "./components/tableview/
|
|
88
|
-
import * as i84 from "./components/tableview/table/column-
|
|
89
|
-
import * as i85 from "./components/tableview/
|
|
90
|
-
import * as i86 from "./components/
|
|
91
|
-
import * as i87 from "./components/
|
|
92
|
-
import * as i88 from "./components/action/
|
|
93
|
-
import * as i89 from "./components/action/
|
|
94
|
-
import * as i90 from "./components/
|
|
95
|
-
import * as i91 from "./components/pages/
|
|
96
|
-
|
|
85
|
+
import * as i81 from "./components/form/formly/fields/formly-field-custom/formly-field-custom.component";
|
|
86
|
+
import * as i82 from "./components/tableview/table/table.component";
|
|
87
|
+
import * as i83 from "./components/tableview/tableview.component";
|
|
88
|
+
import * as i84 from "./components/tableview/table/column-value/column-value.component";
|
|
89
|
+
import * as i85 from "./components/tableview/table/column-filter/column-filter.component";
|
|
90
|
+
import * as i86 from "./components/tableview/route/tableview-route.component";
|
|
91
|
+
import * as i87 from "./components/form/editor/form-editor.component";
|
|
92
|
+
import * as i88 from "./components/action/action.component";
|
|
93
|
+
import * as i89 from "./components/action/editor/action-editor.component";
|
|
94
|
+
import * as i90 from "./components/action/localization/data-language-dropdown.component";
|
|
95
|
+
import * as i91 from "./components/pages/error/error-page.component";
|
|
96
|
+
import * as i92 from "./components/pages/not-found/not-found-page.component";
|
|
97
|
+
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
97
98
|
export declare class MngCommonsModule {
|
|
98
99
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
99
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
100
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.
|
|
101
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngFormlyFieldCustomComponent, typeof i82.MngTableComponent, typeof i83.MngTableviewComponent, typeof i84.MngTableColumnValueComponent, typeof i85.MngTableColumnFilterComponent, typeof i86.MngTableviewRouteComponent, typeof i87.MngFormEditorComponent, typeof i88.MngActionComponent, typeof i89.MngActionEditorComponent, typeof i90.MngDataLanguageDropdownComponent, typeof i91.MngErrorPageComponent, typeof i92.MngNotFoundPageComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngFormlyFieldCustomComponent, typeof i82.MngTableComponent, typeof i83.MngTableviewComponent, typeof i84.MngTableColumnValueComponent, typeof i85.MngTableColumnFilterComponent, typeof i86.MngTableviewRouteComponent, typeof i87.MngFormEditorComponent, typeof i88.MngActionComponent, typeof i89.MngActionEditorComponent, typeof i90.MngDataLanguageDropdownComponent, typeof i91.MngErrorPageComponent, typeof i92.MngNotFoundPageComponent]>;
|
|
101
102
|
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
102
103
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MessageService } from 'primeng/api';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MediusQueryParam } from '../api/models';
|
|
4
|
+
import { ActionInstance } from '../components/action/models';
|
|
4
5
|
import { IDataProvider } from '../data-providers';
|
|
5
6
|
import { ActionDescriptor } from '../descriptors/action';
|
|
6
7
|
export interface IViewContainer<T, S> {
|
|
@@ -18,6 +19,11 @@ export interface IViewContainerEditor<T, S> extends IViewContainer<T, S> {
|
|
|
18
19
|
getEditorClose$(): Observable<ViewContainerEditorCloseEvent<T>>;
|
|
19
20
|
closeEditor(event?: ViewContainerEditorCloseEvent<T>): void;
|
|
20
21
|
}
|
|
22
|
+
export interface IViewActionRouteTriggeredContainer<T, S> {
|
|
23
|
+
getActionRouteTriggeredInstance(): ActionInstance<T, S> | undefined;
|
|
24
|
+
setActionRouteTriggeredInstance(instance: ActionInstance<T, S>): void;
|
|
25
|
+
unsetActionRouteTriggeredInstance(): void;
|
|
26
|
+
}
|
|
21
27
|
export interface ViewContainerTableReloadEvent {
|
|
22
28
|
emitEvent?: boolean;
|
|
23
29
|
resetParams?: boolean;
|