@rxap/layout 16.0.0-dev.35 → 16.0.0-dev.36
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 +11 -0
- package/README.md +1 -1
- package/esm2022/lib/footer/footer.component.mjs +3 -3
- package/esm2022/lib/header/header.component.mjs +3 -21
- package/esm2022/lib/header/settings-button/settings-button.component.mjs +18 -37
- package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +4 -5
- package/esm2022/lib/layout/layout.component.mjs +29 -13
- package/esm2022/lib/layout/layout.component.service.mjs +24 -30
- package/fesm2022/rxap-layout.mjs +76 -99
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/lib/header/header.component.d.ts +2 -9
- package/lib/header/settings-button/settings-button.component.d.ts +6 -6
- package/lib/layout/layout.component.d.ts +6 -2
- package/lib/layout/layout.component.service.d.ts +9 -8
- package/package.json +17 -13
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { MediaMatcher } from '@angular/cdk/layout';
|
|
2
|
-
import { Inject, Injectable, Optional, } from '@angular/core';
|
|
2
|
+
import { computed, effect, Inject, Injectable, Optional, signal, } from '@angular/core';
|
|
3
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
3
4
|
import { ConfigService } from '@rxap/config';
|
|
4
5
|
import { ObserveCurrentThemeDensity } from '@rxap/ngx-theme';
|
|
5
6
|
import { FooterService, HeaderService, } from '@rxap/services';
|
|
6
|
-
import { BehaviorSubject, combineLatest, skip, } from 'rxjs';
|
|
7
|
-
import { map, startWith, tap, } from 'rxjs/operators';
|
|
8
7
|
import { RXAP_LOGO_CONFIG } from '../tokens';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
import * as i1 from "@rxap/services";
|
|
@@ -15,7 +14,7 @@ export class LayoutComponentService {
|
|
|
15
14
|
this.footerComponentService = footerComponentService;
|
|
16
15
|
this.headerComponentService = headerComponentService;
|
|
17
16
|
this.config = config;
|
|
18
|
-
this.
|
|
17
|
+
this.currentThemeDensity = toSignal(ObserveCurrentThemeDensity());
|
|
19
18
|
const mobileQuery = mediaMatcher.matchMedia('(max-width: 959px)');
|
|
20
19
|
const mobile = mobileQuery.matches;
|
|
21
20
|
const initialCollapsable = this.config.get('navigation.collapsable', true);
|
|
@@ -23,47 +22,42 @@ export class LayoutComponentService {
|
|
|
23
22
|
const pinned = this.config.get('navigation.pinned', false);
|
|
24
23
|
const mode = this.config.get('navigation.mode', pinned || !collapsable ? 'side' : 'over');
|
|
25
24
|
const opened = this.config.get('navigation.opened', (!collapsable || pinned) && !mobile);
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.pinned
|
|
29
|
-
this.collapsable
|
|
30
|
-
this.fixedBottomGap
|
|
31
|
-
|
|
32
|
-
this.headerComponentService.update$.pipe(startWith(null), map(() => this.headerComponentService.countComponent)),
|
|
33
|
-
ObserveCurrentThemeDensity(),
|
|
34
|
-
]).pipe(tap(([count, density]) => {
|
|
35
|
-
this.fixedTopGap$.next(count * (64 + density * 4));
|
|
36
|
-
})).subscribe();
|
|
25
|
+
this.opened = signal(opened);
|
|
26
|
+
this.mode = signal(mode);
|
|
27
|
+
this.pinned = signal(pinned);
|
|
28
|
+
this.collapsable = signal(collapsable);
|
|
29
|
+
this.fixedBottomGap = computed(() => this.footerComponentService.portalCount() * (64 + (this.currentThemeDensity() ?? 0) * 4));
|
|
30
|
+
this.fixedTopGap = computed(() => this.headerComponentService.componentCount() * (64 + (this.currentThemeDensity() ?? 0) * 4));
|
|
37
31
|
this.logo = logoConfig ?? {
|
|
38
32
|
src: 'assets/logo.png',
|
|
39
33
|
width: 192,
|
|
40
34
|
};
|
|
41
35
|
mobileQuery.addEventListener('change', (event) => {
|
|
42
36
|
if (initialCollapsable) {
|
|
43
|
-
this.collapsable
|
|
44
|
-
if (this.collapsable
|
|
45
|
-
if (!this.pinned
|
|
46
|
-
this.opened
|
|
37
|
+
this.collapsable.set(!event.matches);
|
|
38
|
+
if (this.collapsable()) {
|
|
39
|
+
if (!this.pinned()) {
|
|
40
|
+
this.opened.set(false);
|
|
47
41
|
}
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
44
|
});
|
|
51
|
-
|
|
52
|
-
if (pinned) {
|
|
53
|
-
this.mode
|
|
54
|
-
this.opened
|
|
45
|
+
effect(() => {
|
|
46
|
+
if (this.pinned()) {
|
|
47
|
+
this.mode.set('side');
|
|
48
|
+
this.opened.set(true);
|
|
55
49
|
}
|
|
56
50
|
else {
|
|
57
|
-
this.mode
|
|
58
|
-
this.opened
|
|
51
|
+
this.mode.set('over');
|
|
52
|
+
this.opened.set(false);
|
|
59
53
|
}
|
|
60
|
-
})
|
|
54
|
+
}, { allowSignalWrites: true });
|
|
61
55
|
}
|
|
62
|
-
|
|
63
|
-
this.opened
|
|
56
|
+
toggleOpened() {
|
|
57
|
+
this.opened.set(!this.opened());
|
|
64
58
|
}
|
|
65
59
|
togglePinned() {
|
|
66
|
-
this.pinned
|
|
60
|
+
this.pinned.set(!this.pinned());
|
|
67
61
|
}
|
|
68
62
|
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 }, { token: i2.MediaMatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
69
63
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponentService, providedIn: 'root' }); }
|
|
@@ -80,4 +74,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
80
74
|
type: Inject,
|
|
81
75
|
args: [ConfigService]
|
|
82
76
|
}] }, { type: i2.MediaMatcher }]; } });
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
77
|
+
//# sourceMappingUR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gKGV2ZW50KSA9PiB7XG4gICAgICBpZiAoaW5pdGlhbENvbGxhcHNhYmxlKSB7XG4gICAgICAgIHRoaXMuY29sbGFwc2FibGUuc2V0KCFldmVudC5tYXRjaGVzKTtcbiAgICAgICAgaWYgKHRoaXMuY29sbGFwc2FibGUoKSkge1xuICAgICAgICAgIGlmICghdGhpcy5waW5uZWQoKSkge1xuICAgICAgICAgICAgdGhpcy5vcGVuZWQuc2V0KGZhbHNlKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9KTtcbiAgICBlZmZlY3QoKCkgPT4ge1xuICAgICAgaWYgKHRoaXMucGlubmVkKCkpIHtcbiAgICAgICAgdGhpcy5tb2RlLnNldCgnc2lkZScpO1xuICAgICAgICB0aGlzLm9wZW5lZC5zZXQodHJ1ZSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLm1vZGUuc2V0KCdvdmVyJyk7XG4gICAgICAgIHRoaXMub3BlbmVkLnNldChmYWxzZSk7XG4gICAgICB9XG4gICAgfSwgeyBhbGxvd1NpZ25hbFdyaXRlczogdHJ1ZSB9KTtcbiAgfVxuXG4gIHB1YmxpYyB0b2dnbGVPcGVuZWQoKSB7XG4gICAgdGhpcy5vcGVuZWQuc2V0KCF0aGlzLm9wZW5lZCgpKTtcbiAgfVxuXG4gIHB1YmxpYyB0b2dnbGVQaW5uZWQoKSB7XG4gICAgdGhpcy5waW5uZWQuc2V0KCF0aGlzLnBpbm5lZCgpKTtcbiAgfVxuXG59XG4iXX0=
|
package/fesm2022/rxap-layout.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Component, ChangeDetectionStrategy, Injectable, Optional, Inject, LOCALE_ID,
|
|
2
|
+
import { InjectionToken, Component, ChangeDetectionStrategy, signal, computed, effect, Injectable, Optional, Inject, LOCALE_ID, isDevMode, Input, ElementRef, Renderer2, ViewContainerRef, ViewEncapsulation, forwardRef, ViewChild, HostBinding, INJECTOR, ChangeDetectorRef, inject, TemplateRef, Directive, ContentChild, EventEmitter, Output } from '@angular/core';
|
|
3
3
|
import * as i1 from '@rxap/services';
|
|
4
4
|
import { HeaderService, ResetService, VersionService, WindowContainerSidenavService, FooterService } from '@rxap/services';
|
|
5
5
|
import * as i3 from '@angular/cdk/portal';
|
|
@@ -8,7 +8,6 @@ import * as i2 from '@angular/material/toolbar';
|
|
|
8
8
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
9
9
|
import * as i4$1 from '@angular/common';
|
|
10
10
|
import { NgIf, NgFor, AsyncPipe, NgOptimizedImage, KeyValuePipe, CommonModule, NgClass, NgTemplateOutlet } from '@angular/common';
|
|
11
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
12
11
|
import * as i5 from '@angular/forms';
|
|
13
12
|
import { FormsModule } from '@angular/forms';
|
|
14
13
|
import * as i3$1 from '@angular/material/button';
|
|
@@ -26,19 +25,20 @@ import { MatSelectModule } from '@angular/material/select';
|
|
|
26
25
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
27
26
|
import { DataSourceCollectionDirective } from '@rxap/data-source/directive';
|
|
28
27
|
import { StopPropagationDirective } from '@rxap/directives';
|
|
29
|
-
import { BehaviorSubject, combineLatest, skip, firstValueFrom, switchMap, filter as filter$1, distinctUntilChanged, Subscription, debounceTime, ReplaySubject, of, from } from 'rxjs';
|
|
30
|
-
import { map, startWith, tap, filter, switchMap as switchMap$1, catchError } from 'rxjs/operators';
|
|
31
28
|
import * as i2$1 from '@angular/cdk/layout';
|
|
29
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
32
30
|
import * as i1$1 from '@rxap/config';
|
|
33
31
|
import { ConfigService } from '@rxap/config';
|
|
34
32
|
import * as i1$4 from '@rxap/ngx-theme';
|
|
35
|
-
import { ObserveCurrentThemeDensity } from '@rxap/ngx-theme';
|
|
33
|
+
import { ObserveCurrentThemeDensity, ThemeService } from '@rxap/ngx-theme';
|
|
36
34
|
import * as i3$6 from '@angular/flex-layout/flex';
|
|
37
35
|
import { FlexModule } from '@angular/flex-layout/flex';
|
|
38
36
|
import * as i2$2 from '@rxap/authorization';
|
|
39
37
|
import { ClickOnLink } from '@rxap/browser-utilities';
|
|
40
38
|
import { JoinPath, coerceBoolean } from '@rxap/utilities';
|
|
39
|
+
import { firstValueFrom, switchMap, filter as filter$1, skip, distinctUntilChanged, BehaviorSubject, Subscription, debounceTime, ReplaySubject, of, from, combineLatest } from 'rxjs';
|
|
41
40
|
import * as i2$3 from '@rxap/authentication';
|
|
41
|
+
import { filter, tap, map, switchMap as switchMap$1, startWith, catchError } from 'rxjs/operators';
|
|
42
42
|
import * as i2$5 from '@angular/router';
|
|
43
43
|
import { NavigationStart, NavigationEnd, NavigationCancel, Router, RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';
|
|
44
44
|
import * as i1$2 from '@angular/material/progress-bar';
|
|
@@ -46,6 +46,7 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
|
46
46
|
import * as i3$3 from '@rxap/ngx-changelog';
|
|
47
47
|
import * as i1$3 from '@rxap/ngx-localize';
|
|
48
48
|
import * as i1$5 from '@rxap/ngx-user';
|
|
49
|
+
import { UserSettingsThemeService, IsThemeDensity } from '@rxap/ngx-user';
|
|
49
50
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
50
51
|
import * as i3$5 from '@angular/material/sidenav';
|
|
51
52
|
import { MatSidenav, MatSidenavModule } from '@angular/material/sidenav';
|
|
@@ -73,11 +74,11 @@ class FooterComponent {
|
|
|
73
74
|
this.footerService = footerService;
|
|
74
75
|
}
|
|
75
76
|
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 }); }
|
|
76
|
-
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
|
|
77
|
+
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()\" let-portals>\n <mat-toolbar *ngIf=\"portals.length\" class=\"footer mat-elevation-z1\">\n <mat-toolbar-row *ngFor=\"let portal of portals\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n </mat-toolbar>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i2.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
77
78
|
}
|
|
78
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: FooterComponent, decorators: [{
|
|
79
80
|
type: Component,
|
|
80
|
-
args: [{ selector: 'rxap-footer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatToolbarModule, NgFor, PortalModule, AsyncPipe], template: "<ng-template [ngIf]=\"footerService.portals
|
|
81
|
+
args: [{ selector: 'rxap-footer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgIf, MatToolbarModule, NgFor, PortalModule, AsyncPipe], template: "<ng-template [ngIf]=\"footerService.portals()\" let-portals>\n <mat-toolbar *ngIf=\"portals.length\" class=\"footer mat-elevation-z1\">\n <mat-toolbar-row *ngFor=\"let portal of portals\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </mat-toolbar-row>\n </mat-toolbar>\n</ng-template>\n" }]
|
|
81
82
|
}], ctorParameters: function () { return [{ type: i1.FooterService }]; } });
|
|
82
83
|
|
|
83
84
|
class LayoutComponentService {
|
|
@@ -85,7 +86,7 @@ class LayoutComponentService {
|
|
|
85
86
|
this.footerComponentService = footerComponentService;
|
|
86
87
|
this.headerComponentService = headerComponentService;
|
|
87
88
|
this.config = config;
|
|
88
|
-
this.
|
|
89
|
+
this.currentThemeDensity = toSignal(ObserveCurrentThemeDensity());
|
|
89
90
|
const mobileQuery = mediaMatcher.matchMedia('(max-width: 959px)');
|
|
90
91
|
const mobile = mobileQuery.matches;
|
|
91
92
|
const initialCollapsable = this.config.get('navigation.collapsable', true);
|
|
@@ -93,47 +94,42 @@ class LayoutComponentService {
|
|
|
93
94
|
const pinned = this.config.get('navigation.pinned', false);
|
|
94
95
|
const mode = this.config.get('navigation.mode', pinned || !collapsable ? 'side' : 'over');
|
|
95
96
|
const opened = this.config.get('navigation.opened', (!collapsable || pinned) && !mobile);
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.pinned
|
|
99
|
-
this.collapsable
|
|
100
|
-
this.fixedBottomGap
|
|
101
|
-
|
|
102
|
-
this.headerComponentService.update$.pipe(startWith(null), map(() => this.headerComponentService.countComponent)),
|
|
103
|
-
ObserveCurrentThemeDensity(),
|
|
104
|
-
]).pipe(tap(([count, density]) => {
|
|
105
|
-
this.fixedTopGap$.next(count * (64 + density * 4));
|
|
106
|
-
})).subscribe();
|
|
97
|
+
this.opened = signal(opened);
|
|
98
|
+
this.mode = signal(mode);
|
|
99
|
+
this.pinned = signal(pinned);
|
|
100
|
+
this.collapsable = signal(collapsable);
|
|
101
|
+
this.fixedBottomGap = computed(() => this.footerComponentService.portalCount() * (64 + (this.currentThemeDensity() ?? 0) * 4));
|
|
102
|
+
this.fixedTopGap = computed(() => this.headerComponentService.componentCount() * (64 + (this.currentThemeDensity() ?? 0) * 4));
|
|
107
103
|
this.logo = logoConfig ?? {
|
|
108
104
|
src: 'assets/logo.png',
|
|
109
105
|
width: 192,
|
|
110
106
|
};
|
|
111
107
|
mobileQuery.addEventListener('change', (event) => {
|
|
112
108
|
if (initialCollapsable) {
|
|
113
|
-
this.collapsable
|
|
114
|
-
if (this.collapsable
|
|
115
|
-
if (!this.pinned
|
|
116
|
-
this.opened
|
|
109
|
+
this.collapsable.set(!event.matches);
|
|
110
|
+
if (this.collapsable()) {
|
|
111
|
+
if (!this.pinned()) {
|
|
112
|
+
this.opened.set(false);
|
|
117
113
|
}
|
|
118
114
|
}
|
|
119
115
|
}
|
|
120
116
|
});
|
|
121
|
-
|
|
122
|
-
if (pinned) {
|
|
123
|
-
this.mode
|
|
124
|
-
this.opened
|
|
117
|
+
effect(() => {
|
|
118
|
+
if (this.pinned()) {
|
|
119
|
+
this.mode.set('side');
|
|
120
|
+
this.opened.set(true);
|
|
125
121
|
}
|
|
126
122
|
else {
|
|
127
|
-
this.mode
|
|
128
|
-
this.opened
|
|
123
|
+
this.mode.set('over');
|
|
124
|
+
this.opened.set(false);
|
|
129
125
|
}
|
|
130
|
-
})
|
|
126
|
+
}, { allowSignalWrites: true });
|
|
131
127
|
}
|
|
132
|
-
|
|
133
|
-
this.opened
|
|
128
|
+
toggleOpened() {
|
|
129
|
+
this.opened.set(!this.opened());
|
|
134
130
|
}
|
|
135
131
|
togglePinned() {
|
|
136
|
-
this.pinned
|
|
132
|
+
this.pinned.set(!this.pinned());
|
|
137
133
|
}
|
|
138
134
|
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 }, { token: i2$1.MediaMatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
139
135
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponentService, providedIn: 'root' }); }
|
|
@@ -317,66 +313,47 @@ class SettingsButtonComponent {
|
|
|
317
313
|
this.changelogService.showChangelogDialog();
|
|
318
314
|
}
|
|
319
315
|
previewDensity(density) {
|
|
320
|
-
this.
|
|
321
|
-
this.theme.setDensity(density);
|
|
316
|
+
this.theme.applyDensity(density);
|
|
322
317
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
if (this.currentDensityValue) {
|
|
326
|
-
this.theme.setDensity(this.currentDensityValue);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
this.savePreviewDensityValue = false;
|
|
318
|
+
restoreDensity() {
|
|
319
|
+
this.theme.applyDensity(this.theme.density());
|
|
330
320
|
}
|
|
331
|
-
|
|
332
|
-
this.
|
|
321
|
+
setDensity(density) {
|
|
322
|
+
this.theme.setDensity(density);
|
|
333
323
|
}
|
|
334
324
|
previewTypography(typography) {
|
|
335
|
-
this.
|
|
336
|
-
this.theme.setTypography(typography);
|
|
325
|
+
this.theme.applyTypography(typography);
|
|
337
326
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
if (this.currentTypographyValue) {
|
|
341
|
-
this.theme.setTypography(this.currentTypographyValue);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
this.savePreviewTypographyValue = false;
|
|
327
|
+
restoreTypography() {
|
|
328
|
+
this.theme.applyTypography(this.theme.typography());
|
|
345
329
|
}
|
|
346
|
-
|
|
347
|
-
this.
|
|
330
|
+
setTypography(typography) {
|
|
331
|
+
this.theme.setTypography(typography);
|
|
348
332
|
}
|
|
349
333
|
previewTheme(theme) {
|
|
350
|
-
this.
|
|
351
|
-
this.theme.setTheme(theme);
|
|
334
|
+
this.theme.applyTheme(theme);
|
|
352
335
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
if (this.currentThemeValue) {
|
|
356
|
-
this.theme.setTheme(this.currentThemeValue);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
this.savePreviewThemeValue = false;
|
|
360
|
-
this.currentThemeValue = null;
|
|
336
|
+
restoreTheme() {
|
|
337
|
+
this.theme.applyTheme(this.theme.themeName());
|
|
361
338
|
}
|
|
362
|
-
|
|
363
|
-
this.
|
|
339
|
+
setTheme(theme) {
|
|
340
|
+
this.theme.setTheme(theme);
|
|
364
341
|
}
|
|
365
342
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SettingsButtonComponent, deps: [{ token: i1$4.ThemeService }, { token: i2$5.ActivatedRoute }, { token: i0.Injector }, { token: i3$3.ChangelogService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
366
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SettingsButtonComponent, isStandalone: true, selector: "rxap-settings-button", ngImport: i0, template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n <mat-icon *ngIf=\"theme.darkMode\" svgIcon=\"brightness-2\"></mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\" svgIcon=\"brightness-5\"></mat-icon>\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n <rxap-language-selector *ngIf=\"!isDevMode\"></rxap-language-selector>\n <button (click)=\"openChangelogDialog()\" mat-menu-item>\n <mat-icon svgIcon=\"format-list-numbered\"></mat-icon>\n <span i18n>What's new</span>\n </button>\n <ng-container *ngFor=\"let item of items()\">\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n </ng-container>\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"
|
|
343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SettingsButtonComponent, isStandalone: true, selector: "rxap-settings-button", ngImport: i0, template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n <mat-icon *ngIf=\"theme.darkMode()\" svgIcon=\"brightness-2\"></mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode()\" svgIcon=\"brightness-5\"></mat-icon>\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n <rxap-language-selector *ngIf=\"!isDevMode\"></rxap-language-selector>\n <button (click)=\"openChangelogDialog()\" mat-menu-item>\n <mat-icon svgIcon=\"format-list-numbered\"></mat-icon>\n <span i18n>What's new</span>\n </button>\n <ng-container *ngFor=\"let item of items()\">\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n </ng-container>\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setDensity(0)\" (mouseenter)=\"previewDensity(0)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-l\"></mat-icon>\n <span i18n>Normal</span>\n </button>\n <button (click)=\"setDensity(-1)\" (mouseenter)=\"previewDensity(-1)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-m\"></mat-icon>\n <span i18n>Dense</span>\n </button>\n <button (click)=\"setDensity(-2)\" (mouseenter)=\"previewDensity(-2)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-s\"></mat-icon>\n <span i18n>Very Dense</span>\n </button>\n <button (click)=\"setDensity(-3)\" (mouseenter)=\"previewDensity(-3)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-xs\"></mat-icon>\n <span i18n>Extreme Dense</span>\n </button>\n</mat-menu>\n<mat-menu #themeFontMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setTypography(typographyName)\"\n (mouseenter)=\"previewTypography(typographyName)\"\n (mouseleave)=\"restoreTypography()\"\n *ngFor=\"let typographyName of availableTypographies\"\n mat-menu-item>\n {{ typographyName }}\n </button>\n</mat-menu>\n\n<mat-menu #themePresetMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setTheme(themeName)\"\n (mouseenter)=\"previewTheme(themeName)\"\n (mouseleave)=\"restoreTheme()\"\n *ngFor=\"let themeName of availableThemes\"\n mat-menu-item>\n {{ themeName }}\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: LanguageSelectorComponent, selector: "rxap-language-selector" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i7.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i7.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i7.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] }); }
|
|
367
344
|
}
|
|
368
345
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SettingsButtonComponent, decorators: [{
|
|
369
346
|
type: Component,
|
|
370
|
-
args: [{ selector: 'rxap-settings-button', standalone: true, imports: [CommonModule, MatButtonModule, MatIconModule, LanguageSelectorComponent, MatMenuModule, PortalModule], template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n <mat-icon *ngIf=\"theme.darkMode\" svgIcon=\"brightness-2\"></mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode\" svgIcon=\"brightness-5\"></mat-icon>\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n <rxap-language-selector *ngIf=\"!isDevMode\"></rxap-language-selector>\n <button (click)=\"openChangelogDialog()\" mat-menu-item>\n <mat-icon svgIcon=\"format-list-numbered\"></mat-icon>\n <span i18n>What's new</span>\n </button>\n <ng-container *ngFor=\"let item of items()\">\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n </ng-container>\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"
|
|
347
|
+
args: [{ selector: 'rxap-settings-button', standalone: true, imports: [CommonModule, MatButtonModule, MatIconModule, LanguageSelectorComponent, MatMenuModule, PortalModule], template: "<button [matMenuTriggerFor]=\"menu\" mat-icon-button>\n <mat-icon svgIcon=\"cog\"></mat-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\">\n <button (click)=\"theme.toggleDarkTheme()\" mat-menu-item>\n <mat-icon *ngIf=\"theme.darkMode()\" svgIcon=\"brightness-2\"></mat-icon>\n <mat-icon *ngIf=\"!theme.darkMode()\" svgIcon=\"brightness-5\"></mat-icon>\n <span i18n>Mode</span>\n </button>\n <button [matMenuTriggerFor]=\"themeMenu\" mat-menu-item>\n <mat-icon svgIcon=\"compare\"></mat-icon>\n <span i18n>Theme</span>\n </button>\n <rxap-language-selector *ngIf=\"!isDevMode\"></rxap-language-selector>\n <button (click)=\"openChangelogDialog()\" mat-menu-item>\n <mat-icon svgIcon=\"format-list-numbered\"></mat-icon>\n <span i18n>What's new</span>\n </button>\n <ng-container *ngFor=\"let item of items()\">\n <ng-template [cdkPortalOutlet]=\"item\"></ng-template>\n </ng-container>\n</mat-menu>\n\n<mat-menu #themeMenu=\"matMenu\" xPosition=\"before\">\n <button [matMenuTriggerFor]=\"themeDensityMenu\" mat-menu-item>\n <mat-icon svgIcon=\"move-resize\"></mat-icon>\n <span i18n>Density</span>\n </button>\n <button [matMenuTriggerFor]=\"themeFontMenu\" mat-menu-item>\n <mat-icon svgIcon=\"format-font\"></mat-icon>\n <span i18n>Font</span>\n </button>\n <button [matMenuTriggerFor]=\"themePresetMenu\" mat-menu-item>\n <mat-icon svgIcon=\"shape-outline\"></mat-icon>\n <span i18n>Preset</span>\n </button>\n</mat-menu>\n\n<mat-menu #themeDensityMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setDensity(0)\" (mouseenter)=\"previewDensity(0)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-l\"></mat-icon>\n <span i18n>Normal</span>\n </button>\n <button (click)=\"setDensity(-1)\" (mouseenter)=\"previewDensity(-1)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-m\"></mat-icon>\n <span i18n>Dense</span>\n </button>\n <button (click)=\"setDensity(-2)\" (mouseenter)=\"previewDensity(-2)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-s\"></mat-icon>\n <span i18n>Very Dense</span>\n </button>\n <button (click)=\"setDensity(-3)\" (mouseenter)=\"previewDensity(-3)\" (mouseleave)=\"restoreDensity()\" mat-menu-item>\n <mat-icon svgIcon=\"size-xs\"></mat-icon>\n <span i18n>Extreme Dense</span>\n </button>\n</mat-menu>\n<mat-menu #themeFontMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setTypography(typographyName)\"\n (mouseenter)=\"previewTypography(typographyName)\"\n (mouseleave)=\"restoreTypography()\"\n *ngFor=\"let typographyName of availableTypographies\"\n mat-menu-item>\n {{ typographyName }}\n </button>\n</mat-menu>\n\n<mat-menu #themePresetMenu=\"matMenu\" xPosition=\"before\">\n <button (click)=\"setTheme(themeName)\"\n (mouseenter)=\"previewTheme(themeName)\"\n (mouseleave)=\"restoreTheme()\"\n *ngFor=\"let themeName of availableThemes\"\n mat-menu-item>\n {{ themeName }}\n </button>\n</mat-menu>\n" }]
|
|
371
348
|
}], ctorParameters: function () { return [{ type: i1$4.ThemeService }, { type: i2$5.ActivatedRoute }, { type: i0.Injector }, { type: i3$3.ChangelogService }]; } });
|
|
372
349
|
|
|
373
350
|
class SidenavToggleButtonComponent {
|
|
374
351
|
constructor(layoutComponentService) {
|
|
375
352
|
this.layoutComponentService = layoutComponentService;
|
|
376
|
-
this.opened =
|
|
353
|
+
this.opened = layoutComponentService.opened;
|
|
377
354
|
}
|
|
378
355
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, deps: [{ token: LayoutComponentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
379
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SidenavToggleButtonComponent, isStandalone: true, selector: "rxap-sidenav-toggle-button", ngImport: i0, template: "<button (click)=\"layoutComponentService.
|
|
356
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SidenavToggleButtonComponent, isStandalone: true, selector: "rxap-sidenav-toggle-button", ngImport: i0, template: "<button (click)=\"layoutComponentService.toggleOpened()\" mat-icon-button>\n <mat-icon *ngIf=\"!opened()\">menu</mat-icon>\n <mat-icon *ngIf=\"opened()\">menu_open</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.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$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
380
357
|
}
|
|
381
358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SidenavToggleButtonComponent, decorators: [{
|
|
382
359
|
type: Component,
|
|
@@ -384,7 +361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
384
361
|
MatButtonModule,
|
|
385
362
|
NgIf,
|
|
386
363
|
MatIconModule,
|
|
387
|
-
], template: "<button (click)=\"layoutComponentService.
|
|
364
|
+
], template: "<button (click)=\"layoutComponentService.toggleOpened()\" mat-icon-button>\n <mat-icon *ngIf=\"!opened()\">menu</mat-icon>\n <mat-icon *ngIf=\"opened()\">menu_open</mat-icon>\n</button>\n" }]
|
|
388
365
|
}], ctorParameters: function () { return [{ type: LayoutComponentService }]; } });
|
|
389
366
|
|
|
390
367
|
const EXTRACT_USERNAME_FROM_PROFILE = new InjectionToken('extract-username-from-profile', {
|
|
@@ -423,24 +400,9 @@ class HeaderComponent {
|
|
|
423
400
|
this.headerComponentService = headerComponentService;
|
|
424
401
|
this.layoutComponentService = layoutComponentService;
|
|
425
402
|
this.headerComponent = headerComponent;
|
|
426
|
-
this.components = [];
|
|
427
|
-
this.subscriptions = new Subscription();
|
|
428
403
|
this.color = undefined;
|
|
429
|
-
this.collapsable =
|
|
430
|
-
|
|
431
|
-
this.opened = toSignal(layoutComponentService.opened$, { initialValue: layoutComponentService.opened$.value });
|
|
432
|
-
}
|
|
433
|
-
ngOnInit() {
|
|
434
|
-
this.updateComponents();
|
|
435
|
-
this.subscriptions.add(this.headerComponentService.update$
|
|
436
|
-
.pipe(tap(() => this.updateComponents()))
|
|
437
|
-
.subscribe());
|
|
438
|
-
}
|
|
439
|
-
updateComponents() {
|
|
440
|
-
this.components = this.headerComponentService.getComponents();
|
|
441
|
-
}
|
|
442
|
-
ngOnDestroy() {
|
|
443
|
-
this.subscriptions.unsubscribe();
|
|
404
|
+
this.collapsable = layoutComponentService.collapsable;
|
|
405
|
+
this.opened = layoutComponentService.opened;
|
|
444
406
|
}
|
|
445
407
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: HeaderComponent, deps: [{ token: HeaderService }, { token: LayoutComponentService }, { token: RXAP_HEADER_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
446
408
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: HeaderComponent, isStandalone: true, selector: "rxap-header", inputs: { color: "color" }, ngImport: i0, template: "<mat-toolbar [color]=\"color\" [ngClass]=\"{ open: opened() }\" class=\"mat-elevation-z3 header\">\n <div class=\"w-full flex flex-row gap-x-4 justify-between items-center\">\n <rxap-sidenav-toggle-button *ngIf=\"!collapsable()\"></rxap-sidenav-toggle-button>\n <div class=\"grow\">\n <ng-content></ng-content>\n </div>\n <rxap-apps-button class=\"grow-0\"></rxap-apps-button>\n <rxap-settings-button class=\"grow-0\"></rxap-settings-button>\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", 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: "ngmodule", type: MatMenuModule }, { kind: "ngmodule", type: MatIconModule }, { 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" }, { kind: "component", type: SettingsButtonComponent, selector: "rxap-settings-button" }, { kind: "component", type: SidenavToggleButtonComponent, selector: "rxap-sidenav-toggle-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -899,21 +861,36 @@ class LayoutComponent {
|
|
|
899
861
|
constructor(layoutComponentService, environment, iconLoaderService) {
|
|
900
862
|
this.layoutComponentService = layoutComponentService;
|
|
901
863
|
this.environment = environment;
|
|
864
|
+
this.userSettingsThemeService = inject(UserSettingsThemeService);
|
|
865
|
+
this.themeService = inject(ThemeService);
|
|
902
866
|
iconLoaderService.load();
|
|
903
|
-
this.fixedBottomGap =
|
|
904
|
-
this.fixedTopGap =
|
|
905
|
-
|
|
906
|
-
this.
|
|
907
|
-
this.
|
|
908
|
-
this.
|
|
909
|
-
toSignal(layoutComponentService.collapsable$, { initialValue: layoutComponentService.collapsable$.value });
|
|
910
|
-
this.opened = toSignal(layoutComponentService.opened$, { initialValue: layoutComponentService.opened$.value });
|
|
867
|
+
this.fixedBottomGap = layoutComponentService.fixedBottomGap;
|
|
868
|
+
this.fixedTopGap = layoutComponentService.fixedTopGap;
|
|
869
|
+
this.pinned = layoutComponentService.pinned;
|
|
870
|
+
this.collapsable = layoutComponentService.collapsable;
|
|
871
|
+
this.opened = layoutComponentService.opened;
|
|
872
|
+
this.sidenavMode = layoutComponentService.mode;
|
|
911
873
|
this.logoSrc = this.layoutComponentService.logo.src ?? 'https://via.placeholder.com/256x128px';
|
|
912
874
|
this.logoWidth = this.layoutComponentService.logo.width ?? 256;
|
|
913
875
|
this.release = DetermineReleaseName(this.environment);
|
|
914
876
|
}
|
|
877
|
+
ngOnDestroy() {
|
|
878
|
+
this.userSettingsThemeService.stopSync();
|
|
879
|
+
}
|
|
880
|
+
ngOnInit() {
|
|
881
|
+
this.userSettingsThemeService.startSync();
|
|
882
|
+
this.userSettingsThemeService.get().then(theme => {
|
|
883
|
+
if (theme.density && IsThemeDensity(theme.density)) {
|
|
884
|
+
this.themeService.setDensity(theme.density, true);
|
|
885
|
+
}
|
|
886
|
+
if (theme.typography) {
|
|
887
|
+
this.themeService.setTypography(theme.typography, true);
|
|
888
|
+
}
|
|
889
|
+
this.themeService.setTheme(theme.preset, true);
|
|
890
|
+
});
|
|
891
|
+
}
|
|
915
892
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, deps: [{ token: LayoutComponentService }, { token: RXAP_ENVIRONMENT }, { token: i2$7.IconLoaderService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
916
|
-
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-status-indicator class=\"fixed bottom-0 right-0 z-10\"></rxap-status-indicator>\n<div class=\"flex flex-col h-screen justify-between\">\n <rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n <mat-sidenav-container [ngStyle]=\"{\n 'margin-top.px': fixedTopGap(),\n 'margin-bottom.px': fixedBottomGap(),\n }\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n class=\"sidenav\"\n [opened]=\"opened()\"\n >\n <div class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n <div (click)=\"layoutComponentService.togglePinned()\" *ngIf=\"collapsable()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n <mat-icon *ngIf=\"!pinned()\">radio_button_unchecked</mat-icon>\n <mat-icon *ngIf=\"pinned()\">radio_button_checked</mat-icon>\n </button>\n </div>\n </div>\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && matSidenav.open()\"\n
|
|
893
|
+
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-status-indicator class=\"fixed bottom-0 right-0 z-10\"></rxap-status-indicator>\n<div class=\"flex flex-col h-screen justify-between\">\n <rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n <mat-sidenav-container [ngStyle]=\"{\n 'margin-top.px': fixedTopGap(),\n 'margin-bottom.px': fixedBottomGap(),\n }\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n class=\"sidenav\"\n [opened]=\"opened()\"\n >\n <div (mouseleave)=\"collapsable() && !pinned() && matSidenav.close()\"\n class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n <div (click)=\"layoutComponentService.togglePinned()\" *ngIf=\"collapsable()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n <mat-icon *ngIf=\"!pinned()\">radio_button_unchecked</mat-icon>\n <mat-icon *ngIf=\"pinned()\">radio_button_checked</mat-icon>\n </button>\n </div>\n </div>\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && matSidenav.open()\"\n class=\"grow self-stretch\"\n root\n rxap-navigation\n >\n </ul>\n\n <img\n [src]=\"logoSrc\"\n [routerLink]=\"['/']\"\n [width]=\"logoWidth\"\n alt=\"logo\"\n class=\"grow-0 mx-16\"\n />\n <div class=\"grow-0 px-16\">\n <span>{{release}}</span>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content [ngClass]=\"{ 'ml-16': collapsable() }\" class=\"p-4\">\n <router-outlet></router-outlet>\n </mat-sidenav-content>\n </mat-sidenav-container>\n <rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n</div>\n<!--<rxap-window-task-bar-container></rxap-window-task-bar-container>-->\n", styles: [":host .sidenav.collapsable:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .sidenav.collapsable ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}\n"], dependencies: [{ kind: "component", type: HeaderComponent, selector: "rxap-header", inputs: ["color"] }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i3$5.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i3$5.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i3$5.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i4$2.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: i4$2.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2$4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FooterComponent, selector: "rxap-footer" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: NavigationComponent, selector: "ul[rxap-navigation]", inputs: ["items", "level", "root"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: StatusIndicatorComponent, selector: "rxap-status-indicator" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
917
894
|
}
|
|
918
895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LayoutComponent, decorators: [{
|
|
919
896
|
type: Component,
|
|
@@ -932,7 +909,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
932
909
|
NavigationComponent,
|
|
933
910
|
RouterOutlet,
|
|
934
911
|
StatusIndicatorComponent,
|
|
935
|
-
], template: "<rxap-status-indicator class=\"fixed bottom-0 right-0 z-10\"></rxap-status-indicator>\n<div class=\"flex flex-col h-screen justify-between\">\n <rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n <mat-sidenav-container [ngStyle]=\"{\n 'margin-top.px': fixedTopGap(),\n 'margin-bottom.px': fixedBottomGap(),\n }\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n class=\"sidenav\"\n [opened]=\"opened()\"\n >\n <div class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n <div (click)=\"layoutComponentService.togglePinned()\" *ngIf=\"collapsable()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n <mat-icon *ngIf=\"!pinned()\">radio_button_unchecked</mat-icon>\n <mat-icon *ngIf=\"pinned()\">radio_button_checked</mat-icon>\n </button>\n </div>\n </div>\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && matSidenav.open()\"\n
|
|
912
|
+
], template: "<rxap-status-indicator class=\"fixed bottom-0 right-0 z-10\"></rxap-status-indicator>\n<div class=\"flex flex-col h-screen justify-between\">\n <rxap-header class=\"z-10 w-full fixed top-0\"></rxap-header>\n <mat-sidenav-container [ngStyle]=\"{\n 'margin-top.px': fixedTopGap(),\n 'margin-bottom.px': fixedBottomGap(),\n }\">\n <mat-sidenav\n #matSidenav=\"matSidenav\"\n [fixedBottomGap]=\"fixedBottomGap()\"\n [fixedInViewport]=\"true\"\n [fixedTopGap]=\"fixedTopGap()\"\n [mode]=\"sidenavMode()\"\n [ngClass]=\"{ collapsable: collapsable() }\"\n class=\"sidenav\"\n [opened]=\"opened()\"\n >\n <div (mouseleave)=\"collapsable() && !pinned() && matSidenav.close()\"\n class=\"h-full py-2 flex flex-col items-center gap-y-5 justify-items-stretch\">\n\n <div (click)=\"layoutComponentService.togglePinned()\" *ngIf=\"collapsable()\"\n class=\"pl-2 self-stretch grow-0 flex flex-row justify-between items-center\">\n <span class=\"text-lg\" i18n>Navigation</span>\n <div class=\"flex flex-row items-center justify-center\" style=\"width: 64px\">\n <button mat-icon-button>\n <mat-icon *ngIf=\"!pinned()\">radio_button_unchecked</mat-icon>\n <mat-icon *ngIf=\"pinned()\">radio_button_checked</mat-icon>\n </button>\n </div>\n </div>\n\n <ul\n (mouseenter)=\"collapsable() && !pinned() && matSidenav.open()\"\n class=\"grow self-stretch\"\n root\n rxap-navigation\n >\n </ul>\n\n <img\n [src]=\"logoSrc\"\n [routerLink]=\"['/']\"\n [width]=\"logoWidth\"\n alt=\"logo\"\n class=\"grow-0 mx-16\"\n />\n <div class=\"grow-0 px-16\">\n <span>{{release}}</span>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content [ngClass]=\"{ 'ml-16': collapsable() }\" class=\"p-4\">\n <router-outlet></router-outlet>\n </mat-sidenav-content>\n </mat-sidenav-container>\n <rxap-footer class=\"z-10 w-full fixed bottom-0\"></rxap-footer>\n</div>\n<!--<rxap-window-task-bar-container></rxap-window-task-bar-container>-->\n", styles: [":host .sidenav.collapsable:not(.mat-drawer-opened){transform:translate(calc(-100% + 64px))!important;visibility:visible!important;box-shadow:inherit!important;transition-property:transform;transition-delay:.25s;display:flex;border-right:solid 1px rgba(0,0,0,.12)}:host .sidenav.collapsable ::ng-deep .mat-drawer-inner-container::-webkit-scrollbar{display:none}\n"] }]
|
|
936
913
|
}], ctorParameters: function () { return [{ type: LayoutComponentService }, { type: undefined, decorators: [{
|
|
937
914
|
type: Inject,
|
|
938
915
|
args: [RXAP_ENVIRONMENT]
|