@progress/telerik-react-report-viewer 15.22.225 → 16.22.804

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
@@ -18,7 +18,7 @@ While the component is not native (the theming mechanism uses Kendo UI for jQuer
18
18
  and has a dependency to jQuery itself), it brings reporting value to your React applications
19
19
  in no time.
20
20
 
21
- This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 16.0.22.225
21
+ This version of the React Report Viewer requires Telerik Report Server or Telerik Reporting REST Service 16.1.22.804
22
22
 
23
23
  ## License
24
24
 
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
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
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
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
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  var TelerikReportViewer = /*#__PURE__*/function (_React$Component) {
45
45
  _inherits(TelerikReportViewer, _React$Component);
@@ -1,11 +1,11 @@
1
1
 
2
2
 
3
3
  /*
4
- * TelerikReporting v16.0.22.225 (http://www.telerik.com/products/reporting.aspx)
4
+ * TelerikReporting v16.1.22.804 (https://www.telerik.com/products/reporting.aspx)
5
5
  * Copyright 2022 Progress Software EAD. All rights reserved.
6
6
  *
7
7
  * Telerik Reporting commercial licenses may be obtained at
8
- * http://www.telerik.com/purchase/license-agreement/reporting.aspx
8
+ * https://www.telerik.com/purchase/license-agreement/reporting.aspx
9
9
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
10
10
  */
11
11
  var jQuery = require("jquery");
@@ -6959,6 +6959,9 @@ var telerikReportViewer = {};
6959
6959
  controller.reportLoadComplete(onReportLoadComplete);
6960
6960
  controller.cssLoaded(onCssLoaded);
6961
6961
  }
6962
+ function dispose() {
6963
+ window.removeEventListener("resize", onWindowResize);
6964
+ }
6962
6965
  function getPerspective() {
6963
6966
  var windowWidthInEm = $(window).width() / parseFloat($("body").css("font-size")), windowMinWidth = 40.5;
6964
6967
  return smallMenu && windowWidthInEm <= windowMinWidth ? "small" : "large";
@@ -6995,7 +6998,8 @@ var telerikReportViewer = {};
6995
6998
  }
6996
6999
  init();
6997
7000
  return {
6998
- attach: attach
7001
+ attach: attach,
7002
+ dispose: dispose
6999
7003
  };
7000
7004
  };
7001
7005
  })(telerikReportViewer, window, document);
@@ -8020,13 +8024,13 @@ var telerikReportViewer = {};
8020
8024
  reportServerUrlSVCApiUrl = utils.rtrim(options.reportServer.url, "\\/");
8021
8025
  svcApiUrl = reportServerUrlSVCApiUrl + "/api/reports";
8022
8026
  }
8023
- var $placeholder = $(dom), templates = {}, scripts = {}, persistanceKey = options.id || "#" + $placeholder.attr("id"), accessibility, settings = {}, client = {}, controller = {}, history = {}, commands = {}, viewer = {}, serviceClientOptions = {}, reportServerUrl = "";
8027
+ var $placeholder = $(dom), templates = {}, scripts = {}, persistanceKey = options.id || "#" + $placeholder.attr("id"), accessibility, settings = {}, client = {}, controller = {}, perspectiveManager = {}, history = {}, commands = {}, viewer = {}, serviceClientOptions = {}, reportServerUrl = "";
8024
8028
  options.viewerSelector = "reportViewer-" + utils.generateGuidString();
8025
8029
  $placeholder.attr("data-selector", options.viewerSelector);
8026
8030
  if (!validateOptions(options)) {
8027
8031
  return;
8028
8032
  }
8029
- var version = "16.0.22.225";
8033
+ var version = "16.1.22.804";
8030
8034
  options = utils.extend({}, getDefaultOptions(svcApiUrl, version), options);
8031
8035
  settings = new ReportViewerSettings(persistanceKey, options.persistSession ? window.sessionStorage : new MemStorage(), {
8032
8036
  scale: options.scale,
@@ -8160,6 +8164,9 @@ var telerikReportViewer = {};
8160
8164
  commands: commands,
8161
8165
  dispose: function() {
8162
8166
  controller.dispose();
8167
+ if (perspectiveManager) {
8168
+ perspectiveManager.dispose();
8169
+ }
8163
8170
  }
8164
8171
  };
8165
8172
  function validateOptions(options) {
@@ -8247,7 +8254,8 @@ var telerikReportViewer = {};
8247
8254
  commands: commands,
8248
8255
  templates: templates
8249
8256
  }, options);
8250
- new trv.PerspectiveManager(dom, controller).attach();
8257
+ perspectiveManager = new trv.PerspectiveManager(dom, controller);
8258
+ perspectiveManager.attach();
8251
8259
  initSplitter();
8252
8260
  attachEvents();
8253
8261
  attachEventHandlers();
@@ -8526,4 +8534,4 @@ module.exports = {
8526
8534
  ReportViewer: telerikReportViewer.ReportViewer
8527
8535
  };
8528
8536
 
8529
- /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM C79ACF5542545A0AF69CA9F61D0E3393 */
8537
+ /* DO NOT MODIFY OR DELETE THIS LINE! UPGRADE WIZARD CHECKSUM BC4451C7BA35085AC326B244BE886CBE */