@gem-sdk/components 2.0.0-dev.621 → 2.0.0-dev.623
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/article/setting/configs/ArticleAuthor/uiV2.js +1 -0
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +0 -1
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +1 -0
- package/dist/cjs/banner/setting/presets/heroBanner1Col.js +1 -1
- package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +2 -4
- package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +2 -5
- package/dist/cjs/banner/setting/presets/heroBannerVideo.js +10 -0
- package/dist/cjs/banner/setting/setting.js +9 -6
- package/dist/cjs/banner/setting/uiV2.js +34 -10
- package/dist/cjs/builder.js +12 -6
- package/dist/cjs/collection/components/collection-banner/components/CollectionBanner.liquid.js +1 -1
- package/dist/cjs/collection/components/collection-paginator/common/index.js +1 -2
- package/dist/cjs/collection/components/collection-paginator/common/styles.js +2 -2
- package/dist/cjs/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +3 -3
- package/dist/cjs/collection/setting/collection-banner/configs/uiV2.js +2 -2
- package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +8 -5
- package/dist/cjs/collection/setting/collection-paginator/configs/uiV2.js +28 -3
- package/dist/cjs/index.js +34 -32
- package/dist/cjs/index.liquid.js +16 -10
- package/dist/cjs/next.js +3 -1
- package/dist/cjs/product/components/ProductImagesV3/common/common.js +360 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +192 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +26 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +94 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +303 -0
- package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +95 -0
- package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +59 -0
- package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +266 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +63 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +36 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +109 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +139 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +100 -0
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +77 -0
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +300 -0
- package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +44 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +83 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +182 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +30 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +239 -0
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +28 -0
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +144 -0
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +14 -0
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +54 -0
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +53 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +55 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +41 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +134 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +203 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +87 -0
- package/dist/cjs/product/components/ProductImagesV3/index.js +291 -0
- package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +153 -0
- package/dist/cjs/product/index.js +6 -4
- package/dist/cjs/product/next.js +4 -0
- package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +252 -0
- package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +251 -0
- package/dist/cjs/product/setting/product-image-v3/ProductImages.js +74 -0
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +388 -0
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +518 -0
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +336 -0
- package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +118 -0
- package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +119 -0
- package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +237 -0
- package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +491 -0
- package/dist/cjs/setting.js +97 -95
- package/dist/cjs/swiper-carousel/arrow/Arrow.js +52 -0
- package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +46 -0
- package/dist/cjs/swiper-carousel/arrow/common/common.js +119 -0
- package/dist/cjs/swiper-carousel/arrow/common/getClass.js +50 -0
- package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +84 -0
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +34 -0
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +38 -0
- package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +29 -0
- package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +79 -0
- package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +22 -0
- package/dist/cjs/swiper-carousel/components/common/carousel.js +98 -0
- package/dist/cjs/swiper-carousel/components/const/index.js +5 -0
- package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +34 -0
- package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +42 -0
- package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +105 -0
- package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +15 -0
- package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +45 -0
- package/dist/cjs/swiper-carousel/dots/Dots.js +51 -0
- package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +26 -0
- package/dist/cjs/swiper-carousel/dots/common/common.js +28 -0
- package/dist/cjs/swiper-carousel/dots/common/getClass.js +40 -0
- package/dist/cjs/swiper-carousel/dots/common/getStyle.js +33 -0
- package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +21 -0
- package/dist/cjs/swiper-carousel/index.js +17 -0
- package/dist/cjs/swiper-carousel/next.js +22 -0
- package/dist/cjs/swiper-carousel/root/Swiper.js +128 -0
- package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +104 -0
- package/dist/cjs/swiper-carousel/root/common/getAttr.js +25 -0
- package/dist/cjs/swiper-carousel/root/common/getClass.js +135 -0
- package/dist/cjs/swiper-carousel/root/common/getData.js +56 -0
- package/dist/cjs/swiper-carousel/root/common/getStyle.js +64 -0
- package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +482 -0
- package/dist/cjs/swiper-carousel/setting/Swiper.js +42 -0
- package/dist/cjs/swiper-carousel/setting/SwiperItem.js +40 -0
- package/dist/cjs/swiper-carousel/setting/configs/presets.js +87 -0
- package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +819 -0
- package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +718 -0
- package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +1 -0
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +0 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +1 -0
- package/dist/esm/banner/setting/presets/heroBanner1Col.js +1 -1
- package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +2 -4
- package/dist/esm/banner/setting/presets/heroBannerContentRight.js +2 -5
- package/dist/esm/banner/setting/presets/heroBannerVideo.js +10 -0
- package/dist/esm/banner/setting/setting.js +9 -6
- package/dist/esm/banner/setting/uiV2.js +34 -10
- package/dist/esm/builder.js +6 -0
- package/dist/esm/collection/components/collection-banner/components/CollectionBanner.liquid.js +1 -1
- package/dist/esm/collection/components/collection-paginator/common/index.js +1 -2
- package/dist/esm/collection/components/collection-paginator/common/styles.js +2 -2
- package/dist/esm/collection/components/collection-paginator/components/CollectionPaginator.liquid.js +3 -3
- package/dist/esm/collection/setting/collection-banner/configs/uiV2.js +2 -2
- package/dist/esm/collection/setting/collection-paginator/configs/settings.js +8 -5
- package/dist/esm/collection/setting/collection-paginator/configs/uiV2.js +28 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.liquid.js +3 -0
- package/dist/esm/next.js +3 -1
- package/dist/esm/product/components/ProductImagesV3/common/common.js +344 -0
- package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +189 -0
- package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +24 -0
- package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +83 -0
- package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +292 -0
- package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +92 -0
- package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +53 -0
- package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +251 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +59 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +32 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +105 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +135 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +96 -0
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +73 -0
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +296 -0
- package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +40 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +79 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +178 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +26 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +235 -0
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +24 -0
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +140 -0
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +12 -0
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +52 -0
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +51 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +53 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +39 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +132 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +201 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +85 -0
- package/dist/esm/product/components/ProductImagesV3/index.js +287 -0
- package/dist/esm/product/components/ProductImagesV3/index.liquid.js +149 -0
- package/dist/esm/product/index.js +26 -24
- package/dist/esm/product/next.js +4 -0
- package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +248 -0
- package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +248 -0
- package/dist/esm/product/setting/product-image-v3/ProductImages.js +70 -0
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +384 -0
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +515 -0
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +334 -0
- package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +116 -0
- package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +117 -0
- package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +235 -0
- package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +489 -0
- package/dist/esm/setting.js +2 -0
- package/dist/esm/swiper-carousel/arrow/Arrow.js +48 -0
- package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +42 -0
- package/dist/esm/swiper-carousel/arrow/common/common.js +111 -0
- package/dist/esm/swiper-carousel/arrow/common/getClass.js +48 -0
- package/dist/esm/swiper-carousel/arrow/common/getStyle.js +82 -0
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +30 -0
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +34 -0
- package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +27 -0
- package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +77 -0
- package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +20 -0
- package/dist/esm/swiper-carousel/components/common/carousel.js +93 -0
- package/dist/esm/swiper-carousel/components/const/index.js +3 -0
- package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +30 -0
- package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +35 -0
- package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +103 -0
- package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +13 -0
- package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +43 -0
- package/dist/esm/swiper-carousel/dots/Dots.js +47 -0
- package/dist/esm/swiper-carousel/dots/Dots.liquid.js +22 -0
- package/dist/esm/swiper-carousel/dots/common/common.js +26 -0
- package/dist/esm/swiper-carousel/dots/common/getClass.js +38 -0
- package/dist/esm/swiper-carousel/dots/common/getStyle.js +31 -0
- package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +19 -0
- package/dist/esm/swiper-carousel/index.js +15 -0
- package/dist/esm/swiper-carousel/next.js +18 -0
- package/dist/esm/swiper-carousel/root/Swiper.js +124 -0
- package/dist/esm/swiper-carousel/root/Swiper.liquid.js +100 -0
- package/dist/esm/swiper-carousel/root/common/getAttr.js +23 -0
- package/dist/esm/swiper-carousel/root/common/getClass.js +133 -0
- package/dist/esm/swiper-carousel/root/common/getData.js +54 -0
- package/dist/esm/swiper-carousel/root/common/getStyle.js +62 -0
- package/dist/esm/swiper-carousel/root/hook/useCarousel.js +480 -0
- package/dist/esm/swiper-carousel/setting/Swiper.js +38 -0
- package/dist/esm/swiper-carousel/setting/SwiperItem.js +36 -0
- package/dist/esm/swiper-carousel/setting/configs/presets.js +85 -0
- package/dist/esm/swiper-carousel/setting/configs/settingV2.js +815 -0
- package/dist/esm/swiper-carousel/setting/configs/uiV2.js +713 -0
- package/dist/types/index.d.ts +552 -117
- package/package.json +3 -3
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const productFeatureImageUI = [
|
|
4
|
+
{
|
|
5
|
+
type: 'control',
|
|
6
|
+
setting: {
|
|
7
|
+
id: 'ftShape'
|
|
8
|
+
},
|
|
9
|
+
layout: 'vertical',
|
|
10
|
+
controlChangeTrigger: {
|
|
11
|
+
settings: [
|
|
12
|
+
{
|
|
13
|
+
condition: "ftShape.shape === 'original'",
|
|
14
|
+
source: [
|
|
15
|
+
'ftShape'
|
|
16
|
+
],
|
|
17
|
+
action: {
|
|
18
|
+
controlId: 'ftLayout',
|
|
19
|
+
newValue: 'contain',
|
|
20
|
+
groupType: 'style',
|
|
21
|
+
controlType: 'style'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
options: {
|
|
26
|
+
noRecordHistory: true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: 'control',
|
|
32
|
+
condition: "ftShape.shape !== 'original'",
|
|
33
|
+
label: {
|
|
34
|
+
en: 'Image scale'
|
|
35
|
+
},
|
|
36
|
+
setting: {
|
|
37
|
+
id: 'ftLayout'
|
|
38
|
+
},
|
|
39
|
+
isMoreSetting: true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: 'control',
|
|
43
|
+
label: {
|
|
44
|
+
en: 'Hover effect'
|
|
45
|
+
},
|
|
46
|
+
setting: {
|
|
47
|
+
id: 'hoverEffect'
|
|
48
|
+
},
|
|
49
|
+
isMoreSetting: true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: 'control',
|
|
53
|
+
label: {
|
|
54
|
+
en: 'Zoom type'
|
|
55
|
+
},
|
|
56
|
+
condition: 'hoverEffect == "zoom"',
|
|
57
|
+
setting: {
|
|
58
|
+
id: 'zoomType'
|
|
59
|
+
},
|
|
60
|
+
isMoreSetting: true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'control',
|
|
64
|
+
label: {
|
|
65
|
+
en: 'Zoom value'
|
|
66
|
+
},
|
|
67
|
+
condition: 'hoverEffect == "zoom"',
|
|
68
|
+
setting: {
|
|
69
|
+
id: 'zoom'
|
|
70
|
+
},
|
|
71
|
+
isMoreSetting: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: 'control',
|
|
75
|
+
label: {
|
|
76
|
+
en: 'Other image'
|
|
77
|
+
},
|
|
78
|
+
condition: 'hoverEffect == "other"',
|
|
79
|
+
setting: {
|
|
80
|
+
id: 'otherImage'
|
|
81
|
+
},
|
|
82
|
+
isMoreSetting: true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'control',
|
|
86
|
+
label: {
|
|
87
|
+
en: 'Click effect'
|
|
88
|
+
},
|
|
89
|
+
setting: {
|
|
90
|
+
id: 'ftClickOpenLightBox'
|
|
91
|
+
},
|
|
92
|
+
isMoreSetting: true
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: 'control',
|
|
96
|
+
label: {
|
|
97
|
+
en: 'Open link in'
|
|
98
|
+
},
|
|
99
|
+
setting: {
|
|
100
|
+
id: 'ftClickOpenNewTab'
|
|
101
|
+
},
|
|
102
|
+
condition: `ftClickOpenLightBox === "product-link"`,
|
|
103
|
+
isMoreSetting: true
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: 'control',
|
|
107
|
+
label: {
|
|
108
|
+
en: 'Corner'
|
|
109
|
+
},
|
|
110
|
+
setting: {
|
|
111
|
+
id: 'ftCorner'
|
|
112
|
+
},
|
|
113
|
+
isMoreSetting: true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'control',
|
|
117
|
+
label: {
|
|
118
|
+
en: 'Drag to scroll'
|
|
119
|
+
},
|
|
120
|
+
setting: {
|
|
121
|
+
id: 'ftDragToScroll'
|
|
122
|
+
},
|
|
123
|
+
isMoreSetting: true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: 'control',
|
|
127
|
+
label: {
|
|
128
|
+
en: 'Loop'
|
|
129
|
+
},
|
|
130
|
+
setting: {
|
|
131
|
+
id: 'ftLoop'
|
|
132
|
+
},
|
|
133
|
+
isMoreSetting: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: 'control',
|
|
137
|
+
label: {
|
|
138
|
+
en: 'Slide speed'
|
|
139
|
+
},
|
|
140
|
+
setting: {
|
|
141
|
+
id: 'ftAnimationSpeed'
|
|
142
|
+
},
|
|
143
|
+
isMoreSetting: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: 'control',
|
|
147
|
+
label: {
|
|
148
|
+
en: 'Animation'
|
|
149
|
+
},
|
|
150
|
+
setting: {
|
|
151
|
+
id: 'ftAnimationMode'
|
|
152
|
+
},
|
|
153
|
+
isMoreSetting: true
|
|
154
|
+
}
|
|
155
|
+
];
|
|
156
|
+
const productSelectImage = [
|
|
157
|
+
// tạm ẩn khi hỗ trợ đủ 2 option sẽ mở
|
|
158
|
+
// {
|
|
159
|
+
// type: 'control',
|
|
160
|
+
// setting: {
|
|
161
|
+
// id: 'typeDisplay',
|
|
162
|
+
// },
|
|
163
|
+
// layout: 'vertical',
|
|
164
|
+
// },
|
|
165
|
+
{
|
|
166
|
+
type: 'control',
|
|
167
|
+
label: {
|
|
168
|
+
en: 'Pre-display'
|
|
169
|
+
},
|
|
170
|
+
setting: {
|
|
171
|
+
id: 'preDisplay'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: 'control',
|
|
176
|
+
label: {
|
|
177
|
+
en: 'Preload'
|
|
178
|
+
},
|
|
179
|
+
setting: {
|
|
180
|
+
id: 'preload'
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
const productFeatureImageNavigationUI = [
|
|
185
|
+
{
|
|
186
|
+
type: 'control',
|
|
187
|
+
label: {
|
|
188
|
+
en: 'Navigation'
|
|
189
|
+
},
|
|
190
|
+
setting: {
|
|
191
|
+
id: 'ftNavigationPosition'
|
|
192
|
+
},
|
|
193
|
+
layout: 'vertical'
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
type: 'control',
|
|
197
|
+
layout: 'vertical',
|
|
198
|
+
condition: 'ftNavigationPosition !== "none"',
|
|
199
|
+
setting: {
|
|
200
|
+
id: 'ftArrowIcon'
|
|
201
|
+
},
|
|
202
|
+
isMoreSetting: true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
type: 'control',
|
|
206
|
+
condition: 'ftNavigationPosition !== "none"',
|
|
207
|
+
label: {
|
|
208
|
+
en: 'Icon color'
|
|
209
|
+
},
|
|
210
|
+
setting: {
|
|
211
|
+
id: 'ftArrowIconColor'
|
|
212
|
+
},
|
|
213
|
+
isMoreSetting: true
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
type: 'control',
|
|
217
|
+
condition: 'ftNavigationPosition !== "none"',
|
|
218
|
+
label: {
|
|
219
|
+
en: 'Nav. color'
|
|
220
|
+
},
|
|
221
|
+
setting: {
|
|
222
|
+
id: 'ftArrowNavColor'
|
|
223
|
+
},
|
|
224
|
+
isMoreSetting: true
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
type: 'control',
|
|
228
|
+
condition: 'ftNavigationPosition !== "none"',
|
|
229
|
+
label: {
|
|
230
|
+
en: 'Nav. border'
|
|
231
|
+
},
|
|
232
|
+
setting: {
|
|
233
|
+
id: 'ftArrowNavBorder'
|
|
234
|
+
},
|
|
235
|
+
isMoreSetting: true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
type: 'control',
|
|
239
|
+
condition: 'ftNavigationPosition !== "none"',
|
|
240
|
+
label: {
|
|
241
|
+
en: 'Nav. corner'
|
|
242
|
+
},
|
|
243
|
+
setting: {
|
|
244
|
+
id: 'ftArrowNavRadius'
|
|
245
|
+
},
|
|
246
|
+
isMoreSetting: true
|
|
247
|
+
}
|
|
248
|
+
];
|
|
249
|
+
|
|
250
|
+
exports.productFeatureImageNavigationUI = productFeatureImageNavigationUI;
|
|
251
|
+
exports.productFeatureImageUI = productFeatureImageUI;
|
|
252
|
+
exports.productSelectImage = productSelectImage;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const showSliderSetting = '(type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col"';
|
|
4
|
+
const productGalleryImageUI = [
|
|
5
|
+
{
|
|
6
|
+
type: 'control',
|
|
7
|
+
label: {
|
|
8
|
+
en: 'Display type'
|
|
9
|
+
},
|
|
10
|
+
condition: 'position === "bottom-center" || position === "bottom-left" || position === "inside-bottom"',
|
|
11
|
+
setting: {
|
|
12
|
+
id: 'type'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: 'control',
|
|
17
|
+
setting: {
|
|
18
|
+
id: 'shape'
|
|
19
|
+
},
|
|
20
|
+
layout: 'vertical',
|
|
21
|
+
condition: '["left", "right"].includes(position)'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'control',
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'shapeForBottom'
|
|
27
|
+
},
|
|
28
|
+
layout: 'vertical',
|
|
29
|
+
condition: '["bottom-left", "bottom-center"].includes(position)'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'control',
|
|
33
|
+
setting: {
|
|
34
|
+
id: 'shapeForInsideBottom'
|
|
35
|
+
},
|
|
36
|
+
layout: 'vertical',
|
|
37
|
+
condition: '["inside-bottom"].includes(position)'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
type: 'control',
|
|
41
|
+
setting: {
|
|
42
|
+
id: 'shapeForInside'
|
|
43
|
+
},
|
|
44
|
+
layout: 'vertical',
|
|
45
|
+
condition: '["inside-left", "inside-right"].includes(position)'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'control',
|
|
49
|
+
setting: {
|
|
50
|
+
id: 'shapeForFtOnly'
|
|
51
|
+
},
|
|
52
|
+
layout: 'vertical',
|
|
53
|
+
condition: 'position == "only-feature"'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'control',
|
|
57
|
+
setting: {
|
|
58
|
+
id: 'shapeFor2Col'
|
|
59
|
+
},
|
|
60
|
+
layout: 'vertical',
|
|
61
|
+
condition: 'position == "two-col"'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: 'control',
|
|
65
|
+
setting: {
|
|
66
|
+
id: 'shapeFor1Col'
|
|
67
|
+
},
|
|
68
|
+
layout: 'vertical',
|
|
69
|
+
condition: 'position == "one-col"'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: 'control',
|
|
73
|
+
condition: `(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')`,
|
|
74
|
+
label: {
|
|
75
|
+
en: 'Image scale'
|
|
76
|
+
},
|
|
77
|
+
setting: {
|
|
78
|
+
id: 'layout'
|
|
79
|
+
},
|
|
80
|
+
isMoreSetting: true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: 'control',
|
|
84
|
+
label: {
|
|
85
|
+
en: 'Hover effect'
|
|
86
|
+
},
|
|
87
|
+
setting: {
|
|
88
|
+
id: 'galleryHoverEffect'
|
|
89
|
+
},
|
|
90
|
+
condition: 'position == "one-col" || position == "two-col"',
|
|
91
|
+
isMoreSetting: true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'control',
|
|
95
|
+
label: {
|
|
96
|
+
en: 'Zoom type'
|
|
97
|
+
},
|
|
98
|
+
condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
|
|
99
|
+
setting: {
|
|
100
|
+
id: 'galleryZoomType'
|
|
101
|
+
},
|
|
102
|
+
isMoreSetting: true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: 'control',
|
|
106
|
+
label: {
|
|
107
|
+
en: 'Click effect'
|
|
108
|
+
},
|
|
109
|
+
setting: {
|
|
110
|
+
id: 'clickOpenLightBox'
|
|
111
|
+
},
|
|
112
|
+
isMoreSetting: true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: 'control',
|
|
116
|
+
label: {
|
|
117
|
+
en: 'Zoom value'
|
|
118
|
+
},
|
|
119
|
+
condition: 'galleryHoverEffect == "zoom" && (position == "one-col" || position == "two-col")',
|
|
120
|
+
setting: {
|
|
121
|
+
id: 'galleryZoom'
|
|
122
|
+
},
|
|
123
|
+
isMoreSetting: true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
type: 'control',
|
|
127
|
+
label: {
|
|
128
|
+
en: 'Active border'
|
|
129
|
+
},
|
|
130
|
+
options: {
|
|
131
|
+
labelPosition: 'start'
|
|
132
|
+
},
|
|
133
|
+
setting: {
|
|
134
|
+
id: 'borderActive'
|
|
135
|
+
},
|
|
136
|
+
condition: '!["one-col", "two-col"].includes(position)',
|
|
137
|
+
isMoreSetting: true
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
type: 'control',
|
|
141
|
+
label: {
|
|
142
|
+
en: 'Corner'
|
|
143
|
+
},
|
|
144
|
+
setting: {
|
|
145
|
+
id: 'corner'
|
|
146
|
+
},
|
|
147
|
+
isMoreSetting: true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: 'control',
|
|
151
|
+
label: {
|
|
152
|
+
en: 'Spacing'
|
|
153
|
+
},
|
|
154
|
+
setting: {
|
|
155
|
+
id: 'itemSpacing'
|
|
156
|
+
},
|
|
157
|
+
isMoreSetting: true,
|
|
158
|
+
condition: '!["one-col", "two-col"].includes(position)'
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
type: 'control',
|
|
162
|
+
label: {
|
|
163
|
+
en: 'Drag to scroll'
|
|
164
|
+
},
|
|
165
|
+
condition: showSliderSetting,
|
|
166
|
+
setting: {
|
|
167
|
+
id: 'dragToScroll'
|
|
168
|
+
},
|
|
169
|
+
isMoreSetting: true
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
type: 'control',
|
|
173
|
+
label: {
|
|
174
|
+
en: 'Loop'
|
|
175
|
+
},
|
|
176
|
+
condition: showSliderSetting,
|
|
177
|
+
setting: {
|
|
178
|
+
id: 'loop'
|
|
179
|
+
},
|
|
180
|
+
isMoreSetting: true
|
|
181
|
+
}
|
|
182
|
+
];
|
|
183
|
+
const productGalleryImageNavigationUI = [
|
|
184
|
+
{
|
|
185
|
+
type: 'control',
|
|
186
|
+
label: {
|
|
187
|
+
en: 'Navigation'
|
|
188
|
+
},
|
|
189
|
+
condition: showSliderSetting,
|
|
190
|
+
setting: {
|
|
191
|
+
id: 'navigationPosition'
|
|
192
|
+
},
|
|
193
|
+
layout: 'vertical'
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
type: 'control',
|
|
197
|
+
layout: 'vertical',
|
|
198
|
+
condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
|
|
199
|
+
setting: {
|
|
200
|
+
id: 'arrowIcon'
|
|
201
|
+
},
|
|
202
|
+
isMoreSetting: true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
|
|
206
|
+
type: 'control',
|
|
207
|
+
label: {
|
|
208
|
+
en: 'Icon color'
|
|
209
|
+
},
|
|
210
|
+
setting: {
|
|
211
|
+
id: 'arrowIconColor'
|
|
212
|
+
},
|
|
213
|
+
isMoreSetting: true
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
|
|
217
|
+
type: 'control',
|
|
218
|
+
label: {
|
|
219
|
+
en: 'Nav. color'
|
|
220
|
+
},
|
|
221
|
+
setting: {
|
|
222
|
+
id: 'arrowNavColor'
|
|
223
|
+
},
|
|
224
|
+
isMoreSetting: true
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
|
|
228
|
+
type: 'control',
|
|
229
|
+
label: {
|
|
230
|
+
en: 'Nav. border'
|
|
231
|
+
},
|
|
232
|
+
setting: {
|
|
233
|
+
id: 'arrowNavBorder'
|
|
234
|
+
},
|
|
235
|
+
isMoreSetting: true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
condition: `(${showSliderSetting}) && navigationPosition !== 'none'`,
|
|
239
|
+
type: 'control',
|
|
240
|
+
label: {
|
|
241
|
+
en: 'Nav. corner'
|
|
242
|
+
},
|
|
243
|
+
setting: {
|
|
244
|
+
id: 'arrowNavRadius'
|
|
245
|
+
},
|
|
246
|
+
isMoreSetting: true
|
|
247
|
+
}
|
|
248
|
+
];
|
|
249
|
+
|
|
250
|
+
exports.productGalleryImageNavigationUI = productGalleryImageNavigationUI;
|
|
251
|
+
exports.productGalleryImageUI = productGalleryImageUI;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var uiV1 = require('./configs/uiV1.js');
|
|
6
|
+
var uiV2 = require('./configs/uiV2.js');
|
|
7
|
+
var index = require('./configs/setting-v2/index.js');
|
|
8
|
+
|
|
9
|
+
const config = {
|
|
10
|
+
tag: 'ProductImagesV3',
|
|
11
|
+
label: 'Product Images New Carousel',
|
|
12
|
+
icon: `
|
|
13
|
+
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
|
+
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
15
|
+
</svg>
|
|
16
|
+
`,
|
|
17
|
+
settings: index.ProductImageSettingsV2,
|
|
18
|
+
ui: uiV1.SettingUIV1,
|
|
19
|
+
uiV2: uiV2.SettingUIV2,
|
|
20
|
+
editorConfigs: {
|
|
21
|
+
placeholder: {
|
|
22
|
+
flowTag: [
|
|
23
|
+
'Product'
|
|
24
|
+
],
|
|
25
|
+
allowAppendTags: [
|
|
26
|
+
'ProductBadge'
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
slots: {
|
|
30
|
+
children: true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
presets: [
|
|
34
|
+
{
|
|
35
|
+
id: 'product-image-v3',
|
|
36
|
+
name: {
|
|
37
|
+
en: 'Product Images New Carousel'
|
|
38
|
+
},
|
|
39
|
+
icon: {
|
|
40
|
+
desktop: `
|
|
41
|
+
<svg width="96" height="56" viewBox="0 0 96 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
42
|
+
<rect x="24.5" width="47" height="42" rx="3" fill="#494949"/>
|
|
43
|
+
<path d="M40.5 15.766L45.495 14.0288C45.495 14.0288 46.1024 15.4454 48.005 15.4454C49.9076 15.4454 50.5083 14 50.5083 14L55.5 15.766L54.6692 20.1222H52.1642V28H43.825V20.1196H41.3325L40.5 15.766Z" fill="#D6D6D6"/>
|
|
44
|
+
<rect x="31" y="46" width="10" height="10" rx="3" fill="#494949"/>
|
|
45
|
+
<rect x="43" y="46" width="10" height="10" rx="3" fill="#494949"/>
|
|
46
|
+
<rect x="55" y="46" width="10" height="10" rx="3" fill="#494949"/>
|
|
47
|
+
</svg>
|
|
48
|
+
`
|
|
49
|
+
},
|
|
50
|
+
components: [
|
|
51
|
+
{
|
|
52
|
+
tag: 'ProductImagesV3',
|
|
53
|
+
styles: {
|
|
54
|
+
position: {
|
|
55
|
+
desktop: 'bottom-center',
|
|
56
|
+
mobile: 'bottom-center'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
advanced: {
|
|
60
|
+
'spacing-setting': {
|
|
61
|
+
desktop: {
|
|
62
|
+
margin: {
|
|
63
|
+
bottom: 'var(--g-s-l)'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
exports.default = config;
|