@volo/ngx-lepton-x.core 2.2.1 → 2.3.0-rc.1
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/{esm2020 → esm2022}/index.mjs +13 -13
- package/{esm2020 → esm2022}/lib/abstracts/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/abstracts/perfect-scrollbar.mjs +7 -7
- package/esm2022/lib/components/avatar/avatar.component.mjs +16 -0
- package/esm2022/lib/components/avatar/avatar.module.mjs +20 -0
- package/{esm2020 → esm2022}/lib/components/avatar/index.mjs +2 -2
- package/esm2022/lib/components/brand-logo/brand-logo.component.mjs +12 -0
- package/esm2022/lib/components/brand-logo/brand-logo.module.mjs +21 -0
- package/{esm2020 → esm2022}/lib/components/brand-logo/index.mjs +2 -2
- package/esm2022/lib/components/breadcrumb/breadcrumb-route-listener.service.mjs +55 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +29 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.module.mjs +59 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.service.mjs +34 -0
- package/{esm2020 → esm2022}/lib/components/breadcrumb/index.mjs +4 -4
- package/esm2022/lib/components/footer/footer-links.service.mjs +22 -0
- package/esm2022/lib/components/footer/footer.component.mjs +21 -0
- package/esm2022/lib/components/footer/footer.module.mjs +26 -0
- package/{esm2020 → esm2022}/lib/components/footer/index.mjs +3 -3
- package/esm2022/lib/components/icon/icon.component.mjs +29 -0
- package/esm2022/lib/components/icon/icon.module.mjs +31 -0
- package/{esm2020 → esm2022}/lib/components/icon/icon.token.mjs +21 -21
- package/{esm2020 → esm2022}/lib/components/icon/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/components/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/navbar/index.mjs +7 -7
- package/{esm2020 → esm2022}/lib/components/navbar/models.mjs +2 -2
- package/{esm2020 → esm2022}/lib/components/navbar/navbar-routes/index.mjs +2 -2
- package/esm2022/lib/components/navbar/navbar-routes/navbar-routes.component.mjs +75 -0
- package/esm2022/lib/components/navbar/navbar-routes/navbar-routes.directive.mjs +15 -0
- package/esm2022/lib/components/navbar/navbar.component.mjs +43 -0
- package/esm2022/lib/components/navbar/navbar.module.mjs +102 -0
- package/esm2022/lib/components/navbar/navbar.service.mjs +157 -0
- package/{esm2020 → esm2022}/lib/components/navbar/navbar.token.mjs +4 -4
- package/esm2022/lib/components/navbar/sub-navbar/sub-navbar.component.mjs +66 -0
- package/{esm2020 → esm2022}/lib/consts/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/consts/others-group.mjs +1 -1
- package/esm2022/lib/directives/click-outside/click-outside.directive.mjs +32 -0
- package/esm2022/lib/directives/click-outside/click-outside.module.mjs +19 -0
- package/{esm2020 → esm2022}/lib/directives/click-outside/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/directives/index.mjs +4 -4
- package/esm2022/lib/directives/perfect-scrollbar.directive.mjs +35 -0
- package/{esm2020 → esm2022}/lib/directives/responsive/defaults.mjs +6 -6
- package/{esm2020 → esm2022}/lib/directives/responsive/index.mjs +5 -5
- package/{esm2020 → esm2022}/lib/directives/responsive/responsive-breakpoints.token.mjs +2 -2
- package/esm2022/lib/directives/responsive/responsive.directive.mjs +52 -0
- package/esm2022/lib/directives/responsive/responsive.module.mjs +19 -0
- package/esm2022/lib/directives/responsive/responsive.service.mjs +78 -0
- package/esm2022/lib/directives/visible.directive.mjs +65 -0
- package/esm2022/lib/lepton-x-core.module.mjs +49 -0
- package/{esm2020 → esm2022}/lib/models/common.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/user.mjs +1 -1
- package/esm2022/lib/panels/breadcrumb-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/content-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/current-user-image-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/current-user-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/footer-panel.directive.mjs +17 -0
- package/{esm2020 → esm2022}/lib/panels/index.mjs +14 -14
- package/esm2022/lib/panels/language-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/logo-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/mobile-navbar-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/navbar-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/navitem-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/panels.module.mjs +70 -0
- package/esm2022/lib/panels/settings-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/toolbar-panel.directive.mjs +17 -0
- package/esm2022/lib/panels/top-navbar-panel.directive.mjs +17 -0
- package/{esm2020 → esm2022}/lib/pipes/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/pipes/safe-html/index.mjs +1 -1
- package/esm2022/lib/pipes/safe-html/safe-html.pipe.mjs +21 -0
- package/{esm2020 → esm2022}/lib/pipes/to-observable/index.mjs +2 -2
- package/esm2022/lib/pipes/to-observable/to-observable.module.mjs +19 -0
- package/esm2022/lib/pipes/to-observable/to-observable.pipe.mjs +19 -0
- package/{esm2020 → esm2022}/lib/pipes/translate/index.mjs +2 -2
- package/esm2022/lib/pipes/translate/translate.module.mjs +19 -0
- package/esm2022/lib/pipes/translate/translate.pipe.mjs +22 -0
- package/{esm2020 → esm2022}/lib/providers/direction.provider.mjs +30 -30
- package/{esm2020 → esm2022}/lib/providers/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/providers/responsive.provider.mjs +7 -7
- package/{esm2020 → esm2022}/lib/providers/styles.provider.mjs +22 -22
- package/{esm2020 → esm2022}/lib/providers/window.provider.mjs +4 -4
- package/esm2022/lib/services/auth/default-auth.service.mjs +21 -0
- package/{esm2020 → esm2022}/lib/services/auth/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/auth/models.mjs +1 -1
- package/{esm2020 → esm2022}/lib/services/auth/providers.mjs +6 -6
- package/{esm2020 → esm2022}/lib/services/auth/tokens.mjs +2 -2
- package/esm2022/lib/services/body/body.service.mjs +26 -0
- package/{esm2020 → esm2022}/lib/services/body/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/services/index.mjs +8 -8
- package/{esm2020 → esm2022}/lib/services/language/index.mjs +5 -5
- package/{esm2020 → esm2022}/lib/services/language/language-translate-keys.enum.mjs +7 -7
- package/esm2022/lib/services/language/language.module.mjs +38 -0
- package/esm2022/lib/services/language/language.service.mjs +69 -0
- package/{esm2020 → esm2022}/lib/services/language/models.mjs +1 -1
- package/{esm2020 → esm2022}/lib/services/language/tokens.mjs +2 -2
- package/{esm2020 → esm2022}/lib/services/layout/index.mjs +1 -1
- package/esm2022/lib/services/layout/layout.service.mjs +57 -0
- package/{esm2020 → esm2022}/lib/services/local-storage/index.mjs +1 -1
- package/esm2022/lib/services/local-storage/local-storage.service.mjs +33 -0
- package/esm2022/lib/services/perfect-scrollbar.service.mjs +48 -0
- package/esm2022/lib/services/translate/default-translate.service.mjs +18 -0
- package/{esm2020 → esm2022}/lib/services/translate/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/translate/models.mjs +1 -1
- package/{esm2020 → esm2022}/lib/services/translate/providers.mjs +9 -9
- package/{esm2020 → esm2022}/lib/services/translate/tokens.mjs +3 -3
- package/esm2022/lib/services/translate/translate.service.mjs +33 -0
- package/{esm2020 → esm2022}/lib/services/user-profile/index.mjs +1 -1
- package/esm2022/lib/services/user-profile/user-profile.service.mjs +25 -0
- package/{esm2020 → esm2022}/lib/style/index.mjs +5 -5
- package/{esm2020 → esm2022}/lib/style/models.mjs +1 -1
- package/{esm2020 → esm2022}/lib/style/style-load.factory.mjs +9 -9
- package/esm2022/lib/style/style.service.mjs +77 -0
- package/{esm2020 → esm2022}/lib/style/tokens.mjs +4 -4
- package/{esm2020 → esm2022}/lib/style/utils.mjs +3 -3
- package/{esm2020 → esm2022}/lib/tokens/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/tokens/perfect-scrollbar.token.mjs +2 -2
- package/{esm2020 → esm2022}/lib/tokens/window.token.mjs +2 -2
- package/{esm2020 → esm2022}/lib/utils/common.mjs +29 -29
- package/esm2022/lib/utils/data-store.mjs +30 -0
- package/{esm2020 → esm2022}/lib/utils/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/utils/tree-utils.mjs +20 -20
- package/{esm2020 → esm2022}/volo-ngx-lepton-x.core.mjs +4 -4
- package/{fesm2020 → fesm2022}/volo-ngx-lepton-x.core.mjs +1764 -1764
- package/fesm2022/volo-ngx-lepton-x.core.mjs.map +1 -0
- package/index.d.ts +13 -13
- package/lib/abstracts/index.d.ts +1 -1
- package/lib/abstracts/perfect-scrollbar.d.ts +15 -15
- package/lib/components/avatar/avatar.component.d.ts +10 -10
- package/lib/components/avatar/avatar.module.d.ts +9 -9
- package/lib/components/avatar/index.d.ts +2 -2
- package/lib/components/brand-logo/brand-logo.component.d.ts +5 -5
- package/lib/components/brand-logo/brand-logo.module.d.ts +8 -8
- package/lib/components/brand-logo/index.d.ts +2 -2
- package/lib/components/breadcrumb/breadcrumb-route-listener.service.d.ts +14 -14
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +28 -28
- package/lib/components/breadcrumb/breadcrumb.module.d.ts +17 -17
- package/lib/components/breadcrumb/breadcrumb.service.d.ts +19 -19
- package/lib/components/breadcrumb/index.d.ts +4 -4
- package/lib/components/footer/footer-links.service.d.ts +17 -17
- package/lib/components/footer/footer.component.d.ts +10 -10
- package/lib/components/footer/footer.module.d.ts +11 -11
- package/lib/components/footer/index.d.ts +3 -3
- package/lib/components/icon/icon.component.d.ts +10 -10
- package/lib/components/icon/icon.module.d.ts +14 -14
- package/lib/components/icon/icon.token.d.ts +40 -40
- package/lib/components/icon/index.d.ts +3 -3
- package/lib/components/index.d.ts +6 -6
- package/lib/components/navbar/index.d.ts +7 -7
- package/lib/components/navbar/models.d.ts +23 -24
- package/lib/components/navbar/navbar-routes/index.d.ts +2 -2
- package/lib/components/navbar/navbar-routes/navbar-routes.component.d.ts +21 -21
- package/lib/components/navbar/navbar-routes/navbar-routes.directive.d.ts +5 -5
- package/lib/components/navbar/navbar.component.d.ts +20 -20
- package/lib/components/navbar/navbar.module.d.ts +27 -27
- package/lib/components/navbar/navbar.service.d.ts +36 -36
- package/lib/components/navbar/navbar.token.d.ts +5 -5
- package/lib/components/navbar/sub-navbar/sub-navbar.component.d.ts +16 -16
- package/lib/consts/index.d.ts +1 -1
- package/lib/consts/others-group.d.ts +1 -1
- package/lib/directives/click-outside/click-outside.directive.d.ts +11 -11
- package/lib/directives/click-outside/click-outside.module.d.ts +8 -8
- package/lib/directives/click-outside/index.d.ts +2 -2
- package/lib/directives/index.d.ts +4 -4
- package/lib/directives/perfect-scrollbar.directive.d.ts +12 -12
- package/lib/directives/responsive/defaults.d.ts +2 -2
- package/lib/directives/responsive/index.d.ts +5 -5
- package/lib/directives/responsive/responsive-breakpoints.token.d.ts +5 -5
- package/lib/directives/responsive/responsive.directive.d.ts +19 -19
- package/lib/directives/responsive/responsive.module.d.ts +8 -8
- package/lib/directives/responsive/responsive.service.d.ts +47 -47
- package/lib/directives/visible.directive.d.ts +18 -18
- package/lib/lepton-x-core.module.d.ts +24 -24
- package/lib/models/common.d.ts +12 -12
- package/lib/models/index.d.ts +2 -2
- package/lib/models/user.d.ts +16 -16
- package/lib/panels/breadcrumb-panel.directive.d.ts +8 -8
- package/lib/panels/content-panel.directive.d.ts +8 -8
- package/lib/panels/current-user-image-panel.directive.d.ts +8 -8
- package/lib/panels/current-user-panel.directive.d.ts +8 -8
- package/lib/panels/footer-panel.directive.d.ts +8 -8
- package/lib/panels/index.d.ts +14 -14
- package/lib/panels/language-panel.directive.d.ts +8 -8
- package/lib/panels/logo-panel.directive.d.ts +8 -8
- package/lib/panels/mobile-navbar-panel.directive.d.ts +8 -8
- package/lib/panels/navbar-panel.directive.d.ts +8 -8
- package/lib/panels/navitem-panel.directive.d.ts +8 -8
- package/lib/panels/panels.module.d.ts +20 -20
- package/lib/panels/settings-panel.directive.d.ts +8 -8
- package/lib/panels/toolbar-panel.directive.d.ts +8 -8
- package/lib/panels/top-navbar-panel.directive.d.ts +8 -8
- package/lib/pipes/index.d.ts +3 -3
- package/lib/pipes/safe-html/index.d.ts +1 -1
- package/lib/pipes/safe-html/safe-html.pipe.d.ts +8 -8
- package/lib/pipes/to-observable/index.d.ts +2 -2
- package/lib/pipes/to-observable/to-observable.module.d.ts +8 -8
- package/lib/pipes/to-observable/to-observable.pipe.d.ts +9 -9
- package/lib/pipes/translate/index.d.ts +2 -2
- package/lib/pipes/translate/translate.module.d.ts +8 -8
- package/lib/pipes/translate/translate.pipe.d.ts +10 -10
- package/lib/providers/direction.provider.d.ts +5 -5
- package/lib/providers/index.d.ts +4 -4
- package/lib/providers/responsive.provider.d.ts +3 -3
- package/lib/providers/styles.provider.d.ts +6 -6
- package/lib/providers/window.provider.d.ts +2 -2
- package/lib/services/auth/default-auth.service.d.ts +11 -11
- package/lib/services/auth/index.d.ts +4 -4
- package/lib/services/auth/models.d.ts +5 -5
- package/lib/services/auth/providers.d.ts +2 -2
- package/lib/services/auth/tokens.d.ts +3 -3
- package/lib/services/body/body.service.d.ts +11 -11
- package/lib/services/body/index.d.ts +1 -1
- package/lib/services/index.d.ts +8 -8
- package/lib/services/language/index.d.ts +5 -5
- package/lib/services/language/language-translate-keys.enum.d.ts +7 -7
- package/lib/services/language/language.module.d.ts +10 -10
- package/lib/services/language/language.service.d.ts +28 -28
- package/lib/services/language/models.d.ts +14 -14
- package/lib/services/language/tokens.d.ts +3 -3
- package/lib/services/layout/index.d.ts +1 -1
- package/lib/services/layout/layout.service.d.ts +20 -20
- package/lib/services/local-storage/index.d.ts +1 -1
- package/lib/services/local-storage/local-storage.service.d.ts +13 -13
- package/lib/services/perfect-scrollbar.service.d.ts +15 -15
- package/lib/services/translate/default-translate.service.d.ts +9 -9
- package/lib/services/translate/index.d.ts +4 -4
- package/lib/services/translate/models.d.ts +9 -9
- package/lib/services/translate/providers.d.ts +3 -3
- package/lib/services/translate/tokens.d.ts +4 -4
- package/lib/services/translate/translate.service.d.ts +12 -12
- package/lib/services/user-profile/index.d.ts +1 -1
- package/lib/services/user-profile/user-profile.service.d.ts +10 -10
- package/lib/style/index.d.ts +5 -5
- package/lib/style/models.d.ts +8 -8
- package/lib/style/style-load.factory.d.ts +2 -2
- package/lib/style/style.service.d.ts +17 -17
- package/lib/style/tokens.d.ts +5 -5
- package/lib/style/utils.d.ts +2 -2
- package/lib/tokens/index.d.ts +2 -2
- package/lib/tokens/perfect-scrollbar.token.d.ts +3 -3
- package/lib/tokens/window.token.d.ts +2 -2
- package/lib/utils/common.d.ts +11 -11
- package/lib/utils/data-store.d.ts +12 -12
- package/lib/utils/index.d.ts +3 -3
- package/lib/utils/tree-utils.d.ts +8 -8
- package/package.json +12 -18
- package/esm2020/lib/components/avatar/avatar.component.mjs +0 -15
- package/esm2020/lib/components/avatar/avatar.module.mjs +0 -19
- package/esm2020/lib/components/brand-logo/brand-logo.component.mjs +0 -11
- package/esm2020/lib/components/brand-logo/brand-logo.module.mjs +0 -20
- package/esm2020/lib/components/breadcrumb/breadcrumb-route-listener.service.mjs +0 -54
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -28
- package/esm2020/lib/components/breadcrumb/breadcrumb.module.mjs +0 -58
- package/esm2020/lib/components/breadcrumb/breadcrumb.service.mjs +0 -33
- package/esm2020/lib/components/footer/footer-links.service.mjs +0 -21
- package/esm2020/lib/components/footer/footer.component.mjs +0 -20
- package/esm2020/lib/components/footer/footer.module.mjs +0 -25
- package/esm2020/lib/components/icon/icon.component.mjs +0 -28
- package/esm2020/lib/components/icon/icon.module.mjs +0 -30
- package/esm2020/lib/components/navbar/navbar-routes/navbar-routes.component.mjs +0 -74
- package/esm2020/lib/components/navbar/navbar-routes/navbar-routes.directive.mjs +0 -14
- package/esm2020/lib/components/navbar/navbar.component.mjs +0 -42
- package/esm2020/lib/components/navbar/navbar.module.mjs +0 -101
- package/esm2020/lib/components/navbar/navbar.service.mjs +0 -156
- package/esm2020/lib/components/navbar/sub-navbar/sub-navbar.component.mjs +0 -65
- package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +0 -31
- package/esm2020/lib/directives/click-outside/click-outside.module.mjs +0 -18
- package/esm2020/lib/directives/perfect-scrollbar.directive.mjs +0 -34
- package/esm2020/lib/directives/responsive/responsive.directive.mjs +0 -51
- package/esm2020/lib/directives/responsive/responsive.module.mjs +0 -18
- package/esm2020/lib/directives/responsive/responsive.service.mjs +0 -77
- package/esm2020/lib/directives/visible.directive.mjs +0 -64
- package/esm2020/lib/lepton-x-core.module.mjs +0 -48
- package/esm2020/lib/panels/breadcrumb-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/content-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/current-user-image-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/current-user-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/footer-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/language-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/logo-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/mobile-navbar-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/navbar-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/navitem-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/panels.module.mjs +0 -69
- package/esm2020/lib/panels/settings-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/toolbar-panel.directive.mjs +0 -16
- package/esm2020/lib/panels/top-navbar-panel.directive.mjs +0 -16
- package/esm2020/lib/pipes/safe-html/safe-html.pipe.mjs +0 -20
- package/esm2020/lib/pipes/to-observable/to-observable.module.mjs +0 -18
- package/esm2020/lib/pipes/to-observable/to-observable.pipe.mjs +0 -18
- package/esm2020/lib/pipes/translate/translate.module.mjs +0 -18
- package/esm2020/lib/pipes/translate/translate.pipe.mjs +0 -21
- package/esm2020/lib/services/auth/default-auth.service.mjs +0 -20
- package/esm2020/lib/services/body/body.service.mjs +0 -25
- package/esm2020/lib/services/language/language.module.mjs +0 -37
- package/esm2020/lib/services/language/language.service.mjs +0 -68
- package/esm2020/lib/services/layout/layout.service.mjs +0 -56
- package/esm2020/lib/services/local-storage/local-storage.service.mjs +0 -32
- package/esm2020/lib/services/perfect-scrollbar.service.mjs +0 -47
- package/esm2020/lib/services/translate/default-translate.service.mjs +0 -17
- package/esm2020/lib/services/translate/translate.service.mjs +0 -32
- package/esm2020/lib/services/user-profile/user-profile.service.mjs +0 -24
- package/esm2020/lib/style/style.service.mjs +0 -76
- package/esm2020/lib/utils/data-store.mjs +0 -30
- package/fesm2015/volo-ngx-lepton-x.core.mjs +0 -1934
- package/fesm2015/volo-ngx-lepton-x.core.mjs.map +0 -1
- package/fesm2020/volo-ngx-lepton-x.core.mjs.map +0 -1
|
@@ -1,1934 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, InjectionToken, Injectable, Inject, NgModule, Component, ViewEncapsulation, Input, Directive, Optional, Pipe, EventEmitter, Output, TemplateRef, ContentChild, SecurityContext, HostListener, APP_INITIALIZER, Injector, SkipSelf, ElementRef } from '@angular/core';
|
|
3
|
-
import * as i1$1 from '@angular/router';
|
|
4
|
-
import { Router, NavigationEnd, NavigationError, NavigationCancel, RouterModule } from '@angular/router';
|
|
5
|
-
import * as i1 from '@angular/common';
|
|
6
|
-
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
7
|
-
import { map, distinctUntilChanged, filter, take, tap, switchMap, startWith, distinctUntilKeyChanged } from 'rxjs/operators';
|
|
8
|
-
import { BehaviorSubject, Subject, Observable, from, of, EMPTY, filter as filter$1, combineLatest, fromEvent, Subscription } from 'rxjs';
|
|
9
|
-
import { FormsModule } from '@angular/forms';
|
|
10
|
-
import PerfectScrollbar from 'perfect-scrollbar';
|
|
11
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
12
|
-
import { __awaiter } from 'tslib';
|
|
13
|
-
|
|
14
|
-
class LpxPerfectScrollbar {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.router = inject(Router);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const LPX_LANGUAGE = new InjectionToken('LPX_LANGUAGE');
|
|
21
|
-
|
|
22
|
-
class DataStore {
|
|
23
|
-
constructor(initialState) {
|
|
24
|
-
this.initialState = initialState;
|
|
25
|
-
this.state$ = new BehaviorSubject(this.initialState);
|
|
26
|
-
this.update$ = new Subject();
|
|
27
|
-
this.sliceState = (selector, compareFn = (s1, s2) => s1 === s2) => this.state$.pipe(map(selector), distinctUntilChanged(compareFn));
|
|
28
|
-
this.sliceUpdate = (selector, filterFn = (x) => x !== undefined) => this.update$.pipe(map(selector), filter(filterFn));
|
|
29
|
-
}
|
|
30
|
-
get state() {
|
|
31
|
-
return this.state$.value;
|
|
32
|
-
}
|
|
33
|
-
patch(state) {
|
|
34
|
-
let patchedState = state;
|
|
35
|
-
if (typeof state === 'object' && !Array.isArray(state)) {
|
|
36
|
-
patchedState = Object.assign(Object.assign({}, this.state), state);
|
|
37
|
-
}
|
|
38
|
-
this.state$.next(patchedState);
|
|
39
|
-
this.update$.next(patchedState);
|
|
40
|
-
}
|
|
41
|
-
set(state) {
|
|
42
|
-
this.state$.next(state);
|
|
43
|
-
this.update$.next(state);
|
|
44
|
-
}
|
|
45
|
-
reset() {
|
|
46
|
-
this.set(this.initialState);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var LanguageTranslateKeys;
|
|
51
|
-
(function (LanguageTranslateKeys) {
|
|
52
|
-
LanguageTranslateKeys["SettingsTitle"] = "language.settings.title";
|
|
53
|
-
})(LanguageTranslateKeys || (LanguageTranslateKeys = {}));
|
|
54
|
-
const LanguageTranslateDefaults = {
|
|
55
|
-
[LanguageTranslateKeys.SettingsTitle]: 'Language Options',
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
class LanguageService {
|
|
59
|
-
constructor(languages) {
|
|
60
|
-
this.languages = languages;
|
|
61
|
-
this.store = new DataStore({ languages: [] });
|
|
62
|
-
this.id = 'languages';
|
|
63
|
-
this.convertLanguageToNavbarItem = (languages) => {
|
|
64
|
-
return languages.map((lang) => ({
|
|
65
|
-
icon: '',
|
|
66
|
-
text: lang.displayName,
|
|
67
|
-
selected: lang.selected,
|
|
68
|
-
action: () => {
|
|
69
|
-
this.setSelectedLanguage(lang);
|
|
70
|
-
return true;
|
|
71
|
-
},
|
|
72
|
-
}));
|
|
73
|
-
};
|
|
74
|
-
this.selectedLanguage$ = this.store.sliceState(({ selectedLanguage }) => selectedLanguage);
|
|
75
|
-
this.languageChange$ = this.selectedLanguage$.pipe(
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
77
|
-
// @ts-ignore
|
|
78
|
-
filter((lang) => lang !== undefined), distinctUntilChanged((a, b) => (a === null || a === void 0 ? void 0 : a.cultureName) === (b === null || b === void 0 ? void 0 : b.cultureName)));
|
|
79
|
-
this.languages$ = this.store.sliceState((state) => state.languages);
|
|
80
|
-
this.languagesAsNavbarItems$ = this.languages$.pipe(map(this.convertLanguageToNavbarItem));
|
|
81
|
-
//TODO: PROVIDE API
|
|
82
|
-
this.languagesAsSettingsGroup$ = this.languagesAsNavbarItems$.pipe(map((languages) => ({
|
|
83
|
-
text: LanguageTranslateKeys.SettingsTitle,
|
|
84
|
-
icon: 'bi bi-globe',
|
|
85
|
-
id: this.id,
|
|
86
|
-
children: languages,
|
|
87
|
-
})));
|
|
88
|
-
this.init(this.languages);
|
|
89
|
-
}
|
|
90
|
-
get selectedLanguage() {
|
|
91
|
-
return this.store.state.selectedLanguage;
|
|
92
|
-
}
|
|
93
|
-
setLanguages(languages) {
|
|
94
|
-
this.init(languages);
|
|
95
|
-
}
|
|
96
|
-
init(languages) {
|
|
97
|
-
this.store.patch({
|
|
98
|
-
languages,
|
|
99
|
-
selectedLanguage: languages.find((lang) => lang.selected),
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
setSelectedLanguage(lang) {
|
|
103
|
-
this.store.patch({
|
|
104
|
-
selectedLanguage: lang,
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
LanguageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguageService, deps: [{ token: LPX_LANGUAGE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
109
|
-
LanguageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguageService, providedIn: 'root' });
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguageService, decorators: [{
|
|
111
|
-
type: Injectable,
|
|
112
|
-
args: [{
|
|
113
|
-
providedIn: 'root',
|
|
114
|
-
}]
|
|
115
|
-
}], ctorParameters: function () {
|
|
116
|
-
return [{ type: undefined, decorators: [{
|
|
117
|
-
type: Inject,
|
|
118
|
-
args: [LPX_LANGUAGE]
|
|
119
|
-
}] }];
|
|
120
|
-
} });
|
|
121
|
-
|
|
122
|
-
const LPX_TRANSLATE_SERVICE_TOKEN = new InjectionToken('LPX_TRANSLATE_SERVICE_TOKEN');
|
|
123
|
-
const LPX_TRANSLATE_TOKEN = new InjectionToken('LPX_TRANSLATE_TOKEN');
|
|
124
|
-
|
|
125
|
-
class LpxLanguageModule {
|
|
126
|
-
static forRoot(options) {
|
|
127
|
-
return {
|
|
128
|
-
ngModule: LpxLanguageModule,
|
|
129
|
-
providers: [
|
|
130
|
-
{
|
|
131
|
-
provide: LPX_LANGUAGE,
|
|
132
|
-
useValue: (options === null || options === void 0 ? void 0 : options.languages) || [],
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
provide: LPX_TRANSLATE_TOKEN,
|
|
136
|
-
useValue: [LanguageTranslateDefaults],
|
|
137
|
-
multi: true,
|
|
138
|
-
},
|
|
139
|
-
LanguageService,
|
|
140
|
-
],
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
LpxLanguageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxLanguageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
145
|
-
LpxLanguageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxLanguageModule, imports: [CommonModule] });
|
|
146
|
-
LpxLanguageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxLanguageModule, imports: [CommonModule] });
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxLanguageModule, decorators: [{
|
|
148
|
-
type: NgModule,
|
|
149
|
-
args: [{
|
|
150
|
-
declarations: [],
|
|
151
|
-
imports: [CommonModule],
|
|
152
|
-
}]
|
|
153
|
-
}] });
|
|
154
|
-
|
|
155
|
-
const ICON_MAP = {
|
|
156
|
-
bagFill: 'bi bi-bag-fill',
|
|
157
|
-
bellFill: 'bi bi-bell-fill',
|
|
158
|
-
calendarWeek: 'bi bi-calendar2-week',
|
|
159
|
-
chatDots: 'bi bi-chat-dots',
|
|
160
|
-
chevronDown: 'bi bi-chevron-down',
|
|
161
|
-
chevronUp: 'bi bi-chevron-up',
|
|
162
|
-
gearConnected: 'bi bi-gear-wide-connected',
|
|
163
|
-
filter: 'bi bi-filter',
|
|
164
|
-
filterFill: 'bi bi-filter-circle-fill',
|
|
165
|
-
layoutThreeColumns: 'bi bi-layout-three-columns',
|
|
166
|
-
moon: 'bi bi-moon',
|
|
167
|
-
square: 'bi bi-square',
|
|
168
|
-
sunset: 'bi bi-brightness-alt-high-fill',
|
|
169
|
-
sunup: 'bi bi-brightness-high-fill',
|
|
170
|
-
star: 'bi bi-star',
|
|
171
|
-
x: 'bi bi-x',
|
|
172
|
-
xCircleFill: 'bi bi-x-circle-fill',
|
|
173
|
-
};
|
|
174
|
-
const LEPTON_X_ICON_SET = new InjectionToken('LEPTON_X_ICON_SET');
|
|
175
|
-
|
|
176
|
-
class IconComponent {
|
|
177
|
-
constructor(iconSet) {
|
|
178
|
-
this.iconSet = iconSet;
|
|
179
|
-
}
|
|
180
|
-
get styleClass() {
|
|
181
|
-
return this.iconSet[this.iconClass] || this.iconClass;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconComponent, deps: [{ token: LEPTON_X_ICON_SET }], target: i0.ɵɵFactoryTarget.Component });
|
|
185
|
-
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: IconComponent, selector: "lpx-icon", inputs: { iconClass: "iconClass" }, ngImport: i0, template: ` <i class="lpx-icon" [ngClass]="styleClass" aria-hidden="true"></i> `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconComponent, decorators: [{
|
|
187
|
-
type: Component,
|
|
188
|
-
args: [{
|
|
189
|
-
selector: 'lpx-icon',
|
|
190
|
-
template: ` <i class="lpx-icon" [ngClass]="styleClass" aria-hidden="true"></i> `,
|
|
191
|
-
encapsulation: ViewEncapsulation.None,
|
|
192
|
-
}]
|
|
193
|
-
}], ctorParameters: function () {
|
|
194
|
-
return [{ type: undefined, decorators: [{
|
|
195
|
-
type: Inject,
|
|
196
|
-
args: [LEPTON_X_ICON_SET]
|
|
197
|
-
}] }];
|
|
198
|
-
}, propDecorators: { iconClass: [{
|
|
199
|
-
type: Input
|
|
200
|
-
}] } });
|
|
201
|
-
|
|
202
|
-
class LpxIconModule {
|
|
203
|
-
static forRoot(options) {
|
|
204
|
-
return {
|
|
205
|
-
ngModule: LpxIconModule,
|
|
206
|
-
providers: [
|
|
207
|
-
{
|
|
208
|
-
provide: LEPTON_X_ICON_SET,
|
|
209
|
-
useValue: (options === null || options === void 0 ? void 0 : options.iconSet) || ICON_MAP,
|
|
210
|
-
},
|
|
211
|
-
],
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
LpxIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
216
|
-
LpxIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxIconModule, declarations: [IconComponent], imports: [CommonModule], exports: [IconComponent] });
|
|
217
|
-
LpxIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxIconModule, imports: [CommonModule] });
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxIconModule, decorators: [{
|
|
219
|
-
type: NgModule,
|
|
220
|
-
args: [{
|
|
221
|
-
declarations: [IconComponent],
|
|
222
|
-
imports: [CommonModule],
|
|
223
|
-
exports: [IconComponent],
|
|
224
|
-
}]
|
|
225
|
-
}] });
|
|
226
|
-
|
|
227
|
-
class BrandLogoComponent {
|
|
228
|
-
}
|
|
229
|
-
BrandLogoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BrandLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
230
|
-
BrandLogoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BrandLogoComponent, selector: "lpx-brand-logo", ngImport: i0, template: "<a href=\"/\">\r\n <div class=\"lpx-brand-logo\"></div>\r\n</a>\r\n", encapsulation: i0.ViewEncapsulation.None });
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BrandLogoComponent, decorators: [{
|
|
232
|
-
type: Component,
|
|
233
|
-
args: [{ selector: 'lpx-brand-logo', encapsulation: ViewEncapsulation.None, template: "<a href=\"/\">\r\n <div class=\"lpx-brand-logo\"></div>\r\n</a>\r\n" }]
|
|
234
|
-
}] });
|
|
235
|
-
|
|
236
|
-
class LpxBrandLogoModule {
|
|
237
|
-
}
|
|
238
|
-
LpxBrandLogoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxBrandLogoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
239
|
-
LpxBrandLogoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxBrandLogoModule, declarations: [BrandLogoComponent], imports: [CommonModule], exports: [BrandLogoComponent] });
|
|
240
|
-
LpxBrandLogoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxBrandLogoModule, imports: [CommonModule] });
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxBrandLogoModule, decorators: [{
|
|
242
|
-
type: NgModule,
|
|
243
|
-
args: [{
|
|
244
|
-
declarations: [BrandLogoComponent],
|
|
245
|
-
imports: [
|
|
246
|
-
CommonModule
|
|
247
|
-
],
|
|
248
|
-
exports: [BrandLogoComponent]
|
|
249
|
-
}]
|
|
250
|
-
}] });
|
|
251
|
-
|
|
252
|
-
class NavbarRoutesDirective {
|
|
253
|
-
}
|
|
254
|
-
NavbarRoutesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarRoutesDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
255
|
-
NavbarRoutesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: NavbarRoutesDirective, selector: "[lpx-navbar-routes],[lpxNavbarRoutes]", exportAs: ["lpxNavbarRoutes"], ngImport: i0 });
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarRoutesDirective, decorators: [{
|
|
257
|
-
type: Directive,
|
|
258
|
-
args: [{
|
|
259
|
-
selector: '[lpx-navbar-routes],[lpxNavbarRoutes]',
|
|
260
|
-
exportAs: 'lpxNavbarRoutes',
|
|
261
|
-
}]
|
|
262
|
-
}] });
|
|
263
|
-
|
|
264
|
-
const CONTENT_BEFORE_ROUTES = new InjectionToken('CONTENT_BEFORE_ROUTES');
|
|
265
|
-
const CONTENT_AFTER_ROUTES = new InjectionToken('CONTENT_AFTER_ROUTES');
|
|
266
|
-
const LPX_MENU_ITEMS = new InjectionToken('LPX_MENU_ITEMS');
|
|
267
|
-
|
|
268
|
-
class LogoPanelDirective {
|
|
269
|
-
constructor(template) {
|
|
270
|
-
this.template = template;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
LogoPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LogoPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
274
|
-
LogoPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: LogoPanelDirective, selector: "ng-template[lpx-logo-panel]", ngImport: i0 });
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LogoPanelDirective, decorators: [{
|
|
276
|
-
type: Directive,
|
|
277
|
-
args: [{
|
|
278
|
-
selector: 'ng-template[lpx-logo-panel]',
|
|
279
|
-
}]
|
|
280
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
281
|
-
|
|
282
|
-
function sortItems(a, b) {
|
|
283
|
-
if (!a.order) {
|
|
284
|
-
return 1;
|
|
285
|
-
}
|
|
286
|
-
if (!b.order) {
|
|
287
|
-
return -1;
|
|
288
|
-
}
|
|
289
|
-
return a.order - b.order;
|
|
290
|
-
}
|
|
291
|
-
function flatArrayDeepToObject(arr) {
|
|
292
|
-
return arr.reduce((acc, curr) => (Object.assign(Object.assign({}, acc), (Array.isArray(curr) ? flatArrayDeepToObject(curr) : curr))), {});
|
|
293
|
-
}
|
|
294
|
-
function getStream$(source) {
|
|
295
|
-
return source instanceof Observable
|
|
296
|
-
? source
|
|
297
|
-
: source instanceof Promise
|
|
298
|
-
? from(source)
|
|
299
|
-
: of(source);
|
|
300
|
-
}
|
|
301
|
-
function isNullOrUndefined(obj) {
|
|
302
|
-
return obj === null || obj === undefined;
|
|
303
|
-
}
|
|
304
|
-
function isArray(obj) {
|
|
305
|
-
return Array.isArray(obj);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
function createGroupMap(list, othersGroupKey, skipGroupCheck = false) {
|
|
309
|
-
if (!skipGroupCheck &&
|
|
310
|
-
(!isArray(list) || !list.some((node) => Boolean(node.group))))
|
|
311
|
-
return undefined;
|
|
312
|
-
const mapGroup = new Map();
|
|
313
|
-
for (const node of list) {
|
|
314
|
-
const group = (node === null || node === void 0 ? void 0 : node.group) || othersGroupKey;
|
|
315
|
-
if (typeof group !== 'string') {
|
|
316
|
-
throw new Error(`Invalid group: ${group}`);
|
|
317
|
-
}
|
|
318
|
-
const items = mapGroup.get(group) || [];
|
|
319
|
-
items.push(node);
|
|
320
|
-
mapGroup.set(group, items);
|
|
321
|
-
}
|
|
322
|
-
return mapGroup;
|
|
323
|
-
}
|
|
324
|
-
function getItemsFromGroup(list, pred) {
|
|
325
|
-
return list === null || list === void 0 ? void 0 : list.reduce((acc, { items }) => [...acc, ...(pred ? items.filter(pred) : items)], []);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
const OTHERS_GROUP_KEY = 'AbpUi::OthersGroup';
|
|
329
|
-
|
|
330
|
-
class NavbarService {
|
|
331
|
-
constructor(menuItems, route, router) {
|
|
332
|
-
this.menuItems = menuItems;
|
|
333
|
-
this.route = route;
|
|
334
|
-
this.router = router;
|
|
335
|
-
this.store = new DataStore(this.addContainerLinks(this.menuItems));
|
|
336
|
-
this.navbarItems$ = this.store.sliceState((state) => state);
|
|
337
|
-
this.groupedNavbarItems$ = this.store
|
|
338
|
-
.sliceState((state) => state)
|
|
339
|
-
.pipe(filter((navItems) => navItems.some((f) => !!f.group)), map((items) => {
|
|
340
|
-
const map = createGroupMap(items, OTHERS_GROUP_KEY) || [];
|
|
341
|
-
return Array.from(map, ([group, items]) => ({
|
|
342
|
-
group,
|
|
343
|
-
items,
|
|
344
|
-
}));
|
|
345
|
-
}));
|
|
346
|
-
this.expandItemByLink$().pipe(take(1)).subscribe();
|
|
347
|
-
}
|
|
348
|
-
addNavbarItems(...menuItems) {
|
|
349
|
-
this.store.set([...this.store.state, ...this.addContainerLinks(menuItems)]);
|
|
350
|
-
}
|
|
351
|
-
setNavbarItems(...menuItems) {
|
|
352
|
-
this.store.set([...this.addContainerLinks(menuItems)]);
|
|
353
|
-
}
|
|
354
|
-
// TODO: muhammed: refactor this method to be readable
|
|
355
|
-
addChildren(id, ...menuItems) {
|
|
356
|
-
const parent = this.findById(id, this.store.state);
|
|
357
|
-
const update = (items, location, link = '') => {
|
|
358
|
-
const i = location.shift();
|
|
359
|
-
return items.reduce((acc, item, index) => {
|
|
360
|
-
return [
|
|
361
|
-
...acc,
|
|
362
|
-
...(index === i
|
|
363
|
-
? [
|
|
364
|
-
Object.assign(Object.assign({}, item), { children: !location.length
|
|
365
|
-
? [
|
|
366
|
-
...(item.children || []),
|
|
367
|
-
...this.addContainerLinks(menuItems, `${link}/${item.containerLink}`),
|
|
368
|
-
]
|
|
369
|
-
: update(item.children || [], location, `${link}/${item.containerLink}`) }),
|
|
370
|
-
]
|
|
371
|
-
: [item]),
|
|
372
|
-
];
|
|
373
|
-
}, []);
|
|
374
|
-
};
|
|
375
|
-
const updated = update(this.store.state, parent.location);
|
|
376
|
-
this.store.patch(updated);
|
|
377
|
-
}
|
|
378
|
-
findByLink(link, items) {
|
|
379
|
-
return this.findByProp('link', link, items);
|
|
380
|
-
}
|
|
381
|
-
expandItemByLink$() {
|
|
382
|
-
return this.router.events.pipe(filter((e) => e instanceof NavigationEnd), tap(() => this.expandItems()));
|
|
383
|
-
}
|
|
384
|
-
expandItems() {
|
|
385
|
-
const route = this.getRouteItem();
|
|
386
|
-
if (route === null || route === void 0 ? void 0 : route.item) {
|
|
387
|
-
const expanded = this.calculateExpandState(this.store.state, route.location);
|
|
388
|
-
this.store.patch(expanded);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
getRouteItem() {
|
|
392
|
-
return this.findByLink(this.router.url);
|
|
393
|
-
}
|
|
394
|
-
calculateExpandState(items, indexes) {
|
|
395
|
-
const matchIndex = indexes.shift();
|
|
396
|
-
return items.reduce((acc, item, index) => {
|
|
397
|
-
if (index === matchIndex) {
|
|
398
|
-
return [
|
|
399
|
-
...acc,
|
|
400
|
-
Object.assign(Object.assign({}, item), { expanded: true, selected: true, children: this.calculateExpandState(item.children || [], indexes) }),
|
|
401
|
-
];
|
|
402
|
-
}
|
|
403
|
-
const newItem = Object.assign(Object.assign({}, item), (item.children
|
|
404
|
-
? { children: this.collapseChildren(item.children) }
|
|
405
|
-
: {}));
|
|
406
|
-
return [...acc, Object.assign(Object.assign({}, newItem), { expanded: false, selected: false })];
|
|
407
|
-
}, []);
|
|
408
|
-
}
|
|
409
|
-
collapseChildren(children) {
|
|
410
|
-
return [
|
|
411
|
-
...children.map((child) => (Object.assign(Object.assign({}, child), { expanded: false, selected: false, children: child.children ? this.collapseChildren(child.children) : [] }))),
|
|
412
|
-
];
|
|
413
|
-
}
|
|
414
|
-
findById(id, items) {
|
|
415
|
-
return this.findByProp('id', id, items);
|
|
416
|
-
}
|
|
417
|
-
findByProp(prop, value, items, location = []) {
|
|
418
|
-
const navbarItems = items || this.store.state;
|
|
419
|
-
const itemIndex = navbarItems.findIndex((i) => i[prop] === value);
|
|
420
|
-
let item;
|
|
421
|
-
if (itemIndex === -1) {
|
|
422
|
-
navbarItems.forEach((i, index) => {
|
|
423
|
-
if (i.children) {
|
|
424
|
-
const child = this.findByProp(prop, value, i.children, [
|
|
425
|
-
...location,
|
|
426
|
-
index,
|
|
427
|
-
]);
|
|
428
|
-
if (child === null || child === void 0 ? void 0 : child.item) {
|
|
429
|
-
item = child.item;
|
|
430
|
-
location = child.location;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
item = navbarItems[itemIndex];
|
|
437
|
-
location.push(itemIndex);
|
|
438
|
-
}
|
|
439
|
-
return { item, location };
|
|
440
|
-
}
|
|
441
|
-
addContainerLinks(items, link = '') {
|
|
442
|
-
return items.map((item) => (Object.assign(Object.assign(Object.assign({}, item), (item.link && link ? { link: `${link}/${item.link}` } : {})), { children: this.addContainerLinks(item.children || [], `${link ? link + '/' : ''}${item.containerLink || ''}`) })));
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
NavbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarService, deps: [{ token: LPX_MENU_ITEMS }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
446
|
-
NavbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarService, providedIn: 'root' });
|
|
447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarService, decorators: [{
|
|
448
|
-
type: Injectable,
|
|
449
|
-
args: [{
|
|
450
|
-
providedIn: 'root',
|
|
451
|
-
}]
|
|
452
|
-
}], ctorParameters: function () {
|
|
453
|
-
return [{ type: undefined, decorators: [{
|
|
454
|
-
type: Inject,
|
|
455
|
-
args: [LPX_MENU_ITEMS]
|
|
456
|
-
}] }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }];
|
|
457
|
-
} });
|
|
458
|
-
|
|
459
|
-
class LayoutService {
|
|
460
|
-
constructor() {
|
|
461
|
-
this.store = new DataStore({
|
|
462
|
-
containerClass: [''],
|
|
463
|
-
});
|
|
464
|
-
this.containerClass$ = this.store.sliceState(({ containerClass }) => containerClass || []);
|
|
465
|
-
}
|
|
466
|
-
setClass(cssClass) {
|
|
467
|
-
const containerClass = Array.isArray(cssClass) ? cssClass : [cssClass];
|
|
468
|
-
this.patchStore(containerClass);
|
|
469
|
-
}
|
|
470
|
-
addClass(cssClass) {
|
|
471
|
-
const { containerClass } = this.store.state;
|
|
472
|
-
this.patchStore([...containerClass, cssClass]);
|
|
473
|
-
}
|
|
474
|
-
removeClass(cssClass) {
|
|
475
|
-
const { containerClass } = this.store.state;
|
|
476
|
-
const index = containerClass.findIndex(item => item === cssClass);
|
|
477
|
-
if (index === -1)
|
|
478
|
-
return;
|
|
479
|
-
const update = [...containerClass.slice(0, index), ...containerClass.slice(index + 1)];
|
|
480
|
-
this.patchStore(update);
|
|
481
|
-
}
|
|
482
|
-
removeClasses(classlist) {
|
|
483
|
-
const { containerClass } = this.store.state;
|
|
484
|
-
const filteredClasslist = containerClass.filter(clss => !classlist.includes(clss));
|
|
485
|
-
this.patchStore(filteredClasslist);
|
|
486
|
-
}
|
|
487
|
-
toggleClass(cssClass) {
|
|
488
|
-
const { containerClass } = this.store.state;
|
|
489
|
-
const index = containerClass.findIndex(item => item === cssClass);
|
|
490
|
-
if (index === -1) {
|
|
491
|
-
this.addClass(cssClass);
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
this.removeClass(cssClass);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
patchStore(containerClass) {
|
|
498
|
-
this.store.patch({
|
|
499
|
-
containerClass,
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
LayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LayoutService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
504
|
-
LayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LayoutService, providedIn: 'root' });
|
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LayoutService, decorators: [{
|
|
506
|
-
type: Injectable,
|
|
507
|
-
args: [{
|
|
508
|
-
providedIn: 'root',
|
|
509
|
-
}]
|
|
510
|
-
}] });
|
|
511
|
-
|
|
512
|
-
class LpxVisibleDirective {
|
|
513
|
-
constructor(viewContainerRef, templateRef) {
|
|
514
|
-
this.viewContainerRef = viewContainerRef;
|
|
515
|
-
this.templateRef = templateRef;
|
|
516
|
-
this.condition$ = of(false);
|
|
517
|
-
}
|
|
518
|
-
set lpxVisible(value) {
|
|
519
|
-
this.condition$ = checkType(value);
|
|
520
|
-
this.subscribeToCondition();
|
|
521
|
-
}
|
|
522
|
-
ngOnInit() {
|
|
523
|
-
this.updateVisibility();
|
|
524
|
-
}
|
|
525
|
-
ngOnDestroy() {
|
|
526
|
-
var _a;
|
|
527
|
-
(_a = this.conditionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
528
|
-
}
|
|
529
|
-
subscribeToCondition() {
|
|
530
|
-
this.conditionSubscription = this.condition$.subscribe((value) => {
|
|
531
|
-
this.isVisible = value;
|
|
532
|
-
this.updateVisibility();
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
updateVisibility() {
|
|
536
|
-
this.viewContainerRef.clear();
|
|
537
|
-
// it should be false not falsy
|
|
538
|
-
if (this.isVisible === false) {
|
|
539
|
-
return;
|
|
540
|
-
}
|
|
541
|
-
this.viewContainerRef.createEmbeddedView(this.templateRef);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
LpxVisibleDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxVisibleDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
545
|
-
LpxVisibleDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: LpxVisibleDirective, isStandalone: true, selector: "[lpxVisible]", inputs: { lpxVisible: "lpxVisible" }, ngImport: i0 });
|
|
546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxVisibleDirective, decorators: [{
|
|
547
|
-
type: Directive,
|
|
548
|
-
args: [{
|
|
549
|
-
selector: '[lpxVisible]',
|
|
550
|
-
standalone: true,
|
|
551
|
-
}]
|
|
552
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, propDecorators: { lpxVisible: [{
|
|
553
|
-
type: Input,
|
|
554
|
-
args: ['lpxVisible']
|
|
555
|
-
}] } });
|
|
556
|
-
function checkType(value) {
|
|
557
|
-
if (value instanceof Promise) {
|
|
558
|
-
return from(value);
|
|
559
|
-
}
|
|
560
|
-
else if (value instanceof Observable) {
|
|
561
|
-
return value;
|
|
562
|
-
}
|
|
563
|
-
else if (typeof value === 'boolean') {
|
|
564
|
-
return of(value);
|
|
565
|
-
}
|
|
566
|
-
else if (value === undefined || value === null) {
|
|
567
|
-
return of(true);
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
return EMPTY;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
class UserProfileService {
|
|
575
|
-
constructor() {
|
|
576
|
-
this.store = new DataStore({});
|
|
577
|
-
this.user$ = this.store.sliceState((state) => state);
|
|
578
|
-
}
|
|
579
|
-
setUser(user) {
|
|
580
|
-
this.store.set(user);
|
|
581
|
-
}
|
|
582
|
-
patchUser(user) {
|
|
583
|
-
this.store.patch(user);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
UserProfileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: UserProfileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
587
|
-
UserProfileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: UserProfileService, providedIn: 'root' });
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: UserProfileService, decorators: [{
|
|
589
|
-
type: Injectable,
|
|
590
|
-
args: [{
|
|
591
|
-
providedIn: 'root',
|
|
592
|
-
}]
|
|
593
|
-
}] });
|
|
594
|
-
|
|
595
|
-
class BodyService {
|
|
596
|
-
constructor() {
|
|
597
|
-
this.body = document.querySelector('body');
|
|
598
|
-
this.classes = {
|
|
599
|
-
overflowYHidden: 'overflow-y-hidden',
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
disableScrollY() {
|
|
603
|
-
var _a;
|
|
604
|
-
(_a = this.body) === null || _a === void 0 ? void 0 : _a.classList.add(this.classes.overflowYHidden);
|
|
605
|
-
}
|
|
606
|
-
enableScrollY() {
|
|
607
|
-
var _a;
|
|
608
|
-
(_a = this.body) === null || _a === void 0 ? void 0 : _a.classList.remove(this.classes.overflowYHidden);
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
BodyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BodyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
612
|
-
BodyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BodyService, providedIn: 'root' });
|
|
613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BodyService, decorators: [{
|
|
614
|
-
type: Injectable,
|
|
615
|
-
args: [{
|
|
616
|
-
providedIn: 'root',
|
|
617
|
-
}]
|
|
618
|
-
}] });
|
|
619
|
-
|
|
620
|
-
class DefaultTranslateService {
|
|
621
|
-
get$(key, defaultValue) {
|
|
622
|
-
return of(defaultValue || key || '');
|
|
623
|
-
}
|
|
624
|
-
get(key, defaultValue) {
|
|
625
|
-
return defaultValue || key || '';
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
DefaultTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultTranslateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
629
|
-
DefaultTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultTranslateService });
|
|
630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultTranslateService, decorators: [{
|
|
631
|
-
type: Injectable
|
|
632
|
-
}] });
|
|
633
|
-
|
|
634
|
-
class LpxThemeTranslateService {
|
|
635
|
-
constructor(translateValues, translateService) {
|
|
636
|
-
this.translateValues = translateValues;
|
|
637
|
-
this.translateService = translateService;
|
|
638
|
-
this._content = flatArrayDeepToObject(this.translateValues);
|
|
639
|
-
}
|
|
640
|
-
// TODO: PROVIDE API : Implement args
|
|
641
|
-
translate$(key, ...args) {
|
|
642
|
-
return this.translateService.get$(key, this._content[key]);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
LpxThemeTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxThemeTranslateService, deps: [{ token: LPX_TRANSLATE_TOKEN, optional: true }, { token: LPX_TRANSLATE_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
646
|
-
LpxThemeTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxThemeTranslateService, providedIn: 'root' });
|
|
647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxThemeTranslateService, decorators: [{
|
|
648
|
-
type: Injectable,
|
|
649
|
-
args: [{
|
|
650
|
-
providedIn: 'root',
|
|
651
|
-
}]
|
|
652
|
-
}], ctorParameters: function () {
|
|
653
|
-
return [{ type: Array, decorators: [{
|
|
654
|
-
type: Optional
|
|
655
|
-
}, {
|
|
656
|
-
type: Inject,
|
|
657
|
-
args: [LPX_TRANSLATE_TOKEN]
|
|
658
|
-
}] }, { type: undefined, decorators: [{
|
|
659
|
-
type: Inject,
|
|
660
|
-
args: [LPX_TRANSLATE_SERVICE_TOKEN]
|
|
661
|
-
}] }];
|
|
662
|
-
} });
|
|
663
|
-
|
|
664
|
-
class DefaultAuthService {
|
|
665
|
-
constructor(userProfileService) {
|
|
666
|
-
this.userProfileService = userProfileService;
|
|
667
|
-
this.isUserExists$ = this.userProfileService.user$.pipe(map((user) => !!user && Object.keys(user).length > 0));
|
|
668
|
-
}
|
|
669
|
-
navigateToLogin() {
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
DefaultAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultAuthService, deps: [{ token: UserProfileService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
674
|
-
DefaultAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultAuthService });
|
|
675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultAuthService, decorators: [{
|
|
676
|
-
type: Injectable
|
|
677
|
-
}], ctorParameters: function () { return [{ type: UserProfileService }]; } });
|
|
678
|
-
|
|
679
|
-
const LPX_AUTH_SERVICE_TOKEN = new InjectionToken('LPX_AUTH_SERVICE_TOKEN');
|
|
680
|
-
|
|
681
|
-
const LPX_AUTH_SERVICE_PROVIDER = {
|
|
682
|
-
provide: LPX_AUTH_SERVICE_TOKEN,
|
|
683
|
-
useClass: DefaultAuthService,
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
class LpxLocalStorageService {
|
|
687
|
-
constructor() { }
|
|
688
|
-
get length() {
|
|
689
|
-
return localStorage.length;
|
|
690
|
-
}
|
|
691
|
-
clear() {
|
|
692
|
-
localStorage.clear();
|
|
693
|
-
}
|
|
694
|
-
getItem(key) {
|
|
695
|
-
return localStorage.getItem(key);
|
|
696
|
-
}
|
|
697
|
-
key(index) {
|
|
698
|
-
return localStorage.key(index);
|
|
699
|
-
}
|
|
700
|
-
removeItem(key) {
|
|
701
|
-
localStorage.removeItem(key);
|
|
702
|
-
}
|
|
703
|
-
setItem(key, value) {
|
|
704
|
-
localStorage.setItem(key, value);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
LpxLocalStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxLocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
708
|
-
LpxLocalStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxLocalStorageService, providedIn: 'root' });
|
|
709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxLocalStorageService, decorators: [{
|
|
710
|
-
type: Injectable,
|
|
711
|
-
args: [{
|
|
712
|
-
providedIn: 'root'
|
|
713
|
-
}]
|
|
714
|
-
}], ctorParameters: function () { return []; } });
|
|
715
|
-
|
|
716
|
-
class LpxPerfectScrollbarService extends LpxPerfectScrollbar {
|
|
717
|
-
setElement(value) {
|
|
718
|
-
if (value) {
|
|
719
|
-
this.elementRef = value;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
setOptions(value) {
|
|
723
|
-
if (value) {
|
|
724
|
-
this.options = value;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
createScrollbar() {
|
|
728
|
-
this.perfectScrollbar = new PerfectScrollbar(this.elementRef.nativeElement, this.options);
|
|
729
|
-
}
|
|
730
|
-
onResize() {
|
|
731
|
-
this.perfectScrollbar.update();
|
|
732
|
-
}
|
|
733
|
-
afterViewInit() {
|
|
734
|
-
var _a;
|
|
735
|
-
this.createScrollbar();
|
|
736
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
737
|
-
this.subscription = this.router.events
|
|
738
|
-
.pipe(filter$1((event) => event instanceof NavigationEnd ||
|
|
739
|
-
event instanceof NavigationError ||
|
|
740
|
-
event instanceof NavigationCancel))
|
|
741
|
-
.subscribe(() => {
|
|
742
|
-
const { element } = this.perfectScrollbar;
|
|
743
|
-
const { topAfterNavigate, leftAfterNavigate } = this.options || {};
|
|
744
|
-
element.scrollTop = topAfterNavigate || 0;
|
|
745
|
-
element.scrollLeft = leftAfterNavigate || 0;
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
ngOnDestroy() {
|
|
749
|
-
var _a;
|
|
750
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
LpxPerfectScrollbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxPerfectScrollbarService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
754
|
-
LpxPerfectScrollbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxPerfectScrollbarService });
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxPerfectScrollbarService, decorators: [{
|
|
756
|
-
type: Injectable
|
|
757
|
-
}] });
|
|
758
|
-
|
|
759
|
-
class TranslatePipe {
|
|
760
|
-
constructor(lpxThemeTranslateService) {
|
|
761
|
-
this.lpxThemeTranslateService = lpxThemeTranslateService;
|
|
762
|
-
}
|
|
763
|
-
transform(value, ...args) {
|
|
764
|
-
return this.lpxThemeTranslateService.translate$(value, args);
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
TranslatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TranslatePipe, deps: [{ token: LpxThemeTranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
768
|
-
TranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: TranslatePipe, name: "lpxTranslate" });
|
|
769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TranslatePipe, decorators: [{
|
|
770
|
-
type: Pipe,
|
|
771
|
-
args: [{
|
|
772
|
-
name: 'lpxTranslate',
|
|
773
|
-
}]
|
|
774
|
-
}], ctorParameters: function () { return [{ type: LpxThemeTranslateService }]; } });
|
|
775
|
-
|
|
776
|
-
class SubNavbarComponent {
|
|
777
|
-
constructor(injector) {
|
|
778
|
-
this.injector = injector;
|
|
779
|
-
this.routeClick = new EventEmitter();
|
|
780
|
-
this.expand = new EventEmitter();
|
|
781
|
-
}
|
|
782
|
-
onItemClick(menuItem) {
|
|
783
|
-
let action$ = of(true);
|
|
784
|
-
if (menuItem.action) {
|
|
785
|
-
const result = menuItem.action();
|
|
786
|
-
action$ = getStream$(result);
|
|
787
|
-
}
|
|
788
|
-
action$.pipe(take(1)).subscribe((result) => {
|
|
789
|
-
if (result) {
|
|
790
|
-
this.processItemClick(menuItem);
|
|
791
|
-
}
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
onChildExpand(child) {
|
|
795
|
-
var _a, _b;
|
|
796
|
-
if (child.expanded) {
|
|
797
|
-
(_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.filter((otherChild) => otherChild !== child).forEach((otherChild) => {
|
|
798
|
-
otherChild.expanded = false;
|
|
799
|
-
otherChild.selected = false;
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
processItemClick(menuItem) {
|
|
804
|
-
var _a;
|
|
805
|
-
if ((_a = menuItem.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
806
|
-
menuItem.expanded = !menuItem.expanded;
|
|
807
|
-
this.expand.emit(menuItem);
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
this.routeClick.emit(menuItem);
|
|
811
|
-
if (!this.routerItem) {
|
|
812
|
-
menuItem.selected = true;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
SubNavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SubNavbarComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
817
|
-
SubNavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: SubNavbarComponent, selector: "lpx-sub-navbar", inputs: { item: "item", routerItem: "routerItem" }, outputs: { routeClick: "routeClick", expand: "expand" }, ngImport: i0, template: "<ng-container *ngIf=\"item.component; else defaultTemplate\">\r\n <ng-container\r\n *ngComponentOutlet=\"item.component; injector: injector\"\r\n ></ng-container>\r\n</ng-container>\r\n<ng-template #defaultTemplate>\r\n <a\r\n *ngIf=\"!item.component\"\r\n class=\"lpx-menu-item-link\"\r\n [routerLink]=\"item.link\"\r\n [routerLinkActive]=\"item.link ? 'selected' : ''\"\r\n [class.selected]=\"\r\n (item.children?.length && item.expanded) || (!routerItem && item.selected)\r\n \"\r\n [routerLinkActiveOptions]=\"{ exact: true }\"\r\n (click)=\"onItemClick(item)\"\r\n >\r\n <lpx-icon\r\n class=\"lpx-menu-item-icon\"\r\n *ngIf=\"item.icon\"\r\n [iconClass]=\"item.icon\"\r\n ></lpx-icon>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n item.template || textTmpl;\r\n context: { $implicit: item }\r\n \"\r\n ></ng-container>\r\n <ng-template #textTmpl>\r\n <span\r\n class=\"lpx-menu-item-text hidden-in-hover-trigger\"\r\n *ngIf=\"item.text\"\r\n >{{ item.text | lpxTranslate | async }}</span\r\n >\r\n </ng-template>\r\n\r\n <lpx-icon\r\n *ngIf=\"item.children && item.children.length\"\r\n [iconClass]=\"item.expanded ? 'chevronUp' : 'chevronDown'\"\r\n class=\"dd-icon hidden-in-hover-trigger\"\r\n >\r\n </lpx-icon>\r\n </a>\r\n <ul\r\n class=\"lpx-inner-menu hidden-in-hover-trigger\"\r\n [class.collapsed]=\"!item.expanded\"\r\n *ngIf=\"item.children && item.children.length\"\r\n >\r\n <ng-container *ngFor=\"let child of item.children\">\r\n <li\r\n class=\"lpx-inner-menu-item\"\r\n *lpxVisible=\"!child.visible || child.visible(child, injector)\">\r\n <lpx-sub-navbar\r\n [item]=\"child\"\r\n (routeClick)=\"this.routeClick.emit($event)\"\r\n (expand)=\"onChildExpand($event)\"\r\n ></lpx-sub-navbar>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: IconComponent, selector: "lpx-icon", inputs: ["iconClass"] }, { kind: "directive", type: LpxVisibleDirective, selector: "[lpxVisible]", inputs: ["lpxVisible"] }, { kind: "component", type: SubNavbarComponent, selector: "lpx-sub-navbar", inputs: ["item", "routerItem"], outputs: ["routeClick", "expand"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "lpxTranslate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SubNavbarComponent, decorators: [{
|
|
819
|
-
type: Component,
|
|
820
|
-
args: [{ selector: 'lpx-sub-navbar', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"item.component; else defaultTemplate\">\r\n <ng-container\r\n *ngComponentOutlet=\"item.component; injector: injector\"\r\n ></ng-container>\r\n</ng-container>\r\n<ng-template #defaultTemplate>\r\n <a\r\n *ngIf=\"!item.component\"\r\n class=\"lpx-menu-item-link\"\r\n [routerLink]=\"item.link\"\r\n [routerLinkActive]=\"item.link ? 'selected' : ''\"\r\n [class.selected]=\"\r\n (item.children?.length && item.expanded) || (!routerItem && item.selected)\r\n \"\r\n [routerLinkActiveOptions]=\"{ exact: true }\"\r\n (click)=\"onItemClick(item)\"\r\n >\r\n <lpx-icon\r\n class=\"lpx-menu-item-icon\"\r\n *ngIf=\"item.icon\"\r\n [iconClass]=\"item.icon\"\r\n ></lpx-icon>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n item.template || textTmpl;\r\n context: { $implicit: item }\r\n \"\r\n ></ng-container>\r\n <ng-template #textTmpl>\r\n <span\r\n class=\"lpx-menu-item-text hidden-in-hover-trigger\"\r\n *ngIf=\"item.text\"\r\n >{{ item.text | lpxTranslate | async }}</span\r\n >\r\n </ng-template>\r\n\r\n <lpx-icon\r\n *ngIf=\"item.children && item.children.length\"\r\n [iconClass]=\"item.expanded ? 'chevronUp' : 'chevronDown'\"\r\n class=\"dd-icon hidden-in-hover-trigger\"\r\n >\r\n </lpx-icon>\r\n </a>\r\n <ul\r\n class=\"lpx-inner-menu hidden-in-hover-trigger\"\r\n [class.collapsed]=\"!item.expanded\"\r\n *ngIf=\"item.children && item.children.length\"\r\n >\r\n <ng-container *ngFor=\"let child of item.children\">\r\n <li\r\n class=\"lpx-inner-menu-item\"\r\n *lpxVisible=\"!child.visible || child.visible(child, injector)\">\r\n <lpx-sub-navbar\r\n [item]=\"child\"\r\n (routeClick)=\"this.routeClick.emit($event)\"\r\n (expand)=\"onChildExpand($event)\"\r\n ></lpx-sub-navbar>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n</ng-template>\r\n" }]
|
|
821
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { item: [{
|
|
822
|
-
type: Input
|
|
823
|
-
}], routerItem: [{
|
|
824
|
-
type: Input
|
|
825
|
-
}], routeClick: [{
|
|
826
|
-
type: Output
|
|
827
|
-
}], expand: [{
|
|
828
|
-
type: Output
|
|
829
|
-
}] } });
|
|
830
|
-
|
|
831
|
-
class NavbarRoutesComponent {
|
|
832
|
-
constructor(injector) {
|
|
833
|
-
this.injector = injector;
|
|
834
|
-
this.routeClick = new EventEmitter();
|
|
835
|
-
this.isExpandedOrSelected = (item) => !!(item.expanded || item.selected);
|
|
836
|
-
}
|
|
837
|
-
get itemsFromGroup() {
|
|
838
|
-
if (!this.groupedItems) {
|
|
839
|
-
return undefined;
|
|
840
|
-
}
|
|
841
|
-
return getItemsFromGroup(this.groupedItems);
|
|
842
|
-
}
|
|
843
|
-
onSubnavbarExpand(menuItem, menuItems) {
|
|
844
|
-
if (menuItem.expanded) {
|
|
845
|
-
const items = this.itemsFromGroup || menuItems;
|
|
846
|
-
if (!items) {
|
|
847
|
-
return;
|
|
848
|
-
}
|
|
849
|
-
items
|
|
850
|
-
.filter((item) => item !== menuItem)
|
|
851
|
-
.forEach((item) => (item.expanded = false));
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
onRouteClick(menuItem, menuItems) {
|
|
855
|
-
var _a, _b;
|
|
856
|
-
const expandedItems = menuItems === null || menuItems === void 0 ? void 0 : menuItems.filter(this.isExpandedOrSelected);
|
|
857
|
-
const expandedGroupItems = (_a = this.itemsFromGroup) === null || _a === void 0 ? void 0 : _a.filter(this.isExpandedOrSelected);
|
|
858
|
-
const items = expandedGroupItems || expandedItems;
|
|
859
|
-
if (items) {
|
|
860
|
-
(_b = items
|
|
861
|
-
.filter((item) => item !== menuItem)
|
|
862
|
-
.reduce((acc, item) => {
|
|
863
|
-
return [...acc, item, ...this.flatChildren(item.children || [])];
|
|
864
|
-
}, [])) === null || _b === void 0 ? void 0 : _b.filter((item) => !this.checkChildrenIncludesItem(item, menuItem) && item !== menuItem).forEach((item) => {
|
|
865
|
-
item.selected = false;
|
|
866
|
-
item.expanded = false;
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
this.routeClick.emit(menuItem);
|
|
870
|
-
}
|
|
871
|
-
checkChildrenIncludesItem(item, menuItem) {
|
|
872
|
-
var _a;
|
|
873
|
-
return (((_a = item.children) === null || _a === void 0 ? void 0 : _a.reduce((acc, child) => acc ||
|
|
874
|
-
child === menuItem ||
|
|
875
|
-
this.checkChildrenIncludesItem(child, menuItem), false)) || false);
|
|
876
|
-
}
|
|
877
|
-
flatChildren(menuItems) {
|
|
878
|
-
return ((menuItems === null || menuItems === void 0 ? void 0 : menuItems.reduce((acc, item) => {
|
|
879
|
-
return [...acc, item, ...this.flatChildren(item.children || [])];
|
|
880
|
-
}, [])) || []);
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
NavbarRoutesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarRoutesComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
884
|
-
NavbarRoutesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NavbarRoutesComponent, selector: "lpx-navbar-routes", inputs: { groupedItems: "groupedItems", navbarItems: "navbarItems", routerItem: "routerItem" }, outputs: { routeClick: "routeClick" }, ngImport: i0, template: "<ul class=\"lpx-nav-menu\">\r\n <ng-container *ngIf=\"groupedItems; else defaultRoute\">\r\n <ng-container *ngFor=\"let item of groupedItems\">\r\n <ng-container\r\n *ngTemplateOutlet=\"groupText; context: { $implicit: item }\"\r\n ></ng-container>\r\n\r\n <ng-container *ngFor=\"let navbarItem of item.items\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: navbarItem }\"\r\n ></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n</ul>\r\n\r\n<ng-template #defaultRoute>\r\n <ng-container *ngFor=\"let item of navbarItems\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-container>\r\n</ng-template>\r\n<ng-template #groupText let-item>\r\n <li\r\n *ngIf=\"item.items.length > 0\"\r\n class=\"group-menu-item hidden-in-hover-trigger\"\r\n >\r\n {{ item.group | lpxTranslate | async }}\r\n </li>\r\n</ng-template>\r\n<ng-template #itemTemplate let-item>\r\n <li\r\n class=\"outer-menu-item\"\r\n *lpxVisible=\"!item.visible || item.visible(item, injector)\"\r\n >\r\n <lpx-sub-navbar\r\n [item]=\"item\"\r\n (expand)=\"onSubnavbarExpand($event, navbarItems)\"\r\n (routeClick)=\"onRouteClick($event, navbarItems)\"\r\n [routerItem]=\"routerItem\"\r\n ></lpx-sub-navbar>\r\n </li>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LpxVisibleDirective, selector: "[lpxVisible]", inputs: ["lpxVisible"] }, { kind: "component", type: SubNavbarComponent, selector: "lpx-sub-navbar", inputs: ["item", "routerItem"], outputs: ["routeClick", "expand"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "lpxTranslate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarRoutesComponent, decorators: [{
|
|
886
|
-
type: Component,
|
|
887
|
-
args: [{ selector: 'lpx-navbar-routes', encapsulation: ViewEncapsulation.None, template: "<ul class=\"lpx-nav-menu\">\r\n <ng-container *ngIf=\"groupedItems; else defaultRoute\">\r\n <ng-container *ngFor=\"let item of groupedItems\">\r\n <ng-container\r\n *ngTemplateOutlet=\"groupText; context: { $implicit: item }\"\r\n ></ng-container>\r\n\r\n <ng-container *ngFor=\"let navbarItem of item.items\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: navbarItem }\"\r\n ></ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n</ul>\r\n\r\n<ng-template #defaultRoute>\r\n <ng-container *ngFor=\"let item of navbarItems\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-container>\r\n</ng-template>\r\n<ng-template #groupText let-item>\r\n <li\r\n *ngIf=\"item.items.length > 0\"\r\n class=\"group-menu-item hidden-in-hover-trigger\"\r\n >\r\n {{ item.group | lpxTranslate | async }}\r\n </li>\r\n</ng-template>\r\n<ng-template #itemTemplate let-item>\r\n <li\r\n class=\"outer-menu-item\"\r\n *lpxVisible=\"!item.visible || item.visible(item, injector)\"\r\n >\r\n <lpx-sub-navbar\r\n [item]=\"item\"\r\n (expand)=\"onSubnavbarExpand($event, navbarItems)\"\r\n (routeClick)=\"onRouteClick($event, navbarItems)\"\r\n [routerItem]=\"routerItem\"\r\n ></lpx-sub-navbar>\r\n </li>\r\n</ng-template>\r\n" }]
|
|
888
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { groupedItems: [{
|
|
889
|
-
type: Input
|
|
890
|
-
}], navbarItems: [{
|
|
891
|
-
type: Input
|
|
892
|
-
}], routerItem: [{
|
|
893
|
-
type: Input
|
|
894
|
-
}], routeClick: [{
|
|
895
|
-
type: Output
|
|
896
|
-
}] } });
|
|
897
|
-
|
|
898
|
-
class NavbarComponent {
|
|
899
|
-
constructor(service, injector, layoutService) {
|
|
900
|
-
this.service = service;
|
|
901
|
-
this.injector = injector;
|
|
902
|
-
this.layoutService = layoutService;
|
|
903
|
-
this.contentBefore = this.flatContents(CONTENT_BEFORE_ROUTES);
|
|
904
|
-
this.contentAfter = this.flatContents(CONTENT_AFTER_ROUTES);
|
|
905
|
-
}
|
|
906
|
-
toggleSidebarHover() {
|
|
907
|
-
this.layoutService.toggleClass('hover-trigger');
|
|
908
|
-
}
|
|
909
|
-
flatContents(token) {
|
|
910
|
-
const contents = this.injector.get(token, []);
|
|
911
|
-
return contents.reduce((acc, val) => acc.concat(val), []);
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarComponent, deps: [{ token: NavbarService }, { token: i0.Injector }, { token: LayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
915
|
-
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NavbarComponent, selector: "lpx-navbar", queries: [{ propertyName: "routesTemplate", first: true, predicate: NavbarRoutesDirective, descendants: true, read: TemplateRef }, { propertyName: "logoPanel", first: true, predicate: LogoPanelDirective, descendants: true }], ngImport: i0, template: "<nav class=\"lpx-nav\">\r\n <div class=\"lpx-logo-container\">\r\n <ng-container\r\n *ngTemplateOutlet=\"logoPanel?.template || defaultLogo\"\r\n ></ng-container>\r\n <lpx-icon\r\n class=\"menu-collapse-icon hidden-in-hover-trigger\"\r\n iconClass=\"bi bi-filter-left\"\r\n (click)=\"toggleSidebarHover()\"\r\n ></lpx-icon>\r\n </div>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n customContentTemplate;\r\n context: { $implicit: contentBefore }\r\n \"\r\n ></ng-container>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n routesTemplate || defaultRouteTemplate;\r\n context: {\r\n $implicit: service.navbarItems$ | async,\r\n groupItems: service.groupedNavbarItems$ | async\r\n }\r\n \"\r\n ></ng-container>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n customContentTemplate;\r\n context: { $implicit: contentAfter }\r\n \"\r\n ></ng-container>\r\n</nav>\r\n\r\n<ng-template #defaultRouteTemplate let-items let-groupItems=\"groupItems\">\r\n <lpx-navbar-routes\r\n [navbarItems]=\"items\"\r\n [groupedItems]=\"groupItems\"\r\n [routerItem]=\"true\"\r\n ></lpx-navbar-routes>\r\n</ng-template>\r\n\r\n<ng-template #customContentTemplate let-contents>\r\n <ng-container *ngFor=\"let component of contents\">\r\n <ng-container\r\n *ngComponentOutlet=\"component; injector: injector\"\r\n ></ng-container>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #defaultLogo>\r\n <lpx-brand-logo></lpx-brand-logo>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BrandLogoComponent, selector: "lpx-brand-logo" }, { kind: "component", type: IconComponent, selector: "lpx-icon", inputs: ["iconClass"] }, { kind: "component", type: NavbarRoutesComponent, selector: "lpx-navbar-routes", inputs: ["groupedItems", "navbarItems", "routerItem"], outputs: ["routeClick"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
|
|
916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
917
|
-
type: Component,
|
|
918
|
-
args: [{ selector: 'lpx-navbar', encapsulation: ViewEncapsulation.None, template: "<nav class=\"lpx-nav\">\r\n <div class=\"lpx-logo-container\">\r\n <ng-container\r\n *ngTemplateOutlet=\"logoPanel?.template || defaultLogo\"\r\n ></ng-container>\r\n <lpx-icon\r\n class=\"menu-collapse-icon hidden-in-hover-trigger\"\r\n iconClass=\"bi bi-filter-left\"\r\n (click)=\"toggleSidebarHover()\"\r\n ></lpx-icon>\r\n </div>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n customContentTemplate;\r\n context: { $implicit: contentBefore }\r\n \"\r\n ></ng-container>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n routesTemplate || defaultRouteTemplate;\r\n context: {\r\n $implicit: service.navbarItems$ | async,\r\n groupItems: service.groupedNavbarItems$ | async\r\n }\r\n \"\r\n ></ng-container>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n customContentTemplate;\r\n context: { $implicit: contentAfter }\r\n \"\r\n ></ng-container>\r\n</nav>\r\n\r\n<ng-template #defaultRouteTemplate let-items let-groupItems=\"groupItems\">\r\n <lpx-navbar-routes\r\n [navbarItems]=\"items\"\r\n [groupedItems]=\"groupItems\"\r\n [routerItem]=\"true\"\r\n ></lpx-navbar-routes>\r\n</ng-template>\r\n\r\n<ng-template #customContentTemplate let-contents>\r\n <ng-container *ngFor=\"let component of contents\">\r\n <ng-container\r\n *ngComponentOutlet=\"component; injector: injector\"\r\n ></ng-container>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-template #defaultLogo>\r\n <lpx-brand-logo></lpx-brand-logo>\r\n</ng-template>\r\n" }]
|
|
919
|
-
}], ctorParameters: function () { return [{ type: NavbarService }, { type: i0.Injector }, { type: LayoutService }]; }, propDecorators: { routesTemplate: [{
|
|
920
|
-
type: ContentChild,
|
|
921
|
-
args: [NavbarRoutesDirective, { read: TemplateRef }]
|
|
922
|
-
}], logoPanel: [{
|
|
923
|
-
type: ContentChild,
|
|
924
|
-
args: [LogoPanelDirective]
|
|
925
|
-
}] } });
|
|
926
|
-
|
|
927
|
-
class ToObservablePipe {
|
|
928
|
-
transform(value) {
|
|
929
|
-
return value ? getStream$(value) : of('');
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
ToObservablePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToObservablePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
933
|
-
ToObservablePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: ToObservablePipe, name: "toObservable" });
|
|
934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToObservablePipe, decorators: [{
|
|
935
|
-
type: Pipe,
|
|
936
|
-
args: [{
|
|
937
|
-
name: 'toObservable',
|
|
938
|
-
}]
|
|
939
|
-
}] });
|
|
940
|
-
|
|
941
|
-
class ToObservableModule {
|
|
942
|
-
}
|
|
943
|
-
ToObservableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToObservableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
944
|
-
ToObservableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: ToObservableModule, declarations: [ToObservablePipe], imports: [CommonModule], exports: [ToObservablePipe] });
|
|
945
|
-
ToObservableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToObservableModule, imports: [CommonModule] });
|
|
946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToObservableModule, decorators: [{
|
|
947
|
-
type: NgModule,
|
|
948
|
-
args: [{
|
|
949
|
-
declarations: [ToObservablePipe],
|
|
950
|
-
imports: [CommonModule],
|
|
951
|
-
exports: [ToObservablePipe],
|
|
952
|
-
}]
|
|
953
|
-
}] });
|
|
954
|
-
|
|
955
|
-
class SafeHtmlPipe {
|
|
956
|
-
constructor() {
|
|
957
|
-
this.sanitizer = inject(DomSanitizer);
|
|
958
|
-
}
|
|
959
|
-
transform(value) {
|
|
960
|
-
if (!value || typeof value !== 'string')
|
|
961
|
-
return '';
|
|
962
|
-
return this.sanitizer.sanitize(SecurityContext.HTML, value) || '';
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SafeHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
966
|
-
SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "lpxSafeHtml" });
|
|
967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
968
|
-
type: Pipe,
|
|
969
|
-
args: [{ name: 'lpxSafeHtml', standalone: true }]
|
|
970
|
-
}] });
|
|
971
|
-
|
|
972
|
-
class LpxTranslateModule {
|
|
973
|
-
}
|
|
974
|
-
LpxTranslateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxTranslateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
975
|
-
LpxTranslateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxTranslateModule, declarations: [TranslatePipe], imports: [CommonModule], exports: [TranslatePipe] });
|
|
976
|
-
LpxTranslateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxTranslateModule, imports: [CommonModule] });
|
|
977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxTranslateModule, decorators: [{
|
|
978
|
-
type: NgModule,
|
|
979
|
-
args: [{
|
|
980
|
-
declarations: [TranslatePipe],
|
|
981
|
-
imports: [CommonModule],
|
|
982
|
-
exports: [TranslatePipe],
|
|
983
|
-
}]
|
|
984
|
-
}] });
|
|
985
|
-
|
|
986
|
-
const exportedDeclarations$1 = [
|
|
987
|
-
NavbarComponent,
|
|
988
|
-
SubNavbarComponent,
|
|
989
|
-
NavbarRoutesComponent,
|
|
990
|
-
NavbarRoutesDirective,
|
|
991
|
-
];
|
|
992
|
-
class LpxNavbarModule {
|
|
993
|
-
static forRoot(options = {}) {
|
|
994
|
-
return {
|
|
995
|
-
ngModule: LpxNavbarModule,
|
|
996
|
-
providers: [
|
|
997
|
-
{
|
|
998
|
-
provide: LPX_MENU_ITEMS,
|
|
999
|
-
useValue: (options === null || options === void 0 ? void 0 : options.menuItems) || [],
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
provide: CONTENT_AFTER_ROUTES,
|
|
1003
|
-
useValue: (options === null || options === void 0 ? void 0 : options.contentAfterRoutes) || [],
|
|
1004
|
-
multi: true,
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
provide: CONTENT_BEFORE_ROUTES,
|
|
1008
|
-
useValue: (options === null || options === void 0 ? void 0 : options.contentBeforeRoutes) || [],
|
|
1009
|
-
multi: true,
|
|
1010
|
-
},
|
|
1011
|
-
],
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
static forChild(options = {}) {
|
|
1015
|
-
return {
|
|
1016
|
-
ngModule: LpxNavbarModule,
|
|
1017
|
-
providers: [
|
|
1018
|
-
{
|
|
1019
|
-
provide: CONTENT_AFTER_ROUTES,
|
|
1020
|
-
useValue: (options === null || options === void 0 ? void 0 : options.contentAfterRoutes) || [],
|
|
1021
|
-
multi: true,
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
provide: CONTENT_BEFORE_ROUTES,
|
|
1025
|
-
useValue: (options === null || options === void 0 ? void 0 : options.contentBeforeRoutes) || [],
|
|
1026
|
-
multi: true,
|
|
1027
|
-
},
|
|
1028
|
-
],
|
|
1029
|
-
};
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
LpxNavbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1033
|
-
LpxNavbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxNavbarModule, declarations: [NavbarComponent,
|
|
1034
|
-
SubNavbarComponent,
|
|
1035
|
-
NavbarRoutesComponent,
|
|
1036
|
-
NavbarRoutesDirective], imports: [CommonModule,
|
|
1037
|
-
FormsModule,
|
|
1038
|
-
RouterModule,
|
|
1039
|
-
LpxBrandLogoModule,
|
|
1040
|
-
LpxIconModule,
|
|
1041
|
-
ToObservableModule,
|
|
1042
|
-
LpxTranslateModule,
|
|
1043
|
-
LpxVisibleDirective], exports: [NavbarComponent,
|
|
1044
|
-
SubNavbarComponent,
|
|
1045
|
-
NavbarRoutesComponent,
|
|
1046
|
-
NavbarRoutesDirective] });
|
|
1047
|
-
LpxNavbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxNavbarModule, imports: [CommonModule,
|
|
1048
|
-
FormsModule,
|
|
1049
|
-
RouterModule,
|
|
1050
|
-
LpxBrandLogoModule,
|
|
1051
|
-
LpxIconModule,
|
|
1052
|
-
ToObservableModule,
|
|
1053
|
-
LpxTranslateModule] });
|
|
1054
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxNavbarModule, decorators: [{
|
|
1055
|
-
type: NgModule,
|
|
1056
|
-
args: [{
|
|
1057
|
-
declarations: [...exportedDeclarations$1],
|
|
1058
|
-
imports: [
|
|
1059
|
-
CommonModule,
|
|
1060
|
-
FormsModule,
|
|
1061
|
-
RouterModule,
|
|
1062
|
-
LpxBrandLogoModule,
|
|
1063
|
-
LpxIconModule,
|
|
1064
|
-
ToObservableModule,
|
|
1065
|
-
LpxTranslateModule,
|
|
1066
|
-
LpxVisibleDirective
|
|
1067
|
-
],
|
|
1068
|
-
exports: [...exportedDeclarations$1],
|
|
1069
|
-
}]
|
|
1070
|
-
}] });
|
|
1071
|
-
|
|
1072
|
-
class BreadcrumbService {
|
|
1073
|
-
constructor() {
|
|
1074
|
-
this.store = new DataStore([]);
|
|
1075
|
-
this.items$ = this.store.sliceState((state) => state);
|
|
1076
|
-
}
|
|
1077
|
-
// TODO: generate id per item
|
|
1078
|
-
add(item) {
|
|
1079
|
-
const items = Array.isArray(item) ? item : [item];
|
|
1080
|
-
this.store.set([...this.store.state, ...items]);
|
|
1081
|
-
}
|
|
1082
|
-
// TODO: generate id per item
|
|
1083
|
-
insert(item, index) {
|
|
1084
|
-
const state = this.store.state;
|
|
1085
|
-
const items = Array.isArray(item) ? item : [item];
|
|
1086
|
-
this.store.set([...state.slice(0, index), ...items, ...state.slice(index)]);
|
|
1087
|
-
}
|
|
1088
|
-
// TODO: generate id per item
|
|
1089
|
-
setItems(items) {
|
|
1090
|
-
this.store.set(items);
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
BreadcrumbService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1094
|
-
BreadcrumbService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbService, providedIn: 'root' });
|
|
1095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbService, decorators: [{
|
|
1096
|
-
type: Injectable,
|
|
1097
|
-
args: [{
|
|
1098
|
-
providedIn: 'root',
|
|
1099
|
-
}]
|
|
1100
|
-
}] });
|
|
1101
|
-
|
|
1102
|
-
class ClickOutsideDirective {
|
|
1103
|
-
constructor(elementRef) {
|
|
1104
|
-
this.elementRef = elementRef;
|
|
1105
|
-
this.lpxClickOutside = new EventEmitter();
|
|
1106
|
-
this.exceptedRefs = [];
|
|
1107
|
-
}
|
|
1108
|
-
onDocumentClick(event) {
|
|
1109
|
-
if (!(this.elementRef.nativeElement.contains(event.target) ||
|
|
1110
|
-
this.exceptedRefs.some(ref => ref.nativeElement.contains(event.target)))) {
|
|
1111
|
-
this.lpxClickOutside.emit();
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1116
|
-
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ClickOutsideDirective, selector: "[lpxClickOutside]", inputs: { exceptedRefs: "exceptedRefs" }, outputs: { lpxClickOutside: "lpxClickOutside" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0 });
|
|
1117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
1118
|
-
type: Directive,
|
|
1119
|
-
args: [{
|
|
1120
|
-
selector: '[lpxClickOutside]',
|
|
1121
|
-
}]
|
|
1122
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { lpxClickOutside: [{
|
|
1123
|
-
type: Output
|
|
1124
|
-
}], exceptedRefs: [{
|
|
1125
|
-
type: Input
|
|
1126
|
-
}], onDocumentClick: [{
|
|
1127
|
-
type: HostListener,
|
|
1128
|
-
args: ['document:click', ['$event']]
|
|
1129
|
-
}] } });
|
|
1130
|
-
|
|
1131
|
-
class BreadcrumbComponent {
|
|
1132
|
-
constructor(service) {
|
|
1133
|
-
this.service = service;
|
|
1134
|
-
this.icon = ICON_MAP;
|
|
1135
|
-
}
|
|
1136
|
-
onClick(item) {
|
|
1137
|
-
if (item.children) {
|
|
1138
|
-
item.expanded = !item.expanded;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: BreadcrumbService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1143
|
-
BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BreadcrumbComponent, selector: "lpx-breadcrumb", ngImport: i0, template: "<nav aria-label=\"breadcrumb\">\r\n <ol class=\"lpx-breadcrumb\">\r\n <ng-container *ngFor=\"let item of service.items$ | async; last as last\">\r\n <li\r\n class=\"lpx-breadcrumb-item\"\r\n (click)=\"onClick(item)\"\r\n [class.expanded]=\"item.expanded\"\r\n (lpxClickOutside)=\"item.expanded = false\"\r\n >\r\n <lpx-icon\r\n class=\"lpx-breadcrumb-item-icon\"\r\n *ngIf=\"item.icon\"\r\n [iconClass]=\"item.icon\"\r\n ></lpx-icon>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n item.children?.length ? textTemplate : linkTemplate;\r\n context: { $implicit: item }\r\n \"\r\n ></ng-container>\r\n </li>\r\n <li *ngIf=\"!last\" class=\"lpx-breadcrumb-separator\">\r\n <lpx-icon iconClass=\"bi bi-chevron-right\"></lpx-icon>\r\n </li>\r\n </ng-container>\r\n </ol>\r\n</nav>\r\n\r\n<ng-template #linkTemplate let-item>\r\n <a [routerLink]=\"item.link\"> {{ item.text | toObservable | async }} </a>\r\n</ng-template>\r\n<ng-template #textTemplate let-item>\r\n <span class=\"lpx-breadcrumb-item-text\">\r\n {{ item.text | toObservable | async }}\r\n </span>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "lpx-icon", inputs: ["iconClass"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[lpxClickOutside]", inputs: ["exceptedRefs"], outputs: ["lpxClickOutside"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: ToObservablePipe, name: "toObservable" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
1145
|
-
type: Component,
|
|
1146
|
-
args: [{ selector: 'lpx-breadcrumb', encapsulation: ViewEncapsulation.None, template: "<nav aria-label=\"breadcrumb\">\r\n <ol class=\"lpx-breadcrumb\">\r\n <ng-container *ngFor=\"let item of service.items$ | async; last as last\">\r\n <li\r\n class=\"lpx-breadcrumb-item\"\r\n (click)=\"onClick(item)\"\r\n [class.expanded]=\"item.expanded\"\r\n (lpxClickOutside)=\"item.expanded = false\"\r\n >\r\n <lpx-icon\r\n class=\"lpx-breadcrumb-item-icon\"\r\n *ngIf=\"item.icon\"\r\n [iconClass]=\"item.icon\"\r\n ></lpx-icon>\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n item.children?.length ? textTemplate : linkTemplate;\r\n context: { $implicit: item }\r\n \"\r\n ></ng-container>\r\n </li>\r\n <li *ngIf=\"!last\" class=\"lpx-breadcrumb-separator\">\r\n <lpx-icon iconClass=\"bi bi-chevron-right\"></lpx-icon>\r\n </li>\r\n </ng-container>\r\n </ol>\r\n</nav>\r\n\r\n<ng-template #linkTemplate let-item>\r\n <a [routerLink]=\"item.link\"> {{ item.text | toObservable | async }} </a>\r\n</ng-template>\r\n<ng-template #textTemplate let-item>\r\n <span class=\"lpx-breadcrumb-item-text\">\r\n {{ item.text | toObservable | async }}\r\n </span>\r\n</ng-template>\r\n" }]
|
|
1147
|
-
}], ctorParameters: function () { return [{ type: BreadcrumbService }]; } });
|
|
1148
|
-
|
|
1149
|
-
class LpxClickOutsideModule {
|
|
1150
|
-
}
|
|
1151
|
-
LpxClickOutsideModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxClickOutsideModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1152
|
-
LpxClickOutsideModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxClickOutsideModule, declarations: [ClickOutsideDirective], imports: [CommonModule], exports: [ClickOutsideDirective] });
|
|
1153
|
-
LpxClickOutsideModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxClickOutsideModule, imports: [CommonModule] });
|
|
1154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxClickOutsideModule, decorators: [{
|
|
1155
|
-
type: NgModule,
|
|
1156
|
-
args: [{
|
|
1157
|
-
declarations: [ClickOutsideDirective],
|
|
1158
|
-
imports: [CommonModule],
|
|
1159
|
-
exports: [ClickOutsideDirective],
|
|
1160
|
-
}]
|
|
1161
|
-
}] });
|
|
1162
|
-
|
|
1163
|
-
class BreadcrumbRouteListenerService {
|
|
1164
|
-
constructor(navbarService, router, breadcrumbService) {
|
|
1165
|
-
this.navbarService = navbarService;
|
|
1166
|
-
this.router = router;
|
|
1167
|
-
this.breadcrumbService = breadcrumbService;
|
|
1168
|
-
}
|
|
1169
|
-
subscribeRoute() {
|
|
1170
|
-
combineLatest([
|
|
1171
|
-
this.router.events.pipe(filter((event) => event instanceof NavigationEnd)),
|
|
1172
|
-
this.navbarService.navbarItems$.pipe(filter((items) => !!items.length)),
|
|
1173
|
-
]).subscribe(([event, items]) => {
|
|
1174
|
-
let activeItem = this.navbarService.findByLink(event.url);
|
|
1175
|
-
if (!activeItem.item) {
|
|
1176
|
-
activeItem = this.navbarService.findByLink('/');
|
|
1177
|
-
}
|
|
1178
|
-
const breadCrumbItems = activeItem.location.reduce((acc, itemIndex) => {
|
|
1179
|
-
var _a;
|
|
1180
|
-
const parent = ((_a = acc[acc.length - 1]) === null || _a === void 0 ? void 0 : _a.children) || items;
|
|
1181
|
-
const item = parent[itemIndex];
|
|
1182
|
-
return [
|
|
1183
|
-
...acc,
|
|
1184
|
-
Object.assign(Object.assign({}, item), { siblings: parent }),
|
|
1185
|
-
];
|
|
1186
|
-
}, []);
|
|
1187
|
-
this.breadcrumbService.setItems(this.mapNavbarItemToBreadcrumbItem(breadCrumbItems));
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
mapNavbarItemToBreadcrumbItem(items) {
|
|
1191
|
-
return items.map(({ text, link, icon, siblings }) => ({
|
|
1192
|
-
text: text || '',
|
|
1193
|
-
link,
|
|
1194
|
-
icon,
|
|
1195
|
-
children: this.mapNavbarItemToBreadcrumbItem(siblings || []),
|
|
1196
|
-
}));
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
BreadcrumbRouteListenerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbRouteListenerService, deps: [{ token: NavbarService }, { token: i1$1.Router }, { token: BreadcrumbService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1200
|
-
BreadcrumbRouteListenerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbRouteListenerService, providedIn: 'root' });
|
|
1201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbRouteListenerService, decorators: [{
|
|
1202
|
-
type: Injectable,
|
|
1203
|
-
args: [{
|
|
1204
|
-
providedIn: 'root',
|
|
1205
|
-
}]
|
|
1206
|
-
}], ctorParameters: function () { return [{ type: NavbarService }, { type: i1$1.Router }, { type: BreadcrumbService }]; } });
|
|
1207
|
-
|
|
1208
|
-
const exportedDeclarations = [BreadcrumbComponent];
|
|
1209
|
-
class LpxBreadcrumbModule {
|
|
1210
|
-
static forRoot() {
|
|
1211
|
-
return {
|
|
1212
|
-
ngModule: LpxBreadcrumbModule,
|
|
1213
|
-
providers: [
|
|
1214
|
-
{
|
|
1215
|
-
provide: APP_INITIALIZER,
|
|
1216
|
-
useFactory: breadCrumbInit,
|
|
1217
|
-
multi: true,
|
|
1218
|
-
deps: [Injector],
|
|
1219
|
-
},
|
|
1220
|
-
],
|
|
1221
|
-
};
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
LpxBreadcrumbModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1225
|
-
LpxBreadcrumbModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxBreadcrumbModule, declarations: [BreadcrumbComponent], imports: [CommonModule,
|
|
1226
|
-
LpxIconModule,
|
|
1227
|
-
ToObservableModule,
|
|
1228
|
-
RouterModule,
|
|
1229
|
-
LpxClickOutsideModule], exports: [BreadcrumbComponent] });
|
|
1230
|
-
LpxBreadcrumbModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxBreadcrumbModule, imports: [CommonModule,
|
|
1231
|
-
LpxIconModule,
|
|
1232
|
-
ToObservableModule,
|
|
1233
|
-
RouterModule,
|
|
1234
|
-
LpxClickOutsideModule] });
|
|
1235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxBreadcrumbModule, decorators: [{
|
|
1236
|
-
type: NgModule,
|
|
1237
|
-
args: [{
|
|
1238
|
-
declarations: [...exportedDeclarations],
|
|
1239
|
-
imports: [
|
|
1240
|
-
CommonModule,
|
|
1241
|
-
LpxIconModule,
|
|
1242
|
-
ToObservableModule,
|
|
1243
|
-
RouterModule,
|
|
1244
|
-
LpxClickOutsideModule,
|
|
1245
|
-
],
|
|
1246
|
-
exports: [...exportedDeclarations],
|
|
1247
|
-
}]
|
|
1248
|
-
}] });
|
|
1249
|
-
function breadCrumbInit(injector) {
|
|
1250
|
-
const subs = () => {
|
|
1251
|
-
const service = injector.get(BreadcrumbRouteListenerService);
|
|
1252
|
-
service.subscribeRoute();
|
|
1253
|
-
};
|
|
1254
|
-
return subs;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
const LPX_TRANSLATE_SERVICE_PROVIDER = {
|
|
1258
|
-
provide: LPX_TRANSLATE_SERVICE_TOKEN,
|
|
1259
|
-
useClass: DefaultTranslateService,
|
|
1260
|
-
};
|
|
1261
|
-
const LPX_TRANSLATE_PROVIDERS = [
|
|
1262
|
-
LPX_TRANSLATE_SERVICE_PROVIDER,
|
|
1263
|
-
];
|
|
1264
|
-
|
|
1265
|
-
const LPX_INITIAL_STYLES = new InjectionToken('LPX_INITIAL_STYLES_TOKEN');
|
|
1266
|
-
const LPX_STYLE_FINAL = new InjectionToken('LPX_STYLE_FINAL_TOKEN');
|
|
1267
|
-
const LPX_LAYOUT_STYLE_FINAL = new InjectionToken('LPX_LAYOUT_STYLE_FINALIZE_TOKEN');
|
|
1268
|
-
|
|
1269
|
-
class StyleService {
|
|
1270
|
-
constructor(initialStyles, document) {
|
|
1271
|
-
this.initialStyles = initialStyles;
|
|
1272
|
-
this.document = document;
|
|
1273
|
-
this.lastInjectedStyle = null;
|
|
1274
|
-
this.initialized$ = new BehaviorSubject(false);
|
|
1275
|
-
}
|
|
1276
|
-
initStyles(direction) {
|
|
1277
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1278
|
-
for (const style of this.initialStyles) {
|
|
1279
|
-
yield this.loadStyle(style, direction);
|
|
1280
|
-
}
|
|
1281
|
-
this.initialized$.next(true);
|
|
1282
|
-
});
|
|
1283
|
-
}
|
|
1284
|
-
loadStyle(style, direction) {
|
|
1285
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1286
|
-
return new Promise((resolve, reject) => {
|
|
1287
|
-
const linkElem = this.createLinkElem(style, direction, resolve);
|
|
1288
|
-
//TODO: find a better way for understand style laaded by angular json
|
|
1289
|
-
const appStyles = document.querySelector('link[rel="stylesheet"][href*="styles"]');
|
|
1290
|
-
if (appStyles) {
|
|
1291
|
-
if (this.lastInjectedStyle && this.lastInjectedStyle.isConnected) {
|
|
1292
|
-
this.lastInjectedStyle.insertAdjacentElement('afterend', linkElem);
|
|
1293
|
-
}
|
|
1294
|
-
else {
|
|
1295
|
-
appStyles.insertAdjacentElement('beforebegin', linkElem);
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
else {
|
|
1299
|
-
this.document.head.appendChild(linkElem);
|
|
1300
|
-
}
|
|
1301
|
-
this.lastInjectedStyle = linkElem;
|
|
1302
|
-
return Promise.resolve(linkElem);
|
|
1303
|
-
});
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
replaceStyle(style, direction) {
|
|
1307
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1308
|
-
const loaded = this.document.querySelector(`link#${style.bundleName}`);
|
|
1309
|
-
if (loaded) {
|
|
1310
|
-
loaded.remove();
|
|
1311
|
-
}
|
|
1312
|
-
return this.loadStyle(style, direction);
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
reloadInitialStyles(direction) {
|
|
1316
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
-
for (const style of this.initialStyles) {
|
|
1318
|
-
yield this.replaceStyle(style, direction);
|
|
1319
|
-
}
|
|
1320
|
-
});
|
|
1321
|
-
}
|
|
1322
|
-
createLinkElem(style, direction, resolve) {
|
|
1323
|
-
const linkElem = document.createElement('link');
|
|
1324
|
-
linkElem.rel = 'stylesheet';
|
|
1325
|
-
linkElem.id = style.bundleName;
|
|
1326
|
-
linkElem.href = `${style.bundleName}${direction === 'rtl' ? '.rtl' : ''}.css`;
|
|
1327
|
-
linkElem.onload = () => {
|
|
1328
|
-
resolve(linkElem);
|
|
1329
|
-
};
|
|
1330
|
-
return linkElem;
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
StyleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: StyleService, deps: [{ token: LPX_STYLE_FINAL }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1334
|
-
StyleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: StyleService, providedIn: 'root' });
|
|
1335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: StyleService, decorators: [{
|
|
1336
|
-
type: Injectable,
|
|
1337
|
-
args: [{
|
|
1338
|
-
providedIn: 'root',
|
|
1339
|
-
}]
|
|
1340
|
-
}], ctorParameters: function () {
|
|
1341
|
-
return [{ type: undefined, decorators: [{
|
|
1342
|
-
type: Inject,
|
|
1343
|
-
args: [LPX_STYLE_FINAL]
|
|
1344
|
-
}] }, { type: Document, decorators: [{
|
|
1345
|
-
type: Inject,
|
|
1346
|
-
args: [DOCUMENT]
|
|
1347
|
-
}] }];
|
|
1348
|
-
} });
|
|
1349
|
-
|
|
1350
|
-
function createStyleFactory(handler) {
|
|
1351
|
-
return handler || ((defaultValue) => defaultValue);
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
function styleLoadFactory(styleList, layoutStyles) {
|
|
1355
|
-
styleList.push({
|
|
1356
|
-
bundleName: 'ng-bundle',
|
|
1357
|
-
});
|
|
1358
|
-
styleList.push({
|
|
1359
|
-
bundleName: 'font-bundle',
|
|
1360
|
-
});
|
|
1361
|
-
return [...styleList, ...layoutStyles];
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
const LPX_STYLE_PROVIDERS = [
|
|
1365
|
-
{
|
|
1366
|
-
provide: LPX_INITIAL_STYLES,
|
|
1367
|
-
useFactory: () => [],
|
|
1368
|
-
},
|
|
1369
|
-
{
|
|
1370
|
-
provide: APP_INITIALIZER,
|
|
1371
|
-
deps: [StyleService, LanguageService],
|
|
1372
|
-
useFactory: loadInitialStyles,
|
|
1373
|
-
multi: true,
|
|
1374
|
-
},
|
|
1375
|
-
];
|
|
1376
|
-
function loadInitialStyles(styleService, languageService) {
|
|
1377
|
-
return () => {
|
|
1378
|
-
return languageService.languageChange$.pipe(take(1), switchMap((lang) => from(styleService.initStyles(lang.isRTL ? 'rtl' : 'ltr'))));
|
|
1379
|
-
};
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
const WINDOW = new InjectionToken('WINDOW');
|
|
1383
|
-
|
|
1384
|
-
function createWindowProvider(windowObj) {
|
|
1385
|
-
return { provide: WINDOW, useValue: windowObj || window };
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
const RESPONSIVE_BREAKPOINTS = new InjectionToken('RESPONSIVE_BREAKPOINTS');
|
|
1389
|
-
|
|
1390
|
-
class ResponsiveService {
|
|
1391
|
-
constructor(providedBreakpoints, window) {
|
|
1392
|
-
this.providedBreakpoints = providedBreakpoints;
|
|
1393
|
-
this.window = window;
|
|
1394
|
-
this.defaultBreakpoint = {
|
|
1395
|
-
name: "all" /* ResponsiveTokens.all */,
|
|
1396
|
-
width: 0,
|
|
1397
|
-
};
|
|
1398
|
-
this.breakpoints = this.buildBreakpoints(this.providedBreakpoints);
|
|
1399
|
-
this.getCurrentSize = () => ({
|
|
1400
|
-
height: this.window.innerHeight,
|
|
1401
|
-
width: this.window.innerWidth,
|
|
1402
|
-
});
|
|
1403
|
-
this.mapSizeToBreakpoint = ({ width } = this.getCurrentSize()) => {
|
|
1404
|
-
return this.breakpoints.find(s => width >= s.width);
|
|
1405
|
-
};
|
|
1406
|
-
this.currentSize$ = new BehaviorSubject(this.mapSizeToBreakpoint());
|
|
1407
|
-
this.shouldRenderWithCurrentSize = (query) => {
|
|
1408
|
-
return this.matchQuery(query);
|
|
1409
|
-
};
|
|
1410
|
-
this.setupListener();
|
|
1411
|
-
}
|
|
1412
|
-
setupListener() {
|
|
1413
|
-
this.currentResolution$ = fromEvent(this.window, 'resize')
|
|
1414
|
-
.pipe(map(this.getCurrentSize))
|
|
1415
|
-
.pipe(startWith(this.getCurrentSize()));
|
|
1416
|
-
this.currentResolution$
|
|
1417
|
-
.pipe(map(this.mapSizeToBreakpoint), distinctUntilChanged())
|
|
1418
|
-
.subscribe(current => {
|
|
1419
|
-
this.currentSize$.next(current);
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
buildBreakpoints(breakpoints) {
|
|
1423
|
-
return [
|
|
1424
|
-
...Object.keys(breakpoints)
|
|
1425
|
-
.map(key => ({
|
|
1426
|
-
name: key,
|
|
1427
|
-
width: breakpoints[key],
|
|
1428
|
-
}))
|
|
1429
|
-
.sort((a, b) => b.width - a.width),
|
|
1430
|
-
this.defaultBreakpoint,
|
|
1431
|
-
];
|
|
1432
|
-
}
|
|
1433
|
-
matchQuery(query) {
|
|
1434
|
-
const { width } = this.getCurrentSize();
|
|
1435
|
-
const tokens = query.split(' ');
|
|
1436
|
-
const findInTokens = (size) => tokens.find(token => token.split("-" /* ResponsiveTokens.separator */)[0] === size);
|
|
1437
|
-
const matchedBreakpoint = this.breakpoints.find(breakpoint => width >= breakpoint.width && findInTokens(breakpoint.name));
|
|
1438
|
-
if (matchedBreakpoint) {
|
|
1439
|
-
const token = findInTokens(matchedBreakpoint.name);
|
|
1440
|
-
const shouldBeBigger = !(token === null || token === void 0 ? void 0 : token.includes("none" /* ResponsiveTokens.none */));
|
|
1441
|
-
return shouldBeBigger === width >= matchedBreakpoint.width;
|
|
1442
|
-
}
|
|
1443
|
-
return false;
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
ResponsiveService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ResponsiveService, deps: [{ token: RESPONSIVE_BREAKPOINTS }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1447
|
-
ResponsiveService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ResponsiveService, providedIn: 'root' });
|
|
1448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ResponsiveService, decorators: [{
|
|
1449
|
-
type: Injectable,
|
|
1450
|
-
args: [{
|
|
1451
|
-
providedIn: 'root',
|
|
1452
|
-
}]
|
|
1453
|
-
}], ctorParameters: function () {
|
|
1454
|
-
return [{ type: undefined, decorators: [{
|
|
1455
|
-
type: Inject,
|
|
1456
|
-
args: [RESPONSIVE_BREAKPOINTS]
|
|
1457
|
-
}] }, { type: undefined, decorators: [{
|
|
1458
|
-
type: Inject,
|
|
1459
|
-
args: [WINDOW]
|
|
1460
|
-
}] }];
|
|
1461
|
-
} });
|
|
1462
|
-
|
|
1463
|
-
class ResponsiveDirective {
|
|
1464
|
-
constructor(templateRef, viewContainer, service, parentCdr) {
|
|
1465
|
-
this.templateRef = templateRef;
|
|
1466
|
-
this.viewContainer = viewContainer;
|
|
1467
|
-
this.service = service;
|
|
1468
|
-
this.parentCdr = parentCdr;
|
|
1469
|
-
this.hasRendered = false;
|
|
1470
|
-
this.sub = new Subscription();
|
|
1471
|
-
this.render = (shouldRender) => {
|
|
1472
|
-
if (shouldRender && !this.hasRendered) {
|
|
1473
|
-
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
1474
|
-
this.hasRendered = true;
|
|
1475
|
-
}
|
|
1476
|
-
else if (!shouldRender && this.hasRendered) {
|
|
1477
|
-
this.viewContainer.clear();
|
|
1478
|
-
this.hasRendered = false;
|
|
1479
|
-
}
|
|
1480
|
-
this.parentCdr.detectChanges();
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
ngOnInit() {
|
|
1484
|
-
this.sub.add(this.service.currentSize$
|
|
1485
|
-
.pipe(map(_ => this.service.shouldRenderWithCurrentSize(this.query)))
|
|
1486
|
-
.subscribe(this.render));
|
|
1487
|
-
}
|
|
1488
|
-
ngOnDestroy() {
|
|
1489
|
-
this.sub.unsubscribe();
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
ResponsiveDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ResponsiveDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: ResponsiveService }, { token: i0.ChangeDetectorRef, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1493
|
-
ResponsiveDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ResponsiveDirective, selector: "[lpxResponsive]", inputs: { query: ["lpxResponsive", "query"] }, ngImport: i0 });
|
|
1494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ResponsiveDirective, decorators: [{
|
|
1495
|
-
type: Directive,
|
|
1496
|
-
args: [{
|
|
1497
|
-
selector: '[lpxResponsive]',
|
|
1498
|
-
}]
|
|
1499
|
-
}], ctorParameters: function () {
|
|
1500
|
-
return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: ResponsiveService }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
1501
|
-
type: Optional
|
|
1502
|
-
}, {
|
|
1503
|
-
type: SkipSelf
|
|
1504
|
-
}] }];
|
|
1505
|
-
}, propDecorators: { query: [{
|
|
1506
|
-
type: Input,
|
|
1507
|
-
args: ['lpxResponsive']
|
|
1508
|
-
}] } });
|
|
1509
|
-
|
|
1510
|
-
class LpxResponsiveModule {
|
|
1511
|
-
}
|
|
1512
|
-
LpxResponsiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxResponsiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1513
|
-
LpxResponsiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxResponsiveModule, declarations: [ResponsiveDirective], imports: [CommonModule], exports: [ResponsiveDirective] });
|
|
1514
|
-
LpxResponsiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxResponsiveModule, imports: [CommonModule] });
|
|
1515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxResponsiveModule, decorators: [{
|
|
1516
|
-
type: NgModule,
|
|
1517
|
-
args: [{
|
|
1518
|
-
declarations: [ResponsiveDirective],
|
|
1519
|
-
imports: [CommonModule],
|
|
1520
|
-
exports: [ResponsiveDirective],
|
|
1521
|
-
}]
|
|
1522
|
-
}] });
|
|
1523
|
-
|
|
1524
|
-
const LPX_RESPONSIVE_BREAKPOINTS_DEFAULTS = {
|
|
1525
|
-
sm: 480,
|
|
1526
|
-
md: 768,
|
|
1527
|
-
lg: 992,
|
|
1528
|
-
xl: 1200,
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
|
-
function createResponsiveProvider(responsiveSettings) {
|
|
1532
|
-
return {
|
|
1533
|
-
provide: RESPONSIVE_BREAKPOINTS,
|
|
1534
|
-
useValue: responsiveSettings || LPX_RESPONSIVE_BREAKPOINTS_DEFAULTS,
|
|
1535
|
-
};
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
function createDirectionProvider(listenDirection) {
|
|
1539
|
-
return {
|
|
1540
|
-
provide: APP_INITIALIZER,
|
|
1541
|
-
multi: true,
|
|
1542
|
-
deps: [LanguageService, StyleService],
|
|
1543
|
-
useFactory: listenDirection ? listenDirectionChange : () => () => null,
|
|
1544
|
-
};
|
|
1545
|
-
}
|
|
1546
|
-
// subscribe to direction from documentElement and load direction stylesheet
|
|
1547
|
-
function listenDirectionChange(languageService, styleService) {
|
|
1548
|
-
return () => {
|
|
1549
|
-
return new Promise((resolve) => {
|
|
1550
|
-
styleService.initialized$
|
|
1551
|
-
.pipe(filter(Boolean), take(1), switchMap(() => languageService.languageChange$), distinctUntilKeyChanged('isRTL'))
|
|
1552
|
-
.subscribe((lang) => __awaiter(this, void 0, void 0, function* () {
|
|
1553
|
-
const direction = (lang === null || lang === void 0 ? void 0 : lang.isRTL) ? 'rtl' : 'ltr';
|
|
1554
|
-
const documentElement = document.documentElement;
|
|
1555
|
-
if (documentElement.dir !== direction) {
|
|
1556
|
-
documentElement.dir = direction;
|
|
1557
|
-
}
|
|
1558
|
-
yield styleService.reloadInitialStyles(direction);
|
|
1559
|
-
resolve(null);
|
|
1560
|
-
}));
|
|
1561
|
-
});
|
|
1562
|
-
};
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
const LPX_PERFECT_SCROLLBAR = new InjectionToken('LPX_PERFECT_SCROLLBAR');
|
|
1566
|
-
|
|
1567
|
-
class LpxCoreModule {
|
|
1568
|
-
static forRoot(options) {
|
|
1569
|
-
return {
|
|
1570
|
-
ngModule: LpxCoreModule,
|
|
1571
|
-
providers: [
|
|
1572
|
-
{
|
|
1573
|
-
provide: LPX_PERFECT_SCROLLBAR,
|
|
1574
|
-
useClass: LpxPerfectScrollbarService,
|
|
1575
|
-
},
|
|
1576
|
-
createResponsiveProvider(options === null || options === void 0 ? void 0 : options.responsiveSettings),
|
|
1577
|
-
createWindowProvider(options === null || options === void 0 ? void 0 : options.window),
|
|
1578
|
-
LpxIconModule.forRoot(options === null || options === void 0 ? void 0 : options.iconSettings).providers,
|
|
1579
|
-
LpxLanguageModule.forRoot(options === null || options === void 0 ? void 0 : options.languageSettings)
|
|
1580
|
-
.providers,
|
|
1581
|
-
LpxNavbarModule.forRoot(options === null || options === void 0 ? void 0 : options.navbarSettings).providers,
|
|
1582
|
-
LpxBreadcrumbModule.forRoot().providers,
|
|
1583
|
-
LPX_TRANSLATE_PROVIDERS,
|
|
1584
|
-
...LPX_STYLE_PROVIDERS,
|
|
1585
|
-
createDirectionProvider((options === null || options === void 0 ? void 0 : options.listenDirectionChanges) || true),
|
|
1586
|
-
],
|
|
1587
|
-
};
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
LpxCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1591
|
-
LpxCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxCoreModule, imports: [CommonModule, LpxVisibleDirective] });
|
|
1592
|
-
LpxCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxCoreModule, imports: [CommonModule] });
|
|
1593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxCoreModule, decorators: [{
|
|
1594
|
-
type: NgModule,
|
|
1595
|
-
args: [{
|
|
1596
|
-
imports: [CommonModule, LpxVisibleDirective],
|
|
1597
|
-
}]
|
|
1598
|
-
}] });
|
|
1599
|
-
|
|
1600
|
-
class AvatarComponent {
|
|
1601
|
-
}
|
|
1602
|
-
AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1603
|
-
AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AvatarComponent, selector: "lpx-avatar", inputs: { avatar: "avatar" }, ngImport: i0, template: "<div class=\"lpx-avatar\" *ngIf=\"avatar && avatar?.source\">\r\n <ng-container [ngSwitch]=\"avatar.type\">\r\n <ng-container *ngSwitchCase=\"'icon'\">\r\n <lpx-icon class=\"lpx-avatar-icon\" [iconClass]=\"avatar.source\"></lpx-icon>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'image'\">\r\n <img class=\"lpx-avatar-img\" [src]=\"avatar.source\" />\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: IconComponent, selector: "lpx-icon", inputs: ["iconClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
1605
|
-
type: Component,
|
|
1606
|
-
args: [{ selector: 'lpx-avatar', encapsulation: ViewEncapsulation.None, template: "<div class=\"lpx-avatar\" *ngIf=\"avatar && avatar?.source\">\r\n <ng-container [ngSwitch]=\"avatar.type\">\r\n <ng-container *ngSwitchCase=\"'icon'\">\r\n <lpx-icon class=\"lpx-avatar-icon\" [iconClass]=\"avatar.source\"></lpx-icon>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'image'\">\r\n <img class=\"lpx-avatar-img\" [src]=\"avatar.source\" />\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n" }]
|
|
1607
|
-
}], propDecorators: { avatar: [{
|
|
1608
|
-
type: Input
|
|
1609
|
-
}] } });
|
|
1610
|
-
|
|
1611
|
-
class LpxAvatarModule {
|
|
1612
|
-
}
|
|
1613
|
-
LpxAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1614
|
-
LpxAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxAvatarModule, declarations: [AvatarComponent], imports: [CommonModule, LpxIconModule], exports: [AvatarComponent] });
|
|
1615
|
-
LpxAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxAvatarModule, imports: [CommonModule, LpxIconModule] });
|
|
1616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxAvatarModule, decorators: [{
|
|
1617
|
-
type: NgModule,
|
|
1618
|
-
args: [{
|
|
1619
|
-
declarations: [AvatarComponent],
|
|
1620
|
-
imports: [CommonModule, LpxIconModule],
|
|
1621
|
-
exports: [AvatarComponent],
|
|
1622
|
-
}]
|
|
1623
|
-
}] });
|
|
1624
|
-
|
|
1625
|
-
class FooterLinksService {
|
|
1626
|
-
constructor() {
|
|
1627
|
-
this.store = new DataStore({});
|
|
1628
|
-
this.footerInfo$ = this.store.sliceState((state) => state);
|
|
1629
|
-
}
|
|
1630
|
-
setFooterInfo(links) {
|
|
1631
|
-
this.store.set(links);
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
FooterLinksService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterLinksService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1635
|
-
FooterLinksService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterLinksService, providedIn: 'root' });
|
|
1636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterLinksService, decorators: [{
|
|
1637
|
-
type: Injectable,
|
|
1638
|
-
args: [{
|
|
1639
|
-
providedIn: 'root',
|
|
1640
|
-
}]
|
|
1641
|
-
}] });
|
|
1642
|
-
|
|
1643
|
-
class FooterComponent {
|
|
1644
|
-
constructor(service) {
|
|
1645
|
-
this.service = service;
|
|
1646
|
-
this.footerValues$ = this.service.footerInfo$;
|
|
1647
|
-
this.currentYear = new Date().getFullYear();
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterComponent, deps: [{ token: FooterLinksService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1651
|
-
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: FooterComponent, selector: "lpx-footer", ngImport: i0, template: "<ng-container *ngIf=\"footerValues$ | async as footerValues\">\r\n\r\n <div class=\"lpx-footbar\">\r\n <div class=\"lpx-footbar-copyright\">\r\n <span>{{ currentYear }} \u00A9</span>\r\n <a\r\n *ngIf=\"footerValues.descUrl; else footerDesc\"\r\n [routerLink]=\"[footerValues.descUrl]\"\r\n >\r\n {{ footerValues.desc }}</a\r\n >\r\n <ng-template #footerDesc>\r\n <a> {{ footerValues.desc }}</a>\r\n </ng-template>\r\n </div>\r\n <div class=\"lpx-footbar-solo-links\">\r\n <ng-container *ngFor=\"let footerLink of footerValues.footerLinks\">\r\n <a *ngIf=\"footerLink\" [routerLink]=\"[footerLink.link]\">{{\r\n footerLink.text\r\n }}</a>\r\n </ng-container>\r\n </div>\r\n </div>\r\n\r\n</ng-container>\r\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
|
|
1652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterComponent, decorators: [{
|
|
1653
|
-
type: Component,
|
|
1654
|
-
args: [{ selector: 'lpx-footer', template: "<ng-container *ngIf=\"footerValues$ | async as footerValues\">\r\n\r\n <div class=\"lpx-footbar\">\r\n <div class=\"lpx-footbar-copyright\">\r\n <span>{{ currentYear }} \u00A9</span>\r\n <a\r\n *ngIf=\"footerValues.descUrl; else footerDesc\"\r\n [routerLink]=\"[footerValues.descUrl]\"\r\n >\r\n {{ footerValues.desc }}</a\r\n >\r\n <ng-template #footerDesc>\r\n <a> {{ footerValues.desc }}</a>\r\n </ng-template>\r\n </div>\r\n <div class=\"lpx-footbar-solo-links\">\r\n <ng-container *ngFor=\"let footerLink of footerValues.footerLinks\">\r\n <a *ngIf=\"footerLink\" [routerLink]=\"[footerLink.link]\">{{\r\n footerLink.text\r\n }}</a>\r\n </ng-container>\r\n </div>\r\n </div>\r\n\r\n</ng-container>\r\n" }]
|
|
1655
|
-
}], ctorParameters: function () { return [{ type: FooterLinksService }]; } });
|
|
1656
|
-
|
|
1657
|
-
class LpxFooterModule {
|
|
1658
|
-
static forRoot() {
|
|
1659
|
-
return {
|
|
1660
|
-
ngModule: LpxFooterModule,
|
|
1661
|
-
providers: [],
|
|
1662
|
-
};
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
LpxFooterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxFooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1666
|
-
LpxFooterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: LpxFooterModule, declarations: [FooterComponent], imports: [CommonModule, RouterModule], exports: [FooterComponent] });
|
|
1667
|
-
LpxFooterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxFooterModule, imports: [CommonModule, RouterModule] });
|
|
1668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LpxFooterModule, decorators: [{
|
|
1669
|
-
type: NgModule,
|
|
1670
|
-
args: [{
|
|
1671
|
-
declarations: [FooterComponent],
|
|
1672
|
-
exports: [FooterComponent],
|
|
1673
|
-
imports: [CommonModule, RouterModule],
|
|
1674
|
-
}]
|
|
1675
|
-
}] });
|
|
1676
|
-
|
|
1677
|
-
class PerfectScrollbarDirective {
|
|
1678
|
-
constructor() {
|
|
1679
|
-
this.elementRef = inject(ElementRef);
|
|
1680
|
-
this.lpxPerfectService = inject(LPX_PERFECT_SCROLLBAR);
|
|
1681
|
-
}
|
|
1682
|
-
set lpxPerfectScrollbarOptions(value) {
|
|
1683
|
-
this.lpxPerfectService.setOptions(value);
|
|
1684
|
-
}
|
|
1685
|
-
onResize() {
|
|
1686
|
-
this.lpxPerfectService.onResize();
|
|
1687
|
-
}
|
|
1688
|
-
ngAfterViewInit() {
|
|
1689
|
-
this.lpxPerfectService.setElement(this.elementRef);
|
|
1690
|
-
this.lpxPerfectService.afterViewInit();
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
PerfectScrollbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PerfectScrollbarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1694
|
-
PerfectScrollbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: PerfectScrollbarDirective, isStandalone: true, selector: "[lpxPerfectScrollbar]", inputs: { lpxPerfectScrollbarOptions: "lpxPerfectScrollbarOptions" }, host: { listeners: { "window:resize": "onResize()" } }, ngImport: i0 });
|
|
1695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PerfectScrollbarDirective, decorators: [{
|
|
1696
|
-
type: Directive,
|
|
1697
|
-
args: [{
|
|
1698
|
-
selector: '[lpxPerfectScrollbar]',
|
|
1699
|
-
standalone: true,
|
|
1700
|
-
}]
|
|
1701
|
-
}], propDecorators: { lpxPerfectScrollbarOptions: [{
|
|
1702
|
-
type: Input
|
|
1703
|
-
}], onResize: [{
|
|
1704
|
-
type: HostListener,
|
|
1705
|
-
args: ['window:resize']
|
|
1706
|
-
}] } });
|
|
1707
|
-
|
|
1708
|
-
class BreadcrumbPanelDirective {
|
|
1709
|
-
constructor(template) {
|
|
1710
|
-
this.template = template;
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
BreadcrumbPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1714
|
-
BreadcrumbPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: BreadcrumbPanelDirective, selector: "ng-template[lpx-breadcrumb-panel]", ngImport: i0 });
|
|
1715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BreadcrumbPanelDirective, decorators: [{
|
|
1716
|
-
type: Directive,
|
|
1717
|
-
args: [{
|
|
1718
|
-
selector: 'ng-template[lpx-breadcrumb-panel]',
|
|
1719
|
-
}]
|
|
1720
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1721
|
-
|
|
1722
|
-
class ContentPanelDirective {
|
|
1723
|
-
constructor(template) {
|
|
1724
|
-
this.template = template;
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
ContentPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ContentPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1728
|
-
ContentPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ContentPanelDirective, selector: "ng-template[lpx-content]", ngImport: i0 });
|
|
1729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ContentPanelDirective, decorators: [{
|
|
1730
|
-
type: Directive,
|
|
1731
|
-
args: [{
|
|
1732
|
-
selector: 'ng-template[lpx-content]',
|
|
1733
|
-
}]
|
|
1734
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1735
|
-
|
|
1736
|
-
class CurrentUserImagePanelDirective {
|
|
1737
|
-
constructor(template) {
|
|
1738
|
-
this.template = template;
|
|
1739
|
-
}
|
|
1740
|
-
}
|
|
1741
|
-
CurrentUserImagePanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CurrentUserImagePanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1742
|
-
CurrentUserImagePanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CurrentUserImagePanelDirective, selector: "ng-template[lpx-current-user-image-panel]", ngImport: i0 });
|
|
1743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CurrentUserImagePanelDirective, decorators: [{
|
|
1744
|
-
type: Directive,
|
|
1745
|
-
args: [{
|
|
1746
|
-
selector: 'ng-template[lpx-current-user-image-panel]',
|
|
1747
|
-
}]
|
|
1748
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1749
|
-
|
|
1750
|
-
class CurrentUserPanelDirective {
|
|
1751
|
-
constructor(template) {
|
|
1752
|
-
this.template = template;
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
CurrentUserPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CurrentUserPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1756
|
-
CurrentUserPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CurrentUserPanelDirective, selector: "ng-template[lpx-current-user-panel]", ngImport: i0 });
|
|
1757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CurrentUserPanelDirective, decorators: [{
|
|
1758
|
-
type: Directive,
|
|
1759
|
-
args: [{
|
|
1760
|
-
selector: 'ng-template[lpx-current-user-panel]',
|
|
1761
|
-
}]
|
|
1762
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1763
|
-
|
|
1764
|
-
class FooterPanelDirective {
|
|
1765
|
-
constructor(template) {
|
|
1766
|
-
this.template = template;
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
FooterPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1770
|
-
FooterPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: FooterPanelDirective, selector: "ng-template[lpx-footer-panel]", ngImport: i0 });
|
|
1771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: FooterPanelDirective, decorators: [{
|
|
1772
|
-
type: Directive,
|
|
1773
|
-
args: [{
|
|
1774
|
-
selector: 'ng-template[lpx-footer-panel]',
|
|
1775
|
-
}]
|
|
1776
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1777
|
-
|
|
1778
|
-
class LanguagePanelDirective {
|
|
1779
|
-
constructor(template) {
|
|
1780
|
-
this.template = template;
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
LanguagePanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguagePanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1784
|
-
LanguagePanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: LanguagePanelDirective, selector: "ng-template[lpx-language-panel]", ngImport: i0 });
|
|
1785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LanguagePanelDirective, decorators: [{
|
|
1786
|
-
type: Directive,
|
|
1787
|
-
args: [{
|
|
1788
|
-
selector: 'ng-template[lpx-language-panel]',
|
|
1789
|
-
}]
|
|
1790
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1791
|
-
|
|
1792
|
-
class MobileNavbarPanelDirective {
|
|
1793
|
-
constructor(template) {
|
|
1794
|
-
this.template = template;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
MobileNavbarPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MobileNavbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1798
|
-
MobileNavbarPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: MobileNavbarPanelDirective, selector: "ng-template[lpx-mobile-navbar-panel]", ngImport: i0 });
|
|
1799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MobileNavbarPanelDirective, decorators: [{
|
|
1800
|
-
type: Directive,
|
|
1801
|
-
args: [{
|
|
1802
|
-
selector: 'ng-template[lpx-mobile-navbar-panel]',
|
|
1803
|
-
}]
|
|
1804
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1805
|
-
|
|
1806
|
-
class NavbarPanelDirective {
|
|
1807
|
-
constructor(template) {
|
|
1808
|
-
this.template = template;
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
NavbarPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1812
|
-
NavbarPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: NavbarPanelDirective, selector: "ng-template[lpx-navbar-panel]", ngImport: i0 });
|
|
1813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavbarPanelDirective, decorators: [{
|
|
1814
|
-
type: Directive,
|
|
1815
|
-
args: [{
|
|
1816
|
-
selector: 'ng-template[lpx-navbar-panel]',
|
|
1817
|
-
}]
|
|
1818
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1819
|
-
|
|
1820
|
-
class NavitemPanelDirective {
|
|
1821
|
-
constructor(template) {
|
|
1822
|
-
this.template = template;
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
NavitemPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavitemPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1826
|
-
NavitemPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: NavitemPanelDirective, selector: "ng-template[lpx-navitem-panel]", ngImport: i0 });
|
|
1827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavitemPanelDirective, decorators: [{
|
|
1828
|
-
type: Directive,
|
|
1829
|
-
args: [{
|
|
1830
|
-
selector: 'ng-template[lpx-navitem-panel]',
|
|
1831
|
-
}]
|
|
1832
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1833
|
-
|
|
1834
|
-
class ToolbarPanelDirective {
|
|
1835
|
-
constructor(template) {
|
|
1836
|
-
this.template = template;
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
ToolbarPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToolbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1840
|
-
ToolbarPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ToolbarPanelDirective, selector: "ng-template[lpx-toolbar-panel]", ngImport: i0 });
|
|
1841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToolbarPanelDirective, decorators: [{
|
|
1842
|
-
type: Directive,
|
|
1843
|
-
args: [{
|
|
1844
|
-
selector: 'ng-template[lpx-toolbar-panel]',
|
|
1845
|
-
}]
|
|
1846
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1847
|
-
|
|
1848
|
-
class TopNavbarPanelDirective {
|
|
1849
|
-
constructor(template) {
|
|
1850
|
-
this.template = template;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
TopNavbarPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TopNavbarPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1854
|
-
TopNavbarPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: TopNavbarPanelDirective, selector: "ng-template[lpx-top-navbar-panel]", ngImport: i0 });
|
|
1855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TopNavbarPanelDirective, decorators: [{
|
|
1856
|
-
type: Directive,
|
|
1857
|
-
args: [{
|
|
1858
|
-
selector: 'ng-template[lpx-top-navbar-panel]',
|
|
1859
|
-
}]
|
|
1860
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1861
|
-
|
|
1862
|
-
class SettingsPanelDirective {
|
|
1863
|
-
constructor(template) {
|
|
1864
|
-
this.template = template;
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
SettingsPanelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SettingsPanelDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1868
|
-
SettingsPanelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: SettingsPanelDirective, selector: "ng-template[lpx-settings-panel]", ngImport: i0 });
|
|
1869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SettingsPanelDirective, decorators: [{
|
|
1870
|
-
type: Directive,
|
|
1871
|
-
args: [{
|
|
1872
|
-
selector: 'ng-template[lpx-settings-panel]',
|
|
1873
|
-
}]
|
|
1874
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
1875
|
-
|
|
1876
|
-
const declarationsAndExports = [
|
|
1877
|
-
BreadcrumbPanelDirective,
|
|
1878
|
-
ContentPanelDirective,
|
|
1879
|
-
CurrentUserImagePanelDirective,
|
|
1880
|
-
CurrentUserPanelDirective,
|
|
1881
|
-
FooterPanelDirective,
|
|
1882
|
-
LanguagePanelDirective,
|
|
1883
|
-
LogoPanelDirective,
|
|
1884
|
-
MobileNavbarPanelDirective,
|
|
1885
|
-
NavbarPanelDirective,
|
|
1886
|
-
NavitemPanelDirective,
|
|
1887
|
-
SettingsPanelDirective,
|
|
1888
|
-
TopNavbarPanelDirective,
|
|
1889
|
-
ToolbarPanelDirective,
|
|
1890
|
-
];
|
|
1891
|
-
class PanelsModule {
|
|
1892
|
-
}
|
|
1893
|
-
PanelsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PanelsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1894
|
-
PanelsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: PanelsModule, declarations: [BreadcrumbPanelDirective,
|
|
1895
|
-
ContentPanelDirective,
|
|
1896
|
-
CurrentUserImagePanelDirective,
|
|
1897
|
-
CurrentUserPanelDirective,
|
|
1898
|
-
FooterPanelDirective,
|
|
1899
|
-
LanguagePanelDirective,
|
|
1900
|
-
LogoPanelDirective,
|
|
1901
|
-
MobileNavbarPanelDirective,
|
|
1902
|
-
NavbarPanelDirective,
|
|
1903
|
-
NavitemPanelDirective,
|
|
1904
|
-
SettingsPanelDirective,
|
|
1905
|
-
TopNavbarPanelDirective,
|
|
1906
|
-
ToolbarPanelDirective], imports: [CommonModule], exports: [BreadcrumbPanelDirective,
|
|
1907
|
-
ContentPanelDirective,
|
|
1908
|
-
CurrentUserImagePanelDirective,
|
|
1909
|
-
CurrentUserPanelDirective,
|
|
1910
|
-
FooterPanelDirective,
|
|
1911
|
-
LanguagePanelDirective,
|
|
1912
|
-
LogoPanelDirective,
|
|
1913
|
-
MobileNavbarPanelDirective,
|
|
1914
|
-
NavbarPanelDirective,
|
|
1915
|
-
NavitemPanelDirective,
|
|
1916
|
-
SettingsPanelDirective,
|
|
1917
|
-
TopNavbarPanelDirective,
|
|
1918
|
-
ToolbarPanelDirective] });
|
|
1919
|
-
PanelsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PanelsModule, imports: [CommonModule] });
|
|
1920
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PanelsModule, decorators: [{
|
|
1921
|
-
type: NgModule,
|
|
1922
|
-
args: [{
|
|
1923
|
-
declarations: [...declarationsAndExports],
|
|
1924
|
-
imports: [CommonModule],
|
|
1925
|
-
exports: [...declarationsAndExports],
|
|
1926
|
-
}]
|
|
1927
|
-
}] });
|
|
1928
|
-
|
|
1929
|
-
/**
|
|
1930
|
-
* Generated bundle index. Do not edit.
|
|
1931
|
-
*/
|
|
1932
|
-
|
|
1933
|
-
export { AvatarComponent, BodyService, BrandLogoComponent, BreadcrumbComponent, BreadcrumbPanelDirective, BreadcrumbRouteListenerService, BreadcrumbService, CONTENT_AFTER_ROUTES, CONTENT_BEFORE_ROUTES, ClickOutsideDirective, ContentPanelDirective, CurrentUserImagePanelDirective, CurrentUserPanelDirective, DataStore, DefaultAuthService, DefaultTranslateService, FooterComponent, FooterLinksService, FooterPanelDirective, ICON_MAP, IconComponent, LEPTON_X_ICON_SET, LPX_AUTH_SERVICE_PROVIDER, LPX_AUTH_SERVICE_TOKEN, LPX_INITIAL_STYLES, LPX_LANGUAGE, LPX_LAYOUT_STYLE_FINAL, LPX_MENU_ITEMS, LPX_PERFECT_SCROLLBAR, LPX_RESPONSIVE_BREAKPOINTS_DEFAULTS, LPX_STYLE_FINAL, LPX_STYLE_PROVIDERS, LPX_TRANSLATE_SERVICE_TOKEN, LPX_TRANSLATE_TOKEN, LanguagePanelDirective, LanguageService, LanguageTranslateDefaults, LanguageTranslateKeys, LayoutService, LogoPanelDirective, LpxAvatarModule, LpxBrandLogoModule, LpxBreadcrumbModule, LpxClickOutsideModule, LpxCoreModule, LpxFooterModule, LpxIconModule, LpxLanguageModule, LpxLocalStorageService, LpxNavbarModule, LpxPerfectScrollbar, LpxPerfectScrollbarService, LpxResponsiveModule, LpxThemeTranslateService, LpxTranslateModule, LpxVisibleDirective, MobileNavbarPanelDirective, NavbarComponent, NavbarPanelDirective, NavbarRoutesComponent, NavbarRoutesDirective, NavbarService, NavitemPanelDirective, OTHERS_GROUP_KEY, PanelsModule, PerfectScrollbarDirective, RESPONSIVE_BREAKPOINTS, ResponsiveDirective, ResponsiveService, SafeHtmlPipe, SettingsPanelDirective, StyleService, SubNavbarComponent, ToObservableModule, ToObservablePipe, ToolbarPanelDirective, TopNavbarPanelDirective, TranslatePipe, UserProfileService, WINDOW, breadCrumbInit, createDirectionProvider, createGroupMap, createResponsiveProvider, createStyleFactory, createWindowProvider, exportedDeclarations, flatArrayDeepToObject, getItemsFromGroup, getStream$, isArray, isNullOrUndefined, listenDirectionChange, loadInitialStyles, sortItems, styleLoadFactory };
|
|
1934
|
-
//# sourceMappingURL=volo-ngx-lepton-x.core.mjs.map
|