@arsedizioni/ars-utils 19.2.14 → 19.2.16
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
|
}
|
|
@@ -1363,8 +1363,9 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1363
1363
|
this.dialogService.error(r.message);
|
|
1364
1364
|
}
|
|
1365
1365
|
else {
|
|
1366
|
-
if (r.value && r.value.length > 1)
|
|
1367
|
-
this.dialogService.info(r.value.replace(/\n/g, '<br>\r\n'), "Commento", "Chiudi", 700);
|
|
1366
|
+
if (r.value && r.value.length > 1) {
|
|
1367
|
+
this.dialogService.info(r.value.replace(/\n/g, '<br>\r\n').replace(/<\/p><br>\r\n/g, '</p>\r\n'), "Commento", "Chiudi", 700);
|
|
1368
|
+
}
|
|
1368
1369
|
else
|
|
1369
1370
|
this.dialogService.info("Commento non più disponibile o in fase di revisione.");
|
|
1370
1371
|
}
|
|
@@ -3935,7 +3936,7 @@ class ClipperBrowserDialogComponent {
|
|
|
3935
3936
|
if (message.id === ClipperMessages.DOCUMENT_SELECTED_INNER) {
|
|
3936
3937
|
const document = this.clipperBrowser().getSnapshotDocument(message.data.documentId || message.data.id);
|
|
3937
3938
|
if (document) {
|
|
3938
|
-
this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, [document]);
|
|
3939
|
+
this.broadcastService.sendMessage(this.dialogData.selectionMessage ?? ClipperMessages.DOCUMENT_SELECTED, [document]);
|
|
3939
3940
|
this.changeDetector.markForCheck();
|
|
3940
3941
|
this.dialogRef.close();
|
|
3941
3942
|
}
|
|
@@ -3974,7 +3975,7 @@ class ClipperBrowserDialogComponent {
|
|
|
3974
3975
|
select() {
|
|
3975
3976
|
const selection = this.clipperBrowser().selection;
|
|
3976
3977
|
if (selection?.all && selection?.all.length > 0) {
|
|
3977
|
-
this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, selection?.all);
|
|
3978
|
+
this.broadcastService.sendMessage(this.dialogData.selectionMessage ?? ClipperMessages.DOCUMENT_SELECTED, selection?.all);
|
|
3978
3979
|
this.changeDetector.markForCheck();
|
|
3979
3980
|
this.dialogRef.close();
|
|
3980
3981
|
}
|