@isoftdata/svelte-ecommerce 1.0.0-beta.2 → 1.0.0-beta.3
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.
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import Checkbox from '@isoftdata/svelte-checkbox'
|
|
9
9
|
import Button from '@isoftdata/svelte-button'
|
|
10
10
|
import Select from '@isoftdata/svelte-select'
|
|
11
|
+
import { translate as defaultTranslate, booleanToYesNo as yesNo } from '@isoftdata/utility-string'
|
|
11
12
|
import type {
|
|
12
13
|
EbayLocation,
|
|
13
14
|
EbayPolicy,
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
} from './utils.js'
|
|
19
20
|
import EcommerceDefaults from './EcommerceDefaults.svelte'
|
|
20
21
|
|
|
21
|
-
import { translate as defaultTranslate } from '@isoftdata/utility-string'
|
|
22
22
|
const { t: translate } = getContext<i18n>('i18next') || { t: defaultTranslate }
|
|
23
23
|
|
|
24
24
|
interface Props {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
<td property="storeId">{row.storeId}</td>
|
|
181
181
|
<td property="name">{row.name}</td>
|
|
182
182
|
<td property="merchantLocationKey">{row.merchantLocationKey}</td>
|
|
183
|
-
<td property="active">{row.active}</td>
|
|
183
|
+
<td property="active">{yesNo(row.active, translate)}</td>
|
|
184
184
|
</tr>
|
|
185
185
|
{/snippet}
|
|
186
186
|
</Table>
|
|
@@ -208,41 +208,44 @@
|
|
|
208
208
|
{close}
|
|
209
209
|
>
|
|
210
210
|
{#if selectedStoreConfigRow}
|
|
211
|
-
<
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<Select
|
|
218
|
-
label={translate('ecommerce.configuration.store', 'Store')}
|
|
219
|
-
emptyText="-- {translate('ecommerce.configuration.selectStore', 'Select Store')} --"
|
|
220
|
-
bind:value={selectedStoreConfigRow.storeId}
|
|
221
|
-
>
|
|
222
|
-
{#each availableStores as store}
|
|
223
|
-
<option value={store.storeId}>{store.name}</option>
|
|
224
|
-
{/each}
|
|
225
|
-
</Select>
|
|
226
|
-
{#if selectedStoreConfigRow.storeId}
|
|
211
|
+
<Checkbox
|
|
212
|
+
label={translate('ecommerce.configuration.activeOnEbay', 'Active on eBay')}
|
|
213
|
+
bind:checked={selectedStoreConfigRow.active}
|
|
214
|
+
/>
|
|
215
|
+
<div class="row mb-2">
|
|
216
|
+
<div class="col-md-6">
|
|
227
217
|
<Select
|
|
228
|
-
label={translate('ecommerce.configuration.
|
|
229
|
-
emptyText="-- {translate('ecommerce.configuration.
|
|
230
|
-
bind:value={selectedStoreConfigRow.
|
|
218
|
+
label={translate('ecommerce.configuration.itrackStore', 'ITrack Store')}
|
|
219
|
+
emptyText="-- {translate('ecommerce.configuration.selectStore', 'Select Store')} --"
|
|
220
|
+
bind:value={selectedStoreConfigRow.storeId}
|
|
231
221
|
>
|
|
232
|
-
{#each
|
|
233
|
-
<option value={
|
|
222
|
+
{#each availableStores as store}
|
|
223
|
+
<option value={store.storeId}>{store.name}</option>
|
|
234
224
|
{/each}
|
|
235
225
|
</Select>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
226
|
+
</div>
|
|
227
|
+
<div class="col-md-6">
|
|
228
|
+
{#if selectedStoreConfigRow.storeId}
|
|
229
|
+
<Select
|
|
230
|
+
label={translate('ecommerce.configuration.ebayLocation', 'eBay Location')}
|
|
231
|
+
emptyText="-- {translate('ecommerce.configuration.selectLocation', 'Select Location')} --"
|
|
232
|
+
bind:value={selectedStoreConfigRow.merchantLocationKey}
|
|
233
|
+
>
|
|
234
|
+
{#each availableLocations as location}
|
|
235
|
+
<option value={location.ebayName}>{location.ebayName}</option>
|
|
236
|
+
{/each}
|
|
237
|
+
</Select>
|
|
238
|
+
{/if}
|
|
239
|
+
</div>
|
|
246
240
|
</div>
|
|
241
|
+
{#if selectedStoreConfigRow.merchantLocationKey}
|
|
242
|
+
<EcommerceDefaults
|
|
243
|
+
bind:defaults={selectedStoreConfigRow.defaults}
|
|
244
|
+
{ebayPolicyList}
|
|
245
|
+
{ecommerceConditionList}
|
|
246
|
+
{partnerConfigurationList}
|
|
247
|
+
{selectedEcommercePartnerId}
|
|
248
|
+
/>
|
|
249
|
+
{/if}
|
|
247
250
|
{/if}
|
|
248
251
|
</Modal>
|