monkey-style-guide 2.0.94 → 2.0.98
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/assets/data/country-codes.json +1466 -0
- package/bundles/monkey-style-guide.umd.js +6 -6
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/date-range-picker/date-range-picker.component.js +6 -5
- package/esm2015/lib/core/utils/utils.js +2 -2
- package/fesm2015/monkey-style-guide.js +6 -5
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/monkey-style-guide-2.0.98.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.94.tgz +0 -0
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
try {
|
|
704
704
|
var country = phoneUtil.getRegionCodeForCountryCode(internationalNumber);
|
|
705
705
|
var number = phoneUtil.parse(phone, country);
|
|
706
|
-
return phoneUtil.
|
|
706
|
+
return phoneUtil.isValidNumberForRegion(number, country);
|
|
707
707
|
}
|
|
708
708
|
catch (e) {
|
|
709
709
|
//not to do
|
|
@@ -2847,11 +2847,11 @@
|
|
|
2847
2847
|
this._daysArrFirst = this.createCalendar(this._dateFirst);
|
|
2848
2848
|
this._daysArrSecond = this.createCalendar(this._dateSecond);
|
|
2849
2849
|
};
|
|
2850
|
-
MonkeyDateRangePickerComponent.prototype.clearDates = function (
|
|
2851
|
-
if (
|
|
2850
|
+
MonkeyDateRangePickerComponent.prototype.clearDates = function () {
|
|
2851
|
+
if (this._disabled)
|
|
2852
|
+
return;
|
|
2852
2853
|
this._dateForm.setValue({ startDate: null, endDate: null });
|
|
2853
|
-
|
|
2854
|
-
this.writeValue(value);
|
|
2854
|
+
this.writeValue(this._dateForm.value);
|
|
2855
2855
|
};
|
|
2856
2856
|
MonkeyDateRangePickerComponent.prototype.navigateToToday = function () {
|
|
2857
2857
|
this._dateFirst = moment();
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
this.onModelTouched(this._dateForm.value);
|
|
2885
2885
|
}
|
|
2886
2886
|
else {
|
|
2887
|
-
this.clearDates(
|
|
2887
|
+
this.clearDates();
|
|
2888
2888
|
}
|
|
2889
2889
|
},
|
|
2890
2890
|
enumerable: false,
|