@trops/dash-core 0.1.228 → 0.1.230
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 +12 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3895,7 +3895,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
3895
3895
|
className: "space-y-1.5",
|
|
3896
3896
|
children: widgetDeps.map(function (w, idx) {
|
|
3897
3897
|
var _compatibility$widget;
|
|
3898
|
-
var status = (compatibility === null || compatibility === void 0 || (_compatibility$widget = compatibility.widgets) === null || _compatibility$widget === void 0 ? void 0 : _compatibility$widget[w
|
|
3898
|
+
var status = (compatibility === null || compatibility === void 0 || (_compatibility$widget = compatibility.widgets) === null || _compatibility$widget === void 0 ? void 0 : _compatibility$widget[w["package"] || w.name]) || "unknown";
|
|
3899
3899
|
var compat = getCompatIcon(status);
|
|
3900
3900
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3901
3901
|
className: "p-2 rounded ".concat(currentTheme["bg-primary-medium"], " flex items-center gap-2"),
|
|
@@ -37904,9 +37904,9 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37904
37904
|
className: "flex flex-col h-full",
|
|
37905
37905
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
37906
37906
|
className: "flex-shrink-0 flex flex-col gap-2 px-3 py-2 ".concat(headerStyles.backgroundColor || ""),
|
|
37907
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
37907
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
37908
37908
|
className: "flex items-center gap-2",
|
|
37909
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37909
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37910
37910
|
className: "flex-1",
|
|
37911
37911
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.SearchInput, {
|
|
37912
37912
|
value: searchQuery,
|
|
@@ -37914,7 +37914,15 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37914
37914
|
placeholder: "Search dashboards...",
|
|
37915
37915
|
inputClassName: "py-1.5 text-xs"
|
|
37916
37916
|
})
|
|
37917
|
-
})
|
|
37917
|
+
}), onOpenWizard && /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
37918
|
+
onClick: onOpenWizard,
|
|
37919
|
+
className: "flex-shrink-0 p-1.5 rounded opacity-60 hover:opacity-100 transition-opacity",
|
|
37920
|
+
title: "Dashboard Wizard",
|
|
37921
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
37922
|
+
icon: "wand-magic-sparkles",
|
|
37923
|
+
className: "h-3.5 w-3.5"
|
|
37924
|
+
})
|
|
37925
|
+
})]
|
|
37918
37926
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tabs3, {
|
|
37919
37927
|
value: installMode === "marketplace" ? "marketplace" : viewMode,
|
|
37920
37928
|
onValueChange: function onValueChange(val) {
|
|
@@ -37943,14 +37951,6 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37943
37951
|
value: "marketplace",
|
|
37944
37952
|
className: "flex-1",
|
|
37945
37953
|
children: "Marketplace"
|
|
37946
|
-
}), onOpenWizard && /*#__PURE__*/jsxRuntime.jsx(DashReact.Tabs3.Trigger, {
|
|
37947
|
-
value: "wizard",
|
|
37948
|
-
className: "flex-1",
|
|
37949
|
-
onClick: function onClick(e) {
|
|
37950
|
-
e.preventDefault();
|
|
37951
|
-
onOpenWizard();
|
|
37952
|
-
},
|
|
37953
|
-
children: "Wizard"
|
|
37954
37954
|
})]
|
|
37955
37955
|
})
|
|
37956
37956
|
})]
|