@progress/telerik-react-report-viewer 18.23.118 → 18.23.427
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/dependencies/telerikReportViewer.js +325 -242
- package/dist/dependencies/telerikReportViewer.kendo.min.js +1 -1
- package/dist/dependencies/telerikReportViewerTemplate-sass.html +12 -18
- package/package.json +1 -1
- package/progress-telerik-react-report-viewer-18.23.427.tgz +0 -0
- package/progress-telerik-react-report-viewer-18.23.118.tgz +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
/*
|
4
|
-
* TelerikReporting v17.0.23.
|
4
|
+
* TelerikReporting v17.0.23.427 (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
|
@@ -1262,7 +1262,7 @@ var telerikReportViewer = {};
|
|
1262
1262
|
},
|
1263
1263
|
_scrollDown: function _scrollDown(pages, scrollPosition) {
|
1264
1264
|
var that = this;
|
1265
|
-
if (scrollPosition >= that.pageContainer.scrollHeight) {
|
1265
|
+
if (scrollPosition >= that.pageContainer.scrollHeight - 5) {
|
1266
1266
|
var lastPage = parseInt($(pages[pages.length - 1]).attr("data-page")), nextPage = lastPage + 1;
|
1267
1267
|
if (that._currentPageNumber() < nextPage && nextPage <= that.controller.pageCount()) {
|
1268
1268
|
that._addSkeletonScreen(nextPage, false);
|
@@ -1530,43 +1530,53 @@ var telerikReportViewer = {};
|
|
1530
1530
|
setAttrs();
|
1531
1531
|
initCommands();
|
1532
1532
|
replaceStringResources($placeholder);
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1533
|
+
try {
|
1534
|
+
kendoSendEmailDialog = reportViewerWrapper.find(".trv-send-email-window").kendoWindow({
|
1535
|
+
title: sr.sendEmailDialogTitle,
|
1536
|
+
minWidth: 350,
|
1537
|
+
minHeight: 350,
|
1538
|
+
maxHeight: 900,
|
1539
|
+
modal: true,
|
1540
|
+
close: function() {
|
1541
|
+
storeDialogPosition();
|
1542
|
+
clearValidation();
|
1543
|
+
},
|
1544
|
+
open: function() {
|
1545
|
+
adjustDialogSize();
|
1546
|
+
adjustDialogPosition();
|
1547
|
+
},
|
1548
|
+
deactivate: function() {
|
1549
|
+
controller.setSendEmailDialogVisible({
|
1550
|
+
visible: false
|
1551
|
+
});
|
1552
|
+
},
|
1553
|
+
activate: function() {
|
1554
|
+
kendoSendEmailDialog.wrapper.find(".trv-send-email-fields input[type='email']:visible").first().focus();
|
1555
|
+
setTimeout(function() {
|
1556
|
+
setValidation();
|
1557
|
+
}, 250);
|
1558
|
+
}
|
1559
|
+
}).data("kendoWindow");
|
1560
|
+
} catch (e) {
|
1561
|
+
console.error("Instantiation of Kendo Window for Send Email dialog threw an exception", e);
|
1562
|
+
throw e;
|
1563
|
+
}
|
1559
1564
|
kendoSendEmailDialog.wrapper.addClass("trv-send-email");
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1565
|
+
try {
|
1566
|
+
docFormat = docFormatEl.kendoComboBox({
|
1567
|
+
dataTextField: "localizedName",
|
1568
|
+
dataValueField: "name",
|
1569
|
+
dataSource: docFormatList || [],
|
1570
|
+
filter: "startswith",
|
1571
|
+
dataBound: function() {
|
1572
|
+
this.select(0);
|
1573
|
+
this.trigger("change");
|
1574
|
+
}
|
1575
|
+
}).data("kendoComboBox");
|
1576
|
+
} catch (e) {
|
1577
|
+
console.error("Instantiation of Kendo ComboBox as document format selector threw an exception", e);
|
1578
|
+
throw e;
|
1579
|
+
}
|
1570
1580
|
$placeholder.on("keydown", '[name="format_input"]', function(e) {
|
1571
1581
|
var tabkey = 9;
|
1572
1582
|
if (e.keyCode === tabkey && bodyEditor) {
|
@@ -1575,9 +1585,14 @@ var telerikReportViewer = {};
|
|
1575
1585
|
});
|
1576
1586
|
}
|
1577
1587
|
});
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1588
|
+
try {
|
1589
|
+
bodyEditor = bodyEditorEl.kendoEditor({
|
1590
|
+
tools: [ "bold", "italic", "underline", "strikethrough", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull", "insertUnorderedList", "insertOrderedList", "indent", "outdent", "createLink", "unlink", "cleanFormatting", "formatting", "fontName", "fontSize", "foreColor", "backColor", "subscript", "superscript" ]
|
1591
|
+
}).data("kendoEditor");
|
1592
|
+
} catch (e) {
|
1593
|
+
console.error("Instantiation of Kendo Editor for Email body editor threw an exception", e);
|
1594
|
+
throw e;
|
1595
|
+
}
|
1581
1596
|
setDefaultValues(viewerOptions.sendEmail);
|
1582
1597
|
initialized = true;
|
1583
1598
|
}
|
@@ -3424,44 +3439,49 @@ var telerikReportViewer = {};
|
|
3424
3439
|
init(dom);
|
3425
3440
|
function init(element) {
|
3426
3441
|
if (typeof $.fn.kendoTouch === "function") {
|
3427
|
-
|
3428
|
-
|
3429
|
-
|
3430
|
-
|
3431
|
-
|
3432
|
-
|
3433
|
-
|
3434
|
-
|
3435
|
-
|
3436
|
-
|
3437
|
-
|
3438
|
-
|
3439
|
-
|
3440
|
-
|
3441
|
-
|
3442
|
-
|
3443
|
-
|
3444
|
-
|
3445
|
-
|
3446
|
-
|
3447
|
-
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
|
3458
|
-
|
3459
|
-
|
3460
|
-
|
3461
|
-
|
3442
|
+
try {
|
3443
|
+
$(element).mousedown(function() {
|
3444
|
+
ignoreTouch = true;
|
3445
|
+
}).mouseup(function() {
|
3446
|
+
ignoreTouch = false;
|
3447
|
+
}).kendoTouch({
|
3448
|
+
multiTouch: true,
|
3449
|
+
enableSwipe: true,
|
3450
|
+
swipe: function(e) {
|
3451
|
+
if (!ignoreTouch) {
|
3452
|
+
onSwipe(e);
|
3453
|
+
}
|
3454
|
+
},
|
3455
|
+
gesturestart: function(e) {
|
3456
|
+
if (!ignoreTouch) {
|
3457
|
+
onGestureStart(e);
|
3458
|
+
}
|
3459
|
+
},
|
3460
|
+
gestureend: function(e) {
|
3461
|
+
if (!ignoreTouch) {
|
3462
|
+
onGestureEnd(e);
|
3463
|
+
}
|
3464
|
+
},
|
3465
|
+
gesturechange: function(e) {
|
3466
|
+
if (!ignoreTouch) {
|
3467
|
+
onGestureChange(e);
|
3468
|
+
}
|
3469
|
+
},
|
3470
|
+
doubletap: function(e) {
|
3471
|
+
if (!ignoreTouch) {
|
3472
|
+
onDoubleTap(e);
|
3473
|
+
}
|
3474
|
+
},
|
3475
|
+
touchstart: function(e) {
|
3476
|
+
if (!ignoreTouch) {
|
3477
|
+
fire("touchstart");
|
3478
|
+
}
|
3462
3479
|
}
|
3463
|
-
}
|
3464
|
-
})
|
3480
|
+
});
|
3481
|
+
} catch (e) {
|
3482
|
+
console.error("Instantiation of Kendo Touch threw an exception", e);
|
3483
|
+
throw e;
|
3484
|
+
}
|
3465
3485
|
}
|
3466
3486
|
}
|
3467
3487
|
function onDoubleTap(e) {
|
@@ -4004,11 +4024,16 @@ var telerikReportViewer = {};
|
|
4004
4024
|
function getToolTip(target, toolTipContent) {
|
4005
4025
|
var ktt = target.data("kendoTooltip");
|
4006
4026
|
if (!ktt) {
|
4007
|
-
|
4008
|
-
|
4009
|
-
|
4010
|
-
|
4011
|
-
|
4027
|
+
try {
|
4028
|
+
ktt = target.kendoTooltip({
|
4029
|
+
content: toolTipContent,
|
4030
|
+
autohide: true,
|
4031
|
+
callout: false
|
4032
|
+
}).data("kendoTooltip");
|
4033
|
+
} catch (e) {
|
4034
|
+
console.error("Instantiation of Kendo Tooltip threw an exception", e);
|
4035
|
+
throw e;
|
4036
|
+
}
|
4012
4037
|
}
|
4013
4038
|
return ktt;
|
4014
4039
|
}
|
@@ -4140,11 +4165,16 @@ var telerikReportViewer = {};
|
|
4140
4165
|
var hasDocumentMap = documentMap && !$.isEmptyObject(documentMap);
|
4141
4166
|
var $treeView = $documentMap.data("kendoTreeView");
|
4142
4167
|
if (!$treeView) {
|
4143
|
-
|
4144
|
-
|
4145
|
-
|
4146
|
-
|
4147
|
-
|
4168
|
+
try {
|
4169
|
+
$documentMap.kendoTreeView({
|
4170
|
+
dataTextField: "text",
|
4171
|
+
select: onTreeViewSelectionChanged
|
4172
|
+
});
|
4173
|
+
$treeView = $documentMap.data("kendoTreeView");
|
4174
|
+
} catch (e) {
|
4175
|
+
console.error("Instantiation of Kendo TreeView as Document Map threw an exception", e);
|
4176
|
+
throw e;
|
4177
|
+
}
|
4148
4178
|
}
|
4149
4179
|
$treeView.setDataSource(documentMap);
|
4150
4180
|
if (enableAccessibility) {
|
@@ -4555,15 +4585,20 @@ var telerikReportViewer = {};
|
|
4555
4585
|
beginEdit: function(param) {
|
4556
4586
|
clear();
|
4557
4587
|
parameter = param;
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4561
|
-
|
4562
|
-
|
4563
|
-
|
4564
|
-
|
4565
|
-
|
4566
|
-
|
4588
|
+
try {
|
4589
|
+
listView = $list.kendoListView({
|
4590
|
+
template: kendo.template('<div class="trv-listviewitem" style="cursor: pointer">${name}</div>'),
|
4591
|
+
dataSource: {
|
4592
|
+
data: parameter.availableValues
|
4593
|
+
},
|
4594
|
+
selectable: "MULTIPLE",
|
4595
|
+
navigatable: navigatableEnabledForList(options.enableAccessibility),
|
4596
|
+
change: onChange
|
4597
|
+
}).data("kendoListView");
|
4598
|
+
} catch (e) {
|
4599
|
+
console.error("Instantiation of Kendo ListView as MultiSelect parameter editor threw an exception", e);
|
4600
|
+
throw e;
|
4601
|
+
}
|
4567
4602
|
init();
|
4568
4603
|
},
|
4569
4604
|
enable: function(enable) {
|
@@ -4655,25 +4690,29 @@ var telerikReportViewer = {};
|
|
4655
4690
|
beginEdit: function(param) {
|
4656
4691
|
reset();
|
4657
4692
|
parameter = param;
|
4658
|
-
|
4659
|
-
|
4660
|
-
|
4661
|
-
|
4662
|
-
|
4663
|
-
|
4664
|
-
|
4665
|
-
|
4666
|
-
|
4667
|
-
|
4668
|
-
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
|
4675
|
-
|
4676
|
-
|
4693
|
+
try {
|
4694
|
+
editor = $editorDom.kendoMultiSelect({
|
4695
|
+
itemTemplate: '<div class="trv-editoritem">${name}</div>',
|
4696
|
+
dataSource: parameter.availableValues,
|
4697
|
+
dataTextField: "name",
|
4698
|
+
dataValueField: "value",
|
4699
|
+
value: parameter.value,
|
4700
|
+
filter: "contains",
|
4701
|
+
autoClose: false,
|
4702
|
+
open: function() {
|
4703
|
+
popUpIsClosed = false;
|
4704
|
+
},
|
4705
|
+
close: function(e) {
|
4706
|
+
popUpIsClosed = true;
|
4707
|
+
onChange();
|
4708
|
+
},
|
4709
|
+
autoWidth: true,
|
4710
|
+
clearButton: false
|
4711
|
+
}).data("kendoMultiSelect");
|
4712
|
+
} catch (e) {
|
4713
|
+
console.error("Instantiation of Kendo MultiSelect as MultiSelectCombo parameter editor threw an exception", e);
|
4714
|
+
throw e;
|
4715
|
+
}
|
4677
4716
|
init($editorDom);
|
4678
4717
|
},
|
4679
4718
|
enable: function(enable) {
|
@@ -4758,15 +4797,19 @@ var telerikReportViewer = {};
|
|
4758
4797
|
beginEdit: function(param) {
|
4759
4798
|
reset();
|
4760
4799
|
parameter = param;
|
4761
|
-
|
4762
|
-
|
4763
|
-
|
4764
|
-
|
4765
|
-
|
4766
|
-
|
4767
|
-
|
4768
|
-
|
4769
|
-
|
4800
|
+
try {
|
4801
|
+
listView = $list.kendoListView({
|
4802
|
+
template: '<div class="trv-listviewitem">${name}</div>',
|
4803
|
+
dataSource: {
|
4804
|
+
data: parameter.availableValues
|
4805
|
+
},
|
4806
|
+
selectable: true,
|
4807
|
+
navigatable: navigatableEnabledForList(options.enableAccessibility)
|
4808
|
+
}).data("kendoListView");
|
4809
|
+
} catch (e) {
|
4810
|
+
console.error("Instantiation of Kendo ListView as SingleSelect parameter editor threw an exception", e);
|
4811
|
+
throw e;
|
4812
|
+
}
|
4770
4813
|
init($list);
|
4771
4814
|
},
|
4772
4815
|
enable: function(enable) {
|
@@ -4841,17 +4884,21 @@ var telerikReportViewer = {};
|
|
4841
4884
|
beginEdit: function(param) {
|
4842
4885
|
reset();
|
4843
4886
|
parameter = param;
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4851
|
-
|
4852
|
-
|
4853
|
-
|
4854
|
-
|
4887
|
+
try {
|
4888
|
+
editor = $editorDom.kendoComboBox({
|
4889
|
+
template: '<div class="trv-editoritem">${name}</div>',
|
4890
|
+
dataSource: parameter.availableValues,
|
4891
|
+
dataTextField: "name",
|
4892
|
+
dataValueField: "value",
|
4893
|
+
value: parameter.value,
|
4894
|
+
filter: "contains",
|
4895
|
+
suggest: true,
|
4896
|
+
clearButton: false
|
4897
|
+
}).data("kendoComboBox");
|
4898
|
+
} catch (e) {
|
4899
|
+
console.error("Instantiation of Kendo ComboBox as SingleSelectCombo parameter editor threw an exception", e);
|
4900
|
+
throw e;
|
4901
|
+
}
|
4855
4902
|
init($editorDom);
|
4856
4903
|
},
|
4857
4904
|
enable: function(enable) {
|
@@ -4912,19 +4959,24 @@ var telerikReportViewer = {};
|
|
4912
4959
|
createEditor: function(placeholder, options) {
|
4913
4960
|
var $placeholder = $(placeholder), parameter;
|
4914
4961
|
$placeholder.html(options.templates["trv-parameter-editor-datetime"]);
|
4915
|
-
|
4916
|
-
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
|
4962
|
+
try {
|
4963
|
+
var $dateTimePicker = $placeholder.find("input[type=datetime]").kendoDatePicker({
|
4964
|
+
change: function() {
|
4965
|
+
var handler = options.parameterChanged;
|
4966
|
+
if (handler) {
|
4967
|
+
var dtv = this.value();
|
4968
|
+
if (null !== dtv) {
|
4969
|
+
dtv = utils.adjustTimezone(dtv);
|
4970
|
+
}
|
4971
|
+
handler(parameter, dtv);
|
4922
4972
|
}
|
4923
|
-
handler(parameter, dtv);
|
4924
4973
|
}
|
4925
|
-
}
|
4926
|
-
|
4927
|
-
|
4974
|
+
});
|
4975
|
+
var dateTimePicker = $dateTimePicker.data("kendoDatePicker");
|
4976
|
+
} catch (e) {
|
4977
|
+
console.error("Instantiation of Kendo DatePicker as DateTime parameter editor threw an exception", e);
|
4978
|
+
throw e;
|
4979
|
+
}
|
4928
4980
|
function setValue(value) {
|
4929
4981
|
parameter.value = value;
|
4930
4982
|
var dt = null;
|
@@ -6181,7 +6233,12 @@ var telerikReportViewer = {};
|
|
6181
6233
|
}
|
6182
6234
|
});
|
6183
6235
|
function init() {
|
6184
|
-
|
6236
|
+
try {
|
6237
|
+
menu = $(dom).kendoMenu().data("kendoMenu");
|
6238
|
+
} catch (e) {
|
6239
|
+
console.error("Instantiation of Kendo Menu as Main Menu threw an exception", e);
|
6240
|
+
throw e;
|
6241
|
+
}
|
6185
6242
|
menu.bind("open", onSubmenuOpen);
|
6186
6243
|
menu.bind("activate", onSubmenuActivate);
|
6187
6244
|
menu.bind("deactivate", onSubmenuDeactivate);
|
@@ -6511,7 +6568,12 @@ var telerikReportViewer = {};
|
|
6511
6568
|
}
|
6512
6569
|
function init(root) {
|
6513
6570
|
var $root = $(root);
|
6514
|
-
|
6571
|
+
try {
|
6572
|
+
panelBar = $root.children("ul").kendoPanelBar().data("kendoPanelBar");
|
6573
|
+
} catch (e) {
|
6574
|
+
console.error("Instantiation of Kendo PanelBar as side menu threw an exception", e);
|
6575
|
+
throw e;
|
6576
|
+
}
|
6515
6577
|
panelBar.bind("expand", onSubmenuOpen);
|
6516
6578
|
panelBar.element.off("keydown", onPanelKeyDown);
|
6517
6579
|
panelBar.element.on("keydown", onPanelKeyDown);
|
@@ -6694,7 +6756,7 @@ var telerikReportViewer = {};
|
|
6694
6756
|
return;
|
6695
6757
|
}
|
6696
6758
|
utils.each(menuAreas, function() {
|
6697
|
-
var $menu = $(this), menuItems = $menu.children("li.k-
|
6759
|
+
var $menu = $(this), menuItems = $menu.children("li.k-panelbar-header");
|
6698
6760
|
$menu.attr("aria-label", sr[$menu.attr("aria-label")]);
|
6699
6761
|
utils.each(menuItems, function() {
|
6700
6762
|
var $menuItem = $(this), $a = $menuItem.find("a");
|
@@ -6780,11 +6842,15 @@ var telerikReportViewer = {};
|
|
6780
6842
|
(cmd.enabled() ? $.fn.removeClass : $.fn.addClass).call($defaultElement.parent("li"), "k-disabled");
|
6781
6843
|
(cmd.enabled() ? $.fn.removeClass : $.fn.addClass).call($customElement, viewerOptions.disabledButtonClass);
|
6782
6844
|
}).on("checkedChanged", function(e) {
|
6783
|
-
|
6845
|
+
var defaultTarget = $defaultElement.parent("li");
|
6846
|
+
(cmd.checked() ? $.fn.addClass : $.fn.removeClass).call(defaultTarget, getSelectedClassName(defaultTarget));
|
6784
6847
|
(cmd.checked() ? $.fn.addClass : $.fn.removeClass).call($customElement, viewerOptions.checkedButtonClass);
|
6785
6848
|
});
|
6786
6849
|
}
|
6787
6850
|
}
|
6851
|
+
function getSelectedClassName($element) {
|
6852
|
+
return $element.hasClass("trv-menu-toggleable") ? "k-selected !k-bg-primary" : "k-selected";
|
6853
|
+
}
|
6788
6854
|
function LinkButton(dom, options) {
|
6789
6855
|
var cmd, $element = $(dom), dataCommand = $element.attr("data-command");
|
6790
6856
|
if (dataCommand) {
|
@@ -7308,9 +7374,14 @@ var telerikReportViewer = {};
|
|
7308
7374
|
$resultsPlaceholder = $placeholder.find(".trv-search-dialog-results-area");
|
7309
7375
|
initResultsArea();
|
7310
7376
|
replaceStringResources($placeholder);
|
7311
|
-
|
7312
|
-
|
7313
|
-
|
7377
|
+
try {
|
7378
|
+
$searchOptionsPlaceholder = $placeholder.find(".trv-search-dialog-search-options").kendoMenu();
|
7379
|
+
$stopSearchPlaceholder = $placeholder.find(".trv-search-dialog-stopsearch-placeholder").kendoMenu();
|
7380
|
+
$navigationPlaceholder = $placeholder.find(".trv-search-dialog-navigational-buttons").kendoMenu();
|
7381
|
+
} catch (e) {
|
7382
|
+
console.error("Instantiation of Kendo Menu for Search Dialog threw an exception", e);
|
7383
|
+
throw e;
|
7384
|
+
}
|
7314
7385
|
searchOptionsMenu = $searchOptionsPlaceholder.data("kendoMenu");
|
7315
7386
|
stopSearchMenu = $stopSearchPlaceholder.data("kendoMenu");
|
7316
7387
|
navigationMenu = $navigationPlaceholder.data("kendoMenu");
|
@@ -7318,47 +7389,57 @@ var telerikReportViewer = {};
|
|
7318
7389
|
stopSearchMenu.element.on("keydown", onKeyDown);
|
7319
7390
|
navigationMenu.element.on("keydown", onKeyDown);
|
7320
7391
|
overrideDefaultMenuStyling(".trv-search-dialog-search-options");
|
7321
|
-
|
7322
|
-
|
7323
|
-
|
7324
|
-
|
7325
|
-
|
7326
|
-
|
7327
|
-
|
7328
|
-
|
7329
|
-
|
7330
|
-
|
7331
|
-
|
7332
|
-
|
7333
|
-
|
7392
|
+
try {
|
7393
|
+
kendoComboBox = $inputBox.kendoComboBox({
|
7394
|
+
dataTextField: "value",
|
7395
|
+
dataValueField: "value",
|
7396
|
+
dataSource: mruList,
|
7397
|
+
contentElement: "",
|
7398
|
+
change: kendoComboBoxSelect,
|
7399
|
+
ignoreCase: false,
|
7400
|
+
filtering: onInputFiltering,
|
7401
|
+
filter: "startswith",
|
7402
|
+
delay: 1e3,
|
7403
|
+
open: function(e) {
|
7404
|
+
if (inputComboRebinding) {
|
7405
|
+
e.preventDefault();
|
7406
|
+
}
|
7407
|
+
},
|
7408
|
+
select: processComboBoxEvent
|
7409
|
+
}).data("kendoComboBox");
|
7410
|
+
} catch (e) {
|
7411
|
+
console.error("Instantiation of Kendo ComboBox as search input threw an exception", e);
|
7412
|
+
throw e;
|
7413
|
+
}
|
7414
|
+
try {
|
7415
|
+
kendoSearchDialog = reportViewerWrapper.find(".trv-search-window").kendoWindow({
|
7416
|
+
title: sr.searchDialogTitle,
|
7417
|
+
height: 390,
|
7418
|
+
width: 310,
|
7419
|
+
minWidth: 310,
|
7420
|
+
minHeight: 390,
|
7421
|
+
maxHeight: 700,
|
7422
|
+
scrollable: false,
|
7423
|
+
close: function() {
|
7424
|
+
storeDialogPosition();
|
7425
|
+
lastSearch = "";
|
7426
|
+
},
|
7427
|
+
open: function() {
|
7428
|
+
adjustDialogPosition();
|
7429
|
+
},
|
7430
|
+
deactivate: function() {
|
7431
|
+
controller.setSearchDialogVisible({
|
7432
|
+
visible: false
|
7433
|
+
});
|
7434
|
+
},
|
7435
|
+
activate: function() {
|
7436
|
+
kendoComboBox.input.focus();
|
7334
7437
|
}
|
7335
|
-
}
|
7336
|
-
|
7337
|
-
|
7338
|
-
|
7339
|
-
|
7340
|
-
height: 390,
|
7341
|
-
width: 310,
|
7342
|
-
minWidth: 310,
|
7343
|
-
minHeight: 390,
|
7344
|
-
maxHeight: 700,
|
7345
|
-
scrollable: false,
|
7346
|
-
close: function() {
|
7347
|
-
storeDialogPosition();
|
7348
|
-
lastSearch = "";
|
7349
|
-
},
|
7350
|
-
open: function() {
|
7351
|
-
adjustDialogPosition();
|
7352
|
-
},
|
7353
|
-
deactivate: function() {
|
7354
|
-
controller.setSearchDialogVisible({
|
7355
|
-
visible: false
|
7356
|
-
});
|
7357
|
-
},
|
7358
|
-
activate: function() {
|
7359
|
-
kendoComboBox.input.focus();
|
7360
|
-
}
|
7361
|
-
}).data("kendoWindow");
|
7438
|
+
}).data("kendoWindow");
|
7439
|
+
} catch (e) {
|
7440
|
+
console.error("Instantiation of Kendo Window for Search dialog threw an exception", e);
|
7441
|
+
throw e;
|
7442
|
+
}
|
7362
7443
|
kendoSearchDialog.wrapper.addClass("trv-search");
|
7363
7444
|
initCommands();
|
7364
7445
|
initialized = true;
|
@@ -7488,18 +7569,23 @@ var telerikReportViewer = {};
|
|
7488
7569
|
}, viewerOptions);
|
7489
7570
|
}
|
7490
7571
|
function initResultsArea() {
|
7491
|
-
|
7492
|
-
|
7493
|
-
|
7494
|
-
|
7495
|
-
|
7496
|
-
|
7497
|
-
|
7498
|
-
|
7499
|
-
|
7500
|
-
|
7501
|
-
|
7502
|
-
|
7572
|
+
try {
|
7573
|
+
$resultsPlaceholder.kendoListView({
|
7574
|
+
selectable: true,
|
7575
|
+
navigatable: true,
|
7576
|
+
dataSource: {},
|
7577
|
+
contentElement: "",
|
7578
|
+
template: "<div class='trv-search-dialog-results-row'><span>#: description #</span> <span class='trv-search-dialog-results-pageSpan'>" + sr.searchDialogPageText + " #:page#</span></div>",
|
7579
|
+
change: function() {
|
7580
|
+
var index = this.select().index(), view = this.dataSource.view(), dataItem = view[index];
|
7581
|
+
onSelectedItem(dataItem);
|
7582
|
+
updateUI(index, view.length);
|
7583
|
+
}
|
7584
|
+
});
|
7585
|
+
} catch (e) {
|
7586
|
+
console.error("Instantiation of Kendo ListView as search result area threw an exception", e);
|
7587
|
+
throw e;
|
7588
|
+
}
|
7503
7589
|
}
|
7504
7590
|
function stopSearch() {
|
7505
7591
|
setStopButtonEnabledState(false);
|
@@ -7855,7 +7941,6 @@ var telerikReportViewer = {};
|
|
7855
7941
|
cache[url] = p = client.get(url).then(function(html) {
|
7856
7942
|
var templates = {};
|
7857
7943
|
var styleSheets = [];
|
7858
|
-
var scripts = [];
|
7859
7944
|
var baseUri = utils.rtrim(serviceUrl, "\\/") + "/";
|
7860
7945
|
html = utils.replaceAll(html, "{service}/", baseUri);
|
7861
7946
|
html = utils.replaceAll(html, "{service}", baseUri);
|
@@ -7868,13 +7953,9 @@ var telerikReportViewer = {};
|
|
7868
7953
|
styleSheets.push(utils.trim(e.outerHTML, "\n \t"));
|
7869
7954
|
});
|
7870
7955
|
styleSheets = utils.filterUniqueLastOccurance(styleSheets);
|
7871
|
-
utils.each(viewerTemplate.find("script"), function(index, e) {
|
7872
|
-
scripts.push(utils.trim(e.innerHTML, "\n \t"));
|
7873
|
-
});
|
7874
7956
|
return {
|
7875
7957
|
templates: templates,
|
7876
|
-
styleSheets: styleSheets
|
7877
|
-
scripts: scripts
|
7958
|
+
styleSheets: styleSheets
|
7878
7959
|
};
|
7879
7960
|
});
|
7880
7961
|
}
|
@@ -8047,13 +8128,13 @@ var telerikReportViewer = {};
|
|
8047
8128
|
reportServerUrlSVCApiUrl = utils.rtrim(options.reportServer.url, "\\/");
|
8048
8129
|
svcApiUrl = reportServerUrlSVCApiUrl + "/api/reports";
|
8049
8130
|
}
|
8050
|
-
var $placeholder = $(dom), templates = {},
|
8131
|
+
var $placeholder = $(dom), templates = {}, persistanceKey = options.id || "#" + $placeholder.attr("id"), accessibility, settings = {}, client = {}, controller = {}, perspectiveManager = {}, history = {}, commands = {}, viewer = {}, serviceClientOptions = {}, reportServerUrl = "";
|
8051
8132
|
options.viewerSelector = "reportViewer-" + utils.generateGuidString();
|
8052
8133
|
$placeholder.attr("data-selector", options.viewerSelector);
|
8053
8134
|
if (!validateOptions(options)) {
|
8054
8135
|
return;
|
8055
8136
|
}
|
8056
|
-
var version = "17.0.23.
|
8137
|
+
var version = "17.0.23.427";
|
8057
8138
|
options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
8058
8139
|
settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
|
8059
8140
|
scale: options.scale,
|
@@ -8315,25 +8396,35 @@ var telerikReportViewer = {};
|
|
8315
8396
|
} else {
|
8316
8397
|
parameterAreaPanes.push(parameterAreaPaneOptions);
|
8317
8398
|
}
|
8318
|
-
|
8319
|
-
|
8320
|
-
|
8321
|
-
|
8322
|
-
|
8323
|
-
|
8324
|
-
|
8325
|
-
|
8326
|
-
|
8327
|
-
|
8328
|
-
|
8329
|
-
|
8330
|
-
|
8331
|
-
|
8332
|
-
|
8333
|
-
|
8334
|
-
|
8335
|
-
|
8336
|
-
|
8399
|
+
try {
|
8400
|
+
var documentMapSplitter = $placeholder.find(".trv-document-map-splitter").kendoSplitter({
|
8401
|
+
panes: documentMapPanes,
|
8402
|
+
expand: function(e) {
|
8403
|
+
setSplitterPaneVisibility(e.pane, true);
|
8404
|
+
},
|
8405
|
+
collapse: function(e) {
|
8406
|
+
setSplitterPaneVisibility(e.pane, false);
|
8407
|
+
}
|
8408
|
+
}).data("kendoSplitter");
|
8409
|
+
} catch (e) {
|
8410
|
+
console.error("Instantiation of Kendo Splitter as Document Map splitter threw an exception", e);
|
8411
|
+
throw e;
|
8412
|
+
}
|
8413
|
+
try {
|
8414
|
+
var parametersSplitter = $placeholder.find(".trv-parameters-splitter").kendoSplitter({
|
8415
|
+
panes: parameterAreaPanes,
|
8416
|
+
orientation: orientation,
|
8417
|
+
expand: function(e) {
|
8418
|
+
setSplitterPaneVisibility(e.pane, true);
|
8419
|
+
},
|
8420
|
+
collapse: function(e) {
|
8421
|
+
setSplitterPaneVisibility(e.pane, false);
|
8422
|
+
}
|
8423
|
+
}).data("kendoSplitter");
|
8424
|
+
} catch (e) {
|
8425
|
+
console.error("Instantiation of Kendo Splitter as Parameters area splitter threw an exception", e);
|
8426
|
+
throw e;
|
8427
|
+
}
|
8337
8428
|
trv[options.viewerSelector + "-parameters-splitter"] = parametersSplitter;
|
8338
8429
|
trv[options.viewerSelector + "-document-map-splitter"] = documentMapSplitter;
|
8339
8430
|
}
|
@@ -8462,13 +8553,6 @@ var telerikReportViewer = {};
|
|
8462
8553
|
pendingRefresh = true;
|
8463
8554
|
}
|
8464
8555
|
}
|
8465
|
-
for (var i = 0; i < scripts.length; i++) {
|
8466
|
-
try {
|
8467
|
-
eval(scripts[i]);
|
8468
|
-
} catch (e) {
|
8469
|
-
if (console) console.log(e);
|
8470
|
-
}
|
8471
|
-
}
|
8472
8556
|
if (typeof options.ready === "function") {
|
8473
8557
|
options.ready.call(viewer);
|
8474
8558
|
}
|
@@ -8527,7 +8611,6 @@ var telerikReportViewer = {};
|
|
8527
8611
|
return Promise.reject();
|
8528
8612
|
}).then(function(result) {
|
8529
8613
|
templates = result.templates;
|
8530
|
-
scripts = result.scripts;
|
8531
8614
|
return loadStyleSheets(result.styleSheets);
|
8532
8615
|
}).then(start);
|
8533
8616
|
});
|
@@ -8557,4 +8640,4 @@ module.exports = {
|
|
8557
8640
|
ReportViewer: telerikReportViewer.ReportViewer
|
8558
8641
|
};
|
8559
8642
|
|
8560
|
-
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
8643
|
+
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 8FD392722AD2073AC04E994CA5FEE2C6 */
|