@mediusinc/mng-commons 1.2.0-rc.1 → 1.3.0-1c14fa2b
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/tableview/table/column-value/column-value.component.mjs +3 -3
- package/esm2020/lib/components/tableview/table/table.component.mjs +25 -24
- package/esm2020/lib/descriptors/column.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/filter.descriptor.mjs +50 -3
- package/esm2020/lib/services/commons.service.mjs +14 -1
- package/fesm2015/mediusinc-mng-commons.mjs +89 -27
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +88 -27
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/descriptors/column.descriptor.d.ts +2 -2
- package/lib/descriptors/filter.descriptor.d.ts +11 -6
- package/lib/services/commons.service.d.ts +4 -0
- package/package.json +1 -1
- package/version-info.json +6 -6
|
@@ -43,7 +43,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
43
43
|
get title(): string | undefined;
|
|
44
44
|
get jsonPath(): string | undefined;
|
|
45
45
|
get isSortEnabled(): boolean;
|
|
46
|
-
get filterDescriptor(): FilterDescriptor<
|
|
46
|
+
get filterDescriptor(): FilterDescriptor<unknown> | undefined;
|
|
47
47
|
get displayFormat(): string | undefined;
|
|
48
48
|
get table(): TableDescriptor<TT>;
|
|
49
49
|
get property(): string;
|
|
@@ -88,7 +88,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
88
88
|
withObjectProperty<MT>(modelType: ClassType<MT>, titleProperty?: string): this;
|
|
89
89
|
withTitle(title: string): this;
|
|
90
90
|
withJsonPath(path: string): this;
|
|
91
|
-
withFilter(forceSimple?: boolean): FilterDescriptor<
|
|
91
|
+
withFilter(forceSimple?: boolean): FilterDescriptor<any>;
|
|
92
92
|
withFilterLookup(): FilterLookupDescriptor<unknown>;
|
|
93
93
|
withFilterLookupEnum(options?: Array<EnumConstantType>): FilterLookupEnumDescriptor;
|
|
94
94
|
withSort(isEnabled?: boolean): this;
|
|
@@ -12,8 +12,8 @@ export declare class FilterDescriptor<T> {
|
|
|
12
12
|
protected _filterProperty?: string;
|
|
13
13
|
protected _hasDefaultValue: boolean;
|
|
14
14
|
protected _defaultFilterMatchMode?: FilterMatchModeEnum;
|
|
15
|
-
protected _defaultValue?:
|
|
16
|
-
protected _defaultValueTo?:
|
|
15
|
+
protected _defaultValue?: T | T[];
|
|
16
|
+
protected _defaultValueTo?: T;
|
|
17
17
|
protected _matchModes: string[] | null;
|
|
18
18
|
protected _numberMinFractionDigits?: number;
|
|
19
19
|
protected _numberMaxFractionDigits?: number;
|
|
@@ -30,8 +30,8 @@ export declare class FilterDescriptor<T> {
|
|
|
30
30
|
constructor(property: string);
|
|
31
31
|
get filterType(): FilterTypeEnum;
|
|
32
32
|
get hasDefaultValue(): boolean;
|
|
33
|
-
get defaultValue():
|
|
34
|
-
get defaultValueTo():
|
|
33
|
+
get defaultValue(): T | T[] | undefined;
|
|
34
|
+
get defaultValueTo(): T | undefined;
|
|
35
35
|
get defaultFilterMatchMode(): FilterMatchModeEnum | undefined;
|
|
36
36
|
get filterProperty(): string | undefined;
|
|
37
37
|
get matchModes(): string[] | null;
|
|
@@ -54,7 +54,7 @@ export declare class FilterDescriptor<T> {
|
|
|
54
54
|
* @param filterProperty
|
|
55
55
|
*/
|
|
56
56
|
withFilterProperty(filterProperty: string): this;
|
|
57
|
-
withDefaultFilter(filterValue:
|
|
57
|
+
withDefaultFilter(filterValue: T, filterValueTo?: T, filterMatchMode?: FilterMatchModeEnum): this;
|
|
58
58
|
withNumberFractions(min?: number, max?: number): this;
|
|
59
59
|
withNumberGrouping(useGrouping?: boolean): this;
|
|
60
60
|
withDateFormat(format?: string, showTime?: boolean): this;
|
|
@@ -99,15 +99,20 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
|
|
|
99
99
|
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
100
100
|
withMultiselect(multiselect?: boolean): this;
|
|
101
101
|
withDropdownClassName(dropdownClassName: string): this;
|
|
102
|
-
withDefaultFilter(filterValue:
|
|
102
|
+
withDefaultFilter(filterValue: T | T[], filterValueTo?: T, filterMatchMode?: FilterMatchModeEnum): this;
|
|
103
103
|
asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean): this;
|
|
104
104
|
copy(): FilterLookupDescriptor<T>;
|
|
105
105
|
protected copyFieldsTo(filter: FilterLookupDescriptor<T>): void;
|
|
106
106
|
}
|
|
107
107
|
export declare class FilterLookupEnumDescriptor extends FilterLookupDescriptor<EnumValue<string | number>> {
|
|
108
108
|
private readonly _enumType;
|
|
109
|
+
private readonly _optionEnumValues;
|
|
110
|
+
private readonly _nameAsValue;
|
|
109
111
|
constructor(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
|
|
110
112
|
get enumType(): EnumType;
|
|
111
113
|
asAutocomplete(openOnFocus?: boolean): this;
|
|
114
|
+
withMultiselectEnum(multiselect?: boolean): FilterLookupEnumDescriptor;
|
|
115
|
+
withDefaultFilter(filterValue: EnumValue<string | number>[] | EnumValue<string | number>, filterValueTo?: EnumValue<string | number>, filterMatchMode?: FilterMatchModeEnum): this;
|
|
116
|
+
withDefaultFilterEnum(filterValue: EnumConstantType | EnumConstantType[], filterValueTo?: EnumConstantType, filterMatchMode?: FilterMatchModeEnum): this;
|
|
112
117
|
copy(): FilterLookupEnumDescriptor;
|
|
113
118
|
}
|
|
@@ -31,6 +31,8 @@ export declare class MngCommonsService {
|
|
|
31
31
|
private userSubject;
|
|
32
32
|
private _userRoles;
|
|
33
33
|
private userRolesSubject;
|
|
34
|
+
private languageSubject;
|
|
35
|
+
private dataLanguageSubject;
|
|
34
36
|
constructor(router: Router, primengConfig: PrimeNGConfig, translate: TranslateService, titleService: Title, filterService: FilterService, moduleConfig: MngModuleConfig, localStorage: Storage);
|
|
35
37
|
get appName(): string;
|
|
36
38
|
get appOwner(): string;
|
|
@@ -41,12 +43,14 @@ export declare class MngCommonsService {
|
|
|
41
43
|
get appLanguages(): string[];
|
|
42
44
|
get appLanguage(): string | null;
|
|
43
45
|
set appLanguage(language: string | null);
|
|
46
|
+
get appLanguage$(): Observable<string | null>;
|
|
44
47
|
initLanguage(): string;
|
|
45
48
|
getOrInitLanguage(): string;
|
|
46
49
|
get appDataLanguages(): string[];
|
|
47
50
|
get appDataLanguageDefault(): string;
|
|
48
51
|
get appDataLanguage(): string | null;
|
|
49
52
|
set appDataLanguage(dataLanguage: string | null);
|
|
53
|
+
get appDataLanguage$(): Observable<string | null>;
|
|
50
54
|
get defaultDataLanguage(): string;
|
|
51
55
|
get appVersion(): import("../models").VersionConfigType;
|
|
52
56
|
get menuModeIsStatic(): boolean;
|
package/package.json
CHANGED
package/version-info.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"tag": "v1.
|
|
3
|
+
"version": "1.3.0-1c14fa2b",
|
|
4
|
+
"tag": "v1.3.0",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
7
|
-
"dirty":
|
|
8
|
-
"semver": "1.
|
|
9
|
-
"raw": "v1.
|
|
6
|
+
"hash": "1c14fa2b",
|
|
7
|
+
"dirty": true,
|
|
8
|
+
"semver": "1.3.0+0.g1c14fa2b.dirty",
|
|
9
|
+
"raw": "v1.3.0-1c14fa2b-dirty"
|
|
10
10
|
}
|