pds-dev-kit-web-test 2.7.571 → 2.7.573
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.
|
@@ -17,7 +17,7 @@ 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
|
-
|
|
20
|
+
require("../dynamicLayoutContext");
|
|
21
21
|
var Composition_1 = __importDefault(require("./Composition"));
|
|
22
22
|
function createCompositions(_a) {
|
|
23
23
|
var valueType = _a.valueType, queryPath = _a.queryPath, queryData = _a.queryData, compositions = _a.compositions, limit = _a.limit, componentBlockCode = _a.componentBlockCode, device = _a.device, navigationHandler = _a.navigationHandler, mode = _a.mode;
|
|
@@ -25,20 +25,23 @@ function createCompositions(_a) {
|
|
|
25
25
|
// 직접 입력 유형인 경우
|
|
26
26
|
if (!isQueryDataConnected) {
|
|
27
27
|
var valueTypeCompositions = compositions.filter(function (composition) { return !!(composition === null || composition === void 0 ? void 0 : composition.ccbManualItemUuid); });
|
|
28
|
-
return valueTypeCompositions.map(function (composition) { return (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
return valueTypeCompositions.map(function (composition) { return (
|
|
29
|
+
// <dynamicLayoutContext.Provider
|
|
30
|
+
// key={composition.id}
|
|
31
|
+
// value={{
|
|
32
|
+
// mode,
|
|
33
|
+
// device,
|
|
34
|
+
// navigationHandler
|
|
35
|
+
// }}
|
|
36
|
+
// >
|
|
37
|
+
(0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition, { ccbCode: componentBlockCode }), composition.id)
|
|
38
|
+
// </dynamicLayoutContext.Provider>
|
|
39
|
+
); });
|
|
33
40
|
}
|
|
34
41
|
var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[queryPath];
|
|
35
42
|
var queryComposition = compositions.find(function (composition) { return !composition.ccbManualItemUuid; });
|
|
36
43
|
if (!queryDataValue)
|
|
37
44
|
return [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})];
|
|
38
|
-
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)(
|
|
39
|
-
mode: mode,
|
|
40
|
-
device: device,
|
|
41
|
-
navigationHandler: navigationHandler
|
|
42
|
-
} }, { children: (0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, queryComposition, { ccbCode: componentBlockCode })) })) }), index)); });
|
|
45
|
+
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)); });
|
|
43
46
|
}
|
|
44
47
|
exports.createCompositions = createCompositions;
|