@arsedizioni/ars-utils 21.2.222 → 21.2.225

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": "21.2.222",
3
+ "version": "21.2.225",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -14,7 +14,6 @@ import { MatCalendar, MatCalendarCellClassFunction } from '@angular/material/dat
14
14
  import { NgForm } from '@angular/forms';
15
15
  import { MatSelectionList } from '@angular/material/list';
16
16
  import { MatMenuTrigger, MatMenu } from '@angular/material/menu';
17
- import { MatDialogRef } from '@angular/material/dialog';
18
17
 
19
18
  declare class ClipperSearchFacetsComponent {
20
19
  readonly changed: _angular_core.OutputEmitterRef<ClipperSearchFacetsSnapshot>;
@@ -1017,7 +1016,7 @@ declare class ClipperDocumentMenuComponent {
1017
1016
  /** Internal counter incremented on each external selection-model change to drive signal re-evaluation. */
1018
1017
  private readonly selectionChangeTick;
1019
1018
  readonly useSelections: _angular_core.InputSignal<boolean>;
1020
- readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1019
+ readonly selectionSource: _angular_core.InputSignal<"none" | "bag" | "selection">;
1021
1020
  /**
1022
1021
  * Computed signal that returns the current effective document selection.
1023
1022
  * Re-evaluates when any input signal or the underlying selection model changes.
@@ -1403,10 +1402,10 @@ declare class ClipperDocumentsUtils {
1403
1402
  * @param theme - The UI theme to apply. Defaults to the system theme.
1404
1403
  * @param canUseArchive - When `true`, archive access is enabled inside the viewer.
1405
1404
  * @param canHandleTooManyResults - When `true`, the component handles oversized result sets.
1406
- * @returns The `MatDialogRef` for the opened dialog, or `undefined` when the user is not logged in
1407
- * or the document ID is invalid.
1405
+ * @param replaceUrl - When provided, after the dialog closes the method calls `window.close()`
1406
+ * if the page was opened by another window, or navigates to this URL otherwise.
1408
1407
  */
1409
- static openDocument(injector: Injector, documentId: string, query?: string, queryChunks?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType, canUseArchive?: boolean, canHandleTooManyResults?: boolean): MatDialogRef<ClipperDocumentComponent> | undefined;
1408
+ static openDocument(injector: Injector, documentId: string, query?: string, queryChunks?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType, canUseArchive?: boolean, canHandleTooManyResults?: boolean, replaceUrl?: string): void;
1410
1409
  /**
1411
1410
  * Extracts the display title from a full document title by stripping any trailing `[...]` suffix.
1412
1411
  * @param title - The full document title, which may contain a bracketed qualifier.