@easydata/crud 1.4.7 → 1.4.9
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/dist/browser/easydata.css +0 -4
- package/dist/browser/easydata.css.map +1 -1
- package/dist/browser/easydata.js +15 -0
- package/dist/browser/easydata.js.map +1 -1
- package/dist/browser/easydata.min.css +1 -1
- package/dist/browser/easydata.min.js +1 -1
- package/dist/browser/easydata.min.js.map +1 -1
- package/dist/bundles/easydata.crud.js +15 -0
- package/dist/bundles/easydata.crud.js.map +1 -1
- package/dist/bundles/easydata.crud.min.js +1 -1
- package/dist/bundles/easydata.crud.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -1426,6 +1426,14 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1426
1426
|
this.defaultHeaders = {};
|
|
1427
1427
|
this.customPayload = undefined;
|
|
1428
1428
|
}
|
|
1429
|
+
Object.defineProperty(HttpClient.prototype, "responseBody", {
|
|
1430
|
+
/** Gets the response body for the latest request */
|
|
1431
|
+
get: function () {
|
|
1432
|
+
return this._responseBody;
|
|
1433
|
+
},
|
|
1434
|
+
enumerable: true,
|
|
1435
|
+
configurable: true
|
|
1436
|
+
});
|
|
1429
1437
|
HttpClient.prototype.get = function (url, options) {
|
|
1430
1438
|
return this.send(HttpMethod.Get, url, null, options);
|
|
1431
1439
|
};
|
|
@@ -1439,6 +1447,7 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1439
1447
|
return this.send(HttpMethod.Delete, url, data, options);
|
|
1440
1448
|
};
|
|
1441
1449
|
HttpClient.prototype.send = function (method, url, data, options) {
|
|
1450
|
+
var _this = this;
|
|
1442
1451
|
options = options || {};
|
|
1443
1452
|
var dataType = options.dataType || 'json';
|
|
1444
1453
|
var contentType = options.contentType || (dataType !== 'form-data')
|
|
@@ -1494,6 +1503,10 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1494
1503
|
: (responseContentType.indexOf('application/json') == 0
|
|
1495
1504
|
? JSON.parse(xhr.responseText)
|
|
1496
1505
|
: xhr.responseText);
|
|
1506
|
+
_this._responseBody = responseObj;
|
|
1507
|
+
if (_this.onResponse) {
|
|
1508
|
+
_this.onResponse(xhr);
|
|
1509
|
+
}
|
|
1497
1510
|
resolve(responseObj);
|
|
1498
1511
|
}
|
|
1499
1512
|
else {
|
|
@@ -1505,6 +1518,7 @@ var http_client_HttpClient = /** @class */ (function () {
|
|
|
1505
1518
|
var responseObj = (responseContentType.indexOf('application/json') == 0)
|
|
1506
1519
|
? JSON.parse(responseText)
|
|
1507
1520
|
: responseText;
|
|
1521
|
+
_this._responseBody = responseObj;
|
|
1508
1522
|
var message = responseObj.message ||
|
|
1509
1523
|
(status == 404
|
|
1510
1524
|
? "No such endpoint: " + url
|
|
@@ -5180,6 +5194,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
|
|
|
5180
5194
|
.toDOM();
|
|
5181
5195
|
if (this.rowsOnPagePromise) {
|
|
5182
5196
|
this.rowsOnPagePromise.then(function (count) {
|
|
5197
|
+
_this.footerDiv.innerHTML = '';
|
|
5183
5198
|
_this.footerPaginateDiv = _this.renderPageNavigator();
|
|
5184
5199
|
_this.footerDiv.appendChild(_this.footerPaginateDiv);
|
|
5185
5200
|
var pageInfoBlock = _this.renderPageInfoBlock(count);
|