@annalib/anna-core 0.0.3 → 0.0.4

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 (239) 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-tooltip.model.mjs +26 -0
  16. package/esm2020/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +31 -0
  17. package/esm2020/lib/anna-core-shared-lib/public-api.mjs +25 -0
  18. package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +180 -0
  19. package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +536 -0
  20. package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +52 -0
  21. package/esm2020/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +133 -0
  22. package/esm2020/lib/anna-core-shared-lib/services/anna-sort.service.mjs +185 -0
  23. package/esm2020/lib/anna-dropdown-lib/anna-dropdown-lib.module.mjs +43 -0
  24. package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +76 -0
  25. package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +360 -0
  26. package/esm2020/lib/anna-dropdown-lib/index.mjs +2 -0
  27. package/esm2020/lib/anna-dropdown-lib/public-api.mjs +6 -0
  28. package/esm2020/lib/anna-generic-table-lib/anna-generic-table-lib.module.mjs +86 -0
  29. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +991 -0
  30. package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +125 -0
  31. package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +357 -0
  32. 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
  33. package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +2 -0
  34. package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +178 -0
  35. package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +2 -0
  36. package/esm2020/lib/anna-generic-table-lib/index.mjs +2 -0
  37. package/esm2020/lib/anna-generic-table-lib/public-api.mjs +10 -0
  38. package/esm2020/public-api.mjs +7 -0
  39. package/esm2020/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.mjs +59 -0
  40. package/esm2020/src/lib/anna-core-shared-lib/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +5 -0
  41. package/esm2020/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +15 -0
  42. package/esm2020/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +15 -0
  43. package/esm2020/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +22 -0
  44. package/esm2020/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +15 -0
  45. 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
  46. package/esm2020/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +15 -0
  47. package/esm2020/src/lib/anna-core-shared-lib/constants/shared.constant.mjs +34 -0
  48. package/esm2020/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +2 -0
  49. package/esm2020/src/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +2 -0
  50. package/esm2020/src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +3 -0
  51. package/esm2020/src/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +26 -0
  52. package/esm2020/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +31 -0
  53. package/esm2020/src/lib/anna-core-shared-lib/public-api.mjs +25 -0
  54. package/esm2020/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +180 -0
  55. package/esm2020/src/lib/anna-core-shared-lib/services/anna-filter.service.mjs +536 -0
  56. package/esm2020/src/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +52 -0
  57. package/esm2020/src/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +133 -0
  58. package/esm2020/src/lib/anna-core-shared-lib/services/anna-sort.service.mjs +185 -0
  59. package/esm2020/src/lib/anna-dropdown-lib/anna-dropdown-lib.module.mjs +43 -0
  60. package/esm2020/src/lib/anna-dropdown-lib/annalib-anna-core-src-lib-anna-dropdown-lib.mjs +5 -0
  61. package/esm2020/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +76 -0
  62. package/esm2020/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +360 -0
  63. package/esm2020/src/lib/anna-dropdown-lib/public-api.mjs +6 -0
  64. package/esm2020/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.mjs +86 -0
  65. package/esm2020/src/lib/anna-generic-table-lib/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +5 -0
  66. package/esm2020/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +991 -0
  67. package/esm2020/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +125 -0
  68. package/esm2020/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +357 -0
  69. 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
  70. package/esm2020/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +2 -0
  71. package/esm2020/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +178 -0
  72. package/esm2020/src/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +2 -0
  73. package/esm2020/src/lib/anna-generic-table-lib/public-api.mjs +10 -0
  74. package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +1294 -0
  75. package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +1 -0
  76. package/fesm2015/annalib-anna-core-src-lib-anna-dropdown-lib.mjs +474 -0
  77. package/fesm2015/annalib-anna-core-src-lib-anna-dropdown-lib.mjs.map +1 -0
  78. package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +1887 -0
  79. package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -0
  80. package/fesm2015/annalib-anna-core.mjs +3629 -0
  81. package/fesm2015/annalib-anna-core.mjs.map +1 -0
  82. package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +1294 -0
  83. package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +1 -0
  84. package/fesm2020/annalib-anna-core-src-lib-anna-dropdown-lib.mjs +472 -0
  85. package/fesm2020/annalib-anna-core-src-lib-anna-dropdown-lib.mjs.map +1 -0
  86. package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +1886 -0
  87. package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -0
  88. package/fesm2020/annalib-anna-core.mjs +3626 -0
  89. package/fesm2020/annalib-anna-core.mjs.map +1 -0
  90. package/lib/anna-core-shared-lib/anna-core-shared-lib.module.d.ts +14 -0
  91. package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +8 -0
  92. package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +8 -0
  93. package/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +11 -0
  94. package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +8 -0
  95. package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +11 -0
  96. package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +8 -0
  97. package/lib/anna-core-shared-lib/constants/shared.constant.d.ts +32 -0
  98. package/lib/anna-core-shared-lib/index.d.ts +1 -0
  99. package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +8 -0
  100. 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
  101. 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
  102. package/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +21 -0
  103. package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +9 -0
  104. package/{src/lib/anna-core-shared-lib/public-api.ts → lib/anna-core-shared-lib/public-api.d.ts} +0 -11
  105. package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +25 -0
  106. package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +68 -0
  107. package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +14 -0
  108. package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +21 -0
  109. package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +23 -0
  110. package/lib/anna-dropdown-lib/anna-dropdown-lib.module.d.ts +11 -0
  111. package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +29 -0
  112. package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +67 -0
  113. package/lib/anna-dropdown-lib/index.d.ts +1 -0
  114. package/{src/lib/anna-dropdown-lib/public-api.ts → lib/anna-dropdown-lib/public-api.d.ts} +1 -4
  115. package/lib/anna-generic-table-lib/anna-generic-table-lib.module.d.ts +21 -0
  116. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +171 -0
  117. package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +27 -0
  118. package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +141 -0
  119. 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
  120. 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
  121. package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +45 -0
  122. 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
  123. package/lib/anna-generic-table-lib/index.d.ts +1 -0
  124. package/{src/lib/anna-generic-table-lib/public-api.ts → lib/anna-generic-table-lib/public-api.d.ts} +0 -5
  125. package/package.json +61 -17
  126. package/{src/public-api.ts → public-api.d.ts} +0 -5
  127. package/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.d.ts +14 -0
  128. package/src/lib/anna-core-shared-lib/annalib-anna-core-src-lib-anna-core-shared-lib.d.ts +5 -0
  129. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +8 -0
  130. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +8 -0
  131. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +11 -0
  132. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +8 -0
  133. 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
  134. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +8 -0
  135. package/src/lib/anna-core-shared-lib/constants/shared.constant.d.ts +32 -0
  136. package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +8 -0
  137. package/src/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts +95 -0
  138. package/src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +70 -0
  139. package/src/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +21 -0
  140. package/src/lib/anna-core-shared-lib/package.json +10 -0
  141. package/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +9 -0
  142. package/src/lib/anna-core-shared-lib/public-api.d.ts +18 -0
  143. package/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +25 -0
  144. package/src/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +68 -0
  145. package/src/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +14 -0
  146. package/src/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +21 -0
  147. package/src/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +23 -0
  148. package/src/lib/anna-dropdown-lib/anna-dropdown-lib.module.d.ts +11 -0
  149. package/src/lib/anna-dropdown-lib/annalib-anna-core-src-lib-anna-dropdown-lib.d.ts +5 -0
  150. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +29 -0
  151. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +67 -0
  152. package/src/lib/anna-dropdown-lib/package.json +10 -0
  153. package/src/lib/anna-dropdown-lib/public-api.d.ts +3 -0
  154. package/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.d.ts +21 -0
  155. package/src/lib/anna-generic-table-lib/annalib-anna-core-src-lib-anna-generic-table-lib.d.ts +5 -0
  156. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +171 -0
  157. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +27 -0
  158. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +141 -0
  159. 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
  160. package/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts +1 -0
  161. package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +45 -0
  162. package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts +1 -0
  163. package/src/lib/anna-generic-table-lib/package.json +10 -0
  164. package/src/lib/anna-generic-table-lib/public-api.d.ts +6 -0
  165. package/.browserslistrc +0 -16
  166. package/karma.conf.js +0 -44
  167. package/ng-package.json +0 -10
  168. package/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.ts +0 -42
  169. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.html +0 -22
  170. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.scss +0 -0
  171. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.spec.ts +0 -25
  172. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.ts +0 -15
  173. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.html +0 -20
  174. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.scss +0 -0
  175. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.spec.ts +0 -25
  176. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.ts +0 -15
  177. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.html +0 -3
  178. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.scss +0 -16
  179. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.spec.ts +0 -24
  180. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.ts +0 -20
  181. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.html +0 -23
  182. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.scss +0 -0
  183. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.spec.ts +0 -25
  184. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.ts +0 -15
  185. package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.html +0 -15
  186. package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.scss +0 -0
  187. 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
  188. package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.ts +0 -19
  189. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.html +0 -14
  190. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.scss +0 -0
  191. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.spec.ts +0 -25
  192. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.ts +0 -15
  193. package/src/lib/anna-core-shared-lib/constants/shared.constant.ts +0 -34
  194. package/src/lib/anna-core-shared-lib/index.ts +0 -1
  195. package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.ts +0 -10
  196. package/src/lib/anna-core-shared-lib/models/anna-tooltip.model.ts +0 -36
  197. package/src/lib/anna-core-shared-lib/ng-package.json +0 -5
  198. package/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.ts +0 -26
  199. package/src/lib/anna-core-shared-lib/scss/_colors.scss +0 -107
  200. package/src/lib/anna-core-shared-lib/scss/_filters.scss +0 -486
  201. package/src/lib/anna-core-shared-lib/scss/_fonts.scss +0 -86
  202. package/src/lib/anna-core-shared-lib/scss/_sort.scss +0 -81
  203. package/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.ts +0 -197
  204. package/src/lib/anna-core-shared-lib/services/anna-filter.service.ts +0 -616
  205. package/src/lib/anna-core-shared-lib/services/anna-generic-table.service.ts +0 -50
  206. package/src/lib/anna-core-shared-lib/services/anna-global-config.service.ts +0 -170
  207. package/src/lib/anna-core-shared-lib/services/anna-sort.service.ts +0 -200
  208. package/src/lib/anna-dropdown-lib/anna-dropdown-lib.module.ts +0 -31
  209. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.html +0 -29
  210. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.scss +0 -122
  211. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.spec.ts +0 -24
  212. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.ts +0 -76
  213. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.html +0 -129
  214. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.scss +0 -275
  215. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.spec.ts +0 -24
  216. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.ts +0 -410
  217. package/src/lib/anna-dropdown-lib/index.ts +0 -1
  218. package/src/lib/anna-dropdown-lib/ng-package.json +0 -5
  219. package/src/lib/anna-generic-table-lib/anna-generic-table-lib.module.ts +0 -56
  220. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.html +0 -848
  221. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.scss +0 -488
  222. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.spec.ts +0 -25
  223. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.ts +0 -1100
  224. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.html +0 -47
  225. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.scss +0 -1
  226. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.spec.ts +0 -24
  227. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.ts +0 -126
  228. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.html +0 -13
  229. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.scss +0 -88
  230. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.spec.ts +0 -25
  231. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.ts +0 -460
  232. 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
  233. package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.ts +0 -204
  234. package/src/lib/anna-generic-table-lib/index.ts +0 -1
  235. package/src/lib/anna-generic-table-lib/ng-package.json +0 -5
  236. package/src/test.ts +0 -27
  237. package/tsconfig.lib.json +0 -16
  238. package/tsconfig.lib.prod.json +0 -10
  239. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,171 @@
1
+ import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef } from '@angular/core';
2
+ import { NgbDate } from '@ng-bootstrap/ng-bootstrap';
3
+ import { Options } from '@angular-slider/ngx-slider';
4
+ import { AnnaSortComponent } from '../anna-sort/anna-sort.component';
5
+ import { SellerGroupHierarchy, IWeekCalendar, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
6
+ import * as i0 from "@angular/core";
7
+ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges {
8
+ private cdRef;
9
+ private annaSortService;
10
+ annaDateTimeFormatService: AnnaDateTimeFormatService;
11
+ annaFilterService: AnnaFilterService;
12
+ private annaGenericTableService;
13
+ showSkeletonLoading: boolean;
14
+ tableHeaders: IGtTableHeader[];
15
+ tableData: any[];
16
+ clonedTableData: any[];
17
+ numberOfSkeletonRows: number[];
18
+ numberOfSkeletonColumns: number[][];
19
+ gtGeneralConfig: IGtGeneralConfig;
20
+ totalRowInfo?: ITotalRowInfo[];
21
+ gtDimension: {
22
+ rowHeight: number;
23
+ tableHeight: string;
24
+ headerHeight: number;
25
+ };
26
+ tableClass: string;
27
+ maximumRowsWhichCanBeRenderedWithoutScroll: number;
28
+ toggleCheckbox: EventEmitter<any>;
29
+ toggleRowCheckbox: EventEmitter<any>;
30
+ toggleHeaderCheckbox: EventEmitter<any>;
31
+ undoIconClicked: EventEmitter<any>;
32
+ filterAppliedToTable: EventEmitter<any>;
33
+ sortingAppliedToTable: EventEmitter<any>;
34
+ rowClicked: EventEmitter<any>;
35
+ radioButtonSelected: EventEmitter<any>;
36
+ columnFilterOpened: EventEmitter<any>;
37
+ columnFilterClosed: EventEmitter<any>;
38
+ gtIconClicked: EventEmitter<any>;
39
+ gtSVGIconClicked: EventEmitter<any>;
40
+ gtTextActionClicked: EventEmitter<any>;
41
+ gtViewDetailClicked: EventEmitter<any>;
42
+ tableDataWrapper: any[];
43
+ rowChecked: boolean;
44
+ isAllRowsChecked: boolean;
45
+ noDataWidth: string;
46
+ markedForCreditStatus: string;
47
+ markedForMGStatus: string;
48
+ toolTipdata: any;
49
+ tempTooltipData: any;
50
+ tooltipRadioTextMap: Map<any, any>;
51
+ radioButtons: any[];
52
+ tooltip: any;
53
+ clonedTooltipData: any;
54
+ clonedTooltipSelectedMapData: any;
55
+ searchBar: string;
56
+ disableClearAllBtn: boolean;
57
+ disableColumnClearAllBtn: boolean;
58
+ allSelected: number;
59
+ showAll: boolean;
60
+ disableCheckboxApply: boolean;
61
+ disableSliderApplyButton: boolean;
62
+ disableTimeApplyButton: boolean;
63
+ sliderMinValue: number;
64
+ sliderMaxValue: number;
65
+ options: Options;
66
+ sliderValue: {
67
+ min: number;
68
+ max: number;
69
+ };
70
+ sliderFilterTextBoxStep: string;
71
+ calendarMinEnabledDate: NgbDateType;
72
+ calendarMaxEnabledDate: NgbDateType;
73
+ selectedMinDate: NgbDateType;
74
+ selectedMaxDate: NgbDateType;
75
+ multiWeekPickerConfig: IWeekCalendar;
76
+ selectedFromTime: any[];
77
+ selectedToTime: any[];
78
+ clonedSelectedFromTime: any;
79
+ clonedSelectedToTime: any;
80
+ disableTimeFilterApplyBtn: boolean;
81
+ tableColumns: string[];
82
+ totalRowColumns: string[];
83
+ showMultiTimeCheckbox: boolean;
84
+ showZeroTimeCheckbox: boolean;
85
+ showEnterTimeCheckbox: boolean;
86
+ multiTimeCheckboxChecked: boolean;
87
+ zeroTimeCheckboxChecked: boolean;
88
+ enterTimeCheckboxChecked: boolean;
89
+ bindValueFuncCalled: boolean;
90
+ hierarchyTooltip: {
91
+ open: () => void;
92
+ close: () => void;
93
+ };
94
+ sellerGroupHierarchy: SellerGroupHierarchy[];
95
+ showCheckboxFilterRadioButtons: boolean;
96
+ sortComponent: QueryList<AnnaSortComponent>;
97
+ isScrolledLeft: boolean;
98
+ rowBorderWidth: number;
99
+ PfpIconActiveColor: string;
100
+ PfpIconDisableColor: string;
101
+ constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService, annaGenericTableService: AnnaGenericTableService);
102
+ ngOnInit(): void;
103
+ ngOnChanges(changes: SimpleChanges): void;
104
+ trackByFn(index: number): number;
105
+ setTooltipRadioNames(): void;
106
+ generateTableDataWrapper(): void;
107
+ selectOrUnselectCheckbox(rowData: any, columnKeys: any, isCheckboxSelected: any): void;
108
+ selectUnselectAllRows(): void;
109
+ selectUnselectRow(rowData: any): void;
110
+ undoCreditedSpot(data: any): void;
111
+ undoMgSpot(data: any): void;
112
+ closeTooltip(): void;
113
+ closeSortTooltip(): void;
114
+ initFilters(): void;
115
+ setInitialValueMapData(): void;
116
+ isTooltipActive(header: any[]): boolean;
117
+ bindTheValueToToolTip(tooltip: any, header: any[]): void;
118
+ openTooltip(tooltip: any, header: any[]): void;
119
+ clearColumnFilter(): void;
120
+ populateTooltipDataBasedOnSelectedRadio(header: string): void;
121
+ getSliderData(header: string): void;
122
+ getCheckboxData(header: string): void;
123
+ getCalendarData(): void;
124
+ getTimeFilterData(header: string): void;
125
+ selectOrUnselectMultiTimeCheckbox(): void;
126
+ selectOrUnselectZeroTimeCheckbox(): void;
127
+ selectOrUnselectEnterTimeCheckbox(): void;
128
+ disableSliderApplyBtn(): boolean;
129
+ isCheckboxSelected(data: boolean | number): void;
130
+ minValueChanged(value: string): void;
131
+ maxValueChanged(value: string): void;
132
+ sliderValueChange(): void;
133
+ cancelSliderFilter(): void;
134
+ allOptionClicked(): void;
135
+ applyFilters(): void;
136
+ revert(): void;
137
+ closeCheckboxFilter(): void;
138
+ applySliderFilter(): void;
139
+ cancelInDateFilter(): void;
140
+ applyDateFilter(selectedDate: {
141
+ fromDate: NgbDate;
142
+ toDate: NgbDate;
143
+ }): void;
144
+ applyWeekFilter(event: any): void;
145
+ incrementHour(arr: any[]): void;
146
+ decrementHour(arr: any[]): void;
147
+ incrementMinute(arr: any[]): void;
148
+ decrementMinute(arr: any): void;
149
+ changeStartTimeHour(increment: boolean): void;
150
+ changeEndTimeHour(increment: boolean): void;
151
+ changeEndTimeMinute(increment: boolean): void;
152
+ changeStartTimeMinute(increment: boolean): void;
153
+ applyTimeFilters(): void;
154
+ closeTimeFilter(): void;
155
+ disableTimeFilterApplyButton(): void;
156
+ sortedData(event: any): void;
157
+ checkIfSortingIsApplied(): void;
158
+ applySorting(sortComponentArr: AnnaSortComponent[], appliedKey: string, isAsc: boolean): void;
159
+ setSortComponentDataProperty(sortComponent: AnnaSortComponent): void;
160
+ disableEnableEachColumnFilters(): void;
161
+ ngAfterViewInit(): void;
162
+ dataRowClicked(rowData: any): void;
163
+ radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
164
+ bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: SellerGroupHierarchy[], tooltip: any): void;
165
+ iconClicked(rowData: any, iconClass: string): void;
166
+ svgIconClicked(rowData: any, key: string): void;
167
+ textActionClicked(rowData: any, id: number): void;
168
+ viewDetailsClicked(rowData: any): void;
169
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
170
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; }, { "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"; }, never, never>;
171
+ }
@@ -0,0 +1,27 @@
1
+ import { EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { AnnaSortService } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
3
+ import * as i0 from "@angular/core";
4
+ export declare class AnnaSortComponent {
5
+ annaSortService: AnnaSortService;
6
+ data: any;
7
+ sortBy: string;
8
+ disableSort: boolean;
9
+ placement: string;
10
+ selectedRadio: string;
11
+ clonedData: any[];
12
+ firstSortApplied: boolean;
13
+ sortedData: EventEmitter<any>;
14
+ constructor(annaSortService: AnnaSortService);
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ isFirstTimeSorting(): void;
17
+ sortByAscending(): void;
18
+ sortByDescending(): void;
19
+ setAscState(): void;
20
+ setDescState(): void;
21
+ removeSorting(): void;
22
+ bindTheValueToToolTip(tooltip: any): void;
23
+ selectRadioButton(): void;
24
+ closeTooltip(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaSortComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaSortComponent, "anna-core-sort-lib", never, { "data": "data"; "sortBy": "sortBy"; "disableSort": "disableSort"; "placement": "placement"; }, { "sortedData": "sort"; }, never, never>;
27
+ }
@@ -0,0 +1,141 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { Directionality } from "@angular/cdk/bidi";
9
+ import { ListRange } from "@angular/cdk/collections";
10
+ import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from "@angular/core";
11
+ import { Observable } from "rxjs";
12
+ import { CdkScrollable, CdkVirtualScrollRepeater, VirtualScrollStrategy, ScrollDispatcher, ViewportRuler } from "@angular/cdk/scrolling";
13
+ import { AnnaGenericTableService } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
14
+ import * as i0 from "@angular/core";
15
+ /**
16
+ * A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
17
+ * Uses `top: #px` instead of `transform: translateY(#px)` like the cdk virtual scroll viewport does
18
+ * which avoids flickering of elements in the transformed container with `position: sticky`.
19
+ */
20
+ export declare class AnnaTableVirtualScrollViewportComponent extends CdkScrollable implements OnInit, OnDestroy {
21
+ elementRef: ElementRef<HTMLElement>;
22
+ private _changeDetectorRef;
23
+ private _scrollStrategy;
24
+ private annaGtService;
25
+ /** Emits when the viewport is detached from a CdkVirtualForOf. */
26
+ private _detachedSubject;
27
+ /** Emits when the rendered range changes. */
28
+ private _renderedRangeSubject;
29
+ /** The direction the viewport scrolls. */
30
+ get orientation(): "horizontal" | "vertical";
31
+ set orientation(orientation: "horizontal" | "vertical");
32
+ private _orientation;
33
+ /** Emits when the index of the first element visible in the viewport changes. */
34
+ scrolledIndexChange: Observable<number>;
35
+ /** The element that wraps the rendered content. */
36
+ _contentWrapper: ElementRef<HTMLElement>;
37
+ /** A stream that emits whenever the rendered range changes. */
38
+ renderedRangeStream: Observable<ListRange>;
39
+ /**
40
+ * The total size of all content (in pixels), including content that is not currently rendered.
41
+ */
42
+ private _totalContentSize;
43
+ /** A string representing the `style.width` property value to be used for the spacer element. */
44
+ _totalContentWidth: string;
45
+ /** A string representing the `style.height` property value to be used for the spacer element. */
46
+ _totalContentHeight: string;
47
+ /**
48
+ * The CSS transform applied to the rendered subset of items so that they appear within the bounds
49
+ * of the visible viewport.
50
+ */
51
+ private _renderedContentTransform;
52
+ /** The currently rendered range of indices. */
53
+ private _renderedRange;
54
+ /** The length of the data bound to this viewport (in number of items). */
55
+ private _dataLength;
56
+ /** The size of the viewport (in pixels). */
57
+ private _viewportSize;
58
+ /** the currently attached CdkVirtualScrollRepeater. */
59
+ private _forOf;
60
+ /** The last rendered content offset that was set. */
61
+ private _renderedContentOffset;
62
+ /**
63
+ * Whether the last rendered content offset was to the end of the content (and therefore needs to
64
+ * be rewritten as an offset to the start of the content).
65
+ */
66
+ private _renderedContentOffsetNeedsRewrite;
67
+ /** Whether there is a pending change detection cycle. */
68
+ private _isChangeDetectionPending;
69
+ /** A list of functions to run after the next change detection cycle. */
70
+ private _runAfterChangeDetection;
71
+ /** Subscription to changes in the viewport size. */
72
+ private _viewportChanges;
73
+ constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, annaGtService: AnnaGenericTableService);
74
+ ngOnInit(): void;
75
+ ngOnDestroy(): void;
76
+ /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
77
+ attach(forOf: CdkVirtualScrollRepeater<any>): void;
78
+ /** Detaches the current `CdkVirtualForOf`. */
79
+ detach(): void;
80
+ /** Gets the length of the data bound to this viewport (in number of items). */
81
+ getDataLength(): number;
82
+ /** Gets the size of the viewport (in pixels). */
83
+ getViewportSize(): number;
84
+ /** Get the current rendered range of items. */
85
+ getRenderedRange(): ListRange;
86
+ /**
87
+ * Sets the total size of all content (in pixels), including content that is not currently
88
+ * rendered.
89
+ */
90
+ setTotalContentSize(size: number): void;
91
+ /** Sets the currently rendered range of indices. */
92
+ setRenderedRange(range: ListRange): void;
93
+ /**
94
+ * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
95
+ */
96
+ getOffsetToRenderedContentStart(): number | null;
97
+ /**
98
+ * Sets the offset from the start of the viewport to either the start or end of the rendered data
99
+ * (in pixels).
100
+ */
101
+ setRenderedContentOffset(offset: number): void;
102
+ /**
103
+ * Scrolls to the given offset from the start of the viewport. Please note that this is not always
104
+ * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
105
+ * direction, this would be the equivalent of setting a fictional `scrollRight` property.
106
+ * @param offset The offset to scroll to.
107
+ * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
108
+ */
109
+ scrollToOffset(offset: number, behavior?: ScrollBehavior): void;
110
+ /**
111
+ * Scrolls to the offset for the given index.
112
+ * @param index The index of the element to scroll to.
113
+ * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
114
+ */
115
+ scrollToIndex(index: number, behavior?: ScrollBehavior): void;
116
+ /**
117
+ * Gets the current scroll offset from the start of the viewport (in pixels).
118
+ * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
119
+ * in horizontal mode.
120
+ */
121
+ measureScrollOffset(from?: "top" | "left" | "right" | "bottom" | "start" | "end"): number;
122
+ /** Measure the combined size of all of the rendered items. */
123
+ measureRenderedContentSize(): number;
124
+ /**
125
+ * Measure the total combined size of the given range. Throws if the range includes items that are
126
+ * not rendered.
127
+ */
128
+ measureRangeSize(range: ListRange): number;
129
+ /** Update the viewport dimensions and re-render. */
130
+ checkViewportSize(): void;
131
+ /** Measure the viewport size. */
132
+ private _measureViewportSize;
133
+ /** Queue up change detection to run. */
134
+ private _markChangeDetectionNeeded;
135
+ /** Run change detection. */
136
+ private _doChangeDetection;
137
+ /** Calculates the `style.width` and `style.height` for the spacer element. */
138
+ private _calculateSpacerSize;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaTableVirtualScrollViewportComponent, [null, null, null, { optional: true; }, { optional: true; }, null, null, null]>;
140
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnnaTableVirtualScrollViewportComponent, "anna-table-virtual-scroll-viewport", never, { "orientation": "orientation"; }, { "scrolledIndexChange": "scrolledIndexChange"; }, never, ["*"]>;
141
+ }
@@ -0,0 +1,89 @@
1
+ import { NumberInput } from "@angular/cdk/coercion";
2
+ import { CdkVirtualScrollViewport, VirtualScrollStrategy } from "@angular/cdk/scrolling";
3
+ import { AfterContentInit, QueryList, SimpleChanges } from "@angular/core";
4
+ import { MatHeaderRowDef } from "@angular/material/table";
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * A custom scroll strategy that accepts a static row height, static header height,
8
+ * and a buffer size. The strategy
9
+ */
10
+ export declare class AnnaFixedRowSizeTableVirtualScrollStrategy implements VirtualScrollStrategy {
11
+ viewport: CdkVirtualScrollViewport | null;
12
+ private buffer;
13
+ private headerHeight;
14
+ private rowHeight;
15
+ constructor(rowHeight: number, buffer: number, headerHeight: number);
16
+ private _scrolledIndexChange;
17
+ scrolledIndexChange: import("rxjs").Observable<number>;
18
+ /**
19
+ * Attaches this scroll strategy to a viewport.
20
+ * @param viewport The viewport to attach this strategy to.
21
+ */
22
+ attach(viewport: CdkVirtualScrollViewport): void;
23
+ /**
24
+ * Detaches this scroll strategy from the currently attached viewport.
25
+ */
26
+ detach(): void;
27
+ onContentScrolled(): void;
28
+ onDataLengthChanged(): void;
29
+ onContentRendered(): void;
30
+ onRenderedOffsetChanged(): void;
31
+ scrollToIndex(index: number, behavior: ScrollBehavior): void;
32
+ /**
33
+ * Update the item size and buffer size.
34
+ * @param rowHeight The height of a row in the virtually scrolling table.
35
+ * @param buffer The number of rows to buffer outside the viewport.
36
+ * @param headerHeight The total height of the table header, including all header rows.
37
+ */
38
+ updateRowHeightAndBuffer(rowHeight: number, buffer: number, headerHeight: number): void;
39
+ protected updateRenderedRange(): void;
40
+ protected updateTotalContentSize(): void;
41
+ }
42
+ /**
43
+ * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
44
+ * `FixedSizeVirtualScrollStrategy` from the given directive.
45
+ * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
46
+ * `FixedSizeVirtualScrollStrategy` from.
47
+ */
48
+ export declare function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir: AnnaFixedRowSizeTableVirtualScrollStrategyDirective): AnnaFixedRowSizeTableVirtualScrollStrategy;
49
+ export declare class AnnaFixedRowSizeTableVirtualScrollStrategyDirective implements AfterContentInit {
50
+ /** The height of rows in the table (in pixels). Defaults to 30. */
51
+ set rowHeight(value: number);
52
+ get rowHeight(): number;
53
+ private _rowHeight;
54
+ /**
55
+ * The height of header rows in the table (in pixels). Defaults to 30.
56
+ */
57
+ set headerRowHeight(value: number);
58
+ get headerRowHeight(): number;
59
+ private _headerRowHeight;
60
+ /**
61
+ * The number of buffered rows rendered beyond the viewport.
62
+ * If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
63
+ */
64
+ set buffer(value: number);
65
+ get buffer(): number;
66
+ private _buffer;
67
+ set headerRows(value: number | null | undefined);
68
+ get headerRows(): number | null | undefined;
69
+ private _headerRows;
70
+ /**
71
+ * Using ContentChildren here fails to pick up row defs that are added programmatically,
72
+ * but we don't really have a way of handling that without accessing private methods of
73
+ * the CdkTable. Adding header row defs programmatically is uncommon, so ContentChildren
74
+ * is usually sufficient. The explicit `headerRows` input above allows the number of rows
75
+ * to be set by the developer to override the QueryList-driven behavior.
76
+ */
77
+ headerRowsQuery: QueryList<MatHeaderRowDef>;
78
+ private headerRowCount;
79
+ /** The scroll strategy used by this directive. */
80
+ scrollStrategy: AnnaFixedRowSizeTableVirtualScrollStrategy;
81
+ ngOnChanges(change: SimpleChanges): void;
82
+ ngAfterContentInit(): void;
83
+ private handleChange;
84
+ static ngAcceptInputType_rowHeight: NumberInput;
85
+ static ngAcceptInputType_buffer: NumberInput;
86
+ static ngAcceptInputType_headerRowHeight: NumberInput;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, never>;
88
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", never, { "rowHeight": "rowHeight"; "headerRowHeight": "headerRowHeight"; "buffer": "buffer"; "headerRows": "headerRows"; }, {}, ["headerRowsQuery"]>;
89
+ }
@@ -0,0 +1 @@
1
+ export * from "./anna-fixed-row-size-table-virtual-scroll-strategy.directive";
@@ -0,0 +1,45 @@
1
+ import { CollectionViewer, ListRange } from "@angular/cdk/collections";
2
+ import { CdkVirtualScrollRepeater, CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
3
+ import { CdkHeaderRowDef, CdkTable, DataSource, _CoalescedStyleScheduler } from "@angular/cdk/table";
4
+ import { ElementRef, NgIterable, NgZone, QueryList } from "@angular/core";
5
+ import { Observable, Subject } from "rxjs";
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Directive that wraps a given data source in a "virtual" data source that emits
9
+ * the slice of the original data source that matches the range that should be rendered
10
+ * in the containing virtual scroll viewport.
11
+ */
12
+ export declare class AnnaVirtualTableDirective<T> implements CdkVirtualScrollRepeater<T>, CollectionViewer {
13
+ private viewport;
14
+ private table;
15
+ private _coalescedStyleScheduler;
16
+ set dataSource(value: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined);
17
+ get dataSource(): DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
18
+ private _dataSource;
19
+ headerRowDefs: QueryList<CdkHeaderRowDef>;
20
+ private virtualizedDataStream;
21
+ private dataSourceChanges;
22
+ /** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
23
+ dataStream: Observable<T[] | ReadonlyArray<T>>;
24
+ viewChange: Subject<ListRange>;
25
+ private data;
26
+ private destroyed$;
27
+ private renderedItems;
28
+ private renderedRange;
29
+ private isNativeHtmlTable;
30
+ constructor(elementRef: ElementRef<HTMLElement>, viewport: CdkVirtualScrollViewport, table: CdkTable<T>, ngZone: NgZone, _coalescedStyleScheduler: _CoalescedStyleScheduler);
31
+ ngOnInit(): void;
32
+ ngOnDestroy(): void;
33
+ /** React to scroll state changes in the viewport. */
34
+ private onRenderedDataChange;
35
+ /** Swap out one data source for another. */
36
+ private changeDataSource;
37
+ /**
38
+ * This method is only used by the experimental AutoSizeVirtualScrollStrategy.
39
+ * We're not using that strategy, but I've implemented it just to show how it oculd be done.
40
+ * I'm not actually sure if this works.
41
+ */
42
+ measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnnaVirtualTableDirective<any>, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaVirtualTableDirective<any>, "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", never, { "dataSource": "appVirtualDataSource"; }, {}, ["headerRowDefs"]>;
45
+ }
@@ -0,0 +1 @@
1
+ export * from "./anna-virtual-table.directive";
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../../../fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs",
3
+ "es2020": "../../../fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs",
4
+ "esm2020": "../../../esm2020/src/lib/anna-generic-table-lib/annalib-anna-core-src-lib-anna-generic-table-lib.mjs",
5
+ "fesm2020": "../../../fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs",
6
+ "fesm2015": "../../../fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs",
7
+ "typings": "annalib-anna-core-src-lib-anna-generic-table-lib.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@annalib/anna-core/src/lib/anna-generic-table-lib"
10
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./anna-generic-table-lib.module";
2
+ export * from "./components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
3
+ export * from "./components/anna-sort/anna-sort.component";
4
+ export * from "./components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
5
+ export * from "./directives/anna-fixed-row-size-table-virtual-scroll-strategy";
6
+ export * from "./directives/anna-virtual-table";
package/.browserslistrc DELETED
@@ -1,16 +0,0 @@
1
- # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2
- # For additional information regarding the format and rule options, please see:
3
- # https://github.com/browserslist/browserslist#queries
4
-
5
- # For the full list of supported browsers by the Angular framework, please see:
6
- # https://angular.io/guide/browser-support
7
-
8
- # You can see what browsers were selected by your queries by running:
9
- # npx browserslist
10
-
11
- last 1 Chrome version
12
- last 1 Firefox version
13
- last 2 Edge major versions
14
- last 2 Safari major versions
15
- last 2 iOS major versions
16
- Firefox ESR
package/karma.conf.js DELETED
@@ -1,44 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage'),
13
- require('@angular-devkit/build-angular/plugins/karma')
14
- ],
15
- client: {
16
- jasmine: {
17
- // you can add configuration options for Jasmine here
18
- // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
- // for example, you can disable the random execution with `random: false`
20
- // or set a specific seed with `seed: 4321`
21
- },
22
- clearContext: false // leave Jasmine Spec Runner output visible in browser
23
- },
24
- jasmineHtmlReporter: {
25
- suppressAll: true // removes the duplicated traces
26
- },
27
- coverageReporter: {
28
- dir: require('path').join(__dirname, '../../coverage/anna-core'),
29
- subdir: '.',
30
- reporters: [
31
- { type: 'html' },
32
- { type: 'text-summary' }
33
- ]
34
- },
35
- reporters: ['progress', 'kjhtml'],
36
- port: 9876,
37
- colors: true,
38
- logLevel: config.LOG_INFO,
39
- autoWatch: true,
40
- browsers: ['Chrome'],
41
- singleRun: false,
42
- restartOnFileChange: true
43
- });
44
- };
package/ng-package.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/anna-core",
4
- "lib": {
5
- "entryFile": "src/public-api.ts",
6
- "styleIncludePaths": [
7
- "./src/lib/anna-core-shared-lib/scss"
8
- ]
9
- }
10
- }
@@ -1,42 +0,0 @@
1
-
2
-
3
- // Angular import statements
4
- import { NgModule } from '@angular/core';
5
- import { CommonModule } from '@angular/common';
6
-
7
- // Third party import statements
8
-
9
- // User defined import statements
10
- import { AnnaNoDataComponent } from './components/anna-no-data/anna-no-data.component';
11
- import { AnnaFilterSearchedTextPipe } from './pipes/annaFilterSearchedText.pipe';
12
- import { AnnaBuyerApprovalIconTemplateComponent } from './components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component';
13
- import { AnnaLiveIconTemplateComponent } from './components/anna-live-icon-template/anna-live-icon-template.component';
14
- import { AnnaNotifyIconTemplateComponent } from './components/anna-notify-icon-template/anna-notify-icon-template.component';
15
- import { AnnaPayForPerformanceIconTemplateComponent } from './components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component';
16
- import { AnnaRejectedIconTemplateComponent } from './components/anna-rejected-icon-template/anna-rejected-icon-template.component';
17
-
18
-
19
- @NgModule({
20
- declarations: [
21
- AnnaNoDataComponent,
22
- AnnaFilterSearchedTextPipe,
23
- AnnaBuyerApprovalIconTemplateComponent,
24
- AnnaLiveIconTemplateComponent,
25
- AnnaNotifyIconTemplateComponent,
26
- AnnaPayForPerformanceIconTemplateComponent,
27
- AnnaRejectedIconTemplateComponent
28
- ],
29
- imports: [
30
- CommonModule
31
- ],
32
- exports : [
33
- AnnaNoDataComponent,
34
- AnnaFilterSearchedTextPipe,
35
- AnnaBuyerApprovalIconTemplateComponent,
36
- AnnaLiveIconTemplateComponent,
37
- AnnaNotifyIconTemplateComponent,
38
- AnnaPayForPerformanceIconTemplateComponent,
39
- AnnaRejectedIconTemplateComponent
40
- ]
41
- })
42
- export class AnnaCoreSharedLibModule { }
@@ -1,22 +0,0 @@
1
- <ng-container [ngTemplateOutlet]="buyerApprovalIcon"></ng-container>
2
-
3
- <ng-template #buyerApprovalIcon>
4
- <svg width="15px" height="15px" viewBox="0 0 20 20">
5
- <g id="Awaiting-Buyer-Approval-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
- <g id="time-left" transform="translate(3.000000, 2.000000)" fill="#4A4A4A" fill-rule="nonzero">
7
- <path
8
- d="M6.23157622,14.1696467 C5.70535057,14.0721422 5.2005579,13.9061054 4.72188769,13.6745242 C4.71622258,13.6714711 4.71115545,13.6679958 4.70520709,13.6652025 C4.59240848,13.6104091 4.47979871,13.551718 4.37065094,13.4903961 C4.37027327,13.4899414 4.36958087,13.4896491 4.36898288,13.4893893 C4.16872129,13.37558 3.97327504,13.2496557 3.78339947,13.1117139 C1.01467199,11.0989392 0.348958764,7.13679055 2.29945571,4.27950803 C2.72358352,3.65842885 3.23684237,3.14027823 3.80904983,2.72960334 C3.81609974,2.72453649 3.82314965,2.71950212 3.83013662,2.71440279 C5.84650619,1.28061347 8.58442178,1.183986 10.7254867,2.65733574 L10.2656372,3.34301728 C10.1377946,3.53386873 10.2164452,3.67294733 10.4402485,3.65216024 L12.4377343,3.46760989 C12.6618209,3.4468228 12.7958322,3.24677957 12.7355617,3.0234483 L12.1991703,1.02899228 C12.1391202,0.805401178 11.9853754,0.778637804 11.8574069,0.969456765 L11.3964873,1.6567623 C9.82523796,0.568265989 7.94067659,0.153206329 6.0701521,0.487943386 C5.88175576,0.521592483 5.69600314,0.562776899 5.51279981,0.610717118 C5.51138354,0.610976957 5.51025052,0.611139356 5.50911749,0.611399194 C5.50203611,0.613185585 5.4948603,0.615556612 5.48796775,0.617537881 C3.8749854,1.04500483 2.46767797,2.01585923 1.46347449,3.40105873 C1.4550083,3.41141979 1.44629033,3.4215535 1.43829623,3.432824 C1.40490356,3.47923766 1.37176268,3.52672316 1.33931419,3.57420867 C1.28625101,3.65203032 1.23394317,3.73180077 1.18390138,3.81157121 C1.17763828,3.82118524 1.17285441,3.83096167 1.16737814,3.84067314 C0.338698623,5.1658824 -0.0610062726,6.69795566 0.00754154337,8.25770173 C0.00769890751,8.26283354 0.00741565207,8.26799784 0.00754154337,8.27325957 C0.0141823097,8.42562242 0.0258902012,8.58009646 0.0417839785,8.73216699 C0.0426337448,8.7419759 0.0447424242,8.75126512 0.0463475384,8.76107403 C0.0627763537,8.91398904 0.0833910551,9.06726132 0.109230246,9.22050113 C0.371839509,10.7840149 1.08652445,12.1909434 2.15745032,13.2856758 C2.15993667,13.2882417 2.16251744,13.291035 2.16503527,13.2936983 C2.16591651,13.2947052 2.16689216,13.2952249 2.16774193,13.2961668 C2.45546651,13.5890373 2.7684323,13.8599191 3.10541185,14.1048494 C3.98728044,14.7461311 4.9692641,15.1700252 6.02385557,15.3653264 C6.3438398,15.424667 6.64950389,15.2048436 6.70691032,14.8747836 C6.76428528,14.5444963 6.55146603,14.2287924 6.23157622,14.1696467 Z"
9
- id="Path"
10
- ></path>
11
- <path
12
- d="M9.22237925,14.6588011 C9.29073073,14.9263505 9.1292489,15.198652 8.86169949,15.2670034 C8.51639563,15.355219 8.1641424,15.4188128 7.8069689,15.4570516 C7.53239558,15.4864472 7.28598003,15.2876915 7.25658436,15.0131182 C7.22718869,14.7385449 7.42594445,14.4921293 7.70051776,14.4627336 C8.01004537,14.4295958 8.31515603,14.3745129 8.61417689,14.2981213 C8.8817263,14.2297698 9.15402777,14.3912517 9.22237925,14.6588011 Z M12.5552524,12.2886551 C12.7611952,12.4726175 12.7790139,12.7886982 12.5950515,12.994641 C12.3569806,13.2611574 12.1001968,13.5104915 11.8267859,13.7406023 C11.6155121,13.9184167 11.3000937,13.8912925 11.1222793,13.6800187 C10.9444648,13.4687448 10.9715891,13.1533264 11.1828629,12.975512 C11.4200152,12.7759175 11.6427598,12.5596351 11.8492666,12.3284542 C12.033229,12.1225114 12.3493096,12.1046927 12.5552524,12.2886551 Z M13.9945063,8.57622811 C14.2674538,8.61811209 14.4547678,8.87333344 14.4128838,9.14628095 C14.3584322,9.50112883 14.2787427,9.85020038 14.1746496,10.1914009 C14.0940709,10.4555252 13.8146338,10.6043183 13.5505094,10.5237395 C13.2863851,10.4431608 13.137592,10.1637237 13.2181708,9.89959931 C13.3082912,9.6041989 13.3772907,9.30195366 13.4244534,8.99460564 C13.4663374,8.72165813 13.7215588,8.53434413 13.9945063,8.57622811 Z M13.8741743,4.99628976 C14.0173723,5.32357494 14.1370467,5.66111195 14.2320931,6.00667963 C14.305325,6.27293459 14.1488489,6.54814305 13.8825939,6.62137492 C13.6163389,6.6946068 13.3411305,6.53813067 13.2678986,6.27187571 C13.1856167,5.97271686 13.0820133,5.68050756 12.958028,5.39713383 C12.847338,5.14414702 12.9626923,4.84932868 13.2156791,4.73863865 C13.4686659,4.62794862 13.7634843,4.74330295 13.8741743,4.99628976 Z"
13
- id="Combined-Shape"
14
- ></path>
15
- <path
16
- d="M6.49684035,4 C6.22234237,4 6,4.21290493 6,4.47514225 L6,9.20888548 L10.5252942,11.4469308 C10.5981282,11.4830116 10.6761155,11.5 10.7528554,11.5 C10.9325937,11.5 11.106194,11.4063595 11.1944548,11.2429754 C11.3203307,11.0097848 11.2250786,10.7233052 10.9813357,10.6028789 L6.9931227,8.63027395 L6.9931227,4.47514225 C6.99308988,4.21290493 6.77101009,4 6.49684035,4 Z"
17
- id="Path"
18
- ></path>
19
- </g>
20
- </g>
21
- </svg>
22
- </ng-template>