tango-app-ui-shared 3.7.3-dev6-demo7 → 3.7.3-dev6-demo9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/guards/auth.guard.mjs +26 -0
- package/esm2022/lib/guards/lead.guard.mjs +16 -0
- package/esm2022/lib/guards/stores.guard.mjs +16 -0
- package/esm2022/lib/guards/tickets.guard.mjs +16 -0
- package/esm2022/lib/i18n/index.mjs +3 -0
- package/esm2022/lib/i18n/translation.module.mjs +17 -0
- package/esm2022/lib/i18n/translation.service.mjs +53 -0
- package/esm2022/lib/i18n/vocabs/ch.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/de.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/en.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/es.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/fr.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/jp.mjs +106 -0
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +124 -0
- package/esm2022/lib/interfaces/global-state.mjs +2 -0
- package/esm2022/lib/modules/common/common-shared.module.mjs +31 -0
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +155 -0
- package/esm2022/lib/modules/common/filters/filters.component.mjs +179 -0
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +49 -0
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +33 -0
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +44 -0
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +45 -0
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +48 -0
- package/esm2022/lib/modules/errors/errors.component.mjs +39 -0
- package/esm2022/lib/modules/errors/errors.module.mjs +37 -0
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +44 -0
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +19 -0
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +24 -0
- package/esm2022/lib/modules/intro/intro.module.mjs +32 -0
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +110 -0
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +31 -0
- package/esm2022/lib/modules/layout/content/content.component.mjs +107 -0
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +17 -0
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +41 -0
- package/esm2022/lib/modules/layout/header/header.component.mjs +100 -0
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +256 -0
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +79 -0
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +56 -0
- package/esm2022/lib/modules/layout/keenicon/icons.json +1 -0
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +37 -0
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +314 -0
- package/esm2022/lib/modules/layout/layout.module.mjs +198 -0
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +74 -0
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +74 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +159 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +45 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +122 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +134 -0
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +16 -0
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +331 -0
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +88 -0
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +207 -0
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +158 -0
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +15 -0
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +1321 -0
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +216 -0
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +178 -0
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +166 -0
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +105 -0
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +372 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +1062 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +795 -0
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +880 -0
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +729 -0
- package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +1090 -0
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +22 -0
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +317 -0
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +28 -0
- package/esm2022/lib/modules/notification/notification.module.mjs +32 -0
- package/esm2022/lib/pipes/customDate.pipe.mjs +22 -0
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/routing.mjs +53 -0
- package/esm2022/lib/services/auth.service.mjs +141 -0
- package/esm2022/lib/services/notification.service.mjs +74 -0
- package/esm2022/lib/services/toast.service.mjs +83 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/tango-app-ui-shared.mjs +5 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +188 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +400 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared.mjs +12440 -0
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/guards/auth.guard.d.ts +10 -0
- package/lib/guards/lead.guard.d.ts +2 -0
- package/lib/guards/stores.guard.d.ts +2 -0
- package/lib/guards/tickets.guard.d.ts +2 -0
- package/{src/lib/i18n/index.ts → lib/i18n/index.d.ts} +2 -2
- package/lib/i18n/translation.module.d.ts +8 -0
- package/lib/i18n/translation.service.d.ts +19 -0
- package/lib/i18n/vocabs/ch.d.ts +104 -0
- package/lib/i18n/vocabs/de.d.ts +104 -0
- package/lib/i18n/vocabs/en.d.ts +104 -0
- package/lib/i18n/vocabs/es.d.ts +104 -0
- package/lib/i18n/vocabs/fr.d.ts +104 -0
- package/lib/i18n/vocabs/jp.d.ts +104 -0
- package/lib/interceptors/http-auth-interceptor.d.ts +19 -0
- package/lib/interfaces/global-state.d.ts +5 -0
- package/lib/modules/common/common-shared.module.d.ts +13 -0
- package/lib/modules/common/custom-select/custom-select.component.d.ts +33 -0
- package/lib/modules/common/filters/filters.component.d.ts +38 -0
- package/lib/modules/common/pagination/pagination.component.d.ts +18 -0
- package/lib/modules/errors/error403/error403.component.d.ts +14 -0
- package/lib/modules/errors/error404/error404.component.d.ts +15 -0
- package/lib/modules/errors/error500/error500.component.d.ts +15 -0
- package/lib/modules/errors/errors-routing.module.d.ts +7 -0
- package/lib/modules/errors/errors.component.d.ts +13 -0
- package/lib/modules/errors/errors.module.d.ts +13 -0
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +17 -0
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +9 -0
- package/lib/modules/intro/intro-routing.module.d.ts +7 -0
- package/lib/modules/intro/intro.module.d.ts +11 -0
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +31 -0
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +13 -0
- package/lib/modules/layout/content/content.component.d.ts +25 -0
- package/lib/modules/layout/footer/footer.component.d.ts +8 -0
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +18 -0
- package/lib/modules/layout/header/header.component.d.ts +30 -0
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +45 -0
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +25 -0
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +23 -0
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +13 -0
- package/lib/modules/layout/layout/layout.component.d.ts +82 -0
- package/lib/modules/layout/layout.module.d.ts +50 -0
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +19 -0
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +45 -0
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +26 -0
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +36 -0
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +48 -0
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +16 -0
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +103 -0
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +32 -0
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +33 -0
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +34 -0
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +24 -0
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +57 -0
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +93 -0
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +80 -0
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +83 -0
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +74 -0
- package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +97 -0
- package/lib/modules/notification/conformation/conformation.component.d.ts +10 -0
- package/lib/modules/notification/notification/notification.component.d.ts +63 -0
- package/lib/modules/notification/notification-routing.module.d.ts +7 -0
- package/lib/modules/notification/notification.module.d.ts +11 -0
- package/lib/pipes/customDate.pipe.d.ts +7 -0
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +7 -0
- package/lib/routes/routing.d.ts +3 -0
- package/lib/services/auth.service.d.ts +49 -0
- package/lib/services/notification.service.d.ts +30 -0
- package/lib/services/toast.service.d.ts +10 -0
- package/package.json +25 -12
- package/{src/public-api.ts → public-api.d.ts} +44 -71
- package/.eslintrc.json +0 -37
- package/ng-package.json +0 -7
- package/src/lib/guards/auth.guard.ts +0 -20
- package/src/lib/guards/lead.guard.ts +0 -16
- package/src/lib/guards/stores.guard.ts +0 -16
- package/src/lib/guards/tickets.guard.ts +0 -16
- package/src/lib/i18n/translation.module.ts +0 -9
- package/src/lib/i18n/translation.service.ts +0 -61
- package/src/lib/i18n/vocabs/ch.ts +0 -105
- package/src/lib/i18n/vocabs/de.ts +0 -105
- package/src/lib/i18n/vocabs/en.ts +0 -105
- package/src/lib/i18n/vocabs/es.ts +0 -105
- package/src/lib/i18n/vocabs/fr.ts +0 -105
- package/src/lib/i18n/vocabs/jp.ts +0 -105
- package/src/lib/interceptors/http-auth-interceptor.ts +0 -225
- package/src/lib/interfaces/global-state.ts +0 -6
- package/src/lib/modules/common/common-shared.module.ts +0 -20
- package/src/lib/modules/common/custom-select/custom-select.component.html +0 -42
- package/src/lib/modules/common/custom-select/custom-select.component.scss +0 -131
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +0 -23
- package/src/lib/modules/common/custom-select/custom-select.component.ts +0 -149
- package/src/lib/modules/common/filters/filters.component.html +0 -76
- package/src/lib/modules/common/filters/filters.component.scss +0 -131
- package/src/lib/modules/common/filters/filters.component.spec.ts +0 -23
- package/src/lib/modules/common/filters/filters.component.ts +0 -181
- package/src/lib/modules/common/pagination/pagination.component.html +0 -26
- package/src/lib/modules/common/pagination/pagination.component.scss +0 -63
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +0 -23
- package/src/lib/modules/common/pagination/pagination.component.ts +0 -46
- package/src/lib/modules/errors/error403/error403.component.html +0 -25
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +0 -23
- package/src/lib/modules/errors/error403/error403.component.ts +0 -28
- package/src/lib/modules/errors/error404/error404.component.html +0 -24
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +0 -25
- package/src/lib/modules/errors/error404/error404.component.ts +0 -50
- package/src/lib/modules/errors/error500/error500.component.html +0 -24
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +0 -25
- package/src/lib/modules/errors/error500/error500.component.ts +0 -50
- package/src/lib/modules/errors/errors-routing.module.ts +0 -40
- package/src/lib/modules/errors/errors.component.html +0 -15
- package/src/lib/modules/errors/errors.component.scss +0 -4
- package/src/lib/modules/errors/errors.component.spec.ts +0 -25
- package/src/lib/modules/errors/errors.component.ts +0 -42
- package/src/lib/modules/errors/errors.module.ts +0 -25
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +0 -16
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +0 -23
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +0 -43
- package/src/lib/modules/intro/contact-support/contact-support.component.html +0 -30
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +0 -60
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +0 -23
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +0 -17
- package/src/lib/modules/intro/intro-routing.module.ts +0 -16
- package/src/lib/modules/intro/intro.module.ts +0 -21
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +0 -325
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +0 -185
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +0 -23
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +0 -120
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +0 -44
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +0 -28
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +0 -23
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +0 -24
- package/src/lib/modules/layout/content/content.component.html +0 -12
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +0 -102
- package/src/lib/modules/layout/footer/footer.component.html +0 -29
- package/src/lib/modules/layout/footer/footer.component.scss +0 -7
- package/src/lib/modules/layout/footer/footer.component.spec.ts +0 -25
- package/src/lib/modules/layout/footer/footer.component.ts +0 -13
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +0 -27
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +0 -4
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +0 -38
- package/src/lib/modules/layout/header/header.component.html +0 -90
- package/src/lib/modules/layout/header/header.component.scss +0 -7
- package/src/lib/modules/layout/header/header.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header.component.ts +0 -139
- package/src/lib/modules/layout/header/navbar/navbar.component.html +0 -156
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -223
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +0 -23
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +0 -255
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +0 -200
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +0 -139
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +0 -76
- package/src/lib/modules/layout/header/page-title/page-title.component.html +0 -32
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +0 -11
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +0 -47
- package/src/lib/modules/layout/keenicon/icons.json +0 -1
- package/src/lib/modules/layout/keenicon/keenicon.component.html +0 -4
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +0 -23
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +0 -30
- package/src/lib/modules/layout/layout/layout.component.html +0 -71
- package/src/lib/modules/layout/layout/layout.component.scss +0 -23
- package/src/lib/modules/layout/layout/layout.component.ts +0 -425
- package/src/lib/modules/layout/layout.module.ts +0 -129
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +0 -81
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +0 -1
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +0 -75
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +0 -70
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -57
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +0 -136
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +0 -26
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +0 -36
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +0 -761
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -38
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +0 -130
- package/src/lib/modules/layout/sidebar/sidebar.component.html +0 -16
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -3
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +0 -203
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +0 -84
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +0 -69
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -238
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +0 -389
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +0 -4
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +0 -3
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +0 -91
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +0 -22
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +0 -156
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +0 -238
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +0 -14
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +0 -149
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +0 -183
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +0 -100
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +0 -12
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +0 -1555
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +0 -62
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +0 -77
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +0 -26
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +0 -235
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +0 -39
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +0 -188
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +0 -17
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +0 -172
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +0 -179
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +0 -4
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +0 -19
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +0 -105
- package/src/lib/modules/layout/toolbar/toolbar.component.html +0 -64
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +0 -25
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +0 -400
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +0 -1202
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +0 -199
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +0 -899
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +0 -204
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +0 -1045
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +0 -190
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +0 -825
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +0 -1242
- package/src/lib/modules/notification/conformation/conformation.component.html +0 -25
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +0 -23
- package/src/lib/modules/notification/conformation/conformation.component.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.html +0 -209
- package/src/lib/modules/notification/notification/notification.component.scss +0 -211
- package/src/lib/modules/notification/notification/notification.component.spec.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.ts +0 -310
- package/src/lib/modules/notification/notification-routing.module.ts +0 -20
- package/src/lib/modules/notification/notification.module.ts +0 -21
- package/src/lib/pipes/customDate.pipe.ts +0 -18
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +0 -10
- package/src/lib/routes/routing.ts +0 -56
- package/src/lib/services/auth.service.ts +0 -178
- package/src/lib/services/notification.service.spec.ts +0 -16
- package/src/lib/services/notification.service.ts +0 -73
- package/src/lib/services/toast.service.ts +0 -82
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,172 +0,0 @@
|
|
|
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
|
-
.md-drppicker .btn {
|
|
30
|
-
border-radius: 8px !important;
|
|
31
|
-
border: 1px solid var(--Primary-600, #00A3FF) !important;
|
|
32
|
-
background: var(--Primary-600, #00A3FF) !important;
|
|
33
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
34
|
-
color: var(--White, #FFF) !important;
|
|
35
|
-
font-size: 14px !important;
|
|
36
|
-
font-weight: 600 !important;
|
|
37
|
-
line-height: 20px;
|
|
38
|
-
text-transform: capitalize;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.md-drppicker .ranges ul li button {
|
|
42
|
-
padding: 12px 16px;
|
|
43
|
-
width: 160px;
|
|
44
|
-
color: var(--Gray-700, #344054);
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
font-weight: 400;
|
|
47
|
-
line-height: 20px;
|
|
48
|
-
background: none;
|
|
49
|
-
border: none;
|
|
50
|
-
text-align: left;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
.md-drppicker td.active,
|
|
54
|
-
.md-drppicker td.active:hover {
|
|
55
|
-
background-color: #029cf4 !important;
|
|
56
|
-
border-radius: 20px !important;
|
|
57
|
-
color: var(--White, #FFF) !important;
|
|
58
|
-
text-align: center !important;
|
|
59
|
-
font-size: 14px !important;
|
|
60
|
-
font-weight: 500 !important;
|
|
61
|
-
line-height: 20px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.md-drppicker.ltr .ranges {
|
|
65
|
-
float: left;
|
|
66
|
-
margin-top: 10px !important;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.md-drppicker td.in-range {
|
|
70
|
-
background: var(--Primary-50, #EAF8FF);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.md-drppicker .ranges ul li button.active {
|
|
74
|
-
background: var(--Primary-50, #EAF8FF) !important;
|
|
75
|
-
border-radius: 8px !important;
|
|
76
|
-
color: var(--Primary-700, #009BF3);
|
|
77
|
-
font-size: 14px !important;
|
|
78
|
-
font-weight: 500 !important;
|
|
79
|
-
line-height: 20px !important;
|
|
80
|
-
}
|
|
81
|
-
table th,
|
|
82
|
-
table td {
|
|
83
|
-
width: 40px !important;
|
|
84
|
-
height: 40px !important;
|
|
85
|
-
padding: 10px 8px !important;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.md-drppicker td.available.prev,
|
|
89
|
-
.md-drppicker th.available.prev {
|
|
90
|
-
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K) !important;
|
|
91
|
-
background-repeat: no-repeat !important;
|
|
92
|
-
background-size: 0.5em !important;
|
|
93
|
-
background-position: center !important;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.md-drppicker td.available.next,
|
|
97
|
-
.md-drppicker th.available.next {
|
|
98
|
-
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K) !important;
|
|
99
|
-
background-repeat: no-repeat !important;
|
|
100
|
-
background-size: 0.5em !important;
|
|
101
|
-
background-position: center !important;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
table th {
|
|
105
|
-
border-bottom: 0px solid var(--Gray-200, #EAECF0) !important;
|
|
106
|
-
background: transparent !important;
|
|
107
|
-
color: var(--Gray-700, #344054) !important;
|
|
108
|
-
text-align: center;
|
|
109
|
-
font-size: 16px !important;
|
|
110
|
-
font-weight: 500 !important;
|
|
111
|
-
line-height: 24px;
|
|
112
|
-
}
|
|
113
|
-
.md-drppicker td.available.invalid-date {
|
|
114
|
-
text-decoration: line-through;
|
|
115
|
-
pointer-events: none;
|
|
116
|
-
color: darkgray;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.md-drppicker td.available.today:not(.invalid-date) {
|
|
120
|
-
text-decoration: unset;
|
|
121
|
-
pointer-events: unset;
|
|
122
|
-
color: unset;
|
|
123
|
-
}
|
|
124
|
-
// .md-drppicker td.available.invalid-date {
|
|
125
|
-
// text-decoration: line-through;
|
|
126
|
-
// pointer-events: none;
|
|
127
|
-
// color: darkgray;
|
|
128
|
-
// }
|
|
129
|
-
|
|
130
|
-
// .md-drppicker td.available.today {
|
|
131
|
-
// /* Styles for today if it's valid */
|
|
132
|
-
// text-decoration: unset; /* No line-through */
|
|
133
|
-
// pointer-events: auto; /* Enable pointer events */
|
|
134
|
-
// color: unset; /* Default color */
|
|
135
|
-
// }
|
|
136
|
-
|
|
137
|
-
// .md-drppicker td.available.today.invalid-date {
|
|
138
|
-
// /* Styles for today if it's invalid */
|
|
139
|
-
// text-decoration: line-through; /* Line-through to indicate invalid */
|
|
140
|
-
// pointer-events: none; /* Disable interaction */
|
|
141
|
-
// color: darkgray; /* Gray color to indicate invalid */
|
|
142
|
-
// }
|
|
143
|
-
.md-drppicker .btn.btn-default {
|
|
144
|
-
border-radius: 8px !important;
|
|
145
|
-
border: 1px solid var(--Gray-300, #D0D5DD) !important;
|
|
146
|
-
background: var(--White, #FFF) !important;
|
|
147
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
148
|
-
color: var(--Gray-700, #344054) !important;
|
|
149
|
-
font-size: 14px !important;
|
|
150
|
-
font-weight: 600 !important;
|
|
151
|
-
line-height: 20px;
|
|
152
|
-
text-transform: capitalize;
|
|
153
|
-
margin-right:10px !important;
|
|
154
|
-
}
|
|
155
|
-
.md-drppicker td.available.invalid-date {
|
|
156
|
-
text-decoration: line-through;
|
|
157
|
-
pointer-events: none;
|
|
158
|
-
color: darkgray;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.md-drppicker td.available.today:not(.invalid-date) {
|
|
162
|
-
text-decoration: unset;
|
|
163
|
-
pointer-events: unset;
|
|
164
|
-
color: unset;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
.wrapper {
|
|
168
|
-
min-width: 200px;
|
|
169
|
-
}
|
|
170
|
-
.btn-primary{
|
|
171
|
-
line-height: 18px !important;
|
|
172
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SingleStoredateComponent } from './single-storedate.component';
|
|
4
|
-
|
|
5
|
-
describe('SingleStoredateComponent', () => {
|
|
6
|
-
let component: SingleStoredateComponent;
|
|
7
|
-
let fixture: ComponentFixture<SingleStoredateComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [SingleStoredateComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(SingleStoredateComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, Input, OnChanges, OnInit, SimpleChanges } 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
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'lib-single-storedate',
|
|
10
|
-
templateUrl: './single-storedate.component.html',
|
|
11
|
-
styleUrl: './single-storedate.component.scss'
|
|
12
|
-
})
|
|
13
|
-
export class SingleStoredateComponent implements OnInit {
|
|
14
|
-
dayjs = dayjs
|
|
15
|
-
isCustomDate = (m: dayjs.Dayjs) => {
|
|
16
|
-
const isValidDate = m > this.dayjs();
|
|
17
|
-
return isValidDate ? 'invalid-date' : false;
|
|
18
|
-
}
|
|
19
|
-
selectedDateRange: any = {};
|
|
20
|
-
storeList:any = []
|
|
21
|
-
selectedClient:any
|
|
22
|
-
selectedFilters: any = {
|
|
23
|
-
client: null,
|
|
24
|
-
clientName:null,
|
|
25
|
-
clients: [],
|
|
26
|
-
store: null,
|
|
27
|
-
stores: [],
|
|
28
|
-
date: null,
|
|
29
|
-
};
|
|
30
|
-
URL: any;
|
|
31
|
-
baseurl:any;
|
|
32
|
-
users:any;
|
|
33
|
-
headerFilters:any;
|
|
34
|
-
dataUser:any;
|
|
35
|
-
constructor(private auth:AuthService, private gs:GlobalStateService, private cd:ChangeDetectorRef,private router:Router,private activatedRoute:ActivatedRoute){
|
|
36
|
-
}
|
|
37
|
-
ngOnInit(): void {
|
|
38
|
-
this.activatedRoute?.queryParams.subscribe(params => {
|
|
39
|
-
this.dataUser = params;
|
|
40
|
-
|
|
41
|
-
// Re-check date after params load
|
|
42
|
-
this.initializeFilters();
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
if ("user-info" in localStorage) {
|
|
46
|
-
const userData: any = JSON.parse(localStorage.getItem("user-info") || "{}");
|
|
47
|
-
this.users = userData;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
initializeFilters(): void {
|
|
52
|
-
const clientFromRoute = this.dataUser?.client;
|
|
53
|
-
const clientFromHeader = localStorage.getItem("header-filters")
|
|
54
|
-
? JSON.parse(localStorage.getItem("header-filters") || "{}").client
|
|
55
|
-
: null;
|
|
56
|
-
const clientFromUser = this.users?.clientId;
|
|
57
|
-
|
|
58
|
-
const headerFilters: any = localStorage.getItem("header-filters")
|
|
59
|
-
? JSON.parse(localStorage.getItem("header-filters") || "{}")
|
|
60
|
-
: {};
|
|
61
|
-
|
|
62
|
-
this.headerFilters = headerFilters;
|
|
63
|
-
|
|
64
|
-
// Determine final client ID
|
|
65
|
-
const finalClient = clientFromRoute ?? clientFromHeader ?? clientFromUser;
|
|
66
|
-
|
|
67
|
-
this.selectedFilters.client = finalClient;
|
|
68
|
-
this.selectedFilters.clients = finalClient ? [finalClient] : [];
|
|
69
|
-
this.selectedFilters.clientName = headerFilters.clientName || "";
|
|
70
|
-
this.selectedFilters.store = this.dataUser?.storeId ?? headerFilters.store ?? "";
|
|
71
|
-
this.selectedFilters.storeName = headerFilters.storeName || "";
|
|
72
|
-
this.selectedFilters.group = headerFilters.group;
|
|
73
|
-
this.selectedFilters.location = headerFilters.location;
|
|
74
|
-
this.selectedFilters.country = headerFilters.country;
|
|
75
|
-
this.selectedFilters.stores = headerFilters.stores ?? "";
|
|
76
|
-
this.selectedFilters.zoneName = headerFilters.zoneName ?? "";
|
|
77
|
-
// ✅ Handle query param date if present
|
|
78
|
-
if (this.dataUser?.date) {
|
|
79
|
-
const date = this.dataUser.date;
|
|
80
|
-
|
|
81
|
-
this.selectedFilters.date = {
|
|
82
|
-
startDate: date,
|
|
83
|
-
endDate: date,
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
this.selectedDateRange = {
|
|
87
|
-
startDate: this.dayjs(date, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
88
|
-
endDate: this.dayjs(date, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
} else if (headerFilters?.date?.startDate && headerFilters?.date?.endDate) {
|
|
92
|
-
this.selectedFilters.date = headerFilters.date;
|
|
93
|
-
this.selectedDateRange = {
|
|
94
|
-
startDate: this.dayjs(headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
95
|
-
endDate: this.dayjs(headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
} else {
|
|
99
|
-
// Default to yesterday
|
|
100
|
-
const yesterday = this.dayjs().subtract(1, "days");
|
|
101
|
-
const formattedDate = {
|
|
102
|
-
startDate: yesterday.format("YYYY-MM-DD"),
|
|
103
|
-
endDate: yesterday.format("YYYY-MM-DD"),
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
this.selectedFilters.date = formattedDate;
|
|
107
|
-
this.selectedDateRange = {
|
|
108
|
-
startDate: yesterday.format("DD-MM-YYYY"),
|
|
109
|
-
endDate: yesterday.format("DD-MM-YYYY"),
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Save only if valid
|
|
114
|
-
if (finalClient && this.selectedFilters.date?.startDate && this.selectedFilters.store) {
|
|
115
|
-
localStorage.setItem("header-filters", JSON.stringify(this.selectedFilters));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
onClientSelect(event:any){
|
|
123
|
-
this.selectedClient = event
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
onStartDateChange(event:any){
|
|
128
|
-
if(this.dayjs(event.startDate).isValid()){
|
|
129
|
-
this.isCustomDate = (m: dayjs.Dayjs) => {
|
|
130
|
-
const isValidDate = m > this.dayjs() || m > this.dayjs(event.startDate.add(90, 'days')) ;
|
|
131
|
-
return isValidDate ? 'invalid-date' : false;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
datechange(event: any) {
|
|
136
|
-
if (event && event.startDate && event.endDate) {
|
|
137
|
-
if (
|
|
138
|
-
this.dayjs(event.startDate).isValid() &&
|
|
139
|
-
this.dayjs(event.endDate).isValid()
|
|
140
|
-
) {
|
|
141
|
-
this.selectedDateRange.startDate = event.endDate
|
|
142
|
-
this.selectedDateRange.endDate = event.endDate
|
|
143
|
-
var datetime = {
|
|
144
|
-
startDate: this.dayjs(event.endDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
145
|
-
endDate: this.dayjs(event.endDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
146
|
-
};
|
|
147
|
-
this.selectedFilters.date = datetime;
|
|
148
|
-
}
|
|
149
|
-
} else {
|
|
150
|
-
const headerFilters: any = JSON.parse(
|
|
151
|
-
localStorage.getItem("header-filters") || "{}"
|
|
152
|
-
);
|
|
153
|
-
this.selectedFilters.date = headerFilters.date;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const clientId = this.users?.clientId ?? this.dataUser?.client ?? this.selectedFilters.client;
|
|
157
|
-
this.selectedFilters.client = clientId;
|
|
158
|
-
this.selectedFilters.clients = clientId ? [clientId] : [this.selectedFilters.client];
|
|
159
|
-
this.selectedFilters.date = this.selectedFilters.date;
|
|
160
|
-
this.selectedFilters.storeName = this.selectedFilters.storeName || '';
|
|
161
|
-
|
|
162
|
-
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
163
|
-
localStorage.setItem(
|
|
164
|
-
"header-filters",
|
|
165
|
-
JSON.stringify(this.selectedFilters)
|
|
166
|
-
);
|
|
167
|
-
this.cd.detectChanges();
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
Apply() {
|
|
171
|
-
const headerFilters: any = JSON.parse(
|
|
172
|
-
localStorage.getItem("header-filters") || "{}"
|
|
173
|
-
);
|
|
174
|
-
this.selectedFilters = headerFilters;
|
|
175
|
-
this.selectedFilters.store = this.selectedClient.storeId;
|
|
176
|
-
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
177
|
-
localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
|
|
178
|
-
}
|
|
179
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
.wrapper {
|
|
15
|
-
min-width: 200px;
|
|
16
|
-
}
|
|
17
|
-
.btn-primary{
|
|
18
|
-
line-height: 18px !important;
|
|
19
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { StoresingleComponent } from './storesingle.component';
|
|
4
|
-
|
|
5
|
-
describe('StoresingleComponent', () => {
|
|
6
|
-
let component: StoresingleComponent;
|
|
7
|
-
let fixture: ComponentFixture<StoresingleComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [StoresingleComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(StoresingleComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, Input, OnChanges, OnInit, SimpleChanges } 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
|
-
import { Router } from '@angular/router';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'lib-storesingle',
|
|
10
|
-
templateUrl: './storesingle.component.html',
|
|
11
|
-
styleUrl: './storesingle.component.scss'
|
|
12
|
-
})
|
|
13
|
-
export class StoresingleComponent implements OnInit {
|
|
14
|
-
dayjs = dayjs
|
|
15
|
-
isCustomDate = (m: dayjs.Dayjs) => {
|
|
16
|
-
const isValidDate = m > this.dayjs();
|
|
17
|
-
return isValidDate ? 'invalid-date' : false;
|
|
18
|
-
}
|
|
19
|
-
selectedDateRange: any = {};
|
|
20
|
-
storeList:any = []
|
|
21
|
-
selectedClient:any
|
|
22
|
-
selectedFilters: any = {
|
|
23
|
-
client: null,
|
|
24
|
-
clientName:null,
|
|
25
|
-
clients: [],
|
|
26
|
-
store: null,
|
|
27
|
-
stores: [],
|
|
28
|
-
date: null,
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
constructor(private auth:AuthService, private gs:GlobalStateService, private cd:ChangeDetectorRef,private router:Router){
|
|
32
|
-
}
|
|
33
|
-
ngOnInit(): void {
|
|
34
|
-
const headerFilters: any = JSON.parse(
|
|
35
|
-
localStorage.getItem("header-filters") || "{}"
|
|
36
|
-
);
|
|
37
|
-
this.cd.detectChanges();
|
|
38
|
-
if(headerFilters?.client){
|
|
39
|
-
this.auth.getStores(headerFilters?.client).subscribe({
|
|
40
|
-
next: (e) => {
|
|
41
|
-
if (e) {
|
|
42
|
-
this.storeList = e.data.result;
|
|
43
|
-
const headerFilters: any = JSON.parse(
|
|
44
|
-
localStorage.getItem("header-filters") || "{}"
|
|
45
|
-
);
|
|
46
|
-
this.selectedDateRange = {
|
|
47
|
-
startDate: this.dayjs(headerFilters?.date?.startDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
48
|
-
endDate: this.dayjs(headerFilters?.date?.endDate, "DD-MM-YYYY").format("YYYY-MM-DD")
|
|
49
|
-
};
|
|
50
|
-
if (headerFilters?.store) {
|
|
51
|
-
this.storeList.find((obj: any) => {
|
|
52
|
-
if (obj.storeId === headerFilters.store) {
|
|
53
|
-
this.selectedClient = obj;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
this.selectedFilters.store = headerFilters.store;
|
|
57
|
-
this.selectedFilters.client = headerFilters.client;
|
|
58
|
-
this.selectedFilters.clientName = headerFilters.clientName;
|
|
59
|
-
this.selectedFilters.clients = headerFilters.clients;
|
|
60
|
-
this.selectedFilters.date = headerFilters.date;
|
|
61
|
-
this.selectedDateRange = {
|
|
62
|
-
startDate:this.dayjs( headerFilters.date.startDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
63
|
-
endDate: this.dayjs( headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
localStorage.setItem(
|
|
67
|
-
"header-filters",
|
|
68
|
-
JSON.stringify(this.selectedFilters)
|
|
69
|
-
);
|
|
70
|
-
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
71
|
-
this.cd.detectChanges();
|
|
72
|
-
} else {
|
|
73
|
-
this.selectedClient = this.storeList[0];
|
|
74
|
-
this.selectedFilters.store = this.selectedClient.storeId;
|
|
75
|
-
this.selectedFilters.client = headerFilters.client;
|
|
76
|
-
this.selectedFilters.clientName = headerFilters.clientName;
|
|
77
|
-
this.selectedFilters.clients = headerFilters.clients;
|
|
78
|
-
this.selectedDateRange = {
|
|
79
|
-
startDate: this.dayjs().format("DD-MM-YYYY"),
|
|
80
|
-
endDate: this.dayjs().format("DD-MM-YYYY"),
|
|
81
|
-
};
|
|
82
|
-
var datetime = {
|
|
83
|
-
startDate: this.dayjs().format("YYYY-MM-DD"),
|
|
84
|
-
endDate: this.dayjs().format("YYYY-MM-DD"),
|
|
85
|
-
};
|
|
86
|
-
this.selectedFilters.date = datetime;
|
|
87
|
-
localStorage.setItem(
|
|
88
|
-
"header-filters",
|
|
89
|
-
JSON.stringify(this.selectedFilters)
|
|
90
|
-
);
|
|
91
|
-
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
92
|
-
this.cd.detectChanges();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
onClientSelect(event:any){
|
|
100
|
-
this.selectedClient = event
|
|
101
|
-
this.selectedFilters.store = this.selectedClient.storeId;
|
|
102
|
-
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
103
|
-
localStorage.setItem('header-filters', JSON.stringify(this.selectedFilters));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<!--begin::Toolbar container-->
|
|
2
|
-
<div id="kt_app_toolbar_container" class="app-container" [ngClass]="appToolbarContainerCSSClass">
|
|
3
|
-
<ng-container *ngIf="(gs.userAccess | async)?.userType === 'tango' || (gs.userAccess | async)?.userType === 'client' || (gs.userAccess | async)?.userType === 'lead'" >
|
|
4
|
-
<ng-container *ngIf="showPageTitle()">
|
|
5
|
-
<lib-page-title [appPageTitleDirection]="appPageTitleDirection" [appPageTitleBreadcrumb]="appPageTitleBreadcrumb"
|
|
6
|
-
[appPageTitleDescription]="appPageTitleDescription" class="page-title d-flex flex-wrap me-3"
|
|
7
|
-
[ngClass]="{'flex-column justify-content-center': appPageTitleDirection === 'column', 'align-items-center': appPageTitleDirection !== 'column', appPageTitleCSSClass}">
|
|
8
|
-
</lib-page-title>
|
|
9
|
-
</ng-container>
|
|
10
|
-
|
|
11
|
-
<ng-container *ngIf="multiSelect && users.userType ==='tango'">
|
|
12
|
-
<lib-classic class="d-flex align-items-center gap-2 gap-lg-3"></lib-classic>
|
|
13
|
-
</ng-container>
|
|
14
|
-
<ng-container *ngIf="singleSelect && users.userType ==='tango'">
|
|
15
|
-
<lib-client-settings class="d-flex align-items-center me-5"></lib-client-settings>
|
|
16
|
-
</ng-container>
|
|
17
|
-
<ng-container *ngIf="datepicker && (users.userType ==='client' || users.userType ==='tango')">
|
|
18
|
-
<lib-datepicker class="d-flex align-items-center me-5"></lib-datepicker>
|
|
19
|
-
</ng-container>
|
|
20
|
-
<ng-container *ngIf="singleSelectdatepicker && users.userType ==='tango'">
|
|
21
|
-
<lib-date-single-select class="d-flex align-items-center me-5"></lib-date-single-select>
|
|
22
|
-
</ng-container>
|
|
23
|
-
<ng-container *ngIf="singleStore">
|
|
24
|
-
<lib-single-store class="d-flex align-items-center me-5" [urlString]="urlString"></lib-single-store>
|
|
25
|
-
</ng-container>
|
|
26
|
-
<ng-container *ngIf="trafficdatepicker">
|
|
27
|
-
<lib-traffic-header class="d-flex align-items-center me-5"></lib-traffic-header>
|
|
28
|
-
</ng-container>
|
|
29
|
-
<ng-container *ngIf="traxdatepicker">
|
|
30
|
-
<lib-trax-header class="d-flex align-items-center me-5"></lib-trax-header>
|
|
31
|
-
</ng-container>
|
|
32
|
-
<ng-container *ngIf="traxwithoutdatepicker">
|
|
33
|
-
<lib-trax-withoutdate class="d-flex align-items-center me-5"></lib-trax-withoutdate>
|
|
34
|
-
</ng-container>
|
|
35
|
-
<ng-container *ngIf="storesSingle">
|
|
36
|
-
<lib-single-storedate class="d-flex align-items-center me-5"></lib-single-storedate>
|
|
37
|
-
</ng-container>
|
|
38
|
-
<ng-container *ngIf="nobWithoutClient">
|
|
39
|
-
<lib-traffic-nob class="d-flex align-items-center me-5"></lib-traffic-nob>
|
|
40
|
-
</ng-container>
|
|
41
|
-
<ng-container *ngIf="merticsHeader">
|
|
42
|
-
<lib-metrics-header class="d-flex align-items-center me-5"></lib-metrics-header>
|
|
43
|
-
</ng-container>
|
|
44
|
-
|
|
45
|
-
<ng-container *ngIf="singleClientStoreDate">
|
|
46
|
-
<lib-single-clientstore-date class="d-flex align-items-center me-5"></lib-single-clientstore-date>
|
|
47
|
-
</ng-container>
|
|
48
|
-
|
|
49
|
-
<ng-container *ngIf="zoneHeader">
|
|
50
|
-
<lib-zone-header class="d-flex align-items-center me-5"></lib-zone-header>
|
|
51
|
-
</ng-container>
|
|
52
|
-
<!-- <ng-container *ngIf="appToolbarLayout === 'extended'">
|
|
53
|
-
<lib-extended class="d-flex align-items-center flex-shrink-0 me-5"></lib-extended>
|
|
54
|
-
</ng-container>
|
|
55
|
-
<ng-container *ngIf="appToolbarLayout === 'reports'">
|
|
56
|
-
<lib-reports class="d-flex align-items-center overflow-auto" [appPageTitleDisplay]="appPageTitleDisplay">
|
|
57
|
-
</lib-reports>
|
|
58
|
-
</ng-container>
|
|
59
|
-
<ng-container *ngIf="appToolbarLayout === 'saas'">
|
|
60
|
-
<lib-saas class="d-flex align-items-center gap-2" [appPageTitleDisplay]="appPageTitleDisplay"></lib-saas>
|
|
61
|
-
</ng-container> -->
|
|
62
|
-
</ng-container>
|
|
63
|
-
</div>
|
|
64
|
-
<!--end::Toolbar container-->
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ToolbarComponent } from './toolbar.component';
|
|
4
|
-
|
|
5
|
-
describe('ToolbarComponent', () => {
|
|
6
|
-
let component: ToolbarComponent;
|
|
7
|
-
let fixture: ComponentFixture<ToolbarComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ ToolbarComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(ToolbarComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|