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