@progress/telerik-angular-report-viewer 30.26.520 → 30.26.707
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/telerik-report-viewer.component.d.ts +2 -1
- package/dist/cjs/telerik-report-viewer.component.js +4 -1
- package/dist/cjs/telerik-report-viewer.component.js.map +1 -1
- package/dist/dependencies/telerikReportViewer.d.ts +1 -0
- package/dist/dependencies/telerikReportViewer.js +382 -372
- package/dist/dependencies/telerikReportViewerTemplate.html +3 -3
- package/dist/es/telerik-report-viewer.component.d.ts +2 -1
- package/dist/es/telerik-report-viewer.component.js +4 -1
- package/dist/es/telerik-report-viewer.component.js.map +1 -1
- package/package.json +10 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var $ = require("jquery");
|
|
2
2
|
/*
|
|
3
|
-
* TelerikReporting v20.1.26.
|
|
3
|
+
* TelerikReporting v20.1.26.707 (https://www.telerik.com/products/reporting.aspx)
|
|
4
4
|
* Copyright 2026 Progress Software EAD. All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Telerik Reporting commercial licenses may be obtained at
|
|
@@ -1495,11 +1495,16 @@ var telerikReportViewer = (function (exports) {
|
|
|
1495
1495
|
return purify_cjs;
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
|
-
|
|
1498
|
+
dist.exports;
|
|
1499
|
+
(function(module, exports) {
|
|
1499
1500
|
!function(e, t) {
|
|
1500
|
-
t(exports
|
|
1501
|
+
t(exports, requirePurify_cjs()) ;
|
|
1501
1502
|
}(commonjsGlobal, function(e, t) {
|
|
1502
|
-
function i(e2
|
|
1503
|
+
function i(e2) {
|
|
1504
|
+
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
|
1505
|
+
}
|
|
1506
|
+
var n, r = i(t);
|
|
1507
|
+
function s(e2, t2, i2, n2) {
|
|
1503
1508
|
return new (i2 || (i2 = Promise))(function(r2, s2) {
|
|
1504
1509
|
function o2(e3) {
|
|
1505
1510
|
try {
|
|
@@ -1525,72 +1530,72 @@ var telerikReportViewer = (function (exports) {
|
|
|
1525
1530
|
});
|
|
1526
1531
|
}
|
|
1527
1532
|
"function" == typeof SuppressedError && SuppressedError;
|
|
1528
|
-
class
|
|
1533
|
+
class o {
|
|
1529
1534
|
constructor() {
|
|
1530
1535
|
this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
|
|
1531
1536
|
}
|
|
1532
1537
|
}
|
|
1533
|
-
class
|
|
1538
|
+
class a {
|
|
1534
1539
|
constructor() {
|
|
1535
1540
|
this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
|
|
1536
1541
|
}
|
|
1537
1542
|
}
|
|
1538
|
-
class
|
|
1543
|
+
class l {
|
|
1539
1544
|
constructor(e2, t2) {
|
|
1540
1545
|
this.cancel = false, this.element = e2, this.action = t2;
|
|
1541
1546
|
}
|
|
1542
1547
|
}
|
|
1543
|
-
class
|
|
1548
|
+
class h {
|
|
1544
1549
|
constructor(e2, t2) {
|
|
1545
1550
|
this.id = "", this.type = "", this.id = e2, this.type = t2;
|
|
1546
1551
|
}
|
|
1547
1552
|
}
|
|
1548
|
-
class
|
|
1553
|
+
class c {
|
|
1549
1554
|
constructor(e2, t2) {
|
|
1550
1555
|
this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
|
|
1551
1556
|
}
|
|
1552
1557
|
}
|
|
1553
|
-
class
|
|
1558
|
+
class d {
|
|
1554
1559
|
constructor(e2, t2) {
|
|
1555
1560
|
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
1556
1561
|
}
|
|
1557
1562
|
}
|
|
1558
|
-
class
|
|
1563
|
+
class u {
|
|
1559
1564
|
constructor(e2, t2, i2) {
|
|
1560
1565
|
this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
|
|
1561
1566
|
}
|
|
1562
1567
|
}
|
|
1563
|
-
class
|
|
1568
|
+
class p {
|
|
1564
1569
|
constructor(e2) {
|
|
1565
1570
|
this.handled = false, this.deviceInfo = e2;
|
|
1566
1571
|
}
|
|
1567
1572
|
}
|
|
1568
|
-
class
|
|
1573
|
+
class g {
|
|
1569
1574
|
constructor(e2) {
|
|
1570
1575
|
this.handled = false, this.url = e2;
|
|
1571
1576
|
}
|
|
1572
1577
|
}
|
|
1573
|
-
class
|
|
1578
|
+
class f {
|
|
1574
1579
|
constructor(e2, t2) {
|
|
1575
1580
|
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
1576
1581
|
}
|
|
1577
1582
|
}
|
|
1578
|
-
class
|
|
1583
|
+
class m extends a {
|
|
1579
1584
|
constructor(e2, t2, i2) {
|
|
1580
1585
|
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;
|
|
1581
1586
|
}
|
|
1582
1587
|
}
|
|
1583
|
-
class
|
|
1588
|
+
class v {
|
|
1584
1589
|
constructor(e2, t2) {
|
|
1585
1590
|
this.page = e2, this.reportDocumentId = t2;
|
|
1586
1591
|
}
|
|
1587
1592
|
}
|
|
1588
|
-
class
|
|
1593
|
+
class P {
|
|
1589
1594
|
constructor(e2, t2, i2, n2 = null) {
|
|
1590
1595
|
this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
|
|
1591
1596
|
}
|
|
1592
1597
|
}
|
|
1593
|
-
class
|
|
1598
|
+
class C {
|
|
1594
1599
|
constructor(e2, t2) {
|
|
1595
1600
|
this._responseText = e2, this._error = t2;
|
|
1596
1601
|
try {
|
|
@@ -1613,14 +1618,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1613
1618
|
return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
|
|
1614
1619
|
}
|
|
1615
1620
|
}
|
|
1616
|
-
function
|
|
1621
|
+
function y(e2, t2 = false, i2 = false) {
|
|
1617
1622
|
let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
|
|
1618
1623
|
return t2 && (n2["Content-Type"] = i2 ? "application/x-www-form-urlencoded; charset=UTF-8" : "application/json; charset=UTF-8"), e2 && (n2.authorization = "Bearer " + e2), n2;
|
|
1619
1624
|
}
|
|
1620
|
-
function
|
|
1621
|
-
return
|
|
1625
|
+
function S(e2) {
|
|
1626
|
+
return s(this, void 0, void 0, function* () {
|
|
1622
1627
|
if (!e2.ok) {
|
|
1623
|
-
let t2 = yield e2.text(), i2 = new
|
|
1628
|
+
let t2 = yield e2.text(), i2 = new C(t2, e2.statusText);
|
|
1624
1629
|
return Promise.reject(i2);
|
|
1625
1630
|
}
|
|
1626
1631
|
if (204 == e2.status)
|
|
@@ -1628,15 +1633,15 @@ var telerikReportViewer = (function (exports) {
|
|
|
1628
1633
|
return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
|
|
1629
1634
|
});
|
|
1630
1635
|
}
|
|
1631
|
-
function
|
|
1632
|
-
return fetch(e2, { method: "POST", headers:
|
|
1636
|
+
function I(e2, t2 = {}, i2 = "", n2 = false) {
|
|
1637
|
+
return fetch(e2, { method: "POST", headers: y(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(S);
|
|
1633
1638
|
}
|
|
1634
|
-
class
|
|
1639
|
+
class b {
|
|
1635
1640
|
authenticatePromise() {
|
|
1636
1641
|
return Promise.resolve("");
|
|
1637
1642
|
}
|
|
1638
1643
|
}
|
|
1639
|
-
class
|
|
1644
|
+
class w {
|
|
1640
1645
|
constructor(e2) {
|
|
1641
1646
|
this.connectionConfig = e2;
|
|
1642
1647
|
}
|
|
@@ -1644,60 +1649,59 @@ var telerikReportViewer = (function (exports) {
|
|
|
1644
1649
|
var e2, t2;
|
|
1645
1650
|
if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
|
|
1646
1651
|
let i2 = `grant_type=password&username=${encodeURIComponent((null === (e2 = this.connectionConfig) || void 0 === e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null === (t2 = this.connectionConfig) || void 0 === t2 ? void 0 : t2.password) || "")}`;
|
|
1647
|
-
return
|
|
1652
|
+
return I(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
|
|
1648
1653
|
}
|
|
1649
1654
|
return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
|
|
1650
1655
|
}
|
|
1651
1656
|
}
|
|
1652
|
-
class
|
|
1657
|
+
class L {
|
|
1653
1658
|
constructor(e2) {
|
|
1654
1659
|
this.connectionConfig = e2;
|
|
1655
1660
|
}
|
|
1656
1661
|
authenticatePromise(e2, t2) {
|
|
1657
|
-
return e2 ?
|
|
1662
|
+
return e2 ? I(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => I(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
|
|
1658
1663
|
}
|
|
1659
1664
|
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
class L {
|
|
1665
|
+
e.AuthType = void 0, (n = e.AuthType || (e.AuthType = {}))[n.None = 0] = "None", n[n.Basic = 1] = "Basic", n[n.PersonalToken = 2] = "PersonalToken";
|
|
1666
|
+
class T {
|
|
1663
1667
|
constructor(e2) {
|
|
1664
1668
|
this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
|
|
1665
1669
|
}
|
|
1666
1670
|
}
|
|
1667
|
-
class
|
|
1671
|
+
class R extends T {
|
|
1668
1672
|
constructor(t2) {
|
|
1669
1673
|
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
|
|
1670
1674
|
}
|
|
1671
1675
|
}
|
|
1672
|
-
class A extends
|
|
1676
|
+
class A extends T {
|
|
1673
1677
|
constructor(t2) {
|
|
1674
1678
|
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
|
|
1675
1679
|
}
|
|
1676
1680
|
}
|
|
1677
|
-
class
|
|
1681
|
+
class E extends A {
|
|
1678
1682
|
constructor(t2, i2, n2) {
|
|
1679
1683
|
super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
|
|
1680
1684
|
}
|
|
1681
1685
|
}
|
|
1682
|
-
class
|
|
1686
|
+
class M extends A {
|
|
1683
1687
|
constructor(t2, i2) {
|
|
1684
1688
|
super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
|
|
1685
1689
|
}
|
|
1686
1690
|
}
|
|
1687
|
-
function M() {
|
|
1688
|
-
}
|
|
1689
1691
|
function k() {
|
|
1690
|
-
k.init.call(this);
|
|
1691
1692
|
}
|
|
1692
|
-
function x(
|
|
1693
|
-
|
|
1693
|
+
function x() {
|
|
1694
|
+
x.init.call(this);
|
|
1694
1695
|
}
|
|
1695
|
-
function N(e2
|
|
1696
|
+
function N(e2) {
|
|
1697
|
+
return void 0 === e2._maxListeners ? x.defaultMaxListeners : e2._maxListeners;
|
|
1698
|
+
}
|
|
1699
|
+
function D(e2, t2, i2, n2) {
|
|
1696
1700
|
var r2, s2, o2, a2;
|
|
1697
1701
|
if ("function" != typeof i2)
|
|
1698
1702
|
throw new TypeError('"listener" argument must be a function');
|
|
1699
|
-
if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new
|
|
1700
|
-
if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 =
|
|
1703
|
+
if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new k(), e2._eventsCount = 0), o2) {
|
|
1704
|
+
if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = N(e2)) && r2 > 0 && o2.length > r2) {
|
|
1701
1705
|
o2.warned = true;
|
|
1702
1706
|
var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1703
1707
|
l2.name = "MaxListenersExceededWarning", l2.emitter = e2, l2.type = t2, l2.count = o2.length, a2 = l2, "function" == typeof console.warn ? console.warn(a2) : console.log(a2);
|
|
@@ -1706,7 +1710,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1706
1710
|
o2 = s2[t2] = i2, ++e2._eventsCount;
|
|
1707
1711
|
return e2;
|
|
1708
1712
|
}
|
|
1709
|
-
function
|
|
1713
|
+
function V(e2, t2, i2) {
|
|
1710
1714
|
var n2 = false;
|
|
1711
1715
|
function r2() {
|
|
1712
1716
|
e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
|
|
@@ -1724,20 +1728,20 @@ var telerikReportViewer = (function (exports) {
|
|
|
1724
1728
|
}
|
|
1725
1729
|
return 0;
|
|
1726
1730
|
}
|
|
1727
|
-
function
|
|
1731
|
+
function O(e2, t2) {
|
|
1728
1732
|
for (var i2 = new Array(t2); t2--; )
|
|
1729
1733
|
i2[t2] = e2[t2];
|
|
1730
1734
|
return i2;
|
|
1731
1735
|
}
|
|
1732
|
-
|
|
1733
|
-
this.domain = null,
|
|
1734
|
-
},
|
|
1736
|
+
k.prototype = /* @__PURE__ */ Object.create(null), x.EventEmitter = x, x.usingDomains = false, x.prototype.domain = void 0, x.prototype._events = void 0, x.prototype._maxListeners = void 0, x.defaultMaxListeners = 10, x.init = function() {
|
|
1737
|
+
this.domain = null, x.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new k(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1738
|
+
}, x.prototype.setMaxListeners = function(e2) {
|
|
1735
1739
|
if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
|
|
1736
1740
|
throw new TypeError('"n" argument must be a positive number');
|
|
1737
1741
|
return this._maxListeners = e2, this;
|
|
1738
|
-
},
|
|
1739
|
-
return
|
|
1740
|
-
},
|
|
1742
|
+
}, x.prototype.getMaxListeners = function() {
|
|
1743
|
+
return N(this);
|
|
1744
|
+
}, x.prototype.emit = function(e2) {
|
|
1741
1745
|
var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
|
|
1742
1746
|
if (o2 = this._events)
|
|
1743
1747
|
l2 = l2 && null == o2.error;
|
|
@@ -1761,7 +1765,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1761
1765
|
if (t3)
|
|
1762
1766
|
e3.call(i3);
|
|
1763
1767
|
else
|
|
1764
|
-
for (var n3 = e3.length, r3 =
|
|
1768
|
+
for (var n3 = e3.length, r3 = O(e3, n3), s3 = 0; s3 < n3; ++s3)
|
|
1765
1769
|
r3[s3].call(i3);
|
|
1766
1770
|
}(i2, c2, this);
|
|
1767
1771
|
break;
|
|
@@ -1770,7 +1774,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1770
1774
|
if (t3)
|
|
1771
1775
|
e3.call(i3, n3);
|
|
1772
1776
|
else
|
|
1773
|
-
for (var r3 = e3.length, s3 =
|
|
1777
|
+
for (var r3 = e3.length, s3 = O(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1774
1778
|
s3[o3].call(i3, n3);
|
|
1775
1779
|
}(i2, c2, this, arguments[1]);
|
|
1776
1780
|
break;
|
|
@@ -1779,7 +1783,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1779
1783
|
if (t3)
|
|
1780
1784
|
e3.call(i3, n3, r3);
|
|
1781
1785
|
else
|
|
1782
|
-
for (var s3 = e3.length, o3 =
|
|
1786
|
+
for (var s3 = e3.length, o3 = O(e3, s3), a3 = 0; a3 < s3; ++a3)
|
|
1783
1787
|
o3[a3].call(i3, n3, r3);
|
|
1784
1788
|
}(i2, c2, this, arguments[1], arguments[2]);
|
|
1785
1789
|
break;
|
|
@@ -1788,7 +1792,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1788
1792
|
if (t3)
|
|
1789
1793
|
e3.call(i3, n3, r3, s3);
|
|
1790
1794
|
else
|
|
1791
|
-
for (var o3 = e3.length, a3 =
|
|
1795
|
+
for (var o3 = e3.length, a3 = O(e3, o3), l3 = 0; l3 < o3; ++l3)
|
|
1792
1796
|
a3[l3].call(i3, n3, r3, s3);
|
|
1793
1797
|
}(i2, c2, this, arguments[1], arguments[2], arguments[3]);
|
|
1794
1798
|
break;
|
|
@@ -1799,24 +1803,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
1799
1803
|
if (t3)
|
|
1800
1804
|
e3.apply(i3, n3);
|
|
1801
1805
|
else
|
|
1802
|
-
for (var r3 = e3.length, s3 =
|
|
1806
|
+
for (var r3 = e3.length, s3 = O(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1803
1807
|
s3[o3].apply(i3, n3);
|
|
1804
1808
|
}(i2, c2, this, r2);
|
|
1805
1809
|
}
|
|
1806
1810
|
return true;
|
|
1807
|
-
},
|
|
1808
|
-
return
|
|
1809
|
-
},
|
|
1810
|
-
return
|
|
1811
|
-
},
|
|
1811
|
+
}, x.prototype.addListener = function(e2, t2) {
|
|
1812
|
+
return D(this, e2, t2, false);
|
|
1813
|
+
}, x.prototype.on = x.prototype.addListener, x.prototype.prependListener = function(e2, t2) {
|
|
1814
|
+
return D(this, e2, t2, true);
|
|
1815
|
+
}, x.prototype.once = function(e2, t2) {
|
|
1812
1816
|
if ("function" != typeof t2)
|
|
1813
1817
|
throw new TypeError('"listener" argument must be a function');
|
|
1814
|
-
return this.on(e2,
|
|
1815
|
-
},
|
|
1818
|
+
return this.on(e2, V(this, e2, t2)), this;
|
|
1819
|
+
}, x.prototype.prependOnceListener = function(e2, t2) {
|
|
1816
1820
|
if ("function" != typeof t2)
|
|
1817
1821
|
throw new TypeError('"listener" argument must be a function');
|
|
1818
|
-
return this.prependListener(e2,
|
|
1819
|
-
},
|
|
1822
|
+
return this.prependListener(e2, V(this, e2, t2)), this;
|
|
1823
|
+
}, x.prototype.removeListener = function(e2, t2) {
|
|
1820
1824
|
var i2, n2, r2, s2, o2;
|
|
1821
1825
|
if ("function" != typeof t2)
|
|
1822
1826
|
throw new TypeError('"listener" argument must be a function');
|
|
@@ -1825,7 +1829,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1825
1829
|
if (!(i2 = n2[e2]))
|
|
1826
1830
|
return this;
|
|
1827
1831
|
if (i2 === t2 || i2.listener && i2.listener === t2)
|
|
1828
|
-
0 === --this._eventsCount ? this._events = new
|
|
1832
|
+
0 === --this._eventsCount ? this._events = new k() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
|
|
1829
1833
|
else if ("function" != typeof i2) {
|
|
1830
1834
|
for (r2 = -1, s2 = i2.length; s2-- > 0; )
|
|
1831
1835
|
if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
|
|
@@ -1836,7 +1840,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1836
1840
|
return this;
|
|
1837
1841
|
if (1 === i2.length) {
|
|
1838
1842
|
if (i2[0] = void 0, 0 === --this._eventsCount)
|
|
1839
|
-
return this._events = new
|
|
1843
|
+
return this._events = new k(), this;
|
|
1840
1844
|
delete n2[e2];
|
|
1841
1845
|
} else
|
|
1842
1846
|
!function(e3, t3) {
|
|
@@ -1847,18 +1851,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
1847
1851
|
n2.removeListener && this.emit("removeListener", e2, o2 || t2);
|
|
1848
1852
|
}
|
|
1849
1853
|
return this;
|
|
1850
|
-
},
|
|
1854
|
+
}, x.prototype.off = function(e2, t2) {
|
|
1851
1855
|
return this.removeListener(e2, t2);
|
|
1852
|
-
},
|
|
1856
|
+
}, x.prototype.removeAllListeners = function(e2) {
|
|
1853
1857
|
var t2, i2;
|
|
1854
1858
|
if (!(i2 = this._events))
|
|
1855
1859
|
return this;
|
|
1856
1860
|
if (!i2.removeListener)
|
|
1857
|
-
return 0 === arguments.length ? (this._events = new
|
|
1861
|
+
return 0 === arguments.length ? (this._events = new k(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new k() : delete i2[e2]), this;
|
|
1858
1862
|
if (0 === arguments.length) {
|
|
1859
1863
|
for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
|
|
1860
1864
|
"removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
|
|
1861
|
-
return this.removeAllListeners("removeListener"), this._events = new
|
|
1865
|
+
return this.removeAllListeners("removeListener"), this._events = new k(), this._eventsCount = 0, this;
|
|
1862
1866
|
}
|
|
1863
1867
|
if ("function" == typeof (t2 = i2[e2]))
|
|
1864
1868
|
this.removeListener(e2, t2);
|
|
@@ -1867,34 +1871,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
1867
1871
|
this.removeListener(e2, t2[t2.length - 1]);
|
|
1868
1872
|
} while (t2[0]);
|
|
1869
1873
|
return this;
|
|
1870
|
-
},
|
|
1874
|
+
}, x.prototype.listeners = function(e2) {
|
|
1871
1875
|
var t2, i2 = this._events;
|
|
1872
1876
|
return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
|
|
1873
1877
|
for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
|
|
1874
1878
|
t3[i3] = e3[i3].listener || e3[i3];
|
|
1875
1879
|
return t3;
|
|
1876
1880
|
}(t2) : [];
|
|
1877
|
-
},
|
|
1881
|
+
}, x.listenerCount = function(e2, t2) {
|
|
1878
1882
|
return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : F.call(e2, t2);
|
|
1879
|
-
},
|
|
1883
|
+
}, x.prototype.listenerCount = F, x.prototype.eventNames = function() {
|
|
1880
1884
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
1881
1885
|
};
|
|
1882
|
-
const
|
|
1883
|
-
function
|
|
1886
|
+
const z = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
|
|
1887
|
+
function _(e2) {
|
|
1884
1888
|
if ("string" != typeof e2 && "symbol" != typeof e2)
|
|
1885
1889
|
throw new TypeError("type is not type of string or symbol!");
|
|
1886
1890
|
}
|
|
1887
|
-
function
|
|
1891
|
+
function H(e2) {
|
|
1888
1892
|
if ("function" != typeof e2)
|
|
1889
1893
|
throw new TypeError("fn is not type of Function!");
|
|
1890
1894
|
}
|
|
1891
|
-
function H(e2) {
|
|
1892
|
-
return { [O]: "always", fn: e2 };
|
|
1893
|
-
}
|
|
1894
1895
|
function U(e2) {
|
|
1895
|
-
return { [
|
|
1896
|
+
return { [z]: "always", fn: e2 };
|
|
1897
|
+
}
|
|
1898
|
+
function $(e2) {
|
|
1899
|
+
return { [z]: "once", fn: e2 };
|
|
1896
1900
|
}
|
|
1897
|
-
class
|
|
1901
|
+
class B {
|
|
1898
1902
|
constructor() {
|
|
1899
1903
|
this._events = {};
|
|
1900
1904
|
}
|
|
@@ -1902,25 +1906,25 @@ var telerikReportViewer = (function (exports) {
|
|
|
1902
1906
|
return this.on(e2, t2);
|
|
1903
1907
|
}
|
|
1904
1908
|
on(e2, t2) {
|
|
1905
|
-
return
|
|
1909
|
+
return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
|
|
1906
1910
|
}
|
|
1907
1911
|
prependListener(e2, t2) {
|
|
1908
1912
|
return this.prepend(e2, t2);
|
|
1909
1913
|
}
|
|
1910
1914
|
prepend(e2, t2) {
|
|
1911
|
-
return
|
|
1915
|
+
return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
|
|
1912
1916
|
}
|
|
1913
1917
|
prependOnceListener(e2, t2) {
|
|
1914
1918
|
return this.prependOnce(e2, t2);
|
|
1915
1919
|
}
|
|
1916
1920
|
prependOnce(e2, t2) {
|
|
1917
|
-
return
|
|
1921
|
+
return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift($(t2)), this;
|
|
1918
1922
|
}
|
|
1919
1923
|
listeners(e2) {
|
|
1920
1924
|
return (this._events[e2] || []).map((e3) => e3.fn);
|
|
1921
1925
|
}
|
|
1922
1926
|
once(e2, t2) {
|
|
1923
|
-
return
|
|
1927
|
+
return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push($(t2)), this;
|
|
1924
1928
|
}
|
|
1925
1929
|
removeAllListeners() {
|
|
1926
1930
|
this._events = {};
|
|
@@ -1929,7 +1933,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1929
1933
|
return this.removeListener(e2, t2);
|
|
1930
1934
|
}
|
|
1931
1935
|
removeListener(e2, t2) {
|
|
1932
|
-
|
|
1936
|
+
_(e2);
|
|
1933
1937
|
const i2 = this.listeners(e2);
|
|
1934
1938
|
if ("function" == typeof t2) {
|
|
1935
1939
|
let n2 = -1, r2 = false;
|
|
@@ -1940,13 +1944,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
1940
1944
|
return delete this._events[e2];
|
|
1941
1945
|
}
|
|
1942
1946
|
emit(e2, ...t2) {
|
|
1943
|
-
return
|
|
1944
|
-
|
|
1947
|
+
return s(this, void 0, void 0, function* () {
|
|
1948
|
+
_(e2);
|
|
1945
1949
|
const i2 = this.listeners(e2), n2 = [];
|
|
1946
1950
|
if (i2 && i2.length) {
|
|
1947
1951
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1948
1952
|
const s2 = i2[r2], o2 = s2.apply(this, t2);
|
|
1949
|
-
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1953
|
+
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][z] && n2.push(s2);
|
|
1950
1954
|
}
|
|
1951
1955
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1952
1956
|
}
|
|
@@ -1954,21 +1958,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
1954
1958
|
});
|
|
1955
1959
|
}
|
|
1956
1960
|
emitSync(e2, ...t2) {
|
|
1957
|
-
|
|
1961
|
+
_(e2);
|
|
1958
1962
|
const i2 = this.listeners(e2), n2 = [];
|
|
1959
1963
|
if (i2 && i2.length) {
|
|
1960
1964
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1961
1965
|
const s2 = i2[r2];
|
|
1962
|
-
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1966
|
+
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][z] && n2.push(s2);
|
|
1963
1967
|
}
|
|
1964
1968
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1965
1969
|
}
|
|
1966
1970
|
return false;
|
|
1967
1971
|
}
|
|
1968
1972
|
}
|
|
1969
|
-
class
|
|
1973
|
+
class q {
|
|
1970
1974
|
constructor() {
|
|
1971
|
-
this.eventEmitter = new
|
|
1975
|
+
this.eventEmitter = new x(), this.awaitEventEmitter = new B();
|
|
1972
1976
|
}
|
|
1973
1977
|
on(e2, t2) {
|
|
1974
1978
|
return this.eventEmitter.on(e2, t2), this;
|
|
@@ -1980,24 +1984,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
1980
1984
|
return this.awaitEventEmitter.on(e2, t2), this;
|
|
1981
1985
|
}
|
|
1982
1986
|
emitAsync(e2, ...t2) {
|
|
1983
|
-
return
|
|
1987
|
+
return s(this, void 0, void 0, function* () {
|
|
1984
1988
|
yield this.awaitEventEmitter.emit(e2, ...t2);
|
|
1985
1989
|
});
|
|
1986
1990
|
}
|
|
1987
1991
|
}
|
|
1988
|
-
class q {
|
|
1989
|
-
hasPdfPlugin() {
|
|
1990
|
-
let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
|
|
1991
|
-
for (let t2 of e2)
|
|
1992
|
-
try {
|
|
1993
|
-
let e3 = new ActiveXObject(t2);
|
|
1994
|
-
if (e3)
|
|
1995
|
-
return null !== e3;
|
|
1996
|
-
} catch (e3) {
|
|
1997
|
-
}
|
|
1998
|
-
return false;
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
1992
|
class W {
|
|
2002
1993
|
hasPdfPlugin() {
|
|
2003
1994
|
let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
|
|
@@ -2029,59 +2020,63 @@ var telerikReportViewer = (function (exports) {
|
|
|
2029
2020
|
return false;
|
|
2030
2021
|
}
|
|
2031
2022
|
}
|
|
2032
|
-
function J() {
|
|
2033
|
-
return window.navigator && window.navigator.msSaveOrOpenBlob;
|
|
2034
|
-
}
|
|
2035
2023
|
class G {
|
|
2036
2024
|
constructor() {
|
|
2037
|
-
this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin =
|
|
2025
|
+
this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = this.detectPdfSupport(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
2026
|
+
}
|
|
2027
|
+
detectPdfSupport() {
|
|
2028
|
+
return "boolean" == typeof navigator.pdfViewerEnabled ? navigator.pdfViewerEnabled : function() {
|
|
2038
2029
|
if (window.navigator) {
|
|
2039
2030
|
let e2 = window.navigator.userAgent.toLowerCase();
|
|
2040
|
-
return e2.indexOf("
|
|
2031
|
+
return e2.indexOf("firefox") > -1 ? new W() : e2.indexOf("edg/") > -1 ? new Z("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new Z("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new Z("WebKit built-in PDF") : new j();
|
|
2041
2032
|
}
|
|
2042
2033
|
return new j();
|
|
2043
|
-
}().hasPdfPlugin()
|
|
2034
|
+
}().hasPdfPlugin();
|
|
2044
2035
|
}
|
|
2045
2036
|
destroy() {
|
|
2046
2037
|
this.iframe = null;
|
|
2047
2038
|
}
|
|
2048
|
-
printDesktop(e2) {
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2039
|
+
printDesktop(e2, t2) {
|
|
2040
|
+
if (!this.hasPdfPlugin)
|
|
2041
|
+
return console.warn("Direct printing is not supported in this browser. The PDF document will be downloaded instead."), void this.printViaDownload(e2, t2);
|
|
2042
|
+
let i2 = null;
|
|
2043
|
+
this.iframe || (this.iframe = document.createElement("iframe"), this.iframe.style.display = "none", this.iframe.onload = () => {
|
|
2044
|
+
var e3, t3;
|
|
2052
2045
|
try {
|
|
2053
|
-
null === (
|
|
2046
|
+
null === (t3 = null === (e3 = this.iframe) || void 0 === e3 ? void 0 : e3.contentDocument) || void 0 === t3 || t3.execCommand("print", true);
|
|
2054
2047
|
} finally {
|
|
2055
|
-
|
|
2048
|
+
i2 && URL.revokeObjectURL(i2);
|
|
2056
2049
|
}
|
|
2057
|
-
})
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2050
|
+
});
|
|
2051
|
+
let n2 = new XMLHttpRequest();
|
|
2052
|
+
n2.open("GET", e2, true), n2.responseType = "arraybuffer", n2.onload = () => {
|
|
2053
|
+
200 === n2.status ? (i2 = URL.createObjectURL(new Blob([n2.response], { type: "application/pdf" })), null != this.iframe && (this.iframe.src = i2, document.body.appendChild(this.iframe))) : console.log("Could not retrieve remote PDF document.");
|
|
2054
|
+
}, n2.send();
|
|
2055
|
+
}
|
|
2056
|
+
printViaDownload(e2, t2) {
|
|
2057
|
+
let i2 = new XMLHttpRequest();
|
|
2058
|
+
i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = () => {
|
|
2059
|
+
if (200 === i2.status) {
|
|
2060
|
+
let e3 = URL.createObjectURL(new Blob([i2.response], { type: "application/pdf" })), n2 = document.createElement("a");
|
|
2061
|
+
n2.href = e3, n2.download = `${t2}.pdf`, n2.click(), URL.revokeObjectURL(e3);
|
|
2067
2062
|
} else
|
|
2068
|
-
console.log("Could not retrieve
|
|
2063
|
+
console.log("Could not retrieve PDF document for printing.");
|
|
2069
2064
|
}, i2.send();
|
|
2070
2065
|
}
|
|
2071
2066
|
printMobile(e2) {
|
|
2072
2067
|
window.open(e2, "_self");
|
|
2073
2068
|
}
|
|
2074
|
-
print(e2) {
|
|
2075
|
-
this.isMobile ? this.printMobile(e2) : this.printDesktop(e2);
|
|
2069
|
+
print(e2, t2) {
|
|
2070
|
+
this.isMobile ? this.printMobile(e2) : this.printDesktop(e2, t2);
|
|
2076
2071
|
}
|
|
2077
2072
|
getDirectPrintState() {
|
|
2078
2073
|
return this.hasPdfPlugin;
|
|
2079
2074
|
}
|
|
2080
2075
|
}
|
|
2081
|
-
function
|
|
2076
|
+
function J(e2) {
|
|
2082
2077
|
return 1e3 * e2;
|
|
2083
2078
|
}
|
|
2084
|
-
class
|
|
2079
|
+
class K {
|
|
2085
2080
|
constructor(e2, t2, i2) {
|
|
2086
2081
|
if (this.pingMilliseconds = 0, !e2)
|
|
2087
2082
|
throw "Error";
|
|
@@ -2090,7 +2085,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2090
2085
|
initSessionTimeout(e2) {
|
|
2091
2086
|
if (!isFinite(e2))
|
|
2092
2087
|
throw "sessionTimeoutSeconds must be finite";
|
|
2093
|
-
this.pingMilliseconds = e2 <= 120 ?
|
|
2088
|
+
this.pingMilliseconds = e2 <= 120 ? J(e2) / 2 : J(e2 - 60);
|
|
2094
2089
|
}
|
|
2095
2090
|
start() {
|
|
2096
2091
|
this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
|
|
@@ -2101,33 +2096,33 @@ var telerikReportViewer = (function (exports) {
|
|
|
2101
2096
|
this.interval && (clearInterval(this.interval), this.interval = null);
|
|
2102
2097
|
}
|
|
2103
2098
|
}
|
|
2104
|
-
var Y, Q, ee, te
|
|
2105
|
-
function
|
|
2099
|
+
var X, Y, Q, ee, te;
|
|
2100
|
+
function ie(e2, t2 = "", i2 = "") {
|
|
2106
2101
|
let n2 = document.createElement(e2);
|
|
2107
|
-
return t2 && (n2.id = t2),
|
|
2102
|
+
return t2 && (n2.id = t2), ne(n2, i2), n2;
|
|
2108
2103
|
}
|
|
2109
|
-
function
|
|
2104
|
+
function ne(e2, t2) {
|
|
2110
2105
|
if ("" === t2 || !e2)
|
|
2111
2106
|
return;
|
|
2112
2107
|
let i2 = t2.trim().split(" ");
|
|
2113
2108
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
|
|
2114
2109
|
}
|
|
2115
|
-
function
|
|
2110
|
+
function re(e2, t2) {
|
|
2116
2111
|
if ("" === t2 || !e2)
|
|
2117
2112
|
return;
|
|
2118
2113
|
let i2 = t2.trim().split(" ");
|
|
2119
2114
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
|
|
2120
2115
|
}
|
|
2121
|
-
function
|
|
2116
|
+
function se(e2, t2) {
|
|
2122
2117
|
return e2.classList.contains(t2);
|
|
2123
2118
|
}
|
|
2124
|
-
function
|
|
2119
|
+
function oe(e2) {
|
|
2125
2120
|
return e2.offsetParent;
|
|
2126
2121
|
}
|
|
2127
|
-
function
|
|
2122
|
+
function ae(e2) {
|
|
2128
2123
|
return parseInt(e2, 10) || 0;
|
|
2129
2124
|
}
|
|
2130
|
-
function
|
|
2125
|
+
function le(e2, t2, i2, n2 = 0, r2 = 0) {
|
|
2131
2126
|
let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
|
|
2132
2127
|
!function(e3, t3) {
|
|
2133
2128
|
e3.style.setProperty("transform", t3), e3.style.setProperty("-moz-transform", t3), e3.style.setProperty("-ms-transform", t3), e3.style.setProperty("-webkit-transform", t3), e3.style.setProperty("-o-transform", t3);
|
|
@@ -2135,11 +2130,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2135
2130
|
e3.style.setProperty("transform-origin", t3), e3.style.setProperty("-moz-transform-origin", t3), e3.style.setProperty("-ms-transform-origin", t3), e3.style.setProperty("-webkit-transform-origin", t3), e3.style.setProperty("-o-transform-origin", t3);
|
|
2136
2131
|
}(e2, s2);
|
|
2137
2132
|
}
|
|
2138
|
-
function
|
|
2139
|
-
let t2 =
|
|
2133
|
+
function he(e2) {
|
|
2134
|
+
let t2 = ie("div");
|
|
2140
2135
|
return t2.textContent = e2, t2.innerHTML;
|
|
2141
2136
|
}
|
|
2142
|
-
function
|
|
2137
|
+
function ce(e2) {
|
|
2143
2138
|
if (e2 && e2.length < 6) {
|
|
2144
2139
|
let t3 = 1, i2 = e2.split("");
|
|
2145
2140
|
for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
|
|
@@ -2149,16 +2144,16 @@ var telerikReportViewer = (function (exports) {
|
|
|
2149
2144
|
let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
|
|
2150
2145
|
return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
|
|
2151
2146
|
}
|
|
2152
|
-
function
|
|
2147
|
+
function de(e2) {
|
|
2153
2148
|
return !!e2 && e2.indexOf(",") > -1;
|
|
2154
2149
|
}
|
|
2155
|
-
function
|
|
2150
|
+
function ue(e2) {
|
|
2156
2151
|
if ("transparent" === e2.toLowerCase())
|
|
2157
2152
|
return 0;
|
|
2158
|
-
if (!
|
|
2153
|
+
if (!de(e2))
|
|
2159
2154
|
return 1;
|
|
2160
2155
|
if (-1 !== e2.indexOf("#")) {
|
|
2161
|
-
let t3 =
|
|
2156
|
+
let t3 = ce(e2);
|
|
2162
2157
|
if (null === t3)
|
|
2163
2158
|
return 1;
|
|
2164
2159
|
e2 = t3;
|
|
@@ -2168,34 +2163,30 @@ var telerikReportViewer = (function (exports) {
|
|
|
2168
2163
|
});
|
|
2169
2164
|
return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
|
|
2170
2165
|
}
|
|
2171
|
-
function
|
|
2172
|
-
let i2 =
|
|
2166
|
+
function pe(e2, t2) {
|
|
2167
|
+
let i2 = ie("div");
|
|
2173
2168
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
2174
2169
|
e2.appendChild(i2.childNodes[0]);
|
|
2175
2170
|
}
|
|
2176
|
-
function
|
|
2177
|
-
let i2 =
|
|
2171
|
+
function ge(e2, t2) {
|
|
2172
|
+
let i2 = ie("div");
|
|
2178
2173
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
2179
2174
|
e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
|
|
2180
2175
|
}
|
|
2181
|
-
function
|
|
2176
|
+
function fe(e2, t2) {
|
|
2182
2177
|
return e2 ? e2.querySelector(t2) : null;
|
|
2183
2178
|
}
|
|
2184
|
-
function
|
|
2185
|
-
var i2;
|
|
2186
|
-
return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
|
|
2187
|
-
}
|
|
2188
|
-
function Pe(e2) {
|
|
2179
|
+
function me(e2) {
|
|
2189
2180
|
let t2 = e2.parentElement;
|
|
2190
|
-
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 :
|
|
2181
|
+
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : me(t2) : null;
|
|
2191
2182
|
}
|
|
2192
|
-
function
|
|
2183
|
+
function ve(e2, t2 = 300) {
|
|
2193
2184
|
let i2;
|
|
2194
2185
|
return function(...n2) {
|
|
2195
2186
|
clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
|
|
2196
2187
|
};
|
|
2197
2188
|
}
|
|
2198
|
-
function
|
|
2189
|
+
function Pe(e2, t2) {
|
|
2199
2190
|
let i2 = null;
|
|
2200
2191
|
return function(n2, ...r2) {
|
|
2201
2192
|
i2 || (i2 = setTimeout(function() {
|
|
@@ -2203,24 +2194,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2203
2194
|
}, t2));
|
|
2204
2195
|
};
|
|
2205
2196
|
}
|
|
2206
|
-
function
|
|
2197
|
+
function Ce(e2, t2) {
|
|
2207
2198
|
return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
|
|
2208
2199
|
}
|
|
2209
|
-
function
|
|
2210
|
-
return
|
|
2200
|
+
function ye(e2) {
|
|
2201
|
+
return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
|
|
2211
2202
|
}
|
|
2212
|
-
function
|
|
2213
|
-
return
|
|
2203
|
+
function Se(e2) {
|
|
2204
|
+
return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
|
|
2214
2205
|
}
|
|
2215
|
-
function
|
|
2206
|
+
function Ie(e2) {
|
|
2216
2207
|
return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
|
|
2217
2208
|
}
|
|
2218
|
-
function
|
|
2209
|
+
function be(e2, ...t2) {
|
|
2219
2210
|
return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
|
|
2220
2211
|
}
|
|
2221
|
-
function
|
|
2212
|
+
function we(e2, t2) {
|
|
2222
2213
|
let i2, n2;
|
|
2223
|
-
if (
|
|
2214
|
+
if (Le(e2))
|
|
2224
2215
|
for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
|
|
2225
2216
|
;
|
|
2226
2217
|
else
|
|
@@ -2229,30 +2220,30 @@ var telerikReportViewer = (function (exports) {
|
|
|
2229
2220
|
break;
|
|
2230
2221
|
return e2;
|
|
2231
2222
|
}
|
|
2232
|
-
function
|
|
2223
|
+
function Le(e2) {
|
|
2233
2224
|
if (Array.isArray(e2))
|
|
2234
2225
|
return true;
|
|
2235
2226
|
return "number" == typeof (!!e2 && "length" in e2 && e2.length);
|
|
2236
2227
|
}
|
|
2237
|
-
function
|
|
2228
|
+
function Te(e2) {
|
|
2238
2229
|
return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
|
|
2239
2230
|
}
|
|
2240
|
-
function
|
|
2231
|
+
function Re(e2) {
|
|
2241
2232
|
return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
|
|
2242
2233
|
}
|
|
2243
|
-
function
|
|
2234
|
+
function Ae(e2) {
|
|
2244
2235
|
return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
|
|
2245
2236
|
}
|
|
2246
|
-
e.PageMode = void 0, (
|
|
2247
|
-
const
|
|
2248
|
-
var
|
|
2237
|
+
e.PageMode = void 0, (X = e.PageMode || (e.PageMode = {}))[X.ContinuousScroll = 0] = "ContinuousScroll", X[X.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Y = e.PrintMode || (e.PrintMode = {}))[Y.AutoSelect = 0] = "AutoSelect", Y[Y.ForcePDFPlugin = 1] = "ForcePDFPlugin", Y[Y.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Q = e.ScaleMode || (e.ScaleMode = {}))[Q.FitPageWidth = 0] = "FitPageWidth", Q[Q.FitPage = 1] = "FitPage", Q[Q.Specific = 2] = "Specific", e.ServiceType = void 0, (ee = e.ServiceType || (e.ServiceType = {}))[ee.REST = 0] = "REST", ee[ee.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (te = e.ViewMode || (e.ViewMode = {}))[te.Interactive = 0] = "Interactive", te[te.PrintPreview = 1] = "PrintPreview";
|
|
2238
|
+
const Ee = "System.Int64", Me = "System.Double", ke = "System.String", xe = "System.DateTime", Ne = "System.Boolean";
|
|
2239
|
+
var De = function() {
|
|
2249
2240
|
var e2 = {};
|
|
2250
2241
|
function t2(e3, t3, i3, n2) {
|
|
2251
2242
|
var r2 = [].concat(t3).map(function(t4) {
|
|
2252
2243
|
return function(e4, t5, i4) {
|
|
2253
2244
|
if (e4.availableValues) {
|
|
2254
2245
|
var n3 = false;
|
|
2255
|
-
if (
|
|
2246
|
+
if (we(e4.availableValues, function(e5, r3) {
|
|
2256
2247
|
return !(n3 = i4(t5, r3.value));
|
|
2257
2248
|
}), !n3) {
|
|
2258
2249
|
if (e4.allowNull && !t5)
|
|
@@ -2276,7 +2267,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2276
2267
|
function i2(e3, t3) {
|
|
2277
2268
|
return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
|
|
2278
2269
|
}
|
|
2279
|
-
return e2[
|
|
2270
|
+
return e2[ke] = { validate: function(e3, i3) {
|
|
2280
2271
|
return t2(e3, i3, function(t3) {
|
|
2281
2272
|
if (!t3) {
|
|
2282
2273
|
if (e3.allowNull)
|
|
@@ -2289,9 +2280,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2289
2280
|
}, function(e4, t3) {
|
|
2290
2281
|
return e4 == t3;
|
|
2291
2282
|
});
|
|
2292
|
-
} }, e2[
|
|
2283
|
+
} }, e2[Me] = { validate: function(e3, n2) {
|
|
2293
2284
|
return t2(e3, n2, function(t3) {
|
|
2294
|
-
var n3 =
|
|
2285
|
+
var n3 = Re(t3);
|
|
2295
2286
|
if (isNaN(n3)) {
|
|
2296
2287
|
if (i2(e3, t3))
|
|
2297
2288
|
return null;
|
|
@@ -2299,11 +2290,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2299
2290
|
}
|
|
2300
2291
|
return n3;
|
|
2301
2292
|
}, function(e4, t3) {
|
|
2302
|
-
return
|
|
2293
|
+
return Re(e4) == Re(t3);
|
|
2303
2294
|
});
|
|
2304
|
-
} }, e2[
|
|
2295
|
+
} }, e2[Ee] = { validate: function(e3, n2) {
|
|
2305
2296
|
return t2(e3, n2, function(t3) {
|
|
2306
|
-
var n3 =
|
|
2297
|
+
var n3 = Te(t3);
|
|
2307
2298
|
if (isNaN(n3)) {
|
|
2308
2299
|
if (i2(e3, t3))
|
|
2309
2300
|
return null;
|
|
@@ -2311,19 +2302,19 @@ var telerikReportViewer = (function (exports) {
|
|
|
2311
2302
|
}
|
|
2312
2303
|
return n3;
|
|
2313
2304
|
}, function(e4, t3) {
|
|
2314
|
-
return
|
|
2305
|
+
return Te(e4) == Re(t3);
|
|
2315
2306
|
});
|
|
2316
|
-
} }, e2[
|
|
2307
|
+
} }, e2[xe] = { validate: function(e3, i3) {
|
|
2317
2308
|
return t2(e3, i3, function(t3) {
|
|
2318
2309
|
if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
|
|
2319
2310
|
return null;
|
|
2320
2311
|
if (!isNaN(Date.parse(t3)))
|
|
2321
|
-
return e3.availableValues ? t3 :
|
|
2312
|
+
return e3.availableValues ? t3 : Ae(t3);
|
|
2322
2313
|
throw "Please input a valid date.";
|
|
2323
2314
|
}, function(e4, t3) {
|
|
2324
|
-
return e4 =
|
|
2315
|
+
return e4 = Ae(e4), t3 = Ae(t3), e4.getTime() == t3.getTime();
|
|
2325
2316
|
});
|
|
2326
|
-
} }, e2[
|
|
2317
|
+
} }, e2[Ne] = { validate: function(e3, n2) {
|
|
2327
2318
|
return t2(e3, n2, function(t3) {
|
|
2328
2319
|
if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase()))
|
|
2329
2320
|
return Boolean(t3);
|
|
@@ -2336,11 +2327,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2336
2327
|
} }, { validate: function(t3, i3) {
|
|
2337
2328
|
var n2 = e2[t3.type];
|
|
2338
2329
|
if (!n2)
|
|
2339
|
-
throw
|
|
2330
|
+
throw be("Cannot validate parameter of type {type}.", t3);
|
|
2340
2331
|
return n2.validate(t3, i3);
|
|
2341
2332
|
} };
|
|
2342
2333
|
}();
|
|
2343
|
-
function
|
|
2334
|
+
function Ve(e2, t2, i2) {
|
|
2344
2335
|
try {
|
|
2345
2336
|
const n2 = e2.availableValues.find((e3) => e3.value === t2);
|
|
2346
2337
|
if (!n2) {
|
|
@@ -2353,18 +2344,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
2353
2344
|
return;
|
|
2354
2345
|
}
|
|
2355
2346
|
}
|
|
2356
|
-
function
|
|
2347
|
+
function Fe(e2, t2, i2) {
|
|
2357
2348
|
const n2 = [];
|
|
2358
2349
|
for (let r2 in t2)
|
|
2359
|
-
n2.push(
|
|
2350
|
+
n2.push(Ve(e2, t2[r2], i2));
|
|
2360
2351
|
return n2;
|
|
2361
2352
|
}
|
|
2362
|
-
class
|
|
2353
|
+
class Oe {
|
|
2363
2354
|
constructor(e2 = "", t2 = {}) {
|
|
2364
2355
|
this.report = e2, this.parameters = t2;
|
|
2365
2356
|
}
|
|
2366
2357
|
}
|
|
2367
|
-
class
|
|
2358
|
+
class ze extends q {
|
|
2368
2359
|
constructor(e2) {
|
|
2369
2360
|
super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
|
|
2370
2361
|
}
|
|
@@ -2372,7 +2363,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2372
2363
|
this.destroyResizeObserver();
|
|
2373
2364
|
}
|
|
2374
2365
|
initResizeObserver() {
|
|
2375
|
-
this.debounceResize =
|
|
2366
|
+
this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
|
|
2376
2367
|
}
|
|
2377
2368
|
destroyResizeObserver() {
|
|
2378
2369
|
this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
|
|
@@ -2381,8 +2372,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
2381
2372
|
e2[0].target === this.element && this.emit("resize");
|
|
2382
2373
|
}
|
|
2383
2374
|
}
|
|
2384
|
-
const
|
|
2385
|
-
class
|
|
2375
|
+
const _e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" data-page="{0}"><div class="trv-skeleton-wrapper"></div></div>';
|
|
2376
|
+
class He {
|
|
2386
2377
|
constructor(t2, i2, n2) {
|
|
2387
2378
|
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));
|
|
2388
2379
|
}
|
|
@@ -2404,10 +2395,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2404
2395
|
return this.enabled;
|
|
2405
2396
|
}
|
|
2406
2397
|
enable() {
|
|
2407
|
-
this.enabled = true,
|
|
2398
|
+
this.enabled = true, ne(this.placeholder, "scrollable"), this.initEvents();
|
|
2408
2399
|
}
|
|
2409
2400
|
disable() {
|
|
2410
|
-
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false,
|
|
2401
|
+
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, re(this.placeholder, "scrollable"), this.unbind());
|
|
2411
2402
|
}
|
|
2412
2403
|
renderPage(e2) {
|
|
2413
2404
|
let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
|
|
@@ -2422,7 +2413,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2422
2413
|
this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
|
|
2423
2414
|
}
|
|
2424
2415
|
setCurrentPage(e2) {
|
|
2425
|
-
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (
|
|
2416
|
+
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (re(this.findElement(".k-state-default"), "k-state-default"), ne(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
|
|
2426
2417
|
}
|
|
2427
2418
|
updatePageArea(e2) {
|
|
2428
2419
|
var t2;
|
|
@@ -2447,18 +2438,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
2447
2438
|
return this.controller.getCurrentPageNumber();
|
|
2448
2439
|
}
|
|
2449
2440
|
isSkeletonScreen(e2, t2) {
|
|
2450
|
-
return !(!e2 && !(e2 = this.findPageElement(t2))) &&
|
|
2441
|
+
return !(!e2 && !(e2 = this.findPageElement(t2))) && se(e2, "trv-skeleton-" + t2);
|
|
2451
2442
|
}
|
|
2452
2443
|
addSkeletonScreen(e2, t2) {
|
|
2453
|
-
let i2 =
|
|
2454
|
-
t2 ?
|
|
2444
|
+
let i2 = be(_e, e2);
|
|
2445
|
+
t2 ? ge(this.pageWrapper, i2) : pe(this.pageWrapper, i2);
|
|
2455
2446
|
}
|
|
2456
2447
|
generateSkeletonScreens(e2) {
|
|
2457
2448
|
var t2;
|
|
2458
|
-
let i2 = "", n2 =
|
|
2459
|
-
for (;
|
|
2460
|
-
i2 +=
|
|
2461
|
-
|
|
2449
|
+
let i2 = "", n2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, r2 = n2 ? parseInt(n2) + 1 : 1;
|
|
2450
|
+
for (; r2 < e2; r2++)
|
|
2451
|
+
i2 += be(_e, r2);
|
|
2452
|
+
pe(this.pageWrapper, i2);
|
|
2462
2453
|
}
|
|
2463
2454
|
loadMorePages() {
|
|
2464
2455
|
var e2;
|
|
@@ -2509,10 +2500,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2509
2500
|
}
|
|
2510
2501
|
}
|
|
2511
2502
|
initEvents() {
|
|
2512
|
-
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll =
|
|
2503
|
+
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
|
|
2513
2504
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2514
2505
|
!this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
|
|
2515
|
-
}, 250), this.throttleScroll =
|
|
2506
|
+
}, 250), this.throttleScroll = Pe(() => {
|
|
2516
2507
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2517
2508
|
this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
|
|
2518
2509
|
}, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
|
|
@@ -2607,7 +2598,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2607
2598
|
return i2 && i2.length ? i2[i2.length - 1] : null;
|
|
2608
2599
|
}
|
|
2609
2600
|
}
|
|
2610
|
-
class
|
|
2601
|
+
class Ue {
|
|
2611
2602
|
constructor() {
|
|
2612
2603
|
this.scaleFactor = 0, this.placeholder = null, this.scrollableContainer = null, this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.freezeMaxZIndex = {}, this.freezeBGColor = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} }, this.zIndex = 1;
|
|
2613
2604
|
}
|
|
@@ -2615,7 +2606,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2615
2606
|
this.reset(e2), this.attachToScrollEvent();
|
|
2616
2607
|
}
|
|
2617
2608
|
reset(e2) {
|
|
2618
|
-
this.placeholder = e2, this.scrollableContainer =
|
|
2609
|
+
this.placeholder = e2, this.scrollableContainer = fe(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
|
|
2619
2610
|
}
|
|
2620
2611
|
setScaleFactor(e2) {
|
|
2621
2612
|
this.scaleFactor = e2;
|
|
@@ -2638,7 +2629,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2638
2629
|
saveFreezeItemsInitialState(e2) {
|
|
2639
2630
|
var t2, i2, n2;
|
|
2640
2631
|
let r2 = null === (t2 = this.placeholder) || void 0 === t2 ? void 0 : t2.querySelectorAll("[data-sticky-direction][data-sticky-id='" + e2 + "']"), s2 = null === (i2 = this.placeholder) || void 0 === i2 ? void 0 : i2.querySelectorAll("[data-reporting-action][data-sticky-id='" + e2 + "']"), o2 = null, a2 = null, l2 = null, h2 = null;
|
|
2641
|
-
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 =
|
|
2632
|
+
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = fe(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
|
|
2642
2633
|
var i3;
|
|
2643
2634
|
let n3 = t3.dataset.stickyDirection, r3 = (null === (i3 = t3.dataset.id) || void 0 === i3 ? void 0 : i3.toString()) || "", s3 = t3.offsetLeft / this.scaleFactor, c2 = t3.offsetLeft + t3.offsetWidth * this.scaleFactor, d2 = t3.offsetTop / this.scaleFactor, u2 = t3.offsetTop + t3.offsetHeight * this.scaleFactor, p2 = (e3, t4) => null === e3 || t4 < e3 ? t4 : e3, g2 = (e3, t4) => null === e3 || t4 > e3 ? t4 : e3;
|
|
2644
2635
|
switch (n3) {
|
|
@@ -2660,7 +2651,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2660
2651
|
}
|
|
2661
2652
|
updateFreezeItemsOnScroll(e2, t2, i2) {
|
|
2662
2653
|
var n2, r2;
|
|
2663
|
-
let s2 =
|
|
2654
|
+
let s2 = fe(this.placeholder, "div[data-id='" + e2 + "']");
|
|
2664
2655
|
if (!s2)
|
|
2665
2656
|
return;
|
|
2666
2657
|
let o2 = null === (n2 = this.placeholder) || void 0 === n2 ? void 0 : n2.querySelectorAll("[data-sticky-direction*='Horizontal'][data-sticky-id='" + e2 + "']"), a2 = null === (r2 = this.placeholder) || void 0 === r2 ? void 0 : r2.querySelectorAll("[data-sticky-direction*='Vertical'][data-sticky-id='" + e2 + "']");
|
|
@@ -2685,7 +2676,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2685
2676
|
"IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
|
|
2686
2677
|
}
|
|
2687
2678
|
hasSetBgColor(e2) {
|
|
2688
|
-
return
|
|
2679
|
+
return ue(e2) > 0;
|
|
2689
2680
|
}
|
|
2690
2681
|
isFrozen(e2) {
|
|
2691
2682
|
return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
|
|
@@ -2705,21 +2696,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
2705
2696
|
return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
|
|
2706
2697
|
}
|
|
2707
2698
|
}
|
|
2708
|
-
const
|
|
2709
|
-
function
|
|
2699
|
+
const $e = /{(\w+?)}/g, Be = "trv-initial-image-styles";
|
|
2700
|
+
function qe(e2, t2) {
|
|
2710
2701
|
let i2 = Array.isArray(t2);
|
|
2711
|
-
return e2 ? e2.replace(
|
|
2702
|
+
return e2 ? e2.replace($e, function(e3, n2) {
|
|
2712
2703
|
return t2[i2 ? parseInt(n2) : n2];
|
|
2713
2704
|
}) : "";
|
|
2714
2705
|
}
|
|
2715
|
-
const
|
|
2716
|
-
e.BasicAuth =
|
|
2706
|
+
const We = "trv-search-dialog-shaded-result", Ze = "trv-search-dialog-highlighted-result";
|
|
2707
|
+
e.BasicAuth = w, e.BookmarkNode = class {
|
|
2717
2708
|
constructor() {
|
|
2718
2709
|
this.id = "", this.text = "", this.page = 0, this.items = null;
|
|
2719
2710
|
}
|
|
2720
|
-
}, e.ConnectionConfig =
|
|
2711
|
+
}, e.ConnectionConfig = T, e.ConnectionConfigNoAuth = R, e.ConnectionConfigServerCredentials = E, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = M, e.ContentArea = class {
|
|
2721
2712
|
constructor(e2, t2, i2, n2 = {}) {
|
|
2722
|
-
this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new
|
|
2713
|
+
this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new He(this.placeholder, this, t2), this.resizeService = new ze(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
|
|
2723
2714
|
}
|
|
2724
2715
|
destroy() {
|
|
2725
2716
|
this.resizeService && this.resizeService.destroy();
|
|
@@ -2746,10 +2737,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2746
2737
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
|
2747
2738
|
}
|
|
2748
2739
|
onReportLoadProgress(e2) {
|
|
2749
|
-
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(
|
|
2740
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(qe(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
|
2750
2741
|
}
|
|
2751
2742
|
onReportLoadComplete(t2) {
|
|
2752
|
-
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(
|
|
2743
|
+
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(qe(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 Ue(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
|
|
2753
2744
|
}
|
|
2754
2745
|
onReportAutoRunOff() {
|
|
2755
2746
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
|
@@ -2786,15 +2777,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2786
2777
|
let t2 = this.controller.getScaleMode();
|
|
2787
2778
|
return t2 === e.ScaleMode.FitPage || t2 === e.ScaleMode.FitPageWidth;
|
|
2788
2779
|
}
|
|
2789
|
-
onPrintStarted(e2) {
|
|
2790
|
-
e2.handled || this.showNotification(this.messages.ReportViewer_PreparingPrint);
|
|
2791
|
-
}
|
|
2792
2780
|
onPrintDocumentReady() {
|
|
2793
2781
|
this.hideNotification();
|
|
2794
2782
|
}
|
|
2795
|
-
onExportStarted(e2) {
|
|
2796
|
-
e2.handled || this.showNotification(this.messages.ReportViewer_PreparingDownload);
|
|
2797
|
-
}
|
|
2798
2783
|
onExportDocumentReady() {
|
|
2799
2784
|
this.hideNotification();
|
|
2800
2785
|
}
|
|
@@ -2846,14 +2831,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2846
2831
|
}
|
|
2847
2832
|
let e3 = 0, i3 = 0;
|
|
2848
2833
|
for (; n2 && n2 !== this.pageContainer; ) {
|
|
2849
|
-
if (
|
|
2834
|
+
if (se(n2, "trv-page-wrapper")) {
|
|
2850
2835
|
let t3 = n2.dataset.pageScale;
|
|
2851
2836
|
if ("string" == typeof t3) {
|
|
2852
2837
|
let n3 = parseFloat(t3);
|
|
2853
2838
|
e3 *= n3, i3 *= n3;
|
|
2854
2839
|
}
|
|
2855
2840
|
}
|
|
2856
|
-
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 =
|
|
2841
|
+
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = oe(n2);
|
|
2857
2842
|
}
|
|
2858
2843
|
this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
|
|
2859
2844
|
} else
|
|
@@ -2867,7 +2852,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2867
2852
|
return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
|
|
2868
2853
|
}
|
|
2869
2854
|
disablePagesArea(e2) {
|
|
2870
|
-
e2 ?
|
|
2855
|
+
e2 ? ne(this.placeholder, "trv-loading") : re(this.placeholder, "trv-loading");
|
|
2871
2856
|
}
|
|
2872
2857
|
disableParametersArea(e2) {
|
|
2873
2858
|
var t2, i2;
|
|
@@ -2878,13 +2863,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
2878
2863
|
}
|
|
2879
2864
|
showNotification(e2 = "", t2 = "info") {
|
|
2880
2865
|
let i2 = this.notification.dataset.type;
|
|
2881
|
-
i2 &&
|
|
2866
|
+
i2 && re(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
|
|
2882
2867
|
let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
|
|
2883
|
-
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.",
|
|
2868
|
+
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ne(this.notification, `k-notification-${t2}`), re(this.notification, "k-hidden");
|
|
2884
2869
|
}
|
|
2885
2870
|
hideNotification() {
|
|
2886
2871
|
let e2 = String(this.notification.dataset.type);
|
|
2887
|
-
delete this.notification.dataset.type,
|
|
2872
|
+
delete this.notification.dataset.type, re(this.notification, `k-notification-${e2}`), ne(this.notification, "k-hidden");
|
|
2888
2873
|
}
|
|
2889
2874
|
pageNo(e2) {
|
|
2890
2875
|
var t2;
|
|
@@ -2907,7 +2892,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2907
2892
|
r2 = JSON.parse(n2.dataset.box);
|
|
2908
2893
|
else {
|
|
2909
2894
|
let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
|
|
2910
|
-
r2 = { padLeft:
|
|
2895
|
+
r2 = { padLeft: ae(i3.marginLeft) + ae(e2.borderLeftWidth) + ae(e2.paddingLeft), padRight: ae(i3.marginRight) + ae(e2.borderRightWidth) + ae(e2.paddingRight), padTop: ae(i3.marginTop) + ae(e2.borderTopWidth) + ae(e2.paddingTop), padBottom: ae(i3.marginBottom) + ae(e2.borderBottomWidth) + ae(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
|
|
2911
2896
|
}
|
|
2912
2897
|
let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
|
|
2913
2898
|
if (0 === a2) {
|
|
@@ -2916,7 +2901,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2916
2901
|
}
|
|
2917
2902
|
const h2 = this.controller.getScaleMode(), c2 = l2 > a2 && h2 === e.ScaleMode.FitPageWidth ? 20 : 0, d2 = (this.pageContainer.clientWidth - c2 - r2.padLeft - r2.padRight) / a2, u2 = (this.pageContainer.clientHeight - 1 - r2.padTop - r2.padBottom) / l2;
|
|
2918
2903
|
let p2 = this.controller.getScale();
|
|
2919
|
-
h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 ||
|
|
2904
|
+
h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || le(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
|
|
2920
2905
|
}
|
|
2921
2906
|
enableInteractivity() {
|
|
2922
2907
|
this.disableInteractivity(), this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
|
|
@@ -2939,24 +2924,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2939
2924
|
onInteractiveItemClick(e2, t2) {
|
|
2940
2925
|
var i2;
|
|
2941
2926
|
let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
|
|
2942
|
-
r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new
|
|
2927
|
+
r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new l(e2, r2))), t2.stopPropagation();
|
|
2943
2928
|
}
|
|
2944
2929
|
onInteractiveItemEnter(e2) {
|
|
2945
2930
|
var t2;
|
|
2946
2931
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2947
|
-
n2 && this.controller.reportActionEnter(new
|
|
2932
|
+
n2 && this.controller.reportActionEnter(new l(e2, n2));
|
|
2948
2933
|
}
|
|
2949
2934
|
onInteractiveItemLeave(e2) {
|
|
2950
2935
|
var t2;
|
|
2951
2936
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2952
|
-
n2 && this.controller.reportActionLeave(new
|
|
2937
|
+
n2 && this.controller.reportActionLeave(new l(e2, n2));
|
|
2953
2938
|
}
|
|
2954
2939
|
onToolTipItemEnter(e2, t2) {
|
|
2955
2940
|
let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
|
|
2956
|
-
(i2 || n2) && this.controller.reportTooltipOpening(new
|
|
2941
|
+
(i2 || n2) && this.controller.reportTooltipOpening(new P(e2, n2 || "", i2 || "", t2));
|
|
2957
2942
|
}
|
|
2958
2943
|
onToolTipItemLeave(e2) {
|
|
2959
|
-
this.controller.reportTooltipClosing(new
|
|
2944
|
+
this.controller.reportTooltipClosing(new P(e2, "", "", null));
|
|
2960
2945
|
}
|
|
2961
2946
|
getNavigateToPageOnDocReady(e2, t2) {
|
|
2962
2947
|
var i2;
|
|
@@ -2974,8 +2959,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
2974
2959
|
var t2;
|
|
2975
2960
|
let i2 = "trv-" + this.controller.getClientId() + "-styles";
|
|
2976
2961
|
null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
|
|
2977
|
-
let n2 =
|
|
2978
|
-
n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
|
|
2962
|
+
let n2 = ie("style", i2);
|
|
2963
|
+
this.applyNonce(n2), n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
|
|
2979
2964
|
}
|
|
2980
2965
|
setPageContent(e2) {
|
|
2981
2966
|
this.actions = e2.pageActions, this.updatePageStyle(e2);
|
|
@@ -2986,26 +2971,30 @@ var telerikReportViewer = (function (exports) {
|
|
|
2986
2971
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
|
2987
2972
|
}
|
|
2988
2973
|
renderPageElement(e2) {
|
|
2989
|
-
let t2 =
|
|
2974
|
+
let t2 = ie("div");
|
|
2990
2975
|
t2.innerHTML = e2.pageContent;
|
|
2991
2976
|
let i2 = t2.querySelector("div.sheet");
|
|
2992
2977
|
i2.style.margin = "0";
|
|
2993
|
-
let n2 =
|
|
2994
|
-
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(
|
|
2978
|
+
let n2 = ie("div", "", "trv-report-page");
|
|
2979
|
+
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ie("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
|
|
2995
2980
|
}
|
|
2996
2981
|
applyPlaceholderViewModeClass() {
|
|
2997
|
-
this.controller.getViewMode() === e.ViewMode.Interactive ? (
|
|
2982
|
+
this.controller.getViewMode() === e.ViewMode.Interactive ? (re(this.placeholder, "printpreview"), ne(this.placeholder, "interactive")) : (re(this.placeholder, "interactive"), ne(this.placeholder, "printpreview"));
|
|
2983
|
+
}
|
|
2984
|
+
applyNonce(e2) {
|
|
2985
|
+
const t2 = this.controller.getNonce();
|
|
2986
|
+
t2 && e2.setAttribute("nonce", t2);
|
|
2998
2987
|
}
|
|
2999
2988
|
setPageAreaImage() {
|
|
3000
2989
|
this.clearPageAreaImage();
|
|
3001
|
-
let e2 =
|
|
3002
|
-
e2.innerHTML =
|
|
2990
|
+
let e2 = ie("style", Be);
|
|
2991
|
+
this.applyNonce(e2), e2.innerHTML = qe('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
|
|
3003
2992
|
}
|
|
3004
2993
|
clearPageAreaImage() {
|
|
3005
2994
|
var e2;
|
|
3006
|
-
null === (e2 = document.getElementById(
|
|
2995
|
+
null === (e2 = document.getElementById(Be)) || void 0 === e2 || e2.remove();
|
|
3007
2996
|
}
|
|
3008
|
-
}, e.CurrentPageChangedEventArgs =
|
|
2997
|
+
}, e.CurrentPageChangedEventArgs = v, e.DeviceInfo = o, e.DocumentInfo = class {
|
|
3009
2998
|
constructor() {
|
|
3010
2999
|
this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
|
|
3011
3000
|
}
|
|
@@ -3013,27 +3002,27 @@ var telerikReportViewer = (function (exports) {
|
|
|
3013
3002
|
constructor() {
|
|
3014
3003
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
|
3015
3004
|
}
|
|
3016
|
-
}, e.EmailInfo =
|
|
3005
|
+
}, e.EmailInfo = a, e.ExportDocumentReadyEventArgs = u, e.ExportStartEventArgs = c, e.ExportStartedEventArgs = d, e.KeepClientAliveSentinel = K, e.NoAuth = b, e.PageAction = class {
|
|
3017
3006
|
constructor() {
|
|
3018
3007
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
|
3019
3008
|
}
|
|
3020
|
-
}, e.PageActionEventArgs =
|
|
3009
|
+
}, e.PageActionEventArgs = l, e.PageInfo = class {
|
|
3021
3010
|
constructor() {
|
|
3022
3011
|
this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
|
|
3023
3012
|
}
|
|
3024
|
-
}, e.PageTargetElement =
|
|
3013
|
+
}, e.PageTargetElement = h, e.ParameterInfo = class {
|
|
3025
3014
|
constructor() {
|
|
3026
3015
|
this.name = "", this.type = "", this.text = "", this.multivalue = false, this.allowNull = false, this.allowBlank = false, this.isVisible = false, this.autoRefresh = false, this.hasChildParameters = false, this.childParameters = [], this.availableValues = [], this.value = "", this.id = "", this.label = "";
|
|
3027
3016
|
}
|
|
3028
|
-
}, e.ParameterValidators =
|
|
3017
|
+
}, e.ParameterValidators = De, e.ParameterValue = class {
|
|
3029
3018
|
constructor() {
|
|
3030
3019
|
this.name = "", this.value = null;
|
|
3031
3020
|
}
|
|
3032
|
-
}, e.PersonalTokenAuth =
|
|
3021
|
+
}, e.PersonalTokenAuth = L, e.PrintDocumentReadyEventArgs = g, e.PrintStartedEventArgs = p, e.RenderingExtension = class {
|
|
3033
3022
|
constructor() {
|
|
3034
3023
|
this.name = "", this.localizedName = "";
|
|
3035
3024
|
}
|
|
3036
|
-
}, e.ReportController = class extends
|
|
3025
|
+
}, e.ReportController = class extends q {
|
|
3037
3026
|
constructor(e2, t2) {
|
|
3038
3027
|
super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new G(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
|
|
3039
3028
|
}
|
|
@@ -3050,6 +3039,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3050
3039
|
setAuthenticationToken(e2) {
|
|
3051
3040
|
this.serviceClient.setAccessToken(e2);
|
|
3052
3041
|
}
|
|
3042
|
+
getNonce() {
|
|
3043
|
+
return this.options.nonce;
|
|
3044
|
+
}
|
|
3053
3045
|
init() {
|
|
3054
3046
|
this.refreshReport(true, "");
|
|
3055
3047
|
}
|
|
@@ -3079,7 +3071,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3079
3071
|
let t2 = {}, i2 = [], n2 = false;
|
|
3080
3072
|
for (let r2 of e2)
|
|
3081
3073
|
try {
|
|
3082
|
-
let e3 =
|
|
3074
|
+
let e3 = De.validate(r2, r2.value);
|
|
3083
3075
|
t2[r2.id] = e3;
|
|
3084
3076
|
} catch (e3) {
|
|
3085
3077
|
n2 = true, i2.push(r2);
|
|
@@ -3102,7 +3094,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3102
3094
|
hasInvalidParameter(e2) {
|
|
3103
3095
|
for (const t2 of e2)
|
|
3104
3096
|
try {
|
|
3105
|
-
|
|
3097
|
+
De.validate(t2, t2.value);
|
|
3106
3098
|
} catch (e3) {
|
|
3107
3099
|
return true;
|
|
3108
3100
|
}
|
|
@@ -3134,7 +3126,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3134
3126
|
}
|
|
3135
3127
|
getReportSource() {
|
|
3136
3128
|
var e2;
|
|
3137
|
-
return new
|
|
3129
|
+
return new Oe(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
|
|
3138
3130
|
}
|
|
3139
3131
|
setReportSource(e2) {
|
|
3140
3132
|
this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
|
|
@@ -3179,7 +3171,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3179
3171
|
return this.currentPageNumber;
|
|
3180
3172
|
}
|
|
3181
3173
|
setCurrentPageNumber(e2) {
|
|
3182
|
-
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new
|
|
3174
|
+
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new v(e2, this.documentId)));
|
|
3183
3175
|
}
|
|
3184
3176
|
getPageCount() {
|
|
3185
3177
|
return this.pageCount;
|
|
@@ -3189,7 +3181,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3189
3181
|
}
|
|
3190
3182
|
executeReportAction(e2) {
|
|
3191
3183
|
let t2 = e2.action;
|
|
3192
|
-
window.setTimeout(() =>
|
|
3184
|
+
window.setTimeout(() => s(this, void 0, void 0, function* () {
|
|
3193
3185
|
try {
|
|
3194
3186
|
yield this.emitAsync("interactiveActionExecuting", e2), this.emit("interactiveActionExecuting", e2);
|
|
3195
3187
|
} catch (e3) {
|
|
@@ -3199,9 +3191,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3199
3191
|
if ("navigateToReport" === t2.Type) {
|
|
3200
3192
|
this.emit("serverActionStarted");
|
|
3201
3193
|
let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
|
|
3202
|
-
this.respectAutoRun = true, this.emit("navigateToReport", new
|
|
3194
|
+
this.respectAutoRun = true, this.emit("navigateToReport", new Oe(e3.Report, i2));
|
|
3203
3195
|
} else if ("navigateToBookmark" === t2.Type) {
|
|
3204
|
-
let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new
|
|
3196
|
+
let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new h(t2.Value, "bookmark");
|
|
3205
3197
|
this.navigateToPage(e3, i2);
|
|
3206
3198
|
} else if ("sorting" === t2.Type)
|
|
3207
3199
|
this.execServerAction(t2.Id);
|
|
@@ -3221,7 +3213,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3221
3213
|
this.emit("interactiveActionLeave", e2);
|
|
3222
3214
|
}
|
|
3223
3215
|
reportTooltipOpening(e2) {
|
|
3224
|
-
return
|
|
3216
|
+
return s(this, void 0, void 0, function* () {
|
|
3225
3217
|
try {
|
|
3226
3218
|
yield this.emitAsync("toolTipOpening", e2), this.emit("toolTipOpening", e2);
|
|
3227
3219
|
} catch (e3) {
|
|
@@ -3233,41 +3225,41 @@ var telerikReportViewer = (function (exports) {
|
|
|
3233
3225
|
this.emit("toolTipClosing", e2);
|
|
3234
3226
|
}
|
|
3235
3227
|
printReport() {
|
|
3236
|
-
return
|
|
3228
|
+
return s(this, void 0, void 0, function* () {
|
|
3237
3229
|
let e2 = this.createDeviceInfo();
|
|
3238
3230
|
e2.ImmediatePrint = true;
|
|
3239
|
-
let t2 = new
|
|
3240
|
-
yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) =>
|
|
3231
|
+
let t2 = new p(e2);
|
|
3232
|
+
yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.showNotification(this.options.messages.ReportViewer_PreparingPrint), this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) => s(this, void 0, void 0, function* () {
|
|
3241
3233
|
let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
|
|
3242
3234
|
t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
|
|
3243
|
-
let i2 = new
|
|
3244
|
-
yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
|
|
3235
|
+
let i2 = new g(t3);
|
|
3236
|
+
yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3, this.getReportFileName());
|
|
3245
3237
|
})));
|
|
3246
3238
|
});
|
|
3247
3239
|
}
|
|
3248
3240
|
exportReport(e2) {
|
|
3249
|
-
return
|
|
3250
|
-
let t2 = this.createDeviceInfo(),
|
|
3251
|
-
if (yield this.emitAsync("exportStart",
|
|
3252
|
-
let t3 = new
|
|
3241
|
+
return s(this, void 0, void 0, function* () {
|
|
3242
|
+
let t2 = this.createDeviceInfo(), i2 = new c(t2, e2);
|
|
3243
|
+
if (yield this.emitAsync("exportStart", i2), !i2.isCancelled) {
|
|
3244
|
+
let t3 = new d(i2.deviceInfo, i2.format);
|
|
3253
3245
|
if (yield this.emitAsync("exportStarted", t3), this.emit("exportStarted", t3), t3.handled)
|
|
3254
3246
|
return;
|
|
3255
|
-
this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) =>
|
|
3256
|
-
let
|
|
3257
|
-
|
|
3258
|
-
let
|
|
3259
|
-
yield this.emitAsync("exportEnd",
|
|
3247
|
+
this.showNotification(this.options.messages.ReportViewer_PreparingDownload), this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) => s(this, void 0, void 0, function* () {
|
|
3248
|
+
let i3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
|
|
3249
|
+
i3 += "?response-content-disposition=attachment";
|
|
3250
|
+
let n2 = new u(i3, e2, "_self");
|
|
3251
|
+
yield this.emitAsync("exportEnd", n2), yield this.emitAsync("exportDocumentReady", n2), this.emit("exportDocumentReady", n2), this.setUIState("ExportInProgress", false), n2.handled || window.open(i3, n2.windowOpenTarget);
|
|
3260
3252
|
}));
|
|
3261
3253
|
}
|
|
3262
3254
|
});
|
|
3263
3255
|
}
|
|
3264
3256
|
sendReport(e2) {
|
|
3265
|
-
return
|
|
3266
|
-
let t2 = this.createDeviceInfo(),
|
|
3267
|
-
yield this.emitAsync("sendEmailStarted",
|
|
3268
|
-
let
|
|
3269
|
-
|
|
3270
|
-
let r2 = new
|
|
3257
|
+
return s(this, void 0, void 0, function* () {
|
|
3258
|
+
let t2 = this.createDeviceInfo(), i2 = new f(t2, e2.format);
|
|
3259
|
+
yield this.emitAsync("sendEmailStarted", i2), this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, i2.deviceInfo).then((t3) => s(this, void 0, void 0, function* () {
|
|
3260
|
+
let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
|
|
3261
|
+
n2 += "?response-content-disposition=attachment";
|
|
3262
|
+
let r2 = new m(e2, i2.deviceInfo, n2);
|
|
3271
3263
|
yield this.emitAsync("sendEmailDocumentReady", r2), this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(t3, r2);
|
|
3272
3264
|
}));
|
|
3273
3265
|
});
|
|
@@ -3277,9 +3269,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3277
3269
|
}
|
|
3278
3270
|
createAIThread() {
|
|
3279
3271
|
return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
|
|
3280
|
-
if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage =
|
|
3281
|
-
for (let
|
|
3282
|
-
e2.predefinedPrompts[
|
|
3272
|
+
if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = r.default.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
|
|
3273
|
+
for (let t2 = 0; t2 < e2.predefinedPrompts.length; t2++)
|
|
3274
|
+
e2.predefinedPrompts[t2] = r.default.sanitize(e2.predefinedPrompts[t2], { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
|
|
3283
3275
|
return e2;
|
|
3284
3276
|
});
|
|
3285
3277
|
}
|
|
@@ -3287,13 +3279,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
3287
3279
|
return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
|
|
3288
3280
|
}
|
|
3289
3281
|
exportAsync(e2, t2) {
|
|
3290
|
-
return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) =>
|
|
3282
|
+
return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => s(this, void 0, void 0, function* () {
|
|
3291
3283
|
return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
|
|
3292
3284
|
}));
|
|
3293
3285
|
}
|
|
3294
3286
|
sendDocumentAsync(e2, t2) {
|
|
3295
3287
|
return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
|
|
3296
|
-
this.handleRequestError(e3,
|
|
3288
|
+
this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, he(this.getReport())));
|
|
3297
3289
|
});
|
|
3298
3290
|
}
|
|
3299
3291
|
loadParameters(e2 = void 0) {
|
|
@@ -3306,7 +3298,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3306
3298
|
}
|
|
3307
3299
|
initializeAndStartSentinel() {
|
|
3308
3300
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
|
3309
|
-
this.keepClientAliveSentinel = new
|
|
3301
|
+
this.keepClientAliveSentinel = new K(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
|
3310
3302
|
});
|
|
3311
3303
|
}
|
|
3312
3304
|
stopSentinel() {
|
|
@@ -3331,7 +3323,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3331
3323
|
this.pageCount = 0, this.currentPageNumber = 0;
|
|
3332
3324
|
}
|
|
3333
3325
|
handleSearchRequestError(e2) {
|
|
3334
|
-
if (!
|
|
3326
|
+
if (!Ce(e2, "System.ArgumentException"))
|
|
3335
3327
|
throw this.handleRequestError(e2, "", true), null;
|
|
3336
3328
|
this.throwPromiseError(e2);
|
|
3337
3329
|
}
|
|
@@ -3339,8 +3331,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
3339
3331
|
throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
|
|
3340
3332
|
}
|
|
3341
3333
|
handleRequestError(e2, t2 = "", i2 = false) {
|
|
3342
|
-
|
|
3343
|
-
let n2 =
|
|
3334
|
+
ye(e2) && this.onClientExpired();
|
|
3335
|
+
let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
|
|
3344
3336
|
this.raiseError(r2), i2 || this.throwPromiseError(e2);
|
|
3345
3337
|
}
|
|
3346
3338
|
formatRequestError(e2, t2, i2) {
|
|
@@ -3348,14 +3340,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
3348
3340
|
if (n2) {
|
|
3349
3341
|
if (401 == n2.status || 403 == n2.status)
|
|
3350
3342
|
return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
|
|
3351
|
-
if (
|
|
3343
|
+
if (Se(e2))
|
|
3352
3344
|
return this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3353
|
-
r2 =
|
|
3354
|
-
let t3 =
|
|
3345
|
+
r2 = he(n2.message);
|
|
3346
|
+
let t3 = he(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
|
|
3355
3347
|
t3 && (r2 ? r2 += " " + t3 : r2 = t3);
|
|
3356
3348
|
} else
|
|
3357
|
-
r2 =
|
|
3358
|
-
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 =
|
|
3349
|
+
r2 = he(e2.responseText);
|
|
3350
|
+
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = he(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
|
|
3359
3351
|
}
|
|
3360
3352
|
raiseError(e2, t2 = true) {
|
|
3361
3353
|
this.emit("error", e2, t2);
|
|
@@ -3368,17 +3360,17 @@ var telerikReportViewer = (function (exports) {
|
|
|
3368
3360
|
}
|
|
3369
3361
|
initializeClient() {
|
|
3370
3362
|
return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
|
|
3371
|
-
const t2 =
|
|
3363
|
+
const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
|
|
3372
3364
|
this.handleRequestError(e2, t2);
|
|
3373
3365
|
}).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
|
|
3374
3366
|
}
|
|
3375
3367
|
registerInstance() {
|
|
3376
3368
|
return this.registerInstancePromise || (this.registerInstancePromise = this.serviceClient.createReportInstance(this.clientId, this.getReport(), this.parameterValues).then(this.setReportInstanceId.bind(this)).catch(this.clearReportInstanceId.bind(this))), this.registerInstancePromise;
|
|
3377
3369
|
}
|
|
3378
|
-
registerDocumentAsync(e2, t2,
|
|
3379
|
-
return
|
|
3380
|
-
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !
|
|
3381
|
-
this.handleRequestError(t4,
|
|
3370
|
+
registerDocumentAsync(e2, t2, i2) {
|
|
3371
|
+
return s(this, arguments, void 0, function* (e3, t3, i3, n2 = "", r2 = "") {
|
|
3372
|
+
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i3, n2, r2).catch((t4) => {
|
|
3373
|
+
this.handleRequestError(t4, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, he(this.getReport()), he(e3)));
|
|
3382
3374
|
})) || "";
|
|
3383
3375
|
});
|
|
3384
3376
|
}
|
|
@@ -3395,12 +3387,17 @@ var telerikReportViewer = (function (exports) {
|
|
|
3395
3387
|
return this.printManager.getDirectPrintState();
|
|
3396
3388
|
}
|
|
3397
3389
|
}
|
|
3390
|
+
getReportFileName() {
|
|
3391
|
+
var e2, t2, i2, n2;
|
|
3392
|
+
const r2 = (null !== (i2 = (null !== (t2 = null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report) && void 0 !== t2 ? t2 : "").split(",")[0].trim().split(/[/\\]/).pop()) && void 0 !== i2 ? i2 : "").replace(/\.(trdp|trdx|trl)$/i, "");
|
|
3393
|
+
return (r2.includes(".") && null !== (n2 = r2.split(".").pop()) && void 0 !== n2 ? n2 : r2) || "report";
|
|
3394
|
+
}
|
|
3398
3395
|
createPreviewDeviceInfo() {
|
|
3399
3396
|
let e2 = this.createDeviceInfo();
|
|
3400
3397
|
return e2.ContentOnly = true, e2.UseSVG = true, e2;
|
|
3401
3398
|
}
|
|
3402
3399
|
createDeviceInfo() {
|
|
3403
|
-
let e2 = new
|
|
3400
|
+
let e2 = new o();
|
|
3404
3401
|
this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
|
|
3405
3402
|
let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
|
|
3406
3403
|
return e2.enableSearch = !i2 || t2, e2;
|
|
@@ -3416,7 +3413,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3416
3413
|
const e2 = {}, t2 = this.getProcessedParameterValues();
|
|
3417
3414
|
for (let i2 in t2) {
|
|
3418
3415
|
const n2 = t2[i2], r2 = this.parameterValues[i2];
|
|
3419
|
-
n2 && n2.availableValues ? n2.multivalue ? e2[i2] =
|
|
3416
|
+
n2 && n2.availableValues ? n2.multivalue ? e2[i2] = Fe(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
|
|
3420
3417
|
}
|
|
3421
3418
|
return e2;
|
|
3422
3419
|
}
|
|
@@ -3426,11 +3423,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
3426
3423
|
getProcessedParameterValues() {
|
|
3427
3424
|
return this.processedParameterValues;
|
|
3428
3425
|
}
|
|
3429
|
-
getDocumentInfo(t2,
|
|
3430
|
-
return t2 && this.emit("beginLoadReport"), new Promise((
|
|
3431
|
-
let o2 = () =>
|
|
3432
|
-
this.cancelLoad ?
|
|
3433
|
-
|
|
3426
|
+
getDocumentInfo(t2, i2) {
|
|
3427
|
+
return t2 && this.emit("beginLoadReport"), new Promise((n2, r2) => {
|
|
3428
|
+
let o2 = () => s(this, void 0, void 0, function* () {
|
|
3429
|
+
this.cancelLoad ? r2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, i2).then((i3) => {
|
|
3430
|
+
i3 && i3.documentReady ? n2(i3) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i3.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i3.pageCount, this.emit("reportLoadProgress", i3)), window.setTimeout(o2, 500));
|
|
3434
3431
|
}).catch((e2) => {
|
|
3435
3432
|
"InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
|
|
3436
3433
|
}));
|
|
@@ -3563,8 +3560,8 @@ ${e3.text} (${e3.id})`;
|
|
|
3563
3560
|
sessionStorage.clear();
|
|
3564
3561
|
}
|
|
3565
3562
|
}, e.ReportControllerOptions = class {
|
|
3566
|
-
constructor(e2, t2, i2, n2, r2, s2, o2, a2, l2, h2 = false,
|
|
3567
|
-
this.keepClientAlive = false, this.keepClientAlive = e2, this.authenticationToken = t2, this.
|
|
3563
|
+
constructor(e2, t2, i2, n2, r2, s2, o2, a2, l2, h2, c2 = false, d2 = false) {
|
|
3564
|
+
this.keepClientAlive = false, this.keepClientAlive = e2, this.authenticationToken = t2, this.nonce = i2, this.reportSource = n2, this.printMode = r2, this.pageMode = s2, this.viewMode = o2, this.scaleMode = a2, this.scale = l2, this.messages = h2, this.enableAccessibility = c2, this.searchMetadataOnDemand = d2;
|
|
3568
3565
|
}
|
|
3569
3566
|
}, e.ReportServerSettings = class {
|
|
3570
3567
|
constructor(e2, t2, i2) {
|
|
@@ -3574,13 +3571,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3574
3571
|
constructor(e2, t2) {
|
|
3575
3572
|
this.url = e2, this.getPersonalAccessToken = t2;
|
|
3576
3573
|
}
|
|
3577
|
-
}, e.ReportSourceOptions =
|
|
3574
|
+
}, e.ReportSourceOptions = Oe, e.RequestError = C, e.SearchInfo = class {
|
|
3578
3575
|
constructor() {
|
|
3579
3576
|
this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
|
|
3580
3577
|
}
|
|
3581
|
-
}, e.SearchManager = class extends
|
|
3578
|
+
}, e.SearchManager = class extends q {
|
|
3582
3579
|
constructor(e2, t2) {
|
|
3583
|
-
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer =
|
|
3580
|
+
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = fe(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
|
|
3584
3581
|
}
|
|
3585
3582
|
search(e2) {
|
|
3586
3583
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
|
@@ -3589,15 +3586,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3589
3586
|
this.isActive = false, this.clearColoredItems(), this.searchResults = [];
|
|
3590
3587
|
}
|
|
3591
3588
|
highlightSearchItem(t2) {
|
|
3592
|
-
t2 && (this.currentHighlightedElement && (
|
|
3589
|
+
t2 && (this.currentHighlightedElement && (re(this.currentHighlightedElement, Ze), ne(this.currentHighlightedElement, We)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
|
|
3593
3590
|
}
|
|
3594
3591
|
navigateToPage(e2) {
|
|
3595
|
-
this.controller.navigateToPage(e2.page, new
|
|
3592
|
+
this.controller.navigateToPage(e2.page, new h(e2.id, "search"));
|
|
3596
3593
|
}
|
|
3597
3594
|
colorPageElements(e2) {
|
|
3598
3595
|
e2 && 0 !== e2.length && (e2.forEach((e3) => {
|
|
3599
|
-
let t2 =
|
|
3600
|
-
t2 && (
|
|
3596
|
+
let t2 = fe(this.pageContainer, "[data-search-id=" + e3.id + "]");
|
|
3597
|
+
t2 && (ne(t2, We), this.highlightedElements.push(t2));
|
|
3601
3598
|
}), this.highlightItem(this.pendingHighlightItem));
|
|
3602
3599
|
}
|
|
3603
3600
|
highlightItem(e2) {
|
|
@@ -3605,13 +3602,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3605
3602
|
let t2 = this.highlightedElements.find(function(t3) {
|
|
3606
3603
|
return t3.dataset.searchId === e2.id;
|
|
3607
3604
|
});
|
|
3608
|
-
t2 && (this.currentHighlightedElement = t2,
|
|
3605
|
+
t2 && (this.currentHighlightedElement = t2, re(t2, We), ne(t2, Ze));
|
|
3609
3606
|
}
|
|
3610
3607
|
}
|
|
3611
3608
|
clearColoredItems() {
|
|
3612
3609
|
this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
|
|
3613
|
-
|
|
3614
|
-
}), this.currentHighlightedElement &&
|
|
3610
|
+
re(e2, We);
|
|
3611
|
+
}), this.currentHighlightedElement && re(this.currentHighlightedElement, Ze), this.highlightedElements = [], this.currentHighlightedElement = null;
|
|
3615
3612
|
}
|
|
3616
3613
|
applySearchColors() {
|
|
3617
3614
|
this.isActive && this.colorPageElements(this.searchResults);
|
|
@@ -3623,23 +3620,23 @@ ${e3.text} (${e3.id})`;
|
|
|
3623
3620
|
constructor() {
|
|
3624
3621
|
this.description = "", this.id = "", this.page = 0;
|
|
3625
3622
|
}
|
|
3626
|
-
}, e.SendEmailDocumentReadyEventArgs =
|
|
3623
|
+
}, e.SendEmailDocumentReadyEventArgs = m, e.SendEmailStartedEventArgs = f, e.ServiceClient = class {
|
|
3627
3624
|
constructor(e2) {
|
|
3628
3625
|
this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
|
|
3629
3626
|
}
|
|
3630
3627
|
getConnectionConfig(e2) {
|
|
3631
|
-
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new
|
|
3628
|
+
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new E(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new M(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new M("", () => Promise.resolve(e2.serverShareToken)) : new R(e2.serviceUrl);
|
|
3632
3629
|
}
|
|
3633
3630
|
getAuthStrategy(t2) {
|
|
3634
3631
|
switch (t2.authType) {
|
|
3635
3632
|
case e.AuthType.None:
|
|
3636
|
-
return new
|
|
3633
|
+
return new b();
|
|
3637
3634
|
case e.AuthType.Basic:
|
|
3638
|
-
return new
|
|
3635
|
+
return new w(t2);
|
|
3639
3636
|
case e.AuthType.PersonalToken:
|
|
3640
|
-
return new
|
|
3637
|
+
return new L(t2);
|
|
3641
3638
|
default:
|
|
3642
|
-
return new
|
|
3639
|
+
return new b();
|
|
3643
3640
|
}
|
|
3644
3641
|
}
|
|
3645
3642
|
validateClientID(e2) {
|
|
@@ -3648,15 +3645,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3648
3645
|
}
|
|
3649
3646
|
authenticatedGet(e2) {
|
|
3650
3647
|
return this.login().then((t2) => (null == t2 ? void 0 : t2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedGet(e2)) : function(e3, t3) {
|
|
3651
|
-
return fetch(e3, { headers:
|
|
3648
|
+
return fetch(e3, { headers: y(t3) }).then(S);
|
|
3652
3649
|
}(e2, t2.access_token || t2.accessToken));
|
|
3653
3650
|
}
|
|
3654
3651
|
authenticatedPost(e2, t2) {
|
|
3655
|
-
return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) :
|
|
3652
|
+
return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : I(e2, t2, i2.access_token || i2.accessToken));
|
|
3656
3653
|
}
|
|
3657
3654
|
authenticatedDelete(e2) {
|
|
3658
3655
|
return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
|
|
3659
|
-
return fetch(e3, { method: "DELETE", headers:
|
|
3656
|
+
return fetch(e3, { method: "DELETE", headers: y(t3) }).then(S);
|
|
3660
3657
|
}(e2, t2.access_token || t2.accessToken));
|
|
3661
3658
|
}
|
|
3662
3659
|
login() {
|
|
@@ -3740,15 +3737,18 @@ ${e3.text} (${e3.id})`;
|
|
|
3740
3737
|
return e2.clientSessionTimeout;
|
|
3741
3738
|
});
|
|
3742
3739
|
}
|
|
3743
|
-
}, e.TooltipEventArgs =
|
|
3740
|
+
}, e.TooltipEventArgs = P, e.addClass = ne, e.appendHtml = pe, e.createElement = ie, e.debounce = ve, e.each = we, e.escapeHtml = he, e.findElement = fe, e.getColorAlphaValue = ue, e.getElementAttributeValue = function(e2, t2) {
|
|
3741
|
+
var i2;
|
|
3742
|
+
return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
|
|
3743
|
+
}, e.getElementScrollParent = me, e.getOffsetParent = oe, e.hasClass = se, e.isArray = Le, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = de, e.keepElementInView = function(e2) {
|
|
3744
3744
|
if (!e2)
|
|
3745
3745
|
return;
|
|
3746
|
-
let t2 =
|
|
3746
|
+
let t2 = me(e2);
|
|
3747
3747
|
if (!t2)
|
|
3748
3748
|
return;
|
|
3749
3749
|
let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
|
|
3750
3750
|
i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
|
|
3751
|
-
}, e.parseToLocalDate =
|
|
3751
|
+
}, e.parseToLocalDate = Ae, e.prependHtml = ge, e.removeClass = re, e.reportSourcesAreEqual = function(e2) {
|
|
3752
3752
|
const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
|
|
3753
3753
|
if (t2 && i2 && t2.report === i2.report) {
|
|
3754
3754
|
let e3 = "";
|
|
@@ -3757,7 +3757,7 @@ ${e3.text} (${e3.id})`;
|
|
|
3757
3757
|
return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
|
|
3758
3758
|
}
|
|
3759
3759
|
return false;
|
|
3760
|
-
}, e.scaleElement =
|
|
3760
|
+
}, e.scaleElement = le, e.stringFormat = be, e.throttle = Pe, e.toPixel = ae, e.toRgbColor = ce, e.tryParseFloat = Re, e.tryParseInt = Te, Object.defineProperty(e, "__esModule", { value: true });
|
|
3761
3761
|
});
|
|
3762
3762
|
})(dist, dist.exports);
|
|
3763
3763
|
var distExports = dist.exports;
|
|
@@ -3996,33 +3996,33 @@ ${e3.text} (${e3.id})`;
|
|
|
3996
3996
|
|
|
3997
3997
|
const utils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3998
3998
|
__proto__: null,
|
|
3999
|
+
isSpecialKey,
|
|
4000
|
+
rectangle,
|
|
4001
|
+
generateGuidString,
|
|
4002
|
+
trim,
|
|
4003
|
+
replaceAll,
|
|
4004
|
+
lTrim,
|
|
4005
|
+
rTrim,
|
|
4006
|
+
stringFormat,
|
|
4007
|
+
escapeHtml,
|
|
3999
4008
|
adjustTimezone,
|
|
4009
|
+
unadjustTimezone,
|
|
4000
4010
|
areEqual,
|
|
4001
4011
|
areEqualArrays,
|
|
4002
|
-
escapeHtml,
|
|
4003
|
-
exceptionTypeNamesMatch,
|
|
4004
|
-
filterUniqueLastOccurrence,
|
|
4005
|
-
generateGuidString,
|
|
4006
|
-
getColorAlphaValue,
|
|
4007
|
-
getExceptionInstance,
|
|
4008
4012
|
isApplicationException,
|
|
4009
4013
|
isApplicationExceptionInstance,
|
|
4010
|
-
|
|
4011
|
-
isSpecialKey,
|
|
4012
|
-
lTrim,
|
|
4013
|
-
logError,
|
|
4014
|
+
exceptionTypeNamesMatch,
|
|
4014
4015
|
parseJSON,
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
replaceAll,
|
|
4019
|
-
reportSourcesAreEqual: distExports.reportSourcesAreEqual,
|
|
4020
|
-
stringFormat,
|
|
4016
|
+
getExceptionInstance,
|
|
4017
|
+
filterUniqueLastOccurrence,
|
|
4018
|
+
logError,
|
|
4021
4019
|
toRgbColor,
|
|
4022
|
-
|
|
4023
|
-
|
|
4020
|
+
isRgbColor,
|
|
4021
|
+
getColorAlphaValue,
|
|
4024
4022
|
tryParseInt: distExports.tryParseInt,
|
|
4025
|
-
|
|
4023
|
+
tryParseFloat: distExports.tryParseFloat,
|
|
4024
|
+
parseToLocalDate: distExports.parseToLocalDate,
|
|
4025
|
+
reportSourcesAreEqual: distExports.reportSourcesAreEqual
|
|
4026
4026
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
4027
4027
|
|
|
4028
4028
|
function toPixels(value) {
|
|
@@ -4067,9 +4067,9 @@ ${e3.text} (${e3.id})`;
|
|
|
4067
4067
|
|
|
4068
4068
|
const domUtils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
4069
4069
|
__proto__: null,
|
|
4070
|
-
getBorderWidth,
|
|
4071
4070
|
getMargins,
|
|
4072
4071
|
getPadding,
|
|
4072
|
+
getBorderWidth,
|
|
4073
4073
|
scale
|
|
4074
4074
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
4075
4075
|
|
|
@@ -5227,7 +5227,7 @@ ${e3.text} (${e3.id})`;
|
|
|
5227
5227
|
parameter = param;
|
|
5228
5228
|
try {
|
|
5229
5229
|
listView = $list.kendoListView({
|
|
5230
|
-
template:
|
|
5230
|
+
template: ({ name }) => `<div class="trv-listviewitem multiselect-template">${kendo.htmlEncode(name)}</div>`,
|
|
5231
5231
|
dataSource: { data: parameter.availableValues },
|
|
5232
5232
|
selectable: "MULTIPLE",
|
|
5233
5233
|
navigatable: navigatableEnabledForList(options.enableAccessibility),
|
|
@@ -5467,7 +5467,7 @@ ${e3.text} (${e3.id})`;
|
|
|
5467
5467
|
parameter = param;
|
|
5468
5468
|
try {
|
|
5469
5469
|
listView = $list.kendoListView({
|
|
5470
|
-
template:
|
|
5470
|
+
template: ({ name }) => `<div class="trv-listviewitem">${kendo.htmlEncode(name)}</div>`,
|
|
5471
5471
|
dataSource: { data: parameter.availableValues },
|
|
5472
5472
|
selectable: true,
|
|
5473
5473
|
navigatable: navigatableEnabledForList(options.enableAccessibility)
|
|
@@ -5564,7 +5564,7 @@ ${e3.text} (${e3.id})`;
|
|
|
5564
5564
|
parameter = param;
|
|
5565
5565
|
try {
|
|
5566
5566
|
editor = $editorDom.kendoComboBox({
|
|
5567
|
-
template:
|
|
5567
|
+
template: ({ name }) => `<div class="trv-editoritem">${kendo.htmlEncode(name)}</div>`,
|
|
5568
5568
|
dataSource: parameter.availableValues,
|
|
5569
5569
|
dataTextField: "name",
|
|
5570
5570
|
dataValueField: "value",
|
|
@@ -6409,7 +6409,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6409
6409
|
// #endregion
|
|
6410
6410
|
}
|
|
6411
6411
|
|
|
6412
|
-
|
|
6412
|
+
class EventEmitter$1 extends EventTarget {
|
|
6413
6413
|
_events;
|
|
6414
6414
|
_eventsCount;
|
|
6415
6415
|
constructor() {
|
|
@@ -6527,7 +6527,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6527
6527
|
}
|
|
6528
6528
|
return this.removeListener(type, listener);
|
|
6529
6529
|
}
|
|
6530
|
-
}
|
|
6530
|
+
}
|
|
6531
6531
|
|
|
6532
6532
|
var defaultOptions$3 = {};
|
|
6533
6533
|
var Events = {
|
|
@@ -7729,7 +7729,7 @@ ${e3.text} (${e3.id})`;
|
|
|
7729
7729
|
event.sender.trigger("change");
|
|
7730
7730
|
}
|
|
7731
7731
|
});
|
|
7732
|
-
|
|
7732
|
+
var editorOptions = {
|
|
7733
7733
|
tools: [
|
|
7734
7734
|
"bold",
|
|
7735
7735
|
"italic",
|
|
@@ -7754,7 +7754,12 @@ ${e3.text} (${e3.id})`;
|
|
|
7754
7754
|
"subscript",
|
|
7755
7755
|
"superscript"
|
|
7756
7756
|
]
|
|
7757
|
-
}
|
|
7757
|
+
};
|
|
7758
|
+
if (this.viewerOptions.nonce) {
|
|
7759
|
+
editorOptions.nonce = this.viewerOptions.nonce;
|
|
7760
|
+
editorOptions.unsafeInline = false;
|
|
7761
|
+
}
|
|
7762
|
+
this.bodyEditor = new kendo.ui.Editor(this.element.querySelector(`[name="${prefix}-emailBody"]`), editorOptions);
|
|
7758
7763
|
this.setDefaultValues(this.viewerOptions.sendEmail);
|
|
7759
7764
|
this.kendoValidator = new kendo.ui.Validator(this.element.querySelector(".trv-send-email-fields"), {});
|
|
7760
7765
|
}
|
|
@@ -9145,6 +9150,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9145
9150
|
reportSource: null,
|
|
9146
9151
|
reportServer: null,
|
|
9147
9152
|
authenticationToken: null,
|
|
9153
|
+
nonce: null,
|
|
9148
9154
|
sendEmail: null,
|
|
9149
9155
|
scale: 1,
|
|
9150
9156
|
scaleMode: ScaleModes.SPECIFIC,
|
|
@@ -9202,7 +9208,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9202
9208
|
if (!validateOptions(options)) {
|
|
9203
9209
|
return;
|
|
9204
9210
|
}
|
|
9205
|
-
var version = "20.1.26.
|
|
9211
|
+
var version = "20.1.26.707";
|
|
9206
9212
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
|
9207
9213
|
settings = new ReportViewerSettings(
|
|
9208
9214
|
persistanceKey,
|
|
@@ -9226,6 +9232,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9226
9232
|
controllerOptions = new distExports.ReportControllerOptions(
|
|
9227
9233
|
options.keepClientAlive,
|
|
9228
9234
|
options.authenticationToken,
|
|
9235
|
+
options.nonce,
|
|
9229
9236
|
options.reportSource,
|
|
9230
9237
|
printModeMap[options.printMode],
|
|
9231
9238
|
pageModeMap[options.pageMode],
|
|
@@ -10069,6 +10076,9 @@ ${e3.text} (${e3.id})`;
|
|
|
10069
10076
|
return response.text();
|
|
10070
10077
|
}).then((kendoScript) => {
|
|
10071
10078
|
const scriptElement = document.createElement("script");
|
|
10079
|
+
if (options.nonce) {
|
|
10080
|
+
scriptElement.setAttribute("nonce", options.nonce);
|
|
10081
|
+
}
|
|
10072
10082
|
scriptElement.textContent = kendoScript;
|
|
10073
10083
|
document.head.appendChild(scriptElement);
|
|
10074
10084
|
}).catch((errorData) => {
|
|
@@ -10210,7 +10220,7 @@ ${e3.text} (${e3.id})`;
|
|
|
10210
10220
|
exports.parameterEditorsMatch = parameterEditorsMatch;
|
|
10211
10221
|
exports.utils = utils;
|
|
10212
10222
|
|
|
10213
|
-
Object.
|
|
10223
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
10214
10224
|
|
|
10215
10225
|
return exports;
|
|
10216
10226
|
|