@indigina/kendo 1.0.138-beta → 1.0.152-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 +60 -57
- 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/indigina-kendo.js +1 -2
- package/esm2015/lib/angular/services/http.service.js +7 -6
- package/esm2015/lib/components/azure-login-callback/azure-login-callback.component.js +5 -3
- package/esm2015/public-api.js +2 -1
- package/fesm2015/indigina-kendo.js +57 -54
- package/fesm2015/indigina-kendo.js.map +1 -1
- package/indigina-kendo.d.ts +0 -1
- package/indigina-kendo.metadata.json +1 -1
- package/lib/angular/services/http.service.d.ts +3 -3
- package/package.json +3 -1
- package/public-api.d.ts +1 -0
|
@@ -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) {
|
|
@@ -2041,8 +2042,10 @@
|
|
|
2041
2042
|
this.authService
|
|
2042
2043
|
.handleRedirectObservable()
|
|
2043
2044
|
.subscribe(function (result) {
|
|
2044
|
-
|
|
2045
|
-
|
|
2045
|
+
if (result) {
|
|
2046
|
+
_this.settingsService.setToken(result.idToken);
|
|
2047
|
+
_this.authService.instance.setActiveAccount(result.account);
|
|
2048
|
+
}
|
|
2046
2049
|
_this.router.navigate(['home']);
|
|
2047
2050
|
});
|
|
2048
2051
|
};
|
|
@@ -2110,6 +2113,32 @@
|
|
|
2110
2113
|
clickedOutside: [{ type: i0.HostListener, args: ['document:click', ['$event'],] }]
|
|
2111
2114
|
};
|
|
2112
2115
|
|
|
2116
|
+
var isIE = window.navigator.userAgent.indexOf('MSIE ') > -1 ||
|
|
2117
|
+
window.navigator.userAgent.indexOf('Trident/') > -1;
|
|
2118
|
+
var MSALInstanceFactory = function (config) {
|
|
2119
|
+
var msalConfig = {
|
|
2120
|
+
auth: {
|
|
2121
|
+
clientId: config.appSettings.azureB2C.clientId,
|
|
2122
|
+
authority: config.appSettings.azureB2C.authority,
|
|
2123
|
+
knownAuthorities: config.appSettings.azureB2C.knownAuthorities,
|
|
2124
|
+
redirectUri: window.location.origin + '/azure/login/callback',
|
|
2125
|
+
postLogoutRedirectUri: '/',
|
|
2126
|
+
navigateToLoginRequestUrl: false,
|
|
2127
|
+
},
|
|
2128
|
+
cache: {
|
|
2129
|
+
cacheLocation: msalBrowser.BrowserCacheLocation.SessionStorage,
|
|
2130
|
+
storeAuthStateInCookie: isIE,
|
|
2131
|
+
},
|
|
2132
|
+
system: {
|
|
2133
|
+
loggerOptions: {
|
|
2134
|
+
loggerCallback: function () { },
|
|
2135
|
+
piiLoggingEnabled: false,
|
|
2136
|
+
},
|
|
2137
|
+
},
|
|
2138
|
+
};
|
|
2139
|
+
return new msalBrowser.PublicClientApplication(msalConfig);
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2113
2142
|
var PermissionsService = /** @class */ (function () {
|
|
2114
2143
|
function PermissionsService(httpService, accountService, signalRService) {
|
|
2115
2144
|
var _this = this;
|
|
@@ -2235,32 +2264,6 @@
|
|
|
2235
2264
|
permissionCategory: [{ type: i0.Input }]
|
|
2236
2265
|
};
|
|
2237
2266
|
|
|
2238
|
-
var isIE = window.navigator.userAgent.indexOf('MSIE ') > -1 ||
|
|
2239
|
-
window.navigator.userAgent.indexOf('Trident/') > -1;
|
|
2240
|
-
var MSALInstanceFactory = function (config) {
|
|
2241
|
-
var msalConfig = {
|
|
2242
|
-
auth: {
|
|
2243
|
-
clientId: config.appSettings.azureB2C.clientId,
|
|
2244
|
-
authority: config.appSettings.azureB2C.authority,
|
|
2245
|
-
knownAuthorities: config.appSettings.azureB2C.knownAuthorities,
|
|
2246
|
-
redirectUri: window.location.origin + '/azure/login/callback',
|
|
2247
|
-
postLogoutRedirectUri: '/',
|
|
2248
|
-
navigateToLoginRequestUrl: false,
|
|
2249
|
-
},
|
|
2250
|
-
cache: {
|
|
2251
|
-
cacheLocation: msalBrowser.BrowserCacheLocation.SessionStorage,
|
|
2252
|
-
storeAuthStateInCookie: isIE,
|
|
2253
|
-
},
|
|
2254
|
-
system: {
|
|
2255
|
-
loggerOptions: {
|
|
2256
|
-
loggerCallback: function () { },
|
|
2257
|
-
piiLoggingEnabled: false,
|
|
2258
|
-
},
|
|
2259
|
-
},
|
|
2260
|
-
};
|
|
2261
|
-
return new msalBrowser.PublicClientApplication(msalConfig);
|
|
2262
|
-
};
|
|
2263
|
-
|
|
2264
2267
|
var AuthorizationHeader = 'Authorization';
|
|
2265
2268
|
var AuthHeadersInterceptor = /** @class */ (function () {
|
|
2266
2269
|
function AuthHeadersInterceptor(settingsService) {
|
|
@@ -3766,6 +3769,7 @@
|
|
|
3766
3769
|
exports.LanguageSelectorComponent = LanguageSelectorComponent;
|
|
3767
3770
|
exports.LiveUpdatesControlComponent = LiveUpdatesControlComponent;
|
|
3768
3771
|
exports.LocaleSettingsService = LocaleSettingsService;
|
|
3772
|
+
exports.MSALInstanceFactory = MSALInstanceFactory;
|
|
3769
3773
|
exports.ModalWindowComponent = ModalWindowComponent;
|
|
3770
3774
|
exports.MulticheckFilterComponent = MulticheckFilterComponent;
|
|
3771
3775
|
exports.NumberInputComponent = NumberInputComponent;
|
|
@@ -3790,7 +3794,6 @@
|
|
|
3790
3794
|
exports.ɵe = TreeViewNodeComponent;
|
|
3791
3795
|
exports.ɵf = TreeViewNodePropComponent;
|
|
3792
3796
|
exports.ɵg = AuthHeadersInterceptor;
|
|
3793
|
-
exports.ɵh = MSALInstanceFactory;
|
|
3794
3797
|
Object.keys(animations).forEach(function (k) {
|
|
3795
3798
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
3796
3799
|
enumerable: true,
|