@trops/dash-core 0.1.254 → 0.1.256
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 +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -142,7 +142,9 @@ var DashboardPublisher = {
|
|
|
142
142
|
if (isObject(listeners) === true) {
|
|
143
143
|
Object.keys(listeners).forEach(function (handlerKey) {
|
|
144
144
|
if (handlerKey in listeners) {
|
|
145
|
-
listeners[handlerKey]
|
|
145
|
+
var events = listeners[handlerKey];
|
|
146
|
+
if (!Array.isArray(events)) return;
|
|
147
|
+
events.forEach(function (event) {
|
|
146
148
|
// subscribe our listeners
|
|
147
149
|
DashboardPublisher.sub(event, handlerMap[handlerKey], uuid);
|
|
148
150
|
});
|
|
@@ -21932,6 +21934,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21932
21934
|
}
|
|
21933
21935
|
}
|
|
21934
21936
|
function renderEditView() {
|
|
21937
|
+
var _parentWorkspace$dire;
|
|
21935
21938
|
var drag = dragType(item);
|
|
21936
21939
|
var numChildren = numChildrenForLayout(item, workspace["layout"]);
|
|
21937
21940
|
|
|
@@ -21946,7 +21949,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21946
21949
|
|
|
21947
21950
|
// determine the parent layout direction...
|
|
21948
21951
|
var parentLayout = getLayoutItemById(workspace["layout"], item["parent"]);
|
|
21949
|
-
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";
|
|
21950
21953
|
|
|
21951
21954
|
// determine if the item is at the "start/end" of the col/row
|
|
21952
21955
|
var isMaxOrder = isMaxOrderForItem(workspace["layout"], item, item["parent"]);
|