@things-factory/integration-ui 6.1.66 → 6.1.71

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.
Files changed (113) hide show
  1. package/client/editors/{entity-editor.js → entity-editor.ts} +2 -2
  2. package/client/editors/{entity-selector.js → entity-selector.ts} +45 -57
  3. package/client/editors/{property-editor.js → property-editor.ts} +1 -0
  4. package/client/editors/{things-editor-entity-selector.js → things-editor-entity-selector.ts} +27 -31
  5. package/client/editors/{things-editor-http-body.js → things-editor-http-body.ts} +43 -48
  6. package/client/editors/{things-editor-http-headers.js → things-editor-http-headers.ts} +48 -58
  7. package/client/editors/{things-editor-http-parameters.js → things-editor-http-parameters.ts} +48 -58
  8. package/client/grist/{connection-selector.js → connection-selector.ts} +2 -2
  9. package/client/grist/{connector-selector.js → connector-selector.ts} +2 -2
  10. package/client/grist/{dynamic-selector.js → dynamic-selector.ts} +9 -7
  11. package/client/grist/{task-type-selector.js → task-type-selector.ts} +4 -2
  12. package/client/index.ts +2 -0
  13. package/client/pages/{connection.js → connection.ts} +39 -45
  14. package/client/pages/{integration-monitor.js → integration-monitor.ts} +54 -56
  15. package/client/pages/{scenario-detail.js → scenario-detail.ts} +41 -47
  16. package/client/pages/scenario-importer.ts +107 -0
  17. package/client/pages/{scenario.js → scenario.ts} +15 -21
  18. package/client/viewparts/{connections-monitor.js → connections-monitor.ts} +76 -82
  19. package/client/viewparts/{monitoring-summary.js → monitoring-summary.ts} +55 -61
  20. package/client/viewparts/{pending-q-monitor.js → pending-q-monitor.ts} +110 -114
  21. package/client/viewparts/{scenario-instance-log-view.js → scenario-instance-log-view.ts} +31 -35
  22. package/client/viewparts/{scenario-instance-monitor.js → scenario-instance-monitor.ts} +67 -73
  23. package/client/viewparts/{scenario-instance-view.js → scenario-instance-view.ts} +100 -104
  24. package/client/viewparts/{scenario-monitor.js → scenario-monitor.ts} +143 -149
  25. package/client/viewparts/scenarios-monitor.ts +147 -0
  26. package/dist-client/bootstrap.d.ts +4 -0
  27. package/dist-client/bootstrap.js +29 -0
  28. package/dist-client/bootstrap.js.map +1 -0
  29. package/dist-client/editors/entity-editor.d.ts +10 -0
  30. package/dist-client/editors/entity-editor.js +47 -0
  31. package/dist-client/editors/entity-editor.js.map +1 -0
  32. package/dist-client/editors/entity-selector.d.ts +34 -0
  33. package/dist-client/editors/entity-selector.js +305 -0
  34. package/dist-client/editors/entity-selector.js.map +1 -0
  35. package/dist-client/editors/property-editor.d.ts +20 -0
  36. package/dist-client/editors/property-editor.js +61 -0
  37. package/dist-client/editors/property-editor.js.map +1 -0
  38. package/dist-client/editors/things-editor-entity-selector.d.ts +15 -0
  39. package/dist-client/editors/things-editor-entity-selector.js +87 -0
  40. package/dist-client/editors/things-editor-entity-selector.js.map +1 -0
  41. package/dist-client/editors/things-editor-http-body.d.ts +22 -0
  42. package/dist-client/editors/things-editor-http-body.js +130 -0
  43. package/dist-client/editors/things-editor-http-body.js.map +1 -0
  44. package/dist-client/editors/things-editor-http-headers.d.ts +29 -0
  45. package/dist-client/editors/things-editor-http-headers.js +160 -0
  46. package/dist-client/editors/things-editor-http-headers.js.map +1 -0
  47. package/dist-client/editors/things-editor-http-parameters.d.ts +29 -0
  48. package/dist-client/editors/things-editor-http-parameters.js +160 -0
  49. package/dist-client/editors/things-editor-http-parameters.js.map +1 -0
  50. package/dist-client/grist/connection-selector.d.ts +5 -0
  51. package/dist-client/grist/connection-selector.js +31 -0
  52. package/dist-client/grist/connection-selector.js.map +1 -0
  53. package/dist-client/grist/connector-selector.d.ts +5 -0
  54. package/dist-client/grist/connector-selector.js +31 -0
  55. package/dist-client/grist/connector-selector.js.map +1 -0
  56. package/dist-client/grist/dynamic-selector.d.ts +8 -0
  57. package/dist-client/grist/dynamic-selector.js +33 -0
  58. package/dist-client/grist/dynamic-selector.js.map +1 -0
  59. package/dist-client/grist/task-type-selector.d.ts +7 -0
  60. package/dist-client/grist/task-type-selector.js +58 -0
  61. package/dist-client/grist/task-type-selector.js.map +1 -0
  62. package/dist-client/index.d.ts +2 -0
  63. package/dist-client/index.js +3 -0
  64. package/dist-client/index.js.map +1 -0
  65. package/dist-client/pages/connection.d.ts +53 -0
  66. package/dist-client/pages/connection.js +429 -0
  67. package/dist-client/pages/connection.js.map +1 -0
  68. package/dist-client/pages/integration-monitor.d.ts +28 -0
  69. package/dist-client/pages/integration-monitor.js +340 -0
  70. package/dist-client/pages/integration-monitor.js.map +1 -0
  71. package/dist-client/pages/scenario-detail.d.ts +1 -0
  72. package/dist-client/pages/scenario-detail.js +303 -0
  73. package/dist-client/pages/scenario-detail.js.map +1 -0
  74. package/dist-client/pages/scenario-importer.d.ts +9 -0
  75. package/dist-client/pages/scenario-importer.js +116 -0
  76. package/dist-client/pages/scenario-importer.js.map +1 -0
  77. package/dist-client/pages/scenario.d.ts +68 -0
  78. package/dist-client/pages/scenario.js +582 -0
  79. package/dist-client/pages/scenario.js.map +1 -0
  80. package/dist-client/route.d.ts +1 -0
  81. package/dist-client/route.js +14 -0
  82. package/dist-client/route.js.map +1 -0
  83. package/dist-client/tsconfig.tsbuildinfo +1 -0
  84. package/dist-client/viewparts/connections-monitor.d.ts +10 -0
  85. package/dist-client/viewparts/connections-monitor.js +169 -0
  86. package/dist-client/viewparts/connections-monitor.js.map +1 -0
  87. package/dist-client/viewparts/monitoring-summary.d.ts +12 -0
  88. package/dist-client/viewparts/monitoring-summary.js +135 -0
  89. package/dist-client/viewparts/monitoring-summary.js.map +1 -0
  90. package/dist-client/viewparts/pending-q-monitor.d.ts +17 -0
  91. package/dist-client/viewparts/pending-q-monitor.js +247 -0
  92. package/dist-client/viewparts/pending-q-monitor.js.map +1 -0
  93. package/dist-client/viewparts/scenario-instance-log-view.d.ts +21 -0
  94. package/dist-client/viewparts/scenario-instance-log-view.js +105 -0
  95. package/dist-client/viewparts/scenario-instance-log-view.js.map +1 -0
  96. package/dist-client/viewparts/scenario-instance-monitor.d.ts +15 -0
  97. package/dist-client/viewparts/scenario-instance-monitor.js +171 -0
  98. package/dist-client/viewparts/scenario-instance-monitor.js.map +1 -0
  99. package/dist-client/viewparts/scenario-instance-view.d.ts +29 -0
  100. package/dist-client/viewparts/scenario-instance-view.js +263 -0
  101. package/dist-client/viewparts/scenario-instance-view.js.map +1 -0
  102. package/dist-client/viewparts/scenario-monitor.d.ts +16 -0
  103. package/dist-client/viewparts/scenario-monitor.js +288 -0
  104. package/dist-client/viewparts/scenario-monitor.js.map +1 -0
  105. package/dist-client/viewparts/scenarios-monitor.d.ts +16 -0
  106. package/dist-client/viewparts/scenarios-monitor.js +167 -0
  107. package/dist-client/viewparts/scenarios-monitor.js.map +1 -0
  108. package/package.json +10 -7
  109. package/client/index.js +0 -0
  110. package/client/pages/scenario-importer.js +0 -118
  111. package/client/viewparts/scenarios-monitor.js +0 -153
  112. /package/client/{bootstrap.js → bootstrap.ts} +0 -0
  113. /package/client/{route.js → route.ts} +0 -0
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { css, html, LitElement } from 'lit'
6
+ import { customElement, property } from 'lit/decorators.js'
6
7
 
7
8
  /**
8
9
  http parameters editor element
@@ -12,61 +13,52 @@ Example:
12
13
  <things-editor-http-parameters value=${map}>
13
14
  </things-editor-http-parameters>
14
15
  */
16
+ @customElement('things-editor-http-parameters')
15
17
  export default class ThingsEditorHttpParameters extends LitElement {
16
- static get properties() {
17
- return {
18
- value: Object
19
- }
20
- }
21
-
22
- static get styles() {
23
- return [
24
- css`
25
- :host {
26
- display: flex;
27
- flex-direction: column;
28
- align-content: center;
29
-
30
- width: 100%;
31
- overflow: hidden;
32
- border: 1px solid #ccc;
33
- margin: 5px 0;
34
-
35
- background-color: #ddd;
36
- }
18
+ static styles = [
19
+ css`
20
+ :host {
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-content: center;
24
+
25
+ width: 100%;
26
+ overflow: hidden;
27
+ border: 1px solid #ccc;
28
+ margin: 5px 0;
29
+
30
+ background-color: #ddd;
31
+ }
37
32
 
38
- div {
39
- display: flex;
40
- flex-flow: row nowrap;
41
- align-items: center;
42
- }
33
+ div {
34
+ display: flex;
35
+ flex-flow: row nowrap;
36
+ align-items: center;
37
+ }
43
38
 
44
- div > * {
45
- min-width: 0px;
46
- min-height: 20px;
47
- margin: 2px;
48
- padding: 0;
49
- }
39
+ div > * {
40
+ min-width: 0px;
41
+ min-height: 20px;
42
+ margin: 2px;
43
+ padding: 0;
44
+ }
50
45
 
51
- button {
52
- width: 20px;
53
- text-align: center;
54
- border-radius: 50%;
55
- font-size: 1em;
56
- }
46
+ button {
47
+ width: 20px;
48
+ text-align: center;
49
+ border-radius: 50%;
50
+ font-size: 1em;
51
+ }
57
52
 
58
- input {
59
- flex: 1;
60
- }
61
- `
62
- ]
63
- }
53
+ input {
54
+ flex: 1;
55
+ }
56
+ `
57
+ ]
64
58
 
65
- constructor() {
66
- super()
59
+ @property({ type: Object }) value: { [key: string]: string } = {}
67
60
 
68
- this.value = {}
69
- }
61
+ _changingNow: boolean = false
70
62
 
71
63
  firstUpdated() {
72
64
  this.renderRoot.addEventListener('change', this._onChange.bind(this))
@@ -87,7 +79,7 @@ export default class ThingsEditorHttpParameters extends LitElement {
87
79
  <div data-record-new>
88
80
  <input type="text" data-key placeholder="key" value="" />
89
81
  <input type="text" data-value placeholder="value" value="" />
90
- <button class="record-action" @click=${e => this._add(e)} tabindex="-1">+</button>
82
+ <button class="record-action" @click=${e => this._add()} tabindex="-1">+</button>
91
83
  </div>
92
84
  `
93
85
  }
@@ -122,7 +114,7 @@ export default class ThingsEditorHttpParameters extends LitElement {
122
114
  this._changingNow = false
123
115
  }
124
116
 
125
- _build(includeNewRecord) {
117
+ _build(includeNewRecord?) {
126
118
  if (includeNewRecord) var records = this.renderRoot.querySelectorAll('[data-record],[data-record-new]')
127
119
  else var records = this.renderRoot.querySelectorAll('[data-record]')
128
120
 
@@ -131,11 +123,11 @@ export default class ThingsEditorHttpParameters extends LitElement {
131
123
  for (var i = 0; i < records.length; i++) {
132
124
  var record = records[i]
133
125
 
134
- var key = record.querySelector('[data-key]').value
126
+ var key = (record.querySelector('[data-key]') as HTMLInputElement).value
135
127
  var inputs = record.querySelectorAll('[data-value]:not([style*="display: none"])')
136
128
  if (!inputs || inputs.length == 0) continue
137
129
 
138
- var input = inputs[inputs.length - 1]
130
+ var input = inputs[inputs.length - 1] as HTMLInputElement
139
131
 
140
132
  var value = input.value
141
133
 
@@ -148,7 +140,7 @@ export default class ThingsEditorHttpParameters extends LitElement {
148
140
 
149
141
  /* map아이템들을 template(dom-repeat)용 배열로 변환하는 함수 */
150
142
  _toArray(map) {
151
- var array = []
143
+ var array: { key: any; value: any }[] = []
152
144
 
153
145
  for (var key in map) {
154
146
  array.push({
@@ -160,17 +152,17 @@ export default class ThingsEditorHttpParameters extends LitElement {
160
152
  return array
161
153
  }
162
154
 
163
- _add(e) {
155
+ _add() {
164
156
  this._build(true)
165
157
 
166
158
  var inputs = this.renderRoot.querySelectorAll('[data-record-new] input:not([style*="display: none"])')
167
159
 
168
160
  for (var i = 0; i < inputs.length; i++) {
169
- let input = inputs[i]
161
+ let input = inputs[i] as HTMLInputElement
170
162
  input.value = ''
171
163
  }
172
164
 
173
- inputs[0].focus()
165
+ ;(inputs[0] as HTMLInputElement).focus()
174
166
  }
175
167
 
176
168
  _delete(e) {
@@ -179,5 +171,3 @@ export default class ThingsEditorHttpParameters extends LitElement {
179
171
  this._build()
180
172
  }
181
173
  }
182
-
183
- customElements.define('things-editor-http-parameters', ThingsEditorHttpParameters)
@@ -1,6 +1,7 @@
1
1
  import '@material/mwc-icon'
2
2
 
3
3
  import gql from 'graphql-tag'
4
+ import { customElement } from 'lit/decorators.js'
4
5
 
5
6
  import { client } from '@operato/graphql'
6
7
 
@@ -19,6 +20,7 @@ const FETCH_CONNECTIONS_GQL = gql`
19
20
  }
20
21
  `
21
22
 
23
+ @customElement('connection-selector')
22
24
  export class ConnectionSelector extends DynamicSelector {
23
25
  async getOptions() {
24
26
  var response = await client.query({
@@ -28,5 +30,3 @@ export class ConnectionSelector extends DynamicSelector {
28
30
  return (response && response.data && response.data.connections.items) || []
29
31
  }
30
32
  }
31
-
32
- customElements.define('connection-selector', ConnectionSelector)
@@ -1,6 +1,7 @@
1
1
  import '@material/mwc-icon'
2
2
 
3
3
  import gql from 'graphql-tag'
4
+ import { customElement } from 'lit/decorators.js'
4
5
 
5
6
  import { client } from '@operato/graphql'
6
7
 
@@ -19,6 +20,7 @@ const FETCH_CONNECTORS_GQL = gql`
19
20
  }
20
21
  `
21
22
 
23
+ @customElement('connector-selector')
22
24
  export class ConnectorSelector extends DynamicSelector {
23
25
  async getOptions() {
24
26
  var response = await client.query({
@@ -28,5 +30,3 @@ export class ConnectorSelector extends DynamicSelector {
28
30
  return (response && response.data && response.data.connectors.items) || []
29
31
  }
30
32
  }
31
-
32
- customElements.define('connector-selector', ConnectorSelector)
@@ -6,24 +6,26 @@ import { html } from 'lit'
6
6
  const EMPTY_OPTION = { name: '', value: '' }
7
7
 
8
8
  export class DynamicSelector extends OxGristEditor {
9
- getOptions() {
9
+ options: any
10
+
11
+ async getOptions() {
10
12
  return []
11
13
  }
12
14
 
13
15
  async firstUpdated() {
14
16
  super.firstUpdated()
15
17
 
16
- var { options } = this.column.record || {}
18
+ var { options } = this.column.record || []
17
19
 
18
20
  if (!options) {
19
- var options = await this.getOptions()
20
- if (options.unshift) {
21
- options.unshift(EMPTY_OPTION)
21
+ var dynamic: any = await this.getOptions()
22
+ if (dynamic.unshift) {
23
+ dynamic.unshift(EMPTY_OPTION)
22
24
  } else {
23
- options = [EMPTY_OPTION]
25
+ dynamic = [EMPTY_OPTION]
24
26
  }
25
27
 
26
- this.column.record.options = options
28
+ this.column.record.options = dynamic
27
29
  this.requestUpdate()
28
30
  }
29
31
  }
@@ -2,6 +2,7 @@ import { OxGristEditor } from '@operato/data-grist'
2
2
  import { client } from '@operato/graphql'
3
3
  import gql from 'graphql-tag'
4
4
  import { html } from 'lit'
5
+ import { customElement } from 'lit/decorators.js'
5
6
 
6
7
  const FETCH_TASK_TYPES_GQL = gql`
7
8
  query ($connectionName: String!) {
@@ -15,7 +16,10 @@ const FETCH_TASK_TYPES_GQL = gql`
15
16
 
16
17
  const EMPTY_OPTION = { name: '', value: '' }
17
18
 
19
+ @customElement('task-type-selector')
18
20
  export class TaskTypeSelector extends OxGristEditor {
21
+ options: any
22
+
19
23
  async getOptions() {
20
24
  var { connectionName = '' } = this.column.record
21
25
  if (typeof connectionName === 'function') {
@@ -59,5 +63,3 @@ export class TaskTypeSelector extends OxGristEditor {
59
63
  `
60
64
  }
61
65
  }
62
-
63
- customElements.define('task-type-selector', TaskTypeSelector)
@@ -0,0 +1,2 @@
1
+ export * from './pages/scenario.js'
2
+ export * from './pages/connection.js'
@@ -1,55 +1,55 @@
1
- import '@operato/data-grist'
1
+ import '@operato/data-grist/ox-grist.js'
2
2
 
3
3
  import gql from 'graphql-tag'
4
4
  import { css, html } from 'lit'
5
+ import { customElement, property, query } from 'lit/decorators.js'
5
6
  import { connect } from 'pwa-helpers/connect-mixin'
6
7
 
8
+ import { DataGrist } from '@operato/data-grist/ox-grist.js'
7
9
  import { client } from '@operato/graphql'
8
10
  import { HelpDecoratedRenderer } from '@operato/help/help-decorated-renderer.js'
9
11
  import { i18next, localize } from '@operato/i18n'
10
12
  import { PageView, store } from '@operato/shell'
11
- import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
13
+ import { CommonButtonStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles'
12
14
  import { isMobileDevice } from '@operato/utils'
13
15
 
16
+ @customElement('connection-page')
14
17
  export class Connection extends connect(store)(localize(i18next)(PageView)) {
15
- static get properties() {
16
- return {
17
- active: String,
18
- gristConfig: Object,
19
- connectors: Object
20
- }
21
- }
18
+ static styles = [
19
+ CommonGristStyles,
20
+ ScrollbarStyles,
21
+ css`
22
+ :host {
23
+ display: flex;
24
+ flex-direction: column;
25
+
26
+ overflow: hidden;
27
+ }
22
28
 
23
- static get styles() {
24
- return [
25
- ScrollbarStyles,
26
- css`
27
- :host {
28
- display: flex;
29
- flex-direction: column;
29
+ ox-grist {
30
+ overflow-y: auto;
31
+ flex: 1;
32
+ }
30
33
 
31
- overflow: hidden;
32
- }
34
+ #filters {
35
+ display: flex;
36
+ flex-direction: row;
37
+ justify-content: space-between;
33
38
 
34
- ox-grist {
35
- overflow-y: auto;
36
- flex: 1;
37
- }
39
+ background-color: white;
40
+ }
38
41
 
39
- #filters {
40
- display: flex;
41
- flex-direction: row;
42
- justify-content: space-between;
42
+ #filters > * {
43
+ padding: var(--padding-default) var(--padding-wide);
44
+ }
45
+ `
46
+ ]
43
47
 
44
- background-color: white;
45
- }
48
+ @property({ type: Boolean }) active: boolean = false
49
+ @property({ type: Object }) gristConfig: any
50
+ @property({ type: Object }) connectors: any
46
51
 
47
- #filters > * {
48
- padding: var(--padding-default) var(--padding-wide);
49
- }
50
- `
51
- ]
52
- }
52
+ @query('ox-grist') grist!: DataGrist
53
53
 
54
54
  get context() {
55
55
  return {
@@ -58,7 +58,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
58
58
  this.grist.searchText = search
59
59
  },
60
60
  placeholder: i18next.t('text.connection list'),
61
- value: this.grist.searchText
61
+ value: this.grist?.searchText || ''
62
62
  },
63
63
  // 필터가 설정되면, 아래 코멘트 해제
64
64
  // filter: {
@@ -90,15 +90,10 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
90
90
  .config=${this.gristConfig}
91
91
  .fetchHandler=${this.fetchHandler.bind(this)}
92
92
  >
93
- <div slot="headroom" id="filters"></div>
94
93
  </ox-grist>
95
94
  `
96
95
  }
97
96
 
98
- get grist() {
99
- return this.renderRoot.querySelector('ox-grist')
100
- }
101
-
102
97
  async pageInitialized() {
103
98
  this.fetchConnectors()
104
99
 
@@ -211,7 +206,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
211
206
  record: {
212
207
  editable: true,
213
208
  options: async (value, column, record, row, field) => {
214
- const { name, help, parameterSpec: spec } = record.type ? this.connectors?.[record.type] : {}
209
+ const { name, help, parameterSpec: spec } = record.type ? this.connectors?.[record.type] : ({} as any)
215
210
  const context = this.grist
216
211
  return { name, help, spec, context }
217
212
  },
@@ -365,10 +360,11 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
365
360
  }
366
361
 
367
362
  async _updateConnectionManager() {
368
- let patches = this.grist.dirtyRecords
363
+ var patches = this.grist.dirtyRecords
364
+
369
365
  if (patches && patches.length) {
370
366
  patches = patches.map(connection => {
371
- let patchField = connection.id ? { id: connection.id } : {}
367
+ let patchField: any = connection.id ? { id: connection.id } : {}
372
368
  const dirtyFields = connection.__dirtyfields__
373
369
  for (let key in dirtyFields) {
374
370
  patchField[key] = dirtyFields[key].after
@@ -455,5 +451,3 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
455
451
  )
456
452
  }
457
453
  }
458
-
459
- window.customElements.define('connection-page', Connection)
@@ -5,6 +5,7 @@ import '../viewparts/connections-monitor'
5
5
 
6
6
  import gql from 'graphql-tag'
7
7
  import { css, html } from 'lit'
8
+ import { customElement, property, query } from 'lit/decorators.js'
8
9
 
9
10
  import { client, subscribe } from '@operato/graphql'
10
11
  import { i18next, localize } from '@operato/i18n'
@@ -30,74 +31,73 @@ function toColor(string) {
30
31
  return color
31
32
  }
32
33
 
34
+ @customElement('integration-monitor')
33
35
  export class IntegrationMonitor extends localize(i18next)(PageView) {
34
36
  static ScenarioInstanceStatus = ['READY', 'STARTED', 'STOPPED', 'HALTED']
35
37
 
36
- static get properties() {
37
- return {
38
- scenarios: Array,
39
- pendings: Array,
40
- connections: Array,
41
- colorIndex: Object
42
- }
43
- }
38
+ static styles = [
39
+ ScrollbarStyles,
40
+ css`
41
+ :host {
42
+ display: flex;
43
+ flex-direction: column;
44
44
 
45
- static get styles() {
46
- return [
47
- ScrollbarStyles,
48
- css`
49
- :host {
50
- display: flex;
51
- flex-direction: column;
45
+ overflow: hidden;
46
+ background-color: var(--main-section-background-color);
47
+ padding: var(--padding-wide);
48
+ }
52
49
 
53
- overflow: hidden;
54
- background-color: var(--main-section-background-color);
55
- padding: var(--padding-wide);
56
- }
50
+ integration-summary {
51
+ margin-bottom: var(--margin-wide);
52
+ }
57
53
 
54
+ content {
55
+ flex: 1;
56
+ display: flex;
57
+ flex-direction: row;
58
+
59
+ overflow: hidden;
60
+ }
61
+
62
+ connections-monitor {
63
+ width: 180px;
64
+ }
65
+
66
+ scenarios-monitor {
67
+ flex: 1;
68
+ margin: 0 var(--margin-wide) 0 0;
69
+ }
70
+
71
+ @media screen and (max-width: 480px) {
72
+ :host {
73
+ padding: var(--padding-default);
74
+ }
58
75
  integration-summary {
59
- margin-bottom: var(--margin-wide);
76
+ margin-bottom: var(--margin-default);
60
77
  }
61
-
62
78
  content {
63
- flex: 1;
64
- display: flex;
65
- flex-direction: row;
66
-
67
- overflow: hidden;
79
+ display: block;
80
+ overflow: auto;
81
+ }
82
+ scenarios-monitor {
83
+ min-height: 350px;
84
+ margin: 0 0 var(--margin-default) 0;
68
85
  }
69
-
70
86
  connections-monitor {
71
- width: 180px;
87
+ width: initial;
72
88
  }
89
+ }
90
+ `
91
+ ]
73
92
 
74
- scenarios-monitor {
75
- flex: 1;
76
- margin: 0 var(--margin-wide) 0 0;
77
- }
93
+ @property({ type: Array }) scenarios: any
94
+ @property({ type: Array }) pendings: any
95
+ @property({ type: Array }) connections: any
96
+ @property({ type: Object }) colorIndex: any
78
97
 
79
- @media screen and (max-width: 480px) {
80
- :host {
81
- padding: var(--padding-default);
82
- }
83
- integration-summary {
84
- margin-bottom: var(--margin-default);
85
- }
86
- content {
87
- display: block;
88
- overflow: auto;
89
- }
90
- scenarios-monitor {
91
- min-height: 350px;
92
- margin: 0 0 var(--margin-default) 0;
93
- }
94
- connections-monitor {
95
- width: initial;
96
- }
97
- }
98
- `
99
- ]
100
- }
98
+ scenarioInstanceStateSubscription: any
99
+ scenarioQueueStateSubscription: any
100
+ connectionStateSubscription: any
101
101
 
102
102
  get context() {
103
103
  return {
@@ -359,5 +359,3 @@ export class IntegrationMonitor extends localize(i18next)(PageView) {
359
359
  delete this.connectionStateSubscription
360
360
  }
361
361
  }
362
-
363
- window.customElements.define('integration-monitor', IntegrationMonitor)