@progress/telerik-jquery-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 +1 -1
- package/dist/cjs/aiPrompt.js +6 -2
- package/dist/cjs/parametersArea.js +5 -2
- package/dist/cjs/reportViewer.js +1 -1
- package/dist/cjs/search.js +1 -1
- package/dist/cjs/sendEmail.js +6 -6
- package/dist/cjs/sr.js +2 -0
- package/dist/cjs/toolbar.js +24 -7
- package/dist/font/font-icons.css +4 -4
- package/dist/font/font-icons.min.css +3 -3
- package/dist/js/telerikReportViewer.js +105 -82
- package/dist/js/telerikReportViewer.min.js +1 -1
- package/dist/js/telerikReportViewer.stringResources.js +2 -0
- package/dist/styles/telerikReportViewer.css +3 -3
- package/dist/styles/telerikReportViewer.min.css +3 -3
- package/dist/templates/telerikReportViewerTemplate.html +6 -6
- package/package.json +1 -1
- /package/dist/font/{ReportingIcons-19.1.25.521.ttf → ReportingIcons-19.1.25.716.ttf} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* TelerikReporting v19.1.25.
|
2
|
+
* TelerikReporting v19.1.25.716 (https://www.telerik.com/products/reporting.aspx)
|
3
3
|
* Copyright 2025 Progress Software EAD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Telerik Reporting commercial licenses may be obtained at
|
@@ -306,11 +306,11 @@ var telerikReportViewer = (function (exports) {
|
|
306
306
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
307
307
|
};
|
308
308
|
const y = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
|
309
|
-
function
|
309
|
+
function C(e2) {
|
310
310
|
if ("string" != typeof e2 && "symbol" != typeof e2)
|
311
311
|
throw new TypeError("type is not type of string or symbol!");
|
312
312
|
}
|
313
|
-
function
|
313
|
+
function I(e2) {
|
314
314
|
if ("function" != typeof e2)
|
315
315
|
throw new TypeError("fn is not type of Function!");
|
316
316
|
}
|
@@ -328,25 +328,25 @@ var telerikReportViewer = (function (exports) {
|
|
328
328
|
return this.on(e2, t2);
|
329
329
|
}
|
330
330
|
on(e2, t2) {
|
331
|
-
return
|
331
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(S(t2)), this;
|
332
332
|
}
|
333
333
|
prependListener(e2, t2) {
|
334
334
|
return this.prepend(e2, t2);
|
335
335
|
}
|
336
336
|
prepend(e2, t2) {
|
337
|
-
return
|
337
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(S(t2)), this;
|
338
338
|
}
|
339
339
|
prependOnceListener(e2, t2) {
|
340
340
|
return this.prependOnce(e2, t2);
|
341
341
|
}
|
342
342
|
prependOnce(e2, t2) {
|
343
|
-
return
|
343
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(b(t2)), this;
|
344
344
|
}
|
345
345
|
listeners(e2) {
|
346
346
|
return (this._events[e2] || []).map((e3) => e3.fn);
|
347
347
|
}
|
348
348
|
once(e2, t2) {
|
349
|
-
return
|
349
|
+
return C(e2), I(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(b(t2)), this;
|
350
350
|
}
|
351
351
|
removeAllListeners() {
|
352
352
|
this._events = {};
|
@@ -355,7 +355,7 @@ var telerikReportViewer = (function (exports) {
|
|
355
355
|
return this.removeListener(e2, t2);
|
356
356
|
}
|
357
357
|
removeListener(e2, t2) {
|
358
|
-
|
358
|
+
C(e2);
|
359
359
|
const i2 = this.listeners(e2);
|
360
360
|
if ("function" == typeof t2) {
|
361
361
|
let n2 = -1, r2 = false;
|
@@ -367,7 +367,7 @@ var telerikReportViewer = (function (exports) {
|
|
367
367
|
}
|
368
368
|
emit(e2, ...i2) {
|
369
369
|
return t(this, void 0, void 0, function* () {
|
370
|
-
|
370
|
+
C(e2);
|
371
371
|
const t2 = this.listeners(e2), n2 = [];
|
372
372
|
if (t2 && t2.length) {
|
373
373
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
@@ -380,7 +380,7 @@ var telerikReportViewer = (function (exports) {
|
|
380
380
|
});
|
381
381
|
}
|
382
382
|
emitSync(e2, ...t2) {
|
383
|
-
|
383
|
+
C(e2);
|
384
384
|
const i2 = this.listeners(e2), n2 = [];
|
385
385
|
if (i2 && i2.length) {
|
386
386
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
@@ -504,10 +504,10 @@ var telerikReportViewer = (function (exports) {
|
|
504
504
|
return this.hasPdfPlugin;
|
505
505
|
}
|
506
506
|
}
|
507
|
-
function
|
507
|
+
function N(e2) {
|
508
508
|
return 1e3 * e2;
|
509
509
|
}
|
510
|
-
class
|
510
|
+
class D {
|
511
511
|
constructor(e2, t2, i2) {
|
512
512
|
if (this.pingMilliseconds = 0, !e2)
|
513
513
|
throw "Error";
|
@@ -516,7 +516,7 @@ var telerikReportViewer = (function (exports) {
|
|
516
516
|
initSessionTimeout(e2) {
|
517
517
|
if (!isFinite(e2))
|
518
518
|
throw "sessionTimeoutSeconds must be finite";
|
519
|
-
this.pingMilliseconds = e2 <= 120 ?
|
519
|
+
this.pingMilliseconds = e2 <= 120 ? N(e2) / 2 : N(e2 - 60);
|
520
520
|
}
|
521
521
|
start() {
|
522
522
|
this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
|
@@ -695,7 +695,7 @@ var telerikReportViewer = (function (exports) {
|
|
695
695
|
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;
|
696
696
|
}
|
697
697
|
}
|
698
|
-
const Pe = "System.Int64", ye = "System.Double",
|
698
|
+
const Pe = "System.Int64", ye = "System.Double", Ce = "System.String", Ie = "System.DateTime", Se = "System.Boolean";
|
699
699
|
var be = function() {
|
700
700
|
var e2 = {};
|
701
701
|
function t2(e3, t3, i3, n2) {
|
@@ -727,7 +727,7 @@ var telerikReportViewer = (function (exports) {
|
|
727
727
|
function i2(e3, t3) {
|
728
728
|
return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
|
729
729
|
}
|
730
|
-
return e2[
|
730
|
+
return e2[Ce] = { validate: function(e3, i3) {
|
731
731
|
return t2(e3, i3, function(t3) {
|
732
732
|
if (!t3) {
|
733
733
|
if (e3.allowNull)
|
@@ -764,7 +764,7 @@ var telerikReportViewer = (function (exports) {
|
|
764
764
|
}, function(e4, t3) {
|
765
765
|
return ce(e4) == de(t3);
|
766
766
|
});
|
767
|
-
} }, e2[
|
767
|
+
} }, e2[Ie] = { validate: function(e3, i3) {
|
768
768
|
return t2(e3, i3, function(t3) {
|
769
769
|
if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
|
770
770
|
return null;
|
@@ -837,7 +837,12 @@ var telerikReportViewer = (function (exports) {
|
|
837
837
|
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>';
|
838
838
|
class Le {
|
839
839
|
constructor(t2, i2, n2) {
|
840
|
-
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));
|
840
|
+
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));
|
841
|
+
}
|
842
|
+
onPageLoaded() {
|
843
|
+
this.currentPageNumber() > 0 && !this.scrollInProgress && setTimeout(() => {
|
844
|
+
this.loadMorePages();
|
845
|
+
}, 100);
|
841
846
|
}
|
842
847
|
onScaleChanged() {
|
843
848
|
this.enabled && setTimeout(() => {
|
@@ -873,13 +878,11 @@ var telerikReportViewer = (function (exports) {
|
|
873
878
|
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);
|
874
879
|
}
|
875
880
|
updatePageArea(e2) {
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
});
|
882
|
-
}, 100);
|
881
|
+
var t2;
|
882
|
+
let i2 = 0, n2 = e2.pageNumber;
|
883
|
+
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, () => {
|
884
|
+
this.scrollInProgress = false;
|
885
|
+
});
|
883
886
|
}
|
884
887
|
navigateToPage(e2, t2) {
|
885
888
|
this.scrollInProgress = true;
|
@@ -891,7 +894,7 @@ var telerikReportViewer = (function (exports) {
|
|
891
894
|
updatePageContent(e2, t2) {
|
892
895
|
this.contentArea.updatePageStyle(e2);
|
893
896
|
let i2 = this.contentArea.renderPageElement(e2);
|
894
|
-
t2.after(i2), t2.remove(), this.contentArea.setScrollablePage(i2, e2), this.controller.
|
897
|
+
t2.after(i2), t2.remove(), this.contentArea.setScrollablePage(i2, e2), this.controller.applySearchColors();
|
895
898
|
}
|
896
899
|
currentPageNumber() {
|
897
900
|
return this.controller.getCurrentPageNumber();
|
@@ -946,7 +949,7 @@ var telerikReportViewer = (function (exports) {
|
|
946
949
|
let r2 = this.contentArea.renderPageElement(e2);
|
947
950
|
t2 && (this.pageWrapper.innerHTML = ""), this.pageWrapper.dataset.pageNumber = i2.toString();
|
948
951
|
let s2 = this.findElement(".trv-skeleton-" + i2);
|
949
|
-
s2 ? (s2.after(r2), s2.remove()) : this.pageWrapper.append(r2), this.contentArea.setScrollablePage(r2, e2), this.controller.
|
952
|
+
s2 ? (s2.after(r2), s2.remove()) : this.pageWrapper.append(r2), this.contentArea.setScrollablePage(r2, e2), this.controller.applySearchColors();
|
950
953
|
}
|
951
954
|
loadNextPreviousPage(e2) {
|
952
955
|
if (e2 < this.controller.getPageCount()) {
|
@@ -1002,7 +1005,7 @@ var telerikReportViewer = (function (exports) {
|
|
1002
1005
|
return o2 <= l2 && l2 < a2 ? 0 : a2 < l2 ? -1 : 1;
|
1003
1006
|
}
|
1004
1007
|
scrollDown(e2, t2) {
|
1005
|
-
if (t2 >= this.pageContainer.scrollHeight) {
|
1008
|
+
if (t2 >= this.pageContainer.scrollHeight - 5) {
|
1006
1009
|
let t3 = parseInt(e2[e2.length - 1].dataset.page || "") + 1;
|
1007
1010
|
this.currentPageNumber() < t3 && t3 <= this.controller.getPageCount() && (this.addSkeletonScreen(t3, false), this.getAndRenderPage(t3));
|
1008
1011
|
} else
|
@@ -1036,8 +1039,8 @@ var telerikReportViewer = (function (exports) {
|
|
1036
1039
|
}
|
1037
1040
|
scrollToPage(e2, t2) {
|
1038
1041
|
this.animateScroll(e2, 500, () => {
|
1039
|
-
|
1040
|
-
this.scrollInProgress = false;
|
1042
|
+
setTimeout(() => {
|
1043
|
+
this.setCurrentPage(t2), this.scrollInProgress = false;
|
1041
1044
|
});
|
1042
1045
|
});
|
1043
1046
|
}
|
@@ -1155,10 +1158,10 @@ var telerikReportViewer = (function (exports) {
|
|
1155
1158
|
return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
|
1156
1159
|
}
|
1157
1160
|
}
|
1158
|
-
const
|
1161
|
+
const Ne = /{(\w+?)}/g, De = "trv-initial-image-styles";
|
1159
1162
|
function ke(e2, t2) {
|
1160
1163
|
let i2 = Array.isArray(t2);
|
1161
|
-
return e2 ? e2.replace(
|
1164
|
+
return e2 ? e2.replace(Ne, function(e3, n2) {
|
1162
1165
|
return t2[i2 ? parseInt(n2) : n2];
|
1163
1166
|
}) : "";
|
1164
1167
|
}
|
@@ -1178,7 +1181,7 @@ var telerikReportViewer = (function (exports) {
|
|
1178
1181
|
this.shouldAutosizePage() && this.updatePageDimensions();
|
1179
1182
|
}
|
1180
1183
|
onPageReady(t2) {
|
1181
|
-
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);
|
1184
|
+
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);
|
1182
1185
|
}
|
1183
1186
|
onServerActionStarted() {
|
1184
1187
|
this.disablePagesArea(true), this.disableParametersArea(true), this.showNotification(this.messages.ReportViewer_LoadingReport);
|
@@ -1195,13 +1198,11 @@ var telerikReportViewer = (function (exports) {
|
|
1195
1198
|
onBeginLoadReport() {
|
1196
1199
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
1197
1200
|
}
|
1198
|
-
onReportLoadProgress(
|
1199
|
-
|
1200
|
-
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]));
|
1201
|
+
onReportLoadProgress(e2) {
|
1202
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(ke(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
1201
1203
|
}
|
1202
1204
|
onReportLoadComplete(t2) {
|
1203
|
-
|
1204
|
-
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));
|
1205
|
+
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));
|
1205
1206
|
}
|
1206
1207
|
onReportAutoRunOff() {
|
1207
1208
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
@@ -1418,7 +1419,7 @@ var telerikReportViewer = (function (exports) {
|
|
1418
1419
|
setPageContent(e2) {
|
1419
1420
|
this.actions = e2.pageActions, this.updatePageStyle(e2);
|
1420
1421
|
let t2 = this.renderPageElement(e2);
|
1421
|
-
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
|
1422
|
+
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;
|
1422
1423
|
}
|
1423
1424
|
setScrollablePage(e2, t2) {
|
1424
1425
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
@@ -1436,12 +1437,12 @@ var telerikReportViewer = (function (exports) {
|
|
1436
1437
|
}
|
1437
1438
|
setPageAreaImage() {
|
1438
1439
|
this.clearPageAreaImage();
|
1439
|
-
let e2 = _("style",
|
1440
|
+
let e2 = _("style", De);
|
1440
1441
|
e2.innerHTML = ke('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
|
1441
1442
|
}
|
1442
1443
|
clearPageAreaImage() {
|
1443
1444
|
var e2;
|
1444
|
-
null === (e2 = document.getElementById(
|
1445
|
+
null === (e2 = document.getElementById(De)) || void 0 === e2 || e2.remove();
|
1445
1446
|
}
|
1446
1447
|
}, e.DeviceInfo = i, e.DocumentInfo = class {
|
1447
1448
|
constructor() {
|
@@ -1451,7 +1452,7 @@ var telerikReportViewer = (function (exports) {
|
|
1451
1452
|
constructor() {
|
1452
1453
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
1453
1454
|
}
|
1454
|
-
}, e.EmailInfo = n, e.ExportDocumentReadyEventArgs = a, e.ExportStartEventArgs = o, e.KeepClientAliveSentinel =
|
1455
|
+
}, e.EmailInfo = n, e.ExportDocumentReadyEventArgs = a, e.ExportStartEventArgs = o, e.KeepClientAliveSentinel = D, e.PageAction = class {
|
1455
1456
|
constructor() {
|
1456
1457
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
1457
1458
|
}
|
@@ -1608,8 +1609,8 @@ var telerikReportViewer = (function (exports) {
|
|
1608
1609
|
getPageCount() {
|
1609
1610
|
return this.pageCount;
|
1610
1611
|
}
|
1611
|
-
|
1612
|
-
this.emit("
|
1612
|
+
applySearchColors() {
|
1613
|
+
this.emit("applySearchColors");
|
1613
1614
|
}
|
1614
1615
|
executeReportAction(e2) {
|
1615
1616
|
let t2 = e2.action;
|
@@ -1712,7 +1713,7 @@ var telerikReportViewer = (function (exports) {
|
|
1712
1713
|
}
|
1713
1714
|
initializeAndStartSentinel() {
|
1714
1715
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
1715
|
-
this.keepClientAliveSentinel = new
|
1716
|
+
this.keepClientAliveSentinel = new D(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
1716
1717
|
});
|
1717
1718
|
}
|
1718
1719
|
stopSentinel() {
|
@@ -1825,14 +1826,16 @@ var telerikReportViewer = (function (exports) {
|
|
1825
1826
|
getProcessedParameterValues() {
|
1826
1827
|
return this.processedParameterValues;
|
1827
1828
|
}
|
1828
|
-
getDocumentInfo(
|
1829
|
-
return
|
1830
|
-
let
|
1831
|
-
this.cancelLoad ?
|
1832
|
-
t2 && t2.documentReady ?
|
1833
|
-
}).catch((
|
1829
|
+
getDocumentInfo(i2, n2) {
|
1830
|
+
return i2 && this.emit("beginLoadReport"), new Promise((r2, s2) => {
|
1831
|
+
let o2 = () => t(this, void 0, void 0, function* () {
|
1832
|
+
this.cancelLoad ? s2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, n2).then((t2) => {
|
1833
|
+
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));
|
1834
|
+
}).catch((e2) => {
|
1835
|
+
"InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.responseJSON.exceptionMessage);
|
1836
|
+
}));
|
1834
1837
|
});
|
1835
|
-
|
1838
|
+
o2();
|
1836
1839
|
});
|
1837
1840
|
}
|
1838
1841
|
getPage(e2) {
|
@@ -1956,13 +1959,7 @@ ${e3.text} (${e3.id})`;
|
|
1956
1959
|
}
|
1957
1960
|
}, e.SearchManager = class extends R {
|
1958
1961
|
constructor(e2, t2) {
|
1959
|
-
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("
|
1960
|
-
}
|
1961
|
-
createAIThread() {
|
1962
|
-
return this.controller.createAIThread();
|
1963
|
-
}
|
1964
|
-
getAIResponse(e2) {
|
1965
|
-
return this.controller.getAIResponse(e2);
|
1962
|
+
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));
|
1966
1963
|
}
|
1967
1964
|
search(e2) {
|
1968
1965
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
@@ -1995,7 +1992,7 @@ ${e3.text} (${e3.id})`;
|
|
1995
1992
|
U(e2, Fe);
|
1996
1993
|
}), this.currentHighlightedElement && U(this.currentHighlightedElement, Oe), this.highlightedElements = [], this.currentHighlightedElement = null;
|
1997
1994
|
}
|
1998
|
-
|
1995
|
+
applySearchColors() {
|
1999
1996
|
this.isActive && this.colorPageElements(this.searchResults);
|
2000
1997
|
}
|
2001
1998
|
onSearchComplete(e2) {
|
@@ -3175,6 +3172,8 @@ ${e3.text} (${e3.id})`;
|
|
3175
3172
|
menuPreviousPageTitle: "Previous Page",
|
3176
3173
|
menuNextPageTitle: "Next Page",
|
3177
3174
|
menuPageNumberTitle: "Page Number Selector",
|
3175
|
+
menuPageText: "Page",
|
3176
|
+
menuPageOfText: "of",
|
3178
3177
|
menuDocumentMapTitle: "Toggle Document Map",
|
3179
3178
|
menuParametersAreaTitle: "Toggle Parameters Area",
|
3180
3179
|
menuZoomInTitle: "Zoom In",
|
@@ -4978,8 +4977,8 @@ ${e3.text} (${e3.id})`;
|
|
4978
4977
|
throw "No notificationService (telerikReporting.NotificationService) has been specified.";
|
4979
4978
|
}
|
4980
4979
|
this.parameterEditors = ParameterEditors;
|
4981
|
-
if (options.parameterEditors && options.parameterEditors.length > 0) {
|
4982
|
-
this.parameterEditors = [].concat(options.parameterEditors, ParameterEditors);
|
4980
|
+
if (this.options.parameterEditors && this.options.parameterEditors.length > 0) {
|
4981
|
+
this.parameterEditors = [].concat(this.options.parameterEditors, ParameterEditors);
|
4983
4982
|
}
|
4984
4983
|
this.recentParameterValues;
|
4985
4984
|
this.parameters;
|
@@ -5138,6 +5137,9 @@ ${e3.text} (${e3.id})`;
|
|
5138
5137
|
(this.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
|
5139
5138
|
}
|
5140
5139
|
allParametersAutoRefresh(parameters) {
|
5140
|
+
if (!parameters) {
|
5141
|
+
return true;
|
5142
|
+
}
|
5141
5143
|
var allAuto = Array.from(parameters).every((parameter) => {
|
5142
5144
|
return !parameter.isVisible || parameter.autoRefresh;
|
5143
5145
|
});
|
@@ -5522,7 +5524,7 @@ ${e3.text} (${e3.id})`;
|
|
5522
5524
|
"button": Button,
|
5523
5525
|
"toggle-button": ToggleButton
|
5524
5526
|
};
|
5525
|
-
function replaceStringResources$
|
5527
|
+
function replaceStringResources$3($search) {
|
5526
5528
|
if (!$search) {
|
5527
5529
|
return;
|
5528
5530
|
}
|
@@ -5580,7 +5582,7 @@ ${e3.text} (${e3.id})`;
|
|
5580
5582
|
if (!this.notificationService) {
|
5581
5583
|
throw "No notificationService (telerikReporting.NotificationService) has been specified.";
|
5582
5584
|
}
|
5583
|
-
this.pagesAreaContainer =
|
5585
|
+
this.pagesAreaContainer = this.reportViewerWrapper.find('[data-id="trv-pages-area"]');
|
5584
5586
|
this.searchManager = new distExports.SearchManager(this.pagesAreaContainer[0], this.controller);
|
5585
5587
|
this.searchManager.on("searchComplete", this.updateResultsUI.bind(this));
|
5586
5588
|
this.init();
|
@@ -5589,7 +5591,7 @@ ${e3.text} (${e3.id})`;
|
|
5589
5591
|
if (this.initialized) {
|
5590
5592
|
return;
|
5591
5593
|
}
|
5592
|
-
replaceStringResources$
|
5594
|
+
replaceStringResources$3(this.$element);
|
5593
5595
|
this._initDialog();
|
5594
5596
|
this._initSearchbox();
|
5595
5597
|
this._initResultsArea();
|
@@ -5960,7 +5962,7 @@ ${e3.text} (${e3.id})`;
|
|
5960
5962
|
}
|
5961
5963
|
|
5962
5964
|
var defaultOptions$1 = {};
|
5963
|
-
function replaceStringResources$
|
5965
|
+
function replaceStringResources$2($sendEmailDialog) {
|
5964
5966
|
if (!$sendEmailDialog) {
|
5965
5967
|
return;
|
5966
5968
|
}
|
@@ -6050,10 +6052,14 @@ ${e3.text} (${e3.id})`;
|
|
6050
6052
|
if (this.initialized) {
|
6051
6053
|
return;
|
6052
6054
|
}
|
6053
|
-
replaceStringResources$
|
6055
|
+
replaceStringResources$2(this.$element);
|
6054
6056
|
this.controller.getDocumentFormats().then((formats) => {
|
6055
6057
|
this.docFormatList = formats;
|
6056
6058
|
this.docFormat?.setDataSource(this.docFormatList);
|
6059
|
+
if (this.viewerOptions?.sendEmail && this.viewerOptions?.sendEmail.format) {
|
6060
|
+
this.docFormat?.value(this.viewerOptions.sendEmail.format);
|
6061
|
+
this.docFormat?.trigger("change");
|
6062
|
+
}
|
6057
6063
|
});
|
6058
6064
|
this._initDialog();
|
6059
6065
|
this._initInputFields();
|
@@ -6169,6 +6175,7 @@ ${e3.text} (${e3.id})`;
|
|
6169
6175
|
"superscript"
|
6170
6176
|
]
|
6171
6177
|
});
|
6178
|
+
this.setDefaultValues(this.viewerOptions.sendEmail);
|
6172
6179
|
this.kendoValidator = new kendo.ui.Validator(this.element.querySelector(".trv-send-email-fields"), {});
|
6173
6180
|
}
|
6174
6181
|
setAttrs() {
|
@@ -6279,17 +6286,12 @@ ${e3.text} (${e3.id})`;
|
|
6279
6286
|
}
|
6280
6287
|
return fromIsValid && toIsValid && ccIsValid && hasFormat;
|
6281
6288
|
}
|
6289
|
+
/* Sets all default email values except the format as it depends on a request */
|
6282
6290
|
setDefaultValues(sendEmail) {
|
6283
6291
|
this.inputFrom.value(sendEmail && sendEmail.from || "");
|
6284
6292
|
this.inputTo.value(sendEmail && sendEmail.to || "");
|
6285
6293
|
this.inputCC.value(sendEmail && sendEmail.cc || "");
|
6286
6294
|
this.inputSubject.value(sendEmail && sendEmail.subject || "");
|
6287
|
-
if (sendEmail && sendEmail.format) {
|
6288
|
-
this.docFormat.value(sendEmail.format);
|
6289
|
-
} else {
|
6290
|
-
this.docFormat.select(0);
|
6291
|
-
}
|
6292
|
-
this.docFormat.trigger("change");
|
6293
6295
|
this.bodyEditor.value(sendEmail && sendEmail.body || "");
|
6294
6296
|
}
|
6295
6297
|
isEmpty(input) {
|
@@ -6845,11 +6847,27 @@ ${e3.text} (${e3.id})`;
|
|
6845
6847
|
CustomElement: "custom-element"
|
6846
6848
|
};
|
6847
6849
|
|
6850
|
+
function replaceStringResources$1($toolbar) {
|
6851
|
+
if (!$toolbar) {
|
6852
|
+
return;
|
6853
|
+
}
|
6854
|
+
const labels = $toolbar.find(".trv-replace-string");
|
6855
|
+
if (labels && labels.length > 0) {
|
6856
|
+
Array.from(labels).forEach((element) => {
|
6857
|
+
const $element = $(element);
|
6858
|
+
const stringResource = stringResources[$element.text()];
|
6859
|
+
if ($element && stringResource) {
|
6860
|
+
$element.text(stringResource);
|
6861
|
+
}
|
6862
|
+
});
|
6863
|
+
}
|
6864
|
+
}
|
6848
6865
|
class Toolbar {
|
6849
6866
|
// #region fields
|
6850
6867
|
_options;
|
6851
6868
|
/** @type {HTMLElement} */
|
6852
6869
|
_element;
|
6870
|
+
$element;
|
6853
6871
|
_kendoToolbar;
|
6854
6872
|
_neverOverflowToolBarButtons = ["goToPrevPage", "goToNextPage"];
|
6855
6873
|
// #endregion
|
@@ -6857,11 +6875,12 @@ ${e3.text} (${e3.id})`;
|
|
6857
6875
|
constructor(element, options, viewerOptions) {
|
6858
6876
|
this._element = element;
|
6859
6877
|
this._options = options;
|
6878
|
+
this.$element = $(this._element);
|
6860
6879
|
if (this._kendoToolbar === void 0) {
|
6861
6880
|
this.initKendoToolbar();
|
6862
6881
|
}
|
6863
6882
|
this._options.controller.on("beginLoadReport", () => {
|
6864
|
-
const kendoExportDropDown =
|
6883
|
+
const kendoExportDropDown = this.$element.find(`#${ToolBarConstants.ExportDropdownId}`).data("kendoDropDownButton");
|
6865
6884
|
kendoExportDropDown?.enable(false);
|
6866
6885
|
}).onAsync("reportLoadComplete", async () => {
|
6867
6886
|
if (viewerOptions.renderingExtensions === void 0) {
|
@@ -6878,12 +6897,12 @@ ${e3.text} (${e3.id})`;
|
|
6878
6897
|
// #endregion
|
6879
6898
|
// #region methods
|
6880
6899
|
initKendoToolbar() {
|
6900
|
+
replaceStringResources$1(this.$element);
|
6881
6901
|
const children = Array.from(this._element.children);
|
6882
6902
|
const toolBarItems = [];
|
6883
6903
|
children.forEach((child) => toolBarItems.push(this.createToolbarItem(child)));
|
6884
|
-
|
6885
|
-
|
6886
|
-
this._kendoToolbar = $element.kendoToolBar({
|
6904
|
+
this.$element.empty();
|
6905
|
+
this._kendoToolbar = this.$element.kendoToolBar({
|
6887
6906
|
items: toolBarItems,
|
6888
6907
|
click: (e) => {
|
6889
6908
|
this.executeCommand(e);
|
@@ -6892,11 +6911,11 @@ ${e3.text} (${e3.id})`;
|
|
6892
6911
|
this.executeCommand(e);
|
6893
6912
|
}
|
6894
6913
|
}).data("kendoToolBar");
|
6895
|
-
const pageNumberInputEl =
|
6914
|
+
const pageNumberInputEl = this.$element.find(ToolBarConstants.PageNumberInputDataRoleSelector).get(0);
|
6896
6915
|
if (pageNumberInputEl) {
|
6897
6916
|
new PageNumberInput(pageNumberInputEl, this._options);
|
6898
6917
|
}
|
6899
|
-
const pageCountLabelEl =
|
6918
|
+
const pageCountLabelEl = this.$element.find(ToolBarConstants.PageCountLabelDataRoleSelector).get(0);
|
6900
6919
|
if (pageCountLabelEl) {
|
6901
6920
|
new PageCountLabel(pageCountLabelEl, this._options);
|
6902
6921
|
}
|
@@ -6997,7 +7016,7 @@ ${e3.text} (${e3.id})`;
|
|
6997
7016
|
cmdFn.exec(cmdParam);
|
6998
7017
|
}
|
6999
7018
|
updateExportDropdownItems(extensions) {
|
7000
|
-
const kendoExportDropDown =
|
7019
|
+
const kendoExportDropDown = this.$element.find(`#${ToolBarConstants.ExportDropdownId}`).data("kendoDropDownButton");
|
7001
7020
|
if (!kendoExportDropDown) {
|
7002
7021
|
return;
|
7003
7022
|
}
|
@@ -7073,7 +7092,8 @@ ${e3.text} (${e3.id})`;
|
|
7073
7092
|
this.kendoAiPromptDialog;
|
7074
7093
|
this.kendoAiPrompt;
|
7075
7094
|
this.kendoAiPromtDialogLocation;
|
7076
|
-
this.
|
7095
|
+
this.reportViewerWrapper = $(`[data-selector='${this.viewerOptions.viewerSelector}']`);
|
7096
|
+
this.pagesAreaContainer = this.reportViewerWrapper.find('[data-id="trv-pages-area"]');
|
7077
7097
|
this.aiPromptDialogInitialized = false;
|
7078
7098
|
this.aiPromptInitialized = false;
|
7079
7099
|
const aiConfigurationOptions = this.controller.getAiConfigurationOptions();
|
@@ -7239,7 +7259,7 @@ ${e3.text} (${e3.id})`;
|
|
7239
7259
|
let aiPromptTextAreaPlaceholder = "Enter your prompt";
|
7240
7260
|
const aiPromptTextArea = this.kendoAiPrompt.element.find(".k-prompt-content .k-prompt-view textarea");
|
7241
7261
|
if (!hasPromptSuggestions) {
|
7242
|
-
const aiPromptGenerateButton = this.kendoAiPrompt.element.find(".k-prompt-footer");
|
7262
|
+
const aiPromptGenerateButton = this.kendoAiPrompt.element.find(".k-prompt-footer .k-actions");
|
7243
7263
|
aiPromptGenerateButton && aiPromptGenerateButton.addClass("k-disabled");
|
7244
7264
|
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.";
|
7245
7265
|
} else {
|
@@ -7309,6 +7329,9 @@ ${e3.text} (${e3.id})`;
|
|
7309
7329
|
}
|
7310
7330
|
close() {
|
7311
7331
|
this.controller.setAiPromptInitiated(false);
|
7332
|
+
if (this.kendoAiConsentDialog) {
|
7333
|
+
this.kendoAiConsentDialog.close();
|
7334
|
+
}
|
7312
7335
|
if (this.kendoAiPromptDialog && this.kendoAiPromptDialog.options.visible) {
|
7313
7336
|
this.kendoAiPromptDialog.close();
|
7314
7337
|
}
|
@@ -7429,7 +7452,7 @@ ${e3.text} (${e3.id})`;
|
|
7429
7452
|
if (!validateOptions(options)) {
|
7430
7453
|
return;
|
7431
7454
|
}
|
7432
|
-
var version = "19.1.25.
|
7455
|
+
var version = "19.1.25.716";
|
7433
7456
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
7434
7457
|
settings = new ReportViewerSettings(
|
7435
7458
|
persistanceKey,
|