@progress/telerik-jquery-report-viewer 28.25.1111 → 28.26.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/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 +6 -31
- 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.1111.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 +424 -431
- 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
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
|
-
},
|
|
1661
|
+
}, M.prototype.addListener = function(e2, t2) {
|
|
1675
1662
|
return k(this, e2, t2, false);
|
|
1676
|
-
},
|
|
1663
|
+
}, M.prototype.on = M.prototype.addListener, M.prototype.prependListener = function(e2, t2) {
|
|
1677
1664
|
return k(this, e2, t2, true);
|
|
1678
|
-
},
|
|
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 ke = "System.Int64",
|
|
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
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,32 +2200,35 @@ 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
|
-
if (!n2)
|
|
2210
|
+
if (!n2) {
|
|
2211
|
+
if (e2.allowNull && null === t2)
|
|
2212
|
+
return { valueMember: null, displayMember: null };
|
|
2224
2213
|
throw new Error(`The available values of parameter ${i2} do not contain Value property that equals ${t2}`);
|
|
2214
|
+
}
|
|
2225
2215
|
return { valueMember: t2, displayMember: n2.name };
|
|
2226
2216
|
} catch (e3) {
|
|
2227
2217
|
return;
|
|
2228
2218
|
}
|
|
2229
2219
|
}
|
|
2230
|
-
function
|
|
2220
|
+
function ze(e2, t2, i2) {
|
|
2231
2221
|
const n2 = [];
|
|
2232
2222
|
for (let r2 in t2)
|
|
2233
|
-
n2.push(
|
|
2223
|
+
n2.push(Ve(e2, t2[r2], i2));
|
|
2234
2224
|
return n2;
|
|
2235
2225
|
}
|
|
2236
|
-
class
|
|
2226
|
+
class _e {
|
|
2237
2227
|
constructor(e2 = "", t2 = {}) {
|
|
2238
2228
|
this.report = e2, this.parameters = t2;
|
|
2239
2229
|
}
|
|
2240
2230
|
}
|
|
2241
|
-
class
|
|
2231
|
+
class Ue extends $ {
|
|
2242
2232
|
constructor(e2) {
|
|
2243
2233
|
super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
|
|
2244
2234
|
}
|
|
@@ -2246,7 +2236,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2246
2236
|
this.destroyResizeObserver();
|
|
2247
2237
|
}
|
|
2248
2238
|
initResizeObserver() {
|
|
2249
|
-
this.debounceResize =
|
|
2239
|
+
this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
|
|
2250
2240
|
}
|
|
2251
2241
|
destroyResizeObserver() {
|
|
2252
2242
|
this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
|
|
@@ -2255,8 +2245,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
2255
2245
|
e2[0].target === this.element && this.emit("resize");
|
|
2256
2246
|
}
|
|
2257
2247
|
}
|
|
2258
|
-
const
|
|
2259
|
-
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 {
|
|
2260
2250
|
constructor(t2, i2, n2) {
|
|
2261
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));
|
|
2262
2252
|
}
|
|
@@ -2278,10 +2268,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2278
2268
|
return this.enabled;
|
|
2279
2269
|
}
|
|
2280
2270
|
enable() {
|
|
2281
|
-
this.enabled = true,
|
|
2271
|
+
this.enabled = true, ie(this.placeholder, "scrollable"), this.initEvents();
|
|
2282
2272
|
}
|
|
2283
2273
|
disable() {
|
|
2284
|
-
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());
|
|
2285
2275
|
}
|
|
2286
2276
|
renderPage(e2) {
|
|
2287
2277
|
let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
|
|
@@ -2296,7 +2286,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2296
2286
|
this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
|
|
2297
2287
|
}
|
|
2298
2288
|
setCurrentPage(e2) {
|
|
2299
|
-
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);
|
|
2300
2290
|
}
|
|
2301
2291
|
updatePageArea(e2) {
|
|
2302
2292
|
var t2;
|
|
@@ -2321,18 +2311,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
2321
2311
|
return this.controller.getCurrentPageNumber();
|
|
2322
2312
|
}
|
|
2323
2313
|
isSkeletonScreen(e2, t2) {
|
|
2324
|
-
return !(!e2 && !(e2 = this.findPageElement(t2))) &&
|
|
2314
|
+
return !(!e2 && !(e2 = this.findPageElement(t2))) && re(e2, "trv-skeleton-" + t2);
|
|
2325
2315
|
}
|
|
2326
2316
|
addSkeletonScreen(e2, t2) {
|
|
2327
|
-
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 =
|
|
2328
|
-
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);
|
|
2329
2319
|
}
|
|
2330
2320
|
generateSkeletonScreens(e2) {
|
|
2331
2321
|
var t2;
|
|
2332
|
-
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;
|
|
2333
2323
|
for (; a2 < e2; a2++)
|
|
2334
|
-
i2 +=
|
|
2335
|
-
|
|
2324
|
+
i2 += be($e, a2, r2, s2);
|
|
2325
|
+
ue(this.pageWrapper, i2);
|
|
2336
2326
|
}
|
|
2337
2327
|
loadMorePages() {
|
|
2338
2328
|
var e2;
|
|
@@ -2383,10 +2373,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2383
2373
|
}
|
|
2384
2374
|
}
|
|
2385
2375
|
initEvents() {
|
|
2386
|
-
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll =
|
|
2376
|
+
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
|
|
2387
2377
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2388
2378
|
!this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
|
|
2389
|
-
}, 250), this.throttleScroll =
|
|
2379
|
+
}, 250), this.throttleScroll = Pe(() => {
|
|
2390
2380
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2391
2381
|
this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
|
|
2392
2382
|
}, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
|
|
@@ -2481,7 +2471,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2481
2471
|
return i2 && i2.length ? i2[i2.length - 1] : null;
|
|
2482
2472
|
}
|
|
2483
2473
|
}
|
|
2484
|
-
class
|
|
2474
|
+
class Be {
|
|
2485
2475
|
constructor() {
|
|
2486
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;
|
|
2487
2477
|
}
|
|
@@ -2489,7 +2479,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2489
2479
|
this.reset(e2), this.attachToScrollEvent();
|
|
2490
2480
|
}
|
|
2491
2481
|
reset(e2) {
|
|
2492
|
-
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: {} };
|
|
2493
2483
|
}
|
|
2494
2484
|
setScaleFactor(e2) {
|
|
2495
2485
|
this.scaleFactor = e2;
|
|
@@ -2512,7 +2502,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2512
2502
|
saveFreezeItemsInitialState(e2) {
|
|
2513
2503
|
var t2, i2, n2;
|
|
2514
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;
|
|
2515
|
-
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) => {
|
|
2516
2506
|
var i3;
|
|
2517
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;
|
|
2518
2508
|
switch (n3) {
|
|
@@ -2534,7 +2524,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2534
2524
|
}
|
|
2535
2525
|
updateFreezeItemsOnScroll(e2, t2, i2) {
|
|
2536
2526
|
var n2, r2;
|
|
2537
|
-
let s2 =
|
|
2527
|
+
let s2 = ge(this.placeholder, "div[data-id='" + e2 + "']");
|
|
2538
2528
|
if (!s2)
|
|
2539
2529
|
return;
|
|
2540
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 + "']");
|
|
@@ -2559,7 +2549,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2559
2549
|
"IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
|
|
2560
2550
|
}
|
|
2561
2551
|
hasSetBgColor(e2) {
|
|
2562
|
-
return
|
|
2552
|
+
return de(e2) > 0;
|
|
2563
2553
|
}
|
|
2564
2554
|
isFrozen(e2) {
|
|
2565
2555
|
return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
|
|
@@ -2579,21 +2569,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
2579
2569
|
return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
|
|
2580
2570
|
}
|
|
2581
2571
|
}
|
|
2582
|
-
const
|
|
2583
|
-
function
|
|
2572
|
+
const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
|
|
2573
|
+
function je(e2, t2) {
|
|
2584
2574
|
let i2 = Array.isArray(t2);
|
|
2585
|
-
return e2 ? e2.replace(
|
|
2575
|
+
return e2 ? e2.replace(qe, function(e3, n2) {
|
|
2586
2576
|
return t2[i2 ? parseInt(n2) : n2];
|
|
2587
2577
|
}) : "";
|
|
2588
2578
|
}
|
|
2589
|
-
const
|
|
2590
|
-
e.BasicAuth =
|
|
2579
|
+
const Je = "trv-search-dialog-shaded-result", Ge = "trv-search-dialog-highlighted-result";
|
|
2580
|
+
e.BasicAuth = C, e.BookmarkNode = class {
|
|
2591
2581
|
constructor() {
|
|
2592
2582
|
this.id = "", this.text = "", this.page = 0, this.items = null;
|
|
2593
2583
|
}
|
|
2594
|
-
}, e.ConnectionConfig =
|
|
2584
|
+
}, e.ConnectionConfig = b, e.ConnectionConfigNoAuth = w, e.ConnectionConfigServerCredentials = A, e.ConnectionConfigServerNoAuth = T, e.ConnectionConfigServerToken = R, e.ContentArea = class {
|
|
2595
2585
|
constructor(e2, t2, i2, n2 = {}) {
|
|
2596
|
-
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 || "";
|
|
2597
2587
|
}
|
|
2598
2588
|
destroy() {
|
|
2599
2589
|
this.resizeService && this.resizeService.destroy();
|
|
@@ -2620,10 +2610,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2620
2610
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
|
2621
2611
|
}
|
|
2622
2612
|
onReportLoadProgress(e2) {
|
|
2623
|
-
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(
|
|
2613
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
|
2624
2614
|
}
|
|
2625
2615
|
onReportLoadComplete(t2) {
|
|
2626
|
-
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));
|
|
2627
2617
|
}
|
|
2628
2618
|
onReportAutoRunOff() {
|
|
2629
2619
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
|
@@ -2634,6 +2624,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2634
2624
|
onMissingOrInvalidParameters() {
|
|
2635
2625
|
this.initialPageAreaImageUrl && !this.reportPageIsLoaded && (this.clearPage(), this.setPageAreaImage());
|
|
2636
2626
|
}
|
|
2627
|
+
onShowNotification(e2) {
|
|
2628
|
+
this.showNotification(e2);
|
|
2629
|
+
}
|
|
2637
2630
|
onError(e2, t2 = true) {
|
|
2638
2631
|
t2 && (this.disablePagesArea(false), this.disableParametersArea(false), this.clearPage()), this.showError(e2);
|
|
2639
2632
|
}
|
|
@@ -2717,14 +2710,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2717
2710
|
}
|
|
2718
2711
|
let e3 = 0, i3 = 0;
|
|
2719
2712
|
for (; n2 && n2 !== this.pageContainer; ) {
|
|
2720
|
-
if (
|
|
2713
|
+
if (re(n2, "trv-page-wrapper")) {
|
|
2721
2714
|
let t3 = n2.dataset.pageScale;
|
|
2722
2715
|
if ("string" == typeof t3) {
|
|
2723
2716
|
let n3 = parseFloat(t3);
|
|
2724
2717
|
e3 *= n3, i3 *= n3;
|
|
2725
2718
|
}
|
|
2726
2719
|
}
|
|
2727
|
-
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 =
|
|
2720
|
+
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = se(n2);
|
|
2728
2721
|
}
|
|
2729
2722
|
this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
|
|
2730
2723
|
} else
|
|
@@ -2738,7 +2731,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2738
2731
|
return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
|
|
2739
2732
|
}
|
|
2740
2733
|
disablePagesArea(e2) {
|
|
2741
|
-
e2 ?
|
|
2734
|
+
e2 ? ie(this.placeholder, "trv-loading") : ne(this.placeholder, "trv-loading");
|
|
2742
2735
|
}
|
|
2743
2736
|
disableParametersArea(e2) {
|
|
2744
2737
|
var t2, i2;
|
|
@@ -2748,13 +2741,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2748
2741
|
this.showNotification(e2, "error");
|
|
2749
2742
|
}
|
|
2750
2743
|
showNotification(e2 = "", t2 = "info") {
|
|
2751
|
-
this.notification.dataset.type
|
|
2752
|
-
|
|
2753
|
-
|
|
2744
|
+
let i2 = this.notification.dataset.type;
|
|
2745
|
+
i2 && ne(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
|
|
2746
|
+
let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
|
|
2747
|
+
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ie(this.notification, `k-notification-${t2}`), ne(this.notification, "k-hidden");
|
|
2754
2748
|
}
|
|
2755
2749
|
hideNotification() {
|
|
2756
2750
|
let e2 = String(this.notification.dataset.type);
|
|
2757
|
-
delete this.notification.dataset.type,
|
|
2751
|
+
delete this.notification.dataset.type, ne(this.notification, `k-notification-${e2}`), ie(this.notification, "k-hidden");
|
|
2758
2752
|
}
|
|
2759
2753
|
pageNo(e2) {
|
|
2760
2754
|
var t2;
|
|
@@ -2777,7 +2771,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2777
2771
|
r2 = JSON.parse(n2.dataset.box);
|
|
2778
2772
|
else {
|
|
2779
2773
|
let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
|
|
2780
|
-
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);
|
|
2781
2775
|
}
|
|
2782
2776
|
let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
|
|
2783
2777
|
if (0 === a2) {
|
|
@@ -2786,7 +2780,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2786
2780
|
}
|
|
2787
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;
|
|
2788
2782
|
let p2 = this.controller.getScale();
|
|
2789
|
-
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);
|
|
2790
2784
|
}
|
|
2791
2785
|
enableInteractivity() {
|
|
2792
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);
|
|
@@ -2809,24 +2803,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2809
2803
|
onInteractiveItemClick(e2, t2) {
|
|
2810
2804
|
var i2;
|
|
2811
2805
|
let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
|
|
2812
|
-
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();
|
|
2813
2807
|
}
|
|
2814
2808
|
onInteractiveItemEnter(e2) {
|
|
2815
2809
|
var t2;
|
|
2816
2810
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2817
|
-
n2 && this.controller.reportActionEnter(new
|
|
2811
|
+
n2 && this.controller.reportActionEnter(new s(e2, n2));
|
|
2818
2812
|
}
|
|
2819
2813
|
onInteractiveItemLeave(e2) {
|
|
2820
2814
|
var t2;
|
|
2821
2815
|
let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
|
|
2822
|
-
n2 && this.controller.reportActionLeave(new
|
|
2816
|
+
n2 && this.controller.reportActionLeave(new s(e2, n2));
|
|
2823
2817
|
}
|
|
2824
2818
|
onToolTipItemEnter(e2, t2) {
|
|
2825
2819
|
let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
|
|
2826
|
-
(i2 || n2) && this.controller.reportTooltipOpening(new
|
|
2820
|
+
(i2 || n2) && this.controller.reportTooltipOpening(new p(e2, n2 || "", i2 || "", t2));
|
|
2827
2821
|
}
|
|
2828
2822
|
onToolTipItemLeave(e2) {
|
|
2829
|
-
this.controller.reportTooltipClosing(new
|
|
2823
|
+
this.controller.reportTooltipClosing(new p(e2, "", "", null));
|
|
2830
2824
|
}
|
|
2831
2825
|
getNavigateToPageOnDocReady(e2, t2) {
|
|
2832
2826
|
var i2;
|
|
@@ -2844,7 +2838,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2844
2838
|
var t2;
|
|
2845
2839
|
let i2 = "trv-" + this.controller.getClientId() + "-styles";
|
|
2846
2840
|
null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
|
|
2847
|
-
let n2 =
|
|
2841
|
+
let n2 = te("style", i2);
|
|
2848
2842
|
n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
|
|
2849
2843
|
}
|
|
2850
2844
|
setPageContent(e2) {
|
|
@@ -2856,26 +2850,26 @@ var telerikReportViewer = (function (exports) {
|
|
|
2856
2850
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
|
2857
2851
|
}
|
|
2858
2852
|
renderPageElement(e2) {
|
|
2859
|
-
let t2 =
|
|
2853
|
+
let t2 = te("div");
|
|
2860
2854
|
t2.innerHTML = e2.pageContent;
|
|
2861
2855
|
let i2 = t2.querySelector("div.sheet");
|
|
2862
2856
|
i2.style.margin = "0";
|
|
2863
|
-
let n2 =
|
|
2864
|
-
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;
|
|
2865
2859
|
}
|
|
2866
2860
|
applyPlaceholderViewModeClass() {
|
|
2867
|
-
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"));
|
|
2868
2862
|
}
|
|
2869
2863
|
setPageAreaImage() {
|
|
2870
2864
|
this.clearPageAreaImage();
|
|
2871
|
-
let e2 =
|
|
2872
|
-
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;
|
|
2873
2867
|
}
|
|
2874
2868
|
clearPageAreaImage() {
|
|
2875
2869
|
var e2;
|
|
2876
|
-
null === (e2 = document.getElementById(
|
|
2870
|
+
null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
|
|
2877
2871
|
}
|
|
2878
|
-
}, e.CurrentPageChangedEventArgs =
|
|
2872
|
+
}, e.CurrentPageChangedEventArgs = u, e.DeviceInfo = n, e.DocumentInfo = class {
|
|
2879
2873
|
constructor() {
|
|
2880
2874
|
this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
|
|
2881
2875
|
}
|
|
@@ -2883,29 +2877,29 @@ var telerikReportViewer = (function (exports) {
|
|
|
2883
2877
|
constructor() {
|
|
2884
2878
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
|
2885
2879
|
}
|
|
2886
|
-
}, e.EmailInfo =
|
|
2880
|
+
}, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = Z, e.NoAuth = P, e.PageAction = class {
|
|
2887
2881
|
constructor() {
|
|
2888
2882
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
|
2889
2883
|
}
|
|
2890
|
-
}, e.PageActionEventArgs =
|
|
2884
|
+
}, e.PageActionEventArgs = s, e.PageInfo = class {
|
|
2891
2885
|
constructor() {
|
|
2892
2886
|
this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
|
|
2893
2887
|
}
|
|
2894
|
-
}, e.PageTargetElement =
|
|
2888
|
+
}, e.PageTargetElement = o, e.ParameterInfo = class {
|
|
2895
2889
|
constructor() {
|
|
2896
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 = "";
|
|
2897
2891
|
}
|
|
2898
|
-
}, e.ParameterValidators =
|
|
2892
|
+
}, e.ParameterValidators = Oe, e.ParameterValue = class {
|
|
2899
2893
|
constructor() {
|
|
2900
2894
|
this.name = "", this.value = null;
|
|
2901
2895
|
}
|
|
2902
|
-
}, e.PersonalTokenAuth =
|
|
2896
|
+
}, e.PersonalTokenAuth = y, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
|
|
2903
2897
|
constructor() {
|
|
2904
2898
|
this.name = "", this.localizedName = "";
|
|
2905
2899
|
}
|
|
2906
|
-
}, e.ReportController = class extends
|
|
2900
|
+
}, e.ReportController = class extends $ {
|
|
2907
2901
|
constructor(e2, t2) {
|
|
2908
|
-
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);
|
|
2909
2903
|
}
|
|
2910
2904
|
get autoRunEnabled() {
|
|
2911
2905
|
var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
|
|
@@ -2936,29 +2930,43 @@ var telerikReportViewer = (function (exports) {
|
|
|
2936
2930
|
this.cancelLoad = true, this.resetPageNumbers(), this.emit("renderingStopped");
|
|
2937
2931
|
});
|
|
2938
2932
|
}
|
|
2939
|
-
refreshReport(e2, t2, i2 = false) {
|
|
2940
|
-
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())
|
|
2941
2935
|
return void this.emit("noReport");
|
|
2942
|
-
let
|
|
2943
|
-
|
|
2944
|
-
this.emit("parametersLoaded", i3)
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
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)
|
|
2950
2945
|
try {
|
|
2951
|
-
let e3 =
|
|
2952
|
-
|
|
2946
|
+
let e3 = Oe.validate(r2, r2.value);
|
|
2947
|
+
t2[r2.id] = e3;
|
|
2953
2948
|
} catch (e3) {
|
|
2954
|
-
|
|
2949
|
+
n2 = true, i2.push(r2);
|
|
2955
2950
|
}
|
|
2956
|
-
|
|
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;
|
|
2957
2965
|
}
|
|
2958
2966
|
hasInvalidParameter(e2) {
|
|
2959
2967
|
for (const t2 of e2)
|
|
2960
2968
|
try {
|
|
2961
|
-
|
|
2969
|
+
Oe.validate(t2, t2.value);
|
|
2962
2970
|
} catch (e3) {
|
|
2963
2971
|
return true;
|
|
2964
2972
|
}
|
|
@@ -2990,7 +2998,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2990
2998
|
}
|
|
2991
2999
|
getReportSource() {
|
|
2992
3000
|
var e2;
|
|
2993
|
-
return new
|
|
3001
|
+
return new _e(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
|
|
2994
3002
|
}
|
|
2995
3003
|
setReportSource(e2) {
|
|
2996
3004
|
this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
|
|
@@ -3035,7 +3043,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3035
3043
|
return this.currentPageNumber;
|
|
3036
3044
|
}
|
|
3037
3045
|
setCurrentPageNumber(e2) {
|
|
3038
|
-
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)));
|
|
3039
3047
|
}
|
|
3040
3048
|
getPageCount() {
|
|
3041
3049
|
return this.pageCount;
|
|
@@ -3050,9 +3058,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3050
3058
|
if ("navigateToReport" === t2.Type) {
|
|
3051
3059
|
this.emit("serverActionStarted");
|
|
3052
3060
|
let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
|
|
3053
|
-
this.respectAutoRun = true, this.emit("navigateToReport", new
|
|
3061
|
+
this.respectAutoRun = true, this.emit("navigateToReport", new _e(e3.Report, i2));
|
|
3054
3062
|
} else if ("navigateToBookmark" === t2.Type) {
|
|
3055
|
-
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");
|
|
3056
3064
|
this.navigateToPage(e3, i2);
|
|
3057
3065
|
} else if ("sorting" === t2.Type)
|
|
3058
3066
|
this.execServerAction(t2.Id);
|
|
@@ -3078,40 +3086,40 @@ var telerikReportViewer = (function (exports) {
|
|
|
3078
3086
|
this.emit("toolTipClosing", e2);
|
|
3079
3087
|
}
|
|
3080
3088
|
printReport() {
|
|
3081
|
-
return
|
|
3089
|
+
return i(this, 0, void 0, function* () {
|
|
3082
3090
|
let e2 = this.createDeviceInfo();
|
|
3083
3091
|
e2.ImmediatePrint = true;
|
|
3084
|
-
let t2 = new
|
|
3092
|
+
let t2 = new c(e2);
|
|
3085
3093
|
this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
|
|
3086
3094
|
let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
|
|
3087
3095
|
t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
|
|
3088
|
-
let i2 = new
|
|
3096
|
+
let i2 = new d(t3);
|
|
3089
3097
|
this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
|
|
3090
3098
|
}));
|
|
3091
3099
|
});
|
|
3092
3100
|
}
|
|
3093
3101
|
exportReport(e2) {
|
|
3094
|
-
return
|
|
3095
|
-
let t2 = this.createDeviceInfo(),
|
|
3096
|
-
if (yield this.emitAsync("exportStart",
|
|
3097
|
-
let
|
|
3098
|
-
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)
|
|
3099
3107
|
return;
|
|
3100
|
-
this.setUIState("ExportInProgress", true), this.exportAsync(e2,
|
|
3101
|
-
let
|
|
3102
|
-
|
|
3103
|
-
let n3 = new
|
|
3104
|
-
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);
|
|
3105
3113
|
}));
|
|
3106
3114
|
}
|
|
3107
3115
|
});
|
|
3108
3116
|
}
|
|
3109
3117
|
sendReport(e2) {
|
|
3110
|
-
let t2 = this.createDeviceInfo(), i2 = new
|
|
3118
|
+
let t2 = this.createDeviceInfo(), i2 = new Me(t2, e2.format);
|
|
3111
3119
|
this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
|
|
3112
3120
|
let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
|
|
3113
3121
|
n2 += "?response-content-disposition=attachment";
|
|
3114
|
-
let r2 = new
|
|
3122
|
+
let r2 = new xe(e2, t2, n2);
|
|
3115
3123
|
this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
|
|
3116
3124
|
});
|
|
3117
3125
|
}
|
|
@@ -3120,9 +3128,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
3120
3128
|
}
|
|
3121
3129
|
createAIThread() {
|
|
3122
3130
|
return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
|
|
3123
|
-
if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage =
|
|
3124
|
-
for (let
|
|
3125
|
-
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.");
|
|
3126
3134
|
return e2;
|
|
3127
3135
|
});
|
|
3128
3136
|
}
|
|
@@ -3130,13 +3138,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
3130
3138
|
return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
|
|
3131
3139
|
}
|
|
3132
3140
|
exportAsync(e2, t2) {
|
|
3133
|
-
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* () {
|
|
3134
3142
|
return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
|
|
3135
3143
|
}));
|
|
3136
3144
|
}
|
|
3137
3145
|
sendDocumentAsync(e2, t2) {
|
|
3138
3146
|
return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
|
|
3139
|
-
this.handleRequestError(e3,
|
|
3147
|
+
this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, le(this.getReport())));
|
|
3140
3148
|
});
|
|
3141
3149
|
}
|
|
3142
3150
|
loadParameters(e2 = void 0) {
|
|
@@ -3149,7 +3157,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3149
3157
|
}
|
|
3150
3158
|
initializeAndStartSentinel() {
|
|
3151
3159
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
|
3152
|
-
this.keepClientAliveSentinel = new
|
|
3160
|
+
this.keepClientAliveSentinel = new Z(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
|
3153
3161
|
});
|
|
3154
3162
|
}
|
|
3155
3163
|
stopSentinel() {
|
|
@@ -3174,7 +3182,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3174
3182
|
this.pageCount = 0, this.currentPageNumber = 0;
|
|
3175
3183
|
}
|
|
3176
3184
|
handleSearchRequestError(e2) {
|
|
3177
|
-
if (!
|
|
3185
|
+
if (!Ce(e2, "System.ArgumentException"))
|
|
3178
3186
|
throw this.handleRequestError(e2, "", true), null;
|
|
3179
3187
|
this.throwPromiseError(e2);
|
|
3180
3188
|
}
|
|
@@ -3182,8 +3190,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
3182
3190
|
throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
|
|
3183
3191
|
}
|
|
3184
3192
|
handleRequestError(e2, t2 = "", i2 = false) {
|
|
3185
|
-
|
|
3186
|
-
let n2 =
|
|
3193
|
+
ye(e2) && this.onClientExpired();
|
|
3194
|
+
let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
|
|
3187
3195
|
this.raiseError(r2), i2 || this.throwPromiseError(e2);
|
|
3188
3196
|
}
|
|
3189
3197
|
formatRequestError(e2, t2, i2) {
|
|
@@ -3191,34 +3199,37 @@ var telerikReportViewer = (function (exports) {
|
|
|
3191
3199
|
if (n2) {
|
|
3192
3200
|
if (401 == n2.status || 403 == n2.status)
|
|
3193
3201
|
return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
|
|
3194
|
-
if (
|
|
3202
|
+
if (Se(e2))
|
|
3195
3203
|
return this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3196
|
-
r2 =
|
|
3197
|
-
let t3 =
|
|
3204
|
+
r2 = le(n2.message);
|
|
3205
|
+
let t3 = le(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
|
|
3198
3206
|
t3 && (r2 ? r2 += " " + t3 : r2 = t3);
|
|
3199
3207
|
} else
|
|
3200
|
-
r2 =
|
|
3201
|
-
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;
|
|
3202
3210
|
}
|
|
3203
3211
|
raiseError(e2, t2 = true) {
|
|
3204
3212
|
this.emit("error", e2, t2);
|
|
3205
3213
|
}
|
|
3214
|
+
showNotification(e2) {
|
|
3215
|
+
this.emit("showNotification", e2);
|
|
3216
|
+
}
|
|
3206
3217
|
onClientExpired() {
|
|
3207
3218
|
this.clientHasExpired = true, this.emit("clientExpired");
|
|
3208
3219
|
}
|
|
3209
3220
|
initializeClient() {
|
|
3210
3221
|
return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
|
|
3211
|
-
const t2 =
|
|
3222
|
+
const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
|
|
3212
3223
|
this.handleRequestError(e2, t2);
|
|
3213
3224
|
}).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
|
|
3214
3225
|
}
|
|
3215
3226
|
registerInstance() {
|
|
3216
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;
|
|
3217
3228
|
}
|
|
3218
|
-
registerDocumentAsync(e2, t2,
|
|
3219
|
-
return
|
|
3220
|
-
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !
|
|
3221
|
-
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)));
|
|
3222
3233
|
})) || "";
|
|
3223
3234
|
});
|
|
3224
3235
|
}
|
|
@@ -3240,7 +3251,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3240
3251
|
return e2.ContentOnly = true, e2.UseSVG = true, e2;
|
|
3241
3252
|
}
|
|
3242
3253
|
createDeviceInfo() {
|
|
3243
|
-
let e2 = new
|
|
3254
|
+
let e2 = new n();
|
|
3244
3255
|
this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
|
|
3245
3256
|
let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
|
|
3246
3257
|
return e2.enableSearch = !i2 || t2, e2;
|
|
@@ -3251,10 +3262,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
3251
3262
|
});
|
|
3252
3263
|
}
|
|
3253
3264
|
getReportParameters() {
|
|
3265
|
+
if (!this.parameterValues)
|
|
3266
|
+
return {};
|
|
3254
3267
|
const e2 = {}, t2 = this.getProcessedParameterValues();
|
|
3255
3268
|
for (let i2 in t2) {
|
|
3256
3269
|
const n2 = t2[i2], r2 = this.parameterValues[i2];
|
|
3257
|
-
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;
|
|
3258
3271
|
}
|
|
3259
3272
|
return e2;
|
|
3260
3273
|
}
|
|
@@ -3264,11 +3277,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
3264
3277
|
getProcessedParameterValues() {
|
|
3265
3278
|
return this.processedParameterValues;
|
|
3266
3279
|
}
|
|
3267
|
-
getDocumentInfo(t2,
|
|
3268
|
-
return t2 && this.emit("beginLoadReport"), new Promise((
|
|
3269
|
-
let o2 = () =>
|
|
3270
|
-
this.cancelLoad ?
|
|
3271
|
-
|
|
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));
|
|
3272
3285
|
}).catch((e2) => {
|
|
3273
3286
|
"InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
|
|
3274
3287
|
}));
|
|
@@ -3327,11 +3340,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
3327
3340
|
}
|
|
3328
3341
|
missingOrInvalidParameters(e2) {
|
|
3329
3342
|
let t2 = this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3330
|
-
e2.forEach((e3) => {
|
|
3343
|
+
null == e2 || e2.forEach((e3) => {
|
|
3331
3344
|
t2 += `\r
|
|
3332
3345
|
${e3.text} (${e3.id})`;
|
|
3333
3346
|
}), this.raiseError(t2), this.emit("missingOrInvalidParameters");
|
|
3334
3347
|
}
|
|
3348
|
+
handleParametersNotification(e2) {
|
|
3349
|
+
e2 ? this.showNotification(this.options.messages.ReportViewer_TryReportPreview || "The report may now be previewed.") : this.missingOrInvalidParameters(null);
|
|
3350
|
+
}
|
|
3335
3351
|
setSearchInitiated(e2) {
|
|
3336
3352
|
this.searchInitiated = e2;
|
|
3337
3353
|
}
|
|
@@ -3396,13 +3412,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3396
3412
|
constructor(e2, t2) {
|
|
3397
3413
|
this.url = e2, this.getPersonalAccessToken = t2;
|
|
3398
3414
|
}
|
|
3399
|
-
}, e.ReportSourceOptions =
|
|
3415
|
+
}, e.ReportSourceOptions = _e, e.RequestError = g, e.SearchInfo = class {
|
|
3400
3416
|
constructor() {
|
|
3401
3417
|
this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
|
|
3402
3418
|
}
|
|
3403
|
-
}, e.SearchManager = class extends
|
|
3419
|
+
}, e.SearchManager = class extends $ {
|
|
3404
3420
|
constructor(e2, t2) {
|
|
3405
|
-
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));
|
|
3406
3422
|
}
|
|
3407
3423
|
search(e2) {
|
|
3408
3424
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
|
@@ -3411,15 +3427,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3411
3427
|
this.isActive = false, this.clearColoredItems(), this.searchResults = [];
|
|
3412
3428
|
}
|
|
3413
3429
|
highlightSearchItem(t2) {
|
|
3414
|
-
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));
|
|
3415
3431
|
}
|
|
3416
3432
|
navigateToPage(e2) {
|
|
3417
|
-
this.controller.navigateToPage(e2.page, new
|
|
3433
|
+
this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
|
|
3418
3434
|
}
|
|
3419
3435
|
colorPageElements(e2) {
|
|
3420
3436
|
e2 && 0 !== e2.length && (e2.forEach((e3) => {
|
|
3421
|
-
let t2 =
|
|
3422
|
-
t2 && (
|
|
3437
|
+
let t2 = ge(this.pageContainer, "[data-search-id=" + e3.id + "]");
|
|
3438
|
+
t2 && (ie(t2, Je), this.highlightedElements.push(t2));
|
|
3423
3439
|
}), this.highlightItem(this.pendingHighlightItem));
|
|
3424
3440
|
}
|
|
3425
3441
|
highlightItem(e2) {
|
|
@@ -3427,13 +3443,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3427
3443
|
let t2 = this.highlightedElements.find(function(t3) {
|
|
3428
3444
|
return t3.dataset.searchId === e2.id;
|
|
3429
3445
|
});
|
|
3430
|
-
t2 && (this.currentHighlightedElement = t2,
|
|
3446
|
+
t2 && (this.currentHighlightedElement = t2, ne(t2, Je), ie(t2, Ge));
|
|
3431
3447
|
}
|
|
3432
3448
|
}
|
|
3433
3449
|
clearColoredItems() {
|
|
3434
3450
|
this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
|
|
3435
|
-
|
|
3436
|
-
}), this.currentHighlightedElement &&
|
|
3451
|
+
ne(e2, Je);
|
|
3452
|
+
}), this.currentHighlightedElement && ne(this.currentHighlightedElement, Ge), this.highlightedElements = [], this.currentHighlightedElement = null;
|
|
3437
3453
|
}
|
|
3438
3454
|
applySearchColors() {
|
|
3439
3455
|
this.isActive && this.colorPageElements(this.searchResults);
|
|
@@ -3450,18 +3466,18 @@ ${e3.text} (${e3.id})`;
|
|
|
3450
3466
|
this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
|
|
3451
3467
|
}
|
|
3452
3468
|
getConnectionConfig(e2) {
|
|
3453
|
-
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);
|
|
3454
3470
|
}
|
|
3455
3471
|
getAuthStrategy(t2) {
|
|
3456
3472
|
switch (t2.authType) {
|
|
3457
3473
|
case e.AuthType.None:
|
|
3458
|
-
return new
|
|
3474
|
+
return new P();
|
|
3459
3475
|
case e.AuthType.Basic:
|
|
3460
|
-
return new
|
|
3476
|
+
return new C(t2);
|
|
3461
3477
|
case e.AuthType.PersonalToken:
|
|
3462
|
-
return new
|
|
3478
|
+
return new y(t2);
|
|
3463
3479
|
default:
|
|
3464
|
-
return new
|
|
3480
|
+
return new P();
|
|
3465
3481
|
}
|
|
3466
3482
|
}
|
|
3467
3483
|
validateClientID(e2) {
|
|
@@ -3470,15 +3486,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3470
3486
|
}
|
|
3471
3487
|
authenticatedGet(e2) {
|
|
3472
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) {
|
|
3473
|
-
return fetch(e3, { headers:
|
|
3489
|
+
return fetch(e3, { headers: m(t3) }).then(f);
|
|
3474
3490
|
}(e2, t2.access_token || t2.accessToken));
|
|
3475
3491
|
}
|
|
3476
3492
|
authenticatedPost(e2, t2) {
|
|
3477
|
-
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));
|
|
3478
3494
|
}
|
|
3479
3495
|
authenticatedDelete(e2) {
|
|
3480
3496
|
return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
|
|
3481
|
-
return fetch(e3, { method: "DELETE", headers:
|
|
3497
|
+
return fetch(e3, { method: "DELETE", headers: m(t3) }).then(f);
|
|
3482
3498
|
}(e2, t2.access_token || t2.accessToken));
|
|
3483
3499
|
}
|
|
3484
3500
|
login() {
|
|
@@ -3562,15 +3578,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3562
3578
|
return e2.clientSessionTimeout;
|
|
3563
3579
|
});
|
|
3564
3580
|
}
|
|
3565
|
-
}, 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) {
|
|
3566
3582
|
if (!e2)
|
|
3567
3583
|
return;
|
|
3568
|
-
let t2 =
|
|
3584
|
+
let t2 = fe(e2);
|
|
3569
3585
|
if (!t2)
|
|
3570
3586
|
return;
|
|
3571
3587
|
let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
|
|
3572
3588
|
i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
|
|
3573
|
-
}, e.parseToLocalDate =
|
|
3589
|
+
}, e.parseToLocalDate = Ee, e.prependHtml = pe, e.removeClass = ne, e.reportSourcesAreEqual = function(e2) {
|
|
3574
3590
|
const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
|
|
3575
3591
|
if (t2 && i2 && t2.report === i2.report) {
|
|
3576
3592
|
let e3 = "";
|
|
@@ -3579,7 +3595,7 @@ ${e3.text} (${e3.id})`;
|
|
|
3579
3595
|
return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
|
|
3580
3596
|
}
|
|
3581
3597
|
return false;
|
|
3582
|
-
}, e.scaleElement =
|
|
3598
|
+
}, e.scaleElement = ae, e.stringFormat = be, e.throttle = Pe, e.toPixel = oe, e.toRgbColor = he, e.tryParseFloat = Re, e.tryParseInt = Ae;
|
|
3583
3599
|
});
|
|
3584
3600
|
})(dist, dist.exports);
|
|
3585
3601
|
var distExports = dist.exports;
|
|
@@ -3818,33 +3834,33 @@ ${e3.text} (${e3.id})`;
|
|
|
3818
3834
|
|
|
3819
3835
|
const utils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3820
3836
|
__proto__: null,
|
|
3821
|
-
isSpecialKey,
|
|
3822
|
-
rectangle,
|
|
3823
|
-
generateGuidString,
|
|
3824
|
-
trim,
|
|
3825
|
-
replaceAll,
|
|
3826
|
-
lTrim,
|
|
3827
|
-
rTrim,
|
|
3828
|
-
stringFormat,
|
|
3829
|
-
escapeHtml,
|
|
3830
3837
|
adjustTimezone,
|
|
3831
|
-
unadjustTimezone,
|
|
3832
3838
|
areEqual,
|
|
3833
3839
|
areEqualArrays,
|
|
3834
|
-
|
|
3835
|
-
isApplicationExceptionInstance,
|
|
3840
|
+
escapeHtml,
|
|
3836
3841
|
exceptionTypeNamesMatch,
|
|
3837
|
-
parseJSON,
|
|
3838
|
-
getExceptionInstance,
|
|
3839
3842
|
filterUniqueLastOccurrence,
|
|
3843
|
+
generateGuidString,
|
|
3844
|
+
getColorAlphaValue,
|
|
3845
|
+
getExceptionInstance,
|
|
3846
|
+
isApplicationException,
|
|
3847
|
+
isApplicationExceptionInstance,
|
|
3848
|
+
isRgbColor,
|
|
3849
|
+
isSpecialKey,
|
|
3850
|
+
lTrim,
|
|
3840
3851
|
logError,
|
|
3852
|
+
parseJSON,
|
|
3853
|
+
parseToLocalDate: distExports.parseToLocalDate,
|
|
3854
|
+
rTrim,
|
|
3855
|
+
rectangle,
|
|
3856
|
+
replaceAll,
|
|
3857
|
+
reportSourcesAreEqual: distExports.reportSourcesAreEqual,
|
|
3858
|
+
stringFormat,
|
|
3841
3859
|
toRgbColor,
|
|
3842
|
-
|
|
3843
|
-
getColorAlphaValue,
|
|
3844
|
-
tryParseInt: distExports.tryParseInt,
|
|
3860
|
+
trim,
|
|
3845
3861
|
tryParseFloat: distExports.tryParseFloat,
|
|
3846
|
-
|
|
3847
|
-
|
|
3862
|
+
tryParseInt: distExports.tryParseInt,
|
|
3863
|
+
unadjustTimezone
|
|
3848
3864
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3849
3865
|
|
|
3850
3866
|
function toPixels(value) {
|
|
@@ -3889,9 +3905,9 @@ ${e3.text} (${e3.id})`;
|
|
|
3889
3905
|
|
|
3890
3906
|
const domUtils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3891
3907
|
__proto__: null,
|
|
3908
|
+
getBorderWidth,
|
|
3892
3909
|
getMargins,
|
|
3893
3910
|
getPadding,
|
|
3894
|
-
getBorderWidth,
|
|
3895
3911
|
scale
|
|
3896
3912
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3897
3913
|
|
|
@@ -3927,8 +3943,8 @@ ${e3.text} (${e3.id})`;
|
|
|
3927
3943
|
if (content.length > 0) {
|
|
3928
3944
|
content.focus();
|
|
3929
3945
|
}
|
|
3930
|
-
}).on("pageReady", (
|
|
3931
|
-
initPage(
|
|
3946
|
+
}).on("pageReady", (pageInfo) => {
|
|
3947
|
+
initPage(pageInfo);
|
|
3932
3948
|
}).on("error", (event, message) => {
|
|
3933
3949
|
focusOnErrorMessage();
|
|
3934
3950
|
window.setTimeout(setAccessibilityUI, 500);
|
|
@@ -3949,8 +3965,8 @@ ${e3.text} (${e3.id})`;
|
|
|
3949
3965
|
$errMsg.attr("tabIndex", 0);
|
|
3950
3966
|
$errMsg.focus();
|
|
3951
3967
|
}
|
|
3952
|
-
function initPage(
|
|
3953
|
-
if (!
|
|
3968
|
+
function initPage(pageInfo) {
|
|
3969
|
+
if (!pageInfo) {
|
|
3954
3970
|
return;
|
|
3955
3971
|
}
|
|
3956
3972
|
setAccessibilityUI();
|
|
@@ -6226,7 +6242,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6226
6242
|
// #endregion
|
|
6227
6243
|
}
|
|
6228
6244
|
|
|
6229
|
-
|
|
6245
|
+
let EventEmitter$1 = class EventEmitter extends EventTarget {
|
|
6230
6246
|
_events;
|
|
6231
6247
|
_eventsCount;
|
|
6232
6248
|
constructor() {
|
|
@@ -6344,7 +6360,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6344
6360
|
}
|
|
6345
6361
|
return this.removeListener(type, listener);
|
|
6346
6362
|
}
|
|
6347
|
-
}
|
|
6363
|
+
};
|
|
6348
6364
|
|
|
6349
6365
|
var defaultOptions$3 = {};
|
|
6350
6366
|
var Events = {
|
|
@@ -6408,7 +6424,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6408
6424
|
this.$previewButton.attr("aria-label", stringResources[this.$previewButton.attr("aria-label")]);
|
|
6409
6425
|
this.$previewButton.on("click", (e) => {
|
|
6410
6426
|
e.preventDefault();
|
|
6411
|
-
if (this.
|
|
6427
|
+
if (!this.controller.hasInvalidParameter(this.parameters)) {
|
|
6412
6428
|
this.applyParameters();
|
|
6413
6429
|
}
|
|
6414
6430
|
});
|
|
@@ -6549,22 +6565,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6549
6565
|
(error ? $.fn.addClass : $.fn.removeClass).call(this.$element, "trv-error");
|
|
6550
6566
|
}
|
|
6551
6567
|
showPreviewButton(parameters) {
|
|
6552
|
-
(this.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
|
|
6553
|
-
}
|
|
6554
|
-
allParametersAutoRefresh(parameters) {
|
|
6555
|
-
if (!parameters) {
|
|
6556
|
-
return true;
|
|
6557
|
-
}
|
|
6558
|
-
var allAuto = Array.from(parameters).every((parameter) => {
|
|
6559
|
-
return !parameter.isVisible || parameter.autoRefresh;
|
|
6560
|
-
});
|
|
6561
|
-
return allAuto;
|
|
6562
|
-
}
|
|
6563
|
-
allParametersValid() {
|
|
6564
|
-
var allValid = Array.from(this.parameters).every((parameter) => {
|
|
6565
|
-
return !parameter.Error;
|
|
6566
|
-
});
|
|
6567
|
-
return allValid;
|
|
6568
|
+
(this.controller.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
|
|
6568
6569
|
}
|
|
6569
6570
|
clearEditors() {
|
|
6570
6571
|
Object.entries(this.editors).forEach(([key, editor]) => {
|
|
@@ -6595,7 +6596,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6595
6596
|
parameter.Error = stringResources.invalidParameter;
|
|
6596
6597
|
}
|
|
6597
6598
|
if (parameter.availableValues) {
|
|
6598
|
-
this.processedParameterValues[parameter.id] = { valueMember: parameter.value, displayMember: parameter.label, availableValues: parameter.availableValues, multivalue: parameter.multivalue };
|
|
6599
|
+
this.processedParameterValues[parameter.id] = { valueMember: parameter.value, displayMember: parameter.label, availableValues: parameter.availableValues, multivalue: parameter.multivalue, allowNull: parameter.allowNull };
|
|
6599
6600
|
} else {
|
|
6600
6601
|
this.processedParameterValues[parameter.id] = parameter.value;
|
|
6601
6602
|
}
|
|
@@ -6635,7 +6636,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6635
6636
|
}
|
|
6636
6637
|
}
|
|
6637
6638
|
this.showPreviewButton(this.parameters);
|
|
6638
|
-
var allValid = this.
|
|
6639
|
+
var allValid = !this.controller.hasInvalidParameter(this.parameters);
|
|
6639
6640
|
this.enablePreviewButton(allValid);
|
|
6640
6641
|
this.applyProcessedParameters();
|
|
6641
6642
|
}
|
|
@@ -6646,17 +6647,9 @@ ${e3.text} (${e3.id})`;
|
|
|
6646
6647
|
applyProcessedParameters() {
|
|
6647
6648
|
this.controller.setProcessedParameterValues($.extend({}, this.processedParameterValues));
|
|
6648
6649
|
}
|
|
6649
|
-
allParametersValidForAutoRefresh() {
|
|
6650
|
-
var triggerAutoUpdate = true;
|
|
6651
|
-
for (var i = this.parameters.length - 1; triggerAutoUpdate && i >= 0; i--) {
|
|
6652
|
-
var p = this.parameters[i];
|
|
6653
|
-
triggerAutoUpdate = p.id in this.recentParameterValues && (Boolean(p.autoRefresh) || !p.isVisible);
|
|
6654
|
-
}
|
|
6655
|
-
return triggerAutoUpdate;
|
|
6656
|
-
}
|
|
6657
6650
|
tryRefreshReport() {
|
|
6658
6651
|
this.trigger(Events.PARAMETERS_READY, this.recentParameterValues);
|
|
6659
|
-
if (this.allParametersValidForAutoRefresh() && this.controller.autoRunEnabled) {
|
|
6652
|
+
if (this.controller.allParametersValidForAutoRefresh(this.parameters, this.recentParameterValues) && this.controller.autoRunEnabled) {
|
|
6660
6653
|
this.applyParameters();
|
|
6661
6654
|
}
|
|
6662
6655
|
}
|
|
@@ -6695,7 +6688,7 @@ ${e3.text} (${e3.id})`;
|
|
|
6695
6688
|
if (parameter.childParameters) {
|
|
6696
6689
|
this.updateParameters(this.tryRefreshReport.bind(this));
|
|
6697
6690
|
} else {
|
|
6698
|
-
var allValid = this.
|
|
6691
|
+
var allValid = !this.controller.hasInvalidParameter(this.parameters);
|
|
6699
6692
|
this.enablePreviewButton(allValid);
|
|
6700
6693
|
if (allValid) {
|
|
6701
6694
|
var errorMsg = document.querySelector(".trv-pages-area .trv-error-message");
|
|
@@ -8626,48 +8619,49 @@ ${e3.text} (${e3.id})`;
|
|
|
8626
8619
|
promptSuggestions
|
|
8627
8620
|
});
|
|
8628
8621
|
this.kendoAiPrompt.activeView(this.kendoAiPrompt.activeView());
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
return;
|
|
8643
|
-
}
|
|
8644
|
-
that.controller.getAIResponse(event.prompt).then((response) => {
|
|
8645
|
-
this.addPromptOutput(that.createPromptOutputFromResponse(response, event));
|
|
8646
|
-
this.activeView(1);
|
|
8647
|
-
}).catch((error) => {
|
|
8648
|
-
this.addPromptOutput(that.createPromptOutputFromResponse(error?._responseJSON?.exceptionMessage || error?._responseJSON?.ExceptionMessage, event));
|
|
8649
|
-
this.activeView(1);
|
|
8650
|
-
});
|
|
8651
|
-
},
|
|
8652
|
-
toolbarItems: [
|
|
8653
|
-
{ type: "spacer" },
|
|
8654
|
-
{ type: "button", icon: "x", fillMode: "flat", themeColor: "primary", click: (e) => {
|
|
8655
|
-
this.close();
|
|
8656
|
-
} }
|
|
8657
|
-
],
|
|
8658
|
-
promptSuggestions,
|
|
8659
|
-
views: [
|
|
8660
|
-
{
|
|
8661
|
-
type: "prompt",
|
|
8662
|
-
messages: {
|
|
8663
|
-
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;
|
|
8664
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
|
+
});
|
|
8665
8643
|
},
|
|
8666
|
-
|
|
8667
|
-
type: "
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
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
|
+
}
|
|
8671
8665
|
this.disableAiPromptTextArea(promptSuggestions && promptSuggestions.length > 0);
|
|
8672
8666
|
const aiPromptToolbar = this.kendoAiPrompt.element.find(".k-prompt-header .k-toolbar").data("kendoToolBar");
|
|
8673
8667
|
aiPromptToolbar && aiPromptToolbar.bind("toggle", (e) => {
|
|
@@ -8675,7 +8669,6 @@ ${e3.text} (${e3.id})`;
|
|
|
8675
8669
|
this.disableAiPromptTextArea(promptSuggestions && promptSuggestions.length > 0);
|
|
8676
8670
|
}
|
|
8677
8671
|
});
|
|
8678
|
-
this.aiPromptInitialized = true;
|
|
8679
8672
|
}
|
|
8680
8673
|
disableAiPromptTextArea(hasPromptSuggestions) {
|
|
8681
8674
|
if (this.allowCustomPrompts) {
|
|
@@ -8881,7 +8874,7 @@ ${e3.text} (${e3.id})`;
|
|
|
8881
8874
|
if (!validateOptions(options)) {
|
|
8882
8875
|
return;
|
|
8883
8876
|
}
|
|
8884
|
-
var version = "19.3.
|
|
8877
|
+
var version = "19.3.26.121";
|
|
8885
8878
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
|
8886
8879
|
settings = new ReportViewerSettings(
|
|
8887
8880
|
persistanceKey,
|
|
@@ -9896,7 +9889,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9896
9889
|
exports.parameterEditorsMatch = parameterEditorsMatch;
|
|
9897
9890
|
exports.utils = utils;
|
|
9898
9891
|
|
|
9899
|
-
Object.
|
|
9892
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9900
9893
|
|
|
9901
9894
|
return exports;
|
|
9902
9895
|
|