@datarailsshared/datarailsshared 1.4.126-rocket → 1.4.129-rocket

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.
@@ -4581,13 +4581,17 @@
4581
4581
  }
4582
4582
  return true;
4583
4583
  };
4584
- datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4585
- _this.setValueFromMoment(value);
4586
- });
4584
+ if (datePickerService && datePickerService.updatedQuarter$) {
4585
+ datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4586
+ _this.setValueFromMoment(value);
4587
+ });
4588
+ }
4587
4589
  }
4588
4590
  Object.defineProperty(DrDatePickerComponent.prototype, "format", {
4589
4591
  set: function (value) {
4590
- this.datePickerService.updateTimeframeAndFormat(value);
4592
+ if (this.datePickerService) {
4593
+ this.datePickerService.updateTimeframeAndFormat(value);
4594
+ }
4591
4595
  },
4592
4596
  enumerable: false,
4593
4597
  configurable: true
@@ -4619,6 +4623,14 @@
4619
4623
  enumerable: false,
4620
4624
  configurable: true
4621
4625
  });
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
+ };
4622
4634
  DrDatePickerComponent.prototype.ngAfterViewInit = function () {
4623
4635
  this.datePickerService.fiscalYearMonthsModifier = this.fiscalYearMonthsModifier;
4624
4636
  this.datePickerService.datePickerInstance = this.datePicker;