pds-dev-kit-web-test 2.5.414 → 2.5.416
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 +2 -3
- 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/VideoType.js +1 -1
- package/dist/src/common/assets/icons/fill/index.d.ts +0 -3
- package/dist/src/common/assets/icons/fill/index.js +1 -7
- 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/VideoType.js +1 -1
- package/dist/src/common/assets/icons/line/index.d.ts +0 -12
- package/dist/src/common/assets/icons/line/index.js +1 -25
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.d.ts +1 -2
- package/dist/src/common/components/ThreeBarProgress/ThreeBarProgress.js +4 -48
- package/dist/src/common/services/i18n/resources/en.json +1 -9
- package/dist/src/common/services/i18n/resources/es.json +1 -9
- package/dist/src/common/services/i18n/resources/fil.json +1 -9
- package/dist/src/common/services/i18n/resources/index.d.ts +0 -56
- package/dist/src/common/services/i18n/resources/ja.json +1 -9
- package/dist/src/common/services/i18n/resources/ko.json +1 -9
- package/dist/src/common/services/i18n/resources/zh-cn.json +1 -9
- package/dist/src/common/services/i18n/resources/zh-tw.json +1 -9
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +1 -9
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +1 -9
- package/dist/src/common/styles/colorSet/UIColor.json +1 -14
- package/dist/src/common/styles/colorSet/index.d.ts +2 -31
- package/dist/src/common/styles/colorSet/index.js +2 -2
- package/dist/src/common/styles/colorSet/ui-type.d.ts +0 -13
- package/dist/src/desktop/components/AdminListItem/AdminListItem.d.ts +0 -1
- package/dist/src/desktop/components/AdminListItem/AdminListItem.js +13 -27
- package/dist/src/desktop/components/BasicListItem/BasicListItem.d.ts +1 -4
- package/dist/src/desktop/components/BasicListItem/BasicListItem.js +4 -26
- package/dist/src/desktop/components/BasicListItem/Contents.d.ts +1 -3
- package/dist/src/desktop/components/BasicListItem/Contents.js +2 -2
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.d.ts +0 -1
- package/dist/src/desktop/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/desktop/components/Checkbox/Checkbox.d.ts +1 -3
- package/dist/src/desktop/components/Checkbox/Checkbox.js +3 -17
- package/dist/src/desktop/components/Chip/Chip.d.ts +1 -1
- package/dist/src/desktop/components/Chip/Chip.js +5 -50
- package/dist/src/desktop/components/Radio/Radio.js +2 -2
- package/dist/src/desktop/components/TextField/TextField.js +15 -41
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +2 -2
- package/dist/src/mobile/components/BasicListItem/BasicListItem.d.ts +1 -4
- package/dist/src/mobile/components/BasicListItem/BasicListItem.js +4 -26
- package/dist/src/mobile/components/BasicListItem/Contents.d.ts +1 -3
- package/dist/src/mobile/components/BasicListItem/Contents.js +2 -2
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.d.ts +0 -1
- package/dist/src/mobile/components/BasicListItem/RightBox/IconButton.js +2 -2
- package/dist/src/mobile/components/Checkbox/Checkbox.d.ts +1 -3
- package/dist/src/mobile/components/Checkbox/Checkbox.js +3 -17
- package/dist/src/mobile/components/Chip/Chip.d.ts +1 -1
- package/dist/src/mobile/components/Chip/Chip.js +5 -50
- package/dist/src/mobile/components/Radio/Radio.js +2 -2
- package/dist/src/mobile/components/TextField/TextField.js +15 -41
- package/dist/src/mobile/components/TextLabel/TextLabel.d.ts +1 -6
- package/dist/src/mobile/components/TextLabel/TextLabel.js +3 -83
- package/dist/src/mobile/components/index.d.ts +1 -2
- package/dist/src/mobile/components/index.js +1 -3
- package/dist/src/mobile/index.d.ts +1 -1
- package/dist/src/mobile/index.js +2 -3
- 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 +10 -36
- package/dist/src/sub/DynamicLayout/components/EditModeSectionMatcher/SectionBox.js +1 -4
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +1 -12
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +1 -3
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.d.ts +0 -40
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/index.js +177 -36
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_Dark.json +4 -152
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/PaletteColor_light.json +2 -150
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/SemanticColor.json +1 -45
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/UIColor.json +9 -262
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/index.d.ts +0 -593
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/styles/colorSet/ui-type.d.ts +0 -253
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/mock_composition.js +0 -4
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +274 -1047
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +222 -1008
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +2 -810
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +268 -772
- package/dist/src/sub/DynamicLayout/mocks.d.ts +776 -2
- package/dist/src/sub/DynamicLayout/mocks.js +11 -4266
- 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 +15 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/ComponentBlockMatcher.js +0 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +4 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +26 -102
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +1 -21
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +55 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +2 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +20 -26
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +23 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +98 -84
- 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 +20 -32
- 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 +132 -59
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +30 -24
- 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 +5 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +13 -88
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +55 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +2 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +20 -26
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +23 -46
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +67 -64
- 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 +4 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/types.d.ts +7 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.d.ts +4 -11
- package/dist/src/sub/DynamicLayout/sections/CustomSection/types.js +0 -1
- 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 +2 -15
- 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 +1 -10
- package/package.json +3 -2
- package/release-note.md +3 -3
- package/dist/src/common/assets/icons/fill/Cam.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/Cam.js +0 -30
- package/dist/src/common/assets/icons/fill/CamOff.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/CamOff.js +0 -30
- package/dist/src/common/assets/icons/fill/VideoStop.d.ts +0 -4
- package/dist/src/common/assets/icons/fill/VideoStop.js +0 -30
- package/dist/src/common/assets/icons/line/Cam.d.ts +0 -4
- package/dist/src/common/assets/icons/line/Cam.js +0 -30
- package/dist/src/common/assets/icons/line/CamOff.d.ts +0 -4
- package/dist/src/common/assets/icons/line/CamOff.js +0 -30
- package/dist/src/common/assets/icons/line/CheckBox.d.ts +0 -4
- package/dist/src/common/assets/icons/line/CheckBox.js +0 -30
- package/dist/src/common/assets/icons/line/Dropdown.d.ts +0 -4
- package/dist/src/common/assets/icons/line/Dropdown.js +0 -30
- package/dist/src/common/assets/icons/line/Radio.d.ts +0 -4
- package/dist/src/common/assets/icons/line/Radio.js +0 -30
- package/dist/src/common/assets/icons/line/SectionQuestion32.d.ts +0 -4
- package/dist/src/common/assets/icons/line/SectionQuestion32.js +0 -30
- package/dist/src/common/assets/icons/line/SectionQuestion40.d.ts +0 -4
- package/dist/src/common/assets/icons/line/SectionQuestion40.js +0 -30
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.d.ts +0 -4
- package/dist/src/common/assets/icons/line/SectionQuestionnaire32.js +0 -30
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.d.ts +0 -4
- package/dist/src/common/assets/icons/line/SectionQuestionnaire40.js +0 -30
- package/dist/src/common/assets/icons/line/TextLong.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TextLong.js +0 -30
- package/dist/src/common/assets/icons/line/TextShort.d.ts +0 -4
- package/dist/src/common/assets/icons/line/TextShort.js +0 -30
- package/dist/src/common/assets/icons/line/VideoStop.d.ts +0 -4
- package/dist/src/common/assets/icons/line/VideoStop.js +0 -30
- package/dist/src/common/utils/dateHelper.d.ts +0 -13
- package/dist/src/common/utils/dateHelper.js +0 -87
- package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +0 -16
- package/dist/src/mobile/components/DatePicker/DatePicker.js +0 -156
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +0 -14
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +0 -27
- package/dist/src/mobile/components/DatePicker/Day.d.ts +0 -13
- package/dist/src/mobile/components/DatePicker/Day.js +0 -94
- package/dist/src/mobile/components/DatePicker/index.d.ts +0 -1
- package/dist/src/mobile/components/DatePicker/index.js +0 -8
- package/dist/src/mobile/components/DatePicker/utils.d.ts +0 -16
- package/dist/src/mobile/components/DatePicker/utils.js +0 -68
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.d.ts +0 -8
- package/dist/src/sub/DynamicLayout/components/Section/components/VideoBGMedia.js +0 -77
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/downIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/index.js +0 -47
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/leftIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/rightIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.d.ts +0 -12
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/common/assets/icons/line/editorNavigationIcons/upIcons.js +0 -76
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
- package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
- package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -368
- package/dist/src/sub/DynamicLayout/mock_video_cb.js +0 -371
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/navigationConfigs.js +0 -849
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.d.ts +0 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +0 -96
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +0 -23
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +0 -176
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/navigationConfigs.js +0 -849
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.d.ts +0 -27
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +0 -96
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.d.ts +0 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +0 -148
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.d.ts +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/helper.js +0 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/index.js +0 -8
@@ -32,15 +32,11 @@ var contentsListUtils_1 = require("./contentsListUtils");
|
|
32
32
|
function ContentsList(props) {
|
33
33
|
var _a = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _a.device, mode = _a.mode, queryData = _a.queryData;
|
34
34
|
var index = props.index, compositions = props.compositions, CB_CONTENT_PROP_CONTENTSLIST = props.CB_CONTENT_PROP_CONTENTSLIST, CB_STYLE_PROP_CONTENTSLIST = props.CB_STYLE_PROP_CONTENTSLIST, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
35
|
-
var CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA;
|
35
|
+
var CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA, CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS;
|
36
36
|
var _b = (0, react_1.useState)(false), isHovered = _b[0], setIsHovered = _b[1];
|
37
37
|
var _c = (0, react_1.useState)(1), currentPage = _c[0], setCurrentPage = _c[1];
|
38
38
|
var itemCounts = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS;
|
39
|
-
var
|
40
|
-
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[parsedQueryPath];
|
41
|
-
var totalPage = Math.ceil((CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE === 'DATA' && queryDataValue
|
42
|
-
? queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length
|
43
|
-
: compositions.length) / itemCounts);
|
39
|
+
var totalPage = Math.ceil(compositions.length / itemCounts);
|
44
40
|
var _d = (0, util_1.parseProperties)(props, device), style = _d.style, hoverStyle = _d.hoverStyle, layout = _d.layout, effect = _d.effect;
|
45
41
|
var contentPropCss = (0, contentsListUtils_1.parseGridContentProp)({
|
46
42
|
props: CB_CONTENT_PROP_CONTENTSLIST
|
@@ -68,45 +64,37 @@ function ContentsList(props) {
|
|
68
64
|
var effectVisibleStyle = hasEffect
|
69
65
|
? { opacity: isVisible ? 1 : 0, position: 'relative' }
|
70
66
|
: { position: 'relative' };
|
71
|
-
|
72
|
-
|
67
|
+
// eslint-disable-next-line
|
68
|
+
var handlePrevBtnClick = function () {
|
69
|
+
if (currentPage === 1)
|
70
|
+
return;
|
71
|
+
setCurrentPage(function (prev) { return prev - 1; });
|
72
|
+
};
|
73
|
+
// eslint-disable-next-line
|
74
|
+
var handleNextBtnClick = function () {
|
75
|
+
if (currentPage === totalPage)
|
76
|
+
return;
|
77
|
+
setCurrentPage(function (prev) { return prev + 1; });
|
78
|
+
};
|
79
|
+
var handleBulletClick = function (index) {
|
80
|
+
setCurrentPage(index + 1);
|
73
81
|
};
|
74
82
|
var startIndex = (currentPage - 1) * itemCounts;
|
75
83
|
var endIndex = startIndex + itemCounts;
|
76
|
-
return ((0, jsx_runtime_1.
|
77
|
-
borderBottomLeftRadius: style.borderBottomLeftRadius,
|
78
|
-
borderBottomRightRadius: style.borderBottomRightRadius,
|
79
|
-
borderTopLeftRadius: style.borderTopLeftRadius,
|
80
|
-
borderTopRightRadius: style.borderTopRightRadius,
|
81
|
-
borderWidth: style.borderWidth,
|
82
|
-
borderColor: style.borderColor,
|
83
|
-
borderStyle: style.borderStyle
|
84
|
-
}, hoverBorderStyle: {
|
85
|
-
borderBottomLeftRadius: hoverStyle.borderBottomLeftRadius,
|
86
|
-
borderBottomRightRadius: hoverStyle.borderBottomRightRadius,
|
87
|
-
borderTopLeftRadius: hoverStyle.borderTopLeftRadius,
|
88
|
-
borderTopRightRadius: hoverStyle.borderTopRightRadius,
|
89
|
-
borderWidth: hoverStyle.borderWidth,
|
90
|
-
borderColor: hoverStyle.borderColor,
|
91
|
-
borderStyle: hoverStyle.borderStyle
|
92
|
-
} }, { children: (0, createCompositions_1.createCompositions)({
|
84
|
+
return ((0, jsx_runtime_1.jsxs)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: [(0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ id: "contentslist-box", className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { position: 'relative', overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { position: 'relative', overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, "data-number-of-items": itemCounts, "data-number-of-columns": CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, "data-row-gap": 1, "data-column-gap": 24 }, { children: (0, jsx_runtime_1.jsx)(S_ContentsListWrapper, __assign({ id: "contentslist-wrapper" }, { children: (0, jsx_runtime_1.jsx)(S_ContentsListGrid, __assign({ id: "contentslist-grid", contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: (0, createCompositions_1.createCompositions)({
|
93
85
|
valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
|
94
86
|
queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
|
95
87
|
queryData: queryData,
|
96
88
|
compositions: compositions
|
97
|
-
}).slice(startIndex, endIndex) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { type: isHovered ? paginationHoverStyle.type : paginationNormalStyle.type, offset: isHovered ? paginationHoverStyle.offset : paginationNormalStyle.offset, current: currentPage, total: totalPage, size: isHovered ? paginationHoverStyle.size : paginationNormalStyle.size,
|
89
|
+
}).slice(startIndex, endIndex) })) })) })), (0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { effectVisibleStyle: effectVisibleStyle, type: isHovered ? paginationHoverStyle.type : paginationNormalStyle.type, offset: isHovered ? paginationHoverStyle.offset : paginationNormalStyle.offset, current: currentPage, total: totalPage, size: isHovered ? paginationHoverStyle.size : paginationNormalStyle.size, onBulletClick: handleBulletClick })] })));
|
98
90
|
}
|
99
|
-
var S_ContentsListWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n"], ["\n height: 100%;\n width: 100%;\n"])));
|
100
|
-
var
|
91
|
+
var S_ContentsListWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n position: relative;\n width: 100%;\n"], ["\n height: 100%;\n position: relative;\n width: 100%;\n"])));
|
92
|
+
var S_ContentsListGrid = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: grid;\n height: 100%;\n\n ", "\n ", "\n"], ["\n display: grid;\n height: 100%;\n\n ", "\n ", "\n"])), function (_a) {
|
101
93
|
var contentPropCss = _a.contentPropCss;
|
102
94
|
return contentPropCss;
|
103
95
|
}, function (_a) {
|
104
96
|
var stylePropCss = _a.stylePropCss;
|
105
97
|
return stylePropCss;
|
106
98
|
});
|
107
|
-
function removeFirstSegment(path) {
|
108
|
-
var segments = path.split('/');
|
109
|
-
return segments.slice(1).join('/');
|
110
|
-
}
|
111
99
|
exports.default = ContentsList;
|
112
100
|
var templateObject_1, templateObject_2;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE } from '../types';
|
3
3
|
export interface CustomPaginationProps {
|
4
|
+
effectVisibleStyle?: React.CSSProperties;
|
4
5
|
current?: number;
|
5
6
|
total?: number;
|
6
7
|
type?: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
|
@@ -14,10 +15,9 @@ export interface CustomPaginationProps {
|
|
14
15
|
transformOrigin?: string;
|
15
16
|
};
|
16
17
|
size?: number;
|
18
|
+
onBulletClick?: (index: number) => void;
|
17
19
|
}
|
18
|
-
export declare const CustomPagination: ({ current, total, type, offset, size,
|
19
|
-
onPageClick: (page: number) => void;
|
20
|
-
}) => JSX.Element;
|
20
|
+
export declare const CustomPagination: ({ effectVisibleStyle, current, total, type, offset, size, onBulletClick }: CustomPaginationProps) => JSX.Element;
|
21
21
|
export interface FlexBoxProps {
|
22
22
|
direction?: 'row' | 'column';
|
23
23
|
justifyContent?: string;
|
@@ -40,69 +40,70 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
41
41
|
exports.CustomPagination = void 0;
|
42
42
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
43
|
+
var components_1 = require("../../../../../../../../DynamicLayout/components");
|
43
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
44
|
-
var paginationConfigs_1 = require("./paginationConfigs");
|
45
45
|
var CustomPagination = function (_a) {
|
46
|
-
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f,
|
47
|
-
var
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design10, { total: total, current: current, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
90
|
-
case 'DESIGN11':
|
91
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design11, { total: total, current: current, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
92
|
-
case 'DESIGN12':
|
93
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design12, { total: total, current: current, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
94
|
-
case 'DESIGN13':
|
95
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design13, { total: total, current: current, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
96
|
-
default:
|
97
|
-
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
98
|
-
}
|
99
|
-
};
|
100
|
-
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), "$offset": offset, "$size": size }, { children: renderProgressByType() })));
|
46
|
+
var effectVisibleStyle = _a.effectVisibleStyle, _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, _d = _a.type, type = _d === void 0 ? 'NONE' : _d, _e = _a.offset, offset = _e === void 0 ? { top: '0' } : _e, _f = _a.size, size = _f === void 0 ? 1 : _f, onBulletClick = _a.onBulletClick;
|
47
|
+
var bullets = Array.from({ length: total }, function (_, i) { return i; });
|
48
|
+
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), "$offset": offset, "$size": size, effectVisibleStyle: effectVisibleStyle }, { children: (function () {
|
49
|
+
switch (type) {
|
50
|
+
case 'NONE':
|
51
|
+
case 'DESIGN1':
|
52
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
53
|
+
case 'DESIGN2':
|
54
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) }))] })));
|
55
|
+
case 'DESIGN3':
|
56
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: "/ ".concat(total) }))] })));
|
57
|
+
case 'DESIGN4':
|
58
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
|
59
|
+
case 'DESIGN5':
|
60
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular" }, { children: total }))] })));
|
61
|
+
case 'DESIGN6':
|
62
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] }));
|
63
|
+
case 'DESIGN7':
|
64
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '8px', marginRight: '4px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] }));
|
65
|
+
case 'DESIGN8':
|
66
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16, colorKey: "ui_cpnt_icon_sys_dark" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16, colorKey: "ui_cpnt_icon_sys_dark" })] })));
|
67
|
+
case 'DESIGN9':
|
68
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_left", size: 16 }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: "WHITE" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total })), (0, jsx_runtime_1.jsx)(components_1.Icon, { iconName: "ic_arrow_right", size: 16 })] })));
|
69
|
+
case 'DESIGN10':
|
70
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextBlack" }, { children: total }))] })));
|
71
|
+
case 'DESIGN11':
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { paddingLeft: '8px', paddingRight: '8px' }, styleTheme: "body2Bold", colorTheme: "sysTextWhite" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: "DARK" }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: "body2Regular", colorTheme: "sysTextWhite" }, { children: total }))] })));
|
73
|
+
case 'DESIGN12':
|
74
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
75
|
+
case 'DESIGN13':
|
76
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
77
|
+
case 'DESIGN14':
|
78
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
79
|
+
case 'DESIGN15':
|
80
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
81
|
+
case 'DESIGN16':
|
82
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "DARK", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
83
|
+
case 'DESIGN17':
|
84
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px" }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { color: "WHITE", isActive: index + 1 === current, onClick: onBulletClick ? function () { return onBulletClick(index); } : undefined }, index)); }) })));
|
85
|
+
default:
|
86
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
87
|
+
}
|
88
|
+
})() })));
|
101
89
|
};
|
102
90
|
exports.CustomPagination = CustomPagination;
|
103
|
-
var
|
91
|
+
var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"], ["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"])), function (_a) {
|
92
|
+
var _b = _a.alignItems, alignItems = _b === void 0 ? 'center' : _b;
|
93
|
+
return alignItems;
|
94
|
+
}, function (_a) {
|
95
|
+
var _b = _a.direction, direction = _b === void 0 ? 'row' : _b;
|
96
|
+
return direction;
|
97
|
+
}, function (_a) {
|
98
|
+
var _b = _a.gap, gap = _b === void 0 ? '0' : _b;
|
99
|
+
return gap;
|
100
|
+
}, function (_a) {
|
101
|
+
var _b = _a.justifyContent, justifyContent = _b === void 0 ? 'center' : _b;
|
102
|
+
return justifyContent;
|
103
|
+
});
|
104
|
+
var S_Pagination = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n /* ", "; */\n"], ["\n padding: 5px;\n position: absolute;\n ", ";\n transform: ", ";\n transform-origin: ", ";\n width: max-content;\n z-index: 2;\n /* ", "; */\n"])), function (_a) {
|
104
105
|
var $offset = _a.$offset;
|
105
|
-
return (0, styled_components_1.css)(
|
106
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
|
106
107
|
}, function (_a) {
|
107
108
|
var _b, _c;
|
108
109
|
var $size = _a.$size, $offset = _a.$offset;
|
@@ -110,6 +111,78 @@ var S_Pagination = styled_components_1.default.div(templateObject_2 || (template
|
|
110
111
|
}, function (_a) {
|
111
112
|
var $offset = _a.$offset;
|
112
113
|
return $offset.transformOrigin || 'center center';
|
114
|
+
}, function (_a) {
|
115
|
+
var effectVisibleStyle = _a.effectVisibleStyle;
|
116
|
+
return effectVisibleStyle && __assign({}, effectVisibleStyle);
|
117
|
+
});
|
118
|
+
var body2Bold = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
119
|
+
var theme = _a.theme;
|
120
|
+
return theme.desktopFontSize.body2;
|
121
|
+
}, function (_a) {
|
122
|
+
var theme = _a.theme;
|
123
|
+
return theme.fontWeight.bold;
|
124
|
+
}, function (_a) {
|
125
|
+
var theme = _a.theme;
|
126
|
+
return theme.desktopLineHeight.body2;
|
127
|
+
});
|
128
|
+
var body2Regular = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
129
|
+
var theme = _a.theme;
|
130
|
+
return theme.desktopFontSize.body2;
|
131
|
+
}, function (_a) {
|
132
|
+
var theme = _a.theme;
|
133
|
+
return theme.fontWeight.normal;
|
134
|
+
}, function (_a) {
|
135
|
+
var theme = _a.theme;
|
136
|
+
return theme.desktopLineHeight.body2;
|
137
|
+
});
|
138
|
+
var sysTextWhite = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
139
|
+
var theme = _a.theme;
|
140
|
+
return theme.ui_cpnt_textlabel_sys_white;
|
141
|
+
});
|
142
|
+
var sysTextBlack = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
143
|
+
var theme = _a.theme;
|
144
|
+
return theme.ui_cpnt_textlabel_sys_black;
|
145
|
+
});
|
146
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", ";\n\n ", ";\n"], ["\n ", ";\n\n ", ";\n"])), function (_a) {
|
147
|
+
var styleTheme = _a.styleTheme;
|
148
|
+
return styleTheme &&
|
149
|
+
{
|
150
|
+
body2Bold: body2Bold,
|
151
|
+
body2Regular: body2Regular
|
152
|
+
}[styleTheme];
|
153
|
+
}, function (_a) {
|
154
|
+
var colorTheme = _a.colorTheme;
|
155
|
+
return colorTheme
|
156
|
+
? {
|
157
|
+
sysTextWhite: sysTextWhite,
|
158
|
+
sysTextBlack: sysTextBlack
|
159
|
+
}[colorTheme]
|
160
|
+
: sysTextWhite;
|
161
|
+
});
|
162
|
+
var verticalDivider = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 16px;\n width: 1px;\n"], ["\n height: 16px;\n width: 1px;\n"])));
|
163
|
+
var horizontalDivider = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n height: 1px;\n width: 100%;\n"], ["\n height: 1px;\n width: 100%;\n"])));
|
164
|
+
var S_Divider = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n opacity: 0.6;\n ", ";\n"], ["\n background-color: ", ";\n opacity: 0.6;\n ", ";\n"])), function (_a) {
|
165
|
+
var color = _a.color;
|
166
|
+
return (color === 'WHITE' ? '#ffffff' : '#000000');
|
167
|
+
}, function (_a) {
|
168
|
+
var type = _a.type;
|
169
|
+
return (type === 'VERTICAL' ? verticalDivider : horizontalDivider);
|
170
|
+
});
|
171
|
+
var whiteBullet = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n background-color: #ffffff;\n opacity: ", ";\n"], ["\n background-color: #ffffff;\n opacity: ", ";\n"])), function (_a) {
|
172
|
+
var isActive = _a.isActive;
|
173
|
+
return (isActive ? 1 : 0.2);
|
174
|
+
});
|
175
|
+
var darkBullet = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n background-color: #000000;\n opacity: ", ";\n"], ["\n background-color: #000000;\n opacity: ", ";\n"])), function (_a) {
|
176
|
+
var isActive = _a.isActive;
|
177
|
+
return (isActive ? 1 : 0.3);
|
178
|
+
});
|
179
|
+
var S_Dot = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n ", ";\n"], ["\n border-radius: 50%;\n cursor: pointer;\n height: 8px;\n width: 8px;\n ", ";\n"])), function (_a) {
|
180
|
+
var color = _a.color;
|
181
|
+
return (color === 'WHITE' ? whiteBullet : darkBullet);
|
182
|
+
});
|
183
|
+
var S_Bar = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n cursor: pointer;\n height: 2px;\n width: 40px;\n ", ";\n"], ["\n cursor: pointer;\n height: 2px;\n width: 40px;\n ", ";\n"])), function (_a) {
|
184
|
+
var color = _a.color;
|
185
|
+
return (color === 'WHITE' ? whiteBullet : darkBullet);
|
113
186
|
});
|
114
187
|
exports.default = exports.CustomPagination;
|
115
|
-
var templateObject_1, templateObject_2;
|
188
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
@@ -87,14 +87,20 @@ function parseGridStyleProp(_a) {
|
|
87
87
|
var value = props[keyWithDevice];
|
88
88
|
var hoverValue = props[keyWithHover];
|
89
89
|
var styles = parseStylePropertyStyles(currentKey, value);
|
90
|
-
var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue
|
90
|
+
var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue);
|
91
|
+
if (hoverValue === null || hoverValue === undefined) {
|
92
|
+
return {
|
93
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
|
94
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), acc.hoverStylePropCss)
|
95
|
+
};
|
96
|
+
}
|
91
97
|
return {
|
92
|
-
stylePropCss: (0, styled_components_1.css)(
|
93
|
-
hoverStylePropCss: (0, styled_components_1.css)(
|
98
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
|
99
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
|
94
100
|
};
|
95
101
|
}, {
|
96
|
-
stylePropCss: (0, styled_components_1.css)(
|
97
|
-
hoverStylePropCss: (0, styled_components_1.css)(
|
102
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""]))),
|
103
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_17 || (templateObject_17 = __makeTemplateObject([""], [""])))
|
98
104
|
});
|
99
105
|
}
|
100
106
|
exports.parseGridStyleProp = parseGridStyleProp;
|
@@ -105,10 +111,10 @@ function parseGridContentProp(_a) {
|
|
105
111
|
var value = props[currentKey];
|
106
112
|
var styles = parseContentPropertyStyles(currentKey, value);
|
107
113
|
return {
|
108
|
-
contentPropCss: (0, styled_components_1.css)(
|
114
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
|
109
115
|
};
|
110
116
|
}, {
|
111
|
-
contentPropCss: (0, styled_components_1.css)(
|
117
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject([""], [""])))
|
112
118
|
});
|
113
119
|
}
|
114
120
|
exports.parseGridContentProp = parseGridContentProp;
|
@@ -124,7 +130,7 @@ function parsePaginationStyleProp(_a) {
|
|
124
130
|
var hoverValue = props[keyWithHover];
|
125
131
|
return {
|
126
132
|
normalStyle: __assign(__assign({}, acc.normalStyle), { type: value }),
|
127
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue
|
133
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { type: hoverValue })
|
128
134
|
};
|
129
135
|
}
|
130
136
|
if (customPaginationPropertyKey === 'offset') {
|
@@ -132,7 +138,7 @@ function parsePaginationStyleProp(_a) {
|
|
132
138
|
var hoverValue = props[keyWithHover];
|
133
139
|
return {
|
134
140
|
normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
|
135
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue
|
141
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue) })
|
136
142
|
};
|
137
143
|
}
|
138
144
|
if (customPaginationPropertyKey === 'size') {
|
@@ -140,7 +146,7 @@ function parsePaginationStyleProp(_a) {
|
|
140
146
|
var hoverValue = props[keyWithHover];
|
141
147
|
return {
|
142
148
|
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
|
143
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue
|
149
|
+
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue) })
|
144
150
|
};
|
145
151
|
}
|
146
152
|
return {
|
@@ -197,10 +203,10 @@ function getCustomPaginationOffset(value) {
|
|
197
203
|
case 'OUTSET3':
|
198
204
|
return {
|
199
205
|
top: '0px',
|
200
|
-
|
201
|
-
translateX:
|
206
|
+
right: '0px',
|
207
|
+
translateX: 0,
|
202
208
|
translateY: -100,
|
203
|
-
transformOrigin: 'top
|
209
|
+
transformOrigin: 'top right'
|
204
210
|
};
|
205
211
|
case 'OUTSET4':
|
206
212
|
return {
|
@@ -274,9 +280,9 @@ function getCustomPaginationOffset(value) {
|
|
274
280
|
translateY: 0,
|
275
281
|
transformOrigin: 'right top'
|
276
282
|
};
|
277
|
-
case '
|
283
|
+
case 'INSET13':
|
278
284
|
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
279
|
-
case '
|
285
|
+
case 'INSET14':
|
280
286
|
return {
|
281
287
|
top: '0px',
|
282
288
|
left: '50%',
|
@@ -284,7 +290,7 @@ function getCustomPaginationOffset(value) {
|
|
284
290
|
translateY: 0,
|
285
291
|
transformOrigin: 'left top'
|
286
292
|
};
|
287
|
-
case '
|
293
|
+
case 'INSET15':
|
288
294
|
return {
|
289
295
|
top: '0px',
|
290
296
|
left: '100%',
|
@@ -292,7 +298,7 @@ function getCustomPaginationOffset(value) {
|
|
292
298
|
translateY: 0,
|
293
299
|
transformOrigin: 'left top'
|
294
300
|
};
|
295
|
-
case '
|
301
|
+
case 'INSET16':
|
296
302
|
return {
|
297
303
|
top: '50%',
|
298
304
|
left: '100%',
|
@@ -300,7 +306,7 @@ function getCustomPaginationOffset(value) {
|
|
300
306
|
translateY: -50,
|
301
307
|
transformOrigin: 'left top'
|
302
308
|
};
|
303
|
-
case '
|
309
|
+
case 'INSET17':
|
304
310
|
return {
|
305
311
|
top: '100%',
|
306
312
|
left: '100%',
|
@@ -308,7 +314,7 @@ function getCustomPaginationOffset(value) {
|
|
308
314
|
translateY: -100,
|
309
315
|
transformOrigin: 'left top'
|
310
316
|
};
|
311
|
-
case '
|
317
|
+
case 'INSET18':
|
312
318
|
return {
|
313
319
|
top: '100%',
|
314
320
|
left: '50%',
|
@@ -316,7 +322,7 @@ function getCustomPaginationOffset(value) {
|
|
316
322
|
translateY: -100,
|
317
323
|
transformOrigin: 'left top'
|
318
324
|
};
|
319
|
-
case '
|
325
|
+
case 'INSET19':
|
320
326
|
return {
|
321
327
|
top: '100%',
|
322
328
|
left: '0px',
|
@@ -324,7 +330,7 @@ function getCustomPaginationOffset(value) {
|
|
324
330
|
translateY: -100,
|
325
331
|
transformOrigin: 'top left'
|
326
332
|
};
|
327
|
-
case '
|
333
|
+
case 'INSET20':
|
328
334
|
return {
|
329
335
|
top: '50%',
|
330
336
|
left: '0px',
|
@@ -341,11 +347,11 @@ function getCustomPaginationSize(value) {
|
|
341
347
|
case 'SMALL':
|
342
348
|
return 1;
|
343
349
|
case 'MEDIUM':
|
344
|
-
return 1.5;
|
345
|
-
case 'LARGE':
|
346
350
|
return 2;
|
351
|
+
case 'LARGE':
|
352
|
+
return 3;
|
347
353
|
default:
|
348
354
|
return 1;
|
349
355
|
}
|
350
356
|
}
|
351
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
357
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
@@ -6,7 +6,7 @@ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER
|
|
6
6
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean | null;
|
7
7
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = boolean | null;
|
8
8
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17' | null;
|
9
|
-
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | '
|
9
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = 'OUTSET1' | 'OUTSET2' | 'OUTSET3' | 'OUTSET4' | 'OUTSET5' | 'OUTSET6' | 'OUTSET7' | 'OUTSET8' | 'OUTSET9' | 'OUTSET10' | 'OUTSET11' | 'OUTSET12' | 'INSET13' | 'INSET14' | 'INSET15' | 'INSET16' | 'INSET17' | 'INSET18' | 'INSET19' | 'INSET20' | null;
|
10
10
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE' | null;
|
11
11
|
export type CB_STYLE_PROP_CONTENTSLIST_SPECS_BASE = {
|
12
12
|
CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE_TYPE;
|
@@ -57,8 +57,7 @@ function Image(props) {
|
|
57
57
|
var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
|
58
58
|
var index = props.index, CB_CONTENT_PROP_IMAGE = props.CB_CONTENT_PROP_IMAGE, _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_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM;
|
59
59
|
var cLinkValue = function () {
|
60
|
-
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA'
|
61
|
-
CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
60
|
+
if (CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE === 'DATA') {
|
62
61
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
63
62
|
return "ERROR: QueryData NOT FOUND";
|
64
63
|
}
|
@@ -91,26 +90,19 @@ function Image(props) {
|
|
91
90
|
var hasEffect = !isNoneEffectType;
|
92
91
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
93
92
|
var imgSrc = function () {
|
94
|
-
var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA'
|
95
|
-
CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
93
|
+
var isDataConnected = CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA';
|
96
94
|
if (!isDataConnected) {
|
97
95
|
return CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_SELECTOR;
|
98
96
|
}
|
99
97
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
100
|
-
|
101
|
-
console.warn('ERROR: No query data found');
|
102
|
-
return 'ERROR';
|
98
|
+
return 'ERROR: No query data found';
|
103
99
|
}
|
104
100
|
if (!queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA]) {
|
105
|
-
|
106
|
-
console.warn("ERROR: ".concat(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA, " NOT found in query data"));
|
107
|
-
return 'ERROR';
|
101
|
+
return "ERROR: ".concat(CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA, " NOT found in query data");
|
108
102
|
}
|
109
103
|
return queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
|
110
104
|
};
|
111
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc()
|
112
|
-
? 'https://static.publ.site/pages-sample/img_cb_style_prop_bgmedia_spec_imageselector_01.png'
|
113
|
-
: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
|
105
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }) })) })) }))] }));
|
114
106
|
}
|
115
107
|
function parseImageCBStyle(style, hoverStyle, mode) {
|
116
108
|
var boxStyle = {
|