@genesislcap/foundation-notifications 14.114.2 → 14.115.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 (138) hide show
  1. package/README.md +83 -11
  2. package/dist/dts/alert/alert-builder.d.ts +7 -0
  3. package/dist/dts/alert/alert-builder.d.ts.map +1 -0
  4. package/dist/dts/alert/index.d.ts +2 -0
  5. package/dist/dts/alert/index.d.ts.map +1 -0
  6. package/dist/dts/banner/banner-builder-old.d.ts +40 -0
  7. package/dist/dts/banner/banner-builder-old.d.ts.map +1 -0
  8. package/dist/dts/banner/banner-builder.d.ts +3 -31
  9. package/dist/dts/banner/banner-builder.d.ts.map +1 -1
  10. package/dist/dts/banner/banner-launcher.d.ts.map +1 -1
  11. package/dist/dts/banner/index.d.ts +1 -0
  12. package/dist/dts/banner/index.d.ts.map +1 -1
  13. package/dist/dts/dialog/dialog-builder-old.d.ts +40 -0
  14. package/dist/dts/dialog/dialog-builder-old.d.ts.map +1 -0
  15. package/dist/dts/dialog/dialog-builder.d.ts +3 -31
  16. package/dist/dts/dialog/dialog-builder.d.ts.map +1 -1
  17. package/dist/dts/dialog/dialog-launcher.d.ts +1 -1
  18. package/dist/dts/dialog/dialog-launcher.d.ts.map +1 -1
  19. package/dist/dts/dialog/index.d.ts +1 -0
  20. package/dist/dts/dialog/index.d.ts.map +1 -1
  21. package/dist/dts/index.d.ts +5 -4
  22. package/dist/dts/index.d.ts.map +1 -1
  23. package/dist/dts/notification-builder.d.ts +12 -0
  24. package/dist/dts/notification-builder.d.ts.map +1 -1
  25. package/dist/dts/notification-launcher.d.ts.map +1 -1
  26. package/dist/dts/notification-util.d.ts +6 -0
  27. package/dist/dts/notification-util.d.ts.map +1 -1
  28. package/dist/dts/snackbar/index.d.ts +1 -0
  29. package/dist/dts/snackbar/index.d.ts.map +1 -1
  30. package/dist/dts/snackbar/snackbar-builder-old.d.ts +39 -0
  31. package/dist/dts/snackbar/snackbar-builder-old.d.ts.map +1 -0
  32. package/dist/dts/snackbar/snackbar-builder.d.ts +3 -30
  33. package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
  34. package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
  35. package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
  36. package/dist/dts/toast/index.d.ts +1 -0
  37. package/dist/dts/toast/index.d.ts.map +1 -1
  38. package/dist/dts/toast/toast-builder-old.d.ts +74 -0
  39. package/dist/dts/toast/toast-builder-old.d.ts.map +1 -0
  40. package/dist/dts/toast/toast-builder.d.ts +3 -61
  41. package/dist/dts/toast/toast-builder.d.ts.map +1 -1
  42. package/dist/dts/toast/toast-launcher.d.ts.map +1 -1
  43. package/dist/dts/types.d.ts +50 -2
  44. package/dist/dts/types.d.ts.map +1 -1
  45. package/dist/esm/alert/alert-builder.js +9 -0
  46. package/dist/esm/alert/index.js +1 -0
  47. package/dist/esm/banner/banner-builder-old.js +56 -0
  48. package/dist/esm/banner/banner-builder.js +17 -43
  49. package/dist/esm/banner/banner-launcher.js +2 -1
  50. package/dist/esm/banner/index.js +1 -0
  51. package/dist/esm/dialog/dialog-builder-old.js +56 -0
  52. package/dist/esm/dialog/dialog-builder.js +21 -43
  53. package/dist/esm/dialog/dialog-launcher.js +4 -3
  54. package/dist/esm/dialog/index.js +1 -0
  55. package/dist/esm/index.js +5 -4
  56. package/dist/esm/notification-builder.js +14 -0
  57. package/dist/esm/notification-launcher.js +2 -10
  58. package/dist/esm/notification-util.js +12 -0
  59. package/dist/esm/snackbar/index.js +1 -0
  60. package/dist/esm/snackbar/snackbar-builder-old.js +55 -0
  61. package/dist/esm/snackbar/snackbar-builder.js +17 -42
  62. package/dist/esm/snackbar/snackbar-launcher.js +4 -3
  63. package/dist/esm/toast/index.js +1 -0
  64. package/dist/esm/toast/toast-builder-old.js +107 -0
  65. package/dist/esm/toast/toast-builder.js +22 -88
  66. package/dist/esm/toast/toast-launcher.js +2 -1
  67. package/dist/foundation-notifications.api.json +911 -88
  68. package/dist/foundation-notifications.d.ts +130 -4
  69. package/docs/api/foundation-notifications.alertstructure.body.md +11 -0
  70. package/docs/api/foundation-notifications.alertstructure.loglevel.md +11 -0
  71. package/docs/api/foundation-notifications.alertstructure.md +22 -0
  72. package/docs/api/foundation-notifications.alertstructure.title.md +11 -0
  73. package/docs/api/foundation-notifications.bannerbuilder.build.md +5 -0
  74. package/docs/api/foundation-notifications.bannerbuilder.md +5 -0
  75. package/docs/api/foundation-notifications.bannerbuilder.withconfirmingaction.md +5 -0
  76. package/docs/api/foundation-notifications.bannerbuilder.withdismissingaction.md +5 -0
  77. package/docs/api/foundation-notifications.bannerstructure.banner.md +11 -0
  78. package/docs/api/foundation-notifications.bannerstructure.body.md +11 -0
  79. package/docs/api/foundation-notifications.bannerstructure.loglevel.md +11 -0
  80. package/docs/api/foundation-notifications.bannerstructure.md +22 -0
  81. package/docs/api/foundation-notifications.dialogbuilder.build.md +5 -0
  82. package/docs/api/foundation-notifications.dialogbuilder.md +5 -0
  83. package/docs/api/foundation-notifications.dialogbuilder.withconfirmingaction.md +5 -0
  84. package/docs/api/foundation-notifications.dialogbuilder.withdismissingaction.md +5 -0
  85. package/docs/api/foundation-notifications.dialogstructure.body.md +11 -0
  86. package/docs/api/foundation-notifications.dialogstructure.dialog.md +11 -0
  87. package/docs/api/foundation-notifications.dialogstructure.loglevel.md +11 -0
  88. package/docs/api/foundation-notifications.dialogstructure.md +23 -0
  89. package/docs/api/foundation-notifications.dialogstructure.title.md +11 -0
  90. package/docs/api/foundation-notifications.getbannerbuilder.md +5 -0
  91. package/docs/api/foundation-notifications.getdialogbuilder.md +5 -0
  92. package/docs/api/foundation-notifications.getnotificationbuilder.md +5 -0
  93. package/docs/api/foundation-notifications.getsnackbarbuilder.md +5 -0
  94. package/docs/api/foundation-notifications.gettoastbuilder.md +5 -0
  95. package/docs/api/foundation-notifications.md +12 -1
  96. package/docs/api/foundation-notifications.notificationbuilder.build.md +5 -0
  97. package/docs/api/foundation-notifications.notificationbuilder.md +5 -0
  98. package/docs/api/foundation-notifications.notificationbuilder.withalert.md +5 -0
  99. package/docs/api/foundation-notifications.notificationbuilder.withbanner.md +5 -0
  100. package/docs/api/foundation-notifications.notificationbuilder.withbody.md +5 -0
  101. package/docs/api/foundation-notifications.notificationbuilder.withcreatedat.md +5 -0
  102. package/docs/api/foundation-notifications.notificationbuilder.withdialog.md +5 -0
  103. package/docs/api/foundation-notifications.notificationbuilder.withloglevel.md +5 -0
  104. package/docs/api/foundation-notifications.notificationbuilder.withsnackbar.md +5 -0
  105. package/docs/api/foundation-notifications.notificationbuilder.withtitle.md +5 -0
  106. package/docs/api/foundation-notifications.notificationbuilder.withtoast.md +5 -0
  107. package/docs/api/foundation-notifications.notificationstructure.md +2 -2
  108. package/docs/api/foundation-notifications.notificationstructure.title.md +1 -1
  109. package/docs/api/foundation-notifications.showloggerloglevel.md +13 -0
  110. package/docs/api/foundation-notifications.shownotificationalert.md +13 -0
  111. package/docs/api/foundation-notifications.shownotificationbanner.md +13 -0
  112. package/docs/api/foundation-notifications.shownotificationdialog.md +13 -0
  113. package/docs/api/foundation-notifications.shownotificationsnackbar.md +13 -0
  114. package/docs/api/foundation-notifications.shownotificationtoast.md +13 -0
  115. package/docs/api/foundation-notifications.snackbarbuilder.build.md +5 -0
  116. package/docs/api/foundation-notifications.snackbarbuilder.md +5 -0
  117. package/docs/api/foundation-notifications.snackbarbuilder.withconfirmingaction.md +5 -0
  118. package/docs/api/foundation-notifications.snackbarbuilder.withtype.md +5 -0
  119. package/docs/api/foundation-notifications.snackbarstructure.body.md +11 -0
  120. package/docs/api/foundation-notifications.snackbarstructure.loglevel.md +11 -0
  121. package/docs/api/foundation-notifications.snackbarstructure.md +22 -0
  122. package/docs/api/foundation-notifications.snackbarstructure.snackbar.md +11 -0
  123. package/docs/api/foundation-notifications.toastbuilder.build.md +5 -0
  124. package/docs/api/foundation-notifications.toastbuilder.md +4 -0
  125. package/docs/api/foundation-notifications.toastbuilder.withautoclose.md +5 -0
  126. package/docs/api/foundation-notifications.toastbuilder.withbuttons.md +5 -0
  127. package/docs/api/foundation-notifications.toastbuilder.withclosetimeout.md +5 -0
  128. package/docs/api/foundation-notifications.toastbuilder.withdetails.md +5 -0
  129. package/docs/api/foundation-notifications.toastbuilder.withposition.md +5 -0
  130. package/docs/api/foundation-notifications.toastbuilder.withtype.md +5 -0
  131. package/docs/api/foundation-notifications.toaststructure.body.md +11 -0
  132. package/docs/api/foundation-notifications.toaststructure.createdat.md +11 -0
  133. package/docs/api/foundation-notifications.toaststructure.loglevel.md +11 -0
  134. package/docs/api/foundation-notifications.toaststructure.md +24 -0
  135. package/docs/api/foundation-notifications.toaststructure.title.md +11 -0
  136. package/docs/api/foundation-notifications.toaststructure.toast.md +11 -0
  137. package/docs/api-report.md +113 -14
  138. package/package.json +5 -5
@@ -0,0 +1,74 @@
1
+ import { Toast, ToastPosition, NotificationType, NotificationDataRow, ToastButton } from '../types';
2
+ /**
3
+ * @public
4
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
5
+ */
6
+ export declare class ToastBuilder {
7
+ private position;
8
+ private autoClose;
9
+ private closeTimeout;
10
+ private type;
11
+ private details;
12
+ private buttons;
13
+ /**
14
+ * Add position to toast
15
+ * @public
16
+ * @param position - {@link ToastPosition}
17
+ * @returns
18
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
19
+ */
20
+ withPosition(position: ToastPosition): ToastBuilder;
21
+ /**
22
+ * Add auto close to notification
23
+ * @public
24
+ * @param autoClose - boolean
25
+ * @returns
26
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
27
+ */
28
+ withAutoClose(autoClose: boolean): ToastBuilder;
29
+ /**
30
+ * Add close timeout to notification
31
+ * @public
32
+ * @param closeTimeout - number
33
+ * @returns
34
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
35
+ */
36
+ withCloseTimeout(closeTimeout: number): ToastBuilder;
37
+ /**
38
+ * Add type to notification, if the type is anything other than 'warning' or 'success' do not add it
39
+ * @public
40
+ * @param type - {@link NotificationType}
41
+ * @returns
42
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
43
+ */
44
+ withType(type: NotificationType): ToastBuilder;
45
+ /**
46
+ * Add details data to notifications
47
+ * @public
48
+ * @param details - NotificationDataRow
49
+ * @returns
50
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
51
+ */
52
+ withDetails(details: NotificationDataRow): ToastBuilder;
53
+ /**
54
+ * Add buttons to notifications
55
+ * @public
56
+ * @param buttons - ToastButton[]
57
+ * @returns
58
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
59
+ */
60
+ withButtons(buttons: ToastButton[]): ToastBuilder;
61
+ /**
62
+ * Build notification
63
+ * @returns Toast
64
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
65
+ */
66
+ build(): Toast;
67
+ }
68
+ /**
69
+ * Get notification builder instance
70
+ * @public
71
+ * @deprecated Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.
72
+ */
73
+ export declare const getToastBuilder: () => ToastBuilder;
74
+ //# sourceMappingURL=toast-builder-old.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-builder-old.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-builder-old.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpG;;;GAGG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,OAAO,CAAsB;IACrC,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;;;OAMG;IACI,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,YAAY;IAK1D;;;;;;OAMG;IACI,aAAa,CAAC,SAAS,EAAE,OAAO,GAAG,YAAY;IAKtD;;;;;;OAMG;IACI,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY;IAK3D;;;;;;OAMG;IACI,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,YAAY;IAKrD;;;;;;OAMG;IACI,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY;IAK9D;;;;;;OAMG;IACI,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,YAAY;IAKxD;;;;OAIG;IACI,KAAK,IAAI,KAAK;CA4BtB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAO,YAAkC,CAAC"}
@@ -1,65 +1,7 @@
1
- import { Toast, ToastPosition, NotificationType, NotificationDataRow, ToastButton } from '../types';
1
+ import { ToastStructure } from '../types';
2
2
  /**
3
+ * Shows the notification toast
3
4
  * @public
4
5
  */
5
- export declare class ToastBuilder {
6
- private position;
7
- private autoClose;
8
- private closeTimeout;
9
- private type;
10
- private details;
11
- private buttons;
12
- /**
13
- * Add position to toast
14
- * @public
15
- * @param position - {@link ToastPosition}
16
- * @returns
17
- */
18
- withPosition(position: ToastPosition): ToastBuilder;
19
- /**
20
- * Add auto close to notification
21
- * @public
22
- * @param autoClose - boolean
23
- * @returns
24
- */
25
- withAutoClose(autoClose: boolean): ToastBuilder;
26
- /**
27
- * Add close timeout to notification
28
- * @public
29
- * @param closeTimeout - number
30
- * @returns
31
- */
32
- withCloseTimeout(closeTimeout: number): ToastBuilder;
33
- /**
34
- * Add type to notification, if the type is anything other than 'warning' or 'success' do not add it
35
- * @public
36
- * @param type - {@link NotificationType}
37
- * @returns
38
- */
39
- 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
- /**
55
- * Build notification
56
- * @returns Toast
57
- */
58
- build(): Toast;
59
- }
60
- /**
61
- * Get notification builder instance
62
- * @public
63
- */
64
- export declare const getToastBuilder: () => ToastBuilder;
6
+ export declare const showNotificationToast: (configuration: ToastStructure, tagName: String) => void;
65
7
  //# sourceMappingURL=toast-builder.d.ts.map
@@ -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,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpG;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,OAAO,CAAsB;IACrC,OAAO,CAAC,OAAO,CAAgB;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;;;;;OAKG;IACI,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY;IAK9D;;;;;OAKG;IACI,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,YAAY;IAKxD;;;OAGG;IACI,KAAK,IAAI,KAAK;CAuBtB;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,YAAkC,CAAC"}
1
+ {"version":3,"file":"toast-builder.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,cAAc,EAAE,MAAM,UAAU,CAAC;AAGjE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,kBAAmB,cAAc,WAAW,MAAM,KAAG,IA8BtF,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,IAuFzF,CAAC"}
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,IAyFzF,CAAC"}
@@ -115,11 +115,11 @@ export interface Snackbar {
115
115
  readonly confirmingActions?: Array<ConfirmingAction>;
116
116
  }
117
117
  /**
118
- * Interface for Structure
118
+ * Interface for Notification Structure
119
119
  * @public
120
120
  */
121
121
  export interface NotificationStructure {
122
- readonly title: string;
122
+ readonly title?: string;
123
123
  readonly body: string;
124
124
  readonly createdAt?: Date;
125
125
  readonly logLevel?: LogLevel;
@@ -135,6 +135,54 @@ export interface NotificationStructure {
135
135
  readonly dialog?: Dialog;
136
136
  };
137
137
  }
138
+ /**
139
+ * Interface for Alert Structure
140
+ * @public
141
+ */
142
+ export interface AlertStructure {
143
+ readonly title: string;
144
+ readonly body: string;
145
+ readonly logLevel?: LogLevel;
146
+ }
147
+ /**
148
+ * Interface for Banner Structure
149
+ * @public
150
+ */
151
+ export interface BannerStructure {
152
+ readonly body: string;
153
+ readonly logLevel?: LogLevel;
154
+ readonly banner?: Banner;
155
+ }
156
+ /**
157
+ * Interface for Dialog Structure
158
+ * @public
159
+ */
160
+ export interface DialogStructure {
161
+ readonly title: string;
162
+ readonly body: string;
163
+ readonly logLevel?: LogLevel;
164
+ readonly dialog?: Dialog;
165
+ }
166
+ /**
167
+ * Interface for Snackbar Structure
168
+ * @public
169
+ */
170
+ export interface SnackbarStructure {
171
+ readonly body: string;
172
+ readonly logLevel?: LogLevel;
173
+ readonly snackbar?: Snackbar;
174
+ }
175
+ /**
176
+ * Interface for Toast Structure
177
+ * @public
178
+ */
179
+ export interface ToastStructure {
180
+ readonly title: string;
181
+ readonly body: string;
182
+ readonly createdAt?: Date;
183
+ readonly logLevel?: LogLevel;
184
+ readonly toast?: Toast;
185
+ }
138
186
  /**
139
187
  * @internal
140
188
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D;;;GAGG;AACH,oBAAY,iBAAiB;IAC3B,kBAAkB,uBAAuB;CAC1C;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAEtF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAEtF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,EA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K,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAAE,YAAY,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { getNotificationDetails, showLoggerLogLevel } from '../notification-util';
2
+ /**
3
+ * Shows the notification alert
4
+ * @public
5
+ */
6
+ export const showNotificationAlert = (configuration) => {
7
+ showLoggerLogLevel(configuration);
8
+ alert(getNotificationDetails(configuration));
9
+ };
@@ -0,0 +1 @@
1
+ export * from './alert-builder';
@@ -0,0 +1,56 @@
1
+ import { logger } from '../logger';
2
+ /**
3
+ * BannerBuilder
4
+ * @public
5
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
6
+ */
7
+ export class BannerBuilder {
8
+ /**
9
+ * Add dismissing action to Banner
10
+ * @public
11
+ * @param dismissingAction - {@link DismissingAction}
12
+ * @returns
13
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
14
+ */
15
+ withDismissingAction(dismissingAction) {
16
+ this.dismissingAction = dismissingAction;
17
+ return this;
18
+ }
19
+ /**
20
+ * Add confirming action to Banner
21
+ * @public
22
+ * @param confirmingAction - {@link ConfirmingAction}
23
+ * @returns
24
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
25
+ */
26
+ withConfirmingAction(confirmingAction) {
27
+ if (!this.confirmingActions) {
28
+ this.confirmingActions = [];
29
+ }
30
+ this.confirmingActions.push(confirmingAction);
31
+ return this;
32
+ }
33
+ /**
34
+ * Build Banner
35
+ * @public
36
+ * @returns Banner
37
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
38
+ */
39
+ build() {
40
+ let banner = {};
41
+ if (this.dismissingAction) {
42
+ banner = Object.assign({ dismissingAction: this.dismissingAction }, banner);
43
+ }
44
+ if (this.confirmingActions) {
45
+ banner = Object.assign({ confirmingActions: this.confirmingActions }, banner);
46
+ }
47
+ logger.deprecated('getBannerBuilder', 'Use `showNotificationBanner` from `@genesislcap/foundation-notifications` instead or provide a NotificationStructure object when used with an event for a notification listener.');
48
+ return banner;
49
+ }
50
+ }
51
+ /**
52
+ * Get banner builder instance
53
+ * @public
54
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
55
+ */
56
+ export const getBannerBuilder = () => new BannerBuilder();
@@ -1,49 +1,23 @@
1
+ import { LogLevel } from '@genesislcap/foundation-logger';
2
+ import { showBanner } from './banner-launcher';
1
3
  /**
2
- * BannerBuilder
4
+ * Shows the notification banner
3
5
  * @public
4
6
  */
5
- export class BannerBuilder {
6
- /**
7
- * Add dismissing action to Banner
8
- * @public
9
- * @param dismissingAction - {@link DismissingAction}
10
- * @returns
11
- */
12
- withDismissingAction(dismissingAction) {
13
- this.dismissingAction = dismissingAction;
14
- return this;
7
+ export const showNotificationBanner = (configuration, tagName, notificationBoundary) => {
8
+ if (!configuration.body) {
9
+ throw new Error(`Missing required param 'body'`);
15
10
  }
16
- /**
17
- * Add confirming action to Banner
18
- * @public
19
- * @param confirmingAction - {@link ConfirmingAction}
20
- * @returns
21
- */
22
- withConfirmingAction(confirmingAction) {
23
- if (!this.confirmingActions) {
24
- this.confirmingActions = [];
25
- }
26
- this.confirmingActions.push(confirmingAction);
27
- return this;
11
+ let notificationStructure = {
12
+ body: configuration.body,
13
+ };
14
+ let config = {};
15
+ if (configuration.logLevel in LogLevel) {
16
+ notificationStructure = Object.assign({ logLevel: configuration.logLevel }, notificationStructure);
28
17
  }
29
- /**
30
- * Build Banner
31
- * @public
32
- * @returns Banner
33
- */
34
- build() {
35
- let banner = {};
36
- if (this.dismissingAction) {
37
- banner = Object.assign({ dismissingAction: this.dismissingAction }, banner);
38
- }
39
- if (this.confirmingActions) {
40
- banner = Object.assign({ confirmingActions: this.confirmingActions }, banner);
41
- }
42
- return banner;
18
+ if (configuration.banner) {
19
+ config = Object.assign({ banner: configuration.banner }, config);
20
+ notificationStructure = Object.assign({ config }, notificationStructure);
43
21
  }
44
- }
45
- /**
46
- * Get banner builder instance
47
- * @public
48
- */
49
- export const getBannerBuilder = () => new BannerBuilder();
22
+ showBanner(notificationStructure, tagName, notificationBoundary);
23
+ };
@@ -1,4 +1,4 @@
1
- import { getBannerAnchor } from '../notification-util';
1
+ import { getBannerAnchor, showLoggerLogLevel } from '../notification-util';
2
2
  /**
3
3
  * Shows the notificationStructure dialog
4
4
  * @public
@@ -9,6 +9,7 @@ import { getBannerAnchor } from '../notification-util';
9
9
  * */
10
10
  export const showBanner = (notificationStructure, tagName, notificationBoundary) => {
11
11
  var _a;
12
+ showLoggerLogLevel(notificationStructure);
12
13
  const tagPrefix = tagName.split('-')[0];
13
14
  const banner = document.createElement(`${tagPrefix}-banner`);
14
15
  const container = getBannerAnchor(notificationBoundary);
@@ -1,2 +1,3 @@
1
+ export * from './banner-builder-old';
1
2
  export * from './banner-builder';
2
3
  export * from './banner-launcher';
@@ -0,0 +1,56 @@
1
+ import { logger } from '../logger';
2
+ /**
3
+ * DialogBuilder class
4
+ * @public
5
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
6
+ */
7
+ export class DialogBuilder {
8
+ /**
9
+ * Add dismissing action to Dialog
10
+ * @public
11
+ * @param dismissingAction - {@link DismissingAction}
12
+ * @returns
13
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
14
+ */
15
+ withDismissingAction(dismissingAction) {
16
+ this.dismissingAction = dismissingAction;
17
+ return this;
18
+ }
19
+ /**
20
+ * Add confirming action to Dialog
21
+ * @public
22
+ * @param confirmingAction - {@link ConfirmingAction}
23
+ * @returns
24
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
25
+ */
26
+ withConfirmingAction(confirmingAction) {
27
+ if (!this.confirmingActions) {
28
+ this.confirmingActions = [];
29
+ }
30
+ this.confirmingActions.push(confirmingAction);
31
+ return this;
32
+ }
33
+ /**
34
+ * Build Dialog
35
+ * @public
36
+ * @returns Dialog
37
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
38
+ */
39
+ build() {
40
+ let dialog = {};
41
+ if (this.dismissingAction) {
42
+ dialog = Object.assign({ dismissingAction: this.dismissingAction }, dialog);
43
+ }
44
+ if (this.confirmingActions) {
45
+ dialog = Object.assign({ confirmingActions: this.confirmingActions }, dialog);
46
+ }
47
+ logger.deprecated('getDialogBuilder', 'Use `showNotificationDialog` from `@genesislcap/foundation-notifications` instead or provide a NotificationStructure object when used with an event for a notification listener.');
48
+ return dialog;
49
+ }
50
+ }
51
+ /**
52
+ * Returns an instance of DialogBuilder
53
+ * @public
54
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
55
+ */
56
+ export const getDialogBuilder = () => new DialogBuilder();
@@ -1,49 +1,27 @@
1
+ import { LogLevel } from '@genesislcap/foundation-logger';
2
+ import { showDialog } from './dialog-launcher';
1
3
  /**
2
- * DialogBuilder class
4
+ * Shows the notification dialog
3
5
  * @public
4
6
  */
5
- export class DialogBuilder {
6
- /**
7
- * Add dismissing action to Dialog
8
- * @public
9
- * @param dismissingAction - {@link DismissingAction}
10
- * @returns
11
- */
12
- withDismissingAction(dismissingAction) {
13
- this.dismissingAction = dismissingAction;
14
- return this;
7
+ export const showNotificationDialog = (configuration, tagName) => {
8
+ if (!configuration.title) {
9
+ throw new Error('Title is required');
15
10
  }
16
- /**
17
- * Add confirming action to Dialog
18
- * @public
19
- * @param confirmingAction - {@link ConfirmingAction}
20
- * @returns
21
- */
22
- withConfirmingAction(confirmingAction) {
23
- if (!this.confirmingActions) {
24
- this.confirmingActions = [];
25
- }
26
- this.confirmingActions.push(confirmingAction);
27
- return this;
11
+ if (!configuration.body) {
12
+ throw new Error(`Missing required param 'body'`);
28
13
  }
29
- /**
30
- * Build Dialog
31
- * @public
32
- * @returns Dialog
33
- */
34
- build() {
35
- let dialog = {};
36
- if (this.dismissingAction) {
37
- dialog = Object.assign({ dismissingAction: this.dismissingAction }, dialog);
38
- }
39
- if (this.confirmingActions) {
40
- dialog = Object.assign({ confirmingActions: this.confirmingActions }, dialog);
41
- }
42
- return dialog;
14
+ let notificationStructure = {
15
+ title: configuration.title,
16
+ body: configuration.body,
17
+ };
18
+ let config = {};
19
+ if (configuration.logLevel in LogLevel) {
20
+ notificationStructure = Object.assign({ logLevel: configuration.logLevel }, notificationStructure);
43
21
  }
44
- }
45
- /**
46
- * Returns an instance of DialogBuilder
47
- * @public
48
- */
49
- export const getDialogBuilder = () => new DialogBuilder();
22
+ if (configuration.dialog) {
23
+ config = Object.assign({ dialog: configuration.dialog }, config);
24
+ notificationStructure = Object.assign({ config }, notificationStructure);
25
+ }
26
+ showDialog(notificationStructure, tagName);
27
+ };
@@ -1,4 +1,4 @@
1
- import { getNotificationContainer } from '../notification-util';
1
+ import { getNotificationContainer, showLoggerLogLevel } from '../notification-util';
2
2
  /**
3
3
  * Shows the dialog
4
4
  * @internal
@@ -6,11 +6,12 @@ import { getNotificationContainer } from '../notification-util';
6
6
  * @param tagName - The tag name to create prefix for the design system provider & notification component
7
7
  * @returns
8
8
  * */
9
- export const showDialog = (notification, tagName) => {
9
+ export const showDialog = (notificationStructure, tagName) => {
10
+ showLoggerLogLevel(notificationStructure);
10
11
  const tagPrefix = tagName.split('-')[0];
11
12
  const dialog = document.createElement(`${tagPrefix}-dialog`);
12
13
  const container = getNotificationContainer('dialog-container', tagName);
13
14
  container.appendChild(dialog);
14
- dialog.notification = notification;
15
+ dialog.notification = notificationStructure;
15
16
  dialog.show();
16
17
  };
@@ -1,2 +1,3 @@
1
+ export * from './dialog-builder-old';
1
2
  export * from './dialog-builder';
2
3
  export * from './dialog-launcher';
package/dist/esm/index.js CHANGED
@@ -1,8 +1,9 @@
1
- export * from './types';
2
- export * from './notification-builder';
3
- export * from './toast';
1
+ export * from './alert';
4
2
  export * from './banner';
5
3
  export * from './dialog';
6
4
  export * from './snackbar';
7
- export * from './notification-util';
5
+ export * from './toast';
6
+ export * from './notification-builder';
8
7
  export * from './notification-launcher';
8
+ export * from './notification-util';
9
+ export * from './types';