@net7/components 3.8.1 → 3.8.3
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/esm2020/lib/components/text-viewer/text-viewer.mjs +10 -18
- package/esm2020/lib/components/toast/toast.mjs +3 -3
- package/esm2020/lib/components/toast/toast.mock.mjs +7 -3
- package/fesm2015/net7-components.mjs +17 -21
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +17 -21
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/text-viewer/text-viewer.d.ts +1 -0
- package/lib/components/toast/toast.d.ts +23 -19
- package/package.json +1 -1
- package/src/lib/styles/components/_toast.scss +2 -0
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
|
-
* Interface for ToastComponent's "
|
|
3
|
+
* Interface for the single ToastComponent's "Action"
|
|
4
4
|
*
|
|
5
|
-
* @property
|
|
5
|
+
* @property text (required)
|
|
6
|
+
* @property payload (required)
|
|
6
7
|
* @property classes (optional)
|
|
7
8
|
*/
|
|
8
|
-
export interface
|
|
9
|
-
|
|
9
|
+
export interface ToastAction {
|
|
10
|
+
/**
|
|
11
|
+
* the button's rendered text
|
|
12
|
+
*/
|
|
13
|
+
text: string;
|
|
14
|
+
/**
|
|
15
|
+
* the button's onClick payload
|
|
16
|
+
*/
|
|
17
|
+
payload: any;
|
|
18
|
+
/**
|
|
19
|
+
* additional html classes
|
|
20
|
+
*/
|
|
10
21
|
classes?: string;
|
|
11
22
|
}
|
|
12
23
|
/**
|
|
@@ -26,6 +37,10 @@ export interface ToastBox {
|
|
|
26
37
|
* requires: [is-success, is-warning, is-error] + optional additional html classes
|
|
27
38
|
*/
|
|
28
39
|
classes: string;
|
|
40
|
+
/**
|
|
41
|
+
* Icon to display inside the toast
|
|
42
|
+
*/
|
|
43
|
+
icon?: string;
|
|
29
44
|
/**
|
|
30
45
|
* larger, title text
|
|
31
46
|
*/
|
|
@@ -55,24 +70,13 @@ export interface ToastBox {
|
|
|
55
70
|
_meta?: any;
|
|
56
71
|
}
|
|
57
72
|
/**
|
|
58
|
-
* Interface for
|
|
73
|
+
* Interface for ToastComponent's "data"
|
|
59
74
|
*
|
|
60
|
-
* @property
|
|
61
|
-
* @property payload (required)
|
|
75
|
+
* @property toasts (required)
|
|
62
76
|
* @property classes (optional)
|
|
63
77
|
*/
|
|
64
|
-
export interface
|
|
65
|
-
|
|
66
|
-
* the button's rendered text
|
|
67
|
-
*/
|
|
68
|
-
text: string;
|
|
69
|
-
/**
|
|
70
|
-
* the button's onClick payload
|
|
71
|
-
*/
|
|
72
|
-
payload: any;
|
|
73
|
-
/**
|
|
74
|
-
* additional html classes
|
|
75
|
-
*/
|
|
78
|
+
export interface ToastData {
|
|
79
|
+
toasts: ToastBox[];
|
|
76
80
|
classes?: string;
|
|
77
81
|
}
|
|
78
82
|
export declare class ToastComponent {
|
package/package.json
CHANGED