@arsedizioni/ars-utils 19.4.67 → 19.4.69

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.
@@ -8,6 +8,7 @@ export declare class ClipperDocumentManager {
8
8
  clipperService: ClipperService;
9
9
  protected broadcastService: BroadcastService;
10
10
  protected dialogService: ApplicationDialogService;
11
+ protected canUseArchive: import("@angular/core").WritableSignal<boolean>;
11
12
  /**
12
13
  * Export a document in pdf format
13
14
  * @param item : the document to export
@@ -73,7 +74,7 @@ export declare class ClipperDocumentManager {
73
74
  * @param query : the query document
74
75
  * @param newWindow: true if the document must be open into a new window
75
76
  */
76
- open(_documentId: string | undefined, _query?: string | undefined, _newWindow?: boolean): void;
77
+ open(_documentId?: string, _query?: string, _newWindow?: boolean): void;
77
78
  /**
78
79
  * Display a document report
79
80
  * @param item : the document
@@ -13,7 +13,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
13
13
  private changeDetector;
14
14
  private clipperService;
15
15
  readonly useSelections: import("@angular/core").InputSignal<boolean>;
16
- readonly selectionSource: import("@angular/core").InputSignal<"none" | "selection" | "bag">;
16
+ readonly selectionSource: import("@angular/core").InputSignal<"selection" | "bag" | "none">;
17
17
  protected selection: () => ClipperDocumentInfo[];
18
18
  readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
19
19
  readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
@@ -145,6 +145,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
145
145
  * @param documentId : the document id
146
146
  * @param query: the current query or null
147
147
  * @param newWindow: true if the document must be open into a new window
148
+ * @param canUseArchive: true if archive is available
148
149
  */
149
150
  open(documentId: string, query?: string, newWindow?: boolean): void;
150
151
  /**
@@ -164,6 +164,7 @@ class ClipperDocumentManager {
164
164
  this.clipperService = inject(ClipperService);
165
165
  this.broadcastService = inject(BroadcastService);
166
166
  this.dialogService = inject(ApplicationDialogService);
167
+ this.canUseArchive = signal(false);
167
168
  }
168
169
  /**
169
170
  * Export a document in pdf format
@@ -384,7 +385,7 @@ class ClipperDocumentManager {
384
385
  * @param query : the query document
385
386
  * @param newWindow: true if the document must be open into a new window
386
387
  */
387
- open(_documentId, _query = undefined, _newWindow = false) {
388
+ open(_documentId, _query, _newWindow) {
388
389
  }
389
390
  /**
390
391
  * Display a document report
@@ -415,7 +416,7 @@ class ClipperDocumentManager {
415
416
  restoreFocus: false,
416
417
  disableClose: false,
417
418
  closeOnNavigation: false,
418
- data: { documentId: documentId, mode: mode },
419
+ data: { documentId: documentId, mode: mode, canUseArchive: this.canUseArchive() },
419
420
  minWidth: '375px',
420
421
  maxWidth: '1200px',
421
422
  width: '100%',
@@ -2299,6 +2300,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2299
2300
  * @param documentId : the document id
2300
2301
  * @param query: the current query or null
2301
2302
  * @param newWindow: true if the document must be open into a new window
2303
+ * @param canUseArchive: true if archive is available
2302
2304
  */
2303
2305
  open(documentId, query, newWindow) {
2304
2306
  if (!newWindow)
@@ -2317,7 +2319,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2317
2319
  return;
2318
2320
  ClipperDocumentsUtils.openDocument(this.dialogService.baseService, this.clipperService, documentId, query ?? this.filterParams.expandTextQueryUsingAI
2319
2321
  ? (this.filterParams.augmentedText ?? this.filterParams.text)
2320
- : this.filterParams.text, this.selectionMode(), null, this.themeService.getTheme());
2322
+ : this.filterParams.text, this.selectionMode(), null, this.themeService.getTheme(), this.canUseArchive());
2321
2323
  }
2322
2324
  ///
2323
2325
  // Restorable