@mediusinc/mng-commons 0.2.20 → 0.2.21
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 +13 -12
- package/assets/i18n/sl.json +13 -12
- package/esm2020/lib/api/utils/object-serializer.util.mjs +7 -2
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +2 -2
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +5 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +1 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +57 -21
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +1 -1
- package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +2 -2
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +1 -1
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +3 -3
- package/esm2020/lib/components/tableview/table/table.component.mjs +7 -3
- package/esm2020/lib/components/tableview/tableview.component.mjs +3 -3
- package/esm2020/lib/descriptors/action.descriptor.mjs +6 -1
- package/esm2020/lib/descriptors/editor.descriptor.mjs +66 -14
- package/esm2020/lib/descriptors/table.descriptor.mjs +21 -4
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +7 -6
- package/esm2020/lib/models/enum.model.mjs +1 -1
- package/esm2020/lib/pipes/boolean.pipe.mjs +8 -3
- package/esm2020/lib/services/action-executor.service.mjs +4 -3
- package/esm2020/lib/utils/model.util.mjs +9 -7
- package/fesm2015/mediusinc-mng-commons.mjs +190 -61
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +190 -61
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/form/dropdown/dropdown.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +8 -2
- package/lib/components/tableview/table/table.component.d.ts +2 -1
- package/lib/descriptors/action.descriptor.d.ts +2 -1
- package/lib/descriptors/editor.descriptor.d.ts +29 -8
- package/lib/descriptors/table.descriptor.d.ts +8 -2
- package/lib/descriptors/tableview.descriptor.d.ts +1 -1
- package/lib/models/enum.model.d.ts +1 -0
- package/lib/pipes/boolean.pipe.d.ts +1 -1
- package/lib/services/action-executor.service.d.ts +3 -2
- package/lib/utils/model.util.d.ts +1 -1
- package/package.json +1 -1
- package/scss/mng-overrides/_layout_dialog.scss +0 -7
- package/scss/mng-overrides/_theme_dialog.scss +3 -1
- package/scss/mng-overrides/_theme_tableview.scss +10 -10
|
@@ -11,6 +11,7 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
11
11
|
dataKeyProperty?: string;
|
|
12
12
|
itemsLabelProperty?: string;
|
|
13
13
|
itemsValueProperty?: string;
|
|
14
|
+
itemsDisabledProperty?: string;
|
|
14
15
|
multiselect: boolean;
|
|
15
16
|
placeholder?: string;
|
|
16
17
|
showClear: boolean;
|
|
@@ -34,5 +35,5 @@ export declare class MngDropdownComponent implements OnInit, OnDestroy, ControlV
|
|
|
34
35
|
setDisabledState(isDisabled: boolean): void;
|
|
35
36
|
writeValue(obj: any): void;
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "selectFirstItem": "selectFirstItem"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "itemsDisabledProperty": "itemsDisabledProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "selectFirstItem": "selectFirstItem"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never>;
|
|
38
39
|
}
|
|
@@ -2,18 +2,24 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { ActionDescriptor, FieldManyEditorDescriptor } from '../../../../../descriptors';
|
|
5
|
+
import { MngActionExecutorService } from '../../../../../services';
|
|
6
|
+
import { MngTableCellClickEvent } from '../../../../tableview/models';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
|
|
9
|
+
private actionExecutor;
|
|
7
10
|
descriptor: FieldManyEditorDescriptor<T, ET>;
|
|
8
11
|
itemsSubject: Subject<Array<T>>;
|
|
9
12
|
items$: Observable<Array<T>>;
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
toolbarRightActions: Array<ActionDescriptor<T>>;
|
|
14
|
+
rowClickActions: Array<ActionDescriptor<T>>;
|
|
15
|
+
rowInlineActions: Array<ActionDescriptor<T>>;
|
|
12
16
|
private subscriptions;
|
|
13
17
|
private isDisabledSubject;
|
|
14
18
|
private isEnabled$;
|
|
19
|
+
constructor(actionExecutor: MngActionExecutorService);
|
|
15
20
|
ngOnInit(): void;
|
|
16
21
|
ngOnDestroy(): void;
|
|
22
|
+
onTableCellClick(event: MngTableCellClickEvent<T>): void;
|
|
17
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, never>;
|
|
18
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never>;
|
|
19
25
|
}
|
|
@@ -28,6 +28,7 @@ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit
|
|
|
28
28
|
useQueryParams: boolean;
|
|
29
29
|
selectionMode: string;
|
|
30
30
|
selectionEnabled: boolean;
|
|
31
|
+
isColumnClickable: boolean;
|
|
31
32
|
captionComponent?: Type<any>;
|
|
32
33
|
columnActionComponent?: Type<any>;
|
|
33
34
|
loadEventEmitter: EventEmitter<MngTableLoadEvent>;
|
|
@@ -85,5 +86,5 @@ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit
|
|
|
85
86
|
private updatePrimeSortAndFilter;
|
|
86
87
|
private getDefaultSortMeta;
|
|
87
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, { optional: true; }]>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "isColumnClickable": "isColumnClickable"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never>;
|
|
89
90
|
}
|
|
@@ -110,7 +110,7 @@ export declare namespace ActionDescriptor {
|
|
|
110
110
|
}
|
|
111
111
|
export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
112
112
|
private readonly _editorDescriptor;
|
|
113
|
-
|
|
113
|
+
protected _editorActions: ActionDescriptor<T>[];
|
|
114
114
|
protected _editorTitle?: string | null;
|
|
115
115
|
protected _hasFetchNotificationSuccess: boolean;
|
|
116
116
|
protected _fetchNotificationSuccessTitle?: string;
|
|
@@ -139,6 +139,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
139
139
|
withSubmitFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
140
140
|
withFetchNotificationError(title?: string, message?: string, hasNotification?: boolean): this;
|
|
141
141
|
withEditorAction(action: ActionDescriptor<T>): this;
|
|
142
|
+
withEditorActions(actions: ActionDescriptor<T>[]): this;
|
|
142
143
|
withEditorComponent(editorComponent: Type<any>): this;
|
|
143
144
|
}
|
|
144
145
|
export declare class ActionEditorSubmitDescriptor<T> extends ActionDescriptor<T> {
|
|
@@ -7,22 +7,24 @@ import { MngFormFieldEvent, MngFormFieldEventData, MngFormFieldEventTypeEnum } f
|
|
|
7
7
|
import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
|
|
8
8
|
import { EnumValue } from '../models';
|
|
9
9
|
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
10
|
-
import { FieldValidator, ILookupDescriptor, ModelDescriptor, TableDescriptor, TableviewDescriptor } from './';
|
|
10
|
+
import { ActionDescriptor, FieldValidator, ILookupDescriptor, ModelDescriptor, TableDescriptor, TableviewDescriptor } from './';
|
|
11
11
|
import { FieldConfig, FieldLookupConfig } from './editor.descriptor.interface';
|
|
12
12
|
export declare class EditorDescriptor<T> {
|
|
13
13
|
static readonly defaultGroupName = "_default";
|
|
14
14
|
private readonly _model;
|
|
15
|
+
private readonly _tableviewEditorType;
|
|
15
16
|
private readonly _tabs;
|
|
16
17
|
private readonly _groups;
|
|
17
18
|
private readonly _fields;
|
|
18
19
|
private _currentTabGroup?;
|
|
19
20
|
private _currentGroup?;
|
|
20
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
21
21
|
private _disabled;
|
|
22
|
-
|
|
22
|
+
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableviewEditorType?: EditorDescriptor.TableviewEditorTypeEnum);
|
|
23
23
|
get model(): ModelDescriptor<T>;
|
|
24
24
|
get tabs(): FieldTabGroupDescriptor<T>[];
|
|
25
25
|
get fields(): AFieldDescriptor<any, T>[];
|
|
26
|
+
get tableviewEditorType(): boolean;
|
|
27
|
+
get disabled(): boolean;
|
|
26
28
|
createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
|
|
27
29
|
createFieldGroup(name: string, title?: string | null): FieldGroupDescriptor<T>;
|
|
28
30
|
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
@@ -41,6 +43,14 @@ export declare class EditorDescriptor<T> {
|
|
|
41
43
|
private createDefaultGroup;
|
|
42
44
|
private createDefaultTabGroup;
|
|
43
45
|
}
|
|
46
|
+
export declare namespace EditorDescriptor {
|
|
47
|
+
enum TableviewEditorTypeEnum {
|
|
48
|
+
None = 0,
|
|
49
|
+
View = 1,
|
|
50
|
+
Edit = 2,
|
|
51
|
+
Add = 3
|
|
52
|
+
}
|
|
53
|
+
}
|
|
44
54
|
export declare abstract class AGenericFieldDescriptor<ET> {
|
|
45
55
|
protected readonly _editor: EditorDescriptor<ET>;
|
|
46
56
|
protected _config: FieldConfig;
|
|
@@ -184,6 +194,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
|
|
|
184
194
|
protected _lookupType: FieldLookupDescriptor.LookupTypeEnum;
|
|
185
195
|
protected _itemsLabelProperty?: string;
|
|
186
196
|
protected _itemsValueProperty?: string;
|
|
197
|
+
protected _itemsDisabledProperty?: string;
|
|
187
198
|
protected _dataKeyProperty?: string;
|
|
188
199
|
protected _dataProvider?: ILookupDataProvider<T, any>;
|
|
189
200
|
protected _lookupTableDescriptor?: TableDescriptor<T>;
|
|
@@ -192,6 +203,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
|
|
|
192
203
|
get lookupType(): FieldLookupDescriptor.LookupTypeEnum;
|
|
193
204
|
get itemsLabelProperty(): string | undefined;
|
|
194
205
|
get itemsValueProperty(): string | undefined;
|
|
206
|
+
get itemsDisabledProperty(): string | undefined;
|
|
195
207
|
get dataKeyProperty(): string | undefined;
|
|
196
208
|
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
197
209
|
get lookupTableDataProvider(): ITableDataProvider<T, any> | undefined;
|
|
@@ -199,6 +211,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
|
|
|
199
211
|
get lookupTableDescriptor(): TableDescriptor<T> | undefined;
|
|
200
212
|
withItemsLabelProperty(itemsLabelProperty: string): this;
|
|
201
213
|
withItemsValueProperty(itemsValueProperty: string): this;
|
|
214
|
+
withItemsDisabledProperty(itemsDisabledProperty: string): this;
|
|
202
215
|
withDataKeyProperty(property: string): this;
|
|
203
216
|
withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
204
217
|
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
@@ -216,8 +229,11 @@ export declare namespace FieldLookupDescriptor {
|
|
|
216
229
|
}
|
|
217
230
|
export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumValue<string | number>, ET> {
|
|
218
231
|
private readonly _enumType;
|
|
232
|
+
private readonly _optionEnumValues;
|
|
233
|
+
private readonly _nameAsValue;
|
|
219
234
|
constructor(editor: EditorDescriptor<ET>, property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
|
|
220
235
|
get enumType(): EnumType;
|
|
236
|
+
withDisabledOptions(...disabledOptions: Array<EnumConstantType>): this;
|
|
221
237
|
copy(): FieldLookupEnumDescriptor<ET>;
|
|
222
238
|
}
|
|
223
239
|
export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
|
|
@@ -258,16 +274,20 @@ export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T
|
|
|
258
274
|
private readonly _modelType;
|
|
259
275
|
private readonly _tableviewDescriptor;
|
|
260
276
|
private _fieldType;
|
|
277
|
+
private _fieldActions;
|
|
261
278
|
private _actions;
|
|
262
279
|
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, tableviewDescriptor: TableviewDescriptor<T>);
|
|
263
280
|
get fieldType(): FieldManyEditorDescriptor.TypeEnum;
|
|
264
|
-
get
|
|
281
|
+
get fieldActions(): FieldManyEditorDescriptor.ActionEnum[];
|
|
282
|
+
get actions(): ActionDescriptor<T>[];
|
|
265
283
|
get tableviewDescriptor(): TableviewDescriptor<T>;
|
|
266
284
|
get tableDescriptor(): TableDescriptor<T>;
|
|
267
285
|
get editorForCreate(): EditorDescriptor<T>;
|
|
268
286
|
get editorForRead(): EditorDescriptor<T>;
|
|
269
287
|
get editorForUpdate(): EditorDescriptor<T>;
|
|
270
|
-
|
|
288
|
+
withFieldAction(action: FieldManyEditorDescriptor.ActionEnum): this;
|
|
289
|
+
withFieldActions(actions: FieldManyEditorDescriptor.ActionEnum[]): this;
|
|
290
|
+
withAction(action: ActionDescriptor<T>): this;
|
|
271
291
|
copy(): FieldManyEditorDescriptor<T, ET>;
|
|
272
292
|
}
|
|
273
293
|
export declare namespace FieldManyEditorDescriptor {
|
|
@@ -275,9 +295,10 @@ export declare namespace FieldManyEditorDescriptor {
|
|
|
275
295
|
DialogEditor = 0
|
|
276
296
|
}
|
|
277
297
|
enum ActionEnum {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
298
|
+
View = 0,
|
|
299
|
+
Add = 1,
|
|
300
|
+
Edit = 2,
|
|
301
|
+
Delete = 3
|
|
281
302
|
}
|
|
282
303
|
}
|
|
283
304
|
export declare abstract class AFieldGroupDescriptor<ET> extends AGenericFieldDescriptor<ET> {
|
|
@@ -36,7 +36,7 @@ export declare class TableDescriptor<T> {
|
|
|
36
36
|
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
37
37
|
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
38
38
|
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
39
|
-
addColumnBoolean(property: string): ColumnDescriptor<boolean, T>;
|
|
39
|
+
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
40
40
|
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<boolean, T>;
|
|
41
41
|
addColumnObject<CT>(property: string, modelType: ClassType<CT>, displayProperty: string): ColumnDescriptor<CT, T>;
|
|
42
42
|
withFilterDisplay(filterDisplayType: TableDescriptor.FilterDisplayEnum): this;
|
|
@@ -73,6 +73,9 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
73
73
|
private _enumType?;
|
|
74
74
|
private _enumTitlePath?;
|
|
75
75
|
private _enumNameAsValue;
|
|
76
|
+
private _booleanAsIcon;
|
|
77
|
+
private _booleanYes?;
|
|
78
|
+
private _booleanNo?;
|
|
76
79
|
constructor(table: TableDescriptor<TT>, property: string);
|
|
77
80
|
get modelType(): ClassType<T> | null;
|
|
78
81
|
get columnType(): ColumnDescriptor.TypeEnum;
|
|
@@ -86,10 +89,13 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
86
89
|
get enumType(): EnumType | undefined;
|
|
87
90
|
get enumTitlePath(): string | null | undefined;
|
|
88
91
|
get enumNameAsValue(): boolean;
|
|
92
|
+
get booleanAsIcon(): boolean;
|
|
93
|
+
get booleanYes(): string | undefined;
|
|
94
|
+
get booleanNo(): string | undefined;
|
|
89
95
|
asType(type?: ColumnDescriptor.TypeEnum): this;
|
|
90
96
|
asNumber(displayFormat?: string): this;
|
|
91
97
|
asDate(displayFormat?: string): this;
|
|
92
|
-
asBoolean(): this;
|
|
98
|
+
asBoolean(yes?: string, no?: string, asIcon?: boolean): this;
|
|
93
99
|
asEnum(enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): this;
|
|
94
100
|
withModelType(modelType: ClassType<T>): this;
|
|
95
101
|
withTitle(title: string): this;
|
|
@@ -25,7 +25,7 @@ export declare class TableviewDescriptor<T> {
|
|
|
25
25
|
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
26
26
|
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
27
27
|
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
28
|
-
addColumnBoolean(property: string): ColumnDescriptor<boolean, T>;
|
|
28
|
+
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
29
29
|
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<boolean, T>;
|
|
30
30
|
addColumnObject<CT>(property: string, modelType: ClassType<CT>, displayProperty: string): ColumnDescriptor<CT, T>;
|
|
31
31
|
createTabGroup(name: string, title?: string): this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MngBooleanPipe implements PipeTransform {
|
|
4
|
-
transform(value: any): any;
|
|
4
|
+
transform(value: any, yes?: string, no?: string, icon?: boolean): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngBooleanPipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean">;
|
|
7
7
|
}
|
|
@@ -41,13 +41,14 @@ export declare class MngActionExecutorService {
|
|
|
41
41
|
* Runs editor action fetch function.
|
|
42
42
|
*
|
|
43
43
|
* @param action Action descriptor.
|
|
44
|
+
* @param item Item instance (if exists).
|
|
44
45
|
* @param itemId Item id.
|
|
45
46
|
* @param dataProvider Data provider
|
|
46
47
|
* @param sourceComponent Source component from where the fetch function was called.
|
|
47
48
|
* @param viewContainer View container/service. Tableview component.
|
|
48
49
|
* @param actionData Additional action data.
|
|
49
50
|
*/
|
|
50
|
-
runEditorFetch<T, S>(action: ActionEditorDescriptor<T>, itemId?: IdType, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, viewContainer?: IViewContainer<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
|
|
51
|
+
runEditorFetch<T, S>(action: ActionEditorDescriptor<T>, item?: T, itemId?: IdType, dataProvider?: IEditorDataProvider<T, S>, sourceComponent?: any, viewContainer?: IViewContainer<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IEditorDataProvider<T, S>>>;
|
|
51
52
|
/**
|
|
52
53
|
* Prepares action exec context for action of type editor.
|
|
53
54
|
*
|
|
@@ -83,7 +84,7 @@ export declare class MngActionExecutorService {
|
|
|
83
84
|
* @param event Target table click event.
|
|
84
85
|
* @param route Currently activate route.
|
|
85
86
|
*/
|
|
86
|
-
triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route
|
|
87
|
+
triggerRowClickAction<T>(action: ActionDescriptor<T>, event: MngTableCellClickEvent<T>, route?: ActivatedRoute): Observable<ActionTriggerResult<T, unknown, IDataProvider<T, unknown>>>;
|
|
87
88
|
/**
|
|
88
89
|
* Triggers action with optional data (item, itemId, ...) and currently activated route.
|
|
89
90
|
*
|
|
@@ -3,5 +3,5 @@ import { ClassType } from '../types';
|
|
|
3
3
|
export declare class ModelUtil {
|
|
4
4
|
static findIdAttribute<T>(classType: ClassType<T>): string | null;
|
|
5
5
|
static findTitleAttribute<T>(classType: ClassType<T>): string | null;
|
|
6
|
-
static trySetLookupItemsProperties<T>(lookup: ILookupDescriptor<T
|
|
6
|
+
static trySetLookupItemsProperties<T>(lookup: ILookupDescriptor<T>, idAsDataKey?: boolean): void;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
.p-dialog {
|
|
2
|
-
&.mng-details-dynamic-dialog
|
|
2
|
+
&.mng-details-dynamic-dialog,
|
|
3
|
+
&.mng-formly-field-table-multiselect-dialog,
|
|
4
|
+
&.mng-formly-field-table-form-dialog {
|
|
3
5
|
.p-dialog-content {
|
|
4
6
|
border-bottom-left-radius: $dialogBorderRadius;
|
|
5
7
|
border-bottom-right-radius: $dialogBorderRadius;
|
|
@@ -34,16 +34,6 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.p-datatable:not(.p-datatable-gridlines) {
|
|
38
|
-
.p-datatable-tbody > tr > td {
|
|
39
|
-
cursor: auto;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.p-datatable-tbody > tr > td.clickable {
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
37
|
/* Responsive */
|
|
48
38
|
.p-datatable-tbody > tr > td .p-column-title {
|
|
49
39
|
display: none;
|
|
@@ -92,3 +82,13 @@
|
|
|
92
82
|
}
|
|
93
83
|
}
|
|
94
84
|
}
|
|
85
|
+
|
|
86
|
+
.p-datatable:not(.p-datatable-gridlines) {
|
|
87
|
+
.p-datatable-tbody > tr > td {
|
|
88
|
+
cursor: auto;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.p-datatable-tbody > tr > td.clickable {
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
}
|