ng-primitives 0.60.0 → 0.62.0
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/ng-primitives-internal.mjs +1 -1
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs +405 -160
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-generate/templates/toast/toast.__fileSuffix@dasherize__.ts.template +104 -36
- package/toast/config/toast-config.d.ts +36 -7
- package/toast/index.d.ts +2 -1
- package/toast/toast/toast-context.d.ts +3 -0
- package/toast/toast/toast-manager.d.ts +50 -0
- package/toast/toast/toast-options.d.ts +34 -0
- package/toast/toast/toast-timer.d.ts +14 -0
- package/toast/toast/toast.d.ts +60 -37
- package/toast/toast/toast-ref.d.ts +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export type NgpToastPosition = 'start' | 'center' | 'end';
|
|
2
|
-
export type NgpToastGravity = 'top' | 'bottom';
|
|
3
|
-
export declare class NgpToastRef {
|
|
4
|
-
/** Store the toast element */
|
|
5
|
-
private readonly toastElement;
|
|
6
|
-
/** Store the duration */
|
|
7
|
-
private readonly duration;
|
|
8
|
-
/** The position of the toast */
|
|
9
|
-
readonly position: NgpToastPosition;
|
|
10
|
-
/** The gravity of the toast */
|
|
11
|
-
readonly gravity: NgpToastGravity;
|
|
12
|
-
/** Whether we should stop on focus */
|
|
13
|
-
private readonly stopOnHover;
|
|
14
|
-
/** The aria live setting */
|
|
15
|
-
private readonly ariaLive;
|
|
16
|
-
private readonly onDismiss;
|
|
17
|
-
/** Store the current timeout */
|
|
18
|
-
private timeoutId;
|
|
19
|
-
/** Get the toast height */
|
|
20
|
-
get height(): number;
|
|
21
|
-
constructor(
|
|
22
|
-
/** Store the toast element */
|
|
23
|
-
toastElement: HTMLElement,
|
|
24
|
-
/** Store the duration */
|
|
25
|
-
duration: number,
|
|
26
|
-
/** The position of the toast */
|
|
27
|
-
position: NgpToastPosition,
|
|
28
|
-
/** The gravity of the toast */
|
|
29
|
-
gravity: NgpToastGravity,
|
|
30
|
-
/** Whether we should stop on focus */
|
|
31
|
-
stopOnHover: boolean,
|
|
32
|
-
/** The aria live setting */
|
|
33
|
-
ariaLive: string, onDismiss: () => void);
|
|
34
|
-
dismiss(): void;
|
|
35
|
-
private removeElement;
|
|
36
|
-
/** Setup duration timeouts */
|
|
37
|
-
private setupTimeouts;
|
|
38
|
-
private setupListeners;
|
|
39
|
-
/** Set the position attribute */
|
|
40
|
-
private setPosition;
|
|
41
|
-
/** Set the gravity attribute */
|
|
42
|
-
private setGravity;
|
|
43
|
-
/** Set the aria live attribute */
|
|
44
|
-
private setAriaLive;
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
setInset(property: 'top' | 'bottom', value: string): void;
|
|
49
|
-
}
|