tango-app-ui-shared 3.7.3-dev6-demo7 → 3.7.3-dev6-demo9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/guards/auth.guard.mjs +26 -0
- package/esm2022/lib/guards/lead.guard.mjs +16 -0
- package/esm2022/lib/guards/stores.guard.mjs +16 -0
- package/esm2022/lib/guards/tickets.guard.mjs +16 -0
- package/esm2022/lib/i18n/index.mjs +3 -0
- package/esm2022/lib/i18n/translation.module.mjs +17 -0
- package/esm2022/lib/i18n/translation.service.mjs +53 -0
- package/esm2022/lib/i18n/vocabs/ch.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/de.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/en.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/es.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/fr.mjs +106 -0
- package/esm2022/lib/i18n/vocabs/jp.mjs +106 -0
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +124 -0
- package/esm2022/lib/interfaces/global-state.mjs +2 -0
- package/esm2022/lib/modules/common/common-shared.module.mjs +31 -0
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +155 -0
- package/esm2022/lib/modules/common/filters/filters.component.mjs +179 -0
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +49 -0
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +33 -0
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +44 -0
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +45 -0
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +48 -0
- package/esm2022/lib/modules/errors/errors.component.mjs +39 -0
- package/esm2022/lib/modules/errors/errors.module.mjs +37 -0
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +44 -0
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +19 -0
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +24 -0
- package/esm2022/lib/modules/intro/intro.module.mjs +32 -0
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +110 -0
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +31 -0
- package/esm2022/lib/modules/layout/content/content.component.mjs +107 -0
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +17 -0
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +41 -0
- package/esm2022/lib/modules/layout/header/header.component.mjs +100 -0
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +256 -0
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +79 -0
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +56 -0
- package/esm2022/lib/modules/layout/keenicon/icons.json +1 -0
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +37 -0
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +314 -0
- package/esm2022/lib/modules/layout/layout.module.mjs +198 -0
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +74 -0
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +74 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +159 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +45 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +122 -0
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +134 -0
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +16 -0
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +331 -0
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +88 -0
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +207 -0
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +158 -0
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +15 -0
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +1321 -0
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +18 -0
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +216 -0
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +178 -0
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +166 -0
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +105 -0
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +372 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +1062 -0
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +795 -0
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +880 -0
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +729 -0
- package/esm2022/lib/modules/layout/toolbar/zone-header/zone-header.component.mjs +1090 -0
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +22 -0
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +317 -0
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +28 -0
- package/esm2022/lib/modules/notification/notification.module.mjs +32 -0
- package/esm2022/lib/pipes/customDate.pipe.mjs +22 -0
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +18 -0
- package/esm2022/lib/routes/routing.mjs +53 -0
- package/esm2022/lib/services/auth.service.mjs +141 -0
- package/esm2022/lib/services/notification.service.mjs +74 -0
- package/esm2022/lib/services/toast.service.mjs +83 -0
- package/esm2022/public-api.mjs +56 -0
- package/esm2022/tango-app-ui-shared.mjs +5 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +188 -0
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +400 -0
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +21 -0
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +1 -0
- package/fesm2022/tango-app-ui-shared.mjs +12440 -0
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/guards/auth.guard.d.ts +10 -0
- package/lib/guards/lead.guard.d.ts +2 -0
- package/lib/guards/stores.guard.d.ts +2 -0
- package/lib/guards/tickets.guard.d.ts +2 -0
- package/{src/lib/i18n/index.ts → lib/i18n/index.d.ts} +2 -2
- package/lib/i18n/translation.module.d.ts +8 -0
- package/lib/i18n/translation.service.d.ts +19 -0
- package/lib/i18n/vocabs/ch.d.ts +104 -0
- package/lib/i18n/vocabs/de.d.ts +104 -0
- package/lib/i18n/vocabs/en.d.ts +104 -0
- package/lib/i18n/vocabs/es.d.ts +104 -0
- package/lib/i18n/vocabs/fr.d.ts +104 -0
- package/lib/i18n/vocabs/jp.d.ts +104 -0
- package/lib/interceptors/http-auth-interceptor.d.ts +19 -0
- package/lib/interfaces/global-state.d.ts +5 -0
- package/lib/modules/common/common-shared.module.d.ts +13 -0
- package/lib/modules/common/custom-select/custom-select.component.d.ts +33 -0
- package/lib/modules/common/filters/filters.component.d.ts +38 -0
- package/lib/modules/common/pagination/pagination.component.d.ts +18 -0
- package/lib/modules/errors/error403/error403.component.d.ts +14 -0
- package/lib/modules/errors/error404/error404.component.d.ts +15 -0
- package/lib/modules/errors/error500/error500.component.d.ts +15 -0
- package/lib/modules/errors/errors-routing.module.d.ts +7 -0
- package/lib/modules/errors/errors.component.d.ts +13 -0
- package/lib/modules/errors/errors.module.d.ts +13 -0
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +17 -0
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +9 -0
- package/lib/modules/intro/intro-routing.module.d.ts +7 -0
- package/lib/modules/intro/intro.module.d.ts +11 -0
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +31 -0
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +13 -0
- package/lib/modules/layout/content/content.component.d.ts +25 -0
- package/lib/modules/layout/footer/footer.component.d.ts +8 -0
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +18 -0
- package/lib/modules/layout/header/header.component.d.ts +30 -0
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +45 -0
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +25 -0
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +23 -0
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +13 -0
- package/lib/modules/layout/layout/layout.component.d.ts +82 -0
- package/lib/modules/layout/layout.module.d.ts +50 -0
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +19 -0
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +45 -0
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +19 -0
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +26 -0
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +36 -0
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +48 -0
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +16 -0
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +28 -0
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +8 -0
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +103 -0
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +9 -0
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +32 -0
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +33 -0
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +34 -0
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +24 -0
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +57 -0
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +93 -0
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +80 -0
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +83 -0
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +74 -0
- package/lib/modules/layout/toolbar/zone-header/zone-header.component.d.ts +97 -0
- package/lib/modules/notification/conformation/conformation.component.d.ts +10 -0
- package/lib/modules/notification/notification/notification.component.d.ts +63 -0
- package/lib/modules/notification/notification-routing.module.d.ts +7 -0
- package/lib/modules/notification/notification.module.d.ts +11 -0
- package/lib/pipes/customDate.pipe.d.ts +7 -0
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +7 -0
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +7 -0
- package/lib/routes/routing.d.ts +3 -0
- package/lib/services/auth.service.d.ts +49 -0
- package/lib/services/notification.service.d.ts +30 -0
- package/lib/services/toast.service.d.ts +10 -0
- package/package.json +25 -12
- package/{src/public-api.ts → public-api.d.ts} +44 -71
- package/.eslintrc.json +0 -37
- package/ng-package.json +0 -7
- package/src/lib/guards/auth.guard.ts +0 -20
- package/src/lib/guards/lead.guard.ts +0 -16
- package/src/lib/guards/stores.guard.ts +0 -16
- package/src/lib/guards/tickets.guard.ts +0 -16
- package/src/lib/i18n/translation.module.ts +0 -9
- package/src/lib/i18n/translation.service.ts +0 -61
- package/src/lib/i18n/vocabs/ch.ts +0 -105
- package/src/lib/i18n/vocabs/de.ts +0 -105
- package/src/lib/i18n/vocabs/en.ts +0 -105
- package/src/lib/i18n/vocabs/es.ts +0 -105
- package/src/lib/i18n/vocabs/fr.ts +0 -105
- package/src/lib/i18n/vocabs/jp.ts +0 -105
- package/src/lib/interceptors/http-auth-interceptor.ts +0 -225
- package/src/lib/interfaces/global-state.ts +0 -6
- package/src/lib/modules/common/common-shared.module.ts +0 -20
- package/src/lib/modules/common/custom-select/custom-select.component.html +0 -42
- package/src/lib/modules/common/custom-select/custom-select.component.scss +0 -131
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +0 -23
- package/src/lib/modules/common/custom-select/custom-select.component.ts +0 -149
- package/src/lib/modules/common/filters/filters.component.html +0 -76
- package/src/lib/modules/common/filters/filters.component.scss +0 -131
- package/src/lib/modules/common/filters/filters.component.spec.ts +0 -23
- package/src/lib/modules/common/filters/filters.component.ts +0 -181
- package/src/lib/modules/common/pagination/pagination.component.html +0 -26
- package/src/lib/modules/common/pagination/pagination.component.scss +0 -63
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +0 -23
- package/src/lib/modules/common/pagination/pagination.component.ts +0 -46
- package/src/lib/modules/errors/error403/error403.component.html +0 -25
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +0 -23
- package/src/lib/modules/errors/error403/error403.component.ts +0 -28
- package/src/lib/modules/errors/error404/error404.component.html +0 -24
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +0 -25
- package/src/lib/modules/errors/error404/error404.component.ts +0 -50
- package/src/lib/modules/errors/error500/error500.component.html +0 -24
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +0 -25
- package/src/lib/modules/errors/error500/error500.component.ts +0 -50
- package/src/lib/modules/errors/errors-routing.module.ts +0 -40
- package/src/lib/modules/errors/errors.component.html +0 -15
- package/src/lib/modules/errors/errors.component.scss +0 -4
- package/src/lib/modules/errors/errors.component.spec.ts +0 -25
- package/src/lib/modules/errors/errors.component.ts +0 -42
- package/src/lib/modules/errors/errors.module.ts +0 -25
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +0 -16
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +0 -23
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +0 -43
- package/src/lib/modules/intro/contact-support/contact-support.component.html +0 -30
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +0 -60
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +0 -23
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +0 -17
- package/src/lib/modules/intro/intro-routing.module.ts +0 -16
- package/src/lib/modules/intro/intro.module.ts +0 -21
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +0 -325
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +0 -185
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +0 -23
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +0 -120
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +0 -44
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +0 -28
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +0 -23
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +0 -24
- package/src/lib/modules/layout/content/content.component.html +0 -12
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +0 -102
- package/src/lib/modules/layout/footer/footer.component.html +0 -29
- package/src/lib/modules/layout/footer/footer.component.scss +0 -7
- package/src/lib/modules/layout/footer/footer.component.spec.ts +0 -25
- package/src/lib/modules/layout/footer/footer.component.ts +0 -13
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +0 -27
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +0 -4
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +0 -38
- package/src/lib/modules/layout/header/header.component.html +0 -90
- package/src/lib/modules/layout/header/header.component.scss +0 -7
- package/src/lib/modules/layout/header/header.component.spec.ts +0 -25
- package/src/lib/modules/layout/header/header.component.ts +0 -139
- package/src/lib/modules/layout/header/navbar/navbar.component.html +0 -156
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +0 -223
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +0 -23
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +0 -255
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +0 -200
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +0 -139
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +0 -76
- package/src/lib/modules/layout/header/page-title/page-title.component.html +0 -32
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +0 -11
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +0 -47
- package/src/lib/modules/layout/keenicon/icons.json +0 -1
- package/src/lib/modules/layout/keenicon/keenicon.component.html +0 -4
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +0 -23
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +0 -30
- package/src/lib/modules/layout/layout/layout.component.html +0 -71
- package/src/lib/modules/layout/layout/layout.component.scss +0 -23
- package/src/lib/modules/layout/layout/layout.component.ts +0 -425
- package/src/lib/modules/layout/layout.module.ts +0 -129
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +0 -81
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +0 -1
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +0 -75
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +0 -70
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +0 -57
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +0 -136
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +0 -26
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +0 -36
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +0 -761
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +0 -38
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +0 -130
- package/src/lib/modules/layout/sidebar/sidebar.component.html +0 -16
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +0 -3
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +0 -23
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +0 -203
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +0 -84
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +0 -69
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +0 -238
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +0 -389
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +0 -4
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +0 -3
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +0 -91
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +0 -22
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +0 -156
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +0 -238
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +0 -14
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +0 -149
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +0 -183
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +0 -100
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +0 -12
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +0 -1555
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +0 -62
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +0 -77
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +0 -14
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +0 -26
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +0 -235
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +0 -39
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +0 -176
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +0 -188
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +0 -17
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +0 -172
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +0 -179
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +0 -4
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +0 -19
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +0 -105
- package/src/lib/modules/layout/toolbar/toolbar.component.html +0 -64
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +0 -25
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +0 -400
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +0 -1202
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +0 -199
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +0 -899
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +0 -204
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +0 -1045
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +0 -190
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +0 -311
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +0 -825
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +0 -259
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +0 -305
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +0 -23
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +0 -1242
- package/src/lib/modules/notification/conformation/conformation.component.html +0 -25
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +0 -23
- package/src/lib/modules/notification/conformation/conformation.component.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.html +0 -209
- package/src/lib/modules/notification/notification/notification.component.scss +0 -211
- package/src/lib/modules/notification/notification/notification.component.spec.ts +0 -23
- package/src/lib/modules/notification/notification/notification.component.ts +0 -310
- package/src/lib/modules/notification/notification-routing.module.ts +0 -20
- package/src/lib/modules/notification/notification.module.ts +0 -21
- package/src/lib/pipes/customDate.pipe.ts +0 -18
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +0 -12
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +0 -11
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +0 -10
- package/src/lib/routes/routing.ts +0 -56
- package/src/lib/services/auth.service.ts +0 -178
- package/src/lib/services/notification.service.spec.ts +0 -16
- package/src/lib/services/notification.service.ts +0 -73
- package/src/lib/services/toast.service.ts +0 -82
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { Component, ElementRef, EventEmitter, HostListener, Input, OnInit, Output, Renderer2,ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'lib-filters',
|
|
6
|
-
templateUrl: './filters.component.html',
|
|
7
|
-
styleUrl: './filters.component.scss'
|
|
8
|
-
})
|
|
9
|
-
export class FiltersComponent implements OnInit {
|
|
10
|
-
@Input() dataObject: any[] = [];
|
|
11
|
-
@Output() appliedFilters = new EventEmitter()
|
|
12
|
-
Opendropdown: boolean = false;
|
|
13
|
-
|
|
14
|
-
showdropdown: any;
|
|
15
|
-
selectedValues: string[] = [];
|
|
16
|
-
searchTerms: string[] = [];
|
|
17
|
-
selectedValuesArray: any[] = [];
|
|
18
|
-
searchValue:any;
|
|
19
|
-
selectedItem:any;
|
|
20
|
-
dropDown: boolean = false;
|
|
21
|
-
dummyArray:any[] = [];
|
|
22
|
-
noFilter:boolean = false;
|
|
23
|
-
responseArray:any[] = []
|
|
24
|
-
productModule: any;
|
|
25
|
-
product: any;
|
|
26
|
-
selectedProductCount: string;
|
|
27
|
-
constructor(private elementRef: ElementRef,
|
|
28
|
-
private renderer: Renderer2,
|
|
29
|
-
private router: Router,
|
|
30
|
-
private cd:ChangeDetectorRef) {
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@HostListener('document:click', ['$event'])
|
|
34
|
-
onClick (event: MouseEvent) {
|
|
35
|
-
const
|
|
36
|
-
target = event.target as HTMLElement;
|
|
37
|
-
if(!target.closest('.dropdown1')) {
|
|
38
|
-
this.Opendropdown = false;
|
|
39
|
-
}
|
|
40
|
-
if(!target.closest('.dropdown-content')){
|
|
41
|
-
this.dataObject.forEach((item: any, i: any) => {
|
|
42
|
-
item.isOpen = false;
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ngOnInit() {
|
|
49
|
-
this.dataObject.forEach((item:any)=>{
|
|
50
|
-
let selectedList = item?.Issues.filter((data:any)=> data?.checked)
|
|
51
|
-
this.selectedValuesArray.push(selectedList)
|
|
52
|
-
})
|
|
53
|
-
this.dummyArray = JSON.parse(JSON.stringify(this.dataObject))
|
|
54
|
-
this.responseArray = JSON.parse(JSON.stringify(this.dataObject))
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
selectItem(event:any,index:any,subIndex:any){
|
|
58
|
-
this.selectedValuesArray[index] = this.dataObject[index].Issues[subIndex];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
openDropdown(event:MouseEvent,index:any){
|
|
62
|
-
event.stopPropagation();
|
|
63
|
-
this.dataObject.forEach((item: any, i: any) => {
|
|
64
|
-
if (i !== index) {
|
|
65
|
-
item.isOpen = false; // Close other dropdowns
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
this.dataObject[index].isOpen = !this.dataObject[index].isOpen;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
opendropdown(e:MouseEvent) {
|
|
73
|
-
e.stopPropagation();
|
|
74
|
-
this.Opendropdown = !this.Opendropdown;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
Dropdown(value: any, index: number,event:MouseEvent) {
|
|
78
|
-
event.stopPropagation();
|
|
79
|
-
this.dataObject.forEach((item: any, i: any) => {
|
|
80
|
-
if (i !== index) {
|
|
81
|
-
item.isOpen = false; // Close other dropdowns
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
this.dataObject[index].isOpen = !this.dataObject[index].isOpen;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
toggleCheckbox(event: any, issue: any, index: number, subIndex: number) {
|
|
88
|
-
if(!this.selectedValuesArray.length) {
|
|
89
|
-
this.dataObject.forEach((item:any)=>{
|
|
90
|
-
let selectedList = item?.Issues.filter((data:any)=> data?.checked)
|
|
91
|
-
this.selectedValuesArray.push(selectedList)
|
|
92
|
-
})
|
|
93
|
-
}
|
|
94
|
-
const currentIssues = this.dataObject[index].Issues;
|
|
95
|
-
this.selectedValuesArray[index] = this.selectedValuesArray[index];
|
|
96
|
-
const selectedValues = this.selectedValuesArray[index]; // Retrieve selected values array for the current dropdown index
|
|
97
|
-
if (issue === 'Select All') {
|
|
98
|
-
const checkedState = event.target.checked;
|
|
99
|
-
this.dataObject[index].Issues.forEach((item: any) => {
|
|
100
|
-
item.checked = checkedState;
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
if (checkedState) {
|
|
104
|
-
this.selectedValuesArray[index] = currentIssues.slice(); // Copy all items
|
|
105
|
-
} else {
|
|
106
|
-
this.selectedValuesArray[index] = []; // Deselect all items
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
this.dataObject[index].Issues[subIndex].checked = event.target.checked;
|
|
110
|
-
let checkedData = this.dataObject[index].Issues[subIndex];
|
|
111
|
-
|
|
112
|
-
if(this.dataObject[index].Issues[subIndex].checked){
|
|
113
|
-
this.selectedValuesArray[index].push(checkedData)
|
|
114
|
-
}
|
|
115
|
-
else{
|
|
116
|
-
this.selectedValuesArray[index] = this.selectedValuesArray[index].filter((el:any)=>
|
|
117
|
-
el?.checked === true && el?.text != issue
|
|
118
|
-
)
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const selectAllId = `selectall${index}`;
|
|
124
|
-
const selectAllElement = document.getElementById(selectAllId) as HTMLInputElement;
|
|
125
|
-
if (selectAllElement) {
|
|
126
|
-
selectAllElement.checked = selectedValues.length === currentIssues.length;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Update checkboxes based on selected values
|
|
130
|
-
currentIssues.forEach((item: string) => {
|
|
131
|
-
const isChecked = this.selectedValuesArray[index].includes(item);
|
|
132
|
-
const checkboxId = `option${item}`;
|
|
133
|
-
const checkboxElement = document.getElementById(checkboxId) as HTMLInputElement;
|
|
134
|
-
if (checkboxElement) {
|
|
135
|
-
checkboxElement.checked = isChecked;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
Reset() {
|
|
141
|
-
this.selectedValuesArray.forEach((item:any) => {
|
|
142
|
-
if(item?.length){item.forEach((data:any)=>{data.checked = false;})
|
|
143
|
-
}
|
|
144
|
-
})
|
|
145
|
-
this.selectedValuesArray = [];
|
|
146
|
-
this.Opendropdown = false;
|
|
147
|
-
this.responseArray.forEach((item:any,index:any)=>{
|
|
148
|
-
item.Issues = this.selectedValuesArray[index] ? this.selectedValuesArray[index] :[]
|
|
149
|
-
})
|
|
150
|
-
this.appliedFilters.emit(this.responseArray)
|
|
151
|
-
}
|
|
152
|
-
searchData(event:any,i:any){
|
|
153
|
-
const searchTerm = event.target.value.trim(); // Trim whitespace
|
|
154
|
-
const filteredIssues = this.dummyArray[i]?.Issues.filter((item:any) => {
|
|
155
|
-
let findChecked = this.selectedValuesArray[i]?.find((issue:any) => issue.text == item.text );
|
|
156
|
-
if(findChecked) {
|
|
157
|
-
item.checked = findChecked?.checked ? findChecked?.checked : false;
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
item.checked = false;
|
|
161
|
-
}
|
|
162
|
-
return new RegExp(searchTerm,'i').test(item.text);
|
|
163
|
-
});
|
|
164
|
-
this.dataObject[i].Issues = filteredIssues;
|
|
165
|
-
if(filteredIssues.length){
|
|
166
|
-
this.noFilter = false;
|
|
167
|
-
}else{
|
|
168
|
-
this.noFilter = true;
|
|
169
|
-
}
|
|
170
|
-
this.cd.detectChanges();
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
Apply() {
|
|
174
|
-
this.Opendropdown = false;
|
|
175
|
-
this.responseArray.forEach((item:any,index:any)=>{
|
|
176
|
-
item.Issues = this.selectedValuesArray[index] ? this.selectedValuesArray[index] :[]
|
|
177
|
-
})
|
|
178
|
-
this.appliedFilters.emit(this.responseArray)
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<div class="container d-flex justify-content-center">
|
|
2
|
-
<div class="mt-4 text-center">
|
|
3
|
-
<span class="sub-title me-3">Displaying</span>
|
|
4
|
-
<select class="border-val" [(ngModel)]="pageSize" (ngModelChange)="onPageSizeChange($event)" >
|
|
5
|
-
<option value="{{ size }}" *ngFor="let size of paginationSizes" >{{ size }}</option>
|
|
6
|
-
<!-- [disabled]="disableOption(size)" -->
|
|
7
|
-
</select>
|
|
8
|
-
<span class="ms-3 sub-title">out of {{ totalItems }} items</span>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div class="text-center">
|
|
12
|
-
<ul>
|
|
13
|
-
<li *ngFor="let item of collection | paginate: { id:instanceId, itemsPerPage: itemsPerPage, currentPage: currentPage, totalItems: totalItems }">
|
|
14
|
-
<!-- Your item template here -->
|
|
15
|
-
</li>
|
|
16
|
-
</ul>
|
|
17
|
-
<pagination-controls
|
|
18
|
-
(pageChange)="onPageChange($event); currentPage=$event;"
|
|
19
|
-
[id]="instanceId"
|
|
20
|
-
[directionLinks]="directionLinks"
|
|
21
|
-
[maxSize]="7"
|
|
22
|
-
[responsive]="true">
|
|
23
|
-
</pagination-controls>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
::ng-deep .ngx-pagination .current {
|
|
2
|
-
padding: 12px !important;
|
|
3
|
-
background: #EAF8FF !important;
|
|
4
|
-
cursor: default;
|
|
5
|
-
color: #00A3FF !important;
|
|
6
|
-
min-width:50px !important;
|
|
7
|
-
max-width: auto !important;
|
|
8
|
-
height: 45px;
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
background: var(--Primary-50, #EAF8FF);
|
|
11
|
-
color: var(--Primary-600, #00A3FF) !important;
|
|
12
|
-
text-align: center;
|
|
13
|
-
font-size: 14px !important;
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
line-height: 20px;
|
|
17
|
-
}
|
|
18
|
-
::ng-deep .ngx-pagination a:hover, .ngx-pagination button:hover {
|
|
19
|
-
background: #e6e6e6;
|
|
20
|
-
padding: 12px !important;
|
|
21
|
-
min-width:50px !important;
|
|
22
|
-
max-width: auto !important;
|
|
23
|
-
height: 45px;
|
|
24
|
-
border-radius: 8px;
|
|
25
|
-
line-height: 20px;
|
|
26
|
-
}
|
|
27
|
-
::ng-deep {.ngx-pagination{
|
|
28
|
-
color: var(--Gray-500, #667085) !important;
|
|
29
|
-
font-size: 14px !important;
|
|
30
|
-
font-style: normal;
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
line-height: 20px;
|
|
33
|
-
}
|
|
34
|
-
.ngx-pagination a{
|
|
35
|
-
padding: 0.1875rem 1rem !important;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
*{
|
|
39
|
-
font-family: 'Inter' !important;
|
|
40
|
-
}
|
|
41
|
-
.border-val{
|
|
42
|
-
padding: 10px 14px !important;
|
|
43
|
-
border-radius: 8px !important;
|
|
44
|
-
border: 1px solid var(--Gray-300, #D0D5DD) !important;
|
|
45
|
-
background: var(--White, #FFF) !important;
|
|
46
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
|
|
47
|
-
}
|
|
48
|
-
select {
|
|
49
|
-
-webkit-appearance: none; /* Remove default arrow for WebKit browsers */
|
|
50
|
-
-moz-appearance: none; /* Remove default arrow for Firefox */
|
|
51
|
-
appearance: none; /* Remove default arrow for modern browsers */
|
|
52
|
-
background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 12l-6-6h12l-6 6z" fill="%23777"/></svg>'); /* Add custom arrow */
|
|
53
|
-
background-repeat: no-repeat;
|
|
54
|
-
background-position-x: calc(100% - 12px);
|
|
55
|
-
background-position-y: 50%;
|
|
56
|
-
padding-right: 20px; /* Adjust as needed */
|
|
57
|
-
}
|
|
58
|
-
.sub-title{
|
|
59
|
-
color: var(--Gray-700, #344054) !important;
|
|
60
|
-
font-size: 14px !important;
|
|
61
|
-
font-weight: 500 !important;
|
|
62
|
-
line-height: 20px;
|
|
63
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { PaginationComponent } from './pagination.component';
|
|
4
|
-
|
|
5
|
-
describe('PaginationComponent', () => {
|
|
6
|
-
let component: PaginationComponent;
|
|
7
|
-
let fixture: ComponentFixture<PaginationComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [PaginationComponent]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(PaginationComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'lib-pagination',
|
|
5
|
-
templateUrl: './pagination.component.html',
|
|
6
|
-
styleUrl: './pagination.component.scss'
|
|
7
|
-
})
|
|
8
|
-
export class PaginationComponent {
|
|
9
|
-
@Input() collection: any[] = [];
|
|
10
|
-
@Input() itemsPerPage: number;
|
|
11
|
-
@Input() currentPage: number;
|
|
12
|
-
@Input() totalItems: number;
|
|
13
|
-
@Input() directionLinks: boolean = false;
|
|
14
|
-
|
|
15
|
-
@Input() pageSize: number;
|
|
16
|
-
@Input() paginationSizes: number[];
|
|
17
|
-
@Output() pageChange: EventEmitter<number> = new EventEmitter<number>();
|
|
18
|
-
@Output() pageSizeChange: EventEmitter<number> = new EventEmitter<number>();
|
|
19
|
-
instanceId = crypto.randomUUID()
|
|
20
|
-
|
|
21
|
-
onPageChange(page: number) {
|
|
22
|
-
this.pageChange.emit(page);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
onPageSizeChange(pageSize:any) {
|
|
26
|
-
this.itemsPerPage = pageSize;
|
|
27
|
-
this.pageSizeChange.emit(this.pageSize);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// disableOption(size: number): boolean {
|
|
31
|
-
// if (!this.paginationSizes.includes(size)) {
|
|
32
|
-
// console.error('Size is not in paginationSizes.');
|
|
33
|
-
// return true; // Disable the option to prevent invalid selection
|
|
34
|
-
// }
|
|
35
|
-
|
|
36
|
-
// // Calculate the maximum possible total items on the current page
|
|
37
|
-
// const maxTotalOnPage = (this.currentPage) * size;
|
|
38
|
-
// console.log('Current Page:', maxTotalOnPage);
|
|
39
|
-
// // Disable the option if totalItems is less than or equal to the option size
|
|
40
|
-
// const disable = this.totalItems <= maxTotalOnPage;
|
|
41
|
-
// console.log('Disable:', disable);
|
|
42
|
-
// return disable;
|
|
43
|
-
// }
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!--begin::Title-->
|
|
2
|
-
<h1 class="fw-bolder fs-2hx text-gray-900 mb-4">
|
|
3
|
-
!Forbidden
|
|
4
|
-
</h1>
|
|
5
|
-
<!--end::Title-->
|
|
6
|
-
|
|
7
|
-
<!--begin::Text-->
|
|
8
|
-
<div class="fw-semibold fs-6 text-gray-500 mb-7">
|
|
9
|
-
We can't find that page.
|
|
10
|
-
</div>
|
|
11
|
-
<!--end::Text-->
|
|
12
|
-
|
|
13
|
-
<!--begin::Illustration-->
|
|
14
|
-
<div class="mb-3">
|
|
15
|
-
<img src="./assets/media/auth/404-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
|
|
16
|
-
<img src="./assets/media/auth/404-error-dark.png" class="mw-100 mh-300px theme-dark-show" alt="" />
|
|
17
|
-
</div>
|
|
18
|
-
<!--end::Illustration-->
|
|
19
|
-
|
|
20
|
-
<!--begin::Link-->
|
|
21
|
-
<div class="mb-0">
|
|
22
|
-
<a routerLink="/manage/brands" class="btn btn-sm btn-primary">Return Home</a>
|
|
23
|
-
</div>
|
|
24
|
-
<!--end::Link-->
|
|
25
|
-
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { Error403Component } from './error403.component';
|
|
4
|
-
|
|
5
|
-
describe('Error403Component', () => {
|
|
6
|
-
let component: Error403Component;
|
|
7
|
-
let fixture: ComponentFixture<Error403Component>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [Error403Component]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(Error403Component);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import { ThemeModeService } from 'tango-app-ui-global';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'lib-error403',
|
|
8
|
-
templateUrl: './error403.component.html',
|
|
9
|
-
styleUrl: './error403.component.scss'
|
|
10
|
-
})
|
|
11
|
-
export class Error403Component implements OnInit,OnDestroy {
|
|
12
|
-
private unsubscribe: Subscription[] = [];
|
|
13
|
-
|
|
14
|
-
constructor(private router: Router, private modeService: ThemeModeService) {}
|
|
15
|
-
ngOnInit(): void {
|
|
16
|
-
const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
|
|
17
|
-
document.body.style.backgroundImage =
|
|
18
|
-
mode === 'dark'
|
|
19
|
-
? 'url(./assets/media/auth/bg1-dark.jpg)'
|
|
20
|
-
: 'url(./assets/media/auth/bg1.jpg)';
|
|
21
|
-
});
|
|
22
|
-
this.unsubscribe.push(subscr);
|
|
23
|
-
}
|
|
24
|
-
ngOnDestroy() {
|
|
25
|
-
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
26
|
-
document.body.style.backgroundImage = 'none';
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!--begin::Title-->
|
|
2
|
-
<h1 class="fw-bolder fs-2hx text-gray-900 mb-4">
|
|
3
|
-
Oops!
|
|
4
|
-
</h1>
|
|
5
|
-
<!--end::Title-->
|
|
6
|
-
|
|
7
|
-
<!--begin::Text-->
|
|
8
|
-
<div class="fw-semibold fs-6 text-gray-500 mb-7">
|
|
9
|
-
We can't find that page.
|
|
10
|
-
</div>
|
|
11
|
-
<!--end::Text-->
|
|
12
|
-
|
|
13
|
-
<!--begin::Illustration-->
|
|
14
|
-
<div class="mb-3">
|
|
15
|
-
<img src="./assets/media/auth/404-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
|
|
16
|
-
<!-- <img src="./assets/media/auth/404-error-dark.png" class="mw-100 mh-300px theme-dark-show" alt="" /> -->
|
|
17
|
-
</div>
|
|
18
|
-
<!--end::Illustration-->
|
|
19
|
-
|
|
20
|
-
<!--begin::Link-->
|
|
21
|
-
<div class="mb-0">
|
|
22
|
-
<a (click)="routeToDashboard()" class="btn btn-sm btn-primary">Return Home</a>
|
|
23
|
-
</div>
|
|
24
|
-
<!--end::Link-->
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { Error404Component } from './error404.component';
|
|
4
|
-
|
|
5
|
-
describe('Error404Component', () => {
|
|
6
|
-
let component: Error404Component;
|
|
7
|
-
let fixture: ComponentFixture<Error404Component>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ Error404Component ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(Error404Component);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import {
|
|
5
|
-
DrawerComponent,
|
|
6
|
-
MenuComponent,
|
|
7
|
-
ScrollComponent,
|
|
8
|
-
ScrollTopComponent,
|
|
9
|
-
StickyComponent,
|
|
10
|
-
ToggleComponent,
|
|
11
|
-
} from 'tango-app-ui-global';
|
|
12
|
-
import { ThemeModeService } from 'tango-app-ui-global';
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'lib-error404',
|
|
16
|
-
templateUrl: './error404.component.html',
|
|
17
|
-
styleUrls: ['./error404.component.scss'],
|
|
18
|
-
})
|
|
19
|
-
export class Error404Component implements OnInit, OnDestroy {
|
|
20
|
-
private unsubscribe: Subscription[] = [];
|
|
21
|
-
|
|
22
|
-
constructor(private router: Router, private modeService: ThemeModeService) {}
|
|
23
|
-
|
|
24
|
-
ngOnInit(): void {
|
|
25
|
-
// const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
|
|
26
|
-
// document.body.style.backgroundImage =
|
|
27
|
-
// mode === 'dark'
|
|
28
|
-
// ? 'url(./assets/media/auth/bg1-dark.jpg)'
|
|
29
|
-
// : 'url(./assets/media/auth/bg1.jpg)';
|
|
30
|
-
// });
|
|
31
|
-
// this.unsubscribe.push(subscr);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
routeToDashboard() {
|
|
35
|
-
this.router.navigate(['/manage/brands']);
|
|
36
|
-
// setTimeout(() => {
|
|
37
|
-
// ToggleComponent.reinitialization();
|
|
38
|
-
// ScrollTopComponent.reinitialization();
|
|
39
|
-
// DrawerComponent.reinitialization();
|
|
40
|
-
// StickyComponent.bootstrap();
|
|
41
|
-
// MenuComponent.reinitialization();
|
|
42
|
-
// ScrollComponent.reinitialization();
|
|
43
|
-
// }, 200);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
ngOnDestroy() {
|
|
47
|
-
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
48
|
-
document.body.style.backgroundImage = 'none';
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!--begin::Title-->
|
|
2
|
-
<h1 class="fw-bolder fs-2qx text-gray-900 mb-4">
|
|
3
|
-
System Error
|
|
4
|
-
</h1>
|
|
5
|
-
<!--end::Title-->
|
|
6
|
-
|
|
7
|
-
<!--begin::Text-->
|
|
8
|
-
<div class="fw-semibold fs-6 text-gray-500 mb-7">
|
|
9
|
-
Something went wrong! Please try again later.
|
|
10
|
-
</div>
|
|
11
|
-
<!--end::Text-->
|
|
12
|
-
|
|
13
|
-
<!--begin::Illustration-->
|
|
14
|
-
<div class="mb-11">
|
|
15
|
-
<img src="./assets/media/auth/500-error.png" class="mw-100 mh-300px theme-light-show" alt="" />
|
|
16
|
-
<img src="./assets/media/auth/500-error-dark.png" class="mw-100 mh-300px theme-dark-show" alt="" />
|
|
17
|
-
</div>
|
|
18
|
-
<!--end::Illustration-->
|
|
19
|
-
|
|
20
|
-
<!--begin::Link-->
|
|
21
|
-
<div class="mb-0">
|
|
22
|
-
<a (click)="routeToDashboard()" class="btn btn-sm btn-primary">Return Home</a>
|
|
23
|
-
</div>
|
|
24
|
-
<!--end::Link-->
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { Error500Component } from './error500.component';
|
|
4
|
-
|
|
5
|
-
describe('Error500Component', () => {
|
|
6
|
-
let component: Error500Component;
|
|
7
|
-
let fixture: ComponentFixture<Error500Component>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ Error500Component ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(Error500Component);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import {
|
|
5
|
-
DrawerComponent,
|
|
6
|
-
MenuComponent,
|
|
7
|
-
ScrollComponent,
|
|
8
|
-
ScrollTopComponent,
|
|
9
|
-
StickyComponent,
|
|
10
|
-
ToggleComponent,
|
|
11
|
-
} from 'tango-app-ui-global';
|
|
12
|
-
import { ThemeModeService } from 'tango-app-ui-global';
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'lib-error500',
|
|
16
|
-
templateUrl: './error500.component.html',
|
|
17
|
-
styleUrls: ['./error500.component.scss'],
|
|
18
|
-
})
|
|
19
|
-
export class Error500Component implements OnInit, OnDestroy {
|
|
20
|
-
private unsubscribe: Subscription[] = [];
|
|
21
|
-
|
|
22
|
-
constructor(private router: Router, private modeService: ThemeModeService) {}
|
|
23
|
-
|
|
24
|
-
ngOnInit(): void {
|
|
25
|
-
const subscr = this.modeService.mode.asObservable().subscribe((mode) => {
|
|
26
|
-
document.body.style.backgroundImage =
|
|
27
|
-
mode === 'dark'
|
|
28
|
-
? 'url(./assets/media/auth/bg7-dark.jpg)'
|
|
29
|
-
: 'url(./assets/media/auth/bg7.jpg)';
|
|
30
|
-
});
|
|
31
|
-
this.unsubscribe.push(subscr);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
routeToDashboard() {
|
|
35
|
-
this.router.navigate(['dashboard']);
|
|
36
|
-
setTimeout(() => {
|
|
37
|
-
ToggleComponent.reinitialization();
|
|
38
|
-
ScrollTopComponent.reinitialization();
|
|
39
|
-
DrawerComponent.reinitialization();
|
|
40
|
-
StickyComponent.bootstrap();
|
|
41
|
-
MenuComponent.reinitialization();
|
|
42
|
-
ScrollComponent.reinitialization();
|
|
43
|
-
}, 200);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
ngOnDestroy() {
|
|
47
|
-
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
48
|
-
document.body.style.backgroundImage = 'none';
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { Error404Component } from './error404/error404.component';
|
|
4
|
-
import { Error500Component } from './error500/error500.component';
|
|
5
|
-
import { ErrorsComponent } from './errors.component';
|
|
6
|
-
import { Error403Component } from './error403/error403.component';
|
|
7
|
-
import { InvalidIpComponent } from './invalid-ip/invalid-ip.component';
|
|
8
|
-
|
|
9
|
-
const routes: Routes = [
|
|
10
|
-
{
|
|
11
|
-
path: '',
|
|
12
|
-
component: ErrorsComponent,
|
|
13
|
-
children: [
|
|
14
|
-
{
|
|
15
|
-
path: '403',
|
|
16
|
-
component: Error403Component,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
path: '404',
|
|
20
|
-
component: Error404Component,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
path: '500',
|
|
24
|
-
component: Error500Component,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
path: '403-ip',
|
|
28
|
-
component: InvalidIpComponent,
|
|
29
|
-
},
|
|
30
|
-
{ path: '', redirectTo: '404', pathMatch: 'full' },
|
|
31
|
-
{ path: '**', redirectTo: '404', pathMatch: 'full' },
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
@NgModule({
|
|
37
|
-
imports: [RouterModule.forChild(routes)],
|
|
38
|
-
exports: [RouterModule],
|
|
39
|
-
})
|
|
40
|
-
export class ErrorsRoutingModule {}
|