mn-angular-lib 2.0.34 → 2.0.35

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.
Files changed (52) hide show
  1. package/fesm2022/mn-angular-lib-alert.mjs +515 -527
  2. package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
  3. package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
  4. package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
  5. package/fesm2022/mn-angular-lib-button.mjs +819 -382
  6. package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
  7. package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
  8. package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
  9. package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
  10. package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
  11. package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
  12. package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
  13. package/fesm2022/mn-angular-lib-core.mjs +693 -1241
  14. package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
  15. package/fesm2022/mn-angular-lib-display.mjs +679 -712
  16. package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
  17. package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
  18. package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
  19. package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
  20. package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
  21. package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
  22. package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
  23. package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
  24. package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
  25. package/fesm2022/mn-angular-lib-modal.mjs +76 -121
  26. package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
  27. package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
  28. package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
  29. package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
  30. package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
  31. package/fesm2022/mn-angular-lib-tab.mjs +409 -642
  32. package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
  33. package/fesm2022/mn-angular-lib.mjs +16 -29
  34. package/package.json +1 -1
  35. package/types/mn-angular-lib-alert.d.ts +239 -241
  36. package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
  37. package/types/mn-angular-lib-button.d.ts +319 -317
  38. package/types/mn-angular-lib-calendar-core.d.ts +199 -209
  39. package/types/mn-angular-lib-calendar.d.ts +656 -511
  40. package/types/mn-angular-lib-collection.d.ts +1649 -1585
  41. package/types/mn-angular-lib-core.d.ts +524 -535
  42. package/types/mn-angular-lib-display.d.ts +946 -886
  43. package/types/mn-angular-lib-forms.d.ts +3012 -3013
  44. package/types/mn-angular-lib-keyboard.d.ts +125 -85
  45. package/types/mn-angular-lib-modal-core.d.ts +978 -994
  46. package/types/mn-angular-lib-modal-ui.d.ts +541 -493
  47. package/types/mn-angular-lib-modal.d.ts +24 -27
  48. package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
  49. package/types/mn-angular-lib-segmented.d.ts +354 -341
  50. package/types/mn-angular-lib-tab.d.ts +345 -336
  51. package/types/mn-angular-lib.d.ts +16 -16
  52. package/fesm2022/mn-angular-lib.mjs.map +0 -1
@@ -1,136 +1,127 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Provider, TemplateRef } from '@angular/core';
3
- import * as tailwind_variants from 'tailwind-variants';
4
- import { VariantProps } from 'tailwind-variants';
5
- import * as rxjs from 'rxjs';
6
-
7
- declare const mnAlertVariants: tailwind_variants.TVReturnType<{
8
- kind: {
9
- success: string;
10
- info: string;
11
- warning: string;
12
- error: string;
13
- default: string;
14
- accent: string;
15
- };
16
- variant: {
17
- fill: string;
18
- outline: string;
19
- soft: string;
20
- };
1
+ import * as i0 from "@angular/core";
2
+ import { InjectionToken, Provider, TemplateRef } from "@angular/core";
3
+ import { VariantProps } from "tailwind-variants";
4
+ export declare const mnAlertVariants: import("tailwind-variants").TVReturnType<{
5
+ kind: {
6
+ success: "bg-success/10 border-success/30 text-success";
7
+ info: "bg-info/10 border-info/30 text-info";
8
+ warning: "bg-warning/10 border-warning/30 text-warning";
9
+ error: "bg-error/10 border-error/30 text-error";
10
+ default: "bg-base-100 border-base-300 text-base-content";
11
+ accent: "bg-accent/10 border-accent/30 text-accent";
12
+ };
13
+ variant: {
14
+ fill: "";
15
+ outline: "bg-base-200 border-2";
16
+ soft: "border-none shadow-none";
17
+ };
21
18
  }, undefined, "flex items-start gap-3 p-4 border rounded-xl shadow-sm w-full ", {
22
- kind: {
23
- success: string;
24
- info: string;
25
- warning: string;
26
- error: string;
27
- default: string;
28
- accent: string;
29
- };
30
- variant: {
31
- fill: string;
32
- outline: string;
33
- soft: string;
34
- };
35
- }, undefined, tailwind_variants.TVReturnType<{
36
- kind: {
37
- success: string;
38
- info: string;
39
- warning: string;
40
- error: string;
41
- default: string;
42
- accent: string;
43
- };
44
- variant: {
45
- fill: string;
46
- outline: string;
47
- soft: string;
48
- };
49
- }, undefined, "flex items-start gap-3 p-4 border rounded-xl shadow-sm w-full ", unknown, unknown, undefined>>;
50
- type MnAlertVariants = VariantProps<typeof mnAlertVariants>;
51
-
52
- type MnAlertId = string;
53
- type MnAlert = {
54
- id: MnAlertId;
55
- title: string;
56
- subTitle?: string;
57
- icon?: unknown;
58
- cssClass?: string;
59
- duration?: number;
60
- meta?: Record<string, unknown>;
61
- kind: MnAlertKind;
62
- variant?: MnAlertVariants['variant'];
19
+ kind: {
20
+ success: "bg-success/10 border-success/30 text-success";
21
+ info: "bg-info/10 border-info/30 text-info";
22
+ warning: "bg-warning/10 border-warning/30 text-warning";
23
+ error: "bg-error/10 border-error/30 text-error";
24
+ default: "bg-base-100 border-base-300 text-base-content";
25
+ accent: "bg-accent/10 border-accent/30 text-accent";
26
+ };
27
+ variant: {
28
+ fill: "";
29
+ outline: "bg-base-200 border-2";
30
+ soft: "border-none shadow-none";
31
+ };
32
+ }, undefined, import("tailwind-variants").TVReturnTypeLike<{
33
+ kind: {
34
+ success: "bg-success/10 border-success/30 text-success";
35
+ info: "bg-info/10 border-info/30 text-info";
36
+ warning: "bg-warning/10 border-warning/30 text-warning";
37
+ error: "bg-error/10 border-error/30 text-error";
38
+ default: "bg-base-100 border-base-300 text-base-content";
39
+ accent: "bg-accent/10 border-accent/30 text-accent";
40
+ };
41
+ variant: {
42
+ fill: "";
43
+ outline: "bg-base-200 border-2";
44
+ soft: "border-none shadow-none";
45
+ };
46
+ }, undefined>>;
47
+ export type MnAlertVariants = VariantProps<typeof mnAlertVariants>;
48
+ export type MnAlertId = string;
49
+ export type MnAlert = {
50
+ id: MnAlertId;
51
+ title: string;
52
+ subTitle?: string;
53
+ icon?: unknown;
54
+ cssClass?: string;
55
+ duration?: number;
56
+ meta?: Record<string, unknown>;
57
+ kind: MnAlertKind;
58
+ variant?: MnAlertVariants['variant'];
63
59
  };
64
-
65
- type MnAlertKind = 'success' | 'info' | 'warning' | 'error' | 'default';
66
- type MnAlertConfig = {
67
- durations?: Partial<Record<MnAlertKind, number | null>>;
68
- cssClasses?: Partial<Record<MnAlertKind, string>>;
69
- icons?: Partial<Record<MnAlertKind, unknown>>;
70
- fallbackDuration?: number | null;
71
- /**
72
- * How many alerts may be on screen at once. Showing one past this cap drops the oldest
73
- * alert still visible, so a burst of alerts never grows into an unreadable stack.
74
- */
75
- maxVisible?: number;
76
- finalize?: (a: MnAlert) => MnAlert;
60
+ export type MnAlertKind = 'success' | 'info' | 'warning' | 'error' | 'default';
61
+ export type MnAlertConfig = {
62
+ durations?: Partial<Record<MnAlertKind, number | null>>;
63
+ cssClasses?: Partial<Record<MnAlertKind, string>>;
64
+ icons?: Partial<Record<MnAlertKind, unknown>>;
65
+ fallbackDuration?: number | null;
66
+ /**
67
+ * How many alerts may be on screen at once. Showing one past this cap drops the oldest
68
+ * alert still visible, so a burst of alerts never grows into an unreadable stack.
69
+ */
70
+ maxVisible?: number;
71
+ finalize?: (a: MnAlert) => MnAlert;
77
72
  };
78
- declare const MN_ALERT_CONFIG: InjectionToken<MnAlertConfig>;
79
- declare const DEFAULT_MN_ALERT_CONFIG: Required<MnAlertConfig>;
80
-
81
- declare function provideMnAlerts(config?: MnAlertConfig): Provider;
82
-
83
- type MnShowInput = {
84
- title: string;
85
- subTitle?: string;
86
- duration?: number;
87
- icon?: unknown;
88
- cssClass?: string;
89
- meta?: Record<string, unknown>;
90
- kind: MnAlertKind;
91
- variant?: MnAlertVariants['variant'];
73
+ export declare const MN_ALERT_CONFIG: InjectionToken<MnAlertConfig>;
74
+ export declare const DEFAULT_MN_ALERT_CONFIG: Required<MnAlertConfig>;
75
+ export declare function provideMnAlerts(config?: MnAlertConfig): Provider;
76
+ export type MnShowInput = {
77
+ title: string;
78
+ subTitle?: string;
79
+ duration?: number;
80
+ icon?: unknown;
81
+ cssClass?: string;
82
+ meta?: Record<string, unknown>;
83
+ kind: MnAlertKind;
84
+ variant?: MnAlertVariants['variant'];
92
85
  };
93
- declare class MnAlertService {
94
- private readonly store;
95
- private readonly cfg;
96
- private readonly userDurations?;
97
- private readonly hasUserDurations;
98
- constructor();
99
- show(input: MnShowInput): MnAlertId;
100
- success(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
101
- info(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
102
- warning(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
103
- error(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
104
- dismiss(id: MnAlertId): void;
105
- clear(): void;
106
- private kind;
107
- static ɵfac: i0.ɵɵFactoryDeclaration<MnAlertService, never>;
108
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
86
+ export declare class MnAlertService {
87
+ private readonly store;
88
+ private readonly cfg;
89
+ private readonly userDurations?;
90
+ private readonly hasUserDurations;
91
+ constructor();
92
+ show(input: MnShowInput): MnAlertId;
93
+ success(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
94
+ info(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
95
+ warning(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
96
+ error(title: string, subTitle?: string, extra?: Partial<MnShowInput>): string;
97
+ dismiss(id: MnAlertId): void;
98
+ clear(): void;
99
+ private kind;
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnAlertService, never>;
101
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
109
102
  }
110
-
111
- declare class MnAlertStore {
112
- private readonly _alerts$;
113
- readonly alerts$: rxjs.Observable<MnAlert[]>;
114
- /** Host configuration, when the app provided one. Only `maxVisible` is read here — the
115
- * per-kind durations are resolved by {@link MnAlertService} before an alert reaches the store. */
116
- private readonly cfg;
117
- /** In-flight auto-dismiss timers keyed by alert id, so an alert that leaves early (dismissed
118
- * by hand, or pushed out by the visible cap) never fires a stale timeout later. */
119
- private readonly timers;
120
- /** How many alerts stay on screen at once; showing more drops the oldest ones. */
121
- private get maxVisible();
122
- show(partial: Omit<MnAlert, 'id'>): MnAlertId;
123
- dismiss(id: MnAlertId): void;
124
- clear(): void;
125
- private clearTimer;
126
- static ɵfac: i0.ɵɵFactoryDeclaration<MnAlertStore, never>;
127
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
103
+ export declare class MnAlertStore {
104
+ private readonly _alerts$;
105
+ readonly alerts$: import("rxjs").Observable<MnAlert[]>;
106
+ /** Host configuration, when the app provided one. Only `maxVisible` is read here — the
107
+ * per-kind durations are resolved by {@link MnAlertService} before an alert reaches the store. */
108
+ private readonly cfg;
109
+ /** In-flight auto-dismiss timers keyed by alert id, so an alert that leaves early (dismissed
110
+ * by hand, or pushed out by the visible cap) never fires a stale timeout later. */
111
+ private readonly timers;
112
+ /** How many alerts stay on screen at once; showing more drops the oldest ones. */
113
+ private get maxVisible();
114
+ show(partial: Omit<MnAlert, 'id'>): MnAlertId;
115
+ dismiss(id: MnAlertId): void;
116
+ clear(): void;
117
+ private clearTimer;
118
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnAlertStore, never>;
119
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
128
120
  }
129
-
130
- type MnAlertTemplateContext = {
131
- $implicit: MnAlert;
132
- alert: MnAlert;
133
- dismiss: () => void;
121
+ export type MnAlertTemplateContext = {
122
+ $implicit: MnAlert;
123
+ alert: MnAlert;
124
+ dismiss: () => void;
134
125
  };
135
126
  /**
136
127
  * A view-owned wrapper around a single {@link MnAlert}. The store's list is the source
@@ -139,120 +130,127 @@ type MnAlertTemplateContext = {
139
130
  * node is actually dropped, rather than vanishing instantly.
140
131
  */
141
132
  type MnAlertView = {
142
- alert: MnAlert;
143
- /** True once the alert has left the store — the node is animating out and will be removed. */
144
- leaving: boolean;
145
- /** True while the user is actively dragging this card (disables the snap transition). */
146
- dragging: boolean;
147
- /** Live drag offset (px) along the active swipe axis while swiping. */
148
- drag: number;
149
- /** Final offset (px) along the swipe axis the card flings to when a swipe dismisses it. */
150
- fling: number;
133
+ alert: MnAlert;
134
+ /** True once the alert has left the store — the node is animating out and will be removed. */
135
+ leaving: boolean;
136
+ /** True while the user is actively dragging this card (disables the snap transition). */
137
+ dragging: boolean;
138
+ /** Live drag offset (px) along the active swipe axis while swiping. */
139
+ drag: number;
140
+ /** Final offset (px) along the swipe axis the card flings to when a swipe dismisses it. */
141
+ fling: number;
151
142
  };
152
- declare class MnAlertOutletComponent {
153
- private readonly lang;
154
- private readonly store;
155
- private readonly destroyRef;
156
- /** Drag distance (px) past which a release dismisses regardless of speed. */
157
- private static readonly SWIPE_DISMISS_THRESHOLD;
158
- /** Release speed (px/ms) above which a short drag still dismisses — a "flick". */
159
- private static readonly FLICK_VELOCITY;
160
- /** Minimum drag distance (px) a flick must cover, so an incidental fast tap never dismisses. */
161
- private static readonly FLICK_MIN_DISTANCE;
162
- /** Upper bound for the leave wait; kept a touch longer than the CSS exit so removal never
163
- * preempts the animation. Mirrored by the `--mn-alert-exit` duration in the stylesheet. */
164
- private static readonly EXIT_MS;
165
- /** Opacity floor a card fades to at the dismiss threshold, for drag feedback. */
166
- private static readonly DRAG_OPACITY_FLOOR;
167
- /**
168
- * How the dismiss swipe is oriented:
169
- * - `'auto'` (default) matches the host platform's convention — Apple platforms
170
- * (iOS/iPadOS/macOS) flick a top banner *upward*, so we swipe vertically; Android (and
171
- * every other platform) dismisses toasts *to the right*, so we swipe horizontally.
172
- *
173
- * Either axis is one-directional: only an upward (vertical) or rightward (horizontal)
174
- * drag dismisses; dragging the opposite way springs the card back.
175
- * - `'vertical'` / `'horizontal'` force the axis regardless of platform. Useful when the
176
- * host can't be sniffed reliably (e.g. Chrome DevTools *Responsive* mode does not spoof
177
- * the user agent, so `'auto'` there resolves to the desktop/Android horizontal axis).
178
- */
179
- swipeAxis: 'auto' | 'vertical' | 'horizontal';
180
- /** Whether the running device is an Apple platform. Sniffed once from `navigator` at
181
- * construction (the UA is read at page load and does not change mid-session). */
182
- private readonly isApple;
183
- /** The resolved swipe axis: the explicit {@link swipeAxis} override, or the platform
184
- * default when left on `'auto'`. */
185
- private get vertical();
186
- /**
187
- * Accessible name for this control. Resolved through the conventional
188
- * `mnAlert.close` key so an app can translate it, falling back to English when the
189
- * key is not defined rather than leaking the raw key into the UI.
190
- */
191
- get closeLabel(): string;
192
- template?: TemplateRef<MnAlertTemplateContext>;
193
- /** The view-layer mirror of the store's alerts, retaining alerts mid-leave. A signal so
194
- * writes from the (external) store subscription and leave timers schedule change
195
- * detection in a zoneless app. */
196
- readonly views: i0.WritableSignal<MnAlertView[]>;
197
- /**
198
- * `touch-action` for the swipe wrapper: reserve the swipe axis for our gesture while
199
- * leaving the cross-axis to the browser. Vertical swipe (Apple) claims the Y axis
200
- * (`pan-x`); horizontal swipe (Android/other) claims the X axis (`pan-y`).
201
- */
202
- get touchAction(): string;
203
- /** In-flight leave-removal timers, keyed by alert id, cleared on destroy so a fired
204
- * timer never touches a torn-down view. */
205
- private readonly exitTimers;
206
- /** The single active swipe, or null. Only one card is dragged at a time. `startCoord`
207
- * and the samples are taken along the active axis (Y when vertical, else X). */
208
- private activeDrag;
209
- constructor();
210
- trackById: (_: number, v: MnAlertView) => string;
211
- getAlertClasses(a: MnAlert): string;
212
- /**
213
- * The lifetime (ms) to run the countdown bar over, or null when no bar should show: an alert
214
- * that never auto-dismisses has nothing to count down, and one already leaving would only
215
- * restart the animation mid-exit.
216
- */
217
- countdownDuration(v: MnAlertView): number | null;
218
- contextFor(a: MnAlert): {
219
- readonly $implicit: MnAlert;
220
- readonly alert: MnAlert;
221
- readonly dismiss: () => void;
143
+ export declare class MnAlertOutletComponent {
144
+ private readonly lang;
145
+ private readonly store;
146
+ private readonly destroyRef;
147
+ /** Drag distance (px) past which a release dismisses regardless of speed. */
148
+ private static readonly SWIPE_DISMISS_THRESHOLD;
149
+ /** Release speed (px/ms) above which a short drag still dismisses — a "flick". */
150
+ private static readonly FLICK_VELOCITY;
151
+ /** Minimum drag distance (px) a flick must cover, so an incidental fast tap never dismisses. */
152
+ private static readonly FLICK_MIN_DISTANCE;
153
+ /** Upper bound for the leave wait; kept a touch longer than the CSS exit so removal never
154
+ * preempts the animation. Mirrored by the `--mn-alert-exit` duration in the stylesheet. */
155
+ private static readonly EXIT_MS;
156
+ /** Opacity floor a card fades to at the dismiss threshold, for drag feedback. */
157
+ private static readonly DRAG_OPACITY_FLOOR;
158
+ /**
159
+ * How the dismiss swipe is oriented:
160
+ * - `'auto'` (default) matches the host platform's convention — Apple platforms
161
+ * (iOS/iPadOS/macOS) flick a top banner *upward*, so we swipe vertically; Android (and
162
+ * every other platform) dismisses toasts *to the right*, so we swipe horizontally.
163
+ *
164
+ * Either axis is one-directional: only an upward (vertical) or rightward (horizontal)
165
+ * drag dismisses; dragging the opposite way springs the card back.
166
+ * - `'vertical'` / `'horizontal'` force the axis regardless of platform. Useful when the
167
+ * host can't be sniffed reliably (e.g. Chrome DevTools *Responsive* mode does not spoof
168
+ * the user agent, so `'auto'` there resolves to the desktop/Android horizontal axis).
169
+ */
170
+ swipeAxis: 'auto' | 'vertical' | 'horizontal';
171
+ /** Whether the running device is an Apple platform. Sniffed once from `navigator` at
172
+ * construction (the UA is read at page load and does not change mid-session). */
173
+ private readonly isApple;
174
+ /** The resolved swipe axis: the explicit {@link swipeAxis} override, or the platform
175
+ * default when left on `'auto'`. */
176
+ private get vertical();
177
+ /**
178
+ * Accessible name for this control. Resolved through the conventional
179
+ * `mnAlert.close` key so an app can translate it, falling back to English when the
180
+ * key is not defined rather than leaking the raw key into the UI.
181
+ */
182
+ get closeLabel(): string;
183
+ template?: TemplateRef<MnAlertTemplateContext>;
184
+ /** The view-layer mirror of the store's alerts, retaining alerts mid-leave. A signal so
185
+ * writes from the (external) store subscription and leave timers schedule change
186
+ * detection in a zoneless app. */
187
+ readonly views: import("@angular/core").WritableSignal<MnAlertView[]>;
188
+ /**
189
+ * `touch-action` for the swipe wrapper: reserve the swipe axis for our gesture while
190
+ * leaving the cross-axis to the browser. Vertical swipe (Apple) claims the Y axis
191
+ * (`pan-x`); horizontal swipe (Android/other) claims the X axis (`pan-y`).
192
+ */
193
+ get touchAction(): string;
194
+ /** In-flight leave-removal timers, keyed by alert id, cleared on destroy so a fired
195
+ * timer never touches a torn-down view. */
196
+ private readonly exitTimers;
197
+ /** The single active swipe, or null. Only one card is dragged at a time. `startCoord`
198
+ * and the samples are taken along the active axis (Y when vertical, else X). */
199
+ private activeDrag;
200
+ constructor();
201
+ trackById: (_: number, v: MnAlertView) => string;
202
+ getAlertClasses(a: MnAlert): string;
203
+ /**
204
+ * The lifetime (ms) to run the countdown bar over, or null when no bar should show: an alert
205
+ * that never auto-dismisses has nothing to count down, and one already leaving would only
206
+ * restart the animation mid-exit.
207
+ */
208
+ countdownDuration(v: MnAlertView): number | null;
209
+ contextFor(a: MnAlert): {
210
+ readonly $implicit: MnAlert;
211
+ readonly alert: MnAlert;
212
+ readonly dismiss: () => void;
213
+ };
214
+ /** Dismisses via the store; the store's removal is turned into a leave animation by
215
+ * {@link sync}. Used by the close button and the custom-template `dismiss` context. */
216
+ dismissAlert(id: MnAlertId): void;
217
+ /** Reconciles the view list against the store: appends new alerts, updates the alert
218
+ * reference for still-present ones, and marks vanished ones as leaving (they stay in the
219
+ * list, animating out, until their removal timer fires). */
220
+ private sync;
221
+ /** Flags a view as leaving and schedules its removal once the exit animation has run.
222
+ * Idempotent: a card already leaving (e.g. flung by a swipe) is left untouched, so a
223
+ * synchronous store re-emit cannot overwrite the swipe direction with the default fade. */
224
+ private beginLeave;
225
+ private removeView;
226
+ onPointerDown(event: PointerEvent, v: MnAlertView): void;
227
+ onPointerMove(event: PointerEvent, v: MnAlertView): void;
228
+ onPointerUp(event: PointerEvent, v: MnAlertView): void;
229
+ private shouldDismiss;
230
+ /** Offset transform for a card: the fling target while leaving via swipe, otherwise the
231
+ * live drag offset, translated along the active axis. Returns null when neither applies,
232
+ * letting the stylesheet own the default (fade-in-place) leave. */
233
+ itemTransform(v: MnAlertView): string | null;
234
+ /** Fades a card toward a floor as it is dragged toward the dismiss threshold. Null (CSS
235
+ * owns opacity) when at rest or leaving. */
236
+ itemOpacity(v: MnAlertView): number | null;
237
+ private translate;
238
+ private axisCoord;
239
+ private viewportExtent;
240
+ /** Whether the current device runs an Apple OS (iOS/iPadOS/macOS). iPadOS 13+ masquerades
241
+ * as a Mac, so it is caught by the touch-capable-Mac branch. */
242
+ private detectApple;
243
+ private prefersReducedMotion;
244
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnAlertOutletComponent, never>;
245
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnAlertOutletComponent, "mn-alert-outlet", never, {
246
+ "swipeAxis": {
247
+ "alias": "swipeAxis";
248
+ "required": false;
249
+ };
250
+ "template": {
251
+ "alias": "template";
252
+ "required": false;
222
253
  };
223
- /** Dismisses via the store; the store's removal is turned into a leave animation by
224
- * {@link sync}. Used by the close button and the custom-template `dismiss` context. */
225
- dismissAlert(id: MnAlertId): void;
226
- /** Reconciles the view list against the store: appends new alerts, updates the alert
227
- * reference for still-present ones, and marks vanished ones as leaving (they stay in the
228
- * list, animating out, until their removal timer fires). */
229
- private sync;
230
- /** Flags a view as leaving and schedules its removal once the exit animation has run.
231
- * Idempotent: a card already leaving (e.g. flung by a swipe) is left untouched, so a
232
- * synchronous store re-emit cannot overwrite the swipe direction with the default fade. */
233
- private beginLeave;
234
- private removeView;
235
- onPointerDown(event: PointerEvent, v: MnAlertView): void;
236
- onPointerMove(event: PointerEvent, v: MnAlertView): void;
237
- onPointerUp(event: PointerEvent, v: MnAlertView): void;
238
- private shouldDismiss;
239
- /** Offset transform for a card: the fling target while leaving via swipe, otherwise the
240
- * live drag offset, translated along the active axis. Returns null when neither applies,
241
- * letting the stylesheet own the default (fade-in-place) leave. */
242
- itemTransform(v: MnAlertView): string | null;
243
- /** Fades a card toward a floor as it is dragged toward the dismiss threshold. Null (CSS
244
- * owns opacity) when at rest or leaving. */
245
- itemOpacity(v: MnAlertView): number | null;
246
- private translate;
247
- private axisCoord;
248
- private viewportExtent;
249
- /** Whether the current device runs an Apple OS (iOS/iPadOS/macOS). iPadOS 13+ masquerades
250
- * as a Mac, so it is caught by the touch-capable-Mac branch. */
251
- private detectApple;
252
- private prefersReducedMotion;
253
- static ɵfac: i0.ɵɵFactoryDeclaration<MnAlertOutletComponent, never>;
254
- static ɵcmp: i0.ɵɵComponentDeclaration<MnAlertOutletComponent, "mn-alert-outlet", never, { "swipeAxis": { "alias": "swipeAxis"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never>;
254
+ }, {}, never, never, true, never>;
255
255
  }
256
-
257
- export { DEFAULT_MN_ALERT_CONFIG, MN_ALERT_CONFIG, MnAlertOutletComponent, MnAlertService, MnAlertStore, mnAlertVariants, provideMnAlerts };
258
- export type { MnAlert, MnAlertConfig, MnAlertId, MnAlertKind, MnAlertTemplateContext, MnAlertVariants, MnShowInput };
256
+ export {};