pds-dev-kit-web 2.2.297 → 2.2.298
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/mock_composition.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Button/Button.js +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Image/Image.js +12 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +6 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +1 -0
- package/package.json +1 -1
- package/release-note.md +2 -2
|
@@ -107,6 +107,12 @@ function Button(props) {
|
|
|
107
107
|
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
108
108
|
if (isDataConnected) {
|
|
109
109
|
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
110
|
+
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'NONE') {
|
|
111
|
+
if (mode === 'EDIT') {
|
|
112
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
|
|
113
|
+
}
|
|
114
|
+
return '';
|
|
115
|
+
}
|
|
110
116
|
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
|
|
111
117
|
if (mode === 'EDIT') {
|
|
112
118
|
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
@@ -204,7 +204,7 @@ function ContentsCarousel(props) {
|
|
|
204
204
|
return renderSwiper(compositions);
|
|
205
205
|
}
|
|
206
206
|
// 데이터 연결
|
|
207
|
-
if (
|
|
207
|
+
if (CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
208
208
|
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
|
|
209
209
|
}
|
|
210
210
|
var queryDataValue = queryData[queryPath];
|
|
@@ -204,7 +204,7 @@ function ContentsList(props) {
|
|
|
204
204
|
return renderList(compositions);
|
|
205
205
|
}
|
|
206
206
|
// 데이터 연결
|
|
207
|
-
if (
|
|
207
|
+
if (CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
208
208
|
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
|
|
209
209
|
}
|
|
210
210
|
var queryDataValue = queryData[queryPath];
|
|
@@ -111,28 +111,32 @@ function Image(props) {
|
|
|
111
111
|
};
|
|
112
112
|
var showDataNotFound = function () {
|
|
113
113
|
if (mode !== 'EDIT') {
|
|
114
|
-
return
|
|
114
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
115
115
|
}
|
|
116
116
|
if (CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DATA' ||
|
|
117
117
|
CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_VALUETYPE === 'DELEGATEDDATA') {
|
|
118
118
|
if (!(queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData)) {
|
|
119
|
-
return
|
|
119
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
|
|
120
|
+
}
|
|
121
|
+
if (CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA === 'NONE') {
|
|
122
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
|
|
120
123
|
}
|
|
121
124
|
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA)) {
|
|
122
125
|
if (mode === 'EDIT') {
|
|
123
|
-
return
|
|
126
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10597" });
|
|
124
127
|
}
|
|
125
|
-
return
|
|
128
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
126
129
|
}
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
var value = queryContext.queryData[CB_CONTENT_PROP_IMAGE.CB_CONTENT_PROP_IMAGE_SPEC_CONNECTDATA];
|
|
131
|
+
if (!value) {
|
|
132
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
|
129
133
|
}
|
|
130
134
|
}
|
|
131
|
-
return
|
|
135
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
132
136
|
};
|
|
133
137
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_ImageWrapper, __assign({ style: __assign({}, effectCssProperties) }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, layout), { overflow: 'hidden' }), boxStyle.normal), { cursor: CLINKCursor }), hoverStyle: __assign({}, boxStyle.hover), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onClick: onClickCLINK }, { children: [(0, jsx_runtime_1.jsx)(S_Image, { src: imgSrc() === 'ERROR'
|
|
134
138
|
? 'https://static.publ.site/pages-sample/img_cb_style_prop_bgmedia_spec_imageselector_01.png'
|
|
135
|
-
: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }), showDataNotFound()
|
|
139
|
+
: imgSrc(), normalStyle: __assign({}, imgStyle.normal), hoverStyle: __assign({}, imgStyle.hover) }), showDataNotFound()] })) })) }))] }));
|
|
136
140
|
}
|
|
137
141
|
function parseImageCBStyle(style, hoverStyle, mode) {
|
|
138
142
|
var boxStyle = {
|
|
@@ -184,7 +184,7 @@ function SlideBanner(props) {
|
|
|
184
184
|
return renderSwiper(compositions);
|
|
185
185
|
}
|
|
186
186
|
// 데이터 연결
|
|
187
|
-
if (
|
|
187
|
+
if (CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA === 'NONE' || !queryPath || !queryData) {
|
|
188
188
|
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10477" }, "no-query");
|
|
189
189
|
}
|
|
190
190
|
var queryDataValue = queryData[queryPath];
|
|
@@ -95,6 +95,12 @@ function Text(props) {
|
|
|
95
95
|
CB_CONTENT_PROP_TEXT_SPEC_VALUETYPE === 'DELEGATEDDATA';
|
|
96
96
|
if (isDataConnected) {
|
|
97
97
|
if (queryContext === null || queryContext === void 0 ? void 0 : queryContext.queryData) {
|
|
98
|
+
if (CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA === 'NONE') {
|
|
99
|
+
if (mode === 'EDIT') {
|
|
100
|
+
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10477" });
|
|
101
|
+
}
|
|
102
|
+
return '';
|
|
103
|
+
}
|
|
98
104
|
if (!Object.prototype.hasOwnProperty.call(queryContext.queryData, CB_CONTENT_PROP_TEXT_SPEC_CONNECTDATA)) {
|
|
99
105
|
if (mode === 'EDIT') {
|
|
100
106
|
return (0, jsx_runtime_1.jsx)(DataNotFound_1.default, { stringKey: "str_10478" });
|
package/package.json
CHANGED