ng-tailwind 2.25.345 → 2.25.346
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.
|
@@ -2169,7 +2169,8 @@
|
|
|
2169
2169
|
if (nativeValue && ngModelValue != this.value) {
|
|
2170
2170
|
this.value = ngModelValue;
|
|
2171
2171
|
}
|
|
2172
|
-
if (this.mask ==
|
|
2172
|
+
if ((this.mask == exports.NgtInputMaskEnum.CELLPHONE || this.mask == exports.NgtInputMaskEnum.INTERNATIONAL_PHONE)
|
|
2173
|
+
&& this.allowPhoneValidation && this.value) {
|
|
2173
2174
|
this.validatePhone();
|
|
2174
2175
|
}
|
|
2175
2176
|
}
|
|
@@ -2357,7 +2358,7 @@
|
|
|
2357
2358
|
keepStatic: true
|
|
2358
2359
|
},
|
|
2359
2360
|
_a[exports.NgtInputMaskEnum.INTERNATIONAL_PHONE] = {
|
|
2360
|
-
mask: ['+99 (99) 9999-9999', '+99 (99) 99999-9999'],
|
|
2361
|
+
mask: ['+99 (99) 9999-9999', '+99 (99) 99999-9999', '+999 (99) 9999-9999', '+999 (99) 99999-9999'],
|
|
2361
2362
|
keepStatic: true
|
|
2362
2363
|
},
|
|
2363
2364
|
_a[exports.NgtInputMaskEnum.PLATE] = {
|
|
@@ -2657,12 +2658,15 @@
|
|
|
2657
2658
|
.replace('-', '')
|
|
2658
2659
|
.replace('/', '');
|
|
2659
2660
|
}
|
|
2660
|
-
else if (this.mask ==
|
|
2661
|
+
else if (this.mask == exports.NgtInputMaskEnum.CELLPHONE
|
|
2662
|
+
|| this.mask == exports.NgtInputMaskEnum.INTERNATIONAL_PHONE) {
|
|
2661
2663
|
value = (value + "")
|
|
2662
2664
|
.replace('(', '')
|
|
2663
2665
|
.replace(')', '')
|
|
2664
2666
|
.replace(' ', '')
|
|
2665
|
-
.replace('
|
|
2667
|
+
.replace(' ', '')
|
|
2668
|
+
.replace('-', '')
|
|
2669
|
+
.replace('+', '');
|
|
2666
2670
|
}
|
|
2667
2671
|
return value;
|
|
2668
2672
|
};
|