@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
@@ -1,311 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var utils = require('./utils.js');
6
-
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var JSON_CONTENT_TYPE = "application/json; charset=UTF-8";
24
- var URLENCODED_CONTENT_TYPE = "application/x-www-form-urlencoded; charset=UTF-8";
25
- var HTTP_GET = "GET";
26
- var HTTP_POST = "POST";
27
- var HTTP_DELETE = "DELETE";
28
- var defaultOptions = {};
29
- function getHeaders(authorizationToken) {
30
- const headers = {
31
- "Accept": "application/json, text/javascript, */*; q=0.01"
32
- };
33
- if (authorizationToken) {
34
- headers["Authorization"] = "Bearer " + authorizationToken;
35
- }
36
- return headers;
37
- }
38
- function ServiceClient(options) {
39
- options = $.extend({}, defaultOptions, options);
40
- var baseUrl = utils.rTrim(options.serviceUrl || options.baseUrl, "\\/");
41
- var loginPromise;
42
- var _ajax = utils.$ajax;
43
- function validateClientID(clientID) {
44
- if (!clientID) {
45
- throw "Invalid clientID";
46
- }
47
- }
48
- function urlFromTemplate(template, args) {
49
- args = $.extend({}, { baseUrl }, args);
50
- return utils.stringFormat(template, args);
51
- }
52
- function login() {
53
- if (!loginPromise) {
54
- var loginInfo = options.loginInfo;
55
- if (loginInfo && loginInfo.url && (loginInfo.username || loginInfo.password)) {
56
- const endPoint = loginInfo.url;
57
- loginPromise = _ajax(endPoint, {
58
- method: HTTP_POST,
59
- data: {
60
- grant_type: "password",
61
- username: loginInfo.username,
62
- password: loginInfo.password
63
- },
64
- dataType: "json",
65
- contentType: URLENCODED_CONTENT_TYPE
66
- }).then(function(result) {
67
- return result.access_token;
68
- });
69
- } else {
70
- loginPromise = Promise.resolve();
71
- }
72
- }
73
- return loginPromise;
74
- }
75
- return {
76
- _urlFromTemplate: urlFromTemplate,
77
- registerClient: function(settings) {
78
- const endPoint = `${baseUrl}/clients`;
79
- return login().then(function(authorizationToken) {
80
- return _ajax(endPoint, __spreadValues({
81
- headers: getHeaders(authorizationToken),
82
- method: HTTP_POST,
83
- dataType: "json",
84
- // Used to avoid Chrome caching functionality for simple async requests
85
- // when the first request is not completed the second request is not send
86
- // and the same response is used for both of the request. In this case the
87
- // second client is not registered to the service and the same clientId is used.
88
- data: JSON.stringify({ timeStamp: Date.now() })
89
- }, settings));
90
- }).then(function(clientData) {
91
- if (clientData.Message) {
92
- throw clientData.Message;
93
- }
94
- return clientData.clientId;
95
- });
96
- },
97
- unregisterClient: function(clientID, settings) {
98
- validateClientID(clientID);
99
- const endPoint = `${baseUrl}/clients/${clientID}`;
100
- return login().then(function(authorizationToken) {
101
- return _ajax(endPoint, __spreadValues({
102
- headers: getHeaders(authorizationToken),
103
- method: HTTP_DELETE
104
- }, settings));
105
- });
106
- },
107
- getParameters: function(clientID, report, parameterValues, settings) {
108
- validateClientID(clientID);
109
- const endPoint = `${baseUrl}/clients/${clientID}/parameters`;
110
- return login().then(function(authorizationToken) {
111
- return _ajax(endPoint, __spreadValues({
112
- headers: getHeaders(authorizationToken),
113
- method: HTTP_POST,
114
- contentType: JSON_CONTENT_TYPE,
115
- dataType: "json",
116
- data: JSON.stringify({ report, parameterValues })
117
- }, settings));
118
- });
119
- },
120
- createReportInstance: function(clientID, report, parameterValues, settings) {
121
- validateClientID(clientID);
122
- const endPoint = `${baseUrl}/clients/${clientID}/instances`;
123
- return login().then(function(authorizationToken) {
124
- return _ajax(endPoint, __spreadValues({
125
- headers: getHeaders(authorizationToken),
126
- method: HTTP_POST,
127
- contentType: JSON_CONTENT_TYPE,
128
- dataType: "json",
129
- data: JSON.stringify({ report, parameterValues })
130
- }, settings));
131
- }).then(function(instanceData) {
132
- return instanceData.instanceId;
133
- });
134
- },
135
- deleteReportInstance: function(clientID, instanceID, settings) {
136
- validateClientID(clientID);
137
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}`;
138
- return login().then(function(authorizationToken) {
139
- return _ajax(endPoint, __spreadValues({
140
- headers: getHeaders(authorizationToken),
141
- method: HTTP_DELETE
142
- }, settings));
143
- });
144
- },
145
- // eslint-disable-next-line max-params
146
- createReportDocument: function(clientID, instanceID, format, deviceInfo, useCache, baseDocumentID, actionID, settings) {
147
- validateClientID(clientID);
148
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents`;
149
- return login().then(function(authorizationToken) {
150
- deviceInfo = deviceInfo || {};
151
- deviceInfo["BasePath"] = baseUrl;
152
- return _ajax(endPoint, __spreadValues({
153
- headers: getHeaders(authorizationToken),
154
- method: HTTP_POST,
155
- contentType: JSON_CONTENT_TYPE,
156
- dataType: "json",
157
- data: JSON.stringify({
158
- format,
159
- deviceInfo,
160
- useCache,
161
- baseDocumentID,
162
- actionID
163
- })
164
- }, settings));
165
- }).then(function(documentData) {
166
- return documentData.documentId;
167
- });
168
- },
169
- // eslint-disable-next-line max-params
170
- sendDocument: function(clientID, instanceID, documentID, mailArgs, settings) {
171
- validateClientID(clientID);
172
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}/send`;
173
- return login().then(function(authorizationToken) {
174
- return _ajax(endPoint, __spreadValues({
175
- headers: getHeaders(authorizationToken),
176
- method: HTTP_POST,
177
- contentType: JSON_CONTENT_TYPE,
178
- data: JSON.stringify({
179
- from: mailArgs.from,
180
- to: mailArgs.to,
181
- cc: mailArgs.cc,
182
- subject: mailArgs.subject,
183
- body: mailArgs.body
184
- })
185
- }, settings));
186
- });
187
- },
188
- deleteReportDocument: function(clientID, instanceID, documentID, settings) {
189
- validateClientID(clientID);
190
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}`;
191
- return login().then(function(authorizationToken) {
192
- return _ajax(endPoint, __spreadValues({
193
- headers: getHeaders(authorizationToken),
194
- method: HTTP_DELETE
195
- }, settings));
196
- });
197
- },
198
- getDocumentInfo: function(clientID, instanceID, documentID, settings) {
199
- validateClientID(clientID);
200
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}/info`;
201
- return login().then(function(authorizationToken) {
202
- return _ajax(endPoint, __spreadValues({
203
- headers: getHeaders(authorizationToken),
204
- method: HTTP_GET,
205
- dataType: "json"
206
- }, settings));
207
- });
208
- },
209
- // eslint-disable-next-line max-params
210
- getPage: function(clientID, instanceID, documentID, pageNumber, settings) {
211
- validateClientID(clientID);
212
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}/pages/${pageNumber}`;
213
- return login().then(function(authorizationToken) {
214
- return _ajax(endPoint, __spreadValues({
215
- headers: getHeaders(authorizationToken),
216
- method: HTTP_GET,
217
- dataType: "json"
218
- }, settings));
219
- });
220
- },
221
- get: function(url) {
222
- return _ajax(url, {
223
- method: HTTP_GET
224
- });
225
- },
226
- formatDocumentUrl: function(clientID, instanceID, documentID, queryString) {
227
- var url = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}`;
228
- if (queryString) {
229
- url += "?" + queryString;
230
- }
231
- return url;
232
- },
233
- getDocumentFormats: function(settings) {
234
- const endPoint = `${baseUrl}/formats`;
235
- return login().then(function(authorizationToken) {
236
- return _ajax(endPoint, __spreadValues({
237
- headers: getHeaders(authorizationToken),
238
- method: HTTP_GET,
239
- dataType: "json"
240
- }, settings));
241
- });
242
- },
243
- getServiceVersion: function(settings) {
244
- const endPoint = `${baseUrl}/version`;
245
- return login().then(function(authorizationToken) {
246
- return _ajax(endPoint, __spreadValues({
247
- headers: getHeaders(authorizationToken),
248
- method: HTTP_GET,
249
- dataType: "json"
250
- }, settings));
251
- });
252
- },
253
- // eslint-disable-next-line max-params
254
- getResource: function(clientID, instanceID, documentID, resourceID, settings) {
255
- validateClientID(clientID);
256
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}/resources/${resourceID}`;
257
- return login().then(function(authorizationToken) {
258
- return _ajax(endPoint, __spreadValues({
259
- headers: getHeaders(authorizationToken),
260
- method: HTTP_GET,
261
- dataType: (settings == null ? void 0 : settings.dataType) || "json"
262
- }, settings));
263
- });
264
- },
265
- // eslint-disable-next-line max-params
266
- getSearchResults: function(clientID, instanceID, documentID, searchToken, matchCase, matchWholeWord, useRegex, settings) {
267
- validateClientID(clientID);
268
- const endPoint = `${baseUrl}/clients/${clientID}/instances/${instanceID}/documents/${documentID}/search`;
269
- return login().then(function(authorizationToken) {
270
- return _ajax(endPoint, __spreadValues({
271
- headers: getHeaders(authorizationToken),
272
- method: HTTP_POST,
273
- contentType: JSON_CONTENT_TYPE,
274
- dataType: "json",
275
- data: JSON.stringify({
276
- searchToken,
277
- matchCase,
278
- matchWholeWord,
279
- useRegularExpressions: useRegex
280
- })
281
- }, settings));
282
- });
283
- },
284
- setAccessToken: function(accessToken) {
285
- loginPromise = Promise.resolve(accessToken);
286
- },
287
- login,
288
- keepClientAlive: function(clientID, settings) {
289
- const endPoint = `${baseUrl}/clients/keepAlive/${clientID}`;
290
- return login().then(function(authorizationToken) {
291
- return _ajax(endPoint, __spreadValues({
292
- headers: getHeaders(authorizationToken),
293
- method: HTTP_POST
294
- }, settings));
295
- });
296
- },
297
- getClientsSessionTimeoutSeconds: function(settings) {
298
- const endPoint = `${baseUrl}/clients/sessionTimeout`;
299
- return login().then(function(authorizationToken) {
300
- return _ajax(endPoint, __spreadValues({
301
- headers: getHeaders(authorizationToken),
302
- method: HTTP_GET
303
- }, settings));
304
- }).then(function(sessionTimeoutData) {
305
- return sessionTimeoutData.clientSessionTimeout;
306
- });
307
- }
308
- };
309
- }
310
-
311
- exports.ServiceClient = ServiceClient;