@vitrosoftware/common-ui-ts 1.1.178 → 1.1.180
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
|
@@ -63732,7 +63732,7 @@ var Viewer = function Viewer(props) {
|
|
|
63732
63732
|
};
|
|
63733
63733
|
|
|
63734
63734
|
var name = "@vitrosoftware/common-ui-ts";
|
|
63735
|
-
var version$1 = "1.1.
|
|
63735
|
+
var version$1 = "1.1.180";
|
|
63736
63736
|
var description = "vitro software common ui ts";
|
|
63737
63737
|
var author = "";
|
|
63738
63738
|
var license = "MIT";
|
|
@@ -64522,7 +64522,6 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
64522
64522
|
return inputValue;
|
|
64523
64523
|
};
|
|
64524
64524
|
var updateInputValue = function updateInputValue(value) {
|
|
64525
|
-
setInputValue(value);
|
|
64526
64525
|
if (inputRef && inputRef.current) {
|
|
64527
64526
|
inputRef.current.setValue(value);
|
|
64528
64527
|
}
|
|
@@ -64532,6 +64531,7 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
64532
64531
|
var newVal = e.target.value === CTRL.EMPTY ? null : +e.target.value;
|
|
64533
64532
|
if (inputValue !== CTRL.EMPTY && +inputValue < minValue || inputValue === CTRL.DASH) {
|
|
64534
64533
|
var val = props.isAllowedNegative ? 0 : minValue;
|
|
64534
|
+
setInputValue(val.toString());
|
|
64535
64535
|
updateInputValue(val.toString());
|
|
64536
64536
|
newVal = val;
|
|
64537
64537
|
}
|
|
@@ -64540,6 +64540,9 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
64540
64540
|
}
|
|
64541
64541
|
};
|
|
64542
64542
|
var isValidSymbol = function isValidSymbol(value) {
|
|
64543
|
+
if (value === CTRL.EMPTY) {
|
|
64544
|
+
return true;
|
|
64545
|
+
}
|
|
64543
64546
|
var isNegative = props.isAllowedNegative && value === CTRL.DASH;
|
|
64544
64547
|
var isFloatDot = props.number === TYPE$1.FLOAT && value.indexOf(CTRL.DOT) === value.length - 1 && value.length > 1;
|
|
64545
64548
|
if (isNegative || isFloatDot) {
|
|
@@ -67206,8 +67209,8 @@ var Criterion = function Criterion(props) {
|
|
|
67206
67209
|
setOperator(_operator);
|
|
67207
67210
|
value.operator = _operator.type;
|
|
67208
67211
|
}
|
|
67209
|
-
value.valueList = componentProps.value ? componentProps.value.valueList : [];
|
|
67210
67212
|
}
|
|
67213
|
+
value.valueList = componentProps.value ? componentProps.value.valueList : [];
|
|
67211
67214
|
}, [props.content]);
|
|
67212
67215
|
var onOperatorClick = function onOperatorClick(operator) {
|
|
67213
67216
|
setOperator(operator);
|