@things-factory/operato-hub 3.6.33 → 3.6.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.
@@ -219,14 +219,14 @@ class BizplacePage extends connect(store)(PageView) {
219
219
 
220
220
  <div field>
221
221
  <label
222
- >latlng
222
+ >latitude longitude
223
223
  <input type="text" name="latlng" .value=${bizplace.latlng} />
224
224
  </label>
225
225
  </div>
226
226
 
227
227
  <div field>
228
228
  <label
229
- >postalCode
229
+ >postal code
230
230
  <input type="text" name="postalCode" .value=${bizplace.postalCode} />
231
231
  </label>
232
232
  </div>
@@ -238,13 +238,6 @@ class BizplacePage extends connect(store)(PageView) {
238
238
  </label>
239
239
  </div>
240
240
 
241
- <div field>
242
- <label
243
- >status
244
- <input type="text" name="status" .value=${bizplace.status} />
245
- </label>
246
- </div>
247
-
248
241
  <div field grid-span>
249
242
  <mwc-button @click=${e => this.onSave()} raised label="Save"></mwc-button>
250
243
  </div>
@@ -344,7 +337,7 @@ class BizplacePage extends connect(store)(PageView) {
344
337
  if (this.active) {
345
338
  if ('resourceId' in changes) {
346
339
  this.bizplace = await this.fetchBizplace(lifecycle.resourceId)
347
- this.bizplaceDomain = await this.fetchBizplaceDomain(this.bizplace.name)
340
+ this.bizplaceDomain = this.bizplace?.domain
348
341
  this.dataChanged = false
349
342
  this.form.addEventListener('change', () => (this.dataChanged = true))
350
343
  }
@@ -386,6 +379,9 @@ class BizplacePage extends connect(store)(PageView) {
386
379
  }
387
380
  domain {
388
381
  id
382
+ name
383
+ subdomain
384
+ extType
389
385
  }
390
386
  updatedAt
391
387
  updater {
@@ -404,18 +400,18 @@ class BizplacePage extends connect(store)(PageView) {
404
400
  return response.data.bizplace
405
401
  }
406
402
 
407
- async fetchBizplaceDomain(name) {
403
+ async fetchBizplaceDomain(id) {
408
404
  const response = await client.query({
409
405
  query: gql`
410
- query domain($name: String!) {
411
- domain(name: $name) {
406
+ query domain($id: String!) {
407
+ domain(id: $id) {
412
408
  name
413
409
  subdomain
414
410
  extType
415
411
  }
416
412
  }
417
413
  `,
418
- variables: { name }
414
+ variables: { id }
419
415
  })
420
416
 
421
417
  return response.data.domain
@@ -476,7 +472,7 @@ class BizplacePage extends connect(store)(PageView) {
476
472
  })
477
473
 
478
474
  if (!response.errors) {
479
- this.bizplaceDomain = await this.fetchBizplaceDomain(this.bizplace.name)
475
+ this.bizplaceDomain = await this.fetchBizplaceDomain(this.bizplace?.domain.id)
480
476
 
481
477
  await CustomAlert({
482
478
  type: 'success',
@@ -533,7 +529,7 @@ class BizplacePage extends connect(store)(PageView) {
533
529
  if (!response.errors) {
534
530
  this.showToast(i18next.t('text.data_updated_successfully'))
535
531
  this.bizplace.name = patch.name
536
- this.bizplaceDomain = await this.fetchBizplaceDomain(this.bizplace.name)
532
+ this.bizplaceDomain = await this.fetchBizplaceDomain(this.bizplace?.domain.id)
537
533
  this.dataChanged = false
538
534
  store.dispatch(fetchHubStatus())
539
535
  }
@@ -1,8 +1,10 @@
1
- import { i18next } from '@things-factory/i18n-base'
2
- import { client, PageView, store } from '@things-factory/shell'
3
1
  import gql from 'graphql-tag'
4
2
  import { css, html } from 'lit-element'
5
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
+
5
+ import { i18next } from '@things-factory/i18n-base'
6
+ import { client, PageView, store } from '@things-factory/shell'
7
+
6
8
  import { fetchHubStatus } from '../../actions/hub'
7
9
  import { getCountryCodes } from '../../utils'
8
10
 
@@ -121,10 +123,11 @@ class BusinessHome extends connect(store)(PageView) {
121
123
  return html`
122
124
  <div>
123
125
  <img src="/assets/images/image-join.png" />
124
- <h2>Business Home for <strong>${company.name}</strong></h2>
126
+ <h2>Central Hub for <strong>${company.name}</strong></h2>
125
127
  <p page-description>
126
- Business information about your business. Register new business branch under business places section or edit
127
- your business information below.
128
+ Our intuitive cloud platform puts everything in one place. From order to delivery, our software is designed to
129
+ orchestrate and optimize your inventory and orders across your global logistics network and serve as a central
130
+ collaboration hub for your team across region.
128
131
  </p>
129
132
  </div>
130
133
 
@@ -152,14 +155,14 @@ class BusinessHome extends connect(store)(PageView) {
152
155
 
153
156
  <div field>
154
157
  <label
155
- >postalCode
158
+ >postal code
156
159
  <input type="text" name="postalCode" .value=${company.postalCode} />
157
160
  </label>
158
161
  </div>
159
162
 
160
163
  <div field>
161
164
  <label
162
- >countryCode
165
+ >country
163
166
  <select type="text" name="countryCode">
164
167
  ${(this.countryCodes || []).map(
165
168
  code =>
@@ -178,13 +181,6 @@ class BusinessHome extends connect(store)(PageView) {
178
181
  </label>
179
182
  </div>
180
183
 
181
- <div field>
182
- <label
183
- >status
184
- <input type="text" name="status" .value=${company.status} />
185
- </label>
186
- </div>
187
-
188
184
  <div field grid-span>
189
185
  <mwc-button @click=${e => this.onSave()} raised label="Save"></mwc-button>
190
186
  </div>
@@ -3,3 +3,4 @@ export const PALLET_LABEL_SETTING_KEY = 'pallet-label'
3
3
  export const CARTON_LABEL_SETTING_KEY = 'carton-label'
4
4
  export const REUSABLE_PALLET_LABEL_SETTING_KEY = 'reusable-pallet-label'
5
5
  export const HOME_DASHBOARD_SETTING_KEY = 'dashboard'
6
+ export const PRODUCT_LABEL_SETTING_KEY = 'product-label'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-hub",
3
- "version": "3.6.33",
3
+ "version": "3.6.38",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -41,80 +41,80 @@
41
41
  "@material/mwc-formfield": "^0.22.1",
42
42
  "@material/mwc-linear-progress": "^0.22.1",
43
43
  "@material/mwc-radio": "^0.22.1",
44
- "@things-factory/api": "^3.6.33",
45
- "@things-factory/apptool-ui": "^3.6.33",
46
- "@things-factory/attachment-base": "^3.6.33",
47
- "@things-factory/auth-base": "^3.6.33",
48
- "@things-factory/auth-ui": "^3.6.33",
49
- "@things-factory/biz-base": "^3.6.33",
50
- "@things-factory/biz-ui": "^3.6.33",
51
- "@things-factory/board-service": "^3.6.33",
52
- "@things-factory/board-ui": "^3.6.33",
53
- "@things-factory/code-ui": "^3.6.33",
54
- "@things-factory/component-ui": "^3.6.33",
55
- "@things-factory/context-ui": "^3.6.33",
56
- "@things-factory/document-template-ui": "^3.6.33",
57
- "@things-factory/export-ui": "^3.6.33",
58
- "@things-factory/export-ui-csv": "^3.6.33",
59
- "@things-factory/export-ui-excel": "^3.6.33",
60
- "@things-factory/grist-ui": "^3.6.33",
61
- "@things-factory/i18n-base": "^3.6.33",
62
- "@things-factory/i18n-ui": "^3.6.33",
63
- "@things-factory/import-ui": "^3.6.33",
64
- "@things-factory/import-ui-excel": "^3.6.33",
65
- "@things-factory/integration-accounting": "^3.6.33",
66
- "@things-factory/integration-fulfillment": "^3.6.33",
67
- "@things-factory/integration-lmd": "^3.6.33",
68
- "@things-factory/integration-marketplace": "^3.6.33",
69
- "@things-factory/integration-pos": "^3.6.33",
70
- "@things-factory/integration-sellercraft": "^3.6.33",
71
- "@things-factory/lite-menu": "^3.6.33",
72
- "@things-factory/more-ui": "^3.6.33",
73
- "@things-factory/notification": "^3.6.33",
74
- "@things-factory/pdf": "^3.6.33",
75
- "@things-factory/product-ui": "^3.6.33",
76
- "@things-factory/resource-ui": "^3.6.33",
77
- "@things-factory/sales-base": "^3.6.33",
78
- "@things-factory/scene-chartjs": "^3.6.33",
79
- "@things-factory/scene-clock": "^3.6.33",
80
- "@things-factory/scene-clone": "^3.6.33",
81
- "@things-factory/scene-compass": "^3.6.33",
82
- "@things-factory/scene-data-transform": "^3.6.33",
83
- "@things-factory/scene-excel": "^3.6.33",
84
- "@things-factory/scene-firebase": "^3.6.33",
85
- "@things-factory/scene-form": "^3.6.33",
86
- "@things-factory/scene-gauge": "^3.6.33",
87
- "@things-factory/scene-google-map": "^3.6.33",
88
- "@things-factory/scene-graphql": "^3.6.33",
89
- "@things-factory/scene-half-roundrect": "^3.6.33",
90
- "@things-factory/scene-indoor-map": "^3.6.33",
91
- "@things-factory/scene-label": "^3.6.33",
92
- "@things-factory/scene-legend": "^3.6.33",
93
- "@things-factory/scene-marker": "^3.6.33",
94
- "@things-factory/scene-mqtt": "^3.6.33",
95
- "@things-factory/scene-news-ticker": "^3.6.33",
96
- "@things-factory/scene-progressbar": "^3.6.33",
97
- "@things-factory/scene-random": "^3.6.33",
98
- "@things-factory/scene-restful": "^3.6.33",
99
- "@things-factory/scene-switch": "^3.6.33",
100
- "@things-factory/scene-tab": "^3.6.33",
101
- "@things-factory/scene-table": "^3.6.33",
102
- "@things-factory/scene-visualizer": "^3.6.33",
103
- "@things-factory/scene-wheel-sorter": "^3.6.33",
104
- "@things-factory/setting-ui": "^3.6.33",
105
- "@things-factory/shell": "^3.6.33",
106
- "@things-factory/system-ui": "^3.6.33",
107
- "@things-factory/warehouse-base": "^3.6.33",
108
- "@things-factory/worksheet-base": "^3.6.33",
44
+ "@things-factory/api": "^3.6.38",
45
+ "@things-factory/apptool-ui": "^3.6.38",
46
+ "@things-factory/attachment-base": "^3.6.38",
47
+ "@things-factory/auth-base": "^3.6.38",
48
+ "@things-factory/auth-ui": "^3.6.38",
49
+ "@things-factory/biz-base": "^3.6.38",
50
+ "@things-factory/biz-ui": "^3.6.38",
51
+ "@things-factory/board-service": "^3.6.38",
52
+ "@things-factory/board-ui": "^3.6.38",
53
+ "@things-factory/code-ui": "^3.6.38",
54
+ "@things-factory/component-ui": "^3.6.37",
55
+ "@things-factory/context-ui": "^3.6.38",
56
+ "@things-factory/document-template-ui": "^3.6.38",
57
+ "@things-factory/export-ui": "^3.6.38",
58
+ "@things-factory/export-ui-csv": "^3.6.38",
59
+ "@things-factory/export-ui-excel": "^3.6.38",
60
+ "@things-factory/grist-ui": "^3.6.37",
61
+ "@things-factory/i18n-base": "^3.6.38",
62
+ "@things-factory/i18n-ui": "^3.6.38",
63
+ "@things-factory/import-ui": "^3.6.38",
64
+ "@things-factory/import-ui-excel": "^3.6.38",
65
+ "@things-factory/integration-accounting": "^3.6.38",
66
+ "@things-factory/integration-fulfillment": "^3.6.38",
67
+ "@things-factory/integration-lmd": "^3.6.38",
68
+ "@things-factory/integration-marketplace": "^3.6.38",
69
+ "@things-factory/integration-pos": "^3.6.38",
70
+ "@things-factory/integration-sellercraft": "^3.6.38",
71
+ "@things-factory/lite-menu": "^3.6.38",
72
+ "@things-factory/more-ui": "^3.6.38",
73
+ "@things-factory/notification": "^3.6.38",
74
+ "@things-factory/pdf": "^3.6.37",
75
+ "@things-factory/product-ui": "^3.6.38",
76
+ "@things-factory/resource-ui": "^3.6.38",
77
+ "@things-factory/sales-base": "^3.6.38",
78
+ "@things-factory/scene-chartjs": "^3.6.37",
79
+ "@things-factory/scene-clock": "^3.6.37",
80
+ "@things-factory/scene-clone": "^3.6.37",
81
+ "@things-factory/scene-compass": "^3.6.37",
82
+ "@things-factory/scene-data-transform": "^3.6.37",
83
+ "@things-factory/scene-excel": "^3.6.37",
84
+ "@things-factory/scene-firebase": "^3.6.37",
85
+ "@things-factory/scene-form": "^3.6.37",
86
+ "@things-factory/scene-gauge": "^3.6.37",
87
+ "@things-factory/scene-google-map": "^3.6.37",
88
+ "@things-factory/scene-graphql": "^3.6.37",
89
+ "@things-factory/scene-half-roundrect": "^3.6.37",
90
+ "@things-factory/scene-indoor-map": "^3.6.37",
91
+ "@things-factory/scene-label": "^3.6.38",
92
+ "@things-factory/scene-legend": "^3.6.37",
93
+ "@things-factory/scene-marker": "^3.6.37",
94
+ "@things-factory/scene-mqtt": "^3.6.37",
95
+ "@things-factory/scene-news-ticker": "^3.6.37",
96
+ "@things-factory/scene-progressbar": "^3.6.37",
97
+ "@things-factory/scene-random": "^3.6.37",
98
+ "@things-factory/scene-restful": "^3.6.37",
99
+ "@things-factory/scene-switch": "^3.6.37",
100
+ "@things-factory/scene-tab": "^3.6.37",
101
+ "@things-factory/scene-table": "^3.6.37",
102
+ "@things-factory/scene-visualizer": "^3.6.37",
103
+ "@things-factory/scene-wheel-sorter": "^3.6.37",
104
+ "@things-factory/setting-ui": "^3.6.38",
105
+ "@things-factory/shell": "^3.6.38",
106
+ "@things-factory/system-ui": "^3.6.38",
107
+ "@things-factory/warehouse-base": "^3.6.38",
108
+ "@things-factory/worksheet-base": "^3.6.38",
109
109
  "koa2-swagger-ui": "^5.0.2",
110
110
  "swagger-jsdoc": "^5.0.0",
111
111
  "yamljs": "^0.3.0"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/builder": "^3.6.33"
114
+ "@things-factory/builder": "^3.6.37"
115
115
  },
116
116
  "resolutions": {
117
117
  "core-js": "^3.16.0"
118
118
  },
119
- "gitHead": "965ef2f6fdc604b4f800e4d01337a3814b3b0d21"
119
+ "gitHead": "95b6401d665c7625d1e5f9e78925571b2fca1cdc"
120
120
  }