@arsedizioni/ars-utils 19.4.66 → 19.4.68
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/clipper.ui/documents.d.ts +2 -1
- package/clipper.ui/ui/document-manager/document-manager.d.ts +2 -1
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +1 -0
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +9 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +12 -12
|
@@ -13,8 +13,9 @@ export declare class ClipperDocumentsUtils {
|
|
|
13
13
|
* @param selectionMode : the clipper selection mode
|
|
14
14
|
* @param selectableModules : the clipper selectable modules
|
|
15
15
|
* @param theme: the theme to use. Default is system
|
|
16
|
+
* @param canUseArchive: ture if archive is available
|
|
16
17
|
*/
|
|
17
|
-
static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType): MatDialogRef<ClipperDocumentComponent> | undefined;
|
|
18
|
+
static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType, canUseArchive?: boolean): MatDialogRef<ClipperDocumentComponent> | undefined;
|
|
18
19
|
/**
|
|
19
20
|
* Extract document title
|
|
20
21
|
* @param title : the full document title
|
|
@@ -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
|
|
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<"
|
|
16
|
+
readonly selectionSource: import("@angular/core").InputSignal<"bag" | "selection" | "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
|
|
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%',
|
|
@@ -1498,8 +1499,9 @@ class ClipperDocumentsUtils {
|
|
|
1498
1499
|
* @param selectionMode : the clipper selection mode
|
|
1499
1500
|
* @param selectableModules : the clipper selectable modules
|
|
1500
1501
|
* @param theme: the theme to use. Default is system
|
|
1502
|
+
* @param canUseArchive: ture if archive is available
|
|
1501
1503
|
*/
|
|
1502
|
-
static openDocument(dialogService, clipperService, documentId, query, selectionMode, selectableModules, theme) {
|
|
1504
|
+
static openDocument(dialogService, clipperService, documentId, query, selectionMode, selectableModules, theme, canUseArchive) {
|
|
1503
1505
|
if (!clipperService.loggedIn()) {
|
|
1504
1506
|
dialogService.error("Clipper non è disponibile in questo momento. Verifica la connessione.");
|
|
1505
1507
|
return undefined;
|
|
@@ -1518,7 +1520,8 @@ class ClipperDocumentsUtils {
|
|
|
1518
1520
|
query: query,
|
|
1519
1521
|
selectionMode: selectionMode,
|
|
1520
1522
|
selectableModules: selectableModules,
|
|
1521
|
-
theme: theme
|
|
1523
|
+
theme: theme,
|
|
1524
|
+
canUseArchive: canUseArchive
|
|
1522
1525
|
},
|
|
1523
1526
|
minWidth: '375px',
|
|
1524
1527
|
maxWidth: '1400px',
|
|
@@ -2297,6 +2300,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
2297
2300
|
* @param documentId : the document id
|
|
2298
2301
|
* @param query: the current query or null
|
|
2299
2302
|
* @param newWindow: true if the document must be open into a new window
|
|
2303
|
+
* @param canUseArchive: true if archive is available
|
|
2300
2304
|
*/
|
|
2301
2305
|
open(documentId, query, newWindow) {
|
|
2302
2306
|
if (!newWindow)
|
|
@@ -2315,7 +2319,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
2315
2319
|
return;
|
|
2316
2320
|
ClipperDocumentsUtils.openDocument(this.dialogService.baseService, this.clipperService, documentId, query ?? this.filterParams.expandTextQueryUsingAI
|
|
2317
2321
|
? (this.filterParams.augmentedText ?? this.filterParams.text)
|
|
2318
|
-
: this.filterParams.text, this.selectionMode(), null, this.themeService.getTheme());
|
|
2322
|
+
: this.filterParams.text, this.selectionMode(), null, this.themeService.getTheme(), this.canUseArchive());
|
|
2319
2323
|
}
|
|
2320
2324
|
///
|
|
2321
2325
|
// Restorable
|