@genesislcap/foundation-errors 10.3.1 → 11.3.1
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 +57 -0
- package/dist/dts/banner/error-banner-builder.d.ts +25 -0
- package/dist/dts/banner/error-banner-builder.d.ts.map +1 -1
- package/dist/dts/dialog/error-dialog-builder.d.ts +25 -0
- package/dist/dts/dialog/error-dialog-builder.d.ts.map +1 -1
- package/dist/dts/dialog/error-dialog-launcher.d.ts +1 -1
- package/dist/dts/dialog/error-dialog-launcher.d.ts.map +1 -1
- package/dist/dts/error-builder.d.ts +60 -0
- package/dist/dts/error-builder.d.ts.map +1 -1
- package/dist/dts/error-launcher.d.ts.map +1 -1
- package/dist/dts/logger.d.ts.map +1 -1
- package/dist/dts/notification/notification-builder.d.ts +32 -2
- package/dist/dts/notification/notification-builder.d.ts.map +1 -1
- package/dist/dts/notification/notification-launcher.d.ts +1 -1
- package/dist/dts/notification/notification-launcher.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-builder.d.ts +15 -7
- package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
- package/dist/dts/types.d.ts +50 -2
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/banner/error-banner-builder.js +25 -1
- package/dist/esm/banner/index.js +0 -1
- package/dist/esm/dialog/error-dialog-builder.js +25 -1
- package/dist/esm/dialog/error-dialog-launcher.js +1 -2
- package/dist/esm/dialog/index.js +0 -1
- package/dist/esm/error-builder.js +60 -1
- package/dist/esm/error-launcher.js +2 -3
- package/dist/esm/error-util.js +0 -1
- package/dist/esm/index.federated.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/logger.js +0 -1
- package/dist/esm/notification/index.js +0 -1
- package/dist/esm/notification/notification-builder.js +30 -1
- package/dist/esm/notification/notification-launcher.js +1 -2
- package/dist/esm/snackbar/index.js +0 -1
- package/dist/esm/snackbar/snackbar-builder.js +13 -6
- package/dist/esm/snackbar/snackbar-launcher.js +1 -2
- package/dist/esm/types.js +4 -1
- package/dist/foundation-errors.api.json +103 -250
- package/dist/foundation-errors.d.ts +210 -12
- package/docs/.gitattributes +2 -0
- package/docs/api/foundation-errors.confirmingaction.md +2 -0
- package/docs/api/foundation-errors.dismissingaction.md +2 -0
- package/docs/api/foundation-errors.errorbanner.md +2 -0
- package/docs/api/foundation-errors.errorbannerbuilder.build.md +4 -0
- package/docs/api/foundation-errors.errorbannerbuilder.md +5 -3
- package/docs/api/foundation-errors.errorbannerbuilder.withconfirmingaction.md +4 -1
- package/docs/api/foundation-errors.errorbannerbuilder.withdismissingaction.md +4 -1
- package/docs/api/foundation-errors.errorboundaryevent.md +2 -0
- package/docs/api/foundation-errors.errorbuilder.build.md +3 -0
- package/docs/api/foundation-errors.errorbuilder.md +11 -9
- package/docs/api/foundation-errors.errorbuilder.withalert.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withbanner.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withdialog.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.witherrordetails.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withloglevel.md +3 -0
- package/docs/api/foundation-errors.errorbuilder.withnotification.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withsnackbar.md +4 -1
- package/docs/api/foundation-errors.errorbuilder.withtitle.md +4 -1
- package/docs/api/foundation-errors.errordialog.md +2 -0
- package/docs/api/foundation-errors.errordialogbuilder.build.md +4 -0
- package/docs/api/foundation-errors.errordialogbuilder.md +5 -3
- package/docs/api/foundation-errors.errordialogbuilder.withconfirmingaction.md +4 -1
- package/docs/api/foundation-errors.errordialogbuilder.withdismissingaction.md +4 -1
- package/docs/api/foundation-errors.errornotification.md +3 -1
- package/docs/api/foundation-errors.errornotification.type.md +1 -1
- package/docs/api/foundation-errors.errornotificationtype.md +13 -0
- package/docs/api/foundation-errors.errorstructure.md +2 -0
- package/docs/api/foundation-errors.geterrorbannerbuilder.md +2 -0
- package/docs/api/foundation-errors.geterrorbuilder.md +2 -0
- package/docs/api/foundation-errors.geterrordialogbuilder.md +2 -0
- package/docs/api/foundation-errors.getnotificationbuilder.md +2 -0
- package/docs/api/foundation-errors.getsnackbarbuilder.md +2 -0
- package/docs/api/foundation-errors.md +20 -23
- package/docs/api/foundation-errors.notificationbuilder.build.md +4 -0
- package/docs/api/foundation-errors.notificationbuilder.md +6 -4
- package/docs/api/foundation-errors.notificationbuilder.withautoclose.md +4 -1
- package/docs/api/foundation-errors.notificationbuilder.withclosetimeout.md +4 -1
- package/docs/api/foundation-errors.notificationbuilder.withtype.md +5 -2
- package/docs/api/foundation-errors.snackbar.md +3 -1
- package/docs/api/foundation-errors.snackbar.type.md +1 -1
- package/docs/api/foundation-errors.snackbarbuilder.md +3 -1
- package/docs/api/foundation-errors.snackbarbuilder.withconfirmingaction.md +1 -1
- package/docs/api/foundation-errors.snackbarbuilder.withtype.md +3 -3
- package/docs/api/foundation-errors.snackbartype.md +13 -0
- package/docs/api-report.md +43 -46
- package/package.json +8 -8
- package/dist/1.0.0.remoteEntry.js +0 -1
- package/dist/145.145.48c3a34dc8598a016d9b.js +0 -2
- package/dist/145.9debf52d04b6fdb805987fa6a56e9266.js.map +0 -1
- package/dist/191.191.da8a5884febca6f1a439.js +0 -2
- package/dist/191.efd2fea1a42a47cddbf6e6ab15fbf2bb.js.map +0 -1
- package/dist/366.366.82702b77300a9353fc87.js +0 -2
- package/dist/366.a181180b871f72ff9f4ad3e3f3ea3734.js.map +0 -1
- package/dist/755.62d9698f4e62142b980949b517fded3f.js.map +0 -1
- package/dist/755.755.f8db61516204a76477a8.js +0 -2
- package/dist/dashboard.json +0 -1
- package/dist/esm/banner/error-banner-builder.js.map +0 -1
- package/dist/esm/banner/index.js.map +0 -1
- package/dist/esm/dialog/error-dialog-builder.js.map +0 -1
- package/dist/esm/dialog/error-dialog-launcher.js.map +0 -1
- package/dist/esm/dialog/index.js.map +0 -1
- package/dist/esm/error-builder.js.map +0 -1
- package/dist/esm/error-launcher.js.map +0 -1
- package/dist/esm/error-util.js.map +0 -1
- package/dist/esm/index.federated.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/logger.js.map +0 -1
- package/dist/esm/notification/index.js.map +0 -1
- package/dist/esm/notification/notification-builder.js.map +0 -1
- package/dist/esm/notification/notification-launcher.js.map +0 -1
- package/dist/esm/snackbar/index.js.map +0 -1
- package/dist/esm/snackbar/snackbar-builder.js.map +0 -1
- package/dist/esm/snackbar/snackbar-launcher.js.map +0 -1
- package/dist/esm/types.js.map +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/foundation-errors.iife.min.js +0 -1
- package/dist/foundation-errors.js +0 -1240
- package/dist/foundation-errors.min.js +0 -1
- package/dist/foundationErrors.2c93e6eb2ef9200237968325716b6236.js.map +0 -1
- package/dist/index.ejs +0 -23
- package/dist/index.html +0 -10
- package/dist/info.ejs +0 -13
- package/dist/info.html +0 -14
- package/dist/main.32b6b5ccbc4fb35f99c6.js +0 -2
- package/dist/main.48adf629bdf2e8347fb7dc199f202017.js.map +0 -1
- package/dist/npm.consola.713.6bcc5abc1500250af5f5.js +0 -2
- package/dist/npm.consola.de429dd64b8dd7d3424e047e422d6ee1.js.map +0 -1
- package/dist/npm.microsoft.127.821cbcff47e0a34e88c9.js +0 -3
- package/dist/npm.microsoft.127.821cbcff47e0a34e88c9.js.LICENSE.txt +0 -14
- package/dist/npm.microsoft.4ae729aafa2e074df718ae9a73d16fa1.js.map +0 -1
- package/dist/remoteEntry.js +0 -2
- package/dist/serve.json +0 -3
- package/docs/api/foundation-errors.errordialogelement.md +0 -15
- package/docs/api/foundation-errors.errorelement.md +0 -15
- package/docs/api/foundation-errors.showdialog.md +0 -13
- package/docs/api/foundation-errors.shownotification.md +0 -13
- package/docs/api/foundation-errors.showsnackbar.md +0 -13
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## ErrorBuilder.withTitle() method
|
|
6
6
|
|
|
7
|
+
Add title to error
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,9 +16,10 @@ withTitle(title: string): ErrorBuilder;
|
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| title | string |
|
|
19
|
+
| title | string | string |
|
|
18
20
|
|
|
19
21
|
**Returns:**
|
|
20
22
|
|
|
21
23
|
[ErrorBuilder](./foundation-errors.errorbuilder.md)
|
|
22
24
|
|
|
25
|
+
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## ErrorDialogBuilder class
|
|
6
6
|
|
|
7
|
+
ErrorDialogBuilder class
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,7 +16,7 @@ export declare class ErrorDialogBuilder
|
|
|
14
16
|
|
|
15
17
|
| Method | Modifiers | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| [build()](./foundation-errors.errordialogbuilder.build.md) | |
|
|
18
|
-
| [withConfirmingAction(confirmingAction)](./foundation-errors.errordialogbuilder.withconfirmingaction.md) | |
|
|
19
|
-
| [withDismissingAction(dismissingAction)](./foundation-errors.errordialogbuilder.withdismissingaction.md) | |
|
|
19
|
+
| [build()](./foundation-errors.errordialogbuilder.build.md) | | Build ErrorDialog |
|
|
20
|
+
| [withConfirmingAction(confirmingAction)](./foundation-errors.errordialogbuilder.withconfirmingaction.md) | | Add confirming action to ErrorDialog |
|
|
21
|
+
| [withDismissingAction(dismissingAction)](./foundation-errors.errordialogbuilder.withdismissingaction.md) | | Add dismissing action to ErrorDialog |
|
|
20
22
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## ErrorDialogBuilder.withConfirmingAction() method
|
|
6
6
|
|
|
7
|
+
Add confirming action to ErrorDialog
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,9 +16,10 @@ withConfirmingAction(confirmingAction: ConfirmingAction): ErrorDialogBuilder;
|
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| confirmingAction | [ConfirmingAction](./foundation-errors.confirmingaction.md) |
|
|
19
|
+
| confirmingAction | [ConfirmingAction](./foundation-errors.confirmingaction.md) | [ConfirmingAction](./foundation-errors.confirmingaction.md) |
|
|
18
20
|
|
|
19
21
|
**Returns:**
|
|
20
22
|
|
|
21
23
|
[ErrorDialogBuilder](./foundation-errors.errordialogbuilder.md)
|
|
22
24
|
|
|
25
|
+
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## ErrorDialogBuilder.withDismissingAction() method
|
|
6
6
|
|
|
7
|
+
Add dismissing action to ErrorDialog
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,9 +16,10 @@ withDismissingAction(dismissingAction: DismissingAction): ErrorDialogBuilder;
|
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| dismissingAction | [DismissingAction](./foundation-errors.dismissingaction.md) |
|
|
19
|
+
| dismissingAction | [DismissingAction](./foundation-errors.dismissingaction.md) | [DismissingAction](./foundation-errors.dismissingaction.md) |
|
|
18
20
|
|
|
19
21
|
**Returns:**
|
|
20
22
|
|
|
21
23
|
[ErrorDialogBuilder](./foundation-errors.errordialogbuilder.md)
|
|
22
24
|
|
|
25
|
+
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## ErrorNotification interface
|
|
6
6
|
|
|
7
|
+
Interface for Error Notification configuration
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -16,5 +18,5 @@ export interface ErrorNotification
|
|
|
16
18
|
| --- | --- | --- | --- |
|
|
17
19
|
| [autoClose?](./foundation-errors.errornotification.autoclose.md) | <code>readonly</code> | boolean | _(Optional)_ |
|
|
18
20
|
| [closeTimeout?](./foundation-errors.errornotification.closetimeout.md) | <code>readonly</code> | number | _(Optional)_ |
|
|
19
|
-
| [type?](./foundation-errors.errornotification.type.md) | <code>readonly</code> |
|
|
21
|
+
| [type?](./foundation-errors.errornotification.type.md) | <code>readonly</code> | [ErrorNotificationType](./foundation-errors.errornotificationtype.md) | _(Optional)_ |
|
|
20
22
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-errors](./foundation-errors.md) > [ErrorNotificationType](./foundation-errors.errornotificationtype.md)
|
|
4
|
+
|
|
5
|
+
## ErrorNotificationType type
|
|
6
|
+
|
|
7
|
+
type for error notification type
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ErrorNotificationType = 'warning' | 'success';
|
|
13
|
+
```
|
|
@@ -8,51 +8,48 @@
|
|
|
8
8
|
|
|
9
9
|
| Class | Description |
|
|
10
10
|
| --- | --- |
|
|
11
|
-
| [ErrorBannerBuilder](./foundation-errors.errorbannerbuilder.md) |
|
|
12
|
-
| [ErrorBuilder](./foundation-errors.errorbuilder.md) |
|
|
13
|
-
| [ErrorDialogBuilder](./foundation-errors.errordialogbuilder.md) |
|
|
14
|
-
| [NotificationBuilder](./foundation-errors.notificationbuilder.md) |
|
|
15
|
-
| [SnackbarBuilder](./foundation-errors.snackbarbuilder.md) |
|
|
11
|
+
| [ErrorBannerBuilder](./foundation-errors.errorbannerbuilder.md) | ErrorBannerBuilder to build ErrorBanner |
|
|
12
|
+
| [ErrorBuilder](./foundation-errors.errorbuilder.md) | ErrorBuilder to build ErrorStructure |
|
|
13
|
+
| [ErrorDialogBuilder](./foundation-errors.errordialogbuilder.md) | ErrorDialogBuilder class |
|
|
14
|
+
| [NotificationBuilder](./foundation-errors.notificationbuilder.md) | NotificationBuilder to build ErrorNotification |
|
|
15
|
+
| [SnackbarBuilder](./foundation-errors.snackbarbuilder.md) | SnackbarBuilder to build Snackbar |
|
|
16
16
|
|
|
17
17
|
## Enumerations
|
|
18
18
|
|
|
19
19
|
| Enumeration | Description |
|
|
20
20
|
| --- | --- |
|
|
21
|
-
| [ErrorBoundaryEvent](./foundation-errors.errorboundaryevent.md) |
|
|
21
|
+
| [ErrorBoundaryEvent](./foundation-errors.errorboundaryevent.md) | enum for different types of error boundary events |
|
|
22
22
|
|
|
23
23
|
## Interfaces
|
|
24
24
|
|
|
25
25
|
| Interface | Description |
|
|
26
26
|
| --- | --- |
|
|
27
|
-
| [ConfirmingAction](./foundation-errors.confirmingaction.md) |
|
|
28
|
-
| [DismissingAction](./foundation-errors.dismissingaction.md) |
|
|
29
|
-
| [ErrorBanner](./foundation-errors.errorbanner.md) |
|
|
30
|
-
| [ErrorDialog](./foundation-errors.errordialog.md) |
|
|
31
|
-
| [ErrorNotification](./foundation-errors.errornotification.md) |
|
|
32
|
-
| [ErrorStructure](./foundation-errors.errorstructure.md) |
|
|
33
|
-
| [Snackbar](./foundation-errors.snackbar.md) |
|
|
27
|
+
| [ConfirmingAction](./foundation-errors.confirmingaction.md) | Interface for Confirming Action configuration |
|
|
28
|
+
| [DismissingAction](./foundation-errors.dismissingaction.md) | Interface for Dismissing Action configuration |
|
|
29
|
+
| [ErrorBanner](./foundation-errors.errorbanner.md) | Interface for Error Banner configuration |
|
|
30
|
+
| [ErrorDialog](./foundation-errors.errordialog.md) | Interface for Error Dialog configuration |
|
|
31
|
+
| [ErrorNotification](./foundation-errors.errornotification.md) | Interface for Error Notification configuration |
|
|
32
|
+
| [ErrorStructure](./foundation-errors.errorstructure.md) | Interface for Error Structure |
|
|
33
|
+
| [Snackbar](./foundation-errors.snackbar.md) | Interface for Error Snackbar configuration |
|
|
34
34
|
|
|
35
35
|
## Variables
|
|
36
36
|
|
|
37
37
|
| Variable | Description |
|
|
38
38
|
| --- | --- |
|
|
39
|
-
| [getErrorBannerBuilder](./foundation-errors.geterrorbannerbuilder.md) |
|
|
40
|
-
| [getErrorBuilder](./foundation-errors.geterrorbuilder.md) |
|
|
39
|
+
| [getErrorBannerBuilder](./foundation-errors.geterrorbannerbuilder.md) | Get error banner builder instance |
|
|
40
|
+
| [getErrorBuilder](./foundation-errors.geterrorbuilder.md) | Returns a new ErrorBuilder instance |
|
|
41
41
|
| [getErrorContainer](./foundation-errors.geterrorcontainer.md) | Get/Create the error container in the DOM |
|
|
42
42
|
| [getErrorDetails](./foundation-errors.geterrordetails.md) | Retrieves the error details from an ErrorStructure object |
|
|
43
|
-
| [getErrorDialogBuilder](./foundation-errors.geterrordialogbuilder.md) |
|
|
43
|
+
| [getErrorDialogBuilder](./foundation-errors.geterrordialogbuilder.md) | Returns an instance of ErrorDialogBuilder |
|
|
44
44
|
| [getLoglevel](./foundation-errors.getloglevel.md) | Retrieves the log level from an ErrorStructure object |
|
|
45
|
-
| [getNotificationBuilder](./foundation-errors.getnotificationbuilder.md) |
|
|
46
|
-
| [getSnackbarBuilder](./foundation-errors.getsnackbarbuilder.md) |
|
|
47
|
-
| [showDialog](./foundation-errors.showdialog.md) | Shows the error dialog |
|
|
45
|
+
| [getNotificationBuilder](./foundation-errors.getnotificationbuilder.md) | Get notification builder instance |
|
|
46
|
+
| [getSnackbarBuilder](./foundation-errors.getsnackbarbuilder.md) | Get snackbar builder instance |
|
|
48
47
|
| [showError](./foundation-errors.showerror.md) | Shows the error in the appropriate component |
|
|
49
|
-
| [showNotification](./foundation-errors.shownotification.md) | Shows the error notification |
|
|
50
|
-
| [showSnackbar](./foundation-errors.showsnackbar.md) | Shows the snackbar |
|
|
51
48
|
|
|
52
49
|
## Type Aliases
|
|
53
50
|
|
|
54
51
|
| Type Alias | Description |
|
|
55
52
|
| --- | --- |
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
53
|
+
| [ErrorNotificationType](./foundation-errors.errornotificationtype.md) | type for error notification type |
|
|
54
|
+
| [SnackbarType](./foundation-errors.snackbartype.md) | type for snackbar type |
|
|
58
55
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## NotificationBuilder class
|
|
6
6
|
|
|
7
|
+
NotificationBuilder to build ErrorNotification
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,8 +16,8 @@ export declare class NotificationBuilder
|
|
|
14
16
|
|
|
15
17
|
| Method | Modifiers | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| [build()](./foundation-errors.notificationbuilder.build.md) | |
|
|
18
|
-
| [withAutoClose(autoClose)](./foundation-errors.notificationbuilder.withautoclose.md) | |
|
|
19
|
-
| [withCloseTimeout(closeTimeout)](./foundation-errors.notificationbuilder.withclosetimeout.md) | |
|
|
20
|
-
| [withType(type)](./foundation-errors.notificationbuilder.withtype.md) | |
|
|
19
|
+
| [build()](./foundation-errors.notificationbuilder.build.md) | | Build notification |
|
|
20
|
+
| [withAutoClose(autoClose)](./foundation-errors.notificationbuilder.withautoclose.md) | | Add auto close to notification |
|
|
21
|
+
| [withCloseTimeout(closeTimeout)](./foundation-errors.notificationbuilder.withclosetimeout.md) | | Add close timeout to notification |
|
|
22
|
+
| [withType(type)](./foundation-errors.notificationbuilder.withtype.md) | | Add type to notification, if the type is anything other than 'warning' or 'success' do not add it |
|
|
21
23
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## NotificationBuilder.withAutoClose() method
|
|
6
6
|
|
|
7
|
+
Add auto close to notification
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,9 +16,10 @@ withAutoClose(autoClose: boolean): NotificationBuilder;
|
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| autoClose | boolean |
|
|
19
|
+
| autoClose | boolean | boolean |
|
|
18
20
|
|
|
19
21
|
**Returns:**
|
|
20
22
|
|
|
21
23
|
[NotificationBuilder](./foundation-errors.notificationbuilder.md)
|
|
22
24
|
|
|
25
|
+
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## NotificationBuilder.withCloseTimeout() method
|
|
6
6
|
|
|
7
|
+
Add close timeout to notification
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,9 +16,10 @@ withCloseTimeout(closeTimeout: number): NotificationBuilder;
|
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| closeTimeout | number |
|
|
19
|
+
| closeTimeout | number | number |
|
|
18
20
|
|
|
19
21
|
**Returns:**
|
|
20
22
|
|
|
21
23
|
[NotificationBuilder](./foundation-errors.notificationbuilder.md)
|
|
22
24
|
|
|
25
|
+
|
|
@@ -4,19 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
## NotificationBuilder.withType() method
|
|
6
6
|
|
|
7
|
+
Add type to notification, if the type is anything other than 'warning' or 'success' do not add it
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
10
|
-
withType(type:
|
|
12
|
+
withType(type: ErrorNotificationType): NotificationBuilder;
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
## Parameters
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| type |
|
|
19
|
+
| type | [ErrorNotificationType](./foundation-errors.errornotificationtype.md) | [ErrorNotificationType](./foundation-errors.errornotificationtype.md) |
|
|
18
20
|
|
|
19
21
|
**Returns:**
|
|
20
22
|
|
|
21
23
|
[NotificationBuilder](./foundation-errors.notificationbuilder.md)
|
|
22
24
|
|
|
25
|
+
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## Snackbar interface
|
|
6
6
|
|
|
7
|
+
Interface for Error Snackbar configuration
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -15,5 +17,5 @@ export interface Snackbar
|
|
|
15
17
|
| Property | Modifiers | Type | Description |
|
|
16
18
|
| --- | --- | --- | --- |
|
|
17
19
|
| [confirmingActions?](./foundation-errors.snackbar.confirmingactions.md) | <code>readonly</code> | Array<[ConfirmingAction](./foundation-errors.confirmingaction.md)<!-- -->> | _(Optional)_ |
|
|
18
|
-
| [type?](./foundation-errors.snackbar.type.md) | <code>readonly</code> |
|
|
20
|
+
| [type?](./foundation-errors.snackbar.type.md) | <code>readonly</code> | [SnackbarType](./foundation-errors.snackbartype.md) | _(Optional)_ |
|
|
19
21
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## SnackbarBuilder class
|
|
6
6
|
|
|
7
|
+
SnackbarBuilder to build Snackbar
|
|
8
|
+
|
|
7
9
|
**Signature:**
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -16,5 +18,5 @@ export declare class SnackbarBuilder
|
|
|
16
18
|
| --- | --- | --- |
|
|
17
19
|
| [build()](./foundation-errors.snackbarbuilder.build.md) | | Build snackbar |
|
|
18
20
|
| [withConfirmingAction(confirmingAction)](./foundation-errors.snackbarbuilder.withconfirmingaction.md) | | Add confirming action to snackbar |
|
|
19
|
-
| [withType(type)](./foundation-errors.snackbarbuilder.withtype.md) | | Add type to snackbar |
|
|
21
|
+
| [withType(type)](./foundation-errors.snackbarbuilder.withtype.md) | | Add type to snackbar, if the type is anything other than 'error' do not add it |
|
|
20
22
|
|
|
@@ -16,7 +16,7 @@ withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| confirmingAction | [ConfirmingAction](./foundation-errors.confirmingaction.md) |
|
|
19
|
+
| confirmingAction | [ConfirmingAction](./foundation-errors.confirmingaction.md) | [ConfirmingAction](./foundation-errors.confirmingaction.md) |
|
|
20
20
|
|
|
21
21
|
**Returns:**
|
|
22
22
|
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
## SnackbarBuilder.withType() method
|
|
6
6
|
|
|
7
|
-
Add type to snackbar
|
|
7
|
+
Add type to snackbar, if the type is anything other than 'error' do not add it
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
withType(type:
|
|
12
|
+
withType(type: SnackbarType): SnackbarBuilder;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| type |
|
|
19
|
+
| type | [SnackbarType](./foundation-errors.snackbartype.md) | [SnackbarType](./foundation-errors.snackbartype.md) |
|
|
20
20
|
|
|
21
21
|
**Returns:**
|
|
22
22
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-errors](./foundation-errors.md) > [SnackbarType](./foundation-errors.snackbartype.md)
|
|
4
|
+
|
|
5
|
+
## SnackbarType type
|
|
6
|
+
|
|
7
|
+
type for snackbar type
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type SnackbarType = 'error';
|
|
13
|
+
```
|