@genesislcap/pbc-notify-ui 1.0.2 → 1.0.3
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-notification-dashboard/components/rule-dialog/rule-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts +6 -0
- package/dist/dts/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/management/rule-template-management.d.ts.map +1 -1
- package/dist/esm/components/foundation-notification-dashboard/components/condition-builder/condition-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/parameter-builder/parameter-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-condition-builder/rule-condition-builder.styles.js +4 -4
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.js +32 -12
- package/dist/esm/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.js +32 -26
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.js +30 -42
- package/dist/esm/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.js +5 -4
- package/dist/esm/components/foundation-notification-dashboard/management/management.styles.js +9 -3
- package/dist/esm/components/foundation-notification-dashboard/notification-dashboard.styles.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"rule-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,iDAoF5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,kBAAkB,EAAE,YA+IhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/template-dialog/template-dialog.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,iDA2FhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAM1E,eAAO,MAAM,sBAAsB,EAAE,YAkMpC,CAAC"}
|
|
@@ -2,6 +2,12 @@ export declare enum TemplateDialogMode {
|
|
|
2
2
|
CREATE = 0,
|
|
3
3
|
EDIT = 1
|
|
4
4
|
}
|
|
5
|
+
export type TemplateDialogParams = {
|
|
6
|
+
mode: typeof TemplateDialogMode.CREATE;
|
|
7
|
+
} | {
|
|
8
|
+
mode: typeof TemplateDialogMode.EDIT;
|
|
9
|
+
data: RuleTemplateEntity;
|
|
10
|
+
};
|
|
5
11
|
export type RuleTemplateEntity = {
|
|
6
12
|
DYNAMIC_RULE_ID?: string;
|
|
7
13
|
RULE_NAME: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KACxB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAA"}
|
|
1
|
+
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GAAG;IACF,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KACxB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAA"}
|
package/dist/dts/components/foundation-notification-dashboard/management/management.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"management.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/management.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,iDAIhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"management.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/management.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,iDAIhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,iDA0BnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-template-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,
|
|
1
|
+
{"version":3,"file":"rule-template-management.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/management/rule-template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAqB,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAuB,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAK5G,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAuD/E,qBAkCa,sBAAuB,SAAQ,WAAW;IAEhC,mBAAmB,EAAE,4BAA4B,CAAC;IACvE,cAAc,EAAE,cAAc,CAAC;IAE/B,kBAAkB;IAIZ,YAAY,CAAC,GAAG,KAAA;IAKtB,cAAc,CAAC,GAAG,KAAA;CAmBnB"}
|
|
@@ -2,8 +2,8 @@ import { css } from '@microsoft/fast-element';
|
|
|
2
2
|
export const ConditionBuilderStyles = css `
|
|
3
3
|
.condition-builder {
|
|
4
4
|
display: flex;
|
|
5
|
-
gap:
|
|
6
|
-
margin-bottom:
|
|
5
|
+
gap: calc(var(--design-unit) * 2px);
|
|
6
|
+
margin-bottom: calc(var(--design-unit) * 2px);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
zero-button {
|
|
@@ -12,11 +12,11 @@ export const ConditionBuilderStyles = css `
|
|
|
12
12
|
|
|
13
13
|
.delete {
|
|
14
14
|
margin: 0px;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: var(--neutral-layer-1);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.delete:hover {
|
|
19
|
-
background-color:
|
|
19
|
+
background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
zero-text-field {
|
|
@@ -3,8 +3,8 @@ const PARAM_SOURCE_WIDTH = '200';
|
|
|
3
3
|
export const ParameterBuilderStyles = css `
|
|
4
4
|
.parameter-builder {
|
|
5
5
|
display: flex;
|
|
6
|
-
gap:
|
|
7
|
-
margin-bottom:
|
|
6
|
+
gap: calc(var(--design-unit) * 2px);
|
|
7
|
+
margin-bottom: calc(var(--design-unit) * 2px);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
zero-button {
|
|
@@ -13,11 +13,11 @@ export const ParameterBuilderStyles = css `
|
|
|
13
13
|
|
|
14
14
|
.delete {
|
|
15
15
|
margin: 0px;
|
|
16
|
-
background-color:
|
|
16
|
+
background-color: var(--neutral-layer-1);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.delete:hover {
|
|
20
|
-
background-color:
|
|
20
|
+
background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
zero-text-field {
|
|
@@ -2,8 +2,8 @@ import { css } from '@microsoft/fast-element';
|
|
|
2
2
|
export const ConditionBuilderStyles = css `
|
|
3
3
|
.condition-builder {
|
|
4
4
|
display: flex;
|
|
5
|
-
gap:
|
|
6
|
-
margin-bottom:
|
|
5
|
+
gap: calc(var(--design-unit) * 2px);
|
|
6
|
+
margin-bottom: calc(var(--design-unit) * 2px);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
zero-button {
|
|
@@ -12,11 +12,11 @@ export const ConditionBuilderStyles = css `
|
|
|
12
12
|
|
|
13
13
|
.delete {
|
|
14
14
|
margin: 0px;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: var(--neutral-layer-1);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.delete:hover {
|
|
19
|
-
background-color:
|
|
19
|
+
background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 89%);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
zero-text-field {
|
|
@@ -16,43 +16,52 @@ export const ruleDialogStyles = css `
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
width: ${String(modalWidthPx)}px;
|
|
18
18
|
max-height: 800px;
|
|
19
|
-
gap:
|
|
19
|
+
gap: calc(var(--design-unit) * 3px);
|
|
20
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.content-row {
|
|
23
24
|
display: flex;
|
|
24
|
-
gap:
|
|
25
|
+
gap: calc(var(--design-unit) * 3px);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.col-4 {
|
|
28
29
|
display: grid;
|
|
29
|
-
grid-template-columns: repeat(
|
|
30
|
-
gap:
|
|
30
|
+
grid-template-columns: repeat(2, calc(${String(modalWidthPx - 4 * 3)}px / 2));
|
|
31
|
+
gap: calc(var(--design-unit) * 3px);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
.control {
|
|
34
35
|
display: flex;
|
|
35
36
|
flex-direction: column;
|
|
36
37
|
width: 100%;
|
|
37
|
-
gap:
|
|
38
|
+
gap: calc(var(--design-unit) * 2px);
|
|
38
39
|
}
|
|
39
|
-
|
|
40
40
|
.conditions {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
border
|
|
41
|
+
height: 150px;
|
|
42
|
+
max-height: 200px;
|
|
43
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
44
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
44
45
|
display: flex;
|
|
45
46
|
flex-direction: column;
|
|
46
|
-
padding:
|
|
47
|
+
padding: calc(var(--design-unit) * 2px);
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
overflow-y: scroll;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
.template-dialog-footer {
|
|
50
|
-
margin-top:
|
|
53
|
+
margin-top: calc(var(--design-unit) * 2px);
|
|
51
54
|
display: flex;
|
|
55
|
+
padding: calc(var(--design-unit) * 4px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.template-dialog-footer .content-row {
|
|
59
|
+
margin-left: auto;
|
|
60
|
+
margin-bottom: 0px;
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
.condition {
|
|
55
|
-
gap:
|
|
64
|
+
gap: 0;
|
|
56
65
|
flex-direction: column;
|
|
57
66
|
}
|
|
58
67
|
|
|
@@ -60,6 +69,17 @@ export const ruleDialogStyles = css `
|
|
|
60
69
|
min-width: auto;
|
|
61
70
|
}
|
|
62
71
|
|
|
72
|
+
zero-modal::part(dialog) {
|
|
73
|
+
padding: 0;
|
|
74
|
+
background: var(--neutral-layer-4);
|
|
75
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
zero-modal::part(top) {
|
|
79
|
+
padding: calc(var(--design-unit) * 4px);
|
|
80
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
81
|
+
}
|
|
82
|
+
|
|
63
83
|
zero-select::part(control) {
|
|
64
84
|
display: flex;
|
|
65
85
|
width: 100%;
|
|
@@ -28,35 +28,40 @@ export const ruleDialogTemplate = html `
|
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<div class="col-4">
|
|
31
|
-
<div class="
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
<div class="content-row">
|
|
32
|
+
<div class="control">
|
|
33
|
+
<label>Resource</label>
|
|
34
|
+
<zero-select
|
|
35
|
+
:value=${sync(x => x.resource)}
|
|
36
|
+
position="below"
|
|
37
|
+
>
|
|
38
|
+
${repeat(x => x.resources, html `<zero-option value=${x => x}>${x => x}</zero-option>`)}
|
|
39
|
+
</zero-select>
|
|
40
|
+
</div>
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
<div class="control">
|
|
43
|
+
<label>Table ID</label>
|
|
44
|
+
<zero-select :value=${sync(x => x.tableId)}>
|
|
45
|
+
${repeat(x => x.resourceFields, html `<zero-option value=${x => x.FIELD_NAME}>${x => x.FIELD_NAME}</zero-option>`)}
|
|
46
|
+
</zero-select>
|
|
47
|
+
</div>
|
|
46
48
|
</div>
|
|
47
49
|
|
|
48
|
-
<div class="
|
|
49
|
-
<label>Topic</label>
|
|
50
|
-
<zero-select :value=${sync(x => x.topic)}>
|
|
51
|
-
${repeat(x => x.topics, html `<zero-option value=${x => x}>${x => x}</zero-option>`)}
|
|
52
|
-
</zero-select>
|
|
53
|
-
</div>
|
|
50
|
+
<div class="content-row">
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
<div class="control">
|
|
53
|
+
<label>Topic</label>
|
|
54
|
+
<zero-select :value=${sync(x => x.topic)}>
|
|
55
|
+
${repeat(x => x.topics, html `<zero-option value=${x => x}>${x => x}</zero-option>`)}
|
|
56
|
+
</zero-select>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div class="control">
|
|
60
|
+
<label>Execution Strategy</label>
|
|
61
|
+
<zero-select :value=${sync(x => x.executionStrategy)}>
|
|
62
|
+
${repeat(x => ALL_RULE_EXECUTION_STRATEGIES, html `<zero-option value=${x => x}>${x => x}</zero-option>`)}
|
|
63
|
+
</zero-select>
|
|
64
|
+
</div>
|
|
60
65
|
</div>
|
|
61
66
|
</div>
|
|
62
67
|
|
|
@@ -113,8 +118,9 @@ export const ruleDialogTemplate = html `
|
|
|
113
118
|
</div>
|
|
114
119
|
|
|
115
120
|
<div class="template-dialog-footer">
|
|
116
|
-
<div class="content-row"
|
|
121
|
+
<div class="content-row">
|
|
117
122
|
<zero-button
|
|
123
|
+
appearance="accent"
|
|
118
124
|
@click=${x => x.submit()}
|
|
119
125
|
>
|
|
120
126
|
Submit
|
|
@@ -1,55 +1,26 @@
|
|
|
1
1
|
import { css } from '@microsoft/fast-element';
|
|
2
|
+
const modalWidthPx = 940;
|
|
2
3
|
export const TemplateDialogStyles = css `
|
|
3
|
-
fast-dialog.template-dialog::part(control) {
|
|
4
|
-
background-color: #1f2126;
|
|
5
|
-
--dialog-height: none;
|
|
6
|
-
--dialog-width: none;
|
|
7
|
-
border: 1px solid #2e3339;
|
|
8
|
-
border-radius: 4px;
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.template-dialog-header {
|
|
13
|
-
display: flex;
|
|
14
|
-
border-bottom: 1px solid rgb(46, 51, 57);
|
|
15
|
-
padding: 8px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.template-dialog-header-title {
|
|
19
|
-
font-weight: bold;
|
|
20
|
-
align-self: center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
4
|
label {
|
|
24
|
-
margin-bottom:
|
|
5
|
+
margin-bottom: calc(var(--design-unit) * 2px);
|
|
25
6
|
}
|
|
26
7
|
|
|
27
8
|
zero-button {
|
|
28
9
|
margin: 0px;
|
|
29
10
|
}
|
|
30
11
|
|
|
31
|
-
.closing-icon {
|
|
32
|
-
text-align: center;
|
|
33
|
-
height: 30px;
|
|
34
|
-
width: 30px;
|
|
35
|
-
min-width: 30px;
|
|
36
|
-
margin-left: auto;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.closing-icon::part(control) {
|
|
40
|
-
padding: 0px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
12
|
.template-dialog-content {
|
|
44
13
|
display: flex;
|
|
45
14
|
justify-content: center;
|
|
46
15
|
flex-direction: column;
|
|
16
|
+
width: ${String(modalWidthPx)}px;
|
|
17
|
+
gap: calc(var(--design-unit) * 3px);
|
|
18
|
+
padding: 0 calc(var(--design-unit) * 4px);
|
|
47
19
|
}
|
|
48
20
|
|
|
49
21
|
.content-row {
|
|
50
22
|
display: flex;
|
|
51
|
-
gap:
|
|
52
|
-
margin-bottom: 8px;
|
|
23
|
+
gap: calc(var(--design-unit) * 3px);
|
|
53
24
|
}
|
|
54
25
|
|
|
55
26
|
.control {
|
|
@@ -61,20 +32,26 @@ export const TemplateDialogStyles = css `
|
|
|
61
32
|
|
|
62
33
|
.conditions,
|
|
63
34
|
.parameters {
|
|
64
|
-
height:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
border:
|
|
68
|
-
border-radius: 4px;
|
|
35
|
+
height: 150px;
|
|
36
|
+
max-height: 200px;
|
|
37
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
38
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
69
39
|
display: flex;
|
|
70
40
|
flex-direction: column;
|
|
41
|
+
padding: calc(var(--design-unit) * 2px);
|
|
42
|
+
flex-direction: column;
|
|
71
43
|
overflow-y: scroll;
|
|
72
|
-
padding: 8px;
|
|
73
44
|
}
|
|
74
45
|
|
|
75
46
|
.template-dialog-footer {
|
|
47
|
+
margin-top: calc(var(--design-unit) * 2px);
|
|
76
48
|
display: flex;
|
|
77
|
-
|
|
49
|
+
padding: calc(var(--design-unit) * 4px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.template-dialog-footer .content-row {
|
|
53
|
+
margin-left: auto;
|
|
54
|
+
margin-bottom: 0px;
|
|
78
55
|
}
|
|
79
56
|
|
|
80
57
|
.complete {
|
|
@@ -103,4 +80,15 @@ export const TemplateDialogStyles = css `
|
|
|
103
80
|
|
|
104
81
|
zero-select::part(selected-value) {
|
|
105
82
|
}
|
|
83
|
+
|
|
84
|
+
zero-modal::part(dialog) {
|
|
85
|
+
padding: 0;
|
|
86
|
+
background: var(--neutral-layer-4);
|
|
87
|
+
border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
zero-modal::part(top) {
|
|
91
|
+
padding: calc(var(--design-unit) * 4px);
|
|
92
|
+
border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
|
|
93
|
+
}
|
|
106
94
|
`;
|
|
@@ -112,7 +112,7 @@ export const TemplateDialogTemplate = html `
|
|
|
112
112
|
</div>
|
|
113
113
|
</div>
|
|
114
114
|
|
|
115
|
-
<div class="content-row"
|
|
115
|
+
<div class="content-row">
|
|
116
116
|
<label>Parameter(s)</label>
|
|
117
117
|
</div>
|
|
118
118
|
|
|
@@ -137,11 +137,11 @@ export const TemplateDialogTemplate = html `
|
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
|
-
<div class="content-row"
|
|
140
|
+
<div class="content-row">
|
|
141
141
|
<label>Condition(s)</label>
|
|
142
142
|
</div>
|
|
143
143
|
|
|
144
|
-
<div class="conditions"
|
|
144
|
+
<div class="conditions">
|
|
145
145
|
<div class="content-row condition">
|
|
146
146
|
${repeat(x => x.conditions, html `
|
|
147
147
|
<condition-builder
|
|
@@ -166,8 +166,9 @@ export const TemplateDialogTemplate = html `
|
|
|
166
166
|
</div>
|
|
167
167
|
|
|
168
168
|
<div class="template-dialog-footer">
|
|
169
|
-
<div class="content-row"
|
|
169
|
+
<div class="content-row">
|
|
170
170
|
<zero-button
|
|
171
|
+
appearance="accent"
|
|
171
172
|
@click=${x => x.complete()}
|
|
172
173
|
>
|
|
173
174
|
Complete
|
package/dist/esm/components/foundation-notification-dashboard/management/management.styles.js
CHANGED
|
@@ -20,8 +20,14 @@ export const rulesAndTemplatesStyles = css `
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
zero-button.add {
|
|
23
|
-
margin:
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
margin-bottom: calc(var(--design-unit) * 3px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
zero-button {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
entity-management::part(header) {
|
|
31
|
+
display: none;
|
|
26
32
|
}
|
|
27
33
|
`;
|
package/package.json
CHANGED