@rxap/layout 16.0.0-dev.34 → 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 +18 -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 +20 -39
- 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 +26 -31
- package/fesm2022/rxap-layout.mjs +83 -104
- 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 +7 -7
- package/lib/layout/layout.component.d.ts +6 -2
- package/lib/layout/layout.component.service.d.ts +9 -8
- package/package.json +17 -12
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
2
|
import { ThemePalette } from '@angular/material/core';
|
|
3
3
|
import { HeaderService } from '@rxap/services';
|
|
4
|
-
import { Constructor } from '@rxap/utilities';
|
|
5
|
-
import { Subscription } from 'rxjs';
|
|
6
4
|
import { LayoutComponentService } from '../layout/layout.component.service';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class HeaderComponent
|
|
6
|
+
export declare class HeaderComponent {
|
|
9
7
|
readonly headerComponentService: HeaderService;
|
|
10
8
|
readonly layoutComponentService: LayoutComponentService;
|
|
11
9
|
headerComponent: any;
|
|
12
|
-
components: Array<Constructor<any>>;
|
|
13
|
-
subscriptions: Subscription;
|
|
14
10
|
color: ThemePalette;
|
|
15
11
|
readonly collapsable: Signal<boolean>;
|
|
16
12
|
readonly opened: Signal<boolean>;
|
|
17
13
|
constructor(headerComponentService: HeaderService, layoutComponentService: LayoutComponentService, headerComponent: any);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
updateComponents(): void;
|
|
20
|
-
ngOnDestroy(): void;
|
|
21
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, [null, null, { optional: true; }]>;
|
|
22
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "rxap-header", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
23
16
|
}
|
|
@@ -2,7 +2,7 @@ import { ComponentPortal } from '@angular/cdk/portal';
|
|
|
2
2
|
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import { ChangelogService } from '@rxap/ngx-changelog';
|
|
5
|
-
import { ThemeDensity, ThemeService } from '@rxap/
|
|
5
|
+
import { ThemeDensity, ThemeService } from '@rxap/ngx-theme';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SettingsButtonComponent implements OnInit, OnDestroy {
|
|
8
8
|
readonly theme: ThemeService;
|
|
@@ -26,14 +26,14 @@ export declare class SettingsButtonComponent implements OnInit, OnDestroy {
|
|
|
26
26
|
private getCustomMenuItems;
|
|
27
27
|
openChangelogDialog(): void;
|
|
28
28
|
previewDensity(density: ThemeDensity): void;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
restoreDensity(): void;
|
|
30
|
+
setDensity(density: ThemeDensity): void;
|
|
31
31
|
previewTypography(typography: string): void;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
restoreTypography(): void;
|
|
33
|
+
setTypography(typography: string): void;
|
|
34
34
|
previewTheme(theme: string): void;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
restoreTheme(): void;
|
|
36
|
+
setTheme(theme: string): void;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsButtonComponent, never>;
|
|
38
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsButtonComponent, "rxap-settings-button", never, {}, {}, never, never, true, never>;
|
|
39
39
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { MatDrawerMode, MatSidenav } from '@angular/material/sidenav';
|
|
3
3
|
import { Environment } from '@rxap/environment';
|
|
4
4
|
import { IconLoaderService } from '@rxap/icon';
|
|
5
5
|
import { LayoutComponentService } from './layout.component.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class LayoutComponent {
|
|
7
|
+
export declare class LayoutComponent implements OnInit, OnDestroy {
|
|
8
8
|
readonly layoutComponentService: LayoutComponentService;
|
|
9
9
|
private readonly environment;
|
|
10
10
|
readonly sidenavMode: Signal<MatDrawerMode>;
|
|
@@ -17,7 +17,11 @@ export declare class LayoutComponent {
|
|
|
17
17
|
readonly release: string;
|
|
18
18
|
readonly opened: Signal<boolean>;
|
|
19
19
|
sidenav: MatSidenav;
|
|
20
|
+
private readonly userSettingsThemeService;
|
|
21
|
+
private readonly themeService;
|
|
20
22
|
constructor(layoutComponentService: LayoutComponentService, environment: Environment, iconLoaderService: IconLoaderService);
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
ngOnInit(): void;
|
|
21
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
22
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "rxap-layout", never, {}, {}, never, never, true, never>;
|
|
23
27
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { MediaMatcher } from '@angular/cdk/layout';
|
|
2
|
+
import { Signal, WritableSignal } from '@angular/core';
|
|
2
3
|
import { MatDrawerMode } from '@angular/material/sidenav';
|
|
3
4
|
import { ConfigService } from '@rxap/config';
|
|
4
5
|
import { FooterService, HeaderService } from '@rxap/services';
|
|
5
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
6
|
import { LogoConfig } from '../types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class LayoutComponentService {
|
|
9
9
|
readonly footerComponentService: FooterService;
|
|
10
10
|
readonly headerComponentService: HeaderService;
|
|
11
11
|
private readonly config;
|
|
12
|
-
opened$: BehaviorSubject<boolean>;
|
|
13
|
-
mode$: BehaviorSubject<MatDrawerMode>;
|
|
14
|
-
pinned$: BehaviorSubject<boolean>;
|
|
15
|
-
fixedBottomGap$: Observable<number>;
|
|
16
|
-
fixedTopGap$: BehaviorSubject<number>;
|
|
17
12
|
logo: LogoConfig;
|
|
18
|
-
|
|
13
|
+
readonly opened: WritableSignal<boolean>;
|
|
14
|
+
readonly mode: WritableSignal<MatDrawerMode>;
|
|
15
|
+
readonly pinned: WritableSignal<boolean>;
|
|
16
|
+
readonly collapsable: WritableSignal<boolean>;
|
|
17
|
+
readonly fixedBottomGap: Signal<number>;
|
|
18
|
+
readonly fixedTopGap: Signal<number>;
|
|
19
|
+
private readonly currentThemeDensity;
|
|
19
20
|
constructor(footerComponentService: FooterService, headerComponentService: HeaderService, logoConfig: LogoConfig | null | undefined, config: ConfigService, mediaMatcher: MediaMatcher);
|
|
20
|
-
|
|
21
|
+
toggleOpened(): void;
|
|
21
22
|
togglePinned(): void;
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponentService, [null, null, { optional: true; }, null, null]>;
|
|
23
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutComponentService>;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.0.0-dev.
|
|
2
|
+
"version": "16.0.0-dev.36",
|
|
3
3
|
"name": "@rxap/layout",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -17,17 +17,18 @@
|
|
|
17
17
|
"@rxap/authentication": "^16.0.0-dev.16",
|
|
18
18
|
"@rxap/authorization": "^16.0.0-dev.21",
|
|
19
19
|
"@rxap/browser-utilities": "^0.0.2-dev.9",
|
|
20
|
-
"@rxap/config": "^16.0.0-dev.
|
|
21
|
-
"@rxap/data-source": "^16.0.0-dev.
|
|
20
|
+
"@rxap/config": "^16.0.0-dev.18",
|
|
21
|
+
"@rxap/data-source": "^16.0.0-dev.22",
|
|
22
22
|
"@rxap/directives": "^16.0.0-dev.16",
|
|
23
23
|
"@rxap/environment": "^16.0.0-dev.16",
|
|
24
24
|
"@rxap/icon": "^16.0.0-dev.16",
|
|
25
|
-
"@rxap/material-directives": "^16.0.0-dev.
|
|
25
|
+
"@rxap/material-directives": "^16.0.0-dev.19",
|
|
26
26
|
"@rxap/ngx-changelog": "^16.1.0-dev.2",
|
|
27
27
|
"@rxap/ngx-localize": "^16.1.0-dev.1",
|
|
28
28
|
"@rxap/ngx-status-check": "^16.1.0-dev.13",
|
|
29
|
-
"@rxap/ngx-
|
|
30
|
-
"@rxap/
|
|
29
|
+
"@rxap/ngx-theme": "^16.1.0-dev.0",
|
|
30
|
+
"@rxap/ngx-user": "^16.1.0-dev.3",
|
|
31
|
+
"@rxap/services": "^16.0.0-dev.20",
|
|
31
32
|
"@rxap/utilities": "^16.0.0-dev.19",
|
|
32
33
|
"rxjs": "^7.8.0",
|
|
33
34
|
"@faker-js/faker": "8.0.2"
|
|
@@ -65,11 +66,11 @@
|
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"package": "@rxap/config",
|
|
68
|
-
"version": "16.0.0-dev.
|
|
69
|
+
"version": "16.0.0-dev.18"
|
|
69
70
|
},
|
|
70
71
|
{
|
|
71
72
|
"package": "@rxap/data-source",
|
|
72
|
-
"version": "16.0.0-dev.
|
|
73
|
+
"version": "16.0.0-dev.22"
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
76
|
"package": "@rxap/directives",
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
"package": "@rxap/material-directives",
|
|
88
|
-
"version": "16.0.0-dev.
|
|
89
|
+
"version": "16.0.0-dev.19"
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
92
|
"package": "@rxap/ngx-changelog",
|
|
@@ -99,9 +100,13 @@
|
|
|
99
100
|
"package": "@rxap/ngx-status-check",
|
|
100
101
|
"version": "16.1.0-dev.13"
|
|
101
102
|
},
|
|
103
|
+
{
|
|
104
|
+
"package": "@rxap/ngx-theme",
|
|
105
|
+
"version": "16.1.0-dev.0"
|
|
106
|
+
},
|
|
102
107
|
{
|
|
103
108
|
"package": "@rxap/ngx-user",
|
|
104
|
-
"version": "16.1.0-dev.
|
|
109
|
+
"version": "16.1.0-dev.3"
|
|
105
110
|
},
|
|
106
111
|
{
|
|
107
112
|
"package": "@rxap/rxjs",
|
|
@@ -109,7 +114,7 @@
|
|
|
109
114
|
},
|
|
110
115
|
{
|
|
111
116
|
"package": "@rxap/services",
|
|
112
|
-
"version": "16.0.0-dev.
|
|
117
|
+
"version": "16.0.0-dev.20"
|
|
113
118
|
},
|
|
114
119
|
{
|
|
115
120
|
"package": "@rxap/utilities",
|
|
@@ -127,7 +132,7 @@
|
|
|
127
132
|
"directory": "packages/angular/layout"
|
|
128
133
|
},
|
|
129
134
|
"sideEffects": false,
|
|
130
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "b80ce9606a060ca90afe6141ec25b8d6620d70ad",
|
|
131
136
|
"module": "fesm2022/rxap-layout.mjs",
|
|
132
137
|
"typings": "index.d.ts",
|
|
133
138
|
"exports": {
|