monkey-style-guide 2.0.210 → 2.0.211

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.
@@ -5541,7 +5541,12 @@ class MonkeyDateRangePickerComponent {
5541
5541
  this._dateForm.setValue({ startDate: value, endDate: null });
5542
5542
  }
5543
5543
  else {
5544
- this._dateForm.setValue({ startDate: this._dateForm.value.startDate, endDate: value });
5544
+ if (moment$2.default(value).isBefore(this._dateForm.value.startDate)) {
5545
+ this._dateForm.setValue({ startDate: value, endDate: this._dateForm.value.startDate });
5546
+ }
5547
+ else {
5548
+ this._dateForm.setValue({ startDate: this._dateForm.value.startDate, endDate: value });
5549
+ }
5545
5550
  }
5546
5551
  this.cdr.detectChanges();
5547
5552
  this.onModelChange(this._dateForm.value);
@@ -6224,7 +6229,12 @@ class MonkeyDateRangePickerV2Component {
6224
6229
  this._dateForm.setValue({ startDate: value, endDate: null });
6225
6230
  }
6226
6231
  else {
6227
- this._dateForm.setValue({ startDate: this._dateForm.value.startDate, endDate: value });
6232
+ if (moment$1.default(value).isBefore(this._dateForm.value.startDate)) {
6233
+ this._dateForm.setValue({ startDate: value, endDate: this._dateForm.value.startDate });
6234
+ }
6235
+ else {
6236
+ this._dateForm.setValue({ startDate: this._dateForm.value.startDate, endDate: value });
6237
+ }
6228
6238
  }
6229
6239
  this.cdr.detectChanges();
6230
6240
  this.onModelChange(this._dateForm.value);