@genesislcap/pbc-notify-ui 1.0.0 → 1.0.1-prerelease-prerelease

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 (198) hide show
  1. package/README.md +17 -11
  2. package/dist/dts/components/components.d.ts.map +1 -1
  3. package/dist/dts/components/foundation-inbox/components/components.d.ts.map +1 -1
  4. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts +0 -3
  5. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
  6. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.d.ts.map +1 -1
  7. package/dist/dts/components/foundation-inbox/inbox.d.ts +23 -24
  8. package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
  9. package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
  10. package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
  11. package/dist/dts/components/foundation-inbox/inbox.types.d.ts +7 -64
  12. package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
  13. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts +7 -6
  14. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
  15. package/dist/dts/components/foundation-notification-dashboard/components/condition-builder/condition-builder.d.ts.map +1 -1
  16. package/dist/dts/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.d.ts.map +1 -1
  17. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts +1 -1
  18. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
  19. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
  20. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts +2 -10
  21. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.d.ts.map +1 -1
  22. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts.map +1 -1
  23. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts +2 -2
  24. package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.types.d.ts.map +1 -1
  25. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts +16 -31
  26. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.d.ts.map +1 -1
  27. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.d.ts.map +1 -1
  28. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.d.ts.map +1 -1
  29. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts +2 -7
  30. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts.map +1 -1
  31. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts +39 -0
  32. package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.d.ts.map +1 -1
  33. package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts +1 -0
  34. package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map +1 -1
  35. package/dist/dts/components/foundation-notification-dashboard/management/rule-management.d.ts.map +1 -1
  36. package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts +5 -5
  37. package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts.map +1 -1
  38. package/dist/dts/components/foundation-notification-dashboard/management/screen-route-management.d.ts.map +1 -1
  39. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
  40. package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts +2 -2
  41. package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts.map +1 -1
  42. package/dist/dts/services/alert.service.d.ts.map +1 -1
  43. package/dist/dts/services/notify.service.d.ts +1 -1
  44. package/dist/dts/services/notify.service.d.ts.map +1 -1
  45. package/dist/dts/services/rule-template.service.d.ts +2 -0
  46. package/dist/dts/services/rule-template.service.d.ts.map +1 -1
  47. package/dist/esm/components/components.js +0 -2
  48. package/dist/esm/components/foundation-inbox/components/components.js +1 -3
  49. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +0 -9
  50. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.js +7 -0
  51. package/dist/esm/components/foundation-inbox/inbox.js +93 -100
  52. package/dist/esm/components/foundation-inbox/inbox.styles.js +15 -3
  53. package/dist/esm/components/foundation-inbox/inbox.template.js +8 -9
  54. package/dist/esm/components/foundation-inbox/inbox.types.js +1 -9
  55. package/dist/esm/components/foundation-inbox/inbox.utils.js +47 -29
  56. package/dist/esm/components/foundation-notification-dashboard/components/condition-builder/condition-builder.js +0 -3
  57. package/dist/esm/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.template.js +2 -0
  58. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.js +21 -11
  59. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +4 -2
  60. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.js +34 -95
  61. package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.js +3 -4
  62. package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.js +110 -157
  63. package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.js +15 -4
  64. package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.js +69 -17
  65. package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.utils.js +85 -2
  66. package/dist/esm/components/foundation-notification-dashboard/management/management.styles.js +19 -2
  67. package/dist/esm/components/foundation-notification-dashboard/management/rule-management.js +39 -28
  68. package/dist/esm/components/foundation-notification-dashboard/management/rule-template-management.js +64 -59
  69. package/dist/esm/components/foundation-notification-dashboard/management/screen-route-management.js +2 -1
  70. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +1 -1
  71. package/dist/esm/components/foundation-notification-dashboard/types/severity.js +3 -3
  72. package/dist/esm/services/alert.service.js +9 -2
  73. package/dist/esm/services/notify.service.js +17 -12
  74. package/dist/esm/services/rule-template.service.js +27 -1
  75. package/package.json +2 -1
  76. package/dist/dts/components/foundation-alerts/alerts.config.d.ts +0 -64
  77. package/dist/dts/components/foundation-alerts/alerts.config.d.ts.map +0 -1
  78. package/dist/dts/components/foundation-alerts/alerts.d.ts +0 -74
  79. package/dist/dts/components/foundation-alerts/alerts.d.ts.map +0 -1
  80. package/dist/dts/components/foundation-alerts/alerts.template.d.ts +0 -10
  81. package/dist/dts/components/foundation-alerts/alerts.template.d.ts.map +0 -1
  82. package/dist/dts/components/foundation-alerts/alerts.types.d.ts +0 -72
  83. package/dist/dts/components/foundation-alerts/alerts.types.d.ts.map +0 -1
  84. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.d.ts +0 -9
  85. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.d.ts.map +0 -1
  86. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.d.ts +0 -37
  87. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.d.ts.map +0 -1
  88. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.d.ts +0 -2
  89. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.d.ts.map +0 -1
  90. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.d.ts +0 -4
  91. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.d.ts.map +0 -1
  92. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.d.ts +0 -28
  93. package/dist/dts/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.d.ts.map +0 -1
  94. package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.d.ts +0 -30
  95. package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.d.ts.map +0 -1
  96. package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.d.ts +0 -2
  97. package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.d.ts.map +0 -1
  98. package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.d.ts +0 -4
  99. package/dist/dts/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.d.ts.map +0 -1
  100. package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.d.ts +0 -8
  101. package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.d.ts.map +0 -1
  102. package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.d.ts +0 -2
  103. package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.d.ts.map +0 -1
  104. package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.d.ts +0 -4
  105. package/dist/dts/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.d.ts.map +0 -1
  106. package/dist/dts/components/foundation-alerts/components/index.d.ts +0 -5
  107. package/dist/dts/components/foundation-alerts/components/index.d.ts.map +0 -1
  108. package/dist/dts/components/foundation-alerts/index.d.ts +0 -2
  109. package/dist/dts/components/foundation-alerts/index.d.ts.map +0 -1
  110. package/dist/dts/components/foundation-alerts/index.federated.d.ts +0 -1
  111. package/dist/dts/components/foundation-alerts/index.federated.d.ts.map +0 -1
  112. package/dist/dts/components/foundation-alerts/styles/index.d.ts +0 -2
  113. package/dist/dts/components/foundation-alerts/styles/index.d.ts.map +0 -1
  114. package/dist/dts/components/foundation-alerts/styles/styles.d.ts +0 -5
  115. package/dist/dts/components/foundation-alerts/styles/styles.d.ts.map +0 -1
  116. package/dist/dts/components/foundation-alerts/utils/getConditionObject.d.ts +0 -8
  117. package/dist/dts/components/foundation-alerts/utils/getConditionObject.d.ts.map +0 -1
  118. package/dist/dts/components/foundation-alerts/utils/getDateMilliseconds.d.ts +0 -2
  119. package/dist/dts/components/foundation-alerts/utils/getDateMilliseconds.d.ts.map +0 -1
  120. package/dist/dts/components/foundation-alerts/utils/getDateStringFormat.d.ts +0 -2
  121. package/dist/dts/components/foundation-alerts/utils/getDateStringFormat.d.ts.map +0 -1
  122. package/dist/dts/components/foundation-alerts/utils/index.d.ts +0 -5
  123. package/dist/dts/components/foundation-alerts/utils/index.d.ts.map +0 -1
  124. package/dist/dts/components/foundation-alerts/utils/logger.d.ts +0 -2
  125. package/dist/dts/components/foundation-alerts/utils/logger.d.ts.map +0 -1
  126. package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.d.ts +0 -10
  127. package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.d.ts.map +0 -1
  128. package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.d.ts +0 -2
  129. package/dist/dts/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.d.ts.map +0 -1
  130. package/dist/dts/components/foundation-inbox/inbox.config.d.ts +0 -6
  131. package/dist/dts/components/foundation-inbox/inbox.config.d.ts.map +0 -1
  132. package/dist/dts/components/foundation-inbox/layouts/default.d.ts +0 -3
  133. package/dist/dts/components/foundation-inbox/layouts/default.d.ts.map +0 -1
  134. package/dist/dts/components/foundation-inbox/layouts/index.d.ts +0 -2
  135. package/dist/dts/components/foundation-inbox/layouts/index.d.ts.map +0 -1
  136. package/dist/dts/components/foundation-inbox/services/foundation-inbox.service.d.ts +0 -11
  137. package/dist/dts/components/foundation-inbox/services/foundation-inbox.service.d.ts.map +0 -1
  138. package/dist/dts/components/foundation-inbox/styles/index.d.ts +0 -2
  139. package/dist/dts/components/foundation-inbox/styles/index.d.ts.map +0 -1
  140. package/dist/dts/components/foundation-inbox/styles/styles.d.ts +0 -3
  141. package/dist/dts/components/foundation-inbox/styles/styles.d.ts.map +0 -1
  142. package/dist/dts/components/foundation-inbox/utils/getSeverityByMessageType.d.ts +0 -3
  143. package/dist/dts/components/foundation-inbox/utils/getSeverityByMessageType.d.ts.map +0 -1
  144. package/dist/dts/components/foundation-inbox/utils/index.d.ts +0 -4
  145. package/dist/dts/components/foundation-inbox/utils/index.d.ts.map +0 -1
  146. package/dist/dts/components/foundation-inbox/utils/logger.d.ts +0 -2
  147. package/dist/dts/components/foundation-inbox/utils/logger.d.ts.map +0 -1
  148. package/dist/dts/components/foundation-inbox/utils/transformMessageToNotify.d.ts +0 -3
  149. package/dist/dts/components/foundation-inbox/utils/transformMessageToNotify.d.ts.map +0 -1
  150. package/dist/dts/layouts/default.d.ts +0 -3
  151. package/dist/dts/layouts/default.d.ts.map +0 -1
  152. package/dist/dts/layouts/index.d.ts +0 -2
  153. package/dist/dts/layouts/index.d.ts.map +0 -1
  154. package/dist/dts/styles/index.d.ts +0 -2
  155. package/dist/dts/styles/index.d.ts.map +0 -1
  156. package/dist/dts/styles/styles.d.ts +0 -3
  157. package/dist/dts/styles/styles.d.ts.map +0 -1
  158. package/dist/esm/components/foundation-alerts/alerts.config.js +0 -78
  159. package/dist/esm/components/foundation-alerts/alerts.js +0 -246
  160. package/dist/esm/components/foundation-alerts/alerts.template.js +0 -82
  161. package/dist/esm/components/foundation-alerts/alerts.types.js +0 -18
  162. package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.config.js +0 -52
  163. package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.js +0 -182
  164. package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.styles.js +0 -68
  165. package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.template.js +0 -135
  166. package/dist/esm/components/foundation-alerts/components/foundation-alerts-condition-builder/foundation-alerts-condition-builder.types.js +0 -1
  167. package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.js +0 -145
  168. package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.styles.js +0 -194
  169. package/dist/esm/components/foundation-alerts/components/foundation-alerts-form/foundation-alerts-form.template.js +0 -96
  170. package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.js +0 -33
  171. package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.styles.js +0 -27
  172. package/dist/esm/components/foundation-alerts/components/foundation-alerts-navigation-button/foundation-alerts-navigation-button.template.js +0 -14
  173. package/dist/esm/components/foundation-alerts/components/index.js +0 -52
  174. package/dist/esm/components/foundation-alerts/index.federated.js +0 -1
  175. package/dist/esm/components/foundation-alerts/index.js +0 -1
  176. package/dist/esm/components/foundation-alerts/styles/index.js +0 -1
  177. package/dist/esm/components/foundation-alerts/styles/styles.js +0 -198
  178. package/dist/esm/components/foundation-alerts/utils/getConditionObject.js +0 -24
  179. package/dist/esm/components/foundation-alerts/utils/getDateMilliseconds.js +0 -5
  180. package/dist/esm/components/foundation-alerts/utils/getDateStringFormat.js +0 -12
  181. package/dist/esm/components/foundation-alerts/utils/index.js +0 -4
  182. package/dist/esm/components/foundation-alerts/utils/logger.js +0 -2
  183. package/dist/esm/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.js +0 -42
  184. package/dist/esm/components/foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast.styles.js +0 -25
  185. package/dist/esm/components/foundation-inbox/inbox.config.js +0 -27
  186. package/dist/esm/components/foundation-inbox/layouts/default.js +0 -27
  187. package/dist/esm/components/foundation-inbox/layouts/index.js +0 -1
  188. package/dist/esm/components/foundation-inbox/services/foundation-inbox.service.js +0 -109
  189. package/dist/esm/components/foundation-inbox/styles/index.js +0 -1
  190. package/dist/esm/components/foundation-inbox/styles/styles.js +0 -13
  191. package/dist/esm/components/foundation-inbox/utils/getSeverityByMessageType.js +0 -4
  192. package/dist/esm/components/foundation-inbox/utils/index.js +0 -3
  193. package/dist/esm/components/foundation-inbox/utils/logger.js +0 -2
  194. package/dist/esm/components/foundation-inbox/utils/transformMessageToNotify.js +0 -12
  195. package/dist/esm/layouts/default.js +0 -27
  196. package/dist/esm/layouts/index.js +0 -1
  197. package/dist/esm/styles/index.js +0 -1
  198. package/dist/esm/styles/styles.js +0 -13
@@ -1,11 +1,11 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
2
  import { RuleTemplateServiceInterface } from '../../../services/rule-template.service';
3
+ import { TemplateDialog } from '../components/template-dialog/template-dialog';
3
4
  export declare class RuleTemplateManagement extends FASTElement {
4
5
  ruleTemplateService: RuleTemplateServiceInterface;
5
- templateDialogMode: any;
6
- ruleTemplateData: any;
7
- openTemplateModal(ruleTemplate?: any): Promise<void>;
8
- closeTemplateModal(): void;
9
- deleteTemplate(ruleTemplate: any): void;
6
+ templateDialog: TemplateDialog;
7
+ openTemplateDialog(): void;
8
+ editTemplate(row: any): Promise<void>;
9
+ deleteTemplate(row: any): void;
10
10
  }
11
11
  //# sourceMappingURL=rule-template-management.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rule-template-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAkC,MAAM,yBAAyB,CAAC;AAC1G,OAAO,EAAuB,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AA2C5G,qBA0Ca,sBAAuB,SAAQ,WAAW;IAEhC,mBAAmB,EAAE,4BAA4B,CAAC;IAE3D,kBAAkB,MAAQ;IAC1B,gBAAgB,MAAQ;IAE9B,iBAAiB,CAAC,YAAY,CAAC,KAAA;IAarC,kBAAkB;IAKlB,cAAc,CAAC,YAAY,KAAA;CAG5B"}
1
+ {"version":3,"file":"rule-template-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAuC,MAAM,yBAAyB,CAAC;AAC/G,OAAO,EAAuB,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAK5G,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAuD/E,qBAkCa,sBAAuB,SAAQ,WAAW;IAEhC,mBAAmB,EAAE,4BAA4B,CAAC;IACvE,cAAc,EAAE,cAAc,CAAC;IAE/B,kBAAkB;IAIZ,YAAY,CAAC,GAAG,KAAA;IAKtB,cAAc,CAAC,GAAG,KAAA;CAmBnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/screen-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAQ,MAAM,yBAAyB,CAAC;AAG3E,qBAYa,qBAAsB,SAAQ,WAAW;CAAG"}
1
+ {"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/screen-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAQ,MAAM,yBAAyB,CAAC;AAG3E,qBAaa,qBAAsB,SAAQ,WAAW;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"notification-dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AAKjF;;GAEG;AACH,qBAKa,+BAAgC,SAAQ,WAAW;IAElD,KAAK,EAAE,OAAO,CAAS;IAE7B,iBAAiB;IAKvB;;;;OAIG;IACG,WAAW;CAIlB"}
1
+ {"version":3,"file":"notification-dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA6B,MAAM,yBAAyB,CAAC;AAMjF;;GAEG;AACH,qBAKa,+BAAgC,SAAQ,WAAW;IAElD,KAAK,EAAE,OAAO,CAAS;IAE7B,iBAAiB;IAKvB;;;;OAIG;IACG,WAAW;CAIlB"}
@@ -1,7 +1,7 @@
1
1
  export declare const SEVERITY_INFORMATION = "INFORMATION";
2
- export declare const SEVERITY_WARNING = "WARNING";
3
2
  export declare const SEVERITY_CRITICAL = "CRITICAL";
4
3
  export declare const SEVERITY_SERIOUS = "SERIOUS";
5
- export declare const ALL_SEVERITIES: readonly ["INFORMATION", "WARNING", "CRITICAL", "SERIOUS"];
4
+ export declare const SEVERITY_WARNING = "WARNING";
5
+ export declare const ALL_SEVERITIES: readonly ["INFORMATION", "CRITICAL", "SERIOUS", "WARNING"];
6
6
  export type Severity = (typeof ALL_SEVERITIES)[number];
7
7
  //# sourceMappingURL=severity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc,4DAKjB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc,4DAKjB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../src/services/alert.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,SAAS,QAAG;IACZ,kBAAkB,CAAC,OAAO,EAAE,MAAM,OAAE;CACrC;AA0BD,eAAO,MAAM,YAAY,6EAExB,CAAC"}
1
+ {"version":3,"file":"alert.service.d.ts","sourceRoot":"","sources":["../../../src/services/alert.service.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,qBAAqB;IACpC,SAAS,QAAG;IACZ,kBAAkB,CAAC,OAAO,EAAE,MAAM,OAAE;CACrC;AA4BD,eAAO,MAAM,YAAY,6EAExB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export interface NotifyServiceInterface {
2
- getNotifyRouteTopics(): Promise<string[]>;
2
+ getNotifyRouteTopics(): any;
3
3
  }
4
4
  export declare const NotifyService: import("@microsoft/fast-foundation").InterfaceSymbol<NotifyServiceInterface>;
5
5
  //# sourceMappingURL=notify.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notify.service.d.ts","sourceRoot":"","sources":["../../../src/services/notify.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,oBAAoB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC3C;AAgBD,eAAO,MAAM,aAAa,8EAEzB,CAAC"}
1
+ {"version":3,"file":"notify.service.d.ts","sourceRoot":"","sources":["../../../src/services/notify.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,oBAAoB,QAAG;CACxB;AAoBD,eAAO,MAAM,aAAa,8EAEzB,CAAC"}
@@ -2,6 +2,8 @@ import { RuleTemplateEntity } from '../components/foundation-notification-dashbo
2
2
  export interface RuleTemplateServiceInterface {
3
3
  createRuleTemplate(ruleTemplate: RuleTemplateEntity): Promise<any>;
4
4
  editRuleTemplate(ruleTemplate: RuleTemplateEntity): Promise<any>;
5
+ getResources(): Promise<string[]>;
6
+ getFields(resource: string): Promise<any>;
5
7
  getRuleTemplates(): any;
6
8
  getRuleTemplateDetails(dynamicRuleId: string): any;
7
9
  deleteRuleTemplate(dynamicRuleId: string): any;
@@ -1 +1 @@
1
- {"version":3,"file":"rule-template.service.d.ts","sourceRoot":"","sources":["../../../src/services/rule-template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kGAAkG,CAAC;AAEtI,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACnE,gBAAgB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAChE,gBAAgB,QAAG;IACnB,sBAAsB,CAAC,aAAa,EAAE,MAAM,OAAE;IAC9C,kBAAkB,CAAC,aAAa,EAAE,MAAM,OAAE;CAC3C;AA4DD,eAAO,MAAM,mBAAmB,oFAE/B,CAAC"}
1
+ {"version":3,"file":"rule-template.service.d.ts","sourceRoot":"","sources":["../../../src/services/rule-template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kGAAkG,CAAC;AAEtI,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACnE,gBAAgB,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;IAChE,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,gBAAgB,QAAG;IACnB,sBAAsB,CAAC,aAAa,EAAE,MAAM,OAAE;IAC9C,kBAAkB,CAAC,aAAa,EAAE,MAAM,OAAE;CAC3C;AA0FD,eAAO,MAAM,mBAAmB,oFAE/B,CAAC"}
@@ -2,7 +2,6 @@ import { __awaiter } from "tslib";
2
2
  import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
3
3
  import { logger } from '../utils';
4
4
  import { FoundationInboxCounter } from './foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
5
- import { FoundationInboxToast } from './foundation-inbox/components/foundation-inbox-toast/foundation-inbox-toast';
6
5
  import { ConditionBuilder } from './foundation-notification-dashboard/components/condition-builder/condition-builder';
7
6
  import { ParameterBuilder } from './foundation-notification-dashboard/components/parameter-builder/parameter-builder';
8
7
  import { RuleDialog } from './foundation-notification-dashboard/components/rule-dialog';
@@ -18,7 +17,6 @@ import { RuleTemplateManagement } from './foundation-notification-dashboard/mana
18
17
  import { ScreenRouteManagement } from './foundation-notification-dashboard/management/screen-route-management';
19
18
  // Components
20
19
  FoundationInboxCounter;
21
- FoundationInboxToast;
22
20
  TemplateDialog;
23
21
  ConditionBuilder;
24
22
  RuleDialog;
@@ -1,8 +1,7 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import { FoundationInbox } from '../inbox';
3
- import { logger } from '../utils';
3
+ import { logger } from '../../../utils';
4
4
  import { FoundationInboxCounter } from './foundation-inbox-counter/foundation-inbox-counter';
5
- import { FoundationInboxToast } from './foundation-inbox-toast/foundation-inbox-toast';
6
5
  var ResourceType;
7
6
  (function (ResourceType) {
8
7
  ResourceType["LOCAL"] = "LOCAL";
@@ -48,5 +47,4 @@ export function loadRemotes() {
48
47
  * Perhaps we keep these MFs style free, ie. they need to get wrapped to have style applied. Keeping it simple for now.
49
48
  */
50
49
  FoundationInboxCounter;
51
- FoundationInboxToast;
52
50
  FoundationInbox;
@@ -2,7 +2,6 @@ import { __awaiter, __decorate } from "tslib";
2
2
  import { observable, customElement, FASTElement } from '@microsoft/fast-element';
3
3
  import { FoundationInboxCounterStyles } from './foundation-inbox-counter.styles';
4
4
  import { FoundationInboxCounterTemplate } from './foundation-inbox-counter.template';
5
- import { FoundationInboxService } from '../../services/foundation-inbox.service';
6
5
  let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
7
6
  constructor() {
8
7
  super(...arguments);
@@ -14,23 +13,15 @@ let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
14
13
  });
15
14
  return __awaiter(this, void 0, void 0, function* () {
16
15
  _super.connectedCallback.call(this);
17
- this.subscriptionHandler = ({ store }) => {
18
- this.value = store.notifies.length;
19
- };
20
- this.foundationInboxService.subscribe(this.subscriptionHandler);
21
16
  });
22
17
  }
23
18
  disconnectedCallback() {
24
19
  super.disconnectedCallback();
25
- this.foundationInboxService.unsubscribe(this.subscriptionHandler);
26
20
  }
27
21
  };
28
22
  __decorate([
29
23
  observable
30
24
  ], FoundationInboxCounter.prototype, "value", void 0);
31
- __decorate([
32
- FoundationInboxService
33
- ], FoundationInboxCounter.prototype, "foundationInboxService", void 0);
34
25
  FoundationInboxCounter = __decorate([
35
26
  customElement({
36
27
  name: 'foundation-inbox-counter',
@@ -1,6 +1,13 @@
1
1
  import { css } from '@microsoft/fast-element';
2
2
  const BACKGROUND_COLOR = '#EF5547';
3
3
  export const FoundationInboxCounterStyles = css `
4
+ :host {
5
+ position: relative;
6
+ top: 4px;
7
+ right: 8px;
8
+ pointer-events: none;
9
+ }
10
+
4
11
  div {
5
12
  display: inline-block;
6
13
  min-width: 16px;
@@ -1,16 +1,14 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import * as Components from '../index';
3
- import { Connect } from '@genesislcap/foundation-comms';
4
- import { observable, customElement, FASTElement, Observable } from '@microsoft/fast-element';
5
- import { logger } from './utils';
3
+ import { observable, customElement, FASTElement } from '@microsoft/fast-element';
6
4
  import { InboxStyles as styles } from './inbox.styles';
7
5
  import { InboxTab, FoundationInboxTemplate as template } from './inbox.template';
8
- import { RuleStatus } from './inbox.types';
9
6
  import { RuleTemplateService } from '../../services/rule-template.service';
10
7
  import { RuleService } from '../../services/rule.service';
11
8
  import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from '../foundation-notification-dashboard/types/param-source-type';
12
- import { EMPTY_HTML, createSubscribeComponent } from './inbox.utils';
9
+ import { EMPTY_HTML, createParametersOperatorMap, createSubscribeComponent } from './inbox.utils';
13
10
  import { AlertService } from '../../services/alert.service';
11
+ import { logger } from '../../utils';
14
12
  /**
15
13
  * Foundation inbox component for displaying notifies list.
16
14
  * Allow searching, filtering and deleting notifies
@@ -19,21 +17,28 @@ import { AlertService } from '../../services/alert.service';
19
17
  let FoundationInbox = class FoundationInbox extends FASTElement {
20
18
  constructor() {
21
19
  super(...arguments);
20
+ this.ready = false;
22
21
  this.alerts = [];
23
22
  this.alertsFilter = [];
23
+ this.searchAlertLog = '';
24
24
  this.rules = [];
25
25
  this.rulesFilter = [];
26
26
  this.templates = [];
27
27
  this.templatesFilter = [];
28
- this.ready = false;
29
- this.searchAlertLog = '';
30
28
  this.searchSubscribe = '';
31
- this.parameterDetails = {};
29
+ this.parametersDetails = {};
32
30
  this.ruleTemplateSelected = null;
33
- this.subscribeToAlertComponent = '';
31
+ this.subscribeToAlertComponent = EMPTY_HTML;
32
+ this.subscribeDisabled = false;
33
+ this.flyoutClosed = true;
34
+ // #endregion
35
+ // #region Changed Events
34
36
  this.alertsChanged = () => this.alertsFilter = this.alerts;
35
37
  this.rulesChanged = () => this.rulesFilter = this.rules;
36
38
  this.templatesChanged = () => this.templatesFilter = this.templates;
39
+ this.verifySubscribe = () => this.subscribeDisabled = !Object.values(this.parametersDetails).every(x => x !== '');
40
+ this.searchAlertLogChanged = () => this.search(this.searchAlertLog, 'alerts', 'alertsFilter', 'HEADER');
41
+ this.searchSubscribeChanged = () => this.search(this.searchSubscribe, 'templates', 'templatesFilter', 'NAME');
37
42
  }
38
43
  connectedCallback() {
39
44
  const _super = Object.create(null, {
@@ -44,79 +49,21 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
44
49
  this.alerts = yield this.alertService.getAlerts();
45
50
  this.rules = yield this.ruleService.getRules();
46
51
  this.templates = yield this.ruleTemplateService.getRuleTemplates();
47
- this.handleInboxStatus();
48
- });
49
- }
50
- handleInboxStatus() {
51
- this.flyout = this.parentNode;
52
- if (!this.flyout) {
53
- return;
54
- }
55
- const _this = this; // Use this constant to call methods and attributes of inbox.ts
56
- this.flyoutHandler = {
57
- handleChange(source, splices) {
58
- return __awaiter(this, void 0, void 0, function* () {
59
- if (!source.closed) {
60
- console.log('Inbox Opened');
61
- _this.rules = yield _this.ruleService.getRules();
62
- _this.templates = yield _this.ruleTemplateService.getRuleTemplates();
63
- }
64
- else {
65
- console.log('Inbox Closed');
66
- _this.cleanSubscriptionFields();
67
- }
68
- });
69
- },
70
- };
71
- Observable.getNotifier(this.flyout).subscribe(this.flyoutHandler, 'closed');
72
- }
73
- disconnectedCallback() {
74
- super.disconnectedCallback();
75
- }
76
- searchAlertLogChanged() {
77
- return __awaiter(this, void 0, void 0, function* () {
78
- if (!this.searchAlertLog) {
79
- this.alertsFilter = this.alerts;
80
- }
81
- this.alertsFilter = this.alerts.filter(item => item.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase()));
82
52
  });
83
53
  }
84
- searchSubscribeChanged() {
54
+ open() {
85
55
  return __awaiter(this, void 0, void 0, function* () {
86
- if (!this.searchSubscribe) {
87
- this.templatesFilter = this.templates;
88
- }
89
- this.templatesFilter = this.templates.filter(item => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
56
+ this.alerts = yield this.alertService.getAlerts();
57
+ this.rules = yield this.ruleService.getRules();
58
+ this.templates = yield this.ruleTemplateService.getRuleTemplates();
59
+ this.flyoutClosed = false;
90
60
  });
91
61
  }
92
62
  close() {
93
- this.$emit('close');
94
- }
95
- openAlertSubscription(ruleTemplate) {
96
- return __awaiter(this, void 0, void 0, function* () {
97
- if (this.ruleTemplateSelected) {
98
- // Close
99
- this.cleanSubscriptionFields();
100
- return;
101
- }
102
- // Open
103
- this.ruleTemplateSelected = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
104
- const parameters = this.ruleTemplateSelected.PARAMETERS;
105
- this.subscribeToAlertComponent = createSubscribeComponent(parameters);
106
- Object.keys(parameters).forEach(key => {
107
- const parameter = parameters[key];
108
- if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
109
- // Attribute 1st group value for select fields
110
- this.parameterDetails[parameter.PARAM_NAME] = parameter.PARAM_SOURCE.split(',')[0];
111
- }
112
- });
113
- });
114
- }
115
- cleanSubscriptionFields() {
116
- this.ruleTemplateSelected = null;
117
- this.parameterDetails = {};
118
- this.subscribeToAlertComponent = EMPTY_HTML;
63
+ this.cleanSubscriptionFields();
64
+ this.flyout.closeFlyout();
119
65
  }
66
+ // #region Tabs
120
67
  checkActiveTab(inboxTab) {
121
68
  return this.tabs.activeid === inboxTab.toString()
122
69
  ? ''
@@ -125,11 +72,10 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
125
72
  inboxTabChanged(inboxTab) {
126
73
  return __awaiter(this, void 0, void 0, function* () {
127
74
  logger.log('inboxTab Changed:', InboxTab[inboxTab.toString()]);
128
- this.ruleTemplateSelected = null;
129
- this.subscribeToAlertComponent = '';
75
+ this.cleanSubscriptionFields();
130
76
  switch (inboxTab) {
131
77
  case InboxTab.AlertLog:
132
- // TODO:
78
+ this.alerts = yield this.alertService.getAlerts();
133
79
  break;
134
80
  case InboxTab.MyAlerts:
135
81
  this.rules = yield this.ruleService.getRules();
@@ -143,16 +89,32 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
143
89
  }
144
90
  });
145
91
  }
92
+ search(search, elements, elementsFilter, attribute) {
93
+ if (!search) {
94
+ this[elementsFilter] = this[elements];
95
+ return;
96
+ }
97
+ this[elementsFilter] = this[elements].filter(item => item[attribute].toLowerCase().startsWith(search.toLowerCase()));
98
+ }
99
+ // #endregion
100
+ // #region Alert Log
101
+ // TODO:
102
+ deleteNotifyAlert(alertId) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ });
105
+ }
106
+ // #endregion
107
+ // #region My Alerts
146
108
  // TODO:
147
109
  editAlert() {
148
110
  }
149
111
  playPauseAlert(ruleClicked) {
150
112
  return __awaiter(this, void 0, void 0, function* () {
151
113
  switch (ruleClicked.RULE_STATUS) {
152
- case RuleStatus.ENABLED:
114
+ case 'ENABLED':
153
115
  yield this.ruleService.disableRule(ruleClicked.ID);
154
116
  break;
155
- case RuleStatus.DISABLED:
117
+ case 'DISABLED':
156
118
  yield this.ruleService.enableRule(ruleClicked.ID);
157
119
  break;
158
120
  default:
@@ -168,19 +130,47 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
168
130
  this.rules = yield this.ruleService.getRules();
169
131
  });
170
132
  }
133
+ // #endregion
134
+ // #region Subscribe
135
+ openAlertSubscription(ruleTemplate) {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ if (this.ruleTemplateSelected) {
138
+ // Close
139
+ this.cleanSubscriptionFields();
140
+ return;
141
+ }
142
+ // Open
143
+ this.ruleTemplateSelected = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
144
+ const parameters = this.ruleTemplateSelected.PARAMETERS;
145
+ Object.keys(parameters).forEach(key => {
146
+ const parameter = parameters[key];
147
+ if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
148
+ // Attribute 1st group value for select fields
149
+ this.parametersDetails[parameter.PARAM_NAME] = parameter.PARAM_SOURCE.split(',')[0];
150
+ }
151
+ this.parametersDetails[parameter.PARAM_NAME] = '';
152
+ });
153
+ this.subscribeToAlertComponent = createSubscribeComponent(parameters, createParametersOperatorMap(this.ruleTemplateSelected.RULE_EXPRESSION.CONDITIONS));
154
+ this.verifySubscribe();
155
+ });
156
+ }
171
157
  parameterEdit(parameter, valueTyped) {
172
- this.parameterDetails[parameter.PARAM_NAME] = valueTyped;
158
+ this.parametersDetails[parameter.PARAM_NAME] = valueTyped;
159
+ this.verifySubscribe();
173
160
  }
174
161
  subscribeAlert() {
175
162
  return __awaiter(this, void 0, void 0, function* () {
176
- yield this.ruleService.subscribeRule(this.ruleTemplateSelected.DYNAMIC_RULE_ID, this.parameterDetails);
177
- this.parameterDetails = {};
178
- this.ruleTemplateSelected = null;
163
+ yield this.ruleService.subscribeRule(this.ruleTemplateSelected.DYNAMIC_RULE_ID, this.parametersDetails);
164
+ this.cleanSubscriptionFields();
179
165
  });
180
166
  }
181
- deleteNotifyAlert(alertId) {
182
- this.alertService.dismissNotifyAlert(alertId);
167
+ cleanSubscriptionFields() {
168
+ this.ruleTemplateSelected = null;
169
+ this.parametersDetails = {};
170
+ this.subscribeToAlertComponent = EMPTY_HTML;
171
+ this.subscribeDisabled = false;
183
172
  }
173
+ // #endregion
184
174
  /**
185
175
  * Load remote components
186
176
  * @remarks With regards to module federation
@@ -194,29 +184,32 @@ let FoundationInbox = class FoundationInbox extends FASTElement {
194
184
  }
195
185
  };
196
186
  __decorate([
197
- Connect
198
- ], FoundationInbox.prototype, "connect", void 0);
187
+ observable
188
+ ], FoundationInbox.prototype, "ready", void 0);
199
189
  __decorate([
200
190
  AlertService
201
191
  ], FoundationInbox.prototype, "alertService", void 0);
202
- __decorate([
203
- RuleTemplateService
204
- ], FoundationInbox.prototype, "ruleTemplateService", void 0);
205
- __decorate([
206
- RuleService
207
- ], FoundationInbox.prototype, "ruleService", void 0);
208
192
  __decorate([
209
193
  observable
210
194
  ], FoundationInbox.prototype, "alerts", void 0);
211
195
  __decorate([
212
196
  observable
213
197
  ], FoundationInbox.prototype, "alertsFilter", void 0);
198
+ __decorate([
199
+ observable
200
+ ], FoundationInbox.prototype, "searchAlertLog", void 0);
201
+ __decorate([
202
+ RuleService
203
+ ], FoundationInbox.prototype, "ruleService", void 0);
214
204
  __decorate([
215
205
  observable
216
206
  ], FoundationInbox.prototype, "rules", void 0);
217
207
  __decorate([
218
208
  observable
219
209
  ], FoundationInbox.prototype, "rulesFilter", void 0);
210
+ __decorate([
211
+ RuleTemplateService
212
+ ], FoundationInbox.prototype, "ruleTemplateService", void 0);
220
213
  __decorate([
221
214
  observable
222
215
  ], FoundationInbox.prototype, "templates", void 0);
@@ -225,22 +218,22 @@ __decorate([
225
218
  ], FoundationInbox.prototype, "templatesFilter", void 0);
226
219
  __decorate([
227
220
  observable
228
- ], FoundationInbox.prototype, "ready", void 0);
221
+ ], FoundationInbox.prototype, "searchSubscribe", void 0);
229
222
  __decorate([
230
223
  observable
231
- ], FoundationInbox.prototype, "searchAlertLog", void 0);
224
+ ], FoundationInbox.prototype, "ruleTemplateSelected", void 0);
232
225
  __decorate([
233
226
  observable
234
- ], FoundationInbox.prototype, "searchSubscribe", void 0);
227
+ ], FoundationInbox.prototype, "subscribeToAlertComponent", void 0);
235
228
  __decorate([
236
229
  observable
237
- ], FoundationInbox.prototype, "flyout", void 0);
230
+ ], FoundationInbox.prototype, "subscribeDisabled", void 0);
238
231
  __decorate([
239
232
  observable
240
- ], FoundationInbox.prototype, "ruleTemplateSelected", void 0);
233
+ ], FoundationInbox.prototype, "flyout", void 0);
241
234
  __decorate([
242
235
  observable
243
- ], FoundationInbox.prototype, "subscribeToAlertComponent", void 0);
236
+ ], FoundationInbox.prototype, "flyoutClosed", void 0);
244
237
  FoundationInbox = __decorate([
245
238
  customElement({
246
239
  name: 'foundation-inbox',
@@ -3,7 +3,19 @@ import { css } from '@microsoft/fast-element';
3
3
  * @public
4
4
  */
5
5
  export const InboxStyles = css `
6
- :host {
6
+ zero-flyout::part(flyout) {
7
+ width: 30%;
8
+ min-width: 320px;
9
+ padding: 0;
10
+ }
11
+
12
+ zero-flyout::part(content) {
13
+ height: 100%;
14
+ display: flex;
15
+ flex-direction: column;
16
+ }
17
+
18
+ .inbox {
7
19
  width: 100%;
8
20
  height: 100%;
9
21
  background: var(--neutral-layer-4);
@@ -225,7 +237,7 @@ export const InboxStyles = css `
225
237
  cursor: default;
226
238
  }
227
239
 
228
- .rule-status-date-actions {
240
+ .rule-status-actions {
229
241
  display: flex;
230
242
  flex-direction: row;
231
243
  gap: 8px;
@@ -236,7 +248,7 @@ export const InboxStyles = css `
236
248
  background-color: #2e3034;
237
249
  }
238
250
 
239
- .rule:hover > .rule-status-date-actions > .rule-actions {
251
+ .rule:hover > .rule-status-actions > .rule-actions {
240
252
  visibility: visible;
241
253
  }
242
254
 
@@ -1,6 +1,6 @@
1
1
  import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html, ref, repeat, when } from '@microsoft/fast-element';
3
- import { getIcon, getSeverityColor, getStatus } from './inbox.utils';
3
+ import { getFormattedDate, getIcon, getSeverityColor, getStatus } from './inbox.utils';
4
4
  export var InboxTab;
5
5
  (function (InboxTab) {
6
6
  InboxTab[InboxTab["AlertLog"] = 0] = "AlertLog";
@@ -11,13 +11,13 @@ export var InboxTab;
11
11
  * @public
12
12
  */
13
13
  export const FoundationInboxTemplate = html `
14
+ <zero-flyout ${ref('flyout')} position="right" @closed=${(x) => (x.flyoutClosed = true)} :closed=${(x) => x.flyoutClosed} displayHeader=${false}>
14
15
  <div class="inbox-header">
15
16
  <div class="inbox-header-title">
16
17
  Alerts
17
18
  </div>
18
19
  <zero-button
19
20
  class="inbox-header-close"
20
- appearance="primary-gradient"
21
21
  @click=${x => x.close()}
22
22
  >
23
23
  <zero-icon part="icon" name="xmark" size="xl"></zero-icon>
@@ -78,7 +78,7 @@ export const FoundationInboxTemplate = html `
78
78
  <span class="toast-header">${(x) => x.HEADER}</span>
79
79
  <span class="toast-message">${(x) => x.MESSAGE}</span>
80
80
  <div class="toast-bottom" slot="bottom">
81
- <span class="toast-date" slot="date">${(x) => x.CREATED_AT}</span>
81
+ <span class="toast-date" slot="date">${(x) => getFormattedDate(x.CREATED_AT)}</span>
82
82
  </div>
83
83
  </div>
84
84
  <div class="toast-delete" @click=${(x, c) => c.parent.deleteNotifyAlert(x.ALERT_ID)}>
@@ -100,11 +100,11 @@ export const FoundationInboxTemplate = html `
100
100
  <div class="rule">
101
101
  <div class="rule-name">${x => x.NAME}</div>
102
102
  <div class="rule-expression">${x => x.RULE_EXPRESSION}</div>
103
- <div class="rule-status-date-actions">
103
+ <div class="rule-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
104
+ <div class="rule-status-actions">
104
105
  <div class="rule-status ${x => getStatus(x.RULE_STATUS).toLowerCase()}">
105
106
  ${(x, c) => getStatus(x.RULE_STATUS)}
106
107
  </div>
107
- <!-- <div class="rule-datetime">${(x, c) => c.parent.getFormattedDate(x.TIMESTAMP)}</div> -->
108
108
  <div class="rule-actions">
109
109
  <!--
110
110
  <span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
@@ -150,9 +150,7 @@ export const FoundationInboxTemplate = html `
150
150
  >
151
151
  <div class="rule-template-name">${x => x.NAME}</div>
152
152
  <div class="rule-template-description">${x => x.DESCRIPTION}</div>
153
- <!--
154
- <div class="rule-template-datetime">${(x, c) => c.parent.getFormattedDate(x.TIMESTAMP)}</div>
155
- -->
153
+ <div class="rule-template-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
156
154
  </div>
157
155
  `)}
158
156
  </div>
@@ -173,7 +171,7 @@ export const FoundationInboxTemplate = html `
173
171
  <zero-button
174
172
  class="subscribe"
175
173
  @click=${x => x.subscribeAlert()}
176
- appearance="primary-gradient"
174
+ ?disabled=${x => x.subscribeDisabled}
177
175
  >
178
176
  Subscribe
179
177
  </zero-button>
@@ -183,4 +181,5 @@ export const FoundationInboxTemplate = html `
183
181
  </zero-tab-panel>
184
182
  </zero-tabs>
185
183
  </div>
184
+ </zero-flyout>
186
185
  `;
@@ -1,9 +1 @@
1
- export var NotifyResourceNames;
2
- (function (NotifyResourceNames) {
3
- NotifyResourceNames["ALL_RECORDS"] = "ALL_NOTIFY_ALERT_RECORDS";
4
- })(NotifyResourceNames || (NotifyResourceNames = {}));
5
- export var RuleStatus;
6
- (function (RuleStatus) {
7
- RuleStatus["ENABLED"] = "ENABLED";
8
- RuleStatus["DISABLED"] = "DISABLED";
9
- })(RuleStatus || (RuleStatus = {}));
1
+ export {};