pds-dev-kit-web-test 2.5.410 → 2.5.411
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/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/src/common/assets/icons/fill/Cam.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/Cam.js +30 -0
- package/dist/src/common/assets/icons/fill/CamOff.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/CamOff.js +30 -0
- package/dist/src/common/assets/icons/fill/Video.js +1 -1
- package/dist/src/common/assets/icons/fill/VideoOff.js +1 -1
- package/dist/src/common/assets/icons/fill/VideoStop.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/VideoStop.js +30 -0
- package/dist/src/common/assets/icons/fill/VideoType.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +3 -0
- package/dist/src/common/assets/icons/fill/index.js +7 -1
- package/dist/src/common/assets/icons/line/Cam.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Cam.js +30 -0
- package/dist/src/common/assets/icons/line/CamOff.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CamOff.js +30 -0
- package/dist/src/common/assets/icons/line/CheckBox.d.ts +4 -0
- package/dist/src/common/assets/icons/line/CheckBox.js +30 -0
- package/dist/src/common/assets/icons/line/Dropdown.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Dropdown.js +30 -0
- package/dist/src/common/assets/icons/line/Radio.d.ts +4 -0
- package/dist/src/common/assets/icons/line/Radio.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestion32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestion40.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +30 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +4 -0
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +30 -0
- package/dist/src/common/assets/icons/line/TextLong.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextLong.js +30 -0
- package/dist/src/common/assets/icons/line/TextShort.d.ts +4 -0
- package/dist/src/common/assets/icons/line/TextShort.js +30 -0
- package/dist/src/common/assets/icons/line/Video.js +1 -1
- package/dist/src/common/assets/icons/line/VideoOff.js +1 -1
- package/dist/src/common/assets/icons/line/VideoStop.d.ts +4 -0
- package/dist/src/common/assets/icons/line/VideoStop.js +30 -0
- package/dist/src/common/assets/icons/line/VideoType.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +12 -0
- package/dist/src/common/assets/icons/line/index.js +25 -1
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +2 -1
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +48 -4
- package/dist/src/common/services/i18n/resources/en.json +9 -1
- package/dist/src/common/services/i18n/resources/es.json +9 -1
- package/dist/src/common/services/i18n/resources/fil.json +9 -1
- package/dist/src/common/services/i18n/resources/index.d.ts +56 -0
- package/dist/src/common/services/i18n/resources/ja.json +9 -1
- package/dist/src/common/services/i18n/resources/ko.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-cn.json +9 -1
- package/dist/src/common/services/i18n/resources/zh-tw.json +9 -1
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +9 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +9 -1
- package/dist/src/common/styles/colorSet/UIColor.json +14 -1
- package/dist/src/common/styles/colorSet/index.d.ts +31 -2
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +13 -0
- package/dist/src/common/utils/dateHelper.d.ts +13 -0
- package/dist/src/common/utils/dateHelper.js +87 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +1 -0
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +27 -13
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +26 -4
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +3 -1
- package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/desktop/components/Checkbox/Checkbox.js +17 -3
- package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
- package/dist/src/desktop/components/Chip/Chip.js +50 -5
- package/dist/src/desktop/components/Radio/Radio.js +2 -2
- package/dist/src/desktop/components/TextField/TextField.js +41 -15
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +4 -1
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +26 -4
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +3 -1
- package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +1 -0
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/mobile/components/Checkbox/Checkbox.js +17 -3
- package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
- package/dist/src/mobile/components/Chip/Chip.js +50 -5
- package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +16 -0
- package/dist/src/mobile/components/DatePicker/DatePicker.js +156 -0
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +14 -0
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +27 -0
- package/dist/src/mobile/components/DatePicker/Day.d.ts +13 -0
- package/dist/src/mobile/components/DatePicker/Day.js +94 -0
- package/dist/src/mobile/components/DatePicker/index.d.ts +1 -0
- package/dist/src/mobile/components/DatePicker/index.js +8 -0
- package/dist/src/mobile/components/DatePicker/utils.d.ts +16 -0
- package/dist/src/mobile/components/DatePicker/utils.js +68 -0
- package/dist/src/mobile/components/Radio/Radio.js +2 -2
- package/dist/src/mobile/components/TextField/TextField.js +41 -15
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +6 -1
- package/dist/src/mobile/components/TextLabel/TextLabel.js +83 -3
- package/dist/src/mobile/components/index.d.ts +2 -1
- package/dist/src/mobile/components/index.js +3 -1
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +3 -2
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFA.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFB.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFC.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFD.js +1 -1
- package/dist/src/mobile/layout/LayoutMF/Containers/ContentsContainer/variation/MFE.js +1 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMA.js +1 -1
- package/dist/src/mobile/layout/LayoutMM/Containers/ContentsContainer/variation/MMB.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPA.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPB.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPC.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPD.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPE.js +1 -1
- package/dist/src/mobile/layout/LayoutMP/Containers/ContentsContainer/variation/MPF.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSA.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSB.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSC.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSD.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSE.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSF.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSG.js +1 -1
- package/dist/src/mobile/layout/LayoutMS/Containers/ContentsContainer/variation/MSH.js +1 -1
- package/dist/src/sub/AdminList/AdminListItem/AdminListItem.js +3 -3
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +4 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +2 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +36 -10
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +4 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +12 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +8 -0
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +77 -0
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +152 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +150 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +45 -1
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +262 -9
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +593 -0
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +253 -0
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/mock_composition.js +4 -0
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +1047 -274
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +1008 -222
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +810 -2
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +772 -268
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +368 -0
- package/dist/src/sub/DynamicLayout/mock_video.js +371 -0
- package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +368 -0
- package/dist/src/sub/DynamicLayout/mock_video_cb.js +371 -0
- package/dist/src/sub/DynamicLayout/mocks.d.ts +2 -776
- package/dist/src/sub/DynamicLayout/mocks.js +4266 -11
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/FlexGridItem.js +11 -15
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +25 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +102 -26
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +21 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +16 -96
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +7 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +26 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +46 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +209 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +96 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +84 -98
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +32 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +59 -132
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +23 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +176 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +24 -30
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +13 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +88 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +16 -96
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +7 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +26 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +46 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +209 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +27 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +96 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +64 -67
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +10 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +148 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +25 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +8 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +16 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +11 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +15 -2
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/FlexGridCustomSection.js +1 -1
- package/dist/src/sub/DynamicLayout/types.d.ts +10 -1
- package/package.json +2 -3
- package/release-note.md +3 -3
@@ -21,39 +21,37 @@ function parseSlideBannerStyleToSlideBannerCoreProp(_a) {
|
|
21
21
|
var props = _a.props, device = _a.device;
|
22
22
|
var availableSpecCodes = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
23
23
|
return availableSpecCodes.reduce(function (acc, currentKey) {
|
24
|
-
var _a, _b, _c, _d
|
24
|
+
var _a, _b, _c, _d;
|
25
25
|
var keyWithDevice = device === 'DESKTOP' ? currentKey : "".concat(currentKey, ":MOBILE");
|
26
26
|
var keyWithHover = "".concat(keyWithDevice.toString(), ":HOVER");
|
27
27
|
var slideBannerCorePropertyKey = getSlideBannerCorePropKey(currentKey);
|
28
28
|
if (slideBannerCorePropertyKey === 'customStyle') {
|
29
29
|
var value = props[keyWithDevice];
|
30
30
|
var hoverValue = props[keyWithHover];
|
31
|
-
if (hoverValue === null || hoverValue === undefined) {
|
32
|
-
return {
|
33
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (_a = {}, _a[slideBannerCorePropertyKey] = getStyle(value), _a)),
|
34
|
-
hoverStyle: __assign({}, acc.hoverStyle)
|
35
|
-
};
|
36
|
-
}
|
37
31
|
return {
|
38
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (
|
39
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (
|
32
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), (_a = {}, _a[slideBannerCorePropertyKey] = getStyle(value), _a)),
|
33
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_b = {}, _b[slideBannerCorePropertyKey] = getStyle(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), _b))
|
40
34
|
};
|
41
35
|
}
|
42
36
|
if (slideBannerCorePropertyKey === 'useAutoplay') {
|
43
37
|
var value = props[keyWithDevice];
|
44
38
|
var hoverValue = props[keyWithHover];
|
45
39
|
return {
|
46
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { useAutoplay: value
|
47
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { useAutoplay: hoverValue
|
40
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), { useAutoplay: value }),
|
41
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { useAutoplay: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
48
42
|
};
|
49
43
|
}
|
50
44
|
if (slideBannerCorePropertyKey === 'autoplayDelay') {
|
51
45
|
var value = props[keyWithDevice];
|
52
46
|
var hoverValue = props[keyWithHover];
|
53
47
|
return {
|
54
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { autoplay: {
|
48
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), { autoplay: {
|
49
|
+
delay: value * 1000,
|
50
|
+
disableOnInteraction: false,
|
51
|
+
pauseOnMouseEnter: true
|
52
|
+
} }),
|
55
53
|
hoverStyle: __assign(__assign({}, acc.hoverStyle), { autoplay: {
|
56
|
-
delay: hoverValue * 1000,
|
54
|
+
delay: (hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) * 1000,
|
57
55
|
disableOnInteraction: false,
|
58
56
|
pauseOnMouseEnter: true
|
59
57
|
} })
|
@@ -63,8 +61,8 @@ function parseSlideBannerStyleToSlideBannerCoreProp(_a) {
|
|
63
61
|
var value = props[keyWithDevice];
|
64
62
|
var hoverValue = props[keyWithHover];
|
65
63
|
return {
|
66
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), (
|
67
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), (
|
64
|
+
normalStyle: __assign(__assign({}, acc.normalStyle), (_c = {}, _c[slideBannerCorePropertyKey] = value, _c)),
|
65
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), (_d = {}, _d[slideBannerCorePropertyKey] = hoverValue !== null && hoverValue !== void 0 ? hoverValue : value, _d))
|
68
66
|
};
|
69
67
|
}
|
70
68
|
return {
|
@@ -109,11 +107,10 @@ function getStyle(value) {
|
|
109
107
|
case 'DESIGN1':
|
110
108
|
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
111
109
|
case 'DESIGN2': {
|
112
|
-
|
113
|
-
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "], ["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "])), overlayEffect, overlayEffect);
|
110
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
114
111
|
}
|
115
112
|
default: {
|
116
|
-
return (0, styled_components_1.css)(
|
113
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
117
114
|
}
|
118
115
|
}
|
119
116
|
}
|
@@ -129,7 +126,7 @@ function parseSlideBannerStyleToCustomPaginationProp(_a) {
|
|
129
126
|
var hoverValue = props[keyWithHover];
|
130
127
|
return {
|
131
128
|
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
132
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
129
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
133
130
|
};
|
134
131
|
}
|
135
132
|
if (customPaginationPropertyKey === 'offset') {
|
@@ -137,7 +134,7 @@ function parseSlideBannerStyleToCustomPaginationProp(_a) {
|
|
137
134
|
var hoverValue = props[keyWithHover];
|
138
135
|
return {
|
139
136
|
normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
|
140
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
|
137
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
141
138
|
};
|
142
139
|
}
|
143
140
|
if (customPaginationPropertyKey === 'size') {
|
@@ -145,7 +142,7 @@ function parseSlideBannerStyleToCustomPaginationProp(_a) {
|
|
145
142
|
var hoverValue = props[keyWithHover];
|
146
143
|
return {
|
147
144
|
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
|
148
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
|
145
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
149
146
|
};
|
150
147
|
}
|
151
148
|
return {
|
@@ -259,7 +256,7 @@ function getCustomPaginationOffset(value) {
|
|
259
256
|
return {
|
260
257
|
top: '100%',
|
261
258
|
left: '0px',
|
262
|
-
translateX: -
|
259
|
+
translateX: -100,
|
263
260
|
translateY: -100,
|
264
261
|
transformOrigin: 'right top'
|
265
262
|
};
|
@@ -267,7 +264,7 @@ function getCustomPaginationOffset(value) {
|
|
267
264
|
return {
|
268
265
|
top: '50%',
|
269
266
|
left: '0px',
|
270
|
-
translateX: -
|
267
|
+
translateX: -100,
|
271
268
|
translateY: -50,
|
272
269
|
transformOrigin: 'right top'
|
273
270
|
};
|
@@ -275,13 +272,13 @@ function getCustomPaginationOffset(value) {
|
|
275
272
|
return {
|
276
273
|
top: '0px',
|
277
274
|
left: '0px',
|
278
|
-
translateX: -
|
275
|
+
translateX: -100,
|
279
276
|
translateY: 0,
|
280
277
|
transformOrigin: 'right top'
|
281
278
|
};
|
282
|
-
case '
|
279
|
+
case 'INSET1':
|
283
280
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
284
|
-
case '
|
281
|
+
case 'INSET2':
|
285
282
|
return {
|
286
283
|
top: '0px',
|
287
284
|
left: '50%',
|
@@ -289,7 +286,7 @@ function getCustomPaginationOffset(value) {
|
|
289
286
|
translateY: 0,
|
290
287
|
transformOrigin: 'left top'
|
291
288
|
};
|
292
|
-
case '
|
289
|
+
case 'INSET3':
|
293
290
|
return {
|
294
291
|
top: '0px',
|
295
292
|
left: '100%',
|
@@ -297,7 +294,7 @@ function getCustomPaginationOffset(value) {
|
|
297
294
|
translateY: 0,
|
298
295
|
transformOrigin: 'left top'
|
299
296
|
};
|
300
|
-
case '
|
297
|
+
case 'INSET4':
|
301
298
|
return {
|
302
299
|
top: '50%',
|
303
300
|
left: '100%',
|
@@ -305,7 +302,7 @@ function getCustomPaginationOffset(value) {
|
|
305
302
|
translateY: -50,
|
306
303
|
transformOrigin: 'left top'
|
307
304
|
};
|
308
|
-
case '
|
305
|
+
case 'INSET5':
|
309
306
|
return {
|
310
307
|
top: '100%',
|
311
308
|
left: '100%',
|
@@ -313,7 +310,7 @@ function getCustomPaginationOffset(value) {
|
|
313
310
|
translateY: -100,
|
314
311
|
transformOrigin: 'left top'
|
315
312
|
};
|
316
|
-
case '
|
313
|
+
case 'INSET6':
|
317
314
|
return {
|
318
315
|
top: '100%',
|
319
316
|
left: '50%',
|
@@ -321,7 +318,7 @@ function getCustomPaginationOffset(value) {
|
|
321
318
|
translateY: -100,
|
322
319
|
transformOrigin: 'left top'
|
323
320
|
};
|
324
|
-
case '
|
321
|
+
case 'INSET7':
|
325
322
|
return {
|
326
323
|
top: '100%',
|
327
324
|
left: '0px',
|
@@ -329,7 +326,7 @@ function getCustomPaginationOffset(value) {
|
|
329
326
|
translateY: -100,
|
330
327
|
transformOrigin: 'top left'
|
331
328
|
};
|
332
|
-
case '
|
329
|
+
case 'INSET8':
|
333
330
|
return {
|
334
331
|
top: '50%',
|
335
332
|
left: '0px',
|
@@ -346,9 +343,9 @@ function getCustomPaginationSize(value) {
|
|
346
343
|
case 'SMALL':
|
347
344
|
return 1;
|
348
345
|
case 'MEDIUM':
|
349
|
-
return
|
346
|
+
return 1.5;
|
350
347
|
case 'LARGE':
|
351
|
-
return
|
348
|
+
return 2;
|
352
349
|
default:
|
353
350
|
return 1;
|
354
351
|
}
|
@@ -365,7 +362,7 @@ function parseSlideBannerStyleToCustomNavigationProp(_a) {
|
|
365
362
|
var hoverValue = props[keyWithHover];
|
366
363
|
return {
|
367
364
|
normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnType: value }),
|
368
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnType: hoverValue })
|
365
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
369
366
|
};
|
370
367
|
}
|
371
368
|
if (customNavigationPropertyKey === 'prevBtnOffset') {
|
@@ -373,7 +370,7 @@ function parseSlideBannerStyleToCustomNavigationProp(_a) {
|
|
373
370
|
var hoverValue = props[keyWithHover];
|
374
371
|
return {
|
375
372
|
normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnOffset: getCustomNavigationOffset(value) }),
|
376
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnOffset: getCustomNavigationOffset(hoverValue) })
|
373
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
377
374
|
};
|
378
375
|
}
|
379
376
|
if (customNavigationPropertyKey === 'prevBtnSize') {
|
@@ -381,7 +378,7 @@ function parseSlideBannerStyleToCustomNavigationProp(_a) {
|
|
381
378
|
var hoverValue = props[keyWithHover];
|
382
379
|
return {
|
383
380
|
normalStyle: __assign(__assign({}, acc.normalStyle), { prevBtnSize: getCustomNavigationSize(value) }),
|
384
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSize: getCustomNavigationSize(hoverValue) })
|
381
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { prevBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
385
382
|
};
|
386
383
|
}
|
387
384
|
if (customNavigationPropertyKey === 'nextBtnType') {
|
@@ -389,7 +386,7 @@ function parseSlideBannerStyleToCustomNavigationProp(_a) {
|
|
389
386
|
var hoverValue = props[keyWithHover];
|
390
387
|
return {
|
391
388
|
normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnType: value }),
|
392
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnType: hoverValue })
|
389
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnType: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
393
390
|
};
|
394
391
|
}
|
395
392
|
if (customNavigationPropertyKey === 'nextBtnOffset') {
|
@@ -397,7 +394,7 @@ function parseSlideBannerStyleToCustomNavigationProp(_a) {
|
|
397
394
|
var hoverValue = props[keyWithHover];
|
398
395
|
return {
|
399
396
|
normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnOffset: getCustomNavigationOffset(value) }),
|
400
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnOffset: getCustomNavigationOffset(hoverValue) })
|
397
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnOffset: getCustomNavigationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
401
398
|
};
|
402
399
|
}
|
403
400
|
if (customNavigationPropertyKey === 'nextBtnSize') {
|
@@ -405,7 +402,7 @@ function parseSlideBannerStyleToCustomNavigationProp(_a) {
|
|
405
402
|
var hoverValue = props[keyWithHover];
|
406
403
|
return {
|
407
404
|
normalStyle: __assign(__assign({}, acc.normalStyle), { nextBtnSize: getCustomNavigationSize(value) }),
|
408
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSize: getCustomNavigationSize(hoverValue) })
|
405
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { nextBtnSize: getCustomNavigationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
409
406
|
};
|
410
407
|
}
|
411
408
|
return {
|
@@ -534,7 +531,7 @@ function getCustomNavigationOffset(value) {
|
|
534
531
|
return {
|
535
532
|
top: '100%',
|
536
533
|
left: '0px',
|
537
|
-
translateX: -
|
534
|
+
translateX: -100,
|
538
535
|
translateY: -100,
|
539
536
|
transformOrigin: 'right top'
|
540
537
|
};
|
@@ -542,7 +539,7 @@ function getCustomNavigationOffset(value) {
|
|
542
539
|
return {
|
543
540
|
top: '50%',
|
544
541
|
left: '0px',
|
545
|
-
translateX: -
|
542
|
+
translateX: -100,
|
546
543
|
translateY: -50,
|
547
544
|
transformOrigin: 'right top'
|
548
545
|
};
|
@@ -550,13 +547,13 @@ function getCustomNavigationOffset(value) {
|
|
550
547
|
return {
|
551
548
|
top: '0px',
|
552
549
|
left: '0px',
|
553
|
-
translateX: -
|
550
|
+
translateX: -100,
|
554
551
|
translateY: 0,
|
555
552
|
transformOrigin: 'right top'
|
556
553
|
};
|
557
|
-
case '
|
554
|
+
case 'INSET1':
|
558
555
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
559
|
-
case '
|
556
|
+
case 'INSET2':
|
560
557
|
return {
|
561
558
|
top: '0px',
|
562
559
|
left: '50%',
|
@@ -564,7 +561,7 @@ function getCustomNavigationOffset(value) {
|
|
564
561
|
translateY: 0,
|
565
562
|
transformOrigin: 'left top'
|
566
563
|
};
|
567
|
-
case '
|
564
|
+
case 'INSET3':
|
568
565
|
return {
|
569
566
|
top: '0px',
|
570
567
|
left: '100%',
|
@@ -572,7 +569,7 @@ function getCustomNavigationOffset(value) {
|
|
572
569
|
translateY: 0,
|
573
570
|
transformOrigin: 'left top'
|
574
571
|
};
|
575
|
-
case '
|
572
|
+
case 'INSET4':
|
576
573
|
return {
|
577
574
|
top: '50%',
|
578
575
|
left: '100%',
|
@@ -580,7 +577,7 @@ function getCustomNavigationOffset(value) {
|
|
580
577
|
translateY: -50,
|
581
578
|
transformOrigin: 'left top'
|
582
579
|
};
|
583
|
-
case '
|
580
|
+
case 'INSET5':
|
584
581
|
return {
|
585
582
|
top: '100%',
|
586
583
|
left: '100%',
|
@@ -588,7 +585,7 @@ function getCustomNavigationOffset(value) {
|
|
588
585
|
translateY: -100,
|
589
586
|
transformOrigin: 'left top'
|
590
587
|
};
|
591
|
-
case '
|
588
|
+
case 'INSET6':
|
592
589
|
return {
|
593
590
|
top: '100%',
|
594
591
|
left: '50%',
|
@@ -596,7 +593,7 @@ function getCustomNavigationOffset(value) {
|
|
596
593
|
translateY: -100,
|
597
594
|
transformOrigin: 'left top'
|
598
595
|
};
|
599
|
-
case '
|
596
|
+
case 'INSET7':
|
600
597
|
return {
|
601
598
|
top: '100%',
|
602
599
|
left: '0px',
|
@@ -604,7 +601,7 @@ function getCustomNavigationOffset(value) {
|
|
604
601
|
translateY: -100,
|
605
602
|
transformOrigin: 'top left'
|
606
603
|
};
|
607
|
-
case '
|
604
|
+
case 'INSET8':
|
608
605
|
return {
|
609
606
|
top: '50%',
|
610
607
|
left: '0px',
|
@@ -621,11 +618,11 @@ function getCustomNavigationSize(value) {
|
|
621
618
|
case 'SMALL':
|
622
619
|
return 1;
|
623
620
|
case 'MEDIUM':
|
624
|
-
return
|
621
|
+
return 1.5;
|
625
622
|
case 'LARGE':
|
626
623
|
return 3;
|
627
624
|
default:
|
628
|
-
return
|
625
|
+
return 2;
|
629
626
|
}
|
630
627
|
}
|
631
628
|
function parseSlideBannerStyleToCustomProgressbarProp(_a) {
|
@@ -640,16 +637,16 @@ function parseSlideBannerStyleToCustomProgressbarProp(_a) {
|
|
640
637
|
var hoverValue = props[keyWithHover];
|
641
638
|
return {
|
642
639
|
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
643
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
640
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
644
641
|
};
|
645
642
|
}
|
646
643
|
if (customProgressbarPropertyKey === 'size') {
|
647
644
|
var value = props[keyWithDevice];
|
648
645
|
var hoverValue = props[keyWithHover];
|
649
|
-
var offset = getCustomProgressbarOffset('
|
646
|
+
var offset = getCustomProgressbarOffset('INSET5');
|
650
647
|
return {
|
651
648
|
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomProgressbarSize(value), offset: offset }),
|
652
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomProgressbarSize(hoverValue), offset: offset })
|
649
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomProgressbarSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value), offset: offset })
|
653
650
|
};
|
654
651
|
}
|
655
652
|
return {
|
@@ -778,9 +775,9 @@ function getCustomProgressbarOffset(value) {
|
|
778
775
|
translateY: 0,
|
779
776
|
transformOrigin: 'right top'
|
780
777
|
};
|
781
|
-
case '
|
778
|
+
case 'INSET1':
|
782
779
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
783
|
-
case '
|
780
|
+
case 'INSET2':
|
784
781
|
return {
|
785
782
|
top: '0px',
|
786
783
|
left: '50%',
|
@@ -788,7 +785,7 @@ function getCustomProgressbarOffset(value) {
|
|
788
785
|
translateY: 0,
|
789
786
|
transformOrigin: 'left top'
|
790
787
|
};
|
791
|
-
case '
|
788
|
+
case 'INSET3':
|
792
789
|
return {
|
793
790
|
top: '0px',
|
794
791
|
left: '100%',
|
@@ -796,7 +793,7 @@ function getCustomProgressbarOffset(value) {
|
|
796
793
|
translateY: 0,
|
797
794
|
transformOrigin: 'left top'
|
798
795
|
};
|
799
|
-
case '
|
796
|
+
case 'INSET4':
|
800
797
|
return {
|
801
798
|
top: '50%',
|
802
799
|
left: '100%',
|
@@ -804,7 +801,7 @@ function getCustomProgressbarOffset(value) {
|
|
804
801
|
translateY: -50,
|
805
802
|
transformOrigin: 'left top'
|
806
803
|
};
|
807
|
-
case '
|
804
|
+
case 'INSET5':
|
808
805
|
return {
|
809
806
|
top: '100%',
|
810
807
|
left: '100%',
|
@@ -812,7 +809,7 @@ function getCustomProgressbarOffset(value) {
|
|
812
809
|
translateY: -100,
|
813
810
|
transformOrigin: 'left top'
|
814
811
|
};
|
815
|
-
case '
|
812
|
+
case 'INSET6':
|
816
813
|
return {
|
817
814
|
top: '100%',
|
818
815
|
left: '50%',
|
@@ -820,7 +817,7 @@ function getCustomProgressbarOffset(value) {
|
|
820
817
|
translateY: -100,
|
821
818
|
transformOrigin: 'left top'
|
822
819
|
};
|
823
|
-
case '
|
820
|
+
case 'INSET7':
|
824
821
|
return {
|
825
822
|
top: '100%',
|
826
823
|
left: '0px',
|
@@ -828,7 +825,7 @@ function getCustomProgressbarOffset(value) {
|
|
828
825
|
translateY: -100,
|
829
826
|
transformOrigin: 'top left'
|
830
827
|
};
|
831
|
-
case '
|
828
|
+
case 'INSET8':
|
832
829
|
return {
|
833
830
|
top: '50%',
|
834
831
|
left: '0px',
|
@@ -845,11 +842,11 @@ function getCustomProgressbarSize(value) {
|
|
845
842
|
case 'SMALL':
|
846
843
|
return 1;
|
847
844
|
case 'MEDIUM':
|
848
|
-
return
|
845
|
+
return 1.5;
|
849
846
|
case 'LARGE':
|
850
|
-
return
|
847
|
+
return 2;
|
851
848
|
default:
|
852
849
|
return 1;
|
853
850
|
}
|
854
851
|
}
|
855
|
-
var templateObject_1, templateObject_2, templateObject_3
|
852
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
@@ -2,14 +2,14 @@ import type { NUMBER_INTEGER } from '../../../../../../../DynamicLayout/sections
|
|
2
2
|
export type SlideBannerPropsKeys = keyof CB_STYLE_PROP_SLIDEBANNER_SPECS;
|
3
3
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_STYLE_TYPE = 'DESIGN1' | 'DESIGN2';
|
4
4
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_INFINITESCROLL_TYPE = boolean;
|
5
|
-
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16'
|
6
|
-
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | '
|
5
|
+
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16';
|
6
|
+
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET1' | 'INSET2' | 'INSET3' | 'INSET4' | 'INSET5' | 'INSET6' | 'INSET7' | 'INSET8';
|
7
7
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE';
|
8
|
-
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17' | 'DESIGN18' | 'DESIGN19' | 'DESIGN20';
|
9
|
-
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | '
|
8
|
+
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17' | 'DESIGN18' | 'DESIGN19' | 'DESIGN20' | 'DESIGN21' | 'DESIGN22' | 'DESIGN23' | 'DESIGN24' | 'DESIGN25' | 'DESIGN26' | 'DESIGN27' | 'DESIGN28' | 'DESIGN29' | 'DESIGN30' | 'DESIGN31' | 'DESIGN32' | 'DESIGN33' | 'DESIGN34' | 'DESIGN35' | 'DESIGN36' | 'DESIGN37' | 'DESIGN38' | 'DESIGN39' | 'DESIGN40' | 'DESIGN41' | 'DESIGN42' | 'DESIGN43' | 'DESIGN44' | 'DESIGN45' | 'DESIGN46' | 'DESIGN47' | 'DESIGN48' | 'DESIGN49' | 'DESIGN50' | 'DESIGN51' | 'DESIGN52' | 'DESIGN53' | 'DESIGN54' | 'DESIGN55' | 'DESIGN56' | 'DESIGN57' | 'DESIGN58' | 'DESIGN59' | 'DESIGN60' | 'DESIGN61' | 'DESIGN62' | 'DESIGN63' | 'DESIGN64' | 'DESIGN65' | 'DESIGN66' | 'DESIGN67' | 'DESIGN68' | 'DESIGN69' | 'DESIGN70' | 'DESIGN71' | 'DESIGN72' | 'DESIGN73' | 'DESIGN74' | 'DESIGN75' | 'DESIGN76' | 'DESIGN77' | 'DESIGN78' | 'DESIGN79' | 'DESIGN80' | 'DESIGN81' | 'DESIGN82' | 'DESIGN83' | 'DESIGN84' | 'DESIGN85' | 'DESIGN86' | 'DESIGN87' | 'DESIGN88' | 'DESIGN89' | 'DESIGN90' | 'DESIGN91' | 'DESIGN92' | 'DESIGN93' | 'DESIGN94' | 'DESIGN95' | 'DESIGN96' | 'DESIGN97' | 'DESIGN98' | 'DESIGN99' | 'DESIGN100';
|
9
|
+
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET1' | 'INSET2' | 'INSET3' | 'INSET4' | 'INSET5' | 'INSET6' | 'INSET7' | 'INSET8';
|
10
10
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE';
|
11
|
-
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | '
|
12
|
-
export type CB_STYLE_PROP_SLIDEBANNER_SPEC__NEXTBTNLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | '
|
11
|
+
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17' | 'DESIGN18' | 'DESIGN19' | 'DESIGN20' | 'DESIGN21' | 'DESIGN22' | 'DESIGN23' | 'DESIGN24' | 'DESIGN25' | 'DESIGN26' | 'DESIGN27' | 'DESIGN28' | 'DESIGN29' | 'DESIGN30' | 'DESIGN31' | 'DESIGN32' | 'DESIGN33' | 'DESIGN34' | 'DESIGN35' | 'DESIGN36' | 'DESIGN37' | 'DESIGN38' | 'DESIGN39' | 'DESIGN40' | 'DESIGN41' | 'DESIGN42' | 'DESIGN43' | 'DESIGN44' | 'DESIGN45' | 'DESIGN46' | 'DESIGN47' | 'DESIGN48' | 'DESIGN49' | 'DESIGN50' | 'DESIGN51' | 'DESIGN52' | 'DESIGN53' | 'DESIGN54' | 'DESIGN55' | 'DESIGN56' | 'DESIGN57' | 'DESIGN58' | 'DESIGN59' | 'DESIGN60' | 'DESIGN61' | 'DESIGN62' | 'DESIGN63' | 'DESIGN64' | 'DESIGN65' | 'DESIGN66' | 'DESIGN67' | 'DESIGN68' | 'DESIGN69' | 'DESIGN70' | 'DESIGN71' | 'DESIGN72' | 'DESIGN73' | 'DESIGN74' | 'DESIGN75' | 'DESIGN76' | 'DESIGN77' | 'DESIGN78' | 'DESIGN79' | 'DESIGN80' | 'DESIGN81' | 'DESIGN82' | 'DESIGN83' | 'DESIGN84' | 'DESIGN85' | 'DESIGN86' | 'DESIGN87' | 'DESIGN88' | 'DESIGN89' | 'DESIGN90' | 'DESIGN91' | 'DESIGN92' | 'DESIGN93' | 'DESIGN94' | 'DESIGN95' | 'DESIGN96' | 'DESIGN97' | 'DESIGN98' | 'DESIGN99' | 'DESIGN100';
|
12
|
+
export type CB_STYLE_PROP_SLIDEBANNER_SPEC__NEXTBTNLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET1' | 'INSET2' | 'INSET3' | 'INSET4' | 'INSET5' | 'INSET6' | 'INSET7' | 'INSET8';
|
13
13
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_NEXTBTNSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE';
|
14
14
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBAR_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8';
|
15
15
|
export type CB_STYLE_PROP_SLIDEBANNER_SPEC_PROGRESSBARSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE';
|
@@ -33,7 +33,8 @@ function Text(props) {
|
|
33
33
|
var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
|
34
34
|
var index = props.index, _b = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _b.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _b.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _b.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _b.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _b.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, _c = props.CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA;
|
35
35
|
var cLinkValue = function () {
|
36
|
-
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA'
|
36
|
+
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA' ||
|
37
|
+
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
37
38
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
38
39
|
return "ERROR: QueryData NOT FOUND";
|
39
40
|
}
|
@@ -71,8 +72,13 @@ function Text(props) {
|
|
71
72
|
var hasEffect = !isNoneEffectType;
|
72
73
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
73
74
|
var textValue = function () {
|
74
|
-
|
75
|
-
|
75
|
+
var isDataConnected = CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DATA' ||
|
76
|
+
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
77
|
+
if (isDataConnected) {
|
78
|
+
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
79
|
+
return queryContext.queryData[CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA];
|
80
|
+
}
|
81
|
+
return 'ERROR';
|
76
82
|
}
|
77
83
|
if (device === 'MOBILE' &&
|
78
84
|
mode !== 'EDIT' &&
|
@@ -101,7 +107,7 @@ function Text(props) {
|
|
101
107
|
e.currentTarget.classList.add('hovered');
|
102
108
|
}, onMouseLeave: function (e) {
|
103
109
|
e.currentTarget.classList.remove('hovered');
|
104
|
-
}, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: textValue() })) }))] }));
|
110
|
+
}, className: "cb-layout-box cb-text", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), layoutStyle), effectCssProperties), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, height: 'fit-content', minWidth: "calc(2ch + ".concat(layoutStyle.paddingLeft, " + ").concat(layoutStyle.paddingRight, ")") }), hoverStyle: __assign(__assign(__assign({}, textHoverStyle), propsHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: textValue() === 'ERROR' ? 'EDITOR:FALLBACK_TEXT' : textValue() })) }))] }));
|
105
111
|
}
|
106
112
|
function getTextStyles(props, device) {
|
107
113
|
var availableSpecCodes = [
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { CB_VIDEOPLAYER_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
3
|
+
type Props = CB_VIDEOPLAYER_PROPERTIES_TYPE & IndexForIntersection;
|
4
|
+
declare function VideoPlayer(props: Props): JSX.Element;
|
5
|
+
export default VideoPlayer;
|