@arsedizioni/ars-utils 22.0.35 → 22.0.37

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "22.0.35",
3
+ "version": "22.0.37",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -1214,6 +1214,24 @@ declare class ClipperAccountService {
1214
1214
  * @returns An observable emitting the API result wrapping a boolean success flag.
1215
1215
  */
1216
1216
  deleteLink(item: ClipperUserLink): rxjs.Observable<ApiResult<boolean>>;
1217
+ /**
1218
+ * Retrieves the current dashboard and applies its counters to the shared dashboard state.
1219
+ * @returns The subscription to the dashboard request.
1220
+ */
1221
+ loadDashboard(): rxjs.Subscription;
1222
+ /**
1223
+ * Retrieves documents updated in the last 15 days for the given search parameters.
1224
+ * @param params - The search parameters to filter results.
1225
+ * @returns An observable emitting the API result wrapping the last-days result.
1226
+ */
1227
+ last15Days(params: ClipperSearchParams): rxjs.Observable<ApiResult<ClipperLastDaysResult>>;
1228
+ /**
1229
+ * Adjusts the unread-item counter for the given module and broadcasts a dashboard update.
1230
+ * @param module - The Clipper module whose counter should be adjusted.
1231
+ * @param model - Optional document model to further scope the counter update.
1232
+ * @param increment - The signed increment to apply (use negative values to decrement).
1233
+ */
1234
+ updateUnreadItems(module: ClipperModule, model?: ClipperModel, increment?: number): void;
1217
1235
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipperAccountService, never>;
1218
1236
  static ɵprov: i0.ɵɵInjectableDeclaration<ClipperAccountService>;
1219
1237
  }
@@ -1573,24 +1591,6 @@ declare class ClipperDocumentsService {
1573
1591
  * @returns An observable emitting the API result wrapping the list of tags.
1574
1592
  */
1575
1593
  getTags(): rxjs.Observable<ApiResult<NameValueItem<string>[]>>;
1576
- /**
1577
- * Retrieves the current dashboard and applies its counters to the shared dashboard state.
1578
- * @returns The subscription to the dashboard request.
1579
- */
1580
- loadDashboard(): rxjs.Subscription;
1581
- /**
1582
- * Retrieves documents updated in the last 15 days for the given search parameters.
1583
- * @param params - The search parameters to filter results.
1584
- * @returns An observable emitting the API result wrapping the last-days result.
1585
- */
1586
- last15Days(params: ClipperSearchParams): rxjs.Observable<ApiResult<ClipperLastDaysResult>>;
1587
- /**
1588
- * Adjusts the unread-item counter for the given module and broadcasts a dashboard update.
1589
- * @param module - The Clipper module whose counter should be adjusted.
1590
- * @param model - Optional document model to further scope the counter update.
1591
- * @param increment - The signed increment to apply (use negative values to decrement).
1592
- */
1593
- updateUnreadItems(module: ClipperModule, model?: ClipperModel, increment?: number): void;
1594
1594
  /**
1595
1595
  * Loads the working documents and populates the shared bag.
1596
1596
  * @returns The subscription to the working-documents request.
@@ -1683,6 +1683,11 @@ declare class ClipperLoginService {
1683
1683
  * @returns An observable that completes once the logout request has been processed.
1684
1684
  */
1685
1685
  logout(forget?: boolean): rxjs.Observable<any>;
1686
+ /**
1687
+ * Clears all session-storage authentication keys and resets the login state.
1688
+ * @param clearOAuthToken - When `true`, the OAuth bearer token is also removed.
1689
+ */
1690
+ clear(clearOAuthToken?: boolean): void;
1686
1691
  /**
1687
1692
  * Requests a new one-time password for the given repository.
1688
1693
  * @param id - The repository ID for which the OTP should be generated.
@@ -1705,9 +1710,9 @@ declare class ClipperService {
1705
1710
  private readonly core;
1706
1711
  /** Authentication: login/logout, MFA, OTP. */
1707
1712
  readonly session: ClipperLoginService;
1708
- /** Document search, references, export, dashboard, working-documents bag and saved searches. */
1713
+ /** Document search, references, export, working-documents bag and saved searches. */
1709
1714
  readonly documents: ClipperDocumentsService;
1710
- /** Account settings, password, channels, trial info and user links. */
1715
+ /** Account settings, dashboard, password, channels, trial info and user links. */
1711
1716
  readonly account: ClipperAccountService;
1712
1717
  /** Archive folders and files. */
1713
1718
  readonly archive: ClipperArchiveService;
@@ -1049,7 +1049,7 @@ declare class ClipperDocumentMenuComponent {
1049
1049
  private readonly renderer2;
1050
1050
  private readonly clipperService;
1051
1051
  readonly useSelections: _angular_core.InputSignal<boolean>;
1052
- readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1052
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1053
1053
  /**
1054
1054
  * Computed signal that returns the current effective document selection.
1055
1055
  * Re-evaluates when any input signal or the underlying selection model changes.