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