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.
@@ -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.isPossibleNumber(number);
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 (force) {
2851
- if (force === void 0) { force = false; }
2850
+ MonkeyDateRangePickerComponent.prototype.clearDates = function () {
2851
+ if (this._disabled)
2852
+ return;
2852
2853
  this._dateForm.setValue({ startDate: null, endDate: null });
2853
- var value = !force ? this._dateForm.value : null;
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(true);
2887
+ this.clearDates();
2888
2888
  }
2889
2889
  },
2890
2890
  enumerable: false,