devexpress-dashboard-react 20.2.2-alpha-20232-1710 → 20.2.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.
- package/dashboard-control.d.ts +194 -1
- package/dashboard-control.js +58 -1
- package/package.json +24 -24
package/dashboard-control.d.ts
CHANGED
|
@@ -2,12 +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;
|
|
8
|
+
onWorkingModeChange?: (value: any) => void;
|
|
6
9
|
}
|
|
7
10
|
declare class DashboardControl extends BaseComponent<IDashboardControlOptions> {
|
|
8
11
|
readonly instance: dxDashboardControl;
|
|
9
12
|
protected _WidgetClass: typeof dxDashboardControl;
|
|
13
|
+
protected subscribableOptions: string[];
|
|
10
14
|
protected _defaults: {
|
|
15
|
+
defaultDashboardId: string;
|
|
11
16
|
defaultWorkingMode: string;
|
|
12
17
|
};
|
|
13
18
|
protected _expectedChildren: {
|
|
@@ -19,6 +24,10 @@ declare class DashboardControl extends BaseComponent<IDashboardControlOptions> {
|
|
|
19
24
|
optionName: string;
|
|
20
25
|
isCollectionItem: boolean;
|
|
21
26
|
};
|
|
27
|
+
extensions: {
|
|
28
|
+
optionName: string;
|
|
29
|
+
isCollectionItem: boolean;
|
|
30
|
+
};
|
|
22
31
|
};
|
|
23
32
|
}
|
|
24
33
|
interface IAjaxRemoteServiceProps {
|
|
@@ -29,11 +38,195 @@ interface IAjaxRemoteServiceProps {
|
|
|
29
38
|
declare class AjaxRemoteService extends NestedOption<IAjaxRemoteServiceProps> {
|
|
30
39
|
static OptionName: string;
|
|
31
40
|
}
|
|
41
|
+
interface IDashboardExportProps {
|
|
42
|
+
allowExportDashboard?: any;
|
|
43
|
+
allowExportDashboardItems?: any;
|
|
44
|
+
onExportDialogHidden?: any;
|
|
45
|
+
onExportDialogShowing?: any;
|
|
46
|
+
onExportDialogShown?: any;
|
|
47
|
+
}
|
|
48
|
+
declare class DashboardExport extends NestedOption<IDashboardExportProps> {
|
|
49
|
+
static OptionName: string;
|
|
50
|
+
}
|
|
51
|
+
interface IDashboardParameterDialogProps {
|
|
52
|
+
onDynamicLookUpValuesLoaded?: any;
|
|
53
|
+
onHidden?: any;
|
|
54
|
+
onShowing?: any;
|
|
55
|
+
onShown?: any;
|
|
56
|
+
}
|
|
57
|
+
declare class DashboardParameterDialog extends NestedOption<IDashboardParameterDialogProps> {
|
|
58
|
+
static OptionName: string;
|
|
59
|
+
}
|
|
60
|
+
interface IDataInspectorProps {
|
|
61
|
+
allowInspectAggregatedData?: any;
|
|
62
|
+
allowInspectRawData?: any;
|
|
63
|
+
onDialogHidden?: any;
|
|
64
|
+
onDialogShowing?: any;
|
|
65
|
+
onDialogShown?: any;
|
|
66
|
+
onGridContentReady?: any;
|
|
67
|
+
onGridInitialized?: any;
|
|
68
|
+
}
|
|
69
|
+
declare class DataInspector extends NestedOption<IDataInspectorProps> {
|
|
70
|
+
static OptionName: string;
|
|
71
|
+
}
|
|
32
72
|
interface IDataRequestOptionsProps {
|
|
73
|
+
itemDataLoadingMode?: any;
|
|
33
74
|
itemDataRequestMode?: any;
|
|
34
75
|
}
|
|
35
76
|
declare class DataRequestOptions extends NestedOption<IDataRequestOptionsProps> {
|
|
36
77
|
static OptionName: string;
|
|
37
78
|
}
|
|
79
|
+
interface IDataSourceWizardProps {
|
|
80
|
+
allowCreateNewJsonConnection?: any;
|
|
81
|
+
enableCustomSql?: any;
|
|
82
|
+
onCustomizeDataSourceWizard?: any;
|
|
83
|
+
wizardSettings?: any;
|
|
84
|
+
}
|
|
85
|
+
declare class DataSourceWizard extends NestedOption<IDataSourceWizardProps> {
|
|
86
|
+
static OptionName: string;
|
|
87
|
+
static ExpectedChildren: {
|
|
88
|
+
wizardSettings: {
|
|
89
|
+
optionName: string;
|
|
90
|
+
isCollectionItem: boolean;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
interface IExtensionsProps {
|
|
95
|
+
dashboardExport?: {
|
|
96
|
+
allowExportDashboard?: any;
|
|
97
|
+
allowExportDashboardItems?: any;
|
|
98
|
+
onExportDialogHidden?: any;
|
|
99
|
+
onExportDialogShowing?: any;
|
|
100
|
+
onExportDialogShown?: any;
|
|
101
|
+
};
|
|
102
|
+
dashboardParameterDialog?: {
|
|
103
|
+
onDynamicLookUpValuesLoaded?: any;
|
|
104
|
+
onHidden?: any;
|
|
105
|
+
onShowing?: any;
|
|
106
|
+
onShown?: any;
|
|
107
|
+
};
|
|
108
|
+
dataInspector?: {
|
|
109
|
+
allowInspectAggregatedData?: any;
|
|
110
|
+
allowInspectRawData?: any;
|
|
111
|
+
onDialogHidden?: any;
|
|
112
|
+
onDialogShowing?: any;
|
|
113
|
+
onDialogShown?: any;
|
|
114
|
+
onGridContentReady?: any;
|
|
115
|
+
onGridInitialized?: any;
|
|
116
|
+
};
|
|
117
|
+
dataSourceWizard?: {
|
|
118
|
+
allowCreateNewJsonConnection?: any;
|
|
119
|
+
enableCustomSql?: any;
|
|
120
|
+
onCustomizeDataSourceWizard?: any;
|
|
121
|
+
wizardSettings?: any;
|
|
122
|
+
};
|
|
123
|
+
itemBindingPanel?: {
|
|
124
|
+
onCustomizeDataItemContainerSections?: any;
|
|
125
|
+
};
|
|
126
|
+
itemOptionsPanel?: {
|
|
127
|
+
onCustomizeSections?: any;
|
|
128
|
+
};
|
|
129
|
+
mobileLayout?: {
|
|
130
|
+
mobileLayoutEnabled?: any;
|
|
131
|
+
};
|
|
132
|
+
viewerApi?: {
|
|
133
|
+
onDashboardTitleToolbarUpdated?: any;
|
|
134
|
+
onItemActionAvailabilityChanged?: any;
|
|
135
|
+
onItemCaptionToolbarUpdated?: any;
|
|
136
|
+
onItemClick?: any;
|
|
137
|
+
onItemDrillDownStateChanged?: any;
|
|
138
|
+
onItemElementCustomColor?: any;
|
|
139
|
+
onItemMasterFilterStateChanged?: any;
|
|
140
|
+
onItemSelectionChanged?: any;
|
|
141
|
+
onItemVisualInteractivity?: any;
|
|
142
|
+
onItemWidgetCreated?: any;
|
|
143
|
+
onItemWidgetOptionsPrepared?: any;
|
|
144
|
+
onItemWidgetUpdated?: any;
|
|
145
|
+
onItemWidgetUpdating?: any;
|
|
146
|
+
onSelectedTabPageChanged?: any;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
declare class Extensions extends NestedOption<IExtensionsProps> {
|
|
150
|
+
static OptionName: string;
|
|
151
|
+
static ExpectedChildren: {
|
|
152
|
+
dashboardExport: {
|
|
153
|
+
optionName: string;
|
|
154
|
+
isCollectionItem: boolean;
|
|
155
|
+
};
|
|
156
|
+
dashboardParameterDialog: {
|
|
157
|
+
optionName: string;
|
|
158
|
+
isCollectionItem: boolean;
|
|
159
|
+
};
|
|
160
|
+
dataInspector: {
|
|
161
|
+
optionName: string;
|
|
162
|
+
isCollectionItem: boolean;
|
|
163
|
+
};
|
|
164
|
+
dataSourceWizard: {
|
|
165
|
+
optionName: string;
|
|
166
|
+
isCollectionItem: boolean;
|
|
167
|
+
};
|
|
168
|
+
itemBindingPanel: {
|
|
169
|
+
optionName: string;
|
|
170
|
+
isCollectionItem: boolean;
|
|
171
|
+
};
|
|
172
|
+
itemOptionsPanel: {
|
|
173
|
+
optionName: string;
|
|
174
|
+
isCollectionItem: boolean;
|
|
175
|
+
};
|
|
176
|
+
mobileLayout: {
|
|
177
|
+
optionName: string;
|
|
178
|
+
isCollectionItem: boolean;
|
|
179
|
+
};
|
|
180
|
+
viewerApi: {
|
|
181
|
+
optionName: string;
|
|
182
|
+
isCollectionItem: boolean;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
interface IItemBindingPanelProps {
|
|
187
|
+
onCustomizeDataItemContainerSections?: any;
|
|
188
|
+
}
|
|
189
|
+
declare class ItemBindingPanel extends NestedOption<IItemBindingPanelProps> {
|
|
190
|
+
static OptionName: string;
|
|
191
|
+
}
|
|
192
|
+
interface IItemOptionsPanelProps {
|
|
193
|
+
onCustomizeSections?: any;
|
|
194
|
+
}
|
|
195
|
+
declare class ItemOptionsPanel extends NestedOption<IItemOptionsPanelProps> {
|
|
196
|
+
static OptionName: string;
|
|
197
|
+
}
|
|
198
|
+
interface IMobileLayoutProps {
|
|
199
|
+
mobileLayoutEnabled?: any;
|
|
200
|
+
}
|
|
201
|
+
declare class MobileLayout extends NestedOption<IMobileLayoutProps> {
|
|
202
|
+
static OptionName: string;
|
|
203
|
+
}
|
|
204
|
+
interface IViewerApiProps {
|
|
205
|
+
onDashboardTitleToolbarUpdated?: any;
|
|
206
|
+
onItemActionAvailabilityChanged?: any;
|
|
207
|
+
onItemCaptionToolbarUpdated?: any;
|
|
208
|
+
onItemClick?: any;
|
|
209
|
+
onItemDrillDownStateChanged?: any;
|
|
210
|
+
onItemElementCustomColor?: any;
|
|
211
|
+
onItemMasterFilterStateChanged?: any;
|
|
212
|
+
onItemSelectionChanged?: any;
|
|
213
|
+
onItemVisualInteractivity?: any;
|
|
214
|
+
onItemWidgetCreated?: any;
|
|
215
|
+
onItemWidgetOptionsPrepared?: any;
|
|
216
|
+
onItemWidgetUpdated?: any;
|
|
217
|
+
onItemWidgetUpdating?: any;
|
|
218
|
+
onSelectedTabPageChanged?: any;
|
|
219
|
+
}
|
|
220
|
+
declare class ViewerApi extends NestedOption<IViewerApiProps> {
|
|
221
|
+
static OptionName: string;
|
|
222
|
+
}
|
|
223
|
+
interface IWizardSettingsProps {
|
|
224
|
+
enableJsonDataSource?: any;
|
|
225
|
+
enableOlapDataSource?: any;
|
|
226
|
+
enableSqlDataSource?: any;
|
|
227
|
+
}
|
|
228
|
+
declare class WizardSettings extends NestedOption<IWizardSettingsProps> {
|
|
229
|
+
static OptionName: string;
|
|
230
|
+
}
|
|
38
231
|
export default DashboardControl;
|
|
39
|
-
export { DashboardControl, IDashboardControlOptions, AjaxRemoteService, IAjaxRemoteServiceProps, DataRequestOptions, IDataRequestOptionsProps };
|
|
232
|
+
export { DashboardControl, IDashboardControlOptions, AjaxRemoteService, IAjaxRemoteServiceProps, DashboardExport, IDashboardExportProps, DashboardParameterDialog, IDashboardParameterDialogProps, DataInspector, IDataInspectorProps, DataRequestOptions, IDataRequestOptionsProps, DataSourceWizard, IDataSourceWizardProps, Extensions, IExtensionsProps, ItemBindingPanel, IItemBindingPanelProps, ItemOptionsPanel, IItemOptionsPanelProps, MobileLayout, IMobileLayoutProps, ViewerApi, IViewerApiProps, WizardSettings, IWizardSettingsProps };
|
package/dashboard-control.js
CHANGED
|
@@ -8,12 +8,15 @@ 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 = {
|
|
15
17
|
ajaxRemoteService: { optionName: "ajaxRemoteService", isCollectionItem: false },
|
|
16
|
-
dataRequestOptions: { optionName: "dataRequestOptions", isCollectionItem: false }
|
|
18
|
+
dataRequestOptions: { optionName: "dataRequestOptions", isCollectionItem: false },
|
|
19
|
+
extensions: { optionName: "extensions", isCollectionItem: false }
|
|
17
20
|
};
|
|
18
21
|
}
|
|
19
22
|
get instance() {
|
|
@@ -28,6 +31,7 @@ DashboardControl.propTypes = {
|
|
|
28
31
|
dataRequestOptions: PropTypes.object,
|
|
29
32
|
encodeHtml: PropTypes.bool,
|
|
30
33
|
endpoint: PropTypes.string,
|
|
34
|
+
extensions: PropTypes.object,
|
|
31
35
|
initialDashboardId: PropTypes.string,
|
|
32
36
|
initialDashboardState: PropTypes.string,
|
|
33
37
|
limitVisibleDataMode: PropTypes.string,
|
|
@@ -51,8 +55,61 @@ class AjaxRemoteService extends nested_option_1.default {
|
|
|
51
55
|
}
|
|
52
56
|
AjaxRemoteService.OptionName = "ajaxRemoteService";
|
|
53
57
|
exports.AjaxRemoteService = AjaxRemoteService;
|
|
58
|
+
class DashboardExport extends nested_option_1.default {
|
|
59
|
+
}
|
|
60
|
+
DashboardExport.OptionName = "dashboardExport";
|
|
61
|
+
exports.DashboardExport = DashboardExport;
|
|
62
|
+
class DashboardParameterDialog extends nested_option_1.default {
|
|
63
|
+
}
|
|
64
|
+
DashboardParameterDialog.OptionName = "dashboardParameterDialog";
|
|
65
|
+
exports.DashboardParameterDialog = DashboardParameterDialog;
|
|
66
|
+
class DataInspector extends nested_option_1.default {
|
|
67
|
+
}
|
|
68
|
+
DataInspector.OptionName = "dataInspector";
|
|
69
|
+
exports.DataInspector = DataInspector;
|
|
54
70
|
class DataRequestOptions extends nested_option_1.default {
|
|
55
71
|
}
|
|
56
72
|
DataRequestOptions.OptionName = "dataRequestOptions";
|
|
57
73
|
exports.DataRequestOptions = DataRequestOptions;
|
|
74
|
+
class DataSourceWizard extends nested_option_1.default {
|
|
75
|
+
}
|
|
76
|
+
DataSourceWizard.OptionName = "dataSourceWizard";
|
|
77
|
+
DataSourceWizard.ExpectedChildren = {
|
|
78
|
+
wizardSettings: { optionName: "wizardSettings", isCollectionItem: false }
|
|
79
|
+
};
|
|
80
|
+
exports.DataSourceWizard = DataSourceWizard;
|
|
81
|
+
class Extensions extends nested_option_1.default {
|
|
82
|
+
}
|
|
83
|
+
Extensions.OptionName = "extensions";
|
|
84
|
+
Extensions.ExpectedChildren = {
|
|
85
|
+
dashboardExport: { optionName: "dashboardExport", isCollectionItem: false },
|
|
86
|
+
dashboardParameterDialog: { optionName: "dashboardParameterDialog", isCollectionItem: false },
|
|
87
|
+
dataInspector: { optionName: "dataInspector", isCollectionItem: false },
|
|
88
|
+
dataSourceWizard: { optionName: "dataSourceWizard", isCollectionItem: false },
|
|
89
|
+
itemBindingPanel: { optionName: "itemBindingPanel", isCollectionItem: false },
|
|
90
|
+
itemOptionsPanel: { optionName: "itemOptionsPanel", isCollectionItem: false },
|
|
91
|
+
mobileLayout: { optionName: "mobileLayout", isCollectionItem: false },
|
|
92
|
+
viewerApi: { optionName: "viewerApi", isCollectionItem: false }
|
|
93
|
+
};
|
|
94
|
+
exports.Extensions = Extensions;
|
|
95
|
+
class ItemBindingPanel extends nested_option_1.default {
|
|
96
|
+
}
|
|
97
|
+
ItemBindingPanel.OptionName = "itemBindingPanel";
|
|
98
|
+
exports.ItemBindingPanel = ItemBindingPanel;
|
|
99
|
+
class ItemOptionsPanel extends nested_option_1.default {
|
|
100
|
+
}
|
|
101
|
+
ItemOptionsPanel.OptionName = "itemOptionsPanel";
|
|
102
|
+
exports.ItemOptionsPanel = ItemOptionsPanel;
|
|
103
|
+
class MobileLayout extends nested_option_1.default {
|
|
104
|
+
}
|
|
105
|
+
MobileLayout.OptionName = "mobileLayout";
|
|
106
|
+
exports.MobileLayout = MobileLayout;
|
|
107
|
+
class ViewerApi extends nested_option_1.default {
|
|
108
|
+
}
|
|
109
|
+
ViewerApi.OptionName = "viewerApi";
|
|
110
|
+
exports.ViewerApi = ViewerApi;
|
|
111
|
+
class WizardSettings extends nested_option_1.default {
|
|
112
|
+
}
|
|
113
|
+
WizardSettings.OptionName = "wizardSettings";
|
|
114
|
+
exports.WizardSettings = WizardSettings;
|
|
58
115
|
exports.default = DashboardControl;
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "devexpress-dashboard-react",
|
|
3
|
-
"author": "Developer Express Inc.",
|
|
4
|
-
"version": "20.2.
|
|
5
|
-
"description": "A component that integrates DevExpress Web Dashboard in a React application",
|
|
6
|
-
"homepage": "https://www.devexpress.com/products/net/dashboard/",
|
|
7
|
-
"bugs": "https://www.devexpress.com/support/",
|
|
8
|
-
"license": "SEE LICENSE IN README.md",
|
|
9
|
-
"keywords": [
|
|
10
|
-
"devexpress",
|
|
11
|
-
"dashboard",
|
|
12
|
-
"analytics",
|
|
13
|
-
"react"
|
|
14
|
-
],
|
|
15
|
-
"main": "./index.js",
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"prop-types": "^15.6.1"
|
|
18
|
-
},
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"devexpress-dashboard": "20.2.
|
|
21
|
-
"devextreme": "20.2.
|
|
22
|
-
"devextreme-react": "20.2.
|
|
23
|
-
"@devexpress/analytics-core": "20.2.
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "devexpress-dashboard-react",
|
|
3
|
+
"author": "Developer Express Inc.",
|
|
4
|
+
"version": "20.2.5",
|
|
5
|
+
"description": "A component that integrates DevExpress Web Dashboard in a React application",
|
|
6
|
+
"homepage": "https://www.devexpress.com/products/net/dashboard/",
|
|
7
|
+
"bugs": "https://www.devexpress.com/support/",
|
|
8
|
+
"license": "SEE LICENSE IN README.md",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"devexpress",
|
|
11
|
+
"dashboard",
|
|
12
|
+
"analytics",
|
|
13
|
+
"react"
|
|
14
|
+
],
|
|
15
|
+
"main": "./index.js",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"prop-types": "^15.6.1"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"devexpress-dashboard": "20.2.5",
|
|
21
|
+
"devextreme": "20.2.5",
|
|
22
|
+
"devextreme-react": "20.2.5",
|
|
23
|
+
"@devexpress/analytics-core": "20.2.5"
|
|
24
|
+
}
|
|
25
25
|
}
|