@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.js
CHANGED
|
@@ -160,7 +160,9 @@ var DashboardPublisher = {
|
|
|
160
160
|
if (DashReact.isObject(listeners) === true) {
|
|
161
161
|
Object.keys(listeners).forEach(function (handlerKey) {
|
|
162
162
|
if (handlerKey in listeners) {
|
|
163
|
-
listeners[handlerKey]
|
|
163
|
+
var events = listeners[handlerKey];
|
|
164
|
+
if (!Array.isArray(events)) return;
|
|
165
|
+
events.forEach(function (event) {
|
|
164
166
|
// subscribe our listeners
|
|
165
167
|
DashboardPublisher.sub(event, handlerMap[handlerKey], uuid);
|
|
166
168
|
});
|
|
@@ -21950,6 +21952,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21950
21952
|
}
|
|
21951
21953
|
}
|
|
21952
21954
|
function renderEditView() {
|
|
21955
|
+
var _parentWorkspace$dire;
|
|
21953
21956
|
var drag = dragType(item);
|
|
21954
21957
|
var numChildren = numChildrenForLayout(item, workspace["layout"]);
|
|
21955
21958
|
|
|
@@ -21964,7 +21967,7 @@ var LayoutBuilderGridItem = function LayoutBuilderGridItem(_ref) {
|
|
|
21964
21967
|
|
|
21965
21968
|
// determine the parent layout direction...
|
|
21966
21969
|
var parentLayout = getLayoutItemById(workspace["layout"], item["parent"]);
|
|
21967
|
-
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";
|
|
21968
21971
|
|
|
21969
21972
|
// determine if the item is at the "start/end" of the col/row
|
|
21970
21973
|
var isMaxOrder = isMaxOrderForItem(workspace["layout"], item, item["parent"]);
|