@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.
- package/bundles/datarailsshared-datarailsshared.umd.js +3 -15
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.39-dragons.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +4 -12
- package/fesm2015/datarailsshared-datarailsshared.js +3 -11
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.d.ts +1 -2
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.37-bratans.tgz +0 -0
|
@@ -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.
|
|
4018
|
-
|
|
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
|
|