tango-app-ui-shared 3.5.1-task.1 → 3.5.1-task.2

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 (396) 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 +127 -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 +101 -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 +705 -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 +118 -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 +229 -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 +174 -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 +1 -0
  159. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -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 +10 -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 +172 -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 +186 -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 +56 -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 +352 -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 +311 -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 +1200 -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/notification/conformation/conformation.component.html +25 -0
  195. package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
  196. package/src/lib/modules/notification/conformation/conformation.component.spec.ts +23 -0
  197. package/src/lib/modules/notification/conformation/conformation.component.ts +23 -0
  198. package/src/lib/modules/notification/notification/notification.component.html +209 -0
  199. package/src/lib/modules/notification/notification/notification.component.scss +211 -0
  200. package/src/lib/modules/notification/notification/notification.component.spec.ts +23 -0
  201. package/src/lib/modules/notification/notification/notification.component.ts +310 -0
  202. package/src/lib/modules/notification/notification-routing.module.ts +20 -0
  203. package/src/lib/modules/notification/notification.module.ts +21 -0
  204. package/src/lib/pipes/customDate.pipe.ts +18 -0
  205. package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +12 -0
  206. package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +11 -0
  207. package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +11 -0
  208. package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +12 -0
  209. package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +11 -0
  210. package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +10 -0
  211. package/src/lib/routes/routing.ts +56 -0
  212. package/src/lib/services/auth.service.ts +173 -0
  213. package/src/lib/services/notification.service.spec.ts +16 -0
  214. package/src/lib/services/notification.service.ts +73 -0
  215. package/src/lib/services/toast.service.ts +82 -0
  216. package/{public-api.d.ts → src/public-api.ts} +71 -44
  217. package/tsconfig.lib.json +14 -0
  218. package/tsconfig.lib.prod.json +10 -0
  219. package/tsconfig.spec.json +14 -0
  220. package/esm2022/lib/guards/auth.guard.mjs +0 -26
  221. package/esm2022/lib/guards/lead.guard.mjs +0 -16
  222. package/esm2022/lib/guards/stores.guard.mjs +0 -16
  223. package/esm2022/lib/guards/tickets.guard.mjs +0 -16
  224. package/esm2022/lib/i18n/index.mjs +0 -3
  225. package/esm2022/lib/i18n/translation.module.mjs +0 -17
  226. package/esm2022/lib/i18n/translation.service.mjs +0 -53
  227. package/esm2022/lib/i18n/vocabs/ch.mjs +0 -106
  228. package/esm2022/lib/i18n/vocabs/de.mjs +0 -106
  229. package/esm2022/lib/i18n/vocabs/en.mjs +0 -106
  230. package/esm2022/lib/i18n/vocabs/es.mjs +0 -106
  231. package/esm2022/lib/i18n/vocabs/fr.mjs +0 -106
  232. package/esm2022/lib/i18n/vocabs/jp.mjs +0 -106
  233. package/esm2022/lib/interceptors/http-auth-interceptor.mjs +0 -124
  234. package/esm2022/lib/interfaces/global-state.mjs +0 -2
  235. package/esm2022/lib/modules/common/common-shared.module.mjs +0 -31
  236. package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +0 -155
  237. package/esm2022/lib/modules/common/filters/filters.component.mjs +0 -179
  238. package/esm2022/lib/modules/common/pagination/pagination.component.mjs +0 -49
  239. package/esm2022/lib/modules/errors/error403/error403.component.mjs +0 -33
  240. package/esm2022/lib/modules/errors/error404/error404.component.mjs +0 -44
  241. package/esm2022/lib/modules/errors/error500/error500.component.mjs +0 -45
  242. package/esm2022/lib/modules/errors/errors-routing.module.mjs +0 -48
  243. package/esm2022/lib/modules/errors/errors.component.mjs +0 -39
  244. package/esm2022/lib/modules/errors/errors.module.mjs +0 -37
  245. package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +0 -44
  246. package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +0 -19
  247. package/esm2022/lib/modules/intro/intro-routing.module.mjs +0 -24
  248. package/esm2022/lib/modules/intro/intro.module.mjs +0 -32
  249. package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +0 -110
  250. package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +0 -31
  251. package/esm2022/lib/modules/layout/content/content.component.mjs +0 -107
  252. package/esm2022/lib/modules/layout/footer/footer.component.mjs +0 -17
  253. package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +0 -41
  254. package/esm2022/lib/modules/layout/header/header.component.mjs +0 -100
  255. package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +0 -256
  256. package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +0 -79
  257. package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +0 -56
  258. package/esm2022/lib/modules/layout/keenicon/icons.json +0 -1
  259. package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +0 -37
  260. package/esm2022/lib/modules/layout/layout/layout.component.mjs +0 -314
  261. package/esm2022/lib/modules/layout/layout.module.mjs +0 -195
  262. package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +0 -74
  263. package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +0 -74
  264. package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +0 -118
  265. package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +0 -45
  266. package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +0 -111
  267. package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +0 -134
  268. package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +0 -16
  269. package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +0 -331
  270. package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +0 -88
  271. package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +0 -201
  272. package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +0 -150
  273. package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +0 -15
  274. package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +0 -1321
  275. package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +0 -18
  276. package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +0 -18
  277. package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +0 -11
  278. package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +0 -176
  279. package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +0 -166
  280. package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +0 -105
  281. package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +0 -314
  282. package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +0 -1060
  283. package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +0 -795
  284. package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +0 -880
  285. package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +0 -729
  286. package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +0 -22
  287. package/esm2022/lib/modules/notification/notification/notification.component.mjs +0 -317
  288. package/esm2022/lib/modules/notification/notification-routing.module.mjs +0 -28
  289. package/esm2022/lib/modules/notification/notification.module.mjs +0 -32
  290. package/esm2022/lib/pipes/customDate.pipe.mjs +0 -22
  291. package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +0 -18
  292. package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +0 -18
  293. package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +0 -18
  294. package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +0 -18
  295. package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +0 -18
  296. package/esm2022/lib/routes/routing.mjs +0 -53
  297. package/esm2022/lib/services/auth.service.mjs +0 -136
  298. package/esm2022/lib/services/notification.service.mjs +0 -74
  299. package/esm2022/lib/services/toast.service.mjs +0 -83
  300. package/esm2022/public-api.mjs +0 -56
  301. package/esm2022/tango-app-ui-shared.mjs +0 -5
  302. package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +0 -21
  303. package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +0 -1
  304. package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +0 -188
  305. package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +0 -1
  306. package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +0 -21
  307. package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +0 -1
  308. package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +0 -400
  309. package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +0 -1
  310. package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +0 -21
  311. package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +0 -1
  312. package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +0 -21
  313. package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +0 -1
  314. package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +0 -21
  315. package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +0 -1
  316. package/fesm2022/tango-app-ui-shared.mjs +0 -11026
  317. package/fesm2022/tango-app-ui-shared.mjs.map +0 -1
  318. package/index.d.ts +0 -5
  319. package/lib/guards/auth.guard.d.ts +0 -10
  320. package/lib/guards/lead.guard.d.ts +0 -2
  321. package/lib/guards/stores.guard.d.ts +0 -2
  322. package/lib/guards/tickets.guard.d.ts +0 -2
  323. package/lib/i18n/translation.module.d.ts +0 -8
  324. package/lib/i18n/translation.service.d.ts +0 -19
  325. package/lib/i18n/vocabs/ch.d.ts +0 -104
  326. package/lib/i18n/vocabs/de.d.ts +0 -104
  327. package/lib/i18n/vocabs/en.d.ts +0 -104
  328. package/lib/i18n/vocabs/es.d.ts +0 -104
  329. package/lib/i18n/vocabs/fr.d.ts +0 -104
  330. package/lib/i18n/vocabs/jp.d.ts +0 -104
  331. package/lib/interceptors/http-auth-interceptor.d.ts +0 -19
  332. package/lib/interfaces/global-state.d.ts +0 -5
  333. package/lib/modules/common/common-shared.module.d.ts +0 -13
  334. package/lib/modules/common/custom-select/custom-select.component.d.ts +0 -33
  335. package/lib/modules/common/filters/filters.component.d.ts +0 -38
  336. package/lib/modules/common/pagination/pagination.component.d.ts +0 -18
  337. package/lib/modules/errors/error403/error403.component.d.ts +0 -14
  338. package/lib/modules/errors/error404/error404.component.d.ts +0 -15
  339. package/lib/modules/errors/error500/error500.component.d.ts +0 -15
  340. package/lib/modules/errors/errors-routing.module.d.ts +0 -7
  341. package/lib/modules/errors/errors.component.d.ts +0 -13
  342. package/lib/modules/errors/errors.module.d.ts +0 -13
  343. package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +0 -17
  344. package/lib/modules/intro/contact-support/contact-support.component.d.ts +0 -9
  345. package/lib/modules/intro/intro-routing.module.d.ts +0 -7
  346. package/lib/modules/intro/intro.module.d.ts +0 -11
  347. package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +0 -31
  348. package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +0 -13
  349. package/lib/modules/layout/content/content.component.d.ts +0 -25
  350. package/lib/modules/layout/footer/footer.component.d.ts +0 -8
  351. package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +0 -18
  352. package/lib/modules/layout/header/header.component.d.ts +0 -30
  353. package/lib/modules/layout/header/navbar/navbar.component.d.ts +0 -45
  354. package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +0 -25
  355. package/lib/modules/layout/header/page-title/page-title.component.d.ts +0 -23
  356. package/lib/modules/layout/keenicon/keenicon.component.d.ts +0 -13
  357. package/lib/modules/layout/layout/layout.component.d.ts +0 -82
  358. package/lib/modules/layout/layout.module.d.ts +0 -49
  359. package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +0 -19
  360. package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +0 -19
  361. package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +0 -39
  362. package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +0 -19
  363. package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +0 -23
  364. package/lib/modules/layout/sidebar/sidebar.component.d.ts +0 -36
  365. package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +0 -8
  366. package/lib/modules/layout/toolbar/classic/classic.component.d.ts +0 -48
  367. package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +0 -16
  368. package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +0 -28
  369. package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +0 -28
  370. package/lib/modules/layout/toolbar/extended/extended.component.d.ts +0 -8
  371. package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +0 -103
  372. package/lib/modules/layout/toolbar/reports/reports.component.d.ts +0 -9
  373. package/lib/modules/layout/toolbar/saas/saas.component.d.ts +0 -9
  374. package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +0 -5
  375. package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +0 -33
  376. package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +0 -34
  377. package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +0 -24
  378. package/lib/modules/layout/toolbar/toolbar.component.d.ts +0 -55
  379. package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +0 -93
  380. package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +0 -80
  381. package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +0 -83
  382. package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +0 -74
  383. package/lib/modules/notification/conformation/conformation.component.d.ts +0 -10
  384. package/lib/modules/notification/notification/notification.component.d.ts +0 -63
  385. package/lib/modules/notification/notification-routing.module.d.ts +0 -7
  386. package/lib/modules/notification/notification.module.d.ts +0 -11
  387. package/lib/pipes/customDate.pipe.d.ts +0 -7
  388. package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +0 -7
  389. package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +0 -7
  390. package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +0 -7
  391. package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +0 -7
  392. package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +0 -7
  393. package/lib/routes/routing.d.ts +0 -3
  394. package/lib/services/auth.service.d.ts +0 -47
  395. package/lib/services/notification.service.d.ts +0 -30
  396. package/lib/services/toast.service.d.ts +0 -10
@@ -0,0 +1,105 @@
1
+ import { ChangeDetectorRef, Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import dayjs from 'dayjs';
3
+ import 'dayjs/locale/en';
4
+ import { AuthService } from '../../../../services/auth.service';
5
+ import { GlobalStateService } from 'tango-app-ui-global';
6
+ import { Router } from '@angular/router';
7
+
8
+ @Component({
9
+ selector: 'lib-storesingle',
10
+ templateUrl: './storesingle.component.html',
11
+ styleUrl: './storesingle.component.scss'
12
+ })
13
+ export class StoresingleComponent implements OnInit {
14
+ dayjs = dayjs
15
+ isCustomDate = (m: dayjs.Dayjs) => {
16
+ const isValidDate = m > this.dayjs();
17
+ return isValidDate ? 'invalid-date' : false;
18
+ }
19
+ selectedDateRange: any = {};
20
+ storeList:any = []
21
+ selectedClient:any
22
+ selectedFilters: any = {
23
+ client: null,
24
+ clientName:null,
25
+ clients: [],
26
+ store: null,
27
+ stores: [],
28
+ date: null,
29
+
30
+ };
31
+ constructor(private auth:AuthService, private gs:GlobalStateService, private cd:ChangeDetectorRef,private router:Router){
32
+ }
33
+ ngOnInit(): void {
34
+ const headerFilters: any = JSON.parse(
35
+ localStorage.getItem("header-filters") || "{}"
36
+ );
37
+ this.cd.detectChanges();
38
+ if(headerFilters?.client){
39
+ this.auth.getStores(headerFilters?.client).subscribe({
40
+ next: (e) => {
41
+ if (e) {
42
+ this.storeList = e.data.result;
43
+ const headerFilters: any = JSON.parse(
44
+ localStorage.getItem("header-filters") || "{}"
45
+ );
46
+ this.selectedDateRange = {
47
+ startDate: this.dayjs(headerFilters?.date?.startDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
48
+ endDate: this.dayjs(headerFilters?.date?.endDate, "DD-MM-YYYY").format("YYYY-MM-DD")
49
+ };
50
+ if (headerFilters?.store) {
51
+ this.storeList.find((obj: any) => {
52
+ if (obj.storeId === headerFilters.store) {
53
+ this.selectedClient = obj;
54
+ }
55
+ });
56
+ this.selectedFilters.store = headerFilters.store;
57
+ this.selectedFilters.client = headerFilters.client;
58
+ this.selectedFilters.clientName = headerFilters.clientName;
59
+ this.selectedFilters.clients = headerFilters.clients;
60
+ this.selectedFilters.date = headerFilters.date;
61
+ this.selectedDateRange = {
62
+ startDate:this.dayjs( headerFilters.date.startDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
63
+ endDate: this.dayjs( headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
64
+ };
65
+
66
+ localStorage.setItem(
67
+ "header-filters",
68
+ JSON.stringify(this.selectedFilters)
69
+ );
70
+ this.gs.dataRangeValue.next(this.selectedFilters);
71
+ this.cd.detectChanges();
72
+ } else {
73
+ this.selectedClient = this.storeList[0];
74
+ this.selectedFilters.store = this.selectedClient.storeId;
75
+ this.selectedFilters.client = headerFilters.client;
76
+ this.selectedFilters.clientName = headerFilters.clientName;
77
+ this.selectedFilters.clients = headerFilters.clients;
78
+ this.selectedDateRange = {
79
+ startDate: this.dayjs().format("DD-MM-YYYY"),
80
+ endDate: this.dayjs().format("DD-MM-YYYY"),
81
+ };
82
+ var datetime = {
83
+ startDate: this.dayjs().format("YYYY-MM-DD"),
84
+ endDate: this.dayjs().format("YYYY-MM-DD"),
85
+ };
86
+ this.selectedFilters.date = datetime;
87
+ localStorage.setItem(
88
+ "header-filters",
89
+ JSON.stringify(this.selectedFilters)
90
+ );
91
+ this.gs.dataRangeValue.next(this.selectedFilters);
92
+ this.cd.detectChanges();
93
+ }
94
+ }
95
+ },
96
+ });
97
+ }
98
+ }
99
+ onClientSelect(event:any){
100
+ this.selectedClient = event
101
+ this.selectedFilters.store = this.selectedClient.storeId;
102
+ this.gs.dataRangeValue.next(this.selectedFilters);
103
+ localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
104
+ }
105
+ }
@@ -0,0 +1,56 @@
1
+ <!--begin::Toolbar container-->
2
+ <div id="kt_app_toolbar_container" class="app-container" [ngClass]="appToolbarContainerCSSClass">
3
+ <ng-container *ngIf="(gs.userAccess | async)?.userType === 'tango' || (gs.userAccess | async)?.userType === 'client' || (gs.userAccess | async)?.userType === 'lead'" >
4
+ <ng-container *ngIf="showPageTitle()">
5
+ <lib-page-title [appPageTitleDirection]="appPageTitleDirection" [appPageTitleBreadcrumb]="appPageTitleBreadcrumb"
6
+ [appPageTitleDescription]="appPageTitleDescription" class="page-title d-flex flex-wrap me-3"
7
+ [ngClass]="{'flex-column justify-content-center': appPageTitleDirection === 'column', 'align-items-center': appPageTitleDirection !== 'column', appPageTitleCSSClass}">
8
+ </lib-page-title>
9
+ </ng-container>
10
+
11
+ <ng-container *ngIf="multiSelect && users.userType ==='tango'">
12
+ <lib-classic class="d-flex align-items-center gap-2 gap-lg-3"></lib-classic>
13
+ </ng-container>
14
+ <ng-container *ngIf="singleSelect && users.userType ==='tango'">
15
+ <lib-client-settings class="d-flex align-items-center me-5"></lib-client-settings>
16
+ </ng-container>
17
+ <ng-container *ngIf="datepicker && (users.userType ==='client' || users.userType ==='tango')">
18
+ <lib-datepicker class="d-flex align-items-center me-5"></lib-datepicker>
19
+ </ng-container>
20
+ <ng-container *ngIf="singleSelectdatepicker && users.userType ==='tango'">
21
+ <lib-date-single-select class="d-flex align-items-center me-5"></lib-date-single-select>
22
+ </ng-container>
23
+ <ng-container *ngIf="singleStore">
24
+ <lib-single-store class="d-flex align-items-center me-5"></lib-single-store>
25
+ </ng-container>
26
+ <ng-container *ngIf="trafficdatepicker">
27
+ <lib-traffic-header class="d-flex align-items-center me-5"></lib-traffic-header>
28
+ </ng-container>
29
+ <ng-container *ngIf="traxdatepicker">
30
+ <lib-trax-header class="d-flex align-items-center me-5"></lib-trax-header>
31
+ </ng-container>
32
+ <ng-container *ngIf="traxwithoutdatepicker">
33
+ <lib-trax-withoutdate class="d-flex align-items-center me-5"></lib-trax-withoutdate>
34
+ </ng-container>
35
+ <ng-container *ngIf="storesSingle">
36
+ <lib-single-storedate class="d-flex align-items-center me-5"></lib-single-storedate>
37
+ </ng-container>
38
+ <ng-container *ngIf="nobWithoutClient">
39
+ <lib-traffic-nob class="d-flex align-items-center me-5"></lib-traffic-nob>
40
+ </ng-container>
41
+ <ng-container *ngIf="merticsHeader">
42
+ <lib-metrics-header class="d-flex align-items-center me-5"></lib-metrics-header>
43
+ </ng-container>
44
+ <!-- <ng-container *ngIf="appToolbarLayout === 'extended'">
45
+ <lib-extended class="d-flex align-items-center flex-shrink-0 me-5"></lib-extended>
46
+ </ng-container>
47
+ <ng-container *ngIf="appToolbarLayout === 'reports'">
48
+ <lib-reports class="d-flex align-items-center overflow-auto" [appPageTitleDisplay]="appPageTitleDisplay">
49
+ </lib-reports>
50
+ </ng-container>
51
+ <ng-container *ngIf="appToolbarLayout === 'saas'">
52
+ <lib-saas class="d-flex align-items-center gap-2" [appPageTitleDisplay]="appPageTitleDisplay"></lib-saas>
53
+ </ng-container> -->
54
+ </ng-container>
55
+ </div>
56
+ <!--end::Toolbar container-->
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { ToolbarComponent } from './toolbar.component';
4
+
5
+ describe('ToolbarComponent', () => {
6
+ let component: ToolbarComponent;
7
+ let fixture: ComponentFixture<ToolbarComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ ToolbarComponent ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(ToolbarComponent);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });
@@ -0,0 +1,352 @@
1
+ import { Component, Input, OnDestroy, OnInit } from "@angular/core";
2
+ import { ActivatedRoute, Router } from "@angular/router";
3
+ import { Subject, Subscription, window } from "rxjs";
4
+ import {
5
+ GlobalStateService,
6
+ LayoutService,
7
+ PageInfoService,
8
+ } from "tango-app-ui-global";
9
+ import { ILayout, LayoutType } from "tango-app-ui-global";
10
+ import { AuthService } from "../../../services/auth.service";
11
+
12
+ @Component({
13
+ selector: "lib-toolbar",
14
+ templateUrl: "./toolbar.component.html",
15
+ styleUrls: ["./toolbar.component.scss"],
16
+ })
17
+ export class ToolbarComponent implements OnInit, OnDestroy {
18
+ private unsubscribe: Subscription[] = [];
19
+
20
+ // Public props
21
+ @Input() currentLayoutType: LayoutType | null;
22
+ @Input() appToolbarLayout:
23
+ | "classic"
24
+ | "accounting"
25
+ | "extended"
26
+ | "reports"
27
+ | "saas";
28
+
29
+ // toolbar
30
+ appToolbarDisplay: boolean;
31
+ appToolbarContainer: "fixed" | "fluid";
32
+ appToolbarContainerCSSClass: string = "";
33
+ appToolbarFixedDesktop: boolean;
34
+ appToolbarFixedMobile: boolean;
35
+ appPageTitleDisplay: boolean;
36
+
37
+ // page title
38
+ appPageTitleDirection: string = "";
39
+ appPageTitleCSSClass: string = "";
40
+ appPageTitleBreadcrumb: boolean;
41
+ appPageTitleDescription: boolean;
42
+ querParams: any;
43
+ singleSelect: boolean;
44
+ multiSelect: boolean;
45
+ datepicker: boolean;
46
+ singleSelectdatepicker: boolean;
47
+ singleStore: boolean;
48
+ headervalue: any;
49
+ storeId: any;
50
+ users: any;
51
+ selectedFilters: any = {
52
+ client: null,
53
+ clients: [],
54
+ store: null,
55
+ stores: [],
56
+ date: null,
57
+ };
58
+ trafficdatepicker: boolean;
59
+ traxdatepicker: boolean;
60
+ urlString:any;
61
+ traxwithoutdatepicker:boolean;
62
+ storesSingle:boolean;
63
+ nobWithoutClient:boolean;
64
+ merticsHeader: boolean;
65
+ constructor(
66
+ private layout: LayoutService,
67
+ private router: Router,
68
+ private route: ActivatedRoute,
69
+ public gs: GlobalStateService,
70
+ private auth : AuthService
71
+ ) {}
72
+
73
+ ngOnInit(): void {
74
+ if ("user-info" in localStorage) {
75
+ const userData: any = JSON.parse(
76
+ localStorage.getItem("user-info") || "{}"
77
+ );
78
+ this.users = userData;
79
+ }
80
+ if ("header-filters" in localStorage) {
81
+ const data: any = JSON.parse(
82
+ localStorage.getItem("header-filters") || "{}"
83
+ );
84
+ this.client = data?.client;
85
+ }
86
+ this.getUserInfo(this.client ? this.client : this.users.client)
87
+ this.showPageTitle();
88
+ const subscr = this.layout.layoutConfigSubject
89
+ .asObservable()
90
+ .subscribe((config: ILayout) => {
91
+ this.updateProps(config);
92
+ });
93
+ this.unsubscribe.push(subscr);
94
+ }
95
+
96
+ updateProps(config: ILayout) {
97
+ this.appToolbarDisplay = this.layout.getProp(
98
+ "app.toolbar.display",
99
+ config
100
+ ) as boolean;
101
+ if (!this.appToolbarDisplay) {
102
+ return;
103
+ }
104
+
105
+ this.appPageTitleDisplay = this.layout.getProp(
106
+ "app.pageTitle.display",
107
+ config
108
+ ) as boolean;
109
+ this.appToolbarContainer = this.layout.getProp(
110
+ "app.toolbar.container",
111
+ config
112
+ ) as "fluid" | "fixed";
113
+ this.appToolbarContainerCSSClass =
114
+ this.appToolbarContainer === "fixed"
115
+ ? "container-xxl"
116
+ : "container-fluid";
117
+ const containerClass = this.layout.getProp(
118
+ "app.toolbar.containerClass",
119
+ config
120
+ ) as string;
121
+ if (containerClass) {
122
+ this.appToolbarContainerCSSClass += ` ${containerClass}`;
123
+ }
124
+
125
+ this.appToolbarFixedDesktop = this.layout.getProp(
126
+ "app.toolbar.fixed.desktop",
127
+ config
128
+ ) as boolean;
129
+ if (this.appToolbarFixedDesktop) {
130
+ document.body.setAttribute("data-kt-app-toolbar-fixed", "true");
131
+ }
132
+
133
+ this.appToolbarFixedMobile = this.layout.getProp(
134
+ "app.toolbar.fixed.mobile",
135
+ config
136
+ ) as boolean;
137
+ if (this.appToolbarFixedMobile) {
138
+ document.body.setAttribute("data-kt-app-toolbar-fixed-mobile", "true");
139
+ }
140
+
141
+ // toolbar
142
+ this.appPageTitleDirection = this.layout.getProp(
143
+ "app.pageTitle.direction",
144
+ config
145
+ ) as string;
146
+ this.appPageTitleCSSClass = this.layout.getProp(
147
+ "app.pageTitle.class",
148
+ config
149
+ ) as string;
150
+ this.appPageTitleBreadcrumb = this.layout.getProp(
151
+ "app.pageTitle.breadCrumb",
152
+ config
153
+ ) as boolean;
154
+ this.appPageTitleDescription = this.layout.getProp(
155
+ "app.pageTitle.description",
156
+ config
157
+ ) as boolean;
158
+
159
+ document.body.setAttribute("data-kt-app-toolbar-enabled", "true");
160
+ }
161
+ private readonly destroy$ = new Subject();
162
+ ngOnDestroy() {
163
+ this.unsubscribe.forEach((sb) => sb.unsubscribe());
164
+ this.destroy$.next(true);
165
+ this.destroy$.complete();
166
+ // localStorage.removeItem("usersEmail-info");
167
+ }
168
+ client:any;
169
+ urlString1:any;
170
+ showPageTitle() {
171
+ let URL: string = "";
172
+ if ("header-filters" in localStorage) {
173
+ const data: any = JSON.parse(
174
+ localStorage.getItem("header-filters") || "{}"
175
+ );
176
+ const store = this.route.snapshot.queryParamMap as any
177
+ this.storeId = data?.store;
178
+
179
+ if(store?.params?.['storeId']){
180
+ this.storeId = store.params['storeId']
181
+ data.store = store.params['storeId']
182
+ localStorage.setItem('header-filters', JSON.stringify(data))
183
+ }
184
+ const currentUrl = this.router.url;
185
+ const updatedUrl = currentUrl.replace(
186
+ /\/manage\/stores\/\d+-\d+\//,
187
+ `/manage/stores/`
188
+ );
189
+ URL = updatedUrl;
190
+ // this.router.navigate([URL])
191
+ }
192
+ const url = URL.split("?")[0].split('/');
193
+ this.urlString = URL;
194
+ this.urlString1= URL.split('/');
195
+ if (this.users?.userType === "tango") {
196
+ if (url[2] == "settings" || URL == "/manage/users/client" ||
197
+ URL == "/manage/stores" || URL === "/manage/stores?type=stores" || URL === "/manage/stores?type=clusters" ||
198
+ URL == "/manage/stores/addition-method" ||
199
+ URL == "/manage/stores/add-single-store" || URL === "/manage/trax/gallery" || URL == "/notifications/alerts?tab=alert" || URL == "/notifications/alerts?tab=download" || URL === "/manage/trax/audit" ) {
200
+ this.setUIProperties(true, false, false, false, false,false,false,false,false,false,false);
201
+ } else if (url[3] == "edge-app") {
202
+ this.setUIProperties(false, false, false, false, true,false,false,false,false,false,false);
203
+ } else if (
204
+ URL == `/manage/stores/infra-ticket?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=infra` ||
205
+ URL == `/manage/stores/settings?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=dataMismatch` ||
206
+ URL == `/manage/stores/zones?storeId=${this.storeId}` ||
207
+ URL == `/manage/stores/cameras?storeId=${this.storeId}` ||
208
+ // URL == `/manage/stores/infrastructure?storeId=${this.storeId}` ||
209
+ URL == `/manage/stores/mat?storeId=${this.storeId}`
210
+ ) {
211
+ this.setUIProperties(false, false, false, true, false,false,false,false,false,false,false);
212
+ }else if (URL == "/tickets/stores" || URL == "/manage/users/tango/audit") {
213
+ this.setUIProperties(false, false, true, false, false, false, false, false, false, false,false);
214
+ }
215
+ else if(url[2] === 'controlcenter'){
216
+ if(URL == `/manage/controlcenter/playback?storeId=${this.storeId}`|| URL == `/manage/controlcenter/playback`){
217
+ this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false);
218
+ }
219
+ else {
220
+ this.setUIProperties(false, false, false, false,true,false,false,false,false,false,false);
221
+ }
222
+ }else if (URL == "/profile" || url[2]==="data-mismatch" || url[2]==="employeetraining"
223
+ || URL == "/manage/brands" || URL == "/manage/users/tango" || (url[1] ==="tickets" && url[2] === "audit")) {
224
+ this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false);
225
+ } else if(URL == "/manage/traffic/nob"){
226
+ this.setUIProperties(false, false, false, false,false,false,false,false,false,true,false);
227
+ } else if(url[2] === "traffic" || url[2] === "zones" || URL == "/manage/analyse/reports" || URL == "/manage/employee-metrics/beeahGroup" ){
228
+ this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false);
229
+ } else if(url[2] === "employee-metrics" && url[3] === "heatmap"){
230
+ this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false);
231
+ } else if(url[2] === "employee-metrics"){
232
+ this.setUIProperties(false, false, false, false,false,false,false,false,false,false,true);
233
+ } else if(url[2] == 'trax'){
234
+ if(url[2] == 'trax' && (url.includes('createChecklist') || url.includes('configure') || url.includes('create-order')|| url[3] == 'create-task' || url[3] == 'task-configure')) {
235
+ this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false);
236
+ }
237
+ // else if(url[2] == 'trax' && (url.includes('taskinfo'))){
238
+ // this.setUIProperties(false, false, false, false,false,false,false,true,false,false,false);
239
+ // }
240
+ else if(url[2] == 'trax' && url.includes('start')){
241
+ this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false);
242
+ }
243
+ else if(url[2] == 'trax' && (url.includes('checklist') || url.includes('gallery')) || url.includes('audit')) {
244
+ this.setUIProperties(true, false, false, false,false,false,false,false,false,false,false);
245
+ } else {
246
+ this.setUIProperties(false, false, false, false,false,false,true,false,false,false,false);
247
+ }
248
+ } else{
249
+ this.setUIProperties(false, false, false, false,true,false,false,false,false,false,false);
250
+ }
251
+ } else {
252
+ if (url[3] == "edge-app" ) {
253
+ this.setUIProperties(false, false, true, false, false,false,false,false,false,false,false);
254
+ } else if (
255
+ URL == `/manage/stores/infra-ticket?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=infra` ||
256
+ URL == `/manage/stores/settings?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=dataMismatch` ||
257
+ URL == `/manage/stores/zones?storeId=${this.storeId}` ||
258
+ URL == `/manage/stores/cameras?storeId=${this.storeId}` ||
259
+ // URL == `/manage/stores/infrastructure?storeId=${this.storeId}` ||
260
+ URL == `/manage/stores/mat?storeId=${this.storeId}`
261
+ ) {
262
+ this.setUIProperties(false, false, false, true, false,false,false,false,false,false,false);
263
+ } else if(url[2] === 'controlcenter'){
264
+ if(URL == `/manage/controlcenter/playback?storeId=${this.storeId}`|| URL == `/manage/controlcenter/playback`){
265
+ this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false);
266
+ }
267
+ else {
268
+ this.setUIProperties(false, false, false, false,true,false,false,false,false,false,false);
269
+ }
270
+ } else if (URL == "/profile" || URL == "/manage/users/client" || URL == "/manage/users/tango" ||
271
+ URL == "/manage/stores" || URL === "/manage/stores?type=stores" || URL === "/manage/stores?type=clusters" || url[2] == "settings" ||
272
+ URL == "/manage/stores/addition-method" ||
273
+ URL == "/manage/stores/add-single-store" || url[2]==="data-mismatch" || url[2]==="employeetraining" || URL == "/notifications/alerts?tab=alert" || URL == "/notifications/alerts?tab=download"
274
+ || URL == "/manage/users/tango" || URL === "/manage/controlcenter" || URL ==='manage/controlcenter/template-manager' || url[2]==='controlcenter' ) {
275
+ this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false);
276
+ }else if(URL == "/manage/traffic/nob"){
277
+ this.setUIProperties(false, false, false, false,false,false,false,false,false,true,false);
278
+ } else if(url[2] === "traffic" || url[2] === "zones" || URL == "/manage/analyse/reports" || URL == "/manage/employee-metrics/beeahGroup" ){
279
+ this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false);
280
+ } else if(url[2] === "employee-metrics" && url[3] === "heatmap"){
281
+ this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false);
282
+ } else if(url[2] === "employee-metrics"){
283
+ this.setUIProperties(false, false, false, false,false,false,false,false,false,false,true);
284
+ } else if(url[2] == 'trax'){
285
+ if(url[2] == 'trax' && (url.includes('createChecklist') || url.includes('configure') || url.includes('create-order') || url[3] == 'create-task' || url[3] == 'task-configure')) {
286
+ this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false);
287
+ }
288
+ // else if(url[2] == 'trax' && (url.includes('taskinfo'))){
289
+ // this.setUIProperties(false, false, false, false,false,false,false,true,false,false,false);
290
+ // }
291
+ else if(url[2] == 'trax' && url.includes('start')){
292
+ this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false);
293
+ }
294
+ else if(url[2] == 'trax' && (url.includes('checklist') || url.includes('gallery') || url.includes('audit'))) {
295
+ this.setUIProperties(true, false, false, false,false,false,false,false,false,false,false);
296
+ } else {
297
+ this.setUIProperties(false, false, false, false,false,false,true,false,false,false,false);
298
+ }
299
+ } else {
300
+ this.setUIProperties(false, false, true, false, false,false,false,false,false,false,false);
301
+ }
302
+ }
303
+ const viewsWithPageTitles = ["classic", "reports", "saas"];
304
+ return (
305
+ this.appPageTitleDisplay &&
306
+ viewsWithPageTitles.some((t) => t === this.appToolbarLayout)
307
+ );
308
+ }
309
+
310
+ setUIProperties(
311
+ singleSelect: boolean,
312
+ multiSelect: boolean,
313
+ datepicker: boolean,
314
+ singleStore: boolean,
315
+ singleSelectdatepicker: boolean,
316
+ trafficdatepicker:boolean,
317
+ traxdatepicker:boolean,
318
+ traxwithoutdatepicker:boolean,
319
+ storesSingle:boolean,
320
+ nobWithoutClient:boolean,
321
+ merticsHeader:boolean
322
+ ): void {
323
+ this.singleSelect = singleSelect;
324
+ this.multiSelect = multiSelect;
325
+ this.datepicker = datepicker;
326
+ this.singleStore = singleStore;
327
+ this.singleSelectdatepicker = singleSelectdatepicker;
328
+ this.trafficdatepicker = trafficdatepicker;
329
+ this.traxdatepicker = traxdatepicker;
330
+ this.traxwithoutdatepicker = traxwithoutdatepicker;
331
+ this.storesSingle = storesSingle;
332
+ this.nobWithoutClient = nobWithoutClient;
333
+ this.merticsHeader = merticsHeader;
334
+
335
+ }
336
+
337
+ getUserInfo(client:any){
338
+ let obj ={
339
+ clientId: client ? client :''
340
+ }
341
+ if(client){
342
+ this.auth.getHeaderUsers(obj).subscribe({
343
+ next: (e) => {
344
+ localStorage.setItem(
345
+ "usersEmail-info",
346
+ JSON.stringify(e?.data?.userEmailData || [])
347
+ );
348
+ }
349
+ })
350
+ }
351
+ }
352
+ }