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,400 @@
|
|
|
1
|
+
import { Component, Input, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { ActivatedRoute, Router } from "@angular/router";
|
|
3
|
+
import { Subject, Subscription, window } from "rxjs";
|
|
4
|
+
import {
|
|
5
|
+
GlobalStateService,
|
|
6
|
+
LayoutService,
|
|
7
|
+
PageInfoService,
|
|
8
|
+
} from "tango-app-ui-global";
|
|
9
|
+
import { ILayout, LayoutType } from "tango-app-ui-global";
|
|
10
|
+
import { AuthService } from "../../../services/auth.service";
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: "lib-toolbar",
|
|
14
|
+
templateUrl: "./toolbar.component.html",
|
|
15
|
+
styleUrls: ["./toolbar.component.scss"],
|
|
16
|
+
})
|
|
17
|
+
export class ToolbarComponent implements OnInit, OnDestroy {
|
|
18
|
+
private unsubscribe: Subscription[] = [];
|
|
19
|
+
|
|
20
|
+
// Public props
|
|
21
|
+
@Input() currentLayoutType: LayoutType | null;
|
|
22
|
+
@Input() appToolbarLayout:
|
|
23
|
+
| "classic"
|
|
24
|
+
| "accounting"
|
|
25
|
+
| "extended"
|
|
26
|
+
| "reports"
|
|
27
|
+
| "saas";
|
|
28
|
+
|
|
29
|
+
// toolbar
|
|
30
|
+
appToolbarDisplay: boolean;
|
|
31
|
+
appToolbarContainer: "fixed" | "fluid";
|
|
32
|
+
appToolbarContainerCSSClass: string = "";
|
|
33
|
+
appToolbarFixedDesktop: boolean;
|
|
34
|
+
appToolbarFixedMobile: boolean;
|
|
35
|
+
appPageTitleDisplay: boolean;
|
|
36
|
+
|
|
37
|
+
// page title
|
|
38
|
+
appPageTitleDirection: string = "";
|
|
39
|
+
appPageTitleCSSClass: string = "";
|
|
40
|
+
appPageTitleBreadcrumb: boolean;
|
|
41
|
+
appPageTitleDescription: boolean;
|
|
42
|
+
querParams: any;
|
|
43
|
+
singleSelect: boolean;
|
|
44
|
+
multiSelect: boolean;
|
|
45
|
+
datepicker: boolean;
|
|
46
|
+
singleSelectdatepicker: boolean;
|
|
47
|
+
singleStore: boolean;
|
|
48
|
+
headervalue: any;
|
|
49
|
+
storeId: any;
|
|
50
|
+
users: any;
|
|
51
|
+
selectedFilters: any = {
|
|
52
|
+
client: null,
|
|
53
|
+
clients: [],
|
|
54
|
+
store: null,
|
|
55
|
+
stores: [],
|
|
56
|
+
date: null,
|
|
57
|
+
};
|
|
58
|
+
trafficdatepicker: boolean;
|
|
59
|
+
traxdatepicker: boolean;
|
|
60
|
+
urlString:any;
|
|
61
|
+
traxwithoutdatepicker:boolean;
|
|
62
|
+
storesSingle:boolean;
|
|
63
|
+
nobWithoutClient:boolean;
|
|
64
|
+
merticsHeader: boolean;
|
|
65
|
+
singleClientStoreDate:boolean;
|
|
66
|
+
constructor(
|
|
67
|
+
private layout: LayoutService,
|
|
68
|
+
private router: Router,
|
|
69
|
+
private route: ActivatedRoute,
|
|
70
|
+
public gs: GlobalStateService,
|
|
71
|
+
private auth : AuthService
|
|
72
|
+
) {}
|
|
73
|
+
|
|
74
|
+
ngOnInit(): void {
|
|
75
|
+
if ("user-info" in localStorage) {
|
|
76
|
+
const userData: any = JSON.parse(
|
|
77
|
+
localStorage.getItem("user-info") || "{}"
|
|
78
|
+
);
|
|
79
|
+
this.users = userData;
|
|
80
|
+
}
|
|
81
|
+
if ("header-filters" in localStorage) {
|
|
82
|
+
const data: any = JSON.parse(
|
|
83
|
+
localStorage.getItem("header-filters") || "{}"
|
|
84
|
+
);
|
|
85
|
+
this.client = data?.client;
|
|
86
|
+
}
|
|
87
|
+
this.getUserInfo(this.client ? this.client : this.users.client)
|
|
88
|
+
this.showPageTitle();
|
|
89
|
+
const subscr = this.layout.layoutConfigSubject
|
|
90
|
+
.asObservable()
|
|
91
|
+
.subscribe((config: ILayout) => {
|
|
92
|
+
this.updateProps(config);
|
|
93
|
+
});
|
|
94
|
+
this.unsubscribe.push(subscr);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
updateProps(config: ILayout) {
|
|
98
|
+
this.appToolbarDisplay = this.layout.getProp(
|
|
99
|
+
"app.toolbar.display",
|
|
100
|
+
config
|
|
101
|
+
) as boolean;
|
|
102
|
+
if (!this.appToolbarDisplay) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
this.appPageTitleDisplay = this.layout.getProp(
|
|
107
|
+
"app.pageTitle.display",
|
|
108
|
+
config
|
|
109
|
+
) as boolean;
|
|
110
|
+
this.appToolbarContainer = this.layout.getProp(
|
|
111
|
+
"app.toolbar.container",
|
|
112
|
+
config
|
|
113
|
+
) as "fluid" | "fixed";
|
|
114
|
+
this.appToolbarContainerCSSClass =
|
|
115
|
+
this.appToolbarContainer === "fixed"
|
|
116
|
+
? "container-xxl"
|
|
117
|
+
: "container-fluid";
|
|
118
|
+
const containerClass = this.layout.getProp(
|
|
119
|
+
"app.toolbar.containerClass",
|
|
120
|
+
config
|
|
121
|
+
) as string;
|
|
122
|
+
if (containerClass) {
|
|
123
|
+
this.appToolbarContainerCSSClass += ` ${containerClass}`;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
this.appToolbarFixedDesktop = this.layout.getProp(
|
|
127
|
+
"app.toolbar.fixed.desktop",
|
|
128
|
+
config
|
|
129
|
+
) as boolean;
|
|
130
|
+
if (this.appToolbarFixedDesktop) {
|
|
131
|
+
document.body.setAttribute("data-kt-app-toolbar-fixed", "true");
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
this.appToolbarFixedMobile = this.layout.getProp(
|
|
135
|
+
"app.toolbar.fixed.mobile",
|
|
136
|
+
config
|
|
137
|
+
) as boolean;
|
|
138
|
+
if (this.appToolbarFixedMobile) {
|
|
139
|
+
document.body.setAttribute("data-kt-app-toolbar-fixed-mobile", "true");
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// toolbar
|
|
143
|
+
this.appPageTitleDirection = this.layout.getProp(
|
|
144
|
+
"app.pageTitle.direction",
|
|
145
|
+
config
|
|
146
|
+
) as string;
|
|
147
|
+
this.appPageTitleCSSClass = this.layout.getProp(
|
|
148
|
+
"app.pageTitle.class",
|
|
149
|
+
config
|
|
150
|
+
) as string;
|
|
151
|
+
this.appPageTitleBreadcrumb = this.layout.getProp(
|
|
152
|
+
"app.pageTitle.breadCrumb",
|
|
153
|
+
config
|
|
154
|
+
) as boolean;
|
|
155
|
+
this.appPageTitleDescription = this.layout.getProp(
|
|
156
|
+
"app.pageTitle.description",
|
|
157
|
+
config
|
|
158
|
+
) as boolean;
|
|
159
|
+
|
|
160
|
+
document.body.setAttribute("data-kt-app-toolbar-enabled", "true");
|
|
161
|
+
}
|
|
162
|
+
private readonly destroy$ = new Subject();
|
|
163
|
+
ngOnDestroy() {
|
|
164
|
+
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
165
|
+
this.destroy$.next(true);
|
|
166
|
+
this.destroy$.complete();
|
|
167
|
+
// localStorage.removeItem("usersEmail-info");
|
|
168
|
+
}
|
|
169
|
+
client:any;
|
|
170
|
+
urlString1:any;
|
|
171
|
+
showPageTitle() {
|
|
172
|
+
// debugger
|
|
173
|
+
let URL: string = "";
|
|
174
|
+
if ("header-filters" in localStorage) {
|
|
175
|
+
const data: any = JSON.parse(
|
|
176
|
+
localStorage.getItem("header-filters") || "{}"
|
|
177
|
+
);
|
|
178
|
+
const store = this.route.snapshot.queryParamMap as any
|
|
179
|
+
this.storeId = data?.store;
|
|
180
|
+
|
|
181
|
+
if(store?.params?.['storeId']){
|
|
182
|
+
this.storeId = store.params['storeId']
|
|
183
|
+
data.store = store.params['storeId']
|
|
184
|
+
localStorage.setItem('header-filters', JSON.stringify(data))
|
|
185
|
+
}
|
|
186
|
+
const currentUrl = this.router.url;
|
|
187
|
+
const updatedUrl = currentUrl.replace(
|
|
188
|
+
/\/manage\/stores\/\d+-\d+\//,
|
|
189
|
+
`/manage/stores/`
|
|
190
|
+
);
|
|
191
|
+
URL = updatedUrl;
|
|
192
|
+
// this.router.navigate([URL])
|
|
193
|
+
}
|
|
194
|
+
const url = URL.split("?")[0].split('/');
|
|
195
|
+
this.urlString = URL;
|
|
196
|
+
this.urlString1= URL.split('/');
|
|
197
|
+
if (this.users?.userType === "tango") {
|
|
198
|
+
if (url[2] == "settings" || URL == "/manage/users/client" ||
|
|
199
|
+
URL == "/manage/stores" || URL === "/manage/stores?type=stores" || URL === "/manage/stores?type=clusters" ||
|
|
200
|
+
URL == "/manage/stores/addition-method" ||
|
|
201
|
+
URL == "/manage/stores/add-single-store" || URL === "/manage/trax/gallery" || URL == "/notifications/alerts?tab=alert" || URL == "/notifications/alerts?tab=download" || URL === "/manage/trax/audit" ) {
|
|
202
|
+
this.setUIProperties(true, false, false, false, false,false,false,false,false,false,false,false,false);
|
|
203
|
+
} else if (url[3] == "edge-app") {
|
|
204
|
+
this.setUIProperties(false, false, false, false, true,false,false,false,false,false,false,false,false);
|
|
205
|
+
} else if (
|
|
206
|
+
URL == `/manage/stores/infra-ticket?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=infra` ||
|
|
207
|
+
URL == `/manage/stores/settings?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=dataMismatch` ||
|
|
208
|
+
URL == `/manage/stores/zones?storeId=${this.storeId}` ||
|
|
209
|
+
URL == `/manage/stores/cameras?storeId=${this.storeId}` ||
|
|
210
|
+
// URL == `/manage/stores/infrastructure?storeId=${this.storeId}` ||
|
|
211
|
+
URL == `/manage/stores/mat?storeId=${this.storeId}`
|
|
212
|
+
) {
|
|
213
|
+
this.setUIProperties(false, false, false, true, false,false,false,false,false,false,false,false,false);
|
|
214
|
+
}else if (URL == "/tickets/stores" || URL == "/manage/users/tango/audit") {
|
|
215
|
+
this.setUIProperties(false, false, true, false, false, false, false, false, false, false,false,false,false);
|
|
216
|
+
}
|
|
217
|
+
else if(url[2] === 'controlcenter'){
|
|
218
|
+
if(URL == `/manage/controlcenter/playback?storeId=${this.storeId}`|| URL == `/manage/controlcenter/playback`){
|
|
219
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false,false,false);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
this.setUIProperties(false, false, false, false,true,false,false,false,false,false,false,false,false);
|
|
223
|
+
}
|
|
224
|
+
}else if (URL == "/profile" || url[2]==="data-mismatch" || url[2]==="employeetraining"
|
|
225
|
+
|| URL == "/manage/brands" || URL == "/manage/users/tango" || (url[1] ==="tickets" && url[2] === "audit") || url.includes('list')) {
|
|
226
|
+
this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false,false,false);
|
|
227
|
+
} else if(URL == "/manage/traffic/nob"){
|
|
228
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,true,false,false,false);
|
|
229
|
+
} else if(url[2] === "zones"){
|
|
230
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,false,true);
|
|
231
|
+
} else if(url[2] === "traffic" || URL == "/manage/analyse/reports"){
|
|
232
|
+
this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false,false,false);
|
|
233
|
+
}else if(URL == "/manage/employee-metrics/beeahGroup" || URL == "/manage/employee-metrics/beeahLive"){
|
|
234
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,true,false);
|
|
235
|
+
} else if(url[2] === "employee-metrics" && url[3] === "heatmap"){
|
|
236
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false,false,false);
|
|
237
|
+
} else if(url[2] === "employee-metrics"){
|
|
238
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,true,false,false);
|
|
239
|
+
} else if(url[2] == 'trax'){
|
|
240
|
+
if(url[2] == 'trax' && (url.includes('createChecklist') || url.includes('configure') || url.includes('create-order')|| url[3] == 'create-task' || url[3] == 'task-configure')) {
|
|
241
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,false,false);
|
|
242
|
+
}
|
|
243
|
+
// else if(url[2] == 'trax' && (url.includes('taskinfo'))){
|
|
244
|
+
// this.setUIProperties(false, false, false, false,false,false,false,true,false,false,false,false);
|
|
245
|
+
// }
|
|
246
|
+
else if(url[2] == 'trax' && url.includes('start')){
|
|
247
|
+
this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false,false,false);
|
|
248
|
+
}
|
|
249
|
+
else if(url[2] == 'trax' && (url.includes('checklist') || url.includes('gallery')) || url.includes('audit')) {
|
|
250
|
+
this.setUIProperties(true, false, false, false,false,false,false,false,false,false,false,false,false);
|
|
251
|
+
} else {
|
|
252
|
+
this.setUIProperties(false, false, false, false,false,false,true,false,false,false,false,false,false);
|
|
253
|
+
}
|
|
254
|
+
} else if(url[2] == 'planogram'){
|
|
255
|
+
if(url[2] == 'planogram' && (url.includes('verification'))){
|
|
256
|
+
this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false,false,false);
|
|
257
|
+
}
|
|
258
|
+
if(url[2] == 'planogram' && (url.includes('layout-builder'))) {
|
|
259
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,false,false);
|
|
260
|
+
}else {
|
|
261
|
+
if(url[2] == 'planogram' && url[3] == 'manage-planogram') {
|
|
262
|
+
this.setUIProperties(false,false,false,false,false,false,false,false,false,false,false,false,false);
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
this.setUIProperties(true, false, false, false,false,false,false,false,false,false,false,false,false);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
} else{
|
|
269
|
+
if(url[3] == 'plano') {
|
|
270
|
+
this.setUIProperties(false, false, false, true, false,false,false,false,false,false,false,false,false);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
this.setUIProperties(false, false, false, false,true,false,false,false,false,false,false,false,false);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
} else {
|
|
277
|
+
if(URL ==='/manage/planogram/manage-planograms/verification'){
|
|
278
|
+
this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false,false,false);
|
|
279
|
+
}
|
|
280
|
+
if (url[3] == "edge-app" ) {
|
|
281
|
+
this.setUIProperties(false, false, true, false, false,false,false,false,false,false,false,false,false);
|
|
282
|
+
} else if (
|
|
283
|
+
URL == `/manage/stores/infra-ticket?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=infra` ||
|
|
284
|
+
URL == `/manage/stores/settings?storeId=${this.storeId}` || URL == `/manage/stores/infra-ticket?storeId=${this.storeId}&type=dataMismatch` ||
|
|
285
|
+
URL == `/manage/stores/zones?storeId=${this.storeId}` ||
|
|
286
|
+
URL == `/manage/stores/cameras?storeId=${this.storeId}` ||
|
|
287
|
+
// URL == `/manage/stores/infrastructure?storeId=${this.storeId}` ||
|
|
288
|
+
URL == `/manage/stores/mat?storeId=${this.storeId}`
|
|
289
|
+
) {
|
|
290
|
+
this.setUIProperties(false, false, false, true, false,false,false,false,false,false,false,false,false);
|
|
291
|
+
} else if(url[2] === 'controlcenter'){
|
|
292
|
+
if(URL == `/manage/controlcenter/playback?storeId=${this.storeId}`|| URL == `/manage/controlcenter/playback`){
|
|
293
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false,false,false);
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
this.setUIProperties(false, false, false, false,true,false,false,false,false,false,false,false,false);
|
|
297
|
+
}
|
|
298
|
+
} else if (URL == "/profile" || URL == "/manage/users/client" || URL == "/manage/users/tango" ||
|
|
299
|
+
URL == "/manage/stores" || URL === "/manage/stores?type=stores" || URL === "/manage/stores?type=clusters" || url[2] == "settings" ||
|
|
300
|
+
URL == "/manage/stores/addition-method" ||
|
|
301
|
+
URL == "/manage/stores/add-single-store" || url[2]==="data-mismatch" || url[2]==="employeetraining" || URL == "/notifications/alerts?tab=alert" || URL == "/notifications/alerts?tab=download"
|
|
302
|
+
|| URL == "/manage/users/tango" || URL === "/manage/controlcenter" || URL ==='manage/controlcenter/template-manager' || url[2]==='controlcenter' || url.includes('list')) {
|
|
303
|
+
this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false,false,false);
|
|
304
|
+
}else if(URL == "/manage/traffic/nob"){
|
|
305
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,true,false,false,false);
|
|
306
|
+
}else if(url[2] === "zones"){
|
|
307
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,false,true);
|
|
308
|
+
} else if(url[2] === "traffic" || URL == "/manage/analyse/reports"){
|
|
309
|
+
this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false,false,false);
|
|
310
|
+
}else if(URL == "/manage/employee-metrics/beeahGroup" || URL == "/manage/employee-metrics/beeahLive"){
|
|
311
|
+
this.setUIProperties(false, false, false, true, false,false,false,false,false,false,false,false,false);
|
|
312
|
+
} else if(url[2] === "employee-metrics" && url[3] === "heatmap"){
|
|
313
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,true,false,false,false,false);
|
|
314
|
+
} else if(url[2] === "employee-metrics"){
|
|
315
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,true,false,false);
|
|
316
|
+
} else if(url[2] == 'trax'){
|
|
317
|
+
if(url[2] == 'trax' && (url.includes('createChecklist') || url.includes('configure') || url.includes('create-order') || url[3] == 'create-task' || url[3] == 'task-configure')) {
|
|
318
|
+
this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,false,false);
|
|
319
|
+
}
|
|
320
|
+
// else if(url[2] == 'trax' && (url.includes('taskinfo'))){
|
|
321
|
+
// this.setUIProperties(false, false, false, false,false,false,false,true,false,false,false,false);
|
|
322
|
+
// }
|
|
323
|
+
else if(url[2] == 'trax' && url.includes('start')){
|
|
324
|
+
this.setUIProperties(false, false, false, false, false,false,false,false,false,false,false,false,false);
|
|
325
|
+
}
|
|
326
|
+
else if(url[2] == 'trax' && (url.includes('checklist') || url.includes('gallery') || url.includes('audit'))) {
|
|
327
|
+
this.setUIProperties(true, false, false, false,false,false,false,false,false,false,false,false,false);
|
|
328
|
+
} else {
|
|
329
|
+
this.setUIProperties(false, false, false, false,false,false,true,false,false,false,false,false,false);
|
|
330
|
+
}
|
|
331
|
+
} else if(url[2] == 'planogram'){
|
|
332
|
+
this.setUIProperties(false, false, false, false,false,true,false,false,false,false,false,false,false);
|
|
333
|
+
// if(url[2] == 'planogram' && (url.includes('verification'))){
|
|
334
|
+
// }
|
|
335
|
+
// if(url[2] == 'planogram' && (url.includes('layout-builder'))) {
|
|
336
|
+
// this.setUIProperties(false, false, false, false,false,false,false,false,false,false,false,false);
|
|
337
|
+
// } else {
|
|
338
|
+
// this.setUIProperties(true, false, false, false,false,false,false,false,false,false,false,false);
|
|
339
|
+
// }
|
|
340
|
+
}else {
|
|
341
|
+
if (url[3] == "plano") {
|
|
342
|
+
this.setUIProperties(false,false,false,true,false,false,false,false,false,false,false,false,false);
|
|
343
|
+
} else {
|
|
344
|
+
this.setUIProperties(false, false, true, false, false,false,false,false,false,false,false,false,false);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
const viewsWithPageTitles = ["classic", "reports", "saas"];
|
|
349
|
+
return (
|
|
350
|
+
this.appPageTitleDisplay &&
|
|
351
|
+
viewsWithPageTitles.some((t) => t === this.appToolbarLayout)
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
zoneHeader:any;
|
|
355
|
+
setUIProperties(
|
|
356
|
+
singleSelect: boolean,
|
|
357
|
+
multiSelect: boolean,
|
|
358
|
+
datepicker: boolean,
|
|
359
|
+
singleStore: boolean,
|
|
360
|
+
singleSelectdatepicker: boolean,
|
|
361
|
+
trafficdatepicker:boolean,
|
|
362
|
+
traxdatepicker:boolean,
|
|
363
|
+
traxwithoutdatepicker:boolean,
|
|
364
|
+
storesSingle:boolean,
|
|
365
|
+
nobWithoutClient:boolean,
|
|
366
|
+
merticsHeader:boolean,
|
|
367
|
+
singleClientStoreDate:boolean,
|
|
368
|
+
zoneHeader:boolean
|
|
369
|
+
): void {
|
|
370
|
+
this.singleSelect = singleSelect;
|
|
371
|
+
this.multiSelect = multiSelect;
|
|
372
|
+
this.datepicker = datepicker;
|
|
373
|
+
this.singleStore = singleStore;
|
|
374
|
+
this.singleSelectdatepicker = singleSelectdatepicker;
|
|
375
|
+
this.trafficdatepicker = trafficdatepicker;
|
|
376
|
+
this.traxdatepicker = traxdatepicker;
|
|
377
|
+
this.traxwithoutdatepicker = traxwithoutdatepicker;
|
|
378
|
+
this.storesSingle = storesSingle;
|
|
379
|
+
this.nobWithoutClient = nobWithoutClient;
|
|
380
|
+
this.merticsHeader = merticsHeader;
|
|
381
|
+
this.singleClientStoreDate = singleClientStoreDate;
|
|
382
|
+
this.zoneHeader = zoneHeader;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
getUserInfo(client:any){
|
|
386
|
+
let obj ={
|
|
387
|
+
clientId: client ? client :''
|
|
388
|
+
}
|
|
389
|
+
if(client){
|
|
390
|
+
this.auth.getHeaderUsers(obj).subscribe({
|
|
391
|
+
next: (e) => {
|
|
392
|
+
localStorage.setItem(
|
|
393
|
+
"usersEmail-info",
|
|
394
|
+
JSON.stringify(e?.data?.userEmailData || [])
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
})
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
<div class="">
|
|
2
|
+
<label *ngIf="selectedCountriesLabel()" class="badge badge-light-default mx-2">{{selectedCountriesLabel()}}
|
|
3
|
+
<span class="cursor-pointer" (click)="removeCountry()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
4
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg></span>
|
|
6
|
+
</label>
|
|
7
|
+
<label *ngIf="selectedLocationsLabel()" class="badge badge-light-default mx-2">{{selectedLocationsLabel()}}
|
|
8
|
+
<span class="cursor-pointer" (click)="removeLocation()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
9
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
</svg></span>
|
|
11
|
+
</label>
|
|
12
|
+
<label *ngIf="selectedGroupsLabel()" class="badge badge-light-default mx-2">{{selectedGroupsLabel()}}
|
|
13
|
+
<span class="cursor-pointer" (click)="removeGroup()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
14
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
+
</svg></span>
|
|
16
|
+
</label>
|
|
17
|
+
<label class="badge badge-light-default">{{selectedStoresLabel()}}</label>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<div class="wrapper me-3" *ngIf="(gs.userAccess | async)?.userType === 'tango'">
|
|
22
|
+
<lib-select [items]="clientList" [multi]="false" [searchField]="'clientName'" [disabled]="false" [idField]="'clientId'"
|
|
23
|
+
(selected)="onClientSelect($event)" [selectedValues]="[selectedClient]"></lib-select>
|
|
24
|
+
</div>
|
|
25
|
+
<!-- <div class="d-flex align-items-center position-relative my-1">
|
|
26
|
+
<span class="svg-icon svg-icon-1 position-absolute ms-3">
|
|
27
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
28
|
+
<path
|
|
29
|
+
d="M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z"
|
|
30
|
+
stroke="#344054" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
|
|
31
|
+
</svg>
|
|
32
|
+
</span>
|
|
33
|
+
<input class="fx-date-range form-control ps-14" style="min-width: 260px !important;" type="text" matInput
|
|
34
|
+
ngxDaterangepickerMd [drops]="'down'" [opens]="'right'" [ranges]="ranges" [showCustomRangeLabel]="true" [autoApply]="true"
|
|
35
|
+
[alwaysShowCalendars]="false" [keepCalendarOpeningWithRange]="true" [showCancel]="true" autocomplete="off"
|
|
36
|
+
[(ngModel)]="selectedDateRange" (startDateChanged)="onStartDateChange($event)" [isCustomDate]="isCustomDate"
|
|
37
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
38
|
+
(datesUpdated)="datechange($event)" name="daterange" [readonly]="true" />
|
|
39
|
+
</div> -->
|
|
40
|
+
<div class="position-relative">
|
|
41
|
+
<button type="button" (click)="opendropdown($event)" class="btn btn-default mx-2 rounded-3 text-nowrap border-val">
|
|
42
|
+
<!-- <span class="me-2">Filter</span> -->
|
|
43
|
+
<svg class="pl-3" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
44
|
+
<path d="M5 10H15M2.5 5H17.5M7.5 15H12.5" stroke="#344054" stroke-width="2" stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round" />
|
|
46
|
+
</svg>
|
|
47
|
+
</button>
|
|
48
|
+
|
|
49
|
+
<div *ngIf="Opendropdown" class="card p-5 dropdown2 position-absolute z-1 end-0" style="z-index: 1 !important;" (clickOutside)="closeDropdown1()">
|
|
50
|
+
<div class="dropdown-title d-flex justify-content-between mb-2">Filter Options
|
|
51
|
+
<button class="btn btn-outline w-25 ms-3 btn-resize" (click)="Reset()"> Reset </button>
|
|
52
|
+
<button class="btn btn-primary w-25 btn-resize" (click)="Apply()">Apply</button>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<!-- Country Dropdown -->
|
|
56
|
+
<div class="dropdown-container" (clickOutside)="closeDropdown()">
|
|
57
|
+
<div class="dropdown-header" (click)="toggleDropdown('country')">
|
|
58
|
+
<input
|
|
59
|
+
type="text"
|
|
60
|
+
class="form-control dropdown-input cursor-pointer"
|
|
61
|
+
[value]="selectedCountriesLabel()"
|
|
62
|
+
readonly
|
|
63
|
+
placeholder="Select country"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'country'">
|
|
67
|
+
<input
|
|
68
|
+
type="text"
|
|
69
|
+
class="form-control mb-2 dropdown-search"
|
|
70
|
+
placeholder="Search country"
|
|
71
|
+
[(ngModel)]="searchCountryText"
|
|
72
|
+
(ngModelChange)="filterCountries()"
|
|
73
|
+
/>
|
|
74
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
75
|
+
<input
|
|
76
|
+
class="form-check-input cursor-pointer"
|
|
77
|
+
type="checkbox"
|
|
78
|
+
id="selectAllCountries"
|
|
79
|
+
[checked]="isAllCountriesSelected()"
|
|
80
|
+
(change)="toggleSelectAllCountries($event)"
|
|
81
|
+
/>
|
|
82
|
+
<label class="form-check-label" for="selectAllCountries">
|
|
83
|
+
Select All
|
|
84
|
+
</label>
|
|
85
|
+
</div>
|
|
86
|
+
<div
|
|
87
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
88
|
+
*ngFor="let country of filteredCountries"
|
|
89
|
+
>
|
|
90
|
+
<input
|
|
91
|
+
class="form-check-input cursor-pointer"
|
|
92
|
+
type="checkbox"
|
|
93
|
+
[id]="country.country"
|
|
94
|
+
[(ngModel)]="country.checked"
|
|
95
|
+
(change)="updateSelectedCountries()"
|
|
96
|
+
/>
|
|
97
|
+
<label class="form-check-label" [for]="country.country">
|
|
98
|
+
{{ country.country }}
|
|
99
|
+
</label>
|
|
100
|
+
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<!-- Location Dropdown -->
|
|
106
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
107
|
+
<div class="dropdown-header" (click)="toggleDropdown('location')">
|
|
108
|
+
<input
|
|
109
|
+
type="text"
|
|
110
|
+
class="form-control dropdown-input cursor-pointer"
|
|
111
|
+
[value]="selectedLocationsLabel()"
|
|
112
|
+
readonly
|
|
113
|
+
placeholder="Select Region"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'location'">
|
|
117
|
+
<input
|
|
118
|
+
type="text"
|
|
119
|
+
class="form-control mb-2 dropdown-search"
|
|
120
|
+
placeholder="Search Region"
|
|
121
|
+
[(ngModel)]="searchLocationText"
|
|
122
|
+
(ngModelChange)="filterLocations()"
|
|
123
|
+
/>
|
|
124
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
125
|
+
<input
|
|
126
|
+
class="form-check-input cursor-pointer"
|
|
127
|
+
type="checkbox"
|
|
128
|
+
id="selectAllLocations"
|
|
129
|
+
[checked]="isAllLocationsSelected()"
|
|
130
|
+
(change)="toggleSelectAllLocations($event)"
|
|
131
|
+
/>
|
|
132
|
+
<label class="form-check-label" for="selectAllLocations">
|
|
133
|
+
Select All
|
|
134
|
+
</label>
|
|
135
|
+
</div>
|
|
136
|
+
<div
|
|
137
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
138
|
+
*ngFor="let location of filteredLocations"
|
|
139
|
+
>
|
|
140
|
+
<input
|
|
141
|
+
class="form-check-input cursor-pointer"
|
|
142
|
+
type="checkbox"
|
|
143
|
+
[id]="location.city"
|
|
144
|
+
[(ngModel)]="location.checked"
|
|
145
|
+
(change)="updateSelectedLocations()"
|
|
146
|
+
/>
|
|
147
|
+
<label class="form-check-label" [for]="location.city">
|
|
148
|
+
{{ location.city }}
|
|
149
|
+
</label>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
<!-- Group Dropdown -->
|
|
155
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
156
|
+
<div class="dropdown-header" (click)="toggleDropdown('group')">
|
|
157
|
+
<input
|
|
158
|
+
type="text"
|
|
159
|
+
class="form-control dropdown-input cursor-pointer"
|
|
160
|
+
[value]="selectedGroupsLabel()" readonly
|
|
161
|
+
placeholder="Select clusters"
|
|
162
|
+
/>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'group'">
|
|
165
|
+
<input
|
|
166
|
+
type="text"
|
|
167
|
+
class="form-control mb-2 dropdown-search"
|
|
168
|
+
placeholder="Search clusters"
|
|
169
|
+
[(ngModel)]="searchGroupText"
|
|
170
|
+
(ngModelChange)="filterGroups()"
|
|
171
|
+
/>
|
|
172
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
173
|
+
<input
|
|
174
|
+
class="form-check-input cursor-pointer"
|
|
175
|
+
type="checkbox"
|
|
176
|
+
id="selectAllGroups"
|
|
177
|
+
[checked]="isAllGroupsSelected()"
|
|
178
|
+
(change)="toggleSelectAllGroups($event)"
|
|
179
|
+
/>
|
|
180
|
+
<label class="form-check-label" for="selectAllGroups">
|
|
181
|
+
Select All
|
|
182
|
+
</label>
|
|
183
|
+
</div>
|
|
184
|
+
<div
|
|
185
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
186
|
+
*ngFor="let group of filteredGroups"
|
|
187
|
+
>
|
|
188
|
+
<input
|
|
189
|
+
class="form-check-input cursor-pointer"
|
|
190
|
+
type="checkbox"
|
|
191
|
+
[id]="group.groupName"
|
|
192
|
+
[(ngModel)]="group.checked"
|
|
193
|
+
(change)="updateSelectedGroups()"
|
|
194
|
+
/>
|
|
195
|
+
<label class="form-check-label" [for]="group.groupName">
|
|
196
|
+
{{ group.groupName }}
|
|
197
|
+
</label>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
<!-- Store Dropdown -->
|
|
204
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
205
|
+
<div class="dropdown-header" (click)="toggleDropdown('store')">
|
|
206
|
+
<input
|
|
207
|
+
type="text"
|
|
208
|
+
class="form-control dropdown-input cursor-pointer"
|
|
209
|
+
[value]="selectedStoresLabel()"
|
|
210
|
+
readonly
|
|
211
|
+
placeholder="Select stores"
|
|
212
|
+
/>
|
|
213
|
+
</div>
|
|
214
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'store'">
|
|
215
|
+
<input
|
|
216
|
+
type="text"
|
|
217
|
+
class="form-control mb-2 dropdown-search "
|
|
218
|
+
placeholder="Search stores"
|
|
219
|
+
[(ngModel)]="searchStoreText"
|
|
220
|
+
(ngModelChange)="filterStores()"
|
|
221
|
+
/>
|
|
222
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
223
|
+
<input
|
|
224
|
+
class="form-check-input cursor-pointer"
|
|
225
|
+
type="checkbox"
|
|
226
|
+
id="selectAllStores"
|
|
227
|
+
[checked]="isAllStoresSelected()"
|
|
228
|
+
(change)="toggleSelectAllStores($event)"
|
|
229
|
+
/>
|
|
230
|
+
<label class="form-check-label" for="selectAllStores">
|
|
231
|
+
Select All
|
|
232
|
+
</label>
|
|
233
|
+
</div>
|
|
234
|
+
<div
|
|
235
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
236
|
+
*ngFor="let store of filteredStores"
|
|
237
|
+
>
|
|
238
|
+
<input
|
|
239
|
+
class="form-check-input"
|
|
240
|
+
type="checkbox"
|
|
241
|
+
[id]="store.storeId"
|
|
242
|
+
[(ngModel)]="store.checked"
|
|
243
|
+
(change)="updateSelectedStores()"
|
|
244
|
+
/>
|
|
245
|
+
<label class="form-check-label" [for]="store.storeId">
|
|
246
|
+
{{ store.storeName }}
|
|
247
|
+
</label>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|