ps-toolkit-ui 1.6.96 → 1.6.99
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 +9 -3
- 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/request.class.js +7 -1
- package/esm2015/lib/components/form/finger/form.finger.component.js +2 -2
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +9 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1447,6 +1447,9 @@
|
|
|
1447
1447
|
if (res.status === exports.ResultStatusEnum.NotRegistered) {
|
|
1448
1448
|
m = 'FormBaseErrorNotRegistered';
|
|
1449
1449
|
}
|
|
1450
|
+
else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
|
|
1451
|
+
m = 'FormBaseErrorExpiredRegistered';
|
|
1452
|
+
}
|
|
1450
1453
|
else if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1451
1454
|
m = 'FormBaseErrorExpired';
|
|
1452
1455
|
}
|
|
@@ -1514,6 +1517,9 @@
|
|
|
1514
1517
|
if (res.status === exports.ResultStatusEnum.NotRegistered) {
|
|
1515
1518
|
m = 'FormBaseErrorNotRegistered';
|
|
1516
1519
|
}
|
|
1520
|
+
else if (res.status === exports.ResultStatusEnum.ExpiredRegistered) {
|
|
1521
|
+
m = 'FormBaseErrorExpiredRegistered';
|
|
1522
|
+
}
|
|
1517
1523
|
else if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1518
1524
|
m = 'FormBaseErrorExpired';
|
|
1519
1525
|
}
|
|
@@ -5980,7 +5986,7 @@
|
|
|
5980
5986
|
}
|
|
5981
5987
|
if (_this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
|
|
5982
5988
|
var v = _this.inp.value.toString().replace(/,/g, '');
|
|
5983
|
-
if (
|
|
5989
|
+
if (!/^[-]?\d+$/.test(v)) {
|
|
5984
5990
|
_this.inp.error = exports.InputError.Invalid;
|
|
5985
5991
|
return false;
|
|
5986
5992
|
}
|
|
@@ -6090,7 +6096,7 @@
|
|
|
6090
6096
|
try {
|
|
6091
6097
|
if (this.inp.value && this.inp.type === exports.InputType.Price) {
|
|
6092
6098
|
var v = this.inp.value.toString().replace(/,/g, '');
|
|
6093
|
-
if (
|
|
6099
|
+
if (/^[-]?\d+$/.test(v)) {
|
|
6094
6100
|
return parseInt(v, 10).toLocaleString();
|
|
6095
6101
|
}
|
|
6096
6102
|
return v;
|
|
@@ -6741,7 +6747,7 @@
|
|
|
6741
6747
|
}
|
|
6742
6748
|
else if (evt.data.startsWith('Error')) {
|
|
6743
6749
|
_this.inp.value[f] = null;
|
|
6744
|
-
HelperClass.addNotification(evt.data);
|
|
6750
|
+
HelperClass.addNotification(_this.inp.l(evt.data));
|
|
6745
6751
|
}
|
|
6746
6752
|
else {
|
|
6747
6753
|
var r = JSON.parse(evt.data);
|