@annalib/anna-core 20.0.7 → 20.0.8
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/esm2020/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +3 -6
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +3 -3
- package/fesm2015/annalib-anna-core.mjs +5 -7
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +4 -7
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2407,10 +2407,10 @@ class AnnaFilterService {
|
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
2409
2409
|
isHourValueInvalid(hr) {
|
|
2410
|
-
return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12);
|
|
2410
|
+
return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes('.'));
|
|
2411
2411
|
}
|
|
2412
2412
|
isMinuteValueInvalid(min) {
|
|
2413
|
-
return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59);
|
|
2413
|
+
return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59 || min.includes('.'));
|
|
2414
2414
|
}
|
|
2415
2415
|
//=============================================================SORT======================================================================//
|
|
2416
2416
|
updateSortMap(tempSortOrder, tableData, isLurAndCsrComponent) {
|
|
@@ -5324,12 +5324,9 @@ class DigitOnlyDirective {
|
|
|
5324
5324
|
return this.inputElement.value.substring(this.inputElement.selectionStart ?? 0, this.inputElement.selectionEnd ?? 0);
|
|
5325
5325
|
}
|
|
5326
5326
|
forecastValue(key) {
|
|
5327
|
-
const selectionStart = this.inputElement.selectionStart;
|
|
5328
|
-
const selectionEnd = this.inputElement.selectionEnd;
|
|
5327
|
+
const selectionStart = this.inputElement.selectionStart ?? 0;
|
|
5328
|
+
const selectionEnd = this.inputElement.selectionEnd ?? 0;
|
|
5329
5329
|
const oldValue = this.inputElement.value;
|
|
5330
|
-
if (selectionStart == null && selectionEnd == null) {
|
|
5331
|
-
return (oldValue + key);
|
|
5332
|
-
}
|
|
5333
5330
|
return (oldValue.substring(0, selectionStart) +
|
|
5334
5331
|
key +
|
|
5335
5332
|
oldValue.substring(selectionEnd));
|