@genesislcap/pbc-notify-ui 1.0.23 → 1.0.24

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 (139) hide show
  1. package/.husky/commit-msg +3 -0
  2. package/.husky/pre-commit +4 -0
  3. package/commitlint.config.js +25 -0
  4. package/dist/dts/components/components.d.ts.map +1 -1
  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-flyout/foundation-inbox-flyout.d.ts.map +1 -1
  7. package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.d.ts.map +1 -1
  8. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +3 -3
  9. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
  10. package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -1
  11. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +2 -2
  12. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -1
  13. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts +1 -1
  14. package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -1
  15. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +8 -8
  16. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
  17. package/dist/dts/components/foundation-inbox/inbox.d.ts.map +1 -1
  18. package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
  19. package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
  20. package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
  21. package/dist/dts/components/foundation-inbox/inbox.utils.d.ts.map +1 -1
  22. package/dist/dts/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.d.ts.map +1 -1
  23. package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts +1 -1
  24. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts.map +1 -1
  25. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.d.ts.map +1 -1
  26. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.d.ts.map +1 -1
  27. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.d.ts.map +1 -1
  28. package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -1
  29. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts +1 -1
  30. package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
  31. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts.map +1 -1
  32. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts +1 -1
  33. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
  34. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.types.d.ts.map +1 -1
  35. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
  36. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.d.ts.map +1 -1
  37. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +1 -1
  38. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
  39. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
  40. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +1 -1
  41. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -1
  42. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts +1 -1
  43. package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
  44. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.d.ts.map +1 -1
  45. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts +1 -1
  46. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts.map +1 -1
  47. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts +3 -3
  48. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -1
  49. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts +1 -1
  50. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -1
  51. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
  52. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -1
  53. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts +1 -1
  54. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
  55. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
  56. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts +1 -1
  57. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +1 -1
  58. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +1 -1
  59. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -1
  60. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +1 -1
  61. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
  62. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
  63. package/dist/dts/components/foundation-notification-dashboard/types/right-criteria.d.ts.map +1 -1
  64. package/dist/dts/components/foundation-notification-dashboard/types/rule-execution-strategy.d.ts.map +1 -1
  65. package/dist/dts/services/alert.service.d.ts.map +1 -1
  66. package/dist/dts/services/notify.service.d.ts.map +1 -1
  67. package/dist/dts/services/rule.service.d.ts.map +1 -1
  68. package/dist/dts/services/system.service.d.ts.map +1 -1
  69. package/dist/dts/services/template.service.d.ts.map +1 -1
  70. package/dist/dts/utils/eventDetail.d.ts +1 -1
  71. package/dist/dts/utils/gridConfig.d.ts.map +1 -1
  72. package/dist/dts/utils/humanize.d.ts.map +1 -1
  73. package/dist/dts/utils/icons.d.ts.map +1 -1
  74. package/dist/dts/utils/logger.d.ts.map +1 -1
  75. package/dist/dts/utils/updateArray.d.ts.map +1 -1
  76. package/dist/esm/components/components.js +10 -10
  77. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.js +1 -1
  78. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.js +1 -1
  79. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.js +1 -1
  80. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +5 -10
  81. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +9 -11
  82. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +2 -2
  83. package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +12 -13
  84. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +6 -6
  85. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +1 -1
  86. package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +27 -32
  87. package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +15 -22
  88. package/dist/esm/components/foundation-inbox/inbox.js +1 -1
  89. package/dist/esm/components/foundation-inbox/inbox.styles.js +17 -33
  90. package/dist/esm/components/foundation-inbox/inbox.template.js +44 -37
  91. package/dist/esm/components/foundation-inbox/inbox.utils.js +4 -8
  92. package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +9 -10
  93. package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +4 -4
  94. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +8 -9
  95. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +8 -9
  96. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.js +11 -12
  97. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.js +12 -13
  98. package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +17 -18
  99. package/dist/esm/components/foundation-notification-dashboard/components/rules/columns.js +10 -10
  100. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +2 -2
  101. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.styles.js +2 -2
  102. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +21 -32
  103. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +12 -19
  104. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +9 -7
  105. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +29 -61
  106. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +15 -19
  107. package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js +10 -10
  108. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.js +4 -8
  109. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.js +2 -2
  110. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +25 -43
  111. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +4 -8
  112. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.js +4 -4
  113. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +25 -42
  114. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +23 -23
  115. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +7 -8
  116. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +31 -69
  117. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.js +18 -18
  118. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +15 -19
  119. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +2 -2
  120. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.tabs.js +5 -5
  121. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +7 -5
  122. package/dist/esm/components/foundation-notification-dashboard/styles/management.styles.js +1 -1
  123. package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +1 -1
  124. package/dist/esm/components/foundation-notification-dashboard/types/expression-type.js +1 -1
  125. package/dist/esm/components/foundation-notification-dashboard/types/right-criteria.js +1 -4
  126. package/dist/esm/components/foundation-notification-dashboard/types/rule-execution-strategy.js +1 -4
  127. package/dist/esm/components/foundation-notification-dashboard/types/severity.js +1 -1
  128. package/dist/esm/index.federated.js +1 -0
  129. package/dist/esm/services/alert.service.js +3 -3
  130. package/dist/esm/services/notify.service.js +6 -6
  131. package/dist/esm/services/rule.service.js +15 -12
  132. package/dist/esm/services/system.service.js +11 -8
  133. package/dist/esm/services/template.service.js +11 -9
  134. package/dist/esm/utils/gridConfig.js +1 -1
  135. package/dist/esm/utils/humanize.js +3 -2
  136. package/dist/esm/utils/icons.js +3 -10
  137. package/dist/esm/utils/notifyPermissions.js +4 -4
  138. package/package.json +43 -5
  139. package/scripts/commitlint.js +24 -0
@@ -13,29 +13,30 @@ export var InboxTab;
13
13
  */
14
14
  export const FoundationInboxTemplate = html `
15
15
  <div class="inbox-content">
16
- <zero-tabs ${(ref('tabs'))} appearance="secondary" activeid=${x => InboxTab.AlertLog}>
17
- <zero-tab slot="alert-log-tab"
16
+ <zero-tabs ${ref('tabs')} appearance="secondary" activeid=${(x) => InboxTab.AlertLog}>
17
+ <zero-tab
18
+ slot="alert-log-tab"
18
19
  id=${InboxTab.AlertLog}
19
- @click=${x => x.inboxTabChanged(InboxTab.AlertLog)}
20
+ @click=${(x) => x.inboxTabChanged(InboxTab.AlertLog)}
20
21
  appearance="secondary"
21
22
  >
22
23
  Alert Log
23
24
  </zero-tab>
24
- ${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NotificationRuleView), html `
25
+ ${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleView); }, html `
25
26
  <zero-tab
26
27
  slot="my-alerts-tab"
27
28
  id=${InboxTab.MyAlerts}
28
- @click=${x => x.inboxTabChanged(InboxTab.MyAlerts)}
29
+ @click=${(x) => x.inboxTabChanged(InboxTab.MyAlerts)}
29
30
  appearance="secondary"
30
31
  >
31
32
  My Alerts
32
33
  </zero-tab>
33
34
  `)}
34
- ${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NotificationRuleTemplateView), html `
35
+ ${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleTemplateView); }, html `
35
36
  <zero-tab
36
37
  slot="subscribe-tab"
37
38
  id=${InboxTab.Subscribe}
38
- @click=${x => x.inboxTabChanged(InboxTab.Subscribe)}
39
+ @click=${(x) => x.inboxTabChanged(InboxTab.Subscribe)}
39
40
  appearance="secondary"
40
41
  >
41
42
  Subscribe
@@ -47,7 +48,7 @@ export const FoundationInboxTemplate = html `
47
48
  slot="alert-log-tab"
48
49
  class="alert-log-tab-panel"
49
50
  id=${InboxTab.AlertLog}
50
- style=${x => x.checkActiveTab(InboxTab.AlertLog)}
51
+ style=${(x) => x.checkActiveTab(InboxTab.AlertLog)}
51
52
  >
52
53
  <div class="search">
53
54
  <zero-text-field
@@ -55,52 +56,62 @@ export const FoundationInboxTemplate = html `
55
56
  :value=${sync((x) => x.searchAlertLog)}
56
57
  placeholder="Search Alerts..."
57
58
  autocomplete="off"
58
- >
59
- </zero-text-field>
59
+ ></zero-text-field>
60
60
  </div>
61
61
  <div class="alert-log-tab-content">
62
- ${repeat(x => x.alertsFilter, html `
62
+ ${repeat((x) => x.alertsFilter, html `
63
63
  <div class="toast" id=${(x) => x.ALERT_ID}>
64
- <div class="toast-severity" style="background-color: ${(x) => getSeverityColor(x.NOTIFY_SEVERITY)}"></div>
64
+ <div
65
+ class="toast-severity"
66
+ style="background-color: ${(x) => getSeverityColor(x.NOTIFY_SEVERITY)}"
67
+ ></div>
65
68
  <div class="toast-content">
66
69
  <span class="toast-header">${(x) => x.HEADER}</span>
67
70
  <span class="toast-message">${(x) => x.MESSAGE}</span>
68
71
  <div class="toast-bottom" slot="bottom">
69
- <span class="toast-date" slot="date">${(x) => getFormattedDate(x.CREATED_AT)}</span>
72
+ <span class="toast-date" slot="date">
73
+ ${(x) => getFormattedDate(x.CREATED_AT)}
74
+ </span>
70
75
  </div>
71
76
  </div>
72
77
  </div>
73
78
  `)}
74
79
  </div>
75
80
  </zero-tab-panel>
76
- ${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NotificationRuleView), html `
81
+ ${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleView); }, html `
77
82
  <!-- Rules -->
78
83
  <zero-tab-panel
79
84
  slot="my-alerts-tab"
80
85
  class="my-alerts-tab-panel"
81
86
  id=${InboxTab.MyAlerts}
82
- style=${x => x.checkActiveTab(InboxTab.MyAlerts)}
87
+ style=${(x) => x.checkActiveTab(InboxTab.MyAlerts)}
83
88
  >
84
89
  <div class="my-alerts-tab-content">
85
90
  ${repeat((x) => x.rulesFilter, html `
86
91
  <div class="rule">
87
- <div class="rule-name">${x => x.NAME}</div>
88
- <div class="rule-expression">${x => x.RULE_EXPRESSION}</div>
92
+ <div class="rule-name">${(x) => x.NAME}</div>
93
+ <div class="rule-expression">${(x) => x.RULE_EXPRESSION}</div>
89
94
  <div class="rule-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
90
95
  <div class="rule-status-actions">
91
- <div class="rule-status ${x => getStatus(x.RULE_STATUS).toLowerCase()}">
96
+ <div class="rule-status ${(x) => getStatus(x.RULE_STATUS).toLowerCase()}">
92
97
  ${(x, c) => getStatus(x.RULE_STATUS)}
93
98
  </div>
94
99
  <div class="rule-actions">
95
- <!--
100
+ <!--
96
101
  <span class="rule-action-edit" @click=${(x, c) => c.parent.editAlert(x)}}>
97
102
  <zero-icon name="gear"></zero-icon>
98
103
  </span>
99
104
  -->
100
- <span class="rule-action-enable-disable" @click=${(x, c) => c.parent.playPauseAlert(x)}>
101
- <zero-icon name=${x => getIcon(x.RULE_STATUS)}></zero-icon>
105
+ <span
106
+ class="rule-action-enable-disable"
107
+ @click=${(x, c) => c.parent.playPauseAlert(x)}
108
+ >
109
+ <zero-icon name=${(x) => getIcon(x.RULE_STATUS)}></zero-icon>
102
110
  </span>
103
- <span class="rule-action-delete" @click=${(x, c) => c.parent.deleteAlert(x)}>
111
+ <span
112
+ class="rule-action-delete"
113
+ @click=${(x, c) => c.parent.deleteAlert(x)}
114
+ >
104
115
  <zero-icon name="trash"></zero-icon>
105
116
  </span>
106
117
  </div>
@@ -110,44 +121,40 @@ export const FoundationInboxTemplate = html `
110
121
  </div>
111
122
  </zero-tab-panel>
112
123
  `)}
113
- ${when((x) => x.auth.currentUser.hasPermission(NotifyPermission.NotificationRuleTemplateView), html `
124
+ ${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleTemplateView); }, html `
114
125
  <!-- Templates -->
115
126
  <zero-tab-panel
116
127
  slot="subscribe-tab"
117
128
  class="subscribe-tab-panel"
118
129
  id=${InboxTab.Subscribe}
119
- style=${x => x.checkActiveTab(InboxTab.Subscribe)}
130
+ style=${(x) => x.checkActiveTab(InboxTab.Subscribe)}
120
131
  >
121
132
  <div class="search">
122
133
  <zero-text-field
123
134
  class="search-input"
124
- :value=${sync(x => x.searchSubscribe)}
135
+ :value=${sync((x) => x.searchSubscribe)}
125
136
  placeholder="Search Templates..."
126
137
  autocomplete="off"
127
- >
128
- </zero-text-field>
138
+ ></zero-text-field>
129
139
  </div>
130
- <div
131
- class="subscribe-tab-content"
132
- >
140
+ <div class="subscribe-tab-content">
133
141
  ${repeat((x) => x.templatesFilter, html `
134
142
  <div
135
143
  class="template"
136
144
  @click=${(x, c) => c.parent.openTemplateSubscription(x)}
137
145
  id=${(x) => x.ID}
138
146
  >
139
- <div class="template-name">${x => x.NAME}</div>
140
- <div class="template-description">${x => x.DESCRIPTION}</div>
147
+ <div class="template-name">${(x) => x.NAME}</div>
148
+ <div class="template-description">${(x) => x.DESCRIPTION}</div>
141
149
  <div class="template-datetime">${(x, c) => getFormattedDate(x.DATETIME)}</div>
142
150
  </div>
143
151
  `)}
144
152
  </div>
145
- ${when(x => x.ruleTemplateDetails, html `
153
+ ${when((x) => x.ruleTemplateDetails, html `
146
154
  <inbox-subscription
147
- :template=${x => x.ruleTemplateDetails}
148
- @templateSubscribed=${x => x.ruleTemplateDetails = null}
149
- >
150
- </inbox-subscription>
155
+ :template=${(x) => x.ruleTemplateDetails}
156
+ @templateSubscribed=${(x) => (x.ruleTemplateDetails = null)}
157
+ ></inbox-subscription>
151
158
  `)}
152
159
  </zero-tab-panel>
153
160
  `)}
@@ -1,11 +1,7 @@
1
- import { SEVERITY_CRITICAL, SEVERITY_INFORMATION, SEVERITY_SERIOUS, SEVERITY_WARNING } from "../foundation-notification-dashboard/types/severity";
2
- import { chartPinkWebRGBA, primaryBlueWebRGBA, secondaryOrangeWebRGBA, warningYellowWebRGBA } from "@genesislcap/foundation-zero";
3
- export const getStatus = (ruleStatus) => ruleStatus == 'ENABLED'
4
- ? 'Active'
5
- : 'Paused';
6
- export const getIcon = (ruleStatus) => ruleStatus === 'ENABLED'
7
- ? 'pause'
8
- : 'play';
1
+ import { chartPinkWebRGBA, primaryBlueWebRGBA, secondaryOrangeWebRGBA, warningYellowWebRGBA, } from '@genesislcap/foundation-zero';
2
+ import { SEVERITY_CRITICAL, SEVERITY_INFORMATION, SEVERITY_SERIOUS, SEVERITY_WARNING, } from '../foundation-notification-dashboard/types/severity';
3
+ export const getStatus = (ruleStatus) => (ruleStatus == 'ENABLED' ? 'Active' : 'Paused');
4
+ export const getIcon = (ruleStatus) => (ruleStatus === 'ENABLED' ? 'pause' : 'play');
9
5
  export const getFormattedDate = (dateTimeInMills) => {
10
6
  const dateTime = new Date(dateTimeInMills);
11
7
  return `${dateTime.toLocaleDateString()} ${dateTime.toLocaleTimeString()}`;
@@ -5,37 +5,37 @@ const NOTIFY_AUDIT_MANAGEMENT_COLUMNS = [
5
5
  {
6
6
  field: 'ALERT_ID',
7
7
  headerName: 'Alert',
8
- flex: 1
8
+ flex: 1,
9
9
  },
10
10
  {
11
11
  field: 'MESSAGE',
12
12
  headerName: 'Message',
13
- flex: 1
13
+ flex: 1,
14
14
  },
15
15
  {
16
16
  field: 'HEADER',
17
17
  headerName: 'Header',
18
- flex: 1
18
+ flex: 1,
19
19
  },
20
20
  {
21
21
  field: 'USER_NAME',
22
22
  headerName: 'User Name',
23
- flex: 1
23
+ flex: 1,
24
24
  },
25
25
  {
26
26
  field: 'EXPIRY',
27
27
  headerName: 'Expiry',
28
- flex: 1
28
+ flex: 1,
29
29
  },
30
30
  {
31
31
  field: 'NOTIFY_SEVERITY',
32
32
  headerName: 'Notify Serverity',
33
- flex: 1
33
+ flex: 1,
34
34
  },
35
35
  {
36
36
  field: 'CREATED_AT',
37
37
  headerName: 'Created At',
38
- flex: 1
38
+ flex: 1,
39
39
  },
40
40
  {
41
41
  field: 'TABLE_ENTITY_ID',
@@ -83,8 +83,7 @@ NotifyAuditManagement = __decorate([
83
83
  <entity-management
84
84
  resourceName="ALL_NOTIFY_AUDIT"
85
85
  :columns=${() => [...NOTIFY_AUDIT_MANAGEMENT_COLUMNS]}
86
- >
87
- </entity-management>
86
+ ></entity-management>
88
87
  </div>
89
88
  `,
90
89
  styles: css `
@@ -93,7 +92,7 @@ NotifyAuditManagement = __decorate([
93
92
  entity-management::part(header) {
94
93
  display: none;
95
94
  }
96
- `
95
+ `,
97
96
  })
98
97
  ], NotifyAuditManagement);
99
98
  export { NotifyAuditManagement };
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { FASTElement, css, customElement, html } from "@microsoft/fast-element";
2
+ import { FASTElement, css, customElement, html } from '@microsoft/fast-element';
3
3
  let RouteManagement = class RouteManagement extends FASTElement {
4
4
  };
5
5
  RouteManagement = __decorate([
@@ -12,7 +12,7 @@ RouteManagement = __decorate([
12
12
  <zero-tab appearance="secondary">Email User Routes</zero-tab>
13
13
  <zero-tab appearance="secondary">Log Routes</zero-tab>
14
14
  <zero-tab appearance="secondary">MS Teams Routes</zero-tab>
15
-
15
+
16
16
  <zero-tab-panel>
17
17
  <screen-route-management></screen-route-management>
18
18
  </zero-tab-panel>
@@ -36,12 +36,12 @@ RouteManagement = __decorate([
36
36
  flex-direction: column;
37
37
  width: 100%;
38
38
  }
39
-
39
+
40
40
  zero-tabs::part(tablist) {
41
41
  grid-template-columns: none;
42
42
  flex: 0;
43
43
  }
44
-
44
+
45
45
  zero-tabs::part(tabpanel) {
46
46
  display: flex;
47
47
  flex-direction: column;
@@ -5,32 +5,32 @@ const EMAIL_DISTRIBUTION_ROUTE_MANAGEMENT_COLUMNS = [
5
5
  {
6
6
  field: 'NOTIFY_ROUTE_ID',
7
7
  headerName: 'Notify Route Id',
8
- flex: 1
8
+ flex: 1,
9
9
  },
10
10
  {
11
11
  field: 'TOPIC_MATCH',
12
12
  headerName: 'Topic Match',
13
- flex: 1
13
+ flex: 1,
14
14
  },
15
15
  {
16
16
  field: 'GATEWAY_ID',
17
17
  headerName: 'Gateway Id',
18
- flex: 1
18
+ flex: 1,
19
19
  },
20
20
  {
21
21
  field: 'EMAIL_TO',
22
22
  headerName: 'Email To',
23
- flex: 1
23
+ flex: 1,
24
24
  },
25
25
  {
26
26
  field: 'EMAIL_CC',
27
27
  headerName: 'Email Cc',
28
- flex: 1
28
+ flex: 1,
29
29
  },
30
30
  {
31
31
  field: 'EMAIL_BCC',
32
32
  headerName: 'Email Bcc',
33
- flex: 1
33
+ flex: 1,
34
34
  },
35
35
  ];
36
36
  let EmailDistributionRouteManagement = class EmailDistributionRouteManagement extends FASTElement {
@@ -46,11 +46,10 @@ EmailDistributionRouteManagement = __decorate([
46
46
  updateEvent="EVENT_DYNAMIC_RULE_NOTIFY_UPDATE"
47
47
  deleteEvent="EVENT_DYNAMIC_RULE_NOTIFY_DELETE"
48
48
  :columns=${() => [...EMAIL_DISTRIBUTION_ROUTE_MANAGEMENT_COLUMNS]}
49
- >
50
- </entity-management>
49
+ ></entity-management>
51
50
  </div>
52
51
  `,
53
- styles: managementGridStyles
52
+ styles: managementGridStyles,
54
53
  })
55
54
  ], EmailDistributionRouteManagement);
56
55
  export { EmailDistributionRouteManagement };
@@ -5,37 +5,37 @@ const EMAIL_USER_ROUTE_COLUMNS = [
5
5
  {
6
6
  field: 'NOTIFY_ROUTE_ID',
7
7
  headerName: 'Notify Route Id',
8
- flex: 1
8
+ flex: 1,
9
9
  },
10
10
  {
11
11
  field: 'TOPIC_MATCH',
12
12
  headerName: 'Topic Match',
13
- flex: 1
13
+ flex: 1,
14
14
  },
15
15
  {
16
16
  field: 'GATEWAY_ID',
17
17
  headerName: 'Gateway Id',
18
- flex: 1
18
+ flex: 1,
19
19
  },
20
20
  {
21
21
  field: 'ENTITY_ID',
22
22
  headerName: 'Entity Id',
23
- flex: 1
23
+ flex: 1,
24
24
  },
25
25
  {
26
26
  field: 'ENTITY_ID_TYPE',
27
27
  headerName: 'Entity Id Type',
28
- flex: 1
28
+ flex: 1,
29
29
  },
30
30
  {
31
31
  field: 'RIGHT_CODE',
32
32
  headerName: 'Right Code',
33
- flex: 1
33
+ flex: 1,
34
34
  },
35
35
  {
36
36
  field: 'AUTH_CACHE_NAME',
37
37
  headerName: 'Auth Cache Name',
38
- flex: 1
38
+ flex: 1,
39
39
  },
40
40
  {
41
41
  field: 'EXCLUDE_SENDER',
@@ -56,8 +56,7 @@ EmailUserRouteManagement = __decorate([
56
56
  updateEvent="EVENT_EMAIL_USER_ROUTE_UPDATE"
57
57
  deleteEvent="EVENT_EMAIL_USER_ROUTE_DELETE"
58
58
  :columns=${() => [...EMAIL_USER_ROUTE_COLUMNS]}
59
- >
60
- </entity-management>
59
+ ></entity-management>
61
60
  </div>
62
61
  `,
63
62
  styles: managementGridStyles,
@@ -5,17 +5,17 @@ const LOG_ROUTE_MANAGEMENT_COLUMNS = [
5
5
  {
6
6
  field: 'NOTIFY_ROUTE_ID',
7
7
  headerName: 'Notify Route Id',
8
- flex: 1
8
+ flex: 1,
9
9
  },
10
10
  {
11
11
  field: 'TOPIC_MATCH',
12
12
  headerName: 'Topic Match',
13
- flex: 1
13
+ flex: 1,
14
14
  },
15
15
  {
16
16
  field: 'GATEWAY_ID',
17
17
  headerName: 'Gateway Id',
18
- flex: 1
18
+ flex: 1,
19
19
  },
20
20
  ];
21
21
  let LogRouteManagement = class LogRouteManagement extends FASTElement {
@@ -25,15 +25,14 @@ LogRouteManagement = __decorate([
25
25
  name: 'log-route-management',
26
26
  template: html `
27
27
  <div class="grid">
28
- <entity-management
29
- resourceName="ALL_LOG_ROUTES"
30
- createEvent="EVENT_LOG_ROUTE_CREATE"
31
- updateEvent="EVENT_LOG_ROUTE_UPDATE"
32
- deleteEvent="EVENT_LOG_ROUTE_DELETE"
33
- :columns=${() => [...LOG_ROUTE_MANAGEMENT_COLUMNS]}
34
- >
35
- </entity-management>
36
- </div>
28
+ <entity-management
29
+ resourceName="ALL_LOG_ROUTES"
30
+ createEvent="EVENT_LOG_ROUTE_CREATE"
31
+ updateEvent="EVENT_LOG_ROUTE_UPDATE"
32
+ deleteEvent="EVENT_LOG_ROUTE_DELETE"
33
+ :columns=${() => [...LOG_ROUTE_MANAGEMENT_COLUMNS]}
34
+ ></entity-management>
35
+ </div>
37
36
  `,
38
37
  styles: managementGridStyles,
39
38
  })
@@ -5,22 +5,22 @@ const MS_TEAMS_ROUTE_MANAGEMENT_COLUMNS = [
5
5
  {
6
6
  field: 'NOTIFY_ROUTE_ID',
7
7
  headerName: 'Notify Route Id',
8
- flex: 1
8
+ flex: 1,
9
9
  },
10
10
  {
11
11
  field: 'TOPIC_MATCH',
12
12
  headerName: 'Topic Match',
13
- flex: 1
13
+ flex: 1,
14
14
  },
15
15
  {
16
16
  field: 'GATEWAY_ID',
17
17
  headerName: 'Gateway Id',
18
- flex: 1
18
+ flex: 1,
19
19
  },
20
20
  {
21
21
  field: 'URL',
22
22
  headerName: 'Url',
23
- flex: 1
23
+ flex: 1,
24
24
  },
25
25
  ];
26
26
  let MSTeamsRouteManagement = class MSTeamsRouteManagement extends FASTElement {
@@ -30,15 +30,14 @@ MSTeamsRouteManagement = __decorate([
30
30
  name: 'ms-teams-route-management',
31
31
  template: html `
32
32
  <div class="grid">
33
- <entity-management
34
- resourceName="ALL_MS_TEAMS_ROUTES"
35
- createEvent="EVENT_MS_TEAMS_ROUTE_CREATE"
36
- updateEvent="EVENT_MS_TEAMS_ROUTE_UPDATE"
37
- deleteEvent="EVENT_MS_TEAMS_ROUTE_DELETE"
38
- :columns=${() => [...MS_TEAMS_ROUTE_MANAGEMENT_COLUMNS]}
39
- >
40
- </entity-management>
41
- </div>
33
+ <entity-management
34
+ resourceName="ALL_MS_TEAMS_ROUTES"
35
+ createEvent="EVENT_MS_TEAMS_ROUTE_CREATE"
36
+ updateEvent="EVENT_MS_TEAMS_ROUTE_UPDATE"
37
+ deleteEvent="EVENT_MS_TEAMS_ROUTE_DELETE"
38
+ :columns=${() => [...MS_TEAMS_ROUTE_MANAGEMENT_COLUMNS]}
39
+ ></entity-management>
40
+ </div>
42
41
  `,
43
42
  styles: managementGridStyles,
44
43
  })
@@ -5,32 +5,32 @@ const SCREEN_ROUTE_MANAGEMENT_COLUMNS = [
5
5
  {
6
6
  field: 'NOTIFY_ROUTE_ID',
7
7
  headerName: 'Notify Route Id',
8
- flex: 1
8
+ flex: 1,
9
9
  },
10
10
  {
11
11
  field: 'TOPIC_MATCH',
12
12
  headerName: 'Topic Match',
13
- flex: 1
13
+ flex: 1,
14
14
  },
15
15
  {
16
16
  field: 'GATEWAY_ID',
17
17
  headerName: 'Gateway Id',
18
- flex: 1
18
+ flex: 1,
19
19
  },
20
20
  {
21
21
  field: 'ENTITY_ID',
22
22
  headerName: 'Entity Id',
23
- flex: 1
23
+ flex: 1,
24
24
  },
25
25
  {
26
26
  field: 'ENTITY_ID_TYPE',
27
27
  headerName: 'Entity Id Type',
28
- flex: 1
28
+ flex: 1,
29
29
  },
30
30
  {
31
31
  field: 'EXCLUDE_SENDER',
32
32
  headerName: 'Exclude Sender',
33
- flex: 1
33
+ flex: 1,
34
34
  },
35
35
  ];
36
36
  const SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA = {
@@ -49,18 +49,17 @@ ScreenRouteManagement = __decorate([
49
49
  customElement({
50
50
  name: 'screen-route-management',
51
51
  template: html `
52
- <div class="grid">
53
- <entity-management
54
- resourceName="ALL_SCREEN_ROUTES"
55
- createEvent="EVENT_SCREEN_NOTIFY_ROUTE_CREATE"
56
- updateEvent="EVENT_SCREEN_NOTIFY_ROUTE_UPDATE"
57
- deleteEvent="EVENT_SCREEN_NOTIFY_ROUTE_DELETE"
58
- :columns=${() => [...SCREEN_ROUTE_MANAGEMENT_COLUMNS]}
59
- :createFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
60
- :updateFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
61
- >
62
- </entity-management>
63
- </div>
52
+ <div class="grid">
53
+ <entity-management
54
+ resourceName="ALL_SCREEN_ROUTES"
55
+ createEvent="EVENT_SCREEN_NOTIFY_ROUTE_CREATE"
56
+ updateEvent="EVENT_SCREEN_NOTIFY_ROUTE_UPDATE"
57
+ deleteEvent="EVENT_SCREEN_NOTIFY_ROUTE_DELETE"
58
+ :columns=${() => [...SCREEN_ROUTE_MANAGEMENT_COLUMNS]}
59
+ :createFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
60
+ :updateFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
61
+ ></entity-management>
62
+ </div>
64
63
  `,
65
64
  styles: managementGridStyles,
66
65
  })
@@ -1,40 +1,40 @@
1
- import { buttonCellRenderer } from "@genesislcap/foundation-entity-management";
2
- import { deleteIcon, editIcon } from "../../../../utils";
1
+ import { buttonCellRenderer } from '@genesislcap/foundation-entity-management';
2
+ import { deleteIcon, editIcon } from '../../../../utils';
3
3
  export const RULE_MANAGEMENT_COLUMNS = (context) => [
4
4
  {
5
5
  field: 'NAME',
6
6
  headerName: 'Name',
7
- flex: 1
7
+ flex: 1,
8
8
  },
9
9
  {
10
10
  field: 'DESCRIPTION',
11
11
  headerName: 'Description',
12
- flex: 1
12
+ flex: 1,
13
13
  },
14
14
  {
15
15
  field: 'USER_NAME',
16
16
  headerName: 'Username',
17
- flex: 1
17
+ flex: 1,
18
18
  },
19
19
  {
20
20
  field: 'RULE_TABLE',
21
21
  headerName: 'Table',
22
- flex: 1
22
+ flex: 1,
23
23
  },
24
24
  {
25
25
  field: 'RULE_STATUS',
26
26
  headerName: 'Status',
27
- flex: 1
27
+ flex: 1,
28
28
  },
29
29
  {
30
30
  field: 'RULE_EXPRESSION',
31
31
  headerName: 'Expression',
32
- flex: 1
32
+ flex: 1,
33
33
  },
34
34
  {
35
35
  field: 'RESULT_EXPRESSION',
36
36
  headerName: 'Result',
37
- flex: 1
37
+ flex: 1,
38
38
  },
39
39
  {
40
40
  field: 'RULE_EXECUTION_STRATEGY',
@@ -42,5 +42,5 @@ export const RULE_MANAGEMENT_COLUMNS = (context) => [
42
42
  flex: 1,
43
43
  },
44
44
  buttonCellRenderer('Edit', (e) => context.editRule(e), editIcon),
45
- buttonCellRenderer('Delete', (e) => context.deleteRule(e), deleteIcon)
45
+ buttonCellRenderer('Delete', (e) => context.deleteRule(e), deleteIcon),
46
46
  ];
@@ -3,7 +3,7 @@ import { customElement, FASTElement, observable } from '@microsoft/fast-element'
3
3
  import { SystemService } from '../../../../../../services/system.service';
4
4
  import { ConditionBuilderStyles as styles } from './rule-condition-builder.styles';
5
5
  import { ConditionBuilderTemplate as template } from './rule-condition-builder.template';
6
- import { RIGHT_CRITERIA } from './rule-condition-builder.types';
6
+ import { RIGHT_CRITERIA, } from './rule-condition-builder.types';
7
7
  const name = 'rule-condition-builder';
8
8
  let RuleConditionBuilder = class RuleConditionBuilder extends FASTElement {
9
9
  constructor() {
@@ -29,7 +29,7 @@ let RuleConditionBuilder = class RuleConditionBuilder extends FASTElement {
29
29
  return __awaiter(this, void 0, void 0, function* () {
30
30
  this.leftValue = this.condition.LEFT_VALUE
31
31
  ? typeof this.condition.LEFT_VALUE === 'string'
32
- ? JSON.stringify(this.resourceFields.find(item => item.FIELD_NAME === this.condition.LEFT_VALUE)) // Edit
32
+ ? JSON.stringify(this.resourceFields.find((item) => item.FIELD_NAME === this.condition.LEFT_VALUE)) // Edit
33
33
  : JSON.stringify(this.condition.LEFT_VALUE)
34
34
  : JSON.stringify(this.resourceFields[0]);
35
35
  this.$emit('edit', this.condition);
@@ -7,11 +7,11 @@ export const ConditionBuilderStyles = css `
7
7
  }
8
8
 
9
9
  zero-button {
10
- margin: 0px;
10
+ margin: 0;
11
11
  }
12
12
 
13
13
  .delete {
14
- margin: 0px;
14
+ margin: 0;
15
15
  background-color: var(--neutral-layer-1);
16
16
  }
17
17