@datarailsshared/datarailsshared 1.4.129-rocket → 1.4.131

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.
@@ -4169,7 +4169,6 @@
4169
4169
  return DrSharedUtils;
4170
4170
  }());
4171
4171
 
4172
- // @ts-ignore
4173
4172
  var moment$2 = require('moment');
4174
4173
  var DrDatePickerService = /** @class */ (function () {
4175
4174
  function DrDatePickerService() {
@@ -4339,9 +4338,11 @@
4339
4338
  DrDatePickerService.prototype.selectDateInCalendarMonthView = function (date, calender) {
4340
4339
  setTimeout(function () {
4341
4340
  var monthView = calender.monthView;
4342
- monthView._activeDate = date;
4343
- monthView._selected = date;
4344
- monthView._init();
4341
+ if (monthView) {
4342
+ monthView._activeDate = date;
4343
+ monthView._selected = date;
4344
+ monthView._init();
4345
+ }
4345
4346
  });
4346
4347
  };
4347
4348
  DrDatePickerService.prototype.resetPresetTag = function () {
@@ -4581,17 +4582,13 @@
4581
4582
  }
4582
4583
  return true;
4583
4584
  };
4584
- if (datePickerService && datePickerService.updatedQuarter$) {
4585
- datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4586
- _this.setValueFromMoment(value);
4587
- });
4588
- }
4585
+ datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4586
+ _this.setValueFromMoment(value);
4587
+ });
4589
4588
  }
4590
4589
  Object.defineProperty(DrDatePickerComponent.prototype, "format", {
4591
4590
  set: function (value) {
4592
- if (this.datePickerService) {
4593
- this.datePickerService.updateTimeframeAndFormat(value);
4594
- }
4591
+ this.datePickerService.updateTimeframeAndFormat(value);
4595
4592
  },
4596
4593
  enumerable: false,
4597
4594
  configurable: true
@@ -4623,14 +4620,6 @@
4623
4620
  enumerable: false,
4624
4621
  configurable: true
4625
4622
  });
4626
- DrDatePickerComponent.prototype.ngOnInit = function () {
4627
- var _this = this;
4628
- if (this.datePickerService && this.datePickerService.updatedQuarter$) {
4629
- this.datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4630
- _this.setValueFromMoment(value);
4631
- });
4632
- }
4633
- };
4634
4623
  DrDatePickerComponent.prototype.ngAfterViewInit = function () {
4635
4624
  this.datePickerService.fiscalYearMonthsModifier = this.fiscalYearMonthsModifier;
4636
4625
  this.datePickerService.datePickerInstance = this.datePicker;