@genesislcap/pbc-notify-ui 1.0.23 → 1.0.25
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/.husky/commit-msg +3 -0
- package/.husky/pre-commit +4 -0
- package/commitlint.config.js +25 -0
- 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.map +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/foundation-inbox-flyout/foundation-inbox-flyout.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/inbox-subscription.d.ts +3 -3
- 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.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 +1 -1
- 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 +12 -9
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.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 +4 -3
- 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-inbox/inbox.utils.d.ts.map +1 -1
- 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 +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/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.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.d.ts +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-condition-builder/rule-condition-builder.types.d.ts.map +1 -1
- 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.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts +1 -1
- 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-dialog/rule-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts +1 -1
- 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/condition-builder/condition-builder.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.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.template.d.ts +1 -1
- 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-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts +1 -1
- 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-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts +1 -1
- 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 +1 -1
- 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.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/right-criteria.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/types/rule-execution-strategy.d.ts.map +1 -1
- package/dist/dts/services/alert.service.d.ts.map +1 -1
- package/dist/dts/services/notify.service.d.ts.map +1 -1
- package/dist/dts/services/rule.service.d.ts.map +1 -1
- package/dist/dts/services/system.service.d.ts.map +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/gridConfig.d.ts.map +1 -1
- package/dist/dts/utils/humanize.d.ts.map +1 -1
- package/dist/dts/utils/icons.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/dts/utils/updateArray.d.ts.map +1 -1
- package/dist/esm/components/components.js +10 -10
- 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 +1 -1
- package/dist/esm/components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout.template.js +5 -10
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/inbox-subscription.js +9 -11
- 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 +12 -13
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.js +6 -6
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.styles.js +1 -1
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +27 -32
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +38 -32
- package/dist/esm/components/foundation-inbox/inbox.js +1 -1
- package/dist/esm/components/foundation-inbox/inbox.styles.js +24 -33
- package/dist/esm/components/foundation-inbox/inbox.template.js +90 -67
- package/dist/esm/components/foundation-inbox/inbox.types.js +5 -0
- package/dist/esm/components/foundation-inbox/inbox.utils.js +4 -8
- package/dist/esm/components/foundation-notification-dashboard/components/notify-audit/notify-audit-management.js +9 -10
- package/dist/esm/components/foundation-notification-dashboard/components/routes/route-management.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-distribution-route-management.js +8 -9
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/email-user-route-management.js +8 -9
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/log-route-management.js +11 -12
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/ms-teams-route-management.js +12 -13
- package/dist/esm/components/foundation-notification-dashboard/components/routes/tabs/screen-route-management.js +17 -18
- package/dist/esm/components/foundation-notification-dashboard/components/rules/columns.js +10 -10
- 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.styles.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-condition-builder/rule-condition-builder.template.js +21 -32
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +13 -20
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +9 -7
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +29 -61
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +15 -19
- package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js +10 -10
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.js +4 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.styles.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +25 -43
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.js +4 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +25 -42
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +24 -24
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +7 -8
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +31 -69
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.utils.js +18 -18
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +15 -19
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.js +2 -2
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.tabs.js +5 -5
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.template.js +7 -5
- package/dist/esm/components/foundation-notification-dashboard/styles/management.styles.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/styles/rules-and-templates.styles.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/types/expression-type.js +1 -1
- package/dist/esm/components/foundation-notification-dashboard/types/right-criteria.js +1 -4
- package/dist/esm/components/foundation-notification-dashboard/types/rule-execution-strategy.js +1 -4
- package/dist/esm/components/foundation-notification-dashboard/types/severity.js +1 -1
- package/dist/esm/index.federated.js +1 -0
- package/dist/esm/services/alert.service.js +4 -4
- package/dist/esm/services/notify.service.js +6 -6
- package/dist/esm/services/rule.service.js +15 -12
- package/dist/esm/services/system.service.js +11 -8
- package/dist/esm/services/template.service.js +11 -9
- package/dist/esm/utils/gridConfig.js +1 -1
- package/dist/esm/utils/humanize.js +3 -2
- package/dist/esm/utils/icons.js +3 -10
- package/dist/esm/utils/notifyPermissions.js +4 -4
- package/package.json +43 -5
- package/scripts/commitlint.js +24 -0
package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { css, customElement, FASTElement, html, ref, repeat } from '@microsoft/fast-element';
|
|
3
2
|
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
4
|
-
import {
|
|
3
|
+
import { css, customElement, FASTElement, html, ref, repeat } from '@microsoft/fast-element';
|
|
4
|
+
import { RuleService } from '../../../../services/rule.service';
|
|
5
5
|
import { rulesAndTemplatesStyles } from '../../styles/rules-and-templates.styles';
|
|
6
6
|
import { RULE_MANAGEMENT_COLUMNS } from './columns';
|
|
7
|
-
import {
|
|
7
|
+
import { RuleDialogMode } from './rule-dialog/rule-dialog.types';
|
|
8
8
|
let RuleManagement = class RuleManagement extends FASTElement {
|
|
9
9
|
openRuleDialog() {
|
|
10
10
|
this.ruleDialog.openDialog({ mode: RuleDialogMode.CREATE });
|
|
@@ -22,12 +22,14 @@ let RuleManagement = class RuleManagement extends FASTElement {
|
|
|
22
22
|
dialog: {
|
|
23
23
|
dismissingAction: {
|
|
24
24
|
label: 'Dismiss',
|
|
25
|
-
action: () => null
|
|
25
|
+
action: () => null,
|
|
26
26
|
},
|
|
27
|
-
confirmingActions: [
|
|
27
|
+
confirmingActions: [
|
|
28
|
+
{
|
|
28
29
|
label: 'Confirm',
|
|
29
|
-
action: () => this.ruleService.deleteRule(rule.ID)
|
|
30
|
-
}
|
|
30
|
+
action: () => this.ruleService.deleteRule(rule.ID),
|
|
31
|
+
},
|
|
32
|
+
],
|
|
31
33
|
},
|
|
32
34
|
}, 'zero');
|
|
33
35
|
}
|
|
@@ -41,30 +43,24 @@ RuleManagement = __decorate([
|
|
|
41
43
|
template: html `
|
|
42
44
|
<div class="container">
|
|
43
45
|
<div class="header">
|
|
44
|
-
<zero-button
|
|
45
|
-
class="add"
|
|
46
|
-
@click=${x => x.openRuleDialog()}
|
|
47
|
-
>
|
|
46
|
+
<zero-button class="add" @click=${(x) => x.openRuleDialog()}>
|
|
48
47
|
<zero-icon name="plus" size="lg" variant="solid"></zero-icon>
|
|
49
48
|
Add
|
|
50
49
|
</zero-button>
|
|
51
50
|
</div>
|
|
52
|
-
|
|
51
|
+
|
|
53
52
|
<div class="grid">
|
|
54
53
|
<zero-grid-pro only-template-col-defs>
|
|
55
54
|
<grid-pro-genesis-datasource resource-name="ALL_DYNAMIC_NOTIFY_RULES">
|
|
56
|
-
${repeat(x => RULE_MANAGEMENT_COLUMNS(x), html `
|
|
57
|
-
<grid-pro-column :definition=${x => x} />
|
|
55
|
+
${repeat((x) => RULE_MANAGEMENT_COLUMNS(x), html `
|
|
56
|
+
<grid-pro-column :definition=${(x) => x} />
|
|
58
57
|
`)}
|
|
59
|
-
</grid-pro-genesis-datasource>
|
|
58
|
+
</grid-pro-genesis-datasource>
|
|
60
59
|
</zero-grid-pro>
|
|
61
60
|
</div>
|
|
62
61
|
</div>
|
|
63
62
|
|
|
64
|
-
<rule-dialog
|
|
65
|
-
${ref('ruleDialog')}
|
|
66
|
-
>
|
|
67
|
-
</rule-dialog>
|
|
63
|
+
<rule-dialog ${ref('ruleDialog')}></rule-dialog>
|
|
68
64
|
`,
|
|
69
65
|
styles: css `
|
|
70
66
|
${rulesAndTemplatesStyles}
|
package/dist/esm/components/foundation-notification-dashboard/components/templates/columns.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { buttonCellRenderer } from
|
|
2
|
-
import { deleteIcon, editIcon } from
|
|
1
|
+
import { buttonCellRenderer } from '@genesislcap/foundation-entity-management';
|
|
2
|
+
import { deleteIcon, editIcon } from '../../../../utils';
|
|
3
3
|
export const TEMPLATE_MANAGEMENT_COLUMNS = (context) => [
|
|
4
4
|
{
|
|
5
5
|
field: 'NAME',
|
|
6
6
|
headerName: 'Name',
|
|
7
|
-
flex: 1
|
|
7
|
+
flex: 1,
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
field: 'DESCRIPTION',
|
|
11
11
|
headerName: 'Description',
|
|
12
|
-
flex: 1
|
|
12
|
+
flex: 1,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
field: 'USER_NAME',
|
|
16
16
|
headerName: 'Username',
|
|
17
|
-
flex: 1
|
|
17
|
+
flex: 1,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
field: 'RULE_TABLE',
|
|
21
21
|
headerName: 'Table',
|
|
22
|
-
flex: 1
|
|
22
|
+
flex: 1,
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
field: 'RULE_STATUS',
|
|
26
26
|
headerName: 'Status',
|
|
27
|
-
flex: 1
|
|
27
|
+
flex: 1,
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
field: 'RULE_EXPRESSION',
|
|
31
31
|
headerName: 'Expression',
|
|
32
|
-
flex: 1
|
|
32
|
+
flex: 1,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
field: 'RESULT_EXPRESSION',
|
|
36
36
|
headerName: 'Result',
|
|
37
|
-
flex: 1
|
|
37
|
+
flex: 1,
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
field: 'RULE_EXECUTION_STRATEGY',
|
|
@@ -42,5 +42,5 @@ export const TEMPLATE_MANAGEMENT_COLUMNS = (context) => [
|
|
|
42
42
|
flex: 1,
|
|
43
43
|
},
|
|
44
44
|
buttonCellRenderer('Edit', (e) => context.editTemplate(e), editIcon),
|
|
45
|
-
buttonCellRenderer('Delete', (e) => context.deleteTemplate(e), deleteIcon)
|
|
45
|
+
buttonCellRenderer('Delete', (e) => context.deleteTemplate(e), deleteIcon),
|
|
46
46
|
];
|
|
@@ -39,7 +39,7 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
|
|
|
39
39
|
}
|
|
40
40
|
createRightValueItems() {
|
|
41
41
|
let optionsInHTML = '';
|
|
42
|
-
this.rightValueItems.forEach(item => {
|
|
42
|
+
this.rightValueItems.forEach((item) => {
|
|
43
43
|
var _a, _b;
|
|
44
44
|
optionsInHTML += `<zero-option value="${(_a = item.UUID) !== null && _a !== void 0 ? _a : ''}">${(_b = item.PARAM_NAME) !== null && _b !== void 0 ? _b : ''}</zero-option>`;
|
|
45
45
|
});
|
|
@@ -76,7 +76,7 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
|
|
|
76
76
|
assignLeftValue() {
|
|
77
77
|
this.leftValue = this.condition.LEFT_VALUE
|
|
78
78
|
? typeof this.condition.LEFT_VALUE === 'string'
|
|
79
|
-
? JSON.stringify(this.leftValueItems.find(item => item.FIELD_NAME === this.condition.LEFT_VALUE)) // Edit
|
|
79
|
+
? JSON.stringify(this.leftValueItems.find((item) => item.FIELD_NAME === this.condition.LEFT_VALUE)) // Edit
|
|
80
80
|
: JSON.stringify(this.condition.LEFT_VALUE)
|
|
81
81
|
: JSON.stringify(this.leftValueItems[0]);
|
|
82
82
|
this.$emit('edit', this.condition);
|
|
@@ -87,9 +87,7 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
|
|
|
87
87
|
this.rightValueText = this.condition.RIGHT_VALUE;
|
|
88
88
|
}
|
|
89
89
|
else {
|
|
90
|
-
this.rightValueUserEntry = ((_a = this.parameters) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
91
|
-
? this.condition.RIGHT_VALUE
|
|
92
|
-
: null;
|
|
90
|
+
this.rightValueUserEntry = ((_a = this.parameters) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.condition.RIGHT_VALUE : null;
|
|
93
91
|
}
|
|
94
92
|
this.$emit('edit', this.condition);
|
|
95
93
|
}
|
|
@@ -113,9 +111,7 @@ let ConditionBuilder = class ConditionBuilder extends FASTElement {
|
|
|
113
111
|
this.rightValueText = '';
|
|
114
112
|
}
|
|
115
113
|
else {
|
|
116
|
-
this.rightValueUserEntry = ((_a = this.parameters) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
117
|
-
? this.parameters[0].UUID
|
|
118
|
-
: null;
|
|
114
|
+
this.rightValueUserEntry = ((_a = this.parameters) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.parameters[0].UUID : null;
|
|
119
115
|
this.condition.RIGHT_VALUE = this.rightValueUserEntry;
|
|
120
116
|
}
|
|
121
117
|
this.$emit('edit', this.condition);
|
|
@@ -1,59 +1,41 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, repeat, when } from
|
|
2
|
+
import { html, repeat, when } from '@microsoft/fast-element';
|
|
3
3
|
import { ALL_LOGICAL_OPERATORS } from '../../../../types/logical-operator';
|
|
4
|
-
import { ALL_RIGHT_CRITERIAS, RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../../types/right-criteria';
|
|
4
|
+
import { ALL_RIGHT_CRITERIAS, RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE, } from '../../../../types/right-criteria';
|
|
5
5
|
export const ConditionBuilderTemplate = html `
|
|
6
6
|
<div class="condition-builder">
|
|
7
|
-
<zero-select
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
>
|
|
11
|
-
${repeat(x => x.leftValueItems, html `
|
|
12
|
-
<zero-option value=${x => JSON.stringify(x)}>${x => x.FIELD_NAME}</zero-option>
|
|
7
|
+
<zero-select :value=${sync((x) => x.leftValue)} class="left-value">
|
|
8
|
+
${repeat((x) => x.leftValueItems, html `
|
|
9
|
+
<zero-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</zero-option>
|
|
13
10
|
`)}
|
|
14
11
|
</zero-select>
|
|
15
12
|
|
|
16
|
-
<zero-select
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
>
|
|
20
|
-
${repeat(x => ALL_LOGICAL_OPERATORS, html `
|
|
21
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
13
|
+
<zero-select class="logical-operator" :value=${sync((x) => x.logicalOperator)}>
|
|
14
|
+
${repeat((x) => ALL_LOGICAL_OPERATORS, html `
|
|
15
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
22
16
|
`)}
|
|
23
17
|
</zero-select>
|
|
24
|
-
|
|
25
|
-
<zero-select
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
>
|
|
29
|
-
${repeat(x => ALL_RIGHT_CRITERIAS, html `
|
|
30
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
18
|
+
|
|
19
|
+
<zero-select class="right-criteria" :value=${sync((x) => x.rightCriteria)}>
|
|
20
|
+
${repeat((x) => ALL_RIGHT_CRITERIAS, html `
|
|
21
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
31
22
|
`)}
|
|
32
23
|
</zero-select>
|
|
33
24
|
|
|
34
|
-
${when(x => x.rightCriteria === RIGHT_CRITERIA_VALUE, html `
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
`
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:value=${sync(x => x.rightValueUserEntry)}
|
|
47
|
-
>
|
|
48
|
-
${x => x.rightValueItemsProperty}
|
|
49
|
-
</zero-select>
|
|
50
|
-
`)}
|
|
25
|
+
${when((x) => x.rightCriteria === RIGHT_CRITERIA_VALUE, html `
|
|
26
|
+
<zero-text-field
|
|
27
|
+
class="right-criteria-value"
|
|
28
|
+
:value=${sync((x) => x.rightValueText)}
|
|
29
|
+
placeholder="Value"
|
|
30
|
+
></zero-text-field>
|
|
31
|
+
`)}
|
|
32
|
+
${when((x) => x.rightCriteria === RIGHT_CRITERIA_USER_ENTRY, html `
|
|
33
|
+
<zero-select class="right-criteria-user-entry" :value=${sync((x) => x.rightValueUserEntry)}>
|
|
34
|
+
${(x) => x.rightValueItemsProperty}
|
|
35
|
+
</zero-select>
|
|
36
|
+
`)}
|
|
51
37
|
|
|
52
|
-
<zero-button
|
|
53
|
-
appearance="icon"
|
|
54
|
-
class="delete"
|
|
55
|
-
@click=${x => x.deleteCondition()}
|
|
56
|
-
>
|
|
38
|
+
<zero-button appearance="icon" class="delete" @click=${(x) => x.deleteCondition()}>
|
|
57
39
|
<zero-icon name="trash" part="icon"></zero-icon>
|
|
58
40
|
</zero-button>
|
|
59
41
|
</div>
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import { FASTElement, attr, customElement, observable } from
|
|
3
|
-
import {
|
|
2
|
+
import { FASTElement, attr, customElement, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { PARAM_SOURCE_TYPE_DEFINED_GROUP, PARAM_SOURCE_TYPE_REQ_REP, } from '../../../../types/param-source-type';
|
|
4
4
|
import { ParameterBuilderStyles as styles } from './parameter-builder.styles';
|
|
5
|
-
import {
|
|
5
|
+
import { ParameterBuilderTemplate as template } from './parameter-builder.template';
|
|
6
6
|
const name = 'parameter-builder';
|
|
7
7
|
let ParameterBuilder = class ParameterBuilder extends FASTElement {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
|
-
this.reqRepItems = [
|
|
11
|
-
'REQUEST_1',
|
|
12
|
-
'REQUEST_2',
|
|
13
|
-
'REQUEST_3',
|
|
14
|
-
];
|
|
10
|
+
this.reqRepItems = ['REQUEST_1', 'REQUEST_2', 'REQUEST_3'];
|
|
15
11
|
}
|
|
16
12
|
connectedCallback() {
|
|
17
13
|
const _super = Object.create(null, {
|
|
@@ -6,13 +6,13 @@ export const ParameterBuilderStyles = css `
|
|
|
6
6
|
gap: calc(var(--design-unit) * 2px);
|
|
7
7
|
margin-bottom: calc(var(--design-unit) * 2px);
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
zero-button {
|
|
11
|
-
margin:
|
|
11
|
+
margin: 0;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
.delete {
|
|
15
|
-
margin:
|
|
15
|
+
margin: 0;
|
|
16
16
|
background-color: var(--neutral-layer-1);
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -1,80 +1,63 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, ref, repeat, when } from
|
|
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';
|
|
2
|
+
import { html, ref, repeat, when } from '@microsoft/fast-element';
|
|
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
|
<zero-text-field
|
|
8
8
|
id="param-name"
|
|
9
9
|
placeholder="Name"
|
|
10
|
-
:value=${sync(x => x.name)}
|
|
11
|
-
>
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
:value=${sync((x) => x.name)}
|
|
11
|
+
></zero-text-field>
|
|
12
|
+
|
|
14
13
|
<zero-text-field
|
|
15
14
|
id="param-label"
|
|
16
15
|
placeholder="Label"
|
|
17
|
-
:value=${sync(x => x.label)}
|
|
18
|
-
>
|
|
19
|
-
</zero-text-field>
|
|
16
|
+
:value=${sync((x) => x.label)}
|
|
17
|
+
></zero-text-field>
|
|
20
18
|
|
|
21
19
|
<zero-select
|
|
22
20
|
id="param-source-type"
|
|
23
|
-
:value=${sync(x => x.sourceType)}
|
|
21
|
+
:value=${sync((x) => x.sourceType)}
|
|
24
22
|
class="param-source-type"
|
|
25
23
|
>
|
|
26
|
-
${repeat(x => ALL_PARAM_SOURCE_TYPES, html `
|
|
27
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
24
|
+
${repeat((x) => ALL_PARAM_SOURCE_TYPES, html `
|
|
25
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
28
26
|
`)}
|
|
29
27
|
</zero-select>
|
|
30
28
|
|
|
31
|
-
${when(x => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT, html `
|
|
32
|
-
<zero-text-field
|
|
33
|
-
class="param-source"
|
|
34
|
-
disabled
|
|
35
|
-
>
|
|
36
|
-
</zero-text-field>
|
|
29
|
+
${when((x) => x.sourceType === PARAM_SOURCE_TYPE_USER_TEXT, html `
|
|
30
|
+
<zero-text-field class="param-source" disabled></zero-text-field>
|
|
37
31
|
`)}
|
|
38
|
-
|
|
39
|
-
${when(x => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP, html `
|
|
32
|
+
${when((x) => x.sourceType === PARAM_SOURCE_TYPE_REQ_REP, html `
|
|
40
33
|
<zero-select
|
|
41
34
|
${ref('sourceSelect')}
|
|
42
35
|
id="param-source"
|
|
43
|
-
:value=${sync(x => x.sourceSelected)}
|
|
36
|
+
:value=${sync((x) => x.sourceSelected)}
|
|
44
37
|
class="param-source"
|
|
45
|
-
?disabled=${x => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}
|
|
38
|
+
?disabled=${(x) => x.sourceType !== PARAM_SOURCE_TYPE_REQ_REP}
|
|
46
39
|
>
|
|
47
|
-
${repeat(x => x.reqRepItems, html `
|
|
48
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
40
|
+
${repeat((x) => x.reqRepItems, html `
|
|
41
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
49
42
|
`)}
|
|
50
43
|
</zero-select>
|
|
51
44
|
`)}
|
|
52
|
-
|
|
53
|
-
${when(x => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
|
|
45
|
+
${when((x) => x.sourceType === PARAM_SOURCE_TYPE_DEFINED_GROUP, html `
|
|
54
46
|
<zero-text-field
|
|
55
47
|
${ref('sourceTextField')}
|
|
56
48
|
class="param-source"
|
|
57
49
|
placeholder="item1,item2,item3"
|
|
58
|
-
:value=${sync(x => x.sourceTyped)}
|
|
59
|
-
>
|
|
60
|
-
</zero-text-field>
|
|
50
|
+
:value=${sync((x) => x.sourceTyped)}
|
|
51
|
+
></zero-text-field>
|
|
61
52
|
`)}
|
|
62
|
-
|
|
63
|
-
<zero-select
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
class="param-type"
|
|
67
|
-
>
|
|
68
|
-
${repeat(x => ALL_PARAM_TYPES, html `
|
|
69
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
53
|
+
|
|
54
|
+
<zero-select id="param-type" :value=${sync((x) => x.type)} class="param-type">
|
|
55
|
+
${repeat((x) => ALL_PARAM_TYPES, html `
|
|
56
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
70
57
|
`)}
|
|
71
58
|
</zero-select>
|
|
72
59
|
|
|
73
|
-
<zero-button
|
|
74
|
-
appearance="icon"
|
|
75
|
-
class="delete"
|
|
76
|
-
@click=${x => x.deleteParameter()}
|
|
77
|
-
>
|
|
60
|
+
<zero-button appearance="icon" class="delete" @click=${(x) => x.deleteParameter()}>
|
|
78
61
|
<zero-icon name="trash" part="icon"></zero-icon>
|
|
79
62
|
</zero-button>
|
|
80
63
|
</div>
|
|
@@ -10,8 +10,8 @@ import { RIGHT_CRITERIA_USER_ENTRY, RIGHT_CRITERIA_VALUE } from '../../../types/
|
|
|
10
10
|
import { SEVERITY_INFORMATION } from '../../../types/severity';
|
|
11
11
|
import { TemplateDialogStyles as styles } from './template-dialog.styles';
|
|
12
12
|
import { TemplateDialogTemplate as template } from './template-dialog.template';
|
|
13
|
-
import { TemplateDialogMode } from './template-dialog.types';
|
|
14
|
-
import { createAssignment, createConditions, createEmptyCondition, createEmptyParameter, createParameterDetails, getAssignmentValue, UUIDGenerator } from './template-dialog.utils';
|
|
13
|
+
import { TemplateDialogMode, } from './template-dialog.types';
|
|
14
|
+
import { createAssignment, createConditions, createEmptyCondition, createEmptyParameter, createParameterDetails, getAssignmentValue, UUIDGenerator, } from './template-dialog.utils';
|
|
15
15
|
const name = 'template-dialog';
|
|
16
16
|
let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
17
17
|
constructor() {
|
|
@@ -24,8 +24,8 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
24
24
|
this.topics = [];
|
|
25
25
|
}
|
|
26
26
|
openDialog(params) {
|
|
27
|
-
var _a, _b;
|
|
28
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
var _a, _b;
|
|
29
29
|
this.resources = yield this.systemService.getResources(); // TODO: Tables + Views
|
|
30
30
|
this.topics = yield this.notifyService.getNotifyRouteTopics();
|
|
31
31
|
this.templateDialogMode = params.mode;
|
|
@@ -45,18 +45,18 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
45
45
|
this.resource = ruleTemplate.RULE_TABLE;
|
|
46
46
|
this.fields = yield this.systemService.getFields(this.resource);
|
|
47
47
|
// Parameters
|
|
48
|
-
this.parameters = Object.keys(ruleTemplate.PARAMETERS).map(key => {
|
|
48
|
+
this.parameters = Object.keys(ruleTemplate.PARAMETERS).map((key) => {
|
|
49
49
|
return {
|
|
50
50
|
UUID: UUIDGenerator.createUuid(),
|
|
51
51
|
PARAM_NAME: ruleTemplate.PARAMETERS[key].PARAM_NAME,
|
|
52
52
|
PARAM_LABEL: ruleTemplate.PARAMETERS[key].PARAM_LABEL,
|
|
53
53
|
PARAM_TYPE: ruleTemplate.PARAMETERS[key].PARAM_TYPE,
|
|
54
54
|
PARAM_SOURCE_TYPE: ruleTemplate.PARAMETERS[key].PARAM_SOURCE_TYPE,
|
|
55
|
-
PARAM_SOURCE: ruleTemplate.PARAMETERS[key].PARAM_SOURCE
|
|
55
|
+
PARAM_SOURCE: ruleTemplate.PARAMETERS[key].PARAM_SOURCE,
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
// Conditions
|
|
59
|
-
this.conditions = ruleTemplate.RULE_EXPRESSION.CONDITIONS.map(condition => {
|
|
59
|
+
this.conditions = ruleTemplate.RULE_EXPRESSION.CONDITIONS.map((condition) => {
|
|
60
60
|
var _a, _b;
|
|
61
61
|
return {
|
|
62
62
|
ID: UUIDGenerator.createUuid(),
|
|
@@ -66,8 +66,9 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
66
66
|
? RIGHT_CRITERIA_USER_ENTRY
|
|
67
67
|
: RIGHT_CRITERIA_VALUE,
|
|
68
68
|
RIGHT_VALUE: condition.RIGHT.TYPE === EXPRESSION_TYPE_PLACEHOLDER
|
|
69
|
-
? this.parameters.find(parameter => parameter.PARAM_NAME === condition.RIGHT.KEY)
|
|
70
|
-
|
|
69
|
+
? this.parameters.find((parameter) => parameter.PARAM_NAME === condition.RIGHT.KEY)
|
|
70
|
+
.UUID
|
|
71
|
+
: (_b = condition.RIGHT.VALUE) !== null && _b !== void 0 ? _b : condition.RIGHT.NAME,
|
|
71
72
|
};
|
|
72
73
|
});
|
|
73
74
|
// Assignments
|
|
@@ -87,32 +88,32 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
get templateDialogTitle() {
|
|
90
|
-
const mode = this.templateDialogMode === TemplateDialogMode.CREATE
|
|
91
|
-
? 'Create'
|
|
92
|
-
: 'Edit';
|
|
91
|
+
const mode = this.templateDialogMode === TemplateDialogMode.CREATE ? 'Create' : 'Edit';
|
|
93
92
|
return `${mode} Template`;
|
|
94
93
|
}
|
|
95
94
|
submit() {
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
const ruleTemplate = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && {
|
|
96
|
+
DYNAMIC_RULE_ID: this.templateId,
|
|
97
|
+
})), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
|
|
98
|
+
CONDITIONS: createConditions(this.conditions, this.parameters),
|
|
98
99
|
}, RAW_RULE_EXPRESSION: null, RESULT_EXPRESSION: {
|
|
99
100
|
ASSIGNMENTS: [
|
|
100
101
|
createAssignment('TOPIC', this.topic),
|
|
101
102
|
createAssignment('HEADER', this.header),
|
|
102
103
|
createAssignment('BODY', this.message),
|
|
103
|
-
createAssignment('NOTIFY_SEVERITY', humanize(this.severity))
|
|
104
|
-
]
|
|
104
|
+
createAssignment('NOTIFY_SEVERITY', humanize(this.severity)),
|
|
105
|
+
],
|
|
105
106
|
}, PARAMETER_DETAILS: createParameterDetails(this.parameters), RULE_EXECUTION_STRATEGY: 'UNLIMITED' });
|
|
106
107
|
switch (this.templateDialogMode) {
|
|
107
108
|
case TemplateDialogMode.CREATE:
|
|
108
109
|
this.templateService
|
|
109
|
-
.createRuleTemplate(
|
|
110
|
-
.then(response => this.validateResponse(response));
|
|
110
|
+
.createRuleTemplate(ruleTemplate)
|
|
111
|
+
.then((response) => this.validateResponse(response));
|
|
111
112
|
break;
|
|
112
113
|
case TemplateDialogMode.EDIT:
|
|
113
114
|
this.templateService
|
|
114
|
-
.editRuleTemplate(
|
|
115
|
-
.then(response => this.validateResponse(response));
|
|
115
|
+
.editRuleTemplate(ruleTemplate)
|
|
116
|
+
.then((response) => this.validateResponse(response));
|
|
116
117
|
break;
|
|
117
118
|
default:
|
|
118
119
|
logger.error('Error on TemplateDialogMode');
|
|
@@ -155,13 +156,12 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
155
156
|
newCondition() {
|
|
156
157
|
this.conditions.push(createEmptyCondition());
|
|
157
158
|
}
|
|
158
|
-
editCondition(editedCondition) {
|
|
159
|
-
}
|
|
159
|
+
editCondition(editedCondition) { }
|
|
160
160
|
deleteCondition(deletedCondition) {
|
|
161
161
|
if (this.conditions.length <= 1) {
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
|
-
this.conditions = this.conditions.filter(condition => condition !== deletedCondition);
|
|
164
|
+
this.conditions = this.conditions.filter((condition) => condition !== deletedCondition);
|
|
165
165
|
}
|
|
166
166
|
// #endregion
|
|
167
167
|
// #region Parameter
|
|
@@ -172,10 +172,10 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
172
172
|
this.parameters = [...this.parameters];
|
|
173
173
|
}
|
|
174
174
|
deleteParameter(deletedParameter) {
|
|
175
|
-
if (this.conditions.find(condition => condition.RIGHT_VALUE === deletedParameter.UUID)) {
|
|
175
|
+
if (this.conditions.find((condition) => condition.RIGHT_VALUE === deletedParameter.UUID)) {
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
this.parameters = this.parameters.filter(parameter => parameter.UUID !== deletedParameter.UUID);
|
|
178
|
+
this.parameters = this.parameters.filter((parameter) => parameter.UUID !== deletedParameter.UUID);
|
|
179
179
|
}
|
|
180
180
|
// #endregion
|
|
181
181
|
resourceChanged() {
|
|
@@ -4,7 +4,7 @@ const top = css `
|
|
|
4
4
|
zero-modal::part(top) {
|
|
5
5
|
padding: calc(var(--design-unit) * 4px);
|
|
6
6
|
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
7
|
-
margin:
|
|
7
|
+
margin: 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.template-dialog-top {
|
|
@@ -15,8 +15,8 @@ const top = css `
|
|
|
15
15
|
const bottom = css `
|
|
16
16
|
zero-modal::part(bottom) {
|
|
17
17
|
padding: calc(var(--design-unit) * 4px);
|
|
18
|
-
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)
|
|
19
|
-
margin:
|
|
18
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
19
|
+
margin: 0;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.template-dialog-bottom {
|
|
@@ -60,19 +60,18 @@ export const TemplateDialogStyles = css `
|
|
|
60
60
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
61
61
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
62
62
|
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
63
|
padding: calc(var(--design-unit) * 2px);
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
.parameter,
|
|
68
67
|
.condition {
|
|
69
|
-
gap:
|
|
68
|
+
gap: 0;
|
|
70
69
|
flex-direction: column;
|
|
71
|
-
margin-bottom:
|
|
70
|
+
margin-bottom: 0;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
zero-button {
|
|
75
|
-
margin:
|
|
74
|
+
margin: 0;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
zero-select {
|
|
@@ -90,7 +89,7 @@ export const TemplateDialogStyles = css `
|
|
|
90
89
|
.destination {
|
|
91
90
|
align-self: center;
|
|
92
91
|
}
|
|
93
|
-
|
|
92
|
+
|
|
94
93
|
.topic {
|
|
95
94
|
min-width: revert-layer;
|
|
96
95
|
}
|