@mediusinc/mng-commons 1.0.0 → 1.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -222,6 +222,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
222
222
  protected _autocompleteSelectFirst: boolean;
223
223
  protected _dialogTableDescriptor?: TableDescriptor<T>;
224
224
  protected _dialogTableDataProvider?: ITableDataProvider<T, any>;
225
+ protected _customComponentName?: string;
225
226
  constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T> | null);
226
227
  get lookupType(): FieldLookupTypeEnum;
227
228
  get itemsLabelProperty(): string | undefined;
@@ -238,6 +239,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
238
239
  get modelType(): ClassType<T> | null;
239
240
  get dialogTableDescriptor(): TableDescriptor<T> | undefined;
240
241
  get dialogTableDataProvider(): ITableDataProvider<T, any> | undefined;
242
+ get customComponentName(): string | undefined;
241
243
  withItemsLabelProperty(itemsLabelProperty: string, translate?: boolean): this;
242
244
  withItemsValueProperty(itemsValueProperty: string): this;
243
245
  withItemsDisabledProperty(itemsDisabledProperty: string): this;
@@ -247,6 +249,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
247
249
  withConfig(config: FieldLookupConfig): this;
248
250
  asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean, selectFirst?: boolean, autoClear?: boolean): this;
249
251
  asDialog(lookupTableDescriptor: TableDescriptor<T>, tableDataProvider?: ITableDataProvider<T, any>): this;
252
+ asCustomComponent(customComponentName: string): this;
250
253
  copy(): FieldLookupDescriptor<T, ET>;
251
254
  }
252
255
  export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumValue<string | number>, ET> {
@@ -74,7 +74,6 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
74
74
  protected _itemsLabelProperty?: string;
75
75
  protected _itemsLabelTranslate: boolean;
76
76
  protected _itemsValueProperty?: string;
77
- protected _dataKeyProperty?: string;
78
77
  protected _multiselect: boolean;
79
78
  protected _dropdownClassName: string;
80
79
  protected _autocompleteOpenOnFocus: boolean;
@@ -85,7 +84,6 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
85
84
  get itemsLabelProperty(): string | undefined;
86
85
  get itemsLabelTranslate(): boolean;
87
86
  get itemsValueProperty(): string | undefined;
88
- get dataKeyProperty(): string | undefined;
89
87
  get multiselect(): boolean;
90
88
  get autocompleteOpenOnFocus(): boolean;
91
89
  get autocompleteInlineSearch(): boolean;
@@ -93,6 +91,9 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
93
91
  get modelType(): ClassType<T> | null;
94
92
  withItemsLabelProperty(itemsLabelProperty: string, translate?: boolean): this;
95
93
  withItemsValueProperty(itemsValueProperty: string): this;
94
+ /**
95
+ * @deprecated
96
+ */
96
97
  withDataKeyProperty(dataKeyProperty: string): this;
97
98
  withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
98
99
  withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
@@ -22,7 +22,8 @@ export declare enum FieldInputTypeEnum {
22
22
  export declare enum FieldLookupTypeEnum {
23
23
  Dropdown = 0,
24
24
  Autocomplete = 1,
25
- Dialog = 2
25
+ Dialog = 2,
26
+ Custom = 3
26
27
  }
27
28
  export declare enum FieldManyToManyEditorTypeEnum {
28
29
  DialogTableMultiselect = 0
@@ -45,6 +45,11 @@ export declare class MngConfigurationService {
45
45
  * @param key Configuration key.
46
46
  */
47
47
  getConfigValue(key: string): any;
48
+ /**
49
+ * Has configuration for key.
50
+ * @param key Configuration key.
51
+ */
52
+ hasConfigKey(key: string): boolean;
48
53
  /**
49
54
  * Merges configuration from multiple sources with
50
55
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "1.0.0",
3
+ "version": "1.1.0-rc.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
package/version-info.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "1.0.0",
4
- "tag": "v1.0.0",
3
+ "version": "1.1.0-rc.1",
4
+ "tag": "v1.1.0-rc.1",
5
5
  "distance": 0,
6
- "hash": "ca372b6d",
6
+ "hash": "04cff6d5",
7
7
  "dirty": false,
8
- "semver": "1.0.0",
9
- "raw": "v1.0.0-ca372b6d"
8
+ "semver": "1.1.0-rc.1",
9
+ "raw": "v1.1.0-rc.1-04cff6d5"
10
10
  }