ps-toolkit-ui 0.0.164 → 0.0.168
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 +6 -8
- 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 +6 -6
- package/esm2015/lib/components/alert/alert.component.js +1 -2
- package/esm2015/lib/components/form/select/form.select.component.js +2 -2
- package/fesm2015/ps-toolkit-ui.js +6 -7
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1205,19 +1205,19 @@
|
|
|
1205
1205
|
else {
|
|
1206
1206
|
var m = '';
|
|
1207
1207
|
if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1208
|
-
m = 'FormBaseErrorExpired';
|
|
1208
|
+
m = form.l('FormBaseErrorExpired');
|
|
1209
1209
|
}
|
|
1210
1210
|
else if (res.status === exports.ResultStatusEnum.NotAccess) {
|
|
1211
|
-
m = 'FormBaseErrorPermission';
|
|
1211
|
+
m = form.l('FormBaseErrorPermission');
|
|
1212
1212
|
}
|
|
1213
1213
|
else {
|
|
1214
1214
|
if (typeof res.message === 'string') {
|
|
1215
|
-
|
|
1215
|
+
var am = res.message.split(':');
|
|
1216
|
+
m = form.l(am[0], am.length > 1 ? am.slice(1) : null);
|
|
1216
1217
|
}
|
|
1217
1218
|
else {
|
|
1218
1219
|
// tslint:disable-next-line:forin
|
|
1219
1220
|
for (var msg in res.message) {
|
|
1220
|
-
console.log(form.l(msg, res.message[msg]));
|
|
1221
1221
|
// noinspection JSUnfilteredForInLoop
|
|
1222
1222
|
m = form.l(msg, res.message[msg]);
|
|
1223
1223
|
}
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
1245
|
if (m) {
|
|
1246
|
-
HelperClass.addNotification(
|
|
1246
|
+
HelperClass.addNotification(m);
|
|
1247
1247
|
}
|
|
1248
1248
|
if (form.onFailed) {
|
|
1249
1249
|
form.onFailed(res.message);
|
|
@@ -5054,7 +5054,7 @@
|
|
|
5054
5054
|
this.setOptions();
|
|
5055
5055
|
this.cSearch = this.inp.search;
|
|
5056
5056
|
if (this.inp.onChange) {
|
|
5057
|
-
this.inp.onChange(this.inp);
|
|
5057
|
+
this.inp.onChange(this.inp, isEdit);
|
|
5058
5058
|
}
|
|
5059
5059
|
if (this.inp.rel) {
|
|
5060
5060
|
this.inp.rel.value = null;
|
|
@@ -6014,10 +6014,8 @@
|
|
|
6014
6014
|
];
|
|
6015
6015
|
}
|
|
6016
6016
|
AlertComponent.prototype.show = function (l, accept) {
|
|
6017
|
-
var _this = this;
|
|
6018
6017
|
this.alertLabel.value = l;
|
|
6019
6018
|
this.alert.onHide = function () {
|
|
6020
|
-
_this.alert.hide();
|
|
6021
6019
|
accept();
|
|
6022
6020
|
};
|
|
6023
6021
|
this.alert.show();
|