@wavemaker/app-ng-runtime 11.5.0-next.26247 → 11.5.0-next.26249
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.
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +7 -4
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +8 -5
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +7 -4
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +7 -4
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -1313,14 +1313,17 @@ class BaseDateTimeComponent extends BaseFormCustomComponent {
|
|
|
1313
1313
|
this.invalidDateTimeFormat = false;
|
|
1314
1314
|
this.invokeOnChange(this.datavalue, undefined, false);
|
|
1315
1315
|
}
|
|
1316
|
-
updateTimeValue(value, fieldName) {
|
|
1316
|
+
updateTimeValue(el, value, fieldName) {
|
|
1317
|
+
let minEl = el.find('input[aria-label="minutes"]');
|
|
1318
|
+
let secEl = el.find('input[aria-label="seconds"]');
|
|
1319
|
+
minEl.value = secEl.value = '00';
|
|
1317
1320
|
if (value.length < 2) {
|
|
1318
1321
|
setTimeout(() => {
|
|
1319
|
-
fieldName === 'minutes' ? this.bsTimePicker.updateMinutes(
|
|
1322
|
+
fieldName === 'minutes' ? this.bsTimePicker.updateMinutes(minEl) : this.bsTimePicker.updateSeconds(secEl);
|
|
1320
1323
|
}, 500);
|
|
1321
1324
|
}
|
|
1322
1325
|
else {
|
|
1323
|
-
fieldName === 'minutes' ? this.bsTimePicker.updateMinutes(
|
|
1326
|
+
fieldName === 'minutes' ? this.bsTimePicker.updateMinutes(minEl) : this.bsTimePicker.updateSeconds(secEl);
|
|
1324
1327
|
}
|
|
1325
1328
|
}
|
|
1326
1329
|
/**
|
|
@@ -1335,7 +1338,7 @@ class BaseDateTimeComponent extends BaseFormCustomComponent {
|
|
|
1335
1338
|
_.forEach(inputFields, (field, index) => {
|
|
1336
1339
|
if (evt.target !== field && field.value === '' && hourValue.length) {
|
|
1337
1340
|
const fieldName = index === 1 ? 'minutes' : 'seconds';
|
|
1338
|
-
this.updateTimeValue(hourValue, fieldName);
|
|
1341
|
+
this.updateTimeValue($el, hourValue, fieldName);
|
|
1339
1342
|
}
|
|
1340
1343
|
});
|
|
1341
1344
|
});
|