@arsedizioni/ars-utils 19.2.14 → 19.2.15
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.
|
@@ -7,6 +7,7 @@ export interface ClipperBrowserDialogData {
|
|
|
7
7
|
showChannels?: boolean | null;
|
|
8
8
|
selectionMode?: ClipperSelectionMode | null;
|
|
9
9
|
selectableModules?: ClipperModule[] | null;
|
|
10
|
+
selectionMessage?: string | null;
|
|
10
11
|
initialModule?: number | null;
|
|
11
12
|
theme?: ThemeType | null;
|
|
12
13
|
}
|
|
@@ -3935,7 +3935,7 @@ class ClipperBrowserDialogComponent {
|
|
|
3935
3935
|
if (message.id === ClipperMessages.DOCUMENT_SELECTED_INNER) {
|
|
3936
3936
|
const document = this.clipperBrowser().getSnapshotDocument(message.data.documentId || message.data.id);
|
|
3937
3937
|
if (document) {
|
|
3938
|
-
this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, [document]);
|
|
3938
|
+
this.broadcastService.sendMessage(this.dialogData.selectionMessage ?? ClipperMessages.DOCUMENT_SELECTED, [document]);
|
|
3939
3939
|
this.changeDetector.markForCheck();
|
|
3940
3940
|
this.dialogRef.close();
|
|
3941
3941
|
}
|
|
@@ -3974,7 +3974,7 @@ class ClipperBrowserDialogComponent {
|
|
|
3974
3974
|
select() {
|
|
3975
3975
|
const selection = this.clipperBrowser().selection;
|
|
3976
3976
|
if (selection?.all && selection?.all.length > 0) {
|
|
3977
|
-
this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, selection?.all);
|
|
3977
|
+
this.broadcastService.sendMessage(this.dialogData.selectionMessage ?? ClipperMessages.DOCUMENT_SELECTED, selection?.all);
|
|
3978
3978
|
this.changeDetector.markForCheck();
|
|
3979
3979
|
this.dialogRef.close();
|
|
3980
3980
|
}
|