@genesislcap/foundation-notifications 14.303.0 → 14.303.2
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/package.json +11 -11
- package/docs/api-report.md +0 -365
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-notifications",
|
|
3
3
|
"description": "Genesis Foundation UI Notifications Utils",
|
|
4
|
-
"version": "14.303.
|
|
4
|
+
"version": "14.303.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@genesislcap/foundation-testing": "14.303.
|
|
53
|
-
"@genesislcap/genx": "14.303.
|
|
54
|
-
"@genesislcap/rollup-builder": "14.303.
|
|
55
|
-
"@genesislcap/ts-builder": "14.303.
|
|
56
|
-
"@genesislcap/uvu-playwright-builder": "14.303.
|
|
57
|
-
"@genesislcap/vite-builder": "14.303.
|
|
58
|
-
"@genesislcap/webpack-builder": "14.303.
|
|
52
|
+
"@genesislcap/foundation-testing": "14.303.2",
|
|
53
|
+
"@genesislcap/genx": "14.303.2",
|
|
54
|
+
"@genesislcap/rollup-builder": "14.303.2",
|
|
55
|
+
"@genesislcap/ts-builder": "14.303.2",
|
|
56
|
+
"@genesislcap/uvu-playwright-builder": "14.303.2",
|
|
57
|
+
"@genesislcap/vite-builder": "14.303.2",
|
|
58
|
+
"@genesislcap/webpack-builder": "14.303.2"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@genesislcap/foundation-logger": "14.303.
|
|
62
|
-
"@genesislcap/foundation-utils": "14.303.
|
|
61
|
+
"@genesislcap/foundation-logger": "14.303.2",
|
|
62
|
+
"@genesislcap/foundation-utils": "14.303.2"
|
|
63
63
|
},
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "f556f123bafe956a7ba9328bb3f78f4d7d2495ba"
|
|
73
73
|
}
|
package/docs/api-report.md
DELETED
|
@@ -1,365 +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 { LogLevel } from '@genesislcap/foundation-logger';
|
|
8
|
-
|
|
9
|
-
// @public
|
|
10
|
-
export interface AlertStructure {
|
|
11
|
-
// (undocumented)
|
|
12
|
-
readonly body: string;
|
|
13
|
-
// (undocumented)
|
|
14
|
-
readonly logLevel?: LogLevel;
|
|
15
|
-
// (undocumented)
|
|
16
|
-
readonly title: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// @public
|
|
20
|
-
export interface Banner {
|
|
21
|
-
// (undocumented)
|
|
22
|
-
readonly confirmingActions?: Array<ConfirmingAction>;
|
|
23
|
-
// (undocumented)
|
|
24
|
-
readonly dismissingAction?: DismissingAction;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// @public @deprecated
|
|
28
|
-
export class BannerBuilder {
|
|
29
|
-
// @deprecated
|
|
30
|
-
build(): Banner;
|
|
31
|
-
// @deprecated
|
|
32
|
-
withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
|
|
33
|
-
// @deprecated
|
|
34
|
-
withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// @public
|
|
38
|
-
export interface BannerStructure {
|
|
39
|
-
// (undocumented)
|
|
40
|
-
readonly banner?: Banner;
|
|
41
|
-
// (undocumented)
|
|
42
|
-
readonly body: string;
|
|
43
|
-
// (undocumented)
|
|
44
|
-
readonly logLevel?: LogLevel;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// @public
|
|
48
|
-
export interface ConfirmingAction {
|
|
49
|
-
// (undocumented)
|
|
50
|
-
readonly action: Function;
|
|
51
|
-
// (undocumented)
|
|
52
|
-
readonly label: String;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// @public
|
|
56
|
-
export interface Dialog {
|
|
57
|
-
// (undocumented)
|
|
58
|
-
readonly confirmingActions?: Array<ConfirmingAction>;
|
|
59
|
-
// (undocumented)
|
|
60
|
-
readonly dismissingAction?: DismissingAction;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// @public @deprecated
|
|
64
|
-
export class DialogBuilder {
|
|
65
|
-
// @deprecated
|
|
66
|
-
build(): Dialog;
|
|
67
|
-
// @deprecated
|
|
68
|
-
withConfirmingAction(confirmingAction: ConfirmingAction): DialogBuilder;
|
|
69
|
-
// @deprecated
|
|
70
|
-
withDismissingAction(dismissingAction: DismissingAction): DialogBuilder;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Warning: (ae-internal-missing-underscore) The name "DialogElement" should be prefixed with an underscore because the declaration is marked as @internal
|
|
74
|
-
//
|
|
75
|
-
// @internal (undocumented)
|
|
76
|
-
export type DialogElement = NotificationElement & {
|
|
77
|
-
show: Function;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
// @public
|
|
81
|
-
export interface DialogStructure {
|
|
82
|
-
// (undocumented)
|
|
83
|
-
readonly body: string;
|
|
84
|
-
// (undocumented)
|
|
85
|
-
readonly dialog?: Dialog;
|
|
86
|
-
// (undocumented)
|
|
87
|
-
readonly logLevel?: LogLevel;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
readonly title: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// @public
|
|
93
|
-
export interface DismissingAction {
|
|
94
|
-
// (undocumented)
|
|
95
|
-
readonly action?: Function;
|
|
96
|
-
// (undocumented)
|
|
97
|
-
readonly label: String;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// @public
|
|
101
|
-
export const getBannerAnchor: (element: any) => HTMLElement | null;
|
|
102
|
-
|
|
103
|
-
// @public @deprecated
|
|
104
|
-
export const getBannerBuilder: () => BannerBuilder;
|
|
105
|
-
|
|
106
|
-
// @public @deprecated
|
|
107
|
-
export const getDialogBuilder: () => DialogBuilder;
|
|
108
|
-
|
|
109
|
-
// @public
|
|
110
|
-
export const getLoglevel: (details: NotificationStructure) => LogLevel;
|
|
111
|
-
|
|
112
|
-
// @public @deprecated
|
|
113
|
-
export const getNotificationBuilder: () => NotificationBuilder;
|
|
114
|
-
|
|
115
|
-
// @public
|
|
116
|
-
export const getNotificationContainer: (id: string, tagName: String) => HTMLElement;
|
|
117
|
-
|
|
118
|
-
// @public
|
|
119
|
-
export const getNotificationDetails: (details: NotificationStructure) => string;
|
|
120
|
-
|
|
121
|
-
// @public @deprecated
|
|
122
|
-
export const getSnackbarBuilder: () => SnackbarBuilder;
|
|
123
|
-
|
|
124
|
-
// @public @deprecated
|
|
125
|
-
export const getToastBuilder: () => ToastBuilder;
|
|
126
|
-
|
|
127
|
-
// @public @deprecated
|
|
128
|
-
export class NotificationBuilder {
|
|
129
|
-
// @deprecated
|
|
130
|
-
build(): NotificationStructure;
|
|
131
|
-
// @deprecated
|
|
132
|
-
withAlert(alert: boolean): NotificationBuilder;
|
|
133
|
-
// @deprecated
|
|
134
|
-
withBanner(banner: Banner): NotificationBuilder;
|
|
135
|
-
// @deprecated
|
|
136
|
-
withBody(body: string): NotificationBuilder;
|
|
137
|
-
// @deprecated
|
|
138
|
-
withCreatedAt(createdAt: Date): NotificationBuilder;
|
|
139
|
-
// @deprecated
|
|
140
|
-
withDialog(dialog: Dialog): NotificationBuilder;
|
|
141
|
-
// @deprecated
|
|
142
|
-
withLogLevel(logLevel: LogLevel): NotificationBuilder;
|
|
143
|
-
// @deprecated
|
|
144
|
-
withSnackbar(snackbar: Snackbar): NotificationBuilder;
|
|
145
|
-
// @deprecated
|
|
146
|
-
withTitle(title: string): NotificationBuilder;
|
|
147
|
-
// @deprecated
|
|
148
|
-
withToast(toast: Toast): NotificationBuilder;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// @public
|
|
152
|
-
export interface NotificationDataRow {
|
|
153
|
-
// (undocumented)
|
|
154
|
-
ALERT_ID: string;
|
|
155
|
-
// (undocumented)
|
|
156
|
-
CREATED_AT: number;
|
|
157
|
-
// (undocumented)
|
|
158
|
-
DETAILS: {
|
|
159
|
-
OPERATION: string;
|
|
160
|
-
ROW_REF: string;
|
|
161
|
-
};
|
|
162
|
-
// (undocumented)
|
|
163
|
-
EXPIRY?: number;
|
|
164
|
-
// (undocumented)
|
|
165
|
-
HEADER: string;
|
|
166
|
-
// (undocumented)
|
|
167
|
-
MESSAGE: string;
|
|
168
|
-
// (undocumented)
|
|
169
|
-
NOTIFY_SEVERITY: NotificationSeverity;
|
|
170
|
-
// (undocumented)
|
|
171
|
-
SENDER?: null;
|
|
172
|
-
// (undocumented)
|
|
173
|
-
TABLE_ENTITY_ID: string;
|
|
174
|
-
// (undocumented)
|
|
175
|
-
TOPIC: string;
|
|
176
|
-
// (undocumented)
|
|
177
|
-
USER_NAME: string;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// Warning: (ae-internal-missing-underscore) The name "NotificationElement" should be prefixed with an underscore because the declaration is marked as @internal
|
|
181
|
-
//
|
|
182
|
-
// @internal (undocumented)
|
|
183
|
-
export type NotificationElement = HTMLElement & {
|
|
184
|
-
notification: NotificationStructure;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// @public
|
|
188
|
-
export enum NotificationEvent {
|
|
189
|
-
// (undocumented)
|
|
190
|
-
NOTIFICATION_EVENT = "notification-event"
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// @public
|
|
194
|
-
export type NotificationSeverity = 'Information' | 'Warning' | 'Serious' | 'Critical';
|
|
195
|
-
|
|
196
|
-
// @public
|
|
197
|
-
export interface NotificationStructure {
|
|
198
|
-
// (undocumented)
|
|
199
|
-
readonly body: string;
|
|
200
|
-
// (undocumented)
|
|
201
|
-
readonly config?: {
|
|
202
|
-
readonly logLevel?: LogLevel;
|
|
203
|
-
readonly alert?: boolean;
|
|
204
|
-
readonly toast?: Toast;
|
|
205
|
-
readonly banner?: Banner;
|
|
206
|
-
readonly snackbar?: Snackbar;
|
|
207
|
-
readonly dialog?: Dialog;
|
|
208
|
-
};
|
|
209
|
-
// (undocumented)
|
|
210
|
-
readonly createdAt?: Date;
|
|
211
|
-
// (undocumented)
|
|
212
|
-
readonly logLevel?: LogLevel;
|
|
213
|
-
// (undocumented)
|
|
214
|
-
readonly title?: string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// @public
|
|
218
|
-
export type NotificationType = 'error' | 'warning' | 'success';
|
|
219
|
-
|
|
220
|
-
// @public
|
|
221
|
-
export const showBanner: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary: HTMLElement) => void;
|
|
222
|
-
|
|
223
|
-
// Warning: (ae-internal-missing-underscore) The name "showDialog" should be prefixed with an underscore because the declaration is marked as @internal
|
|
224
|
-
//
|
|
225
|
-
// @internal
|
|
226
|
-
export const showDialog: (notificationStructure: NotificationStructure, tagName: String) => void;
|
|
227
|
-
|
|
228
|
-
// @public
|
|
229
|
-
export const showLoggerLogLevel: (notificationStructure: NotificationStructure) => void;
|
|
230
|
-
|
|
231
|
-
// @public
|
|
232
|
-
export const showNotification: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
|
|
233
|
-
|
|
234
|
-
// @public
|
|
235
|
-
export const showNotificationAlert: (configuration: AlertStructure) => void;
|
|
236
|
-
|
|
237
|
-
// @public
|
|
238
|
-
export const showNotificationBanner: (configuration: BannerStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
|
|
239
|
-
|
|
240
|
-
// @public
|
|
241
|
-
export const showNotificationDialog: (configuration: DialogStructure, tagName: String) => void;
|
|
242
|
-
|
|
243
|
-
// @public
|
|
244
|
-
export const showNotificationSnackbar: (configuration: SnackbarStructure, tagName: String) => void;
|
|
245
|
-
|
|
246
|
-
// @public
|
|
247
|
-
export const showNotificationToast: (configuration: ToastStructure, tagName: String, notificationContainer?: HTMLElement) => void;
|
|
248
|
-
|
|
249
|
-
// Warning: (ae-internal-missing-underscore) The name "showSnackbar" should be prefixed with an underscore because the declaration is marked as @internal
|
|
250
|
-
//
|
|
251
|
-
// @internal
|
|
252
|
-
export const showSnackbar: (notificationStructure: NotificationStructure, tagName: String) => void;
|
|
253
|
-
|
|
254
|
-
// Warning: (ae-internal-missing-underscore) The name "showToast" should be prefixed with an underscore because the declaration is marked as @internal
|
|
255
|
-
//
|
|
256
|
-
// @internal
|
|
257
|
-
export const showToast: (notificationStructure: NotificationStructure, tagName: String, notificationContainer?: HTMLElement) => void;
|
|
258
|
-
|
|
259
|
-
// @public
|
|
260
|
-
export interface Snackbar {
|
|
261
|
-
// (undocumented)
|
|
262
|
-
readonly autoClose?: boolean;
|
|
263
|
-
// (undocumented)
|
|
264
|
-
readonly closeTimeout?: number;
|
|
265
|
-
// (undocumented)
|
|
266
|
-
readonly confirmingActions?: Array<ConfirmingAction>;
|
|
267
|
-
// (undocumented)
|
|
268
|
-
readonly type?: SnackbarType;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// @public @deprecated
|
|
272
|
-
export class SnackbarBuilder {
|
|
273
|
-
// @deprecated
|
|
274
|
-
build(): Snackbar;
|
|
275
|
-
// @deprecated
|
|
276
|
-
withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
|
|
277
|
-
// @deprecated (undocumented)
|
|
278
|
-
withType(type: SnackbarType): SnackbarBuilder;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
// @public
|
|
282
|
-
export interface SnackbarStructure {
|
|
283
|
-
// (undocumented)
|
|
284
|
-
readonly body: string;
|
|
285
|
-
// (undocumented)
|
|
286
|
-
readonly logLevel?: LogLevel;
|
|
287
|
-
// (undocumented)
|
|
288
|
-
readonly snackbar?: Snackbar;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// @public
|
|
292
|
-
export type SnackbarType = 'error' | 'success';
|
|
293
|
-
|
|
294
|
-
// @public
|
|
295
|
-
export interface Toast {
|
|
296
|
-
// (undocumented)
|
|
297
|
-
readonly autoClose?: boolean;
|
|
298
|
-
// (undocumented)
|
|
299
|
-
readonly buttons?: ToastButton[];
|
|
300
|
-
// (undocumented)
|
|
301
|
-
readonly closeTimeout?: number;
|
|
302
|
-
// (undocumented)
|
|
303
|
-
readonly details?: NotificationDataRow;
|
|
304
|
-
// (undocumented)
|
|
305
|
-
readonly position?: ToastPosition;
|
|
306
|
-
// (undocumented)
|
|
307
|
-
readonly type?: NotificationType;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
// @public @deprecated (undocumented)
|
|
311
|
-
export class ToastBuilder {
|
|
312
|
-
// @deprecated
|
|
313
|
-
build(): Toast;
|
|
314
|
-
// @deprecated
|
|
315
|
-
withAutoClose(autoClose: boolean): ToastBuilder;
|
|
316
|
-
// @deprecated
|
|
317
|
-
withButtons(buttons: ToastButton[]): ToastBuilder;
|
|
318
|
-
// @deprecated
|
|
319
|
-
withCloseTimeout(closeTimeout: number): ToastBuilder;
|
|
320
|
-
// @deprecated
|
|
321
|
-
withDetails(details: NotificationDataRow): ToastBuilder;
|
|
322
|
-
// @deprecated
|
|
323
|
-
withPosition(position: ToastPosition): ToastBuilder;
|
|
324
|
-
// @deprecated
|
|
325
|
-
withType(type: NotificationType): ToastBuilder;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// @public
|
|
329
|
-
export interface ToastButton {
|
|
330
|
-
// (undocumented)
|
|
331
|
-
action({ details, buttonElement, toastElement, }: {
|
|
332
|
-
details: NotificationDataRow;
|
|
333
|
-
buttonElement: HTMLElement;
|
|
334
|
-
toastElement: any;
|
|
335
|
-
}): void;
|
|
336
|
-
// (undocumented)
|
|
337
|
-
appearance?: string;
|
|
338
|
-
// (undocumented)
|
|
339
|
-
condition({ details }?: {
|
|
340
|
-
details: NotificationDataRow;
|
|
341
|
-
}): boolean;
|
|
342
|
-
// (undocumented)
|
|
343
|
-
placeholder?: string;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
// @public
|
|
347
|
-
export type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
348
|
-
|
|
349
|
-
// @public
|
|
350
|
-
export interface ToastStructure {
|
|
351
|
-
// (undocumented)
|
|
352
|
-
readonly body: string;
|
|
353
|
-
// (undocumented)
|
|
354
|
-
readonly createdAt?: Date;
|
|
355
|
-
// (undocumented)
|
|
356
|
-
readonly logLevel?: LogLevel;
|
|
357
|
-
// (undocumented)
|
|
358
|
-
readonly title: string;
|
|
359
|
-
// (undocumented)
|
|
360
|
-
readonly toast?: Toast;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
// (No @packageDocumentation comment for this package)
|
|
364
|
-
|
|
365
|
-
```
|