@progress/telerik-jquery-report-viewer 25.25.211 → 26.25.521

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.
Files changed (103) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/accessibility.js +22 -64
  3. package/dist/cjs/aiPrompt.js +311 -0
  4. package/dist/cjs/base-component.js +8 -11
  5. package/dist/cjs/binder.js +12 -12
  6. package/dist/cjs/command.js +44 -25
  7. package/dist/cjs/commandSet.js +78 -53
  8. package/dist/cjs/components/button.js +41 -0
  9. package/dist/cjs/components/toggle-button.js +47 -0
  10. package/dist/cjs/constants.js +22 -0
  11. package/dist/cjs/documentMapArea.js +114 -93
  12. package/dist/cjs/event-emitter.js +2 -8
  13. package/dist/cjs/history.js +13 -12
  14. package/dist/cjs/index.js +4 -12
  15. package/dist/cjs/mainMenu.js +38 -28
  16. package/dist/cjs/mem-storage.js +7 -13
  17. package/dist/cjs/notificationService.js +128 -0
  18. package/dist/cjs/parameterValidators.js +26 -25
  19. package/dist/cjs/parameters.js +180 -161
  20. package/dist/cjs/parametersArea.js +306 -298
  21. package/dist/cjs/perspectives.js +23 -27
  22. package/dist/cjs/report-viewer/report-viewer-settings.js +4 -10
  23. package/dist/cjs/reportViewer.js +441 -190
  24. package/dist/cjs/search.js +218 -328
  25. package/dist/cjs/sendEmail.js +259 -264
  26. package/dist/cjs/service-client-sentinel.js +1 -1
  27. package/dist/cjs/sideMenu.js +20 -16
  28. package/dist/cjs/sr.js +9 -5
  29. package/dist/cjs/template-cache.js +2 -2
  30. package/dist/cjs/toolbar/button.js +18 -0
  31. package/dist/cjs/toolbar/link-button.js +6 -12
  32. package/dist/cjs/toolbar/page-count-label.js +1 -1
  33. package/dist/cjs/toolbar/page-number-input.js +16 -14
  34. package/dist/cjs/toolbar.js +186 -0
  35. package/dist/cjs/touch.js +8 -8
  36. package/dist/cjs/uiController.js +70 -57
  37. package/dist/cjs/utils.js +20 -207
  38. package/dist/font/font-icons.css +25 -222
  39. package/dist/font/font-icons.min.css +3 -3
  40. package/dist/js/telerikReportViewer.js +8173 -9110
  41. package/dist/js/telerikReportViewer.kendo.js +105616 -60642
  42. package/dist/js/telerikReportViewer.kendo.min.js +2 -2
  43. package/dist/js/telerikReportViewer.min.js +1 -1
  44. package/dist/js/telerikReportViewer.stringResources.js +9 -5
  45. package/dist/styles/telerikReportViewer.css +3 -3
  46. package/dist/styles/telerikReportViewer.min.css +3 -3
  47. package/dist/templates/telerikReportViewerTemplate.html +299 -238
  48. package/package.json +2 -3
  49. package/dist/cjs/controller.js +0 -1226
  50. package/dist/cjs/kendo-jquery.js +0 -4
  51. package/dist/cjs/pagesArea.js +0 -625
  52. package/dist/cjs/print.js +0 -165
  53. package/dist/cjs/scroll.js +0 -535
  54. package/dist/cjs/serviceClient.js +0 -311
  55. package/dist/cjs/telerikReportViewer.kendo.js +0 -60196
  56. package/dist/cjs/telerikReportViewer.kendo.min.js +0 -19776
  57. package/dist/cjs/uiFreezeCoordinator.js +0 -282
  58. package/dist/es/accessibility.js +0 -204
  59. package/dist/es/base-component.js +0 -22
  60. package/dist/es/binder.js +0 -75
  61. package/dist/es/command.js +0 -28
  62. package/dist/es/commandSet.js +0 -163
  63. package/dist/es/controller.js +0 -1222
  64. package/dist/es/documentMapArea.js +0 -161
  65. package/dist/es/domUtils.js +0 -43
  66. package/dist/es/enums.js +0 -41
  67. package/dist/es/event-emitter.js +0 -127
  68. package/dist/es/events.js +0 -20
  69. package/dist/es/globalSettings.js +0 -5
  70. package/dist/es/history.js +0 -131
  71. package/dist/es/index.js +0 -25
  72. package/dist/es/jqueryThrottleDebounce.js +0 -46
  73. package/dist/es/kendo-jquery.js +0 -1
  74. package/dist/es/mainMenu.js +0 -319
  75. package/dist/es/mem-storage.js +0 -40
  76. package/dist/es/pagesArea.js +0 -621
  77. package/dist/es/parameterValidators.js +0 -160
  78. package/dist/es/parameters.js +0 -916
  79. package/dist/es/parametersArea.js +0 -493
  80. package/dist/es/perspectives.js +0 -134
  81. package/dist/es/print.js +0 -161
  82. package/dist/es/report-viewer/report-viewer-settings.js +0 -134
  83. package/dist/es/reportViewer.js +0 -666
  84. package/dist/es/scroll.js +0 -531
  85. package/dist/es/search.js +0 -580
  86. package/dist/es/sendEmail.js +0 -388
  87. package/dist/es/service-client-sentinel.js +0 -49
  88. package/dist/es/serviceClient.js +0 -307
  89. package/dist/es/sideMenu.js +0 -212
  90. package/dist/es/sr.js +0 -164
  91. package/dist/es/stringResources.js +0 -7
  92. package/dist/es/telerikReportViewer.kendo.js +0 -60194
  93. package/dist/es/telerikReportViewer.kendo.min.js +0 -19774
  94. package/dist/es/template-cache.js +0 -35
  95. package/dist/es/toolbar/link-button.js +0 -38
  96. package/dist/es/toolbar/page-count-label.js +0 -14
  97. package/dist/es/toolbar/page-number-input.js +0 -60
  98. package/dist/es/touch.js +0 -82
  99. package/dist/es/uiController.js +0 -138
  100. package/dist/es/uiFreezeCoordinator.js +0 -278
  101. package/dist/es/utils.js +0 -444
  102. package/dist/templates/telerikReportViewerTemplate-FA.html +0 -317
  103. /package/dist/font/{ReportingIcons-19.0.25.211.ttf → ReportingIcons-19.1.25.521.ttf} +0 -0
package/dist/es/utils.js DELETED
@@ -1,444 +0,0 @@
1
- var stringFormatRegExp = /{(\w+?)}/g;
2
- var specialKeys = {
3
- DELETE: 46,
4
- BACKSPACE: 8,
5
- TAB: 9,
6
- ESC: 27,
7
- LEFT: 37,
8
- UP: 38,
9
- RIGHT: 39,
10
- DOWN: 40,
11
- END: 35,
12
- HOME: 36
13
- };
14
- function isSpecialKey() {
15
- var userAgent = window.navigator.userAgent.toLowerCase();
16
- if (userAgent.indexOf("firefox") > -1) {
17
- var specialKeysArray = Object.keys(specialKeys);
18
- var specialKeysLength = specialKeysArray.length;
19
- return function(keyCode) {
20
- for (var i = 0; i < specialKeysLength; i++) {
21
- if (specialKeys[specialKeysArray[i]] == keyCode) {
22
- return true;
23
- }
24
- }
25
- };
26
- }
27
- return function(keyCode) {
28
- return false;
29
- };
30
- }
31
- function toXhrErrorData(xhr, status, error) {
32
- return {
33
- xhr,
34
- status,
35
- error
36
- };
37
- }
38
- function rectangle(left, top, width, height) {
39
- return {
40
- left,
41
- top,
42
- width,
43
- height,
44
- right: function() {
45
- return left + width;
46
- },
47
- bottom: function() {
48
- return top + height;
49
- },
50
- union: function(other) {
51
- var newLeft = Math.min(left, other.left);
52
- var newTop = Math.min(top, other.top);
53
- var newWidth = Math.max(this.right(), other.right()) - newLeft;
54
- var newHeight = Math.max(this.bottom(), other.bottom()) - newTop;
55
- return rectangle(
56
- newLeft,
57
- newTop,
58
- newWidth,
59
- newHeight
60
- );
61
- }
62
- };
63
- }
64
- function generateGuidString() {
65
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
66
- var r = Math.random() * 16 | 0;
67
- var v = c == "x" ? r : r & 3 | 8;
68
- return v.toString(16);
69
- });
70
- }
71
- function trim(s, charlist) {
72
- return rTrim(lTrim(s, charlist), charlist);
73
- }
74
- function replaceAll(str, find, replace) {
75
- return str.replace(new RegExp(find, "g"), replace);
76
- }
77
- function lTrim(s, charlist) {
78
- if (charlist === void 0) {
79
- charlist = "s";
80
- }
81
- return s.replace(new RegExp("^[" + charlist + "]+"), "");
82
- }
83
- function rTrim(s, charlist) {
84
- if (charlist === void 0) {
85
- charlist = "s";
86
- }
87
- return s.replace(new RegExp("[" + charlist + "]+$"), "");
88
- }
89
- function stringFormat(template, data) {
90
- var isArray2 = Array.isArray(data);
91
- return template.replace(stringFormatRegExp, function($0, $1) {
92
- return data[isArray2 ? parseInt($1) : $1];
93
- });
94
- }
95
- function escapeHtml(str) {
96
- return $("<div>").text(str).html();
97
- }
98
- function tryParseInt(value) {
99
- if (/^(\-|\+)?([0-9]+)$/.test(value)) {
100
- return Number(value);
101
- }
102
- return NaN;
103
- }
104
- function tryParseFloat(value) {
105
- if (/^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(value)) {
106
- return Number(value);
107
- }
108
- return NaN;
109
- }
110
- function parseToLocalDate(date) {
111
- if (date instanceof Date)
112
- return date;
113
- var isUtc = /Z|[\+\-]\d\d:?\d\d/i.test(date);
114
- if (!isUtc) {
115
- date += "Z";
116
- }
117
- return new Date(date);
118
- }
119
- function adjustTimezone(date) {
120
- return new Date(
121
- Date.UTC(
122
- date.getFullYear(),
123
- date.getMonth(),
124
- date.getDate(),
125
- date.getHours(),
126
- date.getMinutes(),
127
- date.getSeconds(),
128
- date.getMilliseconds()
129
- )
130
- );
131
- }
132
- function unadjustTimezone(date) {
133
- return new Date(
134
- date.getUTCFullYear(),
135
- date.getUTCMonth(),
136
- date.getUTCDate(),
137
- date.getUTCHours(),
138
- date.getUTCMinutes(),
139
- date.getUTCSeconds(),
140
- date.getUTCMilliseconds()
141
- );
142
- }
143
- function areEqual(v1, v2) {
144
- if (v1 instanceof Date && v2 instanceof Date) {
145
- if (v1.getTime() !== v2.getTime()) {
146
- return false;
147
- }
148
- } else if (v1 !== v2) {
149
- return false;
150
- }
151
- return true;
152
- }
153
- function reportSourcesAreEqual(rs1, rs2) {
154
- if (rs1 && rs2 && rs1.report === rs2.report) {
155
- var params1String = "";
156
- if (rs1.parameters) {
157
- params1String = JSON.stringify(rs1.parameters);
158
- }
159
- var params2String = "";
160
- if (rs2.parameters) {
161
- params2String = JSON.stringify(rs2.parameters);
162
- }
163
- return params1String === params2String;
164
- }
165
- return false;
166
- }
167
- function areEqualArrays(array1, array2) {
168
- if (array1 === null) {
169
- if (array2 !== null) {
170
- return false;
171
- }
172
- return true;
173
- }
174
- if (array2 === null) {
175
- return false;
176
- }
177
- if (array1.length !== array2.length) {
178
- return false;
179
- }
180
- for (var j = array1.length - 1; j >= 0; j--) {
181
- if (!areEqual(array1[j], array2[j])) {
182
- return false;
183
- }
184
- }
185
- return true;
186
- }
187
- function isSvgSupported() {
188
- var matches = /Version\/(\d+.\d+.\d+) Safari/.exec(navigator.userAgent);
189
- if (matches && matches.length > 1) {
190
- var version = parseFloat(matches[1]);
191
- return version >= 6;
192
- }
193
- return true;
194
- }
195
- function isInternalServerError(error) {
196
- if (error) {
197
- return replaceAll(error, " ", "").toLowerCase() === "internalservererror";
198
- }
199
- return false;
200
- }
201
- function isSystemArgumentException(xhr) {
202
- var exceptionShortName = "ArgumentException";
203
- var exceptionInstance = getExceptionInstance(xhr);
204
- return isExceptionInstanceOfType(exceptionInstance, exceptionShortName, "System." + exceptionShortName);
205
- }
206
- function isInvalidClientException(xhr) {
207
- var exceptionShortName = "InvalidClientException";
208
- var exceptionInstance = getExceptionInstance(xhr);
209
- return isExceptionInstanceOfType(exceptionInstance, exceptionShortName, "Telerik.Reporting.Services.Engine." + exceptionShortName);
210
- }
211
- function isApplicationException(xhr) {
212
- return isApplicationExceptionInstance(getExceptionInstance(xhr));
213
- }
214
- function isApplicationExceptionInstance(exception) {
215
- var exceptionShortName = "DrawingFactoryUnavailableException";
216
- return isExceptionInstanceOfType(exception, exceptionShortName, "Telerik.Drawing.Contract." + exceptionShortName);
217
- }
218
- function isExceptionOfType(xhr, exceptionType) {
219
- return isExceptionInstanceOfType(getExceptionInstance(xhr), exceptionType, exceptionType);
220
- }
221
- function isExceptionInstanceOfType(exceptionInstance, exceptionTypeShortName, exceptionTypeFullName) {
222
- return exceptionInstance && exceptionInstance.exceptionType && exceptionTypeNamesMatch(exceptionInstance.exceptionType, exceptionTypeShortName, exceptionTypeFullName);
223
- }
224
- function exceptionTypeNamesMatch(instanceTypeName, exceptionTypeShortName, exceptionTypeFullName) {
225
- return instanceTypeName && (instanceTypeName === exceptionTypeFullName || instanceTypeName.endsWith(exceptionTypeShortName));
226
- }
227
- function parseJSON(json) {
228
- try {
229
- return JSON.parse(
230
- json,
231
- function(key, value) {
232
- if (key && value) {
233
- var firstChar = key.charAt(0);
234
- if (firstChar === firstChar.toUpperCase()) {
235
- var newPropertyName = firstChar.toLowerCase() + key.slice(1);
236
- this[newPropertyName] = value;
237
- }
238
- }
239
- return value;
240
- }
241
- );
242
- } catch (e) {
243
- return null;
244
- }
245
- }
246
- function getExceptionInstance(xhr) {
247
- if (!xhr || !xhr.responseText) {
248
- return false;
249
- }
250
- return parseJSON(xhr.responseText);
251
- }
252
- function extend() {
253
- var copy;
254
- var name;
255
- var options;
256
- var target;
257
- var i = 0;
258
- var length = arguments.length;
259
- target = length > 1 ? arguments[i++] || {} : {};
260
- for (; i < length; i++) {
261
- if ((options = arguments[i]) != null) {
262
- for (name in options) {
263
- target[name];
264
- copy = options[name];
265
- if (target === copy) {
266
- continue;
267
- }
268
- if (copy !== void 0) {
269
- target[name] = copy;
270
- }
271
- }
272
- }
273
- }
274
- return target;
275
- }
276
- function each(obj, callback) {
277
- var length;
278
- var i = 0;
279
- if (isArray(obj)) {
280
- length = obj.length;
281
- for (; i < length; i++) {
282
- if (callback.call(obj[i], i, obj[i]) === false) {
283
- break;
284
- }
285
- }
286
- } else {
287
- for (i in obj) {
288
- if (callback.call(obj[i], i, obj[i]) === false) {
289
- break;
290
- }
291
- }
292
- }
293
- return obj;
294
- }
295
- function selector() {
296
- return document.querySelectorAll(arguments[0]);
297
- }
298
- function isArray(obj) {
299
- if (Array.isArray(obj))
300
- return true;
301
- var length = Boolean(obj) && "length" in obj && obj.length;
302
- if (typeof length === "number") {
303
- return true;
304
- }
305
- return false;
306
- }
307
- function loadScriptWithCallback(src, done, version) {
308
- var js = document.createElement("script");
309
- js.src = src;
310
- js.onload = function() {
311
- done(version);
312
- };
313
- js.onerror = function() {
314
- logError(new Error("Failed to load script " + src));
315
- };
316
- document.head.appendChild(js);
317
- }
318
- function loadScript(url) {
319
- var ajaxOptions = {
320
- dataType: "script",
321
- cache: true
322
- };
323
- return $ajax(url, ajaxOptions);
324
- }
325
- function filterUniqueLastOccurrence(array) {
326
- function onlyLastUnique(value, index, self) {
327
- return self.lastIndexOf(value) === index;
328
- }
329
- return array.filter(onlyLastUnique);
330
- }
331
- function logError(error) {
332
- var console = window.console;
333
- if (console && console.error) {
334
- console.error(error);
335
- }
336
- }
337
- function findElement(selectorChain) {
338
- if (selectorChain.constructor != Array) {
339
- selectorChain = [selectorChain];
340
- }
341
- var $area = $(selectorChain[0]);
342
- for (var i = 1; i < selectorChain.length; i++) {
343
- $area = $area.find(selectorChain[i]);
344
- }
345
- return $area;
346
- }
347
- function toRgbColor(hexColor) {
348
- if (hexColor && hexColor.length < 6) {
349
- var index = 1;
350
- var hexParts = hexColor.split("");
351
- if (hexParts[0] !== "#") {
352
- index = 0;
353
- }
354
- for (index; index < hexParts.length; index++) {
355
- hexParts[index] = hexParts[index] + hexParts[index];
356
- }
357
- hexColor = hexParts.join("");
358
- }
359
- var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor);
360
- return result ? parseInt(result[1], 16) + ", " + parseInt(result[2], 16) + ", " + parseInt(result[3], 16) : null;
361
- }
362
- function isRgbColor(color) {
363
- if (!color) {
364
- return false;
365
- }
366
- return color.indexOf(",") > -1 ? true : false;
367
- }
368
- function getColorAlphaValue(color) {
369
- if (color.toLowerCase() === "transparent") {
370
- return 0;
371
- }
372
- if (!isRgbColor(color)) {
373
- return 1;
374
- }
375
- if (color.indexOf("#") !== -1) {
376
- color = toRgbColor(color);
377
- }
378
- var colorComponents = color.split(",").map(function(c) {
379
- return c.trim();
380
- });
381
- var alpha = colorComponents.length === 4 ? parseFloat((parseFloat(colorComponents[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
382
- return alpha;
383
- }
384
- function $ajax(url, ajaxSettings) {
385
- return new Promise(function(resolve, reject) {
386
- $.ajax(url, ajaxSettings).done(function(data) {
387
- return resolve(data);
388
- }).fail(function(xhr, status, error) {
389
- reject(toXhrErrorData(xhr, status, error));
390
- });
391
- });
392
- }
393
- function type(obj) {
394
- return Object.prototype.toString.call(obj).slice(8, -1);
395
- }
396
- function isEqual(a, b) {
397
- if (a === b) {
398
- return true;
399
- }
400
- if (a !== a && b !== b) {
401
- return true;
402
- }
403
- if (a !== a && b === b || a === a && b !== b) {
404
- return false;
405
- }
406
- const typeA = type(a);
407
- const typeB = type(b);
408
- if (typeA !== typeB) {
409
- return false;
410
- }
411
- if (typeA === "Array") {
412
- if (a.length !== b.length) {
413
- return false;
414
- }
415
- const length = a.length;
416
- for (let i = 0; i < length; i++) {
417
- if (!isEqual(a[i], b[i])) {
418
- return false;
419
- }
420
- }
421
- return true;
422
- }
423
- if (typeA === "Object") {
424
- const keysA = Object.keys(a);
425
- const keysB = Object.keys(b);
426
- if (keysA.length !== keysB.length) {
427
- return false;
428
- }
429
- const length = keysA.length;
430
- for (let i = 0; i < length; i++) {
431
- const key = keysA[i];
432
- if (!isEqual(a[key], b[key])) {
433
- return false;
434
- }
435
- }
436
- return true;
437
- }
438
- if (typeA === "Date") {
439
- return a.getTime() === b.getTime();
440
- }
441
- return false;
442
- }
443
-
444
- export { $ajax, adjustTimezone, areEqual, areEqualArrays, each, escapeHtml, exceptionTypeNamesMatch, extend, filterUniqueLastOccurrence, findElement, generateGuidString, getColorAlphaValue, getExceptionInstance, isApplicationException, isApplicationExceptionInstance, isArray, isEqual, isExceptionOfType, isInternalServerError, isInvalidClientException, isRgbColor, isSpecialKey, isSvgSupported, isSystemArgumentException, lTrim, loadScript, loadScriptWithCallback, logError, parseJSON, parseToLocalDate, rTrim, rectangle, replaceAll, reportSourcesAreEqual, selector, stringFormat, toRgbColor, trim, tryParseFloat, tryParseInt, type, unadjustTimezone };