@genesislcap/pbc-notify-ui 1.0.25 → 1.0.27

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 (44) hide show
  1. package/dist/dts/components/components.d.ts.map +1 -1
  2. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts +3 -0
  3. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
  4. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.d.ts.map +1 -1
  5. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.d.ts.map +1 -1
  6. package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts +4 -0
  7. package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
  8. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +15 -14
  9. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
  10. package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
  11. package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
  12. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts +2 -1
  13. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
  14. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
  15. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +7 -0
  16. package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
  17. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +2 -0
  18. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
  19. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -1
  20. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
  21. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts +2 -1
  22. package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
  23. package/dist/dts/index.d.ts +1 -0
  24. package/dist/dts/index.d.ts.map +1 -1
  25. package/dist/dts/services/inbox.service.d.ts +12 -0
  26. package/dist/dts/services/inbox.service.d.ts.map +1 -0
  27. package/dist/esm/components/components.js +0 -2
  28. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +10 -2
  29. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.js +0 -7
  30. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.js +4 -4
  31. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.js +25 -4
  32. package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +1 -1
  33. package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +36 -45
  34. package/dist/esm/components/foundation-inbox/inbox.styles.js +1 -0
  35. package/dist/esm/components/foundation-inbox/inbox.template.js +2 -1
  36. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +9 -2
  37. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +18 -0
  38. package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.js +7 -0
  39. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +10 -2
  40. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +1 -0
  41. package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +18 -0
  42. package/dist/esm/index.js +1 -0
  43. package/dist/esm/services/inbox.service.js +77 -0
  44. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"AA6EA,wBAAsB,WAAW;;GAShC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"AA4EA,wBAAsB,WAAW;;GAShC"}
@@ -1,6 +1,9 @@
1
1
  import { FASTElement } from '@microsoft/fast-element';
2
+ import { FoundationInboxService } from '../../../../services/inbox.service';
2
3
  export declare class FoundationInboxCounter extends FASTElement {
3
4
  value: number;
5
+ inboxService: FoundationInboxService;
6
+ private subscriptionHandler;
4
7
  connectedCallback(): Promise<void>;
5
8
  disconnectedCallback(): void;
6
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"foundation-inbox-counter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMjF,qBAKa,sBAAuB,SAAQ,WAAW;IACzC,KAAK,EAAE,MAAM,CAAK;IAExB,iBAAiB;IAIvB,oBAAoB;CAGrB"}
1
+ {"version":3,"file":"foundation-inbox-counter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,qBAKa,sBAAuB,SAAQ,WAAW;IACzC,KAAK,EAAE,MAAM,CAAK;IACN,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,mBAAmB,CAAgB;IAErC,iBAAiB;IAQvB,oBAAoB;CAIrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"foundation-inbox-counter.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,iDAyBxC,CAAC"}
1
+ {"version":3,"file":"foundation-inbox-counter.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,iDAkBxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"foundation-inbox-counter.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAIzE,eAAO,MAAM,8BAA8B,6EAI1C,CAAC"}
1
+ {"version":3,"file":"foundation-inbox-counter.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAIzE,eAAO,MAAM,8BAA8B,6EAO1C,CAAC"}
@@ -1,9 +1,13 @@
1
1
  import { Flyout } from '@genesislcap/foundation-zero';
2
2
  import { FoundationInboxBase } from '../../inbox-base/inbox-base';
3
3
  export declare class FoundationInboxFlyout extends FoundationInboxBase {
4
+ ready: boolean;
4
5
  flyout: Flyout;
5
6
  flyoutClosed: boolean;
7
+ connectedCallback(): Promise<void>;
8
+ disconnectedCallback(): void;
6
9
  open(): Promise<void>;
7
10
  close(): void;
11
+ loadRemotes(): Promise<void>;
8
12
  }
9
13
  //# sourceMappingURL=foundation-inbox-flyout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"foundation-inbox-flyout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIlE,qBAKa,qBAAsB,SAAQ,mBAAmB;IAC5D,MAAM,EAAE,MAAM,CAAC;IACH,YAAY,EAAE,OAAO,CAAQ;IAE5B,IAAI;IAKV,KAAK;CAIb"}
1
+ {"version":3,"file":"foundation-inbox-flyout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAKlE,qBAKa,qBAAsB,SAAQ,mBAAmB;IAEhD,KAAK,EAAE,OAAO,CAAS;IAEnC,MAAM,EAAE,MAAM,CAAC;IACH,YAAY,EAAE,OAAO,CAAQ;IAEnC,iBAAiB;IAKvB,oBAAoB,IAAI,IAAI;IAIf,IAAI;IAMV,KAAK;IAKN,WAAW;CAIlB"}
@@ -1,21 +1,23 @@
1
- import { Auth } from '@genesislcap/foundation-comms';
2
- import { FASTElement } from '@microsoft/fast-element';
3
- import { Tabs } from '@microsoft/fast-foundation';
4
- import { AlertService } from '../../../services/alert.service';
5
- import { RuleService } from '../../../services/rule.service';
6
- import { TemplateService } from '../../../services/template.service';
7
- import { InboxTab } from '../inbox.template';
8
- import { Alert, NotificationRuleTemplateReply, Rule, RuleTemplate } from '../inbox.types';
1
+ import { Auth } from "@genesislcap/foundation-comms";
2
+ import { FASTElement } from "@microsoft/fast-element";
3
+ import { AlertService } from "../../../services/alert.service";
4
+ import { RuleService } from "../../../services/rule.service";
5
+ import { TemplateService } from "../../../services/template.service";
6
+ import { Alert, NotificationRuleTemplateReply, Rule, RuleTemplate } from "../inbox.types";
7
+ import { Tabs } from "@microsoft/fast-foundation";
8
+ import { InboxTab } from "../inbox.template";
9
+ import { FoundationInboxService } from "../../../services/inbox.service";
9
10
  export declare class FoundationInboxBase extends FASTElement {
10
11
  auth: Auth;
11
- ready: boolean;
12
12
  alertService: AlertService;
13
+ inboxService: FoundationInboxService;
14
+ private alertSubscription;
13
15
  private alerts;
14
16
  alertsFilter: Alert[];
15
17
  ruleService: RuleService;
16
- private rules;
18
+ rules: Rule[];
17
19
  rulesFilter: Rule[];
18
- ruleTemplateService: TemplateService;
20
+ templateService: TemplateService;
19
21
  templates: RuleTemplate[];
20
22
  templatesFilter: RuleTemplate[];
21
23
  searchSubscribe: string;
@@ -23,8 +25,7 @@ export declare class FoundationInboxBase extends FASTElement {
23
25
  selectedTab: InboxTab;
24
26
  tabs: Tabs;
25
27
  connectedCallback(): Promise<void>;
26
- open(): Promise<void>;
27
- close(): void;
28
+ disconnectedCallback(): void;
28
29
  checkActiveTab(inboxTab: InboxTab): "" | "display: none;";
29
30
  inboxTabChanged(inboxTab: InboxTab): Promise<void>;
30
31
  alertsChanged: () => Alert[];
@@ -34,10 +35,10 @@ export declare class FoundationInboxBase extends FASTElement {
34
35
  searchAlertLogChanged: () => void;
35
36
  private filterAlerts;
36
37
  searchSubscribeChanged: () => void;
38
+ dismissAlert(alertId: string): void;
37
39
  editAlert(): void;
38
40
  playPauseAlert(ruleClicked: Rule): Promise<void>;
39
41
  deleteAlert(ruleClicked: Rule): Promise<void>;
40
42
  openTemplateSubscription(ruleTemplate: any): Promise<void>;
41
- dismissAlert(alertId: string): void;
42
43
  }
43
44
  //# sourceMappingURL=inbox-base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,KAAK,EACL,6BAA6B,EAC7B,IAAI,EAEJ,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,qBAAa,mBAAoB,SAAQ,WAAW;IAC5C,IAAI,EAAE,IAAI,CAAC;IACL,KAAK,EAAE,OAAO,CAAS;IAErB,YAAY,EAAE,YAAY,CAAC;IAC7B,OAAO,CAAC,MAAM,CAAe;IAC7B,YAAY,EAAE,KAAK,EAAE,CAAM;IAE1B,WAAW,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,KAAK,CAAc;IAC3B,WAAW,EAAE,IAAI,EAAE,CAAM;IAEpB,mBAAmB,EAAE,eAAe,CAAC;IAC1C,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAM;IAErC,eAAe,EAAE,MAAM,CAAM;IAC7B,mBAAmB,EAAE,6BAA6B,CAAQ;IAC1D,WAAW,EAAE,QAAQ,CAAsB;IAEhD,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAkBV,IAAI;IAMV,KAAK;IAKZ,cAAc,CAAC,QAAQ,EAAE,QAAQ;IAI3B,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAwBxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAErD,cAAc,EAAE,MAAM,CAAM;IACxC,qBAAqB,aAEnB;IAEF,OAAO,CAAC,YAAY;IAUpB,sBAAsB,aASpB;IAKF,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAQ7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;IAehD,YAAY,CAAC,OAAO,EAAE,MAAM;CAG7B"}
1
+ {"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAA6B,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAe,6BAA6B,EAAE,IAAI,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnH,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,qBAAa,mBAAoB,SAAQ,WAAW;IAE5C,IAAI,EAAE,IAAI,CAAC;IAEH,YAAY,EAAE,YAAY,CAAC;IACjB,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,iBAAiB,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAe;IAC7B,YAAY,EAAE,KAAK,EAAE,CAAM;IAE1B,WAAW,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAM;IACnB,WAAW,EAAE,IAAI,EAAE,CAAM;IAEpB,eAAe,EAAE,eAAe,CAAC;IACtC,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAM;IAErC,eAAe,EAAE,MAAM,CAAM;IAC7B,mBAAmB,EAAE,6BAA6B,CAAQ;IAC1D,WAAW,EAAE,QAAQ,CAAsB;IAEhD,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAWvB,oBAAoB;IAMpB,cAAc,CAAC,QAAQ,EAAE,QAAQ;IAM3B,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAuBxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAErD,cAAc,EAAE,MAAM,CAAM;IACxC,qBAAqB,aAEnB;IAEF,OAAO,CAAC,YAAY;IAUpB,sBAAsB,aASpB;IAKF,YAAY,CAAC,OAAO,EAAE,MAAM;IAO5B,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAO7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;CAajD"}
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAyNjC,CAAC"}
1
+ {"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDA0NjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,oBAAY,QAAQ;IAClB,SAAS,IAAA;IACT,YAAY,IAAA;IACZ,QAAQ,IAAA;IACR,SAAS,IAAA;CACV;AAgDD;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAiJnC,CAAC"}
1
+ {"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI1C,oBAAY,QAAQ;IAClB,SAAS,IAAA;IACT,YAAY,IAAA;IACZ,QAAQ,IAAA;IACR,SAAS,IAAA;CACV;AAgDD;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAkJnC,CAAC"}
@@ -4,7 +4,7 @@ import { NotifyService } from '../../../../../services/notify.service';
4
4
  import { RuleService } from '../../../../../services/rule.service';
5
5
  import { Field, SystemService } from '../../../../../services/system.service';
6
6
  import { ConditionBuilderEntity } from './rule-condition-builder/rule-condition-builder.types';
7
- import { RuleDialogMode, RuleDialogParams } from './rule-dialog.types';
7
+ import { RuleDialogMode, RuleDialogParams, UpdateType } from './rule-dialog.types';
8
8
  export declare class RuleDialog extends FASTElement {
9
9
  ruleService: RuleService;
10
10
  systemService: SystemService;
@@ -19,6 +19,7 @@ export declare class RuleDialog extends FASTElement {
19
19
  topics: string[];
20
20
  resourceFields: Field[];
21
21
  severity: string;
22
+ updateType: UpdateType[];
22
23
  header: string;
23
24
  message: string;
24
25
  conditions: Array<ConditionBuilderEntity>;
@@ -1 +1 @@
1
- {"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAW9E,OAAO,EACL,sBAAsB,EAEvB,MAAM,uDAAuD,CAAC;AAG/D,OAAO,EAAQ,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,qBAKa,UAAW,SAAQ,WAAW;IAC5B,WAAW,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,MAAM,CAAC;IACH,cAAc,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAEjF,OAAO,CAAC,MAAM,CAAS;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,KAAK,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAM;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE7B,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAkDhD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,MAAM;IA6BN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAgBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IASlD,eAAe;IAKrB,oBAAoB,IAAI,sBAAsB;CAS/C"}
1
+ {"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAW9E,OAAO,EACL,sBAAsB,EAEvB,MAAM,uDAAuD,CAAC;AAG/D,OAAO,EAGL,cAAc,EACd,gBAAgB,EAChB,UAAU,EACX,MAAM,qBAAqB,CAAC;AAE7B,qBAKa,UAAW,SAAQ,WAAW;IAC5B,WAAW,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAE5C,MAAM,EAAE,MAAM,CAAC;IACH,cAAc,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAEjF,OAAO,CAAC,MAAM,CAAS;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,EAAE,KAAK,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAM;IACtB,UAAU,EAAE,UAAU,EAAE,CAAqB;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE7B,UAAU,CAAC,MAAM,EAAE,gBAAgB;IAoDhD,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,MAAM;IA8BN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAiBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IASlD,eAAe;IAKrB,oBAAoB,IAAI,sBAAsB;CAS/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,kBAAkB,EAAE,YAyGhC,CAAC"}
1
+ {"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,kBAAkB,EAAE,YA0HhC,CAAC"}
@@ -13,10 +13,17 @@ export type Rule = {
13
13
  RULE_NAME: string;
14
14
  RULE_DESCRIPTION: string;
15
15
  RULE_TABLE: string;
16
+ TABLE_OPERATIONS: UpdateType[];
16
17
  RULE_EXPRESSION?: any;
17
18
  RAW_RULE_EXPRESSION?: string;
18
19
  RESULT_EXPRESSION?: {
19
20
  ASSIGNMENTS: Array<any>;
20
21
  };
21
22
  };
23
+ export declare enum UpdateType {
24
+ INSERT = "INSERT",
25
+ MODIFY = "MODIFY",
26
+ DELETE = "DELETE"
27
+ }
28
+ export declare const defaultUpdateType: UpdateType[];
22
29
  //# sourceMappingURL=rule-dialog.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,iBAAiB,cAAsB,CAAC"}
@@ -3,6 +3,7 @@ import { FASTElement } from '@microsoft/fast-element';
3
3
  import { NotifyService } from '../../../../../services/notify.service';
4
4
  import { Field, SystemService } from '../../../../../services/system.service';
5
5
  import { TemplateService } from '../../../../../services/template.service';
6
+ import { UpdateType } from '../../rules/rule-dialog/rule-dialog.types';
6
7
  import { ConditionBuilderEntity, ParameterBuilderEntity, TemplateDialogMode } from './template-dialog.types';
7
8
  export declare class TemplateDialog extends FASTElement {
8
9
  templateService: TemplateService;
@@ -16,6 +17,7 @@ export declare class TemplateDialog extends FASTElement {
16
17
  resource: string;
17
18
  topic: any;
18
19
  severity: any;
20
+ updateType: UpdateType[];
19
21
  parameters: Array<ParameterBuilderEntity>;
20
22
  conditions: Array<ConditionBuilderEntity>;
21
23
  resources: Array<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAO3E,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EAEtB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAajC,qBAKa,cAAe,SAAQ,WAAW;IAC5B,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAEhC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,MAAC;IACN,QAAQ,MAAC;IAET,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE3B,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,GAAG;IAsEnC,IAAI,mBAAmB,IAAI,MAAM,CAGhC;IAED,MAAM;IAyCN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAkBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAUxD,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWlD,eAAe;CAItB"}
1
+ {"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAK3E,OAAO,EAAqB,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAG1F,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EAEtB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAajC,qBAKa,cAAe,SAAQ,WAAW;IAC5B,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAEhC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,MAAC;IACN,QAAQ,MAAC;IACT,UAAU,EAAE,UAAU,EAAE,CAAqB;IAE7C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE3B,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,GAAG;IAwEnC,IAAI,mBAAmB,IAAI,MAAM,CAGhC;IAED,MAAM;IAyCN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAmBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAErD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAUxD,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWlD,eAAe;CAItB"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,iDAsEhC,CAAC"}
1
+ {"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,iDAuEhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,sBAAsB,EAAE,YA4HpC,CAAC"}
1
+ {"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,sBAAsB,EAAE,YA6IpC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { UpdateType } from '../../rules/rule-dialog/rule-dialog.types';
1
2
  export declare const TemplateDialogMode: {
2
3
  readonly CREATE: "create";
3
4
  readonly EDIT: "edit";
@@ -14,12 +15,12 @@ export type Template = {
14
15
  RULE_DESCRIPTION: string;
15
16
  RULE_TABLE: string;
16
17
  RULE_EXPRESSION?: any;
18
+ TABLE_OPERATIONS: UpdateType[];
17
19
  RAW_RULE_EXPRESSION?: string;
18
20
  RESULT_EXPRESSION?: {
19
21
  ASSIGNMENTS: Array<any>;
20
22
  };
21
23
  PARAMETER_DETAILS: any;
22
- RULE_EXECUTION_STRATEGY: string;
23
24
  };
24
25
  export type ConditionBuilderEntity = {
25
26
  ID: string;
@@ -1 +1 @@
1
- {"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GACD;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAC;IACvB,uBAAuB,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GACD;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './components/foundation-inbox/inbox';
2
2
  export * from './components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
3
+ export * from './components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
3
4
  export * from './components/foundation-notification-dashboard';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,0FAA0F,CAAC;AACzG,cAAc,gDAAgD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,0FAA0F,CAAC;AACzG,cAAc,4FAA4F,CAAC;AAC3G,cAAc,gDAAgD,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface FoundationInboxServiceStore {
2
+ items: Array<any>;
3
+ }
4
+ export type SubscribeCallback = ({ store }: {
5
+ store: FoundationInboxServiceStore;
6
+ }) => any;
7
+ export interface FoundationInboxService {
8
+ subscribe(callback: SubscribeCallback): void;
9
+ unsubscribe(callback: SubscribeCallback): void;
10
+ }
11
+ export declare const FoundationInboxService: import("@microsoft/fast-foundation").InterfaceSymbol<FoundationInboxService>;
12
+ //# sourceMappingURL=inbox.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inbox.service.d.ts","sourceRoot":"","sources":["../../../src/services/inbox.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,2BAA2B,CAAA;CAAE,KAAK,GAAG,CAAC;AAE3F,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAChD;AAuFD,eAAO,MAAM,sBAAsB,8EAElC,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 { FoundationInboxFlyout } from './foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
6
5
  import { InboxSubscription } from './foundation-inbox/components/inbox-subscription/inbox-subscription';
7
6
  import { RuleParameter } from './foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter';
8
7
  import { NotifyAuditManagement } from './foundation-notification-dashboard/components/notify-audit/notify-audit-management';
@@ -22,7 +21,6 @@ import { TemplateManagement } from './foundation-notification-dashboard/componen
22
21
  // Components
23
22
  // #region Inbox
24
23
  FoundationInboxCounter;
25
- FoundationInboxFlyout;
26
24
  InboxSubscription;
27
25
  RuleParameter;
28
26
  // #endregion Inbox
@@ -2,8 +2,8 @@ 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
- // TODO: Needs to implement this, but after
6
- // the alert can be dismissed in back-end
5
+ import { FoundationInboxService } from '../../../../services/inbox.service';
6
+ import { AlertStatus } from '../../inbox.types';
7
7
  let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -15,15 +15,23 @@ let FoundationInboxCounter = class FoundationInboxCounter extends FASTElement {
15
15
  });
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  _super.connectedCallback.call(this);
18
+ this.subscriptionHandler = ({ store }) => {
19
+ this.value = store === null || store === void 0 ? void 0 : store.items.filter(alert => alert.ALERT_STATUS === AlertStatus.NEW).length;
20
+ };
21
+ this.inboxService.subscribe(this.subscriptionHandler);
18
22
  });
19
23
  }
20
24
  disconnectedCallback() {
21
25
  super.disconnectedCallback();
26
+ this.inboxService.unsubscribe(this.subscriptionHandler);
22
27
  }
23
28
  };
24
29
  __decorate([
25
30
  observable
26
31
  ], FoundationInboxCounter.prototype, "value", void 0);
32
+ __decorate([
33
+ FoundationInboxService
34
+ ], FoundationInboxCounter.prototype, "inboxService", void 0);
27
35
  FoundationInboxCounter = __decorate([
28
36
  customElement({
29
37
  name: 'foundation-inbox-counter',
@@ -2,13 +2,6 @@ import { css } from '@microsoft/fast-element';
2
2
  const BACKGROUND_COLOR = '#EF5547';
3
3
  export const FoundationInboxCounterStyles = css `
4
4
  :host {
5
- position: relative;
6
- top: 4px;
7
- right: 8px;
8
- pointer-events: none;
9
- }
10
-
11
- div {
12
5
  display: inline-block;
13
6
  min-width: 16px;
14
7
  height: 16px;
@@ -1,7 +1,7 @@
1
- import { html } from '@microsoft/fast-element';
1
+ import { html, when } 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'}">
5
- ${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}
6
- </div>
4
+ ${when((x) => x.value > 0, html `
5
+ ${(x) => (x.value > MAX_NUMBER_TO_DISPLAY ? `${MAX_NUMBER_TO_DISPLAY}+` : x.value)}
6
+ `)}
7
7
  `;
@@ -3,25 +3,46 @@ import { observable, customElement } from '@microsoft/fast-element';
3
3
  import { FoundationInboxBase } from '../../inbox-base/inbox-base';
4
4
  import { FoundationInboxFlyoutStyles } from './foundation-inbox-flyout.styles';
5
5
  import { FoundationInboxFlyoutTemplate } from './foundation-inbox-flyout.template';
6
+ import { loadRemotes } from '../../../components';
6
7
  let FoundationInboxFlyout = class FoundationInboxFlyout extends FoundationInboxBase {
7
8
  constructor() {
8
9
  super(...arguments);
10
+ this.ready = false;
9
11
  this.flyoutClosed = true;
10
12
  }
11
- open() {
13
+ connectedCallback() {
12
14
  const _super = Object.create(null, {
13
- open: { get: () => super.open }
15
+ connectedCallback: { get: () => super.connectedCallback }
16
+ });
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ _super.connectedCallback.call(this);
19
+ yield this.loadRemotes();
14
20
  });
21
+ }
22
+ disconnectedCallback() {
23
+ super.disconnectedCallback();
24
+ }
25
+ open() {
15
26
  return __awaiter(this, void 0, void 0, function* () {
16
- _super.open.call(this);
17
27
  this.flyoutClosed = false;
28
+ this.rules = yield this.ruleService.getRules();
29
+ this.templates = yield this.templateService.getRuleTemplates();
18
30
  });
19
31
  }
20
32
  close() {
21
- super.close();
33
+ this.ruleTemplateDetails = null;
22
34
  this.flyout.closeFlyout();
23
35
  }
36
+ loadRemotes() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ const remoteComponents = yield loadRemotes();
39
+ this.ready = true;
40
+ });
41
+ }
24
42
  };
43
+ __decorate([
44
+ observable
45
+ ], FoundationInboxFlyout.prototype, "ready", void 0);
25
46
  __decorate([
26
47
  observable
27
48
  ], FoundationInboxFlyout.prototype, "flyoutClosed", void 0);
@@ -9,7 +9,7 @@ export const FoundationInboxFlyoutTemplate = html `
9
9
  displayHeader=${false}
10
10
  >
11
11
  <div class="inbox-header">
12
- <div class="inbox-header-title">Alerts</div>
12
+ <div class="inbox-header-title">Alerts Centre</div>
13
13
  <zero-button class="inbox-header-close" @click=${(x) => x.close()}>
14
14
  <zero-icon part="icon" name="xmark" size="xl"></zero-icon>
15
15
  </zero-button>
@@ -1,16 +1,16 @@
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 { logger, updateArray } from '../../../utils';
8
- import { InboxTab } from '../inbox.template';
9
- import { RuleStatus, } from '../inbox.types';
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 { AlertStatus, RuleStatus } from "../inbox.types";
8
+ import { logger } from "../../../utils";
9
+ import { InboxTab } from "../inbox.template";
10
+ import { FoundationInboxService } from "../../../services/inbox.service";
10
11
  export class FoundationInboxBase extends FASTElement {
11
12
  constructor() {
12
13
  super(...arguments);
13
- this.ready = false;
14
14
  this.alerts = [];
15
15
  this.alertsFilter = [];
16
16
  this.rules = [];
@@ -36,6 +36,7 @@ export class FoundationInboxBase extends FASTElement {
36
36
  }
37
37
  this.templatesFilter = this.templates.filter((item) => item.NAME.toLowerCase().startsWith(this.searchSubscribe.toLowerCase()));
38
38
  };
39
+ // #endregion
39
40
  }
40
41
  connectedCallback() {
41
42
  const _super = Object.create(null, {
@@ -43,35 +44,24 @@ export class FoundationInboxBase extends FASTElement {
43
44
  });
44
45
  return __awaiter(this, void 0, void 0, function* () {
45
46
  _super.connectedCallback.call(this);
46
- this.alertService.getAlerts().subscribe({
47
- next: (streamMessage) => {
48
- var _a;
49
- if (streamMessage.ERROR) {
50
- logger.error(streamMessage.ERROR);
51
- return;
52
- }
53
- this.alerts = updateArray((_a = streamMessage.ROW) !== null && _a !== void 0 ? _a : null, this.alerts);
54
- this.filterAlerts();
55
- },
56
- error: (error) => {
57
- logger.error(error);
58
- },
59
- });
60
- });
61
- }
62
- open() {
63
- return __awaiter(this, void 0, void 0, function* () {
64
- // Alerts is updated by stream
47
+ this.alertSubscription = ({ store }) => {
48
+ this.alerts = (store === null || store === void 0 ? void 0 : store.items) || [];
49
+ this.filterAlerts();
50
+ };
51
+ this.inboxService.subscribe(this.alertSubscription);
65
52
  this.rules = yield this.ruleService.getRules();
66
- this.templates = yield this.ruleTemplateService.getRuleTemplates();
53
+ this.templates = yield this.templateService.getRuleTemplates();
67
54
  });
68
55
  }
69
- close() {
70
- this.ruleTemplateDetails = null;
56
+ disconnectedCallback() {
57
+ super.disconnectedCallback();
58
+ this.inboxService.unsubscribe(this.alertSubscription);
71
59
  }
72
60
  // #region Tabs
73
61
  checkActiveTab(inboxTab) {
74
- return this.tabs.activeid === inboxTab.toString() ? '' : 'display: none;';
62
+ return this.tabs.activeid === inboxTab.toString()
63
+ ? ''
64
+ : 'display: none;';
75
65
  }
76
66
  inboxTabChanged(inboxTab) {
77
67
  return __awaiter(this, void 0, void 0, function* () {
@@ -86,7 +76,7 @@ export class FoundationInboxBase extends FASTElement {
86
76
  this.rules = yield this.ruleService.getRules();
87
77
  break;
88
78
  case InboxTab.Subscribe:
89
- this.templates = yield this.ruleTemplateService.getRuleTemplates();
79
+ this.templates = yield this.templateService.getRuleTemplates();
90
80
  break;
91
81
  default:
92
82
  logger.error('Unexpected inboxTab:', inboxTab);
@@ -97,11 +87,16 @@ export class FoundationInboxBase extends FASTElement {
97
87
  filterAlerts() {
98
88
  this.alertsFilter = this.alerts.filter((alert) => (!this.searchAlertLog ||
99
89
  alert.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase())) &&
100
- ((this.selectedTab === InboxTab.AlertsNew && alert.ALERT_STATUS === 'NEW') ||
101
- (this.selectedTab === InboxTab.AlertHistory && alert.ALERT_STATUS !== 'NEW')));
90
+ ((this.selectedTab === InboxTab.AlertsNew && alert.ALERT_STATUS === AlertStatus.NEW) ||
91
+ (this.selectedTab === InboxTab.AlertHistory && alert.ALERT_STATUS !== AlertStatus.NEW)));
102
92
  }
103
93
  // #endregion
104
- // #region My Alerts
94
+ // #region New and History
95
+ dismissAlert(alertId) {
96
+ this.alertService.dismissNotifyAlert(alertId);
97
+ }
98
+ // #endregion
99
+ // #region Subscriptions
105
100
  // TODO:
106
101
  editAlert() { }
107
102
  playPauseAlert(ruleClicked) {
@@ -136,23 +131,19 @@ export class FoundationInboxBase extends FASTElement {
136
131
  return;
137
132
  }
138
133
  // Open
139
- this.ruleTemplateDetails = yield this.ruleTemplateService.getRuleTemplateDetails(ruleTemplate.ID);
134
+ this.ruleTemplateDetails = yield this.templateService.getRuleTemplateDetails(ruleTemplate.ID);
140
135
  });
141
136
  }
142
- // #endregion
143
- dismissAlert(alertId) {
144
- this.alertService.dismissNotifyAlert(alertId);
145
- }
146
137
  }
147
138
  __decorate([
148
139
  Auth
149
140
  ], FoundationInboxBase.prototype, "auth", void 0);
150
- __decorate([
151
- observable
152
- ], FoundationInboxBase.prototype, "ready", void 0);
153
141
  __decorate([
154
142
  AlertService
155
143
  ], FoundationInboxBase.prototype, "alertService", void 0);
144
+ __decorate([
145
+ FoundationInboxService
146
+ ], FoundationInboxBase.prototype, "inboxService", void 0);
156
147
  __decorate([
157
148
  observable
158
149
  ], FoundationInboxBase.prototype, "alerts", void 0);
@@ -170,7 +161,7 @@ __decorate([
170
161
  ], FoundationInboxBase.prototype, "rulesFilter", void 0);
171
162
  __decorate([
172
163
  TemplateService
173
- ], FoundationInboxBase.prototype, "ruleTemplateService", void 0);
164
+ ], FoundationInboxBase.prototype, "templateService", void 0);
174
165
  __decorate([
175
166
  observable
176
167
  ], FoundationInboxBase.prototype, "templates", void 0);
@@ -82,6 +82,7 @@ export const FoundationInboxStyles = css `
82
82
  flex: 1;
83
83
  min-height: 0;
84
84
  display: flex;
85
+ height: calc(100% - 54px);
85
86
  }
86
87
 
87
88
  /* Alert Log */
@@ -93,7 +93,8 @@ export const FoundationInboxTemplate = html `
93
93
  `)}
94
94
 
95
95
  <!-- Alerts -->
96
- ${(x) => alertsTab(InboxTab.AlertsNew)} ${(x) => alertsTab(InboxTab.AlertHistory)}
96
+ ${(_) => alertsTab(InboxTab.AlertsNew)}
97
+ ${(_) => alertsTab(InboxTab.AlertHistory)}
97
98
  ${when((x) => { var _a; return (_a = x.auth.currentUser) === null || _a === void 0 ? void 0 : _a.hasPermission(NotifyPermission.NotificationRuleView); }, html `
98
99
  <!-- Rules -->
99
100
  <zero-tab-panel
@@ -12,13 +12,14 @@ import { createAssignment, createConditions, getAssignmentValue, UUIDGenerator,
12
12
  import { RIGHT_CRITERIA, } from './rule-condition-builder/rule-condition-builder.types';
13
13
  import { RuleDialogStyles } from './rule-dialog.styles';
14
14
  import { RuleDialogTemplate } from './rule-dialog.template';
15
- import { RuleDialogMode } from './rule-dialog.types';
15
+ import { defaultUpdateType, RuleDialogMode, } from './rule-dialog.types';
16
16
  let RuleDialog = class RuleDialog extends FASTElement {
17
17
  constructor() {
18
18
  super(...arguments);
19
19
  this.resource = ''; // Tables + Views
20
20
  this.topic = '';
21
21
  this.severity = '';
22
+ this.updateType = defaultUpdateType;
22
23
  this.conditions = [];
23
24
  this.resources = [];
24
25
  }
@@ -35,6 +36,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
35
36
  this.resourceFields = yield this.systemService.getFields(this.resource);
36
37
  this.topic = this.topics[0];
37
38
  this.severity = SEVERITY_INFORMATION;
39
+ this.updateType = defaultUpdateType;
38
40
  break;
39
41
  case RuleDialogMode.EDIT:
40
42
  const rule = params.data;
@@ -42,6 +44,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
42
44
  this.name = rule.RULE_NAME;
43
45
  this.description = rule.RULE_DESCRIPTION;
44
46
  this.resource = rule.RULE_TABLE;
47
+ this.updateType = rule.TABLE_OPERATIONS;
45
48
  // Conditions
46
49
  this.conditions = (_a = rule.RULE_EXPRESSION.CONDITIONS) === null || _a === void 0 ? void 0 : _a.map((condition) => {
47
50
  var _a, _b;
@@ -72,7 +75,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
72
75
  return `${this.ruleDialogMode === RuleDialogMode.CREATE ? 'Create' : 'Edit'} Rule`;
73
76
  }
74
77
  submit() {
75
- const rule = Object.assign(Object.assign({}, (this.ruleDialogMode === RuleDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
78
+ const rule = Object.assign(Object.assign({}, (this.ruleDialogMode === RuleDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, TABLE_OPERATIONS: this.updateType, RULE_EXPRESSION: {
76
79
  CONDITIONS: createConditions(this.conditions, null),
77
80
  }, RESULT_EXPRESSION: {
78
81
  ASSIGNMENTS: [
@@ -119,6 +122,7 @@ let RuleDialog = class RuleDialog extends FASTElement {
119
122
  this.topic = null;
120
123
  this.topics = [];
121
124
  this.severity = null;
125
+ this.updateType = defaultUpdateType;
122
126
  this.conditions = [];
123
127
  }
124
128
  // #region Condition
@@ -182,6 +186,9 @@ __decorate([
182
186
  __decorate([
183
187
  observable
184
188
  ], RuleDialog.prototype, "severity", void 0);
189
+ __decorate([
190
+ observable
191
+ ], RuleDialog.prototype, "updateType", void 0);
185
192
  __decorate([
186
193
  observable
187
194
  ], RuleDialog.prototype, "header", void 0);
@@ -2,6 +2,7 @@ import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html, ref, repeat } from '@microsoft/fast-element';
3
3
  import { eventDetail } from '../../../../../utils/eventDetail';
4
4
  import { ALL_SEVERITIES } from '../../../types/severity';
5
+ import { UpdateType } from './rule-dialog.types';
5
6
  export const RuleDialogTemplate = html `
6
7
  <zero-modal ${ref('dialog')} class="rule-dialog" :onCloseCallback=${(x) => () => x.close()}>
7
8
  <div slot="top" class="rule-dialog-top">${(x) => x.ruleDialogTitle}</div>
@@ -56,6 +57,23 @@ export const RuleDialogTemplate = html `
56
57
  ></options-datasource>
57
58
  </zero-select>
58
59
  </div>
60
+ <div class="control">
61
+ <label>Update Type</label>
62
+ <zero-multiselect
63
+ :selectedOptions=${(x) => x.updateType}
64
+ @selectionChange=${(x, c) => {
65
+ x.updateType = c.event.detail;
66
+ }}
67
+ search="false"
68
+ all="false"
69
+ >
70
+ <multiselect-datasource
71
+ value-field="value"
72
+ label-field="value"
73
+ :data=${() => Object.values(UpdateType).map((value) => ({ value, label: value }))}
74
+ ></multiselect-datasource>
75
+ </zero-multiselect>
76
+ </div>
59
77
  </div>
60
78
 
61
79
  <div class="content-row">
@@ -2,3 +2,10 @@ export const RuleDialogMode = {
2
2
  CREATE: 'create',
3
3
  EDIT: 'edit',
4
4
  };
5
+ export var UpdateType;
6
+ (function (UpdateType) {
7
+ UpdateType["INSERT"] = "INSERT";
8
+ UpdateType["MODIFY"] = "MODIFY";
9
+ UpdateType["DELETE"] = "DELETE";
10
+ })(UpdateType || (UpdateType = {}));
11
+ export const defaultUpdateType = [UpdateType.INSERT];
@@ -8,6 +8,7 @@ import { humanize, logger } from '../../../../../utils';
8
8
  import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../types/expression-type';
9
9
  import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../types/right-criteria';
10
10
  import { SEVERITY_INFORMATION } from '../../../types/severity';
11
+ import { defaultUpdateType } from '../../rules/rule-dialog/rule-dialog.types';
11
12
  import { TemplateDialogStyles as styles } from './template-dialog.styles';
12
13
  import { TemplateDialogTemplate as template } from './template-dialog.template';
13
14
  import { TemplateDialogMode, } from './template-dialog.types';
@@ -17,6 +18,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
17
18
  constructor() {
18
19
  super(...arguments);
19
20
  this.resource = ''; // Tables + Views
21
+ this.updateType = defaultUpdateType;
20
22
  this.parameters = [];
21
23
  this.conditions = [];
22
24
  this.resources = [];
@@ -36,6 +38,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
36
38
  this.fields = yield this.systemService.getFields(this.resource);
37
39
  this.topic = this.topics[0];
38
40
  this.severity = SEVERITY_INFORMATION;
41
+ this.updateType = defaultUpdateType;
39
42
  break;
40
43
  case TemplateDialogMode.EDIT:
41
44
  const ruleTemplate = params.data;
@@ -43,6 +46,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
43
46
  this.name = ruleTemplate.RULE_NAME;
44
47
  this.description = ruleTemplate.RULE_DESCRIPTION;
45
48
  this.resource = ruleTemplate.RULE_TABLE;
49
+ this.updateType = ruleTemplate.TABLE_OPERATIONS;
46
50
  this.fields = yield this.systemService.getFields(this.resource);
47
51
  // Parameters
48
52
  this.parameters = Object.keys(ruleTemplate.PARAMETERS).map((key) => {
@@ -94,7 +98,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
94
98
  submit() {
95
99
  const ruleTemplate = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && {
96
100
  DYNAMIC_RULE_ID: this.templateId,
97
- })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
101
+ })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, TABLE_OPERATIONS: this.updateType, RULE_EXPRESSION: {
98
102
  CONDITIONS: createConditions(this.conditions, this.parameters),
99
103
  }, RAW_RULE_EXPRESSION: null, RESULT_EXPRESSION: {
100
104
  ASSIGNMENTS: [
@@ -103,7 +107,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
103
107
  createAssignment('BODY', this.message),
104
108
  createAssignment('NOTIFY_SEVERITY', humanize(this.severity)),
105
109
  ],
106
- }, PARAMETER_DETAILS: createParameterDetails(this.parameters), RULE_EXECUTION_STRATEGY: 'UNLIMITED' });
110
+ }, PARAMETER_DETAILS: createParameterDetails(this.parameters) });
107
111
  switch (this.templateDialogMode) {
108
112
  case TemplateDialogMode.CREATE:
109
113
  this.templateService
@@ -146,6 +150,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
146
150
  this.resource = null;
147
151
  this.topic = null;
148
152
  this.severity = null;
153
+ this.updateType = defaultUpdateType;
149
154
  this.conditions = [];
150
155
  this.parameters = [];
151
156
  this.resources = [];
@@ -218,6 +223,9 @@ __decorate([
218
223
  __decorate([
219
224
  observable
220
225
  ], TemplateDialog.prototype, "severity", void 0);
226
+ __decorate([
227
+ observable
228
+ ], TemplateDialog.prototype, "updateType", void 0);
221
229
  __decorate([
222
230
  observable
223
231
  ], TemplateDialog.prototype, "parameters", void 0);
@@ -61,6 +61,7 @@ export const TemplateDialogStyles = css `
61
61
  border-radius: calc(var(--control-corner-radius) * 1px);
62
62
  display: flex;
63
63
  padding: calc(var(--design-unit) * 2px);
64
+ flex-direction: column;
64
65
  }
65
66
 
66
67
  .parameter,
@@ -2,6 +2,7 @@ import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html, ref, repeat } from '@microsoft/fast-element';
3
3
  import { eventDetail } from '../../../../../utils/eventDetail';
4
4
  import { ALL_SEVERITIES } from '../../../types/severity';
5
+ import { UpdateType } from '../../rules/rule-dialog/rule-dialog.types';
5
6
  export const TemplateDialogTemplate = html `
6
7
  <zero-modal ${ref('dialog')} class="template-dialog" :onCloseCallback=${(x) => () => x.close()}>
7
8
  <div slot="top" class="template-dialog-top">${(x) => x.templateDialogTitle}</div>
@@ -49,6 +50,23 @@ export const TemplateDialogTemplate = html `
49
50
  ></options-datasource>
50
51
  </zero-select>
51
52
  </div>
53
+ <div class="control">
54
+ <label>Update Type</label>
55
+ <zero-multiselect
56
+ :selectedOptions=${(x) => x.updateType}
57
+ @selectionChange=${(x, c) => {
58
+ x.updateType = c.event.detail;
59
+ }}
60
+ search="false"
61
+ all="false"
62
+ >
63
+ <multiselect-datasource
64
+ value-field="value"
65
+ label-field="value"
66
+ :data=${() => Object.values(UpdateType).map((value) => ({ value, label: value }))}
67
+ ></multiselect-datasource>
68
+ </zero-multiselect>
69
+ </div>
52
70
  </div>
53
71
 
54
72
  <div class="content-row">
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './components/foundation-inbox/inbox';
2
2
  export * from './components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
3
+ export * from './components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
3
4
  export * from './components/foundation-notification-dashboard';
@@ -0,0 +1,77 @@
1
+ import { __decorate } from "tslib";
2
+ import { Auth, Connect } from '@genesislcap/foundation-comms';
3
+ import { DI } from '@microsoft/fast-foundation';
4
+ import { logger } from '../utils';
5
+ class FoundationInboxServiceImpl {
6
+ constructor() {
7
+ this.subscriptions = [];
8
+ this.store = {
9
+ items: [],
10
+ };
11
+ this.modifyAlert = (alert, details) => {
12
+ var _a;
13
+ return ((_a = alert.DETAILS) === null || _a === void 0 ? void 0 : _a.ROW_REF) === (details === null || details === void 0 ? void 0 : details.DETAILS.ROW_REF)
14
+ ? Object.assign(Object.assign({}, alert), details) : alert;
15
+ };
16
+ }
17
+ getStream() {
18
+ return this.connect.stream('ALL_NOTIFY_ALERT_RECORDS', (result) => {
19
+ this.sourceRef = result.SOURCE_REF;
20
+ if (!(result === null || result === void 0 ? void 0 : result.ROW)) {
21
+ this.store.items = [];
22
+ return;
23
+ }
24
+ if (result.SEQUENCE_ID === 1) {
25
+ this.store.items = result.ROW;
26
+ }
27
+ else {
28
+ const details = result === null || result === void 0 ? void 0 : result.ROW[0];
29
+ switch (details === null || details === void 0 ? void 0 : details.DETAILS.OPERATION) {
30
+ case 'INSERT':
31
+ this.store.items.push(details);
32
+ break;
33
+ case 'MODIFY':
34
+ this.store.items = this.store.items.map((alert) => this.modifyAlert(alert, details));
35
+ break;
36
+ case 'DELETE':
37
+ // Implement if there's a case that a NOTIFY_ALERT record is deleted
38
+ break;
39
+ default:
40
+ logger.error('Unexpected operation');
41
+ }
42
+ }
43
+ this.subscriptions.forEach((callback) => callback({ store: this.store }));
44
+ }, (response) => logger.error(response));
45
+ }
46
+ subscribe(callback) {
47
+ this.subscriptions.push(callback);
48
+ if (this.stream) {
49
+ callback({ store: this.store });
50
+ return;
51
+ }
52
+ this.stream = this.getStream();
53
+ this.stream.subscribe();
54
+ }
55
+ unsubscribe(callback) {
56
+ const index = this.subscriptions.indexOf(callback);
57
+ if (index >= 0) {
58
+ this.subscriptions.splice(index, 1);
59
+ }
60
+ this.dataLogoff();
61
+ }
62
+ dataLogoff() {
63
+ if (this.sourceRef && this.auth.isLoggedIn) {
64
+ this.connect.dataLogoff(this.sourceRef);
65
+ }
66
+ this.stream = undefined;
67
+ this.store = { items: [] };
68
+ this.sourceRef = undefined;
69
+ }
70
+ }
71
+ __decorate([
72
+ Connect
73
+ ], FoundationInboxServiceImpl.prototype, "connect", void 0);
74
+ __decorate([
75
+ Auth
76
+ ], FoundationInboxServiceImpl.prototype, "auth", void 0);
77
+ export const FoundationInboxService = DI.createInterface((x) => x.singleton(FoundationInboxServiceImpl));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-notify-ui",
3
3
  "description": "Genesis PBC Notify UI",
4
- "version": "1.0.25",
4
+ "version": "1.0.27",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"