@things-factory/operato-hub 6.0.25 → 6.0.27
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 +1 -1
- package/client/component/bizplace-cards.js +1 -1
- package/client/component/bizplace-domain-cards.js +1 -1
- package/client/component/home-menu-cards.js +1 -1
- package/client/component/product-sync-with-accounting.js +22 -20
- package/client/component/product-sync.js +1 -1
- package/client/entries/oauth2/oauth2-decision-page.js +1 -1
- package/client/entries/public/business-register.js +1 -1
- package/client/pages/accounting/accounting-account.js +1 -1
- package/client/pages/accounting/accounting-cards.js +1 -1
- package/client/pages/accounting/accounting-product-sync.js +1 -1
- package/client/pages/accounting/home.js +2 -2
- package/client/pages/api/home.js +1 -1
- package/client/pages/application/store.js +1 -1
- package/client/pages/bizplace/bizplace.js +1 -1
- package/client/pages/bizplace/home.js +1 -1
- package/client/pages/bizplace/register.js +1 -1
- package/client/pages/business/home.js +1 -1
- package/client/pages/business/setting-backup.js +1 -1
- package/client/pages/business/setting-payment.js +1 -1
- package/client/pages/codes/home.js +1 -1
- package/client/pages/contact-points/home.js +1 -1
- package/client/pages/lmd/home.js +1 -1
- package/client/pages/partner-settings/home.js +1 -1
- package/client/pages/partners/home.js +1 -1
- package/client/pages/pos/home.js +2 -2
- package/client/pages/pos/pos-account.js +1 -1
- package/client/pages/pos/pos-cards.js +1 -1
- package/client/pages/product-bundles/home.js +1 -1
- package/client/pages/product-sets/home.js +1 -1
- package/client/pages/products/home.js +1 -1
- package/client/pages/roles/home.js +1 -1
- package/client/pages/sellercraft/home.js +1 -1
- package/client/pages/sellercraft/sellercraft-store-setting.js +1 -1
- package/client/pages/settings/home.js +1 -1
- package/client/pages/template/home.js +1 -1
- package/client/pages/users/home.js +1 -1
- package/client/viewparts/user-circle.js +2 -4
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +41 -41
package/client/bootstrap.js
CHANGED
|
@@ -4,7 +4,7 @@ import '@things-factory/notification'
|
|
|
4
4
|
import './viewparts/user-circle'
|
|
5
5
|
import './menu'
|
|
6
6
|
|
|
7
|
-
import { html } from 'lit
|
|
7
|
+
import { html } from 'lit'
|
|
8
8
|
|
|
9
9
|
import { registerDefaultGroups } from '@operato/board/register-default-groups.js'
|
|
10
10
|
import { APPEND_APP_TOOL } from '@things-factory/apptool-base'
|
|
@@ -3,7 +3,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
|
|
|
3
3
|
import { client, CustomAlert } from '@things-factory/shell'
|
|
4
4
|
import { isMobileDevice } from '@things-factory/utils'
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import { css, html, LitElement } from 'lit
|
|
6
|
+
import { css, html, LitElement } from 'lit'
|
|
7
7
|
import { SYNC_DIRECTION } from '../pages/constants'
|
|
8
8
|
|
|
9
9
|
const SOURCE_FIELD_PREFIX = 'Source'
|
|
@@ -173,26 +173,28 @@ class ProductSyncWithAccounting extends localize(i18next)(LitElement) {
|
|
|
173
173
|
if (!response.errors?.length) {
|
|
174
174
|
const { items, total } = response.data.fetchSyncProducts
|
|
175
175
|
|
|
176
|
-
const records = items
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
176
|
+
const records = items
|
|
177
|
+
.map(({ platformProduct, bizplaceProduct }) => {
|
|
178
|
+
const item = { sku: platformProduct.sku || bizplaceProduct.sku }
|
|
179
|
+
const itemFields = Object.keys(platformProduct)
|
|
180
|
+
if (this.syncDirection === SYNC_DIRECTION.FROM_BIZPLACE) {
|
|
181
|
+
itemFields.forEach(key => {
|
|
182
|
+
item[`${SOURCE_FIELD_PREFIX}_${key}`] = bizplaceProduct[key]
|
|
183
|
+
item[`${SINK_FIELD_PREFIX}_${key}`] = platformProduct[key]
|
|
184
|
+
})
|
|
185
|
+
} else {
|
|
186
|
+
itemFields.forEach(key => {
|
|
187
|
+
item[`${SOURCE_FIELD_PREFIX}_${key}`] = platformProduct[key]
|
|
188
|
+
item[`${SINK_FIELD_PREFIX}_${key}`] = bizplaceProduct[key]
|
|
189
|
+
})
|
|
190
|
+
}
|
|
190
191
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
return item
|
|
193
|
+
})
|
|
194
|
+
.sort((a, b) => {
|
|
195
|
+
if (a[`${SOURCE_FIELD_PREFIX}_sku`] && a[`${SINK_FIELD_PREFIX}_sku`]) return -1
|
|
196
|
+
return 1
|
|
197
|
+
})
|
|
196
198
|
|
|
197
199
|
return {
|
|
198
200
|
records: records?.length ? records : [],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
3
|
import { store } from '@things-factory/shell'
|
|
4
|
-
import { css, html, LitElement } from 'lit
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
6
6
|
import { SYNC_DIRECTION } from '../pages/constants'
|
|
7
7
|
import './product-sync-with-accounting'
|
|
@@ -3,7 +3,7 @@ import '@things-factory/auth-ui'
|
|
|
3
3
|
import { i18next } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, CustomAlert } from '@things-factory/shell'
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import { css, html, LitElement } from 'lit
|
|
6
|
+
import { css, html, LitElement } from 'lit'
|
|
7
7
|
|
|
8
8
|
class OAuth2DecisionPage extends LitElement {
|
|
9
9
|
static get styles() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i18next } from '@things-factory/i18n-base'
|
|
2
2
|
import { client, PageView, store, navigate } from '@things-factory/shell'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html } from 'lit
|
|
4
|
+
import { css, html } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
6
6
|
import '../../component/product-sync'
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { client, PageView, store } from '@things-factory/shell'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
|
-
import { css, html } from 'lit
|
|
3
|
+
import { css, html } from 'lit'
|
|
4
4
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
5
5
|
import '../../component/product-sync'
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store, navigate } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import './accounting-cards'
|
|
5
5
|
|
|
@@ -48,7 +48,7 @@ class AccountingHome extends connect(store)(PageView) {
|
|
|
48
48
|
get context() {
|
|
49
49
|
return {
|
|
50
50
|
title: 'accounting home',
|
|
51
|
-
help:'page/accounts'
|
|
51
|
+
help: 'page/accounts'
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
package/client/pages/api/home.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../component/bizplace-domain-cards'
|
|
2
2
|
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html } from 'lit
|
|
4
|
+
import { css, html } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
6
6
|
|
|
7
7
|
import { i18next } from '@things-factory/i18n-base'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store, navigate } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { COMPANY_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { WAREHOUSE_EXT_TYPE, RETAIL_EXT_TYPE, COMPANY_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { WAREHOUSE_EXT_TYPE, COMPANY_EXT_TYPE } from '../constants'
|
package/client/pages/lmd/home.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { WAREHOUSE_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { RETAIL_EXT_TYPE, WAREHOUSE_EXT_TYPE, COMPANY_EXT_TYPE } from '../constants'
|
package/client/pages/pos/home.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store, navigate } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import './pos-cards'
|
|
5
5
|
|
|
@@ -44,7 +44,7 @@ class POSHome extends connect(store)(PageView) {
|
|
|
44
44
|
get context() {
|
|
45
45
|
return {
|
|
46
46
|
title: 'POS integration home',
|
|
47
|
-
help:'page/pos-stores'
|
|
47
|
+
help: 'page/pos-stores'
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { COMPANY_EXT_TYPE, WAREHOUSE_EXT_TYPE, RETAIL_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { COMPANY_EXT_TYPE, WAREHOUSE_EXT_TYPE, RETAIL_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { COMPANY_EXT_TYPE, WAREHOUSE_EXT_TYPE, RETAIL_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { RETAIL_EXT_TYPE, WAREHOUSE_EXT_TYPE, COMPANY_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { COMPANY_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { RETAIL_EXT_TYPE, WAREHOUSE_EXT_TYPE, COMPANY_EXT_TYPE } from '../constants'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageView, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import '../../component/home-menu-cards'
|
|
5
5
|
import { RETAIL_EXT_TYPE, WAREHOUSE_EXT_TYPE, COMPANY_EXT_TYPE } from '../constants'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit
|
|
1
|
+
import { LitElement, html, css } from 'lit'
|
|
2
2
|
|
|
3
3
|
export class UserCircle extends LitElement {
|
|
4
4
|
static get properties() {
|
|
@@ -21,9 +21,7 @@ export class UserCircle extends LitElement {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
render() {
|
|
24
|
-
return html`
|
|
25
|
-
<img src="/assets/images/heartyoh.jpg" class="user" />
|
|
26
|
-
`
|
|
24
|
+
return html` <img src="/assets/images/heartyoh.jpg" class="user" /> `
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
|