@trops/dash-core 0.1.708 → 0.1.709
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 +10 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51968,12 +51968,20 @@ function ListenersTab(_ref1) {
|
|
|
51968
51968
|
return m;
|
|
51969
51969
|
}, [receivers]);
|
|
51970
51970
|
if (receivers.length === 0) {
|
|
51971
|
+
// Bots are emitters too (component `bot:<ref>`) — count them apart.
|
|
51972
|
+
var botCount = emitters.filter(function (e) {
|
|
51973
|
+
return String(e.component || "").startsWith("bot:");
|
|
51974
|
+
}).length;
|
|
51975
|
+
var widgetCount = emitters.length - botCount;
|
|
51976
|
+
var senders = [widgetCount > 0 && "".concat(widgetCount, " widget").concat(widgetCount === 1 ? "" : "s"), botCount > 0 && "".concat(botCount, " bot").concat(botCount === 1 ? "" : "s")].filter(Boolean);
|
|
51971
51977
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51972
51978
|
className: "flex items-center justify-center h-full text-sm opacity-60 text-center",
|
|
51973
51979
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
51974
|
-
children: [
|
|
51980
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51981
|
+
children: "No widget on this dashboard can listen for events yet."
|
|
51982
|
+
}), senders.length > 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51975
51983
|
className: "mt-2",
|
|
51976
|
-
children:
|
|
51984
|
+
children: "".concat(senders.join(" and "), " ").concat(emitters.length === 1 ? "sends" : "send", " events. Add a widget that listens to use them.")
|
|
51977
51985
|
})]
|
|
51978
51986
|
})
|
|
51979
51987
|
});
|