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
|
@@ -89,6 +89,7 @@ var ContainersBox = function (_a) {
|
|
|
89
89
|
WTT_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
90
90
|
WTT_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
91
91
|
WTU_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
92
|
+
WTU_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
92
93
|
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
93
94
|
WTW_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
94
95
|
WTX_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
@@ -138,6 +139,7 @@ var ContainersBox = function (_a) {
|
|
|
138
139
|
WTT_1: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
139
140
|
WTT_2: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
140
141
|
WTU_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
142
|
+
WTU_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
141
143
|
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
142
144
|
WTW_1: ((0, jsx_runtime_1.jsx)(Containers_1.PageMenuContainer, { pageMenuType: "top_page_menu", pageMenuContent: pageMenuContent, containerColor: containerColor, areaColor: areaColor })),
|
|
143
145
|
WTX_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
@@ -187,6 +189,7 @@ var ContainersBox = function (_a) {
|
|
|
187
189
|
WTT_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
188
190
|
WTT_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
189
191
|
WTU_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
192
|
+
WTU_2: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
190
193
|
WTV_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
191
194
|
WTW_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}),
|
|
192
195
|
WTX_1: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})
|
|
@@ -236,6 +239,7 @@ var ContainersBox = function (_a) {
|
|
|
236
239
|
WTT_1: '',
|
|
237
240
|
WTT_2: '',
|
|
238
241
|
WTU_1: '',
|
|
242
|
+
WTU_2: '',
|
|
239
243
|
WTV_1: '',
|
|
240
244
|
WTW_1: '',
|
|
241
245
|
WTX_1: ''
|
|
@@ -138,7 +138,7 @@ function ChatBubbleListItem(_a) {
|
|
|
138
138
|
}
|
|
139
139
|
setIsContextMenuOpen(false);
|
|
140
140
|
};
|
|
141
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_ChatBubbleListItem, __assign({ "x-pds-name": "ChatBubbleListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isMe: isMe }, { children: [hasLeftSpacing ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isProfileImageShow ? ((0, jsx_runtime_1.jsx)(S_ImageViewWrapper, __assign({ isOtherAvatarImpact: styleTheme === 'other_avatar_impact', colorTheme: colorTheme }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width: styleTheme === 'other_avatar_impact' ? 36 : 38 }) }))) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" })) })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [isTitleTextShow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme: titleTextColorTheme }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" })] })), (0, jsx_runtime_1.jsxs)(S_ChatBubbleBox, __assign({ isMe: isMe }, { children: [(0, jsx_runtime_1.jsxs)(S_ChatBubbleWrapper, __assign({ isMe: isMe }, { children: [(0, jsx_runtime_1.jsxs)(S_BubbleWrapper, { children: [isMe && ((0, jsx_runtime_1.jsxs)(S_Box, {
|
|
141
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(S_ChatBubbleListItem, __assign({ "x-pds-name": "ChatBubbleListItem", "x-pds-element-type": "component", "x-pds-device-type": "mobile", isMe: isMe }, { children: [hasLeftSpacing ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isProfileImageShow ? ((0, jsx_runtime_1.jsx)(S_ImageViewWrapper, __assign({ isOtherAvatarImpact: styleTheme === 'other_avatar_impact', colorTheme: colorTheme }, { children: (0, jsx_runtime_1.jsx)(hybrid_1.ImageView, { shapeType: "circular", ratio: "1_1", scaleType: "cover", src: imageSrc, width: styleTheme === 'other_avatar_impact' ? 36 : 38 }) }))) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_g", spacingType: "width" })) })) : ((0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })), (0, jsx_runtime_1.jsxs)(S_RightBox, { children: [isTitleTextShow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: titleText, styleTheme: "caption1Bold", colorTheme: titleTextColorTheme }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_b" })] })), (0, jsx_runtime_1.jsxs)(S_ChatBubbleBox, __assign({ isMe: isMe }, { children: [(0, jsx_runtime_1.jsxs)(S_ChatBubbleWrapper, __assign({ isMe: isMe }, { children: [(0, jsx_runtime_1.jsxs)(S_BubbleWrapper, { children: [isMe && ((0, jsx_runtime_1.jsxs)(S_Box, __assign({ hasBottomElement: !!labelText || !!timeMode }, { children: [(0, jsx_runtime_1.jsx)(S_DownloadIconWrapper, __assign({ isMe: isMe }, { children: downloadIBtnMode === 'use' && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { shapeType: "circular", iconFillType: "fill", baseColorKey: "ui_cpnt_list_chatbubble_download_button_base", iconColorKey: "ui_cpnt_button_icon_white", iconSize: 16, iconName: "ic_download", onClick: onClickDownloadIBtn })) })), (0, jsx_runtime_1.jsxs)(S_TimeWrapper, __assign({ isMe: isMe }, { children: [labelText && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: labelText, styleTheme: "caption2Bold", colorTheme: "sysTextTertiary" })), timeMode === 'use' && timeText && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" }))] }))] }))), (0, jsx_runtime_1.jsx)(ChatBubble_1.default, __assign({ colorTheme: colorTheme, tailType: chatBubbleTailType[styleTheme] }, { children: children })), !isMe && ((0, jsx_runtime_1.jsxs)(S_Box, __assign({ hasBottomElement: !!labelText || !!timeMode }, { children: [(0, jsx_runtime_1.jsx)(S_DownloadIconWrapper, __assign({ isMe: isMe }, { children: downloadIBtnMode === 'use' && ((0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { shapeType: "circular", iconFillType: "fill", baseColorKey: "ui_cpnt_list_chatbubble_download_button_base", iconColorKey: "ui_cpnt_button_icon_white", iconSize: 16, iconName: "ic_download", onClick: onClickDownloadIBtn })) })), (0, jsx_runtime_1.jsxs)(S_TimeWrapper, __assign({ isMe: isMe }, { children: [labelText && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: labelText, styleTheme: "caption2Bold", colorTheme: "sysTextTertiary" })), timeMode === 'use' && timeText && ((0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: timeText, styleTheme: "caption2Regular", colorTheme: "sysTextTertiary", singleLineMode: "use" }))] }))] })))] }), (0, jsx_runtime_1.jsx)(components_1.ReactionRow, { isMe: isMe, downloadIBtnMode: downloadIBtnMode, reactionBtnMode: reactionBtnMode, reactionBtnText: reactionBtnText, reactionArray: reactionArray, reactionBubblePosition: reactionBubblePosition, onClickReactionBtn: onClickReactionBtn })] })), hoverMode === 'use' && !isMe && ((0, jsx_runtime_1.jsx)(S_SeeMoreButton, __assign({ isContextMenuOpen: isContextMenuOpen, hoverMode: hoverMode, ref: contextMenuRef }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: "xsmall", iconFillType: "fill", iconSize: 20, iconName: "ic_more", baseColorKey: "ui_cpnt_button_fill_base_transparent", iconColorKey: "ui_cpnt_button_icon_enabled", onClick: handleMoreButtonClick }) })))] }))] }), (0, jsx_runtime_1.jsx)(Popup_1.PopupProvider, { children: (0, jsx_runtime_1.jsx)(Popup_1.Popup, __assign({ targetRef: contextMenuRef, isOpen: isContextMenuOpen, placement: "top-end", wrapperHeight: rect === null || rect === void 0 ? void 0 : rect.height, onClickOutside: function () { return setIsContextMenuOpen(false); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, { children: contextMenuOptionArray === null || contextMenuOptionArray === void 0 ? void 0 : contextMenuOptionArray.map(function (el) { return ((0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, onClick: handleContextMenuItemClick, state: contextMenuState }, el.value)); }) }) })) })] })) }));
|
|
142
142
|
}
|
|
143
143
|
var MyChatBubbleListItem = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), function (_a) {
|
|
144
144
|
var theme = _a.theme;
|
|
@@ -164,14 +164,17 @@ var S_ImageViewWrapper = styled_components_1.default.div(templateObject_5 || (te
|
|
|
164
164
|
return (isOtherAvatarImpact ? ImageViewBrandPrimary : ImageViewDefault);
|
|
165
165
|
});
|
|
166
166
|
var S_RightBox = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
167
|
-
var S_DownloadIconWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n"], ["\n margin-left: ", ";\n margin-right: ", ";\n"])), function (_a) {
|
|
167
|
+
var S_DownloadIconWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n margin-left: ", ";\n margin-right: ", ";\n"], ["\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n margin-left: ", ";\n margin-right: ", ";\n"])), function (_a) {
|
|
168
168
|
var isMe = _a.isMe, theme = _a.theme;
|
|
169
169
|
return !isMe && theme.spacing.spacingB;
|
|
170
170
|
}, function (_a) {
|
|
171
171
|
var isMe = _a.isMe, theme = _a.theme;
|
|
172
172
|
return isMe && theme.spacing.spacingB;
|
|
173
173
|
});
|
|
174
|
-
var S_Box = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content:
|
|
174
|
+
var S_Box = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: ", ";\n"])), function (_a) {
|
|
175
|
+
var hasBottomElement = _a.hasBottomElement;
|
|
176
|
+
return (hasBottomElement ? 'space-between' : 'center');
|
|
177
|
+
});
|
|
175
178
|
var S_ChatBubbleBox = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n\n ", ";\n"], ["\n display: flex;\n justify-content: space-between;\n\n ", ";\n"])), function (_a) {
|
|
176
179
|
var isMe = _a.isMe;
|
|
177
180
|
return isMe && MyChatBubble;
|
|
@@ -181,7 +184,7 @@ var S_ChatBubbleWrapper = styled_components_1.default.div(templateObject_11 || (
|
|
|
181
184
|
var isMe = _a.isMe;
|
|
182
185
|
return isMe && 'flex-end';
|
|
183
186
|
});
|
|
184
|
-
var S_TimeWrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: ", ";\n align-self: ", ";\n display: flex;\n flex-direction: column;\n padding-left: ", ";\n padding-right: ", ";\n"], ["\n align-items: ", ";\n align-self: ", ";\n display: flex;\n flex-direction: column;\n padding-left: ", ";\n padding-right: ", ";\n"])), function (_a) {
|
|
187
|
+
var S_TimeWrapper = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n align-items: ", ";\n align-self: ", ";\n display: flex;\n flex-direction: column;\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"], ["\n align-items: ", ";\n align-self: ", ";\n display: flex;\n flex-direction: column;\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n"])), function (_a) {
|
|
185
188
|
var isMe = _a.isMe;
|
|
186
189
|
return isMe && 'flex-end';
|
|
187
190
|
}, function (_a) {
|
|
@@ -193,6 +196,9 @@ var S_TimeWrapper = styled_components_1.default.div(templateObject_12 || (templa
|
|
|
193
196
|
}, function (_a) {
|
|
194
197
|
var isMe = _a.isMe, theme = _a.theme;
|
|
195
198
|
return isMe && theme.spacing.spacingA;
|
|
199
|
+
}, function (_a) {
|
|
200
|
+
var theme = _a.theme;
|
|
201
|
+
return theme.spacing.spacingA;
|
|
196
202
|
});
|
|
197
203
|
var S_SeeMoreButton = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n height: 24px;\n justify-content: right;\n margin-top: ", ";\n min-width: 48px;\n opacity: ", ";\n padding-right: ", ";\n position: relative;\n width: 48px;\n\n ", ":hover & {\n opacity: ", ";\n }\n"], ["\n box-sizing: border-box;\n display: flex;\n height: 24px;\n justify-content: right;\n margin-top: ", ";\n min-width: 48px;\n opacity: ", ";\n padding-right: ", ";\n position: relative;\n width: 48px;\n\n ", ":hover & {\n opacity: ", ";\n }\n"])), function (_a) {
|
|
198
204
|
var theme = _a.theme;
|
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
11
11
|
name: Path<IFormValues>;
|
|
12
12
|
hintText?: PDSTextType;
|
|
13
13
|
defaultAmount?: number;
|
|
14
|
-
size?: 'large' | 'rlarge';
|
|
14
|
+
size?: 'large' | 'rlarge' | 'medium' | 'small';
|
|
15
15
|
responsiveMode?: 'none' | 'use';
|
|
16
16
|
state?: 'normal' | 'read_only' | 'disabled';
|
|
17
17
|
dropdownState?: 'normal' | 'read_only';
|
|
@@ -28,6 +28,7 @@ type Props = {
|
|
|
28
28
|
useDotBadge?: 'none' | 'use';
|
|
29
29
|
deleteBtnMode?: 'none' | 'use';
|
|
30
30
|
minPriceAmount?: string | number;
|
|
31
|
+
onExChange?: (e: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
31
32
|
onChange?: (value: string) => void;
|
|
32
33
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
33
34
|
onFocus?: (e: React.FocusEvent<HTMLInputElement> | React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
@@ -39,5 +40,5 @@ type Props = {
|
|
|
39
40
|
displayValue: string;
|
|
40
41
|
}) => void;
|
|
41
42
|
} & Omit<Partial<TextFieldBaseProps>, 'textAlign' | 'preventBlankMode' | 'enterSubmitMode' | 'multiRows' | 'colorTheme'>;
|
|
42
|
-
declare function PriceTextField({ name, hintText, defaultAmount, colorTheme, size, fontWeight, hintTextFontWeight, responsiveMode, state, dropdownState, customWidth, baseCurrency, currencies, decimalPlaces, exchangeRates, textAlign, validation, useRequiredValidation, useDotBadge, deleteBtnMode, minPriceAmount, onChange, onBlur, onFocus, onTarget, onCurrencyChange, onValueChange }: Props): JSX.Element;
|
|
43
|
+
declare function PriceTextField({ name, hintText, defaultAmount, colorTheme, size, fontWeight, hintTextFontWeight, responsiveMode, state, dropdownState, customWidth, baseCurrency, currencies, decimalPlaces, exchangeRates, textAlign, validation, useRequiredValidation, useDotBadge, deleteBtnMode, minPriceAmount, onChange, onExChange, onBlur, onFocus, onTarget, onCurrencyChange, onValueChange }: Props): JSX.Element;
|
|
43
44
|
export default PriceTextField;
|
|
@@ -66,7 +66,7 @@ exports.DEFAULT_DECIMAL_PLACES = {
|
|
|
66
66
|
function PriceTextField(_a) {
|
|
67
67
|
var _b;
|
|
68
68
|
var _c;
|
|
69
|
-
var name = _a.name, hintText = _a.hintText, defaultAmount = _a.defaultAmount, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, _e = _a.size, size = _e === void 0 ? 'large' : _e, _f = _a.fontWeight, fontWeight = _f === void 0 ? 'bold' : _f, _g = _a.hintTextFontWeight, hintTextFontWeight = _g === void 0 ? 'normal' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, _k = _a.dropdownState, dropdownState = _k === void 0 ? 'normal' : _k, customWidth = _a.customWidth, _l = _a.baseCurrency, baseCurrency = _l === void 0 ? pricing_1.CurrencyCode.KRW : _l, _m = _a.currencies, currencies = _m === void 0 ? [pricing_1.CurrencyCode.KRW, pricing_1.CurrencyCode.USD] : _m, _o = _a.decimalPlaces, decimalPlaces = _o === void 0 ? exports.DEFAULT_DECIMAL_PLACES : _o, _p = _a.exchangeRates, exchangeRates = _p === void 0 ? (_b = {}, _b[pricing_1.CurrencyCode.KRW] = 1300, _b[pricing_1.CurrencyCode.USD] = 1, _b) : _p, _q = _a.textAlign, textAlign = _q === void 0 ? 'right' : _q, validation = _a.validation, _r = _a.useRequiredValidation, useRequiredValidation = _r === void 0 ? 'use' : _r, _s = _a.useDotBadge, useDotBadge = _s === void 0 ? 'use' : _s, _t = _a.deleteBtnMode, deleteBtnMode = _t === void 0 ? 'use' : _t, minPriceAmount = _a.minPriceAmount, onChange = _a.onChange, onBlur = _a.onBlur, onFocus = _a.onFocus, onTarget = _a.onTarget, onCurrencyChange = _a.onCurrencyChange, onValueChange = _a.onValueChange;
|
|
69
|
+
var name = _a.name, hintText = _a.hintText, defaultAmount = _a.defaultAmount, _d = _a.colorTheme, colorTheme = _d === void 0 ? 'none' : _d, _e = _a.size, size = _e === void 0 ? 'large' : _e, _f = _a.fontWeight, fontWeight = _f === void 0 ? 'bold' : _f, _g = _a.hintTextFontWeight, hintTextFontWeight = _g === void 0 ? 'normal' : _g, _h = _a.responsiveMode, responsiveMode = _h === void 0 ? 'none' : _h, _j = _a.state, state = _j === void 0 ? 'normal' : _j, _k = _a.dropdownState, dropdownState = _k === void 0 ? 'normal' : _k, customWidth = _a.customWidth, _l = _a.baseCurrency, baseCurrency = _l === void 0 ? pricing_1.CurrencyCode.KRW : _l, _m = _a.currencies, currencies = _m === void 0 ? [pricing_1.CurrencyCode.KRW, pricing_1.CurrencyCode.USD] : _m, _o = _a.decimalPlaces, decimalPlaces = _o === void 0 ? exports.DEFAULT_DECIMAL_PLACES : _o, _p = _a.exchangeRates, exchangeRates = _p === void 0 ? (_b = {}, _b[pricing_1.CurrencyCode.KRW] = 1300, _b[pricing_1.CurrencyCode.USD] = 1, _b) : _p, _q = _a.textAlign, textAlign = _q === void 0 ? 'right' : _q, validation = _a.validation, _r = _a.useRequiredValidation, useRequiredValidation = _r === void 0 ? 'use' : _r, _s = _a.useDotBadge, useDotBadge = _s === void 0 ? 'use' : _s, _t = _a.deleteBtnMode, deleteBtnMode = _t === void 0 ? 'use' : _t, minPriceAmount = _a.minPriceAmount, onChange = _a.onChange, onExChange = _a.onExChange, onBlur = _a.onBlur, onFocus = _a.onFocus, onTarget = _a.onTarget, onCurrencyChange = _a.onCurrencyChange, onValueChange = _a.onValueChange;
|
|
70
70
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
71
71
|
var _u = (0, react_1.useState)(defaultAmount ? String(defaultAmount) : ''), baseCurrencyValue = _u[0], setBaseCurrencyValue = _u[1];
|
|
72
72
|
var _v = (0, react_1.useState)(baseCurrency), selectedCurrency = _v[0], setSelectedCurrency = _v[1];
|
|
@@ -307,6 +307,9 @@ function PriceTextField(_a) {
|
|
|
307
307
|
}, 0);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
+
if (onExChange) {
|
|
311
|
+
onExChange(e);
|
|
312
|
+
}
|
|
310
313
|
};
|
|
311
314
|
var handleBlur = function (e) {
|
|
312
315
|
setIsInputFocused(false);
|
|
@@ -423,8 +426,8 @@ function PriceTextField(_a) {
|
|
|
423
426
|
policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].minPayment.amount,
|
|
424
427
|
currency: baseCurrency
|
|
425
428
|
})
|
|
426
|
-
}), value: displayValue, textAlign: textAlign, validation: finalValidation, textLineType: "single", inputType: "text", inputMode: "decimal", preventBlankMode: "all", enterSubmitMode: "none", state: isInputReadOnly ? 'read_only' : state, colorTheme: colorTheme, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', hintTextWeight: hintTextFontWeight === 'bold' ? 'bold' : 'normal', fieldPaddingRight:
|
|
427
|
-
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", customWidth: getDropdownContextMenuCustomWidth() }, { children: currencyOptions.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleCurrencySelect(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size:
|
|
429
|
+
}), value: displayValue, textAlign: textAlign, validation: finalValidation, textLineType: "single", inputType: "text", inputMode: "decimal", preventBlankMode: "all", enterSubmitMode: "none", state: isInputReadOnly ? 'read_only' : state, colorTheme: colorTheme, textSize: "form2", textWeight: fontWeight === 'bold' ? 'bold' : 'normal', hintTextWeight: hintTextFontWeight === 'bold' ? 'bold' : 'normal', fieldPaddingRight: 12, deleteIconMode: deleteBtnMode, deleteIconSize: size === 'large' || size === 'rlarge' ? 20 : 16, deleteIconColor: deleteIconColor, isFocused: isInputFocused, suffixTextRightSpacingMode: size === 'large' || size === 'rlarge' ? 'use' : 'none', onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, onTarget: handleTarget, onDelete: handleDelete }) })), (0, jsx_runtime_1.jsx)(S_DropdownWrapper, __assign({ ref: dropdownRef, inputSize: size, onClick: handleDropdownClick, onBlur: handleDropdownBlur, tabIndex: 0, isFocused: isDropdownFocused, state: dropdownState, isError: Boolean(isError) }, { children: (0, jsx_runtime_1.jsxs)(S_Select, __assign({ inputSize: size }, { children: [useDotBadge === 'use' && selectedCurrency === baseCurrency && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(S_Badge, {}), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" })] })), (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: selectedCurrency, styleTheme: "form2Bold", singleLineMode: "use", colorTheme: "sysTextPrimary", ellipsisMode: "use", customFontWeight: "bold", colorOverride: getDropdownTextColorKey(), lineLimit: 1 }), (0, jsx_runtime_1.jsx)(hybrid_1.Spacing, { size: "spacing_a", spacingType: "width" }), (0, jsx_runtime_1.jsx)(hybrid_1.Icon, { size: 16, fillType: "line", iconName: isDropdownFocused ? 'ic_arrow_up' : 'ic_arrow_down', colorKey: getArrowIconColorKey() })] })) }))] })), isDropdownFocused &&
|
|
430
|
+
(0, react_dom_1.createPortal)((0, jsx_runtime_1.jsx)(S_ContextMenuWrapper, __assign({ ref: contextMenuRef, contextMenuPositionCss: contextMenuPositionCss }, { children: (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu, __assign({ autoWidthMode: "use", customWidth: getDropdownContextMenuCustomWidth() }, { children: currencyOptions.map(function (el) { return ((0, jsx_runtime_1.jsx)("div", __assign({ onMouseDown: function () { return handleCurrencySelect(el); } }, { children: (0, jsx_runtime_1.jsx)(ContextMenuItem_1.ContextMenuItem, { option: el, size: size === 'rlarge' ? 'large' : size, isSelected: selectedCurrency === el.currency, state: el.state, displayType: "text_only" }) }), el.value)); }) })) })), document.body), ((_c = (0, types_1.getErrorByName)(errors, name)) === null || _c === void 0 ? void 0 : _c.message) && state === 'normal' && ((0, jsx_runtime_1.jsx)(S_Error, { children: (0, types_1.getErrorByName)(errors, name).message }))] })));
|
|
428
431
|
}
|
|
429
432
|
var S_PriceTextField = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n ", ";\n ", "\n"], ["\n ", ";\n ", ";\n ", "\n"])), function (_a) {
|
|
430
433
|
var inputSize = _a.inputSize;
|
|
@@ -534,7 +537,7 @@ var S_TextFieldBaseWrapper = styled_components_1.default.div(templateObject_12 |
|
|
|
534
537
|
var state = _a.state, theme = _a.theme;
|
|
535
538
|
return state === 'normal' && (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n "], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n "])), theme.ui_cpnt_textfield_base_hover, theme.ui_cpnt_textfield_base_pressed);
|
|
536
539
|
});
|
|
537
|
-
var S_DropdownWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n\n cursor: ", ";\n\n display: flex;\n height: 100%;\n min-width: 50px;\n outline: none;\n\n padding: 0
|
|
540
|
+
var S_DropdownWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n\n cursor: ", ";\n\n display: flex;\n height: 100%;\n min-width: 50px;\n outline: none;\n\n padding: 0\n ", ";\n\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n\n cursor: ", ";\n\n display: flex;\n height: 100%;\n min-width: 50px;\n outline: none;\n\n padding: 0\n ", ";\n\n ", "\n"])), function (_a) {
|
|
538
541
|
var theme = _a.theme, state = _a.state;
|
|
539
542
|
if (state === 'disabled' || state === 'read_only') {
|
|
540
543
|
return theme.ui_cpnt_textfield_base_disabled;
|
|
@@ -564,8 +567,10 @@ var S_DropdownWrapper = styled_components_1.default.div(templateObject_14 || (te
|
|
|
564
567
|
return 'pointer';
|
|
565
568
|
}
|
|
566
569
|
}, function (_a) {
|
|
567
|
-
var theme = _a.theme;
|
|
568
|
-
return
|
|
570
|
+
var theme = _a.theme, inputSize = _a.inputSize;
|
|
571
|
+
return inputSize === 'small' || inputSize === 'medium'
|
|
572
|
+
? theme.spacing.spacingB
|
|
573
|
+
: theme.spacing.spacingD;
|
|
569
574
|
}, function (_a) {
|
|
570
575
|
var state = _a.state, theme = _a.theme;
|
|
571
576
|
return state === 'normal' && (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n "], ["\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n "])), theme.ui_cpnt_textfield_base_hover, theme.ui_cpnt_textfield_base_pressed);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TypeOfCompositionAction } from '../compositionActionTypes';
|
|
3
3
|
import type { CustomSectionShortcutKeysType, IComposition, PlaceRestrictionType } from '../types';
|
|
4
|
-
import type { Layout } from 'publ-echo
|
|
4
|
+
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
5
5
|
export type LayoutsType = {
|
|
6
6
|
sm: Layout;
|
|
7
7
|
lg: Layout;
|
|
@@ -52,9 +52,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
54
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
55
|
-
var
|
|
56
|
-
var group_1 = require("publ-echo
|
|
57
|
-
var renderHelpers_1 = require("publ-echo
|
|
55
|
+
var publ_echo_1 = require("publ-echo");
|
|
56
|
+
var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
|
|
57
|
+
var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
58
58
|
var react_1 = __importStar(require("react"));
|
|
59
59
|
var react_i18next_1 = require("react-i18next");
|
|
60
60
|
var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
|
|
@@ -71,7 +71,7 @@ var group_2 = require("../sections/CustomSection/newUtils/group");
|
|
|
71
71
|
var util_1 = require("../sections/CustomSection/util");
|
|
72
72
|
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
|
73
73
|
var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
|
|
74
|
-
var Responsive = (0,
|
|
74
|
+
var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
|
|
75
75
|
var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas(props, ref) {
|
|
76
76
|
var _a, _b, _c, _d;
|
|
77
77
|
var _e = props.editorProps, device = _e.device, shortcutKeyMode = _e.shortcutKeyMode, placementRestriction = _e.placementRestriction, compositionActionHandler = _e.compositionActionHandler;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CB_ALL_CODES } from '../sections/CustomSection/types';
|
|
3
3
|
import type { IComposition } from '../types';
|
|
4
|
-
import type { Layout } from 'publ-echo
|
|
4
|
+
import type { Layout } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
5
5
|
export type LayoutsType = {
|
|
6
6
|
sm: Layout;
|
|
7
7
|
lg: Layout;
|
|
@@ -42,32 +42,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
45
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
46
45
|
var react_1 = __importStar(require("react"));
|
|
47
46
|
var react_i18next_1 = require("react-i18next");
|
|
48
47
|
var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
|
|
49
48
|
var dynamicLayoutContext_1 = require("../../DynamicLayout/dynamicLayoutContext");
|
|
50
49
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
51
|
-
require("../components");
|
|
52
|
-
require("../components/Section/components/CustomSectionBackground");
|
|
53
50
|
var gleStyles_1 = require("../gleStyles");
|
|
54
51
|
var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
|
|
55
52
|
var types_1 = require("../sections/CustomSection/types");
|
|
56
53
|
var util_1 = require("../sections/CustomSection/util");
|
|
57
54
|
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
|
58
55
|
var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
|
|
59
|
-
require("../sections/CustomSection/util/stylePropParsers/parseStylePropBorder");
|
|
60
|
-
require("../sections/CustomSection/util/stylePropParsers/parseStylePropShadow");
|
|
61
|
-
require("../sections/CustomSection/util/stylePropParsers/types");
|
|
62
56
|
var groupUtils_1 = __importDefault(require("../utils/groupUtils"));
|
|
63
57
|
var CompositionBackground_1 = __importDefault(require("./CompositionBackground"));
|
|
64
|
-
|
|
65
|
-
var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
58
|
+
var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
66
59
|
var _a, _b, _c, _d;
|
|
67
|
-
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, sectionActionHandler = _e.sectionActionHandler
|
|
60
|
+
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, sectionActionHandler = _e.sectionActionHandler;
|
|
68
61
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties, ccbCode = props.ccbCode;
|
|
69
62
|
var pedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
|
|
70
|
-
var _f = jsonProperties, _g = _f.data, CB_PLACEMENT_PROP_COMPOSITION = _g.CB_PLACEMENT_PROP_COMPOSITION, CB_LAYOUT_PROP_PADDING = _g.CB_LAYOUT_PROP_PADDING,
|
|
63
|
+
var _f = jsonProperties, _g = _f.data, CB_PLACEMENT_PROP_COMPOSITION = _g.CB_PLACEMENT_PROP_COMPOSITION, CB_LAYOUT_PROP_PADDING = _g.CB_LAYOUT_PROP_PADDING, zOrders = _f.zOrders;
|
|
71
64
|
var layouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders);
|
|
72
65
|
var isMobile = device === 'MOBILE';
|
|
73
66
|
var isEditMode = mode === 'EDIT';
|
|
@@ -84,10 +77,8 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
84
77
|
(0, react_1.useEffect)(function () {
|
|
85
78
|
if (editingSectionId !== props.id) {
|
|
86
79
|
setSelectedCB(null);
|
|
87
|
-
// breakGroupCB();
|
|
88
80
|
}
|
|
89
81
|
}, [editingSectionId]);
|
|
90
|
-
// NOTE: 추후에 event를 외부에서 전달받게하거나, 아예 상태를 끌어올리거나 해야합니다.
|
|
91
82
|
(0, react_1.useLayoutEffect)(function () {
|
|
92
83
|
if (props.id !== editingSectionId) {
|
|
93
84
|
return;
|
|
@@ -117,14 +108,6 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
117
108
|
if (!selectedCB || selectedCB === 'BULK') {
|
|
118
109
|
return;
|
|
119
110
|
}
|
|
120
|
-
// makeCollisionGroup(selectedCB);
|
|
121
|
-
// sectionActionHandler &&
|
|
122
|
-
// sectionActionHandler({
|
|
123
|
-
// type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
|
124
|
-
// payload: {
|
|
125
|
-
// block:
|
|
126
|
-
// }
|
|
127
|
-
// });
|
|
128
111
|
setSelectedCB('BULK');
|
|
129
112
|
}
|
|
130
113
|
}, [selectedCB, shortcutKeyMode, sectionActionHandler, setSelectedCB]);
|
|
@@ -144,30 +127,8 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
144
127
|
if (!isEditMode) {
|
|
145
128
|
return;
|
|
146
129
|
}
|
|
147
|
-
// setSelectedCB(null);
|
|
148
|
-
// sectionActionHandler &&
|
|
149
|
-
// sectionActionHandler({
|
|
150
|
-
// type: '@CUSTOMSECTION/SECTION_CLICKED',
|
|
151
|
-
// payload: {
|
|
152
|
-
// sectionId: props.id
|
|
153
|
-
// }
|
|
154
|
-
// });
|
|
155
130
|
};
|
|
156
131
|
var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
|
|
157
|
-
// const shadowStyles = parseStylePropShadow(
|
|
158
|
-
// {
|
|
159
|
-
// name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_SHADOW,
|
|
160
|
-
// specs: MOCK_SHADOW
|
|
161
|
-
// },
|
|
162
|
-
// device
|
|
163
|
-
// );
|
|
164
|
-
// const borderStyles = parseStylePropBorder(
|
|
165
|
-
// {
|
|
166
|
-
// name: CB_STYLE_PROP_KEYS.CB_STYLE_PROP_BORDER,
|
|
167
|
-
// specs: MOCK_BORDER as any
|
|
168
|
-
// },
|
|
169
|
-
// device
|
|
170
|
-
// );
|
|
171
132
|
var rowHeight = (function () {
|
|
172
133
|
if (!size.width) {
|
|
173
134
|
return 50;
|
|
@@ -179,40 +140,12 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
179
140
|
var cellWidth = size.width / cols;
|
|
180
141
|
return cellWidth * 0.56;
|
|
181
142
|
})();
|
|
182
|
-
// TODO: 폰트사이즈 작업 필요.
|
|
183
|
-
var baseFontSize = (function () {
|
|
184
|
-
if (!size.width) {
|
|
185
|
-
return 16;
|
|
186
|
-
}
|
|
187
|
-
// const responsiveFontMode =
|
|
188
|
-
// !!props.jsonProperties?.CB_CONTENT_PROP_COMPOSITION
|
|
189
|
-
// ?.CB_CONTENT_PROP_COMPOSITION_SPEC_VARIABLEROOTFONTSIZE;
|
|
190
|
-
var responsiveFontMode = true;
|
|
191
|
-
if (device === 'MOBILE') {
|
|
192
|
-
if (responsiveFontMode) {
|
|
193
|
-
return size.width * 0.0421;
|
|
194
|
-
}
|
|
195
|
-
if (size.width < 327) {
|
|
196
|
-
return Math.max(getDefensiveFontSize(device, size.width), 14);
|
|
197
|
-
}
|
|
198
|
-
return 16;
|
|
199
|
-
}
|
|
200
|
-
if (responsiveFontMode) {
|
|
201
|
-
return size.width * 0.0133;
|
|
202
|
-
}
|
|
203
|
-
if (size.width < 1200) {
|
|
204
|
-
return Math.max(getDefensiveFontSize(device, size.width), 16);
|
|
205
|
-
}
|
|
206
|
-
return 16;
|
|
207
|
-
})();
|
|
208
143
|
var i18n = (0, react_i18next_1.useTranslation)('translation').i18n;
|
|
209
144
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
|
|
210
145
|
device: device
|
|
211
146
|
} }, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ strKeys: { str_grid_height_variable: i18n.t('str_grid_height_variable') }, isEditMode: isEditMode, style: {
|
|
212
147
|
width: '100%',
|
|
213
148
|
height: '100%',
|
|
214
|
-
// ...shadowStyles.style,
|
|
215
|
-
// ...borderStyles.style,
|
|
216
149
|
overflow: 'hidden'
|
|
217
150
|
} }, { children: (0, jsx_runtime_1.jsx)(S_COMPOSITIONWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, style: {
|
|
218
151
|
width: '100%',
|
|
@@ -228,20 +161,9 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
228
161
|
} }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ className: "composition-container", "data-cols": cols, "data-rows": rows, "data-row-height": rowHeight, "data-col-width": "10px", ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, "data-wrapper-paddingT": padding.top, "data-wrapper-paddingB": padding.bottom, "data-wrapper-paddingL": padding.left, "data-wrapper-paddingR": padding.right, style: {
|
|
229
162
|
width: customSectionStyles.width,
|
|
230
163
|
maxWidth: customSectionStyles.maxWidth
|
|
231
|
-
|
|
232
|
-
// fontSize: `${baseFontSize}px`
|
|
233
|
-
} }, { children: pedigree.children.map(function (child) { return ((0, jsx_runtime_1.jsx)(groupUtils_1.default, { block: child, rowHeight: rowHeight, layoutItems: layouts[device === 'DESKTOP' ? 'lg' : 'sm'], cbs: props.componentBlocks, device: device, selectedRows: [],
|
|
234
|
-
// pinnedGBs={pinnedGBs}
|
|
235
|
-
// onToggleGBPinned={onToggleGBPinned}
|
|
236
|
-
isEditMode: false }, child.blockId)); }) })) })) })) })) })) }));
|
|
164
|
+
} }, { children: pedigree.children.map(function (child) { return ((0, jsx_runtime_1.jsx)(groupUtils_1.default, { block: child, rowHeight: rowHeight, layoutItems: layouts[device === 'DESKTOP' ? 'lg' : 'sm'], cbs: props.componentBlocks, device: device, selectedRows: [], isEditMode: false }, child.blockId)); }) })) })) })) })) })) }));
|
|
237
165
|
});
|
|
238
166
|
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 /* height: 100%; */\n padding: 10px 10px;\n width: 100%;\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 /* height: 100%; */\n padding: 10px 10px;\n width: 100%;\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"); });
|
|
239
167
|
var S_COMPOSITIONWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
240
168
|
exports.default = react_1.default.memo(Composition);
|
|
241
|
-
function getDefensiveFontSize(device, width) {
|
|
242
|
-
if (device === 'MOBILE') {
|
|
243
|
-
return width * (0.0000868 * width + 0.0202);
|
|
244
|
-
}
|
|
245
|
-
return width * (0.0000246 * width - 0.01618);
|
|
246
|
-
}
|
|
247
169
|
var templateObject_1, templateObject_2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
3
|
import type { CB_PLACEMENT_PROP_SPECS, Device } from '../sections/CustomSection/util/types';
|
|
4
|
-
import type { Block } from 'publ-echo
|
|
4
|
+
import type { Block } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
5
5
|
type Props = {
|
|
6
6
|
cb: ComponentBlock;
|
|
7
7
|
index: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
3
|
import type { Device } from '../sections/CustomSection/util/types';
|
|
4
|
-
import type { Block } from 'publ-echo
|
|
4
|
+
import type { Block } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
5
5
|
type Props = {
|
|
6
6
|
cb: ComponentBlock;
|
|
7
7
|
index: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FlexGridItem } from './FlexGridItem';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlexGridItem = void 0;
|
|
7
|
+
var FlexGridItem_1 = require("./FlexGridItem");
|
|
8
|
+
Object.defineProperty(exports, "FlexGridItem", { enumerable: true, get: function () { return __importDefault(FlexGridItem_1).default; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IComposition } 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;
|
|
@@ -43,8 +43,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
45
45
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
46
|
-
require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
47
46
|
require("publ-echo/dist/lib/GridItem/OutsideClickHandler");
|
|
47
|
+
require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
48
48
|
var react_1 = __importStar(require("react"));
|
|
49
49
|
var react_i18next_1 = require("react-i18next");
|
|
50
50
|
var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
|
|
@@ -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;
|
|
@@ -52,9 +52,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
54
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
55
|
-
var group_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/group");
|
|
56
|
-
var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
57
55
|
require("publ-echo/dist/lib/GridItem/OutsideClickHandler");
|
|
56
|
+
var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
|
|
57
|
+
var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
58
58
|
var react_1 = __importStar(require("react"));
|
|
59
59
|
var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
|
|
60
60
|
var dynamicLayoutContext_1 = require("../../DynamicLayout/dynamicLayoutContext");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Layout } from 'publ-echo
|
|
3
|
-
import type { ResizeEventType } from 'publ-echo
|
|
4
|
-
import type { ComponentBlock, GroupBlock } from 'publ-echo
|
|
5
|
-
import type { LayoutItem, Layouts } from 'publ-echo
|
|
2
|
+
import type { Layout } from 'publ-echo/dist/lib';
|
|
3
|
+
import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
|
|
4
|
+
import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
5
|
+
import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
6
6
|
export type TypeOfCompositionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
|
|
7
7
|
export type PayloadCBType = {
|
|
8
8
|
type: ComponentBlock['type'];
|
|
@@ -12,8 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.MOCK_SECTIONS = void 0;
|
|
13
13
|
var mock_componentBlocks_1 = require("./mock_componentBlocks");
|
|
14
14
|
var mock_contentsCarousel_1 = require("./mock_contentsCarousel");
|
|
15
|
-
require("./mock_contentsList");
|
|
16
|
-
require("./mock_slideBanner");
|
|
17
15
|
exports.MOCK_SECTIONS = [
|
|
18
16
|
{
|
|
19
17
|
administrativeTitle: 'Daily Pages',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Layout } from 'publ-echo
|
|
3
|
-
import type { ResizeEventType } from 'publ-echo
|
|
4
|
-
import type { ComponentBlock, GroupBlock } from 'publ-echo
|
|
5
|
-
import type { LayoutItem, Layouts } from 'publ-echo
|
|
2
|
+
import type { Layout } from 'publ-echo/dist/lib';
|
|
3
|
+
import type { ResizeEventType } from 'publ-echo/dist/lib/GridItem/types';
|
|
4
|
+
import type { ComponentBlock, GroupBlock } from 'publ-echo/dist/lib/GridLayoutEditor/group';
|
|
5
|
+
import type { LayoutItem, Layouts } from 'publ-echo/dist/lib/GridLayoutEditor/types';
|
|
6
6
|
export type TypeOfSectionAction = ActionMap<ActionHandlerPayload>[keyof ActionMap<ActionHandlerPayload>];
|
|
7
7
|
export type PayloadCBType = {
|
|
8
8
|
type: ComponentBlock['type'];
|
|
@@ -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;
|
|
@@ -51,9 +51,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
-
var
|
|
55
|
-
var group_1 = require("publ-echo
|
|
56
|
-
var renderHelpers_1 = require("publ-echo
|
|
54
|
+
var publ_echo_1 = require("publ-echo");
|
|
55
|
+
var group_1 = require("publ-echo/dist/lib/GridLayoutEditor/group");
|
|
56
|
+
var renderHelpers_1 = require("publ-echo/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
57
57
|
var react_1 = __importStar(require("react"));
|
|
58
58
|
var react_i18next_1 = require("react-i18next");
|
|
59
59
|
var ErrorBoundary_1 = require("../../../DynamicLayout/components/Section/ErrorBoundary");
|
|
@@ -67,7 +67,7 @@ var clsx_1 = require("./newUtils/clsx");
|
|
|
67
67
|
var group_2 = require("./newUtils/group");
|
|
68
68
|
var util_1 = require("./util");
|
|
69
69
|
var parseSectionPadding_1 = __importDefault(require("./util/layoutPropParsers/parseSectionPadding"));
|
|
70
|
-
var Responsive = (0,
|
|
70
|
+
var Responsive = (0, publ_echo_1.WidthProvider)(publ_echo_1.ResponsiveGridEditor);
|
|
71
71
|
var GRID_CELL_MIN = 24;
|
|
72
72
|
var DESKTOP_GRID_COLS = 24;
|
|
73
73
|
var MOBILE_GRID_COLS = 8;
|
|
@@ -15,17 +15,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
require("react");
|
|
19
18
|
var newUtils_1 = require("../../newUtils");
|
|
20
19
|
var types_1 = require("../../types");
|
|
21
20
|
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
|
22
|
-
var ContentsCarousel_1 = require("./componentBlocks/ContentsCarousel");
|
|
23
|
-
var ContentsList_1 = require("./componentBlocks/ContentsList");
|
|
24
21
|
var Divider_1 = __importDefault(require("./componentBlocks/Divider/Divider"));
|
|
25
22
|
var Embed_1 = __importDefault(require("./componentBlocks/Embed/Embed"));
|
|
26
23
|
var Image_1 = __importDefault(require("./componentBlocks/Image/Image"));
|
|
27
24
|
var RichText_1 = require("./componentBlocks/RichText");
|
|
28
|
-
var SlideBanner_1 = require("./componentBlocks/SlideBanner");
|
|
29
25
|
var Text_1 = __importDefault(require("./componentBlocks/Text/Text"));
|
|
30
26
|
var Twitter_1 = __importDefault(require("./componentBlocks/Twitter/Twitter"));
|
|
31
27
|
var VideoPlayer_1 = require("./componentBlocks/VideoPlayer");
|
|
@@ -54,16 +50,22 @@ function ComponentBlockMatcherWithCCB(_a) {
|
|
|
54
50
|
case types_1.CB_ALL_CODES.CB_VIDEOPLAYER:
|
|
55
51
|
return (0, jsx_runtime_1.jsx)(VideoPlayer_1.VideoPlayer, __assign({}, propsWithValue, { index: index }));
|
|
56
52
|
case types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL: {
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
54
|
+
var ContentsCarousel = require('./componentBlocks/ContentsCarousel').ContentsCarousel;
|
|
57
55
|
var compositions = cbProps.compositions;
|
|
58
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(ContentsCarousel, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
|
59
57
|
}
|
|
60
58
|
case types_1.CB_ALL_CODES.CB_SLIDEBANNER: {
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
60
|
+
var SlideBanner = require('./componentBlocks/SlideBanner').SlideBanner;
|
|
61
61
|
var compositions = cbProps.compositions;
|
|
62
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)(SlideBanner, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
|
63
63
|
}
|
|
64
64
|
case types_1.CB_ALL_CODES.CB_LIST: {
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
66
|
+
var ContentsList = require('./componentBlocks/ContentsList').ContentsList;
|
|
65
67
|
var compositions = cbProps.compositions;
|
|
66
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
68
|
+
return ((0, jsx_runtime_1.jsx)(ContentsList, __assign({}, propsWithValue, { compositions: compositions, index: index })));
|
|
67
69
|
}
|
|
68
70
|
default:
|
|
69
71
|
return (0, jsx_runtime_1.jsx)("div", { children: "Error: not supported CB" });
|