@trops/dash-core 0.1.270 → 0.1.272
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 +15 -35
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +15 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23915,20 +23915,21 @@ var ExternalWidget = function ExternalWidget(_ref) {
|
|
|
23915
23915
|
description = _ref.description,
|
|
23916
23916
|
icon = _ref.icon;
|
|
23917
23917
|
_objectWithoutProperties(_ref, _excluded$3);
|
|
23918
|
-
return /*#__PURE__*/
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
|
|
23930
|
-
|
|
23931
|
-
|
|
23918
|
+
return /*#__PURE__*/jsxs("div", {
|
|
23919
|
+
className: "flex flex-col h-full justify-center items-center w-full gap-2 p-4 text-center",
|
|
23920
|
+
children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
|
|
23921
|
+
icon: icon || "triangle-exclamation",
|
|
23922
|
+
className: "h-5 w-5 text-amber-500"
|
|
23923
|
+
}), /*#__PURE__*/jsx("div", {
|
|
23924
|
+
className: "text-sm font-semibold text-gray-300",
|
|
23925
|
+
children: "Widget Unavailable"
|
|
23926
|
+
}), title && /*#__PURE__*/jsx("div", {
|
|
23927
|
+
className: "text-xs text-gray-500 font-mono",
|
|
23928
|
+
children: title
|
|
23929
|
+
}), /*#__PURE__*/jsx("div", {
|
|
23930
|
+
className: "text-xs text-gray-600 mt-1",
|
|
23931
|
+
children: description || "Check widget configuration or reinstall from the registry."
|
|
23932
|
+
})]
|
|
23932
23933
|
});
|
|
23933
23934
|
};
|
|
23934
23935
|
|
|
@@ -26607,13 +26608,6 @@ function isWidgetResolvable(componentKey) {
|
|
|
26607
26608
|
if (m[componentKey] && typeof m[componentKey].component === "function") {
|
|
26608
26609
|
return true;
|
|
26609
26610
|
}
|
|
26610
|
-
// Fallback: match by config.name (mirrors getComponent's name fallback)
|
|
26611
|
-
for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
|
|
26612
|
-
var key = _Object$keys[_i];
|
|
26613
|
-
if (m[key].name === componentKey && typeof m[key].component === "function") {
|
|
26614
|
-
return true;
|
|
26615
|
-
}
|
|
26616
|
-
}
|
|
26617
26611
|
return false;
|
|
26618
26612
|
}
|
|
26619
26613
|
|
|
@@ -29486,20 +29480,6 @@ var ComponentManager = {
|
|
|
29486
29480
|
var m = this.componentMap();
|
|
29487
29481
|
// Try exact match first (works for both scoped ids and legacy names)
|
|
29488
29482
|
var cmp = component in m ? m[component] : null;
|
|
29489
|
-
|
|
29490
|
-
// Fallback: scan by config.name for backward compatibility
|
|
29491
|
-
// Handles saved layouts that reference old-style names (e.g., "AnalogClockWidget")
|
|
29492
|
-
// when the widget is now registered under a scoped id (e.g., "trops.clock.AnalogClockWidget")
|
|
29493
|
-
if (cmp === null) {
|
|
29494
|
-
for (var _i = 0, _Object$keys = Object.keys(m); _i < _Object$keys.length; _i++) {
|
|
29495
|
-
var key = _Object$keys[_i];
|
|
29496
|
-
if (m[key].name === component) {
|
|
29497
|
-
cmp = m[key];
|
|
29498
|
-
cmp["componentName"] = key;
|
|
29499
|
-
return cmp;
|
|
29500
|
-
}
|
|
29501
|
-
}
|
|
29502
|
-
}
|
|
29503
29483
|
if (cmp !== null) {
|
|
29504
29484
|
cmp["componentName"] = component;
|
|
29505
29485
|
return cmp;
|