@annalib/anna-core 2.6.1 → 2.7.2

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