@arsedizioni/ars-utils 21.0.21 → 21.0.22
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.
|
@@ -165,6 +165,7 @@ class ClipperDocumentManager {
|
|
|
165
165
|
this.broadcastService = inject(BroadcastService);
|
|
166
166
|
this.dialogService = inject(ApplicationDialogService);
|
|
167
167
|
this.canUseArchive = signal(false, ...(ngDevMode ? [{ debugName: "canUseArchive" }] : []));
|
|
168
|
+
this.canHandleTooManyResults = signal(false, ...(ngDevMode ? [{ debugName: "canHandleTooManyResults" }] : []));
|
|
168
169
|
}
|
|
169
170
|
/**
|
|
170
171
|
* Export a document in pdf format
|
|
@@ -416,7 +417,12 @@ class ClipperDocumentManager {
|
|
|
416
417
|
restoreFocus: false,
|
|
417
418
|
disableClose: false,
|
|
418
419
|
closeOnNavigation: false,
|
|
419
|
-
data: {
|
|
420
|
+
data: {
|
|
421
|
+
documentId: documentId,
|
|
422
|
+
mode: mode,
|
|
423
|
+
canUseArchive: this.canUseArchive(),
|
|
424
|
+
canHandleTooManyResults: this.canHandleTooManyResults()
|
|
425
|
+
},
|
|
420
426
|
minWidth: '375px',
|
|
421
427
|
maxWidth: '1200px',
|
|
422
428
|
width: '100%',
|
|
@@ -1434,7 +1440,8 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1434
1440
|
anchor: anchor,
|
|
1435
1441
|
anchorTitle: anchorTitle,
|
|
1436
1442
|
update: update,
|
|
1437
|
-
canUseArchive: this.dialogData.canUseArchive
|
|
1443
|
+
canUseArchive: this.dialogData.canUseArchive,
|
|
1444
|
+
canHandleTooManyResults: this.dialogData.canHandleTooManyResults
|
|
1438
1445
|
},
|
|
1439
1446
|
minWidth: '375px',
|
|
1440
1447
|
maxWidth: '1200px',
|
|
@@ -1515,8 +1522,9 @@ class ClipperDocumentsUtils {
|
|
|
1515
1522
|
* @param selectableModules : the clipper selectable modules
|
|
1516
1523
|
* @param theme: the theme to use. Default is system
|
|
1517
1524
|
* @param canUseArchive: ture if archive is available
|
|
1525
|
+
* @param canHandleTooManyResults: true if the component should handle too many results
|
|
1518
1526
|
*/
|
|
1519
|
-
static openDocument(dialogService, clipperService, documentId, query, selectionMode, selectableModules, theme, canUseArchive) {
|
|
1527
|
+
static openDocument(dialogService, clipperService, documentId, query, selectionMode, selectableModules, theme, canUseArchive, canHandleTooManyResults) {
|
|
1520
1528
|
if (!clipperService.loggedIn()) {
|
|
1521
1529
|
dialogService.error("Clipper non è disponibile in questo momento. Verifica la connessione.");
|
|
1522
1530
|
return undefined;
|
|
@@ -1536,7 +1544,8 @@ class ClipperDocumentsUtils {
|
|
|
1536
1544
|
selectionMode: selectionMode,
|
|
1537
1545
|
selectableModules: selectableModules,
|
|
1538
1546
|
theme: theme,
|
|
1539
|
-
canUseArchive: canUseArchive
|
|
1547
|
+
canUseArchive: canUseArchive,
|
|
1548
|
+
canHandleTooManyResults: canHandleTooManyResults
|
|
1540
1549
|
},
|
|
1541
1550
|
minWidth: '375px',
|
|
1542
1551
|
maxWidth: '1400px',
|