mn-angular-lib 2.0.22 → 2.0.23

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": "2.0.22",
3
+ "version": "2.0.23",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -3079,6 +3079,11 @@ declare class MnDropdown implements OnInit {
3079
3079
  /** Tailwind's `sm` breakpoint — below this the menu renders as a bottom sheet.
3080
3080
  * Kept in step with the same constant in mn-bottom-sheet / mn-multi-select. */
3081
3081
  private static readonly SHEET_MAX_WIDTH;
3082
+ /**
3083
+ * Whether the popover opens rightwards from the trigger's left edge instead of leftwards from
3084
+ * its right edge. Set by {@link fitIntoViewport} when there is no room on the left.
3085
+ */
3086
+ private alignStart;
3082
3087
  /** The anchored popover panel currently moved into `document.body`, if any. */
3083
3088
  private movedPanel;
3084
3089
  /** The bottom-sheet host, for outside-click tests. The sheet owns its own placement. */
@@ -3217,6 +3222,15 @@ declare class MnDropdown implements OnInit {
3217
3222
  */
3218
3223
  selectFirstVisible(): void;
3219
3224
  private updateDropdownPosition;
3225
+ /**
3226
+ * Keeps the opened popover inside the window. It normally hangs leftwards from the trigger's
3227
+ * right edge; near the left edge of the window that pushed it off-screen, so it then opens
3228
+ * rightwards from the trigger's left edge instead, and it never comes closer than 8 px to
3229
+ * either edge. Applied to the element directly as well as to the bound state, in the same pass
3230
+ * the panel appears, so no frame is drawn off-screen first.
3231
+ * @param panel The popover panel, already in the document with its content.
3232
+ */
3233
+ private fitIntoViewport;
3220
3234
  private startWatchingTrigger;
3221
3235
  private stopWatchingTrigger;
3222
3236
  onDocumentClick(event: Event): void;