tango-app-ui-shared 3.7.3-dev6-demo6 → 3.7.3-dev6-demo7

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 (402) 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/guards/auth.guard.ts +20 -0
  5. package/src/lib/guards/lead.guard.ts +16 -0
  6. package/src/lib/guards/stores.guard.ts +16 -0
  7. package/src/lib/guards/tickets.guard.ts +16 -0
  8. package/{lib/i18n/index.d.ts → src/lib/i18n/index.ts} +2 -2
  9. package/src/lib/i18n/translation.module.ts +9 -0
  10. package/src/lib/i18n/translation.service.ts +61 -0
  11. package/src/lib/i18n/vocabs/ch.ts +105 -0
  12. package/src/lib/i18n/vocabs/de.ts +105 -0
  13. package/src/lib/i18n/vocabs/en.ts +105 -0
  14. package/src/lib/i18n/vocabs/es.ts +105 -0
  15. package/src/lib/i18n/vocabs/fr.ts +105 -0
  16. package/src/lib/i18n/vocabs/jp.ts +105 -0
  17. package/src/lib/interceptors/http-auth-interceptor.ts +225 -0
  18. package/src/lib/interfaces/global-state.ts +6 -0
  19. package/src/lib/modules/common/common-shared.module.ts +20 -0
  20. package/src/lib/modules/common/custom-select/custom-select.component.html +42 -0
  21. package/src/lib/modules/common/custom-select/custom-select.component.scss +131 -0
  22. package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +23 -0
  23. package/src/lib/modules/common/custom-select/custom-select.component.ts +149 -0
  24. package/src/lib/modules/common/filters/filters.component.html +76 -0
  25. package/src/lib/modules/common/filters/filters.component.scss +131 -0
  26. package/src/lib/modules/common/filters/filters.component.spec.ts +23 -0
  27. package/src/lib/modules/common/filters/filters.component.ts +181 -0
  28. package/src/lib/modules/common/pagination/pagination.component.html +26 -0
  29. package/src/lib/modules/common/pagination/pagination.component.scss +63 -0
  30. package/src/lib/modules/common/pagination/pagination.component.spec.ts +23 -0
  31. package/src/lib/modules/common/pagination/pagination.component.ts +46 -0
  32. package/src/lib/modules/errors/error403/error403.component.html +25 -0
  33. package/src/lib/modules/errors/error403/error403.component.scss +0 -0
  34. package/src/lib/modules/errors/error403/error403.component.spec.ts +23 -0
  35. package/src/lib/modules/errors/error403/error403.component.ts +28 -0
  36. package/src/lib/modules/errors/error404/error404.component.html +24 -0
  37. package/src/lib/modules/errors/error404/error404.component.scss +0 -0
  38. package/src/lib/modules/errors/error404/error404.component.spec.ts +25 -0
  39. package/src/lib/modules/errors/error404/error404.component.ts +50 -0
  40. package/src/lib/modules/errors/error500/error500.component.html +24 -0
  41. package/src/lib/modules/errors/error500/error500.component.scss +0 -0
  42. package/src/lib/modules/errors/error500/error500.component.spec.ts +25 -0
  43. package/src/lib/modules/errors/error500/error500.component.ts +50 -0
  44. package/src/lib/modules/errors/errors-routing.module.ts +40 -0
  45. package/src/lib/modules/errors/errors.component.html +15 -0
  46. package/src/lib/modules/errors/errors.component.scss +4 -0
  47. package/src/lib/modules/errors/errors.component.spec.ts +25 -0
  48. package/src/lib/modules/errors/errors.component.ts +42 -0
  49. package/src/lib/modules/errors/errors.module.ts +25 -0
  50. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +16 -0
  51. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
  52. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +23 -0
  53. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +43 -0
  54. package/src/lib/modules/intro/contact-support/contact-support.component.html +30 -0
  55. package/src/lib/modules/intro/contact-support/contact-support.component.scss +60 -0
  56. package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +23 -0
  57. package/src/lib/modules/intro/contact-support/contact-support.component.ts +17 -0
  58. package/src/lib/modules/intro/intro-routing.module.ts +16 -0
  59. package/src/lib/modules/intro/intro.module.ts +21 -0
  60. package/src/lib/modules/intro/lead-intro/lead-intro.component.html +325 -0
  61. package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +185 -0
  62. package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +23 -0
  63. package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +120 -0
  64. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +44 -0
  65. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +28 -0
  66. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +23 -0
  67. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +24 -0
  68. package/src/lib/modules/layout/content/content.component.html +12 -0
  69. package/src/lib/modules/layout/content/content.component.scss +0 -0
  70. package/src/lib/modules/layout/content/content.component.ts +102 -0
  71. package/src/lib/modules/layout/footer/footer.component.html +29 -0
  72. package/src/lib/modules/layout/footer/footer.component.scss +7 -0
  73. package/src/lib/modules/layout/footer/footer.component.spec.ts +25 -0
  74. package/src/lib/modules/layout/footer/footer.component.ts +13 -0
  75. package/src/lib/modules/layout/header/header-menu/header-menu.component.html +27 -0
  76. package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +4 -0
  77. package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +25 -0
  78. package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +38 -0
  79. package/src/lib/modules/layout/header/header.component.html +90 -0
  80. package/src/lib/modules/layout/header/header.component.scss +7 -0
  81. package/src/lib/modules/layout/header/header.component.spec.ts +25 -0
  82. package/src/lib/modules/layout/header/header.component.ts +139 -0
  83. package/src/lib/modules/layout/header/navbar/navbar.component.html +156 -0
  84. package/src/lib/modules/layout/header/navbar/navbar.component.scss +223 -0
  85. package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +23 -0
  86. package/src/lib/modules/layout/header/navbar/navbar.component.ts +255 -0
  87. package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +200 -0
  88. package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +139 -0
  89. package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +76 -0
  90. package/src/lib/modules/layout/header/page-title/page-title.component.html +32 -0
  91. package/src/lib/modules/layout/header/page-title/page-title.component.scss +11 -0
  92. package/src/lib/modules/layout/header/page-title/page-title.component.ts +47 -0
  93. package/src/lib/modules/layout/keenicon/icons.json +1 -0
  94. package/src/lib/modules/layout/keenicon/keenicon.component.html +4 -0
  95. package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
  96. package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +23 -0
  97. package/src/lib/modules/layout/keenicon/keenicon.component.ts +30 -0
  98. package/src/lib/modules/layout/layout/layout.component.html +71 -0
  99. package/src/lib/modules/layout/layout/layout.component.scss +23 -0
  100. package/src/lib/modules/layout/layout/layout.component.ts +425 -0
  101. package/src/lib/modules/layout/layout.module.ts +129 -0
  102. package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
  103. package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +81 -0
  104. package/src/lib/modules/layout/scroll-top/scroll-top.component.html +1 -0
  105. package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +75 -0
  106. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +70 -0
  107. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +57 -0
  108. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +23 -0
  109. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +136 -0
  110. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +26 -0
  111. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
  112. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +23 -0
  113. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +36 -0
  114. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +761 -0
  115. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +38 -0
  116. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +23 -0
  117. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +130 -0
  118. package/src/lib/modules/layout/sidebar/sidebar.component.html +16 -0
  119. package/src/lib/modules/layout/sidebar/sidebar.component.scss +3 -0
  120. package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +23 -0
  121. package/src/lib/modules/layout/sidebar/sidebar.component.ts +203 -0
  122. package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +84 -0
  123. package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
  124. package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +23 -0
  125. package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +14 -0
  126. package/src/lib/modules/layout/toolbar/classic/classic.component.html +69 -0
  127. package/src/lib/modules/layout/toolbar/classic/classic.component.scss +238 -0
  128. package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +23 -0
  129. package/src/lib/modules/layout/toolbar/classic/classic.component.ts +389 -0
  130. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +4 -0
  131. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +3 -0
  132. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +23 -0
  133. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +91 -0
  134. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +22 -0
  135. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +156 -0
  136. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +23 -0
  137. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +238 -0
  138. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +14 -0
  139. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +149 -0
  140. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +23 -0
  141. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +183 -0
  142. package/src/lib/modules/layout/toolbar/extended/extended.component.html +100 -0
  143. package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
  144. package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +23 -0
  145. package/src/lib/modules/layout/toolbar/extended/extended.component.ts +12 -0
  146. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +311 -0
  147. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +311 -0
  148. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +23 -0
  149. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +1555 -0
  150. package/src/lib/modules/layout/toolbar/reports/reports.component.html +62 -0
  151. package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
  152. package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +23 -0
  153. package/src/lib/modules/layout/toolbar/reports/reports.component.ts +14 -0
  154. package/src/lib/modules/layout/toolbar/saas/saas.component.html +77 -0
  155. package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
  156. package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +23 -0
  157. package/src/lib/modules/layout/toolbar/saas/saas.component.ts +14 -0
  158. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +26 -0
  159. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +176 -0
  160. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +23 -0
  161. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +235 -0
  162. package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +39 -0
  163. package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +176 -0
  164. package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +23 -0
  165. package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +188 -0
  166. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +17 -0
  167. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +172 -0
  168. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +23 -0
  169. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +179 -0
  170. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +4 -0
  171. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +19 -0
  172. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +23 -0
  173. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +105 -0
  174. package/src/lib/modules/layout/toolbar/toolbar.component.html +64 -0
  175. package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
  176. package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +25 -0
  177. package/src/lib/modules/layout/toolbar/toolbar.component.ts +400 -0
  178. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +259 -0
  179. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +305 -0
  180. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +23 -0
  181. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +1202 -0
  182. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +199 -0
  183. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +311 -0
  184. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +23 -0
  185. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +899 -0
  186. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +204 -0
  187. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +311 -0
  188. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +23 -0
  189. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +1045 -0
  190. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +190 -0
  191. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +311 -0
  192. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +23 -0
  193. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +825 -0
  194. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +259 -0
  195. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +305 -0
  196. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +23 -0
  197. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +1242 -0
  198. package/src/lib/modules/notification/conformation/conformation.component.html +25 -0
  199. package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
  200. package/src/lib/modules/notification/conformation/conformation.component.spec.ts +23 -0
  201. package/src/lib/modules/notification/conformation/conformation.component.ts +23 -0
  202. package/src/lib/modules/notification/notification/notification.component.html +209 -0
  203. package/src/lib/modules/notification/notification/notification.component.scss +211 -0
  204. package/src/lib/modules/notification/notification/notification.component.spec.ts +23 -0
  205. package/src/lib/modules/notification/notification/notification.component.ts +310 -0
  206. package/src/lib/modules/notification/notification-routing.module.ts +20 -0
  207. package/src/lib/modules/notification/notification.module.ts +21 -0
  208. package/src/lib/pipes/customDate.pipe.ts +18 -0
  209. package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +12 -0
  210. package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +11 -0
  211. package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +11 -0
  212. package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +12 -0
  213. package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +11 -0
  214. package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +10 -0
  215. package/src/lib/routes/routing.ts +56 -0
  216. package/src/lib/services/auth.service.ts +178 -0
  217. package/src/lib/services/notification.service.spec.ts +16 -0
  218. package/src/lib/services/notification.service.ts +73 -0
  219. package/src/lib/services/toast.service.ts +82 -0
  220. package/{public-api.d.ts → src/public-api.ts} +71 -44
  221. package/tsconfig.lib.json +14 -0
  222. package/tsconfig.lib.prod.json +10 -0
  223. package/tsconfig.spec.json +14 -0
  224. package/esm2022/lib/guards/auth.guard.mjs +0 -26
  225. package/esm2022/lib/guards/lead.guard.mjs +0 -16
  226. package/esm2022/lib/guards/stores.guard.mjs +0 -16
  227. package/esm2022/lib/guards/tickets.guard.mjs +0 -16
  228. package/esm2022/lib/i18n/index.mjs +0 -3
  229. package/esm2022/lib/i18n/translation.module.mjs +0 -17
  230. package/esm2022/lib/i18n/translation.service.mjs +0 -53
  231. package/esm2022/lib/i18n/vocabs/ch.mjs +0 -106
  232. package/esm2022/lib/i18n/vocabs/de.mjs +0 -106
  233. package/esm2022/lib/i18n/vocabs/en.mjs +0 -106
  234. package/esm2022/lib/i18n/vocabs/es.mjs +0 -106
  235. package/esm2022/lib/i18n/vocabs/fr.mjs +0 -106
  236. package/esm2022/lib/i18n/vocabs/jp.mjs +0 -106
  237. package/esm2022/lib/interceptors/http-auth-interceptor.mjs +0 -124
  238. package/esm2022/lib/interfaces/global-state.mjs +0 -2
  239. package/esm2022/lib/modules/common/common-shared.module.mjs +0 -31
  240. package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +0 -155
  241. package/esm2022/lib/modules/common/filters/filters.component.mjs +0 -179
  242. package/esm2022/lib/modules/common/pagination/pagination.component.mjs +0 -49
  243. package/esm2022/lib/modules/errors/error403/error403.component.mjs +0 -33
  244. package/esm2022/lib/modules/errors/error404/error404.component.mjs +0 -44
  245. package/esm2022/lib/modules/errors/error500/error500.component.mjs +0 -45
  246. package/esm2022/lib/modules/errors/errors-routing.module.mjs +0 -48
  247. package/esm2022/lib/modules/errors/errors.component.mjs +0 -39
  248. package/esm2022/lib/modules/errors/errors.module.mjs +0 -37
  249. package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +0 -44
  250. package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +0 -19
  251. package/esm2022/lib/modules/intro/intro-routing.module.mjs +0 -24
  252. package/esm2022/lib/modules/intro/intro.module.mjs +0 -32
  253. package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +0 -110
  254. package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +0 -31
  255. package/esm2022/lib/modules/layout/content/content.component.mjs +0 -107
  256. package/esm2022/lib/modules/layout/footer/footer.component.mjs +0 -17
  257. package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +0 -41
  258. package/esm2022/lib/modules/layout/header/header.component.mjs +0 -100
  259. package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +0 -256
  260. package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +0 -79
  261. package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +0 -56
  262. package/esm2022/lib/modules/layout/keenicon/icons.json +0 -1
  263. package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +0 -37
  264. package/esm2022/lib/modules/layout/layout/layout.component.mjs +0 -314
  265. package/esm2022/lib/modules/layout/layout.module.mjs +0 -198
  266. package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +0 -74
  267. package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +0 -74
  268. package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +0 -159
  269. package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +0 -45
  270. package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +0 -122
  271. package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +0 -134
  272. package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +0 -16
  273. package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +0 -331
  274. package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +0 -88
  275. package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +0 -207
  276. package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +0 -158
  277. package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +0 -15
  278. package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +0 -1321
  279. package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +0 -18
  280. package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +0 -18
  281. package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +0 -216
  282. package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +0 -178
  283. package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +0 -166
  284. package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +0 -105
  285. package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +0 -372
  286. package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +0 -1062
  287. package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +0 -795
  288. package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +0 -880
  289. package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +0 -729
  290. package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +0 -1088
  291. package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +0 -22
  292. package/esm2022/lib/modules/notification/notification/notification.component.mjs +0 -317
  293. package/esm2022/lib/modules/notification/notification-routing.module.mjs +0 -28
  294. package/esm2022/lib/modules/notification/notification.module.mjs +0 -32
  295. package/esm2022/lib/pipes/customDate.pipe.mjs +0 -22
  296. package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +0 -18
  297. package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +0 -18
  298. package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +0 -18
  299. package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +0 -18
  300. package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +0 -18
  301. package/esm2022/lib/routes/routing.mjs +0 -53
  302. package/esm2022/lib/services/auth.service.mjs +0 -141
  303. package/esm2022/lib/services/notification.service.mjs +0 -74
  304. package/esm2022/lib/services/toast.service.mjs +0 -83
  305. package/esm2022/public-api.mjs +0 -56
  306. package/esm2022/tango-app-ui-shared.mjs +0 -5
  307. package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +0 -21
  308. package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +0 -1
  309. package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +0 -188
  310. package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +0 -1
  311. package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +0 -21
  312. package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +0 -1
  313. package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +0 -400
  314. package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +0 -1
  315. package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +0 -21
  316. package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +0 -1
  317. package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +0 -21
  318. package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +0 -1
  319. package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +0 -21
  320. package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +0 -1
  321. package/fesm2022/tango-app-ui-shared.mjs +0 -12438
  322. package/fesm2022/tango-app-ui-shared.mjs.map +0 -1
  323. package/index.d.ts +0 -5
  324. package/lib/guards/auth.guard.d.ts +0 -10
  325. package/lib/guards/lead.guard.d.ts +0 -2
  326. package/lib/guards/stores.guard.d.ts +0 -2
  327. package/lib/guards/tickets.guard.d.ts +0 -2
  328. package/lib/i18n/translation.module.d.ts +0 -8
  329. package/lib/i18n/translation.service.d.ts +0 -19
  330. package/lib/i18n/vocabs/ch.d.ts +0 -104
  331. package/lib/i18n/vocabs/de.d.ts +0 -104
  332. package/lib/i18n/vocabs/en.d.ts +0 -104
  333. package/lib/i18n/vocabs/es.d.ts +0 -104
  334. package/lib/i18n/vocabs/fr.d.ts +0 -104
  335. package/lib/i18n/vocabs/jp.d.ts +0 -104
  336. package/lib/interceptors/http-auth-interceptor.d.ts +0 -19
  337. package/lib/interfaces/global-state.d.ts +0 -5
  338. package/lib/modules/common/common-shared.module.d.ts +0 -13
  339. package/lib/modules/common/custom-select/custom-select.component.d.ts +0 -33
  340. package/lib/modules/common/filters/filters.component.d.ts +0 -38
  341. package/lib/modules/common/pagination/pagination.component.d.ts +0 -18
  342. package/lib/modules/errors/error403/error403.component.d.ts +0 -14
  343. package/lib/modules/errors/error404/error404.component.d.ts +0 -15
  344. package/lib/modules/errors/error500/error500.component.d.ts +0 -15
  345. package/lib/modules/errors/errors-routing.module.d.ts +0 -7
  346. package/lib/modules/errors/errors.component.d.ts +0 -13
  347. package/lib/modules/errors/errors.module.d.ts +0 -13
  348. package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +0 -17
  349. package/lib/modules/intro/contact-support/contact-support.component.d.ts +0 -9
  350. package/lib/modules/intro/intro-routing.module.d.ts +0 -7
  351. package/lib/modules/intro/intro.module.d.ts +0 -11
  352. package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +0 -31
  353. package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +0 -13
  354. package/lib/modules/layout/content/content.component.d.ts +0 -25
  355. package/lib/modules/layout/footer/footer.component.d.ts +0 -8
  356. package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +0 -18
  357. package/lib/modules/layout/header/header.component.d.ts +0 -30
  358. package/lib/modules/layout/header/navbar/navbar.component.d.ts +0 -45
  359. package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +0 -25
  360. package/lib/modules/layout/header/page-title/page-title.component.d.ts +0 -23
  361. package/lib/modules/layout/keenicon/keenicon.component.d.ts +0 -13
  362. package/lib/modules/layout/layout/layout.component.d.ts +0 -82
  363. package/lib/modules/layout/layout.module.d.ts +0 -50
  364. package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +0 -19
  365. package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +0 -19
  366. package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +0 -45
  367. package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +0 -19
  368. package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +0 -26
  369. package/lib/modules/layout/sidebar/sidebar.component.d.ts +0 -36
  370. package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +0 -8
  371. package/lib/modules/layout/toolbar/classic/classic.component.d.ts +0 -48
  372. package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +0 -16
  373. package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +0 -28
  374. package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +0 -28
  375. package/lib/modules/layout/toolbar/extended/extended.component.d.ts +0 -8
  376. package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +0 -103
  377. package/lib/modules/layout/toolbar/reports/reports.component.d.ts +0 -9
  378. package/lib/modules/layout/toolbar/saas/saas.component.d.ts +0 -9
  379. package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +0 -32
  380. package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +0 -33
  381. package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +0 -34
  382. package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +0 -24
  383. package/lib/modules/layout/toolbar/toolbar.component.d.ts +0 -57
  384. package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +0 -93
  385. package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +0 -80
  386. package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +0 -83
  387. package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +0 -74
  388. package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +0 -97
  389. package/lib/modules/notification/conformation/conformation.component.d.ts +0 -10
  390. package/lib/modules/notification/notification/notification.component.d.ts +0 -63
  391. package/lib/modules/notification/notification-routing.module.d.ts +0 -7
  392. package/lib/modules/notification/notification.module.d.ts +0 -11
  393. package/lib/pipes/customDate.pipe.d.ts +0 -7
  394. package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +0 -7
  395. package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +0 -7
  396. package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +0 -7
  397. package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +0 -7
  398. package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +0 -7
  399. package/lib/routes/routing.d.ts +0 -3
  400. package/lib/services/auth.service.d.ts +0 -49
  401. package/lib/services/notification.service.d.ts +0 -30
  402. package/lib/services/toast.service.d.ts +0 -10
@@ -0,0 +1,149 @@
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
2
+ import { AuthService } from '../../../services/auth.service';
3
+
4
+ @Component({
5
+ selector: 'lib-select',
6
+ templateUrl: './custom-select.component.html',
7
+ styleUrl: './custom-select.component.scss',
8
+ changeDetection: ChangeDetectionStrategy.OnPush,
9
+ })
10
+ export class CustomSelectComponent implements OnChanges, OnInit {
11
+
12
+ @HostListener('document:click', ['$event'])
13
+ onClick(event: MouseEvent) {
14
+ const target = event.target as HTMLElement;
15
+ if (!target.closest('.dropdown')) {
16
+ this.showDropdown = false;
17
+ }
18
+ }
19
+
20
+ @Input() items: any
21
+ @Input() searchField: string
22
+ @Input() multi: boolean
23
+ @Input() idField: string
24
+ @Input() selectedValues: any = []
25
+ @Input() disabled: boolean | undefined
26
+ @Input() label: string
27
+
28
+ @Output() selected = new EventEmitter<any>()
29
+ filteredValues: any = []
30
+ showDropdown: boolean
31
+ searchValue: string
32
+ instanceId: any;
33
+
34
+
35
+ constructor(private cd: ChangeDetectorRef, private authService:AuthService) { }
36
+ ngOnInit(): void {
37
+ this.instanceId = crypto.randomUUID();
38
+ this.authService.dropDownTrigger.subscribe((e)=>{
39
+ if(e !== this.instanceId){
40
+ this.showDropdown = false
41
+ this.cd.detectChanges()
42
+ }
43
+ })
44
+ }
45
+
46
+ ngOnChanges(changes: SimpleChanges): void {
47
+
48
+ if (changes['items'] && this.items?.length) {
49
+ this.initializeItems();
50
+ }
51
+ if (changes['selectedValues'] && Array.isArray(changes['selectedValues']?.currentValue) && changes['selectedValues']?.currentValue?.length > 0 && changes['selectedValues']?.currentValue[0]) {
52
+ this.updateSelectedValues();
53
+ }
54
+ }
55
+
56
+ initializeItems() {
57
+ this.filteredValues = this.items.map((item: any) => ({ ...item }));
58
+ this.updateSelectedValues()
59
+ }
60
+
61
+ updateSelectedValues() {
62
+ this.selectedValues?.forEach((selectedItem: any) => {
63
+ const item = this.filteredValues?.find((filteredItem: any) => filteredItem?.[this.idField] === selectedItem?.[this.idField]);
64
+ if (item) {
65
+ item.isSelected = true;
66
+ }
67
+ });
68
+
69
+ }
70
+
71
+ openDropdown(event: any) {
72
+ this.authService.dropDownTrigger.next(this.instanceId)
73
+ event.stopPropagation();
74
+ this.showDropdown = !this.showDropdown;
75
+ }
76
+
77
+ onInput(event: any) {
78
+ if (!event.target.value) {
79
+ this.filteredValues = [...this.items];
80
+ } else {
81
+ const searchTerm = event.target.value.toLowerCase();
82
+ this.filteredValues = this.items.filter((item: any) =>
83
+ item[this.searchField].toLowerCase().includes(searchTerm)
84
+ );
85
+ }
86
+ this.updateSelectedValues();
87
+ this.cd.detectChanges();
88
+ }
89
+
90
+ onSelect(event: any, item: any) {
91
+ if (this.multi) {
92
+ if (event.currentTarget.checked) {
93
+ this.selectedValues.push(item );
94
+ } else {
95
+ this.selectedValues = this.selectedValues.filter((elem: any) => elem[this.idField] !== item[this.idField]);
96
+ }
97
+ } else {
98
+ this.selectedValues = [{ ...item }];
99
+ this.filteredValues.forEach((element:any) => {
100
+ if(element[this.idField] !== item[this.idField]){
101
+ element.isSelected = false
102
+ }
103
+ });
104
+ this.showDropdown = false;
105
+ }
106
+
107
+ const valuesToEmit = this.selectedValues.map((value: any) => {
108
+ const selectedItem = { ...value };
109
+ delete selectedItem.isSelected;
110
+ return selectedItem;
111
+ });
112
+
113
+ this.cd.detectChanges();
114
+ this.emitSelectedValues(valuesToEmit);
115
+
116
+ }
117
+
118
+ onSelectAll(event: any) {
119
+ const selectAll = event.currentTarget.checked;
120
+ this.filteredValues.forEach((item: any) => item.isSelected = selectAll);
121
+
122
+ if (selectAll) {
123
+ this.selectedValues = [...this.filteredValues];
124
+ } else {
125
+ this.selectedValues = [];
126
+ }
127
+
128
+ const valuesToEmit = this.selectedValues.map((value: any) => {
129
+ const { isSelected, ...selectedItem } = value;
130
+ return selectedItem;
131
+ });
132
+
133
+ this.cd.detectChanges();
134
+ this.emitSelectedValues(valuesToEmit);
135
+ }
136
+
137
+
138
+ emitSelectedValues(values: any[]) {
139
+ if (this.multi) {
140
+ this.selected.emit(values);
141
+ } else {
142
+ this.selected.emit(values[0]);
143
+ }
144
+ }
145
+
146
+ checkIfAllSelected() {
147
+ return this.filteredValues.every((item: any) => item.isSelected);
148
+ }
149
+ }
@@ -0,0 +1,76 @@
1
+ <div class="position-relative">
2
+
3
+ <button type="button" (click)="opendropdown($event)"
4
+ class="btn btn-default bg-white mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val"><svg
5
+ class="pl-3" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6
+ <path d="M5 10H15M2.5 5H17.5M7.5 15H12.5" stroke="#344054" stroke-width="2"
7
+ stroke-linecap="round" stroke-linejoin="round" />
8
+ </svg>
9
+ <span class="ms-2">Filter</span> </button>
10
+ <div class="card p-5 dropdown1 position-absolute z-1 end-0" style="z-index: 1 !important;" *ngIf="Opendropdown">
11
+ <div class="dropdown-title d-flex justify-content-between">Filter Options
12
+ <!-- <div class="text-end"> -->
13
+ <button class="btn btn-outline w-25 ms-3 btn-resize" (click)="Reset()"> Reset </button>
14
+ <button class="btn btn-primary w-25 btn-resize" (click)="Apply()">Apply</button>
15
+ <!-- </div> -->
16
+ </div>
17
+ <div class="w-100 border border-gray mt-3"></div>
18
+ <div class="py-3" *ngFor="let item of dataObject; let i = index">
19
+ <div *ngIf="item.type !== 'single'">
20
+ <div class="dropdown form-select position-relative d-flex justify-content-between cursor-pointer" (click)="Dropdown(item.Description,i,$event)">
21
+ <!-- <span class="">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ? selectedValuesArray[i]?.length + ' ' + item.Description.split(' ').pop() + ' Selected' : item.Description }}</span> -->
22
+ <span>{{item.Description}}</span> <span *ngIf="selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined && selectedValuesArray[i]?.length !== 0" class="badge badge-light-default">{{selectedValuesArray[i]?.length}}</span>
23
+ </div>
24
+ <div *ngIf="item.isOpen" class="dropdown-content position-absolute w-100">
25
+ <div class="form-check d-flex align-items-center py-3 pt-3 ps-0">
26
+ <input class="form-check-input cursor-pointer" type="checkbox" value="Select All" id="selectall{{i}}" [checked]="selectedValuesArray[i]?.length === item.Issues.length"
27
+ (change)="toggleCheckbox($event,'Select All', i,0)">
28
+ <label class="form-check-label cursor-pointer px-2" for="selectall{{i}}">
29
+ Select All
30
+ </label>
31
+ </div>
32
+
33
+ <div class="border border-gray mt-3 "></div>
34
+
35
+ <div class="mt-3 d-flex align-items-center">
36
+ <span class="svg-icon svg-icon-1 position-absolute ms-3 mt-2">
37
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
38
+ <path d="M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z" stroke="#667085" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
39
+ </svg>
40
+ </span>
41
+ <input type="text" [(ngModel)]="dataObject[i].selectedValue" (input)="searchData($event,i)" [id]="i" class="form-control searchinput ps-14 py-2 me-2 mt-2"
42
+ placeholder="Search" autocomplete="off" />
43
+ </div>
44
+
45
+ <div *ngFor="let issue of item.Issues;let j=index" class="form-check d-flex align-items-center py-3 pt-3 ps-0 mt-2 ">
46
+ <input class="form-check-input cursor-pointer" type="checkbox" [value]="issue.text" id="option{{issue.text}}" [checked]="issue.checked"
47
+ (change)="toggleCheckbox($event,issue.text,i,j)">
48
+ <label class="form-check-label cursor-pointer px-2" for="option{{issue.text}}">
49
+ {{ issue.text }}
50
+ </label>
51
+ </div>
52
+ <div class="mt-5 d-flex justify-content-center">
53
+ <span class="form-check-label" *ngIf="noFilter"> No filters available</span>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div *ngIf="item.type === 'single'" class="position-relative w-100">
58
+ <button type="button" (click)="openDropdown($event,i)"
59
+ class="btn btn-default w-100 btn-outline btn-outline-default rounded-3 text-nowrap border-val d-flex justify-content-between"> {{selectedValuesArray[i]?.text ? selectedValuesArray[i]?.text : item.Description}}
60
+ <span><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
61
+ <path d="M5 7.5L10 12.5L15 7.5" stroke="#667085" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
62
+ </svg></span>
63
+ </button>
64
+ <div *ngIf="item.isOpen" class="card py-1 w-100 dropdown-single position-absolute z-1 top-50px end-0">
65
+ <ul *ngFor="let item of item.Issues; let j = index" class="list-unstyled">
66
+ <li [ngClass]="selectedValuesArray[i]?.text === item.text ? 'active' : ''" class="camera px-5 items fw-semibold cursor-pointer py-2" (click)="selectItem($event,i,j)">{{item.text}}</li>
67
+ </ul>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <!-- <div role="group" class="d-flex justify-content-between">
72
+ <button class="btn btn-outline w-100 me-2" (click)="Reset()"> Reset </button>
73
+ <button class="btn btn-primary w-100 ms-2" (click)="Apply()">Apply</button>
74
+ </div> -->
75
+ </div>
76
+ </div>
@@ -0,0 +1,131 @@
1
+ .dropdown1 {
2
+ position: absolute;
3
+ top: 53px !important;
4
+ // right: 14.5%;
5
+ min-width: 270px !important;
6
+
7
+ .dropdown-title {
8
+ color: var(--Gray-900, #101828);
9
+ font-size: 14px;
10
+ font-weight: 600;
11
+ line-height: 24px
12
+ }
13
+
14
+ .dropdown {
15
+ position: relative;
16
+ display: inline-block;
17
+
18
+ span {
19
+ color: var(--Gray-700, #344054);
20
+ font-size: 14px;
21
+ font-weight: 600;
22
+ line-height: 20px;
23
+ }
24
+ }
25
+
26
+ .dropdown-content {
27
+ // display: none;
28
+ // position: absolute;
29
+ // left:0;
30
+ width: 90% !important;
31
+ z-index: 1;
32
+ padding: 10px;
33
+ background-color: white;
34
+ border-radius: 8px;
35
+ box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
36
+ height:200px;
37
+ overflow: auto;
38
+
39
+ label {
40
+ color: var(--Gray-700, #344054);
41
+ font-size: 14px;
42
+ font-weight: 500;
43
+ line-height: 20px;
44
+ text-transform: capitalize;
45
+ }
46
+ }
47
+
48
+ .items:hover,.tems.focus,.items.active,.camera.focus-visible{
49
+ background: var(--Gray-50, #F9FAFB);
50
+ }
51
+
52
+ .dropdown-content a {
53
+ color: black;
54
+ padding: 12px 16px;
55
+ text-decoration: none;
56
+ display: block;
57
+ }
58
+
59
+ .dropdown button {
60
+ padding: 10px;
61
+ font-size: 16px;
62
+ cursor: pointer;
63
+ }
64
+
65
+ input[type='checkbox'] {
66
+ width: 16px !important;
67
+ height: 16px !important;
68
+ margin: -3px 5px;
69
+ border-radius: 4px !important;
70
+ -webkit-appearance: none;
71
+ -moz-appearance: none;
72
+ -o-appearance: none;
73
+ appearance: none;
74
+ outline: 1px solid var(--gray-300, #D0D5DD);
75
+ box-shadow: none;
76
+ font-size: 0.8em;
77
+ text-align: center;
78
+ line-height: 1em;
79
+ background: white;
80
+ }
81
+
82
+ input[type='checkbox']:checked {
83
+ outline: 1px solid var(--primary-600, #00A3FF);
84
+ background-color: var(--primary-50, #EAF8FF);
85
+ }
86
+
87
+ input[type='checkbox']:checked:after {
88
+ content: '';
89
+ transform: rotate(45deg);
90
+ border-bottom: 2px solid #00A3FF;
91
+ border-right: 2px solid #00A3FF;
92
+ display: inline-block;
93
+ width: 0.2em;
94
+ padding-left: 0px;
95
+ padding-top: 9px;
96
+ padding-right: 4px;
97
+ }
98
+ }
99
+
100
+ ::ng-deep .dropdown1{
101
+ z-index: 1 !important;
102
+ }
103
+
104
+ .btn-resize{
105
+ font-size: 13px !important;
106
+ height: 29px !important;
107
+ line-height: 11px !important;
108
+ padding: 1px !important;
109
+ }
110
+ .dropdown-single{
111
+ // display: none;
112
+ // position: absolute;
113
+ // left:0;
114
+ // width: 90% !important;
115
+ z-index: 1;
116
+ padding: 10px;
117
+ background-color: white;
118
+ border-radius: 8px;
119
+ box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
120
+ min-height: auto;
121
+ max-height:200px;
122
+ overflow: auto;
123
+
124
+ label {
125
+ color: var(--Gray-700, #344054);
126
+ font-size: 14px;
127
+ font-weight: 500;
128
+ line-height: 20px;
129
+ text-transform: capitalize;
130
+ }
131
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { FiltersComponent } from './filters.component';
4
+
5
+ describe('FiltersComponent', () => {
6
+ let component: FiltersComponent;
7
+ let fixture: ComponentFixture<FiltersComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [FiltersComponent]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(FiltersComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,181 @@
1
+ import { Component, ElementRef, EventEmitter, HostListener, Input, OnInit, Output, Renderer2,ChangeDetectorRef } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+
4
+ @Component({
5
+ selector: 'lib-filters',
6
+ templateUrl: './filters.component.html',
7
+ styleUrl: './filters.component.scss'
8
+ })
9
+ export class FiltersComponent implements OnInit {
10
+ @Input() dataObject: any[] = [];
11
+ @Output() appliedFilters = new EventEmitter()
12
+ Opendropdown: boolean = false;
13
+
14
+ showdropdown: any;
15
+ selectedValues: string[] = [];
16
+ searchTerms: string[] = [];
17
+ selectedValuesArray: any[] = [];
18
+ searchValue:any;
19
+ selectedItem:any;
20
+ dropDown: boolean = false;
21
+ dummyArray:any[] = [];
22
+ noFilter:boolean = false;
23
+ responseArray:any[] = []
24
+ productModule: any;
25
+ product: any;
26
+ selectedProductCount: string;
27
+ constructor(private elementRef: ElementRef,
28
+ private renderer: Renderer2,
29
+ private router: Router,
30
+ private cd:ChangeDetectorRef) {
31
+ }
32
+
33
+ @HostListener('document:click', ['$event'])
34
+ onClick (event: MouseEvent) {
35
+ const
36
+ target = event.target as HTMLElement;
37
+ if(!target.closest('.dropdown1')) {
38
+ this.Opendropdown = false;
39
+ }
40
+ if(!target.closest('.dropdown-content')){
41
+ this.dataObject.forEach((item: any, i: any) => {
42
+ item.isOpen = false;
43
+ }
44
+ );
45
+ }
46
+ }
47
+
48
+ ngOnInit() {
49
+ this.dataObject.forEach((item:any)=>{
50
+ let selectedList = item?.Issues.filter((data:any)=> data?.checked)
51
+ this.selectedValuesArray.push(selectedList)
52
+ })
53
+ this.dummyArray = JSON.parse(JSON.stringify(this.dataObject))
54
+ this.responseArray = JSON.parse(JSON.stringify(this.dataObject))
55
+ }
56
+
57
+ selectItem(event:any,index:any,subIndex:any){
58
+ this.selectedValuesArray[index] = this.dataObject[index].Issues[subIndex];
59
+ }
60
+
61
+ openDropdown(event:MouseEvent,index:any){
62
+ event.stopPropagation();
63
+ this.dataObject.forEach((item: any, i: any) => {
64
+ if (i !== index) {
65
+ item.isOpen = false; // Close other dropdowns
66
+ }
67
+ });
68
+ this.dataObject[index].isOpen = !this.dataObject[index].isOpen;
69
+ }
70
+
71
+
72
+ opendropdown(e:MouseEvent) {
73
+ e.stopPropagation();
74
+ this.Opendropdown = !this.Opendropdown;
75
+ }
76
+
77
+ Dropdown(value: any, index: number,event:MouseEvent) {
78
+ event.stopPropagation();
79
+ this.dataObject.forEach((item: any, i: any) => {
80
+ if (i !== index) {
81
+ item.isOpen = false; // Close other dropdowns
82
+ }
83
+ });
84
+ this.dataObject[index].isOpen = !this.dataObject[index].isOpen;
85
+ }
86
+
87
+ toggleCheckbox(event: any, issue: any, index: number, subIndex: number) {
88
+ if(!this.selectedValuesArray.length) {
89
+ this.dataObject.forEach((item:any)=>{
90
+ let selectedList = item?.Issues.filter((data:any)=> data?.checked)
91
+ this.selectedValuesArray.push(selectedList)
92
+ })
93
+ }
94
+ const currentIssues = this.dataObject[index].Issues;
95
+ this.selectedValuesArray[index] = this.selectedValuesArray[index];
96
+ const selectedValues = this.selectedValuesArray[index]; // Retrieve selected values array for the current dropdown index
97
+ if (issue === 'Select All') {
98
+ const checkedState = event.target.checked;
99
+ this.dataObject[index].Issues.forEach((item: any) => {
100
+ item.checked = checkedState;
101
+ });
102
+
103
+ if (checkedState) {
104
+ this.selectedValuesArray[index] = currentIssues.slice(); // Copy all items
105
+ } else {
106
+ this.selectedValuesArray[index] = []; // Deselect all items
107
+ }
108
+ } else {
109
+ this.dataObject[index].Issues[subIndex].checked = event.target.checked;
110
+ let checkedData = this.dataObject[index].Issues[subIndex];
111
+
112
+ if(this.dataObject[index].Issues[subIndex].checked){
113
+ this.selectedValuesArray[index].push(checkedData)
114
+ }
115
+ else{
116
+ this.selectedValuesArray[index] = this.selectedValuesArray[index].filter((el:any)=>
117
+ el?.checked === true && el?.text != issue
118
+ )
119
+ }
120
+
121
+ }
122
+
123
+ const selectAllId = `selectall${index}`;
124
+ const selectAllElement = document.getElementById(selectAllId) as HTMLInputElement;
125
+ if (selectAllElement) {
126
+ selectAllElement.checked = selectedValues.length === currentIssues.length;
127
+ }
128
+
129
+ // Update checkboxes based on selected values
130
+ currentIssues.forEach((item: string) => {
131
+ const isChecked = this.selectedValuesArray[index].includes(item);
132
+ const checkboxId = `option${item}`;
133
+ const checkboxElement = document.getElementById(checkboxId) as HTMLInputElement;
134
+ if (checkboxElement) {
135
+ checkboxElement.checked = isChecked;
136
+ }
137
+ });
138
+
139
+ }
140
+ Reset() {
141
+ this.selectedValuesArray.forEach((item:any) => {
142
+ if(item?.length){item.forEach((data:any)=>{data.checked = false;})
143
+ }
144
+ })
145
+ this.selectedValuesArray = [];
146
+ this.Opendropdown = false;
147
+ this.responseArray.forEach((item:any,index:any)=>{
148
+ item.Issues = this.selectedValuesArray[index] ? this.selectedValuesArray[index] :[]
149
+ })
150
+ this.appliedFilters.emit(this.responseArray)
151
+ }
152
+ searchData(event:any,i:any){
153
+ const searchTerm = event.target.value.trim(); // Trim whitespace
154
+ const filteredIssues = this.dummyArray[i]?.Issues.filter((item:any) => {
155
+ let findChecked = this.selectedValuesArray[i]?.find((issue:any) => issue.text == item.text );
156
+ if(findChecked) {
157
+ item.checked = findChecked?.checked ? findChecked?.checked : false;
158
+ }
159
+ else {
160
+ item.checked = false;
161
+ }
162
+ return new RegExp(searchTerm,'i').test(item.text);
163
+ });
164
+ this.dataObject[i].Issues = filteredIssues;
165
+ if(filteredIssues.length){
166
+ this.noFilter = false;
167
+ }else{
168
+ this.noFilter = true;
169
+ }
170
+ this.cd.detectChanges();
171
+ }
172
+
173
+ Apply() {
174
+ this.Opendropdown = false;
175
+ this.responseArray.forEach((item:any,index:any)=>{
176
+ item.Issues = this.selectedValuesArray[index] ? this.selectedValuesArray[index] :[]
177
+ })
178
+ this.appliedFilters.emit(this.responseArray)
179
+ }
180
+ }
181
+
@@ -0,0 +1,26 @@
1
+ <div class="container d-flex justify-content-center">
2
+ <div class="mt-4 text-center">
3
+ <span class="sub-title me-3">Displaying</span>
4
+ <select class="border-val" [(ngModel)]="pageSize" (ngModelChange)="onPageSizeChange($event)" >
5
+ <option value="{{ size }}" *ngFor="let size of paginationSizes" >{{ size }}</option>
6
+ <!-- [disabled]="disableOption(size)" -->
7
+ </select>
8
+ <span class="ms-3 sub-title">out of {{ totalItems }} items</span>
9
+ </div>
10
+
11
+ <div class="text-center">
12
+ <ul>
13
+ <li *ngFor="let item of collection | paginate: { id:instanceId, itemsPerPage: itemsPerPage, currentPage: currentPage, totalItems: totalItems }">
14
+ <!-- Your item template here -->
15
+ </li>
16
+ </ul>
17
+ <pagination-controls
18
+ (pageChange)="onPageChange($event); currentPage=$event;"
19
+ [id]="instanceId"
20
+ [directionLinks]="directionLinks"
21
+ [maxSize]="7"
22
+ [responsive]="true">
23
+ </pagination-controls>
24
+ </div>
25
+ </div>
26
+
@@ -0,0 +1,63 @@
1
+ ::ng-deep .ngx-pagination .current {
2
+ padding: 12px !important;
3
+ background: #EAF8FF !important;
4
+ cursor: default;
5
+ color: #00A3FF !important;
6
+ min-width:50px !important;
7
+ max-width: auto !important;
8
+ height: 45px;
9
+ border-radius: 8px;
10
+ background: var(--Primary-50, #EAF8FF);
11
+ color: var(--Primary-600, #00A3FF) !important;
12
+ text-align: center;
13
+ font-size: 14px !important;
14
+ font-style: normal;
15
+ font-weight: 500;
16
+ line-height: 20px;
17
+ }
18
+ ::ng-deep .ngx-pagination a:hover, .ngx-pagination button:hover {
19
+ background: #e6e6e6;
20
+ padding: 12px !important;
21
+ min-width:50px !important;
22
+ max-width: auto !important;
23
+ height: 45px;
24
+ border-radius: 8px;
25
+ line-height: 20px;
26
+ }
27
+ ::ng-deep {.ngx-pagination{
28
+ color: var(--Gray-500, #667085) !important;
29
+ font-size: 14px !important;
30
+ font-style: normal;
31
+ font-weight: 500;
32
+ line-height: 20px;
33
+ }
34
+ .ngx-pagination a{
35
+ padding: 0.1875rem 1rem !important;
36
+ }
37
+ }
38
+ *{
39
+ font-family: 'Inter' !important;
40
+ }
41
+ .border-val{
42
+ padding: 10px 14px !important;
43
+ border-radius: 8px !important;
44
+ border: 1px solid var(--Gray-300, #D0D5DD) !important;
45
+ background: var(--White, #FFF) !important;
46
+ box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
47
+ }
48
+ select {
49
+ -webkit-appearance: none; /* Remove default arrow for WebKit browsers */
50
+ -moz-appearance: none; /* Remove default arrow for Firefox */
51
+ appearance: none; /* Remove default arrow for modern browsers */
52
+ background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 12l-6-6h12l-6 6z" fill="%23777"/></svg>'); /* Add custom arrow */
53
+ background-repeat: no-repeat;
54
+ background-position-x: calc(100% - 12px);
55
+ background-position-y: 50%;
56
+ padding-right: 20px; /* Adjust as needed */
57
+ }
58
+ .sub-title{
59
+ color: var(--Gray-700, #344054) !important;
60
+ font-size: 14px !important;
61
+ font-weight: 500 !important;
62
+ line-height: 20px;
63
+ }
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { PaginationComponent } from './pagination.component';
4
+
5
+ describe('PaginationComponent', () => {
6
+ let component: PaginationComponent;
7
+ let fixture: ComponentFixture<PaginationComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [PaginationComponent]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(PaginationComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });