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,46 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'lib-pagination',
5
+ templateUrl: './pagination.component.html',
6
+ styleUrl: './pagination.component.scss'
7
+ })
8
+ export class PaginationComponent {
9
+ @Input() collection: any[] = [];
10
+ @Input() itemsPerPage: number;
11
+ @Input() currentPage: number;
12
+ @Input() totalItems: number;
13
+ @Input() directionLinks: boolean = false;
14
+
15
+ @Input() pageSize: number;
16
+ @Input() paginationSizes: number[];
17
+ @Output() pageChange: EventEmitter<number> = new EventEmitter<number>();
18
+ @Output() pageSizeChange: EventEmitter<number> = new EventEmitter<number>();
19
+ instanceId = crypto.randomUUID()
20
+
21
+ onPageChange(page: number) {
22
+ this.pageChange.emit(page);
23
+ }
24
+
25
+ onPageSizeChange(pageSize:any) {
26
+ this.itemsPerPage = pageSize;
27
+ this.pageSizeChange.emit(this.pageSize);
28
+ }
29
+
30
+ // disableOption(size: number): boolean {
31
+ // if (!this.paginationSizes.includes(size)) {
32
+ // console.error('Size is not in paginationSizes.');
33
+ // return true; // Disable the option to prevent invalid selection
34
+ // }
35
+
36
+ // // Calculate the maximum possible total items on the current page
37
+ // const maxTotalOnPage = (this.currentPage) * size;
38
+ // console.log('Current Page:', maxTotalOnPage);
39
+ // // Disable the option if totalItems is less than or equal to the option size
40
+ // const disable = this.totalItems <= maxTotalOnPage;
41
+ // console.log('Disable:', disable);
42
+ // return disable;
43
+ // }
44
+
45
+
46
+ }
@@ -0,0 +1,25 @@
1
+ <!--begin::Title-->
2
+ <h1 class="fw-bolder fs-2hx text-gray-900 mb-4">
3
+ !Forbidden
4
+ </h1>
5
+ <!--end::Title-->
6
+
7
+ <!--begin::Text-->
8
+ <div class="fw-semibold fs-6 text-gray-500 mb-7">
9
+ We can't find that page.
10
+ </div>
11
+ <!--end::Text-->
12
+
13
+ <!--begin::Illustration-->
14
+ <div class="mb-3">
15
+ <img src="./assets/media/auth/404-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
16
+ <img src="./assets/media/auth/404-error-dark.png" class="mw-100 mh-300px theme-dark-show" alt="" />
17
+ </div>
18
+ <!--end::Illustration-->
19
+
20
+ <!--begin::Link-->
21
+ <div class="mb-0">
22
+ <a routerLink="/manage/brands" class="btn btn-sm btn-primary">Return Home</a>
23
+ </div>
24
+ <!--end::Link-->
25
+
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { Error403Component } from './error403.component';
4
+
5
+ describe('Error403Component', () => {
6
+ let component: Error403Component;
7
+ let fixture: ComponentFixture<Error403Component>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [Error403Component]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(Error403Component);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,28 @@
1
+ import { Component, OnDestroy, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Subscription } from 'rxjs';
4
+ import { ThemeModeService } from 'tango-app-ui-global';
5
+
6
+ @Component({
7
+ selector: 'lib-error403',
8
+ templateUrl: './error403.component.html',
9
+ styleUrl: './error403.component.scss'
10
+ })
11
+ export class Error403Component implements OnInit,OnDestroy {
12
+ private unsubscribe: Subscription[] = [];
13
+
14
+ constructor(private router: Router, private modeService: ThemeModeService) {}
15
+ ngOnInit(): void {
16
+ const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
17
+ document.body.style.backgroundImage =
18
+ mode === 'dark'
19
+ ? 'url(./assets/media/auth/bg1-dark.jpg)'
20
+ : 'url(./assets/media/auth/bg1.jpg)';
21
+ });
22
+ this.unsubscribe.push(subscr);
23
+ }
24
+ ngOnDestroy() {
25
+ this.unsubscribe.forEach((sb) => sb.unsubscribe());
26
+ document.body.style.backgroundImage = 'none';
27
+ }
28
+ }
@@ -0,0 +1,24 @@
1
+ <!--begin::Title-->
2
+ <h1 class="fw-bolder fs-2hx text-gray-900 mb-4">
3
+ Oops!
4
+ </h1>
5
+ <!--end::Title-->
6
+
7
+ <!--begin::Text-->
8
+ <div class="fw-semibold fs-6 text-gray-500 mb-7">
9
+ We can't find that page.
10
+ </div>
11
+ <!--end::Text-->
12
+
13
+ <!--begin::Illustration-->
14
+ <div class="mb-3">
15
+ <img src="./assets/media/auth/404-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
16
+ <!-- <img src="./assets/media/auth/404-error-dark.png" class="mw-100 mh-300px theme-dark-show" alt="" /> -->
17
+ </div>
18
+ <!--end::Illustration-->
19
+
20
+ <!--begin::Link-->
21
+ <div class="mb-0">
22
+ <a (click)="routeToDashboard()" class="btn btn-sm btn-primary">Return Home</a>
23
+ </div>
24
+ <!--end::Link-->
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { Error404Component } from './error404.component';
4
+
5
+ describe('Error404Component', () => {
6
+ let component: Error404Component;
7
+ let fixture: ComponentFixture<Error404Component>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ Error404Component ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(Error404Component);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });
@@ -0,0 +1,50 @@
1
+ import { Component, OnDestroy, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Subscription } from 'rxjs';
4
+ import {
5
+ DrawerComponent,
6
+ MenuComponent,
7
+ ScrollComponent,
8
+ ScrollTopComponent,
9
+ StickyComponent,
10
+ ToggleComponent,
11
+ } from 'tango-app-ui-global';
12
+ import { ThemeModeService } from 'tango-app-ui-global';
13
+
14
+ @Component({
15
+ selector: 'lib-error404',
16
+ templateUrl: './error404.component.html',
17
+ styleUrls: ['./error404.component.scss'],
18
+ })
19
+ export class Error404Component implements OnInit, OnDestroy {
20
+ private unsubscribe: Subscription[] = [];
21
+
22
+ constructor(private router: Router, private modeService: ThemeModeService) {}
23
+
24
+ ngOnInit(): void {
25
+ // const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
26
+ // document.body.style.backgroundImage =
27
+ // mode === 'dark'
28
+ // ? 'url(./assets/media/auth/bg1-dark.jpg)'
29
+ // : 'url(./assets/media/auth/bg1.jpg)';
30
+ // });
31
+ // this.unsubscribe.push(subscr);
32
+ }
33
+
34
+ routeToDashboard() {
35
+ this.router.navigate(['/manage/brands']);
36
+ // setTimeout(() => {
37
+ // ToggleComponent.reinitialization();
38
+ // ScrollTopComponent.reinitialization();
39
+ // DrawerComponent.reinitialization();
40
+ // StickyComponent.bootstrap();
41
+ // MenuComponent.reinitialization();
42
+ // ScrollComponent.reinitialization();
43
+ // }, 200);
44
+ }
45
+
46
+ ngOnDestroy() {
47
+ this.unsubscribe.forEach((sb) => sb.unsubscribe());
48
+ document.body.style.backgroundImage = 'none';
49
+ }
50
+ }
@@ -0,0 +1,24 @@
1
+ <!--begin::Title-->
2
+ <h1 class="fw-bolder fs-2qx text-gray-900 mb-4">
3
+ System Error
4
+ </h1>
5
+ <!--end::Title-->
6
+
7
+ <!--begin::Text-->
8
+ <div class="fw-semibold fs-6 text-gray-500 mb-7">
9
+ Something went wrong! Please try again later.
10
+ </div>
11
+ <!--end::Text-->
12
+
13
+ <!--begin::Illustration-->
14
+ <div class="mb-11">
15
+ <img src="./assets/media/auth/500-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
16
+ <img src="./assets/media/auth/500-error-dark.png" class="mw-100 mh-300px theme-dark-show" alt="" />
17
+ </div>
18
+ <!--end::Illustration-->
19
+
20
+ <!--begin::Link-->
21
+ <div class="mb-0">
22
+ <a (click)="routeToDashboard()" class="btn btn-sm btn-primary">Return Home</a>
23
+ </div>
24
+ <!--end::Link-->
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { Error500Component } from './error500.component';
4
+
5
+ describe('Error500Component', () => {
6
+ let component: Error500Component;
7
+ let fixture: ComponentFixture<Error500Component>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ Error500Component ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(Error500Component);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });
@@ -0,0 +1,50 @@
1
+ import { Component, OnDestroy, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Subscription } from 'rxjs';
4
+ import {
5
+ DrawerComponent,
6
+ MenuComponent,
7
+ ScrollComponent,
8
+ ScrollTopComponent,
9
+ StickyComponent,
10
+ ToggleComponent,
11
+ } from 'tango-app-ui-global';
12
+ import { ThemeModeService } from 'tango-app-ui-global';
13
+
14
+ @Component({
15
+ selector: 'lib-error500',
16
+ templateUrl: './error500.component.html',
17
+ styleUrls: ['./error500.component.scss'],
18
+ })
19
+ export class Error500Component implements OnInit, OnDestroy {
20
+ private unsubscribe: Subscription[] = [];
21
+
22
+ constructor(private router: Router, private modeService: ThemeModeService) {}
23
+
24
+ ngOnInit(): void {
25
+ const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
26
+ document.body.style.backgroundImage =
27
+ mode === 'dark'
28
+ ? 'url(./assets/media/auth/bg7-dark.jpg)'
29
+ : 'url(./assets/media/auth/bg7.jpg)';
30
+ });
31
+ this.unsubscribe.push(subscr);
32
+ }
33
+
34
+ routeToDashboard() {
35
+ this.router.navigate(['dashboard']);
36
+ setTimeout(() => {
37
+ ToggleComponent.reinitialization();
38
+ ScrollTopComponent.reinitialization();
39
+ DrawerComponent.reinitialization();
40
+ StickyComponent.bootstrap();
41
+ MenuComponent.reinitialization();
42
+ ScrollComponent.reinitialization();
43
+ }, 200);
44
+ }
45
+
46
+ ngOnDestroy() {
47
+ this.unsubscribe.forEach((sb) => sb.unsubscribe());
48
+ document.body.style.backgroundImage = 'none';
49
+ }
50
+ }
@@ -0,0 +1,40 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { RouterModule, Routes } from '@angular/router';
3
+ import { Error404Component } from './error404/error404.component';
4
+ import { Error500Component } from './error500/error500.component';
5
+ import { ErrorsComponent } from './errors.component';
6
+ import { Error403Component } from './error403/error403.component';
7
+ import { InvalidIpComponent } from './invalid-ip/invalid-ip.component';
8
+
9
+ const routes: Routes = [
10
+ {
11
+ path: '',
12
+ component: ErrorsComponent,
13
+ children: [
14
+ {
15
+ path: '403',
16
+ component: Error403Component,
17
+ },
18
+ {
19
+ path: '404',
20
+ component: Error404Component,
21
+ },
22
+ {
23
+ path: '500',
24
+ component: Error500Component,
25
+ },
26
+ {
27
+ path: '403-ip',
28
+ component: InvalidIpComponent,
29
+ },
30
+ { path: '', redirectTo: '404', pathMatch: 'full' },
31
+ { path: '**', redirectTo: '404', pathMatch: 'full' },
32
+ ],
33
+ },
34
+ ];
35
+
36
+ @NgModule({
37
+ imports: [RouterModule.forChild(routes)],
38
+ exports: [RouterModule],
39
+ })
40
+ export class ErrorsRoutingModule {}
@@ -0,0 +1,15 @@
1
+ <!--begin::Authentication - -->
2
+ <div class="d-flex flex-column flex-center flex-column-fluid">
3
+ <!--begin::Content-->
4
+ <div class="d-flex flex-column flex-center text-center p-10">
5
+ <!--begin::Wrapper-->
6
+ <div class="card card-flush w-lg-650px py-5">
7
+ <div class="card-body py-15 py-lg-20">
8
+ <router-outlet></router-outlet>
9
+ </div>
10
+ </div>
11
+ <!--end::Wrapper-->
12
+ </div>
13
+ <!--end::Content-->
14
+ </div>
15
+ <!--end::Authentication - -->
@@ -0,0 +1,4 @@
1
+ :host {
2
+ height: 100%;
3
+ margin: 0;
4
+ }
@@ -0,0 +1,25 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { ErrorsComponent } from './errors.component';
4
+
5
+ describe('ErrorsComponent', () => {
6
+ let component: ErrorsComponent;
7
+ let fixture: ComponentFixture<ErrorsComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [ ErrorsComponent ]
12
+ })
13
+ .compileComponents();
14
+ });
15
+
16
+ beforeEach(() => {
17
+ fixture = TestBed.createComponent(ErrorsComponent);
18
+ component = fixture.componentInstance;
19
+ fixture.detectChanges();
20
+ });
21
+
22
+ it('should create', () => {
23
+ expect(component).toBeTruthy();
24
+ });
25
+ });
@@ -0,0 +1,42 @@
1
+ import { Component, HostBinding, OnDestroy, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import {
4
+ DrawerComponent,
5
+ MenuComponent,
6
+ ScrollComponent,
7
+ ScrollTopComponent,
8
+ StickyComponent,
9
+ ToggleComponent,
10
+ } from 'tango-app-ui-global';
11
+
12
+ const BODY_CLASSES = ['bgi-size-cover', 'bgi-position-center', 'bgi-no-repeat'];
13
+
14
+ @Component({
15
+ selector: 'lib-errors',
16
+ templateUrl: './errors.component.html',
17
+ styleUrls: ['./errors.component.scss'],
18
+ })
19
+ export class ErrorsComponent implements OnInit, OnDestroy {
20
+ @HostBinding('class') class = 'd-flex flex-column flex-root';
21
+ constructor(private router: Router) {}
22
+
23
+ ngOnInit(): void {
24
+ BODY_CLASSES.forEach((c) => document.body.classList.add(c));
25
+ }
26
+
27
+ ngOnDestroy(): void {
28
+ BODY_CLASSES.forEach((c) => document.body.classList.remove(c));
29
+ }
30
+
31
+ routeToDashboard() {
32
+ this.router.navigate(['dashboard']);
33
+ setTimeout(() => {
34
+ ToggleComponent.bootstrap();
35
+ ScrollTopComponent.bootstrap();
36
+ DrawerComponent.bootstrap();
37
+ StickyComponent.bootstrap();
38
+ MenuComponent.bootstrap();
39
+ ScrollComponent.bootstrap();
40
+ }, 200);
41
+ }
42
+ }
@@ -0,0 +1,25 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ import { ErrorsRoutingModule } from './errors-routing.module';
5
+ import { ErrorsComponent } from '../errors/errors.component';
6
+ import { Error500Component } from './error500/error500.component';
7
+ import { Error404Component } from './error404/error404.component';
8
+ import { Error403Component } from './error403/error403.component';
9
+ import { InvalidIpComponent } from './invalid-ip/invalid-ip.component';
10
+
11
+
12
+ @NgModule({
13
+ declarations: [
14
+ ErrorsComponent,
15
+ Error404Component,
16
+ Error500Component,
17
+ Error403Component,
18
+ InvalidIpComponent
19
+ ],
20
+ imports: [
21
+ CommonModule,
22
+ ErrorsRoutingModule
23
+ ]
24
+ })
25
+ export class ErrorsModule { }
@@ -0,0 +1,16 @@
1
+
2
+
3
+ <!--begin::Illustration-->
4
+ <div class="mb-8">
5
+ <img src="./assets/media/auth/invalid-ip-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
6
+ <img src="./assets/media/auth/invalid-ip-error.png" class="mw-100 mh-300px theme-dark-show" alt="" />
7
+ </div>
8
+ <!--end::Illustration-->
9
+
10
+
11
+ <!--begin::Text-->
12
+ <div class="fw-semibold fs-6 text-gray-500 mb-7">
13
+ Your IP address is not whitelisted. Please connect to an authorized network or contact your administrator to whitelist your IP address.
14
+ </div>
15
+ <!--end::Text-->
16
+
@@ -0,0 +1,23 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { InvalidIpComponent } from './invalid-ip.component';
4
+
5
+ describe('InvalidIpComponent', () => {
6
+ let component: InvalidIpComponent;
7
+ let fixture: ComponentFixture<InvalidIpComponent>;
8
+
9
+ beforeEach(async () => {
10
+ await TestBed.configureTestingModule({
11
+ declarations: [InvalidIpComponent]
12
+ })
13
+ .compileComponents();
14
+
15
+ fixture = TestBed.createComponent(InvalidIpComponent);
16
+ component = fixture.componentInstance;
17
+ fixture.detectChanges();
18
+ });
19
+
20
+ it('should create', () => {
21
+ expect(component).toBeTruthy();
22
+ });
23
+ });
@@ -0,0 +1,43 @@
1
+ import { Component, OnDestroy, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Subscription } from 'rxjs';
4
+ import { AuthService } from '../../../services/auth.service';
5
+ import { ThemeModeService } from 'tango-app-ui-global';
6
+
7
+ @Component({
8
+ selector: 'lib-invalid-ip',
9
+ templateUrl: './invalid-ip.component.html',
10
+ styleUrl: './invalid-ip.component.scss'
11
+ })
12
+ export class InvalidIpComponent implements OnInit, OnDestroy {
13
+
14
+ private unsubscribe: Subscription[] = [];
15
+
16
+ constructor(private router: Router, private modeService: ThemeModeService, private authService:AuthService) {}
17
+ ngOnInit(): void {
18
+ // const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
19
+ // document.body.style.backgroundImage =
20
+ // mode === 'dark'
21
+ // ? 'url(./assets/media/auth/bg1-dark.jpg)'
22
+ // : 'url(./assets/media/auth/bg1.jpg)';
23
+ // });
24
+ // this.unsubscribe.push(subscr);
25
+ this.getProfile()
26
+ }
27
+ ngOnDestroy() {
28
+ this.unsubscribe.forEach((sb) => sb.unsubscribe());
29
+ document.body.style.backgroundImage = 'none';
30
+ }
31
+
32
+ getProfile(){
33
+ this.unsubscribe.push(
34
+ this.authService.userProfileDet().subscribe((res)=>{
35
+ if(res?.data?.result !== 'RESTRICTED-IP'){
36
+ this.router.navigate(['/manage'])
37
+ }
38
+ })
39
+ )
40
+
41
+ }
42
+
43
+ }
@@ -0,0 +1,30 @@
1
+ <div class="card p-0">
2
+ <div class="card-header border-0 pt-3">
3
+ <h3 class="card-title align-items-start flex-column">
4
+ <span class="card-label ellipse1 header mb-2">Contact Support</span>
5
+ </h3>
6
+ <div class="card-toolbar">
7
+ </div>
8
+ </div>
9
+ <div class="card-body pt-0 mh-60vh">
10
+ <div class="d-flex justify-content-between align-items-center pt-5" >
11
+ <div class="d-flex">
12
+ <div class="position-relative">
13
+ <div class="rounded-5 profile fw-semibold d-flex align-items-center justify-content-center">CU</div>
14
+ </div>
15
+ <div class="d-grid mx-3">
16
+ <span class="headingtext fw-bold-600"> Customer support </span>
17
+ <span class="sub-header ellipse fw-bold-400">hello&#64;tangotech.co.in</span>
18
+ </div>
19
+ </div>
20
+ <div class="contact fw-semibold">
21
+ <span>+91 6380909115</span>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ <div class="card-body pt-0">
26
+ <button (click)="accept()" class="btn btn-default btn-primary mt-5 w-100">
27
+ Okay
28
+ </button>
29
+ </div>
30
+ </div>
@@ -0,0 +1,60 @@
1
+ .header{
2
+ color: var(--Gray-900, #101828) !important;
3
+ font-size: 18px !important;
4
+ line-height: 28px !important;
5
+ }
6
+
7
+ .sub-header{
8
+ color: var(--Gray-500, #667085) !important;
9
+ font-size: 14px !important;
10
+ line-height: 20px;
11
+ }
12
+ .contact{
13
+ color: var(--Gray-500, #667085) !important;
14
+ font-size: 12px !important;
15
+ line-height: 18px;
16
+ }
17
+ .fw-bold-400{
18
+ font-weight: 400 !important;
19
+ }
20
+ .fw-bold-600{
21
+ font-weight:600 !important;
22
+ }
23
+ .ellipse{
24
+ width:200px;
25
+ white-space: nowrap;
26
+ overflow: hidden;
27
+ text-overflow: ellipsis;
28
+ }
29
+ .ellipse1{
30
+ min-width:auto;
31
+ max-width:75vh;
32
+ white-space: nowrap;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
35
+ }
36
+ // .msgprofile{
37
+ // width:40px !important;
38
+ // height:40px !important ;
39
+ // border-radius: 200px;
40
+ // overflow: hidden;
41
+ // }
42
+ .profile{
43
+ color: var(--Primary-600, #00A3FF);
44
+ background-color: var(--primary-50, #EAF8FF);
45
+ width:40px !important;
46
+ height:40px !important;
47
+ }
48
+ .swal2-popup.swal2-toast.swal2-show {
49
+ background-color: aqua !important;
50
+ border-left: 2px solid red !important;
51
+ }
52
+
53
+ .swal2-toast{
54
+ background-color: aqua !important;
55
+ border-left: 2px solid red !important;
56
+ }
57
+ .mh-60vh{
58
+ max-height: 60vh !important;
59
+ overflow: auto !important;
60
+ }