@datarailsshared/datarailsshared 1.4.36-bratans → 1.4.37-bratans

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.
@@ -3965,6 +3965,7 @@
3965
3965
  _this.dateAdapter = dateAdapter;
3966
3966
  _this.datePickerService = datePickerService;
3967
3967
  _this.isDashboardDatepicker = false;
3968
+ _this.canSelectTimeframe = true;
3968
3969
  _this.onChangeFormat = new i0.EventEmitter();
3969
3970
  _this.pagingSetup = (_b = {},
3970
3971
  _b[exports.TimeframeOption.YEAR] = function (forward) { return _this.pagingDateChange('addCalendarYears', 1, forward); },
@@ -3976,6 +3977,7 @@
3976
3977
  datePickerService.format$
3977
3978
  .pipe(operators.takeUntil(_this.destroyed$))
3978
3979
  .subscribe(function (value) {
3980
+ datePickerService.format$.getValue();
3979
3981
  _this.onChangeFormat.emit(datePickerService.normalizeValue(value));
3980
3982
  });
3981
3983
  return _this;
@@ -3988,6 +3990,16 @@
3988
3990
  configurable: true
3989
3991
  });
3990
3992
  ;
3993
+ Object.defineProperty(DrDatePickerWithTimeframeComponent.prototype, "dateFormatConfig", {
3994
+ set: function (value) {
3995
+ if (value) {
3996
+ this.datePickerService.formatConfig = Object.assign(Object.assign({}, this.datePickerService.formatConfig), value);
3997
+ this.cdr.markForCheck();
3998
+ }
3999
+ },
4000
+ enumerable: false,
4001
+ configurable: true
4002
+ });
3991
4003
  Object.defineProperty(DrDatePickerWithTimeframeComponent.prototype, "displayedFormattedValue", {
3992
4004
  get: function () {
3993
4005
  var _a;
@@ -4002,9 +4014,8 @@
4002
4014
  configurable: true
4003
4015
  });
4004
4016
  DrDatePickerWithTimeframeComponent.prototype.ngOnInit = function () {
4005
- if (this.dateFormatConfig) {
4006
- this.datePickerService.formatConfig = Object.assign(Object.assign({}, this.datePickerService.formatConfig), this.dateFormatConfig);
4007
- }
4017
+ this.datePickerService.isTimeframeSelectionEnabled = this.canSelectTimeframe;
4018
+ this.cdr.markForCheck();
4008
4019
  };
4009
4020
  DrDatePickerWithTimeframeComponent.prototype.pagingClicked = function (forward) {
4010
4021
  this.pagingSetup[this.datePickerService.timeframe] && this.pagingSetup[this.datePickerService.timeframe](forward);
@@ -4037,6 +4048,7 @@
4037
4048
  isDashboardClassDisplayed: [{ type: i0.HostBinding, args: ['class.dr-date-picker-on-dashboard',] }],
4038
4049
  isDashboardDatepicker: [{ type: i0.Input }],
4039
4050
  dateFormatConfig: [{ type: i0.Input }],
4051
+ canSelectTimeframe: [{ type: i0.Input }],
4040
4052
  onChangeFormat: [{ type: i0.Output }]
4041
4053
  };
4042
4054