@genesislcap/pbc-notify-ui 1.0.61 → 1.0.62
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 +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +9 -8
- package/dist/esm/components/foundation-inbox/inbox.template.js +12 -16
- package/package.json +1 -1
|
@@ -21,7 +21,6 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
21
21
|
templates: RuleTemplate[];
|
|
22
22
|
templatesFilter: RuleTemplate[];
|
|
23
23
|
searchAlertLog: string;
|
|
24
|
-
severitySearchValue: string;
|
|
25
24
|
titleSearchValue: string;
|
|
26
25
|
bodySearchValue: string;
|
|
27
26
|
searchSubscribe: string;
|
|
@@ -32,6 +31,7 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
32
31
|
criteriaMatchAlertStatus: Expression;
|
|
33
32
|
reverse: boolean;
|
|
34
33
|
showLoadingIndicator: boolean;
|
|
34
|
+
severityType: any[];
|
|
35
35
|
tabs: Tabs;
|
|
36
36
|
connectedCallback(): Promise<void>;
|
|
37
37
|
disconnectedCallback(): void;
|
|
@@ -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,
|
|
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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oB,EAAE,OAAO,CAAS;IAEtC,YAAY,QAAM;IAEvB,IAAI,EAAE,IAAI,CAAC;IAEZ,iBAAiB;IAkBvB,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":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,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;AAkK/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAoJnC,CAAC"}
|
|
@@ -1,6 +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
|
+
import { CriteriaBuilder, ExpressionBuilder, Join, Serialisers, } from '@genesislcap/foundation-criteria';
|
|
4
4
|
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
5
|
import { GenesisElement, observable } from '@genesislcap/web-core';
|
|
6
6
|
import dayjs from 'dayjs';
|
|
@@ -33,7 +33,6 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
33
33
|
this.templates = [];
|
|
34
34
|
this.templatesFilter = [];
|
|
35
35
|
this.searchAlertLog = null;
|
|
36
|
-
this.severitySearchValue = null;
|
|
37
36
|
this.titleSearchValue = null;
|
|
38
37
|
this.bodySearchValue = null;
|
|
39
38
|
this.searchSubscribe = null;
|
|
@@ -43,6 +42,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
43
42
|
this.toDatePickerValue = null;
|
|
44
43
|
this.reverse = false;
|
|
45
44
|
this.showLoadingIndicator = false;
|
|
45
|
+
this.severityType = [];
|
|
46
46
|
// #endregion
|
|
47
47
|
// #region Changed Events
|
|
48
48
|
this.alertsChanged = () => (this.alertsFilter = this.alerts);
|
|
@@ -106,8 +106,9 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
106
106
|
if (this.bodySearchValue) {
|
|
107
107
|
filterCriteria.withExpression(expressionBuilder('MESSAGE', this.bodySearchValue, Serialisers.containsIgnoreCase));
|
|
108
108
|
}
|
|
109
|
-
if (this.
|
|
110
|
-
|
|
109
|
+
if (this.severityType.length > 0) {
|
|
110
|
+
const severityExpressions = this.severityType.map((severity) => expressionBuilder('NOTIFY_SEVERITY', severity, Serialisers.equals));
|
|
111
|
+
filterCriteria.withExpression(severityExpressions, { join: Join.Or() });
|
|
111
112
|
}
|
|
112
113
|
if (this.fromDatePickerValue) {
|
|
113
114
|
filterCriteria.withExpression(expressionBuilder('CREATED_AT', this.formatDateStrForMatchCriteria(this.fromDatePickerValue), Serialisers.dateIsGreaterEqual));
|
|
@@ -140,7 +141,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
140
141
|
clearSearch() {
|
|
141
142
|
this.titleSearchValue = '';
|
|
142
143
|
this.bodySearchValue = '';
|
|
143
|
-
this.
|
|
144
|
+
this.severityType = [];
|
|
144
145
|
this.fromDatePickerValue = undefined;
|
|
145
146
|
this.toDatePickerValue = undefined;
|
|
146
147
|
this.filterSearchAlertLog();
|
|
@@ -257,9 +258,6 @@ __decorate([
|
|
|
257
258
|
__decorate([
|
|
258
259
|
observable
|
|
259
260
|
], FoundationInboxBase.prototype, "searchAlertLog", void 0);
|
|
260
|
-
__decorate([
|
|
261
|
-
observable
|
|
262
|
-
], FoundationInboxBase.prototype, "severitySearchValue", void 0);
|
|
263
261
|
__decorate([
|
|
264
262
|
observable
|
|
265
263
|
], FoundationInboxBase.prototype, "titleSearchValue", void 0);
|
|
@@ -290,3 +288,6 @@ __decorate([
|
|
|
290
288
|
__decorate([
|
|
291
289
|
observable
|
|
292
290
|
], FoundationInboxBase.prototype, "showLoadingIndicator", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
observable
|
|
293
|
+
], FoundationInboxBase.prototype, "severityType", void 0);
|
|
@@ -16,25 +16,21 @@ const alertsTab = (tab) => html `
|
|
|
16
16
|
<label part="label" for="control" class="search-label">
|
|
17
17
|
<slot>Severity ...</slot>
|
|
18
18
|
</label>
|
|
19
|
-
<rapid-
|
|
19
|
+
<rapid-multiselect
|
|
20
20
|
class="select-input"
|
|
21
|
-
:
|
|
22
|
-
@
|
|
23
|
-
x.
|
|
21
|
+
:selectedOptions=${(x) => x.severityType}
|
|
22
|
+
@selectionChange=${(x, c) => {
|
|
23
|
+
x.severityType = c.event.detail;
|
|
24
24
|
x.filterSearchAlertLog();
|
|
25
25
|
}}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
${(x) => x.text}
|
|
35
|
-
</rapid-option>
|
|
36
|
-
`)}
|
|
37
|
-
</rapid-select>
|
|
26
|
+
:options=${() => ALL_SEVERITIES.map((value) => ({
|
|
27
|
+
value: value.text,
|
|
28
|
+
label: value.text,
|
|
29
|
+
labelStyle: `color:${getSeverityColor(value.type)}`,
|
|
30
|
+
}))}
|
|
31
|
+
search="false"
|
|
32
|
+
all="false"
|
|
33
|
+
></rapid-multiselect>
|
|
38
34
|
</div>
|
|
39
35
|
|
|
40
36
|
<div style="display: flex; align-items: center;">
|