pds-dev-kit-web-test 2.7.447 → 2.7.449
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 +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +1 -1
- package/dist/src/sub/DynamicLayout/utils/groupUtils.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/utils/groupUtils.js +10 -1
- package/package.json +1 -1
|
@@ -33,7 +33,8 @@ function FlexGridItem(_a) {
|
|
|
33
33
|
var getHeightFitContent = function () {
|
|
34
34
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
35
35
|
if ('CB_STYLE_PROP_TEXT' in cb.jsonProperties.data) {
|
|
36
|
-
var
|
|
36
|
+
var defaultValue = cb.componentBlockCode === 'CB_BTN' ? false : true;
|
|
37
|
+
var desktopValue = (_b = (_a = cb.jsonProperties.data.CB_STYLE_PROP_TEXT) === null || _a === void 0 ? void 0 : _a.CB_STYLE_PROP_TEXT_SPEC_FITCONTENT) !== null && _b !== void 0 ? _b : defaultValue;
|
|
37
38
|
if (device === 'DESKTOP') {
|
|
38
39
|
return desktopValue;
|
|
39
40
|
}
|
|
@@ -182,7 +182,7 @@ function ContentsList(props) {
|
|
|
182
182
|
if (mode === 'EDIT') {
|
|
183
183
|
style.visibility = 'visible';
|
|
184
184
|
}
|
|
185
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), isEditModeAndHeightFitContent && ((0, jsx_runtime_1.jsx)(S_HeightFitContentCover_1.S_HeightFitContentCover, { bottomText: t('str_10106') })), Object.entries(componentGroups).map(function (_a) {
|
|
185
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), isEditModeAndHeightFitContent && ((0, jsx_runtime_1.jsx)(S_HeightFitContentCover_1.S_HeightFitContentCover, { className: "height-fit-content-cover", bottomText: t('str_10106') })), Object.entries(componentGroups).map(function (_a) {
|
|
186
186
|
var position = _a[0], groupComponents = _a[1];
|
|
187
187
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-group ccb-elements", ref: function (el) {
|
|
188
188
|
if (el) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { type Block } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
2
3
|
import type { ComponentBlock } from '../sections/CustomSection/types';
|
|
3
4
|
import type { Device } from '../sections/CustomSection/util/types';
|
|
4
|
-
import type { Block } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
|
|
5
5
|
import type { LayoutItem } from 'publ-echo/dist/lib';
|
|
6
6
|
export declare function findAllChildrenCbIds(block: Block, targetGroupId: string): number[];
|
|
7
7
|
export default function RenderPedigreeRecursively({ isEditMode, block, layoutItems, cbs, parentGroupArea, rowHeight, device, selectedRows, isParentGroupHeightVariable }: {
|
|
@@ -52,6 +52,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
exports.findAllChildrenCbIds = void 0;
|
|
54
54
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
55
|
+
var group_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/group");
|
|
55
56
|
var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
|
|
56
57
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
57
58
|
var ErrorBoundary_1 = require("../components/Section/ErrorBoundary");
|
|
@@ -118,7 +119,15 @@ function RenderPedigreeRecursively(_a) {
|
|
|
118
119
|
isEditMode: isEditMode, isParentGroupHeightVariable: isGBHeightVariable_1 }, child.blockId)); }) })));
|
|
119
120
|
}
|
|
120
121
|
// default: TYPE === 'COMPONENT_BLOCK'
|
|
121
|
-
var cbIndex = cbs.findIndex(function (c) {
|
|
122
|
+
var cbIndex = cbs.findIndex(function (c) {
|
|
123
|
+
if (c.blockId) {
|
|
124
|
+
return c.blockId === block.blockId;
|
|
125
|
+
}
|
|
126
|
+
if (!c.blockId) {
|
|
127
|
+
return (0, group_1.formatCbIdToBlockId)(c.id) === block.blockId;
|
|
128
|
+
}
|
|
129
|
+
return false;
|
|
130
|
+
});
|
|
122
131
|
var cb = cbs[cbIndex];
|
|
123
132
|
if (!cb) {
|
|
124
133
|
return (0, jsx_runtime_1.jsxs)("div", { children: ["NO CB FOUND FOR ", block.blockId] });
|