stimulsoft-dashboards-js-react 2025.2.1
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/LICENSE.md +499 -0
- package/README.md +144 -0
- package/THIRD-PARTY.md +591 -0
- package/designer.d.ts +25 -0
- package/designer.js +76 -0
- package/index.d.ts +2 -0
- package/index.js +7 -0
- package/package.json +42 -0
- package/stimulsoft.blockly.editor.mjs +9 -0
- package/stimulsoft.dashboards.mjs +10 -0
- package/stimulsoft.designer.mjs +42 -0
- package/stimulsoft.reports.chart.mjs +11 -0
- package/stimulsoft.reports.d.ts +70391 -0
- package/stimulsoft.reports.engine.mjs +68 -0
- package/stimulsoft.reports.export.mjs +10 -0
- package/stimulsoft.reports.import.xlsx.mjs +9 -0
- package/stimulsoft.reports.maps.mjs +16 -0
- package/stimulsoft.viewer.mjs +13 -0
- package/viewer.d.ts +25 -0
- package/viewer.js +69 -0
package/designer.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { } from "./stimulsoft.reports.engine.mjs";
|
|
3
|
+
import { } from "./stimulsoft.reports.chart.mjs";
|
|
4
|
+
import { } from "./stimulsoft.reports.export.mjs";
|
|
5
|
+
import { } from "./stimulsoft.reports.import.xlsx.mjs";
|
|
6
|
+
import { } from "./stimulsoft.reports.maps.mjs";
|
|
7
|
+
import { } from "./stimulsoft.dashboards.mjs";
|
|
8
|
+
import { } from "./stimulsoft.viewer.mjs";
|
|
9
|
+
import { } from "./stimulsoft.designer.mjs";
|
|
10
|
+
import { Stimulsoft } from "./stimulsoft.blockly.editor.mjs";
|
|
11
|
+
|
|
12
|
+
export class Designer extends React.Component {
|
|
13
|
+
#designer;
|
|
14
|
+
#parentRef = React.createRef();
|
|
15
|
+
|
|
16
|
+
#createDesigner() {
|
|
17
|
+
this.#designer = new Stimulsoft.Designer.StiDesigner(this.props.options, this.props.id, false);
|
|
18
|
+
this.#designer.renderHtml(this.#parentRef.current);
|
|
19
|
+
this.#bindEvents();
|
|
20
|
+
|
|
21
|
+
this.#designer.visible = this.props.visible ?? true;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#bindEvents() {
|
|
25
|
+
if (typeof this.props.onPrepareVariables == "function") this.#designer.onPrepareVariables = this.props.onPrepareVariables?.bind(this);
|
|
26
|
+
if (typeof this.props.onBeginProcessData == "function") this.#designer.onBeginProcessData = this.props.onBeginProcessData?.bind(this);
|
|
27
|
+
if (typeof this.props.onEndProcessData == "function") this.#designer.onEndProcessData = this.props.onEndProcessData?.bind(this);
|
|
28
|
+
if (typeof this.props.onCreateReport == "function") this.#designer.onCreateReport = this.props.onCreateReport?.bind(this);
|
|
29
|
+
if (typeof this.props.onCloseReport == "function") this.#designer.onCloseReport = this.props.onCloseReport?.bind(this);
|
|
30
|
+
if (typeof this.props.onOpenReport == "function") this.#designer.onOpenReport = (args, callback) => {
|
|
31
|
+
args.preventDefault = false;
|
|
32
|
+
this.props.onOpenReport?.bind(this)(args, callback);
|
|
33
|
+
}
|
|
34
|
+
if (typeof this.props.onOpenedReport == "function") this.#designer.onOpenedReport = this.props.onOpenedReport.bind(this);
|
|
35
|
+
if (typeof this.props.onSaveReport == "function") this.#designer.onSaveReport = (args, callback) => {
|
|
36
|
+
args.preventDefault = false;
|
|
37
|
+
this.props.onSaveReport?.bind(this)(args, callback);
|
|
38
|
+
}
|
|
39
|
+
if (typeof this.props.onSaveAsReport == "function") this.#designer.onSaveAsReport = this.props.onSaveAsReport?.bind(this);
|
|
40
|
+
if (typeof this.props.onPreviewReport == "function") this.#designer.onPreviewReport = this.props.onPreviewReport?.bind(this);
|
|
41
|
+
if (typeof this.props.onExit == "function") this.#designer.onExit = this.props.onExit?.bind(this);
|
|
42
|
+
|
|
43
|
+
if (typeof this.props.onAssignedReport == "function") this.#designer.onAssignedReport = this.props.onAssignedReport?.bind(this);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
componentDidMount() {
|
|
47
|
+
this.#createDesigner();
|
|
48
|
+
this.#designer.report = this.props.report;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
componentWillUnmount() {
|
|
52
|
+
if (this.#designer != null)
|
|
53
|
+
this.#designer.dispose();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
componentDidUpdate(prevProps) {
|
|
57
|
+
if (this.props.options !== prevProps.options) {
|
|
58
|
+
this.#createDesigner();
|
|
59
|
+
this.#designer.report = this.props.report;
|
|
60
|
+
}
|
|
61
|
+
if (this.props.report !== prevProps.report)
|
|
62
|
+
this.#designer.report = this.props.report;
|
|
63
|
+
if (this.props.visible !== prevProps.visible)
|
|
64
|
+
this.#designer.visible = this.props.visible;
|
|
65
|
+
if (this.props.id !== prevProps.id) {
|
|
66
|
+
this.#createDesigner();
|
|
67
|
+
this.#designer.report = this.props.report;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
render() {
|
|
72
|
+
return React.createElement('div', { ref: this.#parentRef });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { Stimulsoft };
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { } from "./stimulsoft.reports.engine.mjs";
|
|
2
|
+
import { } from "./stimulsoft.reports.chart.mjs";
|
|
3
|
+
import { } from "./stimulsoft.reports.export.mjs";
|
|
4
|
+
import { } from "./stimulsoft.reports.import.xlsx.mjs";
|
|
5
|
+
import { } from "./stimulsoft.reports.maps.mjs";
|
|
6
|
+
import { Stimulsoft } from "./stimulsoft.dashboards.mjs";
|
|
7
|
+
export { Stimulsoft };
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stimulsoft-dashboards-js-react",
|
|
3
|
+
"version": "2025.2.1",
|
|
4
|
+
"description": "Stimulsoft Dashboards.JS is a dashboards tool for React",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"Stimulsoft",
|
|
10
|
+
"Dashboards",
|
|
11
|
+
"Stimulsoft.Dashboards.JS",
|
|
12
|
+
"Data analytics tool",
|
|
13
|
+
"Data visualization",
|
|
14
|
+
"Data analytics",
|
|
15
|
+
"Create dashboard",
|
|
16
|
+
"Business intelligence",
|
|
17
|
+
"Export dashboard to PDF",
|
|
18
|
+
"JavaScript Dashboard Designer",
|
|
19
|
+
"JavaScript Dashboard Viewer",
|
|
20
|
+
"React dashboard tool",
|
|
21
|
+
"Online dashboard",
|
|
22
|
+
"Embedding dashboards"
|
|
23
|
+
],
|
|
24
|
+
"files": [
|
|
25
|
+
"THIRD-PARTY.md",
|
|
26
|
+
"LICENSE.md",
|
|
27
|
+
"package.json",
|
|
28
|
+
"README.md",
|
|
29
|
+
"*.d.ts",
|
|
30
|
+
"*.mjs",
|
|
31
|
+
"*.js"
|
|
32
|
+
],
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "Stimulsoft",
|
|
35
|
+
"url": "http://www.stimulsoft.com"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "http://www.stimulsoft.com",
|
|
38
|
+
"license": "Closed Source",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"react": "^19.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|