@genesislcap/foundation-notifications 14.50.2-alpha-f13a8e3.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/README.md +66 -0
- package/dist/dts/banner/banner-builder.d.ts +35 -0
- package/dist/dts/banner/banner-builder.d.ts.map +1 -0
- package/dist/dts/banner/banner-launcher.d.ts +11 -0
- package/dist/dts/banner/banner-launcher.d.ts.map +1 -0
- package/dist/dts/banner/index.d.ts +3 -0
- package/dist/dts/banner/index.d.ts.map +1 -0
- package/dist/dts/dialog/dialog-builder.d.ts +35 -0
- package/dist/dts/dialog/dialog-builder.d.ts.map +1 -0
- package/dist/dts/dialog/dialog-launcher.d.ts +10 -0
- package/dist/dts/dialog/dialog-launcher.d.ts.map +1 -0
- package/dist/dts/dialog/index.d.ts +3 -0
- package/dist/dts/dialog/index.d.ts.map +1 -0
- package/dist/dts/index.d.ts +9 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/index.federated.d.ts +1 -0
- package/dist/dts/index.federated.d.ts.map +1 -0
- package/dist/dts/logger.d.ts +2 -0
- package/dist/dts/logger.d.ts.map +1 -0
- package/dist/dts/notification-builder.d.ts +83 -0
- package/dist/dts/notification-builder.d.ts.map +1 -0
- package/dist/dts/notification-launcher.d.ts +11 -0
- package/dist/dts/notification-launcher.d.ts.map +1 -0
- package/dist/dts/notification-util.d.ts +32 -0
- package/dist/dts/notification-util.d.ts.map +1 -0
- package/dist/dts/snackbar/index.d.ts +3 -0
- package/dist/dts/snackbar/index.d.ts.map +1 -0
- package/dist/dts/snackbar/snackbar-builder.d.ts +34 -0
- package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -0
- package/dist/dts/snackbar/snackbar-launcher.d.ts +10 -0
- package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -0
- package/dist/dts/toast/index.d.ts +3 -0
- package/dist/dts/toast/index.d.ts.map +1 -0
- package/dist/dts/toast/toast-builder.d.ts +49 -0
- package/dist/dts/toast/toast-builder.d.ts.map +1 -0
- package/dist/dts/toast/toast-launcher.d.ts +10 -0
- package/dist/dts/toast/toast-launcher.d.ts.map +1 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/types.d.ts +106 -0
- package/dist/dts/types.d.ts.map +1 -0
- package/dist/esm/banner/banner-builder.js +49 -0
- package/dist/esm/banner/banner-launcher.js +23 -0
- package/dist/esm/banner/index.js +2 -0
- package/dist/esm/dialog/dialog-builder.js +49 -0
- package/dist/esm/dialog/dialog-launcher.js +16 -0
- package/dist/esm/dialog/index.js +2 -0
- package/dist/esm/index.federated.js +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/logger.js +2 -0
- package/dist/esm/notification-builder.js +133 -0
- package/dist/esm/notification-launcher.js +36 -0
- package/dist/esm/notification-util.js +67 -0
- package/dist/esm/snackbar/index.js +2 -0
- package/dist/esm/snackbar/snackbar-builder.js +48 -0
- package/dist/esm/snackbar/snackbar-launcher.js +15 -0
- package/dist/esm/toast/index.js +2 -0
- package/dist/esm/toast/toast-builder.js +70 -0
- package/dist/esm/toast/toast-launcher.js +54 -0
- package/dist/esm/types.js +8 -0
- package/dist/foundation-notifications.api.json +2531 -0
- package/dist/foundation-notifications.d.ts +435 -0
- package/docs/.gitattributes +2 -0
- package/docs/api/foundation-notifications.banner.confirmingactions.md +11 -0
- package/docs/api/foundation-notifications.banner.dismissingaction.md +11 -0
- package/docs/api/foundation-notifications.banner.md +21 -0
- package/docs/api/foundation-notifications.bannerbuilder.build.md +19 -0
- package/docs/api/foundation-notifications.bannerbuilder.md +22 -0
- package/docs/api/foundation-notifications.bannerbuilder.withconfirmingaction.md +25 -0
- package/docs/api/foundation-notifications.bannerbuilder.withdismissingaction.md +25 -0
- package/docs/api/foundation-notifications.confirmingaction.action.md +11 -0
- package/docs/api/foundation-notifications.confirmingaction.label.md +11 -0
- package/docs/api/foundation-notifications.confirmingaction.md +21 -0
- package/docs/api/foundation-notifications.dialog.confirmingactions.md +11 -0
- package/docs/api/foundation-notifications.dialog.dismissingaction.md +11 -0
- package/docs/api/foundation-notifications.dialog.md +21 -0
- package/docs/api/foundation-notifications.dialogbuilder.build.md +19 -0
- package/docs/api/foundation-notifications.dialogbuilder.md +22 -0
- package/docs/api/foundation-notifications.dialogbuilder.withconfirmingaction.md +25 -0
- package/docs/api/foundation-notifications.dialogbuilder.withdismissingaction.md +25 -0
- package/docs/api/foundation-notifications.dismissingaction.action.md +11 -0
- package/docs/api/foundation-notifications.dismissingaction.label.md +11 -0
- package/docs/api/foundation-notifications.dismissingaction.md +21 -0
- package/docs/api/foundation-notifications.getbanneranchor.md +13 -0
- package/docs/api/foundation-notifications.getbannerbuilder.md +13 -0
- package/docs/api/foundation-notifications.getdialogbuilder.md +13 -0
- package/docs/api/foundation-notifications.getloglevel.md +13 -0
- package/docs/api/foundation-notifications.getnotificationbuilder.md +13 -0
- package/docs/api/foundation-notifications.getnotificationcontainer.md +13 -0
- package/docs/api/foundation-notifications.getnotificationdetails.md +13 -0
- package/docs/api/foundation-notifications.getsnackbarbuilder.md +13 -0
- package/docs/api/foundation-notifications.gettoastbuilder.md +13 -0
- package/docs/api/foundation-notifications.md +58 -0
- package/docs/api/foundation-notifications.notificationbuilder.build.md +18 -0
- package/docs/api/foundation-notifications.notificationbuilder.md +28 -0
- package/docs/api/foundation-notifications.notificationbuilder.withalert.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withbanner.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withbody.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withdialog.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withloglevel.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withsnackbar.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withtitle.md +25 -0
- package/docs/api/foundation-notifications.notificationbuilder.withtoast.md +25 -0
- package/docs/api/foundation-notifications.notificationevent.md +20 -0
- package/docs/api/foundation-notifications.notificationstructure.body.md +11 -0
- package/docs/api/foundation-notifications.notificationstructure.config.md +18 -0
- package/docs/api/foundation-notifications.notificationstructure.loglevel.md +11 -0
- package/docs/api/foundation-notifications.notificationstructure.md +23 -0
- package/docs/api/foundation-notifications.notificationstructure.title.md +11 -0
- package/docs/api/foundation-notifications.notificationtype.md +13 -0
- package/docs/api/foundation-notifications.showbanner.md +13 -0
- package/docs/api/foundation-notifications.shownotification.md +13 -0
- package/docs/api/foundation-notifications.snackbar.confirmingactions.md +11 -0
- package/docs/api/foundation-notifications.snackbar.md +21 -0
- package/docs/api/foundation-notifications.snackbar.type.md +11 -0
- package/docs/api/foundation-notifications.snackbarbuilder.build.md +19 -0
- package/docs/api/foundation-notifications.snackbarbuilder.md +22 -0
- package/docs/api/foundation-notifications.snackbarbuilder.withconfirmingaction.md +25 -0
- package/docs/api/foundation-notifications.snackbarbuilder.withtype.md +23 -0
- package/docs/api/foundation-notifications.snackbartype.md +13 -0
- package/docs/api/foundation-notifications.toast.autoclose.md +11 -0
- package/docs/api/foundation-notifications.toast.closetimeout.md +11 -0
- package/docs/api/foundation-notifications.toast.md +23 -0
- package/docs/api/foundation-notifications.toast.position.md +11 -0
- package/docs/api/foundation-notifications.toast.type.md +11 -0
- package/docs/api/foundation-notifications.toastbuilder.build.md +19 -0
- package/docs/api/foundation-notifications.toastbuilder.md +23 -0
- package/docs/api/foundation-notifications.toastbuilder.withautoclose.md +25 -0
- package/docs/api/foundation-notifications.toastbuilder.withclosetimeout.md +25 -0
- package/docs/api/foundation-notifications.toastbuilder.withposition.md +25 -0
- package/docs/api/foundation-notifications.toastbuilder.withtype.md +25 -0
- package/docs/api/foundation-notifications.toastposition.md +13 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +203 -0
- package/license.txt +46 -0
- package/package.json +57 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [NotificationStructure](./foundation-notifications.notificationstructure.md)
|
|
4
|
+
|
|
5
|
+
## NotificationStructure interface
|
|
6
|
+
|
|
7
|
+
Interface for Structure
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface NotificationStructure
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [body](./foundation-notifications.notificationstructure.body.md) | <code>readonly</code> | string | |
|
|
20
|
+
| [config?](./foundation-notifications.notificationstructure.config.md) | <code>readonly</code> | { readonly logLevel?: LogLevel; readonly alert?: boolean; readonly toast?: [Toast](./foundation-notifications.toast.md)<!-- -->; readonly banner?: [Banner](./foundation-notifications.banner.md)<!-- -->; readonly snackbar?: [Snackbar](./foundation-notifications.snackbar.md)<!-- -->; readonly dialog?: [Dialog](./foundation-notifications.dialog.md)<!-- -->; } | _(Optional)_ |
|
|
21
|
+
| [logLevel?](./foundation-notifications.notificationstructure.loglevel.md) | <code>readonly</code> | LogLevel | _(Optional)_ |
|
|
22
|
+
| [title](./foundation-notifications.notificationstructure.title.md) | <code>readonly</code> | string | |
|
|
23
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [NotificationStructure](./foundation-notifications.notificationstructure.md) > [title](./foundation-notifications.notificationstructure.title.md)
|
|
4
|
+
|
|
5
|
+
## NotificationStructure.title property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly title: string;
|
|
11
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [NotificationType](./foundation-notifications.notificationtype.md)
|
|
4
|
+
|
|
5
|
+
## NotificationType type
|
|
6
|
+
|
|
7
|
+
type for notification
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type NotificationType = 'error' | 'warning' | 'success';
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [showBanner](./foundation-notifications.showbanner.md)
|
|
4
|
+
|
|
5
|
+
## showBanner variable
|
|
6
|
+
|
|
7
|
+
Shows the notificationStructure dialog
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
showBanner: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary: HTMLElement) => void
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [showNotification](./foundation-notifications.shownotification.md)
|
|
4
|
+
|
|
5
|
+
## showNotification variable
|
|
6
|
+
|
|
7
|
+
Shows the notificationStructure in the appropriate component
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
showNotification: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary?: HTMLElement) => void
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Snackbar](./foundation-notifications.snackbar.md) > [confirmingActions](./foundation-notifications.snackbar.confirmingactions.md)
|
|
4
|
+
|
|
5
|
+
## Snackbar.confirmingActions property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly confirmingActions?: Array<ConfirmingAction>;
|
|
11
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Snackbar](./foundation-notifications.snackbar.md)
|
|
4
|
+
|
|
5
|
+
## Snackbar interface
|
|
6
|
+
|
|
7
|
+
Interface for Snackbar configuration
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface Snackbar
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [confirmingActions?](./foundation-notifications.snackbar.confirmingactions.md) | <code>readonly</code> | Array<[ConfirmingAction](./foundation-notifications.confirmingaction.md)<!-- -->> | _(Optional)_ |
|
|
20
|
+
| [type?](./foundation-notifications.snackbar.type.md) | <code>readonly</code> | [SnackbarType](./foundation-notifications.snackbartype.md) | _(Optional)_ |
|
|
21
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Snackbar](./foundation-notifications.snackbar.md) > [type](./foundation-notifications.snackbar.type.md)
|
|
4
|
+
|
|
5
|
+
## Snackbar.type property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly type?: SnackbarType;
|
|
11
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [SnackbarBuilder](./foundation-notifications.snackbarbuilder.md) > [build](./foundation-notifications.snackbarbuilder.build.md)
|
|
4
|
+
|
|
5
|
+
## SnackbarBuilder.build() method
|
|
6
|
+
|
|
7
|
+
Build snackbar
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
build(): Snackbar;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
[Snackbar](./foundation-notifications.snackbar.md)
|
|
17
|
+
|
|
18
|
+
Snackbar
|
|
19
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [SnackbarBuilder](./foundation-notifications.snackbarbuilder.md)
|
|
4
|
+
|
|
5
|
+
## SnackbarBuilder class
|
|
6
|
+
|
|
7
|
+
SnackbarBuilder to build Snackbar
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare class SnackbarBuilder
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
| Method | Modifiers | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [build()](./foundation-notifications.snackbarbuilder.build.md) | | Build snackbar |
|
|
20
|
+
| [withConfirmingAction(confirmingAction)](./foundation-notifications.snackbarbuilder.withconfirmingaction.md) | | Add confirming action to snackbar |
|
|
21
|
+
| [withType(type)](./foundation-notifications.snackbarbuilder.withtype.md) | | |
|
|
22
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [SnackbarBuilder](./foundation-notifications.snackbarbuilder.md) > [withConfirmingAction](./foundation-notifications.snackbarbuilder.withconfirmingaction.md)
|
|
4
|
+
|
|
5
|
+
## SnackbarBuilder.withConfirmingAction() method
|
|
6
|
+
|
|
7
|
+
Add confirming action to snackbar
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| confirmingAction | [ConfirmingAction](./foundation-notifications.confirmingaction.md) | [ConfirmingAction](./foundation-notifications.confirmingaction.md) |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
[SnackbarBuilder](./foundation-notifications.snackbarbuilder.md)
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [SnackbarBuilder](./foundation-notifications.snackbarbuilder.md) > [withType](./foundation-notifications.snackbarbuilder.withtype.md)
|
|
4
|
+
|
|
5
|
+
## SnackbarBuilder.withType() method
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
withType(type: SnackbarType): SnackbarBuilder;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
| Parameter | Type | Description |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| type | [SnackbarType](./foundation-notifications.snackbartype.md) | [SnackbarType](./foundation-notifications.snackbartype.md) |
|
|
18
|
+
|
|
19
|
+
**Returns:**
|
|
20
|
+
|
|
21
|
+
[SnackbarBuilder](./foundation-notifications.snackbarbuilder.md)
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [SnackbarType](./foundation-notifications.snackbartype.md)
|
|
4
|
+
|
|
5
|
+
## SnackbarType type
|
|
6
|
+
|
|
7
|
+
type for snackbar type
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type SnackbarType = 'error';
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Toast](./foundation-notifications.toast.md) > [autoClose](./foundation-notifications.toast.autoclose.md)
|
|
4
|
+
|
|
5
|
+
## Toast.autoClose property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly autoClose?: boolean;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Toast](./foundation-notifications.toast.md) > [closeTimeout](./foundation-notifications.toast.closetimeout.md)
|
|
4
|
+
|
|
5
|
+
## Toast.closeTimeout property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly closeTimeout?: number;
|
|
11
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Toast](./foundation-notifications.toast.md)
|
|
4
|
+
|
|
5
|
+
## Toast interface
|
|
6
|
+
|
|
7
|
+
Interface for Toast configuration
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface Toast
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [autoClose?](./foundation-notifications.toast.autoclose.md) | <code>readonly</code> | boolean | _(Optional)_ |
|
|
20
|
+
| [closeTimeout?](./foundation-notifications.toast.closetimeout.md) | <code>readonly</code> | number | _(Optional)_ |
|
|
21
|
+
| [position?](./foundation-notifications.toast.position.md) | <code>readonly</code> | [ToastPosition](./foundation-notifications.toastposition.md) | _(Optional)_ |
|
|
22
|
+
| [type?](./foundation-notifications.toast.type.md) | <code>readonly</code> | [NotificationType](./foundation-notifications.notificationtype.md) | _(Optional)_ |
|
|
23
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Toast](./foundation-notifications.toast.md) > [position](./foundation-notifications.toast.position.md)
|
|
4
|
+
|
|
5
|
+
## Toast.position property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly position?: ToastPosition;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [Toast](./foundation-notifications.toast.md) > [type](./foundation-notifications.toast.type.md)
|
|
4
|
+
|
|
5
|
+
## Toast.type property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly type?: NotificationType;
|
|
11
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastBuilder](./foundation-notifications.toastbuilder.md) > [build](./foundation-notifications.toastbuilder.build.md)
|
|
4
|
+
|
|
5
|
+
## ToastBuilder.build() method
|
|
6
|
+
|
|
7
|
+
Build notification
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
build(): Toast;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
[Toast](./foundation-notifications.toast.md)
|
|
17
|
+
|
|
18
|
+
Toast
|
|
19
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastBuilder](./foundation-notifications.toastbuilder.md)
|
|
4
|
+
|
|
5
|
+
## ToastBuilder class
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export declare class ToastBuilder
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Methods
|
|
15
|
+
|
|
16
|
+
| Method | Modifiers | Description |
|
|
17
|
+
| --- | --- | --- |
|
|
18
|
+
| [build()](./foundation-notifications.toastbuilder.build.md) | | Build notification |
|
|
19
|
+
| [withAutoClose(autoClose)](./foundation-notifications.toastbuilder.withautoclose.md) | | Add auto close to notification |
|
|
20
|
+
| [withCloseTimeout(closeTimeout)](./foundation-notifications.toastbuilder.withclosetimeout.md) | | Add close timeout to notification |
|
|
21
|
+
| [withPosition(position)](./foundation-notifications.toastbuilder.withposition.md) | | Add position to toast |
|
|
22
|
+
| [withType(type)](./foundation-notifications.toastbuilder.withtype.md) | | Add type to notification, if the type is anything other than 'warning' or 'success' do not add it |
|
|
23
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastBuilder](./foundation-notifications.toastbuilder.md) > [withAutoClose](./foundation-notifications.toastbuilder.withautoclose.md)
|
|
4
|
+
|
|
5
|
+
## ToastBuilder.withAutoClose() method
|
|
6
|
+
|
|
7
|
+
Add auto close to notification
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
withAutoClose(autoClose: boolean): ToastBuilder;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| autoClose | boolean | boolean |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
[ToastBuilder](./foundation-notifications.toastbuilder.md)
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastBuilder](./foundation-notifications.toastbuilder.md) > [withCloseTimeout](./foundation-notifications.toastbuilder.withclosetimeout.md)
|
|
4
|
+
|
|
5
|
+
## ToastBuilder.withCloseTimeout() method
|
|
6
|
+
|
|
7
|
+
Add close timeout to notification
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
withCloseTimeout(closeTimeout: number): ToastBuilder;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| closeTimeout | number | number |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
[ToastBuilder](./foundation-notifications.toastbuilder.md)
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastBuilder](./foundation-notifications.toastbuilder.md) > [withPosition](./foundation-notifications.toastbuilder.withposition.md)
|
|
4
|
+
|
|
5
|
+
## ToastBuilder.withPosition() method
|
|
6
|
+
|
|
7
|
+
Add position to toast
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
withPosition(position: ToastPosition): ToastBuilder;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| position | [ToastPosition](./foundation-notifications.toastposition.md) | [ToastPosition](./foundation-notifications.toastposition.md) |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
[ToastBuilder](./foundation-notifications.toastbuilder.md)
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastBuilder](./foundation-notifications.toastbuilder.md) > [withType](./foundation-notifications.toastbuilder.withtype.md)
|
|
4
|
+
|
|
5
|
+
## ToastBuilder.withType() method
|
|
6
|
+
|
|
7
|
+
Add type to notification, if the type is anything other than 'warning' or 'success' do not add it
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
withType(type: NotificationType): ToastBuilder;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| type | [NotificationType](./foundation-notifications.notificationtype.md) | [NotificationType](./foundation-notifications.notificationtype.md) |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
[ToastBuilder](./foundation-notifications.toastbuilder.md)
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastPosition](./foundation-notifications.toastposition.md)
|
|
4
|
+
|
|
5
|
+
## ToastPosition type
|
|
6
|
+
|
|
7
|
+
type for notification position
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
13
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md)
|
|
4
|
+
|
|
5
|
+
## API Reference
|
|
6
|
+
|
|
7
|
+
## Packages
|
|
8
|
+
|
|
9
|
+
| Package | Description |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [@genesislcap/foundation-notifications](./foundation-notifications.md) | |
|
|
12
|
+
|