@annalib/anna-core 7.2.4 → 7.2.5

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 (156) 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/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +15 -0
  4. package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +35 -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 +35 -0
  11. package/esm2020/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +282 -0
  12. package/esm2020/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +27 -0
  13. package/esm2020/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +2 -0
  14. package/esm2020/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +2 -0
  15. package/esm2020/lib/anna-core-shared-lib/models/anna-manage-users.model.mjs +8 -0
  16. package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +2 -0
  17. package/esm2020/lib/anna-core-shared-lib/models/anna-sort.model.mjs +7 -0
  18. package/esm2020/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +30 -0
  19. package/esm2020/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.mjs +26 -0
  20. package/esm2020/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +46 -0
  21. package/esm2020/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.mjs +25 -0
  22. package/esm2020/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.mjs +16 -0
  23. package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +199 -0
  24. package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +469 -0
  25. package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +124 -0
  26. package/esm2020/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +133 -0
  27. package/esm2020/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +41 -0
  28. package/esm2020/lib/anna-core-shared-lib/services/anna-sort.service.mjs +147 -0
  29. package/esm2020/lib/anna-core.module.mjs +180 -0
  30. package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +101 -0
  31. package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +364 -0
  32. package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +1834 -0
  33. package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +69 -0
  34. package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +357 -0
  35. 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
  36. package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +2 -0
  37. package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +178 -0
  38. package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +2 -0
  39. package/esm2020/public-api.mjs +50 -0
  40. package/fesm2015/annalib-anna-core.mjs +4875 -0
  41. package/fesm2015/annalib-anna-core.mjs.map +1 -0
  42. package/fesm2020/annalib-anna-core.mjs +4868 -0
  43. package/fesm2020/annalib-anna-core.mjs.map +1 -0
  44. package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +8 -0
  45. package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +16 -0
  46. package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +8 -0
  47. package/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +11 -0
  48. package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +8 -0
  49. package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +11 -0
  50. package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +8 -0
  51. package/lib/anna-core-shared-lib/constants/shared.constant.d.ts +33 -0
  52. package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +34 -0
  53. package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +9 -0
  54. package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +16 -0
  55. 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
  56. package/lib/anna-core-shared-lib/models/anna-manage-users.model.d.ts +6 -0
  57. 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 -28
  58. package/lib/anna-core-shared-lib/models/anna-sort.model.d.ts +11 -0
  59. package/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +25 -0
  60. package/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.d.ts +9 -0
  61. package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +9 -0
  62. package/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.d.ts +9 -0
  63. package/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.d.ts +7 -0
  64. package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +27 -0
  65. package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +74 -0
  66. package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +28 -0
  67. package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +21 -0
  68. package/lib/anna-core-shared-lib/services/anna-number-format.service.d.ts +7 -0
  69. package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +16 -0
  70. package/lib/anna-core.module.d.ts +36 -0
  71. package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +34 -0
  72. package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +70 -0
  73. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +283 -0
  74. package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +17 -0
  75. package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +141 -0
  76. 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
  77. 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
  78. package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +45 -0
  79. 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
  80. package/package.json +39 -19
  81. package/{src/public-api.ts → public-api.d.ts} +0 -28
  82. package/.browserslistrc +0 -16
  83. package/karma.conf.js +0 -44
  84. package/ng-package.json +0 -14
  85. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.html +0 -22
  86. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.scss +0 -0
  87. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.spec.ts +0 -25
  88. package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.ts +0 -16
  89. package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.html +0 -33
  90. package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.scss +0 -0
  91. package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.spec.ts +0 -25
  92. package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.ts +0 -28
  93. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.html +0 -20
  94. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.scss +0 -0
  95. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.spec.ts +0 -25
  96. package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.ts +0 -16
  97. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.html +0 -3
  98. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.scss +0 -17
  99. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.spec.ts +0 -24
  100. package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.ts +0 -20
  101. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.html +0 -23
  102. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.scss +0 -0
  103. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.spec.ts +0 -25
  104. package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.ts +0 -16
  105. package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.html +0 -15
  106. package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.scss +0 -0
  107. 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
  108. package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.ts +0 -19
  109. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.html +0 -14
  110. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.scss +0 -0
  111. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.spec.ts +0 -25
  112. package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.ts +0 -16
  113. package/src/lib/anna-core-shared-lib/constants/shared.constant.ts +0 -35
  114. package/src/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.ts +0 -307
  115. package/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.ts +0 -19
  116. package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.ts +0 -19
  117. package/src/lib/anna-core-shared-lib/models/anna-manage-users.model.ts +0 -6
  118. package/src/lib/anna-core-shared-lib/models/anna-sort.model.ts +0 -13
  119. package/src/lib/anna-core-shared-lib/models/anna-tooltip.model.ts +0 -44
  120. package/src/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.ts +0 -20
  121. package/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.ts +0 -43
  122. package/src/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.ts +0 -19
  123. package/src/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.ts +0 -12
  124. package/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.ts +0 -219
  125. package/src/lib/anna-core-shared-lib/services/anna-filter.service.ts +0 -563
  126. package/src/lib/anna-core-shared-lib/services/anna-generic-table.service.ts +0 -136
  127. package/src/lib/anna-core-shared-lib/services/anna-global-config.service.ts +0 -170
  128. package/src/lib/anna-core-shared-lib/services/anna-number-format.service.ts +0 -43
  129. package/src/lib/anna-core-shared-lib/services/anna-sort.service.ts +0 -179
  130. package/src/lib/anna-core.module.ts +0 -112
  131. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.html +0 -46
  132. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.scss +0 -153
  133. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.spec.ts +0 -24
  134. package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.ts +0 -106
  135. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.html +0 -129
  136. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.scss +0 -275
  137. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.spec.ts +0 -24
  138. package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.ts +0 -414
  139. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.html +0 -1080
  140. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.scss +0 -668
  141. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.spec.ts +0 -25
  142. package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.ts +0 -2186
  143. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.html +0 -10
  144. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.scss +0 -1
  145. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.spec.ts +0 -24
  146. package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.ts +0 -69
  147. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.html +0 -13
  148. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.scss +0 -88
  149. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.spec.ts +0 -25
  150. package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.ts +0 -460
  151. 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
  152. package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.ts +0 -204
  153. package/src/test.ts +0 -27
  154. package/tsconfig.lib.json +0 -19
  155. package/tsconfig.lib.prod.json +0 -10
  156. package/tsconfig.spec.json +0 -17
@@ -1,23 +0,0 @@
1
- <ng-container [ngTemplateOutlet]="notifyIcon"></ng-container>
2
-
3
- <ng-template #notifyIcon>
4
- <svg width="15px" height="15px" viewBox="0 0 20 20">
5
- <g id="Notify-buyer-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
- <g id="notification" transform="translate(3.000000, 1.000000)" fill="#4A4A4A" fill-rule="nonzero">
7
- <path
8
- d="M12.6666669,8.66366455 L12.6666669,7.08618164 C12.6666669,4.78491943 11.1196383,2.8344397 9.0000114,2.19737549 L9.0000114,1.4831543 C9.0000114,0.665343018 8.32711346,8.52651283e-13 7.50001599,8.52651283e-13 C6.67291852,8.52651283e-13 6.00002058,0.665343018 6.00002058,1.4831543 L6.00002058,2.19737549 C3.8803604,2.8344397 2.33336513,4.78488647 2.33336513,7.08618164 L2.33336513,8.66366455 C2.33336513,10.685105 1.55410085,12.6018677 0.139138508,14.060896 C0.000472265053,14.2038721 -0.0384942824,14.4148425 0.0401054772,14.5970398 C0.118705237,14.7792371 0.299704683,14.8974609 0.500037404,14.8974609 L5.05032349,14.8974609 C5.28258944,16.0243945 6.29271969,16.875 7.50001599,16.875 C8.70734563,16.875 9.71740921,16.0243945 9.9497085,14.8974609 L14.5,14.8974609 C14.7003273,14.8974609 14.8812934,14.7792371 14.9598932,14.5970398 C15.0384929,14.4148425 14.9995264,14.2038721 14.8608935,14.060896 C13.4459311,12.6018677 12.6666669,10.685072 12.6666669,8.66366455 Z M7.00001752,1.4831543 C7.00001752,1.21055054 7.22431684,0.988769531 7.50001752,0.988769531 C7.77571515,0.988769531 8.00001752,1.21055054 8.00001752,1.4831543 L8.00001752,2.0015332 C7.8354483,1.98584473 7.66868214,1.97753906 7.50001752,1.97753906 C7.33134984,1.97753906 7.16458369,1.98584473 7.00001752,2.0015332 L7.00001752,1.4831543 Z M7.50001599,15.8862305 C6.84818465,15.8862305 6.29241969,15.4728918 6.08602032,14.8974609 L8.91401167,14.8974609 C8.7076123,15.4728918 8.15184733,15.8862305 7.50001599,15.8862305 L7.50001599,15.8862305 Z M1.57770077,13.9086914 C2.71639729,12.3994336 3.33336207,10.5729785 3.33336207,8.66366455 L3.33336207,7.08618164 C3.33336207,4.81448364 5.20252302,2.96630859 7.50001599,2.96630859 C9.79750897,2.96630859 11.6666699,4.81448364 11.6666699,7.08618164 L11.6666699,8.66366455 C11.6666699,10.5729785 12.2836347,12.3994336 13.4223645,13.9086914"
9
- id="Shape"
10
- ></path>
11
- <path
12
- d="M13.7705926,7.02729272 C13.7705926,7.28835319 14.0458159,7.5 14.3852963,7.5 C14.7247767,7.5 15,7.28835319 15,7.02729272 C15,5.13331221 14.0408983,3.3526869 12.2993607,2.01344415 C12.0593394,1.82886771 11.670109,1.82883619 11.4300467,2.01344415 C11.1899844,2.1980521 11.1899844,2.49733883 11.4300467,2.68194678 C12.9393902,3.84263224 13.7705926,5.38583244 13.7705926,7.02729272 L13.7705926,7.02729272 Z"
13
- id="Path"
14
- ></path>
15
- <path
16
- d="M0.614703713,7.5 C0.954184083,7.5 1.22940743,7.28835245 1.22940743,7.02729106 C1.22940743,5.38585655 2.06065077,3.84265095 3.56995328,2.68196143 C3.81001557,2.49735283 3.81001557,2.19806504 3.56995328,2.01345645 C3.32993197,1.82884785 2.94070158,1.82884785 2.70063929,2.01345645 C0.959101713,3.3527039 0,5.13330392 0,7.02729106 C0,7.28835245 0.275223342,7.5 0.614703713,7.5 Z"
17
- id="Path"
18
- ></path>
19
- </g>
20
- </g>
21
- </svg>
22
- </ng-template>
23
-
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { AnnaNotifyIconTemplateComponent } from './anna-notify-icon-template.component';
3
-
4
-
5
- describe('AnnaNotifyIconTemplateComponent', () => {
6
- let component: AnnaNotifyIconTemplateComponent;
7
- let fixture: ComponentFixture<AnnaNotifyIconTemplateComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ AnnaNotifyIconTemplateComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(AnnaNotifyIconTemplateComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,16 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'anna-notify-icon-template',
5
- templateUrl: './anna-notify-icon-template.component.html',
6
- styleUrls: ['./anna-notify-icon-template.component.scss'],
7
- changeDetection: ChangeDetectionStrategy.OnPush
8
- })
9
- export class AnnaNotifyIconTemplateComponent implements OnInit {
10
-
11
- constructor() { }
12
-
13
- ngOnInit(): void {
14
- }
15
-
16
- }
@@ -1,15 +0,0 @@
1
- <ng-container [ngTemplateOutlet]="PayForPerformanceIcon"
2
- [ngTemplateOutletContext]="{ color: color,width: width,height:height}">
3
- </ng-container>
4
-
5
- <ng-template #PayForPerformanceIcon let-color="color" let-width="width" let-height="height">
6
- <svg [attr.width]="width" [attr.height]="height" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="02.-PAY-FOR-PERFORMANCE-MARKED" transform="translate(-100.000000, -537.000000)" [attr.fill]="color" fill-rule="nonzero">
9
- <g id="PFP" transform="translate(100.000000, 537.000000)">
10
- <path d="M20,3.125 L20,8.3984375 C20,8.82995605 19.6502686,9.1796875 19.21875,9.1796875 C18.7872314,9.1796875 18.4375,8.82995605 18.4375,8.3984375 L18.4375,3.125 C18.4375,2.26348875 17.7365112,1.5625 16.875,1.5625 L3.125,1.5625 C2.26348875,1.5625 1.5625,2.26348875 1.5625,3.125 L1.5625,16.875 C1.5625,17.7365112 2.26348875,18.4375 3.125,18.4375 L12.96875,18.4375 C13.4002686,18.4375 13.75,18.7872314 13.75,19.21875 C13.75,19.6502686 13.4002686,20 12.96875,20 L3.125,20 C1.40182496,20 0,18.598175 0,16.875 L0,3.125 C0,1.40182496 1.40182496,0 3.125,0 L16.875,0 C18.598175,0 20,1.40182496 20,3.125 Z M15.9622314,5.43584332 C15.9447753,5.38514929 15.9230346,5.33649554 15.8936766,5.29255022 C15.8924071,5.290196 15.891455,5.28799875 15.8901855,5.28580147 C15.8589232,5.23981585 15.8206786,5.19995115 15.7789427,5.16322545 C15.7689451,5.15427945 15.7584715,5.1459612 15.7475217,5.13764299 C15.7022947,5.10280065 15.6545285,5.07203893 15.6008908,5.04975236 C15.6008908,5.04975236 15.6008908,5.04975236 15.6005734,5.04975236 C15.5488399,5.02825056 15.4929805,5.01600867 15.4358516,5.00863213 C15.4218867,5.00674875 15.4082392,5.00549317 15.3942744,5.00455147 C15.3791987,5.0036098 15.3652338,5 15.3499994,5 L13.0749975,5 C12.7161959,5 12.4249969,5.28799875 12.4249969,5.64285714 C12.4249969,5.99771553 12.7161959,6.28571429 13.0749975,6.28571429 L13.7624492,6.28571429 L11.4499961,8.53571429 C11.4415854,8.52708216 11.4320639,8.5182931 11.4230185,8.5102888 L10.4034253,7.61160714 C9.89545371,7.12554061 9.08263561,7.13071987 8.58291595,7.62416295 L3.19264032,12.9001116 C2.937623,13.1498152 2.93555998,13.557094 3.18787956,13.8094657 C3.31530888,13.9362793 3.48225238,14 3.64998933,14 C3.8153459,14 3.98054383,13.9383196 4.10733834,13.8141741 L9.5,8.53571429 C9.50840503,8.54434641 9.51792652,8.55313547 9.52697193,8.56113977 L10.5462477,9.45982143 C10.7899979,9.69320244 11.1100788,9.82142857 11.4499961,9.82142857 C11.7970545,9.82142857 12.1233243,9.68770926 12.3651702,9.44852121 L14.6999989,7.1770194 L14.6999989,7.89285714 C14.6999989,8.24771553 14.9911979,8.53571429 15.3499994,8.53571429 C15.708801,8.53571429 16,8.24771553 16,7.89285714 L16,5.64285714 C16,5.58431572 15.9895264,5.52844239 15.9746094,5.47445244 C15.9711181,5.46126884 15.9668335,5.44871304 15.9622314,5.43584332 Z M17.7789307,14.21875 L17.0629883,14.21875 C16.71875,14.21875 16.4280701,13.9146423 16.4280701,13.5546875 L16.4280701,13.2698059 C16.4280701,12.9200745 16.7010498,12.65625 17.0629883,12.65625 L17.7400207,12.65625 C17.9388428,12.65625 18.1446838,12.7894592 18.1446838,13.0123902 C18.1446838,13.4437561 18.4945679,13.7936402 18.9259338,13.7936402 C19.3574524,13.7936402 19.7071838,13.4437561 19.7071838,13.0123902 C19.7071838,12.0761109 19.0158081,11.2947082 18.1048584,11.1273193 L18.1048584,10.625 C18.1048584,10.1934814 17.755127,9.84375 17.3236084,9.84375 C16.8920898,9.84375 16.5423584,10.1934814 16.5423584,10.625 L16.5423584,11.1541748 C16.1557007,11.2454223 15.8015442,11.4382934 15.5142212,11.7193604 C15.0959778,12.1286011 14.8655701,12.6792908 14.8655701,13.2696533 L14.8655701,13.5546875 C14.8655701,14.7824097 15.8512879,15.78125 17.0629883,15.78125 L17.7789307,15.78125 C18.1373596,15.78125 18.4181213,16.053009 18.4181213,16.3999939 L18.4181213,16.5917969 C18.4181213,16.9313049 18.1433105,17.1875 17.7789307,17.1875 L16.615448,17.1875 C16.4233398,17.1875 16.2290955,17.0666504 16.2290955,16.8359375 C16.2290955,16.4044189 15.879364,16.0546875 15.4478455,16.0546875 C15.0163269,16.0546875 14.6665955,16.4044189 14.6665955,16.8359375 C14.6665955,17.8851318 15.4847717,18.7117004 16.5423584,18.7481689 L16.5423584,19.1796875 C16.5423584,19.6112061 16.8920898,19.9609375 17.3236084,19.9609375 C17.755127,19.9609375 18.1048584,19.6112061 18.1048584,19.1796875 L18.1048584,18.7272644 C19.1795349,18.5771179 19.9806213,17.6931763 19.9806213,16.5917969 L19.9806213,16.3999939 C19.9806213,15.8096313 19.7496033,15.2581787 19.3299866,14.8472595 C18.9161682,14.4419861 18.3653259,14.21875 17.7789307,14.21875 Z" id="Shape-Copy-9"></path>
11
- </g>
12
- </g>
13
- </g>
14
- </svg>
15
- </ng-template>
@@ -1,25 +0,0 @@
1
- import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { AnnaPayForPerformanceIconTemplateComponent } from './anna-pay-for-performance-icon-template.component';
3
-
4
-
5
- describe('AnnaPayForPerformanceIconTemplateComponent', () => {
6
- let component: AnnaPayForPerformanceIconTemplateComponent;
7
- let fixture: ComponentFixture<AnnaPayForPerformanceIconTemplateComponent>;
8
-
9
- beforeEach(async(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [ AnnaPayForPerformanceIconTemplateComponent ]
12
- })
13
- .compileComponents();
14
- }));
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(AnnaPayForPerformanceIconTemplateComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,19 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'anna-pay-for-performance-icon-template',
5
- templateUrl: './anna-pay-for-performance-icon-template.component.html',
6
- styleUrls: ['./anna-pay-for-performance-icon-template.component.scss'],
7
- changeDetection: ChangeDetectionStrategy.OnPush,
8
- })
9
- export class AnnaPayForPerformanceIconTemplateComponent implements OnInit {
10
-
11
- @Input() color: string;
12
- @Input() width: string;
13
- @Input() height: string;
14
- constructor() { }
15
-
16
- ngOnInit() {
17
- }
18
-
19
- }
@@ -1,14 +0,0 @@
1
- <ng-container [ngTemplateOutlet]="rejectedIcon"></ng-container>
2
-
3
- <ng-template #rejectedIcon>
4
- <svg width="15px" height="15px" viewBox="0 0 20 20">
5
- <g id="Buyer-rejected-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
- <path
7
- d="M15.7822266,4.21777344 C14.3671875,2.80276367 12.4951465,2 10.5,2 C6.37918945,2 3,5.37253906 3,9.5 C3,13.6296289 6.37133789,17 10.5,17 C14.6105273,17 18,13.6429004 18,9.5 C18,7.50485352 17.1972656,5.6327832 15.7822266,4.21777344 Z M10.5,15.2128906 C7.34220703,15.2128906 4.78710938,12.664502 4.78710938,9.5 C4.78710938,8.26950195 5.17382812,7.10055664 5.88574219,6.13375977 L13.8662402,14.1054395 C12.8993848,14.8261719 11.730498,15.2128906 10.5,15.2128906 Z M15.1054688,12.8661816 L7.13375977,4.88574219 C8.10061523,4.17382813 9.26950195,3.78710938 10.5,3.78710938 C13.6578809,3.78710938 16.2128906,6.33549805 16.2128906,9.5 C16.2128906,10.7304395 15.8261719,11.8993848 15.1054688,12.8661816 Z"
8
- id="Shape"
9
- fill="#4A4A4A"
10
- fill-rule="nonzero"
11
- ></path>
12
- </g>
13
- </svg>
14
- </ng-template>
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { AnnaRejectedIconTemplateComponent } from './anna-rejected-icon-template.component';
3
-
4
-
5
- describe('RejectedIconTemplateComponent', () => {
6
- let component: AnnaRejectedIconTemplateComponent;
7
- let fixture: ComponentFixture<AnnaRejectedIconTemplateComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ AnnaRejectedIconTemplateComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(AnnaRejectedIconTemplateComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,16 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'anna-rejected-icon-template',
5
- templateUrl: './anna-rejected-icon-template.component.html',
6
- styleUrls: ['./anna-rejected-icon-template.component.scss'],
7
- changeDetection: ChangeDetectionStrategy.OnPush
8
- })
9
- export class AnnaRejectedIconTemplateComponent implements OnInit {
10
-
11
- constructor() { }
12
-
13
- ngOnInit(): void {
14
- }
15
-
16
- }
@@ -1,35 +0,0 @@
1
- export class Constants {
2
- static readonly SUCCESS_STRING = "success";
3
- static readonly BACKEND_SERVER_URL = "/server/public/index.php/api";
4
- static readonly ERROR_MSG = "Error occurred please try again.";
5
- static readonly NO_DATA_MSG = "No Data to display";
6
- static readonly SERVER_ERROR = "Server error. Please try Again";
7
- static readonly USER_ORIGIN = "ANNA";
8
- static readonly ACTIVE_USER_STATUS = "active";
9
- static readonly DELETED_USER_STATUS = "deleted";
10
- static readonly INACTIVE_USER_STATUS = "inactive";
11
- static readonly OGAdminRole = "Ownership Group Admin";
12
- static readonly ASARole = "Anna Station Admin";
13
- static readonly dollars = "$";
14
- }
15
-
16
- export class ErrorCodes {
17
- static readonly BAD_REQUEST = 400;
18
- static readonly SERVER_ERROR = 500;
19
- static readonly SUCCESS_CODE = 200;
20
- static readonly SUCCESS_CODE_GET = 200;
21
- static readonly SUCCESS_CODE_POST = 201;
22
- static readonly SUCCESS_CODE_PATCH = 204;
23
- static readonly NO_CONTENT = 204;
24
- static readonly under_review = 409;
25
- }
26
-
27
- export enum Days {
28
- M = 1,
29
- Tu = 2,
30
- We = 3,
31
- Th = 4,
32
- F = 5,
33
- Sa = 6,
34
- Su = 7,
35
- }
@@ -1,307 +0,0 @@
1
- import {
2
- Directive,
3
- ElementRef,
4
- HostListener,
5
- Input,
6
- OnChanges,
7
- SimpleChanges,
8
- } from '@angular/core';
9
-
10
- @Directive({
11
- selector: '[digitOnly]',
12
- })
13
- export class DigitOnlyDirective implements OnChanges {
14
- private hasDecimalPoint = false;
15
- private hasNegativeSign = false;
16
- private navigationKeys = [
17
- 'Backspace',
18
- 'Delete',
19
- 'Tab',
20
- 'Escape',
21
- 'Enter',
22
- 'Home',
23
- 'End',
24
- 'ArrowLeft',
25
- 'ArrowRight',
26
- 'Clear',
27
- 'Copy',
28
- 'Paste',
29
- ];
30
-
31
- @Input() decimal = false;
32
- @Input() decimalSeparator = '.';
33
- @Input() allowNegatives = false;
34
- @Input() allowPaste = true;
35
- @Input() negativeSign = '-';
36
- @Input() min = -Infinity;
37
- @Input() max = Infinity;
38
- @Input() pattern?: string | RegExp;
39
- private regex: RegExp | null = null;
40
- inputElement: HTMLInputElement;
41
-
42
- constructor(public el: ElementRef) {
43
- this.inputElement = el.nativeElement;
44
- }
45
-
46
- ngOnChanges(changes: SimpleChanges): void {
47
- if (changes['pattern']) {
48
- this.regex = this.pattern ? RegExp(this.pattern) : null;
49
- }
50
-
51
- if (changes['min']) {
52
- const maybeMin = Number(this.min);
53
- this.min = isNaN(maybeMin) ? -Infinity : maybeMin;
54
- }
55
-
56
- if (changes['max']) {
57
- const maybeMax = Number(this.max);
58
- this.max = isNaN(maybeMax) ? Infinity : maybeMax;
59
- }
60
- }
61
-
62
- @HostListener('beforeinput', ['$event'])
63
- onBeforeInput(e: InputEvent): any {
64
- if (isNaN(Number(e.data))) {
65
- if (
66
- e.data === this.decimalSeparator ||
67
- (e.data === this.negativeSign && this.allowNegatives)
68
- ) {
69
- return; // go on
70
- }
71
- e.preventDefault();
72
- e.stopPropagation();
73
- }
74
- }
75
-
76
- @HostListener('keydown', ['$event'])
77
- onKeyDown(e: KeyboardEvent): any {
78
- console.log("called");
79
- if (
80
- this.navigationKeys.indexOf(e.key) > -1 || // Allow: navigation keys: backspace, delete, arrows etc.
81
- ((e.key === 'a' || e.code === 'KeyA') && e.ctrlKey === true) || // Allow: Ctrl+A
82
- ((e.key === 'c' || e.code === 'KeyC') && e.ctrlKey === true) || // Allow: Ctrl+C
83
- ((e.key === 'v' || e.code === 'KeyV') && e.ctrlKey === true) || // Allow: Ctrl+V
84
- ((e.key === 'x' || e.code === 'KeyX') && e.ctrlKey === true) || // Allow: Ctrl+X
85
- ((e.key === 'a' || e.code === 'KeyA') && e.metaKey === true) || // Allow: Cmd+A (Mac)
86
- ((e.key === 'c' || e.code === 'KeyC') && e.metaKey === true) || // Allow: Cmd+C (Mac)
87
- ((e.key === 'v' || e.code === 'KeyV') && e.metaKey === true) || // Allow: Cmd+V (Mac)
88
- ((e.key === 'x' || e.code === 'KeyX') && e.metaKey === true) // Allow: Cmd+X (Mac)
89
- ) {
90
- // let it happen, don't do anything
91
- return;
92
- }
93
-
94
- let newValue = '';
95
-
96
- if (this.decimal && e.key === this.decimalSeparator) {
97
- newValue = this.forecastValue(e.key);
98
- if (newValue.split(this.decimalSeparator).length > 2) {
99
- // has two or more decimal points
100
- e.preventDefault();
101
- return;
102
- } else {
103
- this.hasDecimalPoint = newValue.indexOf(this.decimalSeparator) > -1;
104
- return; // Allow: only one decimal point
105
- }
106
- }
107
-
108
- if (e.key === this.negativeSign && this.allowNegatives) {
109
- newValue = this.forecastValue(e.key);
110
- if (
111
- newValue.charAt(0) !== this.negativeSign ||
112
- newValue.split(this.negativeSign).length > 2
113
- ) {
114
- e.preventDefault();
115
- return;
116
- } else {
117
- this.hasNegativeSign = newValue.split(this.negativeSign).length > -1;
118
- return;
119
- }
120
- }
121
-
122
- // Ensure that it is a number and stop the keypress
123
- if (e.key === ' ' || isNaN(Number(e.key))) {
124
- e.preventDefault();
125
- return;
126
- }
127
-
128
- newValue = newValue || this.forecastValue(e.key);
129
- // check the input pattern RegExp
130
- if (this.regex) {
131
- if (!this.regex.test(newValue)) {
132
- e.preventDefault();
133
- return;
134
- }
135
- }
136
-
137
- const newNumber = Number(newValue);
138
- if (newNumber > this.max || newNumber < this.min) {
139
- e.preventDefault();
140
- }
141
- }
142
-
143
- @HostListener('paste', ['$event'])
144
- onPaste(event: any): void {
145
- if (this.allowPaste === true) {
146
- let pastedInput: string = '';
147
- if ((window as { [key: string]: any })['clipboardData']) {
148
- // Browser is IE
149
- pastedInput = (window as { [key: string]: any })[
150
- 'clipboardData'
151
- ].getData('text');
152
- } else if (event.clipboardData && event.clipboardData.getData) {
153
- // Other browsers
154
- pastedInput = event.clipboardData.getData('text/plain');
155
- }
156
-
157
- this.pasteData(pastedInput);
158
- event.preventDefault();
159
- } else {
160
- // this prevents the paste
161
- event.preventDefault();
162
- event.stopPropagation();
163
- }
164
- }
165
-
166
- @HostListener('drop', ['$event'])
167
- onDrop(event: DragEvent): void {
168
- const textData = event.dataTransfer?.getData('text') ?? '';
169
- this.inputElement.focus();
170
- this.pasteData(textData);
171
- event.preventDefault();
172
- }
173
-
174
- private pasteData(pastedContent: string): void {
175
- const sanitizedContent = this.sanitizeInput(pastedContent);
176
- if (
177
- sanitizedContent.includes(this.negativeSign) &&
178
- this.hasNegativeSign &&
179
- !this.getSelection().includes(this.negativeSign)
180
- ) {
181
- return;
182
- }
183
- const pasted = document.execCommand('insertText', false, sanitizedContent);
184
- if (!pasted) {
185
- if (this.inputElement.setRangeText) {
186
- const { selectionStart: start, selectionEnd: end } = this.inputElement;
187
- this.inputElement.setRangeText(
188
- sanitizedContent,
189
- start ?? 0,
190
- end ?? 0,
191
- 'end'
192
- );
193
- // Angular's Reactive Form relies on "input" event, but on Firefox, the setRangeText method doesn't trigger it
194
- // so we have to trigger it ourself.
195
- if (
196
- typeof (window as { [key: string]: any })['InstallTrigger'] !==
197
- 'undefined'
198
- ) {
199
- this.inputElement.dispatchEvent(
200
- new Event('input', { cancelable: true })
201
- );
202
- }
203
- } else {
204
- // Browser does not support setRangeText, e.g. IE
205
- this.insertAtCursor(this.inputElement, sanitizedContent);
206
- }
207
- }
208
- if (this.decimal) {
209
- this.hasDecimalPoint =
210
- this.inputElement.value.indexOf(this.decimalSeparator) > -1;
211
- }
212
- this.hasNegativeSign =
213
- this.inputElement.value.indexOf(this.negativeSign) > -1;
214
- }
215
-
216
- // The following 2 methods were added from the below article for browsers that do not support setRangeText
217
- // https://stackoverflow.com/questions/11076975/how-to-insert-text-into-the-textarea-at-the-current-cursor-position
218
- private insertAtCursor(myField: HTMLInputElement, myValue: string): void {
219
- const startPos = myField.selectionStart ?? 0;
220
- const endPos = myField.selectionEnd ?? 0;
221
-
222
- myField.value =
223
- myField.value.substring(0, startPos) +
224
- myValue +
225
- myField.value.substring(endPos, myField.value.length);
226
-
227
- const pos = startPos + myValue.length;
228
- myField.focus();
229
- myField.setSelectionRange(pos, pos);
230
-
231
- this.triggerEvent(myField, 'input');
232
- }
233
-
234
- private triggerEvent(el: HTMLInputElement, type: string): void {
235
- if ('createEvent' in document) {
236
- // modern browsers, IE9+
237
- const e = document.createEvent('HTMLEvents');
238
- e.initEvent(type, false, true);
239
- el.dispatchEvent(e);
240
- }
241
- }
242
- // end stack overflow code
243
-
244
- private sanitizeInput(input: string): string {
245
- let result = '';
246
- let regex;
247
- if (this.decimal && this.isValidDecimal(input)) {
248
- regex = new RegExp(
249
- `${this.getNegativeSignRegExp()}[^0-9${this.decimalSeparator}]`,
250
- 'g'
251
- );
252
- } else {
253
- regex = new RegExp(`${this.getNegativeSignRegExp()}[^0-9]`, 'g');
254
- }
255
- result = input.replace(regex, '');
256
-
257
- const maxLength = this.inputElement.maxLength;
258
- if (maxLength > 0) {
259
- // the input element has maxLength limit
260
- const allowedLength =
261
- maxLength -
262
- this.inputElement.value.length +
263
- (result.includes(`${this.negativeSign}`) ? 1 : 0);
264
- result = allowedLength > 0 ? result.substring(0, allowedLength) : '';
265
- }
266
- return result;
267
- }
268
-
269
- private getNegativeSignRegExp(): string {
270
- return this.allowNegatives &&
271
- (!this.hasNegativeSign || this.getSelection().includes(this.negativeSign))
272
- ? `(?!^${this.negativeSign})`
273
- : '';
274
- }
275
-
276
- private isValidDecimal(string: string): boolean {
277
- if (!this.hasDecimalPoint) {
278
- return string.split(this.decimalSeparator).length <= 2;
279
- } else {
280
- // the input element already has a decimal separator
281
- const selectedText = this.getSelection();
282
- if (selectedText && selectedText.indexOf(this.decimalSeparator) > -1) {
283
- return string.split(this.decimalSeparator).length <= 2;
284
- } else {
285
- return string.indexOf(this.decimalSeparator) < 0;
286
- }
287
- }
288
- }
289
-
290
- private getSelection(): string {
291
- return this.inputElement.value.substring(
292
- this.inputElement.selectionStart ?? 0,
293
- this.inputElement.selectionEnd ?? 0
294
- );
295
- }
296
-
297
- private forecastValue(key: string): string {
298
- const selectionStart = this.inputElement.selectionStart ?? 0;
299
- const selectionEnd = this.inputElement.selectionEnd ?? 0;
300
- const oldValue = this.inputElement.value;
301
- return (
302
- oldValue.substring(0, selectionStart) +
303
- key +
304
- oldValue.substring(selectionEnd)
305
- );
306
- }
307
- }
@@ -1,19 +0,0 @@
1
- import { Directive, ElementRef, HostListener } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[showEllipsisTextOnHover]'
5
- })
6
-
7
- export class showEllipsisTextOnHoverDirective {
8
-
9
- constructor(private elementRef: ElementRef) {}
10
-
11
- @HostListener('mouseenter')
12
- onMouseEnter(): void {
13
- const element = this.elementRef.nativeElement;
14
- if (element.offsetWidth < element.scrollWidth) {
15
- element.title = element.textContent;
16
- }
17
- else if (element.title) element.removeAttribute('title');
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- export interface WeekObject {
2
- startDate: string;
3
- endDate: string;
4
- }
5
-
6
- export interface SellerGroupHierarchy {
7
- inventoryCode: string;
8
- program: string;
9
- }
10
-
11
- export interface RatingSellerGroupHierarchy{
12
- InventoryCode: string;
13
- Program: string;
14
- }
15
- export interface GtColumnIconEmittedData{
16
- data: any;
17
- key: string;
18
- }
19
-
@@ -1,6 +0,0 @@
1
- export enum UserActivationStatus {
2
- activationEmailSent = 'ActivationEmailSent' ,
3
- activationEmailReSent = 'ActivationEmailResent' ,
4
- ResendActivationEmail = 'ResendActivationEmail' ,
5
- lastSignedIn = 'LastSignedIn',
6
- }
@@ -1,13 +0,0 @@
1
- export type SortType = "DEFAULT" | "ASC" | "DESC";
2
-
3
- export interface SortOption{
4
- sortType: SortType,
5
- isOptionActive: boolean,
6
- text: string
7
- }
8
-
9
- export enum SortTypeEnum {
10
- DEFAULT = "DEFAULT",
11
- ASC = "ASC",
12
- DESC = "DESC"
13
- }
@@ -1,44 +0,0 @@
1
- export class TooltipModel {
2
- isSelected: boolean;
3
- label: string;
4
- id: number;
5
- value: string;
6
-
7
- constructor(obj: string,id: number) {
8
- this.label = obj ? obj.toString() : null;
9
- this.value = obj;
10
- this.isSelected = false;
11
- this.id = id;
12
- }
13
- }
14
-
15
- export class tooltipModelForColumnLevelFiltering {
16
- isHidden;
17
- isSelected: boolean;
18
- data: string;
19
- constructor(data: string) {
20
- this.data = data;
21
- this.isSelected = true;
22
- this.isHidden = false;
23
- }
24
- }
25
-
26
- export class radioButtonModel {
27
- key: string;
28
- label: string;
29
- isSortRequired: boolean;
30
- isFilterRequired: boolean;
31
-
32
- constructor(key: string, value: string,sort: boolean, filter: boolean) {
33
- this.key = key;
34
- this.label = value;
35
- this.isSortRequired = sort;
36
- this.isFilterRequired = filter;
37
- }
38
- }
39
-
40
- export enum AllSelectedStatus {
41
- none = 0,
42
- allSelected = 1,
43
- fewSelected = 2,
44
- }