@trops/dash-core 0.1.118 → 0.1.120

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.js CHANGED
@@ -4050,25 +4050,25 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
4050
4050
  return _regeneratorRuntime.wrap(function (_context) {
4051
4051
  while (1) switch (_context.prev = _context.next) {
4052
4052
  case 0:
4053
- handleClose();
4054
- _context.prev = 1;
4055
- _context.next = 2;
4053
+ _context.prev = 0;
4054
+ _context.next = 1;
4056
4055
  return window.mainApi.dashboardConfig.importDashboardConfig(appId);
4057
- case 2:
4056
+ case 1:
4058
4057
  result = _context.sent;
4059
4058
  if (result && !result.canceled && result.success) {
4060
4059
  onReloadWorkspaces && onReloadWorkspaces();
4060
+ handleClose();
4061
4061
  }
4062
- _context.next = 4;
4062
+ _context.next = 3;
4063
4063
  break;
4064
+ case 2:
4065
+ _context.prev = 2;
4066
+ _context["catch"](0);
4064
4067
  case 3:
4065
- _context.prev = 3;
4066
- _context["catch"](1);
4067
- case 4:
4068
4068
  case "end":
4069
4069
  return _context.stop();
4070
4070
  }
4071
- }, _callee, null, [[1, 3]]);
4071
+ }, _callee, null, [[0, 2]]);
4072
4072
  }));
4073
4073
  return _handleImportFromFile.apply(this, arguments);
4074
4074
  }
@@ -4394,9 +4394,23 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
4394
4394
  });
4395
4395
  }
4396
4396
 
4397
- // Registry screen: no footer (DiscoverDashboardsDetail has its own back button)
4397
+ // Registry screen: Cancel button only (DiscoverDashboardsDetail has its own inline back button)
4398
4398
  if (creationMethod === "registry") {
4399
- return null;
4399
+ return /*#__PURE__*/jsxRuntime.jsx(DashReact.Modal.Footer, {
4400
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
4401
+ className: "flex flex-row space-x-2",
4402
+ children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
4403
+ onClick: handleClose,
4404
+ title: "Cancel",
4405
+ textSize: "text-base xl:text-lg",
4406
+ padding: "py-2 px-4",
4407
+ backgroundColor: "bg-gray-700",
4408
+ textColor: "text-gray-300",
4409
+ hoverTextColor: "hover:text-gray-100",
4410
+ hoverBackgroundColor: "hover:bg-gray-600"
4411
+ })
4412
+ })
4413
+ });
4400
4414
  }
4401
4415
 
4402
4416
  // Template wizard footer
@@ -19189,7 +19203,8 @@ var WidgetRenderer = function WidgetRenderer(_ref) {
19189
19203
  var uuidString = DashReact.getUUID(params.uuid);
19190
19204
  var widgetData = _objectSpread$m(_objectSpread$m({}, params), {}, {
19191
19205
  uuidString: uuidString,
19192
- providers: (config === null || config === void 0 ? void 0 : config.providers) || []
19206
+ providers: (config === null || config === void 0 ? void 0 : config.providers) || [],
19207
+ notifications: (config === null || config === void 0 ? void 0 : config.notifications) || []
19193
19208
  });
19194
19209
 
19195
19210
  // need to set the electron api here.
@@ -25149,6 +25164,7 @@ var ComponentManager = {
25149
25164
  events: "events" in c ? c["events"] : [],
25150
25165
  eventHandlers: "eventHandlers" in c ? c["eventHandlers"] : [],
25151
25166
  providers: "providers" in c ? c["providers"] : [],
25167
+ notifications: "notifications" in c ? c["notifications"] : [],
25152
25168
  icon: "icon" in c ? c["icon"] : null
25153
25169
  };
25154
25170
  }