@things-factory/integration-ui 4.0.7 → 4.0.12
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 +9 -12
- package/client/editors/entity-editor.js +7 -5
- package/client/editors/entity-selector.js +12 -10
- package/client/editors/property-editor.js +11 -11
- package/client/grist/crontab-editor.js +4 -3
- package/client/grist/dynamic-selector.js +2 -2
- package/client/grist/parameters-editor-builder.js +5 -5
- package/client/grist/task-type-selector.js +3 -4
- package/client/pages/connection.js +11 -12
- package/client/pages/scenario-detail.js +9 -8
- package/client/pages/scenario-importer.js +9 -7
- package/client/pages/scenario.js +13 -14
- package/client/viewparts/monitoring-summary.js +4 -2
- package/client/viewparts/scenario-instance-monitor.js +8 -8
- package/client/viewparts/scenario-monitor.js +7 -6
- package/client/viewparts/scenarios-monitor.js +6 -5
- package/package.json +8 -6
package/client/bootstrap.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@material/mwc-icon'
|
|
2
|
-
import { registerEditor as registerGristEditor } from '@things-factory/grist-ui'
|
|
3
|
-
import { ADD_MODELLER_EDITORS } from '@things-factory/modeller-ui'
|
|
4
|
-
import { store } from '@things-factory/shell'
|
|
5
2
|
import './editors/entity-editor'
|
|
6
3
|
import './editors/property-editor'
|
|
4
|
+
|
|
7
5
|
import { ConnectionSelector } from './grist/connection-selector'
|
|
8
6
|
import { ConnectorSelector } from './grist/connector-selector'
|
|
9
7
|
import { CrontabEditor } from './grist/crontab-editor'
|
|
10
8
|
import { JsonGristEditor } from './grist/json-grist-editor'
|
|
9
|
+
import { OxPropertyEditor } from '@operato/property-editor'
|
|
11
10
|
import { ParametersEditor } from './grist/parameters-editor'
|
|
12
11
|
import { TaskTypeSelector } from './grist/task-type-selector'
|
|
12
|
+
import { registerEditor as registerGristEditor } from '@operato/data-grist'
|
|
13
13
|
|
|
14
14
|
export default function bootstrap() {
|
|
15
15
|
registerGristEditor('task-type', TaskTypeSelector)
|
|
@@ -19,14 +19,11 @@ export default function bootstrap() {
|
|
|
19
19
|
registerGristEditor('parameters', ParametersEditor)
|
|
20
20
|
registerGristEditor('crontab', CrontabEditor)
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'entity-selector': 'property-editor-entity-selector',
|
|
29
|
-
'scenario-step-input': 'property-editor-scenario-step-input'
|
|
30
|
-
}
|
|
22
|
+
OxPropertyEditor.register({
|
|
23
|
+
'http-headers': 'property-editor-http-headers',
|
|
24
|
+
'http-parameters': 'property-editor-http-parameters',
|
|
25
|
+
'http-body': 'property-editor-http-body',
|
|
26
|
+
'entity-selector': 'property-editor-entity-selector',
|
|
27
|
+
'scenario-step-input': 'property-editor-scenario-step-input'
|
|
31
28
|
})
|
|
32
29
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import { html, css } from 'lit-element'
|
|
5
|
-
import { ThingsEditorProperty, ThingsEditorPropertyStyles } from '@things-factory/modeller-ui'
|
|
6
|
-
import { deepClone } from '@things-factory/utils'
|
|
7
4
|
|
|
8
5
|
import './things-editor-entity-selector'
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
import { css, html } from 'lit-element'
|
|
8
|
+
|
|
9
|
+
import { OxPropertyEditor } from '@operato/property-editor'
|
|
10
|
+
import { deepClone } from '@things-factory/utils'
|
|
11
|
+
|
|
12
|
+
export class PropertyEditorEntitySelector extends OxPropertyEditor {
|
|
11
13
|
static get styles() {
|
|
12
|
-
return [
|
|
14
|
+
return [...OxPropertyEditor.styles]
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
editorTemplate(props) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import '@operato/data-grist'
|
|
2
|
+
|
|
3
|
+
import { LitElement, css, html } from 'lit-element'
|
|
4
|
+
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
5
|
+
|
|
6
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
2
7
|
import { client } from '@things-factory/shell'
|
|
3
|
-
import { isMobileDevice, gqlBuilder } from '@things-factory/utils'
|
|
4
8
|
import gql from 'graphql-tag'
|
|
5
|
-
import {
|
|
6
|
-
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
7
|
-
import '@things-factory/grist-ui'
|
|
9
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
8
10
|
|
|
9
11
|
export class EntitySelector extends LitElement {
|
|
10
12
|
static get properties() {
|
|
@@ -32,7 +34,7 @@ export class EntitySelector extends LitElement {
|
|
|
32
34
|
background-color: #fff;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
ox-grist {
|
|
36
38
|
flex: 1;
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -66,12 +68,12 @@ export class EntitySelector extends LitElement {
|
|
|
66
68
|
.fields="${this.searchFields}"
|
|
67
69
|
></search-form>
|
|
68
70
|
|
|
69
|
-
<
|
|
71
|
+
<ox-grist
|
|
70
72
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
71
73
|
.config=${this.config}
|
|
72
74
|
.data=${this.data}
|
|
73
75
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
74
|
-
></
|
|
76
|
+
></ox-grist>
|
|
75
77
|
|
|
76
78
|
<div class="button-container">
|
|
77
79
|
<mwc-button @click=${this.oncancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>
|
|
@@ -81,7 +83,7 @@ export class EntitySelector extends LitElement {
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
get grist() {
|
|
84
|
-
return this.shadowRoot.querySelector('
|
|
86
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
oncancel(e) {
|
|
@@ -313,7 +315,7 @@ export class EntitySelector extends LitElement {
|
|
|
313
315
|
}
|
|
314
316
|
|
|
315
317
|
get selected() {
|
|
316
|
-
var grist = this.shadowRoot.querySelector('
|
|
318
|
+
var grist = this.shadowRoot.querySelector('ox-grist')
|
|
317
319
|
|
|
318
320
|
var selected = grist.selected
|
|
319
321
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import { html, css } from 'lit-element'
|
|
5
|
-
import { ThingsEditorProperty, ThingsEditorPropertyStyles } from '@things-factory/modeller-ui'
|
|
6
|
-
|
|
7
4
|
import './things-editor-http-headers'
|
|
8
5
|
import './things-editor-http-parameters'
|
|
9
6
|
import './things-editor-http-body'
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
import { OxPropertyEditor } from '@operato/property-editor'
|
|
9
|
+
import { html } from 'lit-element'
|
|
10
|
+
|
|
11
|
+
export class PropertyEditorScenarioStepInput extends OxPropertyEditor {
|
|
12
12
|
static get styles() {
|
|
13
|
-
return [
|
|
13
|
+
return [...OxPropertyEditor.styles]
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
editorTemplate(props) {
|
|
@@ -27,9 +27,9 @@ export class PropertyEditorScenarioStepInput extends ThingsEditorProperty {
|
|
|
27
27
|
|
|
28
28
|
customElements.define('property-editor-scenario-step-input', PropertyEditorScenarioStepInput)
|
|
29
29
|
|
|
30
|
-
export class PropertyEditorHttpHeaders extends
|
|
30
|
+
export class PropertyEditorHttpHeaders extends OxPropertyEditor {
|
|
31
31
|
static get styles() {
|
|
32
|
-
return [
|
|
32
|
+
return [...OxPropertyEditor.styles]
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
editorTemplate(props) {
|
|
@@ -45,9 +45,9 @@ export class PropertyEditorHttpHeaders extends ThingsEditorProperty {
|
|
|
45
45
|
|
|
46
46
|
customElements.define('property-editor-http-headers', PropertyEditorHttpHeaders)
|
|
47
47
|
|
|
48
|
-
export class PropertyEditorHttpParameters extends
|
|
48
|
+
export class PropertyEditorHttpParameters extends OxPropertyEditor {
|
|
49
49
|
static get styles() {
|
|
50
|
-
return [
|
|
50
|
+
return [...OxPropertyEditor.styles]
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
editorTemplate(props) {
|
|
@@ -63,9 +63,9 @@ export class PropertyEditorHttpParameters extends ThingsEditorProperty {
|
|
|
63
63
|
|
|
64
64
|
customElements.define('property-editor-http-parameters', PropertyEditorHttpParameters)
|
|
65
65
|
|
|
66
|
-
export class PropertyEditorHttpBody extends
|
|
66
|
+
export class PropertyEditorHttpBody extends OxPropertyEditor {
|
|
67
67
|
static get styles() {
|
|
68
|
-
return [
|
|
68
|
+
return [...OxPropertyEditor.styles]
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
editorTemplate(props) {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import '@material/mwc-button'
|
|
2
2
|
import '@material/mwc-fab'
|
|
3
3
|
import '@material/mwc-icon'
|
|
4
|
-
import { InputEditor } from '@things-factory/grist-ui'
|
|
5
|
-
import { openPopup } from '@things-factory/layout-base'
|
|
6
|
-
import { html } from 'lit-element'
|
|
7
4
|
import './crontab-editor-popup'
|
|
5
|
+
|
|
6
|
+
import { InputEditor } from '@operato/data-grist'
|
|
7
|
+
import { html } from 'lit-element'
|
|
8
8
|
import { i18next } from '@things-factory/i18n-base'
|
|
9
|
+
import { openPopup } from '@things-factory/layout-base'
|
|
9
10
|
|
|
10
11
|
export class CrontabEditor extends InputEditor {
|
|
11
12
|
get editorTemplate() {
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import '@things-factory/modeller-ui'
|
|
6
|
+
|
|
5
7
|
import { LitElement } from 'lit-element'
|
|
8
|
+
import { OxPropertyEditor } from '@operato/property-editor'
|
|
6
9
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
7
10
|
import { store } from '@things-factory/shell'
|
|
8
|
-
import '@things-factory/modeller-ui'
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
모든 에디터들은 change 이벤트를 지원해야 한다. 또한, 모든 에디터들은 value속성에 값을 가져야 한다.
|
|
@@ -60,14 +62,12 @@ class ParametersEditorBuilder extends connect(store)(LitElement) {
|
|
|
60
62
|
change.has('value') && this._setValues()
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
stateChanged(state) {
|
|
64
|
-
this.propertyEditor = state.modeller.editors
|
|
65
|
-
}
|
|
65
|
+
stateChanged(state) {}
|
|
66
66
|
|
|
67
67
|
_onPropsChanged(props) {
|
|
68
68
|
this.renderRoot.textContent = ''
|
|
69
69
|
;(props || []).forEach(prop => {
|
|
70
|
-
let elementType =
|
|
70
|
+
let elementType = OxPropertyEditor.getEditor(prop.type)
|
|
71
71
|
if (!elementType) {
|
|
72
72
|
console.warn('Property Editor not defined', prop.type)
|
|
73
73
|
return
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import gql from 'graphql-tag'
|
|
3
|
-
|
|
1
|
+
import { InputEditor } from '@operato/data-grist'
|
|
4
2
|
import { client } from '@things-factory/shell'
|
|
5
|
-
import
|
|
3
|
+
import gql from 'graphql-tag'
|
|
4
|
+
import { html } from 'lit-element'
|
|
6
5
|
|
|
7
6
|
const FETCH_TASK_TYPES_GQL = gql`
|
|
8
7
|
query($connectionName: String!) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
4
|
+
import { PageView, client, store } from '@things-factory/shell'
|
|
4
5
|
import { css, html } from 'lit-element'
|
|
5
|
-
import {
|
|
6
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
6
7
|
|
|
7
8
|
import { HelpDecoratedRenderer } from '@things-factory/help'
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
9
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
10
|
+
import gql from 'graphql-tag'
|
|
11
11
|
import { isMobileDevice } from '@things-factory/utils'
|
|
12
12
|
|
|
13
13
|
export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
@@ -36,7 +36,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
36
36
|
--mdc-icon-size: 24px;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
ox-grist {
|
|
40
40
|
overflow-y: auto;
|
|
41
41
|
flex: 1;
|
|
42
42
|
}
|
|
@@ -65,7 +65,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
65
65
|
|
|
66
66
|
render() {
|
|
67
67
|
return html`
|
|
68
|
-
<
|
|
68
|
+
<ox-grist
|
|
69
69
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
70
70
|
.config=${this.gristConfig}
|
|
71
71
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
@@ -75,7 +75,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
75
75
|
.fields=${this.searchConfig}
|
|
76
76
|
@submit=${async () => this.dataGrist.fetch()}
|
|
77
77
|
></search-form>
|
|
78
|
-
</
|
|
78
|
+
</ox-grist>
|
|
79
79
|
`
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -84,7 +84,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
get dataGrist() {
|
|
87
|
-
return this.shadowRoot.querySelector('
|
|
87
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
async pageInitialized() {
|
|
@@ -358,8 +358,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
|
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
_conditionParser() {
|
|
361
|
-
return this.searchForm
|
|
362
|
-
.getFields()
|
|
361
|
+
return this.searchForm.formFields
|
|
363
362
|
.filter(field => (field.type !== 'checkbox' && field.value && field.value !== '') || field.type === 'checkbox')
|
|
364
363
|
.map(field => {
|
|
365
364
|
return {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LitElement, css, html } from 'lit-element'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
|
+
|
|
4
|
+
import { HelpDecoratedRenderer } from '@things-factory/help'
|
|
5
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
6
|
import { client } from '@things-factory/shell'
|
|
4
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
5
7
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
7
|
-
import { HelpDecoratedRenderer } from '@things-factory/help'
|
|
8
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
8
9
|
|
|
9
10
|
class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
10
11
|
static get properties() {
|
|
@@ -26,7 +27,7 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
26
27
|
background-color: #fff;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
ox-grist {
|
|
30
31
|
flex: 1;
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -50,16 +51,16 @@ class ScenarioDetail extends localize(i18next)(LitElement) {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
get dataGrist() {
|
|
53
|
-
return this.renderRoot.querySelector('
|
|
54
|
+
return this.renderRoot.querySelector('ox-grist')
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
render() {
|
|
57
58
|
return html`
|
|
58
|
-
<
|
|
59
|
+
<ox-grist
|
|
59
60
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
60
61
|
.config=${this.gristConfig}
|
|
61
62
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
62
|
-
></
|
|
63
|
+
></ox-grist>
|
|
63
64
|
<div class="button-container">
|
|
64
65
|
<mwc-button raised danger @click=${this._deleteSteps.bind(this)}>${i18next.t('button.delete')}</mwc-button>
|
|
65
66
|
<mwc-button raised @click=${this._updateSteps.bind(this)}>${i18next.t('button.save')}</mwc-button>
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
|
|
1
|
+
import '@operato/data-grist'
|
|
2
|
+
|
|
3
|
+
import { LitElement, css, html } from 'lit-element'
|
|
4
|
+
|
|
3
5
|
import { client } from '@things-factory/shell'
|
|
4
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
5
6
|
import gql from 'graphql-tag'
|
|
6
|
-
import {
|
|
7
|
+
import { i18next } from '@things-factory/i18n-base'
|
|
8
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
7
9
|
|
|
8
10
|
export class ScenarioImporter extends LitElement {
|
|
9
11
|
static get properties() {
|
|
@@ -68,7 +70,7 @@ export class ScenarioImporter extends LitElement {
|
|
|
68
70
|
|
|
69
71
|
background-color: #fff;
|
|
70
72
|
}
|
|
71
|
-
|
|
73
|
+
ox-grist {
|
|
72
74
|
flex: 1;
|
|
73
75
|
}
|
|
74
76
|
.button-container {
|
|
@@ -85,11 +87,11 @@ export class ScenarioImporter extends LitElement {
|
|
|
85
87
|
|
|
86
88
|
render() {
|
|
87
89
|
return html`
|
|
88
|
-
<
|
|
90
|
+
<ox-grist
|
|
89
91
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
90
92
|
.config=${this.columns}
|
|
91
93
|
.data="${{ records: this.scenarios }}"
|
|
92
|
-
></
|
|
94
|
+
></ox-grist>
|
|
93
95
|
|
|
94
96
|
<div class="button-container">
|
|
95
97
|
<mwc-button raised @click="${this.save.bind(this)}">${i18next.t('button.save')}</mwc-button>
|
package/client/pages/scenario.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
import './scenario-detail'
|
|
3
3
|
import './scenario-importer'
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
|
6
|
+
import { PageView, client, navigate, store } from '@things-factory/shell'
|
|
6
7
|
import { css, html } from 'lit-element'
|
|
7
|
-
import moment from 'moment-timezone'
|
|
8
|
-
import { connect } from 'pwa-helpers/connect-mixin'
|
|
9
|
-
|
|
10
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
11
9
|
import { notify, openPopup } from '@things-factory/layout-base'
|
|
12
|
-
|
|
13
|
-
import {
|
|
10
|
+
|
|
11
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
12
|
+
import gql from 'graphql-tag'
|
|
14
13
|
import { isMobileDevice } from '@things-factory/utils'
|
|
14
|
+
import moment from 'moment-timezone'
|
|
15
15
|
|
|
16
16
|
function IS_SCENARIO_RUNNING(state) {
|
|
17
17
|
return state && state !== 'UNLOADED'
|
|
@@ -43,7 +43,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
43
43
|
--mdc-icon-size: 24px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
ox-grist {
|
|
47
47
|
overflow-y: auto;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
@@ -91,7 +91,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
91
91
|
|
|
92
92
|
render() {
|
|
93
93
|
return html`
|
|
94
|
-
<
|
|
94
|
+
<ox-grist
|
|
95
95
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
96
96
|
.config=${this.gristConfig}
|
|
97
97
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
@@ -101,16 +101,16 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
101
101
|
.fields=${this.searchConfig}
|
|
102
102
|
@submit=${async () => this.dataGrist.fetch()}
|
|
103
103
|
></search-form>
|
|
104
|
-
</
|
|
104
|
+
</ox-grist>
|
|
105
105
|
`
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
get searchForm() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.renderRoot.querySelector('search-form')
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
get dataGrist() {
|
|
113
|
-
return this.
|
|
113
|
+
return this.renderRoot.querySelector('ox-grist')
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
// update with url params value
|
|
@@ -416,8 +416,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
|
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
_conditionParser() {
|
|
419
|
-
return this.searchForm
|
|
420
|
-
.getFields()
|
|
419
|
+
return this.searchForm.formFields
|
|
421
420
|
.filter(field => (field.type !== 'checkbox' && field.value && field.value !== '') || field.type === 'checkbox')
|
|
422
421
|
.map(field => {
|
|
423
422
|
return {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
|
+
|
|
3
|
+
import { LitElement, css, html } from 'lit-element'
|
|
2
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
|
+
|
|
3
6
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
4
|
-
import { LitElement, css, html } from 'lit-element'
|
|
5
7
|
|
|
6
8
|
export class IntegrationMonitoringSummary extends localize(i18next)(LitElement) {
|
|
7
9
|
static get properties() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
|
+
import '@material/mwc-icon'
|
|
3
|
+
import './scenario-instance-view'
|
|
4
|
+
import './scenario-instance-view'
|
|
5
|
+
|
|
6
|
+
import { LitElement, css, html } from 'lit-element'
|
|
2
7
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
8
|
import { notify, openPopup } from '@things-factory/layout-base'
|
|
4
|
-
|
|
9
|
+
|
|
5
10
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
11
|
+
import { client } from '@things-factory/shell'
|
|
6
12
|
import gql from 'graphql-tag'
|
|
7
|
-
import { LitElement, css, html } from 'lit-element'
|
|
8
|
-
|
|
9
|
-
import '@material/mwc-icon'
|
|
10
|
-
import './scenario-instance-view'
|
|
11
|
-
|
|
12
|
-
import './scenario-instance-view'
|
|
13
13
|
|
|
14
14
|
function IS_SCENARIO_RUNNING(state) {
|
|
15
15
|
return state && state !== 'UNLOADED'
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
|
+
import '@material/mwc-icon-button'
|
|
3
|
+
import './scenario-instance-monitor'
|
|
4
|
+
|
|
5
|
+
import { LitElement, css, html } from 'lit-element'
|
|
2
6
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
7
|
import { notify, openPopup } from '@things-factory/layout-base'
|
|
4
|
-
|
|
8
|
+
|
|
5
9
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
10
|
+
import { client } from '@things-factory/shell'
|
|
6
11
|
import gql from 'graphql-tag'
|
|
7
|
-
import { LitElement, css, html } from 'lit-element'
|
|
8
|
-
|
|
9
|
-
import '@material/mwc-icon-button'
|
|
10
|
-
import './scenario-instance-monitor'
|
|
11
12
|
|
|
12
13
|
function IS_SCENARIO_RUNNING(state) {
|
|
13
14
|
return state && state !== 'UNLOADED'
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
4
|
-
import { LitElement, css, html } from 'lit-element'
|
|
5
|
-
|
|
1
|
+
import '@operato/data-grist'
|
|
6
2
|
import '@material/mwc-icon-button'
|
|
7
3
|
import './scenario-monitor'
|
|
8
4
|
|
|
5
|
+
import { LitElement, css, html } from 'lit-element'
|
|
6
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
|
+
|
|
8
|
+
import { ScrollbarStyles } from '@things-factory/styles'
|
|
9
|
+
|
|
9
10
|
function IS_SCENARIO_RUNNING(state) {
|
|
10
11
|
return state && state !== 'UNLOADED'
|
|
11
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,12 +24,14 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@things-factory/
|
|
30
|
-
"@things-factory/
|
|
27
|
+
"@operato/data-grist": "^0.2.43",
|
|
28
|
+
"@operato/property-editor": "^0.2.43",
|
|
29
|
+
"@things-factory/export-base": "^4.0.12",
|
|
30
|
+
"@things-factory/import-base": "^4.0.12",
|
|
31
|
+
"@things-factory/integration-base": "^4.0.12",
|
|
32
|
+
"@things-factory/modeller-ui": "^4.0.12",
|
|
31
33
|
"moment-timezone": "^0.5.27",
|
|
32
34
|
"subscriptions-transport-ws": "^0.11.0"
|
|
33
35
|
},
|
|
34
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "29d59ff95fcb473cb43c6f798cd04f3ec3a779a0"
|
|
35
37
|
}
|