tango-app-ui-shared 3.7.3-dev6-copilot → 3.7.3-dev6-demo7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +37 -0
- package/ng-package.json +7 -0
- package/package.json +12 -25
- package/src/lib/guards/auth.guard.ts +20 -0
- package/src/lib/guards/lead.guard.ts +16 -0
- package/src/lib/guards/stores.guard.ts +16 -0
- package/src/lib/guards/tickets.guard.ts +16 -0
- package/{lib/i18n/index.d.ts → src/lib/i18n/index.ts} +2 -2
- package/src/lib/i18n/translation.module.ts +9 -0
- package/src/lib/i18n/translation.service.ts +61 -0
- package/src/lib/i18n/vocabs/ch.ts +105 -0
- package/src/lib/i18n/vocabs/de.ts +105 -0
- package/src/lib/i18n/vocabs/en.ts +105 -0
- package/src/lib/i18n/vocabs/es.ts +105 -0
- package/src/lib/i18n/vocabs/fr.ts +105 -0
- package/src/lib/i18n/vocabs/jp.ts +105 -0
- package/src/lib/interceptors/http-auth-interceptor.ts +225 -0
- package/src/lib/interfaces/global-state.ts +6 -0
- package/src/lib/modules/common/common-shared.module.ts +20 -0
- package/src/lib/modules/common/custom-select/custom-select.component.html +42 -0
- package/src/lib/modules/common/custom-select/custom-select.component.scss +131 -0
- package/src/lib/modules/common/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/modules/common/custom-select/custom-select.component.ts +149 -0
- package/src/lib/modules/common/filters/filters.component.html +76 -0
- package/src/lib/modules/common/filters/filters.component.scss +131 -0
- package/src/lib/modules/common/filters/filters.component.spec.ts +23 -0
- package/src/lib/modules/common/filters/filters.component.ts +181 -0
- package/src/lib/modules/common/pagination/pagination.component.html +26 -0
- package/src/lib/modules/common/pagination/pagination.component.scss +63 -0
- package/src/lib/modules/common/pagination/pagination.component.spec.ts +23 -0
- package/src/lib/modules/common/pagination/pagination.component.ts +46 -0
- package/src/lib/modules/errors/error403/error403.component.html +25 -0
- package/src/lib/modules/errors/error403/error403.component.scss +0 -0
- package/src/lib/modules/errors/error403/error403.component.spec.ts +23 -0
- package/src/lib/modules/errors/error403/error403.component.ts +28 -0
- package/src/lib/modules/errors/error404/error404.component.html +24 -0
- package/src/lib/modules/errors/error404/error404.component.scss +0 -0
- package/src/lib/modules/errors/error404/error404.component.spec.ts +25 -0
- package/src/lib/modules/errors/error404/error404.component.ts +50 -0
- package/src/lib/modules/errors/error500/error500.component.html +24 -0
- package/src/lib/modules/errors/error500/error500.component.scss +0 -0
- package/src/lib/modules/errors/error500/error500.component.spec.ts +25 -0
- package/src/lib/modules/errors/error500/error500.component.ts +50 -0
- package/src/lib/modules/errors/errors-routing.module.ts +40 -0
- package/src/lib/modules/errors/errors.component.html +15 -0
- package/src/lib/modules/errors/errors.component.scss +4 -0
- package/src/lib/modules/errors/errors.component.spec.ts +25 -0
- package/src/lib/modules/errors/errors.component.ts +42 -0
- package/src/lib/modules/errors/errors.module.ts +25 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.html +16 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.scss +0 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.spec.ts +23 -0
- package/src/lib/modules/errors/invalid-ip/invalid-ip.component.ts +43 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.html +30 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.scss +60 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.spec.ts +23 -0
- package/src/lib/modules/intro/contact-support/contact-support.component.ts +17 -0
- package/src/lib/modules/intro/intro-routing.module.ts +16 -0
- package/src/lib/modules/intro/intro.module.ts +21 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.html +325 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.scss +185 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.spec.ts +23 -0
- package/src/lib/modules/intro/lead-intro/lead-intro.component.ts +120 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.html +44 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.scss +28 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.spec.ts +23 -0
- package/src/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.ts +24 -0
- package/src/lib/modules/layout/content/content.component.html +12 -0
- package/src/lib/modules/layout/content/content.component.scss +0 -0
- package/src/lib/modules/layout/content/content.component.ts +102 -0
- package/src/lib/modules/layout/footer/footer.component.html +29 -0
- package/src/lib/modules/layout/footer/footer.component.scss +7 -0
- package/src/lib/modules/layout/footer/footer.component.spec.ts +25 -0
- package/src/lib/modules/layout/footer/footer.component.ts +13 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.html +27 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.scss +4 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.spec.ts +25 -0
- package/src/lib/modules/layout/header/header-menu/header-menu.component.ts +38 -0
- package/src/lib/modules/layout/header/header.component.html +90 -0
- package/src/lib/modules/layout/header/header.component.scss +7 -0
- package/src/lib/modules/layout/header/header.component.spec.ts +25 -0
- package/src/lib/modules/layout/header/header.component.ts +139 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.html +156 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.scss +223 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.spec.ts +23 -0
- package/src/lib/modules/layout/header/navbar/navbar.component.ts +255 -0
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.html +200 -0
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.scss +139 -0
- package/src/lib/modules/layout/header/notifications-inner/notifications-inner.component.ts +76 -0
- package/src/lib/modules/layout/header/page-title/page-title.component.html +32 -0
- package/src/lib/modules/layout/header/page-title/page-title.component.scss +11 -0
- package/src/lib/modules/layout/header/page-title/page-title.component.ts +47 -0
- package/src/lib/modules/layout/keenicon/icons.json +1 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.html +4 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.scss +0 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.spec.ts +23 -0
- package/src/lib/modules/layout/keenicon/keenicon.component.ts +30 -0
- package/src/lib/modules/layout/layout/layout.component.html +71 -0
- package/src/lib/modules/layout/layout/layout.component.scss +23 -0
- package/src/lib/modules/layout/layout/layout.component.ts +425 -0
- package/src/lib/modules/layout/layout.module.ts +129 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.html +0 -0
- package/src/lib/modules/layout/scripts-init/scripts-init.component.ts +81 -0
- package/src/lib/modules/layout/scroll-top/scroll-top.component.html +1 -0
- package/src/lib/modules/layout/scroll-top/scroll-top.component.ts +75 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.html +70 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.scss +57 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.ts +136 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.html +26 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.scss +0 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.ts +36 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.html +761 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.scss +38 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.ts +130 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.html +16 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.scss +3 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.spec.ts +23 -0
- package/src/lib/modules/layout/sidebar/sidebar.component.ts +203 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.html +84 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/accounting/accounting.component.ts +14 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.html +69 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.scss +238 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/classic/classic.component.ts +389 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.html +4 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.scss +3 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/client-settings/client-settings.component.ts +91 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.html +22 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.scss +156 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/date-single-select/date-single-select.component.ts +238 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.html +14 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.scss +149 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/datepicker/datepicker.component.ts +183 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.html +100 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/extended/extended.component.ts +12 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.html +311 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/metrics-header/metrics-header.component.ts +1555 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.html +62 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/reports/reports.component.ts +14 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.html +77 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/saas/saas.component.ts +14 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.html +26 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.scss +176 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.ts +235 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.html +39 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.scss +176 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/single-store/single-store.component.ts +188 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.html +17 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.scss +172 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/single-storedate/single-storedate.component.ts +179 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.html +4 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.scss +19 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/storesingle/storesingle.component.ts +105 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.html +64 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.scss +0 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.spec.ts +25 -0
- package/src/lib/modules/layout/toolbar/toolbar.component.ts +400 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.html +259 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.scss +305 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.ts +1202 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.html +199 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.ts +899 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.html +204 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/trax-header/trax-header.component.ts +1045 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.html +190 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.scss +311 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.ts +825 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.html +259 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.scss +305 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.spec.ts +23 -0
- package/src/lib/modules/layout/toolbar/zone-header/zone-header.component.ts +1242 -0
- package/src/lib/modules/notification/conformation/conformation.component.html +25 -0
- package/src/lib/modules/notification/conformation/conformation.component.scss +0 -0
- package/src/lib/modules/notification/conformation/conformation.component.spec.ts +23 -0
- package/src/lib/modules/notification/conformation/conformation.component.ts +23 -0
- package/src/lib/modules/notification/notification/notification.component.html +209 -0
- package/src/lib/modules/notification/notification/notification.component.scss +211 -0
- package/src/lib/modules/notification/notification/notification.component.spec.ts +23 -0
- package/src/lib/modules/notification/notification/notification.component.ts +310 -0
- package/src/lib/modules/notification/notification-routing.module.ts +20 -0
- package/src/lib/modules/notification/notification.module.ts +21 -0
- package/src/lib/pipes/customDate.pipe.ts +18 -0
- package/src/lib/routes/route-wraper-modules/analyse-wrapper.module.ts +12 -0
- package/src/lib/routes/route-wraper-modules/edge-wrapper.module.ts +11 -0
- package/src/lib/routes/route-wraper-modules/manage-wrapper.module.ts +11 -0
- package/src/lib/routes/route-wraper-modules/profile-wrapper.module.ts +12 -0
- package/src/lib/routes/route-wraper-modules/store-wrapper.module.ts +11 -0
- package/src/lib/routes/route-wraper-modules/ticket-wrapper.module.ts +10 -0
- package/src/lib/routes/routing.ts +56 -0
- package/src/lib/services/auth.service.ts +178 -0
- package/src/lib/services/notification.service.spec.ts +16 -0
- package/src/lib/services/notification.service.ts +73 -0
- package/src/lib/services/toast.service.ts +82 -0
- package/{public-api.d.ts → src/public-api.ts} +71 -44
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/guards/auth.guard.mjs +0 -26
- package/esm2022/lib/guards/lead.guard.mjs +0 -16
- package/esm2022/lib/guards/stores.guard.mjs +0 -16
- package/esm2022/lib/guards/tickets.guard.mjs +0 -16
- package/esm2022/lib/i18n/index.mjs +0 -3
- package/esm2022/lib/i18n/translation.module.mjs +0 -17
- package/esm2022/lib/i18n/translation.service.mjs +0 -53
- package/esm2022/lib/i18n/vocabs/ch.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/de.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/en.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/es.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/fr.mjs +0 -106
- package/esm2022/lib/i18n/vocabs/jp.mjs +0 -106
- package/esm2022/lib/interceptors/http-auth-interceptor.mjs +0 -124
- package/esm2022/lib/interfaces/global-state.mjs +0 -2
- package/esm2022/lib/modules/common/common-shared.module.mjs +0 -31
- package/esm2022/lib/modules/common/custom-select/custom-select.component.mjs +0 -155
- package/esm2022/lib/modules/common/filters/filters.component.mjs +0 -179
- package/esm2022/lib/modules/common/pagination/pagination.component.mjs +0 -49
- package/esm2022/lib/modules/errors/error403/error403.component.mjs +0 -33
- package/esm2022/lib/modules/errors/error404/error404.component.mjs +0 -44
- package/esm2022/lib/modules/errors/error500/error500.component.mjs +0 -45
- package/esm2022/lib/modules/errors/errors-routing.module.mjs +0 -48
- package/esm2022/lib/modules/errors/errors.component.mjs +0 -39
- package/esm2022/lib/modules/errors/errors.module.mjs +0 -37
- package/esm2022/lib/modules/errors/invalid-ip/invalid-ip.component.mjs +0 -44
- package/esm2022/lib/modules/intro/contact-support/contact-support.component.mjs +0 -19
- package/esm2022/lib/modules/intro/intro-routing.module.mjs +0 -24
- package/esm2022/lib/modules/intro/intro.module.mjs +0 -32
- package/esm2022/lib/modules/intro/lead-intro/lead-intro.component.mjs +0 -110
- package/esm2022/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.mjs +0 -31
- package/esm2022/lib/modules/layout/content/content.component.mjs +0 -107
- package/esm2022/lib/modules/layout/footer/footer.component.mjs +0 -17
- package/esm2022/lib/modules/layout/header/header-menu/header-menu.component.mjs +0 -41
- package/esm2022/lib/modules/layout/header/header.component.mjs +0 -100
- package/esm2022/lib/modules/layout/header/navbar/navbar.component.mjs +0 -256
- package/esm2022/lib/modules/layout/header/notifications-inner/notifications-inner.component.mjs +0 -79
- package/esm2022/lib/modules/layout/header/page-title/page-title.component.mjs +0 -56
- package/esm2022/lib/modules/layout/keenicon/icons.json +0 -1
- package/esm2022/lib/modules/layout/keenicon/keenicon.component.mjs +0 -37
- package/esm2022/lib/modules/layout/layout/layout.component.mjs +0 -314
- package/esm2022/lib/modules/layout/layout.module.mjs +0 -195
- package/esm2022/lib/modules/layout/scripts-init/scripts-init.component.mjs +0 -74
- package/esm2022/lib/modules/layout/scroll-top/scroll-top.component.mjs +0 -74
- package/esm2022/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.mjs +0 -159
- package/esm2022/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.mjs +0 -45
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +0 -119
- package/esm2022/lib/modules/layout/sidebar/sidebar.component.mjs +0 -134
- package/esm2022/lib/modules/layout/toolbar/accounting/accounting.component.mjs +0 -16
- package/esm2022/lib/modules/layout/toolbar/classic/classic.component.mjs +0 -331
- package/esm2022/lib/modules/layout/toolbar/client-settings/client-settings.component.mjs +0 -88
- package/esm2022/lib/modules/layout/toolbar/date-single-select/date-single-select.component.mjs +0 -201
- package/esm2022/lib/modules/layout/toolbar/datepicker/datepicker.component.mjs +0 -150
- package/esm2022/lib/modules/layout/toolbar/extended/extended.component.mjs +0 -15
- package/esm2022/lib/modules/layout/toolbar/metrics-header/metrics-header.component.mjs +0 -1321
- package/esm2022/lib/modules/layout/toolbar/reports/reports.component.mjs +0 -18
- package/esm2022/lib/modules/layout/toolbar/saas/saas.component.mjs +0 -18
- package/esm2022/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.mjs +0 -216
- package/esm2022/lib/modules/layout/toolbar/single-store/single-store.component.mjs +0 -176
- package/esm2022/lib/modules/layout/toolbar/single-storedate/single-storedate.component.mjs +0 -166
- package/esm2022/lib/modules/layout/toolbar/storesingle/storesingle.component.mjs +0 -105
- package/esm2022/lib/modules/layout/toolbar/toolbar.component.mjs +0 -354
- package/esm2022/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.mjs +0 -1061
- package/esm2022/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.mjs +0 -795
- package/esm2022/lib/modules/layout/toolbar/trax-header/trax-header.component.mjs +0 -880
- package/esm2022/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.mjs +0 -729
- package/esm2022/lib/modules/notification/conformation/conformation.component.mjs +0 -22
- package/esm2022/lib/modules/notification/notification/notification.component.mjs +0 -317
- package/esm2022/lib/modules/notification/notification-routing.module.mjs +0 -28
- package/esm2022/lib/modules/notification/notification.module.mjs +0 -32
- package/esm2022/lib/pipes/customDate.pipe.mjs +0 -22
- package/esm2022/lib/routes/route-wraper-modules/edge-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/eyetest-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/manage-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/profile-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/store-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/route-wraper-modules/ticket-wrapper.module.mjs +0 -18
- package/esm2022/lib/routes/routing.mjs +0 -58
- package/esm2022/lib/services/auth.service.mjs +0 -141
- package/esm2022/lib/services/notification.service.mjs +0 -74
- package/esm2022/lib/services/toast.service.mjs +0 -83
- package/esm2022/public-api.mjs +0 -56
- package/esm2022/tango-app-ui-shared.mjs +0 -5
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-edge-wrapper.module-CFDk0tvS.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-eyetest-wrapper.module-CfO814JB.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-eyetest-wrapper.module-CfO814JB.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs +0 -188
- package/fesm2022/tango-app-ui-shared-intro.module-DYh4ZRha.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-manage-wrapper.module-BHyh4Njw.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs +0 -400
- package/fesm2022/tango-app-ui-shared-notification.module-C5ZmCf8U.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-profile-wrapper.module-BNC1AGOk.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-store-wrapper.module-DdaCYHdv.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs +0 -21
- package/fesm2022/tango-app-ui-shared-ticket-wrapper.module-r32uKkDO.mjs.map +0 -1
- package/fesm2022/tango-app-ui-shared.mjs +0 -11322
- package/fesm2022/tango-app-ui-shared.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/guards/auth.guard.d.ts +0 -10
- package/lib/guards/lead.guard.d.ts +0 -2
- package/lib/guards/stores.guard.d.ts +0 -2
- package/lib/guards/tickets.guard.d.ts +0 -2
- package/lib/i18n/translation.module.d.ts +0 -8
- package/lib/i18n/translation.service.d.ts +0 -19
- package/lib/i18n/vocabs/ch.d.ts +0 -104
- package/lib/i18n/vocabs/de.d.ts +0 -104
- package/lib/i18n/vocabs/en.d.ts +0 -104
- package/lib/i18n/vocabs/es.d.ts +0 -104
- package/lib/i18n/vocabs/fr.d.ts +0 -104
- package/lib/i18n/vocabs/jp.d.ts +0 -104
- package/lib/interceptors/http-auth-interceptor.d.ts +0 -19
- package/lib/interfaces/global-state.d.ts +0 -5
- package/lib/modules/common/common-shared.module.d.ts +0 -13
- package/lib/modules/common/custom-select/custom-select.component.d.ts +0 -33
- package/lib/modules/common/filters/filters.component.d.ts +0 -38
- package/lib/modules/common/pagination/pagination.component.d.ts +0 -18
- package/lib/modules/errors/error403/error403.component.d.ts +0 -14
- package/lib/modules/errors/error404/error404.component.d.ts +0 -15
- package/lib/modules/errors/error500/error500.component.d.ts +0 -15
- package/lib/modules/errors/errors-routing.module.d.ts +0 -7
- package/lib/modules/errors/errors.component.d.ts +0 -13
- package/lib/modules/errors/errors.module.d.ts +0 -13
- package/lib/modules/errors/invalid-ip/invalid-ip.component.d.ts +0 -17
- package/lib/modules/intro/contact-support/contact-support.component.d.ts +0 -9
- package/lib/modules/intro/intro-routing.module.d.ts +0 -7
- package/lib/modules/intro/intro.module.d.ts +0 -11
- package/lib/modules/intro/lead-intro/lead-intro.component.d.ts +0 -31
- package/lib/modules/layout/components/csm-assign-confirmation/csm-assign-confirmation.component.d.ts +0 -13
- package/lib/modules/layout/content/content.component.d.ts +0 -25
- package/lib/modules/layout/footer/footer.component.d.ts +0 -8
- package/lib/modules/layout/header/header-menu/header-menu.component.d.ts +0 -18
- package/lib/modules/layout/header/header.component.d.ts +0 -30
- package/lib/modules/layout/header/navbar/navbar.component.d.ts +0 -45
- package/lib/modules/layout/header/notifications-inner/notifications-inner.component.d.ts +0 -25
- package/lib/modules/layout/header/page-title/page-title.component.d.ts +0 -23
- package/lib/modules/layout/keenicon/keenicon.component.d.ts +0 -13
- package/lib/modules/layout/layout/layout.component.d.ts +0 -82
- package/lib/modules/layout/layout.module.d.ts +0 -49
- package/lib/modules/layout/scripts-init/scripts-init.component.d.ts +0 -19
- package/lib/modules/layout/scroll-top/scroll-top.component.d.ts +0 -19
- package/lib/modules/layout/sidebar/sidebar-footer/sidebar-footer.component.d.ts +0 -45
- package/lib/modules/layout/sidebar/sidebar-logo/sidebar-logo.component.d.ts +0 -19
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +0 -26
- package/lib/modules/layout/sidebar/sidebar.component.d.ts +0 -36
- package/lib/modules/layout/toolbar/accounting/accounting.component.d.ts +0 -8
- package/lib/modules/layout/toolbar/classic/classic.component.d.ts +0 -48
- package/lib/modules/layout/toolbar/client-settings/client-settings.component.d.ts +0 -16
- package/lib/modules/layout/toolbar/date-single-select/date-single-select.component.d.ts +0 -28
- package/lib/modules/layout/toolbar/datepicker/datepicker.component.d.ts +0 -28
- package/lib/modules/layout/toolbar/extended/extended.component.d.ts +0 -8
- package/lib/modules/layout/toolbar/metrics-header/metrics-header.component.d.ts +0 -103
- package/lib/modules/layout/toolbar/reports/reports.component.d.ts +0 -9
- package/lib/modules/layout/toolbar/saas/saas.component.d.ts +0 -9
- package/lib/modules/layout/toolbar/single-clientstore-date/single-clientstore-date.component.d.ts +0 -32
- package/lib/modules/layout/toolbar/single-store/single-store.component.d.ts +0 -33
- package/lib/modules/layout/toolbar/single-storedate/single-storedate.component.d.ts +0 -34
- package/lib/modules/layout/toolbar/storesingle/storesingle.component.d.ts +0 -24
- package/lib/modules/layout/toolbar/toolbar.component.d.ts +0 -56
- package/lib/modules/layout/toolbar/traffic-header/traffic-header/traffic-header.component.d.ts +0 -93
- package/lib/modules/layout/toolbar/traffic-nob/traffic-nob.component.d.ts +0 -80
- package/lib/modules/layout/toolbar/trax-header/trax-header.component.d.ts +0 -83
- package/lib/modules/layout/toolbar/trax-withoutdate/trax-withoutdate.component.d.ts +0 -74
- package/lib/modules/notification/conformation/conformation.component.d.ts +0 -10
- package/lib/modules/notification/notification/notification.component.d.ts +0 -63
- package/lib/modules/notification/notification-routing.module.d.ts +0 -7
- package/lib/modules/notification/notification.module.d.ts +0 -11
- package/lib/pipes/customDate.pipe.d.ts +0 -7
- package/lib/routes/route-wraper-modules/edge-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/eyetest-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/manage-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/profile-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/store-wrapper.module.d.ts +0 -7
- package/lib/routes/route-wraper-modules/ticket-wrapper.module.d.ts +0 -7
- package/lib/routes/routing.d.ts +0 -3
- package/lib/services/auth.service.d.ts +0 -49
- package/lib/services/notification.service.d.ts +0 -30
- package/lib/services/toast.service.d.ts +0 -10
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.menu-bullet-dot span {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
width: 6px;
|
|
4
|
+
height: 6px;
|
|
5
|
+
background-color: #000; /* You can change this to any color */
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
margin-right: 10px; /* Space between the bullet and text */
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host::ng-deep{
|
|
12
|
+
.menu-sub .menu-sub-accordion{
|
|
13
|
+
border-left: 2px solid #98A2B3 !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
::ng-deep {.app-sidebar .menu .menu-item .menu-link.active .menu-title {
|
|
17
|
+
color: #F5F5F5 !important;
|
|
18
|
+
border-radius: 8px !important;
|
|
19
|
+
border: 1px solid var(--text-primary, #FFF) !important;
|
|
20
|
+
padding: 8px !important;
|
|
21
|
+
color: var(--Primary-500, #33B5FF) !important;
|
|
22
|
+
font-size: 12px !important;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
line-height: 18px;
|
|
26
|
+
}
|
|
27
|
+
.app-sidebar .menu .menu-item .menu-link .menu-title {
|
|
28
|
+
font-size: 12px !important;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 18px;
|
|
32
|
+
}
|
|
33
|
+
.app-sidebar .menu .menu-item .menu-link.active {
|
|
34
|
+
transition: color 0.2s ease;
|
|
35
|
+
background-color: #0d0e12 !important;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SidebarMenuComponent } from './sidebar-menu.component';
|
|
4
|
+
|
|
5
|
+
describe('SidebarMenuComponent', () => {
|
|
6
|
+
let component: SidebarMenuComponent;
|
|
7
|
+
let fixture: ComponentFixture<SidebarMenuComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SidebarMenuComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(SidebarMenuComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { AuthService } from '../../../../services/auth.service';
|
|
3
|
+
import { debounceTime, Subject, takeUntil } from 'rxjs';
|
|
4
|
+
import { GlobalStateService } from 'tango-app-ui-global'
|
|
5
|
+
import crypto from 'crypto-js';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
7
|
+
@Component({
|
|
8
|
+
selector: "lib-sidebar-menu",
|
|
9
|
+
templateUrl: "./sidebar-menu.component.html",
|
|
10
|
+
styleUrls: ["./sidebar-menu.component.scss"],
|
|
11
|
+
})
|
|
12
|
+
export class SidebarMenuComponent implements OnInit {
|
|
13
|
+
usersList: any;
|
|
14
|
+
authlocalStorageToken: string;
|
|
15
|
+
oldDashboardRoutingUrl: any;
|
|
16
|
+
clientData: any;
|
|
17
|
+
headerFilters: any;
|
|
18
|
+
showPlano: string;
|
|
19
|
+
constructor(
|
|
20
|
+
private authService: AuthService,
|
|
21
|
+
public gs: GlobalStateService,private router:Router,
|
|
22
|
+
) {
|
|
23
|
+
this.gs.environment.pipe(takeUntil(this.destroy$)).subscribe((env) => {
|
|
24
|
+
if (env) {
|
|
25
|
+
this.authlocalStorageToken = `${env.appVersion}-${env.USERDATA_KEY}`;
|
|
26
|
+
this.oldDashboardRoutingUrl = env.oldDashboardRoutingUrl;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
private readonly destroy$ = new Subject();
|
|
31
|
+
previousClientId: any = null;
|
|
32
|
+
ngOnInit(): void {
|
|
33
|
+
this.getPlanoUsers();
|
|
34
|
+
if ("user-info" in localStorage) {
|
|
35
|
+
const userData: any = JSON.parse(
|
|
36
|
+
localStorage.getItem("user-info") || "{}"
|
|
37
|
+
);
|
|
38
|
+
this.usersList = userData;
|
|
39
|
+
}
|
|
40
|
+
this.gs?.dataRangeValue.pipe(takeUntil(this.destroy$)).subscribe({
|
|
41
|
+
next: (data: any) => {
|
|
42
|
+
this.headerFilters = data || this.headerFilters;
|
|
43
|
+
|
|
44
|
+
const clientId = this.usersList?.clientId ?? this.headerFilters?.client;
|
|
45
|
+
|
|
46
|
+
if (clientId && clientId !== this.previousClientId) {
|
|
47
|
+
this.previousClientId = clientId; // Store last called clientId
|
|
48
|
+
this.getClientData(clientId);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// this.gs?.dataRangeValue.pipe((takeUntil(this.destroy$)))?.subscribe({
|
|
55
|
+
// next: (data: any) => {
|
|
56
|
+
// if(data){
|
|
57
|
+
// this.headerFilters = data;
|
|
58
|
+
// if(this.usersList?.clientId || this.headerFilters?.client)
|
|
59
|
+
// this.getClientData(this.usersList.clientId ? this.usersList.clientId: this.headerFilters.client)
|
|
60
|
+
// }
|
|
61
|
+
// else {
|
|
62
|
+
// if(this.usersList?.clientId || this.headerFilters?.client)
|
|
63
|
+
// this.getClientData(this.usersList.clientId ? this.usersList.clientId: this.headerFilters.client)
|
|
64
|
+
// }
|
|
65
|
+
// }
|
|
66
|
+
// })
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
getPlanoUsers() {
|
|
70
|
+
this.authService.getPlanoUsers().pipe(takeUntil(this.destroy$), debounceTime(100))?.subscribe((res: any) => {
|
|
71
|
+
this.showPlano = res?.message || "Unauthorized";
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
oldDashborad() {
|
|
76
|
+
let obj = { username: this.usersList?.email };//this.usersList?.email}; // Assuming this is required for authentication/authorization
|
|
77
|
+
this.authService
|
|
78
|
+
.getOldDashboardRedirect(obj)
|
|
79
|
+
.pipe((takeUntil(this.destroy$)), debounceTime(100))?.subscribe((res: any) => {
|
|
80
|
+
if (res && res.code === 200) {
|
|
81
|
+
// Assuming res.data contains necessary authentication/authorization information
|
|
82
|
+
var ciphertext = encodeURIComponent(
|
|
83
|
+
crypto.AES.encrypt(
|
|
84
|
+
JSON.stringify(res.data),
|
|
85
|
+
"secret key 123"
|
|
86
|
+
).toString()
|
|
87
|
+
);
|
|
88
|
+
var queryParams = `?token=${ciphertext}`;
|
|
89
|
+
var baseUrl = `${this.oldDashboardRoutingUrl}/auth/login`;
|
|
90
|
+
var url = `${baseUrl}${queryParams}`;
|
|
91
|
+
// // Opening the URL in a new tab/window
|
|
92
|
+
// // Note: This might trigger popup blockers if not invoked by user action
|
|
93
|
+
var newTab = window.open(url, "_blank");
|
|
94
|
+
|
|
95
|
+
// // Handle popup blocked scenario
|
|
96
|
+
// if (!newTab || newTab.closed || typeof newTab.closed === 'undefined') {
|
|
97
|
+
// Redirect to the URL in the current window if popup is blocked
|
|
98
|
+
// window.location.href = url;
|
|
99
|
+
// }
|
|
100
|
+
} else {
|
|
101
|
+
// Handle error case
|
|
102
|
+
console.error("Error: Unable to retrieve redirection data.");
|
|
103
|
+
// Optionally, display an error message to the user
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
getClientData(clientID: any) {
|
|
109
|
+
if (!clientID) return;
|
|
110
|
+
|
|
111
|
+
this.authService.getBrandDetails(clientID)
|
|
112
|
+
.pipe(takeUntil(this.destroy$))
|
|
113
|
+
.subscribe({
|
|
114
|
+
next: (res: any) => {
|
|
115
|
+
if (res?.code === 200) {
|
|
116
|
+
this.clientData = res.data;
|
|
117
|
+
localStorage.setItem("client-details", JSON.stringify(this.clientData?.featureConfigs));
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
error: (error) => {
|
|
121
|
+
console.error("Error fetching client data", error);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
cameras(){
|
|
126
|
+
this.router.navigate(['/manage/stores/cameras'], {
|
|
127
|
+
queryParams: { storeId: '11-2391' },
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!--begin::Logo-->
|
|
2
|
+
<lib-sidebar-logo class="app-sidebar-logo px-6" id="kt_app_sidebar_logo"
|
|
3
|
+
[toggleButtonClass]="toggleButtonClass" [toggleEnabled]="toggleEnabled" [toggleType]="toggleType"
|
|
4
|
+
[toggleState]="toggleState">
|
|
5
|
+
</lib-sidebar-logo>
|
|
6
|
+
<!--end::Logo-->
|
|
7
|
+
|
|
8
|
+
<!--begin::sidebar menu-->
|
|
9
|
+
<lib-sidebar-menu class="app-sidebar-menu overflow-hidden flex-column-fluid">
|
|
10
|
+
</lib-sidebar-menu>
|
|
11
|
+
<!--end::sidebar menu-->
|
|
12
|
+
|
|
13
|
+
<!--begin::Footer-->
|
|
14
|
+
<lib-sidebar-footer class="app-sidebar-footer flex-column-auto pt-2" id="kt_app_sidebar_footer">
|
|
15
|
+
</lib-sidebar-footer>
|
|
16
|
+
<!--end::Footer-->
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SidebarComponent } from './sidebar.component';
|
|
4
|
+
|
|
5
|
+
describe('SidebarComponent', () => {
|
|
6
|
+
let component: SidebarComponent;
|
|
7
|
+
let fixture: ComponentFixture<SidebarComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SidebarComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(SidebarComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { LayoutService } from 'tango-app-ui-global';
|
|
4
|
+
import { ILayout } from 'tango-app-ui-global';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'lib-sidebar',
|
|
8
|
+
templateUrl: './sidebar.component.html',
|
|
9
|
+
styleUrls: ['./sidebar.component.scss'],
|
|
10
|
+
})
|
|
11
|
+
export class SidebarComponent implements OnInit, OnDestroy {
|
|
12
|
+
private unsubscribe: Subscription[] = [];
|
|
13
|
+
userValue:any
|
|
14
|
+
// public props
|
|
15
|
+
appSidebarDisplay: boolean;
|
|
16
|
+
appSidebarDefaultFixedDesktop: boolean;
|
|
17
|
+
appSidebarDefaultMinimizeDesktopEnabled: boolean;
|
|
18
|
+
appSidebarDefaultMinimizeDesktopDefault: boolean;
|
|
19
|
+
appSidebarDefaultMinimizeDesktopHoverable: boolean;
|
|
20
|
+
appSidebarDefaultMinimizeMobileEnabled: boolean;
|
|
21
|
+
appSidebarDefaultMinimizeMobileDefault: boolean;
|
|
22
|
+
appSidebarDefaultMinimizeMobileHoverable: boolean;
|
|
23
|
+
appSidebarDefaultCollapseDesktopEnabled: boolean;
|
|
24
|
+
appSidebarDefaultCollapseDesktopDefault: boolean;
|
|
25
|
+
appSidebarDefaultCollapseMobileEnabled: boolean;
|
|
26
|
+
appSidebarDefaultCollapseMobileDefault: boolean;
|
|
27
|
+
|
|
28
|
+
appSidebarDefaultPushHeader: boolean;
|
|
29
|
+
appSidebarDefaultPushToolbar: boolean;
|
|
30
|
+
appSidebarDefaultPushFooter: boolean;
|
|
31
|
+
|
|
32
|
+
appSidebarDefaultStacked: boolean;
|
|
33
|
+
|
|
34
|
+
// logo
|
|
35
|
+
appSidebarDefaultMinimizeDefault: boolean;
|
|
36
|
+
toggleButtonClass: string;
|
|
37
|
+
toggleEnabled: boolean;
|
|
38
|
+
toggleType: string;
|
|
39
|
+
toggleState: string;
|
|
40
|
+
|
|
41
|
+
constructor(private layout: LayoutService) {}
|
|
42
|
+
|
|
43
|
+
ngOnInit(): void {
|
|
44
|
+
const subscr = this.layout.layoutConfigSubject
|
|
45
|
+
.asObservable()
|
|
46
|
+
.subscribe((config: ILayout) => {
|
|
47
|
+
this.updateProps(config);
|
|
48
|
+
});
|
|
49
|
+
this.unsubscribe.push(subscr);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
updateProps(config: ILayout) {
|
|
53
|
+
this.appSidebarDisplay = this.layout.getProp('app.sidebar.display', config) as boolean;
|
|
54
|
+
if (!this.appSidebarDisplay) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
this.appSidebarDefaultFixedDesktop = this.layout.getProp(
|
|
59
|
+
'app.sidebar.default.fixed.desktop',
|
|
60
|
+
config
|
|
61
|
+
) as boolean;
|
|
62
|
+
|
|
63
|
+
this.appSidebarDefaultMinimizeDesktopEnabled = this.layout.getProp(
|
|
64
|
+
'app.sidebar.default.minimize.desktop.enabled',
|
|
65
|
+
config
|
|
66
|
+
) as boolean;
|
|
67
|
+
if (this.appSidebarDefaultMinimizeDesktopEnabled) {
|
|
68
|
+
this.appSidebarDefaultMinimizeDesktopDefault = this.layout.getProp(
|
|
69
|
+
'app.sidebar.default.minimize.desktop.default',
|
|
70
|
+
config
|
|
71
|
+
) as boolean;
|
|
72
|
+
// if (this.appSidebarDefaultMinimizeDesktopDefault) {
|
|
73
|
+
document.body.setAttribute('data-kt-app-sidebar-minimize', 'on');
|
|
74
|
+
// }
|
|
75
|
+
|
|
76
|
+
this.appSidebarDefaultMinimizeDesktopHoverable = this.layout.getProp(
|
|
77
|
+
'app.sidebar.default.minimize.desktop.hoverable',
|
|
78
|
+
config
|
|
79
|
+
) as boolean;
|
|
80
|
+
if (this.appSidebarDefaultMinimizeDesktopHoverable) {
|
|
81
|
+
document.body.setAttribute('data-kt-app-sidebar-hoverable', 'true');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
this.appSidebarDefaultMinimizeMobileEnabled = this.layout.getProp(
|
|
86
|
+
'app.sidebar.default.minimize.mobile.enabled',
|
|
87
|
+
config
|
|
88
|
+
) as boolean;
|
|
89
|
+
if (this.appSidebarDefaultMinimizeMobileEnabled) {
|
|
90
|
+
this.appSidebarDefaultMinimizeMobileDefault = this.layout.getProp(
|
|
91
|
+
'app.sidebar.default.minimize.mobile.default',
|
|
92
|
+
config
|
|
93
|
+
) as boolean;
|
|
94
|
+
// if (this.appSidebarDefaultMinimizeMobileDefault) {
|
|
95
|
+
document.body.setAttribute('data-kt-app-sidebar-minimize-mobile', 'on');
|
|
96
|
+
// }
|
|
97
|
+
|
|
98
|
+
this.appSidebarDefaultMinimizeMobileHoverable = this.layout.getProp(
|
|
99
|
+
'app.sidebar.default.minimize.mobile.hoverable',
|
|
100
|
+
config
|
|
101
|
+
) as boolean;
|
|
102
|
+
if (this.appSidebarDefaultMinimizeMobileHoverable) {
|
|
103
|
+
document.body.setAttribute(
|
|
104
|
+
'data-kt-app-sidebar-hoverable-mobile',
|
|
105
|
+
'true'
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
this.appSidebarDefaultCollapseDesktopEnabled = this.layout.getProp(
|
|
111
|
+
'app.sidebar.default.collapse.desktop.enabled',
|
|
112
|
+
config
|
|
113
|
+
) as boolean;
|
|
114
|
+
if (this.appSidebarDefaultCollapseDesktopEnabled) {
|
|
115
|
+
this.appSidebarDefaultCollapseDesktopDefault = this.layout.getProp(
|
|
116
|
+
'app.sidebar.default.collapse.desktop.default',
|
|
117
|
+
config
|
|
118
|
+
) as boolean;
|
|
119
|
+
if (this.appSidebarDefaultCollapseDesktopDefault) {
|
|
120
|
+
document.body.setAttribute('data-kt-app-sidebar-collapse', 'on');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
this.appSidebarDefaultCollapseMobileEnabled = this.layout.getProp(
|
|
125
|
+
'app.sidebar.default.collapse.mobile.enabled',
|
|
126
|
+
config
|
|
127
|
+
) as boolean;
|
|
128
|
+
if (this.appSidebarDefaultCollapseMobileEnabled) {
|
|
129
|
+
this.appSidebarDefaultCollapseMobileDefault = this.layout.getProp(
|
|
130
|
+
'app.sidebar.default.collapse.mobile.default',
|
|
131
|
+
config
|
|
132
|
+
) as boolean;
|
|
133
|
+
if (this.appSidebarDefaultCollapseMobileDefault) {
|
|
134
|
+
document.body.setAttribute('data-kt-app-sidebar-collapse-mobile', 'on');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (this.layout.getProp('app.sidebar.default.push')) {
|
|
139
|
+
this.appSidebarDefaultPushHeader = this.layout.getProp(
|
|
140
|
+
'app.sidebar.default.push.header',
|
|
141
|
+
config
|
|
142
|
+
) as boolean;
|
|
143
|
+
if (this.appSidebarDefaultPushHeader) {
|
|
144
|
+
document.body.setAttribute('data-kt-app-sidebar-push-header', 'true');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
this.appSidebarDefaultPushToolbar = this.layout.getProp(
|
|
148
|
+
'app.sidebar.default.push.toolbar',
|
|
149
|
+
config
|
|
150
|
+
) as boolean;
|
|
151
|
+
if (this.appSidebarDefaultPushToolbar) {
|
|
152
|
+
document.body.setAttribute('data-kt-app-sidebar-push-toolbar', 'true');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
this.appSidebarDefaultPushFooter = this.layout.getProp(
|
|
156
|
+
'app.sidebar.default.push.footer',
|
|
157
|
+
config
|
|
158
|
+
) as boolean;
|
|
159
|
+
if (this.appSidebarDefaultPushFooter) {
|
|
160
|
+
document.body.setAttribute('data-kt-app-sidebar-push-footer', 'true');
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
this.appSidebarDefaultStacked = this.layout.getProp(
|
|
165
|
+
'app.sidebar.default.stacked',
|
|
166
|
+
config
|
|
167
|
+
) as boolean;
|
|
168
|
+
if (this.appSidebarDefaultStacked) {
|
|
169
|
+
document.body.setAttribute('app-sidebar-stacked', 'true');
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Logo
|
|
173
|
+
this.appSidebarDefaultMinimizeDefault = this.layout.getProp(
|
|
174
|
+
'app.sidebar.default.minimize.desktop.default',
|
|
175
|
+
config
|
|
176
|
+
) as boolean;
|
|
177
|
+
this.toggleButtonClass = this.appSidebarDefaultMinimizeDefault
|
|
178
|
+
? 'active'
|
|
179
|
+
: '';
|
|
180
|
+
this.toggleEnabled =
|
|
181
|
+
this.appSidebarDefaultMinimizeDesktopEnabled ||
|
|
182
|
+
this.appSidebarDefaultCollapseDesktopEnabled;
|
|
183
|
+
if (this.appSidebarDefaultMinimizeDesktopEnabled) {
|
|
184
|
+
this.toggleType = 'minimize';
|
|
185
|
+
this.toggleState = 'active';
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (this.appSidebarDefaultCollapseDesktopEnabled) {
|
|
189
|
+
this.toggleType = 'collapse';
|
|
190
|
+
this.toggleState = '';
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
document.body.setAttribute('data-kt-app-sidebar-enabled', 'true');
|
|
194
|
+
document.body.setAttribute(
|
|
195
|
+
'data-kt-app-sidebar-fixed',
|
|
196
|
+
this.appSidebarDefaultFixedDesktop.toString()
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
ngOnDestroy() {
|
|
201
|
+
this.unsubscribe.forEach((sb) => sb.unsubscribe());
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<!--begin::Input group-->
|
|
2
|
+
<div class="d-flex align-items-center flex-shrink-0">
|
|
3
|
+
<!--begin::Label-->
|
|
4
|
+
<span class="fs-7 text-gray-700 fw-bold pe-3 d-none d-md-block">Actions:</span>
|
|
5
|
+
<!--end::Label-->
|
|
6
|
+
|
|
7
|
+
<!--begin::Actions-->
|
|
8
|
+
<div class="d-flex flex-shrink-0">
|
|
9
|
+
<!--begin::Button-->
|
|
10
|
+
<div data-bs-toggle="tooltip" data-bs-placement="top" data-bs-trigger="hover" title="Add a team member">
|
|
11
|
+
<a href="#" class="btn btn-sm btn-icon btn-active-color-success">
|
|
12
|
+
<lib-keenicon name="plus-square" class="fs-2x"></lib-keenicon>
|
|
13
|
+
</a>
|
|
14
|
+
</div>
|
|
15
|
+
<!--end::Button-->
|
|
16
|
+
|
|
17
|
+
<!--begin::Button-->
|
|
18
|
+
<div data-bs-toggle="tooltip" data-bs-placement="top" data-bs-trigger="hover" title="Create new account">
|
|
19
|
+
<a href="#" class="btn btn-sm btn-icon btn-active-color-success">
|
|
20
|
+
<lib-keenicon name="gen037.svg" class="fs-2x"></lib-keenicon>
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
<!--end::Button-->
|
|
24
|
+
|
|
25
|
+
<!--begin::Button-->
|
|
26
|
+
<div data-bs-toggle="tooltip" data-bs-placement="top" data-bs-trigger="hover" title="Invite friends">
|
|
27
|
+
<a href="#" class="btn btn-sm btn-icon btn-active-color-success">
|
|
28
|
+
<lib-keenicon name="dots-square" class="fs-2x"></lib-keenicon>
|
|
29
|
+
</a>
|
|
30
|
+
</div>
|
|
31
|
+
<!--end::Button-->
|
|
32
|
+
</div>
|
|
33
|
+
<!--end::Actions-->
|
|
34
|
+
</div>
|
|
35
|
+
<!--end::Input group-->
|
|
36
|
+
|
|
37
|
+
<!--begin::Input group-->
|
|
38
|
+
<div class="d-flex align-items-center flex-shrink-0">
|
|
39
|
+
<!--begin::Desktop separartor-->
|
|
40
|
+
<div class="bullet bg-secondary h-35px w-1px mx-5"></div>
|
|
41
|
+
<!--end::Desktop separartor-->
|
|
42
|
+
|
|
43
|
+
<!--begin::Label-->
|
|
44
|
+
<span class="fs-7 text-gray-700 fw-bold pe-4 ps-1 d-none d-md-block">Progress:</span>
|
|
45
|
+
<!--end::Label-->
|
|
46
|
+
|
|
47
|
+
<div class="progress w-100px w-xl-150px w-xxl-300px h-25px bg-light-success">
|
|
48
|
+
<div class="progress-bar rounded bg-success fs-7 fw-bold" role="progressbar" style="width: 72%;" aria-valuenow="72"
|
|
49
|
+
aria-valuemin="0" aria-valuemax="100">72%</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<!--end::Input group-->
|
|
53
|
+
<!--end::Toolbar start-->
|
|
54
|
+
|
|
55
|
+
<!--begin::Toolbar end-->
|
|
56
|
+
<div class="d-flex align-items-center">
|
|
57
|
+
<!--begin::Input group-->
|
|
58
|
+
<div class="me-3">
|
|
59
|
+
<!--begin::Select-->
|
|
60
|
+
<select class="form-select form-select-sm form-select-solid" data-control="select2" data-placeholder="Latest"
|
|
61
|
+
data-hide-search="true">
|
|
62
|
+
<option value=""></option>
|
|
63
|
+
<option value="1" selected>Today 16 Feb</option>
|
|
64
|
+
<option value="2">In Progress</option>
|
|
65
|
+
<option value="3">Done</option>
|
|
66
|
+
</select>
|
|
67
|
+
<!--end::Select-->
|
|
68
|
+
</div>
|
|
69
|
+
<!--end::Input group--->
|
|
70
|
+
|
|
71
|
+
<!--begin::Input group--->
|
|
72
|
+
<div class="m-0">
|
|
73
|
+
<!--begin::Select-->
|
|
74
|
+
<select class="form-select form-select-sm form-select-solid w-md-125px" data-control="select2"
|
|
75
|
+
data-placeholder="Filters" data-hide-search="true">
|
|
76
|
+
<option value=""></option>
|
|
77
|
+
<option value="1" selected>Filters</option>
|
|
78
|
+
<option value="2">In Progress</option>
|
|
79
|
+
<option value="3">Done</option>
|
|
80
|
+
</select>
|
|
81
|
+
<!--end::Content-->
|
|
82
|
+
</div>
|
|
83
|
+
<!--end::Input group--->
|
|
84
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { AccountingComponent } from './accounting.component';
|
|
4
|
+
|
|
5
|
+
describe('AccountingComponent', () => {
|
|
6
|
+
let component: AccountingComponent;
|
|
7
|
+
let fixture: ComponentFixture<AccountingComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ AccountingComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(AccountingComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-accounting',
|
|
5
|
+
templateUrl: './accounting.component.html',
|
|
6
|
+
styleUrls: ['./accounting.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class AccountingComponent implements OnInit {
|
|
9
|
+
constructor() { }
|
|
10
|
+
|
|
11
|
+
ngOnInit(): void {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<div class="py-3 dropdown1 cursor-pointer" *ngFor="let item of dataObject; let i = index">
|
|
2
|
+
<div class="dropdown form-select" (click)="Dropdown('Clients',i,$event)">
|
|
3
|
+
<span class="">{{ selectedValuesArray[i]?.length !== null && selectedValuesArray[i]?.length !== undefined ?
|
|
4
|
+
selectedValuesArray[i]?.length + ' ' + 'Clients'.split(' ').pop() : 'Clients' }}</span>
|
|
5
|
+
</div>
|
|
6
|
+
<div *ngIf="item.isOpen" class="dropdown-content position-absolute">
|
|
7
|
+
<div class="form-check d-flex align-items-center pt-3 px-5">
|
|
8
|
+
<input class="form-check-input" type="checkbox" value="Select All" id="selectall{{i}}"
|
|
9
|
+
[checked]="selectedValuesArray[i]?.length === item.Issues.length"
|
|
10
|
+
(change)="toggleCheckbox('Select All', i)">
|
|
11
|
+
<label class="form-check-label px-3" for="selectall{{i}}">
|
|
12
|
+
Select All
|
|
13
|
+
</label>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="border border-gray mt-3"></div>
|
|
17
|
+
<div class="mt-3 d-flex align-items-center mx-2">
|
|
18
|
+
<span class="svg-icon svg-icon-1 position-absolute ms-3 mt-2">
|
|
19
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
|
|
20
|
+
<path
|
|
21
|
+
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"
|
|
22
|
+
stroke="#667085" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" />
|
|
23
|
+
</svg>
|
|
24
|
+
</span>
|
|
25
|
+
<input type="text" [(ngModel)]="searchValue" (input)="searchData($event,i)"
|
|
26
|
+
class="form-control searchinput ps-14 py-2 mt-2" placeholder="Search" autocomplete="off" />
|
|
27
|
+
</div>
|
|
28
|
+
<div *ngFor="let issue of item.Issues" class="form-check d-flex align-items-center py-3 px-5">
|
|
29
|
+
<input class="form-check-input cursor-pointer" type="checkbox" [value]="issue.clientName" id="option{{issue.clientId}}"
|
|
30
|
+
[checked]="selectedValuesArray[i]?.includes(issue.clientId)" (change)="toggleCheckbox(issue.clientId,i)">
|
|
31
|
+
<label class="form-check-label px-3 cursor-pointer" for="option{{issue.clientId}}">
|
|
32
|
+
{{ issue.clientName }}
|
|
33
|
+
</label>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="mt-5 d-flex justify-content-center">
|
|
36
|
+
<span class="form-check-label mb-3" *ngIf="noFilter"> No filters available</span>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="d-flex align-items-center position-relative my-1">
|
|
41
|
+
<span class="svg-icon svg-icon-1 position-absolute ms-3">
|
|
42
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
43
|
+
<path
|
|
44
|
+
d="M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z"
|
|
45
|
+
stroke="#344054" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
|
|
46
|
+
</svg>
|
|
47
|
+
</span>
|
|
48
|
+
<input class="fx-date-range form-control ps-14" style="min-width: 260px !important;" type="text" matInput ngxDaterangepickerMd [drops]="'down'"
|
|
49
|
+
[opens]="'right'" [ranges]="ranges" [showCustomRangeLabel]="true" [alwaysShowCalendars]="false"
|
|
50
|
+
[keepCalendarOpeningWithRange]="true" [showCancel]="true" autocomplete="off" [(ngModel)]="selectedDateRange" (startDateChanged)="onStartDateChange($event)" [isCustomDate]="isCustomDate"
|
|
51
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
52
|
+
(datesUpdated)="datechange($event)" name="daterange" [readonly]="true" />
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<!-- <input class="fx-date-range form-control ps-14" type="text" matInput ngxDaterangepickerMd
|
|
57
|
+
[singleDatePicker]="true"
|
|
58
|
+
[drops]="'down'"
|
|
59
|
+
[opens]="'right'"
|
|
60
|
+
[alwaysShowCalendars]="false"
|
|
61
|
+
[keepCalendarOpeningWithRange]="true"
|
|
62
|
+
[showCancel]="true"
|
|
63
|
+
autocomplete="off"
|
|
64
|
+
[(ngModel)]="selectedDate"
|
|
65
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
66
|
+
(selected)="onDateSelect($event)"
|
|
67
|
+
name="daterange" /> -->
|
|
68
|
+
|
|
69
|
+
<div class="btn btn-primary" (click)="Apply()">Apply</div>
|