@progress/telerik-jquery-report-viewer 27.25.1001 → 28.25.1119
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/parametersArea.js +1 -1
- package/dist/cjs/reportViewer.js +226 -25
- package/dist/cjs/sr.js +1 -0
- package/dist/font/font-icons.css +4 -4
- package/dist/font/font-icons.min.css +3 -3
- package/dist/js/telerikReportViewer.js +629 -365
- package/dist/js/telerikReportViewer.min.js +1 -1
- package/dist/js/telerikReportViewer.stringResources.js +1 -0
- package/dist/styles/telerikReportViewer.css +1 -1
- package/dist/styles/telerikReportViewer.min.css +1 -1
- package/dist/templates/telerikReportViewerTemplate.html +3 -3
- package/package.json +5 -4
- /package/dist/font/{ReportingIcons-19.2.25.1001.ttf → ReportingIcons-19.3.25.1119.ttf} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* TelerikReporting v19.
|
|
2
|
+
* TelerikReporting v19.3.25.1119 (https://www.telerik.com/products/reporting.aspx)
|
|
3
3
|
* Copyright 2025 Progress Software EAD. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Telerik Reporting commercial licenses may be obtained at
|
|
@@ -1377,8 +1377,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
1377
1377
|
function i(e2) {
|
|
1378
1378
|
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
|
1379
1379
|
}
|
|
1380
|
-
var n = i(t);
|
|
1381
|
-
function
|
|
1380
|
+
var n, r = i(t);
|
|
1381
|
+
function s(e2, t2, i2, n2) {
|
|
1382
1382
|
return new (i2 || (i2 = Promise))(function(r2, s2) {
|
|
1383
1383
|
function o2(e3) {
|
|
1384
1384
|
try {
|
|
@@ -1403,37 +1403,62 @@ var telerikReportViewer = (function (exports) {
|
|
|
1403
1403
|
l2((n2 = n2.apply(e2, t2 || [])).next());
|
|
1404
1404
|
});
|
|
1405
1405
|
}
|
|
1406
|
-
class
|
|
1406
|
+
class o {
|
|
1407
1407
|
constructor() {
|
|
1408
1408
|
this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
class
|
|
1411
|
+
class a {
|
|
1412
1412
|
constructor() {
|
|
1413
1413
|
this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
class
|
|
1416
|
+
class l {
|
|
1417
1417
|
constructor(e2, t2) {
|
|
1418
1418
|
this.cancel = false, this.element = e2, this.action = t2;
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
class
|
|
1421
|
+
class h {
|
|
1422
1422
|
constructor(e2, t2) {
|
|
1423
1423
|
this.id = "", this.type = "", this.id = e2, this.type = t2;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
class
|
|
1426
|
+
class c {
|
|
1427
1427
|
constructor(e2, t2) {
|
|
1428
1428
|
this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
class
|
|
1431
|
+
class d {
|
|
1432
|
+
constructor(e2, t2) {
|
|
1433
|
+
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
class u {
|
|
1432
1437
|
constructor(e2, t2, i2) {
|
|
1433
1438
|
this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
|
|
1434
1439
|
}
|
|
1435
1440
|
}
|
|
1436
|
-
class
|
|
1441
|
+
class p {
|
|
1442
|
+
constructor(e2) {
|
|
1443
|
+
this.handled = false, this.deviceInfo = e2;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
class g {
|
|
1447
|
+
constructor(e2) {
|
|
1448
|
+
this.handled = false, this.url = e2;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
class m {
|
|
1452
|
+
constructor(e2, t2) {
|
|
1453
|
+
this.page = e2, this.reportDocumentId = t2;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
class f {
|
|
1457
|
+
constructor(e2, t2, i2, n2 = null) {
|
|
1458
|
+
this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
class v {
|
|
1437
1462
|
constructor(e2, t2) {
|
|
1438
1463
|
this._responseText = e2, this._error = t2;
|
|
1439
1464
|
try {
|
|
@@ -1456,14 +1481,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1456
1481
|
return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
|
|
1457
1482
|
}
|
|
1458
1483
|
}
|
|
1459
|
-
function
|
|
1484
|
+
function P(e2, t2 = false, i2 = false) {
|
|
1460
1485
|
let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
|
|
1461
1486
|
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;
|
|
1462
1487
|
}
|
|
1463
|
-
function
|
|
1464
|
-
return
|
|
1488
|
+
function C(e2) {
|
|
1489
|
+
return s(this, void 0, void 0, function* () {
|
|
1465
1490
|
if (!e2.ok) {
|
|
1466
|
-
let t2 = yield e2.text(), i2 = new
|
|
1491
|
+
let t2 = yield e2.text(), i2 = new v(t2, e2.statusText);
|
|
1467
1492
|
return Promise.reject(i2);
|
|
1468
1493
|
}
|
|
1469
1494
|
if (204 == e2.status)
|
|
@@ -1471,23 +1496,75 @@ var telerikReportViewer = (function (exports) {
|
|
|
1471
1496
|
return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
|
|
1472
1497
|
});
|
|
1473
1498
|
}
|
|
1474
|
-
function
|
|
1475
|
-
return fetch(e2, { method: "POST", headers:
|
|
1499
|
+
function y(e2, t2 = {}, i2 = "", n2 = false) {
|
|
1500
|
+
return fetch(e2, { method: "POST", headers: P(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(C);
|
|
1501
|
+
}
|
|
1502
|
+
class S {
|
|
1503
|
+
authenticatePromise() {
|
|
1504
|
+
return Promise.resolve("");
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
class I {
|
|
1508
|
+
constructor(e2) {
|
|
1509
|
+
this.connectionConfig = e2;
|
|
1510
|
+
}
|
|
1511
|
+
authenticatePromise() {
|
|
1512
|
+
var e2, t2;
|
|
1513
|
+
if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
|
|
1514
|
+
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) || "")}`;
|
|
1515
|
+
return y(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
|
|
1516
|
+
}
|
|
1517
|
+
return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
class b {
|
|
1521
|
+
constructor(e2) {
|
|
1522
|
+
this.connectionConfig = e2;
|
|
1523
|
+
}
|
|
1524
|
+
authenticatePromise(e2, t2) {
|
|
1525
|
+
return e2 ? y(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) => y(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?");
|
|
1526
|
+
}
|
|
1476
1527
|
}
|
|
1477
|
-
|
|
1528
|
+
e.AuthType = void 0, (n = e.AuthType || (e.AuthType = {}))[n.None = 0] = "None", n[n.Basic = 1] = "Basic", n[n.PersonalToken = 2] = "PersonalToken";
|
|
1529
|
+
class w {
|
|
1530
|
+
constructor(e2) {
|
|
1531
|
+
this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
|
|
1532
|
+
}
|
|
1478
1533
|
}
|
|
1479
|
-
|
|
1480
|
-
|
|
1534
|
+
class T extends w {
|
|
1535
|
+
constructor(t2) {
|
|
1536
|
+
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
|
|
1537
|
+
}
|
|
1481
1538
|
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1539
|
+
class A extends w {
|
|
1540
|
+
constructor(t2) {
|
|
1541
|
+
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
class R extends A {
|
|
1545
|
+
constructor(t2, i2, n2) {
|
|
1546
|
+
super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
class E extends A {
|
|
1550
|
+
constructor(t2, i2) {
|
|
1551
|
+
super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
|
|
1552
|
+
}
|
|
1484
1553
|
}
|
|
1485
|
-
function
|
|
1554
|
+
function M() {
|
|
1555
|
+
}
|
|
1556
|
+
function x() {
|
|
1557
|
+
x.init.call(this);
|
|
1558
|
+
}
|
|
1559
|
+
function k(e2) {
|
|
1560
|
+
return void 0 === e2._maxListeners ? x.defaultMaxListeners : e2._maxListeners;
|
|
1561
|
+
}
|
|
1562
|
+
function L(e2, t2, i2, n2) {
|
|
1486
1563
|
var r2, s2, o2, a2;
|
|
1487
1564
|
if ("function" != typeof i2)
|
|
1488
1565
|
throw new TypeError('"listener" argument must be a function');
|
|
1489
|
-
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
|
|
1490
|
-
if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 =
|
|
1566
|
+
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 M(), e2._eventsCount = 0), o2) {
|
|
1567
|
+
if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = k(e2)) && r2 > 0 && o2.length > r2) {
|
|
1491
1568
|
o2.warned = true;
|
|
1492
1569
|
var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1493
1570
|
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);
|
|
@@ -1496,14 +1573,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1496
1573
|
o2 = s2[t2] = i2, ++e2._eventsCount;
|
|
1497
1574
|
return e2;
|
|
1498
1575
|
}
|
|
1499
|
-
function
|
|
1576
|
+
function D(e2, t2, i2) {
|
|
1500
1577
|
var n2 = false;
|
|
1501
1578
|
function r2() {
|
|
1502
1579
|
e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
|
|
1503
1580
|
}
|
|
1504
1581
|
return r2.listener = i2, r2;
|
|
1505
1582
|
}
|
|
1506
|
-
function
|
|
1583
|
+
function N(e2) {
|
|
1507
1584
|
var t2 = this._events;
|
|
1508
1585
|
if (t2) {
|
|
1509
1586
|
var i2 = t2[e2];
|
|
@@ -1514,20 +1591,20 @@ var telerikReportViewer = (function (exports) {
|
|
|
1514
1591
|
}
|
|
1515
1592
|
return 0;
|
|
1516
1593
|
}
|
|
1517
|
-
function
|
|
1594
|
+
function F(e2, t2) {
|
|
1518
1595
|
for (var i2 = new Array(t2); t2--; )
|
|
1519
1596
|
i2[t2] = e2[t2];
|
|
1520
1597
|
return i2;
|
|
1521
1598
|
}
|
|
1522
|
-
|
|
1523
|
-
this.domain = null,
|
|
1524
|
-
},
|
|
1599
|
+
M.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() {
|
|
1600
|
+
this.domain = null, x.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new M(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1601
|
+
}, x.prototype.setMaxListeners = function(e2) {
|
|
1525
1602
|
if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
|
|
1526
1603
|
throw new TypeError('"n" argument must be a positive number');
|
|
1527
1604
|
return this._maxListeners = e2, this;
|
|
1528
|
-
},
|
|
1529
|
-
return
|
|
1530
|
-
},
|
|
1605
|
+
}, x.prototype.getMaxListeners = function() {
|
|
1606
|
+
return k(this);
|
|
1607
|
+
}, x.prototype.emit = function(e2) {
|
|
1531
1608
|
var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
|
|
1532
1609
|
if (o2 = this._events)
|
|
1533
1610
|
l2 = l2 && null == o2.error;
|
|
@@ -1551,7 +1628,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1551
1628
|
if (t3)
|
|
1552
1629
|
e3.call(i3);
|
|
1553
1630
|
else
|
|
1554
|
-
for (var n3 = e3.length, r3 =
|
|
1631
|
+
for (var n3 = e3.length, r3 = F(e3, n3), s3 = 0; s3 < n3; ++s3)
|
|
1555
1632
|
r3[s3].call(i3);
|
|
1556
1633
|
}(i2, c2, this);
|
|
1557
1634
|
break;
|
|
@@ -1560,7 +1637,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1560
1637
|
if (t3)
|
|
1561
1638
|
e3.call(i3, n3);
|
|
1562
1639
|
else
|
|
1563
|
-
for (var r3 = e3.length, s3 =
|
|
1640
|
+
for (var r3 = e3.length, s3 = F(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1564
1641
|
s3[o3].call(i3, n3);
|
|
1565
1642
|
}(i2, c2, this, arguments[1]);
|
|
1566
1643
|
break;
|
|
@@ -1569,7 +1646,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1569
1646
|
if (t3)
|
|
1570
1647
|
e3.call(i3, n3, r3);
|
|
1571
1648
|
else
|
|
1572
|
-
for (var s3 = e3.length, o3 =
|
|
1649
|
+
for (var s3 = e3.length, o3 = F(e3, s3), a3 = 0; a3 < s3; ++a3)
|
|
1573
1650
|
o3[a3].call(i3, n3, r3);
|
|
1574
1651
|
}(i2, c2, this, arguments[1], arguments[2]);
|
|
1575
1652
|
break;
|
|
@@ -1578,7 +1655,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1578
1655
|
if (t3)
|
|
1579
1656
|
e3.call(i3, n3, r3, s3);
|
|
1580
1657
|
else
|
|
1581
|
-
for (var o3 = e3.length, a3 =
|
|
1658
|
+
for (var o3 = e3.length, a3 = F(e3, o3), l3 = 0; l3 < o3; ++l3)
|
|
1582
1659
|
a3[l3].call(i3, n3, r3, s3);
|
|
1583
1660
|
}(i2, c2, this, arguments[1], arguments[2], arguments[3]);
|
|
1584
1661
|
break;
|
|
@@ -1589,24 +1666,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
1589
1666
|
if (t3)
|
|
1590
1667
|
e3.apply(i3, n3);
|
|
1591
1668
|
else
|
|
1592
|
-
for (var r3 = e3.length, s3 =
|
|
1669
|
+
for (var r3 = e3.length, s3 = F(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1593
1670
|
s3[o3].apply(i3, n3);
|
|
1594
1671
|
}(i2, c2, this, r2);
|
|
1595
1672
|
}
|
|
1596
1673
|
return true;
|
|
1597
|
-
},
|
|
1598
|
-
return
|
|
1599
|
-
},
|
|
1600
|
-
return
|
|
1601
|
-
},
|
|
1674
|
+
}, x.prototype.addListener = function(e2, t2) {
|
|
1675
|
+
return L(this, e2, t2, false);
|
|
1676
|
+
}, x.prototype.on = x.prototype.addListener, x.prototype.prependListener = function(e2, t2) {
|
|
1677
|
+
return L(this, e2, t2, true);
|
|
1678
|
+
}, x.prototype.once = function(e2, t2) {
|
|
1602
1679
|
if ("function" != typeof t2)
|
|
1603
1680
|
throw new TypeError('"listener" argument must be a function');
|
|
1604
|
-
return this.on(e2,
|
|
1605
|
-
},
|
|
1681
|
+
return this.on(e2, D(this, e2, t2)), this;
|
|
1682
|
+
}, x.prototype.prependOnceListener = function(e2, t2) {
|
|
1606
1683
|
if ("function" != typeof t2)
|
|
1607
1684
|
throw new TypeError('"listener" argument must be a function');
|
|
1608
|
-
return this.prependListener(e2,
|
|
1609
|
-
},
|
|
1685
|
+
return this.prependListener(e2, D(this, e2, t2)), this;
|
|
1686
|
+
}, x.prototype.removeListener = function(e2, t2) {
|
|
1610
1687
|
var i2, n2, r2, s2, o2;
|
|
1611
1688
|
if ("function" != typeof t2)
|
|
1612
1689
|
throw new TypeError('"listener" argument must be a function');
|
|
@@ -1615,7 +1692,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1615
1692
|
if (!(i2 = n2[e2]))
|
|
1616
1693
|
return this;
|
|
1617
1694
|
if (i2 === t2 || i2.listener && i2.listener === t2)
|
|
1618
|
-
0 == --this._eventsCount ? this._events = new
|
|
1695
|
+
0 == --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
|
|
1619
1696
|
else if ("function" != typeof i2) {
|
|
1620
1697
|
for (r2 = -1, s2 = i2.length; s2-- > 0; )
|
|
1621
1698
|
if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
|
|
@@ -1626,7 +1703,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1626
1703
|
return this;
|
|
1627
1704
|
if (1 === i2.length) {
|
|
1628
1705
|
if (i2[0] = void 0, 0 == --this._eventsCount)
|
|
1629
|
-
return this._events = new
|
|
1706
|
+
return this._events = new M(), this;
|
|
1630
1707
|
delete n2[e2];
|
|
1631
1708
|
} else
|
|
1632
1709
|
!function(e3, t3) {
|
|
@@ -1637,18 +1714,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
1637
1714
|
n2.removeListener && this.emit("removeListener", e2, o2 || t2);
|
|
1638
1715
|
}
|
|
1639
1716
|
return this;
|
|
1640
|
-
},
|
|
1717
|
+
}, x.prototype.off = function(e2, t2) {
|
|
1641
1718
|
return this.removeListener(e2, t2);
|
|
1642
|
-
},
|
|
1719
|
+
}, x.prototype.removeAllListeners = function(e2) {
|
|
1643
1720
|
var t2, i2;
|
|
1644
1721
|
if (!(i2 = this._events))
|
|
1645
1722
|
return this;
|
|
1646
1723
|
if (!i2.removeListener)
|
|
1647
|
-
return 0 === arguments.length ? (this._events = new
|
|
1724
|
+
return 0 === arguments.length ? (this._events = new M(), this._eventsCount = 0) : i2[e2] && (0 == --this._eventsCount ? this._events = new M() : delete i2[e2]), this;
|
|
1648
1725
|
if (0 === arguments.length) {
|
|
1649
1726
|
for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
|
|
1650
1727
|
"removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
|
|
1651
|
-
return this.removeAllListeners("removeListener"), this._events = new
|
|
1728
|
+
return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
|
|
1652
1729
|
}
|
|
1653
1730
|
if ("function" == typeof (t2 = i2[e2]))
|
|
1654
1731
|
this.removeListener(e2, t2);
|
|
@@ -1657,34 +1734,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
1657
1734
|
this.removeListener(e2, t2[t2.length - 1]);
|
|
1658
1735
|
} while (t2[0]);
|
|
1659
1736
|
return this;
|
|
1660
|
-
},
|
|
1737
|
+
}, x.prototype.listeners = function(e2) {
|
|
1661
1738
|
var t2, i2 = this._events;
|
|
1662
1739
|
return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
|
|
1663
1740
|
for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
|
|
1664
1741
|
t3[i3] = e3[i3].listener || e3[i3];
|
|
1665
1742
|
return t3;
|
|
1666
1743
|
}(t2) : [];
|
|
1667
|
-
},
|
|
1668
|
-
return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) :
|
|
1669
|
-
},
|
|
1744
|
+
}, x.listenerCount = function(e2, t2) {
|
|
1745
|
+
return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
|
|
1746
|
+
}, x.prototype.listenerCount = N, x.prototype.eventNames = function() {
|
|
1670
1747
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
1671
1748
|
};
|
|
1672
|
-
const
|
|
1673
|
-
function
|
|
1749
|
+
const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
|
|
1750
|
+
function V(e2) {
|
|
1674
1751
|
if ("string" != typeof e2 && "symbol" != typeof e2)
|
|
1675
1752
|
throw new TypeError("type is not type of string or symbol!");
|
|
1676
1753
|
}
|
|
1677
|
-
function
|
|
1754
|
+
function z(e2) {
|
|
1678
1755
|
if ("function" != typeof e2)
|
|
1679
1756
|
throw new TypeError("fn is not type of Function!");
|
|
1680
1757
|
}
|
|
1681
|
-
function
|
|
1682
|
-
return { [
|
|
1758
|
+
function _(e2) {
|
|
1759
|
+
return { [O]: "always", fn: e2 };
|
|
1683
1760
|
}
|
|
1684
|
-
function
|
|
1685
|
-
return { [
|
|
1761
|
+
function U(e2) {
|
|
1762
|
+
return { [O]: "once", fn: e2 };
|
|
1686
1763
|
}
|
|
1687
|
-
class
|
|
1764
|
+
class $ {
|
|
1688
1765
|
constructor() {
|
|
1689
1766
|
this._events = {};
|
|
1690
1767
|
}
|
|
@@ -1692,25 +1769,25 @@ var telerikReportViewer = (function (exports) {
|
|
|
1692
1769
|
return this.on(e2, t2);
|
|
1693
1770
|
}
|
|
1694
1771
|
on(e2, t2) {
|
|
1695
|
-
return
|
|
1772
|
+
return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
|
|
1696
1773
|
}
|
|
1697
1774
|
prependListener(e2, t2) {
|
|
1698
1775
|
return this.prepend(e2, t2);
|
|
1699
1776
|
}
|
|
1700
1777
|
prepend(e2, t2) {
|
|
1701
|
-
return
|
|
1778
|
+
return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
|
|
1702
1779
|
}
|
|
1703
1780
|
prependOnceListener(e2, t2) {
|
|
1704
1781
|
return this.prependOnce(e2, t2);
|
|
1705
1782
|
}
|
|
1706
1783
|
prependOnce(e2, t2) {
|
|
1707
|
-
return
|
|
1784
|
+
return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
|
|
1708
1785
|
}
|
|
1709
1786
|
listeners(e2) {
|
|
1710
1787
|
return (this._events[e2] || []).map((e3) => e3.fn);
|
|
1711
1788
|
}
|
|
1712
1789
|
once(e2, t2) {
|
|
1713
|
-
return
|
|
1790
|
+
return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
|
|
1714
1791
|
}
|
|
1715
1792
|
removeAllListeners() {
|
|
1716
1793
|
this._events = {};
|
|
@@ -1719,7 +1796,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1719
1796
|
return this.removeListener(e2, t2);
|
|
1720
1797
|
}
|
|
1721
1798
|
removeListener(e2, t2) {
|
|
1722
|
-
|
|
1799
|
+
V(e2);
|
|
1723
1800
|
const i2 = this.listeners(e2);
|
|
1724
1801
|
if ("function" == typeof t2) {
|
|
1725
1802
|
let n2 = -1, r2 = false;
|
|
@@ -1730,13 +1807,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
1730
1807
|
return delete this._events[e2];
|
|
1731
1808
|
}
|
|
1732
1809
|
emit(e2, ...t2) {
|
|
1733
|
-
return
|
|
1734
|
-
|
|
1810
|
+
return s(this, void 0, void 0, function* () {
|
|
1811
|
+
V(e2);
|
|
1735
1812
|
const i2 = this.listeners(e2), n2 = [];
|
|
1736
1813
|
if (i2 && i2.length) {
|
|
1737
1814
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1738
1815
|
const s2 = i2[r2], o2 = s2.apply(this, t2);
|
|
1739
|
-
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1816
|
+
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
|
|
1740
1817
|
}
|
|
1741
1818
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1742
1819
|
}
|
|
@@ -1744,21 +1821,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
1744
1821
|
});
|
|
1745
1822
|
}
|
|
1746
1823
|
emitSync(e2, ...t2) {
|
|
1747
|
-
|
|
1824
|
+
V(e2);
|
|
1748
1825
|
const i2 = this.listeners(e2), n2 = [];
|
|
1749
1826
|
if (i2 && i2.length) {
|
|
1750
1827
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1751
1828
|
const s2 = i2[r2];
|
|
1752
|
-
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1829
|
+
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
|
|
1753
1830
|
}
|
|
1754
1831
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1755
1832
|
}
|
|
1756
1833
|
return false;
|
|
1757
1834
|
}
|
|
1758
1835
|
}
|
|
1759
|
-
class
|
|
1836
|
+
class H {
|
|
1760
1837
|
constructor() {
|
|
1761
|
-
this.eventEmitter = new
|
|
1838
|
+
this.eventEmitter = new x(), this.awaitEventEmitter = new $();
|
|
1762
1839
|
}
|
|
1763
1840
|
on(e2, t2) {
|
|
1764
1841
|
return this.eventEmitter.on(e2, t2), this;
|
|
@@ -1770,12 +1847,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
1770
1847
|
return this.awaitEventEmitter.on(e2, t2), this;
|
|
1771
1848
|
}
|
|
1772
1849
|
emitAsync(e2, ...t2) {
|
|
1773
|
-
return
|
|
1850
|
+
return s(this, void 0, void 0, function* () {
|
|
1774
1851
|
yield this.awaitEventEmitter.emit(e2, ...t2);
|
|
1775
1852
|
});
|
|
1776
1853
|
}
|
|
1777
1854
|
}
|
|
1778
|
-
class
|
|
1855
|
+
class B {
|
|
1779
1856
|
hasPdfPlugin() {
|
|
1780
1857
|
let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
|
|
1781
1858
|
for (let t2 of e2)
|
|
@@ -1788,7 +1865,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1788
1865
|
return false;
|
|
1789
1866
|
}
|
|
1790
1867
|
}
|
|
1791
|
-
class
|
|
1868
|
+
class q {
|
|
1792
1869
|
hasPdfPlugin() {
|
|
1793
1870
|
let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
|
|
1794
1871
|
if (null !== e2 && e2.length > 1) {
|
|
@@ -1803,7 +1880,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1803
1880
|
return false;
|
|
1804
1881
|
}
|
|
1805
1882
|
}
|
|
1806
|
-
class
|
|
1883
|
+
class W {
|
|
1807
1884
|
constructor(e2) {
|
|
1808
1885
|
this.defaultPlugin = e2;
|
|
1809
1886
|
}
|
|
@@ -1814,22 +1891,22 @@ var telerikReportViewer = (function (exports) {
|
|
|
1814
1891
|
return false;
|
|
1815
1892
|
}
|
|
1816
1893
|
}
|
|
1817
|
-
class
|
|
1894
|
+
class j {
|
|
1818
1895
|
hasPdfPlugin() {
|
|
1819
1896
|
return false;
|
|
1820
1897
|
}
|
|
1821
1898
|
}
|
|
1822
|
-
function
|
|
1899
|
+
function J() {
|
|
1823
1900
|
return window.navigator && window.navigator.msSaveOrOpenBlob;
|
|
1824
1901
|
}
|
|
1825
|
-
class
|
|
1902
|
+
class G {
|
|
1826
1903
|
constructor() {
|
|
1827
1904
|
this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
|
|
1828
1905
|
if (window.navigator) {
|
|
1829
1906
|
let e2 = window.navigator.userAgent.toLowerCase();
|
|
1830
|
-
return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new
|
|
1907
|
+
return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new B() : e2.indexOf("firefox") > -1 ? new q() : e2.indexOf("edg/") > -1 ? new W("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new W("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new W("WebKit built-in PDF") : new j();
|
|
1831
1908
|
}
|
|
1832
|
-
return new
|
|
1909
|
+
return new j();
|
|
1833
1910
|
}().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1834
1911
|
}
|
|
1835
1912
|
destroy() {
|
|
@@ -1847,13 +1924,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
1847
1924
|
}), function(e3) {
|
|
1848
1925
|
let t3 = window.location, i3 = document.createElement("a");
|
|
1849
1926
|
return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
|
|
1850
|
-
}(e2) &&
|
|
1927
|
+
}(e2) && J())
|
|
1851
1928
|
return this.iframe.src = e2, void document.body.appendChild(this.iframe);
|
|
1852
1929
|
let i2 = new XMLHttpRequest(), n2 = this;
|
|
1853
1930
|
i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
|
|
1854
1931
|
if (200 === this.status) {
|
|
1855
1932
|
let e3 = new Blob([this.response], { type: "application/pdf" });
|
|
1856
|
-
|
|
1933
|
+
J() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
|
|
1857
1934
|
} else
|
|
1858
1935
|
console.log("Could not retrieve remote PDF document.");
|
|
1859
1936
|
}, i2.send();
|
|
@@ -1868,10 +1945,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
1868
1945
|
return this.hasPdfPlugin;
|
|
1869
1946
|
}
|
|
1870
1947
|
}
|
|
1871
|
-
function
|
|
1948
|
+
function Z(e2) {
|
|
1872
1949
|
return 1e3 * e2;
|
|
1873
1950
|
}
|
|
1874
|
-
class
|
|
1951
|
+
class K {
|
|
1875
1952
|
constructor(e2, t2, i2) {
|
|
1876
1953
|
if (this.pingMilliseconds = 0, !e2)
|
|
1877
1954
|
throw "Error";
|
|
@@ -1880,7 +1957,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1880
1957
|
initSessionTimeout(e2) {
|
|
1881
1958
|
if (!isFinite(e2))
|
|
1882
1959
|
throw "sessionTimeoutSeconds must be finite";
|
|
1883
|
-
this.pingMilliseconds = e2 <= 120 ?
|
|
1960
|
+
this.pingMilliseconds = e2 <= 120 ? Z(e2) / 2 : Z(e2 - 60);
|
|
1884
1961
|
}
|
|
1885
1962
|
start() {
|
|
1886
1963
|
this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
|
|
@@ -1891,33 +1968,33 @@ var telerikReportViewer = (function (exports) {
|
|
|
1891
1968
|
this.interval && (clearInterval(this.interval), this.interval = null);
|
|
1892
1969
|
}
|
|
1893
1970
|
}
|
|
1894
|
-
var
|
|
1895
|
-
function
|
|
1971
|
+
var X, Y, Q, ee, te;
|
|
1972
|
+
function ie(e2, t2 = "", i2 = "") {
|
|
1896
1973
|
let n2 = document.createElement(e2);
|
|
1897
|
-
return t2 && (n2.id = t2),
|
|
1974
|
+
return t2 && (n2.id = t2), ne(n2, i2), n2;
|
|
1898
1975
|
}
|
|
1899
|
-
function
|
|
1976
|
+
function ne(e2, t2) {
|
|
1900
1977
|
if ("" === t2 || !e2)
|
|
1901
1978
|
return;
|
|
1902
1979
|
let i2 = t2.trim().split(" ");
|
|
1903
1980
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
|
|
1904
1981
|
}
|
|
1905
|
-
function
|
|
1982
|
+
function re(e2, t2) {
|
|
1906
1983
|
if ("" === t2 || !e2)
|
|
1907
1984
|
return;
|
|
1908
1985
|
let i2 = t2.trim().split(" ");
|
|
1909
1986
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
|
|
1910
1987
|
}
|
|
1911
|
-
function
|
|
1988
|
+
function se(e2, t2) {
|
|
1912
1989
|
return e2.classList.contains(t2);
|
|
1913
1990
|
}
|
|
1914
|
-
function
|
|
1991
|
+
function oe(e2) {
|
|
1915
1992
|
return e2.offsetParent;
|
|
1916
1993
|
}
|
|
1917
|
-
function
|
|
1994
|
+
function ae(e2) {
|
|
1918
1995
|
return parseInt(e2, 10) || 0;
|
|
1919
1996
|
}
|
|
1920
|
-
function
|
|
1997
|
+
function le(e2, t2, i2, n2 = 0, r2 = 0) {
|
|
1921
1998
|
let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
|
|
1922
1999
|
!function(e3, t3) {
|
|
1923
2000
|
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);
|
|
@@ -1925,11 +2002,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
1925
2002
|
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);
|
|
1926
2003
|
}(e2, s2);
|
|
1927
2004
|
}
|
|
1928
|
-
function
|
|
1929
|
-
let t2 =
|
|
2005
|
+
function he(e2) {
|
|
2006
|
+
let t2 = ie("div");
|
|
1930
2007
|
return t2.textContent = e2, t2.innerHTML;
|
|
1931
2008
|
}
|
|
1932
|
-
function
|
|
2009
|
+
function ce(e2) {
|
|
1933
2010
|
if (e2 && e2.length < 6) {
|
|
1934
2011
|
let t3 = 1, i2 = e2.split("");
|
|
1935
2012
|
for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
|
|
@@ -1939,16 +2016,16 @@ var telerikReportViewer = (function (exports) {
|
|
|
1939
2016
|
let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
|
|
1940
2017
|
return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
|
|
1941
2018
|
}
|
|
1942
|
-
function
|
|
2019
|
+
function de(e2) {
|
|
1943
2020
|
return !!e2 && e2.indexOf(",") > -1;
|
|
1944
2021
|
}
|
|
1945
|
-
function
|
|
2022
|
+
function ue(e2) {
|
|
1946
2023
|
if ("transparent" === e2.toLowerCase())
|
|
1947
2024
|
return 0;
|
|
1948
|
-
if (!
|
|
2025
|
+
if (!de(e2))
|
|
1949
2026
|
return 1;
|
|
1950
2027
|
if (-1 !== e2.indexOf("#")) {
|
|
1951
|
-
let t3 =
|
|
2028
|
+
let t3 = ce(e2);
|
|
1952
2029
|
if (null === t3)
|
|
1953
2030
|
return 1;
|
|
1954
2031
|
e2 = t3;
|
|
@@ -1958,34 +2035,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
1958
2035
|
});
|
|
1959
2036
|
return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
|
|
1960
2037
|
}
|
|
1961
|
-
function
|
|
1962
|
-
let i2 =
|
|
2038
|
+
function pe(e2, t2) {
|
|
2039
|
+
let i2 = ie("div");
|
|
1963
2040
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
1964
2041
|
e2.appendChild(i2.childNodes[0]);
|
|
1965
2042
|
}
|
|
1966
|
-
function
|
|
1967
|
-
let i2 =
|
|
2043
|
+
function ge(e2, t2) {
|
|
2044
|
+
let i2 = ie("div");
|
|
1968
2045
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
1969
2046
|
e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
|
|
1970
2047
|
}
|
|
1971
|
-
function
|
|
1972
|
-
return
|
|
2048
|
+
function me(e2, t2) {
|
|
2049
|
+
return e2 ? e2.querySelector(t2) : null;
|
|
1973
2050
|
}
|
|
1974
|
-
function
|
|
2051
|
+
function fe(e2, t2) {
|
|
1975
2052
|
var i2;
|
|
1976
2053
|
return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
|
|
1977
2054
|
}
|
|
1978
|
-
function
|
|
2055
|
+
function ve(e2) {
|
|
1979
2056
|
let t2 = e2.parentElement;
|
|
1980
|
-
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 :
|
|
2057
|
+
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : ve(t2) : null;
|
|
1981
2058
|
}
|
|
1982
|
-
function
|
|
2059
|
+
function Pe(e2, t2 = 300) {
|
|
1983
2060
|
let i2;
|
|
1984
2061
|
return function(...n2) {
|
|
1985
2062
|
clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
|
|
1986
2063
|
};
|
|
1987
2064
|
}
|
|
1988
|
-
function
|
|
2065
|
+
function Ce(e2, t2) {
|
|
1989
2066
|
let i2 = null;
|
|
1990
2067
|
return function(n2, ...r2) {
|
|
1991
2068
|
i2 || (i2 = setTimeout(function() {
|
|
@@ -1993,24 +2070,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
1993
2070
|
}, t2));
|
|
1994
2071
|
};
|
|
1995
2072
|
}
|
|
1996
|
-
function
|
|
2073
|
+
function ye(e2, t2) {
|
|
1997
2074
|
return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
|
|
1998
2075
|
}
|
|
1999
|
-
function
|
|
2000
|
-
return
|
|
2076
|
+
function Se(e2) {
|
|
2077
|
+
return ye(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
|
|
2001
2078
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return
|
|
2079
|
+
function Ie(e2) {
|
|
2080
|
+
return ye(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
|
|
2004
2081
|
}
|
|
2005
|
-
function
|
|
2082
|
+
function be(e2) {
|
|
2006
2083
|
return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
|
|
2007
2084
|
}
|
|
2008
|
-
function
|
|
2085
|
+
function we(e2, ...t2) {
|
|
2009
2086
|
return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
|
|
2010
2087
|
}
|
|
2011
|
-
function
|
|
2088
|
+
function Te(e2, t2) {
|
|
2012
2089
|
let i2, n2;
|
|
2013
|
-
if (
|
|
2090
|
+
if (Ae(e2))
|
|
2014
2091
|
for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
|
|
2015
2092
|
;
|
|
2016
2093
|
else
|
|
@@ -2019,55 +2096,40 @@ var telerikReportViewer = (function (exports) {
|
|
|
2019
2096
|
break;
|
|
2020
2097
|
return e2;
|
|
2021
2098
|
}
|
|
2022
|
-
function
|
|
2099
|
+
function Ae(e2) {
|
|
2023
2100
|
if (Array.isArray(e2))
|
|
2024
2101
|
return true;
|
|
2025
2102
|
return "number" == typeof (!!e2 && "length" in e2 && e2.length);
|
|
2026
2103
|
}
|
|
2027
|
-
function
|
|
2104
|
+
function Re(e2) {
|
|
2028
2105
|
return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
|
|
2029
2106
|
}
|
|
2030
|
-
function
|
|
2107
|
+
function Ee(e2) {
|
|
2031
2108
|
return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
|
|
2032
2109
|
}
|
|
2033
|
-
function
|
|
2110
|
+
function Me(e2) {
|
|
2034
2111
|
return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
|
|
2035
2112
|
}
|
|
2036
|
-
e.PageMode = void 0, (
|
|
2037
|
-
class
|
|
2038
|
-
constructor(e2) {
|
|
2039
|
-
this.handled = false, this.deviceInfo = e2;
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
class ve {
|
|
2043
|
-
constructor(e2) {
|
|
2044
|
-
this.handled = false, this.url = e2;
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
class Pe {
|
|
2048
|
-
constructor(e2, t2) {
|
|
2049
|
-
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
2050
|
-
}
|
|
2051
|
-
}
|
|
2052
|
-
class ye {
|
|
2113
|
+
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";
|
|
2114
|
+
class xe {
|
|
2053
2115
|
constructor(e2, t2) {
|
|
2054
2116
|
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
2055
2117
|
}
|
|
2056
2118
|
}
|
|
2057
|
-
class
|
|
2119
|
+
class ke extends a {
|
|
2058
2120
|
constructor(e2, t2, i2) {
|
|
2059
2121
|
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;
|
|
2060
2122
|
}
|
|
2061
2123
|
}
|
|
2062
|
-
const
|
|
2063
|
-
var
|
|
2124
|
+
const Le = "System.Int64", De = "System.Double", Ne = "System.String", Fe = "System.DateTime", Oe = "System.Boolean";
|
|
2125
|
+
var Ve = function() {
|
|
2064
2126
|
var e2 = {};
|
|
2065
2127
|
function t2(e3, t3, i3, n2) {
|
|
2066
2128
|
var r2 = [].concat(t3).map(function(t4) {
|
|
2067
2129
|
return function(e4, t5, i4) {
|
|
2068
2130
|
if (e4.availableValues) {
|
|
2069
2131
|
var n3 = false;
|
|
2070
|
-
if (
|
|
2132
|
+
if (Te(e4.availableValues, function(e5, r3) {
|
|
2071
2133
|
return !(n3 = i4(t5, r3.value));
|
|
2072
2134
|
}), !n3) {
|
|
2073
2135
|
if (e4.allowNull && !t5)
|
|
@@ -2091,7 +2153,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2091
2153
|
function i2(e3, t3) {
|
|
2092
2154
|
return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
|
|
2093
2155
|
}
|
|
2094
|
-
return e2[
|
|
2156
|
+
return e2[Ne] = { validate: function(e3, i3) {
|
|
2095
2157
|
return t2(e3, i3, function(t3) {
|
|
2096
2158
|
if (!t3) {
|
|
2097
2159
|
if (e3.allowNull)
|
|
@@ -2104,9 +2166,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2104
2166
|
}, function(e4, t3) {
|
|
2105
2167
|
return e4 == t3;
|
|
2106
2168
|
});
|
|
2107
|
-
} }, e2[
|
|
2169
|
+
} }, e2[De] = { validate: function(e3, n2) {
|
|
2108
2170
|
return t2(e3, n2, function(t3) {
|
|
2109
|
-
var n3 =
|
|
2171
|
+
var n3 = Ee(t3);
|
|
2110
2172
|
if (isNaN(n3)) {
|
|
2111
2173
|
if (i2(e3, t3))
|
|
2112
2174
|
return null;
|
|
@@ -2114,11 +2176,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2114
2176
|
}
|
|
2115
2177
|
return n3;
|
|
2116
2178
|
}, function(e4, t3) {
|
|
2117
|
-
return
|
|
2179
|
+
return Ee(e4) == Ee(t3);
|
|
2118
2180
|
});
|
|
2119
|
-
} }, e2[
|
|
2181
|
+
} }, e2[Le] = { validate: function(e3, n2) {
|
|
2120
2182
|
return t2(e3, n2, function(t3) {
|
|
2121
|
-
var n3 =
|
|
2183
|
+
var n3 = Re(t3);
|
|
2122
2184
|
if (isNaN(n3)) {
|
|
2123
2185
|
if (i2(e3, t3))
|
|
2124
2186
|
return null;
|
|
@@ -2126,19 +2188,19 @@ var telerikReportViewer = (function (exports) {
|
|
|
2126
2188
|
}
|
|
2127
2189
|
return n3;
|
|
2128
2190
|
}, function(e4, t3) {
|
|
2129
|
-
return
|
|
2191
|
+
return Re(e4) == Ee(t3);
|
|
2130
2192
|
});
|
|
2131
|
-
} }, e2[
|
|
2193
|
+
} }, e2[Fe] = { validate: function(e3, i3) {
|
|
2132
2194
|
return t2(e3, i3, function(t3) {
|
|
2133
2195
|
if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
|
|
2134
2196
|
return null;
|
|
2135
2197
|
if (!isNaN(Date.parse(t3)))
|
|
2136
|
-
return e3.availableValues ? t3 :
|
|
2198
|
+
return e3.availableValues ? t3 : Me(t3);
|
|
2137
2199
|
throw "Please input a valid date.";
|
|
2138
2200
|
}, function(e4, t3) {
|
|
2139
|
-
return e4 =
|
|
2201
|
+
return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
|
|
2140
2202
|
});
|
|
2141
|
-
} }, e2[
|
|
2203
|
+
} }, e2[Oe] = { validate: function(e3, n2) {
|
|
2142
2204
|
return t2(e3, n2, function(t3) {
|
|
2143
2205
|
if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase()))
|
|
2144
2206
|
return Boolean(t3);
|
|
@@ -2151,37 +2213,35 @@ var telerikReportViewer = (function (exports) {
|
|
|
2151
2213
|
} }, { validate: function(t3, i3) {
|
|
2152
2214
|
var n2 = e2[t3.type];
|
|
2153
2215
|
if (!n2)
|
|
2154
|
-
throw
|
|
2216
|
+
throw we("Cannot validate parameter of type {type}.", t3);
|
|
2155
2217
|
return n2.validate(t3, i3);
|
|
2156
2218
|
} };
|
|
2157
2219
|
}();
|
|
2158
|
-
function
|
|
2220
|
+
function ze(e2, t2, i2) {
|
|
2159
2221
|
try {
|
|
2160
2222
|
const n2 = e2.availableValues.find((e3) => e3.value === t2);
|
|
2161
|
-
if (!n2)
|
|
2223
|
+
if (!n2) {
|
|
2224
|
+
if (e2.allowNull && null === t2)
|
|
2225
|
+
return { valueMember: null, displayMember: null };
|
|
2162
2226
|
throw new Error(`The available values of parameter ${i2} do not contain Value property that equals ${t2}`);
|
|
2227
|
+
}
|
|
2163
2228
|
return { valueMember: t2, displayMember: n2.name };
|
|
2164
2229
|
} catch (e3) {
|
|
2165
2230
|
return;
|
|
2166
2231
|
}
|
|
2167
2232
|
}
|
|
2168
|
-
function
|
|
2233
|
+
function _e(e2, t2, i2) {
|
|
2169
2234
|
const n2 = [];
|
|
2170
2235
|
for (let r2 in t2)
|
|
2171
|
-
n2.push(
|
|
2236
|
+
n2.push(ze(e2, t2[r2], i2));
|
|
2172
2237
|
return n2;
|
|
2173
2238
|
}
|
|
2174
|
-
class
|
|
2239
|
+
class Ue {
|
|
2175
2240
|
constructor(e2 = "", t2 = {}) {
|
|
2176
2241
|
this.report = e2, this.parameters = t2;
|
|
2177
2242
|
}
|
|
2178
2243
|
}
|
|
2179
|
-
class
|
|
2180
|
-
constructor(e2, t2, i2, n2 = null) {
|
|
2181
|
-
this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
class xe extends A {
|
|
2244
|
+
class $e extends H {
|
|
2185
2245
|
constructor(e2) {
|
|
2186
2246
|
super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
|
|
2187
2247
|
}
|
|
@@ -2189,7 +2249,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2189
2249
|
this.destroyResizeObserver();
|
|
2190
2250
|
}
|
|
2191
2251
|
initResizeObserver() {
|
|
2192
|
-
this.debounceResize =
|
|
2252
|
+
this.debounceResize = Pe(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
|
|
2193
2253
|
}
|
|
2194
2254
|
destroyResizeObserver() {
|
|
2195
2255
|
this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
|
|
@@ -2198,8 +2258,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
2198
2258
|
e2[0].target === this.element && this.emit("resize");
|
|
2199
2259
|
}
|
|
2200
2260
|
}
|
|
2201
|
-
const
|
|
2202
|
-
class
|
|
2261
|
+
const He = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
|
|
2262
|
+
class Be {
|
|
2203
2263
|
constructor(t2, i2, n2) {
|
|
2204
2264
|
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));
|
|
2205
2265
|
}
|
|
@@ -2221,10 +2281,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2221
2281
|
return this.enabled;
|
|
2222
2282
|
}
|
|
2223
2283
|
enable() {
|
|
2224
|
-
this.enabled = true,
|
|
2284
|
+
this.enabled = true, ne(this.placeholder, "scrollable"), this.initEvents();
|
|
2225
2285
|
}
|
|
2226
2286
|
disable() {
|
|
2227
|
-
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false,
|
|
2287
|
+
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, re(this.placeholder, "scrollable"), this.unbind());
|
|
2228
2288
|
}
|
|
2229
2289
|
renderPage(e2) {
|
|
2230
2290
|
let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
|
|
@@ -2239,7 +2299,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2239
2299
|
this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
|
|
2240
2300
|
}
|
|
2241
2301
|
setCurrentPage(e2) {
|
|
2242
|
-
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (
|
|
2302
|
+
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);
|
|
2243
2303
|
}
|
|
2244
2304
|
updatePageArea(e2) {
|
|
2245
2305
|
var t2;
|
|
@@ -2264,18 +2324,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
2264
2324
|
return this.controller.getCurrentPageNumber();
|
|
2265
2325
|
}
|
|
2266
2326
|
isSkeletonScreen(e2, t2) {
|
|
2267
|
-
return !(!e2 && !(e2 = this.findPageElement(t2))) &&
|
|
2327
|
+
return !(!e2 && !(e2 = this.findPageElement(t2))) && se(e2, "trv-skeleton-" + t2);
|
|
2268
2328
|
}
|
|
2269
2329
|
addSkeletonScreen(e2, t2) {
|
|
2270
|
-
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 =
|
|
2271
|
-
t2 ?
|
|
2330
|
+
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = fe(n2, "style"), s2 = fe(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = we(He, e2, r2, s2);
|
|
2331
|
+
t2 ? ge(this.pageWrapper, o2) : pe(this.pageWrapper, o2);
|
|
2272
2332
|
}
|
|
2273
2333
|
generateSkeletonScreens(e2) {
|
|
2274
2334
|
var t2;
|
|
2275
|
-
let i2 = "", n2 = this.findPageElement(1), r2 =
|
|
2335
|
+
let i2 = "", n2 = this.findPageElement(1), r2 = fe(n2, "style"), s2 = fe(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
|
|
2276
2336
|
for (; a2 < e2; a2++)
|
|
2277
|
-
i2 +=
|
|
2278
|
-
|
|
2337
|
+
i2 += we(He, a2, r2, s2);
|
|
2338
|
+
pe(this.pageWrapper, i2);
|
|
2279
2339
|
}
|
|
2280
2340
|
loadMorePages() {
|
|
2281
2341
|
var e2;
|
|
@@ -2326,10 +2386,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2326
2386
|
}
|
|
2327
2387
|
}
|
|
2328
2388
|
initEvents() {
|
|
2329
|
-
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll =
|
|
2389
|
+
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Pe(() => {
|
|
2330
2390
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2331
2391
|
!this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
|
|
2332
|
-
}, 250), this.throttleScroll =
|
|
2392
|
+
}, 250), this.throttleScroll = Ce(() => {
|
|
2333
2393
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2334
2394
|
this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
|
|
2335
2395
|
}, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
|
|
@@ -2424,7 +2484,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2424
2484
|
return i2 && i2.length ? i2[i2.length - 1] : null;
|
|
2425
2485
|
}
|
|
2426
2486
|
}
|
|
2427
|
-
class
|
|
2487
|
+
class qe {
|
|
2428
2488
|
constructor() {
|
|
2429
2489
|
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;
|
|
2430
2490
|
}
|
|
@@ -2432,7 +2492,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2432
2492
|
this.reset(e2), this.attachToScrollEvent();
|
|
2433
2493
|
}
|
|
2434
2494
|
reset(e2) {
|
|
2435
|
-
this.placeholder = e2, this.scrollableContainer =
|
|
2495
|
+
this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
|
|
2436
2496
|
}
|
|
2437
2497
|
setScaleFactor(e2) {
|
|
2438
2498
|
this.scaleFactor = e2;
|
|
@@ -2455,7 +2515,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2455
2515
|
saveFreezeItemsInitialState(e2) {
|
|
2456
2516
|
var t2, i2, n2;
|
|
2457
2517
|
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;
|
|
2458
|
-
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 =
|
|
2518
|
+
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = me(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
|
|
2459
2519
|
var i3;
|
|
2460
2520
|
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;
|
|
2461
2521
|
switch (n3) {
|
|
@@ -2477,7 +2537,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2477
2537
|
}
|
|
2478
2538
|
updateFreezeItemsOnScroll(e2, t2, i2) {
|
|
2479
2539
|
var n2, r2;
|
|
2480
|
-
let s2 =
|
|
2540
|
+
let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
|
|
2481
2541
|
if (!s2)
|
|
2482
2542
|
return;
|
|
2483
2543
|
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 + "']");
|
|
@@ -2502,7 +2562,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2502
2562
|
"IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
|
|
2503
2563
|
}
|
|
2504
2564
|
hasSetBgColor(e2) {
|
|
2505
|
-
return
|
|
2565
|
+
return ue(e2) > 0;
|
|
2506
2566
|
}
|
|
2507
2567
|
isFrozen(e2) {
|
|
2508
2568
|
return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
|
|
@@ -2522,21 +2582,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
2522
2582
|
return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
|
|
2523
2583
|
}
|
|
2524
2584
|
}
|
|
2525
|
-
const
|
|
2526
|
-
function
|
|
2585
|
+
const We = /{(\w+?)}/g, je = "trv-initial-image-styles";
|
|
2586
|
+
function Je(e2, t2) {
|
|
2527
2587
|
let i2 = Array.isArray(t2);
|
|
2528
|
-
return e2 ? e2.replace(
|
|
2588
|
+
return e2 ? e2.replace(We, function(e3, n2) {
|
|
2529
2589
|
return t2[i2 ? parseInt(n2) : n2];
|
|
2530
2590
|
}) : "";
|
|
2531
2591
|
}
|
|
2532
|
-
const
|
|
2533
|
-
e.BookmarkNode = class {
|
|
2592
|
+
const Ge = "trv-search-dialog-shaded-result", Ze = "trv-search-dialog-highlighted-result";
|
|
2593
|
+
e.BasicAuth = I, e.BookmarkNode = class {
|
|
2534
2594
|
constructor() {
|
|
2535
2595
|
this.id = "", this.text = "", this.page = 0, this.items = null;
|
|
2536
2596
|
}
|
|
2537
|
-
}, e.ContentArea = class {
|
|
2597
|
+
}, e.ConnectionConfig = w, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
|
|
2538
2598
|
constructor(e2, t2, i2, n2 = {}) {
|
|
2539
|
-
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
|
|
2599
|
+
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 Be(this.placeholder, this, t2), this.resizeService = new $e(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("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.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)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
|
|
2540
2600
|
}
|
|
2541
2601
|
destroy() {
|
|
2542
2602
|
this.resizeService && this.resizeService.destroy();
|
|
@@ -2563,10 +2623,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2563
2623
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
|
2564
2624
|
}
|
|
2565
2625
|
onReportLoadProgress(e2) {
|
|
2566
|
-
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(
|
|
2626
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
|
2567
2627
|
}
|
|
2568
2628
|
onReportLoadComplete(t2) {
|
|
2569
|
-
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(
|
|
2629
|
+
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(Je(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 qe(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
|
|
2570
2630
|
}
|
|
2571
2631
|
onReportAutoRunOff() {
|
|
2572
2632
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
|
@@ -2660,14 +2720,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2660
2720
|
}
|
|
2661
2721
|
let e3 = 0, i3 = 0;
|
|
2662
2722
|
for (; n2 && n2 !== this.pageContainer; ) {
|
|
2663
|
-
if (
|
|
2723
|
+
if (se(n2, "trv-page-wrapper")) {
|
|
2664
2724
|
let t3 = n2.dataset.pageScale;
|
|
2665
2725
|
if ("string" == typeof t3) {
|
|
2666
2726
|
let n3 = parseFloat(t3);
|
|
2667
2727
|
e3 *= n3, i3 *= n3;
|
|
2668
2728
|
}
|
|
2669
2729
|
}
|
|
2670
|
-
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 =
|
|
2730
|
+
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = oe(n2);
|
|
2671
2731
|
}
|
|
2672
2732
|
this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
|
|
2673
2733
|
} else
|
|
@@ -2681,7 +2741,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2681
2741
|
return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
|
|
2682
2742
|
}
|
|
2683
2743
|
disablePagesArea(e2) {
|
|
2684
|
-
e2 ?
|
|
2744
|
+
e2 ? ne(this.placeholder, "trv-loading") : re(this.placeholder, "trv-loading");
|
|
2685
2745
|
}
|
|
2686
2746
|
disableParametersArea(e2) {
|
|
2687
2747
|
var t2, i2;
|
|
@@ -2691,13 +2751,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2691
2751
|
this.showNotification(e2, "error");
|
|
2692
2752
|
}
|
|
2693
2753
|
showNotification(e2 = "", t2 = "info") {
|
|
2694
|
-
this.notification.dataset.type
|
|
2695
|
-
|
|
2696
|
-
|
|
2754
|
+
let i2 = this.notification.dataset.type;
|
|
2755
|
+
i2 && re(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
|
|
2756
|
+
let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
|
|
2757
|
+
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ne(this.notification, `k-notification-${t2}`), re(this.notification, "k-hidden");
|
|
2697
2758
|
}
|
|
2698
2759
|
hideNotification() {
|
|
2699
2760
|
let e2 = String(this.notification.dataset.type);
|
|
2700
|
-
delete this.notification.dataset.type,
|
|
2761
|
+
delete this.notification.dataset.type, re(this.notification, `k-notification-${e2}`), ne(this.notification, "k-hidden");
|
|
2701
2762
|
}
|
|
2702
2763
|
pageNo(e2) {
|
|
2703
2764
|
var t2;
|
|
@@ -2720,7 +2781,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2720
2781
|
r2 = JSON.parse(n2.dataset.box);
|
|
2721
2782
|
else {
|
|
2722
2783
|
let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
|
|
2723
|
-
r2 = { padLeft:
|
|
2784
|
+
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);
|
|
2724
2785
|
}
|
|
2725
2786
|
let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
|
|
2726
2787
|
if (0 === a2) {
|
|
@@ -2729,7 +2790,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2729
2790
|
}
|
|
2730
2791
|
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;
|
|
2731
2792
|
let p2 = this.controller.getScale();
|
|
2732
|
-
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 ||
|
|
2793
|
+
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);
|
|
2733
2794
|
}
|
|
2734
2795
|
enableInteractivity() {
|
|
2735
2796
|
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);
|
|
@@ -2752,24 +2813,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2752
2813
|
onInteractiveItemClick(e2, t2) {
|
|
2753
2814
|
var i2;
|
|
2754
2815
|
let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
|
|
2755
|
-
r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new
|
|
2816
|
+
r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new l(e2, r2))), t2.stopPropagation();
|
|
2756
2817
|
}
|
|
2757
2818
|
onInteractiveItemEnter(e2) {
|
|
2758
2819
|
var t2;
|
|
2759
2820
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2760
|
-
n2 && this.controller.reportActionEnter(new
|
|
2821
|
+
n2 && this.controller.reportActionEnter(new l(e2, n2));
|
|
2761
2822
|
}
|
|
2762
2823
|
onInteractiveItemLeave(e2) {
|
|
2763
2824
|
var t2;
|
|
2764
2825
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2765
|
-
n2 && this.controller.reportActionLeave(new
|
|
2826
|
+
n2 && this.controller.reportActionLeave(new l(e2, n2));
|
|
2766
2827
|
}
|
|
2767
2828
|
onToolTipItemEnter(e2, t2) {
|
|
2768
2829
|
let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
|
|
2769
|
-
(i2 || n2) && this.controller.reportTooltipOpening(new
|
|
2830
|
+
(i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
|
|
2770
2831
|
}
|
|
2771
2832
|
onToolTipItemLeave(e2) {
|
|
2772
|
-
this.controller.reportTooltipClosing(new
|
|
2833
|
+
this.controller.reportTooltipClosing(new f(e2, "", "", null));
|
|
2773
2834
|
}
|
|
2774
2835
|
getNavigateToPageOnDocReady(e2, t2) {
|
|
2775
2836
|
var i2;
|
|
@@ -2787,7 +2848,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2787
2848
|
var t2;
|
|
2788
2849
|
let i2 = "trv-" + this.controller.getClientId() + "-styles";
|
|
2789
2850
|
null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
|
|
2790
|
-
let n2 =
|
|
2851
|
+
let n2 = ie("style", i2);
|
|
2791
2852
|
n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
|
|
2792
2853
|
}
|
|
2793
2854
|
setPageContent(e2) {
|
|
@@ -2799,26 +2860,26 @@ var telerikReportViewer = (function (exports) {
|
|
|
2799
2860
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
|
2800
2861
|
}
|
|
2801
2862
|
renderPageElement(e2) {
|
|
2802
|
-
let t2 =
|
|
2863
|
+
let t2 = ie("div");
|
|
2803
2864
|
t2.innerHTML = e2.pageContent;
|
|
2804
2865
|
let i2 = t2.querySelector("div.sheet");
|
|
2805
2866
|
i2.style.margin = "0";
|
|
2806
|
-
let n2 =
|
|
2807
|
-
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(
|
|
2867
|
+
let n2 = ie("div", "", "trv-report-page");
|
|
2868
|
+
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ie("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
|
|
2808
2869
|
}
|
|
2809
2870
|
applyPlaceholderViewModeClass() {
|
|
2810
|
-
this.controller.getViewMode() === e.ViewMode.Interactive ? (
|
|
2871
|
+
this.controller.getViewMode() === e.ViewMode.Interactive ? (re(this.placeholder, "printpreview"), ne(this.placeholder, "interactive")) : (re(this.placeholder, "interactive"), ne(this.placeholder, "printpreview"));
|
|
2811
2872
|
}
|
|
2812
2873
|
setPageAreaImage() {
|
|
2813
2874
|
this.clearPageAreaImage();
|
|
2814
|
-
let e2 =
|
|
2815
|
-
e2.innerHTML =
|
|
2875
|
+
let e2 = ie("style", je);
|
|
2876
|
+
e2.innerHTML = Je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
|
|
2816
2877
|
}
|
|
2817
2878
|
clearPageAreaImage() {
|
|
2818
2879
|
var e2;
|
|
2819
|
-
null === (e2 = document.getElementById(
|
|
2880
|
+
null === (e2 = document.getElementById(je)) || void 0 === e2 || e2.remove();
|
|
2820
2881
|
}
|
|
2821
|
-
}, e.DeviceInfo =
|
|
2882
|
+
}, e.CurrentPageChangedEventArgs = m, e.DeviceInfo = o, e.DocumentInfo = class {
|
|
2822
2883
|
constructor() {
|
|
2823
2884
|
this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
|
|
2824
2885
|
}
|
|
@@ -2826,29 +2887,29 @@ var telerikReportViewer = (function (exports) {
|
|
|
2826
2887
|
constructor() {
|
|
2827
2888
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
|
2828
2889
|
}
|
|
2829
|
-
}, e.EmailInfo =
|
|
2890
|
+
}, e.EmailInfo = a, e.ExportDocumentReadyEventArgs = u, e.ExportStartEventArgs = c, e.ExportStartedEventArgs = d, e.KeepClientAliveSentinel = K, e.NoAuth = S, e.PageAction = class {
|
|
2830
2891
|
constructor() {
|
|
2831
2892
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
|
2832
2893
|
}
|
|
2833
|
-
}, e.PageActionEventArgs =
|
|
2894
|
+
}, e.PageActionEventArgs = l, e.PageInfo = class {
|
|
2834
2895
|
constructor() {
|
|
2835
2896
|
this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
|
|
2836
2897
|
}
|
|
2837
|
-
}, e.PageTargetElement =
|
|
2898
|
+
}, e.PageTargetElement = h, e.ParameterInfo = class {
|
|
2838
2899
|
constructor() {
|
|
2839
2900
|
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 = "";
|
|
2840
2901
|
}
|
|
2841
|
-
}, e.ParameterValidators =
|
|
2902
|
+
}, e.ParameterValidators = Ve, e.ParameterValue = class {
|
|
2842
2903
|
constructor() {
|
|
2843
2904
|
this.name = "", this.value = null;
|
|
2844
2905
|
}
|
|
2845
|
-
}, e.RenderingExtension = class {
|
|
2906
|
+
}, e.PersonalTokenAuth = b, e.PrintDocumentReadyEventArgs = g, e.PrintStartedEventArgs = p, e.RenderingExtension = class {
|
|
2846
2907
|
constructor() {
|
|
2847
2908
|
this.name = "", this.localizedName = "";
|
|
2848
2909
|
}
|
|
2849
|
-
}, e.ReportController = class extends
|
|
2910
|
+
}, e.ReportController = class extends H {
|
|
2850
2911
|
constructor(e2, t2) {
|
|
2851
|
-
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
|
|
2912
|
+
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);
|
|
2852
2913
|
}
|
|
2853
2914
|
get autoRunEnabled() {
|
|
2854
2915
|
var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
|
|
@@ -2891,7 +2952,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2891
2952
|
let n2 = {}, r2 = [], s2 = false;
|
|
2892
2953
|
for (let t3 of e2)
|
|
2893
2954
|
try {
|
|
2894
|
-
let e3 =
|
|
2955
|
+
let e3 = Ve.validate(t3, t3.value);
|
|
2895
2956
|
n2[t3.id] = e3;
|
|
2896
2957
|
} catch (e3) {
|
|
2897
2958
|
s2 = true, r2.push(t3);
|
|
@@ -2901,7 +2962,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2901
2962
|
hasInvalidParameter(e2) {
|
|
2902
2963
|
for (const t2 of e2)
|
|
2903
2964
|
try {
|
|
2904
|
-
|
|
2965
|
+
Ve.validate(t2, t2.value);
|
|
2905
2966
|
} catch (e3) {
|
|
2906
2967
|
return true;
|
|
2907
2968
|
}
|
|
@@ -2933,7 +2994,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2933
2994
|
}
|
|
2934
2995
|
getReportSource() {
|
|
2935
2996
|
var e2;
|
|
2936
|
-
return new
|
|
2997
|
+
return new Ue(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
|
|
2937
2998
|
}
|
|
2938
2999
|
setReportSource(e2) {
|
|
2939
3000
|
this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
|
|
@@ -2978,7 +3039,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2978
3039
|
return this.currentPageNumber;
|
|
2979
3040
|
}
|
|
2980
3041
|
setCurrentPageNumber(e2) {
|
|
2981
|
-
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", e2));
|
|
3042
|
+
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new m(e2, this.documentId)));
|
|
2982
3043
|
}
|
|
2983
3044
|
getPageCount() {
|
|
2984
3045
|
return this.pageCount;
|
|
@@ -2993,9 +3054,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2993
3054
|
if ("navigateToReport" === t2.Type) {
|
|
2994
3055
|
this.emit("serverActionStarted");
|
|
2995
3056
|
let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
|
|
2996
|
-
this.respectAutoRun = true, this.emit("navigateToReport",
|
|
3057
|
+
this.respectAutoRun = true, this.emit("navigateToReport", new Ue(e3.Report, i2));
|
|
2997
3058
|
} else if ("navigateToBookmark" === t2.Type) {
|
|
2998
|
-
let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new
|
|
3059
|
+
let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new h(t2.Value, "bookmark");
|
|
2999
3060
|
this.navigateToPage(e3, i2);
|
|
3000
3061
|
} else if ("sorting" === t2.Type)
|
|
3001
3062
|
this.execServerAction(t2.Id);
|
|
@@ -3021,40 +3082,40 @@ var telerikReportViewer = (function (exports) {
|
|
|
3021
3082
|
this.emit("toolTipClosing", e2);
|
|
3022
3083
|
}
|
|
3023
3084
|
printReport() {
|
|
3024
|
-
return
|
|
3085
|
+
return s(this, void 0, void 0, function* () {
|
|
3025
3086
|
let e2 = this.createDeviceInfo();
|
|
3026
3087
|
e2.ImmediatePrint = true;
|
|
3027
|
-
let t2 = new
|
|
3088
|
+
let t2 = new p(e2);
|
|
3028
3089
|
this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
|
|
3029
3090
|
let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
|
|
3030
3091
|
t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
|
|
3031
|
-
let i2 = new
|
|
3092
|
+
let i2 = new g(t3);
|
|
3032
3093
|
this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
|
|
3033
3094
|
}));
|
|
3034
3095
|
});
|
|
3035
3096
|
}
|
|
3036
3097
|
exportReport(e2) {
|
|
3037
|
-
return
|
|
3038
|
-
let t2 = this.createDeviceInfo(), i2 = new
|
|
3098
|
+
return s(this, void 0, void 0, function* () {
|
|
3099
|
+
let t2 = this.createDeviceInfo(), i2 = new c(t2, e2);
|
|
3039
3100
|
if (yield this.emitAsync("exportStart", i2), !i2.isCancelled) {
|
|
3040
|
-
let n2 = new
|
|
3101
|
+
let n2 = new d(t2, e2);
|
|
3041
3102
|
if (this.emit("exportStarted", n2), n2.handled)
|
|
3042
3103
|
return;
|
|
3043
|
-
this.setUIState("ExportInProgress", true), this.exportAsync(e2, i2.deviceInfo).then((t3) =>
|
|
3104
|
+
this.setUIState("ExportInProgress", true), this.exportAsync(e2, i2.deviceInfo).then((t3) => s(this, void 0, void 0, function* () {
|
|
3044
3105
|
let i3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
|
|
3045
3106
|
i3 += "?response-content-disposition=attachment";
|
|
3046
|
-
let n3 = new
|
|
3107
|
+
let n3 = new u(i3, e2, "_self");
|
|
3047
3108
|
yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i3, n3.windowOpenTarget);
|
|
3048
3109
|
}));
|
|
3049
3110
|
}
|
|
3050
3111
|
});
|
|
3051
3112
|
}
|
|
3052
3113
|
sendReport(e2) {
|
|
3053
|
-
let t2 = this.createDeviceInfo(), i2 = new
|
|
3114
|
+
let t2 = this.createDeviceInfo(), i2 = new xe(t2, e2.format);
|
|
3054
3115
|
this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
|
|
3055
3116
|
let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
|
|
3056
3117
|
n2 += "?response-content-disposition=attachment";
|
|
3057
|
-
let r2 = new
|
|
3118
|
+
let r2 = new ke(e2, t2, n2);
|
|
3058
3119
|
this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
|
|
3059
3120
|
});
|
|
3060
3121
|
}
|
|
@@ -3063,9 +3124,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3063
3124
|
}
|
|
3064
3125
|
createAIThread() {
|
|
3065
3126
|
return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
|
|
3066
|
-
if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage =
|
|
3127
|
+
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)
|
|
3067
3128
|
for (let t2 = 0; t2 < e2.predefinedPrompts.length; t2++)
|
|
3068
|
-
e2.predefinedPrompts[t2] =
|
|
3129
|
+
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.");
|
|
3069
3130
|
return e2;
|
|
3070
3131
|
});
|
|
3071
3132
|
}
|
|
@@ -3073,13 +3134,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
3073
3134
|
return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
|
|
3074
3135
|
}
|
|
3075
3136
|
exportAsync(e2, t2) {
|
|
3076
|
-
return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) =>
|
|
3137
|
+
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* () {
|
|
3077
3138
|
return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
|
|
3078
3139
|
}));
|
|
3079
3140
|
}
|
|
3080
3141
|
sendDocumentAsync(e2, t2) {
|
|
3081
3142
|
return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
|
|
3082
|
-
this.handleRequestError(e3,
|
|
3143
|
+
this.handleRequestError(e3, we(this.options.messages.ReportViewer_ErrorSendingDocument, he(this.getReport())));
|
|
3083
3144
|
});
|
|
3084
3145
|
}
|
|
3085
3146
|
loadParameters(e2 = void 0) {
|
|
@@ -3092,7 +3153,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3092
3153
|
}
|
|
3093
3154
|
initializeAndStartSentinel() {
|
|
3094
3155
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
|
3095
|
-
this.keepClientAliveSentinel = new
|
|
3156
|
+
this.keepClientAliveSentinel = new K(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
|
3096
3157
|
});
|
|
3097
3158
|
}
|
|
3098
3159
|
stopSentinel() {
|
|
@@ -3117,7 +3178,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3117
3178
|
this.pageCount = 0, this.currentPageNumber = 0;
|
|
3118
3179
|
}
|
|
3119
3180
|
handleSearchRequestError(e2) {
|
|
3120
|
-
if (!
|
|
3181
|
+
if (!ye(e2, "System.ArgumentException"))
|
|
3121
3182
|
throw this.handleRequestError(e2, "", true), null;
|
|
3122
3183
|
this.throwPromiseError(e2);
|
|
3123
3184
|
}
|
|
@@ -3125,21 +3186,23 @@ var telerikReportViewer = (function (exports) {
|
|
|
3125
3186
|
throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
|
|
3126
3187
|
}
|
|
3127
3188
|
handleRequestError(e2, t2 = "", i2 = false) {
|
|
3128
|
-
|
|
3129
|
-
let n2 =
|
|
3189
|
+
Se(e2) && this.onClientExpired();
|
|
3190
|
+
let n2 = be(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
|
|
3130
3191
|
this.raiseError(r2), i2 || this.throwPromiseError(e2);
|
|
3131
3192
|
}
|
|
3132
3193
|
formatRequestError(e2, t2, i2) {
|
|
3133
3194
|
let n2 = e2.responseJSON, r2 = "";
|
|
3134
3195
|
if (n2) {
|
|
3135
|
-
if (
|
|
3196
|
+
if (401 == n2.status || 403 == n2.status)
|
|
3197
|
+
return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
|
|
3198
|
+
if (Ie(e2))
|
|
3136
3199
|
return this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3137
|
-
r2 =
|
|
3138
|
-
let t3 =
|
|
3200
|
+
r2 = he(n2.message);
|
|
3201
|
+
let t3 = he(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
|
|
3139
3202
|
t3 && (r2 ? r2 += " " + t3 : r2 = t3);
|
|
3140
3203
|
} else
|
|
3141
|
-
r2 =
|
|
3142
|
-
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 =
|
|
3204
|
+
r2 = he(e2.responseText);
|
|
3205
|
+
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = he(i2 || t2) + r2), Se(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
|
|
3143
3206
|
}
|
|
3144
3207
|
raiseError(e2, t2 = true) {
|
|
3145
3208
|
this.emit("error", e2, t2);
|
|
@@ -3149,17 +3212,17 @@ var telerikReportViewer = (function (exports) {
|
|
|
3149
3212
|
}
|
|
3150
3213
|
initializeClient() {
|
|
3151
3214
|
return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
|
|
3152
|
-
const t2 =
|
|
3215
|
+
const t2 = we(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
|
|
3153
3216
|
this.handleRequestError(e2, t2);
|
|
3154
3217
|
}).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
|
|
3155
3218
|
}
|
|
3156
3219
|
registerInstance() {
|
|
3157
3220
|
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;
|
|
3158
3221
|
}
|
|
3159
|
-
registerDocumentAsync(e2, t2, i2, n2 = "",
|
|
3160
|
-
return
|
|
3161
|
-
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !i2, n2,
|
|
3162
|
-
this.handleRequestError(t3,
|
|
3222
|
+
registerDocumentAsync(e2, t2, i2, n2 = "", r2 = "") {
|
|
3223
|
+
return s(this, void 0, void 0, function* () {
|
|
3224
|
+
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !i2, n2, r2).catch((t3) => {
|
|
3225
|
+
this.handleRequestError(t3, we(this.options.messages.ReportViewer_ErrorCreatingReportDocument, he(this.getReport()), he(e2)));
|
|
3163
3226
|
})) || "";
|
|
3164
3227
|
});
|
|
3165
3228
|
}
|
|
@@ -3181,7 +3244,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3181
3244
|
return e2.ContentOnly = true, e2.UseSVG = true, e2;
|
|
3182
3245
|
}
|
|
3183
3246
|
createDeviceInfo() {
|
|
3184
|
-
let e2 = new
|
|
3247
|
+
let e2 = new o();
|
|
3185
3248
|
this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
|
|
3186
3249
|
let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
|
|
3187
3250
|
return e2.enableSearch = !i2 || t2, e2;
|
|
@@ -3192,10 +3255,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
3192
3255
|
});
|
|
3193
3256
|
}
|
|
3194
3257
|
getReportParameters() {
|
|
3258
|
+
if (!this.parameterValues)
|
|
3259
|
+
return {};
|
|
3195
3260
|
const e2 = {}, t2 = this.getProcessedParameterValues();
|
|
3196
3261
|
for (let i2 in t2) {
|
|
3197
3262
|
const n2 = t2[i2], r2 = this.parameterValues[i2];
|
|
3198
|
-
n2 && n2.availableValues ? n2.multivalue ? e2[i2] =
|
|
3263
|
+
n2 && n2.availableValues ? n2.multivalue ? e2[i2] = _e(n2, r2, i2) : e2[i2] = ze(n2, r2, i2) : e2[i2] = r2;
|
|
3199
3264
|
}
|
|
3200
3265
|
return e2;
|
|
3201
3266
|
}
|
|
@@ -3206,9 +3271,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3206
3271
|
return this.processedParameterValues;
|
|
3207
3272
|
}
|
|
3208
3273
|
getDocumentInfo(t2, i2) {
|
|
3209
|
-
return t2 && this.emit("beginLoadReport"), new Promise((n2,
|
|
3210
|
-
let o2 = () =>
|
|
3211
|
-
this.cancelLoad ?
|
|
3274
|
+
return t2 && this.emit("beginLoadReport"), new Promise((n2, r2) => {
|
|
3275
|
+
let o2 = () => s(this, void 0, void 0, function* () {
|
|
3276
|
+
this.cancelLoad ? r2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, i2).then((i3) => {
|
|
3212
3277
|
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));
|
|
3213
3278
|
}).catch((e2) => {
|
|
3214
3279
|
"InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
|
|
@@ -3333,13 +3398,17 @@ ${e3.text} (${e3.id})`;
|
|
|
3333
3398
|
constructor(e2, t2, i2) {
|
|
3334
3399
|
this.url = e2, this.username = t2, this.password = i2;
|
|
3335
3400
|
}
|
|
3336
|
-
}, e.
|
|
3401
|
+
}, e.ReportServerTokenSettings = class {
|
|
3402
|
+
constructor(e2, t2) {
|
|
3403
|
+
this.url = e2, this.getPersonalAccessToken = t2;
|
|
3404
|
+
}
|
|
3405
|
+
}, e.ReportSourceOptions = Ue, e.RequestError = v, e.SearchInfo = class {
|
|
3337
3406
|
constructor() {
|
|
3338
3407
|
this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
|
|
3339
3408
|
}
|
|
3340
|
-
}, e.SearchManager = class extends
|
|
3409
|
+
}, e.SearchManager = class extends H {
|
|
3341
3410
|
constructor(e2, t2) {
|
|
3342
|
-
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer =
|
|
3411
|
+
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = me(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
|
|
3343
3412
|
}
|
|
3344
3413
|
search(e2) {
|
|
3345
3414
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
|
@@ -3348,15 +3417,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3348
3417
|
this.isActive = false, this.clearColoredItems(), this.searchResults = [];
|
|
3349
3418
|
}
|
|
3350
3419
|
highlightSearchItem(t2) {
|
|
3351
|
-
t2 && (this.currentHighlightedElement && (
|
|
3420
|
+
t2 && (this.currentHighlightedElement && (re(this.currentHighlightedElement, Ze), ne(this.currentHighlightedElement, Ge)), 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));
|
|
3352
3421
|
}
|
|
3353
3422
|
navigateToPage(e2) {
|
|
3354
|
-
this.controller.navigateToPage(e2.page, new
|
|
3423
|
+
this.controller.navigateToPage(e2.page, new h(e2.id, "search"));
|
|
3355
3424
|
}
|
|
3356
3425
|
colorPageElements(e2) {
|
|
3357
3426
|
e2 && 0 !== e2.length && (e2.forEach((e3) => {
|
|
3358
|
-
let t2 =
|
|
3359
|
-
t2 && (
|
|
3427
|
+
let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
|
|
3428
|
+
t2 && (ne(t2, Ge), this.highlightedElements.push(t2));
|
|
3360
3429
|
}), this.highlightItem(this.pendingHighlightItem));
|
|
3361
3430
|
}
|
|
3362
3431
|
highlightItem(e2) {
|
|
@@ -3364,13 +3433,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3364
3433
|
let t2 = this.highlightedElements.find(function(t3) {
|
|
3365
3434
|
return t3.dataset.searchId === e2.id;
|
|
3366
3435
|
});
|
|
3367
|
-
t2 && (this.currentHighlightedElement = t2,
|
|
3436
|
+
t2 && (this.currentHighlightedElement = t2, re(t2, Ge), ne(t2, Ze));
|
|
3368
3437
|
}
|
|
3369
3438
|
}
|
|
3370
3439
|
clearColoredItems() {
|
|
3371
3440
|
this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
|
|
3372
|
-
|
|
3373
|
-
}), this.currentHighlightedElement &&
|
|
3441
|
+
re(e2, Ge);
|
|
3442
|
+
}), this.currentHighlightedElement && re(this.currentHighlightedElement, Ze), this.highlightedElements = [], this.currentHighlightedElement = null;
|
|
3374
3443
|
}
|
|
3375
3444
|
applySearchColors() {
|
|
3376
3445
|
this.isActive && this.colorPageElements(this.searchResults);
|
|
@@ -3384,137 +3453,130 @@ ${e3.text} (${e3.id})`;
|
|
|
3384
3453
|
}
|
|
3385
3454
|
}, e.ServiceClient = class {
|
|
3386
3455
|
constructor(e2) {
|
|
3387
|
-
this.
|
|
3456
|
+
this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
|
|
3457
|
+
}
|
|
3458
|
+
getConnectionConfig(e2) {
|
|
3459
|
+
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new R(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new E(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new E("", () => Promise.resolve(e2.serverShareToken)) : new T(e2.serviceUrl);
|
|
3460
|
+
}
|
|
3461
|
+
getAuthStrategy(t2) {
|
|
3462
|
+
switch (t2.authType) {
|
|
3463
|
+
case e.AuthType.None:
|
|
3464
|
+
return new S();
|
|
3465
|
+
case e.AuthType.Basic:
|
|
3466
|
+
return new I(t2);
|
|
3467
|
+
case e.AuthType.PersonalToken:
|
|
3468
|
+
return new b(t2);
|
|
3469
|
+
default:
|
|
3470
|
+
return new S();
|
|
3471
|
+
}
|
|
3388
3472
|
}
|
|
3389
3473
|
validateClientID(e2) {
|
|
3390
3474
|
if (!e2)
|
|
3391
3475
|
throw "Invalid ClientId";
|
|
3392
3476
|
}
|
|
3393
3477
|
authenticatedGet(e2) {
|
|
3394
|
-
return this.login().then(
|
|
3395
|
-
return
|
|
3396
|
-
|
|
3397
|
-
}(e2, t2);
|
|
3398
|
-
});
|
|
3478
|
+
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) {
|
|
3479
|
+
return fetch(e3, { headers: P(t3) }).then(C);
|
|
3480
|
+
}(e2, t2.access_token || t2.accessToken));
|
|
3399
3481
|
}
|
|
3400
3482
|
authenticatedPost(e2, t2) {
|
|
3401
|
-
return this.login().then(
|
|
3402
|
-
return g(e2, t2, i2);
|
|
3403
|
-
});
|
|
3483
|
+
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)) : y(e2, t2, i2.access_token || i2.accessToken));
|
|
3404
3484
|
}
|
|
3405
3485
|
authenticatedDelete(e2) {
|
|
3406
|
-
return this.login().then(
|
|
3407
|
-
return
|
|
3408
|
-
|
|
3409
|
-
}(e2, t2);
|
|
3410
|
-
});
|
|
3486
|
+
return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
|
|
3487
|
+
return fetch(e3, { method: "DELETE", headers: P(t3) }).then(C);
|
|
3488
|
+
}(e2, t2.access_token || t2.accessToken));
|
|
3411
3489
|
}
|
|
3412
3490
|
login() {
|
|
3413
|
-
return this.loginPromise || (this.loginPromise = this.
|
|
3414
|
-
}
|
|
3415
|
-
createLoginPromise() {
|
|
3416
|
-
let e2 = this.options.loginInfo;
|
|
3417
|
-
if (e2 && e2.url && (e2.username || e2.password)) {
|
|
3418
|
-
let t2 = `grant_type=password&username=${encodeURIComponent((null == e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null == e2 ? void 0 : e2.password) || "")}`;
|
|
3419
|
-
return g(e2.url, t2, "", true).then((e3) => e3.access_token);
|
|
3420
|
-
}
|
|
3421
|
-
return Promise.resolve("");
|
|
3491
|
+
return this.loginPromise || (this.loginPromise = this.authStrategy.authenticatePromise(false, null)), this.loginPromise;
|
|
3422
3492
|
}
|
|
3423
3493
|
get(e2) {
|
|
3424
3494
|
return fetch(e2).then((e3) => e3.text());
|
|
3425
3495
|
}
|
|
3426
3496
|
setAccessToken(e2) {
|
|
3427
|
-
this.loginPromise = Promise.resolve(e2);
|
|
3497
|
+
this.loginPromise = Promise.resolve({ accessToken: e2 });
|
|
3428
3498
|
}
|
|
3429
3499
|
registerClient() {
|
|
3430
|
-
return this.authenticatedPost(`${this.
|
|
3500
|
+
return this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients`, { timeStamp: Date.now() }).then((e2) => e2.clientId);
|
|
3431
3501
|
}
|
|
3432
3502
|
unregisterClient(e2) {
|
|
3433
|
-
return this.validateClientID(e2), this.authenticatedDelete(`${this.
|
|
3503
|
+
return this.validateClientID(e2), this.authenticatedDelete(`${this.connectionConfig.serviceUrl}/clients/${e2}`);
|
|
3434
3504
|
}
|
|
3435
3505
|
getParameters(e2, t2, i2) {
|
|
3436
|
-
return this.validateClientID(e2), this.authenticatedPost(`${this.
|
|
3506
|
+
return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/parameters`, { report: t2, parameterValues: i2 || {} }).then((e3) => e3);
|
|
3437
3507
|
}
|
|
3438
3508
|
createReportInstance(e2, t2, i2) {
|
|
3439
|
-
return this.validateClientID(e2), this.authenticatedPost(`${this.
|
|
3509
|
+
return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances`, { report: t2, parameterValues: i2 }).then((e3) => e3.instanceId);
|
|
3440
3510
|
}
|
|
3441
3511
|
deleteReportInstance(e2, t2) {
|
|
3442
|
-
return this.validateClientID(e2), this.authenticatedDelete(`${this.
|
|
3512
|
+
return this.validateClientID(e2), this.authenticatedDelete(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}`);
|
|
3443
3513
|
}
|
|
3444
3514
|
createReportDocument(e2, t2, i2, n2, r2, s2, o2) {
|
|
3445
|
-
return this.validateClientID(e2), n2.BasePath = this.
|
|
3515
|
+
return this.validateClientID(e2), n2.BasePath = this.connectionConfig.serviceUrl, this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents`, { format: i2, deviceInfo: n2, useCache: r2, baseDocumentID: s2, actionID: o2 }).then((e3) => e3.documentId);
|
|
3446
3516
|
}
|
|
3447
3517
|
sendDocument(e2, t2, i2, n2) {
|
|
3448
|
-
return this.validateClientID(e2), this.authenticatedPost(`${this.
|
|
3518
|
+
return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/send`, n2);
|
|
3449
3519
|
}
|
|
3450
3520
|
deleteReportDocument(e2, t2, i2) {
|
|
3451
|
-
return this.validateClientID(e2), this.authenticatedDelete(`${this.
|
|
3521
|
+
return this.validateClientID(e2), this.authenticatedDelete(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}`);
|
|
3452
3522
|
}
|
|
3453
3523
|
getDocumentUrl(e2, t2, i2) {
|
|
3454
|
-
return `${this.
|
|
3524
|
+
return `${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}`;
|
|
3455
3525
|
}
|
|
3456
3526
|
getDocumentInfo(e2, t2, i2) {
|
|
3457
|
-
return this.validateClientID(e2), this.authenticatedGet(`${this.
|
|
3527
|
+
return this.validateClientID(e2), this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/info`).then((e3) => e3);
|
|
3458
3528
|
}
|
|
3459
3529
|
getPage(e2, t2, i2, n2) {
|
|
3460
|
-
return this.validateClientID(e2), this.authenticatedGet(`${this.
|
|
3530
|
+
return this.validateClientID(e2), this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/pages/${n2}`).then((e3) => {
|
|
3461
3531
|
let t3 = e3;
|
|
3462
3532
|
return t3.pageActions = JSON.parse(e3.pageActions), t3;
|
|
3463
3533
|
});
|
|
3464
3534
|
}
|
|
3465
3535
|
getDocumentFormats() {
|
|
3466
|
-
return this.authenticatedGet(`${this.
|
|
3536
|
+
return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/formats`).then((e2) => e2 || []);
|
|
3467
3537
|
}
|
|
3468
3538
|
getServiceVersion() {
|
|
3469
|
-
return this.authenticatedGet(`${this.
|
|
3539
|
+
return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/version`).then((e2) => e2.toString());
|
|
3470
3540
|
}
|
|
3471
3541
|
getServiceConfiguration() {
|
|
3472
|
-
return this.authenticatedGet(`${this.
|
|
3542
|
+
return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/configuration`).then((e2) => e2);
|
|
3473
3543
|
}
|
|
3474
3544
|
getResource(e2, t2, i2, n2) {
|
|
3475
|
-
return this.validateClientID(e2), this.authenticatedGet(`${this.
|
|
3545
|
+
return this.validateClientID(e2), this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/resources/${n2}`);
|
|
3476
3546
|
}
|
|
3477
3547
|
getSearchResults(e2, t2, i2, n2) {
|
|
3478
|
-
return this.validateClientID(e2), this.authenticatedPost(`${this.
|
|
3548
|
+
return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/search`, n2).then(function(e3) {
|
|
3479
3549
|
return e3 || [];
|
|
3480
3550
|
});
|
|
3481
3551
|
}
|
|
3482
3552
|
createAIThread(e2, t2, i2, n2) {
|
|
3483
|
-
return this.validateClientID(e2), this.authenticatedPost(`${this.
|
|
3553
|
+
return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/ai`, { report: i2, parameterValues: n2 }).then((e3) => e3);
|
|
3484
3554
|
}
|
|
3485
3555
|
getAIResponse(e2, t2, i2, n2, r2) {
|
|
3486
|
-
return this.validateClientID(e2), this.authenticatedPost(`${this.
|
|
3556
|
+
return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/ai/${n2}/query`, { query: r2 }).then(function(e3) {
|
|
3487
3557
|
return e3 || "";
|
|
3488
3558
|
});
|
|
3489
3559
|
}
|
|
3490
3560
|
getServiceUrl() {
|
|
3491
|
-
return this.
|
|
3561
|
+
return this.connectionConfig.serviceUrl;
|
|
3492
3562
|
}
|
|
3493
3563
|
keepClientAlive(e2) {
|
|
3494
|
-
return this.authenticatedPost(`${this.
|
|
3564
|
+
return this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/keepAlive/${e2}`, {});
|
|
3495
3565
|
}
|
|
3496
3566
|
getClientsSessionTimeoutSeconds() {
|
|
3497
|
-
return this.authenticatedGet(`${this.
|
|
3567
|
+
return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/sessionTimeout`).then(function(e2) {
|
|
3498
3568
|
return e2.clientSessionTimeout;
|
|
3499
3569
|
});
|
|
3500
3570
|
}
|
|
3501
|
-
}, e.
|
|
3502
|
-
constructor(e2, t2, i2) {
|
|
3503
|
-
this.url = e2, this.username = t2, this.password = i2;
|
|
3504
|
-
}
|
|
3505
|
-
}, e.ServiceClientOptions = class {
|
|
3506
|
-
constructor(e2, t2 = null) {
|
|
3507
|
-
this.serviceUrl = "", this.serviceUrl = e2.replace(/\/+$/, ""), this.loginInfo = t2;
|
|
3508
|
-
}
|
|
3509
|
-
}, e.addClass = B, e.appendHtml = Y, e.createElement = H, e.debounce = re, e.each = de, e.escapeHtml = Z, e.findElement = te, e.getColorAlphaValue = Q, e.getElementAttributeValue = ie, e.getElementScrollParent = ne, e.getOffsetParent = j, e.hasClass = W, e.isArray = ue, e.isExceptionOfType = oe, e.isInternalServerError = he, e.isInvalidClientException = ae, e.isInvalidParameterException = le, e.isRgbColor = X, e.keepElementInView = function(e2) {
|
|
3571
|
+
}, e.TooltipEventArgs = f, e.addClass = ne, e.appendHtml = pe, e.createElement = ie, e.debounce = Pe, e.each = Te, e.escapeHtml = he, e.findElement = me, e.getColorAlphaValue = ue, e.getElementAttributeValue = fe, e.getElementScrollParent = ve, e.getOffsetParent = oe, e.hasClass = se, e.isArray = Ae, e.isExceptionOfType = ye, e.isInternalServerError = be, e.isInvalidClientException = Se, e.isInvalidParameterException = Ie, e.isRgbColor = de, e.keepElementInView = function(e2) {
|
|
3510
3572
|
if (!e2)
|
|
3511
3573
|
return;
|
|
3512
|
-
let t2 =
|
|
3574
|
+
let t2 = ve(e2);
|
|
3513
3575
|
if (!t2)
|
|
3514
3576
|
return;
|
|
3515
3577
|
let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
|
|
3516
3578
|
i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
|
|
3517
|
-
}, e.parseToLocalDate =
|
|
3579
|
+
}, e.parseToLocalDate = Me, e.prependHtml = ge, e.removeClass = re, e.reportSourcesAreEqual = function(e2) {
|
|
3518
3580
|
const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
|
|
3519
3581
|
if (t2 && i2 && t2.report === i2.report) {
|
|
3520
3582
|
let e3 = "";
|
|
@@ -3523,7 +3585,7 @@ ${e3.text} (${e3.id})`;
|
|
|
3523
3585
|
return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
|
|
3524
3586
|
}
|
|
3525
3587
|
return false;
|
|
3526
|
-
}, e.scaleElement =
|
|
3588
|
+
}, e.scaleElement = le, e.stringFormat = we, e.throttle = Ce, e.toPixel = ae, e.toRgbColor = ce, e.tryParseFloat = Ee, e.tryParseInt = Re, Object.defineProperty(e, "__esModule", { value: true });
|
|
3527
3589
|
});
|
|
3528
3590
|
})(dist, dist.exports);
|
|
3529
3591
|
var distExports = dist.exports;
|
|
@@ -4503,6 +4565,7 @@ ${e3.text} (${e3.id})`;
|
|
|
4503
4565
|
errorCreatingReportInstance: "Error creating report instance (Report = '{0}').",
|
|
4504
4566
|
errorCreatingReportDocument: "Error creating report document (Report = '{0}'; Format = '{1}').",
|
|
4505
4567
|
unableToGetReportParameters: "Unable to get report parameters.",
|
|
4568
|
+
errorUnauthorizedOrForbidden: "You don't have permission to access this report document.",
|
|
4506
4569
|
errorObtainingAuthenticationToken: "Error obtaining authentication token.",
|
|
4507
4570
|
clientExpired: "Click 'Refresh' to restore client session.",
|
|
4508
4571
|
promisesChainStopError: "Error shown. Throwing promises chain stop error.",
|
|
@@ -6538,7 +6601,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6538
6601
|
parameter.Error = stringResources.invalidParameter;
|
|
6539
6602
|
}
|
|
6540
6603
|
if (parameter.availableValues) {
|
|
6541
|
-
this.processedParameterValues[parameter.id] = { valueMember: parameter.value, displayMember: parameter.label, availableValues: parameter.availableValues, multivalue: parameter.multivalue };
|
|
6604
|
+
this.processedParameterValues[parameter.id] = { valueMember: parameter.value, displayMember: parameter.label, availableValues: parameter.availableValues, multivalue: parameter.multivalue, allowNull: parameter.allowNull };
|
|
6542
6605
|
} else {
|
|
6543
6606
|
this.processedParameterValues[parameter.id] = parameter.value;
|
|
6544
6607
|
}
|
|
@@ -8819,14 +8882,12 @@ ${e3.text} (${e3.id})`;
|
|
|
8819
8882
|
var history = {};
|
|
8820
8883
|
var commands = {};
|
|
8821
8884
|
var viewer = {};
|
|
8822
|
-
var serviceClientOptions = {};
|
|
8823
|
-
var reportServerUrl = "";
|
|
8824
8885
|
options.viewerSelector = "reportViewer-" + generateGuidString();
|
|
8825
8886
|
$placeholder.attr("data-selector", options.viewerSelector);
|
|
8826
8887
|
if (!validateOptions(options)) {
|
|
8827
8888
|
return;
|
|
8828
8889
|
}
|
|
8829
|
-
var version = "19.
|
|
8890
|
+
var version = "19.3.25.1119";
|
|
8830
8891
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
|
8831
8892
|
settings = new ReportViewerSettings(
|
|
8832
8893
|
persistanceKey,
|
|
@@ -8846,20 +8907,7 @@ ${e3.text} (${e3.id})`;
|
|
|
8846
8907
|
}
|
|
8847
8908
|
);
|
|
8848
8909
|
notificationService = new NotificationService();
|
|
8849
|
-
|
|
8850
|
-
reportServerUrl = rTrim(options.reportServer.url, "\\/");
|
|
8851
|
-
var serviceUrl = reportServerUrl + "/api/reports";
|
|
8852
|
-
var tokenUrl = reportServerUrl + "/Token";
|
|
8853
|
-
var loginInfo = new distExports.ServiceClientLoginInfo(
|
|
8854
|
-
tokenUrl,
|
|
8855
|
-
options.reportServer.username,
|
|
8856
|
-
options.reportServer.password
|
|
8857
|
-
);
|
|
8858
|
-
serviceClientOptions = new distExports.ServiceClientOptions(serviceUrl, loginInfo);
|
|
8859
|
-
} else {
|
|
8860
|
-
serviceClientOptions = new distExports.ServiceClientOptions(options.serviceUrl);
|
|
8861
|
-
}
|
|
8862
|
-
client = new distExports.ServiceClient(serviceClientOptions);
|
|
8910
|
+
client = new distExports.ServiceClient(options);
|
|
8863
8911
|
controller = new distExports.ReportController(
|
|
8864
8912
|
client,
|
|
8865
8913
|
new distExports.ReportControllerOptions(
|
|
@@ -8892,7 +8940,25 @@ ${e3.text} (${e3.id})`;
|
|
|
8892
8940
|
commands
|
|
8893
8941
|
});
|
|
8894
8942
|
viewer = {
|
|
8943
|
+
/**
|
|
8944
|
+
* String resources used by the viewer for localization and UI text.
|
|
8945
|
+
* Contains key-value pairs for all UI strings, supporting localization and customization.
|
|
8946
|
+
* @type {Object.<string, string>}
|
|
8947
|
+
*/
|
|
8895
8948
|
stringResources,
|
|
8949
|
+
/**
|
|
8950
|
+
* Refreshes the currently loaded report.
|
|
8951
|
+
* Forces the viewer to reload the report from the server. Optionally ignores the cache.
|
|
8952
|
+
* @function
|
|
8953
|
+
* @param {boolean} [ignoreCache=true] - If true, the report is reloaded from the server, bypassing any cached data.
|
|
8954
|
+
* @returns {ReportViewerInstance} Returns the viewer instance for chaining.
|
|
8955
|
+
* @example // Refresh the report, ignoring cache (default)
|
|
8956
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
8957
|
+
* viewer.refreshReport();
|
|
8958
|
+
* @example // Refresh the report, using cache if available
|
|
8959
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
8960
|
+
* viewer.refreshReport(false);
|
|
8961
|
+
*/
|
|
8896
8962
|
refreshReport: (ignoreCache) => {
|
|
8897
8963
|
if (arguments.length === 0) {
|
|
8898
8964
|
ignoreCache = true;
|
|
@@ -8900,6 +8966,26 @@ ${e3.text} (${e3.id})`;
|
|
|
8900
8966
|
controller.refreshReport(ignoreCache, "", true);
|
|
8901
8967
|
return viewer;
|
|
8902
8968
|
},
|
|
8969
|
+
/**
|
|
8970
|
+
* Gets or sets the report source for the viewer.
|
|
8971
|
+
* When called with an argument, sets the report source
|
|
8972
|
+
* When called without arguments, gets the current report source - report and parameters. The viewer's report source is updated dynamically as the users navigate between reports and change parameter values.
|
|
8973
|
+
* @function
|
|
8974
|
+
* @param {ReportSource|null} [rs] - The report source object to set, or null to clear. If omitted, acts as a getter.
|
|
8975
|
+
* @returns {ReportSource} Returns the viewer instance for chaining when setting, or the current report source when getting.
|
|
8976
|
+
* @example // Get the current report source
|
|
8977
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
8978
|
+
* var currentSource = viewer.reportSource();
|
|
8979
|
+
* @example // Set a new report source
|
|
8980
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
8981
|
+
* viewer.reportSource({
|
|
8982
|
+
* report: "MyReport",
|
|
8983
|
+
* parameters: { StartDate: "2024-01-01", EndDate: "2024-12-31" }
|
|
8984
|
+
* });
|
|
8985
|
+
* @example // Clear the report source
|
|
8986
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
8987
|
+
* viewer.reportSource(null);
|
|
8988
|
+
*/
|
|
8903
8989
|
reportSource: (rs) => {
|
|
8904
8990
|
if (rs || rs === null) {
|
|
8905
8991
|
controller.setReportSource(rs);
|
|
@@ -8908,10 +8994,31 @@ ${e3.text} (${e3.id})`;
|
|
|
8908
8994
|
}
|
|
8909
8995
|
return controller.getReportSource();
|
|
8910
8996
|
},
|
|
8997
|
+
/**
|
|
8998
|
+
* Clears the current reportSource from the viewer's internal state and its persisted session in the browser.
|
|
8999
|
+
* Called in order to force the viewer to respect the newly set reportSource on a server postback.
|
|
9000
|
+
* @function
|
|
9001
|
+
* @returns {ReportViewerInstance} Returns the viewer instance for chaining.
|
|
9002
|
+
* @example // Clear the report source and force the viewer to respect a new reportSource on postback
|
|
9003
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9004
|
+
* viewer.clearReportSource();
|
|
9005
|
+
*/
|
|
8911
9006
|
clearReportSource: () => {
|
|
8912
9007
|
controller.setReportSource(new distExports.ReportSourceOptions());
|
|
8913
9008
|
return viewer;
|
|
8914
9009
|
},
|
|
9010
|
+
/**
|
|
9011
|
+
* Gets or sets the view mode of the viewer (e.g., Interactive or Print Preview).
|
|
9012
|
+
* @function
|
|
9013
|
+
* @param {ViewModes} [vm] - The view mode to set. If omitted, returns the current view mode.
|
|
9014
|
+
* @returns {string} Returns the viewer instance for chaining when setting, or the current view mode string when getting.
|
|
9015
|
+
* @example // Get the current view mode
|
|
9016
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9017
|
+
* var mode = viewer.viewMode();
|
|
9018
|
+
* @example // Set the view mode to Print Preview
|
|
9019
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9020
|
+
* viewer.viewMode(telerikReportViewer.ViewModes.PRINT_PREVIEW);
|
|
9021
|
+
*/
|
|
8915
9022
|
viewMode: (vm) => {
|
|
8916
9023
|
if (vm) {
|
|
8917
9024
|
controller.setViewMode(viewModeMap[vm]);
|
|
@@ -8919,6 +9026,18 @@ ${e3.text} (${e3.id})`;
|
|
|
8919
9026
|
}
|
|
8920
9027
|
return viewModeReverseMap[controller.getViewMode()];
|
|
8921
9028
|
},
|
|
9029
|
+
/**
|
|
9030
|
+
* Gets or sets the page mode (e.g., Single Page or Continuous Scroll).
|
|
9031
|
+
* @function
|
|
9032
|
+
* @param {PageModes} [psm] - The page mode to set. If omitted, returns the current page mode.
|
|
9033
|
+
* @returns {string} Returns the viewer instance for chaining when setting, or the current page mode string when getting.
|
|
9034
|
+
* @example // Get the current page mode
|
|
9035
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9036
|
+
* var pageMode = viewer.pageMode();
|
|
9037
|
+
* @example // Set the page mode to Single Page
|
|
9038
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9039
|
+
* viewer.pageMode(telerikReportViewer.PageModes.SINGLE_PAGE);
|
|
9040
|
+
*/
|
|
8922
9041
|
pageMode: (psm) => {
|
|
8923
9042
|
if (psm) {
|
|
8924
9043
|
controller.setPageMode(pageModeMap[psm]);
|
|
@@ -8926,6 +9045,18 @@ ${e3.text} (${e3.id})`;
|
|
|
8926
9045
|
}
|
|
8927
9046
|
return pageModeReverseMap[controller.getPageMode()];
|
|
8928
9047
|
},
|
|
9048
|
+
/**
|
|
9049
|
+
* Gets or sets the print mode for the viewer.
|
|
9050
|
+
* @function
|
|
9051
|
+
* @param {PrintModes} [pm] - The print mode to set. If omitted, returns the current print mode.
|
|
9052
|
+
* @returns {string} Returns the viewer instance for chaining when setting, or the current print mode string when getting.
|
|
9053
|
+
* @example // Get the current print mode
|
|
9054
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9055
|
+
* var printMode = viewer.printMode();
|
|
9056
|
+
* @example // Set the print mode to Force PDF File
|
|
9057
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9058
|
+
* viewer.printMode(telerikReportViewer.PrintModes.FORCE_PDF_FILE);
|
|
9059
|
+
*/
|
|
8929
9060
|
printMode: (pm) => {
|
|
8930
9061
|
if (pm) {
|
|
8931
9062
|
controller.setPrintMode(printModeMap[pm]);
|
|
@@ -8933,6 +9064,20 @@ ${e3.text} (${e3.id})`;
|
|
|
8933
9064
|
}
|
|
8934
9065
|
return printModeReverseMap[controller.getPrintMode()];
|
|
8935
9066
|
},
|
|
9067
|
+
/**
|
|
9068
|
+
* Gets or sets the scale and scale mode for the viewer.
|
|
9069
|
+
* @function
|
|
9070
|
+
* @param {Object} [args] - The scale settings to apply. Should contain 'scale' (number) and 'scaleMode' (string).
|
|
9071
|
+
* @param {number} [args.scale] - The zoom scale (e.g., 1.0 for 100%).
|
|
9072
|
+
* @param {ScaleModes} [args.scaleMode] - The scale mode (e.g., 'FIT_PAGE', 'FIT_PAGE_WIDTH', 'SPECIFIC').
|
|
9073
|
+
* @returns {Object} Returns the viewer instance for chaining when setting, or an object with current scale and scaleMode when getting.
|
|
9074
|
+
* @example // Get the current scale and scale mode
|
|
9075
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9076
|
+
* var scaleInfo = viewer.scale();
|
|
9077
|
+
* @example // Set scale to 1.2 and scale mode to FIT_PAGE_WIDTH
|
|
9078
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9079
|
+
* viewer.scale({ scale: 1.2, scaleMode: telerikReportViewer.ScaleModes.FIT_PAGE_WIDTH });
|
|
9080
|
+
*/
|
|
8936
9081
|
scale: (args) => {
|
|
8937
9082
|
if (args) {
|
|
8938
9083
|
controller.setScale(args.scale);
|
|
@@ -8944,33 +9089,135 @@ ${e3.text} (${e3.id})`;
|
|
|
8944
9089
|
scaleMode: scaleModeReverseMap[controller.getScaleMode()]
|
|
8945
9090
|
};
|
|
8946
9091
|
},
|
|
9092
|
+
/**
|
|
9093
|
+
* Gets the viewer’s current page that is displayed.
|
|
9094
|
+
* @function
|
|
9095
|
+
* @returns {number} The current page number (1-based).
|
|
9096
|
+
* @example // Get the current page number
|
|
9097
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9098
|
+
* var page = viewer.currentPage();
|
|
9099
|
+
*/
|
|
8947
9100
|
currentPage: () => {
|
|
8948
9101
|
return controller.getCurrentPageNumber();
|
|
8949
9102
|
},
|
|
9103
|
+
/**
|
|
9104
|
+
* Gets the total page count of the viewer’s currently displayed report.
|
|
9105
|
+
* @function
|
|
9106
|
+
* @returns {number} The total page count.
|
|
9107
|
+
* @example // Get the total number of pages in the current report
|
|
9108
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9109
|
+
* var totalPages = viewer.pageCount();
|
|
9110
|
+
*/
|
|
8950
9111
|
pageCount: () => {
|
|
8951
9112
|
return controller.getPageCount();
|
|
8952
9113
|
},
|
|
9114
|
+
/**
|
|
9115
|
+
* Shows or hides the parameters area in the viewer UI.
|
|
9116
|
+
* @function
|
|
9117
|
+
* @param {boolean} visible - True to show, false to hide the parameters area.
|
|
9118
|
+
* @returns {void}
|
|
9119
|
+
* @example // Show the parameters area
|
|
9120
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9121
|
+
* viewer.parametersAreaVisible(true);
|
|
9122
|
+
* @example // Hide the parameters area
|
|
9123
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9124
|
+
* viewer.parametersAreaVisible(false);
|
|
9125
|
+
*/
|
|
8953
9126
|
parametersAreaVisible: (visible) => {
|
|
8954
9127
|
notificationService.setParametersAreaVisible({ visible });
|
|
8955
9128
|
},
|
|
9129
|
+
/**
|
|
9130
|
+
* Returns an object with properties, the names of which are the report parameters’ IDs, and values - the report parameters’ values. The values of multivalue parameters include their display and value members.
|
|
9131
|
+
* @function
|
|
9132
|
+
* @returns {Array<Object>} An array of report parameter objects.
|
|
9133
|
+
* @example // Get all report parameters and log them
|
|
9134
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9135
|
+
* var parameters = viewer.getReportParameters();
|
|
9136
|
+
* console.log(parameters);
|
|
9137
|
+
*/
|
|
8956
9138
|
getReportParameters: () => {
|
|
8957
9139
|
return controller.getReportParameters();
|
|
8958
9140
|
},
|
|
9141
|
+
/**
|
|
9142
|
+
* Returns whether auto-run is enabled for the report (i.e., whether the report runs automatically when parameters change).
|
|
9143
|
+
* @function
|
|
9144
|
+
* @returns {boolean} True if auto-run is enabled, false otherwise.
|
|
9145
|
+
* @example // Check if auto-run is enabled for the report
|
|
9146
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9147
|
+
* var isReportAutoRun = viewer.isReportAutoRun();
|
|
9148
|
+
*/
|
|
8959
9149
|
isReportAutoRun: () => {
|
|
8960
9150
|
return controller.autoRunEnabled;
|
|
8961
9151
|
},
|
|
9152
|
+
/**
|
|
9153
|
+
* Sets the authentication token. Used for service requests.
|
|
9154
|
+
* @function
|
|
9155
|
+
* @param {string} [token] - The authentication token to set.
|
|
9156
|
+
* @returns {ReportViewerInstance} Returns the viewer instance for chaining.
|
|
9157
|
+
* @example // Set the authentication token for the viewer
|
|
9158
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9159
|
+
* viewer.authenticationToken("YOUR_AUTH_TOKEN");
|
|
9160
|
+
*/
|
|
8962
9161
|
authenticationToken: (token) => {
|
|
8963
9162
|
if (token) {
|
|
8964
9163
|
controller.setAuthenticationToken(token);
|
|
8965
9164
|
}
|
|
8966
9165
|
return viewer;
|
|
8967
9166
|
},
|
|
9167
|
+
/**
|
|
9168
|
+
* Binds event handlers to the specified event.
|
|
9169
|
+
* @function
|
|
9170
|
+
* @param {string} eventName - The name of the event to bind to (see Events constants).
|
|
9171
|
+
* @param {function} eventHandler - The handler function to invoke when the event occurs.
|
|
9172
|
+
* @returns {void}
|
|
9173
|
+
* @example // Bind to the 'pageReady' event
|
|
9174
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9175
|
+
* viewer.bind(telerikReportViewer.Events.PAGE_READY, function(e, args) {
|
|
9176
|
+
* console.log("Page is ready!", args);
|
|
9177
|
+
* });
|
|
9178
|
+
* @example // Bind to the 'error' event
|
|
9179
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9180
|
+
* viewer.bind(telerikReportViewer.Events.ERROR, function(e, args) {
|
|
9181
|
+
* alert("An error occurred: " + args);
|
|
9182
|
+
* });
|
|
9183
|
+
*/
|
|
8968
9184
|
bind: (eventName, eventHandler) => {
|
|
8969
9185
|
eventBinder(eventName, eventHandler, true);
|
|
8970
9186
|
},
|
|
9187
|
+
/**
|
|
9188
|
+
* Unbinds an event handler from a viewer event.
|
|
9189
|
+
* @function
|
|
9190
|
+
* @param {string} eventName - The name of the event to unbind from.
|
|
9191
|
+
* @param {function} [eventHandler] - The handler function to remove. If omitted, all handlers for the event are removed.
|
|
9192
|
+
* @returns {void}
|
|
9193
|
+
* @example // Unbind all handlers from the 'error' event
|
|
9194
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9195
|
+
* viewer.unbind(telerikReportViewer.Events.ERROR);
|
|
9196
|
+
*/
|
|
8971
9197
|
unbind: (eventName, eventHandler) => {
|
|
8972
9198
|
eventBinder(eventName, eventHandler, false);
|
|
8973
9199
|
},
|
|
9200
|
+
/**
|
|
9201
|
+
* Gets or sets the accessibility key map for keyboard navigation.
|
|
9202
|
+
* Allows customization of keyboard shortcuts for accessibility features.
|
|
9203
|
+
* @function
|
|
9204
|
+
* @param {Object} [keyMap] - The key map object to set. If omitted, acts as a getter.
|
|
9205
|
+
* @returns {Object} Returns the viewer instance for chaining when setting, the current key map when getting, or undefined if accessibility is not enabled.
|
|
9206
|
+
* @example // Get the current accessibility key map
|
|
9207
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9208
|
+
* var keyMap = viewer.accessibilityKeyMap();
|
|
9209
|
+
*
|
|
9210
|
+
* @example // Set a custom accessibility key map
|
|
9211
|
+
* var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9212
|
+
* reportViewer.accessibilityKeyMap(
|
|
9213
|
+
* {
|
|
9214
|
+
* CONFIRM_KEY: 32,
|
|
9215
|
+
* CONTENT_AREA_KEY: 82, //R
|
|
9216
|
+
* DOCUMENT_MAP_AREA_KEY: 77, //M
|
|
9217
|
+
* MENU_AREA_KEY: 85, //U
|
|
9218
|
+
* PARAMETERS_AREA_KEY: 80 //P
|
|
9219
|
+
* });
|
|
9220
|
+
*/
|
|
8974
9221
|
accessibilityKeyMap: (keyMap) => {
|
|
8975
9222
|
if (accessibility) {
|
|
8976
9223
|
if (keyMap) {
|
|
@@ -8981,12 +9228,27 @@ ${e3.text} (${e3.id})`;
|
|
|
8981
9228
|
}
|
|
8982
9229
|
return void 0;
|
|
8983
9230
|
},
|
|
9231
|
+
/**
|
|
9232
|
+
* The command set for the viewer, providing programmatic access to built-in commands (e.g., navigation, export).
|
|
9233
|
+
* @type {ReportViewerCommands}
|
|
9234
|
+
*/
|
|
8984
9235
|
commands,
|
|
9236
|
+
/**
|
|
9237
|
+
* Disposes the viewer instance, cleaning up resources and event handlers.
|
|
9238
|
+
* After calling this method, the viewer instance should not be used.
|
|
9239
|
+
* Stops sending keep alive requests to the server, if keep client alive was enabled.
|
|
9240
|
+
* @function
|
|
9241
|
+
* @returns {void}
|
|
9242
|
+
* @example
|
|
9243
|
+
* // Dispose the viewer instance when it is no longer needed
|
|
9244
|
+
* var viewer = $("#reportViewer1").data("telerik_ReportViewer");
|
|
9245
|
+
* viewer.dispose();
|
|
9246
|
+
*/
|
|
8985
9247
|
dispose: () => {
|
|
8986
9248
|
clearTooltipTimeout();
|
|
8987
9249
|
controller.disposeSentinel();
|
|
8988
9250
|
controller.destroy();
|
|
8989
|
-
if (perspectiveManager) {
|
|
9251
|
+
if (perspectiveManager && typeof perspectiveManager.dispose === "function") {
|
|
8990
9252
|
perspectiveManager.dispose();
|
|
8991
9253
|
}
|
|
8992
9254
|
}
|
|
@@ -9122,6 +9384,9 @@ ${e3.text} (${e3.id})`;
|
|
|
9122
9384
|
function enableTouch(dom2) {
|
|
9123
9385
|
var allowSwipeLeft;
|
|
9124
9386
|
var allowSwipeRight;
|
|
9387
|
+
function isMobileDevice() {
|
|
9388
|
+
return /Mobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|Windows Phone/i.test(navigator.userAgent) || /Macintosh/i.test(navigator.userAgent) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0;
|
|
9389
|
+
}
|
|
9125
9390
|
TouchBehavior(
|
|
9126
9391
|
dom2,
|
|
9127
9392
|
{
|
|
@@ -9144,7 +9409,9 @@ ${e3.text} (${e3.id})`;
|
|
|
9144
9409
|
controller.setScale(scale * f);
|
|
9145
9410
|
},
|
|
9146
9411
|
doubletap: function() {
|
|
9147
|
-
|
|
9412
|
+
if (isMobileDevice()) {
|
|
9413
|
+
commands.toggleZoomMode.exec();
|
|
9414
|
+
}
|
|
9148
9415
|
},
|
|
9149
9416
|
touchstart: function() {
|
|
9150
9417
|
var el = dom2.find(".trv-page-wrapper")[0];
|
|
@@ -9273,8 +9540,8 @@ ${e3.text} (${e3.id})`;
|
|
|
9273
9540
|
settings.setScale(scale);
|
|
9274
9541
|
}).on("clientIdChanged", (clientId) => {
|
|
9275
9542
|
settings.setClientId(clientId);
|
|
9276
|
-
}).on("currentPageChanged", (
|
|
9277
|
-
settings.setPageNumber(page);
|
|
9543
|
+
}).on("currentPageChanged", (args) => {
|
|
9544
|
+
settings.setPageNumber(args.page);
|
|
9278
9545
|
}).on("reportSourceChanged", (rs) => {
|
|
9279
9546
|
settings.setReportSource(rs);
|
|
9280
9547
|
});
|
|
@@ -9347,10 +9614,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9347
9614
|
notificationService.setDocumentMapVisible({ visible: false });
|
|
9348
9615
|
}
|
|
9349
9616
|
}).on("navigateToReport", (args) => {
|
|
9350
|
-
controller.setReportSource(
|
|
9351
|
-
report: args.Report,
|
|
9352
|
-
parameters: args.Parameters
|
|
9353
|
-
});
|
|
9617
|
+
controller.setReportSource(args);
|
|
9354
9618
|
controller.refreshReport(false);
|
|
9355
9619
|
}).on("toolTipOpening", (args) => {
|
|
9356
9620
|
showTooltip(args);
|