@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.
Files changed (135) hide show
  1. package/README.md +66 -0
  2. package/dist/dts/banner/banner-builder.d.ts +35 -0
  3. package/dist/dts/banner/banner-builder.d.ts.map +1 -0
  4. package/dist/dts/banner/banner-launcher.d.ts +11 -0
  5. package/dist/dts/banner/banner-launcher.d.ts.map +1 -0
  6. package/dist/dts/banner/index.d.ts +3 -0
  7. package/dist/dts/banner/index.d.ts.map +1 -0
  8. package/dist/dts/dialog/dialog-builder.d.ts +35 -0
  9. package/dist/dts/dialog/dialog-builder.d.ts.map +1 -0
  10. package/dist/dts/dialog/dialog-launcher.d.ts +10 -0
  11. package/dist/dts/dialog/dialog-launcher.d.ts.map +1 -0
  12. package/dist/dts/dialog/index.d.ts +3 -0
  13. package/dist/dts/dialog/index.d.ts.map +1 -0
  14. package/dist/dts/index.d.ts +9 -0
  15. package/dist/dts/index.d.ts.map +1 -0
  16. package/dist/dts/index.federated.d.ts +1 -0
  17. package/dist/dts/index.federated.d.ts.map +1 -0
  18. package/dist/dts/logger.d.ts +2 -0
  19. package/dist/dts/logger.d.ts.map +1 -0
  20. package/dist/dts/notification-builder.d.ts +83 -0
  21. package/dist/dts/notification-builder.d.ts.map +1 -0
  22. package/dist/dts/notification-launcher.d.ts +11 -0
  23. package/dist/dts/notification-launcher.d.ts.map +1 -0
  24. package/dist/dts/notification-util.d.ts +32 -0
  25. package/dist/dts/notification-util.d.ts.map +1 -0
  26. package/dist/dts/snackbar/index.d.ts +3 -0
  27. package/dist/dts/snackbar/index.d.ts.map +1 -0
  28. package/dist/dts/snackbar/snackbar-builder.d.ts +34 -0
  29. package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -0
  30. package/dist/dts/snackbar/snackbar-launcher.d.ts +10 -0
  31. package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -0
  32. package/dist/dts/toast/index.d.ts +3 -0
  33. package/dist/dts/toast/index.d.ts.map +1 -0
  34. package/dist/dts/toast/toast-builder.d.ts +49 -0
  35. package/dist/dts/toast/toast-builder.d.ts.map +1 -0
  36. package/dist/dts/toast/toast-launcher.d.ts +10 -0
  37. package/dist/dts/toast/toast-launcher.d.ts.map +1 -0
  38. package/dist/dts/tsdoc-metadata.json +11 -0
  39. package/dist/dts/types.d.ts +106 -0
  40. package/dist/dts/types.d.ts.map +1 -0
  41. package/dist/esm/banner/banner-builder.js +49 -0
  42. package/dist/esm/banner/banner-launcher.js +23 -0
  43. package/dist/esm/banner/index.js +2 -0
  44. package/dist/esm/dialog/dialog-builder.js +49 -0
  45. package/dist/esm/dialog/dialog-launcher.js +16 -0
  46. package/dist/esm/dialog/index.js +2 -0
  47. package/dist/esm/index.federated.js +1 -0
  48. package/dist/esm/index.js +8 -0
  49. package/dist/esm/logger.js +2 -0
  50. package/dist/esm/notification-builder.js +133 -0
  51. package/dist/esm/notification-launcher.js +36 -0
  52. package/dist/esm/notification-util.js +67 -0
  53. package/dist/esm/snackbar/index.js +2 -0
  54. package/dist/esm/snackbar/snackbar-builder.js +48 -0
  55. package/dist/esm/snackbar/snackbar-launcher.js +15 -0
  56. package/dist/esm/toast/index.js +2 -0
  57. package/dist/esm/toast/toast-builder.js +70 -0
  58. package/dist/esm/toast/toast-launcher.js +54 -0
  59. package/dist/esm/types.js +8 -0
  60. package/dist/foundation-notifications.api.json +2531 -0
  61. package/dist/foundation-notifications.d.ts +435 -0
  62. package/docs/.gitattributes +2 -0
  63. package/docs/api/foundation-notifications.banner.confirmingactions.md +11 -0
  64. package/docs/api/foundation-notifications.banner.dismissingaction.md +11 -0
  65. package/docs/api/foundation-notifications.banner.md +21 -0
  66. package/docs/api/foundation-notifications.bannerbuilder.build.md +19 -0
  67. package/docs/api/foundation-notifications.bannerbuilder.md +22 -0
  68. package/docs/api/foundation-notifications.bannerbuilder.withconfirmingaction.md +25 -0
  69. package/docs/api/foundation-notifications.bannerbuilder.withdismissingaction.md +25 -0
  70. package/docs/api/foundation-notifications.confirmingaction.action.md +11 -0
  71. package/docs/api/foundation-notifications.confirmingaction.label.md +11 -0
  72. package/docs/api/foundation-notifications.confirmingaction.md +21 -0
  73. package/docs/api/foundation-notifications.dialog.confirmingactions.md +11 -0
  74. package/docs/api/foundation-notifications.dialog.dismissingaction.md +11 -0
  75. package/docs/api/foundation-notifications.dialog.md +21 -0
  76. package/docs/api/foundation-notifications.dialogbuilder.build.md +19 -0
  77. package/docs/api/foundation-notifications.dialogbuilder.md +22 -0
  78. package/docs/api/foundation-notifications.dialogbuilder.withconfirmingaction.md +25 -0
  79. package/docs/api/foundation-notifications.dialogbuilder.withdismissingaction.md +25 -0
  80. package/docs/api/foundation-notifications.dismissingaction.action.md +11 -0
  81. package/docs/api/foundation-notifications.dismissingaction.label.md +11 -0
  82. package/docs/api/foundation-notifications.dismissingaction.md +21 -0
  83. package/docs/api/foundation-notifications.getbanneranchor.md +13 -0
  84. package/docs/api/foundation-notifications.getbannerbuilder.md +13 -0
  85. package/docs/api/foundation-notifications.getdialogbuilder.md +13 -0
  86. package/docs/api/foundation-notifications.getloglevel.md +13 -0
  87. package/docs/api/foundation-notifications.getnotificationbuilder.md +13 -0
  88. package/docs/api/foundation-notifications.getnotificationcontainer.md +13 -0
  89. package/docs/api/foundation-notifications.getnotificationdetails.md +13 -0
  90. package/docs/api/foundation-notifications.getsnackbarbuilder.md +13 -0
  91. package/docs/api/foundation-notifications.gettoastbuilder.md +13 -0
  92. package/docs/api/foundation-notifications.md +58 -0
  93. package/docs/api/foundation-notifications.notificationbuilder.build.md +18 -0
  94. package/docs/api/foundation-notifications.notificationbuilder.md +28 -0
  95. package/docs/api/foundation-notifications.notificationbuilder.withalert.md +25 -0
  96. package/docs/api/foundation-notifications.notificationbuilder.withbanner.md +25 -0
  97. package/docs/api/foundation-notifications.notificationbuilder.withbody.md +25 -0
  98. package/docs/api/foundation-notifications.notificationbuilder.withdialog.md +25 -0
  99. package/docs/api/foundation-notifications.notificationbuilder.withloglevel.md +25 -0
  100. package/docs/api/foundation-notifications.notificationbuilder.withsnackbar.md +25 -0
  101. package/docs/api/foundation-notifications.notificationbuilder.withtitle.md +25 -0
  102. package/docs/api/foundation-notifications.notificationbuilder.withtoast.md +25 -0
  103. package/docs/api/foundation-notifications.notificationevent.md +20 -0
  104. package/docs/api/foundation-notifications.notificationstructure.body.md +11 -0
  105. package/docs/api/foundation-notifications.notificationstructure.config.md +18 -0
  106. package/docs/api/foundation-notifications.notificationstructure.loglevel.md +11 -0
  107. package/docs/api/foundation-notifications.notificationstructure.md +23 -0
  108. package/docs/api/foundation-notifications.notificationstructure.title.md +11 -0
  109. package/docs/api/foundation-notifications.notificationtype.md +13 -0
  110. package/docs/api/foundation-notifications.showbanner.md +13 -0
  111. package/docs/api/foundation-notifications.shownotification.md +13 -0
  112. package/docs/api/foundation-notifications.snackbar.confirmingactions.md +11 -0
  113. package/docs/api/foundation-notifications.snackbar.md +21 -0
  114. package/docs/api/foundation-notifications.snackbar.type.md +11 -0
  115. package/docs/api/foundation-notifications.snackbarbuilder.build.md +19 -0
  116. package/docs/api/foundation-notifications.snackbarbuilder.md +22 -0
  117. package/docs/api/foundation-notifications.snackbarbuilder.withconfirmingaction.md +25 -0
  118. package/docs/api/foundation-notifications.snackbarbuilder.withtype.md +23 -0
  119. package/docs/api/foundation-notifications.snackbartype.md +13 -0
  120. package/docs/api/foundation-notifications.toast.autoclose.md +11 -0
  121. package/docs/api/foundation-notifications.toast.closetimeout.md +11 -0
  122. package/docs/api/foundation-notifications.toast.md +23 -0
  123. package/docs/api/foundation-notifications.toast.position.md +11 -0
  124. package/docs/api/foundation-notifications.toast.type.md +11 -0
  125. package/docs/api/foundation-notifications.toastbuilder.build.md +19 -0
  126. package/docs/api/foundation-notifications.toastbuilder.md +23 -0
  127. package/docs/api/foundation-notifications.toastbuilder.withautoclose.md +25 -0
  128. package/docs/api/foundation-notifications.toastbuilder.withclosetimeout.md +25 -0
  129. package/docs/api/foundation-notifications.toastbuilder.withposition.md +25 -0
  130. package/docs/api/foundation-notifications.toastbuilder.withtype.md +25 -0
  131. package/docs/api/foundation-notifications.toastposition.md +13 -0
  132. package/docs/api/index.md +12 -0
  133. package/docs/api-report.md +203 -0
  134. package/license.txt +46 -0
  135. package/package.json +57 -0
@@ -0,0 +1,435 @@
1
+ import { LogLevel } from '@genesislcap/foundation-utils';
2
+
3
+ /**
4
+ * Interface for Banner configuration
5
+ * @public
6
+ */
7
+ export declare interface Banner {
8
+ readonly dismissingAction?: DismissingAction;
9
+ readonly confirmingActions?: Array<ConfirmingAction>;
10
+ }
11
+
12
+ /**
13
+ * BannerBuilder
14
+ * @public
15
+ */
16
+ export declare class BannerBuilder {
17
+ private dismissingAction;
18
+ private confirmingActions;
19
+ /**
20
+ * Add dismissing action to Banner
21
+ * @public
22
+ * @param dismissingAction - {@link DismissingAction}
23
+ * @returns
24
+ */
25
+ withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
26
+ /**
27
+ * Add confirming action to Banner
28
+ * @public
29
+ * @param confirmingAction - {@link ConfirmingAction}
30
+ * @returns
31
+ */
32
+ withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
33
+ /**
34
+ * Build Banner
35
+ * @public
36
+ * @returns Banner
37
+ */
38
+ build(): Banner;
39
+ }
40
+
41
+ /**
42
+ * Interface for Confirming Action configuration
43
+ * @public
44
+ */
45
+ export declare interface ConfirmingAction {
46
+ readonly label: String;
47
+ readonly action: Function;
48
+ }
49
+
50
+ /**
51
+ * Interface for Dialog configuration
52
+ * @public
53
+ */
54
+ export declare interface Dialog {
55
+ readonly confirmingActions?: Array<ConfirmingAction>;
56
+ readonly dismissingAction?: DismissingAction;
57
+ }
58
+
59
+ /**
60
+ * DialogBuilder class
61
+ * @public
62
+ */
63
+ export declare class DialogBuilder {
64
+ private dismissingAction;
65
+ private confirmingActions;
66
+ /**
67
+ * Add dismissing action to Dialog
68
+ * @public
69
+ * @param dismissingAction - {@link DismissingAction}
70
+ * @returns
71
+ */
72
+ withDismissingAction(dismissingAction: DismissingAction): DialogBuilder;
73
+ /**
74
+ * Add confirming action to Dialog
75
+ * @public
76
+ * @param confirmingAction - {@link ConfirmingAction}
77
+ * @returns
78
+ */
79
+ withConfirmingAction(confirmingAction: ConfirmingAction): DialogBuilder;
80
+ /**
81
+ * Build Dialog
82
+ * @public
83
+ * @returns Dialog
84
+ */
85
+ build(): Dialog;
86
+ }
87
+
88
+ /**
89
+ * @internal
90
+ */
91
+ export declare type DialogElement = NotificationElement & {
92
+ show: Function;
93
+ };
94
+
95
+ /**
96
+ * Interface for Dismissing Action configuration
97
+ * @public
98
+ */
99
+ export declare interface DismissingAction {
100
+ readonly label: String;
101
+ readonly action?: Function;
102
+ }
103
+
104
+ /**
105
+ * Get the banner anchor to attach the banner to
106
+ * @public
107
+ * @param element - The element to start searching from
108
+ * @returns
109
+ */
110
+ export declare const getBannerAnchor: (element: any) => HTMLElement | null;
111
+
112
+ /**
113
+ * Get banner builder instance
114
+ * @public
115
+ */
116
+ export declare const getBannerBuilder: () => BannerBuilder;
117
+
118
+ /**
119
+ * Returns an instance of DialogBuilder
120
+ * @public
121
+ */
122
+ export declare const getDialogBuilder: () => DialogBuilder;
123
+
124
+ /**
125
+ * Retrieves the log level from an NotificationStructure object
126
+ * @public
127
+ * @param details - The NotificationStructure object
128
+ * @returns The log level or the default value (LogLevel.Debug) if not present
129
+ */
130
+ export declare const getLoglevel: (details: NotificationStructure) => LogLevel;
131
+
132
+ /**
133
+ * Returns a new NotificationBuilder instance
134
+ * @public
135
+ */
136
+ export declare const getNotificationBuilder: () => NotificationBuilder;
137
+
138
+ /**
139
+ * Get/Create the error container in the DOM
140
+ * @public
141
+ * @param id - The id of the container
142
+ * @param tagName - The tag name to create prefix for the design system provider
143
+ * @returns
144
+ */
145
+ export declare const getNotificationContainer: (id: string, tagName: String) => HTMLElement;
146
+
147
+ /**
148
+ * Retrieves the notification details from an NotificationStructure object
149
+ * @public
150
+ * @param details - The NotificationStructure object
151
+ * @returns The title and body concatenated as a string, or default values ('Error: Something went wrong') if not present
152
+ */
153
+ export declare const getNotificationDetails: (details: NotificationStructure) => string;
154
+
155
+ /**
156
+ * Get snackbar builder instance
157
+ * @public
158
+ */
159
+ export declare const getSnackbarBuilder: () => SnackbarBuilder;
160
+
161
+ /**
162
+ * Get notification builder instance
163
+ * @public
164
+ */
165
+ export declare const getToastBuilder: () => ToastBuilder;
166
+
167
+ /**
168
+ * NotificationBuilder to build NotificationStructure
169
+ * @public
170
+ */
171
+ export declare class NotificationBuilder {
172
+ private title;
173
+ private body;
174
+ private logLevel;
175
+ private alert;
176
+ private toast;
177
+ private banner;
178
+ private snackbar;
179
+ private dialog;
180
+ /**
181
+ * Add title to notification
182
+ * @public
183
+ * @param title - string
184
+ * @returns
185
+ */
186
+ withTitle(title: string): NotificationBuilder;
187
+ /**
188
+ * Add body details to notification
189
+ * @public
190
+ * @param body - string
191
+ * @returns
192
+ */
193
+ withBody(body: string): NotificationBuilder;
194
+ /**
195
+ * Add log level to notification
196
+ * @public
197
+ * @returns
198
+ */
199
+ withLogLevel(logLevel: LogLevel): NotificationBuilder;
200
+ /**
201
+ * Add alert to notification
202
+ * @public
203
+ * @param alert - boolean
204
+ * @returns
205
+ */
206
+ withAlert(alert: boolean): NotificationBuilder;
207
+ /**
208
+ * Add toast to notification
209
+ * @public
210
+ * @param notification - {@link Toast}
211
+ * @returns
212
+ */
213
+ withToast(toast: Toast): NotificationBuilder;
214
+ /**
215
+ * Add banner to notification
216
+ * @public
217
+ * @param banner - {@link Banner}
218
+ * @returns
219
+ */
220
+ withBanner(banner: Banner): NotificationBuilder;
221
+ /**
222
+ * Add snackbar to notification
223
+ * @public
224
+ * @param snackbar - {@link Snackbar}
225
+ * @returns
226
+ */
227
+ withSnackbar(snackbar: Snackbar): NotificationBuilder;
228
+ /**
229
+ * Add dialog to notification
230
+ * @public
231
+ * @param dialog - {@link Dialog}
232
+ * @returns
233
+ */
234
+ withDialog(dialog: Dialog): NotificationBuilder;
235
+ /**
236
+ * Build NotificationStructure
237
+ * @public
238
+ * @returns
239
+ */
240
+ build(): NotificationStructure;
241
+ }
242
+
243
+ /**
244
+ * @internal
245
+ */
246
+ export declare type NotificationElement = HTMLElement & {
247
+ notification: NotificationStructure;
248
+ };
249
+
250
+ /**
251
+ * @public
252
+ * enum for different types of notification events
253
+ */
254
+ export declare enum NotificationEvent {
255
+ NOTIFICATION_EVENT = "notification-event"
256
+ }
257
+
258
+ /**
259
+ * Interface for Structure
260
+ * @public
261
+ */
262
+ export declare interface NotificationStructure {
263
+ readonly title: string;
264
+ readonly body: string;
265
+ readonly logLevel?: LogLevel;
266
+ readonly config?: {
267
+ /**
268
+ * @deprecated Use logLevel from the top level instead
269
+ */
270
+ readonly logLevel?: LogLevel;
271
+ readonly alert?: boolean;
272
+ readonly toast?: Toast;
273
+ readonly banner?: Banner;
274
+ readonly snackbar?: Snackbar;
275
+ readonly dialog?: Dialog;
276
+ };
277
+ }
278
+
279
+ /**
280
+ * @public
281
+ * type for notification
282
+ */
283
+ export declare type NotificationType = 'error' | 'warning' | 'success';
284
+
285
+ /**
286
+ * Shows the notificationStructure dialog
287
+ * @public
288
+ * @param notificationStructure - The NotificationStructure object
289
+ * @param tagName - The tag name to create prefix for the design system provider & notificationStructure component
290
+ * @param notificationBoundary - target listener for the notification
291
+ * @returns
292
+ * */
293
+ export declare const showBanner: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary: HTMLElement) => void;
294
+
295
+ /**
296
+ * Shows the dialog
297
+ * @internal
298
+ * @param notification - The NotificationStructure object
299
+ * @param tagName - The tag name to create prefix for the design system provider & notification component
300
+ * @returns
301
+ * */
302
+ export declare const showDialog: (notification: NotificationStructure, tagName: String) => void;
303
+
304
+ /**
305
+ * Shows the notificationStructure in the appropriate component
306
+ * @public
307
+ * @param notificationStructure - The NotificationStructure object
308
+ * @param tagName - The tag name to create prefix for the design system provider *
309
+ * @param notificationBoundary - The notificationStructure boundary element
310
+ * @returns
311
+ * */
312
+ export declare const showNotification: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
313
+
314
+ /**
315
+ * Shows the snackbar
316
+ * @internal
317
+ * @param notification - The NotificationStructure object
318
+ * @param tagName - The tag name to create prefix for the design system provider & notification component
319
+ * @returns
320
+ * */
321
+ export declare const showSnackbar: (notification: NotificationStructure, tagName: String) => void;
322
+
323
+ /**
324
+ * Shows the notificationStructure
325
+ * @internal
326
+ * @param notificationStructure - The NotificationStructure object
327
+ * @param tagName - The tag name to create prefix for the design system provider & notificationStructure component
328
+ * @returns
329
+ * */
330
+ export declare const showToast: (notificationStructure: NotificationStructure, tagName: String) => void;
331
+
332
+ /**
333
+ * Interface for Snackbar configuration
334
+ * @public
335
+ */
336
+ export declare interface Snackbar {
337
+ readonly type?: SnackbarType;
338
+ readonly confirmingActions?: Array<ConfirmingAction>;
339
+ }
340
+
341
+ /**
342
+ * SnackbarBuilder to build Snackbar
343
+ * @public
344
+ */
345
+ export declare class SnackbarBuilder {
346
+ private confirmingActions;
347
+ private type;
348
+ /**
349
+ * @public
350
+ * @param type - {@link SnackbarType}
351
+ * @returns
352
+ */
353
+ withType(type: SnackbarType): SnackbarBuilder;
354
+ /**
355
+ * Add confirming action to snackbar
356
+ * @public
357
+ * @param confirmingAction - {@link ConfirmingAction}
358
+ * @returns
359
+ */
360
+ withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
361
+ /**
362
+ * Build snackbar
363
+ * @public
364
+ * @returns Snackbar
365
+ */
366
+ build(): Snackbar;
367
+ }
368
+
369
+ /**
370
+ * @public
371
+ * type for snackbar type
372
+ */
373
+ export declare type SnackbarType = 'error';
374
+
375
+ /**
376
+ * Interface for Toast configuration
377
+ * @public
378
+ */
379
+ export declare interface Toast {
380
+ readonly position?: ToastPosition;
381
+ readonly type?: NotificationType;
382
+ readonly autoClose?: boolean;
383
+ readonly closeTimeout?: number;
384
+ }
385
+
386
+ /**
387
+ * @public
388
+ */
389
+ export declare class ToastBuilder {
390
+ private position;
391
+ private autoClose;
392
+ private closeTimeout;
393
+ private type;
394
+ /**
395
+ * Add position to toast
396
+ * @public
397
+ * @param position - {@link ToastPosition}
398
+ * @returns
399
+ */
400
+ withPosition(position: ToastPosition): ToastBuilder;
401
+ /**
402
+ * Add auto close to notification
403
+ * @public
404
+ * @param autoClose - boolean
405
+ * @returns
406
+ */
407
+ withAutoClose(autoClose: boolean): ToastBuilder;
408
+ /**
409
+ * Add close timeout to notification
410
+ * @public
411
+ * @param closeTimeout - number
412
+ * @returns
413
+ */
414
+ withCloseTimeout(closeTimeout: number): ToastBuilder;
415
+ /**
416
+ * Add type to notification, if the type is anything other than 'warning' or 'success' do not add it
417
+ * @public
418
+ * @param type - {@link NotificationType}
419
+ * @returns
420
+ */
421
+ withType(type: NotificationType): ToastBuilder;
422
+ /**
423
+ * Build notification
424
+ * @returns Toast
425
+ */
426
+ build(): Toast;
427
+ }
428
+
429
+ /**
430
+ * @public
431
+ * type for notification position
432
+ */
433
+ export declare type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
434
+
435
+ export { }
@@ -0,0 +1,2 @@
1
+ *.md -diff
2
+ *.md linguist-generated
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [Banner](./foundation-notifications.banner.md) &gt; [confirmingActions](./foundation-notifications.banner.confirmingactions.md)
4
+
5
+ ## Banner.confirmingActions property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly confirmingActions?: Array<ConfirmingAction>;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [Banner](./foundation-notifications.banner.md) &gt; [dismissingAction](./foundation-notifications.banner.dismissingaction.md)
4
+
5
+ ## Banner.dismissingAction property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly dismissingAction?: DismissingAction;
11
+ ```
@@ -0,0 +1,21 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [Banner](./foundation-notifications.banner.md)
4
+
5
+ ## Banner interface
6
+
7
+ Interface for Banner configuration
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface Banner
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [confirmingActions?](./foundation-notifications.banner.confirmingactions.md) | <code>readonly</code> | Array&lt;[ConfirmingAction](./foundation-notifications.confirmingaction.md)<!-- -->&gt; | _(Optional)_ |
20
+ | [dismissingAction?](./foundation-notifications.banner.dismissingaction.md) | <code>readonly</code> | [DismissingAction](./foundation-notifications.dismissingaction.md) | _(Optional)_ |
21
+
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [BannerBuilder](./foundation-notifications.bannerbuilder.md) &gt; [build](./foundation-notifications.bannerbuilder.build.md)
4
+
5
+ ## BannerBuilder.build() method
6
+
7
+ Build Banner
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ build(): Banner;
13
+ ```
14
+ **Returns:**
15
+
16
+ [Banner](./foundation-notifications.banner.md)
17
+
18
+ Banner
19
+
@@ -0,0 +1,22 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [BannerBuilder](./foundation-notifications.bannerbuilder.md)
4
+
5
+ ## BannerBuilder class
6
+
7
+ BannerBuilder
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare class BannerBuilder
13
+ ```
14
+
15
+ ## Methods
16
+
17
+ | Method | Modifiers | Description |
18
+ | --- | --- | --- |
19
+ | [build()](./foundation-notifications.bannerbuilder.build.md) | | Build Banner |
20
+ | [withConfirmingAction(confirmingAction)](./foundation-notifications.bannerbuilder.withconfirmingaction.md) | | Add confirming action to Banner |
21
+ | [withDismissingAction(dismissingAction)](./foundation-notifications.bannerbuilder.withdismissingaction.md) | | Add dismissing action to Banner |
22
+
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [BannerBuilder](./foundation-notifications.bannerbuilder.md) &gt; [withConfirmingAction](./foundation-notifications.bannerbuilder.withconfirmingaction.md)
4
+
5
+ ## BannerBuilder.withConfirmingAction() method
6
+
7
+ Add confirming action to Banner
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
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
+ [BannerBuilder](./foundation-notifications.bannerbuilder.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) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [BannerBuilder](./foundation-notifications.bannerbuilder.md) &gt; [withDismissingAction](./foundation-notifications.bannerbuilder.withdismissingaction.md)
4
+
5
+ ## BannerBuilder.withDismissingAction() method
6
+
7
+ Add dismissing action to Banner
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | dismissingAction | [DismissingAction](./foundation-notifications.dismissingaction.md) | [DismissingAction](./foundation-notifications.dismissingaction.md) |
20
+
21
+ **Returns:**
22
+
23
+ [BannerBuilder](./foundation-notifications.bannerbuilder.md)
24
+
25
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [ConfirmingAction](./foundation-notifications.confirmingaction.md) &gt; [action](./foundation-notifications.confirmingaction.action.md)
4
+
5
+ ## ConfirmingAction.action property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly action: Function;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [ConfirmingAction](./foundation-notifications.confirmingaction.md) &gt; [label](./foundation-notifications.confirmingaction.label.md)
4
+
5
+ ## ConfirmingAction.label property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly label: String;
11
+ ```
@@ -0,0 +1,21 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [ConfirmingAction](./foundation-notifications.confirmingaction.md)
4
+
5
+ ## ConfirmingAction interface
6
+
7
+ Interface for Confirming Action configuration
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface ConfirmingAction
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [action](./foundation-notifications.confirmingaction.action.md) | <code>readonly</code> | Function | |
20
+ | [label](./foundation-notifications.confirmingaction.label.md) | <code>readonly</code> | String | |
21
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [Dialog](./foundation-notifications.dialog.md) &gt; [confirmingActions](./foundation-notifications.dialog.confirmingactions.md)
4
+
5
+ ## Dialog.confirmingActions property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly confirmingActions?: Array<ConfirmingAction>;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [Dialog](./foundation-notifications.dialog.md) &gt; [dismissingAction](./foundation-notifications.dialog.dismissingaction.md)
4
+
5
+ ## Dialog.dismissingAction property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly dismissingAction?: DismissingAction;
11
+ ```
@@ -0,0 +1,21 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [Dialog](./foundation-notifications.dialog.md)
4
+
5
+ ## Dialog interface
6
+
7
+ Interface for Dialog configuration
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface Dialog
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [confirmingActions?](./foundation-notifications.dialog.confirmingactions.md) | <code>readonly</code> | Array&lt;[ConfirmingAction](./foundation-notifications.confirmingaction.md)<!-- -->&gt; | _(Optional)_ |
20
+ | [dismissingAction?](./foundation-notifications.dialog.dismissingaction.md) | <code>readonly</code> | [DismissingAction](./foundation-notifications.dismissingaction.md) | _(Optional)_ |
21
+
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-notifications](./foundation-notifications.md) &gt; [DialogBuilder](./foundation-notifications.dialogbuilder.md) &gt; [build](./foundation-notifications.dialogbuilder.build.md)
4
+
5
+ ## DialogBuilder.build() method
6
+
7
+ Build Dialog
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ build(): Dialog;
13
+ ```
14
+ **Returns:**
15
+
16
+ [Dialog](./foundation-notifications.dialog.md)
17
+
18
+ Dialog
19
+