@things-factory/integration-ui 7.0.0-alpha.9 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/client/analysis/graph-viewer-style.ts +1 -1
- package/client/analysis/graph-viewer.ts +1 -1
- package/client/bootstrap.ts +1 -6
- package/client/editors/entity-selector.ts +13 -20
- package/client/editors/things-editor-entity-selector.ts +3 -3
- package/client/editors/things-editor-oracle-procedure.ts +18 -17
- package/client/editors/things-editor-tag-scenarios.ts +1 -1
- package/client/grist/connection-selector.ts +0 -2
- package/client/grist/connector-selector.ts +0 -2
- package/client/grist/dynamic-selector.ts +1 -5
- package/client/pages/connection-importer.ts +6 -11
- package/client/pages/connection.ts +29 -7
- package/client/pages/integration-analysis.ts +1 -1
- package/client/pages/integration-monitor.ts +18 -9
- package/client/pages/scenario-detail.ts +9 -19
- package/client/pages/scenario-importer.ts +6 -11
- package/client/pages/scenario.ts +16 -4
- package/client/viewparts/connections-monitor.ts +26 -23
- package/client/viewparts/monitoring-summary.ts +18 -11
- package/client/viewparts/pending-q-monitor.ts +11 -9
- package/client/viewparts/scenario-instance-log-view.ts +14 -5
- package/client/viewparts/scenario-instance-monitor.ts +29 -19
- package/client/viewparts/scenario-instance-view.ts +12 -12
- package/client/viewparts/scenario-monitor.ts +36 -30
- package/client/viewparts/scenarios-monitor.ts +21 -15
- package/dist-client/analysis/graph-viewer-style.js +1 -1
- package/dist-client/analysis/graph-viewer-style.js.map +1 -1
- package/dist-client/analysis/graph-viewer.js +21 -21
- package/dist-client/analysis/graph-viewer.js.map +1 -1
- package/dist-client/bootstrap.d.ts +0 -1
- package/dist-client/bootstrap.js +0 -1
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/editors/entity-editor.js.map +1 -1
- package/dist-client/editors/entity-selector.d.ts +1 -1
- package/dist-client/editors/entity-selector.js +7 -12
- package/dist-client/editors/entity-selector.js.map +1 -1
- package/dist-client/editors/things-editor-entity-selector.d.ts +1 -1
- package/dist-client/editors/things-editor-entity-selector.js +3 -3
- package/dist-client/editors/things-editor-entity-selector.js.map +1 -1
- package/dist-client/editors/things-editor-http-body.js.map +1 -1
- package/dist-client/editors/things-editor-http-headers.js.map +1 -1
- package/dist-client/editors/things-editor-http-parameters.js.map +1 -1
- package/dist-client/editors/things-editor-oracle-procedure.d.ts +1 -1
- package/dist-client/editors/things-editor-oracle-procedure.js +18 -17
- package/dist-client/editors/things-editor-oracle-procedure.js.map +1 -1
- package/dist-client/editors/things-editor-tag-scenarios.js +1 -1
- package/dist-client/editors/things-editor-tag-scenarios.js.map +1 -1
- package/dist-client/grist/connection-selector.d.ts +0 -1
- package/dist-client/grist/connection-selector.js +0 -1
- package/dist-client/grist/connection-selector.js.map +1 -1
- package/dist-client/grist/connector-selector.d.ts +0 -1
- package/dist-client/grist/connector-selector.js +0 -1
- package/dist-client/grist/connector-selector.js.map +1 -1
- package/dist-client/grist/dynamic-selector.d.ts +0 -1
- package/dist-client/grist/dynamic-selector.js +0 -1
- package/dist-client/grist/dynamic-selector.js.map +1 -1
- package/dist-client/grist/task-type-selector.js.map +1 -1
- package/dist-client/pages/connection-importer.d.ts +1 -0
- package/dist-client/pages/connection-importer.js +6 -11
- package/dist-client/pages/connection-importer.js.map +1 -1
- package/dist-client/pages/connection.js +29 -7
- package/dist-client/pages/connection.js.map +1 -1
- package/dist-client/pages/integration-analysis.js +1 -1
- package/dist-client/pages/integration-analysis.js.map +1 -1
- package/dist-client/pages/integration-monitor.js +18 -9
- package/dist-client/pages/integration-monitor.js.map +1 -1
- package/dist-client/pages/scenario-detail.d.ts +1 -0
- package/dist-client/pages/scenario-detail.js +9 -19
- package/dist-client/pages/scenario-detail.js.map +1 -1
- package/dist-client/pages/scenario-importer.d.ts +1 -0
- package/dist-client/pages/scenario-importer.js +6 -11
- package/dist-client/pages/scenario-importer.js.map +1 -1
- package/dist-client/pages/scenario.d.ts +2 -6
- package/dist-client/pages/scenario.js +14 -3
- package/dist-client/pages/scenario.js.map +1 -1
- package/dist-client/pages/state-register.js.map +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/viewparts/connections-monitor.d.ts +1 -1
- package/dist-client/viewparts/connections-monitor.js +26 -23
- package/dist-client/viewparts/connections-monitor.js.map +1 -1
- package/dist-client/viewparts/monitoring-summary.d.ts +1 -0
- package/dist-client/viewparts/monitoring-summary.js +18 -11
- package/dist-client/viewparts/monitoring-summary.js.map +1 -1
- package/dist-client/viewparts/pending-q-monitor.d.ts +1 -0
- package/dist-client/viewparts/pending-q-monitor.js +10 -9
- package/dist-client/viewparts/pending-q-monitor.js.map +1 -1
- package/dist-client/viewparts/scenario-instance-log-view.d.ts +2 -1
- package/dist-client/viewparts/scenario-instance-log-view.js +14 -5
- package/dist-client/viewparts/scenario-instance-log-view.js.map +1 -1
- package/dist-client/viewparts/scenario-instance-monitor.d.ts +1 -1
- package/dist-client/viewparts/scenario-instance-monitor.js +23 -16
- package/dist-client/viewparts/scenario-instance-monitor.js.map +1 -1
- package/dist-client/viewparts/scenario-instance-view.js +12 -12
- package/dist-client/viewparts/scenario-instance-view.js.map +1 -1
- package/dist-client/viewparts/scenario-monitor.d.ts +1 -1
- package/dist-client/viewparts/scenario-monitor.js +35 -30
- package/dist-client/viewparts/scenario-monitor.js.map +1 -1
- package/dist-client/viewparts/scenarios-monitor.d.ts +1 -1
- package/dist-client/viewparts/scenarios-monitor.js +20 -15
- package/dist-client/viewparts/scenarios-monitor.js.map +1 -1
- package/dist-server/index.d.ts +0 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/helps/integration/ui/connection.ja.md +3 -0
- package/helps/integration/ui/connection.ko.md +9 -6
- package/helps/integration/ui/connection.md +3 -0
- package/helps/integration/ui/connection.ms.md +3 -0
- package/helps/integration/ui/connection.zh.md +3 -0
- package/helps/integration/ui/scenario.ja.md +6 -0
- package/helps/integration/ui/scenario.ko.md +6 -0
- package/helps/integration/ui/scenario.md +6 -0
- package/helps/integration/ui/scenario.ms.md +6 -0
- package/helps/integration/ui/scenario.zh.md +6 -0
- package/package.json +17 -17
- package/translations/ja.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
package/client/pages/scenario.ts
CHANGED
@@ -5,7 +5,7 @@ import './scenario-importer'
|
|
5
5
|
import gql from 'graphql-tag'
|
6
6
|
import { css, html } from 'lit'
|
7
7
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
8
|
-
import moment from 'moment-timezone'
|
8
|
+
import moment from '@operato/moment-timezone-es'
|
9
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
10
10
|
|
11
11
|
import { DataGrist } from '@operato/data-grist/ox-grist.js'
|
@@ -15,6 +15,7 @@ import { notify, openPopup } from '@operato/layout'
|
|
15
15
|
import { navigate, PageView, store } from '@operato/shell'
|
16
16
|
import { CommonButtonStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles'
|
17
17
|
import { isMobileDevice } from '@operato/utils'
|
18
|
+
import { FetchOption } from '@operato/data-grist'
|
18
19
|
|
19
20
|
const DEFAULT_TZ = Intl.DateTimeFormat().resolvedOptions().timeZone
|
20
21
|
const TIMEZONE_OPTIONS = ['', DEFAULT_TZ, ...moment.tz.names().filter(tz => tz !== DEFAULT_TZ)]
|
@@ -47,11 +48,11 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
47
48
|
flex-direction: row;
|
48
49
|
justify-content: space-between;
|
49
50
|
|
50
|
-
background-color:
|
51
|
+
background-color: var(--md-sys-color-surface);
|
51
52
|
}
|
52
53
|
|
53
54
|
#filters > * {
|
54
|
-
padding: var(--
|
55
|
+
padding: var(--spacing-medium) var(--spacing-large);
|
55
56
|
}
|
56
57
|
`
|
57
58
|
]
|
@@ -264,6 +265,15 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
264
265
|
},
|
265
266
|
width: 120
|
266
267
|
},
|
268
|
+
{
|
269
|
+
type: 'number',
|
270
|
+
name: 'ttl',
|
271
|
+
header: i18next.t('field.ttl-seconds'),
|
272
|
+
record: {
|
273
|
+
editable: true
|
274
|
+
},
|
275
|
+
width: 80
|
276
|
+
},
|
267
277
|
{
|
268
278
|
type: 'privilege',
|
269
279
|
name: 'privilege',
|
@@ -327,7 +337,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
327
337
|
}
|
328
338
|
}
|
329
339
|
|
330
|
-
async fetchHandler({ page, limit, sortings = [], filters = [] }) {
|
340
|
+
async fetchHandler({ page, limit, sortings = [], filters = [] }: FetchOption) {
|
331
341
|
const response = await client.query({
|
332
342
|
query: gql`
|
333
343
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
@@ -342,6 +352,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
342
352
|
schedule
|
343
353
|
scheduleId
|
344
354
|
timezone
|
355
|
+
ttl
|
345
356
|
privilege {
|
346
357
|
category
|
347
358
|
privilege
|
@@ -396,6 +407,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
396
407
|
label
|
397
408
|
placeholder
|
398
409
|
property
|
410
|
+
styles
|
399
411
|
}
|
400
412
|
}
|
401
413
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import '@material/
|
1
|
+
import '@material/web/icon/icon.js'
|
2
2
|
|
3
3
|
import gql from 'graphql-tag'
|
4
4
|
import { css, html, LitElement } from 'lit'
|
@@ -17,16 +17,16 @@ export class ConnectionsMonitor extends LitElement {
|
|
17
17
|
flex-direction: column;
|
18
18
|
|
19
19
|
overflow: hidden;
|
20
|
-
background-color: var(--
|
20
|
+
background-color: var(--md-sys-color-surface);
|
21
21
|
border-radius: var(--border-radius);
|
22
|
-
border: var(--border-
|
22
|
+
border: var(--border-dim-color);
|
23
23
|
}
|
24
24
|
h2 {
|
25
25
|
margin: 0;
|
26
|
-
padding: var(--
|
27
|
-
border-bottom: var(--border-
|
26
|
+
padding: var(--spacing-medium) 0 var(--spacing-medium) var(--spacing-medium);
|
27
|
+
border-bottom: var(--border-dim-color);
|
28
28
|
font: var(--subtitle-font);
|
29
|
-
color: var(--
|
29
|
+
color: var(--md-sys-color-secondary);
|
30
30
|
text-transform: capitalize;
|
31
31
|
}
|
32
32
|
|
@@ -41,9 +41,9 @@ export class ConnectionsMonitor extends LitElement {
|
|
41
41
|
[card] {
|
42
42
|
display: flex;
|
43
43
|
flex-direction: column;
|
44
|
-
padding: var(--
|
45
|
-
border-bottom: var(--border-
|
46
|
-
color: var(--
|
44
|
+
padding: var(--spacing-medium);
|
45
|
+
border-bottom: var(--border-dim-color);
|
46
|
+
color: var(--md-sys-color-secondary);
|
47
47
|
}
|
48
48
|
[card] * {
|
49
49
|
overflow: hidden;
|
@@ -51,7 +51,7 @@ export class ConnectionsMonitor extends LitElement {
|
|
51
51
|
white-space: nowrap;
|
52
52
|
}
|
53
53
|
[card] strong {
|
54
|
-
color: var(--
|
54
|
+
color: var(--md-sys-color-primary);
|
55
55
|
}
|
56
56
|
[card] span {
|
57
57
|
font-size: var(--fontsize-default);
|
@@ -64,24 +64,27 @@ export class ConnectionsMonitor extends LitElement {
|
|
64
64
|
width: 10px;
|
65
65
|
height: 10px;
|
66
66
|
border-radius: 50%;
|
67
|
-
background-color: var(--
|
68
|
-
margin-left: var(--
|
67
|
+
background-color: var(--md-sys-color-primary);
|
68
|
+
margin-left: var(--spacing-small);
|
69
69
|
}
|
70
|
+
|
70
71
|
[buttons] {
|
71
|
-
--
|
72
|
-
--mdc-icon-size: 20px;
|
72
|
+
--md-icon-size: 20px;
|
73
73
|
border-top: 1px dashed rgba(0, 0, 0, 0.1);
|
74
|
-
margin: var(--
|
75
|
-
padding: var(--
|
74
|
+
margin: var(--spacing-small) 0 0 0;
|
75
|
+
padding: var(--spacing-small) 0 0 0;
|
76
76
|
text-align: right;
|
77
77
|
}
|
78
|
-
|
79
|
-
|
78
|
+
|
79
|
+
[buttons] md-icon {
|
80
|
+
color: var(--md-sys-color-secondary);
|
80
81
|
}
|
82
|
+
|
81
83
|
@media screen and (max-width: 480px) {
|
82
84
|
h2 {
|
83
|
-
padding: var(--
|
85
|
+
padding: var(--spacing-small);
|
84
86
|
}
|
87
|
+
|
85
88
|
[card] span {
|
86
89
|
display: none;
|
87
90
|
}
|
@@ -113,11 +116,11 @@ export class ConnectionsMonitor extends LitElement {
|
|
113
116
|
<span>${description}</span>
|
114
117
|
<span>Type : ${type}</span>
|
115
118
|
<div buttons>
|
116
|
-
<
|
119
|
+
<md-icon
|
117
120
|
@click=${e => (connected ? this.disconnect(connection) : this.connect(connection))}
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
+
title=${connected ? 'disconnect' : 'connect'}
|
122
|
+
>${connected ? 'link_off' : 'link'}</md-icon
|
123
|
+
>
|
121
124
|
</div>
|
122
125
|
</div>
|
123
126
|
`
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import '@material/web/icon/icon.js'
|
1
2
|
import '@operato/data-grist'
|
2
3
|
|
3
4
|
import { css, html, LitElement } from 'lit'
|
@@ -16,15 +17,15 @@ export class IntegrationMonitoringSummary extends localize(i18next)(LitElement)
|
|
16
17
|
flex-direction: row;
|
17
18
|
|
18
19
|
overflow: hidden;
|
19
|
-
background-color: var(--
|
20
|
+
background-color: var(--md-sys-color-secondary);
|
20
21
|
border-radius: var(--border-radius);
|
21
|
-
color: var(--
|
22
|
+
color: var(--md-sys-color-on-secondary);
|
22
23
|
}
|
23
24
|
|
24
25
|
[card] {
|
25
26
|
flex: 1;
|
26
|
-
margin: var(--
|
27
|
-
padding: var(--
|
27
|
+
margin: var(--spacing-medium);
|
28
|
+
padding: var(--spacing-small) var(--spacing-medium);
|
28
29
|
border-right: var(--border-light-color);
|
29
30
|
}
|
30
31
|
:host :last-child {
|
@@ -33,21 +34,27 @@ export class IntegrationMonitoringSummary extends localize(i18next)(LitElement)
|
|
33
34
|
strong {
|
34
35
|
font-size: 36px;
|
35
36
|
line-height: 30px;
|
36
|
-
color: var(--
|
37
|
+
color: var(--md-sys-color-on-primary);
|
37
38
|
}
|
38
39
|
span {
|
39
40
|
display: block;
|
40
|
-
margin-bottom: var(--
|
41
|
+
margin-bottom: var(--spacing-small);
|
41
42
|
font-size: var(--fontsize-small);
|
42
43
|
text-transform: capitalize;
|
44
|
+
opacity: 0.6;
|
43
45
|
}
|
46
|
+
|
47
|
+
md-icon {
|
48
|
+
opacity: 0.6;
|
49
|
+
}
|
50
|
+
|
44
51
|
@media screen and (max-width: 480px) {
|
45
52
|
:host {
|
46
53
|
font-size: 0.8em;
|
47
54
|
}
|
48
55
|
[card] {
|
49
|
-
margin: var(--
|
50
|
-
padding: var(--
|
56
|
+
margin: var(--spacing-small);
|
57
|
+
padding: var(--spacing-small);
|
51
58
|
}
|
52
59
|
[card]:nth-child(5),
|
53
60
|
[card]:nth-child(6) {
|
@@ -56,8 +63,8 @@ export class IntegrationMonitoringSummary extends localize(i18next)(LitElement)
|
|
56
63
|
[card]:nth-child(4) {
|
57
64
|
border-right: none;
|
58
65
|
}
|
59
|
-
|
60
|
-
|
66
|
+
md-icon {
|
67
|
+
--md-icon-size: var(--fontsize-large);
|
61
68
|
}
|
62
69
|
span {
|
63
70
|
line-height: 1;
|
@@ -124,7 +131,7 @@ export class IntegrationMonitoringSummary extends localize(i18next)(LitElement)
|
|
124
131
|
return html`
|
125
132
|
<div card>
|
126
133
|
<span>${title}</span>
|
127
|
-
<
|
134
|
+
<md-icon>${icon}</md-icon>
|
128
135
|
<strong> ${value}</strong>
|
129
136
|
</div>
|
130
137
|
`
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import '@material/web/icon/icon.js'
|
2
|
+
|
1
3
|
import { css, html, LitElement } from 'lit'
|
2
4
|
import { customElement, property, query } from 'lit/decorators.js'
|
3
5
|
import { asyncReplace } from 'lit/directives/async-replace.js'
|
@@ -14,18 +16,18 @@ export class PendingQMonitor extends LitElement {
|
|
14
16
|
:host {
|
15
17
|
display: flex;
|
16
18
|
flex-direction: column;
|
17
|
-
background-color:
|
19
|
+
background-color: var(--md-sys-color-surface);
|
18
20
|
border-radius: var(--border-radius);
|
19
|
-
padding: var(--
|
21
|
+
padding: var(--spacing-small);
|
20
22
|
}
|
21
23
|
|
22
24
|
div[tags] {
|
23
25
|
display: flex;
|
24
26
|
align-items: center;
|
25
27
|
}
|
26
|
-
[tags]
|
27
|
-
|
28
|
-
|
28
|
+
[tags] md-icon {
|
29
|
+
--md-icon-size: var(--fontsize-large);
|
30
|
+
margin: 0 var(--spacing-small) 0 0;
|
29
31
|
}
|
30
32
|
|
31
33
|
select {
|
@@ -49,7 +51,7 @@ export class PendingQMonitor extends LitElement {
|
|
49
51
|
|
50
52
|
[pending-wrap] {
|
51
53
|
flex: 1;
|
52
|
-
margin-top: var(--
|
54
|
+
margin-top: var(--spacing-medium);
|
53
55
|
padding-left: 30px;
|
54
56
|
padding-right: 4px;
|
55
57
|
font-size: 8px;
|
@@ -78,7 +80,7 @@ export class PendingQMonitor extends LitElement {
|
|
78
80
|
}
|
79
81
|
[timeline] table {
|
80
82
|
border-collapse: collapse;
|
81
|
-
margin-top: var(--
|
83
|
+
margin-top: var(--spacing-medium);
|
82
84
|
width: 100%;
|
83
85
|
}
|
84
86
|
[timeline] th {
|
@@ -95,7 +97,7 @@ export class PendingQMonitor extends LitElement {
|
|
95
97
|
}
|
96
98
|
[timeline] td {
|
97
99
|
border: 0;
|
98
|
-
border-top: var(--border-
|
100
|
+
border-top: var(--border-dim-color);
|
99
101
|
height: 30px;
|
100
102
|
box-sizing: border-box;
|
101
103
|
}
|
@@ -123,7 +125,7 @@ export class PendingQMonitor extends LitElement {
|
|
123
125
|
|
124
126
|
return html`
|
125
127
|
<div tags>
|
126
|
-
<
|
128
|
+
<md-icon>bookmark_border</md-icon>
|
127
129
|
<select @change=${e => (this.tag = e.target.value)} .value=${tag}>
|
128
130
|
<option value="(*)">*</option>
|
129
131
|
${Object.keys(this.tags || {})
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import '@material/
|
1
|
+
import '@material/web/icon/icon.js'
|
2
|
+
import '@material/web/fab/fab.js'
|
2
3
|
|
3
4
|
import gql from 'graphql-tag'
|
4
5
|
|
@@ -18,8 +19,8 @@ export class ScenarioInstanceLogView extends connect(store)(LitElement) {
|
|
18
19
|
:host {
|
19
20
|
display: flex;
|
20
21
|
flex-direction: column;
|
21
|
-
background-color: var(--
|
22
|
-
padding: var(--
|
22
|
+
background-color: var(--md-sys-color-surface);
|
23
|
+
padding: var(--spacing-large);
|
23
24
|
}
|
24
25
|
|
25
26
|
:host([active]) {
|
@@ -81,10 +82,18 @@ export class ScenarioInstanceLogView extends connect(store)(LitElement) {
|
|
81
82
|
<div options></div>
|
82
83
|
<div content>
|
83
84
|
${logs.map(
|
84
|
-
({ timestamp, message, level }) => html`
|
85
|
+
({ timestamp, message, level }) => html`
|
86
|
+
<div class="${level}">
|
87
|
+
<span>${new Date(timestamp).toLocaleString()}</span> <strong>${level}</strong> ${message}
|
88
|
+
</div>
|
89
|
+
`
|
85
90
|
)}
|
86
91
|
</div>
|
87
|
-
${this.startable
|
92
|
+
${this.startable
|
93
|
+
? html`<md-fab id="start" title="start" @click=${() => this.dispatchEvent(new CustomEvent('start'))}>
|
94
|
+
<md-icon slot="icon">play_arrow</md-icon>
|
95
|
+
</md-fab>`
|
96
|
+
: nothing}
|
88
97
|
`
|
89
98
|
}
|
90
99
|
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import '@material/web/icon/icon.js'
|
1
2
|
import '@operato/data-grist'
|
2
|
-
import '@material/mwc-icon'
|
3
3
|
import './scenario-instance-view'
|
4
4
|
|
5
5
|
import gql from 'graphql-tag'
|
@@ -24,8 +24,8 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
24
24
|
display: block;
|
25
25
|
overflow: hidden;
|
26
26
|
position: relative;
|
27
|
-
padding: var(--
|
28
|
-
color: var(--
|
27
|
+
padding: var(--spacing-small);
|
28
|
+
color: var(--md-sys-color-secondary);
|
29
29
|
}
|
30
30
|
|
31
31
|
[running] {
|
@@ -46,9 +46,9 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
46
46
|
padding: 2px;
|
47
47
|
box-sizing: border-box;
|
48
48
|
|
49
|
-
border: var(--border-
|
49
|
+
border: var(--border-dim-color);
|
50
50
|
border-radius: 10px;
|
51
|
-
background-color: var(--
|
51
|
+
background-color: var(--md-sys-color-surface);
|
52
52
|
}
|
53
53
|
[progress-wrap] {
|
54
54
|
display: flex;
|
@@ -57,10 +57,11 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
57
57
|
}
|
58
58
|
|
59
59
|
[running] [progress] {
|
60
|
-
background-color: var(--
|
60
|
+
background-color: var(--md-sys-color-surface-variant);
|
61
61
|
}
|
62
|
+
|
62
63
|
[steps] {
|
63
|
-
padding: 0 0 0 var(--
|
64
|
+
padding: 0 0 0 var(--spacing-small);
|
64
65
|
}
|
65
66
|
|
66
67
|
#progressbar {
|
@@ -69,15 +70,17 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
69
70
|
border-radius: 5px;
|
70
71
|
animation: width 1s linear ease-out;
|
71
72
|
}
|
73
|
+
|
72
74
|
[buttons] {
|
73
|
-
--
|
74
|
-
|
75
|
-
border-top: var(--border-
|
76
|
-
padding: var(--
|
75
|
+
--md-icon-size: 18px;
|
76
|
+
|
77
|
+
border-top: var(--border-dim-color);
|
78
|
+
padding: var(--spacing-small) 0 0 0;
|
77
79
|
text-align: right;
|
78
80
|
}
|
79
|
-
|
80
|
-
|
81
|
+
|
82
|
+
[buttons] md-icon {
|
83
|
+
color: var(--md-sys-color-primary);
|
81
84
|
}
|
82
85
|
|
83
86
|
@keyframes width {
|
@@ -111,8 +114,10 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
111
114
|
</div>
|
112
115
|
<div buttons>
|
113
116
|
<span><strong>${rounds}</strong> round</span>
|
114
|
-
<
|
115
|
-
<
|
117
|
+
<md-icon @click=${e => this.showInstanceDetail()}>wysiwyg</md-icon>
|
118
|
+
<md-icon @click=${e => (running ? this.stopScenario(instance) : this.startScenario(instance))}
|
119
|
+
>${running ? 'pause' : 'play_arrow'}</md-icon
|
120
|
+
>
|
116
121
|
</div>
|
117
122
|
`
|
118
123
|
}
|
@@ -160,9 +165,14 @@ export class ScenarioInstanceMonitor extends localize(i18next)(LitElement) {
|
|
160
165
|
|
161
166
|
async showInstanceDetail() {
|
162
167
|
const { instanceName, scenarioName } = this.instance
|
163
|
-
openPopup(
|
164
|
-
|
165
|
-
|
166
|
-
|
168
|
+
openPopup(
|
169
|
+
html`
|
170
|
+
<scenario-instance-view .instanceName=${instanceName} .scenarioName=${scenarioName}></scenario-instance-view>
|
171
|
+
`,
|
172
|
+
{
|
173
|
+
size: 'large',
|
174
|
+
title: `${i18next.t('title.scenario-instance')}`
|
175
|
+
}
|
176
|
+
)
|
167
177
|
}
|
168
178
|
}
|
@@ -17,7 +17,7 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
17
17
|
:host {
|
18
18
|
display: flex;
|
19
19
|
flex-direction: column;
|
20
|
-
background-color: var(--
|
20
|
+
background-color: var(--md-sys-color-background);
|
21
21
|
}
|
22
22
|
|
23
23
|
[diagram] {
|
@@ -40,30 +40,30 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
40
40
|
|
41
41
|
[tab] span {
|
42
42
|
display: inline;
|
43
|
-
padding: var(--
|
43
|
+
padding: var(--spacing-large) var(--spacing-large) var(--spacing-small) var(--spacing-large);
|
44
44
|
border-bottom: 3px solid transparent;
|
45
|
-
color: var(--
|
45
|
+
color: var(--md-sys-color-secondary);
|
46
46
|
text-transform: capitalize;
|
47
47
|
}
|
48
48
|
|
49
49
|
[tab] span[active] {
|
50
|
-
border-color: var(--
|
50
|
+
border-color: var(--md-sys-color-primary);
|
51
51
|
font-weight: bold;
|
52
52
|
}
|
53
53
|
|
54
54
|
[detail] {
|
55
55
|
flex: 1;
|
56
|
-
background-color: var(--
|
57
|
-
border-top: var(--border-
|
56
|
+
background-color: var(--md-sys-color-surface);
|
57
|
+
border-top: var(--border-dim-color);
|
58
58
|
overflow: hidden;
|
59
|
-
padding: var(--
|
59
|
+
padding: var(--spacing-large);
|
60
60
|
}
|
61
61
|
|
62
62
|
[detail] > * {
|
63
63
|
display: none;
|
64
64
|
width: 100%;
|
65
65
|
height: 100%;
|
66
|
-
color: var(--
|
66
|
+
color: var(--md-sys-color-secondary);
|
67
67
|
}
|
68
68
|
|
69
69
|
[detail] > [active] {
|
@@ -82,8 +82,8 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
82
82
|
list-style: inside '- ';
|
83
83
|
}
|
84
84
|
[detail] li {
|
85
|
-
padding: var(--
|
86
|
-
border-bottom: var(--border-
|
85
|
+
padding: var(--spacing-medium) var(--spacing-small) var(--spacing-small) var(--spacing-small);
|
86
|
+
border-bottom: var(--border-dim-color);
|
87
87
|
}
|
88
88
|
|
89
89
|
li[active] {
|
@@ -93,7 +93,7 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
93
93
|
[value] {
|
94
94
|
flex: 1;
|
95
95
|
overflow: auto;
|
96
|
-
padding: var(--
|
96
|
+
padding: var(--spacing-large);
|
97
97
|
}
|
98
98
|
scenario-instance-log-view [active] {
|
99
99
|
padding: 0;
|
@@ -104,7 +104,7 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
104
104
|
display: block;
|
105
105
|
}
|
106
106
|
[detail] {
|
107
|
-
padding: var(--
|
107
|
+
padding: var(--spacing-medium);
|
108
108
|
overflow: auto;
|
109
109
|
}
|
110
110
|
[detail] > * {
|