@annalib/anna-core 17.0.2 → 17.0.4
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/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +537 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-sort.service.mjs +25 -1
- package/esm2020/lib/anna-core.module.mjs +10 -5
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +55 -188
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +41 -167
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +306 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +58 -362
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +36 -1295
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/annalib-anna-core.mjs +2910 -3865
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +2906 -3861
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -0
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +78 -0
- package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +2 -0
- package/lib/anna-core.module.d.ts +12 -11
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.d.ts +6 -18
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.d.ts +6 -21
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.d.ts +65 -0
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.d.ts +7 -28
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +6 -153
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/anna-common-scss/_filters.scss +14 -0
|
@@ -3,6 +3,7 @@ import dayjs from "dayjs";
|
|
|
3
3
|
import { SortType } from '../models/anna-sort.model';
|
|
4
4
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
5
5
|
import { AnnaSortService } from './anna-sort.service';
|
|
6
|
+
import { TooltipModel } from '../models/anna-tooltip.model';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class AnnaFilterService {
|
|
8
9
|
private dateTimeFormatService;
|
|
@@ -71,6 +72,83 @@ export declare class AnnaFilterService {
|
|
|
71
72
|
decrementHour(value: any): any;
|
|
72
73
|
incrementMinute(value: any): any;
|
|
73
74
|
decrementMinute(value: any): any;
|
|
75
|
+
disableActiveFilterClearButton(): boolean;
|
|
76
|
+
getColumnSortStateForSelectedRadio(): string;
|
|
77
|
+
createListForCheckboxFilter(header: string, optionData: any[]): TooltipModel[];
|
|
78
|
+
getTooltipModelFromOptionData(optionData: any[], header: string): TooltipModel[];
|
|
79
|
+
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
80
|
+
formatNullOptionToSpecifiedString(tooltipOptions: TooltipModel[], formattedString: string): void;
|
|
81
|
+
getClonedTooltipAndTooltipOption(tooltipOptions: TooltipModel[], sortByString: string): TooltipModel[][];
|
|
82
|
+
getHeightOfCheckboxTooltipFilter(dataLength: number, margin: number): number;
|
|
83
|
+
unCheckAllCheckbox(tooltipOptions: TooltipModel[], clonedTooltipOptions: TooltipModel[]): void;
|
|
84
|
+
selectAllCheckbox(tooltipOptions: TooltipModel[], clonedTooltipOptions: TooltipModel[]): void;
|
|
85
|
+
selectUnselectCheckbox(data: TooltipModel, clonedTooltipOptions: TooltipModel[]): void;
|
|
86
|
+
getSelectedAndUnselectedItems(tooltipOptions: TooltipModel[]): TooltipModel[][];
|
|
87
|
+
getCheckboxPreviousSelectedValue(clonedTableData: any[]): any;
|
|
88
|
+
getCheckboxCurrentSelectedValue(searchedString: string, tooltipOptions: TooltipModel[]): any;
|
|
89
|
+
checkIfSortingChanged(tempSortOrder: SortType): boolean;
|
|
90
|
+
getFilteredOptionAsBoldString(str: string, clonedTooltipOptions: TooltipModel[]): TooltipModel[];
|
|
91
|
+
boldString(str: string, find: string): string;
|
|
92
|
+
getIndicesOf(searchStr: string, str: string, caseSensitive: boolean): number[];
|
|
93
|
+
disableAllBtnsWhenThereAreNoFilteredResults(): [number, boolean, boolean, boolean];
|
|
94
|
+
createRangeForTheDateFilter(optionData: any[]): dayjs.Dayjs[];
|
|
95
|
+
createStartEndDateRange(optionData: any[]): dayjs.Dayjs[];
|
|
96
|
+
getMinAndMaxDateRangeForCalendar(minMaxDate: any[], parsingFormat: string): NgbDateType[];
|
|
97
|
+
getSelectedDateForCalendar(minMaxDate: any[], parsingFormat: string, minDate: NgbDateType, maxDate: NgbDateType): NgbDateType[];
|
|
98
|
+
getPreviousSelectedDatesForCalendar(optionData: any[]): {
|
|
99
|
+
fromDate: any;
|
|
100
|
+
toDate: any;
|
|
101
|
+
};
|
|
102
|
+
setInitialValueMapForDateFilter(optionData: any[]): void;
|
|
103
|
+
getCurrentSelectedDatesForCalendar(currentSelectedDate: any, minDate: NgbDateType, maxDate: NgbDateType): any;
|
|
104
|
+
getSliderTranslateFuncVal(header: string, currencySet: Set<string>): string;
|
|
105
|
+
getSliderOptions(optionsData: any[], translateFunc: string, header: string): {
|
|
106
|
+
floor: number;
|
|
107
|
+
ceil: number;
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
translate: (data: number) => string;
|
|
110
|
+
};
|
|
111
|
+
setSelectedRangeForSlider(header: string, options: Options): any[];
|
|
112
|
+
isValueInRange(options: Options, val: number): boolean;
|
|
113
|
+
getPreviousSelectedValueForSlider(clonedData: any[]): {
|
|
114
|
+
min: any;
|
|
115
|
+
max: any;
|
|
116
|
+
};
|
|
117
|
+
setInitialValueMapForSliderFilter(clonedData: any[]): void;
|
|
118
|
+
getCurrentSelectedValueForSlider(minEnteredVal: number, maxEnteredVal: number, options: Options): {
|
|
119
|
+
min: any;
|
|
120
|
+
max: any;
|
|
121
|
+
};
|
|
122
|
+
getSelectedTimeRange(header: string, clonedData: any[]): any[][];
|
|
123
|
+
setInitialValueMapForTimeFilter(clonedData: any[], key: string): void;
|
|
124
|
+
setInitialValueForStartAndEndTimeRange(clonedData: any[], key: string): void;
|
|
125
|
+
setInitialValueForStartOrEndTimeRange(clonedData: any[], key: string): void;
|
|
126
|
+
selectUnselectTimeFilterCheckbox(key: string, optionsData: any[]): {
|
|
127
|
+
showMultiTimeCheckbox: boolean;
|
|
128
|
+
showZeroTimeCheckbox: boolean;
|
|
129
|
+
showEnterTimeCheckbox: boolean;
|
|
130
|
+
multiTimeCheckboxChecked: boolean;
|
|
131
|
+
zeroTimeCheckboxChecked: boolean;
|
|
132
|
+
enterTimeCheckboxChecked: boolean;
|
|
133
|
+
};
|
|
134
|
+
checkIfStartTimeIsAfterEndTime(startTime: string[], endTime: string[]): boolean;
|
|
135
|
+
getPreviousSelectedTimeFilter(): any;
|
|
136
|
+
getCurrentSelectedTimeFilter(startTime: string[], endTime: string[], includeMulti: boolean, includeZero: boolean, includeTimeRange: boolean): {
|
|
137
|
+
fromTime: string;
|
|
138
|
+
toTime: string;
|
|
139
|
+
includeMulti: boolean;
|
|
140
|
+
includeZero: boolean;
|
|
141
|
+
includeTimeRange: boolean;
|
|
142
|
+
};
|
|
143
|
+
incrementHourInput(arr: any[]): void;
|
|
144
|
+
decrementHourInput(arr: any[]): void;
|
|
145
|
+
incrementMinuteInput(arr: any[]): void;
|
|
146
|
+
decrementMinuteInput(arr: any): void;
|
|
147
|
+
incrementOrDecrementHour(increment: boolean, time: string[]): void;
|
|
148
|
+
incrementOrDecrementMin(increment: boolean, time: string[]): void;
|
|
149
|
+
isHourValueInvalid(hr: string): boolean;
|
|
150
|
+
isMinuteValueInvalid(min: string): boolean;
|
|
151
|
+
updateSortMap(tempSortOrder: SortType, tableData: any[], isLurAndCsrComponent: boolean): any[];
|
|
74
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
75
153
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
76
154
|
}
|
|
@@ -11,6 +11,8 @@ export declare class AnnaSortService {
|
|
|
11
11
|
constructor(annaDateTimeFormatService: AnnaDateTimeFormatService);
|
|
12
12
|
sortDataForComponentOtherThanLurAndCsrPage(isAsc: boolean, data: any[], key: string): any[];
|
|
13
13
|
sortEnterEditLurAndCsrPage(isAsc: boolean, data: any[], key: any): any[];
|
|
14
|
+
checkIfSortingIsApplied(tableData: any[], isLurAndCsrComponent: boolean): any[];
|
|
15
|
+
applySorting(key: string, tempSortOrder: SortType, tableData: any[], isLurAndCsrComponent: boolean): any[];
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaSortService, never>;
|
|
15
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaSortService>;
|
|
16
18
|
}
|
|
@@ -23,18 +23,19 @@ import * as i21 from "./anna-generic-table-lib/components/anna-column-filters/an
|
|
|
23
23
|
import * as i22 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component";
|
|
24
24
|
import * as i23 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component";
|
|
25
25
|
import * as i24 from "./anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component";
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "@
|
|
28
|
-
import * as i27 from "@
|
|
29
|
-
import * as i28 from "@angular/
|
|
30
|
-
import * as i29 from "@angular/material/
|
|
31
|
-
import * as i30 from "@angular/material/
|
|
32
|
-
import * as i31 from "@angular
|
|
33
|
-
import * as i32 from "ngx-
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
26
|
+
import * as i25 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component";
|
|
27
|
+
import * as i26 from "@angular/common";
|
|
28
|
+
import * as i27 from "@ng-bootstrap/ng-bootstrap";
|
|
29
|
+
import * as i28 from "@angular/forms";
|
|
30
|
+
import * as i29 from "@angular/material/radio";
|
|
31
|
+
import * as i30 from "@angular/material/button-toggle";
|
|
32
|
+
import * as i31 from "@angular/material/table";
|
|
33
|
+
import * as i32 from "@angular-slider/ngx-slider";
|
|
34
|
+
import * as i33 from "ngx-skeleton-loader";
|
|
35
|
+
import * as i34 from "@angular/cdk/scrolling";
|
|
36
|
+
import * as i35 from "ng-circle-progress";
|
|
36
37
|
export declare class AnnaCoreModule {
|
|
37
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent, typeof i24.AnnaDeletedOrderIconTemplateComponent], [typeof
|
|
39
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent, typeof i24.AnnaDeletedOrderIconTemplateComponent, typeof i25.AnnaColumnSliderFilterComponent], [typeof i26.CommonModule, typeof i27.NgbModule, typeof i28.FormsModule, typeof i29.MatRadioModule, typeof i30.MatButtonToggleModule, typeof i31.MatTableModule, typeof i32.NgxSliderModule, typeof i33.NgxSkeletonLoaderModule, typeof i34.ScrollingModule, typeof i35.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i5.AnnaReplaceCharPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i21.AnnaColumnDateRangeFilterComponent, typeof i22.AnnaColumnTimeFilterComponent, typeof i23.AnnaColumnCheckboxFilterComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective, typeof i20.DigitOnlyDirective, typeof i24.AnnaDeletedOrderIconTemplateComponent, typeof i25.AnnaColumnSliderFilterComponent]>;
|
|
39
40
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
|
|
40
41
|
}
|
|
@@ -7,12 +7,14 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class AnnaColumnCheckboxFilterComponent {
|
|
8
8
|
private annaSortService;
|
|
9
9
|
annaFilterService: AnnaFilterService;
|
|
10
|
+
showFilterHeaderTabs: boolean;
|
|
11
|
+
isLurAndCsrComponent: boolean;
|
|
10
12
|
tableData: any[];
|
|
11
13
|
clonedTableData: any[];
|
|
12
|
-
limit: number;
|
|
13
14
|
filterTabObjects: any[];
|
|
14
15
|
filterAppliedToTable: EventEmitter<any>;
|
|
15
16
|
sortingAppliedToTable: EventEmitter<any>;
|
|
17
|
+
getSortType: EventEmitter<any>;
|
|
16
18
|
closeTooltip: EventEmitter<any>;
|
|
17
19
|
tooltipOptions: TooltipModel[];
|
|
18
20
|
clonedTooltipOptions: TooltipModel[];
|
|
@@ -28,15 +30,12 @@ export declare class AnnaColumnCheckboxFilterComponent {
|
|
|
28
30
|
searchItem: string;
|
|
29
31
|
showSortComponent: boolean;
|
|
30
32
|
disableCheckboxApply: boolean;
|
|
31
|
-
selectedLabel: string;
|
|
32
33
|
showFilterComponent: boolean;
|
|
33
|
-
start: number;
|
|
34
|
-
end: number;
|
|
35
|
-
disableColumnClearAllBtn: boolean;
|
|
36
34
|
margin: number;
|
|
37
35
|
constructor(annaSortService: AnnaSortService, annaFilterService: AnnaFilterService);
|
|
38
36
|
ngOnInit(): void;
|
|
39
|
-
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
37
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel, reload: boolean): void;
|
|
38
|
+
createFilterTooltipData(activeTab: radioButtonModel, key: string): void;
|
|
40
39
|
getCheckboxData(header: string): void;
|
|
41
40
|
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
42
41
|
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
@@ -44,29 +43,18 @@ export declare class AnnaColumnCheckboxFilterComponent {
|
|
|
44
43
|
selectAllCheckbox(): void;
|
|
45
44
|
searchForTheItem(str: string): void;
|
|
46
45
|
calculateHeightForFilterTooltip(): void;
|
|
47
|
-
boldString(str: string, find: string): string;
|
|
48
|
-
getIndicesOf(searchStr: string, str: string, caseSensitive: boolean): number[];
|
|
49
|
-
removeBoldElementFromString(originalString: string): string;
|
|
50
46
|
disableCheckboxFilterApplyButton(): void;
|
|
51
47
|
checkIfSortingChanged(): boolean;
|
|
52
48
|
checkIfCheckboxTooltipIsFiltered(): boolean;
|
|
53
|
-
getColumnSortStateForSelectedRadio(): string;
|
|
54
49
|
applyFilters(): void;
|
|
55
50
|
applyListFilters(): void;
|
|
56
51
|
applySortingOnFilteredData(): void;
|
|
57
|
-
updateSortMap(): void;
|
|
58
|
-
checkIfSortingIsApplied(): void;
|
|
59
52
|
emitData(): void;
|
|
60
|
-
updateIndex(): void;
|
|
61
|
-
setInitialRowsForTable(): void;
|
|
62
53
|
selectUnselectCheckbox(data: TooltipModel): void;
|
|
63
54
|
closeCheckboxFilter(): void;
|
|
64
55
|
revert(): void;
|
|
65
56
|
clearSearchedItem(): void;
|
|
66
|
-
resetIndex(): void;
|
|
67
57
|
storeSortTypeInTempVariable(event: SortType): void;
|
|
68
|
-
disableActiveFilterClearButton(): void;
|
|
69
|
-
createFilterTooltipData(header: string): void;
|
|
70
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnCheckboxFilterComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnCheckboxFilterComponent, "anna-core-anna-column-checkbox-filter", never, { "
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnCheckboxFilterComponent, "anna-core-anna-column-checkbox-filter", never, { "showFilterHeaderTabs": "showFilterHeaderTabs"; "isLurAndCsrComponent": "isLurAndCsrComponent"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "filterTabObjects": "filterTabObjects"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "getSortType": "getSortType"; "closeTooltip": "closeTooltip"; }, never, never, false, never>;
|
|
72
60
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
2
|
import { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
|
|
4
3
|
import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
|
|
5
4
|
import { AnnaDateTimeFormatService, NgbDateType } from '../../../../anna-core-shared-lib/services/anna-date-time-format.service';
|
|
@@ -12,23 +11,20 @@ export declare class AnnaColumnDateRangeFilterComponent implements OnInit {
|
|
|
12
11
|
annaFilterService: AnnaFilterService;
|
|
13
12
|
tableData: any[];
|
|
14
13
|
clonedTableData: any[];
|
|
15
|
-
limit: number;
|
|
16
14
|
filterTabObjects: any[];
|
|
15
|
+
isLurAndCsrComponent: boolean;
|
|
16
|
+
showFilterHeaderTabs: boolean;
|
|
17
17
|
filterAppliedToTable: EventEmitter<any>;
|
|
18
18
|
sortingAppliedToTable: EventEmitter<any>;
|
|
19
|
+
getSortType: EventEmitter<any>;
|
|
19
20
|
closeTooltip: EventEmitter<any>;
|
|
20
21
|
isFilterChanged: boolean;
|
|
21
22
|
tempSortOrder: SortType;
|
|
22
23
|
isSortChanged: boolean;
|
|
23
|
-
disableSelectAll: boolean;
|
|
24
|
-
disableClearAll: boolean;
|
|
25
|
-
searchItem: string;
|
|
26
24
|
showSortComponent: boolean;
|
|
27
25
|
disableCalendarApplyBtn: boolean;
|
|
28
26
|
selectedLabel: string;
|
|
29
27
|
showFilterComponent: boolean;
|
|
30
|
-
start: number;
|
|
31
|
-
end: number;
|
|
32
28
|
disableColumnClearAllBtn: boolean;
|
|
33
29
|
calendarMinEnabledDate: NgbDateType;
|
|
34
30
|
calendarMaxEnabledDate: NgbDateType;
|
|
@@ -37,32 +33,21 @@ export declare class AnnaColumnDateRangeFilterComponent implements OnInit {
|
|
|
37
33
|
calendarSelection: any;
|
|
38
34
|
constructor(annaDateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService, annaFilterService: AnnaFilterService);
|
|
39
35
|
ngOnInit(): void;
|
|
40
|
-
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
41
|
-
|
|
42
|
-
getColumnSortStateForSelectedRadio(): string;
|
|
43
|
-
createFilterTooltipData(header: string): void;
|
|
36
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel, reload: boolean): void;
|
|
37
|
+
createFilterTooltipData(activeTab: radioButtonModel, key: string): void;
|
|
44
38
|
getCalendarData(): void;
|
|
45
|
-
createRangeForTheDateFilter(): dayjs.Dayjs[];
|
|
46
|
-
createStartEndDateRange(optionData: any[]): dayjs.Dayjs[];
|
|
47
39
|
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
48
40
|
applyDateFilter(): void;
|
|
49
|
-
updateIndex(): void;
|
|
50
|
-
resetIndex(): void;
|
|
51
|
-
setInitialRowsForTable(): void;
|
|
52
41
|
applySortingOnFilteredData(): void;
|
|
53
|
-
updateSortMap(): void;
|
|
54
|
-
checkIfSortingIsApplied(): void;
|
|
55
|
-
applySorting(key: string): void;
|
|
56
42
|
emitData(): void;
|
|
57
43
|
cancelInDateFilter(): void;
|
|
58
44
|
calendarDateChanged(event: any): void;
|
|
59
45
|
disableCalendarApplyButton(): void;
|
|
60
46
|
checkIfSortingChanged(): boolean;
|
|
61
47
|
checkIfDateTooltipIsFiltered(): boolean;
|
|
62
|
-
setInitialValueMapForDateFilter(): void;
|
|
63
48
|
applyDateFilterOnData(): void;
|
|
64
49
|
clearColumnFilter(): void;
|
|
65
50
|
storeSortTypeInTempVariable(event: SortType): void;
|
|
66
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnDateRangeFilterComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnDateRangeFilterComponent, "anna-core-anna-column-date-range-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnDateRangeFilterComponent, "anna-core-anna-column-date-range-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "filterTabObjects": "filterTabObjects"; "isLurAndCsrComponent": "isLurAndCsrComponent"; "showFilterHeaderTabs": "showFilterHeaderTabs"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "getSortType": "getSortType"; "closeTooltip": "closeTooltip"; }, never, never, false, never>;
|
|
68
53
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { radioButtonModel } from '../../../../anna-core-shared-lib/models/anna-tooltip.model';
|
|
3
|
+
import { SortType } from '../../../../anna-core-shared-lib/models/anna-sort.model';
|
|
4
|
+
import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
|
|
5
|
+
import { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
|
|
6
|
+
import { Options } from '@angular-slider/ngx-slider';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class AnnaColumnSliderFilterComponent {
|
|
9
|
+
annaFilterService: AnnaFilterService;
|
|
10
|
+
annaSortService: AnnaSortService;
|
|
11
|
+
filterTabObjects: any[];
|
|
12
|
+
isLurAndCsrComponent: boolean;
|
|
13
|
+
tableData: any[];
|
|
14
|
+
showFilterHeaderTabs: boolean;
|
|
15
|
+
clonedTableData: any[];
|
|
16
|
+
closeTooltip: EventEmitter<any>;
|
|
17
|
+
filterAppliedToTable: EventEmitter<any>;
|
|
18
|
+
getSortType: EventEmitter<any>;
|
|
19
|
+
sortingAppliedToTable: EventEmitter<any>;
|
|
20
|
+
showSortComponent: boolean;
|
|
21
|
+
showFilterComponent: boolean;
|
|
22
|
+
tempSortOrder: SortType;
|
|
23
|
+
isFilterChanged: boolean;
|
|
24
|
+
isSortChanged: boolean;
|
|
25
|
+
showEmptySpaceForSlider: boolean;
|
|
26
|
+
incorrectSliderInput: boolean;
|
|
27
|
+
sliderEnteredMaxValue: number;
|
|
28
|
+
sliderEnteredMinValue: number;
|
|
29
|
+
showSliderMinValueError: boolean;
|
|
30
|
+
showSliderMaxValueError: boolean;
|
|
31
|
+
isMinTextBoxEmpty: boolean;
|
|
32
|
+
isMaxTextBoxEmpty: boolean;
|
|
33
|
+
options: Options;
|
|
34
|
+
sliderFilterTextBoxStep: string;
|
|
35
|
+
sliderMinValue: number;
|
|
36
|
+
sliderMaxValue: number;
|
|
37
|
+
disableSliderApplyButton: boolean;
|
|
38
|
+
sliderValue: {
|
|
39
|
+
min: number;
|
|
40
|
+
max: number;
|
|
41
|
+
};
|
|
42
|
+
disableColumnClearAllBtn: boolean;
|
|
43
|
+
constructor(annaFilterService: AnnaFilterService, annaSortService: AnnaSortService);
|
|
44
|
+
ngOnInit(): void;
|
|
45
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel, reload: boolean): void;
|
|
46
|
+
createFilterTooltipData(activeTab: radioButtonModel, key: string): void;
|
|
47
|
+
getSliderData(key: string): void;
|
|
48
|
+
createOptionsForSlider(key: string): void;
|
|
49
|
+
setSelectedRangeForSlider(key: string): void;
|
|
50
|
+
cancelSliderFilter(): void;
|
|
51
|
+
minValueChanged(val: string): void;
|
|
52
|
+
maxValueChanged(val: string): void;
|
|
53
|
+
showErrorForMinAndMaxValue(): void;
|
|
54
|
+
disableSliderApplyBtn(): void;
|
|
55
|
+
checkIfSortingChanged(): boolean;
|
|
56
|
+
checkIfSliderTooltipIsFiltered(): boolean;
|
|
57
|
+
storeSortTypeInTempVariable(event: SortType): void;
|
|
58
|
+
applyFilters(): void;
|
|
59
|
+
applySliderFilter(): void;
|
|
60
|
+
applySortingOnFilteredData(): void;
|
|
61
|
+
emitData(): void;
|
|
62
|
+
clearColumnFilter(): void;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnSliderFilterComponent, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnSliderFilterComponent, "anna-core-anna-column-slider-filter", never, { "filterTabObjects": "filterTabObjects"; "isLurAndCsrComponent": "isLurAndCsrComponent"; "tableData": "tableData"; "showFilterHeaderTabs": "showFilterHeaderTabs"; "clonedTableData": "clonedTableData"; }, { "closeTooltip": "closeTooltip"; "filterAppliedToTable": "filterAppliedToTable"; "getSortType": "getSortType"; "sortingAppliedToTable": "sortingAppliedToTable"; }, never, never, false, never>;
|
|
65
|
+
}
|
|
@@ -4,7 +4,6 @@ import { SortType } from '../../../../anna-core-shared-lib/models/anna-sort.mode
|
|
|
4
4
|
import { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
|
|
5
5
|
import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
|
|
6
6
|
import { AnnaDateTimeFormatService } from '../../../../anna-core-shared-lib/services/anna-date-time-format.service';
|
|
7
|
-
import { IGtGeneralConfig } from '../../../../anna-core-shared-lib/models/anna-non-editable-gt-models';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class AnnaColumnTimeFilterComponent implements OnInit {
|
|
10
9
|
private annaSortService;
|
|
@@ -12,23 +11,19 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
|
|
|
12
11
|
annaFilterService: AnnaFilterService;
|
|
13
12
|
tableData: any[];
|
|
14
13
|
clonedTableData: any[];
|
|
15
|
-
limit: number;
|
|
16
14
|
filterTabObjects: any[];
|
|
17
|
-
|
|
15
|
+
showFilterHeaderTabs: boolean;
|
|
16
|
+
showAllTimeRangeCheckboxes: boolean;
|
|
17
|
+
isLurAndCsrComponent: boolean;
|
|
18
18
|
filterAppliedToTable: EventEmitter<any>;
|
|
19
19
|
sortingAppliedToTable: EventEmitter<any>;
|
|
20
|
+
getSortType: EventEmitter<any>;
|
|
20
21
|
closeTooltip: EventEmitter<any>;
|
|
21
22
|
isFilterChanged: boolean;
|
|
22
23
|
tempSortOrder: SortType;
|
|
23
24
|
isSortChanged: boolean;
|
|
24
|
-
disableSelectAll: boolean;
|
|
25
|
-
disableClearAll: boolean;
|
|
26
|
-
searchItem: string;
|
|
27
25
|
showSortComponent: boolean;
|
|
28
|
-
selectedLabel: string;
|
|
29
26
|
showFilterComponent: boolean;
|
|
30
|
-
start: number;
|
|
31
|
-
end: number;
|
|
32
27
|
disableColumnClearAllBtn: boolean;
|
|
33
28
|
startTimeHourErr: boolean;
|
|
34
29
|
startTimeMinErr: boolean;
|
|
@@ -50,15 +45,9 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
|
|
|
50
45
|
bindValueFuncCalled: boolean;
|
|
51
46
|
constructor(annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
|
|
52
47
|
ngOnInit(): void;
|
|
53
|
-
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
54
|
-
|
|
55
|
-
getColumnSortStateForSelectedRadio(): string;
|
|
56
|
-
createFilterTooltipData(header: string): void;
|
|
48
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel, reload: boolean): void;
|
|
49
|
+
createFilterTooltipData(activeTab: radioButtonModel, header: string): void;
|
|
57
50
|
getTimeFilterData(header: string): void;
|
|
58
|
-
setInitialValueMapForTimeFilter(key: string): void;
|
|
59
|
-
setInitialValueMapForRatingPageTimeFilter(key: string): void;
|
|
60
|
-
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
61
|
-
setTimeFilterDataForRatingPageComponent(header: string): void;
|
|
62
51
|
selectOrUnselectMultiTimeCheckbox(): void;
|
|
63
52
|
selectOrUnselectZeroTimeCheckbox(): void;
|
|
64
53
|
selectOrUnselectEnterTimeCheckbox(): void;
|
|
@@ -68,10 +57,6 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
|
|
|
68
57
|
validateTimeFilterInput(): boolean;
|
|
69
58
|
applyTimeFilters(): void;
|
|
70
59
|
emitData(): void;
|
|
71
|
-
updateIndex(): void;
|
|
72
|
-
resetIndex(): void;
|
|
73
|
-
setInitialRowsForTable(): void;
|
|
74
|
-
applySorting(key: string): void;
|
|
75
60
|
changeStartTimeHour(increment: boolean): void;
|
|
76
61
|
changeEndTimeHour(increment: boolean): void;
|
|
77
62
|
changeEndTimeMinute(increment: boolean): void;
|
|
@@ -80,17 +65,11 @@ export declare class AnnaColumnTimeFilterComponent implements OnInit {
|
|
|
80
65
|
startTimeMinChange(val: string): void;
|
|
81
66
|
endTimeHourChange(val: string): void;
|
|
82
67
|
endTimeMinChange(val: string): void;
|
|
83
|
-
incrementHour(arr: any[]): void;
|
|
84
|
-
decrementHour(arr: any[]): void;
|
|
85
|
-
incrementMinute(arr: any[]): void;
|
|
86
|
-
decrementMinute(arr: any): void;
|
|
87
|
-
updateSortMap(): void;
|
|
88
|
-
checkIfSortingIsApplied(): void;
|
|
89
68
|
applySortingOnFilteredData(): void;
|
|
90
69
|
applyTimeFilterOnData(): void;
|
|
91
70
|
closeTimeFilter(): void;
|
|
92
71
|
clearColumnFilter(): void;
|
|
93
72
|
storeSortTypeInTempVariable(event: SortType): void;
|
|
94
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnTimeFilterComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnTimeFilterComponent, "anna-core-anna-column-time-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnTimeFilterComponent, "anna-core-anna-column-time-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "filterTabObjects": "filterTabObjects"; "showFilterHeaderTabs": "showFilterHeaderTabs"; "showAllTimeRangeCheckboxes": "showAllTimeRangeCheckboxes"; "isLurAndCsrComponent": "isLurAndCsrComponent"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "getSortType": "getSortType"; "closeTooltip": "closeTooltip"; }, never, never, false, never>;
|
|
96
75
|
}
|