@progress/telerik-react-report-viewer 29.26.402 → 30.26.520
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var $ = require("jquery");
|
|
2
2
|
/*
|
|
3
|
-
* TelerikReporting v20.
|
|
3
|
+
* TelerikReporting v20.1.26.520 (https://www.telerik.com/products/reporting.aspx)
|
|
4
4
|
* Copyright 2026 Progress Software EAD. All rights reserved.
|
|
5
5
|
*
|
|
6
6
|
* Telerik Reporting commercial licenses may be obtained at
|
|
@@ -14,7 +14,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
14
14
|
|
|
15
15
|
var dist = {exports: {}};
|
|
16
16
|
|
|
17
|
-
/*! @license DOMPurify 3.
|
|
17
|
+
/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */
|
|
18
18
|
|
|
19
19
|
var purify_cjs;
|
|
20
20
|
var hasRequiredPurify_cjs;
|
|
@@ -70,13 +70,19 @@ var telerikReportViewer = (function (exports) {
|
|
|
70
70
|
const arrayPop = unapply(Array.prototype.pop);
|
|
71
71
|
const arrayPush = unapply(Array.prototype.push);
|
|
72
72
|
const arraySplice = unapply(Array.prototype.splice);
|
|
73
|
+
const arrayIsArray = Array.isArray;
|
|
73
74
|
const stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
74
75
|
const stringToString = unapply(String.prototype.toString);
|
|
75
76
|
const stringMatch = unapply(String.prototype.match);
|
|
76
77
|
const stringReplace = unapply(String.prototype.replace);
|
|
77
78
|
const stringIndexOf = unapply(String.prototype.indexOf);
|
|
78
79
|
const stringTrim = unapply(String.prototype.trim);
|
|
80
|
+
const numberToString = unapply(Number.prototype.toString);
|
|
81
|
+
const booleanToString = unapply(Boolean.prototype.toString);
|
|
82
|
+
const bigintToString = typeof BigInt === 'undefined' ? null : unapply(BigInt.prototype.toString);
|
|
83
|
+
const symbolToString = typeof Symbol === 'undefined' ? null : unapply(Symbol.prototype.toString);
|
|
79
84
|
const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
|
|
85
|
+
const objectToString = unapply(Object.prototype.toString);
|
|
80
86
|
const regExpTest = unapply(RegExp.prototype.test);
|
|
81
87
|
const typeErrorCreate = unconstruct(TypeError);
|
|
82
88
|
/**
|
|
@@ -126,6 +132,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
126
132
|
// Prevent prototype setters from intercepting set as a this value.
|
|
127
133
|
setPrototypeOf(set, null);
|
|
128
134
|
}
|
|
135
|
+
if (!arrayIsArray(array)) {
|
|
136
|
+
return set;
|
|
137
|
+
}
|
|
129
138
|
let l = array.length;
|
|
130
139
|
while (l--) {
|
|
131
140
|
let element = array[l];
|
|
@@ -169,7 +178,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
169
178
|
for (const [property, value] of entries(object)) {
|
|
170
179
|
const isPropertyExist = objectHasOwnProperty(object, property);
|
|
171
180
|
if (isPropertyExist) {
|
|
172
|
-
if (
|
|
181
|
+
if (arrayIsArray(value)) {
|
|
173
182
|
newObject[property] = cleanArray(value);
|
|
174
183
|
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
175
184
|
newObject[property] = clone(value);
|
|
@@ -180,6 +189,58 @@ var telerikReportViewer = (function (exports) {
|
|
|
180
189
|
}
|
|
181
190
|
return newObject;
|
|
182
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Convert non-node values into strings without depending on direct property access.
|
|
194
|
+
*
|
|
195
|
+
* @param value - The value to stringify.
|
|
196
|
+
* @returns A string representation of the provided value.
|
|
197
|
+
*/
|
|
198
|
+
function stringifyValue(value) {
|
|
199
|
+
switch (typeof value) {
|
|
200
|
+
case 'string':
|
|
201
|
+
{
|
|
202
|
+
return value;
|
|
203
|
+
}
|
|
204
|
+
case 'number':
|
|
205
|
+
{
|
|
206
|
+
return numberToString(value);
|
|
207
|
+
}
|
|
208
|
+
case 'boolean':
|
|
209
|
+
{
|
|
210
|
+
return booleanToString(value);
|
|
211
|
+
}
|
|
212
|
+
case 'bigint':
|
|
213
|
+
{
|
|
214
|
+
return bigintToString ? bigintToString(value) : '0';
|
|
215
|
+
}
|
|
216
|
+
case 'symbol':
|
|
217
|
+
{
|
|
218
|
+
return symbolToString ? symbolToString(value) : 'Symbol()';
|
|
219
|
+
}
|
|
220
|
+
case 'undefined':
|
|
221
|
+
{
|
|
222
|
+
return objectToString(value);
|
|
223
|
+
}
|
|
224
|
+
case 'function':
|
|
225
|
+
case 'object':
|
|
226
|
+
{
|
|
227
|
+
if (value === null) {
|
|
228
|
+
return objectToString(value);
|
|
229
|
+
}
|
|
230
|
+
const valueAsRecord = value;
|
|
231
|
+
const valueToString = lookupGetter(valueAsRecord, 'toString');
|
|
232
|
+
if (typeof valueToString === 'function') {
|
|
233
|
+
const stringified = valueToString(valueAsRecord);
|
|
234
|
+
return typeof stringified === 'string' ? stringified : objectToString(stringified);
|
|
235
|
+
}
|
|
236
|
+
return objectToString(value);
|
|
237
|
+
}
|
|
238
|
+
default:
|
|
239
|
+
{
|
|
240
|
+
return objectToString(value);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
183
244
|
/**
|
|
184
245
|
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
185
246
|
*
|
|
@@ -205,6 +266,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
205
266
|
}
|
|
206
267
|
return fallbackValue;
|
|
207
268
|
}
|
|
269
|
+
function isRegex(value) {
|
|
270
|
+
try {
|
|
271
|
+
regExpTest(value, '');
|
|
272
|
+
return true;
|
|
273
|
+
} catch (_unused) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
208
277
|
|
|
209
278
|
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
210
279
|
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
@@ -220,9 +289,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
220
289
|
const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
|
|
221
290
|
const text = freeze(['#text']);
|
|
222
291
|
|
|
223
|
-
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns'
|
|
292
|
+
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns']);
|
|
224
293
|
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
225
|
-
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', '
|
|
294
|
+
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lquote', 'lspace', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
226
295
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
227
296
|
|
|
228
297
|
// eslint-disable-next-line unicorn/better-regex
|
|
@@ -240,17 +309,17 @@ var telerikReportViewer = (function (exports) {
|
|
|
240
309
|
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
241
310
|
|
|
242
311
|
var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
312
|
+
__proto__: null,
|
|
313
|
+
ARIA_ATTR: ARIA_ATTR,
|
|
314
|
+
ATTR_WHITESPACE: ATTR_WHITESPACE,
|
|
315
|
+
CUSTOM_ELEMENT: CUSTOM_ELEMENT,
|
|
316
|
+
DATA_ATTR: DATA_ATTR,
|
|
317
|
+
DOCTYPE_NAME: DOCTYPE_NAME,
|
|
318
|
+
ERB_EXPR: ERB_EXPR,
|
|
319
|
+
IS_ALLOWED_URI: IS_ALLOWED_URI,
|
|
320
|
+
IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
|
|
321
|
+
MUSTACHE_EXPR: MUSTACHE_EXPR,
|
|
322
|
+
TMPLIT_EXPR: TMPLIT_EXPR
|
|
254
323
|
});
|
|
255
324
|
|
|
256
325
|
/* eslint-disable @typescript-eslint/indent */
|
|
@@ -319,7 +388,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
319
388
|
function createDOMPurify() {
|
|
320
389
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
321
390
|
const DOMPurify = root => createDOMPurify(root);
|
|
322
|
-
DOMPurify.version = '3.
|
|
391
|
+
DOMPurify.version = '3.4.2';
|
|
323
392
|
DOMPurify.removed = [];
|
|
324
393
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
325
394
|
// Not running in a browser, provide a factory function
|
|
@@ -567,15 +636,15 @@ var telerikReportViewer = (function (exports) {
|
|
|
567
636
|
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
568
637
|
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
569
638
|
/* Set configuration parameters */
|
|
570
|
-
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
571
|
-
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
572
|
-
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
573
|
-
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
574
|
-
DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
575
|
-
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
576
|
-
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
577
|
-
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
578
|
-
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
|
|
639
|
+
ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') && arrayIsArray(cfg.ALLOWED_TAGS) ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
|
|
640
|
+
ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') && arrayIsArray(cfg.ALLOWED_ATTR) ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
|
|
641
|
+
ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') && arrayIsArray(cfg.ALLOWED_NAMESPACES) ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
|
|
642
|
+
URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR) ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
|
|
643
|
+
DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') && arrayIsArray(cfg.ADD_DATA_URI_TAGS) ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
|
|
644
|
+
FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS) ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
|
|
645
|
+
FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') && arrayIsArray(cfg.FORBID_TAGS) ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
|
|
646
|
+
FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') && arrayIsArray(cfg.FORBID_ATTR) ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
|
|
647
|
+
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
|
|
579
648
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
580
649
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
581
650
|
ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
|
|
@@ -591,19 +660,20 @@ var telerikReportViewer = (function (exports) {
|
|
|
591
660
|
SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
|
|
592
661
|
KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
|
|
593
662
|
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
594
|
-
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP
|
|
595
|
-
NAMESPACE = cfg.NAMESPACE
|
|
596
|
-
MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS
|
|
597
|
-
HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
663
|
+
IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
|
|
664
|
+
NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
|
|
665
|
+
MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); // Default built-in map
|
|
666
|
+
HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, ['annotation-xml']); // Default built-in map
|
|
667
|
+
const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
|
|
668
|
+
CUSTOM_ELEMENT_HANDLING = create(null);
|
|
669
|
+
if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
|
|
670
|
+
CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck; // Default undefined
|
|
601
671
|
}
|
|
602
|
-
if (
|
|
603
|
-
CUSTOM_ELEMENT_HANDLING.attributeNameCheck =
|
|
672
|
+
if (objectHasOwnProperty(customElementHandling, 'attributeNameCheck') && isRegexOrFunction(customElementHandling.attributeNameCheck)) {
|
|
673
|
+
CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck; // Default undefined
|
|
604
674
|
}
|
|
605
|
-
if (
|
|
606
|
-
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =
|
|
675
|
+
if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
|
|
676
|
+
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
|
|
607
677
|
}
|
|
608
678
|
if (SAFE_FOR_TEMPLATES) {
|
|
609
679
|
ALLOW_DATA_ATTR = false;
|
|
@@ -635,44 +705,41 @@ var telerikReportViewer = (function (exports) {
|
|
|
635
705
|
addToSet(ALLOWED_ATTR, xml);
|
|
636
706
|
}
|
|
637
707
|
}
|
|
638
|
-
/*
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
if (!objectHasOwnProperty(cfg, 'ADD_ATTR')) {
|
|
643
|
-
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
644
|
-
}
|
|
708
|
+
/* Always reset function-based ADD_TAGS / ADD_ATTR checks to prevent
|
|
709
|
+
* leaking across calls when switching from function to array config */
|
|
710
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = null;
|
|
711
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = null;
|
|
645
712
|
/* Merge configuration parameters */
|
|
646
|
-
if (cfg
|
|
713
|
+
if (objectHasOwnProperty(cfg, 'ADD_TAGS')) {
|
|
647
714
|
if (typeof cfg.ADD_TAGS === 'function') {
|
|
648
715
|
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
649
|
-
} else {
|
|
716
|
+
} else if (arrayIsArray(cfg.ADD_TAGS)) {
|
|
650
717
|
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
651
718
|
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
652
719
|
}
|
|
653
720
|
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
654
721
|
}
|
|
655
722
|
}
|
|
656
|
-
if (cfg
|
|
723
|
+
if (objectHasOwnProperty(cfg, 'ADD_ATTR')) {
|
|
657
724
|
if (typeof cfg.ADD_ATTR === 'function') {
|
|
658
725
|
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
659
|
-
} else {
|
|
726
|
+
} else if (arrayIsArray(cfg.ADD_ATTR)) {
|
|
660
727
|
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
661
728
|
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
662
729
|
}
|
|
663
730
|
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
664
731
|
}
|
|
665
732
|
}
|
|
666
|
-
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
733
|
+
if (objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') && arrayIsArray(cfg.ADD_URI_SAFE_ATTR)) {
|
|
667
734
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
668
735
|
}
|
|
669
|
-
if (cfg.FORBID_CONTENTS) {
|
|
736
|
+
if (objectHasOwnProperty(cfg, 'FORBID_CONTENTS') && arrayIsArray(cfg.FORBID_CONTENTS)) {
|
|
670
737
|
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
671
738
|
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
672
739
|
}
|
|
673
740
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
674
741
|
}
|
|
675
|
-
if (cfg.ADD_FORBID_CONTENTS) {
|
|
742
|
+
if (objectHasOwnProperty(cfg, 'ADD_FORBID_CONTENTS') && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {
|
|
676
743
|
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
677
744
|
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
678
745
|
}
|
|
@@ -964,6 +1031,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
964
1031
|
_forceRemove(currentNode);
|
|
965
1032
|
return true;
|
|
966
1033
|
}
|
|
1034
|
+
/* Remove risky CSS construction leading to mXSS */
|
|
1035
|
+
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
1036
|
+
_forceRemove(currentNode);
|
|
1037
|
+
return true;
|
|
1038
|
+
}
|
|
967
1039
|
/* Remove any occurrence of processing instructions */
|
|
968
1040
|
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
969
1041
|
_forceRemove(currentNode);
|
|
@@ -975,7 +1047,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
975
1047
|
return true;
|
|
976
1048
|
}
|
|
977
1049
|
/* Remove element if anything forbids its presence */
|
|
978
|
-
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) &&
|
|
1050
|
+
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
979
1051
|
/* Check if we have a custom element to handle */
|
|
980
1052
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
981
1053
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -993,7 +1065,6 @@ var telerikReportViewer = (function (exports) {
|
|
|
993
1065
|
const childCount = childNodes.length;
|
|
994
1066
|
for (let i = childCount - 1; i >= 0; --i) {
|
|
995
1067
|
const childClone = cloneNode(childNodes[i], true);
|
|
996
|
-
childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
|
|
997
1068
|
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
998
1069
|
}
|
|
999
1070
|
}
|
|
@@ -1047,11 +1118,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
1047
1118
|
if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
|
|
1048
1119
|
return false;
|
|
1049
1120
|
}
|
|
1121
|
+
const nameIsPermitted = ALLOWED_ATTR[lcName] || EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag);
|
|
1050
1122
|
/* Allow valid data-* attributes: At least one character after "-"
|
|
1051
1123
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
1052
1124
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
1053
1125
|
We don't need to check the value; it's always URI safe. */
|
|
1054
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (
|
|
1126
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!nameIsPermitted || FORBID_ATTR[lcName]) {
|
|
1055
1127
|
if (
|
|
1056
1128
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1057
1129
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -1068,6 +1140,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
1068
1140
|
} else ;
|
|
1069
1141
|
return true;
|
|
1070
1142
|
};
|
|
1143
|
+
/* Names the HTML spec reserves from valid-custom-element-name; these must
|
|
1144
|
+
* never be treated as basic custom elements even when a permissive
|
|
1145
|
+
* CUSTOM_ELEMENT_HANDLING.tagNameCheck is configured. */
|
|
1146
|
+
const RESERVED_CUSTOM_ELEMENT_NAMES = addToSet({}, ['annotation-xml', 'color-profile', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'missing-glyph']);
|
|
1071
1147
|
/**
|
|
1072
1148
|
* _isBasicCustomElement
|
|
1073
1149
|
* checks if at least one dash is included in tagName, and it's not the first char
|
|
@@ -1077,7 +1153,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1077
1153
|
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
1078
1154
|
*/
|
|
1079
1155
|
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
1080
|
-
return tagName
|
|
1156
|
+
return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT, tagName);
|
|
1081
1157
|
};
|
|
1082
1158
|
/**
|
|
1083
1159
|
* _sanitizeAttributes
|
|
@@ -1128,12 +1204,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1128
1204
|
/* Full DOM Clobbering protection via namespace isolation,
|
|
1129
1205
|
* Prefix id and name attributes with `user-content-`
|
|
1130
1206
|
*/
|
|
1131
|
-
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
|
|
1207
|
+
if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name') && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
|
|
1132
1208
|
// Remove the attribute with this value
|
|
1133
1209
|
_removeAttribute(name, currentNode);
|
|
1134
1210
|
// Prefix the value and later re-create the attribute with the sanitized value
|
|
1135
1211
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
1136
1212
|
}
|
|
1213
|
+
// Else: already prefixed, leave the attribute alone — the prefix is
|
|
1214
|
+
// itself the clobbering protection, and re-applying it is incorrect.
|
|
1137
1215
|
/* Work around a security issue with comments inside attributes */
|
|
1138
1216
|
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
1139
1217
|
_removeAttribute(name, currentNode);
|
|
@@ -1214,7 +1292,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1214
1292
|
*
|
|
1215
1293
|
* @param fragment to iterate over recursively
|
|
1216
1294
|
*/
|
|
1217
|
-
const
|
|
1295
|
+
const _sanitizeShadowDOM2 = function _sanitizeShadowDOM(fragment) {
|
|
1218
1296
|
let shadowNode = null;
|
|
1219
1297
|
const shadowIterator = _createNodeIterator(fragment);
|
|
1220
1298
|
/* Execute a hook if present */
|
|
@@ -1228,7 +1306,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1228
1306
|
_sanitizeAttributes(shadowNode);
|
|
1229
1307
|
/* Deep shadow DOM detected */
|
|
1230
1308
|
if (shadowNode.content instanceof DocumentFragment) {
|
|
1231
|
-
|
|
1309
|
+
_sanitizeShadowDOM2(shadowNode.content);
|
|
1232
1310
|
}
|
|
1233
1311
|
}
|
|
1234
1312
|
/* Execute a hook if present */
|
|
@@ -1250,13 +1328,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
1250
1328
|
}
|
|
1251
1329
|
/* Stringify, in case dirty is an object */
|
|
1252
1330
|
if (typeof dirty !== 'string' && !_isNode(dirty)) {
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
throw typeErrorCreate('dirty is not a string, aborting');
|
|
1257
|
-
}
|
|
1258
|
-
} else {
|
|
1259
|
-
throw typeErrorCreate('toString is not a function');
|
|
1331
|
+
dirty = stringifyValue(dirty);
|
|
1332
|
+
if (typeof dirty !== 'string') {
|
|
1333
|
+
throw typeErrorCreate('dirty is not a string, aborting');
|
|
1260
1334
|
}
|
|
1261
1335
|
}
|
|
1262
1336
|
/* Return dirty HTML if DOMPurify cannot run */
|
|
@@ -1275,8 +1349,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
1275
1349
|
}
|
|
1276
1350
|
if (IN_PLACE) {
|
|
1277
1351
|
/* Do some early pre-sanitization to avoid unsafe root nodes */
|
|
1278
|
-
|
|
1279
|
-
|
|
1352
|
+
const nn = dirty.nodeName;
|
|
1353
|
+
if (typeof nn === 'string') {
|
|
1354
|
+
const tagName = transformCaseFunc(nn);
|
|
1280
1355
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1281
1356
|
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
|
1282
1357
|
}
|
|
@@ -1323,7 +1398,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1323
1398
|
_sanitizeAttributes(currentNode);
|
|
1324
1399
|
/* Shadow DOM detected, sanitize it */
|
|
1325
1400
|
if (currentNode.content instanceof DocumentFragment) {
|
|
1326
|
-
|
|
1401
|
+
_sanitizeShadowDOM2(currentNode.content);
|
|
1327
1402
|
}
|
|
1328
1403
|
}
|
|
1329
1404
|
/* If we sanitized `dirty` in-place, return it. */
|
|
@@ -1332,6 +1407,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1332
1407
|
}
|
|
1333
1408
|
/* Return sanitized string or DOM */
|
|
1334
1409
|
if (RETURN_DOM) {
|
|
1410
|
+
if (SAFE_FOR_TEMPLATES) {
|
|
1411
|
+
body.normalize();
|
|
1412
|
+
let html = body.innerHTML;
|
|
1413
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1414
|
+
html = stringReplace(html, expr, ' ');
|
|
1415
|
+
});
|
|
1416
|
+
body.innerHTML = html;
|
|
1417
|
+
}
|
|
1335
1418
|
if (RETURN_DOM_FRAGMENT) {
|
|
1336
1419
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
1337
1420
|
while (body.firstChild) {
|
|
@@ -1441,6 +1524,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1441
1524
|
l2((n2 = n2.apply(e2, t2 || [])).next());
|
|
1442
1525
|
});
|
|
1443
1526
|
}
|
|
1527
|
+
"function" == typeof SuppressedError && SuppressedError;
|
|
1444
1528
|
class n {
|
|
1445
1529
|
constructor() {
|
|
1446
1530
|
this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
|
|
@@ -1487,16 +1571,26 @@ var telerikReportViewer = (function (exports) {
|
|
|
1487
1571
|
}
|
|
1488
1572
|
}
|
|
1489
1573
|
class u {
|
|
1574
|
+
constructor(e2, t2) {
|
|
1575
|
+
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
class p extends r {
|
|
1579
|
+
constructor(e2, t2, i2) {
|
|
1580
|
+
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;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
class g {
|
|
1490
1584
|
constructor(e2, t2) {
|
|
1491
1585
|
this.page = e2, this.reportDocumentId = t2;
|
|
1492
1586
|
}
|
|
1493
1587
|
}
|
|
1494
|
-
class
|
|
1588
|
+
class f {
|
|
1495
1589
|
constructor(e2, t2, i2, n2 = null) {
|
|
1496
1590
|
this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
|
|
1497
1591
|
}
|
|
1498
1592
|
}
|
|
1499
|
-
class
|
|
1593
|
+
class m {
|
|
1500
1594
|
constructor(e2, t2) {
|
|
1501
1595
|
this._responseText = e2, this._error = t2;
|
|
1502
1596
|
try {
|
|
@@ -1519,14 +1613,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1519
1613
|
return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
|
|
1520
1614
|
}
|
|
1521
1615
|
}
|
|
1522
|
-
function
|
|
1616
|
+
function v(e2, t2 = false, i2 = false) {
|
|
1523
1617
|
let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
|
|
1524
1618
|
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;
|
|
1525
1619
|
}
|
|
1526
|
-
function
|
|
1620
|
+
function P(e2) {
|
|
1527
1621
|
return i(this, void 0, void 0, function* () {
|
|
1528
1622
|
if (!e2.ok) {
|
|
1529
|
-
let t2 = yield e2.text(), i2 = new
|
|
1623
|
+
let t2 = yield e2.text(), i2 = new m(t2, e2.statusText);
|
|
1530
1624
|
return Promise.reject(i2);
|
|
1531
1625
|
}
|
|
1532
1626
|
if (204 == e2.status)
|
|
@@ -1534,15 +1628,15 @@ var telerikReportViewer = (function (exports) {
|
|
|
1534
1628
|
return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
|
|
1535
1629
|
});
|
|
1536
1630
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return fetch(e2, { method: "POST", headers:
|
|
1631
|
+
function C(e2, t2 = {}, i2 = "", n2 = false) {
|
|
1632
|
+
return fetch(e2, { method: "POST", headers: v(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(P);
|
|
1539
1633
|
}
|
|
1540
|
-
class
|
|
1634
|
+
class y {
|
|
1541
1635
|
authenticatePromise() {
|
|
1542
1636
|
return Promise.resolve("");
|
|
1543
1637
|
}
|
|
1544
1638
|
}
|
|
1545
|
-
class
|
|
1639
|
+
class S {
|
|
1546
1640
|
constructor(e2) {
|
|
1547
1641
|
this.connectionConfig = e2;
|
|
1548
1642
|
}
|
|
@@ -1550,59 +1644,59 @@ var telerikReportViewer = (function (exports) {
|
|
|
1550
1644
|
var e2, t2;
|
|
1551
1645
|
if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
|
|
1552
1646
|
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) || "")}`;
|
|
1553
|
-
return
|
|
1647
|
+
return C(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
|
|
1554
1648
|
}
|
|
1555
1649
|
return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
|
|
1556
1650
|
}
|
|
1557
1651
|
}
|
|
1558
|
-
class
|
|
1652
|
+
class I {
|
|
1559
1653
|
constructor(e2) {
|
|
1560
1654
|
this.connectionConfig = e2;
|
|
1561
1655
|
}
|
|
1562
1656
|
authenticatePromise(e2, t2) {
|
|
1563
|
-
return e2 ?
|
|
1657
|
+
return e2 ? C(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) => C(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?");
|
|
1564
1658
|
}
|
|
1565
1659
|
}
|
|
1566
|
-
var
|
|
1567
|
-
e.AuthType = void 0, (
|
|
1568
|
-
class
|
|
1660
|
+
var b, w;
|
|
1661
|
+
e.AuthType = void 0, (b = e.AuthType || (e.AuthType = {}))[b.None = 0] = "None", b[b.Basic = 1] = "Basic", b[b.PersonalToken = 2] = "PersonalToken";
|
|
1662
|
+
class L {
|
|
1569
1663
|
constructor(e2) {
|
|
1570
1664
|
this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
|
|
1571
1665
|
}
|
|
1572
1666
|
}
|
|
1573
|
-
class
|
|
1667
|
+
class T extends L {
|
|
1574
1668
|
constructor(t2) {
|
|
1575
1669
|
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
|
|
1576
1670
|
}
|
|
1577
1671
|
}
|
|
1578
|
-
class
|
|
1672
|
+
class A extends L {
|
|
1579
1673
|
constructor(t2) {
|
|
1580
1674
|
super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
|
|
1581
1675
|
}
|
|
1582
1676
|
}
|
|
1583
|
-
class
|
|
1677
|
+
class R extends A {
|
|
1584
1678
|
constructor(t2, i2, n2) {
|
|
1585
1679
|
super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
|
|
1586
1680
|
}
|
|
1587
1681
|
}
|
|
1588
|
-
class
|
|
1682
|
+
class E extends A {
|
|
1589
1683
|
constructor(t2, i2) {
|
|
1590
1684
|
super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
|
|
1591
1685
|
}
|
|
1592
1686
|
}
|
|
1593
|
-
function E() {
|
|
1594
|
-
}
|
|
1595
1687
|
function M() {
|
|
1596
|
-
|
|
1688
|
+
}
|
|
1689
|
+
function k() {
|
|
1690
|
+
k.init.call(this);
|
|
1597
1691
|
}
|
|
1598
1692
|
function x(e2) {
|
|
1599
|
-
return void 0 === e2._maxListeners ?
|
|
1693
|
+
return void 0 === e2._maxListeners ? k.defaultMaxListeners : e2._maxListeners;
|
|
1600
1694
|
}
|
|
1601
|
-
function
|
|
1695
|
+
function N(e2, t2, i2, n2) {
|
|
1602
1696
|
var r2, s2, o2, a2;
|
|
1603
1697
|
if ("function" != typeof i2)
|
|
1604
1698
|
throw new TypeError('"listener" argument must be a function');
|
|
1605
|
-
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
|
|
1699
|
+
if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new M(), e2._eventsCount = 0), o2) {
|
|
1606
1700
|
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) {
|
|
1607
1701
|
o2.warned = true;
|
|
1608
1702
|
var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
@@ -1612,14 +1706,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
1612
1706
|
o2 = s2[t2] = i2, ++e2._eventsCount;
|
|
1613
1707
|
return e2;
|
|
1614
1708
|
}
|
|
1615
|
-
function
|
|
1709
|
+
function D(e2, t2, i2) {
|
|
1616
1710
|
var n2 = false;
|
|
1617
1711
|
function r2() {
|
|
1618
1712
|
e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
|
|
1619
1713
|
}
|
|
1620
1714
|
return r2.listener = i2, r2;
|
|
1621
1715
|
}
|
|
1622
|
-
function
|
|
1716
|
+
function F(e2) {
|
|
1623
1717
|
var t2 = this._events;
|
|
1624
1718
|
if (t2) {
|
|
1625
1719
|
var i2 = t2[e2];
|
|
@@ -1630,20 +1724,20 @@ var telerikReportViewer = (function (exports) {
|
|
|
1630
1724
|
}
|
|
1631
1725
|
return 0;
|
|
1632
1726
|
}
|
|
1633
|
-
function
|
|
1727
|
+
function V(e2, t2) {
|
|
1634
1728
|
for (var i2 = new Array(t2); t2--; )
|
|
1635
1729
|
i2[t2] = e2[t2];
|
|
1636
1730
|
return i2;
|
|
1637
1731
|
}
|
|
1638
|
-
|
|
1639
|
-
this.domain = null,
|
|
1640
|
-
},
|
|
1732
|
+
M.prototype = /* @__PURE__ */ Object.create(null), k.EventEmitter = k, k.usingDomains = false, k.prototype.domain = void 0, k.prototype._events = void 0, k.prototype._maxListeners = void 0, k.defaultMaxListeners = 10, k.init = function() {
|
|
1733
|
+
this.domain = null, k.usingDomains && (!w.active || this instanceof w.Domain || (this.domain = w.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new M(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
1734
|
+
}, k.prototype.setMaxListeners = function(e2) {
|
|
1641
1735
|
if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
|
|
1642
1736
|
throw new TypeError('"n" argument must be a positive number');
|
|
1643
1737
|
return this._maxListeners = e2, this;
|
|
1644
|
-
},
|
|
1738
|
+
}, k.prototype.getMaxListeners = function() {
|
|
1645
1739
|
return x(this);
|
|
1646
|
-
},
|
|
1740
|
+
}, k.prototype.emit = function(e2) {
|
|
1647
1741
|
var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
|
|
1648
1742
|
if (o2 = this._events)
|
|
1649
1743
|
l2 = l2 && null == o2.error;
|
|
@@ -1667,7 +1761,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1667
1761
|
if (t3)
|
|
1668
1762
|
e3.call(i3);
|
|
1669
1763
|
else
|
|
1670
|
-
for (var n3 = e3.length, r3 =
|
|
1764
|
+
for (var n3 = e3.length, r3 = V(e3, n3), s3 = 0; s3 < n3; ++s3)
|
|
1671
1765
|
r3[s3].call(i3);
|
|
1672
1766
|
}(i2, c2, this);
|
|
1673
1767
|
break;
|
|
@@ -1676,7 +1770,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1676
1770
|
if (t3)
|
|
1677
1771
|
e3.call(i3, n3);
|
|
1678
1772
|
else
|
|
1679
|
-
for (var r3 = e3.length, s3 =
|
|
1773
|
+
for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1680
1774
|
s3[o3].call(i3, n3);
|
|
1681
1775
|
}(i2, c2, this, arguments[1]);
|
|
1682
1776
|
break;
|
|
@@ -1685,7 +1779,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1685
1779
|
if (t3)
|
|
1686
1780
|
e3.call(i3, n3, r3);
|
|
1687
1781
|
else
|
|
1688
|
-
for (var s3 = e3.length, o3 =
|
|
1782
|
+
for (var s3 = e3.length, o3 = V(e3, s3), a3 = 0; a3 < s3; ++a3)
|
|
1689
1783
|
o3[a3].call(i3, n3, r3);
|
|
1690
1784
|
}(i2, c2, this, arguments[1], arguments[2]);
|
|
1691
1785
|
break;
|
|
@@ -1694,7 +1788,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1694
1788
|
if (t3)
|
|
1695
1789
|
e3.call(i3, n3, r3, s3);
|
|
1696
1790
|
else
|
|
1697
|
-
for (var o3 = e3.length, a3 =
|
|
1791
|
+
for (var o3 = e3.length, a3 = V(e3, o3), l3 = 0; l3 < o3; ++l3)
|
|
1698
1792
|
a3[l3].call(i3, n3, r3, s3);
|
|
1699
1793
|
}(i2, c2, this, arguments[1], arguments[2], arguments[3]);
|
|
1700
1794
|
break;
|
|
@@ -1705,24 +1799,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
1705
1799
|
if (t3)
|
|
1706
1800
|
e3.apply(i3, n3);
|
|
1707
1801
|
else
|
|
1708
|
-
for (var r3 = e3.length, s3 =
|
|
1802
|
+
for (var r3 = e3.length, s3 = V(e3, r3), o3 = 0; o3 < r3; ++o3)
|
|
1709
1803
|
s3[o3].apply(i3, n3);
|
|
1710
1804
|
}(i2, c2, this, r2);
|
|
1711
1805
|
}
|
|
1712
1806
|
return true;
|
|
1713
|
-
},
|
|
1714
|
-
return
|
|
1715
|
-
},
|
|
1716
|
-
return
|
|
1717
|
-
},
|
|
1807
|
+
}, k.prototype.addListener = function(e2, t2) {
|
|
1808
|
+
return N(this, e2, t2, false);
|
|
1809
|
+
}, k.prototype.on = k.prototype.addListener, k.prototype.prependListener = function(e2, t2) {
|
|
1810
|
+
return N(this, e2, t2, true);
|
|
1811
|
+
}, k.prototype.once = function(e2, t2) {
|
|
1718
1812
|
if ("function" != typeof t2)
|
|
1719
1813
|
throw new TypeError('"listener" argument must be a function');
|
|
1720
|
-
return this.on(e2,
|
|
1721
|
-
},
|
|
1814
|
+
return this.on(e2, D(this, e2, t2)), this;
|
|
1815
|
+
}, k.prototype.prependOnceListener = function(e2, t2) {
|
|
1722
1816
|
if ("function" != typeof t2)
|
|
1723
1817
|
throw new TypeError('"listener" argument must be a function');
|
|
1724
|
-
return this.prependListener(e2,
|
|
1725
|
-
},
|
|
1818
|
+
return this.prependListener(e2, D(this, e2, t2)), this;
|
|
1819
|
+
}, k.prototype.removeListener = function(e2, t2) {
|
|
1726
1820
|
var i2, n2, r2, s2, o2;
|
|
1727
1821
|
if ("function" != typeof t2)
|
|
1728
1822
|
throw new TypeError('"listener" argument must be a function');
|
|
@@ -1731,7 +1825,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1731
1825
|
if (!(i2 = n2[e2]))
|
|
1732
1826
|
return this;
|
|
1733
1827
|
if (i2 === t2 || i2.listener && i2.listener === t2)
|
|
1734
|
-
0 === --this._eventsCount ? this._events = new
|
|
1828
|
+
0 === --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
|
|
1735
1829
|
else if ("function" != typeof i2) {
|
|
1736
1830
|
for (r2 = -1, s2 = i2.length; s2-- > 0; )
|
|
1737
1831
|
if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
|
|
@@ -1742,7 +1836,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1742
1836
|
return this;
|
|
1743
1837
|
if (1 === i2.length) {
|
|
1744
1838
|
if (i2[0] = void 0, 0 === --this._eventsCount)
|
|
1745
|
-
return this._events = new
|
|
1839
|
+
return this._events = new M(), this;
|
|
1746
1840
|
delete n2[e2];
|
|
1747
1841
|
} else
|
|
1748
1842
|
!function(e3, t3) {
|
|
@@ -1753,18 +1847,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
1753
1847
|
n2.removeListener && this.emit("removeListener", e2, o2 || t2);
|
|
1754
1848
|
}
|
|
1755
1849
|
return this;
|
|
1756
|
-
},
|
|
1850
|
+
}, k.prototype.off = function(e2, t2) {
|
|
1757
1851
|
return this.removeListener(e2, t2);
|
|
1758
|
-
},
|
|
1852
|
+
}, k.prototype.removeAllListeners = function(e2) {
|
|
1759
1853
|
var t2, i2;
|
|
1760
1854
|
if (!(i2 = this._events))
|
|
1761
1855
|
return this;
|
|
1762
1856
|
if (!i2.removeListener)
|
|
1763
|
-
return 0 === arguments.length ? (this._events = new
|
|
1857
|
+
return 0 === arguments.length ? (this._events = new M(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new M() : delete i2[e2]), this;
|
|
1764
1858
|
if (0 === arguments.length) {
|
|
1765
1859
|
for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
|
|
1766
1860
|
"removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
|
|
1767
|
-
return this.removeAllListeners("removeListener"), this._events = new
|
|
1861
|
+
return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
|
|
1768
1862
|
}
|
|
1769
1863
|
if ("function" == typeof (t2 = i2[e2]))
|
|
1770
1864
|
this.removeListener(e2, t2);
|
|
@@ -1773,34 +1867,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
1773
1867
|
this.removeListener(e2, t2[t2.length - 1]);
|
|
1774
1868
|
} while (t2[0]);
|
|
1775
1869
|
return this;
|
|
1776
|
-
},
|
|
1870
|
+
}, k.prototype.listeners = function(e2) {
|
|
1777
1871
|
var t2, i2 = this._events;
|
|
1778
1872
|
return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
|
|
1779
1873
|
for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
|
|
1780
1874
|
t3[i3] = e3[i3].listener || e3[i3];
|
|
1781
1875
|
return t3;
|
|
1782
1876
|
}(t2) : [];
|
|
1783
|
-
},
|
|
1784
|
-
return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) :
|
|
1785
|
-
},
|
|
1877
|
+
}, k.listenerCount = function(e2, t2) {
|
|
1878
|
+
return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : F.call(e2, t2);
|
|
1879
|
+
}, k.prototype.listenerCount = F, k.prototype.eventNames = function() {
|
|
1786
1880
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
1787
1881
|
};
|
|
1788
|
-
const
|
|
1789
|
-
function
|
|
1882
|
+
const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
|
|
1883
|
+
function z(e2) {
|
|
1790
1884
|
if ("string" != typeof e2 && "symbol" != typeof e2)
|
|
1791
1885
|
throw new TypeError("type is not type of string or symbol!");
|
|
1792
1886
|
}
|
|
1793
|
-
function
|
|
1887
|
+
function _(e2) {
|
|
1794
1888
|
if ("function" != typeof e2)
|
|
1795
1889
|
throw new TypeError("fn is not type of Function!");
|
|
1796
1890
|
}
|
|
1797
|
-
function
|
|
1798
|
-
return { [
|
|
1891
|
+
function H(e2) {
|
|
1892
|
+
return { [O]: "always", fn: e2 };
|
|
1799
1893
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return { [
|
|
1894
|
+
function U(e2) {
|
|
1895
|
+
return { [O]: "once", fn: e2 };
|
|
1802
1896
|
}
|
|
1803
|
-
class
|
|
1897
|
+
class $ {
|
|
1804
1898
|
constructor() {
|
|
1805
1899
|
this._events = {};
|
|
1806
1900
|
}
|
|
@@ -1808,25 +1902,25 @@ var telerikReportViewer = (function (exports) {
|
|
|
1808
1902
|
return this.on(e2, t2);
|
|
1809
1903
|
}
|
|
1810
1904
|
on(e2, t2) {
|
|
1811
|
-
return
|
|
1905
|
+
return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(H(t2)), this;
|
|
1812
1906
|
}
|
|
1813
1907
|
prependListener(e2, t2) {
|
|
1814
1908
|
return this.prepend(e2, t2);
|
|
1815
1909
|
}
|
|
1816
1910
|
prepend(e2, t2) {
|
|
1817
|
-
return
|
|
1911
|
+
return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(H(t2)), this;
|
|
1818
1912
|
}
|
|
1819
1913
|
prependOnceListener(e2, t2) {
|
|
1820
1914
|
return this.prependOnce(e2, t2);
|
|
1821
1915
|
}
|
|
1822
1916
|
prependOnce(e2, t2) {
|
|
1823
|
-
return
|
|
1917
|
+
return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
|
|
1824
1918
|
}
|
|
1825
1919
|
listeners(e2) {
|
|
1826
1920
|
return (this._events[e2] || []).map((e3) => e3.fn);
|
|
1827
1921
|
}
|
|
1828
1922
|
once(e2, t2) {
|
|
1829
|
-
return
|
|
1923
|
+
return z(e2), _(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
|
|
1830
1924
|
}
|
|
1831
1925
|
removeAllListeners() {
|
|
1832
1926
|
this._events = {};
|
|
@@ -1835,7 +1929,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1835
1929
|
return this.removeListener(e2, t2);
|
|
1836
1930
|
}
|
|
1837
1931
|
removeListener(e2, t2) {
|
|
1838
|
-
|
|
1932
|
+
z(e2);
|
|
1839
1933
|
const i2 = this.listeners(e2);
|
|
1840
1934
|
if ("function" == typeof t2) {
|
|
1841
1935
|
let n2 = -1, r2 = false;
|
|
@@ -1847,12 +1941,12 @@ var telerikReportViewer = (function (exports) {
|
|
|
1847
1941
|
}
|
|
1848
1942
|
emit(e2, ...t2) {
|
|
1849
1943
|
return i(this, void 0, void 0, function* () {
|
|
1850
|
-
|
|
1944
|
+
z(e2);
|
|
1851
1945
|
const i2 = this.listeners(e2), n2 = [];
|
|
1852
1946
|
if (i2 && i2.length) {
|
|
1853
1947
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1854
1948
|
const s2 = i2[r2], o2 = s2.apply(this, t2);
|
|
1855
|
-
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1949
|
+
o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
|
|
1856
1950
|
}
|
|
1857
1951
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1858
1952
|
}
|
|
@@ -1860,21 +1954,21 @@ var telerikReportViewer = (function (exports) {
|
|
|
1860
1954
|
});
|
|
1861
1955
|
}
|
|
1862
1956
|
emitSync(e2, ...t2) {
|
|
1863
|
-
|
|
1957
|
+
z(e2);
|
|
1864
1958
|
const i2 = this.listeners(e2), n2 = [];
|
|
1865
1959
|
if (i2 && i2.length) {
|
|
1866
1960
|
for (let r2 = 0; r2 < i2.length; r2++) {
|
|
1867
1961
|
const s2 = i2[r2];
|
|
1868
|
-
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][
|
|
1962
|
+
s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
|
|
1869
1963
|
}
|
|
1870
1964
|
return n2.forEach((t3) => this.removeListener(e2, t3)), true;
|
|
1871
1965
|
}
|
|
1872
1966
|
return false;
|
|
1873
1967
|
}
|
|
1874
1968
|
}
|
|
1875
|
-
class
|
|
1969
|
+
class B {
|
|
1876
1970
|
constructor() {
|
|
1877
|
-
this.eventEmitter = new
|
|
1971
|
+
this.eventEmitter = new k(), this.awaitEventEmitter = new $();
|
|
1878
1972
|
}
|
|
1879
1973
|
on(e2, t2) {
|
|
1880
1974
|
return this.eventEmitter.on(e2, t2), this;
|
|
@@ -1891,7 +1985,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1891
1985
|
});
|
|
1892
1986
|
}
|
|
1893
1987
|
}
|
|
1894
|
-
class
|
|
1988
|
+
class q {
|
|
1895
1989
|
hasPdfPlugin() {
|
|
1896
1990
|
let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
|
|
1897
1991
|
for (let t2 of e2)
|
|
@@ -1904,7 +1998,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1904
1998
|
return false;
|
|
1905
1999
|
}
|
|
1906
2000
|
}
|
|
1907
|
-
class
|
|
2001
|
+
class W {
|
|
1908
2002
|
hasPdfPlugin() {
|
|
1909
2003
|
let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
|
|
1910
2004
|
if (null !== e2 && e2.length > 1) {
|
|
@@ -1919,7 +2013,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1919
2013
|
return false;
|
|
1920
2014
|
}
|
|
1921
2015
|
}
|
|
1922
|
-
class
|
|
2016
|
+
class Z {
|
|
1923
2017
|
constructor(e2) {
|
|
1924
2018
|
this.defaultPlugin = e2;
|
|
1925
2019
|
}
|
|
@@ -1930,22 +2024,22 @@ var telerikReportViewer = (function (exports) {
|
|
|
1930
2024
|
return false;
|
|
1931
2025
|
}
|
|
1932
2026
|
}
|
|
1933
|
-
class
|
|
2027
|
+
class j {
|
|
1934
2028
|
hasPdfPlugin() {
|
|
1935
2029
|
return false;
|
|
1936
2030
|
}
|
|
1937
2031
|
}
|
|
1938
|
-
function
|
|
2032
|
+
function J() {
|
|
1939
2033
|
return window.navigator && window.navigator.msSaveOrOpenBlob;
|
|
1940
2034
|
}
|
|
1941
|
-
class
|
|
2035
|
+
class G {
|
|
1942
2036
|
constructor() {
|
|
1943
2037
|
this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
|
|
1944
2038
|
if (window.navigator) {
|
|
1945
2039
|
let e2 = window.navigator.userAgent.toLowerCase();
|
|
1946
|
-
return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new
|
|
2040
|
+
return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new q() : e2.indexOf("firefox") > -1 ? new W() : e2.indexOf("edg/") > -1 ? new Z("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new Z("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new Z("WebKit built-in PDF") : new j();
|
|
1947
2041
|
}
|
|
1948
|
-
return new
|
|
2042
|
+
return new j();
|
|
1949
2043
|
}().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1950
2044
|
}
|
|
1951
2045
|
destroy() {
|
|
@@ -1963,13 +2057,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
1963
2057
|
}), function(e3) {
|
|
1964
2058
|
let t3 = window.location, i3 = document.createElement("a");
|
|
1965
2059
|
return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
|
|
1966
|
-
}(e2) &&
|
|
2060
|
+
}(e2) && J())
|
|
1967
2061
|
return this.iframe.src = e2, void document.body.appendChild(this.iframe);
|
|
1968
2062
|
let i2 = new XMLHttpRequest(), n2 = this;
|
|
1969
2063
|
i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
|
|
1970
2064
|
if (200 === this.status) {
|
|
1971
2065
|
let e3 = new Blob([this.response], { type: "application/pdf" });
|
|
1972
|
-
|
|
2066
|
+
J() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
|
|
1973
2067
|
} else
|
|
1974
2068
|
console.log("Could not retrieve remote PDF document.");
|
|
1975
2069
|
}, i2.send();
|
|
@@ -1984,10 +2078,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
1984
2078
|
return this.hasPdfPlugin;
|
|
1985
2079
|
}
|
|
1986
2080
|
}
|
|
1987
|
-
function
|
|
2081
|
+
function K(e2) {
|
|
1988
2082
|
return 1e3 * e2;
|
|
1989
2083
|
}
|
|
1990
|
-
class
|
|
2084
|
+
class X {
|
|
1991
2085
|
constructor(e2, t2, i2) {
|
|
1992
2086
|
if (this.pingMilliseconds = 0, !e2)
|
|
1993
2087
|
throw "Error";
|
|
@@ -1996,7 +2090,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
1996
2090
|
initSessionTimeout(e2) {
|
|
1997
2091
|
if (!isFinite(e2))
|
|
1998
2092
|
throw "sessionTimeoutSeconds must be finite";
|
|
1999
|
-
this.pingMilliseconds = e2 <= 120 ?
|
|
2093
|
+
this.pingMilliseconds = e2 <= 120 ? K(e2) / 2 : K(e2 - 60);
|
|
2000
2094
|
}
|
|
2001
2095
|
start() {
|
|
2002
2096
|
this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
|
|
@@ -2007,33 +2101,33 @@ var telerikReportViewer = (function (exports) {
|
|
|
2007
2101
|
this.interval && (clearInterval(this.interval), this.interval = null);
|
|
2008
2102
|
}
|
|
2009
2103
|
}
|
|
2010
|
-
var
|
|
2011
|
-
function
|
|
2104
|
+
var Y, Q, ee, te, ie;
|
|
2105
|
+
function ne(e2, t2 = "", i2 = "") {
|
|
2012
2106
|
let n2 = document.createElement(e2);
|
|
2013
|
-
return t2 && (n2.id = t2),
|
|
2107
|
+
return t2 && (n2.id = t2), re(n2, i2), n2;
|
|
2014
2108
|
}
|
|
2015
|
-
function
|
|
2109
|
+
function re(e2, t2) {
|
|
2016
2110
|
if ("" === t2 || !e2)
|
|
2017
2111
|
return;
|
|
2018
2112
|
let i2 = t2.trim().split(" ");
|
|
2019
2113
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
|
|
2020
2114
|
}
|
|
2021
|
-
function
|
|
2115
|
+
function se(e2, t2) {
|
|
2022
2116
|
if ("" === t2 || !e2)
|
|
2023
2117
|
return;
|
|
2024
2118
|
let i2 = t2.trim().split(" ");
|
|
2025
2119
|
i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
|
|
2026
2120
|
}
|
|
2027
|
-
function
|
|
2121
|
+
function oe(e2, t2) {
|
|
2028
2122
|
return e2.classList.contains(t2);
|
|
2029
2123
|
}
|
|
2030
|
-
function
|
|
2124
|
+
function ae(e2) {
|
|
2031
2125
|
return e2.offsetParent;
|
|
2032
2126
|
}
|
|
2033
|
-
function
|
|
2127
|
+
function le(e2) {
|
|
2034
2128
|
return parseInt(e2, 10) || 0;
|
|
2035
2129
|
}
|
|
2036
|
-
function
|
|
2130
|
+
function he(e2, t2, i2, n2 = 0, r2 = 0) {
|
|
2037
2131
|
let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
|
|
2038
2132
|
!function(e3, t3) {
|
|
2039
2133
|
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);
|
|
@@ -2041,11 +2135,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2041
2135
|
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);
|
|
2042
2136
|
}(e2, s2);
|
|
2043
2137
|
}
|
|
2044
|
-
function
|
|
2045
|
-
let t2 =
|
|
2138
|
+
function ce(e2) {
|
|
2139
|
+
let t2 = ne("div");
|
|
2046
2140
|
return t2.textContent = e2, t2.innerHTML;
|
|
2047
2141
|
}
|
|
2048
|
-
function
|
|
2142
|
+
function de(e2) {
|
|
2049
2143
|
if (e2 && e2.length < 6) {
|
|
2050
2144
|
let t3 = 1, i2 = e2.split("");
|
|
2051
2145
|
for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
|
|
@@ -2055,16 +2149,16 @@ var telerikReportViewer = (function (exports) {
|
|
|
2055
2149
|
let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
|
|
2056
2150
|
return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
|
|
2057
2151
|
}
|
|
2058
|
-
function
|
|
2152
|
+
function ue(e2) {
|
|
2059
2153
|
return !!e2 && e2.indexOf(",") > -1;
|
|
2060
2154
|
}
|
|
2061
|
-
function
|
|
2155
|
+
function pe(e2) {
|
|
2062
2156
|
if ("transparent" === e2.toLowerCase())
|
|
2063
2157
|
return 0;
|
|
2064
|
-
if (!
|
|
2158
|
+
if (!ue(e2))
|
|
2065
2159
|
return 1;
|
|
2066
2160
|
if (-1 !== e2.indexOf("#")) {
|
|
2067
|
-
let t3 =
|
|
2161
|
+
let t3 = de(e2);
|
|
2068
2162
|
if (null === t3)
|
|
2069
2163
|
return 1;
|
|
2070
2164
|
e2 = t3;
|
|
@@ -2074,34 +2168,34 @@ var telerikReportViewer = (function (exports) {
|
|
|
2074
2168
|
});
|
|
2075
2169
|
return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
|
|
2076
2170
|
}
|
|
2077
|
-
function
|
|
2078
|
-
let i2 =
|
|
2171
|
+
function ge(e2, t2) {
|
|
2172
|
+
let i2 = ne("div");
|
|
2079
2173
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
2080
2174
|
e2.appendChild(i2.childNodes[0]);
|
|
2081
2175
|
}
|
|
2082
|
-
function
|
|
2083
|
-
let i2 =
|
|
2176
|
+
function fe(e2, t2) {
|
|
2177
|
+
let i2 = ne("div");
|
|
2084
2178
|
for (i2.innerHTML = t2; i2.childNodes.length; )
|
|
2085
2179
|
e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
|
|
2086
2180
|
}
|
|
2087
|
-
function
|
|
2181
|
+
function me(e2, t2) {
|
|
2088
2182
|
return e2 ? e2.querySelector(t2) : null;
|
|
2089
2183
|
}
|
|
2090
|
-
function
|
|
2184
|
+
function ve(e2, t2) {
|
|
2091
2185
|
var i2;
|
|
2092
2186
|
return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
|
|
2093
2187
|
}
|
|
2094
|
-
function
|
|
2188
|
+
function Pe(e2) {
|
|
2095
2189
|
let t2 = e2.parentElement;
|
|
2096
|
-
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 :
|
|
2190
|
+
return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : Pe(t2) : null;
|
|
2097
2191
|
}
|
|
2098
|
-
function
|
|
2192
|
+
function Ce(e2, t2 = 300) {
|
|
2099
2193
|
let i2;
|
|
2100
2194
|
return function(...n2) {
|
|
2101
2195
|
clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
|
|
2102
2196
|
};
|
|
2103
2197
|
}
|
|
2104
|
-
function
|
|
2198
|
+
function ye(e2, t2) {
|
|
2105
2199
|
let i2 = null;
|
|
2106
2200
|
return function(n2, ...r2) {
|
|
2107
2201
|
i2 || (i2 = setTimeout(function() {
|
|
@@ -2109,24 +2203,24 @@ var telerikReportViewer = (function (exports) {
|
|
|
2109
2203
|
}, t2));
|
|
2110
2204
|
};
|
|
2111
2205
|
}
|
|
2112
|
-
function
|
|
2206
|
+
function Se(e2, t2) {
|
|
2113
2207
|
return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
|
|
2114
2208
|
}
|
|
2115
|
-
function
|
|
2116
|
-
return
|
|
2209
|
+
function Ie(e2) {
|
|
2210
|
+
return Se(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
|
|
2117
2211
|
}
|
|
2118
|
-
function
|
|
2119
|
-
return
|
|
2212
|
+
function be(e2) {
|
|
2213
|
+
return Se(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
|
|
2120
2214
|
}
|
|
2121
|
-
function
|
|
2215
|
+
function we(e2) {
|
|
2122
2216
|
return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
|
|
2123
2217
|
}
|
|
2124
|
-
function
|
|
2218
|
+
function Le(e2, ...t2) {
|
|
2125
2219
|
return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
|
|
2126
2220
|
}
|
|
2127
|
-
function
|
|
2221
|
+
function Te(e2, t2) {
|
|
2128
2222
|
let i2, n2;
|
|
2129
|
-
if (
|
|
2223
|
+
if (Ae(e2))
|
|
2130
2224
|
for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
|
|
2131
2225
|
;
|
|
2132
2226
|
else
|
|
@@ -2135,40 +2229,30 @@ var telerikReportViewer = (function (exports) {
|
|
|
2135
2229
|
break;
|
|
2136
2230
|
return e2;
|
|
2137
2231
|
}
|
|
2138
|
-
function
|
|
2232
|
+
function Ae(e2) {
|
|
2139
2233
|
if (Array.isArray(e2))
|
|
2140
2234
|
return true;
|
|
2141
2235
|
return "number" == typeof (!!e2 && "length" in e2 && e2.length);
|
|
2142
2236
|
}
|
|
2143
|
-
function
|
|
2237
|
+
function Re(e2) {
|
|
2144
2238
|
return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
|
|
2145
2239
|
}
|
|
2146
|
-
function
|
|
2240
|
+
function Ee(e2) {
|
|
2147
2241
|
return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
|
|
2148
2242
|
}
|
|
2149
|
-
function
|
|
2243
|
+
function Me(e2) {
|
|
2150
2244
|
return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
|
|
2151
2245
|
}
|
|
2152
|
-
e.PageMode = void 0, (
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
this.handled = false, this.deviceInfo = e2, this.format = t2;
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
class xe extends r {
|
|
2159
|
-
constructor(e2, t2, i2) {
|
|
2160
|
-
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;
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
const ke = "System.Int64", Le = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
|
|
2164
|
-
var Oe = function() {
|
|
2246
|
+
e.PageMode = void 0, (Y = e.PageMode || (e.PageMode = {}))[Y.ContinuousScroll = 0] = "ContinuousScroll", Y[Y.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Q = e.PrintMode || (e.PrintMode = {}))[Q.AutoSelect = 0] = "AutoSelect", Q[Q.ForcePDFPlugin = 1] = "ForcePDFPlugin", Q[Q.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (ee = e.ScaleMode || (e.ScaleMode = {}))[ee.FitPageWidth = 0] = "FitPageWidth", ee[ee.FitPage = 1] = "FitPage", ee[ee.Specific = 2] = "Specific", e.ServiceType = void 0, (te = e.ServiceType || (e.ServiceType = {}))[te.REST = 0] = "REST", te[te.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ie = e.ViewMode || (e.ViewMode = {}))[ie.Interactive = 0] = "Interactive", ie[ie.PrintPreview = 1] = "PrintPreview";
|
|
2247
|
+
const ke = "System.Int64", xe = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
|
|
2248
|
+
var Ve = function() {
|
|
2165
2249
|
var e2 = {};
|
|
2166
2250
|
function t2(e3, t3, i3, n2) {
|
|
2167
2251
|
var r2 = [].concat(t3).map(function(t4) {
|
|
2168
2252
|
return function(e4, t5, i4) {
|
|
2169
2253
|
if (e4.availableValues) {
|
|
2170
2254
|
var n3 = false;
|
|
2171
|
-
if (
|
|
2255
|
+
if (Te(e4.availableValues, function(e5, r3) {
|
|
2172
2256
|
return !(n3 = i4(t5, r3.value));
|
|
2173
2257
|
}), !n3) {
|
|
2174
2258
|
if (e4.allowNull && !t5)
|
|
@@ -2205,9 +2289,9 @@ var telerikReportViewer = (function (exports) {
|
|
|
2205
2289
|
}, function(e4, t3) {
|
|
2206
2290
|
return e4 == t3;
|
|
2207
2291
|
});
|
|
2208
|
-
} }, e2[
|
|
2292
|
+
} }, e2[xe] = { validate: function(e3, n2) {
|
|
2209
2293
|
return t2(e3, n2, function(t3) {
|
|
2210
|
-
var n3 =
|
|
2294
|
+
var n3 = Ee(t3);
|
|
2211
2295
|
if (isNaN(n3)) {
|
|
2212
2296
|
if (i2(e3, t3))
|
|
2213
2297
|
return null;
|
|
@@ -2215,11 +2299,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2215
2299
|
}
|
|
2216
2300
|
return n3;
|
|
2217
2301
|
}, function(e4, t3) {
|
|
2218
|
-
return
|
|
2302
|
+
return Ee(e4) == Ee(t3);
|
|
2219
2303
|
});
|
|
2220
2304
|
} }, e2[ke] = { validate: function(e3, n2) {
|
|
2221
2305
|
return t2(e3, n2, function(t3) {
|
|
2222
|
-
var n3 =
|
|
2306
|
+
var n3 = Re(t3);
|
|
2223
2307
|
if (isNaN(n3)) {
|
|
2224
2308
|
if (i2(e3, t3))
|
|
2225
2309
|
return null;
|
|
@@ -2227,17 +2311,17 @@ var telerikReportViewer = (function (exports) {
|
|
|
2227
2311
|
}
|
|
2228
2312
|
return n3;
|
|
2229
2313
|
}, function(e4, t3) {
|
|
2230
|
-
return
|
|
2314
|
+
return Re(e4) == Ee(t3);
|
|
2231
2315
|
});
|
|
2232
2316
|
} }, e2[De] = { validate: function(e3, i3) {
|
|
2233
2317
|
return t2(e3, i3, function(t3) {
|
|
2234
2318
|
if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
|
|
2235
2319
|
return null;
|
|
2236
2320
|
if (!isNaN(Date.parse(t3)))
|
|
2237
|
-
return e3.availableValues ? t3 :
|
|
2321
|
+
return e3.availableValues ? t3 : Me(t3);
|
|
2238
2322
|
throw "Please input a valid date.";
|
|
2239
2323
|
}, function(e4, t3) {
|
|
2240
|
-
return e4 =
|
|
2324
|
+
return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
|
|
2241
2325
|
});
|
|
2242
2326
|
} }, e2[Fe] = { validate: function(e3, n2) {
|
|
2243
2327
|
return t2(e3, n2, function(t3) {
|
|
@@ -2252,11 +2336,11 @@ var telerikReportViewer = (function (exports) {
|
|
|
2252
2336
|
} }, { validate: function(t3, i3) {
|
|
2253
2337
|
var n2 = e2[t3.type];
|
|
2254
2338
|
if (!n2)
|
|
2255
|
-
throw
|
|
2339
|
+
throw Le("Cannot validate parameter of type {type}.", t3);
|
|
2256
2340
|
return n2.validate(t3, i3);
|
|
2257
2341
|
} };
|
|
2258
2342
|
}();
|
|
2259
|
-
function
|
|
2343
|
+
function Oe(e2, t2, i2) {
|
|
2260
2344
|
try {
|
|
2261
2345
|
const n2 = e2.availableValues.find((e3) => e3.value === t2);
|
|
2262
2346
|
if (!n2) {
|
|
@@ -2272,7 +2356,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2272
2356
|
function ze(e2, t2, i2) {
|
|
2273
2357
|
const n2 = [];
|
|
2274
2358
|
for (let r2 in t2)
|
|
2275
|
-
n2.push(
|
|
2359
|
+
n2.push(Oe(e2, t2[r2], i2));
|
|
2276
2360
|
return n2;
|
|
2277
2361
|
}
|
|
2278
2362
|
class _e {
|
|
@@ -2280,7 +2364,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2280
2364
|
this.report = e2, this.parameters = t2;
|
|
2281
2365
|
}
|
|
2282
2366
|
}
|
|
2283
|
-
class
|
|
2367
|
+
class He extends B {
|
|
2284
2368
|
constructor(e2) {
|
|
2285
2369
|
super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
|
|
2286
2370
|
}
|
|
@@ -2288,7 +2372,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2288
2372
|
this.destroyResizeObserver();
|
|
2289
2373
|
}
|
|
2290
2374
|
initResizeObserver() {
|
|
2291
|
-
this.debounceResize =
|
|
2375
|
+
this.debounceResize = Ce(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
|
|
2292
2376
|
}
|
|
2293
2377
|
destroyResizeObserver() {
|
|
2294
2378
|
this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
|
|
@@ -2297,8 +2381,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
2297
2381
|
e2[0].target === this.element && this.emit("resize");
|
|
2298
2382
|
}
|
|
2299
2383
|
}
|
|
2300
|
-
const
|
|
2301
|
-
class
|
|
2384
|
+
const Ue = '<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>';
|
|
2385
|
+
class $e {
|
|
2302
2386
|
constructor(t2, i2, n2) {
|
|
2303
2387
|
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));
|
|
2304
2388
|
}
|
|
@@ -2320,10 +2404,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2320
2404
|
return this.enabled;
|
|
2321
2405
|
}
|
|
2322
2406
|
enable() {
|
|
2323
|
-
this.enabled = true,
|
|
2407
|
+
this.enabled = true, re(this.placeholder, "scrollable"), this.initEvents();
|
|
2324
2408
|
}
|
|
2325
2409
|
disable() {
|
|
2326
|
-
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false,
|
|
2410
|
+
this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, se(this.placeholder, "scrollable"), this.unbind());
|
|
2327
2411
|
}
|
|
2328
2412
|
renderPage(e2) {
|
|
2329
2413
|
let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
|
|
@@ -2338,7 +2422,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2338
2422
|
this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
|
|
2339
2423
|
}
|
|
2340
2424
|
setCurrentPage(e2) {
|
|
2341
|
-
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (
|
|
2425
|
+
e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (se(this.findElement(".k-state-default"), "k-state-default"), re(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
|
|
2342
2426
|
}
|
|
2343
2427
|
updatePageArea(e2) {
|
|
2344
2428
|
var t2;
|
|
@@ -2363,18 +2447,18 @@ var telerikReportViewer = (function (exports) {
|
|
|
2363
2447
|
return this.controller.getCurrentPageNumber();
|
|
2364
2448
|
}
|
|
2365
2449
|
isSkeletonScreen(e2, t2) {
|
|
2366
|
-
return !(!e2 && !(e2 = this.findPageElement(t2))) &&
|
|
2450
|
+
return !(!e2 && !(e2 = this.findPageElement(t2))) && oe(e2, "trv-skeleton-" + t2);
|
|
2367
2451
|
}
|
|
2368
2452
|
addSkeletonScreen(e2, t2) {
|
|
2369
|
-
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 =
|
|
2370
|
-
t2 ?
|
|
2453
|
+
let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = ve(n2, "style"), s2 = ve(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = Le(Ue, e2, r2, s2);
|
|
2454
|
+
t2 ? fe(this.pageWrapper, o2) : ge(this.pageWrapper, o2);
|
|
2371
2455
|
}
|
|
2372
2456
|
generateSkeletonScreens(e2) {
|
|
2373
2457
|
var t2;
|
|
2374
|
-
let i2 = "", n2 = this.findPageElement(1), r2 =
|
|
2458
|
+
let i2 = "", n2 = this.findPageElement(1), r2 = ve(n2, "style"), s2 = ve(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;
|
|
2375
2459
|
for (; a2 < e2; a2++)
|
|
2376
|
-
i2 +=
|
|
2377
|
-
|
|
2460
|
+
i2 += Le(Ue, a2, r2, s2);
|
|
2461
|
+
ge(this.pageWrapper, i2);
|
|
2378
2462
|
}
|
|
2379
2463
|
loadMorePages() {
|
|
2380
2464
|
var e2;
|
|
@@ -2425,10 +2509,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2425
2509
|
}
|
|
2426
2510
|
}
|
|
2427
2511
|
initEvents() {
|
|
2428
|
-
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll =
|
|
2512
|
+
this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Ce(() => {
|
|
2429
2513
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2430
2514
|
!this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
|
|
2431
|
-
}, 250), this.throttleScroll =
|
|
2515
|
+
}, 250), this.throttleScroll = ye(() => {
|
|
2432
2516
|
let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
|
|
2433
2517
|
this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
|
|
2434
2518
|
}, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
|
|
@@ -2531,7 +2615,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2531
2615
|
this.reset(e2), this.attachToScrollEvent();
|
|
2532
2616
|
}
|
|
2533
2617
|
reset(e2) {
|
|
2534
|
-
this.placeholder = e2, this.scrollableContainer =
|
|
2618
|
+
this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
|
|
2535
2619
|
}
|
|
2536
2620
|
setScaleFactor(e2) {
|
|
2537
2621
|
this.scaleFactor = e2;
|
|
@@ -2554,7 +2638,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2554
2638
|
saveFreezeItemsInitialState(e2) {
|
|
2555
2639
|
var t2, i2, n2;
|
|
2556
2640
|
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;
|
|
2557
|
-
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 =
|
|
2641
|
+
this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = me(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
|
|
2558
2642
|
var i3;
|
|
2559
2643
|
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;
|
|
2560
2644
|
switch (n3) {
|
|
@@ -2576,13 +2660,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
2576
2660
|
}
|
|
2577
2661
|
updateFreezeItemsOnScroll(e2, t2, i2) {
|
|
2578
2662
|
var n2, r2;
|
|
2579
|
-
let s2 =
|
|
2663
|
+
let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
|
|
2580
2664
|
if (!s2)
|
|
2581
2665
|
return;
|
|
2582
2666
|
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 + "']");
|
|
2583
2667
|
if (this.isInScrollVisibleArea(s2)) {
|
|
2584
|
-
let n3 = s2.closest(".trv-report-page"), r3 = getComputedStyle(n3), l2 = parseFloat(r3.marginLeft), h2 = parseFloat(r3.paddingTop), c2 = parseFloat(r3.paddingLeft), d2 = parseFloat(r3.borderTopWidth), u2 = parseFloat(r3.borderLeftWidth), p2 = o2.length > 0, g2 = a2.length > 0,
|
|
2585
|
-
g2 && v2 > 0 ? t2 <= s2.offsetHeight * this.scaleFactor +
|
|
2668
|
+
let n3 = s2.closest(".trv-report-page"), r3 = getComputedStyle(n3), l2 = parseFloat(r3.marginLeft), h2 = parseFloat(r3.paddingTop), c2 = parseFloat(r3.paddingLeft), d2 = parseFloat(r3.borderTopWidth), u2 = parseFloat(r3.borderLeftWidth), p2 = o2.length > 0, g2 = a2.length > 0, f2 = s2.offsetTop + ((null == n3 ? void 0 : n3.offsetTop) || 0) + l2 + h2 + d2, m2 = s2.offsetLeft + ((null == n3 ? void 0 : n3.offsetLeft) || 0) + c2 + u2, v2 = t2 - f2, P2 = i2 - m2;
|
|
2669
|
+
g2 && v2 > 0 ? t2 <= s2.offsetHeight * this.scaleFactor + f2 - this.yFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.vertical[e2] = true, this.updateUIElementsPosition(a2, "top", v2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.vertical[e2] && (delete this.currentlyFrozenContainer.vertical[e2], this.updateUIElementsPosition(a2, "top", -1, e2)), p2 && P2 > 0 ? i2 <= s2.offsetWidth * this.scaleFactor + m2 - this.xFrozenAreasBounds[e2] && (this.currentlyFrozenContainer.horizontal[e2] = true, this.updateUIElementsPosition(o2, "left", P2 / this.scaleFactor, e2)) : this.currentlyFrozenContainer.horizontal[e2] && (delete this.currentlyFrozenContainer.horizontal[e2], this.updateUIElementsPosition(o2, "left", -1, e2));
|
|
2586
2670
|
} else
|
|
2587
2671
|
(this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2]) && this.resetToDefaultPosition(e2, o2, a2);
|
|
2588
2672
|
}
|
|
@@ -2601,7 +2685,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2601
2685
|
"IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
|
|
2602
2686
|
}
|
|
2603
2687
|
hasSetBgColor(e2) {
|
|
2604
|
-
return
|
|
2688
|
+
return pe(e2) > 0;
|
|
2605
2689
|
}
|
|
2606
2690
|
isFrozen(e2) {
|
|
2607
2691
|
return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
|
|
@@ -2622,20 +2706,20 @@ var telerikReportViewer = (function (exports) {
|
|
|
2622
2706
|
}
|
|
2623
2707
|
}
|
|
2624
2708
|
const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
|
|
2625
|
-
function
|
|
2709
|
+
function Ze(e2, t2) {
|
|
2626
2710
|
let i2 = Array.isArray(t2);
|
|
2627
2711
|
return e2 ? e2.replace(qe, function(e3, n2) {
|
|
2628
2712
|
return t2[i2 ? parseInt(n2) : n2];
|
|
2629
2713
|
}) : "";
|
|
2630
2714
|
}
|
|
2631
|
-
const
|
|
2632
|
-
e.BasicAuth =
|
|
2715
|
+
const je = "trv-search-dialog-shaded-result", Je = "trv-search-dialog-highlighted-result";
|
|
2716
|
+
e.BasicAuth = S, e.BookmarkNode = class {
|
|
2633
2717
|
constructor() {
|
|
2634
2718
|
this.id = "", this.text = "", this.page = 0, this.items = null;
|
|
2635
2719
|
}
|
|
2636
|
-
}, e.ConnectionConfig =
|
|
2720
|
+
}, e.ConnectionConfig = L, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
|
|
2637
2721
|
constructor(e2, t2, i2, n2 = {}) {
|
|
2638
|
-
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
|
|
2722
|
+
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 $e(this.placeholder, this, t2), this.resizeService = new He(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 || "";
|
|
2639
2723
|
}
|
|
2640
2724
|
destroy() {
|
|
2641
2725
|
this.resizeService && this.resizeService.destroy();
|
|
@@ -2662,10 +2746,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2662
2746
|
this.documentReady = true, this.invalidateCurrentlyLoadedPage();
|
|
2663
2747
|
}
|
|
2664
2748
|
onReportLoadProgress(e2) {
|
|
2665
|
-
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(
|
|
2749
|
+
this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Ze(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
|
|
2666
2750
|
}
|
|
2667
2751
|
onReportLoadComplete(t2) {
|
|
2668
|
-
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(
|
|
2752
|
+
0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(Ze(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));
|
|
2669
2753
|
}
|
|
2670
2754
|
onReportAutoRunOff() {
|
|
2671
2755
|
this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
|
|
@@ -2702,14 +2786,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2702
2786
|
let t2 = this.controller.getScaleMode();
|
|
2703
2787
|
return t2 === e.ScaleMode.FitPage || t2 === e.ScaleMode.FitPageWidth;
|
|
2704
2788
|
}
|
|
2705
|
-
onPrintStarted() {
|
|
2706
|
-
this.showNotification(this.messages.ReportViewer_PreparingPrint);
|
|
2789
|
+
onPrintStarted(e2) {
|
|
2790
|
+
e2.handled || this.showNotification(this.messages.ReportViewer_PreparingPrint);
|
|
2707
2791
|
}
|
|
2708
2792
|
onPrintDocumentReady() {
|
|
2709
2793
|
this.hideNotification();
|
|
2710
2794
|
}
|
|
2711
|
-
onExportStarted() {
|
|
2712
|
-
this.showNotification(this.messages.ReportViewer_PreparingDownload);
|
|
2795
|
+
onExportStarted(e2) {
|
|
2796
|
+
e2.handled || this.showNotification(this.messages.ReportViewer_PreparingDownload);
|
|
2713
2797
|
}
|
|
2714
2798
|
onExportDocumentReady() {
|
|
2715
2799
|
this.hideNotification();
|
|
@@ -2762,14 +2846,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
2762
2846
|
}
|
|
2763
2847
|
let e3 = 0, i3 = 0;
|
|
2764
2848
|
for (; n2 && n2 !== this.pageContainer; ) {
|
|
2765
|
-
if (
|
|
2849
|
+
if (oe(n2, "trv-page-wrapper")) {
|
|
2766
2850
|
let t3 = n2.dataset.pageScale;
|
|
2767
2851
|
if ("string" == typeof t3) {
|
|
2768
2852
|
let n3 = parseFloat(t3);
|
|
2769
2853
|
e3 *= n3, i3 *= n3;
|
|
2770
2854
|
}
|
|
2771
2855
|
}
|
|
2772
|
-
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 =
|
|
2856
|
+
e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = ae(n2);
|
|
2773
2857
|
}
|
|
2774
2858
|
this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
|
|
2775
2859
|
} else
|
|
@@ -2783,7 +2867,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2783
2867
|
return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
|
|
2784
2868
|
}
|
|
2785
2869
|
disablePagesArea(e2) {
|
|
2786
|
-
e2 ?
|
|
2870
|
+
e2 ? re(this.placeholder, "trv-loading") : se(this.placeholder, "trv-loading");
|
|
2787
2871
|
}
|
|
2788
2872
|
disableParametersArea(e2) {
|
|
2789
2873
|
var t2, i2;
|
|
@@ -2794,13 +2878,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
2794
2878
|
}
|
|
2795
2879
|
showNotification(e2 = "", t2 = "info") {
|
|
2796
2880
|
let i2 = this.notification.dataset.type;
|
|
2797
|
-
i2 &&
|
|
2881
|
+
i2 && se(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
|
|
2798
2882
|
let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
|
|
2799
|
-
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.",
|
|
2883
|
+
n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", re(this.notification, `k-notification-${t2}`), se(this.notification, "k-hidden");
|
|
2800
2884
|
}
|
|
2801
2885
|
hideNotification() {
|
|
2802
2886
|
let e2 = String(this.notification.dataset.type);
|
|
2803
|
-
delete this.notification.dataset.type,
|
|
2887
|
+
delete this.notification.dataset.type, se(this.notification, `k-notification-${e2}`), re(this.notification, "k-hidden");
|
|
2804
2888
|
}
|
|
2805
2889
|
pageNo(e2) {
|
|
2806
2890
|
var t2;
|
|
@@ -2823,7 +2907,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2823
2907
|
r2 = JSON.parse(n2.dataset.box);
|
|
2824
2908
|
else {
|
|
2825
2909
|
let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
|
|
2826
|
-
r2 = { padLeft:
|
|
2910
|
+
r2 = { padLeft: le(i3.marginLeft) + le(e2.borderLeftWidth) + le(e2.paddingLeft), padRight: le(i3.marginRight) + le(e2.borderRightWidth) + le(e2.paddingRight), padTop: le(i3.marginTop) + le(e2.borderTopWidth) + le(e2.paddingTop), padBottom: le(i3.marginBottom) + le(e2.borderBottomWidth) + le(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
|
|
2827
2911
|
}
|
|
2828
2912
|
let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
|
|
2829
2913
|
if (0 === a2) {
|
|
@@ -2832,13 +2916,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
2832
2916
|
}
|
|
2833
2917
|
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;
|
|
2834
2918
|
let p2 = this.controller.getScale();
|
|
2835
|
-
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 ||
|
|
2919
|
+
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 || he(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
|
|
2836
2920
|
}
|
|
2837
2921
|
enableInteractivity() {
|
|
2838
|
-
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);
|
|
2922
|
+
this.disableInteractivity(), 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);
|
|
2839
2923
|
}
|
|
2840
2924
|
disableInteractivity() {
|
|
2841
|
-
this.pageContainer.removeEventListener("click", this.onClickHandler), this.pageContainer.removeEventListener("mouseenter", this.onMouseEnterHandler), this.pageContainer.removeEventListener("mouseleave", this.onMouseLeaveHandler);
|
|
2925
|
+
this.onClickHandler && (this.pageContainer.removeEventListener("click", this.onClickHandler), this.onClickHandler = null), this.onMouseEnterHandler && (this.pageContainer.removeEventListener("mouseenter", this.onMouseEnterHandler, true), this.onMouseEnterHandler = null), this.onMouseLeaveHandler && (this.pageContainer.removeEventListener("mouseleave", this.onMouseLeaveHandler, true), this.onMouseLeaveHandler = null);
|
|
2842
2926
|
}
|
|
2843
2927
|
onClick(e2) {
|
|
2844
2928
|
let t2 = e2.target.closest("[data-reporting-action]");
|
|
@@ -2869,10 +2953,10 @@ var telerikReportViewer = (function (exports) {
|
|
|
2869
2953
|
}
|
|
2870
2954
|
onToolTipItemEnter(e2, t2) {
|
|
2871
2955
|
let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
|
|
2872
|
-
(i2 || n2) && this.controller.reportTooltipOpening(new
|
|
2956
|
+
(i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
|
|
2873
2957
|
}
|
|
2874
2958
|
onToolTipItemLeave(e2) {
|
|
2875
|
-
this.controller.reportTooltipClosing(new
|
|
2959
|
+
this.controller.reportTooltipClosing(new f(e2, "", "", null));
|
|
2876
2960
|
}
|
|
2877
2961
|
getNavigateToPageOnDocReady(e2, t2) {
|
|
2878
2962
|
var i2;
|
|
@@ -2890,7 +2974,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2890
2974
|
var t2;
|
|
2891
2975
|
let i2 = "trv-" + this.controller.getClientId() + "-styles";
|
|
2892
2976
|
null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
|
|
2893
|
-
let n2 =
|
|
2977
|
+
let n2 = ne("style", i2);
|
|
2894
2978
|
n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
|
|
2895
2979
|
}
|
|
2896
2980
|
setPageContent(e2) {
|
|
@@ -2902,26 +2986,26 @@ var telerikReportViewer = (function (exports) {
|
|
|
2902
2986
|
this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
|
|
2903
2987
|
}
|
|
2904
2988
|
renderPageElement(e2) {
|
|
2905
|
-
let t2 =
|
|
2989
|
+
let t2 = ne("div");
|
|
2906
2990
|
t2.innerHTML = e2.pageContent;
|
|
2907
2991
|
let i2 = t2.querySelector("div.sheet");
|
|
2908
2992
|
i2.style.margin = "0";
|
|
2909
|
-
let n2 =
|
|
2910
|
-
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(
|
|
2993
|
+
let n2 = ne("div", "", "trv-report-page");
|
|
2994
|
+
return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ne("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
|
|
2911
2995
|
}
|
|
2912
2996
|
applyPlaceholderViewModeClass() {
|
|
2913
|
-
this.controller.getViewMode() === e.ViewMode.Interactive ? (
|
|
2997
|
+
this.controller.getViewMode() === e.ViewMode.Interactive ? (se(this.placeholder, "printpreview"), re(this.placeholder, "interactive")) : (se(this.placeholder, "interactive"), re(this.placeholder, "printpreview"));
|
|
2914
2998
|
}
|
|
2915
2999
|
setPageAreaImage() {
|
|
2916
3000
|
this.clearPageAreaImage();
|
|
2917
|
-
let e2 =
|
|
2918
|
-
e2.innerHTML =
|
|
3001
|
+
let e2 = ne("style", We);
|
|
3002
|
+
e2.innerHTML = Ze('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
|
|
2919
3003
|
}
|
|
2920
3004
|
clearPageAreaImage() {
|
|
2921
3005
|
var e2;
|
|
2922
3006
|
null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
|
|
2923
3007
|
}
|
|
2924
|
-
}, e.CurrentPageChangedEventArgs =
|
|
3008
|
+
}, e.CurrentPageChangedEventArgs = g, e.DeviceInfo = n, e.DocumentInfo = class {
|
|
2925
3009
|
constructor() {
|
|
2926
3010
|
this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
|
|
2927
3011
|
}
|
|
@@ -2929,7 +3013,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2929
3013
|
constructor() {
|
|
2930
3014
|
this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
|
|
2931
3015
|
}
|
|
2932
|
-
}, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel =
|
|
3016
|
+
}, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = X, e.NoAuth = y, e.PageAction = class {
|
|
2933
3017
|
constructor() {
|
|
2934
3018
|
this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
|
|
2935
3019
|
}
|
|
@@ -2941,17 +3025,17 @@ var telerikReportViewer = (function (exports) {
|
|
|
2941
3025
|
constructor() {
|
|
2942
3026
|
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 = "";
|
|
2943
3027
|
}
|
|
2944
|
-
}, e.ParameterValidators =
|
|
3028
|
+
}, e.ParameterValidators = Ve, e.ParameterValue = class {
|
|
2945
3029
|
constructor() {
|
|
2946
3030
|
this.name = "", this.value = null;
|
|
2947
3031
|
}
|
|
2948
|
-
}, e.PersonalTokenAuth =
|
|
3032
|
+
}, e.PersonalTokenAuth = I, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
|
|
2949
3033
|
constructor() {
|
|
2950
3034
|
this.name = "", this.localizedName = "";
|
|
2951
3035
|
}
|
|
2952
|
-
}, e.ReportController = class extends
|
|
3036
|
+
}, e.ReportController = class extends B {
|
|
2953
3037
|
constructor(e2, t2) {
|
|
2954
|
-
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
|
|
3038
|
+
super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new G(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
|
|
2955
3039
|
}
|
|
2956
3040
|
get autoRunEnabled() {
|
|
2957
3041
|
var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
|
|
@@ -2995,7 +3079,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
2995
3079
|
let t2 = {}, i2 = [], n2 = false;
|
|
2996
3080
|
for (let r2 of e2)
|
|
2997
3081
|
try {
|
|
2998
|
-
let e3 =
|
|
3082
|
+
let e3 = Ve.validate(r2, r2.value);
|
|
2999
3083
|
t2[r2.id] = e3;
|
|
3000
3084
|
} catch (e3) {
|
|
3001
3085
|
n2 = true, i2.push(r2);
|
|
@@ -3018,7 +3102,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3018
3102
|
hasInvalidParameter(e2) {
|
|
3019
3103
|
for (const t2 of e2)
|
|
3020
3104
|
try {
|
|
3021
|
-
|
|
3105
|
+
Ve.validate(t2, t2.value);
|
|
3022
3106
|
} catch (e3) {
|
|
3023
3107
|
return true;
|
|
3024
3108
|
}
|
|
@@ -3095,7 +3179,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3095
3179
|
return this.currentPageNumber;
|
|
3096
3180
|
}
|
|
3097
3181
|
setCurrentPageNumber(e2) {
|
|
3098
|
-
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new
|
|
3182
|
+
this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new g(e2, this.documentId)));
|
|
3099
3183
|
}
|
|
3100
3184
|
getPageCount() {
|
|
3101
3185
|
return this.pageCount;
|
|
@@ -3105,8 +3189,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
3105
3189
|
}
|
|
3106
3190
|
executeReportAction(e2) {
|
|
3107
3191
|
let t2 = e2.action;
|
|
3108
|
-
window.setTimeout(() => {
|
|
3109
|
-
|
|
3192
|
+
window.setTimeout(() => i(this, void 0, void 0, function* () {
|
|
3193
|
+
try {
|
|
3194
|
+
yield this.emitAsync("interactiveActionExecuting", e2), this.emit("interactiveActionExecuting", e2);
|
|
3195
|
+
} catch (e3) {
|
|
3196
|
+
return void this.raiseError(e3 instanceof Error ? e3.message : String(e3));
|
|
3197
|
+
}
|
|
3198
|
+
if (!e2.cancel)
|
|
3110
3199
|
if ("navigateToReport" === t2.Type) {
|
|
3111
3200
|
this.emit("serverActionStarted");
|
|
3112
3201
|
let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
|
|
@@ -3123,7 +3212,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3123
3212
|
window.open(e3.Url, e3.Target);
|
|
3124
3213
|
} else
|
|
3125
3214
|
t2.Type;
|
|
3126
|
-
}, 0);
|
|
3215
|
+
}), 0);
|
|
3127
3216
|
}
|
|
3128
3217
|
reportActionEnter(e2) {
|
|
3129
3218
|
this.emit("interactiveActionEnter", e2);
|
|
@@ -3132,7 +3221,13 @@ var telerikReportViewer = (function (exports) {
|
|
|
3132
3221
|
this.emit("interactiveActionLeave", e2);
|
|
3133
3222
|
}
|
|
3134
3223
|
reportTooltipOpening(e2) {
|
|
3135
|
-
this
|
|
3224
|
+
return i(this, void 0, void 0, function* () {
|
|
3225
|
+
try {
|
|
3226
|
+
yield this.emitAsync("toolTipOpening", e2), this.emit("toolTipOpening", e2);
|
|
3227
|
+
} catch (e3) {
|
|
3228
|
+
this.raiseError(e3 instanceof Error ? e3.message : String(e3));
|
|
3229
|
+
}
|
|
3230
|
+
});
|
|
3136
3231
|
}
|
|
3137
3232
|
reportTooltipClosing(e2) {
|
|
3138
3233
|
this.emit("toolTipClosing", e2);
|
|
@@ -3142,37 +3237,39 @@ var telerikReportViewer = (function (exports) {
|
|
|
3142
3237
|
let e2 = this.createDeviceInfo();
|
|
3143
3238
|
e2.ImmediatePrint = true;
|
|
3144
3239
|
let t2 = new c(e2);
|
|
3145
|
-
this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF",
|
|
3240
|
+
yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) => i(this, void 0, void 0, function* () {
|
|
3146
3241
|
let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
|
|
3147
3242
|
t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
|
|
3148
3243
|
let i2 = new d(t3);
|
|
3149
|
-
this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
|
|
3150
|
-
}));
|
|
3244
|
+
yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
|
|
3245
|
+
})));
|
|
3151
3246
|
});
|
|
3152
3247
|
}
|
|
3153
3248
|
exportReport(e2) {
|
|
3154
3249
|
return i(this, void 0, void 0, function* () {
|
|
3155
3250
|
let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
|
|
3156
3251
|
if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
|
|
3157
|
-
let
|
|
3158
|
-
if (this.emit("exportStarted",
|
|
3252
|
+
let t3 = new l(n2.deviceInfo, n2.format);
|
|
3253
|
+
if (yield this.emitAsync("exportStarted", t3), this.emit("exportStarted", t3), t3.handled)
|
|
3159
3254
|
return;
|
|
3160
|
-
this.setUIState("ExportInProgress", true), this.exportAsync(
|
|
3161
|
-
let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId,
|
|
3255
|
+
this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) => i(this, void 0, void 0, function* () {
|
|
3256
|
+
let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
|
|
3162
3257
|
i2 += "?response-content-disposition=attachment";
|
|
3163
3258
|
let n3 = new h(i2, e2, "_self");
|
|
3164
|
-
yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
|
|
3259
|
+
yield this.emitAsync("exportEnd", n3), yield this.emitAsync("exportDocumentReady", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
|
|
3165
3260
|
}));
|
|
3166
3261
|
}
|
|
3167
3262
|
});
|
|
3168
3263
|
}
|
|
3169
3264
|
sendReport(e2) {
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3265
|
+
return i(this, void 0, void 0, function* () {
|
|
3266
|
+
let t2 = this.createDeviceInfo(), n2 = new u(t2, e2.format);
|
|
3267
|
+
yield this.emitAsync("sendEmailStarted", n2), this.emit("sendEmailStarted", n2), n2.handled || this.exportAsync(e2.format, n2.deviceInfo).then((t3) => i(this, void 0, void 0, function* () {
|
|
3268
|
+
let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
|
|
3269
|
+
i2 += "?response-content-disposition=attachment";
|
|
3270
|
+
let r2 = new p(e2, n2.deviceInfo, i2);
|
|
3271
|
+
yield this.emitAsync("sendEmailDocumentReady", r2), this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(t3, r2);
|
|
3272
|
+
}));
|
|
3176
3273
|
});
|
|
3177
3274
|
}
|
|
3178
3275
|
getSearchResults(e2) {
|
|
@@ -3196,7 +3293,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3196
3293
|
}
|
|
3197
3294
|
sendDocumentAsync(e2, t2) {
|
|
3198
3295
|
return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
|
|
3199
|
-
this.handleRequestError(e3,
|
|
3296
|
+
this.handleRequestError(e3, Le(this.options.messages.ReportViewer_ErrorSendingDocument, ce(this.getReport())));
|
|
3200
3297
|
});
|
|
3201
3298
|
}
|
|
3202
3299
|
loadParameters(e2 = void 0) {
|
|
@@ -3209,7 +3306,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3209
3306
|
}
|
|
3210
3307
|
initializeAndStartSentinel() {
|
|
3211
3308
|
this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
|
|
3212
|
-
this.keepClientAliveSentinel = new
|
|
3309
|
+
this.keepClientAliveSentinel = new X(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
|
|
3213
3310
|
});
|
|
3214
3311
|
}
|
|
3215
3312
|
stopSentinel() {
|
|
@@ -3234,7 +3331,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3234
3331
|
this.pageCount = 0, this.currentPageNumber = 0;
|
|
3235
3332
|
}
|
|
3236
3333
|
handleSearchRequestError(e2) {
|
|
3237
|
-
if (!
|
|
3334
|
+
if (!Se(e2, "System.ArgumentException"))
|
|
3238
3335
|
throw this.handleRequestError(e2, "", true), null;
|
|
3239
3336
|
this.throwPromiseError(e2);
|
|
3240
3337
|
}
|
|
@@ -3242,8 +3339,8 @@ var telerikReportViewer = (function (exports) {
|
|
|
3242
3339
|
throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
|
|
3243
3340
|
}
|
|
3244
3341
|
handleRequestError(e2, t2 = "", i2 = false) {
|
|
3245
|
-
|
|
3246
|
-
let n2 =
|
|
3342
|
+
Ie(e2) && this.onClientExpired();
|
|
3343
|
+
let n2 = we(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
|
|
3247
3344
|
this.raiseError(r2), i2 || this.throwPromiseError(e2);
|
|
3248
3345
|
}
|
|
3249
3346
|
formatRequestError(e2, t2, i2) {
|
|
@@ -3251,14 +3348,14 @@ var telerikReportViewer = (function (exports) {
|
|
|
3251
3348
|
if (n2) {
|
|
3252
3349
|
if (401 == n2.status || 403 == n2.status)
|
|
3253
3350
|
return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
|
|
3254
|
-
if (
|
|
3351
|
+
if (be(e2))
|
|
3255
3352
|
return this.options.messages.ReportViewer_MissingOrInvalidParameter;
|
|
3256
|
-
r2 =
|
|
3257
|
-
let t3 =
|
|
3353
|
+
r2 = ce(n2.message);
|
|
3354
|
+
let t3 = ce(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
|
|
3258
3355
|
t3 && (r2 ? r2 += " " + t3 : r2 = t3);
|
|
3259
3356
|
} else
|
|
3260
|
-
r2 =
|
|
3261
|
-
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 =
|
|
3357
|
+
r2 = ce(e2.responseText);
|
|
3358
|
+
return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = ce(i2 || t2) + r2), Ie(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
|
|
3262
3359
|
}
|
|
3263
3360
|
raiseError(e2, t2 = true) {
|
|
3264
3361
|
this.emit("error", e2, t2);
|
|
@@ -3271,7 +3368,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3271
3368
|
}
|
|
3272
3369
|
initializeClient() {
|
|
3273
3370
|
return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
|
|
3274
|
-
const t2 =
|
|
3371
|
+
const t2 = Le(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
|
|
3275
3372
|
this.handleRequestError(e2, t2);
|
|
3276
3373
|
}).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
|
|
3277
3374
|
}
|
|
@@ -3281,7 +3378,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3281
3378
|
registerDocumentAsync(e2, t2, n2) {
|
|
3282
3379
|
return i(this, arguments, void 0, function* (e3, t3, i2, n3 = "", r2 = "") {
|
|
3283
3380
|
return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i2, n3, r2).catch((t4) => {
|
|
3284
|
-
this.handleRequestError(t4,
|
|
3381
|
+
this.handleRequestError(t4, Le(this.options.messages.ReportViewer_ErrorCreatingReportDocument, ce(this.getReport()), ce(e3)));
|
|
3285
3382
|
})) || "";
|
|
3286
3383
|
});
|
|
3287
3384
|
}
|
|
@@ -3319,7 +3416,7 @@ var telerikReportViewer = (function (exports) {
|
|
|
3319
3416
|
const e2 = {}, t2 = this.getProcessedParameterValues();
|
|
3320
3417
|
for (let i2 in t2) {
|
|
3321
3418
|
const n2 = t2[i2], r2 = this.parameterValues[i2];
|
|
3322
|
-
n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] =
|
|
3419
|
+
n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Oe(n2, r2, i2) : e2[i2] = r2;
|
|
3323
3420
|
}
|
|
3324
3421
|
return e2;
|
|
3325
3422
|
}
|
|
@@ -3440,6 +3537,19 @@ ${e3.text} (${e3.id})`;
|
|
|
3440
3537
|
var e2, t2;
|
|
3441
3538
|
return !(null === (t2 = null === (e2 = this.configurationInfo) || void 0 === e2 ? void 0 : e2.license) || void 0 === t2 ? void 0 : t2.isValid);
|
|
3442
3539
|
}
|
|
3540
|
+
getBannerIconFromId(e2) {
|
|
3541
|
+
switch (e2) {
|
|
3542
|
+
case 0:
|
|
3543
|
+
default:
|
|
3544
|
+
return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M22.702 2.1821C24.3149 2.51082 25.8077 3.27291 27.0199 4.38645C28.2321 5.49999 29.1179 6.92286 29.582 8.5021C30.012 9.9501 30.076 11.4821 29.768 12.9621C29.3228 14.9898 28.2025 16.8063 26.5904 18.1143C24.9783 19.4223 22.9699 20.1443 20.894 20.1621C20.018 20.1621 19.146 20.0361 18.308 19.7821L16.708 21.6581L15.95 22.0081H14V25.0081L13 26.0081H10V29.0081L9 30.0081H3L2 29.0081V24.3941L2.292 23.6881L12.24 13.7401C11.9577 12.8308 11.8226 11.8821 11.84 10.9301C11.8582 9.59817 12.1701 8.28666 12.7533 7.08907C13.3365 5.89147 14.1767 4.83728 15.214 4.00164C16.2514 3.166 17.4603 2.56949 18.7546 2.25464C20.0489 1.93978 21.3967 1.91633 22.702 2.1821ZM25.338 16.5821C26.5944 15.5647 27.4681 14.1509 27.816 12.5721L27.824 12.5821C28.0718 11.4277 28.0272 10.2297 27.6943 9.09691C27.3614 7.96412 26.7507 6.93248 25.9177 6.09572C25.0847 5.25896 24.0558 4.64361 22.9246 4.30557C21.7933 3.96753 20.5955 3.91753 19.44 4.1601C17.8816 4.506 16.4837 5.36334 15.4688 6.59561C14.454 7.82789 13.8806 9.36426 13.84 10.9601C13.82 11.8721 13.98 12.7761 14.318 13.6201L14.098 14.7061L4 24.8081V28.0081H8V25.0081L9 24.0081H12V21.0081L13 20.0081H15.49L17.242 17.9761L18.364 17.6961C19.1728 18.0121 20.0337 18.1736 20.902 18.1721C22.5181 18.1597 24.082 17.5991 25.338 16.5821ZM23.662 11.1181C23.8197 10.9002 23.9318 10.6527 23.9916 10.3905C24.0515 10.1283 24.0578 9.85665 24.0103 9.59192C23.9627 9.32718 23.8622 9.07476 23.7148 8.84975C23.5675 8.62474 23.3762 8.43177 23.1526 8.28238C22.9289 8.133 22.6774 8.03026 22.4131 7.98033C22.1488 7.93039 21.8771 7.93428 21.6144 7.99176C21.3516 8.04925 21.1031 8.15914 20.8838 8.31487C20.6645 8.4706 20.4789 8.66896 20.338 8.8981C20.067 9.33887 19.9774 9.86752 20.088 10.373C20.1985 10.8784 20.5007 11.3214 20.931 11.6087C21.3613 11.8961 21.8862 12.0055 22.3954 11.914C22.9047 11.8226 23.3587 11.5373 23.662 11.1181Z"\n fill="black"\n />\n <path\n d="M23.1299 16.0186L31.1387 31.0273L31.0068 31.25H14.9932L14.8604 31.0273L22.8955 16.0186H23.1299Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.5"\n />\n <rect x="22.25" y="21.2686" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28.2686C24 27.7163 23.5523 27.2686 23 27.2686C22.4479 27.2687 22 27.7164 22 28.2686C22 28.8207 22.4479 29.2684 23 29.2686C23.5523 29.2686 24 28.8208 24 28.2686Z"\n fill="black"\n />\n </svg>';
|
|
3545
|
+
case 1:
|
|
3546
|
+
return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M18.5631 11.7812H10.4369L14.5 21.2619L18.5631 11.7812ZM18.5631 9.96875H10.4369L12.3788 5.4375H16.6212L18.5631 9.96875ZM20.5351 11.7812L17.2221 19.5116L23.9861 11.7812H20.5351ZM20.5351 9.96875L18.5931 5.4375H20.8437L24.2422 9.96875H20.5351ZM8.46492 9.96875L10.4069 5.4375H8.15625L4.75781 9.96875H8.46492ZM11.7779 19.5116L8.46492 11.7812H5.01386L11.7779 19.5116ZM27.1875 10.875L14.5 25.375L1.8125 10.875L7.25 3.625H21.75L27.1875 10.875Z"\n fill="black"\n />\n <path\n d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"\n fill="black"\n />\n </svg>';
|
|
3547
|
+
case 2:
|
|
3548
|
+
return '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M27.8295 9.38659C28.8049 12.1653 28.7404 15.1391 27.774 17.7996C26.8014 20.4767 24.9215 22.8356 22.2691 24.367C19.7765 25.8061 16.9908 26.2908 14.3393 25.9323C11.6293 25.5682 9.06228 24.3215 7.08577 22.3155L8.23679 21.1826C9.95578 22.9294 12.1925 24.0142 14.5527 24.333C16.8583 24.6438 19.2821 24.2206 21.457 22.965C23.7719 21.6284 25.4118 19.5739 26.2565 17.2495C27.0643 15.0253 27.1474 12.5486 26.3976 10.2107L24.951 11.0459L25.5942 7.15112L29.2888 8.54145L27.8284 9.38462L27.8295 9.38659Z"\n fill="black"\n />\n <path\n fillRule="evenodd"\n clipRule="evenodd"\n d="M16.3594 8.08301C17.1842 8.16959 17.8382 8.41741 18.3281 8.8252C18.8135 9.2331 19.1263 9.78023 19.2607 10.4639L17.2939 10.6875C17.1732 10.1497 16.8607 9.78518 16.3594 9.59375V12.2617C17.6035 12.5557 18.4514 12.9408 18.9004 13.4102C19.3516 13.8819 19.5771 14.4863 19.5771 15.2246C19.5771 16.0494 19.2949 16.7425 18.7275 17.3076C18.1601 17.8728 17.3712 18.2233 16.3594 18.3623V19.6387H15.2334V18.3779C14.3448 18.2822 13.6246 17.9934 13.0664 17.5059C12.5081 17.0182 12.155 16.3275 12 15.4365L14.0127 15.2266C14.0947 15.5912 14.2497 15.9036 14.4775 16.168C14.7053 16.4321 14.9555 16.6218 15.2334 16.7402V13.8799C14.2264 13.6247 13.4906 13.2395 13.0234 12.7246C12.554 12.2073 12.3164 11.5801 12.3164 10.8418C12.3165 10.0946 12.5834 9.46575 13.1143 8.95996C13.6452 8.45184 14.3516 8.16053 15.2334 8.08301V7C15.6731 7 15.9197 7 16.3594 7V8.08301ZM16.3574 16.8535H16.3594C16.7467 16.7783 17.0661 16.6149 17.3076 16.3643C17.5537 16.1113 17.6738 15.8147 17.6738 15.4707C17.6738 15.1677 17.5715 14.9033 17.3643 14.6846C17.1615 14.4636 16.8267 14.2943 16.3574 14.1758V16.8535ZM15.2334 9.56836C14.9304 9.66408 14.6911 9.82132 14.5156 10.04C14.3379 10.2588 14.252 10.5004 14.252 10.7646C14.252 11.0062 14.3314 11.2301 14.4932 11.4375C14.655 11.6424 14.9038 11.8113 15.2363 11.9365V9.56836H15.2334Z"\n fill="black"\n />\n <path\n d="M2.71127 18.5075L4.18352 17.6575C3.21672 14.9028 3.27173 11.9581 4.21167 9.31563C5.17535 6.60942 7.06671 4.22018 9.74281 2.67513C12.0972 1.31581 14.709 0.807832 17.2232 1.05612C19.8041 1.3106 22.2798 2.36266 24.2693 4.10853L23.7361 4.71636L23.2029 5.32418C23.1532 5.27918 23.1016 5.23531 23.0511 5.19342C21.3484 3.75295 19.2504 2.88549 17.0678 2.66937C14.8802 2.45355 12.6065 2.89529 10.5561 4.07914C8.2194 5.42821 6.56974 7.50687 5.7328 9.85834C4.94555 12.068 4.87307 14.5175 5.61235 16.8326L6.69304 16.2087L6.98491 16.4014L6.40585 19.8979L2.71127 18.5075Z"\n fill="black"\n />\n <path\n d="M23.0996 15.7998L31.0811 30.7578L30.9785 30.9316H15.0215L14.918 30.7578L22.9258 15.7998H23.0996Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="22.25" y="21" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M24 28C24 27.4477 23.5523 27 23 27C22.4479 27.0002 22 27.4478 22 28C22 28.5522 22.4479 28.9998 23 29C23.5523 29 24 28.5523 24 28Z"\n fill="black"\n />\n </svg>';
|
|
3549
|
+
case 3:
|
|
3550
|
+
return '<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clipPath="url(#clip0_1_5398)">\n <path\n d="M24.9056 7.60146L34.4998 10.1722L31.9299 19.7659L13.7653 30.2532L6.7419 18.0883L24.9056 7.60146Z"\n stroke="black"\n strokeWidth="1.75"\n />\n <path\n d="M13.0913 19.7635L15.4762 23.8942L14.6279 24.384L12.2431 20.2533L13.0913 19.7635ZM14.3623 19.0297L14.7473 19.6964L11.3769 21.6423L10.992 20.9756L14.3623 19.0297ZM14.8475 18.7496L16.388 17.8602C16.7038 17.6778 17.0025 17.5684 17.2841 17.532C17.5675 17.4944 17.8242 17.5328 18.0542 17.6472C18.2841 17.7616 18.4772 17.954 18.6333 18.2244C18.7611 18.4457 18.833 18.6576 18.8491 18.8602C18.866 19.0598 18.8369 19.2518 18.7619 19.4364C18.6876 19.6179 18.5778 19.7923 18.4322 19.9596L18.2446 20.257L16.9055 21.0301L16.5166 20.3695L17.5124 19.7946C17.6618 19.7083 17.7704 19.6103 17.8381 19.5006C17.9059 19.3909 17.9371 19.2745 17.9317 19.1516C17.9281 19.0275 17.8903 18.9031 17.8183 18.7782C17.7418 18.6458 17.6512 18.5456 17.5463 18.4775C17.4415 18.4095 17.3242 18.3788 17.1944 18.3857C17.0647 18.3925 16.9242 18.4395 16.7729 18.5269L16.0835 18.9249L18.0834 22.3889L17.2323 22.8803L14.8475 18.7496ZM19.5417 21.547L17.5367 20.2496L18.4328 19.7247L20.4294 20.9815L20.4523 21.0212L19.5417 21.547ZM19.4746 16.0781L21.8595 20.2088L21.0112 20.6986L18.6264 16.5679L19.4746 16.0781ZM22.4103 15.3251L23.2638 19.398L22.3588 19.9205L21.5088 14.9037L22.0847 14.5712L22.4103 15.3251ZM25.3207 18.2105L22.2174 15.4365L21.7187 14.7825L22.3003 14.4467L26.2285 17.6864L25.3207 18.2105ZM24.3818 16.7023L24.7668 17.369L22.5851 18.6286L22.2002 17.9619L24.3818 16.7023ZM28.8837 15.2683L29.267 15.9321L27.1874 17.1327L26.8041 16.4689L28.8837 15.2683ZM25.0778 12.8432L27.4626 16.9739L26.6115 17.4652L24.2267 13.3345L25.0778 12.8432Z"\n fill="black"\n />\n <circle cx="30.1049" cy="12.7084" r="1.12128" transform="rotate(15 30.1049 12.7084)" fill="black" />\n </g>\n <path\n d="M27.6201 19.7998L35.6016 34.7578L35.499 34.9316H19.542L19.4385 34.7578L27.4463 19.7998H27.6201Z"\n fill="#FFC000"\n stroke="black"\n strokeWidth="1.6"\n />\n <rect x="26.7705" y="25" width="1.5" height="5" rx="0.75" fill="black" />\n <path\n d="M28.5205 32C28.5205 31.4477 28.0728 31 27.5205 31C26.9684 31.0002 26.5205 31.4478 26.5205 32C26.5205 32.5522 26.9684 32.9998 27.5205 33C28.0728 33 28.5205 32.5523 28.5205 32Z"\n fill="black"\n />\n <defs>\n <clipPath id="clip0_1_5398">\n <rect width="30" height="31.1538" fill="white" transform="translate(8.06323) rotate(15)" />\n </clipPath>\n </defs>\n </svg>';
|
|
3551
|
+
}
|
|
3552
|
+
}
|
|
3443
3553
|
saveToSessionStorage(e2, t2) {
|
|
3444
3554
|
sessionStorage.setItem(e2, t2);
|
|
3445
3555
|
}
|
|
@@ -3464,13 +3574,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3464
3574
|
constructor(e2, t2) {
|
|
3465
3575
|
this.url = e2, this.getPersonalAccessToken = t2;
|
|
3466
3576
|
}
|
|
3467
|
-
}, e.ReportSourceOptions = _e, e.RequestError =
|
|
3577
|
+
}, e.ReportSourceOptions = _e, e.RequestError = m, e.SearchInfo = class {
|
|
3468
3578
|
constructor() {
|
|
3469
3579
|
this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
|
|
3470
3580
|
}
|
|
3471
|
-
}, e.SearchManager = class extends
|
|
3581
|
+
}, e.SearchManager = class extends B {
|
|
3472
3582
|
constructor(e2, t2) {
|
|
3473
|
-
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer =
|
|
3583
|
+
super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = me(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
|
|
3474
3584
|
}
|
|
3475
3585
|
search(e2) {
|
|
3476
3586
|
this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
|
|
@@ -3479,15 +3589,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3479
3589
|
this.isActive = false, this.clearColoredItems(), this.searchResults = [];
|
|
3480
3590
|
}
|
|
3481
3591
|
highlightSearchItem(t2) {
|
|
3482
|
-
t2 && (this.currentHighlightedElement && (
|
|
3592
|
+
t2 && (this.currentHighlightedElement && (se(this.currentHighlightedElement, Je), re(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));
|
|
3483
3593
|
}
|
|
3484
3594
|
navigateToPage(e2) {
|
|
3485
3595
|
this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
|
|
3486
3596
|
}
|
|
3487
3597
|
colorPageElements(e2) {
|
|
3488
3598
|
e2 && 0 !== e2.length && (e2.forEach((e3) => {
|
|
3489
|
-
let t2 =
|
|
3490
|
-
t2 && (
|
|
3599
|
+
let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
|
|
3600
|
+
t2 && (re(t2, je), this.highlightedElements.push(t2));
|
|
3491
3601
|
}), this.highlightItem(this.pendingHighlightItem));
|
|
3492
3602
|
}
|
|
3493
3603
|
highlightItem(e2) {
|
|
@@ -3495,13 +3605,13 @@ ${e3.text} (${e3.id})`;
|
|
|
3495
3605
|
let t2 = this.highlightedElements.find(function(t3) {
|
|
3496
3606
|
return t3.dataset.searchId === e2.id;
|
|
3497
3607
|
});
|
|
3498
|
-
t2 && (this.currentHighlightedElement = t2,
|
|
3608
|
+
t2 && (this.currentHighlightedElement = t2, se(t2, je), re(t2, Je));
|
|
3499
3609
|
}
|
|
3500
3610
|
}
|
|
3501
3611
|
clearColoredItems() {
|
|
3502
3612
|
this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
|
|
3503
|
-
|
|
3504
|
-
}), this.currentHighlightedElement &&
|
|
3613
|
+
se(e2, je);
|
|
3614
|
+
}), this.currentHighlightedElement && se(this.currentHighlightedElement, Je), this.highlightedElements = [], this.currentHighlightedElement = null;
|
|
3505
3615
|
}
|
|
3506
3616
|
applySearchColors() {
|
|
3507
3617
|
this.isActive && this.colorPageElements(this.searchResults);
|
|
@@ -3513,23 +3623,23 @@ ${e3.text} (${e3.id})`;
|
|
|
3513
3623
|
constructor() {
|
|
3514
3624
|
this.description = "", this.id = "", this.page = 0;
|
|
3515
3625
|
}
|
|
3516
|
-
}, e.ServiceClient = class {
|
|
3626
|
+
}, e.SendEmailDocumentReadyEventArgs = p, e.SendEmailStartedEventArgs = u, e.ServiceClient = class {
|
|
3517
3627
|
constructor(e2) {
|
|
3518
3628
|
this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
|
|
3519
3629
|
}
|
|
3520
3630
|
getConnectionConfig(e2) {
|
|
3521
|
-
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new
|
|
3631
|
+
return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new R(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new E(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new E("", () => Promise.resolve(e2.serverShareToken)) : new T(e2.serviceUrl);
|
|
3522
3632
|
}
|
|
3523
3633
|
getAuthStrategy(t2) {
|
|
3524
3634
|
switch (t2.authType) {
|
|
3525
3635
|
case e.AuthType.None:
|
|
3526
|
-
return new
|
|
3636
|
+
return new y();
|
|
3527
3637
|
case e.AuthType.Basic:
|
|
3528
|
-
return new
|
|
3638
|
+
return new S(t2);
|
|
3529
3639
|
case e.AuthType.PersonalToken:
|
|
3530
|
-
return new
|
|
3640
|
+
return new I(t2);
|
|
3531
3641
|
default:
|
|
3532
|
-
return new
|
|
3642
|
+
return new y();
|
|
3533
3643
|
}
|
|
3534
3644
|
}
|
|
3535
3645
|
validateClientID(e2) {
|
|
@@ -3538,15 +3648,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3538
3648
|
}
|
|
3539
3649
|
authenticatedGet(e2) {
|
|
3540
3650
|
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) {
|
|
3541
|
-
return fetch(e3, { headers:
|
|
3651
|
+
return fetch(e3, { headers: v(t3) }).then(P);
|
|
3542
3652
|
}(e2, t2.access_token || t2.accessToken));
|
|
3543
3653
|
}
|
|
3544
3654
|
authenticatedPost(e2, t2) {
|
|
3545
|
-
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)) :
|
|
3655
|
+
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)) : C(e2, t2, i2.access_token || i2.accessToken));
|
|
3546
3656
|
}
|
|
3547
3657
|
authenticatedDelete(e2) {
|
|
3548
3658
|
return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
|
|
3549
|
-
return fetch(e3, { method: "DELETE", headers:
|
|
3659
|
+
return fetch(e3, { method: "DELETE", headers: v(t3) }).then(P);
|
|
3550
3660
|
}(e2, t2.access_token || t2.accessToken));
|
|
3551
3661
|
}
|
|
3552
3662
|
login() {
|
|
@@ -3630,15 +3740,15 @@ ${e3.text} (${e3.id})`;
|
|
|
3630
3740
|
return e2.clientSessionTimeout;
|
|
3631
3741
|
});
|
|
3632
3742
|
}
|
|
3633
|
-
}, e.TooltipEventArgs =
|
|
3743
|
+
}, e.TooltipEventArgs = f, e.addClass = re, e.appendHtml = ge, e.createElement = ne, e.debounce = Ce, e.each = Te, e.escapeHtml = ce, e.findElement = me, e.getColorAlphaValue = pe, e.getElementAttributeValue = ve, e.getElementScrollParent = Pe, e.getOffsetParent = ae, e.hasClass = oe, e.isArray = Ae, e.isExceptionOfType = Se, e.isInternalServerError = we, e.isInvalidClientException = Ie, e.isInvalidParameterException = be, e.isRgbColor = ue, e.keepElementInView = function(e2) {
|
|
3634
3744
|
if (!e2)
|
|
3635
3745
|
return;
|
|
3636
|
-
let t2 =
|
|
3746
|
+
let t2 = Pe(e2);
|
|
3637
3747
|
if (!t2)
|
|
3638
3748
|
return;
|
|
3639
3749
|
let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
|
|
3640
3750
|
i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
|
|
3641
|
-
}, e.parseToLocalDate =
|
|
3751
|
+
}, e.parseToLocalDate = Me, e.prependHtml = fe, e.removeClass = se, e.reportSourcesAreEqual = function(e2) {
|
|
3642
3752
|
const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
|
|
3643
3753
|
if (t2 && i2 && t2.report === i2.report) {
|
|
3644
3754
|
let e3 = "";
|
|
@@ -3647,7 +3757,7 @@ ${e3.text} (${e3.id})`;
|
|
|
3647
3757
|
return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
|
|
3648
3758
|
}
|
|
3649
3759
|
return false;
|
|
3650
|
-
}, e.scaleElement =
|
|
3760
|
+
}, e.scaleElement = he, e.stringFormat = Le, e.throttle = ye, e.toPixel = le, e.toRgbColor = de, e.tryParseFloat = Ee, e.tryParseInt = Re;
|
|
3651
3761
|
});
|
|
3652
3762
|
})(dist, dist.exports);
|
|
3653
3763
|
var distExports = dist.exports;
|
|
@@ -4705,6 +4815,7 @@ ${e3.text} (${e3.id})`;
|
|
|
4705
4815
|
ariaLabelDocumentMap: "Document map area",
|
|
4706
4816
|
ariaLabelDocumentMapSplitter: "Document map area splitbar.",
|
|
4707
4817
|
ariaLabelParametersAreaSplitter: "Parameters area splitbar.",
|
|
4818
|
+
ariaLabelParametersArea: "Parameters area. Contains {0} parameters.",
|
|
4708
4819
|
ariaLabelPagesArea: "Report contents area",
|
|
4709
4820
|
ariaLabelSearchDialogArea: "Search area",
|
|
4710
4821
|
ariaLabelAiPromptDialogArea: "AI prompt area",
|
|
@@ -6687,7 +6798,8 @@ ${e3.text} (${e3.id})`;
|
|
|
6687
6798
|
if (this.parameters.length > 0) {
|
|
6688
6799
|
this._parametersWrapper.append(...$tempContainer.children().get());
|
|
6689
6800
|
if (this.enableAccessibility) {
|
|
6690
|
-
|
|
6801
|
+
var renderedCount = this._parametersWrapper.children.length;
|
|
6802
|
+
this._parametersWrapper.setAttribute("aria-label", stringFormat(stringResources.ariaLabelParametersArea, [renderedCount]));
|
|
6691
6803
|
}
|
|
6692
6804
|
}
|
|
6693
6805
|
}
|
|
@@ -7279,11 +7391,11 @@ ${e3.text} (${e3.id})`;
|
|
|
7279
7391
|
navigatable: true,
|
|
7280
7392
|
dataSource: [],
|
|
7281
7393
|
contentElement: "",
|
|
7282
|
-
template: `
|
|
7394
|
+
template: (data) => `
|
|
7283
7395
|
<div class="k-list-item !k-align-items-start">
|
|
7284
|
-
<span class="k-list-item-text"
|
|
7396
|
+
<span class="k-list-item-text">${kendo.htmlEncode(data.description)}</span>
|
|
7285
7397
|
<span class="k-flex"></span>
|
|
7286
|
-
<span class="k-flex-none">${stringResources.searchDialogPageText}
|
|
7398
|
+
<span class="k-flex-none">${stringResources.searchDialogPageText} ${kendo.htmlEncode(data.page)}</span>
|
|
7287
7399
|
</div>
|
|
7288
7400
|
`.trim(),
|
|
7289
7401
|
change: (event) => {
|
|
@@ -9090,7 +9202,7 @@ ${e3.text} (${e3.id})`;
|
|
|
9090
9202
|
if (!validateOptions(options)) {
|
|
9091
9203
|
return;
|
|
9092
9204
|
}
|
|
9093
|
-
var version = "20.
|
|
9205
|
+
var version = "20.1.26.520";
|
|
9094
9206
|
options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
|
|
9095
9207
|
settings = new ReportViewerSettings(
|
|
9096
9208
|
persistanceKey,
|