@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
|
@@ -5,17 +5,17 @@ const LOG_ROUTE_MANAGEMENT_COLUMNS = [
|
|
|
5
5
|
{
|
|
6
6
|
field: 'NOTIFY_ROUTE_ID',
|
|
7
7
|
headerName: 'Notify Route Id',
|
|
8
|
-
flex: 1
|
|
8
|
+
flex: 1,
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
field: 'TOPIC_MATCH',
|
|
12
12
|
headerName: 'Topic Match',
|
|
13
|
-
flex: 1
|
|
13
|
+
flex: 1,
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
field: 'GATEWAY_ID',
|
|
17
17
|
headerName: 'Gateway Id',
|
|
18
|
-
flex: 1
|
|
18
|
+
flex: 1,
|
|
19
19
|
},
|
|
20
20
|
];
|
|
21
21
|
let LogRouteManagement = class LogRouteManagement extends FASTElement {
|
|
@@ -25,15 +25,14 @@ LogRouteManagement = __decorate([
|
|
|
25
25
|
name: 'log-route-management',
|
|
26
26
|
template: html `
|
|
27
27
|
<div class="grid">
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</
|
|
36
|
-
</div>
|
|
28
|
+
<entity-management
|
|
29
|
+
resourceName="ALL_LOG_ROUTES"
|
|
30
|
+
createEvent="EVENT_LOG_ROUTE_CREATE"
|
|
31
|
+
updateEvent="EVENT_LOG_ROUTE_UPDATE"
|
|
32
|
+
deleteEvent="EVENT_LOG_ROUTE_DELETE"
|
|
33
|
+
:columns=${() => [...LOG_ROUTE_MANAGEMENT_COLUMNS]}
|
|
34
|
+
></entity-management>
|
|
35
|
+
</div>
|
|
37
36
|
`,
|
|
38
37
|
styles: managementGridStyles,
|
|
39
38
|
})
|
|
@@ -5,22 +5,22 @@ const MS_TEAMS_ROUTE_MANAGEMENT_COLUMNS = [
|
|
|
5
5
|
{
|
|
6
6
|
field: 'NOTIFY_ROUTE_ID',
|
|
7
7
|
headerName: 'Notify Route Id',
|
|
8
|
-
flex: 1
|
|
8
|
+
flex: 1,
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
field: 'TOPIC_MATCH',
|
|
12
12
|
headerName: 'Topic Match',
|
|
13
|
-
flex: 1
|
|
13
|
+
flex: 1,
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
field: 'GATEWAY_ID',
|
|
17
17
|
headerName: 'Gateway Id',
|
|
18
|
-
flex: 1
|
|
18
|
+
flex: 1,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
field: 'URL',
|
|
22
22
|
headerName: 'Url',
|
|
23
|
-
flex: 1
|
|
23
|
+
flex: 1,
|
|
24
24
|
},
|
|
25
25
|
];
|
|
26
26
|
let MSTeamsRouteManagement = class MSTeamsRouteManagement extends FASTElement {
|
|
@@ -30,15 +30,14 @@ MSTeamsRouteManagement = __decorate([
|
|
|
30
30
|
name: 'ms-teams-route-management',
|
|
31
31
|
template: html `
|
|
32
32
|
<div class="grid">
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</
|
|
41
|
-
</div>
|
|
33
|
+
<entity-management
|
|
34
|
+
resourceName="ALL_MS_TEAMS_ROUTES"
|
|
35
|
+
createEvent="EVENT_MS_TEAMS_ROUTE_CREATE"
|
|
36
|
+
updateEvent="EVENT_MS_TEAMS_ROUTE_UPDATE"
|
|
37
|
+
deleteEvent="EVENT_MS_TEAMS_ROUTE_DELETE"
|
|
38
|
+
:columns=${() => [...MS_TEAMS_ROUTE_MANAGEMENT_COLUMNS]}
|
|
39
|
+
></entity-management>
|
|
40
|
+
</div>
|
|
42
41
|
`,
|
|
43
42
|
styles: managementGridStyles,
|
|
44
43
|
})
|
|
@@ -5,32 +5,32 @@ const SCREEN_ROUTE_MANAGEMENT_COLUMNS = [
|
|
|
5
5
|
{
|
|
6
6
|
field: 'NOTIFY_ROUTE_ID',
|
|
7
7
|
headerName: 'Notify Route Id',
|
|
8
|
-
flex: 1
|
|
8
|
+
flex: 1,
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
field: 'TOPIC_MATCH',
|
|
12
12
|
headerName: 'Topic Match',
|
|
13
|
-
flex: 1
|
|
13
|
+
flex: 1,
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
field: 'GATEWAY_ID',
|
|
17
17
|
headerName: 'Gateway Id',
|
|
18
|
-
flex: 1
|
|
18
|
+
flex: 1,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
field: 'ENTITY_ID',
|
|
22
22
|
headerName: 'Entity Id',
|
|
23
|
-
flex: 1
|
|
23
|
+
flex: 1,
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
field: 'ENTITY_ID_TYPE',
|
|
27
27
|
headerName: 'Entity Id Type',
|
|
28
|
-
flex: 1
|
|
28
|
+
flex: 1,
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
field: 'EXCLUDE_SENDER',
|
|
32
32
|
headerName: 'Exclude Sender',
|
|
33
|
-
flex: 1
|
|
33
|
+
flex: 1,
|
|
34
34
|
},
|
|
35
35
|
];
|
|
36
36
|
const SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA = {
|
|
@@ -49,18 +49,17 @@ ScreenRouteManagement = __decorate([
|
|
|
49
49
|
customElement({
|
|
50
50
|
name: 'screen-route-management',
|
|
51
51
|
template: html `
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</
|
|
63
|
-
</div>
|
|
52
|
+
<div class="grid">
|
|
53
|
+
<entity-management
|
|
54
|
+
resourceName="ALL_SCREEN_ROUTES"
|
|
55
|
+
createEvent="EVENT_SCREEN_NOTIFY_ROUTE_CREATE"
|
|
56
|
+
updateEvent="EVENT_SCREEN_NOTIFY_ROUTE_UPDATE"
|
|
57
|
+
deleteEvent="EVENT_SCREEN_NOTIFY_ROUTE_DELETE"
|
|
58
|
+
:columns=${() => [...SCREEN_ROUTE_MANAGEMENT_COLUMNS]}
|
|
59
|
+
:createFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
|
|
60
|
+
:updateFormUiSchema=${(x) => SCREEN_ROUTE_MANAGEMENT_UI_SCHEMA}
|
|
61
|
+
></entity-management>
|
|
62
|
+
</div>
|
|
64
63
|
`,
|
|
65
64
|
styles: managementGridStyles,
|
|
66
65
|
})
|
|
@@ -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 RULE_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 RULE_MANAGEMENT_COLUMNS = (context) => [
|
|
|
42
42
|
flex: 1,
|
|
43
43
|
},
|
|
44
44
|
buttonCellRenderer('Edit', (e) => context.editRule(e), editIcon),
|
|
45
|
-
buttonCellRenderer('Delete', (e) => context.deleteRule(e), deleteIcon)
|
|
45
|
+
buttonCellRenderer('Delete', (e) => context.deleteRule(e), deleteIcon),
|
|
46
46
|
];
|
|
@@ -3,7 +3,7 @@ import { customElement, FASTElement, observable } from '@microsoft/fast-element'
|
|
|
3
3
|
import { SystemService } from '../../../../../../services/system.service';
|
|
4
4
|
import { ConditionBuilderStyles as styles } from './rule-condition-builder.styles';
|
|
5
5
|
import { ConditionBuilderTemplate as template } from './rule-condition-builder.template';
|
|
6
|
-
import { RIGHT_CRITERIA } from './rule-condition-builder.types';
|
|
6
|
+
import { RIGHT_CRITERIA, } from './rule-condition-builder.types';
|
|
7
7
|
const name = 'rule-condition-builder';
|
|
8
8
|
let RuleConditionBuilder = class RuleConditionBuilder extends FASTElement {
|
|
9
9
|
constructor() {
|
|
@@ -29,7 +29,7 @@ let RuleConditionBuilder = class RuleConditionBuilder extends FASTElement {
|
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
this.leftValue = this.condition.LEFT_VALUE
|
|
31
31
|
? typeof this.condition.LEFT_VALUE === 'string'
|
|
32
|
-
? JSON.stringify(this.resourceFields.find(item => item.FIELD_NAME === this.condition.LEFT_VALUE)) // Edit
|
|
32
|
+
? JSON.stringify(this.resourceFields.find((item) => item.FIELD_NAME === this.condition.LEFT_VALUE)) // Edit
|
|
33
33
|
: JSON.stringify(this.condition.LEFT_VALUE)
|
|
34
34
|
: JSON.stringify(this.resourceFields[0]);
|
|
35
35
|
this.$emit('edit', this.condition);
|
|
@@ -1,60 +1,49 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, repeat } from
|
|
2
|
+
import { html, repeat } from '@microsoft/fast-element';
|
|
3
3
|
import { classNames } from '@microsoft/fast-web-utilities';
|
|
4
|
-
import { RIGHT_CRITERIA } from './rule-condition-builder.types';
|
|
5
4
|
import { ALL_LOGICAL_OPERATORS } from '../../../../types/logical-operator';
|
|
5
|
+
import { RIGHT_CRITERIA } from './rule-condition-builder.types';
|
|
6
6
|
export const ConditionBuilderTemplate = html `
|
|
7
7
|
<div class="condition-builder">
|
|
8
8
|
<zero-select
|
|
9
|
-
:value=${sync(x => x.leftValue)}
|
|
10
|
-
:initialValue=${sync(x => x.leftValue)}
|
|
9
|
+
:value=${sync((x) => x.leftValue)}
|
|
10
|
+
:initialValue=${sync((x) => x.leftValue)}
|
|
11
11
|
class="left-value"
|
|
12
12
|
>
|
|
13
|
-
${repeat(x => x.resourceFields, html `
|
|
14
|
-
<zero-option value=${x => JSON.stringify(x)}>${x => x.FIELD_NAME}</zero-option>
|
|
13
|
+
${repeat((x) => x.resourceFields, html `
|
|
14
|
+
<zero-option value=${(x) => JSON.stringify(x)}>${(x) => x.FIELD_NAME}</zero-option>
|
|
15
15
|
`)}
|
|
16
16
|
</zero-select>
|
|
17
17
|
|
|
18
|
-
<zero-select
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
>
|
|
22
|
-
${repeat(x => ALL_LOGICAL_OPERATORS, html `
|
|
23
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
18
|
+
<zero-select class="logical-operator" :value=${sync((x) => x.logicalOperator)}>
|
|
19
|
+
${repeat((x) => ALL_LOGICAL_OPERATORS, html `
|
|
20
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
24
21
|
`)}
|
|
25
22
|
</zero-select>
|
|
26
23
|
|
|
27
|
-
<zero-select
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
>
|
|
31
|
-
${repeat(x => Object.values(RIGHT_CRITERIA), html `
|
|
32
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
24
|
+
<zero-select class="right-criteria" :value=${sync((x) => x.rightCriteria)}>
|
|
25
|
+
${repeat((x) => Object.values(RIGHT_CRITERIA), html `
|
|
26
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
33
27
|
`)}
|
|
34
28
|
</zero-select>
|
|
35
29
|
|
|
36
30
|
<zero-text-field
|
|
37
|
-
class="right-criteria-value ${x => classNames(['display-none', x.rightCriteria !== RIGHT_CRITERIA.VALUE])}"
|
|
38
|
-
:value=${sync(x => x.rightValueText)}
|
|
31
|
+
class="right-criteria-value ${(x) => classNames(['display-none', x.rightCriteria !== RIGHT_CRITERIA.VALUE])}"
|
|
32
|
+
:value=${sync((x) => x.rightValueText)}
|
|
39
33
|
placeholder="Value"
|
|
40
34
|
autocomplete="off"
|
|
41
|
-
>
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
></zero-text-field>
|
|
36
|
+
|
|
44
37
|
<zero-select
|
|
45
|
-
class="right-criteria-user-entry ${x => classNames(['display-none', x.rightCriteria !== RIGHT_CRITERIA.FIELD])}"
|
|
46
|
-
:value=${sync(x => x.rightValueUserEntry)}
|
|
38
|
+
class="right-criteria-user-entry ${(x) => classNames(['display-none', x.rightCriteria !== RIGHT_CRITERIA.FIELD])}"
|
|
39
|
+
:value=${sync((x) => x.rightValueUserEntry)}
|
|
47
40
|
>
|
|
48
|
-
${repeat(x => x.resourceFields, html `
|
|
49
|
-
<zero-option value=${x => x.FIELD_NAME}>${x => x.FIELD_NAME}</zero-option>
|
|
41
|
+
${repeat((x) => x.resourceFields, html `
|
|
42
|
+
<zero-option value=${(x) => x.FIELD_NAME}>${(x) => x.FIELD_NAME}</zero-option>
|
|
50
43
|
`)}
|
|
51
44
|
</zero-select>
|
|
52
45
|
|
|
53
|
-
<zero-button
|
|
54
|
-
appearance="icon"
|
|
55
|
-
class="delete"
|
|
56
|
-
@click=${x => x.deleteCondition()}
|
|
57
|
-
>
|
|
46
|
+
<zero-button appearance="icon" class="delete" @click=${(x) => x.deleteCondition()}>
|
|
58
47
|
<zero-icon name="trash" part="icon"></zero-icon>
|
|
59
48
|
</zero-button>
|
|
60
49
|
</div>
|
|
@@ -8,8 +8,8 @@ import { humanize } from '../../../../../utils';
|
|
|
8
8
|
import { EXPRESSION_TYPE_PLACEHOLDER } from '../../../types/expression-type';
|
|
9
9
|
import { LOGICAL_OPERATOR_EQUALS } from '../../../types/logical-operator';
|
|
10
10
|
import { SEVERITY_INFORMATION } from '../../../types/severity';
|
|
11
|
-
import { createAssignment, createConditions, getAssignmentValue, UUIDGenerator } from '../../templates/template-dialog/template-dialog.utils';
|
|
12
|
-
import { RIGHT_CRITERIA } from './rule-condition-builder/rule-condition-builder.types';
|
|
11
|
+
import { createAssignment, createConditions, getAssignmentValue, UUIDGenerator, } from '../../templates/template-dialog/template-dialog.utils';
|
|
12
|
+
import { RIGHT_CRITERIA, } from './rule-condition-builder/rule-condition-builder.types';
|
|
13
13
|
import { RuleDialogStyles } from './rule-dialog.styles';
|
|
14
14
|
import { RuleDialogTemplate } from './rule-dialog.template';
|
|
15
15
|
import { RuleDialogMode } from './rule-dialog.types';
|
|
@@ -23,8 +23,8 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
23
23
|
this.resources = [];
|
|
24
24
|
}
|
|
25
25
|
openDialog(params) {
|
|
26
|
-
var _a, _b, _c;
|
|
27
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
var _a, _b, _c;
|
|
28
28
|
this.resources = yield this.systemService.getResources();
|
|
29
29
|
this.topics = yield this.notifyService.getNotifyRouteTopics();
|
|
30
30
|
this.ruleDialogMode = params.mode;
|
|
@@ -43,18 +43,16 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
43
43
|
this.description = rule.RULE_DESCRIPTION;
|
|
44
44
|
this.resource = rule.RULE_TABLE;
|
|
45
45
|
// Conditions
|
|
46
|
-
this.conditions = (_a = rule.RULE_EXPRESSION.CONDITIONS) === null || _a === void 0 ? void 0 : _a.map(condition => {
|
|
46
|
+
this.conditions = (_a = rule.RULE_EXPRESSION.CONDITIONS) === null || _a === void 0 ? void 0 : _a.map((condition) => {
|
|
47
47
|
var _a, _b;
|
|
48
48
|
return {
|
|
49
49
|
ID: UUIDGenerator.createUuid(),
|
|
50
50
|
LEFT_VALUE: (_a = condition.LEFT.VALUE) !== null && _a !== void 0 ? _a : condition.LEFT.NAME,
|
|
51
51
|
LOGICAL_OPERATOR: condition.OPERATION,
|
|
52
|
-
RIGHT_CRITERIA: condition.RIGHT.TYPE === 'FIELD'
|
|
53
|
-
? RIGHT_CRITERIA.FIELD
|
|
54
|
-
: RIGHT_CRITERIA.VALUE,
|
|
52
|
+
RIGHT_CRITERIA: condition.RIGHT.TYPE === 'FIELD' ? RIGHT_CRITERIA.FIELD : RIGHT_CRITERIA.VALUE,
|
|
55
53
|
RIGHT_VALUE: condition.RIGHT.TYPE === EXPRESSION_TYPE_PLACEHOLDER
|
|
56
54
|
? condition.RIGHT.KEY
|
|
57
|
-
: (_b = condition.RIGHT.VALUE) !== null && _b !== void 0 ? _b : condition.RIGHT.NAME
|
|
55
|
+
: (_b = condition.RIGHT.VALUE) !== null && _b !== void 0 ? _b : condition.RIGHT.NAME,
|
|
58
56
|
};
|
|
59
57
|
});
|
|
60
58
|
// Assignments
|
|
@@ -75,25 +73,21 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
75
73
|
}
|
|
76
74
|
submit() {
|
|
77
75
|
const rule = Object.assign(Object.assign({}, (this.ruleDialogMode === RuleDialogMode.EDIT && { DYNAMIC_RULE_ID: this.ruleId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
|
|
78
|
-
CONDITIONS: createConditions(this.conditions, null)
|
|
76
|
+
CONDITIONS: createConditions(this.conditions, null),
|
|
79
77
|
}, RESULT_EXPRESSION: {
|
|
80
78
|
ASSIGNMENTS: [
|
|
81
79
|
createAssignment('TOPIC', this.topic),
|
|
82
80
|
createAssignment('HEADER', this.header),
|
|
83
81
|
createAssignment('BODY', this.message),
|
|
84
|
-
createAssignment('NOTIFY_SEVERITY', humanize(this.severity))
|
|
85
|
-
]
|
|
82
|
+
createAssignment('NOTIFY_SEVERITY', humanize(this.severity)),
|
|
83
|
+
],
|
|
86
84
|
} });
|
|
87
85
|
switch (this.ruleDialogMode) {
|
|
88
86
|
case RuleDialogMode.CREATE:
|
|
89
|
-
this.ruleService
|
|
90
|
-
.createRule(rule)
|
|
91
|
-
.then(response => this.validateResponse(response));
|
|
87
|
+
this.ruleService.createRule(rule).then((response) => this.validateResponse(response));
|
|
92
88
|
break;
|
|
93
89
|
case RuleDialogMode.EDIT:
|
|
94
|
-
this.ruleService
|
|
95
|
-
.updateRule(rule)
|
|
96
|
-
.then(response => this.validateResponse(response));
|
|
90
|
+
this.ruleService.updateRule(rule).then((response) => this.validateResponse(response));
|
|
97
91
|
break;
|
|
98
92
|
}
|
|
99
93
|
}
|
|
@@ -131,13 +125,12 @@ let RuleDialog = class RuleDialog extends FASTElement {
|
|
|
131
125
|
newCondition() {
|
|
132
126
|
this.conditions.push(this.createEmptyCondition());
|
|
133
127
|
}
|
|
134
|
-
editCondition(editedCondition) {
|
|
135
|
-
}
|
|
128
|
+
editCondition(editedCondition) { }
|
|
136
129
|
deleteCondition(deletedCondition) {
|
|
137
130
|
if (this.conditions.length <= 1) {
|
|
138
131
|
return;
|
|
139
132
|
}
|
|
140
|
-
this.conditions = this.conditions.filter(condition => condition !== deletedCondition);
|
|
133
|
+
this.conditions = this.conditions.filter((condition) => condition !== deletedCondition);
|
|
141
134
|
}
|
|
142
135
|
// #endregion
|
|
143
136
|
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
|
.rule-dialog-top {
|
|
@@ -15,9 +15,10 @@ 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
|
.rule-dialog-bottom {
|
|
22
23
|
display: flex;
|
|
23
24
|
}
|
|
@@ -53,12 +54,11 @@ export const RuleDialogStyles = css `
|
|
|
53
54
|
width: 100%;
|
|
54
55
|
gap: calc(var(--design-unit) * 2px);
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
|
|
57
58
|
.conditions {
|
|
58
59
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
59
60
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
60
61
|
display: flex;
|
|
61
|
-
flex-direction: column;
|
|
62
62
|
padding: calc(var(--design-unit) * 2px);
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
}
|
|
@@ -66,11 +66,11 @@ export const RuleDialogStyles = css `
|
|
|
66
66
|
.condition {
|
|
67
67
|
gap: 0;
|
|
68
68
|
flex-direction: column;
|
|
69
|
-
margin-bottom:
|
|
69
|
+
margin-bottom: 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
zero-button {
|
|
73
|
-
margin:
|
|
73
|
+
margin: 0;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
zero-select {
|
|
@@ -84,9 +84,11 @@ export const RuleDialogStyles = css `
|
|
|
84
84
|
.horizontal {
|
|
85
85
|
flex-direction: row;
|
|
86
86
|
}
|
|
87
|
+
|
|
87
88
|
.destination {
|
|
88
89
|
align-self: center;
|
|
89
90
|
}
|
|
91
|
+
|
|
90
92
|
.topic {
|
|
91
93
|
min-width: revert-layer;
|
|
92
94
|
}
|
|
@@ -1,75 +1,59 @@
|
|
|
1
1
|
import { sync } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { html, ref, repeat } from
|
|
3
|
-
import { ALL_SEVERITIES } from '../../../types/severity';
|
|
2
|
+
import { html, ref, repeat } from '@microsoft/fast-element';
|
|
4
3
|
import { eventDetail } from '../../../../../utils/eventDetail';
|
|
4
|
+
import { ALL_SEVERITIES } from '../../../types/severity';
|
|
5
5
|
export const RuleDialogTemplate = html `
|
|
6
|
-
<zero-modal
|
|
7
|
-
|
|
8
|
-
class="rule-dialog"
|
|
9
|
-
:onCloseCallback=${(x) => () => x.close()}
|
|
10
|
-
>
|
|
11
|
-
<div slot="top" class="rule-dialog-top">
|
|
12
|
-
${x => x.ruleDialogTitle}
|
|
13
|
-
</div>
|
|
6
|
+
<zero-modal ${ref('dialog')} class="rule-dialog" :onCloseCallback=${(x) => () => x.close()}>
|
|
7
|
+
<div slot="top" class="rule-dialog-top">${(x) => x.ruleDialogTitle}</div>
|
|
14
8
|
|
|
15
9
|
<div class="rule-dialog-content">
|
|
16
10
|
<div class="content-row">
|
|
17
11
|
<div class="control">
|
|
18
12
|
<label>Name</label>
|
|
19
13
|
<zero-text-field
|
|
20
|
-
:value=${sync(x => x.name)}
|
|
14
|
+
:value=${sync((x) => x.name)}
|
|
21
15
|
autofocus
|
|
22
16
|
autocomplete="off"
|
|
23
|
-
>
|
|
24
|
-
</zero-text-field>
|
|
17
|
+
></zero-text-field>
|
|
25
18
|
</div>
|
|
26
19
|
|
|
27
20
|
<div class="control">
|
|
28
21
|
<label>Description</label>
|
|
29
22
|
<zero-text-field
|
|
30
|
-
:value=${sync(x => x.description)}
|
|
23
|
+
:value=${sync((x) => x.description)}
|
|
31
24
|
autocomplete="off"
|
|
32
|
-
>
|
|
33
|
-
</zero-text-field>
|
|
25
|
+
></zero-text-field>
|
|
34
26
|
</div>
|
|
35
27
|
</div>
|
|
36
28
|
|
|
37
29
|
<div class="content-row">
|
|
38
30
|
<div class="control">
|
|
39
31
|
<label>Resource</label>
|
|
40
|
-
<zero-select
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
>
|
|
44
|
-
${repeat(x => x.resources, html `
|
|
45
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
32
|
+
<zero-select :value=${sync((x) => x.resource)} position="below">
|
|
33
|
+
${repeat((x) => x.resources, html `
|
|
34
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
46
35
|
`)}
|
|
47
36
|
</zero-select>
|
|
48
37
|
</div>
|
|
49
38
|
|
|
50
39
|
<div class="control">
|
|
51
40
|
<label>Topic</label>
|
|
52
|
-
<zero-select
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
${repeat(x => x.topics, html `
|
|
56
|
-
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
41
|
+
<zero-select :value=${sync((x) => x.topic)}>
|
|
42
|
+
${repeat((x) => x.topics, html `
|
|
43
|
+
<zero-option value=${(x) => x}>${(x) => x}</zero-option>
|
|
57
44
|
`)}
|
|
58
45
|
</zero-select>
|
|
59
46
|
</div>
|
|
60
|
-
|
|
47
|
+
|
|
61
48
|
<div class="control">
|
|
62
49
|
<label>Severity</label>
|
|
63
|
-
<zero-select
|
|
64
|
-
:value=${sync(x => x.severity)}
|
|
65
|
-
>
|
|
50
|
+
<zero-select :value=${sync((x) => x.severity)}>
|
|
66
51
|
<options-datasource
|
|
67
|
-
value-field=
|
|
68
|
-
label-field=
|
|
69
|
-
option-element=
|
|
70
|
-
:data=${_ => ALL_SEVERITIES.map(value => ({ value, label: value }))}
|
|
71
|
-
>
|
|
72
|
-
</options-datasource>
|
|
52
|
+
value-field="value"
|
|
53
|
+
label-field="value"
|
|
54
|
+
option-element="zero-option"
|
|
55
|
+
:data=${(_) => ALL_SEVERITIES.map((value) => ({ value, label: value }))}
|
|
56
|
+
></options-datasource>
|
|
73
57
|
</zero-select>
|
|
74
58
|
</div>
|
|
75
59
|
</div>
|
|
@@ -77,20 +61,12 @@ export const RuleDialogTemplate = html `
|
|
|
77
61
|
<div class="content-row">
|
|
78
62
|
<div class="control">
|
|
79
63
|
<label>Header</label>
|
|
80
|
-
<zero-text-field
|
|
81
|
-
:value=${sync(x => x.header)}
|
|
82
|
-
autocomplete="off"
|
|
83
|
-
>
|
|
84
|
-
</zero-text-field>
|
|
64
|
+
<zero-text-field :value=${sync((x) => x.header)} autocomplete="off"></zero-text-field>
|
|
85
65
|
</div>
|
|
86
|
-
|
|
66
|
+
|
|
87
67
|
<div class="control">
|
|
88
68
|
<label>Message</label>
|
|
89
|
-
<zero-text-field
|
|
90
|
-
:value=${sync(x => x.message)}
|
|
91
|
-
autocomplete="off"
|
|
92
|
-
>
|
|
93
|
-
</zero-text-field>
|
|
69
|
+
<zero-text-field :value=${sync((x) => x.message)} autocomplete="off"></zero-text-field>
|
|
94
70
|
</div>
|
|
95
71
|
</div>
|
|
96
72
|
|
|
@@ -98,21 +74,18 @@ export const RuleDialogTemplate = html `
|
|
|
98
74
|
<label>Condition(s)</label>
|
|
99
75
|
<div class="conditions">
|
|
100
76
|
<div class="content-row condition">
|
|
101
|
-
${repeat(x => x.conditions, html `
|
|
77
|
+
${repeat((x) => x.conditions, html `
|
|
102
78
|
<rule-condition-builder
|
|
103
79
|
:resource=${(x, c) => c.parent.resource}
|
|
104
|
-
:condition=${x => x}
|
|
80
|
+
:condition=${(x) => x}
|
|
105
81
|
@edit=${(x, c) => c.parent.editCondition(eventDetail(c))}
|
|
106
82
|
@delete=${(x, c) => c.parent.deleteCondition(eventDetail(c))}
|
|
107
|
-
>
|
|
108
|
-
</rule-condition-builder>
|
|
83
|
+
></rule-condition-builder>
|
|
109
84
|
`)}
|
|
110
85
|
</div>
|
|
111
86
|
|
|
112
87
|
<div class="content-row">
|
|
113
|
-
<zero-button
|
|
114
|
-
@click=${x => x.newCondition()}
|
|
115
|
-
>
|
|
88
|
+
<zero-button @click=${(x) => x.newCondition()}>
|
|
116
89
|
<zero-icon name="plus"></zero-icon>
|
|
117
90
|
Condition
|
|
118
91
|
</zero-button>
|
|
@@ -122,12 +95,7 @@ export const RuleDialogTemplate = html `
|
|
|
122
95
|
</div>
|
|
123
96
|
|
|
124
97
|
<div slot="bottom" class="rule-dialog-bottom">
|
|
125
|
-
<zero-button
|
|
126
|
-
appearance="accent"
|
|
127
|
-
@click=${x => x.submit()}
|
|
128
|
-
>
|
|
129
|
-
Submit
|
|
130
|
-
</zero-button>
|
|
98
|
+
<zero-button appearance="accent" @click=${(x) => x.submit()}>Submit</zero-button>
|
|
131
99
|
</div>
|
|
132
100
|
</zero-modal>
|
|
133
101
|
`;
|