@vuu-ui/vuu-ui-controls 0.8.14-debug → 0.8.15-debug
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/cjs/index.js +33 -12
- package/cjs/index.js.map +3 -3
- package/esm/index.js +170 -149
- package/esm/index.js.map +3 -3
- package/package.json +8 -8
- package/types/combo-box/ComboBox.d.ts +3 -0
- package/types/combo-box/useCombobox.d.ts +3 -8
- package/types/common-hooks/collectionTypes.d.ts +1 -0
package/esm/index.js
CHANGED
|
@@ -345,7 +345,7 @@ var useCollectionItems = ({
|
|
|
345
345
|
// revealSelected = false,
|
|
346
346
|
source
|
|
347
347
|
}) => {
|
|
348
|
-
var _a2;
|
|
348
|
+
var _a2, _b;
|
|
349
349
|
const { getItemId } = options;
|
|
350
350
|
const [, forceUpdate] = useState2(null);
|
|
351
351
|
const inheritedCollectionHook = useCollection();
|
|
@@ -353,6 +353,7 @@ var useCollectionItems = ({
|
|
|
353
353
|
const flattenedDataRef = useRef2([]);
|
|
354
354
|
const EMPTY_COLLECTION = useMemo(() => [], []);
|
|
355
355
|
const filterPattern = useRef2((_a2 = options.filterPattern) != null ? _a2 : "");
|
|
356
|
+
const disableFilter = (_b = options.disableFilter) != null ? _b : false;
|
|
356
357
|
const {
|
|
357
358
|
getFilterRegex = getDefaultFilterRegex,
|
|
358
359
|
noChildrenLabel,
|
|
@@ -364,14 +365,14 @@ var useCollectionItems = ({
|
|
|
364
365
|
const addMetadataToItems = useCallback2(
|
|
365
366
|
(items, indexer, level = 1, path = "", results = [], flattenedCollection2 = [], flattenedSource2 = []) => {
|
|
366
367
|
items.forEach((item, i, all) => {
|
|
367
|
-
var _a3,
|
|
368
|
+
var _a3, _b2;
|
|
368
369
|
const isCollapsibleHeader = item.header && options.collapsibleHeaders;
|
|
369
370
|
const isNonCollapsibleGroupNode = item.childNodes && options.collapsibleHeaders === false;
|
|
370
371
|
const isLeaf3 = !item.childNodes || item.childNodes.length === 0;
|
|
371
372
|
const nonCollapsible = isNonCollapsibleGroupNode || isLeaf3 && !isCollapsibleHeader;
|
|
372
373
|
const childPath = path ? `${path}.${i}` : `item-${i}`;
|
|
373
374
|
const id = (_a3 = item.id) != null ? _a3 : getItemId ? getItemId(i) : `${idRoot}-${childPath}`;
|
|
374
|
-
const expanded = nonCollapsible ? void 0 : (
|
|
375
|
+
const expanded = nonCollapsible ? void 0 : (_b2 = item.expanded) != null ? _b2 : isExpanded2();
|
|
375
376
|
const normalisedItem = {
|
|
376
377
|
...item,
|
|
377
378
|
childNodes: void 0,
|
|
@@ -406,12 +407,12 @@ var useCollectionItems = ({
|
|
|
406
407
|
[options.collapsibleHeaders, getItemId, idRoot, isExpanded2]
|
|
407
408
|
);
|
|
408
409
|
const getFilter = useCallback2(() => {
|
|
409
|
-
if (filterPattern.current) {
|
|
410
|
+
if (filterPattern.current && !disableFilter) {
|
|
410
411
|
return getDefaultFilter(filterPattern.current, getFilterRegex);
|
|
411
412
|
} else {
|
|
412
413
|
return null;
|
|
413
414
|
}
|
|
414
|
-
}, [getFilterRegex]);
|
|
415
|
+
}, [disableFilter, getFilterRegex]);
|
|
415
416
|
const collectVisibleItems = useCallback2(
|
|
416
417
|
(items, filter = getFilter(), results = [], idx = { value: 0 }) => {
|
|
417
418
|
let skipToNextHeader = false;
|
|
@@ -2091,14 +2092,14 @@ import { forwardRef as forwardRef3 } from "react";
|
|
|
2091
2092
|
import cx4 from "classnames";
|
|
2092
2093
|
|
|
2093
2094
|
// src/list/CheckboxIcon.tsx
|
|
2094
|
-
import React from "react";
|
|
2095
2095
|
import cx3 from "classnames";
|
|
2096
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
2096
2097
|
var classBase3 = "vuuCheckboxIcon";
|
|
2097
2098
|
var CheckboxIcon = ({
|
|
2098
2099
|
checked = false,
|
|
2099
2100
|
disabled = false,
|
|
2100
2101
|
...htmlAttributes
|
|
2101
|
-
}) => /* @__PURE__ */
|
|
2102
|
+
}) => /* @__PURE__ */ jsx5(
|
|
2102
2103
|
"span",
|
|
2103
2104
|
{
|
|
2104
2105
|
...htmlAttributes,
|
|
@@ -2109,13 +2110,13 @@ var CheckboxIcon = ({
|
|
|
2109
2110
|
);
|
|
2110
2111
|
|
|
2111
2112
|
// src/list/ListItem.tsx
|
|
2112
|
-
import { jsx as
|
|
2113
|
+
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2113
2114
|
var classBase4 = "vuuListItem";
|
|
2114
2115
|
var ListItemProxy = forwardRef3(function ListItemNextProxy({
|
|
2115
2116
|
height,
|
|
2116
2117
|
...htmlAttributes
|
|
2117
2118
|
}, forwardedRef) {
|
|
2118
|
-
return /* @__PURE__ */
|
|
2119
|
+
return /* @__PURE__ */ jsx6(
|
|
2119
2120
|
"div",
|
|
2120
2121
|
{
|
|
2121
2122
|
...htmlAttributes,
|
|
@@ -2160,8 +2161,8 @@ var ListItem = forwardRef3(
|
|
|
2160
2161
|
ref: forwardedRef,
|
|
2161
2162
|
style,
|
|
2162
2163
|
children: [
|
|
2163
|
-
showCheckbox && /* @__PURE__ */
|
|
2164
|
-
children && typeof children !== "string" ? children : itemTextHighlightPattern == null ? /* @__PURE__ */
|
|
2164
|
+
showCheckbox && /* @__PURE__ */ jsx6(CheckboxIcon, { "aria-hidden": true, checked: selected }),
|
|
2165
|
+
children && typeof children !== "string" ? children : itemTextHighlightPattern == null ? /* @__PURE__ */ jsx6("span", { className: `${classBase4}-textWrapper`, children: label || children }) : /* @__PURE__ */ jsx6(
|
|
2165
2166
|
Highlighter,
|
|
2166
2167
|
{
|
|
2167
2168
|
matchPattern: itemTextHighlightPattern,
|
|
@@ -2296,7 +2297,7 @@ var useGlobalDragDrop = ({
|
|
|
2296
2297
|
};
|
|
2297
2298
|
|
|
2298
2299
|
// src/drag-drop/DragDropProvider.tsx
|
|
2299
|
-
import { jsx as
|
|
2300
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
2300
2301
|
var NO_DRAG_CONTEXT = {
|
|
2301
2302
|
isDragSource: void 0,
|
|
2302
2303
|
isDropTarget: void 0,
|
|
@@ -2408,7 +2409,7 @@ var DragDropProvider = ({
|
|
|
2408
2409
|
registerDragDropParty
|
|
2409
2410
|
]
|
|
2410
2411
|
);
|
|
2411
|
-
return /* @__PURE__ */
|
|
2412
|
+
return /* @__PURE__ */ jsx7(DragDropContext.Provider, { value: contextValue, children });
|
|
2412
2413
|
};
|
|
2413
2414
|
var useDragDropProvider = (id) => {
|
|
2414
2415
|
var _a2, _b;
|
|
@@ -2480,7 +2481,7 @@ import {
|
|
|
2480
2481
|
useMemo as useMemo5
|
|
2481
2482
|
} from "react";
|
|
2482
2483
|
import { PopupComponent as Popup2, Portal as Portal2 } from "@vuu-ui/vuu-popups";
|
|
2483
|
-
import { jsx as
|
|
2484
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2484
2485
|
var makeClassNames = (classNames) => classNames.split(" ").map((className) => `vuuDraggable-${className}`);
|
|
2485
2486
|
var Draggable = forwardRef4(
|
|
2486
2487
|
function Draggable2({ wrapperClassName, element, onDropped, onTransitionEnd, style, scale = 1 }, forwardedRef) {
|
|
@@ -2508,13 +2509,13 @@ var Draggable = forwardRef4(
|
|
|
2508
2509
|
}),
|
|
2509
2510
|
[]
|
|
2510
2511
|
);
|
|
2511
|
-
return /* @__PURE__ */
|
|
2512
|
+
return /* @__PURE__ */ jsx8(Portal2, { children: /* @__PURE__ */ jsx8(
|
|
2512
2513
|
Popup2,
|
|
2513
2514
|
{
|
|
2514
2515
|
anchorElement: { current: document.body },
|
|
2515
2516
|
placement: "absolute",
|
|
2516
2517
|
position,
|
|
2517
|
-
children: /* @__PURE__ */
|
|
2518
|
+
children: /* @__PURE__ */ jsx8(
|
|
2518
2519
|
"div",
|
|
2519
2520
|
{
|
|
2520
2521
|
className: cx5("vuuDraggable", ...makeClassNames(wrapperClassName)),
|
|
@@ -2899,7 +2900,7 @@ var useDropIndicator = () => {
|
|
|
2899
2900
|
};
|
|
2900
2901
|
|
|
2901
2902
|
// src/drag-drop/useDragDropIndicator.tsx
|
|
2902
|
-
import { jsx as
|
|
2903
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
2903
2904
|
var NOT_OVERFLOWED2 = ':not([data-overflowed="true"])';
|
|
2904
2905
|
var NOT_HIDDEN2 = ':not([aria-hidden="true"])';
|
|
2905
2906
|
var useDragDropIndicator = ({
|
|
@@ -3021,7 +3022,7 @@ var useDragDropIndicator = ({
|
|
|
3021
3022
|
height: 2
|
|
3022
3023
|
};
|
|
3023
3024
|
setDropIndicator(
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
+
/* @__PURE__ */ jsx9(
|
|
3025
3026
|
Draggable,
|
|
3026
3027
|
{
|
|
3027
3028
|
wrapperClassName: "dropIndicatorContainer",
|
|
@@ -3548,7 +3549,7 @@ var useDragDropNaturalMovement = ({
|
|
|
3548
3549
|
};
|
|
3549
3550
|
|
|
3550
3551
|
// src/drag-drop/useDragDropNext.tsx
|
|
3551
|
-
import { jsx as
|
|
3552
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
3552
3553
|
var NULL_DRAG_DROP_RESULT = {
|
|
3553
3554
|
beginDrag: () => void 0,
|
|
3554
3555
|
drag: () => void 0,
|
|
@@ -3893,7 +3894,7 @@ var useDragDropNext = ({
|
|
|
3893
3894
|
} = dragElement;
|
|
3894
3895
|
setDraggableStatus({
|
|
3895
3896
|
isDragging: true,
|
|
3896
|
-
draggable: /* @__PURE__ */
|
|
3897
|
+
draggable: /* @__PURE__ */ jsx10(
|
|
3897
3898
|
Draggable,
|
|
3898
3899
|
{
|
|
3899
3900
|
element: cloneElement3(dragElement),
|
|
@@ -4510,7 +4511,7 @@ var useScrollPosition = ({
|
|
|
4510
4511
|
};
|
|
4511
4512
|
|
|
4512
4513
|
// src/list/List.tsx
|
|
4513
|
-
import { Fragment as Fragment2, jsx as
|
|
4514
|
+
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
4514
4515
|
import { createElement } from "react";
|
|
4515
4516
|
var defaultEmptyMessage = "No data to display";
|
|
4516
4517
|
var classBase5 = "vuuList";
|
|
@@ -4707,7 +4708,7 @@ var List = forwardRef5(function List2({
|
|
|
4707
4708
|
showCheckbox: checkable
|
|
4708
4709
|
};
|
|
4709
4710
|
list.push(
|
|
4710
|
-
isChildItem ? cloneElement4(value, listItemProps) : /* @__PURE__ */
|
|
4711
|
+
isChildItem ? cloneElement4(value, listItemProps) : /* @__PURE__ */ jsx11(ListItem4, { ...listItemProps })
|
|
4711
4712
|
);
|
|
4712
4713
|
idx.value += 1;
|
|
4713
4714
|
}
|
|
@@ -4718,7 +4719,7 @@ var List = forwardRef5(function List2({
|
|
|
4718
4719
|
renderCollectionItems(items, idx, idx.value + count) || []
|
|
4719
4720
|
) : header;
|
|
4720
4721
|
list.push(
|
|
4721
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ jsx11("div", { role: "group", children: childItems2 }, id2)
|
|
4722
4723
|
);
|
|
4723
4724
|
};
|
|
4724
4725
|
const renderCollectionItems = (items, idx = { value: 0 }, end = items.length) => {
|
|
@@ -4739,7 +4740,7 @@ var List = forwardRef5(function List2({
|
|
|
4739
4740
|
};
|
|
4740
4741
|
function renderEmpty() {
|
|
4741
4742
|
if (emptyMessage || showEmptyMessage) {
|
|
4742
|
-
return /* @__PURE__ */
|
|
4743
|
+
return /* @__PURE__ */ jsx11("span", { className: `${classBase5}-empty-message`, children: emptyMessage != null ? emptyMessage : defaultEmptyMessage });
|
|
4743
4744
|
} else {
|
|
4744
4745
|
return null;
|
|
4745
4746
|
}
|
|
@@ -4785,8 +4786,8 @@ var List = forwardRef5(function List2({
|
|
|
4785
4786
|
style: { ...styleProp, ...sizeStyles },
|
|
4786
4787
|
tabIndex: listDisabled || disableFocus ? void 0 : tabIndex,
|
|
4787
4788
|
children: [
|
|
4788
|
-
/* @__PURE__ */
|
|
4789
|
-
collectionHook.data.length === 0 && ListPlaceholder !== void 0 ? /* @__PURE__ */
|
|
4789
|
+
/* @__PURE__ */ jsx11(ListItemProxy, { ref: rowHeightProxyRef, height: itemHeightProp }),
|
|
4790
|
+
collectionHook.data.length === 0 && ListPlaceholder !== void 0 ? /* @__PURE__ */ jsx11(Fragment2, { children: /* @__PURE__ */ jsx11(ListPlaceholder, {}) }) : /* @__PURE__ */ jsx11("div", { className: `${classBase5}-viewport`, ref: scrollContainerRef, children: /* @__PURE__ */ jsxs4(
|
|
4790
4791
|
"div",
|
|
4791
4792
|
{
|
|
4792
4793
|
className: `${classBase5}-scrollingContentContainer`,
|
|
@@ -4897,7 +4898,7 @@ var useVirtualization = ({
|
|
|
4897
4898
|
};
|
|
4898
4899
|
|
|
4899
4900
|
// src/list/VirtualizedList.tsx
|
|
4900
|
-
import { jsx as
|
|
4901
|
+
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4901
4902
|
var defaultEmptyMessage2 = "No data to display";
|
|
4902
4903
|
var withBaseName2 = makePrefixer2("saltList");
|
|
4903
4904
|
var ListItem3 = memo(ListItem);
|
|
@@ -5022,7 +5023,7 @@ var VirtualizedList = forwardRef6(function List3({
|
|
|
5022
5023
|
const [key, offset, pos, item] = row;
|
|
5023
5024
|
const index = pos - 1;
|
|
5024
5025
|
list.push(
|
|
5025
|
-
/* @__PURE__ */
|
|
5026
|
+
/* @__PURE__ */ jsx12(
|
|
5026
5027
|
ListItem3,
|
|
5027
5028
|
{
|
|
5028
5029
|
"aria-setsize": collectionHook.data.length,
|
|
@@ -5055,7 +5056,7 @@ var VirtualizedList = forwardRef6(function List3({
|
|
|
5055
5056
|
}
|
|
5056
5057
|
function renderEmpty() {
|
|
5057
5058
|
if (emptyMessage || showEmptyMessage) {
|
|
5058
|
-
return /* @__PURE__ */
|
|
5059
|
+
return /* @__PURE__ */ jsx12("span", { className: withBaseName2("empty-message"), children: emptyMessage != null ? emptyMessage : defaultEmptyMessage2 });
|
|
5059
5060
|
} else {
|
|
5060
5061
|
return null;
|
|
5061
5062
|
}
|
|
@@ -5076,7 +5077,7 @@ var VirtualizedList = forwardRef6(function List3({
|
|
|
5076
5077
|
maxWidth: maxWidth != null ? maxWidth : width,
|
|
5077
5078
|
maxHeight: maxHeight != null ? maxHeight : listHeight
|
|
5078
5079
|
};
|
|
5079
|
-
return /* @__PURE__ */
|
|
5080
|
+
return /* @__PURE__ */ jsx12(
|
|
5080
5081
|
"div",
|
|
5081
5082
|
{
|
|
5082
5083
|
...htmlAttributes,
|
|
@@ -5095,7 +5096,7 @@ var VirtualizedList = forwardRef6(function List3({
|
|
|
5095
5096
|
className: withBaseName2("scrollingContentContainer"),
|
|
5096
5097
|
style: { height: contentHeight },
|
|
5097
5098
|
children: [
|
|
5098
|
-
/* @__PURE__ */
|
|
5099
|
+
/* @__PURE__ */ jsx12(ListItemProxy, { ref: rowHeightProxyRef }),
|
|
5099
5100
|
renderContent()
|
|
5100
5101
|
]
|
|
5101
5102
|
}
|
|
@@ -5106,12 +5107,12 @@ var VirtualizedList = forwardRef6(function List3({
|
|
|
5106
5107
|
|
|
5107
5108
|
// src/list/RadioIcon.tsx
|
|
5108
5109
|
import cx7 from "classnames";
|
|
5109
|
-
import { jsx as
|
|
5110
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
5110
5111
|
var classBase6 = "vuuRadioIcon";
|
|
5111
5112
|
var RadioIcon = ({
|
|
5112
5113
|
checked = false,
|
|
5113
5114
|
...htmlAttributes
|
|
5114
|
-
}) => /* @__PURE__ */
|
|
5115
|
+
}) => /* @__PURE__ */ jsx13(
|
|
5115
5116
|
"span",
|
|
5116
5117
|
{
|
|
5117
5118
|
...htmlAttributes,
|
|
@@ -5219,7 +5220,7 @@ var useDropdown = ({
|
|
|
5219
5220
|
};
|
|
5220
5221
|
|
|
5221
5222
|
// src/dropdown/Dropdown.tsx
|
|
5222
|
-
import { jsx as
|
|
5223
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
5223
5224
|
var Dropdown2 = forwardRef7(function Dropdown3({
|
|
5224
5225
|
"aria-label": ariaLabel,
|
|
5225
5226
|
children,
|
|
@@ -5301,7 +5302,7 @@ var Dropdown2 = forwardRef7(function Dropdown3({
|
|
|
5301
5302
|
})
|
|
5302
5303
|
);
|
|
5303
5304
|
} else {
|
|
5304
|
-
return /* @__PURE__ */
|
|
5305
|
+
return /* @__PURE__ */ jsx14(
|
|
5305
5306
|
DropdownButton,
|
|
5306
5307
|
{
|
|
5307
5308
|
label: triggerLabel,
|
|
@@ -5311,7 +5312,7 @@ var Dropdown2 = forwardRef7(function Dropdown3({
|
|
|
5311
5312
|
);
|
|
5312
5313
|
}
|
|
5313
5314
|
};
|
|
5314
|
-
return /* @__PURE__ */
|
|
5315
|
+
return /* @__PURE__ */ jsx14(CollectionProvider, { collectionHook, children: /* @__PURE__ */ jsxs6(
|
|
5315
5316
|
DropdownBase,
|
|
5316
5317
|
{
|
|
5317
5318
|
...props,
|
|
@@ -5323,7 +5324,7 @@ var Dropdown2 = forwardRef7(function Dropdown3({
|
|
|
5323
5324
|
width,
|
|
5324
5325
|
children: [
|
|
5325
5326
|
getTriggerComponent(),
|
|
5326
|
-
/* @__PURE__ */
|
|
5327
|
+
/* @__PURE__ */ jsx14(
|
|
5327
5328
|
List,
|
|
5328
5329
|
{
|
|
5329
5330
|
ListItem: ListItem4,
|
|
@@ -5353,6 +5354,7 @@ import {
|
|
|
5353
5354
|
} from "react";
|
|
5354
5355
|
var EnterOnly = ["Enter"];
|
|
5355
5356
|
var useCombobox = ({
|
|
5357
|
+
allowBackspaceClearsSelection,
|
|
5356
5358
|
allowFreeText,
|
|
5357
5359
|
ariaLabel,
|
|
5358
5360
|
collectionHook,
|
|
@@ -5362,6 +5364,7 @@ var useCombobox = ({
|
|
|
5362
5364
|
onBlur,
|
|
5363
5365
|
onFocus,
|
|
5364
5366
|
onChange,
|
|
5367
|
+
onDeselect,
|
|
5365
5368
|
onSelect,
|
|
5366
5369
|
id,
|
|
5367
5370
|
initialHighlightedIndex = -1,
|
|
@@ -5374,6 +5377,7 @@ var useCombobox = ({
|
|
|
5374
5377
|
onSelectionChange,
|
|
5375
5378
|
onSetSelectedText,
|
|
5376
5379
|
selected: selectedProp,
|
|
5380
|
+
selectionKeys = EnterOnly,
|
|
5377
5381
|
selectionStrategy,
|
|
5378
5382
|
value: valueProp,
|
|
5379
5383
|
InputProps: inputProps = {
|
|
@@ -5384,7 +5388,7 @@ var useCombobox = ({
|
|
|
5384
5388
|
}
|
|
5385
5389
|
}) => {
|
|
5386
5390
|
const isMultiSelect = isMultiSelection(selectionStrategy);
|
|
5387
|
-
const { setFilterPattern } = collectionHook;
|
|
5391
|
+
const { data, setFilterPattern } = collectionHook;
|
|
5388
5392
|
const setHighlightedIndexRef = useRef26(null);
|
|
5389
5393
|
const selectedRef = useRef26(isMultiSelect ? [] : null);
|
|
5390
5394
|
const ignoreSelectOnFocus = useRef26(true);
|
|
@@ -5403,7 +5407,6 @@ var useCombobox = ({
|
|
|
5403
5407
|
const highlightSelectedItem = useCallback28((selected2) => {
|
|
5404
5408
|
var _a2;
|
|
5405
5409
|
if (Array.isArray(selected2)) {
|
|
5406
|
-
console.log("TODO multi selection");
|
|
5407
5410
|
} else if (selected2 == null) {
|
|
5408
5411
|
(_a2 = setHighlightedIndexRef.current) == null ? void 0 : _a2.call(setHighlightedIndexRef, -1);
|
|
5409
5412
|
}
|
|
@@ -5501,7 +5504,7 @@ var useCombobox = ({
|
|
|
5501
5504
|
setTextValue("", false);
|
|
5502
5505
|
}
|
|
5503
5506
|
setIsOpen(open);
|
|
5504
|
-
onOpenChange == null ? void 0 : onOpenChange(open);
|
|
5507
|
+
onOpenChange == null ? void 0 : onOpenChange(open, closeReason);
|
|
5505
5508
|
if (!open && closeReason !== "Escape") {
|
|
5506
5509
|
if (!selectFreeTextInputValue()) {
|
|
5507
5510
|
applySelection();
|
|
@@ -5544,11 +5547,11 @@ var useCombobox = ({
|
|
|
5544
5547
|
disableAriaActiveDescendant,
|
|
5545
5548
|
disableHighlightOnFocus: true,
|
|
5546
5549
|
disableTypeToSelect: true,
|
|
5550
|
+
label: "combobox",
|
|
5547
5551
|
onKeyboardNavigation: handleKeyboardNavigation,
|
|
5548
|
-
// onKeyDown: handleInputKeyDown,
|
|
5549
5552
|
onSelectionChange: handleSelectionChange,
|
|
5550
5553
|
selected: collectionHook.itemToCollectionItemId(selectedProp),
|
|
5551
|
-
selectionKeys
|
|
5554
|
+
selectionKeys,
|
|
5552
5555
|
selectionStrategy,
|
|
5553
5556
|
tabToSelect: !isMultiSelect
|
|
5554
5557
|
});
|
|
@@ -5575,6 +5578,15 @@ var useCombobox = ({
|
|
|
5575
5578
|
},
|
|
5576
5579
|
[setFilterPattern, setIsOpen, setValue]
|
|
5577
5580
|
);
|
|
5581
|
+
const handleInputKeyDown = useCallback28(
|
|
5582
|
+
(e) => {
|
|
5583
|
+
if (e.key === "Backspace" && allowBackspaceClearsSelection) {
|
|
5584
|
+
selectedRef.current = null;
|
|
5585
|
+
onDeselect == null ? void 0 : onDeselect();
|
|
5586
|
+
}
|
|
5587
|
+
},
|
|
5588
|
+
[allowBackspaceClearsSelection, onDeselect]
|
|
5589
|
+
);
|
|
5578
5590
|
const { onFocus: inputOnFocus = onFocus } = inputProps;
|
|
5579
5591
|
const { onFocus: listOnFocus } = listControlProps;
|
|
5580
5592
|
const handleInputFocus = useCallback28(
|
|
@@ -5636,7 +5648,8 @@ var useCombobox = ({
|
|
|
5636
5648
|
...inputProps.inputProps,
|
|
5637
5649
|
// "aria-owns": listId,
|
|
5638
5650
|
"aria-label": ariaLabel,
|
|
5639
|
-
autoComplete: "off"
|
|
5651
|
+
autoComplete: "off",
|
|
5652
|
+
onKeyDown: handleInputKeyDown
|
|
5640
5653
|
};
|
|
5641
5654
|
return {
|
|
5642
5655
|
focusVisible,
|
|
@@ -5668,27 +5681,29 @@ var useCombobox = ({
|
|
|
5668
5681
|
|
|
5669
5682
|
// src/list/ChevronIcon.tsx
|
|
5670
5683
|
import cx8 from "classnames";
|
|
5671
|
-
import { jsx as
|
|
5684
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
5672
5685
|
var classBase7 = "vuuChevronIcon";
|
|
5673
5686
|
var ChevronIcon = (props) => {
|
|
5674
5687
|
const { direction, ...htmlAttributes } = props;
|
|
5675
|
-
return /* @__PURE__ */
|
|
5688
|
+
return /* @__PURE__ */ jsx15("span", { ...htmlAttributes, className: cx8(classBase7, direction) });
|
|
5676
5689
|
};
|
|
5677
5690
|
|
|
5678
5691
|
// src/combo-box/ComboBox.tsx
|
|
5679
|
-
import { jsx as
|
|
5692
|
+
import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
5680
5693
|
var ComboBox = forwardRef8(function Combobox({
|
|
5681
5694
|
InputProps: InputProps4,
|
|
5682
5695
|
ListProps: ListProps3,
|
|
5683
5696
|
PopupProps,
|
|
5684
5697
|
ListItem: ListItem4,
|
|
5685
5698
|
"aria-label": ariaLabel,
|
|
5699
|
+
allowBackspaceClearsSelection,
|
|
5686
5700
|
allowFreeText,
|
|
5687
5701
|
children,
|
|
5688
5702
|
defaultIsOpen,
|
|
5689
5703
|
defaultSelected,
|
|
5690
5704
|
defaultValue,
|
|
5691
5705
|
disabled,
|
|
5706
|
+
disableFilter,
|
|
5692
5707
|
onBlur,
|
|
5693
5708
|
onFocus,
|
|
5694
5709
|
onChange,
|
|
@@ -5700,9 +5715,11 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5700
5715
|
isOpen: isOpenProp,
|
|
5701
5716
|
itemToString: itemToString2 = itemToString,
|
|
5702
5717
|
itemsToString,
|
|
5718
|
+
onDeselect,
|
|
5703
5719
|
onOpenChange: onOpenChangeProp,
|
|
5704
5720
|
onSelectionChange,
|
|
5705
5721
|
selected: selectedProp,
|
|
5722
|
+
selectionKeys,
|
|
5706
5723
|
selectionStrategy,
|
|
5707
5724
|
source,
|
|
5708
5725
|
value: valueProp,
|
|
@@ -5724,6 +5741,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5724
5741
|
source,
|
|
5725
5742
|
children,
|
|
5726
5743
|
options: {
|
|
5744
|
+
disableFilter,
|
|
5727
5745
|
filterPattern: initialValue,
|
|
5728
5746
|
getFilterRegex,
|
|
5729
5747
|
itemToString: itemToString2
|
|
@@ -5740,6 +5758,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5740
5758
|
selected
|
|
5741
5759
|
} = useCombobox({
|
|
5742
5760
|
InputProps: InputProps4,
|
|
5761
|
+
allowBackspaceClearsSelection,
|
|
5743
5762
|
allowFreeText,
|
|
5744
5763
|
ariaLabel,
|
|
5745
5764
|
collectionHook,
|
|
@@ -5752,6 +5771,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5752
5771
|
label: props.title,
|
|
5753
5772
|
listRef,
|
|
5754
5773
|
onBlur,
|
|
5774
|
+
onDeselect,
|
|
5755
5775
|
onFocus,
|
|
5756
5776
|
onChange,
|
|
5757
5777
|
onSelect,
|
|
@@ -5763,6 +5783,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5763
5783
|
onSelectionChange,
|
|
5764
5784
|
onSetSelectedText,
|
|
5765
5785
|
selected: selectedProp,
|
|
5786
|
+
selectionKeys,
|
|
5766
5787
|
selectionStrategy,
|
|
5767
5788
|
value: initialValue
|
|
5768
5789
|
});
|
|
@@ -5773,14 +5794,14 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5773
5794
|
onOpenChange(true);
|
|
5774
5795
|
}
|
|
5775
5796
|
}, [isOpen, onOpenChange]);
|
|
5776
|
-
const endAdornment = endAdornmentProp === null ? null : /* @__PURE__ */
|
|
5797
|
+
const endAdornment = endAdornmentProp === null ? null : /* @__PURE__ */ jsx16(
|
|
5777
5798
|
ChevronIcon,
|
|
5778
5799
|
{
|
|
5779
5800
|
direction: isOpen ? "up" : "down",
|
|
5780
5801
|
onClick: handleDropdownIconClick
|
|
5781
5802
|
}
|
|
5782
5803
|
);
|
|
5783
|
-
return /* @__PURE__ */
|
|
5804
|
+
return /* @__PURE__ */ jsx16(CollectionProvider, { collectionHook, children: /* @__PURE__ */ jsxs7(
|
|
5784
5805
|
DropdownBase,
|
|
5785
5806
|
{
|
|
5786
5807
|
...props,
|
|
@@ -5792,7 +5813,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5792
5813
|
ref: forwardedRef,
|
|
5793
5814
|
width,
|
|
5794
5815
|
children: [
|
|
5795
|
-
/* @__PURE__ */
|
|
5816
|
+
/* @__PURE__ */ jsx16(
|
|
5796
5817
|
Input,
|
|
5797
5818
|
{
|
|
5798
5819
|
...inputProps,
|
|
@@ -5801,7 +5822,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5801
5822
|
endAdornment
|
|
5802
5823
|
}
|
|
5803
5824
|
),
|
|
5804
|
-
/* @__PURE__ */
|
|
5825
|
+
/* @__PURE__ */ jsx16(
|
|
5805
5826
|
List,
|
|
5806
5827
|
{
|
|
5807
5828
|
...ListProps3,
|
|
@@ -5810,7 +5831,6 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5810
5831
|
focusVisible,
|
|
5811
5832
|
highlightedIndex,
|
|
5812
5833
|
itemTextHighlightPattern: String(inputProps.value) || void 0,
|
|
5813
|
-
id: `${id}-list`,
|
|
5814
5834
|
listHandlers,
|
|
5815
5835
|
onSelectionChange,
|
|
5816
5836
|
ref: listRef,
|
|
@@ -5828,7 +5848,7 @@ var ComboBox = forwardRef8(function Combobox({
|
|
|
5828
5848
|
import { Button as Button2 } from "@salt-ds/core";
|
|
5829
5849
|
import cx9 from "classnames";
|
|
5830
5850
|
import { forwardRef as forwardRef9, useCallback as useCallback30 } from "react";
|
|
5831
|
-
import { jsx as
|
|
5851
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
5832
5852
|
var classBase8 = "vuuCycleStateButton";
|
|
5833
5853
|
var getNextValue = (value, valueList) => {
|
|
5834
5854
|
const index = valueList.indexOf(value.toUpperCase());
|
|
@@ -5856,7 +5876,7 @@ var CycleStateButton = forwardRef9(function CycleStateButton2({
|
|
|
5856
5876
|
},
|
|
5857
5877
|
[onCommit, value, values]
|
|
5858
5878
|
);
|
|
5859
|
-
return /* @__PURE__ */
|
|
5879
|
+
return /* @__PURE__ */ jsx17(
|
|
5860
5880
|
Button2,
|
|
5861
5881
|
{
|
|
5862
5882
|
...buttonProps,
|
|
@@ -6020,7 +6040,7 @@ import {
|
|
|
6020
6040
|
useRef as useRef29
|
|
6021
6041
|
} from "react";
|
|
6022
6042
|
import { Input as Input2, useControlled as useControlled6 } from "@salt-ds/core";
|
|
6023
|
-
import { jsx as
|
|
6043
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
6024
6044
|
var classBase9 = "vuuEditableLabel";
|
|
6025
6045
|
var EditableLabel = forwardRef10(function EditableLabel2({
|
|
6026
6046
|
className: classNameProp,
|
|
@@ -6107,7 +6127,7 @@ var EditableLabel = forwardRef10(function EditableLabel2({
|
|
|
6107
6127
|
const className = cx10(classBase9, classNameProp, {
|
|
6108
6128
|
[`${classBase9}-editing`]: editing
|
|
6109
6129
|
});
|
|
6110
|
-
return /* @__PURE__ */
|
|
6130
|
+
return /* @__PURE__ */ jsx18(
|
|
6111
6131
|
"div",
|
|
6112
6132
|
{
|
|
6113
6133
|
...restProps,
|
|
@@ -6115,7 +6135,7 @@ var EditableLabel = forwardRef10(function EditableLabel2({
|
|
|
6115
6135
|
onDoubleClick: handleDoubleClick,
|
|
6116
6136
|
"data-text": value,
|
|
6117
6137
|
ref: forwardedRef,
|
|
6118
|
-
children: editing ? /* @__PURE__ */
|
|
6138
|
+
children: editing ? /* @__PURE__ */ jsx18(
|
|
6119
6139
|
Input2,
|
|
6120
6140
|
{
|
|
6121
6141
|
inputProps: { className: `${classBase9}-input`, spellCheck: false },
|
|
@@ -6128,7 +6148,7 @@ var EditableLabel = forwardRef10(function EditableLabel2({
|
|
|
6128
6148
|
textAlign: "left",
|
|
6129
6149
|
variant: "secondary"
|
|
6130
6150
|
}
|
|
6131
|
-
) : /* @__PURE__ */
|
|
6151
|
+
) : /* @__PURE__ */ jsx18("span", { className: `${classBase9}-label`, children: value })
|
|
6132
6152
|
}
|
|
6133
6153
|
);
|
|
6134
6154
|
});
|
|
@@ -6136,7 +6156,7 @@ var EditableLabel = forwardRef10(function EditableLabel2({
|
|
|
6136
6156
|
// src/expando-input/ExpandoInput.tsx
|
|
6137
6157
|
import cx11 from "classnames";
|
|
6138
6158
|
import { forwardRef as forwardRef11 } from "react";
|
|
6139
|
-
import { jsx as
|
|
6159
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
6140
6160
|
var classBase10 = "vuuExpandoInput";
|
|
6141
6161
|
var noop = () => void 0;
|
|
6142
6162
|
var ExpandoInput = forwardRef11(function ExpandoInput2({
|
|
@@ -6147,14 +6167,14 @@ var ExpandoInput = forwardRef11(function ExpandoInput2({
|
|
|
6147
6167
|
onCommit = noop,
|
|
6148
6168
|
...props
|
|
6149
6169
|
}, forwardedRef) {
|
|
6150
|
-
return /* @__PURE__ */
|
|
6170
|
+
return /* @__PURE__ */ jsx19(
|
|
6151
6171
|
"div",
|
|
6152
6172
|
{
|
|
6153
6173
|
className: cx11(classBase10, classNameProp, {
|
|
6154
6174
|
[`${classBase10}-error`]: errorMessage
|
|
6155
6175
|
}),
|
|
6156
6176
|
"data-text": value,
|
|
6157
|
-
children: /* @__PURE__ */
|
|
6177
|
+
children: /* @__PURE__ */ jsx19(
|
|
6158
6178
|
VuuInput,
|
|
6159
6179
|
{
|
|
6160
6180
|
...props,
|
|
@@ -6173,7 +6193,7 @@ var ExpandoInput = forwardRef11(function ExpandoInput2({
|
|
|
6173
6193
|
});
|
|
6174
6194
|
|
|
6175
6195
|
// src/inputs/Checkbox.tsx
|
|
6176
|
-
import { jsx as
|
|
6196
|
+
import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
6177
6197
|
var Checkbox = (props) => {
|
|
6178
6198
|
const { onToggle, checked, label } = props;
|
|
6179
6199
|
return /* @__PURE__ */ jsxs8(
|
|
@@ -6183,7 +6203,7 @@ var Checkbox = (props) => {
|
|
|
6183
6203
|
onClick: onToggle,
|
|
6184
6204
|
onKeyUp: (e) => e.key === " " && onToggle(),
|
|
6185
6205
|
children: [
|
|
6186
|
-
/* @__PURE__ */
|
|
6206
|
+
/* @__PURE__ */ jsx20(CheckboxIcon, { tabIndex: 0, checked }),
|
|
6187
6207
|
label
|
|
6188
6208
|
]
|
|
6189
6209
|
}
|
|
@@ -6191,13 +6211,13 @@ var Checkbox = (props) => {
|
|
|
6191
6211
|
};
|
|
6192
6212
|
|
|
6193
6213
|
// src/inputs/RadioButton.tsx
|
|
6194
|
-
import { jsx as
|
|
6214
|
+
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
6195
6215
|
var RadioButton = (props) => {
|
|
6196
6216
|
const { onClick, checked, label, groupName } = props;
|
|
6197
6217
|
return /* @__PURE__ */ jsxs9("div", { className: "vuuRadioButton", onClick, children: [
|
|
6198
6218
|
/* @__PURE__ */ jsxs9("div", { className: "radio", children: [
|
|
6199
|
-
/* @__PURE__ */
|
|
6200
|
-
/* @__PURE__ */
|
|
6219
|
+
/* @__PURE__ */ jsx21("input", { type: "radio", name: groupName }),
|
|
6220
|
+
/* @__PURE__ */ jsx21(RadioIcon, { checked })
|
|
6201
6221
|
] }),
|
|
6202
6222
|
label
|
|
6203
6223
|
] });
|
|
@@ -6211,7 +6231,7 @@ import { forwardRef as forwardRef12, useMemo as useMemo15 } from "react";
|
|
|
6211
6231
|
|
|
6212
6232
|
// src/instrument-picker/SearchCell.tsx
|
|
6213
6233
|
import { registerComponent } from "@vuu-ui/vuu-utils";
|
|
6214
|
-
import { jsx as
|
|
6234
|
+
import { jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
6215
6235
|
var classBase11 = "vuuSearchCell";
|
|
6216
6236
|
var SearchCell = ({
|
|
6217
6237
|
column,
|
|
@@ -6221,7 +6241,7 @@ var SearchCell = ({
|
|
|
6221
6241
|
const key = columnMap[column.name];
|
|
6222
6242
|
const value = row[key];
|
|
6223
6243
|
return /* @__PURE__ */ jsxs10("div", { className: classBase11, tabIndex: -1, children: [
|
|
6224
|
-
/* @__PURE__ */
|
|
6244
|
+
/* @__PURE__ */ jsx22("span", { "data-icon": "draggable" }),
|
|
6225
6245
|
value
|
|
6226
6246
|
] });
|
|
6227
6247
|
};
|
|
@@ -6316,7 +6336,7 @@ var useInstrumentPicker = ({
|
|
|
6316
6336
|
};
|
|
6317
6337
|
|
|
6318
6338
|
// src/instrument-picker/InstrumentPicker.tsx
|
|
6319
|
-
import { jsx as
|
|
6339
|
+
import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
6320
6340
|
var classBase12 = "vuuInstrumentPicker";
|
|
6321
6341
|
var InstrumentPicker = forwardRef12(function InstrumentPicker2({
|
|
6322
6342
|
TableProps: { dataSource, ...TableProps3 },
|
|
@@ -6350,7 +6370,7 @@ var InstrumentPicker = forwardRef12(function InstrumentPicker2({
|
|
|
6350
6370
|
onSelect,
|
|
6351
6371
|
searchColumns
|
|
6352
6372
|
});
|
|
6353
|
-
const endAdornment = useMemo15(() => /* @__PURE__ */
|
|
6373
|
+
const endAdornment = useMemo15(() => /* @__PURE__ */ jsx23("span", { "data-icon": "chevron-down" }), []);
|
|
6354
6374
|
const tableProps = {
|
|
6355
6375
|
...TableProps3,
|
|
6356
6376
|
config: {
|
|
@@ -6371,7 +6391,7 @@ var InstrumentPicker = forwardRef12(function InstrumentPicker2({
|
|
|
6371
6391
|
ref: forwardedRef,
|
|
6372
6392
|
width,
|
|
6373
6393
|
children: [
|
|
6374
|
-
/* @__PURE__ */
|
|
6394
|
+
/* @__PURE__ */ jsx23(
|
|
6375
6395
|
Input3,
|
|
6376
6396
|
{
|
|
6377
6397
|
...inputProps,
|
|
@@ -6380,7 +6400,7 @@ var InstrumentPicker = forwardRef12(function InstrumentPicker2({
|
|
|
6380
6400
|
value
|
|
6381
6401
|
}
|
|
6382
6402
|
),
|
|
6383
|
-
/* @__PURE__ */
|
|
6403
|
+
/* @__PURE__ */ jsx23(
|
|
6384
6404
|
Table,
|
|
6385
6405
|
{
|
|
6386
6406
|
rowHeight: 25,
|
|
@@ -6413,7 +6433,7 @@ import { useCallback as useCallback51 } from "react";
|
|
|
6413
6433
|
|
|
6414
6434
|
// src/instrument-search/SearchCell.tsx
|
|
6415
6435
|
import { registerComponent as registerComponent2 } from "@vuu-ui/vuu-utils";
|
|
6416
|
-
import { jsx as
|
|
6436
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
6417
6437
|
var classBase13 = "vuuSearchCell";
|
|
6418
6438
|
var SearchCell2 = ({
|
|
6419
6439
|
column,
|
|
@@ -6423,7 +6443,7 @@ var SearchCell2 = ({
|
|
|
6423
6443
|
const key = columnMap[column.name];
|
|
6424
6444
|
const value = row[key];
|
|
6425
6445
|
return /* @__PURE__ */ jsxs12("div", { className: classBase13, tabIndex: -1, children: [
|
|
6426
|
-
/* @__PURE__ */
|
|
6446
|
+
/* @__PURE__ */ jsx24("span", { "data-icon": "draggable" }),
|
|
6427
6447
|
value
|
|
6428
6448
|
] });
|
|
6429
6449
|
};
|
|
@@ -6458,37 +6478,37 @@ import { Button as Button3, FormField, FormFieldLabel } from "@salt-ds/core";
|
|
|
6458
6478
|
|
|
6459
6479
|
// ../vuu-shell/src/login/VuuLogo.tsx
|
|
6460
6480
|
import { useMemo as useMemo17 } from "react";
|
|
6461
|
-
import { jsx as
|
|
6481
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
6462
6482
|
|
|
6463
6483
|
// ../vuu-shell/src/login/LoginPanel.tsx
|
|
6464
6484
|
import cx12 from "classnames";
|
|
6465
|
-
import { jsx as
|
|
6485
|
+
import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
6466
6486
|
|
|
6467
6487
|
// ../vuu-shell/src/login/login-utils.ts
|
|
6468
6488
|
import { getCookieValue } from "@vuu-ui/vuu-utils";
|
|
6469
6489
|
|
|
6470
6490
|
// ../vuu-shell/src/app-header/AppHeader.tsx
|
|
6471
6491
|
import { Button as Button4 } from "@salt-ds/core";
|
|
6472
|
-
import { jsx as
|
|
6492
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
6473
6493
|
|
|
6474
6494
|
// ../vuu-shell/src/connection-status/ConnectionStatusIcon.tsx
|
|
6475
|
-
import
|
|
6495
|
+
import React2, { useEffect as useEffect8, useState as useState17 } from "react";
|
|
6476
6496
|
import cx14 from "classnames";
|
|
6477
|
-
import { Fragment as Fragment3, jsx as
|
|
6497
|
+
import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
6478
6498
|
|
|
6479
6499
|
// ../vuu-shell/src/density-switch/DensitySwitch.tsx
|
|
6480
6500
|
import { useCallback as useCallback37 } from "react";
|
|
6481
6501
|
import cx15 from "classnames";
|
|
6482
|
-
import { jsx as
|
|
6502
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
6483
6503
|
|
|
6484
6504
|
// ../vuu-shell/src/feature/Feature.tsx
|
|
6485
|
-
import
|
|
6505
|
+
import React4, { Suspense, useEffect as useEffect9 } from "react";
|
|
6486
6506
|
import { registerComponent as registerComponent3 } from "@vuu-ui/vuu-layout";
|
|
6487
6507
|
|
|
6488
6508
|
// ../vuu-shell/src/feature/FeatureErrorBoundary.tsx
|
|
6489
|
-
import
|
|
6490
|
-
import { Fragment as Fragment4, jsx as
|
|
6491
|
-
var FeatureErrorBoundary = class extends
|
|
6509
|
+
import React3 from "react";
|
|
6510
|
+
import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6511
|
+
var FeatureErrorBoundary = class extends React3.Component {
|
|
6492
6512
|
constructor(props) {
|
|
6493
6513
|
super(props);
|
|
6494
6514
|
this.state = { errorMessage: null };
|
|
@@ -6503,8 +6523,8 @@ var FeatureErrorBoundary = class extends React4.Component {
|
|
|
6503
6523
|
render() {
|
|
6504
6524
|
if (this.state.errorMessage) {
|
|
6505
6525
|
return /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
6506
|
-
/* @__PURE__ */
|
|
6507
|
-
/* @__PURE__ */
|
|
6526
|
+
/* @__PURE__ */ jsx30("h1", { children: "An error occured while creating component." }),
|
|
6527
|
+
/* @__PURE__ */ jsx30("p", { children: this.state.errorMessage })
|
|
6508
6528
|
] });
|
|
6509
6529
|
}
|
|
6510
6530
|
return this.props.children;
|
|
@@ -6512,8 +6532,8 @@ var FeatureErrorBoundary = class extends React4.Component {
|
|
|
6512
6532
|
};
|
|
6513
6533
|
|
|
6514
6534
|
// ../vuu-shell/src/feature/Loader.tsx
|
|
6515
|
-
import { jsx as
|
|
6516
|
-
var Loader = () => /* @__PURE__ */
|
|
6535
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
6536
|
+
var Loader = () => /* @__PURE__ */ jsx31("div", { className: "hwLoader" });
|
|
6517
6537
|
|
|
6518
6538
|
// ../vuu-shell/src/feature/css-module-loader.ts
|
|
6519
6539
|
var importCSS = async (path) => {
|
|
@@ -6522,7 +6542,7 @@ var importCSS = async (path) => {
|
|
|
6522
6542
|
};
|
|
6523
6543
|
|
|
6524
6544
|
// ../vuu-shell/src/feature/Feature.tsx
|
|
6525
|
-
import { jsx as
|
|
6545
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
6526
6546
|
var componentsMap = /* @__PURE__ */ new Map();
|
|
6527
6547
|
var useCachedFeature = (url) => {
|
|
6528
6548
|
useEffect9(
|
|
@@ -6534,7 +6554,7 @@ var useCachedFeature = (url) => {
|
|
|
6534
6554
|
if (!componentsMap.has(url)) {
|
|
6535
6555
|
componentsMap.set(
|
|
6536
6556
|
url,
|
|
6537
|
-
|
|
6557
|
+
React4.lazy(() => import(
|
|
6538
6558
|
/* @vite-ignore */
|
|
6539
6559
|
url
|
|
6540
6560
|
))
|
|
@@ -6562,9 +6582,9 @@ function RawFeature({
|
|
|
6562
6582
|
});
|
|
6563
6583
|
}
|
|
6564
6584
|
const LazyFeature = useCachedFeature(url);
|
|
6565
|
-
return /* @__PURE__ */
|
|
6585
|
+
return /* @__PURE__ */ jsx32(FeatureErrorBoundary, { url, children: /* @__PURE__ */ jsx32(Suspense, { fallback: /* @__PURE__ */ jsx32(Loader, {}), children: /* @__PURE__ */ jsx32(LazyFeature, { ...props, ...params }) }) });
|
|
6566
6586
|
}
|
|
6567
|
-
var Feature =
|
|
6587
|
+
var Feature = React4.memo(RawFeature);
|
|
6568
6588
|
Feature.displayName = "Feature";
|
|
6569
6589
|
registerComponent3("Feature", Feature, "view");
|
|
6570
6590
|
|
|
@@ -6572,12 +6592,12 @@ registerComponent3("Feature", Feature, "view");
|
|
|
6572
6592
|
import { useEffect as useEffect10, useState as useState18 } from "react";
|
|
6573
6593
|
import { Input as Input4, Button as Button5, FormField as FormField2, FormFieldLabel as FormFieldLabel2, Text } from "@salt-ds/core";
|
|
6574
6594
|
import { takeScreenshot } from "@vuu-ui/vuu-utils";
|
|
6575
|
-
import { jsx as
|
|
6595
|
+
import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
6576
6596
|
var classBase14 = "saveLayoutPanel";
|
|
6577
6597
|
var formField = `${classBase14}-formField`;
|
|
6578
6598
|
|
|
6579
6599
|
// ../vuu-shell/src/layout-management/useLayoutManager.tsx
|
|
6580
|
-
import
|
|
6600
|
+
import React5, {
|
|
6581
6601
|
useCallback as useCallback38,
|
|
6582
6602
|
useContext as useContext3,
|
|
6583
6603
|
useEffect as useEffect11,
|
|
@@ -6591,8 +6611,9 @@ import {
|
|
|
6591
6611
|
defaultApplicationJson
|
|
6592
6612
|
} from "@vuu-ui/vuu-layout";
|
|
6593
6613
|
import { NotificationLevel, useNotifications } from "@vuu-ui/vuu-popups";
|
|
6594
|
-
import { jsx as
|
|
6595
|
-
var LayoutManagementContext =
|
|
6614
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
6615
|
+
var LayoutManagementContext = React5.createContext({
|
|
6616
|
+
getApplicationSettings: () => void 0,
|
|
6596
6617
|
layoutMetadata: [],
|
|
6597
6618
|
saveLayout: () => void 0,
|
|
6598
6619
|
// The default Application JSON will be served if no LayoutManagementProvider
|
|
@@ -6603,11 +6624,11 @@ var LayoutManagementContext = React6.createContext({
|
|
|
6603
6624
|
});
|
|
6604
6625
|
|
|
6605
6626
|
// ../vuu-shell/src/layout-management/LayoutList.tsx
|
|
6606
|
-
import { Fragment as Fragment5, jsx as
|
|
6627
|
+
import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
6607
6628
|
|
|
6608
6629
|
// ../vuu-icons/src/VuuLogo.tsx
|
|
6609
6630
|
import { memo as memo2 } from "react";
|
|
6610
|
-
import { jsx as
|
|
6631
|
+
import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
6611
6632
|
var VuuLogo2 = memo2(() => {
|
|
6612
6633
|
return /* @__PURE__ */ jsxs20(
|
|
6613
6634
|
"svg",
|
|
@@ -6619,21 +6640,21 @@ var VuuLogo2 = memo2(() => {
|
|
|
6619
6640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6620
6641
|
children: [
|
|
6621
6642
|
/* @__PURE__ */ jsxs20("g", { clipPath: "url(#clip0_217_6990)", children: [
|
|
6622
|
-
/* @__PURE__ */
|
|
6643
|
+
/* @__PURE__ */ jsx36(
|
|
6623
6644
|
"path",
|
|
6624
6645
|
{
|
|
6625
6646
|
d: "M39.8642 15.5509L35.9196 7.58974L34.3369 6.85464L24.6235 22.0825L39.1628 30.618L42.3152 25.6347L39.8642 15.5509Z",
|
|
6626
6647
|
fill: "url(#paint0_linear_217_6990)"
|
|
6627
6648
|
}
|
|
6628
6649
|
),
|
|
6629
|
-
/* @__PURE__ */
|
|
6650
|
+
/* @__PURE__ */ jsx36(
|
|
6630
6651
|
"path",
|
|
6631
6652
|
{
|
|
6632
6653
|
d: "M42.6246 24.8716C41.9199 25.9157 40.9625 26.824 39.767 27.4905C38.424 28.2396 36.9563 28.597 35.5081 28.597C32.7541 28.597 30.0715 27.3094 28.4466 24.9855L15.772 3.90967L15.7655 3.9206C13.3615 0.137431 8.25372 -1.13143 4.24754 1.10507C0.178173 3.37435 -1.20852 8.39359 1.14854 12.3125L18.3445 40.9095C19.1108 42.1846 20.1816 43.1834 21.4144 43.8764C21.4241 43.8826 21.4338 43.8889 21.4435 43.8951C21.4484 43.8982 21.4549 43.9013 21.4597 43.9045C22.0332 44.2228 22.6423 44.471 23.2725 44.6536C23.3194 44.6677 23.368 44.6817 23.415 44.6942C23.6418 44.7551 23.8702 44.8097 24.1019 44.8534C24.1456 44.8612 24.1894 44.8659 24.2331 44.8737C24.4194 44.9049 24.6073 44.9314 24.7952 44.9501C24.8698 44.9579 24.9443 44.9658 25.0188 44.9704C25.2342 44.9876 25.4497 44.9985 25.6668 45.0001C25.6781 45.0001 25.6895 45.0001 25.6992 45.0001C25.7024 45.0001 25.704 45.0001 25.7073 45.0001C25.7105 45.0001 25.7121 45.0001 25.7154 45.0001C25.9503 45.0001 26.1868 44.9876 26.4217 44.9689C26.4751 44.9642 26.5286 44.9595 26.5837 44.9533C26.8137 44.9299 27.0438 44.9002 27.2738 44.8596C27.277 44.8596 27.2803 44.8596 27.2835 44.8596C27.5362 44.8144 27.7889 44.7551 28.0384 44.6864C28.0546 44.6817 28.0692 44.677 28.0854 44.6723C28.4483 44.5709 28.8063 44.4445 29.1594 44.2931C29.1659 44.29 29.174 44.2868 29.1805 44.2837C29.4494 44.1682 29.7151 44.0418 29.9759 43.8967C30.24 43.75 30.491 43.5908 30.7308 43.4206C30.9398 43.2739 31.1407 43.1179 31.3367 42.9524C31.5748 42.7495 31.8 42.5373 32.009 42.3141C32.1661 42.1471 32.3168 41.9723 32.4609 41.7913C32.5079 41.732 32.5517 41.6711 32.5954 41.6118C32.6942 41.4807 32.7882 41.3465 32.8789 41.2091C32.9259 41.1373 32.9728 41.0671 33.0182 40.9953C33.036 40.9672 33.0555 40.9407 33.0717 40.9126L42.7153 24.8763H42.6214L42.6246 24.8716Z",
|
|
6633
6654
|
fill: "url(#paint1_linear_217_6990)"
|
|
6634
6655
|
}
|
|
6635
6656
|
),
|
|
6636
|
-
/* @__PURE__ */
|
|
6657
|
+
/* @__PURE__ */ jsx36(
|
|
6637
6658
|
"path",
|
|
6638
6659
|
{
|
|
6639
6660
|
d: "M42.8402 16.4218L42.1112 15.2232L38.9636 9.58433L37.504 7.19644C37.2286 6.56123 36.579 6.11331 35.8176 6.11331C34.8083 6.11331 33.9919 6.90147 33.9919 7.87223C33.9919 8.20154 34.0907 8.50432 34.2543 8.76808L34.2349 8.78056L39.9048 18.0808C40.5884 19.2186 40.7715 20.5437 40.4199 21.8141C40.0684 23.0845 39.226 24.1458 38.045 24.806C37.2675 25.2398 36.3846 25.4693 35.4936 25.4693C33.6727 25.4693 31.9766 24.5281 31.0662 23.0143L22.9161 9.63271H22.9323L19.4899 3.90958L19.4834 3.92051C19.4235 3.8253 19.3538 3.73947 19.2907 3.64738L19.1935 3.48663C19.1935 3.48663 19.1854 3.49131 19.1821 3.49443C17.5654 1.27666 14.9799 0.0390178 12.3118 0.00936427V0H7.91199V0.02185C10.9851 -0.184164 14.0582 1.23296 15.7656 3.92051L15.7721 3.90958L28.4451 24.987C30.0699 27.3093 32.7542 28.5985 35.5066 28.5985C36.9548 28.5985 38.4225 28.2426 39.7655 27.4919C40.961 26.8255 41.9168 25.9156 42.6231 24.8731H42.717L42.6846 24.9261C43.1366 24.2347 43.4833 23.4731 43.7068 22.6615C44.2916 20.5452 43.9871 18.3352 42.8369 16.4234L42.8402 16.4218Z",
|
|
@@ -6641,21 +6662,21 @@ var VuuLogo2 = memo2(() => {
|
|
|
6641
6662
|
}
|
|
6642
6663
|
),
|
|
6643
6664
|
/* @__PURE__ */ jsxs20("g", { opacity: "0.86", children: [
|
|
6644
|
-
/* @__PURE__ */
|
|
6665
|
+
/* @__PURE__ */ jsx36(
|
|
6645
6666
|
"path",
|
|
6646
6667
|
{
|
|
6647
6668
|
d: "M34.2332 8.78212L39.9031 18.0824C40.5868 19.2202 40.7698 20.5452 40.4183 21.8156C40.2044 22.5897 39.8059 23.2858 39.2616 23.8617C39.9744 23.2343 40.4879 22.4243 40.7423 21.5035C41.0938 20.2331 40.9107 18.908 40.2271 17.7703L34.5572 8.46998L34.5767 8.4575C34.413 8.19374 34.3142 7.89096 34.3142 7.56165C34.3142 7.15586 34.4584 6.78285 34.6982 6.48476C34.2672 6.80626 33.9902 7.30881 33.9902 7.87379C33.9902 8.2031 34.0891 8.50588 34.2527 8.76964L34.2332 8.78212Z",
|
|
6648
6669
|
fill: "white"
|
|
6649
6670
|
}
|
|
6650
6671
|
),
|
|
6651
|
-
/* @__PURE__ */
|
|
6672
|
+
/* @__PURE__ */ jsx36(
|
|
6652
6673
|
"path",
|
|
6653
6674
|
{
|
|
6654
6675
|
d: "M42.6917 24.9169L42.6863 24.9256C42.6863 24.9256 42.6899 24.9187 42.6935 24.9152C42.6935 24.9152 42.6935 24.9152 42.6935 24.9169H42.6917Z",
|
|
6655
6676
|
fill: "white"
|
|
6656
6677
|
}
|
|
6657
6678
|
),
|
|
6658
|
-
/* @__PURE__ */
|
|
6679
|
+
/* @__PURE__ */ jsx36(
|
|
6659
6680
|
"path",
|
|
6660
6681
|
{
|
|
6661
6682
|
d: "M40.0911 27.1798C38.7481 27.9289 37.2804 28.2863 35.8322 28.2863C33.0782 28.2863 30.3955 26.9988 28.7707 24.6749L16.0961 3.59744L16.0896 3.60837C14.9281 1.78077 13.1364 0.543128 11.1422 0H7.91199V0.02185C10.9851 -0.184164 14.0582 1.23296 15.7656 3.92051L15.7721 3.90958L28.4451 24.987C30.0699 27.3093 32.7542 28.5985 35.5066 28.5985C36.9548 28.5985 38.4225 28.2426 39.7655 27.4919C40.4815 27.0924 41.1084 26.6055 41.6511 26.0561C41.1862 26.479 40.6662 26.8583 40.0894 27.1798H40.0911Z",
|
|
@@ -6675,8 +6696,8 @@ var VuuLogo2 = memo2(() => {
|
|
|
6675
6696
|
y2: "18.7363",
|
|
6676
6697
|
gradientUnits: "userSpaceOnUse",
|
|
6677
6698
|
children: [
|
|
6678
|
-
/* @__PURE__ */
|
|
6679
|
-
/* @__PURE__ */
|
|
6699
|
+
/* @__PURE__ */ jsx36("stop", { stopColor: "#4906A5" }),
|
|
6700
|
+
/* @__PURE__ */ jsx36("stop", { offset: "1", stopColor: "#D3423A" })
|
|
6680
6701
|
]
|
|
6681
6702
|
}
|
|
6682
6703
|
),
|
|
@@ -6690,12 +6711,12 @@ var VuuLogo2 = memo2(() => {
|
|
|
6690
6711
|
y2: "22.5009",
|
|
6691
6712
|
gradientUnits: "userSpaceOnUse",
|
|
6692
6713
|
children: [
|
|
6693
|
-
/* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6714
|
+
/* @__PURE__ */ jsx36("stop", { stopColor: "#7C06A5" }),
|
|
6715
|
+
/* @__PURE__ */ jsx36("stop", { offset: "1", stopColor: "#D3423A" })
|
|
6695
6716
|
]
|
|
6696
6717
|
}
|
|
6697
6718
|
),
|
|
6698
|
-
/* @__PURE__ */
|
|
6719
|
+
/* @__PURE__ */ jsx36("clipPath", { id: "clip0_217_6990", children: /* @__PURE__ */ jsx36("rect", { width: "44", height: "45", fill: "white" }) })
|
|
6699
6720
|
] })
|
|
6700
6721
|
]
|
|
6701
6722
|
}
|
|
@@ -6710,7 +6731,7 @@ import { useCallback as useCallback39, useState as useState20 } from "react";
|
|
|
6710
6731
|
|
|
6711
6732
|
// ../vuu-shell/src/feature-list/FeatureList.tsx
|
|
6712
6733
|
import { Palette, PaletteItem } from "@vuu-ui/vuu-layout";
|
|
6713
|
-
import { jsx as
|
|
6734
|
+
import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6714
6735
|
|
|
6715
6736
|
// ../vuu-shell/src/theme-provider/ThemeProvider.tsx
|
|
6716
6737
|
import {
|
|
@@ -6720,7 +6741,7 @@ import {
|
|
|
6720
6741
|
useContext as useContext4
|
|
6721
6742
|
} from "react";
|
|
6722
6743
|
import cx16 from "classnames";
|
|
6723
|
-
import { jsx as
|
|
6744
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
6724
6745
|
var DEFAULT_DENSITY = "medium";
|
|
6725
6746
|
var DEFAULT_THEME = "salt-theme";
|
|
6726
6747
|
var DEFAULT_THEME_MODE = "light";
|
|
@@ -6769,12 +6790,12 @@ var ThemeProvider = ({
|
|
|
6769
6790
|
const themeMode = (_b = themeModeProp != null ? themeModeProp : inheritedThemeMode) != null ? _b : DEFAULT_THEME_MODE;
|
|
6770
6791
|
const theme = (_c = themeProp != null ? themeProp : inheritedTheme) != null ? _c : DEFAULT_THEME;
|
|
6771
6792
|
const themedChildren = applyThemeClasses ? createThemedChildren(children, theme, themeMode, density) : children;
|
|
6772
|
-
return /* @__PURE__ */
|
|
6793
|
+
return /* @__PURE__ */ jsx38(ThemeContext.Provider, { value: { themeMode, density, theme }, children: themedChildren });
|
|
6773
6794
|
};
|
|
6774
6795
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6775
6796
|
|
|
6776
6797
|
// ../vuu-shell/src/left-nav/LeftNav.tsx
|
|
6777
|
-
import { jsx as
|
|
6798
|
+
import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6778
6799
|
|
|
6779
6800
|
// ../vuu-shell/src/session-editing-form/SessionEditingForm.tsx
|
|
6780
6801
|
import {
|
|
@@ -6797,7 +6818,7 @@ import {
|
|
|
6797
6818
|
isValidNumber as isValidNumber2,
|
|
6798
6819
|
shallowEquals
|
|
6799
6820
|
} from "@vuu-ui/vuu-utils";
|
|
6800
|
-
import { jsx as
|
|
6821
|
+
import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6801
6822
|
|
|
6802
6823
|
// ../vuu-shell/src/shell.tsx
|
|
6803
6824
|
import { connectToServer } from "@vuu-ui/vuu-data";
|
|
@@ -6824,7 +6845,7 @@ import {
|
|
|
6824
6845
|
View,
|
|
6825
6846
|
useLayoutProviderDispatch as useLayoutProviderDispatch2
|
|
6826
6847
|
} from "@vuu-ui/vuu-layout";
|
|
6827
|
-
import { jsx as
|
|
6848
|
+
import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6828
6849
|
|
|
6829
6850
|
// ../vuu-shell/src/shell-layouts/useFullHeightLeftPanel.tsx
|
|
6830
6851
|
import { DraggableLayout, Flexbox } from "@vuu-ui/vuu-layout";
|
|
@@ -6832,10 +6853,10 @@ import { DraggableLayout, Flexbox } from "@vuu-ui/vuu-layout";
|
|
|
6832
6853
|
// ../vuu-shell/src/shell-layouts/side-panel/SidePanel.tsx
|
|
6833
6854
|
import { useMemo as useMemo20 } from "react";
|
|
6834
6855
|
import cx20 from "classnames";
|
|
6835
|
-
import { jsx as
|
|
6856
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6836
6857
|
|
|
6837
6858
|
// ../vuu-shell/src/shell-layouts/useFullHeightLeftPanel.tsx
|
|
6838
|
-
import { jsx as
|
|
6859
|
+
import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6839
6860
|
|
|
6840
6861
|
// ../vuu-shell/src/shell-layouts/useInlayLeftPanel.tsx
|
|
6841
6862
|
import {
|
|
@@ -6846,16 +6867,16 @@ import {
|
|
|
6846
6867
|
View as View2
|
|
6847
6868
|
} from "@vuu-ui/vuu-layout";
|
|
6848
6869
|
import { useCallback as useCallback42, useRef as useRef34, useState as useState22 } from "react";
|
|
6849
|
-
import { jsx as
|
|
6870
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6850
6871
|
|
|
6851
6872
|
// ../vuu-shell/src/shell.tsx
|
|
6852
6873
|
import { ContextMenuProvider, useDialog } from "@vuu-ui/vuu-popups";
|
|
6853
|
-
import { jsx as
|
|
6874
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6854
6875
|
var { error } = logger("Shell");
|
|
6855
6876
|
|
|
6856
6877
|
// ../vuu-shell/src/ShellContextProvider.tsx
|
|
6857
6878
|
import { createContext as createContext4, useContext as useContext5 } from "react";
|
|
6858
|
-
import { jsx as
|
|
6879
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
6859
6880
|
var defaultConfig = {};
|
|
6860
6881
|
var ShellContext = createContext4(defaultConfig);
|
|
6861
6882
|
|
|
@@ -6863,7 +6884,7 @@ var ShellContext = createContext4(defaultConfig);
|
|
|
6863
6884
|
import cx22 from "classnames";
|
|
6864
6885
|
import { ToggleButton, ToggleButtonGroup, useControlled as useControlled7 } from "@salt-ds/core";
|
|
6865
6886
|
import { useCallback as useCallback44 } from "react";
|
|
6866
|
-
import { jsx as
|
|
6887
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6867
6888
|
|
|
6868
6889
|
// ../vuu-data-react/src/hooks/useLookupValues.ts
|
|
6869
6890
|
import {
|
|
@@ -10028,7 +10049,7 @@ var useInstrumentSearch = ({
|
|
|
10028
10049
|
};
|
|
10029
10050
|
|
|
10030
10051
|
// src/instrument-search/InstrumentSearch.tsx
|
|
10031
|
-
import { jsx as
|
|
10052
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
10032
10053
|
var classBase15 = "vuuInstrumentSearch";
|
|
10033
10054
|
var defaultTableConfig = {
|
|
10034
10055
|
columns: [
|
|
@@ -10046,7 +10067,7 @@ var defaultTableConfig = {
|
|
|
10046
10067
|
],
|
|
10047
10068
|
rowSeparators: true
|
|
10048
10069
|
};
|
|
10049
|
-
var searchIcon = /* @__PURE__ */
|
|
10070
|
+
var searchIcon = /* @__PURE__ */ jsx48("span", { "data-icon": "search" });
|
|
10050
10071
|
var InstrumentSearch = ({
|
|
10051
10072
|
TableProps: TableProps3,
|
|
10052
10073
|
autoFocus = false,
|
|
@@ -10071,7 +10092,7 @@ var InstrumentSearch = ({
|
|
|
10071
10092
|
}, 100);
|
|
10072
10093
|
}, []);
|
|
10073
10094
|
return /* @__PURE__ */ jsxs29("div", { ...htmlAttributes, className: cx23(classBase15, className), children: [
|
|
10074
|
-
/* @__PURE__ */
|
|
10095
|
+
/* @__PURE__ */ jsx48("div", { className: `${classBase15}-inputField`, children: /* @__PURE__ */ jsx48(
|
|
10075
10096
|
Input5,
|
|
10076
10097
|
{
|
|
10077
10098
|
inputProps: { onKeyDown },
|
|
@@ -10082,7 +10103,7 @@ var InstrumentSearch = ({
|
|
|
10082
10103
|
onChange
|
|
10083
10104
|
}
|
|
10084
10105
|
) }),
|
|
10085
|
-
dataSource ? /* @__PURE__ */
|
|
10106
|
+
dataSource ? /* @__PURE__ */ jsx48(
|
|
10086
10107
|
Table2,
|
|
10087
10108
|
{
|
|
10088
10109
|
disableFocus: true,
|
|
@@ -10113,7 +10134,7 @@ import {
|
|
|
10113
10134
|
} from "@vuu-ui/vuu-utils";
|
|
10114
10135
|
import { memo as memo3, useMemo as useMemo24, useRef as useRef36 } from "react";
|
|
10115
10136
|
import cx24 from "classnames";
|
|
10116
|
-
import { jsx as
|
|
10137
|
+
import { jsx as jsx49, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
10117
10138
|
var classBase16 = "vuuPriceTicker";
|
|
10118
10139
|
var getValueFormatter = (decimals) => numericFormatter({
|
|
10119
10140
|
type: {
|
|
@@ -10140,7 +10161,7 @@ var PriceTicker = memo3(
|
|
|
10140
10161
|
ref.current = [price, direction];
|
|
10141
10162
|
return /* @__PURE__ */ jsxs30("div", { ...htmlAttributes, className: cx24(classBase16, className, direction), children: [
|
|
10142
10163
|
formatNumber(price),
|
|
10143
|
-
showArrow ? /* @__PURE__ */
|
|
10164
|
+
showArrow ? /* @__PURE__ */ jsx49("span", { "data-icon": "price-arrow" }) : null
|
|
10144
10165
|
] });
|
|
10145
10166
|
}
|
|
10146
10167
|
);
|
|
@@ -10150,7 +10171,7 @@ PriceTicker.displayName = "PriceTicker";
|
|
|
10150
10171
|
import { asReactElements, OverflowContainer, useId as useId6 } from "@vuu-ui/vuu-layout";
|
|
10151
10172
|
import { Button as Button8 } from "@salt-ds/core";
|
|
10152
10173
|
import cx25 from "classnames";
|
|
10153
|
-
import
|
|
10174
|
+
import React7, { useMemo as useMemo26, useRef as useRef40 } from "react";
|
|
10154
10175
|
|
|
10155
10176
|
// src/tabstrip/useTabstrip.ts
|
|
10156
10177
|
import { dispatchMouseEvent as dispatchMouseEvent3 } from "@vuu-ui/vuu-utils";
|
|
@@ -10835,7 +10856,7 @@ var useTabstrip = ({
|
|
|
10835
10856
|
};
|
|
10836
10857
|
|
|
10837
10858
|
// src/tabstrip/Tabstrip.tsx
|
|
10838
|
-
import { Fragment as Fragment6, jsx as
|
|
10859
|
+
import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10839
10860
|
import { createElement as createElement2 } from "react";
|
|
10840
10861
|
var classBase17 = "vuuTabstrip";
|
|
10841
10862
|
var Tabstrip = ({
|
|
@@ -10900,7 +10921,7 @@ var Tabstrip = ({
|
|
|
10900
10921
|
showMenuButton = showTabMenuButton
|
|
10901
10922
|
} = child.props;
|
|
10902
10923
|
const selected = index === activeTabIndex;
|
|
10903
|
-
return
|
|
10924
|
+
return React7.cloneElement(child, {
|
|
10904
10925
|
...tabProps,
|
|
10905
10926
|
...tabstripHook.navigationProps,
|
|
10906
10927
|
className: cx25(className2, tabClassName),
|
|
@@ -10951,7 +10972,7 @@ var Tabstrip = ({
|
|
|
10951
10972
|
]
|
|
10952
10973
|
);
|
|
10953
10974
|
return /* @__PURE__ */ jsxs31(Fragment6, { children: [
|
|
10954
|
-
/* @__PURE__ */
|
|
10975
|
+
/* @__PURE__ */ jsx50(
|
|
10955
10976
|
OverflowContainer,
|
|
10956
10977
|
{
|
|
10957
10978
|
...htmlAttributes,
|
|
@@ -10983,7 +11004,7 @@ import {
|
|
|
10983
11004
|
import { PopupMenu } from "@vuu-ui/vuu-popups";
|
|
10984
11005
|
import { useMemo as useMemo27 } from "react";
|
|
10985
11006
|
import cx26 from "classnames";
|
|
10986
|
-
import { jsx as
|
|
11007
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
10987
11008
|
var classBase18 = "vuuTabMenu";
|
|
10988
11009
|
var TabMenu = ({
|
|
10989
11010
|
allowClose,
|
|
@@ -11015,7 +11036,7 @@ var TabMenu = ({
|
|
|
11015
11036
|
],
|
|
11016
11037
|
[allowClose, allowRename, controlledComponentId, index]
|
|
11017
11038
|
);
|
|
11018
|
-
return /* @__PURE__ */
|
|
11039
|
+
return /* @__PURE__ */ jsx51(
|
|
11019
11040
|
PopupMenu,
|
|
11020
11041
|
{
|
|
11021
11042
|
className: classBase18,
|
|
@@ -11030,7 +11051,7 @@ var TabMenu = ({
|
|
|
11030
11051
|
};
|
|
11031
11052
|
|
|
11032
11053
|
// src/tabstrip/Tab.tsx
|
|
11033
|
-
import { jsx as
|
|
11054
|
+
import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
11034
11055
|
var classBase19 = "vuuTab";
|
|
11035
11056
|
var noop2 = () => void 0;
|
|
11036
11057
|
var Tab = forwardRef13(function Tab2({
|
|
@@ -11090,7 +11111,7 @@ var Tab = forwardRef13(function Tab2({
|
|
|
11090
11111
|
};
|
|
11091
11112
|
const getLabel = () => {
|
|
11092
11113
|
if (editable) {
|
|
11093
|
-
return /* @__PURE__ */
|
|
11114
|
+
return /* @__PURE__ */ jsx52(
|
|
11094
11115
|
EditableLabel,
|
|
11095
11116
|
{
|
|
11096
11117
|
editing,
|
|
@@ -11136,7 +11157,7 @@ var Tab = forwardRef13(function Tab2({
|
|
|
11136
11157
|
role: "tab",
|
|
11137
11158
|
tabIndex,
|
|
11138
11159
|
children: [
|
|
11139
|
-
/* @__PURE__ */
|
|
11160
|
+
/* @__PURE__ */ jsx52("div", { className: `${classBase19}-main`, children: /* @__PURE__ */ jsx52(
|
|
11140
11161
|
"span",
|
|
11141
11162
|
{
|
|
11142
11163
|
className: `${classBase19}-text`,
|
|
@@ -11144,7 +11165,7 @@ var Tab = forwardRef13(function Tab2({
|
|
|
11144
11165
|
children: children != null ? children : getLabel()
|
|
11145
11166
|
}
|
|
11146
11167
|
) }),
|
|
11147
|
-
showMenuButton ? /* @__PURE__ */
|
|
11168
|
+
showMenuButton ? /* @__PURE__ */ jsx52(
|
|
11148
11169
|
TabMenu,
|
|
11149
11170
|
{
|
|
11150
11171
|
allowClose: closeable,
|
|
@@ -12031,12 +12052,12 @@ var useTree = ({
|
|
|
12031
12052
|
};
|
|
12032
12053
|
|
|
12033
12054
|
// src/tree/Tree.tsx
|
|
12034
|
-
import { jsx as
|
|
12055
|
+
import { jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12035
12056
|
import { createElement as createElement3 } from "react";
|
|
12036
12057
|
var classBase20 = "vuuTree";
|
|
12037
12058
|
var isExpanded = (node) => node.expanded === true;
|
|
12038
12059
|
var TreeNode2 = ({ children, idx, ...props }) => {
|
|
12039
|
-
return /* @__PURE__ */
|
|
12060
|
+
return /* @__PURE__ */ jsx53("li", { ...props, children });
|
|
12040
12061
|
};
|
|
12041
12062
|
var Tree2 = forwardRef14(function Tree3({
|
|
12042
12063
|
allowDragDrop,
|
|
@@ -12103,8 +12124,8 @@ var Tree2 = forwardRef14(function Tree3({
|
|
|
12103
12124
|
...propsCommonToAllListItems,
|
|
12104
12125
|
...getListItemProps(item, idx, highlightedIdx, selected, focusVisible),
|
|
12105
12126
|
children: [
|
|
12106
|
-
item.icon ? /* @__PURE__ */
|
|
12107
|
-
/* @__PURE__ */
|
|
12127
|
+
item.icon ? /* @__PURE__ */ jsx53("span", { className: `${classBase20}Node-icon`, "data-icon": item.icon }) : null,
|
|
12128
|
+
/* @__PURE__ */ jsx53("span", { children: item.label })
|
|
12108
12129
|
]
|
|
12109
12130
|
}
|
|
12110
12131
|
)
|
|
@@ -12133,19 +12154,19 @@ var Tree2 = forwardRef14(function Tree3({
|
|
|
12133
12154
|
key: `header-${i}`
|
|
12134
12155
|
},
|
|
12135
12156
|
allowGroupSelect ? /* @__PURE__ */ jsxs33("div", { className: `${classBase20}Node-label`, children: [
|
|
12136
|
-
/* @__PURE__ */
|
|
12157
|
+
/* @__PURE__ */ jsx53("span", { className: `${classBase20}Node-toggle` }),
|
|
12137
12158
|
title
|
|
12138
12159
|
] }) : /* @__PURE__ */ jsxs33("div", { className: `${classBase20}Node-label`, children: [
|
|
12139
|
-
child.icon ? /* @__PURE__ */
|
|
12160
|
+
child.icon ? /* @__PURE__ */ jsx53(
|
|
12140
12161
|
"span",
|
|
12141
12162
|
{
|
|
12142
12163
|
className: `${classBase20}Node-icon`,
|
|
12143
12164
|
"data-icon": child.icon
|
|
12144
12165
|
}
|
|
12145
12166
|
) : null,
|
|
12146
|
-
/* @__PURE__ */
|
|
12167
|
+
/* @__PURE__ */ jsx53("span", { children: title })
|
|
12147
12168
|
] }),
|
|
12148
|
-
/* @__PURE__ */
|
|
12169
|
+
/* @__PURE__ */ jsx53("ul", { role: "group", children: isExpanded(child) ? renderSourceContent(child.childNodes, idx) : "" })
|
|
12149
12170
|
)
|
|
12150
12171
|
);
|
|
12151
12172
|
}
|
|
@@ -12162,7 +12183,7 @@ var Tree2 = forwardRef14(function Tree3({
|
|
|
12162
12183
|
return listItems;
|
|
12163
12184
|
}
|
|
12164
12185
|
}
|
|
12165
|
-
return /* @__PURE__ */
|
|
12186
|
+
return /* @__PURE__ */ jsx53(
|
|
12166
12187
|
"ul",
|
|
12167
12188
|
{
|
|
12168
12189
|
...htmlAttributes,
|
|
@@ -12200,7 +12221,7 @@ import {
|
|
|
12200
12221
|
} from "react";
|
|
12201
12222
|
import { Tooltip, useTooltip } from "@vuu-ui/vuu-popups";
|
|
12202
12223
|
import { useId as useId8 } from "@vuu-ui/vuu-layout";
|
|
12203
|
-
import { Fragment as Fragment7, jsx as
|
|
12224
|
+
import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12204
12225
|
var classBase21 = "vuuInput";
|
|
12205
12226
|
var constantInputProps = {
|
|
12206
12227
|
autoComplete: "off"
|
|
@@ -12255,7 +12276,7 @@ var VuuInput = forwardRef15(function VuuInput2({
|
|
|
12255
12276
|
},
|
|
12256
12277
|
[commitValue]
|
|
12257
12278
|
);
|
|
12258
|
-
const endAdornment = errorMessage ? /* @__PURE__ */
|
|
12279
|
+
const endAdornment = errorMessage ? /* @__PURE__ */ jsx54(
|
|
12259
12280
|
"span",
|
|
12260
12281
|
{
|
|
12261
12282
|
...anchorProps,
|
|
@@ -12264,7 +12285,7 @@ var VuuInput = forwardRef15(function VuuInput2({
|
|
|
12264
12285
|
}
|
|
12265
12286
|
) : void 0;
|
|
12266
12287
|
return /* @__PURE__ */ jsxs34(Fragment7, { children: [
|
|
12267
|
-
/* @__PURE__ */
|
|
12288
|
+
/* @__PURE__ */ jsx54(
|
|
12268
12289
|
Input6,
|
|
12269
12290
|
{
|
|
12270
12291
|
...props,
|
|
@@ -12282,7 +12303,7 @@ var VuuInput = forwardRef15(function VuuInput2({
|
|
|
12282
12303
|
onKeyDown: handleKeyDown
|
|
12283
12304
|
}
|
|
12284
12305
|
),
|
|
12285
|
-
tooltipProps ? /* @__PURE__ */
|
|
12306
|
+
tooltipProps ? /* @__PURE__ */ jsx54(Tooltip, { ...tooltipProps, status: "error" }) : null
|
|
12286
12307
|
] });
|
|
12287
12308
|
});
|
|
12288
12309
|
export {
|