@genesislcap/foundation-notifications 14.408.0 → 14.409.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 (153) hide show
  1. package/README.md +6 -121
  2. package/package.json +12 -12
  3. package/docs/api/foundation-notifications.alertstructure.body.md +0 -11
  4. package/docs/api/foundation-notifications.alertstructure.loglevel.md +0 -11
  5. package/docs/api/foundation-notifications.alertstructure.md +0 -98
  6. package/docs/api/foundation-notifications.alertstructure.title.md +0 -11
  7. package/docs/api/foundation-notifications.banner.confirmingactions.md +0 -11
  8. package/docs/api/foundation-notifications.banner.dismissingaction.md +0 -11
  9. package/docs/api/foundation-notifications.banner.md +0 -81
  10. package/docs/api/foundation-notifications.bannerbuilder.build.md +0 -24
  11. package/docs/api/foundation-notifications.bannerbuilder.md +0 -81
  12. package/docs/api/foundation-notifications.bannerbuilder.withconfirmingaction.md +0 -60
  13. package/docs/api/foundation-notifications.bannerbuilder.withdismissingaction.md +0 -60
  14. package/docs/api/foundation-notifications.bannerstructure.banner.md +0 -11
  15. package/docs/api/foundation-notifications.bannerstructure.body.md +0 -11
  16. package/docs/api/foundation-notifications.bannerstructure.loglevel.md +0 -11
  17. package/docs/api/foundation-notifications.bannerstructure.md +0 -100
  18. package/docs/api/foundation-notifications.configurenotifications.md +0 -52
  19. package/docs/api/foundation-notifications.confirmingaction.action.md +0 -11
  20. package/docs/api/foundation-notifications.confirmingaction.label.md +0 -11
  21. package/docs/api/foundation-notifications.confirmingaction.md +0 -77
  22. package/docs/api/foundation-notifications.dialog.confirmingactions.md +0 -11
  23. package/docs/api/foundation-notifications.dialog.dismissingaction.md +0 -11
  24. package/docs/api/foundation-notifications.dialog.md +0 -81
  25. package/docs/api/foundation-notifications.dialogbuilder.build.md +0 -24
  26. package/docs/api/foundation-notifications.dialogbuilder.md +0 -81
  27. package/docs/api/foundation-notifications.dialogbuilder.withconfirmingaction.md +0 -60
  28. package/docs/api/foundation-notifications.dialogbuilder.withdismissingaction.md +0 -60
  29. package/docs/api/foundation-notifications.dialogstructure.body.md +0 -11
  30. package/docs/api/foundation-notifications.dialogstructure.dialog.md +0 -11
  31. package/docs/api/foundation-notifications.dialogstructure.loglevel.md +0 -11
  32. package/docs/api/foundation-notifications.dialogstructure.md +0 -119
  33. package/docs/api/foundation-notifications.dialogstructure.title.md +0 -11
  34. package/docs/api/foundation-notifications.dismissingaction.action.md +0 -11
  35. package/docs/api/foundation-notifications.dismissingaction.label.md +0 -11
  36. package/docs/api/foundation-notifications.dismissingaction.md +0 -79
  37. package/docs/api/foundation-notifications.getbanneranchor.md +0 -55
  38. package/docs/api/foundation-notifications.getbannerbuilder.md +0 -22
  39. package/docs/api/foundation-notifications.getdialogbuilder.md +0 -22
  40. package/docs/api/foundation-notifications.getloglevel.md +0 -56
  41. package/docs/api/foundation-notifications.getnotificationbuilder.md +0 -22
  42. package/docs/api/foundation-notifications.getnotificationcontainer.md +0 -71
  43. package/docs/api/foundation-notifications.getnotificationdetails.md +0 -56
  44. package/docs/api/foundation-notifications.getsnackbarbuilder.md +0 -22
  45. package/docs/api/foundation-notifications.gettoastbuilder.md +0 -22
  46. package/docs/api/foundation-notifications.md +0 -570
  47. package/docs/api/foundation-notifications.notificationbuilder.build.md +0 -23
  48. package/docs/api/foundation-notifications.notificationbuilder.md +0 -179
  49. package/docs/api/foundation-notifications.notificationbuilder.withalert.md +0 -60
  50. package/docs/api/foundation-notifications.notificationbuilder.withbanner.md +0 -60
  51. package/docs/api/foundation-notifications.notificationbuilder.withbody.md +0 -60
  52. package/docs/api/foundation-notifications.notificationbuilder.withcreatedat.md +0 -60
  53. package/docs/api/foundation-notifications.notificationbuilder.withdialog.md +0 -60
  54. package/docs/api/foundation-notifications.notificationbuilder.withloglevel.md +0 -58
  55. package/docs/api/foundation-notifications.notificationbuilder.withsnackbar.md +0 -60
  56. package/docs/api/foundation-notifications.notificationbuilder.withtitle.md +0 -60
  57. package/docs/api/foundation-notifications.notificationbuilder.withtoast.md +0 -58
  58. package/docs/api/foundation-notifications.notificationdatarow.alert_id.md +0 -11
  59. package/docs/api/foundation-notifications.notificationdatarow.created_at.md +0 -11
  60. package/docs/api/foundation-notifications.notificationdatarow.details.md +0 -14
  61. package/docs/api/foundation-notifications.notificationdatarow.expiry.md +0 -11
  62. package/docs/api/foundation-notifications.notificationdatarow.header.md +0 -11
  63. package/docs/api/foundation-notifications.notificationdatarow.md +0 -230
  64. package/docs/api/foundation-notifications.notificationdatarow.message.md +0 -11
  65. package/docs/api/foundation-notifications.notificationdatarow.notify_severity.md +0 -11
  66. package/docs/api/foundation-notifications.notificationdatarow.sender.md +0 -11
  67. package/docs/api/foundation-notifications.notificationdatarow.table_entity_id.md +0 -11
  68. package/docs/api/foundation-notifications.notificationdatarow.topic.md +0 -11
  69. package/docs/api/foundation-notifications.notificationdatarow.user_name.md +0 -11
  70. package/docs/api/foundation-notifications.notificationevent.md +0 -48
  71. package/docs/api/foundation-notifications.notificationseverity.md +0 -13
  72. package/docs/api/foundation-notifications.notificationstructure.body.md +0 -11
  73. package/docs/api/foundation-notifications.notificationstructure.config.md +0 -18
  74. package/docs/api/foundation-notifications.notificationstructure.createdat.md +0 -11
  75. package/docs/api/foundation-notifications.notificationstructure.iconname.md +0 -11
  76. package/docs/api/foundation-notifications.notificationstructure.loglevel.md +0 -11
  77. package/docs/api/foundation-notifications.notificationstructure.md +0 -163
  78. package/docs/api/foundation-notifications.notificationstructure.title.md +0 -11
  79. package/docs/api/foundation-notifications.notificationtype.md +0 -13
  80. package/docs/api/foundation-notifications.notifycontainer.allowcloseall.md +0 -11
  81. package/docs/api/foundation-notifications.notifycontainer.allowmanualcollapse.md +0 -11
  82. package/docs/api/foundation-notifications.notifycontainer.designsystemprefix.md +0 -11
  83. package/docs/api/foundation-notifications.notifycontainer.disconnectedcallback.md +0 -15
  84. package/docs/api/foundation-notifications.notifycontainer.md +0 -244
  85. package/docs/api/foundation-notifications.notifycontainer.notificationinterval.md +0 -11
  86. package/docs/api/foundation-notifications.notifycontainer.position.md +0 -11
  87. package/docs/api/foundation-notifications.notifycontainer.showcount.md +0 -11
  88. package/docs/api/foundation-notifications.notifycontainer.slottednodes.md +0 -11
  89. package/docs/api/foundation-notifications.notifycontainer.sortfn.md +0 -11
  90. package/docs/api/foundation-notifications.notifycontainer.stackcollapsed.md +0 -11
  91. package/docs/api/foundation-notifications.notifycontainer.stackthreshold.md +0 -11
  92. package/docs/api/foundation-notifications.notifycontainerconfig.allowcloseall.md +0 -13
  93. package/docs/api/foundation-notifications.notifycontainerconfig.allowmanualcollapse.md +0 -13
  94. package/docs/api/foundation-notifications.notifycontainerconfig.designsystemprefix.md +0 -13
  95. package/docs/api/foundation-notifications.notifycontainerconfig.md +0 -191
  96. package/docs/api/foundation-notifications.notifycontainerconfig.notificationinterval.md +0 -15
  97. package/docs/api/foundation-notifications.notifycontainerconfig.position.md +0 -13
  98. package/docs/api/foundation-notifications.notifycontainerconfig.showcount.md +0 -13
  99. package/docs/api/foundation-notifications.notifycontainerconfig.sortfn.md +0 -13
  100. package/docs/api/foundation-notifications.notifycontainerconfig.stackthreshold.md +0 -13
  101. package/docs/api/foundation-notifications.showbanner.md +0 -87
  102. package/docs/api/foundation-notifications.showloggerloglevel.md +0 -54
  103. package/docs/api/foundation-notifications.shownotification.md +0 -87
  104. package/docs/api/foundation-notifications.shownotificationalert.md +0 -52
  105. package/docs/api/foundation-notifications.shownotificationbanner.md +0 -82
  106. package/docs/api/foundation-notifications.shownotificationdialog.md +0 -82
  107. package/docs/api/foundation-notifications.shownotificationsnackbar.md +0 -66
  108. package/docs/api/foundation-notifications.shownotificationtoast.md +0 -82
  109. package/docs/api/foundation-notifications.snackbar.autoclose.md +0 -11
  110. package/docs/api/foundation-notifications.snackbar.closetimeout.md +0 -11
  111. package/docs/api/foundation-notifications.snackbar.confirmingactions.md +0 -11
  112. package/docs/api/foundation-notifications.snackbar.md +0 -123
  113. package/docs/api/foundation-notifications.snackbar.type.md +0 -11
  114. package/docs/api/foundation-notifications.snackbarbuilder.build.md +0 -24
  115. package/docs/api/foundation-notifications.snackbarbuilder.md +0 -79
  116. package/docs/api/foundation-notifications.snackbarbuilder.withconfirmingaction.md +0 -60
  117. package/docs/api/foundation-notifications.snackbarbuilder.withtype.md +0 -58
  118. package/docs/api/foundation-notifications.snackbarstructure.body.md +0 -11
  119. package/docs/api/foundation-notifications.snackbarstructure.loglevel.md +0 -11
  120. package/docs/api/foundation-notifications.snackbarstructure.md +0 -100
  121. package/docs/api/foundation-notifications.snackbarstructure.snackbar.md +0 -11
  122. package/docs/api/foundation-notifications.snackbartype.md +0 -13
  123. package/docs/api/foundation-notifications.sortnotificationbyseverity.md +0 -73
  124. package/docs/api/foundation-notifications.toast.autoclose.md +0 -11
  125. package/docs/api/foundation-notifications.toast.buttons.md +0 -11
  126. package/docs/api/foundation-notifications.toast.closetimeout.md +0 -11
  127. package/docs/api/foundation-notifications.toast.details.md +0 -11
  128. package/docs/api/foundation-notifications.toast.md +0 -165
  129. package/docs/api/foundation-notifications.toast.position.md +0 -11
  130. package/docs/api/foundation-notifications.toast.type.md +0 -11
  131. package/docs/api/foundation-notifications.toastbuilder.build.md +0 -24
  132. package/docs/api/foundation-notifications.toastbuilder.md +0 -135
  133. package/docs/api/foundation-notifications.toastbuilder.withautoclose.md +0 -60
  134. package/docs/api/foundation-notifications.toastbuilder.withbuttons.md +0 -60
  135. package/docs/api/foundation-notifications.toastbuilder.withclosetimeout.md +0 -60
  136. package/docs/api/foundation-notifications.toastbuilder.withdetails.md +0 -60
  137. package/docs/api/foundation-notifications.toastbuilder.withposition.md +0 -60
  138. package/docs/api/foundation-notifications.toastbuilder.withtype.md +0 -60
  139. package/docs/api/foundation-notifications.toastbutton.action.md +0 -54
  140. package/docs/api/foundation-notifications.toastbutton.appearance.md +0 -11
  141. package/docs/api/foundation-notifications.toastbutton.condition.md +0 -54
  142. package/docs/api/foundation-notifications.toastbutton.md +0 -110
  143. package/docs/api/foundation-notifications.toastbutton.placeholder.md +0 -11
  144. package/docs/api/foundation-notifications.toastposition.md +0 -13
  145. package/docs/api/foundation-notifications.toaststructure.body.md +0 -11
  146. package/docs/api/foundation-notifications.toaststructure.createdat.md +0 -11
  147. package/docs/api/foundation-notifications.toaststructure.iconname.md +0 -11
  148. package/docs/api/foundation-notifications.toaststructure.loglevel.md +0 -11
  149. package/docs/api/foundation-notifications.toaststructure.md +0 -161
  150. package/docs/api/foundation-notifications.toaststructure.title.md +0 -11
  151. package/docs/api/foundation-notifications.toaststructure.toast.md +0 -11
  152. package/docs/api/index.md +0 -30
  153. package/docs/api-report.md.api.md +0 -428
@@ -1,428 +0,0 @@
1
- ## API Report File for "@genesislcap/foundation-notifications"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { GenesisElement } from '@genesislcap/web-core';
8
- import { LogLevel } from '@genesislcap/foundation-logger';
9
-
10
- // @public
11
- export interface AlertStructure {
12
- // (undocumented)
13
- readonly body: string;
14
- // (undocumented)
15
- readonly logLevel?: LogLevel;
16
- // (undocumented)
17
- readonly title: string;
18
- }
19
-
20
- // @public
21
- export interface Banner {
22
- // (undocumented)
23
- readonly confirmingActions?: Array<ConfirmingAction>;
24
- // (undocumented)
25
- readonly dismissingAction?: DismissingAction;
26
- }
27
-
28
- // @public @deprecated
29
- export class BannerBuilder {
30
- // @deprecated
31
- build(): Banner;
32
- // @deprecated
33
- withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
34
- // @deprecated
35
- withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
36
- }
37
-
38
- // @public
39
- export interface BannerStructure {
40
- // (undocumented)
41
- readonly banner?: Banner;
42
- // (undocumented)
43
- readonly body: string;
44
- // (undocumented)
45
- readonly logLevel?: LogLevel;
46
- }
47
-
48
- // @public
49
- export const configureNotifications: (config: Partial<NotifyContainerConfig>) => void;
50
-
51
- // @public
52
- export interface ConfirmingAction {
53
- // (undocumented)
54
- readonly action: Function;
55
- // (undocumented)
56
- readonly label: String;
57
- }
58
-
59
- // @public
60
- export interface Dialog {
61
- // (undocumented)
62
- readonly confirmingActions?: Array<ConfirmingAction>;
63
- // (undocumented)
64
- readonly dismissingAction?: DismissingAction;
65
- }
66
-
67
- // @public @deprecated
68
- export class DialogBuilder {
69
- // @deprecated
70
- build(): Dialog;
71
- // @deprecated
72
- withConfirmingAction(confirmingAction: ConfirmingAction): DialogBuilder;
73
- // @deprecated
74
- withDismissingAction(dismissingAction: DismissingAction): DialogBuilder;
75
- }
76
-
77
- // Warning: (ae-internal-missing-underscore) The name "DialogElement" should be prefixed with an underscore because the declaration is marked as @internal
78
- //
79
- // @internal (undocumented)
80
- export type DialogElement = NotificationElement & {
81
- show: Function;
82
- };
83
-
84
- // @public
85
- export interface DialogStructure {
86
- // (undocumented)
87
- readonly body: string;
88
- // (undocumented)
89
- readonly dialog?: Dialog;
90
- // (undocumented)
91
- readonly logLevel?: LogLevel;
92
- // (undocumented)
93
- readonly title: string;
94
- }
95
-
96
- // @public
97
- export interface DismissingAction {
98
- // (undocumented)
99
- readonly action?: Function;
100
- // (undocumented)
101
- readonly label: String;
102
- }
103
-
104
- // @public
105
- export const getBannerAnchor: (element: any) => HTMLElement | null;
106
-
107
- // @public @deprecated
108
- export const getBannerBuilder: () => BannerBuilder;
109
-
110
- // @public @deprecated
111
- export const getDialogBuilder: () => DialogBuilder;
112
-
113
- // @public
114
- export const getLoglevel: (details: NotificationStructure) => LogLevel;
115
-
116
- // @public @deprecated
117
- export const getNotificationBuilder: () => NotificationBuilder;
118
-
119
- // @public
120
- export const getNotificationContainer: (id: string, tagName: String) => HTMLElement;
121
-
122
- // @public
123
- export const getNotificationDetails: (details: NotificationStructure) => string;
124
-
125
- // @public @deprecated
126
- export const getSnackbarBuilder: () => SnackbarBuilder;
127
-
128
- // @public @deprecated
129
- export const getToastBuilder: () => ToastBuilder;
130
-
131
- // @public @deprecated
132
- export class NotificationBuilder {
133
- // @deprecated
134
- build(): NotificationStructure;
135
- // @deprecated
136
- withAlert(alert: boolean): NotificationBuilder;
137
- // @deprecated
138
- withBanner(banner: Banner): NotificationBuilder;
139
- // @deprecated
140
- withBody(body: string): NotificationBuilder;
141
- // @deprecated
142
- withCreatedAt(createdAt: Date): NotificationBuilder;
143
- // @deprecated
144
- withDialog(dialog: Dialog): NotificationBuilder;
145
- // @deprecated
146
- withLogLevel(logLevel: LogLevel): NotificationBuilder;
147
- // @deprecated
148
- withSnackbar(snackbar: Snackbar): NotificationBuilder;
149
- // @deprecated
150
- withTitle(title: string): NotificationBuilder;
151
- // @deprecated
152
- withToast(toast: Toast): NotificationBuilder;
153
- }
154
-
155
- // @public
156
- export interface NotificationDataRow {
157
- // (undocumented)
158
- ALERT_ID: string;
159
- // (undocumented)
160
- CREATED_AT: number;
161
- // (undocumented)
162
- DETAILS: {
163
- OPERATION: string;
164
- ROW_REF: string;
165
- };
166
- // (undocumented)
167
- EXPIRY?: number;
168
- // (undocumented)
169
- HEADER: string;
170
- // (undocumented)
171
- MESSAGE: string;
172
- // (undocumented)
173
- NOTIFY_SEVERITY: NotificationSeverity;
174
- // (undocumented)
175
- SENDER?: null;
176
- // (undocumented)
177
- TABLE_ENTITY_ID: string;
178
- // (undocumented)
179
- TOPIC: string;
180
- // (undocumented)
181
- USER_NAME: string;
182
- }
183
-
184
- // Warning: (ae-internal-missing-underscore) The name "NotificationElement" should be prefixed with an underscore because the declaration is marked as @internal
185
- //
186
- // @internal (undocumented)
187
- export type NotificationElement = HTMLElement & {
188
- notification: NotificationStructure;
189
- };
190
-
191
- // @public
192
- export enum NotificationEvent {
193
- // (undocumented)
194
- NOTIFICATION_EVENT = "notification-event"
195
- }
196
-
197
- // @public
198
- export type NotificationSeverity = 'Information' | 'Warning' | 'Serious' | 'Critical';
199
-
200
- // @public
201
- export interface NotificationStructure {
202
- // (undocumented)
203
- readonly body: string;
204
- // (undocumented)
205
- readonly config?: {
206
- readonly logLevel?: LogLevel;
207
- readonly alert?: boolean;
208
- readonly toast?: Toast;
209
- readonly banner?: Banner;
210
- readonly snackbar?: Snackbar;
211
- readonly dialog?: Dialog;
212
- };
213
- // (undocumented)
214
- readonly createdAt?: Date;
215
- // (undocumented)
216
- readonly iconName?: string;
217
- // (undocumented)
218
- readonly logLevel?: LogLevel;
219
- // (undocumented)
220
- readonly title?: string;
221
- }
222
-
223
- // @public
224
- export type NotificationType = 'error' | 'warning' | 'success';
225
-
226
- // @public (undocumented)
227
- export class NotifyContainer extends GenesisElement implements NotifyContainerConfig {
228
- // (undocumented)
229
- allowCloseAll: boolean;
230
- // (undocumented)
231
- allowManualCollapse: boolean;
232
- // @internal (undocumented)
233
- connectedCallback(): void;
234
- // (undocumented)
235
- designSystemPrefix: string;
236
- // (undocumented)
237
- disconnectedCallback(): void;
238
- // @internal (undocumented)
239
- handleCloseAll(): void;
240
- // @internal (undocumented)
241
- handleContainerClick(): void;
242
- // @internal (undocumented)
243
- handleToggleCollapse(): void;
244
- // (undocumented)
245
- notificationInterval: number;
246
- // @internal (undocumented)
247
- notificationIntervalChanged(_oldValue: number, newValue: number): void;
248
- // (undocumented)
249
- position: ToastPosition;
250
- // (undocumented)
251
- showCount: boolean;
252
- // (undocumented)
253
- slottedNodes: Node[];
254
- // @internal (undocumented)
255
- slottedNodesChanged(): void;
256
- // (undocumented)
257
- sortFn?: (a: HTMLElement, b: HTMLElement) => number;
258
- // @internal (undocumented)
259
- sortFnChanged(): void;
260
- // (undocumented)
261
- stackCollapsed: boolean;
262
- // (undocumented)
263
- stackThreshold: number;
264
- }
265
-
266
- // @public (undocumented)
267
- export interface NotifyContainerConfig {
268
- allowCloseAll: boolean;
269
- allowManualCollapse: boolean;
270
- designSystemPrefix: string;
271
- notificationInterval: number;
272
- position: ToastPosition;
273
- showCount: boolean;
274
- sortFn?: (a: HTMLElement, b: HTMLElement) => number;
275
- stackThreshold: number;
276
- }
277
-
278
- // @public
279
- export const showBanner: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary: HTMLElement) => void;
280
-
281
- // Warning: (ae-internal-missing-underscore) The name "showDialog" should be prefixed with an underscore because the declaration is marked as @internal
282
- //
283
- // @internal
284
- export const showDialog: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
285
-
286
- // @public
287
- export const showLoggerLogLevel: (notificationStructure: NotificationStructure) => void;
288
-
289
- // @public
290
- export const showNotification: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
291
-
292
- // @public
293
- export const showNotificationAlert: (configuration: AlertStructure) => void;
294
-
295
- // @public
296
- export const showNotificationBanner: (configuration: BannerStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
297
-
298
- // @public
299
- export const showNotificationDialog: (configuration: DialogStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
300
-
301
- // @public
302
- export const showNotificationSnackbar: (configuration: SnackbarStructure, tagName: String) => void;
303
-
304
- // @public
305
- export const showNotificationToast: (configuration: ToastStructure, tagName: String, notificationContainer?: HTMLElement) => void;
306
-
307
- // Warning: (ae-internal-missing-underscore) The name "showSnackbar" should be prefixed with an underscore because the declaration is marked as @internal
308
- //
309
- // @internal
310
- export const showSnackbar: (notificationStructure: NotificationStructure, tagName: String) => void;
311
-
312
- // Warning: (ae-internal-missing-underscore) The name "showToast" should be prefixed with an underscore because the declaration is marked as @internal
313
- //
314
- // @internal
315
- export const showToast: (notificationStructure: NotificationStructure, tagName: String, notificationContainer?: HTMLElement) => void;
316
-
317
- // @public
318
- export interface Snackbar {
319
- // (undocumented)
320
- readonly autoClose?: boolean;
321
- // (undocumented)
322
- readonly closeTimeout?: number;
323
- // (undocumented)
324
- readonly confirmingActions?: Array<ConfirmingAction>;
325
- // (undocumented)
326
- readonly type?: SnackbarType;
327
- }
328
-
329
- // @public @deprecated
330
- export class SnackbarBuilder {
331
- // @deprecated
332
- build(): Snackbar;
333
- // @deprecated
334
- withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
335
- // @deprecated (undocumented)
336
- withType(type: SnackbarType): SnackbarBuilder;
337
- }
338
-
339
- // @public
340
- export interface SnackbarStructure {
341
- // (undocumented)
342
- readonly body: string;
343
- // (undocumented)
344
- readonly logLevel?: LogLevel;
345
- // (undocumented)
346
- readonly snackbar?: Snackbar;
347
- }
348
-
349
- // @public
350
- export type SnackbarType = 'error' | 'success';
351
-
352
- // @public
353
- export const sortNotificationBySeverity: (a: HTMLElement, b: HTMLElement) => number;
354
-
355
- // @public
356
- export interface Toast {
357
- // (undocumented)
358
- readonly autoClose?: boolean;
359
- // (undocumented)
360
- readonly buttons?: ToastButton[];
361
- // (undocumented)
362
- readonly closeTimeout?: number;
363
- // (undocumented)
364
- readonly details?: NotificationDataRow;
365
- // (undocumented)
366
- readonly position?: ToastPosition;
367
- // (undocumented)
368
- readonly type?: NotificationType;
369
- }
370
-
371
- // @public @deprecated (undocumented)
372
- export class ToastBuilder {
373
- // @deprecated
374
- build(): Toast;
375
- // @deprecated
376
- withAutoClose(autoClose: boolean): ToastBuilder;
377
- // @deprecated
378
- withButtons(buttons: ToastButton[]): ToastBuilder;
379
- // @deprecated
380
- withCloseTimeout(closeTimeout: number): ToastBuilder;
381
- // @deprecated
382
- withDetails(details: NotificationDataRow): ToastBuilder;
383
- // @deprecated
384
- withPosition(position: ToastPosition): ToastBuilder;
385
- // @deprecated
386
- withType(type: NotificationType): ToastBuilder;
387
- }
388
-
389
- // @public
390
- export interface ToastButton {
391
- // (undocumented)
392
- action({ details, buttonElement, toastElement, }: {
393
- details: NotificationDataRow;
394
- buttonElement: HTMLElement;
395
- toastElement: any;
396
- }): void;
397
- // (undocumented)
398
- appearance?: string;
399
- // (undocumented)
400
- condition({ details }?: {
401
- details: NotificationDataRow;
402
- }): boolean;
403
- // (undocumented)
404
- placeholder?: string;
405
- }
406
-
407
- // @public
408
- export type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
409
-
410
- // @public
411
- export interface ToastStructure {
412
- // (undocumented)
413
- readonly body: string;
414
- // (undocumented)
415
- readonly createdAt?: Date;
416
- // (undocumented)
417
- readonly iconName?: string;
418
- // (undocumented)
419
- readonly logLevel?: LogLevel;
420
- // (undocumented)
421
- readonly title: string;
422
- // (undocumented)
423
- readonly toast?: Toast;
424
- }
425
-
426
- // (No @packageDocumentation comment for this package)
427
-
428
- ```