@progress/telerik-react-report-viewer 18.23.118 → 18.23.315

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  /*
4
- * TelerikReporting v17.0.23.118 (https://www.telerik.com/products/reporting.aspx)
4
+ * TelerikReporting v17.0.23.315 (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
- kendoSendEmailDialog = reportViewerWrapper.find(".trv-send-email-window").kendoWindow({
1534
- title: sr.sendEmailDialogTitle,
1535
- minWidth: 350,
1536
- minHeight: 350,
1537
- maxHeight: 900,
1538
- modal: true,
1539
- close: function() {
1540
- storeDialogPosition();
1541
- clearValidation();
1542
- },
1543
- open: function() {
1544
- adjustDialogSize();
1545
- adjustDialogPosition();
1546
- },
1547
- deactivate: function() {
1548
- controller.setSendEmailDialogVisible({
1549
- visible: false
1550
- });
1551
- },
1552
- activate: function() {
1553
- kendoSendEmailDialog.wrapper.find(".trv-send-email-fields input[type='email']:visible").first().focus();
1554
- setTimeout(function() {
1555
- setValidation();
1556
- }, 250);
1557
- }
1558
- }).data("kendoWindow");
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
- docFormat = docFormatEl.kendoComboBox({
1561
- dataTextField: "localizedName",
1562
- dataValueField: "name",
1563
- dataSource: docFormatList || [],
1564
- filter: "startswith",
1565
- dataBound: function() {
1566
- this.select(0);
1567
- this.trigger("change");
1568
- }
1569
- }).data("kendoComboBox");
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
- bodyEditor = bodyEditorEl.kendoEditor({
1579
- tools: [ "bold", "italic", "underline", "strikethrough", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull", "insertUnorderedList", "insertOrderedList", "indent", "outdent", "createLink", "unlink", "cleanFormatting", "formatting", "fontName", "fontSize", "foreColor", "backColor", "subscript", "superscript" ]
1580
- }).data("kendoEditor");
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
- $(element).mousedown(function() {
3428
- ignoreTouch = true;
3429
- }).mouseup(function() {
3430
- ignoreTouch = false;
3431
- }).kendoTouch({
3432
- multiTouch: true,
3433
- enableSwipe: true,
3434
- swipe: function(e) {
3435
- if (!ignoreTouch) {
3436
- onSwipe(e);
3437
- }
3438
- },
3439
- gesturestart: function(e) {
3440
- if (!ignoreTouch) {
3441
- onGestureStart(e);
3442
- }
3443
- },
3444
- gestureend: function(e) {
3445
- if (!ignoreTouch) {
3446
- onGestureEnd(e);
3447
- }
3448
- },
3449
- gesturechange: function(e) {
3450
- if (!ignoreTouch) {
3451
- onGestureChange(e);
3452
- }
3453
- },
3454
- doubletap: function(e) {
3455
- if (!ignoreTouch) {
3456
- onDoubleTap(e);
3457
- }
3458
- },
3459
- touchstart: function(e) {
3460
- if (!ignoreTouch) {
3461
- fire("touchstart");
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
- ktt = target.kendoTooltip({
4008
- content: toolTipContent,
4009
- autohide: true,
4010
- callout: false
4011
- }).data("kendoTooltip");
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
- $documentMap.kendoTreeView({
4144
- dataTextField: "text",
4145
- select: onTreeViewSelectionChanged
4146
- });
4147
- $treeView = $documentMap.data("kendoTreeView");
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
- listView = $list.kendoListView({
4559
- template: kendo.template('<div class="trv-listviewitem" style="cursor: pointer">${name}</div>'),
4560
- dataSource: {
4561
- data: parameter.availableValues
4562
- },
4563
- selectable: "MULTIPLE",
4564
- navigatable: navigatableEnabledForList(options.enableAccessibility),
4565
- change: onChange
4566
- }).data("kendoListView");
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
- $editorDom.kendoMultiSelect({
4659
- itemTemplate: '<div class="trv-editoritem">${name}</div>',
4660
- dataSource: parameter.availableValues,
4661
- dataTextField: "name",
4662
- dataValueField: "value",
4663
- value: parameter.value,
4664
- filter: "contains",
4665
- autoClose: false,
4666
- open: function() {
4667
- popUpIsClosed = false;
4668
- },
4669
- close: function(e) {
4670
- popUpIsClosed = true;
4671
- onChange();
4672
- },
4673
- autoWidth: true,
4674
- clearButton: false
4675
- });
4676
- editor = $editorDom.data("kendoMultiSelect");
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
- $list.kendoListView({
4762
- template: '<div class="trv-listviewitem">${name}</div>',
4763
- dataSource: {
4764
- data: parameter.availableValues
4765
- },
4766
- selectable: true,
4767
- navigatable: navigatableEnabledForList(options.enableAccessibility)
4768
- });
4769
- listView = $list.data("kendoListView");
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
- $editorDom.kendoComboBox({
4845
- template: '<div class="trv-editoritem">${name}</div>',
4846
- dataSource: parameter.availableValues,
4847
- dataTextField: "name",
4848
- dataValueField: "value",
4849
- value: parameter.value,
4850
- filter: "contains",
4851
- suggest: true,
4852
- clearButton: false
4853
- });
4854
- editor = $editorDom.data("kendoComboBox");
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
- var $dateTimePicker = $placeholder.find("input[type=datetime]").kendoDatePicker({
4916
- change: function() {
4917
- var handler = options.parameterChanged;
4918
- if (handler) {
4919
- var dtv = this.value();
4920
- if (null !== dtv) {
4921
- dtv = utils.adjustTimezone(dtv);
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
- var dateTimePicker = $dateTimePicker.data("kendoDatePicker");
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
- menu = $(dom).kendoMenu().data("kendoMenu");
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
- panelBar = $root.children("ul").kendoPanelBar().data("kendoPanelBar");
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);
@@ -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
- (cmd.checked() ? $.fn.addClass : $.fn.removeClass).call($defaultElement.parent("li"), "k-selected");
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
- $searchOptionsPlaceholder = $placeholder.find(".trv-search-dialog-search-options").kendoMenu();
7312
- $stopSearchPlaceholder = $placeholder.find(".trv-search-dialog-stopsearch-placeholder").kendoMenu();
7313
- $navigationPlaceholder = $placeholder.find(".trv-search-dialog-navigational-buttons").kendoMenu();
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
- kendoComboBox = $inputBox.kendoComboBox({
7322
- dataTextField: "value",
7323
- dataValueField: "value",
7324
- dataSource: mruList,
7325
- contentElement: "",
7326
- change: kendoComboBoxSelect,
7327
- ignoreCase: false,
7328
- filtering: onInputFiltering,
7329
- filter: "startswith",
7330
- delay: 1e3,
7331
- open: function(e) {
7332
- if (inputComboRebinding) {
7333
- e.preventDefault();
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
- select: processComboBoxEvent
7337
- }).data("kendoComboBox");
7338
- kendoSearchDialog = reportViewerWrapper.find(".trv-search-window").kendoWindow({
7339
- title: sr.searchDialogTitle,
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
- $resultsPlaceholder.kendoListView({
7492
- selectable: true,
7493
- navigatable: true,
7494
- dataSource: {},
7495
- contentElement: "",
7496
- template: "<div class='trv-search-dialog-results-row'><span>#: description #</span> <span class='trv-search-dialog-results-pageSpan'>" + sr.searchDialogPageText + " #:page#</span></div>",
7497
- change: function() {
7498
- var index = this.select().index(), view = this.dataSource.view(), dataItem = view[index];
7499
- onSelectedItem(dataItem);
7500
- updateUI(index, view.length);
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 = {}, scripts = {}, persistanceKey = options.id || "#" + $placeholder.attr("id"), accessibility, settings = {}, client = {}, controller = {}, perspectiveManager = {}, history = {}, commands = {}, viewer = {}, serviceClientOptions = {}, reportServerUrl = "";
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.118";
8137
+ var version = "17.0.23.315";
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
- var documentMapSplitter = $placeholder.find(".trv-document-map-splitter").kendoSplitter({
8319
- panes: documentMapPanes,
8320
- expand: function(e) {
8321
- setSplitterPaneVisibility(e.pane, true);
8322
- },
8323
- collapse: function(e) {
8324
- setSplitterPaneVisibility(e.pane, false);
8325
- }
8326
- }).data("kendoSplitter");
8327
- var parametersSplitter = $placeholder.find(".trv-parameters-splitter").kendoSplitter({
8328
- panes: parameterAreaPanes,
8329
- orientation: orientation,
8330
- expand: function(e) {
8331
- setSplitterPaneVisibility(e.pane, true);
8332
- },
8333
- collapse: function(e) {
8334
- setSplitterPaneVisibility(e.pane, false);
8335
- }
8336
- }).data("kendoSplitter");
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 CFE484D030F14DEA606E180842C9A6AC */
8643
+ /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM B99F899179E040FD7449369061F1E8E8 */