stimulsoft-reports-js-vuejs 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/designer.js ADDED
@@ -0,0 +1,121 @@
1
+ import { watch, h, onMounted, onUnmounted, useTemplateRef } from 'vue'
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.viewer.mjs";
8
+ import { } from "./stimulsoft.designer.mjs";
9
+ import { Stimulsoft } from "./stimulsoft.blockly.editor.mjs";
10
+
11
+ export const Designer = {
12
+ props: {
13
+ report: {
14
+ type: Stimulsoft.Report.StiReport,
15
+ default: null
16
+ },
17
+ visible: {
18
+ type: Boolean,
19
+ default: true
20
+ },
21
+ options: {
22
+ type: Stimulsoft.Designer.StiDesignerOptions,
23
+ default: null
24
+ },
25
+ id: {
26
+ type: String,
27
+ default: null
28
+ }
29
+ },
30
+ emits: ["prepareVariables", "beginProcessData", "endProcessData", "createReport", "closeReport", "openReport", "openedReport", "saveReport", "saveAsReport", "previewReport", "exit", "assignedReport"],
31
+ setup(props, context) {
32
+ var designer;
33
+ var parentRef = useTemplateRef('parentRef')
34
+
35
+ const createDesigner = () => {
36
+ designer = new Stimulsoft.Designer.StiDesigner(props.options, props.id, false);
37
+ designer.renderHtml(parentRef.value);
38
+ bindEvents();
39
+
40
+ designer.visible = props.visible;
41
+ }
42
+
43
+ const bindEvents = () => {
44
+ designer.onPrepareVariables = (args, callback) => context.emit("prepareVariables", args, callback);
45
+ designer.onBeginProcessData = (args, callback) => context.emit("beginProcessData", args, callback);
46
+ designer.onEndProcessData = (args) => context.emit("endProcessData", args);
47
+ designer.onCreateReport = (args, callback) => context.emit("createReport", args, callback);
48
+ designer.onCloseReport = (args, callback) => context.emit("closeReport", args, callback);
49
+ designer.onOpenReport = (args, callback) => {
50
+ args.preventDefault = false;
51
+ context.emit("openReport", args, callback);
52
+ }
53
+ designer.onOpenedReport = (args, callback) => context.emit("openedReport", args, callback);
54
+ designer.onSaveReport = (args, callback) => {
55
+ args.preventDefault = false;
56
+ context.emit("saveReport", args, callback);
57
+ }
58
+ designer.onSaveAsReport = (args, callback) => context.emit("saveAsReport", args, callback);
59
+ designer.onPreviewReport = (args, callback) => context.emit("previewReport", args, callback);
60
+ designer.onExit = (args) => context.emit("exit", args);
61
+
62
+ designer.onAssignedReport = (args) => context.emit("assignedReport", args);
63
+ }
64
+
65
+ onMounted(() => {
66
+ setTimeout(() => {
67
+ createDesigner();
68
+ designer.report = props.report;
69
+ });
70
+ });
71
+
72
+ onUnmounted(() => {
73
+ if (designer != null)
74
+ designer.dispose();
75
+ });
76
+
77
+ watch(
78
+ () => props.report,
79
+ () => {
80
+ if (designer)
81
+ designer.report = props.report;
82
+ },
83
+ { immediate: true }
84
+ )
85
+
86
+ watch(
87
+ () => props.options,
88
+ () => {
89
+ if (designer) {
90
+ createDesigner();
91
+ designer.report = props.report;
92
+ }
93
+ },
94
+ { immediate: true, deep: true }
95
+ )
96
+
97
+ watch(
98
+ () => props.visible,
99
+ () => {
100
+ if (designer)
101
+ designer.visible = props.visible;
102
+ },
103
+ { immediate: true }
104
+ )
105
+
106
+ watch(
107
+ () => props.id,
108
+ () => {
109
+ if (designer) {
110
+ createDesigner();
111
+ designer.report = props.report;
112
+ }
113
+ },
114
+ { immediate: true}
115
+ )
116
+
117
+ return () => h('div', { ref: 'parentRef' })
118
+ }
119
+ }
120
+
121
+ export { Stimulsoft };
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { Stimulsoft } from "./stimulsoft.reports"
2
+ export { Stimulsoft }
package/index.js ADDED
@@ -0,0 +1,6 @@
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 { Stimulsoft } from "./stimulsoft.reports.maps.mjs";
6
+ export { Stimulsoft };
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "stimulsoft-reports-js-vuejs",
3
+ "version": "2025.2.1",
4
+ "description": "Stimulsoft Reports.JS is a reporting tool for VueJs",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "type": "module",
8
+ "keywords": [
9
+ "Stimulsoft",
10
+ "Reports",
11
+ "Stimulsoft.Reports.JS",
12
+ "Reporting tool",
13
+ "Report builder",
14
+ "Report generator",
15
+ "Data visualization",
16
+ "Data analytics",
17
+ "Create reports",
18
+ "Business intelligence",
19
+ "Reporting software",
20
+ "JavaScript Report Designer",
21
+ "JavaScript Report Viewer",
22
+ "VueJs reporting tool"
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
+ "vue": "^3.5.13"
41
+ }
42
+ }