@ningboyz/vue 1.0.78 → 1.0.79
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/es/components.js +14 -0
- package/es/index.js +13 -0
- package/es/layout/index.js +8 -0
- package/es/layout/layout.vue.js +46 -0
- package/es/layout/layout.vue2.js +4 -0
- package/es/message/index.js +5 -0
- package/es/message/message.js +56 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/designer.js +77 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js +7956 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js +49958 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js +21875 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js +107961 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js +12892 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js +13842 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js +1067 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js +11271 -0
- package/es/stimulsoft/desginer/desginer.vue.js +54 -0
- package/es/stimulsoft/desginer/desginer.vue2.js +4 -0
- package/es/stimulsoft/desginer/factory.js +58 -0
- package/es/stimulsoft/desginer/index.js +10 -0
- package/package.json +1 -1
package/es/components.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { YzDesginer as r } from "./stimulsoft/desginer/index.js";
|
|
2
|
+
import { StimulsoftFactory as c } from "./stimulsoft/desginer/index.js";
|
|
3
|
+
import { YzLayout as e } from "./layout/index.js";
|
|
4
|
+
import { YzMessage as l } from "./message/index.js";
|
|
5
|
+
const s = [r, e], n = (o) => {
|
|
6
|
+
s.forEach((t) => o.use(t));
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
c as StimulsoftFactory,
|
|
10
|
+
r as YzDesginer,
|
|
11
|
+
e as YzLayout,
|
|
12
|
+
l as YzMessage,
|
|
13
|
+
n as install
|
|
14
|
+
};
|
package/es/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as o from "./components.js";
|
|
2
|
+
import { install as e } from "./components.js";
|
|
3
|
+
import { StimulsoftFactory as s, YzDesginer as a } from "./stimulsoft/desginer/index.js";
|
|
4
|
+
import { YzMessage as p } from "./message/index.js";
|
|
5
|
+
import { YzLayout as i } from "./layout/index.js";
|
|
6
|
+
export {
|
|
7
|
+
s as StimulsoftFactory,
|
|
8
|
+
a as YzDesginer,
|
|
9
|
+
i as YzLayout,
|
|
10
|
+
p as YzMessage,
|
|
11
|
+
o as default,
|
|
12
|
+
e as install
|
|
13
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as u, openBlock as d, unref as e, withCtx as o, createVNode as a, renderSlot as r, normalizeProps as n, guardReactiveProps as i } from "vue";
|
|
2
|
+
import { VxeLayoutContainer as l, VxeLayoutHeader as p, VxeLayoutAside as f, VxeLayoutBody as _ } from "vxe-pc-ui";
|
|
3
|
+
const L = /* @__PURE__ */ s({
|
|
4
|
+
__name: "layout",
|
|
5
|
+
props: {
|
|
6
|
+
asideProps: {}
|
|
7
|
+
},
|
|
8
|
+
setup(c) {
|
|
9
|
+
return (t, m) => (d(), u(e(l), { vertical: "" }, {
|
|
10
|
+
default: o(() => [
|
|
11
|
+
a(e(p), null, {
|
|
12
|
+
default: o(() => [
|
|
13
|
+
r(t.$slots, "header")
|
|
14
|
+
]),
|
|
15
|
+
_: 3
|
|
16
|
+
}),
|
|
17
|
+
a(e(l), null, {
|
|
18
|
+
default: o(() => [
|
|
19
|
+
a(e(f), n(i(t.asideProps)), {
|
|
20
|
+
default: o(() => [
|
|
21
|
+
r(t.$slots, "aside")
|
|
22
|
+
]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 16),
|
|
25
|
+
a(e(l), { vertical: "" }, {
|
|
26
|
+
default: o(() => [
|
|
27
|
+
a(e(_), null, {
|
|
28
|
+
default: o(() => [
|
|
29
|
+
r(t.$slots, "body")
|
|
30
|
+
]),
|
|
31
|
+
_: 3
|
|
32
|
+
})
|
|
33
|
+
]),
|
|
34
|
+
_: 3
|
|
35
|
+
})
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
})
|
|
39
|
+
]),
|
|
40
|
+
_: 3
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
L as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { VxeUI as i } from "vxe-pc-ui";
|
|
2
|
+
import { h as n } from "vue";
|
|
3
|
+
class g {
|
|
4
|
+
static messageErrorId = "vxe-modal-message-id-error-d0556a60da2a";
|
|
5
|
+
static messageSuccessId = "vxe-modal-message-id-success-d0556a60da2a";
|
|
6
|
+
static messageWarningId = "vxe-modal-message-id-warning-d0556a60da2a";
|
|
7
|
+
static options;
|
|
8
|
+
static config = (s) => {
|
|
9
|
+
this.options = s;
|
|
10
|
+
};
|
|
11
|
+
static showError = (s) => {
|
|
12
|
+
this.showMessage(this.messageErrorId, s, "error");
|
|
13
|
+
};
|
|
14
|
+
static showSuccess = (s) => {
|
|
15
|
+
this.showMessage(this.messageSuccessId, s, "success");
|
|
16
|
+
};
|
|
17
|
+
static showWarning = (s) => {
|
|
18
|
+
this.showMessage(this.messageWarningId, s, "warning");
|
|
19
|
+
};
|
|
20
|
+
static showMessage = (s, e, t) => {
|
|
21
|
+
const a = this.options || { duration: 3e3 };
|
|
22
|
+
i.modal.message({
|
|
23
|
+
...a,
|
|
24
|
+
id: s,
|
|
25
|
+
content: e,
|
|
26
|
+
status: t
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
static showConfirm = (s, e, t = !1, a = !0) => new Promise((o) => {
|
|
30
|
+
i.modal.confirm({
|
|
31
|
+
title: s,
|
|
32
|
+
slots: {
|
|
33
|
+
default() {
|
|
34
|
+
return n("div", {
|
|
35
|
+
innerHTML: e
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
lockView: !0,
|
|
40
|
+
mask: t,
|
|
41
|
+
showClose: !0,
|
|
42
|
+
showConfirmButton: !0,
|
|
43
|
+
confirmButtonText: "确定",
|
|
44
|
+
cancelButtonText: "取消",
|
|
45
|
+
maskClosable: a,
|
|
46
|
+
position: {
|
|
47
|
+
top: 100
|
|
48
|
+
}
|
|
49
|
+
}).then((r) => {
|
|
50
|
+
o(r === "confirm");
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
g as Message
|
|
56
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { useTemplateRef as l, onMounted as R, onUnmounted as d, watch as p, h as u } from "vue";
|
|
2
|
+
import { Stimulsoft as n } from "./stimulsoft.reports.engine.js";
|
|
3
|
+
import "./stimulsoft.reports.chart.js";
|
|
4
|
+
import "./stimulsoft.reports.export.js";
|
|
5
|
+
import "./stimulsoft.reports.import.xlsx.js";
|
|
6
|
+
import "./stimulsoft.reports.maps.js";
|
|
7
|
+
import "./stimulsoft.viewer.js";
|
|
8
|
+
import "./stimulsoft.designer.js";
|
|
9
|
+
import "./stimulsoft.blockly.editor.js";
|
|
10
|
+
const y = {
|
|
11
|
+
props: {
|
|
12
|
+
report: {
|
|
13
|
+
type: n.Report.StiReport,
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
visible: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
options: {
|
|
21
|
+
type: n.Designer.StiDesignerOptions,
|
|
22
|
+
default: null
|
|
23
|
+
},
|
|
24
|
+
id: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: null
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["prepareVariables", "beginProcessData", "endProcessData", "createReport", "closeReport", "openReport", "openedReport", "saveReport", "saveAsReport", "previewReport", "exit", "assignedReport"],
|
|
30
|
+
setup(i, o) {
|
|
31
|
+
var e, s = l("parentRef");
|
|
32
|
+
const a = () => {
|
|
33
|
+
e = new n.Designer.StiDesigner(i.options, i.id, !1), e.renderHtml(s.value), m(), e.visible = i.visible;
|
|
34
|
+
}, m = () => {
|
|
35
|
+
e.onPrepareVariables = (t, r) => o.emit("prepareVariables", t, r), e.onBeginProcessData = (t, r) => o.emit("beginProcessData", t, r), e.onEndProcessData = (t) => o.emit("endProcessData", t), e.onCreateReport = (t, r) => o.emit("createReport", t, r), e.onCloseReport = (t, r) => o.emit("closeReport", t, r), e.onOpenReport = (t, r) => {
|
|
36
|
+
t.preventDefault = !1, o.emit("openReport", t, r);
|
|
37
|
+
}, e.onOpenedReport = (t, r) => o.emit("openedReport", t, r), e.onSaveReport = (t, r) => {
|
|
38
|
+
t.preventDefault = !1, o.emit("saveReport", t, r);
|
|
39
|
+
}, e.onSaveAsReport = (t, r) => o.emit("saveAsReport", t, r), e.onPreviewReport = (t, r) => o.emit("previewReport", t, r), e.onExit = (t) => o.emit("exit", t), e.onAssignedReport = (t) => o.emit("assignedReport", t);
|
|
40
|
+
};
|
|
41
|
+
return R(() => {
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
a(), e.report = i.report;
|
|
44
|
+
});
|
|
45
|
+
}), d(() => {
|
|
46
|
+
e?.dispose();
|
|
47
|
+
}), p(
|
|
48
|
+
() => i.report,
|
|
49
|
+
() => {
|
|
50
|
+
e && (e.report = i.report);
|
|
51
|
+
},
|
|
52
|
+
{ immediate: !0 }
|
|
53
|
+
), p(
|
|
54
|
+
() => i.options,
|
|
55
|
+
() => {
|
|
56
|
+
e && (a(), e.report = i.report);
|
|
57
|
+
},
|
|
58
|
+
{ immediate: !0, deep: !0 }
|
|
59
|
+
), p(
|
|
60
|
+
() => i.visible,
|
|
61
|
+
() => {
|
|
62
|
+
e && (e.visible = i.visible);
|
|
63
|
+
},
|
|
64
|
+
{ immediate: !0 }
|
|
65
|
+
), p(
|
|
66
|
+
() => i.id,
|
|
67
|
+
() => {
|
|
68
|
+
e && (a(), e.report = i.report);
|
|
69
|
+
},
|
|
70
|
+
{ immediate: !0 }
|
|
71
|
+
), () => u("div", { ref: "parentRef" });
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
y as Designer,
|
|
76
|
+
n as Stimulsoft
|
|
77
|
+
};
|