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

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/esm2022/lib/guards/auth.guard.mjs +26 -0
  2. package/esm2022/lib/guards/lead.guard.mjs +16 -0
  3. package/esm2022/lib/guards/stores.guard.mjs +16 -0
  4. package/esm2022/lib/guards/tickets.guard.mjs +16 -0
  5. package/esm2022/lib/i18n/index.mjs +3 -0
  6. package/esm2022/lib/i18n/translation.module.mjs +17 -0
  7. package/esm2022/lib/i18n/translation.service.mjs +53 -0
  8. package/esm2022/lib/i18n/vocabs/ch.mjs +106 -0
  9. package/esm2022/lib/i18n/vocabs/de.mjs +106 -0
  10. package/esm2022/lib/i18n/vocabs/en.mjs +106 -0
  11. package/esm2022/lib/i18n/vocabs/es.mjs +106 -0
  12. package/esm2022/lib/i18n/vocabs/fr.mjs +106 -0
  13. package/esm2022/lib/i18n/vocabs/jp.mjs +106 -0
  14. package/esm2022/lib/interceptors/http-auth-interceptor.mjs +124 -0
  15. package/esm2022/lib/interfaces/global-state.mjs +2 -0
  16. package/esm2022/lib/modules/common/common-shared.module.mjs +31 -0
  17. package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +155 -0
  18. package/esm2022/lib/modules/common/filters/filters.component.mjs +179 -0
  19. package/esm2022/lib/modules/common/pagination/pagination.component.mjs +49 -0
  20. package/esm2022/lib/modules/errors/error403/error403.component.mjs +33 -0
  21. package/esm2022/lib/modules/errors/error404/error404.component.mjs +44 -0
  22. package/esm2022/lib/modules/errors/error500/error500.component.mjs +45 -0
  23. package/esm2022/lib/modules/errors/errors-routing.module.mjs +48 -0
  24. package/esm2022/lib/modules/errors/errors.component.mjs +39 -0
  25. package/esm2022/lib/modules/errors/errors.module.mjs +37 -0
  26. package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +44 -0
  27. package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +19 -0
  28. package/esm2022/lib/modules/intro/intro-routing.module.mjs +24 -0
  29. package/esm2022/lib/modules/intro/intro.module.mjs +32 -0
  30. package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +110 -0
  31. package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +31 -0
  32. package/esm2022/lib/modules/layout/content/content.component.mjs +107 -0
  33. package/esm2022/lib/modules/layout/footer/footer.component.mjs +17 -0
  34. package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +41 -0
  35. package/esm2022/lib/modules/layout/header/header.component.mjs +100 -0
  36. package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +256 -0
  37. package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +79 -0
  38. package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +56 -0
  39. package/esm2022/lib/modules/layout/keenicon/icons.json +1 -0
  40. package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +37 -0
  41. package/esm2022/lib/modules/layout/layout/layout.component.mjs +314 -0
  42. package/esm2022/lib/modules/layout/layout.module.mjs +198 -0
  43. package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +74 -0
  44. package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +74 -0
  45. package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +159 -0
  46. package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +45 -0
  47. package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +122 -0
  48. package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +134 -0
  49. package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +16 -0
  50. package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +331 -0
  51. package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +88 -0
  52. package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +207 -0
  53. package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +158 -0
  54. package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +15 -0
  55. package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +1321 -0
  56. package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +18 -0
  57. package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +18 -0
  58. package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +216 -0
  59. package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +178 -0
  60. package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +166 -0
  61. package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +105 -0
  62. package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +372 -0
  63. package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +1062 -0
  64. package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +795 -0
  65. package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +880 -0
  66. package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +729 -0
  67. package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +1090 -0
  68. package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +22 -0
  69. package/esm2022/lib/modules/notification/notification/notification.component.mjs +317 -0
  70. package/esm2022/lib/modules/notification/notification-routing.module.mjs +28 -0
  71. package/esm2022/lib/modules/notification/notification.module.mjs +32 -0
  72. package/esm2022/lib/pipes/customDate.pipe.mjs +22 -0
  73. package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +18 -0
  74. package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +18 -0
  75. package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +18 -0
  76. package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +18 -0
  77. package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +18 -0
  78. package/esm2022/lib/routes/routing.mjs +53 -0
  79. package/esm2022/lib/services/auth.service.mjs +141 -0
  80. package/esm2022/lib/services/notification.service.mjs +74 -0
  81. package/esm2022/lib/services/toast.service.mjs +83 -0
  82. package/esm2022/public-api.mjs +56 -0
  83. package/esm2022/tango-app-ui-shared.mjs +5 -0
  84. package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +21 -0
  85. package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +1 -0
  86. package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +188 -0
  87. package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +1 -0
  88. package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +21 -0
  89. package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +1 -0
  90. package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +400 -0
  91. package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +1 -0
  92. package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +21 -0
  93. package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +1 -0
  94. package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +21 -0
  95. package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +1 -0
  96. package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +21 -0
  97. package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +1 -0
  98. package/fesm2022/tango-app-ui-shared.mjs +12440 -0
  99. package/fesm2022/tango-app-ui-shared.mjs.map +1 -0
  100. package/index.d.ts +5 -0
  101. package/lib/guards/auth.guard.d.ts +10 -0
  102. package/lib/guards/lead.guard.d.ts +2 -0
  103. package/lib/guards/stores.guard.d.ts +2 -0
  104. package/lib/guards/tickets.guard.d.ts +2 -0
  105. package/{src/lib/i18n/index.ts → lib/i18n/index.d.ts} +2 -2
  106. package/lib/i18n/translation.module.d.ts +8 -0
  107. package/lib/i18n/translation.service.d.ts +19 -0
  108. package/lib/i18n/vocabs/ch.d.ts +104 -0
  109. package/lib/i18n/vocabs/de.d.ts +104 -0
  110. package/lib/i18n/vocabs/en.d.ts +104 -0
  111. package/lib/i18n/vocabs/es.d.ts +104 -0
  112. package/lib/i18n/vocabs/fr.d.ts +104 -0
  113. package/lib/i18n/vocabs/jp.d.ts +104 -0
  114. package/lib/interceptors/http-auth-interceptor.d.ts +19 -0
  115. package/lib/interfaces/global-state.d.ts +5 -0
  116. package/lib/modules/common/common-shared.module.d.ts +13 -0
  117. package/lib/modules/common/custom-select/custom-select.component.d.ts +33 -0
  118. package/lib/modules/common/filters/filters.component.d.ts +38 -0
  119. package/lib/modules/common/pagination/pagination.component.d.ts +18 -0
  120. package/lib/modules/errors/error403/error403.component.d.ts +14 -0
  121. package/lib/modules/errors/error404/error404.component.d.ts +15 -0
  122. package/lib/modules/errors/error500/error500.component.d.ts +15 -0
  123. package/lib/modules/errors/errors-routing.module.d.ts +7 -0
  124. package/lib/modules/errors/errors.component.d.ts +13 -0
  125. package/lib/modules/errors/errors.module.d.ts +13 -0
  126. package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +17 -0
  127. package/lib/modules/intro/contact-support/contact-support.component.d.ts +9 -0
  128. package/lib/modules/intro/intro-routing.module.d.ts +7 -0
  129. package/lib/modules/intro/intro.module.d.ts +11 -0
  130. package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +31 -0
  131. package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +13 -0
  132. package/lib/modules/layout/content/content.component.d.ts +25 -0
  133. package/lib/modules/layout/footer/footer.component.d.ts +8 -0
  134. package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +18 -0
  135. package/lib/modules/layout/header/header.component.d.ts +30 -0
  136. package/lib/modules/layout/header/navbar/navbar.component.d.ts +45 -0
  137. package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +25 -0
  138. package/lib/modules/layout/header/page-title/page-title.component.d.ts +23 -0
  139. package/lib/modules/layout/keenicon/keenicon.component.d.ts +13 -0
  140. package/lib/modules/layout/layout/layout.component.d.ts +82 -0
  141. package/lib/modules/layout/layout.module.d.ts +50 -0
  142. package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +19 -0
  143. package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +19 -0
  144. package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +45 -0
  145. package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +19 -0
  146. package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +26 -0
  147. package/lib/modules/layout/sidebar/sidebar.component.d.ts +36 -0
  148. package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +8 -0
  149. package/lib/modules/layout/toolbar/classic/classic.component.d.ts +48 -0
  150. package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +16 -0
  151. package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +28 -0
  152. package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +28 -0
  153. package/lib/modules/layout/toolbar/extended/extended.component.d.ts +8 -0
  154. package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +103 -0
  155. package/lib/modules/layout/toolbar/reports/reports.component.d.ts +9 -0
  156. package/lib/modules/layout/toolbar/saas/saas.component.d.ts +9 -0
  157. package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +32 -0
  158. package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +33 -0
  159. package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +34 -0
  160. package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +24 -0
  161. package/lib/modules/layout/toolbar/toolbar.component.d.ts +57 -0
  162. package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +93 -0
  163. package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +80 -0
  164. package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +83 -0
  165. package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +74 -0
  166. package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +97 -0
  167. package/lib/modules/notification/conformation/conformation.component.d.ts +10 -0
  168. package/lib/modules/notification/notification/notification.component.d.ts +63 -0
  169. package/lib/modules/notification/notification-routing.module.d.ts +7 -0
  170. package/lib/modules/notification/notification.module.d.ts +11 -0
  171. package/lib/pipes/customDate.pipe.d.ts +7 -0
  172. package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +7 -0
  173. package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +7 -0
  174. package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +7 -0
  175. package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +7 -0
  176. package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +7 -0
  177. package/lib/routes/routing.d.ts +3 -0
  178. package/lib/services/auth.service.d.ts +49 -0
  179. package/lib/services/notification.service.d.ts +30 -0
  180. package/lib/services/toast.service.d.ts +10 -0
  181. package/package.json +25 -12
  182. package/{src/public-api.ts → public-api.d.ts} +44 -71
  183. package/.eslintrc.json +0 -37
  184. package/ng-package.json +0 -7
  185. package/src/lib/guards/auth.guard.ts +0 -20
  186. package/src/lib/guards/lead.guard.ts +0 -16
  187. package/src/lib/guards/stores.guard.ts +0 -16
  188. package/src/lib/guards/tickets.guard.ts +0 -16
  189. package/src/lib/i18n/translation.module.ts +0 -9
  190. package/src/lib/i18n/translation.service.ts +0 -61
  191. package/src/lib/i18n/vocabs/ch.ts +0 -105
  192. package/src/lib/i18n/vocabs/de.ts +0 -105
  193. package/src/lib/i18n/vocabs/en.ts +0 -105
  194. package/src/lib/i18n/vocabs/es.ts +0 -105
  195. package/src/lib/i18n/vocabs/fr.ts +0 -105
  196. package/src/lib/i18n/vocabs/jp.ts +0 -105
  197. package/src/lib/interceptors/http-auth-interceptor.ts +0 -225
  198. package/src/lib/interfaces/global-state.ts +0 -6
  199. package/src/lib/modules/common/common-shared.module.ts +0 -20
  200. package/src/lib/modules/common/custom-select/custom-select.component.html +0 -42
  201. package/src/lib/modules/common/custom-select/custom-select.component.scss +0 -131
  202. package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +0 -23
  203. package/src/lib/modules/common/custom-select/custom-select.component.ts +0 -149
  204. package/src/lib/modules/common/filters/filters.component.html +0 -76
  205. package/src/lib/modules/common/filters/filters.component.scss +0 -131
  206. package/src/lib/modules/common/filters/filters.component.spec.ts +0 -23
  207. package/src/lib/modules/common/filters/filters.component.ts +0 -181
  208. package/src/lib/modules/common/pagination/pagination.component.html +0 -26
  209. package/src/lib/modules/common/pagination/pagination.component.scss +0 -63
  210. package/src/lib/modules/common/pagination/pagination.component.spec.ts +0 -23
  211. package/src/lib/modules/common/pagination/pagination.component.ts +0 -46
  212. package/src/lib/modules/errors/error403/error403.component.html +0 -25
  213. package/src/lib/modules/errors/error403/error403.component.scss +0 -0
  214. package/src/lib/modules/errors/error403/error403.component.spec.ts +0 -23
  215. package/src/lib/modules/errors/error403/error403.component.ts +0 -28
  216. package/src/lib/modules/errors/error404/error404.component.html +0 -24
  217. package/src/lib/modules/errors/error404/error404.component.scss +0 -0
  218. package/src/lib/modules/errors/error404/error404.component.spec.ts +0 -25
  219. package/src/lib/modules/errors/error404/error404.component.ts +0 -50
  220. package/src/lib/modules/errors/error500/error500.component.html +0 -24
  221. package/src/lib/modules/errors/error500/error500.component.scss +0 -0
  222. package/src/lib/modules/errors/error500/error500.component.spec.ts +0 -25
  223. package/src/lib/modules/errors/error500/error500.component.ts +0 -50
  224. package/src/lib/modules/errors/errors-routing.module.ts +0 -40
  225. package/src/lib/modules/errors/errors.component.html +0 -15
  226. package/src/lib/modules/errors/errors.component.scss +0 -4
  227. package/src/lib/modules/errors/errors.component.spec.ts +0 -25
  228. package/src/lib/modules/errors/errors.component.ts +0 -42
  229. package/src/lib/modules/errors/errors.module.ts +0 -25
  230. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +0 -16
  231. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
  232. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +0 -23
  233. package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +0 -43
  234. package/src/lib/modules/intro/contact-support/contact-support.component.html +0 -30
  235. package/src/lib/modules/intro/contact-support/contact-support.component.scss +0 -60
  236. package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +0 -23
  237. package/src/lib/modules/intro/contact-support/contact-support.component.ts +0 -17
  238. package/src/lib/modules/intro/intro-routing.module.ts +0 -16
  239. package/src/lib/modules/intro/intro.module.ts +0 -21
  240. package/src/lib/modules/intro/lead-intro/lead-intro.component.html +0 -325
  241. package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +0 -185
  242. package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +0 -23
  243. package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +0 -120
  244. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +0 -44
  245. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +0 -28
  246. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +0 -23
  247. package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +0 -24
  248. package/src/lib/modules/layout/content/content.component.html +0 -12
  249. package/src/lib/modules/layout/content/content.component.scss +0 -0
  250. package/src/lib/modules/layout/content/content.component.ts +0 -102
  251. package/src/lib/modules/layout/footer/footer.component.html +0 -29
  252. package/src/lib/modules/layout/footer/footer.component.scss +0 -7
  253. package/src/lib/modules/layout/footer/footer.component.spec.ts +0 -25
  254. package/src/lib/modules/layout/footer/footer.component.ts +0 -13
  255. package/src/lib/modules/layout/header/header-menu/header-menu.component.html +0 -27
  256. package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +0 -4
  257. package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +0 -25
  258. package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +0 -38
  259. package/src/lib/modules/layout/header/header.component.html +0 -90
  260. package/src/lib/modules/layout/header/header.component.scss +0 -7
  261. package/src/lib/modules/layout/header/header.component.spec.ts +0 -25
  262. package/src/lib/modules/layout/header/header.component.ts +0 -139
  263. package/src/lib/modules/layout/header/navbar/navbar.component.html +0 -156
  264. package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -223
  265. package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +0 -23
  266. package/src/lib/modules/layout/header/navbar/navbar.component.ts +0 -255
  267. package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +0 -200
  268. package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +0 -139
  269. package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +0 -76
  270. package/src/lib/modules/layout/header/page-title/page-title.component.html +0 -32
  271. package/src/lib/modules/layout/header/page-title/page-title.component.scss +0 -11
  272. package/src/lib/modules/layout/header/page-title/page-title.component.ts +0 -47
  273. package/src/lib/modules/layout/keenicon/icons.json +0 -1
  274. package/src/lib/modules/layout/keenicon/keenicon.component.html +0 -4
  275. package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
  276. package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +0 -23
  277. package/src/lib/modules/layout/keenicon/keenicon.component.ts +0 -30
  278. package/src/lib/modules/layout/layout/layout.component.html +0 -71
  279. package/src/lib/modules/layout/layout/layout.component.scss +0 -23
  280. package/src/lib/modules/layout/layout/layout.component.ts +0 -425
  281. package/src/lib/modules/layout/layout.module.ts +0 -129
  282. package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
  283. package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +0 -81
  284. package/src/lib/modules/layout/scroll-top/scroll-top.component.html +0 -1
  285. package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +0 -75
  286. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +0 -70
  287. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -57
  288. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +0 -23
  289. package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +0 -136
  290. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +0 -26
  291. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
  292. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +0 -23
  293. package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +0 -36
  294. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +0 -761
  295. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -38
  296. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +0 -23
  297. package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +0 -130
  298. package/src/lib/modules/layout/sidebar/sidebar.component.html +0 -16
  299. package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -3
  300. package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +0 -23
  301. package/src/lib/modules/layout/sidebar/sidebar.component.ts +0 -203
  302. package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +0 -84
  303. package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
  304. package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +0 -23
  305. package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +0 -14
  306. package/src/lib/modules/layout/toolbar/classic/classic.component.html +0 -69
  307. package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -238
  308. package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +0 -23
  309. package/src/lib/modules/layout/toolbar/classic/classic.component.ts +0 -389
  310. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +0 -4
  311. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +0 -3
  312. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +0 -23
  313. package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +0 -91
  314. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +0 -22
  315. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +0 -156
  316. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +0 -23
  317. package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +0 -238
  318. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +0 -14
  319. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +0 -149
  320. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +0 -23
  321. package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +0 -183
  322. package/src/lib/modules/layout/toolbar/extended/extended.component.html +0 -100
  323. package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
  324. package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +0 -23
  325. package/src/lib/modules/layout/toolbar/extended/extended.component.ts +0 -12
  326. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +0 -311
  327. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +0 -311
  328. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +0 -23
  329. package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +0 -1555
  330. package/src/lib/modules/layout/toolbar/reports/reports.component.html +0 -62
  331. package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
  332. package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +0 -23
  333. package/src/lib/modules/layout/toolbar/reports/reports.component.ts +0 -14
  334. package/src/lib/modules/layout/toolbar/saas/saas.component.html +0 -77
  335. package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
  336. package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +0 -23
  337. package/src/lib/modules/layout/toolbar/saas/saas.component.ts +0 -14
  338. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +0 -26
  339. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -176
  340. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +0 -23
  341. package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +0 -235
  342. package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +0 -39
  343. package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +0 -176
  344. package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +0 -23
  345. package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +0 -188
  346. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +0 -17
  347. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +0 -172
  348. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +0 -23
  349. package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +0 -179
  350. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +0 -4
  351. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +0 -19
  352. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +0 -23
  353. package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +0 -105
  354. package/src/lib/modules/layout/toolbar/toolbar.component.html +0 -64
  355. package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
  356. package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +0 -25
  357. package/src/lib/modules/layout/toolbar/toolbar.component.ts +0 -400
  358. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +0 -259
  359. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +0 -305
  360. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +0 -23
  361. package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +0 -1202
  362. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +0 -199
  363. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +0 -311
  364. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +0 -23
  365. package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +0 -899
  366. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +0 -204
  367. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +0 -311
  368. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +0 -23
  369. package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +0 -1045
  370. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +0 -190
  371. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +0 -311
  372. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +0 -23
  373. package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +0 -825
  374. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +0 -259
  375. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +0 -305
  376. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +0 -23
  377. package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +0 -1242
  378. package/src/lib/modules/notification/conformation/conformation.component.html +0 -25
  379. package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
  380. package/src/lib/modules/notification/conformation/conformation.component.spec.ts +0 -23
  381. package/src/lib/modules/notification/conformation/conformation.component.ts +0 -23
  382. package/src/lib/modules/notification/notification/notification.component.html +0 -209
  383. package/src/lib/modules/notification/notification/notification.component.scss +0 -211
  384. package/src/lib/modules/notification/notification/notification.component.spec.ts +0 -23
  385. package/src/lib/modules/notification/notification/notification.component.ts +0 -310
  386. package/src/lib/modules/notification/notification-routing.module.ts +0 -20
  387. package/src/lib/modules/notification/notification.module.ts +0 -21
  388. package/src/lib/pipes/customDate.pipe.ts +0 -18
  389. package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +0 -12
  390. package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +0 -11
  391. package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +0 -11
  392. package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +0 -12
  393. package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +0 -11
  394. package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +0 -10
  395. package/src/lib/routes/routing.ts +0 -56
  396. package/src/lib/services/auth.service.ts +0 -178
  397. package/src/lib/services/notification.service.spec.ts +0 -16
  398. package/src/lib/services/notification.service.ts +0 -73
  399. package/src/lib/services/toast.service.ts +0 -82
  400. package/tsconfig.lib.json +0 -14
  401. package/tsconfig.lib.prod.json +0 -10
  402. package/tsconfig.spec.json +0 -14
@@ -1,425 +0,0 @@
1
- import {
2
- Component,
3
- OnInit,
4
- ViewChild,
5
- ElementRef,
6
- OnDestroy,
7
- HostListener,
8
- } from '@angular/core';
9
- import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
10
- import { Subscription } from 'rxjs';
11
- import { GlobalStateService, ILayout, LayoutType } from 'tango-app-ui-global';
12
- import { LayoutInitService, LayoutService } from 'tango-app-ui-global';
13
- import { AuthService } from '../../../services/auth.service';
14
- import { ToastService } from '../../../services/toast.service';
15
-
16
- @Component({
17
- selector: 'lib-layout',
18
- templateUrl: './layout.component.html',
19
- styleUrls: ['./layout.component.scss'],
20
- })
21
- export class LayoutComponent implements OnInit, OnDestroy {
22
- private unsubscribe: Subscription[] = [];
23
-
24
- // Public variables
25
- // page
26
- pageContainerCSSClasses: string;
27
- // header
28
- appHeaderDefaultClass: string = '';
29
- appHeaderDisplay: boolean;
30
- appHeaderDefaultStickyEnabled: boolean;
31
- appHeaderDefaultStickyAttributes: { [attrName: string]: string } = {};
32
- appHeaderDefaultMinimizeEnabled: boolean;
33
- appHeaderDefaultMinimizeAttributes: { [attrName: string]: string } = {};
34
- // toolbar
35
- appToolbarDisplay: boolean;
36
- appToolbarLayout: 'classic' | 'accounting' | 'extended' | 'reports' | 'saas';
37
- appToolbarCSSClass: string = '';
38
- appToolbarSwapEnabled: boolean;
39
- appToolbarSwapAttributes: { [attrName: string]: string } = {};
40
- appToolbarStickyEnabled: boolean;
41
- appToolbarStickyAttributes: { [attrName: string]: string } = {};
42
- appToolbarMinimizeEnabled: boolean;
43
- appToolbarMinimizeAttributes: { [attrName: string]: string } = {};
44
-
45
- // content
46
- appContentContiner?: 'fixed' | 'fluid';
47
- appContentContainerClass: string;
48
- contentCSSClasses: string;
49
- contentContainerCSSClass: string;
50
- // sidebar
51
- appSidebarDefaultClass: string;
52
- appSidebarDefaultDrawerEnabled: boolean;
53
- appSidebarDefaultDrawerAttributes: { [attrName: string]: string } = {};
54
- appSidebarDisplay: boolean;
55
- appSidebarDefaultStickyEnabled: boolean;
56
- appSidebarDefaultStickyAttributes: { [attrName: string]: string } = {};
57
- @ViewChild('ktSidebar', { static: true }) ktSidebar: ElementRef;
58
- /// sidebar panel
59
- appSidebarPanelDisplay: boolean;
60
- // footer
61
- appFooterDisplay: boolean;
62
- appFooterCSSClass: string = '';
63
- appFooterContainer: string = '';
64
- appFooterContainerCSSClass: string = '';
65
- appFooterFixedDesktop: boolean;
66
- appFooterFixedMobile: boolean;
67
-
68
- // scrolltop
69
- scrolltopDisplay: boolean;
70
-
71
- @ViewChild('ktAside', { static: true }) ktAside: ElementRef;
72
- @ViewChild('ktHeaderMobile', { static: true }) ktHeaderMobile: ElementRef;
73
- @ViewChild('ktHeader', { static: true }) ktHeader: ElementRef;
74
-
75
- constructor(
76
- private initService: LayoutInitService,
77
- private layout: LayoutService,
78
- private router: Router,
79
- private activatedRoute: ActivatedRoute,
80
- private authService:AuthService,
81
- private toastService:ToastService,
82
- private gs:GlobalStateService
83
- ) {
84
-
85
- // define layout type and load layout
86
- this.router.events.subscribe((event) => {
87
- if (event instanceof NavigationEnd) {
88
- const currentLayoutType = this.layout.currentLayoutTypeSubject.value;
89
-
90
- const nextLayoutType: LayoutType =
91
- this.activatedRoute?.firstChild?.snapshot.data.layout ||
92
- this.layout.getBaseLayoutTypeFromLocalStorage();
93
-
94
- if (currentLayoutType !== nextLayoutType || !currentLayoutType) {
95
- this.layout.currentLayoutTypeSubject.next(nextLayoutType);
96
- this.initService.reInitProps(nextLayoutType);
97
- }
98
- }
99
- });
100
- }
101
-
102
- ngOnInit() {
103
- const subscr = this.layout.layoutConfigSubject
104
- .asObservable()
105
- .subscribe((config) => {
106
- this.updateProps(config);
107
- });
108
- this.unsubscribe.push(subscr);
109
- }
110
-
111
- updateProps(config: ILayout) {
112
- this.scrolltopDisplay = this.layout.getProp(
113
- 'scrolltop.display',
114
- config
115
- ) as boolean;
116
- this.pageContainerCSSClasses =
117
- this.layout.getStringCSSClasses('pageContainer');
118
- this.appHeaderDefaultClass = this.layout.getProp(
119
- 'app.header.default.class',
120
- config
121
- ) as string;
122
- this.appHeaderDisplay = this.layout.getProp(
123
- 'app.header.display',
124
- config
125
- ) as boolean;
126
- this.appFooterDisplay = this.layout.getProp(
127
- 'app.footer.display',
128
- config
129
- ) as boolean;
130
- this.appSidebarDisplay = this.layout.getProp(
131
- 'app.sidebar.display',
132
- config
133
- ) as boolean;
134
- this.appSidebarPanelDisplay = this.layout.getProp(
135
- 'app.sidebar-panel.display',
136
- config
137
- ) as boolean;
138
- this.appToolbarDisplay = this.layout.getProp(
139
- 'app.toolbar.display',
140
- config
141
- ) as boolean;
142
- this.contentCSSClasses = this.layout.getStringCSSClasses('content');
143
- this.contentContainerCSSClass =
144
- this.layout.getStringCSSClasses('contentContainer');
145
- this.appContentContiner = this.layout.getProp(
146
- 'app.content.container',
147
- config
148
- ) as 'fixed' | 'fluid';
149
- this.appContentContainerClass = this.layout.getProp(
150
- 'app.content.containerClass',
151
- config
152
- ) as string;
153
- // footer
154
- if (this.appFooterDisplay) {
155
- this.updateFooter(config);
156
- }
157
- // sidebar
158
- if (this.appSidebarDisplay) {
159
- this.updateSidebar(config);
160
- }
161
- // header
162
- if (this.appHeaderDisplay) {
163
- this.updateHeader(config);
164
- }
165
- // toolbar
166
- if (this.appToolbarDisplay) {
167
- this.updateToolbar(config);
168
- }
169
- }
170
-
171
- updateSidebar(config: ILayout) {
172
- this.appSidebarDefaultClass = this.layout.getProp(
173
- 'app.sidebar.default.class',
174
- config
175
- ) as string;
176
-
177
- this.appSidebarDefaultDrawerEnabled = this.layout.getProp(
178
- 'app.sidebar.default.drawer.enabled',
179
- config
180
- ) as boolean;
181
- if (this.appSidebarDefaultDrawerEnabled) {
182
- this.appSidebarDefaultDrawerAttributes = this.layout.getProp(
183
- 'app.sidebar.default.drawer.attributes',
184
- config
185
- ) as { [attrName: string]: string };
186
- }
187
-
188
- this.appSidebarDefaultStickyEnabled = this.layout.getProp(
189
- 'app.sidebar.default.sticky.enabled',
190
- config
191
- ) as boolean;
192
- if (this.appSidebarDefaultStickyEnabled) {
193
- this.appSidebarDefaultStickyAttributes = this.layout.getProp(
194
- 'app.sidebar.default.sticky.attributes',
195
- config
196
- ) as { [attrName: string]: string };
197
- }
198
-
199
- setTimeout(() => {
200
- const sidebarElement = document.getElementById('kt_app_sidebar');
201
- // sidebar
202
- if (this.appSidebarDisplay && sidebarElement) {
203
- const sidebarAttributes = sidebarElement
204
- .getAttributeNames()
205
- .filter((t) => t.indexOf('data-') > -1);
206
- sidebarAttributes.forEach((attr) =>
207
- sidebarElement.removeAttribute(attr)
208
- );
209
-
210
- if (this.appSidebarDefaultDrawerEnabled) {
211
- for (const key in this.appSidebarDefaultDrawerAttributes) {
212
- if (this.appSidebarDefaultDrawerAttributes.hasOwnProperty(key)) {
213
- sidebarElement.setAttribute(
214
- key,
215
- this.appSidebarDefaultDrawerAttributes[key]
216
- );
217
- }
218
- }
219
- }
220
-
221
- if (this.appSidebarDefaultStickyEnabled) {
222
- for (const key in this.appSidebarDefaultStickyAttributes) {
223
- if (this.appSidebarDefaultStickyAttributes.hasOwnProperty(key)) {
224
- sidebarElement.setAttribute(
225
- key,
226
- this.appSidebarDefaultStickyAttributes[key]
227
- );
228
- }
229
- }
230
- }
231
- }
232
- }, 0);
233
- }
234
-
235
- updateHeader(config: ILayout) {
236
- this.appHeaderDefaultStickyEnabled = this.layout.getProp(
237
- 'app.header.default.sticky.enabled',
238
- config
239
- ) as boolean;
240
- if (this.appHeaderDefaultStickyEnabled) {
241
- this.appHeaderDefaultStickyAttributes = this.layout.getProp(
242
- 'app.header.default.sticky.attributes',
243
- config
244
- ) as { [attrName: string]: string };
245
- }
246
-
247
- this.appHeaderDefaultMinimizeEnabled = this.layout.getProp(
248
- 'app.header.default.minimize.enabled',
249
- config
250
- ) as boolean;
251
- if (this.appHeaderDefaultMinimizeEnabled) {
252
- this.appHeaderDefaultMinimizeAttributes = this.layout.getProp(
253
- 'app.header.default.minimize.attributes',
254
- config
255
- ) as { [attrName: string]: string };
256
- }
257
-
258
- setTimeout(() => {
259
- const headerElement = document.getElementById('kt_app_header');
260
- // header
261
- if (this.appHeaderDisplay && headerElement) {
262
- const headerAttributes = headerElement
263
- .getAttributeNames()
264
- .filter((t) => t.indexOf('data-') > -1);
265
- headerAttributes.forEach((attr) => headerElement.removeAttribute(attr));
266
-
267
- if (this.appHeaderDefaultStickyEnabled) {
268
- for (const key in this.appHeaderDefaultStickyAttributes) {
269
- if (this.appHeaderDefaultStickyAttributes.hasOwnProperty(key)) {
270
- headerElement.setAttribute(
271
- key,
272
- this.appHeaderDefaultStickyAttributes[key]
273
- );
274
- }
275
- }
276
- }
277
-
278
- if (this.appHeaderDefaultMinimizeEnabled) {
279
- for (const key in this.appHeaderDefaultMinimizeAttributes) {
280
- if (this.appHeaderDefaultMinimizeAttributes.hasOwnProperty(key)) {
281
- headerElement.setAttribute(
282
- key,
283
- this.appHeaderDefaultMinimizeAttributes[key]
284
- );
285
- }
286
- }
287
- }
288
- }
289
- }, 0);
290
- }
291
-
292
- updateFooter(config: ILayout) {
293
- this.appFooterCSSClass = this.layout.getProp('app.footer.class', config) as string;
294
- this.appFooterContainer = this.layout.getProp('app.footer.container', config) as string;
295
- this.appFooterContainerCSSClass = this.layout.getProp('app.footer.containerClass', config) as string;
296
- if (this.appFooterContainer === 'fixed') {
297
- this.appFooterContainerCSSClass += ' container-xxl';
298
- } else {
299
- if (this.appFooterContainer === 'fluid') {
300
- this.appFooterContainerCSSClass += ' container-fluid';
301
- }
302
- }
303
-
304
- this.appFooterFixedDesktop = this.layout.getProp('app.footer.fixed.desktop', config) as boolean;
305
- if (this.appFooterFixedDesktop) {
306
- document.body.setAttribute('data-kt-app-footer-fixed', 'true')
307
- }
308
-
309
- this.appFooterFixedMobile = this.layout.getProp('app.footer.fixed.mobile') as boolean;
310
- if (this.appFooterFixedMobile) {
311
- document.body.setAttribute('data-kt-app-footer-fixed-mobile', 'true')
312
- }
313
- }
314
-
315
- updateToolbar(config: ILayout) {
316
- this.appToolbarLayout = this.layout.getProp(
317
- 'app.toolbar.layout',
318
- config
319
- ) as 'classic' | 'accounting' | 'extended' | 'reports' | 'saas';
320
- this.appToolbarSwapEnabled = this.layout.getProp(
321
- 'app.toolbar.swap.enabled',
322
- config
323
- ) as boolean;
324
- if (this.appToolbarSwapEnabled) {
325
- this.appToolbarSwapAttributes = this.layout.getProp(
326
- 'app.toolbar.swap.attributes',
327
- config
328
- ) as { [attrName: string]: string };
329
- }
330
-
331
- this.appToolbarStickyEnabled = this.layout.getProp(
332
- 'app.toolbar.sticky.enabled',
333
- config
334
- ) as boolean;
335
- if (this.appToolbarStickyEnabled) {
336
- this.appToolbarStickyAttributes = this.layout.getProp(
337
- 'app.toolbar.sticky.attributes',
338
- config
339
- ) as { [attrName: string]: string };
340
- }
341
-
342
- this.appToolbarCSSClass =
343
- (this.layout.getProp('app.toolbar.class', config) as string) || '';
344
- this.appToolbarMinimizeEnabled = this.layout.getProp(
345
- 'app.toolbar.minimize.enabled',
346
- config
347
- ) as boolean;
348
- if (this.appToolbarMinimizeEnabled) {
349
- this.appToolbarMinimizeAttributes = this.layout.getProp(
350
- 'app.toolbar.minimize.attributes',
351
- config
352
- ) as { [attrName: string]: string };
353
- this.appToolbarCSSClass += ' app-toolbar-minimize';
354
- }
355
-
356
- setTimeout(() => {
357
- const toolbarElement = document.getElementById('kt_app_toolbar');
358
- // toolbar
359
- if (this.appToolbarDisplay && toolbarElement) {
360
- const toolbarAttributes = toolbarElement
361
- .getAttributeNames()
362
- .filter((t) => t.indexOf('data-') > -1);
363
- toolbarAttributes.forEach((attr) =>
364
- toolbarElement.removeAttribute(attr)
365
- );
366
-
367
- if (this.appToolbarSwapEnabled) {
368
- for (const key in this.appToolbarSwapAttributes) {
369
- if (this.appToolbarSwapAttributes.hasOwnProperty(key)) {
370
- toolbarElement.setAttribute(
371
- key,
372
- this.appToolbarSwapAttributes[key]
373
- );
374
- }
375
- }
376
- }
377
-
378
- if (this.appToolbarStickyEnabled) {
379
- for (const key in this.appToolbarStickyAttributes) {
380
- if (this.appToolbarStickyAttributes.hasOwnProperty(key)) {
381
- toolbarElement.setAttribute(
382
- key,
383
- this.appToolbarStickyAttributes[key]
384
- );
385
- }
386
- }
387
- }
388
-
389
- if (this.appToolbarMinimizeEnabled) {
390
- for (const key in this.appToolbarMinimizeAttributes) {
391
- if (this.appToolbarMinimizeAttributes.hasOwnProperty(key)) {
392
- toolbarElement.setAttribute(
393
- key,
394
- this.appToolbarMinimizeAttributes[key]
395
- );
396
- }
397
- }
398
- }
399
- }
400
- }, 0);
401
- }
402
-
403
- ngOnDestroy() {
404
- this.unsubscribe.forEach((sb) => sb.unsubscribe());
405
- }
406
- previousScroll = 0;
407
- // appHeaderDisplay = true; // Initially visible
408
- isToolbarFixed = false;
409
- @HostListener('window:scroll', [])
410
- onScroll(): void {
411
- const currentScroll = window.scrollY;
412
-
413
- if (currentScroll > this.previousScroll && currentScroll > 100) {
414
- // Hide header on scroll down
415
- this.appHeaderDisplay = false;
416
- this.isToolbarFixed = true; // Fix toolbar
417
- } else {
418
- // Show header on scroll up
419
- this.appHeaderDisplay = true;
420
- this.isToolbarFixed = currentScroll > 100; // Keep toolbar fixed if scrolled beyond 100px
421
- }
422
-
423
- this.previousScroll = currentScroll;
424
- }
425
- }
@@ -1,129 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { InlineSVGModule } from 'ng-inline-svg-2';
4
- import { RouterModule, Routes } from '@angular/router';
5
- import {
6
- NgbDropdownModule,
7
- NgbProgressbarModule,
8
- NgbTooltipModule,
9
- } from '@ng-bootstrap/ng-bootstrap';
10
- import { TranslateModule } from '@ngx-translate/core';
11
- // import { ExtrasModule } from '../partials/layout/extras/extras.module';
12
- // import {
13
- // DrawersModule,
14
- // DropdownMenusModule,
15
- // ModalsModule,
16
- // EngagesModule,
17
- // } from '../partials';
18
- // import { EngagesComponent } from '../partials/layout/engages/engages.component';
19
- // import { ThemeModeModule } from '../partials/layout/theme-mode-switcher/theme-mode.module';
20
- import { KeeniconComponent } from './keenicon/keenicon.component';
21
- import { TranslationModule } from '../../i18n';
22
- import { LayoutComponent } from './layout/layout.component';
23
- import { HeaderComponent } from './header/header.component';
24
- import { ContentComponent } from './content/content.component';
25
- import { FooterComponent } from './footer/footer.component';
26
- import { ScriptsInitComponent } from './scripts-init/scripts-init.component';
27
- import { ToolbarComponent } from './toolbar/toolbar.component';
28
- import { PageTitleComponent } from './header/page-title/page-title.component';
29
- import { HeaderMenuComponent } from './header/header-menu/header-menu.component';
30
- import { SidebarComponent } from './sidebar/sidebar.component';
31
- import { SidebarLogoComponent } from './sidebar/sidebar-logo/sidebar-logo.component';
32
- import { SidebarMenuComponent } from './sidebar/sidebar-menu/sidebar-menu.component';
33
- import { SidebarFooterComponent } from './sidebar/sidebar-footer/sidebar-footer.component';
34
- import { NavbarComponent } from './header/navbar/navbar.component';
35
- import { AccountingComponent } from './toolbar/accounting/accounting.component';
36
- import { ClassicComponent } from './toolbar/classic/classic.component';
37
- import { ExtendedComponent } from './toolbar/extended/extended.component';
38
- import { ReportsComponent } from './toolbar/reports/reports.component';
39
- import { SaasComponent } from './toolbar/saas/saas.component';
40
- import { Routing } from '../../routes/routing';
41
- import { LayoutScrollTopComponent } from './scroll-top/scroll-top.component';
42
- import { CommonSharedModule } from '../common/common-shared.module';
43
- import { FormsModule } from '@angular/forms';
44
- import { NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
45
- import { ClientSettingsComponent } from './toolbar/client-settings/client-settings.component';
46
- import { DatepickerComponent } from './toolbar/datepicker/datepicker.component';
47
- import { DateSingleSelectComponent } from './toolbar/date-single-select/date-single-select.component';
48
- import { SingleStoreComponent } from './toolbar/single-store/single-store.component';
49
- import { NotificationsInnerComponent } from './header/notifications-inner/notifications-inner.component';
50
- import { CsmAssignConfirmationComponent } from './components/csm-assign-confirmation/csm-assign-confirmation.component';
51
- import { TrafficHeaderComponent } from './toolbar/traffic-header/traffic-header/traffic-header.component';
52
- import { TraxHeaderComponent } from './toolbar/trax-header/trax-header.component';
53
- import { SingleStoredateComponent } from './toolbar/single-storedate/single-storedate.component';
54
- import { StoresingleComponent } from './toolbar/storesingle/storesingle.component';
55
- import { TraxWithoutdateComponent } from './toolbar/trax-withoutdate/trax-withoutdate.component';
56
- import { TrafficNobComponent } from './toolbar/traffic-nob/traffic-nob.component';
57
- import { MetricsHeaderComponent } from './toolbar/metrics-header/metrics-header.component';
58
- import { SingleClientstoreDateComponent } from './toolbar/single-clientstore-date/single-clientstore-date.component';
59
- import { ZoneHeaderComponent } from './toolbar/zone-header/zone-header.component';
60
-
61
- const routes: Routes = [
62
- {
63
- path: '',
64
- component: LayoutComponent,
65
- children: Routing,
66
- },
67
- ];
68
-
69
- @NgModule({
70
- declarations: [
71
- LayoutComponent,
72
- HeaderComponent,
73
- ContentComponent,
74
- FooterComponent,
75
- ScriptsInitComponent,
76
- ToolbarComponent,
77
- PageTitleComponent,
78
- HeaderMenuComponent,
79
- // EngagesComponent,
80
- SidebarComponent,
81
- SidebarLogoComponent,
82
- SidebarMenuComponent,
83
- SidebarFooterComponent,
84
- NavbarComponent,
85
- AccountingComponent,
86
- ClassicComponent,
87
- ExtendedComponent,
88
- ReportsComponent,
89
- SaasComponent,
90
- KeeniconComponent,
91
- LayoutScrollTopComponent,
92
- ClientSettingsComponent,
93
- DatepickerComponent,
94
- DateSingleSelectComponent,
95
- SingleStoreComponent,
96
- NotificationsInnerComponent,
97
- CsmAssignConfirmationComponent,
98
- TrafficHeaderComponent,
99
- TraxHeaderComponent,
100
- SingleStoredateComponent,
101
- StoresingleComponent,
102
- TraxWithoutdateComponent,
103
- TrafficNobComponent,
104
- MetricsHeaderComponent,
105
- SingleClientstoreDateComponent,
106
- ZoneHeaderComponent
107
- ],
108
- imports: [
109
- CommonModule,
110
- RouterModule.forChild(routes),
111
- TranslationModule,
112
- InlineSVGModule,
113
- NgbDropdownModule,
114
- NgbProgressbarModule,
115
- // ExtrasModule,
116
- // ModalsModule,
117
- // DrawersModule,
118
- // EngagesModule,
119
- // DropdownMenusModule,
120
- NgbTooltipModule,
121
- TranslateModule,
122
- // ThemeModeModule,
123
- CommonSharedModule,
124
- FormsModule,
125
- NgxDaterangepickerMd.forRoot()
126
- ],
127
- exports: [RouterModule],
128
- })
129
- export class LayoutModule {}
@@ -1,81 +0,0 @@
1
- import { Component, OnDestroy, OnInit } from '@angular/core';
2
- import { ResolveEnd, Router } from '@angular/router';
3
- import { filter } from 'rxjs/operators';
4
- import { Observable, Subscription } from 'rxjs';
5
- import {
6
- ToggleComponent,
7
- ScrollTopComponent,
8
- DrawerComponent,
9
- StickyComponent,
10
- MenuComponent,
11
- ScrollComponent,
12
- } from 'tango-app-ui-global';
13
- import { Title } from '@angular/platform-browser';
14
- import { LayoutService, PageInfoService } from 'tango-app-ui-global';
15
-
16
- @Component({
17
- selector: 'lib-scripts-init',
18
- templateUrl: './scripts-init.component.html',
19
- })
20
- export class ScriptsInitComponent implements OnInit, OnDestroy {
21
- private unsubscribe: Subscription[] = [];
22
- constructor(
23
- private layout: LayoutService,
24
- private pageInfo: PageInfoService,
25
- private router: Router,
26
- private titleService: Title,
27
- ) {
28
- const initPageInfo = () => {
29
- setTimeout(() => {
30
- // this.pageInfo.calculateTitle();
31
- // this.pageInfo.calculateBreadcrumbs();
32
-
33
- this.pageInfo.title.asObservable().subscribe((title) => {
34
- this.titleService.setTitle(title + ' - TangoEye');
35
- });
36
- }, 10);
37
- };
38
-
39
- initPageInfo();
40
- // subscribe to router events
41
- this.router.events
42
- .pipe(filter((event) => event instanceof ResolveEnd))
43
- .subscribe(initPageInfo);
44
- }
45
-
46
- ngOnInit(): void {
47
- this.pluginsInitialization();
48
- const layoutUpdateSubscription = this.layout.layoutConfigSubject
49
- .asObservable()
50
- .subscribe(() => {
51
- this.pluginsReInitialization();
52
- });
53
- this.unsubscribe.push(layoutUpdateSubscription);
54
- }
55
-
56
- pluginsInitialization() {
57
- setTimeout(() => {
58
- ToggleComponent.bootstrap();
59
- ScrollTopComponent.bootstrap();
60
- DrawerComponent.bootstrap();
61
- StickyComponent.bootstrap();
62
- MenuComponent.bootstrap();
63
- ScrollComponent.bootstrap();
64
- }, 200);
65
- }
66
-
67
- pluginsReInitialization() {
68
- setTimeout(() => {
69
- ToggleComponent.reinitialization();
70
- ScrollTopComponent.reinitialization();
71
- DrawerComponent.reinitialization();
72
- StickyComponent.bootstrap();
73
- MenuComponent.reinitialization();
74
- ScrollComponent.reinitialization();
75
- }, 100);
76
- }
77
-
78
- ngOnDestroy() {
79
- this.unsubscribe.forEach((sb) => sb.unsubscribe());
80
- }
81
- }
@@ -1 +0,0 @@
1
- <lib-keenicon name="arrow-up" class="text-white fw-bold"></lib-keenicon>