@annalib/anna-core 11.3.8 → 11.3.10
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/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +14 -0
- package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +5 -4
- package/esm2020/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +1 -1
- 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 +1 -1
- package/esm2020/lib/anna-core.module.mjs +25 -5
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +360 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-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 +542 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +3 -3
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/annalib-anna-core.mjs +1207 -13
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +1207 -13
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.d.ts +8 -0
- package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +3 -2
- package/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +3 -1
- package/lib/anna-core.module.d.ts +15 -11
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.d.ts +70 -0
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.d.ts +68 -0
- package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.d.ts +96 -0
- package/package.json +7 -7
- package/public-api.d.ts +4 -0
- package/src/lib/anna-common-scss/_customDropdown.scss +13 -1
- package/src/lib/anna-common-scss/_date-picker-form.scss +2 -2
- package/src/lib/anna-common-scss/_generic-table-common.scss +43 -18
- package/src/lib/anna-common-scss/_ng-select.scss +176 -0
- package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +0 -21
- package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +0 -28
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnnaDeletedOrderIconTemplateComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaDeletedOrderIconTemplateComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaDeletedOrderIconTemplateComponent, "anna-deleted-order-icon-template", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { GtColumnIconEmittedData } from '../../models/anna-generic-data-type.model';
|
|
3
|
+
import { IconToShow } from '../../models/anna-non-editable-gt-models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class AnnaIconColumnComponent implements OnInit {
|
|
5
6
|
componentName: string;
|
|
6
|
-
|
|
7
|
+
iconToShow: IconToShow;
|
|
7
8
|
dataObject: any;
|
|
8
9
|
PfpIconActiveColor: string;
|
|
9
10
|
PfpIconDisableColor: string;
|
|
@@ -12,5 +13,5 @@ export declare class AnnaIconColumnComponent implements OnInit {
|
|
|
12
13
|
ngOnInit(): void;
|
|
13
14
|
svgIconClicked(rowData: any, key: string): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaIconColumnComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "iconToShow": "iconToShow"; "dataObject": "dataObject"; }, { "onColumnIconClicked": "onColumnIconClicked"; }, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TooltipPosition } from "@angular/material/tooltip";
|
|
1
2
|
import { IWeekCalendar } from "./anna-global-dropdown-config.model";
|
|
2
3
|
export interface IGtTableHeader {
|
|
3
4
|
headerInfo: IHeaderInfo[];
|
|
@@ -56,7 +57,7 @@ interface ISpotTableConfig {
|
|
|
56
57
|
isGrouped: boolean;
|
|
57
58
|
}
|
|
58
59
|
export interface ITooltip {
|
|
59
|
-
iconPosition:
|
|
60
|
+
iconPosition: TooltipPosition;
|
|
60
61
|
name: string;
|
|
61
62
|
tooltipPosition: string;
|
|
62
63
|
iconClass: string;
|
|
@@ -108,4 +109,5 @@ export interface IActionItemTypeSTRING__ICON_OR_TEXT_ACTION {
|
|
|
108
109
|
additionalTextBeforeLink: string;
|
|
109
110
|
enableTooltipForAdditionalText: boolean;
|
|
110
111
|
}
|
|
112
|
+
export declare type IconToShow = "LIVE" | "PAY_FOR_PERFORMANCE_ACTIVE" | "PAY_FOR_PERFORMANCE" | "REJECTED" | "NOTIFY" | "AWAITING_APPROVAL" | "DELETED_ORDER";
|
|
111
113
|
export {};
|
|
@@ -19,18 +19,22 @@ import * as i17 from "./anna-generic-table-lib/components/anna-non-editable-gene
|
|
|
19
19
|
import * as i18 from "./anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
|
|
20
20
|
import * as i19 from "./anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive";
|
|
21
21
|
import * as i20 from "./anna-core-shared-lib/directives/digits-only/digits-only.directive";
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "@angular/
|
|
27
|
-
import * as i26 from "@
|
|
28
|
-
import * as i27 from "@angular
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "@angular/
|
|
31
|
-
import * as i30 from "
|
|
22
|
+
import * as i21 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component";
|
|
23
|
+
import * as i22 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component";
|
|
24
|
+
import * as i23 from "./anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component";
|
|
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 "@angular/common";
|
|
27
|
+
import * as i26 from "@ng-bootstrap/ng-bootstrap";
|
|
28
|
+
import * as i27 from "@angular/forms";
|
|
29
|
+
import * as i28 from "@angular/material/radio";
|
|
30
|
+
import * as i29 from "@angular/material/button-toggle";
|
|
31
|
+
import * as i30 from "@angular/material/table";
|
|
32
|
+
import * as i31 from "@angular-slider/ngx-slider";
|
|
33
|
+
import * as i32 from "ngx-skeleton-loader";
|
|
34
|
+
import * as i33 from "@angular/cdk/scrolling";
|
|
35
|
+
import * as i34 from "ng-circle-progress";
|
|
32
36
|
export declare class AnnaCoreModule {
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
|
|
34
|
-
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
|
|
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 i25.CommonModule, typeof i26.NgbModule, typeof i27.FormsModule, typeof i28.MatRadioModule, typeof i29.MatButtonToggleModule, typeof i30.MatTableModule, typeof i31.NgxSliderModule, typeof i32.NgxSkeletonLoaderModule, typeof i33.ScrollingModule, typeof i34.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]>;
|
|
35
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
|
|
36
40
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { SortType } from '../../../../anna-core-shared-lib/models/anna-sort.model';
|
|
3
|
+
import { TooltipModel, radioButtonModel } from '../../../../anna-core-shared-lib/models/anna-tooltip.model';
|
|
4
|
+
import { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
|
|
5
|
+
import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AnnaColumnCheckboxFilterComponent {
|
|
8
|
+
private annaSortService;
|
|
9
|
+
annaFilterService: AnnaFilterService;
|
|
10
|
+
tableData: any[];
|
|
11
|
+
clonedTableData: any[];
|
|
12
|
+
limit: number;
|
|
13
|
+
filterTabObjects: any[];
|
|
14
|
+
filterAppliedToTable: EventEmitter<any>;
|
|
15
|
+
sortingAppliedToTable: EventEmitter<any>;
|
|
16
|
+
closeTooltip: EventEmitter<any>;
|
|
17
|
+
tooltipOptions: TooltipModel[];
|
|
18
|
+
clonedTooltipOptions: TooltipModel[];
|
|
19
|
+
heightOfCheckboxTooltipFilter: number;
|
|
20
|
+
toolTipdata: any;
|
|
21
|
+
tempTooltipData: any;
|
|
22
|
+
selectedCheckboxOptionsCount: number;
|
|
23
|
+
isFilterChanged: boolean;
|
|
24
|
+
tempSortOrder: SortType;
|
|
25
|
+
isSortChanged: boolean;
|
|
26
|
+
disableSelectAll: boolean;
|
|
27
|
+
disableClearAll: boolean;
|
|
28
|
+
searchItem: string;
|
|
29
|
+
showSortComponent: boolean;
|
|
30
|
+
disableCheckboxApply: boolean;
|
|
31
|
+
selectedLabel: string;
|
|
32
|
+
showFilterComponent: boolean;
|
|
33
|
+
start: number;
|
|
34
|
+
end: number;
|
|
35
|
+
disableColumnClearAllBtn: boolean;
|
|
36
|
+
constructor(annaSortService: AnnaSortService, annaFilterService: AnnaFilterService);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
39
|
+
getCheckboxData(header: string): void;
|
|
40
|
+
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
41
|
+
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
42
|
+
unCheckAllCheckbox(): void;
|
|
43
|
+
selectAllCheckbox(): void;
|
|
44
|
+
searchForTheItem(str: string): void;
|
|
45
|
+
boldString(str: string, find: string): string;
|
|
46
|
+
getIndicesOf(searchStr: string, str: string, caseSensitive: boolean): number[];
|
|
47
|
+
removeBoldElementFromString(originalString: string): string;
|
|
48
|
+
disableCheckboxFilterApplyButton(): void;
|
|
49
|
+
checkIfSortingChanged(): boolean;
|
|
50
|
+
checkIfCheckboxTooltipIsFiltered(): boolean;
|
|
51
|
+
getColumnSortStateForSelectedRadio(): string;
|
|
52
|
+
applyFilters(): void;
|
|
53
|
+
applyListFilters(): void;
|
|
54
|
+
applySortingOnFilteredData(): void;
|
|
55
|
+
updateSortMap(): void;
|
|
56
|
+
checkIfSortingIsApplied(): void;
|
|
57
|
+
emitData(): void;
|
|
58
|
+
updateIndex(): void;
|
|
59
|
+
setInitialRowsForTable(): void;
|
|
60
|
+
selectUnselectCheckbox(data: TooltipModel): void;
|
|
61
|
+
closeCheckboxFilter(): void;
|
|
62
|
+
revert(): void;
|
|
63
|
+
clearSearchedItem(): void;
|
|
64
|
+
resetIndex(): void;
|
|
65
|
+
storeSortTypeInTempVariable(event: SortType): void;
|
|
66
|
+
disableActiveFilterClearButton(): void;
|
|
67
|
+
createFilterTooltipData(header: string): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnCheckboxFilterComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnCheckboxFilterComponent, "anna-core-anna-column-checkbox-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "limit": "limit"; "filterTabObjects": "filterTabObjects"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "closeTooltip": "closeTooltip"; }, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
|
|
4
|
+
import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
|
|
5
|
+
import { AnnaDateTimeFormatService, NgbDateType } from '../../../../anna-core-shared-lib/services/anna-date-time-format.service';
|
|
6
|
+
import { SortType } from '../../../../anna-core-shared-lib/models/anna-sort.model';
|
|
7
|
+
import { radioButtonModel } from '../../../../anna-core-shared-lib/models/anna-tooltip.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class AnnaColumnDateRangeFilterComponent implements OnInit {
|
|
10
|
+
annaDateTimeFormatService: AnnaDateTimeFormatService;
|
|
11
|
+
private annaSortService;
|
|
12
|
+
annaFilterService: AnnaFilterService;
|
|
13
|
+
tableData: any[];
|
|
14
|
+
clonedTableData: any[];
|
|
15
|
+
limit: number;
|
|
16
|
+
filterTabObjects: any[];
|
|
17
|
+
filterAppliedToTable: EventEmitter<any>;
|
|
18
|
+
sortingAppliedToTable: EventEmitter<any>;
|
|
19
|
+
closeTooltip: EventEmitter<any>;
|
|
20
|
+
isFilterChanged: boolean;
|
|
21
|
+
tempSortOrder: SortType;
|
|
22
|
+
isSortChanged: boolean;
|
|
23
|
+
disableSelectAll: boolean;
|
|
24
|
+
disableClearAll: boolean;
|
|
25
|
+
searchItem: string;
|
|
26
|
+
showSortComponent: boolean;
|
|
27
|
+
disableCalendarApplyBtn: boolean;
|
|
28
|
+
selectedLabel: string;
|
|
29
|
+
showFilterComponent: boolean;
|
|
30
|
+
start: number;
|
|
31
|
+
end: number;
|
|
32
|
+
disableColumnClearAllBtn: boolean;
|
|
33
|
+
calendarMinEnabledDate: NgbDateType;
|
|
34
|
+
calendarMaxEnabledDate: NgbDateType;
|
|
35
|
+
selectedMinDate: NgbDateType;
|
|
36
|
+
selectedMaxDate: NgbDateType;
|
|
37
|
+
calendarSelection: any;
|
|
38
|
+
constructor(annaDateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService, annaFilterService: AnnaFilterService);
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
41
|
+
disableActiveFilterClearButton(): void;
|
|
42
|
+
getColumnSortStateForSelectedRadio(): string;
|
|
43
|
+
createFilterTooltipData(header: string): void;
|
|
44
|
+
getCalendarData(): void;
|
|
45
|
+
createRangeForTheDateFilter(): dayjs.Dayjs[];
|
|
46
|
+
createStartEndDateRange(optionData: any[]): dayjs.Dayjs[];
|
|
47
|
+
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
48
|
+
applyDateFilter(): void;
|
|
49
|
+
updateIndex(): void;
|
|
50
|
+
resetIndex(): void;
|
|
51
|
+
setInitialRowsForTable(): void;
|
|
52
|
+
applySortingOnFilteredData(): void;
|
|
53
|
+
updateSortMap(): void;
|
|
54
|
+
checkIfSortingIsApplied(): void;
|
|
55
|
+
applySorting(key: string): void;
|
|
56
|
+
emitData(): void;
|
|
57
|
+
cancelInDateFilter(): void;
|
|
58
|
+
calendarDateChanged(event: any): void;
|
|
59
|
+
disableCalendarApplyButton(): void;
|
|
60
|
+
checkIfSortingChanged(): boolean;
|
|
61
|
+
checkIfDateTooltipIsFiltered(): boolean;
|
|
62
|
+
setInitialValueMapForDateFilter(): void;
|
|
63
|
+
applyDateFilterOnData(): void;
|
|
64
|
+
clearColumnFilter(): void;
|
|
65
|
+
storeSortTypeInTempVariable(event: SortType): void;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnDateRangeFilterComponent, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnDateRangeFilterComponent, "anna-core-anna-column-date-range-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "limit": "limit"; "filterTabObjects": "filterTabObjects"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "closeTooltip": "closeTooltip"; }, never, never, false, never>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } 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 { AnnaSortService } from '../../../../anna-core-shared-lib/services/anna-sort.service';
|
|
5
|
+
import { AnnaFilterService } from '../../../../anna-core-shared-lib/services/anna-filter.service';
|
|
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
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class AnnaColumnTimeFilterComponent implements OnInit {
|
|
10
|
+
private annaSortService;
|
|
11
|
+
annaDateTimeFormatService: AnnaDateTimeFormatService;
|
|
12
|
+
annaFilterService: AnnaFilterService;
|
|
13
|
+
tableData: any[];
|
|
14
|
+
clonedTableData: any[];
|
|
15
|
+
limit: number;
|
|
16
|
+
filterTabObjects: any[];
|
|
17
|
+
gtGeneralConfig: IGtGeneralConfig;
|
|
18
|
+
filterAppliedToTable: EventEmitter<any>;
|
|
19
|
+
sortingAppliedToTable: EventEmitter<any>;
|
|
20
|
+
closeTooltip: EventEmitter<any>;
|
|
21
|
+
isFilterChanged: boolean;
|
|
22
|
+
tempSortOrder: SortType;
|
|
23
|
+
isSortChanged: boolean;
|
|
24
|
+
disableSelectAll: boolean;
|
|
25
|
+
disableClearAll: boolean;
|
|
26
|
+
searchItem: string;
|
|
27
|
+
showSortComponent: boolean;
|
|
28
|
+
disableCheckboxApply: boolean;
|
|
29
|
+
selectedLabel: string;
|
|
30
|
+
showFilterComponent: boolean;
|
|
31
|
+
start: number;
|
|
32
|
+
end: number;
|
|
33
|
+
disableColumnClearAllBtn: boolean;
|
|
34
|
+
startTimeHourErr: boolean;
|
|
35
|
+
startTimeMinErr: boolean;
|
|
36
|
+
endTimeHourErr: boolean;
|
|
37
|
+
endTimeMinErr: boolean;
|
|
38
|
+
selectedFromTime: any[];
|
|
39
|
+
selectedToTime: any[];
|
|
40
|
+
clonedSelectedFromTime: any;
|
|
41
|
+
clonedSelectedToTime: any;
|
|
42
|
+
disableTimeFilterApplyBtn: boolean;
|
|
43
|
+
tableColumns: string[];
|
|
44
|
+
totalRowColumns: string[];
|
|
45
|
+
showMultiTimeCheckbox: boolean;
|
|
46
|
+
showZeroTimeCheckbox: boolean;
|
|
47
|
+
showEnterTimeCheckbox: boolean;
|
|
48
|
+
multiTimeCheckboxChecked: boolean;
|
|
49
|
+
zeroTimeCheckboxChecked: boolean;
|
|
50
|
+
enterTimeCheckboxChecked: boolean;
|
|
51
|
+
bindValueFuncCalled: boolean;
|
|
52
|
+
constructor(annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
|
|
53
|
+
ngOnInit(): void;
|
|
54
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
55
|
+
disableActiveFilterClearButton(): void;
|
|
56
|
+
getColumnSortStateForSelectedRadio(): string;
|
|
57
|
+
createFilterTooltipData(header: string): void;
|
|
58
|
+
getTimeFilterData(header: string): void;
|
|
59
|
+
setInitialValueMapForTimeFilter(key: string): void;
|
|
60
|
+
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
61
|
+
setTimeFilterDataForRatingPageComponent(header: string): void;
|
|
62
|
+
selectOrUnselectMultiTimeCheckbox(): void;
|
|
63
|
+
selectOrUnselectZeroTimeCheckbox(): void;
|
|
64
|
+
selectOrUnselectEnterTimeCheckbox(): void;
|
|
65
|
+
checkIfTimeTooltipIsFiltered(): boolean;
|
|
66
|
+
disableTimeFilterApplyButton(): void;
|
|
67
|
+
checkIfSortingChanged(): boolean;
|
|
68
|
+
validateTimeFilterInput(): boolean;
|
|
69
|
+
applyTimeFilters(): void;
|
|
70
|
+
emitData(): void;
|
|
71
|
+
updateIndex(): void;
|
|
72
|
+
resetIndex(): void;
|
|
73
|
+
setInitialRowsForTable(): void;
|
|
74
|
+
applySorting(key: string): void;
|
|
75
|
+
changeStartTimeHour(increment: boolean): void;
|
|
76
|
+
changeEndTimeHour(increment: boolean): void;
|
|
77
|
+
changeEndTimeMinute(increment: boolean): void;
|
|
78
|
+
changeStartTimeMinute(increment: boolean): void;
|
|
79
|
+
startTimeHourChange(val: string): void;
|
|
80
|
+
startTimeMinChange(val: string): void;
|
|
81
|
+
endTimeHourChange(val: string): void;
|
|
82
|
+
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
|
+
applySortingOnFilteredData(): void;
|
|
90
|
+
applyTimeFilterOnData(): void;
|
|
91
|
+
closeTimeFilter(): void;
|
|
92
|
+
clearColumnFilter(): void;
|
|
93
|
+
storeSortTypeInTempVariable(event: SortType): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaColumnTimeFilterComponent, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaColumnTimeFilterComponent, "anna-core-anna-column-time-filter", never, { "tableData": "tableData"; "clonedTableData": "clonedTableData"; "limit": "limit"; "filterTabObjects": "filterTabObjects"; "gtGeneralConfig": "gtGeneralConfig"; }, { "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "closeTooltip": "closeTooltip"; }, never, never, false, never>;
|
|
96
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annalib/anna-core",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.10",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular-slider/ngx-slider": "^2.0.
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
8
|
-
"@angular/material": "^
|
|
9
|
-
"@ng-bootstrap/ng-bootstrap": "^
|
|
5
|
+
"@angular-slider/ngx-slider": "^2.0.3",
|
|
6
|
+
"@angular/common": "^14.3.0",
|
|
7
|
+
"@angular/core": "^14.3.0",
|
|
8
|
+
"@angular/material": "^14.2.7",
|
|
9
|
+
"@ng-bootstrap/ng-bootstrap": "^13.1.1",
|
|
10
10
|
"dayjs": "^1.11.7",
|
|
11
11
|
"lodash-es": "^4.17.21",
|
|
12
|
-
"ng-circle-progress": "^1.
|
|
12
|
+
"ng-circle-progress": "^1.6.0",
|
|
13
13
|
"ngx-skeleton-loader": "^2.10.1"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
package/public-api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./lib/anna-core-shared-lib/components/anna-notify-icon-template/a
|
|
|
6
6
|
export * from "./lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
7
7
|
export * from "./lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
8
8
|
export * from "./lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component";
|
|
9
|
+
export * from "./lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component";
|
|
9
10
|
export * from "./lib/anna-core-shared-lib/services/anna-date-time-format.service";
|
|
10
11
|
export * from "./lib/anna-core-shared-lib/services/anna-global-config.service";
|
|
11
12
|
export * from "./lib/anna-core-shared-lib/services/anna-filter.service";
|
|
@@ -31,5 +32,8 @@ export * from "./lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna
|
|
|
31
32
|
export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
|
|
32
33
|
export * from "./lib/anna-generic-table-lib/components/anna-sort/anna-sort.component";
|
|
33
34
|
export * from "./lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
|
|
35
|
+
export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component";
|
|
36
|
+
export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component";
|
|
37
|
+
export * from "./lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component";
|
|
34
38
|
export * from "./lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy";
|
|
35
39
|
export * from "./lib/anna-generic-table-lib/directives/anna-virtual-table";
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.search-bar {
|
|
38
|
-
margin:
|
|
38
|
+
margin: 9px 7px 8px 7px;
|
|
39
39
|
border: 1px solid $pinkSwan;
|
|
40
40
|
height: 1.875rem;
|
|
41
41
|
border-radius: 2px;
|
|
@@ -121,3 +121,15 @@ span.selected-item{
|
|
|
121
121
|
z-index: 1051;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
::ng-deep .multi-select-dropdown + div .mat-menu-panel,
|
|
125
|
+
::ng-deep .single-select-dropdown + div .mat-menu-panel{
|
|
126
|
+
min-width: 100px !important;
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
min-height: 30px !important;
|
|
129
|
+
overflow-y: hidden;
|
|
130
|
+
max-height: 50vh;
|
|
131
|
+
.mat-menu-content:not(:empty) {
|
|
132
|
+
padding-top: 0;
|
|
133
|
+
padding-bottom: 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "./fonts", "./colors";
|
|
1
|
+
@import "./fonts", "./colors", "./ng-select";
|
|
2
2
|
|
|
3
3
|
.input-group-append {
|
|
4
4
|
margin: auto;
|
|
@@ -78,7 +78,7 @@ input.form-control:disabled {
|
|
|
78
78
|
background-color: #fff !important;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
::ng-deep app-single-select-dropdown {
|
|
81
|
+
::ng-deep app-single-select-dropdown ng-select.custom-dropdown {
|
|
82
82
|
width: 19.5rem !important;
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "../anna-common-scss/fonts" as fonts;
|
|
2
|
+
@use "../anna-common-scss/colors" as colors;
|
|
3
|
+
|
|
1
4
|
@mixin no-data-to-display-gt($tableHeight, $rowHeight, $noDataMarginTop) {
|
|
2
5
|
.table-container {
|
|
3
6
|
height: calc($tableHeight) !important;
|
|
@@ -86,31 +89,53 @@
|
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
|
|
89
|
-
@mixin
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
@mixin genericTableHeaderShadow($columnNumber){
|
|
93
|
+
.scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
|
|
94
|
+
border: none !important;
|
|
95
|
+
filter: drop-shadow(2px 0 2px colors.$lightGray-4);
|
|
93
96
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin genericTableTotalRowShadow($columnNumber){
|
|
100
|
+
.scroll-left-shadow-effect .total-row td:nth-of-type(#{$columnNumber}) {
|
|
101
|
+
filter: drop-shadow(2px 0 2px colors.$lightGray-4);
|
|
99
102
|
}
|
|
103
|
+
}
|
|
100
104
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
@mixin genericTableTableDataShadow($columnNumber){
|
|
106
|
+
.scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
|
|
107
|
+
filter: drop-shadow(2px 0 1px colors.$lightGray-4);
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
@mixin
|
|
108
|
-
|
|
109
|
-
|
|
111
|
+
@mixin genericTableOverrideHeaderShadow($columnNumber){
|
|
112
|
+
.scroll-left-shadow-effect .header-row th:nth-of-type(#{$columnNumber}) {
|
|
113
|
+
box-shadow: none !important;
|
|
114
|
+
border: none !important;
|
|
115
|
+
filter: none;
|
|
116
|
+
}
|
|
110
117
|
}
|
|
111
118
|
|
|
112
|
-
@mixin
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
@mixin genericTableOverrideTableDataShadow($columnNumber){
|
|
120
|
+
.scroll-left-shadow-effect td:nth-of-type(#{$columnNumber}) {
|
|
121
|
+
filter: none;
|
|
122
|
+
}
|
|
115
123
|
}
|
|
116
124
|
|
|
125
|
+
@mixin overrideEmptyTrBorders($startIndex){
|
|
126
|
+
|
|
127
|
+
tr.no-border-tr:first-of-type{
|
|
128
|
+
|
|
129
|
+
td:nth-of-type(#{$startIndex}){
|
|
130
|
+
box-shadow: inset 1px 0px 0px 0px #d4d4d4 !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
td:nth-child(n+ #{$startIndex + 1}){
|
|
134
|
+
box-shadow: none !important;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
td:last-of-type{
|
|
138
|
+
box-shadow: inset -1px 0px 0px 0px #d4d4d4 !important
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|