@trops/dash-core 0.1.544 → 0.1.546
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 +53 -31
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +52 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56769,8 +56769,8 @@ var DashboardConfigModal = function DashboardConfigModal(_ref) {
|
|
|
56769
56769
|
return setActiveTab("dependencies");
|
|
56770
56770
|
},
|
|
56771
56771
|
className: "px-3 py-1.5 text-sm font-medium -mb-px border-b-2 ".concat(activeTab === "dependencies" ? "border-indigo-400" : "border-transparent opacity-60 hover:opacity-100"),
|
|
56772
|
-
children: ["Dependencies", dependencyCount > 0 && /*#__PURE__*/jsxRuntime.jsxs(
|
|
56773
|
-
className: "ml-2
|
|
56772
|
+
children: ["Dependencies", dependencyCount > 0 && /*#__PURE__*/jsxRuntime.jsxs(DashReact.Caption2, {
|
|
56773
|
+
className: "ml-2",
|
|
56774
56774
|
children: ["(", dependencyCount, ")"]
|
|
56775
56775
|
}), hasUnknownDependency && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
56776
56776
|
className: "ml-1 inline-block h-1.5 w-1.5 rounded-full bg-amber-400 align-middle"
|
|
@@ -56993,7 +56993,7 @@ function NotificationsTab(_ref4) {
|
|
|
56993
56993
|
placeholder: "Search widgets...",
|
|
56994
56994
|
inputClassName: "py-1.5 text-xs"
|
|
56995
56995
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
56996
|
-
className: "flex flex-row items-center justify-between text-
|
|
56996
|
+
className: "flex flex-row items-center justify-between text-xs",
|
|
56997
56997
|
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
56998
56998
|
className: "opacity-50",
|
|
56999
56999
|
children: [filtered.length, " of ", widgetInstances.length, " widget", widgetInstances.length === 1 ? "" : "s"]
|
|
@@ -57028,11 +57028,10 @@ function NotificationsTab(_ref4) {
|
|
|
57028
57028
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
57029
57029
|
className: "text-sm font-medium",
|
|
57030
57030
|
children: wi.title
|
|
57031
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(
|
|
57032
|
-
className: "
|
|
57031
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(DashReact.Caption, {
|
|
57032
|
+
className: "font-mono",
|
|
57033
57033
|
children: [wi.component, wi.itemId != null ? " \xB7 #".concat(wi.itemId) : ""]
|
|
57034
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
57035
|
-
className: "text-[10px] opacity-40",
|
|
57034
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Caption3, {
|
|
57036
57035
|
children: wi["package"]
|
|
57037
57036
|
})]
|
|
57038
57037
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -57049,8 +57048,7 @@ function NotificationsTab(_ref4) {
|
|
|
57049
57048
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
57050
57049
|
className: "text-xs",
|
|
57051
57050
|
children: notif.displayName
|
|
57052
|
-
}), notif.description && /*#__PURE__*/jsxRuntime.jsx(
|
|
57053
|
-
className: "text-[10px] opacity-50",
|
|
57051
|
+
}), notif.description && /*#__PURE__*/jsxRuntime.jsx(DashReact.Caption, {
|
|
57054
57052
|
children: notif.description
|
|
57055
57053
|
})]
|
|
57056
57054
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Switch, {
|
|
@@ -57110,8 +57108,11 @@ function ProvidersTab(_ref5) {
|
|
|
57110
57108
|
var topValue = allSame ? ((_selectedRows$ = selectedRows[0]) === null || _selectedRows$ === void 0 ? void 0 : _selectedRows$.resolvedProviderName) || "" : "";
|
|
57111
57109
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
57112
57110
|
className: "flex flex-row gap-3 h-full min-h-0",
|
|
57113
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(
|
|
57114
|
-
|
|
57111
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
|
|
57112
|
+
padding: "",
|
|
57113
|
+
shadow: "",
|
|
57114
|
+
rounded: "rounded-lg",
|
|
57115
|
+
className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
|
|
57115
57116
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
57116
57117
|
className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
|
|
57117
57118
|
children: "Provider Types"
|
|
@@ -57150,8 +57151,11 @@ function ProvidersTab(_ref5) {
|
|
|
57150
57151
|
}, providerType);
|
|
57151
57152
|
})
|
|
57152
57153
|
})]
|
|
57153
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
57154
|
-
|
|
57154
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Card2, {
|
|
57155
|
+
padding: "",
|
|
57156
|
+
shadow: "",
|
|
57157
|
+
rounded: "rounded-lg",
|
|
57158
|
+
className: "flex-1 min-w-0 overflow-hidden flex flex-col",
|
|
57155
57159
|
children: selectedType ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
57156
57160
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
57157
57161
|
className: "px-4 py-3 flex-shrink-0",
|
|
@@ -57214,12 +57218,13 @@ function ProvidersTab(_ref5) {
|
|
|
57214
57218
|
"aria-label": "required",
|
|
57215
57219
|
children: "*"
|
|
57216
57220
|
})]
|
|
57217
|
-
}), (row.widgetRef || row.component) && /*#__PURE__*/jsxRuntime.jsx(
|
|
57218
|
-
|
|
57221
|
+
}), (row.widgetRef || row.component) && /*#__PURE__*/jsxRuntime.jsx(DashReact.Caption, {
|
|
57222
|
+
block: true,
|
|
57223
|
+
className: "font-mono truncate mt-0.5",
|
|
57219
57224
|
title: row.widgetRef || row.component,
|
|
57220
57225
|
children: row.widgetRef || row.component
|
|
57221
57226
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
57222
|
-
className: "flex items-center gap-1.5 mt-1 text-
|
|
57227
|
+
className: "flex items-center gap-1.5 mt-1 text-xs",
|
|
57223
57228
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
57224
57229
|
className: "uppercase tracking-wide px-1.5 py-0.5 rounded font-semibold ".concat(needsAttention ? "bg-red-600 text-white" : isRequired ? "bg-indigo-800 text-indigo-100" : "bg-gray-700 text-gray-300"),
|
|
57225
57230
|
children: isRequired ? "required" : "optional"
|
|
@@ -57408,8 +57413,11 @@ function ListenersTab(_ref0) {
|
|
|
57408
57413
|
className: "flex flex-col gap-3 h-full min-h-0",
|
|
57409
57414
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
57410
57415
|
className: "flex flex-row gap-3 flex-1 min-h-0",
|
|
57411
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(
|
|
57412
|
-
|
|
57416
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
|
|
57417
|
+
padding: "",
|
|
57418
|
+
shadow: "",
|
|
57419
|
+
rounded: "rounded-lg",
|
|
57420
|
+
className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
|
|
57413
57421
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
57414
57422
|
className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
|
|
57415
57423
|
children: "Widgets"
|
|
@@ -57426,8 +57434,9 @@ function ListenersTab(_ref0) {
|
|
|
57426
57434
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
57427
57435
|
className: "text-sm font-medium truncate",
|
|
57428
57436
|
children: r.label
|
|
57429
|
-
}), r.widgetRef && /*#__PURE__*/jsxRuntime.jsx(
|
|
57430
|
-
|
|
57437
|
+
}), r.widgetRef && /*#__PURE__*/jsxRuntime.jsx(DashReact.Caption, {
|
|
57438
|
+
block: true,
|
|
57439
|
+
className: "font-mono truncate mt-0.5",
|
|
57431
57440
|
title: r.widgetRef,
|
|
57432
57441
|
children: r.widgetRef
|
|
57433
57442
|
})]
|
|
@@ -57452,8 +57461,11 @@ function ListenersTab(_ref0) {
|
|
|
57452
57461
|
onAdd: onAdd,
|
|
57453
57462
|
onRemove: onRemove
|
|
57454
57463
|
})]
|
|
57455
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(
|
|
57456
|
-
|
|
57464
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(DashReact.Card2, {
|
|
57465
|
+
padding: "",
|
|
57466
|
+
shadow: "",
|
|
57467
|
+
rounded: "rounded-lg",
|
|
57468
|
+
className: "flex-1 min-w-0 flex items-center justify-center text-sm opacity-60",
|
|
57457
57469
|
children: "Pick a widget on the left to wire its handlers."
|
|
57458
57470
|
})]
|
|
57459
57471
|
})
|
|
@@ -57487,8 +57499,11 @@ function HandlersColumn(_ref10) {
|
|
|
57487
57499
|
}
|
|
57488
57500
|
return m;
|
|
57489
57501
|
}, [myWiring]);
|
|
57490
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
57491
|
-
|
|
57502
|
+
return /*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
|
|
57503
|
+
padding: "",
|
|
57504
|
+
shadow: "",
|
|
57505
|
+
rounded: "rounded-lg",
|
|
57506
|
+
className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
|
|
57492
57507
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
57493
57508
|
className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
|
|
57494
57509
|
children: "Event Handlers"
|
|
@@ -57573,8 +57588,11 @@ function EventsColumn(_ref11) {
|
|
|
57573
57588
|
return w.isOrphan;
|
|
57574
57589
|
});
|
|
57575
57590
|
if (!handlerName) {
|
|
57576
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
57577
|
-
|
|
57591
|
+
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Card2, {
|
|
57592
|
+
padding: "",
|
|
57593
|
+
shadow: "",
|
|
57594
|
+
rounded: "rounded-lg",
|
|
57595
|
+
className: "flex-1 min-w-0 flex items-center justify-center text-sm opacity-60",
|
|
57578
57596
|
children: "Select a handler to view available events."
|
|
57579
57597
|
});
|
|
57580
57598
|
}
|
|
@@ -57602,8 +57620,11 @@ function EventsColumn(_ref11) {
|
|
|
57602
57620
|
var emittersForList = emitters.filter(function (e) {
|
|
57603
57621
|
return !(e.component === receiver.component && String(e.itemId) === String(receiver.itemId));
|
|
57604
57622
|
});
|
|
57605
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
57606
|
-
|
|
57623
|
+
return /*#__PURE__*/jsxRuntime.jsxs(DashReact.Card2, {
|
|
57624
|
+
padding: "",
|
|
57625
|
+
shadow: "",
|
|
57626
|
+
rounded: "rounded-lg",
|
|
57627
|
+
className: "flex-1 min-w-0 overflow-hidden flex flex-col",
|
|
57607
57628
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
57608
57629
|
className: "flex-shrink-0 px-4 py-2 text-xs opacity-60",
|
|
57609
57630
|
children: ["Check an event to fire ", /*#__PURE__*/jsxRuntime.jsx("code", {
|
|
@@ -57626,8 +57647,9 @@ function EventsColumn(_ref11) {
|
|
|
57626
57647
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
57627
57648
|
className: "text-sm font-semibold",
|
|
57628
57649
|
children: e.label
|
|
57629
|
-
}), (e.widgetRef || e.component) && /*#__PURE__*/jsxRuntime.jsx(
|
|
57630
|
-
|
|
57650
|
+
}), (e.widgetRef || e.component) && /*#__PURE__*/jsxRuntime.jsx(DashReact.Caption, {
|
|
57651
|
+
block: true,
|
|
57652
|
+
className: "font-mono truncate",
|
|
57631
57653
|
children: (e.widgetRef || e.component) + (e.itemId != null ? "[".concat(e.itemId, "]") : "")
|
|
57632
57654
|
})]
|
|
57633
57655
|
}), e.events.map(function (eventName) {
|