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.
- package/fesm2022/mn-angular-lib-alert.mjs +515 -527
- package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
- package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-button.mjs +819 -382
- package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
- package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
- package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
- package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-core.mjs +693 -1241
- package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-display.mjs +679 -712
- package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
- package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
- package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
- package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
- package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-modal.mjs +76 -121
- package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
- package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
- package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
- package/fesm2022/mn-angular-lib-tab.mjs +409 -642
- package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
- package/fesm2022/mn-angular-lib.mjs +16 -29
- package/package.json +1 -1
- package/types/mn-angular-lib-alert.d.ts +239 -241
- package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
- package/types/mn-angular-lib-button.d.ts +319 -317
- package/types/mn-angular-lib-calendar-core.d.ts +199 -209
- package/types/mn-angular-lib-calendar.d.ts +656 -511
- package/types/mn-angular-lib-collection.d.ts +1649 -1585
- package/types/mn-angular-lib-core.d.ts +524 -535
- package/types/mn-angular-lib-display.d.ts +946 -886
- package/types/mn-angular-lib-forms.d.ts +3012 -3013
- package/types/mn-angular-lib-keyboard.d.ts +125 -85
- package/types/mn-angular-lib-modal-core.d.ts +978 -994
- package/types/mn-angular-lib-modal-ui.d.ts +541 -493
- package/types/mn-angular-lib-modal.d.ts +24 -27
- package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
- package/types/mn-angular-lib-segmented.d.ts +354 -341
- package/types/mn-angular-lib-tab.d.ts +345 -336
- package/types/mn-angular-lib.d.ts +16 -16
- package/fesm2022/mn-angular-lib.mjs.map +0 -1
|
@@ -1,136 +1,127 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { InjectionToken, Provider, TemplateRef } from
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, undefined,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, undefined
|
|
50
|
-
type MnAlertVariants = VariantProps<typeof mnAlertVariants>;
|
|
51
|
-
|
|
52
|
-
type
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
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 {};
|