@c10t/nice-component-library 0.0.32 → 0.0.33
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.
|
@@ -5982,6 +5982,8 @@ class CvaRangeDatePickerComponent {
|
|
|
5982
5982
|
}
|
|
5983
5983
|
set fromDateValue(val) {
|
|
5984
5984
|
this.value.fromDate = val;
|
|
5985
|
+
this.value.toDate = '';
|
|
5986
|
+
this.writeValue(this.value);
|
|
5985
5987
|
}
|
|
5986
5988
|
get toDateValue() {
|
|
5987
5989
|
if (this.value.toDate instanceof Date) {
|
|
@@ -6012,22 +6014,22 @@ class CvaRangeDatePickerComponent {
|
|
|
6012
6014
|
this.propagateChange(fn);
|
|
6013
6015
|
}
|
|
6014
6016
|
writeValue(obj) {
|
|
6017
|
+
console.log('writeValue', obj);
|
|
6015
6018
|
if (!obj) {
|
|
6016
6019
|
obj = new RangeDatePickerModel();
|
|
6017
6020
|
}
|
|
6018
6021
|
if (!this.defaultFromDate && this.value.fromDate instanceof Date) {
|
|
6019
6022
|
this.defaultFromDate = this.prepareWriteValueData(this.value.fromDate);
|
|
6020
6023
|
}
|
|
6021
|
-
// this.value = obj;
|
|
6022
6024
|
this.value.fromDate = this.prepareWriteValueData(obj.fromDate);
|
|
6023
6025
|
this.value.toDate = this.prepareWriteValueData(obj.toDate);
|
|
6024
6026
|
this.createTitle();
|
|
6025
|
-
this.propagateChange(this.value);
|
|
6026
|
-
this.callValidator();
|
|
6027
|
-
this.onChange.emit(this.value);
|
|
6028
6027
|
if (this.defaultFromDate && this.getDisabled(this.disabledFromDate)) {
|
|
6029
6028
|
this.value.fromDate = new Date(this.defaultFromDate.replace('Z', ''));
|
|
6030
6029
|
}
|
|
6030
|
+
this.propagateChange(this.value);
|
|
6031
|
+
this.callValidator();
|
|
6032
|
+
this.onChange.emit(this.value);
|
|
6031
6033
|
}
|
|
6032
6034
|
getDisabled(disabled) {
|
|
6033
6035
|
return typeof disabled === 'function' ? disabled() : disabled;
|