@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.
package/README.md CHANGED
@@ -23,7 +23,7 @@ While the component is not native (the theming mechanism uses Kendo UI for jQuer
23
23
  and has a dependency to jQuery itself), it brings reporting value to your React applications
24
24
  in no time.
25
25
 
26
- This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 20.1.26.615
26
+ This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service _REPORTING_VERSION_PLACEHOLDER_
27
27
 
28
28
  ## License
29
29
 
@@ -8,6 +8,11 @@ require("../dependencies/initExtDeps");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _telerikReportViewer = require("../dependencies/telerikReportViewer.js");
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ 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; }
12
+ 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; }
13
+ 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; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
15
+ 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); }
11
16
  /**
12
17
  * Defines options for configuring report parameter editors in the React Report Viewer.
13
18
  *
@@ -341,9 +346,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
341
346
  * @property {string} [serviceUrl] - Sets the address of the Report REST Service. Required if reportServer is not provided.
342
347
  * @example <propertyName>serviceUrl</propertyName>
343
348
  * // Set the service URL for the report viewer
349
+ * // Note: The viewer container must have a resolved height to render (for example, height or absolute positioning with top and bottom).
344
350
  * <TelerikReportViewer
345
351
  * serviceUrl="api/reports/"
346
352
  * reportSource={{ report: "Dashboard.trdp" }}
353
+ * viewerContainerStyle={{ width: '100%', height: '600px' }}
347
354
  * />
348
355
  *
349
356
  * @property {ReportServer} [reportServer] - Sets the configuration details for Telerik Report Server. Required if serviceUrl is not provided.
@@ -382,9 +389,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
382
389
  * @property {ReportSource} [reportSource] - Sets the report and initial report parameter values for the viewer to be displayed.
383
390
  * @example <propertyName>reportSource</propertyName>
384
391
  * // Basic report source
392
+ * // Note: The viewer container must have a resolved height to render (for example, height or absolute positioning with top and bottom).
385
393
  * <TelerikReportViewer
386
394
  * serviceUrl="api/reports/"
387
395
  * reportSource={{ report: "Dashboard.trdp" }}
396
+ * viewerContainerStyle={{ width: '100%', height: '600px' }}
388
397
  * />
389
398
  *
390
399
  * @example
@@ -517,6 +526,15 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
517
526
  * authenticationToken="YOUR_AUTH_TOKEN"
518
527
  * />
519
528
  *
529
+ * @property {string} [nonce] - If provided, a nonce used for CSP compliance.
530
+ * @example <propertyName>nonce</propertyName>
531
+ * // Set a nonce value for CSP compliance
532
+ * <TelerikReportViewer
533
+ * serviceUrl="api/reports/"
534
+ * reportSource={{ report: "Dashboard.trdp" }}
535
+ * nonce="NUMBER_USED_ONLY_ONCE"
536
+ * />
537
+ *
520
538
  * @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".
521
539
  * @example <propertyName>printMode</propertyName>
522
540
  * // Force PDF file download for printing
@@ -905,6 +923,7 @@ class TelerikReportViewer extends _react.default.Component {
905
923
  persistSession: this.props.persistSession,
906
924
  parameterEditors: this.props.parameterEditors,
907
925
  authenticationToken: this.props.authenticationToken,
926
+ nonce: this.props.nonce,
908
927
  ready: this.props.ready,
909
928
  printMode: this.props.printMode,
910
929
  selector: this.props.selector,
@@ -943,9 +962,7 @@ class TelerikReportViewer extends _react.default.Component {
943
962
  render() {
944
963
  return /*#__PURE__*/_react.default.createElement("div", {
945
964
  id: this.state.reportViewerID,
946
- style: {
947
- ...this.props.viewerContainerStyle
948
- },
965
+ style: _objectSpread({}, this.props.viewerContainerStyle),
949
966
  ref: el => this.el = el
950
967
  });
951
968
  }