pds-dev-kit-web 2.2.303 → 2.2.305
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/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +17 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +9 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +26 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +9 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/fallbacks/EmptyTextForRender.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/fallbacks/EmptyTextForRender.js +20 -0
- package/package.json +1 -1
- package/release-note.md +2 -3
- package/_wildcard.machine.publr.co+2-key.pem +0 -28
- package/_wildcard.machine.publr.co+2.pem +0 -26
|
@@ -20,11 +20,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.getGridAreaFromCB = void 0;
|
|
22
22
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
+
var react_1 = require("react");
|
|
23
24
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
25
|
+
var dynamicLayoutContext_1 = require("../dynamicLayoutContext");
|
|
24
26
|
var ComponentBlockMatcherWithCCB_1 = __importDefault(require("../sections/CustomSection/components/ComponentBlock/ComponentBlockMatcherWithCCB"));
|
|
25
27
|
var gap = 10;
|
|
26
28
|
function FlexGridItem(_a) {
|
|
27
29
|
var cb = _a.cb, index = _a.index, device = _a.device, rowHeight = _a.rowHeight, zIndex = _a.zIndex, showPinned = _a.showPinned, block = _a.block, style = _a.style, isParentGroupHeightVariable = _a.isParentGroupHeightVariable;
|
|
30
|
+
var queryData = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext).queryData;
|
|
28
31
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
32
|
var defaultHeight = getMaxHeight(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device, rowHeight);
|
|
30
33
|
var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
|
|
@@ -43,6 +46,10 @@ function FlexGridItem(_a) {
|
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
if ('CB_STYLE_PROP_CONTENTSLISTDESIGN' in cb.jsonProperties.data) {
|
|
49
|
+
var isEmptyTextShowing = isContentsListShowingEmptyText(cb.jsonProperties.data.CB_CONTENT_PROP_CONTENTSLIST, queryData);
|
|
50
|
+
if (isEmptyTextShowing) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
46
53
|
var desktopValue = (_f = (_e = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT) === null || _e === void 0 ? void 0 : _e.CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT) !== null && _f !== void 0 ? _f : true;
|
|
47
54
|
if (device === 'DESKTOP') {
|
|
48
55
|
return desktopValue;
|
|
@@ -116,4 +123,14 @@ function getGridAreaFromCB(props, device) {
|
|
|
116
123
|
}
|
|
117
124
|
exports.getGridAreaFromCB = getGridAreaFromCB;
|
|
118
125
|
exports.default = FlexGridItem;
|
|
126
|
+
function isContentsListShowingEmptyText(props, queryData) {
|
|
127
|
+
var queryPath = "".concat(props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA, "/").concat(props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING, "/").concat(props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAOFFSET);
|
|
128
|
+
if (props.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[queryPath];
|
|
132
|
+
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
119
136
|
var templateObject_1;
|
|
@@ -137,7 +137,7 @@ function Button(props) {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
if (mode === 'EDIT') {
|
|
140
|
-
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "
|
|
140
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10597" });
|
|
141
141
|
}
|
|
142
142
|
return '';
|
|
143
143
|
}
|
|
@@ -38,6 +38,7 @@ var types_1 = require("../../../../../../../DynamicLayout/sections/CustomSection
|
|
|
38
38
|
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
39
39
|
var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
|
40
40
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
41
|
+
var EmptyTextForRender_1 = __importDefault(require("../../../fallbacks/EmptyTextForRender"));
|
|
41
42
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
42
43
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
43
44
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
@@ -207,12 +208,18 @@ function ContentsCarousel(props) {
|
|
|
207
208
|
}
|
|
208
209
|
// 데이터 연결
|
|
209
210
|
if (CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
210
|
-
|
|
211
|
+
if (mode === 'EDIT') {
|
|
212
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
|
|
213
|
+
}
|
|
214
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
211
215
|
}
|
|
212
216
|
var queryDataValue = queryData[queryPath];
|
|
213
217
|
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
|
|
214
218
|
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
215
|
-
|
|
219
|
+
if (mode === 'EDIT') {
|
|
220
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
|
|
221
|
+
}
|
|
222
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
216
223
|
}
|
|
217
224
|
return renderSwiper(compositions);
|
|
218
225
|
};
|
|
@@ -39,6 +39,7 @@ var types_1 = require("../../../../../../../DynamicLayout/sections/CustomSection
|
|
|
39
39
|
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
40
40
|
var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
|
41
41
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
42
|
+
var EmptyTextForRender_1 = __importDefault(require("../../../fallbacks/EmptyTextForRender"));
|
|
42
43
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
43
44
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
44
45
|
var S_HeightFitContentCover_1 = require("../components/S_HeightFitContentCover");
|
|
@@ -65,12 +66,12 @@ var createComponent = function (type, getDesignType, getLocation, designType, si
|
|
|
65
66
|
};
|
|
66
67
|
};
|
|
67
68
|
function ContentsList(props) {
|
|
68
|
-
var _a, _b, _c, _d;
|
|
69
|
-
var
|
|
69
|
+
var _a, _b, _c, _d, _e;
|
|
70
|
+
var _f = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _f.device, mode = _f.mode, queryData = _f.queryData, navigationHandler = _f.navigationHandler;
|
|
70
71
|
var index = props.index, compositions = props.compositions, CB_CONTENT_PROP_CONTENTSLIST = props.CB_CONTENT_PROP_CONTENTSLIST, CB_STYLE_PROP_CONTENTSLISTDESIGN = props.CB_STYLE_PROP_CONTENTSLISTDESIGN, CB_STYLE_PROP_CONTENTSLISTPAGINATION = props.CB_STYLE_PROP_CONTENTSLISTPAGINATION, CB_STYLE_PROP_SHADOW = props.CB_STYLE_PROP_SHADOW, CB_EFFECT_PROP_ENTANIM = props.CB_EFFECT_PROP_ENTANIM, CB_LAYOUT_PROP_PADDING = props.CB_LAYOUT_PROP_PADDING, CB_STYLE_PROP_BGMEDIA = props.CB_STYLE_PROP_BGMEDIA, CB_LAYOUT_PROP_HEIGHTADJUSTMENT = props.CB_LAYOUT_PROP_HEIGHTADJUSTMENT;
|
|
71
72
|
var CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA, CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING, CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAOFFSET = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAOFFSET, CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MCOLUMNS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_MCOLUMNS;
|
|
72
|
-
var
|
|
73
|
-
var
|
|
73
|
+
var _g = (0, react_1.useState)(false), isHovered = _g[0], setIsHovered = _g[1];
|
|
74
|
+
var _h = (0, react_1.useState)(1), currentPage = _h[0], setCurrentPage = _h[1];
|
|
74
75
|
var queryPath = "".concat(CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA, "/").concat(CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATASORTING, "/").concat(CB_CONTENT_PROP_CONTENTSLIST_SPEC_DATAOFFSET);
|
|
75
76
|
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[queryPath];
|
|
76
77
|
// list의 minheight / minwidth를 계산
|
|
@@ -80,23 +81,24 @@ function ContentsList(props) {
|
|
|
80
81
|
var displayCounts = device === 'DESKTOP'
|
|
81
82
|
? CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS
|
|
82
83
|
: CB_CONTENT_PROP_CONTENTSLIST_SPEC_MDISPLAYCOUNTS;
|
|
84
|
+
var dataItemLength = Math.min((_a = queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length) !== null && _a !== void 0 ? _a : 0, CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS);
|
|
83
85
|
var totalPage = Math.ceil((CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE === 'DATA' && queryDataValue
|
|
84
|
-
?
|
|
86
|
+
? dataItemLength
|
|
85
87
|
: CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.length) / displayCounts);
|
|
86
88
|
var CB_STYLE_PROP_CONTENTSLIST = __assign(__assign({}, CB_STYLE_PROP_CONTENTSLISTDESIGN), CB_STYLE_PROP_CONTENTSLISTPAGINATION);
|
|
87
|
-
var
|
|
89
|
+
var _j = (0, util_1.parseProperties)(props, device), style = _j.style, hoverStyle = _j.hoverStyle, layout = _j.layout, effect = _j.effect, overlayStyle = _j.overlayStyle;
|
|
88
90
|
var contentPropCss = (0, contentsListUtils_1.parseGridContentProp)({
|
|
89
91
|
props: CB_CONTENT_PROP_CONTENTSLIST,
|
|
90
92
|
device: device
|
|
91
93
|
}).contentPropCss;
|
|
92
|
-
var
|
|
94
|
+
var _k = (0, contentsListUtils_1.parseGridStyleProp)({
|
|
93
95
|
props: CB_STYLE_PROP_CONTENTSLIST,
|
|
94
96
|
device: device
|
|
95
|
-
}), stylePropCss =
|
|
96
|
-
var
|
|
97
|
+
}), stylePropCss = _k.stylePropCss, hoverStylePropCss = _k.hoverStylePropCss;
|
|
98
|
+
var _l = (0, contentsListUtils_1.parsePaginationStyleProp)({
|
|
97
99
|
props: CB_STYLE_PROP_CONTENTSLIST,
|
|
98
100
|
device: device
|
|
99
|
-
}), paginationNormalStyle =
|
|
101
|
+
}), paginationNormalStyle = _l.normalStyle, paginationHoverStyle = _l.hoverStyle;
|
|
100
102
|
// NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
|
|
101
103
|
var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
|
|
102
104
|
var cbRef = (0, react_1.useRef)(null);
|
|
@@ -120,15 +122,15 @@ function ContentsList(props) {
|
|
|
120
122
|
// NOTE: edit환경에서 hover가 작동하지 않아서 제외함 필요시 추가..
|
|
121
123
|
var columnGapEnum = device === 'DESKTOP'
|
|
122
124
|
? CB_STYLE_PROP_CONTENTSLIST.CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMSPACING
|
|
123
|
-
: (
|
|
125
|
+
: (_b = CB_STYLE_PROP_CONTENTSLIST['CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMSPACING:MOBILE']) !== null && _b !== void 0 ? _b : CB_STYLE_PROP_CONTENTSLIST.CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMSPACING;
|
|
124
126
|
var columnGap = columnGapEnum === 'NARROW' ? 8 : columnGapEnum === 'NORMAL' ? 24 : 36;
|
|
125
127
|
var rowGap = device === 'DESKTOP'
|
|
126
128
|
? CB_STYLE_PROP_CONTENTSLIST.CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMLINEHEIGHT
|
|
127
|
-
: (
|
|
129
|
+
: (_c = CB_STYLE_PROP_CONTENTSLIST['CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMLINEHEIGHT:MOBILE']) !== null && _c !== void 0 ? _c : CB_STYLE_PROP_CONTENTSLIST.CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMLINEHEIGHT;
|
|
128
130
|
var standardComposition = getStandardComposition(compositions, CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE);
|
|
129
131
|
var compositionMinValue = getCompositionMinValue(standardComposition, device);
|
|
130
|
-
var oneCompositionMinWidth = (
|
|
131
|
-
var oneCompositionMinHeight = (
|
|
132
|
+
var oneCompositionMinWidth = (_d = compositionMinValue === null || compositionMinValue === void 0 ? void 0 : compositionMinValue.minWidth) !== null && _d !== void 0 ? _d : 0;
|
|
133
|
+
var oneCompositionMinHeight = (_e = compositionMinValue === null || compositionMinValue === void 0 ? void 0 : compositionMinValue.minHeight) !== null && _e !== void 0 ? _e : 0;
|
|
132
134
|
var paddingLR = CB_LAYOUT_PROP_PADDING.CB_LAYOUT_PROP_PADDING_SPEC_PADDING.left +
|
|
133
135
|
CB_LAYOUT_PROP_PADDING.CB_LAYOUT_PROP_PADDING_SPEC_PADDING.right;
|
|
134
136
|
var paddingTB = CB_LAYOUT_PROP_PADDING.CB_LAYOUT_PROP_PADDING_SPEC_PADDING.top +
|
|
@@ -142,9 +144,7 @@ function ContentsList(props) {
|
|
|
142
144
|
var components = [
|
|
143
145
|
createPagination(paginationNormalStyle, paginationHoverStyle, isHovered)
|
|
144
146
|
].filter(function (component) { return component !== undefined; });
|
|
145
|
-
var
|
|
146
|
-
// ccbInset,
|
|
147
|
-
componentGroups = _l.componentGroups, getPositionStyle = _l.getPositionStyle, getComponentGroupLayout = _l.getComponentGroupLayout;
|
|
147
|
+
var _m = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _m.layoutRef, positionRefs = _m.positionRefs, componentGroups = _m.componentGroups, getPositionStyle = _m.getPositionStyle, getComponentGroupLayout = _m.getComponentGroupLayout;
|
|
148
148
|
var ccbInset = {
|
|
149
149
|
top: '0px',
|
|
150
150
|
right: '0px',
|
|
@@ -187,7 +187,7 @@ function ContentsList(props) {
|
|
|
187
187
|
} }, { children: (0, jsx_runtime_1.jsx)(S_ContentsListWrapper, __assign({ className: "cb-contentslist-wrapper", ccbInset: ccbInset, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: (0, createCompositions_1.createCompositions)({
|
|
188
188
|
valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
|
|
189
189
|
queryPath: queryPath,
|
|
190
|
-
limit:
|
|
190
|
+
limit: dataItemLength,
|
|
191
191
|
queryData: queryData,
|
|
192
192
|
compositions: compositions,
|
|
193
193
|
componentBlockCode: types_1.CB_ALL_CODES.CB_LIST,
|
|
@@ -205,12 +205,18 @@ function ContentsList(props) {
|
|
|
205
205
|
}
|
|
206
206
|
// 데이터 연결
|
|
207
207
|
if (CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
208
|
-
|
|
208
|
+
if (mode === 'EDIT') {
|
|
209
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
|
|
210
|
+
}
|
|
211
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
209
212
|
}
|
|
210
213
|
var queryDataValue = queryData[queryPath];
|
|
211
214
|
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
|
|
212
215
|
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
213
|
-
|
|
216
|
+
if (mode === 'EDIT') {
|
|
217
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
|
|
218
|
+
}
|
|
219
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
214
220
|
}
|
|
215
221
|
return renderList(compositions);
|
|
216
222
|
};
|
|
@@ -112,7 +112,7 @@ function Image(props) {
|
|
|
112
112
|
if (CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA' ||
|
|
113
113
|
CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
|
114
114
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
115
|
-
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "
|
|
115
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10597" });
|
|
116
116
|
}
|
|
117
117
|
if (CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA === 'NONE') {
|
|
118
118
|
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
|
|
@@ -38,6 +38,7 @@ var types_1 = require("../../../../../../../DynamicLayout/sections/CustomSection
|
|
|
38
38
|
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
|
39
39
|
var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicLayout/sections/CustomSection/util/isNullOrUndefined"));
|
|
40
40
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
41
|
+
var EmptyTextForRender_1 = __importDefault(require("../../../fallbacks/EmptyTextForRender"));
|
|
41
42
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
42
43
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
43
44
|
var S_HiddenCover_1 = require("../components/S_HiddenCover");
|
|
@@ -187,12 +188,18 @@ function SlideBanner(props) {
|
|
|
187
188
|
}
|
|
188
189
|
// 데이터 연결
|
|
189
190
|
if (CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
190
|
-
|
|
191
|
+
if (mode === 'EDIT') {
|
|
192
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
|
|
193
|
+
}
|
|
194
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
191
195
|
}
|
|
192
196
|
var queryDataValue = queryData[queryPath];
|
|
193
197
|
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
|
|
194
198
|
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
195
|
-
|
|
199
|
+
if (mode === 'EDIT') {
|
|
200
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
|
|
201
|
+
}
|
|
202
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
196
203
|
}
|
|
197
204
|
return renderSwiper(compositions);
|
|
198
205
|
};
|
|
@@ -125,7 +125,7 @@ function Text(props) {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
if (mode === 'EDIT') {
|
|
128
|
-
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "
|
|
128
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10597" });
|
|
129
129
|
}
|
|
130
130
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
131
131
|
}
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/components/fallbacks/EmptyTextForRender.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var react_i18next_1 = require("react-i18next");
|
|
12
|
+
var TextLabel_1 = require("../../../../../DynamicLayout/components/pdsOriginal/desktop/TextLabel");
|
|
13
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
14
|
+
function EmptyTextForRender() {
|
|
15
|
+
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(S_Wrapper, { children: (0, jsx_runtime_1.jsx)(TextLabel_1.TextLabel, { text: t('str_10663'), styleTheme: "body2Regular", colorTheme: "sysTextTertiary" }) }));
|
|
17
|
+
}
|
|
18
|
+
exports.default = EmptyTextForRender;
|
|
19
|
+
var S_Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: center;\n bottom: 0;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: 100%;\n"], ["\n align-items: center;\n bottom: 0;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n width: 100%;\n"])));
|
|
20
|
+
var templateObject_1;
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
-----BEGIN PRIVATE KEY-----
|
|
2
|
-
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDs4IzefteDpp40
|
|
3
|
-
hBgk+1bVmLIe5+aU4KVUV39w+6zl9kBjooHgoE+QWre7HK7oDssQJacGcDdqLil+
|
|
4
|
-
2VBUob5pVht/UrcfV0/8NGZgFPj3/eyyIqraJeXZtI0+18y5uN9yuwyt6ZJvF6vp
|
|
5
|
-
fgJlftRLDBkADr28IK1kZ8LBYd2nMqp8hgIa5GhpbwfftZkLO26sbbN8Xonr8SyE
|
|
6
|
-
abe7c4KywTPfMxxmLhY6muKVQ3xDvE/YXawamfCHcGCstx4a3GxojmRXczve+o0Z
|
|
7
|
-
VvSJquvg0A4gZo7NoRPNfrIhN9YH4LTs7px4TAOyi+DQC2FqapIEXgvBeMV+GcLJ
|
|
8
|
-
o7T3hEuVAgMBAAECggEAYdlgV4iN/hQVxhvK3Xv1osYwzhN9bIJfyTdbrZBJG7Vd
|
|
9
|
-
Y8r9W4zdUQQoYWK33aQ+vazQEhjIy1PGUF/0jwFBZsHrGe1RN+EZaVU79PS047xA
|
|
10
|
-
ylUHvpVpHUU4E32RVCbKJtqdojmaA8oDebBTzRlXGKk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