mn-angular-lib 0.0.88 → 0.0.89

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": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Provider, TemplateRef, OnInit, Type, ComponentRef, AfterViewInit, OnDestroy, ElementRef, ChangeDetectorRef, EventEmitter, QueryList, ViewContainerRef, DoCheck, OnChanges, SimpleChanges, PipeTransform } from '@angular/core';
2
+ import { InjectionToken, Provider, TemplateRef, OnInit, ElementRef, Type, ComponentRef, AfterViewInit, OnDestroy, ChangeDetectorRef, EventEmitter, QueryList, ViewContainerRef, DoCheck, OnChanges, SimpleChanges, PipeTransform } from '@angular/core';
3
3
  export { TemplateRef, Type } from '@angular/core';
4
4
  import * as tailwind_variants from 'tailwind-variants';
5
5
  import { VariantProps } from 'tailwind-variants';
@@ -1701,11 +1701,19 @@ declare class MnMultiSelect implements OnInit {
1701
1701
  private readonly elRef;
1702
1702
  private readonly lang;
1703
1703
  private readonly destroyRef;
1704
+ /** Reference to the trigger element for positioning the dropdown */
1705
+ triggerRef: ElementRef<HTMLElement>;
1704
1706
  /** Currently selected values */
1705
1707
  selectedValues: unknown[];
1706
1708
  isOpen: boolean;
1707
1709
  isDisabled: boolean;
1708
1710
  searchTerm: string;
1711
+ /** Dropdown position calculated from trigger bounding rect */
1712
+ dropdownStyle: {
1713
+ top: string;
1714
+ left: string;
1715
+ width: string;
1716
+ };
1709
1717
  private onChange;
1710
1718
  private onTouched;
1711
1719
  private readonly builtInErrorMessages;
@@ -1717,7 +1725,11 @@ declare class MnMultiSelect implements OnInit {
1717
1725
  registerOnTouched(fn: any): void;
1718
1726
  setDisabledState(isDisabled: boolean): void;
1719
1727
  toggle(): void;
1728
+ /** Calculates the fixed position for the dropdown based on the trigger element */
1729
+ private updateDropdownPosition;
1720
1730
  onDocumentClick(event: Event): void;
1731
+ /** Closes the dropdown when the page or a scrollable parent is scrolled */
1732
+ onWindowScrollOrResize(): void;
1721
1733
  toggleOption(option: MnMultiSelectOption): void;
1722
1734
  removeOption(option: MnMultiSelectOption, event: Event): void;
1723
1735
  isSelected(option: MnMultiSelectOption): boolean;
@@ -2867,6 +2879,7 @@ declare class MnModalShellComponent<TResult = any> implements OnInit, AfterViewI
2867
2879
  asCustom(config: any): any;
2868
2880
  asAny(val: any): any;
2869
2881
  get hostClasses(): string;
2882
+ /** Triggers the closing animation. Deferred to avoid NG0100 when called during a CD cycle. */
2870
2883
  startClosing(): Promise<void>;
2871
2884
  onEscapeKey(event: any): void;
2872
2885
  onBackdropClick(): void;