@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.
- package/README.md +1 -1
- package/dist/cjs/accessibility.js +22 -64
- package/dist/cjs/aiPrompt.js +311 -0
- package/dist/cjs/base-component.js +8 -11
- package/dist/cjs/binder.js +12 -12
- package/dist/cjs/command.js +44 -25
- package/dist/cjs/commandSet.js +78 -53
- package/dist/cjs/components/button.js +41 -0
- package/dist/cjs/components/toggle-button.js +47 -0
- package/dist/cjs/constants.js +22 -0
- package/dist/cjs/documentMapArea.js +114 -93
- package/dist/cjs/event-emitter.js +2 -8
- package/dist/cjs/history.js +13 -12
- package/dist/cjs/index.js +4 -12
- package/dist/cjs/mainMenu.js +38 -28
- package/dist/cjs/mem-storage.js +7 -13
- package/dist/cjs/notificationService.js +128 -0
- package/dist/cjs/parameterValidators.js +26 -25
- package/dist/cjs/parameters.js +180 -161
- package/dist/cjs/parametersArea.js +306 -298
- package/dist/cjs/perspectives.js +23 -27
- package/dist/cjs/report-viewer/report-viewer-settings.js +4 -10
- package/dist/cjs/reportViewer.js +441 -190
- package/dist/cjs/search.js +218 -328
- package/dist/cjs/sendEmail.js +259 -264
- package/dist/cjs/service-client-sentinel.js +1 -1
- package/dist/cjs/sideMenu.js +20 -16
- package/dist/cjs/sr.js +9 -5
- package/dist/cjs/template-cache.js +2 -2
- package/dist/cjs/toolbar/button.js +18 -0
- package/dist/cjs/toolbar/link-button.js +6 -12
- package/dist/cjs/toolbar/page-count-label.js +1 -1
- package/dist/cjs/toolbar/page-number-input.js +16 -14
- package/dist/cjs/toolbar.js +186 -0
- package/dist/cjs/touch.js +8 -8
- package/dist/cjs/uiController.js +70 -57
- package/dist/cjs/utils.js +20 -207
- package/dist/font/font-icons.css +25 -222
- package/dist/font/font-icons.min.css +3 -3
- package/dist/js/telerikReportViewer.js +8173 -9110
- package/dist/js/telerikReportViewer.kendo.js +105616 -60642
- package/dist/js/telerikReportViewer.kendo.min.js +2 -2
- package/dist/js/telerikReportViewer.min.js +1 -1
- package/dist/js/telerikReportViewer.stringResources.js +9 -5
- package/dist/styles/telerikReportViewer.css +3 -3
- package/dist/styles/telerikReportViewer.min.css +3 -3
- package/dist/templates/telerikReportViewerTemplate.html +299 -238
- package/package.json +2 -3
- package/dist/cjs/controller.js +0 -1226
- package/dist/cjs/kendo-jquery.js +0 -4
- package/dist/cjs/pagesArea.js +0 -625
- package/dist/cjs/print.js +0 -165
- package/dist/cjs/scroll.js +0 -535
- package/dist/cjs/serviceClient.js +0 -311
- package/dist/cjs/telerikReportViewer.kendo.js +0 -60196
- package/dist/cjs/telerikReportViewer.kendo.min.js +0 -19776
- package/dist/cjs/uiFreezeCoordinator.js +0 -282
- package/dist/es/accessibility.js +0 -204
- package/dist/es/base-component.js +0 -22
- package/dist/es/binder.js +0 -75
- package/dist/es/command.js +0 -28
- package/dist/es/commandSet.js +0 -163
- package/dist/es/controller.js +0 -1222
- package/dist/es/documentMapArea.js +0 -161
- package/dist/es/domUtils.js +0 -43
- package/dist/es/enums.js +0 -41
- package/dist/es/event-emitter.js +0 -127
- package/dist/es/events.js +0 -20
- package/dist/es/globalSettings.js +0 -5
- package/dist/es/history.js +0 -131
- package/dist/es/index.js +0 -25
- package/dist/es/jqueryThrottleDebounce.js +0 -46
- package/dist/es/kendo-jquery.js +0 -1
- package/dist/es/mainMenu.js +0 -319
- package/dist/es/mem-storage.js +0 -40
- package/dist/es/pagesArea.js +0 -621
- package/dist/es/parameterValidators.js +0 -160
- package/dist/es/parameters.js +0 -916
- package/dist/es/parametersArea.js +0 -493
- package/dist/es/perspectives.js +0 -134
- package/dist/es/print.js +0 -161
- package/dist/es/report-viewer/report-viewer-settings.js +0 -134
- package/dist/es/reportViewer.js +0 -666
- package/dist/es/scroll.js +0 -531
- package/dist/es/search.js +0 -580
- package/dist/es/sendEmail.js +0 -388
- package/dist/es/service-client-sentinel.js +0 -49
- package/dist/es/serviceClient.js +0 -307
- package/dist/es/sideMenu.js +0 -212
- package/dist/es/sr.js +0 -164
- package/dist/es/stringResources.js +0 -7
- package/dist/es/telerikReportViewer.kendo.js +0 -60194
- package/dist/es/telerikReportViewer.kendo.min.js +0 -19774
- package/dist/es/template-cache.js +0 -35
- package/dist/es/toolbar/link-button.js +0 -38
- package/dist/es/toolbar/page-count-label.js +0 -14
- package/dist/es/toolbar/page-number-input.js +0 -60
- package/dist/es/touch.js +0 -82
- package/dist/es/uiController.js +0 -138
- package/dist/es/uiFreezeCoordinator.js +0 -278
- package/dist/es/utils.js +0 -444
- package/dist/templates/telerikReportViewerTemplate-FA.html +0 -317
- /package/dist/font/{ReportingIcons-19.0.25.211.ttf → ReportingIcons-19.1.25.521.ttf} +0 -0
package/dist/cjs/uiController.js
CHANGED
@@ -2,7 +2,27 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var RCV = require('@progress/telerik-common-report-viewer');
|
6
|
+
|
7
|
+
function _interopNamespace(e) {
|
8
|
+
if (e && e.__esModule) return e;
|
9
|
+
var n = Object.create(null);
|
10
|
+
if (e) {
|
11
|
+
Object.keys(e).forEach(function (k) {
|
12
|
+
if (k !== 'default') {
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
15
|
+
enumerable: true,
|
16
|
+
get: function () { return e[k]; }
|
17
|
+
});
|
18
|
+
}
|
19
|
+
});
|
20
|
+
}
|
21
|
+
n["default"] = e;
|
22
|
+
return Object.freeze(n);
|
23
|
+
}
|
24
|
+
|
25
|
+
var RCV__namespace = /*#__PURE__*/_interopNamespace(RCV);
|
6
26
|
|
7
27
|
function UIController(options) {
|
8
28
|
var stateFlags = {
|
@@ -21,6 +41,7 @@ function UIController(options) {
|
|
21
41
|
}
|
22
42
|
}
|
23
43
|
var controller = options.controller;
|
44
|
+
var notificationService = options.notificationService;
|
24
45
|
var historyManager = options.history;
|
25
46
|
var state = 0;
|
26
47
|
var refreshUI;
|
@@ -28,30 +49,28 @@ function UIController(options) {
|
|
28
49
|
if (!controller) {
|
29
50
|
throw "No controller (telerikReporting.ReportViewerController) has been specified.";
|
30
51
|
}
|
52
|
+
if (!notificationService) {
|
53
|
+
throw "No notificationService (telerikReporting.NotificationService) has been specified.";
|
54
|
+
}
|
31
55
|
function getDocumentMapState() {
|
32
56
|
var args = {};
|
33
|
-
|
57
|
+
notificationService.getDocumentMapState(args);
|
34
58
|
return args;
|
35
59
|
}
|
36
60
|
function getParametersAreaState() {
|
37
61
|
var args = {};
|
38
|
-
|
39
|
-
return args;
|
40
|
-
}
|
41
|
-
function getSearchDialogState() {
|
42
|
-
var args = {};
|
43
|
-
controller.getSearchDialogState(args);
|
62
|
+
notificationService.getParametersAreaState(args);
|
44
63
|
return args;
|
45
64
|
}
|
46
65
|
function getSendEmailDialogState() {
|
47
66
|
var args = {};
|
48
|
-
|
67
|
+
notificationService.getSendEmailDialogState(args);
|
49
68
|
return args;
|
50
69
|
}
|
51
70
|
function updateUI() {
|
52
71
|
if (!refreshUI) {
|
53
72
|
refreshUI = true;
|
54
|
-
window.setTimeout(
|
73
|
+
window.setTimeout(() => {
|
55
74
|
try {
|
56
75
|
updateUICore();
|
57
76
|
} finally {
|
@@ -71,68 +90,62 @@ function UIController(options) {
|
|
71
90
|
var hasPage = hasPages && currentPageNumber;
|
72
91
|
var documentMapState = getDocumentMapState();
|
73
92
|
var parametersAreaState = getParametersAreaState();
|
74
|
-
var searchDialogState = getSearchDialogState();
|
75
93
|
var sendEmailDialogState = getSendEmailDialogState();
|
94
|
+
var searchInitiated = controller.getSearchInitiated();
|
95
|
+
var aiPromptInitiated = controller.getAiPromptInitiated();
|
76
96
|
var renderInProgress = getState(stateFlags.RenderInProgress);
|
77
97
|
var printInProgress = getState(stateFlags.PrintInProgress);
|
78
98
|
var exportInProgress = getState(stateFlags.ExportInProgress);
|
79
|
-
commands.goToFirstPage.
|
80
|
-
commands.goToPrevPage.
|
81
|
-
commands.stopRendering.
|
82
|
-
commands.goToLastPage.
|
83
|
-
commands.goToNextPage.
|
84
|
-
commands.goToPage.
|
85
|
-
commands.print.
|
86
|
-
commands.export.
|
87
|
-
commands.refresh.
|
88
|
-
commands.historyBack.
|
89
|
-
commands.historyForward.
|
90
|
-
commands.toggleDocumentMap.
|
91
|
-
commands.
|
92
|
-
commands.
|
93
|
-
commands.
|
94
|
-
commands.
|
95
|
-
commands.
|
96
|
-
commands.
|
97
|
-
commands.
|
98
|
-
commands.
|
99
|
-
commands.
|
100
|
-
|
101
|
-
|
102
|
-
|
99
|
+
commands.goToFirstPage.setEnabled(prevPage);
|
100
|
+
commands.goToPrevPage.setEnabled(prevPage);
|
101
|
+
commands.stopRendering.setEnabled(hasReport && renderInProgress);
|
102
|
+
commands.goToLastPage.setEnabled(nextPage);
|
103
|
+
commands.goToNextPage.setEnabled(nextPage);
|
104
|
+
commands.goToPage.setEnabled(hasPages);
|
105
|
+
commands.print.setEnabled(hasPages && !renderInProgress && !printInProgress);
|
106
|
+
commands.export.setEnabled(hasPages && !renderInProgress && !exportInProgress);
|
107
|
+
commands.refresh.setEnabled(hasReport);
|
108
|
+
commands.historyBack.setEnabled(historyManager && historyManager.canMoveBack());
|
109
|
+
commands.historyForward.setEnabled(historyManager && historyManager.canMoveForward());
|
110
|
+
commands.toggleDocumentMap.setEnabled(hasReport && documentMapState.enabled);
|
111
|
+
commands.toggleDocumentMap.setChecked(documentMapState.enabled && documentMapState.visible);
|
112
|
+
commands.toggleParametersArea.setEnabled(hasReport && parametersAreaState.enabled);
|
113
|
+
commands.toggleParametersArea.setChecked(parametersAreaState.enabled && parametersAreaState.visible);
|
114
|
+
commands.togglePrintPreview.setEnabled(hasPages).setChecked(controller.getViewMode() == RCV__namespace.ViewMode.PrintPreview);
|
115
|
+
commands.pageMode.setEnabled(hasPages).setChecked(controller.getPageMode() == RCV__namespace.PageMode.ContinuousScroll);
|
116
|
+
commands.zoom.setEnabled(hasPage);
|
117
|
+
commands.zoomIn.setEnabled(hasPage);
|
118
|
+
commands.zoomOut.setEnabled(hasPage);
|
119
|
+
commands.toggleZoomMode.setEnabled(hasPage).setChecked(controller.getScaleMode() == RCV__namespace.ScaleMode.FitPage || controller.getScaleMode() == RCV__namespace.ScaleMode.FitPageWidth);
|
120
|
+
commands.toggleSearchDialog.setEnabled(hasPages).setChecked(searchInitiated);
|
121
|
+
commands.toggleSendEmailDialog.setEnabled(hasPages).setChecked(sendEmailDialogState.visible);
|
122
|
+
commands.toggleAiPromptDialog.setEnabled(hasPages).setChecked(aiPromptInitiated);
|
123
|
+
notificationService.updateUI(null);
|
124
|
+
notificationService.pageNumberChange(currentPageNumber);
|
125
|
+
notificationService.pageCountChange(pageCount);
|
103
126
|
}
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
controller.scaleModeChanged(
|
110
|
-
|
111
|
-
|
127
|
+
notificationService.setParametersAreaVisible(updateUI);
|
128
|
+
notificationService.setDocumentMapVisible(updateUI);
|
129
|
+
notificationService.updateUIInternal(updateUI);
|
130
|
+
notificationService.setSearchDialogVisible(updateUI);
|
131
|
+
notificationService.setSendEmailDialogVisible(updateUI);
|
132
|
+
controller.on("scaleModeChanged", (scaleMode) => {
|
133
|
+
commands.toggleZoomMode.setChecked(scaleMode == RCV__namespace.ScaleMode.FitPage || scaleMode === RCV__namespace.ScaleMode.FitPageWidth);
|
134
|
+
}).on("currentPageChanged", updateUI).onAsync("beforeLoadReport", async () => {
|
112
135
|
setState(stateFlags.RenderInProgress, true);
|
113
136
|
updateUI();
|
114
|
-
})
|
115
|
-
controller.reportLoadProgress(updateUI);
|
116
|
-
controller.reportLoadComplete(function() {
|
137
|
+
}).on("reportLoadProgress", updateUI).onAsync("reportLoadComplete", async () => {
|
117
138
|
setState(stateFlags.RenderInProgress, false);
|
118
139
|
updateUI();
|
119
|
-
})
|
120
|
-
controller.reportSourceChanged(updateUI);
|
121
|
-
controller.viewModeChanged(updateUI);
|
122
|
-
controller.pageModeChanged(function() {
|
123
|
-
updateUI();
|
124
|
-
});
|
125
|
-
controller.setUIState(function(event, args) {
|
140
|
+
}).on("reportSourceChanged", updateUI).on("viewModeChanged", updateUI).on("pageModeChanged", updateUI).on("setUIState", (args) => {
|
126
141
|
setState(stateFlags[args.operationName], args.inProgress);
|
127
142
|
updateUI();
|
128
|
-
})
|
129
|
-
controller.error(function() {
|
143
|
+
}).on("error", () => {
|
130
144
|
setState(stateFlags.ExportInProgress, false);
|
131
145
|
setState(stateFlags.PrintInProgress, false);
|
132
146
|
setState(stateFlags.RenderInProgress, false);
|
133
147
|
updateUI();
|
134
|
-
})
|
135
|
-
controller.renderingStopped(function() {
|
148
|
+
}).on("renderingStopped", () => {
|
136
149
|
setState(stateFlags.RenderInProgress, false);
|
137
150
|
updateUI();
|
138
151
|
});
|
package/dist/cjs/utils.js
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var RCV = require('@progress/telerik-common-report-viewer');
|
6
|
+
|
5
7
|
var stringFormatRegExp = /{(\w+?)}/g;
|
6
8
|
var specialKeys = {
|
7
9
|
DELETE: 46,
|
@@ -91,35 +93,14 @@ function rTrim(s, charlist) {
|
|
91
93
|
return s.replace(new RegExp("[" + charlist + "]+$"), "");
|
92
94
|
}
|
93
95
|
function stringFormat(template, data) {
|
94
|
-
var
|
96
|
+
var isArray = Array.isArray(data);
|
95
97
|
return template.replace(stringFormatRegExp, function($0, $1) {
|
96
|
-
return data[
|
98
|
+
return data[isArray ? parseInt($1) : $1];
|
97
99
|
});
|
98
100
|
}
|
99
101
|
function escapeHtml(str) {
|
100
102
|
return $("<div>").text(str).html();
|
101
103
|
}
|
102
|
-
function tryParseInt(value) {
|
103
|
-
if (/^(\-|\+)?([0-9]+)$/.test(value)) {
|
104
|
-
return Number(value);
|
105
|
-
}
|
106
|
-
return NaN;
|
107
|
-
}
|
108
|
-
function tryParseFloat(value) {
|
109
|
-
if (/^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(value)) {
|
110
|
-
return Number(value);
|
111
|
-
}
|
112
|
-
return NaN;
|
113
|
-
}
|
114
|
-
function parseToLocalDate(date) {
|
115
|
-
if (date instanceof Date)
|
116
|
-
return date;
|
117
|
-
var isUtc = /Z|[\+\-]\d\d:?\d\d/i.test(date);
|
118
|
-
if (!isUtc) {
|
119
|
-
date += "Z";
|
120
|
-
}
|
121
|
-
return new Date(date);
|
122
|
-
}
|
123
104
|
function adjustTimezone(date) {
|
124
105
|
return new Date(
|
125
106
|
Date.UTC(
|
@@ -154,20 +135,6 @@ function areEqual(v1, v2) {
|
|
154
135
|
}
|
155
136
|
return true;
|
156
137
|
}
|
157
|
-
function reportSourcesAreEqual(rs1, rs2) {
|
158
|
-
if (rs1 && rs2 && rs1.report === rs2.report) {
|
159
|
-
var params1String = "";
|
160
|
-
if (rs1.parameters) {
|
161
|
-
params1String = JSON.stringify(rs1.parameters);
|
162
|
-
}
|
163
|
-
var params2String = "";
|
164
|
-
if (rs2.parameters) {
|
165
|
-
params2String = JSON.stringify(rs2.parameters);
|
166
|
-
}
|
167
|
-
return params1String === params2String;
|
168
|
-
}
|
169
|
-
return false;
|
170
|
-
}
|
171
138
|
function areEqualArrays(array1, array2) {
|
172
139
|
if (array1 === null) {
|
173
140
|
if (array2 !== null) {
|
@@ -188,30 +155,6 @@ function areEqualArrays(array1, array2) {
|
|
188
155
|
}
|
189
156
|
return true;
|
190
157
|
}
|
191
|
-
function isSvgSupported() {
|
192
|
-
var matches = /Version\/(\d+.\d+.\d+) Safari/.exec(navigator.userAgent);
|
193
|
-
if (matches && matches.length > 1) {
|
194
|
-
var version = parseFloat(matches[1]);
|
195
|
-
return version >= 6;
|
196
|
-
}
|
197
|
-
return true;
|
198
|
-
}
|
199
|
-
function isInternalServerError(error) {
|
200
|
-
if (error) {
|
201
|
-
return replaceAll(error, " ", "").toLowerCase() === "internalservererror";
|
202
|
-
}
|
203
|
-
return false;
|
204
|
-
}
|
205
|
-
function isSystemArgumentException(xhr) {
|
206
|
-
var exceptionShortName = "ArgumentException";
|
207
|
-
var exceptionInstance = getExceptionInstance(xhr);
|
208
|
-
return isExceptionInstanceOfType(exceptionInstance, exceptionShortName, "System." + exceptionShortName);
|
209
|
-
}
|
210
|
-
function isInvalidClientException(xhr) {
|
211
|
-
var exceptionShortName = "InvalidClientException";
|
212
|
-
var exceptionInstance = getExceptionInstance(xhr);
|
213
|
-
return isExceptionInstanceOfType(exceptionInstance, exceptionShortName, "Telerik.Reporting.Services.Engine." + exceptionShortName);
|
214
|
-
}
|
215
158
|
function isApplicationException(xhr) {
|
216
159
|
return isApplicationExceptionInstance(getExceptionInstance(xhr));
|
217
160
|
}
|
@@ -219,9 +162,6 @@ function isApplicationExceptionInstance(exception) {
|
|
219
162
|
var exceptionShortName = "DrawingFactoryUnavailableException";
|
220
163
|
return isExceptionInstanceOfType(exception, exceptionShortName, "Telerik.Drawing.Contract." + exceptionShortName);
|
221
164
|
}
|
222
|
-
function isExceptionOfType(xhr, exceptionType) {
|
223
|
-
return isExceptionInstanceOfType(getExceptionInstance(xhr), exceptionType, exceptionType);
|
224
|
-
}
|
225
165
|
function isExceptionInstanceOfType(exceptionInstance, exceptionTypeShortName, exceptionTypeFullName) {
|
226
166
|
return exceptionInstance && exceptionInstance.exceptionType && exceptionTypeNamesMatch(exceptionInstance.exceptionType, exceptionTypeShortName, exceptionTypeFullName);
|
227
167
|
}
|
@@ -253,72 +193,6 @@ function getExceptionInstance(xhr) {
|
|
253
193
|
}
|
254
194
|
return parseJSON(xhr.responseText);
|
255
195
|
}
|
256
|
-
function extend() {
|
257
|
-
var copy;
|
258
|
-
var name;
|
259
|
-
var options;
|
260
|
-
var target;
|
261
|
-
var i = 0;
|
262
|
-
var length = arguments.length;
|
263
|
-
target = length > 1 ? arguments[i++] || {} : {};
|
264
|
-
for (; i < length; i++) {
|
265
|
-
if ((options = arguments[i]) != null) {
|
266
|
-
for (name in options) {
|
267
|
-
target[name];
|
268
|
-
copy = options[name];
|
269
|
-
if (target === copy) {
|
270
|
-
continue;
|
271
|
-
}
|
272
|
-
if (copy !== void 0) {
|
273
|
-
target[name] = copy;
|
274
|
-
}
|
275
|
-
}
|
276
|
-
}
|
277
|
-
}
|
278
|
-
return target;
|
279
|
-
}
|
280
|
-
function each(obj, callback) {
|
281
|
-
var length;
|
282
|
-
var i = 0;
|
283
|
-
if (isArray(obj)) {
|
284
|
-
length = obj.length;
|
285
|
-
for (; i < length; i++) {
|
286
|
-
if (callback.call(obj[i], i, obj[i]) === false) {
|
287
|
-
break;
|
288
|
-
}
|
289
|
-
}
|
290
|
-
} else {
|
291
|
-
for (i in obj) {
|
292
|
-
if (callback.call(obj[i], i, obj[i]) === false) {
|
293
|
-
break;
|
294
|
-
}
|
295
|
-
}
|
296
|
-
}
|
297
|
-
return obj;
|
298
|
-
}
|
299
|
-
function selector() {
|
300
|
-
return document.querySelectorAll(arguments[0]);
|
301
|
-
}
|
302
|
-
function isArray(obj) {
|
303
|
-
if (Array.isArray(obj))
|
304
|
-
return true;
|
305
|
-
var length = Boolean(obj) && "length" in obj && obj.length;
|
306
|
-
if (typeof length === "number") {
|
307
|
-
return true;
|
308
|
-
}
|
309
|
-
return false;
|
310
|
-
}
|
311
|
-
function loadScriptWithCallback(src, done, version) {
|
312
|
-
var js = document.createElement("script");
|
313
|
-
js.src = src;
|
314
|
-
js.onload = function() {
|
315
|
-
done(version);
|
316
|
-
};
|
317
|
-
js.onerror = function() {
|
318
|
-
logError(new Error("Failed to load script " + src));
|
319
|
-
};
|
320
|
-
document.head.appendChild(js);
|
321
|
-
}
|
322
196
|
function loadScript(url) {
|
323
197
|
var ajaxOptions = {
|
324
198
|
dataType: "script",
|
@@ -338,16 +212,6 @@ function logError(error) {
|
|
338
212
|
console.error(error);
|
339
213
|
}
|
340
214
|
}
|
341
|
-
function findElement(selectorChain) {
|
342
|
-
if (selectorChain.constructor != Array) {
|
343
|
-
selectorChain = [selectorChain];
|
344
|
-
}
|
345
|
-
var $area = $(selectorChain[0]);
|
346
|
-
for (var i = 1; i < selectorChain.length; i++) {
|
347
|
-
$area = $area.find(selectorChain[i]);
|
348
|
-
}
|
349
|
-
return $area;
|
350
|
-
}
|
351
215
|
function toRgbColor(hexColor) {
|
352
216
|
if (hexColor && hexColor.length < 6) {
|
353
217
|
var index = 1;
|
@@ -394,96 +258,45 @@ function $ajax(url, ajaxSettings) {
|
|
394
258
|
});
|
395
259
|
});
|
396
260
|
}
|
397
|
-
function type(obj) {
|
398
|
-
return Object.prototype.toString.call(obj).slice(8, -1);
|
399
|
-
}
|
400
|
-
function isEqual(a, b) {
|
401
|
-
if (a === b) {
|
402
|
-
return true;
|
403
|
-
}
|
404
|
-
if (a !== a && b !== b) {
|
405
|
-
return true;
|
406
|
-
}
|
407
|
-
if (a !== a && b === b || a === a && b !== b) {
|
408
|
-
return false;
|
409
|
-
}
|
410
|
-
const typeA = type(a);
|
411
|
-
const typeB = type(b);
|
412
|
-
if (typeA !== typeB) {
|
413
|
-
return false;
|
414
|
-
}
|
415
|
-
if (typeA === "Array") {
|
416
|
-
if (a.length !== b.length) {
|
417
|
-
return false;
|
418
|
-
}
|
419
|
-
const length = a.length;
|
420
|
-
for (let i = 0; i < length; i++) {
|
421
|
-
if (!isEqual(a[i], b[i])) {
|
422
|
-
return false;
|
423
|
-
}
|
424
|
-
}
|
425
|
-
return true;
|
426
|
-
}
|
427
|
-
if (typeA === "Object") {
|
428
|
-
const keysA = Object.keys(a);
|
429
|
-
const keysB = Object.keys(b);
|
430
|
-
if (keysA.length !== keysB.length) {
|
431
|
-
return false;
|
432
|
-
}
|
433
|
-
const length = keysA.length;
|
434
|
-
for (let i = 0; i < length; i++) {
|
435
|
-
const key = keysA[i];
|
436
|
-
if (!isEqual(a[key], b[key])) {
|
437
|
-
return false;
|
438
|
-
}
|
439
|
-
}
|
440
|
-
return true;
|
441
|
-
}
|
442
|
-
if (typeA === "Date") {
|
443
|
-
return a.getTime() === b.getTime();
|
444
|
-
}
|
445
|
-
return false;
|
446
|
-
}
|
447
261
|
|
262
|
+
Object.defineProperty(exports, 'parseToLocalDate', {
|
263
|
+
enumerable: true,
|
264
|
+
get: function () { return RCV.parseToLocalDate; }
|
265
|
+
});
|
266
|
+
Object.defineProperty(exports, 'reportSourcesAreEqual', {
|
267
|
+
enumerable: true,
|
268
|
+
get: function () { return RCV.reportSourcesAreEqual; }
|
269
|
+
});
|
270
|
+
Object.defineProperty(exports, 'tryParseFloat', {
|
271
|
+
enumerable: true,
|
272
|
+
get: function () { return RCV.tryParseFloat; }
|
273
|
+
});
|
274
|
+
Object.defineProperty(exports, 'tryParseInt', {
|
275
|
+
enumerable: true,
|
276
|
+
get: function () { return RCV.tryParseInt; }
|
277
|
+
});
|
448
278
|
exports.$ajax = $ajax;
|
449
279
|
exports.adjustTimezone = adjustTimezone;
|
450
280
|
exports.areEqual = areEqual;
|
451
281
|
exports.areEqualArrays = areEqualArrays;
|
452
|
-
exports.each = each;
|
453
282
|
exports.escapeHtml = escapeHtml;
|
454
283
|
exports.exceptionTypeNamesMatch = exceptionTypeNamesMatch;
|
455
|
-
exports.extend = extend;
|
456
284
|
exports.filterUniqueLastOccurrence = filterUniqueLastOccurrence;
|
457
|
-
exports.findElement = findElement;
|
458
285
|
exports.generateGuidString = generateGuidString;
|
459
286
|
exports.getColorAlphaValue = getColorAlphaValue;
|
460
287
|
exports.getExceptionInstance = getExceptionInstance;
|
461
288
|
exports.isApplicationException = isApplicationException;
|
462
289
|
exports.isApplicationExceptionInstance = isApplicationExceptionInstance;
|
463
|
-
exports.isArray = isArray;
|
464
|
-
exports.isEqual = isEqual;
|
465
|
-
exports.isExceptionOfType = isExceptionOfType;
|
466
|
-
exports.isInternalServerError = isInternalServerError;
|
467
|
-
exports.isInvalidClientException = isInvalidClientException;
|
468
290
|
exports.isRgbColor = isRgbColor;
|
469
291
|
exports.isSpecialKey = isSpecialKey;
|
470
|
-
exports.isSvgSupported = isSvgSupported;
|
471
|
-
exports.isSystemArgumentException = isSystemArgumentException;
|
472
292
|
exports.lTrim = lTrim;
|
473
293
|
exports.loadScript = loadScript;
|
474
|
-
exports.loadScriptWithCallback = loadScriptWithCallback;
|
475
294
|
exports.logError = logError;
|
476
295
|
exports.parseJSON = parseJSON;
|
477
|
-
exports.parseToLocalDate = parseToLocalDate;
|
478
296
|
exports.rTrim = rTrim;
|
479
297
|
exports.rectangle = rectangle;
|
480
298
|
exports.replaceAll = replaceAll;
|
481
|
-
exports.reportSourcesAreEqual = reportSourcesAreEqual;
|
482
|
-
exports.selector = selector;
|
483
299
|
exports.stringFormat = stringFormat;
|
484
300
|
exports.toRgbColor = toRgbColor;
|
485
301
|
exports.trim = trim;
|
486
|
-
exports.tryParseFloat = tryParseFloat;
|
487
|
-
exports.tryParseInt = tryParseInt;
|
488
|
-
exports.type = type;
|
489
302
|
exports.unadjustTimezone = unadjustTimezone;
|