@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.esm.js
CHANGED
|
@@ -51950,12 +51950,20 @@ function ListenersTab(_ref1) {
|
|
|
51950
51950
|
return m;
|
|
51951
51951
|
}, [receivers]);
|
|
51952
51952
|
if (receivers.length === 0) {
|
|
51953
|
+
// Bots are emitters too (component `bot:<ref>`) — count them apart.
|
|
51954
|
+
var botCount = emitters.filter(function (e) {
|
|
51955
|
+
return String(e.component || "").startsWith("bot:");
|
|
51956
|
+
}).length;
|
|
51957
|
+
var widgetCount = emitters.length - botCount;
|
|
51958
|
+
var senders = [widgetCount > 0 && "".concat(widgetCount, " widget").concat(widgetCount === 1 ? "" : "s"), botCount > 0 && "".concat(botCount, " bot").concat(botCount === 1 ? "" : "s")].filter(Boolean);
|
|
51953
51959
|
return /*#__PURE__*/jsx("div", {
|
|
51954
51960
|
className: "flex items-center justify-center h-full text-sm opacity-60 text-center",
|
|
51955
51961
|
children: /*#__PURE__*/jsxs("div", {
|
|
51956
|
-
children: [
|
|
51962
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
51963
|
+
children: "No widget on this dashboard can listen for events yet."
|
|
51964
|
+
}), senders.length > 0 && /*#__PURE__*/jsx("div", {
|
|
51957
51965
|
className: "mt-2",
|
|
51958
|
-
children:
|
|
51966
|
+
children: "".concat(senders.join(" and "), " ").concat(emitters.length === 1 ? "sends" : "send", " events. Add a widget that listens to use them.")
|
|
51959
51967
|
})]
|
|
51960
51968
|
})
|
|
51961
51969
|
});
|