@progress/telerik-angular-report-viewer 19.23.606 → 19.23.718
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/cjs/telerik-report-viewer.component.d.ts +1 -0
- package/dist/cjs/telerik-report-viewer.component.js +1 -0
- package/dist/dependencies/telerikReportViewer.js +40 -4
- package/dist/dependencies/telerikReportViewerTemplate-sass.html +3 -3
- package/dist/es/telerik-report-viewer.component.d.ts +1 -0
- package/dist/es/telerik-report-viewer.component.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -18,7 +18,7 @@ While the component is not native (the theming mechanism uses Kendo UI for jQuer
|
|
18
18
|
and has a dependency to jQuery itself), it brings reporting value to your Angular applications
|
19
19
|
in no time.
|
20
20
|
|
21
|
-
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 17.1.23.
|
21
|
+
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 17.1.23.718
|
22
22
|
|
23
23
|
## License
|
24
24
|
|
@@ -72,6 +72,7 @@ export declare class TelerikReportViewerComponent implements AfterViewInit, OnDe
|
|
72
72
|
setPageMode(psm: string): any;
|
73
73
|
clearReportSource(): any;
|
74
74
|
dispose(): void;
|
75
|
+
getReportParameters(): any;
|
75
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<TelerikReportViewerComponent, never>;
|
76
77
|
static ɵcmp: i0.ɵɵComponentDeclaration<TelerikReportViewerComponent, "tr-viewer", never, { "id": "id"; "serviceUrl": "serviceUrl"; "reportServer": "reportServer"; "templateUrl": "templateUrl"; "initialPageAreaImageUrl": "initialPageAreaImageUrl"; "reportSource": "reportSource"; "sendEmail": "sendEmail"; "parameters": "parameters"; "scale": "scale"; "scaleMode": "scaleMode"; "viewMode": "viewMode"; "pageMode": "pageMode"; "persistSession": "persistSession"; "parameterEditors": "parameterEditors"; "authenticationToken": "authenticationToken"; "printMode": "printMode"; "selector": "selector"; "disabledButtonClass": "disabledButtonClass"; "checkedButtonClass": "checkedButtonClass"; "enableAccessibility": "enableAccessibility"; "searchMetadataOnDemand": "searchMetadataOnDemand"; "parametersAreaVisible": "parametersAreaVisible"; "documentMapVisible": "documentMapVisible"; "ready": "ready"; "error": "error"; "parametersAreaPosition": "parametersAreaPosition"; "documentMapAreaPosition": "documentMapAreaPosition"; "exportBegin": "exportBegin"; "exportEnd": "exportEnd"; "sendEmailBegin": "sendEmailBegin"; "sendEmailEnd": "sendEmailEnd"; "pageReady": "pageReady"; "printBegin": "printBegin"; "printEnd": "printEnd"; "renderingBegin": "renderingBegin"; "renderingEnd": "renderingEnd"; "updateUi": "updateUi"; "interactiveActionExecuting": "interactiveActionExecuting"; "interactiveActionEnter": "interactiveActionEnter"; "interactiveActionLeave": "interactiveActionLeave"; "viewerToolTipOpening": "viewerToolTipOpening"; "keepClientAlive": "keepClientAlive"; "containerStyle": "containerStyle"; }, {}, never, never>;
|
77
78
|
}
|
@@ -82,6 +82,7 @@ var TelerikReportViewerComponent = /** @class */ (function () {
|
|
82
82
|
TelerikReportViewerComponent.prototype.setPageMode = function (psm) { return this.viewerObject.pageMode(psm); };
|
83
83
|
TelerikReportViewerComponent.prototype.clearReportSource = function () { return this.viewerObject.clearReportSource(); };
|
84
84
|
TelerikReportViewerComponent.prototype.dispose = function () { this.viewerObject.dispose(); };
|
85
|
+
TelerikReportViewerComponent.prototype.getReportParameters = function () { return this.viewerObject.getReportParameters(); };
|
85
86
|
TelerikReportViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TelerikReportViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
86
87
|
TelerikReportViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: TelerikReportViewerComponent, selector: "tr-viewer", inputs: { id: "id", serviceUrl: "serviceUrl", reportServer: "reportServer", templateUrl: "templateUrl", initialPageAreaImageUrl: "initialPageAreaImageUrl", reportSource: "reportSource", sendEmail: "sendEmail", parameters: "parameters", scale: "scale", scaleMode: "scaleMode", viewMode: "viewMode", pageMode: "pageMode", persistSession: "persistSession", parameterEditors: "parameterEditors", authenticationToken: "authenticationToken", printMode: "printMode", selector: "selector", disabledButtonClass: "disabledButtonClass", checkedButtonClass: "checkedButtonClass", enableAccessibility: "enableAccessibility", searchMetadataOnDemand: "searchMetadataOnDemand", parametersAreaVisible: "parametersAreaVisible", documentMapVisible: "documentMapVisible", ready: "ready", error: "error", parametersAreaPosition: "parametersAreaPosition", documentMapAreaPosition: "documentMapAreaPosition", exportBegin: "exportBegin", exportEnd: "exportEnd", sendEmailBegin: "sendEmailBegin", sendEmailEnd: "sendEmailEnd", pageReady: "pageReady", printBegin: "printBegin", printEnd: "printEnd", renderingBegin: "renderingBegin", renderingEnd: "renderingEnd", updateUi: "updateUi", interactiveActionExecuting: "interactiveActionExecuting", interactiveActionEnter: "interactiveActionEnter", interactiveActionLeave: "interactiveActionLeave", viewerToolTipOpening: "viewerToolTipOpening", keepClientAlive: "keepClientAlive", containerStyle: "containerStyle" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: '<div [ngStyle]="containerStyle" [attr.id]="reportViewerID" #container>Loading Report Viewer...</div>', isInline: true, directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
87
88
|
return TelerikReportViewerComponent;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
/*
|
4
|
-
* TelerikReporting v17.1.23.
|
4
|
+
* TelerikReporting v17.1.23.719 (https://www.telerik.com/products/reporting.aspx)
|
5
5
|
* Copyright 2023 Progress Software EAD. All rights reserved.
|
6
6
|
*
|
7
7
|
* Telerik Reporting commercial licenses may be obtained at
|
@@ -491,7 +491,7 @@ var telerikReportViewer = {};
|
|
491
491
|
missingTemplate: "!obsolete resource!",
|
492
492
|
noReport: "No report.",
|
493
493
|
noReportDocument: "No report document.",
|
494
|
-
missingOrInvalidParameter: "
|
494
|
+
missingOrInvalidParameter: "There are missing or invalid parameter values. Please input valid data for the following parameters:\n",
|
495
495
|
invalidParameter: "Please input a valid value.",
|
496
496
|
invalidDateTimeValue: "Please input a valid date.",
|
497
497
|
parameterIsEmpty: "Parameter value cannot be empty.",
|
@@ -517,6 +517,7 @@ var telerikReportViewer = {};
|
|
517
517
|
clientExpired: "Click 'Refresh' to restore client session.",
|
518
518
|
promisesChainStopError: "Error shown. Throwing promises chain stop error.",
|
519
519
|
renderingCanceled: "Report processing was canceled.",
|
520
|
+
tryReportPreview: "The report may now be previewed.",
|
520
521
|
parameterEditorSelectNone: "clear selection",
|
521
522
|
parameterEditorSelectAll: "select all",
|
522
523
|
parametersAreaPreviewButton: "Preview",
|
@@ -3001,6 +3002,17 @@ var telerikReportViewer = {};
|
|
3001
3002
|
var exceptionDetails = utils.parseJSON(xhrData.xhr.responseText);
|
3002
3003
|
throw exceptionDetails.exceptionMessage;
|
3003
3004
|
}
|
3005
|
+
function appendInvalidReportParamerNames(invalidParameters) {
|
3006
|
+
var errorElement = document.querySelector(".trv-pages-area .trv-error-message");
|
3007
|
+
var invalidParametersHolder = document.createElement("ul");
|
3008
|
+
for (var index = 0; index < invalidParameters.length; index++) {
|
3009
|
+
var invalidParameterText = document.createElement("li");
|
3010
|
+
invalidParameterText.classList.add(invalidParameters[index].name);
|
3011
|
+
invalidParameterText.innerText = utils.stringFormat("{0} ({1})", [ invalidParameters[index].text, invalidParameters[index].name ]);
|
3012
|
+
invalidParametersHolder.appendChild(invalidParameterText);
|
3013
|
+
}
|
3014
|
+
errorElement.appendChild(invalidParametersHolder);
|
3015
|
+
}
|
3004
3016
|
controller.Events = {
|
3005
3017
|
ERROR: "trv.ERROR",
|
3006
3018
|
EXPORT_STARTED: "trv.EXPORT_STARTED",
|
@@ -3179,6 +3191,9 @@ var telerikReportViewer = {};
|
|
3179
3191
|
controller.renderingStopped();
|
3180
3192
|
});
|
3181
3193
|
},
|
3194
|
+
getReportParameters: function() {
|
3195
|
+
return parameterValues;
|
3196
|
+
},
|
3182
3197
|
refreshReport: function(ignoreCache, baseDocumentId, actionId) {
|
3183
3198
|
controller.onLoadedReportChange();
|
3184
3199
|
if (clientHasExpired) {
|
@@ -3192,17 +3207,20 @@ var telerikReportViewer = {};
|
|
3192
3207
|
var loadParametersPromise = controller.loadParameters(null);
|
3193
3208
|
loadParametersPromise.then(function(parameters) {
|
3194
3209
|
var parameterValues = {};
|
3210
|
+
var invalidParameters = [];
|
3195
3211
|
var hasError = false;
|
3196
3212
|
utils.each(parameters || [], function() {
|
3197
3213
|
try {
|
3198
3214
|
parameterValues[this.id] = parameterValidators.validate(this, this.value);
|
3199
3215
|
} catch (e) {
|
3200
3216
|
hasError = true;
|
3217
|
+
invalidParameters.push(this);
|
3201
3218
|
return;
|
3202
3219
|
}
|
3203
3220
|
});
|
3204
3221
|
if (hasError) {
|
3205
3222
|
raiseError(sr.missingOrInvalidParameter);
|
3223
|
+
appendInvalidReportParamerNames(invalidParameters);
|
3206
3224
|
controller.missingOrInvalidParameters();
|
3207
3225
|
} else {
|
3208
3226
|
controller.setParameters(parameterValues);
|
@@ -4794,6 +4812,7 @@ var telerikReportViewer = {};
|
|
4794
4812
|
$selectNone.click(function(e) {
|
4795
4813
|
e.preventDefault();
|
4796
4814
|
listView.clearSelection();
|
4815
|
+
listView.trigger("change");
|
4797
4816
|
});
|
4798
4817
|
}
|
4799
4818
|
function onSelectionChanged(selection) {
|
@@ -5358,6 +5377,9 @@ var telerikReportViewer = {};
|
|
5358
5377
|
$previewButton.attr("aria-label", sr[$previewButton.attr("aria-label")]);
|
5359
5378
|
$previewButton.text(sr[$previewButton.text()]);
|
5360
5379
|
}
|
5380
|
+
function toggleElementDisplay(el, shouldHide) {
|
5381
|
+
el.style.display = shouldHide ? "none" : "";
|
5382
|
+
}
|
5361
5383
|
function createParameterContainer() {
|
5362
5384
|
return $(parameterContainerTemplate);
|
5363
5385
|
}
|
@@ -5374,11 +5396,18 @@ var telerikReportViewer = {};
|
|
5374
5396
|
var editor = editorFactory.createEditor($editorPlaceholder, {
|
5375
5397
|
templates: options.templates,
|
5376
5398
|
parameterChanged: function(parameter, newValue) {
|
5399
|
+
var invalidParameterLI = document.querySelector(".trv-pages-area .trv-error-message ul li." + parameter.name);
|
5377
5400
|
try {
|
5378
5401
|
newValue = parameterValidators.validate(parameter, newValue);
|
5379
5402
|
$error.hide();
|
5403
|
+
if (invalidParameterLI) {
|
5404
|
+
toggleElementDisplay(invalidParameterLI, true);
|
5405
|
+
}
|
5380
5406
|
onParameterChanged(parameter, newValue);
|
5381
5407
|
} catch (error) {
|
5408
|
+
if (invalidParameterLI) {
|
5409
|
+
toggleElementDisplay(invalidParameterLI, false);
|
5410
|
+
}
|
5382
5411
|
parameter.Error = error;
|
5383
5412
|
parameter.value = [];
|
5384
5413
|
$errorMessage.text(error);
|
@@ -5590,6 +5619,10 @@ var telerikReportViewer = {};
|
|
5590
5619
|
var allValid = allParametersValid();
|
5591
5620
|
enablePreviewButton(allValid);
|
5592
5621
|
if (allValid) {
|
5622
|
+
var errorMsg = document.querySelector(".trv-pages-area .trv-error-message");
|
5623
|
+
if ($previewButton.is(":visible") && errorMsg) {
|
5624
|
+
errorMsg.textContent = sr.tryReportPreview;
|
5625
|
+
}
|
5593
5626
|
tryRefreshReport();
|
5594
5627
|
}
|
5595
5628
|
}
|
@@ -8179,7 +8212,7 @@ var telerikReportViewer = {};
|
|
8179
8212
|
if (!validateOptions(options)) {
|
8180
8213
|
return;
|
8181
8214
|
}
|
8182
|
-
var version = "17.1.23.
|
8215
|
+
var version = "17.1.23.718";
|
8183
8216
|
options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
8184
8217
|
settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
|
8185
8218
|
scale: options.scale,
|
@@ -8288,6 +8321,9 @@ var telerikReportViewer = {};
|
|
8288
8321
|
visible: visible
|
8289
8322
|
});
|
8290
8323
|
},
|
8324
|
+
getReportParameters: function() {
|
8325
|
+
return controller.getReportParameters();
|
8326
|
+
},
|
8291
8327
|
authenticationToken: function(token) {
|
8292
8328
|
if (token) {
|
8293
8329
|
controller.setAuthenticationToken(token);
|
@@ -8693,4 +8729,4 @@ module.exports = {
|
|
8693
8729
|
ReportViewer: telerikReportViewer.ReportViewer
|
8694
8730
|
};
|
8695
8731
|
|
8696
|
-
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
8732
|
+
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 4294ED9043533DFC7D5F45BBE2B70579 */
|
@@ -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-17.1.23.
|
9
|
-
<link href="{service}resources/styles/telerikReportViewer-17.1.23.
|
8
|
+
<link href="{service}resources/font/fonticons-17.1.23.719.css/" rel="stylesheet" />
|
9
|
+
<link href="{service}resources/styles/telerikReportViewer-17.1.23.719.css/" rel="stylesheet" />
|
10
10
|
|
11
11
|
</head>
|
12
12
|
<body>
|
@@ -330,4 +330,4 @@
|
|
330
330
|
|
331
331
|
</body>
|
332
332
|
</html>
|
333
|
-
<!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
333
|
+
<!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 7CA6CE57C1287DB3E4E0CA59C6B1CC25 -->
|
@@ -72,6 +72,7 @@ export declare class TelerikReportViewerComponent implements AfterViewInit, OnDe
|
|
72
72
|
setPageMode(psm: string): any;
|
73
73
|
clearReportSource(): any;
|
74
74
|
dispose(): void;
|
75
|
+
getReportParameters(): any;
|
75
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<TelerikReportViewerComponent, never>;
|
76
77
|
static ɵcmp: i0.ɵɵComponentDeclaration<TelerikReportViewerComponent, "tr-viewer", never, { "id": "id"; "serviceUrl": "serviceUrl"; "reportServer": "reportServer"; "templateUrl": "templateUrl"; "initialPageAreaImageUrl": "initialPageAreaImageUrl"; "reportSource": "reportSource"; "sendEmail": "sendEmail"; "parameters": "parameters"; "scale": "scale"; "scaleMode": "scaleMode"; "viewMode": "viewMode"; "pageMode": "pageMode"; "persistSession": "persistSession"; "parameterEditors": "parameterEditors"; "authenticationToken": "authenticationToken"; "printMode": "printMode"; "selector": "selector"; "disabledButtonClass": "disabledButtonClass"; "checkedButtonClass": "checkedButtonClass"; "enableAccessibility": "enableAccessibility"; "searchMetadataOnDemand": "searchMetadataOnDemand"; "parametersAreaVisible": "parametersAreaVisible"; "documentMapVisible": "documentMapVisible"; "ready": "ready"; "error": "error"; "parametersAreaPosition": "parametersAreaPosition"; "documentMapAreaPosition": "documentMapAreaPosition"; "exportBegin": "exportBegin"; "exportEnd": "exportEnd"; "sendEmailBegin": "sendEmailBegin"; "sendEmailEnd": "sendEmailEnd"; "pageReady": "pageReady"; "printBegin": "printBegin"; "printEnd": "printEnd"; "renderingBegin": "renderingBegin"; "renderingEnd": "renderingEnd"; "updateUi": "updateUi"; "interactiveActionExecuting": "interactiveActionExecuting"; "interactiveActionEnter": "interactiveActionEnter"; "interactiveActionLeave": "interactiveActionLeave"; "viewerToolTipOpening": "viewerToolTipOpening"; "keepClientAlive": "keepClientAlive"; "containerStyle": "containerStyle"; }, {}, never, never>;
|
77
78
|
}
|
@@ -79,6 +79,7 @@ var TelerikReportViewerComponent = /** @class */ (function () {
|
|
79
79
|
TelerikReportViewerComponent.prototype.setPageMode = function (psm) { return this.viewerObject.pageMode(psm); };
|
80
80
|
TelerikReportViewerComponent.prototype.clearReportSource = function () { return this.viewerObject.clearReportSource(); };
|
81
81
|
TelerikReportViewerComponent.prototype.dispose = function () { this.viewerObject.dispose(); };
|
82
|
+
TelerikReportViewerComponent.prototype.getReportParameters = function () { return this.viewerObject.getReportParameters(); };
|
82
83
|
TelerikReportViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: TelerikReportViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
83
84
|
TelerikReportViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: TelerikReportViewerComponent, selector: "tr-viewer", inputs: { id: "id", serviceUrl: "serviceUrl", reportServer: "reportServer", templateUrl: "templateUrl", initialPageAreaImageUrl: "initialPageAreaImageUrl", reportSource: "reportSource", sendEmail: "sendEmail", parameters: "parameters", scale: "scale", scaleMode: "scaleMode", viewMode: "viewMode", pageMode: "pageMode", persistSession: "persistSession", parameterEditors: "parameterEditors", authenticationToken: "authenticationToken", printMode: "printMode", selector: "selector", disabledButtonClass: "disabledButtonClass", checkedButtonClass: "checkedButtonClass", enableAccessibility: "enableAccessibility", searchMetadataOnDemand: "searchMetadataOnDemand", parametersAreaVisible: "parametersAreaVisible", documentMapVisible: "documentMapVisible", ready: "ready", error: "error", parametersAreaPosition: "parametersAreaPosition", documentMapAreaPosition: "documentMapAreaPosition", exportBegin: "exportBegin", exportEnd: "exportEnd", sendEmailBegin: "sendEmailBegin", sendEmailEnd: "sendEmailEnd", pageReady: "pageReady", printBegin: "printBegin", printEnd: "printEnd", renderingBegin: "renderingBegin", renderingEnd: "renderingEnd", updateUi: "updateUi", interactiveActionExecuting: "interactiveActionExecuting", interactiveActionEnter: "interactiveActionEnter", interactiveActionLeave: "interactiveActionLeave", viewerToolTipOpening: "viewerToolTipOpening", keepClientAlive: "keepClientAlive", containerStyle: "containerStyle" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: '<div [ngStyle]="containerStyle" [attr.id]="reportViewerID" #container>Loading Report Viewer...</div>', isInline: true, directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
84
85
|
return TelerikReportViewerComponent;
|
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": "19.23.
|
4
|
+
"version": "19.23.718",
|
5
5
|
"author": "Progress® Telerik® Reporting",
|
6
6
|
"homepage": "https://www.telerik.com/reporting",
|
7
7
|
"license": "https://www.telerik.com/purchase/license-agreement/reporting-dlw-s",
|