@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.esm.js
CHANGED
|
@@ -21934,6 +21934,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21934
21934
|
}
|
|
21935
21935
|
}
|
|
21936
21936
|
function renderEditView() {
|
|
21937
|
+
var _parentWorkspace$dire;
|
|
21937
21938
|
var drag = dragType(item);
|
|
21938
21939
|
var numChildren = numChildrenForLayout(item, workspace["layout"]);
|
|
21939
21940
|
|
|
@@ -21948,7 +21949,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21948
21949
|
|
|
21949
21950
|
// determine the parent layout direction...
|
|
21950
21951
|
var parentLayout = getLayoutItemById(workspace["layout"], item["parent"]);
|
|
21951
|
-
var parentDirection = parentLayout ? parentLayout["direction"] : parentWorkspace["direction"];
|
|
21952
|
+
var parentDirection = parentLayout ? parentLayout["direction"] : (_parentWorkspace$dire = parentWorkspace === null || parentWorkspace === void 0 ? void 0 : parentWorkspace["direction"]) !== null && _parentWorkspace$dire !== void 0 ? _parentWorkspace$dire : "col";
|
|
21952
21953
|
|
|
21953
21954
|
// determine if the item is at the "start/end" of the col/row
|
|
21954
21955
|
var isMaxOrder = isMaxOrderForItem(workspace["layout"], item, item["parent"]);
|
|
@@ -25352,7 +25353,7 @@ var _renderLayout = function renderLayout(_ref) {
|
|
|
25352
25353
|
|
|
25353
25354
|
// if (gridLayout) console.log("rendering grid ", child, childLayout);
|
|
25354
25355
|
|
|
25355
|
-
return hasChildren === 1 && canHaveChildren === true ? /*#__PURE__*/jsx(LayoutGridContainer, {
|
|
25356
|
+
return hasChildren === 1 && canHaveChildren === true || component === "LayoutGridContainer" ? /*#__PURE__*/jsx(LayoutGridContainer, {
|
|
25356
25357
|
uuid: uuid,
|
|
25357
25358
|
id: id,
|
|
25358
25359
|
item: childLayout,
|