@things-factory/integration-marketplace 7.0.1-alpha.83 → 7.0.1-alpha.86
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/pages/create-store-popup.js +1 -1
- package/client/pages/marketplace-store-lazada.js +1 -1
- package/client/pages/marketplace-store-magento.js +20 -23
- package/client/pages/marketplace-store-shopee.js +1 -1
- package/client/pages/marketplace-store-shopify.js +4 -5
- package/client/pages/marketplace-store-woocommerce.js +4 -3
- package/client/pages/marketplace-store-zalora.js +1 -1
- package/client/pages/marketplace-stores.js +2 -2
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
2
2
|
import '@operato/data-grist'
|
3
|
-
import { i18next, localize } from '@
|
3
|
+
import { i18next, localize } from '@operato/i18n'
|
4
4
|
import { client } from '@operato/graphql'
|
5
5
|
import gql from 'graphql-tag'
|
6
6
|
import { css, html, LitElement } from 'lit'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { html, css } from 'lit'
|
2
2
|
import gql from 'graphql-tag'
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
4
|
-
import { i18next, localize } from '@
|
4
|
+
import { i18next, localize } from '@operato/i18n'
|
5
5
|
import { client, store, PageView } from '@things-factory/shell'
|
6
6
|
import LOGO from '../../assets/images/lazada-logo.jpeg'
|
7
7
|
|
@@ -3,7 +3,7 @@ import { client, PageView, store } from '@things-factory/shell'
|
|
3
3
|
import gql from 'graphql-tag'
|
4
4
|
import { css, html } from 'lit'
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
6
|
-
import { i18next, localize } from '@
|
6
|
+
import { i18next, localize } from '@operato/i18n'
|
7
7
|
import LOGO from '../../assets/images/magento-logo.png'
|
8
8
|
import '../../components/add-distributor'
|
9
9
|
import '../../components/distributor-editor'
|
@@ -190,10 +190,9 @@ class MarketplaceStoreMagento extends connect(store)(localize(i18next)(PageView)
|
|
190
190
|
<select name="deliveryTransporter">
|
191
191
|
<option value="">--${i18next.t('label.please_select_a_delivery_transporter')}--</option>
|
192
192
|
${(this.transporters || []).map(
|
193
|
-
transporter =>
|
194
|
-
|
195
|
-
|
196
|
-
`
|
193
|
+
transporter => html`
|
194
|
+
<option value="${transporter && transporter.id}">${transporter && transporter.name}</option>
|
195
|
+
`
|
197
196
|
)}
|
198
197
|
</select>
|
199
198
|
</div>
|
@@ -203,17 +202,16 @@ class MarketplaceStoreMagento extends connect(store)(localize(i18next)(PageView)
|
|
203
202
|
${status == 'ACTIVE'
|
204
203
|
? html`
|
205
204
|
<add-distributor .marketplaceStore="${this.marketplaceStore}" @fetch-distributors="${async () =>
|
206
|
-
|
205
|
+
(this.distributors = await this.fetchDistributors())}"></add-distributor>
|
207
206
|
<div subtitle>${i18next.t('text.registered_distributors')}</div>
|
208
207
|
<div id="distributors">
|
209
|
-
<quick-find-list .data="${data}" .openHeaderRenderer=${distributor =>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
`}></quick-find-list>
|
208
|
+
<quick-find-list .data="${data}" .openHeaderRenderer=${distributor => html`
|
209
|
+
<distributor-editor
|
210
|
+
.distributor="${distributor}"
|
211
|
+
@distributorChanged="${e => (this.updateDistributorObj = e.detail)}"
|
212
|
+
@fetch-distributors="${async () => (this.distributors = await this.fetchDistributors())}"
|
213
|
+
></distributor-editor>
|
214
|
+
`}></quick-find-list>
|
217
215
|
</div>
|
218
216
|
</div>
|
219
217
|
${
|
@@ -250,17 +248,16 @@ class MarketplaceStoreMagento extends connect(store)(localize(i18next)(PageView)
|
|
250
248
|
</div>
|
251
249
|
</div>
|
252
250
|
<add-distributor .marketplaceStore="${this.marketplaceStore}" @fetch-distributors="${async () =>
|
253
|
-
|
251
|
+
(this.distributors = await this.fetchDistributors())}"></add-distributor>
|
254
252
|
<div subtitle>${i18next.t('text.registered_distributors')}</div>
|
255
253
|
<div id="distributors">
|
256
|
-
<quick-find-list .data="${data}" .openHeaderRenderer=${distributor =>
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
`}></quick-find-list>
|
254
|
+
<quick-find-list .data="${data}" .openHeaderRenderer=${distributor => html`
|
255
|
+
<distributor-editor
|
256
|
+
.distributor="${distributor}"
|
257
|
+
@distributorChanged="${e => (this.updateDistributorObj = e.detail)}"
|
258
|
+
@fetch-distributors="${async () => (this.distributors = await this.fetchDistributors())}"
|
259
|
+
></distributor-editor>
|
260
|
+
`}></quick-find-list>
|
264
261
|
</div>
|
265
262
|
</div>
|
266
263
|
${
|
@@ -2,7 +2,7 @@ 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'
|
5
|
-
import { i18next, localize } from '@
|
5
|
+
import { i18next, localize } from '@operato/i18n'
|
6
6
|
import LOGO from '../../assets/images/shopee-logo.png'
|
7
7
|
|
8
8
|
const MARKETPLACE_STORE_RESULT = `{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { html, css } from 'lit'
|
2
2
|
import gql from 'graphql-tag'
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
4
|
-
import { i18next, localize } from '@
|
4
|
+
import { i18next, localize } from '@operato/i18n'
|
5
5
|
import { client, store, PageView } from '@things-factory/shell'
|
6
6
|
import LOGO from '../../assets/images/operato-logo.jpeg'
|
7
7
|
|
@@ -172,10 +172,9 @@ class MarketplaceStoreShopify extends connect(store)(localize(i18next)(PageView)
|
|
172
172
|
<select name="deliveryTransporter">
|
173
173
|
<option value="">--${i18next.t('label.please_select_a_delivery_transporter')}--</option>
|
174
174
|
${(this.transporters || []).map(
|
175
|
-
transporter =>
|
176
|
-
|
177
|
-
|
178
|
-
`
|
175
|
+
transporter => html`
|
176
|
+
<option value="${transporter && transporter.id}">${transporter && transporter.name}</option>
|
177
|
+
`
|
179
178
|
)}
|
180
179
|
</select>
|
181
180
|
</div>
|
@@ -2,7 +2,7 @@ import gql from 'graphql-tag'
|
|
2
2
|
import { css, html } from 'lit'
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
4
4
|
|
5
|
-
import { i18next, localize } from '@
|
5
|
+
import { i18next, localize } from '@operato/i18n'
|
6
6
|
import { client, PageView, store } from '@things-factory/shell'
|
7
7
|
|
8
8
|
import LOGO from '../../assets/images/woocommerce-logo.png'
|
@@ -174,8 +174,9 @@ ${
|
|
174
174
|
<select name="deliveryTransporter">
|
175
175
|
<option value="">--${i18next.t('label.please_select_a_delivery_transporter')}--</option>
|
176
176
|
${(this.transporters || []).map(
|
177
|
-
transporter =>
|
178
|
-
|
177
|
+
transporter => html`
|
178
|
+
<option value="${transporter && transporter.id}">${transporter && transporter.name}</option>
|
179
|
+
`
|
179
180
|
)}
|
180
181
|
</select>
|
181
182
|
</div>
|
@@ -2,7 +2,7 @@ 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'
|
5
|
-
import { i18next, localize } from '@
|
5
|
+
import { i18next, localize } from '@operato/i18n'
|
6
6
|
import LOGO from '../../assets/images/zalora-logo.png'
|
7
7
|
|
8
8
|
const MARKETPLACE_STORE_RESULT = `{
|
@@ -4,11 +4,11 @@ import './create-store-popup'
|
|
4
4
|
import gql from 'graphql-tag'
|
5
5
|
import { css, html } from 'lit'
|
6
6
|
|
7
|
-
import { i18next, localize } from '@
|
7
|
+
import { i18next, localize } from '@operato/i18n'
|
8
8
|
import { openPopup } from '@operato/layout'
|
9
9
|
import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
|
10
10
|
import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
|
11
|
-
import { isMobileDevice } from '@
|
11
|
+
import { isMobileDevice } from '@operato/utils'
|
12
12
|
|
13
13
|
class MarketplaceStores extends localize(i18next)(PageView) {
|
14
14
|
static get styles() {
|