intelicoreact 2.0.6 → 2.0.7
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/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.interface.d.ts +23 -3
- package/dist/form.cjs +8 -7
- package/dist/form.cjs.map +2 -2
- package/dist/form.js +8 -7
- package/dist/form.js.map +2 -2
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +8 -7
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2999,6 +2999,7 @@ function useInputValueProcessing({
|
|
|
2999
2999
|
const { trimStart, trimEnd, characters } = blurTrim || {};
|
|
3000
3000
|
const isUseBitDepthPoints = Boolean(onlyNumbers) && isPriceInput;
|
|
3001
3001
|
const isPseudoPasswordMode = type === "pseudoPassword";
|
|
3002
|
+
const bitDepthSettings = typeof onlyNumbers === "object" && onlyNumbers !== null ? onlyNumbers : void 0;
|
|
3002
3003
|
const correctMinMax = (value2, correctionType) => {
|
|
3003
3004
|
if (!onlyNumbers) return value2;
|
|
3004
3005
|
const { min, max, isOnlyPositive, isNoEmptyValues } = getIsOnlyAnObject2(
|
|
@@ -3010,14 +3011,14 @@ function useInputValueProcessing({
|
|
|
3010
3011
|
let inputValue = getSafelyValue(value2);
|
|
3011
3012
|
const checkMin = () => {
|
|
3012
3013
|
if (!inputValue && isNoEmptyValues) {
|
|
3013
|
-
inputValue = minimum !== void 0 ? minimum : "0";
|
|
3014
|
-
} else if (inputValue && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol ?? "") + inputValue)) {
|
|
3015
|
-
inputValue = minimum;
|
|
3014
|
+
inputValue = minimum !== void 0 ? String(minimum) : "0";
|
|
3015
|
+
} else if (inputValue && minimum !== void 0 && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol ?? "") + inputValue)) {
|
|
3016
|
+
inputValue = String(minimum);
|
|
3016
3017
|
}
|
|
3017
3018
|
};
|
|
3018
3019
|
const checkMax = () => {
|
|
3019
|
-
if (!Number.isNaN(Number(maximum)) && Number(maximum) < Number((minusSymbol ?? "") + inputValue)) {
|
|
3020
|
-
inputValue = maximum;
|
|
3020
|
+
if (maximum !== void 0 && !Number.isNaN(Number(maximum)) && Number(maximum) < Number((minusSymbol ?? "") + inputValue)) {
|
|
3021
|
+
inputValue = String(maximum);
|
|
3021
3022
|
minusSymbol = null;
|
|
3022
3023
|
}
|
|
3023
3024
|
};
|
|
@@ -3026,7 +3027,7 @@ function useInputValueProcessing({
|
|
|
3026
3027
|
minusSymbol = "-";
|
|
3027
3028
|
inputValue = inputValue.slice(1);
|
|
3028
3029
|
}
|
|
3029
|
-
inputValue = filterNumeric(inputValue,
|
|
3030
|
+
inputValue = filterNumeric(inputValue, bitDepthSettings);
|
|
3030
3031
|
switch (correctionType) {
|
|
3031
3032
|
case "min":
|
|
3032
3033
|
checkMin();
|
|
@@ -3124,7 +3125,7 @@ function useInputValueProcessing({
|
|
|
3124
3125
|
if (typeof onlyNumbers === "object" && onlyNumbers?.isNoEmptyValues)
|
|
3125
3126
|
safelyValue = correctMinMax(safelyValue, "min");
|
|
3126
3127
|
if (isUseBitDepthPoints)
|
|
3127
|
-
safelyValue = formatToAddBitDepthPoints(safelyValue,
|
|
3128
|
+
safelyValue = formatToAddBitDepthPoints(safelyValue, bitDepthSettings);
|
|
3128
3129
|
return safelyValue;
|
|
3129
3130
|
})();
|
|
3130
3131
|
return {
|