@mediusinc/mng-commons 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/action/action.component.mjs +8 -8
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
- package/esm2020/lib/components/button/button.component.mjs +46 -0
- package/esm2020/lib/components/button/index.mjs +2 -0
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +8 -3
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +3 -2
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +10 -13
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +27 -11
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +5 -3
- package/esm2020/lib/data-providers/index.mjs +2 -1
- package/esm2020/lib/data-providers/tableview-crud.data-provider.mjs +24 -0
- package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +106 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +53 -154
- package/esm2020/lib/descriptors/button.descriptor.mjs +111 -0
- package/esm2020/lib/descriptors/column.descriptor.mjs +17 -1
- package/esm2020/lib/descriptors/field.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/index.mjs +3 -1
- package/esm2020/lib/mng-commons.module.mjs +24 -9
- package/esm2020/lib/pipes/getter.pipe.mjs +20 -0
- package/esm2020/lib/pipes/index.mjs +4 -2
- package/esm2020/lib/pipes/json-path.pipe.mjs +1 -2
- package/esm2020/lib/pipes/parametrize.pipe.mjs +85 -0
- package/esm2020/lib/pipes/template.pipe.mjs +24 -0
- package/esm2020/lib/services/action-executor.service.mjs +34 -23
- package/esm2020/lib/styles/button-style.builder.mjs +59 -8
- package/esm2020/lib/styles/styles.util.mjs +2 -2
- package/esm2020/lib/utils/string.util.mjs +4 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/mediusinc-mng-commons.mjs +627 -266
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +628 -262
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +16 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/form/dropdown/dropdown.component.d.ts +2 -0
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -0
- package/lib/data-providers/index.d.ts +1 -0
- package/lib/data-providers/tableview-crud.data-provider.d.ts +8 -0
- package/lib/descriptors/action/action-confirmation.descriptor.d.ts +48 -0
- package/lib/descriptors/action.descriptor.d.ts +26 -83
- package/lib/descriptors/button.descriptor.d.ts +40 -0
- package/lib/descriptors/column.descriptor.d.ts +6 -0
- package/lib/descriptors/field.descriptor.d.ts +9 -9
- package/lib/descriptors/index.d.ts +2 -0
- package/lib/mng-commons.module.d.ts +74 -71
- package/lib/pipes/getter.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +3 -1
- package/lib/pipes/parametrize.pipe.d.ts +13 -0
- package/lib/pipes/template.pipe.d.ts +10 -0
- package/lib/services/action-executor.service.d.ts +3 -3
- package/lib/styles/button-style.builder.d.ts +43 -2
- package/package.json +3 -3
- package/public-api.d.ts +1 -0
- package/version-info.json +5 -5
- package/esm2020/lib/pipes/link-formatter.pipe.mjs +0 -39
- package/lib/pipes/link-formatter.pipe.d.ts +0 -11
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ButtonDescriptor } from '../../descriptors';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngButtonComponent implements OnInit {
|
|
5
|
+
descriptor: ButtonDescriptor;
|
|
6
|
+
clickEmitter: EventEmitter<Event>;
|
|
7
|
+
focusEmitter: EventEmitter<Event>;
|
|
8
|
+
blurEmitter: EventEmitter<Event>;
|
|
9
|
+
buttonClass: string;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
onClick(event: Event): void;
|
|
12
|
+
onFocus(event: Event): void;
|
|
13
|
+
onBlur(event: Event): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngButtonComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngButtonComponent, "mng-button", never, { "descriptor": "descriptor"; }, { "clickEmitter": "buttonClick"; "focusEmitter": "buttonFocus"; "blurEmitter": "buttonBlur"; }, never, never, false>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button.component';
|
|
@@ -24,6 +24,8 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
24
24
|
className: string | null;
|
|
25
25
|
dropdownClassName: string | null;
|
|
26
26
|
changeValueOnBlur: boolean;
|
|
27
|
+
private loadingSubject;
|
|
28
|
+
$loading: Observable<boolean>;
|
|
27
29
|
valueChangeEventEmitter: EventEmitter<any>;
|
|
28
30
|
primeDropdown?: Dropdown;
|
|
29
31
|
itemsLabelProperty?: string;
|
|
@@ -15,6 +15,7 @@ export declare abstract class AMngTableviewRouteComponent<T, S> implements OnIni
|
|
|
15
15
|
protected createActionDescriptorForEdit(descriptor?: EditorDescriptor<T>): ActionEditorEditDescriptor<T>;
|
|
16
16
|
protected createActionDescriptorForDelete(descriptor?: ModelDescriptor<T>): ActionDeleteDescriptor<T>;
|
|
17
17
|
protected createActionDescriptorForExport(descriptor?: ModelDescriptor<T>): ActionDescriptor<T>;
|
|
18
|
+
protected createActionDescriptorForRefresh(descriptor?: ModelDescriptor<T>): ActionDescriptor<T>;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AMngTableviewRouteComponent<any, any>, never>;
|
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AMngTableviewRouteComponent<any, any>, never, never, {}, {}, never, never, false>;
|
|
20
21
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { MediusQueryResult } from '../api/models';
|
|
3
|
+
import { IMngCrudApiService, IMngGetAllApiService } from '../api/services';
|
|
4
|
+
import { ClassType } from '../types';
|
|
5
|
+
import { TableviewDataProvider } from './tableview.data-provider';
|
|
6
|
+
export declare class TableviewCrudDataProvider<T, S extends IMngCrudApiService<T> & IMngGetAllApiService<MediusQueryResult<T>>> extends TableviewDataProvider<T, S> {
|
|
7
|
+
constructor(modelType: ClassType<T>, serviceType?: Type<S>, idPropertyName?: string, useGetAllForFetch?: boolean);
|
|
8
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Confirmation } from 'primeng/api';
|
|
2
|
+
import { ActionContext } from '../../components/action/models';
|
|
3
|
+
import { ButtonStyleBuilder } from '../../styles';
|
|
4
|
+
export declare class ActionConfirmationDialogDescriptor<T> {
|
|
5
|
+
private _icon?;
|
|
6
|
+
private _title?;
|
|
7
|
+
private _message?;
|
|
8
|
+
private _acceptButtonStyle;
|
|
9
|
+
private _acceptLabel?;
|
|
10
|
+
private _acceptIcon;
|
|
11
|
+
private _rejectButtonStyle;
|
|
12
|
+
private _rejectLabel?;
|
|
13
|
+
private _rejectIcon;
|
|
14
|
+
private _closeOnEscape;
|
|
15
|
+
private _closable;
|
|
16
|
+
private _runConfirmationConfigMapFn?;
|
|
17
|
+
constructor();
|
|
18
|
+
withIcon(icon?: string): this;
|
|
19
|
+
withTitle(title?: string | null): this;
|
|
20
|
+
withMessage(message?: string | null): this;
|
|
21
|
+
withAcceptLabel(acceptLabel?: string | null): this;
|
|
22
|
+
withAcceptIcon(acceptIcon: string | null): this;
|
|
23
|
+
withAcceptButtonStyle(buttonStyle: ButtonStyleBuilder): this;
|
|
24
|
+
withRejectLabel(rejectLabel?: string | null): this;
|
|
25
|
+
withRejectIcon(rejectIcon: string | null): this;
|
|
26
|
+
withRejectButtonStyle(buttonStyle: ButtonStyleBuilder): this;
|
|
27
|
+
/**
|
|
28
|
+
* set if dialog can be closed on escaped pressed
|
|
29
|
+
* if true, then closable is also set to true
|
|
30
|
+
* @param closeOnEscape
|
|
31
|
+
*/
|
|
32
|
+
withCloseOnEscape(closeOnEscape: boolean): this;
|
|
33
|
+
withClosable(closable: boolean): this;
|
|
34
|
+
withRunConfirmationConfigMapFn(runConfirmationConfigMapFn?: ConfigurationConfigMapFn<T>): this;
|
|
35
|
+
get icon(): string | undefined;
|
|
36
|
+
get title(): string | null | undefined;
|
|
37
|
+
get message(): string | null | undefined;
|
|
38
|
+
get acceptLabel(): string | null | undefined;
|
|
39
|
+
get acceptIcon(): string | null;
|
|
40
|
+
get acceptButtonStyle(): ButtonStyleBuilder;
|
|
41
|
+
get rejectLabel(): string | null | undefined;
|
|
42
|
+
get rejectIcon(): string | null;
|
|
43
|
+
get rejectButtonStyle(): ButtonStyleBuilder;
|
|
44
|
+
get closeOnEscape(): boolean;
|
|
45
|
+
get closable(): boolean;
|
|
46
|
+
get runConfirmationConfigMapFn(): ConfigurationConfigMapFn<T> | undefined;
|
|
47
|
+
}
|
|
48
|
+
export declare type ConfigurationConfigMapFn<T> = (ctx: ActionContext<T, any>, confirmConfig: Confirmation) => Confirmation;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Params, QueryParamsHandling } from '@angular/router';
|
|
3
|
-
import { Confirmation } from 'primeng/api';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { ActionContext, ActionContextValidation } from '../components/action/models';
|
|
6
5
|
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
7
6
|
import { APermissions } from '../security/model';
|
|
8
|
-
import { ButtonStyleBuilder } from '../styles';
|
|
9
7
|
import { ClassType, IdType } from '../types';
|
|
10
|
-
import { EditorDescriptor, ModelDescriptor } from './';
|
|
11
|
-
import {
|
|
8
|
+
import { ButtonDescriptor, EditorDescriptor, ModelDescriptor } from './';
|
|
9
|
+
import { ActionConfirmationDialogDescriptor } from './action/action-confirmation.descriptor';
|
|
10
|
+
import { ActionActivationTriggerEnum, ActionEditorDialogSizeEnum, ActionEditorSubmitTypeEnum, ActionLevelEnum, ActionPositionEnum, ActionTypeEnum } from './types';
|
|
12
11
|
export declare class ActionDescriptor<T> {
|
|
13
12
|
protected readonly _model: ModelDescriptor<T> | null;
|
|
14
13
|
protected readonly _actionName: string;
|
|
@@ -22,21 +21,11 @@ export declare class ActionDescriptor<T> {
|
|
|
22
21
|
protected _position: ActionPositionEnum;
|
|
23
22
|
protected _level: ActionLevelEnum;
|
|
24
23
|
protected _routeUrl: string | null;
|
|
25
|
-
protected _title?: string | null;
|
|
26
|
-
protected _icon?: string | null;
|
|
27
|
-
protected _tooltip?: string | null;
|
|
28
|
-
protected _buttonStyle: ButtonStyleBuilder;
|
|
29
24
|
protected _dataProvider?: IDataProvider<T, any>;
|
|
30
25
|
protected _runFunction?: (ctx: ActionContext<T, any>) => Observable<T | undefined | null>;
|
|
31
26
|
protected _isVisibleFunction?: (ctx: ActionContextValidation<T, any>) => Observable<boolean>;
|
|
32
27
|
protected _isEnabledFunction?: (ctx: ActionContextValidation<T, any>) => Observable<boolean>;
|
|
33
|
-
protected
|
|
34
|
-
protected _runConfirmationIcon?: string;
|
|
35
|
-
protected _runConfirmationTitle?: string;
|
|
36
|
-
protected _runConfirmationMessage?: string;
|
|
37
|
-
protected _runConfirmationAcceptTitle?: string;
|
|
38
|
-
protected _runConfirmationRejectTitle?: string;
|
|
39
|
-
protected _runConfirmationConfigMapFn?: (ctx: ActionContext<T, any>, confirmConfig: Confirmation) => Confirmation;
|
|
28
|
+
protected _runConfirmationDialogDescriptor?: ActionConfirmationDialogDescriptor<T>;
|
|
40
29
|
protected _hasRunNotificationSuccess: boolean;
|
|
41
30
|
protected _runNotificationSuccessTitle?: string;
|
|
42
31
|
protected _runNotificationSuccessMessage?: string;
|
|
@@ -47,6 +36,7 @@ export declare class ActionDescriptor<T> {
|
|
|
47
36
|
protected _onRunErrorAction?: ActionDescriptor<unknown>;
|
|
48
37
|
protected _permissions?: APermissions;
|
|
49
38
|
protected _permissionsRouteType?: string;
|
|
39
|
+
protected _buttonDescriptor: ButtonDescriptor;
|
|
50
40
|
constructor(model: ModelDescriptor<T> | null, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
51
41
|
get model(): ModelDescriptor<T> | null;
|
|
52
42
|
get parentTypeName(): string | undefined;
|
|
@@ -57,9 +47,6 @@ export declare class ActionDescriptor<T> {
|
|
|
57
47
|
get position(): ActionPositionEnum;
|
|
58
48
|
get level(): ActionLevelEnum;
|
|
59
49
|
get routeUrl(): string | null;
|
|
60
|
-
get title(): string | null | undefined;
|
|
61
|
-
get icon(): string | null | undefined;
|
|
62
|
-
get tooltip(): string | null | undefined;
|
|
63
50
|
get dataProvider(): IDataProvider<T, any> | undefined;
|
|
64
51
|
get hasRunFunction(): boolean;
|
|
65
52
|
get runFunction(): (ctx: ActionContext<T, any>) => Observable<T | undefined | null>;
|
|
@@ -67,50 +54,9 @@ export declare class ActionDescriptor<T> {
|
|
|
67
54
|
get isEnabledFunction(): ((ctx: ActionContextValidation<T, any>) => Observable<boolean>) | undefined;
|
|
68
55
|
get actionName(): string;
|
|
69
56
|
get actionNameLong(): string;
|
|
70
|
-
get buttonStyle(): ButtonStyleBuilder;
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated use _buttonStyle instead
|
|
73
|
-
*/
|
|
74
57
|
get className(): string | undefined;
|
|
75
|
-
|
|
76
|
-
* @deprecated use _buttonStyle instead
|
|
77
|
-
*/
|
|
78
|
-
get isStyleText(): boolean;
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated use _buttonStyle instead
|
|
81
|
-
*/
|
|
82
|
-
get isStyleOutlined(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated use _buttonStyle instead
|
|
85
|
-
*/
|
|
86
|
-
get isStyleRaised(): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated use _buttonStyle instead
|
|
89
|
-
*/
|
|
90
|
-
get size(): ActionSizeEnum;
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated use _buttonStyle instead
|
|
93
|
-
*/
|
|
94
|
-
get isSizeExtraSmall(): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated use _buttonStyle instead
|
|
97
|
-
*/
|
|
98
|
-
get isSizeSmall(): boolean;
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated use _buttonStyle instead
|
|
101
|
-
*/
|
|
102
|
-
get isSizeLarge(): boolean;
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated use _buttonStyle instead
|
|
105
|
-
*/
|
|
106
|
-
get isSizeExtraLarge(): boolean;
|
|
58
|
+
get runConfirmationDialogDescriptor(): ActionConfirmationDialogDescriptor<T> | undefined;
|
|
107
59
|
get hasRunConfirmation(): boolean;
|
|
108
|
-
get runConfirmationIcon(): string | undefined;
|
|
109
|
-
get runConfirmationTitle(): string | undefined;
|
|
110
|
-
get runConfirmationMessage(): string | undefined;
|
|
111
|
-
get runConfirmationAcceptTitle(): string | undefined;
|
|
112
|
-
get runConfirmationRejectTitle(): string | undefined;
|
|
113
|
-
get runConfirmationConfigMapFn(): ((ctx: ActionContext<T, any>, confirmConfig: Confirmation) => Confirmation) | undefined;
|
|
114
60
|
get hasRunNotificationSuccess(): boolean;
|
|
115
61
|
get runNotificationSuccessTitle(): string | undefined;
|
|
116
62
|
get runNotificationSuccessMessage(): string | undefined;
|
|
@@ -121,45 +67,30 @@ export declare class ActionDescriptor<T> {
|
|
|
121
67
|
get onRunErrorAction(): ActionDescriptor<unknown> | undefined;
|
|
122
68
|
get permissions(): APermissions | undefined;
|
|
123
69
|
get permissionsRouteType(): string | undefined;
|
|
70
|
+
get buttonDescriptor(): ButtonDescriptor;
|
|
124
71
|
withDataProvider(dataProvider: IDataProvider<T, any>): this;
|
|
125
72
|
withServiceType<S>(serviceType: Type<S>): this;
|
|
126
73
|
withRunFunction<S>(fn: (ctx: ActionContext<T, S>) => Observable<T | undefined | null>): this;
|
|
127
74
|
withIsVisibleFunction<S>(fn: (ctx: ActionContextValidation<T, S>) => Observable<boolean>): this;
|
|
128
75
|
withIsEnabledFunction<S>(fn: (ctx: ActionContextValidation<T, S>) => Observable<boolean>): this;
|
|
129
76
|
withRouteTrigger(routeUrl: string): this;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Overrides default title key with model action key (${model.typeName}.actions.${actionName}). Not relevant if parentType name is provided.
|
|
133
|
-
*/
|
|
134
|
-
withModelTitle(): this;
|
|
77
|
+
withPosition(position: ActionPositionEnum): this;
|
|
135
78
|
/**
|
|
136
|
-
*
|
|
137
|
-
* @param title Title i18n key or title.
|
|
79
|
+
* creates confirmation action with default style based on action descriptor
|
|
138
80
|
*/
|
|
139
|
-
|
|
140
|
-
withIcon(icon: string | null): this;
|
|
141
|
-
withTooltip(tooltip: string | null): this;
|
|
142
|
-
withClassName(className: string): this;
|
|
143
|
-
withSize(size?: ActionSizeEnum): this;
|
|
144
|
-
withStyle(styleText?: boolean, styleOutlined?: boolean, styleRaised?: boolean): this;
|
|
145
|
-
withPosition(position: ActionPositionEnum): this;
|
|
81
|
+
withRunConfirmation(): ActionConfirmationDialogDescriptor<T>;
|
|
146
82
|
/**
|
|
147
|
-
* Add a
|
|
148
|
-
* @param
|
|
149
|
-
* @param title the title of the confirmation dialogue
|
|
150
|
-
* @param message the message on the confirmation dialogue
|
|
151
|
-
* @param acceptTitle the title of the accepting button
|
|
152
|
-
* @param rejectTitle the title of the rejecting button
|
|
153
|
-
* @param runConfirmationConfigMapFn function used to generate the confirmation dialogue. **WARNING** changing the *accept* and *reject* methods of the *confirmConfig* parameter
|
|
154
|
-
* may lead to unexpected behaviour
|
|
83
|
+
* Add a configuration dialogue to action using ActionConfigurationDescriptor
|
|
84
|
+
* @param confirmationDescriptor descriptor with customizable information for dialog
|
|
155
85
|
*/
|
|
156
|
-
|
|
86
|
+
withRunConfirmationDescriptor(runConfirmationDialogDescriptor: ActionConfirmationDialogDescriptor<T>): this;
|
|
157
87
|
withRunNotificationSuccess(title?: string, message?: string, hasNotification?: boolean): this;
|
|
158
88
|
withRunNotificationError(title?: string, message?: string, hasNotification?: boolean): this;
|
|
159
89
|
withAfterRunAction<RT>(action: ActionDescriptor<RT>): this;
|
|
160
90
|
withOnRunErrorAction<RT>(action: ActionDescriptor<RT>): this;
|
|
161
91
|
withPermissions(permissions: APermissions): this;
|
|
162
92
|
withPermissionsRouteType(permissionsRouteType: string): this;
|
|
93
|
+
withButtonDescriptor(buttonDescriptor: ButtonDescriptor): this;
|
|
163
94
|
}
|
|
164
95
|
export declare class ActionSimpleDescriptor<T> extends ActionDescriptor<T> {
|
|
165
96
|
constructor(actionName: string, modelType?: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
@@ -208,6 +139,18 @@ export declare class ActionEditorSubmitDescriptor<T> extends ActionDescriptor<T>
|
|
|
208
139
|
private readonly _editorAction;
|
|
209
140
|
private readonly _submitType;
|
|
210
141
|
constructor(editorAction: ActionEditorDescriptor<T>, submitType?: ActionEditorSubmitTypeEnum);
|
|
142
|
+
/**
|
|
143
|
+
* creates primary action with primary button style
|
|
144
|
+
* @param editorAction
|
|
145
|
+
* @param submitType
|
|
146
|
+
*/
|
|
147
|
+
static forPrimary<T>(editorAction: ActionEditorDescriptor<T>, submitType?: ActionEditorSubmitTypeEnum): ActionEditorSubmitDescriptor<T>;
|
|
148
|
+
/**
|
|
149
|
+
* creates secondary button with text button style
|
|
150
|
+
* @param editorAction
|
|
151
|
+
* @param submitType
|
|
152
|
+
*/
|
|
153
|
+
static forSecondary<T>(editorAction: ActionEditorDescriptor<T>, submitType?: ActionEditorSubmitTypeEnum): ActionEditorSubmitDescriptor<T>;
|
|
211
154
|
get submitType(): ActionEditorSubmitTypeEnum;
|
|
212
155
|
}
|
|
213
156
|
export declare class ActionEditorDetailsDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ButtonStyleBuilder } from '../styles';
|
|
2
|
+
export declare class ButtonDescriptor {
|
|
3
|
+
private _label?;
|
|
4
|
+
private _disabled;
|
|
5
|
+
private _icon?;
|
|
6
|
+
private _iconPosition;
|
|
7
|
+
private _styleClass;
|
|
8
|
+
private _onClick?;
|
|
9
|
+
private _onFocus?;
|
|
10
|
+
private _onBlur?;
|
|
11
|
+
private _loading;
|
|
12
|
+
private _loadingIcon;
|
|
13
|
+
private _badge?;
|
|
14
|
+
private _tooltip?;
|
|
15
|
+
withLabel(label?: string | null): this;
|
|
16
|
+
withDisabled(disabled?: boolean): this;
|
|
17
|
+
withIcon(icon: string | null): this;
|
|
18
|
+
withIconPosition(iconPosition: 'left' | 'right'): this;
|
|
19
|
+
withStyleClass(style: ButtonStyleBuilder): this;
|
|
20
|
+
withOnClick(onClick: (event: Event) => unknown): this;
|
|
21
|
+
withOnFocus(onFocus: (event: Event) => unknown): this;
|
|
22
|
+
withOnBlur(onBlur: (event: Event) => unknown): this;
|
|
23
|
+
withLoading(loading?: boolean): this;
|
|
24
|
+
withLoadingIcon(loadingIcon: string): this;
|
|
25
|
+
withBadge(badge: string): this;
|
|
26
|
+
withTooltip(tooltip: string): this;
|
|
27
|
+
get label(): string | null | undefined;
|
|
28
|
+
get disabled(): boolean;
|
|
29
|
+
get icon(): string | null | undefined;
|
|
30
|
+
get iconPosition(): "left" | "right";
|
|
31
|
+
get styleClass(): ButtonStyleBuilder;
|
|
32
|
+
get onClick(): ((event: Event) => unknown) | undefined;
|
|
33
|
+
get onFocus(): ((event: Event) => unknown) | undefined;
|
|
34
|
+
get onBlur(): ((event: Event) => unknown) | undefined;
|
|
35
|
+
get loading(): boolean;
|
|
36
|
+
get loadingIcon(): string;
|
|
37
|
+
get badge(): string | undefined;
|
|
38
|
+
get tooltip(): string | undefined;
|
|
39
|
+
copy(): ButtonDescriptor;
|
|
40
|
+
}
|
|
@@ -14,6 +14,8 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
14
14
|
private _filterDescriptor?;
|
|
15
15
|
private _displayFormat?;
|
|
16
16
|
private _locale?;
|
|
17
|
+
private _template?;
|
|
18
|
+
private _getter?;
|
|
17
19
|
private _headerClassName;
|
|
18
20
|
private _className;
|
|
19
21
|
private _width;
|
|
@@ -60,6 +62,8 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
60
62
|
get currencyDisplay(): "symbol" | "code" | "name" | undefined;
|
|
61
63
|
get currencyFromProperty(): string | undefined;
|
|
62
64
|
get hasCopyToClipboard(): boolean;
|
|
65
|
+
get template(): string | undefined;
|
|
66
|
+
get getter(): ((item: any) => any) | undefined;
|
|
63
67
|
asType(type?: ColumnTypeEnum): this;
|
|
64
68
|
asNumber(displayFormat?: string, locale?: string): this;
|
|
65
69
|
asCurrency(currencyCode?: string, currencyFromProperty?: string, currencyDisplay?: 'symbol' | 'code' | 'name', displayFormat?: string, locale?: string): this;
|
|
@@ -78,5 +82,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
78
82
|
withSort(isEnabled?: boolean): this;
|
|
79
83
|
withDefaultSort(asc?: boolean): this;
|
|
80
84
|
withCopyToClipboard(hasCopyToCliboard?: boolean): this;
|
|
85
|
+
withTemplate(template: string): this;
|
|
86
|
+
withGetter(getter?: (item: any) => any): this;
|
|
81
87
|
copy(): ColumnDescriptor<T, TT>;
|
|
82
88
|
}
|
|
@@ -32,9 +32,9 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
32
32
|
protected _setter?: (item: ET, value: T) => void;
|
|
33
33
|
protected _validations: Array<FieldValidationDescriptor>;
|
|
34
34
|
protected _asyncValidations: Array<FieldValidationDescriptor>;
|
|
35
|
-
protected _requiredExpression?: string | ((
|
|
36
|
-
protected _disabledExpression?: string | ((
|
|
37
|
-
protected _hiddenExpression?: string | ((
|
|
35
|
+
protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
36
|
+
protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
37
|
+
protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
38
38
|
protected _className: string;
|
|
39
39
|
protected _fieldClassName?: string;
|
|
40
40
|
protected _labelClassName: string;
|
|
@@ -55,13 +55,13 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
55
55
|
get setter(): ((item: ET, value: T) => void) | undefined;
|
|
56
56
|
get validations(): FieldValidationDescriptor[];
|
|
57
57
|
get asyncValidations(): FieldValidationDescriptor[];
|
|
58
|
-
get requiredExpression(): string | Observable<boolean> | ((
|
|
58
|
+
get requiredExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
59
59
|
[additionalProperties: string]: any;
|
|
60
60
|
}> | undefined) => boolean) | undefined;
|
|
61
|
-
get disabledExpression(): string | Observable<boolean> | ((
|
|
61
|
+
get disabledExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
62
62
|
[additionalProperties: string]: any;
|
|
63
63
|
}> | undefined) => boolean) | undefined;
|
|
64
|
-
get hiddenExpression(): string | Observable<boolean> | ((
|
|
64
|
+
get hiddenExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
65
65
|
[additionalProperties: string]: any;
|
|
66
66
|
}> | undefined) => boolean) | undefined;
|
|
67
67
|
get className(): string;
|
|
@@ -75,9 +75,9 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
75
75
|
withLabel(label: string | null): this;
|
|
76
76
|
withPlaceholder(placeholder: string): this;
|
|
77
77
|
withHelpText(helpText: string): this;
|
|
78
|
-
withRequired(required?: boolean, requiredExpression?: string | ((
|
|
79
|
-
withDisabled(disabled?: boolean, disabledExpression?: string | ((
|
|
80
|
-
withHidden(hiddenExpression: string | ((
|
|
78
|
+
withRequired(required?: boolean, requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>, hideLabelMarker?: boolean): this;
|
|
79
|
+
withDisabled(disabled?: boolean, disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
|
|
80
|
+
withHidden(hiddenExpression: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
|
|
81
81
|
withDefaultValue(defaultValue: T): this;
|
|
82
82
|
withGetter(getter: (item: ET) => T): this;
|
|
83
83
|
withSetter(setter: (item: ET, value: T) => void): this;
|
|
@@ -8,80 +8,83 @@ import * as i3 from "./pipes/json-path.pipe";
|
|
|
8
8
|
import * as i4 from "./pipes/enum.pipe";
|
|
9
9
|
import * as i5 from "./pipes/boolean.pipe";
|
|
10
10
|
import * as i6 from "./pipes/i18n-property.pipe";
|
|
11
|
-
import * as i7 from "./pipes/
|
|
12
|
-
import * as i8 from "./
|
|
13
|
-
import * as i9 from "./
|
|
14
|
-
import * as i10 from "./components/layout/
|
|
15
|
-
import * as i11 from "./components/layout/
|
|
16
|
-
import * as i12 from "./components/layout/
|
|
17
|
-
import * as i13 from "./components/layout/
|
|
18
|
-
import * as i14 from "./components/layout/
|
|
19
|
-
import * as i15 from "./components/
|
|
20
|
-
import * as i16 from "./components/
|
|
21
|
-
import * as i17 from "./components/form/
|
|
22
|
-
import * as i18 from "./components/form/
|
|
23
|
-
import * as i19 from "./components/form/formly/
|
|
24
|
-
import * as i20 from "./components/form/formly/
|
|
25
|
-
import * as i21 from "./components/form/formly/fields/formly-field-
|
|
26
|
-
import * as i22 from "./components/form/formly/fields/formly-field-
|
|
27
|
-
import * as i23 from "./components/form/formly/fields/formly-field-
|
|
28
|
-
import * as i24 from "./components/form/formly/fields/formly-field-
|
|
29
|
-
import * as i25 from "./components/form/formly/fields/formly-field-
|
|
30
|
-
import * as i26 from "./components/form/formly/fields/formly-field-
|
|
31
|
-
import * as i27 from "./components/form/formly/fields/formly-field-
|
|
32
|
-
import * as i28 from "./components/
|
|
33
|
-
import * as i29 from "./components/
|
|
34
|
-
import * as i30 from "./components/tableview/table/
|
|
35
|
-
import * as i31 from "./components/tableview/
|
|
36
|
-
import * as i32 from "./components/tableview/
|
|
37
|
-
import * as i33 from "./components/
|
|
38
|
-
import * as i34 from "./components/
|
|
39
|
-
import * as i35 from "./components/
|
|
40
|
-
import * as i36 from "./components/action/
|
|
41
|
-
import * as i37 from "
|
|
42
|
-
import * as i38 from "
|
|
43
|
-
import * as i39 from "
|
|
44
|
-
import * as i40 from "@angular/
|
|
45
|
-
import * as i41 from "@
|
|
46
|
-
import * as i42 from "@
|
|
47
|
-
import * as i43 from "
|
|
48
|
-
import * as i44 from "
|
|
49
|
-
import * as i45 from "
|
|
50
|
-
import * as i46 from "primeng/
|
|
51
|
-
import * as i47 from "primeng/
|
|
52
|
-
import * as i48 from "primeng/
|
|
53
|
-
import * as i49 from "primeng/
|
|
54
|
-
import * as i50 from "primeng/
|
|
55
|
-
import * as i51 from "primeng/
|
|
56
|
-
import * as i52 from "primeng/
|
|
57
|
-
import * as i53 from "primeng/
|
|
58
|
-
import * as i54 from "primeng/
|
|
59
|
-
import * as i55 from "primeng/
|
|
60
|
-
import * as i56 from "primeng/
|
|
61
|
-
import * as i57 from "primeng/
|
|
62
|
-
import * as i58 from "primeng/
|
|
63
|
-
import * as i59 from "primeng/
|
|
64
|
-
import * as i60 from "primeng/
|
|
65
|
-
import * as i61 from "primeng/
|
|
66
|
-
import * as i62 from "primeng/
|
|
67
|
-
import * as i63 from "primeng/
|
|
68
|
-
import * as i64 from "primeng/
|
|
69
|
-
import * as i65 from "primeng/
|
|
70
|
-
import * as i66 from "primeng/
|
|
71
|
-
import * as i67 from "primeng/
|
|
72
|
-
import * as i68 from "primeng/
|
|
73
|
-
import * as i69 from "primeng/
|
|
74
|
-
import * as i70 from "primeng/
|
|
75
|
-
import * as i71 from "primeng/
|
|
76
|
-
import * as i72 from "primeng/
|
|
77
|
-
import * as i73 from "primeng/
|
|
78
|
-
import * as i74 from "primeng/
|
|
79
|
-
import * as i75 from "primeng/
|
|
80
|
-
import * as i76 from "primeng/
|
|
11
|
+
import * as i7 from "./pipes/parametrize.pipe";
|
|
12
|
+
import * as i8 from "./pipes/getter.pipe";
|
|
13
|
+
import * as i9 from "./pipes/template.pipe";
|
|
14
|
+
import * as i10 from "./components/layout/breadcrumb.component";
|
|
15
|
+
import * as i11 from "./components/layout/footer.component";
|
|
16
|
+
import * as i12 from "./components/layout/main-layout.component";
|
|
17
|
+
import * as i13 from "./components/layout/menu.component";
|
|
18
|
+
import * as i14 from "./components/layout/menu-item.component";
|
|
19
|
+
import * as i15 from "./components/layout/topbar.component";
|
|
20
|
+
import * as i16 from "./components/layout/version.component";
|
|
21
|
+
import * as i17 from "./components/form/autocomplete/autocomplete.component";
|
|
22
|
+
import * as i18 from "./components/form/dropdown/dropdown.component";
|
|
23
|
+
import * as i19 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
|
|
24
|
+
import * as i20 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
|
|
25
|
+
import * as i21 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
|
|
26
|
+
import * as i22 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
|
|
27
|
+
import * as i23 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
|
|
28
|
+
import * as i24 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
|
|
29
|
+
import * as i25 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
|
|
30
|
+
import * as i26 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
|
|
31
|
+
import * as i27 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
|
|
32
|
+
import * as i28 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
33
|
+
import * as i29 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
34
|
+
import * as i30 from "./components/tableview/table/table.component";
|
|
35
|
+
import * as i31 from "./components/tableview/tableview.component";
|
|
36
|
+
import * as i32 from "./components/tableview/table/column-value/column-value.component";
|
|
37
|
+
import * as i33 from "./components/tableview/table/column-filter/column-filter.component";
|
|
38
|
+
import * as i34 from "./components/tableview/route/tableview-route.component";
|
|
39
|
+
import * as i35 from "./components/form/editor/form-editor.component";
|
|
40
|
+
import * as i36 from "./components/action/action.component";
|
|
41
|
+
import * as i37 from "./components/action/editor/action-editor.component";
|
|
42
|
+
import * as i38 from "./components/action/route/action-route.component";
|
|
43
|
+
import * as i39 from "./components/button/button.component";
|
|
44
|
+
import * as i40 from "@angular/common";
|
|
45
|
+
import * as i41 from "@angular/router";
|
|
46
|
+
import * as i42 from "@angular/common/http";
|
|
47
|
+
import * as i43 from "@angular/forms";
|
|
48
|
+
import * as i44 from "@ngx-translate/core";
|
|
49
|
+
import * as i45 from "@ngx-formly/core";
|
|
50
|
+
import * as i46 from "primeng/autocomplete";
|
|
51
|
+
import * as i47 from "primeng/breadcrumb";
|
|
52
|
+
import * as i48 from "primeng/button";
|
|
53
|
+
import * as i49 from "primeng/calendar";
|
|
54
|
+
import * as i50 from "primeng/card";
|
|
55
|
+
import * as i51 from "primeng/checkbox";
|
|
56
|
+
import * as i52 from "primeng/chip";
|
|
57
|
+
import * as i53 from "primeng/confirmdialog";
|
|
58
|
+
import * as i54 from "primeng/confirmpopup";
|
|
59
|
+
import * as i55 from "primeng/dialog";
|
|
60
|
+
import * as i56 from "primeng/dynamicdialog";
|
|
61
|
+
import * as i57 from "primeng/dropdown";
|
|
62
|
+
import * as i58 from "primeng/fileupload";
|
|
63
|
+
import * as i59 from "primeng/inputnumber";
|
|
64
|
+
import * as i60 from "primeng/inputmask";
|
|
65
|
+
import * as i61 from "primeng/inputswitch";
|
|
66
|
+
import * as i62 from "primeng/inputtext";
|
|
67
|
+
import * as i63 from "primeng/inputtextarea";
|
|
68
|
+
import * as i64 from "primeng/paginator";
|
|
69
|
+
import * as i65 from "primeng/radiobutton";
|
|
70
|
+
import * as i66 from "primeng/ripple";
|
|
71
|
+
import * as i67 from "primeng/selectbutton";
|
|
72
|
+
import * as i68 from "primeng/table";
|
|
73
|
+
import * as i69 from "primeng/tag";
|
|
74
|
+
import * as i70 from "primeng/toast";
|
|
75
|
+
import * as i71 from "primeng/togglebutton";
|
|
76
|
+
import * as i72 from "primeng/toolbar";
|
|
77
|
+
import * as i73 from "primeng/tooltip";
|
|
78
|
+
import * as i74 from "primeng/messages";
|
|
79
|
+
import * as i75 from "primeng/progressspinner";
|
|
80
|
+
import * as i76 from "primeng/tabview";
|
|
81
|
+
import * as i77 from "primeng/fieldset";
|
|
82
|
+
import * as i78 from "primeng/multiselect";
|
|
83
|
+
import * as i79 from "primeng/skeleton";
|
|
81
84
|
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
82
85
|
export declare class MngCommonsModule {
|
|
83
86
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
84
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
85
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.
|
|
88
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngBreadcrumbComponent, typeof i11.MngFooterComponent, typeof i12.MngMainLayoutComponent, typeof i13.MngMenuComponent, typeof i14.MngMenuItemComponent, typeof i15.MngTopbarComponent, typeof i16.MngVersionComponent, typeof i17.MngAutocompleteComponent, typeof i18.MngDropdownComponent, typeof i19.MngFormlyFieldWrapperComponent, typeof i20.MngFormlyTableWrapperComponent, typeof i21.MngFormlyFieldInputComponent, typeof i22.MngFormlyFieldLabelComponent, typeof i23.MngFormlyFieldDropdownComponent, typeof i24.MngFormlyFieldAutocompleteComponent, typeof i25.MngFormlyFieldLookupDialogComponent, typeof i26.MngFormlyFieldTableDialogMultiselectComponent, typeof i27.MngFormlyFieldTableDialogFormComponent, typeof i28.MngFormlyFieldTabsComponent, typeof i29.MngFormlyFieldFieldsetComponent, typeof i30.MngTableComponent, typeof i31.MngTableviewComponent, typeof i32.MngTableColumnValueComponent, typeof i33.MngTableColumnFilterComponent, typeof i34.MngTableviewRouteComponent, typeof i35.MngFormEditorComponent, typeof i36.MngActionComponent, typeof i37.MngActionEditorComponent, typeof i38.MngActionRouteComponent, typeof i39.MngButtonComponent], [typeof i40.CommonModule, typeof i41.RouterModule, typeof i42.HttpClientModule, typeof i43.ReactiveFormsModule, typeof i44.TranslateModule, typeof i45.FormlyModule, typeof i46.AutoCompleteModule, typeof i47.BreadcrumbModule, typeof i48.ButtonModule, typeof i49.CalendarModule, typeof i50.CardModule, typeof i51.CheckboxModule, typeof i52.ChipModule, typeof i53.ConfirmDialogModule, typeof i54.ConfirmPopupModule, typeof i55.DialogModule, typeof i56.DynamicDialogModule, typeof i57.DropdownModule, typeof i58.FileUploadModule, typeof i59.InputNumberModule, typeof i60.InputMaskModule, typeof i61.InputSwitchModule, typeof i62.InputTextModule, typeof i63.InputTextareaModule, typeof i64.PaginatorModule, typeof i65.RadioButtonModule, typeof i66.RippleModule, typeof i67.SelectButtonModule, typeof i68.TableModule, typeof i69.TagModule, typeof i70.ToastModule, typeof i71.ToggleButtonModule, typeof i72.ToolbarModule, typeof i73.TooltipModule, typeof i74.MessagesModule, typeof i75.ProgressSpinnerModule, typeof i76.TabViewModule, typeof i77.FieldsetModule, typeof i78.MultiSelectModule, typeof i79.SkeletonModule], [typeof i46.AutoCompleteModule, typeof i47.BreadcrumbModule, typeof i48.ButtonModule, typeof i49.CalendarModule, typeof i50.CardModule, typeof i51.CheckboxModule, typeof i52.ChipModule, typeof i53.ConfirmDialogModule, typeof i54.ConfirmPopupModule, typeof i55.DialogModule, typeof i56.DynamicDialogModule, typeof i57.DropdownModule, typeof i58.FileUploadModule, typeof i59.InputNumberModule, typeof i60.InputMaskModule, typeof i61.InputSwitchModule, typeof i62.InputTextModule, typeof i63.InputTextareaModule, typeof i64.PaginatorModule, typeof i65.RadioButtonModule, typeof i66.RippleModule, typeof i67.SelectButtonModule, typeof i68.TableModule, typeof i69.TagModule, typeof i70.ToastModule, typeof i71.ToggleButtonModule, typeof i72.ToolbarModule, typeof i73.TooltipModule, typeof i74.MessagesModule, typeof i75.ProgressSpinnerModule, typeof i76.TabViewModule, typeof i77.FieldsetModule, typeof i78.MultiSelectModule, typeof i79.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngBreadcrumbComponent, typeof i11.MngFooterComponent, typeof i12.MngMainLayoutComponent, typeof i13.MngMenuComponent, typeof i14.MngMenuItemComponent, typeof i15.MngTopbarComponent, typeof i16.MngVersionComponent, typeof i17.MngAutocompleteComponent, typeof i18.MngDropdownComponent, typeof i19.MngFormlyFieldWrapperComponent, typeof i20.MngFormlyTableWrapperComponent, typeof i21.MngFormlyFieldInputComponent, typeof i22.MngFormlyFieldLabelComponent, typeof i23.MngFormlyFieldDropdownComponent, typeof i24.MngFormlyFieldAutocompleteComponent, typeof i25.MngFormlyFieldLookupDialogComponent, typeof i26.MngFormlyFieldTableDialogMultiselectComponent, typeof i27.MngFormlyFieldTableDialogFormComponent, typeof i28.MngFormlyFieldTabsComponent, typeof i29.MngFormlyFieldFieldsetComponent, typeof i30.MngTableComponent, typeof i31.MngTableviewComponent, typeof i32.MngTableColumnValueComponent, typeof i33.MngTableColumnFilterComponent, typeof i34.MngTableviewRouteComponent, typeof i35.MngFormEditorComponent, typeof i36.MngActionComponent, typeof i37.MngActionEditorComponent, typeof i38.MngActionRouteComponent, typeof i39.MngButtonComponent]>;
|
|
86
89
|
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
87
90
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngGetterPipe implements PipeTransform {
|
|
4
|
+
transform(value: unknown, getterFunction?: (item: any) => any): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngGetterPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngGetterPipe, "getter", false>;
|
|
7
|
+
}
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './boolean.pipe';
|
|
2
2
|
export * from './enum.pipe';
|
|
3
3
|
export * from './i18n-property.pipe';
|
|
4
|
-
export * from './link-formatter.pipe';
|
|
5
4
|
export * from './json-path.pipe';
|
|
5
|
+
export * from './parametrize.pipe';
|
|
6
|
+
export * from './getter.pipe';
|
|
7
|
+
export * from './template.pipe';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ActionData } from '../components/action/models';
|
|
3
|
+
import { IdType } from '../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MngParametrizePipe implements PipeTransform {
|
|
6
|
+
private jsonPath;
|
|
7
|
+
transform(value: unknown, itemId?: IdType, item?: any, actionData?: ActionData): any;
|
|
8
|
+
private transformString;
|
|
9
|
+
private parametrizeStringAsUrl;
|
|
10
|
+
private parametrizeString;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngParametrizePipe, never>;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngParametrizePipe, "parametrize", false>;
|
|
13
|
+
}
|