@things-factory/integration-ui 4.0.34 → 4.0.38

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.
@@ -1,13 +1,13 @@
1
1
  import '@operato/data-grist'
2
2
 
3
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
4
- import { PageView, client, store } from '@things-factory/shell'
3
+ import gql from 'graphql-tag'
5
4
  import { css, html } from 'lit-element'
6
- import { i18next, localize } from '@things-factory/i18n-base'
5
+ import { connect } from 'pwa-helpers/connect-mixin'
7
6
 
8
7
  import { HelpDecoratedRenderer } from '@things-factory/help'
9
- import { connect } from 'pwa-helpers/connect-mixin'
10
- import gql from 'graphql-tag'
8
+ import { i18next, localize } from '@things-factory/i18n-base'
9
+ import { client, PageView, store } from '@things-factory/shell'
10
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
11
11
  import { isMobileDevice } from '@things-factory/utils'
12
12
 
13
13
  export class Connection extends connect(store)(localize(i18next)(PageView)) {
@@ -161,6 +161,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
161
161
  record: {
162
162
  editable: true
163
163
  },
164
+ filter: 'search',
164
165
  sortable: true,
165
166
  width: 150,
166
167
  validation: function (after, before, record, column) {
@@ -187,6 +188,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
187
188
  record: {
188
189
  editable: true
189
190
  },
191
+ filter: 'search',
190
192
  width: 200
191
193
  },
192
194
  {
@@ -286,7 +288,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
286
288
  async fetchHandler({ page, limit, sorters = [] }) {
287
289
  const response = await client.query({
288
290
  query: gql`
289
- query($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
291
+ query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
290
292
  responses: connections(filters: $filters, pagination: $pagination, sortings: $sortings) {
291
293
  items {
292
294
  id
@@ -388,7 +390,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
388
390
  if (names && names.length > 0) {
389
391
  const response = await client.mutate({
390
392
  mutation: gql`
391
- mutation($names: [String!]!) {
393
+ mutation ($names: [String!]!) {
392
394
  deleteConnections(names: $names)
393
395
  }
394
396
  `,
@@ -436,7 +438,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
436
438
 
437
439
  const response = await client.mutate({
438
440
  mutation: gql`
439
- mutation($patches: [ConnectionPatch!]!) {
441
+ mutation ($patches: [ConnectionPatch!]!) {
440
442
  updateMultipleConnection(patches: $patches) {
441
443
  name
442
444
  }
@@ -454,7 +456,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
454
456
  async connect(record) {
455
457
  var response = await client.mutate({
456
458
  mutation: gql`
457
- mutation($name: String!) {
459
+ mutation ($name: String!) {
458
460
  connectConnection(name: $name) {
459
461
  state
460
462
  }
@@ -484,7 +486,7 @@ export class Connection extends connect(store)(localize(i18next)(PageView)) {
484
486
  async disconnect(record) {
485
487
  var response = await client.mutate({
486
488
  mutation: gql`
487
- mutation($name: String!) {
489
+ mutation ($name: String!) {
488
490
  disconnectConnection(name: $name) {
489
491
  state
490
492
  }
@@ -2,16 +2,16 @@ import '@operato/data-grist'
2
2
  import './scenario-detail'
3
3
  import './scenario-importer'
4
4
 
5
- import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
6
- import { PageView, client, navigate, store } from '@things-factory/shell'
5
+ import gql from 'graphql-tag'
7
6
  import { css, html } from 'lit-element'
7
+ import moment from 'moment-timezone'
8
+ import { connect } from 'pwa-helpers/connect-mixin'
9
+
8
10
  import { i18next, localize } from '@things-factory/i18n-base'
9
11
  import { notify, openPopup } from '@things-factory/layout-base'
10
-
11
- import { connect } from 'pwa-helpers/connect-mixin'
12
- import gql from 'graphql-tag'
12
+ import { client, navigate, PageView, store } from '@things-factory/shell'
13
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
13
14
  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'
@@ -151,7 +151,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
151
151
  type: 'text',
152
152
  props: {
153
153
  placeholder: i18next.t('field.type'),
154
- searchOper: 'eq'
154
+ searchOper: 'like'
155
155
  }
156
156
  },
157
157
  {
@@ -223,6 +223,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
223
223
  record: {
224
224
  editable: true
225
225
  },
226
+ filter: 'search',
226
227
  sortable: true,
227
228
  width: 150,
228
229
  validation: function (after, before, record, column) {
@@ -254,6 +255,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
254
255
  record: {
255
256
  editable: true
256
257
  },
258
+ filter: 'search',
257
259
  width: 200
258
260
  },
259
261
  {
@@ -339,7 +341,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
339
341
  async fetchHandler({ page, limit, sorters = [] }) {
340
342
  const response = await client.query({
341
343
  query: gql`
342
- query($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
344
+ query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
343
345
  responses: scenarios(filters: $filters, pagination: $pagination, sortings: $sortings) {
344
346
  items {
345
347
  id
@@ -440,7 +442,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
440
442
  if (ids && ids.length > 0) {
441
443
  const response = await client.mutate({
442
444
  mutation: gql`
443
- mutation($ids: [String!]!) {
445
+ mutation ($ids: [String!]!) {
444
446
  deleteScenarios(ids: $ids)
445
447
  }
446
448
  `,
@@ -473,7 +475,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
473
475
  if (!confirm(i18next.t('text.sure_to_x', { x: i18next.t('text.copy') }))) return
474
476
  var response = await client.mutate({
475
477
  mutation: gql`
476
- mutation($ids: [String!]!) {
478
+ mutation ($ids: [String!]!) {
477
479
  copyScenarios(ids: $ids) {
478
480
  id
479
481
  }
@@ -506,7 +508,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
506
508
 
507
509
  const response = await client.mutate({
508
510
  mutation: gql`
509
- mutation($patches: [ScenarioPatch!]!) {
511
+ mutation ($patches: [ScenarioPatch!]!) {
510
512
  updateMultipleScenario(patches: $patches) {
511
513
  name
512
514
  }
@@ -524,7 +526,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
524
526
  async startScenario(record) {
525
527
  var response = await client.mutate({
526
528
  mutation: gql`
527
- mutation($scenarioName: String!, $instanceName: String) {
529
+ mutation ($scenarioName: String!, $instanceName: String) {
528
530
  startScenario(scenarioName: $scenarioName, instanceName: $instanceName) {
529
531
  state
530
532
  }
@@ -550,7 +552,7 @@ export class Scenario extends connect(store)(localize(i18next)(PageView)) {
550
552
  async stopScenario(record) {
551
553
  var response = await client.mutate({
552
554
  mutation: gql`
553
- mutation($instanceName: String!) {
555
+ mutation ($instanceName: String!) {
554
556
  stopScenario(instanceName: $instanceName) {
555
557
  state
556
558
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-ui",
3
- "version": "4.0.34",
3
+ "version": "4.0.38",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,14 +24,14 @@
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.14",
28
- "@operato/property-editor": "^0.3.14",
29
- "@things-factory/export-base": "^4.0.34",
30
- "@things-factory/import-base": "^4.0.34",
31
- "@things-factory/integration-base": "^4.0.34",
32
- "@things-factory/modeller-ui": "^4.0.34",
27
+ "@operato/data-grist": "^0.3.18",
28
+ "@operato/property-editor": "^0.3.18",
29
+ "@things-factory/export-base": "^4.0.38",
30
+ "@things-factory/import-base": "^4.0.38",
31
+ "@things-factory/integration-base": "^4.0.38",
32
+ "@things-factory/modeller-ui": "^4.0.38",
33
33
  "moment-timezone": "^0.5.27",
34
34
  "subscriptions-transport-ws": "^0.11.0"
35
35
  },
36
- "gitHead": "b79919fd02f8388f1d40300c52a25903ad98110c"
36
+ "gitHead": "c2b2638e6efec319d4024cedc8da513d560c126e"
37
37
  }