@things-factory/integration-ui 6.1.66 → 6.1.69
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/client/editors/{entity-editor.js → entity-editor.ts} +2 -2
- package/client/editors/{entity-selector.js → entity-selector.ts} +45 -57
- package/client/editors/{property-editor.js → property-editor.ts} +1 -0
- package/client/editors/{things-editor-entity-selector.js → things-editor-entity-selector.ts} +27 -31
- package/client/editors/{things-editor-http-body.js → things-editor-http-body.ts} +43 -48
- package/client/editors/{things-editor-http-headers.js → things-editor-http-headers.ts} +48 -58
- package/client/editors/{things-editor-http-parameters.js → things-editor-http-parameters.ts} +48 -58
- package/client/grist/{connection-selector.js → connection-selector.ts} +2 -2
- package/client/grist/{connector-selector.js → connector-selector.ts} +2 -2
- package/client/grist/{dynamic-selector.js → dynamic-selector.ts} +9 -7
- package/client/grist/{task-type-selector.js → task-type-selector.ts} +4 -2
- package/client/index.ts +2 -0
- package/client/pages/{connection.js → connection.ts} +38 -44
- package/client/pages/{integration-monitor.js → integration-monitor.ts} +54 -56
- package/client/pages/{scenario-detail.js → scenario-detail.ts} +41 -47
- package/client/pages/scenario-importer.ts +107 -0
- package/client/pages/{scenario.js → scenario.ts} +14 -20
- package/client/viewparts/{connections-monitor.js → connections-monitor.ts} +76 -82
- package/client/viewparts/{monitoring-summary.js → monitoring-summary.ts} +55 -61
- package/client/viewparts/{pending-q-monitor.js → pending-q-monitor.ts} +110 -114
- package/client/viewparts/{scenario-instance-log-view.js → scenario-instance-log-view.ts} +31 -35
- package/client/viewparts/{scenario-instance-monitor.js → scenario-instance-monitor.ts} +67 -73
- package/client/viewparts/{scenario-instance-view.js → scenario-instance-view.ts} +100 -104
- package/client/viewparts/{scenario-monitor.js → scenario-monitor.ts} +143 -149
- package/client/viewparts/scenarios-monitor.ts +147 -0
- package/dist-client/bootstrap.d.ts +4 -0
- package/dist-client/bootstrap.js +29 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/editors/entity-editor.d.ts +10 -0
- package/dist-client/editors/entity-editor.js +47 -0
- package/dist-client/editors/entity-editor.js.map +1 -0
- package/dist-client/editors/entity-selector.d.ts +34 -0
- package/dist-client/editors/entity-selector.js +305 -0
- package/dist-client/editors/entity-selector.js.map +1 -0
- package/dist-client/editors/property-editor.d.ts +20 -0
- package/dist-client/editors/property-editor.js +61 -0
- package/dist-client/editors/property-editor.js.map +1 -0
- package/dist-client/editors/things-editor-entity-selector.d.ts +15 -0
- package/dist-client/editors/things-editor-entity-selector.js +87 -0
- package/dist-client/editors/things-editor-entity-selector.js.map +1 -0
- package/dist-client/editors/things-editor-http-body.d.ts +22 -0
- package/dist-client/editors/things-editor-http-body.js +130 -0
- package/dist-client/editors/things-editor-http-body.js.map +1 -0
- package/dist-client/editors/things-editor-http-headers.d.ts +29 -0
- package/dist-client/editors/things-editor-http-headers.js +160 -0
- package/dist-client/editors/things-editor-http-headers.js.map +1 -0
- package/dist-client/editors/things-editor-http-parameters.d.ts +29 -0
- package/dist-client/editors/things-editor-http-parameters.js +160 -0
- package/dist-client/editors/things-editor-http-parameters.js.map +1 -0
- package/dist-client/grist/connection-selector.d.ts +5 -0
- package/dist-client/grist/connection-selector.js +31 -0
- package/dist-client/grist/connection-selector.js.map +1 -0
- package/dist-client/grist/connector-selector.d.ts +5 -0
- package/dist-client/grist/connector-selector.js +31 -0
- package/dist-client/grist/connector-selector.js.map +1 -0
- package/dist-client/grist/dynamic-selector.d.ts +8 -0
- package/dist-client/grist/dynamic-selector.js +33 -0
- package/dist-client/grist/dynamic-selector.js.map +1 -0
- package/dist-client/grist/task-type-selector.d.ts +7 -0
- package/dist-client/grist/task-type-selector.js +58 -0
- package/dist-client/grist/task-type-selector.js.map +1 -0
- package/dist-client/index.d.ts +2 -0
- package/dist-client/index.js +3 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/connection.d.ts +53 -0
- package/dist-client/pages/connection.js +428 -0
- package/dist-client/pages/connection.js.map +1 -0
- package/dist-client/pages/integration-monitor.d.ts +28 -0
- package/dist-client/pages/integration-monitor.js +340 -0
- package/dist-client/pages/integration-monitor.js.map +1 -0
- package/dist-client/pages/scenario-detail.d.ts +1 -0
- package/dist-client/pages/scenario-detail.js +303 -0
- package/dist-client/pages/scenario-detail.js.map +1 -0
- package/dist-client/pages/scenario-importer.d.ts +9 -0
- package/dist-client/pages/scenario-importer.js +116 -0
- package/dist-client/pages/scenario-importer.js.map +1 -0
- package/dist-client/pages/scenario.d.ts +68 -0
- package/dist-client/pages/scenario.js +581 -0
- package/dist-client/pages/scenario.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +14 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/viewparts/connections-monitor.d.ts +10 -0
- package/dist-client/viewparts/connections-monitor.js +169 -0
- package/dist-client/viewparts/connections-monitor.js.map +1 -0
- package/dist-client/viewparts/monitoring-summary.d.ts +12 -0
- package/dist-client/viewparts/monitoring-summary.js +135 -0
- package/dist-client/viewparts/monitoring-summary.js.map +1 -0
- package/dist-client/viewparts/pending-q-monitor.d.ts +17 -0
- package/dist-client/viewparts/pending-q-monitor.js +247 -0
- package/dist-client/viewparts/pending-q-monitor.js.map +1 -0
- package/dist-client/viewparts/scenario-instance-log-view.d.ts +21 -0
- package/dist-client/viewparts/scenario-instance-log-view.js +105 -0
- package/dist-client/viewparts/scenario-instance-log-view.js.map +1 -0
- package/dist-client/viewparts/scenario-instance-monitor.d.ts +15 -0
- package/dist-client/viewparts/scenario-instance-monitor.js +171 -0
- package/dist-client/viewparts/scenario-instance-monitor.js.map +1 -0
- package/dist-client/viewparts/scenario-instance-view.d.ts +29 -0
- package/dist-client/viewparts/scenario-instance-view.js +263 -0
- package/dist-client/viewparts/scenario-instance-view.js.map +1 -0
- package/dist-client/viewparts/scenario-monitor.d.ts +16 -0
- package/dist-client/viewparts/scenario-monitor.js +288 -0
- package/dist-client/viewparts/scenario-monitor.js.map +1 -0
- package/dist-client/viewparts/scenarios-monitor.d.ts +16 -0
- package/dist-client/viewparts/scenarios-monitor.js +167 -0
- package/dist-client/viewparts/scenarios-monitor.js.map +1 -0
- package/package.json +10 -7
- package/client/index.js +0 -0
- package/client/pages/scenario-importer.js +0 -118
- package/client/viewparts/scenarios-monitor.js +0 -153
- /package/client/{bootstrap.js → bootstrap.ts} +0 -0
- /package/client/{route.js → route.ts} +0 -0
|
@@ -2,133 +2,131 @@ import './scenario-instance-log-view'
|
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
5
|
+
import { customElement, property, query } from 'lit/decorators.js'
|
|
5
6
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
6
7
|
|
|
7
8
|
import { subscribe } from '@operato/graphql'
|
|
8
9
|
import { store } from '@operato/shell'
|
|
9
10
|
import { ScrollbarStyles } from '@operato/styles'
|
|
10
11
|
|
|
12
|
+
@customElement('scenario-instance-view')
|
|
11
13
|
export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
12
|
-
static
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
14
|
+
static styles = [
|
|
15
|
+
ScrollbarStyles,
|
|
16
|
+
css`
|
|
17
|
+
:host {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
background-color: var(--main-section-background-color);
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
[diagram] {
|
|
24
|
+
flex: 1;
|
|
25
|
+
height: 100%;
|
|
26
|
+
border: none;
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
[content] {
|
|
30
|
+
flex: 1;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
[tab] {
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
[tab] span {
|
|
42
|
+
display: inline;
|
|
43
|
+
padding: var(--padding-wide) var(--padding-wide) var(--padding-narrow) var(--padding-wide);
|
|
44
|
+
border-bottom: 3px solid transparent;
|
|
45
|
+
color: var(--secondary-color);
|
|
46
|
+
text-transform: capitalize;
|
|
47
|
+
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
[tab] span[active] {
|
|
50
|
+
border-color: var(--primary-color);
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
}
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
[detail] {
|
|
55
|
+
flex: 1;
|
|
56
|
+
background-color: var(--theme-white-color);
|
|
57
|
+
border-top: var(--border-dark-color);
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
padding: var(--padding-wide);
|
|
60
|
+
}
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
[detail] > * {
|
|
63
|
+
display: none;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
color: var(--secondary-color);
|
|
67
|
+
}
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
[detail] > [active] {
|
|
70
|
+
display: flex;
|
|
71
|
+
overflow: auto;
|
|
72
|
+
}
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
pre {
|
|
75
|
+
margin: 0;
|
|
76
|
+
}
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
[detail] ul {
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
flex: 1;
|
|
82
|
+
list-style: inside '- ';
|
|
83
|
+
}
|
|
84
|
+
[detail] li {
|
|
85
|
+
padding: var(--padding-default) var(--padding-narrow) var(--padding-narrow) var(--padding-narrow);
|
|
86
|
+
border-bottom: var(--border-dark-color);
|
|
87
|
+
}
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
li[active] {
|
|
90
|
+
font-weight: bold;
|
|
91
|
+
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
[value] {
|
|
94
|
+
flex: 1;
|
|
95
|
+
overflow: auto;
|
|
96
|
+
padding: var(--padding-wide);
|
|
97
|
+
}
|
|
98
|
+
scenario-instance-log-view [active] {
|
|
99
|
+
padding: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media only screen and (max-width: 460px) {
|
|
103
|
+
[info][active] {
|
|
104
|
+
display: block;
|
|
105
|
+
}
|
|
106
|
+
[detail] {
|
|
107
|
+
padding: var(--padding-default);
|
|
94
108
|
overflow: auto;
|
|
95
|
-
padding: var(--padding-wide);
|
|
96
109
|
}
|
|
97
|
-
|
|
98
|
-
|
|
110
|
+
[detail] > * {
|
|
111
|
+
height: auto;
|
|
99
112
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
display: block;
|
|
104
|
-
}
|
|
105
|
-
[detail] {
|
|
106
|
-
padding: var(--padding-default);
|
|
107
|
-
overflow: auto;
|
|
108
|
-
}
|
|
109
|
-
[detail] > * {
|
|
110
|
-
height: auto;
|
|
111
|
-
}
|
|
112
|
-
[diagram] {
|
|
113
|
-
width: 100%;
|
|
114
|
-
min-height: 500px;
|
|
115
|
-
}
|
|
113
|
+
[diagram] {
|
|
114
|
+
width: 100%;
|
|
115
|
+
min-height: 500px;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
}
|
|
118
|
+
`
|
|
119
|
+
]
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
}
|
|
121
|
+
@property({ type: String }) scenarioName?: string
|
|
122
|
+
@property({ type: String }) instanceName?: string
|
|
123
|
+
@property({ type: Object }) instance?: any
|
|
124
|
+
@property({ type: String }) tab?: string
|
|
125
|
+
@property({ type: String }) step?: string
|
|
126
|
+
@property({ type: String }) key?: string
|
|
127
|
+
@property({ type: String }) contextPath?: string
|
|
128
|
+
|
|
129
|
+
subscription: any
|
|
132
130
|
|
|
133
131
|
render() {
|
|
134
132
|
const tab = this.tab || 'info'
|
|
@@ -260,5 +258,3 @@ export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
|
260
258
|
delete this.subscription
|
|
261
259
|
}
|
|
262
260
|
}
|
|
263
|
-
|
|
264
|
-
customElements.define('scenario-instance-view', ScenarioInstanceView)
|
|
@@ -4,6 +4,7 @@ import './scenario-instance-monitor'
|
|
|
4
4
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
6
|
import { css, html, LitElement } from 'lit'
|
|
7
|
+
import { customElement, property, query } from 'lit/decorators.js'
|
|
7
8
|
|
|
8
9
|
import { client } from '@operato/graphql'
|
|
9
10
|
import { i18next, localize } from '@operato/i18n'
|
|
@@ -14,178 +15,173 @@ function IS_SCENARIO_RUNNING(state) {
|
|
|
14
15
|
return state && state !== 'UNLOADED'
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
@customElement('scenario-monitor')
|
|
17
19
|
export class ScenarioMonitor extends localize(i18next)(LitElement) {
|
|
18
|
-
static
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
static styles = [
|
|
21
|
+
ScrollbarStyles,
|
|
22
|
+
css`
|
|
23
|
+
:host {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
margin: var(--margin-default);
|
|
27
|
+
|
|
28
|
+
border: var(--border-dark-color);
|
|
29
|
+
background-color: var(--theme-white-color);
|
|
30
|
+
box-shadow: var(--box-shadow);
|
|
31
|
+
border-radius: var(--border-radius);
|
|
32
|
+
position: relative;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
24
35
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
border: var(--border-dark-color);
|
|
35
|
-
background-color: var(--theme-white-color);
|
|
36
|
-
box-shadow: var(--box-shadow);
|
|
37
|
-
border-radius: var(--border-radius);
|
|
38
|
-
position: relative;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
}
|
|
36
|
+
[desc] {
|
|
37
|
+
position: relative;
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
padding: var(--padding-default);
|
|
41
|
+
width: 200px;
|
|
42
|
+
color: var(--secondary-color);
|
|
43
|
+
font-size: var(--fontsize-small);
|
|
44
|
+
}
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
font-size: var(--fontsize-small);
|
|
50
|
-
}
|
|
46
|
+
[desc] [detail-info] {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
width: calc(100% - 25px);
|
|
51
|
+
height: 45px;
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
[desc] strong {
|
|
55
|
+
display: block;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
font-size: var(--fontsize-large);
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
[desc] span {
|
|
63
|
+
display: block;
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 0px;
|
|
66
|
+
right: var(--padding-default);
|
|
67
|
+
font-size: 40px;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
text-align: right;
|
|
70
|
+
}
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
right: var(--padding-default);
|
|
73
|
-
font-size: 40px;
|
|
74
|
-
font-weight: bold;
|
|
75
|
-
text-align: right;
|
|
76
|
-
}
|
|
72
|
+
[desc] [schedule] * {
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
display: inline;
|
|
75
|
+
}
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
[desc] [schedule] {
|
|
78
|
+
background-color: #f1f1f1;
|
|
79
|
+
border-radius: 20px;
|
|
80
|
+
margin: var(--margin-default) 0;
|
|
81
|
+
padding: var(--padding-narrow);
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
line-height: 8px;
|
|
87
|
+
}
|
|
82
88
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
white-space: nowrap;
|
|
91
|
-
font-size: 12px;
|
|
92
|
-
line-height: 8px;
|
|
93
|
-
}
|
|
89
|
+
[buttons] {
|
|
90
|
+
--mdc-icon-button-size: 24px;
|
|
91
|
+
--mdc-icon-size: 24px;
|
|
92
|
+
border-top: var(--border-dark-color);
|
|
93
|
+
padding: var(--padding-narrow) 0 0 0;
|
|
94
|
+
text-align: right;
|
|
95
|
+
}
|
|
94
96
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
border-top: var(--border-dark-color);
|
|
99
|
-
padding: var(--padding-narrow) 0 0 0;
|
|
100
|
-
text-align: right;
|
|
101
|
-
}
|
|
97
|
+
[buttons] mwc-icon-button {
|
|
98
|
+
color: var(--primary-color);
|
|
99
|
+
}
|
|
102
100
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
[buttons][detail] {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column-reverse;
|
|
104
|
+
margin-bottom: auto;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
[desc] mwc-icon {
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
color: var(--theme-white-color);
|
|
110
|
+
font-size: 18px;
|
|
111
|
+
}
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
font-size: 18px;
|
|
117
|
-
}
|
|
113
|
+
:host([mode='detail']) [schedule] {
|
|
114
|
+
margin: var(--margin-default) 0 0 0;
|
|
115
|
+
}
|
|
118
116
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
:host([mode='detail']) [desc] [buttons] {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
:host([mode='detail']) [buttons] {
|
|
121
|
+
border-top: none;
|
|
122
|
+
padding: var(--padding-default);
|
|
123
|
+
}
|
|
122
124
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
:host([mode='detail']) [buttons] {
|
|
127
|
-
border-top: none;
|
|
128
|
-
padding: var(--padding-default);
|
|
129
|
-
}
|
|
125
|
+
ul {
|
|
126
|
+
flex: 1;
|
|
130
127
|
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: row;
|
|
130
|
+
flex-wrap: wrap;
|
|
131
|
+
list-style: none;
|
|
132
|
+
margin: 0;
|
|
133
|
+
padding: 0;
|
|
134
|
+
}
|
|
133
135
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
ul > li {
|
|
137
|
+
position: relative;
|
|
138
|
+
margin: var(--margin-default);
|
|
139
|
+
min-width: 140px;
|
|
140
|
+
max-width: 180px;
|
|
141
|
+
border: 1px solid black;
|
|
142
|
+
border-radius: var(--border-radius);
|
|
143
|
+
font-size: 12px;
|
|
144
|
+
}
|
|
141
145
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
font-size: 12px;
|
|
150
|
-
}
|
|
146
|
+
li span {
|
|
147
|
+
display: block;
|
|
148
|
+
position: absolute;
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: 100%;
|
|
151
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
152
|
+
}
|
|
151
153
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
width:
|
|
156
|
-
height: 100%;
|
|
157
|
-
background-color: rgba(255, 255, 255, 0.8);
|
|
154
|
+
@media screen and (max-width: 480px) {
|
|
155
|
+
:host {
|
|
156
|
+
margin: var(--margin-narrow);
|
|
157
|
+
max-width: 46%;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
:
|
|
162
|
-
|
|
163
|
-
max-width: 46%;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
:host([mode='detail']) {
|
|
167
|
-
max-width: initial;
|
|
168
|
-
}
|
|
160
|
+
:host([mode='detail']) {
|
|
161
|
+
max-width: initial;
|
|
162
|
+
}
|
|
169
163
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
164
|
+
[desc] {
|
|
165
|
+
padding: var(--padding-narrow);
|
|
166
|
+
}
|
|
173
167
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
:host([mode='detail']) > [desc] {
|
|
169
|
+
max-width: 125px;
|
|
170
|
+
}
|
|
177
171
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
172
|
+
[desc] [detail-info] {
|
|
173
|
+
height: 38px;
|
|
174
|
+
}
|
|
181
175
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
176
|
+
[desc] span {
|
|
177
|
+
font-size: 36px;
|
|
185
178
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
179
|
+
}
|
|
180
|
+
`
|
|
181
|
+
]
|
|
182
|
+
|
|
183
|
+
@property({ type: Object }) scenario: any
|
|
184
|
+
@property({ type: String }) mode?: string
|
|
189
185
|
|
|
190
186
|
render() {
|
|
191
187
|
const scenario = this.scenario || {}
|
|
@@ -300,5 +296,3 @@ export class ScenarioMonitor extends localize(i18next)(LitElement) {
|
|
|
300
296
|
})
|
|
301
297
|
}
|
|
302
298
|
}
|
|
303
|
-
|
|
304
|
-
window.customElements.define('scenario-monitor', ScenarioMonitor)
|