@annalib/anna-core 2.5.0 → 2.7.0
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-icon-column/anna-icon-column.component.mjs +2 -1
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core.module.mjs +134 -0
- package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +5 -4
- package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +11 -9
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +28 -42
- package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +3 -6
- package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +3 -3
- package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +2 -2
- package/esm2020/public-api.mjs +41 -4
- package/fesm2015/annalib-anna-core.mjs +3620 -3720
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +3609 -3709
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -1
- package/lib/anna-core.module.d.ts +30 -0
- package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +1 -1
- package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +4 -1
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +10 -9
- package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +2 -1
- package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +1 -1
- package/package.json +2 -27
- package/public-api.d.ts +28 -3
- package/esm2020/lib/anna-core-shared-lib/anna-core-shared-lib.module.mjs +0 -69
- package/esm2020/lib/anna-core-shared-lib/index.mjs +0 -2
- package/esm2020/lib/anna-core-shared-lib/public-api.mjs +0 -29
- package/esm2020/lib/anna-dropdown-lib/anna-dropdown-lib.module.mjs +0 -43
- package/esm2020/lib/anna-dropdown-lib/index.mjs +0 -2
- package/esm2020/lib/anna-dropdown-lib/public-api.mjs +0 -6
- package/esm2020/lib/anna-generic-table-lib/anna-generic-table-lib.module.mjs +0 -104
- package/esm2020/lib/anna-generic-table-lib/index.mjs +0 -2
- package/esm2020/lib/anna-generic-table-lib/public-api.mjs +0 -10
- package/esm2020/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.mjs +0 -69
- package/esm2020/src/lib/anna-core-shared-lib/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +0 -5
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +0 -15
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +0 -35
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +0 -15
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +0 -22
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +0 -15
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +0 -21
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +0 -15
- package/esm2020/src/lib/anna-core-shared-lib/constants/shared.constant.mjs +0 -34
- package/esm2020/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +0 -27
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +0 -2
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +0 -2
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +0 -3
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-sort.model.mjs +0 -2
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +0 -30
- package/esm2020/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +0 -31
- package/esm2020/src/lib/anna-core-shared-lib/public-api.mjs +0 -29
- package/esm2020/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +0 -180
- package/esm2020/src/lib/anna-core-shared-lib/services/anna-filter.service.mjs +0 -419
- package/esm2020/src/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +0 -48
- package/esm2020/src/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +0 -133
- package/esm2020/src/lib/anna-core-shared-lib/services/anna-sort.service.mjs +0 -147
- package/esm2020/src/lib/anna-dropdown-lib/anna-dropdown-lib.module.mjs +0 -43
- package/esm2020/src/lib/anna-dropdown-lib/annalib-anna-core-src-lib-anna-dropdown-lib.mjs +0 -5
- package/esm2020/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +0 -99
- package/esm2020/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +0 -360
- package/esm2020/src/lib/anna-dropdown-lib/public-api.mjs +0 -6
- package/esm2020/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.mjs +0 -104
- package/esm2020/src/lib/anna-generic-table-lib/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +0 -5
- package/esm2020/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +0 -1635
- package/esm2020/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +0 -70
- package/esm2020/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +0 -357
- package/esm2020/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +0 -189
- package/esm2020/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +0 -2
- package/esm2020/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +0 -178
- package/esm2020/src/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +0 -2
- package/esm2020/src/lib/anna-generic-table-lib/public-api.mjs +0 -10
- package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +0 -1200
- package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +0 -1
- package/fesm2015/annalib-anna-core-src-lib-anna-dropdown-lib.mjs +0 -493
- package/fesm2015/annalib-anna-core-src-lib-anna-dropdown-lib.mjs.map +0 -1
- package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +0 -2500
- package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +0 -1
- package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +0 -1200
- package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +0 -1
- package/fesm2020/annalib-anna-core-src-lib-anna-dropdown-lib.mjs +0 -491
- package/fesm2020/annalib-anna-core-src-lib-anna-dropdown-lib.mjs.map +0 -1
- package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +0 -2499
- package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +0 -1
- package/lib/anna-core-shared-lib/anna-core-shared-lib.module.d.ts +0 -16
- package/lib/anna-core-shared-lib/index.d.ts +0 -1
- package/lib/anna-core-shared-lib/public-api.d.ts +0 -21
- package/lib/anna-dropdown-lib/anna-dropdown-lib.module.d.ts +0 -11
- package/lib/anna-dropdown-lib/index.d.ts +0 -1
- package/lib/anna-dropdown-lib/public-api.d.ts +0 -3
- package/lib/anna-generic-table-lib/anna-generic-table-lib.module.d.ts +0 -22
- package/lib/anna-generic-table-lib/index.d.ts +0 -1
- package/lib/anna-generic-table-lib/public-api.d.ts +0 -6
- package/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.d.ts +0 -16
- package/src/lib/anna-core-shared-lib/annalib-anna-core-src-lib-anna-core-shared-lib.d.ts +0 -5
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +0 -8
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +0 -16
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +0 -8
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +0 -11
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +0 -8
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +0 -11
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +0 -8
- package/src/lib/anna-core-shared-lib/constants/shared.constant.d.ts +0 -32
- package/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +0 -9
- package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +0 -12
- package/src/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +0 -95
- package/src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +0 -71
- package/src/lib/anna-core-shared-lib/models/anna-sort.model.d.ts +0 -6
- package/src/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +0 -25
- package/src/lib/anna-core-shared-lib/package.json +0 -10
- package/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +0 -9
- package/src/lib/anna-core-shared-lib/public-api.d.ts +0 -21
- package/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +0 -25
- package/src/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +0 -73
- package/src/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +0 -14
- package/src/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +0 -21
- package/src/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +0 -16
- package/src/lib/anna-dropdown-lib/anna-dropdown-lib.module.d.ts +0 -11
- package/src/lib/anna-dropdown-lib/annalib-anna-core-src-lib-anna-dropdown-lib.d.ts +0 -5
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +0 -34
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +0 -67
- package/src/lib/anna-dropdown-lib/package.json +0 -10
- package/src/lib/anna-dropdown-lib/public-api.d.ts +0 -3
- package/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.d.ts +0 -22
- package/src/lib/anna-generic-table-lib/annalib-anna-core-src-lib-anna-generic-table-lib.d.ts +0 -5
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +0 -252
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +0 -16
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +0 -141
- package/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.d.ts +0 -89
- package/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts +0 -1
- package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +0 -45
- package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts +0 -1
- package/src/lib/anna-generic-table-lib/package.json +0 -10
- package/src/lib/anna-generic-table-lib/public-api.d.ts +0 -6
|
@@ -1,2499 +0,0 @@
|
|
|
1
|
-
import * as i10 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChildren, ViewEncapsulation, Optional, Inject, ViewChild, forwardRef, Directive, ContentChildren, NgModule } from '@angular/core';
|
|
5
|
-
import * as i12 from '@angular/forms';
|
|
6
|
-
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import * as i4 from '@angular/material/radio';
|
|
8
|
-
import { MatRadioModule } from '@angular/material/radio';
|
|
9
|
-
import * as i8 from '@angular/material/button-toggle';
|
|
10
|
-
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
11
|
-
import * as i2 from '@angular/material/table';
|
|
12
|
-
import { MatHeaderRowDef, MatTableModule } from '@angular/material/table';
|
|
13
|
-
import * as i11 from '@ng-bootstrap/ng-bootstrap';
|
|
14
|
-
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
15
|
-
import * as i6 from '@angular-slider/ngx-slider';
|
|
16
|
-
import { NgxSliderModule } from '@angular-slider/ngx-slider';
|
|
17
|
-
import * as i3 from 'ngx-skeleton-loader';
|
|
18
|
-
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
|
|
19
|
-
import * as i9 from 'ng-circle-progress';
|
|
20
|
-
import { NgCircleProgressModule } from 'ng-circle-progress';
|
|
21
|
-
import moment from 'moment';
|
|
22
|
-
import { isEqual, uniq, cloneDeep, sortBy, map } from 'lodash-es';
|
|
23
|
-
import * as i1 from '@annalib/anna-core/src/lib/anna-core-shared-lib';
|
|
24
|
-
import { radioButtonModel, TooltipModel, AnnaFilterService, AnnaCoreSharedLibModule } from '@annalib/anna-core/src/lib/anna-core-shared-lib';
|
|
25
|
-
import * as i7 from '@annalib/anna-core/src/lib/anna-dropdown-lib';
|
|
26
|
-
import { AnnaDropdownLibModule } from '@annalib/anna-core/src/lib/anna-dropdown-lib';
|
|
27
|
-
import * as i1$1 from '@angular/cdk/bidi';
|
|
28
|
-
import { animationFrameScheduler, asapScheduler, Subject, Observable, Subscription, isObservable, of } from 'rxjs';
|
|
29
|
-
import { startWith, auditTime, takeUntil, distinctUntilChanged, pairwise, switchMap, shareReplay, map as map$1 } from 'rxjs/operators';
|
|
30
|
-
import * as i2$1 from '@angular/cdk/scrolling';
|
|
31
|
-
import { CdkScrollable, VIRTUAL_SCROLL_STRATEGY, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
32
|
-
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
33
|
-
import { isDataSource, ArrayDataSource } from '@angular/cdk/collections';
|
|
34
|
-
import * as i2$2 from '@angular/cdk/table';
|
|
35
|
-
import { _COALESCED_STYLE_SCHEDULER, STICKY_POSITIONING_LISTENER, CdkHeaderRowDef } from '@angular/cdk/table';
|
|
36
|
-
|
|
37
|
-
// Angular import statements
|
|
38
|
-
//sub-entries of anna lib import statement
|
|
39
|
-
//Add onChange push change detection
|
|
40
|
-
class AnnaSortComponent {
|
|
41
|
-
constructor(annaSortService) {
|
|
42
|
-
this.annaSortService = annaSortService;
|
|
43
|
-
this.sortOptionClicked = new EventEmitter();
|
|
44
|
-
this.sortOptions = [
|
|
45
|
-
{
|
|
46
|
-
sortType: 'ASC',
|
|
47
|
-
isOptionActive: false,
|
|
48
|
-
text: 'A to Z',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
sortType: 'DESC',
|
|
52
|
-
isOptionActive: false,
|
|
53
|
-
text: 'Z to A',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
sortType: 'DEFAULT',
|
|
57
|
-
isOptionActive: false,
|
|
58
|
-
text: 'DEFAULT',
|
|
59
|
-
},
|
|
60
|
-
];
|
|
61
|
-
}
|
|
62
|
-
ngOnChanges(changes) {
|
|
63
|
-
console.log("sort component ngOnChanges");
|
|
64
|
-
console.log(this.sortObjectKey);
|
|
65
|
-
if (changes["sortObjectKey"] && changes["sortObjectKey"].currentValue) {
|
|
66
|
-
console.log("inside sort active func");
|
|
67
|
-
let sortType = this.annaSortService.columnSortState.get(this.sortObjectKey);
|
|
68
|
-
this.setSortType(sortType);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
sortOptionChanged(index, sortType) {
|
|
72
|
-
this.sortOptions.forEach((item) => (item.isOptionActive = false));
|
|
73
|
-
this.sortOptions[index].isOptionActive = true;
|
|
74
|
-
this.sortOptionClicked.emit(sortType);
|
|
75
|
-
}
|
|
76
|
-
ngOnInit() {
|
|
77
|
-
console.log("sort component ngOnInit");
|
|
78
|
-
console.log(this.annaSortService.columnSortState);
|
|
79
|
-
this.annaSortService.updateSortTypeSubject.subscribe((item) => {
|
|
80
|
-
this.setSortType(item);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
setSortType(option) {
|
|
84
|
-
this.sortOptions.forEach(item => item.isOptionActive = false);
|
|
85
|
-
let index = this.sortOptions.findIndex(item => item.sortType == option);
|
|
86
|
-
this.sortOptions[index].isOptionActive = true;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
AnnaSortComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaSortComponent, deps: [{ token: i1.AnnaSortService }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
AnnaSortComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaSortComponent, selector: "anna-core-sort-lib", inputs: { sortObjectKey: "sortObjectKey" }, outputs: { sortOptionClicked: "sortOptionClicked" }, usesOnChanges: true, ngImport: i0, template: "<p class=\"sort-container\">\r\n <button\r\n class=\"sort-btn\"\r\n *ngFor=\"let option of sortOptions; let i = index\"\r\n (click)=\"sortOptionChanged(i, option.sortType)\"\r\n [ngClass]=\"{ active: option.isOptionActive }\"\r\n >\r\n {{option.text}}\r\n </button>\r\n</p>", styles: [".sort-btn{background:white;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}\n"], directives: [{ type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaSortComponent, decorators: [{
|
|
92
|
-
type: Component,
|
|
93
|
-
args: [{ selector: 'anna-core-sort-lib', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p class=\"sort-container\">\r\n <button\r\n class=\"sort-btn\"\r\n *ngFor=\"let option of sortOptions; let i = index\"\r\n (click)=\"sortOptionChanged(i, option.sortType)\"\r\n [ngClass]=\"{ active: option.isOptionActive }\"\r\n >\r\n {{option.text}}\r\n </button>\r\n</p>", styles: [".sort-btn{background:white;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}\n"] }]
|
|
94
|
-
}], ctorParameters: function () { return [{ type: i1.AnnaSortService }]; }, propDecorators: { sortObjectKey: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}], sortOptionClicked: [{
|
|
97
|
-
type: Output
|
|
98
|
-
}] } });
|
|
99
|
-
|
|
100
|
-
// Angular import statements
|
|
101
|
-
class AnnaNonEditableGenericTableComponent {
|
|
102
|
-
constructor(cdRef, annaSortService, annaDateTimeFormatService, annaFilterService, annaGenericTableService) {
|
|
103
|
-
this.cdRef = cdRef;
|
|
104
|
-
this.annaSortService = annaSortService;
|
|
105
|
-
this.annaDateTimeFormatService = annaDateTimeFormatService;
|
|
106
|
-
this.annaFilterService = annaFilterService;
|
|
107
|
-
this.annaGenericTableService = annaGenericTableService;
|
|
108
|
-
this.maximumRowsWhichCanBeRenderedWithoutScroll = 5;
|
|
109
|
-
this.includeBorderInTableHeight = true;
|
|
110
|
-
this.toggleCheckbox = new EventEmitter();
|
|
111
|
-
this.toggleRowCheckbox = new EventEmitter();
|
|
112
|
-
this.toggleHeaderCheckbox = new EventEmitter();
|
|
113
|
-
this.undoIconClicked = new EventEmitter();
|
|
114
|
-
this.filterAppliedToTable = new EventEmitter();
|
|
115
|
-
this.sortingAppliedToTable = new EventEmitter();
|
|
116
|
-
this.rowClicked = new EventEmitter();
|
|
117
|
-
this.radioButtonSelected = new EventEmitter();
|
|
118
|
-
this.columnFilterOpened = new EventEmitter();
|
|
119
|
-
this.columnFilterClosed = new EventEmitter();
|
|
120
|
-
this.gtIconClicked = new EventEmitter();
|
|
121
|
-
this.gtSVGIconClicked = new EventEmitter();
|
|
122
|
-
this.gtTextActionClicked = new EventEmitter();
|
|
123
|
-
this.gtViewDetailClicked = new EventEmitter();
|
|
124
|
-
this.downloadSpotDetails = new EventEmitter();
|
|
125
|
-
this.noDataWidth = "55%";
|
|
126
|
-
this.disableClearAllBtn = true;
|
|
127
|
-
this.disableColumnClearAllBtn = true;
|
|
128
|
-
this.allSelected = 0;
|
|
129
|
-
this.options = {
|
|
130
|
-
floor: 0,
|
|
131
|
-
ceil: 0,
|
|
132
|
-
step: 0.1
|
|
133
|
-
};
|
|
134
|
-
this.tableColumns = [];
|
|
135
|
-
this.totalRowColumns = null;
|
|
136
|
-
this.isScrolledLeft = false;
|
|
137
|
-
this.rowBorderWidth = 2;
|
|
138
|
-
this.showSortComponent = false;
|
|
139
|
-
this.showFilterComponent = false;
|
|
140
|
-
this.tempSortOrder = null;
|
|
141
|
-
this.calendarSelection = { fromDate: null, toDate: null };
|
|
142
|
-
this.showNoDataToDisplay = false;
|
|
143
|
-
this.marginTop = "";
|
|
144
|
-
this.setTooltipRadioNames();
|
|
145
|
-
}
|
|
146
|
-
ngAfterViewChecked() {
|
|
147
|
-
if (this.gtGeneralConfig.component && this.gtGeneralConfig.component.includes("ORDER_LISTING") || this.gtGeneralConfig.component == "DRRLISTING") {
|
|
148
|
-
this.setMarginLeftForFilterIcon();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
ngOnInit() {
|
|
152
|
-
}
|
|
153
|
-
ngOnChanges(changes) {
|
|
154
|
-
if (this.showSkeletonLoading) {
|
|
155
|
-
this.tableData = this.numberOfSkeletonColumns;
|
|
156
|
-
this.annaFilterService.initialValueMap = new Map();
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
this.disableEnableEachColumnTooltipIcon();
|
|
160
|
-
this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
|
|
161
|
-
if (this.tableData && this.tableData.length == 0) {
|
|
162
|
-
this.tableData = Array(2).fill(0);
|
|
163
|
-
this.marginTop = (-this.gtDimension.rowHeight - (this.gtDimension.rowHeight / 2)) + 'px';
|
|
164
|
-
this.showNoDataToDisplay = true;
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
this.showNoDataToDisplay = false;
|
|
168
|
-
}
|
|
169
|
-
this.showSkeletonLoading = false;
|
|
170
|
-
}
|
|
171
|
-
//setting table column here as well because while showing skeleton loader, we should show table headers.
|
|
172
|
-
if (changes['tableHeaders'] && !isEqual(changes['tableHeaders'].currentValue, changes['tableHeaders'].previousValue)) {
|
|
173
|
-
this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
|
|
174
|
-
this.annaSortService.columnSortState = new Map();
|
|
175
|
-
this.setColumnSortStateMap();
|
|
176
|
-
this.setActiveStateObject();
|
|
177
|
-
}
|
|
178
|
-
if (changes['totalRowInfo'] && changes['totalRowInfo'].currentValue) {
|
|
179
|
-
this.totalRowColumns = this.totalRowInfo.map(x => x.colName);
|
|
180
|
-
}
|
|
181
|
-
this.cdRef.detectChanges();
|
|
182
|
-
}
|
|
183
|
-
trackByFn(index) {
|
|
184
|
-
return index;
|
|
185
|
-
}
|
|
186
|
-
setTooltipRadioNames() {
|
|
187
|
-
this.tooltipRadioTextMap = new Map();
|
|
188
|
-
this.tooltipRadioTextMap.set("StartTimeForFilter", "Start Time");
|
|
189
|
-
this.tooltipRadioTextMap.set("EndTimeForFilter", "End Time");
|
|
190
|
-
this.tooltipRadioTextMap.set("start_time_for_filter", "Start Time");
|
|
191
|
-
this.tooltipRadioTextMap.set("end_time_for_filter", "End Time");
|
|
192
|
-
this.tooltipRadioTextMap.set("primaryAEName", "Primary AE");
|
|
193
|
-
this.tooltipRadioTextMap.set("region", "Region");
|
|
194
|
-
this.tooltipRadioTextMap.set("agencyName", "Agency");
|
|
195
|
-
this.tooltipRadioTextMap.set("location", "Location");
|
|
196
|
-
this.tooltipRadioTextMap.set("advertiserName", "Advertiser");
|
|
197
|
-
this.tooltipRadioTextMap.set("productCode", "Product Code");
|
|
198
|
-
this.tooltipRadioTextMap.set("flightStartDate", "Start Date");
|
|
199
|
-
this.tooltipRadioTextMap.set("flightEndDate", "End Date");
|
|
200
|
-
this.tooltipRadioTextMap.set("orderIdAndRevNumber", "STN Order#-Rev#");
|
|
201
|
-
this.tooltipRadioTextMap.set("alternateOrderId", "Buyer Order#");
|
|
202
|
-
this.tooltipRadioTextMap.set("grp", "GRP");
|
|
203
|
-
this.tooltipRadioTextMap.set("cpp", "CPP");
|
|
204
|
-
this.tooltipRadioTextMap.set("imps", "IMPS");
|
|
205
|
-
this.tooltipRadioTextMap.set("cpm", "CPM");
|
|
206
|
-
this.tooltipRadioTextMap.set("offeredMGs", "Offered MG");
|
|
207
|
-
this.tooltipRadioTextMap.set("outstandingPE", "O/S PE");
|
|
208
|
-
this.tooltipRadioTextMap.set("offeredADUs", "Offered ADUs");
|
|
209
|
-
this.tooltipRadioTextMap.set("udDeficitValue", "Pending Audience Delta");
|
|
210
|
-
this.tooltipRadioTextMap.set("startEndTimeMulti", "Time");
|
|
211
|
-
this.tooltipRadioTextMap.set("bookedValue", "Booked");
|
|
212
|
-
this.tooltipRadioTextMap.set("bookedSpots", "Spots");
|
|
213
|
-
this.tooltipRadioTextMap.set("userChanges", "Other changes");
|
|
214
|
-
this.tooltipRadioTextMap.set("inventoryCode", "Inventory Code");
|
|
215
|
-
this.tooltipRadioTextMap.set("program", "Program");
|
|
216
|
-
this.tooltipRadioTextMap.set("agency", "Agency");
|
|
217
|
-
this.tooltipRadioTextMap.set("advertiser", "Advertiser");
|
|
218
|
-
this.tooltipRadioTextMap.set("startDate", "Start Date");
|
|
219
|
-
this.tooltipRadioTextMap.set("endDate", "End Date");
|
|
220
|
-
this.tooltipRadioTextMap.set("rcvPreempt", "Madegood PE");
|
|
221
|
-
this.tooltipRadioTextMap.set("osPreempt", "O/S PE");
|
|
222
|
-
this.tooltipRadioTextMap.set("rcvUnderDly", "Recovered UD");
|
|
223
|
-
this.tooltipRadioTextMap.set("osUnderDly", "O/s Under Dly");
|
|
224
|
-
this.tooltipRadioTextMap.set("primaryAe", "Primary AE");
|
|
225
|
-
this.tooltipRadioTextMap.set("region", "Region");
|
|
226
|
-
this.tooltipRadioTextMap.set("revCode1", "Rev code 1");
|
|
227
|
-
this.tooltipRadioTextMap.set("orderNoRevNo", "STN Order#-Rev#");
|
|
228
|
-
this.tooltipRadioTextMap.set("revCode2", "Rev code 2");
|
|
229
|
-
this.tooltipRadioTextMap.set("revCode3", "Rev code 3");
|
|
230
|
-
this.tooltipRadioTextMap.set("booked", "Booked");
|
|
231
|
-
this.tooltipRadioTextMap.set("spots", "Spots");
|
|
232
|
-
this.tooltipRadioTextMap.set("postedAudPercent", "Posted %");
|
|
233
|
-
this.tooltipRadioTextMap.set("revision", "Revision");
|
|
234
|
-
this.tooltipRadioTextMap.set("productCode", "Product Code");
|
|
235
|
-
this.tooltipRadioTextMap.set("buyerOrderId", "ALT Order#");
|
|
236
|
-
this.tooltipRadioTextMap.set("demo", "Demo");
|
|
237
|
-
this.tooltipRadioTextMap.set("postedAdu", "Posted ADUs");
|
|
238
|
-
this.tooltipRadioTextMap.set("scheduledAdu", "Scheduled ADUs");
|
|
239
|
-
this.tooltipRadioTextMap.set("audienceDeficit", "Audience Deficit");
|
|
240
|
-
this.tooltipRadioTextMap.set("postedAudPercent", "Posted Audience %");
|
|
241
|
-
this.tooltipRadioTextMap.set("potentialUnitsValue", "POT Units");
|
|
242
|
-
this.tooltipRadioTextMap.set("bookedUnitsValue", "Booked Units");
|
|
243
|
-
this.tooltipRadioTextMap.set("bookedAmountWithZeroRatingValue", "Total $ Booked");
|
|
244
|
-
this.tooltipRadioTextMap.set("bookedAmountPercentageWithZeroRatingValue", "% Against All Demos");
|
|
245
|
-
this.tooltipRadioTextMap.set("bookedAmountWithoutZeroRatingValue", "$Booked With Imps(’000)");
|
|
246
|
-
this.tooltipRadioTextMap.set("bookedAmountPercentageWithoutZeroRatingValue", "% Against All Demos");
|
|
247
|
-
this.tooltipRadioTextMap.set("totalBookedAmountValue", "Total $Booked");
|
|
248
|
-
this.tooltipRadioTextMap.set("averageUnitRateValue", "AUR");
|
|
249
|
-
this.tooltipRadioTextMap.set("totalBookedAmountWithRatingValue", "$Booked With Rating");
|
|
250
|
-
this.tooltipRadioTextMap.set("averageUnitRateWithRatingValue", "AUR With Rating");
|
|
251
|
-
this.tooltipRadioTextMap.set("totalBookedAmountWithImpressionValue", "$Booked With IMPS");
|
|
252
|
-
this.tooltipRadioTextMap.set("averageUnitRateWithImpressionValue", "AUR With IMPS");
|
|
253
|
-
this.tooltipRadioTextMap.set("bookedUnitsWithRatingValue", "Booked Units With Rating");
|
|
254
|
-
this.tooltipRadioTextMap.set("postedUnitsWithRatingValue", "Posted Units With Rating");
|
|
255
|
-
this.tooltipRadioTextMap.set("bookedUnitsWithImpressionValue", "Booked Units With IMPS");
|
|
256
|
-
this.tooltipRadioTextMap.set("postedUnitsWithImpressionValue", "Posted Units With IMPS");
|
|
257
|
-
this.tooltipRadioTextMap.set("bookedRatings", "Booked Rating");
|
|
258
|
-
this.tooltipRadioTextMap.set("postedRatings", "Posted Rating");
|
|
259
|
-
this.tooltipRadioTextMap.set("bookedImpressions", "Booked IMPS");
|
|
260
|
-
this.tooltipRadioTextMap.set("postedImpressions", "Posted IMPS");
|
|
261
|
-
this.tooltipRadioTextMap.set("bookedAverageRating", "Booked AVG Rating");
|
|
262
|
-
this.tooltipRadioTextMap.set("postedAverageRating", "Posted AVG Rating");
|
|
263
|
-
this.tooltipRadioTextMap.set("bookedAverageImpression", "Booked AVG IMPS");
|
|
264
|
-
this.tooltipRadioTextMap.set("postedAverageImpression", "Posted AVG IMPS");
|
|
265
|
-
this.tooltipRadioTextMap.set("bookedCppValue", "Booked CPP");
|
|
266
|
-
this.tooltipRadioTextMap.set("bookedEffectiveCppValue", "Effective CPP");
|
|
267
|
-
this.tooltipRadioTextMap.set("bookedCpmValue", "Booked CPM");
|
|
268
|
-
this.tooltipRadioTextMap.set("bookedEffectiveCpmValue", "Effective CPM");
|
|
269
|
-
}
|
|
270
|
-
generateTableDataWrapper() {
|
|
271
|
-
this.showSkeletonLoading = true;
|
|
272
|
-
this.tableDataWrapper = [];
|
|
273
|
-
let rowObject;
|
|
274
|
-
let columnName;
|
|
275
|
-
let columnObject;
|
|
276
|
-
let columnObjectKey;
|
|
277
|
-
let keysUsedForTableDisplay;
|
|
278
|
-
let keysUsedForColumn;
|
|
279
|
-
let additionalInfoObject;
|
|
280
|
-
let additionalKeys;
|
|
281
|
-
this.tableData.forEach((obj) => {
|
|
282
|
-
rowObject = {};
|
|
283
|
-
keysUsedForTableDisplay = [];
|
|
284
|
-
for (var colNum in this.tableHeaders) {
|
|
285
|
-
columnObject = {};
|
|
286
|
-
if (!this.tableHeaders[colNum].visible) {
|
|
287
|
-
continue;
|
|
288
|
-
}
|
|
289
|
-
columnName = "";
|
|
290
|
-
keysUsedForColumn = [];
|
|
291
|
-
this.tableHeaders[colNum].headerInfo.forEach((header) => {
|
|
292
|
-
if (header.typeOfBodyData === "STRING") {
|
|
293
|
-
columnObjectKey = header.objectKey;
|
|
294
|
-
columnObject[columnObjectKey] = obj[columnObjectKey];
|
|
295
|
-
keysUsedForTableDisplay.push(columnObjectKey);
|
|
296
|
-
keysUsedForColumn.push(columnObjectKey);
|
|
297
|
-
}
|
|
298
|
-
else if (header.typeOfBodyData === "ICON") {
|
|
299
|
-
columnObjectKey = header.typeOfBodyData;
|
|
300
|
-
columnObject[columnObjectKey] = obj[header.objectKey];
|
|
301
|
-
keysUsedForColumn.push(header.objectKey);
|
|
302
|
-
}
|
|
303
|
-
else if (header.typeOfBodyData === "CHECKBOX") {
|
|
304
|
-
columnObjectKey = header.typeOfBodyData;
|
|
305
|
-
columnObject[columnObjectKey] = obj[header.objectKey];
|
|
306
|
-
keysUsedForColumn.push(header.objectKey);
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
for (var i = 0; i < keysUsedForColumn.length; i++) {
|
|
310
|
-
columnName += keysUsedForColumn[i];
|
|
311
|
-
if (i !== keysUsedForColumn.length - 1) {
|
|
312
|
-
columnName += ',';
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
rowObject[columnName] = columnObject;
|
|
316
|
-
}
|
|
317
|
-
additionalInfoObject = {};
|
|
318
|
-
additionalKeys = Object.keys(obj).filter(key => !keysUsedForTableDisplay.includes(key));
|
|
319
|
-
additionalKeys.forEach(key => {
|
|
320
|
-
additionalInfoObject[key] = obj[key];
|
|
321
|
-
});
|
|
322
|
-
rowObject.AdditionalInfo = additionalInfoObject;
|
|
323
|
-
this.tableDataWrapper.push(rowObject);
|
|
324
|
-
});
|
|
325
|
-
this.tableData = this.tableDataWrapper;
|
|
326
|
-
this.showSkeletonLoading = false;
|
|
327
|
-
}
|
|
328
|
-
selectOrUnselectCheckbox(rowData, columnKeys, isCheckboxSelected) {
|
|
329
|
-
this.toggleCheckbox.emit({ rowData, columnKeys, isCheckboxSelected });
|
|
330
|
-
}
|
|
331
|
-
selectUnselectAllRows() {
|
|
332
|
-
this.toggleHeaderCheckbox.emit();
|
|
333
|
-
}
|
|
334
|
-
selectUnselectRow(rowData) {
|
|
335
|
-
this.toggleRowCheckbox.emit(rowData);
|
|
336
|
-
}
|
|
337
|
-
undoCreditedSpot(data) {
|
|
338
|
-
this.undoIconClicked.emit({ data, mgOrCredit: "Credit" });
|
|
339
|
-
}
|
|
340
|
-
undoMgSpot(data) {
|
|
341
|
-
this.undoIconClicked.emit({ data, mgOrCredit: "MakeGood" });
|
|
342
|
-
}
|
|
343
|
-
//Sort and Filter Logic begins!
|
|
344
|
-
closeTooltip() {
|
|
345
|
-
if (this.tooltip && this.tooltip.isOpen()) {
|
|
346
|
-
this.tooltip.close();
|
|
347
|
-
}
|
|
348
|
-
this.tooltip = null;
|
|
349
|
-
this.disableCheckboxApply = false;
|
|
350
|
-
if (!this.bindValueFuncCalled) {
|
|
351
|
-
this.columnFilterClosed.emit();
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
isTooltipActive(header) {
|
|
355
|
-
return this.annaFilterService.isTooltipActive(header, this.annaSortService.columnSortState);
|
|
356
|
-
}
|
|
357
|
-
bindTheValueToToolTip(tooltip, header) {
|
|
358
|
-
this.bindValueFuncCalled = true;
|
|
359
|
-
let containerToScroll;
|
|
360
|
-
if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "DRRLISTING") {
|
|
361
|
-
containerToScroll = document.getElementsByClassName("scrollable-container")[0];
|
|
362
|
-
var mediaQuery = window.matchMedia("(max-width: 1366px)");
|
|
363
|
-
if (mediaQuery.matches) {
|
|
364
|
-
containerToScroll.scroll(0, this.gtGeneralConfig.verticalScrollOffsetForFilterTooltip);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
// if same tooltip opened close it
|
|
368
|
-
if (tooltip == this.tooltip) {
|
|
369
|
-
this.bindValueFuncCalled = false;
|
|
370
|
-
this.closeTooltip();
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
let enabledHeaders = [];
|
|
374
|
-
this.checkIfUniqueValuePresentForTheHeader(header, enabledHeaders);
|
|
375
|
-
this.openTooltip(tooltip, enabledHeaders, header);
|
|
376
|
-
if (window.innerWidth < 1500 && window.innerHeight < 768 && !this.annaFilterService.sliderSet.has(header.filterSortObjectKeys[0])) {
|
|
377
|
-
this.columnFilterOpened.emit();
|
|
378
|
-
}
|
|
379
|
-
this.showFilterTooltipTabs = header.filterSortObjectKeys.length > 1;
|
|
380
|
-
let activeTab = this.filterTabObjects[0];
|
|
381
|
-
this.populateTooltipDataBasedOnSelectedRadio(activeTab);
|
|
382
|
-
this.bindValueFuncCalled = false;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
checkIfUniqueValuePresentForTheHeader(header, enabledHeaders) {
|
|
386
|
-
header.filterSortObjectKeys.forEach((item) => {
|
|
387
|
-
if (item == "period") {
|
|
388
|
-
let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
|
|
389
|
-
let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
|
|
390
|
-
if (uniqStartDate.length > 1 || uniqEndDate.length > 1 || this.isTooltipActive([item])) {
|
|
391
|
-
enabledHeaders.push(item);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
else if (uniq(this.tableData.map((u) => u[item])).length > 1 || this.isTooltipActive([item])) {
|
|
395
|
-
enabledHeaders.push(item);
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
openTooltip(tooltip, header, columnHeader) {
|
|
400
|
-
this.closeTooltip();
|
|
401
|
-
this.tooltip = tooltip;
|
|
402
|
-
this.tooltip.open();
|
|
403
|
-
//convert key into the header
|
|
404
|
-
this.filterTabObjects = header.map((key, index) => {
|
|
405
|
-
let value = this.tooltipRadioTextMap.has(key)
|
|
406
|
-
? this.tooltipRadioTextMap.get(key)
|
|
407
|
-
: key; //change to display name
|
|
408
|
-
return new radioButtonModel(key, value, columnHeader.isSortRequired[index], columnHeader.isFilterRequired[index]);
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
clearColumnFilter() {
|
|
412
|
-
this.annaFilterService.clearColumnFilter();
|
|
413
|
-
this.closeTooltip();
|
|
414
|
-
this.tableData = cloneDeep(this.annaFilterService.filterData(this.clonedTableData, ""));
|
|
415
|
-
this.annaSortService.noSortingAppliedData = this.tableData;
|
|
416
|
-
this.checkIfSortingIsApplied();
|
|
417
|
-
this.filterAppliedToTable.emit(this.tableData);
|
|
418
|
-
this.disableEnableEachColumnTooltipIcon();
|
|
419
|
-
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
420
|
-
}
|
|
421
|
-
populateTooltipDataBasedOnSelectedRadio(activeTab) {
|
|
422
|
-
let header = activeTab.key;
|
|
423
|
-
this.selectedLabel = activeTab.label;
|
|
424
|
-
this.showSortComponent = false;
|
|
425
|
-
this.showFilterComponent = false;
|
|
426
|
-
this.searchItem = null;
|
|
427
|
-
this.showSortComponent = activeTab.isSortRequired;
|
|
428
|
-
this.showFilterComponent = activeTab.isFilterRequired;
|
|
429
|
-
this.tempSortOrder = null;
|
|
430
|
-
this.isFilterChanged = false;
|
|
431
|
-
this.isSortChanged = false;
|
|
432
|
-
this.annaFilterService.selectedRadio = header;
|
|
433
|
-
this.disableActiveFilterClearButton();
|
|
434
|
-
this.createFilterTooltipData(header);
|
|
435
|
-
}
|
|
436
|
-
createFilterTooltipData(header) {
|
|
437
|
-
if (this.showFilterComponent) {
|
|
438
|
-
this.disableSliderApplyButton = this.disableCheckboxApply = true;
|
|
439
|
-
this.disableCalendarApplyBtn = this.disableTimeFilterApplyBtn = true;
|
|
440
|
-
if (this.annaFilterService.calendarSet.has(header)) {
|
|
441
|
-
this.getCalendarData();
|
|
442
|
-
}
|
|
443
|
-
else if (this.annaFilterService.sliderSet.has(header)) {
|
|
444
|
-
this.getSliderData(header);
|
|
445
|
-
}
|
|
446
|
-
else if (this.annaFilterService.timeSet.has(header)) {
|
|
447
|
-
this.getTimeFilterData(header);
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
this.getCheckboxData(header);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
else if (this.showSortComponent) {
|
|
454
|
-
this.disableSliderApplyButton = this.disableCheckboxApply = true;
|
|
455
|
-
this.disableCalendarApplyBtn = this.disableTimeFilterApplyBtn = true;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
disableActiveFilterClearButton() {
|
|
459
|
-
let selectedFilterSet = new Set(this.annaFilterService.appliedFiltersArray);
|
|
460
|
-
let isSortPresent = (this.annaSortService.columnSortState.size > 0 && this.annaSortService.columnSortState.get(this.annaFilterService.selectedRadio) != "DEFAULT");
|
|
461
|
-
this.disableColumnClearAllBtn = selectedFilterSet.has(this.annaFilterService.selectedRadio) || isSortPresent ? false : true;
|
|
462
|
-
}
|
|
463
|
-
getSliderData(header) {
|
|
464
|
-
this.createOptionsForSlider(header);
|
|
465
|
-
this.setSelectedRangeForSlider(header);
|
|
466
|
-
}
|
|
467
|
-
createOptionsForSlider(header) {
|
|
468
|
-
let translateFunc;
|
|
469
|
-
this.incorrectSliderInput = false;
|
|
470
|
-
this.sliderEnteredMaxValue = this.sliderEnteredMinValue = null;
|
|
471
|
-
this.showSliderMinValueError = this.showSliderMaxValueError = this.isMinTextBoxEmpty = this.isMaxTextBoxEmpty = false;
|
|
472
|
-
if (this.annaFilterService.sliderCurrencySet.has(header)) {
|
|
473
|
-
translateFunc = "currency";
|
|
474
|
-
}
|
|
475
|
-
else if (header == "postedAudPercent") {
|
|
476
|
-
translateFunc = "percent";
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
translateFunc = "normal";
|
|
480
|
-
}
|
|
481
|
-
let optionsData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
482
|
-
let minValue = this.annaFilterService.returnMaxAndMinValue(optionsData, header, true);
|
|
483
|
-
let maxValue = this.annaFilterService.returnMaxAndMinValue(optionsData, header, false);
|
|
484
|
-
let obj = this.annaFilterService.setOptionValues(minValue, maxValue);
|
|
485
|
-
if (translateFunc === "normal") {
|
|
486
|
-
obj.translate = this.annaFilterService.normalTranslateFunction;
|
|
487
|
-
}
|
|
488
|
-
else if (translateFunc === "percent") {
|
|
489
|
-
obj.translate = this.annaFilterService.percentTranslateFunction;
|
|
490
|
-
}
|
|
491
|
-
else if (translateFunc === "currency") {
|
|
492
|
-
obj.translate = this.annaFilterService.currencyTranslateFunction;
|
|
493
|
-
}
|
|
494
|
-
this.options = obj;
|
|
495
|
-
this.options.step = 1;
|
|
496
|
-
this.sliderFilterTextBoxStep = "1";
|
|
497
|
-
if (header !== "WeekNumber") {
|
|
498
|
-
this.options.step = 0.1;
|
|
499
|
-
this.sliderFilterTextBoxStep = "0.1";
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
setSelectedRangeForSlider(header) {
|
|
503
|
-
if (this.annaFilterService.tooltipSelectedMap.has(header)) {
|
|
504
|
-
let selectedObj = this.annaFilterService.tooltipSelectedMap.get(header);
|
|
505
|
-
this.sliderMinValue = selectedObj.min < this.options.floor ? this.options.floor : selectedObj.min;
|
|
506
|
-
this.sliderMaxValue = selectedObj.max < this.options.ceil ? selectedObj.max : this.options.ceil;
|
|
507
|
-
this.sliderEnteredMinValue = this.sliderMinValue;
|
|
508
|
-
this.sliderEnteredMaxValue = this.sliderMaxValue;
|
|
509
|
-
}
|
|
510
|
-
else {
|
|
511
|
-
this.sliderMinValue = this.options.floor;
|
|
512
|
-
this.sliderMaxValue = this.options.ceil;
|
|
513
|
-
}
|
|
514
|
-
this.sliderEnteredMinValue = this.sliderMinValue;
|
|
515
|
-
this.sliderEnteredMaxValue = this.sliderMaxValue;
|
|
516
|
-
}
|
|
517
|
-
getCheckboxData(header) {
|
|
518
|
-
let tooltipOptions = this.createListForCheckboxFilter(header);
|
|
519
|
-
let selectedItems = sortBy(tooltipOptions.filter(item => item.isSelected), "label");
|
|
520
|
-
let unselectedItems = sortBy(tooltipOptions.filter(item => !item.isSelected), "label");
|
|
521
|
-
this.clonedTooltipOptions = [...selectedItems, ...unselectedItems];
|
|
522
|
-
this.tooltipOptions = cloneDeep(this.clonedTooltipOptions);
|
|
523
|
-
this.disableSelectAll = unselectedItems.length == 0;
|
|
524
|
-
this.disableClearAll = selectedItems.length == 0;
|
|
525
|
-
this.selectedCheckboxOptionsCount = selectedItems.length;
|
|
526
|
-
}
|
|
527
|
-
createListForCheckboxFilter(header) {
|
|
528
|
-
let optionData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
529
|
-
let uniqOptionData = uniq(optionData.map(item => item[header]));
|
|
530
|
-
let tooltipOptions = uniqOptionData.map((item, index) => new TooltipModel(item, index + 1));
|
|
531
|
-
this.selectUnselectListCheckbox(tooltipOptions, header);
|
|
532
|
-
let index = tooltipOptions.findIndex(item => item.value == null);
|
|
533
|
-
if (index != -1) {
|
|
534
|
-
tooltipOptions[index].label = "(Blank)";
|
|
535
|
-
}
|
|
536
|
-
return tooltipOptions;
|
|
537
|
-
}
|
|
538
|
-
selectUnselectListCheckbox(tooltipOptions, header) {
|
|
539
|
-
if (this.annaFilterService.tooltipSelectedMap.has(header)) {
|
|
540
|
-
let selectedValueSet = new Set(this.annaFilterService.tooltipSelectedMap.get(header));
|
|
541
|
-
tooltipOptions.forEach(item => item.isSelected = selectedValueSet.has(item.value) ? true : false);
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
tooltipOptions.forEach(item => item.isSelected = true);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
getCalendarData() {
|
|
548
|
-
const parsingFormat = "MM/DD/YYYY";
|
|
549
|
-
let minMaxDate = this.createRangeForTheDateFilter();
|
|
550
|
-
this.selectRangeForTheDateFilter(minMaxDate, parsingFormat);
|
|
551
|
-
}
|
|
552
|
-
createRangeForTheDateFilter() {
|
|
553
|
-
let optionData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
554
|
-
let minMaxDate;
|
|
555
|
-
//When you want to use startDate and endDate combined as single column then use Period.
|
|
556
|
-
if (this.annaFilterService.selectedRadio == "period") {
|
|
557
|
-
minMaxDate = this.createStartEndDateRange(optionData);
|
|
558
|
-
}
|
|
559
|
-
else {
|
|
560
|
-
minMaxDate = this.annaFilterService.returnMinAndMaxDate(optionData, this.annaFilterService.selectedRadio);
|
|
561
|
-
}
|
|
562
|
-
return minMaxDate;
|
|
563
|
-
}
|
|
564
|
-
createStartEndDateRange(optionData) {
|
|
565
|
-
let minStartDate = this.annaFilterService.returnMinAndMaxDate(optionData, "startDate");
|
|
566
|
-
let maxEndDate = this.annaFilterService.returnMinAndMaxDate(optionData, "endDate");
|
|
567
|
-
return [minStartDate[0], maxEndDate[1]];
|
|
568
|
-
}
|
|
569
|
-
selectRangeForTheDateFilter(minMaxDate, parsingFormat) {
|
|
570
|
-
this.calendarMinEnabledDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxDate[0], parsingFormat);
|
|
571
|
-
this.calendarMaxEnabledDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxDate[1], parsingFormat);
|
|
572
|
-
if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
|
|
573
|
-
let selectedDateObj = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
|
|
574
|
-
if (selectedDateObj.fromDate.isAfter(minMaxDate[0])) {
|
|
575
|
-
this.selectedMinDate = this.annaDateTimeFormatService.convertToNgbDate(selectedDateObj.fromDate, parsingFormat);
|
|
576
|
-
}
|
|
577
|
-
else {
|
|
578
|
-
this.selectedMinDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxDate[0], parsingFormat);
|
|
579
|
-
}
|
|
580
|
-
if (selectedDateObj.toDate.isAfter(minMaxDate[1])) {
|
|
581
|
-
this.selectedMaxDate = this.annaDateTimeFormatService.convertToNgbDate(minMaxDate[1], parsingFormat);
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
this.selectedMaxDate = this.annaDateTimeFormatService.convertToNgbDate(selectedDateObj.toDate, parsingFormat);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
this.selectedMinDate = cloneDeep(this.calendarMinEnabledDate);
|
|
589
|
-
this.selectedMaxDate = cloneDeep(this.calendarMaxEnabledDate);
|
|
590
|
-
}
|
|
591
|
-
this.calendarSelection.fromDate = cloneDeep(this.selectedMinDate);
|
|
592
|
-
this.calendarSelection.toDate = cloneDeep(this.selectedMaxDate);
|
|
593
|
-
}
|
|
594
|
-
getTimeFilterData(header) {
|
|
595
|
-
this.startTimeHourErr = this.startTimeMinErr = this.endTimeHourErr = this.endTimeMinErr = false;
|
|
596
|
-
if (this.annaFilterService.tooltipSelectedMap.has(header)) {
|
|
597
|
-
this.selectedFromTime = this.annaFilterService.tooltipSelectedMap.get(header).fromTime;
|
|
598
|
-
this.selectedToTime = this.annaFilterService.tooltipSelectedMap.get(header).toTime;
|
|
599
|
-
}
|
|
600
|
-
else {
|
|
601
|
-
this.setInitialValueMapForTimeFilter(header);
|
|
602
|
-
this.selectedFromTime = this.annaFilterService.initialValueMap.get(header).fromTime;
|
|
603
|
-
this.selectedToTime = this.annaFilterService.initialValueMap.get(header).toTime;
|
|
604
|
-
}
|
|
605
|
-
if (this.selectedFromTime != undefined || this.selectedToTime != undefined) {
|
|
606
|
-
this.selectedFromTime = this.annaDateTimeFormatService.formatToTwelveHrs(this.selectedFromTime, true);
|
|
607
|
-
this.selectedToTime = this.annaDateTimeFormatService.formatToTwelveHrs(this.selectedToTime, true);
|
|
608
|
-
this.clonedSelectedFromTime = cloneDeep(this.selectedFromTime);
|
|
609
|
-
this.clonedSelectedToTime = cloneDeep(this.selectedToTime);
|
|
610
|
-
}
|
|
611
|
-
else {
|
|
612
|
-
this.selectedFromTime = ["-", "-", "-"];
|
|
613
|
-
this.selectedToTime = ["-", "-", "-"];
|
|
614
|
-
}
|
|
615
|
-
if (this.gtGeneralConfig.component === "SPOTDETAILS" || this.gtGeneralConfig.component === "EXCLUDEINVENTORYPOPUP") {
|
|
616
|
-
this.setTimeFilterDataForComponentsOtherThanRatingsPage(header);
|
|
617
|
-
}
|
|
618
|
-
else if (this.gtGeneralConfig.component === "RATING") {
|
|
619
|
-
this.setTimeFilterDataForRatingPageComponent(header);
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
//Need to change this method
|
|
623
|
-
setTimeFilterDataForComponentsOtherThanRatingsPage(header) {
|
|
624
|
-
this.showMultiTimeCheckbox = false;
|
|
625
|
-
this.showZeroTimeCheckbox = false;
|
|
626
|
-
this.showEnterTimeCheckbox = false;
|
|
627
|
-
this.multiTimeCheckboxChecked = false;
|
|
628
|
-
this.zeroTimeCheckboxChecked = false;
|
|
629
|
-
this.enterTimeCheckboxChecked = false;
|
|
630
|
-
let optionsData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
631
|
-
let selectedObj;
|
|
632
|
-
if (this.annaFilterService.tooltipSelectedMap.has(header)) {
|
|
633
|
-
selectedObj = this.annaFilterService.tooltipSelectedMap.get(header);
|
|
634
|
-
}
|
|
635
|
-
else {
|
|
636
|
-
selectedObj = this.annaFilterService.initialValueMap.get(header);
|
|
637
|
-
}
|
|
638
|
-
if (optionsData.findIndex(obj => obj[header] == "0") != -1) {
|
|
639
|
-
this.showZeroTimeCheckbox = true;
|
|
640
|
-
this.zeroTimeCheckboxChecked = selectedObj.includeZeroTime;
|
|
641
|
-
}
|
|
642
|
-
if (optionsData.findIndex(obj => obj[header] == "<multi>") != -1) {
|
|
643
|
-
this.showMultiTimeCheckbox = true;
|
|
644
|
-
this.multiTimeCheckboxChecked = selectedObj.includeMulti;
|
|
645
|
-
}
|
|
646
|
-
if (this.showZeroTimeCheckbox || this.showMultiTimeCheckbox) {
|
|
647
|
-
this.showEnterTimeCheckbox = true;
|
|
648
|
-
}
|
|
649
|
-
if (optionsData.findIndex(obj => obj[header] != "<multi>" && obj[header] != "0") != -1) {
|
|
650
|
-
this.enterTimeCheckboxChecked = selectedObj.includeTimeRange;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
setTimeFilterDataForRatingPageComponent(header) {
|
|
654
|
-
this.showMultiTimeCheckbox = false;
|
|
655
|
-
this.showZeroTimeCheckbox = false;
|
|
656
|
-
this.showEnterTimeCheckbox = false;
|
|
657
|
-
this.multiTimeCheckboxChecked = false;
|
|
658
|
-
this.zeroTimeCheckboxChecked = false;
|
|
659
|
-
this.enterTimeCheckboxChecked = false;
|
|
660
|
-
let optionsData = this.annaFilterService.getFilterOptionsData(this.tableData, this.clonedTableData);
|
|
661
|
-
let selectedObj;
|
|
662
|
-
if (this.annaFilterService.tooltipSelectedMap.has(header)) {
|
|
663
|
-
selectedObj = this.annaFilterService.tooltipSelectedMap.get(header);
|
|
664
|
-
}
|
|
665
|
-
else {
|
|
666
|
-
selectedObj = this.annaFilterService.initialValueMap.get(header);
|
|
667
|
-
}
|
|
668
|
-
if (optionsData.findIndex(obj => obj[header][0] == "0") != -1) {
|
|
669
|
-
this.showZeroTimeCheckbox = true;
|
|
670
|
-
this.zeroTimeCheckboxChecked = selectedObj.includeZeroTime;
|
|
671
|
-
}
|
|
672
|
-
if (optionsData.findIndex(obj => obj[header][0] == "<multi>") != -1) {
|
|
673
|
-
this.showMultiTimeCheckbox = true;
|
|
674
|
-
this.multiTimeCheckboxChecked = selectedObj.includeMulti;
|
|
675
|
-
}
|
|
676
|
-
if (this.showZeroTimeCheckbox || this.showMultiTimeCheckbox) {
|
|
677
|
-
this.showEnterTimeCheckbox = true;
|
|
678
|
-
}
|
|
679
|
-
if (optionsData.findIndex(obj => obj[header][0] != "<multi>" && obj[header][0] != "0") != -1) {
|
|
680
|
-
this.enterTimeCheckboxChecked = selectedObj.includeTimeRange;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
selectOrUnselectMultiTimeCheckbox() {
|
|
684
|
-
this.multiTimeCheckboxChecked = !this.multiTimeCheckboxChecked;
|
|
685
|
-
this.disableTimeFilterApplyButton();
|
|
686
|
-
}
|
|
687
|
-
selectOrUnselectZeroTimeCheckbox() {
|
|
688
|
-
this.zeroTimeCheckboxChecked = !this.zeroTimeCheckboxChecked;
|
|
689
|
-
this.disableTimeFilterApplyButton();
|
|
690
|
-
}
|
|
691
|
-
selectOrUnselectEnterTimeCheckbox() {
|
|
692
|
-
this.enterTimeCheckboxChecked = !this.enterTimeCheckboxChecked;
|
|
693
|
-
this.disableTimeFilterApplyButton();
|
|
694
|
-
}
|
|
695
|
-
selectUnselectCheckbox(data) {
|
|
696
|
-
data.isSelected = !data.isSelected;
|
|
697
|
-
let index = this.clonedTooltipOptions.findIndex(item => item.id == data.id);
|
|
698
|
-
this.clonedTooltipOptions[index].isSelected = data.isSelected;
|
|
699
|
-
let selectedItems = this.tooltipOptions.filter(item => item.isSelected);
|
|
700
|
-
let unselectedItems = this.tooltipOptions.filter(item => !item.isSelected);
|
|
701
|
-
this.disableClearAll = selectedItems.length == 0;
|
|
702
|
-
this.disableSelectAll = unselectedItems.length == 0;
|
|
703
|
-
this.selectedCheckboxOptionsCount = selectedItems.length;
|
|
704
|
-
this.disableCheckboxFilterApplyButton();
|
|
705
|
-
}
|
|
706
|
-
minValueChanged(val) {
|
|
707
|
-
if (val || val == '0') {
|
|
708
|
-
this.sliderEnteredMinValue = parseInt(val);
|
|
709
|
-
this.isMinTextBoxEmpty = false;
|
|
710
|
-
if (this.isMaxTextBoxEmpty) {
|
|
711
|
-
if (this.sliderEnteredMinValue > this.options.ceil) {
|
|
712
|
-
this.showSliderMinValueError = true;
|
|
713
|
-
this.disableSliderApplyButton = true;
|
|
714
|
-
this.incorrectSliderInput = true;
|
|
715
|
-
}
|
|
716
|
-
else {
|
|
717
|
-
this.showSliderMinValueError = false;
|
|
718
|
-
this.showSliderMaxValueError = false;
|
|
719
|
-
this.disableSliderApplyButton = false;
|
|
720
|
-
this.incorrectSliderInput = false;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
else if (this.sliderEnteredMinValue > this.sliderEnteredMaxValue) {
|
|
724
|
-
if (this.isValueInRange(this.sliderEnteredMaxValue)) {
|
|
725
|
-
this.showSliderMinValueError = true;
|
|
726
|
-
this.showSliderMaxValueError = false;
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
this.showSliderMaxValueError = true;
|
|
730
|
-
if (this.isValueInRange(this.sliderEnteredMinValue)) {
|
|
731
|
-
this.showSliderMinValueError = false;
|
|
732
|
-
}
|
|
733
|
-
else {
|
|
734
|
-
this.showSliderMinValueError = true;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
this.disableSliderApplyButton = true;
|
|
738
|
-
this.incorrectSliderInput = true;
|
|
739
|
-
}
|
|
740
|
-
else if (this.sliderEnteredMinValue < this.options.floor) {
|
|
741
|
-
this.showSliderMinValueError = true;
|
|
742
|
-
this.disableSliderApplyButton = true;
|
|
743
|
-
this.incorrectSliderInput = true;
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
this.showSliderMinValueError = false;
|
|
747
|
-
this.disableSliderApplyButton = false;
|
|
748
|
-
this.incorrectSliderInput = false;
|
|
749
|
-
}
|
|
750
|
-
console.log(this.sliderEnteredMinValue);
|
|
751
|
-
}
|
|
752
|
-
else {
|
|
753
|
-
console.log('inside else condition');
|
|
754
|
-
this.sliderEnteredMinValue = this.options.floor;
|
|
755
|
-
this.isMinTextBoxEmpty = true;
|
|
756
|
-
this.showSliderMinValueError = false;
|
|
757
|
-
}
|
|
758
|
-
this.showErrorForMinAndMaxValue();
|
|
759
|
-
}
|
|
760
|
-
maxValueChanged(val) {
|
|
761
|
-
if (val || val == "0") {
|
|
762
|
-
this.sliderEnteredMaxValue = parseInt(val);
|
|
763
|
-
this.isMaxTextBoxEmpty = false;
|
|
764
|
-
if (this.isMinTextBoxEmpty) {
|
|
765
|
-
if (this.sliderEnteredMaxValue < this.options.floor) {
|
|
766
|
-
this.showSliderMaxValueError = true;
|
|
767
|
-
this.disableSliderApplyButton = true;
|
|
768
|
-
this.incorrectSliderInput = true;
|
|
769
|
-
}
|
|
770
|
-
else {
|
|
771
|
-
this.showSliderMaxValueError = false;
|
|
772
|
-
this.showSliderMinValueError = false;
|
|
773
|
-
this.disableSliderApplyButton = false;
|
|
774
|
-
this.incorrectSliderInput = false;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
else if (this.sliderEnteredMaxValue < this.sliderEnteredMinValue) {
|
|
778
|
-
if (this.isValueInRange(this.sliderEnteredMinValue)) {
|
|
779
|
-
this.showSliderMaxValueError = true;
|
|
780
|
-
this.showSliderMinValueError = false;
|
|
781
|
-
}
|
|
782
|
-
else {
|
|
783
|
-
this.showSliderMinValueError = true;
|
|
784
|
-
if (this.isValueInRange(this.sliderEnteredMaxValue)) {
|
|
785
|
-
this.showSliderMaxValueError = false;
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
this.showSliderMaxValueError = true;
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
this.disableSliderApplyButton = true;
|
|
792
|
-
this.incorrectSliderInput = true;
|
|
793
|
-
// this.showMaxError = true;
|
|
794
|
-
}
|
|
795
|
-
else if (this.sliderEnteredMaxValue > this.options.ceil) {
|
|
796
|
-
this.showSliderMaxValueError = true;
|
|
797
|
-
this.disableSliderApplyButton = true;
|
|
798
|
-
this.incorrectSliderInput = true;
|
|
799
|
-
}
|
|
800
|
-
else {
|
|
801
|
-
this.showSliderMaxValueError = false;
|
|
802
|
-
this.disableSliderApplyButton = false;
|
|
803
|
-
this.incorrectSliderInput = false;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
else {
|
|
807
|
-
this.sliderEnteredMaxValue = this.options.ceil;
|
|
808
|
-
this.isMaxTextBoxEmpty = true;
|
|
809
|
-
this.showSliderMaxValueError = false;
|
|
810
|
-
console.log(this.sliderEnteredMaxValue);
|
|
811
|
-
}
|
|
812
|
-
this.showErrorForMinAndMaxValue();
|
|
813
|
-
}
|
|
814
|
-
showErrorForMinAndMaxValue() {
|
|
815
|
-
if (this.isMinTextBoxEmpty && this.isMaxTextBoxEmpty) {
|
|
816
|
-
this.showSliderMinValueError = true;
|
|
817
|
-
this.showSliderMaxValueError = true;
|
|
818
|
-
this.disableSliderApplyButton = true;
|
|
819
|
-
this.incorrectSliderInput = true;
|
|
820
|
-
}
|
|
821
|
-
this.disableSliderApplyBtn();
|
|
822
|
-
}
|
|
823
|
-
isValueInRange(val) {
|
|
824
|
-
return this.options.floor <= val && val <= this.options.ceil;
|
|
825
|
-
}
|
|
826
|
-
disableSliderApplyBtn() {
|
|
827
|
-
if (this.showFilterComponent && this.showSortComponent) {
|
|
828
|
-
this.disableSliderApplyButton = this.incorrectSliderInput || (!this.checkIfSortingChanged() && !this.checkIfSliderTooltipIsFiltered());
|
|
829
|
-
}
|
|
830
|
-
else if (this.showFilterComponent) {
|
|
831
|
-
this.disableSliderApplyButton = this.incorrectSliderInput || !this.checkIfSliderTooltipIsFiltered();
|
|
832
|
-
}
|
|
833
|
-
else if (this.showSortComponent) {
|
|
834
|
-
this.disableSliderApplyButton = !this.checkIfSortingChanged();
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
sliderValueChange() {
|
|
838
|
-
this.sliderValue = { min: this.sliderMinValue, max: this.sliderMaxValue };
|
|
839
|
-
}
|
|
840
|
-
cancelSliderFilter() {
|
|
841
|
-
this.sliderValue = null;
|
|
842
|
-
this.closeTooltip();
|
|
843
|
-
}
|
|
844
|
-
applyFilters() {
|
|
845
|
-
this.applyListFilters();
|
|
846
|
-
this.applySortingOnFilteredData();
|
|
847
|
-
this.emitData();
|
|
848
|
-
this.disableEnableEachColumnTooltipIcon();
|
|
849
|
-
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
850
|
-
this.closeTooltip();
|
|
851
|
-
}
|
|
852
|
-
applyListFilters() {
|
|
853
|
-
if (this.showFilterComponent && this.isFilterChanged) {
|
|
854
|
-
let currentSelectedValue = [];
|
|
855
|
-
if (this.tooltipOptions) {
|
|
856
|
-
currentSelectedValue = sortBy(this.tooltipOptions.filter(item => item.isSelected).map(item => item.value));
|
|
857
|
-
if (!this.searchItem && currentSelectedValue.length == this.tooltipOptions.length && this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
858
|
-
currentSelectedValue = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
let blankIndex = currentSelectedValue.findIndex((item) => item == null);
|
|
862
|
-
if (blankIndex != -1) {
|
|
863
|
-
currentSelectedValue = sortBy(currentSelectedValue);
|
|
864
|
-
}
|
|
865
|
-
this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSelectedValue);
|
|
866
|
-
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSelectedValue);
|
|
867
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
868
|
-
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
applySortingOnFilteredData() {
|
|
872
|
-
if (this.showSortComponent) {
|
|
873
|
-
if (this.isSortChanged) {
|
|
874
|
-
this.updateSortMap();
|
|
875
|
-
}
|
|
876
|
-
else if (this.isFilterChanged) {
|
|
877
|
-
this.checkIfSortingIsApplied();
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
else if (this.isFilterChanged) {
|
|
881
|
-
this.checkIfSortingIsApplied();
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
emitData() {
|
|
885
|
-
if (this.isFilterChanged && this.isSortChanged) {
|
|
886
|
-
this.filterAppliedToTable.emit(this.tableData);
|
|
887
|
-
}
|
|
888
|
-
else if (this.isFilterChanged) {
|
|
889
|
-
this.filterAppliedToTable.emit(this.tableData);
|
|
890
|
-
}
|
|
891
|
-
else if (this.isSortChanged) {
|
|
892
|
-
this.sortingAppliedToTable.emit(this.tableData);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
applySorting(key) {
|
|
896
|
-
if (this.tempSortOrder == "ASC") {
|
|
897
|
-
this.tableData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(true, this.tableData, key));
|
|
898
|
-
}
|
|
899
|
-
else if (this.tempSortOrder == "DESC") {
|
|
900
|
-
this.tableData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(false, this.tableData, key));
|
|
901
|
-
}
|
|
902
|
-
else if (this.tempSortOrder == "DEFAULT") {
|
|
903
|
-
this.tableData = cloneDeep(this.annaSortService.noSortingAppliedData);
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
revert() {
|
|
907
|
-
this.tempTooltipData = cloneDeep(this.toolTipdata);
|
|
908
|
-
this.annaFilterService.tooltipMap.set(this.annaFilterService.selectedRadio, this.tempTooltipData);
|
|
909
|
-
this.toolTipdata = null;
|
|
910
|
-
}
|
|
911
|
-
closeCheckboxFilter() {
|
|
912
|
-
if (this.toolTipdata) {
|
|
913
|
-
this.revert();
|
|
914
|
-
}
|
|
915
|
-
this.closeTooltip();
|
|
916
|
-
}
|
|
917
|
-
applySliderFilter() {
|
|
918
|
-
this.applySliderFilterOnData();
|
|
919
|
-
this.applySortingOnFilteredData();
|
|
920
|
-
this.emitData();
|
|
921
|
-
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
922
|
-
this.closeTooltip();
|
|
923
|
-
}
|
|
924
|
-
applySliderFilterOnData() {
|
|
925
|
-
if (this.showFilterComponent && this.isFilterChanged) {
|
|
926
|
-
let currentSliderData = { min: null, max: null };
|
|
927
|
-
// if(this.isMinTextBoxEmpty){
|
|
928
|
-
// currentSliderData.min = this.options.floor;
|
|
929
|
-
// currentSliderData.max = this.sliderMaxValue;
|
|
930
|
-
// }
|
|
931
|
-
// else if(this.isMaxTextBoxEmpty){
|
|
932
|
-
// currentSliderData.max = this.options.ceil;
|
|
933
|
-
// currentSliderData.min = this.sliderMinValue;
|
|
934
|
-
// }
|
|
935
|
-
// else{
|
|
936
|
-
currentSliderData.max = this.sliderEnteredMaxValue;
|
|
937
|
-
currentSliderData.min = this.sliderEnteredMinValue;
|
|
938
|
-
// }
|
|
939
|
-
if (currentSliderData.min == this.options.floor && currentSliderData.max == this.options.ceil && this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
940
|
-
currentSliderData = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
941
|
-
}
|
|
942
|
-
this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSliderData);
|
|
943
|
-
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSliderData);
|
|
944
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
945
|
-
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
946
|
-
this.disableEnableEachColumnTooltipIcon();
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
cancelInDateFilter() {
|
|
950
|
-
this.closeTooltip();
|
|
951
|
-
}
|
|
952
|
-
updateSortMap() {
|
|
953
|
-
for (let [key, value] of this.annaSortService.columnSortState.entries()) {
|
|
954
|
-
this.annaSortService.columnSortState.set(key, "DEFAULT");
|
|
955
|
-
}
|
|
956
|
-
this.annaSortService.columnSortState.set(this.annaFilterService.selectedRadio, this.tempSortOrder);
|
|
957
|
-
this.applySorting(this.annaFilterService.selectedRadio);
|
|
958
|
-
}
|
|
959
|
-
applyDateFilter() {
|
|
960
|
-
this.applyDateFilterOnData();
|
|
961
|
-
this.applySortingOnFilteredData();
|
|
962
|
-
this.emitData();
|
|
963
|
-
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
964
|
-
this.closeTooltip();
|
|
965
|
-
}
|
|
966
|
-
applyDateFilterOnData() {
|
|
967
|
-
if (this.showFilterComponent && this.isFilterChanged) {
|
|
968
|
-
let currentSelectedDate = this.calendarSelection;
|
|
969
|
-
let fromDate = { year: currentSelectedDate.fromDate.year, month: currentSelectedDate.fromDate.month, day: currentSelectedDate.fromDate.day };
|
|
970
|
-
let toDate = { year: currentSelectedDate.toDate.year, month: currentSelectedDate.toDate.month, day: currentSelectedDate.toDate.day };
|
|
971
|
-
if (isEqual(this.calendarMinEnabledDate, fromDate) && isEqual(this.calendarMaxEnabledDate, toDate) && this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
972
|
-
currentSelectedDate = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
973
|
-
}
|
|
974
|
-
else {
|
|
975
|
-
currentSelectedDate.fromDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(currentSelectedDate.fromDate));
|
|
976
|
-
currentSelectedDate.toDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(currentSelectedDate.toDate));
|
|
977
|
-
}
|
|
978
|
-
this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSelectedDate);
|
|
979
|
-
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSelectedDate);
|
|
980
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
981
|
-
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
982
|
-
this.disableEnableEachColumnTooltipIcon();
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
applyWeekFilter(event) {
|
|
986
|
-
}
|
|
987
|
-
incrementHour(arr) {
|
|
988
|
-
if (arr[0] == "") {
|
|
989
|
-
arr[0] = 1;
|
|
990
|
-
}
|
|
991
|
-
else if (parseInt(arr[0]) < 12) {
|
|
992
|
-
arr[0] = parseInt(arr[0]) + 1;
|
|
993
|
-
}
|
|
994
|
-
else {
|
|
995
|
-
arr[0] = 1;
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
decrementHour(arr) {
|
|
999
|
-
if (arr[0] == "") {
|
|
1000
|
-
arr[0] = 12;
|
|
1001
|
-
}
|
|
1002
|
-
else if (parseInt(arr[0]) > 1) {
|
|
1003
|
-
arr[0] = parseInt(arr[0]) - 1;
|
|
1004
|
-
}
|
|
1005
|
-
else {
|
|
1006
|
-
arr[0] = 12;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
incrementMinute(arr) {
|
|
1010
|
-
arr[1] = parseInt(arr[1]) + 15;
|
|
1011
|
-
if (parseInt(arr[1]) == 60) {
|
|
1012
|
-
arr[1] = "00";
|
|
1013
|
-
}
|
|
1014
|
-
else if (parseInt(arr[1]) == 0) {
|
|
1015
|
-
arr[1] = "00";
|
|
1016
|
-
}
|
|
1017
|
-
else if (parseInt(arr[1]) > 60) {
|
|
1018
|
-
let res = parseInt(arr[1]) - 60;
|
|
1019
|
-
arr[1] = res < 10 ? `0${res}` : res.toString();
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
decrementMinute(arr) {
|
|
1023
|
-
arr[1] = parseInt(arr[1]) - 15;
|
|
1024
|
-
if (parseInt(arr[1]) < 0) {
|
|
1025
|
-
let res = 60 + parseInt(arr[1]);
|
|
1026
|
-
arr[1] = res;
|
|
1027
|
-
}
|
|
1028
|
-
else if (parseInt(arr[1]) == 0) {
|
|
1029
|
-
arr[1] = "00";
|
|
1030
|
-
}
|
|
1031
|
-
else if (arr[1] < 10) {
|
|
1032
|
-
arr[1] = `0${arr[1]}`;
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
changeStartTimeHour(increment) {
|
|
1036
|
-
if (increment) {
|
|
1037
|
-
this.incrementHour(this.selectedFromTime);
|
|
1038
|
-
}
|
|
1039
|
-
else {
|
|
1040
|
-
this.decrementHour(this.selectedFromTime);
|
|
1041
|
-
}
|
|
1042
|
-
this.startTimeHourChange(this.selectedFromTime[0].toString());
|
|
1043
|
-
}
|
|
1044
|
-
changeEndTimeHour(increment) {
|
|
1045
|
-
if (increment) {
|
|
1046
|
-
this.incrementHour(this.selectedToTime);
|
|
1047
|
-
}
|
|
1048
|
-
else {
|
|
1049
|
-
this.decrementHour(this.selectedToTime);
|
|
1050
|
-
}
|
|
1051
|
-
this.endTimeHourChange(this.selectedToTime[0].toString());
|
|
1052
|
-
}
|
|
1053
|
-
changeEndTimeMinute(increment) {
|
|
1054
|
-
if (increment) {
|
|
1055
|
-
this.incrementMinute(this.selectedToTime);
|
|
1056
|
-
}
|
|
1057
|
-
else {
|
|
1058
|
-
this.decrementMinute(this.selectedToTime);
|
|
1059
|
-
}
|
|
1060
|
-
this.endTimeMinChange(this.selectedToTime[1].toString());
|
|
1061
|
-
}
|
|
1062
|
-
changeStartTimeMinute(increment) {
|
|
1063
|
-
if (increment) {
|
|
1064
|
-
this.incrementMinute(this.selectedFromTime);
|
|
1065
|
-
}
|
|
1066
|
-
else {
|
|
1067
|
-
this.decrementMinute(this.selectedFromTime);
|
|
1068
|
-
}
|
|
1069
|
-
this.startTimeMinChange(this.selectedFromTime[1].toString());
|
|
1070
|
-
}
|
|
1071
|
-
applyTimeFilters() {
|
|
1072
|
-
this.applyTimeFilterOnData();
|
|
1073
|
-
this.applySortingOnFilteredData();
|
|
1074
|
-
this.emitData();
|
|
1075
|
-
this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
|
|
1076
|
-
this.closeTooltip();
|
|
1077
|
-
}
|
|
1078
|
-
applyTimeFilterOnData() {
|
|
1079
|
-
if (this.showFilterComponent && this.isFilterChanged) {
|
|
1080
|
-
let currentSelectedTimeFilter = {
|
|
1081
|
-
fromTime: null,
|
|
1082
|
-
toTime: null,
|
|
1083
|
-
includeMulti: false,
|
|
1084
|
-
includeZero: false,
|
|
1085
|
-
includeTimeRange: false,
|
|
1086
|
-
};
|
|
1087
|
-
let fromTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
|
|
1088
|
-
let fromTime24HrFormat = fromTime24HrFormatArr[0] + ":" + fromTime24HrFormatArr[1] + ":00";
|
|
1089
|
-
let toTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
|
|
1090
|
-
let toTime24HrFormat = toTime24HrFormatArr[0] + ":" + toTime24HrFormatArr[1] + ":00";
|
|
1091
|
-
currentSelectedTimeFilter = { fromTime: fromTime24HrFormat, toTime: toTime24HrFormat, includeMulti: this.multiTimeCheckboxChecked,
|
|
1092
|
-
includeZero: this.zeroTimeCheckboxChecked, includeTimeRange: this.enterTimeCheckboxChecked };
|
|
1093
|
-
let isFiltered = this.annaFilterService.reOrderAppliedFiltersState(this.clonedTableData, currentSelectedTimeFilter);
|
|
1094
|
-
this.annaFilterService.tooltipSelectedMap.set(this.annaFilterService.selectedRadio, currentSelectedTimeFilter);
|
|
1095
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
1096
|
-
if (!isFiltered) {
|
|
1097
|
-
this.annaFilterService.tooltipSelectedMap.delete(this.annaFilterService.selectedRadio);
|
|
1098
|
-
}
|
|
1099
|
-
this.annaSortService.noSortingAppliedData = cloneDeep(this.tableData);
|
|
1100
|
-
this.disableEnableEachColumnTooltipIcon();
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
closeTimeFilter() {
|
|
1104
|
-
this.selectedFromTime = cloneDeep(this.clonedSelectedFromTime);
|
|
1105
|
-
this.selectedToTime = cloneDeep(this.clonedSelectedToTime);
|
|
1106
|
-
this.closeTooltip();
|
|
1107
|
-
}
|
|
1108
|
-
disableTimeFilterApplyButton() {
|
|
1109
|
-
if (this.showFilterComponent && this.showSortComponent) {
|
|
1110
|
-
this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || (!this.checkIfSortingChanged() && !this.checkIfTimeTooltipIsFiltered());
|
|
1111
|
-
}
|
|
1112
|
-
else if (this.showFilterComponent) {
|
|
1113
|
-
this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || !this.checkIfTimeTooltipIsFiltered();
|
|
1114
|
-
}
|
|
1115
|
-
else if (this.showSortComponent) {
|
|
1116
|
-
this.disableTimeFilterApplyBtn = !this.checkIfSortingChanged();
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
validateTimeFilterInput() {
|
|
1120
|
-
if (this.startTimeHourErr || this.startTimeMinErr || this.endTimeHourErr || this.endTimeMinErr) {
|
|
1121
|
-
return false;
|
|
1122
|
-
}
|
|
1123
|
-
if (!this.multiTimeCheckboxChecked && !this.zeroTimeCheckboxChecked && !this.enterTimeCheckboxChecked) {
|
|
1124
|
-
return false;
|
|
1125
|
-
}
|
|
1126
|
-
let timeFormat = "HH:mm:ss";
|
|
1127
|
-
let startTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
|
|
1128
|
-
let startTime24HrFormat = startTime24HrFormatArr[0] + ":" + startTime24HrFormatArr[1] + ":00";
|
|
1129
|
-
let endTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
|
|
1130
|
-
let endTime24HrFormat = endTime24HrFormatArr[0] + ":" + endTime24HrFormatArr[1] + ":00";
|
|
1131
|
-
return !(moment(startTime24HrFormat, timeFormat).isAfter(moment(endTime24HrFormat, timeFormat)));
|
|
1132
|
-
}
|
|
1133
|
-
sortedData(event) {
|
|
1134
|
-
if (event.type == "none") {
|
|
1135
|
-
this.tableData = this.annaFilterService.filterData(this.clonedTableData, "");
|
|
1136
|
-
}
|
|
1137
|
-
else {
|
|
1138
|
-
this.tableData = event.data;
|
|
1139
|
-
}
|
|
1140
|
-
this.sortingAppliedToTable.emit(this.tableData);
|
|
1141
|
-
}
|
|
1142
|
-
checkIfSortingIsApplied() {
|
|
1143
|
-
for (let [key, value] of this.annaSortService.columnSortState.entries()) {
|
|
1144
|
-
if (value == "ASC") {
|
|
1145
|
-
this.tableData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(true, this.tableData, key));
|
|
1146
|
-
}
|
|
1147
|
-
else if (value == "DESC") {
|
|
1148
|
-
this.tableData = cloneDeep(this.annaSortService.sortDataForComponentOtherThanLurAndCsrPage(false, this.tableData, key));
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
disableEnableEachColumnTooltipIcon() {
|
|
1153
|
-
this.tableHeaders.forEach(header => {
|
|
1154
|
-
header.headerInfo.forEach(item => {
|
|
1155
|
-
if (item.showTooltipIcon) {
|
|
1156
|
-
let values = [];
|
|
1157
|
-
item.disableTooltipIcon = true;
|
|
1158
|
-
item.filterSortObjectKeys.forEach(key => {
|
|
1159
|
-
if (key == "period") {
|
|
1160
|
-
let uniqStartDate = uniq(this.tableData.map((u) => u["startDate"]));
|
|
1161
|
-
let uniqEndDate = uniq(this.tableData.map((u) => u["endDate"]));
|
|
1162
|
-
item.disableTooltipIcon = (uniqStartDate.length > 1 || uniqEndDate.length > 1) ? false : true;
|
|
1163
|
-
}
|
|
1164
|
-
else {
|
|
1165
|
-
values = this.tableData.map((u) => u[key]);
|
|
1166
|
-
if (uniq(values).filter(n => n != null).length > 1) {
|
|
1167
|
-
item.disableTooltipIcon = false;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
});
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
ngAfterViewInit() {
|
|
1176
|
-
// this.annaGenericTableService.virtualScrollSubject.subscribe((val) =>{
|
|
1177
|
-
// this.isScrolledLeft = document.getElementsByClassName("table-container")[0].scrollLeft > 0;
|
|
1178
|
-
// this.cdRef.detectChanges();
|
|
1179
|
-
// });
|
|
1180
|
-
// let container = document.getElementsByClassName("table-container")[0];
|
|
1181
|
-
// fromEvent(container, 'scroll')
|
|
1182
|
-
// .subscribe((event: Event) =>
|
|
1183
|
-
// {
|
|
1184
|
-
// this.isScrolledLeft = (event.target as Element).scrollLeft > 0;
|
|
1185
|
-
// });
|
|
1186
|
-
}
|
|
1187
|
-
setMarginLeftForFilterIcon() {
|
|
1188
|
-
let elementArr = this.viewChildTableHeaders.toArray();
|
|
1189
|
-
elementArr.forEach((item) => {
|
|
1190
|
-
let childDivElements = item.nativeElement.children;
|
|
1191
|
-
if (childDivElements.length == 2) {
|
|
1192
|
-
let firstParagraphWidth = childDivElements[0].children[0];
|
|
1193
|
-
let secondParagraphWidth = childDivElements[1].children[0];
|
|
1194
|
-
if (firstParagraphWidth.offsetWidth > secondParagraphWidth.offsetWidth) {
|
|
1195
|
-
let diff = firstParagraphWidth.offsetWidth - secondParagraphWidth.offsetWidth;
|
|
1196
|
-
if (childDivElements[0].children.length == 2) {
|
|
1197
|
-
childDivElements[0].children[1].style.marginLeft = 4 + 'px';
|
|
1198
|
-
}
|
|
1199
|
-
if (childDivElements[1].children.length == 2) {
|
|
1200
|
-
childDivElements[1].children[1].style.marginLeft = diff + 4 + 'px';
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
else {
|
|
1204
|
-
let diff = secondParagraphWidth.offsetWidth - firstParagraphWidth.offsetWidth;
|
|
1205
|
-
if (childDivElements[0].children.length == 2) {
|
|
1206
|
-
childDivElements[0].children[1].style.marginLeft = diff + 4 + 'px';
|
|
1207
|
-
}
|
|
1208
|
-
if (childDivElements[1].children.length == 2) {
|
|
1209
|
-
childDivElements[1].children[1].style.marginLeft = 4 + 'px';
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
dataRowClicked(rowData) {
|
|
1216
|
-
this.rowClicked.emit(rowData);
|
|
1217
|
-
}
|
|
1218
|
-
radioButtonClicked(data, action, isDisabled) {
|
|
1219
|
-
if (!isDisabled) {
|
|
1220
|
-
this.radioButtonSelected.emit({ data, action });
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
bindTheValueToSellerGroupTooltip(sellerGroupHierarchy, tooltip) {
|
|
1224
|
-
if (this.hierarchyTooltip && this.hierarchyTooltip.open) {
|
|
1225
|
-
this.hierarchyTooltip.close();
|
|
1226
|
-
}
|
|
1227
|
-
this.sellerGroupHierarchy = sellerGroupHierarchy;
|
|
1228
|
-
this.hierarchyTooltip = tooltip;
|
|
1229
|
-
this.hierarchyTooltip.open();
|
|
1230
|
-
}
|
|
1231
|
-
iconClicked(rowData, iconClass) {
|
|
1232
|
-
this.gtIconClicked.emit({ data: rowData, iconClass: iconClass });
|
|
1233
|
-
}
|
|
1234
|
-
svgIconClicked(data) {
|
|
1235
|
-
this.gtSVGIconClicked.emit(data);
|
|
1236
|
-
}
|
|
1237
|
-
textActionClicked(rowData, id) {
|
|
1238
|
-
this.gtTextActionClicked.emit({ data: rowData, id });
|
|
1239
|
-
}
|
|
1240
|
-
viewDetailsClicked(rowData) {
|
|
1241
|
-
this.gtViewDetailClicked.emit({ data: rowData });
|
|
1242
|
-
}
|
|
1243
|
-
setColumnSortStateMap() {
|
|
1244
|
-
this.tableHeaders.forEach(column => {
|
|
1245
|
-
column.headerInfo.forEach((header) => {
|
|
1246
|
-
if (header.showTooltipIcon && header.isSortRequired) {
|
|
1247
|
-
header.isSortRequired.forEach((item, index) => {
|
|
1248
|
-
if (item) {
|
|
1249
|
-
this.annaSortService.columnSortState.set(header.filterSortObjectKeys[index], "DEFAULT");
|
|
1250
|
-
}
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
});
|
|
1254
|
-
});
|
|
1255
|
-
}
|
|
1256
|
-
storeSortTypeInTempVariable(event) {
|
|
1257
|
-
this.tempSortOrder = event;
|
|
1258
|
-
this.disableApplyButtonOfSelectedFilter();
|
|
1259
|
-
}
|
|
1260
|
-
unCheckAllCheckbox() {
|
|
1261
|
-
this.tooltipOptions.forEach(item => {
|
|
1262
|
-
item.isSelected = false;
|
|
1263
|
-
let index = this.clonedTooltipOptions.findIndex(opt => opt.id == item.id);
|
|
1264
|
-
this.clonedTooltipOptions[index].isSelected = false;
|
|
1265
|
-
});
|
|
1266
|
-
this.selectedCheckboxOptionsCount = 0;
|
|
1267
|
-
this.disableSelectAll = false;
|
|
1268
|
-
this.disableClearAll = true;
|
|
1269
|
-
this.disableCheckboxApply = true;
|
|
1270
|
-
}
|
|
1271
|
-
selectAllCheckbox() {
|
|
1272
|
-
this.tooltipOptions.forEach(item => {
|
|
1273
|
-
item.isSelected = true;
|
|
1274
|
-
let index = this.clonedTooltipOptions.findIndex(opt => opt.id == item.id);
|
|
1275
|
-
this.clonedTooltipOptions[index].isSelected = true;
|
|
1276
|
-
});
|
|
1277
|
-
this.selectedCheckboxOptionsCount = this.tooltipOptions.length;
|
|
1278
|
-
this.disableSelectAll = true;
|
|
1279
|
-
this.disableClearAll = false;
|
|
1280
|
-
this.disableCheckboxFilterApplyButton();
|
|
1281
|
-
}
|
|
1282
|
-
searchForTheItem(str) {
|
|
1283
|
-
if (str) {
|
|
1284
|
-
this.tooltipOptions = cloneDeep(this.clonedTooltipOptions.filter(item => item.value.toString().includes(str)));
|
|
1285
|
-
this.tooltipOptions.forEach(element => {
|
|
1286
|
-
element.label = this.boldString(element.label, str);
|
|
1287
|
-
});
|
|
1288
|
-
if (this.tooltipOptions.length > 0) {
|
|
1289
|
-
let unselectedItems = this.tooltipOptions.filter((item) => !item.isSelected);
|
|
1290
|
-
let selectedItems = this.tooltipOptions.filter((item) => item.isSelected);
|
|
1291
|
-
this.disableSelectAll = unselectedItems.length == 0;
|
|
1292
|
-
this.disableClearAll = selectedItems.length == 0;
|
|
1293
|
-
this.selectedCheckboxOptionsCount = selectedItems.length;
|
|
1294
|
-
this.disableCheckboxApply = (selectedItems.length == 0 || !this.checkIfCheckboxTooltipIsFiltered());
|
|
1295
|
-
}
|
|
1296
|
-
else {
|
|
1297
|
-
this.selectedCheckboxOptionsCount = 0;
|
|
1298
|
-
this.disableCheckboxApply = true;
|
|
1299
|
-
this.disableClearAll = true;
|
|
1300
|
-
this.disableSelectAll = true;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
else {
|
|
1304
|
-
this.tooltipOptions = cloneDeep(this.clonedTooltipOptions);
|
|
1305
|
-
let unselectedItems = this.tooltipOptions.filter(item => !item.isSelected);
|
|
1306
|
-
let selectedItems = this.tooltipOptions.filter(item => item.isSelected);
|
|
1307
|
-
this.selectedCheckboxOptionsCount = selectedItems.length;
|
|
1308
|
-
this.disableSelectAll = unselectedItems.length == 0;
|
|
1309
|
-
this.disableClearAll = selectedItems.length == 0;
|
|
1310
|
-
this.disableCheckboxFilterApplyButton();
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
boldString(str, find) {
|
|
1314
|
-
var re = new RegExp(find, 'g');
|
|
1315
|
-
return str.replace(re, '<b>' + find + '</b>');
|
|
1316
|
-
}
|
|
1317
|
-
removeBoldElementFromString(originalString) {
|
|
1318
|
-
let firstRegExp = new RegExp('<b>', 'g');
|
|
1319
|
-
let secondRegExp = new RegExp('</b>', 'g');
|
|
1320
|
-
let ret = originalString.replace(firstRegExp, '');
|
|
1321
|
-
return ret.replace(secondRegExp, '');
|
|
1322
|
-
}
|
|
1323
|
-
clearSearchedItem() {
|
|
1324
|
-
this.searchItem = "";
|
|
1325
|
-
this.searchForTheItem("");
|
|
1326
|
-
}
|
|
1327
|
-
calendarDateChanged(event) {
|
|
1328
|
-
this.calendarSelection = event;
|
|
1329
|
-
this.disableCalendarApplyButton();
|
|
1330
|
-
}
|
|
1331
|
-
disableCalendarApplyButton() {
|
|
1332
|
-
if (this.showFilterComponent && this.showSortComponent) {
|
|
1333
|
-
this.disableCalendarApplyBtn = !(this.calendarSelection.fromDate && this.calendarSelection.toDate) || (!this.checkIfSortingChanged() && !this.checkIfDateTooltipIsFiltered());
|
|
1334
|
-
}
|
|
1335
|
-
else if (this.showFilterComponent) {
|
|
1336
|
-
this.disableCalendarApplyBtn = !(this.calendarSelection.fromDate && this.calendarSelection.toDate) || !this.checkIfDateTooltipIsFiltered();
|
|
1337
|
-
}
|
|
1338
|
-
else if (this.showSortComponent) {
|
|
1339
|
-
this.disableCalendarApplyBtn = !this.checkIfSortingChanged();
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
setInitialValueMapForTimeFilter(key) {
|
|
1343
|
-
let data = this.clonedTableData.filter((obj) => !["", "-", null, "0", "<multi>"].includes(obj[key]));
|
|
1344
|
-
let timeArr = map(data, key);
|
|
1345
|
-
timeArr.sort((a, b) => {
|
|
1346
|
-
return this.annaDateTimeFormatService.sortByTimeAscending(a, b);
|
|
1347
|
-
});
|
|
1348
|
-
let obj = {
|
|
1349
|
-
fromTime: timeArr[0],
|
|
1350
|
-
toTime: timeArr[timeArr.length - 1],
|
|
1351
|
-
includeMulti: false,
|
|
1352
|
-
includeZero: false,
|
|
1353
|
-
includeTimeRange: false
|
|
1354
|
-
};
|
|
1355
|
-
if (this.gtGeneralConfig.component === "SPOTDETAILS" ||
|
|
1356
|
-
this.gtGeneralConfig.component === "EXCLUDEINVENTORYPOPUP") {
|
|
1357
|
-
let includeMulti = this.clonedTableData.findIndex((obj) => obj[key] == "<multi>") !=
|
|
1358
|
-
-1;
|
|
1359
|
-
let includeZero = this.clonedTableData.findIndex((obj) => obj[key] == "0") != -1;
|
|
1360
|
-
let includeTimeRange = this.clonedTableData.findIndex((obj) => obj[key] != "0" && obj[key] != "<multi>") != -1;
|
|
1361
|
-
let obj = {
|
|
1362
|
-
fromTime: timeArr[0],
|
|
1363
|
-
toTime: timeArr[timeArr.length - 1],
|
|
1364
|
-
includeMulti: includeMulti,
|
|
1365
|
-
includeZero: includeZero,
|
|
1366
|
-
includeTimeRange: includeTimeRange,
|
|
1367
|
-
};
|
|
1368
|
-
this.annaFilterService.initialValueMap.set(key, obj);
|
|
1369
|
-
}
|
|
1370
|
-
else if (this.gtGeneralConfig.component === "RATING") {
|
|
1371
|
-
this.setInitialValueMapForRatingPageTimeFilter(key);
|
|
1372
|
-
}
|
|
1373
|
-
else {
|
|
1374
|
-
this.annaFilterService.initialValueMap.set(key, obj);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
setInitialValueMapForRatingPageTimeFilter(key) {
|
|
1378
|
-
let includeMulti = this.clonedTableData.findIndex((obj) => obj[key][0] == "<multi>") !=
|
|
1379
|
-
-1;
|
|
1380
|
-
let includeZero = this.clonedTableData.findIndex((obj) => obj[key][0] == "0") != -1;
|
|
1381
|
-
let includeTimeRange = this.clonedTableData.findIndex((obj) => obj[key][0] != "0" && obj[key][0] != "<multi>") != -1;
|
|
1382
|
-
let startTimeArr = map(this.clonedTableData, "startTime");
|
|
1383
|
-
let endTimeArr = map(this.clonedTableData, "endTime");
|
|
1384
|
-
startTimeArr.sort((a, b) => {
|
|
1385
|
-
return this.annaDateTimeFormatService.sortByTimeAscending(a, b);
|
|
1386
|
-
});
|
|
1387
|
-
endTimeArr.sort((a, b) => {
|
|
1388
|
-
return this.annaDateTimeFormatService.sortByTimeDescending(a, b);
|
|
1389
|
-
});
|
|
1390
|
-
let obj = {
|
|
1391
|
-
fromTime: startTimeArr[0],
|
|
1392
|
-
toTime: endTimeArr[0],
|
|
1393
|
-
includeMulti: includeMulti,
|
|
1394
|
-
includeZero: includeZero,
|
|
1395
|
-
includeTimeRange: includeTimeRange,
|
|
1396
|
-
};
|
|
1397
|
-
this.annaFilterService.initialValueMap.set(key, obj);
|
|
1398
|
-
}
|
|
1399
|
-
startTimeHourChange(val) {
|
|
1400
|
-
if (val.length == 0 || 1 > parseInt(val) || parseInt(val) > 12) {
|
|
1401
|
-
this.startTimeHourErr = true;
|
|
1402
|
-
}
|
|
1403
|
-
else {
|
|
1404
|
-
this.startTimeHourErr = false;
|
|
1405
|
-
}
|
|
1406
|
-
this.disableTimeFilterApplyButton();
|
|
1407
|
-
}
|
|
1408
|
-
startTimeMinChange(val) {
|
|
1409
|
-
if (val.length != 2 || 0 > parseInt(val) || parseInt(val) > 59) {
|
|
1410
|
-
this.startTimeMinErr = true;
|
|
1411
|
-
}
|
|
1412
|
-
else {
|
|
1413
|
-
this.startTimeMinErr = false;
|
|
1414
|
-
}
|
|
1415
|
-
this.disableTimeFilterApplyButton();
|
|
1416
|
-
}
|
|
1417
|
-
endTimeHourChange(val) {
|
|
1418
|
-
if (val.length == 0 || 1 > parseInt(val) || parseInt(val) > 12) {
|
|
1419
|
-
this.endTimeHourErr = true;
|
|
1420
|
-
}
|
|
1421
|
-
else {
|
|
1422
|
-
this.endTimeHourErr = false;
|
|
1423
|
-
}
|
|
1424
|
-
this.disableTimeFilterApplyButton();
|
|
1425
|
-
}
|
|
1426
|
-
endTimeMinChange(val) {
|
|
1427
|
-
if (val.length != 2 || 0 > parseInt(val) || parseInt(val) > 59) {
|
|
1428
|
-
this.endTimeMinErr = true;
|
|
1429
|
-
}
|
|
1430
|
-
else {
|
|
1431
|
-
this.endTimeMinErr = false;
|
|
1432
|
-
}
|
|
1433
|
-
this.disableTimeFilterApplyButton();
|
|
1434
|
-
}
|
|
1435
|
-
checkIfCheckboxTooltipIsFiltered() {
|
|
1436
|
-
let currentSelectedValue = [];
|
|
1437
|
-
let previousSelectedValue = [];
|
|
1438
|
-
if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
|
|
1439
|
-
previousSelectedValue = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
|
|
1440
|
-
if (!this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1441
|
-
let initialValue = sortBy(uniq(this.clonedTableData.map(item => item[this.annaFilterService.selectedRadio])));
|
|
1442
|
-
this.annaFilterService.initialValueMap.set(this.annaFilterService.selectedRadio, initialValue);
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
else if (this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1446
|
-
previousSelectedValue = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1447
|
-
}
|
|
1448
|
-
else {
|
|
1449
|
-
previousSelectedValue = sortBy(uniq(this.clonedTableData.map(item => item[this.annaFilterService.selectedRadio])));
|
|
1450
|
-
this.annaFilterService.initialValueMap.set(this.annaFilterService.selectedRadio, previousSelectedValue);
|
|
1451
|
-
}
|
|
1452
|
-
if (this.tooltipOptions) {
|
|
1453
|
-
currentSelectedValue = sortBy(this.tooltipOptions.filter(item => item.isSelected).map(item => item.value));
|
|
1454
|
-
if (!this.searchItem && currentSelectedValue.length == this.tooltipOptions.length && this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1455
|
-
currentSelectedValue = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
let blankIndex = currentSelectedValue.findIndex((item) => item == null);
|
|
1459
|
-
if (blankIndex != -1) {
|
|
1460
|
-
currentSelectedValue = sortBy(currentSelectedValue);
|
|
1461
|
-
}
|
|
1462
|
-
this.isFilterChanged = !isEqual(currentSelectedValue, previousSelectedValue);
|
|
1463
|
-
return this.isFilterChanged;
|
|
1464
|
-
}
|
|
1465
|
-
checkIfTimeTooltipIsFiltered() {
|
|
1466
|
-
let currentSelectedTimeFilter = {
|
|
1467
|
-
fromTime: null,
|
|
1468
|
-
toTime: null,
|
|
1469
|
-
includeMulti: false,
|
|
1470
|
-
includeZero: false,
|
|
1471
|
-
includeTimeRange: false,
|
|
1472
|
-
};
|
|
1473
|
-
let previousSelectedTimeFilter;
|
|
1474
|
-
if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
|
|
1475
|
-
previousSelectedTimeFilter = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
|
|
1476
|
-
}
|
|
1477
|
-
else if (this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1478
|
-
previousSelectedTimeFilter = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1479
|
-
}
|
|
1480
|
-
let fromTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedFromTime[0] + ":" + this.selectedFromTime[1] + " " + this.selectedFromTime[2], true);
|
|
1481
|
-
let fromTime24HrFormat = fromTime24HrFormatArr[0] + ":" + fromTime24HrFormatArr[1] + ":00";
|
|
1482
|
-
let toTime24HrFormatArr = this.annaDateTimeFormatService.convertTotwentyFourHrsFormat(this.selectedToTime[0] + ":" + this.selectedToTime[1] + " " + this.selectedToTime[2], true);
|
|
1483
|
-
let toTime24HrFormat = toTime24HrFormatArr[0] + ":" + toTime24HrFormatArr[1] + ":00";
|
|
1484
|
-
currentSelectedTimeFilter = { fromTime: fromTime24HrFormat, toTime: toTime24HrFormat, includeMulti: this.multiTimeCheckboxChecked,
|
|
1485
|
-
includeZero: this.zeroTimeCheckboxChecked, includeTimeRange: this.enterTimeCheckboxChecked };
|
|
1486
|
-
this.isFilterChanged = !isEqual(previousSelectedTimeFilter, currentSelectedTimeFilter);
|
|
1487
|
-
return this.isFilterChanged;
|
|
1488
|
-
}
|
|
1489
|
-
checkIfDateTooltipIsFiltered() {
|
|
1490
|
-
let currentSelectedDate = cloneDeep(this.calendarSelection);
|
|
1491
|
-
let previousSelectedDate = { fromDate: null, toDate: null };
|
|
1492
|
-
if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
|
|
1493
|
-
previousSelectedDate = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
|
|
1494
|
-
if (!this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1495
|
-
this.setInitialValueMapForDateFilter();
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
else if (this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1499
|
-
previousSelectedDate = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1500
|
-
}
|
|
1501
|
-
else {
|
|
1502
|
-
this.setInitialValueMapForDateFilter();
|
|
1503
|
-
previousSelectedDate = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1504
|
-
}
|
|
1505
|
-
if (currentSelectedDate.fromDate && currentSelectedDate.toDate) {
|
|
1506
|
-
let fromDate = { year: currentSelectedDate.fromDate.year, month: currentSelectedDate.fromDate.month, day: currentSelectedDate.fromDate.day };
|
|
1507
|
-
let toDate = { year: currentSelectedDate.toDate.year, month: currentSelectedDate.toDate.month, day: currentSelectedDate.toDate.day };
|
|
1508
|
-
if (isEqual(this.calendarMinEnabledDate, fromDate) && isEqual(this.calendarMaxEnabledDate, toDate) && this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1509
|
-
currentSelectedDate = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1510
|
-
}
|
|
1511
|
-
else {
|
|
1512
|
-
currentSelectedDate.fromDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(currentSelectedDate.fromDate));
|
|
1513
|
-
currentSelectedDate.toDate = moment(this.annaDateTimeFormatService.convertNgbDateToMoment(currentSelectedDate.toDate));
|
|
1514
|
-
}
|
|
1515
|
-
this.isFilterChanged = !isEqual(previousSelectedDate, currentSelectedDate);
|
|
1516
|
-
}
|
|
1517
|
-
return this.isFilterChanged;
|
|
1518
|
-
}
|
|
1519
|
-
setInitialValueMapForDateFilter() {
|
|
1520
|
-
let minMaxDate;
|
|
1521
|
-
if (this.annaFilterService.selectedRadio == "period") {
|
|
1522
|
-
let minStartDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, "startDate");
|
|
1523
|
-
let maxEndDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, "endDate");
|
|
1524
|
-
minMaxDate = [minStartDate[0], maxEndDate[1]];
|
|
1525
|
-
}
|
|
1526
|
-
else {
|
|
1527
|
-
minMaxDate = this.annaFilterService.returnMinAndMaxDate(this.clonedTableData, this.annaFilterService.selectedRadio);
|
|
1528
|
-
}
|
|
1529
|
-
let selectedDate = { fromDate: minMaxDate[0], toDate: minMaxDate[1] };
|
|
1530
|
-
this.annaFilterService.initialValueMap.set(this.annaFilterService.selectedRadio, selectedDate);
|
|
1531
|
-
}
|
|
1532
|
-
checkIfSliderTooltipIsFiltered() {
|
|
1533
|
-
let currentSliderData = { min: null, max: null };
|
|
1534
|
-
let previousSliderData = { min: "", max: "" };
|
|
1535
|
-
// if(this.isMinTextBoxEmpty){
|
|
1536
|
-
// currentSliderData.min = this.options.floor;
|
|
1537
|
-
// currentSliderData.max = this.sliderMaxValue;
|
|
1538
|
-
// }
|
|
1539
|
-
// else if(this.isMaxTextBoxEmpty){
|
|
1540
|
-
// currentSliderData.max = this.options.ceil;
|
|
1541
|
-
// currentSliderData.min = this.sliderMinValue;
|
|
1542
|
-
// }
|
|
1543
|
-
// else{
|
|
1544
|
-
currentSliderData.max = this.sliderEnteredMaxValue;
|
|
1545
|
-
currentSliderData.min = this.sliderEnteredMinValue;
|
|
1546
|
-
// }
|
|
1547
|
-
if (this.annaFilterService.tooltipSelectedMap.has(this.annaFilterService.selectedRadio)) {
|
|
1548
|
-
previousSliderData = this.annaFilterService.tooltipSelectedMap.get(this.annaFilterService.selectedRadio);
|
|
1549
|
-
if (!this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1550
|
-
this.setInitialValueMapForSliderFilter();
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
else if (this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1554
|
-
previousSliderData = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1555
|
-
}
|
|
1556
|
-
else {
|
|
1557
|
-
this.setInitialValueMapForSliderFilter();
|
|
1558
|
-
previousSliderData = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1559
|
-
}
|
|
1560
|
-
if (currentSliderData.min == this.options.floor && currentSliderData.max == this.options.ceil && this.annaFilterService.initialValueMap.has(this.annaFilterService.selectedRadio)) {
|
|
1561
|
-
currentSliderData = this.annaFilterService.initialValueMap.get(this.annaFilterService.selectedRadio);
|
|
1562
|
-
}
|
|
1563
|
-
this.isFilterChanged = !isEqual(previousSliderData, currentSliderData);
|
|
1564
|
-
return this.isFilterChanged;
|
|
1565
|
-
}
|
|
1566
|
-
setInitialValueMapForSliderFilter() {
|
|
1567
|
-
let minValue = this.annaFilterService.returnMaxAndMinValue(this.clonedTableData, this.annaFilterService.selectedRadio, true);
|
|
1568
|
-
let maxValue = this.annaFilterService.returnMaxAndMinValue(this.clonedTableData, this.annaFilterService.selectedRadio, false);
|
|
1569
|
-
let sliderData = { min: minValue, max: maxValue };
|
|
1570
|
-
this.annaFilterService.initialValueMap.set(this.annaFilterService.selectedRadio, sliderData);
|
|
1571
|
-
}
|
|
1572
|
-
checkIfSortingChanged() {
|
|
1573
|
-
this.isSortChanged = this.tempSortOrder != null && this.tempSortOrder != this.annaSortService.columnSortState.get(this.annaFilterService.selectedRadio);
|
|
1574
|
-
;
|
|
1575
|
-
console.log(this.isSortChanged);
|
|
1576
|
-
return this.isSortChanged;
|
|
1577
|
-
}
|
|
1578
|
-
disableApplyButtonOfSelectedFilter() {
|
|
1579
|
-
let header = this.annaFilterService.selectedRadio;
|
|
1580
|
-
if (this.annaFilterService.calendarSet.has(header)) {
|
|
1581
|
-
this.disableCalendarApplyButton();
|
|
1582
|
-
}
|
|
1583
|
-
else if (this.annaFilterService.sliderSet.has(header)) {
|
|
1584
|
-
this.disableSliderApplyBtn();
|
|
1585
|
-
}
|
|
1586
|
-
else if (this.annaFilterService.timeSet.has(header)) {
|
|
1587
|
-
this.disableTimeFilterApplyButton();
|
|
1588
|
-
}
|
|
1589
|
-
else {
|
|
1590
|
-
this.disableCheckboxFilterApplyButton();
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
disableCheckboxFilterApplyButton() {
|
|
1594
|
-
let selectedItems = this.showFilterComponent ? this.tooltipOptions.filter(item => item.isSelected) : [];
|
|
1595
|
-
if (this.showFilterComponent && this.showSortComponent) {
|
|
1596
|
-
this.disableCheckboxApply = selectedItems.length == 0 || (!this.checkIfSortingChanged() && !this.checkIfCheckboxTooltipIsFiltered());
|
|
1597
|
-
}
|
|
1598
|
-
else if (this.showFilterComponent) {
|
|
1599
|
-
this.disableCheckboxApply = selectedItems.length == 0 || !this.checkIfCheckboxTooltipIsFiltered();
|
|
1600
|
-
}
|
|
1601
|
-
else if (this.showSortComponent) {
|
|
1602
|
-
this.disableCheckboxApply = !this.checkIfSortingChanged();
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
trackByTooltipModelId(index, item) {
|
|
1606
|
-
return item.id;
|
|
1607
|
-
}
|
|
1608
|
-
setActiveStateObject() {
|
|
1609
|
-
this.annaFilterService.isFilterSortActive = {};
|
|
1610
|
-
this.tableHeaders.forEach(item => {
|
|
1611
|
-
item.headerInfo.forEach(header => {
|
|
1612
|
-
if (header.showTooltipIcon) {
|
|
1613
|
-
let key = header.filterSortObjectKeys.join(',');
|
|
1614
|
-
header.joinedFilterSortObjectKeys = key;
|
|
1615
|
-
this.annaFilterService.isFilterSortActive[key] = false;
|
|
1616
|
-
}
|
|
1617
|
-
});
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
setIsDifference(value) {
|
|
1621
|
-
this.isDifferenceLessThan25Percent = value;
|
|
1622
|
-
}
|
|
1623
|
-
spotDetailsDownloadClicked(parentChildOrTotalRow, rowdata) {
|
|
1624
|
-
if (rowdata) {
|
|
1625
|
-
this.selectedInventoryIdForDownload = rowdata.inventoryCodeId;
|
|
1626
|
-
this.selectedDemographicForDownload = rowdata.demographic;
|
|
1627
|
-
}
|
|
1628
|
-
else {
|
|
1629
|
-
this.selectedInventoryIdForDownload = null;
|
|
1630
|
-
this.selectedDemographicForDownload = null;
|
|
1631
|
-
}
|
|
1632
|
-
this.selectedRowTypeForDownload = parentChildOrTotalRow;
|
|
1633
|
-
this.downloadSpotDetails.emit({
|
|
1634
|
-
parentChildOrTotalRow: parentChildOrTotalRow,
|
|
1635
|
-
inventoryCodeId: this.selectedInventoryIdForDownload,
|
|
1636
|
-
demographic: this.selectedDemographicForDownload
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
tableContainerScrolled(event) {
|
|
1640
|
-
this.isScrolledLeft = event.target.scrollLeft > 0;
|
|
1641
|
-
}
|
|
1642
|
-
}
|
|
1643
|
-
AnnaNonEditableGenericTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNonEditableGenericTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.AnnaSortService }, { token: i1.AnnaDateTimeFormatService }, { token: i1.AnnaFilterService }, { token: i1.AnnaGenericTableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1644
|
-
AnnaNonEditableGenericTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaNonEditableGenericTableComponent, selector: "anna-core-non-editable-generic-table-lib", inputs: { showSkeletonLoading: "showSkeletonLoading", tableHeaders: "tableHeaders", tableData: "tableData", clonedTableData: "clonedTableData", numberOfSkeletonRows: "numberOfSkeletonRows", numberOfSkeletonColumns: "numberOfSkeletonColumns", gtGeneralConfig: "gtGeneralConfig", totalRowInfo: "totalRowInfo", gtDimension: "gtDimension", tableClass: "tableClass", maximumRowsWhichCanBeRenderedWithoutScroll: "maximumRowsWhichCanBeRenderedWithoutScroll", includeBorderInTableHeight: "includeBorderInTableHeight", downloadInProgress: "downloadInProgress", percentDone: "percentDone" }, outputs: { toggleCheckbox: "toggleCheckbox", toggleRowCheckbox: "toggleRowCheckbox", toggleHeaderCheckbox: "toggleHeaderCheckbox", undoIconClicked: "undoIconClicked", filterAppliedToTable: "filterAppliedToTable", sortingAppliedToTable: "sortingAppliedToTable", rowClicked: "rowClicked", radioButtonSelected: "radioButtonSelected", columnFilterOpened: "columnFilterOpened", columnFilterClosed: "columnFilterClosed", gtIconClicked: "gtIconClicked", gtSVGIconClicked: "gtSVGIconClicked", gtTextActionClicked: "gtTextActionClicked", gtViewDetailClicked: "gtViewDetailClicked", downloadSpotDetails: "downloadSpotDetails" }, viewQueries: [{ propertyName: "sortComponent", predicate: AnnaSortComponent, descendants: true }, { propertyName: "viewChildTableHeaders", predicate: ["tableHeader"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-container\" (scroll)=\"tableContainerScrolled($event)\" [ngClass]=\"{ 'scroll-left-shadow-effect': isScrolledLeft }\">\r\n <div\r\n [class]=\"gtGeneralConfig.tableContainerName\"\r\n class=\"horizontal-scroll-for-table-container\"\r\n [ngStyle]=\"{\r\n height:\r\n tableData.length < maximumRowsWhichCanBeRenderedWithoutScroll\r\n ? 'calc(' +\r\n ((gtDimension.rowHeight + (includeBorderInTableHeight ? rowBorderWidth : 0)) * tableData.length +\r\n (!tableData.length || !gtGeneralConfig.totalRow\r\n ? gtDimension.headerHeight\r\n : gtDimension.headerHeight + gtDimension.rowHeight + ( includeBorderInTableHeight ? (2 * rowBorderWidth) : 0))) +\r\n 'px)'\r\n : gtDimension.tableHeight\r\n }\"\r\n >\r\n <table class=\"gt\" [ngClass]=\"tableClass\" mat-table [dataSource]=\"tableData\">\r\n <tr\r\n class=\"header-row\"\r\n mat-header-row\r\n *matHeaderRowDef=\"tableColumns; sticky: true\"\r\n [style.height.px]=\"gtDimension.headerHeight\"\r\n ></tr>\r\n <tr\r\n class=\"total-row\"\r\n mat-header-row\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n *matHeaderRowDef=\"totalRowColumns; sticky: true\"\r\n [class.hidden]=\"\r\n showSkeletonLoading ||\r\n (!showSkeletonLoading && !tableData.length ) ||\r\n (showNoDataToDisplay) || \r\n (!showSkeletonLoading && !gtGeneralConfig.totalRow)\r\n \"\r\n ></tr>\r\n <tr\r\n [class]=\"rowData.gtClass\"\r\n [ngClass]=\"{'no-border-tr': showNoDataToDisplay}\"\r\n mat-row\r\n *matRowDef=\"let rowData; columns: tableColumns\"\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n [style.background-color]=\"rowData.backgroundColor\"\r\n [style.border]=\"rowData.border\" (click)=\"dataRowClicked(rowData)\"\r\n ></tr>\r\n\r\n <!-- TOTAL ROW -->\r\n <ng-container [matColumnDef]=\"column.colName\" *ngFor=\"let column of totalRowInfo; trackBy: trackByFn\">\r\n <td mat-header-cell *matHeaderCellDef [attr.colspan]=\"column.colspan\" class=\"{{column.class}}\">\r\n <strong>{{ column.data }}</strong>\r\n <ng-container *ngIf=\"column.lowerData\">\r\n <br>\r\n <span \r\n *ngIf=\"column.colName == 'total-potential-booked-unit' && gtGeneralConfig.component == 'RATING';\r\n else columnLowerData\"\r\n class=\"clickable-data\"\r\n (click)=\"spotDetailsDownloadClicked('TOTALROW')\"\r\n [ngClass]=\"{ 'disabled-clickable-data': downloadInProgress }\"\r\n >{{ column.lowerData }}\r\n <span class=\"material-icons spot-details-download-icons\">get_app</span>\r\n <ng-container *ngIf=\"downloadInProgress \r\n && selectedRowTypeForDownload == 'TOTALROW' \">\r\n <ng-container [ngTemplateOutlet]=\"circularProgressBar\"></ng-container>\r\n </ng-container>\r\n </span>\r\n <ng-template #columnLowerData>\r\n <span>{{ column.lowerData }}</span>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.tooltipMessage\">\r\n <i class=\"mi mdi-info-outline info-label\" container=\"body\"\r\n [ngbTooltip]=\"column.tooltipMessage\"\r\n tooltipClass=\"gt-total-row-tooltip\" placement=\"bottom\"></i>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- MAIN ROW -->\r\n <ng-container [matColumnDef]=\"columnDef.headerInfo[0].objectKey\" *ngFor=\"let columnDef of tableHeaders; trackBy: trackByFn\">\r\n <th #tableHeader nowrap mat-header-cell *matHeaderCellDef [style.width]=\"columnDef.width\">\r\n <div class=\"row mx-0\" *ngFor=\"let header of columnDef.headerInfo; let j = index;\"> \r\n <p\r\n *ngIf=\"header.typeOfHeaderData === 'STRING'\"\r\n [ngClass]=\"{ 'upper-label': j === 0, 'lower-label': j === 1 }\"\r\n >\r\n {{ header.name }}\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'impsInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"impsInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'spotsColumnEquivalizationMessageTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"spotsColumnEquivalizationMessageTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'ratingInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"ratingInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'rateInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"rateInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n </p>\r\n\r\n <ng-container *ngIf=\"header.typeOfHeaderData === 'CHECKBOX'\">\r\n <span\r\n *ngIf=\"gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': gtGeneralConfig.disableHeaderCheckbox }\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <div *ngIf=\"gtGeneralConfig.showAllColumnFilter\" class=\"sort-filter-container\">\r\n <ng-container *ngIf=\"header.showTooltipIcon\">\r\n <!-- Active tooltip Functionality -->\r\n <ng-container *ngIf=\"header.filter === 'CHECKBOX'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys], \r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"filterTooltip\"\r\n placement=\"bottom left-top auto\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-checkbox-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'SLIDER'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"sliderToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-slider-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t1=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t1, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'DATE'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"datePickerTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-datepicker-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t2=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t2, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'WEEK'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"weekPickerToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t3=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t3, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'TIME'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"timeFilterToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-time-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t4=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t4, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!header.showTooltipIcon\">\r\n <span id=\"no-filter-space\"></span><br />\r\n </ng-container>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'lurViolationInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"lurViolationInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n\r\n </div>\r\n </div>\r\n </th>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'DRR'\">\r\n <ng-container *matCellDef=\"let ROW_DATA\">\r\n <ng-container *ngIf=\"showSkeletonLoading\">\r\n <td mat-cell>\r\n <ngx-skeleton-loader count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container\r\n *ngFor=\"let subline of columnDef.headerInfo; let sublineIndex = index; trackBy: trackByFn\"\r\n >\r\n <td\r\n mat-cell\r\n *ngIf=\"!ROW_DATA['hide' + subline.objectKey + 'Td']\"\r\n [attr.rowspan]=\"ROW_DATA[subline.objectKey + 'Rowspan']\"\r\n >\r\n <ng-container [ngSwitch]=\"subline.typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[subline.objectKey]\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[subline.objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'RADIO'\">\r\n <mat-radio-group\r\n *ngIf=\"ROW_DATA['RadioButtonConfig']\"\r\n [ngModel]=\"ROW_DATA[subline.objectKey]\"\r\n [disabled]=\"ROW_DATA['RadioButtonConfig'][0].isDisabled\"\r\n >\r\n <ng-container\r\n *ngFor=\"let radioButton of ROW_DATA['RadioButtonConfig']; let last = last\"\r\n >\r\n <mat-radio-button\r\n value=\"{{ radioButton.value }}\"\r\n class=\"{{ radioButton.class }}\"\r\n (click)=\"\r\n radioButtonClicked(\r\n ROW_DATA,\r\n radioButton.value,\r\n ROW_DATA['RadioButtonConfig'][0].isDisabled\r\n )\r\n \"\r\n >{{ radioButton.label }}</mat-radio-button\r\n ><br *ngIf=\"!last\" />\r\n </ng-container>\r\n </mat-radio-group>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n {{ ROW_DATA[subline.objectKey] }}\r\n\r\n <ng-container\r\n *ngIf=\"\r\n subline.objectKey == 'Status' && (ROW_DATA['Remarks'] !== null)\r\n \"\r\n >\r\n <i\r\n class=\"mi mdi-info-outline remarks-tooltip\"\r\n [ngbTooltip]=\"columnInfoTooltip\"\r\n placement=\"bottom\"\r\n container=\"body\"\r\n tooltipClass=\"remarks-info-tooltip\"\r\n #t=\"ngbTooltip\"\r\n ></i>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component != 'DRR'\">\r\n <td mat-cell *matCellDef=\"let ROW_DATA\" [style.background]=\"ROW_DATA.backgroundColor\">\r\n <ngx-skeleton-loader *ngIf=\"showSkeletonLoading\" count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container *ngIf=\"tableData.length > 0 && !showNoDataToDisplay\">\r\n <div showEllipsisTextOnHover *ngFor=\"let subline of columnDef.headerInfo; let subLineIndex = index; trackBy: trackByFn\">\r\n <ng-container [ngSwitch]=\"columnDef.headerInfo[subLineIndex].typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\" (click)=\"iconClicked(ROW_DATA,ROW_DATA.iconClass)\"></i>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'SVG_ICON'\">\r\n <anna-core-anna-icon-column [componentName]=\"gtGeneralConfig.component\" [objectKey]=\"subline.objectKey\" [dataObject]=\"ROW_DATA\" (onColumnIconClicked)=\"svgIconClicked($event)\"></anna-core-anna-icon-column>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'TEXT_ACTIONS'\">\r\n <button *ngFor=\"let text of ROW_DATA.textActions\" (click)=\"textActionClicked(ROW_DATA,text.id)\" [disabled]=\"text.isDisabled\" class=\"{{text.class}}\">{{text.name}}</button>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n false\r\n )\r\n \"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n true\r\n )\r\n \"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'CLICKABLE_DATA'\">\r\n <span \r\n *ngIf=\"subline.objectKey == 'displayBookedUnits' && gtGeneralConfig.component == 'RATING'\"\r\n class=\"clickable-data\"\r\n (click)=\"spotDetailsDownloadClicked('DATAROW', ROW_DATA)\"\r\n [ngClass]=\"{ 'disabled-clickable-data': downloadInProgress }\"\r\n >{{ ROW_DATA.displayBookedUnits}}\r\n <span class=\"material-icons spot-details-download-icons\">get_app</span>\r\n <ng-container *ngIf=\"downloadInProgress \r\n && ROW_DATA.inventoryCodeId == selectedInventoryIdForDownload \r\n && ROW_DATA.demographic == selectedDemographicForDownload \">\r\n <ng-container [ngTemplateOutlet]=\"circularProgressBar\"></ng-container>\r\n </ng-container>\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngIf=\"subline.objectKey != 'description'\">\r\n <span>{{ ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey] }}</span>\r\n <i\r\n *ngIf=\"subline.objectKey == 'inventoryCode' && ROW_DATA['isSellerGroup'] && gtGeneralConfig.component == 'RATING' \"\r\n class=\"mi mdi-info-outline seller-tooltip\"\r\n [ngbTooltip]=\"sellerHierarchyTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n (hidden)=\"closeTooltip()\"\r\n #info=\"ngbTooltip\"\r\n tooltipClass=\"hierarchy-tooltip\"\r\n (mouseenter)=\"bindTheValueToSellerGroupTooltip(ROW_DATA.sellerGroupHierarchy, info)\">\r\n </i>\r\n\r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageRating' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showRatingAverageIcon'] \"\r\n class=\"mi mdi-info-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"setIsDifference(ROW_DATA.isDifferenceLessThan25Percent)\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedRatingDifference\"\r\n >\r\n </i>\r\n \r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageImpression' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showImpressionAverageIcon'] \"\r\n class=\"mi mdi-info-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"setIsDifference(ROW_DATA.isDifferenceLessThan25Percent)\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedImpDifference\"\r\n >\r\n </i>\r\n\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'description'\">\r\n <p *ngIf=\"ROW_DATA.descriptionMessage || ROW_DATA.descriptionEmailReferenceNum\">\r\n <ng-container *ngIf=\"ROW_DATA.descriptionMessage\">\r\n {{ ROW_DATA.descriptionMessage }}\r\n <br />\r\n </ng-container>\r\n <ng-container *ngIf=\"ROW_DATA.descriptionEmailReferenceNum\">\r\n Email Ref: {{ ROW_DATA.descriptionEmailReferenceNum }}\r\n <br />\r\n </ng-container>\r\n </p>\r\n <a\r\n href=\"{{ ROW_DATA.descriptionDetailsUrl }}\"\r\n target=\"_blank\"\r\n *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'PDF' || ROW_DATA.descriptionDetailsUrlType === 'EXCEL'\"\r\n >\r\n <button class=\"btn viewDetailsAndEmailBtn\">Download</button>\r\n </a>\r\n <ng-container *ngIf=\"ROW_DATA.activityname.toLowerCase() == 'order onboarded'\">\r\n <a *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'LINK'\" (click)=\"viewDetailsClicked(ROW_DATA)\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View details</button>\r\n </a> \r\n </ng-container>\r\n \r\n <a href=\"{{ ROW_DATA.descriptionEmailUrl }}\" target=\"_blank\" *ngIf=\"ROW_DATA.descriptionEmailUrl\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View email</button>\r\n </a>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n \r\n <ng-container\r\n *ngIf=\"\r\n gtGeneralConfig.page === 'SpotDetails' &&\r\n columnDef.headerInfo[subLineIndex].objectKey === 'Status'\r\n \"\r\n >\r\n <img\r\n src=\"assets/images/Undo-Credit-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForCredit\"\r\n (click)=\"undoCreditedSpot(ROW_DATA)\"\r\n />\r\n <img\r\n src=\"assets/images/Undo-MG-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForMakeGood\"\r\n (click)=\"undoMgSpot(ROW_DATA)\"\r\n />\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"showNoDataToDisplay\">\r\n <div>\r\n {{null}}\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </table>\r\n </div>\r\n <anna-core-no-data-lib [width]=\"noDataWidth\" [marginTop]=\"marginTop\" *ngIf=\"!showSkeletonLoading && showNoDataToDisplay\"> </anna-core-no-data-lib>\r\n</div>\r\n\r\n<!-- Checkbox template -->\r\n<ng-template #filterTooltip>\r\n \r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p>\r\n </div>\r\n </div>\r\n \r\n <div class=\"checkbox-sort\" *ngIf=\"showSortComponent\">\r\n <anna-core-sort-lib [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n </div>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <p class=\"d-flex justify-content-between\">\r\n <button class=\"filter-text-btn\" [disabled]=\"disableClearAll\" (click)=\"unCheckAllCheckbox()\">Clear All</button>\r\n <button class=\"filter-text-btn\" [disabled]=\"disableSelectAll\" (click)=\"selectAllCheckbox()\">Select All</button>\r\n </p>\r\n <p class=\"search-box\">\r\n <i class=\"mi mdi-search search-icon search-icon-position\"></i>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Search\"\r\n class=\"search-input\"\r\n style=\"margin-left: 2px; border: none; padding: 0px\"\r\n [(ngModel)]=\"searchItem\"\r\n (ngModelChange)=\"searchForTheItem($event)\"\r\n />\r\n <i class=\"mdi mdi-close search-bar-close\" [ngClass]=\"{'disable-close-icon': (!searchItem || searchItem.length == 0) }\"\r\n (click)=\"clearSearchedItem()\"></i>\r\n\r\n </p>\r\n <div class=\"dropdown-data-container\">\r\n <!-- Track By func -->\r\n <ng-container *ngFor=\"let option of tooltipOptions;trackBy: trackByTooltipModelId\">\r\n <p class=\"input\" (click)=\"selectUnselectCheckbox(option)\">\r\n <span *ngIf=\"option.isSelected\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"!option.isSelected\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span class=\"data\" title=\"{{ option.value }}\" [innerHTML]=\"option.label\"></span>\r\n </p>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeCheckboxFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableCheckboxApply }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableCheckboxApply\"\r\n >\r\n Apply\r\n <span *ngIf=\"showFilterComponent\">({{ selectedCheckboxOptionsCount == tooltipOptions.length && tooltipOptions.length != 0 && !searchItem? 'All': selectedCheckboxOptionsCount }})</span>\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Slider template -->\r\n<ng-template #sliderToolTip>\r\n \r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p> \r\n </div>\r\n </div>\r\n <!-- <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button> -->\r\n \r\n <anna-core-sort-lib *ngIf=\"showSortComponent\" [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n [ngClass]=\"{'red-border': showSliderMinValueError}\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n [ngClass]=\"{'red-border': showSliderMaxValueError}\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n class=\"filter-slider\"\r\n [value]=\"sliderMinValue\"\r\n [highValue]=\"sliderMaxValue\"\r\n [options]=\"options\"\r\n ></ngx-slider>\r\n </div>\r\n </ng-container>\r\n \r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelSliderFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applySliderFilter()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Date Picker Template -->\r\n<ng-template #datePickerTooltip>\r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p>\r\n </div>\r\n </div>\r\n\r\n <anna-core-sort-lib *ngIf=\"showSortComponent\" [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <div class=\"datepicker-container\">\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (selectedDate) = \"calendarDateChanged($event)\"\r\n [label]=\"selectedLabel\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelInDateFilter()\">Cancel</button>\r\n <button class=\"button\" (click)=\"applyDateFilter()\" [ngClass]=\"{ disabled: disableCalendarApplyBtn }\"\r\n [disabled]=\"disableCalendarApplyBtn\">Apply</button>\r\n </div>\r\n \r\n</ng-template>\r\n\r\n<!-- Week Picker Template -->\r\n<ng-template #weekPickerToolTip>\r\n <div class=\"weekpicker-container\">\r\n <anna-core-week-calendar-filter-lib\r\n [week-calendar-config]=\"gtGeneralConfig.multiWeekPickerConfig\"\r\n (apply)=\"applyWeekFilter($event)\"\r\n [from-date]=\"calendarMinEnabledDate\"\r\n [to-date]=\"calendarMaxEnabledDate\"\r\n >\r\n </anna-core-week-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Time Filter Template -->\r\n<ng-template #timeFilterToolTip>\r\n \r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p>\r\n </div>\r\n </div>\r\n\r\n <anna-core-sort-lib *ngIf=\"showSortComponent\" [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"gtGeneralConfig.component == 'SPOTDETAILS' || gtGeneralConfig.component == 'EXCLUDEINVENTORYPOPUP' || gtGeneralConfig.component == 'RATING'\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showMultiTimeCheckbox\">\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showZeroTimeCheckbox\">\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showEnterTimeCheckbox\">\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>From</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [ngClass]=\"{'error-border': startTimeHourErr}\" [(ngModel)]=\"selectedFromTime[0]\" type=\"text\" (ngModelChange)=\"startTimeHourChange($event)\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [ngClass]=\"{'error-border': startTimeMinErr}\" [(ngModel)]=\"selectedFromTime[1]\" type=\"text\" (ngModelChange)=\"startTimeMinChange($event)\"/>\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedFromTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>To</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[0]\" [ngClass]=\"{'error-border': endTimeHourErr}\" (ngModelChange)=\"endTimeHourChange($event)\" type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [ngClass]=\"{'error-border': endTimeMinErr}\" [(ngModel)]=\"selectedToTime[1]\" (ngModelChange)=\"endTimeMinChange($event)\" type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedToTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeTimeFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #columnInfoTooltip>\r\n <p style=\"padding: 0.5rem; color: black;white-space: nowrap;\">This preemption is rejected and not marked for credit.</p>\r\n</ng-template>\r\n\r\n<ng-template #ratingInfoTooltip>\r\n <p class=\"first-row\">Shows 'Booked Rating' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\">Shows 'Projected Rating' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #impsInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked IMPS' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected IMPS' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #spotsColumnEquivalizationMessageTooltip>\r\n <p class=\"spot-column-tooltip-message\" >This consists of equivalized spots and un-equivalized Paid Programs & un-equivalized Non-spots.</p>\r\n</ng-template>\r\n\r\n<ng-template #rateInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked Rate' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected $ Value' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #sellerHierarchyTooltip>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length > 0\">\r\n <table class=\"seller-hierarchy-table\">\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Inventory Codes</th>\r\n <th>Program/Description</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let data of sellerGroupHierarchy; let tooltipIndex = index\">\r\n <td>{{ tooltipIndex + 1 }}</td>\r\n <td>\r\n <span>{{ data.inventoryCode }}</span>\r\n </td>\r\n <td>\r\n <span>{{ data.program }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length == 0\">\r\n <span style=\"color: #000\">Seller group not available for this inventory code</span>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #lurViolationInfoTooltip>\r\n <p class =\"first-row\" >The values are for the entire week.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedRatingDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average rating is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedImpDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average impression is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n\r\n<ng-template #circularProgressBar>\r\n <circle-progress\r\n [percent]=\"percentDone\"\r\n [radius]=\"5\"\r\n [showTitle]=\"false\"\r\n [showUnits]=\"false\"\r\n [showSubtitle]=\"false\"\r\n [outerStrokeWidth]=\"3\"\r\n [innerStrokeWidth]=\"3\"\r\n [space]=\"-3\"\r\n [outerStrokeColor]=\"'#268bff'\"\r\n [innerStrokeColor]=\"'#d5d5d5'\"\r\n [animationDuration]=\"10\"\r\n ></circle-progress>\r\n</ng-template>\r\n", styles: [".sort-btn{background:white;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:98%;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:85%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider{margin:5px 0 2px!important;width:100%!important}::ng-deep span.ngx-slider-bubble.ngx-slider-model-value{display:block!important;padding:2px!important;box-shadow:#00000059 0 3px 8px!important;height:20px!important}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}::ng-deep .ngx-slider-pointer:after{display:none!important}::ng-deep .ngx-slider-pointer:focus{outline:none!important}::ng-deep span.ngx-slider-bar{background:#ededed!important;height:3px!important}::ng-deep .filter-slider span.ngx-slider-bar.ngx-slider-selection{background:#bdbdbd!important;height:3px!important}::ng-deep .sidebar-slider{margin-bottom:35px!important;margin-left:.3125rem;margin-right:.3125rem}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-high{right:0!important}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-ceil{right:0!important}::ng-deep .ngx-slider.animate{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bubble{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center}.buttons-container button:last-of-type{background-color:#268bff;color:#fff}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 0 .188rem .5rem}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}div.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}div.dropdown-data-container p.input{margin-left:0}div.dropdown-data-container p.input span.mi{padding-left:.4375rem}div.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}div.dropdown-data-container::-webkit-scrollbar{width:.188rem}div.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:.125rem .625rem 0}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;padding-top:.375rem;padding-left:1px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#cbcbcb;cursor:pointer;font-size:.5625rem}.time-container div.arrow-container i.downward{transform:rotate(180deg)}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.625rem;margin-left:.625rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:white;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:263px!important;overflow-y:initial!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}.upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a!important;margin-bottom:0!important}:host ::ng-deep .gt{table-layout:fixed;margin-bottom:0;width:100%}:host ::ng-deep .gt th,:host ::ng-deep .gt td{padding:2px 8px;line-height:normal}:host ::ng-deep .gt thead tr th .upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep .gt thead tr th .lower-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep .gt thead tr th{background-color:#ededed;position:sticky;position:-webkit-sticky;top:0;border-top:none!important;border-bottom:none!important;outline:none!important;box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4}:host ::ng-deep .gt thead tr th br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt thead tr th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}:host ::ng-deep .gt thead tr th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center}:host ::ng-deep .gt thead tr th:first-of-type{box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4}:host ::ng-deep .gt tbody tr td:first-of-type{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td:nth-of-type(n + 2){box-shadow:inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td .upper-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#000;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr td .lower-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#a7a7a7;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt tbody tr:nth-of-type(1) td{border-top:none!important}:host ::ng-deep .gt .custom-column-checkbox-checked,:host ::ng-deep .gt .custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}:host ::ng-deep .gt .custom-column-checkbox-checked{color:#268bff}:host ::ng-deep .gt .custom-column-checkbox-unchecked{color:#4a4a4a}.table-container::-webkit-scrollbar-track{border:1px solid rgba(0,0,0,.1)!important}.table-container::-webkit-scrollbar{width:5px;height:5px}.table-container::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0006!important;border:1px solid rgba(0,0,0,.2)}.table-container{overflow-x:auto;overflow-y:auto}.rowSelectCheckbox,#selectAllRowsCheckbox{cursor:pointer}.disable-checkbox{color:#dedede!important;pointer-events:none!important}.mdi-warning{color:#f3c639;font-size:16px;line-height:28px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}.redcolor-cell-border{outline:1px solid #ff5353!important;outline-offset:-1px!important}#no-filter-space{width:.875rem}::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:1.875rem!important;width:2.625rem;padding:0 .625rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}::ng-deep .mat-button-toggle-checked{background-color:#268bff!important;color:#fff!important}::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0}.hidden{display:none}.no-data-div{margin-top:2.5px}.no-data-div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:.3125rem 1.125rem;border-radius:.25rem}.column-values:nth-of-type(2){color:#a7a7a7!important}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}.time-filter-checkboxes>div>p{color:#151b1e}.radio-button-dimension,::ng-deep .markForCredit .mat-radio-inner-circle,::ng-deep .markForCredit .mat-radio-outer-circle,::ng-deep .mark-for-credit .mat-radio-inner-circle,::ng-deep .mark-for-credit .mat-radio-outer-circle,::ng-deep .markForMakeGood .mat-radio-inner-circle,::ng-deep .markForMakeGood .mat-radio-outer-circle,::ng-deep .noAction .mat-radio-inner-circle,::ng-deep .noAction .mat-radio-outer-circle,::ng-deep .credit .mat-radio-inner-circle,::ng-deep .credit .mat-radio-outer-circle,::ng-deep .approve .mat-radio-inner-circle,::ng-deep .approve .mat-radio-outer-circle,::ng-deep .reject .mat-radio-inner-circle,::ng-deep .reject .mat-radio-outer-circle,::ng-deep .resubmit .mat-radio-inner-circle,::ng-deep .resubmit .mat-radio-outer-circle,::ng-deep .rejectCreditRequest .mat-radio-inner-circle,::ng-deep .rejectCreditRequest .mat-radio-outer-circle{height:18px!important;width:18px!important}::ng-deep .margin-bottom-zero .mat-radio-label{margin-bottom:0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:red}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:red}::ng-deep .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061!important}::ng-deep .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-inner-circle{background-color:#00000061!important}::ng-deep tr.white-background-row{background:white}::ng-deep tr.gray-background-row{background:rgba(233,233,233,.5)}.remarks-tooltip,.seller-tooltip{font-size:.875rem;color:#268bff;position:relative;top:.1875rem;cursor:pointer}.seller-tooltip{top:-1px;float:right}::ng-deep .remarks-info-tooltip .tooltip-inner{max-width:19.25rem!important}.rating-icon,.lur-violation-icon{color:#268bff;cursor:pointer;margin-left:2px;position:relative;left:-2px}::ng-deep .rating-info-tooltip .tooltip-inner{max-width:800px!important}.spots-info-icon{color:#268bff;cursor:pointer;margin-left:2px;margin-top:1px}::ng-deep .spot-info-tooltip .tooltip-inner{left:60px;position:relative;max-width:220px!important;background:#fff;word-break:break-word;display:flex}::ng-deep .spot-info-tooltip-for-orderlisting-table .tooltip-inner{max-width:220px!important;background:#fff;word-break:break-word;display:flex}p.first-row{padding:.5rem .5rem 0;color:#000;white-space:nowrap;text-align:left}p.second-row{padding:2px .5rem .5rem;color:#000;white-space:nowrap;text-align:left}::ng-deep .gt-total-row-tooltip{opacity:1!important}::ng-deep .gt-total-row-tooltip .tooltip-inner{color:#000;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003;background-color:#fff;padding:4px!important;width:100%;border-radius:2px!important}::ng-deep .gt-total-row-tooltip .arrow:before{border-top-color:#fff!important}.info-label{margin-left:4px;color:#268bff;vertical-align:text-top}::ng-deep .hierarchy-tooltip .tooltip-inner{padding:4px!important}table.seller-hierarchy-table{table-layout:fixed;margin:.625rem .625rem .625rem .8125rem}table.seller-hierarchy-table tr th{font-family:Roboto;font-size:.75rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:#5e5e5e;white-space:nowrap;background:#ededed;box-shadow:none!important;border-top:1px solid #d4d4d4}table.seller-hierarchy-table tr th:first-of-type,table.seller-hierarchy-table tr td:first-of-type{border-left:1px solid #d4d4d4}table.seller-hierarchy-table tr th:last-of-type,table.seller-hierarchy-table tr td:last-of-type{border-right:1px solid #d4d4d4;width:7.875rem!important}table.seller-hierarchy-table tr th:nth-of-type(2){width:7.75rem!important}table.seller-hierarchy-table tr td{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#4a4a4a;box-shadow:none!important;border-top:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4}table.seller-hierarchy-table tr td:nth-of-type(2),table.seller-hierarchy-table tr td:nth-of-type(3){padding-top:.25rem}table.seller-hierarchy-table tr td span{display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}.difference-text{padding:.5rem;color:#000;text-align:left}::ng-deep .posted-avg-tooltip .tooltip-inner{width:13.8125rem!important}.clickable-data{cursor:pointer;color:#268bff!important;display:flex!important;align-items:center}.clickable-data .spot-details-download-icons{font-size:12px}.disabled-clickable-data{pointer-events:none;color:#d4d4d4!important}.spot-column-tooltip-message{color:#000;padding:10px;width:max-content;text-align:left}\n"], components: [{ type: i2.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i2.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i2.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { type: i3.NgxSkeletonLoaderComponent, selector: "ngx-skeleton-loader", inputs: ["appearance", "animation", "theme", "loadingText", "count", "ariaLabel"] }, { type: i4.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i1.AnnaIconColumnComponent, selector: "anna-core-anna-icon-column", inputs: ["componentName", "objectKey", "dataObject"], outputs: ["onColumnIconClicked"] }, { type: i1.AnnaNoDataComponent, selector: "anna-core-no-data-lib", inputs: ["width", "marginTop"] }, { type: AnnaSortComponent, selector: "anna-core-sort-lib", inputs: ["sortObjectKey"], outputs: ["sortOptionClicked"] }, { type: i6.ɵa, selector: "ngx-slider", inputs: ["value", "highValue", "options", "manualRefresh", "triggerFocus"], outputs: ["valueChange", "highValueChange", "userChangeStart", "userChange", "userChangeEnd"] }, { type: i7.AnnaCalendarFilterComponent, selector: "anna-core-calendar-filter-lib", inputs: ["maxDate", "label", "minDate", "selectedFromDate", "selectedToDate"], outputs: ["selectedDate", "apply", "cancel"] }, { type: i7.AnnaWeekCalendarComponent, selector: "anna-core-week-calendar-filter-lib", inputs: ["from-date", "to-date", "disabled-dates", "maxDate", "minDate", "week-calendar-config"], outputs: ["apply", "toggle-calendar"] }, { type: i8.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { type: i9.CircleProgressComponent, selector: "circle-progress", inputs: ["name", "class", "backgroundGradient", "backgroundColor", "backgroundGradientStopColor", "backgroundOpacity", "backgroundStroke", "backgroundStrokeWidth", "backgroundPadding", "radius", "space", "percent", "toFixed", "maxPercent", "renderOnClick", "units", "unitsFontSize", "unitsFontWeight", "unitsColor", "outerStrokeGradient", "outerStrokeWidth", "outerStrokeColor", "outerStrokeGradientStopColor", "outerStrokeLinecap", "innerStrokeColor", "innerStrokeWidth", "titleFormat", "title", "titleColor", "titleFontSize", "titleFontWeight", "subtitleFormat", "subtitle", "subtitleColor", "subtitleFontSize", "subtitleFontWeight", "imageSrc", "imageHeight", "imageWidth", "animation", "animateTitle", "animateSubtitle", "animationDuration", "showTitle", "showSubtitle", "showUnits", "showImage", "showBackground", "showInnerStroke", "clockwise", "responsive", "startFromZero", "showZeroOuterStroke", "lazy", "options"], outputs: ["onClick"] }], directives: [{ type: i10.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { type: i2.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { type: i10.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { type: i2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { type: i10.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i11.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i2.MatCellDef, selector: "[matCellDef]" }, { type: i2.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i10.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i10.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i4.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { type: i12.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i12.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i10.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1.showEllipsisTextOnHoverDirective, selector: "[showEllipsisTextOnHover]" }, { type: i12.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i12.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i8.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }] });
|
|
1645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaNonEditableGenericTableComponent, decorators: [{
|
|
1646
|
-
type: Component,
|
|
1647
|
-
args: [{ selector: 'anna-core-non-editable-generic-table-lib', template: "<div class=\"table-container\" (scroll)=\"tableContainerScrolled($event)\" [ngClass]=\"{ 'scroll-left-shadow-effect': isScrolledLeft }\">\r\n <div\r\n [class]=\"gtGeneralConfig.tableContainerName\"\r\n class=\"horizontal-scroll-for-table-container\"\r\n [ngStyle]=\"{\r\n height:\r\n tableData.length < maximumRowsWhichCanBeRenderedWithoutScroll\r\n ? 'calc(' +\r\n ((gtDimension.rowHeight + (includeBorderInTableHeight ? rowBorderWidth : 0)) * tableData.length +\r\n (!tableData.length || !gtGeneralConfig.totalRow\r\n ? gtDimension.headerHeight\r\n : gtDimension.headerHeight + gtDimension.rowHeight + ( includeBorderInTableHeight ? (2 * rowBorderWidth) : 0))) +\r\n 'px)'\r\n : gtDimension.tableHeight\r\n }\"\r\n >\r\n <table class=\"gt\" [ngClass]=\"tableClass\" mat-table [dataSource]=\"tableData\">\r\n <tr\r\n class=\"header-row\"\r\n mat-header-row\r\n *matHeaderRowDef=\"tableColumns; sticky: true\"\r\n [style.height.px]=\"gtDimension.headerHeight\"\r\n ></tr>\r\n <tr\r\n class=\"total-row\"\r\n mat-header-row\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n *matHeaderRowDef=\"totalRowColumns; sticky: true\"\r\n [class.hidden]=\"\r\n showSkeletonLoading ||\r\n (!showSkeletonLoading && !tableData.length ) ||\r\n (showNoDataToDisplay) || \r\n (!showSkeletonLoading && !gtGeneralConfig.totalRow)\r\n \"\r\n ></tr>\r\n <tr\r\n [class]=\"rowData.gtClass\"\r\n [ngClass]=\"{'no-border-tr': showNoDataToDisplay}\"\r\n mat-row\r\n *matRowDef=\"let rowData; columns: tableColumns\"\r\n [style.height.px]=\"gtDimension.rowHeight\"\r\n [style.background-color]=\"rowData.backgroundColor\"\r\n [style.border]=\"rowData.border\" (click)=\"dataRowClicked(rowData)\"\r\n ></tr>\r\n\r\n <!-- TOTAL ROW -->\r\n <ng-container [matColumnDef]=\"column.colName\" *ngFor=\"let column of totalRowInfo; trackBy: trackByFn\">\r\n <td mat-header-cell *matHeaderCellDef [attr.colspan]=\"column.colspan\" class=\"{{column.class}}\">\r\n <strong>{{ column.data }}</strong>\r\n <ng-container *ngIf=\"column.lowerData\">\r\n <br>\r\n <span \r\n *ngIf=\"column.colName == 'total-potential-booked-unit' && gtGeneralConfig.component == 'RATING';\r\n else columnLowerData\"\r\n class=\"clickable-data\"\r\n (click)=\"spotDetailsDownloadClicked('TOTALROW')\"\r\n [ngClass]=\"{ 'disabled-clickable-data': downloadInProgress }\"\r\n >{{ column.lowerData }}\r\n <span class=\"material-icons spot-details-download-icons\">get_app</span>\r\n <ng-container *ngIf=\"downloadInProgress \r\n && selectedRowTypeForDownload == 'TOTALROW' \">\r\n <ng-container [ngTemplateOutlet]=\"circularProgressBar\"></ng-container>\r\n </ng-container>\r\n </span>\r\n <ng-template #columnLowerData>\r\n <span>{{ column.lowerData }}</span>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"column.tooltipMessage\">\r\n <i class=\"mi mdi-info-outline info-label\" container=\"body\"\r\n [ngbTooltip]=\"column.tooltipMessage\"\r\n tooltipClass=\"gt-total-row-tooltip\" placement=\"bottom\"></i>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n\r\n <!-- MAIN ROW -->\r\n <ng-container [matColumnDef]=\"columnDef.headerInfo[0].objectKey\" *ngFor=\"let columnDef of tableHeaders; trackBy: trackByFn\">\r\n <th #tableHeader nowrap mat-header-cell *matHeaderCellDef [style.width]=\"columnDef.width\">\r\n <div class=\"row mx-0\" *ngFor=\"let header of columnDef.headerInfo; let j = index;\"> \r\n <p\r\n *ngIf=\"header.typeOfHeaderData === 'STRING'\"\r\n [ngClass]=\"{ 'upper-label': j === 0, 'lower-label': j === 1 }\"\r\n >\r\n {{ header.name }}\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'impsInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"impsInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'spotsColumnEquivalizationMessageTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"spotsColumnEquivalizationMessageTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'ratingInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"ratingInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'rateInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"rateInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n </p>\r\n\r\n <ng-container *ngIf=\"header.typeOfHeaderData === 'CHECKBOX'\">\r\n <span\r\n *ngIf=\"gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!gtGeneralConfig.isHeaderChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': gtGeneralConfig.disableHeaderCheckbox }\"\r\n (click)=\"selectUnselectAllRows()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <div *ngIf=\"gtGeneralConfig.showAllColumnFilter\" class=\"sort-filter-container\">\r\n <ng-container *ngIf=\"header.showTooltipIcon\">\r\n <!-- Active tooltip Functionality -->\r\n <ng-container *ngIf=\"header.filter === 'CHECKBOX'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys], \r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"filterTooltip\"\r\n placement=\"bottom left-top auto\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-checkbox-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'SLIDER'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"sliderToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-slider-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t1=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t1, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'DATE'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"datePickerTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-datepicker-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t2=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t2, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'WEEK'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"weekPickerToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t3=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t3, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n <ng-container *ngIf=\"header.filter === 'TIME'\">\r\n <span\r\n class=\"mdi mdi-filter-variant\"\r\n [ngClass]=\"{\r\n active: annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys],\r\n disabled: header.disableTooltipIcon && !(annaFilterService.isFilterSortActive && annaFilterService.isFilterSortActive[header.joinedFilterSortObjectKeys])\r\n }\"\r\n [ngbTooltip]=\"timeFilterToolTip\"\r\n placement=\"bottom left-top\"\r\n container=\"body\"\r\n tooltipClass=\"non-edit-time-tooltip\"\r\n [autoClose]=\"'outside'\"\r\n triggers=\"manual\"\r\n #t4=\"ngbTooltip\"\r\n (click)=\"bindTheValueToToolTip(t4, header)\"\r\n (hidden)=\"closeTooltip()\"\r\n >\r\n </span\r\n ><br />\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!header.showTooltipIcon\">\r\n <span id=\"no-filter-space\"></span><br />\r\n </ng-container>\r\n <i *ngIf=\"header.tooltip && header.tooltip.name == 'lurViolationInfoTooltip'\" class=\"{{header['tooltip'].iconClass}}\"\r\n [ngStyle]=\"{'float': header['tooltip'].iconPosition}\"\r\n #t=\"ngbTooltip\"\r\n [ngbTooltip]=\"lurViolationInfoTooltip\"\r\n placement=\"{{ header['tooltip'].tooltipPosition }}\"\r\n tooltipClass=\"{{ header['tooltip'].tooltipClass }}\"\r\n >\r\n </i>\r\n\r\n </div>\r\n </div>\r\n </th>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component == 'DRR'\">\r\n <ng-container *matCellDef=\"let ROW_DATA\">\r\n <ng-container *ngIf=\"showSkeletonLoading\">\r\n <td mat-cell>\r\n <ngx-skeleton-loader count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container\r\n *ngFor=\"let subline of columnDef.headerInfo; let sublineIndex = index; trackBy: trackByFn\"\r\n >\r\n <td\r\n mat-cell\r\n *ngIf=\"!ROW_DATA['hide' + subline.objectKey + 'Td']\"\r\n [attr.rowspan]=\"ROW_DATA[subline.objectKey + 'Rowspan']\"\r\n >\r\n <ng-container [ngSwitch]=\"subline.typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\"></i>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[subline.objectKey]\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[subline.objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{ 'disable-checkbox': ROW_DATA[subline.isDisabledKey] }\"\r\n (click)=\"selectUnselectRow(ROW_DATA)\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchCase=\"'RADIO'\">\r\n <mat-radio-group\r\n *ngIf=\"ROW_DATA['RadioButtonConfig']\"\r\n [ngModel]=\"ROW_DATA[subline.objectKey]\"\r\n [disabled]=\"ROW_DATA['RadioButtonConfig'][0].isDisabled\"\r\n >\r\n <ng-container\r\n *ngFor=\"let radioButton of ROW_DATA['RadioButtonConfig']; let last = last\"\r\n >\r\n <mat-radio-button\r\n value=\"{{ radioButton.value }}\"\r\n class=\"{{ radioButton.class }}\"\r\n (click)=\"\r\n radioButtonClicked(\r\n ROW_DATA,\r\n radioButton.value,\r\n ROW_DATA['RadioButtonConfig'][0].isDisabled\r\n )\r\n \"\r\n >{{ radioButton.label }}</mat-radio-button\r\n ><br *ngIf=\"!last\" />\r\n </ng-container>\r\n </mat-radio-group>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n {{ ROW_DATA[subline.objectKey] }}\r\n\r\n <ng-container\r\n *ngIf=\"\r\n subline.objectKey == 'Status' && (ROW_DATA['Remarks'] !== null)\r\n \"\r\n >\r\n <i\r\n class=\"mi mdi-info-outline remarks-tooltip\"\r\n [ngbTooltip]=\"columnInfoTooltip\"\r\n placement=\"bottom\"\r\n container=\"body\"\r\n tooltipClass=\"remarks-info-tooltip\"\r\n #t=\"ngbTooltip\"\r\n ></i>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"gtGeneralConfig.component != 'DRR'\">\r\n <td mat-cell *matCellDef=\"let ROW_DATA\" [style.background]=\"ROW_DATA.backgroundColor\">\r\n <ngx-skeleton-loader *ngIf=\"showSkeletonLoading\" count=\"1\" [theme]=\"{ height: '10px', display: 'block' }\">\r\n </ngx-skeleton-loader>\r\n\r\n <ng-container *ngIf=\"!showSkeletonLoading\">\r\n <ng-container *ngIf=\"tableData.length > 0 && !showNoDataToDisplay\">\r\n <div showEllipsisTextOnHover *ngFor=\"let subline of columnDef.headerInfo; let subLineIndex = index; trackBy: trackByFn\">\r\n <ng-container [ngSwitch]=\"columnDef.headerInfo[subLineIndex].typeOfBodyData\">\r\n <ng-container *ngSwitchCase=\"'ICON'\">\r\n <i [class]=\"ROW_DATA.iconClass\" (click)=\"iconClicked(ROW_DATA,ROW_DATA.iconClass)\"></i>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'SVG_ICON'\">\r\n <anna-core-anna-icon-column [componentName]=\"gtGeneralConfig.component\" [objectKey]=\"subline.objectKey\" [dataObject]=\"ROW_DATA\" (onColumnIconClicked)=\"svgIconClicked($event)\"></anna-core-anna-icon-column>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'TEXT_ACTIONS'\">\r\n <button *ngFor=\"let text of ROW_DATA.textActions\" (click)=\"textActionClicked(ROW_DATA,text.id)\" [disabled]=\"text.isDisabled\" class=\"{{text.class}}\">{{text.name}}</button>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'CHECKBOX'\">\r\n <span\r\n *ngIf=\"ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n false\r\n )\r\n \"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey]\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n [ngClass]=\"{\r\n 'disable-checkbox': ROW_DATA[columnDef.headerInfo[subLineIndex].isDisabledKey]\r\n }\"\r\n (click)=\"\r\n selectOrUnselectCheckbox(\r\n ROW_DATA,\r\n columnDef.headerInfo[subLineIndex].objectKey,\r\n true\r\n )\r\n \"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n </ng-container>\r\n \r\n <ng-container *ngSwitchCase=\"'CLICKABLE_DATA'\">\r\n <span \r\n *ngIf=\"subline.objectKey == 'displayBookedUnits' && gtGeneralConfig.component == 'RATING'\"\r\n class=\"clickable-data\"\r\n (click)=\"spotDetailsDownloadClicked('DATAROW', ROW_DATA)\"\r\n [ngClass]=\"{ 'disabled-clickable-data': downloadInProgress }\"\r\n >{{ ROW_DATA.displayBookedUnits}}\r\n <span class=\"material-icons spot-details-download-icons\">get_app</span>\r\n <ng-container *ngIf=\"downloadInProgress \r\n && ROW_DATA.inventoryCodeId == selectedInventoryIdForDownload \r\n && ROW_DATA.demographic == selectedDemographicForDownload \">\r\n <ng-container [ngTemplateOutlet]=\"circularProgressBar\"></ng-container>\r\n </ng-container>\r\n </span>\r\n </ng-container>\r\n\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngIf=\"subline.objectKey != 'description'\">\r\n <span>{{ ROW_DATA[columnDef.headerInfo[subLineIndex].objectKey] }}</span>\r\n <i\r\n *ngIf=\"subline.objectKey == 'inventoryCode' && ROW_DATA['isSellerGroup'] && gtGeneralConfig.component == 'RATING' \"\r\n class=\"mi mdi-info-outline seller-tooltip\"\r\n [ngbTooltip]=\"sellerHierarchyTooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n triggers=\"manual\"\r\n (hidden)=\"closeTooltip()\"\r\n #info=\"ngbTooltip\"\r\n tooltipClass=\"hierarchy-tooltip\"\r\n (mouseenter)=\"bindTheValueToSellerGroupTooltip(ROW_DATA.sellerGroupHierarchy, info)\">\r\n </i>\r\n\r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageRating' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showRatingAverageIcon'] \"\r\n class=\"mi mdi-info-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"setIsDifference(ROW_DATA.isDifferenceLessThan25Percent)\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedRatingDifference\"\r\n >\r\n </i>\r\n \r\n <i *ngIf=\"subline.objectKey == 'displayBookedAverageImpression' && gtGeneralConfig.component == 'RATING' && ROW_DATA['showImpressionAverageIcon'] \"\r\n class=\"mi mdi-info-outline seller-tooltip\"\r\n placement=\"bottom auto\"\r\n container=\"body\"\r\n [autoClose]=\"true\"\r\n (mouseenter)=\"setIsDifference(ROW_DATA.isDifferenceLessThan25Percent)\"\r\n tooltipClass=\"posted-avg-tooltip\"\r\n [ngbTooltip]=\"postedImpDifference\"\r\n >\r\n </i>\r\n\r\n </ng-container>\r\n <ng-container *ngIf=\"subline.objectKey == 'description'\">\r\n <p *ngIf=\"ROW_DATA.descriptionMessage || ROW_DATA.descriptionEmailReferenceNum\">\r\n <ng-container *ngIf=\"ROW_DATA.descriptionMessage\">\r\n {{ ROW_DATA.descriptionMessage }}\r\n <br />\r\n </ng-container>\r\n <ng-container *ngIf=\"ROW_DATA.descriptionEmailReferenceNum\">\r\n Email Ref: {{ ROW_DATA.descriptionEmailReferenceNum }}\r\n <br />\r\n </ng-container>\r\n </p>\r\n <a\r\n href=\"{{ ROW_DATA.descriptionDetailsUrl }}\"\r\n target=\"_blank\"\r\n *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'PDF' || ROW_DATA.descriptionDetailsUrlType === 'EXCEL'\"\r\n >\r\n <button class=\"btn viewDetailsAndEmailBtn\">Download</button>\r\n </a>\r\n <ng-container *ngIf=\"ROW_DATA.activityname.toLowerCase() == 'order onboarded'\">\r\n <a *ngIf=\"ROW_DATA.descriptionDetailsUrlType === 'LINK'\" (click)=\"viewDetailsClicked(ROW_DATA)\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View details</button>\r\n </a> \r\n </ng-container>\r\n \r\n <a href=\"{{ ROW_DATA.descriptionEmailUrl }}\" target=\"_blank\" *ngIf=\"ROW_DATA.descriptionEmailUrl\">\r\n <button class=\"btn viewDetailsAndEmailBtn\">View email</button>\r\n </a>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n \r\n <ng-container\r\n *ngIf=\"\r\n gtGeneralConfig.page === 'SpotDetails' &&\r\n columnDef.headerInfo[subLineIndex].objectKey === 'Status'\r\n \"\r\n >\r\n <img\r\n src=\"assets/images/Undo-Credit-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForCredit\"\r\n (click)=\"undoCreditedSpot(ROW_DATA)\"\r\n />\r\n <img\r\n src=\"assets/images/Undo-MG-Icon.svg\"\r\n style=\"cursor: pointer\"\r\n class=\"img-circle\"\r\n alt=\"User Image\"\r\n height=\"15px\"\r\n width=\"15px\"\r\n *ngIf=\"ROW_DATA.AllowUserToUndoMarkForMakeGood\"\r\n (click)=\"undoMgSpot(ROW_DATA)\"\r\n />\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"showNoDataToDisplay\">\r\n <div>\r\n {{null}}\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </ng-container>\r\n </ng-container>\r\n </table>\r\n </div>\r\n <anna-core-no-data-lib [width]=\"noDataWidth\" [marginTop]=\"marginTop\" *ngIf=\"!showSkeletonLoading && showNoDataToDisplay\"> </anna-core-no-data-lib>\r\n</div>\r\n\r\n<!-- Checkbox template -->\r\n<ng-template #filterTooltip>\r\n \r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p>\r\n </div>\r\n </div>\r\n \r\n <div class=\"checkbox-sort\" *ngIf=\"showSortComponent\">\r\n <anna-core-sort-lib [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n </div>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <p class=\"d-flex justify-content-between\">\r\n <button class=\"filter-text-btn\" [disabled]=\"disableClearAll\" (click)=\"unCheckAllCheckbox()\">Clear All</button>\r\n <button class=\"filter-text-btn\" [disabled]=\"disableSelectAll\" (click)=\"selectAllCheckbox()\">Select All</button>\r\n </p>\r\n <p class=\"search-box\">\r\n <i class=\"mi mdi-search search-icon search-icon-position\"></i>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Search\"\r\n class=\"search-input\"\r\n style=\"margin-left: 2px; border: none; padding: 0px\"\r\n [(ngModel)]=\"searchItem\"\r\n (ngModelChange)=\"searchForTheItem($event)\"\r\n />\r\n <i class=\"mdi mdi-close search-bar-close\" [ngClass]=\"{'disable-close-icon': (!searchItem || searchItem.length == 0) }\"\r\n (click)=\"clearSearchedItem()\"></i>\r\n\r\n </p>\r\n <div class=\"dropdown-data-container\">\r\n <!-- Track By func -->\r\n <ng-container *ngFor=\"let option of tooltipOptions;trackBy: trackByTooltipModelId\">\r\n <p class=\"input\" (click)=\"selectUnselectCheckbox(option)\">\r\n <span *ngIf=\"option.isSelected\" role=\"button\" class=\"mi mdi-check-box check-box\"></span>\r\n <span *ngIf=\"!option.isSelected\" role=\"button\" class=\"mi mdi-check-box-outline-blank check-box unchecked\"></span>\r\n <span class=\"data\" title=\"{{ option.value }}\" [innerHTML]=\"option.label\"></span>\r\n </p>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeCheckboxFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableCheckboxApply }\"\r\n (click)=\"applyFilters()\"\r\n [disabled]=\"disableCheckboxApply\"\r\n >\r\n Apply\r\n <span *ngIf=\"showFilterComponent\">({{ selectedCheckboxOptionsCount == tooltipOptions.length && tooltipOptions.length != 0 && !searchItem? 'All': selectedCheckboxOptionsCount }})</span>\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Slider template -->\r\n<ng-template #sliderToolTip>\r\n \r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p> \r\n </div>\r\n </div>\r\n <!-- <button class=\"column-clear-all align-center\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button> -->\r\n \r\n <anna-core-sort-lib *ngIf=\"showSortComponent\" [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <section class=\"min-maxContainer\">\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMinValue\"\r\n (ngModelChange)=\"minValueChanged($event)\"\r\n [ngClass]=\"{'red-border': showSliderMinValueError}\"\r\n placeholder=\"Min\"\r\n />\r\n <span>To</span>\r\n <input\r\n type=\"number\"\r\n class=\"slider-text\"\r\n step=\"{{ sliderFilterTextBoxStep }}\"\r\n [(ngModel)]=\"sliderMaxValue\"\r\n (ngModelChange)=\"maxValueChanged($event)\"\r\n [ngClass]=\"{'red-border': showSliderMaxValueError}\"\r\n placeholder=\"Max\"\r\n />\r\n </section>\r\n <div class=\"sidebar-slider\">\r\n <ngx-slider\r\n class=\"filter-slider\"\r\n [value]=\"sliderMinValue\"\r\n [highValue]=\"sliderMaxValue\"\r\n [options]=\"options\"\r\n ></ngx-slider>\r\n </div>\r\n </ng-container>\r\n \r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelSliderFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableSliderApplyButton }\"\r\n (click)=\"applySliderFilter()\"\r\n [disabled]=\"disableSliderApplyButton\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Date Picker Template -->\r\n<ng-template #datePickerTooltip>\r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p>\r\n </div>\r\n </div>\r\n\r\n <anna-core-sort-lib *ngIf=\"showSortComponent\" [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <div class=\"datepicker-container\">\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">\r\n Clear filter\r\n </button>\r\n <anna-core-calendar-filter-lib\r\n [minDate]=\"calendarMinEnabledDate\"\r\n [maxDate]=\"calendarMaxEnabledDate\"\r\n [selectedFromDate]=\"selectedMinDate\"\r\n [selectedToDate]=\"selectedMaxDate\"\r\n (selectedDate) = \"calendarDateChanged($event)\"\r\n [label]=\"selectedLabel\"\r\n >\r\n </anna-core-calendar-filter-lib>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"cancelInDateFilter()\">Cancel</button>\r\n <button class=\"button\" (click)=\"applyDateFilter()\" [ngClass]=\"{ disabled: disableCalendarApplyBtn }\"\r\n [disabled]=\"disableCalendarApplyBtn\">Apply</button>\r\n </div>\r\n \r\n</ng-template>\r\n\r\n<!-- Week Picker Template -->\r\n<ng-template #weekPickerToolTip>\r\n <div class=\"weekpicker-container\">\r\n <anna-core-week-calendar-filter-lib\r\n [week-calendar-config]=\"gtGeneralConfig.multiWeekPickerConfig\"\r\n (apply)=\"applyWeekFilter($event)\"\r\n [from-date]=\"calendarMinEnabledDate\"\r\n [to-date]=\"calendarMaxEnabledDate\"\r\n >\r\n </anna-core-week-calendar-filter-lib>\r\n </div>\r\n</ng-template>\r\n\r\n<!-- Time Filter Template -->\r\n<ng-template #timeFilterToolTip>\r\n \r\n <div class=\"radio-container\" *ngIf=\"showFilterTooltipTabs\">\r\n <div *ngFor=\"let data of filterTabObjects\">\r\n <p class=\"filter-tab\" (click)=\"populateTooltipDataBasedOnSelectedRadio(data)\" [ngClass]=\"{'active': annaFilterService.selectedRadio == data.key}\" *ngIf=\"filterTabObjects.length > 0\">{{ data.label }}</p>\r\n </div>\r\n </div>\r\n\r\n <anna-core-sort-lib *ngIf=\"showSortComponent\" [ngClass]=\"{'no-bottom-border': !showFilterComponent}\"\r\n (sortOptionClicked)=\"storeSortTypeInTempVariable($event)\" [sortObjectKey]=\"annaFilterService.selectedRadio\"></anna-core-sort-lib>\r\n \r\n <ng-container *ngIf=\"showFilterComponent\">\r\n <button class=\"column-clear-all\" [disabled]=\"disableColumnClearAllBtn\" (click)=\"clearColumnFilter()\">Clear filter</button>\r\n <div\r\n class=\"time-filter-checkboxes\"\r\n *ngIf=\"gtGeneralConfig.component == 'SPOTDETAILS' || gtGeneralConfig.component == 'EXCLUDEINVENTORYPOPUP' || gtGeneralConfig.component == 'RATING'\"\r\n >\r\n <!-- Multi time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showMultiTimeCheckbox\">\r\n <span\r\n *ngIf=\"multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!multiTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectMultiTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Multi</p>\r\n </div>\r\n <!-- Zero time option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showZeroTimeCheckbox\">\r\n <span\r\n *ngIf=\"zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!zeroTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectZeroTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Include Zero</p>\r\n </div>\r\n <!-- Enter time range option checkbox -->\r\n <div class=\"d-flex align-items-center\" style=\"padding: 0.5rem 0 0.5rem 0.5rem\" *ngIf=\"showEnterTimeCheckbox\">\r\n <span\r\n *ngIf=\"enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-checked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box\r\n </span>\r\n <span\r\n *ngIf=\"!enterTimeCheckboxChecked\"\r\n class=\"material-icons custom-column-checkbox-unchecked\"\r\n (click)=\"selectOrUnselectEnterTimeCheckbox()\"\r\n >\r\n check_box_outline_blank\r\n </span>\r\n <p style=\"margin-left: 2px\">Enter time range</p>\r\n </div>\r\n </div>\r\n <div class=\"time-label-container\">\r\n <label>From</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [ngClass]=\"{'error-border': startTimeHourErr}\" [(ngModel)]=\"selectedFromTime[0]\" type=\"text\" (ngModelChange)=\"startTimeHourChange($event)\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [ngClass]=\"{'error-border': startTimeMinErr}\" [(ngModel)]=\"selectedFromTime[1]\" type=\"text\" (ngModelChange)=\"startTimeMinChange($event)\"/>\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeStartTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeStartTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedFromTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n\r\n <div class=\"time-label-container\">\r\n <label>To</label>\r\n </div>\r\n <div class=\"time-container\">\r\n <input class=\"form-control numberInput\" [(ngModel)]=\"selectedToTime[0]\" [ngClass]=\"{'error-border': endTimeHourErr}\" (ngModelChange)=\"endTimeHourChange($event)\" type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeHour(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeHour(false)\"></i>\r\n </div>\r\n <span class=\"dot\">:</span>\r\n <input class=\"form-control numberInput\" [ngClass]=\"{'error-border': endTimeMinErr}\" [(ngModel)]=\"selectedToTime[1]\" (ngModelChange)=\"endTimeMinChange($event)\" type=\"text\" />\r\n <div class=\"arrow-container\">\r\n <i class=\"mdi mdi-triangle upward\" (click)=\"changeEndTimeMinute(true)\"></i>\r\n <i class=\"mdi mdi-triangle downward\" (click)=\"changeEndTimeMinute(false)\"></i>\r\n </div>\r\n <div>\r\n <mat-button-toggle-group [(ngModel)]=\"selectedToTime[2]\" (ngModelChange)=\"disableTimeFilterApplyButton()\">\r\n <mat-button-toggle value=\"AM\">\r\n <span>AM</span>\r\n </mat-button-toggle>\r\n <mat-button-toggle value=\"PM\">\r\n <span>PM</span>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"buttons-container\">\r\n <button class=\"button\" (click)=\"closeTimeFilter()\">Cancel</button>\r\n <button\r\n class=\"button\"\r\n [ngClass]=\"{ disabled: disableTimeFilterApplyBtn }\"\r\n (click)=\"applyTimeFilters()\"\r\n [disabled]=\"disableTimeFilterApplyBtn\"\r\n >\r\n Apply\r\n </button>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #columnInfoTooltip>\r\n <p style=\"padding: 0.5rem; color: black;white-space: nowrap;\">This preemption is rejected and not marked for credit.</p>\r\n</ng-template>\r\n\r\n<ng-template #ratingInfoTooltip>\r\n <p class=\"first-row\">Shows 'Booked Rating' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\">Shows 'Projected Rating' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #impsInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked IMPS' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected IMPS' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #spotsColumnEquivalizationMessageTooltip>\r\n <p class=\"spot-column-tooltip-message\" >This consists of equivalized spots and un-equivalized Paid Programs & un-equivalized Non-spots.</p>\r\n</ng-template>\r\n\r\n<ng-template #rateInfoTooltip>\r\n <p class =\"first-row\" >Shows 'Booked Rate' for Preemptions & MakeGood Offered spot(s).</p>\r\n <p class=\"second-row\" >Shows 'Projected $ Value' for ADU Offered spot(s).</p>\r\n</ng-template>\r\n\r\n<ng-template #sellerHierarchyTooltip>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length > 0\">\r\n <table class=\"seller-hierarchy-table\">\r\n <thead>\r\n <tr>\r\n <th>#</th>\r\n <th>Inventory Codes</th>\r\n <th>Program/Description</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let data of sellerGroupHierarchy; let tooltipIndex = index\">\r\n <td>{{ tooltipIndex + 1 }}</td>\r\n <td>\r\n <span>{{ data.inventoryCode }}</span>\r\n </td>\r\n <td>\r\n <span>{{ data.program }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-container>\r\n <ng-container *ngIf=\"sellerGroupHierarchy.length == 0\">\r\n <span style=\"color: #000\">Seller group not available for this inventory code</span>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #lurViolationInfoTooltip>\r\n <p class =\"first-row\" >The values are for the entire week.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedRatingDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average rating is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n\r\n<ng-template #postedImpDifference>\r\n <p class=\"difference-text\">The difference between posted and booked average impression is {{isDifferenceLessThan25Percent ? 'less' : 'more'}} than 25%.</p>\r\n</ng-template>\r\n\r\n<ng-template #circularProgressBar>\r\n <circle-progress\r\n [percent]=\"percentDone\"\r\n [radius]=\"5\"\r\n [showTitle]=\"false\"\r\n [showUnits]=\"false\"\r\n [showSubtitle]=\"false\"\r\n [outerStrokeWidth]=\"3\"\r\n [innerStrokeWidth]=\"3\"\r\n [space]=\"-3\"\r\n [outerStrokeColor]=\"'#268bff'\"\r\n [innerStrokeColor]=\"'#d5d5d5'\"\r\n [animationDuration]=\"10\"\r\n ></circle-progress>\r\n</ng-template>\r\n", styles: [".sort-btn{background:white;border:none;border-right:1px solid #1b88ff;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.07;letter-spacing:normal;color:#1b88ff;cursor:pointer;flex:1;text-align:center}.sort-btn:last-of-type{border-right:none}.sort-btn.active{color:#202b47;text-decoration:none}p.sort-container{margin-top:8px;padding-bottom:8px;border-bottom:1px solid #e6e6e6;margin-bottom:0;display:flex}::ng-deep .tooltip-inner{max-height:22rem;background-color:#fff;border:1px solid white;border-radius:5px;box-shadow:0 2px 2px #0000003d,0 0 2px #0000001f;max-width:251px;width:100%;padding:0!important}::ng-deep .tooltip-inner div.radio-container{flex-wrap:wrap}::ng-deep .md-drppicker{box-shadow:unset!important}::ng-deep .available{color:#999}::ng-deep .bs-tooltip-bottom .arrow:before{border-bottom-color:#fff!important}::ng-deep .bs-tooltip-left .arrow:before{border-left-color:#fff!important}::ng-deep .tooltip.show{opacity:1}.input{text-align:left;margin:5px 10px 5px 5px;display:flex;align-items:center;width:98%;white-space:nowrap}.data{color:#000;font-weight:700;margin-left:5px;margin-right:5px}span.data{display:inline-block;text-overflow:ellipsis;white-space:nowrap;width:85%;overflow:hidden}.check-box{font-size:14px;cursor:pointer;position:relative;top:-1px}span.mdi-filter.active{color:#000;opacity:1!important;pointer-events:all!important}p{margin-bottom:0;line-height:initial}span.mdi-filter{color:#cbcbcb}::ng-deep .ngx-slider{margin:5px 0 2px!important;width:100%!important}::ng-deep span.ngx-slider-bubble.ngx-slider-model-value{display:block!important;padding:2px!important;box-shadow:#00000059 0 3px 8px!important;height:20px!important}::ng-deep .ngx-slider-pointer{top:-5px!important;width:12px!important;height:12px!important;background:#bdbdbd!important;border:1px solid #ffffff!important;box-shadow:0 1px 3px #0000004d!important;border-radius:16px!important}::ng-deep .ngx-slider-pointer:after{display:none!important}::ng-deep .ngx-slider-pointer:focus{outline:none!important}::ng-deep span.ngx-slider-bar{background:#ededed!important;height:3px!important}::ng-deep .filter-slider span.ngx-slider-bar.ngx-slider-selection{background:#bdbdbd!important;height:3px!important}::ng-deep .sidebar-slider{margin-bottom:35px!important;margin-left:.3125rem;margin-right:.3125rem}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-high{right:0!important}::ng-deep .ngx-slider-span.ngx-slider-bubble.ngx-slider-model-ceil{right:0!important}::ng-deep .ngx-slider.animate{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bubble{top:10px!important;bottom:0!important;padding:1px 0!important;font-size:12px!important}::ng-deep .ngx-slider-bar{background:rgba(0,0,0,.26)!important;height:3px!important}::ng-deep .ngx-slider-bar.ngx-slider-selection{background:#42a5f5!important;height:3px!important}input:focus{outline:none}input::placeholder{color:#c8c8c8}.cancel-btn{background:#c7e1ff;color:#268bff}.apply-btn{background:#268bff;color:#fff;margin-left:.3125rem}div.radio-container{display:flex;white-space:nowrap;justify-content:space-between;background-color:#f4f4f4;border-radius:.125rem;margin:.4375rem .4375rem .25rem}div.radio-container div{flex:1}div.radio-container input{position:relative;top:.125rem;margin-right:.25rem}div.radio-container label{font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:0;color:#4a4a4a;margin:0;padding-left:.125rem}div.radio-container label:first-of-type{margin-right:.188rem}div.radio-container input[type=radio]{-webkit-appearance:none;appearance:none;display:inline-block;width:.9375rem;height:.9375rem;padding:.125rem;background-clip:content-box;border:.125rem solid #268bff;background-color:transparent;border-radius:50%}div.radio-container input[type=radio]:checked{background-color:#268bff}.buttons-container{display:flex;margin:0px auto .4375rem;justify-content:center}.buttons-container button:last-of-type{background-color:#268bff;color:#fff}.buttons-container button.disabled{background:#bdbdbd;opacity:.5;color:#4a4a4a}.button{display:inline-block;margin:8px 4px 0 8px;padding:0 16px;border-radius:4px;text-align:center;outline:none;font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;border:none;color:#268bff;background-color:#e5f1ff}.search-box{display:flex;align-items:center;color:#c8c8c8;border:1px solid #e6e6e6;border-radius:.125rem;margin:.25rem .4375rem .188rem;height:1.5rem;padding:.188rem 0 .188rem .5rem}.search-icon{margin:0 4px 0 0;font-size:1.125rem;color:#9b9b9b}.filter-icon{justify-content:right;margin-left:auto;color:#d4d4d4;color:#a1a1a1;font-size:16px;cursor:pointer}.data{margin:0 13px 0 8px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.86;letter-spacing:\"\";color:#4a4a4a}.search-input{margin:1px 0 1px 4px;font-family:Roboto;font-size:.875rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#c8c8c8}.check-box{color:#268bff}.tooltip-data-container{overflow-y:scroll;max-height:8rem}.searchbar{width:100%;display:flex;justify-content:flex-end;align-items:flex-end}.clear-button{opacity:.5;font-family:Roboto;font-size:.9375rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-decoration:underline;border:none;background-color:#fff;color:#4a4a4a;margin-left:.625rem;padding:0}.clear-button:focus{outline:none;box-shadow:none}.unchecked{color:#268bff}div.dropdown-data-container{max-height:12.3rem;width:100%;overflow-y:auto;overflow-x:hidden}div.dropdown-data-container p.input{margin-left:0}div.dropdown-data-container p.input span.mi{padding-left:.4375rem}div.dropdown-data-container p.input:hover{background-color:#ebebeb;cursor:pointer}div.dropdown-data-container::-webkit-scrollbar{width:.188rem}div.dropdown-data-container::-webkit-scrollbar-thumb{color:#d3d3d3}section.min-maxContainer{display:flex;justify-content:center;margin-bottom:-.125rem;margin-top:.5rem;width:100%}section.min-maxContainer input{width:30%;height:1.875rem;border:1px solid lightgray;color:gray}section.min-maxContainer span{display:inline-block;padding-left:.5rem;padding-right:.5rem;position:relative;top:.3125rem;color:#666}.time-container{width:100%;display:flex;padding:.125rem .625rem 0}.time-container input.form-control:disabled{background-color:#fff;width:2.813rem}.time-container .dot{color:#cbcbcb;position:relative;left:-7px;font-size:17px}.time-container div.arrow-container{flex-direction:column;display:flex;padding-top:.375rem;padding-left:1px;margin-right:1.1875rem}.time-container div.arrow-container i{color:#cbcbcb;cursor:pointer;font-size:.5625rem}.time-container div.arrow-container i.downward{transform:rotate(180deg)}.mdi-filter{cursor:pointer}.time-label-container{display:flex;justify-content:flex-start}.time-label-container label{margin-bottom:0;color:#4a4a4a;margin-top:.625rem;margin-left:.625rem;font-weight:700}.time-heading{color:#000;font-size:.8125rem;text-align:left;padding-left:.625rem;margin-top:.625rem;font-weight:700}.column-clear-all{width:94%;text-align:center;border:none;font-size:14px;background:none;text-decoration:underline;color:#268bff}.checkbox-container{display:flex;padding-inline:.625rem}.checkbox-container .data{text-align:left}.checkbox-container:first-of-type{margin-top:.625rem;font-weight:500}.column-clear-all{width:94%;text-align:center;border:none;background:none;text-decoration:underline;color:#268bff}.column-clear-all:disabled{opacity:.5;color:#4a4a4a}.column-clear-all.align-center{text-align:center}span.mdi-filter-variant.disabled{pointer-events:none;opacity:.5}.datepicker-container{width:100%}span.mdi-filter-variant{color:#cbcbcb;cursor:pointer;font-size:.875rem}span.mdi-filter-variant.active{color:#000}p.filter-tab{font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:normal;color:#1b88ff;border-radius:5px;background-color:#f4f4f4;padding-inline:8px;cursor:pointer}p.filter-tab.active{color:#fff;background-color:#1b88ff}button.filter-text-btn{background:white;text-decoration:underline;font-family:Roboto;font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;border:none;color:#268bff;margin-inline:4px;margin-top:2px}button.filter-text-btn:disabled{color:#b1b1b1;cursor:not-allowed}::ng-deep .non-edit-datepicker-tooltip .tooltip-inner{max-width:310px!important;width:263px!important;overflow-y:initial!important}input.slider-text::-webkit-outer-spin-button,input.slider-text::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input.slider-text{-moz-appearance:textfield}input.slider-text.red-border{border:1px solid #f44336!important}::ng-deep .checkbox-sort p.sort-container{margin-top:8px!important;padding-bottom:8px!important}i.mdi-close{cursor:pointer}i.mdi-close.disable-close-icon{pointer-events:none;cursor:not-allowed}input.error-border{border:1px solid #f44336!important}::ng-deep .non-edit-checkbox-tooltip .tooltip-inner{width:238px!important}::ng-deep .non-edit-slider-tooltip .tooltip-inner{width:238px!important}::ng-deep .non-edit-time-tooltip .tooltip-inner{width:250px!important}::ng-deep .no-bottom-border p.sort-container{border-bottom:none!important}.upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a!important;margin-bottom:0!important}:host ::ng-deep .gt{table-layout:fixed;margin-bottom:0;width:100%}:host ::ng-deep .gt th,:host ::ng-deep .gt td{padding:2px 8px;line-height:normal}:host ::ng-deep .gt thead tr th .upper-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#4a4a4a;margin-bottom:0}:host ::ng-deep .gt thead tr th .lower-label{font-family:Roboto;font-size:.6875rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:.3px;color:#a7a7a7;margin-bottom:0}:host ::ng-deep .gt thead tr th{background-color:#ededed;position:sticky;position:-webkit-sticky;top:0;border-top:none!important;border-bottom:none!important;outline:none!important;box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4}:host ::ng-deep .gt thead tr th br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt thead tr th div.row{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}:host ::ng-deep .gt thead tr th div.sort-filter-container{display:flex;flex-wrap:nowrap;align-items:center}:host ::ng-deep .gt thead tr th:first-of-type{box-shadow:inset 0 1px #d4d4d4,inset 0 -1px #d4d4d4,inset -1px 0 #d4d4d4,inset 1px 0 #d4d4d4}:host ::ng-deep .gt tbody tr td:first-of-type{box-shadow:inset 1px 0 #d4d4d4,inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td:nth-of-type(n + 2){box-shadow:inset -1px 0 #d4d4d4,inset 0 -1px #d4d4d4;border:none}:host ::ng-deep .gt tbody tr td .upper-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#000;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr td .lower-label{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:0px;color:#a7a7a7;display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .gt tbody tr br{display:block;content:\"\";margin-top:-8px}:host ::ng-deep .gt tbody tr:nth-of-type(1) td{border-top:none!important}:host ::ng-deep .gt .custom-column-checkbox-checked,:host ::ng-deep .gt .custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}:host ::ng-deep .gt .custom-column-checkbox-checked{color:#268bff}:host ::ng-deep .gt .custom-column-checkbox-unchecked{color:#4a4a4a}.table-container::-webkit-scrollbar-track{border:1px solid rgba(0,0,0,.1)!important}.table-container::-webkit-scrollbar{width:5px;height:5px}.table-container::-webkit-scrollbar-thumb{border-radius:4px;background-color:#0006!important;border:1px solid rgba(0,0,0,.2)}.table-container{overflow-x:auto;overflow-y:auto}.rowSelectCheckbox,#selectAllRowsCheckbox{cursor:pointer}.disable-checkbox{color:#dedede!important;pointer-events:none!important}.mdi-warning{color:#f3c639;font-size:16px;line-height:28px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{opacity:1}.redcolor-status{color:#c62a2a}.redcolor-cell-border{outline:1px solid #ff5353!important;outline-offset:-1px!important}#no-filter-space{width:.875rem}::ng-deep .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:1.875rem!important;width:2.625rem;padding:0 .625rem}input.numberInput{margin-right:-.8125rem;padding:0 0 0 .625rem;height:1.875rem}::ng-deep .mat-button-toggle-checked{background-color:#268bff!important;color:#fff!important}::ng-deep .mat-button-toggle-group-appearance-standard{border-radius:0}.hidden{display:none}.no-data-div{margin-top:2.5px}.no-data-div label{margin:0;width:auto;font-weight:500;background-color:#d3d3d3;padding:.3125rem 1.125rem;border-radius:.25rem}.column-values:nth-of-type(2){color:#a7a7a7!important}.custom-column-checkbox-checked,.custom-column-checkbox-unchecked{font-size:.875rem;cursor:pointer}.custom-column-checkbox-checked{color:#268bff}.custom-column-checkbox-unchecked{color:#4a4a4a}.time-filter-checkboxes>div>p{color:#151b1e}.radio-button-dimension,::ng-deep .markForCredit .mat-radio-inner-circle,::ng-deep .markForCredit .mat-radio-outer-circle,::ng-deep .mark-for-credit .mat-radio-inner-circle,::ng-deep .mark-for-credit .mat-radio-outer-circle,::ng-deep .markForMakeGood .mat-radio-inner-circle,::ng-deep .markForMakeGood .mat-radio-outer-circle,::ng-deep .noAction .mat-radio-inner-circle,::ng-deep .noAction .mat-radio-outer-circle,::ng-deep .credit .mat-radio-inner-circle,::ng-deep .credit .mat-radio-outer-circle,::ng-deep .approve .mat-radio-inner-circle,::ng-deep .approve .mat-radio-outer-circle,::ng-deep .reject .mat-radio-inner-circle,::ng-deep .reject .mat-radio-outer-circle,::ng-deep .resubmit .mat-radio-inner-circle,::ng-deep .resubmit .mat-radio-outer-circle,::ng-deep .rejectCreditRequest .mat-radio-inner-circle,::ng-deep .rejectCreditRequest .mat-radio-outer-circle{height:18px!important;width:18px!important}::ng-deep .margin-bottom-zero .mat-radio-label{margin-bottom:0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .reject.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff0}::ng-deep .resubmit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:#ff0}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .noAction.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:green}::ng-deep .approve.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:green}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:red}::ng-deep .credit.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-inner-circle{background-color:red}::ng-deep .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:#00000061!important}::ng-deep .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-inner-circle{background-color:#00000061!important}::ng-deep tr.white-background-row{background:white}::ng-deep tr.gray-background-row{background:rgba(233,233,233,.5)}.remarks-tooltip,.seller-tooltip{font-size:.875rem;color:#268bff;position:relative;top:.1875rem;cursor:pointer}.seller-tooltip{top:-1px;float:right}::ng-deep .remarks-info-tooltip .tooltip-inner{max-width:19.25rem!important}.rating-icon,.lur-violation-icon{color:#268bff;cursor:pointer;margin-left:2px;position:relative;left:-2px}::ng-deep .rating-info-tooltip .tooltip-inner{max-width:800px!important}.spots-info-icon{color:#268bff;cursor:pointer;margin-left:2px;margin-top:1px}::ng-deep .spot-info-tooltip .tooltip-inner{left:60px;position:relative;max-width:220px!important;background:#fff;word-break:break-word;display:flex}::ng-deep .spot-info-tooltip-for-orderlisting-table .tooltip-inner{max-width:220px!important;background:#fff;word-break:break-word;display:flex}p.first-row{padding:.5rem .5rem 0;color:#000;white-space:nowrap;text-align:left}p.second-row{padding:2px .5rem .5rem;color:#000;white-space:nowrap;text-align:left}::ng-deep .gt-total-row-tooltip{opacity:1!important}::ng-deep .gt-total-row-tooltip .tooltip-inner{color:#000;box-shadow:0 6px 10px #0000004d,0 2px 2px #0003;background-color:#fff;padding:4px!important;width:100%;border-radius:2px!important}::ng-deep .gt-total-row-tooltip .arrow:before{border-top-color:#fff!important}.info-label{margin-left:4px;color:#268bff;vertical-align:text-top}::ng-deep .hierarchy-tooltip .tooltip-inner{padding:4px!important}table.seller-hierarchy-table{table-layout:fixed;margin:.625rem .625rem .625rem .8125rem}table.seller-hierarchy-table tr th{font-family:Roboto;font-size:.75rem;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:#5e5e5e;white-space:nowrap;background:#ededed;box-shadow:none!important;border-top:1px solid #d4d4d4}table.seller-hierarchy-table tr th:first-of-type,table.seller-hierarchy-table tr td:first-of-type{border-left:1px solid #d4d4d4}table.seller-hierarchy-table tr th:last-of-type,table.seller-hierarchy-table tr td:last-of-type{border-right:1px solid #d4d4d4;width:7.875rem!important}table.seller-hierarchy-table tr th:nth-of-type(2){width:7.75rem!important}table.seller-hierarchy-table tr td{font-family:Roboto;font-size:.75rem;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#4a4a4a;box-shadow:none!important;border-top:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4}table.seller-hierarchy-table tr td:nth-of-type(2),table.seller-hierarchy-table tr td:nth-of-type(3){padding-top:.25rem}table.seller-hierarchy-table tr td span{display:inline-block;width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}.difference-text{padding:.5rem;color:#000;text-align:left}::ng-deep .posted-avg-tooltip .tooltip-inner{width:13.8125rem!important}.clickable-data{cursor:pointer;color:#268bff!important;display:flex!important;align-items:center}.clickable-data .spot-details-download-icons{font-size:12px}.disabled-clickable-data{pointer-events:none;color:#d4d4d4!important}.spot-column-tooltip-message{color:#000;padding:10px;width:max-content;text-align:left}\n"] }]
|
|
1648
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.AnnaSortService }, { type: i1.AnnaDateTimeFormatService }, { type: i1.AnnaFilterService }, { type: i1.AnnaGenericTableService }]; }, propDecorators: { showSkeletonLoading: [{
|
|
1649
|
-
type: Input
|
|
1650
|
-
}], tableHeaders: [{
|
|
1651
|
-
type: Input
|
|
1652
|
-
}], tableData: [{
|
|
1653
|
-
type: Input
|
|
1654
|
-
}], clonedTableData: [{
|
|
1655
|
-
type: Input
|
|
1656
|
-
}], numberOfSkeletonRows: [{
|
|
1657
|
-
type: Input
|
|
1658
|
-
}], numberOfSkeletonColumns: [{
|
|
1659
|
-
type: Input
|
|
1660
|
-
}], gtGeneralConfig: [{
|
|
1661
|
-
type: Input
|
|
1662
|
-
}], totalRowInfo: [{
|
|
1663
|
-
type: Input
|
|
1664
|
-
}], gtDimension: [{
|
|
1665
|
-
type: Input
|
|
1666
|
-
}], tableClass: [{
|
|
1667
|
-
type: Input
|
|
1668
|
-
}], maximumRowsWhichCanBeRenderedWithoutScroll: [{
|
|
1669
|
-
type: Input
|
|
1670
|
-
}], includeBorderInTableHeight: [{
|
|
1671
|
-
type: Input
|
|
1672
|
-
}], downloadInProgress: [{
|
|
1673
|
-
type: Input
|
|
1674
|
-
}], percentDone: [{
|
|
1675
|
-
type: Input
|
|
1676
|
-
}], toggleCheckbox: [{
|
|
1677
|
-
type: Output
|
|
1678
|
-
}], toggleRowCheckbox: [{
|
|
1679
|
-
type: Output
|
|
1680
|
-
}], toggleHeaderCheckbox: [{
|
|
1681
|
-
type: Output
|
|
1682
|
-
}], undoIconClicked: [{
|
|
1683
|
-
type: Output
|
|
1684
|
-
}], filterAppliedToTable: [{
|
|
1685
|
-
type: Output
|
|
1686
|
-
}], sortingAppliedToTable: [{
|
|
1687
|
-
type: Output
|
|
1688
|
-
}], rowClicked: [{
|
|
1689
|
-
type: Output
|
|
1690
|
-
}], radioButtonSelected: [{
|
|
1691
|
-
type: Output
|
|
1692
|
-
}], columnFilterOpened: [{
|
|
1693
|
-
type: Output
|
|
1694
|
-
}], columnFilterClosed: [{
|
|
1695
|
-
type: Output
|
|
1696
|
-
}], gtIconClicked: [{
|
|
1697
|
-
type: Output
|
|
1698
|
-
}], gtSVGIconClicked: [{
|
|
1699
|
-
type: Output
|
|
1700
|
-
}], gtTextActionClicked: [{
|
|
1701
|
-
type: Output
|
|
1702
|
-
}], gtViewDetailClicked: [{
|
|
1703
|
-
type: Output
|
|
1704
|
-
}], downloadSpotDetails: [{
|
|
1705
|
-
type: Output
|
|
1706
|
-
}], sortComponent: [{
|
|
1707
|
-
type: ViewChildren,
|
|
1708
|
-
args: [AnnaSortComponent]
|
|
1709
|
-
}], viewChildTableHeaders: [{
|
|
1710
|
-
type: ViewChildren,
|
|
1711
|
-
args: ['tableHeader']
|
|
1712
|
-
}] } });
|
|
1713
|
-
|
|
1714
|
-
/**
|
|
1715
|
-
* @license
|
|
1716
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1717
|
-
*
|
|
1718
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1719
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1720
|
-
*/
|
|
1721
|
-
/** Checks if the given ranges are equal. */
|
|
1722
|
-
function rangesEqual(r1, r2) {
|
|
1723
|
-
return r1.start == r2.start && r1.end == r2.end;
|
|
1724
|
-
}
|
|
1725
|
-
/**
|
|
1726
|
-
* Scheduler to be used for scroll events. Needs to fall back to
|
|
1727
|
-
* something that doesn't rely on requestAnimationFrame on environments
|
|
1728
|
-
* that don't support it (e.g. server-side rendering).
|
|
1729
|
-
*/
|
|
1730
|
-
const SCROLL_SCHEDULER = typeof requestAnimationFrame !== "undefined"
|
|
1731
|
-
? animationFrameScheduler
|
|
1732
|
-
: asapScheduler;
|
|
1733
|
-
/**
|
|
1734
|
-
* A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
|
|
1735
|
-
* Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
|
|
1736
|
-
* which avoids flickering of elements in the transformed container with `position: sticky`.
|
|
1737
|
-
*/
|
|
1738
|
-
class AnnaTableVirtualScrollViewportComponent extends CdkScrollable {
|
|
1739
|
-
constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler, annaGtService) {
|
|
1740
|
-
super(elementRef, scrollDispatcher, ngZone, dir);
|
|
1741
|
-
this.elementRef = elementRef;
|
|
1742
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
1743
|
-
this._scrollStrategy = _scrollStrategy;
|
|
1744
|
-
this.annaGtService = annaGtService;
|
|
1745
|
-
/** Emits when the viewport is detached from a CdkVirtualForOf. */
|
|
1746
|
-
this._detachedSubject = new Subject();
|
|
1747
|
-
/** Emits when the rendered range changes. */
|
|
1748
|
-
this._renderedRangeSubject = new Subject();
|
|
1749
|
-
this._orientation = "vertical";
|
|
1750
|
-
// Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
|
|
1751
|
-
// strategy lazily (i.e. only if the user is actually listening to the events). We do this because
|
|
1752
|
-
// depending on how the strategy calculates the scrolled index, it may come at a cost to
|
|
1753
|
-
// performance.
|
|
1754
|
-
/** Emits when the index of the first element visible in the viewport changes. */
|
|
1755
|
-
this.scrolledIndexChange = new Observable((observer) => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));
|
|
1756
|
-
/** A stream that emits whenever the rendered range changes. */
|
|
1757
|
-
this.renderedRangeStream = this._renderedRangeSubject;
|
|
1758
|
-
/**
|
|
1759
|
-
* The total size of all content (in pixels), including content that is not currently rendered.
|
|
1760
|
-
*/
|
|
1761
|
-
this._totalContentSize = 0;
|
|
1762
|
-
/** A string representing the `style.width` property value to be used for the spacer element. */
|
|
1763
|
-
this._totalContentWidth = "";
|
|
1764
|
-
/** A string representing the `style.height` property value to be used for the spacer element. */
|
|
1765
|
-
this._totalContentHeight = "";
|
|
1766
|
-
/** The currently rendered range of indices. */
|
|
1767
|
-
this._renderedRange = { start: 0, end: 0 };
|
|
1768
|
-
/** The length of the data bound to this viewport (in number of items). */
|
|
1769
|
-
this._dataLength = 0;
|
|
1770
|
-
/** The size of the viewport (in pixels). */
|
|
1771
|
-
this._viewportSize = 0;
|
|
1772
|
-
/** The last rendered content offset that was set. */
|
|
1773
|
-
this._renderedContentOffset = 0;
|
|
1774
|
-
/**
|
|
1775
|
-
* Whether the last rendered content offset was to the end of the content (and therefore needs to
|
|
1776
|
-
* be rewritten as an offset to the start of the content).
|
|
1777
|
-
*/
|
|
1778
|
-
this._renderedContentOffsetNeedsRewrite = false;
|
|
1779
|
-
/** Whether there is a pending change detection cycle. */
|
|
1780
|
-
this._isChangeDetectionPending = false;
|
|
1781
|
-
/** A list of functions to run after the next change detection cycle. */
|
|
1782
|
-
this._runAfterChangeDetection = [];
|
|
1783
|
-
/** Subscription to changes in the viewport size. */
|
|
1784
|
-
this._viewportChanges = Subscription.EMPTY;
|
|
1785
|
-
if (!_scrollStrategy) {
|
|
1786
|
-
throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
|
|
1787
|
-
}
|
|
1788
|
-
this._viewportChanges = viewportRuler.change().subscribe(() => {
|
|
1789
|
-
this.checkViewportSize();
|
|
1790
|
-
});
|
|
1791
|
-
}
|
|
1792
|
-
/** The direction the viewport scrolls. */
|
|
1793
|
-
get orientation() {
|
|
1794
|
-
return this._orientation;
|
|
1795
|
-
}
|
|
1796
|
-
set orientation(orientation) {
|
|
1797
|
-
if (this._orientation !== orientation) {
|
|
1798
|
-
this._orientation = orientation;
|
|
1799
|
-
this._calculateSpacerSize();
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
ngOnInit() {
|
|
1803
|
-
super.ngOnInit();
|
|
1804
|
-
// It's still too early to measure the viewport at this point. Deferring with a promise allows
|
|
1805
|
-
// the Viewport to be rendered with the correct size before we measure. We run this outside the
|
|
1806
|
-
// zone to avoid causing more change detection cycles. We handle the change detection loop
|
|
1807
|
-
// ourselves instead.
|
|
1808
|
-
this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
|
|
1809
|
-
this._measureViewportSize();
|
|
1810
|
-
this._scrollStrategy.attach(this);
|
|
1811
|
-
this.elementScrolled()
|
|
1812
|
-
.pipe(
|
|
1813
|
-
// Start off with a fake scroll event so we properly detect our initial position.
|
|
1814
|
-
startWith(null),
|
|
1815
|
-
// Collect multiple events into one until the next animation frame. This way if
|
|
1816
|
-
// there are multiple scroll events in the same frame we only need to recheck
|
|
1817
|
-
// our layout once.
|
|
1818
|
-
auditTime(0, SCROLL_SCHEDULER))
|
|
1819
|
-
.subscribe(() => { this._scrollStrategy.onContentScrolled(); this.annaGtService.virtualScrollSubject.next(true); });
|
|
1820
|
-
this._markChangeDetectionNeeded();
|
|
1821
|
-
}));
|
|
1822
|
-
}
|
|
1823
|
-
ngOnDestroy() {
|
|
1824
|
-
this.detach();
|
|
1825
|
-
this._scrollStrategy.detach();
|
|
1826
|
-
// Complete all subjects
|
|
1827
|
-
this._renderedRangeSubject.complete();
|
|
1828
|
-
this._detachedSubject.complete();
|
|
1829
|
-
this._viewportChanges.unsubscribe();
|
|
1830
|
-
super.ngOnDestroy();
|
|
1831
|
-
}
|
|
1832
|
-
/** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
|
|
1833
|
-
attach(forOf) {
|
|
1834
|
-
if (this._forOf) {
|
|
1835
|
-
throw Error("CdkVirtualScrollViewport is already attached.");
|
|
1836
|
-
}
|
|
1837
|
-
// Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
|
|
1838
|
-
// changes. Run outside the zone to avoid triggering change detection, since we're managing the
|
|
1839
|
-
// change detection loop ourselves.
|
|
1840
|
-
this.ngZone.runOutsideAngular(() => {
|
|
1841
|
-
this._forOf = forOf;
|
|
1842
|
-
this._forOf.dataStream
|
|
1843
|
-
.pipe(takeUntil(this._detachedSubject))
|
|
1844
|
-
.subscribe(data => {
|
|
1845
|
-
const newLength = data.length;
|
|
1846
|
-
if (newLength !== this._dataLength) {
|
|
1847
|
-
this._dataLength = newLength;
|
|
1848
|
-
this._scrollStrategy.onDataLengthChanged();
|
|
1849
|
-
}
|
|
1850
|
-
this._doChangeDetection();
|
|
1851
|
-
});
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
/** Detaches the current `CdkVirtualForOf`. */
|
|
1855
|
-
detach() {
|
|
1856
|
-
this._forOf = null;
|
|
1857
|
-
this._detachedSubject.next();
|
|
1858
|
-
}
|
|
1859
|
-
/** Gets the length of the data bound to this viewport (in number of items). */
|
|
1860
|
-
getDataLength() {
|
|
1861
|
-
return this._dataLength;
|
|
1862
|
-
}
|
|
1863
|
-
/** Gets the size of the viewport (in pixels). */
|
|
1864
|
-
getViewportSize() {
|
|
1865
|
-
return this._viewportSize;
|
|
1866
|
-
}
|
|
1867
|
-
// TODO(mmalerba): This is technically out of sync with what's really rendered until a render
|
|
1868
|
-
// cycle happens. I'm being careful to only call it after the render cycle is complete and before
|
|
1869
|
-
// setting it to something else, but its error prone and should probably be split into
|
|
1870
|
-
// `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.
|
|
1871
|
-
/** Get the current rendered range of items. */
|
|
1872
|
-
getRenderedRange() {
|
|
1873
|
-
return this._renderedRange;
|
|
1874
|
-
}
|
|
1875
|
-
/**
|
|
1876
|
-
* Sets the total size of all content (in pixels), including content that is not currently
|
|
1877
|
-
* rendered.
|
|
1878
|
-
*/
|
|
1879
|
-
setTotalContentSize(size) {
|
|
1880
|
-
if (this._totalContentSize !== size) {
|
|
1881
|
-
this._totalContentSize = size;
|
|
1882
|
-
this._calculateSpacerSize();
|
|
1883
|
-
this._markChangeDetectionNeeded();
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
/** Sets the currently rendered range of indices. */
|
|
1887
|
-
setRenderedRange(range) {
|
|
1888
|
-
if (!rangesEqual(this._renderedRange, range)) {
|
|
1889
|
-
this._renderedRangeSubject.next((this._renderedRange = range));
|
|
1890
|
-
this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
/**
|
|
1894
|
-
* Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
|
|
1895
|
-
*/
|
|
1896
|
-
getOffsetToRenderedContentStart() {
|
|
1897
|
-
return this._renderedContentOffsetNeedsRewrite
|
|
1898
|
-
? null
|
|
1899
|
-
: this._renderedContentOffset;
|
|
1900
|
-
}
|
|
1901
|
-
/**
|
|
1902
|
-
* Sets the offset from the start of the viewport to either the start or end of the rendered data
|
|
1903
|
-
* (in pixels).
|
|
1904
|
-
*/
|
|
1905
|
-
setRenderedContentOffset(offset) {
|
|
1906
|
-
let top = `${Number(offset)}px`;
|
|
1907
|
-
this._renderedContentOffset = offset;
|
|
1908
|
-
if (this._renderedContentTransform != top) {
|
|
1909
|
-
// We know this value is safe because we parse `offset` with `Number()` before passing it
|
|
1910
|
-
// into the string.
|
|
1911
|
-
this._renderedContentTransform = top;
|
|
1912
|
-
this._markChangeDetectionNeeded(() => {
|
|
1913
|
-
if (this._renderedContentOffsetNeedsRewrite) {
|
|
1914
|
-
this._renderedContentOffset -= this.measureRenderedContentSize();
|
|
1915
|
-
this._renderedContentOffsetNeedsRewrite = false;
|
|
1916
|
-
this.setRenderedContentOffset(this._renderedContentOffset);
|
|
1917
|
-
}
|
|
1918
|
-
else {
|
|
1919
|
-
this._scrollStrategy.onRenderedOffsetChanged();
|
|
1920
|
-
}
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
/**
|
|
1925
|
-
* Scrolls to the given offset from the start of the viewport. Please note that this is not always
|
|
1926
|
-
* the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
|
|
1927
|
-
* direction, this would be the equivalent of setting a fictional `scrollRight` property.
|
|
1928
|
-
* @param offset The offset to scroll to.
|
|
1929
|
-
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
1930
|
-
*/
|
|
1931
|
-
scrollToOffset(offset, behavior = "auto") {
|
|
1932
|
-
const options = { behavior, top: offset };
|
|
1933
|
-
this.scrollTo(options);
|
|
1934
|
-
}
|
|
1935
|
-
/**
|
|
1936
|
-
* Scrolls to the offset for the given index.
|
|
1937
|
-
* @param index The index of the element to scroll to.
|
|
1938
|
-
* @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
|
|
1939
|
-
*/
|
|
1940
|
-
scrollToIndex(index, behavior = "auto") {
|
|
1941
|
-
this._scrollStrategy.scrollToIndex(index, behavior);
|
|
1942
|
-
}
|
|
1943
|
-
/**
|
|
1944
|
-
* Gets the current scroll offset from the start of the viewport (in pixels).
|
|
1945
|
-
* @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
|
|
1946
|
-
* in horizontal mode.
|
|
1947
|
-
*/
|
|
1948
|
-
// CHANGES@ANNALIB added override to functions
|
|
1949
|
-
measureScrollOffset(from) {
|
|
1950
|
-
return from
|
|
1951
|
-
? super.measureScrollOffset(from)
|
|
1952
|
-
: super.measureScrollOffset("top");
|
|
1953
|
-
}
|
|
1954
|
-
/** Measure the combined size of all of the rendered items. */
|
|
1955
|
-
measureRenderedContentSize() {
|
|
1956
|
-
const contentEl = this._contentWrapper.nativeElement;
|
|
1957
|
-
return contentEl.offsetHeight;
|
|
1958
|
-
}
|
|
1959
|
-
/**
|
|
1960
|
-
* Measure the total combined size of the given range. Throws if the range includes items that are
|
|
1961
|
-
* not rendered.
|
|
1962
|
-
*/
|
|
1963
|
-
measureRangeSize(range) {
|
|
1964
|
-
if (!this._forOf) {
|
|
1965
|
-
return 0;
|
|
1966
|
-
}
|
|
1967
|
-
return this._forOf.measureRangeSize(range, this.orientation);
|
|
1968
|
-
}
|
|
1969
|
-
/** Update the viewport dimensions and re-render. */
|
|
1970
|
-
checkViewportSize() {
|
|
1971
|
-
// TODO: Cleanup later when add logic for handling content resize
|
|
1972
|
-
this._measureViewportSize();
|
|
1973
|
-
this._scrollStrategy.onDataLengthChanged();
|
|
1974
|
-
}
|
|
1975
|
-
/** Measure the viewport size. */
|
|
1976
|
-
_measureViewportSize() {
|
|
1977
|
-
const viewportEl = this.elementRef.nativeElement;
|
|
1978
|
-
this._viewportSize = viewportEl.clientHeight;
|
|
1979
|
-
}
|
|
1980
|
-
/** Queue up change detection to run. */
|
|
1981
|
-
_markChangeDetectionNeeded(runAfter) {
|
|
1982
|
-
if (runAfter) {
|
|
1983
|
-
this._runAfterChangeDetection.push(runAfter);
|
|
1984
|
-
}
|
|
1985
|
-
// Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
|
|
1986
|
-
// properties sequentially we only have to run `_doChangeDetection` once at the end.
|
|
1987
|
-
if (!this._isChangeDetectionPending) {
|
|
1988
|
-
this._isChangeDetectionPending = true;
|
|
1989
|
-
this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {
|
|
1990
|
-
this._doChangeDetection();
|
|
1991
|
-
}));
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
/** Run change detection. */
|
|
1995
|
-
_doChangeDetection() {
|
|
1996
|
-
this._isChangeDetectionPending = false;
|
|
1997
|
-
// Apply the content transform. The transform can't be set via an Angular binding because
|
|
1998
|
-
// bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
|
|
1999
|
-
// string literals, a variable that can only be 'X' or 'Y', and user input that is run through
|
|
2000
|
-
// the `Number` function first to coerce it to a numeric value.
|
|
2001
|
-
this._contentWrapper.nativeElement.style.top = this._renderedContentTransform;
|
|
2002
|
-
// Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection
|
|
2003
|
-
// from the root, since the repeated items are content projected in. Calling `detectChanges`
|
|
2004
|
-
// instead does not properly check the projected content.
|
|
2005
|
-
this.ngZone.run(() => this._changeDetectorRef.markForCheck());
|
|
2006
|
-
const runAfterChangeDetection = this._runAfterChangeDetection;
|
|
2007
|
-
this._runAfterChangeDetection = [];
|
|
2008
|
-
for (const fn of runAfterChangeDetection) {
|
|
2009
|
-
fn();
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
/** Calculates the `style.width` and `style.height` for the spacer element. */
|
|
2013
|
-
_calculateSpacerSize() {
|
|
2014
|
-
this._totalContentHeight = `${this._totalContentSize}px`;
|
|
2015
|
-
this._totalContentWidth = "";
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
AnnaTableVirtualScrollViewportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i1$1.Directionality, optional: true }, { token: i2$1.ScrollDispatcher }, { token: i2$1.ViewportRuler }, { token: i1.AnnaGenericTableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2019
|
-
AnnaTableVirtualScrollViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: AnnaTableVirtualScrollViewportComponent, selector: "anna-table-virtual-scroll-viewport", inputs: { orientation: "orientation" }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, host: { properties: { "class.anna-table-virtual-scroll-orientation-horizontal": "orientation === \"horizontal\"", "class.anna-table-virtual-scroll-orientation-vertical": "orientation !== \"horizontal\"" }, classAttribute: "anna-table-virtual-scroll-viewport" }, providers: [
|
|
2020
|
-
{
|
|
2021
|
-
provide: CdkScrollable,
|
|
2022
|
-
useExisting: AnnaTableVirtualScrollViewportComponent
|
|
2023
|
-
},
|
|
2024
|
-
{
|
|
2025
|
-
provide: CdkVirtualScrollViewport,
|
|
2026
|
-
useExisting: AnnaTableVirtualScrollViewportComponent
|
|
2027
|
-
}
|
|
2028
|
-
], viewQueries: [{ propertyName: "_contentWrapper", first: true, predicate: ["contentWrapper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!--\r\n Wrap the rendered content in an element that will be used to offset it based on the scroll\r\n position.\r\n-->\r\n<div #contentWrapper class=\"anna-table-virtual-scroll-content-wrapper\">\r\n\t<ng-content></ng-content>\r\n</div>\r\n<!--\r\n Spacer used to force the scrolling container to the correct size for the *total* number of items\r\n so that the scrollbar captures the size of the entire data set.\r\n-->\r\n<div class=\"app-table-virtual-scroll-spacer\" [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\">\r\n</div>", styles: ["anna-table-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;will-change:scroll-position;-webkit-overflow-scrolling:touch}.anna-table-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .anna-table-virtual-scroll-content-wrapper{right:0;left:auto}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper{min-height:100%}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper{min-width:100%}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.app-table-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .app-table-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaTableVirtualScrollViewportComponent, decorators: [{
|
|
2030
|
-
type: Component,
|
|
2031
|
-
args: [{ selector: "anna-table-virtual-scroll-viewport", host: {
|
|
2032
|
-
class: "anna-table-virtual-scroll-viewport",
|
|
2033
|
-
"[class.anna-table-virtual-scroll-orientation-horizontal]": 'orientation === "horizontal"',
|
|
2034
|
-
"[class.anna-table-virtual-scroll-orientation-vertical]": 'orientation !== "horizontal"'
|
|
2035
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
2036
|
-
{
|
|
2037
|
-
provide: CdkScrollable,
|
|
2038
|
-
useExisting: AnnaTableVirtualScrollViewportComponent
|
|
2039
|
-
},
|
|
2040
|
-
{
|
|
2041
|
-
provide: CdkVirtualScrollViewport,
|
|
2042
|
-
useExisting: AnnaTableVirtualScrollViewportComponent
|
|
2043
|
-
}
|
|
2044
|
-
], template: "<!--\r\n Wrap the rendered content in an element that will be used to offset it based on the scroll\r\n position.\r\n-->\r\n<div #contentWrapper class=\"anna-table-virtual-scroll-content-wrapper\">\r\n\t<ng-content></ng-content>\r\n</div>\r\n<!--\r\n Spacer used to force the scrolling container to the correct size for the *total* number of items\r\n so that the scrollbar captures the size of the entire data set.\r\n-->\r\n<div class=\"app-table-virtual-scroll-spacer\" [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\">\r\n</div>", styles: ["anna-table-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;will-change:scroll-position;-webkit-overflow-scrolling:touch}.anna-table-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .anna-table-virtual-scroll-content-wrapper{right:0;left:auto}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper{min-height:100%}.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-horizontal .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper{min-width:100%}.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.app-table-virtual-scroll-orientation-vertical .anna-table-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.app-table-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .app-table-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"] }]
|
|
2045
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
2046
|
-
type: Optional
|
|
2047
|
-
}, {
|
|
2048
|
-
type: Inject,
|
|
2049
|
-
args: [VIRTUAL_SCROLL_STRATEGY]
|
|
2050
|
-
}] }, { type: i1$1.Directionality, decorators: [{
|
|
2051
|
-
type: Optional
|
|
2052
|
-
}] }, { type: i2$1.ScrollDispatcher }, { type: i2$1.ViewportRuler }, { type: i1.AnnaGenericTableService }]; }, propDecorators: { orientation: [{
|
|
2053
|
-
type: Input
|
|
2054
|
-
}], scrolledIndexChange: [{
|
|
2055
|
-
type: Output
|
|
2056
|
-
}], _contentWrapper: [{
|
|
2057
|
-
type: ViewChild,
|
|
2058
|
-
args: ["contentWrapper", { static: true }]
|
|
2059
|
-
}] } });
|
|
2060
|
-
|
|
2061
|
-
/**
|
|
2062
|
-
* A custom scroll strategy that accepts a static row height, static header height,
|
|
2063
|
-
* and a buffer size. The strategy
|
|
2064
|
-
*/
|
|
2065
|
-
class AnnaFixedRowSizeTableVirtualScrollStrategy {
|
|
2066
|
-
constructor(rowHeight, buffer, headerHeight) {
|
|
2067
|
-
this._scrolledIndexChange = new Subject();
|
|
2068
|
-
this.scrolledIndexChange = this._scrolledIndexChange.pipe(distinctUntilChanged());
|
|
2069
|
-
this.updateRowHeightAndBuffer(rowHeight, buffer, headerHeight);
|
|
2070
|
-
}
|
|
2071
|
-
/**
|
|
2072
|
-
* Attaches this scroll strategy to a viewport.
|
|
2073
|
-
* @param viewport The viewport to attach this strategy to.
|
|
2074
|
-
*/
|
|
2075
|
-
attach(viewport) {
|
|
2076
|
-
this.viewport = viewport;
|
|
2077
|
-
this.updateTotalContentSize();
|
|
2078
|
-
this.updateRenderedRange();
|
|
2079
|
-
}
|
|
2080
|
-
/**
|
|
2081
|
-
* Detaches this scroll strategy from the currently attached viewport.
|
|
2082
|
-
*/
|
|
2083
|
-
detach() {
|
|
2084
|
-
this._scrolledIndexChange.complete();
|
|
2085
|
-
this.viewport = null;
|
|
2086
|
-
}
|
|
2087
|
-
onContentScrolled() {
|
|
2088
|
-
this.updateRenderedRange();
|
|
2089
|
-
}
|
|
2090
|
-
onDataLengthChanged() {
|
|
2091
|
-
this.updateTotalContentSize();
|
|
2092
|
-
this.updateRenderedRange();
|
|
2093
|
-
}
|
|
2094
|
-
onContentRendered() {
|
|
2095
|
-
// This method is useful for virtual scroll strategies that measure the rendered
|
|
2096
|
-
// content to determine its height. This scroll strategy assumes that rows have
|
|
2097
|
-
// a static height, so there's no need to implement this method.
|
|
2098
|
-
}
|
|
2099
|
-
onRenderedOffsetChanged() {
|
|
2100
|
-
// Similar to onContentRendered, this method is useful for virtual scroll strategies
|
|
2101
|
-
// that need to track the offset as it changes. This scroll strategy is always able
|
|
2102
|
-
// to calculate the correct offset from other values, so there's no need to implement
|
|
2103
|
-
// this method.
|
|
2104
|
-
}
|
|
2105
|
-
scrollToIndex(index, behavior) {
|
|
2106
|
-
this.viewport?.scrollToOffset(index * this.rowHeight, behavior);
|
|
2107
|
-
}
|
|
2108
|
-
/**
|
|
2109
|
-
* Update the item size and buffer size.
|
|
2110
|
-
* @param rowHeight The height of a row in the virtually scrolling table.
|
|
2111
|
-
* @param buffer The number of rows to buffer outside the viewport.
|
|
2112
|
-
* @param headerHeight The total height of the table header, including all header rows.
|
|
2113
|
-
*/
|
|
2114
|
-
updateRowHeightAndBuffer(rowHeight, buffer, headerHeight) {
|
|
2115
|
-
this.rowHeight = rowHeight;
|
|
2116
|
-
this.buffer = buffer;
|
|
2117
|
-
this.headerHeight = headerHeight;
|
|
2118
|
-
this.updateTotalContentSize();
|
|
2119
|
-
this.updateRenderedRange();
|
|
2120
|
-
}
|
|
2121
|
-
updateRenderedRange() {
|
|
2122
|
-
if (!this.viewport) {
|
|
2123
|
-
return;
|
|
2124
|
-
}
|
|
2125
|
-
const viewportSize = this.viewport.getViewportSize();
|
|
2126
|
-
const dataLength = this.viewport.getDataLength();
|
|
2127
|
-
const scrollOffset = this.viewport.measureScrollOffset();
|
|
2128
|
-
// the index of the first item that would be at least partially visible in the viewport
|
|
2129
|
-
let firstVisibleIndex = Math.floor((scrollOffset + this.headerHeight) / this.rowHeight);
|
|
2130
|
-
// if the buffer size is 10 but the first visible item is at, say, index 7
|
|
2131
|
-
// then the buffered items must be 7, because we don't have 10 items available to buffer.
|
|
2132
|
-
const bufferedItems = Math.min(AnnaFilterService.bufferSize, firstVisibleIndex);
|
|
2133
|
-
const itemsInViewport = Math.ceil(viewportSize / this.rowHeight);
|
|
2134
|
-
const itemsToRender = itemsInViewport + this.buffer;
|
|
2135
|
-
// Clamp the new range between 0 and dataLength
|
|
2136
|
-
const newStart = Math.max(0, firstVisibleIndex - bufferedItems);
|
|
2137
|
-
const newEnd = Math.min(dataLength, firstVisibleIndex + itemsToRender);
|
|
2138
|
-
const newRange = {
|
|
2139
|
-
start: newStart,
|
|
2140
|
-
end: newEnd
|
|
2141
|
-
};
|
|
2142
|
-
const newOffset = this.rowHeight * (firstVisibleIndex - bufferedItems);
|
|
2143
|
-
this.viewport.setRenderedContentOffset(newOffset);
|
|
2144
|
-
this.viewport.setRenderedRange(newRange);
|
|
2145
|
-
this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));
|
|
2146
|
-
}
|
|
2147
|
-
updateTotalContentSize() {
|
|
2148
|
-
this.viewport?.setTotalContentSize(this.viewport.getDataLength() * this.rowHeight);
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
/**
|
|
2152
|
-
* Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
|
|
2153
|
-
* `FixedSizeVirtualScrollStrategy` from the given directive.
|
|
2154
|
-
* @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
|
|
2155
|
-
* `FixedSizeVirtualScrollStrategy` from.
|
|
2156
|
-
*/
|
|
2157
|
-
function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {
|
|
2158
|
-
return fixedSizeDir.scrollStrategy;
|
|
2159
|
-
}
|
|
2160
|
-
class AnnaFixedRowSizeTableVirtualScrollStrategyDirective {
|
|
2161
|
-
constructor() {
|
|
2162
|
-
this._rowHeight = 30;
|
|
2163
|
-
this._headerRowHeight = 30;
|
|
2164
|
-
this._buffer = 20;
|
|
2165
|
-
this._headerRows = null;
|
|
2166
|
-
this.headerRowCount = 1;
|
|
2167
|
-
/** The scroll strategy used by this directive. */
|
|
2168
|
-
this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
|
|
2169
|
-
}
|
|
2170
|
-
/** The height of rows in the table (in pixels). Defaults to 30. */
|
|
2171
|
-
set rowHeight(value) { this._rowHeight = coerceNumberProperty(value); }
|
|
2172
|
-
get rowHeight() { return this._rowHeight; }
|
|
2173
|
-
/**
|
|
2174
|
-
* The height of header rows in the table (in pixels). Defaults to 30.
|
|
2175
|
-
*/
|
|
2176
|
-
set headerRowHeight(value) { this._headerRowHeight = coerceNumberProperty(value); }
|
|
2177
|
-
get headerRowHeight() { return this._headerRowHeight; }
|
|
2178
|
-
/**
|
|
2179
|
-
* The number of buffered rows rendered beyond the viewport.
|
|
2180
|
-
* If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
|
|
2181
|
-
*/
|
|
2182
|
-
set buffer(value) {
|
|
2183
|
-
this._buffer = coerceNumberProperty(value);
|
|
2184
|
-
}
|
|
2185
|
-
get buffer() { return this._buffer; }
|
|
2186
|
-
set headerRows(value) { this._headerRows = coerceNumberProperty(value, undefined); }
|
|
2187
|
-
get headerRows() { return this._headerRows; }
|
|
2188
|
-
ngOnChanges(change) {
|
|
2189
|
-
if (this.headerRows != undefined || this.headerRowsQuery) {
|
|
2190
|
-
this.handleChange();
|
|
2191
|
-
}
|
|
2192
|
-
if (change['buffer']?.previousValue != change['buffer']?.currentValue) {
|
|
2193
|
-
AnnaFilterService.bufferSize = this.buffer;
|
|
2194
|
-
this.scrollStrategy = new AnnaFixedRowSizeTableVirtualScrollStrategy(this.rowHeight, this.buffer, this.headerRowHeight * this.headerRowCount);
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
ngAfterContentInit() {
|
|
2198
|
-
this.headerRowsQuery.changes.subscribe(() => {
|
|
2199
|
-
this.handleChange();
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
handleChange() {
|
|
2203
|
-
this.scrollStrategy.updateRowHeightAndBuffer(this.rowHeight, this.buffer,
|
|
2204
|
-
// Use the explicit headerRows input value if set.
|
|
2205
|
-
// Otherwise, fall back to the QueryList length.
|
|
2206
|
-
this.headerRowHeight * (this._headerRows ?? this.headerRowsQuery.length));
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
AnnaFixedRowSizeTableVirtualScrollStrategyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2210
|
-
AnnaFixedRowSizeTableVirtualScrollStrategyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", inputs: { rowHeight: "rowHeight", headerRowHeight: "headerRowHeight", buffer: "buffer", headerRows: "headerRows" }, providers: [
|
|
2211
|
-
{
|
|
2212
|
-
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
2213
|
-
useFactory: fixedSizeVirtualScrollStrategyFactory,
|
|
2214
|
-
deps: [forwardRef(() => AnnaFixedRowSizeTableVirtualScrollStrategyDirective)]
|
|
2215
|
-
}
|
|
2216
|
-
], queries: [{ propertyName: "headerRowsQuery", predicate: MatHeaderRowDef }], usesOnChanges: true, ngImport: i0 });
|
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaFixedRowSizeTableVirtualScrollStrategyDirective, decorators: [{
|
|
2218
|
-
type: Directive,
|
|
2219
|
-
args: [{
|
|
2220
|
-
selector: "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]",
|
|
2221
|
-
providers: [
|
|
2222
|
-
{
|
|
2223
|
-
provide: VIRTUAL_SCROLL_STRATEGY,
|
|
2224
|
-
useFactory: fixedSizeVirtualScrollStrategyFactory,
|
|
2225
|
-
deps: [forwardRef(() => AnnaFixedRowSizeTableVirtualScrollStrategyDirective)]
|
|
2226
|
-
}
|
|
2227
|
-
]
|
|
2228
|
-
}]
|
|
2229
|
-
}], propDecorators: { rowHeight: [{
|
|
2230
|
-
type: Input
|
|
2231
|
-
}], headerRowHeight: [{
|
|
2232
|
-
type: Input
|
|
2233
|
-
}], buffer: [{
|
|
2234
|
-
type: Input
|
|
2235
|
-
}], headerRows: [{
|
|
2236
|
-
type: Input
|
|
2237
|
-
}], headerRowsQuery: [{
|
|
2238
|
-
type: ContentChildren,
|
|
2239
|
-
args: [MatHeaderRowDef]
|
|
2240
|
-
}] } });
|
|
2241
|
-
|
|
2242
|
-
/**
|
|
2243
|
-
* Directive that wraps a given data source in a "virtual" data source that emits
|
|
2244
|
-
* the slice of the original data source that matches the range that should be rendered
|
|
2245
|
-
* in the containing virtual scroll viewport.
|
|
2246
|
-
*/
|
|
2247
|
-
class AnnaVirtualTableDirective {
|
|
2248
|
-
constructor(elementRef, viewport, table, ngZone, _coalescedStyleScheduler) {
|
|
2249
|
-
this.viewport = viewport;
|
|
2250
|
-
this.table = table;
|
|
2251
|
-
this._coalescedStyleScheduler = _coalescedStyleScheduler;
|
|
2252
|
-
this.virtualizedDataStream = new Subject();
|
|
2253
|
-
this.dataSourceChanges = new Subject();
|
|
2254
|
-
/** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
|
|
2255
|
-
this.dataStream = this.dataSourceChanges
|
|
2256
|
-
.pipe(
|
|
2257
|
-
// Start off with null data source.
|
|
2258
|
-
startWith(null),
|
|
2259
|
-
// Bundle up the previous and current data sources so we can work with both.
|
|
2260
|
-
pairwise(),
|
|
2261
|
-
// Use `changeDataSource` to disconnect from the previous data source and connect to the
|
|
2262
|
-
// new one, passing back a stream of data changes which we run through `switchMap` to give
|
|
2263
|
-
// us a data stream that emits the latest data from whatever the current data source is.
|
|
2264
|
-
switchMap(([prev, cur]) => this.changeDataSource(prev, cur)),
|
|
2265
|
-
// Replay the last emitted data when someone subscribes.
|
|
2266
|
-
shareReplay(1));
|
|
2267
|
-
this.viewChange = new Subject();
|
|
2268
|
-
this.destroyed$ = new Subject();
|
|
2269
|
-
this.renderedRange = { start: 0, end: 0 };
|
|
2270
|
-
this.isNativeHtmlTable = false;
|
|
2271
|
-
table.dataSource = this.virtualizedDataStream;
|
|
2272
|
-
this.isNativeHtmlTable = elementRef.nativeElement.tagName === 'TABLE';
|
|
2273
|
-
this.dataStream.subscribe(data => {
|
|
2274
|
-
this.data = data;
|
|
2275
|
-
this.onRenderedDataChange();
|
|
2276
|
-
});
|
|
2277
|
-
viewport.renderedRangeStream.pipe(takeUntil(this.destroyed$)).subscribe((range) => {
|
|
2278
|
-
this.renderedRange = range;
|
|
2279
|
-
ngZone.run(() => this.viewChange.next(range));
|
|
2280
|
-
this.onRenderedDataChange();
|
|
2281
|
-
});
|
|
2282
|
-
viewport.attach(this);
|
|
2283
|
-
}
|
|
2284
|
-
set dataSource(value) {
|
|
2285
|
-
this._dataSource = value;
|
|
2286
|
-
if (isDataSource(value)) {
|
|
2287
|
-
this.dataSourceChanges.next(value);
|
|
2288
|
-
}
|
|
2289
|
-
else {
|
|
2290
|
-
this.dataSourceChanges.next(new ArrayDataSource(isObservable(value) ? value : Array.from(value || [])));
|
|
2291
|
-
}
|
|
2292
|
-
}
|
|
2293
|
-
get dataSource() {
|
|
2294
|
-
return this._dataSource;
|
|
2295
|
-
}
|
|
2296
|
-
ngOnInit() {
|
|
2297
|
-
// This is just a proof of concept, but the AnnaTableVirtualScrollViewportComponent uses `position: absolute` and `top: #px` instead of `transform: translateY(#px)` to position the viewport.
|
|
2298
|
-
// This removes the need to account for the translation in the `top` of the sticky header rows.
|
|
2299
|
-
if (this.viewport instanceof AnnaTableVirtualScrollViewportComponent) {
|
|
2300
|
-
return;
|
|
2301
|
-
}
|
|
2302
|
-
this.viewport.scrolledIndexChange
|
|
2303
|
-
.pipe(map$1(() => this.viewport.getOffsetToRenderedContentStart()), takeUntil(this.destroyed$))
|
|
2304
|
-
.subscribe((offset) => {
|
|
2305
|
-
// We need to set the `style.top` property of the sticky header rows
|
|
2306
|
-
// to the negative value of the virtual scroll viewport's offset, so
|
|
2307
|
-
// make the offset negative.
|
|
2308
|
-
offset = -offset;
|
|
2309
|
-
const stickyStates = this.headerRowDefs.map(rowDef => rowDef.sticky);
|
|
2310
|
-
// This logic is exactly the same as what's in the StickyStyler (literally copy + paste).
|
|
2311
|
-
// The only difference is that the `stickyOffset` variable starts at the virtual scroll
|
|
2312
|
-
// viewport container's offset instead of starting at zero.
|
|
2313
|
-
const rows = this.table._getRenderedRows(this.table._headerRowOutlet);
|
|
2314
|
-
const stickyOffsets = [];
|
|
2315
|
-
const stickyCellHeights = [];
|
|
2316
|
-
const elementsToStick = [];
|
|
2317
|
-
for (let rowIndex = 0, stickyOffset = offset; rowIndex < rows.length; rowIndex++) {
|
|
2318
|
-
stickyOffsets[rowIndex] = stickyOffset;
|
|
2319
|
-
if (!stickyStates[rowIndex]) {
|
|
2320
|
-
continue;
|
|
2321
|
-
}
|
|
2322
|
-
const row = rows[rowIndex];
|
|
2323
|
-
elementsToStick[rowIndex] = this.isNativeHtmlTable ? Array.from(row.children) : [row];
|
|
2324
|
-
const height = row.getBoundingClientRect().height;
|
|
2325
|
-
stickyOffset += height;
|
|
2326
|
-
stickyCellHeights[rowIndex] = height;
|
|
2327
|
-
}
|
|
2328
|
-
// Using the CoalescedStyleScheduler here is optional. It'll work without it,
|
|
2329
|
-
// and CoalescedStyleScheduler is not public (yet?), so feel free to remove it.
|
|
2330
|
-
this._coalescedStyleScheduler.schedule(() => {
|
|
2331
|
-
for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
|
|
2332
|
-
if (!stickyStates[rowIndex]) {
|
|
2333
|
-
continue;
|
|
2334
|
-
}
|
|
2335
|
-
for (const element of elementsToStick[rowIndex]) {
|
|
2336
|
-
element.style.top = `${stickyOffsets[rowIndex]}px`;
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
});
|
|
2340
|
-
});
|
|
2341
|
-
}
|
|
2342
|
-
ngOnDestroy() {
|
|
2343
|
-
this.destroyed$.next();
|
|
2344
|
-
this.dataSourceChanges.complete();
|
|
2345
|
-
this.virtualizedDataStream.complete();
|
|
2346
|
-
}
|
|
2347
|
-
/** React to scroll state changes in the viewport. */
|
|
2348
|
-
onRenderedDataChange() {
|
|
2349
|
-
if (!this.renderedRange) {
|
|
2350
|
-
return;
|
|
2351
|
-
}
|
|
2352
|
-
this.renderedItems = this.data.slice(this.renderedRange.start, this.renderedRange.end + 1);
|
|
2353
|
-
// delegate rendering to the table by emitting from the virtualizedDataStream
|
|
2354
|
-
this.virtualizedDataStream.next(this.renderedItems);
|
|
2355
|
-
}
|
|
2356
|
-
/** Swap out one data source for another. */
|
|
2357
|
-
changeDataSource(oldDataSource, newDs) {
|
|
2358
|
-
oldDataSource?.disconnect(this);
|
|
2359
|
-
return newDs ? newDs.connect(this) : of();
|
|
2360
|
-
}
|
|
2361
|
-
/**
|
|
2362
|
-
* This method is only used by the experimental AutoSizeVirtualScrollStrategy.
|
|
2363
|
-
* We're not using that strategy, but I've implemented it just to show how it oculd be done.
|
|
2364
|
-
* I'm not actually sure if this works.
|
|
2365
|
-
*/
|
|
2366
|
-
measureRangeSize(range, orientation) {
|
|
2367
|
-
if (orientation === 'horizontal' || range.end < range.start) {
|
|
2368
|
-
// virtual scrolling columns are not supported by this directive
|
|
2369
|
-
return 0;
|
|
2370
|
-
}
|
|
2371
|
-
const renderedBodyRows = this.table._getRenderedRows(this.table._rowOutlet);
|
|
2372
|
-
const firstRow = renderedBodyRows[range.start];
|
|
2373
|
-
const lastRow = renderedBodyRows[range.end];
|
|
2374
|
-
if (!firstRow || !lastRow) {
|
|
2375
|
-
return 0;
|
|
2376
|
-
}
|
|
2377
|
-
// We need to include all header and footer rows in the sum, since they're always rendered
|
|
2378
|
-
const renderedHeaderRows = this.table._getRenderedRows(this.table._headerRowOutlet);
|
|
2379
|
-
const renderedFooterRows = this.table._getRenderedRows(this.table._footerRowOutlet);
|
|
2380
|
-
// TODO (performance): Can we just measure the offset of the first and last items and do some math to avoid having to measure each row individually?
|
|
2381
|
-
const headerHeight = renderedHeaderRows.reduce((sum, row) => {
|
|
2382
|
-
return sum += row.getBoundingClientRect().height;
|
|
2383
|
-
}, 0);
|
|
2384
|
-
const footerHeight = renderedFooterRows.reduce((sum, row) => {
|
|
2385
|
-
return sum += row.getBoundingClientRect().height;
|
|
2386
|
-
}, 0);
|
|
2387
|
-
const bodyHeight = lastRow.getBoundingClientRect().bottom - firstRow.getBoundingClientRect().top;
|
|
2388
|
-
return headerHeight + footerHeight + bodyHeight;
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
AnnaVirtualTableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaVirtualTableDirective, deps: [{ token: i0.ElementRef }, { token: i2$1.CdkVirtualScrollViewport }, { token: i2$2.CdkTable }, { token: i0.NgZone }, { token: _COALESCED_STYLE_SCHEDULER }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2392
|
-
AnnaVirtualTableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: AnnaVirtualTableDirective, selector: "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", inputs: { dataSource: ["appVirtualDataSource", "dataSource"] }, providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }], queries: [{ propertyName: "headerRowDefs", predicate: CdkHeaderRowDef }], ngImport: i0 });
|
|
2393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaVirtualTableDirective, decorators: [{
|
|
2394
|
-
type: Directive,
|
|
2395
|
-
args: [{
|
|
2396
|
-
selector: '[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]',
|
|
2397
|
-
providers: [{ provide: STICKY_POSITIONING_LISTENER, useExisting: AnnaVirtualTableDirective }]
|
|
2398
|
-
}]
|
|
2399
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2$1.CdkVirtualScrollViewport }, { type: i2$2.CdkTable }, { type: i0.NgZone }, { type: i2$2._CoalescedStyleScheduler, decorators: [{
|
|
2400
|
-
type: Inject,
|
|
2401
|
-
args: [_COALESCED_STYLE_SCHEDULER]
|
|
2402
|
-
}] }]; }, propDecorators: { dataSource: [{
|
|
2403
|
-
type: Input,
|
|
2404
|
-
args: ['appVirtualDataSource']
|
|
2405
|
-
}], headerRowDefs: [{
|
|
2406
|
-
type: ContentChildren,
|
|
2407
|
-
args: [CdkHeaderRowDef]
|
|
2408
|
-
}] } });
|
|
2409
|
-
|
|
2410
|
-
// Angular import statements
|
|
2411
|
-
class AnnaGenericTableLibModule {
|
|
2412
|
-
}
|
|
2413
|
-
AnnaGenericTableLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaGenericTableLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2414
|
-
AnnaGenericTableLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaGenericTableLibModule, declarations: [AnnaNonEditableGenericTableComponent,
|
|
2415
|
-
AnnaSortComponent,
|
|
2416
|
-
AnnaTableVirtualScrollViewportComponent,
|
|
2417
|
-
AnnaFixedRowSizeTableVirtualScrollStrategyDirective,
|
|
2418
|
-
AnnaVirtualTableDirective], imports: [CommonModule,
|
|
2419
|
-
NgbModule,
|
|
2420
|
-
AnnaDropdownLibModule,
|
|
2421
|
-
MatButtonToggleModule,
|
|
2422
|
-
FormsModule,
|
|
2423
|
-
NgxSliderModule,
|
|
2424
|
-
NgxSkeletonLoaderModule,
|
|
2425
|
-
MatTableModule,
|
|
2426
|
-
MatRadioModule,
|
|
2427
|
-
AnnaCoreSharedLibModule, i9.NgCircleProgressModule], exports: [AnnaNonEditableGenericTableComponent,
|
|
2428
|
-
AnnaSortComponent,
|
|
2429
|
-
AnnaTableVirtualScrollViewportComponent,
|
|
2430
|
-
AnnaFixedRowSizeTableVirtualScrollStrategyDirective,
|
|
2431
|
-
AnnaVirtualTableDirective] });
|
|
2432
|
-
AnnaGenericTableLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaGenericTableLibModule, imports: [[
|
|
2433
|
-
CommonModule,
|
|
2434
|
-
NgbModule,
|
|
2435
|
-
AnnaDropdownLibModule,
|
|
2436
|
-
MatButtonToggleModule,
|
|
2437
|
-
FormsModule,
|
|
2438
|
-
NgxSliderModule,
|
|
2439
|
-
NgxSkeletonLoaderModule,
|
|
2440
|
-
MatTableModule,
|
|
2441
|
-
MatRadioModule,
|
|
2442
|
-
AnnaCoreSharedLibModule,
|
|
2443
|
-
NgCircleProgressModule.forRoot({
|
|
2444
|
-
radius: 100,
|
|
2445
|
-
outerStrokeWidth: 16,
|
|
2446
|
-
innerStrokeWidth: 8,
|
|
2447
|
-
outerStrokeColor: '#78C000',
|
|
2448
|
-
innerStrokeColor: '#C7E596',
|
|
2449
|
-
animationDuration: 300,
|
|
2450
|
-
}),
|
|
2451
|
-
]] });
|
|
2452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaGenericTableLibModule, decorators: [{
|
|
2453
|
-
type: NgModule,
|
|
2454
|
-
args: [{
|
|
2455
|
-
declarations: [
|
|
2456
|
-
AnnaNonEditableGenericTableComponent,
|
|
2457
|
-
AnnaSortComponent,
|
|
2458
|
-
AnnaTableVirtualScrollViewportComponent,
|
|
2459
|
-
AnnaFixedRowSizeTableVirtualScrollStrategyDirective,
|
|
2460
|
-
AnnaVirtualTableDirective,
|
|
2461
|
-
],
|
|
2462
|
-
imports: [
|
|
2463
|
-
CommonModule,
|
|
2464
|
-
NgbModule,
|
|
2465
|
-
AnnaDropdownLibModule,
|
|
2466
|
-
MatButtonToggleModule,
|
|
2467
|
-
FormsModule,
|
|
2468
|
-
NgxSliderModule,
|
|
2469
|
-
NgxSkeletonLoaderModule,
|
|
2470
|
-
MatTableModule,
|
|
2471
|
-
MatRadioModule,
|
|
2472
|
-
AnnaCoreSharedLibModule,
|
|
2473
|
-
NgCircleProgressModule.forRoot({
|
|
2474
|
-
radius: 100,
|
|
2475
|
-
outerStrokeWidth: 16,
|
|
2476
|
-
innerStrokeWidth: 8,
|
|
2477
|
-
outerStrokeColor: '#78C000',
|
|
2478
|
-
innerStrokeColor: '#C7E596',
|
|
2479
|
-
animationDuration: 300,
|
|
2480
|
-
}),
|
|
2481
|
-
],
|
|
2482
|
-
exports: [
|
|
2483
|
-
AnnaNonEditableGenericTableComponent,
|
|
2484
|
-
AnnaSortComponent,
|
|
2485
|
-
AnnaTableVirtualScrollViewportComponent,
|
|
2486
|
-
AnnaFixedRowSizeTableVirtualScrollStrategyDirective,
|
|
2487
|
-
AnnaVirtualTableDirective
|
|
2488
|
-
]
|
|
2489
|
-
}]
|
|
2490
|
-
}] });
|
|
2491
|
-
|
|
2492
|
-
//Modules
|
|
2493
|
-
|
|
2494
|
-
/**
|
|
2495
|
-
* Generated bundle index. Do not edit.
|
|
2496
|
-
*/
|
|
2497
|
-
|
|
2498
|
-
export { AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGenericTableLibModule, AnnaNonEditableGenericTableComponent, AnnaSortComponent, AnnaTableVirtualScrollViewportComponent, AnnaVirtualTableDirective, fixedSizeVirtualScrollStrategyFactory };
|
|
2499
|
-
//# sourceMappingURL=annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map
|