@proximus/lavender-toaster 1.4.15-alpha.18
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/dist/Toaster.d.ts +52 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2161 -0
- package/package.json +21 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import '@proximus/lavender-container';
|
|
2
|
+
import '@proximus/lavender-layout';
|
|
3
|
+
import '@proximus/lavender-icon';
|
|
4
|
+
export declare const toasterStatusValues: string[];
|
|
5
|
+
export declare class Toaster extends HTMLElement {
|
|
6
|
+
private popoverButtonsCleanups;
|
|
7
|
+
private onHideClick;
|
|
8
|
+
private onShowClick;
|
|
9
|
+
private autoHideTimeoutId;
|
|
10
|
+
private timeoutStartedAt;
|
|
11
|
+
private remainingDuration;
|
|
12
|
+
private isVisible;
|
|
13
|
+
private isHovered;
|
|
14
|
+
private isFocused;
|
|
15
|
+
private onPointerEnter;
|
|
16
|
+
private onPointerLeave;
|
|
17
|
+
private onFocusIn;
|
|
18
|
+
private onFocusOut;
|
|
19
|
+
template: string;
|
|
20
|
+
constructor();
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
static get observedAttributes(): string[];
|
|
23
|
+
attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
handleOpenChange(): void;
|
|
26
|
+
show(): void;
|
|
27
|
+
hide(): void;
|
|
28
|
+
startAutoHideTimeout(): void;
|
|
29
|
+
pauseAutoHideTimeout(): void;
|
|
30
|
+
resumeAutoHideTimeout(): void;
|
|
31
|
+
clearAutoHideTimeout(): void;
|
|
32
|
+
showPopover(): void;
|
|
33
|
+
hidePopover(): void;
|
|
34
|
+
handleInvertedChange(): void;
|
|
35
|
+
addEventListenersToHideButtons(): void;
|
|
36
|
+
private removePopoverButtonListeners;
|
|
37
|
+
handleStatusChange(newStatus: string, allowedValues: string[]): void;
|
|
38
|
+
getLiveRegionRole(status: string): "status" | "alert";
|
|
39
|
+
getIcon(status: string): "checkmark_fill" | "exclamation_mark_fill" | "minus_fill" | "information_fill";
|
|
40
|
+
get $dialog(): HTMLDialogElement | null | undefined;
|
|
41
|
+
get $slotVisual(): Element | null | undefined;
|
|
42
|
+
get $message(): HTMLDivElement | null | undefined;
|
|
43
|
+
get $pxContainer(): Element | null | undefined;
|
|
44
|
+
get status(): string | null;
|
|
45
|
+
set status(value: string | null);
|
|
46
|
+
get open(): boolean;
|
|
47
|
+
set open(value: boolean);
|
|
48
|
+
get duration(): number;
|
|
49
|
+
set duration(value: number);
|
|
50
|
+
get inverted(): boolean;
|
|
51
|
+
set inverted(value: boolean);
|
|
52
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toaster.ts';
|