tango-app-ui-shared 3.7.3-dev6-demo7 → 3.7.3-dev6-demo8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/guards/auth.guard.mjs +26 -0
- package/esm2022/lib/guards/lead.guard.mjs +16 -0
- package/esm2022/lib/guards/stores.guard.mjs +16 -0
- package/esm2022/lib/guards/tickets.guard.mjs +16 -0
- package/esm2022/lib/i18n/index.mjs +3 -0
- package/esm2022/lib/i18n/translation.module.mjs +17 -0
- package/esm2022/lib/i18n/translation.service.mjs +53 -0
- package/esm2022/lib/i18n/vocabs/ch.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/de.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/en.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/es.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/fr.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/jp.mjs +106 -0
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +124 -0
- package/esm2022/lib/interfaces/global-state.mjs +2 -0
- package/esm2022/lib/modules/common/common-shared.module.mjs +31 -0
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +155 -0
- package/esm2022/lib/modules/common/filters/filters.component.mjs +179 -0
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +49 -0
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +33 -0
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +44 -0
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +45 -0
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +48 -0
- package/esm2022/lib/modules/errors/errors.component.mjs +39 -0
- package/esm2022/lib/modules/errors/errors.module.mjs +37 -0
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +44 -0
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +19 -0
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +24 -0
- package/esm2022/lib/modules/intro/intro.module.mjs +32 -0
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +110 -0
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +31 -0
- package/esm2022/lib/modules/layout/content/content.component.mjs +107 -0
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +17 -0
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +41 -0
- package/esm2022/lib/modules/layout/header/header.component.mjs +100 -0
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +256 -0
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +79 -0
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +56 -0
- package/esm2022/lib/modules/layout/keenicon/icons.json +1 -0
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +37 -0
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +314 -0
- package/esm2022/lib/modules/layout/layout.module.mjs +198 -0
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +74 -0
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +74 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +159 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +45 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +122 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +134 -0
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +16 -0
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +331 -0
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +88 -0
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +207 -0
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +158 -0
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +15 -0
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +1321 -0
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +216 -0
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +178 -0
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +166 -0
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +105 -0
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +372 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +1062 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +795 -0
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +880 -0
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +729 -0
- package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +1100 -0
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +22 -0
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +317 -0
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +28 -0
- package/esm2022/lib/modules/notification/notification.module.mjs +32 -0
- package/esm2022/lib/pipes/customDate.pipe.mjs +22 -0
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/routing.mjs +53 -0
- package/esm2022/lib/services/auth.service.mjs +141 -0
- package/esm2022/lib/services/notification.service.mjs +74 -0
- package/esm2022/lib/services/toast.service.mjs +83 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/tango-app-ui-shared.mjs +5 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +188 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +400 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared.mjs +12450 -0
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/guards/auth.guard.d.ts +10 -0
- package/lib/guards/lead.guard.d.ts +2 -0
- package/lib/guards/stores.guard.d.ts +2 -0
- package/lib/guards/tickets.guard.d.ts +2 -0
- package/{src/lib/i18n/index.ts → lib/i18n/index.d.ts} +2 -2
- package/lib/i18n/translation.module.d.ts +8 -0
- package/lib/i18n/translation.service.d.ts +19 -0
- package/lib/i18n/vocabs/ch.d.ts +104 -0
- package/lib/i18n/vocabs/de.d.ts +104 -0
- package/lib/i18n/vocabs/en.d.ts +104 -0
- package/lib/i18n/vocabs/es.d.ts +104 -0
- package/lib/i18n/vocabs/fr.d.ts +104 -0
- package/lib/i18n/vocabs/jp.d.ts +104 -0
- package/lib/interceptors/http-auth-interceptor.d.ts +19 -0
- package/lib/interfaces/global-state.d.ts +5 -0
- package/lib/modules/common/common-shared.module.d.ts +13 -0
- package/lib/modules/common/custom-select/custom-select.component.d.ts +33 -0
- package/lib/modules/common/filters/filters.component.d.ts +38 -0
- package/lib/modules/common/pagination/pagination.component.d.ts +18 -0
- package/lib/modules/errors/error403/error403.component.d.ts +14 -0
- package/lib/modules/errors/error404/error404.component.d.ts +15 -0
- package/lib/modules/errors/error500/error500.component.d.ts +15 -0
- package/lib/modules/errors/errors-routing.module.d.ts +7 -0
- package/lib/modules/errors/errors.component.d.ts +13 -0
- package/lib/modules/errors/errors.module.d.ts +13 -0
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +17 -0
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +9 -0
- package/lib/modules/intro/intro-routing.module.d.ts +7 -0
- package/lib/modules/intro/intro.module.d.ts +11 -0
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +31 -0
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +13 -0
- package/lib/modules/layout/content/content.component.d.ts +25 -0
- package/lib/modules/layout/footer/footer.component.d.ts +8 -0
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +18 -0
- package/lib/modules/layout/header/header.component.d.ts +30 -0
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +45 -0
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +25 -0
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +23 -0
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +13 -0
- package/lib/modules/layout/layout/layout.component.d.ts +82 -0
- package/lib/modules/layout/layout.module.d.ts +50 -0
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +19 -0
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +45 -0
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +26 -0
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +36 -0
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +48 -0
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +16 -0
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +103 -0
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +32 -0
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +33 -0
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +34 -0
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +24 -0
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +57 -0
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +93 -0
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +80 -0
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +83 -0
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +74 -0
- package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +97 -0
- package/lib/modules/notification/conformation/conformation.component.d.ts +10 -0
- package/lib/modules/notification/notification/notification.component.d.ts +63 -0
- package/lib/modules/notification/notification-routing.module.d.ts +7 -0
- package/lib/modules/notification/notification.module.d.ts +11 -0
- package/lib/pipes/customDate.pipe.d.ts +7 -0
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +7 -0
- package/lib/routes/routing.d.ts +3 -0
- package/lib/services/auth.service.d.ts +49 -0
- package/lib/services/notification.service.d.ts +30 -0
- package/lib/services/toast.service.d.ts +10 -0
- package/package.json +25 -12
- package/{src/public-api.ts → public-api.d.ts} +44 -71
- package/.eslintrc.json +0 -37
- package/ng-package.json +0 -7
- package/src/lib/guards/auth.guard.ts +0 -20
- package/src/lib/guards/lead.guard.ts +0 -16
- package/src/lib/guards/stores.guard.ts +0 -16
- package/src/lib/guards/tickets.guard.ts +0 -16
- package/src/lib/i18n/translation.module.ts +0 -9
- package/src/lib/i18n/translation.service.ts +0 -61
- package/src/lib/i18n/vocabs/ch.ts +0 -105
- package/src/lib/i18n/vocabs/de.ts +0 -105
- package/src/lib/i18n/vocabs/en.ts +0 -105
- package/src/lib/i18n/vocabs/es.ts +0 -105
- package/src/lib/i18n/vocabs/fr.ts +0 -105
- package/src/lib/i18n/vocabs/jp.ts +0 -105
- package/src/lib/interceptors/http-auth-interceptor.ts +0 -225
- package/src/lib/interfaces/global-state.ts +0 -6
- package/src/lib/modules/common/common-shared.module.ts +0 -20
- package/src/lib/modules/common/custom-select/custom-select.component.html +0 -42
- package/src/lib/modules/common/custom-select/custom-select.component.scss +0 -131
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +0 -23
- package/src/lib/modules/common/custom-select/custom-select.component.ts +0 -149
- package/src/lib/modules/common/filters/filters.component.html +0 -76
- package/src/lib/modules/common/filters/filters.component.scss +0 -131
- package/src/lib/modules/common/filters/filters.component.spec.ts +0 -23
- package/src/lib/modules/common/filters/filters.component.ts +0 -181
- package/src/lib/modules/common/pagination/pagination.component.html +0 -26
- package/src/lib/modules/common/pagination/pagination.component.scss +0 -63
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +0 -23
- package/src/lib/modules/common/pagination/pagination.component.ts +0 -46
- package/src/lib/modules/errors/error403/error403.component.html +0 -25
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +0 -23
- package/src/lib/modules/errors/error403/error403.component.ts +0 -28
- package/src/lib/modules/errors/error404/error404.component.html +0 -24
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +0 -25
- package/src/lib/modules/errors/error404/error404.component.ts +0 -50
- package/src/lib/modules/errors/error500/error500.component.html +0 -24
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +0 -25
- package/src/lib/modules/errors/error500/error500.component.ts +0 -50
- package/src/lib/modules/errors/errors-routing.module.ts +0 -40
- package/src/lib/modules/errors/errors.component.html +0 -15
- package/src/lib/modules/errors/errors.component.scss +0 -4
- package/src/lib/modules/errors/errors.component.spec.ts +0 -25
- package/src/lib/modules/errors/errors.component.ts +0 -42
- package/src/lib/modules/errors/errors.module.ts +0 -25
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +0 -16
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +0 -23
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +0 -43
- package/src/lib/modules/intro/contact-support/contact-support.component.html +0 -30
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +0 -60
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +0 -23
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +0 -17
- package/src/lib/modules/intro/intro-routing.module.ts +0 -16
- package/src/lib/modules/intro/intro.module.ts +0 -21
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +0 -325
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +0 -185
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +0 -23
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +0 -120
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +0 -44
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +0 -28
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +0 -23
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +0 -24
- package/src/lib/modules/layout/content/content.component.html +0 -12
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +0 -102
- package/src/lib/modules/layout/footer/footer.component.html +0 -29
- package/src/lib/modules/layout/footer/footer.component.scss +0 -7
- package/src/lib/modules/layout/footer/footer.component.spec.ts +0 -25
- package/src/lib/modules/layout/footer/footer.component.ts +0 -13
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +0 -27
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +0 -4
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +0 -38
- package/src/lib/modules/layout/header/header.component.html +0 -90
- package/src/lib/modules/layout/header/header.component.scss +0 -7
- package/src/lib/modules/layout/header/header.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header.component.ts +0 -139
- package/src/lib/modules/layout/header/navbar/navbar.component.html +0 -156
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -223
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +0 -23
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +0 -255
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +0 -200
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +0 -139
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +0 -76
- package/src/lib/modules/layout/header/page-title/page-title.component.html +0 -32
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +0 -11
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +0 -47
- package/src/lib/modules/layout/keenicon/icons.json +0 -1
- package/src/lib/modules/layout/keenicon/keenicon.component.html +0 -4
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +0 -23
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +0 -30
- package/src/lib/modules/layout/layout/layout.component.html +0 -71
- package/src/lib/modules/layout/layout/layout.component.scss +0 -23
- package/src/lib/modules/layout/layout/layout.component.ts +0 -425
- package/src/lib/modules/layout/layout.module.ts +0 -129
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +0 -81
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +0 -1
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +0 -75
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +0 -70
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -57
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +0 -136
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +0 -26
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +0 -36
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +0 -761
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -38
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +0 -130
- package/src/lib/modules/layout/sidebar/sidebar.component.html +0 -16
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -3
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +0 -203
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +0 -84
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +0 -69
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -238
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +0 -389
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +0 -4
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +0 -3
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +0 -91
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +0 -22
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +0 -156
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +0 -238
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +0 -14
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +0 -149
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +0 -183
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +0 -100
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +0 -12
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +0 -1555
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +0 -62
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +0 -77
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +0 -26
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +0 -235
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +0 -39
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +0 -188
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +0 -17
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +0 -172
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +0 -179
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +0 -4
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +0 -19
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +0 -105
- package/src/lib/modules/layout/toolbar/toolbar.component.html +0 -64
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +0 -25
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +0 -400
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +0 -1202
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +0 -199
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +0 -899
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +0 -204
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +0 -1045
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +0 -190
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +0 -825
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +0 -1242
- package/src/lib/modules/notification/conformation/conformation.component.html +0 -25
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +0 -23
- package/src/lib/modules/notification/conformation/conformation.component.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.html +0 -209
- package/src/lib/modules/notification/notification/notification.component.scss +0 -211
- package/src/lib/modules/notification/notification/notification.component.spec.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.ts +0 -310
- package/src/lib/modules/notification/notification-routing.module.ts +0 -20
- package/src/lib/modules/notification/notification.module.ts +0 -21
- package/src/lib/pipes/customDate.pipe.ts +0 -18
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +0 -10
- package/src/lib/routes/routing.ts +0 -56
- package/src/lib/services/auth.service.ts +0 -178
- package/src/lib/services/notification.service.spec.ts +0 -16
- package/src/lib/services/notification.service.ts +0 -73
- package/src/lib/services/toast.service.ts +0 -82
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<div class="outer-container">
|
|
2
|
-
<div [ngClass]="disabled ? 'disable-input':''" (click)="openDropdown($event)" class="form-select">
|
|
3
|
-
<ng-container *ngIf="multi" >
|
|
4
|
-
{{selectedValues?.length}} {{label}} Selected
|
|
5
|
-
</ng-container>
|
|
6
|
-
<ng-container *ngIf="!multi" >
|
|
7
|
-
{{selectedValues?.[0]?.[searchField]}}
|
|
8
|
-
</ng-container>
|
|
9
|
-
</div>
|
|
10
|
-
<div [ngClass]="showDropdown ? '' : 'd-none'" class="input-container dropdown" >
|
|
11
|
-
<div class="w-100 input-wrapper">
|
|
12
|
-
<input [(ngModel)]="searchValue" placeholder="Search" (input)="onInput($event)" type="text">
|
|
13
|
-
<svg class="search-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
14
|
-
<path d="M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z" stroke="#667085" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
15
|
-
</svg>
|
|
16
|
-
</div>
|
|
17
|
-
<ul>
|
|
18
|
-
<li *ngIf="multi && filteredValues?.length">
|
|
19
|
-
<label class="form-check" for="selectAll">
|
|
20
|
-
<input (change)="onSelectAll($event)" [checked]="checkIfAllSelected()" class="form-check-input me-3" type="checkbox"
|
|
21
|
-
id="selectAll">
|
|
22
|
-
<span class="form-check-label" >
|
|
23
|
-
Select All
|
|
24
|
-
</span>
|
|
25
|
-
</label>
|
|
26
|
-
</li>
|
|
27
|
-
<li *ngFor="let item of filteredValues" [ngClass]="item.isSelected && !multi ? 'selected' : ''" >
|
|
28
|
-
<label [for]="item[idField] + instanceId" [ngClass]="multi ? '': 'ps-0'" class="form-check">
|
|
29
|
-
<input [ngClass]="multi ? '': 'd-none'" (change)="onSelect($event, item)" [(ngModel)]="item.isSelected" class="form-check-input me-3" type="checkbox" value=""
|
|
30
|
-
[id]="item[idField] + instanceId">
|
|
31
|
-
<span class="form-check-label" >
|
|
32
|
-
{{item[searchField]}}
|
|
33
|
-
</span>
|
|
34
|
-
</label>
|
|
35
|
-
</li>
|
|
36
|
-
<li *ngIf="!filteredValues?.length" >
|
|
37
|
-
<span class="d-flex align-items-center justify-content-center" >No data found</span>
|
|
38
|
-
</li>
|
|
39
|
-
</ul>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
</div>
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
.outer-container {
|
|
8
|
-
// z-index: 1;
|
|
9
|
-
position: relative;
|
|
10
|
-
background-color: white;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.form-select {
|
|
14
|
-
font-size: 1.1rem;
|
|
15
|
-
font-weight: 600;
|
|
16
|
-
border-radius: 8px !important;
|
|
17
|
-
color: var(--Gray-500, #344054);
|
|
18
|
-
border: 1px solid var(--Gray-300, #D0D5DD) !important;
|
|
19
|
-
height: 42.5px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.disable-input{
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
background-color: #F9FAFB !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.input-container {
|
|
28
|
-
position: absolute;
|
|
29
|
-
width: 100%;
|
|
30
|
-
z-index: 1;
|
|
31
|
-
|
|
32
|
-
.input-wrapper {
|
|
33
|
-
padding: 8px 10px;
|
|
34
|
-
background-color: white;
|
|
35
|
-
border-top-right-radius: 8px;
|
|
36
|
-
border-top-left-radius: 8px;
|
|
37
|
-
border-top: 1px solid rgba(16, 24, 40, 0.08);
|
|
38
|
-
border-right: 1px solid rgba(16, 24, 40, 0.08);
|
|
39
|
-
border-left: 1px solid rgba(16, 24, 40, 0.08);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
input {
|
|
43
|
-
width: 100%;
|
|
44
|
-
border-radius: 8px;
|
|
45
|
-
border: 1px solid var(--Gray-300, #D0D5DD);
|
|
46
|
-
background: var(--White, #FFF);
|
|
47
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
48
|
-
padding: 10px 14px 10px 30px;
|
|
49
|
-
outline: none;
|
|
50
|
-
|
|
51
|
-
::placeholder {
|
|
52
|
-
color: var(--Gray-500, #667085);
|
|
53
|
-
font-family: Inter;
|
|
54
|
-
font-size: 14px;
|
|
55
|
-
font-weight: 500;
|
|
56
|
-
line-height: 20px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.search-icon {
|
|
61
|
-
position: absolute;
|
|
62
|
-
left: 20px;
|
|
63
|
-
top: 20px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
ul {
|
|
68
|
-
position: relative;
|
|
69
|
-
background-color: white;
|
|
70
|
-
margin: 0;
|
|
71
|
-
padding: 0;
|
|
72
|
-
max-height: 200px;
|
|
73
|
-
min-height: auto;
|
|
74
|
-
overflow-y: auto;
|
|
75
|
-
border-bottom-right-radius: 8px;
|
|
76
|
-
border-bottom-left-radius: 8px;
|
|
77
|
-
border-bottom: 1px solid rgba(16, 24, 40, 0.08);
|
|
78
|
-
border-right: 1px solid rgba(16, 24, 40, 0.08);
|
|
79
|
-
border-left: 1px solid rgba(16, 24, 40, 0.08);
|
|
80
|
-
|
|
81
|
-
.selected{
|
|
82
|
-
background: #F9FAFB;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
li {
|
|
86
|
-
list-style: none;
|
|
87
|
-
padding: 10px 16px;
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
|
|
90
|
-
label{
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
li:hover{
|
|
97
|
-
background: #F9FAFB;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.form-check {
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: center;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.form-check-input {
|
|
112
|
-
height: 16px;
|
|
113
|
-
width: 16px;
|
|
114
|
-
border-radius: 4px;
|
|
115
|
-
border: 1px solid var(--Primary-600, #00A3FF);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.form-check-input:checked {
|
|
119
|
-
--bs-form-check-bg-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB4SURBVHgBhY7NDUBQEIRnqcJNKXTg6qYTStCB+Isy6IQSNMDa9SLh5eWZZPcw+81kCX/quABhD73QyKXsGoyIvNCJSto2hEhNtY4N9cwYeMXEsVqB1GaSauRQOpty2tSmO3FgloAmF5nEhgyoesMO6CuFW66fn2xdFyA3ZzcRLrMAAAAASUVORK5CYII=');
|
|
120
|
-
background-color: #EAF8FF;
|
|
121
|
-
border-color: #00A3FF;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.form-check-label {
|
|
125
|
-
color: var(--Gray-700, #344054);
|
|
126
|
-
font-family: Inter;
|
|
127
|
-
font-size: 14px;
|
|
128
|
-
font-style: normal;
|
|
129
|
-
font-weight: 500;
|
|
130
|
-
line-height: 20px;
|
|
131
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { CustomSelectComponent } from './custom-select.component';
|
|
4
|
-
|
|
5
|
-
describe('CustomSelectComponent', () => {
|
|
6
|
-
let component: CustomSelectComponent;
|
|
7
|
-
let fixture: ComponentFixture<CustomSelectComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [CustomSelectComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(CustomSelectComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { AuthService } from '../../../services/auth.service';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'lib-select',
|
|
6
|
-
templateUrl: './custom-select.component.html',
|
|
7
|
-
styleUrl: './custom-select.component.scss',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
})
|
|
10
|
-
export class CustomSelectComponent implements OnChanges, OnInit {
|
|
11
|
-
|
|
12
|
-
@HostListener('document:click', ['$event'])
|
|
13
|
-
onClick(event: MouseEvent) {
|
|
14
|
-
const target = event.target as HTMLElement;
|
|
15
|
-
if (!target.closest('.dropdown')) {
|
|
16
|
-
this.showDropdown = false;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@Input() items: any
|
|
21
|
-
@Input() searchField: string
|
|
22
|
-
@Input() multi: boolean
|
|
23
|
-
@Input() idField: string
|
|
24
|
-
@Input() selectedValues: any = []
|
|
25
|
-
@Input() disabled: boolean | undefined
|
|
26
|
-
@Input() label: string
|
|
27
|
-
|
|
28
|
-
@Output() selected = new EventEmitter<any>()
|
|
29
|
-
filteredValues: any = []
|
|
30
|
-
showDropdown: boolean
|
|
31
|
-
searchValue: string
|
|
32
|
-
instanceId: any;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
constructor(private cd: ChangeDetectorRef, private authService:AuthService) { }
|
|
36
|
-
ngOnInit(): void {
|
|
37
|
-
this.instanceId = crypto.randomUUID();
|
|
38
|
-
this.authService.dropDownTrigger.subscribe((e)=>{
|
|
39
|
-
if(e !== this.instanceId){
|
|
40
|
-
this.showDropdown = false
|
|
41
|
-
this.cd.detectChanges()
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
ngOnChanges(changes: SimpleChanges): void {
|
|
47
|
-
|
|
48
|
-
if (changes['items'] && this.items?.length) {
|
|
49
|
-
this.initializeItems();
|
|
50
|
-
}
|
|
51
|
-
if (changes['selectedValues'] && Array.isArray(changes['selectedValues']?.currentValue) && changes['selectedValues']?.currentValue?.length > 0 && changes['selectedValues']?.currentValue[0]) {
|
|
52
|
-
this.updateSelectedValues();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
initializeItems() {
|
|
57
|
-
this.filteredValues = this.items.map((item: any) => ({ ...item }));
|
|
58
|
-
this.updateSelectedValues()
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
updateSelectedValues() {
|
|
62
|
-
this.selectedValues?.forEach((selectedItem: any) => {
|
|
63
|
-
const item = this.filteredValues?.find((filteredItem: any) => filteredItem?.[this.idField] === selectedItem?.[this.idField]);
|
|
64
|
-
if (item) {
|
|
65
|
-
item.isSelected = true;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
openDropdown(event: any) {
|
|
72
|
-
this.authService.dropDownTrigger.next(this.instanceId)
|
|
73
|
-
event.stopPropagation();
|
|
74
|
-
this.showDropdown = !this.showDropdown;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
onInput(event: any) {
|
|
78
|
-
if (!event.target.value) {
|
|
79
|
-
this.filteredValues = [...this.items];
|
|
80
|
-
} else {
|
|
81
|
-
const searchTerm = event.target.value.toLowerCase();
|
|
82
|
-
this.filteredValues = this.items.filter((item: any) =>
|
|
83
|
-
item[this.searchField].toLowerCase().includes(searchTerm)
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
this.updateSelectedValues();
|
|
87
|
-
this.cd.detectChanges();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
onSelect(event: any, item: any) {
|
|
91
|
-
if (this.multi) {
|
|
92
|
-
if (event.currentTarget.checked) {
|
|
93
|
-
this.selectedValues.push(item );
|
|
94
|
-
} else {
|
|
95
|
-
this.selectedValues = this.selectedValues.filter((elem: any) => elem[this.idField] !== item[this.idField]);
|
|
96
|
-
}
|
|
97
|
-
} else {
|
|
98
|
-
this.selectedValues = [{ ...item }];
|
|
99
|
-
this.filteredValues.forEach((element:any) => {
|
|
100
|
-
if(element[this.idField] !== item[this.idField]){
|
|
101
|
-
element.isSelected = false
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
this.showDropdown = false;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const valuesToEmit = this.selectedValues.map((value: any) => {
|
|
108
|
-
const selectedItem = { ...value };
|
|
109
|
-
delete selectedItem.isSelected;
|
|
110
|
-
return selectedItem;
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
this.cd.detectChanges();
|
|
114
|
-
this.emitSelectedValues(valuesToEmit);
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
onSelectAll(event: any) {
|
|
119
|
-
const selectAll = event.currentTarget.checked;
|
|
120
|
-
this.filteredValues.forEach((item: any) => item.isSelected = selectAll);
|
|
121
|
-
|
|
122
|
-
if (selectAll) {
|
|
123
|
-
this.selectedValues = [...this.filteredValues];
|
|
124
|
-
} else {
|
|
125
|
-
this.selectedValues = [];
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
const valuesToEmit = this.selectedValues.map((value: any) => {
|
|
129
|
-
const { isSelected, ...selectedItem } = value;
|
|
130
|
-
return selectedItem;
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
this.cd.detectChanges();
|
|
134
|
-
this.emitSelectedValues(valuesToEmit);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
emitSelectedValues(values: any[]) {
|
|
139
|
-
if (this.multi) {
|
|
140
|
-
this.selected.emit(values);
|
|
141
|
-
} else {
|
|
142
|
-
this.selected.emit(values[0]);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
checkIfAllSelected() {
|
|
147
|
-
return this.filteredValues.every((item: any) => item.isSelected);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
<div class="position-relative">
|
|
2
|
-
|
|
3
|
-
<button type="button" (click)="opendropdown($event)"
|
|
4
|
-
class="btn btn-default bg-white mx-2 btn-outline btn-outline-default rounded-3 text-nowrap border-val"><svg
|
|
5
|
-
class="pl-3" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
6
|
-
<path d="M5 10H15M2.5 5H17.5M7.5 15H12.5" stroke="#344054" stroke-width="2"
|
|
7
|
-
stroke-linecap="round" stroke-linejoin="round" />
|
|
8
|
-
</svg>
|
|
9
|
-
<span class="ms-2">Filter</span> </button>
|
|
10
|
-
<div class="card p-5 dropdown1 position-absolute z-1 end-0" style="z-index: 1 !important;" *ngIf="Opendropdown">
|
|
11
|
-
<div class="dropdown-title d-flex justify-content-between">Filter Options
|
|
12
|
-
<!-- <div class="text-end"> -->
|
|
13
|
-
<button class="btn btn-outline w-25 ms-3 btn-resize" (click)="Reset()"> Reset </button>
|
|
14
|
-
<button class="btn btn-primary w-25 btn-resize" (click)="Apply()">Apply</button>
|
|
15
|
-
<!-- </div> -->
|
|
16
|
-
</div>
|
|
17
|
-
<div class="w-100 border border-gray mt-3"></div>
|
|
18
|
-
<div class="py-3" *ngFor="let item of dataObject; let i = index">
|
|
19
|
-
<div *ngIf="item.type !== 'single'">
|
|
20
|
-
<div class="dropdown form-select position-relative d-flex justify-content-between cursor-pointer" (click)="Dropdown(item.Description,i,$event)">
|
|
21
|
-
<!-- <span class="">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ? selectedValuesArray[i]?.length + ' ' + item.Description.split(' ').pop() + ' Selected' : item.Description }}</span> -->
|
|
22
|
-
<span>{{item.Description}}</span> <span *ngIf="selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined && selectedValuesArray[i]?.length !== 0" class="badge badge-light-default">{{selectedValuesArray[i]?.length}}</span>
|
|
23
|
-
</div>
|
|
24
|
-
<div *ngIf="item.isOpen" class="dropdown-content position-absolute w-100">
|
|
25
|
-
<div class="form-check d-flex align-items-center py-3 pt-3 ps-0">
|
|
26
|
-
<input class="form-check-input cursor-pointer" type="checkbox" value="Select All" id="selectall{{i}}" [checked]="selectedValuesArray[i]?.length === item.Issues.length"
|
|
27
|
-
(change)="toggleCheckbox($event,'Select All', i,0)">
|
|
28
|
-
<label class="form-check-label cursor-pointer px-2" for="selectall{{i}}">
|
|
29
|
-
Select All
|
|
30
|
-
</label>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<div class="border border-gray mt-3 "></div>
|
|
34
|
-
|
|
35
|
-
<div class="mt-3 d-flex align-items-center">
|
|
36
|
-
<span class="svg-icon svg-icon-1 position-absolute ms-3 mt-2">
|
|
37
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
38
|
-
<path d="M14 14.5L11.1 11.6M12.6667 7.83333C12.6667 10.7789 10.2789 13.1667 7.33333 13.1667C4.38781 13.1667 2 10.7789 2 7.83333C2 4.88781 4.38781 2.5 7.33333 2.5C10.2789 2.5 12.6667 4.88781 12.6667 7.83333Z" stroke="#667085" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
39
|
-
</svg>
|
|
40
|
-
</span>
|
|
41
|
-
<input type="text" [(ngModel)]="dataObject[i].selectedValue" (input)="searchData($event,i)" [id]="i" class="form-control searchinput ps-14 py-2 me-2 mt-2"
|
|
42
|
-
placeholder="Search" autocomplete="off" />
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div *ngFor="let issue of item.Issues;let j=index" class="form-check d-flex align-items-center py-3 pt-3 ps-0 mt-2 ">
|
|
46
|
-
<input class="form-check-input cursor-pointer" type="checkbox" [value]="issue.text" id="option{{issue.text}}" [checked]="issue.checked"
|
|
47
|
-
(change)="toggleCheckbox($event,issue.text,i,j)">
|
|
48
|
-
<label class="form-check-label cursor-pointer px-2" for="option{{issue.text}}">
|
|
49
|
-
{{ issue.text }}
|
|
50
|
-
</label>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="mt-5 d-flex justify-content-center">
|
|
53
|
-
<span class="form-check-label" *ngIf="noFilter"> No filters available</span>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
<div *ngIf="item.type === 'single'" class="position-relative w-100">
|
|
58
|
-
<button type="button" (click)="openDropdown($event,i)"
|
|
59
|
-
class="btn btn-default w-100 btn-outline btn-outline-default rounded-3 text-nowrap border-val d-flex justify-content-between"> {{selectedValuesArray[i]?.text ? selectedValuesArray[i]?.text : item.Description}}
|
|
60
|
-
<span><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
61
|
-
<path d="M5 7.5L10 12.5L15 7.5" stroke="#667085" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
62
|
-
</svg></span>
|
|
63
|
-
</button>
|
|
64
|
-
<div *ngIf="item.isOpen" class="card py-1 w-100 dropdown-single position-absolute z-1 top-50px end-0">
|
|
65
|
-
<ul *ngFor="let item of item.Issues; let j = index" class="list-unstyled">
|
|
66
|
-
<li [ngClass]="selectedValuesArray[i]?.text === item.text ? 'active' : ''" class="camera px-5 items fw-semibold cursor-pointer py-2" (click)="selectItem($event,i,j)">{{item.text}}</li>
|
|
67
|
-
</ul>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
<!-- <div role="group" class="d-flex justify-content-between">
|
|
72
|
-
<button class="btn btn-outline w-100 me-2" (click)="Reset()"> Reset </button>
|
|
73
|
-
<button class="btn btn-primary w-100 ms-2" (click)="Apply()">Apply</button>
|
|
74
|
-
</div> -->
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
.dropdown1 {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 53px !important;
|
|
4
|
-
// right: 14.5%;
|
|
5
|
-
min-width: 270px !important;
|
|
6
|
-
|
|
7
|
-
.dropdown-title {
|
|
8
|
-
color: var(--Gray-900, #101828);
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
font-weight: 600;
|
|
11
|
-
line-height: 24px
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.dropdown {
|
|
15
|
-
position: relative;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
|
|
18
|
-
span {
|
|
19
|
-
color: var(--Gray-700, #344054);
|
|
20
|
-
font-size: 14px;
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
line-height: 20px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dropdown-content {
|
|
27
|
-
// display: none;
|
|
28
|
-
// position: absolute;
|
|
29
|
-
// left:0;
|
|
30
|
-
width: 90% !important;
|
|
31
|
-
z-index: 1;
|
|
32
|
-
padding: 10px;
|
|
33
|
-
background-color: white;
|
|
34
|
-
border-radius: 8px;
|
|
35
|
-
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
36
|
-
height:200px;
|
|
37
|
-
overflow: auto;
|
|
38
|
-
|
|
39
|
-
label {
|
|
40
|
-
color: var(--Gray-700, #344054);
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
line-height: 20px;
|
|
44
|
-
text-transform: capitalize;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.items:hover,.tems.focus,.items.active,.camera.focus-visible{
|
|
49
|
-
background: var(--Gray-50, #F9FAFB);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.dropdown-content a {
|
|
53
|
-
color: black;
|
|
54
|
-
padding: 12px 16px;
|
|
55
|
-
text-decoration: none;
|
|
56
|
-
display: block;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.dropdown button {
|
|
60
|
-
padding: 10px;
|
|
61
|
-
font-size: 16px;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
input[type='checkbox'] {
|
|
66
|
-
width: 16px !important;
|
|
67
|
-
height: 16px !important;
|
|
68
|
-
margin: -3px 5px;
|
|
69
|
-
border-radius: 4px !important;
|
|
70
|
-
-webkit-appearance: none;
|
|
71
|
-
-moz-appearance: none;
|
|
72
|
-
-o-appearance: none;
|
|
73
|
-
appearance: none;
|
|
74
|
-
outline: 1px solid var(--gray-300, #D0D5DD);
|
|
75
|
-
box-shadow: none;
|
|
76
|
-
font-size: 0.8em;
|
|
77
|
-
text-align: center;
|
|
78
|
-
line-height: 1em;
|
|
79
|
-
background: white;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
input[type='checkbox']:checked {
|
|
83
|
-
outline: 1px solid var(--primary-600, #00A3FF);
|
|
84
|
-
background-color: var(--primary-50, #EAF8FF);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
input[type='checkbox']:checked:after {
|
|
88
|
-
content: '';
|
|
89
|
-
transform: rotate(45deg);
|
|
90
|
-
border-bottom: 2px solid #00A3FF;
|
|
91
|
-
border-right: 2px solid #00A3FF;
|
|
92
|
-
display: inline-block;
|
|
93
|
-
width: 0.2em;
|
|
94
|
-
padding-left: 0px;
|
|
95
|
-
padding-top: 9px;
|
|
96
|
-
padding-right: 4px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
::ng-deep .dropdown1{
|
|
101
|
-
z-index: 1 !important;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.btn-resize{
|
|
105
|
-
font-size: 13px !important;
|
|
106
|
-
height: 29px !important;
|
|
107
|
-
line-height: 11px !important;
|
|
108
|
-
padding: 1px !important;
|
|
109
|
-
}
|
|
110
|
-
.dropdown-single{
|
|
111
|
-
// display: none;
|
|
112
|
-
// position: absolute;
|
|
113
|
-
// left:0;
|
|
114
|
-
// width: 90% !important;
|
|
115
|
-
z-index: 1;
|
|
116
|
-
padding: 10px;
|
|
117
|
-
background-color: white;
|
|
118
|
-
border-radius: 8px;
|
|
119
|
-
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
120
|
-
min-height: auto;
|
|
121
|
-
max-height:200px;
|
|
122
|
-
overflow: auto;
|
|
123
|
-
|
|
124
|
-
label {
|
|
125
|
-
color: var(--Gray-700, #344054);
|
|
126
|
-
font-size: 14px;
|
|
127
|
-
font-weight: 500;
|
|
128
|
-
line-height: 20px;
|
|
129
|
-
text-transform: capitalize;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { FiltersComponent } from './filters.component';
|
|
4
|
-
|
|
5
|
-
describe('FiltersComponent', () => {
|
|
6
|
-
let component: FiltersComponent;
|
|
7
|
-
let fixture: ComponentFixture<FiltersComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [FiltersComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(FiltersComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|