@things-factory/integration-ui 4.1.28 → 5.0.0-alpha.11

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.
@@ -4,10 +4,10 @@ import './editors/property-editor'
4
4
 
5
5
  import { ConnectionSelector } from './grist/connection-selector'
6
6
  import { ConnectorSelector } from './grist/connector-selector'
7
- import { CrontabEditor } from './grist/crontab-editor'
8
- import { JsonGristEditor } from './grist/json-grist-editor'
7
+ import { OxGristEditorCrontab } from '@operato/app/grist-editor/ox-grist-editor-crontab.js'
8
+ import { OxGristEditorJson } from '@operato/app/grist-editor/ox-grist-editor-json.js'
9
+ import { OxGristEditorParameters } from '@operato/app/grist-editor/ox-grist-editor-parameters.js'
9
10
  import { OxPropertyEditor } from '@operato/property-editor'
10
- import { ParametersEditor } from './grist/parameters-editor'
11
11
  import { TaskTypeSelector } from './grist/task-type-selector'
12
12
  import { registerEditor as registerGristEditor } from '@operato/data-grist'
13
13
 
@@ -15,9 +15,9 @@ export default function bootstrap() {
15
15
  registerGristEditor('task-type', TaskTypeSelector)
16
16
  registerGristEditor('connector', ConnectorSelector)
17
17
  registerGristEditor('connection', ConnectionSelector)
18
- registerGristEditor('json', JsonGristEditor)
19
- registerGristEditor('parameters', ParametersEditor)
20
- registerGristEditor('crontab', CrontabEditor)
18
+ registerGristEditor('json', OxGristEditorJson)
19
+ registerGristEditor('parameters', OxGristEditorParameters)
20
+ registerGristEditor('crontab', OxGristEditorCrontab)
21
21
 
22
22
  OxPropertyEditor.register({
23
23
  'http-headers': 'property-editor-http-headers',
@@ -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 = deepClone(e.target[this.valueProperty])
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} (${gqlBuilder.buildArgs(await this._buildConditions(page, limit, sorters))}) {
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 '@things-factory/i18n-base'
11
- import { openPopup } from '@things-factory/layout-base'
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 { client } from '@things-factory/shell'
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 { client } from '@things-factory/shell'
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,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 '@things-factory/shell'
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 { i18next, localize } from '@things-factory/i18n-base'
10
- import { client, PageView, subscribe } from '@things-factory/shell'
11
- import { ScrollbarStyles } from '@things-factory/styles'
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: (...args) => this._copyRecord(...args)
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: (...args) => this._moveRecord(-1, ...args)
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: (...args) => this._moveRecord(1, ...args)
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 { i18next } from '@things-factory/i18n-base'
7
- import { client } from '@things-factory/shell'
8
- import { isMobileDevice } from '@things-factory/utils'
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() {
@@ -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 { i18next, localize } from '@things-factory/i18n-base'
11
- import { notify, openPopup } from '@things-factory/layout-base'
12
- import { client, navigate, PageView, store } from '@things-factory/shell'
13
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
14
- import { isMobileDevice } from '@things-factory/utils'
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 '@things-factory/shell'
7
- import { ScrollbarStyles } from '@things-factory/styles'
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 '@things-factory/i18n-base'
6
- import { ScrollbarStyles } from '@things-factory/styles'
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 { LitElement, css, html } from 'lit'
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 { store, subscribe } from '@things-factory/shell'
6
- import { ScrollbarStyles } from '@things-factory/styles'
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 { i18next, localize } from '@things-factory/i18n-base'
9
- import { notify, openPopup } from '@things-factory/layout-base'
10
- import { client } from '@things-factory/shell'
11
- import { ScrollbarStyles } from '@things-factory/styles'
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 { store, subscribe } from '@things-factory/shell'
8
- import { ScrollbarStyles } from '@things-factory/styles'
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 { i18next, localize } from '@things-factory/i18n-base'
9
- import { notify, openPopup } from '@things-factory/layout-base'
10
- import { client } from '@things-factory/shell'
11
- import { ScrollbarStyles } from '@things-factory/styles'
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 '@things-factory/i18n-base'
8
- import { ScrollbarStyles } from '@things-factory/styles'
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": "4.1.28",
3
+ "version": "5.0.0-alpha.11",
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/data-grist": "^0.3.28",
28
- "@operato/graphql": "^0.3.28",
29
- "@operato/help": "^0.3.28",
30
- "@operato/i18n": "^0.3.28",
31
- "@operato/layout": "^0.3.28",
32
- "@operato/property-editor": "^0.3.28",
33
- "@operato/styles": "^0.3.28",
34
- "@operato/utils": "^0.3.28",
35
- "@things-factory/export-base": "^4.1.28",
36
- "@things-factory/import-base": "^4.1.28",
37
- "@things-factory/integration-base": "^4.1.28",
38
- "@things-factory/modeller-ui": "^4.1.28",
27
+ "@operato/app": "^1.0.0-alpha.29",
28
+ "@operato/data-grist": "1.0.0-alpha.29",
29
+ "@operato/graphql": "1.0.0-alpha.29",
30
+ "@operato/help": "1.0.0-alpha.29",
31
+ "@operato/i18n": "1.0.0-alpha.29",
32
+ "@operato/layout": "1.0.0-alpha.29",
33
+ "@operato/property-editor": "1.0.0-alpha.29",
34
+ "@operato/styles": "1.0.0-alpha.29",
35
+ "@operato/utils": "1.0.0-alpha.29",
36
+ "@things-factory/export-base": "^5.0.0-alpha.11",
37
+ "@things-factory/import-base": "^5.0.0-alpha.11",
38
+ "@things-factory/integration-base": "^5.0.0-alpha.11",
39
39
  "moment-timezone": "^0.5.27",
40
40
  "subscriptions-transport-ws": "^0.11.0"
41
41
  },
42
- "gitHead": "3f902602b38074b6e4a2188ab16b2a486f812877"
42
+ "gitHead": "9f8d36335eabb80642c18ffc4a09fca23636bb00"
43
43
  }