@mediusinc/mng-commons 0.3.1 → 0.4.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.
Files changed (90) hide show
  1. package/esm2020/lib/api/models/builders/query-param.builder.mjs +7 -2
  2. package/esm2020/lib/api/services/api.abstract.service.mjs +21 -10
  3. package/esm2020/lib/api/utils/object-serializer.util.mjs +7 -1
  4. package/esm2020/lib/components/action/action.component.mjs +28 -6
  5. package/esm2020/lib/components/action/editor/action-editor.component.mjs +7 -6
  6. package/esm2020/lib/components/action/models/action-execution.model.mjs +1 -1
  7. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +186 -32
  8. package/esm2020/lib/components/form/editor/form-editor.component.mjs +3 -3
  9. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +1 -1
  10. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +3 -3
  11. package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +8 -8
  12. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +4 -6
  13. package/esm2020/lib/components/layout/main-layout.component.mjs +1 -1
  14. package/esm2020/lib/components/layout/topbar.component.mjs +1 -1
  15. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +17 -5
  16. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +1 -1
  17. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +9 -23
  18. package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +21 -7
  19. package/esm2020/lib/components/tableview/table/table.component.mjs +5 -5
  20. package/esm2020/lib/components/tableview/tableview.component.mjs +3 -3
  21. package/esm2020/lib/descriptors/action.descriptor.mjs +87 -4
  22. package/esm2020/lib/descriptors/column.descriptor.mjs +197 -0
  23. package/esm2020/lib/descriptors/editor.descriptor.mjs +3 -734
  24. package/esm2020/lib/descriptors/field.descriptor.interface.mjs +2 -0
  25. package/esm2020/lib/descriptors/field.descriptor.mjs +755 -0
  26. package/esm2020/lib/descriptors/filter.descriptor.mjs +237 -0
  27. package/esm2020/lib/descriptors/index.mjs +5 -1
  28. package/esm2020/lib/descriptors/table.descriptor.mjs +4 -385
  29. package/esm2020/lib/descriptors/tableview.descriptor.mjs +3 -3
  30. package/esm2020/lib/directives/component.directive.mjs +18 -2
  31. package/esm2020/lib/mng-commons.module.mjs +9 -5
  32. package/esm2020/lib/models/column-value.model.mjs +2 -0
  33. package/esm2020/lib/models/error.model.mjs +1 -1
  34. package/esm2020/lib/models/index.mjs +2 -1
  35. package/esm2020/lib/pipes/index.mjs +3 -2
  36. package/esm2020/lib/pipes/json-path.pipe.mjs +80 -0
  37. package/esm2020/lib/pipes/link-formatter.pipe.mjs +39 -0
  38. package/esm2020/lib/services/action-executor.service.mjs +33 -39
  39. package/esm2020/lib/utils/index.mjs +2 -2
  40. package/esm2020/lib/utils/model.util.mjs +16 -15
  41. package/esm2020/lib/utils/notification.util.mjs +47 -0
  42. package/esm2020/public-api.mjs +2 -1
  43. package/fesm2015/mediusinc-mng-commons.mjs +1945 -1483
  44. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  45. package/fesm2020/mediusinc-mng-commons.mjs +1938 -1480
  46. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  47. package/lib/api/models/builders/query-param.builder.d.ts +2 -1
  48. package/lib/api/services/api.abstract.service.d.ts +10 -5
  49. package/lib/api/utils/object-serializer.util.d.ts +4 -2
  50. package/lib/components/action/action.component.d.ts +12 -1
  51. package/lib/components/action/models/action-execution.model.d.ts +2 -0
  52. package/lib/components/form/autocomplete/autocomplete.component.d.ts +20 -5
  53. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +1 -2
  54. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +5 -1
  55. package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +1 -0
  56. package/lib/components/tableview/table/column-value/column-value.component.d.ts +5 -1
  57. package/lib/descriptors/action.descriptor.d.ts +35 -1
  58. package/lib/descriptors/column.descriptor.d.ts +66 -0
  59. package/lib/descriptors/editor.descriptor.d.ts +1 -292
  60. package/lib/descriptors/field.descriptor.d.ts +301 -0
  61. package/lib/descriptors/{editor.descriptor.interface.d.ts → field.descriptor.interface.d.ts} +0 -0
  62. package/lib/descriptors/filter.descriptor.d.ts +108 -0
  63. package/lib/descriptors/index.d.ts +4 -0
  64. package/lib/descriptors/table.descriptor.d.ts +5 -159
  65. package/lib/descriptors/tableview.descriptor.d.ts +4 -2
  66. package/lib/directives/component.directive.d.ts +5 -1
  67. package/lib/mng-commons.module.d.ts +70 -69
  68. package/lib/models/column-value.model.d.ts +4 -0
  69. package/lib/models/error.model.d.ts +2 -0
  70. package/lib/models/index.d.ts +1 -0
  71. package/lib/pipes/index.d.ts +2 -1
  72. package/lib/pipes/json-path.pipe.d.ts +13 -0
  73. package/lib/pipes/link-formatter.pipe.d.ts +11 -0
  74. package/lib/services/action-executor.service.d.ts +5 -3
  75. package/lib/utils/index.d.ts +1 -1
  76. package/lib/utils/model.util.d.ts +1 -0
  77. package/lib/utils/{toast.util.d.ts → notification.util.d.ts} +7 -10
  78. package/package.json +1 -1
  79. package/public-api.d.ts +1 -0
  80. package/scss/mng-overrides/_layout_action.scss +7 -0
  81. package/scss/mng-overrides/_layout_dialog.scss +17 -6
  82. package/scss/mng-overrides/_mixins.scss +60 -0
  83. package/scss/mng-overrides/_theme_button.scss +4 -0
  84. package/scss/theme/default/_mng-variables-theme-dark.scss +2 -3
  85. package/scss/theme/default/_mng-variables-theme-light.scss +2 -3
  86. package/scss/theme/default/_mng-variables.scss +12 -0
  87. package/esm2020/lib/descriptors/editor.descriptor.interface.mjs +0 -2
  88. package/esm2020/lib/pipes/property-path.pipe.mjs +0 -36
  89. package/esm2020/lib/utils/toast.util.mjs +0 -44
  90. package/lib/pipes/property-path.pipe.d.ts +0 -7
@@ -0,0 +1,108 @@
1
+ import { Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { MediusQueryParam } from '../api/models';
4
+ import { ILookupDataProvider } from '../data-providers';
5
+ import { EnumValue } from '../models';
6
+ import { ClassType, EnumConstantType, EnumType } from '../types';
7
+ import { ILookupDescriptor } from './lookup.descriptor';
8
+ export declare class FilterDescriptor<T> {
9
+ protected readonly _property: string;
10
+ protected _filterType: FilterDescriptor.TypeEnum;
11
+ protected _filterProperty?: string;
12
+ protected _matchModes: string[] | null;
13
+ protected _placeholder?: string;
14
+ protected _className: string;
15
+ constructor(property: string);
16
+ get filterType(): FilterDescriptor.TypeEnum;
17
+ get filterProperty(): string | undefined;
18
+ get matchModes(): string[] | null;
19
+ get placeholder(): string | undefined;
20
+ get className(): string;
21
+ get property(): string;
22
+ asFilterType(filterType: FilterDescriptor.TypeEnum): this;
23
+ /**
24
+ * Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
25
+ * @param filterProperty
26
+ */
27
+ withFilterProperty(filterProperty: string): this;
28
+ withPlaceholder(placeholder: string): this;
29
+ withClassName(className: string): this;
30
+ withMatchModes(matchModes: Array<FilterDescriptor.MatchModeEnum>): this;
31
+ copy(): FilterDescriptor<T>;
32
+ protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
33
+ }
34
+ export declare namespace FilterDescriptor {
35
+ enum TypeEnum {
36
+ String = 0,
37
+ Number = 1,
38
+ Boolean = 2,
39
+ Date = 3,
40
+ Lookup = 4,
41
+ LookupEnum = 5
42
+ }
43
+ enum MatchModeEnum {
44
+ StartsWith = "startsWith",
45
+ Contains = "contains",
46
+ EndsWith = "endsWith",
47
+ Equals = "equals",
48
+ NotEquals = "notEquals",
49
+ In = "in",
50
+ LessThan = "lt",
51
+ LessThanOrEqualTo = "lte",
52
+ GreaterThan = "gt",
53
+ GreaterThanOrEqualTo = "gte",
54
+ Between = "between",
55
+ DateIs = "dateIs",
56
+ DateIsNot = "dateIsNot",
57
+ DateBefore = "dateBefore",
58
+ DateAfter = "dateAfter"
59
+ }
60
+ }
61
+ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
62
+ protected readonly _modelType: ClassType<T> | null;
63
+ protected _lookupType?: FilterLookupDescriptor.LookupTypeEnum;
64
+ protected _dataProvider?: ILookupDataProvider<T, any>;
65
+ protected _itemsLabelProperty?: string;
66
+ protected _itemsLabelTranslate: boolean;
67
+ protected _itemsValueProperty?: string;
68
+ protected _dataKeyProperty?: string;
69
+ protected _multiselect: boolean;
70
+ protected _dropdownClassName: string;
71
+ protected _autocompleteOpenOnFocus: boolean;
72
+ protected _autocompleteInlineSearch: boolean;
73
+ constructor(property: string, modelType: ClassType<T> | null);
74
+ get lookupType(): FilterLookupDescriptor.LookupTypeEnum | undefined;
75
+ get dataProvider(): ILookupDataProvider<T, any> | undefined;
76
+ get itemsLabelProperty(): string | undefined;
77
+ get itemsLabelTranslate(): boolean;
78
+ get itemsValueProperty(): string | undefined;
79
+ get dataKeyProperty(): string | undefined;
80
+ get multiselect(): boolean;
81
+ get autocompleteOpenOnFocus(): boolean;
82
+ get autocompleteInlineSearch(): boolean;
83
+ get dropdownClassName(): string;
84
+ get modelType(): ClassType<T> | null;
85
+ withItemsLabelProperty(itemsLabelProperty: string, translate?: boolean): this;
86
+ withItemsValueProperty(itemsValueProperty: string): this;
87
+ withDataKeyProperty(dataKeyProperty: string): this;
88
+ withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
89
+ withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
90
+ withMultiselect(multiselect?: boolean): this;
91
+ withDropdownClassName(dropdownClassName: string): this;
92
+ asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean): this;
93
+ copy(): FilterLookupDescriptor<T>;
94
+ protected copyFieldsTo(filter: FilterLookupDescriptor<T>): void;
95
+ }
96
+ export declare class FilterLookupEnumDescriptor extends FilterLookupDescriptor<EnumValue<string | number>> {
97
+ private readonly _enumType;
98
+ constructor(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
99
+ get enumType(): EnumType;
100
+ asAutocomplete(openOnFocus?: boolean): this;
101
+ copy(): FilterLookupEnumDescriptor;
102
+ }
103
+ export declare namespace FilterLookupDescriptor {
104
+ enum LookupTypeEnum {
105
+ Dropdown = 0,
106
+ Autocomplete = 1
107
+ }
108
+ }
@@ -1,6 +1,10 @@
1
1
  export * from './action.descriptor';
2
+ export * from './column.descriptor';
2
3
  export * from './editor.descriptor';
4
+ export * from './field.descriptor';
5
+ export * from './field.descriptor.interface';
3
6
  export * from './field.validator';
7
+ export * from './filter.descriptor';
4
8
  export * from './lookup.descriptor';
5
9
  export * from './model.descriptor';
6
10
  export * from './table.descriptor';
@@ -1,10 +1,7 @@
1
1
  import { Type } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { MediusQueryParam } from '../api/models';
4
- import { ILookupDataProvider } from '../data-providers';
5
- import { EnumValue } from '../models';
6
- import { ClassType, EnumConstantType, EnumType } from '../types';
7
- import { ILookupDescriptor } from './lookup.descriptor';
2
+ import { IColumnValueComponent } from '../models';
3
+ import { ClassType, EnumType } from '../types';
4
+ import { ColumnDescriptor } from './column.descriptor';
8
5
  import { ModelDescriptor } from './model.descriptor';
9
6
  export declare class TableDescriptor<T> {
10
7
  private readonly _model;
@@ -37,8 +34,8 @@ export declare class TableDescriptor<T> {
37
34
  addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
38
35
  addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
39
36
  addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
40
- addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<boolean, T>;
41
- addColumnObject<CT>(property: string, modelType: ClassType<CT>, displayProperty: string): ColumnDescriptor<CT, T>;
37
+ addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
38
+ addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
42
39
  withFilterDisplay(filterDisplayType: TableDescriptor.FilterDisplayEnum): this;
43
40
  withPaginationMode(paginationMode: TableDescriptor.PaginationModeEnum): this;
44
41
  withTitle(title: string): TableDescriptor<T>;
@@ -60,154 +57,3 @@ export declare namespace TableDescriptor {
60
57
  Menu = 1
61
58
  }
62
59
  }
63
- export declare class ColumnDescriptor<T, TT> {
64
- private readonly _table;
65
- private readonly _property;
66
- private _modelType;
67
- private _columnType;
68
- private _title?;
69
- private _displayPropertyPath?;
70
- private _isSortEnabled;
71
- private _filterDescriptor?;
72
- private _displayFormat?;
73
- private _enumType?;
74
- private _enumTitlePath?;
75
- private _enumNameAsValue;
76
- private _booleanAsIcon;
77
- private _booleanYes?;
78
- private _booleanNo?;
79
- constructor(table: TableDescriptor<TT>, property: string);
80
- get modelType(): ClassType<T> | null;
81
- get columnType(): ColumnDescriptor.TypeEnum;
82
- get title(): string | undefined;
83
- get displayPropertyPath(): string | undefined;
84
- get isSortEnabled(): boolean;
85
- get filterDescriptor(): FilterDescriptor<T> | undefined;
86
- get displayFormat(): string | undefined;
87
- get table(): TableDescriptor<TT>;
88
- get property(): string;
89
- get enumType(): EnumType | undefined;
90
- get enumTitlePath(): string | null | undefined;
91
- get enumNameAsValue(): boolean;
92
- get booleanAsIcon(): boolean;
93
- get booleanYes(): string | undefined;
94
- get booleanNo(): string | undefined;
95
- asType(type?: ColumnDescriptor.TypeEnum): this;
96
- asNumber(displayFormat?: string): this;
97
- asDate(displayFormat?: string): this;
98
- asBoolean(yes?: string, no?: string, asIcon?: boolean): this;
99
- asEnum(enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): this;
100
- withModelType(modelType: ClassType<T>): this;
101
- withTitle(title: string): this;
102
- withDisplayPropertyPath(displayPropertyPath: string): this;
103
- withFilter(): FilterDescriptor<T>;
104
- withFilterLookup(): FilterLookupDescriptor<T>;
105
- withFilterLookupEnum(options?: Array<EnumConstantType>): FilterLookupEnumDescriptor;
106
- withSort(isEnabled?: boolean): this;
107
- copy(): ColumnDescriptor<T, TT>;
108
- }
109
- export declare namespace ColumnDescriptor {
110
- enum TypeEnum {
111
- String = 0,
112
- Number = 1,
113
- Boolean = 2,
114
- Date = 3,
115
- Enum = 4
116
- }
117
- }
118
- export declare class FilterDescriptor<T> {
119
- protected readonly _property: string;
120
- protected _filterType: FilterDescriptor.TypeEnum;
121
- protected _filterProperty?: string;
122
- protected _matchModes: string[] | null;
123
- protected _placeholder?: string;
124
- protected _className: string;
125
- constructor(property: string);
126
- get filterType(): FilterDescriptor.TypeEnum;
127
- get filterProperty(): string | undefined;
128
- get matchModes(): string[] | null;
129
- get placeholder(): string | undefined;
130
- get className(): string;
131
- get property(): string;
132
- asFilterType(filterType: FilterDescriptor.TypeEnum): this;
133
- /**
134
- * Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
135
- * @param filterProperty
136
- */
137
- withFilterProperty(filterProperty: string): this;
138
- withPlaceholder(placeholder: string): this;
139
- withClassName(className: string): this;
140
- withMatchModes(matchModes: Array<FilterDescriptor.MatchModeEnum>): this;
141
- copy(): FilterDescriptor<T>;
142
- protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
143
- }
144
- export declare namespace FilterDescriptor {
145
- enum TypeEnum {
146
- String = 0,
147
- Number = 1,
148
- Boolean = 2,
149
- Date = 3,
150
- Lookup = 4,
151
- LookupEnum = 5
152
- }
153
- enum MatchModeEnum {
154
- StartsWith = "startsWith",
155
- Contains = "contains",
156
- EndsWith = "endsWith",
157
- Equals = "equals",
158
- NotEquals = "notEquals",
159
- In = "in",
160
- LessThan = "lt",
161
- LessThanOrEqualTo = "lte",
162
- GreaterThan = "gt",
163
- GreaterThanOrEqualTo = "gte",
164
- Between = "between",
165
- DateIs = "dateIs",
166
- DateIsNot = "dateIsNot",
167
- DateBefore = "dateBefore",
168
- DateAfter = "dateAfter"
169
- }
170
- }
171
- export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
172
- private readonly _modelType;
173
- private _lookupType?;
174
- private _dataProvider?;
175
- private _itemsLabelProperty?;
176
- private _itemsLabelTranslate;
177
- private _itemsValueProperty?;
178
- private _dataKeyProperty?;
179
- private _multiselect;
180
- protected _dropdownClassName: string;
181
- constructor(property: string, modelType: ClassType<T> | null);
182
- get lookupType(): FilterLookupDescriptor.LookupTypeEnum | undefined;
183
- get dataProvider(): ILookupDataProvider<T, any> | undefined;
184
- get itemsLabelProperty(): string | undefined;
185
- get itemsLabelTranslate(): boolean;
186
- get itemsValueProperty(): string | undefined;
187
- get dataKeyProperty(): string | undefined;
188
- get multiselect(): boolean;
189
- get dropdownClassName(): string;
190
- get modelType(): ClassType<T> | null;
191
- withItemsLabelProperty(itemsLabelProperty: string, translate?: boolean): this;
192
- withItemsValueProperty(itemsValueProperty: string): this;
193
- withDataKeyProperty(dataKeyProperty: string): this;
194
- withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
195
- withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
196
- withMultiselect(multiselect?: boolean): this;
197
- withDropdownClassName(dropdownClassName: string): this;
198
- asAutocomplete(): this;
199
- copy(): FilterLookupDescriptor<T>;
200
- protected copyFieldsTo(descriptor: FilterLookupDescriptor<T>): void;
201
- }
202
- export declare class FilterLookupEnumDescriptor extends FilterLookupDescriptor<EnumValue<string | number>> {
203
- private readonly _enumType;
204
- constructor(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
205
- get enumType(): EnumType;
206
- copy(): FilterLookupEnumDescriptor;
207
- }
208
- export declare namespace FilterLookupDescriptor {
209
- enum LookupTypeEnum {
210
- Dropdown = 0,
211
- Autocomplete = 1
212
- }
213
- }
@@ -1,4 +1,6 @@
1
+ import { Type } from '@angular/core';
1
2
  import { AbstractControl } from '@angular/forms';
3
+ import { IColumnValueComponent } from '../models';
2
4
  import { ClassType, EnumConstantType, EnumType } from '../types';
3
5
  import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor } from './';
4
6
  export declare class TableviewDescriptor<T> {
@@ -26,8 +28,8 @@ export declare class TableviewDescriptor<T> {
26
28
  addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
27
29
  addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
28
30
  addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
29
- addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<boolean, T>;
30
- addColumnObject<CT>(property: string, modelType: ClassType<CT>, displayProperty: string): ColumnDescriptor<CT, T>;
31
+ addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
32
+ addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
31
33
  createTabGroup(name: string, title?: string): this;
32
34
  createFieldGroup(name: string, title?: string): this;
33
35
  addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
@@ -3,10 +3,14 @@ import * as i0 from "@angular/core";
3
3
  export declare class MngComponentDirective<C> implements OnInit {
4
4
  viewContainerRef: ViewContainerRef;
5
5
  component: Type<C>;
6
+ inputs?: {
7
+ [key: string]: any;
8
+ };
6
9
  private componentInstanceEventEmitter;
7
10
  componentRef: ComponentRef<C>;
8
11
  constructor(viewContainerRef: ViewContainerRef);
9
12
  ngOnInit(): void;
13
+ private isCmpInstanceOfColumnValue;
10
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; "inputs": "inputs"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never>;
12
16
  }
@@ -4,81 +4,82 @@ import { MngModuleConfig } from './config/models';
4
4
  import * as i0 from "@angular/core";
5
5
  import * as i1 from "./directives/component.directive";
6
6
  import * as i2 from "./directives/template.directive";
7
- import * as i3 from "./pipes/property-path.pipe";
7
+ 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 "./components/layout/breadcrumb.component";
12
- import * as i8 from "./components/layout/footer.component";
13
- import * as i9 from "./components/layout/main-layout.component";
14
- import * as i10 from "./components/layout/menu.component";
15
- import * as i11 from "./components/layout/menu-item.component";
16
- import * as i12 from "./components/layout/topbar.component";
17
- import * as i13 from "./components/form/autocomplete/autocomplete.component";
18
- import * as i14 from "./components/form/dropdown/dropdown.component";
19
- import * as i15 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
20
- import * as i16 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
21
- import * as i17 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
22
- import * as i18 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
23
- import * as i19 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
24
- import * as i20 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
25
- import * as i21 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
26
- import * as i22 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
27
- import * as i23 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
28
- import * as i24 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
29
- import * as i25 from "./components/tableview/table/table.component";
30
- import * as i26 from "./components/tableview/tableview.component";
31
- import * as i27 from "./components/tableview/table/column-value/column-value.component";
32
- import * as i28 from "./components/tableview/table/column-filter/column-filter.component";
33
- import * as i29 from "./components/tableview/route/tableview-route.component";
34
- import * as i30 from "./components/form/editor/form-editor.component";
35
- import * as i31 from "./components/action/action.component";
36
- import * as i32 from "./components/action/editor/action-editor.component";
37
- import * as i33 from "./components/action/route/action-route.component";
38
- import * as i34 from "@angular/common";
39
- import * as i35 from "@angular/router";
40
- import * as i36 from "@angular/common/http";
41
- import * as i37 from "@angular/forms";
42
- import * as i38 from "@ngx-translate/core";
43
- import * as i39 from "@ngx-formly/core";
44
- import * as i40 from "primeng/autocomplete";
45
- import * as i41 from "primeng/breadcrumb";
46
- import * as i42 from "primeng/button";
47
- import * as i43 from "primeng/calendar";
48
- import * as i44 from "primeng/card";
49
- import * as i45 from "primeng/checkbox";
50
- import * as i46 from "primeng/chip";
51
- import * as i47 from "primeng/confirmdialog";
52
- import * as i48 from "primeng/confirmpopup";
53
- import * as i49 from "primeng/dialog";
54
- import * as i50 from "primeng/dynamicdialog";
55
- import * as i51 from "primeng/dropdown";
56
- import * as i52 from "primeng/fileupload";
57
- import * as i53 from "primeng/inputnumber";
58
- import * as i54 from "primeng/inputmask";
59
- import * as i55 from "primeng/inputswitch";
60
- import * as i56 from "primeng/inputtext";
61
- import * as i57 from "primeng/inputtextarea";
62
- import * as i58 from "primeng/paginator";
63
- import * as i59 from "primeng/radiobutton";
64
- import * as i60 from "primeng/ripple";
65
- import * as i61 from "primeng/selectbutton";
66
- import * as i62 from "primeng/table";
67
- import * as i63 from "primeng/tag";
68
- import * as i64 from "primeng/toast";
69
- import * as i65 from "primeng/togglebutton";
70
- import * as i66 from "primeng/toolbar";
71
- import * as i67 from "primeng/tooltip";
72
- import * as i68 from "primeng/messages";
73
- import * as i69 from "primeng/progressspinner";
74
- import * as i70 from "primeng/tabview";
75
- import * as i71 from "primeng/fieldset";
76
- import * as i72 from "primeng/multiselect";
77
- import * as i73 from "primeng/skeleton";
11
+ import * as i7 from "./pipes/link-formatter.pipe";
12
+ import * as i8 from "./components/layout/breadcrumb.component";
13
+ import * as i9 from "./components/layout/footer.component";
14
+ import * as i10 from "./components/layout/main-layout.component";
15
+ import * as i11 from "./components/layout/menu.component";
16
+ import * as i12 from "./components/layout/menu-item.component";
17
+ import * as i13 from "./components/layout/topbar.component";
18
+ import * as i14 from "./components/form/autocomplete/autocomplete.component";
19
+ import * as i15 from "./components/form/dropdown/dropdown.component";
20
+ import * as i16 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
21
+ import * as i17 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
22
+ import * as i18 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
23
+ import * as i19 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
24
+ import * as i20 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
25
+ import * as i21 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
26
+ import * as i22 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
27
+ import * as i23 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
28
+ import * as i24 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
29
+ import * as i25 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
30
+ import * as i26 from "./components/tableview/table/table.component";
31
+ import * as i27 from "./components/tableview/tableview.component";
32
+ import * as i28 from "./components/tableview/table/column-value/column-value.component";
33
+ import * as i29 from "./components/tableview/table/column-filter/column-filter.component";
34
+ import * as i30 from "./components/tableview/route/tableview-route.component";
35
+ import * as i31 from "./components/form/editor/form-editor.component";
36
+ import * as i32 from "./components/action/action.component";
37
+ import * as i33 from "./components/action/editor/action-editor.component";
38
+ import * as i34 from "./components/action/route/action-route.component";
39
+ import * as i35 from "@angular/common";
40
+ import * as i36 from "@angular/router";
41
+ import * as i37 from "@angular/common/http";
42
+ import * as i38 from "@angular/forms";
43
+ import * as i39 from "@ngx-translate/core";
44
+ import * as i40 from "@ngx-formly/core";
45
+ import * as i41 from "primeng/autocomplete";
46
+ import * as i42 from "primeng/breadcrumb";
47
+ import * as i43 from "primeng/button";
48
+ import * as i44 from "primeng/calendar";
49
+ import * as i45 from "primeng/card";
50
+ import * as i46 from "primeng/checkbox";
51
+ import * as i47 from "primeng/chip";
52
+ import * as i48 from "primeng/confirmdialog";
53
+ import * as i49 from "primeng/confirmpopup";
54
+ import * as i50 from "primeng/dialog";
55
+ import * as i51 from "primeng/dynamicdialog";
56
+ import * as i52 from "primeng/dropdown";
57
+ import * as i53 from "primeng/fileupload";
58
+ import * as i54 from "primeng/inputnumber";
59
+ import * as i55 from "primeng/inputmask";
60
+ import * as i56 from "primeng/inputswitch";
61
+ import * as i57 from "primeng/inputtext";
62
+ import * as i58 from "primeng/inputtextarea";
63
+ import * as i59 from "primeng/paginator";
64
+ import * as i60 from "primeng/radiobutton";
65
+ import * as i61 from "primeng/ripple";
66
+ import * as i62 from "primeng/selectbutton";
67
+ import * as i63 from "primeng/table";
68
+ import * as i64 from "primeng/tag";
69
+ import * as i65 from "primeng/toast";
70
+ import * as i66 from "primeng/togglebutton";
71
+ import * as i67 from "primeng/toolbar";
72
+ import * as i68 from "primeng/tooltip";
73
+ import * as i69 from "primeng/messages";
74
+ import * as i70 from "primeng/progressspinner";
75
+ import * as i71 from "primeng/tabview";
76
+ import * as i72 from "primeng/fieldset";
77
+ import * as i73 from "primeng/multiselect";
78
+ import * as i74 from "primeng/skeleton";
78
79
  export declare const primeNgModules: (typeof InputTextModule)[];
79
80
  export declare class MngCommonsModule {
80
81
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
81
82
  static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
82
- static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngBreadcrumbComponent, typeof i8.MngFooterComponent, typeof i9.MngMainLayoutComponent, typeof i10.MngMenuComponent, typeof i11.MngMenuItemComponent, typeof i12.MngTopbarComponent, typeof i13.MngAutocompleteComponent, typeof i14.MngDropdownComponent, typeof i15.MngFormlyFieldWrapperComponent, typeof i16.MngFormlyTableWrapperComponent, typeof i17.MngFormlyFieldInputComponent, typeof i18.MngFormlyFieldDropdownComponent, typeof i19.MngFormlyFieldAutocompleteComponent, typeof i20.MngFormlyFieldLookupDialogComponent, typeof i21.MngFormlyFieldTableDialogMultiselectComponent, typeof i22.MngFormlyFieldTableDialogFormComponent, typeof i23.MngFormlyFieldTabsComponent, typeof i24.MngFormlyFieldFieldsetComponent, typeof i25.MngTableComponent, typeof i26.MngTableviewComponent, typeof i27.MngTableColumnValueComponent, typeof i28.MngTableColumnFilterComponent, typeof i29.MngTableviewRouteComponent, typeof i30.MngFormEditorComponent, typeof i31.MngActionComponent, typeof i32.MngActionEditorComponent, typeof i33.MngActionRouteComponent], [typeof i34.CommonModule, typeof i35.RouterModule, typeof i36.HttpClientModule, typeof i37.ReactiveFormsModule, typeof i38.TranslateModule, typeof i39.FormlyModule, typeof i40.AutoCompleteModule, typeof i41.BreadcrumbModule, typeof i42.ButtonModule, typeof i43.CalendarModule, typeof i44.CardModule, typeof i45.CheckboxModule, typeof i46.ChipModule, typeof i47.ConfirmDialogModule, typeof i48.ConfirmPopupModule, typeof i49.DialogModule, typeof i50.DynamicDialogModule, typeof i51.DropdownModule, typeof i52.FileUploadModule, typeof i53.InputNumberModule, typeof i54.InputMaskModule, typeof i55.InputSwitchModule, typeof i56.InputTextModule, typeof i57.InputTextareaModule, typeof i58.PaginatorModule, typeof i59.RadioButtonModule, typeof i60.RippleModule, typeof i61.SelectButtonModule, typeof i62.TableModule, typeof i63.TagModule, typeof i64.ToastModule, typeof i65.ToggleButtonModule, typeof i66.ToolbarModule, typeof i67.TooltipModule, typeof i68.MessagesModule, typeof i69.ProgressSpinnerModule, typeof i70.TabViewModule, typeof i71.FieldsetModule, typeof i72.MultiSelectModule, typeof i73.SkeletonModule], [typeof i40.AutoCompleteModule, typeof i41.BreadcrumbModule, typeof i42.ButtonModule, typeof i43.CalendarModule, typeof i44.CardModule, typeof i45.CheckboxModule, typeof i46.ChipModule, typeof i47.ConfirmDialogModule, typeof i48.ConfirmPopupModule, typeof i49.DialogModule, typeof i50.DynamicDialogModule, typeof i51.DropdownModule, typeof i52.FileUploadModule, typeof i53.InputNumberModule, typeof i54.InputMaskModule, typeof i55.InputSwitchModule, typeof i56.InputTextModule, typeof i57.InputTextareaModule, typeof i58.PaginatorModule, typeof i59.RadioButtonModule, typeof i60.RippleModule, typeof i61.SelectButtonModule, typeof i62.TableModule, typeof i63.TagModule, typeof i64.ToastModule, typeof i65.ToggleButtonModule, typeof i66.ToolbarModule, typeof i67.TooltipModule, typeof i68.MessagesModule, typeof i69.ProgressSpinnerModule, typeof i70.TabViewModule, typeof i71.FieldsetModule, typeof i72.MultiSelectModule, typeof i73.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngBreadcrumbComponent, typeof i8.MngFooterComponent, typeof i9.MngMainLayoutComponent, typeof i10.MngMenuComponent, typeof i11.MngMenuItemComponent, typeof i12.MngTopbarComponent, typeof i13.MngAutocompleteComponent, typeof i14.MngDropdownComponent, typeof i15.MngFormlyFieldWrapperComponent, typeof i16.MngFormlyTableWrapperComponent, typeof i17.MngFormlyFieldInputComponent, typeof i18.MngFormlyFieldDropdownComponent, typeof i19.MngFormlyFieldAutocompleteComponent, typeof i20.MngFormlyFieldLookupDialogComponent, typeof i21.MngFormlyFieldTableDialogMultiselectComponent, typeof i22.MngFormlyFieldTableDialogFormComponent, typeof i23.MngFormlyFieldTabsComponent, typeof i24.MngFormlyFieldFieldsetComponent, typeof i25.MngTableComponent, typeof i26.MngTableviewComponent, typeof i27.MngTableColumnValueComponent, typeof i28.MngTableColumnFilterComponent, typeof i29.MngTableviewRouteComponent, typeof i30.MngFormEditorComponent, typeof i31.MngActionComponent, typeof i32.MngActionEditorComponent, typeof i33.MngActionRouteComponent]>;
83
+ 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.MngLinkFormatterPipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngAutocompleteComponent, typeof i15.MngDropdownComponent, typeof i16.MngFormlyFieldWrapperComponent, typeof i17.MngFormlyTableWrapperComponent, typeof i18.MngFormlyFieldInputComponent, typeof i19.MngFormlyFieldDropdownComponent, typeof i20.MngFormlyFieldAutocompleteComponent, typeof i21.MngFormlyFieldLookupDialogComponent, typeof i22.MngFormlyFieldTableDialogMultiselectComponent, typeof i23.MngFormlyFieldTableDialogFormComponent, typeof i24.MngFormlyFieldTabsComponent, typeof i25.MngFormlyFieldFieldsetComponent, typeof i26.MngTableComponent, typeof i27.MngTableviewComponent, typeof i28.MngTableColumnValueComponent, typeof i29.MngTableColumnFilterComponent, typeof i30.MngTableviewRouteComponent, typeof i31.MngFormEditorComponent, typeof i32.MngActionComponent, typeof i33.MngActionEditorComponent, typeof i34.MngActionRouteComponent], [typeof i35.CommonModule, typeof i36.RouterModule, typeof i37.HttpClientModule, typeof i38.ReactiveFormsModule, typeof i39.TranslateModule, typeof i40.FormlyModule, typeof i41.AutoCompleteModule, typeof i42.BreadcrumbModule, typeof i43.ButtonModule, typeof i44.CalendarModule, typeof i45.CardModule, typeof i46.CheckboxModule, typeof i47.ChipModule, typeof i48.ConfirmDialogModule, typeof i49.ConfirmPopupModule, typeof i50.DialogModule, typeof i51.DynamicDialogModule, typeof i52.DropdownModule, typeof i53.FileUploadModule, typeof i54.InputNumberModule, typeof i55.InputMaskModule, typeof i56.InputSwitchModule, typeof i57.InputTextModule, typeof i58.InputTextareaModule, typeof i59.PaginatorModule, typeof i60.RadioButtonModule, typeof i61.RippleModule, typeof i62.SelectButtonModule, typeof i63.TableModule, typeof i64.TagModule, typeof i65.ToastModule, typeof i66.ToggleButtonModule, typeof i67.ToolbarModule, typeof i68.TooltipModule, typeof i69.MessagesModule, typeof i70.ProgressSpinnerModule, typeof i71.TabViewModule, typeof i72.FieldsetModule, typeof i73.MultiSelectModule, typeof i74.SkeletonModule], [typeof i41.AutoCompleteModule, typeof i42.BreadcrumbModule, typeof i43.ButtonModule, typeof i44.CalendarModule, typeof i45.CardModule, typeof i46.CheckboxModule, typeof i47.ChipModule, typeof i48.ConfirmDialogModule, typeof i49.ConfirmPopupModule, typeof i50.DialogModule, typeof i51.DynamicDialogModule, typeof i52.DropdownModule, typeof i53.FileUploadModule, typeof i54.InputNumberModule, typeof i55.InputMaskModule, typeof i56.InputSwitchModule, typeof i57.InputTextModule, typeof i58.InputTextareaModule, typeof i59.PaginatorModule, typeof i60.RadioButtonModule, typeof i61.RippleModule, typeof i62.SelectButtonModule, typeof i63.TableModule, typeof i64.TagModule, typeof i65.ToastModule, typeof i66.ToggleButtonModule, typeof i67.ToolbarModule, typeof i68.TooltipModule, typeof i69.MessagesModule, typeof i70.ProgressSpinnerModule, typeof i71.TabViewModule, typeof i72.FieldsetModule, typeof i73.MultiSelectModule, typeof i74.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngLinkFormatterPipe, typeof i8.MngBreadcrumbComponent, typeof i9.MngFooterComponent, typeof i10.MngMainLayoutComponent, typeof i11.MngMenuComponent, typeof i12.MngMenuItemComponent, typeof i13.MngTopbarComponent, typeof i14.MngAutocompleteComponent, typeof i15.MngDropdownComponent, typeof i16.MngFormlyFieldWrapperComponent, typeof i17.MngFormlyTableWrapperComponent, typeof i18.MngFormlyFieldInputComponent, typeof i19.MngFormlyFieldDropdownComponent, typeof i20.MngFormlyFieldAutocompleteComponent, typeof i21.MngFormlyFieldLookupDialogComponent, typeof i22.MngFormlyFieldTableDialogMultiselectComponent, typeof i23.MngFormlyFieldTableDialogFormComponent, typeof i24.MngFormlyFieldTabsComponent, typeof i25.MngFormlyFieldFieldsetComponent, typeof i26.MngTableComponent, typeof i27.MngTableviewComponent, typeof i28.MngTableColumnValueComponent, typeof i29.MngTableColumnFilterComponent, typeof i30.MngTableviewRouteComponent, typeof i31.MngFormEditorComponent, typeof i32.MngActionComponent, typeof i33.MngActionEditorComponent, typeof i34.MngActionRouteComponent]>;
83
84
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
84
85
  }
@@ -0,0 +1,4 @@
1
+ import { ColumnDescriptor } from '../descriptors';
2
+ export interface IColumnValueComponent<T> {
3
+ setColumnValue(value: any, item: T, descriptor: ColumnDescriptor<any, T>): void;
4
+ }
@@ -1,8 +1,10 @@
1
+ import { Message } from 'primeng/api';
1
2
  import { IdType } from '../types';
2
3
  export interface MngError extends Error {
3
4
  id?: IdType;
4
5
  messageCode?: number | string;
5
6
  message: string;
7
+ notification?: Message;
6
8
  details?: any;
7
9
  status?: number;
8
10
  statusDescription?: string;
@@ -1,3 +1,4 @@
1
+ export * from './column-value.model';
1
2
  export * from './enum.model';
2
3
  export * from './error.model';
3
4
  export * from './menu.model';
@@ -1,4 +1,5 @@
1
1
  export * from './boolean.pipe';
2
2
  export * from './enum.pipe';
3
3
  export * from './i18n-property.pipe';
4
- export * from './property-path.pipe';
4
+ export * from './link-formatter.pipe';
5
+ export * from './json-path.pipe';
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Imitation of JSONPath Syntax. Supports:
5
+ * - Root object notation with '$'
6
+ * - Dot notation (e.g.: $.foo.bar), no bracket notation for properties
7
+ * - Array notation (e.g.: [0])
8
+ */
9
+ export declare class JsonPathPipe implements PipeTransform {
10
+ transform(value: any, path?: string): any;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<JsonPathPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<JsonPathPipe, "jsonPath">;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ActionData } from '../components/action/models';
3
+ import { ModelDescriptor } from '../descriptors';
4
+ import { IdType } from '../types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MngLinkFormatterPipe implements PipeTransform {
7
+ private parseUrl;
8
+ transform(value: string | string[], itemId?: IdType, item?: any, model?: ModelDescriptor<any>, actionData?: ActionData): any;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<MngLinkFormatterPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<MngLinkFormatterPipe, "linkFormatter">;
11
+ }
@@ -8,7 +8,8 @@ import { ActionActivationResult, ActionData, ActionExecContext, ActionRunResult,
8
8
  import { MngTableCellClickEvent } from '../components/tableview/models';
9
9
  import { IDataProvider, IEditorDataProvider } from '../data-providers';
10
10
  import { ActionDescriptor, ActionEditorDescriptor } from '../descriptors';
11
- import { IViewContainer } from '../models';
11
+ import { IViewContainer, MngError } from '../models';
12
+ import { MngLinkFormatterPipe } from '../pipes';
12
13
  import { IdType } from '../types';
13
14
  import { MngErrorMapperService } from './error-mapper.service';
14
15
  import { MngNavigationService } from './navigation.service';
@@ -21,8 +22,9 @@ export declare class MngActionExecutorService {
21
22
  private translate;
22
23
  private navigationService;
23
24
  private errorMapper;
25
+ private linkFormatter;
24
26
  private defaultEditorDialogComponent;
25
- constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService, navigationService: MngNavigationService, errorMapper: MngErrorMapperService, defaultEditorDialogComponent: Type<any>);
27
+ constructor(injector: Injector, router: Router, dialogService: DialogService, confirmationService: ConfirmationService, translate: TranslateService, navigationService: MngNavigationService, errorMapper: MngErrorMapperService, linkFormatter: MngLinkFormatterPipe, defaultEditorDialogComponent: Type<any>);
26
28
  prepareActionExecContext<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, viewContainer?: IViewContainer<T, S>, sourceComponent?: any, actionData?: ActionData): ActionExecContext<T, S, IDataProvider<T, S>>;
27
29
  runAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, dataProvider?: IDataProvider<T, S>, sourceComponent?: any, viewContainer?: IViewContainer<T, S>, actionData?: ActionData): Observable<ActionRunResult<T, S, IDataProvider<T, S>>>;
28
30
  /**
@@ -94,7 +96,7 @@ export declare class MngActionExecutorService {
94
96
  */
95
97
  triggerAction<T, S>(action: ActionDescriptor<T>, itemId?: IdType, item?: T, actionData?: ActionData, route?: ActivatedRoute, viewContainer?: IViewContainer<T, S>, sourceComponent?: any): Observable<ActionTriggerResult<T, S, IDataProvider<T, S>>>;
96
98
  deactivateAction<T>(action: ActionDescriptor<T>): void;
97
- private toMngActionError;
99
+ toMngActionError(error?: any): MngError;
98
100
  static ɵfac: i0.ɵɵFactoryDeclaration<MngActionExecutorService, never>;
99
101
  static ɵprov: i0.ɵɵInjectableDeclaration<MngActionExecutorService>;
100
102
  }
@@ -2,5 +2,5 @@ export * from './editor-formly.util';
2
2
  export * from './enum.util';
3
3
  export * from './i18n.util';
4
4
  export * from './model.util';
5
- export * from './toast.util';
5
+ export * from './notification.util';
6
6
  export * from './type.util';
@@ -3,5 +3,6 @@ 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
+ private static findAttributeByTypeAndName;
6
7
  static trySetLookupItemsProperties<T>(lookup: ILookupDescriptor<T>, idAsDataKey?: boolean): void;
7
8
  }