tango-app-ui-shared 3.7.3-dev6-demo6 → 3.7.3-dev6-demo7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +37 -0
- package/ng-package.json +7 -0
- package/package.json +12 -25
- package/src/lib/guards/auth.guard.ts +20 -0
- package/src/lib/guards/lead.guard.ts +16 -0
- package/src/lib/guards/stores.guard.ts +16 -0
- package/src/lib/guards/tickets.guard.ts +16 -0
- package/{lib/i18n/index.d.ts → src/lib/i18n/index.ts} +2 -2
- package/src/lib/i18n/translation.module.ts +9 -0
- package/src/lib/i18n/translation.service.ts +61 -0
- package/src/lib/i18n/vocabs/ch.ts +105 -0
- package/src/lib/i18n/vocabs/de.ts +105 -0
- package/src/lib/i18n/vocabs/en.ts +105 -0
- package/src/lib/i18n/vocabs/es.ts +105 -0
- package/src/lib/i18n/vocabs/fr.ts +105 -0
- package/src/lib/i18n/vocabs/jp.ts +105 -0
- package/src/lib/interceptors/http-auth-interceptor.ts +225 -0
- package/src/lib/interfaces/global-state.ts +6 -0
- package/src/lib/modules/common/common-shared.module.ts +20 -0
- package/src/lib/modules/common/custom-select/custom-select.component.html +42 -0
- package/src/lib/modules/common/custom-select/custom-select.component.scss +131 -0
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/modules/common/custom-select/custom-select.component.ts +149 -0
- package/src/lib/modules/common/filters/filters.component.html +76 -0
- package/src/lib/modules/common/filters/filters.component.scss +131 -0
- package/src/lib/modules/common/filters/filters.component.spec.ts +23 -0
- package/src/lib/modules/common/filters/filters.component.ts +181 -0
- package/src/lib/modules/common/pagination/pagination.component.html +26 -0
- package/src/lib/modules/common/pagination/pagination.component.scss +63 -0
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +23 -0
- package/src/lib/modules/common/pagination/pagination.component.ts +46 -0
- package/src/lib/modules/errors/error403/error403.component.html +25 -0
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +23 -0
- package/src/lib/modules/errors/error403/error403.component.ts +28 -0
- package/src/lib/modules/errors/error404/error404.component.html +24 -0
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +25 -0
- package/src/lib/modules/errors/error404/error404.component.ts +50 -0
- package/src/lib/modules/errors/error500/error500.component.html +24 -0
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +25 -0
- package/src/lib/modules/errors/error500/error500.component.ts +50 -0
- package/src/lib/modules/errors/errors-routing.module.ts +40 -0
- package/src/lib/modules/errors/errors.component.html +15 -0
- package/src/lib/modules/errors/errors.component.scss +4 -0
- package/src/lib/modules/errors/errors.component.spec.ts +25 -0
- package/src/lib/modules/errors/errors.component.ts +42 -0
- package/src/lib/modules/errors/errors.module.ts +25 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +16 -0
- 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 +23 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +43 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.html +30 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +60 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +23 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +17 -0
- package/src/lib/modules/intro/intro-routing.module.ts +16 -0
- package/src/lib/modules/intro/intro.module.ts +21 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +325 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +185 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +23 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +120 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +44 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +28 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +23 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +24 -0
- package/src/lib/modules/layout/content/content.component.html +12 -0
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +102 -0
- package/src/lib/modules/layout/footer/footer.component.html +29 -0
- package/src/lib/modules/layout/footer/footer.component.scss +7 -0
- package/src/lib/modules/layout/footer/footer.component.spec.ts +25 -0
- package/src/lib/modules/layout/footer/footer.component.ts +13 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +27 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +4 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +25 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +38 -0
- package/src/lib/modules/layout/header/header.component.html +90 -0
- package/src/lib/modules/layout/header/header.component.scss +7 -0
- package/src/lib/modules/layout/header/header.component.spec.ts +25 -0
- package/src/lib/modules/layout/header/header.component.ts +139 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.html +156 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +223 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +23 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +255 -0
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +200 -0
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +139 -0
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +76 -0
- package/src/lib/modules/layout/header/page-title/page-title.component.html +32 -0
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +11 -0
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +47 -0
- package/src/lib/modules/layout/keenicon/icons.json +1 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.html +4 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +23 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +30 -0
- package/src/lib/modules/layout/layout/layout.component.html +71 -0
- package/src/lib/modules/layout/layout/layout.component.scss +23 -0
- package/src/lib/modules/layout/layout/layout.component.ts +425 -0
- package/src/lib/modules/layout/layout.module.ts +129 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +81 -0
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +1 -0
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +75 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +70 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +57 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +136 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +26 -0
- 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 +23 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +36 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +761 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +38 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +130 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.html +16 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +3 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +203 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +84 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +14 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +69 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +238 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +389 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +4 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +3 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +91 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +22 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +156 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +238 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +14 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +149 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +183 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +100 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +12 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +311 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +1555 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +62 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +14 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +77 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +14 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +26 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +176 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +235 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +39 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +176 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +188 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +17 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +172 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +179 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +4 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +19 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +105 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.html +64 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +25 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +400 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +259 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +305 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +1202 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +199 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +899 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +204 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +1045 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +190 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +825 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +259 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +305 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +1242 -0
- package/src/lib/modules/notification/conformation/conformation.component.html +25 -0
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +23 -0
- package/src/lib/modules/notification/conformation/conformation.component.ts +23 -0
- package/src/lib/modules/notification/notification/notification.component.html +209 -0
- package/src/lib/modules/notification/notification/notification.component.scss +211 -0
- package/src/lib/modules/notification/notification/notification.component.spec.ts +23 -0
- package/src/lib/modules/notification/notification/notification.component.ts +310 -0
- package/src/lib/modules/notification/notification-routing.module.ts +20 -0
- package/src/lib/modules/notification/notification.module.ts +21 -0
- package/src/lib/pipes/customDate.pipe.ts +18 -0
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +12 -0
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +11 -0
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +11 -0
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +12 -0
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +11 -0
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +10 -0
- package/src/lib/routes/routing.ts +56 -0
- package/src/lib/services/auth.service.ts +178 -0
- package/src/lib/services/notification.service.spec.ts +16 -0
- package/src/lib/services/notification.service.ts +73 -0
- package/src/lib/services/toast.service.ts +82 -0
- package/{public-api.d.ts → src/public-api.ts} +71 -44
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/guards/auth.guard.mjs +0 -26
- package/esm2022/lib/guards/lead.guard.mjs +0 -16
- package/esm2022/lib/guards/stores.guard.mjs +0 -16
- package/esm2022/lib/guards/tickets.guard.mjs +0 -16
- package/esm2022/lib/i18n/index.mjs +0 -3
- package/esm2022/lib/i18n/translation.module.mjs +0 -17
- package/esm2022/lib/i18n/translation.service.mjs +0 -53
- package/esm2022/lib/i18n/vocabs/ch.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/de.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/en.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/es.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/fr.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/jp.mjs +0 -106
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +0 -124
- package/esm2022/lib/interfaces/global-state.mjs +0 -2
- package/esm2022/lib/modules/common/common-shared.module.mjs +0 -31
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +0 -155
- package/esm2022/lib/modules/common/filters/filters.component.mjs +0 -179
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +0 -49
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +0 -33
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +0 -44
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +0 -45
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +0 -48
- package/esm2022/lib/modules/errors/errors.component.mjs +0 -39
- package/esm2022/lib/modules/errors/errors.module.mjs +0 -37
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +0 -44
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +0 -19
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +0 -24
- package/esm2022/lib/modules/intro/intro.module.mjs +0 -32
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +0 -110
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +0 -31
- package/esm2022/lib/modules/layout/content/content.component.mjs +0 -107
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +0 -17
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +0 -41
- package/esm2022/lib/modules/layout/header/header.component.mjs +0 -100
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +0 -256
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +0 -79
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +0 -56
- package/esm2022/lib/modules/layout/keenicon/icons.json +0 -1
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +0 -37
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +0 -314
- package/esm2022/lib/modules/layout/layout.module.mjs +0 -198
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +0 -74
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +0 -74
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +0 -159
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +0 -45
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +0 -122
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +0 -134
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +0 -16
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +0 -331
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +0 -88
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +0 -207
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +0 -158
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +0 -15
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +0 -1321
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +0 -18
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +0 -18
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +0 -216
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +0 -178
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +0 -166
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +0 -105
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +0 -372
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +0 -1062
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +0 -795
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +0 -880
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +0 -729
- package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +0 -1088
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +0 -22
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +0 -317
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +0 -28
- package/esm2022/lib/modules/notification/notification.module.mjs +0 -32
- package/esm2022/lib/pipes/customDate.pipe.mjs +0 -22
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/routing.mjs +0 -53
- package/esm2022/lib/services/auth.service.mjs +0 -141
- package/esm2022/lib/services/notification.service.mjs +0 -74
- package/esm2022/lib/services/toast.service.mjs +0 -83
- package/esm2022/public-api.mjs +0 -56
- package/esm2022/tango-app-ui-shared.mjs +0 -5
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +0 -188
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +0 -400
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared.mjs +0 -12438
- package/fesm2022/tango-app-ui-shared.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/guards/auth.guard.d.ts +0 -10
- package/lib/guards/lead.guard.d.ts +0 -2
- package/lib/guards/stores.guard.d.ts +0 -2
- package/lib/guards/tickets.guard.d.ts +0 -2
- package/lib/i18n/translation.module.d.ts +0 -8
- package/lib/i18n/translation.service.d.ts +0 -19
- package/lib/i18n/vocabs/ch.d.ts +0 -104
- package/lib/i18n/vocabs/de.d.ts +0 -104
- package/lib/i18n/vocabs/en.d.ts +0 -104
- package/lib/i18n/vocabs/es.d.ts +0 -104
- package/lib/i18n/vocabs/fr.d.ts +0 -104
- package/lib/i18n/vocabs/jp.d.ts +0 -104
- package/lib/interceptors/http-auth-interceptor.d.ts +0 -19
- package/lib/interfaces/global-state.d.ts +0 -5
- package/lib/modules/common/common-shared.module.d.ts +0 -13
- package/lib/modules/common/custom-select/custom-select.component.d.ts +0 -33
- package/lib/modules/common/filters/filters.component.d.ts +0 -38
- package/lib/modules/common/pagination/pagination.component.d.ts +0 -18
- package/lib/modules/errors/error403/error403.component.d.ts +0 -14
- package/lib/modules/errors/error404/error404.component.d.ts +0 -15
- package/lib/modules/errors/error500/error500.component.d.ts +0 -15
- package/lib/modules/errors/errors-routing.module.d.ts +0 -7
- package/lib/modules/errors/errors.component.d.ts +0 -13
- package/lib/modules/errors/errors.module.d.ts +0 -13
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +0 -17
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +0 -9
- package/lib/modules/intro/intro-routing.module.d.ts +0 -7
- package/lib/modules/intro/intro.module.d.ts +0 -11
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +0 -31
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +0 -13
- package/lib/modules/layout/content/content.component.d.ts +0 -25
- package/lib/modules/layout/footer/footer.component.d.ts +0 -8
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +0 -18
- package/lib/modules/layout/header/header.component.d.ts +0 -30
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +0 -45
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +0 -25
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +0 -23
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +0 -13
- package/lib/modules/layout/layout/layout.component.d.ts +0 -82
- package/lib/modules/layout/layout.module.d.ts +0 -50
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +0 -19
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +0 -19
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +0 -45
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +0 -19
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +0 -26
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +0 -36
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +0 -8
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +0 -48
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +0 -16
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +0 -28
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +0 -28
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +0 -8
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +0 -103
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +0 -9
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +0 -9
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +0 -32
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +0 -33
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +0 -34
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +0 -24
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +0 -57
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +0 -93
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +0 -80
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +0 -83
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +0 -74
- package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +0 -97
- package/lib/modules/notification/conformation/conformation.component.d.ts +0 -10
- package/lib/modules/notification/notification/notification.component.d.ts +0 -63
- package/lib/modules/notification/notification-routing.module.d.ts +0 -7
- package/lib/modules/notification/notification.module.d.ts +0 -11
- package/lib/pipes/customDate.pipe.d.ts +0 -7
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +0 -7
- package/lib/routes/routing.d.ts +0 -3
- package/lib/services/auth.service.d.ts +0 -49
- package/lib/services/notification.service.d.ts +0 -30
- package/lib/services/toast.service.d.ts +0 -10
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
|
3
|
+
import { Subject, takeUntil } from "rxjs";
|
|
4
|
+
import { NgbCarouselConfig, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
+
import { AuthService } from '../../../services/auth.service';
|
|
6
|
+
import { ContactSupportComponent } from '../contact-support/contact-support.component';
|
|
7
|
+
import dayjs from "dayjs";
|
|
8
|
+
import { Router } from '@angular/router';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'lib-lead-intro',
|
|
12
|
+
templateUrl: './lead-intro.component.html',
|
|
13
|
+
styleUrl: './lead-intro.component.scss',
|
|
14
|
+
providers: [NgbCarouselConfig],
|
|
15
|
+
})
|
|
16
|
+
export class LeadIntroComponent implements OnDestroy, OnInit {
|
|
17
|
+
productList: any = [];
|
|
18
|
+
private readonly destroy$ = new Subject();
|
|
19
|
+
trialDetails:any
|
|
20
|
+
dayjs = dayjs
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
constructor(private pageInfo: PageInfoService, public gs: GlobalStateService, config: NgbCarouselConfig, private modalService: NgbModal, private authService: AuthService,private router:Router) {
|
|
25
|
+
this.gs.userAccess.pipe(takeUntil(this.destroy$)).subscribe((e) => {
|
|
26
|
+
if (e && e?.userType === "lead") {
|
|
27
|
+
const user = JSON.parse(localStorage.getItem('user-info') as string)
|
|
28
|
+
this.authService.getLeadProducts(user.email).pipe(takeUntil(this.destroy$)).subscribe({
|
|
29
|
+
next: (e) => {
|
|
30
|
+
if(e?.data){
|
|
31
|
+
this.productList = e.data?.planDetails?.product
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
} else if (e && e?.userType === "client") {
|
|
37
|
+
const user = JSON.parse(localStorage.getItem('user-info') as string)
|
|
38
|
+
|
|
39
|
+
this.authService.getClientProducts(user.clientId).pipe(takeUntil(this.destroy$)).subscribe({
|
|
40
|
+
next: (e) => {
|
|
41
|
+
if(e?.data){
|
|
42
|
+
this.productList = e.data?.planDetails?.product?.map((product:any)=> product.productName)
|
|
43
|
+
|
|
44
|
+
this.trialDetails = this.daysWithin14(e.data?.planDetails?.product[0]?.trialEndDate)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
daysWithin14(date: string) {
|
|
55
|
+
const currentDate = dayjs();
|
|
56
|
+
const givenDate = dayjs(date).add(2, 'day');
|
|
57
|
+
|
|
58
|
+
let diff = givenDate.diff(currentDate, 'day');
|
|
59
|
+
|
|
60
|
+
if (diff < 0) {
|
|
61
|
+
diff = 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const percentageRemaining = Math.round(((14 - diff) / 14) * 100);
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
daysRemaining: diff <= 14 ? diff : 0,
|
|
68
|
+
percentageRemaining: diff <= 14 ? percentageRemaining : 100
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
ngOnDestroy(): void {
|
|
74
|
+
this.destroy$.next(true);
|
|
75
|
+
this.destroy$.complete();
|
|
76
|
+
}
|
|
77
|
+
ngOnInit(): void {
|
|
78
|
+
this.setPageData()
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
setPageData() {
|
|
83
|
+
this.pageInfo.setTitle('Explore')
|
|
84
|
+
this.pageInfo.setDescription('Explore your products while waiting for admin approval')
|
|
85
|
+
this.pageInfo.setBreadcrumbs([
|
|
86
|
+
{ title: 'Explore', path: '/explore', isActive: false, isSeparator: false },
|
|
87
|
+
{ title: 'Explore', path: '/explore', isActive: false, isSeparator: true },
|
|
88
|
+
])
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
contactSupport() {
|
|
93
|
+
this.modalService.open(ContactSupportComponent, {
|
|
94
|
+
centered: true,
|
|
95
|
+
size: "md",
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
updateCircleChart(percentage: number): void {
|
|
100
|
+
let id = 'progress-circle';
|
|
101
|
+
let text = 'percentage-text';
|
|
102
|
+
const progressCircle = document.getElementById(id);
|
|
103
|
+
const percentageText = document.getElementById(text);
|
|
104
|
+
if (progressCircle && percentageText) {
|
|
105
|
+
const circumference = Math.PI * 2 * parseFloat(progressCircle.getAttribute('r')!);
|
|
106
|
+
const dasharray = circumference;
|
|
107
|
+
const dashoffset = circumference - (percentage / 100) * circumference;
|
|
108
|
+
|
|
109
|
+
progressCircle.setAttribute('stroke-dasharray', dasharray.toString());
|
|
110
|
+
progressCircle.setAttribute('stroke-dashoffset', dashoffset.toString());
|
|
111
|
+
|
|
112
|
+
percentageText.textContent = `${percentage}%`;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
reDirectionUrl(){
|
|
117
|
+
this.router.navigateByUrl('/manage/summary');
|
|
118
|
+
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<span class="mb-5">
|
|
2
|
+
<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<rect x="4" y="4" width="48" height="48" rx="24" fill="#FEF0C7" />
|
|
4
|
+
<rect x="4" y="4" width="48" height="48" rx="24" stroke="#FFFAEB" stroke-width="8" />
|
|
5
|
+
<path
|
|
6
|
+
d="M27.9998 24V28M27.9998 32H28.0098M26.2898 18.86L17.8198 33C17.6451 33.3024 17.5527 33.6453 17.5518 33.9945C17.5508 34.3437 17.6413 34.6871 17.8142 34.9905C17.9871 35.2939 18.2365 35.5467 18.5375 35.7238C18.8385 35.9009 19.1806 35.9961 19.5298 36H36.4698C36.819 35.9961 37.1611 35.9009 37.4621 35.7238C37.7631 35.5467 38.0124 35.2939 38.1854 34.9905C38.3583 34.6871 38.4488 34.3437 38.4478 33.9945C38.4468 33.6453 38.3544 33.3024 38.1798 33L29.7098 18.86C29.5315 18.5661 29.2805 18.3231 28.981 18.1544C28.6814 17.9858 28.3435 17.8972 27.9998 17.8972C27.656 17.8972 27.3181 17.9858 27.0186 18.1544C26.7191 18.3231 26.468 18.5661 26.2898 18.86Z"
|
|
7
|
+
stroke="#DC6803" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
8
|
+
</svg>
|
|
9
|
+
</span>
|
|
10
|
+
|
|
11
|
+
<span class="mb-3 title">
|
|
12
|
+
{{name}} Assigned as Your CSM
|
|
13
|
+
</span>
|
|
14
|
+
|
|
15
|
+
<span class="mb-5 description">
|
|
16
|
+
{{name}} has been assigned as your Customer Success Manager (CSM). For inquiries about data management, store
|
|
17
|
+
operations, or user management, please contact {{name}}.
|
|
18
|
+
</span>
|
|
19
|
+
|
|
20
|
+
<span class="mb-5 sub-title">
|
|
21
|
+
Contact Information:
|
|
22
|
+
</span>
|
|
23
|
+
|
|
24
|
+
<span class="mb-5 description">
|
|
25
|
+
<ul>
|
|
26
|
+
<li>
|
|
27
|
+
Phone: {{mobile}}
|
|
28
|
+
</li>
|
|
29
|
+
<li>
|
|
30
|
+
Email: {{email}}
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
</span>
|
|
34
|
+
|
|
35
|
+
<span class="mb-10 description">
|
|
36
|
+
Please approve {{name}}'s access to your data dashboard.
|
|
37
|
+
</span>
|
|
38
|
+
|
|
39
|
+
<div class="d-flex align-items-center justify-content-center" >
|
|
40
|
+
<button (click)="onSubmit('decline')" class="btn btn-outline btn-cust me-5">Decline</button>
|
|
41
|
+
|
|
42
|
+
<button (click)="onSubmit('approve')" class="btn btn-primary btn-cust">Approve</button>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
padding: 24px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.title {
|
|
6
|
+
color: #101828;
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
line-height: 28px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sub-title {
|
|
13
|
+
color: #667085;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.description {
|
|
20
|
+
color: #667085;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.btn-cust{
|
|
27
|
+
width: 25%;
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CsmAssignConfirmationComponent } from './csm-assign-confirmation.component';
|
|
4
|
+
|
|
5
|
+
describe('CsmAssignConfirmationComponent', () => {
|
|
6
|
+
let component: CsmAssignConfirmationComponent;
|
|
7
|
+
let fixture: ComponentFixture<CsmAssignConfirmationComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [CsmAssignConfirmationComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(CsmAssignConfirmationComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-csm-assign-confirmation',
|
|
6
|
+
templateUrl: './csm-assign-confirmation.component.html',
|
|
7
|
+
styleUrl: './csm-assign-confirmation.component.scss'
|
|
8
|
+
})
|
|
9
|
+
export class CsmAssignConfirmationComponent {
|
|
10
|
+
|
|
11
|
+
@Input() clientId:string
|
|
12
|
+
@Input() email:string
|
|
13
|
+
@Input() mobile:string
|
|
14
|
+
@Input() name:string
|
|
15
|
+
|
|
16
|
+
constructor(private activeModal:NgbActiveModal){
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
onSubmit(value:string){
|
|
21
|
+
this.activeModal.close({clientId:this.clientId, action:value})
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<ng-container *ngIf="appContentContiner">
|
|
2
|
+
<!--begin::Content container-->
|
|
3
|
+
<div id="kt_app_content_container" class="app-container"
|
|
4
|
+
[ngClass]="appContentContainerClass + ' ' + contentContainerCSSClass"
|
|
5
|
+
[ngClass]="{'container-xxl': appContentContiner === 'fixed', 'container-fluid': appContentContiner === 'fluid'}">
|
|
6
|
+
<router-outlet></router-outlet>
|
|
7
|
+
</div>
|
|
8
|
+
<!--end::Content container-->
|
|
9
|
+
</ng-container>
|
|
10
|
+
<ng-container *ngIf="!appContentContiner">
|
|
11
|
+
<router-outlet></router-outlet>
|
|
12
|
+
</ng-container>
|
|
File without changes
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NavigationCancel, NavigationEnd, Router } from '@angular/router';
|
|
3
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { Subscription } from 'rxjs/internal/Subscription';
|
|
5
|
+
import { CsmAssignConfirmationComponent } from '../components/csm-assign-confirmation/csm-assign-confirmation.component';
|
|
6
|
+
import { AuthService } from '../../../services/auth.service';
|
|
7
|
+
import { ToastService } from '../../../services/toast.service';
|
|
8
|
+
// import { DrawerComponent } from '../../../kt/components';
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'lib-content',
|
|
11
|
+
templateUrl: './content.component.html',
|
|
12
|
+
styleUrls: ['./content.component.scss'],
|
|
13
|
+
})
|
|
14
|
+
export class ContentComponent implements OnInit, OnDestroy {
|
|
15
|
+
@Input() contentContainerCSSClass: string = '';
|
|
16
|
+
@Input() appContentContiner?: 'fixed' | 'fluid';
|
|
17
|
+
@Input() appContentContainerClass: string = '';
|
|
18
|
+
|
|
19
|
+
private unsubscribe: Subscription[] = [];
|
|
20
|
+
|
|
21
|
+
constructor(private router: Router, private modalService: NgbModal, private authService:AuthService, private toastService:ToastService) { }
|
|
22
|
+
|
|
23
|
+
ngOnInit(): void {
|
|
24
|
+
this.routingChanges();
|
|
25
|
+
this.getAssignedUsers()
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
routingChanges() {
|
|
29
|
+
const routerSubscription = this.router.events.subscribe((event) => {
|
|
30
|
+
if (event instanceof NavigationEnd || event instanceof NavigationCancel) {
|
|
31
|
+
// DrawerComponent.hideAll();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
this.unsubscribe.push(routerSubscription);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
ngOnDestroy() {
|
|
38
|
+
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
confirmCsmAssign(clientId:string, email?:string, mobile?:string, name?:string ) {
|
|
42
|
+
const modalRef = this.modalService.open(CsmAssignConfirmationComponent, {
|
|
43
|
+
centered: true, size: 'md', scrollable: true,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
modalRef.componentInstance.clientId = clientId;
|
|
47
|
+
modalRef.componentInstance.email = email;
|
|
48
|
+
modalRef.componentInstance.mobile = mobile;
|
|
49
|
+
modalRef.componentInstance.name = name;
|
|
50
|
+
|
|
51
|
+
modalRef.result.then((result: any) => {
|
|
52
|
+
if(result.action === 'approve' || result.action === 'decline'){
|
|
53
|
+
let data = {
|
|
54
|
+
action: result.action
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
this.authService.csmAssignClientAction(result.clientId, data).subscribe({
|
|
58
|
+
next:(e)=>{
|
|
59
|
+
this.toastService.getSuccessToast(e.message)
|
|
60
|
+
},
|
|
61
|
+
error:(e)=>{
|
|
62
|
+
this.toastService.getErrorToast('Update failed')
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
getAssignedUsers(){
|
|
70
|
+
let userData:any = localStorage.getItem('user-info')
|
|
71
|
+
if (userData) {
|
|
72
|
+
userData = JSON.parse(userData)
|
|
73
|
+
if (userData.role === 'superadmin' && userData.userType === 'client') {
|
|
74
|
+
this.authService.checkToShowPopup(userData?.clientId).subscribe({
|
|
75
|
+
next:(res)=>{
|
|
76
|
+
if(res.data.notifyCsmAssign){
|
|
77
|
+
this.getCsmDetail(userData?.clientId)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
getCsmDetail(clientId:string){
|
|
89
|
+
this.authService.getAssignedUsers(clientId).subscribe({
|
|
90
|
+
next:(e)=>{
|
|
91
|
+
if(e?.data?.result?.length){
|
|
92
|
+
e?.data?.result.forEach((element:any) => {
|
|
93
|
+
if(element.tangoUserType === 'csm'){
|
|
94
|
+
const csm = element?.assignedUser?.[0]
|
|
95
|
+
this.confirmCsmAssign(clientId, csm?.email, csm?.mobileNumber, csm?.userName)
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<ng-container *ngIf="appFooterContainerCSSClass">
|
|
2
|
+
<!--begin::Footer container-->
|
|
3
|
+
<div class="app-container header-style mt-5" [ngClass]="appFooterContainerCSSClass">
|
|
4
|
+
<ng-container *ngTemplateOutlet="footerView"></ng-container>
|
|
5
|
+
</div>
|
|
6
|
+
<!--end::Footer container-->
|
|
7
|
+
</ng-container>
|
|
8
|
+
|
|
9
|
+
<ng-container *ngIf="!appFooterContainerCSSClass">
|
|
10
|
+
<ng-container *ngTemplateOutlet="footerView"></ng-container>
|
|
11
|
+
</ng-container>
|
|
12
|
+
|
|
13
|
+
<ng-template #footerView>
|
|
14
|
+
<!--begin::Copyright-->
|
|
15
|
+
<div class="text-gray-900 order-2 order-md-1">
|
|
16
|
+
<span class="text-muted fw-semibold me-1">{{currentDateStr}}©</span>
|
|
17
|
+
<a target="_blank" href="https://tangoeye.ai" class="footer text-gray-800 text-hover-primary">Tango IT Solutions India Pvt Ltd</a>
|
|
18
|
+
</div>
|
|
19
|
+
<!--end::Copyright-->
|
|
20
|
+
|
|
21
|
+
<!--begin::Menu-->
|
|
22
|
+
<ul class="menu menu-gray-600 menu-hover-primary fw-semibold order-1 me-7">
|
|
23
|
+
<li class="menu-item footer"><a target="_blank" href="https://tangoeye.ai/#aboutus" class="menu-link px-5">About us</a></li>
|
|
24
|
+
<li class="menu-item footer"><a target="_blank" href="https://tangoeye.ai/#contact" class="menu-link px-5">Contact Us</a></li>
|
|
25
|
+
<li class="menu-item footer"><a target="_blank" href="https://tangoeye.ai/privacy-policy-2/" class="menu-link px-5">Privacy & policy</a></li>
|
|
26
|
+
</ul>
|
|
27
|
+
<!--end::Menu-->
|
|
28
|
+
|
|
29
|
+
</ng-template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { FooterComponent } from './footer.component';
|
|
4
|
+
|
|
5
|
+
describe('FooterComponent', () => {
|
|
6
|
+
let component: FooterComponent;
|
|
7
|
+
let fixture: ComponentFixture<FooterComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ FooterComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(FooterComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-footer',
|
|
5
|
+
templateUrl: './footer.component.html',
|
|
6
|
+
styleUrls: ['./footer.component.scss'],
|
|
7
|
+
})
|
|
8
|
+
export class FooterComponent {
|
|
9
|
+
@Input() appFooterContainerCSSClass: string = '';
|
|
10
|
+
|
|
11
|
+
currentDateStr: string = new Date().getFullYear().toString();
|
|
12
|
+
constructor() {}
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<ng-container *ngIf="title$ | async as title">
|
|
2
|
+
<!-- begin::Title -->
|
|
3
|
+
<h1 class="page-heading d-flex text-gray-900 fw-bold fs-3 mt-7 mb-0 flex-column justify-content-center">
|
|
4
|
+
{{ title }}
|
|
5
|
+
<ng-container *ngIf="appPageTitleDescription">
|
|
6
|
+
<ng-container *ngIf="description$ | async as description">
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<!--begin::Description-->
|
|
10
|
+
<span class="page-desc text-muted fs-7 fw-semibold mt-2" [ngClass]="{'pt-2': appPageTitleDirection === 'column'}">
|
|
11
|
+
<ng-container *ngIf="appPageTitleDirection === 'row'">
|
|
12
|
+
<!--begin::Separator-->
|
|
13
|
+
<span class="h-20px border-1 border-gray-300 border-start ms-3 mx-2"></span>
|
|
14
|
+
<!--end::Separator-->
|
|
15
|
+
</ng-container>
|
|
16
|
+
|
|
17
|
+
<!-- {{description}} -->
|
|
18
|
+
</span>
|
|
19
|
+
<!--end::Description-->
|
|
20
|
+
</ng-container>
|
|
21
|
+
|
|
22
|
+
</ng-container>
|
|
23
|
+
|
|
24
|
+
</h1>
|
|
25
|
+
<!-- end::Title -->
|
|
26
|
+
|
|
27
|
+
</ng-container>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { HeaderMenuComponent } from './header-menu.component';
|
|
4
|
+
|
|
5
|
+
describe('HeaderMenuComponent', () => {
|
|
6
|
+
let component: HeaderMenuComponent;
|
|
7
|
+
let fixture: ComponentFixture<HeaderMenuComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ HeaderMenuComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(HeaderMenuComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable, Subscription } from 'rxjs';
|
|
3
|
+
import { PageInfoService } from 'tango-app-ui-global';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'lib-header-menu',
|
|
8
|
+
templateUrl: './header-menu.component.html',
|
|
9
|
+
styleUrls: ['./header-menu.component.scss'],
|
|
10
|
+
})
|
|
11
|
+
export class HeaderMenuComponent implements OnInit, OnDestroy {
|
|
12
|
+
private unsubscribe: Subscription[] = [];
|
|
13
|
+
|
|
14
|
+
@Input() appPageTitleDirection: string = '';
|
|
15
|
+
@Input() appPageTitleDescription: boolean = true;
|
|
16
|
+
|
|
17
|
+
title$: Observable<string>;
|
|
18
|
+
description$: Observable<string>;
|
|
19
|
+
|
|
20
|
+
constructor(private pageInfo: PageInfoService, private cd:ChangeDetectorRef) {}
|
|
21
|
+
|
|
22
|
+
ngOnInit(): void {
|
|
23
|
+
this.title$ = this.pageInfo.title.asObservable();
|
|
24
|
+
this.description$ = this.pageInfo.description.asObservable();
|
|
25
|
+
|
|
26
|
+
this.title$.subscribe((e)=>{
|
|
27
|
+
this.cd.detectChanges()
|
|
28
|
+
})
|
|
29
|
+
this.description$.subscribe((e)=>{
|
|
30
|
+
this.cd.detectChanges()
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
ngOnDestroy() {
|
|
35
|
+
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!--begin::Header container-->
|
|
2
|
+
<div class="app-container header-style" id="kt_app_header_container" [ngClass]="headerContainerCssClass">
|
|
3
|
+
<ng-container *ngIf="appSidebarDefaultCollapseDesktopEnabled">
|
|
4
|
+
<div class="app-sidebar-collapse-d-flex align-items-center me-3">
|
|
5
|
+
<!--begin::sidebar toggle-->
|
|
6
|
+
<div class="btn btn-icon w-auto px-0 btn-color-muted btn-active-icon-primary" data-kt-toggle="true"
|
|
7
|
+
data-kt-toggle-target="body" data-kt-toggle-mode="on" data-kt-toggle-name="app-sidebar-collapse">
|
|
8
|
+
<lib-keenicon name="double-right" class="fs-1"></lib-keenicon>
|
|
9
|
+
</div>
|
|
10
|
+
<!--end::sidebar toggle-->
|
|
11
|
+
</div>
|
|
12
|
+
</ng-container>
|
|
13
|
+
|
|
14
|
+
<ng-container *ngIf="appSidebarDisplay">
|
|
15
|
+
<!--begin::sidebar mobile toggle-->
|
|
16
|
+
<div class="d-flex align-items-center d-lg-none ms-n2 me-2" title="Show sidebar menu">
|
|
17
|
+
<div class="btn btn-icon btn-active-color-primary w-35px h-35px" id="kt_app_sidebar_mobile_toggle">
|
|
18
|
+
<lib-keenicon name="abstract-14" class="fs-1"></lib-keenicon>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<!--end::sidebar mobile toggle-->
|
|
22
|
+
<!--begin::Mobile logo-->
|
|
23
|
+
<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
|
|
24
|
+
<a class="d-lg-none">
|
|
25
|
+
<img alt="Logo" src="./assets/tango/sidemenu-icons/tango_logo.svg" class="h-30px" />
|
|
26
|
+
</a>
|
|
27
|
+
</div>
|
|
28
|
+
<!--end::Mobile logo-->
|
|
29
|
+
</ng-container>
|
|
30
|
+
|
|
31
|
+
<ng-container *ngIf="!appSidebarDisplay">
|
|
32
|
+
<!--begin::Logo-->
|
|
33
|
+
<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0 me-lg-15">
|
|
34
|
+
<a >
|
|
35
|
+
<ng-container *ngIf="currentLayoutType === 'dark-header'">
|
|
36
|
+
<img alt="Logo" src="./assets/tango/sidemenu-icons/tango_logo.svg"
|
|
37
|
+
class="h-20px h-lg-30px app-sidebar-logo-default" />
|
|
38
|
+
</ng-container>
|
|
39
|
+
<ng-container *ngIf="currentLayoutType !== 'dark-header'">
|
|
40
|
+
<img alt="Logo" src="./assets/tango/sidemenu-icons/tango_logo.svg"
|
|
41
|
+
class="h-20px h-lg-30px app-sidebar-logo-default theme-light-show" />
|
|
42
|
+
<img alt="Logo" src="./assets/tango/sidemenu-icons/tango_logo.svg"
|
|
43
|
+
class="h-20px h-lg-30px app-sidebar-logo-default theme-dark-show" />
|
|
44
|
+
</ng-container>
|
|
45
|
+
</a>
|
|
46
|
+
</div>
|
|
47
|
+
<!--end::Logo-->
|
|
48
|
+
</ng-container>
|
|
49
|
+
|
|
50
|
+
<!--begin::Header wrapper-->
|
|
51
|
+
<div class="d-flex align-items-stretch justify-content-between flex-lg-grow-1 header-border" id="kt_app_header_wrapper">
|
|
52
|
+
<ng-container *ngIf="appHeaderDefaultContent === 'menu' && appHeaderDefaulMenuDisplay">
|
|
53
|
+
<!--begin::Menu wrapper-->
|
|
54
|
+
<div class="
|
|
55
|
+
app-header-menu
|
|
56
|
+
app-header-mobile-drawer
|
|
57
|
+
align-items-stretch
|
|
58
|
+
" data-kt-drawer="true" data-kt-drawer-name="app-header-menu" data-kt-drawer-activate="{default: true, lg: false}"
|
|
59
|
+
data-kt-drawer-overlay="true" data-kt-drawer-width="225px" data-kt-drawer-direction="end"
|
|
60
|
+
data-kt-drawer-toggle="#kt_app_header_menu_toggle" data-kt-swapper="true"
|
|
61
|
+
data-kt-swapper-mode="{default: 'append', lg: 'prepend'}"
|
|
62
|
+
data-kt-swapper-parent="{default: '#kt_app_body', lg: '#kt_app_header_wrapper'}">
|
|
63
|
+
<!--begin::Menu-->
|
|
64
|
+
<lib-header-menu
|
|
65
|
+
appPageTitleDirection = ''
|
|
66
|
+
[appPageTitleDescription] = true
|
|
67
|
+
class="
|
|
68
|
+
menu
|
|
69
|
+
menu-rounded
|
|
70
|
+
menu-column
|
|
71
|
+
menu-lg-row
|
|
72
|
+
my-5
|
|
73
|
+
my-lg-0
|
|
74
|
+
align-items-stretch
|
|
75
|
+
fw-semibold
|
|
76
|
+
px-2 px-lg-0
|
|
77
|
+
" id="kt_app_header_menu" data-kt-menu="true"></lib-header-menu>
|
|
78
|
+
<!--end::Menu-->
|
|
79
|
+
</div>
|
|
80
|
+
<!--end::Menu wrapper-->
|
|
81
|
+
</ng-container>
|
|
82
|
+
<!-- <ng-container *ngIf="appHeaderDefaultContent === 'page-title' && appPageTitleDisplay">
|
|
83
|
+
<app-page-title #ktPageTitle class="page-title d-flex"></app-page-title>
|
|
84
|
+
</ng-container> -->
|
|
85
|
+
<lib-navbar class="app-navbar flex-shrink-0" [appHeaderDefaulMenuDisplay]="appHeaderDefaulMenuDisplay"
|
|
86
|
+
[isRtl]="false"></lib-navbar>
|
|
87
|
+
</div>
|
|
88
|
+
<!--end::Header wrapper-->
|
|
89
|
+
</div>
|
|
90
|
+
<!--end::Header container-->
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { HeaderComponent } from './header.component';
|
|
4
|
+
|
|
5
|
+
describe('HeaderComponent', () => {
|
|
6
|
+
let component: HeaderComponent;
|
|
7
|
+
let fixture: ComponentFixture<HeaderComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ HeaderComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(HeaderComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|