@vitrosoftware/common-ui-ts 1.1.124 → 1.1.126

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.
@@ -13884,6 +13884,10 @@ select {
13884
13884
  flex-direction: column;
13885
13885
  }
13886
13886
 
13887
+ #sidebarContainer #sidebarContent {
13888
+ max-height: 100%;
13889
+ }
13890
+
13887
13891
  #sidebarContainer[style*='display: block'] {
13888
13892
  display: flex !important;
13889
13893
  }
@@ -13,6 +13,10 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
+ #sidebarContainer #sidebarContent {
17
+ max-height: 100%;
18
+ }
19
+
16
20
  #sidebarContainer[style*='display: block'] {
17
21
  display: flex !important;
18
22
  }
package/dist/index.js CHANGED
@@ -62188,7 +62188,7 @@ var Viewer = function Viewer(props) {
62188
62188
  };
62189
62189
 
62190
62190
  var name = "@vitrosoftware/common-ui-ts";
62191
- var version$1 = "1.1.124";
62191
+ var version$1 = "1.1.126";
62192
62192
  var description = "vitro software common ui ts";
62193
62193
  var author = "";
62194
62194
  var license = "MIT";
@@ -62884,7 +62884,7 @@ var TYPE$1;
62884
62884
  })(TYPE$1 || (TYPE$1 = {}));
62885
62885
  var REGEXP;
62886
62886
  (function (REGEXP) {
62887
- REGEXP["FLOAT"] = "^[0-9]+[.,]?[0-9]{0,2}$";
62887
+ REGEXP["FLOAT"] = "^[0-9]+[.,]?[0-9]{0,precision}$";
62888
62888
  REGEXP["INT"] = "^[0-9]+$";
62889
62889
  })(REGEXP || (REGEXP = {}));
62890
62890
 
@@ -62895,6 +62895,7 @@ var NumberInputConstants = {
62895
62895
  get REGEXP () { return REGEXP; }
62896
62896
  };
62897
62897
 
62898
+ var PRECISION = 'precision';
62898
62899
  var NumberInput = React.forwardRef(function (props, ref) {
62899
62900
  var _useState = React.useState(null),
62900
62901
  inputValue = _useState[0],
@@ -62932,13 +62933,19 @@ var NumberInput = React.forwardRef(function (props, ref) {
62932
62933
  }
62933
62934
  }
62934
62935
  if (props.number === TYPE$1.FLOAT) {
62935
- if (new RegExp(REGEXP.FLOAT).test(value)) {
62936
+ if (testFloat(value)) {
62936
62937
  newValue = value.replace(secondLocaleSeparator, localeSeparator);
62937
62938
  }
62938
62939
  }
62939
62940
  setInputValue(newValue);
62940
62941
  return newValue;
62941
62942
  };
62943
+ var testFloat = function testFloat(value) {
62944
+ var _props$precision;
62945
+ var precision = ((_props$precision = props.precision) === null || _props$precision === void 0 ? void 0 : _props$precision.toString()) || CTRL.EMPTY;
62946
+ var regex = REGEXP.FLOAT.split(PRECISION).join(precision);
62947
+ return new RegExp(regex).test(value);
62948
+ };
62942
62949
  var parseValue = function parseValue(value) {
62943
62950
  if (value === CTRL.EMPTY) {
62944
62951
  return null;