@tilde-nlp/ngx-common 2.0.17 → 2.0.19
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/filter-bar/filter-bar.component.mjs +78 -53
- package/esm2020/lib/multi-functional-table/multi-functional-table.component.mjs +2 -2
- package/fesm2015/tilde-nlp-ngx-common.mjs +103 -78
- package/fesm2015/tilde-nlp-ngx-common.mjs.map +1 -1
- package/fesm2020/tilde-nlp-ngx-common.mjs +100 -76
- package/fesm2020/tilde-nlp-ngx-common.mjs.map +1 -1
- package/lib/filter-bar/filter-bar.component.d.ts +25 -22
- package/package.json +1 -1
|
@@ -3,48 +3,51 @@ import { FormControl, FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { FilterBarFilterItem } from './models';
|
|
4
4
|
import { FilterBarChangeEvent } from './models/filter-bar-change-event.model';
|
|
5
5
|
import { FilterBarSettings } from './models/filter-bar-settings.model';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FilterBarComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
8
9
|
private cdref;
|
|
9
|
-
private
|
|
10
|
-
get inputText(): string;
|
|
11
|
-
set inputText(value: string);
|
|
12
|
-
searchTitle: string;
|
|
13
|
-
searchTooltip: string;
|
|
14
|
-
suffixIcon: string;
|
|
15
|
-
prefixIcon: string;
|
|
16
|
-
showSuffixIcon: boolean;
|
|
17
|
-
filters: FilterBarChangeEvent;
|
|
18
|
-
filterOverflow: boolean;
|
|
19
|
-
filterBarChange: EventEmitter<FilterBarChangeEvent>;
|
|
20
|
-
get showSearch(): boolean;
|
|
21
|
-
get fields(): import("./models").FilterBarFilter[];
|
|
22
|
-
settings: FilterBarSettings;
|
|
23
|
-
/** To hide filters, but leave chips visible */
|
|
24
|
-
private _filterRowVisible;
|
|
25
|
-
set filterRowVisible(value: boolean);
|
|
26
|
-
get filterRowVisible(): boolean;
|
|
10
|
+
private translate;
|
|
27
11
|
filterWrapper: ElementRef;
|
|
28
12
|
onResize(): void;
|
|
13
|
+
settings: FilterBarSettings;
|
|
14
|
+
set filterRowVisible(value: boolean);
|
|
15
|
+
filterBarChange: EventEmitter<FilterBarChangeEvent>;
|
|
16
|
+
private _inputText;
|
|
17
|
+
private _filterRowVisible;
|
|
29
18
|
private formChangesSubscription;
|
|
19
|
+
/** To hide filters, but leave chips visible */
|
|
30
20
|
readonly inputFormControlName = "input";
|
|
31
21
|
readonly filterFormGroup: FormGroup<{}>;
|
|
32
22
|
readonly form: FormGroup<{
|
|
33
23
|
input: FormControl<string | null>;
|
|
34
24
|
filters: FormGroup<{}>;
|
|
35
25
|
}>;
|
|
26
|
+
searchTitle: string;
|
|
27
|
+
searchTooltip: string;
|
|
28
|
+
suffixIcon: string;
|
|
29
|
+
prefixIcon: string;
|
|
30
|
+
showSuffixIcon: boolean;
|
|
31
|
+
filters: FilterBarChangeEvent;
|
|
32
|
+
filterOverflow: boolean;
|
|
33
|
+
activeFilterIndex: number;
|
|
34
|
+
searchIndex: number;
|
|
36
35
|
get filterFormGroupValue(): {
|
|
37
36
|
[key: string]: FilterBarFilterItem[];
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
get filterRowVisible(): boolean;
|
|
39
|
+
get inputText(): string;
|
|
40
|
+
get showSearch(): boolean;
|
|
41
|
+
set inputText(value: string);
|
|
42
|
+
constructor(cdref: ChangeDetectorRef, translate: TranslateService);
|
|
41
43
|
ngOnInit(): void;
|
|
42
44
|
ngAfterViewInit(): void;
|
|
43
45
|
ngOnDestroy(): void;
|
|
44
46
|
emitFilters(): void;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
switchRight(): void;
|
|
48
|
+
switchLeft(): void;
|
|
47
49
|
removeFilter(key: string, ix: number): void;
|
|
50
|
+
private getSortedFilters;
|
|
48
51
|
private checkOverflow;
|
|
49
52
|
private subscribeToFormValueChanges;
|
|
50
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBarComponent, never>;
|