@things-factory/reference-app 6.0.0-alpha.8 → 6.0.0-alpha.9

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,11 +1,8 @@
1
1
  import { SingleColumnFormStyles } from '@things-factory/form-ui'
2
- import '@things-factory/grist-ui'
3
2
  import { i18next, localize } from '@things-factory/i18n-base'
4
3
  import { client } from '@things-factory/shell'
5
- import { gqlBuilder } from '@things-factory/utils'
6
4
  import gql from 'graphql-tag'
7
5
  import { css, html, LitElement } from 'lit-element'
8
- import { notify } from '@things-factory/layout-base'
9
6
 
10
7
  class DataEntryGeneratorPopup extends localize(i18next)(LitElement) {
11
8
  static get properties() {
@@ -42,7 +39,7 @@ class DataEntryGeneratorPopup extends localize(i18next)(LitElement) {
42
39
  <form id="input-form" name="generation" class="single-column-form" @submit=${e => this.onSubmit(e)}>
43
40
  <fieldset>
44
41
  <label>${i18next.t('label.num_samples')}</label>
45
- <input type="number" .value=${this.numSamples} min="1" name="num_samples" required/>
42
+ <input type="number" .value=${this.numSamples} min="1" name="num_samples" required />
46
43
  </fieldset>
47
44
  </form>
48
45
 
@@ -52,19 +49,16 @@ class DataEntryGeneratorPopup extends localize(i18next)(LitElement) {
52
49
  `
53
50
  }
54
51
 
55
- async firstUpdated() {
56
-
57
- }
52
+ async firstUpdated() {}
58
53
 
59
54
  async onSubmit(e) {
60
55
  e.preventDefault()
61
56
  this.generateMockupData()
62
57
  }
63
58
 
64
-
65
59
  serializeFormData() {
66
60
  let obj = {}
67
-
61
+
68
62
  Array.from(this.shadowRoot.querySelectorAll('form#input-form input')).forEach(field => {
69
63
  if (!field.hasAttribute('hidden') && field.value) {
70
64
  obj[field.name] = field.type === 'checkbox' ? field.checked : field.value
@@ -80,7 +74,7 @@ class DataEntryGeneratorPopup extends localize(i18next)(LitElement) {
80
74
  const response = await client.mutate({
81
75
  mutation: gql`
82
76
  mutation ($params: DataSampleMockupInfo!) {
83
- generateMockupData(params: $params)
77
+ generateMockupData(params: $params)
84
78
  }
85
79
  `,
86
80
  variables: {
@@ -97,7 +91,6 @@ class DataEntryGeneratorPopup extends localize(i18next)(LitElement) {
97
91
  document.dispatchEvent(
98
92
  new CustomEvent('notify', { detail: { message: i18next.t('text.mockup data created successfully') } })
99
93
  )
100
-
101
94
  }
102
95
  }
103
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "6.0.0-alpha.8",
3
+ "version": "6.0.0-alpha.9",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -67,24 +67,24 @@
67
67
  "@things-factory/apptool-ui": "^6.0.0-alpha.8",
68
68
  "@things-factory/attachment-base": "^6.0.0-alpha.8",
69
69
  "@things-factory/auth-ui": "^6.0.0-alpha.8",
70
- "@things-factory/board-service": "^6.0.0-alpha.8",
71
- "@things-factory/board-ui": "^6.0.0-alpha.8",
72
- "@things-factory/ccp": "^6.0.0-alpha.8",
70
+ "@things-factory/board-service": "^6.0.0-alpha.9",
71
+ "@things-factory/board-ui": "^6.0.0-alpha.9",
72
+ "@things-factory/ccp": "^6.0.0-alpha.9",
73
73
  "@things-factory/context-ui": "^6.0.0-alpha.8",
74
- "@things-factory/dashboard": "^6.0.0-alpha.8",
75
- "@things-factory/dataset": "^6.0.0-alpha.8",
74
+ "@things-factory/dashboard": "^6.0.0-alpha.9",
75
+ "@things-factory/dataset": "^6.0.0-alpha.9",
76
76
  "@things-factory/export-ui": "^6.0.0-alpha.8",
77
77
  "@things-factory/export-ui-excel": "^6.0.0-alpha.8",
78
78
  "@things-factory/grist-ui": "^6.0.0-alpha.8",
79
79
  "@things-factory/help": "^6.0.0-alpha.8",
80
80
  "@things-factory/integration-ui": "^6.0.0-alpha.8",
81
- "@things-factory/lite-menu": "^6.0.0-alpha.8",
81
+ "@things-factory/lite-menu": "^6.0.0-alpha.9",
82
82
  "@things-factory/more-ui": "^6.0.0-alpha.8",
83
83
  "@things-factory/notification": "^6.0.0-alpha.8",
84
84
  "@things-factory/oauth2-client": "^6.0.0-alpha.8",
85
85
  "@things-factory/print-ui": "^6.0.0-alpha.8",
86
86
  "@things-factory/product-base": "^6.0.0-alpha.8",
87
- "@things-factory/qc": "^6.0.0-alpha.8",
87
+ "@things-factory/qc": "^6.0.0-alpha.9",
88
88
  "@things-factory/resource-ui": "^6.0.0-alpha.8",
89
89
  "@things-factory/routing-base": "^6.0.0-alpha.8",
90
90
  "@things-factory/setting-base": "^6.0.0-alpha.8",
@@ -97,5 +97,5 @@
97
97
  "devDependencies": {
98
98
  "@things-factory/builder": "^6.0.0-alpha.8"
99
99
  },
100
- "gitHead": "6d45cce6b8aef6b4de253dfbcb0ba8c3abb682cf"
100
+ "gitHead": "3b34aa7eb3bd773e57a29fb1ff8a258074b10ad5"
101
101
  }