intelicoreact 0.2.71 → 0.2.74
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.
|
@@ -206,7 +206,8 @@ function InputMask2() {
|
|
|
206
206
|
|
|
207
207
|
var disableErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
208
208
|
resetInnerValue();
|
|
209
|
-
|
|
209
|
+
var staticLength = maskPattern.length - maxEditableIndex;
|
|
210
|
+
if (value.length > maxEditableIndex) value = value.slice(0, value.length - staticLength);else if (maxEditableIndex !== ((_maskPattern = maskPattern) === null || _maskPattern === void 0 ? void 0 : _maskPattern.length) - 1) value = value.slice(0, maxEditableIndex);
|
|
210
211
|
var valueCharIndex = 0;
|
|
211
212
|
setInnerValue(function (innerValue) {
|
|
212
213
|
var newValue = innerValue.map(function (item, i) {
|
|
@@ -603,7 +604,7 @@ function InputMask2() {
|
|
|
603
604
|
'input-mask_value_item--digit': (0, _functions.isDigitMaskChar)(obj.maskChar),
|
|
604
605
|
'input-mask_value_item--letter': (0, _functions.isLetterMaskChar)(obj.maskChar),
|
|
605
606
|
'input-mask_value_item--spec': obj.isSpecialSymbol,
|
|
606
|
-
'input-mask_value_item--hidden':
|
|
607
|
+
'input-mask_value_item--hidden': i < inputValue.length
|
|
607
608
|
}),
|
|
608
609
|
ref: ref
|
|
609
610
|
}, !isFocused && hideMaskOnBlur && getClearInnerValueAsString().length === 0 ? _config.SPACE_CHAR : isSpecialSymbol ? maskChar : char === '' ? getPlaceholderCharByIndex(i) : char);
|
|
@@ -50,7 +50,7 @@ var UserContacts = function UserContacts(props) {
|
|
|
50
50
|
} : _ref$Lng,
|
|
51
51
|
className = _ref.className;
|
|
52
52
|
|
|
53
|
-
var isContact = isDisputeContact || isSalesContact || isAccountingContact;
|
|
53
|
+
var isContact = !!isDisputeContact || !!isSalesContact || !!isAccountingContact;
|
|
54
54
|
var typeContactCount = isSalesContact + isDisputeContact + isAccountingContact;
|
|
55
55
|
var mainRef = (0, _react.useRef)(null);
|
|
56
56
|
var emailRef = (0, _react.useRef)(null);
|