ps-toolkit-ui 1.17.43 → 1.17.45
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 +7 -5
- 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 +1 -3
- package/esm2015/lib/classes/request.class.js +6 -2
- package/fesm2015/ps-toolkit-ui.js +6 -4
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/request.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1802,6 +1802,7 @@
|
|
|
1802
1802
|
return HelperClass;
|
|
1803
1803
|
}());
|
|
1804
1804
|
|
|
1805
|
+
exports.request = null;
|
|
1805
1806
|
var RequestClass = /** @class */ (function () {
|
|
1806
1807
|
function RequestClass(environment, l) {
|
|
1807
1808
|
if (environment === void 0) { environment = null; }
|
|
@@ -2152,14 +2153,17 @@
|
|
|
2152
2153
|
data: data,
|
|
2153
2154
|
headers: token == null ? {} : { Authorization: token }
|
|
2154
2155
|
};
|
|
2155
|
-
|
|
2156
|
-
|
|
2156
|
+
if (exports.request != null) {
|
|
2157
|
+
exports.request.abort();
|
|
2158
|
+
}
|
|
2159
|
+
exports.request = $$1.ajax(settings);
|
|
2160
|
+
exports.request.done(function (response) {
|
|
2157
2161
|
if (!_this.environment.production) {
|
|
2158
2162
|
console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #2f6054; color: white', response);
|
|
2159
2163
|
}
|
|
2160
2164
|
done(response);
|
|
2161
2165
|
});
|
|
2162
|
-
request.fail(function (response) {
|
|
2166
|
+
exports.request.fail(function (response) {
|
|
2163
2167
|
if (!_this.environment.production) {
|
|
2164
2168
|
console.log('%c' + exports.Method[method].toString() + ' : ' + url, 'background: #8c413a; color: white', response);
|
|
2165
2169
|
}
|
|
@@ -2688,7 +2692,6 @@
|
|
|
2688
2692
|
}
|
|
2689
2693
|
else if (_this.type === exports.InputType.Tree || _this.type === exports.InputType.TreeRadio) {
|
|
2690
2694
|
_this.rows = _this.getRows(result, null);
|
|
2691
|
-
console.log(_this.rows);
|
|
2692
2695
|
}
|
|
2693
2696
|
if (done) {
|
|
2694
2697
|
done();
|
|
@@ -2709,7 +2712,6 @@
|
|
|
2709
2712
|
}
|
|
2710
2713
|
else if (this.type === exports.InputType.Tree || this.type === exports.InputType.TreeRadio) {
|
|
2711
2714
|
this.rows = this.getRows(result_1, null);
|
|
2712
|
-
console.log(this.rows);
|
|
2713
2715
|
}
|
|
2714
2716
|
}
|
|
2715
2717
|
}
|