tango-app-ui-analyse-trax 3.9.2 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (470) hide show
  1. package/.eslintrc.json +37 -0
  2. package/ng-package.json +7 -0
  3. package/package.json +12 -25
  4. package/src/lib/components/action-centre/action-centre.component.html +607 -0
  5. package/src/lib/components/action-centre/action-centre.component.scss +185 -0
  6. package/src/lib/components/action-centre/action-centre.component.spec.ts +23 -0
  7. package/src/lib/components/action-centre/action-centre.component.ts +279 -0
  8. package/src/lib/components/activity-log/activity-log.component.html +84 -0
  9. package/src/lib/components/activity-log/activity-log.component.scss +33 -0
  10. package/src/lib/components/activity-log/activity-log.component.spec.ts +23 -0
  11. package/src/lib/components/activity-log/activity-log.component.ts +137 -0
  12. package/src/lib/components/activity-log-v2/activity-log-v2.component.html +189 -0
  13. package/src/lib/components/activity-log-v2/activity-log-v2.component.scss +162 -0
  14. package/src/lib/components/activity-log-v2/activity-log-v2.component.spec.ts +23 -0
  15. package/src/lib/components/activity-log-v2/activity-log-v2.component.ts +517 -0
  16. package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.html +19 -0
  17. package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.scss +148 -0
  18. package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.spec.ts +23 -0
  19. package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.ts +141 -0
  20. package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.html +42 -0
  21. package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.scss +49 -0
  22. package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.spec.ts +23 -0
  23. package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.ts +22 -0
  24. package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.html +724 -0
  25. package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.scss +217 -0
  26. package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.spec.ts +23 -0
  27. package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.ts +122 -0
  28. package/src/lib/components/add-checklist/add-checklist.component.html +1459 -0
  29. package/src/lib/components/add-checklist/add-checklist.component.scss +1205 -0
  30. package/src/lib/components/add-checklist/add-checklist.component.spec.ts +23 -0
  31. package/src/lib/components/add-checklist/add-checklist.component.ts +2460 -0
  32. package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.html +207 -0
  33. package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.scss +213 -0
  34. package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.spec.ts +23 -0
  35. package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.ts +621 -0
  36. package/src/lib/components/add-checklist/counter/counter.component.html +43 -0
  37. package/src/lib/components/add-checklist/counter/counter.component.scss +49 -0
  38. package/src/lib/components/add-checklist/counter/counter.component.spec.ts +23 -0
  39. package/src/lib/components/add-checklist/counter/counter.component.ts +123 -0
  40. package/src/lib/components/add-multitask/add-multitask.component.html +705 -0
  41. package/src/lib/components/add-multitask/add-multitask.component.scss +296 -0
  42. package/src/lib/components/add-multitask/add-multitask.component.spec.ts +23 -0
  43. package/src/lib/components/add-multitask/add-multitask.component.ts +611 -0
  44. package/src/lib/components/add-multitask/ascending-validator.ts +13 -0
  45. package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.html +197 -0
  46. package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.scss +31 -0
  47. package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.spec.ts +23 -0
  48. package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.ts +285 -0
  49. package/src/lib/components/add-multitask/create-task.data.ts +374 -0
  50. package/src/lib/components/add-multitask/create-task.interface.ts +177 -0
  51. package/src/lib/components/add-multitask/unique-string-validator.ts +13 -0
  52. package/src/lib/components/add-multitask/whitespace-validator.ts +11 -0
  53. package/src/lib/components/add-task/add-task.component.html +654 -0
  54. package/src/lib/components/add-task/add-task.component.scss +536 -0
  55. package/src/lib/components/add-task/add-task.component.spec.ts +23 -0
  56. package/src/lib/components/add-task/add-task.component.ts +569 -0
  57. package/src/lib/components/add-task/ascending-validator.ts +13 -0
  58. package/src/lib/components/add-task/create-task.data.ts +374 -0
  59. package/src/lib/components/add-task/create-task.interface.ts +192 -0
  60. package/src/lib/components/add-task/unique-string-validator.ts +13 -0
  61. package/src/lib/components/add-task/whitespace-validator.ts +11 -0
  62. package/src/lib/components/approval-popup/approval-popup.component.html +25 -0
  63. package/src/lib/components/approval-popup/approval-popup.component.scss +3 -0
  64. package/src/lib/components/approval-popup/approval-popup.component.spec.ts +23 -0
  65. package/src/lib/components/approval-popup/approval-popup.component.ts +26 -0
  66. package/src/lib/components/checklist/checklist.component.html +330 -0
  67. package/src/lib/components/checklist/checklist.component.scss +112 -0
  68. package/src/lib/components/checklist/checklist.component.spec.ts +23 -0
  69. package/src/lib/components/checklist/checklist.component.ts +344 -0
  70. package/src/lib/components/checklist-configure/assign/assign.component.html +665 -0
  71. package/src/lib/components/checklist-configure/assign/assign.component.scss +219 -0
  72. package/src/lib/components/checklist-configure/assign/assign.component.spec.ts +23 -0
  73. package/src/lib/components/checklist-configure/assign/assign.component.ts +932 -0
  74. package/src/lib/components/checklist-configure/checklist-configure.component.html +4340 -0
  75. package/src/lib/components/checklist-configure/checklist-configure.component.scss +2338 -0
  76. package/src/lib/components/checklist-configure/checklist-configure.component.spec.ts +23 -0
  77. package/src/lib/components/checklist-configure/checklist-configure.component.ts +4659 -0
  78. package/src/lib/components/checklistlayout/checklistlayout.component.html +30 -0
  79. package/src/lib/components/checklistlayout/checklistlayout.component.scss +15 -0
  80. package/src/lib/components/checklistlayout/checklistlayout.component.spec.ts +23 -0
  81. package/src/lib/components/checklistlayout/checklistlayout.component.ts +47 -0
  82. package/src/lib/components/chip-dropdown/chip-dropdown.component.html +36 -0
  83. package/src/lib/components/chip-dropdown/chip-dropdown.component.scss +97 -0
  84. package/src/lib/components/chip-dropdown/chip-dropdown.component.spec.ts +23 -0
  85. package/src/lib/components/chip-dropdown/chip-dropdown.component.ts +125 -0
  86. package/src/lib/components/create-task/create-task.component.html +2003 -0
  87. package/src/lib/components/create-task/create-task.component.scss +272 -0
  88. package/src/lib/components/create-task/create-task.component.spec.ts +23 -0
  89. package/src/lib/components/create-task/create-task.component.ts +614 -0
  90. package/src/lib/components/create-task/create-task.data.ts +372 -0
  91. package/src/lib/components/create-task/create-task.interface.ts +182 -0
  92. package/src/lib/components/create-task/validators/ascending-validator.ts +13 -0
  93. package/src/lib/components/create-task/validators/unique-string-validator.ts +13 -0
  94. package/src/lib/components/create-task/validators/whitespace-validator.ts +11 -0
  95. package/src/lib/components/custom-select/custom-select.component.html +44 -0
  96. package/src/lib/components/custom-select/custom-select.component.scss +144 -0
  97. package/src/lib/components/custom-select/custom-select.component.spec.ts +23 -0
  98. package/src/lib/components/custom-select/custom-select.component.ts +265 -0
  99. package/src/lib/components/dashboard/dashboard.component.html +1076 -0
  100. package/src/lib/components/dashboard/dashboard.component.scss +237 -0
  101. package/src/lib/components/dashboard/dashboard.component.spec.ts +23 -0
  102. package/src/lib/components/dashboard/dashboard.component.ts +539 -0
  103. package/src/lib/components/dashboard-info/dashboard-info.component.html +1420 -0
  104. package/src/lib/components/dashboard-info/dashboard-info.component.scss +409 -0
  105. package/src/lib/components/dashboard-info/dashboard-info.component.spec.ts +23 -0
  106. package/src/lib/components/dashboard-info/dashboard-info.component.ts +772 -0
  107. package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.html +110 -0
  108. package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.scss +260 -0
  109. package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.spec.ts +23 -0
  110. package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.ts +143 -0
  111. package/src/lib/components/dashboard-layout/dashboard-layout.component.html +1 -0
  112. package/src/lib/components/dashboard-layout/dashboard-layout.component.scss +0 -0
  113. package/src/lib/components/dashboard-layout/dashboard-layout.component.spec.ts +23 -0
  114. package/src/lib/components/dashboard-layout/dashboard-layout.component.ts +10 -0
  115. package/src/lib/components/disabled-select/disabled-select.component.html +44 -0
  116. package/src/lib/components/disabled-select/disabled-select.component.scss +149 -0
  117. package/src/lib/components/disabled-select/disabled-select.component.spec.ts +23 -0
  118. package/src/lib/components/disabled-select/disabled-select.component.ts +146 -0
  119. package/src/lib/components/export-gallery/export-gallery.component.html +175 -0
  120. package/src/lib/components/export-gallery/export-gallery.component.scss +200 -0
  121. package/src/lib/components/export-gallery/export-gallery.component.spec.ts +23 -0
  122. package/src/lib/components/export-gallery/export-gallery.component.ts +263 -0
  123. package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.html +36 -0
  124. package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.scss +97 -0
  125. package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.spec.ts +23 -0
  126. package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.ts +104 -0
  127. package/src/lib/components/eye-test-audit/custom-select/custom-select.component.html +44 -0
  128. package/src/lib/components/eye-test-audit/custom-select/custom-select.component.scss +144 -0
  129. package/src/lib/components/eye-test-audit/custom-select/custom-select.component.spec.ts +23 -0
  130. package/src/lib/components/eye-test-audit/custom-select/custom-select.component.ts +265 -0
  131. package/src/lib/components/eye-test-audit/eye-test/eye-test.component.html +1804 -0
  132. package/src/lib/components/eye-test-audit/eye-test/eye-test.component.scss +806 -0
  133. package/src/lib/components/eye-test-audit/eye-test/eye-test.component.spec.ts +23 -0
  134. package/src/lib/components/eye-test-audit/eye-test/eye-test.component.ts +1890 -0
  135. package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.html +25 -0
  136. package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.scss +0 -0
  137. package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.spec.ts +23 -0
  138. package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.ts +20 -0
  139. package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.ts +26 -0
  140. package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.html +1 -0
  141. package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.scss +0 -0
  142. package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.spec.ts +23 -0
  143. package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.ts +24 -0
  144. package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.ts +44 -0
  145. package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.html +490 -0
  146. package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.scss +721 -0
  147. package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.spec.ts +23 -0
  148. package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.ts +1017 -0
  149. package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.html +708 -0
  150. package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.scss +247 -0
  151. package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.spec.ts +23 -0
  152. package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.ts +446 -0
  153. package/src/lib/components/eye-test-audit/group-select/group-select.component.html +44 -0
  154. package/src/lib/components/eye-test-audit/group-select/group-select.component.scss +144 -0
  155. package/src/lib/components/eye-test-audit/group-select/group-select.component.spec.ts +23 -0
  156. package/src/lib/components/eye-test-audit/group-select/group-select.component.ts +147 -0
  157. package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.html +18 -0
  158. package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.scss +49 -0
  159. package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.spec.ts +23 -0
  160. package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.ts +104 -0
  161. package/src/lib/components/eye-test-audit/select-drop/select-drop.component.html +44 -0
  162. package/src/lib/components/eye-test-audit/select-drop/select-drop.component.scss +144 -0
  163. package/src/lib/components/eye-test-audit/select-drop/select-drop.component.spec.ts +23 -0
  164. package/src/lib/components/eye-test-audit/select-drop/select-drop.component.ts +152 -0
  165. package/src/lib/components/eye-test-audit/services/eye-test-audit.service.spec.ts +16 -0
  166. package/src/lib/components/eye-test-audit/services/eye-test-audit.service.ts +190 -0
  167. package/src/lib/components/flag-layout/flag-layout.component.html +1 -0
  168. package/src/lib/components/flag-layout/flag-layout.component.scss +0 -0
  169. package/src/lib/components/flag-layout/flag-layout.component.spec.ts +23 -0
  170. package/src/lib/components/flag-layout/flag-layout.component.ts +10 -0
  171. package/src/lib/components/flags/flags.component.html +473 -0
  172. package/src/lib/components/flags/flags.component.scss +86 -0
  173. package/src/lib/components/flags/flags.component.spec.ts +23 -0
  174. package/src/lib/components/flags/flags.component.ts +280 -0
  175. package/{lib/components/flags/flags.interface.d.ts → src/lib/components/flags/flags.interface.ts} +73 -65
  176. package/src/lib/components/flags-info/flags-info.component.html +6012 -0
  177. package/src/lib/components/flags-info/flags-info.component.scss +278 -0
  178. package/src/lib/components/flags-info/flags-info.component.spec.ts +23 -0
  179. package/src/lib/components/flags-info/flags-info.component.ts +490 -0
  180. package/src/lib/components/flags-info/flags-info.interface.ts +441 -0
  181. package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.html +1 -0
  182. package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.scss +4 -0
  183. package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.ts +78 -0
  184. package/src/lib/components/flags-new/flags-new.component.html +904 -0
  185. package/src/lib/components/flags-new/flags-new.component.scss +121 -0
  186. package/src/lib/components/flags-new/flags-new.component.spec.ts +23 -0
  187. package/src/lib/components/flags-new/flags-new.component.ts +357 -0
  188. package/{lib/components/flags-new/flags-new.interface.d.ts → src/lib/components/flags-new/flags-new.interface.ts} +90 -81
  189. package/src/lib/components/gallery/gallery.component.html +3660 -0
  190. package/src/lib/components/gallery/gallery.component.scss +930 -0
  191. package/src/lib/components/gallery/gallery.component.ts +3527 -0
  192. package/src/lib/components/group-select/group-select.component.html +44 -0
  193. package/src/lib/components/group-select/group-select.component.scss +144 -0
  194. package/src/lib/components/group-select/group-select.component.spec.ts +23 -0
  195. package/src/lib/components/group-select/group-select.component.ts +145 -0
  196. package/src/lib/components/image-popup/image-popup.component.html +11 -0
  197. package/src/lib/components/image-popup/image-popup.component.scss +5 -0
  198. package/src/lib/components/image-popup/image-popup.component.ts +18 -0
  199. package/src/lib/components/lib/custom-select/custom-select.component.html +42 -0
  200. package/src/lib/components/lib/custom-select/custom-select.component.scss +131 -0
  201. package/src/lib/components/lib/custom-select/custom-select.component.spec.ts +23 -0
  202. package/src/lib/components/lib/custom-select/custom-select.component.ts +151 -0
  203. package/src/lib/components/manage-task/manage-task.component.html +265 -0
  204. package/src/lib/components/manage-task/manage-task.component.scss +69 -0
  205. package/src/lib/components/manage-task/manage-task.component.spec.ts +23 -0
  206. package/src/lib/components/manage-task/manage-task.component.ts +267 -0
  207. package/src/lib/components/managechecklist/managechecklist.component.html +176 -0
  208. package/src/lib/components/managechecklist/managechecklist.component.scss +43 -0
  209. package/src/lib/components/managechecklist/managechecklist.component.spec.ts +23 -0
  210. package/src/lib/components/managechecklist/managechecklist.component.ts +176 -0
  211. package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.html +46 -0
  212. package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.scss +181 -0
  213. package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.spec.ts +23 -0
  214. package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.ts +221 -0
  215. package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.html +36 -0
  216. package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.scss +89 -0
  217. package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.spec.ts +23 -0
  218. package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.ts +118 -0
  219. package/src/lib/components/orders/orders.component.html +203 -0
  220. package/src/lib/components/orders/orders.component.scss +180 -0
  221. package/src/lib/components/orders/orders.component.spec.ts +25 -0
  222. package/src/lib/components/orders/orders.component.ts +197 -0
  223. package/src/lib/components/pagination/pagination.component.html +28 -0
  224. package/src/lib/components/pagination/pagination.component.scss +6 -0
  225. package/src/lib/components/pagination/pagination.component.spec.ts +23 -0
  226. package/src/lib/components/pagination/pagination.component.ts +54 -0
  227. package/src/lib/components/reactive-select/reactive-select.component.html +18 -0
  228. package/src/lib/components/reactive-select/reactive-select.component.scss +48 -0
  229. package/src/lib/components/reactive-select/reactive-select.component.spec.ts +23 -0
  230. package/src/lib/components/reactive-select/reactive-select.component.ts +104 -0
  231. package/src/lib/components/reports/date-picker/date-picker.component.html +54 -0
  232. package/src/lib/components/reports/date-picker/date-picker.component.scss +156 -0
  233. package/src/lib/components/reports/date-picker/date-picker.component.spec.ts +23 -0
  234. package/src/lib/components/reports/date-picker/date-picker.component.ts +60 -0
  235. package/src/lib/components/reports/reports.component.html +225 -0
  236. package/src/lib/components/reports/reports.component.scss +69 -0
  237. package/src/lib/components/reports/reports.component.spec.ts +23 -0
  238. package/src/lib/components/reports/reports.component.ts +334 -0
  239. package/{lib/components/reports/reports.interface.d.ts → src/lib/components/reports/reports.interface.ts} +50 -46
  240. package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.html +1 -0
  241. package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.scss +15 -0
  242. package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.spec.ts +23 -0
  243. package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.ts +31 -0
  244. package/src/lib/components/task/task.component.html +322 -0
  245. package/src/lib/components/task/task.component.scss +169 -0
  246. package/src/lib/components/task/task.component.spec.ts +23 -0
  247. package/src/lib/components/task/task.component.ts +340 -0
  248. package/src/lib/components/task-configure/task-configure.component.html +737 -0
  249. package/src/lib/components/task-configure/task-configure.component.scss +569 -0
  250. package/src/lib/components/task-configure/task-configure.component.spec.ts +23 -0
  251. package/src/lib/components/task-configure/task-configure.component.ts +1603 -0
  252. package/src/lib/components/task-configure/task-configure.interface.ts +138 -0
  253. package/src/lib/components/task-info/task-info.component.html +390 -0
  254. package/src/lib/components/task-info/task-info.component.scss +56 -0
  255. package/src/lib/components/task-info/task-info.component.spec.ts +23 -0
  256. package/src/lib/components/task-info/task-info.component.ts +400 -0
  257. package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.html +141 -0
  258. package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.scss +460 -0
  259. package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.spec.ts +23 -0
  260. package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.ts +202 -0
  261. package/src/lib/components/task-layout/task-layout.component.html +1 -0
  262. package/src/lib/components/task-layout/task-layout.component.scss +0 -0
  263. package/src/lib/components/task-layout/task-layout.component.spec.ts +23 -0
  264. package/src/lib/components/task-layout/task-layout.component.ts +10 -0
  265. package/src/lib/components/task-logs/task-logs.component.html +97 -0
  266. package/src/lib/components/task-logs/task-logs.component.scss +301 -0
  267. package/src/lib/components/task-logs/task-logs.component.spec.ts +23 -0
  268. package/src/lib/components/task-logs/task-logs.component.ts +80 -0
  269. package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.html +84 -0
  270. package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.scss +229 -0
  271. package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.spec.ts +23 -0
  272. package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.ts +111 -0
  273. package/src/lib/components/trax-store/trax-store.component.html +78 -0
  274. package/src/lib/components/trax-store/trax-store.component.scss +134 -0
  275. package/src/lib/components/trax-store/trax-store.component.spec.ts +23 -0
  276. package/src/lib/components/trax-store/trax-store.component.ts +172 -0
  277. package/src/lib/components/traxpopup/traxpopup.component.html +130 -0
  278. package/src/lib/components/traxpopup/traxpopup.component.scss +225 -0
  279. package/src/lib/components/traxpopup/traxpopup.component.spec.ts +23 -0
  280. package/src/lib/components/traxpopup/traxpopup.component.ts +71 -0
  281. package/src/lib/services/trax.service.spec.ts +16 -0
  282. package/src/lib/services/trax.service.ts +789 -0
  283. package/src/lib/tango-analyse-trax-routing.module.ts +151 -0
  284. package/src/lib/tango-analyse-trax.module.ts +140 -0
  285. package/{public-api.d.ts → src/public-api.ts} +6 -2
  286. package/tsconfig.lib.json +14 -0
  287. package/tsconfig.lib.prod.json +10 -0
  288. package/tsconfig.spec.json +14 -0
  289. package/esm2022/lib/components/action-centre/action-centre.component.mjs +0 -288
  290. package/esm2022/lib/components/activity-log/activity-log.component.mjs +0 -150
  291. package/esm2022/lib/components/activity-log-v2/activity-log-v2.component.mjs +0 -502
  292. package/esm2022/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.mjs +0 -114
  293. package/esm2022/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.mjs +0 -24
  294. package/esm2022/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.mjs +0 -126
  295. package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +0 -2352
  296. package/esm2022/lib/components/add-checklist/checklist-popup/checklist-popup.component.mjs +0 -612
  297. package/esm2022/lib/components/add-checklist/counter/counter.component.mjs +0 -138
  298. package/esm2022/lib/components/add-multitask/add-multitask.component.mjs +0 -604
  299. package/esm2022/lib/components/add-multitask/ascending-validator.mjs +0 -11
  300. package/esm2022/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.mjs +0 -297
  301. package/esm2022/lib/components/add-multitask/create-task.data.mjs +0 -372
  302. package/esm2022/lib/components/add-multitask/create-task.interface.mjs +0 -2
  303. package/esm2022/lib/components/add-multitask/unique-string-validator.mjs +0 -10
  304. package/esm2022/lib/components/add-multitask/whitespace-validator.mjs +0 -10
  305. package/esm2022/lib/components/add-task/add-task.component.mjs +0 -561
  306. package/esm2022/lib/components/add-task/ascending-validator.mjs +0 -11
  307. package/esm2022/lib/components/add-task/create-task.data.mjs +0 -372
  308. package/esm2022/lib/components/add-task/create-task.interface.mjs +0 -2
  309. package/esm2022/lib/components/add-task/unique-string-validator.mjs +0 -10
  310. package/esm2022/lib/components/add-task/whitespace-validator.mjs +0 -10
  311. package/esm2022/lib/components/approval-popup/approval-popup.component.mjs +0 -30
  312. package/esm2022/lib/components/checklist/checklist.component.mjs +0 -327
  313. package/esm2022/lib/components/checklist-configure/assign/assign.component.mjs +0 -912
  314. package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +0 -4161
  315. package/esm2022/lib/components/checklistlayout/checklistlayout.component.mjs +0 -44
  316. package/esm2022/lib/components/chip-dropdown/chip-dropdown.component.mjs +0 -120
  317. package/esm2022/lib/components/create-task/create-task.component.mjs +0 -585
  318. package/esm2022/lib/components/create-task/create-task.data.mjs +0 -372
  319. package/esm2022/lib/components/create-task/create-task.interface.mjs +0 -2
  320. package/esm2022/lib/components/create-task/validators/ascending-validator.mjs +0 -11
  321. package/esm2022/lib/components/create-task/validators/unique-string-validator.mjs +0 -10
  322. package/esm2022/lib/components/create-task/validators/whitespace-validator.mjs +0 -10
  323. package/esm2022/lib/components/custom-select/custom-select.component.mjs +0 -240
  324. package/esm2022/lib/components/dashboard/dashboard.component.mjs +0 -532
  325. package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +0 -741
  326. package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +0 -155
  327. package/esm2022/lib/components/dashboard-layout/dashboard-layout.component.mjs +0 -12
  328. package/esm2022/lib/components/disabled-select/disabled-select.component.mjs +0 -158
  329. package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +0 -266
  330. package/esm2022/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.mjs +0 -105
  331. package/esm2022/lib/components/eye-test-audit/custom-select/custom-select.component.mjs +0 -240
  332. package/esm2022/lib/components/eye-test-audit/eye-test/eye-test.component.mjs +0 -1733
  333. package/esm2022/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.mjs +0 -24
  334. package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.mjs +0 -34
  335. package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.mjs +0 -27
  336. package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.mjs +0 -71
  337. package/esm2022/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.mjs +0 -823
  338. package/esm2022/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.mjs +0 -412
  339. package/esm2022/lib/components/eye-test-audit/group-select/group-select.component.mjs +0 -157
  340. package/esm2022/lib/components/eye-test-audit/reactive-select/reactive-select.component.mjs +0 -105
  341. package/esm2022/lib/components/eye-test-audit/select-drop/select-drop.component.mjs +0 -162
  342. package/esm2022/lib/components/eye-test-audit/services/eye-test-audit.service.mjs +0 -166
  343. package/esm2022/lib/components/flag-layout/flag-layout.component.mjs +0 -12
  344. package/esm2022/lib/components/flags/flags.component.mjs +0 -263
  345. package/esm2022/lib/components/flags/flags.interface.mjs +0 -2
  346. package/esm2022/lib/components/flags-info/flags-info.component.mjs +0 -452
  347. package/esm2022/lib/components/flags-info/flags-info.interface.mjs +0 -2
  348. package/esm2022/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.mjs +0 -71
  349. package/esm2022/lib/components/flags-new/flags-new.component.mjs +0 -335
  350. package/esm2022/lib/components/flags-new/flags-new.interface.mjs +0 -2
  351. package/esm2022/lib/components/gallery/gallery.component.mjs +0 -3402
  352. package/esm2022/lib/components/group-select/group-select.component.mjs +0 -155
  353. package/esm2022/lib/components/image-popup/image-popup.component.mjs +0 -25
  354. package/esm2022/lib/components/lib/custom-select/custom-select.component.mjs +0 -158
  355. package/esm2022/lib/components/manage-task/manage-task.component.mjs +0 -264
  356. package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +0 -186
  357. package/esm2022/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.mjs +0 -229
  358. package/esm2022/lib/components/multi-date-datepicker/multi-date-datepicker.component.mjs +0 -124
  359. package/esm2022/lib/components/orders/orders.component.mjs +0 -171
  360. package/esm2022/lib/components/pagination/pagination.component.mjs +0 -62
  361. package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +0 -108
  362. package/esm2022/lib/components/reports/date-picker/date-picker.component.mjs +0 -60
  363. package/esm2022/lib/components/reports/reports.component.mjs +0 -300
  364. package/esm2022/lib/components/reports/reports.interface.mjs +0 -2
  365. package/esm2022/lib/components/tango-analyse-trax/tango-analyse-trax.component.mjs +0 -32
  366. package/esm2022/lib/components/task/task.component.mjs +0 -341
  367. package/esm2022/lib/components/task-configure/task-configure.component.mjs +0 -1532
  368. package/esm2022/lib/components/task-configure/task-configure.interface.mjs +0 -2
  369. package/esm2022/lib/components/task-info/task-info.component.mjs +0 -375
  370. package/esm2022/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.mjs +0 -208
  371. package/esm2022/lib/components/task-layout/task-layout.component.mjs +0 -12
  372. package/esm2022/lib/components/task-logs/task-logs.component.mjs +0 -104
  373. package/esm2022/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.mjs +0 -107
  374. package/esm2022/lib/components/trax-store/trax-store.component.mjs +0 -179
  375. package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +0 -70
  376. package/esm2022/lib/services/trax.service.mjs +0 -559
  377. package/esm2022/lib/tango-analyse-trax-routing.module.mjs +0 -153
  378. package/esm2022/lib/tango-analyse-trax.module.mjs +0 -221
  379. package/esm2022/public-api.mjs +0 -6
  380. package/esm2022/tango-app-ui-analyse-trax.mjs +0 -5
  381. package/fesm2022/tango-app-ui-analyse-trax.mjs +0 -28896
  382. package/fesm2022/tango-app-ui-analyse-trax.mjs.map +0 -1
  383. package/index.d.ts +0 -5
  384. package/lib/components/action-centre/action-centre.component.d.ts +0 -68
  385. package/lib/components/activity-log/activity-log.component.d.ts +0 -39
  386. package/lib/components/activity-log-v2/activity-log-v2.component.d.ts +0 -78
  387. package/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.d.ts +0 -24
  388. package/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.d.ts +0 -9
  389. package/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.d.ts +0 -34
  390. package/lib/components/add-checklist/add-checklist.component.d.ts +0 -121
  391. package/lib/components/add-checklist/checklist-popup/checklist-popup.component.d.ts +0 -45
  392. package/lib/components/add-checklist/counter/counter.component.d.ts +0 -29
  393. package/lib/components/add-multitask/add-multitask.component.d.ts +0 -102
  394. package/lib/components/add-multitask/ascending-validator.d.ts +0 -2
  395. package/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.d.ts +0 -45
  396. package/lib/components/add-multitask/create-task.data.d.ts +0 -293
  397. package/lib/components/add-multitask/create-task.interface.d.ts +0 -159
  398. package/lib/components/add-multitask/unique-string-validator.d.ts +0 -2
  399. package/lib/components/add-multitask/whitespace-validator.d.ts +0 -2
  400. package/lib/components/add-task/add-task.component.d.ts +0 -89
  401. package/lib/components/add-task/ascending-validator.d.ts +0 -2
  402. package/lib/components/add-task/create-task.data.d.ts +0 -293
  403. package/lib/components/add-task/create-task.interface.d.ts +0 -161
  404. package/lib/components/add-task/unique-string-validator.d.ts +0 -2
  405. package/lib/components/add-task/whitespace-validator.d.ts +0 -2
  406. package/lib/components/approval-popup/approval-popup.component.d.ts +0 -14
  407. package/lib/components/checklist/checklist.component.d.ts +0 -40
  408. package/lib/components/checklist-configure/assign/assign.component.d.ts +0 -105
  409. package/lib/components/checklist-configure/checklist-configure.component.d.ts +0 -325
  410. package/lib/components/checklistlayout/checklistlayout.component.d.ts +0 -15
  411. package/lib/components/chip-dropdown/chip-dropdown.component.d.ts +0 -28
  412. package/lib/components/create-task/create-task.component.d.ts +0 -76
  413. package/lib/components/create-task/create-task.data.d.ts +0 -293
  414. package/lib/components/create-task/create-task.interface.d.ts +0 -163
  415. package/lib/components/create-task/validators/ascending-validator.d.ts +0 -2
  416. package/lib/components/create-task/validators/unique-string-validator.d.ts +0 -2
  417. package/lib/components/create-task/validators/whitespace-validator.d.ts +0 -2
  418. package/lib/components/custom-select/custom-select.component.d.ts +0 -35
  419. package/lib/components/dashboard/dashboard.component.d.ts +0 -80
  420. package/lib/components/dashboard-info/dashboard-info.component.d.ts +0 -117
  421. package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +0 -41
  422. package/lib/components/dashboard-layout/dashboard-layout.component.d.ts +0 -5
  423. package/lib/components/disabled-select/disabled-select.component.d.ts +0 -34
  424. package/lib/components/export-gallery/export-gallery.component.d.ts +0 -44
  425. package/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.d.ts +0 -26
  426. package/lib/components/eye-test-audit/custom-select/custom-select.component.d.ts +0 -35
  427. package/lib/components/eye-test-audit/eye-test/eye-test.component.d.ts +0 -218
  428. package/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.d.ts +0 -12
  429. package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.d.ts +0 -7
  430. package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.d.ts +0 -11
  431. package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.d.ts +0 -21
  432. package/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.d.ts +0 -129
  433. package/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.d.ts +0 -86
  434. package/lib/components/eye-test-audit/group-select/group-select.component.d.ts +0 -33
  435. package/lib/components/eye-test-audit/reactive-select/reactive-select.component.d.ts +0 -32
  436. package/lib/components/eye-test-audit/select-drop/select-drop.component.d.ts +0 -33
  437. package/lib/components/eye-test-audit/services/eye-test-audit.service.d.ts +0 -47
  438. package/lib/components/flag-layout/flag-layout.component.d.ts +0 -5
  439. package/lib/components/flags/flags.component.d.ts +0 -52
  440. package/lib/components/flags-info/flags-info.component.d.ts +0 -73
  441. package/lib/components/flags-info/flags-info.interface.d.ts +0 -430
  442. package/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.d.ts +0 -13
  443. package/lib/components/flags-new/flags-new.component.d.ts +0 -60
  444. package/lib/components/gallery/gallery.component.d.ts +0 -261
  445. package/lib/components/group-select/group-select.component.d.ts +0 -33
  446. package/lib/components/image-popup/image-popup.component.d.ts +0 -11
  447. package/lib/components/lib/custom-select/custom-select.component.d.ts +0 -33
  448. package/lib/components/manage-task/manage-task.component.d.ts +0 -47
  449. package/lib/components/managechecklist/managechecklist.component.d.ts +0 -33
  450. package/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.d.ts +0 -40
  451. package/lib/components/multi-date-datepicker/multi-date-datepicker.component.d.ts +0 -27
  452. package/lib/components/orders/orders.component.d.ts +0 -38
  453. package/lib/components/pagination/pagination.component.d.ts +0 -16
  454. package/lib/components/reactive-select/reactive-select.component.d.ts +0 -32
  455. package/lib/components/reports/date-picker/date-picker.component.d.ts +0 -23
  456. package/lib/components/reports/reports.component.d.ts +0 -55
  457. package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +0 -14
  458. package/lib/components/task/task.component.d.ts +0 -70
  459. package/lib/components/task-configure/task-configure.component.d.ts +0 -142
  460. package/lib/components/task-configure/task-configure.interface.d.ts +0 -128
  461. package/lib/components/task-info/task-info.component.d.ts +0 -76
  462. package/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.d.ts +0 -61
  463. package/lib/components/task-layout/task-layout.component.d.ts +0 -5
  464. package/lib/components/task-logs/task-logs.component.d.ts +0 -27
  465. package/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.d.ts +0 -26
  466. package/lib/components/trax-store/trax-store.component.d.ts +0 -45
  467. package/lib/components/traxpopup/traxpopup.component.d.ts +0 -24
  468. package/lib/services/trax.service.d.ts +0 -175
  469. package/lib/tango-analyse-trax-routing.module.d.ts +0 -7
  470. package/lib/tango-analyse-trax.module.d.ts +0 -68
@@ -0,0 +1,176 @@
1
+ import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { GlobalStateService } from 'tango-app-ui-global';
4
+ import {Subject, takeUntil} from 'rxjs';
5
+ import { TraxService } from '../../services/trax.service';
6
+ import { ToastService } from 'tango-app-ui-shared';
7
+ import { TraxpopupComponent } from '../traxpopup/traxpopup.component';
8
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
9
+
10
+ @Component({
11
+ selector: 'lib-managechecklist',
12
+ templateUrl: './managechecklist.component.html',
13
+ styleUrl: './managechecklist.component.scss'
14
+ })
15
+ export class ManagechecklistComponent implements OnInit,OnDestroy {
16
+ type:any;
17
+ clientId:any;
18
+ checklistDetails:any;
19
+ storeCount:any;
20
+ loading:boolean = false;
21
+ private detach = new Subject();
22
+ constructor(private route:ActivatedRoute,private router:Router,private gs:GlobalStateService,private sopService:TraxService,private toast:ToastService,private dialog:NgbModal,private cd:ChangeDetectorRef){
23
+ this.route.queryParams.subscribe((params:any) => {
24
+ if(params.type){
25
+ this.type = params.type;
26
+ }
27
+ })
28
+ }
29
+
30
+ ngOnInit(): void {
31
+ this.gs.dataRangeValue.pipe(takeUntil(this.detach)).subscribe({
32
+ next:(data:any) => {
33
+ if(data) {
34
+ this.clientId = data.client;
35
+ }
36
+ else {
37
+ let data = JSON.parse(localStorage.getItem('header-filters') as string);
38
+ this.clientId = data?.client;
39
+ }
40
+ }
41
+ });
42
+ this.route.queryParams.pipe(takeUntil(this.detach)).subscribe({
43
+ next:(params:any) => {
44
+ if(params.type == 'ai') {
45
+ this.getAiDetails();
46
+ }
47
+ else {
48
+ this.getPredefinedDetails();
49
+ }
50
+ }
51
+ })
52
+ }
53
+
54
+ getAiDetails(){
55
+ this.loading = true;
56
+ this.sopService.getaichecklist(this.clientId).pipe(takeUntil(this.detach)).subscribe({
57
+ next:(res:any) => {
58
+ if(res && res.code == 200 ) {
59
+ this.loading = false;
60
+ this.checklistDetails = res.data;
61
+ this.storeCount = res.data.count
62
+ }
63
+ else {
64
+ this.checklistDetails = [];
65
+ }
66
+ }
67
+ });
68
+ }
69
+
70
+ getPredefinedDetails() {
71
+ this.loading = true;
72
+ this.sopService.getpredefinedchecklist(this.clientId).pipe(takeUntil(this.detach)).subscribe({
73
+ next:(res:any) => {
74
+ if(res && res.code == 200 && res.data.length) {
75
+ this.loading = false;
76
+ this.checklistDetails = res.data;
77
+ }
78
+ else {
79
+ this.checklistDetails = [];
80
+ }
81
+ }
82
+ });
83
+ }
84
+
85
+ ngOnDestroy(): void {
86
+ this.detach.next(true);
87
+ this.detach.complete();
88
+ }
89
+
90
+ redirectUrl(type:any) {
91
+ let queryString:any=`type=${type}`;
92
+ if(this.checklistDetails?.uniformDetection.length && type == 'uniformdetection') {
93
+ queryString=`checkListId=${this.checklistDetails?.uniformDetection[0]._id}`
94
+ }
95
+ if(this.checklistDetails?.mobileUsageDetection.length && type == 'mobileusagedetection') {
96
+ queryString=`checkListId=${this.checklistDetails?.mobileUsageDetection[0]._id}`
97
+ }
98
+ if(this.checklistDetails?.storeOpenClose.length && type == 'storeopenandclose') {
99
+ queryString=`checkListId=${this.checklistDetails?.storeOpenClose[0]._id}`
100
+ }
101
+ this.router.navigateByUrl(`manage/trax/configure?${queryString}`);
102
+ }
103
+
104
+ redirectChecklist(data:any) {
105
+ let queryString:any=`type=${data.checkListType}`;
106
+ if(data.checkListType == 'custom') {
107
+ queryString=`checklistId=${data._id}`
108
+ }
109
+ this.router.navigateByUrl(`manage/trax/createChecklist?${queryString}`);
110
+ }
111
+
112
+ redirectToConfigure(data: any) {
113
+ let queryString:any
114
+ if (data?.client_id) {
115
+ queryString =`aicheckListId=${data._id}&disabledQuestion=${data.publish}&type=${data.checkListType}`;
116
+ } else {
117
+ queryString = `type=${data.checkListType}`
118
+ }
119
+ this.router.navigateByUrl(`manage/trax/configure?${queryString}`);
120
+ }
121
+
122
+ publish(event:any,data:any) {
123
+ let popupcontent;
124
+ let htmlContent:any;
125
+ if(event.target.checked) {
126
+ popupcontent = {
127
+ displayprop: false,
128
+ imagesrc: '<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56" fill="none"><rect x="4" y="4" width="48" height="48" rx="24" fill="#D1FADF"/><path d="M38 27.0818V28.0018C37.9988 30.1582 37.3005 32.2565 36.0093 33.9836C34.7182 35.7108 32.9033 36.9743 30.8354 37.5857C28.7674 38.1971 26.5573 38.1237 24.5345 37.3764C22.5117 36.6291 20.7847 35.2479 19.611 33.4389C18.4373 31.6299 17.8798 29.4899 18.0217 27.3381C18.1636 25.1864 18.9972 23.1381 20.3983 21.4989C21.7994 19.8596 23.6928 18.7172 25.7962 18.242C27.8996 17.7667 30.1003 17.9842 32.07 18.8618M38 20.0018L28 30.0118L25 27.0118" stroke="#039855" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><rect x="4" y="4" width="48" height="48" rx="24" stroke="#ECFDF3" stroke-width="8"/></svg>',
129
+ title: `Are you sure you want to publish ‘${data.checkListName}’ checklist?`,
130
+ content: `Publishing will make this checklist live, and changes will take effect immediately.`,
131
+ buttontype: 'confirm'
132
+ }
133
+ htmlContent= `${data.checkListName} has been published</div>`;
134
+ }
135
+ else {
136
+ popupcontent = {
137
+ displayprop: false,
138
+ imagesrc: '<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56" fill="none"><rect x="4" y="4" width="48" height="48" rx="24" fill="#FEF0C7"/><path d="M27.9998 24.0012V28.0012M27.9998 32.0012H28.0098M26.2898 18.8612L17.8198 33.0012C17.6451 33.3036 17.5527 33.6465 17.5518 33.9957C17.5508 34.3449 17.6413 34.6883 17.8142 34.9917C17.9871 35.2951 18.2365 35.5479 18.5375 35.725C18.8385 35.9021 19.1806 35.9973 19.5298 36.0012H36.4698C36.819 35.9973 37.1611 35.9021 37.4621 35.725C37.7631 35.5479 38.0124 35.2951 38.1854 34.9917C38.3583 34.6883 38.4488 34.3449 38.4478 33.9957C38.4468 33.6465 38.3544 33.3036 38.1798 33.0012L29.7098 18.8612C29.5315 18.5673 29.2805 18.3243 28.981 18.1557C28.6814 17.987 28.3435 17.8984 27.9998 17.8984C27.656 17.8984 27.3181 17.987 27.0186 18.1557C26.7191 18.3243 26.468 18.5673 26.2898 18.8612Z" stroke="#DC6803" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><rect x="4" y="4" width="48" height="48" rx="24" stroke="#FFFAEB" stroke-width="8"/></svg>',
139
+ title: `Are you sure you want to unpublish ‘${data.checkListName}’ checklist?`,
140
+ content: `Unpublishing will remove this checklist immediately, and it will no longer be visible to assigned locations.`,
141
+ buttontype: 'confirm'
142
+ }
143
+ htmlContent= `${data.checkListName} has been unpublished`;
144
+ }
145
+ const dialogRef = this.dialog.open(TraxpopupComponent, {
146
+ centered:true,size:'md'
147
+ });
148
+ dialogRef.componentInstance.data = popupcontent;
149
+ dialogRef.result.then((res:any) => {
150
+ if (res == 'confirm') {
151
+ let params = {
152
+ ...(data.client_id) ? {checklistId:data._id} : {},
153
+ type:data.checkListType,
154
+ clientId:this.clientId,
155
+ publish:event.target.checked
156
+ }
157
+ this.sopService.publish(params).pipe(takeUntil(this.detach)).subscribe({
158
+ next:(res:any) => {
159
+ if(res && res.code == 200) {
160
+ let message = event.target.checked ? 'published' : 'unpublished';
161
+ this.toast.getSuccessToast(`${data.checkListName} is ${message} successfully.`);
162
+ this.cd.detectChanges();
163
+ data.publish = event.target.checked;
164
+ }
165
+ else {
166
+ event.target.checked = data.publish;
167
+ }
168
+ }
169
+ });
170
+ }
171
+ else {
172
+ event.target.checked = data.publish;
173
+ }
174
+ });
175
+ }
176
+ }
@@ -0,0 +1,46 @@
1
+ <div class="chip-box">
2
+ <div *ngIf="assignType !== 'store'" class="outer-container d-flex align-items-center position-relative w-100">
3
+ <div class="input-container form-control">
4
+ <ng-container *ngFor="let item of getValues();let i=index">
5
+ <span class="chip">
6
+ <span class="me-3">{{item?.[searchKey[0]] || item?.[searchKey[1]]}}</span>
7
+ <span (click)="removeBadge(item,i)"><svg
8
+ xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
9
+ <path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round"
10
+ stroke-linejoin="round" />
11
+ </svg>
12
+ </span>
13
+ </span>
14
+ </ng-container>
15
+ <input style="min-height: 44px;" type="text" class="form-control dropdown-input ps-3 me-3" [(ngModel)]="searchValue" (click)="openDropdown($event)" (change)="onInput($event)" id="searchInput">
16
+ </div>
17
+ </div>
18
+ <div [ngClass]="showDropdown ? '' : 'd-none'" class="input-chip dropdown" >
19
+ <ul>
20
+ <li *ngIf="multi && filteredValues?.length">
21
+ <label class="form-check" for="selectAll">
22
+ <input (change)="onSelectAll($event)" [checked]="checkIfAllSelected()" class="form-check-input me-3" type="checkbox"
23
+ id="selectAll">
24
+ <span class="form-check-label">
25
+ Select All
26
+ </span>
27
+ </label>
28
+ </li>
29
+ <li *ngFor="let item of filteredValues" [ngClass]="item.isSelected && !multi ? 'selected' : ''" >
30
+ <label [for]="item[idField] + instanceId" [ngClass]="multi ? '': 'ps-0'" class="form-check">
31
+ <input [ngClass]="multi ? '': 'd-none'" (change)="onSelect($event, item)" [(ngModel)]="item.isSelected" class="form-check-input me-3" type="checkbox" value=""
32
+ [id]="item[idField] + instanceId">
33
+ <span class="form-check-label" >
34
+ {{item[searchKey[0]] || item?.[searchKey[1]]}}
35
+ </span> <span class="badge-value ms-5">
36
+ {{item[badgeValue]}}
37
+ </span>
38
+ </label>
39
+ </li>
40
+ <li *ngIf="!filteredValues?.length" >
41
+ <span class="d-flex align-items-center justify-content-center" >No data found</span>
42
+ </li>
43
+ </ul>
44
+ </div>
45
+
46
+ </div>
@@ -0,0 +1,181 @@
1
+ :host {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+
6
+
7
+ .chip-box {
8
+ // z-index: 1;
9
+ position: relative;
10
+ background-color: white;
11
+
12
+
13
+ .form-select {
14
+ font-size: 1.1rem;
15
+ font-weight: 600;
16
+ border-radius: 8px !important;
17
+ color: var(--Gray-500, #344054);
18
+ border: 1px solid var(--Gray-300, #D0D5DD) !important;
19
+ min-height: 42.5px;
20
+ max-height: 300px !important;
21
+ }
22
+
23
+ .disable-input{
24
+ pointer-events: none;
25
+ background-color: #F9FAFB !important;
26
+ }
27
+
28
+ .input-chip {
29
+ position: absolute;
30
+ width: 100%;
31
+ z-index: 1;
32
+
33
+ .input-wrapper {
34
+ padding: 8px 10px;
35
+ background-color: white;
36
+ border-top-right-radius: 8px;
37
+ border-top-left-radius: 8px;
38
+ border-top: 1px solid rgba(16, 24, 40, 0.08);
39
+ border-right: 1px solid rgba(16, 24, 40, 0.08);
40
+ border-left: 1px solid rgba(16, 24, 40, 0.08);
41
+
42
+
43
+ input {
44
+ width: 100%;
45
+ border-radius: 8px;
46
+ border: 1px solid var(--Gray-300, #D0D5DD);
47
+ background: var(--White, #FFF);
48
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
49
+ padding: 10px 14px 10px 30px;
50
+ outline: none;
51
+
52
+ ::placeholder {
53
+ color: var(--Gray-500, #667085);
54
+ font-family: Inter;
55
+ font-size: 14px;
56
+ font-weight: 500;
57
+ line-height: 20px;
58
+ }
59
+ }
60
+
61
+ .search-icon {
62
+ position: absolute;
63
+ left: 20px;
64
+ top: 20px;
65
+ }
66
+ }
67
+
68
+ ul {
69
+ position: relative;
70
+ background-color: white;
71
+ margin: 0;
72
+ padding: 0;
73
+ max-height: 200px;
74
+ min-height: auto;
75
+ overflow-y: auto;
76
+ border-bottom-right-radius: 8px;
77
+ border-bottom-left-radius: 8px;
78
+ border-bottom: 1px solid rgba(16, 24, 40, 0.08);
79
+ border-right: 1px solid rgba(16, 24, 40, 0.08);
80
+ border-left: 1px solid rgba(16, 24, 40, 0.08);
81
+
82
+ .selected{
83
+ background: #F9FAFB;
84
+ }
85
+
86
+ li {
87
+ list-style: none;
88
+ padding: 10px 16px;
89
+ cursor: pointer;
90
+
91
+ label{
92
+ cursor: pointer;
93
+ }
94
+
95
+ }
96
+
97
+ li:hover{
98
+ background: #F9FAFB;
99
+ }
100
+
101
+ }
102
+
103
+ }
104
+
105
+ }
106
+
107
+ .outer-container {
108
+ position: relative;
109
+
110
+ .form-control {
111
+ padding-top: 0;
112
+ padding-bottom: 0;
113
+ }
114
+
115
+ .input-container {
116
+ min-height: auto;
117
+ max-height: 100px !important;
118
+ overflow: auto;
119
+ width: 100%;
120
+ display: flex;
121
+ flex-wrap: wrap;
122
+
123
+ input {
124
+ all: unset;
125
+ flex: 1;
126
+ min-width: 50px;
127
+ }
128
+ .chip {
129
+ border-radius: 20px;
130
+ margin: 10px 0px 10px 10px;
131
+ padding: 3px 10px;
132
+ border-radius: 16px;
133
+ background: var(--Gray-100, #F2F4F7);
134
+ color: var(--Gray-700, #344054);
135
+ font-family: Inter;
136
+ font-size: 14px;
137
+ font-weight: 500;
138
+ line-height: 20px;
139
+ }
140
+
141
+ .chip:nth-child(1) {
142
+ margin-left: 0;
143
+ }
144
+ }
145
+ }
146
+
147
+ .form-check {
148
+ display: flex;
149
+ align-items: center;
150
+ }
151
+
152
+ .form-check-input {
153
+ height: 16px;
154
+ width: 16px;
155
+ border-radius: 4px;
156
+ border: 1px solid var(--Primary-600, #00A3FF);
157
+ }
158
+
159
+ .form-check-input:checked {
160
+ --bs-form-check-bg-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB4SURBVHgBhY7NDUBQEIRnqcJNKXTg6qYTStCB+Isy6IQSNMDa9SLh5eWZZPcw+81kCX/quABhD73QyKXsGoyIvNCJSto2hEhNtY4N9cwYeMXEsVqB1GaSauRQOpty2tSmO3FgloAmF5nEhgyoesMO6CuFW66fn2xdFyA3ZzcRLrMAAAAASUVORK5CYII=');
161
+ background-color: #EAF8FF;
162
+ border-color: #00A3FF;
163
+ }
164
+
165
+ .form-check-label {
166
+ color: var(--Gray-700, #344054);
167
+ font-family: Inter;
168
+ font-size: 14px;
169
+ font-style: normal;
170
+ font-weight: 500;
171
+ line-height: 20px;
172
+ }
173
+
174
+ .badge-value{
175
+ // overflow: hidden;
176
+ color: var(--Gray-500, #667085);
177
+ // text-overflow: ellipsis;
178
+ font-size: 12px;
179
+ font-weight: 500;
180
+ line-height: 18px;
181
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { MultiChipDropdownComponent } from './multi-chip-dropdown.component';
4
+
5
+ describe('MultiChipDropdownComponent', () => {
6
+ let component: MultiChipDropdownComponent;
7
+ let fixture: ComponentFixture<MultiChipDropdownComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [MultiChipDropdownComponent]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(MultiChipDropdownComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,221 @@
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
2
+ import { TraxService } from '../../services/trax.service';
3
+
4
+ @Component({
5
+ selector: 'lib-multi-chip-dropdown',
6
+ templateUrl: './multi-chip-dropdown.component.html',
7
+ styleUrl: './multi-chip-dropdown.component.scss',
8
+ changeDetection: ChangeDetectionStrategy.OnPush,
9
+ })
10
+ export class MultiChipDropdownComponent implements OnInit,OnChanges {
11
+ @HostListener('document:click', ['$event'])
12
+ onClick(event: MouseEvent) {
13
+ const target = event.target as HTMLElement;
14
+ if (!target.closest('.dropdown')) {
15
+ this.showDropdown = false;
16
+ if (!this.showDropdown) {
17
+ this.searchValue = '';
18
+ const searchData = '';
19
+ const searchTerm = searchData.split(',').map((el: any) => el.trim());
20
+ this.filteredValues = this.items?.filter((item: any) =>
21
+ this.searchField.some(field => searchTerm.some((term: any) => item[field]?.toLowerCase().includes(term))));
22
+ this.updateSelectedValues();
23
+ }
24
+ }
25
+ }
26
+
27
+ @Input() items: any
28
+ @Input() searchField:any[]
29
+ @Input() multi: boolean
30
+ @Input() idField: string
31
+ @Input() selectedValues: any = []
32
+ @Input() disabled: boolean | undefined
33
+ @Input() label: string
34
+ @Input() badgeValue: string
35
+ @Input() searchKey: any;
36
+ @Input() assignType: any;
37
+ selectAll: boolean = false;
38
+
39
+ @Output() selected = new EventEmitter<any>()
40
+ @Output() removed = new EventEmitter<any>()
41
+ filteredValues: any = []
42
+ showDropdown: boolean
43
+ searchValue: string
44
+ instanceId: any;
45
+
46
+
47
+ constructor(private cd: ChangeDetectorRef, private authService: TraxService) { }
48
+ ngOnInit(): void {
49
+ this.instanceId = crypto.randomUUID();
50
+ this.authService.dropDownTrigger.subscribe((e)=>{
51
+ if(e !== this.instanceId){
52
+ this.showDropdown = false
53
+ this.cd.detectChanges()
54
+ }
55
+ })
56
+ }
57
+
58
+ ngOnChanges(changes: SimpleChanges): void {
59
+ if (changes['items'] && this.items?.length) {
60
+ this.initializeItems();
61
+ this.searchValue = '';
62
+ }
63
+
64
+ if (changes['selectedValues'] && this.selectedValues?.length && Array.isArray(changes['selectedValues']?.currentValue)) {
65
+ this.emitSelectedValues(this.selectedValues);
66
+ this.updateSelectedValues();
67
+ }
68
+ }
69
+
70
+ initializeItems() {
71
+ this.filteredValues = this.items.map((item: any) => ({ ...item }));
72
+ this.updateSelectedValues()
73
+ }
74
+
75
+ updateSelectedValues() {
76
+ this.filteredValues?.forEach((filteredItem: any) => {
77
+ filteredItem.isSelected = false;
78
+ });
79
+
80
+ this.selectedValues?.forEach((selectedItem: any) => {
81
+ const item = this.filteredValues?.find((filteredItem: any) => filteredItem?.[this.idField] === selectedItem?.[this.idField]);
82
+ if (item) {
83
+ item.isSelected = true;
84
+ }
85
+ });
86
+ }
87
+
88
+ openDropdown(event: any) {
89
+ this.authService.dropDownTrigger.next(this.instanceId)
90
+ event.stopPropagation();
91
+ this.showDropdown = !this.showDropdown;
92
+ if (!this.showDropdown) {
93
+ this.searchValue = '';
94
+ const searchData = '';
95
+ const searchTerm = searchData.split(',').map((el: any) => el.trim());
96
+ this.filteredValues = this.items?.filter((item: any) =>
97
+ this.searchField.some(field => searchTerm.some((term: any) => item[field]?.toLowerCase().includes(term))));
98
+ this.updateSelectedValues();
99
+ }
100
+ }
101
+
102
+ removeBadge(data:any,index:number) {
103
+ // this.items.push(data);
104
+ this.removed.emit([data._id])
105
+ this.selectedValues = this.selectedValues.reduce((acc: any[], item: any) => {
106
+ if (item._id !== data._id) {
107
+ acc.push(item);
108
+ }
109
+ return acc;
110
+ }, []);
111
+ this.emitSelectedValues(this.selectedValues);
112
+ this.updateSelectedValues();
113
+ }
114
+
115
+ onInput(event: any) {
116
+ if (!event.target.value) {
117
+ this.filteredValues = [...this.items];
118
+ } else {
119
+ const searchData = event?.target?.value.toLowerCase();
120
+ const searchTerm = searchData.split(',').map((el: any) => el.trim());
121
+
122
+ this.filteredValues = this.items?.filter((item: any) => {
123
+ return this.searchField.some(field => {
124
+ return searchTerm.length === 1
125
+ ? item[field]?.toLowerCase().includes(searchTerm[0]) // Partial match for a single term
126
+ : searchTerm.includes(item[field]?.toLowerCase()); // Exact match for multiple terms
127
+ });
128
+ });
129
+ }
130
+ this.updateSelectedValues();
131
+ this.cd.detectChanges();
132
+ // this.searchValue = '';
133
+ }
134
+
135
+ onSelect(event: any, item: any) {
136
+ if (this.multi) {
137
+ if (event.currentTarget.checked) {
138
+ this.selectedValues.push(item );
139
+ } else {
140
+ this.selectedValues = this.selectedValues.filter((elem: any) => elem[this.idField] !== item[this.idField]);
141
+ this.removed.emit([item?._id])
142
+ }
143
+ } else {
144
+ this.selectedValues = [{ ...item }];
145
+ this.filteredValues.forEach((element:any) => {
146
+ if(element[this.idField] !== item[this.idField]){
147
+ element.isSelected = false
148
+ }
149
+ });
150
+ this.showDropdown = false;
151
+
152
+ }
153
+
154
+ const valuesToEmit = this.selectedValues.map((value: any) => {
155
+ const selectedItem = { ...value };
156
+ delete selectedItem.isSelected;
157
+ return selectedItem;
158
+ });
159
+
160
+ this.cd.detectChanges();
161
+ this.emitSelectedValues(valuesToEmit);
162
+ }
163
+
164
+ onSelectAll(event: any) {
165
+ const selectAll = event.currentTarget.checked;
166
+ this.selectAll = event.currentTarget.checked;
167
+ this.filteredValues.forEach((item: any) => item.isSelected = selectAll);
168
+
169
+ if (selectAll && this.filteredValues) {
170
+ this.selectedValues = [...this.filteredValues];
171
+ } else {
172
+ this.selectedValues = [];
173
+ this.removed.emit(this.filteredValues.map((item: any) => item?._id))
174
+ }
175
+
176
+ const valuesToEmit = this.filteredValues.filter((item: any) => item.isSelected == true);
177
+ this.emitSelectedValues(valuesToEmit);
178
+ this.cd.detectChanges();
179
+ }
180
+
181
+
182
+ emitSelectedValues(values: any[]) {
183
+ if (this.multi) {
184
+ this.selected.emit(values);
185
+ } else {
186
+ this.selected.emit(values[0]);
187
+ }
188
+ }
189
+
190
+ checkIfAllSelected() {
191
+ return this.filteredValues.every((item: any) => item.isSelected);
192
+ }
193
+
194
+ getValues(): any[] {
195
+ // let uniqueKey = this.assignType == 'store' ? 'storeName' : this.assignType == 'user' ? 'userName' : this.assignType == 'cluster' ? 'clusterName' : 'teamName';
196
+ let uniqueKey = '_id';
197
+ let data: any = [];
198
+ if (this.selectedValues?.length) {
199
+ if(this.selectAll) {
200
+ this.selectedValues = this.filteredValues.filter((item: any) => item.isSelected == true);
201
+ // this.emitSelectedValues(this.selectedValues)
202
+ }
203
+ data = Array.from(
204
+ new Map(
205
+ this.selectedValues.map((item: any) => [
206
+ item[uniqueKey],
207
+ {
208
+ ...(item.storeName ? { storeName: item.storeName } : {}),
209
+ ...(item.clusterName ? { clusterName: item.clusterName } : {}),
210
+ ...(item.userName ? { userName: item.userName } : {}),
211
+ ...(item.teamName ? { teamName: item.teamName } : {}),
212
+ ...(item._id ? { _id: item._id } : {})
213
+ }
214
+ ])
215
+ ).values()
216
+ );
217
+ }
218
+ return data;
219
+ }
220
+
221
+ }
@@ -0,0 +1,36 @@
1
+ <div class="calendar-container">
2
+ <div class="calendar">
3
+ <div class="calendar-header my-3 mx-5">
4
+ <span class="cursor-pointer" (click)="previousMonth()" [style]="!showPrev() ? {visibility: 'hidden'}:{}"><svg xmlns="http://www.w3.org/2000/svg" width="20"
5
+ height="20" viewBox="0 0 20 20" fill="none">
6
+ <path d="M12.5 15L7.5 10L12.5 5" stroke="#667085" stroke-width="1.67" stroke-linecap="round"
7
+ stroke-linejoin="round" />
8
+ </svg></span>
9
+ <span>{{ monthNames[currentMonth] }} {{ currentYear }}</span>
10
+ <span class="cursor-pointer" (click)="nextMonth()" [style]="!showNext() ? {visibility: 'hidden'} : {}"><svg xmlns="http://www.w3.org/2000/svg" width="20"
11
+ height="20" viewBox="0 0 20 20" fill="none">
12
+ <path d="M7.5 15L12.5 10L7.5 5" stroke="#667085" stroke-width="1.67" stroke-linecap="round"
13
+ stroke-linejoin="round" />
14
+ </svg></span>
15
+ </div>
16
+ <div class="calendar-body my-4">
17
+ <div class="day-names">
18
+ <div *ngFor="let day of dayNames">{{ day }}</div>
19
+ </div>
20
+ <div class="calendar-days">
21
+ <div *ngFor="let _ of getEmptyDays()" class="empty-day"></div>
22
+ <div *ngFor="let day of getDaysInMonth()" [class] ="validateDates(day) === true ? 'cursor-pointer' : 'disabled-day'"
23
+ [ngClass]="{ 'selected-day': isPredefined(day) }" (click)="validateDates(day) === true ? addPredefinedDays(day) : ''">
24
+ {{ day }}
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <div class="calendar-footer align-self-end">
29
+ <div class="button ms-2" (click)="applyDate();">
30
+ <button class="btn btn-primary btn-block w-100 right">
31
+ Apply
32
+ </button>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>