@progress/telerik-react-report-viewer 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +10 -0
- package/README.md +16 -0
- package/dist/cjs/main.js +13 -0
- package/dist/cjs/telerik-report-viewer.js +224 -0
- package/dist/dependencies/initExtDeps.js +10 -0
- package/dist/dependencies/telerikReportViewer.d.ts +83 -0
- package/dist/dependencies/telerikReportViewer.js +8529 -0
- package/dist/dependencies/telerikReportViewer.kendo.min.js +37 -0
- package/dist/dependencies/telerikReportViewerTemplate-sass.html +343 -0
- package/dist/es/main.js +1 -0
- package/dist/es/telerik-report-viewer.js +209 -0
- package/html-viewer-temp-dependencies/js/telerikReportViewer-16.0.21.1213.js +8529 -0
- package/html-viewer-temp-dependencies/js/telerikReportViewer-16.0.21.1213.js.bak +8529 -0
- package/html-viewer-temp-dependencies/js/telerikReportViewer-16.0.21.1213.min.js +10 -0
- package/html-viewer-temp-dependencies/js/telerikReportViewer.kendo.min.js +37 -0
- package/html-viewer-temp-dependencies/templates/telerikReportViewerTemplate-16.0.21.1213.html +343 -0
- package/html-viewer-temp-dependencies/templates/telerikReportViewerTemplate-FA-16.0.21.1213.html +333 -0
- package/package.json +60 -0
- package/progress-telerik-react-report-viewer-0.0.9.tgz +0 -0
package/LICENSE.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Progress® Telerik® Report Viewer for React component
|
2
|
+
|
3
|
+
This package is part of [Telerik Reporting](http://www.telerik.com/reporting).
|
4
|
+
|
5
|
+
**IMPORTANT** This is not free software. You must agree to the
|
6
|
+
[Telerik End User License Agreement for Telerik Reporting](http://www.telerik.com/purchase/license-agreement/reporting-dlw-s) in order to use it.
|
7
|
+
|
8
|
+
If you do not own a commercial license, the use of this product shall be governed by the trial license terms.
|
9
|
+
|
10
|
+
Telerik Reporting licenses may be obtained at [http://www.telerik.com/purchase/individual/reporting](http://www.telerik.com/purchase/individual/reporting).
|
package/README.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
#Progress Telerik Report Viewer for React component
|
3
|
+
|
4
|
+
This package is part of the [Telerik Reporting](http://www.telerik.com/reporting).
|
5
|
+
**IMPORTANT** This package is built and published for testing purposes only. It is not intended to be used in production environment.
|
6
|
+
|
7
|
+
This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 11.0.0.9
|
8
|
+
|
9
|
+
## License
|
10
|
+
|
11
|
+
**IMPORTANT** This is not free software. You must agree to the
|
12
|
+
[Telerik End User License Agreement for Telerik Reporting](http://www.telerik.com/purchase/license-agreement/reporting-dlw-s) in order to use it.
|
13
|
+
|
14
|
+
If you do not own a commercial license, the use of this product shall be governed by the trial license terms.
|
15
|
+
|
16
|
+
Telerik Reporting licenses may be obtained at [http://www.telerik.com/purchase/individual/reporting](http://www.telerik.com/purchase/individual/reporting).
|
package/dist/cjs/main.js
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "TelerikReportViewer", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _telerikReportViewer.TelerikReportViewer;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
|
13
|
+
var _telerikReportViewer = require("./telerik-report-viewer");
|
@@ -0,0 +1,224 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = exports.TelerikReportViewer = void 0;
|
9
|
+
|
10
|
+
require("../dependencies/initExtDeps");
|
11
|
+
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
13
|
+
|
14
|
+
var _telerikReportViewer = require("../dependencies/telerikReportViewer.js");
|
15
|
+
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
+
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
19
|
+
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
21
|
+
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
23
|
+
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
25
|
+
|
26
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
27
|
+
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
29
|
+
|
30
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
31
|
+
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
33
|
+
|
34
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
35
|
+
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
37
|
+
|
38
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
39
|
+
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
41
|
+
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
43
|
+
|
44
|
+
var TelerikReportViewer = /*#__PURE__*/function (_React$Component) {
|
45
|
+
_inherits(TelerikReportViewer, _React$Component);
|
46
|
+
|
47
|
+
var _super = _createSuper(TelerikReportViewer);
|
48
|
+
|
49
|
+
function TelerikReportViewer() {
|
50
|
+
var _this;
|
51
|
+
|
52
|
+
_classCallCheck(this, TelerikReportViewer);
|
53
|
+
|
54
|
+
_this = _super.call(this);
|
55
|
+
_this.state = {
|
56
|
+
reportViewerID: ''
|
57
|
+
};
|
58
|
+
return _this;
|
59
|
+
}
|
60
|
+
|
61
|
+
_createClass(TelerikReportViewer, [{
|
62
|
+
key: "componentDidMount",
|
63
|
+
value: function componentDidMount() {
|
64
|
+
this.setState({
|
65
|
+
reportViewerID: this.props.id || "reportViewer1"
|
66
|
+
});
|
67
|
+
var keepClientAlive = this.props.keepClientAlive === undefined ? true : this.props.keepClientAlive;
|
68
|
+
this.viewerObject = new _telerikReportViewer.ReportViewer(this.el, {
|
69
|
+
id: this.state.reportViewerID,
|
70
|
+
serviceUrl: this.props.serviceUrl,
|
71
|
+
reportServer: this.props.reportServer,
|
72
|
+
trvTemplateUrl: this.props.templateUrl,
|
73
|
+
initialPageAreaImageUrl: this.props.initialPageAreaImageUrl,
|
74
|
+
reportSource: this.props.reportSource,
|
75
|
+
sendEmail: this.props.sendEmail,
|
76
|
+
scale: this.props.scale,
|
77
|
+
scaleMode: this.props.scaleMode,
|
78
|
+
viewMode: this.props.viewMode,
|
79
|
+
pageMode: this.props.pageMode,
|
80
|
+
parameters: this.props.parameters,
|
81
|
+
persistSession: this.props.persistSession,
|
82
|
+
parameterEditors: this.props.parameterEditors,
|
83
|
+
authenticationToken: this.props.authenticationToken,
|
84
|
+
ready: this.props.ready,
|
85
|
+
printMode: this.props.printMode,
|
86
|
+
selector: this.props.selector,
|
87
|
+
disabledButtonClass: this.props.disabledButtonClass,
|
88
|
+
checkedButtonClass: this.props.checkedButtonClass,
|
89
|
+
exportBegin: this.props.exportBegin,
|
90
|
+
exportEnd: this.props.exportEnd,
|
91
|
+
printBegin: this.props.printBegin,
|
92
|
+
printEnd: this.props.printEnd,
|
93
|
+
renderingBegin: this.props.renderingBegin,
|
94
|
+
renderingEnd: this.props.renderingEnd,
|
95
|
+
sendEmailBegin: this.props.sendEmailBegin,
|
96
|
+
sendEmailEnd: this.props.sendEmailEnd,
|
97
|
+
updateUi: this.props.updateUi,
|
98
|
+
pageReady: this.props.pageReady,
|
99
|
+
error: this.props.error,
|
100
|
+
interactiveActionExecuting: this.props.interactiveActionExecuting,
|
101
|
+
interactiveActionEnter: this.props.interactiveActionEnter,
|
102
|
+
interactiveActionLeave: this.props.interactiveActionLeave,
|
103
|
+
viewerToolTipOpening: this.props.viewerToolTipOpening,
|
104
|
+
enableAccessibility: this.props.enableAccessibility,
|
105
|
+
searchMetadataOnDemand: this.props.searchMetadataOnDemand,
|
106
|
+
parametersAreaVisible: this.props.parametersAreaVisible,
|
107
|
+
documentMapVisible: this.props.documentMapVisible,
|
108
|
+
documentMapAreaPosition: this.props.documentMapAreaPosition,
|
109
|
+
parametersAreaPosition: this.props.parametersAreaPosition,
|
110
|
+
keepClientAlive: keepClientAlive
|
111
|
+
});
|
112
|
+
this.commands = this.viewerObject.commands;
|
113
|
+
}
|
114
|
+
}, {
|
115
|
+
key: "render",
|
116
|
+
value: function render() {
|
117
|
+
var _this2 = this;
|
118
|
+
|
119
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
120
|
+
id: this.state.reportViewerID,
|
121
|
+
style: _objectSpread({}, this.props.viewerContainerStyle),
|
122
|
+
ref: function ref(el) {
|
123
|
+
return _this2.el = el;
|
124
|
+
}
|
125
|
+
});
|
126
|
+
}
|
127
|
+
}, {
|
128
|
+
key: "refreshReport",
|
129
|
+
value: function refreshReport() {
|
130
|
+
return this.viewerObject.refreshReport();
|
131
|
+
}
|
132
|
+
}, {
|
133
|
+
key: "getReportSource",
|
134
|
+
value: function getReportSource() {
|
135
|
+
return this.viewerObject.reportSource();
|
136
|
+
}
|
137
|
+
}, {
|
138
|
+
key: "setReportSource",
|
139
|
+
value: function setReportSource(rs) {
|
140
|
+
return this.viewerObject.reportSource(rs);
|
141
|
+
}
|
142
|
+
}, {
|
143
|
+
key: "getViewMode",
|
144
|
+
value: function getViewMode() {
|
145
|
+
return this.viewerObject.viewMode();
|
146
|
+
}
|
147
|
+
}, {
|
148
|
+
key: "setViewMode",
|
149
|
+
value: function setViewMode(vm) {
|
150
|
+
return this.viewerObject.viewMode(vm);
|
151
|
+
}
|
152
|
+
}, {
|
153
|
+
key: "getScale",
|
154
|
+
value: function getScale() {
|
155
|
+
return this.viewerObject.scale();
|
156
|
+
}
|
157
|
+
}, {
|
158
|
+
key: "setScale",
|
159
|
+
value: function setScale(scale) {
|
160
|
+
return this.viewerObject.scale(scale);
|
161
|
+
}
|
162
|
+
}, {
|
163
|
+
key: "pageCount",
|
164
|
+
value: function pageCount() {
|
165
|
+
return this.viewerObject.pageCount();
|
166
|
+
}
|
167
|
+
}, {
|
168
|
+
key: "currentPage",
|
169
|
+
value: function currentPage() {
|
170
|
+
return this.viewerObject.currentPage();
|
171
|
+
}
|
172
|
+
}, {
|
173
|
+
key: "setAuthenticationToken",
|
174
|
+
value: function setAuthenticationToken(token) {
|
175
|
+
return this.viewerObject.authenticationToken(token);
|
176
|
+
}
|
177
|
+
}, {
|
178
|
+
key: "getAccessibilityKeyMap",
|
179
|
+
value: function getAccessibilityKeyMap() {
|
180
|
+
return this.viewerObject.accessibilityKeyMap();
|
181
|
+
}
|
182
|
+
}, {
|
183
|
+
key: "setAccessibilityKeyMap",
|
184
|
+
value: function setAccessibilityKeyMap(keyMap) {
|
185
|
+
return this.viewerObject.accessibilityKeyMap(keyMap);
|
186
|
+
}
|
187
|
+
}, {
|
188
|
+
key: "bind",
|
189
|
+
value: function bind(eventName, eventHandler) {
|
190
|
+
this.viewerObject.bind(eventName, eventHandler);
|
191
|
+
}
|
192
|
+
}, {
|
193
|
+
key: "unbind",
|
194
|
+
value: function unbind(eventName, eventHandler) {
|
195
|
+
this.viewerObject.unbind(eventName, eventHandler);
|
196
|
+
}
|
197
|
+
}, {
|
198
|
+
key: "unbindAll",
|
199
|
+
value: function unbindAll(eventName) {
|
200
|
+
this.viewerObject.unbind(eventName);
|
201
|
+
}
|
202
|
+
}, {
|
203
|
+
key: "getPageMode",
|
204
|
+
value: function getPageMode() {
|
205
|
+
return this.viewerObject.pageMode();
|
206
|
+
}
|
207
|
+
}, {
|
208
|
+
key: "setPageMode",
|
209
|
+
value: function setPageMode(psm) {
|
210
|
+
return this.viewerObject.pageMode(psm);
|
211
|
+
}
|
212
|
+
}, {
|
213
|
+
key: "clearReportSource",
|
214
|
+
value: function clearReportSource() {
|
215
|
+
return this.viewerObject.clearReportSource();
|
216
|
+
}
|
217
|
+
}]);
|
218
|
+
|
219
|
+
return TelerikReportViewer;
|
220
|
+
}(_react.default.Component);
|
221
|
+
|
222
|
+
exports.TelerikReportViewer = TelerikReportViewer;
|
223
|
+
var _default = TelerikReportViewer;
|
224
|
+
exports.default = _default;
|
@@ -0,0 +1,83 @@
|
|
1
|
+
export class ReportViewer {
|
2
|
+
constructor(element: Element, options: TelerikReportViewerOptions);
|
3
|
+
}
|
4
|
+
|
5
|
+
interface TelerikReportViewerOptions {
|
6
|
+
id?: string;
|
7
|
+
serviceUrl?: string;
|
8
|
+
reportServer?: ReportServerOptions;
|
9
|
+
trvTemplateUrl?: string;
|
10
|
+
reportSource?: ReportSourceOptions;
|
11
|
+
sendEmail?: SendEmailOptions;
|
12
|
+
scale?: number;
|
13
|
+
scaleMode?: string;
|
14
|
+
viewMode?: string;
|
15
|
+
pageMode?: string;
|
16
|
+
printMode?: string;
|
17
|
+
parametersAreaPosition?: string;
|
18
|
+
documentMapAreaPosition?: string;
|
19
|
+
persistSession?: boolean;
|
20
|
+
parameters?: ParametersOptions;
|
21
|
+
parameterEditors?: ParameterEditor[];
|
22
|
+
authenticationToken?: string;
|
23
|
+
enableAccessibility?: boolean;
|
24
|
+
parametersAreaVisible?: boolean;
|
25
|
+
documentMapVisible?: boolean;
|
26
|
+
searchMetadataOnDemand?: boolean;
|
27
|
+
initialPageAreaImageUrl?: string;
|
28
|
+
selector?: string;
|
29
|
+
disabledButtonClass?: string;
|
30
|
+
checkedButtonClass?: string;
|
31
|
+
ready?: Function;
|
32
|
+
exportBegin?: Function;
|
33
|
+
exportEnd?: Function;
|
34
|
+
printBegin?: Function;
|
35
|
+
printEnd?: Function;
|
36
|
+
sendEmailBegin?: Function;
|
37
|
+
sendEmailEnd?: Function;
|
38
|
+
renderingBegin?: Function;
|
39
|
+
renderingEnd?: Function;
|
40
|
+
updateUi?: Function;
|
41
|
+
pageReady?: Function;
|
42
|
+
error?: Function;
|
43
|
+
viewerToolTipOpening?: Function;
|
44
|
+
interactiveActionExecuting?: Function;
|
45
|
+
interactiveActionEnter?: Function;
|
46
|
+
interactiveActionLeave?: Function;
|
47
|
+
keepClientAlive?: boolean;
|
48
|
+
}
|
49
|
+
|
50
|
+
interface ReportServerOptions {
|
51
|
+
url?: string;
|
52
|
+
username?: string;
|
53
|
+
password?: string;
|
54
|
+
}
|
55
|
+
|
56
|
+
interface ReportSourceOptions {
|
57
|
+
report?: string;
|
58
|
+
parameters?: any;
|
59
|
+
}
|
60
|
+
|
61
|
+
interface SendEmailOptions {
|
62
|
+
enabled?: boolean;
|
63
|
+
from?: string;
|
64
|
+
to?: string;
|
65
|
+
cc?: string;
|
66
|
+
subject?: string;
|
67
|
+
body?: string;
|
68
|
+
format?: string;
|
69
|
+
}
|
70
|
+
|
71
|
+
interface ParametersOptions {
|
72
|
+
editors?: EditorsOptions;
|
73
|
+
}
|
74
|
+
|
75
|
+
interface EditorsOptions {
|
76
|
+
singleSelect?: string;
|
77
|
+
multiSelect?: string;
|
78
|
+
}
|
79
|
+
|
80
|
+
interface ParameterEditor {
|
81
|
+
match?: Function;
|
82
|
+
createEditor?: Function;
|
83
|
+
}
|