devexpress-dashboard-react 20.2.3 → 20.2.4

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.
@@ -2,13 +2,17 @@ import dxDashboardControl, { IOptions } from "devexpress-dashboard/integration/i
2
2
  import { Component as BaseComponent, IHtmlOptions } from "devextreme-react/core/component";
3
3
  import NestedOption from "devextreme-react/core/nested-option";
4
4
  interface IDashboardControlOptions extends IOptions, IHtmlOptions {
5
+ defaultDashboardId?: any;
5
6
  defaultWorkingMode?: any;
7
+ onDashboardIdChange?: (value: any) => void;
6
8
  onWorkingModeChange?: (value: any) => void;
7
9
  }
8
10
  declare class DashboardControl extends BaseComponent<IDashboardControlOptions> {
9
11
  readonly instance: dxDashboardControl;
10
12
  protected _WidgetClass: typeof dxDashboardControl;
13
+ protected subscribableOptions: string[];
11
14
  protected _defaults: {
15
+ defaultDashboardId: string;
12
16
  defaultWorkingMode: string;
13
17
  };
14
18
  protected _expectedChildren: {
@@ -8,7 +8,9 @@ class DashboardControl extends component_1.Component {
8
8
  constructor() {
9
9
  super(...arguments);
10
10
  this._WidgetClass = index_1.default;
11
+ this.subscribableOptions = ["dashboardId", "workingMode"];
11
12
  this._defaults = {
13
+ defaultDashboardId: "dashboardId",
12
14
  defaultWorkingMode: "workingMode"
13
15
  };
14
16
  this._expectedChildren = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "devexpress-dashboard-react",
3
3
  "author": "Developer Express Inc.",
4
- "version": "20.2.3",
4
+ "version": "20.2.4",
5
5
  "description": "A component that integrates DevExpress Web Dashboard in a React application",
6
6
  "homepage": "https://www.devexpress.com/products/net/dashboard/",
7
7
  "bugs": "https://www.devexpress.com/support/",
@@ -17,9 +17,9 @@
17
17
  "prop-types": "^15.6.1"
18
18
  },
19
19
  "peerDependencies": {
20
- "devexpress-dashboard": "20.2.3",
21
- "devextreme": "20.2.3",
22
- "devextreme-react": "20.2.3",
23
- "@devexpress/analytics-core": "20.2.3"
20
+ "devexpress-dashboard": "20.2.4",
21
+ "devextreme": "20.2.4",
22
+ "devextreme-react": "20.2.4",
23
+ "@devexpress/analytics-core": "20.2.4"
24
24
  }
25
25
  }