@arsedizioni/ars-utils 18.2.198 → 18.2.199

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.
@@ -768,9 +768,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImpor
768
768
  class ClipperSearchCalendarComponent {
769
769
  constructor() {
770
770
  this.changed = new EventEmitter();
771
+ this.changeDetector = inject(ChangeDetectorRef);
771
772
  this.busy = signal(false);
772
773
  this.months = signal(null);
773
- this.changeDetector = inject(ChangeDetectorRef);
774
774
  this.calendarSpecialDays = null;
775
775
  this.calendarEmptyHeader = CalendarEmptyHeader;
776
776
  this.calendarDate = startOfToday();
@@ -1484,7 +1484,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
1484
1484
  this.title += " - " + this.dialogData.anchorTitle;
1485
1485
  }
1486
1486
  // Use service snapshot
1487
- this.snapshot = this.clipperService.referencesSnapshot ?? { searchParams: new ClipperSearchParams(), interval: "-1" };
1487
+ this.snapshot = this.clipperService.referencesSnapshot() ?? { searchParams: new ClipperSearchParams(), interval: "-1" };
1488
1488
  if (this.filterParams.mode !== this.dialogData.mode ||
1489
1489
  this.filterParams.id !== this.dialogData.documentId ||
1490
1490
  this.filterParams.anchor !== this.dialogData.anchor) {
@@ -1495,7 +1495,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
1495
1495
  this.filterParams.id = this.dialogData.documentId;
1496
1496
  this.filterParams.useModifierInfo = this.dialogData.mode === ClipperQueryReferencesMode.ChangesOut;
1497
1497
  this.filterParams.returnModifierInfo = this.dialogData.mode !== ClipperQueryReferencesMode.ChangesOut;
1498
- this.clipperService.referencesSnapshot = this.snapshot;
1498
+ this.clipperService.referencesSnapshot.set(this.snapshot);
1499
1499
  }
1500
1500
  }
1501
1501
  // Initialize selection
@@ -2969,7 +2969,7 @@ class ClipperBrowserDialogComponent extends ClipperSearchResultManager {
2969
2969
  }
2970
2970
  ngOnInit() {
2971
2971
  // Use service snapshot
2972
- this.snapshot = this.clipperService.snapshot;
2972
+ this.snapshot = this.clipperService.snapshot();
2973
2973
  if (!this.snapshot)
2974
2974
  this.snapshot = {
2975
2975
  searchInfo: null,
@@ -2978,7 +2978,7 @@ class ClipperBrowserDialogComponent extends ClipperSearchResultManager {
2978
2978
  if (!this.filterParams) {
2979
2979
  this.filterParams = new ClipperSearchParams();
2980
2980
  // Store snapshot
2981
- this.clipperService.snapshot = this.snapshot;
2981
+ this.clipperService.snapshot.set(this.snapshot);
2982
2982
  }
2983
2983
  // Initialize selection
2984
2984
  this.selection = new SelectableModel(true, 'documentId');