@progress/telerik-angular-report-viewer 17.22.1109 → 18.23.315

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
3
  /*
4
- * TelerikReporting v16.2.22.1109 (https://www.telerik.com/products/reporting.aspx)
5
- * Copyright 2022 Progress Software EAD. All rights reserved.
4
+ * TelerikReporting v17.0.23.315 (https://www.telerik.com/products/reporting.aspx)
5
+ * Copyright 2023 Progress Software EAD. All rights reserved.
6
6
  *
7
7
  * Telerik Reporting commercial licenses may be obtained at
8
8
  * https://www.telerik.com/purchase/license-agreement/reporting.aspx
@@ -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,61 +7374,83 @@ 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");
7317
7388
  searchOptionsMenu.element.on("keydown", onKeyDown);
7318
7389
  stopSearchMenu.element.on("keydown", onKeyDown);
7319
7390
  navigationMenu.element.on("keydown", onKeyDown);
7320
- kendoComboBox = $inputBox.kendoComboBox({
7321
- dataTextField: "value",
7322
- dataValueField: "value",
7323
- dataSource: mruList,
7324
- contentElement: "",
7325
- change: kendoComboBoxSelect,
7326
- ignoreCase: false,
7327
- filtering: onInputFiltering,
7328
- filter: "startswith",
7329
- delay: 1e3,
7330
- open: function(e) {
7331
- if (inputComboRebinding) {
7332
- e.preventDefault();
7391
+ overrideDefaultMenuStyling(".trv-search-dialog-search-options");
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();
7333
7437
  }
7334
- },
7335
- select: processComboBoxEvent
7336
- }).data("kendoComboBox");
7337
- kendoSearchDialog = reportViewerWrapper.find(".trv-search-window").kendoWindow({
7338
- title: sr.searchDialogTitle,
7339
- height: 390,
7340
- width: 310,
7341
- minWidth: 310,
7342
- minHeight: 390,
7343
- maxHeight: 700,
7344
- scrollable: false,
7345
- close: function() {
7346
- storeDialogPosition();
7347
- lastSearch = "";
7348
- },
7349
- open: function() {
7350
- adjustDialogPosition();
7351
- },
7352
- deactivate: function() {
7353
- controller.setSearchDialogVisible({
7354
- visible: false
7355
- });
7356
- },
7357
- activate: function() {
7358
- kendoComboBox.input.focus();
7359
- }
7360
- }).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
+ }
7361
7443
  kendoSearchDialog.wrapper.addClass("trv-search");
7362
7444
  initCommands();
7363
7445
  initialized = true;
7364
7446
  }
7365
7447
  }
7448
+ function overrideDefaultMenuStyling(kendoMenuSelector) {
7449
+ var menuItems = $(kendoMenuSelector).find(".k-menu-item");
7450
+ for (var i = 0; i < menuItems.length; i++) {
7451
+ $(menuItems[i]).removeClass("k-item");
7452
+ }
7453
+ }
7366
7454
  function onKeyDown(event) {
7367
7455
  var item = $(event.target).find(".k-focus");
7368
7456
  if (event.keyCode === 13 && item && item.length > 0) {
@@ -7481,18 +7569,23 @@ var telerikReportViewer = {};
7481
7569
  }, viewerOptions);
7482
7570
  }
7483
7571
  function initResultsArea() {
7484
- $resultsPlaceholder.kendoListView({
7485
- selectable: true,
7486
- navigatable: true,
7487
- dataSource: {},
7488
- contentElement: "",
7489
- template: "<div class='trv-search-dialog-results-row'><span>#: description #</span> <span class='trv-search-dialog-results-pageSpan'>" + sr.searchDialogPageText + " #:page#</span></div>",
7490
- change: function() {
7491
- var index = this.select().index(), view = this.dataSource.view(), dataItem = view[index];
7492
- onSelectedItem(dataItem);
7493
- updateUI(index, view.length);
7494
- }
7495
- });
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
+ }
7496
7589
  }
7497
7590
  function stopSearch() {
7498
7591
  setStopButtonEnabledState(false);
@@ -7848,7 +7941,6 @@ var telerikReportViewer = {};
7848
7941
  cache[url] = p = client.get(url).then(function(html) {
7849
7942
  var templates = {};
7850
7943
  var styleSheets = [];
7851
- var scripts = [];
7852
7944
  var baseUri = utils.rtrim(serviceUrl, "\\/") + "/";
7853
7945
  html = utils.replaceAll(html, "{service}/", baseUri);
7854
7946
  html = utils.replaceAll(html, "{service}", baseUri);
@@ -7861,13 +7953,9 @@ var telerikReportViewer = {};
7861
7953
  styleSheets.push(utils.trim(e.outerHTML, "\n \t"));
7862
7954
  });
7863
7955
  styleSheets = utils.filterUniqueLastOccurance(styleSheets);
7864
- utils.each(viewerTemplate.find("script"), function(index, e) {
7865
- scripts.push(utils.trim(e.innerHTML, "\n \t"));
7866
- });
7867
7956
  return {
7868
7957
  templates: templates,
7869
- styleSheets: styleSheets,
7870
- scripts: scripts
7958
+ styleSheets: styleSheets
7871
7959
  };
7872
7960
  });
7873
7961
  }
@@ -8040,13 +8128,13 @@ var telerikReportViewer = {};
8040
8128
  reportServerUrlSVCApiUrl = utils.rtrim(options.reportServer.url, "\\/");
8041
8129
  svcApiUrl = reportServerUrlSVCApiUrl + "/api/reports";
8042
8130
  }
8043
- 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 = "";
8044
8132
  options.viewerSelector = "reportViewer-" + utils.generateGuidString();
8045
8133
  $placeholder.attr("data-selector", options.viewerSelector);
8046
8134
  if (!validateOptions(options)) {
8047
8135
  return;
8048
8136
  }
8049
- var version = "16.2.22.1109";
8137
+ var version = "17.0.23.315";
8050
8138
  options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
8051
8139
  settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
8052
8140
  scale: options.scale,
@@ -8308,25 +8396,35 @@ var telerikReportViewer = {};
8308
8396
  } else {
8309
8397
  parameterAreaPanes.push(parameterAreaPaneOptions);
8310
8398
  }
8311
- var documentMapSplitter = $placeholder.find(".trv-document-map-splitter").kendoSplitter({
8312
- panes: documentMapPanes,
8313
- expand: function(e) {
8314
- setSplitterPaneVisibility(e.pane, true);
8315
- },
8316
- collapse: function(e) {
8317
- setSplitterPaneVisibility(e.pane, false);
8318
- }
8319
- }).data("kendoSplitter");
8320
- var parametersSplitter = $placeholder.find(".trv-parameters-splitter").kendoSplitter({
8321
- panes: parameterAreaPanes,
8322
- orientation: orientation,
8323
- expand: function(e) {
8324
- setSplitterPaneVisibility(e.pane, true);
8325
- },
8326
- collapse: function(e) {
8327
- setSplitterPaneVisibility(e.pane, false);
8328
- }
8329
- }).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
+ }
8330
8428
  trv[options.viewerSelector + "-parameters-splitter"] = parametersSplitter;
8331
8429
  trv[options.viewerSelector + "-document-map-splitter"] = documentMapSplitter;
8332
8430
  }
@@ -8455,13 +8553,6 @@ var telerikReportViewer = {};
8455
8553
  pendingRefresh = true;
8456
8554
  }
8457
8555
  }
8458
- for (var i = 0; i < scripts.length; i++) {
8459
- try {
8460
- eval(scripts[i]);
8461
- } catch (e) {
8462
- if (console) console.log(e);
8463
- }
8464
- }
8465
8556
  if (typeof options.ready === "function") {
8466
8557
  options.ready.call(viewer);
8467
8558
  }
@@ -8520,7 +8611,6 @@ var telerikReportViewer = {};
8520
8611
  return Promise.reject();
8521
8612
  }).then(function(result) {
8522
8613
  templates = result.templates;
8523
- scripts = result.scripts;
8524
8614
  return loadStyleSheets(result.styleSheets);
8525
8615
  }).then(start);
8526
8616
  });
@@ -8550,4 +8640,4 @@ module.exports = {
8550
8640
  ReportViewer: telerikReportViewer.ReportViewer
8551
8641
  };
8552
8642
 
8553
- /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 9839B65C7E3E51AC7D98F1F159CF35DB */
8643
+ /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM B99F899179E040FD7449369061F1E8E8 */