mn-angular-lib 0.0.87 → 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,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Provider, TemplateRef, OnInit, Type, ComponentRef, AfterViewInit, OnDestroy,
|
|
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;
|
|
@@ -3168,13 +3181,18 @@ declare class MnTable<T = any> implements OnInit, OnDestroy, DoCheck {
|
|
|
3168
3181
|
* Attribute directive that applies responsive-hiding classes to table cells/headers.
|
|
3169
3182
|
* Hides the element by default and shows it as `table-cell` at the specified breakpoint.
|
|
3170
3183
|
*
|
|
3184
|
+
* Uses a static class map so Tailwind CSS can detect the full class names at build time.
|
|
3185
|
+
*
|
|
3171
3186
|
* Usage: `<td [mnHiddenBelow]="column.hiddenBelow">`
|
|
3172
3187
|
*/
|
|
3173
3188
|
declare class MnHiddenBelowDirective implements OnChanges {
|
|
3189
|
+
/** The breakpoint below which the element is hidden. */
|
|
3174
3190
|
mnHiddenBelow: 'sm' | 'md' | 'lg' | undefined;
|
|
3175
3191
|
private readonly el;
|
|
3176
3192
|
private readonly renderer;
|
|
3177
3193
|
private appliedClasses;
|
|
3194
|
+
/** Static mapping of breakpoints to their full Tailwind class names. */
|
|
3195
|
+
private readonly classMap;
|
|
3178
3196
|
ngOnChanges(): void;
|
|
3179
3197
|
static ɵfac: i0.ɵɵFactoryDeclaration<MnHiddenBelowDirective, never>;
|
|
3180
3198
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MnHiddenBelowDirective, "[mnHiddenBelow]", never, { "mnHiddenBelow": { "alias": "mnHiddenBelow"; "required": false; }; }, {}, never, never, true, never>;
|