@things-factory/integration-ui 4.1.27 → 5.0.0-alpha.10
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/bootstrap.js +2 -1
- package/client/editors/entity-editor.js +2 -2
- package/client/editors/entity-selector.js +4 -4
- package/client/editors/things-editor-entity-selector.js +2 -2
- package/client/grist/connection-selector.js +4 -2
- package/client/grist/connector-selector.js +4 -2
- package/client/grist/crontab-editor-popup.js +2 -2
- package/client/grist/crontab-editor.js +2 -2
- package/client/grist/json-editor.js +1 -1
- package/client/grist/json-grist-editor.js +1 -1
- package/client/grist/parameters-editor-builder.js +4 -4
- package/client/grist/parameters-editor-popup.js +3 -3
- package/client/grist/parameters-editor.js +14 -12
- package/client/grist/task-type-selector.js +1 -1
- package/client/pages/connection.js +4 -1
- package/client/pages/integration-monitor.js +4 -3
- package/client/pages/scenario-detail.js +3 -46
- package/client/pages/scenario-importer.js +3 -3
- package/client/pages/scenario.js +8 -5
- package/client/viewparts/connections-monitor.js +2 -2
- package/client/viewparts/monitoring-summary.js +2 -2
- package/client/viewparts/pending-q-monitor.js +4 -4
- package/client/viewparts/scenario-instance-log-view.js +3 -2
- package/client/viewparts/scenario-instance-monitor.js +4 -4
- package/client/viewparts/scenario-instance-view.js +3 -2
- package/client/viewparts/scenario-monitor.js +4 -4
- package/client/viewparts/scenarios-monitor.js +2 -2
- package/package.json +14 -14
package/client/bootstrap.js
CHANGED
|
@@ -7,7 +7,8 @@ import { ConnectorSelector } from './grist/connector-selector'
|
|
|
7
7
|
import { CrontabEditor } from './grist/crontab-editor'
|
|
8
8
|
import { JsonGristEditor } from './grist/json-grist-editor'
|
|
9
9
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
10
|
-
import { ParametersEditor } from '
|
|
10
|
+
import { ParametersEditor } from '@operato/app/grist/parameters-editor.js'
|
|
11
|
+
// import { ParametersEditor } from './grist/parameters-editor'
|
|
11
12
|
import { TaskTypeSelector } from './grist/task-type-selector'
|
|
12
13
|
import { registerEditor as registerGristEditor } from '@operato/data-grist'
|
|
13
14
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import './things-editor-entity-selector'
|
|
6
6
|
|
|
7
7
|
import { html } from 'lit'
|
|
8
|
+
import cloneDeep from 'lodash-es/cloneDeep'
|
|
8
9
|
|
|
9
10
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
10
|
-
import { deepClone } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
export class PropertyEditorEntitySelector extends OxPropertyEditor {
|
|
13
13
|
static get styles() {
|
|
@@ -41,7 +41,7 @@ export class PropertyEditorEntitySelector extends OxPropertyEditor {
|
|
|
41
41
|
_valueChanged(e) {
|
|
42
42
|
e.stopPropagation()
|
|
43
43
|
|
|
44
|
-
this.value =
|
|
44
|
+
this.value = cloneDeep(e.target[this.valueProperty])
|
|
45
45
|
|
|
46
46
|
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))
|
|
47
47
|
|
|
@@ -3,10 +3,10 @@ import '@operato/data-grist'
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
|
+
import { buildArgs, client } from '@operato/graphql'
|
|
7
|
+
import { i18next } from '@operato/i18n'
|
|
8
|
+
import { isMobileDevice } from '@operato/utils'
|
|
6
9
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
7
|
-
import { i18next } from '@things-factory/i18n-base'
|
|
8
|
-
import { client } from '@things-factory/shell'
|
|
9
|
-
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
10
10
|
|
|
11
11
|
export class EntitySelector extends LitElement {
|
|
12
12
|
static get properties() {
|
|
@@ -104,7 +104,7 @@ export class EntitySelector extends LitElement {
|
|
|
104
104
|
const response = await client.query({
|
|
105
105
|
query: gql`
|
|
106
106
|
query {
|
|
107
|
-
${this.queryName} (${
|
|
107
|
+
${this.queryName} (${buildArgs(await this._buildConditions(page, limit, sorters))}) {
|
|
108
108
|
${this.getSelectFields()}
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -7,8 +7,8 @@ import './entity-selector'
|
|
|
7
7
|
|
|
8
8
|
import { css, html, LitElement } from 'lit'
|
|
9
9
|
|
|
10
|
-
import { i18next } from '@
|
|
11
|
-
import { openPopup } from '@
|
|
10
|
+
import { i18next } from '@operato/i18n'
|
|
11
|
+
import { openPopup } from '@operato/layout'
|
|
12
12
|
|
|
13
13
|
export default class ThingsEditorEntitySelector extends LitElement {
|
|
14
14
|
static get properties() {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import gql from 'graphql-tag'
|
|
2
1
|
import '@material/mwc-icon'
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import gql from 'graphql-tag'
|
|
4
|
+
|
|
5
|
+
import { client } from '@operato/graphql'
|
|
6
|
+
|
|
5
7
|
import { DynamicSelector } from './dynamic-selector'
|
|
6
8
|
|
|
7
9
|
const FETCH_CONNECTIONS_GQL = gql`
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import gql from 'graphql-tag'
|
|
2
1
|
import '@material/mwc-icon'
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import gql from 'graphql-tag'
|
|
4
|
+
|
|
5
|
+
import { client } from '@operato/graphql'
|
|
6
|
+
|
|
5
7
|
import { DynamicSelector } from './dynamic-selector'
|
|
6
8
|
|
|
7
9
|
const FETCH_CONNECTORS_GQL = gql`
|
|
@@ -2,8 +2,8 @@ import '@material/mwc-button'
|
|
|
2
2
|
|
|
3
3
|
import { css, html, LitElement } from 'lit'
|
|
4
4
|
|
|
5
|
-
import { i18next } from '@
|
|
6
|
-
import { ScrollbarStyles } from '@
|
|
5
|
+
import { i18next } from '@operato/i18n'
|
|
6
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
7
7
|
|
|
8
8
|
function createCronRegex(type) {
|
|
9
9
|
// https://gist.github.com/dkandalov/a2aed17cfdeb65243022
|
|
@@ -6,8 +6,8 @@ import './crontab-editor-popup'
|
|
|
6
6
|
import { html } from 'lit'
|
|
7
7
|
|
|
8
8
|
import { InputEditor } from '@operato/data-grist'
|
|
9
|
-
import { i18next } from '@
|
|
10
|
-
import { openPopup } from '@
|
|
9
|
+
import { i18next } from '@operato/i18n'
|
|
10
|
+
import { openPopup } from '@operato/layout'
|
|
11
11
|
|
|
12
12
|
export class CrontabEditor extends InputEditor {
|
|
13
13
|
get editorTemplate() {
|
|
@@ -12,7 +12,7 @@ import NightThemeStyle from '!!text-loader!codemirror/theme/night.css'
|
|
|
12
12
|
import CodeMirror from 'codemirror'
|
|
13
13
|
import { css, html, LitElement, unsafeCSS } from 'lit'
|
|
14
14
|
|
|
15
|
-
import { i18next } from '@
|
|
15
|
+
import { i18next } from '@operato/i18n'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
WEB Component for code-mirror json editor.
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import '@
|
|
5
|
+
import '@operato/app/property-editor.js' /* for registering property editors */
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import { connect } from 'pwa-helpers/connect-mixin'
|
|
7
|
+
import { LitElement, html } from 'lit'
|
|
9
8
|
|
|
10
9
|
import { OxPropertyEditor } from '@operato/property-editor'
|
|
11
|
-
import {
|
|
10
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
11
|
+
import { store } from '@operato/shell'
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
모든 에디터들은 change 이벤트를 지원해야 한다. 또한, 모든 에디터들은 value속성에 값을 가져야 한다.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css, html, LitElement } from 'lit'
|
|
2
2
|
|
|
3
|
-
import { i18next } from '@
|
|
4
|
-
import { ScrollbarStyles } from '@
|
|
3
|
+
import { i18next } from '@operato/i18n'
|
|
4
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
5
5
|
|
|
6
6
|
export class ParametersEditorPopup extends LitElement {
|
|
7
7
|
static get properties() {
|
|
@@ -104,7 +104,7 @@ export class ParametersEditorPopup extends LitElement {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
onconfirm(e) {
|
|
107
|
-
this.confirmCallback && this.confirmCallback(this.value
|
|
107
|
+
this.confirmCallback && this.confirmCallback(this.value)
|
|
108
108
|
history.back()
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -7,8 +7,8 @@ import './parameters-editor-popup'
|
|
|
7
7
|
|
|
8
8
|
import { css, html, LitElement } from 'lit'
|
|
9
9
|
|
|
10
|
-
import { i18next } from '@
|
|
11
|
-
import { openPopup } from '@
|
|
10
|
+
import { i18next } from '@operato/i18n'
|
|
11
|
+
import { openPopup } from '@operato/layout'
|
|
12
12
|
|
|
13
13
|
export class ParametersEditor extends LitElement {
|
|
14
14
|
static get properties() {
|
|
@@ -35,7 +35,8 @@ export class ParametersEditor extends LitElement {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
render() {
|
|
38
|
-
|
|
38
|
+
const value = typeof this.value === 'object' ? JSON.stringify(this.value) : this.value
|
|
39
|
+
return html` ${value || ''} `
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
async firstUpdated() {
|
|
@@ -55,6 +56,14 @@ export class ParametersEditor extends LitElement {
|
|
|
55
56
|
delete this.popup
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
var { options } = this.column.record
|
|
60
|
+
|
|
61
|
+
if (typeof options === 'function') {
|
|
62
|
+
options = await options.call(this, this.value, this.column, this.record, this.row, this.field)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const { name, help, spec, context, objectified = false } = options
|
|
66
|
+
|
|
58
67
|
const confirmCallback = newval => {
|
|
59
68
|
this.dispatchEvent(
|
|
60
69
|
new CustomEvent('field-change', {
|
|
@@ -62,7 +71,7 @@ export class ParametersEditor extends LitElement {
|
|
|
62
71
|
composed: true,
|
|
63
72
|
detail: {
|
|
64
73
|
before: this.value,
|
|
65
|
-
after: newval,
|
|
74
|
+
after: !objectified ? JSON.stringify(newval) : newval,
|
|
66
75
|
record: this.record,
|
|
67
76
|
column: this.column,
|
|
68
77
|
row: this.row
|
|
@@ -71,19 +80,12 @@ export class ParametersEditor extends LitElement {
|
|
|
71
80
|
)
|
|
72
81
|
}
|
|
73
82
|
|
|
74
|
-
var { options } = this.column.record
|
|
75
|
-
if (typeof options === 'function') {
|
|
76
|
-
options = await options.call(this, this.value, this.column, this.record, this.row, this.field)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
83
|
try {
|
|
80
|
-
var value = JSON.parse(this.value)
|
|
84
|
+
var value = !objectified && typeof this.value === 'string' ? JSON.parse(this.value) : this.value
|
|
81
85
|
} catch (e) {
|
|
82
86
|
var value = {}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
const { name, help, spec, context } = options
|
|
86
|
-
|
|
87
89
|
/*
|
|
88
90
|
주의 : 이 팝업 템플릿은 layout 모듈에 의해서 render 되므로,
|
|
89
91
|
layout의 구성에 변화가 발생하면, 다시 render된다.
|
|
@@ -2,7 +2,7 @@ import gql from 'graphql-tag'
|
|
|
2
2
|
import { html } from 'lit'
|
|
3
3
|
|
|
4
4
|
import { InputEditor } from '@operato/data-grist'
|
|
5
|
-
import { client } from '@
|
|
5
|
+
import { client } from '@operato/graphql'
|
|
6
6
|
|
|
7
7
|
const FETCH_TASK_TYPES_GQL = gql`
|
|
8
8
|
query ($connectionName: String!) {
|
|
@@ -4,11 +4,12 @@ import gql from 'graphql-tag'
|
|
|
4
4
|
import { css, html } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
6
6
|
|
|
7
|
+
import { client } from '@operato/graphql'
|
|
7
8
|
import { HelpDecoratedRenderer } from '@operato/help/help-decorated-renderer.js'
|
|
8
9
|
import { i18next, localize } from '@operato/i18n'
|
|
10
|
+
import { PageView, store } from '@operato/shell'
|
|
9
11
|
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
|
10
12
|
import { isMobileDevice } from '@operato/utils'
|
|
11
|
-
import { client, PageView, store } from '@things-factory/shell'
|
|
12
13
|
|
|
13
14
|
export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
14
15
|
static get properties() {
|
|
@@ -39,6 +40,8 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
39
40
|
display: flex;
|
|
40
41
|
flex-direction: row;
|
|
41
42
|
justify-content: space-between;
|
|
43
|
+
|
|
44
|
+
background-color: white;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
#filters > * {
|
|
@@ -6,9 +6,10 @@ import '../viewparts/connections-monitor'
|
|
|
6
6
|
import gql from 'graphql-tag'
|
|
7
7
|
import { css, html } from 'lit'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { client, subscribe } from '@operato/graphql'
|
|
10
|
+
import { i18next, localize } from '@operato/i18n'
|
|
11
|
+
import { PageView } from '@operato/shell'
|
|
12
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
12
13
|
|
|
13
14
|
function IS_SCENARIO_RUNNING(state) {
|
|
14
15
|
return state && state !== 'UNLOADED'
|
|
@@ -5,7 +5,6 @@ import { client } from '@operato/graphql'
|
|
|
5
5
|
import { HelpDecoratedRenderer } from '@operato/help/help-decorated-renderer.js'
|
|
6
6
|
import { i18next, localize } from '@operato/i18n'
|
|
7
7
|
import { isMobileDevice } from '@operato/utils'
|
|
8
|
-
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
9
8
|
|
|
10
9
|
class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
11
10
|
static get properties() {
|
|
@@ -18,7 +17,6 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
18
17
|
|
|
19
18
|
static get styles() {
|
|
20
19
|
return [
|
|
21
|
-
MultiColumnFormStyles,
|
|
22
20
|
css`
|
|
23
21
|
:host {
|
|
24
22
|
display: flex;
|
|
@@ -81,7 +79,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
81
79
|
gutterName: 'button',
|
|
82
80
|
icon: 'add',
|
|
83
81
|
handlers: {
|
|
84
|
-
click:
|
|
82
|
+
click: 'record-copy'
|
|
85
83
|
}
|
|
86
84
|
},
|
|
87
85
|
{ type: 'gutter', gutterName: 'sequence' },
|
|
@@ -90,7 +88,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
90
88
|
gutterName: 'button',
|
|
91
89
|
icon: 'arrow_upward',
|
|
92
90
|
handlers: {
|
|
93
|
-
click:
|
|
91
|
+
click: 'move-up'
|
|
94
92
|
}
|
|
95
93
|
},
|
|
96
94
|
{
|
|
@@ -98,7 +96,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
98
96
|
gutterName: 'button',
|
|
99
97
|
icon: 'arrow_downward',
|
|
100
98
|
handlers: {
|
|
101
|
-
click:
|
|
99
|
+
click: 'move-down'
|
|
102
100
|
}
|
|
103
101
|
},
|
|
104
102
|
{
|
|
@@ -320,47 +318,6 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
320
318
|
)
|
|
321
319
|
}
|
|
322
320
|
|
|
323
|
-
_moveRecord(steps, columns, data, column, record, rowIndex) {
|
|
324
|
-
var moveTo = rowIndex + steps,
|
|
325
|
-
length = data.records.length
|
|
326
|
-
if (rowIndex >= length || moveTo < 0 || moveTo >= length) return
|
|
327
|
-
var grist = this.dataGrist
|
|
328
|
-
grist._data.records.splice(rowIndex, 1)
|
|
329
|
-
grist._data.records.splice(moveTo, 0, record)
|
|
330
|
-
grist.dispatchEvent(
|
|
331
|
-
new CustomEvent('record-change', {
|
|
332
|
-
bubbles: true,
|
|
333
|
-
composed: true
|
|
334
|
-
})
|
|
335
|
-
)
|
|
336
|
-
grist.grist.dispatchEvent(
|
|
337
|
-
new CustomEvent('focus-change', {
|
|
338
|
-
bubbles: true,
|
|
339
|
-
composed: true,
|
|
340
|
-
detail: {
|
|
341
|
-
row: rowIndex + steps,
|
|
342
|
-
column: column
|
|
343
|
-
}
|
|
344
|
-
})
|
|
345
|
-
)
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
_copyRecord(columns, data, column, record, rowIndex) {
|
|
349
|
-
if (rowIndex >= data.records.length) return
|
|
350
|
-
var grist = this.dataGrist
|
|
351
|
-
var copiedRecord = {}
|
|
352
|
-
this.select.forEach(field => {
|
|
353
|
-
copiedRecord[field] = record[field]
|
|
354
|
-
})
|
|
355
|
-
grist._data.records.splice(rowIndex + 1, 0, copiedRecord)
|
|
356
|
-
grist.dispatchEvent(
|
|
357
|
-
new CustomEvent('record-change', {
|
|
358
|
-
bubbles: true,
|
|
359
|
-
composed: true
|
|
360
|
-
})
|
|
361
|
-
)
|
|
362
|
-
}
|
|
363
|
-
|
|
364
321
|
requestRefresh() {
|
|
365
322
|
this.dispatchEvent(new CustomEvent('requestRefresh'))
|
|
366
323
|
}
|
|
@@ -3,9 +3,9 @@ import '@operato/data-grist'
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { isMobileDevice } from '@
|
|
6
|
+
import { client } from '@operato/graphql'
|
|
7
|
+
import { i18next } from '@operato/i18n'
|
|
8
|
+
import { isMobileDevice } from '@operato/utils'
|
|
9
9
|
|
|
10
10
|
export class ScenarioImporter extends LitElement {
|
|
11
11
|
static get properties() {
|
package/client/pages/scenario.js
CHANGED
|
@@ -7,11 +7,12 @@ import { css, html } from 'lit'
|
|
|
7
7
|
import moment from 'moment-timezone'
|
|
8
8
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { client } from '@operato/graphql'
|
|
11
|
+
import { i18next, localize } from '@operato/i18n'
|
|
12
|
+
import { notify, openPopup } from '@operato/layout'
|
|
13
|
+
import { navigate, PageView, store } from '@operato/shell'
|
|
14
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
|
15
|
+
import { isMobileDevice } from '@operato/utils'
|
|
15
16
|
|
|
16
17
|
function IS_SCENARIO_RUNNING(state) {
|
|
17
18
|
return state && state !== 'UNLOADED'
|
|
@@ -46,6 +47,8 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
46
47
|
display: flex;
|
|
47
48
|
flex-direction: row;
|
|
48
49
|
justify-content: space-between;
|
|
50
|
+
|
|
51
|
+
background-color: white;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
#filters > * {
|
|
@@ -3,8 +3,8 @@ import '@material/mwc-icon-button'
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
|
-
import { client } from '@
|
|
7
|
-
import { ScrollbarStyles } from '@
|
|
6
|
+
import { client } from '@operato/graphql'
|
|
7
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
8
8
|
|
|
9
9
|
export class ConnectionsMonitor extends LitElement {
|
|
10
10
|
static get styles() {
|
|
@@ -2,8 +2,8 @@ import '@operato/data-grist'
|
|
|
2
2
|
|
|
3
3
|
import { css, html, LitElement } from 'lit'
|
|
4
4
|
|
|
5
|
-
import { i18next, localize } from '@
|
|
6
|
-
import { ScrollbarStyles } from '@
|
|
5
|
+
import { i18next, localize } from '@operato/i18n'
|
|
6
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
7
7
|
|
|
8
8
|
export class IntegrationMonitoringSummary extends localize(i18next)(LitElement) {
|
|
9
9
|
static get properties() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
1
|
+
import { css, html, LitElement } from 'lit'
|
|
4
2
|
import { asyncReplace } from 'lit/directives/async-replace.js'
|
|
5
|
-
import { sleep } from '@things-factory/utils'
|
|
6
3
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js'
|
|
7
4
|
|
|
5
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
6
|
+
import { sleep } from '@operato/utils'
|
|
7
|
+
|
|
8
8
|
export class PendingQMonitor extends LitElement {
|
|
9
9
|
static get styles() {
|
|
10
10
|
return [
|
|
@@ -2,8 +2,9 @@ import gql from 'graphql-tag'
|
|
|
2
2
|
import { css, html, LitElement } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { subscribe } from '@operato/graphql'
|
|
6
|
+
import { store } from '@operato/shell'
|
|
7
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
7
8
|
|
|
8
9
|
export class ScenarioInstanceLogView extends connect(store)(LitElement) {
|
|
9
10
|
static get styles() {
|
|
@@ -5,10 +5,10 @@ import './scenario-instance-view'
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
6
|
import { css, html, LitElement } from 'lit'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { ScrollbarStyles } from '@
|
|
8
|
+
import { client } from '@operato/graphql'
|
|
9
|
+
import { i18next, localize } from '@operato/i18n'
|
|
10
|
+
import { notify, openPopup } from '@operato/layout'
|
|
11
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
12
12
|
|
|
13
13
|
function IS_SCENARIO_RUNNING(state) {
|
|
14
14
|
return state && state !== 'UNLOADED'
|
|
@@ -4,8 +4,9 @@ import gql from 'graphql-tag'
|
|
|
4
4
|
import { css, html, LitElement } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { subscribe } from '@operato/graphql'
|
|
8
|
+
import { store } from '@operato/shell'
|
|
9
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
9
10
|
|
|
10
11
|
export class ScenarioInstanceView extends connect(store)(LitElement) {
|
|
11
12
|
static get styles() {
|
|
@@ -5,10 +5,10 @@ import './scenario-instance-monitor'
|
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
6
|
import { css, html, LitElement } from 'lit'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { ScrollbarStyles } from '@
|
|
8
|
+
import { client } from '@operato/graphql'
|
|
9
|
+
import { i18next, localize } from '@operato/i18n'
|
|
10
|
+
import { notify, openPopup } from '@operato/layout'
|
|
11
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
12
12
|
|
|
13
13
|
function IS_SCENARIO_RUNNING(state) {
|
|
14
14
|
return state && state !== 'UNLOADED'
|
|
@@ -4,8 +4,8 @@ import './scenario-monitor'
|
|
|
4
4
|
|
|
5
5
|
import { css, html, LitElement } from 'lit'
|
|
6
6
|
|
|
7
|
-
import { i18next, localize } from '@
|
|
8
|
-
import { ScrollbarStyles } from '@
|
|
7
|
+
import { i18next, localize } from '@operato/i18n'
|
|
8
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
9
9
|
|
|
10
10
|
function IS_SCENARIO_RUNNING(state) {
|
|
11
11
|
return state && state !== 'UNLOADED'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.10",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@operato/
|
|
28
|
-
"@operato/
|
|
29
|
-
"@operato/
|
|
30
|
-
"@operato/
|
|
31
|
-
"@operato/
|
|
32
|
-
"@operato/
|
|
33
|
-
"@operato/
|
|
34
|
-
"@operato/
|
|
35
|
-
"@
|
|
36
|
-
"@things-factory/
|
|
37
|
-
"@things-factory/
|
|
38
|
-
"@things-factory/
|
|
27
|
+
"@operato/app": "^1.0.0-alpha.23",
|
|
28
|
+
"@operato/data-grist": "1.0.0-alpha.23",
|
|
29
|
+
"@operato/graphql": "1.0.0-alpha.23",
|
|
30
|
+
"@operato/help": "1.0.0-alpha.23",
|
|
31
|
+
"@operato/i18n": "1.0.0-alpha.23",
|
|
32
|
+
"@operato/layout": "1.0.0-alpha.23",
|
|
33
|
+
"@operato/property-editor": "1.0.0-alpha.23",
|
|
34
|
+
"@operato/styles": "1.0.0-alpha.23",
|
|
35
|
+
"@operato/utils": "1.0.0-alpha.23",
|
|
36
|
+
"@things-factory/export-base": "^5.0.0-alpha.10",
|
|
37
|
+
"@things-factory/import-base": "^5.0.0-alpha.10",
|
|
38
|
+
"@things-factory/integration-base": "^5.0.0-alpha.10",
|
|
39
39
|
"moment-timezone": "^0.5.27",
|
|
40
40
|
"subscriptions-transport-ws": "^0.11.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "24e85b0265d10cb664b8279bb927ea2a86227775"
|
|
43
43
|
}
|