@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
@@ -3,22 +3,22 @@ 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
5
  import { FoundationInboxFlyout } from './foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
6
+ import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
7
+ import { RuleParameter } from './foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter';
8
+ import { NotifyAuditManagement } from './foundation-notification-dashboard/components/notify-audit/notify-audit-management';
9
+ import { RouteManagement } from './foundation-notification-dashboard/components/routes/route-management';
6
10
  import { EmailDistributionRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management';
7
11
  import { EmailUserRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/email-user-route-management';
8
12
  import { LogRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/log-route-management';
9
13
  import { MSTeamsRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management';
10
- import { NotifyAuditManagement } from './foundation-notification-dashboard/components/notify-audit/notify-audit-management';
11
- import { RuleManagement } from './foundation-notification-dashboard/components/rules/rule-management';
12
- import { TemplateManagement } from './foundation-notification-dashboard/components/templates/template-management';
13
14
  import { ScreenRouteManagement } from './foundation-notification-dashboard/components/routes/tabs/screen-route-management';
14
- import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
15
- import { TemplateDialog } from './foundation-notification-dashboard/components/templates/template-dialog/template-dialog';
16
- import { ConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder';
17
- import { RuleDialog } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog';
18
15
  import { RuleConditionBuilder } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder';
16
+ import { RuleDialog } from './foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog';
17
+ import { RuleManagement } from './foundation-notification-dashboard/components/rules/rule-management';
18
+ import { ConditionBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder';
19
19
  import { ParameterBuilder } from './foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder';
20
- import { RuleParameter } from './foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter';
21
- import { RouteManagement } from './foundation-notification-dashboard/components/routes/route-management';
20
+ import { TemplateDialog } from './foundation-notification-dashboard/components/templates/template-dialog/template-dialog';
21
+ import { TemplateManagement } from './foundation-notification-dashboard/components/templates/template-management';
22
22
  // Components
23
23
  // #region Inbox
24
24
  FoundationInboxCounter;
@@ -58,7 +58,7 @@ function loadZeroDesignSystem() {
58
58
  return __awaiter(this, void 0, void 0, function* () {
59
59
  let type = ResourceType.REMOTE;
60
60
  try {
61
- // @ts-ignore
61
+ // @ts-expect-error ignore zeroDesignSystem module
62
62
  return yield import('foundationZero/ZeroDesignSystem');
63
63
  }
64
64
  catch (e) {
@@ -1,7 +1,7 @@
1
1
  import { html } from '@microsoft/fast-element';
2
2
  const MAX_NUMBER_TO_DISPLAY = 99;
3
3
  export const FoundationInboxCounterTemplate = html `
4
- <div class="${x => x.value < 1 && 'hidden'}">
4
+ <div class="${(x) => x.value < 1 && 'hidden'}">
5
5
  ${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}
6
6
  </div>
7
7
  `;
@@ -1,8 +1,8 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { observable, customElement } from '@microsoft/fast-element';
3
+ import { FoundationInboxBase } from '../../inbox-base/inbox-base';
3
4
  import { FoundationInboxFlyoutStyles } from './foundation-inbox-flyout.styles';
4
5
  import { FoundationInboxFlyoutTemplate } from './foundation-inbox-flyout.template';
5
- import { FoundationInboxBase } from '../../inbox-base/inbox-base';
6
6
  let FoundationInboxFlyout = class FoundationInboxFlyout extends FoundationInboxBase {
7
7
  constructor() {
8
8
  super(...arguments);
@@ -12,6 +12,6 @@ export const FoundationInboxFlyoutStyles = css `
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  }
15
-
15
+
16
16
  ${FoundationInboxStyles}
17
17
  `;
@@ -4,22 +4,17 @@ export const FoundationInboxFlyoutTemplate = html `
4
4
  <zero-flyout
5
5
  ${ref('flyout')}
6
6
  position="right"
7
- @closed=${x => x.flyoutClosed = true}
8
- :closed=${x => x.flyoutClosed}
7
+ @closed=${(x) => (x.flyoutClosed = true)}
8
+ :closed=${(x) => x.flyoutClosed}
9
9
  displayHeader=${false}
10
10
  >
11
11
  <div class="inbox-header">
12
- <div class="inbox-header-title">
13
- Alerts
14
- </div>
15
- <zero-button
16
- class="inbox-header-close"
17
- @click=${x => x.close()}
18
- >
12
+ <div class="inbox-header-title">Alerts</div>
13
+ <zero-button class="inbox-header-close" @click=${(x) => x.close()}>
19
14
  <zero-icon part="icon" name="xmark" size="xl"></zero-icon>
20
15
  </zero-button>
21
16
  </div>
22
-
17
+
23
18
  ${FoundationInboxTemplate}
24
19
  </zero-flyout>
25
20
  `;
@@ -1,17 +1,17 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { FASTElement, attr, customElement, observable } from "@microsoft/fast-element";
3
- import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from "../../../foundation-notification-dashboard/types/param-source-type";
4
- import { InboxSubscriptionTemplate } from "./inbox-subscription.template";
5
- import { InboxSubscriptionStyles } from "./inbox-subscription.styles";
6
- import { EXPRESSION_TYPE_PLACEHOLDER } from "../../../foundation-notification-dashboard/types/expression-type";
7
- import { RuleService } from "../../../../services/rule.service";
2
+ import { FASTElement, attr, customElement, observable } from '@microsoft/fast-element';
3
+ import { RuleService } from '../../../../services/rule.service';
4
+ import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../foundation-notification-dashboard/types/expression-type';
5
+ import { PARAM_SOURCE_TYPE_DEFINED_GROUP } from '../../../foundation-notification-dashboard/types/param-source-type';
6
+ import { InboxSubscriptionStyles } from './inbox-subscription.styles';
7
+ import { InboxSubscriptionTemplate } from './inbox-subscription.template';
8
8
  let InboxSubscription = class InboxSubscription extends FASTElement {
9
9
  constructor() {
10
10
  super(...arguments);
11
11
  this.parametersDetails = {};
12
12
  this.parametersOperators = {};
13
13
  this.subscribeDisabled = true;
14
- this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex(p => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
14
+ this.isFirstElement = (parameter) => Object.values(this.template.PARAMETERS).findIndex((p) => p.PARAM_NAME === parameter.PARAM_NAME) === 0;
15
15
  this.createParametersOperatorMap = (conditions) => {
16
16
  this.parametersOperators = {};
17
17
  conditions.forEach((condition) => {
@@ -32,7 +32,7 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
32
32
  }
33
33
  templateChanged() {
34
34
  const parameters = this.template.PARAMETERS;
35
- Object.keys(parameters).forEach(key => {
35
+ Object.keys(parameters).forEach((key) => {
36
36
  const parameter = parameters[key];
37
37
  if (parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP) {
38
38
  // Attribute 1st group value for select fields
@@ -49,9 +49,7 @@ let InboxSubscription = class InboxSubscription extends FASTElement {
49
49
  }
50
50
  verifySubscribe() {
51
51
  const parameters = Object.values(this.parametersDetails);
52
- this.subscribeDisabled = parameters.length > 0
53
- ? !parameters.every(x => x !== '')
54
- : false;
52
+ this.subscribeDisabled = parameters.length > 0 ? !parameters.every((x) => x !== '') : false;
55
53
  }
56
54
  subscribeTemplate() {
57
55
  return __awaiter(this, void 0, void 0, function* () {
@@ -1,4 +1,4 @@
1
- import { css } from "@microsoft/fast-element";
1
+ import { css } from '@microsoft/fast-element';
2
2
  export const InboxSubscriptionStyles = css `
3
3
  .inbox-subscription {
4
4
  display: flex;
@@ -30,7 +30,7 @@ export const InboxSubscriptionStyles = css `
30
30
 
31
31
  zero-button.subscribe {
32
32
  display: flex;
33
- margin: 0px;
33
+ margin: 0;
34
34
  width: 100%;
35
35
  }
36
36
  `;
@@ -3,37 +3,36 @@ import { eventDetail } from '../../../../utils';
3
3
  export const InboxSubscriptionTemplate = html `
4
4
  <div class="inbox-subscription">
5
5
  <div class="inbox-subscription-header">
6
- Subscribe to <span style="font-weight: bold;">${x => x.template.RULE_NAME}</span>
6
+ Subscribe to
7
+ <span style="font-weight: bold;">${(x) => x.template.RULE_NAME}</span>
7
8
  </div>
8
-
9
- ${when(x => Object.values(x.template.PARAMETERS).length === 0, html `
9
+
10
+ ${when((x) => Object.values(x.template.PARAMETERS).length === 0, html `
10
11
  <p style="padding-left: 10px;">The selected template doesn't have parameters.</p>
11
12
  `)}
12
-
13
- ${when(x => Object.values(x.template.PARAMETERS).length > 0, html `
13
+ ${when((x) => Object.values(x.template.PARAMETERS).length > 0, html `
14
14
  <div class="inbox-subscription-content">
15
15
  ${repeat(
16
16
  // @ts-ignore
17
- x => Object.values(x.template.PARAMETERS), html `
17
+ (x) => Object.values(x.template.PARAMETERS), html `
18
18
  <rule-parameter
19
- :parameter=${x => x}
19
+ :parameter=${(x) => x}
20
20
  :isFirstElement=${(x, c) => c.parent.isFirstElement(x)}
21
21
  :operator=${(x, c) => c.parent.parametersOperators[x.PARAM_NAME]}
22
22
  @parameterEdited=${(x, c) => c.parent.parameterEdit(eventDetail(c))}
23
- >
24
- </rule-parameter>
23
+ ></rule-parameter>
25
24
  `)}
26
25
  </div>
27
26
  `)}
28
-
27
+
29
28
  <div class="inbox-subscription-footer">
30
29
  <zero-button
31
30
  class="subscribe"
32
- @click=${x => x.subscribeTemplate()}
33
- ?disabled=${x => x.subscribeDisabled}
31
+ @click=${(x) => x.subscribeTemplate()}
32
+ ?disabled=${(x) => x.subscribeDisabled}
34
33
  >
35
34
  Subscribe
36
35
  </zero-button>
37
36
  </div>
38
- </div>
37
+ </div>
39
38
  `;
@@ -1,9 +1,9 @@
1
1
  import { __decorate } from "tslib";
2
- import { FASTElement, attr, customElement, observable } from "@microsoft/fast-element";
3
- import { RuleParameterTemplate } from "./rule-parameter.template";
4
- import { RuleParameterStyles } from "./rule-parameter.styles";
5
- import { PARAM_TYPE_BOOLEAN } from "../../../../foundation-notification-dashboard/types/param-type";
6
- import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_USER_TEXT } from "../../../../foundation-notification-dashboard/types/param-source-type";
2
+ import { FASTElement, attr, customElement, observable } from '@microsoft/fast-element';
3
+ import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_USER_TEXT, } from '../../../../foundation-notification-dashboard/types/param-source-type';
4
+ import { PARAM_TYPE_BOOLEAN } from '../../../../foundation-notification-dashboard/types/param-type';
5
+ import { RuleParameterStyles } from './rule-parameter.styles';
6
+ import { RuleParameterTemplate } from './rule-parameter.template';
7
7
  let RuleParameter = class RuleParameter extends FASTElement {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -37,7 +37,7 @@ let RuleParameter = class RuleParameter extends FASTElement {
37
37
  this.inputValue = inputValue;
38
38
  this.$emit('parameterEdited', {
39
39
  parameter: this.parameter,
40
- valueTyped: inputValue
40
+ valueTyped: inputValue,
41
41
  });
42
42
  }
43
43
  };
@@ -1,4 +1,4 @@
1
- import { css } from "@microsoft/fast-element";
1
+ import { css } from '@microsoft/fast-element';
2
2
  export const RuleParameterStyles = css `
3
3
  .control {
4
4
  display: flex;
@@ -1,43 +1,41 @@
1
- import { html, repeat, when } from "@microsoft/fast-element";
2
1
  import { sync } from '@genesislcap/foundation-utils';
3
- import { humanize } from "../../../../../utils";
4
- import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, PARAM_SOURCE_TYPE_USER_TEXT } from "../../../../foundation-notification-dashboard/types/param-source-type";
5
- import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING } from "../../../../foundation-notification-dashboard/types/param-type";
2
+ import { html, repeat, when } from '@microsoft/fast-element';
3
+ import { humanize } from '../../../../../utils';
4
+ import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, PARAM_SOURCE_TYPE_USER_TEXT, } from '../../../../foundation-notification-dashboard/types/param-source-type';
5
+ import { PARAM_TYPE_BOOLEAN, PARAM_TYPE_NUMBER, PARAM_TYPE_STRING, } from '../../../../foundation-notification-dashboard/types/param-type';
6
6
  export const RuleParameterTemplate = html `
7
7
  <div class="control">
8
8
  <label>
9
- <span style="font-weight: bold;">${x => x.parameter.PARAM_LABEL}</span> ${(x, c) => humanize(x.operator).toLowerCase()}
9
+ <span style="font-weight: bold;">${(x) => x.parameter.PARAM_LABEL}</span>
10
+ ${(x, c) => humanize(x.operator).toLowerCase()}
10
11
  </label>
11
-
12
+
12
13
  <!-- USER_TEXT -->
13
- ${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_USER_TEXT, html `
14
- ${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_STRING, html `
14
+ ${when((x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_USER_TEXT, html `
15
+ ${when((x) => x.parameter.PARAM_TYPE === PARAM_TYPE_STRING, html `
15
16
  <zero-text-field
16
- autofocus=${x => x.isFirstElement}
17
+ autofocus=${(x) => x.isFirstElement}
17
18
  class="input-field"
18
- :value=${sync(x => x.inputValue)}
19
+ :value=${sync((x) => x.inputValue)}
19
20
  @input=${(x, c) => x.parameterEdit(c.event.target.value)}
20
- >
21
- </zero-text-field>
21
+ ></zero-text-field>
22
22
  `)}
23
-
24
- ${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER, html `
23
+ ${when((x) => x.parameter.PARAM_TYPE === PARAM_TYPE_NUMBER, html `
25
24
  <zero-number-field
26
25
  hide-step
27
- autofocus=${x => x.isFirstElement}
26
+ autofocus=${(x) => x.isFirstElement}
28
27
  class="input-field"
29
- :value=${sync(x => x.inputValue)}
28
+ :value=${sync((x) => x.inputValue)}
30
29
  @input=${(x, c) => x.parameterEdit(c.event.target.value)}
31
- >
32
- </zero-number-field>
30
+ ></zero-number-field>
33
31
  `)}
34
32
 
35
- <!-- TODO: Implement
36
- ${when(x => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN, html `
33
+ <!-- TODO: Implement
34
+ ${when((x) => x.parameter.PARAM_TYPE === PARAM_TYPE_BOOLEAN, html `
37
35
  <zero-select
38
- autofocus=${x => x.isFirstElement}
36
+ autofocus=${(x) => x.isFirstElement}
39
37
  class="input-field"
40
- :value=${sync(x => x.inputValue)}
38
+ :value=${sync((x) => x.inputValue)}
41
39
  >
42
40
  <zero-option value="true">true</zero-option>
43
41
  <zero-option value="false">false</zero-option>
@@ -45,26 +43,23 @@ export const RuleParameterTemplate = html `
45
43
  `)}
46
44
  -->
47
45
  `)}
48
-
46
+
49
47
  <!-- DEFINED_GROUP -->
50
- ${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
48
+ ${when((x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
51
49
  <zero-select
52
- autofocus=${x => x.isFirstElement}
50
+ autofocus=${(x) => x.isFirstElement}
53
51
  class="input-field"
54
- :value=${sync(x => x.inputValue)}
52
+ :value=${sync((x) => x.inputValue)}
55
53
  >
56
- ${repeat(x => x.parameter.PARAM_SOURCE.split(','), html `
54
+ ${repeat((x) => x.parameter.PARAM_SOURCE.split(','), html `
57
55
  <zero-option value=${(x) => x}>${(x) => x}</zero-option>
58
56
  `)}
59
57
  </zero-select>
60
58
  `)}
61
59
 
62
60
  <!-- TODO: REQ_REP -->
63
- ${when(x => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP, html `
64
- <zero-select
65
- :value=${sync(x => x.inputValue)}
66
- >
67
- </zero-select>
61
+ ${when((x) => x.parameter.PARAM_SOURCE_TYPE === PARAM_SOURCE_TYPE_REQ_REP, html `
62
+ <zero-select :value=${sync((x) => x.inputValue)}></zero-select>
68
63
  `)}
69
64
  </div>
70
65
  `;
@@ -1,12 +1,12 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { Auth } from "@genesislcap/foundation-comms";
3
- import { FASTElement, observable } from "@microsoft/fast-element";
4
- import { AlertService } from "../../../services/alert.service";
5
- import { RuleService } from "../../../services/rule.service";
6
- import { TemplateService } from "../../../services/template.service";
7
- import { RuleStatus } from "../inbox.types";
8
- import { logger, updateArray } from "../../../utils";
9
- import { InboxTab } from "../inbox.template";
2
+ import { Auth } from '@genesislcap/foundation-comms';
3
+ import { FASTElement, observable } from '@microsoft/fast-element';
4
+ import { AlertService } from '../../../services/alert.service';
5
+ import { RuleService } from '../../../services/rule.service';
6
+ import { TemplateService } from '../../../services/template.service';
7
+ import { logger, updateArray } from '../../../utils';
8
+ import { InboxTab } from '../inbox.template';
9
+ import { RuleStatus, } from '../inbox.types';
10
10
  export class FoundationInboxBase extends FASTElement {
11
11
  constructor() {
12
12
  super(...arguments);
@@ -22,26 +22,22 @@ export class FoundationInboxBase extends FASTElement {
22
22
  this.ruleTemplateDetails = null;
23
23
  // #endregion
24
24
  // #region Changed Events
25
- this.alertsChanged = () => this.alertsFilter = this.alerts;
26
- this.rulesChanged = () => this.rulesFilter = this.rules;
27
- this.templatesChanged = () => this.templatesFilter = this.templates;
25
+ this.alertsChanged = () => (this.alertsFilter = this.alerts);
26
+ this.rulesChanged = () => (this.rulesFilter = this.rules);
27
+ this.templatesChanged = () => (this.templatesFilter = this.templates);
28
28
  this.searchAlertLogChanged = () => {
29
29
  if (!this.searchAlertLog) {
30
30
  this.alertsFilter = this.alerts;
31
31
  return;
32
32
  }
33
- this.alertsFilter = this.alerts.filter(item => item.HEADER
34
- .toLowerCase()
35
- .startsWith(this.searchAlertLog.toLowerCase()));
33
+ this.alertsFilter = this.alerts.filter((item) => item.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase()));
36
34
  };
37
35
  this.searchSubscribeChanged = () => {
38
36
  if (!this.searchSubscribe) {
39
37
  this.templatesFilter = this.templates;
40
38
  return;
41
39
  }
42
- this.templatesFilter = this.templates.filter(item => item.NAME
43
- .toLowerCase()
44
- .startsWith(this.searchSubscribe.toLowerCase()));
40
+ this.templatesFilter = this.templates.filter((item) => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
45
41
  };
46
42
  // #endregion
47
43
  }
@@ -78,9 +74,7 @@ export class FoundationInboxBase extends FASTElement {
78
74
  }
79
75
  // #region Tabs
80
76
  checkActiveTab(inboxTab) {
81
- return this.tabs.activeid === inboxTab.toString()
82
- ? ''
83
- : 'display: none;';
77
+ return this.tabs.activeid === inboxTab.toString() ? '' : 'display: none;';
84
78
  }
85
79
  inboxTabChanged(inboxTab) {
86
80
  return __awaiter(this, void 0, void 0, function* () {
@@ -103,8 +97,7 @@ export class FoundationInboxBase extends FASTElement {
103
97
  // #endregion
104
98
  // #region My Alerts
105
99
  // TODO:
106
- editAlert() {
107
- }
100
+ editAlert() { }
108
101
  playPauseAlert(ruleClicked) {
109
102
  return __awaiter(this, void 0, void 0, function* () {
110
103
  switch (ruleClicked.RULE_STATUS) {
@@ -1,8 +1,8 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { customElement } from '@microsoft/fast-element';
3
+ import { FoundationInboxBase } from './inbox-base/inbox-base';
3
4
  import { FoundationInboxStyles } from './inbox.styles';
4
5
  import { FoundationInboxTemplate } from './inbox.template';
5
- import { FoundationInboxBase } from './inbox-base/inbox-base';
6
6
  /**
7
7
  * Foundation inbox component for displaying notifies list.
8
8
  * Allow searching, filtering and deleting notifies
@@ -10,27 +10,26 @@ export const FoundationInboxStyles = css `
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  }
13
-
13
+
14
14
  /* Tabs */
15
15
  zero-tabs {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  width: 100%;
19
19
  }
20
-
20
+
21
21
  zero-tabs::part(tablist) {
22
22
  grid-template-columns: none;
23
23
  flex: 0;
24
24
  }
25
-
25
+
26
26
  zero-tabs::part(tabpanel) {
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  flex: 1;
30
30
  min-height: 0;
31
31
  }
32
- /***/
33
-
32
+
34
33
  /* Search */
35
34
  .search {
36
35
  padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 3px);
@@ -41,11 +40,10 @@ export const FoundationInboxStyles = css `
41
40
  .search-input {
42
41
  display: flex;
43
42
  }
44
-
43
+
45
44
  .search-input::part(root) {
46
45
  width: 100%;
47
46
  }
48
- /***/
49
47
 
50
48
  /* Inbox Header */
51
49
  .inbox-header {
@@ -66,7 +64,6 @@ export const FoundationInboxStyles = css `
66
64
 
67
65
  .inbox-header-close {
68
66
  text-align: center;
69
- height: auto;
70
67
  min-width: 30px;
71
68
  height: 30px;
72
69
  }
@@ -79,7 +76,6 @@ export const FoundationInboxStyles = css `
79
76
  .inbox-header-close::part(start) {
80
77
  margin-inline-end: 0;
81
78
  }
82
- /***/
83
79
 
84
80
  /* Inbox Content */
85
81
  .inbox-content {
@@ -87,8 +83,7 @@ export const FoundationInboxStyles = css `
87
83
  min-height: 0;
88
84
  display: flex;
89
85
  }
90
- /***/
91
-
86
+
92
87
  /* Alert Log */
93
88
  .alert-log-tab-panel {
94
89
  display: flex;
@@ -111,11 +106,8 @@ export const FoundationInboxStyles = css `
111
106
  .toast-severity {
112
107
  width: calc(var(--design-unit) * 1px);
113
108
  background-color: white;
114
- margin:
115
- calc(var(--design-unit) * 2px)
116
- calc(var(--design-unit) * 0px)
117
- calc(var(--design-unit) * 2px)
118
- calc(var(--design-unit) * 2px);
109
+ margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0px)
110
+ calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);
119
111
  }
120
112
 
121
113
  .toast-header {
@@ -133,20 +125,15 @@ export const FoundationInboxStyles = css `
133
125
  display: flex;
134
126
  flex-direction: column;
135
127
  width: 100%;
136
- margin:
137
- calc(var(--design-unit) * 2px)
138
- calc(var(--design-unit) * 0px)
139
- calc(var(--design-unit) * 2px)
140
- calc(var(--design-unit) * 2px);
128
+ margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0px)
129
+ calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px);
141
130
  }
142
131
 
143
132
  .toast-date {
144
133
  color: var(--neutral-foreground-hint);
145
- font-size: calc(var(--design-unit) * 3px)
134
+ font-size: calc(var(--design-unit) * 3px);
146
135
  }
147
136
 
148
- /***/
149
-
150
137
  /* My Alerts */
151
138
  .my-alerts-tab-panel {
152
139
  display: flex;
@@ -159,8 +146,7 @@ export const FoundationInboxStyles = css `
159
146
  flex: 1;
160
147
  overflow: auto;
161
148
  }
162
- /***/
163
-
149
+
164
150
  /* Subscribe */
165
151
  .subscribe-tab-panel {
166
152
  display: flex;
@@ -173,7 +159,6 @@ export const FoundationInboxStyles = css `
173
159
  flex: 1;
174
160
  overflow: auto;
175
161
  }
176
- /***/
177
162
 
178
163
  /* Rule and Template */
179
164
  .template {
@@ -191,16 +176,12 @@ export const FoundationInboxStyles = css `
191
176
  flex-direction: row;
192
177
  gap: calc(var(--design-unit) * 2px);
193
178
  }
194
-
179
+
195
180
  .rule:hover,
196
181
  .template:hover {
197
182
  background-color: #2e3034;
198
183
  }
199
184
 
200
- .rule:hover > .rule-status-actions > .rule-actions {
201
- visibility: visible;
202
- }
203
-
204
185
  .rule-actions {
205
186
  margin-left: auto;
206
187
  display: flex;
@@ -209,6 +190,10 @@ export const FoundationInboxStyles = css `
209
190
  visibility: hidden;
210
191
  }
211
192
 
193
+ .rule:hover > .rule-status-actions > .rule-actions {
194
+ visibility: visible;
195
+ }
196
+
212
197
  .active {
213
198
  color: #7acc79;
214
199
  }
@@ -227,5 +212,4 @@ export const FoundationInboxStyles = css `
227
212
  .rule-action-delete {
228
213
  cursor: pointer;
229
214
  }
230
- /***/
231
215
  `;