@indigina/ui-kit 1.1.599 → 1.1.600
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.
|
@@ -4551,13 +4551,13 @@ class KitDaterangeComponent {
|
|
|
4551
4551
|
this.popup.activate();
|
|
4552
4552
|
}
|
|
4553
4553
|
onStartDateChange(value) {
|
|
4554
|
-
this.defaultStartDate.set(value);
|
|
4554
|
+
this.defaultStartDate.set(value ?? undefined);
|
|
4555
4555
|
this.startDateControl().patchValue(value);
|
|
4556
4556
|
this.startDateControl().markAsDirty();
|
|
4557
4557
|
this.startDateChanged.emit(value);
|
|
4558
4558
|
}
|
|
4559
4559
|
onEndDateChange(value) {
|
|
4560
|
-
this.defaultEndDate.set(value);
|
|
4560
|
+
this.defaultEndDate.set(value ?? undefined);
|
|
4561
4561
|
this.endDateControl().patchValue(value);
|
|
4562
4562
|
this.endDateControl().markAsDirty();
|
|
4563
4563
|
this.endDateChanged.emit(value);
|
|
@@ -5502,7 +5502,6 @@ class KitTimepickerComponent {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
writeValue(value) {
|
|
5504
5504
|
this.defaultValue.set(value);
|
|
5505
|
-
this.onChange(value);
|
|
5506
5505
|
}
|
|
5507
5506
|
registerOnChange(fn) {
|
|
5508
5507
|
this.onChange = fn;
|
|
@@ -6570,7 +6569,7 @@ class KitDatepickerComponent {
|
|
|
6570
6569
|
}
|
|
6571
6570
|
}
|
|
6572
6571
|
onValueChange(value) {
|
|
6573
|
-
this.defaultDate.set(value);
|
|
6572
|
+
this.defaultDate.set(value ?? undefined);
|
|
6574
6573
|
this.changed.emit(value);
|
|
6575
6574
|
this.onChange(value);
|
|
6576
6575
|
}
|
|
@@ -15361,11 +15360,19 @@ class KitFilterDateComponent {
|
|
|
15361
15360
|
}
|
|
15362
15361
|
onFromDateChange(date) {
|
|
15363
15362
|
this.dateRange.set(undefined);
|
|
15363
|
+
if (!date) {
|
|
15364
|
+
this.startDate.set(undefined);
|
|
15365
|
+
return;
|
|
15366
|
+
}
|
|
15364
15367
|
const startDate = this.useLocalTimeZone() ? date : kitNormalizeDateToUtc(date, this.timeZone());
|
|
15365
15368
|
this.startDate.set(startDate);
|
|
15366
15369
|
}
|
|
15367
15370
|
onToDateChange(date) {
|
|
15368
15371
|
this.dateRange.set(undefined);
|
|
15372
|
+
if (!date) {
|
|
15373
|
+
this.endDate.set(undefined);
|
|
15374
|
+
return;
|
|
15375
|
+
}
|
|
15369
15376
|
const isEndOfDay = !this.dateFilterConstraint();
|
|
15370
15377
|
const localDate = isEndOfDay ? endOfDay(date) : date;
|
|
15371
15378
|
const endDate = this.useLocalTimeZone() ? localDate : kitNormalizeDateToUtc(date, this.timeZone(), isEndOfDay);
|