tango-app-ui-shared 3.7.3-dev6-copilot → 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 -195
- 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 -119
- 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 -201
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +0 -150
- 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 -176
- 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 -354
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +0 -1061
- 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/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/eyetest-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 -58
- 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-eyetest-wrapper.module-CfO814JB.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-eyetest-wrapper.module-CfO814JB.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 -11322
- 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 -49
- 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 -56
- 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/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/eyetest-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,238 @@
|
|
|
1
|
+
.dropdown1 {
|
|
2
|
+
.dropdown-title {
|
|
3
|
+
color: var(--Gray-900, #101828);
|
|
4
|
+
font-size: 16px;
|
|
5
|
+
font-weight: 600;
|
|
6
|
+
line-height: 24px
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.dropdown {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
|
|
13
|
+
span {
|
|
14
|
+
color: var(--Gray-700, #344054);
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
line-height: 20px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dropdown-content {
|
|
22
|
+
z-index: 1;
|
|
23
|
+
padding: 0px;
|
|
24
|
+
background-color: white;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
27
|
+
min-height: auto;
|
|
28
|
+
max-height: 250px;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
|
|
31
|
+
label {
|
|
32
|
+
color: var(--Gray-700, #344054);
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
line-height: 20px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dropdown-content a {
|
|
40
|
+
color: black;
|
|
41
|
+
padding: 12px 16px;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dropdown button {
|
|
47
|
+
padding: 10px;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
input[type='checkbox'] {
|
|
53
|
+
width: 16px !important;
|
|
54
|
+
height: 16px !important;
|
|
55
|
+
margin: -3px 5px;
|
|
56
|
+
border-radius: 4px !important;
|
|
57
|
+
-webkit-appearance: none;
|
|
58
|
+
-moz-appearance: none;
|
|
59
|
+
-o-appearance: none;
|
|
60
|
+
appearance: none;
|
|
61
|
+
outline: 1px solid var(--gray-300, #D0D5DD);
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
font-size: 0.8em;
|
|
64
|
+
text-align: center;
|
|
65
|
+
line-height: 1em;
|
|
66
|
+
background: white;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
input[type='checkbox']:checked {
|
|
70
|
+
outline: 1px solid var(--primary-600, #00A3FF);
|
|
71
|
+
background-color: var(--primary-50, #EAF8FF);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input[type='checkbox']:checked:after {
|
|
75
|
+
content: '';
|
|
76
|
+
transform: rotate(45deg);
|
|
77
|
+
border-bottom: 2px solid #00A3FF;
|
|
78
|
+
border-right: 2px solid #00A3FF;
|
|
79
|
+
display: inline-block;
|
|
80
|
+
width: 0.2em;
|
|
81
|
+
padding-left: 0px;
|
|
82
|
+
padding-top: 9px;
|
|
83
|
+
padding-right: 4px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.daterangepicker {
|
|
88
|
+
display: block !important;
|
|
89
|
+
top: 153.85px !important;
|
|
90
|
+
left: 900px !important;
|
|
91
|
+
right: 0px;
|
|
92
|
+
}
|
|
93
|
+
.form-control {
|
|
94
|
+
color: var(--Gray-700, #344054) !important;
|
|
95
|
+
font-size: 14px !important;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
line-height: 20px;
|
|
98
|
+
text-transform: capitalize;
|
|
99
|
+
}
|
|
100
|
+
::ng-deep .applyBtn {
|
|
101
|
+
display: none !important;
|
|
102
|
+
}
|
|
103
|
+
:host::ng-deep {
|
|
104
|
+
.md-drppicker .btn {
|
|
105
|
+
line-height: 10px !important;
|
|
106
|
+
}
|
|
107
|
+
.daterangepicker-input + .ngx-daterangepicker-material .applyBtn {
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
.md-drppicker.drops-down-right.ltr.double.show-ranges.shown {
|
|
111
|
+
top: 65px !important;
|
|
112
|
+
left: -470px !important;
|
|
113
|
+
height: 400px !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.md-drppicker .btn {
|
|
117
|
+
border-radius: 8px !important;
|
|
118
|
+
border: 1px solid var(--Primary-600, #00A3FF) !important;
|
|
119
|
+
background: var(--Primary-600, #00A3FF) !important;
|
|
120
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
121
|
+
color: var(--White, #FFF) !important;
|
|
122
|
+
font-size: 14px !important;
|
|
123
|
+
font-weight: 600 !important;
|
|
124
|
+
line-height: 20px;
|
|
125
|
+
text-transform: capitalize;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.md-drppicker .ranges ul li button {
|
|
129
|
+
padding: 12px 16px;
|
|
130
|
+
width: 160px;
|
|
131
|
+
color: var(--Gray-700, #344054);
|
|
132
|
+
font-size: 14px;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
line-height: 20px;
|
|
135
|
+
background: none;
|
|
136
|
+
border: none;
|
|
137
|
+
text-align: left;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
140
|
+
.md-drppicker td.active,
|
|
141
|
+
.md-drppicker td.active:hover {
|
|
142
|
+
background-color: #029cf4 !important;
|
|
143
|
+
border-radius: 20px !important;
|
|
144
|
+
color: var(--White, #FFF) !important;
|
|
145
|
+
text-align: center !important;
|
|
146
|
+
font-size: 14px !important;
|
|
147
|
+
font-weight: 500 !important;
|
|
148
|
+
line-height: 20px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.md-drppicker.ltr .ranges {
|
|
152
|
+
float: left;
|
|
153
|
+
margin-top: 10px !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.md-drppicker td.in-range {
|
|
157
|
+
background: var(--Primary-50, #EAF8FF);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.md-drppicker .ranges ul li button.active {
|
|
161
|
+
background: var(--Primary-50, #EAF8FF) !important;
|
|
162
|
+
border-radius: 8px !important;
|
|
163
|
+
color: var(--Primary-700, #009BF3);
|
|
164
|
+
font-size: 14px !important;
|
|
165
|
+
font-weight: 500 !important;
|
|
166
|
+
line-height: 20px !important;
|
|
167
|
+
}
|
|
168
|
+
table th,
|
|
169
|
+
table td {
|
|
170
|
+
width: 40px !important;
|
|
171
|
+
height: 40px !important;
|
|
172
|
+
padding: 10px 8px !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.md-drppicker td.available.prev,
|
|
176
|
+
.md-drppicker th.available.prev {
|
|
177
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K) !important;
|
|
178
|
+
background-repeat: no-repeat !important;
|
|
179
|
+
background-size: 0.5em !important;
|
|
180
|
+
background-position: center !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.md-drppicker td.available.next,
|
|
184
|
+
.md-drppicker th.available.next {
|
|
185
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMy43IDYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDMuNyA2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGQ9Ik0zLjcsMC43TDEuNCwzbDIuMywyLjNMMyw2TDAsM2wzLTNMMy43LDAuN3oiLz4NCjwvZz4NCjwvc3ZnPg0K) !important;
|
|
186
|
+
background-repeat: no-repeat !important;
|
|
187
|
+
background-size: 0.5em !important;
|
|
188
|
+
background-position: center !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
table th {
|
|
192
|
+
border-bottom: 0px solid var(--Gray-200, #EAECF0) !important;
|
|
193
|
+
background: transparent !important;
|
|
194
|
+
color: var(--Gray-700, #344054) !important;
|
|
195
|
+
text-align: center;
|
|
196
|
+
font-size: 16px !important;
|
|
197
|
+
font-weight: 500 !important;
|
|
198
|
+
line-height: 24px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.md-drppicker td.available.invalid-date {
|
|
202
|
+
text-decoration: line-through;
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
color: darkgray;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.md-drppicker td.available.today:not(.invalid-date) {
|
|
208
|
+
text-decoration: unset;
|
|
209
|
+
pointer-events: unset;
|
|
210
|
+
color: unset;
|
|
211
|
+
}
|
|
212
|
+
.md-drppicker .btn.btn-default {
|
|
213
|
+
border-radius: 8px !important;
|
|
214
|
+
border: 1px solid var(--Gray-300, #D0D5DD) !important;
|
|
215
|
+
background: var(--White, #FFF) !important;
|
|
216
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
217
|
+
color: var(--Gray-700, #344054) !important;
|
|
218
|
+
font-size: 14px !important;
|
|
219
|
+
font-weight: 600 !important;
|
|
220
|
+
line-height: 20px;
|
|
221
|
+
text-transform: capitalize;
|
|
222
|
+
margin-right:10px !important;
|
|
223
|
+
}
|
|
224
|
+
.md-drppicker td.available.invalid-date {
|
|
225
|
+
text-decoration: line-through;
|
|
226
|
+
pointer-events: none;
|
|
227
|
+
color: darkgray;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.md-drppicker td.available.today:not(.invalid-date) {
|
|
231
|
+
text-decoration: unset;
|
|
232
|
+
pointer-events: unset;
|
|
233
|
+
color: unset;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
.btn-primary{
|
|
237
|
+
line-height: 18px !important;
|
|
238
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ClassicComponent } from './classic.component';
|
|
4
|
+
|
|
5
|
+
describe('ClassicComponent', () => {
|
|
6
|
+
let component: ClassicComponent;
|
|
7
|
+
let fixture: ComponentFixture<ClassicComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ClassicComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ClassicComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
HostListener,
|
|
5
|
+
Input,
|
|
6
|
+
OnDestroy,
|
|
7
|
+
OnInit,
|
|
8
|
+
} from "@angular/core";
|
|
9
|
+
|
|
10
|
+
import { Subscription } from "rxjs";
|
|
11
|
+
import { LayoutService } from "tango-app-ui-global";
|
|
12
|
+
import dayjs from "dayjs";
|
|
13
|
+
import "dayjs/locale/en";
|
|
14
|
+
import utc from "dayjs/plugin/utc";
|
|
15
|
+
import timezone from "dayjs/plugin/timezone";
|
|
16
|
+
import { AuthService } from '../../../../services/auth.service';
|
|
17
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
18
|
+
|
|
19
|
+
dayjs.extend(utc);
|
|
20
|
+
dayjs.extend(timezone);
|
|
21
|
+
@Component({
|
|
22
|
+
selector: "lib-classic",
|
|
23
|
+
templateUrl: "./classic.component.html",
|
|
24
|
+
styleUrls: ["./classic.component.scss"],
|
|
25
|
+
})
|
|
26
|
+
export class ClassicComponent implements OnInit, OnDestroy {
|
|
27
|
+
dayjs = dayjs
|
|
28
|
+
private unsubscribe: Subscription[] = [];
|
|
29
|
+
|
|
30
|
+
dataObject: any = [{ Description: "Clients", Issues: [] }];
|
|
31
|
+
|
|
32
|
+
isCustomDate = (m: dayjs.Dayjs) => {
|
|
33
|
+
const isValidDate = m > this.dayjs();
|
|
34
|
+
return isValidDate ? 'invalid-date' : false;
|
|
35
|
+
}
|
|
36
|
+
dummyArray: any = [];
|
|
37
|
+
noFilter: boolean = false;
|
|
38
|
+
searchValue: any;
|
|
39
|
+
responseArray: any = [];
|
|
40
|
+
getClientList: any = [];
|
|
41
|
+
constructor(
|
|
42
|
+
private layout: LayoutService,
|
|
43
|
+
private globalService: GlobalStateService,
|
|
44
|
+
private service: AuthService,
|
|
45
|
+
private cd: ChangeDetectorRef
|
|
46
|
+
) {}
|
|
47
|
+
|
|
48
|
+
ngOnDestroy() {
|
|
49
|
+
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
50
|
+
}
|
|
51
|
+
// @Input() dataObject: any[] = [];
|
|
52
|
+
Opendropdown: boolean = false;
|
|
53
|
+
|
|
54
|
+
permission = [
|
|
55
|
+
{
|
|
56
|
+
group: "Super Admin",
|
|
57
|
+
description: "Lorem ipsum dolor sit amet, consectetur ",
|
|
58
|
+
},
|
|
59
|
+
{ group: "Admin", description: "Lorem ipsum dolor sit amet, consectetur " },
|
|
60
|
+
{ group: "User", description: "Lorem ipsum dolor sit amet, consectetur " },
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
showdropdown: any;
|
|
64
|
+
selectedValues: string[] = [];
|
|
65
|
+
selectedValuesArray: any[] = [];
|
|
66
|
+
selectedDateRange: any = {};
|
|
67
|
+
selectedFilters: any = {
|
|
68
|
+
client: null,
|
|
69
|
+
clients: [],
|
|
70
|
+
store: null,
|
|
71
|
+
stores: [],
|
|
72
|
+
date: null,
|
|
73
|
+
};
|
|
74
|
+
ngOnInit(): void {
|
|
75
|
+
this.service.getClients().subscribe({
|
|
76
|
+
next: (res: any) => {
|
|
77
|
+
|
|
78
|
+
this.getClientList = res?.data?.result;
|
|
79
|
+
if ("header-filters" in localStorage) {
|
|
80
|
+
const headerFilters: any = JSON.parse(
|
|
81
|
+
localStorage.getItem("header-filters") || "{}"
|
|
82
|
+
);
|
|
83
|
+
if(headerFilters.clients.length >0 && headerFilters.date?.startDate){
|
|
84
|
+
this.dataObject[0].Issues = this.getClientList;
|
|
85
|
+
this.toggleCheckbox("Select All", 0);
|
|
86
|
+
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
87
|
+
this.responseArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
88
|
+
const currentIssues = this.dummyArray[0].Issues.map(
|
|
89
|
+
(item: any) => item.clientId
|
|
90
|
+
);
|
|
91
|
+
this.selectedFilters.clients = currentIssues;
|
|
92
|
+
this.selectedFilters.client = headerFilters.client;
|
|
93
|
+
this.selectedFilters.store = headerFilters.store;
|
|
94
|
+
this.selectedFilters.date = headerFilters.date;
|
|
95
|
+
|
|
96
|
+
this.selectedDateRange = {
|
|
97
|
+
startDate:this.dayjs( headerFilters.date.startDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
98
|
+
endDate: this.dayjs( headerFilters.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
localStorage.setItem(
|
|
102
|
+
"header-filters",
|
|
103
|
+
JSON.stringify(this.selectedFilters)
|
|
104
|
+
);
|
|
105
|
+
this.globalService.dataRangeValue.next(this.selectedFilters);
|
|
106
|
+
// this.cd.detectChanges();
|
|
107
|
+
}else {
|
|
108
|
+
this.dataObject[0].Issues = this.getClientList;
|
|
109
|
+
this.toggleCheckbox("Select All", 0);
|
|
110
|
+
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
111
|
+
this.responseArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
112
|
+
const currentIssues = this.dummyArray[0].Issues.map(
|
|
113
|
+
(item: any) => item.clientId
|
|
114
|
+
);
|
|
115
|
+
this.selectedFilters.clients = currentIssues;
|
|
116
|
+
this.selectedFilters.client = headerFilters.client;
|
|
117
|
+
this.selectedFilters.store = headerFilters.store;
|
|
118
|
+
this.selectedDateRange = {
|
|
119
|
+
startDate: this.dayjs().format("DD-MM-YYYY"),
|
|
120
|
+
endDate: this.dayjs().format("DD-MM-YYYY"),
|
|
121
|
+
};
|
|
122
|
+
var datetime = {
|
|
123
|
+
startDate: this.dayjs().format("YYYY-MM-DD"),
|
|
124
|
+
endDate: this.dayjs().format("YYYY-MM-DD"),
|
|
125
|
+
};
|
|
126
|
+
this.selectedFilters.date = datetime;
|
|
127
|
+
localStorage.setItem(
|
|
128
|
+
"header-filters",
|
|
129
|
+
JSON.stringify(this.selectedFilters)
|
|
130
|
+
);
|
|
131
|
+
this.globalService.dataRangeValue.next(this.selectedFilters);
|
|
132
|
+
}
|
|
133
|
+
} else {
|
|
134
|
+
|
|
135
|
+
this.dataObject[0].Issues = this.getClientList;
|
|
136
|
+
this.toggleCheckbox("Select All", 0);
|
|
137
|
+
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
138
|
+
this.responseArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
139
|
+
const currentIssues = this.dummyArray[0].Issues.map(
|
|
140
|
+
(item: any) => item.clientId
|
|
141
|
+
);
|
|
142
|
+
this.selectedFilters.clients = currentIssues;
|
|
143
|
+
this.selectedFilters.client = currentIssues[0];
|
|
144
|
+
this.selectedDateRange = {
|
|
145
|
+
startDate: this.dayjs().format("DD-MM-YYYY"),
|
|
146
|
+
endDate: this.dayjs().format("DD-MM-YYYY"),
|
|
147
|
+
};
|
|
148
|
+
var datetime = {
|
|
149
|
+
startDate: this.dayjs().format("YYYY-MM-DD"),
|
|
150
|
+
endDate: this.dayjs().format("YYYY-MM-DD"),
|
|
151
|
+
};
|
|
152
|
+
this.selectedFilters.date = datetime;
|
|
153
|
+
localStorage.setItem(
|
|
154
|
+
"header-filters",
|
|
155
|
+
JSON.stringify(this.selectedFilters)
|
|
156
|
+
);
|
|
157
|
+
this.globalService.dataRangeValue.next(this.selectedFilters);
|
|
158
|
+
this.cd.detectChanges();
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
const subscr = this.layout.layoutConfigSubject
|
|
163
|
+
.asObservable()
|
|
164
|
+
.subscribe(() => {
|
|
165
|
+
});
|
|
166
|
+
this.unsubscribe.push(subscr);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
getclients(){
|
|
170
|
+
this.service.getClients().subscribe({
|
|
171
|
+
next: (res: any) => {
|
|
172
|
+
this.getClientList = res?.data?.result;
|
|
173
|
+
this.toggleCheckbox("Select All", 0);
|
|
174
|
+
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
175
|
+
this.responseArray = JSON.parse(JSON.stringify(this.dataObject));
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
}
|
|
179
|
+
@HostListener("document:click", ["$event"])
|
|
180
|
+
onClick(event: MouseEvent) {
|
|
181
|
+
const target = event.target as HTMLElement;
|
|
182
|
+
if (!target.closest(".dropdown1")) {
|
|
183
|
+
this.Opendropdown = false;
|
|
184
|
+
}
|
|
185
|
+
if (!target.closest(".dropdown-content")) {
|
|
186
|
+
this.dataObject.forEach((item: any, i: any) => {
|
|
187
|
+
item.isOpen = false;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
opendropdown(e: MouseEvent) {
|
|
193
|
+
e.stopPropagation();
|
|
194
|
+
this.Opendropdown = !this.Opendropdown;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
Dropdown(value: any, index: number, event: MouseEvent) {
|
|
198
|
+
event.stopPropagation();
|
|
199
|
+
this.dataObject.forEach((item: any, i: any) => {
|
|
200
|
+
if (i !== index) {
|
|
201
|
+
item.isOpen = false;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
this.dataObject[index].isOpen = !this.dataObject[index].isOpen;
|
|
205
|
+
|
|
206
|
+
// if (this.dataObject[index].isOpen) {
|
|
207
|
+
// document.addEventListener('click', this.clickOutsideDropdownContent.bind(this, index));
|
|
208
|
+
// } else {
|
|
209
|
+
// document.removeEventListener('click', this.clickOutsideDropdownContent.bind(this, index));
|
|
210
|
+
// }
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// clickOutsideDropdownContent(index: number, event: Event) {
|
|
214
|
+
// if (!this.elementRef.nativeElement.contains(event.target as Node)) {
|
|
215
|
+
// this.dataObject[index].isOpen = false;
|
|
216
|
+
// document.removeEventListener('click', this.clickOutsideDropdownContent.bind(this, index));
|
|
217
|
+
// }
|
|
218
|
+
// }
|
|
219
|
+
searchData(event: any, i: any) {
|
|
220
|
+
const filteredIssues = this.dummyArray[i].Issues.filter((item: any) =>
|
|
221
|
+
new RegExp(event.target.value, "i").test(item.clientName) || this.selectedValuesArray[i].includes(item.clientName)
|
|
222
|
+
);
|
|
223
|
+
this.dataObject[i].Issues = filteredIssues;
|
|
224
|
+
if (filteredIssues.length) {
|
|
225
|
+
this.noFilter = false;
|
|
226
|
+
} else {
|
|
227
|
+
this.noFilter = true;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
toggleCheckbox(issue: string, index: number) {
|
|
231
|
+
const currentIssues = this.dataObject[index].Issues;
|
|
232
|
+
this.selectedValuesArray[index] = this.selectedValuesArray[index] || [];
|
|
233
|
+
const selectedValues = this.selectedValuesArray[index]; // Retrieve selected values array for the current dropdown index
|
|
234
|
+
|
|
235
|
+
if (issue === "Select All") {
|
|
236
|
+
const currentIssues = this.dataObject[index].Issues.map(
|
|
237
|
+
(item: any) => item.clientId
|
|
238
|
+
);
|
|
239
|
+
if (selectedValues.length === currentIssues.length) {
|
|
240
|
+
// If all items are already selected, deselect all
|
|
241
|
+
this.selectedValuesArray[index] = [];
|
|
242
|
+
} else {
|
|
243
|
+
// Otherwise, select all items
|
|
244
|
+
this.selectedValuesArray[index] = [...currentIssues];
|
|
245
|
+
}
|
|
246
|
+
this.cd.detectChanges();
|
|
247
|
+
} else {
|
|
248
|
+
if (selectedValues.includes(issue)) {
|
|
249
|
+
this.selectedValuesArray[index] = selectedValues.filter(
|
|
250
|
+
(item: any) => item !== issue
|
|
251
|
+
); // Deselect the individual item if already selected
|
|
252
|
+
} else {
|
|
253
|
+
this.selectedValuesArray[index].push(issue); // Select the individual item if not already selected
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Update "Select All" checkbox status based on selected values
|
|
258
|
+
const selectAllId = `selectall${index}`;
|
|
259
|
+
const selectAllElement = document.getElementById(
|
|
260
|
+
selectAllId
|
|
261
|
+
) as HTMLInputElement;
|
|
262
|
+
if (selectAllElement) {
|
|
263
|
+
selectAllElement.checked
|
|
264
|
+
//= selectedValues.length === currentIssues.length;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// Update checkboxes based on selected values
|
|
268
|
+
currentIssues.forEach((item: string) => {
|
|
269
|
+
const isChecked = this.selectedValuesArray[index].includes(item);
|
|
270
|
+
const checkboxId = `option${item}`;
|
|
271
|
+
const checkboxElement = document.getElementById(
|
|
272
|
+
checkboxId
|
|
273
|
+
) as HTMLInputElement;
|
|
274
|
+
if (checkboxElement) {
|
|
275
|
+
checkboxElement.checked = isChecked;
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
Reset() {
|
|
281
|
+
this.selectedValuesArray = [];
|
|
282
|
+
this.Opendropdown = false;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
Apply() {
|
|
286
|
+
|
|
287
|
+
var selectedValue: any = [];
|
|
288
|
+
for (let i = 0; i < this.selectedValuesArray.length; i++) {
|
|
289
|
+
const selectedValues = this.selectedValuesArray[i];
|
|
290
|
+
const issues = this.dummyArray[i].Issues; // const issues = this.dataObject[i].Issues;
|
|
291
|
+
|
|
292
|
+
if (selectedValues) {
|
|
293
|
+
this.selectedValuesArray[i] = selectedValues.map((selectedId: any) => {
|
|
294
|
+
const issue = issues.find(
|
|
295
|
+
(issueItem: any) => issueItem.clientId === selectedId
|
|
296
|
+
);
|
|
297
|
+
selectedValue.push(issue);
|
|
298
|
+
return issue ? issue : ""; // Get the text corresponding to the id
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
this.Opendropdown = false;
|
|
305
|
+
this.selectedValuesArray.forEach((item: any, index: any) => {
|
|
306
|
+
item = item.map((ele: any) => ele.clientId);
|
|
307
|
+
this.selectedValuesArray[index] = item;
|
|
308
|
+
});
|
|
309
|
+
this.responseArray.forEach((item: any, index: any) => {
|
|
310
|
+
item.Issues = this.selectedValuesArray[index]
|
|
311
|
+
? this.selectedValuesArray[index]
|
|
312
|
+
: [];
|
|
313
|
+
});
|
|
314
|
+
this.selectedFilters.clients = this.responseArray[0].Issues;
|
|
315
|
+
this.globalService.dataRangeValue.next(this.selectedFilters);
|
|
316
|
+
this.cd.detectChanges();
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
ranges: any = {
|
|
320
|
+
"Today": [this.dayjs(), this.dayjs()],
|
|
321
|
+
"Yesterday": [this.dayjs().subtract(1, "days"), this.dayjs().subtract(1, "days")],
|
|
322
|
+
"This Week": [this.dayjs().subtract(6, "days"), dayjs()],
|
|
323
|
+
"Last Week": [
|
|
324
|
+
this.dayjs().subtract(14, "days").startOf("days"),
|
|
325
|
+
this.dayjs().subtract(8, "days").endOf("days"),
|
|
326
|
+
],
|
|
327
|
+
"This Month": [this.dayjs().startOf("month"), this.dayjs().endOf("month")],
|
|
328
|
+
"Last Month": [
|
|
329
|
+
this.dayjs().subtract(1, "month").startOf("month"),
|
|
330
|
+
this.dayjs().subtract(1, "month").endOf("month"),
|
|
331
|
+
],
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
onStartDateChange(event: any) {
|
|
335
|
+
if (this.dayjs(event.startDate).isValid()) {
|
|
336
|
+
this.isCustomDate = (m: dayjs.Dayjs) => {
|
|
337
|
+
const isValidDate =
|
|
338
|
+
m > this.dayjs() || m > this.dayjs(event.startDate.add(90, "days"));
|
|
339
|
+
return isValidDate ? "invalid-date" : false;
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
datechange(event: any) {
|
|
345
|
+
|
|
346
|
+
if (event && event.startDate && event.endDate) {
|
|
347
|
+
if (
|
|
348
|
+
this.dayjs(event.startDate).isValid() &&
|
|
349
|
+
this.dayjs(event.endDate).isValid()
|
|
350
|
+
) {
|
|
351
|
+
this.selectedDateRange.startDate = event.startDate
|
|
352
|
+
this.selectedDateRange.endDate = event.endDate
|
|
353
|
+
var datetime = {
|
|
354
|
+
startDate: this.dayjs(event.startDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
355
|
+
endDate: this.dayjs(event.endDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
356
|
+
};
|
|
357
|
+
this.selectedFilters.date = datetime;
|
|
358
|
+
}
|
|
359
|
+
localStorage.setItem(
|
|
360
|
+
"header-filters",
|
|
361
|
+
JSON.stringify(this.selectedFilters)
|
|
362
|
+
);
|
|
363
|
+
} else {
|
|
364
|
+
const headerFilters: any = JSON.parse(
|
|
365
|
+
localStorage.getItem("header-filters") || "{}"
|
|
366
|
+
);
|
|
367
|
+
this.selectedDateRange.startDate = this.dayjs(headerFilters.date?.startDate,"YYYY-MM-DD").format("DD-MM-YYYY");
|
|
368
|
+
this.selectedDateRange.endDate = this.dayjs(headerFilters.date?.endDate,"YYYY-MM-DD").format("DD-MM-YYYY");
|
|
369
|
+
this.globalService.dataRangeValue.next(headerFilters);
|
|
370
|
+
}
|
|
371
|
+
// else {
|
|
372
|
+
// const headerFilters: any = JSON.parse(
|
|
373
|
+
// localStorage.getItem("header-filters") || "{}"
|
|
374
|
+
// );
|
|
375
|
+
// this.selectedFilters.date = headerFilters.date;
|
|
376
|
+
// if(headerFilters.date?.startDate&&headerFilters.date?.endDate){
|
|
377
|
+
// this.selectedDateRange = headerFilters.date;
|
|
378
|
+
|
|
379
|
+
// }else{
|
|
380
|
+
// this.selectedDateRange = {
|
|
381
|
+
// startDate: dayjs().format("YYYY-MM-DD"),
|
|
382
|
+
// endDate: dayjs().format("YYYY-MM-DD")
|
|
383
|
+
// }
|
|
384
|
+
|
|
385
|
+
// }
|
|
386
|
+
// }
|
|
387
|
+
// this.selectedFilters.date = this.selectedDateRange;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ClientSettingsComponent } from './client-settings.component';
|
|
4
|
+
|
|
5
|
+
describe('ClientSettingsComponent', () => {
|
|
6
|
+
let component: ClientSettingsComponent;
|
|
7
|
+
let fixture: ComponentFixture<ClientSettingsComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ClientSettingsComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ClientSettingsComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|