ps-toolkit-ui 1.12.49 → 1.12.52
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 -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/components/confirm/confirm.component.js +6 -2
- package/fesm2015/ps-toolkit-ui.js +5 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/confirm/confirm.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6780,8 +6780,9 @@
|
|
|
6780
6780
|
];
|
|
6781
6781
|
this.confirm.form.addButtons('Accept', 'blue', false);
|
|
6782
6782
|
};
|
|
6783
|
-
ConfirmComponent.prototype.show = function (l, url, data, accept) {
|
|
6783
|
+
ConfirmComponent.prototype.show = function (l, url, data, accept, failed) {
|
|
6784
6784
|
var _this = this;
|
|
6785
|
+
if (failed === void 0) { failed = null; }
|
|
6785
6786
|
this.confirmLabel.value = l;
|
|
6786
6787
|
this.confirm.form.url = url;
|
|
6787
6788
|
this.confirm.form.data = function () {
|
|
@@ -6791,6 +6792,10 @@
|
|
|
6791
6792
|
_this.confirm.hide();
|
|
6792
6793
|
accept(result);
|
|
6793
6794
|
};
|
|
6795
|
+
this.confirm.form.onFailed = function (result) {
|
|
6796
|
+
_this.confirm.hide();
|
|
6797
|
+
failed(result);
|
|
6798
|
+
};
|
|
6794
6799
|
this.confirm.show();
|
|
6795
6800
|
};
|
|
6796
6801
|
return ConfirmComponent;
|