ps-toolkit-ui 1.10.69 → 1.10.72
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 -4
- 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/form.class.js +2 -2
- package/esm2015/lib/classes/table.class.js +2 -2
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +3 -3
- package/fesm2015/ps-toolkit-ui.js +4 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1780,7 +1780,7 @@
|
|
|
1780
1780
|
this.inputs.push(br);
|
|
1781
1781
|
}
|
|
1782
1782
|
else {
|
|
1783
|
-
save.class = 'save-form-btn h-30';
|
|
1783
|
+
save.class = save.class.replace('save-form-btn ', '').replace('h-25 ', 'h-30 ');
|
|
1784
1784
|
}
|
|
1785
1785
|
this.inputs.push(save);
|
|
1786
1786
|
if (clear) {
|
|
@@ -5987,11 +5987,11 @@
|
|
|
5987
5987
|
};
|
|
5988
5988
|
this.inp.isValid = function () {
|
|
5989
5989
|
_this.inp.error = null;
|
|
5990
|
-
if (_this.inp.required &&
|
|
5990
|
+
if (_this.inp.required && (_this.inp.value === '' || _this.inp.value === null)) {
|
|
5991
5991
|
_this.inp.error = exports.InputError.Required;
|
|
5992
5992
|
return false;
|
|
5993
5993
|
}
|
|
5994
|
-
if (!_this.inp.required &&
|
|
5994
|
+
if (!_this.inp.required && (_this.inp.value === '' || _this.inp.value === null)) {
|
|
5995
5995
|
return true;
|
|
5996
5996
|
}
|
|
5997
5997
|
if (_this.inp.type === exports.InputType.Mobile && !RegExp(/^(09\d{9})$/).test(_this.inp.value)) {
|
|
@@ -8306,7 +8306,7 @@
|
|
|
8306
8306
|
finally { if (e_3) throw e_3.error; }
|
|
8307
8307
|
}
|
|
8308
8308
|
if (this.form) {
|
|
8309
|
-
this.form.addButtons('Save', this.permissions.Type === exports.PermissionTypeEnum.Form ? '
|
|
8309
|
+
this.form.addButtons('Save', this.permissions.Type === exports.PermissionTypeEnum.Form ? 'green w-10 only-icon' : 'green', this.permissions.Type !== exports.PermissionTypeEnum.Form, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {
|
|
8310
8310
|
if (data.Id) {
|
|
8311
8311
|
var i = _this.rows.findIndex(function (x) { return x.Data.Id === data.Id; });
|
|
8312
8312
|
_this.rows[i].Data = data;
|