@genesislcap/pbc-notify-ui 1.0.32 → 1.0.34
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/components.d.ts +1 -3
- package/dist/dts/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts +2 -2
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts +1 -1
- package/dist/dts/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +2 -2
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts +2 -2
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts +2 -2
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts +2 -2
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +4 -5
- 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 +1 -7
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts +6 -0
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/routes/route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/columns.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.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 +2 -2
- 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.d.ts +3 -3
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/columns.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts +3 -3
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +3 -3
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +3 -3
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts +2 -2
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/notification-dashboard.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/styles/condition-builder.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map +1 -1
- package/dist/dts/services/rule.service.d.ts +1 -1
- package/dist/dts/services/rule.service.d.ts.map +1 -1
- package/dist/dts/services/template.service.d.ts +1 -1
- package/dist/dts/services/template.service.d.ts.map +1 -1
- package/dist/dts/utils/eventDetail.d.ts +1 -1
- package/dist/dts/utils/eventDetail.d.ts.map +1 -1
- package/dist/esm/components/components.js +4 -33
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.js +2 -2
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.styles.js +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter.template.js +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.js +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.styles.js +3 -3
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +6 -6
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +2 -2
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.styles.js +2 -2
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.template.js +3 -3
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +2 -2
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +2 -2
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +13 -13
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +3 -4
- package/dist/esm/components/foundation-inbox/inbox.js +1 -1
- package/dist/esm/components/foundation-inbox/inbox.styles.js +5 -4
- package/dist/esm/components/foundation-inbox/inbox.template.js +26 -33
- package/dist/esm/components/foundation-inbox/inbox.types.js +7 -0
- package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +24 -24
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +3 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +19 -21
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +25 -25
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +8 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.js +11 -9
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +20 -20
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-condition-builder/template-condition-builder.template.js +19 -20
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +22 -22
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +8 -8
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js +3 -3
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +6 -6
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.utils.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/styles/condition-builder.styles.js +15 -9
- package/dist/esm/components/foundation-notification-dashboard/styles/dynamic-rule.styles.js +32 -12
- package/dist/esm/components/foundation-notification-dashboard/styles/management.styles.js +1 -1
- package/dist/esm/services/alert.service.js +1 -1
- package/dist/esm/services/inbox.service.js +1 -1
- package/dist/esm/services/notify.service.js +1 -1
- package/dist/esm/services/rule.service.js +1 -1
- package/dist/esm/services/system.service.js +1 -1
- package/dist/esm/services/template.service.js +1 -1
- package/dist/esm/utils/icons.js +4 -4
- package/package.json +11 -6
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, ref, repeat, when } from '@
|
|
2
|
+
import { html, ref, repeat, when } from '@genesislcap/web-core';
|
|
3
3
|
import { ALL_PARAM_SOURCE_TYPES, PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, PARAM_SOURCE_TYPE_USER_TEXT, } from '../../../../types/param-source-type';
|
|
4
4
|
import { ALL_PARAM_TYPES } from '../../../../types/param-type';
|
|
5
5
|
export const ParameterBuilderTemplate = html `
|
|
6
6
|
<div class="parameter-builder">
|
|
7
|
-
<
|
|
7
|
+
<rapid-text-field
|
|
8
8
|
id="param-name"
|
|
9
9
|
placeholder="Name"
|
|
10
10
|
:value=${sync((x) => x.name)}
|
|
11
|
-
></
|
|
11
|
+
></rapid-text-field>
|
|
12
12
|
|
|
13
|
-
<
|
|
13
|
+
<rapid-text-field
|
|
14
14
|
id="param-label"
|
|
15
15
|
placeholder="Label"
|
|
16
16
|
:value=${sync((x) => x.label)}
|
|
17
|
-
></
|
|
17
|
+
></rapid-text-field>
|
|
18
18
|
|
|
19
|
-
<
|
|
19
|
+
<rapid-select
|
|
20
20
|
id="param-source-type"
|
|
21
21
|
:value=${sync((x) => x.sourceType)}
|
|
22
22
|
class="param-source-type"
|
|
23
23
|
>
|
|
24
24
|
${repeat((x) => ALL_PARAM_SOURCE_TYPES, html `
|
|
25
|
-
<
|
|
25
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
26
26
|
`)}
|
|
27
|
-
</
|
|
27
|
+
</rapid-select>
|
|
28
28
|
|
|
29
29
|
${when((x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT, html `
|
|
30
|
-
<
|
|
30
|
+
<rapid-text-field class="param-source" disabled></rapid-text-field>
|
|
31
31
|
`)}
|
|
32
32
|
${when((x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP, html `
|
|
33
|
-
<
|
|
33
|
+
<rapid-select
|
|
34
34
|
${ref('sourceSelect')}
|
|
35
35
|
id="param-source"
|
|
36
36
|
:value=${sync((x) => x.sourceSelected)}
|
|
@@ -38,27 +38,27 @@ export const ParameterBuilderTemplate = html `
|
|
|
38
38
|
?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}
|
|
39
39
|
>
|
|
40
40
|
${repeat((x) => x.reqRepItems, html `
|
|
41
|
-
<
|
|
41
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
42
42
|
`)}
|
|
43
|
-
</
|
|
43
|
+
</rapid-select>
|
|
44
44
|
`)}
|
|
45
45
|
${when((x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
|
|
46
|
-
<
|
|
46
|
+
<rapid-text-field
|
|
47
47
|
${ref('sourceTextField')}
|
|
48
48
|
class="param-source"
|
|
49
49
|
placeholder="item1,item2,item3"
|
|
50
50
|
:value=${sync((x) => x.sourceTyped)}
|
|
51
|
-
></
|
|
51
|
+
></rapid-text-field>
|
|
52
52
|
`)}
|
|
53
53
|
|
|
54
|
-
<
|
|
54
|
+
<rapid-select id="param-type" :value=${sync((x) => x.type)} class="param-type">
|
|
55
55
|
${repeat((x) => ALL_PARAM_TYPES, html `
|
|
56
|
-
<
|
|
56
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
57
57
|
`)}
|
|
58
|
-
</
|
|
58
|
+
</rapid-select>
|
|
59
59
|
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
</
|
|
60
|
+
<rapid-button appearance="icon" class="delete" @click=${(x) => x.deleteParameter()}>
|
|
61
|
+
<rapid-icon name="trash" part="icon"></rapid-icon>
|
|
62
|
+
</rapid-button>
|
|
63
63
|
</div>
|
|
64
64
|
`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { attr, customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
3
3
|
import { LogicalOperator, RightCriteria, nullAndBlankLogicalOperatorValues, } from '../../../../../../notify.types';
|
|
4
4
|
import { logger } from '../../../../../../utils';
|
|
5
5
|
import { ConditionBuilderStyles } from '../../../../styles/condition-builder.styles';
|
|
6
6
|
import { TemplateConditionBuilderTemplate } from './template-condition-builder.template';
|
|
7
|
-
let TemplateConditionBuilder = class TemplateConditionBuilder extends
|
|
7
|
+
let TemplateConditionBuilder = class TemplateConditionBuilder extends GenesisElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
10
|
this.leftValueItems = [];
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, repeat, when } from '@
|
|
3
|
-
import { classNames } from '@microsoft/fast-web-utilities';
|
|
2
|
+
import { classNames, html, repeat, when } from '@genesislcap/web-core';
|
|
4
3
|
import { LogicalOperator, RightCriteria, nullAndBlankLogicalOperatorValues, } from '../../../../../../notify.types';
|
|
5
4
|
export const TemplateConditionBuilderTemplate = html `
|
|
6
5
|
<div class="condition-builder">
|
|
7
|
-
<
|
|
6
|
+
<rapid-select
|
|
8
7
|
:value=${sync((x) => x.leftValue)}
|
|
9
8
|
:initialValue=${sync((x) => x.leftValue)}
|
|
10
9
|
class="left-value"
|
|
11
10
|
>
|
|
12
11
|
${repeat((x) => x.leftValueItems, html `
|
|
13
|
-
<
|
|
12
|
+
<rapid-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</rapid-option>
|
|
14
13
|
`)}
|
|
15
|
-
</
|
|
14
|
+
</rapid-select>
|
|
16
15
|
|
|
17
|
-
<
|
|
16
|
+
<rapid-select
|
|
18
17
|
class="logical-operator${(x) => classNames([
|
|
19
18
|
'-null-and-blank',
|
|
20
19
|
nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]),
|
|
@@ -22,45 +21,45 @@ export const TemplateConditionBuilderTemplate = html `
|
|
|
22
21
|
:value=${sync((x) => x.logicalOperator)}
|
|
23
22
|
>
|
|
24
23
|
${repeat((_) => Object.values(LogicalOperator), html `
|
|
25
|
-
<
|
|
24
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
26
25
|
`)}
|
|
27
|
-
</
|
|
26
|
+
</rapid-select>
|
|
28
27
|
|
|
29
28
|
${when((x) => !nullAndBlankLogicalOperatorValues.includes(LogicalOperator[x.logicalOperator]), html `
|
|
30
|
-
<
|
|
29
|
+
<rapid-select class="right-criteria" :value=${sync((x) => x.rightCriteria)}>
|
|
31
30
|
${repeat((_) => Object.values(RightCriteria), html `
|
|
32
|
-
<
|
|
31
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
33
32
|
`)}
|
|
34
|
-
</
|
|
33
|
+
</rapid-select>
|
|
35
34
|
|
|
36
35
|
${when((x) => x.rightCriteria === RightCriteria.VALUE, html `
|
|
37
|
-
<
|
|
36
|
+
<rapid-text-field
|
|
38
37
|
class="right-criteria-text"
|
|
39
38
|
:value=${sync((x) => x.rightValueText)}
|
|
40
39
|
placeholder="Value"
|
|
41
40
|
autocomplete="off"
|
|
42
|
-
></
|
|
41
|
+
></rapid-text-field>
|
|
43
42
|
`)}
|
|
44
43
|
${when((x) => x.rightCriteria === RightCriteria.USER_ENTRY, html `
|
|
45
|
-
<
|
|
44
|
+
<rapid-select class="right-criteria-select" :value=${sync((x) => x.rightValueSelect)}>
|
|
46
45
|
${(x) => rightValueItemsOptions(x.rightValueItems)}
|
|
47
|
-
</
|
|
46
|
+
</rapid-select>
|
|
48
47
|
`)}
|
|
49
48
|
`)}
|
|
50
49
|
|
|
51
|
-
<
|
|
52
|
-
<
|
|
50
|
+
<rapid-button appearance="icon" class="delete" @click=${(x) => x.deleteCondition()}>
|
|
51
|
+
<rapid-icon
|
|
53
52
|
style="opacity: 0.5"
|
|
54
53
|
variant="regular"
|
|
55
54
|
name="trash-alt"
|
|
56
55
|
size="lg"
|
|
57
56
|
part="icon"
|
|
58
|
-
></
|
|
59
|
-
</
|
|
57
|
+
></rapid-icon>
|
|
58
|
+
</rapid-button>
|
|
60
59
|
</div>
|
|
61
60
|
`;
|
|
62
61
|
const rightValueItemsOptions = (rightValueItems) => html `
|
|
63
62
|
${repeat((x) => rightValueItems, html `
|
|
64
|
-
<
|
|
63
|
+
<rapid-option value="${(x) => { var _a; return (_a = x.UUID) !== null && _a !== void 0 ? _a : ''; }}">${(x) => { var _a; return (_a = x.PARAM_NAME) !== null && _a !== void 0 ? _a : ''; }}</rapid-option>
|
|
65
64
|
`)}
|
|
66
65
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { customElement,
|
|
2
|
+
import { customElement, GenesisElement, observable, volatile } from '@genesislcap/web-core';
|
|
3
3
|
import { Assignment, defaultUpdateType, Severity, } from '../../../../../notify.types';
|
|
4
4
|
import { NotifyService } from '../../../../../services/notify.service';
|
|
5
5
|
import { SystemService } from '../../../../../services/system.service';
|
|
@@ -9,7 +9,7 @@ import { DynamicRuleUtils, showNotificationError, TemplateUtils, isEmpty, } from
|
|
|
9
9
|
import { DynamicRuleDialogStyles } from '../../../styles/dynamic-rule.styles';
|
|
10
10
|
import { TemplateDialogTemplate } from './template-dialog.template';
|
|
11
11
|
import { TemplateDialogMode } from './template-dialog.types';
|
|
12
|
-
let TemplateDialog = class TemplateDialog extends
|
|
12
|
+
let TemplateDialog = class TemplateDialog extends GenesisElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.templateDialogMode = null;
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, ref, repeat } from '@
|
|
2
|
+
import { html, ref, repeat } from '@genesislcap/web-core';
|
|
3
3
|
import { Severity, UpdateType } from '../../../../../notify.types';
|
|
4
4
|
import { eventDetail } from '../../../../../utils/eventDetail';
|
|
5
5
|
export const TemplateDialogTemplate = html `
|
|
6
|
-
<
|
|
6
|
+
<rapid-modal ${ref('dialog')} class="dialog" :onCloseCallback=${(x) => () => x.close()}>
|
|
7
7
|
<div slot="top" class="dialog-top">${(x) => x.templateDialogTitle}</div>
|
|
8
8
|
|
|
9
9
|
<div class="dialog-content">
|
|
10
10
|
<div class="content-row">
|
|
11
11
|
<div class="control">
|
|
12
|
-
<
|
|
12
|
+
<rapid-text-field :value=${sync((x) => x.name)} autofocus>Name</rapid-text-field>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<div class="control">
|
|
16
|
-
<
|
|
16
|
+
<rapid-text-field :value=${sync((x) => x.description)}>Description</rapid-text-field>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div class="content-row">
|
|
21
21
|
<div class="control">
|
|
22
22
|
<label>Resource</label>
|
|
23
|
-
<
|
|
23
|
+
<rapid-select :value=${sync((x) => x.resource)} position="below">
|
|
24
24
|
${repeat((x) => x.resources, html `
|
|
25
|
-
<
|
|
25
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
26
26
|
`)}
|
|
27
|
-
</
|
|
27
|
+
</rapid-select>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<div class="control">
|
|
31
31
|
<label>Topic</label>
|
|
32
|
-
<
|
|
32
|
+
<rapid-select :value=${sync((x) => x.topic)}>
|
|
33
33
|
${repeat((x) => x.topics, html `
|
|
34
|
-
<
|
|
34
|
+
<rapid-option value=${(x) => x}>${(x) => x}</rapid-option>
|
|
35
35
|
`)}
|
|
36
|
-
</
|
|
36
|
+
</rapid-select>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
<div class="control">
|
|
40
40
|
<label>Severity</label>
|
|
41
|
-
<
|
|
41
|
+
<rapid-select :value=${sync((x) => x.severity)}>
|
|
42
42
|
<options-datasource
|
|
43
43
|
value-field="value"
|
|
44
44
|
label-field="value"
|
|
45
|
-
option-element="
|
|
45
|
+
option-element="rapid-option"
|
|
46
46
|
:data=${(_) => Object.values(Severity).map((value) => ({ value }))}
|
|
47
47
|
></options-datasource>
|
|
48
|
-
</
|
|
48
|
+
</rapid-select>
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
51
|
<div class="control">
|
|
52
52
|
<label>Update Type</label>
|
|
53
|
-
<
|
|
53
|
+
<rapid-multiselect
|
|
54
54
|
:selectedOptions=${(x) => x.updateType}
|
|
55
55
|
@selectionChange=${(x, c) => {
|
|
56
56
|
x.updateType = c.event.detail;
|
|
@@ -63,17 +63,17 @@ export const TemplateDialogTemplate = html `
|
|
|
63
63
|
label-field="value"
|
|
64
64
|
:data=${() => Object.values(UpdateType).map((value) => ({ value, label: value }))}
|
|
65
65
|
></multiselect-datasource>
|
|
66
|
-
</
|
|
66
|
+
</rapid-multiselect>
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
<div class="content-row">
|
|
71
71
|
<div class="control">
|
|
72
|
-
<
|
|
72
|
+
<rapid-text-field :value=${sync((x) => x.header)}>Header</rapid-text-field>
|
|
73
73
|
</div>
|
|
74
74
|
|
|
75
75
|
<div class="control">
|
|
76
|
-
<
|
|
76
|
+
<rapid-text-field :value=${sync((x) => x.message)}>Message</rapid-text-field>
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
|
|
@@ -91,7 +91,7 @@ export const TemplateDialogTemplate = html `
|
|
|
91
91
|
</div>
|
|
92
92
|
|
|
93
93
|
<div class="content-row">
|
|
94
|
-
<
|
|
94
|
+
<rapid-button @click=${(x) => x.newParameter()}>+ Parameter</rapid-button>
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
@@ -112,20 +112,20 @@ export const TemplateDialogTemplate = html `
|
|
|
112
112
|
</div>
|
|
113
113
|
|
|
114
114
|
<div class="content-row">
|
|
115
|
-
<
|
|
115
|
+
<rapid-button @click=${(x) => x.newCondition()}>+ Condition</rapid-button>
|
|
116
116
|
</div>
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
120
|
|
|
121
121
|
<div slot="bottom" class="dialog-bottom">
|
|
122
|
-
<
|
|
122
|
+
<rapid-button
|
|
123
123
|
appearance="accent"
|
|
124
124
|
@click=${(x) => x.submit()}
|
|
125
125
|
?disabled=${(x) => x.validateRequiredFields}
|
|
126
126
|
>
|
|
127
127
|
Submit
|
|
128
|
-
</
|
|
128
|
+
</rapid-button>
|
|
129
129
|
</div>
|
|
130
|
-
</
|
|
130
|
+
</rapid-modal>
|
|
131
131
|
`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
3
|
-
import { customElement,
|
|
3
|
+
import { customElement, GenesisElement, html, ref, repeat } from '@genesislcap/web-core';
|
|
4
4
|
import { TemplateService } from '../../../../services/template.service';
|
|
5
5
|
import { DynamicRuleManagementStyles } from '../../styles/dynamic-rule.styles';
|
|
6
6
|
import { TEMPLATE_MANAGEMENT_COLUMNS } from './columns';
|
|
7
7
|
import { TemplateDialogMode } from './template-dialog/template-dialog.types';
|
|
8
|
-
let TemplateManagement = class TemplateManagement extends
|
|
8
|
+
let TemplateManagement = class TemplateManagement extends GenesisElement {
|
|
9
9
|
openTemplateDialog() {
|
|
10
10
|
this.templateDialog.openDialog({ mode: TemplateDialogMode.CREATE });
|
|
11
11
|
}
|
|
@@ -31,7 +31,7 @@ let TemplateManagement = class TemplateManagement extends FASTElement {
|
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
},
|
|
34
|
-
}, '
|
|
34
|
+
}, 'rapid');
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
__decorate([
|
|
@@ -43,20 +43,20 @@ TemplateManagement = __decorate([
|
|
|
43
43
|
template: html `
|
|
44
44
|
<div class="container">
|
|
45
45
|
<div class="header">
|
|
46
|
-
<
|
|
47
|
-
<
|
|
46
|
+
<rapid-button class="add" @click=${(x) => x.openTemplateDialog()}>
|
|
47
|
+
<rapid-icon name="plus" size="lg" variant="solid"></rapid-icon>
|
|
48
48
|
Add
|
|
49
|
-
</
|
|
49
|
+
</rapid-button>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
<div class="grid">
|
|
53
|
-
<
|
|
53
|
+
<rapid-grid-pro only-template-col-defs>
|
|
54
54
|
<grid-pro-genesis-datasource resource-name="ALL_RULE_TEMPLATES">
|
|
55
55
|
${repeat((x) => TEMPLATE_MANAGEMENT_COLUMNS(x), html `
|
|
56
56
|
<grid-pro-column :definition=${(x) => x} />
|
|
57
57
|
`)}
|
|
58
58
|
</grid-pro-genesis-datasource>
|
|
59
|
-
</
|
|
59
|
+
</rapid-grid-pro>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
62
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
3
|
-
import {
|
|
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
6
|
import { FoundationNotificationDashboardTemplate as template } from './notification-dashboard.template';
|
|
7
7
|
/**
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
let FoundationNotificationDashboard = class FoundationNotificationDashboard extends
|
|
10
|
+
let FoundationNotificationDashboard = class FoundationNotificationDashboard extends GenesisElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.ready = false;
|
package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { css } from '@
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export const FoundationNotificationDashboardStyles = css `
|
|
6
6
|
.notification-dashboard,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
rapid-tabs,
|
|
8
|
+
rapid-tab-panel {
|
|
9
9
|
height: 100%;
|
|
10
10
|
}
|
|
11
11
|
`;
|
package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { html, repeat, when } from '@
|
|
1
|
+
import { html, repeat, when } 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
|
-
<
|
|
5
|
+
<rapid-tabs class="tabs">
|
|
6
6
|
<!-- Tabs -->
|
|
7
7
|
${repeat((_) => NOTIFICATION_DASHBOARD_TABS, html `
|
|
8
8
|
${when((x, c) => c.parent.auth.currentUser.hasPermission(x.right), html `
|
|
9
|
-
<
|
|
9
|
+
<rapid-tab slot="${(x) => x.id}-tab">${(x) => x.name}</rapid-tab>
|
|
10
10
|
`)}
|
|
11
11
|
`)}
|
|
12
12
|
|
|
@@ -16,12 +16,12 @@ export const FoundationNotificationDashboardTemplate = html `
|
|
|
16
16
|
${
|
|
17
17
|
/* HTML Render */
|
|
18
18
|
(x) => html `
|
|
19
|
-
<
|
|
19
|
+
<rapid-tab-panel slot="${x.id}-tab" id="${x.id}-tab-panel">
|
|
20
20
|
<${x.component}></${x.component}>
|
|
21
|
-
</
|
|
21
|
+
</rapid-tab-panel>
|
|
22
22
|
`}
|
|
23
23
|
`)}
|
|
24
24
|
`)}
|
|
25
|
-
</
|
|
25
|
+
</rapid-tabs>
|
|
26
26
|
</div>
|
|
27
27
|
`;
|
package/dist/esm/components/foundation-notification-dashboard/styles/condition-builder.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '@
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
2
|
export const ConditionBuilderStyles = css `
|
|
3
3
|
.condition-builder {
|
|
4
4
|
display: flex;
|
|
@@ -6,27 +6,29 @@ export const ConditionBuilderStyles = css `
|
|
|
6
6
|
margin-bottom: calc(var(--design-unit) * 2px);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
rapid-button {
|
|
10
10
|
margin: 0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.delete {
|
|
14
14
|
margin: 0;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
rapid-text-field {
|
|
18
20
|
width: 100%;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
rapid-select {
|
|
22
24
|
min-width: auto;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
rapid-select.left-value::part(control) {
|
|
26
28
|
width: 250px;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
rapid-select.logical-operator::part(control) {
|
|
30
32
|
width: 160px;
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -34,16 +36,20 @@ export const ConditionBuilderStyles = css `
|
|
|
34
36
|
width: 100%;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
rapid-select.right-criteria::part(control) {
|
|
38
40
|
width: 135px;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
rapid-select.right-criteria-user-entry {
|
|
44
|
+
width: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
rapid-select.right-criteria-select {
|
|
42
48
|
width: 100%;
|
|
43
49
|
min-width: 0;
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
rapid-select::part(listbox) {
|
|
47
53
|
max-height: 160px;
|
|
48
54
|
}
|
|
49
55
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '@
|
|
1
|
+
import { css } from '@genesislcap/web-core';
|
|
2
2
|
export const DynamicRuleManagementStyles = css `
|
|
3
3
|
.container {
|
|
4
4
|
display: flex;
|
|
@@ -18,7 +18,7 @@ export const DynamicRuleManagementStyles = css `
|
|
|
18
18
|
// #region Dialog
|
|
19
19
|
const modalWidthPx = 940;
|
|
20
20
|
const top = css `
|
|
21
|
-
|
|
21
|
+
rapid-modal::part(top) {
|
|
22
22
|
padding: calc(var(--design-unit) * 4px);
|
|
23
23
|
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
24
24
|
margin: 0;
|
|
@@ -30,7 +30,7 @@ const top = css `
|
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
32
|
const bottom = css `
|
|
33
|
-
|
|
33
|
+
rapid-modal::part(bottom) {
|
|
34
34
|
padding: calc(var(--design-unit) * 4px);
|
|
35
35
|
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
36
36
|
margin: 0;
|
|
@@ -41,32 +41,32 @@ const bottom = css `
|
|
|
41
41
|
}
|
|
42
42
|
`;
|
|
43
43
|
const textField = css `
|
|
44
|
-
|
|
44
|
+
rapid-text-field {
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: calc(var(--design-unit) * 2px);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
rapid-text-field::part(label) {
|
|
51
51
|
margin: 0;
|
|
52
52
|
color: var(--neutral-foreground-rest);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
rapid-text-field::part(label)::after {
|
|
56
56
|
content: '*';
|
|
57
57
|
}
|
|
58
58
|
`;
|
|
59
59
|
const select = css `
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
rapid-select,
|
|
61
|
+
rapid-multiselect::part(root) {
|
|
62
62
|
min-width: 0;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
rapid-select::part(listbox) {
|
|
66
66
|
max-height: 160px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
rapid-multiselect {
|
|
70
70
|
max-height: 40px;
|
|
71
71
|
}
|
|
72
72
|
`;
|
|
@@ -74,7 +74,7 @@ export const DynamicRuleDialogStyles = css `
|
|
|
74
74
|
${top}
|
|
75
75
|
${bottom}
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
rapid-modal::part(dialog) {
|
|
78
78
|
padding: 0;
|
|
79
79
|
background: var(--neutral-layer-4);
|
|
80
80
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
@@ -119,10 +119,18 @@ export const DynamicRuleDialogStyles = css `
|
|
|
119
119
|
${textField}
|
|
120
120
|
${select}
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
rapid-button {
|
|
123
123
|
margin: 0;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
rapid-select {
|
|
127
|
+
min-width: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
rapid-select::part(listbox) {
|
|
131
|
+
max-height: 160px;
|
|
132
|
+
}
|
|
133
|
+
|
|
126
134
|
.horizontal {
|
|
127
135
|
flex-direction: row;
|
|
128
136
|
}
|
|
@@ -134,5 +142,17 @@ export const DynamicRuleDialogStyles = css `
|
|
|
134
142
|
.topic {
|
|
135
143
|
min-width: revert-layer;
|
|
136
144
|
}
|
|
145
|
+
|
|
146
|
+
::-webkit-scrollbar {
|
|
147
|
+
width: calc((var(--base-height-multiplier) + var(--design-unit)) * 1px);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
::-webkit-scrollbar-track {
|
|
151
|
+
background: var(--neutral-layer-1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
::-webkit-scrollbar-thumb {
|
|
155
|
+
background: var(--neutral-fill-rest);
|
|
156
|
+
}
|
|
137
157
|
`;
|
|
138
158
|
// #endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { DI } from '@
|
|
3
|
+
import { DI } from '@genesislcap/web-core';
|
|
4
4
|
class AlertServiceImpl {
|
|
5
5
|
getAlerts() {
|
|
6
6
|
return this.connect.stream('ALL_NOTIFY_ALERT_RECORDS', (streamMessage) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
|
-
import { DI } from '@
|
|
3
|
+
import { DI } from '@genesislcap/web-core';
|
|
4
4
|
import { logger } from '../utils';
|
|
5
5
|
class FoundationInboxServiceImpl {
|
|
6
6
|
constructor() {
|