@arsedizioni/ars-utils 18.2.244 → 18.2.247

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.
@@ -1,6 +1,7 @@
1
1
  import { SendToDialogResult } from '@arsedizioni/ars-utils/ui.application';
2
2
  import { LoginResult, NameValueItem } from '@arsedizioni/ars-utils/core';
3
3
  import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.oauth';
4
+ import { Signal } from '@angular/core';
4
5
  export declare enum ClipperSelectionMode {
5
6
  Single = 1,
6
7
  Multi = 2,
@@ -492,23 +493,24 @@ export interface ClipperDashboardResult {
492
493
  documentUpdates?: number | null;
493
494
  }
494
495
  export declare class ClipperDashboard {
495
- items: ClipperDashboardItem[];
496
+ items: import("@angular/core").WritableSignal<ClipperDashboardItem[]>;
496
497
  isTrial?: boolean | null;
497
498
  expiredDeadlines?: number | null;
498
499
  expiringDeadlines?: number | null;
499
500
  documentUpdates?: number | null;
501
+ unreadItems: Signal<[ClipperModule, number][]>;
500
502
  /**
501
503
  * Update unread items
502
504
  * @param module : the module
503
505
  * @param increment : the increment (can be negative)
504
506
  */
505
507
  updateUnreadItems(module: ClipperModule, increment: number): void;
506
- /**
507
- * Get the unread items of a module
508
- * @param module : the module
509
- * @returns : the number of unread items
508
+ /***
509
+ * Get the module unread items
510
+ * @param module: the module
511
+ * @returns the module unread items
510
512
  */
511
- getUnreadItems(module: ClipperModule): number | null | undefined;
513
+ getUnreadItems(module: ClipperModule): number;
512
514
  }
513
515
  export declare class ClipperUtils {
514
516
  /**
@@ -22,7 +22,7 @@ export declare class ClipperService implements OnDestroy {
22
22
  readonly loggingIn: import("@angular/core").WritableSignal<boolean>;
23
23
  readonly snapshot: import("@angular/core").WritableSignal<ClipperSearchResult>;
24
24
  readonly referencesSnapshot: import("@angular/core").WritableSignal<ClipperSearchResult>;
25
- readonly dashboard: import("@angular/core").WritableSignal<ClipperDashboard>;
25
+ readonly dashboard: ClipperDashboard;
26
26
  readonly bag: import("@angular/core").WritableSignal<ClipperDocumentInfo[]>;
27
27
  readonly bagTotal: Signal<number>;
28
28
  readonly visible: import("@angular/core").WritableSignal<boolean>;
@@ -159,12 +159,6 @@ export declare class ClipperService implements OnDestroy {
159
159
  * Retrieve current dashboard
160
160
  */
161
161
  loadDashboard(): void;
162
- /**
163
- * Update unread items
164
- * @param module : the module
165
- * @param increment : the increment (can be negative)
166
- */
167
- updateDashboardUnreadItems(module: ClipperModule, increment: number): void;
168
162
  /**
169
163
  * Save a user link
170
164
  * @param item: the user link