@progress/telerik-react-report-viewer 18.23.427 → 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.js +5 -0
- package/dist/dependencies/kendo.custom.min.js.map +1 -0
- package/dist/dependencies/telerikReportViewer.js +94 -5
- package/dist/dependencies/telerikReportViewerTemplate-sass.html +3 -3
- package/dist/es/telerik-report-viewer.js +5 -0
- package/package.json +1 -1
- package/progress-telerik-react-report-viewer-19.23.718.tgz +0 -0
- package/progress-telerik-react-report-viewer-18.23.427.tgz +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
/*
|
4
|
-
* TelerikReporting v17.
|
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
|
@@ -439,6 +439,50 @@ var telerikReportViewer = {};
|
|
439
439
|
}();
|
440
440
|
})(telerikReportViewer, window.jQuery, window, document);
|
441
441
|
|
442
|
+
(function(trv, $, window, document, undefined) {
|
443
|
+
"use strict";
|
444
|
+
function KendoWidgetFixer() {
|
445
|
+
this.fixSplitter = function(splitter) {};
|
446
|
+
}
|
447
|
+
KendoWidgetFixer.prototype.constructor = KendoWidgetFixer;
|
448
|
+
function KendoWidgetFixer314() {
|
449
|
+
KendoWidgetFixer.call(this);
|
450
|
+
this.fixSplitter = function(splitter, direction) {
|
451
|
+
var splitterIcons = splitter.wrapper.find(".k-splitbar").children();
|
452
|
+
splitterIcons.each(function() {
|
453
|
+
var $element = $(this);
|
454
|
+
if ($element.hasClass("k-icon")) return;
|
455
|
+
$element.addClass("k-icon");
|
456
|
+
if (!$element.hasClass("k-resize-handle")) {
|
457
|
+
$element.addClass("k-i-arrow-60-" + splitterArrowDirection(direction));
|
458
|
+
$element.find("span.k-icon").hide();
|
459
|
+
}
|
460
|
+
});
|
461
|
+
};
|
462
|
+
}
|
463
|
+
KendoWidgetFixer314.prototype = Object.create(KendoWidgetFixer.prototype);
|
464
|
+
KendoWidgetFixer314.prototype.constructor = KendoWidgetFixer314;
|
465
|
+
function splitterArrowDirection(direction) {
|
466
|
+
switch (direction) {
|
467
|
+
case "TOP":
|
468
|
+
return "up";
|
469
|
+
|
470
|
+
case "BOTTOM":
|
471
|
+
return "down";
|
472
|
+
|
473
|
+
case "LEFT":
|
474
|
+
return "left";
|
475
|
+
|
476
|
+
default:
|
477
|
+
return "right";
|
478
|
+
}
|
479
|
+
}
|
480
|
+
function createKendoWidgetFixer() {
|
481
|
+
trv.kendoUtils = window.kendo.version >= "2023.1.314" ? new KendoWidgetFixer314() : new KendoWidgetFixer();
|
482
|
+
}
|
483
|
+
trv.createKendoWidgetFixer = createKendoWidgetFixer;
|
484
|
+
})(telerikReportViewer, window.jQuery, window, document);
|
485
|
+
|
442
486
|
(function(trv) {
|
443
487
|
"use strict";
|
444
488
|
var sr = {
|
@@ -447,7 +491,7 @@ var telerikReportViewer = {};
|
|
447
491
|
missingTemplate: "!obsolete resource!",
|
448
492
|
noReport: "No report.",
|
449
493
|
noReportDocument: "No report document.",
|
450
|
-
missingOrInvalidParameter: "
|
494
|
+
missingOrInvalidParameter: "There are missing or invalid parameter values. Please input valid data for the following parameters:\n",
|
451
495
|
invalidParameter: "Please input a valid value.",
|
452
496
|
invalidDateTimeValue: "Please input a valid date.",
|
453
497
|
parameterIsEmpty: "Parameter value cannot be empty.",
|
@@ -473,6 +517,7 @@ var telerikReportViewer = {};
|
|
473
517
|
clientExpired: "Click 'Refresh' to restore client session.",
|
474
518
|
promisesChainStopError: "Error shown. Throwing promises chain stop error.",
|
475
519
|
renderingCanceled: "Report processing was canceled.",
|
520
|
+
tryReportPreview: "The report may now be previewed.",
|
476
521
|
parameterEditorSelectNone: "clear selection",
|
477
522
|
parameterEditorSelectAll: "select all",
|
478
523
|
parametersAreaPreviewButton: "Preview",
|
@@ -2957,6 +3002,17 @@ var telerikReportViewer = {};
|
|
2957
3002
|
var exceptionDetails = utils.parseJSON(xhrData.xhr.responseText);
|
2958
3003
|
throw exceptionDetails.exceptionMessage;
|
2959
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
|
+
}
|
2960
3016
|
controller.Events = {
|
2961
3017
|
ERROR: "trv.ERROR",
|
2962
3018
|
EXPORT_STARTED: "trv.EXPORT_STARTED",
|
@@ -3135,6 +3191,9 @@ var telerikReportViewer = {};
|
|
3135
3191
|
controller.renderingStopped();
|
3136
3192
|
});
|
3137
3193
|
},
|
3194
|
+
getReportParameters: function() {
|
3195
|
+
return parameterValues;
|
3196
|
+
},
|
3138
3197
|
refreshReport: function(ignoreCache, baseDocumentId, actionId) {
|
3139
3198
|
controller.onLoadedReportChange();
|
3140
3199
|
if (clientHasExpired) {
|
@@ -3148,17 +3207,20 @@ var telerikReportViewer = {};
|
|
3148
3207
|
var loadParametersPromise = controller.loadParameters(null);
|
3149
3208
|
loadParametersPromise.then(function(parameters) {
|
3150
3209
|
var parameterValues = {};
|
3210
|
+
var invalidParameters = [];
|
3151
3211
|
var hasError = false;
|
3152
3212
|
utils.each(parameters || [], function() {
|
3153
3213
|
try {
|
3154
3214
|
parameterValues[this.id] = parameterValidators.validate(this, this.value);
|
3155
3215
|
} catch (e) {
|
3156
3216
|
hasError = true;
|
3217
|
+
invalidParameters.push(this);
|
3157
3218
|
return;
|
3158
3219
|
}
|
3159
3220
|
});
|
3160
3221
|
if (hasError) {
|
3161
3222
|
raiseError(sr.missingOrInvalidParameter);
|
3223
|
+
appendInvalidReportParamerNames(invalidParameters);
|
3162
3224
|
controller.missingOrInvalidParameters();
|
3163
3225
|
} else {
|
3164
3226
|
controller.setParameters(parameterValues);
|
@@ -4016,7 +4078,8 @@ var telerikReportViewer = {};
|
|
4016
4078
|
function positionToolTip(toolTip, e) {
|
4017
4079
|
var x = e.pageX;
|
4018
4080
|
var y = e.pageY;
|
4019
|
-
toolTip.popup.element.
|
4081
|
+
var container = toolTip.popup.element.closest("[role=region]");
|
4082
|
+
container.css({
|
4020
4083
|
left: x + 10,
|
4021
4084
|
top: y + 5
|
4022
4085
|
});
|
@@ -4749,6 +4812,7 @@ var telerikReportViewer = {};
|
|
4749
4812
|
$selectNone.click(function(e) {
|
4750
4813
|
e.preventDefault();
|
4751
4814
|
listView.clearSelection();
|
4815
|
+
listView.trigger("change");
|
4752
4816
|
});
|
4753
4817
|
}
|
4754
4818
|
function onSelectionChanged(selection) {
|
@@ -5313,6 +5377,9 @@ var telerikReportViewer = {};
|
|
5313
5377
|
$previewButton.attr("aria-label", sr[$previewButton.attr("aria-label")]);
|
5314
5378
|
$previewButton.text(sr[$previewButton.text()]);
|
5315
5379
|
}
|
5380
|
+
function toggleElementDisplay(el, shouldHide) {
|
5381
|
+
el.style.display = shouldHide ? "none" : "";
|
5382
|
+
}
|
5316
5383
|
function createParameterContainer() {
|
5317
5384
|
return $(parameterContainerTemplate);
|
5318
5385
|
}
|
@@ -5329,11 +5396,18 @@ var telerikReportViewer = {};
|
|
5329
5396
|
var editor = editorFactory.createEditor($editorPlaceholder, {
|
5330
5397
|
templates: options.templates,
|
5331
5398
|
parameterChanged: function(parameter, newValue) {
|
5399
|
+
var invalidParameterLI = document.querySelector(".trv-pages-area .trv-error-message ul li." + parameter.name);
|
5332
5400
|
try {
|
5333
5401
|
newValue = parameterValidators.validate(parameter, newValue);
|
5334
5402
|
$error.hide();
|
5403
|
+
if (invalidParameterLI) {
|
5404
|
+
toggleElementDisplay(invalidParameterLI, true);
|
5405
|
+
}
|
5335
5406
|
onParameterChanged(parameter, newValue);
|
5336
5407
|
} catch (error) {
|
5408
|
+
if (invalidParameterLI) {
|
5409
|
+
toggleElementDisplay(invalidParameterLI, false);
|
5410
|
+
}
|
5337
5411
|
parameter.Error = error;
|
5338
5412
|
parameter.value = [];
|
5339
5413
|
$errorMessage.text(error);
|
@@ -5545,6 +5619,10 @@ var telerikReportViewer = {};
|
|
5545
5619
|
var allValid = allParametersValid();
|
5546
5620
|
enablePreviewButton(allValid);
|
5547
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
|
+
}
|
5548
5626
|
tryRefreshReport();
|
5549
5627
|
}
|
5550
5628
|
}
|
@@ -8134,7 +8212,7 @@ var telerikReportViewer = {};
|
|
8134
8212
|
if (!validateOptions(options)) {
|
8135
8213
|
return;
|
8136
8214
|
}
|
8137
|
-
var version = "17.
|
8215
|
+
var version = "17.1.23.718";
|
8138
8216
|
options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
8139
8217
|
settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
|
8140
8218
|
scale: options.scale,
|
@@ -8243,6 +8321,9 @@ var telerikReportViewer = {};
|
|
8243
8321
|
visible: visible
|
8244
8322
|
});
|
8245
8323
|
},
|
8324
|
+
getReportParameters: function() {
|
8325
|
+
return controller.getReportParameters();
|
8326
|
+
},
|
8246
8327
|
authenticationToken: function(token) {
|
8247
8328
|
if (token) {
|
8248
8329
|
controller.setAuthenticationToken(token);
|
@@ -8404,6 +8485,9 @@ var telerikReportViewer = {};
|
|
8404
8485
|
},
|
8405
8486
|
collapse: function(e) {
|
8406
8487
|
setSplitterPaneVisibility(e.pane, false);
|
8488
|
+
},
|
8489
|
+
resize: function(e) {
|
8490
|
+
trv.kendoUtils.fixSplitter(e.sender, options.documentMapAreaPosition);
|
8407
8491
|
}
|
8408
8492
|
}).data("kendoSplitter");
|
8409
8493
|
} catch (e) {
|
@@ -8419,6 +8503,9 @@ var telerikReportViewer = {};
|
|
8419
8503
|
},
|
8420
8504
|
collapse: function(e) {
|
8421
8505
|
setSplitterPaneVisibility(e.pane, false);
|
8506
|
+
},
|
8507
|
+
resize: function(e) {
|
8508
|
+
trv.kendoUtils.fixSplitter(e.sender, options.parametersAreaPosition);
|
8422
8509
|
}
|
8423
8510
|
}).data("kendoSplitter");
|
8424
8511
|
} catch (e) {
|
@@ -8597,6 +8684,8 @@ var telerikReportViewer = {};
|
|
8597
8684
|
}
|
8598
8685
|
function main(version) {
|
8599
8686
|
ensureKendo(version).then(function() {
|
8687
|
+
trv.createKendoWidgetFixer();
|
8688
|
+
}).then(function() {
|
8600
8689
|
viewer.authenticationToken(options.authenticationToken);
|
8601
8690
|
controller.getServiceVersion().catch(function() {
|
8602
8691
|
$placeholder.text(utils.stringFormat(sr.errorServiceUrl, [ utils.escapeHtml(svcApiUrl) ]));
|
@@ -8640,4 +8729,4 @@ module.exports = {
|
|
8640
8729
|
ReportViewer: telerikReportViewer.ReportViewer
|
8641
8730
|
};
|
8642
8731
|
|
8643
|
-
/* 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.
|
9
|
-
<link href="{service}resources/styles/telerikReportViewer-17.
|
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 -->
|
@@ -194,6 +194,11 @@ export var TelerikReportViewer = /*#__PURE__*/function (_React$Component) {
|
|
194
194
|
value: function dispose() {
|
195
195
|
return this.viewerObject.dispose();
|
196
196
|
}
|
197
|
+
}, {
|
198
|
+
key: "getReportParameters",
|
199
|
+
value: function getReportParameters() {
|
200
|
+
return this.viewerObject.getReportParameters();
|
201
|
+
}
|
197
202
|
}]);
|
198
203
|
return TelerikReportViewer;
|
199
204
|
}(React.Component);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/telerik-react-report-viewer",
|
3
|
-
"version": "
|
3
|
+
"version": "19.23.718",
|
4
4
|
"author": "Progress® Telerik® Reporting",
|
5
5
|
"homepage": "https://www.telerik.com/reporting",
|
6
6
|
"license": "https://www.telerik.com/purchase/license-agreement/reporting-dlw-s",
|
Binary file
|
Binary file
|