@dotglitch/ngx-common 1.0.17 → 1.0.19

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dotglitch/ngx-common",
3
3
  "private": false,
4
- "version": "1.0.17",
4
+ "version": "1.0.19",
5
5
  "repository": {
6
6
  "url": "https://github.com/knackstedt/dotglitch-ngx/tree/main/packages/common"
7
7
  },
package/public-api.d.ts CHANGED
@@ -24,6 +24,8 @@ export * from './services/dialog.service';
24
24
  export * from './services/fetch.service';
25
25
  export * from './services/keyboard.service';
26
26
  export * from './services/file.service';
27
+ export * from './services/theme.service';
28
+ export * from './services/navigation.service';
27
29
  /**
28
30
  ** Lazy loader component & service
29
31
  */
@@ -1,5 +1,5 @@
1
1
  import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
2
- import { LazyLoaderService } from '../public-api';
2
+ import { LazyLoaderService } from '../components/lazy-loader/lazy-loader.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export type DialogOptions = Partial<Omit<MatDialogConfig<any>, 'data'> & {
5
5
  /**
@@ -0,0 +1,20 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import { LazyLoaderService } from '../public-api';
3
+ import * as i0 from "@angular/core";
4
+ type NavigationArguments = {
5
+ root: string;
6
+ chunks: [string, ...string[]];
7
+ args: {
8
+ [key: string]: any;
9
+ };
10
+ };
11
+ export declare class NavigationService {
12
+ private readonly lazyLoader;
13
+ virtualPath$: BehaviorSubject<NavigationArguments>;
14
+ constructor(lazyLoader: LazyLoaderService);
15
+ private loadRootPageFromUrl;
16
+ private loadRootPage;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
19
+ }
20
+ export {};
@@ -0,0 +1,10 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ type AppTheme = "light" | "dark";
4
+ export declare class ThemeService extends BehaviorSubject<AppTheme> {
5
+ constructor();
6
+ setTheme(t: AppTheme): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
9
+ }
10
+ export {};