pds-dev-kit-web-test 2.7.233 → 2.7.234

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.
Files changed (12) hide show
  1. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +5 -5
  2. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +9 -13
  3. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +2 -1
  4. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +3 -3
  5. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +2 -1
  6. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +3 -3
  7. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +2 -1
  8. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +3 -3
  9. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +84 -1
  10. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +1 -1
  11. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +1 -1
  12. package/package.json +1 -1
@@ -4535,7 +4535,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
4535
4535
  'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE:HOVER': null
4536
4536
  },
4537
4537
  CB_STYLE_PROP_SLIDEBANNERBUTTON: {
4538
- CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNLOCATION: 'OUTSET3',
4538
+ CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNLOCATION: 'OUTSET1',
4539
4539
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNLOCATION:MOBILE': null,
4540
4540
  CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNPRIMARYCOLOR: '#7CEC0DFC',
4541
4541
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNPRIMARYCOLOR:HOVER': null,
@@ -4545,11 +4545,11 @@ exports.SAMPLE_SLIDEBANNER_CB = {
4545
4545
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSECONDARYCOLOR:HOVER': null,
4546
4546
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE': null,
4547
4547
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE:HOVER': null,
4548
- CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSIZE: 'LARGE',
4548
+ CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSIZE: 'SMALL',
4549
4549
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSIZE:MOBILE': null,
4550
4550
  CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSTYLE: 'DESIGN3',
4551
4551
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSTYLE:MOBILE': null,
4552
- CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNLOCATION: 'OUTSET12',
4552
+ CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNLOCATION: 'OUTSET1',
4553
4553
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNLOCATION:MOBILE': null,
4554
4554
  CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNPRIMARYCOLOR: '#630FFFED',
4555
4555
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNPRIMARYCOLOR:HOVER': null,
@@ -4559,7 +4559,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
4559
4559
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSECONDARYCOLOR:HOVER': null,
4560
4560
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSECONDARYCOLOR:MOBILE': null,
4561
4561
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSECONDARYCOLOR:MOBILE:HOVER': null,
4562
- CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSIZE: 'MEDIUM',
4562
+ CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSIZE: 'SMALL',
4563
4563
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSIZE:MOBILE': null,
4564
4564
  CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSTYLE: 'DESIGN3',
4565
4565
  'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSTYLE:MOBILE': null
@@ -4569,7 +4569,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
4569
4569
  'CB_STYLE_PROP_SLIDEBANNERDESIGN_SPEC_STYLE:MOBILE': null
4570
4570
  },
4571
4571
  CB_STYLE_PROP_SLIDEBANNERPAGINATION: {
4572
- CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION: 'OUTSET2',
4572
+ CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION: 'OUTSET1',
4573
4573
  'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION:MOBILE': null,
4574
4574
  CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR: '#A500CFF0',
4575
4575
  'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE': null,
@@ -42,6 +42,7 @@ var CustomNavigationNextBtn_1 = require("./components/CustomNavigationNextBtn");
42
42
  var CustomNavigationPrevBtn_1 = require("./components/CustomNavigationPrevBtn");
43
43
  var CustomPagination_1 = require("./components/CustomPagination");
44
44
  var CustomProgressbar_1 = require("./components/CustomProgressbar");
45
+ var elementPositions_1 = require("./hooks/elementPositions");
45
46
  var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
46
47
  var useSwiper_1 = require("./hooks/useSwiper");
47
48
  var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
@@ -113,21 +114,15 @@ function SlideBanner(props) {
113
114
  { type: 'PROGRESSBAR', position: 'INSET5' }
114
115
  ].filter(function (component) { return component !== undefined; });
115
116
  var _k = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _k.layoutRef, positionRefs = _k.positionRefs, ccbInset = _k.ccbInset, componentGroups = _k.componentGroups, getPositionStyle = _k.getPositionStyle, getComponentGroupLayout = _k.getComponentGroupLayout;
116
- // const ccbInset = {
117
- // top: '0px',
118
- // right: '0px',
119
- // bottom: '0px',
120
- // left: '0px'
121
- // };
122
- var renderElements = function (component) {
117
+ var renderElements = function (component, positionStyle) {
123
118
  var _a;
124
119
  switch (component.type) {
125
120
  case 'PREV':
126
- return ((0, jsx_runtime_1.jsx)(CustomNavigationPrevBtn_1.CustomNavigationPrevBtn, { isDisabled: loop ? false : isBeginning, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickPrevBtn }));
121
+ return ((0, jsx_runtime_1.jsx)(CustomNavigationPrevBtn_1.CustomNavigationPrevBtn, { isDisabled: loop ? false : isBeginning, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickPrevBtn, style: positionStyle }));
127
122
  case 'NEXT':
128
- return ((0, jsx_runtime_1.jsx)(CustomNavigationNextBtn_1.CustomNavigationNextBtn, { isDisabled: loop ? false : isEnd, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickNextBtn }));
123
+ return ((0, jsx_runtime_1.jsx)(CustomNavigationNextBtn_1.CustomNavigationNextBtn, { isDisabled: loop ? false : isEnd, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickNextBtn, style: positionStyle }));
129
124
  case 'PAGINATION':
130
- return ((0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { styles: isHovered ? customPaginationHoverStyle : customPaginationNormalStyle, current: currentSlide, isPrevBtnDisabled: loop ? false : isBeginning, isNextBtnDisabled: loop ? false : isEnd, total: ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length) || 0, onBulletClick: onClickBullet, onPrevBtnClick: onClickPrevBtn, onNextBtnClick: onClickNextBtn }));
125
+ return ((0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { styles: isHovered ? customPaginationHoverStyle : customPaginationNormalStyle, current: currentSlide, isPrevBtnDisabled: loop ? false : isBeginning, isNextBtnDisabled: loop ? false : isEnd, total: ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length) || 0, onBulletClick: onClickBullet, onPrevBtnClick: onClickPrevBtn, onNextBtnClick: onClickNextBtn, style: positionStyle }));
131
126
  case 'PROGRESSBAR':
132
127
  return ((0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, styles: isHovered ? customProgressbarHoverStyle : customProgressbarNormalStyle }));
133
128
  default:
@@ -143,7 +138,6 @@ function SlideBanner(props) {
143
138
  .map(function (item) {
144
139
  return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
145
140
  });
146
- console.log('entries', Object.entries(componentGroups));
147
141
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(componentGroups).map(function (_a) {
148
142
  var position = _a[0], groupComponents = _a[1];
149
143
  return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-group ccb-elements", ref: function (el) {
@@ -153,8 +147,10 @@ function SlideBanner(props) {
153
147
  else {
154
148
  delete positionRefs.current[position];
155
149
  }
156
- }, style: __assign(__assign({}, getPositionStyle(position, ccbInset, groupComponents[0].designType, groupComponents[0].size)), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) { return renderElements(component); }) })) }), position));
157
- }), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: [(0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ ref: backgroundRef, style: __assign(__assign({}, effect), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: style, playerId: index, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) })), (0, jsx_runtime_1.jsx)(S_Overlay, { style: overlayStyle }), (0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ className: "cb-slidebanner-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.jsx)(S_SwiperWrapper, __assign({ className: "cb-slidebanner-wrapper", ccbInset: ccbInset, customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, className: "cb-slidebanner", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: 1, styles: isHovered ? slideBannerHoverStyle : slideBannerNormalStyle, effect: CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE === null || CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE === void 0 ? void 0 : CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
150
+ }, style: __assign(__assign({}, getPositionStyle(position, ccbInset, 'GROUP', 'GROUP')), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) {
151
+ return renderElements(component, (0, elementPositions_1.getPosition)(position, component.designType, component.size));
152
+ }) })) }), position));
153
+ }), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: [(0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ ref: backgroundRef, style: __assign(__assign({}, effect), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: style, playerId: index, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) })), (0, jsx_runtime_1.jsx)(S_Overlay, { style: overlayStyle }), (0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ className: "cb-slidebanner-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.jsx)(S_SwiperWrapper, __assign({ className: "cb-slidebanner-wrapper", ccbInset: ccbInset, customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, className: "cb-slidebanner", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: 1, styles: isHovered ? slideBannerHoverStyle : slideBannerNormalStyle, effect: CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
158
154
  valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
159
155
  queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
160
156
  limit: CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS,
@@ -4,9 +4,10 @@ export interface CustomNavigationNextBtnProps {
4
4
  isDisabled: boolean;
5
5
  styles: CustomNavigationProps;
6
6
  hoverStyles?: CustomNavigationProps;
7
+ style?: React.CSSProperties;
7
8
  onClick?: () => void;
8
9
  }
9
- export declare const CustomNavigationNextBtn: ({ isDisabled, styles, hoverStyles, onClick }: CustomNavigationNextBtnProps) => JSX.Element;
10
+ export declare const CustomNavigationNextBtn: ({ isDisabled, styles, hoverStyles, style, onClick }: CustomNavigationNextBtnProps) => JSX.Element;
10
11
  export interface FlexBoxProps {
11
12
  direction?: 'row' | 'column';
12
13
  justifyContent?: string;
@@ -44,7 +44,7 @@ var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pds
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
45
  var navigationConfigs_1 = require("./navigationConfigs");
46
46
  var CustomNavigationNextBtn = function (_a) {
47
- var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, onClick = _a.onClick;
47
+ var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, style = _a.style, onClick = _a.onClick;
48
48
  var nextButton = styles.nextBtnType === 'NONE'
49
49
  ? undefined
50
50
  : navigationConfigs_1.nextButtonMappedIcons[styles.nextBtnType || 'DESIGN1'];
@@ -58,10 +58,10 @@ var CustomNavigationNextBtn = function (_a) {
58
58
  buttonSize = 80;
59
59
  iconSize = 48;
60
60
  }
61
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nextButton && ((0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "cb-slidebanner-next-button", disabled: isDisabled, "$size": styles.nextBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: nextButton.shapeType, borderColorKey: nextButton.borderColorKey, overrideBaseColorHex: styles.nextBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnPrimaryColor, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.nextBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnSecondaryColor, shadow: nextButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
61
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nextButton && ((0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "cb-slidebanner-next-button", disabled: isDisabled, "$size": styles.nextBtnSize, style: style }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: nextButton.shapeType, borderColorKey: nextButton.borderColorKey, overrideBaseColorHex: styles.nextBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnPrimaryColor, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.nextBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnSecondaryColor, shadow: nextButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
62
62
  };
63
63
  exports.CustomNavigationNextBtn = CustomNavigationNextBtn;
64
- var S_NextButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n ", ";\n"], ["\n cursor: pointer;\n\n ", ";\n"])), function (_a) {
64
+ var S_NextButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n position: relative;\n\n ", ";\n"], ["\n cursor: pointer;\n position: relative;\n\n ", ";\n"])), function (_a) {
65
65
  var disabled = _a.disabled;
66
66
  return disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "], ["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "])));
67
67
  });
@@ -4,9 +4,10 @@ export interface CustomNavigationPrevBtnProps {
4
4
  isDisabled: boolean;
5
5
  styles: CustomNavigationProps;
6
6
  hoverStyles?: CustomNavigationProps;
7
+ style?: React.CSSProperties;
7
8
  onClick?: () => void;
8
9
  }
9
- export declare const CustomNavigationPrevBtn: ({ isDisabled, styles, hoverStyles, onClick }: CustomNavigationPrevBtnProps) => JSX.Element;
10
+ export declare const CustomNavigationPrevBtn: ({ isDisabled, styles, hoverStyles, style, onClick }: CustomNavigationPrevBtnProps) => JSX.Element;
10
11
  export interface FlexBoxProps {
11
12
  direction?: 'row' | 'column';
12
13
  justifyContent?: string;
@@ -44,7 +44,7 @@ var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pds
44
44
  var styled_components_1 = __importStar(require("styled-components"));
45
45
  var navigationConfigs_1 = require("./navigationConfigs");
46
46
  var CustomNavigationPrevBtn = function (_a) {
47
- var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, onClick = _a.onClick;
47
+ var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, style = _a.style, onClick = _a.onClick;
48
48
  var prevButton = styles.prevBtnType === 'NONE'
49
49
  ? undefined
50
50
  : navigationConfigs_1.prevButtonMappedIcons[styles.prevBtnType || 'DESIGN1'];
@@ -58,10 +58,10 @@ var CustomNavigationPrevBtn = function (_a) {
58
58
  buttonSize = 'xxlarge';
59
59
  iconSize = 48;
60
60
  }
61
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: prevButton && ((0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "cb-slidebanner-prev-button", disabled: isDisabled }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: prevButton.shapeType, borderColorKey: prevButton.borderColorKey, overrideBaseColorHex: styles.prevBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnPrimaryColor, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.prevBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnSecondaryColor, shadow: prevButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
61
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: prevButton && ((0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "cb-slidebanner-prev-button", disabled: isDisabled, style: style }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: prevButton.shapeType, borderColorKey: prevButton.borderColorKey, overrideBaseColorHex: styles.prevBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnPrimaryColor, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.prevBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnSecondaryColor, shadow: prevButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
62
62
  };
63
63
  exports.CustomNavigationPrevBtn = CustomNavigationPrevBtn;
64
- var S_PrevButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n ", ";\n"], ["\n cursor: pointer;\n\n ", ";\n"])), function (_a) {
64
+ var S_PrevButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n position: relative;\n\n ", ";\n"], ["\n cursor: pointer;\n position: relative;\n\n ", ";\n"])), function (_a) {
65
65
  var disabled = _a.disabled;
66
66
  return disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "], ["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "])));
67
67
  });
@@ -6,11 +6,12 @@ interface Props {
6
6
  isPrevBtnDisabled: boolean;
7
7
  isNextBtnDisabled: boolean;
8
8
  styles: CustomPaginationProps;
9
+ style: React.CSSProperties;
9
10
  onBulletClick: (index: number) => void;
10
11
  onPrevBtnClick: () => void;
11
12
  onNextBtnClick: () => void;
12
13
  }
13
- export declare const CustomPagination: ({ current, total, isNextBtnDisabled, isPrevBtnDisabled, styles, onBulletClick, onNextBtnClick, onPrevBtnClick }: Props) => JSX.Element;
14
+ export declare const CustomPagination: ({ current, total, isNextBtnDisabled, isPrevBtnDisabled, styles, style, onBulletClick, onNextBtnClick, onPrevBtnClick }: Props) => JSX.Element;
14
15
  export interface FlexBoxProps {
15
16
  direction?: 'row' | 'column';
16
17
  justifyContent?: string;
@@ -43,9 +43,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
43
43
  var components_1 = require("../../../../../../../../DynamicLayout/components");
44
44
  var styled_components_1 = __importStar(require("styled-components"));
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, isNextBtnDisabled = _a.isNextBtnDisabled, isPrevBtnDisabled = _a.isPrevBtnDisabled, styles = _a.styles, onBulletClick = _a.onBulletClick, onNextBtnClick = _a.onNextBtnClick, onPrevBtnClick = _a.onPrevBtnClick;
46
+ var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, isNextBtnDisabled = _a.isNextBtnDisabled, isPrevBtnDisabled = _a.isPrevBtnDisabled, styles = _a.styles, style = _a.style, onBulletClick = _a.onBulletClick, onNextBtnClick = _a.onNextBtnClick, onPrevBtnClick = _a.onPrevBtnClick;
47
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) }, { children: (function () {
48
+ return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), style: style }, { children: (function () {
49
49
  var _a, _b, _c, _d, _e, _f, _g, _h;
50
50
  switch (styles.type) {
51
51
  case 'NONE':
@@ -284,7 +284,7 @@ var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObjec
284
284
  var _b = _a.justifyContent, justifyContent = _b === void 0 ? 'center' : _b;
285
285
  return justifyContent;
286
286
  });
287
- var S_Pagination = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* max-width: 120px; */\n padding: 5px;\n"], ["\n /* max-width: 120px; */\n padding: 5px;\n"])));
287
+ var S_Pagination = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* max-width: 120px; */\n padding: 5px;\n position: relative;\n"], ["\n /* max-width: 120px; */\n padding: 5px;\n position: relative;\n"])));
288
288
  // const sysTextWhite = css`
289
289
  // color: ${({ theme }) => theme.ui_cpnt_textlabel_sys_white};
290
290
  // `;
@@ -7,7 +7,7 @@ function getPosition(position, designType, size) {
7
7
  if (position.startsWith('OUTSET')) {
8
8
  return (_b = (_a = exports.POS_OUTSET[position]) === null || _a === void 0 ? void 0 : _a[designType]) === null || _b === void 0 ? void 0 : _b[size];
9
9
  }
10
- return (_c = exports.POS_INSET[position]) === null || _c === void 0 ? void 0 : _c[size];
10
+ return (_c = exports.POS_INSET[position]) === null || _c === void 0 ? void 0 : _c.LARGE;
11
11
  }
12
12
  exports.getPosition = getPosition;
13
13
  exports.POS_OUTSET = {
@@ -15,6 +15,12 @@ exports.POS_OUTSET = {
15
15
  // OUTSET 1 (left 0px 공통)
16
16
  //--------------------------------------------------
17
17
  OUTSET1: {
18
+ GROUP: {
19
+ GROUP: {
20
+ bottom: '100%',
21
+ height: 0
22
+ }
23
+ },
18
24
  DESIGN1: {
19
25
  LARGE: { top: -50, left: 0 },
20
26
  MEDIUM: { top: -45, left: 0 },
@@ -60,6 +66,13 @@ exports.POS_OUTSET = {
60
66
  // OUTSET 2 (left center 공통, transform 추출)
61
67
  //--------------------------------------------------
62
68
  OUTSET2: {
69
+ GROUP: {
70
+ GROUP: {
71
+ bottom: '100%',
72
+ height: 0,
73
+ left: 'center'
74
+ }
75
+ },
63
76
  DESIGN1: {
64
77
  LARGE: { top: -50, left: 'center', transform: 'translateX(-50%)' },
65
78
  MEDIUM: { top: -45, left: 'center', transform: 'translateX(-50%)' },
@@ -105,6 +118,13 @@ exports.POS_OUTSET = {
105
118
  // OUTSET 3 (right 0px 공통)
106
119
  //--------------------------------------------------
107
120
  OUTSET3: {
121
+ GROUP: {
122
+ GROUP: {
123
+ bottom: '100%',
124
+ height: 0,
125
+ right: 0
126
+ }
127
+ },
108
128
  DESIGN1: {
109
129
  LARGE: { top: -50, right: 0 },
110
130
  MEDIUM: { top: -45, right: 0 },
@@ -150,6 +170,13 @@ exports.POS_OUTSET = {
150
170
  // OUTSET 4 (top 0px 공통)
151
171
  //--------------------------------------------------
152
172
  OUTSET4: {
173
+ GROUP: {
174
+ GROUP: {
175
+ bottom: '100%',
176
+ height: 0,
177
+ right: 0
178
+ }
179
+ },
153
180
  DESIGN1: {
154
181
  LARGE: { top: 0, right: -65 },
155
182
  MEDIUM: { top: 0, right: -60 },
@@ -195,6 +222,13 @@ exports.POS_OUTSET = {
195
222
  // OUTSET 5 (top center 공통, transform 추출)
196
223
  //--------------------------------------------------
197
224
  OUTSET5: {
225
+ GROUP: {
226
+ GROUP: {
227
+ top: 'center',
228
+ height: 0,
229
+ right: 0
230
+ }
231
+ },
198
232
  DESIGN1: {
199
233
  LARGE: { top: 'center', right: -65, transform: 'translateY(-50%)' },
200
234
  MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
@@ -240,6 +274,13 @@ exports.POS_OUTSET = {
240
274
  // OUTSET 6 (bottom 0px 공통)
241
275
  //--------------------------------------------------
242
276
  OUTSET6: {
277
+ GROUP: {
278
+ GROUP: {
279
+ bottom: 0,
280
+ height: 0,
281
+ right: 0
282
+ }
283
+ },
243
284
  DESIGN1: {
244
285
  LARGE: { bottom: 0, right: -65 },
245
286
  MEDIUM: { bottom: 0, right: -60 },
@@ -285,6 +326,13 @@ exports.POS_OUTSET = {
285
326
  // OUTSET 7 (right 0px 공통)
286
327
  //--------------------------------------------------
287
328
  OUTSET7: {
329
+ GROUP: {
330
+ GROUP: {
331
+ bottom: 0,
332
+ height: 0,
333
+ right: 0
334
+ }
335
+ },
288
336
  DESIGN1: {
289
337
  LARGE: { bottom: -50, right: 0 },
290
338
  MEDIUM: { bottom: -45, right: 0 },
@@ -330,6 +378,13 @@ exports.POS_OUTSET = {
330
378
  // OUTSET 8 (left center 공통, transform 추출)
331
379
  //--------------------------------------------------
332
380
  OUTSET8: {
381
+ GROUP: {
382
+ GROUP: {
383
+ bottom: 0,
384
+ height: 0,
385
+ left: 'center'
386
+ }
387
+ },
333
388
  DESIGN1: {
334
389
  LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
335
390
  MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
@@ -375,6 +430,13 @@ exports.POS_OUTSET = {
375
430
  // OUTSET 9 (left 0px 공통)
376
431
  //--------------------------------------------------
377
432
  OUTSET9: {
433
+ GROUP: {
434
+ GROUP: {
435
+ bottom: 0,
436
+ height: 0,
437
+ left: 0
438
+ }
439
+ },
378
440
  DESIGN1: {
379
441
  LARGE: { bottom: -50, left: 0 },
380
442
  MEDIUM: { bottom: -45, left: 0 },
@@ -420,6 +482,13 @@ exports.POS_OUTSET = {
420
482
  // OUTSET 10 (bottom 0px 공통)
421
483
  //--------------------------------------------------
422
484
  OUTSET10: {
485
+ GROUP: {
486
+ GROUP: {
487
+ bottom: 0,
488
+ height: 0,
489
+ left: 0
490
+ }
491
+ },
423
492
  DESIGN1: {
424
493
  LARGE: { bottom: 0, left: -65 },
425
494
  MEDIUM: { bottom: 0, left: -60 },
@@ -465,6 +534,13 @@ exports.POS_OUTSET = {
465
534
  // OUTSET 11 (top center 공통, transform 추출)
466
535
  //--------------------------------------------------
467
536
  OUTSET11: {
537
+ GROUP: {
538
+ GROUP: {
539
+ top: 'center',
540
+ height: 0,
541
+ left: 0
542
+ }
543
+ },
468
544
  DESIGN1: {
469
545
  LARGE: { top: 'center', transform: 'translateY(-50%)', left: -65 },
470
546
  MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -60 },
@@ -510,6 +586,13 @@ exports.POS_OUTSET = {
510
586
  // OUTSET 12 (top 0px 공통)
511
587
  //--------------------------------------------------
512
588
  OUTSET12: {
589
+ GROUP: {
590
+ GROUP: {
591
+ top: 0,
592
+ height: 0,
593
+ left: 0
594
+ }
595
+ },
513
596
  DESIGN1: {
514
597
  LARGE: { top: 0, left: -65 },
515
598
  MEDIUM: { top: 0, left: -60 },
@@ -13,6 +13,6 @@ export declare const useFlexGridLayout: ({ components }: {
13
13
  left: string;
14
14
  };
15
15
  componentGroups: Record<string, SlideBannerElementsProps[]>;
16
- getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL') => CSSProperties;
16
+ getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL' | 'GROUP') => CSSProperties;
17
17
  getComponentGroupLayout: (components: SlideBannerElementsProps[], position: string) => CSSProperties;
18
18
  };
@@ -32,6 +32,7 @@ var useFlexGridLayout = function (_a) {
32
32
  return groups;
33
33
  };
34
34
  var componentGroups = getComponentsByPosition();
35
+ console.log('componentGroups', componentGroups);
35
36
  var GAP = 8;
36
37
  // 위치가 어느 방향인지 판단
37
38
  var getPositionDirection = function (position) {
@@ -105,7 +106,6 @@ var useFlexGridLayout = function (_a) {
105
106
  INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
106
107
  };
107
108
  var pos = (0, elementPositions_1.getPosition)(position, designType, size);
108
- console.log('pos', position, designType, size, pos);
109
109
  return __assign(__assign({}, base), pos);
110
110
  };
111
111
  // 컴포넌트 그룹 레이아웃
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.233",
3
+ "version": "2.7.234",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",