@things-factory/operato-hub 6.0.25 → 6.0.28

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.
Files changed (40) hide show
  1. package/client/bootstrap.js +1 -1
  2. package/client/component/bizplace-cards.js +1 -1
  3. package/client/component/bizplace-domain-cards.js +1 -1
  4. package/client/component/home-menu-cards.js +1 -1
  5. package/client/component/product-sync-with-accounting.js +22 -20
  6. package/client/component/product-sync.js +1 -1
  7. package/client/entries/oauth2/oauth2-decision-page.js +1 -1
  8. package/client/entries/public/business-register.js +1 -1
  9. package/client/pages/accounting/accounting-account.js +1 -1
  10. package/client/pages/accounting/accounting-cards.js +1 -1
  11. package/client/pages/accounting/accounting-product-sync.js +1 -1
  12. package/client/pages/accounting/home.js +2 -2
  13. package/client/pages/api/home.js +1 -1
  14. package/client/pages/application/store.js +1 -1
  15. package/client/pages/bizplace/bizplace.js +1 -1
  16. package/client/pages/bizplace/home.js +1 -1
  17. package/client/pages/bizplace/register.js +1 -1
  18. package/client/pages/business/home.js +1 -1
  19. package/client/pages/business/setting-backup.js +1 -1
  20. package/client/pages/business/setting-payment.js +1 -1
  21. package/client/pages/codes/home.js +1 -1
  22. package/client/pages/contact-points/home.js +1 -1
  23. package/client/pages/lmd/home.js +1 -1
  24. package/client/pages/partner-settings/home.js +1 -1
  25. package/client/pages/partners/home.js +1 -1
  26. package/client/pages/pos/home.js +2 -2
  27. package/client/pages/pos/pos-account.js +1 -1
  28. package/client/pages/pos/pos-cards.js +1 -1
  29. package/client/pages/product-bundles/home.js +1 -1
  30. package/client/pages/product-sets/home.js +1 -1
  31. package/client/pages/products/home.js +1 -1
  32. package/client/pages/roles/home.js +1 -1
  33. package/client/pages/sellercraft/home.js +1 -1
  34. package/client/pages/sellercraft/sellercraft-store-setting.js +1 -1
  35. package/client/pages/settings/home.js +1 -1
  36. package/client/pages/template/home.js +1 -1
  37. package/client/pages/users/home.js +1 -1
  38. package/client/viewparts/user-circle.js +2 -4
  39. package/dist-server/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +41 -41
@@ -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-element'
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'
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
 
3
3
  class BizplaceCards extends LitElement {
4
4
  static get styles() {
@@ -1,4 +1,4 @@
1
- import { css, html, LitElement } from 'lit-element'
1
+ import { css, html, LitElement } from 'lit'
2
2
 
3
3
  import { i18next } from '@things-factory/i18n-base'
4
4
 
@@ -1,4 +1,4 @@
1
- import { css, html, LitElement } from 'lit-element'
1
+ import { css, html, LitElement } from 'lit'
2
2
  import { COMPANY_EXT_TYPE, EXT_TYPE_ICON_MAP } from '../pages/constants'
3
3
  import { buildDomainContext } from '../utils'
4
4
 
@@ -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-element'
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.map(({ platformProduct, bizplaceProduct }) => {
177
- const item = { sku: platformProduct.sku || bizplaceProduct.sku }
178
- const itemFields = Object.keys(platformProduct)
179
- if (this.syncDirection === SYNC_DIRECTION.FROM_BIZPLACE) {
180
- itemFields.forEach(key => {
181
- item[`${SOURCE_FIELD_PREFIX}_${key}`] = bizplaceProduct[key]
182
- item[`${SINK_FIELD_PREFIX}_${key}`] = platformProduct[key]
183
- })
184
- } else {
185
- itemFields.forEach(key => {
186
- item[`${SOURCE_FIELD_PREFIX}_${key}`] = platformProduct[key]
187
- item[`${SINK_FIELD_PREFIX}_${key}`] = bizplaceProduct[key]
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
- return item
192
- }).sort((a, b) => {
193
- if(a[`${SOURCE_FIELD_PREFIX}_sku`] && a[`${SINK_FIELD_PREFIX}_sku`]) return -1
194
- return 1
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-element'
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-element'
6
+ import { css, html, LitElement } from 'lit'
7
7
 
8
8
  class OAuth2DecisionPage extends LitElement {
9
9
  static get styles() {
@@ -1,5 +1,5 @@
1
1
  import { i18next, localize } from '@things-factory/i18n-base'
2
- import { css, html, LitElement } from 'lit-element'
2
+ import { css, html, LitElement } from 'lit'
3
3
 
4
4
  export class BusinessRegister extends localize(i18next)(LitElement) {
5
5
  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-element'
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,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
 
3
3
  class AccountingCard extends LitElement {
4
4
  static get styles() {
@@ -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-element'
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-element'
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
 
@@ -1,5 +1,5 @@
1
1
  import { PageView, store } from '@things-factory/shell'
2
- import { css, html } from 'lit-element'
2
+ import { css, html } from 'lit'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
 
5
5
  class APIHome extends connect(store)(PageView) {
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
  import gql from 'graphql-tag'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
  import { client, store, PageView } from '@things-factory/shell'
@@ -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-element'
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-element'
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,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
  import gql from 'graphql-tag'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
  import { client, navigate, store, PageView } from '@things-factory/shell'
@@ -1,5 +1,5 @@
1
1
  import gql from 'graphql-tag'
2
- import { css, html } from 'lit-element'
2
+ import { css, html } from 'lit'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
 
5
5
  import { i18next } from '@things-factory/i18n-base'
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
  import gql from 'graphql-tag'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
  import { client, store, PageView } from '@things-factory/shell'
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
  import gql from 'graphql-tag'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
  import { client, store, PageView } from '@things-factory/shell'
@@ -1,5 +1,5 @@
1
1
  import { PageView, store } from '@things-factory/shell'
2
- import { css, html } from 'lit-element'
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-element'
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'
@@ -1,5 +1,5 @@
1
1
  import { PageView, store } from '@things-factory/shell'
2
- import { css, html } from 'lit-element'
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-element'
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-element'
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
 
@@ -1,5 +1,5 @@
1
1
  import { PageView, store, navigate } from '@things-factory/shell'
2
- import { css, html } from 'lit-element'
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,4 +1,4 @@
1
- import { html, css } from 'lit-element'
1
+ import { html, css } from 'lit'
2
2
  import gql from 'graphql-tag'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
  import { client, store, PageView } from '@things-factory/shell'
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
 
3
3
  class POSCard extends LitElement {
4
4
  static get styles() {
@@ -1,5 +1,5 @@
1
1
  import { PageView, store } from '@things-factory/shell'
2
- import { css, html } from 'lit-element'
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-element'
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-element'
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-element'
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-element'
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 gql from 'graphql-tag'
2
- import { css, html } from 'lit-element'
2
+ import { css, html } from 'lit'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
 
5
5
  import { i18next, localize } from '@things-factory/i18n-base'
@@ -1,5 +1,5 @@
1
1
  import { PageView, store } from '@things-factory/shell'
2
- import { css, html } from 'lit-element'
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-element'
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-element'
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
 
@@ -1,4 +1,4 @@
1
- import { LitElement, html, css } from 'lit-element'
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