@genesislcap/pbc-notify-ui 1.0.55 → 1.0.57
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 -0
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +6 -0
- package/dist/esm/components/foundation-inbox/inbox.styles.js +17 -0
- package/dist/esm/components/foundation-inbox/inbox.template.js +8 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +20 -6
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +8 -4
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
31
31
|
toDatePickerValue: string;
|
|
32
32
|
criteriaMatchAlertStatus: Expression;
|
|
33
33
|
reverse: boolean;
|
|
34
|
+
showLoadingIndicator: boolean;
|
|
34
35
|
tabs: Tabs;
|
|
35
36
|
connectedCallback(): Promise<void>;
|
|
36
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;AAErD,OAAO,EAEL,UAAU,EAIX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,E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BAA6B,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;IAE3C,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;IA2DpB,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.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AA0FA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AA0FA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDAmErC,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,iDAyBjC,CAAC"}
|
|
@@ -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;AAwK/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAoJnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGrE,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"rule-condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGrE,eAAO,MAAM,4BAA4B,2EAyGxC,CAAC"}
|
|
@@ -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":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,kBAAkB,
|
|
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":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,kBAAkB,iEAyH9B,CAAC"}
|
|
@@ -42,6 +42,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
42
42
|
this.fromDatePickerValue = null;
|
|
43
43
|
this.toDatePickerValue = null;
|
|
44
44
|
this.reverse = false;
|
|
45
|
+
this.showLoadingIndicator = false;
|
|
45
46
|
// #endregion
|
|
46
47
|
// #region Changed Events
|
|
47
48
|
this.alertsChanged = () => (this.alertsFilter = this.alerts);
|
|
@@ -58,6 +59,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
58
59
|
this.criteriaMatchAlertStatus = expressionBuilder('ALERT_STATUS', 'NEW', Serialisers.equals);
|
|
59
60
|
this.alertSubscription = ({ store }) => {
|
|
60
61
|
this.alerts = (store === null || store === void 0 ? void 0 : store.items) || [];
|
|
62
|
+
this.showLoadingIndicator = false;
|
|
61
63
|
};
|
|
62
64
|
this.inboxService.subscribe(this.alertSubscription, false, criteriaBuilder().withExpression(this.criteriaMatchAlertStatus).build());
|
|
63
65
|
this.rules = yield this.ruleService.getRules();
|
|
@@ -95,6 +97,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
filterSearchAlertLog() {
|
|
100
|
+
this.showLoadingIndicator = true;
|
|
98
101
|
const filterCriteria = criteriaBuilder();
|
|
99
102
|
filterCriteria.withExpression(this.criteriaMatchAlertStatus);
|
|
100
103
|
if (this.titleSearchValue) {
|
|
@@ -284,3 +287,6 @@ __decorate([
|
|
|
284
287
|
__decorate([
|
|
285
288
|
observable
|
|
286
289
|
], FoundationInboxBase.prototype, "reverse", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
observable
|
|
292
|
+
], FoundationInboxBase.prototype, "showLoadingIndicator", void 0);
|
|
@@ -167,6 +167,23 @@ export const alertsNewAndAlertsHistory = css `
|
|
|
167
167
|
color: var(--neutral-foreground-hint);
|
|
168
168
|
font-size: calc(var(--design-unit) * 3px);
|
|
169
169
|
}
|
|
170
|
+
|
|
171
|
+
.no-row-container {
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
align-items: center;
|
|
175
|
+
height: 100%;
|
|
176
|
+
color: var(--neutral-stroke-rest);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.loading-indicator {
|
|
180
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest);
|
|
181
|
+
background: var(--neutral-layer-3);
|
|
182
|
+
color: var(--neutral-foreground-rest);
|
|
183
|
+
padding: calc(var(--design-unit) * 2px);
|
|
184
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
185
|
+
font-size: var(--type-ramp-minus-1-font-size);
|
|
186
|
+
}
|
|
170
187
|
`;
|
|
171
188
|
export const subscriptions = css `
|
|
172
189
|
.my-alerts-tab-panel {
|
|
@@ -137,6 +137,14 @@ const alertsTab = (tab) => html `
|
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
139
139
|
`)}
|
|
140
|
+
${when((x) => x.alertsFilter.length === 0 && !x.showLoadingIndicator, html `
|
|
141
|
+
<div class="no-row-container">No Rows To Show</div>
|
|
142
|
+
`)}
|
|
143
|
+
${when((x) => x.showLoadingIndicator, html `
|
|
144
|
+
<div class="no-row-container">
|
|
145
|
+
<div class="loading-indicator">Loading...</div>
|
|
146
|
+
</div>
|
|
147
|
+
`)}
|
|
140
148
|
</div>
|
|
141
149
|
</rapid-tab-panel>
|
|
142
150
|
`;
|
|
@@ -8,10 +8,13 @@ export const RuleConditionBuilderTemplate = html `
|
|
|
8
8
|
<rapid-select
|
|
9
9
|
:value=${sync((x) => x.leftValue)}
|
|
10
10
|
:initialValue=${sync((x) => x.leftValue)}
|
|
11
|
+
title=${(x) => JSON.parse(x.leftValue).FIELD_NAME}
|
|
11
12
|
class="left-value"
|
|
12
13
|
>
|
|
13
14
|
${repeat((x) => x.fields, html `
|
|
14
|
-
<rapid-option value=${(x) => JSON.stringify(x)}
|
|
15
|
+
<rapid-option value=${(x) => JSON.stringify(x)} title=${(x) => x.FIELD_NAME}>
|
|
16
|
+
${(x) => x.FIELD_NAME}
|
|
17
|
+
</rapid-option>
|
|
15
18
|
`)}
|
|
16
19
|
</rapid-select>
|
|
17
20
|
|
|
@@ -21,16 +24,21 @@ export const RuleConditionBuilderTemplate = html `
|
|
|
21
24
|
nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),
|
|
22
25
|
])}"
|
|
23
26
|
:value=${sync((x) => x.logicalOperator)}
|
|
27
|
+
title=${(x) => x.logicalOperator}
|
|
24
28
|
>
|
|
25
29
|
${repeat((_) => Object.values(LogicalOperator), html `
|
|
26
|
-
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
30
|
+
<rapid-option value=${(x) => x} title=${(x) => x}>${(x) => x}</rapid-option>
|
|
27
31
|
`)}
|
|
28
32
|
</rapid-select>
|
|
29
33
|
|
|
30
34
|
${when((x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]), html `
|
|
31
|
-
<rapid-select
|
|
35
|
+
<rapid-select
|
|
36
|
+
class="right-criteria"
|
|
37
|
+
:value=${sync((x) => x.rightCriteria)}
|
|
38
|
+
title=${(x) => x.rightCriteria}
|
|
39
|
+
>
|
|
32
40
|
${repeat((_) => Object.values(RightCriteria), html `
|
|
33
|
-
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
41
|
+
<rapid-option value=${(x) => x} title=${(x) => x}>${(x) => x}</rapid-option>
|
|
34
42
|
`)}
|
|
35
43
|
</rapid-select>
|
|
36
44
|
|
|
@@ -50,9 +58,15 @@ export const RuleConditionBuilderTemplate = html `
|
|
|
50
58
|
`)}
|
|
51
59
|
`)}
|
|
52
60
|
${when((x) => x.rightCriteria === RightCriteria.FIELD, html `
|
|
53
|
-
<rapid-select
|
|
61
|
+
<rapid-select
|
|
62
|
+
class="right-criteria-select"
|
|
63
|
+
:value=${sync((x) => x.rightValueSelect)}
|
|
64
|
+
title=${(x) => x.rightValueSelect}
|
|
65
|
+
>
|
|
54
66
|
${repeat((x) => x.fields, html `
|
|
55
|
-
<rapid-option value=${(x) => x.FIELD_NAME}
|
|
67
|
+
<rapid-option value=${(x) => x.FIELD_NAME} title=${(x) => x.FIELD_NAME}>
|
|
68
|
+
${(x) => x.FIELD_NAME}
|
|
69
|
+
</rapid-option>
|
|
56
70
|
`)}
|
|
57
71
|
</rapid-select>
|
|
58
72
|
`)}
|
|
@@ -24,18 +24,22 @@ export const RuleDialogTemplate = html `
|
|
|
24
24
|
<div class="content-row">
|
|
25
25
|
<div class="control">
|
|
26
26
|
<label>Resource</label>
|
|
27
|
-
<rapid-select
|
|
27
|
+
<rapid-select
|
|
28
|
+
:value=${sync((x) => x.resource)}
|
|
29
|
+
title=${(x) => x.resource}
|
|
30
|
+
position="below"
|
|
31
|
+
>
|
|
28
32
|
${repeat((x) => x.resources, html `
|
|
29
|
-
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
33
|
+
<rapid-option value=${(x) => x} title=${(x) => x}>${(x) => x}</rapid-option>
|
|
30
34
|
`)}
|
|
31
35
|
</rapid-select>
|
|
32
36
|
</div>
|
|
33
37
|
|
|
34
38
|
<div class="control">
|
|
35
39
|
<label>Topic</label>
|
|
36
|
-
<rapid-select :value=${sync((x) => x.topic)}>
|
|
40
|
+
<rapid-select :value=${sync((x) => x.topic)} title=${(x) => x.topic}>
|
|
37
41
|
${repeat((x) => x.topics, html `
|
|
38
|
-
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
42
|
+
<rapid-option value=${(x) => x} title=${(x) => x}>${(x) => x}</rapid-option>
|
|
39
43
|
`)}
|
|
40
44
|
</rapid-select>
|
|
41
45
|
</div>
|