pds-dev-kit-web-test 2.7.452 → 2.7.454
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/src/common/assets/icons/fill/DownloadCsv.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DownloadCsv.js +30 -0
- package/dist/src/common/assets/icons/fill/DownloadPng.d.ts +4 -0
- package/dist/src/common/assets/icons/fill/DownloadPng.js +30 -0
- package/dist/src/common/assets/icons/fill/index.d.ts +2 -0
- package/dist/src/common/assets/icons/fill/index.js +4 -0
- package/dist/src/common/assets/icons/image/index.d.ts +1 -0
- package/dist/src/common/assets/icons/image/index.js +1 -0
- package/dist/src/common/assets/icons/line/DownloadCsv.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DownloadCsv.js +30 -0
- package/dist/src/common/assets/icons/line/DownloadPng.d.ts +4 -0
- package/dist/src/common/assets/icons/line/DownloadPng.js +30 -0
- package/dist/src/common/assets/icons/line/index.d.ts +2 -0
- package/dist/src/common/assets/icons/line/index.js +4 -0
- package/dist/src/common/styles/colorSet/PaletteColor_Dark.json +3 -1
- package/dist/src/common/styles/colorSet/PaletteColor_light.json +3 -1
- package/dist/src/common/styles/colorSet/SemanticColor.json +1 -1
- package/dist/src/common/styles/colorSet/UIColor.json +5 -1
- package/dist/src/common/styles/colorSet/index.d.ts +8 -0
- package/dist/src/common/styles/colorSet/ui-type.d.ts +4 -0
- package/dist/src/desktop/components/ChatBubbleListItem/ChatBubbleListItem.js +10 -4
- package/dist/src/desktop/components/PriceTextField/PriceTextField.d.ts +1 -1
- package/dist/src/desktop/components/PriceTextField/PriceTextField.js +7 -5
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/ContentsContainer.js +1 -0
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/Containers/ContentsContainer/variation/WTU.js +51 -7
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.d.ts +1 -1
- package/dist/src/desktop/layout/LayoutWT/ContainersBox/ContainersBox.js +4 -0
- package/dist/src/mobile/components/ChatBubbleListItem/ChatBubbleListItem.js +10 -4
- package/dist/src/mobile/components/PriceTextField/PriceTextField.d.ts +3 -2
- package/dist/src/mobile/components/PriceTextField/PriceTextField.js +11 -6
- 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 +4 -82
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItemForCCB.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/index.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/CompositionRenderer/index.js +8 -0
- package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForComposition.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForComposition.js +1 -1
- package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForDL.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/GridAutoRowEditor/GridAutoRowEditorForDL.js +2 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackground.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/compositionActionTypes.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/mocks.js +0 -2
- 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/components/ComponentBlock/ComponentBlockMatcherWithCCB.js +9 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +4 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +3 -19
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +1 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +16 -61
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +10 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/newUtils/group.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +7 -5
- 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 -1
- package/dist/src/sub/DynamicLayout/utils/groupHelpers.d.ts +57 -0
- package/dist/src/sub/DynamicLayout/utils/groupHelpers.js +86 -0
- package/dist/src/sub/DynamicLayout/utils/groupUtils.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/utils/groupUtils.js +18 -149
- package/package.json +2 -3
- package/release-note.md +2 -3
|
@@ -46,7 +46,6 @@ var parseStylePropShadow_1 = require("../../../../../../../DynamicLayout/section
|
|
|
46
46
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
47
47
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
48
48
|
var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
49
|
-
require("../components/S_CB_BoxWithShadow");
|
|
50
49
|
var S_HeightFitContentCover_1 = require("../components/S_HeightFitContentCover");
|
|
51
50
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
52
51
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
@@ -55,7 +54,7 @@ function Button(props) {
|
|
|
55
54
|
var _a, _b, _c, _d, _e;
|
|
56
55
|
var _f = (0, react_1.useContext)(DynamicLayout_1.dynamicLayoutContext), device = _f.device, mode = _f.mode;
|
|
57
56
|
var queryContext = (0, compositionQueryContext_1.useCCBQueryPath)();
|
|
58
|
-
var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _g = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _g.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _g.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _g.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _g.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _g.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _g.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, _h = props.CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE = _h.CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA = _h.CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW,
|
|
57
|
+
var index = props.index, CB_STYLE_PROP_COLOR = props.CB_STYLE_PROP_COLOR, _g = props.CB_CONTENT_PROP_CLINK, CB_CONTENT_PROP_CLINK_SPEC_SRC = _g.CB_CONTENT_PROP_CLINK_SPEC_SRC, CB_CONTENT_PROP_CLINK_SPEC_TYPE = _g.CB_CONTENT_PROP_CLINK_SPEC_TYPE, CB_CONTENT_PROP_CLINK_SPEC_NEWTAB = _g.CB_CONTENT_PROP_CLINK_SPEC_NEWTAB, CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC = _g.CB_CONTENT_PROP_CLINK_SPEC_INTERNALSRC, CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE = _g.CB_CONTENT_PROP_CLINK_SPEC_VALUETYPE, CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA = _g.CB_CONTENT_PROP_CLINK_SPEC_CONNECTDATA, _h = props.CB_CONTENT_PROP_TEXT, CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE = _h.CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA = _h.CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_CONTENT_PROP_TEXTOPTION = props.CB_CONTENT_PROP_TEXTOPTION, CB_STYLE_PROP_TEXT = props.CB_STYLE_PROP_TEXT;
|
|
59
58
|
var textSuffix = (_a = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_SUFFIX) !== null && _a !== void 0 ? _a : '';
|
|
60
59
|
var textPrefix = (_b = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_PREFIX) !== null && _b !== void 0 ? _b : '';
|
|
61
60
|
var textFormat = (_c = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_FORMAT) !== null && _c !== void 0 ? _c : 'NONE';
|
|
@@ -151,7 +150,7 @@ function Button(props) {
|
|
|
151
150
|
var _q = extractBorderStyles(propsStyle), borderNormalStyle = _q.borderStyleProps, cleanedNormalStyle = _q.remainingStyle;
|
|
152
151
|
// hover 스타일 분리
|
|
153
152
|
var _r = extractBorderStyles(propsHoverStyle), borderHoverStyle = _r.borderStyleProps, cleanedHoverStyle = _r.remainingStyle;
|
|
154
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), isEditModeAndHeightFitContent && (0, jsx_runtime_1.jsx)(S_HeightFitContentCover_1.S_HeightFitContentCover, { className:
|
|
153
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), isEditModeAndHeightFitContent && ((0, jsx_runtime_1.jsx)(S_HeightFitContentCover_1.S_HeightFitContentCover, { className: "height-fit-content-cover", bottomText: t('str_10106') })), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle, style: { paddingLeft: paddingLeft, paddingRight: paddingRight, paddingBottom: paddingBottom, paddingTop: paddingTop } }, { children: (0, jsx_runtime_1.jsx)(S_ShadowBox, __assign({ "$normalStyle": __assign(__assign(__assign({ height: '100%', display: 'flex', alignItems: "".concat(btnTextStyle.alignItems), overflowY: btnTextStyle.overflowY, scrollbarWidth: btnTextStyle.scrollbarWidth }, effectCssProperties), normalShadowStyle), borderNormalStyle), "$hoverStyle": __assign(__assign({}, hoverShadowStyle), borderHoverStyle) }, { children: (0, jsx_runtime_1.jsxs)(S_CB_Box_1.S_CB_Box, __assign({ onMouseLeave: function (e) {
|
|
155
154
|
e.currentTarget.classList.remove('hovered');
|
|
156
155
|
}, className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, btnTextStyle), cleanedNormalStyle), layoutStyle), btnColorStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word', cursor: CLINKCursor, overflowY: 'unset', scrollbarWidth: 'unset' }), hoverStyle: __assign(__assign(__assign(__assign({}, btnTextHoverStyle), cleanedHoverStyle), btnColorHoverStyle), { whiteSpace: 'pre-wrap', wordBreak: 'break-word' }), onClick: onClickCLINK }, { children: [textPrefix, textValue(), textSuffix] })) })) }))] }));
|
|
157
156
|
}
|
|
@@ -169,11 +168,11 @@ function extractBorderStyles(style) {
|
|
|
169
168
|
borderBottomRightRadius: borderBottomRightRadius,
|
|
170
169
|
borderStyle: borderStyle,
|
|
171
170
|
borderWidth: borderWidth,
|
|
172
|
-
borderColor: borderColor
|
|
171
|
+
borderColor: borderColor
|
|
173
172
|
};
|
|
174
173
|
return {
|
|
175
174
|
borderStyleProps: borderStyleProps,
|
|
176
|
-
remainingStyle: rest
|
|
175
|
+
remainingStyle: rest // border가 제거된 나머지 스타일
|
|
177
176
|
};
|
|
178
177
|
}
|
|
179
178
|
var S_ShadowBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n\n &:hover {\n ", "\n }\n"], ["\n ", "\n\n &:hover {\n ", "\n }\n"])), function (props) { return props.$normalStyle; }, function (props) { return props.$hoverStyle; });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type CB_CONTENTSCAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
3
2
|
import type { CB_STYLE_PROP_CONTENTSCAROUSELBUTTON_SPEC_PREVBTNSTYLE_TYPE, INSET_POSTIION, OUTSET_POSTIION } from './types';
|
|
3
|
+
import type { CB_CONTENTSCAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
4
4
|
import type { CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
5
5
|
type Props = CB_CONTENTSCAROUSEL_PROPERTIES_TYPE & IndexForIntersection & {
|
|
6
6
|
compositions: CB_CONTENTSCAROUSEL['compositions'];
|
|
@@ -69,7 +69,7 @@ var createComponent = function (type, getDesignType, getLocation, designType) {
|
|
|
69
69
|
function ContentsCarousel(props) {
|
|
70
70
|
var _a, _b;
|
|
71
71
|
var _c = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _c.device, mode = _c.mode, queryData = _c.queryData;
|
|
72
|
-
var compositions = props.compositions, index = props.index, _d = props.CB_CONTENT_PROP_CONTENTSCAROUSEL,
|
|
72
|
+
var compositions = props.compositions, index = props.index, _d = props.CB_CONTENT_PROP_CONTENTSCAROUSEL, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS = _d.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MDISPLAYCOUNTS = _d.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MDISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE = _d.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA = _d.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS = _d.CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_MANUALITEMS, CB_STYLE_PROP_CONTENTSCAROUSELDESIGN = props.CB_STYLE_PROP_CONTENTSCAROUSELDESIGN, CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD = props.CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD, CB_STYLE_PROP_CONTENTSCAROUSELBUTTON = props.CB_STYLE_PROP_CONTENTSCAROUSELBUTTON, CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR = props.CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_EFFECT_PROP_CONTENTSCAROUSEL_SPEC_TRANSITIONTYPE = props.CB_EFFECT_PROP_CONTENTSCAROUSEL.CB_EFFECT_PROP_CONTENTSCAROUSEL_SPEC_TRANSITIONTYPE;
|
|
73
73
|
var CB_STYLE_PROP_CONTENTSCAROUSEL = __assign(__assign(__assign(__assign({}, CB_STYLE_PROP_CONTENTSCAROUSELDESIGN), CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD), CB_STYLE_PROP_CONTENTSCAROUSELBUTTON), CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR);
|
|
74
74
|
var autoPlayEnabled = device === 'DESKTOP'
|
|
75
75
|
? CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD.CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD_SPEC_AUTOPLAYUSE
|
|
@@ -120,7 +120,9 @@ function ContentsCarousel(props) {
|
|
|
120
120
|
createNextButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
|
|
121
121
|
{
|
|
122
122
|
type: 'PROGRESSBAR',
|
|
123
|
-
position: customProgressbarNormalStyle.type === 'DESIGN4'
|
|
123
|
+
position: customProgressbarNormalStyle.type === 'DESIGN4'
|
|
124
|
+
? 'INSET_PROGRESS'
|
|
125
|
+
: 'INSET5',
|
|
124
126
|
designType: customProgressbarNormalStyle.type || 'NONE'
|
|
125
127
|
}
|
|
126
128
|
].filter(function (component) { return component !== undefined; });
|
|
@@ -40,7 +40,9 @@ var swiper_1 = require("swiper");
|
|
|
40
40
|
require("swiper/modules/navigation/navigation.min.css");
|
|
41
41
|
var react_2 = require("swiper/react");
|
|
42
42
|
var StyledSwiper_1 = __importDefault(require("../../../StyledSwiper/StyledSwiper"));
|
|
43
|
-
var ContentsCarouselCore = (0, react_1.forwardRef)(
|
|
43
|
+
var ContentsCarouselCore = (0, react_1.forwardRef)(
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
45
|
+
function (_a, ref) {
|
|
44
46
|
var styles = _a.styles, slidesPerView = _a.slidesPerView, children = _a.children, allowTouchMove = _a.allowTouchMove, displayCounts = _a.displayCounts, loop = _a.loop, props = __rest(_a, ["styles", "slidesPerView", "children", "allowTouchMove", "displayCounts", "loop"]);
|
|
45
47
|
var childrenArray = (0, react_1.useMemo)(function () {
|
|
46
48
|
return Array.isArray(children) ? children : [children];
|
|
@@ -66,24 +68,6 @@ var ContentsCarouselCore = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
66
68
|
// 슬라이드 수가 충분하면 원본 반환
|
|
67
69
|
return originalChildren;
|
|
68
70
|
}, [originalChildren, loop, slidesPerView]);
|
|
69
|
-
console.log('loopedChildren', loopedChildren);
|
|
70
|
-
// const slidesWithEmpty = useMemo(() => {
|
|
71
|
-
// const childrenArray = Array.isArray(children) ? children : [children];
|
|
72
|
-
// if (
|
|
73
|
-
// slidesPerView === styles.slidesPerGroup &&
|
|
74
|
-
// styles.slidesPerGroup &&
|
|
75
|
-
// styles.slidesPerGroup > 1
|
|
76
|
-
// ) {
|
|
77
|
-
// const remainder = childrenArray.length % styles.slidesPerGroup;
|
|
78
|
-
// if (remainder !== 0) {
|
|
79
|
-
// const emptyCount = styles.slidesPerGroup - remainder;
|
|
80
|
-
// return [...childrenArray, ...Array(emptyCount).fill(null)];
|
|
81
|
-
// }
|
|
82
|
-
// }
|
|
83
|
-
// return childrenArray;
|
|
84
|
-
// }, [children, slidesPerView, styles.slidesPerGroup]);
|
|
85
|
-
// const finalSlidesPerView = props.effect === 'cards' ? 1 : slidesPerView;
|
|
86
|
-
// const useAutoplay = !!styles.useAutoplay && Array.isArray(children) && children.length > 1;
|
|
87
71
|
return ((0, jsx_runtime_1.jsx)(StyledSwiper_1.default, __assign({ id: "styled-swiper-wrapper" }, { children: (0, jsx_runtime_1.jsx)(react_2.Swiper, __assign({ ref: ref, style: {
|
|
88
72
|
width: '100%',
|
|
89
73
|
height: '100%'
|
|
@@ -17,6 +17,7 @@ var elementPositions_1 = require("../../SlideBanner/hooks/elementPositions");
|
|
|
17
17
|
var useFlexGridLayout = function (_a) {
|
|
18
18
|
var components = _a.components;
|
|
19
19
|
var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
21
|
var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
|
|
21
22
|
var layoutRef = (0, react_1.useRef)(null);
|
|
22
23
|
var positionRefs = (0, react_1.useRef)({});
|
|
@@ -76,16 +77,6 @@ var useFlexGridLayout = function (_a) {
|
|
|
76
77
|
alignItems: isSOUTH ? 'flex-start' : isNORTH ? 'flex-end' : 'center',
|
|
77
78
|
justifyContent: isEAST ? 'flex-start' : isWEST ? 'flex-end' : 'center'
|
|
78
79
|
};
|
|
79
|
-
// // CCB의 중앙 위치 계산
|
|
80
|
-
// const ccbTop = parseFloat(ccbInset.top) || 0;
|
|
81
|
-
// const ccbRight = parseFloat(ccbInset.right) || 0;
|
|
82
|
-
// const ccbBottom = parseFloat(ccbInset.bottom) || 0;
|
|
83
|
-
// const ccbLeft = parseFloat(ccbInset.left) || 0;
|
|
84
|
-
// // CCB의 실제 크기와 중앙 위치 계산
|
|
85
|
-
// const ccbWidth = layoutSize.width - ccbLeft - ccbRight;
|
|
86
|
-
// const ccbHeight = layoutSize.height - ccbTop - ccbBottom;
|
|
87
|
-
// const ccbCenterX = ccbLeft + ccbWidth / 2;
|
|
88
|
-
// const ccbCenterY = ccbTop + ccbHeight / 2;
|
|
89
80
|
var pos = (0, elementPositions_1.getPosition)(position, designType, size, elementType);
|
|
90
81
|
return __assign(__assign({}, base), pos);
|
|
91
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type CB_LIST } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
3
2
|
import type { OUTSET_POSTIION, INSET_POSTIION, CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE } from './types';
|
|
3
|
+
import type { CB_LIST } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
4
4
|
import type { CB_LIST_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
5
5
|
type Props = CB_LIST_PROPERTIES_TYPE & IndexForIntersection & {
|
|
6
6
|
compositions: CB_LIST['compositions'];
|
|
@@ -22,6 +22,7 @@ exports.CustomPagination = void 0;
|
|
|
22
22
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
23
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
24
|
var paginationConfigs_1 = require("./paginationConfigs");
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25
26
|
var CustomPagination = function (_a) {
|
|
26
27
|
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, styles = _a.styles, style = _a.style, onPageClick = _a.onPageClick;
|
|
27
28
|
var getPageGroupStart = function (page) {
|
|
@@ -12,9 +12,9 @@ type Props = {
|
|
|
12
12
|
maxVisiblePages?: number;
|
|
13
13
|
size: 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
14
14
|
};
|
|
15
|
-
export declare function Design1({ total, current,
|
|
15
|
+
export declare function Design1({ total, current, primaryColor, secondaryColor, ellipsis, maxVisiblePages, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
16
16
|
export declare function Design2({ total, current, primaryColor, secondaryColor, ellipsis, maxVisiblePages, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
17
|
-
export declare function Design3({ total, current,
|
|
18
|
-
export declare function Design7({ total, current,
|
|
19
|
-
export declare function Design8({ total, current,
|
|
17
|
+
export declare function Design3({ total, current, primaryColor, secondaryColor, ellipsis, maxVisiblePages, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
18
|
+
export declare function Design7({ total, current, primaryColor, secondaryColor, size, onNext, onPrevious }: Props): JSX.Element;
|
|
19
|
+
export declare function Design8({ total, current, primaryColor, secondaryColor, size, onNext, onPrevious }: Props): JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -45,7 +45,7 @@ var components_1 = require("../../../../../../../../DynamicLayout/components");
|
|
|
45
45
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
46
46
|
var usePagination_1 = require("../hooks/usePagination");
|
|
47
47
|
function Design1(_a) {
|
|
48
|
-
var total = _a.total, current = _a.current,
|
|
48
|
+
var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
49
49
|
// ellipsis prop에 따라 렌더링할 페이지 목록 결정
|
|
50
50
|
var pagesToRender = ellipsis
|
|
51
51
|
? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
|
|
@@ -68,7 +68,7 @@ function Design2(_a) {
|
|
|
68
68
|
}
|
|
69
69
|
exports.Design2 = Design2;
|
|
70
70
|
function Design3(_a) {
|
|
71
|
-
var total = _a.total, current = _a.current,
|
|
71
|
+
var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
72
72
|
var pagesToRender = ellipsis
|
|
73
73
|
? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
|
|
74
74
|
: Array.from({ length: total }, function (_, i) { return i + 1; });
|
|
@@ -79,7 +79,7 @@ function Design3(_a) {
|
|
|
79
79
|
}
|
|
80
80
|
exports.Design3 = Design3;
|
|
81
81
|
function Design7(_a) {
|
|
82
|
-
var total = _a.total, current = _a.current,
|
|
82
|
+
var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, size = _a.size, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
83
83
|
var _b = LIST_PAGINATION_SIZES.DESIGN7[size], BUTTON_SIZE = _b.BUTTON_SIZE, SELECTED_TEXT_STYLE_THEME = _b.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _b.UNSELECTED_TEXT_STYLE_THEME, ICON_SIZE = _b.ICON_SIZE;
|
|
84
84
|
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_left", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", overrideIconColorHexHover: primaryColor }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
|
|
85
85
|
marginLeft: '8px',
|
|
@@ -88,7 +88,7 @@ function Design7(_a) {
|
|
|
88
88
|
}
|
|
89
89
|
exports.Design7 = Design7;
|
|
90
90
|
function Design8(_a) {
|
|
91
|
-
var total = _a.total, current = _a.current,
|
|
91
|
+
var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, size = _a.size, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
92
92
|
var _b = LIST_PAGINATION_SIZES.DESIGN8[size], BUTTON_SIZE = _b.BUTTON_SIZE, SELECTED_TEXT_STYLE_THEME = _b.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _b.UNSELECTED_TEXT_STYLE_THEME, ICON_SIZE = _b.ICON_SIZE;
|
|
93
93
|
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_left", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", overrideIconColorHexHover: primaryColor }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
|
|
94
94
|
marginLeft: '8px',
|
|
@@ -312,14 +312,7 @@ var S_Page = styled_components_1.default.button(templateObject_3 || (templateObj
|
|
|
312
312
|
var size = _a.size;
|
|
313
313
|
return (typeof size === 'number' ? "".concat(size, "px") : size || '32px');
|
|
314
314
|
});
|
|
315
|
-
var
|
|
316
|
-
var $color = _a.$color;
|
|
317
|
-
return $color;
|
|
318
|
-
}, function (_a) {
|
|
319
|
-
var theme = _a.theme;
|
|
320
|
-
return theme.desktopFontSize.caption1;
|
|
321
|
-
});
|
|
322
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n ", ";\n"], ["\n ", ";\n ", ";\n"])), function (_a) {
|
|
315
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n ", ";\n"], ["\n ", ";\n ", ";\n"])), function (_a) {
|
|
323
316
|
var styleTheme = _a.styleTheme;
|
|
324
317
|
return styleTheme &&
|
|
325
318
|
{
|
|
@@ -336,15 +329,15 @@ var S_TextLabel = styled_components_1.default.div(templateObject_5 || (templateO
|
|
|
336
329
|
var colorTheme = _a.colorTheme;
|
|
337
330
|
return colorTheme && { sysTextWhite: sysTextWhite, sysTextBlack: sysTextBlack }[colorTheme];
|
|
338
331
|
});
|
|
339
|
-
var sysTextWhite = (0, styled_components_1.css)(
|
|
332
|
+
var sysTextWhite = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
340
333
|
var theme = _a.theme;
|
|
341
334
|
return theme.ui_cpnt_textlabel_sys_white;
|
|
342
335
|
});
|
|
343
|
-
var sysTextBlack = (0, styled_components_1.css)(
|
|
336
|
+
var sysTextBlack = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
344
337
|
var theme = _a.theme;
|
|
345
338
|
return theme.ui_cpnt_textlabel_sys_black;
|
|
346
339
|
});
|
|
347
|
-
var body2Bold = (0, styled_components_1.css)(
|
|
340
|
+
var body2Bold = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
348
341
|
var theme = _a.theme;
|
|
349
342
|
return theme.desktopFontSize.body2;
|
|
350
343
|
}, function (_a) {
|
|
@@ -354,7 +347,7 @@ var body2Bold = (0, styled_components_1.css)(templateObject_8 || (templateObject
|
|
|
354
347
|
var theme = _a.theme;
|
|
355
348
|
return theme.desktopLineHeight.body2;
|
|
356
349
|
});
|
|
357
|
-
var body2Regular = (0, styled_components_1.css)(
|
|
350
|
+
var body2Regular = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
358
351
|
var theme = _a.theme;
|
|
359
352
|
return theme.desktopFontSize.body2;
|
|
360
353
|
}, function (_a) {
|
|
@@ -364,7 +357,7 @@ var body2Regular = (0, styled_components_1.css)(templateObject_9 || (templateObj
|
|
|
364
357
|
var theme = _a.theme;
|
|
365
358
|
return theme.desktopLineHeight.body2;
|
|
366
359
|
});
|
|
367
|
-
var body1Bold = (0, styled_components_1.css)(
|
|
360
|
+
var body1Bold = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
368
361
|
var theme = _a.theme;
|
|
369
362
|
return theme.desktopFontSize.body1;
|
|
370
363
|
}, function (_a) {
|
|
@@ -374,7 +367,7 @@ var body1Bold = (0, styled_components_1.css)(templateObject_10 || (templateObjec
|
|
|
374
367
|
var theme = _a.theme;
|
|
375
368
|
return theme.desktopLineHeight.body1;
|
|
376
369
|
});
|
|
377
|
-
var body1Regular = (0, styled_components_1.css)(
|
|
370
|
+
var body1Regular = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
378
371
|
var theme = _a.theme;
|
|
379
372
|
return theme.desktopFontSize.body1;
|
|
380
373
|
}, function (_a) {
|
|
@@ -384,7 +377,7 @@ var body1Regular = (0, styled_components_1.css)(templateObject_11 || (templateOb
|
|
|
384
377
|
var theme = _a.theme;
|
|
385
378
|
return theme.desktopLineHeight.body1;
|
|
386
379
|
});
|
|
387
|
-
var caption1Bold = (0, styled_components_1.css)(
|
|
380
|
+
var caption1Bold = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
388
381
|
var theme = _a.theme;
|
|
389
382
|
return theme.desktopFontSize.caption1;
|
|
390
383
|
}, function (_a) {
|
|
@@ -394,7 +387,7 @@ var caption1Bold = (0, styled_components_1.css)(templateObject_12 || (templateOb
|
|
|
394
387
|
var theme = _a.theme;
|
|
395
388
|
return theme.desktopLineHeight.caption1;
|
|
396
389
|
});
|
|
397
|
-
var caption1Regular = (0, styled_components_1.css)(
|
|
390
|
+
var caption1Regular = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
398
391
|
var theme = _a.theme;
|
|
399
392
|
return theme.desktopFontSize.caption1;
|
|
400
393
|
}, function (_a) {
|
|
@@ -404,7 +397,7 @@ var caption1Regular = (0, styled_components_1.css)(templateObject_13 || (templat
|
|
|
404
397
|
var theme = _a.theme;
|
|
405
398
|
return theme.desktopLineHeight.caption1;
|
|
406
399
|
});
|
|
407
|
-
var caption2Bold = (0, styled_components_1.css)(
|
|
400
|
+
var caption2Bold = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
408
401
|
var theme = _a.theme;
|
|
409
402
|
return theme.desktopFontSize.caption2;
|
|
410
403
|
}, function (_a) {
|
|
@@ -414,7 +407,7 @@ var caption2Bold = (0, styled_components_1.css)(templateObject_14 || (templateOb
|
|
|
414
407
|
var theme = _a.theme;
|
|
415
408
|
return theme.desktopLineHeight.caption2;
|
|
416
409
|
});
|
|
417
|
-
var caption2Regular = (0, styled_components_1.css)(
|
|
410
|
+
var caption2Regular = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
418
411
|
var theme = _a.theme;
|
|
419
412
|
return theme.desktopFontSize.caption2;
|
|
420
413
|
}, function (_a) {
|
|
@@ -424,44 +417,6 @@ var caption2Regular = (0, styled_components_1.css)(templateObject_15 || (templat
|
|
|
424
417
|
var theme = _a.theme;
|
|
425
418
|
return theme.desktopLineHeight.caption2;
|
|
426
419
|
});
|
|
427
|
-
function generatePaginationPages(total, current) {
|
|
428
|
-
// 총 페이지가 10개 이하면 모든 페이지 표시
|
|
429
|
-
if (total <= 10) {
|
|
430
|
-
return Array.from({ length: total }, function (_, i) { return i + 1; });
|
|
431
|
-
}
|
|
432
|
-
var pages = [];
|
|
433
|
-
// 항상 첫 페이지 표시
|
|
434
|
-
pages.push(1);
|
|
435
|
-
// 현재 페이지가 1~3 범위인 경우
|
|
436
|
-
if (current <= 3) {
|
|
437
|
-
// 2, 3 표시 (1은 이미 추가됨)
|
|
438
|
-
pages.push(2, 3);
|
|
439
|
-
if (total > 3) {
|
|
440
|
-
pages.push('...');
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
// 현재 페이지가 마지막 3개 범위인 경우
|
|
444
|
-
else if (current >= total - 2) {
|
|
445
|
-
pages.push('...');
|
|
446
|
-
// 마지막 3개 페이지 표시
|
|
447
|
-
pages.push(total - 2, total - 1);
|
|
448
|
-
}
|
|
449
|
-
// 중간 범위인 경우
|
|
450
|
-
else {
|
|
451
|
-
pages.push('...');
|
|
452
|
-
// 현재 페이지와 양옆 페이지 표시
|
|
453
|
-
pages.push(current - 1, current, current + 1);
|
|
454
|
-
pages.push('...');
|
|
455
|
-
}
|
|
456
|
-
// 항상 마지막 페이지 표시 (마지막 3개 범위가 아닌 경우에만)
|
|
457
|
-
if (current < total - 2 || current === 1) {
|
|
458
|
-
pages.push(total);
|
|
459
|
-
}
|
|
460
|
-
else if (current >= total - 2) {
|
|
461
|
-
pages.push(total);
|
|
462
|
-
}
|
|
463
|
-
return pages;
|
|
464
|
-
}
|
|
465
420
|
var LIST_PAGINATION_SIZES = {
|
|
466
421
|
DESIGN1: {
|
|
467
422
|
SMALL: {
|
|
@@ -564,4 +519,4 @@ var LIST_PAGINATION_SIZES = {
|
|
|
564
519
|
}
|
|
565
520
|
}
|
|
566
521
|
};
|
|
567
|
-
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
|
|
522
|
+
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;
|
|
@@ -17,6 +17,7 @@ var elementPositions_1 = require("./elementPositions");
|
|
|
17
17
|
var useFlexGridLayout = function (_a) {
|
|
18
18
|
var components = _a.components;
|
|
19
19
|
var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
21
|
var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
|
|
21
22
|
var layoutRef = (0, react_1.useRef)(null);
|
|
22
23
|
var positionRefs = (0, react_1.useRef)({});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type CB_SLIDEBANNER } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
3
2
|
import type { CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE, INSET_POSTIION, OUTSET_POSTIION } from './types';
|
|
3
|
+
import type { CB_SLIDEBANNER } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
|
|
4
4
|
import type { CB_SLIDEBANNER_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
5
5
|
type Props = CB_SLIDEBANNER_PROPERTIES_TYPE & IndexForIntersection & {
|
|
6
6
|
compositions: CB_SLIDEBANNER['compositions'];
|
|
@@ -45,12 +45,13 @@ var CustomNavigationNextBtn_1 = require("./components/CustomNavigationNextBtn");
|
|
|
45
45
|
var CustomNavigationPrevBtn_1 = require("./components/CustomNavigationPrevBtn");
|
|
46
46
|
var CustomPagination_1 = require("./components/CustomPagination");
|
|
47
47
|
var CustomProgressbar_1 = require("./components/CustomProgressbar");
|
|
48
|
-
require("./hooks/elementPositions");
|
|
49
48
|
var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
|
|
50
49
|
var useSwiper_1 = require("./hooks/useSwiper");
|
|
51
50
|
var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
|
|
52
51
|
var slideBannerUtils_1 = require("./slideBannerUtils");
|
|
53
|
-
var createComponent = function (type, getDesignType, getLocation, designType,
|
|
52
|
+
var createComponent = function (type, getDesignType, getLocation, designType,
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
54
|
+
size) {
|
|
54
55
|
if (size === void 0) { size = 'MEDIUM'; }
|
|
55
56
|
return function (normalStyle, hoverStyle, isHovered, size) {
|
|
56
57
|
if (size === void 0) { size = 'MEDIUM'; }
|
|
@@ -71,7 +72,7 @@ var createComponent = function (type, getDesignType, getLocation, designType, si
|
|
|
71
72
|
function SlideBanner(props) {
|
|
72
73
|
var _a;
|
|
73
74
|
var _b = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _b.device, mode = _b.mode, queryData = _b.queryData;
|
|
74
|
-
var index = props.index, _c = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA, CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, CB_STYLE_PROP_SLIDEBANNERDESIGN = props.CB_STYLE_PROP_SLIDEBANNERDESIGN, CB_STYLE_PROP_SLIDEBANNERPAGINATION = props.CB_STYLE_PROP_SLIDEBANNERPAGINATION, CB_STYLE_PROP_SLIDEBANNERBUTTON = props.CB_STYLE_PROP_SLIDEBANNERBUTTON, CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD = props.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD, CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR = props.CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE = props.CB_EFFECT_PROP_SLIDEBANNER.CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE
|
|
75
|
+
var index = props.index, _c = props.CB_CONTENT_PROP_SLIDEBANNER, CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE, CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA, CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS = _c.CB_CONTENT_PROP_SLIDEBANNER_SPEC_MANUALITEMS, CB_STYLE_PROP_SLIDEBANNERDESIGN = props.CB_STYLE_PROP_SLIDEBANNERDESIGN, CB_STYLE_PROP_SLIDEBANNERPAGINATION = props.CB_STYLE_PROP_SLIDEBANNERPAGINATION, CB_STYLE_PROP_SLIDEBANNERBUTTON = props.CB_STYLE_PROP_SLIDEBANNERBUTTON, CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD = props.CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD, CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR = props.CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE = props.CB_EFFECT_PROP_SLIDEBANNER.CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE;
|
|
75
76
|
var compositions = props.compositions;
|
|
76
77
|
var CB_STYLE_PROP_SLIDEBANNER = __assign(__assign(__assign(__assign(__assign({}, CB_STYLE_PROP_SLIDEBANNERDESIGN), CB_STYLE_PROP_SLIDEBANNERPAGINATION), CB_STYLE_PROP_SLIDEBANNERBUTTON), CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD), CB_STYLE_PROP_SLIDEBANNERPROGRESSBAR);
|
|
77
78
|
var autoPlayEnabled = device === 'DESKTOP'
|
|
@@ -118,7 +119,12 @@ function SlideBanner(props) {
|
|
|
118
119
|
createPrevButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
|
|
119
120
|
createNextButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
|
|
120
121
|
createPagination(customPaginationNormalStyle, customPaginationHoverStyle, isHovered),
|
|
121
|
-
{
|
|
122
|
+
{
|
|
123
|
+
type: 'PROGRESSBAR',
|
|
124
|
+
position: customProgressbarNormalStyle.type === 'DESIGN4'
|
|
125
|
+
? 'INSET_PROGRESS'
|
|
126
|
+
: 'INSET5'
|
|
127
|
+
}
|
|
122
128
|
].filter(function (component) { return component !== undefined; });
|
|
123
129
|
var _l = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _l.layoutRef, positionRefs = _l.positionRefs, ccbInset = _l.ccbInset, componentGroups = _l.componentGroups, getPositionStyle = _l.getPositionStyle, getComponentGroupLayout = _l.getComponentGroupLayout;
|
|
124
130
|
var renderElements = function (component, positionStyle) {
|
|
@@ -17,6 +17,7 @@ var elementPositions_1 = require("./elementPositions");
|
|
|
17
17
|
var useFlexGridLayout = function (_a) {
|
|
18
18
|
var components = _a.components;
|
|
19
19
|
var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
21
|
var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
|
|
21
22
|
var layoutRef = (0, react_1.useRef)(null);
|
|
22
23
|
var positionRefs = (0, react_1.useRef)({});
|
|
@@ -29,7 +29,6 @@ var textUtil_1 = require("../../../../newUtils/textUtil");
|
|
|
29
29
|
var util_1 = require("../../../../util");
|
|
30
30
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
31
31
|
var S_CB_Box_1 = require("../components/S_CB_Box");
|
|
32
|
-
require("../components/S_CB_BoxWithShadow");
|
|
33
32
|
var S_HeightFitContentCover_1 = require("../components/S_HeightFitContentCover");
|
|
34
33
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
35
34
|
var useCLINK_1 = __importDefault(require("../hooks/useCLINK"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentBlock } from '../types';
|
|
2
|
-
import type { Layout, LayoutItem } from 'publ-echo
|
|
2
|
+
import type { Layout, LayoutItem } from 'publ-echo/dist/lib';
|
|
3
3
|
export interface LayoutItemWithGroupType extends LayoutItem {
|
|
4
4
|
childrenIds: string[];
|
|
5
5
|
keepInLastIndex?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentBlock } from '../types';
|
|
2
2
|
import type { PlaceRestrictionType } from '../../../../DynamicLayout/types';
|
|
3
|
-
import type { ZOrder } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
4
3
|
import type { LayoutItem } from 'publ-echo/dist/lib';
|
|
4
|
+
import type { ZOrder } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
5
5
|
export declare function getHeightFitContent(cb: ComponentBlock): {
|
|
6
6
|
mobile: boolean;
|
|
7
7
|
desktop: boolean;
|
|
@@ -30,7 +30,8 @@ function getHeightFitContent(cb) {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
if (cb.componentBlockCode === types_1.CB_ALL_CODES.CB_LIST) {
|
|
33
|
-
var desktop = (_e = cb.jsonProperties.data.CB_STYLE_PROP_CONTENTSLISTDESIGN
|
|
33
|
+
var desktop = (_e = cb.jsonProperties.data.CB_STYLE_PROP_CONTENTSLISTDESIGN
|
|
34
|
+
.CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT) !== null && _e !== void 0 ? _e : true;
|
|
34
35
|
var mobile = (_f = cb.jsonProperties.data.CB_STYLE_PROP_CONTENTSLISTDESIGN['CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT:MOBILE']) !== null && _f !== void 0 ? _f : desktop;
|
|
35
36
|
return {
|
|
36
37
|
desktop: desktop,
|
|
@@ -39,12 +40,13 @@ function getHeightFitContent(cb) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
desktop: false,
|
|
42
|
-
mobile: false
|
|
43
|
+
mobile: false
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
exports.getHeightFitContent = getHeightFitContent;
|
|
46
47
|
function parsePlacement(components, zOrders, placementRestriction) {
|
|
47
48
|
if (!zOrders) {
|
|
49
|
+
// eslint-disable-next-line no-console
|
|
48
50
|
console.error('Z-ORDER NOT FOUND');
|
|
49
51
|
}
|
|
50
52
|
return components.reduce(function (acc, cur) {
|
|
@@ -70,7 +72,7 @@ function parsePropPlacement(props, id, cbCode, zOrders, heightFitContent, cbRest
|
|
|
70
72
|
minH: (_a = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.rowHMin) !== null && _a !== void 0 ? _a : 1,
|
|
71
73
|
minW: (_b = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.columnWMin) !== null && _b !== void 0 ? _b : 1,
|
|
72
74
|
resizeHandles: getResizeHandles(heightFitContent.desktop),
|
|
73
|
-
heightFitContent: heightFitContent.desktop
|
|
75
|
+
heightFitContent: heightFitContent.desktop
|
|
74
76
|
};
|
|
75
77
|
var mobileLayout = {
|
|
76
78
|
i: id.toString(),
|
|
@@ -83,7 +85,7 @@ function parsePropPlacement(props, id, cbCode, zOrders, heightFitContent, cbRest
|
|
|
83
85
|
minH: (_c = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.rowHMin) !== null && _c !== void 0 ? _c : 1,
|
|
84
86
|
minW: (_d = cbRestriction === null || cbRestriction === void 0 ? void 0 : cbRestriction.mobileColumnWMin) !== null && _d !== void 0 ? _d : 1,
|
|
85
87
|
heightFitContent: heightFitContent.mobile,
|
|
86
|
-
resizeHandles: getResizeHandles(heightFitContent.mobile)
|
|
88
|
+
resizeHandles: getResizeHandles(heightFitContent.mobile)
|
|
87
89
|
};
|
|
88
90
|
return {
|
|
89
91
|
mobileLayout: mobileLayout,
|
|
@@ -101,6 +103,6 @@ function getResizeHandles(heightFitContent) {
|
|
|
101
103
|
if (heightFitContent) {
|
|
102
104
|
return ['e', 'w'];
|
|
103
105
|
}
|
|
104
|
-
return [
|
|
106
|
+
return ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'];
|
|
105
107
|
}
|
|
106
108
|
exports.default = parsePlacement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ISection } from '../types';
|
|
3
|
-
import type { Layout } from 'publ-echo
|
|
3
|
+
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
4
4
|
export type LayoutsType = {
|
|
5
5
|
sm: Layout;
|
|
6
6
|
lg: Layout;
|
|
@@ -224,7 +224,7 @@ var FlexGridCustomSection = (0, react_1.forwardRef)(function CustomSection(props
|
|
|
224
224
|
// onToggleGBPinned={onToggleGBPinned}
|
|
225
225
|
isEditMode: false }, child.blockId)); }) })) })) })) })) }));
|
|
226
226
|
});
|
|
227
|
-
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(\n ", ",\n minmax(", ", auto)\n );\n padding: 10px 10px;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(\n ", ",\n minmax(", ", auto)\n );\n padding: 10px 10px;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(props.rowHeight, "px"); });
|
|
227
|
+
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n grid-template-rows: repeat(\n ", ",\n minmax(", ", auto)\n );\n padding: 10px 10px;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", minmax(0, 1fr));\n grid-template-rows: repeat(\n ", ",\n minmax(", ", auto)\n );\n padding: 10px 10px;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(props.rowHeight, "px"); });
|
|
228
228
|
var S_SectionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
229
229
|
exports.default = react_1.default.memo(FlexGridCustomSection);
|
|
230
230
|
function getDefensiveFontSize(device, width) {
|
|
@@ -8,7 +8,7 @@ import type { CB_STYLE_PROP_BGOVERLAY_SPECS } from './sections/CustomSection/uti
|
|
|
8
8
|
import type { CB_STYLE_PROP_BORDER_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropBorder';
|
|
9
9
|
import type { CB_STYLE_PROP_SHADOW_SPECS } from './sections/CustomSection/util/stylePropParsers/parseStylePropShadow';
|
|
10
10
|
import type { CCB_VALUE_TYPE, COMPOSITION_VALUE_TYPE } from './sections/CustomSection/util/types';
|
|
11
|
-
import type { Block, ZOrder } from 'publ-echo
|
|
11
|
+
import type { Block, ZOrder } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
12
12
|
import type { Ref } from 'react';
|
|
13
13
|
export { TypeOfSectionAction };
|
|
14
14
|
export type TypeOfSectionManifestSchema = 'BASE_INTRO' | 'BASE_CONTENTS' | 'BASE_CONTENTS_CAROUSEL' | 'BASE_FOOTER' | 'BASE_INFO_BOX' | 'EXP_IFRAME' | 'PRG_MEMBERSHIP_DISPLAY' | 'CUSTOM';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Block } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
2
|
+
export declare function findAllChildrenCbIds(block: Block, targetGroupId: string): number[];
|
|
3
|
+
export declare function gridAreaObjToString(area: {
|
|
4
|
+
rowStart: number;
|
|
5
|
+
colStart: number;
|
|
6
|
+
rowEnd: number;
|
|
7
|
+
colEnd: number;
|
|
8
|
+
}): string;
|
|
9
|
+
export declare function getGridAreaFromGroup(position: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
cols: number;
|
|
13
|
+
rows: number;
|
|
14
|
+
}): {
|
|
15
|
+
rowStart: number;
|
|
16
|
+
colStart: number;
|
|
17
|
+
rowEnd: number;
|
|
18
|
+
colEnd: number;
|
|
19
|
+
};
|
|
20
|
+
interface GridArea {
|
|
21
|
+
rowStart: number;
|
|
22
|
+
colStart: number;
|
|
23
|
+
rowEnd: number;
|
|
24
|
+
colEnd: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* grid-area 문자열을 파싱하여 객체로 변환합니다.
|
|
28
|
+
* 예: "1 / 2 / 3 / 4" => { rowStart: 1, colStart: 2, rowEnd: 3, colEnd: 4 }
|
|
29
|
+
*/
|
|
30
|
+
export declare function parseGridArea(gridArea: string): GridArea;
|
|
31
|
+
/**
|
|
32
|
+
* 부모 그룹 영역을 기준으로 컴포넌트의 상대적 위치를 계산합니다.
|
|
33
|
+
* 예: 부모가 row 21에서 시작하고 컴포넌트가 row 21에 있다면, 상대적으로는 row 1에 위치하게 됩니다.
|
|
34
|
+
*/
|
|
35
|
+
export declare function calculateRelativeGridArea(componentArea: {
|
|
36
|
+
rowStart: number;
|
|
37
|
+
colStart: number;
|
|
38
|
+
rowEnd: number;
|
|
39
|
+
colEnd: number;
|
|
40
|
+
}, parentArea: {
|
|
41
|
+
rowStart: number;
|
|
42
|
+
colStart: number;
|
|
43
|
+
rowEnd: number;
|
|
44
|
+
colEnd: number;
|
|
45
|
+
}): {
|
|
46
|
+
rowStart: number;
|
|
47
|
+
colStart: number;
|
|
48
|
+
rowEnd: number;
|
|
49
|
+
colEnd: number;
|
|
50
|
+
};
|
|
51
|
+
export declare function getMaxHeight(props: {
|
|
52
|
+
cols: number;
|
|
53
|
+
rows: number;
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
}, rowHeight: number): number;
|
|
57
|
+
export {};
|