@wavemaker/app-ng-runtime 11.5.0-next.26249 → 11.5.0-next.26250
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/build-task/bundles/index.umd.js +9 -3
- app-ng-runtime/build-task/esm2020/data/form/form.build.mjs +10 -4
- app-ng-runtime/build-task/fesm2015/index.mjs +9 -3
- app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs +9 -3
- app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +2 -9
- app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +3 -10
- app-ng-runtime/components/input/default/fesm2015/index.mjs +2 -9
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +2 -9
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -1422,16 +1422,9 @@ class NumberLocale extends BaseInput {
|
|
|
1422
1422
|
* @returns {number}
|
|
1423
1423
|
*/
|
|
1424
1424
|
parseNumber(val) {
|
|
1425
|
-
// WMS-22179: split number based on the decimal
|
|
1426
|
-
let seperator;
|
|
1427
|
-
if (val.indexOf(this.DECIMAL) > -1) {
|
|
1428
|
-
seperator = this.DECIMAL;
|
|
1429
|
-
}
|
|
1430
|
-
else {
|
|
1431
|
-
seperator = '.';
|
|
1432
|
-
}
|
|
1425
|
+
// WMS-22179: split number based on the decimal separator in the val
|
|
1433
1426
|
// splits string into two parts. decimal and number.
|
|
1434
|
-
const parts = val.split(
|
|
1427
|
+
const parts = val.split(this.inputmode === INPUTMODE.FINANCIAL ? (val.indexOf(this.DECIMAL) > -1 ? this.DECIMAL : '.') : this.DECIMAL);
|
|
1435
1428
|
if (!parts.length) {
|
|
1436
1429
|
return null;
|
|
1437
1430
|
}
|