@gem-sdk/components 2.0.0-dev.278 → 2.0.0-dev.288
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/cjs/accordion/components/Accordion.js +60 -179
- package/dist/cjs/accordion/components/Accordion.liquid.js +77 -101
- package/dist/cjs/accordion/components/AccordionItem.js +126 -280
- package/dist/cjs/accordion/components/AccordionItem.liquid.js +77 -215
- package/dist/cjs/accordion/components/common/classes.js +55 -0
- package/dist/cjs/accordion/components/common/index.js +146 -0
- package/dist/cjs/accordion/components/common/styles.js +131 -0
- package/dist/cjs/accordion/hooks/useAccordion.js +145 -0
- package/dist/cjs/accordion/hooks/useAccordionItem.js +119 -0
- package/dist/cjs/article/components/ArticleImage.js +0 -1
- package/dist/cjs/article/components/ArticlePagination.js +1 -1
- package/dist/cjs/article/components/ArticlePagination.liquid.js +3 -3
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +5 -5
- package/dist/cjs/banner/components/HeroBannerItem.js +0 -6
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +3 -0
- package/dist/cjs/banner/setting/setting.js +28 -3
- package/dist/cjs/banner/setting/uiV2.js +10 -97
- package/dist/cjs/builder.js +18 -20
- package/dist/cjs/cart/components/CartLineImage.js +0 -2
- package/dist/cjs/code/common/classes.js +11 -0
- package/dist/cjs/code/common/styles.js +15 -0
- package/dist/cjs/code/components/CSSCode.js +9 -99
- package/dist/cjs/code/components/CSSCode.liquid.js +11 -11
- package/dist/cjs/code/hooks/useCSSCode.js +102 -0
- package/dist/cjs/code/setting/CSSCode.js +7 -121
- package/dist/cjs/code/setting/config/setting.js +77 -0
- package/dist/cjs/code/setting/config/uiV1.js +52 -0
- package/dist/cjs/code/setting/config/uiV2.js +58 -0
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +4 -1
- package/dist/cjs/form/components/contact/Contact.js +6 -2
- package/dist/cjs/form/components/contact/common/composeStyles.js +21 -0
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +6 -4
- package/dist/cjs/form/components/form-checkbox/FormCheckbox.liquid.js +2 -4
- package/dist/cjs/form/components/form-checkbox/common/composeClasses.js +2 -2
- package/dist/cjs/form/components/form-checkbox/common/composeStyles.js +23 -10
- package/dist/cjs/form/components/form-dropdown/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/form-email/FormEmail.js +18 -10
- package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -1
- package/dist/cjs/form/components/newsletter/Newsletter.js +7 -2
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
- package/dist/cjs/form/components/newsletter/common/composeStyles.js +4 -2
- package/dist/cjs/form/components/textarea/TextArea.js +16 -8
- package/dist/cjs/form/components/textarea/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/textfield/TextField.js +17 -9
- package/dist/cjs/form/components/textfield/common/composeClasses.js +2 -2
- package/dist/cjs/form/setting/contact/Contact.js +5 -1
- package/dist/cjs/form/setting/form-checkbox/configs/settings.js +153 -6
- package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +137 -0
- package/dist/cjs/form/setting/form-dropdown/configs/settings.js +147 -0
- package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +156 -4
- package/dist/cjs/form/setting/newsletter/configs/settings.js +132 -3
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +93 -0
- package/dist/cjs/form/setting/submit-button/configs/settings.js +37 -0
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +13 -0
- package/dist/cjs/grid/row/commons/getInnerRadius.js +11 -10
- package/dist/cjs/grid/row/setting/configs/uiV2.js +1 -1
- package/dist/cjs/header/components/kind/basic/index.js +1 -0
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/helpers.js +53 -0
- package/dist/cjs/icon-list/setting/configs/uiV2.js +1 -1
- package/dist/cjs/icon-list-v2/setting/configs/settings.js +5 -5
- package/dist/cjs/image/components/AdaptiveImage.js +63 -49
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +56 -44
- package/dist/cjs/image/components/Image.js +65 -154
- package/dist/cjs/image/components/Image.liquid.js +68 -103
- package/dist/cjs/image/components/Modal3d.liquid.js +54 -21
- package/dist/cjs/image/components/NextImage.js +26 -59
- package/dist/cjs/image/components/NextImage.liquid.js +27 -115
- package/dist/cjs/image/components/Video.liquid.js +38 -13
- package/dist/cjs/image/components/common/attributes.js +115 -0
- package/dist/cjs/image/components/common/classes.js +57 -0
- package/dist/cjs/image/components/common/constants.js +15 -0
- package/dist/cjs/image/components/common/data.js +24 -0
- package/dist/cjs/image/components/common/helpers.js +75 -0
- package/dist/cjs/image/components/common/styles.js +88 -0
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +80 -0
- package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +40 -0
- package/dist/cjs/image/components/hooks/useCheckNoImage.js +25 -0
- package/dist/cjs/image/helpers/getSrcSet.js +0 -2
- package/dist/cjs/image/next.js +1 -5
- package/dist/cjs/image/setting/configs/settings.js +14 -8
- package/dist/cjs/image/setting/configs/uiV2.js +61 -15
- package/dist/cjs/image/setting/index.js +1 -3
- package/dist/cjs/image-comparison/components/CompareImage.js +1 -1
- package/dist/cjs/image-comparison/components/CompareImage.liquid.js +1 -1
- package/dist/cjs/index.js +91 -91
- package/dist/cjs/index.liquid.js +8 -8
- package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +2 -1
- package/dist/cjs/post-purchase/callout-banner/components/common/getClasses.js +5 -2
- package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +2 -4
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
- package/dist/cjs/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
- package/dist/cjs/post-purchase/countdown-timer/components/TextCountdown.js +12 -26
- package/dist/cjs/post-purchase/countdown-timer/components/common/getClasses.js +24 -0
- package/dist/cjs/post-purchase/countdown-timer/components/common/getStyles.js +21 -0
- package/dist/cjs/post-purchase/countdown-timer/hooks/useCountdownTimer.js +18 -1
- package/dist/cjs/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +18 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
- package/dist/cjs/post-purchase/countdown-timer/settings/config/preset.js +26 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +243 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV1.js +125 -0
- package/dist/cjs/post-purchase/countdown-timer/settings/config/uiV2.js +185 -0
- package/dist/cjs/post-purchase/image/common/getClasses.js +1 -1
- package/dist/cjs/post-purchase/image/setting/setting-v2.js +5 -5
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +24 -26
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +5 -5
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -0
- package/dist/cjs/product/components/ProductBundle/common/classes.js +25 -0
- package/dist/cjs/product/components/ProductBundle/common/index.js +5 -0
- package/dist/cjs/product/components/ProductBundle/common/styles.js +89 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.js +82 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +74 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +69 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +46 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.js +23 -0
- package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +14 -0
- package/dist/cjs/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +20 -215
- package/dist/cjs/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +56 -0
- package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
- package/dist/cjs/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
- package/dist/cjs/product/components/ProductButton.js +2 -2
- package/dist/cjs/product/components/ProductButton.liquid.js +2 -2
- package/dist/cjs/product/components/ProductPrice/common/getAttr.js +23 -0
- package/dist/cjs/product/components/ProductPrice/common/getClasses.js +19 -0
- package/dist/cjs/product/components/ProductPrice/common/getTextData.js +40 -0
- package/dist/cjs/product/components/ProductPrice/hooks/useGpPrice.js +126 -0
- package/dist/cjs/product/components/ProductPrice/index.js +54 -0
- package/dist/cjs/product/components/ProductPrice/index.liquid.js +43 -0
- package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +5 -5
- package/dist/cjs/product/next.js +3 -3
- package/dist/cjs/product/setting/index.js +2 -2
- package/dist/cjs/product/setting/product/configs/presets.js +1 -0
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +10 -8
- package/dist/cjs/setting.js +5 -2
- package/dist/esm/accordion/components/Accordion.js +61 -180
- package/dist/esm/accordion/components/Accordion.liquid.js +78 -102
- package/dist/esm/accordion/components/AccordionItem.js +129 -281
- package/dist/esm/accordion/components/AccordionItem.liquid.js +76 -214
- package/dist/esm/accordion/components/common/classes.js +44 -0
- package/dist/esm/accordion/components/common/index.js +136 -0
- package/dist/esm/accordion/components/common/styles.js +122 -0
- package/dist/esm/accordion/hooks/useAccordion.js +141 -0
- package/dist/esm/accordion/hooks/useAccordionItem.js +115 -0
- package/dist/esm/article/components/ArticleImage.js +0 -1
- package/dist/esm/article/components/ArticlePagination.js +1 -1
- package/dist/esm/article/components/ArticlePagination.liquid.js +3 -3
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +5 -5
- package/dist/esm/banner/components/HeroBannerItem.js +0 -6
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -0
- package/dist/esm/banner/setting/setting.js +28 -3
- package/dist/esm/banner/setting/uiV2.js +10 -97
- package/dist/esm/builder.js +3 -5
- package/dist/esm/cart/components/CartLineImage.js +0 -2
- package/dist/esm/code/common/classes.js +9 -0
- package/dist/esm/code/common/styles.js +13 -0
- package/dist/esm/code/components/CSSCode.js +9 -99
- package/dist/esm/code/components/CSSCode.liquid.js +12 -12
- package/dist/esm/code/hooks/useCSSCode.js +98 -0
- package/dist/esm/code/setting/CSSCode.js +7 -121
- package/dist/esm/code/setting/config/setting.js +75 -0
- package/dist/esm/code/setting/config/uiV1.js +50 -0
- package/dist/esm/code/setting/config/uiV2.js +56 -0
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +4 -1
- package/dist/esm/form/components/contact/Contact.js +7 -3
- package/dist/esm/form/components/contact/common/composeStyles.js +19 -0
- package/dist/esm/form/components/form-checkbox/FormCheckbox.js +7 -5
- package/dist/esm/form/components/form-checkbox/FormCheckbox.liquid.js +3 -5
- package/dist/esm/form/components/form-checkbox/common/composeClasses.js +2 -2
- package/dist/esm/form/components/form-checkbox/common/composeStyles.js +25 -11
- package/dist/esm/form/components/form-dropdown/common/composeClasses.js +1 -1
- package/dist/esm/form/components/form-email/FormEmail.js +18 -10
- package/dist/esm/form/components/form-email/common/composeClasses.js +2 -1
- package/dist/esm/form/components/newsletter/Newsletter.js +8 -3
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
- package/dist/esm/form/components/newsletter/common/composeStyles.js +4 -2
- package/dist/esm/form/components/textarea/TextArea.js +16 -8
- package/dist/esm/form/components/textarea/common/composeClasses.js +1 -1
- package/dist/esm/form/components/textfield/TextField.js +17 -9
- package/dist/esm/form/components/textfield/common/composeClasses.js +2 -2
- package/dist/esm/form/setting/contact/Contact.js +5 -1
- package/dist/esm/form/setting/form-checkbox/configs/settings.js +153 -6
- package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +137 -0
- package/dist/esm/form/setting/form-dropdown/configs/settings.js +147 -0
- package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +156 -4
- package/dist/esm/form/setting/newsletter/configs/settings.js +132 -3
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +93 -0
- package/dist/esm/form/setting/submit-button/configs/settings.js +37 -0
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +13 -0
- package/dist/esm/grid/row/commons/getInnerRadius.js +11 -10
- package/dist/esm/grid/row/setting/configs/uiV2.js +1 -1
- package/dist/esm/header/components/kind/basic/index.js +1 -0
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/helpers.js +52 -1
- package/dist/esm/icon-list/setting/configs/uiV2.js +1 -1
- package/dist/esm/icon-list-v2/setting/configs/settings.js +5 -5
- package/dist/esm/image/components/AdaptiveImage.js +64 -50
- package/dist/esm/image/components/AdaptiveImage.liquid.js +57 -45
- package/dist/esm/image/components/Image.js +66 -155
- package/dist/esm/image/components/Image.liquid.js +69 -104
- package/dist/esm/image/components/Modal3d.liquid.js +55 -22
- package/dist/esm/image/components/NextImage.js +26 -59
- package/dist/esm/image/components/NextImage.liquid.js +28 -116
- package/dist/esm/image/components/Video.liquid.js +38 -13
- package/dist/esm/image/components/common/attributes.js +108 -0
- package/dist/esm/image/components/common/classes.js +51 -0
- package/dist/esm/image/components/common/constants.js +11 -0
- package/dist/esm/image/components/common/data.js +22 -0
- package/dist/esm/image/components/common/helpers.js +69 -0
- package/dist/esm/image/components/common/styles.js +80 -0
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +78 -0
- package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +38 -0
- package/dist/esm/image/components/hooks/useCheckNoImage.js +23 -0
- package/dist/esm/image/helpers/getSrcSet.js +1 -2
- package/dist/esm/image/next.js +1 -5
- package/dist/esm/image/setting/configs/settings.js +14 -8
- package/dist/esm/image/setting/configs/uiV2.js +61 -15
- package/dist/esm/image/setting/index.js +1 -3
- package/dist/esm/image-comparison/components/CompareImage.js +1 -1
- package/dist/esm/image-comparison/components/CompareImage.liquid.js +1 -1
- package/dist/esm/index.js +4 -5
- package/dist/esm/index.liquid.js +3 -3
- package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -1
- package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +5 -2
- package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +2 -4
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +4 -10
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -11
- package/dist/esm/post-purchase/countdown-timer/components/PostPurchaseCountdownTimer.js +9 -23
- package/dist/esm/post-purchase/countdown-timer/components/TextCountdown.js +13 -27
- package/dist/esm/post-purchase/countdown-timer/components/common/getClasses.js +21 -0
- package/dist/esm/post-purchase/countdown-timer/components/common/getStyles.js +19 -0
- package/dist/esm/post-purchase/countdown-timer/hooks/useCountdownTimer.js +19 -3
- package/dist/esm/post-purchase/countdown-timer/hooks/useGetTimeExpired.js +16 -0
- package/dist/esm/post-purchase/countdown-timer/settings/CountdownTimer.js +9 -358
- package/dist/esm/post-purchase/countdown-timer/settings/config/preset.js +24 -0
- package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +241 -0
- package/dist/esm/post-purchase/countdown-timer/settings/config/uiV1.js +123 -0
- package/dist/esm/post-purchase/countdown-timer/settings/config/uiV2.js +183 -0
- package/dist/esm/post-purchase/image/common/getClasses.js +1 -1
- package/dist/esm/post-purchase/image/setting/setting-v2.js +5 -5
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +25 -27
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +5 -5
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +2 -2
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +1 -1
- package/dist/esm/product/components/FileUpload/components/common/index.js +3 -0
- package/dist/esm/product/components/ProductBundle/common/classes.js +19 -0
- package/dist/esm/product/components/ProductBundle/common/index.js +3 -0
- package/dist/esm/product/components/ProductBundle/common/styles.js +80 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.js +78 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscount.liquid.js +70 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +65 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +42 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.js +19 -0
- package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountItem.liquid.js +10 -0
- package/dist/esm/product/components/{ProductBundleDiscount.js → ProductBundle/hooks/useProductBundleDataState.js} +21 -216
- package/dist/esm/product/components/ProductBundle/hooks/useProductBundleDiscountState.js +52 -0
- package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscount.js +7 -7
- package/dist/esm/product/{setting → components/ProductBundle/setting}/ProductBundleDiscountItem.js +3 -0
- package/dist/esm/product/components/ProductButton.js +1 -1
- package/dist/esm/product/components/ProductButton.liquid.js +1 -1
- package/dist/esm/product/components/ProductPrice/common/getAttr.js +21 -0
- package/dist/esm/product/components/ProductPrice/common/getClasses.js +17 -0
- package/dist/esm/product/components/ProductPrice/common/getTextData.js +38 -0
- package/dist/esm/product/components/ProductPrice/hooks/useGpPrice.js +124 -0
- package/dist/esm/product/components/ProductPrice/index.js +50 -0
- package/dist/esm/product/components/ProductPrice/index.liquid.js +38 -0
- package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +1 -1
- package/dist/esm/product/next.js +3 -3
- package/dist/esm/product/setting/index.js +2 -2
- package/dist/esm/product/setting/product/configs/presets.js +1 -0
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +6 -7
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +11 -12
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +6 -5
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +10 -8
- package/dist/esm/setting.js +5 -2
- package/dist/types/index.d.ts +174 -257
- package/package.json +2 -2
- package/dist/cjs/image/components/BackgroundImage.js +0 -102
- package/dist/cjs/image/components/Img.js +0 -28
- package/dist/cjs/image/components/helpers.js +0 -12
- package/dist/cjs/image/setting/BackgroundImage.js +0 -364
- package/dist/cjs/product/components/ProductBundleDiscount.liquid.js +0 -81
- package/dist/cjs/product/components/ProductBundleDiscountItem.js +0 -42
- package/dist/cjs/product/components/ProductBundleDiscountItem.liquid.js +0 -103
- package/dist/cjs/product/components/ProductPrice.js +0 -209
- package/dist/cjs/product/components/ProductPrice.liquid.js +0 -88
- package/dist/esm/image/components/BackgroundImage.js +0 -98
- package/dist/esm/image/components/Img.js +0 -24
- package/dist/esm/image/components/helpers.js +0 -9
- package/dist/esm/image/setting/BackgroundImage.js +0 -360
- package/dist/esm/product/components/ProductBundleDiscount.liquid.js +0 -77
- package/dist/esm/product/components/ProductBundleDiscountItem.js +0 -36
- package/dist/esm/product/components/ProductBundleDiscountItem.liquid.js +0 -99
- package/dist/esm/product/components/ProductPrice.js +0 -205
- package/dist/esm/product/components/ProductPrice.liquid.js +0 -83
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const CountdownTimerSettings = [
|
|
4
|
+
{
|
|
5
|
+
id: 'setting',
|
|
6
|
+
controls: [
|
|
7
|
+
{
|
|
8
|
+
id: 'conditionGroup',
|
|
9
|
+
type: 'group',
|
|
10
|
+
label: 'Condition',
|
|
11
|
+
controls: [
|
|
12
|
+
{
|
|
13
|
+
id: 'conditionText',
|
|
14
|
+
label: 'Message',
|
|
15
|
+
type: 'input',
|
|
16
|
+
default: 'Offer expires in:',
|
|
17
|
+
clearButton: false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'expired',
|
|
21
|
+
label: 'Expired after',
|
|
22
|
+
type: 'input:unit',
|
|
23
|
+
units: [
|
|
24
|
+
'min'
|
|
25
|
+
],
|
|
26
|
+
min: 1,
|
|
27
|
+
isNumber: true,
|
|
28
|
+
showDefaultUnit: false,
|
|
29
|
+
default: '30',
|
|
30
|
+
fallbackValue: 30
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'expiredGroup',
|
|
36
|
+
type: 'group',
|
|
37
|
+
label: 'After expiry',
|
|
38
|
+
controls: [
|
|
39
|
+
{
|
|
40
|
+
id: 'expiredText',
|
|
41
|
+
label: 'Message',
|
|
42
|
+
type: 'input',
|
|
43
|
+
default: 'Offer expired',
|
|
44
|
+
clearButton: false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'whenTimeOut',
|
|
48
|
+
label: 'When times out',
|
|
49
|
+
type: 'select',
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
value: 'next-offer',
|
|
53
|
+
label: 'Show next offer'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
value: 'hide-offer',
|
|
57
|
+
label: 'Hide timer'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: 'thank-you',
|
|
61
|
+
label: 'Go to thank you'
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
default: 'next-offer'
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'style',
|
|
72
|
+
controls: [
|
|
73
|
+
{
|
|
74
|
+
id: 'bgColor',
|
|
75
|
+
type: 'select',
|
|
76
|
+
label: 'Background Color',
|
|
77
|
+
showSelectedIcon: true,
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
label: 'Red',
|
|
81
|
+
value: 'critical',
|
|
82
|
+
icon: 'gp-bg-color-red'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: 'Blue',
|
|
86
|
+
value: 'info',
|
|
87
|
+
icon: 'gp-bg-color-blue'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: 'Green',
|
|
91
|
+
value: 'success',
|
|
92
|
+
icon: 'gp-bg-color-green'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Yellow',
|
|
96
|
+
value: 'warning',
|
|
97
|
+
icon: 'gp-bg-color-yellow'
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
default: 'critical'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'direction',
|
|
104
|
+
label: 'Direction',
|
|
105
|
+
type: 'segment',
|
|
106
|
+
options: [
|
|
107
|
+
{
|
|
108
|
+
label: 'LTR',
|
|
109
|
+
value: 'ltr'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: 'RTL',
|
|
113
|
+
value: 'rtl'
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
default: 'ltr'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 'typo',
|
|
120
|
+
label: 'Label',
|
|
121
|
+
type: 'typography-post-purchase',
|
|
122
|
+
default: {
|
|
123
|
+
fontSize: 'xlarge',
|
|
124
|
+
textColor: 'default',
|
|
125
|
+
fontWeight: 'bold',
|
|
126
|
+
textTransform: 'none'
|
|
127
|
+
},
|
|
128
|
+
configLabel: {
|
|
129
|
+
fontSize: 'Font size',
|
|
130
|
+
textColor: 'Text color',
|
|
131
|
+
fontWeight: 'Font weight',
|
|
132
|
+
textTransform: 'Text transform'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'textAlign',
|
|
137
|
+
label: 'Alignment',
|
|
138
|
+
type: 'option:value',
|
|
139
|
+
options: [
|
|
140
|
+
{
|
|
141
|
+
label: 'Left',
|
|
142
|
+
value: 'left',
|
|
143
|
+
type: 'text',
|
|
144
|
+
tooltip: 'Align left',
|
|
145
|
+
iconName: 'polaris-text-align-left'
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: 'Center',
|
|
149
|
+
value: 'center',
|
|
150
|
+
type: 'text',
|
|
151
|
+
tooltip: 'Align center',
|
|
152
|
+
iconName: 'polaris-text-align-center'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: 'Right',
|
|
156
|
+
value: 'right',
|
|
157
|
+
type: 'text',
|
|
158
|
+
tooltip: 'Align right',
|
|
159
|
+
iconName: 'polaris-text-align-right'
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
label: 'Justify',
|
|
163
|
+
value: 'justify',
|
|
164
|
+
type: 'text',
|
|
165
|
+
tooltip: 'Align justify',
|
|
166
|
+
iconName: 'gp-text-align-justify'
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
default: 'left'
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: 'width',
|
|
173
|
+
type: 'dropdown:input',
|
|
174
|
+
label: 'Width',
|
|
175
|
+
inputType: 'number',
|
|
176
|
+
units: [
|
|
177
|
+
'px',
|
|
178
|
+
'%'
|
|
179
|
+
],
|
|
180
|
+
hideUnit: false,
|
|
181
|
+
devices: {
|
|
182
|
+
desktop: {
|
|
183
|
+
default: '100%'
|
|
184
|
+
},
|
|
185
|
+
tablet: {
|
|
186
|
+
default: '100%'
|
|
187
|
+
},
|
|
188
|
+
mobile: {
|
|
189
|
+
default: '100%'
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
displayOptions: [
|
|
193
|
+
{
|
|
194
|
+
label: 'Fit content',
|
|
195
|
+
value: 'Auto',
|
|
196
|
+
showValue: true
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: 'Full',
|
|
200
|
+
value: '100%',
|
|
201
|
+
showValue: true
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
label: 'Default',
|
|
205
|
+
value: 'default',
|
|
206
|
+
showValue: true
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: 'align',
|
|
212
|
+
label: 'Alignment',
|
|
213
|
+
type: 'option:value',
|
|
214
|
+
options: [
|
|
215
|
+
{
|
|
216
|
+
label: 'Left',
|
|
217
|
+
value: 'left',
|
|
218
|
+
type: 'align',
|
|
219
|
+
tooltip: 'Align left',
|
|
220
|
+
iconName: 'gp-align-left'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
label: 'Center',
|
|
224
|
+
value: 'center',
|
|
225
|
+
type: 'align',
|
|
226
|
+
tooltip: 'Align center',
|
|
227
|
+
iconName: 'gp-align-center'
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
label: 'Right',
|
|
231
|
+
value: 'right',
|
|
232
|
+
type: 'align',
|
|
233
|
+
tooltip: 'Align right',
|
|
234
|
+
iconName: 'gp-align-right'
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
default: 'left'
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
];
|
|
242
|
+
|
|
243
|
+
exports.CountdownTimerSettings = CountdownTimerSettings;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SettingUIV1 = [
|
|
4
|
+
{
|
|
5
|
+
type: 'group',
|
|
6
|
+
label: {
|
|
7
|
+
en: 'Condition'
|
|
8
|
+
},
|
|
9
|
+
controls: [
|
|
10
|
+
{
|
|
11
|
+
type: 'control',
|
|
12
|
+
label: {
|
|
13
|
+
en: 'Message'
|
|
14
|
+
},
|
|
15
|
+
setting: {
|
|
16
|
+
id: 'conditionText'
|
|
17
|
+
},
|
|
18
|
+
layout: 'vertical'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: 'control',
|
|
22
|
+
label: {
|
|
23
|
+
en: 'Expired after'
|
|
24
|
+
},
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'expired'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'group',
|
|
33
|
+
label: {
|
|
34
|
+
en: 'After expiry'
|
|
35
|
+
},
|
|
36
|
+
controls: [
|
|
37
|
+
{
|
|
38
|
+
type: 'control',
|
|
39
|
+
label: {
|
|
40
|
+
en: 'Message'
|
|
41
|
+
},
|
|
42
|
+
setting: {
|
|
43
|
+
id: 'expiredText'
|
|
44
|
+
},
|
|
45
|
+
layout: 'vertical'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'control',
|
|
49
|
+
label: {
|
|
50
|
+
en: 'When times out'
|
|
51
|
+
},
|
|
52
|
+
setting: {
|
|
53
|
+
id: 'whenTimeOut'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: 'group',
|
|
60
|
+
label: {
|
|
61
|
+
en: 'Style'
|
|
62
|
+
},
|
|
63
|
+
controls: [
|
|
64
|
+
{
|
|
65
|
+
type: 'control',
|
|
66
|
+
label: {
|
|
67
|
+
en: 'Background color'
|
|
68
|
+
},
|
|
69
|
+
setting: {
|
|
70
|
+
id: 'bgColor'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: 'control',
|
|
75
|
+
label: {
|
|
76
|
+
en: ''
|
|
77
|
+
},
|
|
78
|
+
setting: {
|
|
79
|
+
id: 'typo'
|
|
80
|
+
},
|
|
81
|
+
layout: 'vertical'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: 'control',
|
|
85
|
+
setting: {
|
|
86
|
+
id: 'textAlign'
|
|
87
|
+
},
|
|
88
|
+
label: {
|
|
89
|
+
en: 'Text align'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: 'group',
|
|
96
|
+
label: {
|
|
97
|
+
en: 'Size'
|
|
98
|
+
},
|
|
99
|
+
controls: [
|
|
100
|
+
{
|
|
101
|
+
type: 'control',
|
|
102
|
+
label: {
|
|
103
|
+
en: 'Width'
|
|
104
|
+
},
|
|
105
|
+
setting: {
|
|
106
|
+
id: 'width'
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: 'control',
|
|
113
|
+
label: {
|
|
114
|
+
en: 'Align'
|
|
115
|
+
},
|
|
116
|
+
setting: {
|
|
117
|
+
id: 'align'
|
|
118
|
+
},
|
|
119
|
+
options: {
|
|
120
|
+
label: 'large'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
];
|
|
124
|
+
|
|
125
|
+
exports.SettingUIV1 = SettingUIV1;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SettingUIV2 = [
|
|
4
|
+
{
|
|
5
|
+
label: {
|
|
6
|
+
en: 'Condition'
|
|
7
|
+
},
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
type: 'combo',
|
|
11
|
+
label: {
|
|
12
|
+
en: 'Message'
|
|
13
|
+
},
|
|
14
|
+
iconName: 'polaris-text-block',
|
|
15
|
+
getValueFromSettingID: 'conditionText',
|
|
16
|
+
isHideClear: true,
|
|
17
|
+
controls: [
|
|
18
|
+
{
|
|
19
|
+
type: 'control',
|
|
20
|
+
label: {
|
|
21
|
+
en: 'Content'
|
|
22
|
+
},
|
|
23
|
+
setting: {
|
|
24
|
+
id: 'conditionText'
|
|
25
|
+
},
|
|
26
|
+
layout: 'vertical'
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
layout: 'horizontal'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'control',
|
|
33
|
+
label: {
|
|
34
|
+
en: 'Expired after'
|
|
35
|
+
},
|
|
36
|
+
setting: {
|
|
37
|
+
id: 'expired'
|
|
38
|
+
},
|
|
39
|
+
layout: 'horizontal'
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: {
|
|
45
|
+
en: 'After expiry'
|
|
46
|
+
},
|
|
47
|
+
controls: [
|
|
48
|
+
{
|
|
49
|
+
type: 'combo',
|
|
50
|
+
label: {
|
|
51
|
+
en: 'Message'
|
|
52
|
+
},
|
|
53
|
+
iconName: 'polaris-text-block',
|
|
54
|
+
getValueFromSettingID: 'expiredText',
|
|
55
|
+
isHideClear: true,
|
|
56
|
+
controls: [
|
|
57
|
+
{
|
|
58
|
+
type: 'control',
|
|
59
|
+
label: {
|
|
60
|
+
en: 'Content'
|
|
61
|
+
},
|
|
62
|
+
setting: {
|
|
63
|
+
id: 'expiredText'
|
|
64
|
+
},
|
|
65
|
+
layout: 'vertical'
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
layout: 'horizontal'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: 'control',
|
|
72
|
+
label: {
|
|
73
|
+
en: 'When times out'
|
|
74
|
+
},
|
|
75
|
+
setting: {
|
|
76
|
+
id: 'whenTimeOut'
|
|
77
|
+
},
|
|
78
|
+
layout: 'horizontal'
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: {
|
|
84
|
+
en: 'Text'
|
|
85
|
+
},
|
|
86
|
+
controls: [
|
|
87
|
+
{
|
|
88
|
+
type: 'control',
|
|
89
|
+
label: {
|
|
90
|
+
en: 'Direction'
|
|
91
|
+
},
|
|
92
|
+
setting: {
|
|
93
|
+
id: 'direction'
|
|
94
|
+
},
|
|
95
|
+
controlChangeTrigger: {
|
|
96
|
+
settings: [
|
|
97
|
+
{
|
|
98
|
+
action: {
|
|
99
|
+
controlId: 'textAlign',
|
|
100
|
+
newValue: 'right',
|
|
101
|
+
groupType: 'style',
|
|
102
|
+
controlType: 'style'
|
|
103
|
+
},
|
|
104
|
+
condition: `direction === 'rtl'`,
|
|
105
|
+
source: [
|
|
106
|
+
'direction'
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
options: {
|
|
111
|
+
noRecordHistory: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'control',
|
|
117
|
+
label: {
|
|
118
|
+
en: 'Background color'
|
|
119
|
+
},
|
|
120
|
+
setting: {
|
|
121
|
+
id: 'bgColor'
|
|
122
|
+
},
|
|
123
|
+
layout: 'horizontal'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: 'typo',
|
|
127
|
+
type: 'control',
|
|
128
|
+
label: {
|
|
129
|
+
en: ''
|
|
130
|
+
},
|
|
131
|
+
setting: {
|
|
132
|
+
id: 'typo'
|
|
133
|
+
},
|
|
134
|
+
layout: 'vertical'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
type: 'control',
|
|
138
|
+
label: {
|
|
139
|
+
en: 'Align'
|
|
140
|
+
},
|
|
141
|
+
setting: {
|
|
142
|
+
id: 'textAlign'
|
|
143
|
+
},
|
|
144
|
+
layout: 'horizontal'
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
label: {
|
|
150
|
+
en: 'Size'
|
|
151
|
+
},
|
|
152
|
+
controls: [
|
|
153
|
+
{
|
|
154
|
+
label: {
|
|
155
|
+
en: 'Width'
|
|
156
|
+
},
|
|
157
|
+
setting: {
|
|
158
|
+
id: 'width'
|
|
159
|
+
},
|
|
160
|
+
type: 'control'
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
controls: [
|
|
166
|
+
{
|
|
167
|
+
label: {
|
|
168
|
+
en: 'Align'
|
|
169
|
+
},
|
|
170
|
+
conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
|
|
171
|
+
options: {
|
|
172
|
+
labelVariant: 'primary',
|
|
173
|
+
fullWidth: true,
|
|
174
|
+
disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
|
|
175
|
+
},
|
|
176
|
+
setting: {
|
|
177
|
+
id: 'align'
|
|
178
|
+
},
|
|
179
|
+
layout: 'horizontal'
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
|
|
185
|
+
exports.SettingUIV2 = SettingUIV2;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var core = require('@gem-sdk/core');
|
|
4
4
|
|
|
5
5
|
const getFigureClass = ()=>{
|
|
6
|
-
const classList = 'gp-relative gp-inline-block gp-w-
|
|
6
|
+
const classList = 'gp-relative gp-inline-block gp-w-full gp-align-middle gp-pointer-events-none';
|
|
7
7
|
return core.composeClasses(classList);
|
|
8
8
|
};
|
|
9
9
|
const getAdaptiveClass = ()=>{
|
|
@@ -96,21 +96,21 @@ const ImagePostPurchaseSettingV2 = [
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
id: 'objectFit',
|
|
99
|
-
type: '
|
|
100
|
-
iconViewBox: '0 0 66 48',
|
|
101
|
-
enableItemBackground: true,
|
|
99
|
+
type: 'option:illustration',
|
|
102
100
|
enableTooltip: true,
|
|
103
101
|
label: 'Image scale',
|
|
104
102
|
options: [
|
|
105
103
|
{
|
|
106
104
|
label: 'Fill image',
|
|
107
105
|
value: 'cover',
|
|
108
|
-
type: 'image'
|
|
106
|
+
type: 'image',
|
|
107
|
+
svgName: 'gp-image-cover'
|
|
109
108
|
},
|
|
110
109
|
{
|
|
111
110
|
label: 'Fit image',
|
|
112
111
|
value: 'contain',
|
|
113
|
-
type: 'image'
|
|
112
|
+
type: 'image',
|
|
113
|
+
svgName: 'gp-image-contain'
|
|
114
114
|
}
|
|
115
115
|
],
|
|
116
116
|
default: 'cover'
|
|
@@ -43,32 +43,30 @@ const CarouselWrapperPostPurchase = ({ styles, setting, productImages, objectFit
|
|
|
43
43
|
itemPerSlide,
|
|
44
44
|
setMoveToIdx
|
|
45
45
|
]);
|
|
46
|
-
return /*#__PURE__*/ jsxRuntime.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]
|
|
71
|
-
})
|
|
46
|
+
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
47
|
+
className: classes,
|
|
48
|
+
style: style,
|
|
49
|
+
children: [
|
|
50
|
+
/*#__PURE__*/ jsxRuntime.jsx(Arrow.ArrowPostPurchase, {
|
|
51
|
+
type: "prev",
|
|
52
|
+
navigation: navigation,
|
|
53
|
+
vertical: vertical,
|
|
54
|
+
hidden: isHiddenIcon
|
|
55
|
+
}),
|
|
56
|
+
/*#__PURE__*/ jsxRuntime.jsx(CarouselPostPurchase.CarouselPostPurchase, {
|
|
57
|
+
productImages: productImages,
|
|
58
|
+
itemPerRow: itemPerSlide,
|
|
59
|
+
border: border,
|
|
60
|
+
aspectRatio: aspectRatio,
|
|
61
|
+
objectFit: objectFit
|
|
62
|
+
}),
|
|
63
|
+
/*#__PURE__*/ jsxRuntime.jsx(Arrow.ArrowPostPurchase, {
|
|
64
|
+
type: "next",
|
|
65
|
+
navigation: navigation,
|
|
66
|
+
vertical: vertical,
|
|
67
|
+
hidden: isHiddenIcon
|
|
68
|
+
})
|
|
69
|
+
]
|
|
72
70
|
});
|
|
73
71
|
};
|
|
74
72
|
|
|
@@ -283,21 +283,21 @@ const SettingV2 = [
|
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
id: 'ilObjectFit',
|
|
286
|
-
type: '
|
|
287
|
-
iconViewBox: '0 0 66 48',
|
|
288
|
-
enableItemBackground: true,
|
|
286
|
+
type: 'option:illustration',
|
|
289
287
|
enableTooltip: true,
|
|
290
288
|
label: 'Image scale',
|
|
291
289
|
options: [
|
|
292
290
|
{
|
|
293
291
|
label: 'Fill image',
|
|
294
292
|
value: 'cover',
|
|
295
|
-
type: 'image'
|
|
293
|
+
type: 'image',
|
|
294
|
+
svgName: 'gp-image-cover'
|
|
296
295
|
},
|
|
297
296
|
{
|
|
298
297
|
label: 'Fit image',
|
|
299
298
|
value: 'contain',
|
|
300
|
-
type: 'image'
|
|
299
|
+
type: 'image',
|
|
300
|
+
svgName: 'gp-image-contain'
|
|
301
301
|
}
|
|
302
302
|
],
|
|
303
303
|
default: 'cover'
|
|
@@ -45,14 +45,14 @@ const ProductPriceBreakdownSettings = [
|
|
|
45
45
|
id: 'contentShow',
|
|
46
46
|
type: 'input',
|
|
47
47
|
default: 'Show price breakdown',
|
|
48
|
-
|
|
48
|
+
fallbackValue: 'Show price breakdown',
|
|
49
49
|
clearButton: false
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
id: 'contentHide',
|
|
53
53
|
type: 'input',
|
|
54
54
|
default: 'Hide price breakdown',
|
|
55
|
-
|
|
55
|
+
fallbackValue: 'Hide price breakdown',
|
|
56
56
|
clearButton: false
|
|
57
57
|
}
|
|
58
58
|
]
|