pds-dev-kit-web 2.2.299 → 2.2.301
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/services/i18n/resources/en.json +1 -0
- package/dist/src/common/services/i18n/resources/es.json +1 -0
- package/dist/src/common/services/i18n/resources/fil.json +1 -0
- package/dist/src/common/services/i18n/resources/index.d.ts +7 -0
- package/dist/src/common/services/i18n/resources/ja.json +1 -0
- package/dist/src/common/services/i18n/resources/ko.json +1 -0
- package/dist/src/common/services/i18n/resources/zh-cn.json +1 -0
- package/dist/src/common/services/i18n/resources/zh-tw.json +1 -0
- package/dist/src/mobile/components/DatePicker/DatePicker.d.ts +2 -1
- package/dist/src/mobile/components/DatePicker/DatePicker.js +76 -17
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.d.ts +3 -1
- package/dist/src/mobile/components/DatePicker/DatePickerHeader.js +23 -4
- package/dist/src/mobile/components/DatePicker/MonthPicker.d.ts +12 -0
- package/dist/src/mobile/components/DatePicker/MonthPicker.js +133 -0
- package/dist/src/mobile/components/DatePicker/YearPicker.d.ts +10 -0
- package/dist/src/mobile/components/DatePicker/YearPicker.js +73 -0
- package/dist/src/mobile/components/DatePicker/index.d.ts +2 -0
- package/dist/src/mobile/components/DatePicker/index.js +5 -1
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +3 -10
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +6 -3
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/createCompositions.js +3 -11
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -1
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +0 -4
- package/dist/src/sub/DynamicLayout/gleStyles.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +4 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +4 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/VideoPlayer/VideoPlayer.js +18 -5
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -0
- package/package.json +1 -1
- package/release-note.md +3 -3
|
@@ -77,6 +77,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
77
77
|
var _e = props.editorProps, device = _e.device, shortcutKeyMode = _e.shortcutKeyMode, placementRestriction = _e.placementRestriction, compositionActionHandler = _e.compositionActionHandler;
|
|
78
78
|
var editingSectionId = props.compositionData.id;
|
|
79
79
|
var mode = 'EDIT';
|
|
80
|
+
var editorType = 'COMPOSITION_EDITOR';
|
|
80
81
|
var _f = props.compositionData, componentBlocks = _f.componentBlocks, jsonProperties = _f.jsonProperties;
|
|
81
82
|
var sectionPedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
|
|
82
83
|
var _g = (0, react_1.useState)(sectionPedigree), pedigreeState = _g[0], setPedigreeState = _g[1];
|
|
@@ -1059,16 +1060,8 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
1059
1060
|
var i18n = (0, react_i18next_1.useTranslation)('translation').i18n;
|
|
1060
1061
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
|
|
1061
1062
|
device: device,
|
|
1062
|
-
mode: mode
|
|
1063
|
-
|
|
1064
|
-
// isPreview,
|
|
1065
|
-
// navigationHandler,
|
|
1066
|
-
// sectionActionHandler,
|
|
1067
|
-
// editingSectionId,
|
|
1068
|
-
// programmedSectionComponents,
|
|
1069
|
-
// shortcutKeyMode,
|
|
1070
|
-
// zoomScale,
|
|
1071
|
-
// queryData
|
|
1063
|
+
mode: mode,
|
|
1064
|
+
editorType: editorType
|
|
1072
1065
|
} }, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT', strKeys: { str_grid_height_variable: i18n.t('str_grid_height_variable') } }, { children: (0, jsx_runtime_1.jsx)(S_COMPOSITIONWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, onContextMenu: function (e) {
|
|
1073
1066
|
e.stopPropagation();
|
|
1074
1067
|
e.preventDefault();
|
|
@@ -57,7 +57,7 @@ var groupUtils_1 = __importDefault(require("../utils/groupUtils"));
|
|
|
57
57
|
var CompositionBackground_1 = __importDefault(require("./CompositionBackground"));
|
|
58
58
|
var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
59
59
|
var _a, _b, _c, _d;
|
|
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, navigationHandler = _e.navigationHandler;
|
|
60
|
+
var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, editorType = _e.editorType, sectionActionHandler = _e.sectionActionHandler, navigationHandler = _e.navigationHandler;
|
|
61
61
|
var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties, ccbCode = props.ccbCode;
|
|
62
62
|
var pedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
|
|
63
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;
|
|
@@ -119,7 +119,9 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
|
119
119
|
var customSectionStyles = {
|
|
120
120
|
minHeight: "".concat(minHeight, "px"),
|
|
121
121
|
maxHeight: "".concat(maxHeight, "px"),
|
|
122
|
-
width: mode === 'EDIT'
|
|
122
|
+
width: mode === 'EDIT' && editorType === 'COMPOSITION_EDITOR'
|
|
123
|
+
? "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px")
|
|
124
|
+
: '100%',
|
|
123
125
|
maxWidth: maxWidth ? "".concat(maxWidth, "px") : '100%',
|
|
124
126
|
minWidth: minWidth ? "".concat(minWidth, "px") : '0px'
|
|
125
127
|
};
|
|
@@ -157,13 +159,14 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
|
|
|
157
159
|
paddingRight: padding.right,
|
|
158
160
|
paddingLeft: padding.left,
|
|
159
161
|
width: customSectionStyles.width,
|
|
160
|
-
height: ccbCode
|
|
162
|
+
height: HEIGHT_AUTO_LIST.includes(ccbCode) ? 'auto' : '100%',
|
|
161
163
|
maxHeight: customSectionStyles.maxHeight,
|
|
162
164
|
minHeight: customSectionStyles.minHeight,
|
|
163
165
|
maxWidth: customSectionStyles.maxWidth,
|
|
164
166
|
minWidth: customSectionStyles.minWidth
|
|
165
167
|
} }, { 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 }, { 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)); }) })) })) })) })) })) }));
|
|
166
168
|
});
|
|
169
|
+
var HEIGHT_AUTO_LIST = [types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL, types_1.CB_ALL_CODES.CB_LIST];
|
|
167
170
|
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"); });
|
|
168
171
|
var S_COMPOSITIONWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
169
172
|
exports.default = react_1.default.memo(Composition);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
3
|
import type { CB_VALUE_TYPE, CCB_VALUE_TYPE } from '../sections/CustomSection/util/types';
|
|
4
4
|
import type { DynamicLayoutProps, IComposition, QueryData } from '../../DynamicLayout/types';
|
|
5
|
-
export declare function createCompositions({ valueType, queryPath, queryData, compositions, limit, componentBlockCode
|
|
5
|
+
export declare function createCompositions({ valueType, queryPath, queryData, compositions, limit, componentBlockCode }: {
|
|
6
6
|
valueType: CCB_VALUE_TYPE | CB_VALUE_TYPE;
|
|
7
7
|
queryPath: string;
|
|
8
8
|
queryData: QueryData | undefined;
|
|
@@ -11,4 +11,5 @@ export declare function createCompositions({ valueType, queryPath, queryData, co
|
|
|
11
11
|
componentBlockCode: ComponentBlock['componentBlockCode'];
|
|
12
12
|
device: 'MOBILE' | 'DESKTOP';
|
|
13
13
|
navigationHandler: DynamicLayoutProps['navigationHandler'];
|
|
14
|
+
mode: DynamicLayoutProps['mode'];
|
|
14
15
|
}): JSX.Element[];
|
|
@@ -17,27 +17,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.createCompositions = void 0;
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var compositionQueryContext_1 = require("../compositionQueryContext");
|
|
20
|
-
var dynamicLayoutContext_1 = require("../dynamicLayoutContext");
|
|
21
20
|
var Composition_1 = __importDefault(require("./Composition"));
|
|
22
21
|
function createCompositions(_a) {
|
|
23
|
-
var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions, limit = _a.limit, componentBlockCode = _a.componentBlockCode
|
|
22
|
+
var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions, limit = _a.limit, componentBlockCode = _a.componentBlockCode;
|
|
24
23
|
var isQueryDataConnected = valueType === 'DATA' || valueType === 'DELEGATEDDATA';
|
|
25
24
|
// 직접 입력 유형인 경우
|
|
26
25
|
if (!isQueryDataConnected) {
|
|
27
26
|
var valueTypeCompositions = compositions.filter(function (composition) { return !!(composition === null || composition === void 0 ? void 0 : composition.ccbManualItemUuid); });
|
|
28
|
-
return valueTypeCompositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(
|
|
29
|
-
mode: 'PREVIEW',
|
|
30
|
-
device: device
|
|
31
|
-
} }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition, { ccbCode: componentBlockCode }), composition.id) }), composition.id)); });
|
|
27
|
+
return valueTypeCompositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition, { ccbCode: componentBlockCode }), composition.id)); });
|
|
32
28
|
}
|
|
33
29
|
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[queryPath];
|
|
34
30
|
var queryComposition = compositions.find(function (composition) { return !composition.ccbManualItemUuid; });
|
|
35
31
|
if (!queryDataValue)
|
|
36
32
|
return [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})];
|
|
37
|
-
return queryDataValue.slice(0, limit).map(function (query, index) { return ((0, jsx_runtime_1.jsx)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: (0, jsx_runtime_1.jsx)(
|
|
38
|
-
mode: 'PREVIEW',
|
|
39
|
-
device: device,
|
|
40
|
-
navigationHandler: navigationHandler
|
|
41
|
-
} }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition, { ccbCode: componentBlockCode })) })) }), index)); });
|
|
33
|
+
return queryDataValue.slice(0, limit).map(function (query, index) { return ((0, jsx_runtime_1.jsx)(compositionQueryContext_1.CCBQueryPathContext.Provider, __assign({ value: { queryData: query } }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition, { ccbCode: componentBlockCode })) }), index)); });
|
|
42
34
|
}
|
|
43
35
|
exports.createCompositions = createCompositions;
|
|
@@ -42,6 +42,7 @@ function DynamicLayout(_a) {
|
|
|
42
42
|
})
|
|
43
43
|
.sort(function (a, b) { return a.order - b.order; });
|
|
44
44
|
var iframeSection = filteredSortedSection.find(function (section) { return section.manifest.schema === 'EXP_IFRAME' && section.display; });
|
|
45
|
+
var editorType = 'DYNAMIC_LAYOUT_EDITOR';
|
|
45
46
|
return ((0, jsx_runtime_1.jsxs)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
|
|
46
47
|
device: device,
|
|
47
48
|
mode: mode,
|
|
@@ -53,7 +54,8 @@ function DynamicLayout(_a) {
|
|
|
53
54
|
shortcutKeyMode: shortcutKeyMode,
|
|
54
55
|
zoomScale: zoomScale,
|
|
55
56
|
queryData: queryData,
|
|
56
|
-
placementRestriction: placementRestriction
|
|
57
|
+
placementRestriction: placementRestriction,
|
|
58
|
+
editorType: editorType
|
|
57
59
|
} }, { children: [mode === 'EDIT' && onClickEditSection && ((0, jsx_runtime_1.jsx)(EditModeSectionMatcher_1.EditModeSectionMatcher, { dynamicLayoutRef: dynamicLayoutRef, editingSectionId: editingSectionId, scrollDownTargetSectionId: scrollDownTargetSectionId, filteredSortedSection: filteredSortedSection, onClickEditSection: onClickEditSection })), mode !== 'EDIT' &&
|
|
58
60
|
(iframeSection ? ((0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, iframeSection), iframeSection.id)) : (filteredSortedSection.map(function (section) { return (0, jsx_runtime_1.jsx)(SectionMatcher_1.SectionMatcher, __assign({}, section), section.id); })))] })));
|
|
59
61
|
}
|
package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js
CHANGED
|
@@ -111,13 +111,9 @@ function CustomSectionBackgroundMedia(_a) {
|
|
|
111
111
|
: '';
|
|
112
112
|
}
|
|
113
113
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
114
|
-
// eslint-disable-next-line
|
|
115
|
-
// console.warn('ERROR: No query data found');
|
|
116
114
|
return 'ERROR';
|
|
117
115
|
}
|
|
118
116
|
if (!queryContext.queryData[String(CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA)]) {
|
|
119
|
-
// eslint-disable-next-line
|
|
120
|
-
// console.warn(`ERROR: ${CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA} NOT found in query data`);/
|
|
121
117
|
return 'ERROR';
|
|
122
118
|
}
|
|
123
119
|
return queryContext.queryData[String(CB_STYLE_PROP_BGMEDIA_SPEC_CONNECTDATA)];
|