@datarailsshared/datarailsshared 1.4.125 → 1.4.128-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.
@@ -4169,6 +4169,7 @@
4169
4169
  return DrSharedUtils;
4170
4170
  }());
4171
4171
 
4172
+ // @ts-ignore
4172
4173
  var moment$2 = require('moment');
4173
4174
  var DrDatePickerService = /** @class */ (function () {
4174
4175
  function DrDatePickerService() {
@@ -4580,9 +4581,11 @@
4580
4581
  }
4581
4582
  return true;
4582
4583
  };
4583
- datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4584
- _this.setValueFromMoment(value);
4585
- });
4584
+ if (datePickerService && datePickerService.updatedQuarter$) {
4585
+ datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4586
+ _this.setValueFromMoment(value);
4587
+ });
4588
+ }
4586
4589
  }
4587
4590
  Object.defineProperty(DrDatePickerComponent.prototype, "format", {
4588
4591
  set: function (value) {
@@ -4618,6 +4621,14 @@
4618
4621
  enumerable: false,
4619
4622
  configurable: true
4620
4623
  });
4624
+ DrDatePickerComponent.prototype.ngOnInit = function () {
4625
+ var _this = this;
4626
+ if (this.datePickerService && this.datePickerService.updatedQuarter$) {
4627
+ this.datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
4628
+ _this.setValueFromMoment(value);
4629
+ });
4630
+ }
4631
+ };
4621
4632
  DrDatePickerComponent.prototype.ngAfterViewInit = function () {
4622
4633
  this.datePickerService.fiscalYearMonthsModifier = this.fiscalYearMonthsModifier;
4623
4634
  this.datePickerService.datePickerInstance = this.datePicker;