@rxap/layout 16.0.0-dev.0 → 16.0.0-dev.10
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 +378 -0
- package/LICENSE +621 -21
- package/LICENSE.md +621 -0
- package/README.md +7 -22
- package/esm2022/index.mjs +5 -20
- package/esm2022/lib/app-url.service.mjs +64 -0
- package/esm2022/lib/footer/footer.component.mjs +13 -42
- package/esm2022/lib/footer.directive.mjs +21 -35
- package/esm2022/lib/header/apps-button/apps-button.component.mjs +42 -101
- package/esm2022/lib/header/header.component.mjs +66 -108
- package/esm2022/lib/header/language-selector/language-selector.component.mjs +30 -108
- package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +22 -26
- package/esm2022/lib/header/reset-button/reset-button.component.mjs +16 -21
- package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +20 -36
- package/esm2022/lib/header/sign-out/sign-out.component.mjs +19 -28
- package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.mjs +39 -109
- 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 +58 -72
- package/esm2022/lib/layout/layout.component.service.mjs +21 -22
- package/esm2022/lib/navigation/navigation-item/navigation-item.component.mjs +120 -234
- package/esm2022/lib/navigation/navigation-item.mjs +4 -4
- package/esm2022/lib/navigation/navigation.component.mjs +47 -91
- package/esm2022/lib/navigation/navigation.service.mjs +28 -27
- package/esm2022/lib/navigation/replace-router-paths.service.mjs +9 -10
- package/esm2022/lib/sidenav/sidenav-footer.directive.mjs +15 -15
- package/esm2022/lib/sidenav/sidenav-header.directive.mjs +15 -15
- package/esm2022/lib/sidenav/sidenav.component.mjs +40 -112
- package/esm2022/lib/sidenav/sidenav.component.service.mjs +8 -9
- package/esm2022/lib/sidenav/version/version.component.mjs +17 -44
- package/esm2022/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.mjs +19 -40
- package/esm2022/lib/tokens.mjs +1 -1
- package/esm2022/lib/types.mjs +1 -1
- package/esm2022/lib/window-container-sidenav/window-container-sidenav.component.mjs +18 -36
- package/esm2022/rxap-layout.mjs +1 -1
- package/fesm2022/rxap-layout.mjs +761 -1845
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/index.d.ts +4 -17
- package/lib/app-url.service.d.ts +26 -0
- package/lib/footer/footer.component.d.ts +1 -1
- package/lib/footer.directive.d.ts +2 -7
- package/lib/header/apps-button/apps-button.component.d.ts +13 -21
- package/lib/header/header.component.d.ts +8 -11
- package/lib/header/language-selector/language-selector.component.d.ts +2 -17
- package/lib/header/navigation-progress-bar/navigation-progress-bar.component.d.ts +1 -1
- package/lib/header/reset-button/reset-button.component.d.ts +1 -1
- package/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.d.ts +1 -1
- package/lib/header/sign-out/sign-out.component.d.ts +5 -5
- package/lib/header/user-profile-icon/user-profile-icon.component.d.ts +12 -8
- 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 +11 -18
- package/lib/navigation/navigation-item.d.ts +1 -1
- package/lib/navigation/navigation.component.d.ts +6 -6
- package/lib/navigation/navigation.service.d.ts +1 -1
- package/lib/sidenav/sidenav-footer.directive.d.ts +1 -1
- package/lib/sidenav/sidenav-header.directive.d.ts +1 -1
- package/lib/sidenav/sidenav.component.d.ts +1 -1
- package/lib/sidenav/version/version.component.d.ts +3 -3
- package/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.d.ts +3 -5
- package/lib/types.d.ts +3 -2
- package/lib/window-container-sidenav/window-container-sidenav.component.d.ts +2 -2
- package/package.json +90 -67
- package/theme.css +1 -0
- package/collection.json +0 -10
- package/esm2022/lib/footer/footer.component.module.mjs +0 -30
- package/esm2022/lib/header/apps-button/apps-button.component.module.mjs +0 -46
- package/esm2022/lib/header/header.component.module.mjs +0 -70
- package/esm2022/lib/header/language-selector/language-selector.component.module.mjs +0 -30
- package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.mjs +0 -26
- package/esm2022/lib/header/reset-button/reset-button.component.module.mjs +0 -26
- package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.mjs +0 -30
- package/esm2022/lib/header/sign-out/sign-out.component.module.mjs +0 -30
- package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.module.mjs +0 -38
- package/esm2022/lib/layout/layout.component.module.mjs +0 -70
- package/esm2022/lib/navigation/navigation.component.module.mjs +0 -71
- package/esm2022/lib/navigation/replace-router-paths.pipe.mjs +0 -36
- package/esm2022/lib/sidenav/sidenav.component.module.mjs +0 -44
- package/esm2022/lib/sidenav/version/version.component.module.mjs +0 -26
- package/esm2022/lib/sidenav-content/sidenav-content.component.mjs +0 -46
- package/esm2022/lib/sidenav-content/sidenav-content.component.module.mjs +0 -26
- package/esm2022/lib/sidenav-content/sidenav-content.component.service.mjs +0 -37
- package/esm2022/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.mjs +0 -30
- package/esm2022/lib/window-container-sidenav/window-container-sidenav.component.module.mjs +0 -30
- package/lib/footer/footer.component.module.d.ts +0 -10
- package/lib/header/apps-button/apps-button.component.module.d.ts +0 -14
- package/lib/header/header.component.module.d.ts +0 -20
- package/lib/header/language-selector/language-selector.component.module.d.ts +0 -10
- package/lib/header/navigation-progress-bar/navigation-progress-bar.component.module.d.ts +0 -9
- package/lib/header/reset-button/reset-button.component.module.d.ts +0 -9
- package/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module.d.ts +0 -10
- package/lib/header/sign-out/sign-out.component.module.d.ts +0 -10
- package/lib/header/user-profile-icon/user-profile-icon.component.module.d.ts +0 -12
- package/lib/layout/layout.component.module.d.ts +0 -20
- package/lib/navigation/navigation.component.module.d.ts +0 -19
- package/lib/navigation/replace-router-paths.pipe.d.ts +0 -16
- package/lib/sidenav/sidenav.component.module.d.ts +0 -15
- package/lib/sidenav/version/version.component.module.d.ts +0 -9
- package/lib/sidenav-content/sidenav-content.component.d.ts +0 -12
- package/lib/sidenav-content/sidenav-content.component.module.d.ts +0 -9
- package/lib/sidenav-content/sidenav-content.component.service.d.ts +0 -15
- package/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module.d.ts +0 -10
- package/lib/window-container-sidenav/window-container-sidenav.component.module.d.ts +0 -10
- package/migration.json +0 -4
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
package/index.d.ts
CHANGED
|
@@ -1,42 +1,29 @@
|
|
|
1
1
|
export * from './lib/tokens';
|
|
2
|
-
export * from './lib/footer/footer.component.module';
|
|
3
2
|
export * from './lib/footer/footer.component';
|
|
4
|
-
export * from './lib/header/header.component.module';
|
|
5
3
|
export * from './lib/header/header.component';
|
|
6
4
|
export * from './lib/header/sign-out/sign-out.component';
|
|
7
|
-
export * from './lib/header/sign-out/sign-out.component.module';
|
|
8
5
|
export * from './lib/header/user-profile-icon/user-profile-icon.component';
|
|
9
|
-
export * from './lib/header/user-profile-icon/user-profile-icon.component.module';
|
|
10
6
|
export * from './lib/header/reset-button/reset-button.component';
|
|
11
|
-
export * from './lib/header/reset-button/reset-button.component.module';
|
|
12
7
|
export * from './lib/header/sidenav-toggle-button/sidenav-toggle-button.component';
|
|
13
|
-
export * from './lib/header/sidenav-toggle-button/sidenav-toggle-button.component.module';
|
|
14
8
|
export * from './lib/header/navigation-progress-bar/navigation-progress-bar.component';
|
|
15
|
-
export * from './lib/header/navigation-progress-bar/navigation-progress-bar.component.module';
|
|
16
|
-
export * from './lib/header/apps-button/apps-button.component.module';
|
|
17
9
|
export * from './lib/header/apps-button/apps-button.component';
|
|
18
|
-
export * from './lib/layout/layout.component.module';
|
|
19
10
|
export * from './lib/layout/layout.component';
|
|
20
11
|
export * from './lib/layout/layout.component.service';
|
|
21
12
|
export * from './lib/navigation/navigation-item';
|
|
22
13
|
export * from './lib/navigation/replace-router-paths.service';
|
|
23
14
|
export * from './lib/navigation/navigation.service';
|
|
24
|
-
export * from './lib/navigation/navigation.component.module';
|
|
25
15
|
export * from './lib/navigation/navigation.component';
|
|
26
16
|
export * from './lib/navigation/navigation-item/navigation-item.component';
|
|
27
|
-
export * from './lib/sidenav/sidenav.component.module';
|
|
28
17
|
export * from './lib/sidenav/sidenav.component';
|
|
29
18
|
export * from './lib/sidenav/sidenav-header.directive';
|
|
30
19
|
export * from './lib/sidenav/sidenav-footer.directive';
|
|
31
20
|
export * from './lib/sidenav/sidenav.component.service';
|
|
32
21
|
export * from './lib/sidenav/version/version.component';
|
|
33
|
-
export * from './lib/sidenav/version/version.component.module';
|
|
34
|
-
export * from './lib/sidenav-content/sidenav-content.component.service';
|
|
35
|
-
export * from './lib/sidenav-content/sidenav-content.component.module';
|
|
36
|
-
export * from './lib/sidenav-content/sidenav-content.component';
|
|
37
|
-
export * from './lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.module';
|
|
38
22
|
export * from './lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component';
|
|
39
23
|
export * from './lib/window-container-sidenav/window-container-sidenav.component';
|
|
40
|
-
export * from './lib/window-container-sidenav/window-container-sidenav.component.module';
|
|
41
24
|
export * from './lib/footer.directive';
|
|
42
25
|
export * from './lib/types';
|
|
26
|
+
export * from './lib/i18n-check.guard';
|
|
27
|
+
export * from './lib/i18n.service';
|
|
28
|
+
export * from './lib/language-selector.service';
|
|
29
|
+
export * from './lib/app-url.service';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ConfigService } from '@rxap/config';
|
|
2
|
+
import { RxapUserProfileService } from '@rxap/authentication';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ExternalApps {
|
|
5
|
+
image?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
href: string;
|
|
8
|
+
empty?: false;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
permissions: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare class AppUrlService {
|
|
14
|
+
private readonly config;
|
|
15
|
+
private readonly localeId;
|
|
16
|
+
private readonly userProfileService;
|
|
17
|
+
private _apps;
|
|
18
|
+
constructor(config: ConfigService, localeId: string, userProfileService: RxapUserProfileService);
|
|
19
|
+
getApp(appId: string): ExternalApps | null;
|
|
20
|
+
getAppUrl(appId: string, path: string): string | null;
|
|
21
|
+
navigate(appId: string, path: string): void;
|
|
22
|
+
getAppList(): Promise<Array<ExternalApps>>;
|
|
23
|
+
private getPathPrefix;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppUrlService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppUrlService>;
|
|
26
|
+
}
|
|
@@ -4,5 +4,5 @@ export declare class FooterComponent {
|
|
|
4
4
|
readonly footerService: FooterService;
|
|
5
5
|
constructor(footerService: FooterService);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "rxap-footer", never, {}, {}, never, never,
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "rxap-footer", never, {}, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { FooterService } from '@rxap/services';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FooterDirective implements OnInit, OnDestroy {
|
|
@@ -10,10 +10,5 @@ export declare class FooterDirective implements OnInit, OnDestroy {
|
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FooterDirective, "[rxapFooter]", never, {}, {}, never, never,
|
|
14
|
-
}
|
|
15
|
-
export declare class FooterDirectiveModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FooterDirectiveModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FooterDirectiveModule, [typeof FooterDirective], never, [typeof FooterDirective]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FooterDirectiveModule>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FooterDirective, "[rxapFooter]", never, {}, {}, never, never, true, never>;
|
|
19
14
|
}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AppUrlService, ExternalApps } from '../../app-url.service';
|
|
3
|
+
import { RxapAuthenticationService } from '@rxap/authentication';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
href: string;
|
|
7
|
-
empty?: false;
|
|
8
|
-
}
|
|
9
|
-
export interface EmptyAppsButtonGridItem {
|
|
10
|
-
empty: true;
|
|
11
|
-
href?: undefined;
|
|
12
|
-
label?: undefined;
|
|
13
|
-
image?: undefined;
|
|
14
|
-
}
|
|
15
|
-
export declare class AppsButtonComponent {
|
|
16
|
-
private readonly config;
|
|
17
|
-
get gridWithPadding(): Array<AppsButtonGridItem | EmptyAppsButtonGridItem>;
|
|
18
|
-
get columns(): 1 | 2 | 3;
|
|
5
|
+
export declare class AppsButtonComponent implements OnInit, OnDestroy {
|
|
6
|
+
private readonly appUrlService;
|
|
7
|
+
private readonly authenticationService;
|
|
19
8
|
isOpen: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
readonly appList: import("@angular/core").WritableSignal<ExternalApps[]>;
|
|
10
|
+
private _subscription?;
|
|
11
|
+
constructor(grid: any, appUrlService: AppUrlService, authenticationService: RxapAuthenticationService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppsButtonComponent, [{ optional: true; }, null, null]>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppsButtonComponent, "rxap-apps-button", never, {}, {}, never, never, true, never>;
|
|
24
16
|
}
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Constructor } from '@rxap/utilities';
|
|
3
|
-
import { Subscription
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
4
|
import { MatSidenav } from '@angular/material/sidenav';
|
|
5
|
-
import {
|
|
6
|
-
import { HeaderService } from '@rxap/services';
|
|
7
|
-
import { MatLegacyMenuPanel as MatMenuPanel } from '@angular/material/legacy-menu';
|
|
5
|
+
import { HeaderService, ThemeService } from '@rxap/services';
|
|
8
6
|
import { ThemePalette } from '@angular/material/core';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class HeaderComponent implements OnInit, OnDestroy {
|
|
11
9
|
readonly headerComponentService: HeaderService;
|
|
12
|
-
private readonly userService;
|
|
13
10
|
headerComponent: any;
|
|
11
|
+
readonly theme: ThemeService;
|
|
14
12
|
sidenav?: MatSidenav;
|
|
15
13
|
components: Array<Constructor<any>>;
|
|
16
14
|
subscriptions: Subscription;
|
|
17
|
-
hasUser$: Observable<boolean>;
|
|
18
15
|
color: ThemePalette;
|
|
19
|
-
|
|
20
|
-
constructor(headerComponentService: HeaderService,
|
|
16
|
+
isDevMode: boolean;
|
|
17
|
+
constructor(headerComponentService: HeaderService, headerComponent: any, theme: ThemeService);
|
|
21
18
|
ngOnInit(): void;
|
|
22
19
|
updateComponents(): void;
|
|
23
20
|
ngOnDestroy(): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, [null,
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "rxap-header", never, { "sidenav": { "alias": "sidenav"; "required": false; }; "color": { "alias": "color"; "required": false; };
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, [null, { optional: true; }, null]>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "rxap-header", never, { "sidenav": { "alias": "sidenav"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
26
23
|
}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LanguageSelectorService } from '../../language-selector.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare const RXAP_SELECTED_LANGUAGE_LOCAL_STORAGE_KEY = "rxap__selected_language";
|
|
4
|
-
export declare const RXAP_SELECTED_LANGUAGE_CHANGE_LOCAL_STORAGE_KEY = "rxap__selected_language_last_change";
|
|
5
|
-
export declare class LanguageSelectorService {
|
|
6
|
-
private readonly config;
|
|
7
|
-
readonly languages: any;
|
|
8
|
-
readonly defaultLanguage: string;
|
|
9
|
-
selectedLanguage: string;
|
|
10
|
-
constructor(config: ConfigService);
|
|
11
|
-
setLanguage(language: string): void;
|
|
12
|
-
autoRedirect(): void;
|
|
13
|
-
private redirect;
|
|
14
|
-
private checkLastChange;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageSelectorService>;
|
|
17
|
-
}
|
|
18
3
|
export declare class LanguageSelectorComponent {
|
|
19
4
|
readonly language: LanguageSelectorService;
|
|
20
5
|
constructor(language: LanguageSelectorService);
|
|
21
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorComponent, "rxap-language-selector", never, {}, {}, never, never,
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorComponent, "rxap-language-selector", never, {}, {}, never, never, true, never>;
|
|
23
8
|
}
|
|
@@ -6,5 +6,5 @@ export declare class NavigationProgressBarComponent {
|
|
|
6
6
|
navigating$: Observable<boolean>;
|
|
7
7
|
constructor(router: Router);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationProgressBarComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationProgressBarComponent, "rxap-navigation-progress-bar", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationProgressBarComponent, "rxap-navigation-progress-bar", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -4,5 +4,5 @@ export declare class ResetButtonComponent {
|
|
|
4
4
|
readonly resetService: ResetService;
|
|
5
5
|
constructor(resetService: ResetService);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResetButtonComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResetButtonComponent, "rxap-reset-button", never, {}, {}, never, never,
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResetButtonComponent, "rxap-reset-button", never, {}, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class SidenavToggleButtonComponent {
|
|
4
4
|
sidenav: MatSidenav;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavToggleButtonComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavToggleButtonComponent, "rxap-sidenav-toggle-button", never, { "sidenav": { "alias": "sidenav"; "required": false; }; }, {}, never, never,
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavToggleButtonComponent, "rxap-sidenav-toggle-button", never, { "sidenav": { "alias": "sidenav"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RxapAuthenticationService } from '@rxap/authentication';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SignOutComponent {
|
|
4
|
-
private readonly
|
|
5
|
-
constructor(
|
|
6
|
-
|
|
4
|
+
private readonly authenticationService;
|
|
5
|
+
constructor(authenticationService: RxapAuthenticationService);
|
|
6
|
+
logout(): Promise<void>;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignOutComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SignOutComponent, "rxap-sign-out", never, {}, {}, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SignOutComponent, "rxap-sign-out", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { RxapAuthenticationService, RxapUserProfileService } from '@rxap/authentication';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class UserProfileIconComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export declare class UserProfileIconComponent implements OnInit, OnDestroy {
|
|
5
|
+
private readonly userProfileService;
|
|
6
|
+
private readonly authenticationService;
|
|
7
|
+
username: import("@angular/core").WritableSignal<string | null>;
|
|
8
|
+
private _subscription?;
|
|
9
|
+
constructor(userProfileService: RxapUserProfileService, authenticationService: RxapAuthenticationService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
logout(): Promise<void>;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileIconComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileIconComponent, "rxap-user-profile-icon", never, {}, {}, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileIconComponent, "rxap-user-profile-icon", never, {}, {}, never, never, true, never>;
|
|
11
15
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfigService } from '@rxap/config';
|
|
2
|
+
import { I18nService } from './i18n.service';
|
|
3
|
+
import { RxapUserProfileService } from '@rxap/authentication';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class I18nCheckGuard {
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly localId;
|
|
8
|
+
private readonly i18nService;
|
|
9
|
+
private readonly userProfileService;
|
|
10
|
+
constructor(config: ConfigService, localId: string, i18nService: I18nService, userProfileService: RxapUserProfileService);
|
|
11
|
+
canActivate(): Promise<boolean>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nCheckGuard, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nCheckGuard>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RxapUserProfileService } from '@rxap/authentication';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class I18nService {
|
|
4
|
+
private readonly localId;
|
|
5
|
+
private readonly userProfileService;
|
|
6
|
+
readonly currentLanguage: string;
|
|
7
|
+
constructor(localId: string, userProfileService: RxapUserProfileService);
|
|
8
|
+
setLanguage(language: string): Promise<void>;
|
|
9
|
+
redirect(next: string, current?: string): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ConfigService } from '@rxap/config';
|
|
2
|
+
import { I18nService } from './i18n.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LanguageSelectorService {
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly localId;
|
|
7
|
+
private readonly i18nService;
|
|
8
|
+
readonly languages: any;
|
|
9
|
+
readonly defaultLanguage: string;
|
|
10
|
+
selectedLanguage: string;
|
|
11
|
+
constructor(config: ConfigService, localId: string, i18nService: I18nService);
|
|
12
|
+
setLanguage(language: string): Promise<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageSelectorService>;
|
|
15
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { MatDrawerMode, MatSidenav } from '@angular/material/sidenav';
|
|
2
|
+
import { Environment } from '@rxap/environment';
|
|
1
3
|
import { LayoutComponentService } from './layout.component.service';
|
|
2
|
-
import { MatSidenav } from '@angular/material/sidenav';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LayoutComponent {
|
|
5
6
|
readonly layoutComponentService: LayoutComponentService;
|
|
6
|
-
|
|
7
|
+
private readonly environment;
|
|
8
|
+
sidenavMode: MatDrawerMode;
|
|
7
9
|
sidenav: MatSidenav;
|
|
8
|
-
constructor(layoutComponentService: LayoutComponentService);
|
|
10
|
+
constructor(layoutComponentService: LayoutComponentService, environment: Environment);
|
|
11
|
+
get release(): string;
|
|
12
|
+
toggleSidenavMode(): void;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "rxap-layout", never, {}, {}, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "rxap-layout", never, {}, {}, never, never, true, never>;
|
|
11
15
|
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { RouterLinkActive, Router } from '@angular/router';
|
|
4
|
-
import { SidenavComponentService } from '../../sidenav/sidenav.component.service';
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { Router, RouterLinkActive } from '@angular/router';
|
|
5
3
|
import { Overlay } from '@angular/cdk/overlay';
|
|
4
|
+
import { SidenavComponentService } from '../../sidenav/sidenav.component.service';
|
|
5
|
+
import { Navigation, NavigationDividerItem, NavigationItem } from '../navigation-item';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NavigationItemComponent implements OnChanges,
|
|
7
|
+
export declare class NavigationItemComponent implements OnChanges, OnDestroy {
|
|
8
8
|
private readonly router;
|
|
9
9
|
readonly sidenav: SidenavComponentService;
|
|
10
10
|
private readonly elementRef;
|
|
11
11
|
private readonly renderer;
|
|
12
12
|
private readonly overlay;
|
|
13
13
|
private readonly viewContainerRef;
|
|
14
|
+
level: number;
|
|
15
|
+
private _isActive;
|
|
14
16
|
children: Navigation | null;
|
|
15
17
|
routerLinkActive: RouterLinkActive;
|
|
16
18
|
item: NavigationItem;
|
|
17
|
-
|
|
18
|
-
isActive: boolean;
|
|
19
|
-
|
|
19
|
+
active: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
get isActive(): boolean;
|
|
21
|
+
set isActive(value: boolean);
|
|
20
22
|
private readonly _subscription;
|
|
21
|
-
private _overlayRef?;
|
|
22
|
-
private _embeddedViewRef?;
|
|
23
|
-
/**
|
|
24
|
-
* indicates the mouse is over the
|
|
25
|
-
*/
|
|
26
|
-
lockeOverlay: boolean;
|
|
27
23
|
constructor(router: Router, sidenav: SidenavComponentService, elementRef: ElementRef, renderer: Renderer2, overlay: Overlay, viewContainerRef: ViewContainerRef);
|
|
28
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
29
25
|
ngAfterViewInit(): void;
|
|
30
|
-
ngOnInit(): void;
|
|
31
26
|
ngOnDestroy(): void;
|
|
32
|
-
onMouseenter(): void;
|
|
33
|
-
onMouseleave(): void;
|
|
34
27
|
isNavigationDividerItem(item: NavigationItem | NavigationDividerItem): item is NavigationDividerItem;
|
|
35
28
|
isNavigationItem(item: NavigationItem | NavigationDividerItem): item is NavigationItem;
|
|
36
29
|
asNavigationItem(item: NavigationItem | NavigationDividerItem): NavigationItem;
|
|
37
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationItemComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationItemComponent, "li[rxap-navigation-item]", never, { "
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationItemComponent, "li[rxap-navigation-item]", never, { "level": { "alias": "level"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconConfig } from '@rxap/utilities';
|
|
2
|
-
import { InjectionToken, Type
|
|
2
|
+
import { AbstractType, InjectionToken, Type } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
export type Navigation = Array<NavigationItem | NavigationDividerItem>;
|
|
5
5
|
export type NavigationWithInserts = Array<NavigationItem<NavigationWithInserts> | NavigationDividerItem | NavigationInsertItem>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Navigation, NavigationItem, NavigationDividerItem } from './navigation-item';
|
|
3
|
-
import { NavigationService } from './navigation.service';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
4
2
|
import { Subscription } from 'rxjs';
|
|
3
|
+
import { Navigation, NavigationDividerItem, NavigationItem } from './navigation-item';
|
|
4
|
+
import { NavigationService } from './navigation.service';
|
|
5
5
|
import { SidenavComponentService } from '../sidenav/sidenav.component.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class NavigationComponent implements OnInit, OnDestroy {
|
|
8
8
|
private readonly navigationService;
|
|
9
9
|
private readonly cdr;
|
|
10
10
|
readonly sidenav: SidenavComponentService;
|
|
11
|
-
_root: boolean;
|
|
12
|
-
set root(value: boolean | '');
|
|
13
11
|
items: Navigation;
|
|
14
12
|
subscription?: Subscription;
|
|
15
13
|
level: number;
|
|
16
14
|
constructor(navigationService: NavigationService, cdr: ChangeDetectorRef, sidenav: SidenavComponentService);
|
|
15
|
+
_root: boolean;
|
|
16
|
+
set root(value: boolean | '');
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
ngOnDestroy(): void;
|
|
19
19
|
isNavigationDividerItem(item: NavigationItem | NavigationDividerItem): item is NavigationDividerItem;
|
|
20
20
|
isNavigationItem(item: NavigationItem | NavigationDividerItem): item is NavigationItem;
|
|
21
21
|
asNavigationItem(item: NavigationItem | NavigationDividerItem): NavigationItem;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationComponent, "ul[rxap-navigation]", never, { "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationComponent, "ul[rxap-navigation]", never, { "items": { "alias": "items"; "required": false; }; "level": { "alias": "level"; "required": false; }; "root": { "alias": "root"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Injector } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Navigation,
|
|
3
|
+
import { Navigation, NavigationDividerItem, NavigationItem, NavigationWithInserts } from './navigation-item';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NavigationService {
|
|
6
6
|
private readonly injector;
|
|
@@ -4,5 +4,5 @@ export declare class SidenavFooterDirective {
|
|
|
4
4
|
readonly template: TemplateRef<void>;
|
|
5
5
|
constructor(template: TemplateRef<void>);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavFooterDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SidenavFooterDirective, "[rxapSidenavFooter]", never, {}, {}, never, never,
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidenavFooterDirective, "[rxapSidenavFooter]", never, {}, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class SidenavHeaderDirective {
|
|
|
4
4
|
readonly template: TemplateRef<void>;
|
|
5
5
|
constructor(template: TemplateRef<void>);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavHeaderDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SidenavHeaderDirective, "[rxapSidenavHeader]", never, {}, {}, never, never,
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidenavHeaderDirective, "[rxapSidenavHeader]", never, {}, {}, never, never, true, never>;
|
|
8
8
|
}
|
|
@@ -8,5 +8,5 @@ export declare class SidenavComponent {
|
|
|
8
8
|
sidenavHeaderDirective?: SidenavHeaderDirective;
|
|
9
9
|
constructor(sidenav: SidenavComponentService);
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "rxap-sidenav", never, {}, {}, ["sidenavFooterDirective", "sidenavHeaderDirective"], never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "rxap-sidenav", never, {}, {}, ["sidenavFooterDirective", "sidenavHeaderDirective"], never, true, never>;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Version, VersionService } from '@rxap/services';
|
|
3
3
|
import { KeyValue } from '@rxap/utilities';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class VersionComponent implements OnInit, OnDestroy {
|
|
@@ -10,5 +10,5 @@ export declare class VersionComponent implements OnInit, OnDestroy {
|
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<VersionComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VersionComponent, "rxap-version", never, {}, {}, never, never,
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VersionComponent, "rxap-version", never, {}, {}, never, never, true, never>;
|
|
14
14
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ToggleWindowSidenavButtonComponent
|
|
3
|
+
export declare class ToggleWindowSidenavButtonComponent {
|
|
4
4
|
openWindowSidenav: boolean;
|
|
5
5
|
openWindowSidenavChange: EventEmitter<boolean>;
|
|
6
|
-
constructor();
|
|
7
|
-
ngOnInit(): void;
|
|
8
6
|
toggle(): void;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleWindowSidenavButtonComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleWindowSidenavButtonComponent, "rxap-toggle-window-sidenav-button", never, { "openWindowSidenav": { "alias": "openWindowSidenav"; "required": false; }; }, { "openWindowSidenavChange": "openWindowSidenavChange"; }, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleWindowSidenavButtonComponent, "rxap-toggle-window-sidenav-button", never, { "openWindowSidenav": { "alias": "openWindowSidenav"; "required": false; }; }, { "openWindowSidenavChange": "openWindowSidenavChange"; }, never, never, true, never>;
|
|
11
9
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { WindowContainerSidenavService } from '@rxap/services';
|
|
3
3
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -13,5 +13,5 @@ export declare class WindowContainerSidenavComponent implements OnInit, OnDestro
|
|
|
13
13
|
private add;
|
|
14
14
|
private remove;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerSidenavComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WindowContainerSidenavComponent, "rxap-window-container-sidenav", never, {}, {}, never, never,
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WindowContainerSidenavComponent, "rxap-window-container-sidenav", never, {}, {}, never, never, true, never>;
|
|
17
17
|
}
|