@datarailsshared/datarailsshared 1.4.37-bratans → 1.4.39-dragons

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