tango-app-ui-shared 3.7.3-dev6-demo7 → 3.7.3-dev6-demo8
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.
- package/esm2022/lib/guards/auth.guard.mjs +26 -0
- package/esm2022/lib/guards/lead.guard.mjs +16 -0
- package/esm2022/lib/guards/stores.guard.mjs +16 -0
- package/esm2022/lib/guards/tickets.guard.mjs +16 -0
- package/esm2022/lib/i18n/index.mjs +3 -0
- package/esm2022/lib/i18n/translation.module.mjs +17 -0
- package/esm2022/lib/i18n/translation.service.mjs +53 -0
- package/esm2022/lib/i18n/vocabs/ch.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/de.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/en.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/es.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/fr.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/jp.mjs +106 -0
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +124 -0
- package/esm2022/lib/interfaces/global-state.mjs +2 -0
- package/esm2022/lib/modules/common/common-shared.module.mjs +31 -0
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +155 -0
- package/esm2022/lib/modules/common/filters/filters.component.mjs +179 -0
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +49 -0
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +33 -0
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +44 -0
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +45 -0
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +48 -0
- package/esm2022/lib/modules/errors/errors.component.mjs +39 -0
- package/esm2022/lib/modules/errors/errors.module.mjs +37 -0
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +44 -0
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +19 -0
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +24 -0
- package/esm2022/lib/modules/intro/intro.module.mjs +32 -0
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +110 -0
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +31 -0
- package/esm2022/lib/modules/layout/content/content.component.mjs +107 -0
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +17 -0
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +41 -0
- package/esm2022/lib/modules/layout/header/header.component.mjs +100 -0
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +256 -0
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +79 -0
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +56 -0
- package/esm2022/lib/modules/layout/keenicon/icons.json +1 -0
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +37 -0
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +314 -0
- package/esm2022/lib/modules/layout/layout.module.mjs +198 -0
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +74 -0
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +74 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +159 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +45 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +122 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +134 -0
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +16 -0
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +331 -0
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +88 -0
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +207 -0
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +158 -0
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +15 -0
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +1321 -0
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +216 -0
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +178 -0
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +166 -0
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +105 -0
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +372 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +1062 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +795 -0
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +880 -0
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +729 -0
- package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +1100 -0
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +22 -0
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +317 -0
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +28 -0
- package/esm2022/lib/modules/notification/notification.module.mjs +32 -0
- package/esm2022/lib/pipes/customDate.pipe.mjs +22 -0
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/routing.mjs +53 -0
- package/esm2022/lib/services/auth.service.mjs +141 -0
- package/esm2022/lib/services/notification.service.mjs +74 -0
- package/esm2022/lib/services/toast.service.mjs +83 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/tango-app-ui-shared.mjs +5 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +188 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +400 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared.mjs +12450 -0
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/guards/auth.guard.d.ts +10 -0
- package/lib/guards/lead.guard.d.ts +2 -0
- package/lib/guards/stores.guard.d.ts +2 -0
- package/lib/guards/tickets.guard.d.ts +2 -0
- package/{src/lib/i18n/index.ts → lib/i18n/index.d.ts} +2 -2
- package/lib/i18n/translation.module.d.ts +8 -0
- package/lib/i18n/translation.service.d.ts +19 -0
- package/lib/i18n/vocabs/ch.d.ts +104 -0
- package/lib/i18n/vocabs/de.d.ts +104 -0
- package/lib/i18n/vocabs/en.d.ts +104 -0
- package/lib/i18n/vocabs/es.d.ts +104 -0
- package/lib/i18n/vocabs/fr.d.ts +104 -0
- package/lib/i18n/vocabs/jp.d.ts +104 -0
- package/lib/interceptors/http-auth-interceptor.d.ts +19 -0
- package/lib/interfaces/global-state.d.ts +5 -0
- package/lib/modules/common/common-shared.module.d.ts +13 -0
- package/lib/modules/common/custom-select/custom-select.component.d.ts +33 -0
- package/lib/modules/common/filters/filters.component.d.ts +38 -0
- package/lib/modules/common/pagination/pagination.component.d.ts +18 -0
- package/lib/modules/errors/error403/error403.component.d.ts +14 -0
- package/lib/modules/errors/error404/error404.component.d.ts +15 -0
- package/lib/modules/errors/error500/error500.component.d.ts +15 -0
- package/lib/modules/errors/errors-routing.module.d.ts +7 -0
- package/lib/modules/errors/errors.component.d.ts +13 -0
- package/lib/modules/errors/errors.module.d.ts +13 -0
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +17 -0
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +9 -0
- package/lib/modules/intro/intro-routing.module.d.ts +7 -0
- package/lib/modules/intro/intro.module.d.ts +11 -0
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +31 -0
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +13 -0
- package/lib/modules/layout/content/content.component.d.ts +25 -0
- package/lib/modules/layout/footer/footer.component.d.ts +8 -0
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +18 -0
- package/lib/modules/layout/header/header.component.d.ts +30 -0
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +45 -0
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +25 -0
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +23 -0
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +13 -0
- package/lib/modules/layout/layout/layout.component.d.ts +82 -0
- package/lib/modules/layout/layout.module.d.ts +50 -0
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +19 -0
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +45 -0
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +26 -0
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +36 -0
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +48 -0
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +16 -0
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +103 -0
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +32 -0
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +33 -0
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +34 -0
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +24 -0
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +57 -0
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +93 -0
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +80 -0
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +83 -0
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +74 -0
- package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +97 -0
- package/lib/modules/notification/conformation/conformation.component.d.ts +10 -0
- package/lib/modules/notification/notification/notification.component.d.ts +63 -0
- package/lib/modules/notification/notification-routing.module.d.ts +7 -0
- package/lib/modules/notification/notification.module.d.ts +11 -0
- package/lib/pipes/customDate.pipe.d.ts +7 -0
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +7 -0
- package/lib/routes/routing.d.ts +3 -0
- package/lib/services/auth.service.d.ts +49 -0
- package/lib/services/notification.service.d.ts +30 -0
- package/lib/services/toast.service.d.ts +10 -0
- package/package.json +25 -12
- package/{src/public-api.ts → public-api.d.ts} +44 -71
- package/.eslintrc.json +0 -37
- package/ng-package.json +0 -7
- package/src/lib/guards/auth.guard.ts +0 -20
- package/src/lib/guards/lead.guard.ts +0 -16
- package/src/lib/guards/stores.guard.ts +0 -16
- package/src/lib/guards/tickets.guard.ts +0 -16
- package/src/lib/i18n/translation.module.ts +0 -9
- package/src/lib/i18n/translation.service.ts +0 -61
- package/src/lib/i18n/vocabs/ch.ts +0 -105
- package/src/lib/i18n/vocabs/de.ts +0 -105
- package/src/lib/i18n/vocabs/en.ts +0 -105
- package/src/lib/i18n/vocabs/es.ts +0 -105
- package/src/lib/i18n/vocabs/fr.ts +0 -105
- package/src/lib/i18n/vocabs/jp.ts +0 -105
- package/src/lib/interceptors/http-auth-interceptor.ts +0 -225
- package/src/lib/interfaces/global-state.ts +0 -6
- package/src/lib/modules/common/common-shared.module.ts +0 -20
- package/src/lib/modules/common/custom-select/custom-select.component.html +0 -42
- package/src/lib/modules/common/custom-select/custom-select.component.scss +0 -131
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +0 -23
- package/src/lib/modules/common/custom-select/custom-select.component.ts +0 -149
- package/src/lib/modules/common/filters/filters.component.html +0 -76
- package/src/lib/modules/common/filters/filters.component.scss +0 -131
- package/src/lib/modules/common/filters/filters.component.spec.ts +0 -23
- package/src/lib/modules/common/filters/filters.component.ts +0 -181
- package/src/lib/modules/common/pagination/pagination.component.html +0 -26
- package/src/lib/modules/common/pagination/pagination.component.scss +0 -63
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +0 -23
- package/src/lib/modules/common/pagination/pagination.component.ts +0 -46
- package/src/lib/modules/errors/error403/error403.component.html +0 -25
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +0 -23
- package/src/lib/modules/errors/error403/error403.component.ts +0 -28
- package/src/lib/modules/errors/error404/error404.component.html +0 -24
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +0 -25
- package/src/lib/modules/errors/error404/error404.component.ts +0 -50
- package/src/lib/modules/errors/error500/error500.component.html +0 -24
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +0 -25
- package/src/lib/modules/errors/error500/error500.component.ts +0 -50
- package/src/lib/modules/errors/errors-routing.module.ts +0 -40
- package/src/lib/modules/errors/errors.component.html +0 -15
- package/src/lib/modules/errors/errors.component.scss +0 -4
- package/src/lib/modules/errors/errors.component.spec.ts +0 -25
- package/src/lib/modules/errors/errors.component.ts +0 -42
- package/src/lib/modules/errors/errors.module.ts +0 -25
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +0 -16
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +0 -23
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +0 -43
- package/src/lib/modules/intro/contact-support/contact-support.component.html +0 -30
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +0 -60
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +0 -23
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +0 -17
- package/src/lib/modules/intro/intro-routing.module.ts +0 -16
- package/src/lib/modules/intro/intro.module.ts +0 -21
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +0 -325
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +0 -185
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +0 -23
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +0 -120
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +0 -44
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +0 -28
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +0 -23
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +0 -24
- package/src/lib/modules/layout/content/content.component.html +0 -12
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +0 -102
- package/src/lib/modules/layout/footer/footer.component.html +0 -29
- package/src/lib/modules/layout/footer/footer.component.scss +0 -7
- package/src/lib/modules/layout/footer/footer.component.spec.ts +0 -25
- package/src/lib/modules/layout/footer/footer.component.ts +0 -13
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +0 -27
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +0 -4
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +0 -38
- package/src/lib/modules/layout/header/header.component.html +0 -90
- package/src/lib/modules/layout/header/header.component.scss +0 -7
- package/src/lib/modules/layout/header/header.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header.component.ts +0 -139
- package/src/lib/modules/layout/header/navbar/navbar.component.html +0 -156
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -223
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +0 -23
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +0 -255
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +0 -200
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +0 -139
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +0 -76
- package/src/lib/modules/layout/header/page-title/page-title.component.html +0 -32
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +0 -11
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +0 -47
- package/src/lib/modules/layout/keenicon/icons.json +0 -1
- package/src/lib/modules/layout/keenicon/keenicon.component.html +0 -4
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +0 -23
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +0 -30
- package/src/lib/modules/layout/layout/layout.component.html +0 -71
- package/src/lib/modules/layout/layout/layout.component.scss +0 -23
- package/src/lib/modules/layout/layout/layout.component.ts +0 -425
- package/src/lib/modules/layout/layout.module.ts +0 -129
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +0 -81
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +0 -1
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +0 -75
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +0 -70
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -57
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +0 -136
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +0 -26
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +0 -36
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +0 -761
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -38
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +0 -130
- package/src/lib/modules/layout/sidebar/sidebar.component.html +0 -16
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -3
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +0 -203
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +0 -84
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +0 -69
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -238
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +0 -389
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +0 -4
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +0 -3
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +0 -91
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +0 -22
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +0 -156
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +0 -238
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +0 -14
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +0 -149
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +0 -183
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +0 -100
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +0 -12
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +0 -1555
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +0 -62
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +0 -77
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +0 -26
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +0 -235
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +0 -39
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +0 -188
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +0 -17
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +0 -172
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +0 -179
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +0 -4
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +0 -19
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +0 -105
- package/src/lib/modules/layout/toolbar/toolbar.component.html +0 -64
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +0 -25
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +0 -400
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +0 -1202
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +0 -199
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +0 -899
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +0 -204
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +0 -1045
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +0 -190
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +0 -825
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +0 -1242
- package/src/lib/modules/notification/conformation/conformation.component.html +0 -25
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +0 -23
- package/src/lib/modules/notification/conformation/conformation.component.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.html +0 -209
- package/src/lib/modules/notification/notification/notification.component.scss +0 -211
- package/src/lib/modules/notification/notification/notification.component.spec.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.ts +0 -310
- package/src/lib/modules/notification/notification-routing.module.ts +0 -20
- package/src/lib/modules/notification/notification.module.ts +0 -21
- package/src/lib/pipes/customDate.pipe.ts +0 -18
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +0 -10
- package/src/lib/routes/routing.ts +0 -56
- package/src/lib/services/auth.service.ts +0 -178
- package/src/lib/services/notification.service.spec.ts +0 -16
- package/src/lib/services/notification.service.ts +0 -73
- package/src/lib/services/toast.service.ts +0 -82
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
|
3
|
-
import { Subject, takeUntil } from "rxjs";
|
|
4
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
-
import { NotificationService } from '../../../services/notification.service';
|
|
6
|
-
import { ToastService } from '../../../services/toast.service';
|
|
7
|
-
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
-
import { ConformationComponent } from '../conformation/conformation.component';
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'lib-notification',
|
|
11
|
-
templateUrl: './notification.component.html',
|
|
12
|
-
styleUrl: './notification.component.scss'
|
|
13
|
-
})
|
|
14
|
-
export class NotificationComponent implements OnInit, OnDestroy {
|
|
15
|
-
showalert: boolean = true;
|
|
16
|
-
showdownload: boolean = false;
|
|
17
|
-
loading: boolean = true;
|
|
18
|
-
noData: boolean = false;
|
|
19
|
-
downloadloading: boolean = true;
|
|
20
|
-
downloadnoData: boolean = false;
|
|
21
|
-
itemsPerPage = 10;
|
|
22
|
-
currentPage = 1;
|
|
23
|
-
totalItems = 0;
|
|
24
|
-
paginationSizes = [10, 20, 30];
|
|
25
|
-
limit: number = 10;
|
|
26
|
-
offset: number = 1;
|
|
27
|
-
pageSize = 10;
|
|
28
|
-
user: any;
|
|
29
|
-
headerFilter: any;
|
|
30
|
-
clientId: any;
|
|
31
|
-
_id: any;
|
|
32
|
-
data: any
|
|
33
|
-
private readonly destroy$ = new Subject();
|
|
34
|
-
notification: any;
|
|
35
|
-
total: any;
|
|
36
|
-
downloads: any[] = [];
|
|
37
|
-
headerData: any;
|
|
38
|
-
searchInput: any = "";
|
|
39
|
-
sortColumName: string = '';
|
|
40
|
-
sortDirection: any = '';
|
|
41
|
-
searchValue: string;
|
|
42
|
-
tabtype: any
|
|
43
|
-
user_id: any;
|
|
44
|
-
private reloadInterval: any;
|
|
45
|
-
|
|
46
|
-
constructor(private pageInfo: PageInfoService, public gs: GlobalStateService, private route: ActivatedRoute, private service: NotificationService, private cd: ChangeDetectorRef, private toast: ToastService, private router: Router,private modalService: NgbModal,) { }
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
ngOnInit(): void {
|
|
50
|
-
this.setPageData();
|
|
51
|
-
let userData: any;
|
|
52
|
-
|
|
53
|
-
if ("user-info" in localStorage) {
|
|
54
|
-
userData = JSON.parse(
|
|
55
|
-
localStorage.getItem("user-info") || "{}"
|
|
56
|
-
);
|
|
57
|
-
this.user_id = userData._id;
|
|
58
|
-
}
|
|
59
|
-
this.gs?.dataRangeValue.pipe((takeUntil(this.destroy$)))?.subscribe({
|
|
60
|
-
next: (data: any) => {
|
|
61
|
-
if (data?.client) {
|
|
62
|
-
this.headerData = data;
|
|
63
|
-
}
|
|
64
|
-
if (userData?.clientId || this.headerData?.client)
|
|
65
|
-
this.clientId = userData.clientId ? userData.clientId : this.headerData.client;
|
|
66
|
-
|
|
67
|
-
this.route.queryParams.subscribe(params => {
|
|
68
|
-
const tabType = params['tab'];
|
|
69
|
-
if (this.clientId) {
|
|
70
|
-
if (tabType) {
|
|
71
|
-
this.chooseManager(tabType);
|
|
72
|
-
} else {
|
|
73
|
-
this.chooseManager('alert');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
this.reloadInterval = setInterval(() => {
|
|
80
|
-
this.downloadmanagerList();
|
|
81
|
-
}, 10000);
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
cancelDownload(data: any) {
|
|
85
|
-
const modalRef = this.modalService.open(ConformationComponent, { centered: true, size: 'md', });
|
|
86
|
-
modalRef.result.then((result) => {
|
|
87
|
-
if (result == 'submit') {
|
|
88
|
-
this.service.cancelDownload(data).pipe(takeUntil(this.destroy$))
|
|
89
|
-
.subscribe({
|
|
90
|
-
next: (res: any) => {
|
|
91
|
-
if (res && res.code === 200) {
|
|
92
|
-
this.toast.getSuccessToast(res.message);
|
|
93
|
-
this.downloadmanagerList();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
ngOnDestroy(): void {
|
|
104
|
-
this.destroy$.next(true);
|
|
105
|
-
this.destroy$.complete();
|
|
106
|
-
if (this.reloadInterval) {
|
|
107
|
-
clearInterval(this.reloadInterval);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
setPageData() {
|
|
111
|
-
this.pageInfo.setTitle("Alerts");
|
|
112
|
-
this.pageInfo.setDescription("Track all your activities and notifications here");
|
|
113
|
-
this.pageInfo.setBreadcrumbs([
|
|
114
|
-
{ title: "", path: "", isActive: false, isSeparator: false },
|
|
115
|
-
]);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
notificationList() {
|
|
119
|
-
this.loading = true;
|
|
120
|
-
let data = {
|
|
121
|
-
limit: this.limit,
|
|
122
|
-
offset: this.offset
|
|
123
|
-
};
|
|
124
|
-
this.service.notificationList(data)
|
|
125
|
-
.pipe(takeUntil(this.destroy$))
|
|
126
|
-
.subscribe({
|
|
127
|
-
next: (res: any) => {
|
|
128
|
-
if (res && res.code == 200) {
|
|
129
|
-
this.total = res.data.count;
|
|
130
|
-
this.notification = res.data.result || [];
|
|
131
|
-
this.setPaginationSizes()
|
|
132
|
-
if (this.total < 10) {
|
|
133
|
-
this.paginationSizes = [this.total]
|
|
134
|
-
} else {
|
|
135
|
-
this.paginationSizes = [10, 20, 30];
|
|
136
|
-
}
|
|
137
|
-
this.loading = false;
|
|
138
|
-
this.noData = false;
|
|
139
|
-
} else {
|
|
140
|
-
this.noData = true;
|
|
141
|
-
this.loading = false;
|
|
142
|
-
this.notification = [];
|
|
143
|
-
}
|
|
144
|
-
this.cd.detectChanges();
|
|
145
|
-
},
|
|
146
|
-
error: (err) => {
|
|
147
|
-
this.noData = true;
|
|
148
|
-
this.loading = false;
|
|
149
|
-
this.notification = [];
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
updateNotification(data: any, btnDetails: any): void {
|
|
155
|
-
this.loading = true;
|
|
156
|
-
this.service.notificationUpdate(data._id).pipe(takeUntil(this.destroy$)).subscribe((res: any) => {
|
|
157
|
-
if (res && res.code == 200) {
|
|
158
|
-
if (!btnDetails || btnDetails?.redirectionUrl != 'subscribed')
|
|
159
|
-
this.toast.getSuccessToast(res.message);
|
|
160
|
-
setTimeout(() => {
|
|
161
|
-
this.notificationList();
|
|
162
|
-
}, 1000);
|
|
163
|
-
if (btnDetails && btnDetails?.redirectionUrl != '' && btnDetails?.redirectionUrl.split('/').length > 1) {
|
|
164
|
-
this.router.navigateByUrl(btnDetails.redirectionUrl);
|
|
165
|
-
}
|
|
166
|
-
if (btnDetails && btnDetails?.redirectionUrl == 'remind') {
|
|
167
|
-
this.service.updateRemind(data._id).pipe(takeUntil(this.destroy$)).subscribe(() => { })
|
|
168
|
-
}
|
|
169
|
-
if (btnDetails && btnDetails?.redirectionUrl == 'trialApproved') {
|
|
170
|
-
let params = {
|
|
171
|
-
id: btnDetails.id,
|
|
172
|
-
type: 'approve'
|
|
173
|
-
}
|
|
174
|
-
this.service.trialApproved(params).pipe(takeUntil(this.destroy$)).subscribe(() => { })
|
|
175
|
-
}
|
|
176
|
-
if (btnDetails && btnDetails?.redirectionUrl == 'subscribed') {
|
|
177
|
-
let params = {
|
|
178
|
-
clientId: btnDetails?.clientId,
|
|
179
|
-
products: [
|
|
180
|
-
{
|
|
181
|
-
name: btnDetails.product,
|
|
182
|
-
productName: btnDetails.name,
|
|
183
|
-
type: "subscription",
|
|
184
|
-
content: "new"
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
this.service.updateSubscription(params).pipe(takeUntil(this.destroy$)).subscribe((res: any) => {
|
|
189
|
-
if (res && res.code == 200) {
|
|
190
|
-
this.toast.getSuccessToast('Product Subscribed Successfully');
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
}
|
|
194
|
-
this.cd.detectChanges();
|
|
195
|
-
}
|
|
196
|
-
}, (error: any) => {
|
|
197
|
-
this.loading = false;
|
|
198
|
-
this.noData = true;
|
|
199
|
-
})
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
chooseManager(type: any) {
|
|
203
|
-
this.tabtype = type
|
|
204
|
-
this.sortColumName = "",
|
|
205
|
-
this.sortDirection = "",
|
|
206
|
-
this.searchValue = "",
|
|
207
|
-
this.limit = 10,
|
|
208
|
-
this.offset = 1,
|
|
209
|
-
this.currentPage = 1,
|
|
210
|
-
this.pageSize = 10
|
|
211
|
-
this.router.navigate([], {
|
|
212
|
-
relativeTo: this.route,
|
|
213
|
-
queryParams: { tab: type },
|
|
214
|
-
queryParamsHandling: 'merge' // keeps existing query params and merges with new ones
|
|
215
|
-
});
|
|
216
|
-
if (this.tabtype === 'alert') {
|
|
217
|
-
this.showalert = true;
|
|
218
|
-
this.showdownload = false;
|
|
219
|
-
this.notificationList();
|
|
220
|
-
} else if (this.tabtype === 'download') {
|
|
221
|
-
this.showdownload = true;
|
|
222
|
-
this.showalert = false;
|
|
223
|
-
this.downloadmanagerList();
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
setPaginationSizes() {
|
|
228
|
-
if (this.totalItems > 10) {
|
|
229
|
-
this.paginationSizes = [10, 20, 30];
|
|
230
|
-
} else {
|
|
231
|
-
this.paginationSizes = [this.totalItems];
|
|
232
|
-
this.pageSize = this.totalItems; // Just one option if less than 10
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
onPageChange(pageOffset: number) {
|
|
238
|
-
this.offset = Number(pageOffset);
|
|
239
|
-
if (this.tabtype === 'alert') {
|
|
240
|
-
this.notificationList();
|
|
241
|
-
} else if (this.tabtype === 'download') {
|
|
242
|
-
this.downloadmanagerList();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
onPageSizeChange(pageSize: number,) {
|
|
247
|
-
this.currentPage = 1;
|
|
248
|
-
this.limit = Number(pageSize);
|
|
249
|
-
this.offset = 1;
|
|
250
|
-
if (this.tabtype === 'alert') {
|
|
251
|
-
this.notificationList();
|
|
252
|
-
} else if (this.tabtype === 'download') {
|
|
253
|
-
this.downloadmanagerList();
|
|
254
|
-
}
|
|
255
|
-
// this.notificationList();
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
paginationSize(): number {
|
|
259
|
-
if (this.total < 10) {
|
|
260
|
-
return this.total;
|
|
261
|
-
} else {
|
|
262
|
-
return this.limit;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
downloadmanagerList() {
|
|
269
|
-
this.downloadloading = true;
|
|
270
|
-
const requestData = {
|
|
271
|
-
clientId: this.clientId,
|
|
272
|
-
limit: this.limit,
|
|
273
|
-
offset: this.offset - 1,
|
|
274
|
-
sortBy: this.sortDirection,
|
|
275
|
-
sortColumnName: this.sortColumName,
|
|
276
|
-
searchValue: this.searchInput,
|
|
277
|
-
createdBy: this.user_id
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
this.service.getdownloadlist(requestData)
|
|
281
|
-
.pipe(takeUntil(this.destroy$))
|
|
282
|
-
.subscribe({
|
|
283
|
-
next: (res: any) => {
|
|
284
|
-
if (res && res.code === 200) {
|
|
285
|
-
this.downloads = res.data.data;
|
|
286
|
-
this.total = res.data.count;
|
|
287
|
-
this.setPaginationSizes()
|
|
288
|
-
|
|
289
|
-
this.paginationSizes = this.total < 10 ? [this.total] : [10, 20, 30];
|
|
290
|
-
this.downloadloading = false;
|
|
291
|
-
this.downloadnoData = this.downloads.length === 0;
|
|
292
|
-
} else {
|
|
293
|
-
this.downloadnoData = true;
|
|
294
|
-
this.downloadloading = false;
|
|
295
|
-
this.downloads = [];
|
|
296
|
-
}
|
|
297
|
-
this.cd.detectChanges();
|
|
298
|
-
},
|
|
299
|
-
error: () => {
|
|
300
|
-
this.downloadnoData = true;
|
|
301
|
-
this.downloadloading = false;
|
|
302
|
-
this.downloads = [];
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
downloadFile(record: any) {
|
|
308
|
-
window.open(record.url, '_blank');
|
|
309
|
-
}
|
|
310
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { NotificationComponent } from './notification/notification.component';
|
|
4
|
-
|
|
5
|
-
const routes: Routes = [
|
|
6
|
-
{
|
|
7
|
-
path:'alerts',
|
|
8
|
-
component:NotificationComponent
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
path:'downloadmanager',
|
|
12
|
-
component:NotificationComponent
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
@NgModule({
|
|
17
|
-
imports: [RouterModule.forChild(routes)],
|
|
18
|
-
exports: [RouterModule]
|
|
19
|
-
})
|
|
20
|
-
export class NotificationRoutingModule { }
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { NotificationRoutingModule } from './notification-routing.module';
|
|
5
|
-
import { NotificationComponent } from './notification/notification.component';
|
|
6
|
-
import { CommonSharedModule } from '../common/common-shared.module';
|
|
7
|
-
import { ConformationComponent } from './conformation/conformation.component';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
declarations: [
|
|
12
|
-
NotificationComponent,
|
|
13
|
-
ConformationComponent,
|
|
14
|
-
],
|
|
15
|
-
imports: [
|
|
16
|
-
CommonModule,
|
|
17
|
-
NotificationRoutingModule,
|
|
18
|
-
CommonSharedModule
|
|
19
|
-
]
|
|
20
|
-
})
|
|
21
|
-
export class NotificationModule { }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
-
import { DatePipe } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
@Pipe({
|
|
5
|
-
name: 'customDateFormat'
|
|
6
|
-
})
|
|
7
|
-
export class CustomDateFormatPipe implements PipeTransform {
|
|
8
|
-
|
|
9
|
-
transform(value: any, ...args: any[]): any {
|
|
10
|
-
if (value) {
|
|
11
|
-
const datePipe = new DatePipe('en-US');
|
|
12
|
-
const formattedDate = datePipe.transform(value, 'dd MMM, yyyy');
|
|
13
|
-
return formattedDate;
|
|
14
|
-
}
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// import { NgModule } from '@angular/core';
|
|
2
|
-
// import { TangoAnalyseModule } from 'projects/tango-analyse/src/public-api';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// @NgModule({
|
|
6
|
-
// declarations: [
|
|
7
|
-
// ],
|
|
8
|
-
// imports: [
|
|
9
|
-
// TangoAnalyseModule
|
|
10
|
-
// ]
|
|
11
|
-
// })
|
|
12
|
-
// export class AnalyseWrapperModule { }
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Routes } from '@angular/router';
|
|
2
|
-
import { storesGuard } from '../guards/stores.guard';
|
|
3
|
-
import { ticketsGuard } from '../guards/tickets.guard';
|
|
4
|
-
import { leadGuard } from '../guards/lead.guard';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const Routing: Routes = [
|
|
8
|
-
{
|
|
9
|
-
path: 'manage',
|
|
10
|
-
loadChildren: () => import('./route-wraper-modules/manage-wrapper.module').then((m) => m.ManageWrapperModule),
|
|
11
|
-
canActivate:[leadGuard]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
path: 'manage/stores/edge-app',
|
|
15
|
-
loadChildren: () => import('./route-wraper-modules/edge-wrapper.module').then((m) => m.TangoEdgeAppWrapperModule),
|
|
16
|
-
canActivate:[leadGuard, storesGuard]
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
path: 'manage/stores',
|
|
20
|
-
loadChildren: () => import('./route-wraper-modules/store-wrapper.module').then((m) => m.StoreWrapperModule),
|
|
21
|
-
canActivate:[leadGuard, storesGuard]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
path: 'profile',
|
|
25
|
-
loadChildren: () => import('./route-wraper-modules/profile-wrapper.module').then((m) => m.ProfileWrapperModule),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
path: 'tickets',
|
|
29
|
-
loadChildren: () => import('./route-wraper-modules/ticket-wrapper.module').then((m) => m.TicketWrapperModule),
|
|
30
|
-
canActivate:[leadGuard, ticketsGuard]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
path: 'explore',
|
|
34
|
-
loadChildren: () => import('../modules/intro/intro.module').then((m) => m.IntroModule),
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
path: 'notifications',
|
|
38
|
-
loadChildren: () => import('../modules/notification/notification.module').then((m) => m.NotificationModule),
|
|
39
|
-
},
|
|
40
|
-
// {
|
|
41
|
-
// path: 'analyse',
|
|
42
|
-
// loadChildren: () => import('./route-wraper-modules/analyse-wrapper.module').then((m) => m.AnalyseWrapperModule),
|
|
43
|
-
// // canActivate:[leadGuard]
|
|
44
|
-
// },
|
|
45
|
-
{
|
|
46
|
-
path: '',
|
|
47
|
-
redirectTo: '/manage',
|
|
48
|
-
pathMatch: 'full',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
path: '**',
|
|
52
|
-
redirectTo: 'error/404',
|
|
53
|
-
},
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
export { Routing };
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { Observable, catchError, map, of, throwError,BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { Router } from '@angular/router';
|
|
5
|
-
import { GlobalStateService } from 'tango-app-ui-global';
|
|
6
|
-
|
|
7
|
-
@Injectable({
|
|
8
|
-
providedIn: 'root'
|
|
9
|
-
})
|
|
10
|
-
export class AuthService {
|
|
11
|
-
clientApiUrl: string;
|
|
12
|
-
authlocalStorageToken: string;
|
|
13
|
-
userApiUrl: string;
|
|
14
|
-
storeApiUrl: string;
|
|
15
|
-
billingApiUrl:string;
|
|
16
|
-
oldDashboardUrl: string;
|
|
17
|
-
dropDownTrigger = new BehaviorSubject(null)
|
|
18
|
-
trafficApiUrl: any;
|
|
19
|
-
traxUrl:any;
|
|
20
|
-
galleryApiUrl:any;
|
|
21
|
-
storeBuilderApiUrl: any;
|
|
22
|
-
constructor(private router:Router,private gs:GlobalStateService,private http:HttpClient) {
|
|
23
|
-
this.gs.environment.subscribe((env)=>{
|
|
24
|
-
if(env){
|
|
25
|
-
this.clientApiUrl = env.clientApiUrl;
|
|
26
|
-
this.userApiUrl = env.userApiUrl;
|
|
27
|
-
this.storeApiUrl =env.storeApiUrl;
|
|
28
|
-
this.oldDashboardUrl =env.oldDashboardUrl;
|
|
29
|
-
this.authlocalStorageToken = `${env.appVersion}-${env.USERDATA_KEY}`;
|
|
30
|
-
this.billingApiUrl = env.billingApiUrl
|
|
31
|
-
this.trafficApiUrl = env.trafficApiUrl;
|
|
32
|
-
this.galleryApiUrl = env.galleryApiUrl;
|
|
33
|
-
this.traxUrl = env.trafficApiUrl;
|
|
34
|
-
this.traxUrl = env.traxUrl;
|
|
35
|
-
this.storeBuilderApiUrl = env.storeBuilderUrl;
|
|
36
|
-
}
|
|
37
|
-
}) }
|
|
38
|
-
|
|
39
|
-
handleError(res: any) {
|
|
40
|
-
return throwError(res.error);
|
|
41
|
-
}
|
|
42
|
-
getHeaders() {
|
|
43
|
-
const headers = {
|
|
44
|
-
'Authorization': 'Bearer ' + this.authlocalStorageToken
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return headers;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
logout() {
|
|
51
|
-
// this.deleteCookie(this.authlocalStorageToken);
|
|
52
|
-
return this.http.get(`${this.userApiUrl}/logout`)
|
|
53
|
-
}
|
|
54
|
-
getClients(){
|
|
55
|
-
return this.http.get(`${this.clientApiUrl}/get-clients`, {
|
|
56
|
-
})
|
|
57
|
-
.pipe(map((response: any) => response),
|
|
58
|
-
catchError(this.handleError));
|
|
59
|
-
}
|
|
60
|
-
getStores(id:any){
|
|
61
|
-
return this.http.get(`${this.storeApiUrl}/get-stores?clientId=${id}`, {
|
|
62
|
-
})
|
|
63
|
-
.pipe(map((response: any) => response),
|
|
64
|
-
catchError(this.handleError));
|
|
65
|
-
}
|
|
66
|
-
getOldDashboardRedirect(data:any){
|
|
67
|
-
return this.http.post(`${this.oldDashboardUrl}/auth/oldDashboardUserLogin`,data, {
|
|
68
|
-
headers: this.getHeaders()
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
userProfileDet(): Observable<any> {
|
|
72
|
-
return this.http
|
|
73
|
-
.get(`${this.userApiUrl}/profileV2`, { headers: this.getHeaders() })
|
|
74
|
-
.pipe(
|
|
75
|
-
map((response: any) => {
|
|
76
|
-
localStorage.setItem("user-info", JSON.stringify(response.data));
|
|
77
|
-
return response;
|
|
78
|
-
}),
|
|
79
|
-
catchError(this.handleError)
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
refreshToken() {
|
|
84
|
-
const userId = JSON.parse(localStorage.getItem("user-info") || "")?._id;
|
|
85
|
-
const refreshToken = JSON.parse(
|
|
86
|
-
localStorage.getItem(this.authlocalStorageToken) || ""
|
|
87
|
-
)?.refreshToken;
|
|
88
|
-
let params: any = {
|
|
89
|
-
userId: userId,
|
|
90
|
-
refreshToken: refreshToken,
|
|
91
|
-
};
|
|
92
|
-
return this.http
|
|
93
|
-
.get(`${this.userApiUrl}/refresh-token`, { params: params })
|
|
94
|
-
.pipe(
|
|
95
|
-
map((response: any) => response),
|
|
96
|
-
catchError(this.handleError)
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
getPersonalInfo(): Observable<any> {
|
|
101
|
-
return this.http.get<any>(`${this.userApiUrl}/profileV2`).pipe(
|
|
102
|
-
map((response: any) => response),
|
|
103
|
-
catchError(this.handleError)
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
getAssignedUsers(clientId:string):Observable<any>{
|
|
108
|
-
return this.http.get(`${this.userApiUrl}/get-assign-client?clientId=${clientId}` )
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
checkToShowPopup(clientId:string):Observable<any>{
|
|
112
|
-
return this.http.get(`${this.clientApiUrl}/show-csm-assign-confirmation?clientId=${clientId}` )
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
csmAssignClientAction(clientId:string, data:any):Observable<any>{
|
|
116
|
-
return this.http.post(`${this.clientApiUrl}/client-csm-assign-action?clientId=${clientId}`, data )
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
getLeadProducts(email:string):Observable<any>{
|
|
120
|
-
return this.http.get(`${this.billingApiUrl}/getLeadProducts/${email}` )
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
getClientProducts(clientId:string):Observable<any>{
|
|
124
|
-
return this.http.get(`${this.billingApiUrl}/getClientProducts/${clientId}` )
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
getLocation(data:any):Observable<any>{
|
|
128
|
-
return this.http.post(`${this.trafficApiUrl}/headerLocations_v2`,data)
|
|
129
|
-
}
|
|
130
|
-
getGroups(data:any):Observable<any>{
|
|
131
|
-
return this.http.post(`${this.trafficApiUrl}/headercluster_v2`,data)
|
|
132
|
-
}
|
|
133
|
-
getHeaderStores(data:any):Observable<any>{
|
|
134
|
-
return this.http.post(`${this.trafficApiUrl}/headerStores_v2`,data)
|
|
135
|
-
}
|
|
136
|
-
getHeadertraxStores(data:any):Observable<any>{
|
|
137
|
-
return this.http.post(`${this.galleryApiUrl}/headerStores_v2`,data)
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
getBrandDetails(id: any) {
|
|
141
|
-
return this.http.get(`${this.clientApiUrl}/client-details/${id}`)
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
getHeaderUsers(data:any):Observable<any>{
|
|
145
|
-
return this.http.post(`${this.trafficApiUrl}/headerUserEmails_v2`,data)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
getCountry(data:any):Observable<any>{
|
|
149
|
-
return this.http.post(`${this.trafficApiUrl}/headerCountry_v2`,data)
|
|
150
|
-
}
|
|
151
|
-
getPlanoUsers() {
|
|
152
|
-
return this.http.get(`${this.storeBuilderApiUrl}/getPlanoUser`);
|
|
153
|
-
}
|
|
154
|
-
getHeaderZone(data:any):Observable<any>{
|
|
155
|
-
return this.http.post(`${this.trafficApiUrl}/headerZoneV2`,data)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// private base64Encode(str: any) {
|
|
159
|
-
// return btoa(encodeURIComponent(str));
|
|
160
|
-
// }
|
|
161
|
-
|
|
162
|
-
// private base64Decode(str: any) {
|
|
163
|
-
// return decodeURIComponent(atob(str));
|
|
164
|
-
// }
|
|
165
|
-
// setCookie(name: string, value: string, days: number = 1): void {
|
|
166
|
-
// const encodedValue = this.base64Encode(value);
|
|
167
|
-
// const expires = new Date(Date.now() + days * 864e5).toUTCString();
|
|
168
|
-
// document.cookie = `${name}=${encodedValue}; expires=${expires}; path=/; Secure; SameSite=Strict`;
|
|
169
|
-
// }
|
|
170
|
-
|
|
171
|
-
// getCookie(name: string): string | null {
|
|
172
|
-
// const match = document.cookie.match(new RegExp(`(^| )${name}=([^;]+)`));
|
|
173
|
-
// return match ? this.base64Decode(match[2]) : null;
|
|
174
|
-
// }
|
|
175
|
-
// deleteCookie(name: string): void {
|
|
176
|
-
// document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
|
177
|
-
// }
|
|
178
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { NotificationService } from './notification.service';
|
|
4
|
-
|
|
5
|
-
describe('NotificationService', () => {
|
|
6
|
-
let service: NotificationService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(NotificationService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|