@arsedizioni/ars-utils 18.1.80 → 18.1.82

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.
@@ -32,7 +32,7 @@ import { MatSidenavModule } from '@angular/material/sidenav';
32
32
  import { MatTabsModule } from '@angular/material/tabs';
33
33
  import * as i3$1 from '@angular/material/tooltip';
34
34
  import { MatTooltipModule } from '@angular/material/tooltip';
35
- import { ClipperSearchFacetsSnapshot, ClipperFacet, ClipperService, ClipperMessages, ClipperModel, ClipperDocumentSnapshotMode, ClipperModule, ClipperChannels, ClipperSort, ClipperSectors, ClipperRegions, ClipperAuthors, ClipperSectorTypes, ClipperSearchUtils, ClipperModels, ClipperSources, ClipperDocumentChangeReason } from '@arsedizioni/ars-utils/clipper.common';
35
+ import { ClipperSearchFacetsSnapshot, ClipperFacet, ClipperService, ClipperMessages, ClipperModel, ClipperDocumentSnapshotMode, ClipperModule, ClipperSearchParams, ClipperSort, ClipperChannels, ClipperSectors, ClipperRegions, ClipperAuthors, ClipperSectorTypes, ClipperSearchUtils, ClipperModels, ClipperSources, ClipperDocumentChangeReason } from '@arsedizioni/ars-utils/clipper.common';
36
36
  import { SystemUtils, BroadcastService, DateInterval, ScreenService, DateFormat, FormatPipe, SelectableModel, SafeUrlPipe, DateIntervalChangeDirective, SafeHtmlPipe } from '@arsedizioni/ars-utils/core';
37
37
  import * as i6$2 from '@ngbracket/ngx-layout/extended';
38
38
  import { ExtendedModule } from '@ngbracket/ngx-layout/extended';
@@ -65,7 +65,7 @@ class ClipperDocumentMenuComponent {
65
65
  this.selectionSource = input('selection');
66
66
  this.selection = computed(() => {
67
67
  return this.selectionSource() === 'selection'
68
- ? this.parent().selection.all
68
+ ? this.parent().selection?.all
69
69
  : this.parent().clipperService.bag;
70
70
  });
71
71
  this.useSelections = input(false);
@@ -881,10 +881,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
881
881
  this.screenService = inject(ScreenService);
882
882
  this.selection = null;
883
883
  this.snapshot = null;
884
- this.filterParams = {
885
- channels: [...ClipperChannels],
886
- count: 15
887
- };
884
+ this.filterParams = new ClipperSearchParams();
888
885
  this.filterPaneHasBackdrop = false;
889
886
  this.filterPaneClosed = false;
890
887
  this.filterPane2HasBackdrop = false;
@@ -978,7 +975,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
978
975
  * @returns Return the number of selected items
979
976
  */
980
977
  countSelections() {
981
- return (this.selection && this.selection.all?.length > 0) ? this.selection?.all?.length : null;
978
+ return (this.selection && this.selection?.all?.length > 0) ? this.selection?.all?.length : null;
982
979
  }
983
980
  /**
984
981
  * Get the selected id
@@ -1552,7 +1549,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
1552
1549
  * @param item : the item to add
1553
1550
  */
1554
1551
  sendTo(item = null) {
1555
- this.sendItemsTo(item ? [item] : this.selection.all);
1552
+ this.sendItemsTo(item ? [item] : this.selection?.all);
1556
1553
  }
1557
1554
  /**
1558
1555
  * Perform a search