@annalib/anna-core 1.2.0 → 1.2.3

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