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