@progress/telerik-angular-report-viewer 14.21.915 → 14.21.1110
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/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
This package is part of the [Telerik Reporting](http://www.telerik.com/reporting).
|
|
5
5
|
|
|
6
|
-
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 15.2.21.
|
|
6
|
+
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 15.2.21.1110
|
|
7
7
|
|
|
8
8
|
## License
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
* TelerikReporting v15.2.21.
|
|
4
|
+
* TelerikReporting v15.2.21.1110 (http://www.telerik.com/products/reporting.aspx)
|
|
5
5
|
* Copyright 2021 Progress Software EAD. All rights reserved.
|
|
6
6
|
*
|
|
7
7
|
* Telerik Reporting commercial licenses may be obtained at
|
|
@@ -225,6 +225,12 @@ var telerikReportViewer = {};
|
|
|
225
225
|
}
|
|
226
226
|
return true;
|
|
227
227
|
},
|
|
228
|
+
isInternalServerError: function(error) {
|
|
229
|
+
if (error) {
|
|
230
|
+
return utils.replaceAll(error, " ", "").toLowerCase() === "internalservererror";
|
|
231
|
+
}
|
|
232
|
+
return false;
|
|
233
|
+
},
|
|
228
234
|
isInvalidClientException: function(xhr) {
|
|
229
235
|
return utils.isExceptionOfType(xhr, "Telerik.Reporting.Services.Engine.InvalidClientException");
|
|
230
236
|
},
|
|
@@ -452,6 +458,7 @@ var telerikReportViewer = {};
|
|
|
452
458
|
preparingPrint: "Preparing document to print. Please wait...",
|
|
453
459
|
errorLoadingTemplates: "Error loading the report viewer's templates. (trvTemplateUrl = '{0}').",
|
|
454
460
|
errorServiceUrl: "Cannot access the Reporting REST service. (serviceUrl = '{0}'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)",
|
|
461
|
+
errorServiceVersion: "The version of the Report Viewer '{1}' does not match the version of the Reporting REST Service '{0}'. Please make sure both are running same version.",
|
|
455
462
|
loadingReportPagesInProgress: "{0} pages loaded so far...",
|
|
456
463
|
loadedReportPagesComplete: "Done. Total {0} pages loaded.",
|
|
457
464
|
noPageToDisplay: "No page to display.",
|
|
@@ -2083,6 +2090,16 @@ var telerikReportViewer = {};
|
|
|
2083
2090
|
return _ajax(ajaxSettings);
|
|
2084
2091
|
});
|
|
2085
2092
|
},
|
|
2093
|
+
getServiceVersion: function(settings) {
|
|
2094
|
+
return login().then(function(authorizationToken) {
|
|
2095
|
+
var ajaxSettings = utils.extend(getHeaderSettings(authorizationToken), settings, {
|
|
2096
|
+
type: HTTP_GET,
|
|
2097
|
+
url: urlFromTemplate("{baseUrl}/version"),
|
|
2098
|
+
dataType: "json"
|
|
2099
|
+
});
|
|
2100
|
+
return _ajax(ajaxSettings);
|
|
2101
|
+
});
|
|
2102
|
+
},
|
|
2086
2103
|
getResource: function(clientID, instanceID, documentID, resourceID, settings) {
|
|
2087
2104
|
validateClientID(clientID);
|
|
2088
2105
|
return login().then(function(authorizationToken) {
|
|
@@ -2257,7 +2274,8 @@ var telerikReportViewer = {};
|
|
|
2257
2274
|
if (utils.isInvalidClientException(xhrData.xhr)) {
|
|
2258
2275
|
onClientExpired();
|
|
2259
2276
|
}
|
|
2260
|
-
|
|
2277
|
+
var formattedError = formatXhrError(xhrData.xhr, xhrData.status, utils.isInternalServerError(xhrData.error) ? "" : xhrData.error, localizedMessage);
|
|
2278
|
+
raiseError(formattedError);
|
|
2261
2279
|
if (!suppressErrorBubbling) {
|
|
2262
2280
|
errorMessage = xhrData.xhr.responseJSON && xhrData.xhr.responseJSON.exceptionMessage ? xhrData.xhr.responseJSON.exceptionMessage : sr.promisesChainStopError;
|
|
2263
2281
|
throw errorMessage;
|
|
@@ -2800,6 +2818,9 @@ var telerikReportViewer = {};
|
|
|
2800
2818
|
}
|
|
2801
2819
|
return documentFormatsPromise;
|
|
2802
2820
|
}
|
|
2821
|
+
function getServiceVersionAsync() {
|
|
2822
|
+
return client.getServiceVersion().catch(handleRequestError);
|
|
2823
|
+
}
|
|
2803
2824
|
function getPageForBookmark(nodes, id) {
|
|
2804
2825
|
if (nodes) {
|
|
2805
2826
|
for (var i = 0, len = nodes.length; i < len; i++) {
|
|
@@ -3165,6 +3186,9 @@ var telerikReportViewer = {};
|
|
|
3165
3186
|
getDocumentFormats: function() {
|
|
3166
3187
|
return getDocumentFormatsAsync();
|
|
3167
3188
|
},
|
|
3189
|
+
getServiceVersion: function() {
|
|
3190
|
+
return getServiceVersionAsync();
|
|
3191
|
+
},
|
|
3168
3192
|
setAuthenticationToken: function(token) {
|
|
3169
3193
|
client.setAccessToken(token);
|
|
3170
3194
|
},
|
|
@@ -7998,7 +8022,7 @@ var telerikReportViewer = {};
|
|
|
7998
8022
|
if (!validateOptions(options)) {
|
|
7999
8023
|
return;
|
|
8000
8024
|
}
|
|
8001
|
-
var version = "15.2.21.
|
|
8025
|
+
var version = "15.2.21.1110";
|
|
8002
8026
|
options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
|
8003
8027
|
settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
|
|
8004
8028
|
scale: options.scale,
|
|
@@ -8452,10 +8476,14 @@ var telerikReportViewer = {};
|
|
|
8452
8476
|
function main(version) {
|
|
8453
8477
|
ensureKendo(version).then(function() {
|
|
8454
8478
|
viewer.authenticationToken(options.authenticationToken);
|
|
8455
|
-
controller.
|
|
8479
|
+
controller.getServiceVersion().catch(function() {
|
|
8456
8480
|
$placeholder.html(utils.stringFormat(sr.errorServiceUrl, [ utils.escapeHtml(svcApiUrl) ]));
|
|
8457
8481
|
return Promise.reject();
|
|
8458
|
-
}).then(function() {
|
|
8482
|
+
}).then(function(data) {
|
|
8483
|
+
if (data !== version) {
|
|
8484
|
+
$placeholder.html(utils.stringFormat(sr.errorServiceVersion, [ data, version ]));
|
|
8485
|
+
return Promise.reject();
|
|
8486
|
+
}
|
|
8459
8487
|
templateCache.load(options.trvTemplateUrl, svcApiUrl, client).catch(function() {
|
|
8460
8488
|
$placeholder.html(utils.stringFormat(sr.errorLoadingTemplates, [ utils.escapeHtml(options.trvTemplateUrl) ]));
|
|
8461
8489
|
return Promise.reject();
|
|
@@ -8491,4 +8519,4 @@ module.exports = {
|
|
|
8491
8519
|
ReportViewer: telerikReportViewer.ReportViewer
|
|
8492
8520
|
};
|
|
8493
8521
|
|
|
8494
|
-
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
|
8522
|
+
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 5A1EABCE871ABE43081F552473E498FF */
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<title>Telerik HTML5 Report Viewer Templates</title>
|
|
6
6
|
|
|
7
7
|
<!--Telerik served resources. For more information see: http://docs.telerik.com/reporting/html5-report-viewer-styling-and-appearance -->
|
|
8
|
-
<link href="{service}resources/font/fonticons-15.2.21.
|
|
9
|
-
<link href="{service}resources/styles/telerikReportViewer-15.2.21.
|
|
8
|
+
<link href="{service}resources/font/fonticons-15.2.21.1110.css/" rel="stylesheet" />
|
|
9
|
+
<link href="{service}resources/styles/telerikReportViewer-15.2.21.1110.css/" rel="stylesheet" />
|
|
10
10
|
|
|
11
11
|
<script type="text/javascript">
|
|
12
12
|
//IE9 fix
|
|
@@ -340,4 +340,4 @@
|
|
|
340
340
|
|
|
341
341
|
</body>
|
|
342
342
|
</html>
|
|
343
|
-
<!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
|
343
|
+
<!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM BB9EE19E06526714DA8BFDF1AA8D9F04 -->
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/telerik-angular-report-viewer",
|
|
3
3
|
"description": "Progress® Telerik® Report Viewer for Angular",
|
|
4
|
-
"version": "14.21.
|
|
4
|
+
"version": "14.21.1110",
|
|
5
5
|
"author": "Progress® Telerik® Reporting",
|
|
6
6
|
"homepage": "http://www.telerik.com/reporting",
|
|
7
7
|
"license": "http://www.telerik.com/purchase/license-agreement/reporting-dlw-s",
|