@progress/telerik-angular-report-viewer 26.25.521 → 26.25.716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
@@ -17,7 +17,7 @@ While the component is not native (the theming mechanism uses Kendo UI for jQuer
|
|
17
17
|
and has a dependency to jQuery itself), it brings reporting value to your Angular applications
|
18
18
|
in no time.
|
19
19
|
|
20
|
-
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 19.1.25.
|
20
|
+
This version of the Angular Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 19.1.25.716.
|
21
21
|
|
22
22
|
## License
|
23
23
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var $ = require("jquery");
|
2
2
|
/*
|
3
|
-
* TelerikReporting v19.1.25.
|
3
|
+
* TelerikReporting v19.1.25.716 (https://www.telerik.com/products/reporting.aspx)
|
4
4
|
* Copyright 2025 Progress Software EAD. All rights reserved.
|
5
5
|
*
|
6
6
|
* Telerik Reporting commercial licenses may be obtained at
|
@@ -307,11 +307,11 @@ var telerikReportViewer = (function (exports) {
|
|
307
307
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
308
308
|
};
|
309
309
|
const y = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
|
310
|
-
function
|
310
|
+
function C(e2) {
|
311
311
|
if ("string" != typeof e2 && "symbol" != typeof e2)
|
312
312
|
throw new TypeError("type is not type of string or symbol!");
|
313
313
|
}
|
314
|
-
function
|
314
|
+
function I(e2) {
|
315
315
|
if ("function" != typeof e2)
|
316
316
|
throw new TypeError("fn is not type of Function!");
|
317
317
|
}
|
@@ -329,25 +329,25 @@ var telerikReportViewer = (function (exports) {
|
|
329
329
|
return this.on(e2, t2);
|
330
330
|
}
|
331
331
|
on(e2, t2) {
|
332
|
-
return
|
332
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(S(t2)), this;
|
333
333
|
}
|
334
334
|
prependListener(e2, t2) {
|
335
335
|
return this.prepend(e2, t2);
|
336
336
|
}
|
337
337
|
prepend(e2, t2) {
|
338
|
-
return
|
338
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(S(t2)), this;
|
339
339
|
}
|
340
340
|
prependOnceListener(e2, t2) {
|
341
341
|
return this.prependOnce(e2, t2);
|
342
342
|
}
|
343
343
|
prependOnce(e2, t2) {
|
344
|
-
return
|
344
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(b(t2)), this;
|
345
345
|
}
|
346
346
|
listeners(e2) {
|
347
347
|
return (this._events[e2] || []).map((e3) => e3.fn);
|
348
348
|
}
|
349
349
|
once(e2, t2) {
|
350
|
-
return
|
350
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(b(t2)), this;
|
351
351
|
}
|
352
352
|
removeAllListeners() {
|
353
353
|
this._events = {};
|
@@ -356,7 +356,7 @@ var telerikReportViewer = (function (exports) {
|
|
356
356
|
return this.removeListener(e2, t2);
|
357
357
|
}
|
358
358
|
removeListener(e2, t2) {
|
359
|
-
|
359
|
+
C(e2);
|
360
360
|
const i2 = this.listeners(e2);
|
361
361
|
if ("function" == typeof t2) {
|
362
362
|
let n2 = -1, r2 = false;
|
@@ -368,7 +368,7 @@ var telerikReportViewer = (function (exports) {
|
|
368
368
|
}
|
369
369
|
emit(e2, ...i2) {
|
370
370
|
return t(this, void 0, void 0, function* () {
|
371
|
-
|
371
|
+
C(e2);
|
372
372
|
const t2 = this.listeners(e2), n2 = [];
|
373
373
|
if (t2 && t2.length) {
|
374
374
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
@@ -381,7 +381,7 @@ var telerikReportViewer = (function (exports) {
|
|
381
381
|
});
|
382
382
|
}
|
383
383
|
emitSync(e2, ...t2) {
|
384
|
-
|
384
|
+
C(e2);
|
385
385
|
const i2 = this.listeners(e2), n2 = [];
|
386
386
|
if (i2 && i2.length) {
|
387
387
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
@@ -505,10 +505,10 @@ var telerikReportViewer = (function (exports) {
|
|
505
505
|
return this.hasPdfPlugin;
|
506
506
|
}
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function N(e2) {
|
509
509
|
return 1e3 * e2;
|
510
510
|
}
|
511
|
-
class
|
511
|
+
class D {
|
512
512
|
constructor(e2, t2, i2) {
|
513
513
|
if (this.pingMilliseconds = 0, !e2)
|
514
514
|
throw "Error";
|
@@ -517,7 +517,7 @@ var telerikReportViewer = (function (exports) {
|
|
517
517
|
initSessionTimeout(e2) {
|
518
518
|
if (!isFinite(e2))
|
519
519
|
throw "sessionTimeoutSeconds must be finite";
|
520
|
-
this.pingMilliseconds = e2 <= 120 ?
|
520
|
+
this.pingMilliseconds = e2 <= 120 ? N(e2) / 2 : N(e2 - 60);
|
521
521
|
}
|
522
522
|
start() {
|
523
523
|
this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
|
@@ -696,7 +696,7 @@ var telerikReportViewer = (function (exports) {
|
|
696
696
|
super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
|
697
697
|
}
|
698
698
|
}
|
699
|
-
const Pe = "System.Int64", ye = "System.Double",
|
699
|
+
const Pe = "System.Int64", ye = "System.Double", Ce = "System.String", Ie = "System.DateTime", Se = "System.Boolean";
|
700
700
|
var be = function() {
|
701
701
|
var e2 = {};
|
702
702
|
function t2(e3, t3, i3, n2) {
|
@@ -728,7 +728,7 @@ var telerikReportViewer = (function (exports) {
|
|
728
728
|
function i2(e3, t3) {
|
729
729
|
return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
|
730
730
|
}
|
731
|
-
return e2[
|
731
|
+
return e2[Ce] = { validate: function(e3, i3) {
|
732
732
|
return t2(e3, i3, function(t3) {
|
733
733
|
if (!t3) {
|
734
734
|
if (e3.allowNull)
|
@@ -765,7 +765,7 @@ var telerikReportViewer = (function (exports) {
|
|
765
765
|
}, function(e4, t3) {
|
766
766
|
return ce(e4) == de(t3);
|
767
767
|
});
|
768
|
-
} }, e2[
|
768
|
+
} }, e2[Ie] = { validate: function(e3, i3) {
|
769
769
|
return t2(e3, i3, function(t3) {
|
770
770
|
if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
|
771
771
|
return null;
|
@@ -838,7 +838,12 @@ var telerikReportViewer = (function (exports) {
|
|
838
838
|
const Me = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
|
839
839
|
class Le {
|
840
840
|
constructor(t2, i2, n2) {
|
841
|
-
this.enabled = false, this.viewMode = e.ViewMode.Interactive, this.scrollInProgress = false, this.additionalTopOffset = 130, this.onClickHandler = null, this.debounceScroll = null, this.throttleScroll = null, this.oldScrollTopPosition = 0, this.lastLoadedPage = null, this.placeholder = t2, this.pageContainer = t2.querySelector(".trv-page-container"), this.pageWrapper = t2.querySelector(".trv-page-wrapper"), this.contentArea = i2, this.controller = n2, this.controller.getPageMode() === e.PageMode.ContinuousScroll && this.enable(), this.controller.on("loadedReportChange", this.disable.bind(this)).on("viewModeChanged", this.disable.bind(this)).on("scaleChanged", this.onScaleChanged.bind(this)).on("interactiveActionExecuting", this.onInteractiveActionExecuting.bind(this));
|
841
|
+
this.enabled = false, this.viewMode = e.ViewMode.Interactive, this.scrollInProgress = false, this.additionalTopOffset = 130, this.onClickHandler = null, this.debounceScroll = null, this.throttleScroll = null, this.oldScrollTopPosition = 0, this.lastLoadedPage = null, this.placeholder = t2, this.pageContainer = t2.querySelector(".trv-page-container"), this.pageWrapper = t2.querySelector(".trv-page-wrapper"), this.contentArea = i2, this.controller = n2, this.controller.getPageMode() === e.PageMode.ContinuousScroll && this.enable(), this.controller.on("loadedReportChange", this.disable.bind(this)).on("viewModeChanged", this.disable.bind(this)).on("scaleChanged", this.onScaleChanged.bind(this)).on("interactiveActionExecuting", this.onInteractiveActionExecuting.bind(this)).on("pageLoaded", this.onPageLoaded.bind(this));
|
842
|
+
}
|
843
|
+
onPageLoaded() {
|
844
|
+
this.currentPageNumber() > 0 && !this.scrollInProgress && setTimeout(() => {
|
845
|
+
this.loadMorePages();
|
846
|
+
}, 100);
|
842
847
|
}
|
843
848
|
onScaleChanged() {
|
844
849
|
this.enabled && setTimeout(() => {
|
@@ -874,13 +879,11 @@ var telerikReportViewer = (function (exports) {
|
|
874
879
|
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (U(this.findElement(".k-state-default"), "k-state-default"), $(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
|
875
880
|
}
|
876
881
|
updatePageArea(e2) {
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
});
|
883
|
-
}, 100);
|
882
|
+
var t2;
|
883
|
+
let i2 = 0, n2 = e2.pageNumber;
|
884
|
+
this.scrollInProgress = true, n2 > 1 && this.generateSkeletonScreens(n2), this.render(e2, false), this.setCurrentPage(e2.pageNumber), i2 = n2 > 1 && (null === (t2 = this.findPageElement(n2)) || void 0 === t2 ? void 0 : t2.offsetTop) || 0, this.animateScroll(i2, 0, () => {
|
885
|
+
this.scrollInProgress = false;
|
886
|
+
});
|
884
887
|
}
|
885
888
|
navigateToPage(e2, t2) {
|
886
889
|
this.scrollInProgress = true;
|
@@ -892,7 +895,7 @@ var telerikReportViewer = (function (exports) {
|
|
892
895
|
updatePageContent(e2, t2) {
|
893
896
|
this.contentArea.updatePageStyle(e2);
|
894
897
|
let i2 = this.contentArea.renderPageElement(e2);
|
895
|
-
t2.after(i2), t2.remove(), this.contentArea.setScrollablePage(i2, e2), this.controller.
|
898
|
+
t2.after(i2), t2.remove(), this.contentArea.setScrollablePage(i2, e2), this.controller.applySearchColors();
|
896
899
|
}
|
897
900
|
currentPageNumber() {
|
898
901
|
return this.controller.getCurrentPageNumber();
|
@@ -947,7 +950,7 @@ var telerikReportViewer = (function (exports) {
|
|
947
950
|
let r2 = this.contentArea.renderPageElement(e2);
|
948
951
|
t2 && (this.pageWrapper.innerHTML = ""), this.pageWrapper.dataset.pageNumber = i2.toString();
|
949
952
|
let s2 = this.findElement(".trv-skeleton-" + i2);
|
950
|
-
s2 ? (s2.after(r2), s2.remove()) : this.pageWrapper.append(r2), this.contentArea.setScrollablePage(r2, e2), this.controller.
|
953
|
+
s2 ? (s2.after(r2), s2.remove()) : this.pageWrapper.append(r2), this.contentArea.setScrollablePage(r2, e2), this.controller.applySearchColors();
|
951
954
|
}
|
952
955
|
loadNextPreviousPage(e2) {
|
953
956
|
if (e2 < this.controller.getPageCount()) {
|
@@ -1003,7 +1006,7 @@ var telerikReportViewer = (function (exports) {
|
|
1003
1006
|
return o2 <= l2 && l2 < a2 ? 0 : a2 < l2 ? -1 : 1;
|
1004
1007
|
}
|
1005
1008
|
scrollDown(e2, t2) {
|
1006
|
-
if (t2 >= this.pageContainer.scrollHeight) {
|
1009
|
+
if (t2 >= this.pageContainer.scrollHeight - 5) {
|
1007
1010
|
let t3 = parseInt(e2[e2.length - 1].dataset.page || "") + 1;
|
1008
1011
|
this.currentPageNumber() < t3 && t3 <= this.controller.getPageCount() && (this.addSkeletonScreen(t3, false), this.getAndRenderPage(t3));
|
1009
1012
|
} else
|
@@ -1037,8 +1040,8 @@ var telerikReportViewer = (function (exports) {
|
|
1037
1040
|
}
|
1038
1041
|
scrollToPage(e2, t2) {
|
1039
1042
|
this.animateScroll(e2, 500, () => {
|
1040
|
-
|
1041
|
-
this.scrollInProgress = false;
|
1043
|
+
setTimeout(() => {
|
1044
|
+
this.setCurrentPage(t2), this.scrollInProgress = false;
|
1042
1045
|
});
|
1043
1046
|
});
|
1044
1047
|
}
|
@@ -1156,10 +1159,10 @@ var telerikReportViewer = (function (exports) {
|
|
1156
1159
|
return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
|
1157
1160
|
}
|
1158
1161
|
}
|
1159
|
-
const
|
1162
|
+
const Ne = /{(\w+?)}/g, De = "trv-initial-image-styles";
|
1160
1163
|
function ke(e2, t2) {
|
1161
1164
|
let i2 = Array.isArray(t2);
|
1162
|
-
return e2 ? e2.replace(
|
1165
|
+
return e2 ? e2.replace(Ne, function(e3, n2) {
|
1163
1166
|
return t2[i2 ? parseInt(n2) : n2];
|
1164
1167
|
}) : "";
|
1165
1168
|
}
|
@@ -1179,7 +1182,7 @@ var telerikReportViewer = (function (exports) {
|
|
1179
1182
|
this.shouldAutosizePage() && this.updatePageDimensions();
|
1180
1183
|
}
|
1181
1184
|
onPageReady(t2) {
|
1182
|
-
this.controller.getPageMode() === e.PageMode.SinglePage ? (this.scrollManager.getEnabled() && this.scrollManager.disable(), this.setPageContent(t2)) : this.scrollManager.renderPage(t2), this.reportPageIsLoaded || (this.reportPageIsLoaded = true), this.showPageAreaImage && this.clearPageAreaImage(), this.controller.getViewMode() === e.ViewMode.Interactive && null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.init(this.placeholder), this.disablePagesArea(false);
|
1185
|
+
this.controller.getPageMode() === e.PageMode.SinglePage ? (this.scrollManager.getEnabled() && this.scrollManager.disable(), this.setPageContent(t2)) : this.scrollManager.renderPage(t2), this.navigateToElement(this.pendingElement, t2.pageNumber), this.reportPageIsLoaded || (this.reportPageIsLoaded = true), this.showPageAreaImage && this.clearPageAreaImage(), this.controller.getViewMode() === e.ViewMode.Interactive && null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.init(this.placeholder), this.disablePagesArea(false);
|
1183
1186
|
}
|
1184
1187
|
onServerActionStarted() {
|
1185
1188
|
this.disablePagesArea(true), this.disableParametersArea(true), this.showNotification(this.messages.ReportViewer_LoadingReport);
|
@@ -1196,13 +1199,11 @@ var telerikReportViewer = (function (exports) {
|
|
1196
1199
|
onBeginLoadReport() {
|
1197
1200
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
1198
1201
|
}
|
1199
|
-
onReportLoadProgress(
|
1200
|
-
|
1201
|
-
t2.pageCount > 1 && t2.pageCount < 10 && this.controller.getPageMode() === e.PageMode.ContinuousScroll && !(null === (i2 = this.pageWrapper.classList) || void 0 === i2 ? void 0 : i2.contains("temp-height")) && (null === (n2 = this.pageWrapper.classList) || void 0 === n2 || n2.add("temp-height")), this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(ke(this.messages.ReportViewer_LoadingReportPagesInProgress, [t2.pageCount]));
|
1202
|
+
onReportLoadProgress(e2) {
|
1203
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(ke(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
1202
1204
|
}
|
1203
1205
|
onReportLoadComplete(t2) {
|
1204
|
-
|
1205
|
-
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay), null === (i2 = this.pageWrapper.classList) || void 0 === i2 || i2.remove("temp-height")) : (1 === t2.pageCount && (null === (n2 = this.pageWrapper.classList) || void 0 === n2 || n2.remove("temp-height")), this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(ke(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new xe(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
|
1206
|
+
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(ke(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new xe(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
|
1206
1207
|
}
|
1207
1208
|
onReportAutoRunOff() {
|
1208
1209
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
@@ -1419,7 +1420,7 @@ var telerikReportViewer = (function (exports) {
|
|
1419
1420
|
setPageContent(e2) {
|
1420
1421
|
this.actions = e2.pageActions, this.updatePageStyle(e2);
|
1421
1422
|
let t2 = this.renderPageElement(e2);
|
1422
|
-
this.pageWrapper.dataset.pageNumber = e2.pageNumber.toString(), this.pageWrapper.innerHTML = "", this.pageWrapper.append(t2), this.controller.setCurrentPageNumber(e2.pageNumber), this.applyPlaceholderViewModeClass(), this.setPageDimensions(this.pageWrapper), this.pageContainer.scrollTop = 0, this.pageContainer.scrollLeft = 0
|
1423
|
+
this.pageWrapper.dataset.pageNumber = e2.pageNumber.toString(), this.pageWrapper.innerHTML = "", this.pageWrapper.append(t2), this.controller.setCurrentPageNumber(e2.pageNumber), this.controller.applySearchColors(), this.applyPlaceholderViewModeClass(), this.setPageDimensions(this.pageWrapper), this.pageContainer.scrollTop = 0, this.pageContainer.scrollLeft = 0;
|
1423
1424
|
}
|
1424
1425
|
setScrollablePage(e2, t2) {
|
1425
1426
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
@@ -1437,12 +1438,12 @@ var telerikReportViewer = (function (exports) {
|
|
1437
1438
|
}
|
1438
1439
|
setPageAreaImage() {
|
1439
1440
|
this.clearPageAreaImage();
|
1440
|
-
let e2 = _("style",
|
1441
|
+
let e2 = _("style", De);
|
1441
1442
|
e2.innerHTML = ke('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
|
1442
1443
|
}
|
1443
1444
|
clearPageAreaImage() {
|
1444
1445
|
var e2;
|
1445
|
-
null === (e2 = document.getElementById(
|
1446
|
+
null === (e2 = document.getElementById(De)) || void 0 === e2 || e2.remove();
|
1446
1447
|
}
|
1447
1448
|
}, e.DeviceInfo = i, e.DocumentInfo = class {
|
1448
1449
|
constructor() {
|
@@ -1452,7 +1453,7 @@ var telerikReportViewer = (function (exports) {
|
|
1452
1453
|
constructor() {
|
1453
1454
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
1454
1455
|
}
|
1455
|
-
}, e.EmailInfo = n, e.ExportDocumentReadyEventArgs = a, e.ExportStartEventArgs = o, e.KeepClientAliveSentinel =
|
1456
|
+
}, e.EmailInfo = n, e.ExportDocumentReadyEventArgs = a, e.ExportStartEventArgs = o, e.KeepClientAliveSentinel = D, e.PageAction = class {
|
1456
1457
|
constructor() {
|
1457
1458
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
1458
1459
|
}
|
@@ -1609,8 +1610,8 @@ var telerikReportViewer = (function (exports) {
|
|
1609
1610
|
getPageCount() {
|
1610
1611
|
return this.pageCount;
|
1611
1612
|
}
|
1612
|
-
|
1613
|
-
this.emit("
|
1613
|
+
applySearchColors() {
|
1614
|
+
this.emit("applySearchColors");
|
1614
1615
|
}
|
1615
1616
|
executeReportAction(e2) {
|
1616
1617
|
let t2 = e2.action;
|
@@ -1713,7 +1714,7 @@ var telerikReportViewer = (function (exports) {
|
|
1713
1714
|
}
|
1714
1715
|
initializeAndStartSentinel() {
|
1715
1716
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
1716
|
-
this.keepClientAliveSentinel = new
|
1717
|
+
this.keepClientAliveSentinel = new D(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
1717
1718
|
});
|
1718
1719
|
}
|
1719
1720
|
stopSentinel() {
|
@@ -1826,14 +1827,16 @@ var telerikReportViewer = (function (exports) {
|
|
1826
1827
|
getProcessedParameterValues() {
|
1827
1828
|
return this.processedParameterValues;
|
1828
1829
|
}
|
1829
|
-
getDocumentInfo(
|
1830
|
-
return
|
1831
|
-
let
|
1832
|
-
this.cancelLoad ?
|
1833
|
-
t2 && t2.documentReady ?
|
1834
|
-
}).catch((
|
1830
|
+
getDocumentInfo(i2, n2) {
|
1831
|
+
return i2 && this.emit("beginLoadReport"), new Promise((r2, s2) => {
|
1832
|
+
let o2 = () => t(this, void 0, void 0, function* () {
|
1833
|
+
this.cancelLoad ? s2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, n2).then((t2) => {
|
1834
|
+
t2 && t2.documentReady ? r2(t2) : (i2 && (this.getPageMode() === e.PageMode.ContinuousScroll && t2.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = t2.pageCount, this.emit("reportLoadProgress", t2)), window.setTimeout(o2, 500));
|
1835
|
+
}).catch((e2) => {
|
1836
|
+
"InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.responseJSON.exceptionMessage);
|
1837
|
+
}));
|
1835
1838
|
});
|
1836
|
-
|
1839
|
+
o2();
|
1837
1840
|
});
|
1838
1841
|
}
|
1839
1842
|
getPage(e2) {
|
@@ -1957,13 +1960,7 @@ ${e3.text} (${e3.id})`;
|
|
1957
1960
|
}
|
1958
1961
|
}, e.SearchManager = class extends R {
|
1959
1962
|
constructor(e2, t2) {
|
1960
|
-
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = Q(e2, ".trv-page-container"), this.controller.on("
|
1961
|
-
}
|
1962
|
-
createAIThread() {
|
1963
|
-
return this.controller.createAIThread();
|
1964
|
-
}
|
1965
|
-
getAIResponse(e2) {
|
1966
|
-
return this.controller.getAIResponse(e2);
|
1963
|
+
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = Q(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
|
1967
1964
|
}
|
1968
1965
|
search(e2) {
|
1969
1966
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
@@ -1996,7 +1993,7 @@ ${e3.text} (${e3.id})`;
|
|
1996
1993
|
U(e2, Fe);
|
1997
1994
|
}), this.currentHighlightedElement && U(this.currentHighlightedElement, Oe), this.highlightedElements = [], this.currentHighlightedElement = null;
|
1998
1995
|
}
|
1999
|
-
|
1996
|
+
applySearchColors() {
|
2000
1997
|
this.isActive && this.colorPageElements(this.searchResults);
|
2001
1998
|
}
|
2002
1999
|
onSearchComplete(e2) {
|
@@ -3176,6 +3173,8 @@ ${e3.text} (${e3.id})`;
|
|
3176
3173
|
menuPreviousPageTitle: "Previous Page",
|
3177
3174
|
menuNextPageTitle: "Next Page",
|
3178
3175
|
menuPageNumberTitle: "Page Number Selector",
|
3176
|
+
menuPageText: "Page",
|
3177
|
+
menuPageOfText: "of",
|
3179
3178
|
menuDocumentMapTitle: "Toggle Document Map",
|
3180
3179
|
menuParametersAreaTitle: "Toggle Parameters Area",
|
3181
3180
|
menuZoomInTitle: "Zoom In",
|
@@ -4979,8 +4978,8 @@ ${e3.text} (${e3.id})`;
|
|
4979
4978
|
throw "No notificationService (telerikReporting.NotificationService) has been specified.";
|
4980
4979
|
}
|
4981
4980
|
this.parameterEditors = ParameterEditors;
|
4982
|
-
if (options.parameterEditors && options.parameterEditors.length > 0) {
|
4983
|
-
this.parameterEditors = [].concat(options.parameterEditors, ParameterEditors);
|
4981
|
+
if (this.options.parameterEditors && this.options.parameterEditors.length > 0) {
|
4982
|
+
this.parameterEditors = [].concat(this.options.parameterEditors, ParameterEditors);
|
4984
4983
|
}
|
4985
4984
|
this.recentParameterValues;
|
4986
4985
|
this.parameters;
|
@@ -5139,6 +5138,9 @@ ${e3.text} (${e3.id})`;
|
|
5139
5138
|
(this.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
|
5140
5139
|
}
|
5141
5140
|
allParametersAutoRefresh(parameters) {
|
5141
|
+
if (!parameters) {
|
5142
|
+
return true;
|
5143
|
+
}
|
5142
5144
|
var allAuto = Array.from(parameters).every((parameter) => {
|
5143
5145
|
return !parameter.isVisible || parameter.autoRefresh;
|
5144
5146
|
});
|
@@ -5523,7 +5525,7 @@ ${e3.text} (${e3.id})`;
|
|
5523
5525
|
"button": Button,
|
5524
5526
|
"toggle-button": ToggleButton
|
5525
5527
|
};
|
5526
|
-
function replaceStringResources$
|
5528
|
+
function replaceStringResources$3($search) {
|
5527
5529
|
if (!$search) {
|
5528
5530
|
return;
|
5529
5531
|
}
|
@@ -5581,7 +5583,7 @@ ${e3.text} (${e3.id})`;
|
|
5581
5583
|
if (!this.notificationService) {
|
5582
5584
|
throw "No notificationService (telerikReporting.NotificationService) has been specified.";
|
5583
5585
|
}
|
5584
|
-
this.pagesAreaContainer =
|
5586
|
+
this.pagesAreaContainer = this.reportViewerWrapper.find('[data-id="trv-pages-area"]');
|
5585
5587
|
this.searchManager = new distExports.SearchManager(this.pagesAreaContainer[0], this.controller);
|
5586
5588
|
this.searchManager.on("searchComplete", this.updateResultsUI.bind(this));
|
5587
5589
|
this.init();
|
@@ -5590,7 +5592,7 @@ ${e3.text} (${e3.id})`;
|
|
5590
5592
|
if (this.initialized) {
|
5591
5593
|
return;
|
5592
5594
|
}
|
5593
|
-
replaceStringResources$
|
5595
|
+
replaceStringResources$3(this.$element);
|
5594
5596
|
this._initDialog();
|
5595
5597
|
this._initSearchbox();
|
5596
5598
|
this._initResultsArea();
|
@@ -5961,7 +5963,7 @@ ${e3.text} (${e3.id})`;
|
|
5961
5963
|
}
|
5962
5964
|
|
5963
5965
|
var defaultOptions$1 = {};
|
5964
|
-
function replaceStringResources$
|
5966
|
+
function replaceStringResources$2($sendEmailDialog) {
|
5965
5967
|
if (!$sendEmailDialog) {
|
5966
5968
|
return;
|
5967
5969
|
}
|
@@ -6051,10 +6053,14 @@ ${e3.text} (${e3.id})`;
|
|
6051
6053
|
if (this.initialized) {
|
6052
6054
|
return;
|
6053
6055
|
}
|
6054
|
-
replaceStringResources$
|
6056
|
+
replaceStringResources$2(this.$element);
|
6055
6057
|
this.controller.getDocumentFormats().then((formats) => {
|
6056
6058
|
this.docFormatList = formats;
|
6057
6059
|
this.docFormat?.setDataSource(this.docFormatList);
|
6060
|
+
if (this.viewerOptions?.sendEmail && this.viewerOptions?.sendEmail.format) {
|
6061
|
+
this.docFormat?.value(this.viewerOptions.sendEmail.format);
|
6062
|
+
this.docFormat?.trigger("change");
|
6063
|
+
}
|
6058
6064
|
});
|
6059
6065
|
this._initDialog();
|
6060
6066
|
this._initInputFields();
|
@@ -6170,6 +6176,7 @@ ${e3.text} (${e3.id})`;
|
|
6170
6176
|
"superscript"
|
6171
6177
|
]
|
6172
6178
|
});
|
6179
|
+
this.setDefaultValues(this.viewerOptions.sendEmail);
|
6173
6180
|
this.kendoValidator = new kendo.ui.Validator(this.element.querySelector(".trv-send-email-fields"), {});
|
6174
6181
|
}
|
6175
6182
|
setAttrs() {
|
@@ -6280,17 +6287,12 @@ ${e3.text} (${e3.id})`;
|
|
6280
6287
|
}
|
6281
6288
|
return fromIsValid && toIsValid && ccIsValid && hasFormat;
|
6282
6289
|
}
|
6290
|
+
/* Sets all default email values except the format as it depends on a request */
|
6283
6291
|
setDefaultValues(sendEmail) {
|
6284
6292
|
this.inputFrom.value(sendEmail && sendEmail.from || "");
|
6285
6293
|
this.inputTo.value(sendEmail && sendEmail.to || "");
|
6286
6294
|
this.inputCC.value(sendEmail && sendEmail.cc || "");
|
6287
6295
|
this.inputSubject.value(sendEmail && sendEmail.subject || "");
|
6288
|
-
if (sendEmail && sendEmail.format) {
|
6289
|
-
this.docFormat.value(sendEmail.format);
|
6290
|
-
} else {
|
6291
|
-
this.docFormat.select(0);
|
6292
|
-
}
|
6293
|
-
this.docFormat.trigger("change");
|
6294
6296
|
this.bodyEditor.value(sendEmail && sendEmail.body || "");
|
6295
6297
|
}
|
6296
6298
|
isEmpty(input) {
|
@@ -6846,11 +6848,27 @@ ${e3.text} (${e3.id})`;
|
|
6846
6848
|
CustomElement: "custom-element"
|
6847
6849
|
};
|
6848
6850
|
|
6851
|
+
function replaceStringResources$1($toolbar) {
|
6852
|
+
if (!$toolbar) {
|
6853
|
+
return;
|
6854
|
+
}
|
6855
|
+
const labels = $toolbar.find(".trv-replace-string");
|
6856
|
+
if (labels && labels.length > 0) {
|
6857
|
+
Array.from(labels).forEach((element) => {
|
6858
|
+
const $element = $(element);
|
6859
|
+
const stringResource = stringResources[$element.text()];
|
6860
|
+
if ($element && stringResource) {
|
6861
|
+
$element.text(stringResource);
|
6862
|
+
}
|
6863
|
+
});
|
6864
|
+
}
|
6865
|
+
}
|
6849
6866
|
class Toolbar {
|
6850
6867
|
// #region fields
|
6851
6868
|
_options;
|
6852
6869
|
/** @type {HTMLElement} */
|
6853
6870
|
_element;
|
6871
|
+
$element;
|
6854
6872
|
_kendoToolbar;
|
6855
6873
|
_neverOverflowToolBarButtons = ["goToPrevPage", "goToNextPage"];
|
6856
6874
|
// #endregion
|
@@ -6858,11 +6876,12 @@ ${e3.text} (${e3.id})`;
|
|
6858
6876
|
constructor(element, options, viewerOptions) {
|
6859
6877
|
this._element = element;
|
6860
6878
|
this._options = options;
|
6879
|
+
this.$element = $(this._element);
|
6861
6880
|
if (this._kendoToolbar === void 0) {
|
6862
6881
|
this.initKendoToolbar();
|
6863
6882
|
}
|
6864
6883
|
this._options.controller.on("beginLoadReport", () => {
|
6865
|
-
const kendoExportDropDown =
|
6884
|
+
const kendoExportDropDown = this.$element.find(`#${ToolBarConstants.ExportDropdownId}`).data("kendoDropDownButton");
|
6866
6885
|
kendoExportDropDown?.enable(false);
|
6867
6886
|
}).onAsync("reportLoadComplete", async () => {
|
6868
6887
|
if (viewerOptions.renderingExtensions === void 0) {
|
@@ -6879,12 +6898,12 @@ ${e3.text} (${e3.id})`;
|
|
6879
6898
|
// #endregion
|
6880
6899
|
// #region methods
|
6881
6900
|
initKendoToolbar() {
|
6901
|
+
replaceStringResources$1(this.$element);
|
6882
6902
|
const children = Array.from(this._element.children);
|
6883
6903
|
const toolBarItems = [];
|
6884
6904
|
children.forEach((child) => toolBarItems.push(this.createToolbarItem(child)));
|
6885
|
-
|
6886
|
-
|
6887
|
-
this._kendoToolbar = $element.kendoToolBar({
|
6905
|
+
this.$element.empty();
|
6906
|
+
this._kendoToolbar = this.$element.kendoToolBar({
|
6888
6907
|
items: toolBarItems,
|
6889
6908
|
click: (e) => {
|
6890
6909
|
this.executeCommand(e);
|
@@ -6893,11 +6912,11 @@ ${e3.text} (${e3.id})`;
|
|
6893
6912
|
this.executeCommand(e);
|
6894
6913
|
}
|
6895
6914
|
}).data("kendoToolBar");
|
6896
|
-
const pageNumberInputEl =
|
6915
|
+
const pageNumberInputEl = this.$element.find(ToolBarConstants.PageNumberInputDataRoleSelector).get(0);
|
6897
6916
|
if (pageNumberInputEl) {
|
6898
6917
|
new PageNumberInput(pageNumberInputEl, this._options);
|
6899
6918
|
}
|
6900
|
-
const pageCountLabelEl =
|
6919
|
+
const pageCountLabelEl = this.$element.find(ToolBarConstants.PageCountLabelDataRoleSelector).get(0);
|
6901
6920
|
if (pageCountLabelEl) {
|
6902
6921
|
new PageCountLabel(pageCountLabelEl, this._options);
|
6903
6922
|
}
|
@@ -6998,7 +7017,7 @@ ${e3.text} (${e3.id})`;
|
|
6998
7017
|
cmdFn.exec(cmdParam);
|
6999
7018
|
}
|
7000
7019
|
updateExportDropdownItems(extensions) {
|
7001
|
-
const kendoExportDropDown =
|
7020
|
+
const kendoExportDropDown = this.$element.find(`#${ToolBarConstants.ExportDropdownId}`).data("kendoDropDownButton");
|
7002
7021
|
if (!kendoExportDropDown) {
|
7003
7022
|
return;
|
7004
7023
|
}
|
@@ -7074,7 +7093,8 @@ ${e3.text} (${e3.id})`;
|
|
7074
7093
|
this.kendoAiPromptDialog;
|
7075
7094
|
this.kendoAiPrompt;
|
7076
7095
|
this.kendoAiPromtDialogLocation;
|
7077
|
-
this.
|
7096
|
+
this.reportViewerWrapper = $(`[data-selector='${this.viewerOptions.viewerSelector}']`);
|
7097
|
+
this.pagesAreaContainer = this.reportViewerWrapper.find('[data-id="trv-pages-area"]');
|
7078
7098
|
this.aiPromptDialogInitialized = false;
|
7079
7099
|
this.aiPromptInitialized = false;
|
7080
7100
|
const aiConfigurationOptions = this.controller.getAiConfigurationOptions();
|
@@ -7240,7 +7260,7 @@ ${e3.text} (${e3.id})`;
|
|
7240
7260
|
let aiPromptTextAreaPlaceholder = "Enter your prompt";
|
7241
7261
|
const aiPromptTextArea = this.kendoAiPrompt.element.find(".k-prompt-content .k-prompt-view textarea");
|
7242
7262
|
if (!hasPromptSuggestions) {
|
7243
|
-
const aiPromptGenerateButton = this.kendoAiPrompt.element.find(".k-prompt-footer");
|
7263
|
+
const aiPromptGenerateButton = this.kendoAiPrompt.element.find(".k-prompt-footer .k-actions");
|
7244
7264
|
aiPromptGenerateButton && aiPromptGenerateButton.addClass("k-disabled");
|
7245
7265
|
aiPromptTextAreaPlaceholder = "Custom prompts are disabled and there are no predefined prompts configured. Please allow custom prompts or add predefined prompts to use the AI feature.";
|
7246
7266
|
} else {
|
@@ -7310,6 +7330,9 @@ ${e3.text} (${e3.id})`;
|
|
7310
7330
|
}
|
7311
7331
|
close() {
|
7312
7332
|
this.controller.setAiPromptInitiated(false);
|
7333
|
+
if (this.kendoAiConsentDialog) {
|
7334
|
+
this.kendoAiConsentDialog.close();
|
7335
|
+
}
|
7313
7336
|
if (this.kendoAiPromptDialog && this.kendoAiPromptDialog.options.visible) {
|
7314
7337
|
this.kendoAiPromptDialog.close();
|
7315
7338
|
}
|
@@ -7430,7 +7453,7 @@ ${e3.text} (${e3.id})`;
|
|
7430
7453
|
if (!validateOptions(options)) {
|
7431
7454
|
return;
|
7432
7455
|
}
|
7433
|
-
var version = "19.1.25.
|
7456
|
+
var version = "19.1.25.716";
|
7434
7457
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
7435
7458
|
settings = new ReportViewerSettings(
|
7436
7459
|
persistanceKey,
|
@@ -4,8 +4,8 @@
|
|
4
4
|
<title>Telerik HTML5 Report Viewer Templates</title>
|
5
5
|
|
6
6
|
<!--Telerik served resources. For more information see: http://docs.telerik.com/reporting/html5-report-viewer-styling-and-appearance -->
|
7
|
-
<link href="{service}resources/font/fonticons-19.1.25.
|
8
|
-
<link href="{service}resources/styles/telerikReportViewer-19.1.25.
|
7
|
+
<link href="{service}resources/font/fonticons-19.1.25.716.css/" rel="stylesheet" />
|
8
|
+
<link href="{service}resources/styles/telerikReportViewer-19.1.25.716.css/" rel="stylesheet" />
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -120,9 +120,9 @@
|
|
120
120
|
</span>
|
121
121
|
|
122
122
|
<span data-role="custom-element" aria-label="ariaLabelMenuPageNumber" title="menuPageNumberTitle">
|
123
|
-
<span>
|
124
|
-
<input data-role="telerik_ReportViewer_PageNumberInput" type="number"
|
125
|
-
<span>
|
123
|
+
<span class="trv-replace-string">menuPageText</span>
|
124
|
+
<input data-role="telerik_ReportViewer_PageNumberInput" type="number" />
|
125
|
+
<span class="trv-replace-string">menuPageOfText</span>
|
126
126
|
<span data-role="telerik_ReportViewer_PageCountLabel"></span>
|
127
127
|
</span>
|
128
128
|
|
@@ -390,4 +390,4 @@
|
|
390
390
|
|
391
391
|
</body>
|
392
392
|
</html>
|
393
|
-
<!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM
|
393
|
+
<!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM a29fefafa75e95cb30654d5c87d7862a -->
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/telerik-angular-report-viewer",
|
3
3
|
"description": "Progress® Telerik® Report Viewer for Angular",
|
4
|
-
"version": "26.25.
|
4
|
+
"version": "26.25.716",
|
5
5
|
"author": "Progress",
|
6
6
|
"license": "See LICENSE.md",
|
7
7
|
"homepage": "https://www.telerik.com/reporting",
|
@@ -47,6 +47,6 @@
|
|
47
47
|
"jquery": "^1.10.0 || ^2.2.0 || ^3.7.0"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@progress/telerik-jquery-report-viewer": "26.25.
|
50
|
+
"@progress/telerik-jquery-report-viewer": "26.25.716"
|
51
51
|
}
|
52
52
|
}
|