@useinsider/guido 1.0.3-beta.2cf8046 → 1.0.3-beta.2df2106
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/README.md +3 -32
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -13
- package/dist/composables/useActionsApi.js +1 -1
- package/dist/composables/useHtmlCompiler.js +15 -13
- package/dist/composables/useHtmlValidator.js +36 -35
- package/dist/composables/useStripo.js +29 -25
- package/dist/config/compiler/itemsCompilerRules.js +14 -0
- package/dist/enums/unsubscribe.js +27 -26
- package/dist/extensions/Blocks/Checkbox/control.js +15 -14
- package/dist/extensions/Blocks/Checkbox/template.js +14 -9
- package/dist/extensions/Blocks/Items/block.js +26 -26
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +25 -25
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +92 -0
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +150 -114
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
- package/dist/extensions/Blocks/Items/enums/productEnums.js +77 -4
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +3 -2
- package/dist/extensions/Blocks/Items/extension.js +7 -6
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +57 -56
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +67 -56
- package/dist/extensions/Blocks/Items/settingsPanel.js +69 -43
- package/dist/extensions/Blocks/Items/store/items-block.js +8 -4
- package/dist/extensions/Blocks/Items/template.js +147 -62
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +35 -26
- package/dist/extensions/Blocks/Items/utils/updateAttributes.js +29 -27
- package/dist/extensions/Blocks/RadioButton/control.js +18 -17
- package/dist/extensions/Blocks/RadioButton/template.js +18 -9
- package/dist/extensions/Blocks/Unsubscribe/block.js +45 -41
- package/dist/guido.css +1 -1
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_SetCache.js +13 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
- package/dist/node_modules/lodash-es/_arraySome.js +9 -0
- package/dist/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/lodash-es/_baseRange.js +9 -0
- package/dist/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/dist/node_modules/lodash-es/_createRange.js +11 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/lodash-es/_getTag.js +28 -0
- package/dist/node_modules/lodash-es/_hasPath.js +19 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/lodash-es/flatMap.js +8 -0
- package/dist/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/keysIn.js +3 -3
- package/dist/node_modules/lodash-es/map.js +11 -0
- package/dist/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/lodash-es/range.js +5 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/toFinite.js +14 -0
- package/dist/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/src/config/compiler/itemsCompilerRules.d.ts +2 -0
- package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/block.d.ts +14 -0
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +15 -0
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +8 -2
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +1 -0
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +9 -1
- package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +6 -0
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +3 -4
- package/dist/src/utils/environmentUtil.d.ts +5 -0
- package/dist/src/utils/pairProductVariables.d.ts +7 -0
- package/dist/utils/environmentUtil.js +4 -0
- package/dist/utils/pairProductVariables.js +136 -0
- package/package.json +5 -10
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
const t =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</
|
|
32
|
-
</
|
|
33
|
-
</
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</
|
|
41
|
-
</
|
|
42
|
-
</
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</
|
|
50
|
-
</
|
|
51
|
-
</
|
|
52
|
-
</
|
|
53
|
-
</
|
|
54
|
-
</
|
|
55
|
-
</
|
|
56
|
-
</
|
|
1
|
+
const t = `{-{-TEMPLATE_FIRST_LINE-}-}
|
|
2
|
+
<table class="es-left ins-product-wrapper" cellspacing="0" cellpadding="0" align="left" width="100%">
|
|
3
|
+
{-{-CONFIG_BLOCK-}-}
|
|
4
|
+
<tbody>
|
|
5
|
+
<tr>
|
|
6
|
+
<td class="es-p20b es-p10r es-p10l es-m-p20b es-p10t" width="100%" align="center">
|
|
7
|
+
<table class="ins-product-cart" width="100%" cellspacing="0" cellpadding="0">
|
|
8
|
+
<tr style="vertical-align: top">
|
|
9
|
+
<td colspan="2" width="100%" align="center" data-slot-1>
|
|
10
|
+
<table width="100%">
|
|
11
|
+
<tbody>
|
|
12
|
+
{-{-PRODUCT_IMAGE-}-}
|
|
13
|
+
</tbody>
|
|
14
|
+
</table>
|
|
15
|
+
</td>
|
|
16
|
+
</tr>
|
|
17
|
+
{-{-PRODUCT_NAME-}-}
|
|
18
|
+
<tr>
|
|
19
|
+
<td width="50%" style=" width: 50%;display: block;float: left;" class="product-price-class">
|
|
20
|
+
<table width="100%">
|
|
21
|
+
<tbody>
|
|
22
|
+
{-{-PRODUCT_PRICE-}-}
|
|
23
|
+
</tbody>
|
|
24
|
+
</table>
|
|
25
|
+
</td>
|
|
26
|
+
<td width="50%" style=" width: 50%;display: block;float: left;"
|
|
27
|
+
class="product-original-price-class">
|
|
28
|
+
<table width="100%">
|
|
29
|
+
<tbody>
|
|
30
|
+
{-{-PRODUCT_ORIGINAL_PRICE-}-}
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td width="100%" class="product-quantity-class" data-slot-3>
|
|
37
|
+
<table width="100%">
|
|
38
|
+
<tbody>
|
|
39
|
+
{-{-PRODUCT_QUANTITY-}-}
|
|
40
|
+
</tbody>
|
|
41
|
+
</table>
|
|
42
|
+
</td>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td width="100%" class="product-button-class" data-slot-6>
|
|
46
|
+
<table width="100%">
|
|
47
|
+
<tbody>
|
|
48
|
+
{-{-PRODUCT_BUTTON-}-}
|
|
49
|
+
</tbody>
|
|
50
|
+
</table>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
</table>
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
</tbody>
|
|
57
|
+
</table>
|
|
57
58
|
</td>
|
|
58
59
|
`;
|
|
59
60
|
export {
|
|
@@ -1,59 +1,70 @@
|
|
|
1
|
-
const t =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
const t = `{-{-TEMPLATE_FIRST_LINE-}-}
|
|
2
|
+
<table class="es-left ins-product-wrapper ins-product-cart" width="100%" cellspacing="0" cellpadding="0">
|
|
3
|
+
{-{-CONFIG_BLOCK-}-}
|
|
4
|
+
<tbody>
|
|
5
|
+
<tr>
|
|
6
|
+
<td style="padding: 16px 9px;">
|
|
7
|
+
<table class="es-left esdev-disable-select" cellspacing="0" cellpadding="0" align="left" width="100%">
|
|
8
|
+
<tbody>
|
|
9
|
+
<tr>
|
|
10
|
+
<td class="product-image-class" data-slot-1>
|
|
11
|
+
{-{-PRODUCT_IMAGE-}-}
|
|
12
|
+
</td>
|
|
13
|
+
<td class="product-name-class" data-slot-2>
|
|
14
|
+
<table>
|
|
15
|
+
<tbody>
|
|
16
|
+
{-{-PRODUCT_NAME-}-}
|
|
17
|
+
</tbody>
|
|
18
|
+
</table>
|
|
19
|
+
</td>
|
|
20
|
+
<td class="product-quantity-class" data-slot-3>
|
|
21
|
+
<table width="100%">
|
|
22
|
+
<tbody>
|
|
23
|
+
{-{-PRODUCT_QUANTITY-}-}
|
|
24
|
+
</tbody>
|
|
25
|
+
</table>
|
|
26
|
+
</td>
|
|
27
|
+
<td class="product-price-class horizontal-price" data-slot-4>
|
|
28
|
+
<table width="100%">
|
|
29
|
+
<tbody>
|
|
30
|
+
{-{-PRODUCT_PRICE-}-}
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</td>
|
|
34
|
+
<td class="product-original-price-class horizontal-price" data-slot-5>
|
|
35
|
+
<table width="100%">
|
|
36
|
+
<tbody>
|
|
37
|
+
{-{-PRODUCT_ORIGINAL_PRICE-}-}
|
|
38
|
+
</tbody>
|
|
39
|
+
</table>
|
|
40
|
+
</td>
|
|
41
|
+
<td class="product-price-container vertical-price" data-slot-4 style="display: none;">
|
|
42
|
+
<table class="product-price-class" width="100%" data-slot-4>
|
|
43
|
+
<tbody>
|
|
44
|
+
{-{-PRODUCT_PRICE-}-}
|
|
45
|
+
</tbody>
|
|
46
|
+
</table>
|
|
47
|
+
<table class="product-original-price-class product-original-price-container"
|
|
48
|
+
width="100%" data-slot-5>
|
|
49
|
+
<tbody>
|
|
50
|
+
{-{-PRODUCT_ORIGINAL_PRICE-}-}
|
|
51
|
+
</tbody>
|
|
52
|
+
</table>
|
|
53
|
+
</td>
|
|
54
|
+
<td class="product-button-class" data-slot-6>
|
|
55
|
+
<table width="100%">
|
|
56
|
+
<tbody>
|
|
57
|
+
{-{-PRODUCT_BUTTON-}-}
|
|
58
|
+
</tbody>
|
|
59
|
+
</table>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
</tbody>
|
|
63
|
+
</table>
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
</tbody>
|
|
67
|
+
</table>
|
|
57
68
|
</td>
|
|
58
69
|
`;
|
|
59
70
|
export {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { SettingsPanelRegistry as O, SettingsPanelTab as T, SettingsTab as
|
|
2
|
-
import { BLOCK_ID as
|
|
1
|
+
import { SettingsPanelRegistry as O, SettingsPanelTab as T, SettingsTab as N } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { BLOCK_ID as R } from "./block.js";
|
|
3
3
|
import { COMPOSITION_CONTROL_BLOCK_ID as S } from "./controls/cardComposition.js";
|
|
4
|
-
import { CONTROL_BLOCK_ID as
|
|
4
|
+
import { CONTROL_BLOCK_ID as A } from "./controls/settingsControl.js";
|
|
5
5
|
import { ItemsBlockId as E, ItemsBlockControlId as I } from "./enums/controlEnums.js";
|
|
6
|
-
class
|
|
7
|
-
registerBlockControls(
|
|
8
|
-
|
|
6
|
+
class U extends O {
|
|
7
|
+
registerBlockControls(_) {
|
|
8
|
+
_[R] = [
|
|
9
9
|
new T(
|
|
10
|
-
|
|
10
|
+
N.SETTINGS,
|
|
11
11
|
[
|
|
12
|
-
|
|
13
|
-
R.EXTERNAL_INDENTS
|
|
12
|
+
A
|
|
14
13
|
]
|
|
15
14
|
),
|
|
16
15
|
new T(
|
|
@@ -19,88 +18,115 @@ class t extends O {
|
|
|
19
18
|
S
|
|
20
19
|
]
|
|
21
20
|
).withLabel("Card Composition")
|
|
22
|
-
],
|
|
21
|
+
], _[E.ORIGINAL_PRICE] = [
|
|
23
22
|
new T(
|
|
24
|
-
|
|
23
|
+
N.SETTINGS,
|
|
25
24
|
[
|
|
26
|
-
I.ORIGINAL_PRICE_COLOR,
|
|
27
|
-
I.ORIGINAL_PRICE_ALIGN,
|
|
28
|
-
I.ORIGINAL_PRICE_FONT_FAMILY,
|
|
29
|
-
I.ORIGINAL_PRICE_SIZE,
|
|
30
25
|
I.ORIGINAL_PRICE_STYLE,
|
|
26
|
+
I.ORIGINAL_PRICE_ALIGN,
|
|
31
27
|
I.ORIGINAL_PRICE_PADDINGS
|
|
32
28
|
]
|
|
29
|
+
),
|
|
30
|
+
new T(
|
|
31
|
+
N.STYLES,
|
|
32
|
+
[
|
|
33
|
+
I.ORIGINAL_PRICE_COLOR,
|
|
34
|
+
I.ORIGINAL_PRICE_FONT_FAMILY,
|
|
35
|
+
I.ORIGINAL_PRICE_SIZE
|
|
36
|
+
]
|
|
33
37
|
)
|
|
34
|
-
],
|
|
38
|
+
], _[E.PRICE] = [
|
|
35
39
|
new T(
|
|
36
|
-
|
|
40
|
+
N.SETTINGS,
|
|
37
41
|
[
|
|
38
|
-
I.PRICE_COLOR,
|
|
39
|
-
I.PRICE_ALIGN,
|
|
40
|
-
I.PRICE_FONT_FAMILY,
|
|
41
|
-
I.PRICE_SIZE,
|
|
42
42
|
I.PRICE_STYLE,
|
|
43
|
+
I.PRICE_ALIGN,
|
|
43
44
|
I.PRICE_HIDE_DISCOUNT,
|
|
44
45
|
I.PRICE_FORMATTED_PRICE,
|
|
45
46
|
I.PRICE_CURRENCY_SYMBOL,
|
|
46
47
|
I.PRICE_CURRENCY_LOCATION,
|
|
48
|
+
I.PRICE_ORIENTATION,
|
|
47
49
|
I.PRICE_PADDINGS
|
|
48
50
|
]
|
|
51
|
+
),
|
|
52
|
+
new T(
|
|
53
|
+
N.STYLES,
|
|
54
|
+
[
|
|
55
|
+
I.PRICE_COLOR,
|
|
56
|
+
I.PRICE_FONT_FAMILY,
|
|
57
|
+
I.PRICE_SIZE
|
|
58
|
+
]
|
|
49
59
|
)
|
|
50
|
-
],
|
|
60
|
+
], _[E.NAME] = [
|
|
51
61
|
new T(
|
|
52
|
-
|
|
62
|
+
N.SETTINGS,
|
|
53
63
|
[
|
|
54
|
-
I.NAME_COLOR,
|
|
55
|
-
I.NAME_ALIGN,
|
|
56
|
-
I.NAME_FONT_FAMILY,
|
|
57
|
-
I.NAME_SIZE,
|
|
58
64
|
I.NAME_STYLE,
|
|
65
|
+
I.NAME_ALIGN,
|
|
59
66
|
I.NAME_TRIMMING,
|
|
60
67
|
I.NAME_PADDINGS
|
|
61
68
|
]
|
|
69
|
+
),
|
|
70
|
+
new T(
|
|
71
|
+
N.STYLES,
|
|
72
|
+
[
|
|
73
|
+
I.NAME_FONT_FAMILY,
|
|
74
|
+
I.NAME_SIZE,
|
|
75
|
+
I.NAME_COLOR
|
|
76
|
+
]
|
|
62
77
|
)
|
|
63
|
-
],
|
|
78
|
+
], _[E.QUANTITY] = [
|
|
64
79
|
new T(
|
|
65
|
-
|
|
80
|
+
N.SETTINGS,
|
|
66
81
|
[
|
|
67
|
-
I.QUANTITY_COLOR,
|
|
68
|
-
I.QUANTITY_ALIGN,
|
|
69
82
|
I.QUANTITY_FONT_FAMILY,
|
|
83
|
+
I.QUANTITY_STYLE
|
|
84
|
+
]
|
|
85
|
+
),
|
|
86
|
+
new T(
|
|
87
|
+
N.STYLES,
|
|
88
|
+
[
|
|
89
|
+
I.QUANTITY_ALIGN,
|
|
70
90
|
I.QUANTITY_SIZE,
|
|
71
|
-
I.
|
|
91
|
+
I.QUANTITY_COLOR,
|
|
72
92
|
I.QUANTITY_PADDINGS
|
|
73
93
|
]
|
|
74
94
|
)
|
|
75
|
-
],
|
|
95
|
+
], _[E.IMAGE] = [
|
|
76
96
|
new T(
|
|
77
|
-
|
|
97
|
+
N.SETTINGS,
|
|
78
98
|
[
|
|
79
99
|
I.IMAGE_LINK,
|
|
80
100
|
I.IMAGE_SIZE,
|
|
81
101
|
I.IMAGE_MARGINS
|
|
82
102
|
]
|
|
83
103
|
)
|
|
84
|
-
],
|
|
104
|
+
], _[E.BUTTON] = [
|
|
85
105
|
new T(
|
|
86
|
-
|
|
106
|
+
N.SETTINGS,
|
|
87
107
|
[
|
|
88
108
|
I.BUTTON_LINK,
|
|
89
109
|
I.BUTTON_TEXT,
|
|
90
|
-
I.BUTTON_FONT_FAMILY,
|
|
91
|
-
I.BUTTON_TEXT_SIZE,
|
|
92
|
-
I.BUTTON_COLOR,
|
|
93
|
-
I.BUTTON_BORDER,
|
|
94
|
-
I.BUTTON_BORDER_RADIUS,
|
|
95
110
|
I.BUTTON_ALIGN,
|
|
96
|
-
I.BUTTON_FIT_TO_CONTENT,
|
|
97
111
|
I.BUTTON_PADDINGS,
|
|
98
112
|
I.BUTTON_MARGINS
|
|
99
113
|
]
|
|
114
|
+
),
|
|
115
|
+
new T(
|
|
116
|
+
N.STYLES,
|
|
117
|
+
[
|
|
118
|
+
I.BUTTON_COLOR,
|
|
119
|
+
I.BUTTON_FONT_FAMILY,
|
|
120
|
+
I.BUTTON_TEXT_SIZE,
|
|
121
|
+
I.BUTTON_TEXT_STYLE_AND_FONT_COLOR,
|
|
122
|
+
I.BUTTON_FIT_TO_CONTENT,
|
|
123
|
+
I.BUTTON_BORDER_RADIUS,
|
|
124
|
+
I.BUTTON_BORDER
|
|
125
|
+
]
|
|
100
126
|
)
|
|
101
127
|
];
|
|
102
128
|
}
|
|
103
129
|
}
|
|
104
130
|
export {
|
|
105
|
-
|
|
131
|
+
U as SettingsPanel
|
|
106
132
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineStore as
|
|
1
|
+
import { defineStore as r } from "pinia";
|
|
2
2
|
import { DefaultConfigValues as e } from "../enums/settingsEnums.js";
|
|
3
3
|
const n = (t) => t.replace(/Url\}/, "Image}"), o = (t) => t.replace(/Image\}/, "Url}"), i = () => {
|
|
4
4
|
const t = e.cartItemsSelectControlValue;
|
|
@@ -8,11 +8,12 @@ const n = (t) => t.replace(/Url\}/, "Image}"), o = (t) => t.replace(/Image\}/, "
|
|
|
8
8
|
imageLink: n(t),
|
|
9
9
|
buttonLink: o(t),
|
|
10
10
|
orientation: e.cardOrientationControlValue,
|
|
11
|
-
nameTrimming: !
|
|
11
|
+
nameTrimming: !0,
|
|
12
12
|
hideDiscount: !1,
|
|
13
13
|
currencySymbol: "USD",
|
|
14
14
|
currencyLocation: "0",
|
|
15
15
|
formattedPrice: !0,
|
|
16
|
+
priceOrientation: "horizontal",
|
|
16
17
|
templateData: {
|
|
17
18
|
imageSrc: "",
|
|
18
19
|
name: "",
|
|
@@ -22,7 +23,7 @@ const n = (t) => t.replace(/Url\}/, "Image}"), o = (t) => t.replace(/Image\}/, "
|
|
|
22
23
|
button: ""
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
},
|
|
26
|
+
}, m = r("guidoItemsBlock", {
|
|
26
27
|
state: () => i(),
|
|
27
28
|
actions: {
|
|
28
29
|
setItemsType(t) {
|
|
@@ -55,6 +56,9 @@ const n = (t) => t.replace(/Url\}/, "Image}"), o = (t) => t.replace(/Image\}/, "
|
|
|
55
56
|
setFormattedPrice(t) {
|
|
56
57
|
this.formattedPrice = t;
|
|
57
58
|
},
|
|
59
|
+
setPriceOrientation(t) {
|
|
60
|
+
this.priceOrientation = t;
|
|
61
|
+
},
|
|
58
62
|
setTemplateData(t) {
|
|
59
63
|
this.templateData = t;
|
|
60
64
|
},
|
|
@@ -67,5 +71,5 @@ const n = (t) => t.replace(/Url\}/, "Image}"), o = (t) => t.replace(/Image\}/, "
|
|
|
67
71
|
}
|
|
68
72
|
});
|
|
69
73
|
export {
|
|
70
|
-
|
|
74
|
+
m as useItemsBlockStore
|
|
71
75
|
};
|