@progress/telerik-react-report-viewer 28.25.1111 → 28.26.121
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/index.js +1 -1
- package/dist/dependencies/telerikReportViewer.js +424 -431
- package/dist/dependencies/telerikReportViewer.kendo.min.js +1 -1
- package/dist/dependencies/telerikReportViewerTemplate.html +4 -4
- package/dist/es/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $ = require("jquery");
|
|
2
2
|
/*
|
|
3
|
-
* TelerikReporting v19.3.
|
|
4
|
-
* Copyright
|
|
3
|
+
* TelerikReporting v19.3.26.121 (https://www.telerik.com/products/reporting.aspx)
|
|
4
|
+
* Copyright 2026 Progress Software EAD. All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Telerik Reporting commercial licenses may be obtained at
|
|
7
7
|
* https://www.telerik.com/purchase/license-agreement/reporting.aspx
|
|
@@ -251,20 +251,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
251
251
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
252
252
|
const NODE_TYPE = {
|
|
253
253
|
element: 1,
|
|
254
|
-
attribute: 2,
|
|
255
254
|
text: 3,
|
|
256
|
-
cdataSection: 4,
|
|
257
|
-
entityReference: 5,
|
|
258
|
-
// Deprecated
|
|
259
|
-
entityNode: 6,
|
|
260
255
|
// Deprecated
|
|
261
256
|
progressingInstruction: 7,
|
|
262
257
|
comment: 8,
|
|
263
|
-
document: 9
|
|
264
|
-
documentType: 10,
|
|
265
|
-
documentFragment: 11,
|
|
266
|
-
notation: 12 // Deprecated
|
|
267
|
-
};
|
|
258
|
+
document: 9};
|
|
268
259
|
const getGlobal = function getGlobal() {
|
|
269
260
|
return typeof window === 'undefined' ? null : window;
|
|
270
261
|
};
|
|
@@ -1370,96 +1361,91 @@ var telerikReportViewer = (function (exports) {
|
|
|
1370
1361
|
return purify_cjs;
|
|
1371
1362
|
}
|
|
1372
1363
|
|
|
1373
|
-
|
|
1374
|
-
(function(module, exports) {
|
|
1364
|
+
(function(module, exports$1) {
|
|
1375
1365
|
!function(e, t) {
|
|
1376
|
-
t(exports, requirePurify_cjs()) ;
|
|
1366
|
+
t(exports$1, requirePurify_cjs()) ;
|
|
1377
1367
|
}(commonjsGlobal, function(e, t) {
|
|
1378
|
-
function i(e2) {
|
|
1379
|
-
return
|
|
1380
|
-
|
|
1381
|
-
var n, r = i(t);
|
|
1382
|
-
function s(e2, t2, i2, n2) {
|
|
1383
|
-
return new (i2 || (i2 = Promise))(function(r2, s2) {
|
|
1384
|
-
function o2(e3) {
|
|
1368
|
+
function i(e2, t2, i2, n2) {
|
|
1369
|
+
return new (i2 || (i2 = Promise))(function(t3, r2) {
|
|
1370
|
+
function s2(e3) {
|
|
1385
1371
|
try {
|
|
1386
|
-
|
|
1372
|
+
a2(n2.next(e3));
|
|
1387
1373
|
} catch (e4) {
|
|
1388
|
-
|
|
1374
|
+
r2(e4);
|
|
1389
1375
|
}
|
|
1390
1376
|
}
|
|
1391
|
-
function
|
|
1377
|
+
function o2(e3) {
|
|
1392
1378
|
try {
|
|
1393
|
-
|
|
1379
|
+
a2(n2.throw(e3));
|
|
1394
1380
|
} catch (e4) {
|
|
1395
|
-
|
|
1381
|
+
r2(e4);
|
|
1396
1382
|
}
|
|
1397
1383
|
}
|
|
1398
|
-
function
|
|
1399
|
-
var
|
|
1400
|
-
e3.done ?
|
|
1401
|
-
e4(
|
|
1402
|
-
})).then(
|
|
1384
|
+
function a2(e3) {
|
|
1385
|
+
var n3;
|
|
1386
|
+
e3.done ? t3(e3.value) : (n3 = e3.value, n3 instanceof i2 ? n3 : new i2(function(e4) {
|
|
1387
|
+
e4(n3);
|
|
1388
|
+
})).then(s2, o2);
|
|
1403
1389
|
}
|
|
1404
|
-
|
|
1390
|
+
a2((n2 = n2.apply(e2, [])).next());
|
|
1405
1391
|
});
|
|
1406
1392
|
}
|
|
1407
|
-
class
|
|
1393
|
+
class n {
|
|
1408
1394
|
constructor() {
|
|
1409
1395
|
this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
|
|
1410
1396
|
}
|
|
1411
1397
|
}
|
|
1412
|
-
class
|
|
1398
|
+
class r {
|
|
1413
1399
|
constructor() {
|
|
1414
1400
|
this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
|
|
1415
1401
|
}
|
|
1416
1402
|
}
|
|
1417
|
-
class
|
|
1403
|
+
class s {
|
|
1418
1404
|
constructor(e2, t2) {
|
|
1419
1405
|
this.cancel = false, this.element = e2, this.action = t2;
|
|
1420
1406
|
}
|
|
1421
1407
|
}
|
|
1422
|
-
class
|
|
1408
|
+
class o {
|
|
1423
1409
|
constructor(e2, t2) {
|
|
1424
1410
|
this.id = "", this.type = "", this.id = e2, this.type = t2;
|
|
1425
1411
|
}
|
|
1426
1412
|
}
|
|
1427
|
-
class
|
|
1413
|
+
class a {
|
|
1428
1414
|
constructor(e2, t2) {
|
|
1429
1415
|
this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
|
|
1430
1416
|
}
|
|
1431
1417
|
}
|
|
1432
|
-
class
|
|
1418
|
+
class l {
|
|
1433
1419
|
constructor(e2, t2) {
|
|
1434
1420
|
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
1435
1421
|
}
|
|
1436
1422
|
}
|
|
1437
|
-
class
|
|
1423
|
+
class h {
|
|
1438
1424
|
constructor(e2, t2, i2) {
|
|
1439
1425
|
this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
|
|
1440
1426
|
}
|
|
1441
1427
|
}
|
|
1442
|
-
class
|
|
1428
|
+
class c {
|
|
1443
1429
|
constructor(e2) {
|
|
1444
1430
|
this.handled = false, this.deviceInfo = e2;
|
|
1445
1431
|
}
|
|
1446
1432
|
}
|
|
1447
|
-
class
|
|
1433
|
+
class d {
|
|
1448
1434
|
constructor(e2) {
|
|
1449
1435
|
this.handled = false, this.url = e2;
|
|
1450
1436
|
}
|
|
1451
1437
|
}
|
|
1452
|
-
class
|
|
1438
|
+
class u {
|
|
1453
1439
|
constructor(e2, t2) {
|
|
1454
1440
|
this.page = e2, this.reportDocumentId = t2;
|
|
1455
1441
|
}
|
|
1456
1442
|
}
|
|
1457
|
-
class
|
|
1443
|
+
class p {
|
|
1458
1444
|
constructor(e2, t2, i2, n2 = null) {
|
|
1459
1445
|
this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
|
|
1460
1446
|
}
|
|
1461
1447
|
}
|
|
1462
|
-
class
|
|
1448
|
+
class g {
|
|
1463
1449
|
constructor(e2, t2) {
|
|
1464
1450
|
this._responseText = e2, this._error = t2;
|
|
1465
1451
|
try {
|
|
@@ -1482,14 +1468,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1482
1468
|
return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
|
|
1483
1469
|
}
|
|
1484
1470
|
}
|
|
1485
|
-
function
|
|
1471
|
+
function m(e2, t2 = false, i2 = false) {
|
|
1486
1472
|
let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
|
|
1487
1473
|
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;
|
|
1488
1474
|
}
|
|
1489
|
-
function
|
|
1490
|
-
return
|
|
1475
|
+
function f(e2) {
|
|
1476
|
+
return i(this, 0, void 0, function* () {
|
|
1491
1477
|
if (!e2.ok) {
|
|
1492
|
-
let t2 = yield e2.text(), i2 = new
|
|
1478
|
+
let t2 = yield e2.text(), i2 = new g(t2, e2.statusText);
|
|
1493
1479
|
return Promise.reject(i2);
|
|
1494
1480
|
}
|
|
1495
1481
|
if (204 == e2.status)
|
|
@@ -1497,15 +1483,15 @@ var telerikReportViewer = (function (exports) {
|
|
|
1497
1483
|
return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
|
|
1498
1484
|
});
|
|
1499
1485
|
}
|
|
1500
|
-
function
|
|
1501
|
-
return fetch(e2, { method: "POST", headers:
|
|
1486
|
+
function v(e2, t2 = {}, i2 = "", n2 = false) {
|
|
1487
|
+
return fetch(e2, { method: "POST", headers: m(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(f);
|
|
1502
1488
|
}
|
|
1503
|
-
class
|
|
1489
|
+
class P {
|
|
1504
1490
|
authenticatePromise() {
|
|
1505
1491
|
return Promise.resolve("");
|
|
1506
1492
|
}
|
|
1507
1493
|
}
|
|
1508
|
-
class
|
|
1494
|
+
class C {
|
|
1509
1495
|
constructor(e2) {
|
|
1510
1496
|
this.connectionConfig = e2;
|
|
1511
1497
|
}
|
|
@@ -1513,59 +1499,60 @@ var telerikReportViewer = (function (exports) {
|
|
|
1513
1499
|
var e2, t2;
|
|
1514
1500
|
if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
|
|
1515
1501
|
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
|
|
1502
|
+
return v(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
|
|
1517
1503
|
}
|
|
1518
1504
|
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
1505
|
}
|
|
1520
1506
|
}
|
|
1521
|
-
class
|
|
1507
|
+
class y {
|
|
1522
1508
|
constructor(e2) {
|
|
1523
1509
|
this.connectionConfig = e2;
|
|
1524
1510
|
}
|
|
1525
1511
|
authenticatePromise(e2, t2) {
|
|
1526
|
-
return e2 ?
|
|
1512
|
+
return e2 ? v(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) => v(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
1513
|
}
|
|
1528
1514
|
}
|
|
1529
|
-
|
|
1530
|
-
|
|
1515
|
+
var S, I;
|
|
1516
|
+
e.AuthType = void 0, (S = e.AuthType || (e.AuthType = {}))[S.None = 0] = "None", S[S.Basic = 1] = "Basic", S[S.PersonalToken = 2] = "PersonalToken";
|
|
1517
|
+
class b {
|
|
1531
1518
|
constructor(e2) {
|
|
1532
1519
|
this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
|
|
1533
1520
|
}
|
|
1534
1521
|
}
|
|
1535
|
-
class
|
|
1522
|
+
class w extends b {
|
|
1536
1523
|
constructor(t2) {
|
|
1537
1524
|
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
|
|
1538
1525
|
}
|
|
1539
1526
|
}
|
|
1540
|
-
class
|
|
1527
|
+
class T extends b {
|
|
1541
1528
|
constructor(t2) {
|
|
1542
1529
|
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
|
|
1543
1530
|
}
|
|
1544
1531
|
}
|
|
1545
|
-
class
|
|
1532
|
+
class A extends T {
|
|
1546
1533
|
constructor(t2, i2, n2) {
|
|
1547
1534
|
super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
|
|
1548
1535
|
}
|
|
1549
1536
|
}
|
|
1550
|
-
class
|
|
1537
|
+
class R extends T {
|
|
1551
1538
|
constructor(t2, i2) {
|
|
1552
1539
|
super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
|
|
1553
1540
|
}
|
|
1554
1541
|
}
|
|
1555
|
-
function
|
|
1542
|
+
function E() {
|
|
1556
1543
|
}
|
|
1557
|
-
function
|
|
1558
|
-
|
|
1544
|
+
function M() {
|
|
1545
|
+
M.init.call(this);
|
|
1559
1546
|
}
|
|
1560
|
-
function
|
|
1561
|
-
return void 0 === e2._maxListeners ?
|
|
1547
|
+
function x(e2) {
|
|
1548
|
+
return void 0 === e2._maxListeners ? M.defaultMaxListeners : e2._maxListeners;
|
|
1562
1549
|
}
|
|
1563
1550
|
function k(e2, t2, i2, n2) {
|
|
1564
1551
|
var r2, s2, o2, a2;
|
|
1565
1552
|
if ("function" != typeof i2)
|
|
1566
1553
|
throw new TypeError('"listener" argument must be a function');
|
|
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
|
|
1568
|
-
if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 =
|
|
1554
|
+
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 E(), e2._eventsCount = 0), o2) {
|
|
1555
|
+
if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = x(e2)) && r2 > 0 && o2.length > r2) {
|
|
1569
1556
|
o2.warned = true;
|
|
1570
1557
|
var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1571
1558
|
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);
|
|
@@ -1574,7 +1561,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1574
1561
|
o2 = s2[t2] = i2, ++e2._eventsCount;
|
|
1575
1562
|
return e2;
|
|
1576
1563
|
}
|
|
1577
|
-
function
|
|
1564
|
+
function L(e2, t2, i2) {
|
|
1578
1565
|
var n2 = false;
|
|
1579
1566
|
function r2() {
|
|
1580
1567
|
e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
|
|
@@ -1592,20 +1579,20 @@ var telerikReportViewer = (function (exports) {
|
|
|
1592
1579
|
}
|
|
1593
1580
|
return 0;
|
|
1594
1581
|
}
|
|
1595
|
-
function
|
|
1582
|
+
function D(e2, t2) {
|
|
1596
1583
|
for (var i2 = new Array(t2); t2--; )
|
|
1597
1584
|
i2[t2] = e2[t2];
|
|
1598
1585
|
return i2;
|
|
1599
1586
|
}
|
|
1600
|
-
|
|
1601
|
-
this.domain = null,
|
|
1602
|
-
},
|
|
1587
|
+
E.prototype = /* @__PURE__ */ Object.create(null), M.EventEmitter = M, M.usingDomains = false, M.prototype.domain = void 0, M.prototype._events = void 0, M.prototype._maxListeners = void 0, M.defaultMaxListeners = 10, M.init = function() {
|
|
1588
|
+
this.domain = null, M.usingDomains && (!I.active || this instanceof I.Domain || (this.domain = I.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new E(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1589
|
+
}, M.prototype.setMaxListeners = function(e2) {
|
|
1603
1590
|
if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
|
|
1604
1591
|
throw new TypeError('"n" argument must be a positive number');
|
|
1605
1592
|
return this._maxListeners = e2, this;
|
|
1606
|
-
},
|
|
1607
|
-
return
|
|
1608
|
-
},
|
|
1593
|
+
}, M.prototype.getMaxListeners = function() {
|
|
1594
|
+
return x(this);
|
|
1595
|
+
}, M.prototype.emit = function(e2) {
|
|
1609
1596
|
var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
|
|
1610
1597
|
if (o2 = this._events)
|
|
1611
1598
|
l2 = l2 && null == o2.error;
|
|
@@ -1629,7 +1616,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1629
1616
|
if (t3)
|
|
1630
1617
|
e3.call(i3);
|
|
1631
1618
|
else
|
|
1632
|
-
for (var n3 = e3.length, r3 =
|
|
1619
|
+
for (var n3 = e3.length, r3 = D(e3, n3), s3 = 0; s3 < n3; ++s3)
|
|
1633
1620
|
r3[s3].call(i3);
|
|
1634
1621
|
}(i2, c2, this);
|
|
1635
1622
|
break;
|
|
@@ -1638,7 +1625,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1638
1625
|
if (t3)
|
|
1639
1626
|
e3.call(i3, n3);
|
|
1640
1627
|
else
|
|
1641
|
-
for (var r3 = e3.length, s3 =
|
|
1628
|
+
for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1642
1629
|
s3[o3].call(i3, n3);
|
|
1643
1630
|
}(i2, c2, this, arguments[1]);
|
|
1644
1631
|
break;
|
|
@@ -1647,7 +1634,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1647
1634
|
if (t3)
|
|
1648
1635
|
e3.call(i3, n3, r3);
|
|
1649
1636
|
else
|
|
1650
|
-
for (var s3 = e3.length, o3 =
|
|
1637
|
+
for (var s3 = e3.length, o3 = D(e3, s3), a3 = 0; a3 < s3; ++a3)
|
|
1651
1638
|
o3[a3].call(i3, n3, r3);
|
|
1652
1639
|
}(i2, c2, this, arguments[1], arguments[2]);
|
|
1653
1640
|
break;
|
|
@@ -1656,7 +1643,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1656
1643
|
if (t3)
|
|
1657
1644
|
e3.call(i3, n3, r3, s3);
|
|
1658
1645
|
else
|
|
1659
|
-
for (var o3 = e3.length, a3 =
|
|
1646
|
+
for (var o3 = e3.length, a3 = D(e3, o3), l3 = 0; l3 < o3; ++l3)
|
|
1660
1647
|
a3[l3].call(i3, n3, r3, s3);
|
|
1661
1648
|
}(i2, c2, this, arguments[1], arguments[2], arguments[3]);
|
|
1662
1649
|
break;
|
|
@@ -1667,24 +1654,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
1667
1654
|
if (t3)
|
|
1668
1655
|
e3.apply(i3, n3);
|
|
1669
1656
|
else
|
|
1670
|
-
for (var r3 = e3.length, s3 =
|
|
1657
|
+
for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1671
1658
|
s3[o3].apply(i3, n3);
|
|
1672
1659
|
}(i2, c2, this, r2);
|
|
1673
1660
|
}
|
|
1674
1661
|
return true;
|
|
1675
|
-
},
|
|
1662
|
+
}, M.prototype.addListener = function(e2, t2) {
|
|
1676
1663
|
return k(this, e2, t2, false);
|
|
1677
|
-
},
|
|
1664
|
+
}, M.prototype.on = M.prototype.addListener, M.prototype.prependListener = function(e2, t2) {
|
|
1678
1665
|
return k(this, e2, t2, true);
|
|
1679
|
-
},
|
|
1666
|
+
}, M.prototype.once = function(e2, t2) {
|
|
1680
1667
|
if ("function" != typeof t2)
|
|
1681
1668
|
throw new TypeError('"listener" argument must be a function');
|
|
1682
|
-
return this.on(e2,
|
|
1683
|
-
},
|
|
1669
|
+
return this.on(e2, L(this, e2, t2)), this;
|
|
1670
|
+
}, M.prototype.prependOnceListener = function(e2, t2) {
|
|
1684
1671
|
if ("function" != typeof t2)
|
|
1685
1672
|
throw new TypeError('"listener" argument must be a function');
|
|
1686
|
-
return this.prependListener(e2,
|
|
1687
|
-
},
|
|
1673
|
+
return this.prependListener(e2, L(this, e2, t2)), this;
|
|
1674
|
+
}, M.prototype.removeListener = function(e2, t2) {
|
|
1688
1675
|
var i2, n2, r2, s2, o2;
|
|
1689
1676
|
if ("function" != typeof t2)
|
|
1690
1677
|
throw new TypeError('"listener" argument must be a function');
|
|
@@ -1693,7 +1680,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1693
1680
|
if (!(i2 = n2[e2]))
|
|
1694
1681
|
return this;
|
|
1695
1682
|
if (i2 === t2 || i2.listener && i2.listener === t2)
|
|
1696
|
-
0 == --this._eventsCount ? this._events = new
|
|
1683
|
+
0 == --this._eventsCount ? this._events = new E() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
|
|
1697
1684
|
else if ("function" != typeof i2) {
|
|
1698
1685
|
for (r2 = -1, s2 = i2.length; s2-- > 0; )
|
|
1699
1686
|
if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
|
|
@@ -1704,7 +1691,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1704
1691
|
return this;
|
|
1705
1692
|
if (1 === i2.length) {
|
|
1706
1693
|
if (i2[0] = void 0, 0 == --this._eventsCount)
|
|
1707
|
-
return this._events = new
|
|
1694
|
+
return this._events = new E(), this;
|
|
1708
1695
|
delete n2[e2];
|
|
1709
1696
|
} else
|
|
1710
1697
|
!function(e3, t3) {
|
|
@@ -1715,18 +1702,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
1715
1702
|
n2.removeListener && this.emit("removeListener", e2, o2 || t2);
|
|
1716
1703
|
}
|
|
1717
1704
|
return this;
|
|
1718
|
-
},
|
|
1705
|
+
}, M.prototype.off = function(e2, t2) {
|
|
1719
1706
|
return this.removeListener(e2, t2);
|
|
1720
|
-
},
|
|
1707
|
+
}, M.prototype.removeAllListeners = function(e2) {
|
|
1721
1708
|
var t2, i2;
|
|
1722
1709
|
if (!(i2 = this._events))
|
|
1723
1710
|
return this;
|
|
1724
1711
|
if (!i2.removeListener)
|
|
1725
|
-
return 0 === arguments.length ? (this._events = new
|
|
1712
|
+
return 0 === arguments.length ? (this._events = new E(), this._eventsCount = 0) : i2[e2] && (0 == --this._eventsCount ? this._events = new E() : delete i2[e2]), this;
|
|
1726
1713
|
if (0 === arguments.length) {
|
|
1727
1714
|
for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
|
|
1728
1715
|
"removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
|
|
1729
|
-
return this.removeAllListeners("removeListener"), this._events = new
|
|
1716
|
+
return this.removeAllListeners("removeListener"), this._events = new E(), this._eventsCount = 0, this;
|
|
1730
1717
|
}
|
|
1731
1718
|
if ("function" == typeof (t2 = i2[e2]))
|
|
1732
1719
|
this.removeListener(e2, t2);
|
|
@@ -1735,34 +1722,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
1735
1722
|
this.removeListener(e2, t2[t2.length - 1]);
|
|
1736
1723
|
} while (t2[0]);
|
|
1737
1724
|
return this;
|
|
1738
|
-
},
|
|
1725
|
+
}, M.prototype.listeners = function(e2) {
|
|
1739
1726
|
var t2, i2 = this._events;
|
|
1740
1727
|
return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
|
|
1741
1728
|
for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
|
|
1742
1729
|
t3[i3] = e3[i3].listener || e3[i3];
|
|
1743
1730
|
return t3;
|
|
1744
1731
|
}(t2) : [];
|
|
1745
|
-
},
|
|
1732
|
+
}, M.listenerCount = function(e2, t2) {
|
|
1746
1733
|
return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
|
|
1747
|
-
},
|
|
1734
|
+
}, M.prototype.listenerCount = N, M.prototype.eventNames = function() {
|
|
1748
1735
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
1749
1736
|
};
|
|
1750
|
-
const
|
|
1751
|
-
function
|
|
1737
|
+
const F = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
|
|
1738
|
+
function O(e2) {
|
|
1752
1739
|
if ("string" != typeof e2 && "symbol" != typeof e2)
|
|
1753
1740
|
throw new TypeError("type is not type of string or symbol!");
|
|
1754
1741
|
}
|
|
1755
|
-
function
|
|
1742
|
+
function V(e2) {
|
|
1756
1743
|
if ("function" != typeof e2)
|
|
1757
1744
|
throw new TypeError("fn is not type of Function!");
|
|
1758
1745
|
}
|
|
1759
|
-
function
|
|
1760
|
-
return { [
|
|
1746
|
+
function z(e2) {
|
|
1747
|
+
return { [F]: "always", fn: e2 };
|
|
1761
1748
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return { [
|
|
1749
|
+
function _(e2) {
|
|
1750
|
+
return { [F]: "once", fn: e2 };
|
|
1764
1751
|
}
|
|
1765
|
-
class
|
|
1752
|
+
class U {
|
|
1766
1753
|
constructor() {
|
|
1767
1754
|
this._events = {};
|
|
1768
1755
|
}
|
|
@@ -1770,25 +1757,25 @@ var telerikReportViewer = (function (exports) {
|
|
|
1770
1757
|
return this.on(e2, t2);
|
|
1771
1758
|
}
|
|
1772
1759
|
on(e2, t2) {
|
|
1773
|
-
return
|
|
1760
|
+
return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(z(t2)), this;
|
|
1774
1761
|
}
|
|
1775
1762
|
prependListener(e2, t2) {
|
|
1776
1763
|
return this.prepend(e2, t2);
|
|
1777
1764
|
}
|
|
1778
1765
|
prepend(e2, t2) {
|
|
1779
|
-
return
|
|
1766
|
+
return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(z(t2)), this;
|
|
1780
1767
|
}
|
|
1781
1768
|
prependOnceListener(e2, t2) {
|
|
1782
1769
|
return this.prependOnce(e2, t2);
|
|
1783
1770
|
}
|
|
1784
1771
|
prependOnce(e2, t2) {
|
|
1785
|
-
return
|
|
1772
|
+
return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
|
|
1786
1773
|
}
|
|
1787
1774
|
listeners(e2) {
|
|
1788
1775
|
return (this._events[e2] || []).map((e3) => e3.fn);
|
|
1789
1776
|
}
|
|
1790
1777
|
once(e2, t2) {
|
|
1791
|
-
return
|
|
1778
|
+
return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
|
|
1792
1779
|
}
|
|
1793
1780
|
removeAllListeners() {
|
|
1794
1781
|
this._events = {};
|
|
@@ -1797,7 +1784,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1797
1784
|
return this.removeListener(e2, t2);
|
|
1798
1785
|
}
|
|
1799
1786
|
removeListener(e2, t2) {
|
|
1800
|
-
|
|
1787
|
+
O(e2);
|
|
1801
1788
|
const i2 = this.listeners(e2);
|
|
1802
1789
|
if ("function" == typeof t2) {
|
|
1803
1790
|
let n2 = -1, r2 = false;
|
|
@@ -1808,13 +1795,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
1808
1795
|
return delete this._events[e2];
|
|
1809
1796
|
}
|
|
1810
1797
|
emit(e2, ...t2) {
|
|
1811
|
-
return
|
|
1812
|
-
|
|
1798
|
+
return i(this, 0, void 0, function* () {
|
|
1799
|
+
O(e2);
|
|
1813
1800
|
const i2 = this.listeners(e2), n2 = [];
|
|
1814
1801
|
if (i2 && i2.length) {
|
|
1815
1802
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1816
1803
|
const s2 = i2[r2], o2 = s2.apply(this, t2);
|
|
1817
|
-
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1804
|
+
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
|
|
1818
1805
|
}
|
|
1819
1806
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1820
1807
|
}
|
|
@@ -1822,21 +1809,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
1822
1809
|
});
|
|
1823
1810
|
}
|
|
1824
1811
|
emitSync(e2, ...t2) {
|
|
1825
|
-
|
|
1812
|
+
O(e2);
|
|
1826
1813
|
const i2 = this.listeners(e2), n2 = [];
|
|
1827
1814
|
if (i2 && i2.length) {
|
|
1828
1815
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1829
1816
|
const s2 = i2[r2];
|
|
1830
|
-
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1817
|
+
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
|
|
1831
1818
|
}
|
|
1832
1819
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1833
1820
|
}
|
|
1834
1821
|
return false;
|
|
1835
1822
|
}
|
|
1836
1823
|
}
|
|
1837
|
-
class
|
|
1824
|
+
class $ {
|
|
1838
1825
|
constructor() {
|
|
1839
|
-
this.eventEmitter = new
|
|
1826
|
+
this.eventEmitter = new M(), this.awaitEventEmitter = new U();
|
|
1840
1827
|
}
|
|
1841
1828
|
on(e2, t2) {
|
|
1842
1829
|
return this.eventEmitter.on(e2, t2), this;
|
|
@@ -1848,12 +1835,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
1848
1835
|
return this.awaitEventEmitter.on(e2, t2), this;
|
|
1849
1836
|
}
|
|
1850
1837
|
emitAsync(e2, ...t2) {
|
|
1851
|
-
return
|
|
1838
|
+
return i(this, 0, void 0, function* () {
|
|
1852
1839
|
yield this.awaitEventEmitter.emit(e2, ...t2);
|
|
1853
1840
|
});
|
|
1854
1841
|
}
|
|
1855
1842
|
}
|
|
1856
|
-
class
|
|
1843
|
+
class H {
|
|
1857
1844
|
hasPdfPlugin() {
|
|
1858
1845
|
let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
|
|
1859
1846
|
for (let t2 of e2)
|
|
@@ -1866,7 +1853,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1866
1853
|
return false;
|
|
1867
1854
|
}
|
|
1868
1855
|
}
|
|
1869
|
-
class
|
|
1856
|
+
class B {
|
|
1870
1857
|
hasPdfPlugin() {
|
|
1871
1858
|
let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
|
|
1872
1859
|
if (null !== e2 && e2.length > 1) {
|
|
@@ -1881,7 +1868,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1881
1868
|
return false;
|
|
1882
1869
|
}
|
|
1883
1870
|
}
|
|
1884
|
-
class
|
|
1871
|
+
class q {
|
|
1885
1872
|
constructor(e2) {
|
|
1886
1873
|
this.defaultPlugin = e2;
|
|
1887
1874
|
}
|
|
@@ -1892,22 +1879,22 @@ var telerikReportViewer = (function (exports) {
|
|
|
1892
1879
|
return false;
|
|
1893
1880
|
}
|
|
1894
1881
|
}
|
|
1895
|
-
class
|
|
1882
|
+
class W {
|
|
1896
1883
|
hasPdfPlugin() {
|
|
1897
1884
|
return false;
|
|
1898
1885
|
}
|
|
1899
1886
|
}
|
|
1900
|
-
function
|
|
1887
|
+
function j() {
|
|
1901
1888
|
return window.navigator && window.navigator.msSaveOrOpenBlob;
|
|
1902
1889
|
}
|
|
1903
|
-
class
|
|
1890
|
+
class J {
|
|
1904
1891
|
constructor() {
|
|
1905
1892
|
this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
|
|
1906
1893
|
if (window.navigator) {
|
|
1907
1894
|
let e2 = window.navigator.userAgent.toLowerCase();
|
|
1908
|
-
return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new
|
|
1895
|
+
return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new H() : e2.indexOf("firefox") > -1 ? new B() : e2.indexOf("edg/") > -1 ? new q("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new q("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new q("WebKit built-in PDF") : new W();
|
|
1909
1896
|
}
|
|
1910
|
-
return new
|
|
1897
|
+
return new W();
|
|
1911
1898
|
}().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1912
1899
|
}
|
|
1913
1900
|
destroy() {
|
|
@@ -1925,13 +1912,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
1925
1912
|
}), function(e3) {
|
|
1926
1913
|
let t3 = window.location, i3 = document.createElement("a");
|
|
1927
1914
|
return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
|
|
1928
|
-
}(e2) &&
|
|
1915
|
+
}(e2) && j())
|
|
1929
1916
|
return this.iframe.src = e2, void document.body.appendChild(this.iframe);
|
|
1930
1917
|
let i2 = new XMLHttpRequest(), n2 = this;
|
|
1931
1918
|
i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
|
|
1932
1919
|
if (200 === this.status) {
|
|
1933
1920
|
let e3 = new Blob([this.response], { type: "application/pdf" });
|
|
1934
|
-
|
|
1921
|
+
j() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
|
|
1935
1922
|
} else
|
|
1936
1923
|
console.log("Could not retrieve remote PDF document.");
|
|
1937
1924
|
}, i2.send();
|
|
@@ -1946,10 +1933,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
1946
1933
|
return this.hasPdfPlugin;
|
|
1947
1934
|
}
|
|
1948
1935
|
}
|
|
1949
|
-
function
|
|
1936
|
+
function G(e2) {
|
|
1950
1937
|
return 1e3 * e2;
|
|
1951
1938
|
}
|
|
1952
|
-
class
|
|
1939
|
+
class Z {
|
|
1953
1940
|
constructor(e2, t2, i2) {
|
|
1954
1941
|
if (this.pingMilliseconds = 0, !e2)
|
|
1955
1942
|
throw "Error";
|
|
@@ -1958,7 +1945,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1958
1945
|
initSessionTimeout(e2) {
|
|
1959
1946
|
if (!isFinite(e2))
|
|
1960
1947
|
throw "sessionTimeoutSeconds must be finite";
|
|
1961
|
-
this.pingMilliseconds = e2 <= 120 ?
|
|
1948
|
+
this.pingMilliseconds = e2 <= 120 ? G(e2) / 2 : G(e2 - 60);
|
|
1962
1949
|
}
|
|
1963
1950
|
start() {
|
|
1964
1951
|
this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
|
|
@@ -1969,33 +1956,33 @@ var telerikReportViewer = (function (exports) {
|
|
|
1969
1956
|
this.interval && (clearInterval(this.interval), this.interval = null);
|
|
1970
1957
|
}
|
|
1971
1958
|
}
|
|
1972
|
-
var X, Y, Q, ee
|
|
1973
|
-
function
|
|
1959
|
+
var K, X, Y, Q, ee;
|
|
1960
|
+
function te(e2, t2 = "", i2 = "") {
|
|
1974
1961
|
let n2 = document.createElement(e2);
|
|
1975
|
-
return t2 && (n2.id = t2),
|
|
1962
|
+
return t2 && (n2.id = t2), ie(n2, i2), n2;
|
|
1976
1963
|
}
|
|
1977
|
-
function
|
|
1964
|
+
function ie(e2, t2) {
|
|
1978
1965
|
if ("" === t2 || !e2)
|
|
1979
1966
|
return;
|
|
1980
1967
|
let i2 = t2.trim().split(" ");
|
|
1981
1968
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
|
|
1982
1969
|
}
|
|
1983
|
-
function
|
|
1970
|
+
function ne(e2, t2) {
|
|
1984
1971
|
if ("" === t2 || !e2)
|
|
1985
1972
|
return;
|
|
1986
1973
|
let i2 = t2.trim().split(" ");
|
|
1987
1974
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
|
|
1988
1975
|
}
|
|
1989
|
-
function
|
|
1976
|
+
function re(e2, t2) {
|
|
1990
1977
|
return e2.classList.contains(t2);
|
|
1991
1978
|
}
|
|
1992
|
-
function
|
|
1979
|
+
function se(e2) {
|
|
1993
1980
|
return e2.offsetParent;
|
|
1994
1981
|
}
|
|
1995
|
-
function
|
|
1982
|
+
function oe(e2) {
|
|
1996
1983
|
return parseInt(e2, 10) || 0;
|
|
1997
1984
|
}
|
|
1998
|
-
function
|
|
1985
|
+
function ae(e2, t2, i2, n2 = 0, r2 = 0) {
|
|
1999
1986
|
let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
|
|
2000
1987
|
!function(e3, t3) {
|
|
2001
1988
|
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);
|
|
@@ -2003,11 +1990,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2003
1990
|
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);
|
|
2004
1991
|
}(e2, s2);
|
|
2005
1992
|
}
|
|
2006
|
-
function
|
|
2007
|
-
let t2 =
|
|
1993
|
+
function le(e2) {
|
|
1994
|
+
let t2 = te("div");
|
|
2008
1995
|
return t2.textContent = e2, t2.innerHTML;
|
|
2009
1996
|
}
|
|
2010
|
-
function
|
|
1997
|
+
function he(e2) {
|
|
2011
1998
|
if (e2 && e2.length < 6) {
|
|
2012
1999
|
let t3 = 1, i2 = e2.split("");
|
|
2013
2000
|
for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
|
|
@@ -2017,16 +2004,16 @@ var telerikReportViewer = (function (exports) {
|
|
|
2017
2004
|
let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
|
|
2018
2005
|
return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
|
|
2019
2006
|
}
|
|
2020
|
-
function
|
|
2007
|
+
function ce(e2) {
|
|
2021
2008
|
return !!e2 && e2.indexOf(",") > -1;
|
|
2022
2009
|
}
|
|
2023
|
-
function
|
|
2010
|
+
function de(e2) {
|
|
2024
2011
|
if ("transparent" === e2.toLowerCase())
|
|
2025
2012
|
return 0;
|
|
2026
|
-
if (!
|
|
2013
|
+
if (!ce(e2))
|
|
2027
2014
|
return 1;
|
|
2028
2015
|
if (-1 !== e2.indexOf("#")) {
|
|
2029
|
-
let t3 =
|
|
2016
|
+
let t3 = he(e2);
|
|
2030
2017
|
if (null === t3)
|
|
2031
2018
|
return 1;
|
|
2032
2019
|
e2 = t3;
|
|
@@ -2036,34 +2023,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
2036
2023
|
});
|
|
2037
2024
|
return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
|
|
2038
2025
|
}
|
|
2039
|
-
function
|
|
2040
|
-
let i2 =
|
|
2026
|
+
function ue(e2, t2) {
|
|
2027
|
+
let i2 = te("div");
|
|
2041
2028
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
2042
2029
|
e2.appendChild(i2.childNodes[0]);
|
|
2043
2030
|
}
|
|
2044
|
-
function
|
|
2045
|
-
let i2 =
|
|
2031
|
+
function pe(e2, t2) {
|
|
2032
|
+
let i2 = te("div");
|
|
2046
2033
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
2047
2034
|
e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
|
|
2048
2035
|
}
|
|
2049
|
-
function
|
|
2036
|
+
function ge(e2, t2) {
|
|
2050
2037
|
return e2 ? e2.querySelector(t2) : null;
|
|
2051
2038
|
}
|
|
2052
|
-
function
|
|
2039
|
+
function me(e2, t2) {
|
|
2053
2040
|
var i2;
|
|
2054
2041
|
return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
|
|
2055
2042
|
}
|
|
2056
|
-
function
|
|
2043
|
+
function fe(e2) {
|
|
2057
2044
|
let t2 = e2.parentElement;
|
|
2058
|
-
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 :
|
|
2045
|
+
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : fe(t2) : null;
|
|
2059
2046
|
}
|
|
2060
|
-
function
|
|
2047
|
+
function ve(e2, t2 = 300) {
|
|
2061
2048
|
let i2;
|
|
2062
2049
|
return function(...n2) {
|
|
2063
2050
|
clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
|
|
2064
2051
|
};
|
|
2065
2052
|
}
|
|
2066
|
-
function
|
|
2053
|
+
function Pe(e2, t2) {
|
|
2067
2054
|
let i2 = null;
|
|
2068
2055
|
return function(n2, ...r2) {
|
|
2069
2056
|
i2 || (i2 = setTimeout(function() {
|
|
@@ -2071,24 +2058,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2071
2058
|
}, t2));
|
|
2072
2059
|
};
|
|
2073
2060
|
}
|
|
2074
|
-
function
|
|
2061
|
+
function Ce(e2, t2) {
|
|
2075
2062
|
return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
|
|
2076
2063
|
}
|
|
2064
|
+
function ye(e2) {
|
|
2065
|
+
return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
|
|
2066
|
+
}
|
|
2077
2067
|
function Se(e2) {
|
|
2078
|
-
return
|
|
2068
|
+
return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
|
|
2079
2069
|
}
|
|
2080
2070
|
function Ie(e2) {
|
|
2081
|
-
return ye(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
|
|
2082
|
-
}
|
|
2083
|
-
function be(e2) {
|
|
2084
2071
|
return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
|
|
2085
2072
|
}
|
|
2086
|
-
function
|
|
2073
|
+
function be(e2, ...t2) {
|
|
2087
2074
|
return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
|
|
2088
2075
|
}
|
|
2089
|
-
function
|
|
2076
|
+
function we(e2, t2) {
|
|
2090
2077
|
let i2, n2;
|
|
2091
|
-
if (
|
|
2078
|
+
if (Te(e2))
|
|
2092
2079
|
for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
|
|
2093
2080
|
;
|
|
2094
2081
|
else
|
|
@@ -2097,40 +2084,40 @@ var telerikReportViewer = (function (exports) {
|
|
|
2097
2084
|
break;
|
|
2098
2085
|
return e2;
|
|
2099
2086
|
}
|
|
2100
|
-
function
|
|
2087
|
+
function Te(e2) {
|
|
2101
2088
|
if (Array.isArray(e2))
|
|
2102
2089
|
return true;
|
|
2103
2090
|
return "number" == typeof (!!e2 && "length" in e2 && e2.length);
|
|
2104
2091
|
}
|
|
2105
|
-
function
|
|
2092
|
+
function Ae(e2) {
|
|
2106
2093
|
return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
|
|
2107
2094
|
}
|
|
2108
|
-
function
|
|
2095
|
+
function Re(e2) {
|
|
2109
2096
|
return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
|
|
2110
2097
|
}
|
|
2111
|
-
function
|
|
2098
|
+
function Ee(e2) {
|
|
2112
2099
|
return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
|
|
2113
2100
|
}
|
|
2114
|
-
e.PageMode = void 0, (
|
|
2115
|
-
class
|
|
2101
|
+
e.PageMode = void 0, (K = e.PageMode || (e.PageMode = {}))[K.ContinuousScroll = 0] = "ContinuousScroll", K[K.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (X = e.PrintMode || (e.PrintMode = {}))[X.AutoSelect = 0] = "AutoSelect", X[X.ForcePDFPlugin = 1] = "ForcePDFPlugin", X[X.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Y = e.ScaleMode || (e.ScaleMode = {}))[Y.FitPageWidth = 0] = "FitPageWidth", Y[Y.FitPage = 1] = "FitPage", Y[Y.Specific = 2] = "Specific", e.ServiceType = void 0, (Q = e.ServiceType || (e.ServiceType = {}))[Q.REST = 0] = "REST", Q[Q.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ee = e.ViewMode || (e.ViewMode = {}))[ee.Interactive = 0] = "Interactive", ee[ee.PrintPreview = 1] = "PrintPreview";
|
|
2102
|
+
class Me {
|
|
2116
2103
|
constructor(e2, t2) {
|
|
2117
2104
|
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
2118
2105
|
}
|
|
2119
2106
|
}
|
|
2120
|
-
class
|
|
2107
|
+
class xe extends r {
|
|
2121
2108
|
constructor(e2, t2, i2) {
|
|
2122
2109
|
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;
|
|
2123
2110
|
}
|
|
2124
2111
|
}
|
|
2125
|
-
const ke = "System.Int64",
|
|
2126
|
-
var
|
|
2112
|
+
const ke = "System.Int64", Le = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
|
|
2113
|
+
var Oe = function() {
|
|
2127
2114
|
var e2 = {};
|
|
2128
2115
|
function t2(e3, t3, i3, n2) {
|
|
2129
2116
|
var r2 = [].concat(t3).map(function(t4) {
|
|
2130
2117
|
return function(e4, t5, i4) {
|
|
2131
2118
|
if (e4.availableValues) {
|
|
2132
2119
|
var n3 = false;
|
|
2133
|
-
if (
|
|
2120
|
+
if (we(e4.availableValues, function(e5, r3) {
|
|
2134
2121
|
return !(n3 = i4(t5, r3.value));
|
|
2135
2122
|
}), !n3) {
|
|
2136
2123
|
if (e4.allowNull && !t5)
|
|
@@ -2167,9 +2154,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2167
2154
|
}, function(e4, t3) {
|
|
2168
2155
|
return e4 == t3;
|
|
2169
2156
|
});
|
|
2170
|
-
} }, e2[
|
|
2157
|
+
} }, e2[Le] = { validate: function(e3, n2) {
|
|
2171
2158
|
return t2(e3, n2, function(t3) {
|
|
2172
|
-
var n3 =
|
|
2159
|
+
var n3 = Re(t3);
|
|
2173
2160
|
if (isNaN(n3)) {
|
|
2174
2161
|
if (i2(e3, t3))
|
|
2175
2162
|
return null;
|
|
@@ -2177,11 +2164,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2177
2164
|
}
|
|
2178
2165
|
return n3;
|
|
2179
2166
|
}, function(e4, t3) {
|
|
2180
|
-
return
|
|
2167
|
+
return Re(e4) == Re(t3);
|
|
2181
2168
|
});
|
|
2182
2169
|
} }, e2[ke] = { validate: function(e3, n2) {
|
|
2183
2170
|
return t2(e3, n2, function(t3) {
|
|
2184
|
-
var n3 =
|
|
2171
|
+
var n3 = Ae(t3);
|
|
2185
2172
|
if (isNaN(n3)) {
|
|
2186
2173
|
if (i2(e3, t3))
|
|
2187
2174
|
return null;
|
|
@@ -2189,19 +2176,19 @@ var telerikReportViewer = (function (exports) {
|
|
|
2189
2176
|
}
|
|
2190
2177
|
return n3;
|
|
2191
2178
|
}, function(e4, t3) {
|
|
2192
|
-
return
|
|
2179
|
+
return Ae(e4) == Re(t3);
|
|
2193
2180
|
});
|
|
2194
|
-
} }, e2[
|
|
2181
|
+
} }, e2[De] = { validate: function(e3, i3) {
|
|
2195
2182
|
return t2(e3, i3, function(t3) {
|
|
2196
2183
|
if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
|
|
2197
2184
|
return null;
|
|
2198
2185
|
if (!isNaN(Date.parse(t3)))
|
|
2199
|
-
return e3.availableValues ? t3 :
|
|
2186
|
+
return e3.availableValues ? t3 : Ee(t3);
|
|
2200
2187
|
throw "Please input a valid date.";
|
|
2201
2188
|
}, function(e4, t3) {
|
|
2202
|
-
return e4 =
|
|
2189
|
+
return e4 = Ee(e4), t3 = Ee(t3), e4.getTime() == t3.getTime();
|
|
2203
2190
|
});
|
|
2204
|
-
} }, e2[
|
|
2191
|
+
} }, e2[Fe] = { validate: function(e3, n2) {
|
|
2205
2192
|
return t2(e3, n2, function(t3) {
|
|
2206
2193
|
if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase()))
|
|
2207
2194
|
return Boolean(t3);
|
|
@@ -2214,32 +2201,35 @@ var telerikReportViewer = (function (exports) {
|
|
|
2214
2201
|
} }, { validate: function(t3, i3) {
|
|
2215
2202
|
var n2 = e2[t3.type];
|
|
2216
2203
|
if (!n2)
|
|
2217
|
-
throw
|
|
2204
|
+
throw be("Cannot validate parameter of type {type}.", t3);
|
|
2218
2205
|
return n2.validate(t3, i3);
|
|
2219
2206
|
} };
|
|
2220
2207
|
}();
|
|
2221
|
-
function
|
|
2208
|
+
function Ve(e2, t2, i2) {
|
|
2222
2209
|
try {
|
|
2223
2210
|
const n2 = e2.availableValues.find((e3) => e3.value === t2);
|
|
2224
|
-
if (!n2)
|
|
2211
|
+
if (!n2) {
|
|
2212
|
+
if (e2.allowNull && null === t2)
|
|
2213
|
+
return { valueMember: null, displayMember: null };
|
|
2225
2214
|
throw new Error(`The available values of parameter ${i2} do not contain Value property that equals ${t2}`);
|
|
2215
|
+
}
|
|
2226
2216
|
return { valueMember: t2, displayMember: n2.name };
|
|
2227
2217
|
} catch (e3) {
|
|
2228
2218
|
return;
|
|
2229
2219
|
}
|
|
2230
2220
|
}
|
|
2231
|
-
function
|
|
2221
|
+
function ze(e2, t2, i2) {
|
|
2232
2222
|
const n2 = [];
|
|
2233
2223
|
for (let r2 in t2)
|
|
2234
|
-
n2.push(
|
|
2224
|
+
n2.push(Ve(e2, t2[r2], i2));
|
|
2235
2225
|
return n2;
|
|
2236
2226
|
}
|
|
2237
|
-
class
|
|
2227
|
+
class _e {
|
|
2238
2228
|
constructor(e2 = "", t2 = {}) {
|
|
2239
2229
|
this.report = e2, this.parameters = t2;
|
|
2240
2230
|
}
|
|
2241
2231
|
}
|
|
2242
|
-
class
|
|
2232
|
+
class Ue extends $ {
|
|
2243
2233
|
constructor(e2) {
|
|
2244
2234
|
super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
|
|
2245
2235
|
}
|
|
@@ -2247,7 +2237,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2247
2237
|
this.destroyResizeObserver();
|
|
2248
2238
|
}
|
|
2249
2239
|
initResizeObserver() {
|
|
2250
|
-
this.debounceResize =
|
|
2240
|
+
this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
|
|
2251
2241
|
}
|
|
2252
2242
|
destroyResizeObserver() {
|
|
2253
2243
|
this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
|
|
@@ -2256,8 +2246,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
2256
2246
|
e2[0].target === this.element && this.emit("resize");
|
|
2257
2247
|
}
|
|
2258
2248
|
}
|
|
2259
|
-
const
|
|
2260
|
-
class
|
|
2249
|
+
const $e = '<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>';
|
|
2250
|
+
class He {
|
|
2261
2251
|
constructor(t2, i2, n2) {
|
|
2262
2252
|
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));
|
|
2263
2253
|
}
|
|
@@ -2279,10 +2269,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2279
2269
|
return this.enabled;
|
|
2280
2270
|
}
|
|
2281
2271
|
enable() {
|
|
2282
|
-
this.enabled = true,
|
|
2272
|
+
this.enabled = true, ie(this.placeholder, "scrollable"), this.initEvents();
|
|
2283
2273
|
}
|
|
2284
2274
|
disable() {
|
|
2285
|
-
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false,
|
|
2275
|
+
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, ne(this.placeholder, "scrollable"), this.unbind());
|
|
2286
2276
|
}
|
|
2287
2277
|
renderPage(e2) {
|
|
2288
2278
|
let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
|
|
@@ -2297,7 +2287,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2297
2287
|
this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
|
|
2298
2288
|
}
|
|
2299
2289
|
setCurrentPage(e2) {
|
|
2300
|
-
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (
|
|
2290
|
+
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (ne(this.findElement(".k-state-default"), "k-state-default"), ie(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
|
|
2301
2291
|
}
|
|
2302
2292
|
updatePageArea(e2) {
|
|
2303
2293
|
var t2;
|
|
@@ -2322,18 +2312,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
2322
2312
|
return this.controller.getCurrentPageNumber();
|
|
2323
2313
|
}
|
|
2324
2314
|
isSkeletonScreen(e2, t2) {
|
|
2325
|
-
return !(!e2 && !(e2 = this.findPageElement(t2))) &&
|
|
2315
|
+
return !(!e2 && !(e2 = this.findPageElement(t2))) && re(e2, "trv-skeleton-" + t2);
|
|
2326
2316
|
}
|
|
2327
2317
|
addSkeletonScreen(e2, t2) {
|
|
2328
|
-
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 =
|
|
2329
|
-
t2 ?
|
|
2318
|
+
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = be($e, e2, r2, s2);
|
|
2319
|
+
t2 ? pe(this.pageWrapper, o2) : ue(this.pageWrapper, o2);
|
|
2330
2320
|
}
|
|
2331
2321
|
generateSkeletonScreens(e2) {
|
|
2332
2322
|
var t2;
|
|
2333
|
-
let i2 = "", n2 = this.findPageElement(1), r2 =
|
|
2323
|
+
let i2 = "", n2 = this.findPageElement(1), r2 = me(n2, "style"), s2 = me(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;
|
|
2334
2324
|
for (; a2 < e2; a2++)
|
|
2335
|
-
i2 +=
|
|
2336
|
-
|
|
2325
|
+
i2 += be($e, a2, r2, s2);
|
|
2326
|
+
ue(this.pageWrapper, i2);
|
|
2337
2327
|
}
|
|
2338
2328
|
loadMorePages() {
|
|
2339
2329
|
var e2;
|
|
@@ -2384,10 +2374,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2384
2374
|
}
|
|
2385
2375
|
}
|
|
2386
2376
|
initEvents() {
|
|
2387
|
-
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll =
|
|
2377
|
+
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
|
|
2388
2378
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2389
2379
|
!this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
|
|
2390
|
-
}, 250), this.throttleScroll =
|
|
2380
|
+
}, 250), this.throttleScroll = Pe(() => {
|
|
2391
2381
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2392
2382
|
this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
|
|
2393
2383
|
}, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
|
|
@@ -2482,7 +2472,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2482
2472
|
return i2 && i2.length ? i2[i2.length - 1] : null;
|
|
2483
2473
|
}
|
|
2484
2474
|
}
|
|
2485
|
-
class
|
|
2475
|
+
class Be {
|
|
2486
2476
|
constructor() {
|
|
2487
2477
|
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;
|
|
2488
2478
|
}
|
|
@@ -2490,7 +2480,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2490
2480
|
this.reset(e2), this.attachToScrollEvent();
|
|
2491
2481
|
}
|
|
2492
2482
|
reset(e2) {
|
|
2493
|
-
this.placeholder = e2, this.scrollableContainer =
|
|
2483
|
+
this.placeholder = e2, this.scrollableContainer = ge(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
|
|
2494
2484
|
}
|
|
2495
2485
|
setScaleFactor(e2) {
|
|
2496
2486
|
this.scaleFactor = e2;
|
|
@@ -2513,7 +2503,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2513
2503
|
saveFreezeItemsInitialState(e2) {
|
|
2514
2504
|
var t2, i2, n2;
|
|
2515
2505
|
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;
|
|
2516
|
-
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 =
|
|
2506
|
+
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = ge(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
|
|
2517
2507
|
var i3;
|
|
2518
2508
|
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;
|
|
2519
2509
|
switch (n3) {
|
|
@@ -2535,7 +2525,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2535
2525
|
}
|
|
2536
2526
|
updateFreezeItemsOnScroll(e2, t2, i2) {
|
|
2537
2527
|
var n2, r2;
|
|
2538
|
-
let s2 =
|
|
2528
|
+
let s2 = ge(this.placeholder, "div[data-id='" + e2 + "']");
|
|
2539
2529
|
if (!s2)
|
|
2540
2530
|
return;
|
|
2541
2531
|
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 + "']");
|
|
@@ -2560,7 +2550,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2560
2550
|
"IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
|
|
2561
2551
|
}
|
|
2562
2552
|
hasSetBgColor(e2) {
|
|
2563
|
-
return
|
|
2553
|
+
return de(e2) > 0;
|
|
2564
2554
|
}
|
|
2565
2555
|
isFrozen(e2) {
|
|
2566
2556
|
return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
|
|
@@ -2580,21 +2570,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
2580
2570
|
return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
|
|
2581
2571
|
}
|
|
2582
2572
|
}
|
|
2583
|
-
const
|
|
2584
|
-
function
|
|
2573
|
+
const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
|
|
2574
|
+
function je(e2, t2) {
|
|
2585
2575
|
let i2 = Array.isArray(t2);
|
|
2586
|
-
return e2 ? e2.replace(
|
|
2576
|
+
return e2 ? e2.replace(qe, function(e3, n2) {
|
|
2587
2577
|
return t2[i2 ? parseInt(n2) : n2];
|
|
2588
2578
|
}) : "";
|
|
2589
2579
|
}
|
|
2590
|
-
const
|
|
2591
|
-
e.BasicAuth =
|
|
2580
|
+
const Je = "trv-search-dialog-shaded-result", Ge = "trv-search-dialog-highlighted-result";
|
|
2581
|
+
e.BasicAuth = C, e.BookmarkNode = class {
|
|
2592
2582
|
constructor() {
|
|
2593
2583
|
this.id = "", this.text = "", this.page = 0, this.items = null;
|
|
2594
2584
|
}
|
|
2595
|
-
}, e.ConnectionConfig =
|
|
2585
|
+
}, e.ConnectionConfig = b, e.ConnectionConfigNoAuth = w, e.ConnectionConfigServerCredentials = A, e.ConnectionConfigServerNoAuth = T, e.ConnectionConfigServerToken = R, e.ContentArea = class {
|
|
2596
2586
|
constructor(e2, t2, i2, n2 = {}) {
|
|
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
|
|
2587
|
+
this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new He(this.placeholder, this, t2), this.resizeService = new Ue(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)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
|
|
2598
2588
|
}
|
|
2599
2589
|
destroy() {
|
|
2600
2590
|
this.resizeService && this.resizeService.destroy();
|
|
@@ -2621,10 +2611,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2621
2611
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
|
2622
2612
|
}
|
|
2623
2613
|
onReportLoadProgress(e2) {
|
|
2624
|
-
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(
|
|
2614
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
|
2625
2615
|
}
|
|
2626
2616
|
onReportLoadComplete(t2) {
|
|
2627
|
-
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(
|
|
2617
|
+
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 Be(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
|
|
2628
2618
|
}
|
|
2629
2619
|
onReportAutoRunOff() {
|
|
2630
2620
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
|
@@ -2635,6 +2625,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2635
2625
|
onMissingOrInvalidParameters() {
|
|
2636
2626
|
this.initialPageAreaImageUrl && !this.reportPageIsLoaded && (this.clearPage(), this.setPageAreaImage());
|
|
2637
2627
|
}
|
|
2628
|
+
onShowNotification(e2) {
|
|
2629
|
+
this.showNotification(e2);
|
|
2630
|
+
}
|
|
2638
2631
|
onError(e2, t2 = true) {
|
|
2639
2632
|
t2 && (this.disablePagesArea(false), this.disableParametersArea(false), this.clearPage()), this.showError(e2);
|
|
2640
2633
|
}
|
|
@@ -2718,14 +2711,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2718
2711
|
}
|
|
2719
2712
|
let e3 = 0, i3 = 0;
|
|
2720
2713
|
for (; n2 && n2 !== this.pageContainer; ) {
|
|
2721
|
-
if (
|
|
2714
|
+
if (re(n2, "trv-page-wrapper")) {
|
|
2722
2715
|
let t3 = n2.dataset.pageScale;
|
|
2723
2716
|
if ("string" == typeof t3) {
|
|
2724
2717
|
let n3 = parseFloat(t3);
|
|
2725
2718
|
e3 *= n3, i3 *= n3;
|
|
2726
2719
|
}
|
|
2727
2720
|
}
|
|
2728
|
-
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 =
|
|
2721
|
+
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = se(n2);
|
|
2729
2722
|
}
|
|
2730
2723
|
this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
|
|
2731
2724
|
} else
|
|
@@ -2739,7 +2732,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2739
2732
|
return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
|
|
2740
2733
|
}
|
|
2741
2734
|
disablePagesArea(e2) {
|
|
2742
|
-
e2 ?
|
|
2735
|
+
e2 ? ie(this.placeholder, "trv-loading") : ne(this.placeholder, "trv-loading");
|
|
2743
2736
|
}
|
|
2744
2737
|
disableParametersArea(e2) {
|
|
2745
2738
|
var t2, i2;
|
|
@@ -2749,13 +2742,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2749
2742
|
this.showNotification(e2, "error");
|
|
2750
2743
|
}
|
|
2751
2744
|
showNotification(e2 = "", t2 = "info") {
|
|
2752
|
-
this.notification.dataset.type
|
|
2753
|
-
|
|
2754
|
-
|
|
2745
|
+
let i2 = this.notification.dataset.type;
|
|
2746
|
+
i2 && ne(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
|
|
2747
|
+
let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
|
|
2748
|
+
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ie(this.notification, `k-notification-${t2}`), ne(this.notification, "k-hidden");
|
|
2755
2749
|
}
|
|
2756
2750
|
hideNotification() {
|
|
2757
2751
|
let e2 = String(this.notification.dataset.type);
|
|
2758
|
-
delete this.notification.dataset.type,
|
|
2752
|
+
delete this.notification.dataset.type, ne(this.notification, `k-notification-${e2}`), ie(this.notification, "k-hidden");
|
|
2759
2753
|
}
|
|
2760
2754
|
pageNo(e2) {
|
|
2761
2755
|
var t2;
|
|
@@ -2778,7 +2772,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2778
2772
|
r2 = JSON.parse(n2.dataset.box);
|
|
2779
2773
|
else {
|
|
2780
2774
|
let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
|
|
2781
|
-
r2 = { padLeft:
|
|
2775
|
+
r2 = { padLeft: oe(i3.marginLeft) + oe(e2.borderLeftWidth) + oe(e2.paddingLeft), padRight: oe(i3.marginRight) + oe(e2.borderRightWidth) + oe(e2.paddingRight), padTop: oe(i3.marginTop) + oe(e2.borderTopWidth) + oe(e2.paddingTop), padBottom: oe(i3.marginBottom) + oe(e2.borderBottomWidth) + oe(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
|
|
2782
2776
|
}
|
|
2783
2777
|
let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
|
|
2784
2778
|
if (0 === a2) {
|
|
@@ -2787,7 +2781,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2787
2781
|
}
|
|
2788
2782
|
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;
|
|
2789
2783
|
let p2 = this.controller.getScale();
|
|
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 ||
|
|
2784
|
+
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 || ae(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
|
|
2791
2785
|
}
|
|
2792
2786
|
enableInteractivity() {
|
|
2793
2787
|
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);
|
|
@@ -2810,24 +2804,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2810
2804
|
onInteractiveItemClick(e2, t2) {
|
|
2811
2805
|
var i2;
|
|
2812
2806
|
let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
|
|
2813
|
-
r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new
|
|
2807
|
+
r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new s(e2, r2))), t2.stopPropagation();
|
|
2814
2808
|
}
|
|
2815
2809
|
onInteractiveItemEnter(e2) {
|
|
2816
2810
|
var t2;
|
|
2817
2811
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2818
|
-
n2 && this.controller.reportActionEnter(new
|
|
2812
|
+
n2 && this.controller.reportActionEnter(new s(e2, n2));
|
|
2819
2813
|
}
|
|
2820
2814
|
onInteractiveItemLeave(e2) {
|
|
2821
2815
|
var t2;
|
|
2822
2816
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2823
|
-
n2 && this.controller.reportActionLeave(new
|
|
2817
|
+
n2 && this.controller.reportActionLeave(new s(e2, n2));
|
|
2824
2818
|
}
|
|
2825
2819
|
onToolTipItemEnter(e2, t2) {
|
|
2826
2820
|
let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
|
|
2827
|
-
(i2 || n2) && this.controller.reportTooltipOpening(new
|
|
2821
|
+
(i2 || n2) && this.controller.reportTooltipOpening(new p(e2, n2 || "", i2 || "", t2));
|
|
2828
2822
|
}
|
|
2829
2823
|
onToolTipItemLeave(e2) {
|
|
2830
|
-
this.controller.reportTooltipClosing(new
|
|
2824
|
+
this.controller.reportTooltipClosing(new p(e2, "", "", null));
|
|
2831
2825
|
}
|
|
2832
2826
|
getNavigateToPageOnDocReady(e2, t2) {
|
|
2833
2827
|
var i2;
|
|
@@ -2845,7 +2839,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2845
2839
|
var t2;
|
|
2846
2840
|
let i2 = "trv-" + this.controller.getClientId() + "-styles";
|
|
2847
2841
|
null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
|
|
2848
|
-
let n2 =
|
|
2842
|
+
let n2 = te("style", i2);
|
|
2849
2843
|
n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
|
|
2850
2844
|
}
|
|
2851
2845
|
setPageContent(e2) {
|
|
@@ -2857,26 +2851,26 @@ var telerikReportViewer = (function (exports) {
|
|
|
2857
2851
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
|
2858
2852
|
}
|
|
2859
2853
|
renderPageElement(e2) {
|
|
2860
|
-
let t2 =
|
|
2854
|
+
let t2 = te("div");
|
|
2861
2855
|
t2.innerHTML = e2.pageContent;
|
|
2862
2856
|
let i2 = t2.querySelector("div.sheet");
|
|
2863
2857
|
i2.style.margin = "0";
|
|
2864
|
-
let n2 =
|
|
2865
|
-
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(
|
|
2858
|
+
let n2 = te("div", "", "trv-report-page");
|
|
2859
|
+
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(te("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
|
|
2866
2860
|
}
|
|
2867
2861
|
applyPlaceholderViewModeClass() {
|
|
2868
|
-
this.controller.getViewMode() === e.ViewMode.Interactive ? (
|
|
2862
|
+
this.controller.getViewMode() === e.ViewMode.Interactive ? (ne(this.placeholder, "printpreview"), ie(this.placeholder, "interactive")) : (ne(this.placeholder, "interactive"), ie(this.placeholder, "printpreview"));
|
|
2869
2863
|
}
|
|
2870
2864
|
setPageAreaImage() {
|
|
2871
2865
|
this.clearPageAreaImage();
|
|
2872
|
-
let e2 =
|
|
2873
|
-
e2.innerHTML =
|
|
2866
|
+
let e2 = te("style", We);
|
|
2867
|
+
e2.innerHTML = je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
|
|
2874
2868
|
}
|
|
2875
2869
|
clearPageAreaImage() {
|
|
2876
2870
|
var e2;
|
|
2877
|
-
null === (e2 = document.getElementById(
|
|
2871
|
+
null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
|
|
2878
2872
|
}
|
|
2879
|
-
}, e.CurrentPageChangedEventArgs =
|
|
2873
|
+
}, e.CurrentPageChangedEventArgs = u, e.DeviceInfo = n, e.DocumentInfo = class {
|
|
2880
2874
|
constructor() {
|
|
2881
2875
|
this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
|
|
2882
2876
|
}
|
|
@@ -2884,29 +2878,29 @@ var telerikReportViewer = (function (exports) {
|
|
|
2884
2878
|
constructor() {
|
|
2885
2879
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
|
2886
2880
|
}
|
|
2887
|
-
}, e.EmailInfo =
|
|
2881
|
+
}, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = Z, e.NoAuth = P, e.PageAction = class {
|
|
2888
2882
|
constructor() {
|
|
2889
2883
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
|
2890
2884
|
}
|
|
2891
|
-
}, e.PageActionEventArgs =
|
|
2885
|
+
}, e.PageActionEventArgs = s, e.PageInfo = class {
|
|
2892
2886
|
constructor() {
|
|
2893
2887
|
this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
|
|
2894
2888
|
}
|
|
2895
|
-
}, e.PageTargetElement =
|
|
2889
|
+
}, e.PageTargetElement = o, e.ParameterInfo = class {
|
|
2896
2890
|
constructor() {
|
|
2897
2891
|
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 = "";
|
|
2898
2892
|
}
|
|
2899
|
-
}, e.ParameterValidators =
|
|
2893
|
+
}, e.ParameterValidators = Oe, e.ParameterValue = class {
|
|
2900
2894
|
constructor() {
|
|
2901
2895
|
this.name = "", this.value = null;
|
|
2902
2896
|
}
|
|
2903
|
-
}, e.PersonalTokenAuth =
|
|
2897
|
+
}, e.PersonalTokenAuth = y, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
|
|
2904
2898
|
constructor() {
|
|
2905
2899
|
this.name = "", this.localizedName = "";
|
|
2906
2900
|
}
|
|
2907
|
-
}, e.ReportController = class extends
|
|
2901
|
+
}, e.ReportController = class extends $ {
|
|
2908
2902
|
constructor(e2, t2) {
|
|
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
|
|
2903
|
+
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 J(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
|
|
2910
2904
|
}
|
|
2911
2905
|
get autoRunEnabled() {
|
|
2912
2906
|
var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
|
|
@@ -2937,29 +2931,43 @@ var telerikReportViewer = (function (exports) {
|
|
|
2937
2931
|
this.cancelLoad = true, this.resetPageNumbers(), this.emit("renderingStopped");
|
|
2938
2932
|
});
|
|
2939
2933
|
}
|
|
2940
|
-
refreshReport(e2, t2, i2 = false) {
|
|
2941
|
-
if (this.emit("loadedReportChange"), this.cancelLoad = false, this.respectAutoRun = i2 || this.respectAutoRun, this.clientHasExpired && (this.clientHasExpired = false, this.clearClientId()), "" == this.getReport())
|
|
2934
|
+
refreshReport(e2, t2, i2 = false, n2 = false) {
|
|
2935
|
+
if (n2 || this.emit("loadedReportChange"), this.cancelLoad = false, this.respectAutoRun = i2 || this.respectAutoRun, this.clientHasExpired && (this.clientHasExpired = false, this.clearClientId()), "" == this.getReport())
|
|
2942
2936
|
return void this.emit("noReport");
|
|
2943
|
-
let
|
|
2944
|
-
|
|
2945
|
-
this.emit("parametersLoaded", i3)
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2937
|
+
let r2 = this.loadParameters();
|
|
2938
|
+
r2.then((i3) => {
|
|
2939
|
+
this.emit("parametersLoaded", i3);
|
|
2940
|
+
this.processParameters(i3) || n2 || (this.autoRunEnabled ? this.refreshReportCore(e2, t2) : this.emitAsync("reportAutoRunOff"));
|
|
2941
|
+
}), this.emit("reloadParameters", r2);
|
|
2942
|
+
}
|
|
2943
|
+
processParameters(e2) {
|
|
2944
|
+
let t2 = {}, i2 = [], n2 = false;
|
|
2945
|
+
for (let r2 of e2)
|
|
2951
2946
|
try {
|
|
2952
|
-
let e3 =
|
|
2953
|
-
|
|
2947
|
+
let e3 = Oe.validate(r2, r2.value);
|
|
2948
|
+
t2[r2.id] = e3;
|
|
2954
2949
|
} catch (e3) {
|
|
2955
|
-
|
|
2950
|
+
n2 = true, i2.push(r2);
|
|
2956
2951
|
}
|
|
2957
|
-
|
|
2952
|
+
return n2 ? this.missingOrInvalidParameters(i2) : this.setParameters(t2), n2;
|
|
2953
|
+
}
|
|
2954
|
+
allParametersAutoRefresh(e2) {
|
|
2955
|
+
if (!e2 || !e2.length)
|
|
2956
|
+
return true;
|
|
2957
|
+
return Array.from(e2).every((e3) => !e3.isVisible || e3.autoRefresh);
|
|
2958
|
+
}
|
|
2959
|
+
allParametersValidForAutoRefresh(e2, t2) {
|
|
2960
|
+
let i2 = true;
|
|
2961
|
+
for (let n2 = e2.length - 1; i2 && n2 >= 0; n2--) {
|
|
2962
|
+
let r2 = e2[n2];
|
|
2963
|
+
i2 = r2.id in t2 && (Boolean(r2.autoRefresh) || !r2.isVisible);
|
|
2964
|
+
}
|
|
2965
|
+
return i2;
|
|
2958
2966
|
}
|
|
2959
2967
|
hasInvalidParameter(e2) {
|
|
2960
2968
|
for (const t2 of e2)
|
|
2961
2969
|
try {
|
|
2962
|
-
|
|
2970
|
+
Oe.validate(t2, t2.value);
|
|
2963
2971
|
} catch (e3) {
|
|
2964
2972
|
return true;
|
|
2965
2973
|
}
|
|
@@ -2991,7 +2999,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2991
2999
|
}
|
|
2992
3000
|
getReportSource() {
|
|
2993
3001
|
var e2;
|
|
2994
|
-
return new
|
|
3002
|
+
return new _e(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
|
|
2995
3003
|
}
|
|
2996
3004
|
setReportSource(e2) {
|
|
2997
3005
|
this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
|
|
@@ -3036,7 +3044,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3036
3044
|
return this.currentPageNumber;
|
|
3037
3045
|
}
|
|
3038
3046
|
setCurrentPageNumber(e2) {
|
|
3039
|
-
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new
|
|
3047
|
+
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new u(e2, this.documentId)));
|
|
3040
3048
|
}
|
|
3041
3049
|
getPageCount() {
|
|
3042
3050
|
return this.pageCount;
|
|
@@ -3051,9 +3059,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3051
3059
|
if ("navigateToReport" === t2.Type) {
|
|
3052
3060
|
this.emit("serverActionStarted");
|
|
3053
3061
|
let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
|
|
3054
|
-
this.respectAutoRun = true, this.emit("navigateToReport", new
|
|
3062
|
+
this.respectAutoRun = true, this.emit("navigateToReport", new _e(e3.Report, i2));
|
|
3055
3063
|
} else if ("navigateToBookmark" === t2.Type) {
|
|
3056
|
-
let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new
|
|
3064
|
+
let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new o(t2.Value, "bookmark");
|
|
3057
3065
|
this.navigateToPage(e3, i2);
|
|
3058
3066
|
} else if ("sorting" === t2.Type)
|
|
3059
3067
|
this.execServerAction(t2.Id);
|
|
@@ -3079,40 +3087,40 @@ var telerikReportViewer = (function (exports) {
|
|
|
3079
3087
|
this.emit("toolTipClosing", e2);
|
|
3080
3088
|
}
|
|
3081
3089
|
printReport() {
|
|
3082
|
-
return
|
|
3090
|
+
return i(this, 0, void 0, function* () {
|
|
3083
3091
|
let e2 = this.createDeviceInfo();
|
|
3084
3092
|
e2.ImmediatePrint = true;
|
|
3085
|
-
let t2 = new
|
|
3093
|
+
let t2 = new c(e2);
|
|
3086
3094
|
this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
|
|
3087
3095
|
let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
|
|
3088
3096
|
t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
|
|
3089
|
-
let i2 = new
|
|
3097
|
+
let i2 = new d(t3);
|
|
3090
3098
|
this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
|
|
3091
3099
|
}));
|
|
3092
3100
|
});
|
|
3093
3101
|
}
|
|
3094
3102
|
exportReport(e2) {
|
|
3095
|
-
return
|
|
3096
|
-
let t2 = this.createDeviceInfo(),
|
|
3097
|
-
if (yield this.emitAsync("exportStart",
|
|
3098
|
-
let
|
|
3099
|
-
if (this.emit("exportStarted",
|
|
3103
|
+
return i(this, 0, void 0, function* () {
|
|
3104
|
+
let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
|
|
3105
|
+
if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
|
|
3106
|
+
let r2 = new l(t2, e2);
|
|
3107
|
+
if (this.emit("exportStarted", r2), r2.handled)
|
|
3100
3108
|
return;
|
|
3101
|
-
this.setUIState("ExportInProgress", true), this.exportAsync(e2,
|
|
3102
|
-
let
|
|
3103
|
-
|
|
3104
|
-
let n3 = new
|
|
3105
|
-
yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(
|
|
3109
|
+
this.setUIState("ExportInProgress", true), this.exportAsync(e2, n2.deviceInfo).then((t3) => i(this, 0, void 0, function* () {
|
|
3110
|
+
let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
|
|
3111
|
+
i2 += "?response-content-disposition=attachment";
|
|
3112
|
+
let n3 = new h(i2, e2, "_self");
|
|
3113
|
+
yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
|
|
3106
3114
|
}));
|
|
3107
3115
|
}
|
|
3108
3116
|
});
|
|
3109
3117
|
}
|
|
3110
3118
|
sendReport(e2) {
|
|
3111
|
-
let t2 = this.createDeviceInfo(), i2 = new
|
|
3119
|
+
let t2 = this.createDeviceInfo(), i2 = new Me(t2, e2.format);
|
|
3112
3120
|
this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
|
|
3113
3121
|
let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
|
|
3114
3122
|
n2 += "?response-content-disposition=attachment";
|
|
3115
|
-
let r2 = new
|
|
3123
|
+
let r2 = new xe(e2, t2, n2);
|
|
3116
3124
|
this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
|
|
3117
3125
|
});
|
|
3118
3126
|
}
|
|
@@ -3121,9 +3129,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3121
3129
|
}
|
|
3122
3130
|
createAIThread() {
|
|
3123
3131
|
return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
|
|
3124
|
-
if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage =
|
|
3125
|
-
for (let
|
|
3126
|
-
e2.predefinedPrompts[
|
|
3132
|
+
if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = t.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), t.removed && t.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
|
|
3133
|
+
for (let i2 = 0; i2 < e2.predefinedPrompts.length; i2++)
|
|
3134
|
+
e2.predefinedPrompts[i2] = t.sanitize(e2.predefinedPrompts[i2], { USE_PROFILES: { html: true } }), t.removed && t.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
|
|
3127
3135
|
return e2;
|
|
3128
3136
|
});
|
|
3129
3137
|
}
|
|
@@ -3131,13 +3139,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
3131
3139
|
return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
|
|
3132
3140
|
}
|
|
3133
3141
|
exportAsync(e2, t2) {
|
|
3134
|
-
return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) =>
|
|
3142
|
+
return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => i(this, 0, void 0, function* () {
|
|
3135
3143
|
return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
|
|
3136
3144
|
}));
|
|
3137
3145
|
}
|
|
3138
3146
|
sendDocumentAsync(e2, t2) {
|
|
3139
3147
|
return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
|
|
3140
|
-
this.handleRequestError(e3,
|
|
3148
|
+
this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, le(this.getReport())));
|
|
3141
3149
|
});
|
|
3142
3150
|
}
|
|
3143
3151
|
loadParameters(e2 = void 0) {
|
|
@@ -3150,7 +3158,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3150
3158
|
}
|
|
3151
3159
|
initializeAndStartSentinel() {
|
|
3152
3160
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
|
3153
|
-
this.keepClientAliveSentinel = new
|
|
3161
|
+
this.keepClientAliveSentinel = new Z(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
|
3154
3162
|
});
|
|
3155
3163
|
}
|
|
3156
3164
|
stopSentinel() {
|
|
@@ -3175,7 +3183,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3175
3183
|
this.pageCount = 0, this.currentPageNumber = 0;
|
|
3176
3184
|
}
|
|
3177
3185
|
handleSearchRequestError(e2) {
|
|
3178
|
-
if (!
|
|
3186
|
+
if (!Ce(e2, "System.ArgumentException"))
|
|
3179
3187
|
throw this.handleRequestError(e2, "", true), null;
|
|
3180
3188
|
this.throwPromiseError(e2);
|
|
3181
3189
|
}
|
|
@@ -3183,8 +3191,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
3183
3191
|
throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
|
|
3184
3192
|
}
|
|
3185
3193
|
handleRequestError(e2, t2 = "", i2 = false) {
|
|
3186
|
-
|
|
3187
|
-
let n2 =
|
|
3194
|
+
ye(e2) && this.onClientExpired();
|
|
3195
|
+
let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
|
|
3188
3196
|
this.raiseError(r2), i2 || this.throwPromiseError(e2);
|
|
3189
3197
|
}
|
|
3190
3198
|
formatRequestError(e2, t2, i2) {
|
|
@@ -3192,34 +3200,37 @@ var telerikReportViewer = (function (exports) {
|
|
|
3192
3200
|
if (n2) {
|
|
3193
3201
|
if (401 == n2.status || 403 == n2.status)
|
|
3194
3202
|
return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
|
|
3195
|
-
if (
|
|
3203
|
+
if (Se(e2))
|
|
3196
3204
|
return this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3197
|
-
r2 =
|
|
3198
|
-
let t3 =
|
|
3205
|
+
r2 = le(n2.message);
|
|
3206
|
+
let t3 = le(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
|
|
3199
3207
|
t3 && (r2 ? r2 += " " + t3 : r2 = t3);
|
|
3200
3208
|
} else
|
|
3201
|
-
r2 =
|
|
3202
|
-
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 =
|
|
3209
|
+
r2 = le(e2.responseText);
|
|
3210
|
+
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = le(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
|
|
3203
3211
|
}
|
|
3204
3212
|
raiseError(e2, t2 = true) {
|
|
3205
3213
|
this.emit("error", e2, t2);
|
|
3206
3214
|
}
|
|
3215
|
+
showNotification(e2) {
|
|
3216
|
+
this.emit("showNotification", e2);
|
|
3217
|
+
}
|
|
3207
3218
|
onClientExpired() {
|
|
3208
3219
|
this.clientHasExpired = true, this.emit("clientExpired");
|
|
3209
3220
|
}
|
|
3210
3221
|
initializeClient() {
|
|
3211
3222
|
return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
|
|
3212
|
-
const t2 =
|
|
3223
|
+
const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
|
|
3213
3224
|
this.handleRequestError(e2, t2);
|
|
3214
3225
|
}).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
|
|
3215
3226
|
}
|
|
3216
3227
|
registerInstance() {
|
|
3217
3228
|
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;
|
|
3218
3229
|
}
|
|
3219
|
-
registerDocumentAsync(e2, t2,
|
|
3220
|
-
return
|
|
3221
|
-
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !
|
|
3222
|
-
this.handleRequestError(t3,
|
|
3230
|
+
registerDocumentAsync(e2, t2, n2, r2 = "", s2 = "") {
|
|
3231
|
+
return i(this, 0, void 0, function* () {
|
|
3232
|
+
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !n2, r2, s2).catch((t3) => {
|
|
3233
|
+
this.handleRequestError(t3, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, le(this.getReport()), le(e2)));
|
|
3223
3234
|
})) || "";
|
|
3224
3235
|
});
|
|
3225
3236
|
}
|
|
@@ -3241,7 +3252,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3241
3252
|
return e2.ContentOnly = true, e2.UseSVG = true, e2;
|
|
3242
3253
|
}
|
|
3243
3254
|
createDeviceInfo() {
|
|
3244
|
-
let e2 = new
|
|
3255
|
+
let e2 = new n();
|
|
3245
3256
|
this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
|
|
3246
3257
|
let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
|
|
3247
3258
|
return e2.enableSearch = !i2 || t2, e2;
|
|
@@ -3252,10 +3263,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
3252
3263
|
});
|
|
3253
3264
|
}
|
|
3254
3265
|
getReportParameters() {
|
|
3266
|
+
if (!this.parameterValues)
|
|
3267
|
+
return {};
|
|
3255
3268
|
const e2 = {}, t2 = this.getProcessedParameterValues();
|
|
3256
3269
|
for (let i2 in t2) {
|
|
3257
3270
|
const n2 = t2[i2], r2 = this.parameterValues[i2];
|
|
3258
|
-
n2 && n2.availableValues ? n2.multivalue ? e2[i2] =
|
|
3271
|
+
n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
|
|
3259
3272
|
}
|
|
3260
3273
|
return e2;
|
|
3261
3274
|
}
|
|
@@ -3265,11 +3278,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
3265
3278
|
getProcessedParameterValues() {
|
|
3266
3279
|
return this.processedParameterValues;
|
|
3267
3280
|
}
|
|
3268
|
-
getDocumentInfo(t2,
|
|
3269
|
-
return t2 && this.emit("beginLoadReport"), new Promise((
|
|
3270
|
-
let o2 = () =>
|
|
3271
|
-
this.cancelLoad ?
|
|
3272
|
-
|
|
3281
|
+
getDocumentInfo(t2, n2) {
|
|
3282
|
+
return t2 && this.emit("beginLoadReport"), new Promise((r2, s2) => {
|
|
3283
|
+
let o2 = () => i(this, 0, void 0, function* () {
|
|
3284
|
+
this.cancelLoad ? s2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, n2).then((i2) => {
|
|
3285
|
+
i2 && i2.documentReady ? r2(i2) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i2.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i2.pageCount, this.emit("reportLoadProgress", i2)), window.setTimeout(o2, 500));
|
|
3273
3286
|
}).catch((e2) => {
|
|
3274
3287
|
"InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
|
|
3275
3288
|
}));
|
|
@@ -3328,11 +3341,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
3328
3341
|
}
|
|
3329
3342
|
missingOrInvalidParameters(e2) {
|
|
3330
3343
|
let t2 = this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3331
|
-
e2.forEach((e3) => {
|
|
3344
|
+
null == e2 || e2.forEach((e3) => {
|
|
3332
3345
|
t2 += `\r
|
|
3333
3346
|
${e3.text} (${e3.id})`;
|
|
3334
3347
|
}), this.raiseError(t2), this.emit("missingOrInvalidParameters");
|
|
3335
3348
|
}
|
|
3349
|
+
handleParametersNotification(e2) {
|
|
3350
|
+
e2 ? this.showNotification(this.options.messages.ReportViewer_TryReportPreview || "The report may now be previewed.") : this.missingOrInvalidParameters(null);
|
|
3351
|
+
}
|
|
3336
3352
|
setSearchInitiated(e2) {
|
|
3337
3353
|
this.searchInitiated = e2;
|
|
3338
3354
|
}
|
|
@@ -3397,13 +3413,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3397
3413
|
constructor(e2, t2) {
|
|
3398
3414
|
this.url = e2, this.getPersonalAccessToken = t2;
|
|
3399
3415
|
}
|
|
3400
|
-
}, e.ReportSourceOptions =
|
|
3416
|
+
}, e.ReportSourceOptions = _e, e.RequestError = g, e.SearchInfo = class {
|
|
3401
3417
|
constructor() {
|
|
3402
3418
|
this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
|
|
3403
3419
|
}
|
|
3404
|
-
}, e.SearchManager = class extends
|
|
3420
|
+
}, e.SearchManager = class extends $ {
|
|
3405
3421
|
constructor(e2, t2) {
|
|
3406
|
-
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer =
|
|
3422
|
+
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = ge(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
|
|
3407
3423
|
}
|
|
3408
3424
|
search(e2) {
|
|
3409
3425
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
|
@@ -3412,15 +3428,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3412
3428
|
this.isActive = false, this.clearColoredItems(), this.searchResults = [];
|
|
3413
3429
|
}
|
|
3414
3430
|
highlightSearchItem(t2) {
|
|
3415
|
-
t2 && (this.currentHighlightedElement && (
|
|
3431
|
+
t2 && (this.currentHighlightedElement && (ne(this.currentHighlightedElement, Ge), ie(this.currentHighlightedElement, Je)), 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));
|
|
3416
3432
|
}
|
|
3417
3433
|
navigateToPage(e2) {
|
|
3418
|
-
this.controller.navigateToPage(e2.page, new
|
|
3434
|
+
this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
|
|
3419
3435
|
}
|
|
3420
3436
|
colorPageElements(e2) {
|
|
3421
3437
|
e2 && 0 !== e2.length && (e2.forEach((e3) => {
|
|
3422
|
-
let t2 =
|
|
3423
|
-
t2 && (
|
|
3438
|
+
let t2 = ge(this.pageContainer, "[data-search-id=" + e3.id + "]");
|
|
3439
|
+
t2 && (ie(t2, Je), this.highlightedElements.push(t2));
|
|
3424
3440
|
}), this.highlightItem(this.pendingHighlightItem));
|
|
3425
3441
|
}
|
|
3426
3442
|
highlightItem(e2) {
|
|
@@ -3428,13 +3444,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3428
3444
|
let t2 = this.highlightedElements.find(function(t3) {
|
|
3429
3445
|
return t3.dataset.searchId === e2.id;
|
|
3430
3446
|
});
|
|
3431
|
-
t2 && (this.currentHighlightedElement = t2,
|
|
3447
|
+
t2 && (this.currentHighlightedElement = t2, ne(t2, Je), ie(t2, Ge));
|
|
3432
3448
|
}
|
|
3433
3449
|
}
|
|
3434
3450
|
clearColoredItems() {
|
|
3435
3451
|
this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
|
|
3436
|
-
|
|
3437
|
-
}), this.currentHighlightedElement &&
|
|
3452
|
+
ne(e2, Je);
|
|
3453
|
+
}), this.currentHighlightedElement && ne(this.currentHighlightedElement, Ge), this.highlightedElements = [], this.currentHighlightedElement = null;
|
|
3438
3454
|
}
|
|
3439
3455
|
applySearchColors() {
|
|
3440
3456
|
this.isActive && this.colorPageElements(this.searchResults);
|
|
@@ -3451,18 +3467,18 @@ ${e3.text} (${e3.id})`;
|
|
|
3451
3467
|
this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
|
|
3452
3468
|
}
|
|
3453
3469
|
getConnectionConfig(e2) {
|
|
3454
|
-
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new
|
|
3470
|
+
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new A(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new R(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new T(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new R("", () => Promise.resolve(e2.serverShareToken)) : new w(e2.serviceUrl);
|
|
3455
3471
|
}
|
|
3456
3472
|
getAuthStrategy(t2) {
|
|
3457
3473
|
switch (t2.authType) {
|
|
3458
3474
|
case e.AuthType.None:
|
|
3459
|
-
return new
|
|
3475
|
+
return new P();
|
|
3460
3476
|
case e.AuthType.Basic:
|
|
3461
|
-
return new
|
|
3477
|
+
return new C(t2);
|
|
3462
3478
|
case e.AuthType.PersonalToken:
|
|
3463
|
-
return new
|
|
3479
|
+
return new y(t2);
|
|
3464
3480
|
default:
|
|
3465
|
-
return new
|
|
3481
|
+
return new P();
|
|
3466
3482
|
}
|
|
3467
3483
|
}
|
|
3468
3484
|
validateClientID(e2) {
|
|
@@ -3471,15 +3487,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3471
3487
|
}
|
|
3472
3488
|
authenticatedGet(e2) {
|
|
3473
3489
|
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:
|
|
3490
|
+
return fetch(e3, { headers: m(t3) }).then(f);
|
|
3475
3491
|
}(e2, t2.access_token || t2.accessToken));
|
|
3476
3492
|
}
|
|
3477
3493
|
authenticatedPost(e2, t2) {
|
|
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)) :
|
|
3494
|
+
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)) : v(e2, t2, i2.access_token || i2.accessToken));
|
|
3479
3495
|
}
|
|
3480
3496
|
authenticatedDelete(e2) {
|
|
3481
3497
|
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:
|
|
3498
|
+
return fetch(e3, { method: "DELETE", headers: m(t3) }).then(f);
|
|
3483
3499
|
}(e2, t2.access_token || t2.accessToken));
|
|
3484
3500
|
}
|
|
3485
3501
|
login() {
|
|
@@ -3563,15 +3579,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3563
3579
|
return e2.clientSessionTimeout;
|
|
3564
3580
|
});
|
|
3565
3581
|
}
|
|
3566
|
-
}, e.TooltipEventArgs =
|
|
3582
|
+
}, e.TooltipEventArgs = p, e.addClass = ie, e.appendHtml = ue, e.createElement = te, e.debounce = ve, e.each = we, e.escapeHtml = le, e.findElement = ge, e.getColorAlphaValue = de, e.getElementAttributeValue = me, e.getElementScrollParent = fe, e.getOffsetParent = se, e.hasClass = re, e.isArray = Te, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = ce, e.keepElementInView = function(e2) {
|
|
3567
3583
|
if (!e2)
|
|
3568
3584
|
return;
|
|
3569
|
-
let t2 =
|
|
3585
|
+
let t2 = fe(e2);
|
|
3570
3586
|
if (!t2)
|
|
3571
3587
|
return;
|
|
3572
3588
|
let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
|
|
3573
3589
|
i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
|
|
3574
|
-
}, e.parseToLocalDate =
|
|
3590
|
+
}, e.parseToLocalDate = Ee, e.prependHtml = pe, e.removeClass = ne, e.reportSourcesAreEqual = function(e2) {
|
|
3575
3591
|
const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
|
|
3576
3592
|
if (t2 && i2 && t2.report === i2.report) {
|
|
3577
3593
|
let e3 = "";
|
|
@@ -3580,7 +3596,7 @@ ${e3.text} (${e3.id})`;
|
|
|
3580
3596
|
return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
|
|
3581
3597
|
}
|
|
3582
3598
|
return false;
|
|
3583
|
-
}, e.scaleElement =
|
|
3599
|
+
}, e.scaleElement = ae, e.stringFormat = be, e.throttle = Pe, e.toPixel = oe, e.toRgbColor = he, e.tryParseFloat = Re, e.tryParseInt = Ae;
|
|
3584
3600
|
});
|
|
3585
3601
|
})(dist, dist.exports);
|
|
3586
3602
|
var distExports = dist.exports;
|
|
@@ -3819,33 +3835,33 @@ ${e3.text} (${e3.id})`;
|
|
|
3819
3835
|
|
|
3820
3836
|
const utils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3821
3837
|
__proto__: null,
|
|
3822
|
-
isSpecialKey,
|
|
3823
|
-
rectangle,
|
|
3824
|
-
generateGuidString,
|
|
3825
|
-
trim,
|
|
3826
|
-
replaceAll,
|
|
3827
|
-
lTrim,
|
|
3828
|
-
rTrim,
|
|
3829
|
-
stringFormat,
|
|
3830
|
-
escapeHtml,
|
|
3831
3838
|
adjustTimezone,
|
|
3832
|
-
unadjustTimezone,
|
|
3833
3839
|
areEqual,
|
|
3834
3840
|
areEqualArrays,
|
|
3835
|
-
|
|
3836
|
-
isApplicationExceptionInstance,
|
|
3841
|
+
escapeHtml,
|
|
3837
3842
|
exceptionTypeNamesMatch,
|
|
3838
|
-
parseJSON,
|
|
3839
|
-
getExceptionInstance,
|
|
3840
3843
|
filterUniqueLastOccurrence,
|
|
3844
|
+
generateGuidString,
|
|
3845
|
+
getColorAlphaValue,
|
|
3846
|
+
getExceptionInstance,
|
|
3847
|
+
isApplicationException,
|
|
3848
|
+
isApplicationExceptionInstance,
|
|
3849
|
+
isRgbColor,
|
|
3850
|
+
isSpecialKey,
|
|
3851
|
+
lTrim,
|
|
3841
3852
|
logError,
|
|
3853
|
+
parseJSON,
|
|
3854
|
+
parseToLocalDate: distExports.parseToLocalDate,
|
|
3855
|
+
rTrim,
|
|
3856
|
+
rectangle,
|
|
3857
|
+
replaceAll,
|
|
3858
|
+
reportSourcesAreEqual: distExports.reportSourcesAreEqual,
|
|
3859
|
+
stringFormat,
|
|
3842
3860
|
toRgbColor,
|
|
3843
|
-
|
|
3844
|
-
getColorAlphaValue,
|
|
3845
|
-
tryParseInt: distExports.tryParseInt,
|
|
3861
|
+
trim,
|
|
3846
3862
|
tryParseFloat: distExports.tryParseFloat,
|
|
3847
|
-
|
|
3848
|
-
|
|
3863
|
+
tryParseInt: distExports.tryParseInt,
|
|
3864
|
+
unadjustTimezone
|
|
3849
3865
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3850
3866
|
|
|
3851
3867
|
function toPixels(value) {
|
|
@@ -3890,9 +3906,9 @@ ${e3.text} (${e3.id})`;
|
|
|
3890
3906
|
|
|
3891
3907
|
const domUtils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3892
3908
|
__proto__: null,
|
|
3909
|
+
getBorderWidth,
|
|
3893
3910
|
getMargins,
|
|
3894
3911
|
getPadding,
|
|
3895
|
-
getBorderWidth,
|
|
3896
3912
|
scale
|
|
3897
3913
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3898
3914
|
|
|
@@ -3928,8 +3944,8 @@ ${e3.text} (${e3.id})`;
|
|
|
3928
3944
|
if (content.length > 0) {
|
|
3929
3945
|
content.focus();
|
|
3930
3946
|
}
|
|
3931
|
-
}).on("pageReady", (
|
|
3932
|
-
initPage(
|
|
3947
|
+
}).on("pageReady", (pageInfo) => {
|
|
3948
|
+
initPage(pageInfo);
|
|
3933
3949
|
}).on("error", (event, message) => {
|
|
3934
3950
|
focusOnErrorMessage();
|
|
3935
3951
|
window.setTimeout(setAccessibilityUI, 500);
|
|
@@ -3950,8 +3966,8 @@ ${e3.text} (${e3.id})`;
|
|
|
3950
3966
|
$errMsg.attr("tabIndex", 0);
|
|
3951
3967
|
$errMsg.focus();
|
|
3952
3968
|
}
|
|
3953
|
-
function initPage(
|
|
3954
|
-
if (!
|
|
3969
|
+
function initPage(pageInfo) {
|
|
3970
|
+
if (!pageInfo) {
|
|
3955
3971
|
return;
|
|
3956
3972
|
}
|
|
3957
3973
|
setAccessibilityUI();
|
|
@@ -6227,7 +6243,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6227
6243
|
// #endregion
|
|
6228
6244
|
}
|
|
6229
6245
|
|
|
6230
|
-
|
|
6246
|
+
let EventEmitter$1 = class EventEmitter extends EventTarget {
|
|
6231
6247
|
_events;
|
|
6232
6248
|
_eventsCount;
|
|
6233
6249
|
constructor() {
|
|
@@ -6345,7 +6361,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6345
6361
|
}
|
|
6346
6362
|
return this.removeListener(type, listener);
|
|
6347
6363
|
}
|
|
6348
|
-
}
|
|
6364
|
+
};
|
|
6349
6365
|
|
|
6350
6366
|
var defaultOptions$3 = {};
|
|
6351
6367
|
var Events = {
|
|
@@ -6409,7 +6425,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6409
6425
|
this.$previewButton.attr("aria-label", stringResources[this.$previewButton.attr("aria-label")]);
|
|
6410
6426
|
this.$previewButton.on("click", (e) => {
|
|
6411
6427
|
e.preventDefault();
|
|
6412
|
-
if (this.
|
|
6428
|
+
if (!this.controller.hasInvalidParameter(this.parameters)) {
|
|
6413
6429
|
this.applyParameters();
|
|
6414
6430
|
}
|
|
6415
6431
|
});
|
|
@@ -6550,22 +6566,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6550
6566
|
(error ? $.fn.addClass : $.fn.removeClass).call(this.$element, "trv-error");
|
|
6551
6567
|
}
|
|
6552
6568
|
showPreviewButton(parameters) {
|
|
6553
|
-
(this.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
|
|
6554
|
-
}
|
|
6555
|
-
allParametersAutoRefresh(parameters) {
|
|
6556
|
-
if (!parameters) {
|
|
6557
|
-
return true;
|
|
6558
|
-
}
|
|
6559
|
-
var allAuto = Array.from(parameters).every((parameter) => {
|
|
6560
|
-
return !parameter.isVisible || parameter.autoRefresh;
|
|
6561
|
-
});
|
|
6562
|
-
return allAuto;
|
|
6563
|
-
}
|
|
6564
|
-
allParametersValid() {
|
|
6565
|
-
var allValid = Array.from(this.parameters).every((parameter) => {
|
|
6566
|
-
return !parameter.Error;
|
|
6567
|
-
});
|
|
6568
|
-
return allValid;
|
|
6569
|
+
(this.controller.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
|
|
6569
6570
|
}
|
|
6570
6571
|
clearEditors() {
|
|
6571
6572
|
Object.entries(this.editors).forEach(([key, editor]) => {
|
|
@@ -6596,7 +6597,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6596
6597
|
parameter.Error = stringResources.invalidParameter;
|
|
6597
6598
|
}
|
|
6598
6599
|
if (parameter.availableValues) {
|
|
6599
|
-
this.processedParameterValues[parameter.id] = { valueMember: parameter.value, displayMember: parameter.label, availableValues: parameter.availableValues, multivalue: parameter.multivalue };
|
|
6600
|
+
this.processedParameterValues[parameter.id] = { valueMember: parameter.value, displayMember: parameter.label, availableValues: parameter.availableValues, multivalue: parameter.multivalue, allowNull: parameter.allowNull };
|
|
6600
6601
|
} else {
|
|
6601
6602
|
this.processedParameterValues[parameter.id] = parameter.value;
|
|
6602
6603
|
}
|
|
@@ -6636,7 +6637,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6636
6637
|
}
|
|
6637
6638
|
}
|
|
6638
6639
|
this.showPreviewButton(this.parameters);
|
|
6639
|
-
var allValid = this.
|
|
6640
|
+
var allValid = !this.controller.hasInvalidParameter(this.parameters);
|
|
6640
6641
|
this.enablePreviewButton(allValid);
|
|
6641
6642
|
this.applyProcessedParameters();
|
|
6642
6643
|
}
|
|
@@ -6647,17 +6648,9 @@ ${e3.text} (${e3.id})`;
|
|
|
6647
6648
|
applyProcessedParameters() {
|
|
6648
6649
|
this.controller.setProcessedParameterValues($.extend({}, this.processedParameterValues));
|
|
6649
6650
|
}
|
|
6650
|
-
allParametersValidForAutoRefresh() {
|
|
6651
|
-
var triggerAutoUpdate = true;
|
|
6652
|
-
for (var i = this.parameters.length - 1; triggerAutoUpdate && i >= 0; i--) {
|
|
6653
|
-
var p = this.parameters[i];
|
|
6654
|
-
triggerAutoUpdate = p.id in this.recentParameterValues && (Boolean(p.autoRefresh) || !p.isVisible);
|
|
6655
|
-
}
|
|
6656
|
-
return triggerAutoUpdate;
|
|
6657
|
-
}
|
|
6658
6651
|
tryRefreshReport() {
|
|
6659
6652
|
this.trigger(Events.PARAMETERS_READY, this.recentParameterValues);
|
|
6660
|
-
if (this.allParametersValidForAutoRefresh() && this.controller.autoRunEnabled) {
|
|
6653
|
+
if (this.controller.allParametersValidForAutoRefresh(this.parameters, this.recentParameterValues) && this.controller.autoRunEnabled) {
|
|
6661
6654
|
this.applyParameters();
|
|
6662
6655
|
}
|
|
6663
6656
|
}
|
|
@@ -6696,7 +6689,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6696
6689
|
if (parameter.childParameters) {
|
|
6697
6690
|
this.updateParameters(this.tryRefreshReport.bind(this));
|
|
6698
6691
|
} else {
|
|
6699
|
-
var allValid = this.
|
|
6692
|
+
var allValid = !this.controller.hasInvalidParameter(this.parameters);
|
|
6700
6693
|
this.enablePreviewButton(allValid);
|
|
6701
6694
|
if (allValid) {
|
|
6702
6695
|
var errorMsg = document.querySelector(".trv-pages-area .trv-error-message");
|
|
@@ -8627,48 +8620,49 @@ ${e3.text} (${e3.id})`;
|
|
|
8627
8620
|
promptSuggestions
|
|
8628
8621
|
});
|
|
8629
8622
|
this.kendoAiPrompt.activeView(this.kendoAiPrompt.activeView());
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
return;
|
|
8644
|
-
}
|
|
8645
|
-
that.controller.getAIResponse(event.prompt).then((response) => {
|
|
8646
|
-
this.addPromptOutput(that.createPromptOutputFromResponse(response, event));
|
|
8647
|
-
this.activeView(1);
|
|
8648
|
-
}).catch((error) => {
|
|
8649
|
-
this.addPromptOutput(that.createPromptOutputFromResponse(error?._responseJSON?.exceptionMessage || error?._responseJSON?.ExceptionMessage, event));
|
|
8650
|
-
this.activeView(1);
|
|
8651
|
-
});
|
|
8652
|
-
},
|
|
8653
|
-
toolbarItems: [
|
|
8654
|
-
{ type: "spacer" },
|
|
8655
|
-
{ type: "button", icon: "x", fillMode: "flat", themeColor: "primary", click: (e) => {
|
|
8656
|
-
this.close();
|
|
8657
|
-
} }
|
|
8658
|
-
],
|
|
8659
|
-
promptSuggestions,
|
|
8660
|
-
views: [
|
|
8661
|
-
{
|
|
8662
|
-
type: "prompt",
|
|
8663
|
-
messages: {
|
|
8664
|
-
promptPlaceholder: "Enter your prompt"
|
|
8623
|
+
} else {
|
|
8624
|
+
const aiPromptElement = this.kendoAiPromptDialog?.element?.find("#trv-ai-prompt");
|
|
8625
|
+
if (!aiPromptElement) {
|
|
8626
|
+
console.warn('Failed to initialize AI prompt dialog due to missing element with id "trv-ai-prompt".');
|
|
8627
|
+
return;
|
|
8628
|
+
}
|
|
8629
|
+
const that = this;
|
|
8630
|
+
this.kendoAiPrompt = new kendo.ui.AIPrompt(aiPromptElement, {
|
|
8631
|
+
activeView: 0,
|
|
8632
|
+
promptRequest: function(event) {
|
|
8633
|
+
if (!event.prompt) {
|
|
8634
|
+
this.activeView(0);
|
|
8635
|
+
return;
|
|
8665
8636
|
}
|
|
8637
|
+
that.controller.getAIResponse(event.prompt).then((response) => {
|
|
8638
|
+
this.addPromptOutput(that.createPromptOutputFromResponse(response, event));
|
|
8639
|
+
this.activeView(1);
|
|
8640
|
+
}).catch((error) => {
|
|
8641
|
+
this.addPromptOutput(that.createPromptOutputFromResponse(error?._responseJSON?.exceptionMessage || error?._responseJSON?.ExceptionMessage, event));
|
|
8642
|
+
this.activeView(1);
|
|
8643
|
+
});
|
|
8666
8644
|
},
|
|
8667
|
-
|
|
8668
|
-
type: "
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8645
|
+
toolbarItems: [
|
|
8646
|
+
{ type: "spacer" },
|
|
8647
|
+
{ type: "button", icon: "x", fillMode: "flat", themeColor: "primary", click: (e) => {
|
|
8648
|
+
this.close();
|
|
8649
|
+
} }
|
|
8650
|
+
],
|
|
8651
|
+
promptSuggestions,
|
|
8652
|
+
views: [
|
|
8653
|
+
{
|
|
8654
|
+
type: "prompt",
|
|
8655
|
+
messages: {
|
|
8656
|
+
promptPlaceholder: "Enter your prompt"
|
|
8657
|
+
}
|
|
8658
|
+
},
|
|
8659
|
+
{
|
|
8660
|
+
type: "output"
|
|
8661
|
+
}
|
|
8662
|
+
]
|
|
8663
|
+
});
|
|
8664
|
+
this.aiPromptInitialized = true;
|
|
8665
|
+
}
|
|
8672
8666
|
this.disableAiPromptTextArea(promptSuggestions && promptSuggestions.length > 0);
|
|
8673
8667
|
const aiPromptToolbar = this.kendoAiPrompt.element.find(".k-prompt-header .k-toolbar").data("kendoToolBar");
|
|
8674
8668
|
aiPromptToolbar && aiPromptToolbar.bind("toggle", (e) => {
|
|
@@ -8676,7 +8670,6 @@ ${e3.text} (${e3.id})`;
|
|
|
8676
8670
|
this.disableAiPromptTextArea(promptSuggestions && promptSuggestions.length > 0);
|
|
8677
8671
|
}
|
|
8678
8672
|
});
|
|
8679
|
-
this.aiPromptInitialized = true;
|
|
8680
8673
|
}
|
|
8681
8674
|
disableAiPromptTextArea(hasPromptSuggestions) {
|
|
8682
8675
|
if (this.allowCustomPrompts) {
|
|
@@ -8882,7 +8875,7 @@ ${e3.text} (${e3.id})`;
|
|
|
8882
8875
|
if (!validateOptions(options)) {
|
|
8883
8876
|
return;
|
|
8884
8877
|
}
|
|
8885
|
-
var version = "19.3.
|
|
8878
|
+
var version = "19.3.26.121";
|
|
8886
8879
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
|
8887
8880
|
settings = new ReportViewerSettings(
|
|
8888
8881
|
persistanceKey,
|
|
@@ -9897,7 +9890,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9897
9890
|
exports.parameterEditorsMatch = parameterEditorsMatch;
|
|
9898
9891
|
exports.utils = utils;
|
|
9899
9892
|
|
|
9900
|
-
Object.
|
|
9893
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9901
9894
|
|
|
9902
9895
|
return exports;
|
|
9903
9896
|
|