@vitrosoftware/common-ui-ts 1.1.116 → 1.1.117
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/css/std/controls/table-view/table-view-custom-date-edit.css +1 -5
- package/css/std/controls/table-view/treegrid-context-menu.css +2 -7
- package/dist/index.js +40 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -58,14 +58,9 @@
|
|
|
58
58
|
margin: 0;
|
|
59
59
|
width: 100%;
|
|
60
60
|
cursor: default;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.vitro-table-view-context-menuMain .TWMenuBody,
|
|
64
|
-
.vitro-table-view-context-menu-leftMain .TWMenuBody,
|
|
65
|
-
.vitro-table-view-popup-menuMain .TWMenuBody {
|
|
66
61
|
max-height: 288px;
|
|
67
|
-
overflow-y: auto;
|
|
68
|
-
overflow-x: hidden;
|
|
62
|
+
overflow-y: auto !important;
|
|
63
|
+
overflow-x: hidden !important;
|
|
69
64
|
}
|
|
70
65
|
|
|
71
66
|
.vitro-table-view-context-menuMain .TWMenuBody::-webkit-scrollbar,
|
package/dist/index.js
CHANGED
|
@@ -60510,8 +60510,8 @@ var Dialog = function Dialog(props) {
|
|
|
60510
60510
|
var className = styles$i['vitro-dialog'] + (props.isShow === false ? CTRL.SPACE + styles$i['vitro-display-none'] : CTRL.EMPTY);
|
|
60511
60511
|
var showFooter = !props.isHideFooter && (((_props$buttonList = props.buttonList) === null || _props$buttonList === void 0 ? void 0 : _props$buttonList.length) || props.onClose);
|
|
60512
60512
|
React.useEffect(function () {
|
|
60513
|
-
if (
|
|
60514
|
-
|
|
60513
|
+
if (buttonGroupRef.current && buttonGroupRef.current.lastChild) {
|
|
60514
|
+
buttonGroupRef.current.lastChild.focus();
|
|
60515
60515
|
}
|
|
60516
60516
|
updateIsMobileView();
|
|
60517
60517
|
}, []);
|
|
@@ -60536,7 +60536,7 @@ var Dialog = function Dialog(props) {
|
|
|
60536
60536
|
if (e.keyCode === KEY_CODE.ESC) {
|
|
60537
60537
|
onClose();
|
|
60538
60538
|
}
|
|
60539
|
-
if (e.keyCode === KEY_CODE.TAB) {
|
|
60539
|
+
if (e.keyCode === KEY_CODE.TAB || e.keyCode === KEY_CODE.ARROW_RIGHT || e.keyCode === KEY_CODE.ARROW_LEFT) {
|
|
60540
60540
|
changeFocus(e);
|
|
60541
60541
|
}
|
|
60542
60542
|
if (props.onKeyDown) {
|
|
@@ -60547,18 +60547,33 @@ var Dialog = function Dialog(props) {
|
|
|
60547
60547
|
if (buttonGroupRef.current) {
|
|
60548
60548
|
e.preventDefault();
|
|
60549
60549
|
var buttonList = Array.from(buttonGroupRef.current.children);
|
|
60550
|
-
|
|
60551
|
-
|
|
60552
|
-
|
|
60553
|
-
|
|
60554
|
-
if (
|
|
60555
|
-
activeButton.nextSibling.focus();
|
|
60550
|
+
var activeButton = buttonList.find(function (button) {
|
|
60551
|
+
return button === document.activeElement;
|
|
60552
|
+
});
|
|
60553
|
+
if (activeButton) {
|
|
60554
|
+
if (e.keyCode === KEY_CODE.TAB) {
|
|
60555
|
+
activeButton.nextSibling ? focusNext(activeButton) : buttonList[0].focus();
|
|
60556
60556
|
} else {
|
|
60557
|
-
|
|
60557
|
+
if (e.keyCode === KEY_CODE.ARROW_RIGHT) {
|
|
60558
|
+
focusNext(activeButton);
|
|
60559
|
+
}
|
|
60560
|
+
if (e.keyCode === KEY_CODE.ARROW_LEFT) {
|
|
60561
|
+
focusPrev(activeButton);
|
|
60562
|
+
}
|
|
60558
60563
|
}
|
|
60559
60564
|
}
|
|
60560
60565
|
}
|
|
60561
60566
|
};
|
|
60567
|
+
var focusNext = function focusNext(activeButton) {
|
|
60568
|
+
if (activeButton.nextSibling) {
|
|
60569
|
+
activeButton.nextSibling.focus();
|
|
60570
|
+
}
|
|
60571
|
+
};
|
|
60572
|
+
var focusPrev = function focusPrev(activeButton) {
|
|
60573
|
+
if (activeButton.previousSibling) {
|
|
60574
|
+
activeButton.previousSibling.focus();
|
|
60575
|
+
}
|
|
60576
|
+
};
|
|
60562
60577
|
var updateIsMobileView = function updateIsMobileView() {
|
|
60563
60578
|
setIsMobileView(window.innerWidth < exports.MOBILE_VIEW.WIDTH);
|
|
60564
60579
|
};
|
|
@@ -62010,7 +62025,7 @@ var Viewer = function Viewer(props) {
|
|
|
62010
62025
|
};
|
|
62011
62026
|
|
|
62012
62027
|
var name = "@vitrosoftware/common-ui-ts";
|
|
62013
|
-
var version$1 = "1.1.
|
|
62028
|
+
var version$1 = "1.1.117";
|
|
62014
62029
|
var description = "vitro software common ui ts";
|
|
62015
62030
|
var author = "";
|
|
62016
62031
|
var license = "MIT";
|
|
@@ -63381,7 +63396,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63381
63396
|
}
|
|
63382
63397
|
}, [selectedValueList]);
|
|
63383
63398
|
React.useEffect(function () {
|
|
63384
|
-
setState(props.errorMessage ? styles$M['vitro-error'] : CTRL.EMPTY);
|
|
63399
|
+
setState(props.errorMessage && !valueListVisible ? styles$M['vitro-error'] : valueListVisible ? state : CTRL.EMPTY);
|
|
63385
63400
|
}, [props.errorMessage]);
|
|
63386
63401
|
var updateFilteredValueList = function updateFilteredValueList(valueList) {
|
|
63387
63402
|
var availableValueList = inputValue ? filteredValueList : valueList;
|
|
@@ -63447,6 +63462,8 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63447
63462
|
};
|
|
63448
63463
|
var onOptionValueDelete = function onOptionValueDelete(id) {
|
|
63449
63464
|
if (!props.isDisabled) {
|
|
63465
|
+
var _inputRef$current;
|
|
63466
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
63450
63467
|
var newSelectedValueList = id ? selectedValueList.filter(function (x) {
|
|
63451
63468
|
return x.id !== id;
|
|
63452
63469
|
}) : [];
|
|
@@ -63457,21 +63474,19 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63457
63474
|
}
|
|
63458
63475
|
};
|
|
63459
63476
|
var onFocusOut = function onFocusOut(e) {
|
|
63477
|
+
var _document$activeEleme;
|
|
63460
63478
|
var target = e.currentTarget;
|
|
63461
|
-
|
|
63462
|
-
|
|
63463
|
-
|
|
63464
|
-
|
|
63465
|
-
|
|
63466
|
-
|
|
63467
|
-
|
|
63468
|
-
|
|
63469
|
-
return x;
|
|
63470
|
-
}), props.name);
|
|
63471
|
-
}
|
|
63472
|
-
setState(props.errorMessage ? styles$M['vitro-error'] : CTRL.EMPTY);
|
|
63479
|
+
var isValueListItem = Boolean(props.isMultiSelect && ((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.classList.contains(valueListStyles['vitro-item'])));
|
|
63480
|
+
if (!target.contains(document.activeElement) && !isValueListItem) {
|
|
63481
|
+
setValueListVisible(false);
|
|
63482
|
+
setInputValue(CTRL.EMPTY);
|
|
63483
|
+
if (props.onBlur && !props.isDisabled) {
|
|
63484
|
+
props.onBlur(props.isMultiSelect ? selectedValueList : selectedValueList.find(function (x) {
|
|
63485
|
+
return x;
|
|
63486
|
+
}), props.name);
|
|
63473
63487
|
}
|
|
63474
|
-
|
|
63488
|
+
setState(props.errorMessage ? styles$M['vitro-error'] : CTRL.EMPTY);
|
|
63489
|
+
}
|
|
63475
63490
|
};
|
|
63476
63491
|
var onFocus = function onFocus(e) {
|
|
63477
63492
|
setState(styles$M['vitro-focus']);
|