mn-angular-lib 1.0.73 → 1.0.74

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -15,6 +15,15 @@
15
15
  opacity: 0.8;
16
16
  }
17
17
 
18
+ /* Swipe-to-dismiss: animate the spring-back, but follow the finger 1:1 while dragging. */
19
+ .modal-container {
20
+ transition: transform 0.2s ease;
21
+ }
22
+
23
+ .modal-container.sheet-dragging {
24
+ transition: none;
25
+ }
26
+
18
27
  @keyframes fadeIn {
19
28
  from { opacity: 0; }
20
29
  to { opacity: 1; }
@@ -3415,6 +3415,19 @@ declare class MnModalShellComponent<TResult = unknown> implements OnInit, AfterV
3415
3415
  onEscapeKey(event: Event): void;
3416
3416
  onBackdropClick(): void;
3417
3417
  onCloseButtonClick(): void;
3418
+ private static readonly SWIPE_DISMISS_THRESHOLD;
3419
+ /** Current downward drag offset (px) applied to the sheet while swiping. */
3420
+ sheetDragY: number;
3421
+ /** True while the user is actively dragging the grabber (disables snap transition). */
3422
+ isDraggingSheet: boolean;
3423
+ private dragStartY;
3424
+ /** Whether the sheet can be dismissed at all (drives whether the swipe is armed). */
3425
+ private get canClose();
3426
+ onGrabberPointerDown(event: PointerEvent): void;
3427
+ onGrabberPointerMove(event: PointerEvent): void;
3428
+ onGrabberPointerUp(): Promise<void>;
3429
+ /** Attempts to dismiss the modal. Resolves true if it was actually dismissed,
3430
+ * false if blocked by a DISABLED close mode or a rejected close guard. */
3418
3431
  private handleClose;
3419
3432
  get showBackdrop(): boolean;
3420
3433
  get containerSizeClass(): string;