@mediusinc/mng-commons 0.2.4 → 0.2.5
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-filter/column-filter.component.mjs +22 -11
- package/esm2020/lib/descriptors/table.descriptor.mjs +27 -1
- package/esm2020/lib/services/commons.service.mjs +15 -15
- package/fesm2015/mediusinc-mng-commons.mjs +56 -18
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +55 -18
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +5 -0
- package/lib/descriptors/table.descriptor.d.ts +20 -0
- package/package.json +1 -1
- package/scss/common/layout/_exception.scss +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { PrimeNGConfig, SelectItem } from 'primeng/api';
|
|
2
3
|
import { FilterDescriptor, FilterLookupDescriptor, TableDescriptor } from '../../../../descriptors';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
@@ -6,6 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
6
7
|
* and these must be propagated through to this component and beyond to primeNG.
|
|
7
8
|
*/
|
|
8
9
|
export declare class MngTableColumnFilterComponent<T> implements OnInit {
|
|
10
|
+
private primeConfig;
|
|
9
11
|
readonly lookupTypeDropdown: FilterLookupDescriptor.LookupTypeEnum;
|
|
10
12
|
readonly lookupTypeAutocomplete: FilterLookupDescriptor.LookupTypeEnum;
|
|
11
13
|
descriptor: FilterDescriptor<T>;
|
|
@@ -13,8 +15,11 @@ export declare class MngTableColumnFilterComponent<T> implements OnInit {
|
|
|
13
15
|
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
14
16
|
primeField: string;
|
|
15
17
|
primeType: string;
|
|
18
|
+
primeShowMatchMode: boolean;
|
|
16
19
|
primeDefaultMatchMode: string;
|
|
17
20
|
primeDisplay: string;
|
|
21
|
+
primeMatchModes: SelectItem[] | null;
|
|
22
|
+
constructor(primeConfig: PrimeNGConfig);
|
|
18
23
|
ngOnInit(): void;
|
|
19
24
|
autocompleteFilter(value: T, filterCallback: Function): void;
|
|
20
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableColumnFilterComponent<any>, never>;
|
|
@@ -99,12 +99,14 @@ export declare class FilterDescriptor<T> {
|
|
|
99
99
|
protected readonly _property: string;
|
|
100
100
|
protected _filterType: FilterDescriptor.TypeEnum;
|
|
101
101
|
protected _filterProperty?: string;
|
|
102
|
+
protected _matchModes: string[] | null;
|
|
102
103
|
protected _placeholder?: string;
|
|
103
104
|
protected _className: string;
|
|
104
105
|
constructor(property: string);
|
|
105
106
|
get property(): string;
|
|
106
107
|
get filterType(): FilterDescriptor.TypeEnum;
|
|
107
108
|
get filterProperty(): string | undefined;
|
|
109
|
+
get matchModes(): string[] | null;
|
|
108
110
|
get placeholder(): string | undefined;
|
|
109
111
|
get className(): string;
|
|
110
112
|
asFilterType(filterType: ColumnDescriptor.TypeEnum): this;
|
|
@@ -115,6 +117,7 @@ export declare class FilterDescriptor<T> {
|
|
|
115
117
|
withFilterProperty(filterProperty: string): this;
|
|
116
118
|
withPlaceholder(placeholder: string): this;
|
|
117
119
|
withClassName(className: string): this;
|
|
120
|
+
withMatchModes(matchModes: Array<FilterDescriptor.MatchModeEnum>): this;
|
|
118
121
|
protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
|
|
119
122
|
copy(): FilterDescriptor<T>;
|
|
120
123
|
}
|
|
@@ -126,6 +129,23 @@ export declare namespace FilterDescriptor {
|
|
|
126
129
|
Date = 3,
|
|
127
130
|
Lookup = 4
|
|
128
131
|
}
|
|
132
|
+
enum MatchModeEnum {
|
|
133
|
+
StartsWith = "startsWith",
|
|
134
|
+
Contains = "contains",
|
|
135
|
+
EndsWith = "endsWith",
|
|
136
|
+
Equals = "equals",
|
|
137
|
+
NotEquals = "notEquals",
|
|
138
|
+
In = "in",
|
|
139
|
+
LessThan = "lt",
|
|
140
|
+
LessThanOrEqualTo = "lte",
|
|
141
|
+
GreaterThan = "gt",
|
|
142
|
+
GreaterThanOrEqualTo = "gte",
|
|
143
|
+
Between = "between",
|
|
144
|
+
DateIs = "dateIs",
|
|
145
|
+
DateIsNot = "dateIsNot",
|
|
146
|
+
DateBefore = "dateBefore",
|
|
147
|
+
DateAfter = "dateAfter"
|
|
148
|
+
}
|
|
129
149
|
}
|
|
130
150
|
export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
|
|
131
151
|
private readonly _modelType;
|
package/package.json
CHANGED