@arsedizioni/ars-utils 19.2.4 → 19.2.6

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.
@@ -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<"selection" | "bag" | "none">;
16
+ readonly selectionSource: import("@angular/core").InputSignal<"none" | "selection" | "bag">;
17
17
  protected selection: () => ClipperDocumentInfo[];
18
18
  readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
19
19
  readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
@@ -2129,7 +2129,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2129
2129
  }
2130
2130
  }
2131
2131
  if (groupByYear) {
2132
- const d = this.filterParams.models?.length > 1
2132
+ const d = params.sortMode === ClipperSort.SourceDateAsc
2133
2133
  ? n.publishingDate
2134
2134
  : n.date;
2135
2135
  const year = SystemUtils.formatDate(d, DateFormat.LongMonthAndYear).toLowerCase();
@@ -3949,8 +3949,8 @@ class ClipperBrowserDialogComponent {
3949
3949
  */
3950
3950
  select() {
3951
3951
  const selection = this.clipperBrowser().selection;
3952
- if (selection?.current.selected && selection?.current.selected.length > 0) {
3953
- this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, selection?.current.selected);
3952
+ if (selection?.all && selection?.all.length > 0) {
3953
+ this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, selection?.all);
3954
3954
  this.changeDetector.markForCheck();
3955
3955
  this.dialogRef.close();
3956
3956
  }