@genesislcap/pbc-notify-ui 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.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.map +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.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +2 -2
- 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.map +1 -1
- package/dist/esm/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.js +0 -1
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.js +23 -14
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +8 -10
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.js +0 -4
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.js +0 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +7 -7
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.js +25 -16
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +8 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-parameter.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAO3E,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"rule-parameter.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-inbox/components/inbox-subscription/rule-parameter/rule-parameter.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAO3E,eAAO,MAAM,qBAAqB,EAAE,YAqFnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,gBAAgB,iDAoE5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,kBAAkB,EAAE,YAyIhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAM3E,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"condition-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/condition-builder/condition-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,yBAAyB,CAAC;AAM3E,eAAO,MAAM,wBAAwB,EAAE,YAgEtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA2B,MAAM,yBAAyB,CAAC;AAMhF,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"parameter-builder.template.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/parameter-builder/parameter-builder.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA2B,MAAM,yBAAyB,CAAC;AAMhF,eAAO,MAAM,wBAAwB,EAAE,YA8FtC,CAAC"}
|
|
@@ -5,10 +5,10 @@ import { Field, SystemService } from '../../../../../services/system.service';
|
|
|
5
5
|
import { TemplateService } from '../../../../../services/template.service';
|
|
6
6
|
import { ConditionBuilderEntity, ParameterBuilderEntity, TemplateDialogMode } from './template-dialog.types';
|
|
7
7
|
export declare class TemplateDialog extends FASTElement {
|
|
8
|
-
|
|
8
|
+
templateService: TemplateService;
|
|
9
9
|
systemService: SystemService;
|
|
10
10
|
notifyService: NotifyService;
|
|
11
|
-
|
|
11
|
+
templateId: string;
|
|
12
12
|
name: string;
|
|
13
13
|
description: string;
|
|
14
14
|
header: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAO3E,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAY,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAKvH,qBAKa,cAAe,SAAQ,WAAW;IAE5B,
|
|
1
|
+
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAO3E,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAY,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAKvH,qBAKa,cAAe,SAAQ,WAAW;IAE5B,eAAe,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAEhC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,MAAC;IACP,OAAO,MAAC;IACR,QAAQ,EAAE,MAAM,CAAM;IACtB,KAAK,MAAC;IACN,QAAQ,MAAC;IAET,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAC/C,UAAU,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAM;IAE/C,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAE3B,kBAAkB,EAAE,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;IAE7F,MAAM,EAAE,MAAM,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,GAAG;IAmEnC,IAAI,mBAAmB,IAAI,MAAM,CAKhC;IAED,MAAM;IAuCN,gBAAgB,CAAC,QAAQ,KAAA;IAoBzB,KAAK;IAkBL,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAGrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAYxD,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAWlD,eAAe;CAItB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,oBAAoB,iDAuEhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAK1E,eAAO,MAAM,sBAAsB,EAAE,YAkKpC,CAAC"}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
const modalWidthPx = 940;
|
|
3
|
-
const
|
|
3
|
+
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
7
|
margin: 0px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.rule-dialog-
|
|
10
|
+
.rule-dialog-top {
|
|
11
11
|
font-weight: bold;
|
|
12
12
|
align-self: center;
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const bottom = css `
|
|
16
|
+
zero-modal::part(bottom) {
|
|
17
|
+
padding: calc(var(--design-unit) * 4px);
|
|
18
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);;
|
|
19
|
+
margin: 0px;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
margin-left: auto;
|
|
23
|
-
margin-bottom: 0px;
|
|
21
|
+
.rule-dialog-bottom {
|
|
22
|
+
display: flex;
|
|
24
23
|
}
|
|
25
24
|
`;
|
|
26
25
|
export const RuleDialogStyles = css `
|
|
27
|
-
${
|
|
28
|
-
${
|
|
26
|
+
${top}
|
|
27
|
+
${bottom}
|
|
29
28
|
|
|
30
29
|
zero-modal::part(dialog) {
|
|
31
30
|
padding: 0;
|
|
@@ -39,8 +38,8 @@ export const RuleDialogStyles = css `
|
|
|
39
38
|
width: ${String(modalWidthPx)}px;
|
|
40
39
|
gap: calc(var(--design-unit) * 3px);
|
|
41
40
|
padding: calc(var(--design-unit) * 4px);
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
max-height: 380px;
|
|
42
|
+
overflow-y: scroll;
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
.content-row {
|
|
@@ -81,4 +80,14 @@ export const RuleDialogStyles = css `
|
|
|
81
80
|
zero-select::part(listbox) {
|
|
82
81
|
max-height: 160px;
|
|
83
82
|
}
|
|
83
|
+
|
|
84
|
+
.horizontal {
|
|
85
|
+
flex-direction: row;
|
|
86
|
+
}
|
|
87
|
+
.destination {
|
|
88
|
+
align-self: center;
|
|
89
|
+
}
|
|
90
|
+
.topic {
|
|
91
|
+
min-width: revert-layer;
|
|
92
|
+
}
|
|
84
93
|
`;
|
|
@@ -8,7 +8,7 @@ export const RuleDialogTemplate = html `
|
|
|
8
8
|
class="rule-dialog"
|
|
9
9
|
:onCloseCallback=${(x) => () => x.close()}
|
|
10
10
|
>
|
|
11
|
-
<div slot="top" class="rule-dialog-
|
|
11
|
+
<div slot="top" class="rule-dialog-top">
|
|
12
12
|
${x => x.ruleDialogTitle}
|
|
13
13
|
</div>
|
|
14
14
|
|
|
@@ -121,15 +121,13 @@ export const RuleDialogTemplate = html `
|
|
|
121
121
|
</div>
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
|
-
<div class="rule-dialog-
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</zero-button>
|
|
132
|
-
</div>
|
|
124
|
+
<div slot="bottom" class="rule-dialog-bottom">
|
|
125
|
+
<zero-button
|
|
126
|
+
appearance="accent"
|
|
127
|
+
@click=${x => x.submit()}
|
|
128
|
+
>
|
|
129
|
+
Submit
|
|
130
|
+
</zero-button>
|
|
133
131
|
</div>
|
|
134
132
|
</zero-modal>
|
|
135
133
|
`;
|
|
@@ -7,7 +7,6 @@ export const ConditionBuilderTemplate = html `
|
|
|
7
7
|
<zero-select
|
|
8
8
|
:value=${sync(x => x.leftValue)}
|
|
9
9
|
class="left-value"
|
|
10
|
-
position="below"
|
|
11
10
|
>
|
|
12
11
|
${repeat(x => x.leftValueItems, html `
|
|
13
12
|
<zero-option value=${x => JSON.stringify(x)}>${x => x.FIELD_NAME}</zero-option>
|
|
@@ -17,7 +16,6 @@ export const ConditionBuilderTemplate = html `
|
|
|
17
16
|
<zero-select
|
|
18
17
|
class="logical-operator"
|
|
19
18
|
:value=${sync(x => x.logicalOperator)}
|
|
20
|
-
position="below"
|
|
21
19
|
>
|
|
22
20
|
${repeat(x => ALL_LOGICAL_OPERATORS, html `
|
|
23
21
|
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
@@ -27,7 +25,6 @@ export const ConditionBuilderTemplate = html `
|
|
|
27
25
|
<zero-select
|
|
28
26
|
class="right-criteria"
|
|
29
27
|
:value=${sync(x => x.rightCriteria)}
|
|
30
|
-
position="below"
|
|
31
28
|
>
|
|
32
29
|
${repeat(x => ALL_RIGHT_CRITERIAS, html `
|
|
33
30
|
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
@@ -47,7 +44,6 @@ export const ConditionBuilderTemplate = html `
|
|
|
47
44
|
<zero-select
|
|
48
45
|
class="right-criteria-user-entry"
|
|
49
46
|
:value=${sync(x => x.rightValueUserEntry)}
|
|
50
|
-
position="below"
|
|
51
47
|
>
|
|
52
48
|
${x => x.rightValueItemsProperty}
|
|
53
49
|
</zero-select>
|
|
@@ -22,7 +22,6 @@ export const ParameterBuilderTemplate = html `
|
|
|
22
22
|
id="param-source-type"
|
|
23
23
|
:value=${sync(x => x.sourceType)}
|
|
24
24
|
class="param-source-type"
|
|
25
|
-
position="below"
|
|
26
25
|
>
|
|
27
26
|
${repeat(x => ALL_PARAM_SOURCE_TYPES, html `
|
|
28
27
|
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
@@ -65,7 +64,6 @@ export const ParameterBuilderTemplate = html `
|
|
|
65
64
|
id="param-type"
|
|
66
65
|
:value=${sync(x => x.type)}
|
|
67
66
|
class="param-type"
|
|
68
|
-
position="below"
|
|
69
67
|
>
|
|
70
68
|
${repeat(x => ALL_PARAM_TYPES, html `
|
|
71
69
|
<zero-option value=${x => x}>${x => x}</zero-option>
|
|
@@ -39,7 +39,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
39
39
|
break;
|
|
40
40
|
case TemplateDialogMode.EDIT:
|
|
41
41
|
const ruleTemplate = params.data;
|
|
42
|
-
this.
|
|
42
|
+
this.templateId = ruleTemplate.DYNAMIC_RULE_ID;
|
|
43
43
|
this.name = ruleTemplate.RULE_NAME;
|
|
44
44
|
this.description = ruleTemplate.RULE_DESCRIPTION;
|
|
45
45
|
this.resource = ruleTemplate.RULE_TABLE;
|
|
@@ -93,7 +93,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
93
93
|
return `${mode} Template`;
|
|
94
94
|
}
|
|
95
95
|
submit() {
|
|
96
|
-
const template = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && { DYNAMIC_RULE_ID: this.
|
|
96
|
+
const template = Object.assign(Object.assign({}, (this.templateDialogMode === TemplateDialogMode.EDIT && { DYNAMIC_RULE_ID: this.templateId })), { RULE_NAME: this.name, RULE_DESCRIPTION: this.description, RULE_TABLE: this.resource, RULE_EXPRESSION: {
|
|
97
97
|
CONDITIONS: createConditions(this.conditions, this.parameters)
|
|
98
98
|
}, RAW_RULE_EXPRESSION: null, RESULT_EXPRESSION: {
|
|
99
99
|
ASSIGNMENTS: [
|
|
@@ -105,12 +105,12 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
105
105
|
}, PARAMETER_DETAILS: createParameterDetails(this.parameters), RULE_EXECUTION_STRATEGY: 'UNLIMITED' });
|
|
106
106
|
switch (this.templateDialogMode) {
|
|
107
107
|
case TemplateDialogMode.CREATE:
|
|
108
|
-
this.
|
|
108
|
+
this.templateService
|
|
109
109
|
.createRuleTemplate(template)
|
|
110
110
|
.then(response => this.validateResponse(response));
|
|
111
111
|
break;
|
|
112
112
|
case TemplateDialogMode.EDIT:
|
|
113
|
-
this.
|
|
113
|
+
this.templateService
|
|
114
114
|
.editRuleTemplate(template)
|
|
115
115
|
.then(response => this.validateResponse(response));
|
|
116
116
|
break;
|
|
@@ -137,7 +137,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
137
137
|
}
|
|
138
138
|
close() {
|
|
139
139
|
this.dialog.close();
|
|
140
|
-
this.
|
|
140
|
+
this.templateId = null;
|
|
141
141
|
this.name = null;
|
|
142
142
|
this.description = null;
|
|
143
143
|
this.header = null;
|
|
@@ -187,7 +187,7 @@ let TemplateDialog = class TemplateDialog extends FASTElement {
|
|
|
187
187
|
};
|
|
188
188
|
__decorate([
|
|
189
189
|
TemplateService
|
|
190
|
-
], TemplateDialog.prototype, "
|
|
190
|
+
], TemplateDialog.prototype, "templateService", void 0);
|
|
191
191
|
__decorate([
|
|
192
192
|
SystemService
|
|
193
193
|
], TemplateDialog.prototype, "systemService", void 0);
|
|
@@ -196,7 +196,7 @@ __decorate([
|
|
|
196
196
|
], TemplateDialog.prototype, "notifyService", void 0);
|
|
197
197
|
__decorate([
|
|
198
198
|
observable
|
|
199
|
-
], TemplateDialog.prototype, "
|
|
199
|
+
], TemplateDialog.prototype, "templateId", void 0);
|
|
200
200
|
__decorate([
|
|
201
201
|
observable
|
|
202
202
|
], TemplateDialog.prototype, "name", void 0);
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
2
|
const modalWidthPx = 940;
|
|
3
|
-
const
|
|
3
|
+
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
7
|
margin: 0px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.template-dialog-
|
|
10
|
+
.template-dialog-top {
|
|
11
11
|
font-weight: bold;
|
|
12
12
|
align-self: center;
|
|
13
13
|
}
|
|
14
14
|
`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const bottom = css `
|
|
16
|
+
zero-modal::part(bottom) {
|
|
17
|
+
padding: calc(var(--design-unit) * 4px);
|
|
18
|
+
border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);;
|
|
19
|
+
margin: 0px;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
.template-dialog-
|
|
22
|
-
|
|
23
|
-
margin-bottom: 0px;
|
|
22
|
+
.template-dialog-bottom {
|
|
23
|
+
display: flex;
|
|
24
24
|
}
|
|
25
25
|
`;
|
|
26
26
|
export const TemplateDialogStyles = css `
|
|
27
|
-
${
|
|
28
|
-
${
|
|
27
|
+
${top}
|
|
28
|
+
${bottom}
|
|
29
29
|
|
|
30
30
|
zero-modal::part(dialog) {
|
|
31
31
|
padding: 0;
|
|
@@ -35,9 +35,10 @@ export const TemplateDialogStyles = css `
|
|
|
35
35
|
|
|
36
36
|
.template-dialog-content {
|
|
37
37
|
display: flex;
|
|
38
|
-
justify-content: center;
|
|
39
38
|
flex-direction: column;
|
|
40
39
|
width: ${String(modalWidthPx)}px;
|
|
40
|
+
max-height: 500px;
|
|
41
|
+
overflow-y: scroll;
|
|
41
42
|
gap: calc(var(--design-unit) * 3px);
|
|
42
43
|
padding: calc(var(--design-unit) * 4px);
|
|
43
44
|
}
|
|
@@ -56,15 +57,11 @@ export const TemplateDialogStyles = css `
|
|
|
56
57
|
|
|
57
58
|
.parameters,
|
|
58
59
|
.conditions {
|
|
59
|
-
height: 150px;
|
|
60
|
-
max-height: 200px;
|
|
61
60
|
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
62
61
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
63
62
|
display: flex;
|
|
64
63
|
flex-direction: column;
|
|
65
64
|
padding: calc(var(--design-unit) * 2px);
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
overflow-y: scroll;
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
.parameter,
|
|
@@ -85,4 +82,16 @@ export const TemplateDialogStyles = css `
|
|
|
85
82
|
zero-select::part(listbox) {
|
|
86
83
|
max-height: 160px;
|
|
87
84
|
}
|
|
85
|
+
|
|
86
|
+
.horizontal {
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.destination {
|
|
91
|
+
align-self: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.topic {
|
|
95
|
+
min-width: revert-layer;
|
|
96
|
+
}
|
|
88
97
|
`;
|
|
@@ -8,7 +8,7 @@ export const TemplateDialogTemplate = html `
|
|
|
8
8
|
class="template-dialog"
|
|
9
9
|
:onCloseCallback=${(x) => () => x.close()}
|
|
10
10
|
>
|
|
11
|
-
<div slot="top" class="template-dialog-
|
|
11
|
+
<div slot="top" class="template-dialog-top">
|
|
12
12
|
${x => x.templateDialogTitle}
|
|
13
13
|
</div>
|
|
14
14
|
|
|
@@ -143,15 +143,13 @@ export const TemplateDialogTemplate = html `
|
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
|
-
<div class="template-dialog-
|
|
147
|
-
<
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
</zero-button>
|
|
154
|
-
</div>
|
|
146
|
+
<div slot="bottom" class="template-dialog-bottom">
|
|
147
|
+
<zero-button
|
|
148
|
+
appearance="accent"
|
|
149
|
+
@click=${x => x.submit()}
|
|
150
|
+
>
|
|
151
|
+
Submit
|
|
152
|
+
</zero-button>
|
|
155
153
|
</div>
|
|
156
154
|
</zero-modal>
|
|
157
155
|
`;
|
package/package.json
CHANGED