@vitrosoftware/common-ui-ts 1.1.229 → 1.1.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -63517,7 +63517,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63517
63517
|
}
|
|
63518
63518
|
};
|
|
63519
63519
|
});
|
|
63520
|
-
var onInputValueUpdated = function onInputValueUpdated() {
|
|
63520
|
+
var onInputValueUpdated = function onInputValueUpdated(inputValue) {
|
|
63521
63521
|
if ((inputValue || inputValue === CTRL.EMPTY) && inputValue.length >= props.filterMinLength) {
|
|
63522
63522
|
if (props.valueList) {
|
|
63523
63523
|
updateFilteredValueList(props.valueList);
|
|
@@ -63577,7 +63577,8 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63577
63577
|
return props.selectedValueTemplate ? props.selectedValueTemplate(value) : value.title;
|
|
63578
63578
|
};
|
|
63579
63579
|
var expandValueList = function expandValueList() {
|
|
63580
|
-
|
|
63580
|
+
var _props$valueList;
|
|
63581
|
+
if (props.getAllValueList || props.getValueList || (_props$valueList = props.valueList) !== null && _props$valueList !== void 0 && _props$valueList.length) {
|
|
63581
63582
|
setValueListVisible(true);
|
|
63582
63583
|
}
|
|
63583
63584
|
};
|
|
@@ -63585,7 +63586,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63585
63586
|
setState(styles$N['vitro-focus']);
|
|
63586
63587
|
expandValueList();
|
|
63587
63588
|
setInputValue(e.target.value);
|
|
63588
|
-
onInputValueUpdated();
|
|
63589
|
+
onInputValueUpdated(e.target.value);
|
|
63589
63590
|
};
|
|
63590
63591
|
var onKeyDown = function onKeyDown(e) {
|
|
63591
63592
|
var keyBoardBackSpace = 8;
|
|
@@ -63688,7 +63689,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63688
63689
|
if (scrollBarRef.current) {
|
|
63689
63690
|
scrollBarRef.current.scrollTop = scrollBarRef.current.scrollHeight;
|
|
63690
63691
|
}
|
|
63691
|
-
|
|
63692
|
+
if (!valueListVisible) {
|
|
63693
|
+
onInputValueUpdated(e.target.value);
|
|
63694
|
+
}
|
|
63692
63695
|
isShowTooltipRef.current = false;
|
|
63693
63696
|
setState(styles$N['vitro-focus']);
|
|
63694
63697
|
expandValueList();
|
|
@@ -66891,7 +66894,7 @@ var Viewer = function Viewer(props) {
|
|
|
66891
66894
|
};
|
|
66892
66895
|
|
|
66893
66896
|
var name = "@vitrosoftware/common-ui-ts";
|
|
66894
|
-
var version$1 = "1.1.
|
|
66897
|
+
var version$1 = "1.1.230";
|
|
66895
66898
|
var description = "vitro software common ui ts";
|
|
66896
66899
|
var author = "";
|
|
66897
66900
|
var license = "MIT";
|