@progress/telerik-jquery-report-viewer 21.24.130 → 22.24.514

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/accessibility.js +218 -0
  3. package/dist/cjs/binder.js +172 -0
  4. package/dist/cjs/command.js +32 -0
  5. package/dist/cjs/commandSet.js +167 -0
  6. package/dist/cjs/controller.js +1207 -0
  7. package/dist/cjs/documentMapArea.js +168 -0
  8. package/dist/cjs/domUtils.js +50 -0
  9. package/dist/cjs/enums.js +52 -0
  10. package/dist/cjs/event-emitter.js +17 -0
  11. package/dist/cjs/events.js +23 -0
  12. package/dist/cjs/globalSettings.js +9 -0
  13. package/dist/cjs/history.js +131 -0
  14. package/dist/cjs/index.js +58 -0
  15. package/dist/cjs/jqueryThrottleDebounce.js +48 -0
  16. package/dist/cjs/kendo-jquery.js +4 -0
  17. package/dist/cjs/mainMenu.js +332 -0
  18. package/dist/cjs/mem-storage.js +44 -0
  19. package/dist/cjs/pagesArea.js +641 -0
  20. package/dist/cjs/parameterValidators.js +167 -0
  21. package/dist/cjs/parameters.js +921 -0
  22. package/dist/cjs/parametersArea.js +502 -0
  23. package/dist/cjs/perspectives.js +138 -0
  24. package/dist/cjs/print.js +166 -0
  25. package/dist/cjs/report-viewer/report-viewer-settings.js +138 -0
  26. package/dist/cjs/reportViewer.js +654 -0
  27. package/dist/cjs/scroll.js +537 -0
  28. package/dist/cjs/search.js +634 -0
  29. package/dist/cjs/sendEmail.js +435 -0
  30. package/dist/cjs/service-client-sentinel.js +52 -0
  31. package/dist/cjs/serviceClient.js +405 -0
  32. package/dist/cjs/sideMenu.js +225 -0
  33. package/dist/cjs/sr.js +164 -0
  34. package/dist/cjs/stringResources.js +11 -0
  35. package/dist/cjs/telerikReportViewer.kendo.js +60196 -0
  36. package/dist/cjs/telerikReportViewer.kendo.min.js +19776 -0
  37. package/dist/cjs/template-cache.js +39 -0
  38. package/dist/cjs/touch.js +86 -0
  39. package/dist/cjs/uiController.js +142 -0
  40. package/dist/cjs/uiFreezeCoordinator.js +281 -0
  41. package/dist/cjs/utils.js +492 -0
  42. package/dist/es/accessibility.js +214 -0
  43. package/dist/es/binder.js +168 -0
  44. package/dist/es/command.js +28 -0
  45. package/dist/es/commandSet.js +163 -0
  46. package/dist/es/controller.js +1203 -0
  47. package/dist/es/documentMapArea.js +164 -0
  48. package/dist/es/domUtils.js +43 -0
  49. package/dist/es/enums.js +41 -0
  50. package/dist/es/event-emitter.js +13 -0
  51. package/dist/es/events.js +19 -0
  52. package/dist/es/globalSettings.js +5 -0
  53. package/dist/es/history.js +127 -0
  54. package/dist/es/index.js +24 -0
  55. package/dist/es/jqueryThrottleDebounce.js +46 -0
  56. package/dist/es/kendo-jquery.js +1 -0
  57. package/dist/es/mainMenu.js +328 -0
  58. package/dist/es/mem-storage.js +40 -0
  59. package/dist/es/pagesArea.js +637 -0
  60. package/dist/es/parameterValidators.js +163 -0
  61. package/dist/es/parameters.js +916 -0
  62. package/dist/es/parametersArea.js +498 -0
  63. package/dist/es/perspectives.js +134 -0
  64. package/dist/es/print.js +162 -0
  65. package/dist/es/report-viewer/report-viewer-settings.js +134 -0
  66. package/dist/es/reportViewer.js +650 -0
  67. package/dist/es/scroll.js +533 -0
  68. package/dist/es/search.js +630 -0
  69. package/dist/es/sendEmail.js +431 -0
  70. package/dist/es/service-client-sentinel.js +48 -0
  71. package/dist/es/serviceClient.js +401 -0
  72. package/dist/es/sideMenu.js +221 -0
  73. package/dist/es/sr.js +162 -0
  74. package/dist/es/stringResources.js +7 -0
  75. package/dist/es/telerikReportViewer.kendo.js +60194 -0
  76. package/dist/es/telerikReportViewer.kendo.min.js +19774 -0
  77. package/dist/es/template-cache.js +35 -0
  78. package/dist/es/touch.js +82 -0
  79. package/dist/es/uiController.js +138 -0
  80. package/dist/es/uiFreezeCoordinator.js +277 -0
  81. package/dist/es/utils.js +447 -0
  82. package/dist/font/font-icons.css +4 -4
  83. package/dist/font/font-icons.min.css +3 -3
  84. package/dist/js/telerikReportViewer.js +8574 -8249
  85. package/dist/js/telerikReportViewer.min.js +1 -17
  86. package/dist/js/telerikReportViewer.stringResources.js +166 -173
  87. package/dist/styles/telerikReportViewer.css +1 -1
  88. package/dist/styles/telerikReportViewer.min.css +1 -1
  89. package/dist/templates/telerikReportViewerTemplate-FA.html +3 -3
  90. package/dist/templates/telerikReportViewerTemplate.html +3 -3
  91. package/package.json +13 -7
  92. /package/dist/font/{ReportingIcons-18.0.24.130.ttf → ReportingIcons-18.1.24.514.ttf} +0 -0
@@ -0,0 +1,167 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var utils = require('./utils.js');
6
+ var stringResources = require('./stringResources.js');
7
+ var enums = require('./enums.js');
8
+
9
+ var ParameterValidators = function() {
10
+ var validators = {};
11
+ function validateParameter(parameter, value, validatorFunc, compareFunc) {
12
+ var values = [].concat(value).map(function(value1) {
13
+ return checkAvailableValues(parameter, validatorFunc(value1), compareFunc);
14
+ });
15
+ if (parameter.multivalue) {
16
+ if (value == null || value.length == 0) {
17
+ if (parameter.allowNull) {
18
+ return value;
19
+ } else {
20
+ throw stringResources.stringResources.invalidParameter;
21
+ }
22
+ }
23
+ return values;
24
+ }
25
+ return values[0];
26
+ }
27
+ function isNull(parameter, value) {
28
+ return parameter.allowNull && -1 != [null, "", void 0].indexOf(value);
29
+ }
30
+ function checkAvailableValues(parameter, value, compareFunc) {
31
+ if (parameter.availableValues) {
32
+ var found = false;
33
+ utils.each(parameter.availableValues, function(i, av) {
34
+ found = compareFunc(value, av.value);
35
+ return !found;
36
+ });
37
+ if (!found) {
38
+ if (parameter.allowNull && !value) {
39
+ return value;
40
+ }
41
+ throw stringResources.stringResources.invalidParameter;
42
+ }
43
+ }
44
+ return value;
45
+ }
46
+ validators[enums.ParameterTypes.STRING] = {
47
+ validate: function(parameter, value) {
48
+ return validateParameter(
49
+ parameter,
50
+ value,
51
+ function(value2) {
52
+ if (!value2) {
53
+ if (parameter.allowNull) {
54
+ return null;
55
+ }
56
+ if (parameter.allowBlank) {
57
+ return "";
58
+ }
59
+ throw stringResources.stringResources.parameterIsEmpty;
60
+ }
61
+ return value2;
62
+ },
63
+ function(s1, s2) {
64
+ return s1 == s2;
65
+ }
66
+ );
67
+ }
68
+ };
69
+ validators[enums.ParameterTypes.FLOAT] = {
70
+ validate: function(parameter, value) {
71
+ return validateParameter(
72
+ parameter,
73
+ value,
74
+ function(value2) {
75
+ var num = utils.tryParseFloat(value2);
76
+ if (isNaN(num)) {
77
+ if (isNull(parameter, value2)) {
78
+ return null;
79
+ }
80
+ throw stringResources.stringResources.parameterIsEmpty;
81
+ }
82
+ return num;
83
+ },
84
+ function(f1, f2) {
85
+ return utils.tryParseFloat(f1) == utils.tryParseFloat(f2);
86
+ }
87
+ );
88
+ }
89
+ };
90
+ validators[enums.ParameterTypes.INTEGER] = {
91
+ validate: function(parameter, value) {
92
+ return validateParameter(
93
+ parameter,
94
+ value,
95
+ function(value2) {
96
+ var num = utils.tryParseInt(value2);
97
+ if (isNaN(num)) {
98
+ if (isNull(parameter, value2)) {
99
+ return null;
100
+ }
101
+ throw stringResources.stringResources.parameterIsEmpty;
102
+ }
103
+ return num;
104
+ },
105
+ function(n1, n2) {
106
+ return utils.tryParseInt(n1) == utils.tryParseFloat(n2);
107
+ }
108
+ );
109
+ }
110
+ };
111
+ validators[enums.ParameterTypes.DATETIME] = {
112
+ validate: function(parameter, value) {
113
+ return validateParameter(
114
+ parameter,
115
+ value,
116
+ function(value2) {
117
+ if (parameter.allowNull && (value2 === null || value2 === "" || value2 === void 0)) {
118
+ return null;
119
+ }
120
+ if (!isNaN(Date.parse(value2))) {
121
+ if (parameter.availableValues) {
122
+ return value2;
123
+ }
124
+ return utils.parseToLocalDate(value2);
125
+ }
126
+ throw stringResources.stringResources.invalidDateTimeValue;
127
+ },
128
+ function(d1, d2) {
129
+ d1 = utils.parseToLocalDate(d1);
130
+ d2 = utils.parseToLocalDate(d2);
131
+ return d1.getTime() == d2.getTime();
132
+ }
133
+ );
134
+ }
135
+ };
136
+ validators[enums.ParameterTypes.BOOLEAN] = {
137
+ validate: function(parameter, value) {
138
+ return validateParameter(
139
+ parameter,
140
+ value,
141
+ function(value2) {
142
+ if (-1 != ["true", "false"].indexOf(("" + value2).toLowerCase())) {
143
+ return Boolean(value2);
144
+ }
145
+ if (isNull(parameter, value2)) {
146
+ return null;
147
+ }
148
+ throw stringResources.stringResources.parameterIsEmpty;
149
+ },
150
+ function(b1, b2) {
151
+ return Boolean(b1) == Boolean(b2);
152
+ }
153
+ );
154
+ }
155
+ };
156
+ return {
157
+ validate: function(parameter, value) {
158
+ var v = validators[parameter.type];
159
+ if (!v) {
160
+ throw utils.stringFormat(stringResources.stringResources.cannotValidateType, parameter);
161
+ }
162
+ return v.validate(parameter, value);
163
+ }
164
+ };
165
+ }();
166
+
167
+ exports.ParameterValidators = ParameterValidators;