devexpress-dashboard-react 22.1.4 → 22.1.5

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.
@@ -1,13 +1,14 @@
1
- import dxDashboardControl, { IOptions } from "devexpress-dashboard/integration/index";
1
+ /// <reference types="react" />
2
+ import dxDashboardControl, { Properties } from "devexpress-dashboard/integration/index";
2
3
  import { Component as BaseComponent, IHtmlOptions } from "devextreme-react/core/component";
3
4
  import NestedOption from "devextreme-react/core/nested-option";
4
- interface IDashboardControlOptions extends IOptions, IHtmlOptions {
5
+ declare type IDashboardControlOptions = React.PropsWithChildren<Properties & IHtmlOptions & {
5
6
  defaultDashboardId?: any;
6
7
  defaultWorkingMode?: any;
7
8
  onDashboardIdChange?: (value: any) => void;
8
9
  onWorkingModeChange?: (value: any) => void;
9
- }
10
- declare class DashboardControl extends BaseComponent<IDashboardControlOptions> {
10
+ }>;
11
+ declare class DashboardControl extends BaseComponent<React.PropsWithChildren<IDashboardControlOptions>> {
11
12
  get instance(): dxDashboardControl;
12
13
  protected _WidgetClass: typeof dxDashboardControl;
13
14
  protected subscribableOptions: string[];
@@ -31,34 +32,34 @@ declare class DashboardControl extends BaseComponent<IDashboardControlOptions> {
31
32
  };
32
33
  };
33
34
  }
34
- interface IAjaxRemoteServiceProps {
35
+ declare type IAjaxRemoteServiceProps = React.PropsWithChildren<{
35
36
  beforeSend?: any;
36
37
  complete?: any;
37
38
  headers?: any;
38
- }
39
+ }>;
39
40
  declare class AjaxRemoteService extends NestedOption<IAjaxRemoteServiceProps> {
40
41
  static OptionName: string;
41
42
  }
42
- interface IDashboardExportProps {
43
+ declare type IDashboardExportProps = React.PropsWithChildren<{
43
44
  allowExportDashboard?: any;
44
45
  allowExportDashboardItems?: any;
45
46
  onExportDialogHidden?: any;
46
47
  onExportDialogShowing?: any;
47
48
  onExportDialogShown?: any;
48
- }
49
+ }>;
49
50
  declare class DashboardExport extends NestedOption<IDashboardExportProps> {
50
51
  static OptionName: string;
51
52
  }
52
- interface IDashboardParameterDialogProps {
53
+ declare type IDashboardParameterDialogProps = React.PropsWithChildren<{
53
54
  onDynamicLookUpValuesLoaded?: any;
54
55
  onHidden?: any;
55
56
  onShowing?: any;
56
57
  onShown?: any;
57
- }
58
+ }>;
58
59
  declare class DashboardParameterDialog extends NestedOption<IDashboardParameterDialogProps> {
59
60
  static OptionName: string;
60
61
  }
61
- interface IDataInspectorProps {
62
+ declare type IDataInspectorProps = React.PropsWithChildren<{
62
63
  allowInspectAggregatedData?: any;
63
64
  allowInspectRawData?: any;
64
65
  onDialogHidden?: any;
@@ -66,23 +67,23 @@ interface IDataInspectorProps {
66
67
  onDialogShown?: any;
67
68
  onGridContentReady?: any;
68
69
  onGridInitialized?: any;
69
- }
70
+ }>;
70
71
  declare class DataInspector extends NestedOption<IDataInspectorProps> {
71
72
  static OptionName: string;
72
73
  }
73
- interface IDataRequestOptionsProps {
74
+ declare type IDataRequestOptionsProps = React.PropsWithChildren<{
74
75
  itemDataLoadingMode?: any;
75
76
  itemDataRequestMode?: any;
76
- }
77
+ }>;
77
78
  declare class DataRequestOptions extends NestedOption<IDataRequestOptionsProps> {
78
79
  static OptionName: string;
79
80
  }
80
- interface IDataSourceWizardProps {
81
+ declare type IDataSourceWizardProps = React.PropsWithChildren<{
81
82
  allowCreateNewJsonConnection?: any;
82
83
  enableCustomSql?: any;
83
84
  onCustomizeDataSourceWizard?: any;
84
85
  wizardSettings?: any;
85
- }
86
+ }>;
86
87
  declare class DataSourceWizard extends NestedOption<IDataSourceWizardProps> {
87
88
  static OptionName: string;
88
89
  static ExpectedChildren: {
@@ -92,13 +93,13 @@ declare class DataSourceWizard extends NestedOption<IDataSourceWizardProps> {
92
93
  };
93
94
  };
94
95
  }
95
- interface IDesignerToolbarProps {
96
+ declare type IDesignerToolbarProps = React.PropsWithChildren<{
96
97
  onPreparing?: any;
97
- }
98
+ }>;
98
99
  declare class DesignerToolbar extends NestedOption<IDesignerToolbarProps> {
99
100
  static OptionName: string;
100
101
  }
101
- interface IExtensionsProps {
102
+ declare type IExtensionsProps = React.PropsWithChildren<{
102
103
  dashboardExport?: object | {
103
104
  allowExportDashboard?: any;
104
105
  allowExportDashboardItems?: any;
@@ -155,7 +156,7 @@ interface IExtensionsProps {
155
156
  onItemWidgetUpdating?: any;
156
157
  onSelectedTabPageChanged?: any;
157
158
  };
158
- }
159
+ }>;
159
160
  declare class Extensions extends NestedOption<IExtensionsProps> {
160
161
  static OptionName: string;
161
162
  static ExpectedChildren: {
@@ -197,25 +198,25 @@ declare class Extensions extends NestedOption<IExtensionsProps> {
197
198
  };
198
199
  };
199
200
  }
200
- interface IItemBindingPanelProps {
201
+ declare type IItemBindingPanelProps = React.PropsWithChildren<{
201
202
  onCustomizeDataItemContainerSections?: any;
202
- }
203
+ }>;
203
204
  declare class ItemBindingPanel extends NestedOption<IItemBindingPanelProps> {
204
205
  static OptionName: string;
205
206
  }
206
- interface IItemOptionsPanelProps {
207
+ declare type IItemOptionsPanelProps = React.PropsWithChildren<{
207
208
  onCustomizeSections?: any;
208
- }
209
+ }>;
209
210
  declare class ItemOptionsPanel extends NestedOption<IItemOptionsPanelProps> {
210
211
  static OptionName: string;
211
212
  }
212
- interface IMobileLayoutProps {
213
+ declare type IMobileLayoutProps = React.PropsWithChildren<{
213
214
  mobileLayoutEnabled?: any;
214
- }
215
+ }>;
215
216
  declare class MobileLayout extends NestedOption<IMobileLayoutProps> {
216
217
  static OptionName: string;
217
218
  }
218
- interface IViewerApiProps {
219
+ declare type IViewerApiProps = React.PropsWithChildren<{
219
220
  onDashboardTitleToolbarUpdated?: any;
220
221
  onItemActionAvailabilityChanged?: any;
221
222
  onItemCaptionToolbarUpdated?: any;
@@ -230,16 +231,16 @@ interface IViewerApiProps {
230
231
  onItemWidgetUpdated?: any;
231
232
  onItemWidgetUpdating?: any;
232
233
  onSelectedTabPageChanged?: any;
233
- }
234
+ }>;
234
235
  declare class ViewerApi extends NestedOption<IViewerApiProps> {
235
236
  static OptionName: string;
236
237
  }
237
- interface IWizardSettingsProps {
238
+ declare type IWizardSettingsProps = React.PropsWithChildren<{
238
239
  enableFederationDataSource?: any;
239
240
  enableJsonDataSource?: any;
240
241
  enableOlapDataSource?: any;
241
242
  enableSqlDataSource?: any;
242
- }
243
+ }>;
243
244
  declare class WizardSettings extends NestedOption<IWizardSettingsProps> {
244
245
  static OptionName: string;
245
246
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "devexpress-dashboard-react",
3
3
  "author": "Developer Express Inc.",
4
- "version": "22.1.4",
4
+ "version": "22.1.5",
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": "22.1.4",
21
- "devextreme": "22.1.4",
22
- "devextreme-react": "22.1.4",
23
- "@devexpress/analytics-core": "22.1.4"
20
+ "devexpress-dashboard": "22.1.5",
21
+ "devextreme": "22.1.5",
22
+ "devextreme-react": "22.1.5",
23
+ "@devexpress/analytics-core": "22.1.5"
24
24
  }
25
25
  }