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,91 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component } from '@angular/core';
|
|
2
|
+
import { AuthService } from '../../../../services/auth.service';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'lib-client-settings',
|
|
7
|
+
templateUrl: './client-settings.component.html',
|
|
8
|
+
styleUrl: './client-settings.component.scss'
|
|
9
|
+
})
|
|
10
|
+
export class ClientSettingsComponent {
|
|
11
|
+
|
|
12
|
+
clientList:any = []
|
|
13
|
+
selectedClient:any
|
|
14
|
+
selectedFilters: any = {
|
|
15
|
+
client: null,
|
|
16
|
+
clientName: null,
|
|
17
|
+
clients: [],
|
|
18
|
+
store: null,
|
|
19
|
+
stores: [],
|
|
20
|
+
date: null,
|
|
21
|
+
group: [],
|
|
22
|
+
location: [],
|
|
23
|
+
|
|
24
|
+
};
|
|
25
|
+
constructor(private auth:AuthService, private gs:GlobalStateService, private cd:ChangeDetectorRef){
|
|
26
|
+
this.auth.getClients().subscribe({
|
|
27
|
+
next: (e) => {
|
|
28
|
+
if (e) {
|
|
29
|
+
this.clientList = e.data.result;
|
|
30
|
+
const headerFilters: any = JSON.parse(
|
|
31
|
+
localStorage.getItem("header-filters") || "{}"
|
|
32
|
+
);
|
|
33
|
+
if (headerFilters.client) {
|
|
34
|
+
this.clientList.find((obj: any) => {
|
|
35
|
+
if (obj.clientId === headerFilters.client) {
|
|
36
|
+
this.selectedClient = obj;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
this.selectedFilters.client = headerFilters.client;
|
|
40
|
+
this.selectedFilters.clients = headerFilters.clients;
|
|
41
|
+
this.selectedFilters.clientName = headerFilters.clientName
|
|
42
|
+
this.selectedFilters.date = headerFilters.date;
|
|
43
|
+
this.selectedFilters.store = headerFilters.store;
|
|
44
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
45
|
+
} else {
|
|
46
|
+
this.selectedClient = this.clientList[0];
|
|
47
|
+
this.selectedFilters.client = this.selectedClient.clientId;
|
|
48
|
+
this.selectedFilters.clientName = this.selectedClient.clientName
|
|
49
|
+
this.selectedFilters.clients = headerFilters.clients;
|
|
50
|
+
this.selectedFilters.store = headerFilters.store;
|
|
51
|
+
this.selectedFilters.date = headerFilters.date;
|
|
52
|
+
localStorage.setItem(
|
|
53
|
+
"header-filters",
|
|
54
|
+
JSON.stringify(this.selectedFilters)
|
|
55
|
+
);
|
|
56
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
57
|
+
this.cd.detectChanges();
|
|
58
|
+
}
|
|
59
|
+
} else {
|
|
60
|
+
this.selectedClient = this.clientList[0];
|
|
61
|
+
this.selectedFilters.client = this.selectedClient.clientId;
|
|
62
|
+
this.selectedFilters.clientName = this.selectedClient.clientName
|
|
63
|
+
localStorage.setItem(
|
|
64
|
+
"header-filters",
|
|
65
|
+
JSON.stringify(this.selectedFilters)
|
|
66
|
+
);
|
|
67
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
68
|
+
this.cd.detectChanges();
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
onClientSelect(event:any){
|
|
75
|
+
this.selectedClient = event
|
|
76
|
+
const headerFilters: any = JSON.parse(
|
|
77
|
+
localStorage.getItem("header-filters") || "{}"
|
|
78
|
+
);
|
|
79
|
+
this.selectedFilters = headerFilters;
|
|
80
|
+
this.selectedFilters.client = this.selectedClient.clientId;
|
|
81
|
+
this.selectedFilters.clientName = this.selectedClient.clientName;
|
|
82
|
+
this.selectedFilters.stores =[];
|
|
83
|
+
this.selectedFilters.group= [];
|
|
84
|
+
this.selectedFilters.location= [];
|
|
85
|
+
localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
|
|
86
|
+
// this.gs.dataRangeValue.next(this.selectedFilters);
|
|
87
|
+
window.location.reload()
|
|
88
|
+
this.cd.detectChanges();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="wrapper mx-2" >
|
|
2
|
+
<lib-select [items]="clientList" [multi]="false" [searchField]="'clientName'" [disabled]="false" [idField]="'clientId'"
|
|
3
|
+
(selected)="onClientSelect($event)" [selectedValues]="[selectedClient]"></lib-select>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
</div>
|
|
7
|
+
<!-- <div class="d-flex align-items-center position-relative my-1">
|
|
8
|
+
<span class="svg-icon svg-icon-1 position-absolute ms-3">
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
10
|
+
<path
|
|
11
|
+
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"
|
|
12
|
+
stroke="#344054" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
|
|
13
|
+
</svg>
|
|
14
|
+
</span>
|
|
15
|
+
<input class="fx-date-range form-control ps-14" style="min-width: 260px !important;" type="text" matInput ngxDaterangepickerMd [drops]="'down'"
|
|
16
|
+
[opens]="'right'" [ranges]="ranges" [showCustomRangeLabel]="true" [alwaysShowCalendars]="false" [autoApply]="true"
|
|
17
|
+
[keepCalendarOpeningWithRange]="true" [showCancel]="true" autocomplete="off" [(ngModel)]="selectedDateRange" (startDateChanged)="onStartDateChange($event)" [isCustomDate]="isCustomDate"
|
|
18
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
19
|
+
(datesUpdated)="datechange($event)" name="daterange" [readonly]="true" />
|
|
20
|
+
</div> -->
|
|
21
|
+
|
|
22
|
+
<div class="btn btn-primary ms-2" (click)="Apply()">Apply</div>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
.daterangepicker {
|
|
2
|
+
display: block !important;
|
|
3
|
+
top: 153.85px !important;
|
|
4
|
+
left: 900px !important;
|
|
5
|
+
right: 0px;
|
|
6
|
+
}
|
|
7
|
+
.form-control {
|
|
8
|
+
color: var(--Gray-700, #344054) !important;
|
|
9
|
+
font-size: 14px !important;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
text-transform: capitalize;
|
|
13
|
+
}
|
|
14
|
+
::ng-deep .applyBtn {
|
|
15
|
+
display: none !important;
|
|
16
|
+
}
|
|
17
|
+
:host::ng-deep {
|
|
18
|
+
.md-drppicker .btn {
|
|
19
|
+
line-height: 10px !important;
|
|
20
|
+
}
|
|
21
|
+
.daterangepicker-input + .ngx-daterangepicker-material .applyBtn {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
.md-drppicker.drops-down-right.ltr.double.show-ranges.shown {
|
|
25
|
+
top: 65px !important;
|
|
26
|
+
left: -470px !important;
|
|
27
|
+
height: 365px !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.md-drppicker .btn {
|
|
31
|
+
border-radius: 8px !important;
|
|
32
|
+
border: 1px solid var(--Primary-600, #00A3FF) !important;
|
|
33
|
+
background: var(--Primary-600, #00A3FF) !important;
|
|
34
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
35
|
+
color: var(--White, #FFF) !important;
|
|
36
|
+
font-size: 14px !important;
|
|
37
|
+
font-weight: 600 !important;
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
text-transform: capitalize;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.md-drppicker .ranges ul li button {
|
|
43
|
+
padding: 12px 16px;
|
|
44
|
+
width: 160px;
|
|
45
|
+
color: var(--Gray-700, #344054);
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
line-height: 20px;
|
|
49
|
+
background: none;
|
|
50
|
+
border: none;
|
|
51
|
+
text-align: left;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
.md-drppicker td.active,
|
|
55
|
+
.md-drppicker td.active:hover {
|
|
56
|
+
background-color: #029cf4 !important;
|
|
57
|
+
border-radius: 20px !important;
|
|
58
|
+
color: var(--White, #FFF) !important;
|
|
59
|
+
text-align: center !important;
|
|
60
|
+
font-size: 14px !important;
|
|
61
|
+
font-weight: 500 !important;
|
|
62
|
+
line-height: 20px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.md-drppicker.ltr .ranges {
|
|
66
|
+
float: left;
|
|
67
|
+
margin-top: 10px !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.md-drppicker td.in-range {
|
|
71
|
+
background: var(--Primary-50, #EAF8FF);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.md-drppicker .ranges ul li button.active {
|
|
75
|
+
background: var(--Primary-50, #EAF8FF) !important;
|
|
76
|
+
border-radius: 8px !important;
|
|
77
|
+
color: var(--Primary-700, #009BF3);
|
|
78
|
+
font-size: 14px !important;
|
|
79
|
+
font-weight: 500 !important;
|
|
80
|
+
line-height: 20px !important;
|
|
81
|
+
}
|
|
82
|
+
table th,
|
|
83
|
+
table td {
|
|
84
|
+
width: 40px !important;
|
|
85
|
+
height: 40px !important;
|
|
86
|
+
padding: 10px 8px !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.md-drppicker td.available.prev,
|
|
90
|
+
.md-drppicker th.available.prev {
|
|
91
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K) !important;
|
|
92
|
+
background-repeat: no-repeat !important;
|
|
93
|
+
background-size: 0.5em !important;
|
|
94
|
+
background-position: center !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.md-drppicker td.available.next,
|
|
98
|
+
.md-drppicker th.available.next {
|
|
99
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K) !important;
|
|
100
|
+
background-repeat: no-repeat !important;
|
|
101
|
+
background-size: 0.5em !important;
|
|
102
|
+
background-position: center !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
table th {
|
|
106
|
+
border-bottom: 0px solid var(--Gray-200, #EAECF0) !important;
|
|
107
|
+
background: transparent !important;
|
|
108
|
+
color: var(--Gray-700, #344054) !important;
|
|
109
|
+
text-align: center;
|
|
110
|
+
font-size: 16px !important;
|
|
111
|
+
font-weight: 500 !important;
|
|
112
|
+
line-height: 24px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.md-drppicker td.available.invalid-date {
|
|
116
|
+
text-decoration: line-through;
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
color: darkgray;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.md-drppicker td.available.today:not(.invalid-date) {
|
|
122
|
+
text-decoration: unset;
|
|
123
|
+
pointer-events: unset;
|
|
124
|
+
color: unset;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.md-drppicker .btn.btn-default {
|
|
128
|
+
border-radius: 8px !important;
|
|
129
|
+
border: 1px solid var(--Gray-300, #D0D5DD) !important;
|
|
130
|
+
background: var(--White, #FFF) !important;
|
|
131
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
132
|
+
color: var(--Gray-700, #344054) !important;
|
|
133
|
+
font-size: 14px !important;
|
|
134
|
+
font-weight: 600 !important;
|
|
135
|
+
line-height: 20px;
|
|
136
|
+
text-transform: capitalize;
|
|
137
|
+
margin-right:10px !important;
|
|
138
|
+
}
|
|
139
|
+
.md-drppicker td.available.invalid-date {
|
|
140
|
+
text-decoration: line-through;
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
color: darkgray;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.md-drppicker td.available.today:not(.invalid-date) {
|
|
146
|
+
text-decoration: unset;
|
|
147
|
+
pointer-events: unset;
|
|
148
|
+
color: unset;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.wrapper {
|
|
152
|
+
min-width: 200px;
|
|
153
|
+
}
|
|
154
|
+
.btn-primary{
|
|
155
|
+
line-height: 18px !important;
|
|
156
|
+
}
|
package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DateSingleSelectComponent } from './date-single-select.component';
|
|
4
|
+
|
|
5
|
+
describe('DateSingleSelectComponent', () => {
|
|
6
|
+
let component: DateSingleSelectComponent;
|
|
7
|
+
let fixture: ComponentFixture<DateSingleSelectComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [DateSingleSelectComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(DateSingleSelectComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, OnInit } from "@angular/core";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import "dayjs/locale/en";
|
|
4
|
+
import { AuthService } from '../../../../services/auth.service';
|
|
5
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "lib-date-single-select",
|
|
8
|
+
templateUrl: "./date-single-select.component.html",
|
|
9
|
+
styleUrl: "./date-single-select.component.scss",
|
|
10
|
+
})
|
|
11
|
+
export class DateSingleSelectComponent implements OnInit {
|
|
12
|
+
dayjs = dayjs;
|
|
13
|
+
isCustomDate = (m: dayjs.Dayjs) => {
|
|
14
|
+
const isValidDate = m > this.dayjs();
|
|
15
|
+
return isValidDate ? 'invalid-date' : false;
|
|
16
|
+
}
|
|
17
|
+
selectedDateRange: any = {};
|
|
18
|
+
clientList: any = [];
|
|
19
|
+
selectedClient: any;
|
|
20
|
+
selectedFilters: any = {
|
|
21
|
+
client: null,
|
|
22
|
+
clientName: null,
|
|
23
|
+
clients: [],
|
|
24
|
+
store: null,
|
|
25
|
+
stores: [],
|
|
26
|
+
date: null,
|
|
27
|
+
group:[],
|
|
28
|
+
location:[]
|
|
29
|
+
};
|
|
30
|
+
dummyArray: any;
|
|
31
|
+
respnsearray: any=[];
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
private auth: AuthService,
|
|
35
|
+
private gs: GlobalStateService,
|
|
36
|
+
private cd: ChangeDetectorRef
|
|
37
|
+
) {
|
|
38
|
+
|
|
39
|
+
this.auth.getClients().subscribe({
|
|
40
|
+
next: (e) => {
|
|
41
|
+
if (e) {
|
|
42
|
+
this.clientList = e.data.result;
|
|
43
|
+
const allOption = {
|
|
44
|
+
_id: 'all',
|
|
45
|
+
clientName: 'All Clients',
|
|
46
|
+
clientId: ''
|
|
47
|
+
};
|
|
48
|
+
this.clientList.unshift(allOption); // Adds the "ALL" option at the beginning of the array
|
|
49
|
+
this.dummyArray = JSON.parse(JSON.stringify(this.clientList));
|
|
50
|
+
this.respnsearray = this.dummyArray.map(
|
|
51
|
+
(item: any) => item.clientId
|
|
52
|
+
);
|
|
53
|
+
const headerFilters: any = JSON.parse(
|
|
54
|
+
localStorage.getItem("header-filters") || "{}"
|
|
55
|
+
);
|
|
56
|
+
this.selectedDateRange = {
|
|
57
|
+
startDate: this.dayjs(headerFilters?.date?.startDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
58
|
+
endDate: this.dayjs(headerFilters?.date?.endDate, "DD-MM-YYYY").format("YYYY-MM-DD")
|
|
59
|
+
};
|
|
60
|
+
if (headerFilters.client) {
|
|
61
|
+
this.clientList.find((obj: any) => {
|
|
62
|
+
if (obj.clientId === headerFilters.client) {
|
|
63
|
+
this.selectedClient = obj;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
this.selectedFilters.client = headerFilters.client;
|
|
67
|
+
this.selectedFilters.clientName = headerFilters.clientName;
|
|
68
|
+
if(headerFilters.client ===''){
|
|
69
|
+
this.selectedFilters.clients = this.respnsearray;
|
|
70
|
+
} else {
|
|
71
|
+
this.selectedFilters.clients = [headerFilters.client];
|
|
72
|
+
}
|
|
73
|
+
this.selectedFilters.store = headerFilters.store;
|
|
74
|
+
this.selectedFilters.date = headerFilters.date;
|
|
75
|
+
|
|
76
|
+
this.selectedDateRange = {
|
|
77
|
+
startDate:this.dayjs( headerFilters.date.startDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
78
|
+
endDate: this.dayjs( headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
localStorage.setItem(
|
|
82
|
+
"header-filters",
|
|
83
|
+
JSON.stringify(this.selectedFilters)
|
|
84
|
+
);
|
|
85
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
86
|
+
this.cd.detectChanges();
|
|
87
|
+
} else if(headerFilters.client ===''){
|
|
88
|
+
this.selectedFilters.clients = this.respnsearray;
|
|
89
|
+
this.selectedClient = this.clientList[0];
|
|
90
|
+
this.selectedFilters.client = headerFilters.client;
|
|
91
|
+
this.selectedFilters.clientName = headerFilters.clientName;
|
|
92
|
+
this.selectedFilters.date = headerFilters.date;
|
|
93
|
+
this.selectedDateRange = {
|
|
94
|
+
startDate:this.dayjs(headerFilters.date.startDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
95
|
+
endDate: this.dayjs(headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
localStorage.setItem(
|
|
99
|
+
"header-filters",
|
|
100
|
+
JSON.stringify(this.selectedFilters)
|
|
101
|
+
);
|
|
102
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
103
|
+
this.cd.detectChanges();
|
|
104
|
+
} else {
|
|
105
|
+
this.dummyArray = JSON.parse(JSON.stringify(this.clientList));
|
|
106
|
+
this.respnsearray = this.dummyArray.map(
|
|
107
|
+
(item: any) => item.clientId
|
|
108
|
+
);
|
|
109
|
+
this.selectedClient = this.clientList[0];
|
|
110
|
+
this.selectedFilters.clients = this.respnsearray;
|
|
111
|
+
this.selectedFilters.client = this.selectedClient.clientId;
|
|
112
|
+
this.selectedFilters.clientName = this.selectedClient.clientName;
|
|
113
|
+
this.selectedDateRange = {
|
|
114
|
+
startDate: this.dayjs("2025-09-09").format("DD-MM-YYYY"),
|
|
115
|
+
endDate: this.dayjs("2025-09-09").format("DD-MM-YYYY"),
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
var datetime = {
|
|
119
|
+
startDate: this.dayjs("2025-09-09").format("YYYY-MM-DD"),
|
|
120
|
+
endDate: this.dayjs("2025-09-09").format("YYYY-MM-DD"),
|
|
121
|
+
};
|
|
122
|
+
// this.selectedDateRange = {
|
|
123
|
+
// startDate: this.dayjs().subtract(2, "days").format("DD-MM-YYYY"), // Yesterday
|
|
124
|
+
// endDate: this.dayjs().subtract(2, "days").format("DD-MM-YYYY"), // Yesterday
|
|
125
|
+
// };
|
|
126
|
+
|
|
127
|
+
// // Set datetime to yesterday's date as well
|
|
128
|
+
// var datetime = {
|
|
129
|
+
// startDate: this.dayjs().subtract(2, "days").format("YYYY-MM-DD"), // Yesterday
|
|
130
|
+
// endDate: this.dayjs().subtract(2, "days").format("YYYY-MM-DD"), // Yesterday
|
|
131
|
+
// };
|
|
132
|
+
this.selectedFilters.date = datetime;
|
|
133
|
+
localStorage.setItem(
|
|
134
|
+
"header-filters",
|
|
135
|
+
JSON.stringify(this.selectedFilters)
|
|
136
|
+
);
|
|
137
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
138
|
+
this.cd.detectChanges();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
ngOnInit(): void {}
|
|
145
|
+
onClientSelect(event: any) {
|
|
146
|
+
this.selectedClient = event;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
ranges: any = {
|
|
151
|
+
Today: [
|
|
152
|
+
this.dayjs(),
|
|
153
|
+
this.dayjs(),
|
|
154
|
+
],
|
|
155
|
+
Yesterday: [
|
|
156
|
+
this.dayjs().subtract(1, "days"),
|
|
157
|
+
this.dayjs().subtract(1, "days"),
|
|
158
|
+
],
|
|
159
|
+
"This Week": [this.dayjs().subtract(7, "days"), this.dayjs().subtract(1, "days")],
|
|
160
|
+
"Last Week": [
|
|
161
|
+
this.dayjs().subtract(14, "days").startOf("days"),
|
|
162
|
+
this.dayjs().subtract(8, "days").endOf("days"),
|
|
163
|
+
],
|
|
164
|
+
"This Month": [
|
|
165
|
+
this.dayjs().subtract(30, "days"), // Start date is 30 days before today
|
|
166
|
+
this.dayjs().subtract(1, "days") // End date is Yesterday
|
|
167
|
+
],
|
|
168
|
+
"Last Month": [
|
|
169
|
+
this.dayjs().subtract(1, "month").startOf("month"),
|
|
170
|
+
this.dayjs().subtract(1, "month").endOf("month"),
|
|
171
|
+
],
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
onStartDateChange(event: any) {
|
|
175
|
+
if(this.dayjs(event.startDate).isValid()){
|
|
176
|
+
this.isCustomDate = (m: dayjs.Dayjs) => {
|
|
177
|
+
const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, 'days')) ;
|
|
178
|
+
return isValidDate ? 'invalid-date' : false;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
datechange(event: any) {
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
if (event && event.startDate && event.endDate) {
|
|
187
|
+
if (
|
|
188
|
+
this.dayjs(event.startDate).isValid() &&
|
|
189
|
+
this.dayjs(event.endDate).isValid()
|
|
190
|
+
) {
|
|
191
|
+
this.selectedDateRange.startDate = event.startDate
|
|
192
|
+
this.selectedDateRange.endDate = event.endDate
|
|
193
|
+
var datetime = {
|
|
194
|
+
startDate: this.dayjs(event.startDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
195
|
+
endDate: this.dayjs(event.endDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
196
|
+
};
|
|
197
|
+
this.selectedFilters.date = datetime;
|
|
198
|
+
localStorage.setItem(
|
|
199
|
+
"header-filters",
|
|
200
|
+
JSON.stringify(this.selectedFilters)
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
}else {
|
|
204
|
+
const headerFilters: any = JSON.parse(
|
|
205
|
+
localStorage.getItem("header-filters") || "{}"
|
|
206
|
+
);
|
|
207
|
+
this.selectedDateRange.startDate = this.dayjs(headerFilters?.date?.startDate,"YYYY-MM-DD").format("DD-MM-YYYY");
|
|
208
|
+
this.selectedDateRange.endDate = this.dayjs(headerFilters?.date?.endDate,"YYYY-MM-DD").format("DD-MM-YYYY");
|
|
209
|
+
this.gs?.dataRangeValue?.next(headerFilters);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
Apply() {
|
|
215
|
+
const headerFilters: any = JSON.parse(
|
|
216
|
+
localStorage.getItem("header-filters") || "{}"
|
|
217
|
+
);
|
|
218
|
+
this.selectedFilters = headerFilters;
|
|
219
|
+
this.selectedFilters.client = this.selectedClient?.clientId;
|
|
220
|
+
this.selectedFilters.clientName = this.selectedClient.clientName
|
|
221
|
+
if(this.selectedClient.clientId ===''){
|
|
222
|
+
this.selectedFilters.clients = this.respnsearray;
|
|
223
|
+
} else {
|
|
224
|
+
this.selectedFilters.clients = [this.selectedClient.clientId];
|
|
225
|
+
}
|
|
226
|
+
this.selectedFilters.stores =[];
|
|
227
|
+
this.selectedFilters.group= [];
|
|
228
|
+
this.selectedFilters.location= [];
|
|
229
|
+
localStorage.setItem(
|
|
230
|
+
"header-filters",
|
|
231
|
+
JSON.stringify(this.selectedFilters)
|
|
232
|
+
);
|
|
233
|
+
// window.location.reload()
|
|
234
|
+
// this.gs.dataRangeValue.next(this.selectedFilters);
|
|
235
|
+
window.location.reload()
|
|
236
|
+
this.gs.manageRefreshTrigger.next(true)
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div style="display: none !important;" class="d-flex align-items-center position-relative my-1">
|
|
2
|
+
<span class="svg-icon svg-icon-1 position-absolute ms-3">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
4
|
+
<path
|
|
5
|
+
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"
|
|
6
|
+
stroke="#344054" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
|
|
7
|
+
</svg>
|
|
8
|
+
</span>
|
|
9
|
+
<input class="fx-date-range form-control ps-14" style="min-width: 260px !important;" type="text" matInput ngxDaterangepickerMd [drops]="'down'"
|
|
10
|
+
[opens]="'right'" [ranges]="ranges" [showCustomRangeLabel]="true" [alwaysShowCalendars]="false" [autoApply]="true"
|
|
11
|
+
[keepCalendarOpeningWithRange]="true" [showCancel]="true" autocomplete="off" [(ngModel)]="selectedDateRange" (startDateChanged)="onStartDateChange($event)" [isCustomDate]="isCustomDate"
|
|
12
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
13
|
+
(datesUpdated)="datechange($event)" name="daterange" [readonly]="true" />
|
|
14
|
+
</div>
|