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