mn-angular-lib 1.0.100 → 1.0.101

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.
@@ -6640,7 +6640,14 @@ class MnModalShellComponent {
6640
6640
  config;
6641
6641
  modalRef;
6642
6642
  isClosing = false;
6643
- isStacked = false;
6643
+ /**
6644
+ * Whether another modal is stacked on top of this one. Set imperatively by
6645
+ * `MnModalService` on the already-rendered shell below the newly opened one, so it must
6646
+ * be a signal: mutating a plain field there changes the host `[class]` after the view was
6647
+ * checked (NG0100 ExpressionChangedAfterItHasBeenChecked) and does not schedule change
6648
+ * detection in a zoneless app. A signal write both notifies the host binding and schedules CD.
6649
+ */
6650
+ isStacked = signal(false, ...(ngDevMode ? [{ debugName: "isStacked" }] : []));
6644
6651
  ModalKind = ModalKind;
6645
6652
  previouslyFocusedElement = null;
6646
6653
  focusTrapListener = null;
@@ -6815,7 +6822,7 @@ class MnModalShellComponent {
6815
6822
  ? this.config.animation
6816
6823
  : this.config.animation?.type || 'slide';
6817
6824
  const animation = ` anim-${animType}`;
6818
- const stacked = this.isStacked ? ' is-stacked' : '';
6825
+ const stacked = this.isStacked() ? ' is-stacked' : '';
6819
6826
  const mobileSheet = this.isMobileSheet ? ' mobile-sheet' : '';
6820
6827
  const swiping = this.swipeDismissing ? ' swipe-dismissing' : '';
6821
6828
  return `modal-shell modal-${size}${animation}${stacked}${mobileSheet}${swiping}`;
@@ -7080,7 +7087,7 @@ class MnModalService {
7080
7087
  // Update stack and dim previous modal
7081
7088
  if (this.modalStack.length > 0) {
7082
7089
  const prevModal = this.modalStack[this.modalStack.length - 1];
7083
- prevModal.component.isStacked = true;
7090
+ prevModal.component.isStacked.set(true);
7084
7091
  }
7085
7092
  this.modalStack.push(modalRef);
7086
7093
  // Attach to application
@@ -7097,7 +7104,7 @@ class MnModalService {
7097
7104
  this.modalStack.splice(index, 1);
7098
7105
  if (this.modalStack.length > 0) {
7099
7106
  const topModal = this.modalStack[this.modalStack.length - 1];
7100
- topModal.component.isStacked = false;
7107
+ topModal.component.isStacked.set(false);
7101
7108
  }
7102
7109
  }
7103
7110
  });