@genesislcap/foundation-notifications 14.52.2-alpha-125c51acd9.0 → 14.52.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/dist/dts/notification-builder.d.ts.map +1 -1
- package/dist/dts/toast/toast-builder.d.ts +1 -17
- package/dist/dts/toast/toast-builder.d.ts.map +1 -1
- package/dist/dts/toast/toast-launcher.d.ts.map +1 -1
- package/dist/dts/types.d.ts +0 -40
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/toast/toast-builder.js +0 -26
- package/dist/esm/toast/toast-launcher.js +6 -29
- package/dist/foundation-notifications.api.json +10 -651
- package/dist/foundation-notifications.d.ts +0 -59
- package/docs/api/foundation-notifications.md +0 -3
- package/docs/api/foundation-notifications.toast.md +0 -2
- package/docs/api/foundation-notifications.toastbuilder.md +0 -2
- package/docs/api-report.md +0 -51
- package/package.json +5 -5
- package/docs/api/foundation-notifications.notificationdatarow.alert_id.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.created_at.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.details.md +0 -14
- package/docs/api/foundation-notifications.notificationdatarow.expiry.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.header.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.md +0 -28
- package/docs/api/foundation-notifications.notificationdatarow.message.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.notify_severity.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.sender.md +0 -11
- package/docs/api/foundation-notifications.notificationdatarow.user_name.md +0 -11
- package/docs/api/foundation-notifications.notificationseverity.md +0 -13
- package/docs/api/foundation-notifications.toast.buttons.md +0 -11
- package/docs/api/foundation-notifications.toast.details.md +0 -11
- package/docs/api/foundation-notifications.toastbuilder.withbuttons.md +0 -25
- package/docs/api/foundation-notifications.toastbuilder.withdetails.md +0 -25
- package/docs/api/foundation-notifications.toastbutton.action.md +0 -25
- package/docs/api/foundation-notifications.toastbutton.apperance.md +0 -11
- package/docs/api/foundation-notifications.toastbutton.condition.md +0 -24
- package/docs/api/foundation-notifications.toastbutton.md +0 -28
- package/docs/api/foundation-notifications.toastbutton.placeholder.md +0 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-builder.d.ts","sourceRoot":"","sources":["../../src/notification-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjF;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB;IAKpD;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB;IAKlD;;;;OAIG;IACI,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;IAK5D;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB;IAKrD;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAKnD;;;;;OAKG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAKtD;;;;;OAKG;IACI,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;IAK5D;;;;;OAKG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAKtD;;;;OAI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|
1
|
-
import { Toast, ToastPosition, NotificationType
|
|
1
|
+
import { Toast, ToastPosition, NotificationType } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -7,8 +7,6 @@ export declare class ToastBuilder {
|
|
|
7
7
|
private autoClose;
|
|
8
8
|
private closeTimeout;
|
|
9
9
|
private type;
|
|
10
|
-
private details;
|
|
11
|
-
private buttons;
|
|
12
10
|
/**
|
|
13
11
|
* Add position to toast
|
|
14
12
|
* @public
|
|
@@ -37,20 +35,6 @@ export declare class ToastBuilder {
|
|
|
37
35
|
* @returns
|
|
38
36
|
*/
|
|
39
37
|
withType(type: NotificationType): ToastBuilder;
|
|
40
|
-
/**
|
|
41
|
-
* Add details data to notifications
|
|
42
|
-
* @public
|
|
43
|
-
* @param details - NotificationDataRow
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
withDetails(details: NotificationDataRow): ToastBuilder;
|
|
47
|
-
/**
|
|
48
|
-
* Add buttons to notifications
|
|
49
|
-
* @public
|
|
50
|
-
* @param buttons - ToastButton[]
|
|
51
|
-
* @returns
|
|
52
|
-
*/
|
|
53
|
-
withButtons(buttons: ToastButton[]): ToastBuilder;
|
|
54
38
|
/**
|
|
55
39
|
* Build notification
|
|
56
40
|
* @returns Toast
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-builder.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"toast-builder.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,IAAI,CAAmB;IAE/B;;;;;OAKG;IACI,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,YAAY;IAK1D;;;;;OAKG;IACI,aAAa,CAAC,SAAS,EAAE,OAAO,GAAG,YAAY;IAKtD;;;;;OAKG;IACI,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY;IAK3D;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,YAAY;IAKrD;;;OAGG;IACI,KAAK,IAAI,KAAK;CAgBtB;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,YAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-launcher.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD;;;;;;KAMK;AACL,eAAO,MAAM,SAAS,0BAA2B,qBAAqB,WAAW,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"toast-launcher.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD;;;;;;KAMK;AACL,eAAO,MAAM,SAAS,0BAA2B,qBAAqB,WAAW,MAAM,KAAG,IAqDzF,CAAC"}
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -16,44 +16,6 @@ export type NotificationType = 'error' | 'warning' | 'success';
|
|
|
16
16
|
* type for notification position
|
|
17
17
|
*/
|
|
18
18
|
export type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
19
|
-
/**
|
|
20
|
-
* type for notification severity
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export type NotificationSeverity = 'Information' | 'Warning' | 'Serious' | 'Critical';
|
|
24
|
-
/**
|
|
25
|
-
* Interface for notify data
|
|
26
|
-
* @public
|
|
27
|
-
*/
|
|
28
|
-
export interface NotificationDataRow {
|
|
29
|
-
ALERT_ID: string;
|
|
30
|
-
CREATED_AT: number;
|
|
31
|
-
DETAILS: {
|
|
32
|
-
OPERATION: string;
|
|
33
|
-
ROW_REF: string;
|
|
34
|
-
};
|
|
35
|
-
HEADER: string;
|
|
36
|
-
MESSAGE: string;
|
|
37
|
-
NOTIFY_SEVERITY: NotificationSeverity;
|
|
38
|
-
EXPIRY?: null;
|
|
39
|
-
SENDER?: null;
|
|
40
|
-
USER_NAME: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Interface for ToastButton
|
|
44
|
-
* @public
|
|
45
|
-
*/
|
|
46
|
-
export interface ToastButton {
|
|
47
|
-
action({ details, element }: {
|
|
48
|
-
details: NotificationDataRow;
|
|
49
|
-
element: HTMLElement;
|
|
50
|
-
}): void;
|
|
51
|
-
condition({ details }?: {
|
|
52
|
-
details: NotificationDataRow;
|
|
53
|
-
}): boolean;
|
|
54
|
-
placeholder?: string;
|
|
55
|
-
apperance?: string;
|
|
56
|
-
}
|
|
57
19
|
/**
|
|
58
20
|
* Interface for Toast configuration
|
|
59
21
|
* @public
|
|
@@ -63,8 +25,6 @@ export interface Toast {
|
|
|
63
25
|
readonly type?: NotificationType;
|
|
64
26
|
readonly autoClose?: boolean;
|
|
65
27
|
readonly closeTimeout?: number;
|
|
66
|
-
readonly details?: NotificationDataRow;
|
|
67
|
-
readonly buttons?: ToastButton[];
|
|
68
28
|
}
|
|
69
29
|
/**
|
|
70
30
|
* Interface for Dismissing Action configuration
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,k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|
|
42
42
|
this.type = type;
|
|
43
43
|
return this;
|
|
44
44
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Add details data to notifications
|
|
47
|
-
* @public
|
|
48
|
-
* @param details - NotificationDataRow
|
|
49
|
-
* @returns
|
|
50
|
-
*/
|
|
51
|
-
withDetails(details) {
|
|
52
|
-
this.details = details;
|
|
53
|
-
return this;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Add buttons to notifications
|
|
57
|
-
* @public
|
|
58
|
-
* @param buttons - ToastButton[]
|
|
59
|
-
* @returns
|
|
60
|
-
*/
|
|
61
|
-
withButtons(buttons) {
|
|
62
|
-
this.buttons = buttons;
|
|
63
|
-
return this;
|
|
64
|
-
}
|
|
65
45
|
/**
|
|
66
46
|
* Build notification
|
|
67
47
|
* @returns Toast
|
|
@@ -80,12 +60,6 @@ export class ToastBuilder {
|
|
|
80
60
|
if (this.type) {
|
|
81
61
|
toast = Object.assign({ type: this.type }, toast);
|
|
82
62
|
}
|
|
83
|
-
if (this.details) {
|
|
84
|
-
toast = Object.assign({ details: this.details }, toast);
|
|
85
|
-
}
|
|
86
|
-
if (this.buttons) {
|
|
87
|
-
toast = Object.assign({ buttons: this.buttons }, toast);
|
|
88
|
-
}
|
|
89
63
|
return toast;
|
|
90
64
|
}
|
|
91
65
|
}
|
|
@@ -7,7 +7,7 @@ import { getNotificationContainer } from '../notification-util';
|
|
|
7
7
|
* @returns
|
|
8
8
|
* */
|
|
9
9
|
export const showToast = (notificationStructure, tagName) => {
|
|
10
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
11
11
|
const tagPrefix = tagName.split('-')[0];
|
|
12
12
|
const container = getNotificationContainer('notify-container', tagName);
|
|
13
13
|
if (container) {
|
|
@@ -40,38 +40,15 @@ export const showToast = (notificationStructure, tagName) => {
|
|
|
40
40
|
const toastDate = document.createElement('div');
|
|
41
41
|
toastDate.setAttribute('slot', 'date');
|
|
42
42
|
toastDate.textContent = new Date().toLocaleTimeString();
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(
|
|
46
|
-
toastBottom = document.createElement('div');
|
|
47
|
-
toastBottom.setAttribute('slot', 'bottom');
|
|
48
|
-
notificationStructure.config.toast.buttons.forEach((button) => {
|
|
49
|
-
const buttonElement = document.createElement(`${tagPrefix}-button`);
|
|
50
|
-
buttonElement.textContent = button.placeholder || 'example placeholder';
|
|
51
|
-
buttonElement.addEventListener('click', () => {
|
|
52
|
-
const { details } = notificationStructure.config.toast;
|
|
53
|
-
if (button.action) {
|
|
54
|
-
return button.action({ details, element: buttonElement });
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
if (button.apperance) {
|
|
58
|
-
buttonElement.setAttribute('apperance', button.apperance);
|
|
59
|
-
}
|
|
60
|
-
toastBottom.appendChild(buttonElement);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
toastNotify.setAttribute('notify', ((_j = (_h = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _h === void 0 ? void 0 : _h.toast) === null || _j === void 0 ? void 0 : _j.type) || '');
|
|
64
|
-
((_l = (_k = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _k === void 0 ? void 0 : _k.toast) === null || _l === void 0 ? void 0 : _l.autoClose)
|
|
65
|
-
? toastNotify.setAttribute('auto-close', `${(_o = (_m = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _m === void 0 ? void 0 : _m.toast) === null || _o === void 0 ? void 0 : _o.autoClose}`)
|
|
43
|
+
toastNotify.setAttribute('notify', ((_d = (_c = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _c === void 0 ? void 0 : _c.toast) === null || _d === void 0 ? void 0 : _d.type) || '');
|
|
44
|
+
((_f = (_e = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _e === void 0 ? void 0 : _e.toast) === null || _f === void 0 ? void 0 : _f.autoClose)
|
|
45
|
+
? toastNotify.setAttribute('auto-close', `${(_h = (_g = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _g === void 0 ? void 0 : _g.toast) === null || _h === void 0 ? void 0 : _h.autoClose}`)
|
|
66
46
|
: '';
|
|
67
|
-
((
|
|
68
|
-
? toastNotify.setAttribute('close-timeout', `${(
|
|
47
|
+
((_k = (_j = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _j === void 0 ? void 0 : _j.toast) === null || _k === void 0 ? void 0 : _k.closeTimeout)
|
|
48
|
+
? toastNotify.setAttribute('close-timeout', `${(_m = (_l = notificationStructure === null || notificationStructure === void 0 ? void 0 : notificationStructure.config) === null || _l === void 0 ? void 0 : _l.toast) === null || _m === void 0 ? void 0 : _m.closeTimeout}`)
|
|
69
49
|
: '';
|
|
70
50
|
toastNotify.appendChild(toastTitle);
|
|
71
51
|
toastNotify.appendChild(toastDetails);
|
|
72
52
|
toastNotify.appendChild(toastDate);
|
|
73
|
-
if (toastBottom) {
|
|
74
|
-
toastNotify.appendChild(toastBottom);
|
|
75
|
-
}
|
|
76
53
|
container.appendChild(toastNotify);
|
|
77
54
|
};
|