@rxap/layout 16.0.0-dev.1 → 16.0.0-dev.11

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.
Files changed (111) hide show
  1. package/CHANGELOG.md +384 -0
  2. package/LICENSE +621 -21
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +5 -20
  6. package/esm2022/lib/app-url.service.mjs +64 -0
  7. package/esm2022/lib/footer/footer.component.mjs +13 -42
  8. package/esm2022/lib/footer.directive.mjs +21 -35
  9. package/esm2022/lib/header/apps-button/apps-button.component.mjs +42 -101
  10. package/esm2022/lib/header/header.component.mjs +66 -108
  11. package/esm2022/lib/header/language-selector/language-selector.component.mjs +30 -108
  12. package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +22 -26
  13. package/esm2022/lib/header/reset-button/reset-button.component.mjs +16 -21
  14. package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +21 -42
  15. package/esm2022/lib/header/sign-out/sign-out.component.mjs +19 -28
  16. package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.mjs +39 -109
  17. package/esm2022/lib/i18n-check.guard.mjs +34 -0
  18. package/esm2022/lib/i18n.service.mjs +36 -0
  19. package/esm2022/lib/language-selector.service.mjs +34 -0
  20. package/esm2022/lib/layout/layout.component.mjs +58 -72
  21. package/esm2022/lib/layout/layout.component.service.mjs +21 -22
  22. package/esm2022/lib/navigation/navigation-item/navigation-item.component.mjs +120 -239
  23. package/esm2022/lib/navigation/navigation-item.mjs +4 -4
  24. package/esm2022/lib/navigation/navigation.component.mjs +48 -96
  25. package/esm2022/lib/navigation/navigation.service.mjs +28 -27
  26. package/esm2022/lib/navigation/replace-router-paths.service.mjs +9 -10
  27. package/esm2022/lib/sidenav/sidenav-footer.directive.mjs +15 -15
  28. package/esm2022/lib/sidenav/sidenav-header.directive.mjs +15 -15
  29. package/esm2022/lib/sidenav/sidenav.component.mjs +40 -112
  30. package/esm2022/lib/sidenav/sidenav.component.service.mjs +8 -9
  31. package/esm2022/lib/sidenav/version/version.component.mjs +16 -49
  32. package/esm2022/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.mjs +19 -40
  33. package/esm2022/lib/tokens.mjs +1 -1
  34. package/esm2022/lib/types.mjs +1 -1
  35. package/esm2022/lib/window-container-sidenav/window-container-sidenav.component.mjs +18 -36
  36. package/esm2022/rxap-layout.mjs +1 -1
  37. package/fesm2022/rxap-layout.mjs +753 -1851
  38. package/fesm2022/rxap-layout.mjs.map +1 -1
  39. package/index.d.ts +4 -17
  40. package/lib/app-url.service.d.ts +26 -0
  41. package/lib/footer/footer.component.d.ts +1 -1
  42. package/lib/footer.directive.d.ts +2 -7
  43. package/lib/header/apps-button/apps-button.component.d.ts +13 -21
  44. package/lib/header/header.component.d.ts +8 -11
  45. package/lib/header/language-selector/language-selector.component.d.ts +2 -17
  46. package/lib/header/navigation-progress-bar/navigation-progress-bar.component.d.ts +1 -1
  47. package/lib/header/reset-button/reset-button.component.d.ts +1 -1
  48. package/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.d.ts +1 -1
  49. package/lib/header/sign-out/sign-out.component.d.ts +5 -5
  50. package/lib/header/user-profile-icon/user-profile-icon.component.d.ts +12 -8
  51. package/lib/i18n-check.guard.d.ts +14 -0
  52. package/lib/i18n.service.d.ts +12 -0
  53. package/lib/language-selector.service.d.ts +15 -0
  54. package/lib/layout/layout.component.d.ts +8 -4
  55. package/lib/navigation/navigation-item/navigation-item.component.d.ts +11 -18
  56. package/lib/navigation/navigation-item.d.ts +1 -1
  57. package/lib/navigation/navigation.component.d.ts +6 -6
  58. package/lib/navigation/navigation.service.d.ts +1 -1
  59. package/lib/sidenav/sidenav-footer.directive.d.ts +1 -1
  60. package/lib/sidenav/sidenav-header.directive.d.ts +1 -1
  61. package/lib/sidenav/sidenav.component.d.ts +1 -1
  62. package/lib/sidenav/version/version.component.d.ts +3 -3
  63. package/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.d.ts +3 -5
  64. package/lib/types.d.ts +3 -2
  65. package/lib/window-container-sidenav/window-container-sidenav.component.d.ts +2 -2
  66. package/package.json +90 -67
  67. package/theme.css +1 -0
  68. package/collection.json +0 -10
  69. package/esm2022/lib/footer/footer.component.module.mjs +0 -30
  70. package/esm2022/lib/header/apps-button/apps-button.component.module.mjs +0 -46
  71. package/esm2022/lib/header/header.component.module.mjs +0 -70
  72. package/esm2022/lib/header/language-selector/language-selector.component.module.mjs +0 -30
  73. package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.mjs +0 -26
  74. package/esm2022/lib/header/reset-button/reset-button.component.module.mjs +0 -26
  75. package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.mjs +0 -30
  76. package/esm2022/lib/header/sign-out/sign-out.component.module.mjs +0 -30
  77. package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.module.mjs +0 -38
  78. package/esm2022/lib/layout/layout.component.module.mjs +0 -70
  79. package/esm2022/lib/navigation/navigation.component.module.mjs +0 -71
  80. package/esm2022/lib/navigation/replace-router-paths.pipe.mjs +0 -36
  81. package/esm2022/lib/sidenav/sidenav.component.module.mjs +0 -44
  82. package/esm2022/lib/sidenav/version/version.component.module.mjs +0 -26
  83. package/esm2022/lib/sidenav-content/sidenav-content.component.mjs +0 -46
  84. package/esm2022/lib/sidenav-content/sidenav-content.component.module.mjs +0 -26
  85. package/esm2022/lib/sidenav-content/sidenav-content.component.service.mjs +0 -37
  86. package/esm2022/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.mjs +0 -30
  87. package/esm2022/lib/window-container-sidenav/window-container-sidenav.component.module.mjs +0 -30
  88. package/lib/footer/footer.component.module.d.ts +0 -10
  89. package/lib/header/apps-button/apps-button.component.module.d.ts +0 -14
  90. package/lib/header/header.component.module.d.ts +0 -20
  91. package/lib/header/language-selector/language-selector.component.module.d.ts +0 -10
  92. package/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.d.ts +0 -9
  93. package/lib/header/reset-button/reset-button.component.module.d.ts +0 -9
  94. package/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.d.ts +0 -10
  95. package/lib/header/sign-out/sign-out.component.module.d.ts +0 -10
  96. package/lib/header/user-profile-icon/user-profile-icon.component.module.d.ts +0 -12
  97. package/lib/layout/layout.component.module.d.ts +0 -20
  98. package/lib/navigation/navigation.component.module.d.ts +0 -19
  99. package/lib/navigation/replace-router-paths.pipe.d.ts +0 -16
  100. package/lib/sidenav/sidenav.component.module.d.ts +0 -15
  101. package/lib/sidenav/version/version.component.module.d.ts +0 -9
  102. package/lib/sidenav-content/sidenav-content.component.d.ts +0 -12
  103. package/lib/sidenav-content/sidenav-content.component.module.d.ts +0 -9
  104. package/lib/sidenav-content/sidenav-content.component.service.d.ts +0 -15
  105. package/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.d.ts +0 -10
  106. package/lib/window-container-sidenav/window-container-sidenav.component.module.d.ts +0 -10
  107. package/migration.json +0 -4
  108. package/src/schematics/ng-add/index.d.ts +0 -2
  109. package/src/schematics/ng-add/index.js +0 -8
  110. package/src/schematics/ng-add/index.js.map +0 -1
  111. package/src/schematics/ng-add/schema.json +0 -7
@@ -1,57 +1,54 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Component, ChangeDetectionStrategy, NgModule, Inject, Input, Optional, Injectable, TemplateRef, Directive, INJECTOR, ElementRef, Renderer2, ViewContainerRef, ViewEncapsulation, ViewChild, HostBinding, HostListener, ChangeDetectorRef, ContentChild, EventEmitter, Output, Pipe } from '@angular/core';
2
+ import { InjectionToken, Component, ChangeDetectionStrategy, LOCALE_ID, Injectable, Inject, signal, Optional, isDevMode, Input, ElementRef, Renderer2, ViewContainerRef, ViewEncapsulation, forwardRef, ViewChild, HostBinding, INJECTOR, ChangeDetectorRef, TemplateRef, Directive, ContentChild, EventEmitter, Output } from '@angular/core';
3
3
  import * as i1 from '@rxap/services';
4
- import { HeaderService, ResetService, FooterService, WindowContainerSidenavService, VersionService } from '@rxap/services';
4
+ import { HeaderService, ResetService, VersionService, WindowContainerSidenavService, FooterService } from '@rxap/services';
5
+ import * as i3 from '@angular/cdk/portal';
6
+ import { PortalModule, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
5
7
  import * as i2 from '@angular/material/toolbar';
6
8
  import { MatToolbarModule } from '@angular/material/toolbar';
7
- import * as i2$1 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import * as i4 from '@angular/cdk/portal';
10
- import { PortalModule, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
11
- import { Subscription, BehaviorSubject, ReplaySubject, of, from, combineLatest } from 'rxjs';
12
- import { map, filter, tap, switchMap, catchError, startWith, delay, skip, distinctUntilChanged } from 'rxjs/operators';
9
+ import { NgIf, NgFor, AsyncPipe, KeyValuePipe, NgOptimizedImage, NgClass, NgTemplateOutlet } from '@angular/common';
10
+ import { filter as filter$1, switchMap as switchMap$1, Subscription, BehaviorSubject, debounceTime, ReplaySubject, of, from, combineLatest } from 'rxjs';
11
+ import { filter, map, switchMap, tap, startWith, catchError } from 'rxjs/operators';
13
12
  import * as i2$4 from '@angular/material/sidenav';
14
13
  import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
15
- import * as i3 from '@rxap/authentication';
16
- import { UserService, SignOutDirectiveModule } from '@rxap/authentication';
17
- import * as i3$1 from '@angular/router';
18
- import { Router, NavigationStart, NavigationEnd, NavigationCancel, RouterModule, RouterLinkActive } from '@angular/router';
19
- import * as i1$1 from '@angular/material/legacy-button';
20
- import { MatLegacyButtonModule } from '@angular/material/legacy-button';
21
- import * as i2$2 from '@angular/material/icon';
22
- import { MatIconModule } from '@angular/material/icon';
23
- import { isDefined } from '@rxap/utilities/rxjs';
24
- import * as i1$2 from '@angular/material/legacy-menu';
25
- import { MatLegacyMenuModule } from '@angular/material/legacy-menu';
26
- import * as i1$3 from '@angular/flex-layout/flex';
27
- import * as i5 from '@rxap/directives';
28
- import { AvatarBackgroundImageDirectiveModule, StopPropagationDirectiveModule } from '@rxap/directives';
29
- import * as i1$4 from '@angular/material/legacy-progress-bar';
30
- import { MatLegacyProgressBarModule } from '@angular/material/legacy-progress-bar';
31
- import { __decorate, __metadata } from 'tslib';
32
- import { Required, DebounceCall, coerceBoolean } from '@rxap/utilities';
33
- import * as i5$1 from '@angular/flex-layout/extended';
34
- import * as i1$5 from '@rxap/config';
35
- import { ConfigService } from '@rxap/config';
36
- import * as i3$2 from '@angular/cdk/overlay';
37
- import { OverlayModule, Overlay } from '@angular/cdk/overlay';
38
- import * as i2$3 from '@angular/material/legacy-form-field';
39
- import * as i3$3 from '@angular/material/legacy-select';
40
- import { MatLegacySelectModule } from '@angular/material/legacy-select';
41
- import * as i4$1 from '@angular/material/legacy-core';
42
- import * as i6 from '@angular/forms';
14
+ import * as i4 from '@angular/material/core';
15
+ import { MatOptionModule, MatRippleModule } from '@angular/material/core';
16
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
17
+ import { DataSourceCollectionDirective } from '@rxap/data-source/directive';
18
+ import * as i5 from '@angular/forms';
43
19
  import { FormsModule } from '@angular/forms';
20
+ import * as i3$1 from '@angular/material/select';
21
+ import { MatSelectModule } from '@angular/material/select';
22
+ import { StopPropagationDirective } from '@rxap/directives';
23
+ import * as i2$1 from '@angular/material/form-field';
24
+ import { MatFormFieldModule } from '@angular/material/form-field';
25
+ import * as i1$2 from '@rxap/config';
26
+ import { ConfigService } from '@rxap/config';
27
+ import * as i1$1 from '@rxap/authentication';
28
+ import * as i2$3 from '@angular/material/icon';
29
+ import { MatIconModule } from '@angular/material/icon';
30
+ import * as i3$2 from '@angular/material/menu';
31
+ import { MatMenuModule } from '@angular/material/menu';
32
+ import * as i3$3 from '@angular/material/button';
33
+ import { MatButtonModule } from '@angular/material/button';
34
+ import * as i2$2 from '@angular/router';
35
+ import { NavigationStart, NavigationEnd, NavigationCancel, Router, RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';
36
+ import * as i1$3 from '@angular/material/progress-bar';
37
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
38
+ import * as i1$4 from '@angular/flex-layout/flex';
39
+ import { FlexModule } from '@angular/flex-layout/flex';
40
+ import { JoinPath, coerceBoolean } from '@rxap/utilities';
41
+ import { ClickOnLink } from '@rxap/browser-utilities';
42
+ import { DetermineReleaseName, RXAP_ENVIRONMENT } from '@rxap/environment';
44
43
  import { FlexLayoutModule } from '@angular/flex-layout';
45
- import { MatGridListModule } from '@angular/material/grid-list';
46
44
  import * as i3$4 from '@angular/material/divider';
47
45
  import { MatDividerModule } from '@angular/material/divider';
48
46
  import { trigger, transition, style, animate } from '@angular/animations';
49
- import * as i5$2 from '@rxap/material-directives/icon';
50
- import { IconDirectiveModule } from '@rxap/material-directives/icon';
51
- import * as i6$1 from '@angular/material/core';
52
- import { MatRippleModule } from '@angular/material/core';
53
- import * as i7 from '@angular/material/legacy-tooltip';
54
- import { MatLegacyTooltipModule } from '@angular/material/legacy-tooltip';
47
+ import * as i6 from '@angular/cdk/overlay';
48
+ import { Overlay } from '@angular/cdk/overlay';
49
+ import { IconDirective } from '@rxap/material-directives/icon';
50
+ import * as i2$5 from '@angular/flex-layout/extended';
51
+ import { ExtendedModule } from '@angular/flex-layout/extended';
55
52
 
56
53
  const RXAP_NAVIGATION_CONFIG = new InjectionToken('rxap/layout/navigation-config');
57
54
  const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken('rxap/layout/navigation-config-inserts');
@@ -60,198 +57,99 @@ const RXAP_HEADER_COMPONENT = new InjectionToken('rxap/layout/header-component')
60
57
  const RXAP_LOGO_CONFIG = new InjectionToken('rxap/layout/logo-config');
61
58
  const RXAP_LAYOUT_APPS_GRID = new InjectionToken('rxap/layout/apps-grid');
62
59
 
63
- function FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_ng_template_1_Template(rf, ctx) { }
64
- function FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_Template(rf, ctx) { if (rf & 1) {
65
- i0.ɵɵelementStart(0, "mat-toolbar-row");
66
- i0.ɵɵtemplate(1, FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_ng_template_1_Template, 0, 0, "ng-template", 4);
67
- i0.ɵɵelementEnd();
68
- } if (rf & 2) {
69
- const portal_r4 = ctx.$implicit;
70
- i0.ɵɵadvance(1);
71
- i0.ɵɵproperty("cdkPortalOutlet", portal_r4);
72
- } }
73
- function FooterComponent_ng_template_0_mat_toolbar_0_Template(rf, ctx) { if (rf & 1) {
74
- i0.ɵɵelementStart(0, "mat-toolbar", 2);
75
- i0.ɵɵtemplate(1, FooterComponent_ng_template_0_mat_toolbar_0_mat_toolbar_row_1_Template, 2, 1, "mat-toolbar-row", 3);
76
- i0.ɵɵelementEnd();
77
- } if (rf & 2) {
78
- const portals_r1 = i0.ɵɵnextContext().$implicit;
79
- i0.ɵɵadvance(1);
80
- i0.ɵɵproperty("ngForOf", portals_r1);
81
- } }
82
- function FooterComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
83
- i0.ɵɵtemplate(0, FooterComponent_ng_template_0_mat_toolbar_0_Template, 2, 1, "mat-toolbar", 1);
84
- } if (rf & 2) {
85
- const portals_r1 = ctx.$implicit;
86
- i0.ɵɵproperty("ngIf", portals_r1.length);
87
- } }
88
60
  class FooterComponent {
89
61
  constructor(footerService) {
90
62
  this.footerService = footerService;
91
63
  }
92
- static { this.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(i0.ɵɵdirectiveInject(i1.FooterService)); }; }
93
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["rxap-footer"]], decls: 2, vars: 3, consts: [[3, "ngIf"], ["class", "footer mat-elevation-z1", 4, "ngIf"], [1, "footer", "mat-elevation-z1"], [4, "ngFor", "ngForOf"], [3, "cdkPortalOutlet"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
94
- i0.ɵɵtemplate(0, FooterComponent_ng_template_0_Template, 1, 1, "ng-template", 0);
95
- i0.ɵɵpipe(1, "async");
96
- } if (rf & 2) {
97
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.footerService.portals$));
98
- } }, dependencies: [i2.MatToolbar, i2.MatToolbarRow, i2$1.NgForOf, i2$1.NgIf, i4.CdkPortalOutlet, i2$1.AsyncPipe], changeDetection: 0 }); }
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FooterComponent, deps: [{ token: i1.FooterService }], target: i0.ɵɵFactoryTarget.Component }); }
65
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: FooterComponent, isStandalone: true, selector: "rxap-footer", ngImport: i0, template: "<ng-template [ngIf]=\"footerService.portals$ | async\" let-portals>\n <mat-toolbar *ngIf=\"portals.length\" class=\"footer mat-elevation-z1\">\n <mat-toolbar-row *ngFor=\"let portal of portals\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n </mat-toolbar>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i2.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
99
66
  }
100
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FooterComponent, [{
101
- type: Component,
102
- args: [{ selector: 'rxap-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [ngIf]=\"footerService.portals$ | async\" let-portals>\n <mat-toolbar *ngIf=\"portals.length\" class=\"footer mat-elevation-z1\">\n <mat-toolbar-row *ngFor=\"let portal of portals\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n </mat-toolbar>\n</ng-template>\n" }]
103
- }], function () { return [{ type: i1.FooterService }]; }, null); })();
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FooterComponent, decorators: [{
68
+ type: Component,
69
+ args: [{ selector: 'rxap-footer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatToolbarModule, NgFor, PortalModule, AsyncPipe], template: "<ng-template [ngIf]=\"footerService.portals$ | async\" let-portals>\n <mat-toolbar *ngIf=\"portals.length\" class=\"footer mat-elevation-z1\">\n <mat-toolbar-row *ngFor=\"let portal of portals\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n </mat-toolbar>\n</ng-template>\n" }]
70
+ }], ctorParameters: function () { return [{ type: i1.FooterService }]; } });
104
71
 
105
- class FooterModule {
106
- static { this.ɵfac = function FooterModule_Factory(t) { return new (t || FooterModule)(); }; }
107
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FooterModule }); }
108
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatToolbarModule,
109
- CommonModule,
110
- PortalModule] }); }
72
+ class I18nService {
73
+ constructor(localId, userProfileService) {
74
+ this.localId = localId;
75
+ this.userProfileService = userProfileService;
76
+ this.currentLanguage = this.localId.replace(/-[A-Z]+$/, '');
77
+ }
78
+ async setLanguage(language) {
79
+ await this.userProfileService.setLanguage(language);
80
+ this.redirect(language);
81
+ }
82
+ redirect(next, current = this.currentLanguage) {
83
+ if (current === next) {
84
+ console.warn('[I18nService] redirect not required - language unchanged');
85
+ return;
86
+ }
87
+ const redirectUrl = location.origin +
88
+ location.pathname.replace(new RegExp(`^/${current}`), `/${next}`) +
89
+ location.search;
90
+ console.log('[I18nService] redirect to: ' + redirectUrl);
91
+ location.replace(redirectUrl);
92
+ }
93
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nService, deps: [{ token: LOCALE_ID }, { token: i1$1.RxapUserProfileService }], target: i0.ɵɵFactoryTarget.Injectable }); }
94
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nService, providedIn: 'root' }); }
111
95
  }
112
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FooterModule, [{
113
- type: NgModule,
114
- args: [{
115
- declarations: [FooterComponent],
116
- imports: [
117
- MatToolbarModule,
118
- CommonModule,
119
- PortalModule
120
- ],
121
- exports: [FooterComponent]
122
- }]
123
- }], null, null); })();
124
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FooterModule, { declarations: [FooterComponent], imports: [MatToolbarModule,
125
- CommonModule,
126
- PortalModule], exports: [FooterComponent] }); })();
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nService, decorators: [{
97
+ type: Injectable,
98
+ args: [{ providedIn: 'root' }]
99
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
100
+ type: Inject,
101
+ args: [LOCALE_ID]
102
+ }] }, { type: i1$1.RxapUserProfileService }]; } });
127
103
 
128
- class SignOutComponent {
129
- constructor(router) {
130
- this.router = router;
104
+ class LanguageSelectorService {
105
+ constructor(config, localId, i18nService) {
106
+ this.config = config;
107
+ this.localId = localId;
108
+ this.i18nService = i18nService;
109
+ this.languages = this.config.get('i18n.languages') ?? {};
110
+ this.defaultLanguage =
111
+ this.config.get('i18n.defaultLanguage') ??
112
+ Object.keys(this.languages)[0] ??
113
+ 'en';
114
+ this.selectedLanguage = this.i18nService.currentLanguage;
131
115
  }
132
- redirectToRoot() {
133
- this.router.navigate(['/']);
134
- }
135
- static { this.ɵfac = function SignOutComponent_Factory(t) { return new (t || SignOutComponent)(i0.ɵɵdirectiveInject(Router)); }; }
136
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutComponent, selectors: [["rxap-sign-out"]], hostAttrs: [1, "rxap-sign-out"], decls: 3, vars: 0, consts: [["rxapSignOut", "", "mat-icon-button", "", 3, "successful"]], template: function SignOutComponent_Template(rf, ctx) { if (rf & 1) {
137
- i0.ɵɵelementStart(0, "button", 0);
138
- i0.ɵɵlistener("successful", function SignOutComponent_Template_button_successful_0_listener() { return ctx.redirectToRoot(); });
139
- i0.ɵɵelementStart(1, "mat-icon");
140
- i0.ɵɵtext(2, "login");
141
- i0.ɵɵelementEnd()();
142
- } }, dependencies: [i1$1.MatLegacyButton, i2$2.MatIcon, i3.SignOutDirective], changeDetection: 0 }); }
116
+ async setLanguage(language) {
117
+ if (language !== this.i18nService.currentLanguage) {
118
+ await this.i18nService.setLanguage(language);
119
+ }
120
+ }
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, deps: [{ token: i1$2.ConfigService }, { token: LOCALE_ID }, { token: I18nService }], target: i0.ɵɵFactoryTarget.Injectable }); }
122
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, providedIn: 'root' }); }
143
123
  }
144
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutComponent, [{
145
- type: Component,
146
- args: [{ selector: 'rxap-sign-out', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-sign-out' }, template: "<button\n rxapSignOut\n (successful)=\"redirectToRoot()\"\n mat-icon-button\n>\n <mat-icon>login</mat-icon>\n</button>\n" }]
147
- }], function () { return [{ type: i3$1.Router, decorators: [{
148
- type: Inject,
149
- args: [Router]
150
- }] }]; }, null); })();
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, decorators: [{
125
+ type: Injectable,
126
+ args: [{ providedIn: 'root' }]
127
+ }], ctorParameters: function () { return [{ type: i1$2.ConfigService }, { type: undefined, decorators: [{
128
+ type: Inject,
129
+ args: [LOCALE_ID]
130
+ }] }, { type: I18nService }]; } });
151
131
 
152
- function UserProfileIconComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
153
- i0.ɵɵelementStart(0, "button", 5)(1, "mat-icon");
154
- i0.ɵɵtext(2, "person");
155
- i0.ɵɵelementEnd();
156
- i0.ɵɵelementStart(3, "span");
157
- i0.ɵɵtext(4);
158
- i0.ɵɵelementEnd()();
159
- } if (rf & 2) {
160
- const user_r2 = i0.ɵɵnextContext().$implicit;
161
- i0.ɵɵadvance(4);
162
- i0.ɵɵtextInterpolate2("", user_r2.firstname, " ", user_r2.lastname, "");
163
- } }
164
- function UserProfileIconComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
165
- i0.ɵɵelementStart(0, "button", 5)(1, "mat-icon");
166
- i0.ɵɵtext(2, "person");
167
- i0.ɵɵelementEnd();
168
- i0.ɵɵelementStart(3, "span");
169
- i0.ɵɵtext(4);
170
- i0.ɵɵelementEnd()();
171
- } if (rf & 2) {
172
- const user_r2 = i0.ɵɵnextContext().$implicit;
173
- i0.ɵɵadvance(4);
174
- i0.ɵɵtextInterpolate(user_r2.name);
175
- } }
176
- function UserProfileIconComponent_ng_template_5_button_2_Template(rf, ctx) { if (rf & 1) {
177
- i0.ɵɵelementStart(0, "button", 5)(1, "mat-icon");
178
- i0.ɵɵtext(2, "account_circle");
179
- i0.ɵɵelementEnd();
180
- i0.ɵɵelementStart(3, "span");
181
- i0.ɵɵtext(4);
182
- i0.ɵɵelementEnd()();
183
- } if (rf & 2) {
184
- const user_r2 = i0.ɵɵnextContext().$implicit;
185
- i0.ɵɵadvance(4);
186
- i0.ɵɵtextInterpolate(user_r2.username);
187
- } }
188
- function UserProfileIconComponent_ng_template_5_button_3_Template(rf, ctx) { if (rf & 1) {
189
- i0.ɵɵelementStart(0, "button", 5)(1, "mat-icon");
190
- i0.ɵɵtext(2, "email");
191
- i0.ɵɵelementEnd();
192
- i0.ɵɵelementStart(3, "span");
193
- i0.ɵɵtext(4);
194
- i0.ɵɵelementEnd()();
195
- } if (rf & 2) {
196
- const user_r2 = i0.ɵɵnextContext().$implicit;
197
- i0.ɵɵadvance(4);
198
- i0.ɵɵtextInterpolate(user_r2.email);
199
- } }
200
- function UserProfileIconComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
201
- i0.ɵɵtemplate(0, UserProfileIconComponent_ng_template_5_button_0_Template, 5, 2, "button", 4);
202
- i0.ɵɵtemplate(1, UserProfileIconComponent_ng_template_5_button_1_Template, 5, 1, "button", 4);
203
- i0.ɵɵtemplate(2, UserProfileIconComponent_ng_template_5_button_2_Template, 5, 1, "button", 4);
204
- i0.ɵɵtemplate(3, UserProfileIconComponent_ng_template_5_button_3_Template, 5, 1, "button", 4);
205
- } if (rf & 2) {
206
- const user_r2 = ctx.$implicit;
207
- i0.ɵɵproperty("ngIf", user_r2.firstname && user_r2.lastname);
208
- i0.ɵɵadvance(1);
209
- i0.ɵɵproperty("ngIf", user_r2.name);
210
- i0.ɵɵadvance(1);
211
- i0.ɵɵproperty("ngIf", user_r2.username);
212
- i0.ɵɵadvance(1);
213
- i0.ɵɵproperty("ngIf", user_r2.email);
214
- } }
215
- class UserProfileIconComponent {
216
- constructor(userService) {
217
- this.userService = userService;
218
- this.userProfileUrl$ = this.userService.user$.pipe(isDefined(), map((user) => user.photoURL ?? user.avatarUrl));
219
- this.userName$ = this.userService.user$.pipe(isDefined(), map((user) => user.name ??
220
- (user.firstname || user.lastname
221
- ? [user.firstname, user.lastname].join(' ').trim()
222
- : null) ??
223
- user.username));
224
- }
225
- static { this.ɵfac = function UserProfileIconComponent_Factory(t) { return new (t || UserProfileIconComponent)(i0.ɵɵdirectiveInject(UserService)); }; }
226
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserProfileIconComponent, selectors: [["rxap-user-profile-icon"]], hostAttrs: [1, "rxap-user-profile-icon"], decls: 7, vars: 11, consts: [["fxLayout", "row", "fxLayoutAlign", "center center", 1, "profile-icon", 3, "matMenuTriggerFor", "rxapAvatarBackgroundImage", "name"], [3, "yPosition"], ["menu", "matMenu"], [3, "ngIf"], ["mat-menu-item", "", 4, "ngIf"], ["mat-menu-item", ""]], template: function UserProfileIconComponent_Template(rf, ctx) { if (rf & 1) {
227
- i0.ɵɵelement(0, "button", 0);
228
- i0.ɵɵpipe(1, "async");
229
- i0.ɵɵpipe(2, "async");
230
- i0.ɵɵelementStart(3, "mat-menu", 1, 2);
231
- i0.ɵɵtemplate(5, UserProfileIconComponent_ng_template_5_Template, 4, 4, "ng-template", 3);
232
- i0.ɵɵpipe(6, "async");
233
- i0.ɵɵelementEnd();
234
- } if (rf & 2) {
235
- const _r0 = i0.ɵɵreference(4);
236
- let tmp_2_0;
237
- i0.ɵɵproperty("matMenuTriggerFor", _r0)("rxapAvatarBackgroundImage", i0.ɵɵpipeBind1(1, 5, ctx.userProfileUrl$))("name", (tmp_2_0 = i0.ɵɵpipeBind1(2, 7, ctx.userName$)) !== null && tmp_2_0 !== undefined ? tmp_2_0 : "");
238
- i0.ɵɵadvance(3);
239
- i0.ɵɵproperty("yPosition", "below");
240
- i0.ɵɵadvance(2);
241
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(6, 9, ctx.userService.user$));
242
- } }, dependencies: [i1$2.MatLegacyMenu, i1$2.MatLegacyMenuItem, i1$2.MatLegacyMenuTrigger, i2$2.MatIcon, i2$1.NgIf, i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutAlignDirective, i5.AvatarBackgroundImageDirective, i2$1.AsyncPipe], styles: [".profile-icon[_ngcontent-%COMP%]{border-radius:100%;border:none;height:32px;width:32px;overflow:hidden;background-position:center center;background-repeat:no-repeat;background-size:cover}.profile-icon[_ngcontent-%COMP%]:hover{cursor:pointer}.profile-icon[_ngcontent-%COMP%]:focus{outline:none}"], changeDetection: 0 }); }
132
+ class LanguageSelectorComponent {
133
+ constructor(language) {
134
+ this.language = language;
135
+ }
136
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorComponent, deps: [{ token: LanguageSelectorService }], target: i0.ɵɵFactoryTarget.Component }); }
137
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LanguageSelectorComponent, isStandalone: true, selector: "rxap-language-selector", ngImport: i0, template: "<ng-template [ngIf]=\"(language.languages | keyvalue).length\">\n <div>\n <mat-form-field appearance=\"outline\" class=\"language-selector\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"language.setLanguage($event)\" [ngModel]=\"language.selectedLanguage\">\n <mat-option *ngFor=\"let item of language.languages | keyvalue\" [value]=\"item.key\">{{item.value}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n</ng-template>\n", styles: [".language-selector{width:calc(100% - 32px);margin:0 16px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatOptionModule }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
243
138
  }
244
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserProfileIconComponent, [{
245
- type: Component,
246
- args: [{ selector: 'rxap-user-profile-icon', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-user-profile-icon' }, template: "<button [matMenuTriggerFor]=\"menu\"\n [rxapAvatarBackgroundImage]=\"userProfileUrl$ | async\"\n [name]=\"(userName$ | async) ?? ''\"\n class=\"profile-icon\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\">\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\">\n <ng-template [ngIf]=\"userService.user$ | async\" let-user>\n <button *ngIf=\"user.firstname && user.lastname\" mat-menu-item>\n <mat-icon>person</mat-icon>\n <span>{{user.firstname}} {{user.lastname}}</span>\n </button>\n <button *ngIf=\"user.name\" mat-menu-item>\n <mat-icon>person</mat-icon>\n <span>{{user.name}}</span>\n </button>\n <button *ngIf=\"user.username\" mat-menu-item>\n <mat-icon>account_circle</mat-icon>\n <span>{{user.username}}</span>\n </button>\n <button *ngIf=\"user.email\" mat-menu-item>\n <mat-icon>email</mat-icon>\n <span>{{user.email}}</span>\n </button>\n </ng-template>\n</mat-menu>\n", styles: [".profile-icon{border-radius:100%;border:none;height:32px;width:32px;overflow:hidden;background-position:center center;background-repeat:no-repeat;background-size:cover}.profile-icon:hover{cursor:pointer}.profile-icon:focus{outline:none}\n"] }]
247
- }], function () { return [{ type: i3.UserService, decorators: [{
248
- type: Inject,
249
- args: [UserService]
250
- }] }]; }, null); })();
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorComponent, decorators: [{
140
+ type: Component,
141
+ args: [{ selector: 'rxap-language-selector', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
142
+ NgIf,
143
+ MatFormFieldModule,
144
+ StopPropagationDirective,
145
+ MatSelectModule,
146
+ FormsModule,
147
+ NgFor,
148
+ MatOptionModule,
149
+ KeyValuePipe,
150
+ ], template: "<ng-template [ngIf]=\"(language.languages | keyvalue).length\">\n <div>\n <mat-form-field appearance=\"outline\" class=\"language-selector\" rxapStopPropagation>\n <mat-label i18n>Select Language</mat-label>\n <mat-select (ngModelChange)=\"language.setLanguage($event)\" [ngModel]=\"language.selectedLanguage\">\n <mat-option *ngFor=\"let item of language.languages | keyvalue\" [value]=\"item.key\">{{item.value}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n</ng-template>\n", styles: [".language-selector{width:calc(100% - 32px);margin:0 16px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"] }]
151
+ }], ctorParameters: function () { return [{ type: LanguageSelectorService }]; } });
251
152
 
252
- function NavigationProgressBarComponent_mat_progress_bar_0_Template(rf, ctx) { if (rf & 1) {
253
- i0.ɵɵelement(0, "mat-progress-bar", 1);
254
- } }
255
153
  class NavigationProgressBarComponent {
256
154
  constructor(router) {
257
155
  this.router = router;
@@ -259,296 +157,148 @@ class NavigationProgressBarComponent {
259
157
  event instanceof NavigationEnd ||
260
158
  event instanceof NavigationCancel), map(event => event instanceof NavigationStart));
261
159
  }
262
- static { this.ɵfac = function NavigationProgressBarComponent_Factory(t) { return new (t || NavigationProgressBarComponent)(i0.ɵɵdirectiveInject(Router)); }; }
263
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationProgressBarComponent, selectors: [["rxap-navigation-progress-bar"]], hostAttrs: [1, "rxap-navigation-progress-bar"], decls: 2, vars: 3, consts: [["mode", "indeterminate", "color", "accent", 4, "ngIf"], ["mode", "indeterminate", "color", "accent"]], template: function NavigationProgressBarComponent_Template(rf, ctx) { if (rf & 1) {
264
- i0.ɵɵtemplate(0, NavigationProgressBarComponent_mat_progress_bar_0_Template, 1, 0, "mat-progress-bar", 0);
265
- i0.ɵɵpipe(1, "async");
266
- } if (rf & 2) {
267
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.navigating$));
268
- } }, dependencies: [i1$4.MatLegacyProgressBar, i2$1.NgIf, i2$1.AsyncPipe], changeDetection: 0 }); }
160
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationProgressBarComponent, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Component }); }
161
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigationProgressBarComponent, isStandalone: true, selector: "rxap-navigation-progress-bar", ngImport: i0, template: "<mat-progress-bar\n *ngIf=\"navigating$ | async\"\n color=\"accent\"\n mode=\"indeterminate\"\n></mat-progress-bar>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
269
162
  }
270
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationProgressBarComponent, [{
271
- type: Component,
272
- args: [{ selector: 'rxap-navigation-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-navigation-progress-bar' }, template: "<mat-progress-bar\n *ngIf=\"navigating$ | async\"\n mode=\"indeterminate\"\n color=\"accent\"\n></mat-progress-bar>\n" }]
273
- }], function () { return [{ type: i3$1.Router, decorators: [{
274
- type: Inject,
275
- args: [Router]
276
- }] }]; }, null); })();
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationProgressBarComponent, decorators: [{
164
+ type: Component,
165
+ args: [{ selector: 'rxap-navigation-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
166
+ NgIf,
167
+ MatProgressBarModule,
168
+ AsyncPipe,
169
+ ], template: "<mat-progress-bar\n *ngIf=\"navigating$ | async\"\n color=\"accent\"\n mode=\"indeterminate\"\n></mat-progress-bar>\n" }]
170
+ }], ctorParameters: function () { return [{ type: i2$2.Router, decorators: [{
171
+ type: Inject,
172
+ args: [Router]
173
+ }] }]; } });
277
174
 
278
- function SidenavToggleButtonComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
279
- i0.ɵɵelementStart(0, "mat-icon");
280
- i0.ɵɵtext(1, "menu");
281
- i0.ɵɵelementEnd();
282
- } }
283
- function SidenavToggleButtonComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
284
- i0.ɵɵelementStart(0, "mat-icon");
285
- i0.ɵɵtext(1, "menu_open");
286
- i0.ɵɵelementEnd();
287
- } }
288
- class SidenavToggleButtonComponent {
289
- static { this.ɵfac = function SidenavToggleButtonComponent_Factory(t) { return new (t || SidenavToggleButtonComponent)(); }; }
290
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavToggleButtonComponent, selectors: [["rxap-sidenav-toggle-button"]], hostAttrs: [1, "rxap-sidenav-toggle-button"], inputs: { sidenav: "sidenav" }, decls: 3, vars: 2, consts: [["mat-icon-button", "", 3, "click"], [4, "ngIf"]], template: function SidenavToggleButtonComponent_Template(rf, ctx) { if (rf & 1) {
291
- i0.ɵɵelementStart(0, "button", 0);
292
- i0.ɵɵlistener("click", function SidenavToggleButtonComponent_Template_button_click_0_listener() { return ctx.sidenav.toggle(); });
293
- i0.ɵɵtemplate(1, SidenavToggleButtonComponent_mat_icon_1_Template, 2, 0, "mat-icon", 1);
294
- i0.ɵɵtemplate(2, SidenavToggleButtonComponent_mat_icon_2_Template, 2, 0, "mat-icon", 1);
295
- i0.ɵɵelementEnd();
296
- } if (rf & 2) {
297
- i0.ɵɵadvance(1);
298
- i0.ɵɵproperty("ngIf", !ctx.sidenav.opened);
299
- i0.ɵɵadvance(1);
300
- i0.ɵɵproperty("ngIf", ctx.sidenav.opened);
301
- } }, dependencies: [i2$2.MatIcon, i2$1.NgIf, i1$1.MatLegacyButton], changeDetection: 0 }); }
302
- }
303
- __decorate([
304
- Required,
305
- __metadata("design:type", MatSidenav)
306
- ], SidenavToggleButtonComponent.prototype, "sidenav", void 0);
307
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavToggleButtonComponent, [{
308
- type: Component,
309
- args: [{ selector: 'rxap-sidenav-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-sidenav-toggle-button' }, template: "<button (click)=\"sidenav.toggle()\" mat-icon-button>\n <mat-icon *ngIf=\"!sidenav.opened\">menu</mat-icon>\n <mat-icon *ngIf=\"sidenav.opened\">menu_open</mat-icon>\n</button>\n" }]
310
- }], null, { sidenav: [{
311
- type: Input
312
- }] }); })();
313
-
314
- function AppsButtonComponent_ng_template_0_ng_template_4_li_2_a_1_Template(rf, ctx) { if (rf & 1) {
315
- i0.ɵɵelementStart(0, "a", 9)(1, "span", 10);
316
- i0.ɵɵelement(2, "img", 11);
317
- i0.ɵɵelementStart(3, "span");
318
- i0.ɵɵtext(4);
319
- i0.ɵɵelementEnd()()();
320
- } if (rf & 2) {
321
- const item_r4 = i0.ɵɵnextContext().$implicit;
322
- i0.ɵɵproperty("href", item_r4.href, i0.ɵɵsanitizeUrl);
323
- i0.ɵɵadvance(2);
324
- i0.ɵɵproperty("src", item_r4.image, i0.ɵɵsanitizeUrl);
325
- i0.ɵɵadvance(2);
326
- i0.ɵɵtextInterpolate(item_r4.label);
327
- } }
328
- const _c0$5 = function (a0) { return { empty: a0 }; };
329
- function AppsButtonComponent_ng_template_0_ng_template_4_li_2_Template(rf, ctx) { if (rf & 1) {
330
- i0.ɵɵelementStart(0, "li", 7);
331
- i0.ɵɵtemplate(1, AppsButtonComponent_ng_template_0_ng_template_4_li_2_a_1_Template, 5, 3, "a", 8);
332
- i0.ɵɵelementEnd();
333
- } if (rf & 2) {
334
- const item_r4 = ctx.$implicit;
335
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$5, item_r4.empty));
336
- i0.ɵɵadvance(1);
337
- i0.ɵɵproperty("ngIf", !item_r4.empty);
338
- } }
339
- const _c1$4 = function (a0) { return { columns: a0 }; };
340
- function AppsButtonComponent_ng_template_0_ng_template_4_Template(rf, ctx) { if (rf & 1) {
341
- i0.ɵɵelementStart(0, "div", 4)(1, "ul", 5);
342
- i0.ɵɵtemplate(2, AppsButtonComponent_ng_template_0_ng_template_4_li_2_Template, 2, 4, "li", 6);
343
- i0.ɵɵelementEnd()();
344
- } if (rf & 2) {
345
- const ctx_r2 = i0.ɵɵnextContext(2);
346
- i0.ɵɵadvance(1);
347
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c1$4, ctx_r2.columns));
348
- i0.ɵɵadvance(1);
349
- i0.ɵɵproperty("ngForOf", ctx_r2.gridWithPadding);
350
- } }
351
- function AppsButtonComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
352
- const _r8 = i0.ɵɵgetCurrentView();
353
- i0.ɵɵelementStart(0, "button", 1, 2);
354
- i0.ɵɵlistener("click", function AppsButtonComponent_ng_template_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.isOpen = !ctx_r7.isOpen); });
355
- i0.ɵɵelementStart(2, "mat-icon");
356
- i0.ɵɵtext(3, "apps");
357
- i0.ɵɵelementEnd()();
358
- i0.ɵɵtemplate(4, AppsButtonComponent_ng_template_0_ng_template_4_Template, 3, 4, "ng-template", 3);
359
- i0.ɵɵlistener("overlayOutsideClick", function AppsButtonComponent_ng_template_0_Template_ng_template_overlayOutsideClick_4_listener() { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.isOpen = false); });
360
- } if (rf & 2) {
361
- const _r1 = i0.ɵɵreference(1);
362
- const ctx_r0 = i0.ɵɵnextContext();
363
- i0.ɵɵadvance(4);
364
- i0.ɵɵproperty("cdkConnectedOverlayOpen", ctx_r0.isOpen)("cdkConnectedOverlayOrigin", _r1);
365
- } }
366
- class AppsButtonComponent {
367
- get gridWithPadding() {
368
- const gridWithPadding = this.grid.slice();
369
- while (gridWithPadding.length % this.columns !== 0) {
370
- gridWithPadding.push({ empty: true });
371
- }
372
- return gridWithPadding;
175
+ class UserProfileIconComponent {
176
+ constructor(userProfileService, authenticationService) {
177
+ this.userProfileService = userProfileService;
178
+ this.authenticationService = authenticationService;
179
+ this.username = signal(null);
373
180
  }
374
- get columns() {
375
- if (this.grid.length < 4) {
376
- return 1;
377
- }
378
- if (this.grid.length < 6) {
379
- return 2;
380
- }
381
- return 3;
181
+ ngOnInit() {
182
+ this._subscription = this.authenticationService.isAuthenticated$.pipe(filter$1(Boolean), switchMap(() => this.userProfileService.getProfile()), filter$1(Boolean), tap((user) => this.username.set(user.username ?? null))).subscribe();
382
183
  }
383
- constructor(grid, config) {
384
- this.config = config;
385
- this.isOpen = false;
386
- this.grid = [];
387
- this.grid = grid ?? this.config.get('navigation.apps') ?? [];
388
- }
389
- static { this.ɵfac = function AppsButtonComponent_Factory(t) { return new (t || AppsButtonComponent)(i0.ɵɵdirectiveInject(RXAP_LAYOUT_APPS_GRID, 8), i0.ɵɵdirectiveInject(ConfigService)); }; }
390
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AppsButtonComponent, selectors: [["rxap-apps-button"]], hostAttrs: [1, "rxap-apps-button"], decls: 1, vars: 1, consts: [[3, "ngIf"], ["cdkOverlayOrigin", "", "mat-icon-button", "", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOpen", "cdkConnectedOverlayOrigin", "overlayOutsideClick"], [1, "grid-container"], [1, "grid", 3, "ngStyle"], [3, "ngClass", 4, "ngFor", "ngForOf"], [3, "ngClass"], [3, "href", 4, "ngIf"], [3, "href"], ["fxLayout", "column", "fxLayoutAlign", "start center", "fxLayoutGap", "12px"], ["width", "53px", 3, "src"]], template: function AppsButtonComponent_Template(rf, ctx) { if (rf & 1) {
391
- i0.ɵɵtemplate(0, AppsButtonComponent_ng_template_0_Template, 5, 2, "ng-template", 0);
392
- } if (rf & 2) {
393
- i0.ɵɵproperty("ngIf", ctx.grid && ctx.grid.length);
394
- } }, dependencies: [i1$1.MatLegacyButton, i2$2.MatIcon, i3$2.CdkConnectedOverlay, i3$2.CdkOverlayOrigin, i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutGapDirective, i1$3.DefaultLayoutAlignDirective, i5$1.DefaultClassDirective, i5$1.DefaultStyleDirective, i2$1.NgClass, i2$1.NgForOf, i2$1.NgIf, i2$1.NgStyle], styles: [".grid-container[_ngcontent-%COMP%]{padding:8px;border:1px solid rgba(0,0,0,.2);border-radius:8px;box-shadow:0 1px 2px #3c40434d,0 2px 6px 2px #3c404326}.grid[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}.grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:8px;padding:6px;height:84px;width:84px;transition-delay:0s;transition-duration:.2s;transition-property:tramsform;transition-timing-function:cubic-bezier(.333,0,0,1);position:relative}.grid[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:absolute;inset:6px;text-align:center;text-decoration:none;color:#000}"], changeDetection: 0 }); }
184
+ ngOnDestroy() {
185
+ this._subscription?.unsubscribe();
186
+ }
187
+ async logout() {
188
+ await this.authenticationService.signOut();
189
+ }
190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserProfileIconComponent, deps: [{ token: i1$1.RxapUserProfileService }, { token: i1$1.RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Component }); }
191
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: UserProfileIconComponent, isStandalone: true, selector: "rxap-user-profile-icon", ngImport: i0, template: "<button [matMenuTriggerFor]=\"menu\"\n [disabled]=\"!username()\"\n class=\"profile-icon\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\">\n <mat-icon class=\"avatar-icon\">account_circle</mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\">\n <button mat-menu-item>\n <mat-icon>account_circle</mat-icon>\n <span>{{username()}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>login</mat-icon>\n <span i18n>Logout</span>\n </button>\n</mat-menu>\n", styles: [".profile-icon{border-radius:100%;border:none;height:32px;width:32px;overflow:hidden;background-position:center center;background-repeat:no-repeat;background-size:cover}.profile-icon .avatar-icon{width:32px;height:32px;font-size:32px}.profile-icon:hover{cursor:pointer}.profile-icon:focus{outline:none}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
395
192
  }
396
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppsButtonComponent, [{
397
- type: Component,
398
- args: [{ selector: 'rxap-apps-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-apps-button' }, template: "<ng-template [ngIf]=\"grid && grid.length\">\n <button #trigger=\"cdkOverlayOrigin\" (click)=\"isOpen = !isOpen\" cdkOverlayOrigin mat-icon-button>\n <mat-icon>apps</mat-icon>\n </button>\n\n <ng-template (overlayOutsideClick)=\"isOpen = false\"\n [cdkConnectedOverlayOpen]=\"isOpen\"\n [cdkConnectedOverlayOrigin]=\"trigger\"\n cdkConnectedOverlay>\n\n <div class=\"grid-container\">\n\n <ul [ngStyle]=\"{ columns: columns }\" class=\"grid\">\n <li *ngFor=\"let item of gridWithPadding\" [ngClass]=\"{ empty: item.empty }\">\n <a *ngIf=\"!item.empty\" [href]=\"item.href\">\n\n <span fxLayout=\"column\" fxLayoutAlign=\"start center\" fxLayoutGap=\"12px\">\n <img [src]=\"item.image\" width=\"53px\">\n <span>{{item.label}}</span>\n </span>\n\n </a>\n </li>\n </ul>\n\n </div>\n\n </ng-template>\n</ng-template>\n", styles: [".grid-container{padding:8px;border:1px solid rgba(0,0,0,.2);border-radius:8px;box-shadow:0 1px 2px #3c40434d,0 2px 6px 2px #3c404326}.grid{list-style-type:none;margin:0;padding:0}.grid li{border-radius:8px;padding:6px;height:84px;width:84px;transition-delay:0s;transition-duration:.2s;transition-property:tramsform;transition-timing-function:cubic-bezier(.333,0,0,1);position:relative}.grid li a{position:absolute;inset:6px;text-align:center;text-decoration:none;color:#000}\n"] }]
399
- }], function () { return [{ type: undefined, decorators: [{
400
- type: Optional
401
- }, {
402
- type: Inject,
403
- args: [RXAP_LAYOUT_APPS_GRID]
404
- }] }, { type: i1$5.ConfigService, decorators: [{
405
- type: Inject,
406
- args: [ConfigService]
407
- }] }]; }, null); })();
193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserProfileIconComponent, decorators: [{
194
+ type: Component,
195
+ args: [{ selector: 'rxap-user-profile-icon', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
196
+ FlexModule,
197
+ MatMenuModule,
198
+ MatIconModule,
199
+ NgIf,
200
+ AsyncPipe,
201
+ ], template: "<button [matMenuTriggerFor]=\"menu\"\n [disabled]=\"!username()\"\n class=\"profile-icon\"\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\">\n <mat-icon class=\"avatar-icon\">account_circle</mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [yPosition]=\"'below'\">\n <button mat-menu-item>\n <mat-icon>account_circle</mat-icon>\n <span>{{username()}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>login</mat-icon>\n <span i18n>Logout</span>\n </button>\n</mat-menu>\n", styles: [".profile-icon{border-radius:100%;border:none;height:32px;width:32px;overflow:hidden;background-position:center center;background-repeat:no-repeat;background-size:cover}.profile-icon .avatar-icon{width:32px;height:32px;font-size:32px}.profile-icon:hover{cursor:pointer}.profile-icon:focus{outline:none}\n"] }]
202
+ }], ctorParameters: function () { return [{ type: i1$1.RxapUserProfileService }, { type: i1$1.RxapAuthenticationService }]; } });
408
203
 
409
- function LanguageSelectorComponent_ng_template_0_mat_option_3_Template(rf, ctx) { if (rf & 1) {
410
- i0.ɵɵelementStart(0, "mat-option", 4);
411
- i0.ɵɵtext(1);
412
- i0.ɵɵelementEnd();
413
- } if (rf & 2) {
414
- const item_r2 = ctx.$implicit;
415
- i0.ɵɵproperty("value", item_r2.key);
416
- i0.ɵɵadvance(1);
417
- i0.ɵɵtextInterpolate(item_r2.value);
418
- } }
419
- function LanguageSelectorComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
420
- const _r4 = i0.ɵɵgetCurrentView();
421
- i0.ɵɵelementStart(0, "div")(1, "mat-form-field", 1)(2, "mat-select", 2);
422
- i0.ɵɵlistener("ngModelChange", function LanguageSelectorComponent_ng_template_0_Template_mat_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.language.setLanguage($event)); });
423
- i0.ɵɵtemplate(3, LanguageSelectorComponent_ng_template_0_mat_option_3_Template, 2, 2, "mat-option", 3);
424
- i0.ɵɵpipe(4, "keyvalue");
425
- i0.ɵɵelementEnd()()();
426
- } if (rf & 2) {
427
- const ctx_r0 = i0.ɵɵnextContext();
428
- i0.ɵɵadvance(2);
429
- i0.ɵɵproperty("ngModel", ctx_r0.language.selectedLanguage);
430
- i0.ɵɵadvance(1);
431
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(4, 2, ctx_r0.language.languages));
432
- } }
433
- const RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY = 'rxap__selected_language';
434
- const RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY = 'rxap__selected_language_last_change';
435
- class LanguageSelectorService {
436
- constructor(config) {
204
+ class AppUrlService {
205
+ constructor(config, localeId, userProfileService) {
437
206
  this.config = config;
438
- this.languages = this.config.get('i18n.languages') ?? {};
439
- this.defaultLanguage =
440
- this.config.get('i18n.defaultLanguage') ??
441
- Object.keys(this.languages)[0] ??
442
- 'en';
443
- this.selectedLanguage =
444
- localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY) ??
445
- this.defaultLanguage;
446
- }
447
- setLanguage(language) {
448
- if (language !== this.selectedLanguage) {
449
- this.redirect(language);
207
+ this.localeId = localeId;
208
+ this.userProfileService = userProfileService;
209
+ this._apps = this.config.get('navigation.apps') ?? [];
210
+ }
211
+ getApp(appId) {
212
+ return this._apps.find(app => app.id === appId) ?? null;
213
+ }
214
+ getAppUrl(appId, path) {
215
+ const app = this.getApp(appId);
216
+ if (app) {
217
+ const prefix = this.getPathPrefix();
218
+ return JoinPath(app.href, prefix, path);
450
219
  }
220
+ return null;
451
221
  }
452
- autoRedirect() {
453
- if (localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY)) {
454
- this.redirect(localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY));
222
+ navigate(appId, path) {
223
+ const url = this.getAppUrl(appId, path);
224
+ if (url) {
225
+ ClickOnLink(url);
455
226
  }
456
227
  }
457
- redirect(language) {
458
- const currentUrl = location.origin + location.pathname + location.search;
459
- const redirectUrl = location.origin +
460
- `/${language}` +
461
- location.pathname.replace(new RegExp(`^\/${this.selectedLanguage}`), '') +
462
- location.search;
463
- this.selectedLanguage = language;
464
- localStorage.setItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY, language);
465
- if (currentUrl !== redirectUrl) {
466
- if (this.checkLastChange()) {
467
- location.replace(redirectUrl);
468
- }
469
- }
470
- else {
471
- console.log('Redirect not required');
472
- }
473
- }
474
- checkLastChange() {
475
- const lastChangeString = localStorage.getItem(RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY);
476
- if (lastChangeString) {
477
- if (Date.now() - parseInt(lastChangeString, 10) < 1000) {
478
- return false;
479
- }
228
+ async getAppList() {
229
+ const roles = await this.userProfileService.getRoleList();
230
+ return this._apps.filter(app => !app.hidden)
231
+ .map(app => ({
232
+ ...app,
233
+ href: JoinPath(app.href, this.getPathPrefix()),
234
+ }))
235
+ .filter(app => !app.permissions ||
236
+ !app.permissions.length ||
237
+ app.permissions.every(permission => roles.includes(permission)));
238
+ }
239
+ getPathPrefix() {
240
+ switch (this.localeId) {
241
+ case 'de-DE':
242
+ return 'de';
243
+ case 'en-US':
244
+ return 'en';
245
+ default:
246
+ return 'de';
480
247
  }
481
- localStorage.setItem(RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY, Date.now().toFixed(0));
482
- return true;
483
248
  }
484
- static { this.ɵfac = function LanguageSelectorService_Factory(t) { return new (t || LanguageSelectorService)(i0.ɵɵinject(ConfigService)); }; }
485
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LanguageSelectorService, factory: LanguageSelectorService.ɵfac, providedIn: 'root' }); }
249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppUrlService, deps: [{ token: i1$2.ConfigService }, { token: LOCALE_ID }, { token: i1$1.RxapUserProfileService }], target: i0.ɵɵFactoryTarget.Injectable }); }
250
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppUrlService, providedIn: 'root' }); }
486
251
  }
487
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LanguageSelectorService, [{
488
- type: Injectable,
489
- args: [{ providedIn: 'root' }]
490
- }], function () { return [{ type: i1$5.ConfigService, decorators: [{
491
- type: Inject,
492
- args: [ConfigService]
493
- }] }]; }, null); })();
494
- class LanguageSelectorComponent {
495
- constructor(language) {
496
- this.language = language;
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppUrlService, decorators: [{
253
+ type: Injectable,
254
+ args: [{ providedIn: 'root' }]
255
+ }], ctorParameters: function () { return [{ type: i1$2.ConfigService }, { type: undefined, decorators: [{
256
+ type: Inject,
257
+ args: [LOCALE_ID]
258
+ }] }, { type: i1$1.RxapUserProfileService }]; } });
259
+
260
+ class AppsButtonComponent {
261
+ constructor(grid, appUrlService, authenticationService) {
262
+ this.appUrlService = appUrlService;
263
+ this.authenticationService = authenticationService;
264
+ this.isOpen = false;
265
+ this.appList = signal([]);
266
+ }
267
+ ngOnInit() {
268
+ this._subscription = this.authenticationService.isAuthenticated$.pipe(filter(Boolean), switchMap$1(() => this.appUrlService.getAppList()), tap((apps) => this.appList.set(apps))).subscribe();
269
+ }
270
+ ngOnDestroy() {
271
+ this._subscription?.unsubscribe();
497
272
  }
498
- static { this.ɵfac = function LanguageSelectorComponent_Factory(t) { return new (t || LanguageSelectorComponent)(i0.ɵɵdirectiveInject(LanguageSelectorService)); }; }
499
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LanguageSelectorComponent, selectors: [["rxap-language-selector"]], hostAttrs: [1, "rxap-language-selector"], decls: 2, vars: 3, consts: [[3, "ngIf"], ["appearance", "outline", 1, "language-selector"], [3, "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function LanguageSelectorComponent_Template(rf, ctx) { if (rf & 1) {
500
- i0.ɵɵtemplate(0, LanguageSelectorComponent_ng_template_0_Template, 5, 4, "ng-template", 0);
501
- i0.ɵɵpipe(1, "keyvalue");
502
- } if (rf & 2) {
503
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.language.languages).length);
504
- } }, dependencies: [i2$3.MatLegacyFormField, i3$3.MatLegacySelect, i4$1.MatLegacyOption, i2$1.NgForOf, i2$1.NgIf, i6.NgControlStatus, i6.NgModel, i2$1.KeyValuePipe], styles: [".language-selector[_ngcontent-%COMP%]{width:142px}.language-selector[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:0}.language-selector[_ngcontent-%COMP%] .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector[_ngcontent-%COMP%] .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}"], changeDetection: 0 }); }
273
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppsButtonComponent, deps: [{ token: RXAP_LAYOUT_APPS_GRID, optional: true }, { token: AppUrlService }, { token: i1$1.RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Component }); }
274
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: AppsButtonComponent, isStandalone: true, selector: "rxap-apps-button", ngImport: i0, template: "<div *ngIf=\"appList()?.length\" class=\"flex flex-row items-center gap-8\">\n\n <div *ngIf=\"isOpen\" class=\"flex flex-row items-center gap-6\">\n\n <div *ngFor=\"let app of appList()\" class=\"h-10\">\n <a [href]=\"app.href\" mat-stroked-button>\n <span class=\"flex flex-row items-center gap-4\">\n <img *ngIf=\"app.image\" [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n <span class=\"label grow-0\">{{app.label}}</span>\n </span>\n </a>\n </div>\n\n </div>\n\n <button (click)=\"isOpen = !isOpen\" mat-icon-button>\n <mat-icon>apps</mat-icon>\n </button>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
505
275
  }
506
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LanguageSelectorComponent, [{
507
- type: Component,
508
- args: [{ selector: 'rxap-language-selector', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-language-selector' }, template: "<ng-template [ngIf]=\"(language.languages | keyvalue).length\">\n <div>\n <mat-form-field appearance=\"outline\" class=\"language-selector\">\n <mat-select (ngModelChange)=\"language.setLanguage($event)\" [ngModel]=\"language.selectedLanguage\">\n <mat-option *ngFor=\"let item of language.languages | keyvalue\" [value]=\"item.key\">{{item.value}}</mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n</ng-template>\n", styles: [".language-selector{width:142px}.language-selector ::ng-deep .mat-form-field-wrapper{padding-bottom:0}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix{padding:12px 0;border-width:6px}.language-selector ::ng-deep .mat-form-field-wrapper .mat-form-field-infix .mat-select-arrow-wrapper{transform:translateY(0)}\n"] }]
509
- }], function () { return [{ type: LanguageSelectorService }]; }, null); })();
276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppsButtonComponent, decorators: [{
277
+ type: Component,
278
+ args: [{ selector: 'rxap-apps-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
279
+ NgIf,
280
+ FlexModule,
281
+ NgFor,
282
+ MatButtonModule,
283
+ MatIconModule,
284
+ NgOptimizedImage,
285
+ ], template: "<div *ngIf=\"appList()?.length\" class=\"flex flex-row items-center gap-8\">\n\n <div *ngIf=\"isOpen\" class=\"flex flex-row items-center gap-6\">\n\n <div *ngFor=\"let app of appList()\" class=\"h-10\">\n <a [href]=\"app.href\" mat-stroked-button>\n <span class=\"flex flex-row items-center gap-4\">\n <img *ngIf=\"app.image\" [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n <span class=\"label grow-0\">{{app.label}}</span>\n </span>\n </a>\n </div>\n\n </div>\n\n <button (click)=\"isOpen = !isOpen\" mat-icon-button>\n <mat-icon>apps</mat-icon>\n </button>\n\n</div>\n" }]
286
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
287
+ type: Optional
288
+ }, {
289
+ type: Inject,
290
+ args: [RXAP_LAYOUT_APPS_GRID]
291
+ }] }, { type: AppUrlService }, { type: i1$1.RxapAuthenticationService }]; } });
510
292
 
511
- function HeaderComponent_mat_toolbar_row_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
512
- i0.ɵɵelementContainer(0);
513
- } }
514
- function HeaderComponent_mat_toolbar_row_1_Template(rf, ctx) { if (rf & 1) {
515
- i0.ɵɵelementStart(0, "mat-toolbar-row");
516
- i0.ɵɵtemplate(1, HeaderComponent_mat_toolbar_row_1_ng_container_1_Template, 1, 0, "ng-container", 7);
517
- i0.ɵɵelementEnd();
518
- } if (rf & 2) {
519
- const headerComponent_r4 = ctx.$implicit;
520
- i0.ɵɵadvance(1);
521
- i0.ɵɵproperty("ngComponentOutlet", headerComponent_r4);
522
- } }
523
- function HeaderComponent_rxap_sidenav_toggle_button_4_Template(rf, ctx) { if (rf & 1) {
524
- i0.ɵɵelement(0, "rxap-sidenav-toggle-button", 8);
525
- } if (rf & 2) {
526
- const ctx_r1 = i0.ɵɵnextContext();
527
- i0.ɵɵproperty("sidenav", ctx_r1.sidenav);
528
- } }
529
- function HeaderComponent_rxap_user_profile_icon_9_Template(rf, ctx) { if (rf & 1) {
530
- i0.ɵɵelement(0, "rxap-user-profile-icon", 5);
531
- } }
532
- function HeaderComponent_div_11_Template(rf, ctx) { if (rf & 1) {
533
- i0.ɵɵelementStart(0, "div", 5)(1, "button", 9)(2, "mat-icon");
534
- i0.ɵɵtext(3, "settings");
535
- i0.ɵɵelementEnd()()();
536
- } if (rf & 2) {
537
- const ctx_r3 = i0.ɵɵnextContext();
538
- i0.ɵɵadvance(1);
539
- i0.ɵɵproperty("matMenuTriggerFor", ctx_r3.settingsMenuPanel);
540
- } }
541
- const _c0$4 = function (a0) { return { open: a0 }; };
542
- const _c1$3 = ["*"];
543
293
  class HeaderComponent {
544
- constructor(headerComponentService, userService, headerComponent) {
294
+ constructor(headerComponentService, headerComponent, theme) {
545
295
  this.headerComponentService = headerComponentService;
546
- this.userService = userService;
547
296
  this.headerComponent = headerComponent;
297
+ this.theme = theme;
548
298
  this.components = [];
549
299
  this.subscriptions = new Subscription();
550
300
  this.color = 'primary';
551
- this.hasUser$ = this.userService.user$.pipe(map(Boolean));
301
+ this.isDevMode = isDevMode();
552
302
  }
553
303
  ngOnInit() {
554
304
  this.updateComponents();
@@ -562,305 +312,90 @@ class HeaderComponent {
562
312
  ngOnDestroy() {
563
313
  this.subscriptions.unsubscribe();
564
314
  }
565
- static { this.ɵfac = function HeaderComponent_Factory(t) { return new (t || HeaderComponent)(i0.ɵɵdirectiveInject(HeaderService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(RXAP_HEADER_COMPONENT, 8)); }; }
566
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderComponent, selectors: [["rxap-header"]], hostAttrs: [1, "rxap-layout-header"], inputs: { sidenav: "sidenav", color: "color", settingsMenuPanel: "settingsMenuPanel" }, ngContentSelectors: _c1$3, decls: 14, vars: 10, consts: [[1, "mat-elevation-z3", 3, "ngClass", "color"], [4, "ngFor", "ngForOf"], ["fxLayout", "row", "fxLayoutAlign", "space-between center", "fxLayoutGap", "16px", 1, "content"], ["fxFlex", "nogrow", 3, "sidenav", 4, "ngIf"], ["fxFlex", "grow"], ["fxFlex", "nogrow"], ["fxFlex", "nogrow", 4, "ngIf"], [4, "ngComponentOutlet"], ["fxFlex", "nogrow", 3, "sidenav"], ["mat-icon-button", "", 3, "matMenuTriggerFor"]], template: function HeaderComponent_Template(rf, ctx) { if (rf & 1) {
567
- i0.ɵɵprojectionDef();
568
- i0.ɵɵelementStart(0, "mat-toolbar", 0);
569
- i0.ɵɵtemplate(1, HeaderComponent_mat_toolbar_row_1_Template, 2, 1, "mat-toolbar-row", 1);
570
- i0.ɵɵelementStart(2, "mat-toolbar-row")(3, "div", 2);
571
- i0.ɵɵtemplate(4, HeaderComponent_rxap_sidenav_toggle_button_4_Template, 1, 1, "rxap-sidenav-toggle-button", 3);
572
- i0.ɵɵelementStart(5, "div", 4);
573
- i0.ɵɵprojection(6);
574
- i0.ɵɵelementEnd();
575
- i0.ɵɵelement(7, "rxap-language-selector", 5)(8, "rxap-apps-button", 5);
576
- i0.ɵɵtemplate(9, HeaderComponent_rxap_user_profile_icon_9_Template, 1, 0, "rxap-user-profile-icon", 6);
577
- i0.ɵɵpipe(10, "async");
578
- i0.ɵɵtemplate(11, HeaderComponent_div_11_Template, 4, 1, "div", 6);
579
- i0.ɵɵelement(12, "rxap-sign-out", 5);
580
- i0.ɵɵelementEnd()()();
581
- i0.ɵɵelement(13, "rxap-navigation-progress-bar");
582
- } if (rf & 2) {
583
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$4, ctx.sidenav == null ? null : ctx.sidenav.opened))("color", ctx.color);
584
- i0.ɵɵadvance(1);
585
- i0.ɵɵproperty("ngForOf", ctx.components);
586
- i0.ɵɵadvance(3);
587
- i0.ɵɵproperty("ngIf", ctx.sidenav);
588
- i0.ɵɵadvance(5);
589
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(10, 6, ctx.hasUser$));
590
- i0.ɵɵadvance(2);
591
- i0.ɵɵproperty("ngIf", ctx.settingsMenuPanel);
592
- } }, dependencies: [i2.MatToolbar, i2.MatToolbarRow, SignOutComponent, UserProfileIconComponent, NavigationProgressBarComponent, SidenavToggleButtonComponent, i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutGapDirective, i1$3.DefaultLayoutAlignDirective, i1$3.DefaultFlexDirective, i5$1.DefaultClassDirective, i2$1.NgClass, i2$1.NgComponentOutlet, i2$1.NgForOf, i2$1.NgIf, i1$1.MatLegacyButton, i2$2.MatIcon, i1$2.MatLegacyMenuTrigger, AppsButtonComponent, LanguageSelectorComponent, i2$1.AsyncPipe], styles: [".content[_ngcontent-%COMP%]{width:100%;height:64px}"], changeDetection: 0 }); }
315
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HeaderComponent, deps: [{ token: HeaderService }, { token: RXAP_HEADER_COMPONENT, optional: true }, { token: i1.ThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
316
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: HeaderComponent, isStandalone: true, selector: "rxap-header", inputs: { sidenav: "sidenav", color: "color" }, ngImport: i0, template: "<mat-toolbar [color]=\"color\" [ngClass]=\"{ open: sidenav?.opened }\" class=\"mat-elevation-z3 header\">\n <div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n <div class=\"grow\">\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <div class=\"grow-0\">\n <button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon>settings</mat-icon>\n </button>\n </div>\n <rxap-user-profile-icon class=\"grow-0\"></rxap-user-profile-icon>\n </div>\n</mat-toolbar>\n\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n <span i18n>Mode</span>\n </button>\n <rxap-language-selector *ngIf=\"!isDevMode\"></rxap-language-selector>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: LanguageSelectorComponent, selector: "rxap-language-selector" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatOptionModule }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: NavigationProgressBarComponent, selector: "rxap-navigation-progress-bar" }, { kind: "component", type: UserProfileIconComponent, selector: "rxap-user-profile-icon" }, { kind: "component", type: AppsButtonComponent, selector: "rxap-apps-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
593
317
  }
594
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderComponent, [{
595
- type: Component,
596
- args: [{ selector: 'rxap-header', changeDetection: ChangeDetectionStrategy.OnPush, host: {
597
- class: 'rxap-layout-header',
598
- }, template: "<mat-toolbar [ngClass]=\"{ open: sidenav?.opened }\" [color]=\"color\" class=\"mat-elevation-z3\">\n <mat-toolbar-row *ngFor=\"let headerComponent of components\">\n <ng-container *ngComponentOutlet=\"headerComponent\"></ng-container>\n </mat-toolbar-row>\n <mat-toolbar-row>\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n fxLayoutGap=\"16px\"\n class=\"content\"\n >\n <rxap-sidenav-toggle-button *ngIf=\"sidenav\" fxFlex=\"nogrow\" [sidenav]=\"sidenav\"></rxap-sidenav-toggle-button>\n <div fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n <rxap-language-selector fxFlex=\"nogrow\"></rxap-language-selector>\n <rxap-apps-button fxFlex=\"nogrow\"></rxap-apps-button>\n <rxap-user-profile-icon *ngIf=\"hasUser$ | async\" fxFlex=\"nogrow\"></rxap-user-profile-icon>\n <div fxFlex=\"nogrow\" *ngIf=\"settingsMenuPanel\">\n <button mat-icon-button [matMenuTriggerFor]=\"settingsMenuPanel\">\n <mat-icon>settings</mat-icon>\n </button>\n </div>\n <rxap-sign-out fxFlex=\"nogrow\"></rxap-sign-out>\n </div>\n </mat-toolbar-row>\n</mat-toolbar>\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n", styles: [".content{width:100%;height:64px}\n"] }]
599
- }], function () { return [{ type: i1.HeaderService, decorators: [{
600
- type: Inject,
601
- args: [HeaderService]
602
- }] }, { type: i3.UserService, decorators: [{
603
- type: Inject,
604
- args: [UserService]
605
- }] }, { type: undefined, decorators: [{
606
- type: Optional
607
- }, {
608
- type: Inject,
609
- args: [RXAP_HEADER_COMPONENT]
610
- }] }]; }, { sidenav: [{
611
- type: Input
612
- }], color: [{
613
- type: Input
614
- }], settingsMenuPanel: [{
615
- type: Input
616
- }] }); })();
318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HeaderComponent, decorators: [{
319
+ type: Component,
320
+ args: [{ selector: 'rxap-header', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
321
+ MatToolbarModule,
322
+ NgClass,
323
+ NgIf,
324
+ MatButtonModule,
325
+ MatMenuModule,
326
+ MatIconModule,
327
+ LanguageSelectorComponent,
328
+ MatFormFieldModule,
329
+ StopPropagationDirective,
330
+ MatSelectModule,
331
+ FormsModule,
332
+ MatOptionModule,
333
+ DataSourceCollectionDirective,
334
+ MatSlideToggleModule,
335
+ AsyncPipe,
336
+ NavigationProgressBarComponent,
337
+ UserProfileIconComponent,
338
+ AppsButtonComponent,
339
+ ], template: "<mat-toolbar [color]=\"color\" [ngClass]=\"{ open: sidenav?.opened }\" class=\"mat-elevation-z3 header\">\n <div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n <div class=\"grow\">\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <div class=\"grow-0\">\n <button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon>settings</mat-icon>\n </button>\n </div>\n <rxap-user-profile-icon class=\"grow-0\"></rxap-user-profile-icon>\n </div>\n</mat-toolbar>\n\n<rxap-navigation-progress-bar></rxap-navigation-progress-bar>\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n <mat-icon *ngIf=\"theme.darkMode\">brightness_2</mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\">brightness_5</mat-icon>\n <span i18n>Mode</span>\n </button>\n <rxap-language-selector *ngIf=\"!isDevMode\"></rxap-language-selector>\n</mat-menu>\n" }]
340
+ }], ctorParameters: function () { return [{ type: i1.HeaderService, decorators: [{
341
+ type: Inject,
342
+ args: [HeaderService]
343
+ }] }, { type: undefined, decorators: [{
344
+ type: Optional
345
+ }, {
346
+ type: Inject,
347
+ args: [RXAP_HEADER_COMPONENT]
348
+ }] }, { type: i1.ThemeService }]; }, propDecorators: { sidenav: [{
349
+ type: Input
350
+ }], color: [{
351
+ type: Input
352
+ }] } });
617
353
 
618
- class SignOutComponentModule {
619
- static { this.ɵfac = function SignOutComponentModule_Factory(t) { return new (t || SignOutComponentModule)(); }; }
620
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SignOutComponentModule }); }
621
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacyButtonModule,
622
- MatIconModule,
623
- SignOutDirectiveModule] }); }
624
- }
625
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutComponentModule, [{
626
- type: NgModule,
627
- args: [{
628
- declarations: [SignOutComponent],
629
- imports: [
630
- MatLegacyButtonModule,
631
- MatIconModule,
632
- SignOutDirectiveModule,
633
- ],
634
- exports: [SignOutComponent]
635
- }]
636
- }], null, null); })();
637
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SignOutComponentModule, { declarations: [SignOutComponent], imports: [MatLegacyButtonModule,
638
- MatIconModule,
639
- SignOutDirectiveModule], exports: [SignOutComponent] }); })();
640
-
641
- class UserProfileIconComponentModule {
642
- static { this.ɵfac = function UserProfileIconComponentModule_Factory(t) { return new (t || UserProfileIconComponentModule)(); }; }
643
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: UserProfileIconComponentModule }); }
644
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacyMenuModule,
645
- MatIconModule,
646
- CommonModule,
647
- FlexLayoutModule,
648
- AvatarBackgroundImageDirectiveModule] }); }
649
- }
650
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserProfileIconComponentModule, [{
651
- type: NgModule,
652
- args: [{
653
- declarations: [UserProfileIconComponent],
654
- imports: [
655
- MatLegacyMenuModule,
656
- MatIconModule,
657
- CommonModule,
658
- FlexLayoutModule,
659
- AvatarBackgroundImageDirectiveModule,
660
- ],
661
- exports: [UserProfileIconComponent]
662
- }]
663
- }], null, null); })();
664
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserProfileIconComponentModule, { declarations: [UserProfileIconComponent], imports: [MatLegacyMenuModule,
665
- MatIconModule,
666
- CommonModule,
667
- FlexLayoutModule,
668
- AvatarBackgroundImageDirectiveModule], exports: [UserProfileIconComponent] }); })();
669
-
670
- class NavigationProgressBarComponentModule {
671
- static { this.ɵfac = function NavigationProgressBarComponentModule_Factory(t) { return new (t || NavigationProgressBarComponentModule)(); }; }
672
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NavigationProgressBarComponentModule }); }
673
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacyProgressBarModule,
674
- CommonModule] }); }
675
- }
676
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationProgressBarComponentModule, [{
677
- type: NgModule,
678
- args: [{
679
- declarations: [NavigationProgressBarComponent],
680
- imports: [
681
- MatLegacyProgressBarModule,
682
- CommonModule
683
- ],
684
- exports: [NavigationProgressBarComponent]
685
- }]
686
- }], null, null); })();
687
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NavigationProgressBarComponentModule, { declarations: [NavigationProgressBarComponent], imports: [MatLegacyProgressBarModule,
688
- CommonModule], exports: [NavigationProgressBarComponent] }); })();
689
-
690
- class SidenavToggleButtonComponentModule {
691
- static { this.ɵfac = function SidenavToggleButtonComponentModule_Factory(t) { return new (t || SidenavToggleButtonComponentModule)(); }; }
692
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SidenavToggleButtonComponentModule }); }
693
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatIconModule,
694
- CommonModule,
695
- MatLegacyButtonModule] }); }
354
+ class SignOutComponent {
355
+ constructor(authenticationService) {
356
+ this.authenticationService = authenticationService;
357
+ }
358
+ async logout() {
359
+ await this.authenticationService.signOut();
360
+ }
361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutComponent, deps: [{ token: i1$1.RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Component }); }
362
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SignOutComponent, isStandalone: true, selector: "rxap-sign-out", ngImport: i0, template: "<button\n mat-icon-button\n (click)=\"logout()\"\n>\n <mat-icon>login</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
696
363
  }
697
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavToggleButtonComponentModule, [{
698
- type: NgModule,
699
- args: [{
700
- declarations: [SidenavToggleButtonComponent],
701
- imports: [
702
- MatIconModule,
703
- CommonModule,
704
- MatLegacyButtonModule
705
- ],
706
- exports: [SidenavToggleButtonComponent]
707
- }]
708
- }], null, null); })();
709
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SidenavToggleButtonComponentModule, { declarations: [SidenavToggleButtonComponent], imports: [MatIconModule,
710
- CommonModule,
711
- MatLegacyButtonModule], exports: [SidenavToggleButtonComponent] }); })();
364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutComponent, decorators: [{
365
+ type: Component,
366
+ args: [{ selector: 'rxap-sign-out', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, MatIconModule], template: "<button\n mat-icon-button\n (click)=\"logout()\"\n>\n <mat-icon>login</mat-icon>\n</button>\n" }]
367
+ }], ctorParameters: function () { return [{ type: i1$1.RxapAuthenticationService }]; } });
712
368
 
713
369
  class ResetButtonComponent {
714
370
  constructor(resetService) {
715
371
  this.resetService = resetService;
716
372
  }
717
- static { this.ɵfac = function ResetButtonComponent_Factory(t) { return new (t || ResetButtonComponent)(i0.ɵɵdirectiveInject(ResetService)); }; }
718
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ResetButtonComponent, selectors: [["rxap-reset-button"]], hostAttrs: [1, "rxap-reset-button"], decls: 3, vars: 0, consts: [["mat-icon-button", "", 3, "click"]], template: function ResetButtonComponent_Template(rf, ctx) { if (rf & 1) {
719
- i0.ɵɵelementStart(0, "button", 0);
720
- i0.ɵɵlistener("click", function ResetButtonComponent_Template_button_click_0_listener() { return ctx.resetService.resetAll(); });
721
- i0.ɵɵelementStart(1, "mat-icon");
722
- i0.ɵɵtext(2, "refresh");
723
- i0.ɵɵelementEnd()();
724
- } }, dependencies: [i2$2.MatIcon, i1$1.MatLegacyButton], changeDetection: 0 }); }
725
- }
726
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResetButtonComponent, [{
727
- type: Component,
728
- args: [{ selector: 'rxap-reset-button', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-reset-button' }, template: "<button (click)=\"resetService.resetAll()\" mat-icon-button>\n <mat-icon>refresh</mat-icon>\n</button>\n" }]
729
- }], function () { return [{ type: i1.ResetService, decorators: [{
730
- type: Inject,
731
- args: [ResetService]
732
- }] }]; }, null); })();
733
-
734
- class ResetButtonComponentModule {
735
- static { this.ɵfac = function ResetButtonComponentModule_Factory(t) { return new (t || ResetButtonComponentModule)(); }; }
736
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ResetButtonComponentModule }); }
737
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatIconModule,
738
- MatLegacyButtonModule] }); }
739
- }
740
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ResetButtonComponentModule, [{
741
- type: NgModule,
742
- args: [{
743
- declarations: [ResetButtonComponent],
744
- imports: [
745
- MatIconModule,
746
- MatLegacyButtonModule
747
- ],
748
- exports: [ResetButtonComponent]
749
- }]
750
- }], null, null); })();
751
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ResetButtonComponentModule, { declarations: [ResetButtonComponent], imports: [MatIconModule,
752
- MatLegacyButtonModule], exports: [ResetButtonComponent] }); })();
753
-
754
- class AppsButtonComponentModule {
755
- static { this.ɵfac = function AppsButtonComponentModule_Factory(t) { return new (t || AppsButtonComponentModule)(); }; }
756
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AppsButtonComponentModule }); }
757
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacyButtonModule,
758
- MatIconModule,
759
- MatGridListModule,
760
- OverlayModule,
761
- FlexLayoutModule,
762
- CommonModule,
763
- RouterModule] }); }
764
- }
765
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AppsButtonComponentModule, [{
766
- type: NgModule,
767
- args: [{
768
- declarations: [AppsButtonComponent],
769
- imports: [
770
- MatLegacyButtonModule,
771
- MatIconModule,
772
- MatGridListModule,
773
- OverlayModule,
774
- FlexLayoutModule,
775
- CommonModule,
776
- RouterModule
777
- ],
778
- exports: [AppsButtonComponent]
779
- }]
780
- }], null, null); })();
781
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppsButtonComponentModule, { declarations: [AppsButtonComponent], imports: [MatLegacyButtonModule,
782
- MatIconModule,
783
- MatGridListModule,
784
- OverlayModule,
785
- FlexLayoutModule,
786
- CommonModule,
787
- RouterModule], exports: [AppsButtonComponent] }); })();
788
-
789
- class LanguageSelectorComponentModule {
790
- static { this.ɵfac = function LanguageSelectorComponentModule_Factory(t) { return new (t || LanguageSelectorComponentModule)(); }; }
791
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LanguageSelectorComponentModule }); }
792
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacySelectModule,
793
- CommonModule,
794
- FormsModule] }); }
373
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetButtonComponent, deps: [{ token: ResetService }], target: i0.ɵɵFactoryTarget.Component }); }
374
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ResetButtonComponent, isStandalone: true, selector: "rxap-reset-button", ngImport: i0, template: "<button (click)=\"resetService.resetAll()\" mat-icon-button>\n <mat-icon>refresh</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
795
375
  }
796
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LanguageSelectorComponentModule, [{
797
- type: NgModule,
798
- args: [{
799
- declarations: [LanguageSelectorComponent],
800
- imports: [
801
- MatLegacySelectModule,
802
- CommonModule,
803
- FormsModule
804
- ],
805
- exports: [LanguageSelectorComponent]
806
- }]
807
- }], null, null); })();
808
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LanguageSelectorComponentModule, { declarations: [LanguageSelectorComponent], imports: [MatLegacySelectModule,
809
- CommonModule,
810
- FormsModule], exports: [LanguageSelectorComponent] }); })();
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetButtonComponent, decorators: [{
377
+ type: Component,
378
+ args: [{ selector: 'rxap-reset-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, MatIconModule], template: "<button (click)=\"resetService.resetAll()\" mat-icon-button>\n <mat-icon>refresh</mat-icon>\n</button>\n" }]
379
+ }], ctorParameters: function () { return [{ type: i1.ResetService, decorators: [{
380
+ type: Inject,
381
+ args: [ResetService]
382
+ }] }]; } });
811
383
 
812
- class HeaderModule {
813
- static { this.ɵfac = function HeaderModule_Factory(t) { return new (t || HeaderModule)(); }; }
814
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: HeaderModule }); }
815
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatToolbarModule,
816
- SignOutComponentModule,
817
- UserProfileIconComponentModule,
818
- NavigationProgressBarComponentModule,
819
- SidenavToggleButtonComponentModule,
820
- ResetButtonComponentModule,
821
- FlexLayoutModule,
822
- CommonModule,
823
- MatLegacyButtonModule,
824
- MatIconModule,
825
- MatLegacyMenuModule,
826
- AppsButtonComponentModule,
827
- LanguageSelectorComponentModule] }); }
384
+ class SidenavToggleButtonComponent {
385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
386
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SidenavToggleButtonComponent, isStandalone: true, selector: "rxap-sidenav-toggle-button", inputs: { sidenav: "sidenav" }, ngImport: i0, template: "<button (click)=\"sidenav.toggle()\" mat-icon-button>\n <mat-icon *ngIf=\"!sidenav.opened\">menu</mat-icon>\n <mat-icon *ngIf=\"sidenav.opened\">menu_open</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
828
387
  }
829
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderModule, [{
830
- type: NgModule,
831
- args: [{
832
- declarations: [HeaderComponent],
833
- imports: [
834
- MatToolbarModule,
835
- SignOutComponentModule,
836
- UserProfileIconComponentModule,
837
- NavigationProgressBarComponentModule,
838
- SidenavToggleButtonComponentModule,
839
- ResetButtonComponentModule,
840
- FlexLayoutModule,
841
- CommonModule,
842
- MatLegacyButtonModule,
843
- MatIconModule,
844
- MatLegacyMenuModule,
845
- AppsButtonComponentModule,
846
- LanguageSelectorComponentModule
847
- ],
848
- exports: [HeaderComponent]
849
- }]
850
- }], null, null); })();
851
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeaderModule, { declarations: [HeaderComponent], imports: [MatToolbarModule,
852
- SignOutComponentModule,
853
- UserProfileIconComponentModule,
854
- NavigationProgressBarComponentModule,
855
- SidenavToggleButtonComponentModule,
856
- ResetButtonComponentModule,
857
- FlexLayoutModule,
858
- CommonModule,
859
- MatLegacyButtonModule,
860
- MatIconModule,
861
- MatLegacyMenuModule,
862
- AppsButtonComponentModule,
863
- LanguageSelectorComponentModule], exports: [HeaderComponent] }); })();
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, decorators: [{
389
+ type: Component,
390
+ args: [{ selector: 'rxap-sidenav-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
391
+ MatButtonModule,
392
+ NgIf,
393
+ MatIconModule,
394
+ ], template: "<button (click)=\"sidenav.toggle()\" mat-icon-button>\n <mat-icon *ngIf=\"!sidenav.opened\">menu</mat-icon>\n <mat-icon *ngIf=\"sidenav.opened\">menu_open</mat-icon>\n</button>\n" }]
395
+ }], propDecorators: { sidenav: [{
396
+ type: Input,
397
+ args: [{ required: true }]
398
+ }] } });
864
399
 
865
400
  class LayoutComponentService {
866
401
  constructor(footerComponentService, headerComponentService, logoConfig = null, config) {
@@ -877,58 +412,24 @@ class LayoutComponentService {
877
412
  this.headerComponentService.update$.pipe(tap(() => this.fixedTopGap$.next(this.headerComponentService.countComponent * 64))).subscribe();
878
413
  this.logo = logoConfig ?? {
879
414
  src: '/assets/logo.png',
880
- width: '192'
415
+ width: 192,
881
416
  };
882
417
  }
883
- static { this.ɵfac = function LayoutComponentService_Factory(t) { return new (t || LayoutComponentService)(i0.ɵɵinject(i1.FooterService), i0.ɵɵinject(i1.HeaderService), i0.ɵɵinject(RXAP_LOGO_CONFIG, 8), i0.ɵɵinject(ConfigService)); }; }
884
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LayoutComponentService, factory: LayoutComponentService.ɵfac, providedIn: 'root' }); }
418
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponentService, deps: [{ token: i1.FooterService }, { token: i1.HeaderService }, { token: RXAP_LOGO_CONFIG, optional: true }, { token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
419
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponentService, providedIn: 'root' }); }
885
420
  }
886
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayoutComponentService, [{
887
- type: Injectable,
888
- args: [{ providedIn: 'root' }]
889
- }], function () { return [{ type: i1.FooterService }, { type: i1.HeaderService }, { type: undefined, decorators: [{
890
- type: Optional
891
- }, {
892
- type: Inject,
893
- args: [RXAP_LOGO_CONFIG]
894
- }] }, { type: i1$5.ConfigService, decorators: [{
895
- type: Inject,
896
- args: [ConfigService]
897
- }] }]; }, null); })();
898
-
899
- class SidenavFooterDirective {
900
- constructor(template) {
901
- this.template = template;
902
- }
903
- static { this.ɵfac = function SidenavFooterDirective_Factory(t) { return new (t || SidenavFooterDirective)(i0.ɵɵdirectiveInject(TemplateRef)); }; }
904
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SidenavFooterDirective, selectors: [["", "rxapSidenavFooter", ""]] }); }
905
- }
906
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavFooterDirective, [{
907
- type: Directive,
908
- args: [{
909
- selector: '[rxapSidenavFooter]',
910
- }]
911
- }], function () { return [{ type: i0.TemplateRef, decorators: [{
912
- type: Inject,
913
- args: [TemplateRef]
914
- }] }]; }, null); })();
915
-
916
- class SidenavHeaderDirective {
917
- constructor(template) {
918
- this.template = template;
919
- }
920
- static { this.ɵfac = function SidenavHeaderDirective_Factory(t) { return new (t || SidenavHeaderDirective)(i0.ɵɵdirectiveInject(TemplateRef)); }; }
921
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: SidenavHeaderDirective, selectors: [["", "rxapSidenavHeader", ""]] }); }
922
- }
923
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavHeaderDirective, [{
924
- type: Directive,
925
- args: [{
926
- selector: '[rxapSidenavHeader]',
927
- }]
928
- }], function () { return [{ type: i0.TemplateRef, decorators: [{
929
- type: Inject,
930
- args: [TemplateRef]
931
- }] }]; }, null); })();
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponentService, decorators: [{
422
+ type: Injectable,
423
+ args: [{ providedIn: 'root' }]
424
+ }], ctorParameters: function () { return [{ type: i1.FooterService }, { type: i1.HeaderService }, { type: undefined, decorators: [{
425
+ type: Optional
426
+ }, {
427
+ type: Inject,
428
+ args: [RXAP_LOGO_CONFIG]
429
+ }] }, { type: i1$2.ConfigService, decorators: [{
430
+ type: Inject,
431
+ args: [ConfigService]
432
+ }] }]; } });
932
433
 
933
434
  class SidenavComponentService {
934
435
  constructor(config) {
@@ -939,22 +440,170 @@ class SidenavComponentService {
939
440
  toggleNavigationCollapse() {
940
441
  this.collapsed$.next(!this.collapsed$.value);
941
442
  }
942
- static { this.ɵfac = function SidenavComponentService_Factory(t) { return new (t || SidenavComponentService)(i0.ɵɵinject(i1$5.ConfigService)); }; }
943
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SidenavComponentService, factory: SidenavComponentService.ɵfac, providedIn: 'root' }); }
443
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponentService, deps: [{ token: i1$2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
444
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponentService, providedIn: 'root' }); }
445
+ }
446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponentService, decorators: [{
447
+ type: Injectable,
448
+ args: [{ providedIn: 'root' }]
449
+ }], ctorParameters: function () { return [{ type: i1$2.ConfigService }]; } });
450
+
451
+ class NavigationItemComponent {
452
+ get isActive() {
453
+ return this._isActive;
454
+ }
455
+ set isActive(value) {
456
+ this._isActive = value;
457
+ this.active.set(value);
458
+ }
459
+ constructor(router, sidenav, elementRef, renderer, overlay, viewContainerRef) {
460
+ this.router = router;
461
+ this.sidenav = sidenav;
462
+ this.elementRef = elementRef;
463
+ this.renderer = renderer;
464
+ this.overlay = overlay;
465
+ this.viewContainerRef = viewContainerRef;
466
+ this.level = 0;
467
+ this._isActive = false;
468
+ this.children = null;
469
+ this.active = signal(false);
470
+ this._subscription = new Subscription();
471
+ }
472
+ ngOnChanges(changes) {
473
+ if (changes['item']) {
474
+ const item = changes['item'].currentValue;
475
+ this.children =
476
+ item.children && item.children.length ? item.children : null;
477
+ }
478
+ }
479
+ ngAfterViewInit() {
480
+ this._subscription.add(this.router.events
481
+ .pipe(filter((event) => event instanceof NavigationEnd), debounceTime(100), startWith(true), tap(() => {
482
+ let isActive = true;
483
+ const urlParts = this.router.url.split('/');
484
+ if (urlParts[0] === '') {
485
+ urlParts[0] = '/';
486
+ }
487
+ for (let i = 0; i < this.item.routerLink.length; i++) {
488
+ if (urlParts[i] !== this.item.routerLink[i]) {
489
+ isActive = false;
490
+ break;
491
+ }
492
+ }
493
+ this.isActive = isActive;
494
+ if (isActive) {
495
+ this.renderer.addClass(this.elementRef.nativeElement, 'active');
496
+ }
497
+ else {
498
+ this.renderer.removeClass(this.elementRef.nativeElement, 'active');
499
+ }
500
+ }))
501
+ .subscribe());
502
+ }
503
+ ngOnDestroy() {
504
+ this._subscription?.unsubscribe();
505
+ }
506
+ // region type save item property
507
+ // required to check the type of the item property in the ngFor loop
508
+ isNavigationDividerItem(item) {
509
+ return item['divider'];
510
+ }
511
+ isNavigationItem(item) {
512
+ return !this.isNavigationDividerItem(item);
513
+ }
514
+ asNavigationItem(item) {
515
+ if (!this.isNavigationItem(item)) {
516
+ throw new Error('The item is not a NavigationItem');
517
+ }
518
+ return item;
519
+ }
520
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationItemComponent, deps: [{ token: Router }, { token: SidenavComponentService }, { token: ElementRef }, { token: Renderer2 }, { token: Overlay }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
521
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigationItemComponent, isStandalone: true, selector: "li[rxap-navigation-item]", inputs: { level: "level", item: "item" }, host: { properties: { "class.active": "this.isActive" } }, viewQueries: [{ propertyName: "routerLinkActive", first: true, predicate: RouterLinkActive, descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item.routerLink\"\n class=\"h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4\"\n matRipple\n routerLinkActive\n\n >\n <span\n [ngClass]=\"{\n 'pl-0': level === 0,\n 'pl-4': level === 1,\n 'pl-8': level === 2,\n 'pl-12': level === 3\n }\"\n class=\"grow whitespace-nowrap\"\n >\n {{ item.label }}\n </span>\n <mat-icon *ngIf=\"item.icon\" [rxapIcon]=\"item.icon\"></mat-icon>\n </a>\n\n <ng-container *ngIf=\"item.children?.length && active()\">\n\n <mat-divider></mat-divider>\n\n <ul [@sub-nav]\n [items]=\"children ?? []\"\n [level]=\"level + 1\"\n rxap-navigation\n >\n </ul>\n\n <mat-divider></mat-divider>\n\n </ng-container>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return RouterLinkActive; }), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i0.forwardRef(function () { return RouterLink; }), selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i0.forwardRef(function () { return NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: i0.forwardRef(function () { return MatRippleModule; }) }, { kind: "directive", type: i0.forwardRef(function () { return i4.MatRipple; }), selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "ngmodule", type: i0.forwardRef(function () { return MatIconModule; }) }, { kind: "component", type: i0.forwardRef(function () { return i2$3.MatIcon; }), selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i0.forwardRef(function () { return IconDirective; }), selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: i0.forwardRef(function () { return MatDividerModule; }) }, { kind: "component", type: i0.forwardRef(function () { return i3$4.MatDivider; }), selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i0.forwardRef(function () { return NavigationComponent; }), selector: "ul[rxap-navigation]", inputs: ["items", "level", "root"] }, { kind: "directive", type: i0.forwardRef(function () { return NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
522
+ trigger('sub-nav', [
523
+ transition(':enter', [
524
+ style({
525
+ display: 'block',
526
+ height: '0',
527
+ overflow: 'hidden',
528
+ }),
529
+ animate(150, style({ height: '*' })),
530
+ ]),
531
+ transition(':leave', [
532
+ style({ overflow: 'hidden' }),
533
+ animate(300, style({ height: '0' })),
534
+ style({ display: 'none' }),
535
+ ]),
536
+ ]),
537
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
944
538
  }
945
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavComponentService, [{
946
- type: Injectable,
947
- args: [{ providedIn: 'root' }]
948
- }], function () { return [{ type: i1$5.ConfigService }]; }, null); })();
539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationItemComponent, decorators: [{
540
+ type: Component,
541
+ args: [{ selector: 'li[rxap-navigation-item]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [
542
+ trigger('sub-nav', [
543
+ transition(':enter', [
544
+ style({
545
+ display: 'block',
546
+ height: '0',
547
+ overflow: 'hidden',
548
+ }),
549
+ animate(150, style({ height: '*' })),
550
+ ]),
551
+ transition(':leave', [
552
+ style({ overflow: 'hidden' }),
553
+ animate(300, style({ height: '0' })),
554
+ style({ display: 'none' }),
555
+ ]),
556
+ ]),
557
+ ], standalone: true, imports: [
558
+ RouterLinkActive,
559
+ RouterLink,
560
+ NgIf,
561
+ MatRippleModule,
562
+ MatIconModule,
563
+ IconDirective,
564
+ MatDividerModule,
565
+ forwardRef(() => NavigationComponent),
566
+ NgClass,
567
+ ], template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item.routerLink\"\n class=\"h-12 pl-4 pr-5 flex flex-row justify-between items-center gap-x-4\"\n matRipple\n routerLinkActive\n\n >\n <span\n [ngClass]=\"{\n 'pl-0': level === 0,\n 'pl-4': level === 1,\n 'pl-8': level === 2,\n 'pl-12': level === 3\n }\"\n class=\"grow whitespace-nowrap\"\n >\n {{ item.label }}\n </span>\n <mat-icon *ngIf=\"item.icon\" [rxapIcon]=\"item.icon\"></mat-icon>\n </a>\n\n <ng-container *ngIf=\"item.children?.length && active()\">\n\n <mat-divider></mat-divider>\n\n <ul [@sub-nav]\n [items]=\"children ?? []\"\n [level]=\"level + 1\"\n rxap-navigation\n >\n </ul>\n\n <mat-divider></mat-divider>\n\n </ng-container>\n</div>\n" }]
568
+ }], ctorParameters: function () { return [{ type: i2$2.Router, decorators: [{
569
+ type: Inject,
570
+ args: [Router]
571
+ }] }, { type: SidenavComponentService, decorators: [{
572
+ type: Inject,
573
+ args: [SidenavComponentService]
574
+ }] }, { type: i0.ElementRef, decorators: [{
575
+ type: Inject,
576
+ args: [ElementRef]
577
+ }] }, { type: i0.Renderer2, decorators: [{
578
+ type: Inject,
579
+ args: [Renderer2]
580
+ }] }, { type: i6.Overlay, decorators: [{
581
+ type: Inject,
582
+ args: [Overlay]
583
+ }] }, { type: i0.ViewContainerRef, decorators: [{
584
+ type: Inject,
585
+ args: [ViewContainerRef]
586
+ }] }]; }, propDecorators: { level: [{
587
+ type: Input
588
+ }], routerLinkActive: [{
589
+ type: ViewChild,
590
+ args: [RouterLinkActive, { static: true }]
591
+ }], item: [{
592
+ type: Input,
593
+ args: [{ required: true }]
594
+ }], isActive: [{
595
+ type: HostBinding,
596
+ args: ['class.active']
597
+ }] } });
949
598
 
950
599
  function IsNavigationDividerItem(item) {
951
- return item && item.hasOwnProperty('divider') && item.divider;
600
+ return !!item && !!item['divider'];
952
601
  }
953
602
  function IsNavigationInsertItem(item) {
954
- return item && item.hasOwnProperty('insert');
603
+ return !!item && !!item['insert'];
955
604
  }
956
605
  function IsNavigationItem(item) {
957
- return (item && item.hasOwnProperty('routerLink') && item.hasOwnProperty('label'));
606
+ return (!!item && !!item['routerLink'] && !!item['label']);
958
607
  }
959
608
 
960
609
  class NavigationService {
@@ -1022,8 +671,10 @@ class NavigationService {
1022
671
  else {
1023
672
  return from(isVisible);
1024
673
  }
1025
- }).map(isVisible$ => isVisible$.pipe(catchError(e => {
1026
- console.error('isVisible method failed: ' + e.message);
674
+ })
675
+ .map(isVisible$ => isVisible$.pipe(catchError(e => {
676
+ console.error('isVisible method failed: ' +
677
+ e.message);
1027
678
  return of(false);
1028
679
  })));
1029
680
  // TODO : dont wait for all status services to complete, but cancel waiting if one returns false
@@ -1075,352 +726,35 @@ class NavigationService {
1075
726
  }
1076
727
  return navigation;
1077
728
  }
1078
- static { this.ɵfac = function NavigationService_Factory(t) { return new (t || NavigationService)(i0.ɵɵinject(RXAP_NAVIGATION_CONFIG), i0.ɵɵinject(INJECTOR), i0.ɵɵinject(RXAP_NAVIGATION_CONFIG_INSERTS, 8)); }; }
1079
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: NavigationService, factory: NavigationService.ɵfac, providedIn: 'root' }); }
1080
- }
1081
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationService, [{
1082
- type: Injectable,
1083
- args: [{ providedIn: 'root' }]
1084
- }], function () { return [{ type: undefined, decorators: [{
1085
- type: Inject,
1086
- args: [RXAP_NAVIGATION_CONFIG]
1087
- }] }, { type: undefined, decorators: [{
1088
- type: Inject,
1089
- args: [INJECTOR]
1090
- }] }, { type: undefined, decorators: [{
1091
- type: Optional
1092
- }, {
1093
- type: Inject,
1094
- args: [RXAP_NAVIGATION_CONFIG_INSERTS]
1095
- }] }]; }, null); })();
1096
-
1097
- const _c0$3 = ["navigationOverlay"];
1098
- const _c1$2 = ["rxap-navigation-item", ""];
1099
- function NavigationItemComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
1100
- i0.ɵɵelement(0, "mat-icon", 5);
1101
- } if (rf & 2) {
1102
- const ctx_r0 = i0.ɵɵnextContext();
1103
- i0.ɵɵproperty("rxapIcon", ctx_r0.item.icon);
1104
- } }
1105
- function NavigationItemComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
1106
- i0.ɵɵelementStart(0, "span", 6);
1107
- i0.ɵɵtext(1);
1108
- i0.ɵɵelementEnd();
1109
- } if (rf & 2) {
1110
- const ctx_r1 = i0.ɵɵnextContext();
1111
- i0.ɵɵadvance(1);
1112
- i0.ɵɵtextInterpolate(ctx_r1.item.label);
1113
- } }
1114
- function NavigationItemComponent_ul_5_Template(rf, ctx) { if (rf & 1) {
1115
- i0.ɵɵelement(0, "ul", 7);
1116
- } if (rf & 2) {
1117
- const ctx_r2 = i0.ɵɵnextContext();
1118
- i0.ɵɵproperty("@sub-nav", undefined)("items", ctx_r2.children)("level", ctx_r2.level + 1);
1119
- } }
1120
- function NavigationItemComponent_ng_template_7_li_2_a_1_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
1121
- i0.ɵɵelement(0, "mat-icon", 5);
1122
- } if (rf & 2) {
1123
- const child_r6 = i0.ɵɵnextContext(2).$implicit;
1124
- const ctx_r8 = i0.ɵɵnextContext(2);
1125
- i0.ɵɵproperty("rxapIcon", ctx_r8.asNavigationItem(child_r6).icon);
1126
- } }
1127
- function NavigationItemComponent_ng_template_7_li_2_a_1_Template(rf, ctx) { if (rf & 1) {
1128
- i0.ɵɵelementStart(0, "a", 11);
1129
- i0.ɵɵtemplate(1, NavigationItemComponent_ng_template_7_li_2_a_1_mat_icon_1_Template, 1, 1, "mat-icon", 1);
1130
- i0.ɵɵelementStart(2, "span", 6);
1131
- i0.ɵɵtext(3);
1132
- i0.ɵɵelementEnd()();
1133
- } if (rf & 2) {
1134
- const child_r6 = i0.ɵɵnextContext().$implicit;
1135
- const ctx_r7 = i0.ɵɵnextContext(2);
1136
- i0.ɵɵproperty("routerLink", ctx_r7.asNavigationItem(child_r6).routerLink);
1137
- i0.ɵɵadvance(1);
1138
- i0.ɵɵproperty("ngIf", ctx_r7.asNavigationItem(child_r6).icon);
1139
- i0.ɵɵadvance(2);
1140
- i0.ɵɵtextInterpolate(ctx_r7.asNavigationItem(child_r6).label);
1141
- } }
1142
- function NavigationItemComponent_ng_template_7_li_2_Template(rf, ctx) { if (rf & 1) {
1143
- i0.ɵɵelementStart(0, "li");
1144
- i0.ɵɵtemplate(1, NavigationItemComponent_ng_template_7_li_2_a_1_Template, 4, 3, "a", 10);
1145
- i0.ɵɵelementEnd();
1146
- } if (rf & 2) {
1147
- const child_r6 = ctx.$implicit;
1148
- const ctx_r5 = i0.ɵɵnextContext(2);
1149
- i0.ɵɵadvance(1);
1150
- i0.ɵɵproperty("ngIf", ctx_r5.isNavigationItem(child_r6));
1151
- } }
1152
- function NavigationItemComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1153
- const _r12 = i0.ɵɵgetCurrentView();
1154
- i0.ɵɵelementStart(0, "div", 8);
1155
- i0.ɵɵlistener("mouseenter", function NavigationItemComponent_ng_template_7_Template_div_mouseenter_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.lockeOverlay = true); })("mouseleave", function NavigationItemComponent_ng_template_7_Template_div_mouseleave_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); ctx_r13.lockeOverlay = false; return i0.ɵɵresetView(ctx_r13.onMouseleave()); });
1156
- i0.ɵɵelementStart(1, "ul");
1157
- i0.ɵɵtemplate(2, NavigationItemComponent_ng_template_7_li_2_Template, 2, 1, "li", 9);
1158
- i0.ɵɵelementEnd()();
1159
- } if (rf & 2) {
1160
- const ctx_r4 = i0.ɵɵnextContext();
1161
- i0.ɵɵadvance(2);
1162
- i0.ɵɵproperty("ngForOf", ctx_r4.children);
1163
- } }
1164
- class NavigationItemComponent {
1165
- constructor(router, sidenav, elementRef, renderer, overlay, viewContainerRef) {
1166
- this.router = router;
1167
- this.sidenav = sidenav;
1168
- this.elementRef = elementRef;
1169
- this.renderer = renderer;
1170
- this.overlay = overlay;
1171
- this.viewContainerRef = viewContainerRef;
1172
- this.children = null;
1173
- this.level = 0;
1174
- this.isActive = false;
1175
- this._subscription = new Subscription();
1176
- /**
1177
- * indicates the mouse is over the
1178
- */
1179
- this.lockeOverlay = false;
1180
- }
1181
- ngOnChanges(changes) {
1182
- if (changes.item) {
1183
- const item = changes.item.currentValue;
1184
- this.children =
1185
- item.children && item.children.length ? item.children : null;
1186
- }
1187
- }
1188
- ngAfterViewInit() {
1189
- this._subscription.add(this.router.events
1190
- .pipe(filter((event) => event instanceof NavigationEnd), startWith(true), delay(100), tap(() => {
1191
- if (this.routerLinkActive.isActive) {
1192
- if (!this.sidenav.collapsed$.value) {
1193
- // only close the overlay if sidenav collapsed
1194
- this._overlayRef?.detach();
1195
- }
1196
- this.renderer.addClass(this.elementRef.nativeElement, 'active');
1197
- }
1198
- else {
1199
- this.renderer.removeClass(this.elementRef.nativeElement, 'active');
1200
- }
1201
- }))
1202
- .subscribe());
1203
- }
1204
- ngOnInit() {
1205
- // detach the navigation overlay if the sidenav collapsed
1206
- // state is changed
1207
- this._subscription.add(this.sidenav.collapsed$
1208
- .pipe(skip(1), distinctUntilChanged(), tap(() => this._overlayRef?.detach()))
1209
- .subscribe());
1210
- }
1211
- ngOnDestroy() {
1212
- this._subscription?.unsubscribe();
1213
- this._overlayRef?.dispose();
1214
- }
1215
- onMouseenter() {
1216
- if (this.children) {
1217
- if (!this.routerLinkActive.isActive || this.sidenav.collapsed$.value) {
1218
- if (!this._overlayRef) {
1219
- this._overlayRef = this.overlay.create({
1220
- positionStrategy: this.overlay
1221
- .position()
1222
- .flexibleConnectedTo(this.elementRef)
1223
- .withPositions([
1224
- {
1225
- originY: 'top',
1226
- originX: 'end',
1227
- overlayY: 'top',
1228
- overlayX: 'start',
1229
- },
1230
- ]),
1231
- });
1232
- }
1233
- if (!this._overlayRef.hasAttached()) {
1234
- this._embeddedViewRef = this._overlayRef.attach(new TemplatePortal(this._navigationOverlay, this.viewContainerRef));
1235
- }
1236
- }
1237
- }
1238
- }
1239
- onMouseleave() {
1240
- if (!this.lockeOverlay) {
1241
- this._overlayRef?.detach();
1242
- }
1243
- }
1244
- // region type save item property
1245
- // required to check the type of the item property in the ngFor loop
1246
- isNavigationDividerItem(item) {
1247
- return item['divider'];
1248
- }
1249
- isNavigationItem(item) {
1250
- return !this.isNavigationDividerItem(item);
1251
- }
1252
- asNavigationItem(item) {
1253
- if (!this.isNavigationItem(item)) {
1254
- throw new Error('The item is not a NavigationItem');
1255
- }
1256
- return item;
1257
- }
1258
- static { this.ɵfac = function NavigationItemComponent_Factory(t) { return new (t || NavigationItemComponent)(i0.ɵɵdirectiveInject(Router), i0.ɵɵdirectiveInject(SidenavComponentService), i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(Renderer2), i0.ɵɵdirectiveInject(Overlay), i0.ɵɵdirectiveInject(ViewContainerRef)); }; }
1259
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationItemComponent, selectors: [["li", "rxap-navigation-item", ""]], viewQuery: function NavigationItemComponent_Query(rf, ctx) { if (rf & 1) {
1260
- i0.ɵɵviewQuery(RouterLinkActive, 7);
1261
- i0.ɵɵviewQuery(_c0$3, 5);
1262
- } if (rf & 2) {
1263
- let _t;
1264
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.routerLinkActive = _t.first);
1265
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._navigationOverlay = _t.first);
1266
- } }, hostAttrs: [1, "rxap-navigation-item"], hostVars: 2, hostBindings: function NavigationItemComponent_HostBindings(rf, ctx) { if (rf & 1) {
1267
- i0.ɵɵlistener("mouseenter", function NavigationItemComponent_mouseenter_HostBindingHandler() { return ctx.onMouseenter(); })("mouseleave", function NavigationItemComponent_mouseleave_HostBindingHandler() { return ctx.onMouseleave(); });
1268
- } if (rf & 2) {
1269
- i0.ɵɵclassProp("active", ctx.isActive);
1270
- } }, inputs: { item: "item", level: "level" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c1$2, decls: 9, vars: 15, consts: [["routerLinkActive", "link-active", "matRipple", "", 3, "routerLink", "matTooltipDisabled", "matTooltip"], ["class", "icon", 3, "rxapIcon", 4, "ngIf"], [3, "ngIf"], ["rxap-navigation", "", "class", "sub-items", "fxFlex", "nogrow", 3, "items", "level", 4, "ngIf"], ["navigationOverlay", ""], [1, "icon", 3, "rxapIcon"], [1, "label"], ["rxap-navigation", "", "fxFlex", "nogrow", 1, "sub-items", 3, "items", "level"], [1, "navigation-overlay-container", "mat-elevation-z1", 3, "mouseenter", "mouseleave"], [4, "ngFor", "ngForOf"], ["class", "navigation-link mat-body-2 mat-body-strong", "matRipple", "", 3, "routerLink", 4, "ngIf"], ["matRipple", "", 1, "navigation-link", "mat-body-2", "mat-body-strong", 3, "routerLink"]], template: function NavigationItemComponent_Template(rf, ctx) { if (rf & 1) {
1271
- i0.ɵɵelementStart(0, "a", 0);
1272
- i0.ɵɵpipe(1, "async");
1273
- i0.ɵɵtemplate(2, NavigationItemComponent_mat_icon_2_Template, 1, 1, "mat-icon", 1);
1274
- i0.ɵɵtemplate(3, NavigationItemComponent_ng_template_3_Template, 2, 1, "ng-template", 2);
1275
- i0.ɵɵpipe(4, "async");
1276
- i0.ɵɵelementEnd();
1277
- i0.ɵɵtemplate(5, NavigationItemComponent_ul_5_Template, 1, 3, "ul", 3);
1278
- i0.ɵɵpipe(6, "async");
1279
- i0.ɵɵtemplate(7, NavigationItemComponent_ng_template_7_Template, 3, 1, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
1280
- } if (rf & 2) {
1281
- i0.ɵɵclassMapInterpolate1("navigation-link mat-body-2 mat-body-strong navigation-level-", ctx.level, "");
1282
- i0.ɵɵproperty("routerLink", ctx.item.routerLink)("matTooltipDisabled", !i0.ɵɵpipeBind1(1, 9, ctx.sidenav.collapsed$))("matTooltip", ctx.item.label);
1283
- i0.ɵɵadvance(2);
1284
- i0.ɵɵproperty("ngIf", ctx.item.icon);
1285
- i0.ɵɵadvance(1);
1286
- i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(4, 11, ctx.sidenav.collapsed$));
1287
- i0.ɵɵadvance(2);
1288
- i0.ɵɵproperty("ngIf", ctx.routerLinkActive.isActive && !i0.ɵɵpipeBind1(6, 13, ctx.sidenav.collapsed$) && ctx.children);
1289
- } }, styles: [".rxap-navigation-item,.navigation-overlay-container{display:flex;flex-direction:column;min-height:48px}.rxap-navigation-item .navigation-link,.navigation-overlay-container .navigation-link{display:flex;flex-direction:row;align-items:center;text-decoration:none;height:48px}.rxap-navigation-item .navigation-link .icon,.navigation-overlay-container .navigation-link .icon{margin:0 16px}.rxap-navigation-item .navigation-link .label,.navigation-overlay-container .navigation-link .label{padding-right:12px}.rxap-navigation-item .navigation-link.navigation-level-1,.navigation-overlay-container .navigation-link.navigation-level-1{padding-left:52px}.rxap-navigation-item .navigation-link.navigation-level-1 .icon,.navigation-overlay-container .navigation-link.navigation-level-1 .icon{padding-left:0}.rxap-navigation-item .navigation-link.navigation-level-2,.navigation-overlay-container .navigation-link.navigation-level-2{padding-left:88px}.rxap-navigation-item .navigation-link.navigation-level-2 .icon,.navigation-overlay-container .navigation-link.navigation-level-2 .icon{padding-left:0}.navigation-overlay-container{padding:0 16px}.navigation-overlay-container ul{list-style-type:none;margin:0;padding:0}.navigation-overlay-container ul .navigation-link .label{padding-right:0}.navigation-overlay-container ul .navigation-link .icon{margin-left:0}\n"], encapsulation: 2, data: { animation: [
1290
- trigger('sub-nav', [
1291
- transition(':enter', [
1292
- style({ display: 'block', height: '0', overflow: 'hidden' }),
1293
- animate(150, style({ height: '*' })),
1294
- ]),
1295
- transition(':leave', [
1296
- style({ overflow: 'hidden' }),
1297
- animate(300, style({ height: '0' })),
1298
- style({ display: 'none' }),
1299
- ]),
1300
- ]),
1301
- ] }, changeDetection: 0 }); }
729
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationService, deps: [{ token: RXAP_NAVIGATION_CONFIG }, { token: INJECTOR }, { token: RXAP_NAVIGATION_CONFIG_INSERTS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
730
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationService, providedIn: 'root' }); }
1302
731
  }
1303
- __decorate([
1304
- Required,
1305
- __metadata("design:type", Object)
1306
- ], NavigationItemComponent.prototype, "item", void 0);
1307
- __decorate([
1308
- DebounceCall(100),
1309
- __metadata("design:type", Function),
1310
- __metadata("design:paramtypes", []),
1311
- __metadata("design:returntype", void 0)
1312
- ], NavigationItemComponent.prototype, "onMouseleave", null);
1313
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationItemComponent, [{
1314
- type: Component,
1315
- args: [{ selector: 'li[rxap-navigation-item]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
1316
- class: 'rxap-navigation-item',
1317
- }, animations: [
1318
- trigger('sub-nav', [
1319
- transition(':enter', [
1320
- style({ display: 'block', height: '0', overflow: 'hidden' }),
1321
- animate(150, style({ height: '*' })),
1322
- ]),
1323
- transition(':leave', [
1324
- style({ overflow: 'hidden' }),
1325
- animate(300, style({ height: '0' })),
1326
- style({ display: 'none' }),
1327
- ]),
1328
- ]),
1329
- ], template: "<a [routerLink]=\"item.routerLink\"\n routerLinkActive=\"link-active\"\n [matTooltipDisabled]=\"!(sidenav.collapsed$ | async)\"\n [matTooltip]=\"item.label\"\n class=\"navigation-link mat-body-2 mat-body-strong navigation-level-{{level}}\" matRipple>\n <mat-icon *ngIf=\"item.icon\" [rxapIcon]=\"item.icon\" class=\"icon\"></mat-icon>\n <ng-template [ngIf]=\"!(sidenav.collapsed$ | async)\">\n <span class=\"label\">{{ item.label }}</span>\n </ng-template>\n</a>\n\n<ul rxap-navigation\n *ngIf=\"routerLinkActive.isActive && !(sidenav.collapsed$ | async) && children\"\n [@sub-nav]\n [items]=\"children\"\n [level]=\"level + 1\"\n class=\"sub-items\"\n fxFlex=\"nogrow\"\n>\n</ul>\n\n<ng-template #navigationOverlay>\n <div class=\"navigation-overlay-container mat-elevation-z1\"\n (mouseenter)=\"lockeOverlay = true\" (mouseleave)=\"lockeOverlay = false; onMouseleave()\">\n <ul>\n <li *ngFor=\"let child of children\">\n <a *ngIf=\"isNavigationItem(child)\" [routerLink]=\"asNavigationItem(child).routerLink\"\n class=\"navigation-link mat-body-2 mat-body-strong\" matRipple>\n <mat-icon *ngIf=\"asNavigationItem(child).icon\" [rxapIcon]=\"asNavigationItem(child).icon\" class=\"icon\"></mat-icon>\n <span class=\"label\">{{ asNavigationItem(child).label }}</span>\n </a>\n </li>\n </ul>\n </div>\n</ng-template>\n", styles: [".rxap-navigation-item,.navigation-overlay-container{display:flex;flex-direction:column;min-height:48px}.rxap-navigation-item .navigation-link,.navigation-overlay-container .navigation-link{display:flex;flex-direction:row;align-items:center;text-decoration:none;height:48px}.rxap-navigation-item .navigation-link .icon,.navigation-overlay-container .navigation-link .icon{margin:0 16px}.rxap-navigation-item .navigation-link .label,.navigation-overlay-container .navigation-link .label{padding-right:12px}.rxap-navigation-item .navigation-link.navigation-level-1,.navigation-overlay-container .navigation-link.navigation-level-1{padding-left:52px}.rxap-navigation-item .navigation-link.navigation-level-1 .icon,.navigation-overlay-container .navigation-link.navigation-level-1 .icon{padding-left:0}.rxap-navigation-item .navigation-link.navigation-level-2,.navigation-overlay-container .navigation-link.navigation-level-2{padding-left:88px}.rxap-navigation-item .navigation-link.navigation-level-2 .icon,.navigation-overlay-container .navigation-link.navigation-level-2 .icon{padding-left:0}.navigation-overlay-container{padding:0 16px}.navigation-overlay-container ul{list-style-type:none;margin:0;padding:0}.navigation-overlay-container ul .navigation-link .label{padding-right:0}.navigation-overlay-container ul .navigation-link .icon{margin-left:0}\n"] }]
1330
- }], function () { return [{ type: i3$1.Router, decorators: [{
1331
- type: Inject,
1332
- args: [Router]
1333
- }] }, { type: SidenavComponentService, decorators: [{
1334
- type: Inject,
1335
- args: [SidenavComponentService]
1336
- }] }, { type: i0.ElementRef, decorators: [{
1337
- type: Inject,
1338
- args: [ElementRef]
1339
- }] }, { type: i0.Renderer2, decorators: [{
1340
- type: Inject,
1341
- args: [Renderer2]
1342
- }] }, { type: i3$2.Overlay, decorators: [{
1343
- type: Inject,
1344
- args: [Overlay]
1345
- }] }, { type: i0.ViewContainerRef, decorators: [{
1346
- type: Inject,
1347
- args: [ViewContainerRef]
1348
- }] }]; }, { routerLinkActive: [{
1349
- type: ViewChild,
1350
- args: [RouterLinkActive, { static: true }]
1351
- }], item: [{
1352
- type: Input
1353
- }], level: [{
1354
- type: Input
1355
- }], isActive: [{
1356
- type: HostBinding,
1357
- args: ['class.active']
1358
- }], _navigationOverlay: [{
1359
- type: ViewChild,
1360
- args: ['navigationOverlay']
1361
- }], onMouseenter: [{
1362
- type: HostListener,
1363
- args: ['mouseenter']
1364
- }], onMouseleave: [{
1365
- type: HostListener,
1366
- args: ['mouseleave']
1367
- }] }); })();
732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationService, decorators: [{
733
+ type: Injectable,
734
+ args: [{ providedIn: 'root' }]
735
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
736
+ type: Inject,
737
+ args: [RXAP_NAVIGATION_CONFIG]
738
+ }] }, { type: undefined, decorators: [{
739
+ type: Inject,
740
+ args: [INJECTOR]
741
+ }] }, { type: undefined, decorators: [{
742
+ type: Optional
743
+ }, {
744
+ type: Inject,
745
+ args: [RXAP_NAVIGATION_CONFIG_INSERTS]
746
+ }] }]; } });
1368
747
 
1369
- const _c0$2 = ["rxap-navigation", ""];
1370
- function NavigationComponent_ng_template_0_ng_template_0_div_1_span_1_Template(rf, ctx) { if (rf & 1) {
1371
- i0.ɵɵelementStart(0, "span", 2);
1372
- i0.ɵɵtext(1);
1373
- i0.ɵɵelementEnd();
1374
- } if (rf & 2) {
1375
- const item_r1 = i0.ɵɵnextContext(3).$implicit;
1376
- i0.ɵɵadvance(1);
1377
- i0.ɵɵtextInterpolate(item_r1.title);
1378
- } }
1379
- function NavigationComponent_ng_template_0_ng_template_0_div_1_Template(rf, ctx) { if (rf & 1) {
1380
- i0.ɵɵelementStart(0, "div", 4);
1381
- i0.ɵɵtemplate(1, NavigationComponent_ng_template_0_ng_template_0_div_1_span_1_Template, 2, 1, "span", 5);
1382
- i0.ɵɵelementEnd();
1383
- } if (rf & 2) {
1384
- const item_r1 = i0.ɵɵnextContext(2).$implicit;
1385
- i0.ɵɵadvance(1);
1386
- i0.ɵɵproperty("ngIf", item_r1.title);
1387
- } }
1388
- function NavigationComponent_ng_template_0_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1389
- i0.ɵɵelement(0, "mat-divider", 2);
1390
- i0.ɵɵtemplate(1, NavigationComponent_ng_template_0_ng_template_0_div_1_Template, 2, 1, "div", 3);
1391
- i0.ɵɵpipe(2, "async");
1392
- } if (rf & 2) {
1393
- const ctx_r2 = i0.ɵɵnextContext(2);
1394
- i0.ɵɵadvance(1);
1395
- i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(2, 1, ctx_r2.sidenav.collapsed$));
1396
- } }
1397
- function NavigationComponent_ng_template_0_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1398
- i0.ɵɵelement(0, "li", 6);
1399
- } if (rf & 2) {
1400
- const item_r1 = i0.ɵɵnextContext().$implicit;
1401
- const ctx_r3 = i0.ɵɵnextContext();
1402
- i0.ɵɵproperty("level", ctx_r3.level)("item", ctx_r3.asNavigationItem(item_r1));
1403
- } }
1404
- function NavigationComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1405
- i0.ɵɵtemplate(0, NavigationComponent_ng_template_0_ng_template_0_Template, 3, 3, "ng-template", 1);
1406
- i0.ɵɵtemplate(1, NavigationComponent_ng_template_0_ng_template_1_Template, 1, 2, "ng-template", 1);
1407
- } if (rf & 2) {
1408
- const item_r1 = ctx.$implicit;
1409
- const ctx_r0 = i0.ɵɵnextContext();
1410
- i0.ɵɵproperty("ngIf", ctx_r0.isNavigationDividerItem(item_r1));
1411
- i0.ɵɵadvance(1);
1412
- i0.ɵɵproperty("ngIf", ctx_r0.isNavigationItem(item_r1));
1413
- } }
1414
748
  class NavigationComponent {
1415
- set root(value) {
1416
- this._root = coerceBoolean(value);
1417
- }
1418
749
  constructor(navigationService, cdr, sidenav) {
1419
750
  this.navigationService = navigationService;
1420
751
  this.cdr = cdr;
1421
752
  this.sidenav = sidenav;
1422
- this._root = false;
1423
753
  this.level = 0;
754
+ this._root = false;
755
+ }
756
+ set root(value) {
757
+ this._root = coerceBoolean(value);
1424
758
  }
1425
759
  ngOnInit() {
1426
760
  if (this._root) {
@@ -1429,6 +763,7 @@ class NavigationComponent {
1429
763
  .pipe(tap((navigation) => (this.items = navigation)), tap(() => this.cdr.detectChanges()))
1430
764
  .subscribe();
1431
765
  }
766
+ this.items ??= [];
1432
767
  }
1433
768
  ngOnDestroy() {
1434
769
  this.subscription?.unsubscribe();
@@ -1447,226 +782,210 @@ class NavigationComponent {
1447
782
  }
1448
783
  return item;
1449
784
  }
1450
- static { this.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(i0.ɵɵdirectiveInject(NavigationService), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(SidenavComponentService)); }; }
1451
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["ul", "rxap-navigation", ""]], hostAttrs: [1, "rxap-navigation"], hostVars: 2, hostBindings: function NavigationComponent_HostBindings(rf, ctx) { if (rf & 2) {
1452
- i0.ɵɵclassProp("rxap-root-navigation", ctx._root);
1453
- } }, inputs: { root: "root", items: "items", level: "level" }, attrs: _c0$2, decls: 1, vars: 1, consts: [["ngFor", "", 3, "ngForOf"], [3, "ngIf"], ["fxFlex", "nogrow"], ["class", "divider-title", "fxFlex", "nogrow", "fxLayout", "row", "fxLayoutAlign", "start end", 4, "ngIf"], ["fxFlex", "nogrow", "fxLayout", "row", "fxLayoutAlign", "start end", 1, "divider-title"], ["fxFlex", "nogrow", 4, "ngIf"], ["rxap-navigation-item", "", 1, "item", 3, "level", "item"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
1454
- i0.ɵɵtemplate(0, NavigationComponent_ng_template_0_Template, 2, 2, "ng-template", 0);
1455
- } if (rf & 2) {
1456
- i0.ɵɵproperty("ngForOf", ctx.items);
1457
- } }, dependencies: [i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutAlignDirective, i1$3.DefaultFlexDirective, i2$1.NgForOf, i2$1.NgIf, i3$4.MatDivider, NavigationItemComponent, i2$1.AsyncPipe], styles: [".rxap-navigation{list-style-type:none;padding:0}.rxap-navigation .divider-title{padding-left:18px;height:28px;align-content:center}\n"], encapsulation: 2, changeDetection: 0 }); }
785
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationComponent, deps: [{ token: NavigationService }, { token: ChangeDetectorRef }, { token: SidenavComponentService }], target: i0.ɵɵFactoryTarget.Component }); }
786
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: NavigationComponent, isStandalone: true, selector: "ul[rxap-navigation]", inputs: { items: "items", level: "level", root: "root" }, host: { properties: { "class.rxap-root-navigation": "this._root" }, classAttribute: "list-none dark:text-neutral-400 text-neutral-700" }, ngImport: i0, template: "<ng-template [ngForOf]=\"items\" let-item ngFor>\n <ng-template [ngIf]=\"isNavigationDividerItem(item)\">\n <mat-divider></mat-divider>\n <div *ngIf=\"(sidenav.collapsed$ | async) === false\" class=\"pl-5 h-6\">\n <span *ngIf=\"item.title\">{{item.title}}</span>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"isNavigationItem(item)\">\n <li [item]=\"asNavigationItem(item)\" [level]=\"level\" class=\"dark:hover:text-white hover:text-black\"\n rxap-navigation-item></li>\n </ng-template>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return NgFor; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(function () { return NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: i0.forwardRef(function () { return MatDividerModule; }) }, { kind: "component", type: i0.forwardRef(function () { return i3$4.MatDivider; }), selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i0.forwardRef(function () { return NavigationItemComponent; }), selector: "li[rxap-navigation-item]", inputs: ["level", "item"] }, { kind: "pipe", type: i0.forwardRef(function () { return AsyncPipe; }), name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1458
787
  }
1459
- __decorate([
1460
- Required,
1461
- __metadata("design:type", Array)
1462
- ], NavigationComponent.prototype, "items", void 0);
1463
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationComponent, [{
1464
- type: Component,
1465
- args: [{ selector: 'ul[rxap-navigation]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'rxap-navigation' }, template: "<ng-template [ngForOf]=\"items\" let-item ngFor>\n <ng-template [ngIf]=\"isNavigationDividerItem(item)\">\n <mat-divider fxFlex=\"nogrow\"></mat-divider>\n <div *ngIf=\"!(sidenav.collapsed$ | async)\" class=\"divider-title\" fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start end\">\n <span fxFlex=\"nogrow\" *ngIf=\"item.title\">{{item.title}}</span>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"isNavigationItem(item)\">\n <li class=\"item\" rxap-navigation-item [level]=\"level\" [item]=\"asNavigationItem(item)\"></li>\n </ng-template>\n</ng-template>\n", styles: [".rxap-navigation{list-style-type:none;padding:0}.rxap-navigation .divider-title{padding-left:18px;height:28px;align-content:center}\n"] }]
1466
- }], function () { return [{ type: NavigationService, decorators: [{
1467
- type: Inject,
1468
- args: [NavigationService]
1469
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
1470
- type: Inject,
1471
- args: [ChangeDetectorRef]
1472
- }] }, { type: SidenavComponentService, decorators: [{
1473
- type: Inject,
1474
- args: [SidenavComponentService]
1475
- }] }]; }, { _root: [{
1476
- type: HostBinding,
1477
- args: ['class.rxap-root-navigation']
1478
- }], root: [{
1479
- type: Input
1480
- }], items: [{
1481
- type: Input
1482
- }], level: [{
1483
- type: Input
1484
- }] }); })();
788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationComponent, decorators: [{
789
+ type: Component,
790
+ args: [{ selector: 'ul[rxap-navigation]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, host: {
791
+ class: 'list-none dark:text-neutral-400 text-neutral-700',
792
+ }, imports: [
793
+ NgFor,
794
+ NgIf,
795
+ MatDividerModule,
796
+ forwardRef(() => NavigationItemComponent),
797
+ AsyncPipe,
798
+ ], template: "<ng-template [ngForOf]=\"items\" let-item ngFor>\n <ng-template [ngIf]=\"isNavigationDividerItem(item)\">\n <mat-divider></mat-divider>\n <div *ngIf=\"(sidenav.collapsed$ | async) === false\" class=\"pl-5 h-6\">\n <span *ngIf=\"item.title\">{{item.title}}</span>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"isNavigationItem(item)\">\n <li [item]=\"asNavigationItem(item)\" [level]=\"level\" class=\"dark:hover:text-white hover:text-black\"\n rxap-navigation-item></li>\n </ng-template>\n</ng-template>\n" }]
799
+ }], ctorParameters: function () { return [{ type: NavigationService, decorators: [{
800
+ type: Inject,
801
+ args: [NavigationService]
802
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
803
+ type: Inject,
804
+ args: [ChangeDetectorRef]
805
+ }] }, { type: SidenavComponentService, decorators: [{
806
+ type: Inject,
807
+ args: [SidenavComponentService]
808
+ }] }]; }, propDecorators: { items: [{
809
+ type: Input
810
+ }], level: [{
811
+ type: Input
812
+ }], _root: [{
813
+ type: HostBinding,
814
+ args: ['class.rxap-root-navigation']
815
+ }], root: [{
816
+ type: Input
817
+ }] } });
1485
818
 
1486
- function SidenavComponent_ng_template_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
1487
- i0.ɵɵelementContainer(0);
1488
- } }
1489
- function SidenavComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
1490
- i0.ɵɵelementStart(0, "div", 11);
1491
- i0.ɵɵpipe(1, "async");
1492
- i0.ɵɵtemplate(2, SidenavComponent_ng_template_3_ng_container_2_Template, 1, 0, "ng-container", 12);
1493
- i0.ɵɵelementEnd();
1494
- i0.ɵɵelement(3, "mat-divider", 13);
1495
- i0.ɵɵpipe(4, "async");
1496
- } if (rf & 2) {
1497
- const ctx_r0 = i0.ɵɵnextContext();
1498
- let tmp_1_0;
1499
- i0.ɵɵproperty("fxHide", i0.ɵɵpipeBind1(1, 3, ctx_r0.sidenav.collapsed$));
1500
- i0.ɵɵadvance(2);
1501
- i0.ɵɵproperty("ngTemplateOutlet", (tmp_1_0 = ctx_r0.sidenavHeaderDirective == null ? null : ctx_r0.sidenavHeaderDirective.template) !== null && tmp_1_0 !== undefined ? tmp_1_0 : null);
1502
- i0.ɵɵadvance(1);
1503
- i0.ɵɵproperty("fxHide", i0.ɵɵpipeBind1(4, 5, ctx_r0.sidenav.collapsed$));
1504
- } }
1505
- function SidenavComponent_ng_template_15_ng_container_4_Template(rf, ctx) { if (rf & 1) {
1506
- i0.ɵɵelementContainer(0);
1507
- } }
1508
- function SidenavComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
1509
- i0.ɵɵelement(0, "mat-divider", 13);
1510
- i0.ɵɵpipe(1, "async");
1511
- i0.ɵɵelementStart(2, "div", 14);
1512
- i0.ɵɵpipe(3, "async");
1513
- i0.ɵɵtemplate(4, SidenavComponent_ng_template_15_ng_container_4_Template, 1, 0, "ng-container", 12);
1514
- i0.ɵɵelementEnd();
1515
- } if (rf & 2) {
1516
- const ctx_r1 = i0.ɵɵnextContext();
1517
- let tmp_2_0;
1518
- i0.ɵɵproperty("fxHide", i0.ɵɵpipeBind1(1, 3, ctx_r1.sidenav.collapsed$));
1519
- i0.ɵɵadvance(2);
1520
- i0.ɵɵproperty("fxHide", i0.ɵɵpipeBind1(3, 5, ctx_r1.sidenav.collapsed$));
1521
- i0.ɵɵadvance(2);
1522
- i0.ɵɵproperty("ngTemplateOutlet", (tmp_2_0 = ctx_r1.sidenavFooterDirective == null ? null : ctx_r1.sidenavFooterDirective.template) !== null && tmp_2_0 !== undefined ? tmp_2_0 : null);
1523
- } }
1524
- const _c2$1 = function (a0) { return { "collapsed": a0 }; };
1525
- class SidenavComponent {
1526
- constructor(sidenav) {
1527
- this.sidenav = sidenav;
819
+ class LayoutComponent {
820
+ constructor(layoutComponentService, environment) {
821
+ this.layoutComponentService = layoutComponentService;
822
+ this.environment = environment;
823
+ this.sidenavMode = 'over';
1528
824
  }
1529
- static { this.ɵfac = function SidenavComponent_Factory(t) { return new (t || SidenavComponent)(i0.ɵɵdirectiveInject(SidenavComponentService)); }; }
1530
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavComponent, selectors: [["rxap-sidenav"]], contentQueries: function SidenavComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
1531
- i0.ɵɵcontentQuery(dirIndex, SidenavFooterDirective, 5);
1532
- i0.ɵɵcontentQuery(dirIndex, SidenavHeaderDirective, 5);
1533
- } if (rf & 2) {
1534
- let _t;
1535
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenavFooterDirective = _t.first);
1536
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenavHeaderDirective = _t.first);
1537
- } }, hostAttrs: [1, "rxap-layout-sidenav"], decls: 16, vars: 15, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
1538
- /**
1539
- * @suppress {msgDescriptions}
1540
- */
1541
- const MSG_EXTERNAL_1144722711335201698$$LIB_SIDENAV_SIDENAV_COMPONENT_TS_1 = goog.getMsg("Collapse sidebar");
1542
- i18n_0 = MSG_EXTERNAL_1144722711335201698$$LIB_SIDENAV_SIDENAV_COMPONENT_TS_1;
825
+ get release() {
826
+ return DetermineReleaseName(this.environment);
827
+ }
828
+ toggleSidenavMode() {
829
+ if (this.sidenavMode === 'over') {
830
+ this.sidenavMode = 'side';
831
+ this.sidenav.open();
1543
832
  }
1544
833
  else {
1545
- i18n_0 = $localize `:␟98effe6eb558f87ab061ab608a31b44adec4e2ae␟1144722711335201698:Collapse sidebar`;
1546
- } return [[1, "container", 3, "ngClass"], ["fxLayout", "column", "fxLayoutAlign", "space-between stretch", 1, "inner"], [3, "ngIf"], ["fxFlex", "grow", 1, "nav-container"], ["fxLayout", "column", "root", "", "rxap-navigation", ""], ["fxFlex", "nogrow"], ["mat-button", "", "fxFlex", "nogrow", 1, "sidebar-toggle", 3, "ngClass", "click"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "16px", 1, "sidebar-toggle-inner"], ["fxFlex", "nogrow", 1, "arrow"], ["fxFlex", "grow", 1, "label", 3, "fxHide"], i18n_0, ["fxFlex", "nogrow", 1, "header", 3, "fxHide"], [4, "ngTemplateOutlet"], ["fxFlex", "nogrow", 3, "fxHide"], ["fxFlex", "nogrow", 1, "footer", 3, "fxHide"]]; }, template: function SidenavComponent_Template(rf, ctx) { if (rf & 1) {
1547
- i0.ɵɵelementStart(0, "div", 0);
1548
- i0.ɵɵpipe(1, "async");
1549
- i0.ɵɵelementStart(2, "div", 1);
1550
- i0.ɵɵtemplate(3, SidenavComponent_ng_template_3_Template, 5, 7, "ng-template", 2);
1551
- i0.ɵɵelementStart(4, "div", 3);
1552
- i0.ɵɵelement(5, "ul", 4);
1553
- i0.ɵɵelementEnd();
1554
- i0.ɵɵelement(6, "mat-divider", 5);
1555
- i0.ɵɵelementStart(7, "button", 6);
1556
- i0.ɵɵlistener("click", function SidenavComponent_Template_button_click_7_listener() { return ctx.sidenav.toggleNavigationCollapse(); });
1557
- i0.ɵɵpipe(8, "async");
1558
- i0.ɵɵelementStart(9, "span", 7)(10, "mat-icon", 8);
1559
- i0.ɵɵtext(11, "double_arrow");
1560
- i0.ɵɵelementEnd();
1561
- i0.ɵɵelementStart(12, "span", 9);
1562
- i0.ɵɵi18n(13, 10);
1563
- i0.ɵɵpipe(14, "async");
1564
- i0.ɵɵelementEnd()()();
1565
- i0.ɵɵtemplate(15, SidenavComponent_ng_template_15_Template, 5, 7, "ng-template", 2);
1566
- i0.ɵɵelementEnd()();
1567
- } if (rf & 2) {
1568
- let tmp_4_0;
1569
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c2$1, i0.ɵɵpipeBind1(1, 5, ctx.sidenav.collapsed$)));
1570
- i0.ɵɵadvance(3);
1571
- i0.ɵɵproperty("ngIf", ctx.sidenavHeaderDirective == null ? null : ctx.sidenavHeaderDirective.template);
1572
- i0.ɵɵadvance(4);
1573
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c2$1, i0.ɵɵpipeBind1(8, 7, ctx.sidenav.collapsed$)));
1574
- i0.ɵɵadvance(5);
1575
- i0.ɵɵproperty("fxHide", i0.ɵɵpipeBind1(14, 9, ctx.sidenav.collapsed$));
1576
- i0.ɵɵadvance(3);
1577
- i0.ɵɵproperty("ngIf", (tmp_4_0 = ctx.sidenavFooterDirective == null ? null : ctx.sidenavFooterDirective.template) !== null && tmp_4_0 !== undefined ? tmp_4_0 : null);
1578
- } }, dependencies: [i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutGapDirective, i1$3.DefaultLayoutAlignDirective, i1$3.DefaultFlexDirective, i5$1.DefaultShowHideDirective, i5$1.DefaultClassDirective, NavigationComponent, i2$1.NgClass, i2$1.NgIf, i2$1.NgTemplateOutlet, i3$4.MatDivider, i2$2.MatIcon, i1$1.MatLegacyButton, i2$1.AsyncPipe], styles: [".container[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{height:100%}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding-bottom:12px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .footer[_ngcontent-%COMP%]{padding-top:12px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]{overflow-y:scroll;padding-top:12px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:2px}.container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .nav-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px}.container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{min-height:48px}.container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] .sidebar-toggle-inner[_ngcontent-%COMP%]{padding:0}.container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.container[_ngcontent-%COMP%] .sidebar-toggle.collapsed[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{transform:initial}.container[_ngcontent-%COMP%] .sidebar-toggle.collapsed[_ngcontent-%COMP%] .sidebar-toggle-inner[_ngcontent-%COMP%]{justify-content:space-around!important}"], changeDetection: 0 }); }
834
+ this.sidenavMode = 'over';
835
+ }
836
+ }
837
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, deps: [{ token: LayoutComponentService }, { token: RXAP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Component }); }
838
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LayoutComponent, isStandalone: true, selector: "rxap-layout", viewQueries: [{ propertyName: "sidenav", first: true, predicate: MatSidenav, descendants: true, static: true }], ngImport: i0, template: "<div class=\"flex flex-col h-screen justify-between\">\n <rxap-header [sidenav]=\"sidenav\" class=\"z-10 w-full fixed top-0\"></rxap-header>\n <mat-sidenav-container [ngClass]=\"{\n 'mb-16': (layoutComponentService.fixedBottomGap$ | async) === 64,\n 'mb-32': (layoutComponentService.fixedBottomGap$ | async) === 128,\n }\" class=\"grow mt-16\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n (mouseenter)=\"sidenavMode === 'over' && matSidenav.open()\"\n (mouseleave)=\"sidenavMode === 'over' && matSidenav.close()\"\n [fixedBottomGap]=\"layoutComponentService.fixedBottomGap$ | async\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"layoutComponentService.fixedTopGap$ | async\"\n [mode]=\"sidenavMode\"\n [opened]=\"false\"\n class=\"sidenav\"\n >\n <div class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n <div (click)=\"toggleSidenavMode()\"\n class=\"pl-2 pr-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <button mat-icon-button>\n <mat-icon *ngIf=\"sidenavMode === 'over'\">radio_button_unchecked</mat-icon>\n <mat-icon *ngIf=\"sidenavMode === 'side'\">radio_button_checked</mat-icon>\n </button>\n </div>\n\n <ul class=\"grow self-stretch\" root rxap-navigation></ul>\n\n <img\n [src]=\"layoutComponentService.logo.src ?? 'https://via.placeholder.com/256x128px'\"\n [routerLink]=\"['/']\"\n [width]=\"layoutComponentService.logo.width ?? 256\"\n alt=\"logo\"\n class=\"grow-0 mx-16\"\n />\n <div class=\"grow-0 px-16\">\n <span>{{release}}</span>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content\n [ngClass]=\"{ opened: matSidenav.opened, side: sidenavMode === 'side' }\"\n class=\"ml-16 p-4\"\n >\n <router-outlet></router-outlet>\n </mat-sidenav-content>\n </mat-sidenav-container>\n <rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n</div>\n<!--<rxap-window-task-bar-container></rxap-window-task-bar-container>-->\n", styles: [":host .sidenav:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .sidenav ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}.footer{position:fixed;bottom:0;left:0;right:0;z-index:100}.header{position:fixed;top:0;left:0;right:0;z-index:100}.task-bar{position:fixed;bottom:0;right:0;left:0;z-index:100}\n"], dependencies: [{ kind: "component", type: HeaderComponent, selector: "rxap-header", inputs: ["sidenav", "color"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i2$4.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i2$4.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i2$4.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i2$5.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FooterComponent, selector: "rxap-footer" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: NavigationComponent, selector: "ul[rxap-navigation]", inputs: ["items", "level", "root"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1579
839
  }
1580
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavComponent, [{
1581
- type: Component,
1582
- args: [{ selector: 'rxap-sidenav', changeDetection: ChangeDetectionStrategy.OnPush, host: {
1583
- class: 'rxap-layout-sidenav'
1584
- }, template: "<div class=\"container\" [ngClass]=\"{ 'collapsed': sidenav.collapsed$ | async }\">\n <div class=\"inner\"\n fxLayout=\"column\"\n fxLayoutAlign=\"space-between stretch\">\n <ng-template [ngIf]=\"sidenavHeaderDirective?.template\">\n <div fxFlex=\"nogrow\" class=\"header\" [fxHide]=\"sidenav.collapsed$ | async\">\n <ng-container *ngTemplateOutlet=\"sidenavHeaderDirective?.template ?? null\"></ng-container>\n </div>\n <mat-divider fxFlex=\"nogrow\" [fxHide]=\"sidenav.collapsed$ | async\"></mat-divider>\n </ng-template>\n <div fxFlex=\"grow\" class=\"nav-container\">\n <ul fxLayout=\"column\" root rxap-navigation></ul>\n </div>\n <mat-divider fxFlex=\"nogrow\"></mat-divider>\n <button mat-button class=\"sidebar-toggle\" [ngClass]=\"{ 'collapsed': sidenav.collapsed$ | async }\" fxFlex=\"nogrow\"\n (click)=\"sidenav.toggleNavigationCollapse()\">\n <span class=\"sidebar-toggle-inner\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon fxFlex=\"nogrow\" class=\"arrow\">double_arrow</mat-icon>\n <span [fxHide]=\"sidenav.collapsed$ | async\" class=\"label\" fxFlex=\"grow\" i18n>Collapse sidebar</span>\n </span>\n </button>\n <ng-template [ngIf]=\"sidenavFooterDirective?.template ?? null\">\n <mat-divider fxFlex=\"nogrow\" [fxHide]=\"sidenav.collapsed$ | async\"></mat-divider>\n <div fxFlex=\"nogrow\" class=\"footer\" [fxHide]=\"sidenav.collapsed$ | async\">\n <ng-container *ngTemplateOutlet=\"sidenavFooterDirective?.template ?? null\"></ng-container>\n </div>\n </ng-template>\n </div>\n</div>\n", styles: [".container,.container .inner{height:100%}.container .inner .header{padding-bottom:12px}.container .inner .footer{padding-top:12px}.container .inner .nav-container{overflow-y:scroll;padding-top:12px}.container .inner .nav-container::-webkit-scrollbar{width:6px}.container .inner .nav-container::-webkit-scrollbar-track{border-radius:2px}.container .inner .nav-container::-webkit-scrollbar-thumb{border-radius:10px}.container .sidebar-toggle{min-height:48px}.container .sidebar-toggle .sidebar-toggle-inner{padding:0}.container .sidebar-toggle .arrow{transform:rotate(180deg)}.container .sidebar-toggle.collapsed .arrow{transform:initial}.container .sidebar-toggle.collapsed .sidebar-toggle-inner{justify-content:space-around!important}\n"] }]
1585
- }], function () { return [{ type: SidenavComponentService }]; }, { sidenavFooterDirective: [{
1586
- type: ContentChild,
1587
- args: [SidenavFooterDirective]
1588
- }], sidenavHeaderDirective: [{
1589
- type: ContentChild,
1590
- args: [SidenavHeaderDirective]
1591
- }] }); })();
840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, decorators: [{
841
+ type: Component,
842
+ args: [{ selector: 'rxap-layout', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
843
+ HeaderComponent,
844
+ MatSidenavModule,
845
+ AsyncPipe,
846
+ FlexLayoutModule,
847
+ MatIconModule,
848
+ MatButtonModule,
849
+ RouterLink,
850
+ NgIf,
851
+ FooterComponent,
852
+ MatMenuModule,
853
+ NgOptimizedImage,
854
+ NavigationComponent,
855
+ RouterOutlet,
856
+ ], template: "<div class=\"flex flex-col h-screen justify-between\">\n <rxap-header [sidenav]=\"sidenav\" class=\"z-10 w-full fixed top-0\"></rxap-header>\n <mat-sidenav-container [ngClass]=\"{\n 'mb-16': (layoutComponentService.fixedBottomGap$ | async) === 64,\n 'mb-32': (layoutComponentService.fixedBottomGap$ | async) === 128,\n }\" class=\"grow mt-16\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n (mouseenter)=\"sidenavMode === 'over' && matSidenav.open()\"\n (mouseleave)=\"sidenavMode === 'over' && matSidenav.close()\"\n [fixedBottomGap]=\"layoutComponentService.fixedBottomGap$ | async\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"layoutComponentService.fixedTopGap$ | async\"\n [mode]=\"sidenavMode\"\n [opened]=\"false\"\n class=\"sidenav\"\n >\n <div class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n <div (click)=\"toggleSidenavMode()\"\n class=\"pl-2 pr-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <button mat-icon-button>\n <mat-icon *ngIf=\"sidenavMode === 'over'\">radio_button_unchecked</mat-icon>\n <mat-icon *ngIf=\"sidenavMode === 'side'\">radio_button_checked</mat-icon>\n </button>\n </div>\n\n <ul class=\"grow self-stretch\" root rxap-navigation></ul>\n\n <img\n [src]=\"layoutComponentService.logo.src ?? 'https://via.placeholder.com/256x128px'\"\n [routerLink]=\"['/']\"\n [width]=\"layoutComponentService.logo.width ?? 256\"\n alt=\"logo\"\n class=\"grow-0 mx-16\"\n />\n <div class=\"grow-0 px-16\">\n <span>{{release}}</span>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content\n [ngClass]=\"{ opened: matSidenav.opened, side: sidenavMode === 'side' }\"\n class=\"ml-16 p-4\"\n >\n <router-outlet></router-outlet>\n </mat-sidenav-content>\n </mat-sidenav-container>\n <rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n</div>\n<!--<rxap-window-task-bar-container></rxap-window-task-bar-container>-->\n", styles: [":host .sidenav:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .sidenav ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}.footer{position:fixed;bottom:0;left:0;right:0;z-index:100}.header{position:fixed;top:0;left:0;right:0;z-index:100}.task-bar{position:fixed;bottom:0;right:0;left:0;z-index:100}\n"] }]
857
+ }], ctorParameters: function () { return [{ type: LayoutComponentService }, { type: undefined, decorators: [{
858
+ type: Inject,
859
+ args: [RXAP_ENVIRONMENT]
860
+ }] }]; }, propDecorators: { sidenav: [{
861
+ type: ViewChild,
862
+ args: [MatSidenav, { static: true }]
863
+ }] } });
1592
864
 
1593
- class SidenavContentComponentService {
1594
- constructor(footerComponentService, headerComponentService) {
1595
- this.footerComponentService = footerComponentService;
1596
- this.headerComponentService = headerComponentService;
1597
- this.headerRows$ = new BehaviorSubject(1);
1598
- this.headerRows$.next(this.headerComponentService.countComponent);
1599
- this.footerComponentService.portalCount$.pipe().subscribe();
1600
- this.footerRows$ = this.footerComponentService.portalCount$;
1601
- this.headerComponentService.update$.pipe(tap(() => this.headerRows$.next(this.headerComponentService.countComponent))).subscribe();
1602
- this.innerHeight$ = combineLatest([
1603
- this.headerRows$,
1604
- this.footerRows$
1605
- ]).pipe(map(([headerRows, footerRows]) => `calc(100% - ${64 * (headerRows + footerRows)}px)`));
1606
- this.marginTop$ = this.headerRows$.pipe(map(headerRows => `${headerRows * 64}px`));
1607
- this.marginBottom$ = this.footerRows$.pipe(map(footerRows => `${footerRows * 64}px`));
1608
- }
1609
- static { this.ɵfac = function SidenavContentComponentService_Factory(t) { return new (t || SidenavContentComponentService)(i0.ɵɵinject(FooterService), i0.ɵɵinject(HeaderService)); }; }
1610
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SidenavContentComponentService, factory: SidenavContentComponentService.ɵfac, providedIn: 'root' }); }
865
+ class ReplaceRouterPathsService {
866
+ transform(routerLink) {
867
+ return of(routerLink);
868
+ }
869
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
870
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, providedIn: 'root' }); }
1611
871
  }
1612
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavContentComponentService, [{
1613
- type: Injectable,
1614
- args: [{ providedIn: 'root' }]
1615
- }], function () { return [{ type: i1.FooterService, decorators: [{
1616
- type: Inject,
1617
- args: [FooterService]
1618
- }] }, { type: i1.HeaderService, decorators: [{
1619
- type: Inject,
1620
- args: [HeaderService]
1621
- }] }]; }, null); })();
872
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, decorators: [{
873
+ type: Injectable,
874
+ args: [{ providedIn: 'root' }]
875
+ }] });
1622
876
 
1623
- const _c0$1 = function (a0) { return { "open": a0 }; };
1624
- const _c1$1 = function (a0, a1, a2) { return { height: a0, marginTop: a1, marginBottom: a2 }; };
1625
- const _c2 = ["*"];
1626
- class SidenavContentComponent {
1627
- constructor(sccs) {
1628
- this.sccs = sccs;
877
+ class SidenavFooterDirective {
878
+ constructor(template) {
879
+ this.template = template;
880
+ }
881
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavFooterDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
882
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SidenavFooterDirective, isStandalone: true, selector: "[rxapSidenavFooter]", ngImport: i0 }); }
883
+ }
884
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavFooterDirective, decorators: [{
885
+ type: Directive,
886
+ args: [{
887
+ selector: '[rxapSidenavFooter]',
888
+ standalone: true,
889
+ }]
890
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
891
+ type: Inject,
892
+ args: [TemplateRef]
893
+ }] }]; } });
894
+
895
+ class SidenavHeaderDirective {
896
+ constructor(template) {
897
+ this.template = template;
898
+ }
899
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavHeaderDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
900
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SidenavHeaderDirective, isStandalone: true, selector: "[rxapSidenavHeader]", ngImport: i0 }); }
901
+ }
902
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavHeaderDirective, decorators: [{
903
+ type: Directive,
904
+ args: [{
905
+ selector: '[rxapSidenavHeader]',
906
+ standalone: true,
907
+ }]
908
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
909
+ type: Inject,
910
+ args: [TemplateRef]
911
+ }] }]; } });
912
+
913
+ class SidenavComponent {
914
+ constructor(sidenav) {
915
+ this.sidenav = sidenav;
916
+ }
917
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponent, deps: [{ token: SidenavComponentService }], target: i0.ɵɵFactoryTarget.Component }); }
918
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SidenavComponent, isStandalone: true, selector: "rxap-sidenav", host: { classAttribute: "rxap-layout-sidenav" }, queries: [{ propertyName: "sidenavFooterDirective", first: true, predicate: SidenavFooterDirective, descendants: true }, { propertyName: "sidenavHeaderDirective", first: true, predicate: SidenavHeaderDirective, descendants: true }], ngImport: i0, template: "<div [ngClass]=\"{ 'collapsed': sidenav.collapsed$ | async }\" class=\"container\">\n <div class=\"inner\"\n fxLayout=\"column\"\n fxLayoutAlign=\"space-between stretch\">\n <ng-template [ngIf]=\"sidenavHeaderDirective?.template\">\n <div [fxHide]=\"sidenav.collapsed$ | async\" class=\"header\" fxFlex=\"nogrow\">\n <ng-container *ngTemplateOutlet=\"sidenavHeaderDirective?.template ?? null\"></ng-container>\n </div>\n <mat-divider [fxHide]=\"sidenav.collapsed$ | async\" fxFlex=\"nogrow\"></mat-divider>\n </ng-template>\n <div class=\"nav-container\" fxFlex=\"grow\">\n <ul fxLayout=\"column\" root rxap-navigation></ul>\n </div>\n <mat-divider fxFlex=\"nogrow\"></mat-divider>\n <button (click)=\"sidenav.toggleNavigationCollapse()\" [ngClass]=\"{ 'collapsed': sidenav.collapsed$ | async }\"\n class=\"sidebar-toggle\"\n fxFlex=\"nogrow\"\n mat-button>\n <span class=\"sidebar-toggle-inner\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon class=\"arrow\" fxFlex=\"nogrow\">double_arrow</mat-icon>\n <span [fxHide]=\"sidenav.collapsed$ | async\" class=\"label\" fxFlex=\"grow\" i18n>Collapse sidebar</span>\n </span>\n </button>\n <ng-template [ngIf]=\"sidenavFooterDirective?.template ?? null\">\n <mat-divider [fxHide]=\"sidenav.collapsed$ | async\" fxFlex=\"nogrow\"></mat-divider>\n <div [fxHide]=\"sidenav.collapsed$ | async\" class=\"footer\" fxFlex=\"nogrow\">\n <ng-container *ngTemplateOutlet=\"sidenavFooterDirective?.template ?? null\"></ng-container>\n </div>\n </ng-template>\n </div>\n</div>\n", styles: [".container,.container .inner{height:100%}.container .inner .header{padding-bottom:12px}.container .inner .footer{padding-top:12px}.container .inner .nav-container{overflow-y:scroll;padding-top:12px}.container .inner .nav-container::-webkit-scrollbar{width:6px}.container .inner .nav-container::-webkit-scrollbar-track{border-radius:2px}.container .inner .nav-container::-webkit-scrollbar-thumb{border-radius:10px}.container .sidebar-toggle{min-height:48px}.container .sidebar-toggle .sidebar-toggle-inner{padding:0}.container .sidebar-toggle .arrow{transform:rotate(180deg)}.container .sidebar-toggle.collapsed .arrow{transform:initial}.container .sidebar-toggle.collapsed .sidebar-toggle-inner{justify-content:space-around!important}\n"], dependencies: [{ kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i2$5.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i2$5.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$4.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i3$4.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: NavigationComponent, selector: "ul[rxap-navigation]", inputs: ["items", "level", "root"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
919
+ }
920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponent, decorators: [{
921
+ type: Component,
922
+ args: [{ selector: 'rxap-sidenav', changeDetection: ChangeDetectionStrategy.OnPush, host: {
923
+ class: 'rxap-layout-sidenav',
924
+ }, standalone: true, imports: [
925
+ ExtendedModule,
926
+ NgClass,
927
+ FlexModule,
928
+ NgIf,
929
+ NgTemplateOutlet,
930
+ MatDividerModule,
931
+ NavigationComponent,
932
+ MatButtonModule,
933
+ MatIconModule,
934
+ AsyncPipe,
935
+ ], template: "<div [ngClass]=\"{ 'collapsed': sidenav.collapsed$ | async }\" class=\"container\">\n <div class=\"inner\"\n fxLayout=\"column\"\n fxLayoutAlign=\"space-between stretch\">\n <ng-template [ngIf]=\"sidenavHeaderDirective?.template\">\n <div [fxHide]=\"sidenav.collapsed$ | async\" class=\"header\" fxFlex=\"nogrow\">\n <ng-container *ngTemplateOutlet=\"sidenavHeaderDirective?.template ?? null\"></ng-container>\n </div>\n <mat-divider [fxHide]=\"sidenav.collapsed$ | async\" fxFlex=\"nogrow\"></mat-divider>\n </ng-template>\n <div class=\"nav-container\" fxFlex=\"grow\">\n <ul fxLayout=\"column\" root rxap-navigation></ul>\n </div>\n <mat-divider fxFlex=\"nogrow\"></mat-divider>\n <button (click)=\"sidenav.toggleNavigationCollapse()\" [ngClass]=\"{ 'collapsed': sidenav.collapsed$ | async }\"\n class=\"sidebar-toggle\"\n fxFlex=\"nogrow\"\n mat-button>\n <span class=\"sidebar-toggle-inner\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon class=\"arrow\" fxFlex=\"nogrow\">double_arrow</mat-icon>\n <span [fxHide]=\"sidenav.collapsed$ | async\" class=\"label\" fxFlex=\"grow\" i18n>Collapse sidebar</span>\n </span>\n </button>\n <ng-template [ngIf]=\"sidenavFooterDirective?.template ?? null\">\n <mat-divider [fxHide]=\"sidenav.collapsed$ | async\" fxFlex=\"nogrow\"></mat-divider>\n <div [fxHide]=\"sidenav.collapsed$ | async\" class=\"footer\" fxFlex=\"nogrow\">\n <ng-container *ngTemplateOutlet=\"sidenavFooterDirective?.template ?? null\"></ng-container>\n </div>\n </ng-template>\n </div>\n</div>\n", styles: [".container,.container .inner{height:100%}.container .inner .header{padding-bottom:12px}.container .inner .footer{padding-top:12px}.container .inner .nav-container{overflow-y:scroll;padding-top:12px}.container .inner .nav-container::-webkit-scrollbar{width:6px}.container .inner .nav-container::-webkit-scrollbar-track{border-radius:2px}.container .inner .nav-container::-webkit-scrollbar-thumb{border-radius:10px}.container .sidebar-toggle{min-height:48px}.container .sidebar-toggle .sidebar-toggle-inner{padding:0}.container .sidebar-toggle .arrow{transform:rotate(180deg)}.container .sidebar-toggle.collapsed .arrow{transform:initial}.container .sidebar-toggle.collapsed .sidebar-toggle-inner{justify-content:space-around!important}\n"] }]
936
+ }], ctorParameters: function () { return [{ type: SidenavComponentService }]; }, propDecorators: { sidenavFooterDirective: [{
937
+ type: ContentChild,
938
+ args: [SidenavFooterDirective]
939
+ }], sidenavHeaderDirective: [{
940
+ type: ContentChild,
941
+ args: [SidenavHeaderDirective]
942
+ }] } });
943
+
944
+ class VersionComponent {
945
+ constructor(version) {
946
+ this.version = version;
1629
947
  }
1630
948
  ngOnInit() {
949
+ this.modules = this.version.get();
950
+ this.subscription = this.version.update$.pipe(tap(() => this.modules = this.version.get())).subscribe();
1631
951
  }
1632
- static { this.ɵfac = function SidenavContentComponent_Factory(t) { return new (t || SidenavContentComponent)(i0.ɵɵdirectiveInject(SidenavContentComponentService)); }; }
1633
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SidenavContentComponent, selectors: [["rxap-sidenav-content"]], inputs: { sidenav: "sidenav" }, ngContentSelectors: _c2, decls: 8, vars: 16, consts: [[1, "container", 3, "ngClass", "ngStyle"], [1, "inner"]], template: function SidenavContentComponent_Template(rf, ctx) { if (rf & 1) {
1634
- i0.ɵɵprojectionDef();
1635
- i0.ɵɵelementStart(0, "div", 0);
1636
- i0.ɵɵpipe(1, "async");
1637
- i0.ɵɵpipe(2, "async");
1638
- i0.ɵɵpipe(3, "async");
1639
- i0.ɵɵpipe(4, "async");
1640
- i0.ɵɵelementStart(5, "div", 1);
1641
- i0.ɵɵelement(6, "router-outlet");
1642
- i0.ɵɵprojection(7);
1643
- i0.ɵɵelementEnd()();
1644
- } if (rf & 2) {
1645
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$1, i0.ɵɵpipeBind1(1, 2, ctx.sidenav.openedChange)))("ngStyle", i0.ɵɵpureFunction3(12, _c1$1, i0.ɵɵpipeBind1(2, 4, ctx.sccs.innerHeight$), i0.ɵɵpipeBind1(3, 6, ctx.sccs.marginTop$), i0.ɵɵpipeBind1(4, 8, ctx.sccs.marginBottom$)));
1646
- } }, dependencies: [i2$1.NgClass, i2$1.NgStyle, i3$1.RouterOutlet, i2$1.AsyncPipe], styles: [".container[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{padding:0;overflow:auto;height:100%}"], changeDetection: 0 }); }
952
+ ngOnDestroy() {
953
+ this.subscription?.unsubscribe();
954
+ }
955
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: VersionComponent, deps: [{ token: VersionService }], target: i0.ɵɵFactoryTarget.Component }); }
956
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: VersionComponent, isStandalone: true, selector: "rxap-version", ngImport: i0, template: "<div class=\"version\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"start start\" fxLayoutGap=\"8px\">\n <div *ngFor=\"let module of modules | keyvalue\" fxFlex=\"nogrow\" fxLayout=\"column\">\n <span class=\"name\" fxFlex=\"nogrow\">{{module.value.name}}</span>\n <span class=\"semantic\" fxFlex=\"nogrow\">{{module.value.semantic}}</span>\n <span class=\"hash\" fxFlex=\"nogrow\">{{module.value.hash}}</span>\n </div>\n</div>\n", styles: [".version{width:100%;font-size:9px;padding:8px}.version .name{padding-bottom:12px;font-size:10px}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$4.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1647
957
  }
1648
- __decorate([
1649
- Required,
1650
- __metadata("design:type", MatSidenav)
1651
- ], SidenavContentComponent.prototype, "sidenav", void 0);
1652
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavContentComponent, [{
1653
- type: Component,
1654
- args: [{ selector: 'rxap-sidenav-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{ 'open': (sidenav.openedChange | async) }\" [ngStyle]=\"{\n height: sccs.innerHeight$ | async,\n marginTop: sccs.marginTop$ | async,\n marginBottom: sccs.marginBottom$ | async\n}\" class=\"container\">\n <!-- <dx-breadcrumb></dx-breadcrumb>-->\n <div class=\"inner\">\n <router-outlet></router-outlet>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".container .inner{padding:0;overflow:auto;height:100%}\n"] }]
1655
- }], function () { return [{ type: SidenavContentComponentService }]; }, { sidenav: [{
1656
- type: Input
1657
- }] }); })();
958
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: VersionComponent, decorators: [{
959
+ type: Component,
960
+ args: [{ selector: 'rxap-version', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgFor, KeyValuePipe], template: "<div class=\"version\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"start start\" fxLayoutGap=\"8px\">\n <div *ngFor=\"let module of modules | keyvalue\" fxFlex=\"nogrow\" fxLayout=\"column\">\n <span class=\"name\" fxFlex=\"nogrow\">{{module.value.name}}</span>\n <span class=\"semantic\" fxFlex=\"nogrow\">{{module.value.semantic}}</span>\n <span class=\"hash\" fxFlex=\"nogrow\">{{module.value.hash}}</span>\n </div>\n</div>\n", styles: [".version{width:100%;font-size:9px;padding:8px}.version .name{padding-bottom:12px;font-size:10px}\n"] }]
961
+ }], ctorParameters: function () { return [{ type: i1.VersionService, decorators: [{
962
+ type: Inject,
963
+ args: [VersionService]
964
+ }] }]; } });
965
+
966
+ class ToggleWindowSidenavButtonComponent {
967
+ constructor() {
968
+ this.openWindowSidenav = false;
969
+ this.openWindowSidenavChange = new EventEmitter();
970
+ }
971
+ toggle() {
972
+ this.openWindowSidenav = !this.openWindowSidenav;
973
+ this.openWindowSidenavChange.emit(this.openWindowSidenav);
974
+ }
975
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToggleWindowSidenavButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
976
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ToggleWindowSidenavButtonComponent, isStandalone: true, selector: "rxap-toggle-window-sidenav-button", inputs: { openWindowSidenav: "openWindowSidenav" }, outputs: { openWindowSidenavChange: "openWindowSidenavChange" }, host: { classAttribute: "rxap-toggle-window-sidenav-button" }, ngImport: i0, template: "<div class=\"toggle-button\">\n <button (click)=\"toggle()\" mat-icon-button>\n <ng-template [ngIfElse]=\"hide\" [ngIf]=\"!openWindowSidenav\">\n <mat-icon>keyboard_arrow_left</mat-icon>\n </ng-template>\n <ng-template #hide>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n </button>\n</div>\n", styles: [".toggle-button{position:absolute;top:70px;right:0;z-index:10000;border-radius:15px 0 0 15px;border:1px solid black;background:black}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
977
+ }
978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToggleWindowSidenavButtonComponent, decorators: [{
979
+ type: Component,
980
+ args: [{ selector: 'rxap-toggle-window-sidenav-button', changeDetection: ChangeDetectionStrategy.OnPush, host: {
981
+ class: 'rxap-toggle-window-sidenav-button',
982
+ }, standalone: true, imports: [MatButtonModule, NgIf, MatIconModule], template: "<div class=\"toggle-button\">\n <button (click)=\"toggle()\" mat-icon-button>\n <ng-template [ngIfElse]=\"hide\" [ngIf]=\"!openWindowSidenav\">\n <mat-icon>keyboard_arrow_left</mat-icon>\n </ng-template>\n <ng-template #hide>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n </button>\n</div>\n", styles: [".toggle-button{position:absolute;top:70px;right:0;z-index:10000;border-radius:15px 0 0 15px;border:1px solid black;background:black}\n"] }]
983
+ }], propDecorators: { openWindowSidenav: [{
984
+ type: Input
985
+ }], openWindowSidenavChange: [{
986
+ type: Output
987
+ }] } });
1658
988
 
1659
- function WindowContainerSidenavComponent_div_1_ng_template_1_Template(rf, ctx) { }
1660
- function WindowContainerSidenavComponent_div_1_Template(rf, ctx) { if (rf & 1) {
1661
- i0.ɵɵelementStart(0, "div", 2);
1662
- i0.ɵɵtemplate(1, WindowContainerSidenavComponent_div_1_ng_template_1_Template, 0, 0, "ng-template", 3);
1663
- i0.ɵɵelementEnd();
1664
- } if (rf & 2) {
1665
- const portalId_r1 = ctx.$implicit;
1666
- const ctx_r0 = i0.ɵɵnextContext();
1667
- i0.ɵɵadvance(1);
1668
- i0.ɵɵproperty("cdkPortalOutlet", ctx_r0.portals.get(portalId_r1));
1669
- } }
1670
989
  class WindowContainerSidenavComponent {
1671
990
  constructor(service) {
1672
991
  this.service = service;
@@ -1701,447 +1020,16 @@ class WindowContainerSidenavComponent {
1701
1020
  portal.detach();
1702
1021
  }
1703
1022
  }
1704
- static { this.ɵfac = function WindowContainerSidenavComponent_Factory(t) { return new (t || WindowContainerSidenavComponent)(i0.ɵɵdirectiveInject(WindowContainerSidenavService)); }; }
1705
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WindowContainerSidenavComponent, selectors: [["rxap-window-container-sidenav"]], decls: 2, vars: 2, consts: [["fxLayout", "column", "fxLayoutGap", "16px", 1, "container"], ["fxFlex", "nogrow", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["fxFlex", "nogrow"], [3, "cdkPortalOutlet"]], template: function WindowContainerSidenavComponent_Template(rf, ctx) { if (rf & 1) {
1706
- i0.ɵɵelementStart(0, "div", 0);
1707
- i0.ɵɵtemplate(1, WindowContainerSidenavComponent_div_1_Template, 2, 1, "div", 1);
1708
- i0.ɵɵelementEnd();
1709
- } if (rf & 2) {
1710
- i0.ɵɵadvance(1);
1711
- i0.ɵɵproperty("ngForOf", ctx.portals.keys())("ngForTrackBy", ctx.trackBy);
1712
- } }, dependencies: [i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutGapDirective, i1$3.DefaultFlexDirective, i2$1.NgForOf, i4.CdkPortalOutlet], styles: [".container[_ngcontent-%COMP%]{padding:8px}"], changeDetection: 0 }); }
1713
- }
1714
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WindowContainerSidenavComponent, [{
1715
- type: Component,
1716
- args: [{ selector: 'rxap-window-container-sidenav', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fxLayout=\"column\" fxLayoutGap=\"16px\" class=\"container\">\n\n <div fxFlex=\"nogrow\" *ngFor=\"let portalId of portals.keys(); trackBy: trackBy\">\n <ng-template [cdkPortalOutlet]=\"portals.get(portalId)\"></ng-template>\n </div>\n\n</div>\n", styles: [".container{padding:8px}\n"] }]
1717
- }], function () { return [{ type: i1.WindowContainerSidenavService, decorators: [{
1718
- type: Inject,
1719
- args: [WindowContainerSidenavService]
1720
- }] }]; }, null); })();
1721
-
1722
- function ToggleWindowSidenavButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
1723
- i0.ɵɵelementStart(0, "mat-icon");
1724
- i0.ɵɵtext(1, "keyboard_arrow_left");
1725
- i0.ɵɵelementEnd();
1726
- } }
1727
- function ToggleWindowSidenavButtonComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
1728
- i0.ɵɵelementStart(0, "mat-icon");
1729
- i0.ɵɵtext(1, "keyboard_arrow_right");
1730
- i0.ɵɵelementEnd();
1731
- } }
1732
- class ToggleWindowSidenavButtonComponent {
1733
- constructor() {
1734
- this.openWindowSidenav = false;
1735
- this.openWindowSidenavChange = new EventEmitter();
1736
- }
1737
- ngOnInit() {
1738
- }
1739
- toggle() {
1740
- this.openWindowSidenav = !this.openWindowSidenav;
1741
- this.openWindowSidenavChange.emit(this.openWindowSidenav);
1742
- }
1743
- static { this.ɵfac = function ToggleWindowSidenavButtonComponent_Factory(t) { return new (t || ToggleWindowSidenavButtonComponent)(); }; }
1744
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ToggleWindowSidenavButtonComponent, selectors: [["rxap-toggle-window-sidenav-button"]], hostAttrs: [1, "rxap-toggle-window-sidenav-button"], inputs: { openWindowSidenav: "openWindowSidenav" }, outputs: { openWindowSidenavChange: "openWindowSidenavChange" }, decls: 5, vars: 2, consts: [[1, "toggle-button"], ["mat-icon-button", "", 3, "click"], [3, "ngIfElse", "ngIf"], ["hide", ""]], template: function ToggleWindowSidenavButtonComponent_Template(rf, ctx) { if (rf & 1) {
1745
- i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
1746
- i0.ɵɵlistener("click", function ToggleWindowSidenavButtonComponent_Template_button_click_1_listener() { return ctx.toggle(); });
1747
- i0.ɵɵtemplate(2, ToggleWindowSidenavButtonComponent_ng_template_2_Template, 2, 0, "ng-template", 2);
1748
- i0.ɵɵtemplate(3, ToggleWindowSidenavButtonComponent_ng_template_3_Template, 2, 0, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
1749
- i0.ɵɵelementEnd()();
1750
- } if (rf & 2) {
1751
- const _r1 = i0.ɵɵreference(4);
1752
- i0.ɵɵadvance(2);
1753
- i0.ɵɵproperty("ngIfElse", _r1)("ngIf", !ctx.openWindowSidenav);
1754
- } }, dependencies: [i1$1.MatLegacyButton, i2$2.MatIcon, i2$1.NgIf], styles: [".toggle-button[_ngcontent-%COMP%]{position:absolute;top:70px;right:0;z-index:10000;border-radius:15px 0 0 15px;border:1px solid black;background:black}"], changeDetection: 0 }); }
1755
- }
1756
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToggleWindowSidenavButtonComponent, [{
1757
- type: Component,
1758
- args: [{ selector: 'rxap-toggle-window-sidenav-button', changeDetection: ChangeDetectionStrategy.OnPush, host: {
1759
- class: 'rxap-toggle-window-sidenav-button'
1760
- }, template: "<div class=\"toggle-button\">\n <button (click)=\"toggle()\" mat-icon-button>\n <ng-template [ngIfElse]=\"hide\" [ngIf]=\"!openWindowSidenav\">\n <mat-icon>keyboard_arrow_left</mat-icon>\n </ng-template>\n <ng-template #hide>\n <mat-icon>keyboard_arrow_right</mat-icon>\n </ng-template>\n </button>\n</div>\n", styles: [".toggle-button{position:absolute;top:70px;right:0;z-index:10000;border-radius:15px 0 0 15px;border:1px solid black;background:black}\n"] }]
1761
- }], function () { return []; }, { openWindowSidenav: [{
1762
- type: Input
1763
- }], openWindowSidenavChange: [{
1764
- type: Output
1765
- }] }); })();
1766
-
1767
- const _c0 = function () { return ["/"]; };
1768
- function LayoutComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1769
- i0.ɵɵelement(0, "img", 9);
1770
- } if (rf & 2) {
1771
- const ctx_r0 = i0.ɵɵnextContext();
1772
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(3, _c0))("width", ctx_r0.layoutComponentService.logo.width)("src", ctx_r0.layoutComponentService.logo.src, i0.ɵɵsanitizeUrl);
1773
- } }
1774
- const _c1 = ["*"];
1775
- class LayoutComponent {
1776
- constructor(layoutComponentService) {
1777
- this.layoutComponentService = layoutComponentService;
1778
- this.openWindowSidenav = false;
1779
- }
1780
- static { this.ɵfac = function LayoutComponent_Factory(t) { return new (t || LayoutComponent)(i0.ɵɵdirectiveInject(LayoutComponentService)); }; }
1781
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LayoutComponent, selectors: [["rxap-layout"]], viewQuery: function LayoutComponent_Query(rf, ctx) { if (rf & 1) {
1782
- i0.ɵɵviewQuery(MatSidenav, 7);
1783
- } if (rf & 2) {
1784
- let _t;
1785
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.sidenav = _t.first);
1786
- } }, ngContentSelectors: _c1, decls: 18, vars: 24, consts: [[1, "header", 3, "sidenav"], ["autosize", "", 1, "container"], [1, "sidenav", 3, "fixedBottomGap", "fixedInViewport", "fixedTopGap", "mode", "opened"], ["rxapSidenavHeader", ""], [1, "content"], [3, "sidenav"], [3, "openWindowSidenav", "openWindowSidenavChange"], ["mode", "side", "position", "end", 1, "window-container-sidenav", 3, "fixedBottomGap", "fixedInViewport", "fixedTopGap", "opened"], [1, "footer"], ["alt", "logo", 1, "logo", 3, "routerLink", "width", "src"]], template: function LayoutComponent_Template(rf, ctx) { if (rf & 1) {
1787
- i0.ɵɵprojectionDef();
1788
- i0.ɵɵelement(0, "rxap-header", 0);
1789
- i0.ɵɵelementStart(1, "mat-sidenav-container", 1)(2, "mat-sidenav", 2);
1790
- i0.ɵɵpipe(3, "async");
1791
- i0.ɵɵpipe(4, "async");
1792
- i0.ɵɵpipe(5, "async");
1793
- i0.ɵɵpipe(6, "async");
1794
- i0.ɵɵelementStart(7, "rxap-sidenav");
1795
- i0.ɵɵtemplate(8, LayoutComponent_ng_template_8_Template, 1, 4, "ng-template", 3);
1796
- i0.ɵɵelementEnd()();
1797
- i0.ɵɵelementStart(9, "mat-sidenav-content", 4)(10, "rxap-sidenav-content", 5);
1798
- i0.ɵɵprojection(11);
1799
- i0.ɵɵelementStart(12, "rxap-toggle-window-sidenav-button", 6);
1800
- i0.ɵɵlistener("openWindowSidenavChange", function LayoutComponent_Template_rxap_toggle_window_sidenav_button_openWindowSidenavChange_12_listener($event) { return ctx.openWindowSidenav = $event; });
1801
- i0.ɵɵelementEnd()()();
1802
- i0.ɵɵelementStart(13, "mat-sidenav", 7);
1803
- i0.ɵɵpipe(14, "async");
1804
- i0.ɵɵpipe(15, "async");
1805
- i0.ɵɵelement(16, "rxap-window-container-sidenav");
1806
- i0.ɵɵelementEnd()();
1807
- i0.ɵɵelement(17, "rxap-footer", 8);
1808
- } if (rf & 2) {
1809
- let tmp_4_0;
1810
- let tmp_5_0;
1811
- i0.ɵɵproperty("sidenav", ctx.sidenav);
1812
- i0.ɵɵadvance(2);
1813
- i0.ɵɵproperty("fixedBottomGap", i0.ɵɵpipeBind1(3, 12, ctx.layoutComponentService.fixedBottomGap$))("fixedInViewport", true)("fixedTopGap", i0.ɵɵpipeBind1(4, 14, ctx.layoutComponentService.fixedTopGap$))("mode", (tmp_4_0 = i0.ɵɵpipeBind1(5, 16, ctx.layoutComponentService.mode$)) !== null && tmp_4_0 !== undefined ? tmp_4_0 : "side")("opened", (tmp_5_0 = i0.ɵɵpipeBind1(6, 18, ctx.layoutComponentService.opened$)) !== null && tmp_5_0 !== undefined ? tmp_5_0 : true);
1814
- i0.ɵɵadvance(8);
1815
- i0.ɵɵproperty("sidenav", ctx.sidenav);
1816
- i0.ɵɵadvance(2);
1817
- i0.ɵɵproperty("openWindowSidenav", ctx.openWindowSidenav);
1818
- i0.ɵɵadvance(1);
1819
- i0.ɵɵproperty("fixedBottomGap", i0.ɵɵpipeBind1(14, 20, ctx.layoutComponentService.fixedBottomGap$))("fixedInViewport", true)("fixedTopGap", i0.ɵɵpipeBind1(15, 22, ctx.layoutComponentService.fixedTopGap$))("opened", ctx.openWindowSidenav);
1820
- } }, dependencies: [i2$4.MatSidenav, i2$4.MatSidenavContainer, i2$4.MatSidenavContent, FooterComponent, HeaderComponent, SidenavComponent, SidenavHeaderDirective, SidenavContentComponent, WindowContainerSidenavComponent, ToggleWindowSidenavButtonComponent, i3$1.RouterLink, i2$1.AsyncPipe], styles: [".container[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]{height:100%}.sidenav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:auto}.sidenav[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:16px}.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;z-index:100}.header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:100}"], changeDetection: 0 }); }
1821
- }
1822
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayoutComponent, [{
1823
- type: Component,
1824
- args: [{ selector: 'rxap-layout', changeDetection: ChangeDetectionStrategy.OnPush, template: "<rxap-header [sidenav]=\"sidenav\" class=\"header\"></rxap-header>\n<mat-sidenav-container autosize class=\"container\">\n <mat-sidenav\n [fixedBottomGap]=\"layoutComponentService.fixedBottomGap$ | async\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"layoutComponentService.fixedTopGap$ | async\"\n [mode]=\"(layoutComponentService.mode$ | async) ?? 'side'\"\n [opened]=\"(layoutComponentService.opened$ | async) ?? true\"\n class=\"sidenav\"\n >\n <rxap-sidenav>\n <ng-template rxapSidenavHeader>\n <img\n [routerLink]=\"['/']\"\n alt=\"logo\"\n class=\"logo\"\n [width]=\"layoutComponentService.logo.width\"\n [src]=\"layoutComponentService.logo.src\"\n />\n </ng-template>\n </rxap-sidenav>\n </mat-sidenav>\n <mat-sidenav-content class=\"content\">\n <rxap-sidenav-content [sidenav]=\"sidenav\">\n <ng-content></ng-content>\n <rxap-toggle-window-sidenav-button [(openWindowSidenav)]=\"openWindowSidenav\"></rxap-toggle-window-sidenav-button>\n </rxap-sidenav-content>\n </mat-sidenav-content>\n <mat-sidenav\n [fixedBottomGap]=\"layoutComponentService.fixedBottomGap$ | async\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"layoutComponentService.fixedTopGap$ | async\"\n [opened]=\"openWindowSidenav\"\n mode=\"side\"\n class=\"window-container-sidenav\"\n position=\"end\"\n >\n <rxap-window-container-sidenav></rxap-window-container-sidenav>\n </mat-sidenav>\n</mat-sidenav-container>\n<rxap-footer class=\"footer\"></rxap-footer>\n", styles: [".container,.content{height:100%}.sidenav{display:flex;align-items:center;justify-content:center;width:auto}.sidenav .logo{padding:16px}.footer{position:fixed;bottom:0;left:0;right:0;z-index:100}.header{position:fixed;top:0;left:0;right:0;z-index:100}\n"] }]
1825
- }], function () { return [{ type: LayoutComponentService }]; }, { sidenav: [{
1826
- type: ViewChild,
1827
- args: [MatSidenav, { static: true }]
1828
- }] }); })();
1829
-
1830
- class ReplaceRouterPathsService {
1831
- transform(routerLink) {
1832
- return of(routerLink);
1833
- }
1834
- static { this.ɵfac = function ReplaceRouterPathsService_Factory(t) { return new (t || ReplaceRouterPathsService)(); }; }
1835
- static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ReplaceRouterPathsService, factory: ReplaceRouterPathsService.ɵfac, providedIn: 'root' }); }
1836
- }
1837
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReplaceRouterPathsService, [{
1838
- type: Injectable,
1839
- args: [{ providedIn: 'root' }]
1840
- }], null, null); })();
1841
-
1842
- class ReplaceRouterPathsPipe {
1843
- constructor(rrp) {
1844
- this.rrp = rrp;
1845
- }
1846
- transform(routerLink) {
1847
- return this.rrp.transform(routerLink);
1848
- }
1849
- static { this.ɵfac = function ReplaceRouterPathsPipe_Factory(t) { return new (t || ReplaceRouterPathsPipe)(i0.ɵɵdirectiveInject(ReplaceRouterPathsService, 16)); }; }
1850
- static { this.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "replaceRouterPaths", type: ReplaceRouterPathsPipe, pure: true }); }
1851
- }
1852
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReplaceRouterPathsPipe, [{
1853
- type: Pipe,
1854
- args: [{
1855
- name: 'replaceRouterPaths'
1856
- }]
1857
- }], function () { return [{ type: ReplaceRouterPathsService }]; }, null); })();
1858
- class ReplaceRouterPathsPipeModule {
1859
- static { this.ɵfac = function ReplaceRouterPathsPipeModule_Factory(t) { return new (t || ReplaceRouterPathsPipeModule)(); }; }
1860
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ReplaceRouterPathsPipeModule }); }
1861
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); }
1862
- }
1863
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReplaceRouterPathsPipeModule, [{
1864
- type: NgModule,
1865
- args: [{
1866
- declarations: [ReplaceRouterPathsPipe],
1867
- exports: [ReplaceRouterPathsPipe]
1868
- }]
1869
- }], null, null); })();
1870
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ReplaceRouterPathsPipeModule, { declarations: [ReplaceRouterPathsPipe], exports: [ReplaceRouterPathsPipe] }); })();
1871
-
1872
- class NavigationComponentModule {
1873
- static { this.ɵfac = function NavigationComponentModule_Factory(t) { return new (t || NavigationComponentModule)(); }; }
1874
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NavigationComponentModule }); }
1875
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatIconModule,
1876
- MatLegacyButtonModule,
1877
- FlexLayoutModule,
1878
- RouterModule,
1879
- CommonModule,
1880
- IconDirectiveModule,
1881
- MatRippleModule,
1882
- MatDividerModule,
1883
- StopPropagationDirectiveModule,
1884
- MatLegacyTooltipModule,
1885
- ReplaceRouterPathsPipeModule] }); }
1886
- }
1887
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavigationComponentModule, [{
1888
- type: NgModule,
1889
- args: [{
1890
- declarations: [NavigationComponent, NavigationItemComponent],
1891
- imports: [
1892
- MatIconModule,
1893
- MatLegacyButtonModule,
1894
- FlexLayoutModule,
1895
- RouterModule,
1896
- CommonModule,
1897
- IconDirectiveModule,
1898
- MatRippleModule,
1899
- MatDividerModule,
1900
- StopPropagationDirectiveModule,
1901
- MatLegacyTooltipModule,
1902
- ReplaceRouterPathsPipeModule
1903
- ],
1904
- exports: [NavigationComponent]
1905
- }]
1906
- }], null, null); })();
1907
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NavigationComponentModule, { declarations: [NavigationComponent, NavigationItemComponent], imports: [MatIconModule,
1908
- MatLegacyButtonModule,
1909
- FlexLayoutModule,
1910
- RouterModule,
1911
- CommonModule,
1912
- IconDirectiveModule,
1913
- MatRippleModule,
1914
- MatDividerModule,
1915
- StopPropagationDirectiveModule,
1916
- MatLegacyTooltipModule,
1917
- ReplaceRouterPathsPipeModule], exports: [NavigationComponent] }); })();
1918
- i0.ɵɵsetComponentScope(NavigationItemComponent, [i2$2.MatIcon, i1$3.DefaultFlexDirective, i3$1.RouterLink, i3$1.RouterLinkActive, i2$1.NgForOf, i2$1.NgIf, i5$2.IconDirective, i6$1.MatRipple, i7.MatLegacyTooltip, NavigationComponent], [i2$1.AsyncPipe]);
1919
-
1920
- class SidenavModule {
1921
- static { this.ɵfac = function SidenavModule_Factory(t) { return new (t || SidenavModule)(); }; }
1922
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SidenavModule }); }
1923
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FlexLayoutModule,
1924
- NavigationComponentModule,
1925
- CommonModule,
1926
- MatDividerModule,
1927
- MatIconModule,
1928
- MatLegacyButtonModule] }); }
1929
- }
1930
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavModule, [{
1931
- type: NgModule,
1932
- args: [{
1933
- declarations: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective],
1934
- imports: [
1935
- FlexLayoutModule,
1936
- NavigationComponentModule,
1937
- CommonModule,
1938
- MatDividerModule,
1939
- MatIconModule,
1940
- MatLegacyButtonModule
1941
- ],
1942
- exports: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective],
1943
- }]
1944
- }], null, null); })();
1945
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SidenavModule, { declarations: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective], imports: [FlexLayoutModule,
1946
- NavigationComponentModule,
1947
- CommonModule,
1948
- MatDividerModule,
1949
- MatIconModule,
1950
- MatLegacyButtonModule], exports: [SidenavComponent, SidenavHeaderDirective, SidenavFooterDirective] }); })();
1951
-
1952
- class SidenavContentModule {
1953
- static { this.ɵfac = function SidenavContentModule_Factory(t) { return new (t || SidenavContentModule)(); }; }
1954
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: SidenavContentModule }); }
1955
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1956
- RouterModule] }); }
1957
- }
1958
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidenavContentModule, [{
1959
- type: NgModule,
1960
- args: [{
1961
- declarations: [SidenavContentComponent],
1962
- imports: [
1963
- CommonModule,
1964
- RouterModule
1965
- ],
1966
- exports: [SidenavContentComponent]
1967
- }]
1968
- }], null, null); })();
1969
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SidenavContentModule, { declarations: [SidenavContentComponent], imports: [CommonModule,
1970
- RouterModule], exports: [SidenavContentComponent] }); })();
1971
-
1972
- class WindowContainerSidenavModule {
1973
- static { this.ɵfac = function WindowContainerSidenavModule_Factory(t) { return new (t || WindowContainerSidenavModule)(); }; }
1974
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: WindowContainerSidenavModule }); }
1975
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FlexLayoutModule,
1976
- CommonModule,
1977
- PortalModule] }); }
1978
- }
1979
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WindowContainerSidenavModule, [{
1980
- type: NgModule,
1981
- args: [{
1982
- declarations: [WindowContainerSidenavComponent],
1983
- imports: [
1984
- FlexLayoutModule,
1985
- CommonModule,
1986
- PortalModule,
1987
- ],
1988
- exports: [WindowContainerSidenavComponent],
1989
- }]
1990
- }], null, null); })();
1991
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(WindowContainerSidenavModule, { declarations: [WindowContainerSidenavComponent], imports: [FlexLayoutModule,
1992
- CommonModule,
1993
- PortalModule], exports: [WindowContainerSidenavComponent] }); })();
1994
-
1995
- class ToggleWindowSidenavButtonModule {
1996
- static { this.ɵfac = function ToggleWindowSidenavButtonModule_Factory(t) { return new (t || ToggleWindowSidenavButtonModule)(); }; }
1997
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: ToggleWindowSidenavButtonModule }); }
1998
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacyButtonModule,
1999
- MatIconModule,
2000
- CommonModule] }); }
2001
- }
2002
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToggleWindowSidenavButtonModule, [{
2003
- type: NgModule,
2004
- args: [{
2005
- declarations: [ToggleWindowSidenavButtonComponent],
2006
- imports: [
2007
- MatLegacyButtonModule,
2008
- MatIconModule,
2009
- CommonModule,
2010
- ],
2011
- exports: [ToggleWindowSidenavButtonComponent],
2012
- }]
2013
- }], null, null); })();
2014
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ToggleWindowSidenavButtonModule, { declarations: [ToggleWindowSidenavButtonComponent], imports: [MatLegacyButtonModule,
2015
- MatIconModule,
2016
- CommonModule], exports: [ToggleWindowSidenavButtonComponent] }); })();
2017
-
2018
- class LayoutModule {
2019
- static withNavigation(navigation) {
2020
- return {
2021
- ngModule: LayoutModule,
2022
- providers: [
2023
- {
2024
- provide: RXAP_NAVIGATION_CONFIG,
2025
- useValue: navigation
2026
- }
2027
- ]
2028
- };
2029
- }
2030
- static { this.ɵfac = function LayoutModule_Factory(t) { return new (t || LayoutModule)(); }; }
2031
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LayoutModule }); }
2032
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatSidenavModule,
2033
- FooterModule,
2034
- HeaderModule,
2035
- CommonModule,
2036
- SidenavModule,
2037
- SidenavContentModule,
2038
- WindowContainerSidenavModule,
2039
- ToggleWindowSidenavButtonModule,
2040
- FlexLayoutModule,
2041
- RouterModule] }); }
1023
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerSidenavComponent, deps: [{ token: WindowContainerSidenavService }], target: i0.ɵɵFactoryTarget.Component }); }
1024
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowContainerSidenavComponent, isStandalone: true, selector: "rxap-window-container-sidenav", ngImport: i0, template: "<div class=\"container\" fxLayout=\"column\" fxLayoutGap=\"16px\">\n\n <div *ngFor=\"let portalId of portals.keys(); trackBy: trackBy\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"portals.get(portalId)\"></ng-template>\n </div>\n\n</div>\n", styles: [".container{padding:8px}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$4.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2042
1025
  }
2043
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LayoutModule, [{
2044
- type: NgModule,
2045
- args: [{
2046
- declarations: [LayoutComponent],
2047
- imports: [
2048
- MatSidenavModule,
2049
- FooterModule,
2050
- HeaderModule,
2051
- CommonModule,
2052
- SidenavModule,
2053
- SidenavContentModule,
2054
- WindowContainerSidenavModule,
2055
- ToggleWindowSidenavButtonModule,
2056
- FlexLayoutModule,
2057
- RouterModule
2058
- ],
2059
- exports: [LayoutComponent]
2060
- }]
2061
- }], null, null); })();
2062
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LayoutModule, { declarations: [LayoutComponent], imports: [MatSidenavModule,
2063
- FooterModule,
2064
- HeaderModule,
2065
- CommonModule,
2066
- SidenavModule,
2067
- SidenavContentModule,
2068
- WindowContainerSidenavModule,
2069
- ToggleWindowSidenavButtonModule,
2070
- FlexLayoutModule,
2071
- RouterModule], exports: [LayoutComponent] }); })();
2072
-
2073
- function VersionComponent_div_1_Template(rf, ctx) { if (rf & 1) {
2074
- i0.ɵɵelementStart(0, "div", 2)(1, "span", 3);
2075
- i0.ɵɵtext(2);
2076
- i0.ɵɵelementEnd();
2077
- i0.ɵɵelementStart(3, "span", 4);
2078
- i0.ɵɵtext(4);
2079
- i0.ɵɵelementEnd();
2080
- i0.ɵɵelementStart(5, "span", 5);
2081
- i0.ɵɵtext(6);
2082
- i0.ɵɵelementEnd()();
2083
- } if (rf & 2) {
2084
- const module_r1 = ctx.$implicit;
2085
- i0.ɵɵadvance(2);
2086
- i0.ɵɵtextInterpolate(module_r1.value.name);
2087
- i0.ɵɵadvance(2);
2088
- i0.ɵɵtextInterpolate(module_r1.value.semantic);
2089
- i0.ɵɵadvance(2);
2090
- i0.ɵɵtextInterpolate(module_r1.value.hash);
2091
- } }
2092
- class VersionComponent {
2093
- constructor(version) {
2094
- this.version = version;
2095
- }
2096
- ngOnInit() {
2097
- this.modules = this.version.get();
2098
- this.subscription = this.version.update$.pipe(tap(() => this.modules = this.version.get())).subscribe();
2099
- }
2100
- ngOnDestroy() {
2101
- this.subscription?.unsubscribe();
2102
- }
2103
- static { this.ɵfac = function VersionComponent_Factory(t) { return new (t || VersionComponent)(i0.ɵɵdirectiveInject(VersionService)); }; }
2104
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: VersionComponent, selectors: [["rxap-version"]], decls: 3, vars: 3, consts: [["fxFlex", "nogrow", "fxLayout", "column", "fxLayoutAlign", "start start", "fxLayoutGap", "8px", 1, "version"], ["fxFlex", "nogrow", "fxLayout", "column", 4, "ngFor", "ngForOf"], ["fxFlex", "nogrow", "fxLayout", "column"], ["fxFlex", "nogrow", 1, "name"], ["fxFlex", "nogrow", 1, "semantic"], ["fxFlex", "nogrow", 1, "hash"]], template: function VersionComponent_Template(rf, ctx) { if (rf & 1) {
2105
- i0.ɵɵelementStart(0, "div", 0);
2106
- i0.ɵɵtemplate(1, VersionComponent_div_1_Template, 7, 3, "div", 1);
2107
- i0.ɵɵpipe(2, "keyvalue");
2108
- i0.ɵɵelementEnd();
2109
- } if (rf & 2) {
2110
- i0.ɵɵadvance(1);
2111
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 1, ctx.modules));
2112
- } }, dependencies: [i1$3.DefaultLayoutDirective, i1$3.DefaultLayoutGapDirective, i1$3.DefaultLayoutAlignDirective, i1$3.DefaultFlexDirective, i2$1.NgForOf, i2$1.KeyValuePipe], styles: [".version[_ngcontent-%COMP%]{width:100%;font-size:9px;padding:8px}.version[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{padding-bottom:12px;font-size:10px}"], changeDetection: 0 }); }
2113
- }
2114
- __decorate([
2115
- Required,
2116
- __metadata("design:type", Object)
2117
- ], VersionComponent.prototype, "modules", void 0);
2118
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionComponent, [{
2119
- type: Component,
2120
- args: [{ selector: 'rxap-version', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"version\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"start start\" fxLayoutGap=\"8px\">\n <div *ngFor=\"let module of modules | keyvalue\" fxFlex=\"nogrow\" fxLayout=\"column\">\n <span class=\"name\" fxFlex=\"nogrow\">{{module.value.name}}</span>\n <span class=\"semantic\" fxFlex=\"nogrow\">{{module.value.semantic}}</span>\n <span class=\"hash\" fxFlex=\"nogrow\">{{module.value.hash}}</span>\n </div>\n</div>\n", styles: [".version{width:100%;font-size:9px;padding:8px}.version .name{padding-bottom:12px;font-size:10px}\n"] }]
2121
- }], function () { return [{ type: i1.VersionService, decorators: [{
2122
- type: Inject,
2123
- args: [VersionService]
2124
- }] }]; }, { modules: [] }); })();
2125
-
2126
- class VersionComponentModule {
2127
- static { this.ɵfac = function VersionComponentModule_Factory(t) { return new (t || VersionComponentModule)(); }; }
2128
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: VersionComponentModule }); }
2129
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [FlexLayoutModule,
2130
- CommonModule] }); }
2131
- }
2132
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionComponentModule, [{
2133
- type: NgModule,
2134
- args: [{
2135
- declarations: [VersionComponent],
2136
- imports: [
2137
- FlexLayoutModule,
2138
- CommonModule
2139
- ],
2140
- exports: [VersionComponent]
2141
- }]
2142
- }], null, null); })();
2143
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(VersionComponentModule, { declarations: [VersionComponent], imports: [FlexLayoutModule,
2144
- CommonModule], exports: [VersionComponent] }); })();
1026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerSidenavComponent, decorators: [{
1027
+ type: Component,
1028
+ args: [{ selector: 'rxap-window-container-sidenav', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgFor, PortalModule], template: "<div class=\"container\" fxLayout=\"column\" fxLayoutGap=\"16px\">\n\n <div *ngFor=\"let portalId of portals.keys(); trackBy: trackBy\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"portals.get(portalId)\"></ng-template>\n </div>\n\n</div>\n", styles: [".container{padding:8px}\n"] }]
1029
+ }], ctorParameters: function () { return [{ type: i1.WindowContainerSidenavService, decorators: [{
1030
+ type: Inject,
1031
+ args: [WindowContainerSidenavService]
1032
+ }] }]; } });
2145
1033
 
2146
1034
  class FooterDirective {
2147
1035
  constructor(footerService, template, viewContainerRef) {
@@ -2158,41 +1046,55 @@ class FooterDirective {
2158
1046
  this.footerService.removePortal(this._portal);
2159
1047
  }
2160
1048
  }
2161
- static { this.ɵfac = function FooterDirective_Factory(t) { return new (t || FooterDirective)(i0.ɵɵdirectiveInject(FooterService), i0.ɵɵdirectiveInject(TemplateRef), i0.ɵɵdirectiveInject(ViewContainerRef)); }; }
2162
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: FooterDirective, selectors: [["", "rxapFooter", ""]] }); }
1049
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FooterDirective, deps: [{ token: FooterService }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1050
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: FooterDirective, isStandalone: true, selector: "[rxapFooter]", ngImport: i0 }); }
2163
1051
  }
2164
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FooterDirective, [{
2165
- type: Directive,
2166
- args: [{
2167
- selector: '[rxapFooter]',
2168
- }]
2169
- }], function () { return [{ type: i1.FooterService, decorators: [{
2170
- type: Inject,
2171
- args: [FooterService]
2172
- }] }, { type: i0.TemplateRef, decorators: [{
2173
- type: Inject,
2174
- args: [TemplateRef]
2175
- }] }, { type: i0.ViewContainerRef, decorators: [{
2176
- type: Inject,
2177
- args: [ViewContainerRef]
2178
- }] }]; }, null); })();
2179
- class FooterDirectiveModule {
2180
- static { this.ɵfac = function FooterDirectiveModule_Factory(t) { return new (t || FooterDirectiveModule)(); }; }
2181
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FooterDirectiveModule }); }
2182
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); }
1052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FooterDirective, decorators: [{
1053
+ type: Directive,
1054
+ args: [{
1055
+ selector: '[rxapFooter]',
1056
+ standalone: true,
1057
+ }]
1058
+ }], ctorParameters: function () { return [{ type: i1.FooterService, decorators: [{
1059
+ type: Inject,
1060
+ args: [FooterService]
1061
+ }] }, { type: i0.TemplateRef, decorators: [{
1062
+ type: Inject,
1063
+ args: [TemplateRef]
1064
+ }] }, { type: i0.ViewContainerRef, decorators: [{
1065
+ type: Inject,
1066
+ args: [ViewContainerRef]
1067
+ }] }]; } });
1068
+
1069
+ class I18nCheckGuard {
1070
+ constructor(config, localId, i18nService, userProfileService) {
1071
+ this.config = config;
1072
+ this.localId = localId;
1073
+ this.i18nService = i18nService;
1074
+ this.userProfileService = userProfileService;
1075
+ }
1076
+ async canActivate() {
1077
+ const selectedLanguage = (await this.userProfileService.getLanguage()) ?? 'en';
1078
+ if (this.i18nService.currentLanguage !== selectedLanguage) {
1079
+ await this.i18nService.redirect(selectedLanguage);
1080
+ return false;
1081
+ }
1082
+ return true;
1083
+ }
1084
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nCheckGuard, deps: [{ token: i1$2.ConfigService }, { token: LOCALE_ID }, { token: I18nService }, { token: i1$1.RxapUserProfileService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1085
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nCheckGuard, providedIn: 'root' }); }
2183
1086
  }
2184
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FooterDirectiveModule, [{
2185
- type: NgModule,
2186
- args: [{
2187
- declarations: [FooterDirective],
2188
- exports: [FooterDirective],
2189
- }]
2190
- }], null, null); })();
2191
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FooterDirectiveModule, { declarations: [FooterDirective], exports: [FooterDirective] }); })();
1087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nCheckGuard, decorators: [{
1088
+ type: Injectable,
1089
+ args: [{ providedIn: 'root' }]
1090
+ }], ctorParameters: function () { return [{ type: i1$2.ConfigService }, { type: undefined, decorators: [{
1091
+ type: Inject,
1092
+ args: [LOCALE_ID]
1093
+ }] }, { type: I18nService }, { type: i1$1.RxapUserProfileService }]; } });
2192
1094
 
2193
1095
  /**
2194
1096
  * Generated bundle index. Do not edit.
2195
1097
  */
2196
1098
 
2197
- export { AppsButtonComponent, AppsButtonComponentModule, FooterComponent, FooterDirective, FooterDirectiveModule, FooterModule, HeaderComponent, HeaderModule, IsNavigationDividerItem, IsNavigationInsertItem, IsNavigationItem, LayoutComponent, LayoutComponentService, LayoutModule, NavigationComponent, NavigationComponentModule, NavigationItemComponent, NavigationProgressBarComponent, NavigationProgressBarComponentModule, NavigationService, RXAP_FOOTER_COMPONENT, RXAP_HEADER_COMPONENT, RXAP_LAYOUT_APPS_GRID, RXAP_LOGO_CONFIG, RXAP_NAVIGATION_CONFIG, RXAP_NAVIGATION_CONFIG_INSERTS, ReplaceRouterPathsService, ResetButtonComponent, ResetButtonComponentModule, SidenavComponent, SidenavComponentService, SidenavContentComponent, SidenavContentComponentService, SidenavContentModule, SidenavFooterDirective, SidenavHeaderDirective, SidenavModule, SidenavToggleButtonComponent, SidenavToggleButtonComponentModule, SignOutComponent, SignOutComponentModule, ToggleWindowSidenavButtonComponent, ToggleWindowSidenavButtonModule, UserProfileIconComponent, UserProfileIconComponentModule, VersionComponent, VersionComponentModule, WindowContainerSidenavComponent, WindowContainerSidenavModule };
1099
+ export { AppUrlService, AppsButtonComponent, FooterComponent, FooterDirective, HeaderComponent, I18nCheckGuard, I18nService, IsNavigationDividerItem, IsNavigationInsertItem, IsNavigationItem, LanguageSelectorService, LayoutComponent, LayoutComponentService, NavigationComponent, NavigationItemComponent, NavigationProgressBarComponent, NavigationService, RXAP_FOOTER_COMPONENT, RXAP_HEADER_COMPONENT, RXAP_LAYOUT_APPS_GRID, RXAP_LOGO_CONFIG, RXAP_NAVIGATION_CONFIG, RXAP_NAVIGATION_CONFIG_INSERTS, ReplaceRouterPathsService, ResetButtonComponent, SidenavComponent, SidenavComponentService, SidenavFooterDirective, SidenavHeaderDirective, SidenavToggleButtonComponent, SignOutComponent, ToggleWindowSidenavButtonComponent, UserProfileIconComponent, VersionComponent, WindowContainerSidenavComponent };
2198
1100
  //# sourceMappingURL=rxap-layout.mjs.map