@vuu-ui/vuu-data-react 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 +330 -298
- package/cjs/index.js.map +4 -4
- package/esm/index.js +458 -418
- package/esm/index.js.map +4 -4
- package/index.css +29 -22
- package/index.css.map +2 -2
- package/package.json +9 -9
package/cjs/index.js
CHANGED
|
@@ -19697,7 +19697,7 @@ var MovingWindow = class {
|
|
|
19697
19697
|
var import_vuu_data6 = require("@vuu-ui/vuu-data");
|
|
19698
19698
|
|
|
19699
19699
|
// ../vuu-shell/src/app-header/AppHeader.tsx
|
|
19700
|
-
var
|
|
19700
|
+
var import_react227 = require("react");
|
|
19701
19701
|
var import_classnames70 = __toESM(require_classnames());
|
|
19702
19702
|
|
|
19703
19703
|
// ../vuu-layout/src/dock-layout/DockLayout.tsx
|
|
@@ -22526,7 +22526,8 @@ var Tooltip = ({
|
|
|
22526
22526
|
onMouseEnter,
|
|
22527
22527
|
onMouseLeave,
|
|
22528
22528
|
placement,
|
|
22529
|
-
status
|
|
22529
|
+
status,
|
|
22530
|
+
style: styleProp
|
|
22530
22531
|
}) => {
|
|
22531
22532
|
const position = useAnchoredPosition2({ anchorElement, placement });
|
|
22532
22533
|
if (position === void 0) {
|
|
@@ -22540,7 +22541,7 @@ var Tooltip = ({
|
|
|
22540
22541
|
}),
|
|
22541
22542
|
"data-align": placement,
|
|
22542
22543
|
id,
|
|
22543
|
-
style: position,
|
|
22544
|
+
style: { ...styleProp, ...position },
|
|
22544
22545
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
22545
22546
|
"span",
|
|
22546
22547
|
{
|
|
@@ -24394,7 +24395,7 @@ var useCollectionItems = ({
|
|
|
24394
24395
|
// revealSelected = false,
|
|
24395
24396
|
source
|
|
24396
24397
|
}) => {
|
|
24397
|
-
var _a4;
|
|
24398
|
+
var _a4, _b;
|
|
24398
24399
|
const { getItemId } = options;
|
|
24399
24400
|
const [, forceUpdate] = (0, import_react79.useState)(null);
|
|
24400
24401
|
const inheritedCollectionHook = useCollection();
|
|
@@ -24402,6 +24403,7 @@ var useCollectionItems = ({
|
|
|
24402
24403
|
const flattenedDataRef = (0, import_react79.useRef)([]);
|
|
24403
24404
|
const EMPTY_COLLECTION = (0, import_react79.useMemo)(() => [], []);
|
|
24404
24405
|
const filterPattern = (0, import_react79.useRef)((_a4 = options.filterPattern) != null ? _a4 : "");
|
|
24406
|
+
const disableFilter = (_b = options.disableFilter) != null ? _b : false;
|
|
24405
24407
|
const {
|
|
24406
24408
|
getFilterRegex = getDefaultFilterRegex,
|
|
24407
24409
|
noChildrenLabel,
|
|
@@ -24413,14 +24415,14 @@ var useCollectionItems = ({
|
|
|
24413
24415
|
const addMetadataToItems = (0, import_react79.useCallback)(
|
|
24414
24416
|
(items, indexer, level = 1, path = "", results = [], flattenedCollection2 = [], flattenedSource2 = []) => {
|
|
24415
24417
|
items.forEach((item, i, all) => {
|
|
24416
|
-
var _a5,
|
|
24418
|
+
var _a5, _b2;
|
|
24417
24419
|
const isCollapsibleHeader = item.header && options.collapsibleHeaders;
|
|
24418
24420
|
const isNonCollapsibleGroupNode = item.childNodes && options.collapsibleHeaders === false;
|
|
24419
24421
|
const isLeaf3 = !item.childNodes || item.childNodes.length === 0;
|
|
24420
24422
|
const nonCollapsible = isNonCollapsibleGroupNode || isLeaf3 && !isCollapsibleHeader;
|
|
24421
24423
|
const childPath = path ? `${path}.${i}` : `item-${i}`;
|
|
24422
24424
|
const id = (_a5 = item.id) != null ? _a5 : getItemId ? getItemId(i) : `${idRoot}-${childPath}`;
|
|
24423
|
-
const expanded = nonCollapsible ? void 0 : (
|
|
24425
|
+
const expanded = nonCollapsible ? void 0 : (_b2 = item.expanded) != null ? _b2 : isExpanded2();
|
|
24424
24426
|
const normalisedItem = {
|
|
24425
24427
|
...item,
|
|
24426
24428
|
childNodes: void 0,
|
|
@@ -24455,12 +24457,12 @@ var useCollectionItems = ({
|
|
|
24455
24457
|
[options.collapsibleHeaders, getItemId, idRoot, isExpanded2]
|
|
24456
24458
|
);
|
|
24457
24459
|
const getFilter = (0, import_react79.useCallback)(() => {
|
|
24458
|
-
if (filterPattern.current) {
|
|
24460
|
+
if (filterPattern.current && !disableFilter) {
|
|
24459
24461
|
return getDefaultFilter(filterPattern.current, getFilterRegex);
|
|
24460
24462
|
} else {
|
|
24461
24463
|
return null;
|
|
24462
24464
|
}
|
|
24463
|
-
}, [getFilterRegex]);
|
|
24465
|
+
}, [disableFilter, getFilterRegex]);
|
|
24464
24466
|
const collectVisibleItems = (0, import_react79.useCallback)(
|
|
24465
24467
|
(items, filter = getFilter(), results = [], idx = { value: 0 }) => {
|
|
24466
24468
|
let skipToNextHeader = false;
|
|
@@ -25685,7 +25687,7 @@ var useSelection = ({
|
|
|
25685
25687
|
onSelectionChange,
|
|
25686
25688
|
selected: selectedProp,
|
|
25687
25689
|
selectionStrategy,
|
|
25688
|
-
selectionKeys = defaultSelectionKeys,
|
|
25690
|
+
selectionKeys: selectionKeys2 = defaultSelectionKeys,
|
|
25689
25691
|
tabToSelect
|
|
25690
25692
|
}) => {
|
|
25691
25693
|
const isDeselectable = selectionStrategy === "deselectable";
|
|
@@ -25693,8 +25695,8 @@ var useSelection = ({
|
|
|
25693
25695
|
const isExtendedSelect = selectionStrategy === "extended";
|
|
25694
25696
|
const lastActive = (0, import_react89.useRef)(-1);
|
|
25695
25697
|
const isSelectionEvent = (0, import_react89.useCallback)(
|
|
25696
|
-
(evt) =>
|
|
25697
|
-
[
|
|
25698
|
+
(evt) => selectionKeys2.includes(evt.key),
|
|
25699
|
+
[selectionKeys2]
|
|
25698
25700
|
);
|
|
25699
25701
|
const [selected, setSelected] = useControlled2({
|
|
25700
25702
|
controlled: selectedProp,
|
|
@@ -27891,7 +27893,7 @@ var useList = ({
|
|
|
27891
27893
|
scrollContainerRef,
|
|
27892
27894
|
selected,
|
|
27893
27895
|
selectionStrategy,
|
|
27894
|
-
selectionKeys,
|
|
27896
|
+
selectionKeys: selectionKeys2,
|
|
27895
27897
|
stickyHeaders,
|
|
27896
27898
|
tabToSelect,
|
|
27897
27899
|
viewportRange
|
|
@@ -27989,7 +27991,7 @@ var useList = ({
|
|
|
27989
27991
|
onSelectionChange: handleSelectionChange,
|
|
27990
27992
|
selected,
|
|
27991
27993
|
selectionStrategy,
|
|
27992
|
-
selectionKeys,
|
|
27994
|
+
selectionKeys: selectionKeys2,
|
|
27993
27995
|
tabToSelect
|
|
27994
27996
|
});
|
|
27995
27997
|
const { handleDrop, onDropSettle } = useListDrop({
|
|
@@ -28314,7 +28316,7 @@ var List = (0, import_react107.forwardRef)(function List2({
|
|
|
28314
28316
|
checkable = selectionStrategy === "multiple",
|
|
28315
28317
|
scrollingApiRef,
|
|
28316
28318
|
// TODO do we still need these ?
|
|
28317
|
-
selectionKeys,
|
|
28319
|
+
selectionKeys: selectionKeys2,
|
|
28318
28320
|
showEmptyMessage = false,
|
|
28319
28321
|
source,
|
|
28320
28322
|
style: styleProp,
|
|
@@ -28405,7 +28407,7 @@ var List = (0, import_react107.forwardRef)(function List2({
|
|
|
28405
28407
|
scrollContainerRef,
|
|
28406
28408
|
selected: collectionHook.itemToCollectionItemId(selectedProp),
|
|
28407
28409
|
selectionStrategy,
|
|
28408
|
-
selectionKeys,
|
|
28410
|
+
selectionKeys: selectionKeys2,
|
|
28409
28411
|
stickyHeaders,
|
|
28410
28412
|
tabToSelect,
|
|
28411
28413
|
viewportRange
|
|
@@ -28692,7 +28694,7 @@ var VirtualizedList = (0, import_react110.forwardRef)(function List3({
|
|
|
28692
28694
|
selectionStrategy,
|
|
28693
28695
|
scrollingApiRef,
|
|
28694
28696
|
// TODO do we still need these ?
|
|
28695
|
-
selectionKeys,
|
|
28697
|
+
selectionKeys: selectionKeys2,
|
|
28696
28698
|
showEmptyMessage = false,
|
|
28697
28699
|
source,
|
|
28698
28700
|
style: styleProp,
|
|
@@ -28750,7 +28752,7 @@ var VirtualizedList = (0, import_react110.forwardRef)(function List3({
|
|
|
28750
28752
|
restoreLastFocus,
|
|
28751
28753
|
selected: collectionHook.itemToCollectionItemId(selectedProp),
|
|
28752
28754
|
selectionStrategy,
|
|
28753
|
-
selectionKeys,
|
|
28755
|
+
selectionKeys: selectionKeys2,
|
|
28754
28756
|
stickyHeaders,
|
|
28755
28757
|
tabToSelect
|
|
28756
28758
|
});
|
|
@@ -28979,7 +28981,7 @@ var Dropdown2 = (0, import_react112.forwardRef)(function Dropdown3({
|
|
|
28979
28981
|
source,
|
|
28980
28982
|
triggerComponent,
|
|
28981
28983
|
ListItem: ListItem4,
|
|
28982
|
-
ListProps:
|
|
28984
|
+
ListProps: ListProps6,
|
|
28983
28985
|
width = 180,
|
|
28984
28986
|
...props
|
|
28985
28987
|
}, forwardedRef) {
|
|
@@ -29004,14 +29006,14 @@ var Dropdown2 = (0, import_react112.forwardRef)(function Dropdown3({
|
|
|
29004
29006
|
...dropdownListHook
|
|
29005
29007
|
} = useDropdown({
|
|
29006
29008
|
collectionHook,
|
|
29007
|
-
defaultHighlightedIndex:
|
|
29009
|
+
defaultHighlightedIndex: ListProps6 == null ? void 0 : ListProps6.defaultHighlightedIndex,
|
|
29008
29010
|
defaultIsOpen,
|
|
29009
29011
|
defaultSelected: collectionHook.itemToCollectionItemId(defaultSelected),
|
|
29010
|
-
highlightedIndex:
|
|
29012
|
+
highlightedIndex: ListProps6 == null ? void 0 : ListProps6.highlightedIndex,
|
|
29011
29013
|
isOpen: isOpenProp,
|
|
29012
29014
|
itemToString: itemToString2,
|
|
29013
29015
|
listRef,
|
|
29014
|
-
onHighlight:
|
|
29016
|
+
onHighlight: ListProps6 == null ? void 0 : ListProps6.onHighlight,
|
|
29015
29017
|
onOpenChange,
|
|
29016
29018
|
onSelectionChange,
|
|
29017
29019
|
onSelect,
|
|
@@ -29061,7 +29063,7 @@ var Dropdown2 = (0, import_react112.forwardRef)(function Dropdown3({
|
|
|
29061
29063
|
id,
|
|
29062
29064
|
isOpen: dropdownListHook.isOpen,
|
|
29063
29065
|
onOpenChange: dropdownListHook.onOpenChange,
|
|
29064
|
-
placement: (
|
|
29066
|
+
placement: (ListProps6 == null ? void 0 : ListProps6.width) === void 0 ? "below-full-width" : "below",
|
|
29065
29067
|
ref: forkedRef,
|
|
29066
29068
|
width,
|
|
29067
29069
|
children: [
|
|
@@ -29071,7 +29073,7 @@ var Dropdown2 = (0, import_react112.forwardRef)(function Dropdown3({
|
|
|
29071
29073
|
{
|
|
29072
29074
|
ListItem: ListItem4,
|
|
29073
29075
|
itemToString: itemToString2,
|
|
29074
|
-
...
|
|
29076
|
+
...ListProps6,
|
|
29075
29077
|
highlightedIndex,
|
|
29076
29078
|
listHandlers,
|
|
29077
29079
|
onSelectionChange,
|
|
@@ -29090,6 +29092,7 @@ var Dropdown2 = (0, import_react112.forwardRef)(function Dropdown3({
|
|
|
29090
29092
|
var import_react113 = require("react");
|
|
29091
29093
|
var EnterOnly = ["Enter"];
|
|
29092
29094
|
var useCombobox = ({
|
|
29095
|
+
allowBackspaceClearsSelection,
|
|
29093
29096
|
allowFreeText,
|
|
29094
29097
|
ariaLabel,
|
|
29095
29098
|
collectionHook,
|
|
@@ -29099,6 +29102,7 @@ var useCombobox = ({
|
|
|
29099
29102
|
onBlur,
|
|
29100
29103
|
onFocus,
|
|
29101
29104
|
onChange,
|
|
29105
|
+
onDeselect,
|
|
29102
29106
|
onSelect,
|
|
29103
29107
|
id,
|
|
29104
29108
|
initialHighlightedIndex = -1,
|
|
@@ -29111,6 +29115,7 @@ var useCombobox = ({
|
|
|
29111
29115
|
onSelectionChange,
|
|
29112
29116
|
onSetSelectedText,
|
|
29113
29117
|
selected: selectedProp,
|
|
29118
|
+
selectionKeys: selectionKeys2 = EnterOnly,
|
|
29114
29119
|
selectionStrategy,
|
|
29115
29120
|
value: valueProp,
|
|
29116
29121
|
InputProps: inputProps = {
|
|
@@ -29121,7 +29126,7 @@ var useCombobox = ({
|
|
|
29121
29126
|
}
|
|
29122
29127
|
}) => {
|
|
29123
29128
|
const isMultiSelect = isMultiSelection(selectionStrategy);
|
|
29124
|
-
const { setFilterPattern } = collectionHook;
|
|
29129
|
+
const { data, setFilterPattern } = collectionHook;
|
|
29125
29130
|
const setHighlightedIndexRef = (0, import_react113.useRef)(null);
|
|
29126
29131
|
const selectedRef = (0, import_react113.useRef)(isMultiSelect ? [] : null);
|
|
29127
29132
|
const ignoreSelectOnFocus = (0, import_react113.useRef)(true);
|
|
@@ -29140,7 +29145,6 @@ var useCombobox = ({
|
|
|
29140
29145
|
const highlightSelectedItem = (0, import_react113.useCallback)((selected2) => {
|
|
29141
29146
|
var _a4;
|
|
29142
29147
|
if (Array.isArray(selected2)) {
|
|
29143
|
-
console.log("TODO multi selection");
|
|
29144
29148
|
} else if (selected2 == null) {
|
|
29145
29149
|
(_a4 = setHighlightedIndexRef.current) == null ? void 0 : _a4.call(setHighlightedIndexRef, -1);
|
|
29146
29150
|
}
|
|
@@ -29238,7 +29242,7 @@ var useCombobox = ({
|
|
|
29238
29242
|
setTextValue("", false);
|
|
29239
29243
|
}
|
|
29240
29244
|
setIsOpen(open);
|
|
29241
|
-
onOpenChange == null ? void 0 : onOpenChange(open);
|
|
29245
|
+
onOpenChange == null ? void 0 : onOpenChange(open, closeReason);
|
|
29242
29246
|
if (!open && closeReason !== "Escape") {
|
|
29243
29247
|
if (!selectFreeTextInputValue()) {
|
|
29244
29248
|
applySelection();
|
|
@@ -29281,11 +29285,11 @@ var useCombobox = ({
|
|
|
29281
29285
|
disableAriaActiveDescendant,
|
|
29282
29286
|
disableHighlightOnFocus: true,
|
|
29283
29287
|
disableTypeToSelect: true,
|
|
29288
|
+
label: "combobox",
|
|
29284
29289
|
onKeyboardNavigation: handleKeyboardNavigation,
|
|
29285
|
-
// onKeyDown: handleInputKeyDown,
|
|
29286
29290
|
onSelectionChange: handleSelectionChange,
|
|
29287
29291
|
selected: collectionHook.itemToCollectionItemId(selectedProp),
|
|
29288
|
-
selectionKeys:
|
|
29292
|
+
selectionKeys: selectionKeys2,
|
|
29289
29293
|
selectionStrategy,
|
|
29290
29294
|
tabToSelect: !isMultiSelect
|
|
29291
29295
|
});
|
|
@@ -29312,6 +29316,15 @@ var useCombobox = ({
|
|
|
29312
29316
|
},
|
|
29313
29317
|
[setFilterPattern, setIsOpen, setValue]
|
|
29314
29318
|
);
|
|
29319
|
+
const handleInputKeyDown = (0, import_react113.useCallback)(
|
|
29320
|
+
(e) => {
|
|
29321
|
+
if (e.key === "Backspace" && allowBackspaceClearsSelection) {
|
|
29322
|
+
selectedRef.current = null;
|
|
29323
|
+
onDeselect == null ? void 0 : onDeselect();
|
|
29324
|
+
}
|
|
29325
|
+
},
|
|
29326
|
+
[allowBackspaceClearsSelection, onDeselect]
|
|
29327
|
+
);
|
|
29315
29328
|
const { onFocus: inputOnFocus = onFocus } = inputProps;
|
|
29316
29329
|
const { onFocus: listOnFocus } = listControlProps;
|
|
29317
29330
|
const handleInputFocus = (0, import_react113.useCallback)(
|
|
@@ -29373,7 +29386,8 @@ var useCombobox = ({
|
|
|
29373
29386
|
...inputProps.inputProps,
|
|
29374
29387
|
// "aria-owns": listId,
|
|
29375
29388
|
"aria-label": ariaLabel,
|
|
29376
|
-
autoComplete: "off"
|
|
29389
|
+
autoComplete: "off",
|
|
29390
|
+
onKeyDown: handleInputKeyDown
|
|
29377
29391
|
};
|
|
29378
29392
|
return {
|
|
29379
29393
|
focusVisible,
|
|
@@ -29416,16 +29430,18 @@ var ChevronIcon = (props) => {
|
|
|
29416
29430
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
29417
29431
|
var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
29418
29432
|
InputProps: InputProps4,
|
|
29419
|
-
ListProps:
|
|
29433
|
+
ListProps: ListProps6,
|
|
29420
29434
|
PopupProps,
|
|
29421
29435
|
ListItem: ListItem4,
|
|
29422
29436
|
"aria-label": ariaLabel,
|
|
29437
|
+
allowBackspaceClearsSelection,
|
|
29423
29438
|
allowFreeText,
|
|
29424
29439
|
children,
|
|
29425
29440
|
defaultIsOpen,
|
|
29426
29441
|
defaultSelected,
|
|
29427
29442
|
defaultValue,
|
|
29428
29443
|
disabled,
|
|
29444
|
+
disableFilter,
|
|
29429
29445
|
onBlur,
|
|
29430
29446
|
onFocus,
|
|
29431
29447
|
onChange,
|
|
@@ -29437,9 +29453,11 @@ var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
|
29437
29453
|
isOpen: isOpenProp,
|
|
29438
29454
|
itemToString: itemToString2 = itemToString,
|
|
29439
29455
|
itemsToString,
|
|
29456
|
+
onDeselect,
|
|
29440
29457
|
onOpenChange: onOpenChangeProp,
|
|
29441
29458
|
onSelectionChange,
|
|
29442
29459
|
selected: selectedProp,
|
|
29460
|
+
selectionKeys: selectionKeys2,
|
|
29443
29461
|
selectionStrategy,
|
|
29444
29462
|
source,
|
|
29445
29463
|
value: valueProp,
|
|
@@ -29461,6 +29479,7 @@ var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
|
29461
29479
|
source,
|
|
29462
29480
|
children,
|
|
29463
29481
|
options: {
|
|
29482
|
+
disableFilter,
|
|
29464
29483
|
filterPattern: initialValue,
|
|
29465
29484
|
getFilterRegex,
|
|
29466
29485
|
itemToString: itemToString2
|
|
@@ -29477,6 +29496,7 @@ var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
|
29477
29496
|
selected
|
|
29478
29497
|
} = useCombobox({
|
|
29479
29498
|
InputProps: InputProps4,
|
|
29499
|
+
allowBackspaceClearsSelection,
|
|
29480
29500
|
allowFreeText,
|
|
29481
29501
|
ariaLabel,
|
|
29482
29502
|
collectionHook,
|
|
@@ -29489,6 +29509,7 @@ var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
|
29489
29509
|
label: props.title,
|
|
29490
29510
|
listRef,
|
|
29491
29511
|
onBlur,
|
|
29512
|
+
onDeselect,
|
|
29492
29513
|
onFocus,
|
|
29493
29514
|
onChange,
|
|
29494
29515
|
onSelect,
|
|
@@ -29500,6 +29521,7 @@ var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
|
29500
29521
|
onSelectionChange,
|
|
29501
29522
|
onSetSelectedText,
|
|
29502
29523
|
selected: selectedProp,
|
|
29524
|
+
selectionKeys: selectionKeys2,
|
|
29503
29525
|
selectionStrategy,
|
|
29504
29526
|
value: initialValue
|
|
29505
29527
|
});
|
|
@@ -29541,13 +29563,12 @@ var ComboBox = (0, import_react114.forwardRef)(function Combobox({
|
|
|
29541
29563
|
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
29542
29564
|
List,
|
|
29543
29565
|
{
|
|
29544
|
-
...
|
|
29566
|
+
...ListProps6,
|
|
29545
29567
|
ListItem: ListItem4,
|
|
29546
29568
|
defaultSelected: void 0,
|
|
29547
29569
|
focusVisible,
|
|
29548
29570
|
highlightedIndex,
|
|
29549
29571
|
itemTextHighlightPattern: String(inputProps.value) || void 0,
|
|
29550
|
-
id: `${id}-list`,
|
|
29551
29572
|
listHandlers,
|
|
29552
29573
|
onSelectionChange,
|
|
29553
29574
|
ref: listRef,
|
|
@@ -51229,26 +51250,6 @@ var buildContextMenuDescriptors = (dataSource) => (location, options) => {
|
|
|
51229
51250
|
label: `DataGrid Settings`,
|
|
51230
51251
|
options
|
|
51231
51252
|
});
|
|
51232
|
-
} else if (location === "filter") {
|
|
51233
|
-
const { column, filter } = options;
|
|
51234
|
-
const colIsOnlyFilter = (filter == null ? void 0 : filter.column) === (column == null ? void 0 : column.name);
|
|
51235
|
-
descriptors.push({
|
|
51236
|
-
label: "Edit filter",
|
|
51237
|
-
action: "filter-edit",
|
|
51238
|
-
options
|
|
51239
|
-
});
|
|
51240
|
-
descriptors.push({
|
|
51241
|
-
label: "Remove filter",
|
|
51242
|
-
action: "filter-remove-column",
|
|
51243
|
-
options
|
|
51244
|
-
});
|
|
51245
|
-
if (column && !colIsOnlyFilter) {
|
|
51246
|
-
descriptors.push({
|
|
51247
|
-
label: `Remove all filters`,
|
|
51248
|
-
action: "remove-filters",
|
|
51249
|
-
options
|
|
51250
|
-
});
|
|
51251
|
-
}
|
|
51252
51253
|
}
|
|
51253
51254
|
return descriptors;
|
|
51254
51255
|
};
|
|
@@ -52158,7 +52159,7 @@ var NO_SELECTION = [];
|
|
|
52158
52159
|
var defaultSelectionKeys2 = ["Enter", " "];
|
|
52159
52160
|
var useSelection2 = ({
|
|
52160
52161
|
highlightedIndexRef,
|
|
52161
|
-
selectionKeys = defaultSelectionKeys2,
|
|
52162
|
+
selectionKeys: selectionKeys2 = defaultSelectionKeys2,
|
|
52162
52163
|
selectionModel,
|
|
52163
52164
|
onSelect,
|
|
52164
52165
|
onSelectionChange
|
|
@@ -52167,8 +52168,8 @@ var useSelection2 = ({
|
|
|
52167
52168
|
const lastActiveRef = (0, import_react150.useRef)(-1);
|
|
52168
52169
|
const selectedRef = (0, import_react150.useRef)(NO_SELECTION);
|
|
52169
52170
|
const isSelectionEvent = (0, import_react150.useCallback)(
|
|
52170
|
-
(evt) =>
|
|
52171
|
-
[
|
|
52171
|
+
(evt) => selectionKeys2.includes(evt.key),
|
|
52172
|
+
[selectionKeys2]
|
|
52172
52173
|
);
|
|
52173
52174
|
const handleRowClick = (0, import_react150.useCallback)(
|
|
52174
52175
|
(row, rangeSelect, keepExistingSelection) => {
|
|
@@ -55511,15 +55512,15 @@ var useSelection4 = ({
|
|
|
55511
55512
|
onChange,
|
|
55512
55513
|
selected: selectedProp,
|
|
55513
55514
|
selection = SINGLE,
|
|
55514
|
-
selectionKeys = defaultSelectionKeys4
|
|
55515
|
+
selectionKeys: selectionKeys2 = defaultSelectionKeys4
|
|
55515
55516
|
}) => {
|
|
55516
55517
|
const singleSelect = selection === SINGLE;
|
|
55517
55518
|
const multiSelect = selection === MULTI || selection.startsWith(CHECKBOX);
|
|
55518
55519
|
const extendedSelect = selection === EXTENDED;
|
|
55519
55520
|
const lastActive = (0, import_react178.useRef)(-1);
|
|
55520
55521
|
const isSelectionEvent = (0, import_react178.useCallback)(
|
|
55521
|
-
(evt) =>
|
|
55522
|
-
[
|
|
55522
|
+
(evt) => selectionKeys2.includes(evt.key),
|
|
55523
|
+
[selectionKeys2]
|
|
55523
55524
|
);
|
|
55524
55525
|
const [selected, setSelected] = useControlled({
|
|
55525
55526
|
controlled: selectedProp,
|
|
@@ -56754,7 +56755,7 @@ var View = (0, import_react192.forwardRef)(function View2(props, forwardedRef) {
|
|
|
56754
56755
|
title: titleProp,
|
|
56755
56756
|
...restProps
|
|
56756
56757
|
} = props;
|
|
56757
|
-
const id =
|
|
56758
|
+
const id = useId2(idProp);
|
|
56758
56759
|
const rootRef = (0, import_react192.useRef)(null);
|
|
56759
56760
|
const mainRef = (0, import_react192.useRef)(null);
|
|
56760
56761
|
const [componentProps, _setComponentProps] = (0, import_react192.useState)();
|
|
@@ -57007,7 +57008,7 @@ var defaultApplicationJson = {
|
|
|
57007
57008
|
|
|
57008
57009
|
// ../vuu-filters/src/filter-bar/FilterBar.tsx
|
|
57009
57010
|
var import_classnames61 = __toESM(require_classnames(), 1);
|
|
57010
|
-
var
|
|
57011
|
+
var import_react205 = require("react");
|
|
57011
57012
|
|
|
57012
57013
|
// ../vuu-filters/src/filter-builder-menu/FilterBuilderMenu.tsx
|
|
57013
57014
|
var import_react194 = require("react");
|
|
@@ -57031,7 +57032,6 @@ var ExpandoCombobox = (0, import_react195.forwardRef)(function ExpandoCombobox2(
|
|
|
57031
57032
|
value = "",
|
|
57032
57033
|
...props
|
|
57033
57034
|
}, forwardedRef) {
|
|
57034
|
-
var _a4;
|
|
57035
57035
|
const [text, setText] = (0, import_react195.useState)(value);
|
|
57036
57036
|
const { itemToString: itemToString2 = import_vuu_utils73.itemToString } = props;
|
|
57037
57037
|
const initialValue = (0, import_react195.useRef)(value);
|
|
@@ -57049,7 +57049,6 @@ var ExpandoCombobox = (0, import_react195.forwardRef)(function ExpandoCombobox2(
|
|
|
57049
57049
|
const handleInputChange = (0, import_react195.useCallback)(
|
|
57050
57050
|
(evt) => {
|
|
57051
57051
|
const { value: value2 } = evt.target;
|
|
57052
|
-
console.log(`onInputChange ${value2}`);
|
|
57053
57052
|
setText(value2);
|
|
57054
57053
|
onInputChange == null ? void 0 : onInputChange(evt);
|
|
57055
57054
|
},
|
|
@@ -57058,7 +57057,7 @@ var ExpandoCombobox = (0, import_react195.forwardRef)(function ExpandoCombobox2(
|
|
|
57058
57057
|
const handleSetSelectedText = (0, import_react195.useCallback)((text2) => {
|
|
57059
57058
|
setText(text2);
|
|
57060
57059
|
}, []);
|
|
57061
|
-
const [InputProps4,
|
|
57060
|
+
const [InputProps4, ListProps6] = (0, import_react195.useMemo)(() => {
|
|
57062
57061
|
const { inputProps, ...restInputProps } = InputPropsProp;
|
|
57063
57062
|
return [
|
|
57064
57063
|
{
|
|
@@ -57105,7 +57104,7 @@ var ExpandoCombobox = (0, import_react195.forwardRef)(function ExpandoCombobox2(
|
|
|
57105
57104
|
const popupProps = {
|
|
57106
57105
|
minWidth: "fit-content"
|
|
57107
57106
|
};
|
|
57108
|
-
return
|
|
57107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
57109
57108
|
"div",
|
|
57110
57109
|
{
|
|
57111
57110
|
className: (0, import_classnames57.default)(classBase46, classNameProp),
|
|
@@ -57119,7 +57118,7 @@ var ExpandoCombobox = (0, import_react195.forwardRef)(function ExpandoCombobox2(
|
|
|
57119
57118
|
PopupProps: popupProps,
|
|
57120
57119
|
defaultValue: initialValue.current,
|
|
57121
57120
|
fullWidth: true,
|
|
57122
|
-
ListProps:
|
|
57121
|
+
ListProps: ListProps6,
|
|
57123
57122
|
InputProps: InputProps4,
|
|
57124
57123
|
itemsToString,
|
|
57125
57124
|
onSelectionChange: handleSelectionChange,
|
|
@@ -57190,10 +57189,14 @@ var import_vuu_utils75 = require("@vuu-ui/vuu-utils");
|
|
|
57190
57189
|
// ../vuu-filters/src/filter-clause/TextInput.tsx
|
|
57191
57190
|
var import_react197 = require("react");
|
|
57192
57191
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
57192
|
+
var selectionKeys = ["Enter", " "];
|
|
57193
|
+
var NO_DATA_MATCH = ["No matching data"];
|
|
57193
57194
|
var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
57194
57195
|
InputProps: InputPropsProp = {},
|
|
57195
57196
|
className,
|
|
57196
57197
|
column,
|
|
57198
|
+
"data-field": dataField,
|
|
57199
|
+
onDeselect,
|
|
57197
57200
|
onInputComplete,
|
|
57198
57201
|
operator: operator2,
|
|
57199
57202
|
suggestionProvider = useTypeaheadSuggestions,
|
|
@@ -57223,7 +57226,11 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57223
57226
|
if (table) {
|
|
57224
57227
|
const params = valueInputValue ? [table, column.name, valueInputValue] : [table, column.name];
|
|
57225
57228
|
getSuggestions(params).then((suggestions) => {
|
|
57226
|
-
|
|
57229
|
+
if (suggestions.length === 0 && valueInputValue) {
|
|
57230
|
+
setTypeaheadValues(NO_DATA_MATCH);
|
|
57231
|
+
} else {
|
|
57232
|
+
setTypeaheadValues(suggestions);
|
|
57233
|
+
}
|
|
57227
57234
|
}).catch((err) => {
|
|
57228
57235
|
console.error("Error getting suggestions", err);
|
|
57229
57236
|
});
|
|
@@ -57257,6 +57264,9 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57257
57264
|
}
|
|
57258
57265
|
}, [InputPropsProp, onInputComplete, operator2, valueInputValue]);
|
|
57259
57266
|
const getValueInputField = (0, import_react197.useCallback)(() => {
|
|
57267
|
+
if (typeaheadValues.length === 0) {
|
|
57268
|
+
return null;
|
|
57269
|
+
}
|
|
57260
57270
|
switch (operator2) {
|
|
57261
57271
|
case "in":
|
|
57262
57272
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
@@ -57264,16 +57274,18 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57264
57274
|
{
|
|
57265
57275
|
InputProps: InputProps4,
|
|
57266
57276
|
className,
|
|
57277
|
+
"data-field": dataField,
|
|
57267
57278
|
initialHighlightedIndex: 0,
|
|
57268
57279
|
source: typeaheadValues,
|
|
57269
57280
|
onInputChange: handleInputChange,
|
|
57270
57281
|
onSelectionChange: handleMultiValueSelectionChange,
|
|
57271
57282
|
ref: forwardedRef,
|
|
57272
57283
|
selectionStrategy: "multiple",
|
|
57284
|
+
selectionKeys,
|
|
57273
57285
|
value
|
|
57274
57286
|
}
|
|
57275
57287
|
);
|
|
57276
|
-
case "starts":
|
|
57288
|
+
case "starts": {
|
|
57277
57289
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
57278
57290
|
ExpandoCombobox,
|
|
57279
57291
|
{
|
|
@@ -57284,7 +57296,9 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57284
57296
|
},
|
|
57285
57297
|
allowFreeText: true,
|
|
57286
57298
|
className,
|
|
57299
|
+
"data-field": dataField,
|
|
57287
57300
|
initialHighlightedIndex: 0,
|
|
57301
|
+
disableFilter: typeaheadValues === NO_DATA_MATCH && (valueInputValue == null ? void 0 : valueInputValue.length) > 0,
|
|
57288
57302
|
source: typeaheadValues,
|
|
57289
57303
|
onInputChange: handleInputChange,
|
|
57290
57304
|
onSelectionChange: handleSingleValueSelectionChange,
|
|
@@ -57292,12 +57306,14 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57292
57306
|
value
|
|
57293
57307
|
}
|
|
57294
57308
|
);
|
|
57309
|
+
}
|
|
57295
57310
|
case "ends":
|
|
57296
57311
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
57297
57312
|
ExpandoInput,
|
|
57298
57313
|
{
|
|
57299
57314
|
...InputProps4,
|
|
57300
57315
|
className,
|
|
57316
|
+
"data-field": dataField,
|
|
57301
57317
|
value: valueInputValue,
|
|
57302
57318
|
ref: forwardedRef,
|
|
57303
57319
|
onChange: handleInputChange
|
|
@@ -57308,11 +57324,14 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57308
57324
|
ExpandoCombobox,
|
|
57309
57325
|
{
|
|
57310
57326
|
InputProps: InputProps4,
|
|
57327
|
+
allowBackspaceClearsSelection: true,
|
|
57311
57328
|
className,
|
|
57329
|
+
"data-field": dataField,
|
|
57312
57330
|
initialHighlightedIndex: 0,
|
|
57313
57331
|
source: typeaheadValues,
|
|
57314
57332
|
title: "value",
|
|
57315
57333
|
onInputChange: handleInputChange,
|
|
57334
|
+
onDeselect,
|
|
57316
57335
|
onSelectionChange: handleSingleValueSelectionChange,
|
|
57317
57336
|
ref: forwardedRef,
|
|
57318
57337
|
value
|
|
@@ -57323,13 +57342,15 @@ var TextInput = (0, import_react197.forwardRef)(function TextInput2({
|
|
|
57323
57342
|
operator2,
|
|
57324
57343
|
InputProps4,
|
|
57325
57344
|
className,
|
|
57345
|
+
dataField,
|
|
57326
57346
|
typeaheadValues,
|
|
57327
57347
|
handleInputChange,
|
|
57328
57348
|
handleMultiValueSelectionChange,
|
|
57329
57349
|
forwardedRef,
|
|
57330
57350
|
value,
|
|
57331
|
-
|
|
57332
|
-
|
|
57351
|
+
valueInputValue,
|
|
57352
|
+
onDeselect,
|
|
57353
|
+
handleSingleValueSelectionChange
|
|
57333
57354
|
]);
|
|
57334
57355
|
return getValueInputField();
|
|
57335
57356
|
});
|
|
@@ -57343,7 +57364,7 @@ var import_react198 = require("react");
|
|
|
57343
57364
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
57344
57365
|
|
|
57345
57366
|
// ../vuu-filters/src/filter-pill/FilterPill.tsx
|
|
57346
|
-
var
|
|
57367
|
+
var import_vuu_utils79 = require("@vuu-ui/vuu-utils");
|
|
57347
57368
|
var import_classnames60 = __toESM(require_classnames(), 1);
|
|
57348
57369
|
var import_react201 = require("react");
|
|
57349
57370
|
|
|
@@ -57355,24 +57376,34 @@ var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
|
57355
57376
|
// ../vuu-filters/src/filter-utils.ts
|
|
57356
57377
|
var import_vuu_utils77 = require("@vuu-ui/vuu-utils");
|
|
57357
57378
|
|
|
57358
|
-
// ../vuu-filters/src/filter-pill/
|
|
57379
|
+
// ../vuu-filters/src/filter-pill/filterAsReactNode.tsx
|
|
57380
|
+
var import_vuu_utils78 = require("@vuu-ui/vuu-utils");
|
|
57359
57381
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
57360
57382
|
|
|
57383
|
+
// ../vuu-filters/src/filter-pill/FilterPill.tsx
|
|
57384
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
57385
|
+
|
|
57361
57386
|
// ../vuu-filters/src/filter-bar/useFilterBar.ts
|
|
57362
|
-
var
|
|
57387
|
+
var import_vuu_utils80 = require("@vuu-ui/vuu-utils");
|
|
57363
57388
|
var import_react203 = require("react");
|
|
57364
57389
|
|
|
57365
57390
|
// ../vuu-filters/src/filter-bar/useFilters.ts
|
|
57366
57391
|
var import_react202 = require("react");
|
|
57367
57392
|
|
|
57393
|
+
// ../vuu-filters/src/filter-bar/useFilterBarMenu.ts
|
|
57394
|
+
var import_react204 = require("react");
|
|
57395
|
+
|
|
57396
|
+
// ../vuu-filters/src/filter-bar/FilterBarMenu.tsx
|
|
57397
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
57398
|
+
|
|
57368
57399
|
// ../vuu-filters/src/filter-bar/FilterBar.tsx
|
|
57369
|
-
var
|
|
57370
|
-
var
|
|
57400
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
57401
|
+
var import_react206 = require("react");
|
|
57371
57402
|
|
|
57372
57403
|
// ../vuu-filters/src/filter-input/useCodeMirrorEditor.ts
|
|
57373
57404
|
var import_vuu_filter_parser2 = require("@vuu-ui/vuu-filter-parser");
|
|
57374
57405
|
var import_classnames62 = __toESM(require_classnames(), 1);
|
|
57375
|
-
var
|
|
57406
|
+
var import_react208 = require("react");
|
|
57376
57407
|
|
|
57377
57408
|
// ../vuu-filters/src/filter-input/FilterLanguage.ts
|
|
57378
57409
|
var import_vuu_filter_parser = require("@vuu-ui/vuu-filter-parser");
|
|
@@ -57472,16 +57503,16 @@ var vuuTheme2 = EditorView.theme(
|
|
|
57472
57503
|
);
|
|
57473
57504
|
|
|
57474
57505
|
// ../vuu-filters/src/filter-input/useFilterAutoComplete.ts
|
|
57475
|
-
var
|
|
57506
|
+
var import_react207 = require("react");
|
|
57476
57507
|
|
|
57477
57508
|
// ../vuu-filters/src/filter-input/FilterInput.tsx
|
|
57478
|
-
var
|
|
57509
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
57479
57510
|
|
|
57480
57511
|
// ../vuu-filters/src/filter-input/useFilterSuggestionProvider.ts
|
|
57481
|
-
var
|
|
57512
|
+
var import_react209 = require("react");
|
|
57482
57513
|
|
|
57483
57514
|
// ../vuu-filters/src/filter-input/filterInfo.ts
|
|
57484
|
-
var
|
|
57515
|
+
var import_vuu_utils81 = require("@vuu-ui/vuu-utils");
|
|
57485
57516
|
|
|
57486
57517
|
// ../vuu-filters/src/local-config.ts
|
|
57487
57518
|
var getLocalEntity = (url) => {
|
|
@@ -57498,7 +57529,7 @@ var saveLocalEntity = (url, data) => {
|
|
|
57498
57529
|
};
|
|
57499
57530
|
|
|
57500
57531
|
// ../vuu-layout/src/layout-persistence/LocalLayoutPersistenceManager.ts
|
|
57501
|
-
var
|
|
57532
|
+
var import_vuu_utils82 = require("@vuu-ui/vuu-utils");
|
|
57502
57533
|
var metadataSaveLocation = "layouts/metadata";
|
|
57503
57534
|
var layoutsSaveLocation = "layouts/layouts";
|
|
57504
57535
|
var _urlKey;
|
|
@@ -57513,11 +57544,11 @@ var LocalLayoutPersistenceManager = class {
|
|
|
57513
57544
|
return new Promise((resolve) => {
|
|
57514
57545
|
Promise.all([this.loadLayouts(), this.loadMetadata()]).then(
|
|
57515
57546
|
([existingLayouts, existingMetadata]) => {
|
|
57516
|
-
const id = (0,
|
|
57547
|
+
const id = (0, import_vuu_utils82.getUniqueId)();
|
|
57517
57548
|
const newMetadata = {
|
|
57518
57549
|
...metadata,
|
|
57519
57550
|
id,
|
|
57520
|
-
created: (0,
|
|
57551
|
+
created: (0, import_vuu_utils82.formatDate)("dd.mm.yyyy")(/* @__PURE__ */ new Date())
|
|
57521
57552
|
};
|
|
57522
57553
|
this.saveLayoutsWithMetadata(
|
|
57523
57554
|
[...existingLayouts, { id, json: layout }],
|
|
@@ -57646,18 +57677,18 @@ var LocalLayoutPersistenceManager = class {
|
|
|
57646
57677
|
_urlKey = new WeakMap();
|
|
57647
57678
|
|
|
57648
57679
|
// ../vuu-layout/src/layout-persistence/useLayoutContextMenuItems.tsx
|
|
57649
|
-
var
|
|
57650
|
-
var
|
|
57680
|
+
var import_react210 = require("react");
|
|
57681
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
57651
57682
|
|
|
57652
57683
|
// ../vuu-layout/src/measured-container/MeasuredContainer.tsx
|
|
57653
|
-
var
|
|
57684
|
+
var import_react213 = require("react");
|
|
57654
57685
|
|
|
57655
57686
|
// ../vuu-layout/src/measured-container/useMeasuredContainer.ts
|
|
57656
|
-
var
|
|
57657
|
-
var
|
|
57687
|
+
var import_vuu_utils83 = require("@vuu-ui/vuu-utils");
|
|
57688
|
+
var import_react212 = require("react");
|
|
57658
57689
|
|
|
57659
57690
|
// ../vuu-layout/src/measured-container/useResizeObserver.ts
|
|
57660
|
-
var
|
|
57691
|
+
var import_react211 = require("react");
|
|
57661
57692
|
var observedMap3 = /* @__PURE__ */ new Map();
|
|
57662
57693
|
var getTargetSize3 = (element, size, dimension3) => {
|
|
57663
57694
|
switch (dimension3) {
|
|
@@ -57708,8 +57739,8 @@ var resizeObserver3 = new ResizeObserver((entries) => {
|
|
|
57708
57739
|
}
|
|
57709
57740
|
});
|
|
57710
57741
|
function useResizeObserver3(ref, dimensions2, onResize, reportInitialSize = false) {
|
|
57711
|
-
const dimensionsRef = (0,
|
|
57712
|
-
const measure = (0,
|
|
57742
|
+
const dimensionsRef = (0, import_react211.useRef)(dimensions2);
|
|
57743
|
+
const measure = (0, import_react211.useCallback)((target) => {
|
|
57713
57744
|
const { width, height } = target.getBoundingClientRect();
|
|
57714
57745
|
const { clientWidth: contentWidth, clientHeight: contentHeight } = target;
|
|
57715
57746
|
const flooredHeight = Math.floor(height);
|
|
@@ -57731,7 +57762,7 @@ function useResizeObserver3(ref, dimensions2, onResize, reportInitialSize = fals
|
|
|
57731
57762
|
{}
|
|
57732
57763
|
);
|
|
57733
57764
|
}, []);
|
|
57734
|
-
(0,
|
|
57765
|
+
(0, import_react211.useEffect)(() => {
|
|
57735
57766
|
const target = ref.current;
|
|
57736
57767
|
async function registerObserver() {
|
|
57737
57768
|
observedMap3.set(target, { measurements: {} });
|
|
@@ -57768,7 +57799,7 @@ function useResizeObserver3(ref, dimensions2, onResize, reportInitialSize = fals
|
|
|
57768
57799
|
}
|
|
57769
57800
|
};
|
|
57770
57801
|
}, [measure, ref]);
|
|
57771
|
-
(0,
|
|
57802
|
+
(0, import_react211.useEffect)(() => {
|
|
57772
57803
|
const target = ref.current;
|
|
57773
57804
|
const record = observedMap3.get(target);
|
|
57774
57805
|
if (record) {
|
|
@@ -57790,7 +57821,7 @@ var NO_MEASUREMENT2 = [];
|
|
|
57790
57821
|
var isNumber = (val) => Number.isFinite(val);
|
|
57791
57822
|
var FULL_SIZE = { height: "100%", width: "auto" };
|
|
57792
57823
|
var getInitialCssSize = (height, width) => {
|
|
57793
|
-
if ((0,
|
|
57824
|
+
if ((0, import_vuu_utils83.isValidNumber)(height) && (0, import_vuu_utils83.isValidNumber)(width)) {
|
|
57794
57825
|
return {
|
|
57795
57826
|
height: `${height}px`,
|
|
57796
57827
|
width: `${width}px`
|
|
@@ -57805,7 +57836,7 @@ var getInitialCssSize = (height, width) => {
|
|
|
57805
57836
|
}
|
|
57806
57837
|
};
|
|
57807
57838
|
var getInitialInnerSize = (height, width) => {
|
|
57808
|
-
if ((0,
|
|
57839
|
+
if ((0, import_vuu_utils83.isValidNumber)(height) && (0, import_vuu_utils83.isValidNumber)(width)) {
|
|
57809
57840
|
return {
|
|
57810
57841
|
height,
|
|
57811
57842
|
width
|
|
@@ -57819,8 +57850,8 @@ var useMeasuredContainer = ({
|
|
|
57819
57850
|
onResize: onResizeProp,
|
|
57820
57851
|
width
|
|
57821
57852
|
}) => {
|
|
57822
|
-
const containerRef = (0,
|
|
57823
|
-
const [size, setSize] = (0,
|
|
57853
|
+
const containerRef = (0, import_react212.useRef)(null);
|
|
57854
|
+
const [size, setSize] = (0, import_react212.useState)({
|
|
57824
57855
|
css: getInitialCssSize(height, width),
|
|
57825
57856
|
inner: getInitialInnerSize(height, width),
|
|
57826
57857
|
outer: {
|
|
@@ -57831,15 +57862,15 @@ var useMeasuredContainer = ({
|
|
|
57831
57862
|
const fixedHeight = typeof height === "number";
|
|
57832
57863
|
const fixedWidth = typeof width === "number";
|
|
57833
57864
|
const dimensions2 = fixedHeight && fixedWidth ? NO_MEASUREMENT2 : fixedHeight ? WidthOnly2 : fixedWidth ? HeightOnly4 : ClientWidthHeight;
|
|
57834
|
-
(0,
|
|
57865
|
+
(0, import_react212.useMemo)(() => {
|
|
57835
57866
|
setSize((currentSize) => {
|
|
57836
57867
|
const { inner, outer } = currentSize;
|
|
57837
|
-
if ((0,
|
|
57868
|
+
if ((0, import_vuu_utils83.isValidNumber)(height) && (0, import_vuu_utils83.isValidNumber)(width) && inner && outer) {
|
|
57838
57869
|
const { height: innerHeight2, width: innerWidth } = inner;
|
|
57839
57870
|
const { height: outerHeight, width: outerWidth } = outer;
|
|
57840
57871
|
if (outerHeight !== height || outerWidth !== width) {
|
|
57841
|
-
const heightDiff = (0,
|
|
57842
|
-
const widthDiff = (0,
|
|
57872
|
+
const heightDiff = (0, import_vuu_utils83.isValidNumber)(outerHeight) ? outerHeight - innerHeight2 : 0;
|
|
57873
|
+
const widthDiff = (0, import_vuu_utils83.isValidNumber)(outerWidth) ? outerWidth - innerWidth : 0;
|
|
57843
57874
|
return {
|
|
57844
57875
|
...currentSize,
|
|
57845
57876
|
outer: { height, width },
|
|
@@ -57850,7 +57881,7 @@ var useMeasuredContainer = ({
|
|
|
57850
57881
|
return currentSize;
|
|
57851
57882
|
});
|
|
57852
57883
|
}, [height, width]);
|
|
57853
|
-
const onResize = (0,
|
|
57884
|
+
const onResize = (0, import_react212.useCallback)(
|
|
57854
57885
|
({ clientWidth, clientHeight }) => {
|
|
57855
57886
|
const { css, inner, outer } = size;
|
|
57856
57887
|
let newState = size;
|
|
@@ -57888,7 +57919,7 @@ var useMeasuredContainer = ({
|
|
|
57888
57919
|
},
|
|
57889
57920
|
[defaultHeight, defaultWidth, fixedHeight, fixedWidth, height, size, width]
|
|
57890
57921
|
);
|
|
57891
|
-
(0,
|
|
57922
|
+
(0, import_react212.useEffect)(() => {
|
|
57892
57923
|
if (size.inner) {
|
|
57893
57924
|
onResizeProp == null ? void 0 : onResizeProp(size.inner);
|
|
57894
57925
|
}
|
|
@@ -57904,9 +57935,9 @@ var useMeasuredContainer = ({
|
|
|
57904
57935
|
|
|
57905
57936
|
// ../vuu-layout/src/measured-container/MeasuredContainer.tsx
|
|
57906
57937
|
var import_classnames63 = __toESM(require_classnames());
|
|
57907
|
-
var
|
|
57938
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
57908
57939
|
var baseClass2 = "vuuMeasuredContainer";
|
|
57909
|
-
var MeasuredContainer = (0,
|
|
57940
|
+
var MeasuredContainer = (0, import_react213.forwardRef)(function MeasuredContainer2({
|
|
57910
57941
|
children,
|
|
57911
57942
|
className,
|
|
57912
57943
|
height,
|
|
@@ -57935,7 +57966,7 @@ var MeasuredContainer = (0, import_react212.forwardRef)(function MeasuredContain
|
|
|
57935
57966
|
};
|
|
57936
57967
|
};
|
|
57937
57968
|
const forkedRef = useForkRef(containerRef, forwardedRef);
|
|
57938
|
-
return unmeasured ? /* @__PURE__ */ (0,
|
|
57969
|
+
return unmeasured ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
57939
57970
|
"div",
|
|
57940
57971
|
{
|
|
57941
57972
|
...htmlAttributes,
|
|
@@ -57943,7 +57974,7 @@ var MeasuredContainer = (0, import_react212.forwardRef)(function MeasuredContain
|
|
|
57943
57974
|
style: getStyle2(),
|
|
57944
57975
|
ref: containerRef
|
|
57945
57976
|
}
|
|
57946
|
-
) : /* @__PURE__ */ (0,
|
|
57977
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
57947
57978
|
"div",
|
|
57948
57979
|
{
|
|
57949
57980
|
...htmlAttributes,
|
|
@@ -57957,14 +57988,14 @@ var MeasuredContainer = (0, import_react212.forwardRef)(function MeasuredContain
|
|
|
57957
57988
|
|
|
57958
57989
|
// ../vuu-layout/src/overflow-container/OverflowContainer.tsx
|
|
57959
57990
|
var import_classnames64 = __toESM(require_classnames());
|
|
57960
|
-
var
|
|
57991
|
+
var import_react215 = __toESM(require("react"));
|
|
57961
57992
|
|
|
57962
57993
|
// ../vuu-layout/src/overflow-container/useOverflowContainer.ts
|
|
57963
|
-
var
|
|
57964
|
-
var
|
|
57994
|
+
var import_vuu_utils85 = require("@vuu-ui/vuu-utils");
|
|
57995
|
+
var import_react214 = require("react");
|
|
57965
57996
|
|
|
57966
57997
|
// ../vuu-layout/src/overflow-container/overflow-utils.ts
|
|
57967
|
-
var
|
|
57998
|
+
var import_vuu_utils84 = require("@vuu-ui/vuu-utils");
|
|
57968
57999
|
var NON_WRAPPED_ITEM = ".vuuOverflowContainer-item:not(.wrapped)";
|
|
57969
58000
|
var isOverflowElement = (element) => element !== null && element.dataset.index === "overflow" && element.parentElement !== null && element.parentElement.classList.contains(
|
|
57970
58001
|
"vuuOverflowContainer-wrapContainer-overflowed"
|
|
@@ -58101,7 +58132,7 @@ var correctForWrappedHighPriorityItems = (container, nonWrapped, wrapped) => new
|
|
|
58101
58132
|
});
|
|
58102
58133
|
});
|
|
58103
58134
|
var markElementAsWrapped = (container, item) => {
|
|
58104
|
-
const el = (0,
|
|
58135
|
+
const el = (0, import_vuu_utils84.getElementByDataIndex)(container, item.index);
|
|
58105
58136
|
if (el) {
|
|
58106
58137
|
el.classList.add("wrapped");
|
|
58107
58138
|
} else {
|
|
@@ -58175,7 +58206,7 @@ var getNonwrappedItemsByPriority = (container) => Array.from(container.querySele
|
|
|
58175
58206
|
);
|
|
58176
58207
|
var switchWrappedItemIntoView = (container, overflowItem) => {
|
|
58177
58208
|
const unwrappedItems = getNonwrappedItemsByPriority(container);
|
|
58178
|
-
const targetElement = (0,
|
|
58209
|
+
const targetElement = (0, import_vuu_utils84.getElementByDataIndex)(
|
|
58179
58210
|
container,
|
|
58180
58211
|
overflowItem.index,
|
|
58181
58212
|
true
|
|
@@ -58225,16 +58256,16 @@ var useOverflowContainer = ({
|
|
|
58225
58256
|
onSwitchWrappedItemIntoView,
|
|
58226
58257
|
orientation = "horizontal"
|
|
58227
58258
|
}) => {
|
|
58228
|
-
const [container, setContainer] = (0,
|
|
58229
|
-
const wrappedItemsRef = (0,
|
|
58230
|
-
const containerRef = (0,
|
|
58231
|
-
const setOverflowTabIndex = (0,
|
|
58259
|
+
const [container, setContainer] = (0, import_react214.useState)(null);
|
|
58260
|
+
const wrappedItemsRef = (0, import_react214.useRef)(NO_WRAPPED_ITEMS);
|
|
58261
|
+
const containerRef = (0, import_react214.useRef)(null);
|
|
58262
|
+
const setOverflowTabIndex = (0, import_react214.useCallback)((tabIndex) => {
|
|
58232
58263
|
var _a4;
|
|
58233
58264
|
if (containerRef.current) {
|
|
58234
58265
|
(_a4 = containerRef.current.querySelector(".vuuOverflowContainer-OverflowIndicator button")) == null ? void 0 : _a4.setAttribute("tabindex", tabIndex);
|
|
58235
58266
|
}
|
|
58236
58267
|
}, []);
|
|
58237
|
-
const handleResize = (0,
|
|
58268
|
+
const handleResize = (0, import_react214.useCallback)(async () => {
|
|
58238
58269
|
if (container) {
|
|
58239
58270
|
let [nonWrapped, wrapped] = getNonWrappedAndWrappedItems(
|
|
58240
58271
|
container,
|
|
@@ -58269,7 +58300,7 @@ var useOverflowContainer = ({
|
|
|
58269
58300
|
}
|
|
58270
58301
|
}, [container, orientation, setOverflowTabIndex]);
|
|
58271
58302
|
const hasOverflowItem = (opt) => typeof opt === "object" && opt !== null && "overflowItem" in opt;
|
|
58272
|
-
const [menuBuilder, menuActionHandler] = (0,
|
|
58303
|
+
const [menuBuilder, menuActionHandler] = (0, import_react214.useMemo)(() => {
|
|
58273
58304
|
return [
|
|
58274
58305
|
() => {
|
|
58275
58306
|
const { current: menuItems } = wrappedItemsRef;
|
|
@@ -58296,14 +58327,14 @@ var useOverflowContainer = ({
|
|
|
58296
58327
|
}
|
|
58297
58328
|
];
|
|
58298
58329
|
}, [container, onSwitchWrappedItemIntoView]);
|
|
58299
|
-
const resizeObserver4 = (0,
|
|
58300
|
-
const { sizeProp } =
|
|
58330
|
+
const resizeObserver4 = (0, import_react214.useMemo)(() => {
|
|
58331
|
+
const { sizeProp } = import_vuu_utils85.MEASURES[orientation];
|
|
58301
58332
|
let currentSize = 0;
|
|
58302
58333
|
return new ResizeObserver((entries) => {
|
|
58303
58334
|
for (const entry of entries) {
|
|
58304
58335
|
const { [sizeProp]: actualSize } = entry.contentRect;
|
|
58305
58336
|
const size = Math.round(actualSize);
|
|
58306
|
-
if ((0,
|
|
58337
|
+
if ((0, import_vuu_utils85.isValidNumber)(size) && currentSize !== size) {
|
|
58307
58338
|
currentSize = size;
|
|
58308
58339
|
handleResize();
|
|
58309
58340
|
}
|
|
@@ -58313,15 +58344,15 @@ var useOverflowContainer = ({
|
|
|
58313
58344
|
useLayoutEffectSkipFirst(() => {
|
|
58314
58345
|
handleResize();
|
|
58315
58346
|
}, [handleResize, itemCount]);
|
|
58316
|
-
(0,
|
|
58347
|
+
(0, import_react214.useMemo)(() => {
|
|
58317
58348
|
if (container) {
|
|
58318
58349
|
resizeObserver4.observe(container);
|
|
58319
58350
|
}
|
|
58320
58351
|
}, [container, resizeObserver4]);
|
|
58321
|
-
const callbackRef = (0,
|
|
58352
|
+
const callbackRef = (0, import_react214.useCallback)((el) => {
|
|
58322
58353
|
setContainer(containerRef.current = el);
|
|
58323
58354
|
}, []);
|
|
58324
|
-
const handleDrop = (0,
|
|
58355
|
+
const handleDrop = (0, import_react214.useCallback)(
|
|
58325
58356
|
(fromIndex, toIndex) => {
|
|
58326
58357
|
onMoveItem == null ? void 0 : onMoveItem(fromIndex, toIndex);
|
|
58327
58358
|
},
|
|
@@ -58347,9 +58378,9 @@ var useOverflowContainer = ({
|
|
|
58347
58378
|
};
|
|
58348
58379
|
|
|
58349
58380
|
// ../vuu-layout/src/overflow-container/OverflowContainer.tsx
|
|
58350
|
-
var
|
|
58381
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
58351
58382
|
var classBase47 = "vuuOverflowContainer";
|
|
58352
|
-
var WrapContainer =
|
|
58383
|
+
var WrapContainer = import_react215.default.memo(
|
|
58353
58384
|
({
|
|
58354
58385
|
PopupMenuProps: PopupMenuProps2,
|
|
58355
58386
|
allowDragDrop,
|
|
@@ -58393,7 +58424,7 @@ var WrapContainer = import_react214.default.memo(
|
|
|
58393
58424
|
id: itemId = `${id}-${i}`,
|
|
58394
58425
|
label = `Item ${i + 1}`
|
|
58395
58426
|
} = childEl.props;
|
|
58396
|
-
return /* @__PURE__ */ (0,
|
|
58427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
58397
58428
|
"div",
|
|
58398
58429
|
{
|
|
58399
58430
|
className: (0, import_classnames64.default)(`${classBase47}-item`, {
|
|
@@ -58410,12 +58441,12 @@ var WrapContainer = import_react214.default.memo(
|
|
|
58410
58441
|
i
|
|
58411
58442
|
);
|
|
58412
58443
|
});
|
|
58413
|
-
const overflowIndicator = /* @__PURE__ */ (0,
|
|
58444
|
+
const overflowIndicator = /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
58414
58445
|
"div",
|
|
58415
58446
|
{
|
|
58416
58447
|
className: `${classBase47}-OverflowIndicator`,
|
|
58417
58448
|
"data-index": "overflow",
|
|
58418
|
-
children: /* @__PURE__ */ (0,
|
|
58449
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
58419
58450
|
PopupMenu,
|
|
58420
58451
|
{
|
|
58421
58452
|
...PopupMenuProps2,
|
|
@@ -58429,14 +58460,14 @@ var WrapContainer = import_react214.default.memo(
|
|
|
58429
58460
|
"overflow"
|
|
58430
58461
|
);
|
|
58431
58462
|
content2.push(overflowIndicator);
|
|
58432
|
-
return /* @__PURE__ */ (0,
|
|
58463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className, ref: rootRef, style, children: [
|
|
58433
58464
|
content2,
|
|
58434
58465
|
draggable
|
|
58435
58466
|
] });
|
|
58436
58467
|
}
|
|
58437
58468
|
);
|
|
58438
58469
|
WrapContainer.displayName = "OverflowContainer.InnerContainer";
|
|
58439
|
-
var OverflowContainer = (0,
|
|
58470
|
+
var OverflowContainer = (0, import_react215.forwardRef)(function OverflowContainer2({
|
|
58440
58471
|
PopupMenuProps: PopupMenuProps2,
|
|
58441
58472
|
allowDragDrop = false,
|
|
58442
58473
|
children,
|
|
@@ -58451,14 +58482,14 @@ var OverflowContainer = (0, import_react214.forwardRef)(function OverflowContain
|
|
|
58451
58482
|
...htmlAttributes
|
|
58452
58483
|
}, forwardedRef) {
|
|
58453
58484
|
const id = useId2(idProp);
|
|
58454
|
-
return /* @__PURE__ */ (0,
|
|
58485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
58455
58486
|
"div",
|
|
58456
58487
|
{
|
|
58457
58488
|
...htmlAttributes,
|
|
58458
58489
|
className: (0, import_classnames64.default)((0, import_classnames64.default)(className, classBase47)),
|
|
58459
58490
|
id,
|
|
58460
58491
|
ref: forwardedRef,
|
|
58461
|
-
children: /* @__PURE__ */ (0,
|
|
58492
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
58462
58493
|
WrapContainer,
|
|
58463
58494
|
{
|
|
58464
58495
|
PopupMenuProps: PopupMenuProps2,
|
|
@@ -58478,17 +58509,17 @@ var OverflowContainer = (0, import_react214.forwardRef)(function OverflowContain
|
|
|
58478
58509
|
});
|
|
58479
58510
|
|
|
58480
58511
|
// ../vuu-layout/src/palette/Palette.tsx
|
|
58481
|
-
var
|
|
58512
|
+
var import_vuu_utils86 = require("@vuu-ui/vuu-utils");
|
|
58482
58513
|
var import_classnames65 = __toESM(require_classnames());
|
|
58483
|
-
var
|
|
58484
|
-
var
|
|
58514
|
+
var import_react216 = require("react");
|
|
58515
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
58485
58516
|
var clonePaletteItem = (paletteItem) => {
|
|
58486
58517
|
const dolly = paletteItem.cloneNode(true);
|
|
58487
58518
|
dolly.id = "";
|
|
58488
58519
|
delete dolly.dataset.idx;
|
|
58489
58520
|
return dolly;
|
|
58490
58521
|
};
|
|
58491
|
-
var PaletteItem = (0,
|
|
58522
|
+
var PaletteItem = (0, import_react216.memo)(
|
|
58492
58523
|
({
|
|
58493
58524
|
className,
|
|
58494
58525
|
children: component,
|
|
@@ -58498,7 +58529,7 @@ var PaletteItem = (0, import_react215.memo)(
|
|
|
58498
58529
|
closeable,
|
|
58499
58530
|
...props
|
|
58500
58531
|
}) => {
|
|
58501
|
-
return /* @__PURE__ */ (0,
|
|
58532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
58502
58533
|
ListItem,
|
|
58503
58534
|
{
|
|
58504
58535
|
className: (0, import_classnames65.default)("vuuPaletteItem", className),
|
|
@@ -58511,7 +58542,7 @@ var PaletteItem = (0, import_react215.memo)(
|
|
|
58511
58542
|
);
|
|
58512
58543
|
PaletteItem.displayName = "PaletteItem";
|
|
58513
58544
|
var Palette = ({
|
|
58514
|
-
ListProps:
|
|
58545
|
+
ListProps: ListProps6,
|
|
58515
58546
|
ViewProps: ViewProps4,
|
|
58516
58547
|
children,
|
|
58517
58548
|
className,
|
|
@@ -58531,9 +58562,9 @@ var Palette = ({
|
|
|
58531
58562
|
} = children[idx];
|
|
58532
58563
|
const { ViewProps: componentViewProps } = payload.props;
|
|
58533
58564
|
const { height, left, top: top2, width } = listItemElement.getBoundingClientRect();
|
|
58534
|
-
const id = (0,
|
|
58565
|
+
const id = (0, import_vuu_utils86.uuid)();
|
|
58535
58566
|
const identifiers = { id, key: id };
|
|
58536
|
-
const component = template ? payload : /* @__PURE__ */ (0,
|
|
58567
|
+
const component = template ? payload : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
58537
58568
|
MemoView,
|
|
58538
58569
|
{
|
|
58539
58570
|
...ViewProps4,
|
|
@@ -58567,16 +58598,16 @@ var Palette = ({
|
|
|
58567
58598
|
type: "drag-start"
|
|
58568
58599
|
});
|
|
58569
58600
|
}
|
|
58570
|
-
return /* @__PURE__ */ (0,
|
|
58601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
58571
58602
|
List,
|
|
58572
58603
|
{
|
|
58573
|
-
...
|
|
58604
|
+
...ListProps6,
|
|
58574
58605
|
...props,
|
|
58575
58606
|
className: (0, import_classnames65.default)(classBase50, className, `${classBase50}-${orientation}`),
|
|
58576
58607
|
itemHeight,
|
|
58577
58608
|
selected: null,
|
|
58578
58609
|
children: children.map(
|
|
58579
|
-
(child, idx) => child.type === PaletteItem ? (0,
|
|
58610
|
+
(child, idx) => child.type === PaletteItem ? (0, import_react216.cloneElement)(child, {
|
|
58580
58611
|
key: idx,
|
|
58581
58612
|
onMouseDown: handleMouseDown
|
|
58582
58613
|
}) : child
|
|
@@ -58588,14 +58619,14 @@ registerComponent("Palette", Palette, "view");
|
|
|
58588
58619
|
|
|
58589
58620
|
// ../vuu-layout/src/stack/Stack.tsx
|
|
58590
58621
|
var import_classnames66 = __toESM(require_classnames());
|
|
58591
|
-
var
|
|
58592
|
-
var
|
|
58593
|
-
var classBase48 = "
|
|
58622
|
+
var import_react217 = __toESM(require("react"));
|
|
58623
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
58624
|
+
var classBase48 = "vuuTabs";
|
|
58594
58625
|
var getDefaultTabIcon = () => void 0;
|
|
58595
58626
|
var getChildElements = (children) => {
|
|
58596
58627
|
const elements = [];
|
|
58597
|
-
|
|
58598
|
-
if (
|
|
58628
|
+
import_react217.default.Children.forEach(children, (child) => {
|
|
58629
|
+
if (import_react217.default.isValidElement(child)) {
|
|
58599
58630
|
elements.push(child);
|
|
58600
58631
|
} else {
|
|
58601
58632
|
console.warn(`Stack has unexpected child element type`);
|
|
@@ -58608,7 +58639,7 @@ var DefaultTabstripProps = {
|
|
|
58608
58639
|
allowCloseTab: false,
|
|
58609
58640
|
allowRenameTab: false
|
|
58610
58641
|
};
|
|
58611
|
-
var Stack2 = (0,
|
|
58642
|
+
var Stack2 = (0, import_react217.forwardRef)(function Stack3({
|
|
58612
58643
|
TabstripProps: TabstripProps2 = DefaultTabstripProps,
|
|
58613
58644
|
active = 0,
|
|
58614
58645
|
children,
|
|
@@ -58628,13 +58659,13 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58628
58659
|
}, ref) {
|
|
58629
58660
|
var _a4;
|
|
58630
58661
|
const id = useId2(idProp);
|
|
58631
|
-
const tabLabels = (0,
|
|
58662
|
+
const tabLabels = (0, import_react217.useRef)([]);
|
|
58632
58663
|
const {
|
|
58633
58664
|
allowCloseTab,
|
|
58634
58665
|
allowRenameTab,
|
|
58635
58666
|
className: tabstripClassName
|
|
58636
58667
|
} = TabstripProps2;
|
|
58637
|
-
const handleExitEditMode = (0,
|
|
58668
|
+
const handleExitEditMode = (0, import_react217.useCallback)(
|
|
58638
58669
|
(_oldText, newText, _allowDeactivation, tabIndex) => {
|
|
58639
58670
|
onTabEdit == null ? void 0 : onTabEdit(tabIndex, newText);
|
|
58640
58671
|
},
|
|
@@ -58642,7 +58673,7 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58642
58673
|
);
|
|
58643
58674
|
const activeChild = () => {
|
|
58644
58675
|
var _a5;
|
|
58645
|
-
if (
|
|
58676
|
+
if (import_react217.default.isValidElement(children)) {
|
|
58646
58677
|
return children;
|
|
58647
58678
|
}
|
|
58648
58679
|
if (Array.isArray(children)) {
|
|
@@ -58658,7 +58689,7 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58658
58689
|
} = child2.props;
|
|
58659
58690
|
const label = getTabLabel(child2, idx, tabLabels.current);
|
|
58660
58691
|
tabLabels.current.push(label);
|
|
58661
|
-
return /* @__PURE__ */ (0,
|
|
58692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
58662
58693
|
Tab,
|
|
58663
58694
|
{
|
|
58664
58695
|
ariaControls: childId,
|
|
@@ -58676,7 +58707,7 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58676
58707
|
const child = activeChild();
|
|
58677
58708
|
const isHorizontal = showTabs === "left" || showTabs === "right";
|
|
58678
58709
|
const tabstripOrientation = isHorizontal ? "vertical" : "horizontal";
|
|
58679
|
-
return /* @__PURE__ */ (0,
|
|
58710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
58680
58711
|
"div",
|
|
58681
58712
|
{
|
|
58682
58713
|
className: (0, import_classnames66.default)(classBase48, classNameProp, {
|
|
@@ -58686,7 +58717,7 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58686
58717
|
id,
|
|
58687
58718
|
ref,
|
|
58688
58719
|
children: [
|
|
58689
|
-
showTabs ? /* @__PURE__ */ (0,
|
|
58720
|
+
showTabs ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
58690
58721
|
Tabstrip,
|
|
58691
58722
|
{
|
|
58692
58723
|
...TabstripProps2,
|
|
@@ -58704,7 +58735,7 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58704
58735
|
children: renderTabs()
|
|
58705
58736
|
}
|
|
58706
58737
|
) : null,
|
|
58707
|
-
/* @__PURE__ */ (0,
|
|
58738
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
58708
58739
|
"div",
|
|
58709
58740
|
{
|
|
58710
58741
|
"aria-labelledby": `${id}-${active}`,
|
|
@@ -58720,9 +58751,9 @@ var Stack2 = (0, import_react216.forwardRef)(function Stack3({
|
|
|
58720
58751
|
Stack2.displayName = "Stack";
|
|
58721
58752
|
|
|
58722
58753
|
// ../vuu-layout/src/stack/StackLayout.tsx
|
|
58723
|
-
var
|
|
58724
|
-
var
|
|
58725
|
-
var defaultCreateNewChild = () => /* @__PURE__ */ (0,
|
|
58754
|
+
var import_react218 = __toESM(require("react"));
|
|
58755
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
58756
|
+
var defaultCreateNewChild = () => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
58726
58757
|
Placeholder,
|
|
58727
58758
|
{
|
|
58728
58759
|
resizeable: true,
|
|
@@ -58731,7 +58762,7 @@ var defaultCreateNewChild = () => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)
|
|
|
58731
58762
|
);
|
|
58732
58763
|
var StackLayout = (props) => {
|
|
58733
58764
|
var _a4;
|
|
58734
|
-
const ref = (0,
|
|
58765
|
+
const ref = (0, import_react218.useRef)(null);
|
|
58735
58766
|
const dispatch = useLayoutProviderDispatch();
|
|
58736
58767
|
const { loadState } = usePersistentState();
|
|
58737
58768
|
const {
|
|
@@ -58752,7 +58783,7 @@ var StackLayout = (props) => {
|
|
|
58752
58783
|
onTabSelectionChanged == null ? void 0 : onTabSelectionChanged(nextIdx);
|
|
58753
58784
|
}
|
|
58754
58785
|
};
|
|
58755
|
-
const handleTabClose = (0,
|
|
58786
|
+
const handleTabClose = (0, import_react218.useCallback)(
|
|
58756
58787
|
(tabIndex) => {
|
|
58757
58788
|
if (Array.isArray(children)) {
|
|
58758
58789
|
const {
|
|
@@ -58763,9 +58794,9 @@ var StackLayout = (props) => {
|
|
|
58763
58794
|
},
|
|
58764
58795
|
[children, dispatch]
|
|
58765
58796
|
);
|
|
58766
|
-
const handleTabAdd = (0,
|
|
58797
|
+
const handleTabAdd = (0, import_react218.useCallback)(() => {
|
|
58767
58798
|
if (path) {
|
|
58768
|
-
const tabIndex =
|
|
58799
|
+
const tabIndex = import_react218.default.Children.count(children);
|
|
58769
58800
|
const component = createNewChild(tabIndex);
|
|
58770
58801
|
dispatch({
|
|
58771
58802
|
type: "add",
|
|
@@ -58774,7 +58805,7 @@ var StackLayout = (props) => {
|
|
|
58774
58805
|
});
|
|
58775
58806
|
}
|
|
58776
58807
|
}, [children, createNewChild, dispatch, path]);
|
|
58777
|
-
const handleMoveTab = (0,
|
|
58808
|
+
const handleMoveTab = (0, import_react218.useCallback)(
|
|
58778
58809
|
(fromIndex, toIndex) => {
|
|
58779
58810
|
if (path) {
|
|
58780
58811
|
dispatch({
|
|
@@ -58809,7 +58840,7 @@ var StackLayout = (props) => {
|
|
|
58809
58840
|
return loadState(id2, "view-title") || title || // This will normally never be called as title is always assigned in layout model
|
|
58810
58841
|
getDefaultTabLabel(component, idx, existingLabels);
|
|
58811
58842
|
};
|
|
58812
|
-
return /* @__PURE__ */ (0,
|
|
58843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
58813
58844
|
Stack2,
|
|
58814
58845
|
{
|
|
58815
58846
|
...restProps,
|
|
@@ -58830,92 +58861,92 @@ registerComponent("Stack", StackLayout, "container");
|
|
|
58830
58861
|
|
|
58831
58862
|
// ../vuu-layout/src/toolbar/Toolbar.tsx
|
|
58832
58863
|
var import_classnames67 = __toESM(require_classnames());
|
|
58833
|
-
var
|
|
58864
|
+
var import_react222 = __toESM(require("react"));
|
|
58834
58865
|
|
|
58835
58866
|
// ../vuu-layout/src/toolbar/useToolbar.ts
|
|
58836
|
-
var
|
|
58837
|
-
var
|
|
58867
|
+
var import_vuu_utils91 = require("@vuu-ui/vuu-utils");
|
|
58868
|
+
var import_react221 = require("react");
|
|
58838
58869
|
|
|
58839
58870
|
// ../vuu-layout/src/toolbar/useKeyboardNavigation.ts
|
|
58840
|
-
var import_vuu_utils87 = require("@vuu-ui/vuu-utils");
|
|
58841
|
-
var import_react218 = require("react");
|
|
58842
58871
|
var import_vuu_utils88 = require("@vuu-ui/vuu-utils");
|
|
58872
|
+
var import_react219 = require("react");
|
|
58873
|
+
var import_vuu_utils89 = require("@vuu-ui/vuu-utils");
|
|
58843
58874
|
|
|
58844
58875
|
// ../vuu-layout/src/toolbar/toolbar-dom-utils.ts
|
|
58845
|
-
var
|
|
58876
|
+
var import_vuu_utils87 = require("@vuu-ui/vuu-utils");
|
|
58846
58877
|
|
|
58847
58878
|
// ../vuu-layout/src/toolbar/useKeyboardNavigation.ts
|
|
58848
58879
|
var navigation2 = {
|
|
58849
58880
|
horizontal: {
|
|
58850
|
-
[
|
|
58851
|
-
[
|
|
58852
|
-
[
|
|
58853
|
-
[
|
|
58881
|
+
[import_vuu_utils89.Home]: "start",
|
|
58882
|
+
[import_vuu_utils89.End]: "end",
|
|
58883
|
+
[import_vuu_utils89.ArrowLeft]: "bwd",
|
|
58884
|
+
[import_vuu_utils89.ArrowRight]: "fwd"
|
|
58854
58885
|
},
|
|
58855
58886
|
vertical: {
|
|
58856
|
-
[
|
|
58857
|
-
[
|
|
58858
|
-
[
|
|
58859
|
-
[
|
|
58887
|
+
[import_vuu_utils89.Home]: "start",
|
|
58888
|
+
[import_vuu_utils89.End]: "end",
|
|
58889
|
+
[import_vuu_utils89.ArrowUp]: "bwd",
|
|
58890
|
+
[import_vuu_utils89.ArrowDown]: "fwd"
|
|
58860
58891
|
}
|
|
58861
58892
|
};
|
|
58862
58893
|
|
|
58863
58894
|
// ../vuu-layout/src/toolbar/useSelection.ts
|
|
58864
|
-
var
|
|
58865
|
-
var
|
|
58895
|
+
var import_vuu_utils90 = require("@vuu-ui/vuu-utils");
|
|
58896
|
+
var import_react220 = require("react");
|
|
58866
58897
|
|
|
58867
58898
|
// ../vuu-layout/src/toolbar/Toolbar.tsx
|
|
58868
|
-
var
|
|
58899
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
58869
58900
|
|
|
58870
58901
|
// ../vuu-layout/src/tools/config-wrapper/ConfigWrapper.tsx
|
|
58871
|
-
var
|
|
58872
|
-
var
|
|
58902
|
+
var import_react223 = __toESM(require("react"));
|
|
58903
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
58873
58904
|
|
|
58874
58905
|
// ../vuu-layout/src/tools/devtools-box/layout-configurator.jsx
|
|
58875
|
-
var
|
|
58906
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
58876
58907
|
var CSS_DIGIT = "(\\d+)(?:px)?";
|
|
58877
58908
|
var CSS_MEASURE = `^(?:${CSS_DIGIT}(?:\\s${CSS_DIGIT}(?:\\s${CSS_DIGIT}(?:\\s${CSS_DIGIT})?)?)?)$`;
|
|
58878
58909
|
var CSS_REX = new RegExp(CSS_MEASURE);
|
|
58879
58910
|
|
|
58880
58911
|
// ../vuu-layout/src/tools/devtools-tree/layout-tree-viewer.jsx
|
|
58881
|
-
var
|
|
58912
|
+
var import_react224 = __toESM(require("react"));
|
|
58882
58913
|
var import_classnames68 = __toESM(require_classnames());
|
|
58883
|
-
var
|
|
58914
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
58884
58915
|
|
|
58885
58916
|
// ../vuu-shell/src/login/LoginPanel.tsx
|
|
58886
|
-
var
|
|
58917
|
+
var import_react226 = require("react");
|
|
58887
58918
|
|
|
58888
58919
|
// ../vuu-shell/src/login/VuuLogo.tsx
|
|
58889
|
-
var
|
|
58890
|
-
var
|
|
58920
|
+
var import_react225 = require("react");
|
|
58921
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
58891
58922
|
|
|
58892
58923
|
// ../vuu-shell/src/login/LoginPanel.tsx
|
|
58893
58924
|
var import_classnames69 = __toESM(require_classnames());
|
|
58894
|
-
var
|
|
58925
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
58895
58926
|
|
|
58896
58927
|
// ../vuu-shell/src/login/login-utils.ts
|
|
58897
|
-
var
|
|
58928
|
+
var import_vuu_utils92 = require("@vuu-ui/vuu-utils");
|
|
58898
58929
|
|
|
58899
58930
|
// ../vuu-shell/src/app-header/AppHeader.tsx
|
|
58900
|
-
var
|
|
58931
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
58901
58932
|
|
|
58902
58933
|
// ../vuu-shell/src/connection-status/ConnectionStatusIcon.tsx
|
|
58903
|
-
var
|
|
58934
|
+
var import_react228 = __toESM(require("react"));
|
|
58904
58935
|
var import_classnames71 = __toESM(require_classnames());
|
|
58905
|
-
var
|
|
58936
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
58906
58937
|
|
|
58907
58938
|
// ../vuu-shell/src/density-switch/DensitySwitch.tsx
|
|
58908
|
-
var
|
|
58939
|
+
var import_react229 = require("react");
|
|
58909
58940
|
var import_classnames72 = __toESM(require_classnames());
|
|
58910
|
-
var
|
|
58941
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
58911
58942
|
|
|
58912
58943
|
// ../vuu-shell/src/feature/Feature.tsx
|
|
58913
|
-
var
|
|
58944
|
+
var import_react231 = __toESM(require("react"));
|
|
58914
58945
|
|
|
58915
58946
|
// ../vuu-shell/src/feature/FeatureErrorBoundary.tsx
|
|
58916
|
-
var
|
|
58917
|
-
var
|
|
58918
|
-
var FeatureErrorBoundary = class extends
|
|
58947
|
+
var import_react230 = __toESM(require("react"));
|
|
58948
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
58949
|
+
var FeatureErrorBoundary = class extends import_react230.default.Component {
|
|
58919
58950
|
constructor(props) {
|
|
58920
58951
|
super(props);
|
|
58921
58952
|
this.state = { errorMessage: null };
|
|
@@ -58929,9 +58960,9 @@ var FeatureErrorBoundary = class extends import_react229.default.Component {
|
|
|
58929
58960
|
}
|
|
58930
58961
|
render() {
|
|
58931
58962
|
if (this.state.errorMessage) {
|
|
58932
|
-
return /* @__PURE__ */ (0,
|
|
58933
|
-
/* @__PURE__ */ (0,
|
|
58934
|
-
/* @__PURE__ */ (0,
|
|
58963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
|
|
58964
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("h1", { children: "An error occured while creating component." }),
|
|
58965
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("p", { children: this.state.errorMessage })
|
|
58935
58966
|
] });
|
|
58936
58967
|
}
|
|
58937
58968
|
return this.props.children;
|
|
@@ -58939,8 +58970,8 @@ var FeatureErrorBoundary = class extends import_react229.default.Component {
|
|
|
58939
58970
|
};
|
|
58940
58971
|
|
|
58941
58972
|
// ../vuu-shell/src/feature/Loader.tsx
|
|
58942
|
-
var
|
|
58943
|
-
var Loader = () => /* @__PURE__ */ (0,
|
|
58973
|
+
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
58974
|
+
var Loader = () => /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("div", { className: "hwLoader" });
|
|
58944
58975
|
|
|
58945
58976
|
// ../vuu-shell/src/feature/css-module-loader.ts
|
|
58946
58977
|
var importCSS = async (path) => {
|
|
@@ -58949,10 +58980,10 @@ var importCSS = async (path) => {
|
|
|
58949
58980
|
};
|
|
58950
58981
|
|
|
58951
58982
|
// ../vuu-shell/src/feature/Feature.tsx
|
|
58952
|
-
var
|
|
58983
|
+
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
58953
58984
|
var componentsMap = /* @__PURE__ */ new Map();
|
|
58954
58985
|
var useCachedFeature = (url) => {
|
|
58955
|
-
(0,
|
|
58986
|
+
(0, import_react231.useEffect)(
|
|
58956
58987
|
() => () => {
|
|
58957
58988
|
componentsMap.delete(url);
|
|
58958
58989
|
},
|
|
@@ -58961,7 +58992,7 @@ var useCachedFeature = (url) => {
|
|
|
58961
58992
|
if (!componentsMap.has(url)) {
|
|
58962
58993
|
componentsMap.set(
|
|
58963
58994
|
url,
|
|
58964
|
-
|
|
58995
|
+
import_react231.default.lazy(() => import(
|
|
58965
58996
|
/* @vite-ignore */
|
|
58966
58997
|
url
|
|
58967
58998
|
))
|
|
@@ -58989,23 +59020,24 @@ function RawFeature({
|
|
|
58989
59020
|
});
|
|
58990
59021
|
}
|
|
58991
59022
|
const LazyFeature = useCachedFeature(url);
|
|
58992
|
-
return /* @__PURE__ */ (0,
|
|
59023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(FeatureErrorBoundary, { url, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_react231.Suspense, { fallback: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(Loader, {}), children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(LazyFeature, { ...props, ...params }) }) });
|
|
58993
59024
|
}
|
|
58994
|
-
var Feature =
|
|
59025
|
+
var Feature = import_react231.default.memo(RawFeature);
|
|
58995
59026
|
Feature.displayName = "Feature";
|
|
58996
59027
|
registerComponent("Feature", Feature, "view");
|
|
58997
59028
|
|
|
58998
59029
|
// ../vuu-shell/src/layout-management/SaveLayoutPanel.tsx
|
|
58999
|
-
var
|
|
59000
|
-
var
|
|
59001
|
-
var
|
|
59030
|
+
var import_react232 = require("react");
|
|
59031
|
+
var import_vuu_utils93 = require("@vuu-ui/vuu-utils");
|
|
59032
|
+
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
59002
59033
|
var classBase49 = "saveLayoutPanel";
|
|
59003
59034
|
var formField = `${classBase49}-formField`;
|
|
59004
59035
|
|
|
59005
59036
|
// ../vuu-shell/src/layout-management/useLayoutManager.tsx
|
|
59006
|
-
var
|
|
59007
|
-
var
|
|
59008
|
-
var LayoutManagementContext =
|
|
59037
|
+
var import_react233 = __toESM(require("react"));
|
|
59038
|
+
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
59039
|
+
var LayoutManagementContext = import_react233.default.createContext({
|
|
59040
|
+
getApplicationSettings: () => void 0,
|
|
59009
59041
|
layoutMetadata: [],
|
|
59010
59042
|
saveLayout: () => void 0,
|
|
59011
59043
|
// The default Application JSON will be served if no LayoutManagementProvider
|
|
@@ -59016,13 +59048,13 @@ var LayoutManagementContext = import_react232.default.createContext({
|
|
|
59016
59048
|
});
|
|
59017
59049
|
|
|
59018
59050
|
// ../vuu-shell/src/layout-management/LayoutList.tsx
|
|
59019
|
-
var
|
|
59051
|
+
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
59020
59052
|
|
|
59021
59053
|
// ../vuu-icons/src/VuuLogo.tsx
|
|
59022
|
-
var
|
|
59023
|
-
var
|
|
59024
|
-
var VuuLogo2 = (0,
|
|
59025
|
-
return /* @__PURE__ */ (0,
|
|
59054
|
+
var import_react234 = require("react");
|
|
59055
|
+
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
59056
|
+
var VuuLogo2 = (0, import_react234.memo)(() => {
|
|
59057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
|
|
59026
59058
|
"svg",
|
|
59027
59059
|
{
|
|
59028
59060
|
width: "44",
|
|
@@ -59031,44 +59063,44 @@ var VuuLogo2 = (0, import_react233.memo)(() => {
|
|
|
59031
59063
|
fill: "none",
|
|
59032
59064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
59033
59065
|
children: [
|
|
59034
|
-
/* @__PURE__ */ (0,
|
|
59035
|
-
/* @__PURE__ */ (0,
|
|
59066
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("g", { clipPath: "url(#clip0_217_6990)", children: [
|
|
59067
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
59036
59068
|
"path",
|
|
59037
59069
|
{
|
|
59038
59070
|
d: "M39.8642 15.5509L35.9196 7.58974L34.3369 6.85464L24.6235 22.0825L39.1628 30.618L42.3152 25.6347L39.8642 15.5509Z",
|
|
59039
59071
|
fill: "url(#paint0_linear_217_6990)"
|
|
59040
59072
|
}
|
|
59041
59073
|
),
|
|
59042
|
-
/* @__PURE__ */ (0,
|
|
59074
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
59043
59075
|
"path",
|
|
59044
59076
|
{
|
|
59045
59077
|
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",
|
|
59046
59078
|
fill: "url(#paint1_linear_217_6990)"
|
|
59047
59079
|
}
|
|
59048
59080
|
),
|
|
59049
|
-
/* @__PURE__ */ (0,
|
|
59081
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
59050
59082
|
"path",
|
|
59051
59083
|
{
|
|
59052
59084
|
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",
|
|
59053
59085
|
fill: "#F37880"
|
|
59054
59086
|
}
|
|
59055
59087
|
),
|
|
59056
|
-
/* @__PURE__ */ (0,
|
|
59057
|
-
/* @__PURE__ */ (0,
|
|
59088
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("g", { opacity: "0.86", children: [
|
|
59089
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
59058
59090
|
"path",
|
|
59059
59091
|
{
|
|
59060
59092
|
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",
|
|
59061
59093
|
fill: "white"
|
|
59062
59094
|
}
|
|
59063
59095
|
),
|
|
59064
|
-
/* @__PURE__ */ (0,
|
|
59096
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
59065
59097
|
"path",
|
|
59066
59098
|
{
|
|
59067
59099
|
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",
|
|
59068
59100
|
fill: "white"
|
|
59069
59101
|
}
|
|
59070
59102
|
),
|
|
59071
|
-
/* @__PURE__ */ (0,
|
|
59103
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
59072
59104
|
"path",
|
|
59073
59105
|
{
|
|
59074
59106
|
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",
|
|
@@ -59077,8 +59109,8 @@ var VuuLogo2 = (0, import_react233.memo)(() => {
|
|
|
59077
59109
|
)
|
|
59078
59110
|
] })
|
|
59079
59111
|
] }),
|
|
59080
|
-
/* @__PURE__ */ (0,
|
|
59081
|
-
/* @__PURE__ */ (0,
|
|
59112
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("defs", { children: [
|
|
59113
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
|
|
59082
59114
|
"linearGradient",
|
|
59083
59115
|
{
|
|
59084
59116
|
id: "paint0_linear_217_6990",
|
|
@@ -59088,12 +59120,12 @@ var VuuLogo2 = (0, import_react233.memo)(() => {
|
|
|
59088
59120
|
y2: "18.7363",
|
|
59089
59121
|
gradientUnits: "userSpaceOnUse",
|
|
59090
59122
|
children: [
|
|
59091
|
-
/* @__PURE__ */ (0,
|
|
59092
|
-
/* @__PURE__ */ (0,
|
|
59123
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)("stop", { stopColor: "#4906A5" }),
|
|
59124
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)("stop", { offset: "1", stopColor: "#D3423A" })
|
|
59093
59125
|
]
|
|
59094
59126
|
}
|
|
59095
59127
|
),
|
|
59096
|
-
/* @__PURE__ */ (0,
|
|
59128
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
|
|
59097
59129
|
"linearGradient",
|
|
59098
59130
|
{
|
|
59099
59131
|
id: "paint1_linear_217_6990",
|
|
@@ -59103,12 +59135,12 @@ var VuuLogo2 = (0, import_react233.memo)(() => {
|
|
|
59103
59135
|
y2: "22.5009",
|
|
59104
59136
|
gradientUnits: "userSpaceOnUse",
|
|
59105
59137
|
children: [
|
|
59106
|
-
/* @__PURE__ */ (0,
|
|
59107
|
-
/* @__PURE__ */ (0,
|
|
59138
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)("stop", { stopColor: "#7C06A5" }),
|
|
59139
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)("stop", { offset: "1", stopColor: "#D3423A" })
|
|
59108
59140
|
]
|
|
59109
59141
|
}
|
|
59110
59142
|
),
|
|
59111
|
-
/* @__PURE__ */ (0,
|
|
59143
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)("clipPath", { id: "clip0_217_6990", children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("rect", { width: "44", height: "45", fill: "white" }) })
|
|
59112
59144
|
] })
|
|
59113
59145
|
]
|
|
59114
59146
|
}
|
|
@@ -59118,19 +59150,19 @@ VuuLogo2.displayName = "VuuLogo";
|
|
|
59118
59150
|
|
|
59119
59151
|
// ../vuu-shell/src/left-nav/LeftNav.tsx
|
|
59120
59152
|
var import_classnames74 = __toESM(require_classnames());
|
|
59121
|
-
var
|
|
59153
|
+
var import_react236 = require("react");
|
|
59122
59154
|
|
|
59123
59155
|
// ../vuu-shell/src/feature-list/FeatureList.tsx
|
|
59124
|
-
var
|
|
59156
|
+
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
59125
59157
|
|
|
59126
59158
|
// ../vuu-shell/src/theme-provider/ThemeProvider.tsx
|
|
59127
|
-
var
|
|
59159
|
+
var import_react235 = require("react");
|
|
59128
59160
|
var import_classnames73 = __toESM(require_classnames());
|
|
59129
|
-
var
|
|
59161
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
59130
59162
|
var DEFAULT_DENSITY2 = "medium";
|
|
59131
59163
|
var DEFAULT_THEME = "salt-theme";
|
|
59132
59164
|
var DEFAULT_THEME_MODE = "light";
|
|
59133
|
-
var ThemeContext2 = (0,
|
|
59165
|
+
var ThemeContext2 = (0, import_react235.createContext)({
|
|
59134
59166
|
density: "high",
|
|
59135
59167
|
theme: "vuu",
|
|
59136
59168
|
themeMode: "light"
|
|
@@ -59141,7 +59173,7 @@ var DEFAULT_THEME_ATTRIBUTES = [
|
|
|
59141
59173
|
"light"
|
|
59142
59174
|
];
|
|
59143
59175
|
var useThemeAttributes = (themeAttributes) => {
|
|
59144
|
-
const context = (0,
|
|
59176
|
+
const context = (0, import_react235.useContext)(ThemeContext2);
|
|
59145
59177
|
if (themeAttributes) {
|
|
59146
59178
|
return [
|
|
59147
59179
|
themeAttributes.themeClass,
|
|
@@ -59159,8 +59191,8 @@ var useThemeAttributes = (themeAttributes) => {
|
|
|
59159
59191
|
};
|
|
59160
59192
|
var createThemedChildren = (children, theme2, themeMode, density) => {
|
|
59161
59193
|
var _a4;
|
|
59162
|
-
if ((0,
|
|
59163
|
-
return (0,
|
|
59194
|
+
if ((0, import_react235.isValidElement)(children)) {
|
|
59195
|
+
return (0, import_react235.cloneElement)(children, {
|
|
59164
59196
|
className: (0, import_classnames73.default)(
|
|
59165
59197
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
59166
59198
|
(_a4 = children.props) == null ? void 0 : _a4.className,
|
|
@@ -59192,69 +59224,69 @@ var ThemeProvider = ({
|
|
|
59192
59224
|
density: inheritedDensity,
|
|
59193
59225
|
themeMode: inheritedThemeMode,
|
|
59194
59226
|
theme: inheritedTheme
|
|
59195
|
-
} = (0,
|
|
59227
|
+
} = (0, import_react235.useContext)(ThemeContext2);
|
|
59196
59228
|
const density = (_a4 = densityProp != null ? densityProp : inheritedDensity) != null ? _a4 : DEFAULT_DENSITY2;
|
|
59197
59229
|
const themeMode = (_b = themeModeProp != null ? themeModeProp : inheritedThemeMode) != null ? _b : DEFAULT_THEME_MODE;
|
|
59198
59230
|
const theme2 = (_c = themeProp != null ? themeProp : inheritedTheme) != null ? _c : DEFAULT_THEME;
|
|
59199
59231
|
const themedChildren = applyThemeClasses ? createThemedChildren(children, theme2, themeMode, density) : children;
|
|
59200
|
-
return /* @__PURE__ */ (0,
|
|
59232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(ThemeContext2.Provider, { value: { themeMode, density, theme: theme2 }, children: themedChildren });
|
|
59201
59233
|
};
|
|
59202
59234
|
ThemeProvider.displayName = "ThemeProvider";
|
|
59203
59235
|
|
|
59204
59236
|
// ../vuu-shell/src/left-nav/LeftNav.tsx
|
|
59205
|
-
var
|
|
59237
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
59206
59238
|
|
|
59207
59239
|
// ../vuu-shell/src/session-editing-form/SessionEditingForm.tsx
|
|
59208
|
-
var
|
|
59240
|
+
var import_react237 = require("react");
|
|
59209
59241
|
var import_classnames75 = __toESM(require_classnames());
|
|
59210
59242
|
var import_vuu_data4 = require("@vuu-ui/vuu-data");
|
|
59211
|
-
var
|
|
59212
|
-
var
|
|
59243
|
+
var import_vuu_utils94 = require("@vuu-ui/vuu-utils");
|
|
59244
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
59213
59245
|
|
|
59214
59246
|
// ../vuu-shell/src/shell.tsx
|
|
59215
59247
|
var import_vuu_data5 = require("@vuu-ui/vuu-data");
|
|
59216
|
-
var
|
|
59248
|
+
var import_vuu_utils95 = require("@vuu-ui/vuu-utils");
|
|
59217
59249
|
var import_classnames78 = __toESM(require_classnames());
|
|
59218
|
-
var
|
|
59250
|
+
var import_react241 = require("react");
|
|
59219
59251
|
|
|
59220
59252
|
// ../vuu-shell/src/shell-layouts/context-panel/ContextPanel.tsx
|
|
59221
59253
|
var import_classnames76 = __toESM(require_classnames());
|
|
59222
|
-
var
|
|
59223
|
-
var
|
|
59254
|
+
var import_react238 = require("react");
|
|
59255
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
59224
59256
|
|
|
59225
59257
|
// ../vuu-shell/src/shell-layouts/side-panel/SidePanel.tsx
|
|
59226
|
-
var
|
|
59258
|
+
var import_react239 = require("react");
|
|
59227
59259
|
var import_classnames77 = __toESM(require_classnames());
|
|
59228
|
-
var
|
|
59260
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
59229
59261
|
|
|
59230
59262
|
// ../vuu-shell/src/shell-layouts/useFullHeightLeftPanel.tsx
|
|
59231
|
-
var
|
|
59263
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
59232
59264
|
|
|
59233
59265
|
// ../vuu-shell/src/shell-layouts/useInlayLeftPanel.tsx
|
|
59234
|
-
var
|
|
59235
|
-
var
|
|
59266
|
+
var import_react240 = require("react");
|
|
59267
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
59236
59268
|
|
|
59237
59269
|
// ../vuu-shell/src/shell.tsx
|
|
59238
|
-
var
|
|
59239
|
-
var { error } = (0,
|
|
59270
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
59271
|
+
var { error } = (0, import_vuu_utils95.logger)("Shell");
|
|
59240
59272
|
|
|
59241
59273
|
// ../vuu-shell/src/ShellContextProvider.tsx
|
|
59242
|
-
var
|
|
59243
|
-
var
|
|
59274
|
+
var import_react242 = require("react");
|
|
59275
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
59244
59276
|
var defaultConfig = {};
|
|
59245
|
-
var ShellContext = (0,
|
|
59277
|
+
var ShellContext = (0, import_react242.createContext)(defaultConfig);
|
|
59246
59278
|
var useShellContext = () => {
|
|
59247
|
-
return (0,
|
|
59279
|
+
return (0, import_react242.useContext)(ShellContext);
|
|
59248
59280
|
};
|
|
59249
59281
|
|
|
59250
59282
|
// ../vuu-shell/src/theme-switch/ThemeSwitch.tsx
|
|
59251
59283
|
var import_classnames79 = __toESM(require_classnames());
|
|
59252
|
-
var
|
|
59253
|
-
var
|
|
59284
|
+
var import_react243 = require("react");
|
|
59285
|
+
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
59254
59286
|
|
|
59255
59287
|
// src/hooks/useLookupValues.ts
|
|
59256
|
-
var
|
|
59257
|
-
var
|
|
59288
|
+
var import_vuu_utils96 = require("@vuu-ui/vuu-utils");
|
|
59289
|
+
var import_react244 = require("react");
|
|
59258
59290
|
var NO_VALUES = [];
|
|
59259
59291
|
var lookupValueMap = /* @__PURE__ */ new Map();
|
|
59260
59292
|
var loadLookupValues = ({
|
|
@@ -59269,7 +59301,7 @@ var loadLookupValues = ({
|
|
|
59269
59301
|
} else {
|
|
59270
59302
|
const promise = new Promise((resolve) => {
|
|
59271
59303
|
const columns = [valueColumn, labelColumn];
|
|
59272
|
-
const columnMap = (0,
|
|
59304
|
+
const columnMap = (0, import_vuu_utils96.buildColumnMap)(columns);
|
|
59273
59305
|
const dataSource = new import_vuu_data6.RemoteDataSource({
|
|
59274
59306
|
bufferSize: 0,
|
|
59275
59307
|
table
|
|
@@ -59305,7 +59337,7 @@ var getSelectedOption = (values, selectedValue) => {
|
|
|
59305
59337
|
return (_a4 = values.find((option) => option.value === selectedValue)) != null ? _a4 : null;
|
|
59306
59338
|
};
|
|
59307
59339
|
var getLookupDetails = ({ name: name3, type }) => {
|
|
59308
|
-
if ((0,
|
|
59340
|
+
if ((0, import_vuu_utils96.isTypeDescriptor)(type) && (0, import_vuu_utils96.isLookupRenderer)(type.renderer)) {
|
|
59309
59341
|
return type.renderer.lookup;
|
|
59310
59342
|
} else {
|
|
59311
59343
|
throw Error(
|
|
@@ -59316,7 +59348,7 @@ var getLookupDetails = ({ name: name3, type }) => {
|
|
|
59316
59348
|
var useLookupValues = (column, initialValueProp) => {
|
|
59317
59349
|
const lookupDetails = getLookupDetails(column);
|
|
59318
59350
|
const { getLookupValues } = useShellContext();
|
|
59319
|
-
const initialState = (0,
|
|
59351
|
+
const initialState = (0, import_react244.useMemo)(() => {
|
|
59320
59352
|
var _a4;
|
|
59321
59353
|
const values2 = (_a4 = getLookupValues == null ? void 0 : getLookupValues(lookupDetails.table)) != null ? _a4 : NO_VALUES;
|
|
59322
59354
|
return {
|
|
@@ -59324,8 +59356,8 @@ var useLookupValues = (column, initialValueProp) => {
|
|
|
59324
59356
|
values: values2
|
|
59325
59357
|
};
|
|
59326
59358
|
}, [getLookupValues, initialValueProp, lookupDetails.table]);
|
|
59327
|
-
const [{ initialValue, values }, setLookupState] = (0,
|
|
59328
|
-
(0,
|
|
59359
|
+
const [{ initialValue, values }, setLookupState] = (0, import_react244.useState)(initialState);
|
|
59360
|
+
(0, import_react244.useMemo)(() => {
|
|
59329
59361
|
if (values === NO_VALUES) {
|
|
59330
59362
|
loadLookupValues(lookupDetails).then(
|
|
59331
59363
|
(values2) => setLookupState({
|
|
@@ -59342,17 +59374,17 @@ var useLookupValues = (column, initialValueProp) => {
|
|
|
59342
59374
|
};
|
|
59343
59375
|
|
|
59344
59376
|
// src/hooks/useServerConnectionStatus.ts
|
|
59345
|
-
var
|
|
59377
|
+
var import_react245 = require("react");
|
|
59346
59378
|
var import_vuu_data7 = require("@vuu-ui/vuu-data");
|
|
59347
59379
|
var useServerConnectionStatus = () => {
|
|
59348
|
-
const [connectionStatus, setConnectionStatus] = (0,
|
|
59349
|
-
const handleStatusChange = (0,
|
|
59380
|
+
const [connectionStatus, setConnectionStatus] = (0, import_react245.useState)("disconnected");
|
|
59381
|
+
const handleStatusChange = (0, import_react245.useCallback)(
|
|
59350
59382
|
({ status }) => {
|
|
59351
59383
|
setConnectionStatus(status);
|
|
59352
59384
|
},
|
|
59353
59385
|
[]
|
|
59354
59386
|
);
|
|
59355
|
-
(0,
|
|
59387
|
+
(0, import_react245.useEffect)(() => {
|
|
59356
59388
|
import_vuu_data7.ConnectionManager.on("connection-status", handleStatusChange);
|
|
59357
59389
|
return () => {
|
|
59358
59390
|
import_vuu_data7.ConnectionManager.removeListener("connection-status", handleStatusChange);
|
|
@@ -59362,14 +59394,14 @@ var useServerConnectionStatus = () => {
|
|
|
59362
59394
|
};
|
|
59363
59395
|
|
|
59364
59396
|
// src/hooks/useServerConnectionQuality.ts
|
|
59365
|
-
var
|
|
59397
|
+
var import_react246 = require("react");
|
|
59366
59398
|
var import_vuu_data8 = require("@vuu-ui/vuu-data");
|
|
59367
59399
|
var useServerConnectionQuality = () => {
|
|
59368
|
-
const [messagesPerSecond, setMessagesPerSecond] = (0,
|
|
59369
|
-
const handleConnectivityMessage = (0,
|
|
59400
|
+
const [messagesPerSecond, setMessagesPerSecond] = (0, import_react246.useState)(0);
|
|
59401
|
+
const handleConnectivityMessage = (0, import_react246.useCallback)(({ messages }) => {
|
|
59370
59402
|
setMessagesPerSecond(messages.messagesLength);
|
|
59371
59403
|
}, []);
|
|
59372
|
-
(0,
|
|
59404
|
+
(0, import_react246.useEffect)(() => {
|
|
59373
59405
|
import_vuu_data8.ConnectionManager.on("connection-metrics", handleConnectivityMessage);
|
|
59374
59406
|
return () => {
|
|
59375
59407
|
import_vuu_data8.ConnectionManager.removeListener(
|
|
@@ -59382,7 +59414,7 @@ var useServerConnectionQuality = () => {
|
|
|
59382
59414
|
};
|
|
59383
59415
|
|
|
59384
59416
|
// src/hooks/useTypeaheadSuggestions.ts
|
|
59385
|
-
var
|
|
59417
|
+
var import_react247 = require("react");
|
|
59386
59418
|
var import_vuu_data9 = require("@vuu-ui/vuu-data");
|
|
59387
59419
|
var TYPEAHEAD_MESSAGE_CONSTANTS = {
|
|
59388
59420
|
type: "RPC_CALL",
|
|
@@ -59394,7 +59426,7 @@ var getTypeaheadParams = (table, column, text = "", selectedValues = []) => {
|
|
|
59394
59426
|
}
|
|
59395
59427
|
return [table, column];
|
|
59396
59428
|
};
|
|
59397
|
-
var useTypeaheadSuggestions = () => (0,
|
|
59429
|
+
var useTypeaheadSuggestions = () => (0, import_react247.useCallback)(async (params) => {
|
|
59398
59430
|
const rpcMessage = params.length === 2 ? {
|
|
59399
59431
|
method: "getUniqueFieldValues",
|
|
59400
59432
|
params,
|
|
@@ -59409,10 +59441,10 @@ var useTypeaheadSuggestions = () => (0, import_react246.useCallback)(async (para
|
|
|
59409
59441
|
|
|
59410
59442
|
// src/hooks/useVuuMenuActions.ts
|
|
59411
59443
|
var import_vuu_filter_parser3 = require("@vuu-ui/vuu-filter-parser");
|
|
59412
|
-
var
|
|
59413
|
-
var
|
|
59444
|
+
var import_vuu_utils97 = require("@vuu-ui/vuu-utils");
|
|
59445
|
+
var import_react248 = require("react");
|
|
59414
59446
|
var addRowsFromInstruments = "addRowsFromInstruments";
|
|
59415
|
-
var { KEY: KEY3 } =
|
|
59447
|
+
var { KEY: KEY3 } = import_vuu_utils97.metadataKeys;
|
|
59416
59448
|
var NO_CONFIG = {};
|
|
59417
59449
|
var isMenuItem = (menu) => "rpcName" in menu;
|
|
59418
59450
|
var isGroupMenuItem = (menu) => "menus" in menu;
|
|
@@ -59491,7 +59523,7 @@ var getMenuItemOptions = (menu, options) => {
|
|
|
59491
59523
|
case "row":
|
|
59492
59524
|
return {
|
|
59493
59525
|
...menu,
|
|
59494
|
-
row: (0,
|
|
59526
|
+
row: (0, import_vuu_utils97.getRowRecord)(options.row, options.columnMap),
|
|
59495
59527
|
rowKey: options.row[KEY3]
|
|
59496
59528
|
};
|
|
59497
59529
|
default:
|
|
@@ -59555,7 +59587,7 @@ var useVuuMenuActions = ({
|
|
|
59555
59587
|
menuActionConfig = NO_CONFIG,
|
|
59556
59588
|
onRpcResponse
|
|
59557
59589
|
}) => {
|
|
59558
|
-
const buildViewserverMenuOptions = (0,
|
|
59590
|
+
const buildViewserverMenuOptions = (0, import_react248.useCallback)(
|
|
59559
59591
|
(location, options) => {
|
|
59560
59592
|
const { links, menu } = dataSource;
|
|
59561
59593
|
const { visualLink } = menuActionConfig;
|
|
@@ -59577,7 +59609,7 @@ var useVuuMenuActions = ({
|
|
|
59577
59609
|
location,
|
|
59578
59610
|
options
|
|
59579
59611
|
);
|
|
59580
|
-
if (isRoot2(menu) && (0,
|
|
59612
|
+
if (isRoot2(menu) && (0, import_vuu_utils97.isGroupMenuItemDescriptor)(menuDescriptor)) {
|
|
59581
59613
|
descriptors.push(...menuDescriptor.children);
|
|
59582
59614
|
} else if (menuDescriptor) {
|
|
59583
59615
|
descriptors.push(menuDescriptor);
|
|
@@ -59587,7 +59619,7 @@ var useVuuMenuActions = ({
|
|
|
59587
59619
|
},
|
|
59588
59620
|
[dataSource, menuActionConfig]
|
|
59589
59621
|
);
|
|
59590
|
-
const handleMenuAction = (0,
|
|
59622
|
+
const handleMenuAction = (0, import_react248.useCallback)(
|
|
59591
59623
|
({ menuId, options }) => {
|
|
59592
59624
|
if (clientSideMenuActionHandler == null ? void 0 : clientSideMenuActionHandler(menuId, options)) {
|
|
59593
59625
|
return true;
|
|
@@ -59618,17 +59650,17 @@ var useVuuMenuActions = ({
|
|
|
59618
59650
|
|
|
59619
59651
|
// src/hooks/useVuuTables.ts
|
|
59620
59652
|
var import_vuu_data10 = require("@vuu-ui/vuu-data");
|
|
59621
|
-
var
|
|
59653
|
+
var import_react249 = require("react");
|
|
59622
59654
|
var useVuuTables = () => {
|
|
59623
|
-
const [tables, setTables] = (0,
|
|
59624
|
-
const buildTables = (0,
|
|
59655
|
+
const [tables, setTables] = (0, import_react249.useState)();
|
|
59656
|
+
const buildTables = (0, import_react249.useCallback)((schemas) => {
|
|
59625
59657
|
const vuuTables = /* @__PURE__ */ new Map();
|
|
59626
59658
|
schemas.forEach((schema) => {
|
|
59627
59659
|
vuuTables.set(schema.table.table, schema);
|
|
59628
59660
|
});
|
|
59629
59661
|
return vuuTables;
|
|
59630
59662
|
}, []);
|
|
59631
|
-
(0,
|
|
59663
|
+
(0, import_react249.useEffect)(() => {
|
|
59632
59664
|
async function fetchTableMetadata() {
|
|
59633
59665
|
console.log("GET TABLE LIST");
|
|
59634
59666
|
const server = await (0, import_vuu_data10.getServerAPI)();
|