@arsedizioni/ars-utils 21.2.206 → 21.2.207

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.
@@ -834,7 +834,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
834
834
  class ClipperDocumentComponent extends ClipperDocumentManager {
835
835
  constructor() {
836
836
  super();
837
- this.relevantsPane = viewChild.required('relevantsPane');
837
+ this.relevantsPane = viewChild('relevantsPane', ...(ngDevMode ? [{ debugName: "relevantsPane" }] : /* istanbul ignore next */ []));
838
838
  this.closing = output();
839
839
  this.opening = output();
840
840
  this.destroyRef = inject(DestroyRef);
@@ -3151,6 +3151,16 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
3151
3151
  // Run view-dependent initialization after the first render.
3152
3152
  afterNextRender(() => {
3153
3153
  this.handleFilterPaneVisibility();
3154
+ const filterPane = this.filterPane();
3155
+ if (filterPane) {
3156
+ filterPane.openedChange
3157
+ .pipe(takeUntilDestroyed(this.destroyRef))
3158
+ .subscribe(opened => {
3159
+ if (filterPane.mode === 'over') {
3160
+ this.filterPaneHasBackdrop.set(opened);
3161
+ }
3162
+ });
3163
+ }
3154
3164
  const facets = this.facets();
3155
3165
  if (facets) {
3156
3166
  facets.changed
@@ -3185,7 +3195,7 @@ class ClipperReferencesComponent extends ClipperSearchResultManager {
3185
3195
  }
3186
3196
  filterPane.mode = 'over';
3187
3197
  filterPane.disableClose = false;
3188
- this.filterPaneHasBackdrop.set(true);
3198
+ this.filterPaneHasBackdrop.set(filterPane.opened);
3189
3199
  }
3190
3200
  else {
3191
3201
  if (!this.hasFacets()) {
@@ -3687,7 +3697,20 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
3687
3697
  this.handleFilterPaneVisibility();
3688
3698
  this.filterPane().openedChange
3689
3699
  .pipe(takeUntilDestroyed(this.destroyRef))
3690
- .subscribe(() => this.updateFilterPaneFocus());
3700
+ .subscribe(opened => {
3701
+ this.updateFilterPaneFocus();
3702
+ // Sync backdrop with actual open state when in overlay mode
3703
+ if (this.filterPane().mode === 'over') {
3704
+ this.filterPaneHasBackdrop.set(opened);
3705
+ }
3706
+ });
3707
+ this.filterPane2().openedChange
3708
+ .pipe(takeUntilDestroyed(this.destroyRef))
3709
+ .subscribe(opened => {
3710
+ if (this.filterPane2().mode === 'over') {
3711
+ this.filterPane2HasBackdrop.set(opened);
3712
+ }
3713
+ });
3691
3714
  this.updateFilterPaneFocus();
3692
3715
  this.updateModulesUnreadItems();
3693
3716
  this.modulesChanged();
@@ -3791,7 +3814,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
3791
3814
  }
3792
3815
  filterPane.mode = 'over';
3793
3816
  filterPane.disableClose = false;
3794
- this.filterPaneHasBackdrop.set(true);
3817
+ this.filterPaneHasBackdrop.set(filterPane.opened);
3795
3818
  }
3796
3819
  else {
3797
3820
  if (!filterPane.opened && !this.filterPaneClosed()) {
@@ -3816,7 +3839,7 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
3816
3839
  }
3817
3840
  filterPane2.mode = 'over';
3818
3841
  filterPane2.disableClose = false;
3819
- this.filterPane2HasBackdrop.set(true);
3842
+ this.filterPane2HasBackdrop.set(filterPane2.opened);
3820
3843
  }
3821
3844
  else {
3822
3845
  if (!this.hasFacets()) {