@arsedizioni/ars-utils 18.2.278 → 18.2.280

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.
@@ -9,11 +9,11 @@ export declare class ClipperService implements OnDestroy {
9
9
  private httpClient;
10
10
  private broadcastService;
11
11
  private dialogService;
12
- private refreshing;
13
12
  private tokenRefreshInterval;
14
13
  private tokenRefreshTimer?;
15
14
  private tokenRefreshTimerSubscription?;
16
15
  private broadcastServiceSubscription?;
16
+ private refreshing;
17
17
  private _loginInfo;
18
18
  get loginInfo(): ClipperLoginInfo;
19
19
  private _serviceUri;
@@ -2,6 +2,7 @@ import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { DialogService } from '@arsedizioni/ars-utils/ui';
3
3
  import { ClipperService } from '@arsedizioni/ars-utils/clipper.common';
4
4
  import { ClipperDocumentComponent } from './ui/document/document.component';
5
+ import { ThemeType } from '@arsedizioni/ars-utils/core';
5
6
  export declare class ClipperDocumentsUtils {
6
7
  /**
7
8
  * Open a document
@@ -12,7 +13,7 @@ export declare class ClipperDocumentsUtils {
12
13
  * @param selectionMode : the selection mode (1 = single, 2 = multiple, 3 = any selection)
13
14
  * @param theme: the theme to use. Default is system
14
15
  */
15
- static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string | null | undefined, selectionMode?: number | null, theme?: 'dark' | 'light' | null): MatDialogRef<ClipperDocumentComponent> | null;
16
+ static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string | null | undefined, selectionMode?: number | null, theme?: ThemeType | null): MatDialogRef<ClipperDocumentComponent> | null;
16
17
  /**
17
18
  * Extract document title
18
19
  * @param title : the full document title
@@ -2,13 +2,14 @@ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { PageEvent } from '@angular/material/paginator';
3
3
  import { MatDrawer } from '@angular/material/sidenav';
4
4
  import { ClipperSearchResult, ClipperSelectionMode } from '@arsedizioni/ars-utils/clipper.common';
5
+ import { ThemeType } from '@arsedizioni/ars-utils/core';
5
6
  import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
6
7
  import * as i0 from "@angular/core";
7
8
  export interface ClipperBrowserDialogData {
8
9
  selectionMode?: ClipperSelectionMode | null;
9
10
  selectableModels?: number[] | null;
10
11
  initialModel?: number | null;
11
- theme?: 'dark' | 'light' | null;
12
+ theme?: ThemeType | null;
12
13
  }
13
14
  export declare class ClipperBrowserDialogComponent extends ClipperSearchResultManager implements OnInit, OnDestroy, AfterViewInit {
14
15
  filterPane: MatDrawer;
@@ -1,13 +1,14 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatDrawer } from '@angular/material/sidenav';
3
3
  import { ClipperDocumentAnchorInfo, ClipperDocumentInfo, ClipperDocumentRelevants, ClipperQueryReferencesMode } from '@arsedizioni/ars-utils/clipper.common';
4
+ import { ThemeType } from '@arsedizioni/ars-utils/core';
4
5
  import { ClipperDocumentManager } from '../document-manager/document-manager';
5
6
  import * as i0 from "@angular/core";
6
7
  export interface ClipperDocumentDialogData {
7
8
  selectionMode: number;
8
9
  id: string;
9
10
  query?: string | null;
10
- theme?: 'dark' | 'light' | null;
11
+ theme?: ThemeType | null;
11
12
  }
12
13
  export declare class ClipperDocumentComponent extends ClipperDocumentManager implements OnInit, OnDestroy {
13
14
  relevantsPane: MatDrawer;
@@ -15,6 +15,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
15
15
  protected unsubscribe: Subject<void>;
16
16
  protected changeDetector: ChangeDetectorRef;
17
17
  protected breakpointObserver: BreakpointObserver;
18
+ private themeService;
18
19
  screenService: ScreenService;
19
20
  selection: SelectableModel<any, string> | null;
20
21
  protected snapshot: ClipperSearchResult | null;
@@ -1,5 +1,9 @@
1
1
  import { OnDestroy, Signal } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * Kind of themes: system default, light or dark
5
+ */
6
+ export type ThemeType = 'auto' | 'light' | 'dark';
3
7
  export declare class ThemeService implements OnDestroy {
4
8
  private readonly broadcastChannel;
5
9
  private readonly broadcastMessage;
@@ -41,6 +45,11 @@ export declare class ThemeService implements OnDestroy {
41
45
  * Toggle theme
42
46
  */
43
47
  toggleTheme(): void;
48
+ /**
49
+ * Get current active theme
50
+ * @returns the current theme
51
+ */
52
+ getTheme(): ThemeType;
44
53
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
45
54
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
46
55
  }