@smartbit4all/ng-client 7.3.15 → 7.3.16
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.
|
@@ -10206,8 +10206,8 @@ class SmartformwidgetComponent {
|
|
|
10206
10206
|
}
|
|
10207
10207
|
onTimePickerBlur(event) {
|
|
10208
10208
|
event.stopPropagation();
|
|
10209
|
+
this.handleTimeChanged(this.form().controls[`${this.widgetInstance.key}-time`].value, true);
|
|
10209
10210
|
this.handleBlurEvent(this.widgetInstance);
|
|
10210
|
-
this.handleTimeChanged(this.form().controls[`${this.widgetInstance.key}-time`].value);
|
|
10211
10211
|
}
|
|
10212
10212
|
ngAfterViewInit() {
|
|
10213
10213
|
if (this.widgetInstance.type === SmartFormWidgetType.COMPONENT) {
|
|
@@ -10265,7 +10265,7 @@ class SmartformwidgetComponent {
|
|
|
10265
10265
|
this.widgetInstance.value = dateFormControl.value;
|
|
10266
10266
|
}
|
|
10267
10267
|
}
|
|
10268
|
-
handleTimeChanged(timeValue) {
|
|
10268
|
+
handleTimeChanged(timeValue, fromBlur = false) {
|
|
10269
10269
|
const isFocused = document.activeElement === this.timeInputChild?.nativeElement;
|
|
10270
10270
|
const dateFormControl = this.form().controls[this.widgetInstance.key];
|
|
10271
10271
|
const timeFormControl = this.form().controls[`${this.widgetInstance.key}-time`];
|
|
@@ -10280,9 +10280,9 @@ class SmartformwidgetComponent {
|
|
|
10280
10280
|
timeValue) {
|
|
10281
10281
|
dateFormControl.setValidators(Validators.required);
|
|
10282
10282
|
}
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10283
|
+
if (isFocused && !fromBlur) {
|
|
10284
|
+
return;
|
|
10285
|
+
}
|
|
10286
10286
|
if (this.hasJustChanged) {
|
|
10287
10287
|
this.hasJustChanged = false;
|
|
10288
10288
|
return;
|