@genesislcap/pbc-notify-ui 1.0.62 → 1.0.64
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.
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -1
- package/dist/dts/services/inbox.service.d.ts +5 -0
- package/dist/dts/services/inbox.service.d.ts.map +1 -1
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +0 -1
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +5 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +5 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.js +5 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.js +5 -0
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +6 -0
- package/dist/esm/services/inbox.service.js +11 -13
- package/package.json +1 -1
|
@@ -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;AACrD,OAAO,EAEL,UAAU,EAKX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAA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AAM,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;IACzB,oBAAoB,EAAE,OAAO,CAAS;IAEtC,YAAY,QAAM;IAEvB,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAoBvB,oBAAoB;IAMd,eAAe,CAAC,QAAQ,EAAE,QAAQ;IA+BxC,aAAa,gBAA2C;IAExD,YAAY,eAAyC;IAErD,gBAAgB,uBAAiD;IAEjE,6BAA6B,MAAsD;IAEnF,oBAAoB;IA4DpB,YAAY,CAAC,OAAO,EAAE,OAAO;IAO7B,qBAAqB;IAWrB,WAAW;IAaX,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,6BAA6B,CAAC,IAAI,CAAC,EAAE,MAAM;CAG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-distribution-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"email-distribution-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAyC5E,qBAgBa,gCAAiC,SAAQ,cAAc;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-user-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"email-user-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAmD5E,qBAgBa,wBAAyB,SAAQ,cAAc;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"log-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AA0B5E,qBAgBa,kBAAmB,SAAQ,cAAc;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ms-teams-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ms-teams-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AA+B5E,qBAgBa,sBAAuB,SAAQ,cAAc;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"screen-route-management.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAqD5E,qBAkBa,qBAAsB,SAAQ,cAAc;CAAG"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { SocketSubscription } from '@genesislcap/foundation-comms';
|
|
1
2
|
export interface FoundationInboxServiceStore {
|
|
2
3
|
items: Array<any>;
|
|
3
4
|
}
|
|
4
5
|
export type SubscribeCallback = ({ store }: {
|
|
5
6
|
store: FoundationInboxServiceStore;
|
|
6
7
|
}) => any;
|
|
8
|
+
export type Subscription = {
|
|
9
|
+
callback: SubscribeCallback;
|
|
10
|
+
socketSubscription: SocketSubscription;
|
|
11
|
+
};
|
|
7
12
|
export interface FoundationInboxService {
|
|
8
13
|
subscribe(callback: SubscribeCallback, reverse: boolean, criteriaMatch: string): void;
|
|
9
14
|
unsubscribe(callback: SubscribeCallback): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.service.d.ts","sourceRoot":"","sources":["../../../src/services/inbox.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inbox.service.d.ts","sourceRoot":"","sources":["../../../src/services/inbox.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAIpG,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,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,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;AAgED,eAAO,MAAM,sBAAsB,8EAElC,CAAC"}
|
|
@@ -122,7 +122,6 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
122
122
|
}
|
|
123
123
|
// Refresh the data subscription
|
|
124
124
|
this.inboxService.unsubscribe(this.alertSubscription);
|
|
125
|
-
this.alerts = [];
|
|
126
125
|
this.inboxService.subscribe(this.alertSubscription, this.reverse, filterCriteria.build());
|
|
127
126
|
}
|
|
128
127
|
reverseOrder(reverse) {
|
|
@@ -17,6 +17,11 @@ const LOG_ROUTE_MANAGEMENT_COLUMNS = [
|
|
|
17
17
|
headerName: 'Gateway Id',
|
|
18
18
|
flex: 1,
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
field: 'ROUTE_ENABLED',
|
|
22
|
+
headerName: 'Route Enabled',
|
|
23
|
+
flex: 1,
|
|
24
|
+
},
|
|
20
25
|
];
|
|
21
26
|
let LogRouteManagement = class LogRouteManagement extends GenesisElement {
|
|
22
27
|
};
|
|
@@ -17,6 +17,11 @@ const SCREEN_ROUTE_MANAGEMENT_COLUMNS = [
|
|
|
17
17
|
headerName: 'Gateway Id',
|
|
18
18
|
flex: 1,
|
|
19
19
|
},
|
|
20
|
+
{
|
|
21
|
+
field: 'ROUTE_ENABLED',
|
|
22
|
+
headerName: 'Route Enabled',
|
|
23
|
+
flex: 1,
|
|
24
|
+
},
|
|
20
25
|
{
|
|
21
26
|
field: 'ENTITY_ID',
|
|
22
27
|
headerName: 'Entity Id',
|
|
@@ -40,6 +45,7 @@ const SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA = {
|
|
|
40
45
|
{ type: 'Control', scope: '#/properties/ENTITY_ID_TYPE', label: 'ENTITY ID TYPE' },
|
|
41
46
|
{ type: 'Control', scope: '#/properties/EXCLUDE_SENDER', label: 'EXCLUDE SENDER' },
|
|
42
47
|
{ type: 'Control', scope: '#/properties/GATEWAY_ID', label: 'GATEWAY ID' },
|
|
48
|
+
{ type: 'Control', scope: '#/properties/ROUTE_ENABLED', label: 'ROUTE ENABLED' },
|
|
43
49
|
{ type: 'Control', scope: '#/properties/TOPIC_MATCH', label: 'TOPIC MATCH' },
|
|
44
50
|
],
|
|
45
51
|
};
|
|
@@ -15,34 +15,32 @@ class FoundationInboxServiceImpl {
|
|
|
15
15
|
logger.error(result.ERROR);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
this.sourceRef = result.SOURCE_REF;
|
|
19
18
|
this.store.items = updateArray(result === null || result === void 0 ? void 0 : result.ROW, this.store.items);
|
|
20
|
-
this.subscriptions.forEach((
|
|
19
|
+
this.subscriptions.forEach((subscription) => {
|
|
20
|
+
subscription.callback({ store: this.store });
|
|
21
|
+
});
|
|
21
22
|
}, (response) => logger.error(response), Object.assign({ REVERSE: reverse }, (criteriaMatch != '' && { CRITERIA_MATCH: criteriaMatch })));
|
|
22
23
|
}
|
|
23
24
|
subscribe(callback, reverse, criteriaMatch) {
|
|
24
|
-
this.subscriptions.push(callback);
|
|
25
25
|
if (this.stream) {
|
|
26
26
|
callback({ store: this.store });
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
this.stream = this.getStream(reverse, criteriaMatch);
|
|
30
|
-
this.stream.subscribe();
|
|
30
|
+
const socketSubscription = this.stream.subscribe();
|
|
31
|
+
this.subscriptions.push({ callback, socketSubscription });
|
|
31
32
|
}
|
|
32
33
|
unsubscribe(callback) {
|
|
33
|
-
const index = this.subscriptions.
|
|
34
|
+
const index = this.subscriptions.findIndex((subscription) => subscription.callback === callback);
|
|
34
35
|
if (index >= 0) {
|
|
35
|
-
this.subscriptions.splice(index, 1);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (this.sourceRef && this.auth.isLoggedIn) {
|
|
41
|
-
this.connect.dataLogoff(this.sourceRef);
|
|
36
|
+
const found = this.subscriptions.splice(index, 1);
|
|
37
|
+
found.forEach((subscription) => {
|
|
38
|
+
subscription.socketSubscription.unsubscribe();
|
|
39
|
+
subscription.callback({ store: { items: [] } });
|
|
40
|
+
});
|
|
42
41
|
}
|
|
43
42
|
this.stream = undefined;
|
|
44
43
|
this.store = { items: [] };
|
|
45
|
-
this.sourceRef = undefined;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
__decorate([
|