@mediusinc/mng-commons 7.0.0-rc.0 → 7.0.0-rc.2
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/core/index.d.ts +31 -11
- package/fesm2022/mediusinc-mng-commons-core.mjs +109 -77
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +36 -0
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +475 -35
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +0 -2
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs +30 -0
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BQ99oqWO.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.mjs +2700 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BLuM5Kpu.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +47 -6
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +189 -161
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/filter/index.d.ts +29 -3
- package/form/index.d.ts +143 -14
- package/i18n/en.json +17 -3
- package/i18n/sl.json +17 -3
- package/package.json +24 -24
- package/table/api/index.d.ts +4 -4
- package/table/index.d.ts +248 -145
- package/tableview/api/index.d.ts +18 -5
- package/tableview/index.d.ts +31 -34
- package/version-info.json +6 -6
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs +0 -30
- package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs.map +0 -1
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs +0 -2142
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs.map +0 -1
package/table/index.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import * as primeng_api from 'primeng/api';
|
|
2
|
-
import { SelectItem, SortMeta, MessageService, ToastMessageOptions } from 'primeng/api';
|
|
2
|
+
import { SelectItem, MenuItem, SortMeta, MessageService, ToastMessageOptions } from 'primeng/api';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { OnDestroy, Signal, TemplateRef,
|
|
4
|
+
import { OnDestroy, Signal, TemplateRef, PipeTransform, InjectionToken, Provider } from '@angular/core';
|
|
5
5
|
import * as _mediusinc_mng_commons_core from '@mediusinc/mng-commons/core';
|
|
6
|
-
import { FilterMatchModeExtendedType,
|
|
6
|
+
import { FilterMatchModeExtendedType, FilterState, FilterMatchMode, ILookupDataProvider, TemplateDirective, DataListParams, DataListResult, CommonsSerializationConfig, CommonsModuleConfig, CommonsFeature } from '@mediusinc/mng-commons/core';
|
|
7
7
|
import * as _mediusinc_mng_commons_filter from '@mediusinc/mng-commons/filter';
|
|
8
8
|
import { FilterDescriptor, FilterLookupTypeEnum, FilterTypeEnum, FilterLookupDescriptor, FilterGenericDescriptor, FilterDisplayTypeEnum, FilterGenericProperty } from '@mediusinc/mng-commons/filter';
|
|
9
|
-
import { ColumnDisplayTypeEnum, ColumnDescriptor, TablePaginationModeEnum, ITableDataProvider, TableDescriptorInst, SortDescriptor, TableLayoutPreferences, TableLoadEvent, TableCellClickEvent, TableReloadEvent } from '@mediusinc/mng-commons/table/api';
|
|
10
9
|
import { ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
10
|
+
import { ColumnDisplayTypeEnum, ColumnDescriptor, TablePaginationModeEnum, ITableDataProvider, TableDescriptorInst, SortDescriptor, TableLayoutPreferences, TableLoadEvent, TableCellClickEvent, TableReloadEvent } from '@mediusinc/mng-commons/table/api';
|
|
11
11
|
import { NgForm } from '@angular/forms';
|
|
12
12
|
import { Popover } from 'primeng/popover';
|
|
13
13
|
import * as _mediusinc_mng_commons_table from '@mediusinc/mng-commons/table';
|
|
14
|
-
import { TableColumnReorderEvent, TableRowReorderEvent,
|
|
15
|
-
import { PrimeNG } from 'primeng/config';
|
|
14
|
+
import { Table, TableColumnReorderEvent, TableRowReorderEvent, TableLazyLoadEvent, TableFilterEvent } from 'primeng/table';
|
|
16
15
|
import { MultiSelectChangeEvent } from 'primeng/multiselect';
|
|
16
|
+
import { PrimeNG } from 'primeng/config';
|
|
17
17
|
import { LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
|
|
18
18
|
import { TranslateService } from '@ngx-translate/core';
|
|
19
19
|
import { ReplaySubject, Observable } from 'rxjs';
|
|
20
20
|
|
|
21
|
-
interface
|
|
21
|
+
interface FilterConfig {
|
|
22
22
|
descriptor: FilterDescriptor<any, any>;
|
|
23
23
|
matchModes: SelectItem[];
|
|
24
24
|
defaultMatchMode: FilterMatchModeExtendedType;
|
|
25
25
|
dateConfig?: FilterDateConfig;
|
|
26
26
|
numberConfig?: FilterNumberConfig;
|
|
27
27
|
}
|
|
28
|
-
interface
|
|
29
|
-
|
|
28
|
+
interface FilterStateWithConfig extends FilterState {
|
|
29
|
+
config: FilterConfig;
|
|
30
30
|
}
|
|
31
31
|
interface FilterFormEmitEvent {
|
|
32
32
|
property: string;
|
|
@@ -35,7 +35,7 @@ interface FilterFormEmitEvent {
|
|
|
35
35
|
caseSensitive: boolean;
|
|
36
36
|
}
|
|
37
37
|
interface FilterActiveTagEvent {
|
|
38
|
-
filter:
|
|
38
|
+
filter: FilterStateWithConfig;
|
|
39
39
|
event?: Event;
|
|
40
40
|
}
|
|
41
41
|
interface FilterDateConfig {
|
|
@@ -46,87 +46,80 @@ interface FilterDateConfig {
|
|
|
46
46
|
format?: string;
|
|
47
47
|
showTime?: boolean;
|
|
48
48
|
showSeconds?: boolean;
|
|
49
|
+
showMilliseconds?: boolean;
|
|
50
|
+
primeTimePicker?: boolean;
|
|
51
|
+
timeSelectInterval?: number;
|
|
52
|
+
timeSelect?: boolean;
|
|
49
53
|
}
|
|
50
54
|
interface FilterNumberConfig {
|
|
51
55
|
fractionsMin?: number;
|
|
52
56
|
fractionsMax?: number;
|
|
53
57
|
}
|
|
54
58
|
|
|
59
|
+
declare class FilterService {
|
|
60
|
+
#private;
|
|
61
|
+
readonly state: _angular_core.Signal<FilterState | undefined>;
|
|
62
|
+
readonly isActive: _angular_core.Signal<boolean>;
|
|
63
|
+
constructor();
|
|
64
|
+
setConfig(config: FilterConfig): void;
|
|
65
|
+
setMatchMode(displayMatchMode: FilterMatchModeExtendedType): void;
|
|
66
|
+
toggleCaseSensitivity(): void;
|
|
67
|
+
clear(): void;
|
|
68
|
+
setDisplayValue(displayValue: any): void;
|
|
69
|
+
setState(state?: FilterState, updateTable?: boolean): void;
|
|
70
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterService, never>;
|
|
71
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FilterService>;
|
|
72
|
+
}
|
|
73
|
+
|
|
55
74
|
/**
|
|
56
75
|
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
57
76
|
* and these must be propagated through to this component and beyond to primeNG.
|
|
58
77
|
*/
|
|
59
|
-
declare class
|
|
78
|
+
declare class TableFilterComponent implements OnDestroy {
|
|
79
|
+
#private;
|
|
60
80
|
readonly lookupTypeDropdown: FilterLookupTypeEnum;
|
|
61
81
|
readonly lookupTypeAutocomplete: FilterLookupTypeEnum;
|
|
62
82
|
readonly FilterTypeEnum: typeof FilterTypeEnum;
|
|
63
83
|
readonly FilterMatchMode: typeof FilterMatchMode;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
private readonly
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
filterConstraint: _angular_core.WritableSignal<CommonsFilterMetadata | undefined>;
|
|
78
|
-
isFilterSet: _angular_core.Signal<boolean>;
|
|
79
|
-
isInputDisabled: _angular_core.Signal<boolean>;
|
|
80
|
-
overlayVisible: _angular_core.WritableSignal<boolean>;
|
|
81
|
-
isMultiselect: _angular_core.Signal<boolean>;
|
|
82
|
-
private overlaySubscription?;
|
|
83
|
-
private overlay;
|
|
84
|
-
private scrollHandler?;
|
|
85
|
-
private documentClickListener;
|
|
86
|
-
private documentResizeListener;
|
|
87
|
-
private resetSubscription?;
|
|
88
|
-
private selfClick?;
|
|
89
|
-
private overlayEventListener;
|
|
90
|
-
private readonly window;
|
|
91
|
-
private numericValueFromModelChange;
|
|
92
|
-
private dateDebounceSubject;
|
|
84
|
+
protected readonly filter: FilterService;
|
|
85
|
+
readonly config: _angular_core.InputSignal<FilterConfig>;
|
|
86
|
+
readonly model: _angular_core.InputSignal<ModelDescriptor<any>>;
|
|
87
|
+
readonly showFilterIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
88
|
+
readonly showTitleAsPlaceholder: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
89
|
+
protected readonly descriptorAsLookup: _angular_core.Signal<FilterLookupDescriptor<any, any, any, any, string | number | symbol, string | number | symbol> | undefined>;
|
|
90
|
+
private readonly icon;
|
|
91
|
+
protected readonly matchModes: _angular_core.Signal<primeng_api.SelectItem<any>[]>;
|
|
92
|
+
protected readonly isInputDisabled: _angular_core.Signal<boolean>;
|
|
93
|
+
protected readonly overlayVisible: _angular_core.WritableSignal<boolean>;
|
|
94
|
+
protected readonly isMultiselect: _angular_core.Signal<boolean>;
|
|
95
|
+
protected readonly placeholderKey: _angular_core.Signal<string>;
|
|
96
|
+
protected readonly booleanOptions: BooleanFilterDropdownItem[];
|
|
93
97
|
constructor();
|
|
94
98
|
ngOnDestroy(): void;
|
|
95
|
-
onTextModelChange(event: Event): void;
|
|
96
|
-
onTextInputEnterKeyDown(event: Event): void;
|
|
97
|
-
onNumericModelChange(value: number | null): void;
|
|
98
|
-
onNumericInputKeyDown(event: KeyboardEvent): void;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
autocompleteFilter(value: any): void;
|
|
102
|
-
dropdownFilter(value: any): void;
|
|
103
|
-
onMatchModeChange(displayMatchMode: FilterMatchModeExtendedType): void;
|
|
104
|
-
onMatchModeKeyDown(event: KeyboardEvent): void;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
private bindDocumentResizeListener;
|
|
120
|
-
private unbindDocumentResizeListener;
|
|
121
|
-
private bindScrollListener;
|
|
122
|
-
private unbindScrollListener;
|
|
123
|
-
private hideOverlay;
|
|
124
|
-
private onOverlayHide;
|
|
125
|
-
private updateFilterOnDisplayValueChange;
|
|
126
|
-
private initFilterConstraint;
|
|
127
|
-
private setFilterConstraint;
|
|
128
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableColumnFilterComponent, never>;
|
|
129
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableColumnFilterComponent, "mng-table-column-filter", never, { "metadata": { "alias": "metadata"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
99
|
+
protected onTextModelChange(event: Event): void;
|
|
100
|
+
protected onTextInputEnterKeyDown(event: Event): void;
|
|
101
|
+
protected onNumericModelChange(value: number | null): void;
|
|
102
|
+
protected onNumericInputKeyDown(event: KeyboardEvent): void;
|
|
103
|
+
protected onDateFilterModelChange(value: Date | Date[] | null): void;
|
|
104
|
+
protected booleanFilter(value: any): void;
|
|
105
|
+
protected autocompleteFilter(value: any): void;
|
|
106
|
+
protected dropdownFilter(value: any): void;
|
|
107
|
+
protected onMatchModeChange(displayMatchMode: FilterMatchModeExtendedType): void;
|
|
108
|
+
protected onMatchModeKeyDown(event: KeyboardEvent): void;
|
|
109
|
+
protected onCaseSensitivityToggle(): void;
|
|
110
|
+
protected clear(): void;
|
|
111
|
+
protected toggleMenu(event: Event): void;
|
|
112
|
+
protected onToggleButtonKeyDown(event: KeyboardEvent): void;
|
|
113
|
+
protected onEscape(): void;
|
|
114
|
+
protected onContentClick(): void;
|
|
115
|
+
protected onOverlayAnimationStart(event: any): void;
|
|
116
|
+
protected onOverlayAnimationEnd(event: any): void;
|
|
117
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilterComponent, never>;
|
|
118
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableFilterComponent, "mng-table-filter", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "model": { "alias": "model"; "required": true; "isSignal": true; }; "showFilterIcon": { "alias": "showFilterIcon"; "required": false; "isSignal": true; }; "showTitleAsPlaceholder": { "alias": "showTitleAsPlaceholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
interface BooleanFilterDropdownItem {
|
|
121
|
+
label: string;
|
|
122
|
+
value: boolean;
|
|
130
123
|
}
|
|
131
124
|
|
|
132
125
|
declare class TableColumnValueComponent<T, TT> {
|
|
@@ -162,20 +155,27 @@ declare class TableColumnValueComponent<T, TT> {
|
|
|
162
155
|
}
|
|
163
156
|
|
|
164
157
|
declare class TableFilterActiveTagComponent {
|
|
158
|
+
private readonly translateService;
|
|
165
159
|
readonly FilterMatchMode: typeof FilterMatchMode;
|
|
166
160
|
model: _angular_core.InputSignal<ModelDescriptor<any>>;
|
|
167
|
-
filter: _angular_core.InputSignal<
|
|
161
|
+
filter: _angular_core.InputSignal<FilterStateWithConfig>;
|
|
168
162
|
edit: _angular_core.OutputEmitterRef<FilterActiveTagEvent>;
|
|
169
163
|
remove: _angular_core.OutputEmitterRef<FilterActiveTagEvent>;
|
|
164
|
+
toggleDisabled: _angular_core.OutputEmitterRef<FilterActiveTagEvent>;
|
|
170
165
|
label: _angular_core.Signal<string>;
|
|
171
166
|
matchMode: _angular_core.Signal<string | undefined>;
|
|
172
167
|
matchModeSymbol: _angular_core.Signal<string>;
|
|
173
168
|
value: _angular_core.Signal<any>;
|
|
169
|
+
protected isActive: _angular_core.Signal<boolean>;
|
|
170
|
+
menuItems: _angular_core.WritableSignal<MenuItem[]>;
|
|
171
|
+
private tagMenu;
|
|
174
172
|
onRemove(event: Event): void;
|
|
175
173
|
onEdit(event: Event): void;
|
|
174
|
+
onDisable(event: Event): void;
|
|
175
|
+
openTagMenu(event: Event): void;
|
|
176
176
|
private getPropertyLabelKey;
|
|
177
177
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilterActiveTagComponent, never>;
|
|
178
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableFilterActiveTagComponent, "mng-table-filter-active-tag", never, { "model": { "alias": "model"; "required": true; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; }, { "edit": "edit"; "remove": "remove"; }, never, never, true, never>;
|
|
178
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableFilterActiveTagComponent, "mng-table-filter-active-tag", never, { "model": { "alias": "model"; "required": true; "isSignal": true; }; "filter": { "alias": "filter"; "required": true; "isSignal": true; }; }, { "edit": "edit"; "remove": "remove"; "toggleDisabled": "toggleDisabled"; }, never, never, true, never>;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
declare class TableFilterFormComponent {
|
|
@@ -186,17 +186,17 @@ declare class TableFilterFormComponent {
|
|
|
186
186
|
private readonly elementRef;
|
|
187
187
|
private readonly translate;
|
|
188
188
|
title: _angular_core.InputSignal<string | undefined>;
|
|
189
|
-
metadata: _angular_core.InputSignal<
|
|
189
|
+
metadata: _angular_core.InputSignal<FilterConfig[]>;
|
|
190
190
|
genericDescriptor: _angular_core.InputSignal<FilterGenericDescriptor | undefined>;
|
|
191
191
|
model: _angular_core.InputSignal<ModelDescriptor<any>>;
|
|
192
|
-
filter: _angular_core.InputSignal<
|
|
192
|
+
filter: _angular_core.InputSignal<FilterStateWithConfig | undefined>;
|
|
193
193
|
overlay: _angular_core.InputSignal<Popover | undefined>;
|
|
194
194
|
disabledProperties: _angular_core.InputSignal<string[]>;
|
|
195
195
|
enableCaseSensitive: _angular_core.InputSignal<boolean>;
|
|
196
196
|
propertySearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
197
197
|
apply: _angular_core.OutputEmitterRef<FilterFormEmitEvent>;
|
|
198
198
|
propertyOptionsWithTranslations: _angular_core.Signal<PropertyModel[]>;
|
|
199
|
-
selectedFilterMetadata: _angular_core.Signal<
|
|
199
|
+
selectedFilterMetadata: _angular_core.Signal<FilterConfig | undefined>;
|
|
200
200
|
genericValueDataProvider: _angular_core.Signal<ILookupDataProvider<string, any, any, "field"> | undefined>;
|
|
201
201
|
selectedDescriptorAsLookup: _angular_core.Signal<FilterLookupDescriptor<any, any, any, any, string | number | symbol, string | number | symbol> | undefined>;
|
|
202
202
|
isEdit: _angular_core.Signal<boolean>;
|
|
@@ -208,6 +208,7 @@ declare class TableFilterFormComponent {
|
|
|
208
208
|
valueModel: _angular_core.WritableSignal<any>;
|
|
209
209
|
caseSensitiveModel: _angular_core.WritableSignal<boolean>;
|
|
210
210
|
isMultiselect: _angular_core.Signal<boolean>;
|
|
211
|
+
protected addFilterShortcutText: string;
|
|
211
212
|
constructor();
|
|
212
213
|
onFormSubmit(form: NgForm): void;
|
|
213
214
|
resetForm(value?: FilterFormModel): void;
|
|
@@ -227,12 +228,20 @@ interface PropertyModel {
|
|
|
227
228
|
disabled: boolean;
|
|
228
229
|
}
|
|
229
230
|
|
|
230
|
-
|
|
231
|
+
type NameType$1 = 'title' | 'titleRowRight';
|
|
232
|
+
declare class TableHeaderWithFiltersTemplateDirective extends TemplateDirective<NameType$1> {
|
|
233
|
+
readonly name: _angular_core.InputSignal<NameType$1>;
|
|
234
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableHeaderWithFiltersTemplateDirective, never>;
|
|
235
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableHeaderWithFiltersTemplateDirective, "[mngTableHeaderWithFiltersTemplate]", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare class TableHeaderWithFiltersComponent {
|
|
239
|
+
private readonly translateService;
|
|
231
240
|
private static readonly SEARCH_WORD_LIMIT_MAX;
|
|
232
|
-
private readonly primeTable;
|
|
233
241
|
private readonly tableData;
|
|
234
242
|
private readonly tableConfig;
|
|
235
|
-
|
|
243
|
+
readonly defaultFilterDisplayType: FilterDisplayTypeEnum;
|
|
244
|
+
metadata: _angular_core.InputSignal<FilterConfig[]>;
|
|
236
245
|
genericFilterDescriptor: _angular_core.InputSignal<FilterGenericDescriptor | undefined>;
|
|
237
246
|
model: _angular_core.InputSignal<ModelDescriptor<any>>;
|
|
238
247
|
enableSearch: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -242,17 +251,28 @@ declare class TableFilterOverlayWithTagComponent {
|
|
|
242
251
|
} | undefined>;
|
|
243
252
|
searchLimitWordMax: _angular_core.InputSignal<number | null | undefined>;
|
|
244
253
|
enableCaseSensitive: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
254
|
+
protected filterMenuItems: _angular_core.WritableSignal<MenuItem[]>;
|
|
245
255
|
private filterOverlay;
|
|
246
256
|
private filterFormComponent;
|
|
247
|
-
templates: Signal<readonly
|
|
257
|
+
templates: Signal<readonly TableHeaderWithFiltersTemplateDirective[]>;
|
|
248
258
|
titleTemplate: Signal<TemplateRef<any> | null>;
|
|
249
|
-
|
|
250
|
-
|
|
259
|
+
titleRowRightTemplate: Signal<TemplateRef<any> | null>;
|
|
260
|
+
overlayFormMetadata: Signal<FilterConfig[]>;
|
|
261
|
+
directInputMetadata: Signal<FilterConfig[]>;
|
|
262
|
+
overlayFormFilters: Signal<{
|
|
263
|
+
[p: string]: FilterStateWithConfig;
|
|
251
264
|
}>;
|
|
252
|
-
|
|
253
|
-
activeFilters: Signal<
|
|
265
|
+
showOverlayFilterFormButton: Signal<boolean>;
|
|
266
|
+
activeFilters: Signal<FilterStateWithConfig[]>;
|
|
254
267
|
activeFilterProperties: Signal<string[]>;
|
|
255
|
-
filterEdit: _angular_core.WritableSignal<
|
|
268
|
+
filterEdit: _angular_core.WritableSignal<FilterStateWithConfig | undefined>;
|
|
269
|
+
protected unsetRequiredFilters: Signal<{
|
|
270
|
+
matchMode: string;
|
|
271
|
+
displayMatchMode: string;
|
|
272
|
+
config: FilterConfig;
|
|
273
|
+
}[]>;
|
|
274
|
+
protected allActiveFiltersDisabled: Signal<boolean>;
|
|
275
|
+
protected addFilterShortcutText: string;
|
|
256
276
|
searchValue: Signal<string | undefined>;
|
|
257
277
|
searchCaseSensitive: Signal<boolean | undefined>;
|
|
258
278
|
searchWordLimitMaxError: _angular_core.WritableSignal<boolean>;
|
|
@@ -260,42 +280,106 @@ declare class TableFilterOverlayWithTagComponent {
|
|
|
260
280
|
private searchValueSubject;
|
|
261
281
|
private searchCaseSensitiveSubject;
|
|
262
282
|
private clickedOnFilterEvent;
|
|
283
|
+
private readonly filterSplitButton;
|
|
284
|
+
private readonly searchInput;
|
|
263
285
|
constructor();
|
|
264
|
-
onFilterFormApply(event: FilterFormEmitEvent): void;
|
|
265
|
-
onFilterRemove(event: FilterActiveTagEvent): void;
|
|
266
|
-
onFilterEdit(event: FilterActiveTagEvent): void;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
286
|
+
protected onFilterFormApply(event: FilterFormEmitEvent): void;
|
|
287
|
+
protected onFilterRemove(event: FilterActiveTagEvent): void;
|
|
288
|
+
protected onFilterEdit(event: FilterActiveTagEvent): void;
|
|
289
|
+
private overlaySelectors;
|
|
290
|
+
private isOverlayOpen;
|
|
291
|
+
filterShortcuts(event: KeyboardEvent): void;
|
|
292
|
+
protected onFilterSplitButtonShow(): void;
|
|
293
|
+
protected onFilterAdd(event: Event): void;
|
|
294
|
+
protected onFilterToggleDisabled(event: FilterActiveTagEvent): void;
|
|
295
|
+
private onFilterToggleDisableAll;
|
|
296
|
+
private onFilterRemoveAll;
|
|
297
|
+
protected onSearchChange(value: string): void;
|
|
298
|
+
protected onSearchSubmit(event: Event): void;
|
|
299
|
+
protected onSearchCaseSensitiveChange(value: boolean): void;
|
|
300
|
+
protected onOverlayHide(): void;
|
|
271
301
|
private onFilterAddOrEdit;
|
|
272
302
|
private getInitialFilters;
|
|
273
|
-
private
|
|
274
|
-
private
|
|
275
|
-
|
|
276
|
-
static
|
|
303
|
+
private updateFilter;
|
|
304
|
+
private updateSearch;
|
|
305
|
+
protected readonly FilterTypeEnum: typeof FilterTypeEnum;
|
|
306
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableHeaderWithFiltersComponent, never>;
|
|
307
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableHeaderWithFiltersComponent, "mng-table-header-with-filters", never, { "metadata": { "alias": "metadata"; "required": true; "isSignal": true; }; "genericFilterDescriptor": { "alias": "genericFilterDescriptor"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": true; "isSignal": true; }; "enableSearch": { "alias": "enableSearch"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "searchLimitWordMax": { "alias": "searchLimitWordMax"; "required": false; "isSignal": true; }; "enableCaseSensitive": { "alias": "enableCaseSensitive"; "required": false; "isSignal": true; }; }, {}, ["templates"], never, true, never>;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
interface SearchState {
|
|
311
|
+
value: string;
|
|
312
|
+
caseSensitive: boolean;
|
|
313
|
+
}
|
|
314
|
+
declare abstract class ADataListService<Item> {
|
|
315
|
+
abstract readonly params: Signal<DataListParams | undefined>;
|
|
316
|
+
abstract readonly sortStates: Signal<SortMeta[] | undefined>;
|
|
317
|
+
abstract readonly filterStates: Signal<Record<string, FilterState>>;
|
|
318
|
+
abstract readonly searchState: Signal<SearchState | undefined>;
|
|
319
|
+
abstract readonly offset: Signal<number>;
|
|
320
|
+
abstract readonly rows: Signal<number>;
|
|
321
|
+
abstract readonly data: Signal<Item[]>;
|
|
322
|
+
abstract readonly count: Signal<number>;
|
|
323
|
+
abstract readonly loading: Signal<boolean>;
|
|
324
|
+
/**
|
|
325
|
+
* Sets the params.
|
|
326
|
+
* @param params The new params to set.
|
|
327
|
+
* @param fromQueryParams
|
|
328
|
+
*/
|
|
329
|
+
abstract setParams(params: DataListParams, fromQueryParams: boolean): void;
|
|
330
|
+
/**
|
|
331
|
+
* Updates filter states when not directly set by `setParams`.
|
|
332
|
+
*
|
|
333
|
+
* @param filters Map of filters with state updates.
|
|
334
|
+
*/
|
|
335
|
+
abstract updateFilters(filters: Record<string, FilterState | undefined>): void;
|
|
336
|
+
/**
|
|
337
|
+
* Updates search state when not directly set by `setParams`.
|
|
338
|
+
*
|
|
339
|
+
* @param search
|
|
340
|
+
*/
|
|
341
|
+
abstract updateSearch(search: SearchState | undefined): void;
|
|
342
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ADataListService<any>, never>;
|
|
343
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ADataListService<any>>;
|
|
277
344
|
}
|
|
278
345
|
|
|
279
|
-
declare class TableDataService<Item>
|
|
346
|
+
declare class TableDataService<Item> extends ADataListService<Item> {
|
|
280
347
|
#private;
|
|
281
348
|
readonly params: Signal<DataListParams<string, string> | undefined>;
|
|
282
|
-
readonly
|
|
283
|
-
readonly
|
|
284
|
-
readonly
|
|
349
|
+
readonly sortStates: Signal<SortMeta[] | undefined>;
|
|
350
|
+
readonly filterStates: Signal<Record<string, FilterState>>;
|
|
351
|
+
readonly primeFilterStates: Signal<{
|
|
352
|
+
[x: string]: FilterState;
|
|
353
|
+
}>;
|
|
354
|
+
readonly searchState: Signal<{
|
|
285
355
|
value: string;
|
|
286
356
|
caseSensitive: boolean;
|
|
287
357
|
} | undefined>;
|
|
288
358
|
readonly isAllPaginationMetaInitialized: Signal<boolean>;
|
|
289
359
|
readonly paginationMode: Signal<TablePaginationModeEnum>;
|
|
290
360
|
readonly offset: Signal<number>;
|
|
291
|
-
readonly rows: Signal<number
|
|
361
|
+
readonly rows: Signal<number>;
|
|
292
362
|
readonly data: Signal<Item[]>;
|
|
293
363
|
readonly count: Signal<number>;
|
|
294
364
|
readonly loading: Signal<boolean>;
|
|
295
365
|
readonly selectedItems: _angular_core.WritableSignal<Item[]>;
|
|
366
|
+
constructor();
|
|
296
367
|
setDataSources(arrayItems: Signal<Item[] | undefined>, dataListResult: Signal<DataListResult<Item> | undefined>, dataProvider: Signal<ITableDataProvider<Item, any, any, any> | undefined>, manualLoading: Signal<boolean | undefined>): void;
|
|
297
|
-
|
|
368
|
+
setPrimeTable(cmp?: Table<Item>): void;
|
|
369
|
+
fetchWithDataProvider(paramsList: DataListParams, onErrorFn: (error: Error) => void): boolean;
|
|
298
370
|
setParams(params: DataListParams, fromQueryParams?: boolean): void;
|
|
371
|
+
/**
|
|
372
|
+
* Updates primeNG component with new filters and triggers data reload (if lazy load) or inline filtering.ž
|
|
373
|
+
* Usually setting the params should trigger the cycle to load data and calculate other states (sort, filter, search, etc.) from params.
|
|
374
|
+
* In case of PrimeNG's inline filtering, the internal primeNG state must be updated first and the states must subsequently be updated via callback functions.
|
|
375
|
+
*
|
|
376
|
+
* @param filters - { [fieldName]: FilterState | undefined } where:
|
|
377
|
+
* - fieldName = column field identifier
|
|
378
|
+
* - FilterState = full filter config
|
|
379
|
+
* - undefined = clears filter for that field
|
|
380
|
+
*/
|
|
381
|
+
updateFilters(filters: Record<string, FilterState | undefined>): void;
|
|
382
|
+
updateSearch(search: SearchState | undefined): void;
|
|
299
383
|
/**
|
|
300
384
|
* Compare the given params with the stored params in the DataListService.
|
|
301
385
|
*
|
|
@@ -304,7 +388,6 @@ declare class TableDataService<Item> implements OnDestroy {
|
|
|
304
388
|
* @return {boolean} - True if the given params match the stored params, otherwise false.
|
|
305
389
|
*/
|
|
306
390
|
private compareWithCurrentParams;
|
|
307
|
-
ngOnDestroy(): void;
|
|
308
391
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableDataService<any>, never>;
|
|
309
392
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableDataService<any>>;
|
|
310
393
|
}
|
|
@@ -312,7 +395,6 @@ declare class TableDataService<Item> implements OnDestroy {
|
|
|
312
395
|
declare class TableMetadataService {
|
|
313
396
|
#private;
|
|
314
397
|
static readonly cmpTypeName = "TableComponent";
|
|
315
|
-
readonly primeConfig: PrimeNG;
|
|
316
398
|
readonly moduleConfig: _mediusinc_mng_commons_core.CommonsModuleConfig | null;
|
|
317
399
|
readonly tableModuleConfig: _mediusinc_mng_commons_table.TableFeatureConfig | null;
|
|
318
400
|
readonly serializationCfg: CommonsSerializationConfig;
|
|
@@ -321,15 +403,15 @@ declare class TableMetadataService {
|
|
|
321
403
|
readonly descriptor: Signal<TableDescriptorInst<any, any, any>>;
|
|
322
404
|
rowsPerPageOptions: Signal<number[]>;
|
|
323
405
|
readonly filterDescriptors: Signal<FilterDescriptor<any, any>[]>;
|
|
324
|
-
readonly filters: Signal<
|
|
406
|
+
readonly filters: Signal<FilterConfig[]>;
|
|
325
407
|
readonly genericFilterDescriptor: Signal<_mediusinc_mng_commons_filter.FilterGenericDescriptor | undefined>;
|
|
326
|
-
readonly genericFilters: Signal<
|
|
408
|
+
readonly genericFilters: Signal<FilterConfig[]>;
|
|
327
409
|
readonly searchFields: Signal<string[]>;
|
|
328
410
|
readonly defaultParams: Signal<DataListParams<string, string>>;
|
|
329
411
|
constructor();
|
|
330
412
|
setSignalSources(descriptor: Signal<TableDescriptorInst<any, any>>, searchFields: Signal<string[] | undefined>): void;
|
|
331
413
|
setDescriptor(descriptor: TableDescriptorInst<any, any, any>): void;
|
|
332
|
-
private
|
|
414
|
+
private mapFilterDescriptorToMetadata;
|
|
333
415
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableMetadataService, never>;
|
|
334
416
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableMetadataService>;
|
|
335
417
|
}
|
|
@@ -337,7 +419,7 @@ declare class TableMetadataService {
|
|
|
337
419
|
interface ColumnWithPreferences {
|
|
338
420
|
id: string;
|
|
339
421
|
descriptor: ColumnDescriptor<any, any>;
|
|
340
|
-
filter?:
|
|
422
|
+
filter?: FilterConfig;
|
|
341
423
|
sort?: SortDescriptor<any>;
|
|
342
424
|
disabled: boolean;
|
|
343
425
|
isVisible: boolean;
|
|
@@ -366,9 +448,38 @@ declare class TablePreferencesService {
|
|
|
366
448
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TablePreferencesService>;
|
|
367
449
|
}
|
|
368
450
|
|
|
369
|
-
|
|
451
|
+
interface ITable<Item = any> {
|
|
452
|
+
metadata: TableMetadataService;
|
|
453
|
+
prefs: TablePreferencesService;
|
|
454
|
+
data: TableDataService<Item>;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
type TableTemplateContext = {
|
|
458
|
+
data: any[];
|
|
459
|
+
totalCount: number;
|
|
460
|
+
table: ITable;
|
|
461
|
+
};
|
|
462
|
+
type TableRowTemplateContext = TableTemplateContext & {
|
|
463
|
+
item: any;
|
|
464
|
+
index: number;
|
|
465
|
+
};
|
|
466
|
+
type TableColumnTemplateContext = TableTemplateContext & {
|
|
467
|
+
property: string;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
type NameType = 'columnCustomLast' | 'footer' | 'rowExpandContent' | 'columnHeader' | 'headerTitleRowRight' | 'headerTitle' | 'header';
|
|
471
|
+
type ContextType<Name extends NameType> = Name extends 'columnCustomLast' | 'rowExpandContent' ? TableRowTemplateContext : Name extends 'columnHeader' ? TableColumnTemplateContext : TableTemplateContext;
|
|
472
|
+
declare class TableTemplateDirective<Name extends NameType = NameType> extends TemplateDirective<Name, ContextType<Name>> {
|
|
473
|
+
readonly name: _angular_core.InputSignal<Name>;
|
|
474
|
+
static ngTemplateContextGuard<Name extends NameType>(dir: TableTemplateDirective<Name>, ctx: any): ctx is ContextType<Name>;
|
|
475
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableTemplateDirective<any>, never>;
|
|
476
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableTemplateDirective<any>, "[mngTableTemplate]", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare class TableComponent<Item = any, Service = undefined, Sorts = any, Filters extends keyof any = any> implements ITable<Item> {
|
|
370
480
|
#private;
|
|
371
481
|
private readonly filterKeyPrepend;
|
|
482
|
+
protected readonly FilterTypeEnum: typeof FilterTypeEnum;
|
|
372
483
|
private readonly logger;
|
|
373
484
|
private readonly router;
|
|
374
485
|
private readonly route;
|
|
@@ -393,10 +504,8 @@ declare class TableComponent<Item = any, Service = undefined, Sorts = any, Filte
|
|
|
393
504
|
}>;
|
|
394
505
|
columnLastMinWidth: _angular_core.InputSignal<number | undefined>;
|
|
395
506
|
columnsColspan: Signal<number>;
|
|
396
|
-
hasTitleDisplay: Signal<string |
|
|
397
|
-
isCaptionVisible: Signal<string | boolean |
|
|
398
|
-
captionComponent: _angular_core.InputSignal<Type<any> | undefined>;
|
|
399
|
-
columnCustomLastComponent: _angular_core.InputSignal<Type<any> | undefined>;
|
|
507
|
+
hasTitleDisplay: Signal<string | TemplateRef<TableTemplateContext> | undefined>;
|
|
508
|
+
isCaptionVisible: Signal<string | boolean | TemplateRef<TableTemplateContext> | undefined>;
|
|
400
509
|
globalFilterFieldsInput: _angular_core.InputSignal<string[] | undefined>;
|
|
401
510
|
private cellClickSubject;
|
|
402
511
|
isCellClickObserved: _angular_core.WritableSignal<boolean>;
|
|
@@ -404,27 +513,27 @@ declare class TableComponent<Item = any, Service = undefined, Sorts = any, Filte
|
|
|
404
513
|
tableLoad: _angular_core.OutputEmitterRef<TableLoadEvent>;
|
|
405
514
|
cellClick: _angular_core.OutputRef<TableCellClickEvent<Item>>;
|
|
406
515
|
selectionChange: _angular_core.OutputEmitterRef<Item[]>;
|
|
407
|
-
captionComponentInstance: _angular_core.OutputEmitterRef<any>;
|
|
408
|
-
columnCustomLastComponentInstance: _angular_core.OutputEmitterRef<any>;
|
|
409
516
|
rowReorder: _angular_core.OutputEmitterRef<TableRowReorderEvent>;
|
|
410
|
-
templates:
|
|
411
|
-
|
|
412
|
-
primeTable: Signal<Table<
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
517
|
+
readonly templates: _angular_core.InputSignal<TableTemplateDirective<"footer" | "header" | "columnCustomLast" | "rowExpandContent" | "columnHeader" | "headerTitleRowRight" | "headerTitle">[]>;
|
|
518
|
+
readonly contentTemplates: Signal<readonly TableTemplateDirective<"footer" | "header" | "columnCustomLast" | "rowExpandContent" | "columnHeader" | "headerTitleRowRight" | "headerTitle">[]>;
|
|
519
|
+
readonly primeTable: Signal<Table<Item> | undefined>;
|
|
520
|
+
headerTemplate: Signal<TemplateRef<TableTemplateContext> | null>;
|
|
521
|
+
headerTitleTemplate: Signal<TemplateRef<TableTemplateContext> | null>;
|
|
522
|
+
titleRowRightTemplate: Signal<TemplateRef<TableTemplateContext> | null>;
|
|
523
|
+
columnCustomLastTemplate: Signal<TemplateRef<TableRowTemplateContext> | null>;
|
|
524
|
+
footerTemplate: Signal<TemplateRef<TableTemplateContext> | null>;
|
|
525
|
+
rowExpandTemplate: Signal<TemplateRef<TableRowTemplateContext> | null>;
|
|
526
|
+
columnHeaderTemplate: Signal<TemplateRef<TableColumnTemplateContext> | null>;
|
|
417
527
|
isLazy: Signal<boolean>;
|
|
418
528
|
isPagination: Signal<boolean>;
|
|
419
|
-
useQueryParamsInitialized: _angular_core.WritableSignal<boolean>;
|
|
420
529
|
className: Signal<string>;
|
|
421
530
|
visibleColumns: Signal<_mediusinc_mng_commons_table.ColumnWithPreferences[]>;
|
|
422
531
|
areColumnsReorderable: Signal<boolean>;
|
|
423
532
|
areColumnsToggleable: Signal<boolean>;
|
|
424
533
|
hasColumnFilters: Signal<boolean>;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
hasLastColumn: Signal<boolean |
|
|
534
|
+
tableHeaderFilters: Signal<_mediusinc_mng_commons_table.FilterConfig[]>;
|
|
535
|
+
protected requiredFiltersMissing: Signal<boolean>;
|
|
536
|
+
hasLastColumn: Signal<boolean | TemplateRef<TableRowTemplateContext>>;
|
|
428
537
|
private lastLazyLoadEvent?;
|
|
429
538
|
private lastParamsWithDefaults?;
|
|
430
539
|
private navigationOutOfTableInProgress;
|
|
@@ -439,7 +548,7 @@ declare class TableComponent<Item = any, Service = undefined, Sorts = any, Filte
|
|
|
439
548
|
private loadTableWithDataProvider;
|
|
440
549
|
private loadTableFromRouteUpdate;
|
|
441
550
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any, any, any, any>, never>;
|
|
442
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any, any, any, any>, "mng-table", never, { "descriptorInput": { "alias": "descriptor"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "result": { "alias": "result"; "required": false; "isSignal": true; }; "loadingInput": { "alias": "loading"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; "isSignal": true; }; "cellClickEnabled": { "alias": "cellClickEnabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; "isSignal": true; }; "rowReorderEnabledInput": { "alias": "rowReorderEnabled"; "required": false; "isSignal": true; }; "columnLastMinWidth": { "alias": "columnLastMinWidth"; "required": false; "isSignal": true; }; "
|
|
551
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any, any, any, any>, "mng-table", never, { "descriptorInput": { "alias": "descriptor"; "required": true; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "result": { "alias": "result"; "required": false; "isSignal": true; }; "loadingInput": { "alias": "loading"; "required": false; "isSignal": true; }; "dataProvider": { "alias": "dataProvider"; "required": false; "isSignal": true; }; "useQueryParams": { "alias": "useQueryParams"; "required": false; "isSignal": true; }; "cellClickEnabled": { "alias": "cellClickEnabled"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionEnabled": { "alias": "selectionEnabled"; "required": false; "isSignal": true; }; "rowReorderEnabledInput": { "alias": "rowReorderEnabled"; "required": false; "isSignal": true; }; "columnLastMinWidth": { "alias": "columnLastMinWidth"; "required": false; "isSignal": true; }; "globalFilterFieldsInput": { "alias": "globalFilterFields"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; }, { "tableLoad": "tableLoad"; "cellClick": "cellClick"; "selectionChange": "selectionChange"; "rowReorder": "rowReorder"; }, ["contentTemplates"], never, true, never>;
|
|
443
552
|
}
|
|
444
553
|
|
|
445
554
|
declare function filterGenerateMatchModeOptions(primeConfig: PrimeNG, descriptor: FilterDescriptor<any, any> | undefined, cmpSerCfg?: CommonsSerializationConfig): SelectItem[];
|
|
@@ -452,15 +561,8 @@ declare function filterGenerateMatchModeOptions(primeConfig: PrimeNG, descriptor
|
|
|
452
561
|
* @return {FilterMatchModeExtendedType} The default match mode for the filter.
|
|
453
562
|
*/
|
|
454
563
|
declare function filterGetDefaultMatchMode(descriptor?: FilterDescriptor<any, any>, matchModes?: SelectItem[]): FilterMatchModeExtendedType;
|
|
455
|
-
declare function
|
|
456
|
-
declare function
|
|
457
|
-
displayMatchMode: string;
|
|
458
|
-
matchMode: string;
|
|
459
|
-
displayValue: any;
|
|
460
|
-
value: SingleOrArrayType<Nullable<string | number | boolean | Date>>;
|
|
461
|
-
caseSensitive: boolean | undefined;
|
|
462
|
-
operator?: string;
|
|
463
|
-
};
|
|
564
|
+
declare function filterSetStateOnChange(filter: FilterState, matchMode?: FilterMatchModeExtendedType, value?: any, filterType?: FilterTypeEnum, filterDateCfg?: FilterDateConfig): FilterState;
|
|
565
|
+
declare function filterSetStateOnDisplayChange(filter: FilterState | undefined, displayMatchMode: FilterMatchModeExtendedType, displayValue: any, filterType?: FilterTypeEnum, filterDateCfg?: FilterDateConfig): FilterState;
|
|
464
566
|
declare function filterAreDatesEqual(fromDate: Date | string | number, toDate: Date | string | number, filterDateCfg?: FilterDateConfig): boolean;
|
|
465
567
|
declare function filterApplySerializationConfigToCmp(config: CommonsModuleConfig | null, cmpSerCfg: CommonsSerializationConfig): void;
|
|
466
568
|
declare function filterAdjustDisplayValueOnMatchModeChange(matchMode?: FilterMatchModeExtendedType, value?: any): any;
|
|
@@ -473,6 +575,7 @@ declare function filterGetNumberConfig(descriptor?: FilterDescriptor<any, any>):
|
|
|
473
575
|
* @param {LookupDataProviderInst<string, any, any, 'field'>} [valueLookup] - The lookup data provider for value suggestions.
|
|
474
576
|
*/
|
|
475
577
|
declare function createFilterDescriptorsFromGeneric(properties: FilterGenericProperty[], valueLookup?: LookupDataProviderInst<string, any, any, 'field'>): FilterDescriptor<any, any>[] | [];
|
|
578
|
+
declare function isFilterValueBlank(value: any): boolean;
|
|
476
579
|
|
|
477
580
|
/**
|
|
478
581
|
* Generates and displays a notification for a table-related error with localized error messages and details.
|
|
@@ -516,10 +619,10 @@ declare class LocaleDefaultRowClassPipe<T> implements PipeTransform {
|
|
|
516
619
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LocaleDefaultRowClassPipe<any>, "mngLocaleDefaultRowClass", true>;
|
|
517
620
|
}
|
|
518
621
|
|
|
519
|
-
declare class
|
|
622
|
+
declare class TableFilterClassPipe implements PipeTransform {
|
|
520
623
|
transform(value: unknown, filter: FilterDescriptor<any, any> | undefined, isEnabled: boolean): string;
|
|
521
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
522
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<
|
|
624
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilterClassPipe, never>;
|
|
625
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<TableFilterClassPipe, "mngTableFilterClass", true>;
|
|
523
626
|
}
|
|
524
627
|
|
|
525
628
|
interface TableFeatureConfig {
|
|
@@ -541,5 +644,5 @@ declare function withTable(config?: TableFeatureConfig): CommonsFeature;
|
|
|
541
644
|
*/
|
|
542
645
|
declare function provideTableChild(config?: TableFeatureConfig): Provider[];
|
|
543
646
|
|
|
544
|
-
export {
|
|
545
|
-
export type { ColumnWithPreferences, FilterActiveTagEvent, FilterDateConfig, FilterFormEmitEvent,
|
|
647
|
+
export { ADataListService, COMMONS_TABLE_FEATURE_CONFIG_IT, FilterService, FilterValuePipe, LocaleDefaultRowClassPipe, TableColumnValueComponent, TableComponent, TableDataService, TableFilterActiveTagComponent, TableFilterClassPipe, TableFilterComponent, TableFilterFormComponent, TableHeaderWithFiltersComponent, TableTemplateDirective, createFilterDescriptorsFromGeneric, filterAdjustDisplayValueOnMatchModeChange, filterApplySerializationConfigToCmp, filterAreDatesEqual, filterGenerateMatchModeOptions, filterGetDateConfig, filterGetDefaultMatchMode, filterGetNumberConfig, filterSetStateOnChange, filterSetStateOnDisplayChange, generateTableLayoutPrefsKey, isFilterValueBlank, provideTableChild, tableNotificationError, withTable };
|
|
648
|
+
export type { ColumnWithPreferences, FilterActiveTagEvent, FilterConfig, FilterDateConfig, FilterFormEmitEvent, FilterNumberConfig, FilterStateWithConfig, ITable, SearchState, TableFeatureConfig };
|