@gem-sdk/components 2.0.0-dev.692 → 2.0.0-dev.694
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/setting/configs/uiV2.js +1 -0
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +2 -0
- package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -0
- package/dist/cjs/builder.js +6 -12
- package/dist/cjs/button/setting/configs/settings.js +1 -0
- package/dist/cjs/carousel/setting/configs/settingV2.js +3 -0
- package/dist/cjs/collection/setting/collection-banner/configs/settings.js +2 -2
- package/dist/cjs/countdown-timer/setting/configs/settings.js +2 -0
- package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -0
- package/dist/cjs/grid/row/setting/configs/settings.js +5 -0
- package/dist/cjs/grid/section/setting/configs/settings.js +3 -0
- package/dist/cjs/icon-list/setting/configs/settings.js +2 -0
- package/dist/cjs/icon-list-hoz/setting/configs/settings.js +1 -0
- package/dist/cjs/index.js +32 -34
- package/dist/cjs/index.liquid.js +10 -16
- package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -0
- package/dist/cjs/next.js +1 -3
- package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +1 -0
- package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
- package/dist/cjs/product/index.js +4 -6
- package/dist/cjs/product/next.js +0 -4
- package/dist/cjs/product/setting/product/configs/settings.js +3 -0
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
- package/dist/cjs/product/setting/product-variant/configs/settings.js +2 -0
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +1 -0
- package/dist/cjs/setting.js +76 -78
- package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +2 -1
- package/dist/cjs/third-party/components/Bogos.liquid.js +2 -0
- package/dist/cjs/third-party/setting/Bogos/index.js +5 -1
- package/dist/esm/accordion/setting/configs/uiV2.js +1 -0
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +2 -0
- package/dist/esm/breadcrumb/setting/configs/settings.js +1 -0
- package/dist/esm/builder.js +0 -6
- package/dist/esm/button/setting/configs/settings.js +1 -0
- package/dist/esm/carousel/setting/configs/settingV2.js +3 -0
- package/dist/esm/collection/setting/collection-banner/configs/settings.js +2 -2
- package/dist/esm/countdown-timer/setting/configs/settings.js +2 -0
- package/dist/esm/form/setting/submit-button/configs/settings.js +1 -0
- package/dist/esm/grid/row/setting/configs/settings.js +5 -0
- package/dist/esm/grid/section/setting/configs/settings.js +3 -0
- package/dist/esm/icon-list/setting/configs/settings.js +2 -0
- package/dist/esm/icon-list-hoz/setting/configs/settings.js +1 -0
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.liquid.js +0 -3
- package/dist/esm/marquee/setting/configs/settingsV2.js +1 -0
- package/dist/esm/next.js +1 -3
- package/dist/esm/product/components/ProductBundle/setting/uiV2.js +1 -0
- package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
- package/dist/esm/product/index.js +24 -26
- package/dist/esm/product/next.js +0 -4
- package/dist/esm/product/setting/product/configs/settings.js +3 -0
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
- package/dist/esm/product/setting/product-variant/configs/settings.js +2 -0
- package/dist/esm/product/setting/product-view-more/configs/settings.js +1 -0
- package/dist/esm/setting.js +0 -2
- package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +2 -1
- package/dist/esm/third-party/components/Bogos.liquid.js +2 -0
- package/dist/esm/third-party/setting/Bogos/index.js +5 -1
- package/dist/types/index.d.ts +116 -551
- package/package.json +2 -2
- package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
- package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
- package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
- package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
- package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
- package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
- package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
- package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
- package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
- package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
- package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
- package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
- package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
- package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
- package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
- package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -518
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -336
- package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
- package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
- package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
- package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
- package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
- package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
- package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
- package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
- package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
- package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
- package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
- package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
- package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
- package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
- package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
- package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
- package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
- package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
- package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
- package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
- package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
- package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
- package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
- package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
- package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
- package/dist/cjs/swiper-carousel/index.js +0 -17
- package/dist/cjs/swiper-carousel/next.js +0 -22
- package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
- package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
- package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
- package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
- package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
- package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
- package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
- package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
- package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
- package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
- package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -819
- package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
- package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
- package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
- package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
- package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
- package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
- package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
- package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
- package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
- package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
- package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
- package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
- package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
- package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
- package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
- package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
- package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
- package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
- package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -515
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -334
- package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
- package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
- package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
- package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
- package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
- package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
- package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
- package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
- package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
- package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
- package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
- package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
- package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
- package/dist/esm/swiper-carousel/components/const/index.js +0 -3
- package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
- package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
- package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
- package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
- package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
- package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
- package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
- package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
- package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
- package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
- package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
- package/dist/esm/swiper-carousel/index.js +0 -15
- package/dist/esm/swiper-carousel/next.js +0 -18
- package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
- package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
- package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
- package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
- package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
- package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
- package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
- package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
- package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
- package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
- package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -815
- package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
|
@@ -1,491 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var ImageListNavigation = require('./ui/ImageListNavigation.js');
|
|
4
|
-
var FeatureNavigation = require('./ui/FeatureNavigation.js');
|
|
5
|
-
|
|
6
|
-
const showGallerySliderSetting = '((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")';
|
|
7
|
-
const showFeaturedImage = '(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))';
|
|
8
|
-
const showGalleryHoverAction = '(position == "one-col" || position == "two-col")';
|
|
9
|
-
const showImageListSetting = '(position !== "only-feature")';
|
|
10
|
-
const SettingUIV2 = [
|
|
11
|
-
{
|
|
12
|
-
label: {
|
|
13
|
-
en: 'Layout'
|
|
14
|
-
},
|
|
15
|
-
controls: [
|
|
16
|
-
{
|
|
17
|
-
layout: 'vertical',
|
|
18
|
-
setting: {
|
|
19
|
-
id: 'position'
|
|
20
|
-
},
|
|
21
|
-
options: {
|
|
22
|
-
isComboLayout: true
|
|
23
|
-
},
|
|
24
|
-
controls: [
|
|
25
|
-
{
|
|
26
|
-
label: {
|
|
27
|
-
en: 'Ratio'
|
|
28
|
-
},
|
|
29
|
-
type: 'control',
|
|
30
|
-
setting: {
|
|
31
|
-
id: 'ratioLayout'
|
|
32
|
-
},
|
|
33
|
-
layout: 'vertical',
|
|
34
|
-
conditionDisplay: 'position == "left"'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: {
|
|
38
|
-
en: 'Ratio'
|
|
39
|
-
},
|
|
40
|
-
type: 'control',
|
|
41
|
-
setting: {
|
|
42
|
-
id: 'ratioLayoutRight'
|
|
43
|
-
},
|
|
44
|
-
layout: 'vertical',
|
|
45
|
-
conditionDisplay: 'position == "right"'
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: {
|
|
53
|
-
en: 'Featured image'
|
|
54
|
-
},
|
|
55
|
-
conditionDisplay: showFeaturedImage,
|
|
56
|
-
controls: [
|
|
57
|
-
{
|
|
58
|
-
setting: {
|
|
59
|
-
id: 'ftShape'
|
|
60
|
-
},
|
|
61
|
-
layout: 'vertical',
|
|
62
|
-
controlChangeTrigger: {
|
|
63
|
-
settings: [
|
|
64
|
-
{
|
|
65
|
-
condition: "ftShape.shape === 'original'",
|
|
66
|
-
source: [
|
|
67
|
-
'ftShape'
|
|
68
|
-
],
|
|
69
|
-
action: {
|
|
70
|
-
controlId: 'ftLayout',
|
|
71
|
-
newValue: 'contain',
|
|
72
|
-
groupType: 'style',
|
|
73
|
-
controlType: 'style'
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
options: {
|
|
78
|
-
noRecordHistory: true
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
conditionDisplay: "ftShape.shape !== 'original'",
|
|
84
|
-
label: {
|
|
85
|
-
en: 'Image scale'
|
|
86
|
-
},
|
|
87
|
-
setting: {
|
|
88
|
-
id: 'ftLayout'
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
...FeatureNavigation.FeatureNavigation,
|
|
93
|
-
conditionDisplay: `${showFeaturedImage}`
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
moreSettings: {
|
|
97
|
-
type: 'collapse',
|
|
98
|
-
controls: [
|
|
99
|
-
{
|
|
100
|
-
label: {
|
|
101
|
-
en: 'Corner'
|
|
102
|
-
},
|
|
103
|
-
setting: {
|
|
104
|
-
id: 'ftCorner'
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: 'combo',
|
|
109
|
-
label: {
|
|
110
|
-
en: 'Hover action'
|
|
111
|
-
},
|
|
112
|
-
conditionDisplay: showFeaturedImage,
|
|
113
|
-
iconName: 'gp-trigger-action-hover',
|
|
114
|
-
getValueFromSettingID: 'hoverEffect',
|
|
115
|
-
isShowSettingTitle: true,
|
|
116
|
-
defaultValueWhenClear: 'none',
|
|
117
|
-
compoDefaultValue: 'zoom',
|
|
118
|
-
controls: [
|
|
119
|
-
{
|
|
120
|
-
label: {
|
|
121
|
-
en: 'When hover'
|
|
122
|
-
},
|
|
123
|
-
setting: {
|
|
124
|
-
id: 'hoverEffect'
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: {
|
|
129
|
-
en: 'Zoom type'
|
|
130
|
-
},
|
|
131
|
-
conditionDisplay: 'hoverEffect == "zoom"',
|
|
132
|
-
setting: {
|
|
133
|
-
id: 'zoomType'
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: {
|
|
138
|
-
en: 'Zoom value'
|
|
139
|
-
},
|
|
140
|
-
conditionDisplay: 'hoverEffect == "zoom"',
|
|
141
|
-
setting: {
|
|
142
|
-
id: 'zoom'
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
label: {
|
|
147
|
-
en: 'Other image'
|
|
148
|
-
},
|
|
149
|
-
conditionDisplay: 'hoverEffect == "other"',
|
|
150
|
-
setting: {
|
|
151
|
-
id: 'otherImage'
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
type: 'combo',
|
|
158
|
-
label: {
|
|
159
|
-
en: 'Click action'
|
|
160
|
-
},
|
|
161
|
-
iconName: 'gp-trigger-action-click',
|
|
162
|
-
conditionDisplay: showFeaturedImage,
|
|
163
|
-
getValueFromSettingID: 'ftClickOpenLightBox',
|
|
164
|
-
isShowSettingTitle: true,
|
|
165
|
-
defaultValueWhenClear: 'none',
|
|
166
|
-
compoDefaultValue: 'popup',
|
|
167
|
-
controls: [
|
|
168
|
-
{
|
|
169
|
-
label: {
|
|
170
|
-
en: 'After click'
|
|
171
|
-
},
|
|
172
|
-
setting: {
|
|
173
|
-
id: 'ftClickOpenLightBox'
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
label: {
|
|
178
|
-
en: 'Open new tab'
|
|
179
|
-
},
|
|
180
|
-
setting: {
|
|
181
|
-
id: 'ftClickOpenNewTab'
|
|
182
|
-
},
|
|
183
|
-
conditionDisplay: `ftClickOpenLightBox === "product-link"`
|
|
184
|
-
}
|
|
185
|
-
]
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
type: 'control',
|
|
189
|
-
label: {
|
|
190
|
-
en: 'Slide speed'
|
|
191
|
-
},
|
|
192
|
-
setting: {
|
|
193
|
-
id: 'ftAnimationSpeed'
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
type: 'control',
|
|
198
|
-
label: {
|
|
199
|
-
en: 'Animation'
|
|
200
|
-
},
|
|
201
|
-
setting: {
|
|
202
|
-
id: 'ftAnimationMode'
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
label: {
|
|
207
|
-
en: 'Drag / swipe'
|
|
208
|
-
},
|
|
209
|
-
setting: {
|
|
210
|
-
id: 'ftDragToScroll'
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
label: {
|
|
215
|
-
en: 'Infinity loop'
|
|
216
|
-
},
|
|
217
|
-
setting: {
|
|
218
|
-
id: 'ftLoop'
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
label: {
|
|
226
|
-
en: 'Image list'
|
|
227
|
-
},
|
|
228
|
-
conditionDisplay: showImageListSetting,
|
|
229
|
-
controls: [
|
|
230
|
-
{
|
|
231
|
-
label: {
|
|
232
|
-
en: 'Display'
|
|
233
|
-
},
|
|
234
|
-
conditionDisplay: 'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',
|
|
235
|
-
setting: {
|
|
236
|
-
id: 'type'
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
setting: {
|
|
241
|
-
id: 'shape'
|
|
242
|
-
},
|
|
243
|
-
layout: 'vertical',
|
|
244
|
-
conditionDisplay: '["left", "right"].includes(position)'
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
setting: {
|
|
248
|
-
id: 'shapeForBottom'
|
|
249
|
-
},
|
|
250
|
-
layout: 'vertical',
|
|
251
|
-
conditionDisplay: '["bottom-left", "bottom-center"].includes(position)'
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
setting: {
|
|
255
|
-
id: 'shapeForInsideBottom'
|
|
256
|
-
},
|
|
257
|
-
layout: 'vertical',
|
|
258
|
-
conditionDisplay: '["inside-bottom"].includes(position)'
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
setting: {
|
|
262
|
-
id: 'shapeForInside'
|
|
263
|
-
},
|
|
264
|
-
layout: 'vertical',
|
|
265
|
-
conditionDisplay: '["inside-left", "inside-right"].includes(position)'
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
setting: {
|
|
269
|
-
id: 'shapeForFtOnly'
|
|
270
|
-
},
|
|
271
|
-
layout: 'vertical',
|
|
272
|
-
conditionDisplay: 'position == "only-feature"'
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
setting: {
|
|
276
|
-
id: 'shapeFor2Col'
|
|
277
|
-
},
|
|
278
|
-
layout: 'vertical',
|
|
279
|
-
conditionDisplay: 'position == "two-col"'
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
setting: {
|
|
283
|
-
id: 'shapeFor1Col'
|
|
284
|
-
},
|
|
285
|
-
layout: 'vertical',
|
|
286
|
-
conditionDisplay: 'position == "one-col"'
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
label: {
|
|
290
|
-
en: 'Image gap'
|
|
291
|
-
},
|
|
292
|
-
setting: {
|
|
293
|
-
id: 'itemSpacing'
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
conditionDisplay: `(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || (["inside-left", "inside-right"].includes(position) && shapeForInside.shape !== 'original') || (["inside-bottom"].includes(position) && shapeForInsideBottom.shape !== 'original') || (["bottom-left", "bottom-center"].includes(position) && shapeForBottom.shape !== 'original') || (["left", "right"].includes(position) && shape.shape !== 'original')`,
|
|
298
|
-
label: {
|
|
299
|
-
en: 'Image scale'
|
|
300
|
-
},
|
|
301
|
-
setting: {
|
|
302
|
-
id: 'layout'
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
...ImageListNavigation.ImageListNavigation,
|
|
307
|
-
conditionDisplay: showGallerySliderSetting
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
moreSettings: {
|
|
311
|
-
type: 'collapse',
|
|
312
|
-
controls: [
|
|
313
|
-
{
|
|
314
|
-
label: {
|
|
315
|
-
en: 'Corner'
|
|
316
|
-
},
|
|
317
|
-
setting: {
|
|
318
|
-
id: 'corner'
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
label: {
|
|
323
|
-
en: 'Active border'
|
|
324
|
-
},
|
|
325
|
-
conditionDisplay: '!["one-col", "two-col"].includes(position)',
|
|
326
|
-
setting: {
|
|
327
|
-
id: 'borderActive'
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
type: 'combo',
|
|
332
|
-
label: {
|
|
333
|
-
en: 'Hover action'
|
|
334
|
-
},
|
|
335
|
-
conditionDisplay: showGalleryHoverAction,
|
|
336
|
-
iconName: 'gp-trigger-action-hover',
|
|
337
|
-
getValueFromSettingID: 'galleryHoverEffect',
|
|
338
|
-
defaultValueWhenClear: 'none',
|
|
339
|
-
compoDefaultValue: 'zoom',
|
|
340
|
-
controls: [
|
|
341
|
-
{
|
|
342
|
-
label: {
|
|
343
|
-
en: 'When hover'
|
|
344
|
-
},
|
|
345
|
-
setting: {
|
|
346
|
-
id: 'galleryHoverEffect'
|
|
347
|
-
},
|
|
348
|
-
conditionDisplay: 'galleryHoverEffect == "none"'
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
label: {
|
|
352
|
-
en: 'Zoom type'
|
|
353
|
-
},
|
|
354
|
-
conditionDisplay: 'galleryHoverEffect == "zoom"',
|
|
355
|
-
setting: {
|
|
356
|
-
id: 'galleryZoomType'
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
label: {
|
|
361
|
-
en: 'Zoom value'
|
|
362
|
-
},
|
|
363
|
-
conditionDisplay: 'galleryHoverEffect == "zoom"',
|
|
364
|
-
setting: {
|
|
365
|
-
id: 'galleryZoom'
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
label: {
|
|
370
|
-
en: 'Other image'
|
|
371
|
-
},
|
|
372
|
-
conditionDisplay: 'galleryHoverEffect == "other"',
|
|
373
|
-
setting: {
|
|
374
|
-
id: 'otherImage'
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
label: {
|
|
381
|
-
en: 'Click action'
|
|
382
|
-
},
|
|
383
|
-
setting: {
|
|
384
|
-
id: 'clickOpenLightBox'
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
conditionDisplay: showGallerySliderSetting,
|
|
389
|
-
label: {
|
|
390
|
-
en: 'Drag / swipe'
|
|
391
|
-
},
|
|
392
|
-
setting: {
|
|
393
|
-
id: 'dragToScroll'
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
conditionDisplay: showGallerySliderSetting,
|
|
398
|
-
label: {
|
|
399
|
-
en: 'Infinity loop'
|
|
400
|
-
},
|
|
401
|
-
setting: {
|
|
402
|
-
id: 'loop'
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
]
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
label: {
|
|
410
|
-
en: 'Item spacing'
|
|
411
|
-
},
|
|
412
|
-
conditionDisplay: '["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',
|
|
413
|
-
controls: [
|
|
414
|
-
{
|
|
415
|
-
label: {
|
|
416
|
-
en: 'Gap'
|
|
417
|
-
},
|
|
418
|
-
setting: {
|
|
419
|
-
id: 'spacing'
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
]
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
label: {
|
|
426
|
-
en: 'Display condition'
|
|
427
|
-
},
|
|
428
|
-
conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
|
|
429
|
-
controls: [
|
|
430
|
-
{
|
|
431
|
-
label: {
|
|
432
|
-
en: 'Default item'
|
|
433
|
-
},
|
|
434
|
-
setting: {
|
|
435
|
-
id: 'preDisplay'
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
]
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
label: {
|
|
442
|
-
en: 'Optimize LCP'
|
|
443
|
-
},
|
|
444
|
-
controls: [
|
|
445
|
-
{
|
|
446
|
-
label: {
|
|
447
|
-
en: 'Quality'
|
|
448
|
-
},
|
|
449
|
-
setting: {
|
|
450
|
-
id: 'qualityType'
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
layout: 'horizontal',
|
|
455
|
-
label: {
|
|
456
|
-
en: ' '
|
|
457
|
-
},
|
|
458
|
-
conditionDisplay: 'qualityType == "custom"',
|
|
459
|
-
setting: {
|
|
460
|
-
id: 'qualityPercent'
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
label: {
|
|
465
|
-
en: 'Preload'
|
|
466
|
-
},
|
|
467
|
-
conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
|
|
468
|
-
setting: {
|
|
469
|
-
id: 'preload'
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
]
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
controls: [
|
|
476
|
-
{
|
|
477
|
-
label: {
|
|
478
|
-
en: 'Align'
|
|
479
|
-
},
|
|
480
|
-
setting: {
|
|
481
|
-
id: 'align'
|
|
482
|
-
},
|
|
483
|
-
options: {
|
|
484
|
-
labelVariant: 'primary'
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
]
|
|
488
|
-
}
|
|
489
|
-
];
|
|
490
|
-
|
|
491
|
-
exports.SettingUIV2 = SettingUIV2;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var getClass = require('./common/getClass.js');
|
|
8
|
-
var getStyle = require('./common/getStyle.js');
|
|
9
|
-
var common = require('./common/common.js');
|
|
10
|
-
var system = require('@gem-sdk/system');
|
|
11
|
-
|
|
12
|
-
const Arrow = (props)=>{
|
|
13
|
-
const { custom, left, onClick } = props;
|
|
14
|
-
const { isRenderCustomIcon } = common.getData(props);
|
|
15
|
-
const { buttonClass, buttonContentClass } = getClass.getClass(props);
|
|
16
|
-
const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle.getStyle(props, 'react');
|
|
17
|
-
const customIcon = system.If(isRenderCustomIcon, custom ?? '', /*#__PURE__*/ jsxRuntime.jsx("svg", {
|
|
18
|
-
height: "100%",
|
|
19
|
-
width: "100%",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
viewBox: "0 0 24 24",
|
|
22
|
-
fill: "currentColor",
|
|
23
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
24
|
-
d: "M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"
|
|
25
|
-
})
|
|
26
|
-
}));
|
|
27
|
-
const buttonContent = /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
28
|
-
className: buttonContentClass,
|
|
29
|
-
style: buttonContentStyle,
|
|
30
|
-
dangerouslySetInnerHTML: {
|
|
31
|
-
__html: customIcon || ''
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
return /*#__PURE__*/ jsxRuntime.jsxs("button", {
|
|
35
|
-
type: "button",
|
|
36
|
-
"aria-label": `Carousel ${left ? 'Back' : 'Next'} Arrow`,
|
|
37
|
-
className: buttonClass,
|
|
38
|
-
style: buttonStyle,
|
|
39
|
-
onClick: onClick,
|
|
40
|
-
children: [
|
|
41
|
-
/*#__PURE__*/ jsxRuntime.jsx("style", {
|
|
42
|
-
type: "text/css",
|
|
43
|
-
dangerouslySetInnerHTML: {
|
|
44
|
-
__html: innerBorderCss
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
47
|
-
buttonContent
|
|
48
|
-
]
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports.default = Arrow;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var core = require('@gem-sdk/core');
|
|
6
|
-
var getClass = require('./common/getClass.js');
|
|
7
|
-
var getStyle = require('./common/getStyle.js');
|
|
8
|
-
var common = require('./common/common.js');
|
|
9
|
-
var system = require('@gem-sdk/system');
|
|
10
|
-
|
|
11
|
-
const Arrow = (props)=>{
|
|
12
|
-
const { custom, left } = props;
|
|
13
|
-
const { isRenderCustomIcon } = common.getData(props);
|
|
14
|
-
const { buttonClass, buttonContentClass } = getClass.getClass(props);
|
|
15
|
-
const { buttonStyle, buttonContentStyle, innerBorderCss } = getStyle.getStyle(props);
|
|
16
|
-
const customIcon = system.If(isRenderCustomIcon, custom ?? '', `<svg
|
|
17
|
-
height="100%"
|
|
18
|
-
width="100%"
|
|
19
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
-
viewBox="0 0 24 24"
|
|
21
|
-
fill="currentColor"
|
|
22
|
-
>
|
|
23
|
-
<path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z" />
|
|
24
|
-
</svg>`);
|
|
25
|
-
const buttonContent = core.template`
|
|
26
|
-
<div
|
|
27
|
-
class="${buttonContentClass}"
|
|
28
|
-
style="${buttonContentStyle}"
|
|
29
|
-
>
|
|
30
|
-
${customIcon || ''}
|
|
31
|
-
</div>
|
|
32
|
-
`;
|
|
33
|
-
return core.template`
|
|
34
|
-
<button
|
|
35
|
-
type="button"
|
|
36
|
-
aria-label='Carousel ${left ? 'Back' : 'Next'} Arrow'
|
|
37
|
-
class="${buttonClass}"
|
|
38
|
-
style="${buttonStyle}"
|
|
39
|
-
>
|
|
40
|
-
<style type="text/css">${innerBorderCss}</style>
|
|
41
|
-
${buttonContent}
|
|
42
|
-
</button>
|
|
43
|
-
`;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
exports.default = Arrow;
|