intelicoreact 0.3.47 → 0.3.49
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.
|
@@ -377,15 +377,21 @@ function InputMask2() {
|
|
|
377
377
|
};
|
|
378
378
|
|
|
379
379
|
var getClearInnerValueAsString = function getClearInnerValueAsString() {
|
|
380
|
-
|
|
381
|
-
var char = _ref9.char,
|
|
382
|
-
maskChar = _ref9.maskChar,
|
|
383
|
-
isSpecialSymbol = _ref9.isSpecialSymbol,
|
|
384
|
-
isCharSymbol = _ref9.isCharSymbol;
|
|
385
|
-
if (char !== maskChar && char !== '' || !isSpecialSymbol || isCharSymbol) result += char; // || isCharSymbol
|
|
380
|
+
var _getInputValue, _getInputValue$split;
|
|
386
381
|
|
|
387
|
-
|
|
388
|
-
|
|
382
|
+
var symbolsInfo = innerValue === null || innerValue === void 0 ? void 0 : innerValue.map(function (_ref9) {
|
|
383
|
+
var isSpecialSymbol = _ref9.isSpecialSymbol,
|
|
384
|
+
isCharSymbol = _ref9.isCharSymbol;
|
|
385
|
+
return {
|
|
386
|
+
isSpecialSymbol: isSpecialSymbol,
|
|
387
|
+
isCharSymbol: isCharSymbol
|
|
388
|
+
};
|
|
389
|
+
});
|
|
390
|
+
var clearValue = (_getInputValue = getInputValue()) === null || _getInputValue === void 0 ? void 0 : (_getInputValue$split = _getInputValue.split('')) === null || _getInputValue$split === void 0 ? void 0 : _getInputValue$split.reduce(function (resultStr, symbol, i) {
|
|
391
|
+
if (!symbolsInfo[i].isSpecialSymbol || symbolsInfo[i].isCharSymbol) resultStr += symbol;
|
|
392
|
+
return resultStr;
|
|
393
|
+
}, "");
|
|
394
|
+
return clearValue;
|
|
389
395
|
};
|
|
390
396
|
|
|
391
397
|
var getInputValue = function getInputValue() {
|