@progress/telerik-angular-report-viewer 17.22.914 → 17.22.1109
Sign up to get free protection for your applications and to get access to all the features.
package/README.md
CHANGED
@@ -18,7 +18,7 @@ While the component is not native (the theming mechanism uses Kendo UI for jQuer
|
|
18
18
|
and has a dependency to jQuery itself), it brings reporting value to your Angular applications
|
19
19
|
in no time.
|
20
20
|
|
21
|
-
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 16.2.22.
|
21
|
+
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 16.2.22.1109
|
22
22
|
|
23
23
|
## License
|
24
24
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
/*
|
4
|
-
* TelerikReporting v16.2.22.
|
4
|
+
* TelerikReporting v16.2.22.1109 (https://www.telerik.com/products/reporting.aspx)
|
5
5
|
* Copyright 2022 Progress Software EAD. All rights reserved.
|
6
6
|
*
|
7
7
|
* Telerik Reporting commercial licenses may be obtained at
|
@@ -4367,10 +4367,10 @@ var telerikReportViewer = {};
|
|
4367
4367
|
fn.call(item, cssClass);
|
4368
4368
|
}
|
4369
4369
|
function enableItem(item, enable) {
|
4370
|
-
applyClass(!enable, "k-
|
4370
|
+
applyClass(!enable, "k-disabled", item);
|
4371
4371
|
}
|
4372
4372
|
function selectItem(item, select) {
|
4373
|
-
applyClass(select, "k-
|
4373
|
+
applyClass(select, "k-selected", item);
|
4374
4374
|
item.attr("aria-selected", select);
|
4375
4375
|
}
|
4376
4376
|
function addAccessibilityAttributes(editor, type, caption, additionalInfo, error) {
|
@@ -4485,21 +4485,20 @@ var telerikReportViewer = {};
|
|
4485
4485
|
}
|
4486
4486
|
}
|
4487
4487
|
function getSelectedItems() {
|
4488
|
-
return $(listView.element).find(".k-
|
4488
|
+
return $(listView.element).find(".k-selected");
|
4489
4489
|
}
|
4490
4490
|
function onItemClick(e) {
|
4491
4491
|
if (!enabled) return;
|
4492
4492
|
var clickedItem = $(e.target);
|
4493
4493
|
var selectedItems = listView.select();
|
4494
|
-
if (clickedItem.hasClass("k-
|
4494
|
+
if (clickedItem.hasClass("k-selected")) {
|
4495
4495
|
selectedItems.splice($.inArray(clickedItem[0], selectedItems), 1);
|
4496
4496
|
} else {
|
4497
4497
|
selectedItems.push(clickedItem);
|
4498
4498
|
}
|
4499
|
-
listView.unbind("change");
|
4500
4499
|
listView.clearSelection();
|
4501
|
-
listView.bind("change", onChange);
|
4502
4500
|
listView.select(selectedItems);
|
4501
|
+
listView.trigger("change");
|
4503
4502
|
}
|
4504
4503
|
function onChange(e) {
|
4505
4504
|
onSelectionChanged(getSelectedItems());
|
@@ -4509,9 +4508,9 @@ var telerikReportViewer = {};
|
|
4509
4508
|
if (event.which !== 32) {
|
4510
4509
|
return;
|
4511
4510
|
}
|
4512
|
-
var focused = listView.element.find(".k-
|
4511
|
+
var focused = listView.element.find(".k-focus");
|
4513
4512
|
if (focused.length > 0) {
|
4514
|
-
focused.toggleClass("k-
|
4513
|
+
focused.toggleClass("k-selected");
|
4515
4514
|
onSelectionChanged(getSelectedItems());
|
4516
4515
|
event.preventDefault();
|
4517
4516
|
}
|
@@ -5337,10 +5336,10 @@ var telerikReportViewer = {};
|
|
5337
5336
|
function enablePreviewButton(enabled) {
|
5338
5337
|
if (enabled) {
|
5339
5338
|
$previewButton.prop("disabled", false);
|
5340
|
-
$previewButton.removeClass("k-
|
5339
|
+
$previewButton.removeClass("k-disabled");
|
5341
5340
|
} else {
|
5342
5341
|
$previewButton.prop("disabled", true);
|
5343
|
-
$previewButton.addClass("k-
|
5342
|
+
$previewButton.addClass("k-disabled");
|
5344
5343
|
}
|
5345
5344
|
}
|
5346
5345
|
function selectParameterEditorFactory(parameter, editorsType) {
|
@@ -6177,7 +6176,7 @@ var telerikReportViewer = {};
|
|
6177
6176
|
controller.reportLoadComplete(function(e, args) {
|
6178
6177
|
if (!enableAccessibility) {
|
6179
6178
|
if (menu && menu._oldHoverItem) {
|
6180
|
-
menu._oldHoverItem.toggleClass("k-
|
6179
|
+
menu._oldHoverItem.toggleClass("k-focus");
|
6181
6180
|
}
|
6182
6181
|
}
|
6183
6182
|
});
|
@@ -6218,10 +6217,10 @@ var telerikReportViewer = {};
|
|
6218
6217
|
var $item = $(this);
|
6219
6218
|
$item.attr("tabindex", menuTabIndex);
|
6220
6219
|
$item.focus(function() {
|
6221
|
-
$item.addClass("k-
|
6220
|
+
$item.addClass("k-focus");
|
6222
6221
|
});
|
6223
6222
|
$item.blur(function() {
|
6224
|
-
$item.removeClass("k-
|
6223
|
+
$item.removeClass("k-focus");
|
6225
6224
|
});
|
6226
6225
|
var anchor = $item.children("a");
|
6227
6226
|
if (anchor.length > 0) {
|
@@ -6302,13 +6301,20 @@ var telerikReportViewer = {};
|
|
6302
6301
|
});
|
6303
6302
|
}
|
6304
6303
|
function clickOnMenuItem(item) {
|
6305
|
-
if (item
|
6304
|
+
if (isItemExportContainer(item)) {
|
6305
|
+
clickOnExportDropdown();
|
6306
|
+
} else if (item && item.length > 0) {
|
6306
6307
|
var anchor = item.children("a");
|
6307
6308
|
if (anchor.length > 0) {
|
6308
6309
|
anchor.click();
|
6309
6310
|
}
|
6310
6311
|
}
|
6311
6312
|
}
|
6313
|
+
function clickOnExportDropdown() {
|
6314
|
+
var dropDownItemID = "#trv-main-menu-export-command";
|
6315
|
+
var mainMenu = $("[data-role='telerik_ReportViewer_MainMenu']").data("kendoMenu");
|
6316
|
+
mainMenu.open(dropDownItemID);
|
6317
|
+
}
|
6312
6318
|
function onSubmenuActivate(e) {
|
6313
6319
|
var $item = $(e.item);
|
6314
6320
|
focusOnFirstSubmenuItem($item);
|
@@ -6370,7 +6376,7 @@ var telerikReportViewer = {};
|
|
6370
6376
|
} else if (focusedItem && focusedItem.localName == "input") {
|
6371
6377
|
$item = $(focusedItem).closest("li.k-item");
|
6372
6378
|
} else {
|
6373
|
-
$item = menu.element.children("li.k-item.k-
|
6379
|
+
$item = menu.element.children("li.k-item.k-focus");
|
6374
6380
|
if ($item.length === 0) {
|
6375
6381
|
$item = menu.element.children("li.k-item").first();
|
6376
6382
|
}
|
@@ -6383,6 +6389,9 @@ var telerikReportViewer = {};
|
|
6383
6389
|
return;
|
6384
6390
|
}
|
6385
6391
|
var $next = $item.next();
|
6392
|
+
if ($next.css("display") == "none") {
|
6393
|
+
$next = $next.next();
|
6394
|
+
}
|
6386
6395
|
if (!$next.length > 0) {
|
6387
6396
|
$next = $(childrenL1).filter("li.k-item").first();
|
6388
6397
|
}
|
@@ -6391,19 +6400,19 @@ var telerikReportViewer = {};
|
|
6391
6400
|
var lastKendoFocusedItem;
|
6392
6401
|
function focusNextItemNativeMenuSelection() {
|
6393
6402
|
var allItems = menu.element.children("li.k-item");
|
6394
|
-
var $focused = allItems.filter(".k-
|
6403
|
+
var $focused = allItems.filter(".k-focus");
|
6395
6404
|
if (kendo.version >= "2017.3.913") {
|
6396
6405
|
lastKendoFocusedItem = $focused;
|
6397
6406
|
return;
|
6398
6407
|
}
|
6399
|
-
if ($focused.hasClass("k-
|
6408
|
+
if ($focused.hasClass("k-disabled")) {
|
6400
6409
|
if (!lastKendoFocusedItem || $focused.is(lastKendoFocusedItem)) {
|
6401
6410
|
var $next = $focused.next();
|
6402
6411
|
if (!$next.length > 0) {
|
6403
6412
|
$next = allItems.first();
|
6404
6413
|
}
|
6405
|
-
$focused.toggleClass("k-
|
6406
|
-
$next.toggleClass("k-
|
6414
|
+
$focused.toggleClass("k-focus");
|
6415
|
+
$next.toggleClass("k-focus");
|
6407
6416
|
lastKendoFocusedItem = $next;
|
6408
6417
|
menu._oldHoverItem = $next;
|
6409
6418
|
} else {
|
@@ -6420,17 +6429,20 @@ var telerikReportViewer = {};
|
|
6420
6429
|
return;
|
6421
6430
|
}
|
6422
6431
|
var $prev = $item.prev();
|
6432
|
+
if ($prev.css("display") == "none") {
|
6433
|
+
$prev = $prev.prev();
|
6434
|
+
}
|
6423
6435
|
if (!$prev.length > 0) {
|
6424
6436
|
$prev = $(childrenL1).filter("li.k-item").last();
|
6425
6437
|
}
|
6426
6438
|
$prev.focus();
|
6427
6439
|
}
|
6428
6440
|
function focusPreviousItemNativeMenuSelection() {
|
6429
|
-
var $focused = menu.element.children("li.k-item.k-
|
6441
|
+
var $focused = menu.element.children("li.k-item.k-focus");
|
6430
6442
|
lastKendoFocusedItem = $focused;
|
6431
6443
|
}
|
6432
6444
|
function getKendoFocusedNestedItem() {
|
6433
|
-
var $focused = menu.element.find('li.k-item.k-
|
6445
|
+
var $focused = menu.element.find('li.k-item.k-focus [data-command="telerik_ReportViewer_export"]');
|
6434
6446
|
if ($focused.length === 1) {
|
6435
6447
|
return $focused.parent("li");
|
6436
6448
|
}
|
@@ -6613,13 +6625,13 @@ var telerikReportViewer = {};
|
|
6613
6625
|
$item.focus(function() {
|
6614
6626
|
var anchor = $item.children("a");
|
6615
6627
|
if (anchor.length > 0) {
|
6616
|
-
anchor.addClass("k-
|
6628
|
+
anchor.addClass("k-focus");
|
6617
6629
|
}
|
6618
6630
|
});
|
6619
6631
|
$item.blur(function() {
|
6620
6632
|
var anchor = $item.children("a");
|
6621
6633
|
if (anchor.length > 0) {
|
6622
|
-
anchor.removeClass("k-
|
6634
|
+
anchor.removeClass("k-focus");
|
6623
6635
|
}
|
6624
6636
|
});
|
6625
6637
|
$item.off("keydown", onItemKeyDown);
|
@@ -6663,7 +6675,7 @@ var telerikReportViewer = {};
|
|
6663
6675
|
var isLeaf = item.children("ul").length === 0;
|
6664
6676
|
if (!isLeaf) {
|
6665
6677
|
if (handleExpandCollapse) {
|
6666
|
-
if (item.hasClass("k-
|
6678
|
+
if (item.hasClass("k-active")) {
|
6667
6679
|
panelBar.collapse(item);
|
6668
6680
|
} else {
|
6669
6681
|
panelBar.expand(item);
|
@@ -6765,10 +6777,10 @@ var telerikReportViewer = {};
|
|
6765
6777
|
if (cmd) {
|
6766
6778
|
var elementSelector = '[data-command="telerik_ReportViewer_' + dataCommand + '"]', customElementSelector = '[data-target-report-viewer="' + viewerOptions.selector + '"]' + elementSelector, $defaultElement = $element.find(elementSelector), $customElement = $(customElementSelector);
|
6767
6779
|
$(cmd).on("enabledChanged", function(e) {
|
6768
|
-
(cmd.enabled() ? $.fn.removeClass : $.fn.addClass).call($defaultElement.parent("li"), "k-
|
6780
|
+
(cmd.enabled() ? $.fn.removeClass : $.fn.addClass).call($defaultElement.parent("li"), "k-disabled");
|
6769
6781
|
(cmd.enabled() ? $.fn.removeClass : $.fn.addClass).call($customElement, viewerOptions.disabledButtonClass);
|
6770
6782
|
}).on("checkedChanged", function(e) {
|
6771
|
-
(cmd.checked() ? $.fn.addClass : $.fn.removeClass).call($defaultElement.parent("li"), "k-
|
6783
|
+
(cmd.checked() ? $.fn.addClass : $.fn.removeClass).call($defaultElement.parent("li"), "k-selected");
|
6772
6784
|
(cmd.checked() ? $.fn.addClass : $.fn.removeClass).call($customElement, viewerOptions.checkedButtonClass);
|
6773
6785
|
});
|
6774
6786
|
}
|
@@ -7128,7 +7140,7 @@ var telerikReportViewer = {};
|
|
7128
7140
|
if (!IsAreaContainerVisible(currentArea.parent())) {
|
7129
7141
|
return;
|
7130
7142
|
}
|
7131
|
-
var className = "k-
|
7143
|
+
var className = "k-focus";
|
7132
7144
|
if (lastArea) {
|
7133
7145
|
lastArea.removeClass(className);
|
7134
7146
|
}
|
@@ -7156,7 +7168,7 @@ var telerikReportViewer = {};
|
|
7156
7168
|
});
|
7157
7169
|
}
|
7158
7170
|
function IsAreaContainerVisible(container) {
|
7159
|
-
return container && !(container.hasClass("k-
|
7171
|
+
return container && !(container.hasClass("k-collapsed") || container.hasClass("trv-hidden"));
|
7160
7172
|
}
|
7161
7173
|
function setContentAreaKeyDown(contentArea) {
|
7162
7174
|
if (!contentArea) {
|
@@ -7188,10 +7200,10 @@ var telerikReportViewer = {};
|
|
7188
7200
|
if (!$menuItem.hasClass("trv-report-pager")) {
|
7189
7201
|
var ariaLabel = $menuItem.attr("aria-label");
|
7190
7202
|
var expandableSr = utils.stringFormat(". {0}", [ sr.ariaLabelExpandable ]), expandable = $menuItem.find("ul").length > 0 && ariaLabel.indexOf(expandableSr) < 0 ? expandableSr : "";
|
7191
|
-
var selectedSr = utils.stringFormat(". {0}", [ sr.ariaLabelSelected ]), selected = $menuItem.hasClass("k-
|
7203
|
+
var selectedSr = utils.stringFormat(". {0}", [ sr.ariaLabelSelected ]), selected = $menuItem.hasClass("k-selected") && ariaLabel.indexOf(selectedSr) < 0 ? selectedSr : "";
|
7192
7204
|
var label = ariaLabel + expandable + selected;
|
7193
7205
|
$menuItem.attr("aria-label", label);
|
7194
|
-
if ($menuItem.hasClass("k-
|
7206
|
+
if ($menuItem.hasClass("k-disabled")) {
|
7195
7207
|
$menuItem.attr("aria-disabled", "true");
|
7196
7208
|
} else {
|
7197
7209
|
$menuItem.removeAttr("aria-disabled");
|
@@ -7352,7 +7364,7 @@ var telerikReportViewer = {};
|
|
7352
7364
|
}
|
7353
7365
|
}
|
7354
7366
|
function onKeyDown(event) {
|
7355
|
-
var item = $(event.target).find(".k-
|
7367
|
+
var item = $(event.target).find(".k-focus");
|
7356
7368
|
if (event.keyCode === 13 && item && item.length > 0) {
|
7357
7369
|
var anchor = item.children("a");
|
7358
7370
|
if (anchor.length > 0) {
|
@@ -7618,6 +7630,7 @@ var telerikReportViewer = {};
|
|
7618
7630
|
var $listView = $resultsPlaceholder.data("kendoListView");
|
7619
7631
|
var first = $listView.element.children().first();
|
7620
7632
|
$listView.select(first);
|
7633
|
+
$listView.trigger("change");
|
7621
7634
|
}
|
7622
7635
|
function onSelectedItem(item) {
|
7623
7636
|
if (!item) {
|
@@ -7667,14 +7680,17 @@ var telerikReportViewer = {};
|
|
7667
7680
|
var $selected = $listView.select();
|
7668
7681
|
if (!$selected) {
|
7669
7682
|
$selected = $listView.element.children().first();
|
7683
|
+
$listView.select($selected);
|
7684
|
+
$listView.trigger("change");
|
7670
7685
|
} else {
|
7671
|
-
var index = $listView.select().index(), view = $listView.dataSource.view();
|
7686
|
+
var index = $listView.select().trigger("change").index(), view = $listView.dataSource.view();
|
7672
7687
|
var newIndex = Math.min(view.length - 1, Math.max(0, index + offset));
|
7673
7688
|
if (newIndex !== index) {
|
7674
7689
|
var dataItem = view[newIndex];
|
7675
7690
|
var element = $listView.element.find('[data-uid="' + dataItem.uid + '"]');
|
7676
7691
|
if (element) {
|
7677
7692
|
$listView.select(element);
|
7693
|
+
$listView.trigger("change");
|
7678
7694
|
scrollIfNeeded(element[0], $listView.element[0]);
|
7679
7695
|
}
|
7680
7696
|
}
|
@@ -8030,7 +8046,7 @@ var telerikReportViewer = {};
|
|
8030
8046
|
if (!validateOptions(options)) {
|
8031
8047
|
return;
|
8032
8048
|
}
|
8033
|
-
var version = "16.2.22.
|
8049
|
+
var version = "16.2.22.1109";
|
8034
8050
|
options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
8035
8051
|
settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
|
8036
8052
|
scale: options.scale,
|
@@ -8534,4 +8550,4 @@ module.exports = {
|
|
8534
8550
|
ReportViewer: telerikReportViewer.ReportViewer
|
8535
8551
|
};
|
8536
8552
|
|
8537
|
-
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
8553
|
+
/* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 9839B65C7E3E51AC7D98F1F159CF35DB */
|