@trops/dash-core 0.1.255 → 0.1.257
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/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21952,6 +21952,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21952
21952
|
}
|
|
21953
21953
|
}
|
|
21954
21954
|
function renderEditView() {
|
|
21955
|
+
var _parentWorkspace$dire;
|
|
21955
21956
|
var drag = dragType(item);
|
|
21956
21957
|
var numChildren = numChildrenForLayout(item, workspace["layout"]);
|
|
21957
21958
|
|
|
@@ -21966,7 +21967,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21966
21967
|
|
|
21967
21968
|
// determine the parent layout direction...
|
|
21968
21969
|
var parentLayout = getLayoutItemById(workspace["layout"], item["parent"]);
|
|
21969
|
-
var parentDirection = parentLayout ? parentLayout["direction"] : parentWorkspace["direction"];
|
|
21970
|
+
var parentDirection = parentLayout ? parentLayout["direction"] : (_parentWorkspace$dire = parentWorkspace === null || parentWorkspace === void 0 ? void 0 : parentWorkspace["direction"]) !== null && _parentWorkspace$dire !== void 0 ? _parentWorkspace$dire : "col";
|
|
21970
21971
|
|
|
21971
21972
|
// determine if the item is at the "start/end" of the col/row
|
|
21972
21973
|
var isMaxOrder = isMaxOrderForItem(workspace["layout"], item, item["parent"]);
|
|
@@ -25370,7 +25371,7 @@ var _renderLayout = function renderLayout(_ref) {
|
|
|
25370
25371
|
|
|
25371
25372
|
// if (gridLayout) console.log("rendering grid ", child, childLayout);
|
|
25372
25373
|
|
|
25373
|
-
return hasChildren === 1 && canHaveChildren === true ? /*#__PURE__*/jsxRuntime.jsx(LayoutGridContainer, {
|
|
25374
|
+
return hasChildren === 1 && canHaveChildren === true || component === "LayoutGridContainer" ? /*#__PURE__*/jsxRuntime.jsx(LayoutGridContainer, {
|
|
25374
25375
|
uuid: uuid,
|
|
25375
25376
|
id: id,
|
|
25376
25377
|
item: childLayout,
|