@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
|
@@ -2418,10 +2418,10 @@ class AnnaFilterService {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
2420
|
isHourValueInvalid(hr) {
|
|
2421
|
-
return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12);
|
|
2421
|
+
return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes('.'));
|
|
2422
2422
|
}
|
|
2423
2423
|
isMinuteValueInvalid(min) {
|
|
2424
|
-
return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59);
|
|
2424
|
+
return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59 || min.includes('.'));
|
|
2425
2425
|
}
|
|
2426
2426
|
//=============================================================SORT======================================================================//
|
|
2427
2427
|
updateSortMap(tempSortOrder, tableData, isLurAndCsrComponent) {
|
|
@@ -5332,12 +5332,10 @@ class DigitOnlyDirective {
|
|
|
5332
5332
|
return this.inputElement.value.substring((_a = this.inputElement.selectionStart) !== null && _a !== void 0 ? _a : 0, (_b = this.inputElement.selectionEnd) !== null && _b !== void 0 ? _b : 0);
|
|
5333
5333
|
}
|
|
5334
5334
|
forecastValue(key) {
|
|
5335
|
-
|
|
5336
|
-
const
|
|
5335
|
+
var _a, _b;
|
|
5336
|
+
const selectionStart = (_a = this.inputElement.selectionStart) !== null && _a !== void 0 ? _a : 0;
|
|
5337
|
+
const selectionEnd = (_b = this.inputElement.selectionEnd) !== null && _b !== void 0 ? _b : 0;
|
|
5337
5338
|
const oldValue = this.inputElement.value;
|
|
5338
|
-
if (selectionStart == null && selectionEnd == null) {
|
|
5339
|
-
return (oldValue + key);
|
|
5340
|
-
}
|
|
5341
5339
|
return (oldValue.substring(0, selectionStart) +
|
|
5342
5340
|
key +
|
|
5343
5341
|
oldValue.substring(selectionEnd));
|