pds-dev-kit-web-test 2.7.589 → 2.7.591
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/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +5 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +5 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +5 -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
|
@@ -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");
|
|
@@ -212,7 +213,10 @@ function ContentsCarousel(props) {
|
|
|
212
213
|
var queryDataValue = queryData[queryPath];
|
|
213
214
|
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
|
|
214
215
|
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
215
|
-
|
|
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, {});
|
|
216
220
|
}
|
|
217
221
|
return renderSwiper(compositions);
|
|
218
222
|
};
|
|
@@ -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");
|
|
@@ -209,7 +210,10 @@ function ContentsList(props) {
|
|
|
209
210
|
var queryDataValue = queryData[queryPath];
|
|
210
211
|
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
|
|
211
212
|
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
212
|
-
|
|
213
|
+
if (mode === 'EDIT') {
|
|
214
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
|
|
215
|
+
}
|
|
216
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
213
217
|
}
|
|
214
218
|
return renderList(compositions);
|
|
215
219
|
};
|
|
@@ -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");
|
|
@@ -192,7 +193,10 @@ function SlideBanner(props) {
|
|
|
192
193
|
var queryDataValue = queryData[queryPath];
|
|
193
194
|
// 쿼리 데이터와 키가 있으나, 쿼리 데이터에 결과가 빈 경우
|
|
194
195
|
if (!(queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length)) {
|
|
195
|
-
|
|
196
|
+
if (mode === 'EDIT') {
|
|
197
|
+
return (0, jsx_runtime_1.jsx)(EmptyString, { stringKey: "str_10660" }, "empty-item");
|
|
198
|
+
}
|
|
199
|
+
return (0, jsx_runtime_1.jsx)(EmptyTextForRender_1.default, {});
|
|
196
200
|
}
|
|
197
201
|
return renderSwiper(compositions);
|
|
198
202
|
};
|
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;
|