@rxap/layout 16.0.0-dev.5 → 16.0.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/esm2022/index.mjs +5 -6
- package/esm2022/lib/app-url.service.mjs +64 -0
- package/esm2022/lib/footer/footer.component.mjs +3 -3
- package/esm2022/lib/header/apps-button/apps-button.component.mjs +30 -46
- package/esm2022/lib/header/header.component.mjs +41 -46
- package/esm2022/lib/header/language-selector/language-selector.component.mjs +10 -69
- package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +6 -2
- package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +6 -2
- package/esm2022/lib/header/sign-out/sign-out.component.mjs +14 -18
- package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.mjs +28 -28
- package/esm2022/lib/i18n-check.guard.mjs +34 -0
- package/esm2022/lib/i18n.service.mjs +36 -0
- package/esm2022/lib/language-selector.service.mjs +34 -0
- package/esm2022/lib/layout/layout.component.mjs +46 -23
- package/esm2022/lib/layout/layout.component.service.mjs +2 -2
- package/esm2022/lib/navigation/navigation-item/navigation-item.component.mjs +48 -95
- package/esm2022/lib/navigation/navigation.component.mjs +24 -25
- package/esm2022/lib/sidenav/sidenav.component.mjs +1 -1
- package/esm2022/lib/types.mjs +1 -1
- package/fesm2022/rxap-layout.mjs +637 -667
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/index.d.ts +4 -3
- package/lib/app-url.service.d.ts +26 -0
- package/lib/header/apps-button/apps-button.component.d.ts +12 -20
- package/lib/header/header.component.d.ts +7 -10
- package/lib/header/language-selector/language-selector.component.d.ts +1 -16
- package/lib/header/sign-out/sign-out.component.d.ts +4 -4
- package/lib/header/user-profile-icon/user-profile-icon.component.d.ts +11 -7
- package/lib/i18n-check.guard.d.ts +14 -0
- package/lib/i18n.service.d.ts +12 -0
- package/lib/language-selector.service.d.ts +15 -0
- package/lib/layout/layout.component.d.ts +8 -4
- package/lib/navigation/navigation-item/navigation-item.component.d.ts +10 -17
- package/lib/navigation/navigation.component.d.ts +4 -4
- package/lib/types.d.ts +3 -2
- package/package.json +36 -21
- package/esm2022/lib/layout/layout.component.module.mjs +0 -30
- package/esm2022/lib/sidenav-content/sidenav-content.component.mjs +0 -27
- package/esm2022/lib/sidenav-content/sidenav-content.component.service.mjs +0 -36
- package/lib/layout/layout.component.module.d.ts +0 -10
- package/lib/sidenav-content/sidenav-content.component.d.ts +0 -10
- package/lib/sidenav-content/sidenav-content.component.service.d.ts +0 -15
- package/src/lib/navigation/_navigation.component.theme.scss +0 -33
- package/src/lib/navigation/navigation-item/_navigation-item.component.theme.scss +0 -45
package/fesm2022/rxap-layout.mjs
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Component, ChangeDetectionStrategy,
|
|
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, WindowContainerSidenavService, FooterService
|
|
4
|
+
import { HeaderService, ResetService, VersionService, WindowContainerSidenavService, FooterService } from '@rxap/services';
|
|
5
5
|
import * as i3 from '@angular/cdk/portal';
|
|
6
6
|
import { PortalModule, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
7
7
|
import * as i2 from '@angular/material/toolbar';
|
|
8
8
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
9
|
-
import { NgIf, NgFor, AsyncPipe,
|
|
10
|
-
import { Subscription, BehaviorSubject,
|
|
11
|
-
import { filter, map,
|
|
12
|
-
import * as i2$
|
|
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';
|
|
12
|
+
import * as i2$4 from '@angular/material/sidenav';
|
|
13
13
|
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
|
14
|
-
import * as i4 from '@
|
|
15
|
-
import { SignOutDirective, UserService } from '@rxap/authentication';
|
|
16
|
-
import * as i2$3 from '@angular/material/menu';
|
|
17
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
18
|
-
import * as i2$1 from '@angular/router';
|
|
19
|
-
import { NavigationStart, NavigationEnd, NavigationCancel, Router, RouterOutlet, RouterLinkActive, RouterLink } from '@angular/router';
|
|
20
|
-
import * as i1$1 from '@angular/material/progress-bar';
|
|
21
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
22
|
-
import * as i2$2 from '@angular/material/icon';
|
|
23
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
24
|
-
import * as i1$2 from '@angular/material/button';
|
|
25
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
26
|
-
import { isDefined } from '@rxap/rxjs';
|
|
27
|
-
import { AvatarBackgroundImageDirective } from '@rxap/directives';
|
|
28
|
-
import * as i1$3 from '@angular/flex-layout/flex';
|
|
29
|
-
import { FlexModule } from '@angular/flex-layout/flex';
|
|
30
|
-
import * as i1$4 from '@rxap/config';
|
|
31
|
-
import { ConfigService } from '@rxap/config';
|
|
32
|
-
import * as i2$4 from '@angular/flex-layout/extended';
|
|
33
|
-
import { ExtendedModule } from '@angular/flex-layout/extended';
|
|
34
|
-
import * as i7 from '@angular/cdk/overlay';
|
|
35
|
-
import { CdkOverlayOrigin, CdkConnectedOverlay, Overlay } from '@angular/cdk/overlay';
|
|
36
|
-
import * as i4$1 from '@angular/material/core';
|
|
14
|
+
import * as i4 from '@angular/material/core';
|
|
37
15
|
import { MatOptionModule, MatRippleModule } from '@angular/material/core';
|
|
16
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
17
|
+
import { DataSourceCollectionDirective } from '@rxap/data-source/directive';
|
|
38
18
|
import * as i5 from '@angular/forms';
|
|
39
19
|
import { FormsModule } from '@angular/forms';
|
|
40
20
|
import * as i3$1 from '@angular/material/select';
|
|
41
21
|
import { MatSelectModule } from '@angular/material/select';
|
|
42
|
-
import
|
|
22
|
+
import { StopPropagationDirective } from '@rxap/directives';
|
|
23
|
+
import * as i2$1 from '@angular/material/form-field';
|
|
43
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$3 from '@angular/material/menu';
|
|
31
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
32
|
+
import * as i1$4 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 i3$2 from '@angular/flex-layout/flex';
|
|
39
|
+
import { FlexModule } from '@angular/flex-layout/flex';
|
|
40
|
+
import { JoinPath, Required, coerceBoolean } from '@rxap/utilities';
|
|
41
|
+
import { ClickOnLink } from '@rxap/browser-utilities';
|
|
44
42
|
import { __decorate, __metadata } from 'tslib';
|
|
45
|
-
import {
|
|
43
|
+
import { DetermineReleaseName, RXAP_ENVIRONMENT } from '@rxap/environment';
|
|
44
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
46
45
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import * as i1$5 from '@angular/material/divider';
|
|
46
|
+
import * as i6 from '@angular/cdk/overlay';
|
|
47
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
48
|
+
import * as i3$4 from '@angular/material/divider';
|
|
51
49
|
import { MatDividerModule } from '@angular/material/divider';
|
|
50
|
+
import { IconDirective } from '@rxap/material-directives/icon';
|
|
51
|
+
import * as i2$5 from '@angular/flex-layout/extended';
|
|
52
|
+
import { ExtendedModule } from '@angular/flex-layout/extended';
|
|
52
53
|
|
|
53
54
|
const RXAP_NAVIGATION_CONFIG = new InjectionToken('rxap/layout/navigation-config');
|
|
54
55
|
const RXAP_NAVIGATION_CONFIG_INSERTS = new InjectionToken('rxap/layout/navigation-config-inserts');
|
|
@@ -62,13 +63,94 @@ class FooterComponent {
|
|
|
62
63
|
this.footerService = footerService;
|
|
63
64
|
}
|
|
64
65
|
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
|
|
66
|
+
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 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 }); }
|
|
66
67
|
}
|
|
67
68
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FooterComponent, decorators: [{
|
|
68
69
|
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
|
|
70
|
+
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 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
71
|
}], ctorParameters: function () { return [{ type: i1.FooterService }]; } });
|
|
71
72
|
|
|
73
|
+
class I18nService {
|
|
74
|
+
constructor(localId, userProfileService) {
|
|
75
|
+
this.localId = localId;
|
|
76
|
+
this.userProfileService = userProfileService;
|
|
77
|
+
this.currentLanguage = this.localId.replace(/-[A-Z]+$/, '');
|
|
78
|
+
}
|
|
79
|
+
async setLanguage(language) {
|
|
80
|
+
await this.userProfileService.setLanguage(language);
|
|
81
|
+
this.redirect(language);
|
|
82
|
+
}
|
|
83
|
+
redirect(next, current = this.currentLanguage) {
|
|
84
|
+
if (current === next) {
|
|
85
|
+
console.warn('[I18nService] redirect not required - language unchanged');
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const redirectUrl = location.origin +
|
|
89
|
+
location.pathname.replace(new RegExp(`^/${current}`), `/${next}`) +
|
|
90
|
+
location.search;
|
|
91
|
+
console.log('[I18nService] redirect to: ' + redirectUrl);
|
|
92
|
+
location.replace(redirectUrl);
|
|
93
|
+
}
|
|
94
|
+
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 }); }
|
|
95
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
96
|
+
}
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nService, decorators: [{
|
|
98
|
+
type: Injectable,
|
|
99
|
+
args: [{ providedIn: 'root' }]
|
|
100
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
101
|
+
type: Inject,
|
|
102
|
+
args: [LOCALE_ID]
|
|
103
|
+
}] }, { type: i1$1.RxapUserProfileService }]; } });
|
|
104
|
+
|
|
105
|
+
class LanguageSelectorService {
|
|
106
|
+
constructor(config, localId, i18nService) {
|
|
107
|
+
this.config = config;
|
|
108
|
+
this.localId = localId;
|
|
109
|
+
this.i18nService = i18nService;
|
|
110
|
+
this.languages = this.config.get('i18n.languages') ?? {};
|
|
111
|
+
this.defaultLanguage =
|
|
112
|
+
this.config.get('i18n.defaultLanguage') ??
|
|
113
|
+
Object.keys(this.languages)[0] ??
|
|
114
|
+
'en';
|
|
115
|
+
this.selectedLanguage = this.i18nService.currentLanguage;
|
|
116
|
+
}
|
|
117
|
+
async setLanguage(language) {
|
|
118
|
+
if (language !== this.i18nService.currentLanguage) {
|
|
119
|
+
await this.i18nService.setLanguage(language);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
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 }); }
|
|
123
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, providedIn: 'root' }); }
|
|
124
|
+
}
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, decorators: [{
|
|
126
|
+
type: Injectable,
|
|
127
|
+
args: [{ providedIn: 'root' }]
|
|
128
|
+
}], ctorParameters: function () { return [{ type: i1$2.ConfigService }, { type: undefined, decorators: [{
|
|
129
|
+
type: Inject,
|
|
130
|
+
args: [LOCALE_ID]
|
|
131
|
+
}] }, { type: I18nService }]; } });
|
|
132
|
+
|
|
133
|
+
class LanguageSelectorComponent {
|
|
134
|
+
constructor(language) {
|
|
135
|
+
this.language = language;
|
|
136
|
+
}
|
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorComponent, deps: [{ token: LanguageSelectorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
138
|
+
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 }); }
|
|
139
|
+
}
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorComponent, decorators: [{
|
|
141
|
+
type: Component,
|
|
142
|
+
args: [{ selector: 'rxap-language-selector', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
143
|
+
NgIf,
|
|
144
|
+
MatFormFieldModule,
|
|
145
|
+
StopPropagationDirective,
|
|
146
|
+
MatSelectModule,
|
|
147
|
+
FormsModule,
|
|
148
|
+
NgFor,
|
|
149
|
+
MatOptionModule,
|
|
150
|
+
KeyValuePipe,
|
|
151
|
+
], 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"] }]
|
|
152
|
+
}], ctorParameters: function () { return [{ type: LanguageSelectorService }]; } });
|
|
153
|
+
|
|
72
154
|
class NavigationProgressBarComponent {
|
|
73
155
|
constructor(router) {
|
|
74
156
|
this.router = router;
|
|
@@ -77,217 +159,147 @@ class NavigationProgressBarComponent {
|
|
|
77
159
|
event instanceof NavigationCancel), map(event => event instanceof NavigationStart));
|
|
78
160
|
}
|
|
79
161
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationProgressBarComponent, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
80
|
-
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$
|
|
162
|
+
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 }); }
|
|
81
163
|
}
|
|
82
164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationProgressBarComponent, decorators: [{
|
|
83
165
|
type: Component,
|
|
84
|
-
args: [{ selector: 'rxap-navigation-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
85
|
-
|
|
166
|
+
args: [{ selector: 'rxap-navigation-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
167
|
+
NgIf,
|
|
168
|
+
MatProgressBarModule,
|
|
169
|
+
AsyncPipe,
|
|
170
|
+
], template: "<mat-progress-bar\n *ngIf=\"navigating$ | async\"\n color=\"accent\"\n mode=\"indeterminate\"\n></mat-progress-bar>\n" }]
|
|
171
|
+
}], ctorParameters: function () { return [{ type: i2$2.Router, decorators: [{
|
|
86
172
|
type: Inject,
|
|
87
173
|
args: [Router]
|
|
88
174
|
}] }]; } });
|
|
89
175
|
|
|
90
|
-
class
|
|
91
|
-
constructor(
|
|
92
|
-
this.
|
|
176
|
+
class UserProfileIconComponent {
|
|
177
|
+
constructor(userProfileService, authenticationService) {
|
|
178
|
+
this.userProfileService = userProfileService;
|
|
179
|
+
this.authenticationService = authenticationService;
|
|
180
|
+
this.username = signal(null);
|
|
93
181
|
}
|
|
94
|
-
|
|
95
|
-
this.
|
|
182
|
+
ngOnInit() {
|
|
183
|
+
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();
|
|
96
184
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
args: [Router]
|
|
106
|
-
}] }]; } });
|
|
107
|
-
|
|
108
|
-
class UserProfileIconComponent {
|
|
109
|
-
constructor(userService) {
|
|
110
|
-
this.userService = userService;
|
|
111
|
-
this.userProfileUrl$ = this.userService.user$.pipe(isDefined(), map((user) => user.photoURL ?? user.avatarUrl));
|
|
112
|
-
this.userName$ = this.userService.user$.pipe(isDefined(), map((user) => user.name ??
|
|
113
|
-
(user.firstname || user.lastname
|
|
114
|
-
? [user.firstname, user.lastname].join(' ').trim()
|
|
115
|
-
: null) ??
|
|
116
|
-
user.username));
|
|
117
|
-
}
|
|
118
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserProfileIconComponent, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
119
|
-
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 [name]=\"(userName$ | async) ?? ''\"\n [rxapAvatarBackgroundImage]=\"userProfileUrl$ | 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"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$3.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$3.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: i2$3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: ["rxapAvatarBackgroundImage", "name"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
185
|
+
ngOnDestroy() {
|
|
186
|
+
this._subscription?.unsubscribe();
|
|
187
|
+
}
|
|
188
|
+
async logout() {
|
|
189
|
+
await this.authenticationService.signOut();
|
|
190
|
+
}
|
|
191
|
+
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 }); }
|
|
192
|
+
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: i3$2.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: i3$2.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$3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$3.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 }); }
|
|
120
193
|
}
|
|
121
194
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: UserProfileIconComponent, decorators: [{
|
|
122
195
|
type: Component,
|
|
123
196
|
args: [{ selector: 'rxap-user-profile-icon', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
124
197
|
FlexModule,
|
|
125
198
|
MatMenuModule,
|
|
126
|
-
AvatarBackgroundImageDirective,
|
|
127
|
-
NgIf,
|
|
128
199
|
MatIconModule,
|
|
200
|
+
NgIf,
|
|
129
201
|
AsyncPipe,
|
|
130
|
-
], template: "<button [matMenuTriggerFor]=\"menu\"\n [
|
|
131
|
-
}], ctorParameters: function () { return [{ type:
|
|
132
|
-
type: Inject,
|
|
133
|
-
args: [UserService]
|
|
134
|
-
}] }]; } });
|
|
202
|
+
], 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"] }]
|
|
203
|
+
}], ctorParameters: function () { return [{ type: i1$1.RxapUserProfileService }, { type: i1$1.RxapAuthenticationService }]; } });
|
|
135
204
|
|
|
136
|
-
class
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
205
|
+
class AppUrlService {
|
|
206
|
+
constructor(config, localeId, userProfileService) {
|
|
207
|
+
this.config = config;
|
|
208
|
+
this.localeId = localeId;
|
|
209
|
+
this.userProfileService = userProfileService;
|
|
210
|
+
this._apps = this.config.get('navigation.apps') ?? [];
|
|
211
|
+
}
|
|
212
|
+
getApp(appId) {
|
|
213
|
+
return this._apps.find(app => app.id === appId) ?? null;
|
|
214
|
+
}
|
|
215
|
+
getAppUrl(appId, path) {
|
|
216
|
+
const app = this.getApp(appId);
|
|
217
|
+
if (app) {
|
|
218
|
+
const prefix = this.getPathPrefix();
|
|
219
|
+
return JoinPath(app.href, prefix, path);
|
|
141
220
|
}
|
|
142
|
-
return
|
|
221
|
+
return null;
|
|
143
222
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
223
|
+
navigate(appId, path) {
|
|
224
|
+
const url = this.getAppUrl(appId, path);
|
|
225
|
+
if (url) {
|
|
226
|
+
ClickOnLink(url);
|
|
147
227
|
}
|
|
148
|
-
|
|
149
|
-
|
|
228
|
+
}
|
|
229
|
+
async getAppList() {
|
|
230
|
+
const roles = await this.userProfileService.getRoleList();
|
|
231
|
+
return this._apps.filter(app => !app.hidden)
|
|
232
|
+
.map(app => ({
|
|
233
|
+
...app,
|
|
234
|
+
href: JoinPath(app.href, this.getPathPrefix()),
|
|
235
|
+
}))
|
|
236
|
+
.filter(app => !app.permissions ||
|
|
237
|
+
!app.permissions.length ||
|
|
238
|
+
app.permissions.every(permission => roles.includes(permission)));
|
|
239
|
+
}
|
|
240
|
+
getPathPrefix() {
|
|
241
|
+
switch (this.localeId) {
|
|
242
|
+
case 'de-DE':
|
|
243
|
+
return 'de';
|
|
244
|
+
case 'en-US':
|
|
245
|
+
return 'en';
|
|
246
|
+
default:
|
|
247
|
+
return 'de';
|
|
150
248
|
}
|
|
151
|
-
return 3;
|
|
152
249
|
}
|
|
153
|
-
|
|
154
|
-
|
|
250
|
+
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 }); }
|
|
251
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppUrlService, providedIn: 'root' }); }
|
|
252
|
+
}
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppUrlService, decorators: [{
|
|
254
|
+
type: Injectable,
|
|
255
|
+
args: [{ providedIn: 'root' }]
|
|
256
|
+
}], ctorParameters: function () { return [{ type: i1$2.ConfigService }, { type: undefined, decorators: [{
|
|
257
|
+
type: Inject,
|
|
258
|
+
args: [LOCALE_ID]
|
|
259
|
+
}] }, { type: i1$1.RxapUserProfileService }]; } });
|
|
260
|
+
|
|
261
|
+
class AppsButtonComponent {
|
|
262
|
+
constructor(grid, appUrlService, authenticationService) {
|
|
263
|
+
this.appUrlService = appUrlService;
|
|
264
|
+
this.authenticationService = authenticationService;
|
|
155
265
|
this.isOpen = false;
|
|
156
|
-
this.
|
|
157
|
-
|
|
266
|
+
this.appList = signal([]);
|
|
267
|
+
}
|
|
268
|
+
ngOnInit() {
|
|
269
|
+
this._subscription = this.authenticationService.isAuthenticated$.pipe(filter(Boolean), switchMap$1(() => this.appUrlService.getAppList()), tap((apps) => this.appList.set(apps))).subscribe();
|
|
270
|
+
}
|
|
271
|
+
ngOnDestroy() {
|
|
272
|
+
this._subscription?.unsubscribe();
|
|
158
273
|
}
|
|
159
|
-
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:
|
|
160
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: AppsButtonComponent, isStandalone: true, selector: "rxap-apps-button",
|
|
274
|
+
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 }); }
|
|
275
|
+
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\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n\n <div *ngIf=\"isOpen\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"24px\">\n\n <div *ngFor=\"let app of appList()\" class=\"app\">\n <a [href]=\"app.href\" mat-stroked-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"15px\">\n <img *ngIf=\"app.image\" [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n <span class=\"label\" fxFlex=\"nogrow\">{{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: [".app{height:40px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i3$2.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: i3$2.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: i3$2.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: i3$2.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: MatButtonModule }, { kind: "component", type: i1$4.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: i1$4.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 }); }
|
|
161
276
|
}
|
|
162
277
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AppsButtonComponent, decorators: [{
|
|
163
278
|
type: Component,
|
|
164
|
-
args: [{ selector: 'rxap-apps-button', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
279
|
+
args: [{ selector: 'rxap-apps-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
165
280
|
NgIf,
|
|
281
|
+
FlexModule,
|
|
282
|
+
NgFor,
|
|
166
283
|
MatButtonModule,
|
|
167
|
-
CdkOverlayOrigin,
|
|
168
284
|
MatIconModule,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
NgStyle,
|
|
172
|
-
NgFor,
|
|
173
|
-
NgClass,
|
|
174
|
-
FlexModule,
|
|
175
|
-
], 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"] }]
|
|
285
|
+
NgOptimizedImage,
|
|
286
|
+
], template: "<div *ngIf=\"appList()?.length\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"32px\">\n\n <div *ngIf=\"isOpen\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"24px\">\n\n <div *ngFor=\"let app of appList()\" class=\"app\">\n <a [href]=\"app.href\" mat-stroked-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"15px\">\n <img *ngIf=\"app.image\" [alt]=\"app.label\" [ngSrc]=\"app.image\" height=\"40\" width=\"40\">\n <span class=\"label\" fxFlex=\"nogrow\">{{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: [".app{height:40px}\n"] }]
|
|
176
287
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
177
288
|
type: Optional
|
|
178
289
|
}, {
|
|
179
290
|
type: Inject,
|
|
180
291
|
args: [RXAP_LAYOUT_APPS_GRID]
|
|
181
|
-
}] }, { type: i1$
|
|
182
|
-
type: Inject,
|
|
183
|
-
args: [ConfigService]
|
|
184
|
-
}] }]; } });
|
|
185
|
-
|
|
186
|
-
const RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY = 'rxap__selected_language';
|
|
187
|
-
const RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY = 'rxap__selected_language_last_change';
|
|
188
|
-
class LanguageSelectorService {
|
|
189
|
-
constructor(config) {
|
|
190
|
-
this.config = config;
|
|
191
|
-
this.languages = this.config.get('i18n.languages') ?? {};
|
|
192
|
-
this.defaultLanguage =
|
|
193
|
-
this.config.get('i18n.defaultLanguage') ??
|
|
194
|
-
Object.keys(this.languages)[0] ??
|
|
195
|
-
'en';
|
|
196
|
-
this.selectedLanguage =
|
|
197
|
-
localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY) ??
|
|
198
|
-
this.defaultLanguage;
|
|
199
|
-
}
|
|
200
|
-
setLanguage(language) {
|
|
201
|
-
if (language !== this.selectedLanguage) {
|
|
202
|
-
this.redirect(language);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
autoRedirect() {
|
|
206
|
-
if (localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY)) {
|
|
207
|
-
this.redirect(localStorage.getItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
redirect(language) {
|
|
211
|
-
const currentUrl = location.origin + location.pathname + location.search;
|
|
212
|
-
const redirectUrl = location.origin +
|
|
213
|
-
`/${language}` +
|
|
214
|
-
location.pathname.replace(new RegExp(`^/${this.selectedLanguage}`), '') +
|
|
215
|
-
location.search;
|
|
216
|
-
this.selectedLanguage = language;
|
|
217
|
-
localStorage.setItem(RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY, language);
|
|
218
|
-
if (currentUrl !== redirectUrl) {
|
|
219
|
-
if (this.checkLastChange()) {
|
|
220
|
-
location.replace(redirectUrl);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
console.log('Redirect not required');
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
checkLastChange() {
|
|
228
|
-
const lastChangeString = localStorage.getItem(RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY);
|
|
229
|
-
if (lastChangeString) {
|
|
230
|
-
if (Date.now() - parseInt(lastChangeString, 10) < 1000) {
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
localStorage.setItem(RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY, Date.now().toFixed(0));
|
|
235
|
-
return true;
|
|
236
|
-
}
|
|
237
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
238
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, providedIn: 'root' }); }
|
|
239
|
-
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorService, decorators: [{
|
|
241
|
-
type: Injectable,
|
|
242
|
-
args: [{ providedIn: 'root' }]
|
|
243
|
-
}], ctorParameters: function () { return [{ type: i1$4.ConfigService, decorators: [{
|
|
244
|
-
type: Inject,
|
|
245
|
-
args: [ConfigService]
|
|
246
|
-
}] }]; } });
|
|
247
|
-
class LanguageSelectorComponent {
|
|
248
|
-
constructor(language) {
|
|
249
|
-
this.language = language;
|
|
250
|
-
}
|
|
251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorComponent, deps: [{ token: LanguageSelectorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
252
|
-
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\">\n <mat-select (ngModelChange)=\"language.setLanguage($event)\" [ngModel]=\"language.selectedLanguage\">\n <mat-option *ngFor=\"let item of language.languages | keyvalue\"\n [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"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { 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$1.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 }); }
|
|
253
|
-
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LanguageSelectorComponent, decorators: [{
|
|
255
|
-
type: Component,
|
|
256
|
-
args: [{ selector: 'rxap-language-selector', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
257
|
-
NgIf,
|
|
258
|
-
MatFormFieldModule,
|
|
259
|
-
MatSelectModule,
|
|
260
|
-
FormsModule,
|
|
261
|
-
NgFor,
|
|
262
|
-
MatOptionModule,
|
|
263
|
-
KeyValuePipe,
|
|
264
|
-
], 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\"\n [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"] }]
|
|
265
|
-
}], ctorParameters: function () { return [{ type: LanguageSelectorService }]; } });
|
|
266
|
-
|
|
267
|
-
class SidenavToggleButtonComponent {
|
|
268
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
269
|
-
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: i1$2.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$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
270
|
-
}
|
|
271
|
-
__decorate([
|
|
272
|
-
Required,
|
|
273
|
-
__metadata("design:type", MatSidenav)
|
|
274
|
-
], SidenavToggleButtonComponent.prototype, "sidenav", void 0);
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, decorators: [{
|
|
276
|
-
type: Component,
|
|
277
|
-
args: [{ selector: 'rxap-sidenav-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatButtonModule, NgIf, MatIconModule], 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" }]
|
|
278
|
-
}], propDecorators: { sidenav: [{
|
|
279
|
-
type: Input
|
|
280
|
-
}] } });
|
|
292
|
+
}] }, { type: AppUrlService }, { type: i1$1.RxapAuthenticationService }]; } });
|
|
281
293
|
|
|
282
294
|
class HeaderComponent {
|
|
283
|
-
constructor(headerComponentService,
|
|
295
|
+
constructor(headerComponentService, headerComponent, theme) {
|
|
284
296
|
this.headerComponentService = headerComponentService;
|
|
285
|
-
this.userService = userService;
|
|
286
297
|
this.headerComponent = headerComponent;
|
|
298
|
+
this.theme = theme;
|
|
287
299
|
this.components = [];
|
|
288
300
|
this.subscriptions = new Subscription();
|
|
289
301
|
this.color = 'primary';
|
|
290
|
-
this.
|
|
302
|
+
this.isDevMode = isDevMode();
|
|
291
303
|
}
|
|
292
304
|
ngOnInit() {
|
|
293
305
|
this.updateComponents();
|
|
@@ -301,55 +313,66 @@ class HeaderComponent {
|
|
|
301
313
|
ngOnDestroy() {
|
|
302
314
|
this.subscriptions.unsubscribe();
|
|
303
315
|
}
|
|
304
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HeaderComponent, deps: [{ token: HeaderService }, { token:
|
|
305
|
-
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"
|
|
316
|
+
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 }); }
|
|
317
|
+
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: i1$4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$3.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 }); }
|
|
306
318
|
}
|
|
307
319
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
308
320
|
type: Component,
|
|
309
321
|
args: [{ selector: 'rxap-header', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
310
322
|
MatToolbarModule,
|
|
311
|
-
ExtendedModule,
|
|
312
323
|
NgClass,
|
|
313
|
-
NgFor,
|
|
314
|
-
NgComponentOutlet,
|
|
315
|
-
FlexModule,
|
|
316
324
|
NgIf,
|
|
317
|
-
SidenavToggleButtonComponent,
|
|
318
|
-
LanguageSelectorComponent,
|
|
319
|
-
AppsButtonComponent,
|
|
320
|
-
UserProfileIconComponent,
|
|
321
325
|
MatButtonModule,
|
|
322
326
|
MatMenuModule,
|
|
323
327
|
MatIconModule,
|
|
324
|
-
|
|
325
|
-
|
|
328
|
+
LanguageSelectorComponent,
|
|
329
|
+
MatFormFieldModule,
|
|
330
|
+
StopPropagationDirective,
|
|
331
|
+
MatSelectModule,
|
|
332
|
+
FormsModule,
|
|
333
|
+
MatOptionModule,
|
|
334
|
+
DataSourceCollectionDirective,
|
|
335
|
+
MatSlideToggleModule,
|
|
326
336
|
AsyncPipe,
|
|
327
|
-
|
|
337
|
+
NavigationProgressBarComponent,
|
|
338
|
+
UserProfileIconComponent,
|
|
339
|
+
AppsButtonComponent,
|
|
340
|
+
], 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" }]
|
|
328
341
|
}], ctorParameters: function () { return [{ type: i1.HeaderService, decorators: [{
|
|
329
342
|
type: Inject,
|
|
330
343
|
args: [HeaderService]
|
|
331
|
-
}] }, { type: i4.UserService, decorators: [{
|
|
332
|
-
type: Inject,
|
|
333
|
-
args: [UserService]
|
|
334
344
|
}] }, { type: undefined, decorators: [{
|
|
335
345
|
type: Optional
|
|
336
346
|
}, {
|
|
337
347
|
type: Inject,
|
|
338
348
|
args: [RXAP_HEADER_COMPONENT]
|
|
339
|
-
}] }]; }, propDecorators: { sidenav: [{
|
|
349
|
+
}] }, { type: i1.ThemeService }]; }, propDecorators: { sidenav: [{
|
|
340
350
|
type: Input
|
|
341
351
|
}], color: [{
|
|
342
352
|
type: Input
|
|
343
|
-
}], settingsMenuPanel: [{
|
|
344
|
-
type: Input
|
|
345
353
|
}] } });
|
|
346
354
|
|
|
355
|
+
class SignOutComponent {
|
|
356
|
+
constructor(authenticationService) {
|
|
357
|
+
this.authenticationService = authenticationService;
|
|
358
|
+
}
|
|
359
|
+
async logout() {
|
|
360
|
+
await this.authenticationService.signOut();
|
|
361
|
+
}
|
|
362
|
+
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 }); }
|
|
363
|
+
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: i1$4.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 }); }
|
|
364
|
+
}
|
|
365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignOutComponent, decorators: [{
|
|
366
|
+
type: Component,
|
|
367
|
+
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" }]
|
|
368
|
+
}], ctorParameters: function () { return [{ type: i1$1.RxapAuthenticationService }]; } });
|
|
369
|
+
|
|
347
370
|
class ResetButtonComponent {
|
|
348
371
|
constructor(resetService) {
|
|
349
372
|
this.resetService = resetService;
|
|
350
373
|
}
|
|
351
374
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetButtonComponent, deps: [{ token: ResetService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
352
|
-
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: i1$
|
|
375
|
+
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: i1$4.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 }); }
|
|
353
376
|
}
|
|
354
377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ResetButtonComponent, decorators: [{
|
|
355
378
|
type: Component,
|
|
@@ -359,6 +382,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
359
382
|
args: [ResetService]
|
|
360
383
|
}] }]; } });
|
|
361
384
|
|
|
385
|
+
class SidenavToggleButtonComponent {
|
|
386
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
387
|
+
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: i1$4.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 }); }
|
|
388
|
+
}
|
|
389
|
+
__decorate([
|
|
390
|
+
Required,
|
|
391
|
+
__metadata("design:type", MatSidenav)
|
|
392
|
+
], SidenavToggleButtonComponent.prototype, "sidenav", void 0);
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, decorators: [{
|
|
394
|
+
type: Component,
|
|
395
|
+
args: [{ selector: 'rxap-sidenav-toggle-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
396
|
+
MatButtonModule,
|
|
397
|
+
NgIf,
|
|
398
|
+
MatIconModule,
|
|
399
|
+
], 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" }]
|
|
400
|
+
}], propDecorators: { sidenav: [{
|
|
401
|
+
type: Input
|
|
402
|
+
}] } });
|
|
403
|
+
|
|
362
404
|
class LayoutComponentService {
|
|
363
405
|
constructor(footerComponentService, headerComponentService, logoConfig = null, config) {
|
|
364
406
|
this.footerComponentService = footerComponentService;
|
|
@@ -374,7 +416,7 @@ class LayoutComponentService {
|
|
|
374
416
|
this.headerComponentService.update$.pipe(tap(() => this.fixedTopGap$.next(this.headerComponentService.countComponent * 64))).subscribe();
|
|
375
417
|
this.logo = logoConfig ?? {
|
|
376
418
|
src: '/assets/logo.png',
|
|
377
|
-
width:
|
|
419
|
+
width: 192,
|
|
378
420
|
};
|
|
379
421
|
}
|
|
380
422
|
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 }); }
|
|
@@ -388,179 +430,178 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
388
430
|
}, {
|
|
389
431
|
type: Inject,
|
|
390
432
|
args: [RXAP_LOGO_CONFIG]
|
|
391
|
-
}] }, { type: i1$
|
|
433
|
+
}] }, { type: i1$2.ConfigService, decorators: [{
|
|
392
434
|
type: Inject,
|
|
393
435
|
args: [ConfigService]
|
|
394
436
|
}] }]; } });
|
|
395
437
|
|
|
396
|
-
class
|
|
397
|
-
constructor(
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
}
|
|
402
|
-
ngOnInit() {
|
|
403
|
-
const components = this.service.getAll();
|
|
404
|
-
for (const component of components) {
|
|
405
|
-
this.add(component);
|
|
406
|
-
}
|
|
407
|
-
this.subscription.add(this.service.add$.pipe(tap(component => this.add(component))).subscribe());
|
|
408
|
-
this.subscription.add(this.service.remove$.pipe(tap(component => this.remove(component))).subscribe());
|
|
438
|
+
class SidenavComponentService {
|
|
439
|
+
constructor(config) {
|
|
440
|
+
this.config = config;
|
|
441
|
+
this.collapsed$ = new BehaviorSubject(true);
|
|
442
|
+
this.collapsed$.next(this.config.get('navigation.collapsed', this.collapsed$.value));
|
|
409
443
|
}
|
|
410
|
-
|
|
411
|
-
this.
|
|
444
|
+
toggleNavigationCollapse() {
|
|
445
|
+
this.collapsed$.next(!this.collapsed$.value);
|
|
412
446
|
}
|
|
413
|
-
|
|
414
|
-
|
|
447
|
+
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 }); }
|
|
448
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponentService, providedIn: 'root' }); }
|
|
449
|
+
}
|
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponentService, decorators: [{
|
|
451
|
+
type: Injectable,
|
|
452
|
+
args: [{ providedIn: 'root' }]
|
|
453
|
+
}], ctorParameters: function () { return [{ type: i1$2.ConfigService }]; } });
|
|
454
|
+
|
|
455
|
+
class NavigationItemComponent {
|
|
456
|
+
get isActive() {
|
|
457
|
+
return this._isActive;
|
|
415
458
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
const portal = new ComponentPortal(component.component, component.viewContainerRef, component.injector, component.componentFactoryResolver);
|
|
421
|
-
this.portals.set(component.id, portal);
|
|
459
|
+
set isActive(value) {
|
|
460
|
+
this._isActive = value;
|
|
461
|
+
this.active.set(value);
|
|
422
462
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
463
|
+
constructor(router, sidenav, elementRef, renderer, overlay, viewContainerRef) {
|
|
464
|
+
this.router = router;
|
|
465
|
+
this.sidenav = sidenav;
|
|
466
|
+
this.elementRef = elementRef;
|
|
467
|
+
this.renderer = renderer;
|
|
468
|
+
this.overlay = overlay;
|
|
469
|
+
this.viewContainerRef = viewContainerRef;
|
|
470
|
+
this.level = 0;
|
|
471
|
+
this._isActive = false;
|
|
472
|
+
this.children = null;
|
|
473
|
+
this.active = signal(false);
|
|
474
|
+
this._subscription = new Subscription();
|
|
429
475
|
}
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}], ctorParameters: function () { return [{ type: i1.WindowContainerSidenavService, decorators: [{
|
|
437
|
-
type: Inject,
|
|
438
|
-
args: [WindowContainerSidenavService]
|
|
439
|
-
}] }]; } });
|
|
440
|
-
|
|
441
|
-
class ToggleWindowSidenavButtonComponent {
|
|
442
|
-
constructor() {
|
|
443
|
-
this.openWindowSidenav = false;
|
|
444
|
-
this.openWindowSidenavChange = new EventEmitter();
|
|
476
|
+
ngOnChanges(changes) {
|
|
477
|
+
if (changes['item']) {
|
|
478
|
+
const item = changes['item'].currentValue;
|
|
479
|
+
this.children =
|
|
480
|
+
item.children && item.children.length ? item.children : null;
|
|
481
|
+
}
|
|
445
482
|
}
|
|
446
|
-
|
|
447
|
-
this.
|
|
448
|
-
|
|
483
|
+
ngAfterViewInit() {
|
|
484
|
+
this._subscription.add(this.router.events
|
|
485
|
+
.pipe(filter((event) => event instanceof NavigationEnd), debounceTime(100), startWith(true), tap(() => {
|
|
486
|
+
let isActive = true;
|
|
487
|
+
const urlParts = this.router.url.split('/');
|
|
488
|
+
if (urlParts[0] === '') {
|
|
489
|
+
urlParts[0] = '/';
|
|
490
|
+
}
|
|
491
|
+
for (let i = 0; i < this.item.routerLink.length; i++) {
|
|
492
|
+
if (urlParts[i] !== this.item.routerLink[i]) {
|
|
493
|
+
isActive = false;
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
this.isActive = isActive;
|
|
498
|
+
if (isActive) {
|
|
499
|
+
this.renderer.addClass(this.elementRef.nativeElement, 'active');
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
this.renderer.removeClass(this.elementRef.nativeElement, 'active');
|
|
503
|
+
}
|
|
504
|
+
}))
|
|
505
|
+
.subscribe());
|
|
449
506
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}], openWindowSidenavChange: [{
|
|
461
|
-
type: Output
|
|
462
|
-
}] } });
|
|
463
|
-
|
|
464
|
-
class SidenavContentComponentService {
|
|
465
|
-
constructor(footerComponentService, headerComponentService) {
|
|
466
|
-
this.footerComponentService = footerComponentService;
|
|
467
|
-
this.headerComponentService = headerComponentService;
|
|
468
|
-
this.headerRows$ = new BehaviorSubject(1);
|
|
469
|
-
this.headerRows$.next(this.headerComponentService.countComponent);
|
|
470
|
-
this.footerComponentService.portalCount$.pipe().subscribe();
|
|
471
|
-
this.footerRows$ = this.footerComponentService.portalCount$;
|
|
472
|
-
this.headerComponentService.update$.pipe(tap(() => this.headerRows$.next(this.headerComponentService.countComponent))).subscribe();
|
|
473
|
-
this.innerHeight$ = combineLatest([
|
|
474
|
-
this.headerRows$,
|
|
475
|
-
this.footerRows$,
|
|
476
|
-
]).pipe(map(([headerRows, footerRows]) => `calc(100% - ${64 * (headerRows + footerRows)}px)`));
|
|
477
|
-
this.marginTop$ = this.headerRows$.pipe(map(headerRows => `${headerRows * 64}px`));
|
|
478
|
-
this.marginBottom$ = this.footerRows$.pipe(map(footerRows => `${footerRows * 64}px`));
|
|
479
|
-
}
|
|
480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavContentComponentService, deps: [{ token: FooterService }, { token: HeaderService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
481
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavContentComponentService, providedIn: 'root' }); }
|
|
482
|
-
}
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavContentComponentService, decorators: [{
|
|
484
|
-
type: Injectable,
|
|
485
|
-
args: [{ providedIn: 'root' }]
|
|
486
|
-
}], ctorParameters: function () { return [{ type: i1.FooterService, decorators: [{
|
|
487
|
-
type: Inject,
|
|
488
|
-
args: [FooterService]
|
|
489
|
-
}] }, { type: i1.HeaderService, decorators: [{
|
|
490
|
-
type: Inject,
|
|
491
|
-
args: [HeaderService]
|
|
492
|
-
}] }]; } });
|
|
493
|
-
|
|
494
|
-
class SidenavContentComponent {
|
|
495
|
-
constructor(sccs) {
|
|
496
|
-
this.sccs = sccs;
|
|
507
|
+
ngOnDestroy() {
|
|
508
|
+
this._subscription?.unsubscribe();
|
|
509
|
+
}
|
|
510
|
+
// region type save item property
|
|
511
|
+
// required to check the type of the item property in the ngFor loop
|
|
512
|
+
isNavigationDividerItem(item) {
|
|
513
|
+
return item['divider'];
|
|
514
|
+
}
|
|
515
|
+
isNavigationItem(item) {
|
|
516
|
+
return !this.isNavigationDividerItem(item);
|
|
497
517
|
}
|
|
498
|
-
|
|
499
|
-
|
|
518
|
+
asNavigationItem(item) {
|
|
519
|
+
if (!this.isNavigationItem(item)) {
|
|
520
|
+
throw new Error('The item is not a NavigationItem');
|
|
521
|
+
}
|
|
522
|
+
return item;
|
|
523
|
+
}
|
|
524
|
+
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 }); }
|
|
525
|
+
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 px-4 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: [
|
|
526
|
+
trigger('sub-nav', [
|
|
527
|
+
transition(':enter', [
|
|
528
|
+
style({
|
|
529
|
+
display: 'block',
|
|
530
|
+
height: '0',
|
|
531
|
+
overflow: 'hidden',
|
|
532
|
+
}),
|
|
533
|
+
animate(150, style({ height: '*' })),
|
|
534
|
+
]),
|
|
535
|
+
transition(':leave', [
|
|
536
|
+
style({ overflow: 'hidden' }),
|
|
537
|
+
animate(300, style({ height: '0' })),
|
|
538
|
+
style({ display: 'none' }),
|
|
539
|
+
]),
|
|
540
|
+
]),
|
|
541
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
500
542
|
}
|
|
501
543
|
__decorate([
|
|
502
544
|
Required,
|
|
503
|
-
__metadata("design:type",
|
|
504
|
-
],
|
|
505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type:
|
|
545
|
+
__metadata("design:type", Object)
|
|
546
|
+
], NavigationItemComponent.prototype, "item", void 0);
|
|
547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationItemComponent, decorators: [{
|
|
506
548
|
type: Component,
|
|
507
|
-
args: [{ selector: 'rxap-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
standalone: true,
|
|
524
|
-
|
|
525
|
-
|
|
549
|
+
args: [{ selector: 'li[rxap-navigation-item]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [
|
|
550
|
+
trigger('sub-nav', [
|
|
551
|
+
transition(':enter', [
|
|
552
|
+
style({
|
|
553
|
+
display: 'block',
|
|
554
|
+
height: '0',
|
|
555
|
+
overflow: 'hidden',
|
|
556
|
+
}),
|
|
557
|
+
animate(150, style({ height: '*' })),
|
|
558
|
+
]),
|
|
559
|
+
transition(':leave', [
|
|
560
|
+
style({ overflow: 'hidden' }),
|
|
561
|
+
animate(300, style({ height: '0' })),
|
|
562
|
+
style({ display: 'none' }),
|
|
563
|
+
]),
|
|
564
|
+
]),
|
|
565
|
+
], standalone: true, imports: [
|
|
566
|
+
RouterLinkActive,
|
|
567
|
+
RouterLink,
|
|
568
|
+
NgIf,
|
|
569
|
+
MatRippleModule,
|
|
570
|
+
MatIconModule,
|
|
571
|
+
IconDirective,
|
|
572
|
+
MatDividerModule,
|
|
573
|
+
forwardRef(() => NavigationComponent),
|
|
574
|
+
NgClass,
|
|
575
|
+
], template: "<div [ngClass]=\"{\n 'border-l-4 text-accent-400 border-accent-600': active(),\n }\">\n <a [routerLink]=\"item.routerLink\"\n class=\"h-12 px-4 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" }]
|
|
576
|
+
}], ctorParameters: function () { return [{ type: i2$2.Router, decorators: [{
|
|
526
577
|
type: Inject,
|
|
527
|
-
args: [
|
|
528
|
-
}] }
|
|
529
|
-
|
|
530
|
-
class SidenavFooterDirective {
|
|
531
|
-
constructor(template) {
|
|
532
|
-
this.template = template;
|
|
533
|
-
}
|
|
534
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavFooterDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
535
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SidenavFooterDirective, isStandalone: true, selector: "[rxapSidenavFooter]", ngImport: i0 }); }
|
|
536
|
-
}
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavFooterDirective, decorators: [{
|
|
538
|
-
type: Directive,
|
|
539
|
-
args: [{
|
|
540
|
-
selector: '[rxapSidenavFooter]',
|
|
541
|
-
standalone: true,
|
|
542
|
-
}]
|
|
543
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
578
|
+
args: [Router]
|
|
579
|
+
}] }, { type: SidenavComponentService, decorators: [{
|
|
544
580
|
type: Inject,
|
|
545
|
-
args: [
|
|
546
|
-
}] }
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
581
|
+
args: [SidenavComponentService]
|
|
582
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
583
|
+
type: Inject,
|
|
584
|
+
args: [ElementRef]
|
|
585
|
+
}] }, { type: i0.Renderer2, decorators: [{
|
|
586
|
+
type: Inject,
|
|
587
|
+
args: [Renderer2]
|
|
588
|
+
}] }, { type: i6.Overlay, decorators: [{
|
|
589
|
+
type: Inject,
|
|
590
|
+
args: [Overlay]
|
|
591
|
+
}] }, { type: i0.ViewContainerRef, decorators: [{
|
|
592
|
+
type: Inject,
|
|
593
|
+
args: [ViewContainerRef]
|
|
594
|
+
}] }]; }, propDecorators: { level: [{
|
|
595
|
+
type: Input
|
|
596
|
+
}], routerLinkActive: [{
|
|
597
|
+
type: ViewChild,
|
|
598
|
+
args: [RouterLinkActive, { static: true }]
|
|
599
|
+
}], item: [{
|
|
600
|
+
type: Input
|
|
601
|
+
}], isActive: [{
|
|
602
|
+
type: HostBinding,
|
|
603
|
+
args: ['class.active']
|
|
604
|
+
}] } });
|
|
564
605
|
|
|
565
606
|
function IsNavigationDividerItem(item) {
|
|
566
607
|
return !!item && !!item['divider'];
|
|
@@ -711,85 +752,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
711
752
|
args: [RXAP_NAVIGATION_CONFIG_INSERTS]
|
|
712
753
|
}] }]; } });
|
|
713
754
|
|
|
714
|
-
class
|
|
715
|
-
constructor(
|
|
716
|
-
this.
|
|
755
|
+
class NavigationComponent {
|
|
756
|
+
constructor(navigationService, cdr, sidenav) {
|
|
757
|
+
this.navigationService = navigationService;
|
|
758
|
+
this.cdr = cdr;
|
|
717
759
|
this.sidenav = sidenav;
|
|
718
|
-
this.elementRef = elementRef;
|
|
719
|
-
this.renderer = renderer;
|
|
720
|
-
this.overlay = overlay;
|
|
721
|
-
this.viewContainerRef = viewContainerRef;
|
|
722
|
-
this.children = null;
|
|
723
760
|
this.level = 0;
|
|
724
|
-
this.
|
|
725
|
-
this._subscription = new Subscription();
|
|
726
|
-
/**
|
|
727
|
-
* indicates the mouse is over the
|
|
728
|
-
*/
|
|
729
|
-
this.lockeOverlay = false;
|
|
730
|
-
}
|
|
731
|
-
ngOnChanges(changes) {
|
|
732
|
-
if (changes['item']) {
|
|
733
|
-
const item = changes['item'].currentValue;
|
|
734
|
-
this.children =
|
|
735
|
-
item.children && item.children.length ? item.children : null;
|
|
736
|
-
}
|
|
761
|
+
this._root = false;
|
|
737
762
|
}
|
|
738
|
-
|
|
739
|
-
this.
|
|
740
|
-
.pipe(filter((event) => event instanceof NavigationEnd), startWith(true), delay(100), tap(() => {
|
|
741
|
-
if (this.routerLinkActive.isActive) {
|
|
742
|
-
if (!this.sidenav.collapsed$.value) {
|
|
743
|
-
// only close the overlay if sidenav collapsed
|
|
744
|
-
this._overlayRef?.detach();
|
|
745
|
-
}
|
|
746
|
-
this.renderer.addClass(this.elementRef.nativeElement, 'active');
|
|
747
|
-
}
|
|
748
|
-
else {
|
|
749
|
-
this.renderer.removeClass(this.elementRef.nativeElement, 'active');
|
|
750
|
-
}
|
|
751
|
-
}))
|
|
752
|
-
.subscribe());
|
|
763
|
+
set root(value) {
|
|
764
|
+
this._root = coerceBoolean(value);
|
|
753
765
|
}
|
|
754
766
|
ngOnInit() {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
761
|
-
ngOnDestroy() {
|
|
762
|
-
this._subscription?.unsubscribe();
|
|
763
|
-
this._overlayRef?.dispose();
|
|
764
|
-
}
|
|
765
|
-
onMouseenter() {
|
|
766
|
-
if (this.children) {
|
|
767
|
-
if (!this.routerLinkActive.isActive || this.sidenav.collapsed$.value) {
|
|
768
|
-
if (!this._overlayRef) {
|
|
769
|
-
this._overlayRef = this.overlay.create({
|
|
770
|
-
positionStrategy: this.overlay
|
|
771
|
-
.position()
|
|
772
|
-
.flexibleConnectedTo(this.elementRef)
|
|
773
|
-
.withPositions([
|
|
774
|
-
{
|
|
775
|
-
originY: 'top',
|
|
776
|
-
originX: 'end',
|
|
777
|
-
overlayY: 'top',
|
|
778
|
-
overlayX: 'start',
|
|
779
|
-
},
|
|
780
|
-
]),
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
if (!this._overlayRef.hasAttached()) {
|
|
784
|
-
this._embeddedViewRef = this._overlayRef.attach(new TemplatePortal(this._navigationOverlay, this.viewContainerRef));
|
|
785
|
-
}
|
|
786
|
-
}
|
|
767
|
+
if (this._root) {
|
|
768
|
+
this.items = [];
|
|
769
|
+
this.subscription = this.navigationService.config$
|
|
770
|
+
.pipe(tap((navigation) => (this.items = navigation)), tap(() => this.cdr.detectChanges()))
|
|
771
|
+
.subscribe();
|
|
787
772
|
}
|
|
788
773
|
}
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
this._overlayRef?.detach();
|
|
792
|
-
}
|
|
774
|
+
ngOnDestroy() {
|
|
775
|
+
this.subscription?.unsubscribe();
|
|
793
776
|
}
|
|
794
777
|
// region type save item property
|
|
795
778
|
// required to check the type of the item property in the ngFor loop
|
|
@@ -805,186 +788,144 @@ class NavigationItemComponent {
|
|
|
805
788
|
}
|
|
806
789
|
return item;
|
|
807
790
|
}
|
|
808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type:
|
|
809
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type:
|
|
810
|
-
trigger('sub-nav', [
|
|
811
|
-
transition(':enter', [
|
|
812
|
-
style({
|
|
813
|
-
display: 'block',
|
|
814
|
-
height: '0',
|
|
815
|
-
overflow: 'hidden',
|
|
816
|
-
}),
|
|
817
|
-
animate(150, style({ height: '*' })),
|
|
818
|
-
]),
|
|
819
|
-
transition(':leave', [
|
|
820
|
-
style({ overflow: 'hidden' }),
|
|
821
|
-
animate(300, style({ height: '0' })),
|
|
822
|
-
style({ display: 'none' }),
|
|
823
|
-
]),
|
|
824
|
-
]),
|
|
825
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
791
|
+
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 }); }
|
|
792
|
+
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 }); }
|
|
826
793
|
}
|
|
827
794
|
__decorate([
|
|
828
795
|
Required,
|
|
829
|
-
__metadata("design:type",
|
|
830
|
-
],
|
|
831
|
-
|
|
832
|
-
DebounceCall(100),
|
|
833
|
-
__metadata("design:type", Function),
|
|
834
|
-
__metadata("design:paramtypes", []),
|
|
835
|
-
__metadata("design:returntype", void 0)
|
|
836
|
-
], NavigationItemComponent.prototype, "onMouseleave", null);
|
|
837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationItemComponent, decorators: [{
|
|
796
|
+
__metadata("design:type", Array)
|
|
797
|
+
], NavigationComponent.prototype, "items", void 0);
|
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationComponent, decorators: [{
|
|
838
799
|
type: Component,
|
|
839
|
-
args: [{ selector: '
|
|
840
|
-
class: '
|
|
841
|
-
},
|
|
842
|
-
trigger('sub-nav', [
|
|
843
|
-
transition(':enter', [
|
|
844
|
-
style({
|
|
845
|
-
display: 'block',
|
|
846
|
-
height: '0',
|
|
847
|
-
overflow: 'hidden',
|
|
848
|
-
}),
|
|
849
|
-
animate(150, style({ height: '*' })),
|
|
850
|
-
]),
|
|
851
|
-
transition(':leave', [
|
|
852
|
-
style({ overflow: 'hidden' }),
|
|
853
|
-
animate(300, style({ height: '0' })),
|
|
854
|
-
style({ display: 'none' }),
|
|
855
|
-
]),
|
|
856
|
-
]),
|
|
857
|
-
], standalone: true, imports: [
|
|
858
|
-
RouterLinkActive,
|
|
859
|
-
MatRippleModule,
|
|
860
|
-
RouterLink,
|
|
861
|
-
MatTooltipModule,
|
|
862
|
-
NgIf,
|
|
863
|
-
MatIconModule,
|
|
864
|
-
IconDirective,
|
|
865
|
-
forwardRef(() => NavigationComponent),
|
|
866
|
-
FlexModule,
|
|
800
|
+
args: [{ selector: 'ul[rxap-navigation]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, host: {
|
|
801
|
+
class: 'list-none dark:text-neutral-400 text-neutral-700',
|
|
802
|
+
}, imports: [
|
|
867
803
|
NgFor,
|
|
804
|
+
NgIf,
|
|
805
|
+
MatDividerModule,
|
|
806
|
+
forwardRef(() => NavigationItemComponent),
|
|
868
807
|
AsyncPipe,
|
|
869
|
-
], template: "<
|
|
870
|
-
}], ctorParameters: function () { return [{ type:
|
|
808
|
+
], 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" }]
|
|
809
|
+
}], ctorParameters: function () { return [{ type: NavigationService, decorators: [{
|
|
871
810
|
type: Inject,
|
|
872
|
-
args: [
|
|
811
|
+
args: [NavigationService]
|
|
812
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
813
|
+
type: Inject,
|
|
814
|
+
args: [ChangeDetectorRef]
|
|
873
815
|
}] }, { type: SidenavComponentService, decorators: [{
|
|
874
816
|
type: Inject,
|
|
875
817
|
args: [SidenavComponentService]
|
|
876
|
-
}] },
|
|
877
|
-
type: Inject,
|
|
878
|
-
args: [ElementRef]
|
|
879
|
-
}] }, { type: i0.Renderer2, decorators: [{
|
|
880
|
-
type: Inject,
|
|
881
|
-
args: [Renderer2]
|
|
882
|
-
}] }, { type: i7.Overlay, decorators: [{
|
|
883
|
-
type: Inject,
|
|
884
|
-
args: [Overlay]
|
|
885
|
-
}] }, { type: i0.ViewContainerRef, decorators: [{
|
|
886
|
-
type: Inject,
|
|
887
|
-
args: [ViewContainerRef]
|
|
888
|
-
}] }]; }, propDecorators: { routerLinkActive: [{
|
|
889
|
-
type: ViewChild,
|
|
890
|
-
args: [RouterLinkActive, { static: true }]
|
|
891
|
-
}], item: [{
|
|
818
|
+
}] }]; }, propDecorators: { items: [{
|
|
892
819
|
type: Input
|
|
893
820
|
}], level: [{
|
|
894
821
|
type: Input
|
|
895
|
-
}],
|
|
822
|
+
}], _root: [{
|
|
896
823
|
type: HostBinding,
|
|
897
|
-
args: ['class.
|
|
898
|
-
}],
|
|
899
|
-
type:
|
|
900
|
-
args: ['navigationOverlay']
|
|
901
|
-
}], onMouseenter: [{
|
|
902
|
-
type: HostListener,
|
|
903
|
-
args: ['mouseenter']
|
|
904
|
-
}], onMouseleave: [{
|
|
905
|
-
type: HostListener,
|
|
906
|
-
args: ['mouseleave']
|
|
824
|
+
args: ['class.rxap-root-navigation']
|
|
825
|
+
}], root: [{
|
|
826
|
+
type: Input
|
|
907
827
|
}] } });
|
|
908
828
|
|
|
909
|
-
class
|
|
910
|
-
|
|
911
|
-
this.
|
|
829
|
+
class LayoutComponent {
|
|
830
|
+
constructor(layoutComponentService, environment) {
|
|
831
|
+
this.layoutComponentService = layoutComponentService;
|
|
832
|
+
this.environment = environment;
|
|
833
|
+
this.sidenavMode = 'over';
|
|
912
834
|
}
|
|
913
|
-
|
|
914
|
-
this.
|
|
915
|
-
this.cdr = cdr;
|
|
916
|
-
this.sidenav = sidenav;
|
|
917
|
-
this._root = false;
|
|
918
|
-
this.level = 0;
|
|
835
|
+
get release() {
|
|
836
|
+
return DetermineReleaseName(this.environment);
|
|
919
837
|
}
|
|
920
|
-
|
|
921
|
-
if (this.
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
924
|
-
.pipe(tap((navigation) => (this.items = navigation)), tap(() => this.cdr.detectChanges()))
|
|
925
|
-
.subscribe();
|
|
838
|
+
toggleSidenavMode() {
|
|
839
|
+
if (this.sidenavMode === 'over') {
|
|
840
|
+
this.sidenavMode = 'side';
|
|
841
|
+
this.sidenav.open();
|
|
926
842
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
this.subscription?.unsubscribe();
|
|
930
|
-
}
|
|
931
|
-
// region type save item property
|
|
932
|
-
// required to check the type of the item property in the ngFor loop
|
|
933
|
-
isNavigationDividerItem(item) {
|
|
934
|
-
return item['divider'];
|
|
935
|
-
}
|
|
936
|
-
isNavigationItem(item) {
|
|
937
|
-
return !this.isNavigationDividerItem(item);
|
|
938
|
-
}
|
|
939
|
-
asNavigationItem(item) {
|
|
940
|
-
if (!this.isNavigationItem(item)) {
|
|
941
|
-
throw new Error('The item is not a NavigationItem');
|
|
843
|
+
else {
|
|
844
|
+
this.sidenavMode = 'over';
|
|
942
845
|
}
|
|
943
|
-
return item;
|
|
944
846
|
}
|
|
945
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type:
|
|
946
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type:
|
|
847
|
+
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 }); }
|
|
848
|
+
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 class=\"grow mt-16 mb-16\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n (mouseenter)=\"sidenavMode === 'over' && matSidenav.open()\"\n (mouseleave)=\"sidenavMode === 'over' && matSidenav.close()\"\n [fixedBottomGap]=\"64\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"64\"\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-1 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 [height]=\"layoutComponentService.logo.height ?? 128\"\n [ngSrc]=\"layoutComponentService.logo.src ?? 'https://via.placeholder.com/256x128px'\"\n [routerLink]=\"['/']\"\n [width]=\"layoutComponentService.logo.width ?? 256\"\n alt=\"logo\"\n class=\"grow-0\"\n />\n <div class=\"grow-0\">\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-14 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: [".sidenav:not(.mat-drawer-opened){transform:translate(calc(-100% + 56px))!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)}.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: "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: i1$4.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: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }, { 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 }); }
|
|
947
849
|
}
|
|
948
|
-
|
|
949
|
-
Required,
|
|
950
|
-
__metadata("design:type", Array)
|
|
951
|
-
], NavigationComponent.prototype, "items", void 0);
|
|
952
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: NavigationComponent, decorators: [{
|
|
850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, decorators: [{
|
|
953
851
|
type: Component,
|
|
954
|
-
args: [{ selector: '
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
MatDividerModule,
|
|
958
|
-
FlexModule,
|
|
959
|
-
NavigationItemComponent,
|
|
852
|
+
args: [{ selector: 'rxap-layout', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
853
|
+
HeaderComponent,
|
|
854
|
+
MatSidenavModule,
|
|
960
855
|
AsyncPipe,
|
|
961
|
-
|
|
962
|
-
|
|
856
|
+
FlexLayoutModule,
|
|
857
|
+
MatIconModule,
|
|
858
|
+
MatButtonModule,
|
|
859
|
+
RouterLink,
|
|
860
|
+
NgIf,
|
|
861
|
+
FooterComponent,
|
|
862
|
+
MatMenuModule,
|
|
863
|
+
NgOptimizedImage,
|
|
864
|
+
NavigationComponent,
|
|
865
|
+
RouterOutlet,
|
|
866
|
+
], 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 class=\"grow mt-16 mb-16\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n (mouseenter)=\"sidenavMode === 'over' && matSidenav.open()\"\n (mouseleave)=\"sidenavMode === 'over' && matSidenav.close()\"\n [fixedBottomGap]=\"64\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"64\"\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-1 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 [height]=\"layoutComponentService.logo.height ?? 128\"\n [ngSrc]=\"layoutComponentService.logo.src ?? 'https://via.placeholder.com/256x128px'\"\n [routerLink]=\"['/']\"\n [width]=\"layoutComponentService.logo.width ?? 256\"\n alt=\"logo\"\n class=\"grow-0\"\n />\n <div class=\"grow-0\">\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-14 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: [".sidenav:not(.mat-drawer-opened){transform:translate(calc(-100% + 56px))!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)}.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"] }]
|
|
867
|
+
}], ctorParameters: function () { return [{ type: LayoutComponentService }, { type: undefined, decorators: [{
|
|
963
868
|
type: Inject,
|
|
964
|
-
args: [
|
|
965
|
-
}] },
|
|
869
|
+
args: [RXAP_ENVIRONMENT]
|
|
870
|
+
}] }]; }, propDecorators: { sidenav: [{
|
|
871
|
+
type: ViewChild,
|
|
872
|
+
args: [MatSidenav, { static: true }]
|
|
873
|
+
}] } });
|
|
874
|
+
|
|
875
|
+
class ReplaceRouterPathsService {
|
|
876
|
+
transform(routerLink) {
|
|
877
|
+
return of(routerLink);
|
|
878
|
+
}
|
|
879
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
880
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, providedIn: 'root' }); }
|
|
881
|
+
}
|
|
882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, decorators: [{
|
|
883
|
+
type: Injectable,
|
|
884
|
+
args: [{ providedIn: 'root' }]
|
|
885
|
+
}] });
|
|
886
|
+
|
|
887
|
+
class SidenavFooterDirective {
|
|
888
|
+
constructor(template) {
|
|
889
|
+
this.template = template;
|
|
890
|
+
}
|
|
891
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavFooterDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
892
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SidenavFooterDirective, isStandalone: true, selector: "[rxapSidenavFooter]", ngImport: i0 }); }
|
|
893
|
+
}
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavFooterDirective, decorators: [{
|
|
895
|
+
type: Directive,
|
|
896
|
+
args: [{
|
|
897
|
+
selector: '[rxapSidenavFooter]',
|
|
898
|
+
standalone: true,
|
|
899
|
+
}]
|
|
900
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
966
901
|
type: Inject,
|
|
967
|
-
args: [
|
|
968
|
-
}] }
|
|
902
|
+
args: [TemplateRef]
|
|
903
|
+
}] }]; } });
|
|
904
|
+
|
|
905
|
+
class SidenavHeaderDirective {
|
|
906
|
+
constructor(template) {
|
|
907
|
+
this.template = template;
|
|
908
|
+
}
|
|
909
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavHeaderDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
910
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: SidenavHeaderDirective, isStandalone: true, selector: "[rxapSidenavHeader]", ngImport: i0 }); }
|
|
911
|
+
}
|
|
912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavHeaderDirective, decorators: [{
|
|
913
|
+
type: Directive,
|
|
914
|
+
args: [{
|
|
915
|
+
selector: '[rxapSidenavHeader]',
|
|
916
|
+
standalone: true,
|
|
917
|
+
}]
|
|
918
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
969
919
|
type: Inject,
|
|
970
|
-
args: [
|
|
971
|
-
}] }]; }
|
|
972
|
-
type: HostBinding,
|
|
973
|
-
args: ['class.rxap-root-navigation']
|
|
974
|
-
}], root: [{
|
|
975
|
-
type: Input
|
|
976
|
-
}], items: [{
|
|
977
|
-
type: Input
|
|
978
|
-
}], level: [{
|
|
979
|
-
type: Input
|
|
980
|
-
}] } });
|
|
920
|
+
args: [TemplateRef]
|
|
921
|
+
}] }]; } });
|
|
981
922
|
|
|
982
923
|
class SidenavComponent {
|
|
983
924
|
constructor(sidenav) {
|
|
984
925
|
this.sidenav = sidenav;
|
|
985
926
|
}
|
|
986
927
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponent, deps: [{ token: SidenavComponentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
987
|
-
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$
|
|
928
|
+
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: i3$2.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: i3$2.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: i3$2.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: i3$2.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: i1$4.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 }); }
|
|
988
929
|
}
|
|
989
930
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavComponent, decorators: [{
|
|
990
931
|
type: Component,
|
|
@@ -1010,71 +951,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
1010
951
|
args: [SidenavHeaderDirective]
|
|
1011
952
|
}] } });
|
|
1012
953
|
|
|
1013
|
-
class LayoutComponent {
|
|
1014
|
-
constructor(layoutComponentService) {
|
|
1015
|
-
this.layoutComponentService = layoutComponentService;
|
|
1016
|
-
this.openWindowSidenav = false;
|
|
1017
|
-
}
|
|
1018
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, deps: [{ token: LayoutComponentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1019
|
-
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: "<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 [src]=\"layoutComponentService.logo.src\"\n [width]=\"layoutComponentService.logo.width\"\n alt=\"logo\"\n class=\"logo\"\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\n [(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 class=\"window-container-sidenav\"\n mode=\"side\"\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"], dependencies: [{ kind: "component", type: HeaderComponent, selector: "rxap-header", inputs: ["sidenav", "color", "settingsMenuPanel"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i2$7.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i2$7.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i2$7.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: SidenavComponent, selector: "rxap-sidenav" }, { kind: "directive", type: SidenavHeaderDirective, selector: "[rxapSidenavHeader]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: SidenavContentComponent, selector: "rxap-sidenav-content", inputs: ["sidenav"] }, { kind: "component", type: ToggleWindowSidenavButtonComponent, selector: "rxap-toggle-window-sidenav-button", inputs: ["openWindowSidenav"], outputs: ["openWindowSidenavChange"] }, { kind: "component", type: WindowContainerSidenavComponent, selector: "rxap-window-container-sidenav" }, { kind: "component", type: FooterComponent, selector: "rxap-footer" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1020
|
-
}
|
|
1021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, decorators: [{
|
|
1022
|
-
type: Component,
|
|
1023
|
-
args: [{ selector: 'rxap-layout', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
1024
|
-
HeaderComponent,
|
|
1025
|
-
MatSidenavModule,
|
|
1026
|
-
SidenavComponent,
|
|
1027
|
-
SidenavHeaderDirective,
|
|
1028
|
-
RouterLink,
|
|
1029
|
-
SidenavContentComponent,
|
|
1030
|
-
ToggleWindowSidenavButtonComponent,
|
|
1031
|
-
WindowContainerSidenavComponent,
|
|
1032
|
-
FooterComponent,
|
|
1033
|
-
AsyncPipe,
|
|
1034
|
-
], 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 [src]=\"layoutComponentService.logo.src\"\n [width]=\"layoutComponentService.logo.width\"\n alt=\"logo\"\n class=\"logo\"\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\n [(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 class=\"window-container-sidenav\"\n mode=\"side\"\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"] }]
|
|
1035
|
-
}], ctorParameters: function () { return [{ type: LayoutComponentService }]; }, propDecorators: { sidenav: [{
|
|
1036
|
-
type: ViewChild,
|
|
1037
|
-
args: [MatSidenav, { static: true }]
|
|
1038
|
-
}] } });
|
|
1039
|
-
|
|
1040
|
-
class LayoutModule {
|
|
1041
|
-
static withNavigation(navigation) {
|
|
1042
|
-
return {
|
|
1043
|
-
ngModule: LayoutModule,
|
|
1044
|
-
providers: [
|
|
1045
|
-
{
|
|
1046
|
-
provide: RXAP_NAVIGATION_CONFIG,
|
|
1047
|
-
useValue: navigation,
|
|
1048
|
-
},
|
|
1049
|
-
],
|
|
1050
|
-
};
|
|
1051
|
-
}
|
|
1052
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1053
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: LayoutModule, imports: [LayoutComponent], exports: [LayoutComponent] }); }
|
|
1054
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutModule, imports: [LayoutComponent] }); }
|
|
1055
|
-
}
|
|
1056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutModule, decorators: [{
|
|
1057
|
-
type: NgModule,
|
|
1058
|
-
args: [{
|
|
1059
|
-
imports: [
|
|
1060
|
-
LayoutComponent,
|
|
1061
|
-
],
|
|
1062
|
-
exports: [LayoutComponent],
|
|
1063
|
-
}]
|
|
1064
|
-
}] });
|
|
1065
|
-
|
|
1066
|
-
class ReplaceRouterPathsService {
|
|
1067
|
-
transform(routerLink) {
|
|
1068
|
-
return of(routerLink);
|
|
1069
|
-
}
|
|
1070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1071
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, providedIn: 'root' }); }
|
|
1072
|
-
}
|
|
1073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ReplaceRouterPathsService, decorators: [{
|
|
1074
|
-
type: Injectable,
|
|
1075
|
-
args: [{ providedIn: 'root' }]
|
|
1076
|
-
}] });
|
|
1077
|
-
|
|
1078
954
|
class VersionComponent {
|
|
1079
955
|
constructor(version) {
|
|
1080
956
|
this.version = version;
|
|
@@ -1087,7 +963,7 @@ class VersionComponent {
|
|
|
1087
963
|
this.subscription?.unsubscribe();
|
|
1088
964
|
}
|
|
1089
965
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: VersionComponent, deps: [{ token: VersionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1090
|
-
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:
|
|
966
|
+
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: i3$2.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: i3$2.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: i3$2.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: i3$2.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 }); }
|
|
1091
967
|
}
|
|
1092
968
|
__decorate([
|
|
1093
969
|
Required,
|
|
@@ -1101,6 +977,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
1101
977
|
args: [VersionService]
|
|
1102
978
|
}] }]; }, propDecorators: { modules: [] } });
|
|
1103
979
|
|
|
980
|
+
class ToggleWindowSidenavButtonComponent {
|
|
981
|
+
constructor() {
|
|
982
|
+
this.openWindowSidenav = false;
|
|
983
|
+
this.openWindowSidenavChange = new EventEmitter();
|
|
984
|
+
}
|
|
985
|
+
toggle() {
|
|
986
|
+
this.openWindowSidenav = !this.openWindowSidenav;
|
|
987
|
+
this.openWindowSidenavChange.emit(this.openWindowSidenav);
|
|
988
|
+
}
|
|
989
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToggleWindowSidenavButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
990
|
+
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: i1$4.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 }); }
|
|
991
|
+
}
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ToggleWindowSidenavButtonComponent, decorators: [{
|
|
993
|
+
type: Component,
|
|
994
|
+
args: [{ selector: 'rxap-toggle-window-sidenav-button', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
995
|
+
class: 'rxap-toggle-window-sidenav-button',
|
|
996
|
+
}, 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"] }]
|
|
997
|
+
}], propDecorators: { openWindowSidenav: [{
|
|
998
|
+
type: Input
|
|
999
|
+
}], openWindowSidenavChange: [{
|
|
1000
|
+
type: Output
|
|
1001
|
+
}] } });
|
|
1002
|
+
|
|
1003
|
+
class WindowContainerSidenavComponent {
|
|
1004
|
+
constructor(service) {
|
|
1005
|
+
this.service = service;
|
|
1006
|
+
this.portals = new Map();
|
|
1007
|
+
this.subscription = new Subscription();
|
|
1008
|
+
}
|
|
1009
|
+
ngOnInit() {
|
|
1010
|
+
const components = this.service.getAll();
|
|
1011
|
+
for (const component of components) {
|
|
1012
|
+
this.add(component);
|
|
1013
|
+
}
|
|
1014
|
+
this.subscription.add(this.service.add$.pipe(tap(component => this.add(component))).subscribe());
|
|
1015
|
+
this.subscription.add(this.service.remove$.pipe(tap(component => this.remove(component))).subscribe());
|
|
1016
|
+
}
|
|
1017
|
+
ngOnDestroy() {
|
|
1018
|
+
this.subscription.unsubscribe();
|
|
1019
|
+
}
|
|
1020
|
+
trackBy(index, id) {
|
|
1021
|
+
return id;
|
|
1022
|
+
}
|
|
1023
|
+
add(component) {
|
|
1024
|
+
if (this.portals.has(component.id)) {
|
|
1025
|
+
throw new Error(`Component portal with id ${component.id} already exists`);
|
|
1026
|
+
}
|
|
1027
|
+
const portal = new ComponentPortal(component.component, component.viewContainerRef, component.injector, component.componentFactoryResolver);
|
|
1028
|
+
this.portals.set(component.id, portal);
|
|
1029
|
+
}
|
|
1030
|
+
remove(component) {
|
|
1031
|
+
if (this.portals.has(component.id)) {
|
|
1032
|
+
const portal = this.portals.get(component.id);
|
|
1033
|
+
this.portals.delete(component.id);
|
|
1034
|
+
portal.detach();
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerSidenavComponent, deps: [{ token: WindowContainerSidenavService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1038
|
+
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: i3$2.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: i3$2.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: i3$2.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 }); }
|
|
1039
|
+
}
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerSidenavComponent, decorators: [{
|
|
1041
|
+
type: Component,
|
|
1042
|
+
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"] }]
|
|
1043
|
+
}], ctorParameters: function () { return [{ type: i1.WindowContainerSidenavService, decorators: [{
|
|
1044
|
+
type: Inject,
|
|
1045
|
+
args: [WindowContainerSidenavService]
|
|
1046
|
+
}] }]; } });
|
|
1047
|
+
|
|
1104
1048
|
class FooterDirective {
|
|
1105
1049
|
constructor(footerService, template, viewContainerRef) {
|
|
1106
1050
|
this.footerService = footerService;
|
|
@@ -1136,9 +1080,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
1136
1080
|
args: [ViewContainerRef]
|
|
1137
1081
|
}] }]; } });
|
|
1138
1082
|
|
|
1083
|
+
class I18nCheckGuard {
|
|
1084
|
+
constructor(config, localId, i18nService, userProfileService) {
|
|
1085
|
+
this.config = config;
|
|
1086
|
+
this.localId = localId;
|
|
1087
|
+
this.i18nService = i18nService;
|
|
1088
|
+
this.userProfileService = userProfileService;
|
|
1089
|
+
}
|
|
1090
|
+
async canActivate() {
|
|
1091
|
+
const selectedLanguage = (await this.userProfileService.getLanguage()) ?? 'en';
|
|
1092
|
+
if (this.i18nService.currentLanguage !== selectedLanguage) {
|
|
1093
|
+
await this.i18nService.redirect(selectedLanguage);
|
|
1094
|
+
return false;
|
|
1095
|
+
}
|
|
1096
|
+
return true;
|
|
1097
|
+
}
|
|
1098
|
+
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 }); }
|
|
1099
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nCheckGuard, providedIn: 'root' }); }
|
|
1100
|
+
}
|
|
1101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: I18nCheckGuard, decorators: [{
|
|
1102
|
+
type: Injectable,
|
|
1103
|
+
args: [{ providedIn: 'root' }]
|
|
1104
|
+
}], ctorParameters: function () { return [{ type: i1$2.ConfigService }, { type: undefined, decorators: [{
|
|
1105
|
+
type: Inject,
|
|
1106
|
+
args: [LOCALE_ID]
|
|
1107
|
+
}] }, { type: I18nService }, { type: i1$1.RxapUserProfileService }]; } });
|
|
1108
|
+
|
|
1139
1109
|
/**
|
|
1140
1110
|
* Generated bundle index. Do not edit.
|
|
1141
1111
|
*/
|
|
1142
1112
|
|
|
1143
|
-
export { AppsButtonComponent, FooterComponent, FooterDirective, HeaderComponent, IsNavigationDividerItem, IsNavigationInsertItem, IsNavigationItem, LayoutComponent, LayoutComponentService,
|
|
1113
|
+
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 };
|
|
1144
1114
|
//# sourceMappingURL=rxap-layout.mjs.map
|