@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.
Files changed (139) hide show
  1. package/README.md +57 -0
  2. package/dist/dts/banner/error-banner-builder.d.ts +25 -0
  3. package/dist/dts/banner/error-banner-builder.d.ts.map +1 -1
  4. package/dist/dts/dialog/error-dialog-builder.d.ts +25 -0
  5. package/dist/dts/dialog/error-dialog-builder.d.ts.map +1 -1
  6. package/dist/dts/dialog/error-dialog-launcher.d.ts +1 -1
  7. package/dist/dts/dialog/error-dialog-launcher.d.ts.map +1 -1
  8. package/dist/dts/error-builder.d.ts +60 -0
  9. package/dist/dts/error-builder.d.ts.map +1 -1
  10. package/dist/dts/error-launcher.d.ts.map +1 -1
  11. package/dist/dts/logger.d.ts.map +1 -1
  12. package/dist/dts/notification/notification-builder.d.ts +32 -2
  13. package/dist/dts/notification/notification-builder.d.ts.map +1 -1
  14. package/dist/dts/notification/notification-launcher.d.ts +1 -1
  15. package/dist/dts/notification/notification-launcher.d.ts.map +1 -1
  16. package/dist/dts/snackbar/snackbar-builder.d.ts +15 -7
  17. package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
  18. package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
  19. package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
  20. package/dist/dts/types.d.ts +50 -2
  21. package/dist/dts/types.d.ts.map +1 -1
  22. package/dist/esm/banner/error-banner-builder.js +25 -1
  23. package/dist/esm/banner/index.js +0 -1
  24. package/dist/esm/dialog/error-dialog-builder.js +25 -1
  25. package/dist/esm/dialog/error-dialog-launcher.js +1 -2
  26. package/dist/esm/dialog/index.js +0 -1
  27. package/dist/esm/error-builder.js +60 -1
  28. package/dist/esm/error-launcher.js +2 -3
  29. package/dist/esm/error-util.js +0 -1
  30. package/dist/esm/index.federated.js +0 -1
  31. package/dist/esm/index.js +0 -1
  32. package/dist/esm/logger.js +0 -1
  33. package/dist/esm/notification/index.js +0 -1
  34. package/dist/esm/notification/notification-builder.js +30 -1
  35. package/dist/esm/notification/notification-launcher.js +1 -2
  36. package/dist/esm/snackbar/index.js +0 -1
  37. package/dist/esm/snackbar/snackbar-builder.js +13 -6
  38. package/dist/esm/snackbar/snackbar-launcher.js +1 -2
  39. package/dist/esm/types.js +4 -1
  40. package/dist/foundation-errors.api.json +103 -250
  41. package/dist/foundation-errors.d.ts +210 -12
  42. package/docs/.gitattributes +2 -0
  43. package/docs/api/foundation-errors.confirmingaction.md +2 -0
  44. package/docs/api/foundation-errors.dismissingaction.md +2 -0
  45. package/docs/api/foundation-errors.errorbanner.md +2 -0
  46. package/docs/api/foundation-errors.errorbannerbuilder.build.md +4 -0
  47. package/docs/api/foundation-errors.errorbannerbuilder.md +5 -3
  48. package/docs/api/foundation-errors.errorbannerbuilder.withconfirmingaction.md +4 -1
  49. package/docs/api/foundation-errors.errorbannerbuilder.withdismissingaction.md +4 -1
  50. package/docs/api/foundation-errors.errorboundaryevent.md +2 -0
  51. package/docs/api/foundation-errors.errorbuilder.build.md +3 -0
  52. package/docs/api/foundation-errors.errorbuilder.md +11 -9
  53. package/docs/api/foundation-errors.errorbuilder.withalert.md +4 -1
  54. package/docs/api/foundation-errors.errorbuilder.withbanner.md +4 -1
  55. package/docs/api/foundation-errors.errorbuilder.withdialog.md +4 -1
  56. package/docs/api/foundation-errors.errorbuilder.witherrordetails.md +4 -1
  57. package/docs/api/foundation-errors.errorbuilder.withloglevel.md +3 -0
  58. package/docs/api/foundation-errors.errorbuilder.withnotification.md +4 -1
  59. package/docs/api/foundation-errors.errorbuilder.withsnackbar.md +4 -1
  60. package/docs/api/foundation-errors.errorbuilder.withtitle.md +4 -1
  61. package/docs/api/foundation-errors.errordialog.md +2 -0
  62. package/docs/api/foundation-errors.errordialogbuilder.build.md +4 -0
  63. package/docs/api/foundation-errors.errordialogbuilder.md +5 -3
  64. package/docs/api/foundation-errors.errordialogbuilder.withconfirmingaction.md +4 -1
  65. package/docs/api/foundation-errors.errordialogbuilder.withdismissingaction.md +4 -1
  66. package/docs/api/foundation-errors.errornotification.md +3 -1
  67. package/docs/api/foundation-errors.errornotification.type.md +1 -1
  68. package/docs/api/foundation-errors.errornotificationtype.md +13 -0
  69. package/docs/api/foundation-errors.errorstructure.md +2 -0
  70. package/docs/api/foundation-errors.geterrorbannerbuilder.md +2 -0
  71. package/docs/api/foundation-errors.geterrorbuilder.md +2 -0
  72. package/docs/api/foundation-errors.geterrordialogbuilder.md +2 -0
  73. package/docs/api/foundation-errors.getnotificationbuilder.md +2 -0
  74. package/docs/api/foundation-errors.getsnackbarbuilder.md +2 -0
  75. package/docs/api/foundation-errors.md +20 -23
  76. package/docs/api/foundation-errors.notificationbuilder.build.md +4 -0
  77. package/docs/api/foundation-errors.notificationbuilder.md +6 -4
  78. package/docs/api/foundation-errors.notificationbuilder.withautoclose.md +4 -1
  79. package/docs/api/foundation-errors.notificationbuilder.withclosetimeout.md +4 -1
  80. package/docs/api/foundation-errors.notificationbuilder.withtype.md +5 -2
  81. package/docs/api/foundation-errors.snackbar.md +3 -1
  82. package/docs/api/foundation-errors.snackbar.type.md +1 -1
  83. package/docs/api/foundation-errors.snackbarbuilder.md +3 -1
  84. package/docs/api/foundation-errors.snackbarbuilder.withconfirmingaction.md +1 -1
  85. package/docs/api/foundation-errors.snackbarbuilder.withtype.md +3 -3
  86. package/docs/api/foundation-errors.snackbartype.md +13 -0
  87. package/docs/api-report.md +43 -46
  88. package/package.json +8 -8
  89. package/dist/1.0.0.remoteEntry.js +0 -1
  90. package/dist/145.145.48c3a34dc8598a016d9b.js +0 -2
  91. package/dist/145.9debf52d04b6fdb805987fa6a56e9266.js.map +0 -1
  92. package/dist/191.191.da8a5884febca6f1a439.js +0 -2
  93. package/dist/191.efd2fea1a42a47cddbf6e6ab15fbf2bb.js.map +0 -1
  94. package/dist/366.366.82702b77300a9353fc87.js +0 -2
  95. package/dist/366.a181180b871f72ff9f4ad3e3f3ea3734.js.map +0 -1
  96. package/dist/755.62d9698f4e62142b980949b517fded3f.js.map +0 -1
  97. package/dist/755.755.f8db61516204a76477a8.js +0 -2
  98. package/dist/dashboard.json +0 -1
  99. package/dist/esm/banner/error-banner-builder.js.map +0 -1
  100. package/dist/esm/banner/index.js.map +0 -1
  101. package/dist/esm/dialog/error-dialog-builder.js.map +0 -1
  102. package/dist/esm/dialog/error-dialog-launcher.js.map +0 -1
  103. package/dist/esm/dialog/index.js.map +0 -1
  104. package/dist/esm/error-builder.js.map +0 -1
  105. package/dist/esm/error-launcher.js.map +0 -1
  106. package/dist/esm/error-util.js.map +0 -1
  107. package/dist/esm/index.federated.js.map +0 -1
  108. package/dist/esm/index.js.map +0 -1
  109. package/dist/esm/logger.js.map +0 -1
  110. package/dist/esm/notification/index.js.map +0 -1
  111. package/dist/esm/notification/notification-builder.js.map +0 -1
  112. package/dist/esm/notification/notification-launcher.js.map +0 -1
  113. package/dist/esm/snackbar/index.js.map +0 -1
  114. package/dist/esm/snackbar/snackbar-builder.js.map +0 -1
  115. package/dist/esm/snackbar/snackbar-launcher.js.map +0 -1
  116. package/dist/esm/types.js.map +0 -1
  117. package/dist/favicon.ico +0 -0
  118. package/dist/foundation-errors.iife.min.js +0 -1
  119. package/dist/foundation-errors.js +0 -1240
  120. package/dist/foundation-errors.min.js +0 -1
  121. package/dist/foundationErrors.2c93e6eb2ef9200237968325716b6236.js.map +0 -1
  122. package/dist/index.ejs +0 -23
  123. package/dist/index.html +0 -10
  124. package/dist/info.ejs +0 -13
  125. package/dist/info.html +0 -14
  126. package/dist/main.32b6b5ccbc4fb35f99c6.js +0 -2
  127. package/dist/main.48adf629bdf2e8347fb7dc199f202017.js.map +0 -1
  128. package/dist/npm.consola.713.6bcc5abc1500250af5f5.js +0 -2
  129. package/dist/npm.consola.de429dd64b8dd7d3424e047e422d6ee1.js.map +0 -1
  130. package/dist/npm.microsoft.127.821cbcff47e0a34e88c9.js +0 -3
  131. package/dist/npm.microsoft.127.821cbcff47e0a34e88c9.js.LICENSE.txt +0 -14
  132. package/dist/npm.microsoft.4ae729aafa2e074df718ae9a73d16fa1.js.map +0 -1
  133. package/dist/remoteEntry.js +0 -2
  134. package/dist/serve.json +0 -3
  135. package/docs/api/foundation-errors.errordialogelement.md +0 -15
  136. package/docs/api/foundation-errors.errorelement.md +0 -15
  137. package/docs/api/foundation-errors.showdialog.md +0 -13
  138. package/docs/api/foundation-errors.shownotification.md +0 -13
  139. 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
  ## ErrorDialog interface
6
6
 
7
+ Interface for Error Dialog configuration
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## ErrorDialogBuilder.build() method
6
6
 
7
+ Build ErrorDialog
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -13,3 +15,5 @@ build(): ErrorDialog;
13
15
 
14
16
  [ErrorDialog](./foundation-errors.errordialog.md)
15
17
 
18
+ ErrorDialog
19
+
@@ -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> | 'warning' \| 'success' \| '' | _(Optional)_ |
21
+ | [type?](./foundation-errors.errornotification.type.md) | <code>readonly</code> | [ErrorNotificationType](./foundation-errors.errornotificationtype.md) | _(Optional)_ |
20
22
 
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- readonly type?: 'warning' | 'success' | '';
10
+ readonly type?: ErrorNotificationType;
11
11
  ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-errors](./foundation-errors.md) &gt; [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
+ ```
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## ErrorStructure interface
6
6
 
7
+ Interface for Error Structure
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## getErrorBannerBuilder variable
6
6
 
7
+ Get error banner builder instance
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## getErrorBuilder variable
6
6
 
7
+ Returns a new ErrorBuilder instance
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## getErrorDialogBuilder variable
6
6
 
7
+ Returns an instance of ErrorDialogBuilder
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## getNotificationBuilder variable
6
6
 
7
+ Get notification builder instance
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## getSnackbarBuilder variable
6
6
 
7
+ Get snackbar builder instance
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -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
- | [ErrorDialogElement](./foundation-errors.errordialogelement.md) | |
57
- | [ErrorElement](./foundation-errors.errorelement.md) | |
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.build() method
6
6
 
7
+ Build notification
8
+
7
9
  **Signature:**
8
10
 
9
11
  ```typescript
@@ -13,3 +15,5 @@ build(): ErrorNotification;
13
15
 
14
16
  [ErrorNotification](./foundation-errors.errornotification.md)
15
17
 
18
+ ErrorNotification
19
+
@@ -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: 'warning' | 'success' | ''): NotificationBuilder;
12
+ withType(type: ErrorNotificationType): NotificationBuilder;
11
13
  ```
12
14
 
13
15
  ## Parameters
14
16
 
15
17
  | Parameter | Type | Description |
16
18
  | --- | --- | --- |
17
- | type | 'warning' \| 'success' \| '' | |
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&lt;[ConfirmingAction](./foundation-errors.confirmingaction.md)<!-- -->&gt; | _(Optional)_ |
18
- | [type?](./foundation-errors.snackbar.type.md) | <code>readonly</code> | 'error' \| '' | _(Optional)_ |
20
+ | [type?](./foundation-errors.snackbar.type.md) | <code>readonly</code> | [SnackbarType](./foundation-errors.snackbartype.md) | _(Optional)_ |
19
21
 
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- readonly type?: 'error' | '';
10
+ readonly type?: SnackbarType;
11
11
  ```
@@ -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: 'error' | ''): SnackbarBuilder;
12
+ withType(type: SnackbarType): SnackbarBuilder;
13
13
  ```
14
14
 
15
15
  ## Parameters
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | type | 'error' \| '' | |
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) &gt; [@genesislcap/foundation-errors](./foundation-errors.md) &gt; [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
+ ```