@genesislcap/pbc-notify-ui 1.0.45 → 1.0.47

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 (25) hide show
  1. package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
  2. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +10 -0
  3. package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
  4. package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
  5. package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
  6. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +1 -0
  7. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
  8. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.styles.d.ts.map +1 -1
  9. package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
  10. package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts +13 -1
  11. package/dist/dts/components/foundation-notification-dashboard/types/severity.d.ts.map +1 -1
  12. package/dist/dts/sandbox.d.ts.map +1 -1
  13. package/dist/dts/services/inbox.service.d.ts +1 -1
  14. package/dist/dts/services/inbox.service.d.ts.map +1 -1
  15. package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +2 -3
  16. package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +76 -9
  17. package/dist/esm/components/foundation-inbox/inbox.styles.js +37 -1
  18. package/dist/esm/components/foundation-inbox/inbox.template.js +92 -12
  19. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +6 -0
  20. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js +9 -0
  21. package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +24 -17
  22. package/dist/esm/components/foundation-notification-dashboard/types/severity.js +4 -4
  23. package/dist/esm/sandbox.js +19 -3
  24. package/dist/esm/services/inbox.service.js +4 -4
  25. package/package.json +3 -2
@@ -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,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAK5E,qBAKa,sBAAuB,SAAQ,cAAc;IAC5C,KAAK,EAAE,MAAM,CAAK;IACN,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,mBAAmB,CAAgB;IAErC,iBAAiB;IAQvB,oBAAoB;CAIrB"}
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,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAI5E,qBAKa,sBAAuB,SAAQ,cAAc;IAC5C,KAAK,EAAE,MAAM,CAAK;IACN,YAAY,EAAE,sBAAsB,CAAC;IAC7D,OAAO,CAAC,mBAAmB,CAAgB;IAErC,iBAAiB;IAQvB,oBAAoB;CAIrB"}
@@ -1,4 +1,5 @@
1
1
  import { Auth } from '@genesislcap/foundation-comms';
2
+ import { Expression } from '@genesislcap/foundation-criteria';
2
3
  import type { Tabs } from '@genesislcap/foundation-ui';
3
4
  import { GenesisElement } from '@genesislcap/web-core';
4
5
  import { AlertService } from '../../../services/alert.service';
@@ -20,9 +21,16 @@ export declare class FoundationInboxBase extends GenesisElement {
20
21
  templates: RuleTemplate[];
21
22
  templatesFilter: RuleTemplate[];
22
23
  searchAlertLog: string;
24
+ severitySearchValue: string;
25
+ titleSearchValue: string;
26
+ bodySearchValue: string;
23
27
  searchSubscribe: string;
24
28
  ruleTemplateDetails: NotificationRuleTemplateReply;
25
29
  selectedTab: InboxTab;
30
+ fromDatePickerValue: string;
31
+ toDatePickerValue: string;
32
+ criteriaMatchAlertStatus: Expression;
33
+ reverse: boolean;
26
34
  tabs: Tabs;
27
35
  connectedCallback(): Promise<void>;
28
36
  disconnectedCallback(): void;
@@ -31,6 +39,7 @@ export declare class FoundationInboxBase extends GenesisElement {
31
39
  rulesChanged: () => Rule[];
32
40
  templatesChanged: () => RuleTemplate[];
33
41
  filterSearchAlertLog(): void;
42
+ reverseOrder(reverse: boolean): void;
34
43
  filterSearchSubscribe(): void;
35
44
  dismissAlert(alertId: string): void;
36
45
  validateResponse(response: any): void;
@@ -39,5 +48,6 @@ export declare class FoundationInboxBase extends GenesisElement {
39
48
  playPauseAlert(ruleClicked: Rule): Promise<void>;
40
49
  deleteAlert(ruleClicked: Rule): Promise<void>;
41
50
  openTemplateSubscription(ruleTemplate: any): Promise<void>;
51
+ formatDateForMatchCriteria(date: any): any;
42
52
  }
43
53
  //# 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,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,OAAO,EACL,KAAK,EAEL,QAAQ,EACR,6BAA6B,EAC7B,IAAI,EAEJ,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,qBAAa,mBAAoB,SAAQ,cAAc;IAC/C,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,cAAc,EAAE,MAAM,CAAQ;IAC9B,eAAe,EAAE,MAAM,CAAQ;IAC/B,mBAAmB,EAAE,6BAA6B,CAAQ;IAC1D,WAAW,EAAE,QAAQ,CAAuB;IAEjD,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAWvB,oBAAoB;IAMd,eAAe,CAAC,QAAQ,EAAE,QAAQ;IAuBxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAEjE,oBAAoB;IAUpB,qBAAqB;IAarB,YAAY,CAAC,OAAO,EAAE,MAAM;IAI5B,gBAAgB,CAAC,QAAQ,KAAA;IASzB,gBAAgB;IAyBhB,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAO7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;CAWjD"}
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,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAEL,UAAU,EAIX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,OAAO,EACL,KAAK,EACL,QAAQ,EACR,6BAA6B,EAC7B,IAAI,EAEJ,YAAY,EACb,MAAM,gBAAgB,CAAC;AAYxB,qBAAa,mBAAoB,SAAQ,cAAc;IAC/C,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,cAAc,EAAE,MAAM,CAAQ;IAC9B,mBAAmB,EAAE,MAAM,CAAQ;IACnC,gBAAgB,EAAE,MAAM,CAAQ;IAChC,eAAe,EAAE,MAAM,CAAQ;IAE/B,eAAe,EAAE,MAAM,CAAQ;IAC/B,mBAAmB,EAAE,6BAA6B,CAAQ;IAC1D,WAAW,EAAE,QAAQ,CAAuB;IAE5C,mBAAmB,EAAE,MAAM,CAAQ;IACnC,iBAAiB,EAAE,MAAM,CAAQ;IAEjC,wBAAwB,EAAE,UAAU,CAAC;IACrC,OAAO,EAAE,OAAO,CAAS;IAE9B,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAiBvB,oBAAoB;IAMd,eAAe,CAAC,QAAQ,EAAE,QAAQ;IA+BxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAEjE,oBAAoB;IAiDpB,YAAY,CAAC,OAAO,EAAE,OAAO;IAK7B,qBAAqB;IAarB,YAAY,CAAC,OAAO,EAAE,MAAM;IAI5B,gBAAgB,CAAC,QAAQ,KAAA;IASzB,gBAAgB;IA4BhB,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAO7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;IAYhD,0BAA0B,CAAC,IAAI,KAAA;CAIhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDAkDrC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,iDAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,iDA0D3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAwBjC,CAAC"}
1
+ {"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AAyFA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDAkDrC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,iDAYrB,CAAC;AAEF,eAAO,MAAM,eAAe,iDA0D3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAwBjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAoE/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAoJnC,CAAC"}
1
+ {"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAsJ/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAoJnC,CAAC"}
@@ -6,6 +6,7 @@ import { GenesisElement } from '@genesislcap/web-core';
6
6
  export declare class FoundationNotificationDashboard extends GenesisElement {
7
7
  auth: Auth;
8
8
  ready: boolean;
9
+ hasPermissions: boolean;
9
10
  connectedCallback(): Promise<void>;
10
11
  /**
11
12
  * Load remote components
@@ -1 +1 @@
1
- {"version":3,"file":"notification-dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAKlF;;GAEG;AACH,qBAKa,+BAAgC,SAAQ,cAAc;IAC3D,IAAI,EAAE,IAAI,CAAC;IACL,KAAK,EAAE,OAAO,CAAS;IAE7B,iBAAiB;IAKvB;;;;OAIG;IACG,WAAW;CAIlB"}
1
+ {"version":3,"file":"notification-dashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAMlF;;GAEG;AACH,qBAKa,+BAAgC,SAAQ,cAAc;IAC3D,IAAI,EAAE,IAAI,CAAC;IACL,KAAK,EAAE,OAAO,CAAS;IACvB,cAAc,EAAE,OAAO,CAAQ;IAErC,iBAAiB;IAUvB;;;;OAIG;IACG,WAAW;CAIlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"notification-dashboard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,qCAAqC,iDAMjD,CAAC"}
1
+ {"version":3,"file":"notification-dashboard.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.styles.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,qCAAqC,iDAejD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"notification-dashboard.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAMhF,eAAO,MAAM,uCAAuC,sFAsCnD,CAAC"}
1
+ {"version":3,"file":"notification-dashboard.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/notification-dashboard.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAMhF,eAAO,MAAM,uCAAuC,sFAiDnD,CAAC"}
@@ -2,6 +2,18 @@ export declare const SEVERITY_INFORMATION = "INFORMATION";
2
2
  export declare const SEVERITY_CRITICAL = "CRITICAL";
3
3
  export declare const SEVERITY_SERIOUS = "SERIOUS";
4
4
  export declare const SEVERITY_WARNING = "WARNING";
5
- export declare const ALL_SEVERITIES: readonly ["INFORMATION", "CRITICAL", "SERIOUS", "WARNING"];
5
+ export declare const ALL_SEVERITIES: readonly [{
6
+ readonly type: "INFORMATION";
7
+ readonly text: "Information";
8
+ }, {
9
+ readonly type: "WARNING";
10
+ readonly text: "Warning";
11
+ }, {
12
+ readonly type: "SERIOUS";
13
+ readonly text: "Serious";
14
+ }, {
15
+ readonly type: "CRITICAL";
16
+ readonly text: "Critical";
17
+ }];
6
18
  export type Severity = (typeof ALL_SEVERITIES)[number];
7
19
  //# sourceMappingURL=severity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc,4DAKjB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/types/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,eAAO,MAAM,cAAc;;;;;;;;;;;;EAKjB,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAsB,cAAc,EAA0B,MAAM,uBAAuB,CAAC;AAEnG,qBAea,qBAAsB,SAAQ,cAAc;IAC9C,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IACN,KAAK,UAAS;IAEpB,iBAAiB;CAqBxB"}
1
+ {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAsB,cAAc,EAA0B,MAAM,uBAAuB,CAAC;AAEnG,qBA+Ba,qBAAsB,SAAQ,cAAc;IAC9C,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IACN,KAAK,UAAS;IAEpB,iBAAiB;CAqBxB"}
@@ -5,7 +5,7 @@ export type SubscribeCallback = ({ store }: {
5
5
  store: FoundationInboxServiceStore;
6
6
  }) => any;
7
7
  export interface FoundationInboxService {
8
- subscribe(callback: SubscribeCallback): void;
8
+ subscribe(callback: SubscribeCallback, reverse: boolean, criteriaMatch: string): void;
9
9
  unsubscribe(callback: SubscribeCallback): void;
10
10
  }
11
11
  export declare const FoundationInboxService: import("@microsoft/fast-foundation").InterfaceSymbol<FoundationInboxService>;
@@ -1 +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;AAsFD,eAAO,MAAM,sBAAsB,8EAElC,CAAC"}
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,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtF,WAAW,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAChD;AA0FD,eAAO,MAAM,sBAAsB,8EAElC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
3
3
  import { FoundationInboxService } from '../../../../services/inbox.service';
4
- import { AlertStatus } from '../../inbox.types';
5
4
  import { FoundationInboxCounterStyles } from './foundation-inbox-counter.styles';
6
5
  import { FoundationInboxCounterTemplate } from './foundation-inbox-counter.template';
7
6
  let FoundationInboxCounter = class FoundationInboxCounter extends GenesisElement {
@@ -16,9 +15,9 @@ let FoundationInboxCounter = class FoundationInboxCounter extends GenesisElement
16
15
  return __awaiter(this, void 0, void 0, function* () {
17
16
  _super.connectedCallback.call(this);
18
17
  this.subscriptionHandler = ({ store }) => {
19
- this.value = store === null || store === void 0 ? void 0 : store.items.filter((alert) => alert.ALERT_STATUS === AlertStatus.NEW).length;
18
+ this.value = store === null || store === void 0 ? void 0 : store.items.length;
20
19
  };
21
- this.inboxService.subscribe(this.subscriptionHandler);
20
+ this.inboxService.subscribe(this.subscriptionHandler, false, "ALERT_STATUS=='NEW'");
22
21
  });
23
22
  }
24
23
  disconnectedCallback() {
@@ -1,5 +1,6 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { Auth } from '@genesislcap/foundation-comms';
3
+ import { CriteriaBuilder, ExpressionBuilder, Serialisers, } from '@genesislcap/foundation-criteria';
3
4
  import { showNotificationDialog } from '@genesislcap/foundation-notifications';
4
5
  import { GenesisElement, observable } from '@genesislcap/web-core';
5
6
  import { AlertService } from '../../../services/alert.service';
@@ -8,7 +9,15 @@ import { RuleService } from '../../../services/rule.service';
8
9
  import { TemplateService } from '../../../services/template.service';
9
10
  import { logger } from '../../../utils';
10
11
  import { showNotificationError } from '../../foundation-notification-dashboard/notification-dashboard.utils';
11
- import { AlertStatus, InboxTab, RuleStatus, } from '../inbox.types';
12
+ import { InboxTab, RuleStatus, } from '../inbox.types';
13
+ const criteriaBuilder = () => new CriteriaBuilder();
14
+ const expressionBuilder = (field, value, serialiser) => {
15
+ return new ExpressionBuilder()
16
+ .withField(field)
17
+ .withValue(value)
18
+ .withSerialiser(serialiser)
19
+ .build();
20
+ };
12
21
  export class FoundationInboxBase extends GenesisElement {
13
22
  constructor() {
14
23
  super(...arguments);
@@ -19,15 +28,20 @@ export class FoundationInboxBase extends GenesisElement {
19
28
  this.templates = [];
20
29
  this.templatesFilter = [];
21
30
  this.searchAlertLog = null;
31
+ this.severitySearchValue = null;
32
+ this.titleSearchValue = null;
33
+ this.bodySearchValue = null;
22
34
  this.searchSubscribe = null;
23
35
  this.ruleTemplateDetails = null;
24
36
  this.selectedTab = InboxTab.ALERTS_NEW;
37
+ this.fromDatePickerValue = null;
38
+ this.toDatePickerValue = null;
39
+ this.reverse = false;
25
40
  // #endregion
26
41
  // #region Changed Events
27
42
  this.alertsChanged = () => (this.alertsFilter = this.alerts);
28
43
  this.rulesChanged = () => (this.rulesFilter = this.rules);
29
44
  this.templatesChanged = () => (this.templatesFilter = this.templates);
30
- // #endregion
31
45
  }
32
46
  connectedCallback() {
33
47
  const _super = Object.create(null, {
@@ -35,11 +49,11 @@ export class FoundationInboxBase extends GenesisElement {
35
49
  });
36
50
  return __awaiter(this, void 0, void 0, function* () {
37
51
  _super.connectedCallback.call(this);
52
+ this.criteriaMatchAlertStatus = expressionBuilder('ALERT_STATUS', 'NEW', Serialisers.equals);
38
53
  this.alertSubscription = ({ store }) => {
39
54
  this.alerts = (store === null || store === void 0 ? void 0 : store.items) || [];
40
- this.filterSearchAlertLog();
41
55
  };
42
- this.inboxService.subscribe(this.alertSubscription);
56
+ this.inboxService.subscribe(this.alertSubscription, false, criteriaBuilder().withExpression(this.criteriaMatchAlertStatus).build());
43
57
  this.rules = yield this.ruleService.getRules();
44
58
  this.templates = yield this.templateService.getRuleTemplates();
45
59
  });
@@ -55,7 +69,11 @@ export class FoundationInboxBase extends GenesisElement {
55
69
  this.ruleTemplateDetails = null;
56
70
  switch (inboxTab) {
57
71
  case InboxTab.ALERTS_NEW:
72
+ this.criteriaMatchAlertStatus = expressionBuilder('ALERT_STATUS', 'NEW', Serialisers.equals);
73
+ this.filterSearchAlertLog();
74
+ break;
58
75
  case InboxTab.ALERT_HISTORY:
76
+ this.criteriaMatchAlertStatus = expressionBuilder('ALERT_STATUS', 'NEW', Serialisers.NE);
59
77
  this.filterSearchAlertLog();
60
78
  break;
61
79
  case InboxTab.MY_ALERTS:
@@ -71,10 +89,31 @@ export class FoundationInboxBase extends GenesisElement {
71
89
  });
72
90
  }
73
91
  filterSearchAlertLog() {
74
- this.alertsFilter = this.alerts.filter((alert) => (!this.searchAlertLog ||
75
- alert.HEADER.toLowerCase().startsWith(this.searchAlertLog.toLowerCase())) &&
76
- ((this.selectedTab === InboxTab.ALERTS_NEW && alert.ALERT_STATUS === AlertStatus.NEW) ||
77
- (this.selectedTab === InboxTab.ALERT_HISTORY && alert.ALERT_STATUS !== AlertStatus.NEW)));
92
+ const filterCriteria = criteriaBuilder();
93
+ filterCriteria.withExpression(this.criteriaMatchAlertStatus);
94
+ if (this.titleSearchValue) {
95
+ filterCriteria.withExpression(expressionBuilder('HEADER', this.titleSearchValue, Serialisers.containsIgnoreCase));
96
+ }
97
+ if (this.bodySearchValue) {
98
+ filterCriteria.withExpression(expressionBuilder('MESSAGE', this.bodySearchValue, Serialisers.containsIgnoreCase));
99
+ }
100
+ if (this.severitySearchValue) {
101
+ filterCriteria.withExpression(expressionBuilder('NOTIFY_SEVERITY', this.severitySearchValue, Serialisers.equals));
102
+ }
103
+ if (this.fromDatePickerValue) {
104
+ filterCriteria.withExpression(expressionBuilder('CREATED_AT', this.formatDateForMatchCriteria(this.fromDatePickerValue), Serialisers.dateIsGreaterEqual));
105
+ }
106
+ if (this.toDatePickerValue) {
107
+ filterCriteria.withExpression(expressionBuilder('CREATED_AT', this.formatDateForMatchCriteria(this.toDatePickerValue), Serialisers.dateIsLessEqual));
108
+ }
109
+ // Refresh the data subscription
110
+ this.inboxService.unsubscribe(this.alertSubscription);
111
+ this.alerts = [];
112
+ this.inboxService.subscribe(this.alertSubscription, this.reverse, filterCriteria.build());
113
+ }
114
+ reverseOrder(reverse) {
115
+ this.reverse = reverse;
116
+ this.filterSearchAlertLog();
78
117
  }
79
118
  filterSearchSubscribe() {
80
119
  if (!this.searchSubscribe) {
@@ -107,7 +146,9 @@ export class FoundationInboxBase extends GenesisElement {
107
146
  confirmingActions: [
108
147
  {
109
148
  label: 'Confirm',
110
- action: () => this.alertService.dismissAllNotifyAlerts().then((response) => this.validateResponse(response)),
149
+ action: () => this.alertService
150
+ .dismissAllNotifyAlerts()
151
+ .then((response) => this.validateResponse(response)),
111
152
  },
112
153
  ],
113
154
  },
@@ -152,6 +193,11 @@ export class FoundationInboxBase extends GenesisElement {
152
193
  this.ruleTemplateDetails = yield this.templateService.getRuleTemplateDetails(ruleTemplate.ID);
153
194
  });
154
195
  }
196
+ // #endregion
197
+ formatDateForMatchCriteria(date) {
198
+ const split = date.split('-');
199
+ return split[0] + split[1] + split[2];
200
+ }
155
201
  }
156
202
  __decorate([
157
203
  Auth
@@ -189,6 +235,15 @@ __decorate([
189
235
  __decorate([
190
236
  observable
191
237
  ], FoundationInboxBase.prototype, "searchAlertLog", void 0);
238
+ __decorate([
239
+ observable
240
+ ], FoundationInboxBase.prototype, "severitySearchValue", void 0);
241
+ __decorate([
242
+ observable
243
+ ], FoundationInboxBase.prototype, "titleSearchValue", void 0);
244
+ __decorate([
245
+ observable
246
+ ], FoundationInboxBase.prototype, "bodySearchValue", void 0);
192
247
  __decorate([
193
248
  observable
194
249
  ], FoundationInboxBase.prototype, "searchSubscribe", void 0);
@@ -198,3 +253,15 @@ __decorate([
198
253
  __decorate([
199
254
  observable
200
255
  ], FoundationInboxBase.prototype, "selectedTab", void 0);
256
+ __decorate([
257
+ observable
258
+ ], FoundationInboxBase.prototype, "fromDatePickerValue", void 0);
259
+ __decorate([
260
+ observable
261
+ ], FoundationInboxBase.prototype, "toDatePickerValue", void 0);
262
+ __decorate([
263
+ observable
264
+ ], FoundationInboxBase.prototype, "criteriaMatchAlertStatus", void 0);
265
+ __decorate([
266
+ observable
267
+ ], FoundationInboxBase.prototype, "reverse", void 0);
@@ -27,7 +27,7 @@ const tabs = css `
27
27
  const search = css `
28
28
  .search {
29
29
  display: flex;
30
- flex-direction: row;
30
+ flex-direction: column;
31
31
  flex: 0;
32
32
  padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 3px);
33
33
  border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
@@ -40,12 +40,48 @@ const search = css `
40
40
  width: 100%;
41
41
  }
42
42
 
43
+ .select-input {
44
+ min-width: 155px;
45
+ margin-right: 5px;
46
+ }
47
+
43
48
  .search-input::part(root) {
44
49
  width: 100%;
45
50
  }
46
51
 
47
52
  .clear-all {
53
+ width: 100%;
48
54
  min-width: auto;
55
+ margin-right: 10px;
56
+ }
57
+
58
+ .search-label {
59
+ color: var(--neutral-foreground-hint);
60
+ padding-right: 5px;
61
+ min-width: fit-content;
62
+ }
63
+
64
+ .date-input {
65
+ margin-bottom: 0;
66
+ }
67
+
68
+ .date-input::part(control) {
69
+ width: 105px;
70
+ }
71
+
72
+ .sort-button {
73
+ color: var(--accent-foreground-rest);
74
+ font-size: calc(var(--design-unit) * 3px);
75
+ padding-right: 10px;
76
+ text-decoration: none;
77
+ }
78
+
79
+ .sort-button:active {
80
+ color: var(--neutral-foreground-hint);
81
+ }
82
+
83
+ .sort-button-selected {
84
+ text-decoration: underline var(--neutral-foreground-hint);
49
85
  }
50
86
  `;
51
87
  export const inboxHeader = css `
@@ -1,5 +1,6 @@
1
- import { html, ref, repeat, when } from '@genesislcap/web-core';
1
+ import { classNames, html, ref, repeat, when } from '@genesislcap/web-core';
2
2
  import { NotifyPermission } from '../../utils/notifyPermissions';
3
+ import { ALL_SEVERITIES } from '../foundation-notification-dashboard/types/severity';
3
4
  import { AlertStatus, InboxTab } from './inbox.types';
4
5
  import { getFormattedDate, getIcon, getSeverityColor, getStatus } from './inbox.utils';
5
6
  const alertsTab = (tab) => html `
@@ -10,25 +11,104 @@ const alertsTab = (tab) => html `
10
11
  style=${(x) => (x.selectedTab === tab ? '' : 'display: none;')}
11
12
  >
12
13
  <div class="search">
14
+ <div style="display:flex; align-items: center;">
15
+ <label part="label" for="control" class="search-label">
16
+ <slot>Severity ...</slot>
17
+ </label>
18
+ <rapid-select
19
+ class="select-input"
20
+ :value=${(x) => x.severitySearchValue}
21
+ @input=${(x, c) => {
22
+ x.severitySearchValue = c.event.target.value;
23
+ x.filterSearchAlertLog();
24
+ }}
25
+ autocomplete="off"
26
+ >
27
+ <rapid-option value="">--Select--</rapid-option>
28
+ ${repeat((x) => ALL_SEVERITIES, html `
29
+ <rapid-option
30
+ value=${(x) => x.text}
31
+ style="color: ${(x) => getSeverityColor(x.type)}"
32
+ >
33
+ ${(x) => x.text}
34
+ </rapid-option>
35
+ `)}
36
+ </rapid-select>
37
+
38
+ <label part="label" for="control" class="search-label">
39
+ <slot>From ...</slot>
40
+ </label>
41
+ <rapid-text-field
42
+ class="date-input"
43
+ type="date"
44
+ :value=${(x) => x.fromDatePickerValue}
45
+ @input=${(x, c) => {
46
+ x.fromDatePickerValue = c.event.target.value;
47
+ x.filterSearchAlertLog();
48
+ }}
49
+ ></rapid-text-field>
50
+
51
+ <label part="label" for="control" class="search-label" style="padding-left: 5px">
52
+ <slot>To ...</slot>
53
+ </label>
54
+ <rapid-text-field
55
+ class="date-input"
56
+ type="date"
57
+ :value=${(x) => x.toDatePickerValue}
58
+ @input=${(x, c) => {
59
+ x.toDatePickerValue = c.event.target.value;
60
+ x.filterSearchAlertLog();
61
+ }}
62
+ ></rapid-text-field>
63
+ </div>
64
+
13
65
  <rapid-text-field
14
66
  class="search-input"
67
+ :value=${(x) => x.titleSearchValue}
15
68
  @input=${(x, c) => {
16
- x.searchAlertLog = c.event.target.value;
69
+ x.titleSearchValue = c.event.target.value;
17
70
  x.filterSearchAlertLog();
18
71
  }}
19
- placeholder="Search Alerts..."
72
+ placeholder="Search by Title..."
20
73
  autocomplete="off"
21
74
  ></rapid-text-field>
22
75
 
23
- ${when(() => tab === InboxTab.ALERTS_NEW, html `
24
- <rapid-button
25
- class="clear-all"
26
- appearance="primary"
27
- @click=${(x) => x.dismissAllAlerts()}
28
- >
29
- Clear All
30
- </rapid-button>
31
- `)}
76
+ <rapid-text-field
77
+ class="search-input"
78
+ :value=${(x) => x.bodySearchValue}
79
+ @input=${(x, c) => {
80
+ x.bodySearchValue = c.event.target.value;
81
+ x.filterSearchAlertLog();
82
+ }}
83
+ placeholder="Search by Body ..."
84
+ autocomplete="off"
85
+ ></rapid-text-field>
86
+
87
+ <div style="display:flex; align-items: center; justify-content: end;">
88
+ ${when(() => tab === InboxTab.ALERTS_NEW, html `
89
+ <rapid-button
90
+ class="clear-all"
91
+ appearance="primary"
92
+ @click=${(x) => x.dismissAllAlerts()}
93
+ >
94
+ Clear All
95
+ </rapid-button>
96
+ `)}
97
+ <a
98
+ href="#"
99
+ class="${(x) => classNames('sort-button', ['sort-button-selected', x.reverse])}"
100
+ @click="${(x) => x.reverseOrder(true)}"
101
+ >
102
+ Asc
103
+ </a>
104
+ <a
105
+ href="#"
106
+ class="${(x) => classNames('sort-button', ['sort-button-selected', !x.reverse])}"
107
+ @click="${(x) => x.reverseOrder(false)}"
108
+ >
109
+ Desc
110
+ </a>
111
+ </div>
32
112
  </div>
33
113
 
34
114
  <div class="alert-log-tab-content">
@@ -3,6 +3,7 @@ import { Auth } from '@genesislcap/foundation-comms';
3
3
  import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
4
4
  import { loadRemotes } from '../components';
5
5
  import { FoundationNotificationDashboardStyles as styles } from './notification-dashboard.styles';
6
+ import { NOTIFICATION_DASHBOARD_TABS } from './notification-dashboard.tabs';
6
7
  import { FoundationNotificationDashboardTemplate as template } from './notification-dashboard.template';
7
8
  /**
8
9
  * @public
@@ -11,6 +12,7 @@ let FoundationNotificationDashboard = class FoundationNotificationDashboard exte
11
12
  constructor() {
12
13
  super(...arguments);
13
14
  this.ready = false;
15
+ this.hasPermissions = true;
14
16
  }
15
17
  connectedCallback() {
16
18
  const _super = Object.create(null, {
@@ -18,6 +20,7 @@ let FoundationNotificationDashboard = class FoundationNotificationDashboard exte
18
20
  });
19
21
  return __awaiter(this, void 0, void 0, function* () {
20
22
  _super.connectedCallback.call(this);
23
+ this.hasPermissions = NOTIFICATION_DASHBOARD_TABS.some((tabCfg) => this.auth.currentUser.hasPermission(tabCfg.right));
21
24
  yield this.loadRemotes();
22
25
  });
23
26
  }
@@ -39,6 +42,9 @@ __decorate([
39
42
  __decorate([
40
43
  observable
41
44
  ], FoundationNotificationDashboard.prototype, "ready", void 0);
45
+ __decorate([
46
+ observable
47
+ ], FoundationNotificationDashboard.prototype, "hasPermissions", void 0);
42
48
  FoundationNotificationDashboard = __decorate([
43
49
  customElement({
44
50
  name: 'foundation-notification-dashboard',
@@ -8,4 +8,13 @@ export const FoundationNotificationDashboardStyles = css `
8
8
  rapid-tab-panel {
9
9
  height: 100%;
10
10
  }
11
+
12
+ .no-permissions {
13
+ font-family: var(--body-font);
14
+ color: var(--neutral-foreground-rest);
15
+ height: 100%;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ }
11
20
  `;
@@ -1,27 +1,34 @@
1
- import { html, repeat, when } from '@genesislcap/web-core';
1
+ import { html, repeat, when, whenElse } from '@genesislcap/web-core';
2
2
  import { NOTIFICATION_DASHBOARD_TABS, } from './notification-dashboard.tabs';
3
3
  export const FoundationNotificationDashboardTemplate = html `
4
4
  <div class="notification-dashboard">
5
- <rapid-tabs class="tabs">
6
- <!-- Tabs -->
7
- ${repeat((_) => NOTIFICATION_DASHBOARD_TABS, html `
8
- ${when((x, c) => c.parent.auth.currentUser.hasPermission(x.right), html `
9
- <rapid-tab slot="${(x) => x.id}-tab">${(x) => x.name}</rapid-tab>
5
+ ${whenElse((x) => x.hasPermissions, html `
6
+ <rapid-tabs class="tabs">
7
+ <!-- Tabs -->
8
+ ${repeat((_) => NOTIFICATION_DASHBOARD_TABS, html `
9
+ ${when((x, c) => c.parent.auth.currentUser.hasPermission(x.right), html `
10
+ <rapid-tab slot="${(x) => x.id}-tab">${(x) => x.name}</rapid-tab>
11
+ `)}
10
12
  `)}
11
- `)}
12
13
 
13
- <!-- Panels -->
14
- ${repeat((_) => NOTIFICATION_DASHBOARD_TABS, html `
15
- ${when((x, c) => c.parent.auth.currentUser.hasPermission(x.right), html `
16
- ${
14
+ <!-- Panels -->
15
+ ${repeat((_) => NOTIFICATION_DASHBOARD_TABS, html `
16
+ ${when((x, c) => c.parent.auth.currentUser.hasPermission(x.right), html `
17
+ ${
17
18
  /* HTML Render */
18
19
  (x) => html `
19
- <rapid-tab-panel slot="${x.id}-tab" id="${x.id}-tab-panel">
20
- <${x.component}></${x.component}>
21
- </rapid-tab-panel>
22
- `}
20
+ <rapid-tab-panel slot="${x.id}-tab"
21
+ id="${x.id}-tab-panel">
22
+ <${x.component}></${x.component}>
23
+ </rapid-tab-panel>
24
+ `}
25
+ `)}
23
26
  `)}
24
- `)}
25
- </rapid-tabs>
27
+ </rapid-tabs>
28
+ `, html `
29
+ <div class="no-permissions">
30
+ <label>User has no permissions to view Notification Screens</label>
31
+ </div>
32
+ `)}
26
33
  </div>
27
34
  `;
@@ -3,8 +3,8 @@ export const SEVERITY_CRITICAL = 'CRITICAL';
3
3
  export const SEVERITY_SERIOUS = 'SERIOUS';
4
4
  export const SEVERITY_WARNING = 'WARNING';
5
5
  export const ALL_SEVERITIES = [
6
- SEVERITY_INFORMATION,
7
- SEVERITY_CRITICAL,
8
- SEVERITY_SERIOUS,
9
- SEVERITY_WARNING,
6
+ { type: SEVERITY_INFORMATION, text: 'Information' },
7
+ { type: SEVERITY_WARNING, text: 'Warning' },
8
+ { type: SEVERITY_SERIOUS, text: 'Serious' },
9
+ { type: SEVERITY_CRITICAL, text: 'Critical' },
10
10
  ];
@@ -44,12 +44,28 @@ ReconciliationSandbox = __decorate([
44
44
  template: html `
45
45
  ${when((x) => x.ready, html `
46
46
  <rapid-design-system-provider>
47
- <foundation-notification-dashboard></foundation-notification-dashboard>
48
- <!-- <foundation-inbox></foundation-inbox> -->
47
+ <rapid-tabs>
48
+ <rapid-tab slot="dashboard">Dashboard</rapid-tab>
49
+ <rapid-tab slot="inbox">Inbox</rapid-tab>
50
+ <rapid-tab slot="counter">Counter</rapid-tab>
51
+ <rapid-tab-panel>
52
+ <foundation-notification-dashboard></foundation-notification-dashboard>
53
+ </rapid-tab-panel>
54
+ <rapid-tab-panel>
55
+ <foundation-inbox></foundation-inbox>
56
+ </rapid-tab-panel>
57
+ <rapid-tab-panel>
58
+ <foundation-inbox-counter></foundation-inbox-counter>
59
+ </rapid-tab-panel>
60
+ </rapid-tabs>
49
61
  </rapid-design-system-provider>
50
62
  `)}
51
63
  `,
52
- styles: css ``,
64
+ styles: css `
65
+ foundation-inbox {
66
+ position: absolute;
67
+ }
68
+ `,
53
69
  })
54
70
  ], ReconciliationSandbox);
55
71
  export { ReconciliationSandbox };
@@ -10,7 +10,7 @@ class FoundationInboxServiceImpl {
10
10
  };
11
11
  this.modifyAlert = (alert, details) => { var _a; return ((_a = alert.DETAILS) === null || _a === void 0 ? void 0 : _a.ROW_REF) === (details === null || details === void 0 ? void 0 : details.DETAILS.ROW_REF) ? Object.assign(Object.assign({}, alert), details) : alert; };
12
12
  }
13
- getStream() {
13
+ getStream(reverse, criteriaMatch) {
14
14
  return this.connect.stream('ALL_NOTIFY_ALERT_RECORDS', (result) => {
15
15
  this.sourceRef = result.SOURCE_REF;
16
16
  if (!(result === null || result === void 0 ? void 0 : result.ROW)) {
@@ -37,15 +37,15 @@ class FoundationInboxServiceImpl {
37
37
  }
38
38
  }
39
39
  this.subscriptions.forEach((callback) => callback({ store: this.store }));
40
- }, (response) => logger.error(response));
40
+ }, (response) => logger.error(response), Object.assign({ REVERSE: reverse }, (criteriaMatch != '' && { CRITERIA_MATCH: criteriaMatch })));
41
41
  }
42
- subscribe(callback) {
42
+ subscribe(callback, reverse, criteriaMatch) {
43
43
  this.subscriptions.push(callback);
44
44
  if (this.stream) {
45
45
  callback({ store: this.store });
46
46
  return;
47
47
  }
48
- this.stream = this.getStream();
48
+ this.stream = this.getStream(reverse, criteriaMatch);
49
49
  this.stream.subscribe();
50
50
  }
51
51
  unsubscribe(callback) {
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.45",
4
+ "version": "1.0.47",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "workspaces": [
7
7
  "client"
@@ -125,7 +125,8 @@
125
125
  "@genesislcap/rapid-grid-pro": "~14",
126
126
  "@genesislcap/rapid-design-system": "~14",
127
127
  "@genesislcap/g2plot-chart": "~14",
128
- "@genesislcap/web-core": "~14"
128
+ "@genesislcap/web-core": "~14",
129
+ "@genesislcap/foundation-criteria": "~14"
129
130
  },
130
131
  "publishConfig": {
131
132
  "access": "public"