@indigina/kendo 1.0.145-beta → 1.0.149-beta
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/indigina-kendo.umd.js +29 -28
- package/bundles/indigina-kendo.umd.js.map +1 -1
- package/bundles/indigina-kendo.umd.min.js +1 -1
- package/bundles/indigina-kendo.umd.min.js.map +1 -1
- package/esm2015/lib/angular/services/http.service.js +7 -6
- package/fesm2015/indigina-kendo.js +26 -25
- package/fesm2015/indigina-kendo.js.map +1 -1
- package/indigina-kendo.metadata.json +1 -1
- package/lib/angular/services/http.service.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1560,33 +1560,6 @@
|
|
|
1560
1560
|
{ name: 'DELETE', id: 'DELETE' },
|
|
1561
1561
|
];
|
|
1562
1562
|
|
|
1563
|
-
var AppToastrService = /** @class */ (function () {
|
|
1564
|
-
function AppToastrService(toastr, appSettings) {
|
|
1565
|
-
this.toastr = toastr;
|
|
1566
|
-
this.appSettings = appSettings;
|
|
1567
|
-
this.timeout = this.appSettings.toastrTimeOut;
|
|
1568
|
-
}
|
|
1569
|
-
AppToastrService.prototype.showError = function (message, title) {
|
|
1570
|
-
if (title === void 0) { title = 'Error'; }
|
|
1571
|
-
this.toastr.error(message, title, { timeOut: this.timeout });
|
|
1572
|
-
};
|
|
1573
|
-
AppToastrService.prototype.showSuccess = function (message, title) {
|
|
1574
|
-
if (title === void 0) { title = ''; }
|
|
1575
|
-
this.toastr.success(message, title, { timeOut: this.timeout });
|
|
1576
|
-
};
|
|
1577
|
-
return AppToastrService;
|
|
1578
|
-
}());
|
|
1579
|
-
AppToastrService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppToastrService_Factory() { return new AppToastrService(i0__namespace.ɵɵinject(i1__namespace$1.ToastrService), i0__namespace.ɵɵinject(AppSettings)); }, token: AppToastrService, providedIn: "root" });
|
|
1580
|
-
AppToastrService.decorators = [
|
|
1581
|
-
{ type: i0.Injectable, args: [{
|
|
1582
|
-
providedIn: 'root',
|
|
1583
|
-
},] }
|
|
1584
|
-
];
|
|
1585
|
-
AppToastrService.ctorParameters = function () { return [
|
|
1586
|
-
{ type: i1$1.ToastrService },
|
|
1587
|
-
{ type: AppSettings }
|
|
1588
|
-
]; };
|
|
1589
|
-
|
|
1590
1563
|
var callbackPathKey = 'callbackPath';
|
|
1591
1564
|
var homePath$1 = '/home';
|
|
1592
1565
|
var loginAsKey = 'X-User-Id';
|
|
@@ -1630,6 +1603,34 @@
|
|
|
1630
1603
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1631
1604
|
];
|
|
1632
1605
|
|
|
1606
|
+
var AppToastrService = /** @class */ (function () {
|
|
1607
|
+
function AppToastrService(toastr, appSettings) {
|
|
1608
|
+
this.toastr = toastr;
|
|
1609
|
+
this.appSettings = appSettings;
|
|
1610
|
+
this.timeout = this.appSettings.toastrTimeOut;
|
|
1611
|
+
}
|
|
1612
|
+
AppToastrService.prototype.showError = function (message, title) {
|
|
1613
|
+
if (title === void 0) { title = 'Error'; }
|
|
1614
|
+
this.toastr.error(message, title, { timeOut: this.timeout });
|
|
1615
|
+
};
|
|
1616
|
+
AppToastrService.prototype.showSuccess = function (message, title) {
|
|
1617
|
+
if (title === void 0) { title = ''; }
|
|
1618
|
+
this.toastr.success(message, title, { timeOut: this.timeout });
|
|
1619
|
+
};
|
|
1620
|
+
return AppToastrService;
|
|
1621
|
+
}());
|
|
1622
|
+
AppToastrService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppToastrService_Factory() { return new AppToastrService(i0__namespace.ɵɵinject(i1__namespace$1.ToastrService), i0__namespace.ɵɵinject(AppSettings)); }, token: AppToastrService, providedIn: "root" });
|
|
1623
|
+
AppToastrService.decorators = [
|
|
1624
|
+
{ type: i0.Injectable, args: [{
|
|
1625
|
+
providedIn: 'root',
|
|
1626
|
+
},] }
|
|
1627
|
+
];
|
|
1628
|
+
AppToastrService.ctorParameters = function () { return [
|
|
1629
|
+
{ type: i1$1.ToastrService },
|
|
1630
|
+
{ type: AppSettings }
|
|
1631
|
+
]; };
|
|
1632
|
+
|
|
1633
|
+
var absoluteUrlRegExp = /^http(s)?:\/\//;
|
|
1633
1634
|
var HttpService = /** @class */ (function () {
|
|
1634
1635
|
function HttpService(appToastrService, httpClient, appSettings, translate, router, settingsService) {
|
|
1635
1636
|
this.appToastrService = appToastrService;
|
|
@@ -1660,7 +1661,7 @@
|
|
|
1660
1661
|
return this.httpClient.put(this.createUrl(path), data).pipe(operators.tap(function () { return _this.showSuccessMessage(successTranslateMessage !== null && successTranslateMessage !== void 0 ? successTranslateMessage : 'ToastrMessages.SavedSuccessfully'); }), operators.catchError(function (err) { return _this.handleServerError(err); }));
|
|
1661
1662
|
};
|
|
1662
1663
|
HttpService.prototype.createUrl = function (path) {
|
|
1663
|
-
return this.appSettings.apiUrl + path;
|
|
1664
|
+
return absoluteUrlRegExp.test(path) ? path : this.appSettings.apiUrl + path;
|
|
1664
1665
|
};
|
|
1665
1666
|
HttpService.prototype.handleServerError = function (error) {
|
|
1666
1667
|
if (error.error instanceof ErrorEvent) {
|