@arsedizioni/ars-utils 19.2.13 → 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
  }
@@ -2861,7 +2861,8 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
2861
2861
  });
2862
2862
  this.isLaws = (allowEmpty = true) => {
2863
2863
  return (allowEmpty && this.filterParams.modules && this.filterParams.modules.length === 0) || (this.filterParams.modules?.findIndex(x => x.value === ClipperModule.GazzetteBollettiniEFontiDiverse ||
2864
- x.value === ClipperModule.NormativaVigente) !== -1);
2864
+ x.value === ClipperModule.NormativaVigente ||
2865
+ x.value === ClipperModule.GiurisprudenzaRecente) !== -1);
2865
2866
  };
2866
2867
  this.isReadable = () => {
2867
2868
  return ((this.canSearch() && this.filterParams.modules?.length === 0) ||
@@ -3934,7 +3935,7 @@ class ClipperBrowserDialogComponent {
3934
3935
  if (message.id === ClipperMessages.DOCUMENT_SELECTED_INNER) {
3935
3936
  const document = this.clipperBrowser().getSnapshotDocument(message.data.documentId || message.data.id);
3936
3937
  if (document) {
3937
- this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, [document]);
3938
+ this.broadcastService.sendMessage(this.dialogData.selectionMessage ?? ClipperMessages.DOCUMENT_SELECTED, [document]);
3938
3939
  this.changeDetector.markForCheck();
3939
3940
  this.dialogRef.close();
3940
3941
  }
@@ -3973,7 +3974,7 @@ class ClipperBrowserDialogComponent {
3973
3974
  select() {
3974
3975
  const selection = this.clipperBrowser().selection;
3975
3976
  if (selection?.all && selection?.all.length > 0) {
3976
- this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, selection?.all);
3977
+ this.broadcastService.sendMessage(this.dialogData.selectionMessage ?? ClipperMessages.DOCUMENT_SELECTED, selection?.all);
3977
3978
  this.changeDetector.markForCheck();
3978
3979
  this.dialogRef.close();
3979
3980
  }