tango-app-ui-shared 3.5.0-alpha.9 → 3.5.1-task.2
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 +127 -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 +101 -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 +705 -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 +118 -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 +229 -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 +174 -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 +1 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -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 +10 -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 +172 -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 +186 -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 +56 -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 +352 -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 +311 -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 +1200 -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/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 +173 -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 -201
- 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 -118
- 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 -111
- 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 -11
- 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 -314
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +0 -1060
- 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/manage-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/routing.mjs +0 -53
- package/esm2022/lib/services/auth.service.mjs +0 -154
- package/esm2022/lib/services/notification.service.mjs +0 -74
- package/esm2022/lib/services/toast.service.mjs +0 -83
- package/esm2022/public-api.mjs +0 -56
- package/esm2022/tango-app-ui-shared.mjs +0 -5
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +0 -188
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +0 -400
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared.mjs +0 -11121
- 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 -20
- 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 -39
- 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 -23
- 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 -5
- 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 -55
- 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/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 -52
- package/lib/services/notification.service.d.ts +0 -30
- package/lib/services/toast.service.d.ts +0 -10
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatepickerComponent } from './datepicker.component';
|
|
4
|
+
|
|
5
|
+
describe('DatepickerComponent', () => {
|
|
6
|
+
let component: DatepickerComponent;
|
|
7
|
+
let fixture: ComponentFixture<DatepickerComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [DatepickerComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(DatepickerComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import "dayjs/locale/en";
|
|
4
|
+
import utc from "dayjs/plugin/utc";
|
|
5
|
+
import timezone from "dayjs/plugin/timezone";
|
|
6
|
+
import { LayoutService } from "tango-app-ui-global";
|
|
7
|
+
import { AuthService } from "../../../../services/auth.service";
|
|
8
|
+
import { Subscription } from "rxjs";
|
|
9
|
+
import { GlobalStateService } from "tango-app-ui-global";
|
|
10
|
+
@Component({
|
|
11
|
+
selector: "lib-datepicker",
|
|
12
|
+
templateUrl: "./datepicker.component.html",
|
|
13
|
+
styleUrl: "./datepicker.component.scss",
|
|
14
|
+
})
|
|
15
|
+
export class DatepickerComponent implements OnDestroy, OnInit {
|
|
16
|
+
dayjs = dayjs;
|
|
17
|
+
private unsubscribe: Subscription[] = [];
|
|
18
|
+
isCustomDate = (m: dayjs.Dayjs) => {
|
|
19
|
+
const isValidDate = m > this.dayjs();
|
|
20
|
+
return isValidDate ? 'invalid-date' : false;
|
|
21
|
+
}
|
|
22
|
+
selectedDateRange: any = {};
|
|
23
|
+
selectedFilters: any = {
|
|
24
|
+
client: null,
|
|
25
|
+
clientName:null,
|
|
26
|
+
clients: [],
|
|
27
|
+
store: null,
|
|
28
|
+
stores: [],
|
|
29
|
+
date: null,
|
|
30
|
+
};
|
|
31
|
+
users: any;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
private layout: LayoutService,
|
|
36
|
+
private gs: GlobalStateService,
|
|
37
|
+
private service: AuthService,
|
|
38
|
+
private cd: ChangeDetectorRef
|
|
39
|
+
) {}
|
|
40
|
+
|
|
41
|
+
ngOnDestroy() {
|
|
42
|
+
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
ngOnInit(): void {
|
|
46
|
+
if ("user-info" in localStorage) {
|
|
47
|
+
const userData: any = JSON.parse(
|
|
48
|
+
localStorage.getItem("user-info") || "{}"
|
|
49
|
+
);
|
|
50
|
+
this.users = userData;
|
|
51
|
+
}
|
|
52
|
+
if ("header-filters" in localStorage) {
|
|
53
|
+
const headerFilters: any = JSON.parse(
|
|
54
|
+
localStorage.getItem("header-filters") || "{}"
|
|
55
|
+
);
|
|
56
|
+
this.selectedFilters.client = this.users.clientId;
|
|
57
|
+
this.selectedFilters.clients = [this.users.clientId];
|
|
58
|
+
this.selectedFilters.clientName = headerFilters.clientName;
|
|
59
|
+
this.selectedFilters.store = headerFilters.store;
|
|
60
|
+
this.selectedFilters.date = headerFilters.date;
|
|
61
|
+
|
|
62
|
+
this.selectedDateRange = {
|
|
63
|
+
startDate:this.dayjs( headerFilters?.date.startDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
64
|
+
endDate: this.dayjs( headerFilters?.date.endDate, "YYYY-MM-DD").format("DD-MM-YYYY"),
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
localStorage.setItem(
|
|
68
|
+
"header-filters",
|
|
69
|
+
JSON.stringify(this.selectedFilters)
|
|
70
|
+
);
|
|
71
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
72
|
+
} else {
|
|
73
|
+
this.selectedFilters.client = this.users.clientId;
|
|
74
|
+
this.selectedFilters.clients = [this.users.clientId];
|
|
75
|
+
this.selectedDateRange = {
|
|
76
|
+
startDate: this.dayjs().subtract(1, "days").format("DD-MM-YYYY"), // Yesterday
|
|
77
|
+
endDate: this.dayjs().subtract(1, "days").format("DD-MM-YYYY"), // Yesterday
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// Set datetime to yesterday's date as well
|
|
81
|
+
var datetime = {
|
|
82
|
+
startDate: this.dayjs().subtract(1, "days").format("YYYY-MM-DD"), // Yesterday
|
|
83
|
+
endDate: this.dayjs().subtract(1, "days").format("YYYY-MM-DD"), // Yesterday
|
|
84
|
+
};
|
|
85
|
+
// var datetime = {
|
|
86
|
+
// startDate: this.dayjs().subtract(1, 'days').format("YYYY-MM-DD"), // Yesterday
|
|
87
|
+
// endDate: this.dayjs().subtract(1, 'days').format("YYYY-MM-DD"), // Yesterday
|
|
88
|
+
// };
|
|
89
|
+
this.selectedFilters.date = datetime;
|
|
90
|
+
localStorage.setItem(
|
|
91
|
+
"header-filters",
|
|
92
|
+
JSON.stringify(this.selectedFilters)
|
|
93
|
+
);
|
|
94
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
95
|
+
}
|
|
96
|
+
this.getUserInfo(this.selectedFilters.client)
|
|
97
|
+
}
|
|
98
|
+
getUserInfo(client:any){
|
|
99
|
+
let obj ={
|
|
100
|
+
clientId: client ? client :''
|
|
101
|
+
}
|
|
102
|
+
if(client){
|
|
103
|
+
this.service.getHeaderUsers(obj).subscribe({
|
|
104
|
+
next: (e) => {
|
|
105
|
+
localStorage.setItem(
|
|
106
|
+
"usersEmail-info",
|
|
107
|
+
JSON.stringify(e?.data?.userEmailData || [])
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
ranges: any = {
|
|
114
|
+
Today: [this.dayjs(), this.dayjs()],
|
|
115
|
+
Yesterday: [
|
|
116
|
+
this.dayjs().subtract(1, "days"),
|
|
117
|
+
this.dayjs().subtract(1, "days"),
|
|
118
|
+
],
|
|
119
|
+
"This Week": [this.dayjs().subtract(7, "days"), this.dayjs().subtract(1, "days")],
|
|
120
|
+
"Last Week": [
|
|
121
|
+
this.dayjs().subtract(14, "days").startOf("days"),
|
|
122
|
+
this.dayjs().subtract(8, "days").endOf("days"),
|
|
123
|
+
],
|
|
124
|
+
"This Month": [
|
|
125
|
+
this.dayjs().subtract(30, "days"), // Start date is 30 days before today
|
|
126
|
+
this.dayjs().subtract(1, "days") // End date is Yesterday
|
|
127
|
+
],
|
|
128
|
+
"Last Month": [
|
|
129
|
+
this.dayjs().subtract(1, "month").startOf("month"),
|
|
130
|
+
this.dayjs().subtract(1, "month").endOf("month"),
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
onStartDateChange(event: any) {
|
|
135
|
+
if (this.dayjs(event.startDate).isValid()) {
|
|
136
|
+
this.isCustomDate = (m: dayjs.Dayjs) => {
|
|
137
|
+
const isValidDate =
|
|
138
|
+
m > this.dayjs() || m > this.dayjs(event.startDate.add(90, "days"));
|
|
139
|
+
return isValidDate ? "invalid-date" : false;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
datechange(event: any) {
|
|
145
|
+
if (event && event.startDate && event.endDate) {
|
|
146
|
+
if (
|
|
147
|
+
this.dayjs(event.startDate).isValid() &&
|
|
148
|
+
this.dayjs(event.endDate).isValid()
|
|
149
|
+
) {
|
|
150
|
+
this.selectedDateRange.startDate = event.startDate
|
|
151
|
+
this.selectedDateRange.endDate = event.endDate
|
|
152
|
+
var datetime = {
|
|
153
|
+
startDate: this.dayjs(event.startDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
154
|
+
endDate: this.dayjs(event.endDate,"DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
155
|
+
};
|
|
156
|
+
this.selectedFilters.date = datetime;
|
|
157
|
+
}
|
|
158
|
+
} else {
|
|
159
|
+
const headerFilters: any = JSON.parse(
|
|
160
|
+
localStorage.getItem("header-filters") || "{}"
|
|
161
|
+
);
|
|
162
|
+
this.selectedFilters.date = headerFilters.date;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
this.selectedFilters.client = this.users.clientId;
|
|
166
|
+
this.selectedFilters.clients = [this.users.clientId];
|
|
167
|
+
this.selectedFilters.date = this.selectedFilters.date;
|
|
168
|
+
this.gs.dataRangeValue.next(this.selectedFilters);
|
|
169
|
+
localStorage.setItem(
|
|
170
|
+
"header-filters",
|
|
171
|
+
JSON.stringify(this.selectedFilters)
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<!--begin::Label-->
|
|
2
|
+
<span class="fs-7 fw-bold text-gray-700 pe-4 d-none d-md-block">Team:</span>
|
|
3
|
+
<!--end::Label-->
|
|
4
|
+
|
|
5
|
+
<!--begin::Users-->
|
|
6
|
+
<div class="symbol-group symbol-hover flex-shrink-0 me-2">
|
|
7
|
+
<!--begin::User-->
|
|
8
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
9
|
+
<div class="symbol-label fw-bold bg-warning text-inverse-warning">A</div>
|
|
10
|
+
</div>
|
|
11
|
+
<!--end::User-->
|
|
12
|
+
|
|
13
|
+
<!--begin::User-->
|
|
14
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
15
|
+
<img src="./assets/media/avatars/300-1.jpg" alt="" />
|
|
16
|
+
</div>
|
|
17
|
+
<!--end::User-->
|
|
18
|
+
|
|
19
|
+
<!--begin::User-->
|
|
20
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
21
|
+
<img src="./assets/media/avatars/300-2.jpg" alt="" />
|
|
22
|
+
</div>
|
|
23
|
+
<!--end::User-->
|
|
24
|
+
|
|
25
|
+
<!--begin::User-->
|
|
26
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
27
|
+
<div class="symbol-label fw-bold bg-primary text-inverse-primary">S</div>
|
|
28
|
+
</div>
|
|
29
|
+
<!--end::User-->
|
|
30
|
+
|
|
31
|
+
<!--begin::User-->
|
|
32
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
33
|
+
<img src="./assets/media/avatars/300-5.jpg" alt="" />
|
|
34
|
+
</div>
|
|
35
|
+
<!--end::User-->
|
|
36
|
+
|
|
37
|
+
<!--begin::User-->
|
|
38
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
39
|
+
<div class="symbol-label fw-bold bg-danger text-inverse-danger">P</div>
|
|
40
|
+
</div>
|
|
41
|
+
<!--end::User-->
|
|
42
|
+
|
|
43
|
+
<!--begin::User-->
|
|
44
|
+
<div class="symbol symbol-circle symbol-35px">
|
|
45
|
+
<img src="./assets/media/avatars/300-20.jpg" alt="" />
|
|
46
|
+
</div>
|
|
47
|
+
<!--end::User-->
|
|
48
|
+
</div>
|
|
49
|
+
<!--end::Users-->
|
|
50
|
+
|
|
51
|
+
<!--begin::Button-->
|
|
52
|
+
<div data-bs-toggle="tooltip" data-bs-placement="top" data-bs-trigger="hover" title="Invite a team member">
|
|
53
|
+
<a href="#" class="btn btn-sm btn-icon">
|
|
54
|
+
<lib-keenicon name="plus-square" class="fs-2hx text-success"></lib-keenicon>
|
|
55
|
+
</a>
|
|
56
|
+
</div>
|
|
57
|
+
<!--end::Button-->
|
|
58
|
+
<!--end::Toolbar start-->
|
|
59
|
+
|
|
60
|
+
<!--begin::Toolbar end-->
|
|
61
|
+
<div class="d-flex align-items-center overflow-auto">
|
|
62
|
+
<!--begin::Search-->
|
|
63
|
+
<div class="position-relative my-1">
|
|
64
|
+
<lib-keenicon name="magnifier" class="fs-3 text-gray500 position-absolute top-50 translate-middle ps-10"></lib-keenicon>
|
|
65
|
+
<input type="text" class="form-control form-control-sm form-control-solid w-150px ps-10" name="Search Team" value=""
|
|
66
|
+
placeholder="Search Team" />
|
|
67
|
+
</div>
|
|
68
|
+
<!--end::Search-->
|
|
69
|
+
|
|
70
|
+
<!--begin::Separartor-->
|
|
71
|
+
<div class="bullet bg-secondary h-35px w-1px mx-6"></div>
|
|
72
|
+
<!--end::Separartor-->
|
|
73
|
+
|
|
74
|
+
<!--begin::Label-->
|
|
75
|
+
<span class="fs-7 fw-bold text-gray-700 flex-shrink-0 pe-4 d-none d-md-block">Sort By:</span>
|
|
76
|
+
<!--end::Label-->
|
|
77
|
+
|
|
78
|
+
<!--begin::Select-->
|
|
79
|
+
<select class="form-select form-select-sm w-125px form-select-solid me-6" data-control="select2"
|
|
80
|
+
data-placeholder="Latest" data-hide-search="true">
|
|
81
|
+
<option value=""></option>
|
|
82
|
+
<option value="1" selected>Latest</option>
|
|
83
|
+
<option value="2">In Progress</option>
|
|
84
|
+
<option value="3">Done</option>
|
|
85
|
+
</select>
|
|
86
|
+
<!--end::Select-->
|
|
87
|
+
|
|
88
|
+
<!--begin::Actions-->
|
|
89
|
+
<div class="d-flex align-items-center">
|
|
90
|
+
<button type="button" class="btn btn-sm btn-icon btn-light-primary me-3" data-bs-toggle="tooltip"
|
|
91
|
+
data-bs-placement="top" title="Enable grid view">
|
|
92
|
+
<lib-keenicon name="element-11" class="fs-3 text-primary"></lib-keenicon>
|
|
93
|
+
</button>
|
|
94
|
+
|
|
95
|
+
<button type="button" class="btn btn-sm btn-icon btn-light" data-bs-toggle="tooltip" data-bs-placement="top"
|
|
96
|
+
title="Enable row view">
|
|
97
|
+
<lib-keenicon name="row-horizontal" class="fs-3 text-gray400"></lib-keenicon>
|
|
98
|
+
</button>
|
|
99
|
+
</div>
|
|
100
|
+
<!--end::Actions-->
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ExtendedComponent } from './extended.component';
|
|
4
|
+
|
|
5
|
+
describe('ExtendedComponent', () => {
|
|
6
|
+
let component: ExtendedComponent;
|
|
7
|
+
let fixture: ComponentFixture<ExtendedComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ExtendedComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ExtendedComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-extended',
|
|
5
|
+
templateUrl: './extended.component.html',
|
|
6
|
+
styleUrls: ['./extended.component.scss'],
|
|
7
|
+
})
|
|
8
|
+
export class ExtendedComponent implements OnInit {
|
|
9
|
+
constructor() {}
|
|
10
|
+
|
|
11
|
+
ngOnInit(): void {}
|
|
12
|
+
}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
<div class="me-3">
|
|
2
|
+
<label *ngIf="selectedCountriesLabel()" class="badge badge-light-default mx-2">{{selectedCountriesLabel()}}
|
|
3
|
+
<span class="cursor-pointer" (click)="removeCountry()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
4
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg></span>
|
|
6
|
+
</label>
|
|
7
|
+
<label *ngIf="selectedLocationsLabel()" class="badge badge-light-default mx-2">{{selectedLocationsLabel()}}
|
|
8
|
+
<span class="cursor-pointer" (click)="removeLocation()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
9
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
</svg></span>
|
|
11
|
+
</label>
|
|
12
|
+
<label *ngIf="selectedGroupsLabel()" class="badge badge-light-default mx-2">{{selectedGroupsLabel()}}
|
|
13
|
+
<span class="cursor-pointer" (click)="removeGroup()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
14
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
+
</svg></span>
|
|
16
|
+
</label>
|
|
17
|
+
<label class="badge badge-light-default">{{selectedStoresLabel()}}</label>
|
|
18
|
+
<label class="badge badge-light-default mx-2">{{selectedZonesLabel()}}
|
|
19
|
+
<!-- <span class="cursor-pointer" (click)="removeGroup()"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
20
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
21
|
+
</svg></span> -->
|
|
22
|
+
</label>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<div class="wrapper me-3" *ngIf="(gs.userAccess | async)?.userType === 'tango'">
|
|
27
|
+
<lib-select [items]="clientList" [multi]="false" [searchField]="'clientName'" [disabled]="false" [idField]="'clientId'"
|
|
28
|
+
(selected)="onClientSelect($event)" [selectedValues]="[selectedClient]"></lib-select>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="d-flex align-items-center position-relative my-1">
|
|
31
|
+
<span class="svg-icon svg-icon-1 position-absolute ms-3">
|
|
32
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
33
|
+
<path
|
|
34
|
+
d="M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z"
|
|
35
|
+
stroke="#344054" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
|
|
36
|
+
</svg>
|
|
37
|
+
</span>
|
|
38
|
+
<input class="fx-date-range form-control ps-14" style="min-width: 260px !important;" type="text" matInput
|
|
39
|
+
ngxDaterangepickerMd [drops]="'down'" [opens]="'right'" [ranges]="ranges" [showCustomRangeLabel]="true" [autoApply]="true"
|
|
40
|
+
[alwaysShowCalendars]="false" [keepCalendarOpeningWithRange]="true" [showCancel]="true" autocomplete="off"
|
|
41
|
+
[(ngModel)]="selectedDateRange" (startDateChanged)="onStartDateChange($event)" [isCustomDate]="isCustomDate"
|
|
42
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
43
|
+
(datesUpdated)="datechange($event)" name="daterange" [readonly]="true" />
|
|
44
|
+
</div>
|
|
45
|
+
<div class="position-relative">
|
|
46
|
+
<button type="button" (click)="opendropdown($event)" class="btn btn-default mx-2 rounded-3 text-nowrap border-val">
|
|
47
|
+
<!-- <span class="me-2">Filter</span> -->
|
|
48
|
+
<svg class="pl-3" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
49
|
+
<path d="M5 10H15M2.5 5H17.5M7.5 15H12.5" stroke="#344054" stroke-width="2" stroke-linecap="round"
|
|
50
|
+
stroke-linejoin="round" />
|
|
51
|
+
</svg>
|
|
52
|
+
</button>
|
|
53
|
+
|
|
54
|
+
<div *ngIf="Opendropdown" class="card p-5 dropdown2 position-absolute z-1 end-0" style="z-index: 1 !important;" (clickOutside)="closeDropdown1()">
|
|
55
|
+
<div class="dropdown-title d-flex justify-content-between mb-2">Filter Options
|
|
56
|
+
<button class="btn btn-outline w-25 ms-3 btn-resize" (click)="Reset()"> Reset </button>
|
|
57
|
+
<button class="btn btn-primary w-25 btn-resize" (click)="Apply()">Apply</button>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<!-- Country Dropdown -->
|
|
61
|
+
<div class="dropdown-container" (clickOutside)="closeDropdown()">
|
|
62
|
+
<div class="dropdown-header" (click)="toggleDropdown('country')">
|
|
63
|
+
<input
|
|
64
|
+
type="text"
|
|
65
|
+
class="form-control dropdown-input cursor-pointer"
|
|
66
|
+
[value]="selectedCountriesLabel()"
|
|
67
|
+
readonly
|
|
68
|
+
placeholder="Select country"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'country'">
|
|
72
|
+
<input
|
|
73
|
+
type="text"
|
|
74
|
+
class="form-control mb-2 dropdown-search"
|
|
75
|
+
placeholder="Search country"
|
|
76
|
+
[(ngModel)]="searchCountryText"
|
|
77
|
+
(ngModelChange)="filterCountries()"
|
|
78
|
+
/>
|
|
79
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
80
|
+
<input
|
|
81
|
+
class="form-check-input cursor-pointer"
|
|
82
|
+
type="checkbox"
|
|
83
|
+
id="selectAllCountries"
|
|
84
|
+
[checked]="isAllCountriesSelected()"
|
|
85
|
+
(change)="toggleSelectAllCountries($event)"
|
|
86
|
+
/>
|
|
87
|
+
<label class="form-check-label" for="selectAllCountries">
|
|
88
|
+
Select All
|
|
89
|
+
</label>
|
|
90
|
+
</div>
|
|
91
|
+
<div
|
|
92
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
93
|
+
*ngFor="let country of filteredCountries"
|
|
94
|
+
>
|
|
95
|
+
<input
|
|
96
|
+
class="form-check-input cursor-pointer"
|
|
97
|
+
type="checkbox"
|
|
98
|
+
[id]="country.country"
|
|
99
|
+
[(ngModel)]="country.checked"
|
|
100
|
+
(change)="updateSelectedCountries()"
|
|
101
|
+
/>
|
|
102
|
+
<label class="form-check-label" [for]="country.country">
|
|
103
|
+
{{ country.country }}
|
|
104
|
+
</label>
|
|
105
|
+
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<!-- Location Dropdown -->
|
|
111
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
112
|
+
<div class="dropdown-header" (click)="toggleDropdown('location')">
|
|
113
|
+
<input
|
|
114
|
+
type="text"
|
|
115
|
+
class="form-control dropdown-input cursor-pointer"
|
|
116
|
+
[value]="selectedLocationsLabel()"
|
|
117
|
+
readonly
|
|
118
|
+
placeholder="Select Region"
|
|
119
|
+
/>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'location'">
|
|
122
|
+
<input
|
|
123
|
+
type="text"
|
|
124
|
+
class="form-control mb-2 dropdown-search"
|
|
125
|
+
placeholder="Search Region"
|
|
126
|
+
[(ngModel)]="searchLocationText"
|
|
127
|
+
(ngModelChange)="filterLocations()"
|
|
128
|
+
/>
|
|
129
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
130
|
+
<input
|
|
131
|
+
class="form-check-input cursor-pointer"
|
|
132
|
+
type="checkbox"
|
|
133
|
+
id="selectAllLocations"
|
|
134
|
+
[checked]="isAllLocationsSelected()"
|
|
135
|
+
(change)="toggleSelectAllLocations($event)"
|
|
136
|
+
/>
|
|
137
|
+
<label class="form-check-label" for="selectAllLocations">
|
|
138
|
+
Select All
|
|
139
|
+
</label>
|
|
140
|
+
</div>
|
|
141
|
+
<div
|
|
142
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
143
|
+
*ngFor="let location of filteredLocations"
|
|
144
|
+
>
|
|
145
|
+
<input
|
|
146
|
+
class="form-check-input cursor-pointer"
|
|
147
|
+
type="checkbox"
|
|
148
|
+
[id]="location.city"
|
|
149
|
+
[(ngModel)]="location.checked"
|
|
150
|
+
(change)="updateSelectedLocations()"
|
|
151
|
+
/>
|
|
152
|
+
<label class="form-check-label" [for]="location.city">
|
|
153
|
+
{{ location.city }}
|
|
154
|
+
</label>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- Group Dropdown -->
|
|
160
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
161
|
+
<div class="dropdown-header" (click)="toggleDropdown('group')">
|
|
162
|
+
<input
|
|
163
|
+
type="text"
|
|
164
|
+
class="form-control dropdown-input cursor-pointer"
|
|
165
|
+
[value]="selectedGroupsLabel()" readonly
|
|
166
|
+
placeholder="Select clusters"
|
|
167
|
+
/>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'group'">
|
|
170
|
+
<input
|
|
171
|
+
type="text"
|
|
172
|
+
class="form-control mb-2 dropdown-search"
|
|
173
|
+
placeholder="Search clusters"
|
|
174
|
+
[(ngModel)]="searchGroupText"
|
|
175
|
+
(ngModelChange)="filterGroups()"
|
|
176
|
+
/>
|
|
177
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
178
|
+
<input
|
|
179
|
+
class="form-check-input cursor-pointer"
|
|
180
|
+
type="checkbox"
|
|
181
|
+
id="selectAllGroups"
|
|
182
|
+
[checked]="isAllGroupsSelected()"
|
|
183
|
+
(change)="toggleSelectAllGroups($event)"
|
|
184
|
+
/>
|
|
185
|
+
<label class="form-check-label" for="selectAllGroups">
|
|
186
|
+
Select All
|
|
187
|
+
</label>
|
|
188
|
+
</div>
|
|
189
|
+
<div
|
|
190
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
191
|
+
*ngFor="let group of filteredGroups"
|
|
192
|
+
>
|
|
193
|
+
<input
|
|
194
|
+
class="form-check-input cursor-pointer"
|
|
195
|
+
type="checkbox"
|
|
196
|
+
[id]="group.groupName"
|
|
197
|
+
[(ngModel)]="group.checked"
|
|
198
|
+
(change)="updateSelectedGroups()"
|
|
199
|
+
/>
|
|
200
|
+
<label class="form-check-label" [for]="group.groupName">
|
|
201
|
+
{{ group.groupName }}
|
|
202
|
+
</label>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<!-- Store Dropdown -->
|
|
209
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
210
|
+
<div class="dropdown-header" (click)="toggleDropdown('store')">
|
|
211
|
+
<input
|
|
212
|
+
type="text"
|
|
213
|
+
class="form-control dropdown-input cursor-pointer"
|
|
214
|
+
[value]="selectedStoresLabel()"
|
|
215
|
+
readonly
|
|
216
|
+
placeholder="Select stores"
|
|
217
|
+
/>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'store'">
|
|
220
|
+
<input
|
|
221
|
+
type="text"
|
|
222
|
+
class="form-control mb-2 dropdown-search "
|
|
223
|
+
placeholder="Search stores"
|
|
224
|
+
[(ngModel)]="searchStoreText"
|
|
225
|
+
(ngModelChange)="filterStores()"
|
|
226
|
+
/>
|
|
227
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
228
|
+
<input
|
|
229
|
+
class="form-check-input cursor-pointer"
|
|
230
|
+
type="checkbox"
|
|
231
|
+
id="selectAllStores"
|
|
232
|
+
[checked]="isAllStoresSelected()"
|
|
233
|
+
(change)="toggleSelectAllStores($event)"
|
|
234
|
+
/>
|
|
235
|
+
<label class="form-check-label" for="selectAllStores">
|
|
236
|
+
Select All
|
|
237
|
+
</label>
|
|
238
|
+
</div>
|
|
239
|
+
<div
|
|
240
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
241
|
+
*ngFor="let store of filteredStores"
|
|
242
|
+
>
|
|
243
|
+
<input
|
|
244
|
+
class="form-check-input"
|
|
245
|
+
type="checkbox"
|
|
246
|
+
[id]="store.storeId"
|
|
247
|
+
[(ngModel)]="store.checked"
|
|
248
|
+
(change)="updateSelectedStores()"
|
|
249
|
+
/>
|
|
250
|
+
<label class="form-check-label" [for]="store.storeId">
|
|
251
|
+
{{ store.storeName }}
|
|
252
|
+
</label>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
<!-- Zone Dropdown -->
|
|
258
|
+
<div class="dropdown-container mt-3" (clickOutside)="closeDropdown()">
|
|
259
|
+
<div class="dropdown-header" (click)="toggleDropdown('zone')">
|
|
260
|
+
<input
|
|
261
|
+
type="text"
|
|
262
|
+
class="form-control dropdown-input cursor-pointer"
|
|
263
|
+
[value]="selectedZonesLabel()"
|
|
264
|
+
readonly
|
|
265
|
+
placeholder="Select zones"
|
|
266
|
+
/>
|
|
267
|
+
</div>
|
|
268
|
+
<div class="dropdown-menu custom-dropdown-menu" *ngIf="dropdownOpen === 'zone'">
|
|
269
|
+
<input
|
|
270
|
+
type="text"
|
|
271
|
+
class="form-control mb-2 dropdown-search "
|
|
272
|
+
placeholder="Search zones"
|
|
273
|
+
[(ngModel)]="searchZoneText"
|
|
274
|
+
(ngModelChange)="filterZones()"
|
|
275
|
+
/>
|
|
276
|
+
<div class="form-check mb-2 dropdown-item custom-dropdown-item">
|
|
277
|
+
<input
|
|
278
|
+
class="form-check-input cursor-pointer"
|
|
279
|
+
type="checkbox"
|
|
280
|
+
id="selectAllZones"
|
|
281
|
+
[checked]="isAllZonesSelected()"
|
|
282
|
+
(change)="toggleSelectAllZones($event)"
|
|
283
|
+
/>
|
|
284
|
+
<label class="form-check-label" for="selectAllZones">
|
|
285
|
+
Select All
|
|
286
|
+
</label>
|
|
287
|
+
</div>
|
|
288
|
+
<div
|
|
289
|
+
class="dropdown-item form-check custom-dropdown-item"
|
|
290
|
+
*ngFor="let zone of filteredZones"
|
|
291
|
+
>
|
|
292
|
+
<input
|
|
293
|
+
class="form-check-input"
|
|
294
|
+
type="checkbox"
|
|
295
|
+
[id]="zone._id"
|
|
296
|
+
[(ngModel)]="zone.checked"
|
|
297
|
+
(change)="updateSelectedZones(zone._id)"
|
|
298
|
+
/>
|
|
299
|
+
<label class="form-check-label" [for]="zone._id">
|
|
300
|
+
{{ zone.tagName }}
|
|
301
|
+
</label>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|