@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.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import * as DashReact from '@trops/dash-react';
|
|
5
|
-
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Button3, Button2, Paragraph, Sidebar, Panel, Stepper, Tag3, Card2, Card3, Heading3, MenuItem3, FormLabel, SelectMenu, Switch, SelectInput, CodeEditorVS, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, ButtonIcon2, DropdownPanel, MenuItem2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, MenuItem, Tag2, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox, StatCard, Card, Tabs, Accordion, Alert, Toast, ProgressBar, Toggle, Breadcrumbs, Tabs2, Accordion2, Alert2, Toast2, ProgressBar2, Toggle2, Breadcrumbs2, Accordion3, Alert3, Toast3, ProgressBar3, Toggle3, Breadcrumbs3, ThemeFromUrlPane, TextArea, CodeEditorInline, Icon2, AlgoliaSearchBox, CommandPalette, useSidebar, Divider, EmptyState, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
|
|
5
|
+
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Button3, Button2, Paragraph, Sidebar, Panel, Stepper, Tag3, Card2, Card3, Heading3, MenuItem3, FormLabel, SelectMenu, Switch, SelectInput, CodeEditorVS, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, ButtonIcon2, DropdownPanel, MenuItem2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, MenuItem, Tag2, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox, StatCard, Card, Tabs, Accordion, Alert, Toast, ProgressBar, Toggle, Breadcrumbs, Tabs2, Accordion2, Alert2, Toast2, ProgressBar2, Toggle2, Breadcrumbs2, Accordion3, Alert3, Toast3, ProgressBar3, Toggle3, Breadcrumbs3, ThemeFromUrlPane, TextArea, CodeEditorInline, Icon2, AlgoliaSearchBox, CommandPalette, useSidebar, Divider, Caption2, Caption, Caption3, EmptyState, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
|
|
6
6
|
export * from '@trops/dash-react';
|
|
7
7
|
export { ThemeContext } from '@trops/dash-react';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -56751,8 +56751,8 @@ var DashboardConfigModal = function DashboardConfigModal(_ref) {
|
|
|
56751
56751
|
return setActiveTab("dependencies");
|
|
56752
56752
|
},
|
|
56753
56753
|
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"),
|
|
56754
|
-
children: ["Dependencies", dependencyCount > 0 && /*#__PURE__*/jsxs(
|
|
56755
|
-
className: "ml-2
|
|
56754
|
+
children: ["Dependencies", dependencyCount > 0 && /*#__PURE__*/jsxs(Caption2, {
|
|
56755
|
+
className: "ml-2",
|
|
56756
56756
|
children: ["(", dependencyCount, ")"]
|
|
56757
56757
|
}), hasUnknownDependency && /*#__PURE__*/jsx("span", {
|
|
56758
56758
|
className: "ml-1 inline-block h-1.5 w-1.5 rounded-full bg-amber-400 align-middle"
|
|
@@ -56975,7 +56975,7 @@ function NotificationsTab(_ref4) {
|
|
|
56975
56975
|
placeholder: "Search widgets...",
|
|
56976
56976
|
inputClassName: "py-1.5 text-xs"
|
|
56977
56977
|
}), /*#__PURE__*/jsxs("div", {
|
|
56978
|
-
className: "flex flex-row items-center justify-between text-
|
|
56978
|
+
className: "flex flex-row items-center justify-between text-xs",
|
|
56979
56979
|
children: [/*#__PURE__*/jsxs("span", {
|
|
56980
56980
|
className: "opacity-50",
|
|
56981
56981
|
children: [filtered.length, " of ", widgetInstances.length, " widget", widgetInstances.length === 1 ? "" : "s"]
|
|
@@ -57010,11 +57010,10 @@ function NotificationsTab(_ref4) {
|
|
|
57010
57010
|
children: [/*#__PURE__*/jsx("span", {
|
|
57011
57011
|
className: "text-sm font-medium",
|
|
57012
57012
|
children: wi.title
|
|
57013
|
-
}), /*#__PURE__*/jsxs(
|
|
57014
|
-
className: "
|
|
57013
|
+
}), /*#__PURE__*/jsxs(Caption, {
|
|
57014
|
+
className: "font-mono",
|
|
57015
57015
|
children: [wi.component, wi.itemId != null ? " \xB7 #".concat(wi.itemId) : ""]
|
|
57016
|
-
}), /*#__PURE__*/jsx(
|
|
57017
|
-
className: "text-[10px] opacity-40",
|
|
57016
|
+
}), /*#__PURE__*/jsx(Caption3, {
|
|
57018
57017
|
children: wi["package"]
|
|
57019
57018
|
})]
|
|
57020
57019
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -57031,8 +57030,7 @@ function NotificationsTab(_ref4) {
|
|
|
57031
57030
|
children: [/*#__PURE__*/jsx("span", {
|
|
57032
57031
|
className: "text-xs",
|
|
57033
57032
|
children: notif.displayName
|
|
57034
|
-
}), notif.description && /*#__PURE__*/jsx(
|
|
57035
|
-
className: "text-[10px] opacity-50",
|
|
57033
|
+
}), notif.description && /*#__PURE__*/jsx(Caption, {
|
|
57036
57034
|
children: notif.description
|
|
57037
57035
|
})]
|
|
57038
57036
|
}), /*#__PURE__*/jsx(Switch, {
|
|
@@ -57092,8 +57090,11 @@ function ProvidersTab(_ref5) {
|
|
|
57092
57090
|
var topValue = allSame ? ((_selectedRows$ = selectedRows[0]) === null || _selectedRows$ === void 0 ? void 0 : _selectedRows$.resolvedProviderName) || "" : "";
|
|
57093
57091
|
return /*#__PURE__*/jsxs("div", {
|
|
57094
57092
|
className: "flex flex-row gap-3 h-full min-h-0",
|
|
57095
|
-
children: [/*#__PURE__*/jsxs(
|
|
57096
|
-
|
|
57093
|
+
children: [/*#__PURE__*/jsxs(Card2, {
|
|
57094
|
+
padding: "",
|
|
57095
|
+
shadow: "",
|
|
57096
|
+
rounded: "rounded-lg",
|
|
57097
|
+
className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
|
|
57097
57098
|
children: [/*#__PURE__*/jsx("div", {
|
|
57098
57099
|
className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
|
|
57099
57100
|
children: "Provider Types"
|
|
@@ -57132,8 +57133,11 @@ function ProvidersTab(_ref5) {
|
|
|
57132
57133
|
}, providerType);
|
|
57133
57134
|
})
|
|
57134
57135
|
})]
|
|
57135
|
-
}), /*#__PURE__*/jsx(
|
|
57136
|
-
|
|
57136
|
+
}), /*#__PURE__*/jsx(Card2, {
|
|
57137
|
+
padding: "",
|
|
57138
|
+
shadow: "",
|
|
57139
|
+
rounded: "rounded-lg",
|
|
57140
|
+
className: "flex-1 min-w-0 overflow-hidden flex flex-col",
|
|
57137
57141
|
children: selectedType ? /*#__PURE__*/jsxs(Fragment, {
|
|
57138
57142
|
children: [/*#__PURE__*/jsxs("div", {
|
|
57139
57143
|
className: "px-4 py-3 flex-shrink-0",
|
|
@@ -57196,12 +57200,13 @@ function ProvidersTab(_ref5) {
|
|
|
57196
57200
|
"aria-label": "required",
|
|
57197
57201
|
children: "*"
|
|
57198
57202
|
})]
|
|
57199
|
-
}), (row.widgetRef || row.component) && /*#__PURE__*/jsx(
|
|
57200
|
-
|
|
57203
|
+
}), (row.widgetRef || row.component) && /*#__PURE__*/jsx(Caption, {
|
|
57204
|
+
block: true,
|
|
57205
|
+
className: "font-mono truncate mt-0.5",
|
|
57201
57206
|
title: row.widgetRef || row.component,
|
|
57202
57207
|
children: row.widgetRef || row.component
|
|
57203
57208
|
}), /*#__PURE__*/jsxs("div", {
|
|
57204
|
-
className: "flex items-center gap-1.5 mt-1 text-
|
|
57209
|
+
className: "flex items-center gap-1.5 mt-1 text-xs",
|
|
57205
57210
|
children: [/*#__PURE__*/jsx("span", {
|
|
57206
57211
|
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"),
|
|
57207
57212
|
children: isRequired ? "required" : "optional"
|
|
@@ -57390,8 +57395,11 @@ function ListenersTab(_ref0) {
|
|
|
57390
57395
|
className: "flex flex-col gap-3 h-full min-h-0",
|
|
57391
57396
|
children: /*#__PURE__*/jsxs("div", {
|
|
57392
57397
|
className: "flex flex-row gap-3 flex-1 min-h-0",
|
|
57393
|
-
children: [/*#__PURE__*/jsxs(
|
|
57394
|
-
|
|
57398
|
+
children: [/*#__PURE__*/jsxs(Card2, {
|
|
57399
|
+
padding: "",
|
|
57400
|
+
shadow: "",
|
|
57401
|
+
rounded: "rounded-lg",
|
|
57402
|
+
className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
|
|
57395
57403
|
children: [/*#__PURE__*/jsx("div", {
|
|
57396
57404
|
className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
|
|
57397
57405
|
children: "Widgets"
|
|
@@ -57408,8 +57416,9 @@ function ListenersTab(_ref0) {
|
|
|
57408
57416
|
children: [/*#__PURE__*/jsx("div", {
|
|
57409
57417
|
className: "text-sm font-medium truncate",
|
|
57410
57418
|
children: r.label
|
|
57411
|
-
}), r.widgetRef && /*#__PURE__*/jsx(
|
|
57412
|
-
|
|
57419
|
+
}), r.widgetRef && /*#__PURE__*/jsx(Caption, {
|
|
57420
|
+
block: true,
|
|
57421
|
+
className: "font-mono truncate mt-0.5",
|
|
57413
57422
|
title: r.widgetRef,
|
|
57414
57423
|
children: r.widgetRef
|
|
57415
57424
|
})]
|
|
@@ -57434,8 +57443,11 @@ function ListenersTab(_ref0) {
|
|
|
57434
57443
|
onAdd: onAdd,
|
|
57435
57444
|
onRemove: onRemove
|
|
57436
57445
|
})]
|
|
57437
|
-
}) : /*#__PURE__*/jsx(
|
|
57438
|
-
|
|
57446
|
+
}) : /*#__PURE__*/jsx(Card2, {
|
|
57447
|
+
padding: "",
|
|
57448
|
+
shadow: "",
|
|
57449
|
+
rounded: "rounded-lg",
|
|
57450
|
+
className: "flex-1 min-w-0 flex items-center justify-center text-sm opacity-60",
|
|
57439
57451
|
children: "Pick a widget on the left to wire its handlers."
|
|
57440
57452
|
})]
|
|
57441
57453
|
})
|
|
@@ -57469,8 +57481,11 @@ function HandlersColumn(_ref10) {
|
|
|
57469
57481
|
}
|
|
57470
57482
|
return m;
|
|
57471
57483
|
}, [myWiring]);
|
|
57472
|
-
return /*#__PURE__*/jsxs(
|
|
57473
|
-
|
|
57484
|
+
return /*#__PURE__*/jsxs(Card2, {
|
|
57485
|
+
padding: "",
|
|
57486
|
+
shadow: "",
|
|
57487
|
+
rounded: "rounded-lg",
|
|
57488
|
+
className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
|
|
57474
57489
|
children: [/*#__PURE__*/jsx("div", {
|
|
57475
57490
|
className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
|
|
57476
57491
|
children: "Event Handlers"
|
|
@@ -57555,8 +57570,11 @@ function EventsColumn(_ref11) {
|
|
|
57555
57570
|
return w.isOrphan;
|
|
57556
57571
|
});
|
|
57557
57572
|
if (!handlerName) {
|
|
57558
|
-
return /*#__PURE__*/jsx(
|
|
57559
|
-
|
|
57573
|
+
return /*#__PURE__*/jsx(Card2, {
|
|
57574
|
+
padding: "",
|
|
57575
|
+
shadow: "",
|
|
57576
|
+
rounded: "rounded-lg",
|
|
57577
|
+
className: "flex-1 min-w-0 flex items-center justify-center text-sm opacity-60",
|
|
57560
57578
|
children: "Select a handler to view available events."
|
|
57561
57579
|
});
|
|
57562
57580
|
}
|
|
@@ -57584,8 +57602,11 @@ function EventsColumn(_ref11) {
|
|
|
57584
57602
|
var emittersForList = emitters.filter(function (e) {
|
|
57585
57603
|
return !(e.component === receiver.component && String(e.itemId) === String(receiver.itemId));
|
|
57586
57604
|
});
|
|
57587
|
-
return /*#__PURE__*/jsxs(
|
|
57588
|
-
|
|
57605
|
+
return /*#__PURE__*/jsxs(Card2, {
|
|
57606
|
+
padding: "",
|
|
57607
|
+
shadow: "",
|
|
57608
|
+
rounded: "rounded-lg",
|
|
57609
|
+
className: "flex-1 min-w-0 overflow-hidden flex flex-col",
|
|
57589
57610
|
children: [/*#__PURE__*/jsxs("div", {
|
|
57590
57611
|
className: "flex-shrink-0 px-4 py-2 text-xs opacity-60",
|
|
57591
57612
|
children: ["Check an event to fire ", /*#__PURE__*/jsx("code", {
|
|
@@ -57608,8 +57629,9 @@ function EventsColumn(_ref11) {
|
|
|
57608
57629
|
children: [/*#__PURE__*/jsx("div", {
|
|
57609
57630
|
className: "text-sm font-semibold",
|
|
57610
57631
|
children: e.label
|
|
57611
|
-
}), (e.widgetRef || e.component) && /*#__PURE__*/jsx(
|
|
57612
|
-
|
|
57632
|
+
}), (e.widgetRef || e.component) && /*#__PURE__*/jsx(Caption, {
|
|
57633
|
+
block: true,
|
|
57634
|
+
className: "font-mono truncate",
|
|
57613
57635
|
children: (e.widgetRef || e.component) + (e.itemId != null ? "[".concat(e.itemId, "]") : "")
|
|
57614
57636
|
})]
|
|
57615
57637
|
}), e.events.map(function (eventName) {
|