tango-app-ui-shared 3.5.1-task.2 → 3.5.1-task.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/guards/auth.guard.mjs +26 -0
- package/esm2022/lib/guards/lead.guard.mjs +16 -0
- package/esm2022/lib/guards/stores.guard.mjs +16 -0
- package/esm2022/lib/guards/tickets.guard.mjs +16 -0
- package/esm2022/lib/i18n/index.mjs +3 -0
- package/esm2022/lib/i18n/translation.module.mjs +17 -0
- package/esm2022/lib/i18n/translation.service.mjs +53 -0
- package/esm2022/lib/i18n/vocabs/ch.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/de.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/en.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/es.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/fr.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/jp.mjs +106 -0
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +201 -0
- package/esm2022/lib/interfaces/global-state.mjs +2 -0
- package/esm2022/lib/modules/common/common-shared.module.mjs +31 -0
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +155 -0
- package/esm2022/lib/modules/common/filters/filters.component.mjs +179 -0
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +49 -0
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +33 -0
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +44 -0
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +45 -0
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +48 -0
- package/esm2022/lib/modules/errors/errors.component.mjs +39 -0
- package/esm2022/lib/modules/errors/errors.module.mjs +37 -0
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +44 -0
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +19 -0
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +24 -0
- package/esm2022/lib/modules/intro/intro.module.mjs +32 -0
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +110 -0
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +31 -0
- package/esm2022/lib/modules/layout/content/content.component.mjs +107 -0
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +17 -0
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +41 -0
- package/esm2022/lib/modules/layout/header/header.component.mjs +100 -0
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +256 -0
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +79 -0
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +56 -0
- package/esm2022/lib/modules/layout/keenicon/icons.json +1 -0
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +37 -0
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +314 -0
- package/esm2022/lib/modules/layout/layout.module.mjs +195 -0
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +74 -0
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +74 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +118 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +45 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +111 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +134 -0
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +16 -0
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +331 -0
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +88 -0
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +201 -0
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +150 -0
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +15 -0
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +1321 -0
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +11 -0
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +176 -0
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +166 -0
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +105 -0
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +314 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +1060 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +795 -0
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +880 -0
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +729 -0
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +22 -0
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +317 -0
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +28 -0
- package/esm2022/lib/modules/notification/notification.module.mjs +32 -0
- package/esm2022/lib/pipes/customDate.pipe.mjs +22 -0
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/routing.mjs +53 -0
- package/esm2022/lib/services/auth.service.mjs +154 -0
- package/esm2022/lib/services/notification.service.mjs +74 -0
- package/esm2022/lib/services/toast.service.mjs +83 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/tango-app-ui-shared.mjs +5 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +188 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +400 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared.mjs +11121 -0
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/guards/auth.guard.d.ts +10 -0
- package/lib/guards/lead.guard.d.ts +2 -0
- package/lib/guards/stores.guard.d.ts +2 -0
- package/lib/guards/tickets.guard.d.ts +2 -0
- package/{src/lib/i18n/index.ts → lib/i18n/index.d.ts} +2 -2
- package/lib/i18n/translation.module.d.ts +8 -0
- package/lib/i18n/translation.service.d.ts +19 -0
- package/lib/i18n/vocabs/ch.d.ts +104 -0
- package/lib/i18n/vocabs/de.d.ts +104 -0
- package/lib/i18n/vocabs/en.d.ts +104 -0
- package/lib/i18n/vocabs/es.d.ts +104 -0
- package/lib/i18n/vocabs/fr.d.ts +104 -0
- package/lib/i18n/vocabs/jp.d.ts +104 -0
- package/lib/interceptors/http-auth-interceptor.d.ts +20 -0
- package/lib/interfaces/global-state.d.ts +5 -0
- package/lib/modules/common/common-shared.module.d.ts +13 -0
- package/lib/modules/common/custom-select/custom-select.component.d.ts +33 -0
- package/lib/modules/common/filters/filters.component.d.ts +38 -0
- package/lib/modules/common/pagination/pagination.component.d.ts +18 -0
- package/lib/modules/errors/error403/error403.component.d.ts +14 -0
- package/lib/modules/errors/error404/error404.component.d.ts +15 -0
- package/lib/modules/errors/error500/error500.component.d.ts +15 -0
- package/lib/modules/errors/errors-routing.module.d.ts +7 -0
- package/lib/modules/errors/errors.component.d.ts +13 -0
- package/lib/modules/errors/errors.module.d.ts +13 -0
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +17 -0
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +9 -0
- package/lib/modules/intro/intro-routing.module.d.ts +7 -0
- package/lib/modules/intro/intro.module.d.ts +11 -0
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +31 -0
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +13 -0
- package/lib/modules/layout/content/content.component.d.ts +25 -0
- package/lib/modules/layout/footer/footer.component.d.ts +8 -0
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +18 -0
- package/lib/modules/layout/header/header.component.d.ts +30 -0
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +45 -0
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +25 -0
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +23 -0
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +13 -0
- package/lib/modules/layout/layout/layout.component.d.ts +82 -0
- package/lib/modules/layout/layout.module.d.ts +49 -0
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +19 -0
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +39 -0
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +23 -0
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +36 -0
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +48 -0
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +16 -0
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +103 -0
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +5 -0
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +33 -0
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +34 -0
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +24 -0
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +55 -0
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +93 -0
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +80 -0
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +83 -0
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +74 -0
- package/lib/modules/notification/conformation/conformation.component.d.ts +10 -0
- package/lib/modules/notification/notification/notification.component.d.ts +63 -0
- package/lib/modules/notification/notification-routing.module.d.ts +7 -0
- package/lib/modules/notification/notification.module.d.ts +11 -0
- package/lib/pipes/customDate.pipe.d.ts +7 -0
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +7 -0
- package/lib/routes/routing.d.ts +3 -0
- package/lib/services/auth.service.d.ts +52 -0
- package/lib/services/notification.service.d.ts +30 -0
- package/lib/services/toast.service.d.ts +10 -0
- package/package.json +25 -12
- package/{src/public-api.ts → public-api.d.ts} +44 -71
- package/.eslintrc.json +0 -37
- package/ng-package.json +0 -7
- package/src/lib/guards/auth.guard.ts +0 -20
- package/src/lib/guards/lead.guard.ts +0 -16
- package/src/lib/guards/stores.guard.ts +0 -16
- package/src/lib/guards/tickets.guard.ts +0 -16
- package/src/lib/i18n/translation.module.ts +0 -9
- package/src/lib/i18n/translation.service.ts +0 -61
- package/src/lib/i18n/vocabs/ch.ts +0 -105
- package/src/lib/i18n/vocabs/de.ts +0 -105
- package/src/lib/i18n/vocabs/en.ts +0 -105
- package/src/lib/i18n/vocabs/es.ts +0 -105
- package/src/lib/i18n/vocabs/fr.ts +0 -105
- package/src/lib/i18n/vocabs/jp.ts +0 -105
- package/src/lib/interceptors/http-auth-interceptor.ts +0 -225
- package/src/lib/interfaces/global-state.ts +0 -6
- package/src/lib/modules/common/common-shared.module.ts +0 -20
- package/src/lib/modules/common/custom-select/custom-select.component.html +0 -42
- package/src/lib/modules/common/custom-select/custom-select.component.scss +0 -131
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +0 -23
- package/src/lib/modules/common/custom-select/custom-select.component.ts +0 -149
- package/src/lib/modules/common/filters/filters.component.html +0 -76
- package/src/lib/modules/common/filters/filters.component.scss +0 -131
- package/src/lib/modules/common/filters/filters.component.spec.ts +0 -23
- package/src/lib/modules/common/filters/filters.component.ts +0 -181
- package/src/lib/modules/common/pagination/pagination.component.html +0 -26
- package/src/lib/modules/common/pagination/pagination.component.scss +0 -63
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +0 -23
- package/src/lib/modules/common/pagination/pagination.component.ts +0 -46
- package/src/lib/modules/errors/error403/error403.component.html +0 -25
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +0 -23
- package/src/lib/modules/errors/error403/error403.component.ts +0 -28
- package/src/lib/modules/errors/error404/error404.component.html +0 -24
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +0 -25
- package/src/lib/modules/errors/error404/error404.component.ts +0 -50
- package/src/lib/modules/errors/error500/error500.component.html +0 -24
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +0 -25
- package/src/lib/modules/errors/error500/error500.component.ts +0 -50
- package/src/lib/modules/errors/errors-routing.module.ts +0 -40
- package/src/lib/modules/errors/errors.component.html +0 -15
- package/src/lib/modules/errors/errors.component.scss +0 -4
- package/src/lib/modules/errors/errors.component.spec.ts +0 -25
- package/src/lib/modules/errors/errors.component.ts +0 -42
- package/src/lib/modules/errors/errors.module.ts +0 -25
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +0 -16
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +0 -23
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +0 -43
- package/src/lib/modules/intro/contact-support/contact-support.component.html +0 -30
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +0 -60
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +0 -23
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +0 -17
- package/src/lib/modules/intro/intro-routing.module.ts +0 -16
- package/src/lib/modules/intro/intro.module.ts +0 -21
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +0 -325
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +0 -185
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +0 -23
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +0 -120
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +0 -44
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +0 -28
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +0 -23
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +0 -24
- package/src/lib/modules/layout/content/content.component.html +0 -12
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +0 -102
- package/src/lib/modules/layout/footer/footer.component.html +0 -29
- package/src/lib/modules/layout/footer/footer.component.scss +0 -7
- package/src/lib/modules/layout/footer/footer.component.spec.ts +0 -25
- package/src/lib/modules/layout/footer/footer.component.ts +0 -13
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +0 -27
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +0 -4
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +0 -38
- package/src/lib/modules/layout/header/header.component.html +0 -90
- package/src/lib/modules/layout/header/header.component.scss +0 -7
- package/src/lib/modules/layout/header/header.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header.component.ts +0 -139
- package/src/lib/modules/layout/header/navbar/navbar.component.html +0 -156
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -223
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +0 -23
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +0 -255
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +0 -200
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +0 -139
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +0 -76
- package/src/lib/modules/layout/header/page-title/page-title.component.html +0 -32
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +0 -11
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +0 -47
- package/src/lib/modules/layout/keenicon/icons.json +0 -1
- package/src/lib/modules/layout/keenicon/keenicon.component.html +0 -4
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +0 -23
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +0 -30
- package/src/lib/modules/layout/layout/layout.component.html +0 -71
- package/src/lib/modules/layout/layout/layout.component.scss +0 -23
- package/src/lib/modules/layout/layout/layout.component.ts +0 -425
- package/src/lib/modules/layout/layout.module.ts +0 -127
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +0 -81
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +0 -1
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +0 -75
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +0 -70
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -57
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +0 -101
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +0 -26
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +0 -36
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +0 -705
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -38
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +0 -118
- package/src/lib/modules/layout/sidebar/sidebar.component.html +0 -16
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -3
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +0 -203
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +0 -84
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +0 -69
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -238
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +0 -389
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +0 -4
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +0 -3
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +0 -91
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +0 -22
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +0 -156
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +0 -229
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +0 -14
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +0 -149
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +0 -174
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +0 -100
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +0 -12
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +0 -1555
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +0 -62
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +0 -77
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +0 -1
- 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 +0 -23
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +0 -10
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +0 -39
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +0 -172
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +0 -186
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +0 -17
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +0 -172
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +0 -179
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +0 -4
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +0 -19
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +0 -105
- package/src/lib/modules/layout/toolbar/toolbar.component.html +0 -56
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +0 -25
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +0 -352
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +0 -1200
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +0 -199
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +0 -899
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +0 -204
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +0 -1045
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +0 -190
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +0 -825
- package/src/lib/modules/notification/conformation/conformation.component.html +0 -25
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +0 -23
- package/src/lib/modules/notification/conformation/conformation.component.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.html +0 -209
- package/src/lib/modules/notification/notification/notification.component.scss +0 -211
- package/src/lib/modules/notification/notification/notification.component.spec.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.ts +0 -310
- package/src/lib/modules/notification/notification-routing.module.ts +0 -20
- package/src/lib/modules/notification/notification.module.ts +0 -21
- package/src/lib/pipes/customDate.pipe.ts +0 -18
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +0 -10
- package/src/lib/routes/routing.ts +0 -56
- package/src/lib/services/auth.service.ts +0 -173
- package/src/lib/services/notification.service.spec.ts +0 -16
- package/src/lib/services/notification.service.ts +0 -73
- package/src/lib/services/toast.service.ts +0 -82
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,174 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,311 +0,0 @@
|
|
|
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>
|