@trops/dash-core 0.1.396 → 0.1.397
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 +42 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +42 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -55501,7 +55501,11 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
55501
55501
|
sidebarEnabled: sidebarEnabled,
|
|
55502
55502
|
onSidebarChange: popout ? null : handleSidebarToggle,
|
|
55503
55503
|
scrollableEnabled: workspacePages.length <= 1 ? getRootScrollable() : undefined,
|
|
55504
|
-
onScrollableChange: workspacePages.length <= 1 && !popout ? handleScrollableChange : null
|
|
55504
|
+
onScrollableChange: workspacePages.length <= 1 && !popout ? handleScrollableChange : null,
|
|
55505
|
+
onOpenConfig: popout ? null : function () {
|
|
55506
|
+
return setIsConfigModalOpen(true);
|
|
55507
|
+
},
|
|
55508
|
+
configUnresolvedCount: unresolvedCount
|
|
55505
55509
|
}), /*#__PURE__*/jsxs(DashboardThemeProvider, {
|
|
55506
55510
|
themeKey: workspaceSelected === null || workspaceSelected === void 0 ? void 0 : workspaceSelected.themeKey,
|
|
55507
55511
|
children: [hasMissing && missingComponents.length >= 2 && !dismissedMissingForWorkspace.has(workspaceSelected === null || workspaceSelected === void 0 ? void 0 : workspaceSelected.id) && /*#__PURE__*/jsxs("div", {
|
|
@@ -55941,7 +55945,11 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
55941
55945
|
_ref$sidebarEnabled = _ref.sidebarEnabled,
|
|
55942
55946
|
sidebarEnabled = _ref$sidebarEnabled === void 0 ? false : _ref$sidebarEnabled,
|
|
55943
55947
|
_ref$onSidebarChange = _ref.onSidebarChange,
|
|
55944
|
-
onSidebarChange = _ref$onSidebarChange === void 0 ? null : _ref$onSidebarChange
|
|
55948
|
+
onSidebarChange = _ref$onSidebarChange === void 0 ? null : _ref$onSidebarChange,
|
|
55949
|
+
_ref$onOpenConfig = _ref.onOpenConfig,
|
|
55950
|
+
onOpenConfig = _ref$onOpenConfig === void 0 ? null : _ref$onOpenConfig,
|
|
55951
|
+
_ref$configUnresolved = _ref.configUnresolvedCount,
|
|
55952
|
+
configUnresolvedCount = _ref$configUnresolved === void 0 ? 0 : _ref$configUnresolved;
|
|
55945
55953
|
var _useState = useState(workspace),
|
|
55946
55954
|
_useState2 = _slicedToArray(_useState, 2),
|
|
55947
55955
|
workspaceSelected = _useState2[0],
|
|
@@ -55968,7 +55976,10 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
55968
55976
|
className: "font-bold text-base"
|
|
55969
55977
|
}), /*#__PURE__*/jsxs("div", {
|
|
55970
55978
|
className: "flex flex-row items-center gap-1",
|
|
55971
|
-
children: [
|
|
55979
|
+
children: [onOpenConfig !== null && /*#__PURE__*/jsx(DashboardConfigButton, {
|
|
55980
|
+
onClick: onOpenConfig,
|
|
55981
|
+
unresolvedCount: configUnresolvedCount
|
|
55982
|
+
}), onPopout !== null && /*#__PURE__*/jsx(ButtonIcon, {
|
|
55972
55983
|
icon: "arrow-up-right-from-square",
|
|
55973
55984
|
onClick: onPopout,
|
|
55974
55985
|
hoverBackgroundColor: "hover:bg-indigo-700"
|
|
@@ -56061,8 +56072,11 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
56061
56072
|
setEnabled: onSidebarChange
|
|
56062
56073
|
})]
|
|
56063
56074
|
}), /*#__PURE__*/jsxs("div", {
|
|
56064
|
-
className: "flex flex-row space-x-1 shrink-0",
|
|
56065
|
-
children: [
|
|
56075
|
+
className: "flex flex-row space-x-1 shrink-0 items-center",
|
|
56076
|
+
children: [onOpenConfig !== null && /*#__PURE__*/jsx(DashboardConfigButton, {
|
|
56077
|
+
onClick: onOpenConfig,
|
|
56078
|
+
unresolvedCount: configUnresolvedCount
|
|
56079
|
+
}), onClickEdit !== null && /*#__PURE__*/jsx(ButtonIcon2, {
|
|
56066
56080
|
icon: "xmark",
|
|
56067
56081
|
text: "Cancel",
|
|
56068
56082
|
onClick: onClickEdit,
|
|
@@ -56079,6 +56093,29 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
56079
56093
|
});
|
|
56080
56094
|
};
|
|
56081
56095
|
|
|
56096
|
+
/**
|
|
56097
|
+
* DashboardConfigButton — gear icon with an optional amber dot when the
|
|
56098
|
+
* current dashboard has unresolved provider bindings. Opens the
|
|
56099
|
+
* Dashboard Config modal. Kept local to DashboardHeader because no
|
|
56100
|
+
* other caller needs it.
|
|
56101
|
+
*/
|
|
56102
|
+
function DashboardConfigButton(_ref8) {
|
|
56103
|
+
var onClick = _ref8.onClick,
|
|
56104
|
+
_ref8$unresolvedCount = _ref8.unresolvedCount,
|
|
56105
|
+
unresolvedCount = _ref8$unresolvedCount === void 0 ? 0 : _ref8$unresolvedCount;
|
|
56106
|
+
return /*#__PURE__*/jsxs("div", {
|
|
56107
|
+
className: "relative inline-flex",
|
|
56108
|
+
children: [/*#__PURE__*/jsx(ButtonIcon, {
|
|
56109
|
+
icon: "sliders",
|
|
56110
|
+
onClick: onClick,
|
|
56111
|
+
hoverBackgroundColor: "hover:bg-indigo-700"
|
|
56112
|
+
}), unresolvedCount > 0 && /*#__PURE__*/jsx("span", {
|
|
56113
|
+
className: "absolute top-1 right-1 h-2 w-2 rounded-full bg-amber-400 border border-black/40 pointer-events-none",
|
|
56114
|
+
title: "".concat(unresolvedCount, " unresolved provider").concat(unresolvedCount === 1 ? "" : "s")
|
|
56115
|
+
})]
|
|
56116
|
+
});
|
|
56117
|
+
}
|
|
56118
|
+
|
|
56082
56119
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56083
56120
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
56084
56121
|
var MAX_LOG_ENTRIES = 200;
|