@isoftdata/svelte-ecommerce 1.0.0-beta.5 → 1.0.0-beta.6
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/dist/EcommerceDefaults.svelte +31 -27
- package/dist/PolicyList.svelte +1 -2
- package/package.json +1 -1
|
@@ -262,7 +262,37 @@
|
|
|
262
262
|
</div>
|
|
263
263
|
</div>
|
|
264
264
|
</Fieldset>
|
|
265
|
-
|
|
265
|
+
<Fieldset
|
|
266
|
+
label={translate('configuration.ecommerce.pricingConfiguration', 'Pricing Configuration')}
|
|
267
|
+
class="mt-3 mb-3"
|
|
268
|
+
>
|
|
269
|
+
<div class="row">
|
|
270
|
+
<div class="col mt-3">
|
|
271
|
+
<Select
|
|
272
|
+
label={translate('configuration.ecommerce.defaultPrice', 'Default Price')}
|
|
273
|
+
showEmptyOption={false}
|
|
274
|
+
onchange={handleInputChange}
|
|
275
|
+
bind:value={defaultPriceType}
|
|
276
|
+
>
|
|
277
|
+
{#each priceLevels as priceLevel}
|
|
278
|
+
<option value={priceLevel}>{priceLevel}</option>
|
|
279
|
+
{/each}
|
|
280
|
+
</Select>
|
|
281
|
+
</div>
|
|
282
|
+
<div class="col mt-3">
|
|
283
|
+
<Input
|
|
284
|
+
label={translate('configuration.ecommerce.percentOfPrice', 'Percent of Price')}
|
|
285
|
+
type="number"
|
|
286
|
+
inputmode="numeric"
|
|
287
|
+
step="any"
|
|
288
|
+
placeholder="%"
|
|
289
|
+
min="0"
|
|
290
|
+
onchange={handleInputChange}
|
|
291
|
+
bind:value={pricingModifier}
|
|
292
|
+
/>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
</Fieldset>
|
|
266
296
|
<div class="row">
|
|
267
297
|
<div class="col">
|
|
268
298
|
<Select
|
|
@@ -327,32 +357,6 @@
|
|
|
327
357
|
/>
|
|
328
358
|
</div>
|
|
329
359
|
</div>
|
|
330
|
-
<div class="row">
|
|
331
|
-
<div class="col mt-3">
|
|
332
|
-
<Select
|
|
333
|
-
label={translate('configuration.ecommerce.defaultPrice', 'Default Price')}
|
|
334
|
-
showEmptyOption={false}
|
|
335
|
-
onchange={handleInputChange}
|
|
336
|
-
bind:value={defaultPriceType}
|
|
337
|
-
>
|
|
338
|
-
{#each priceLevels as priceLevel}
|
|
339
|
-
<option value={priceLevel}>{priceLevel}</option>
|
|
340
|
-
{/each}
|
|
341
|
-
</Select>
|
|
342
|
-
</div>
|
|
343
|
-
<div class="col mt-3">
|
|
344
|
-
<Input
|
|
345
|
-
label={translate('configuration.ecommerce.percentOfPrice', 'Percent of Price')}
|
|
346
|
-
type="number"
|
|
347
|
-
inputmode="numeric"
|
|
348
|
-
step="any"
|
|
349
|
-
placeholder="%"
|
|
350
|
-
min="0"
|
|
351
|
-
onchange={handleInputChange}
|
|
352
|
-
bind:value={pricingModifier}
|
|
353
|
-
/>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
360
|
<div class="row">
|
|
357
361
|
<div class="col mt-3">
|
|
358
362
|
<Button
|
package/dist/PolicyList.svelte
CHANGED
|
@@ -30,13 +30,12 @@
|
|
|
30
30
|
<div class="mb-4">
|
|
31
31
|
<Table
|
|
32
32
|
responsive
|
|
33
|
-
{title}
|
|
34
33
|
stickyHeader
|
|
35
34
|
rows={policies}
|
|
36
35
|
parentClass="overflow-y-auto mh-500"
|
|
37
36
|
columns={[
|
|
38
37
|
{ property: 'checked', name: translate('configuration.ecommerce.selected', 'Selected'), width: '100px' },
|
|
39
|
-
{ property: 'name', name:
|
|
38
|
+
{ property: 'name', name: title, defaultSortColumn: true }, // translated before passing to component
|
|
40
39
|
]}
|
|
41
40
|
>
|
|
42
41
|
{#snippet children({ row })}
|