@progress/telerik-react-report-viewer 30.26.615 → 31.26.812

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.
@@ -4,8 +4,8 @@
4
4
  <title>Telerik HTML5 Report Viewer Templates</title>
5
5
 
6
6
  <!--Telerik served resources. For more information see: http://docs.telerik.com/reporting/html5-report-viewer-styling-and-appearance -->
7
- <link href="{service}resources/font/fonticons-20.1.26.615.css/" rel="stylesheet" />
8
- <link href="{service}resources/styles/telerikReportViewer-20.1.26.615.css/" rel="stylesheet" />
7
+ <link href="{service}resources/font/fonticons-20.2.26.812.css/" rel="stylesheet" />
8
+ <link href="{service}resources/styles/telerikReportViewer-20.2.26.812.css/" rel="stylesheet" />
9
9
 
10
10
  </head>
11
11
  <body>
@@ -216,7 +216,7 @@
216
216
  </div>
217
217
  <div class="k-notification k-hidden trv-notification">
218
218
  <div class="k-notification-wrap">
219
- <span class="k-icon k-i-warning"></span>
219
+ <span class="k-icon k-i-warning-circle"></span>
220
220
  <div class="k-notification-content trv-error-message"></div>
221
221
  </div>
222
222
  </div>
@@ -387,4 +387,4 @@
387
387
 
388
388
  </body>
389
389
  </html>
390
- <!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM 1200a569ee8dbb619f60fe5f12355d22 -->
390
+ <!-- DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM edd0d7378e07f8bc1422b7cd7d2d9e42 -->
@@ -1,3 +1,8 @@
1
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
6
  import '../dependencies/initExtDeps';
2
7
  import React from 'react';
3
8
  import { ReportViewer } from '../dependencies/telerikReportViewer.js';
@@ -335,9 +340,11 @@ import { ReportViewer } from '../dependencies/telerikReportViewer.js';
335
340
  * @property {string} [serviceUrl] - Sets the address of the Report REST Service. Required if reportServer is not provided.
336
341
  * @example <propertyName>serviceUrl</propertyName>
337
342
  * // Set the service URL for the report viewer
343
+ * // Note: The viewer container must have a resolved height to render (for example, height or absolute positioning with top and bottom).
338
344
  * <TelerikReportViewer
339
345
  * serviceUrl="api/reports/"
340
346
  * reportSource={{ report: "Dashboard.trdp" }}
347
+ * viewerContainerStyle={{ width: '100%', height: '600px' }}
341
348
  * />
342
349
  *
343
350
  * @property {ReportServer} [reportServer] - Sets the configuration details for Telerik Report Server. Required if serviceUrl is not provided.
@@ -376,9 +383,11 @@ import { ReportViewer } from '../dependencies/telerikReportViewer.js';
376
383
  * @property {ReportSource} [reportSource] - Sets the report and initial report parameter values for the viewer to be displayed.
377
384
  * @example <propertyName>reportSource</propertyName>
378
385
  * // Basic report source
386
+ * // Note: The viewer container must have a resolved height to render (for example, height or absolute positioning with top and bottom).
379
387
  * <TelerikReportViewer
380
388
  * serviceUrl="api/reports/"
381
389
  * reportSource={{ report: "Dashboard.trdp" }}
390
+ * viewerContainerStyle={{ width: '100%', height: '600px' }}
382
391
  * />
383
392
  *
384
393
  * @example
@@ -511,6 +520,15 @@ import { ReportViewer } from '../dependencies/telerikReportViewer.js';
511
520
  * authenticationToken="YOUR_AUTH_TOKEN"
512
521
  * />
513
522
  *
523
+ * @property {string} [nonce] - If provided, a nonce used for CSP compliance.
524
+ * @example <propertyName>nonce</propertyName>
525
+ * // Set a nonce value for CSP compliance
526
+ * <TelerikReportViewer
527
+ * serviceUrl="api/reports/"
528
+ * reportSource={{ report: "Dashboard.trdp" }}
529
+ * nonce="NUMBER_USED_ONLY_ONCE"
530
+ * />
531
+ *
514
532
  * @property {string} [printMode] - Specifies how the viewer should print reports. Available values: "AUTO_SELECT" (automatically decide based on browser), "FORCE_PDF_FILE" (download as PDF file), "FORCE_PDF_PLUGIN" (use PDF plug-in). Default value is "AUTO_SELECT".
515
533
  * @example <propertyName>printMode</propertyName>
516
534
  * // Force PDF file download for printing
@@ -899,6 +917,7 @@ export class TelerikReportViewer extends React.Component {
899
917
  persistSession: this.props.persistSession,
900
918
  parameterEditors: this.props.parameterEditors,
901
919
  authenticationToken: this.props.authenticationToken,
920
+ nonce: this.props.nonce,
902
921
  ready: this.props.ready,
903
922
  printMode: this.props.printMode,
904
923
  selector: this.props.selector,
@@ -937,9 +956,7 @@ export class TelerikReportViewer extends React.Component {
937
956
  render() {
938
957
  return /*#__PURE__*/React.createElement("div", {
939
958
  id: this.state.reportViewerID,
940
- style: {
941
- ...this.props.viewerContainerStyle
942
- },
959
+ style: _objectSpread({}, this.props.viewerContainerStyle),
943
960
  ref: el => this.el = el
944
961
  });
945
962
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/telerik-react-report-viewer",
3
3
  "description": "Progress® Telerik® Report Viewer for React",
4
- "version": "30.26.615",
4
+ "version": "31.26.812",
5
5
  "author": "Progress",
6
6
  "license": "See LICENSE.md",
7
7
  "homepage": "https://www.telerik.com/reporting",
@@ -24,13 +24,6 @@
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
- "scripts": {
28
- "start": "react-scripts start",
29
- "prebuild": "rimraf dist && node ./scripts/prebuild.js",
30
- "build": "gulp build-package",
31
- "test": "react-scripts test --watchAll=false --json --passWithNoTests",
32
- "eject": "react-scripts eject"
33
- },
34
27
  "eslintConfig": {
35
28
  "extends": [
36
29
  "react-app",
@@ -58,6 +51,13 @@
58
51
  "react-dom": ">=16.8.6"
59
52
  },
60
53
  "dependencies": {
61
- "@progress/telerik-jquery-report-viewer": "30.26.615"
54
+ "@progress/telerik-jquery-report-viewer": "31.26.812"
55
+ },
56
+ "scripts": {
57
+ "start": "react-scripts start",
58
+ "prebuild": "rimraf dist && node ./scripts/prebuild.js",
59
+ "build": "gulp build-package",
60
+ "test": "react-scripts test --watchAll=false --json --passWithNoTests",
61
+ "eject": "react-scripts eject"
62
62
  }
63
- }
63
+ }