ps-toolkit-ui 1.7.38 → 1.7.41
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/bundles/ps-toolkit-ui.umd.js +4 -1
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/helper.class.js +4 -1
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +4 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
- package/src/assets/styles/base.css +220 -220
|
@@ -1268,6 +1268,9 @@
|
|
|
1268
1268
|
catch (e) {
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
|
+
HelperClass.getRandomInt = function (min, max) {
|
|
1272
|
+
return Math.floor(Math.random() * (max - min)) + min;
|
|
1273
|
+
};
|
|
1271
1274
|
return HelperClass;
|
|
1272
1275
|
}());
|
|
1273
1276
|
|
|
@@ -5921,7 +5924,7 @@
|
|
|
5921
5924
|
}
|
|
5922
5925
|
if (_this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
|
|
5923
5926
|
var v = _this.inp.value.toString().replace(/,/g, '');
|
|
5924
|
-
if (
|
|
5927
|
+
if (!/^-?\d+([.,]\d+)?$/.test(v)) {
|
|
5925
5928
|
_this.inp.error = exports.InputError.Invalid;
|
|
5926
5929
|
return false;
|
|
5927
5930
|
}
|