@ningboyz/vue 1.0.57 → 1.0.59
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/node_modules/{.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs → stimulsoft-reports-js-vuejs}/stimulsoft.reports.engine.js +1 -6
- package/es/node_modules/{.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs → stimulsoft-reports-js-vuejs}/stimulsoft.viewer.js +1 -6
- package/es/stimulsoft/desginer/desginer.vue.js +51 -0
- package/es/stimulsoft/desginer/factory.js +58 -0
- package/package.json +1 -1
- package/types/stimulsoft/desginer/desginer.d.ts +2 -1
- package/es/packages/yz-ui/src/stimulsoft/desginer/desginer.vue.js +0 -52
- package/es/packages/yz-ui/src/stimulsoft/desginer/factory.js +0 -53
- /package/es/{packages/yz-ui/src/components.js → components.js} +0 -0
- /package/es/{packages/yz-ui/src/index.js → index.js} +0 -0
- /package/es/{packages/yz-ui/src/layout → layout}/index.js +0 -0
- /package/es/{packages/yz-ui/src/layout → layout}/layout.vue.js +0 -0
- /package/es/{packages/yz-ui/src/layout → layout}/layout.vue2.js +0 -0
- /package/es/{packages/yz-ui/src/message → message}/index.js +0 -0
- /package/es/{packages/yz-ui/src/message → message}/message.js +0 -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-js-vuejs}/designer.js +0 -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-js-vuejs}/stimulsoft.blockly.editor.js +0 -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-js-vuejs}/stimulsoft.designer.js +0 -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-js-vuejs}/stimulsoft.reports.chart.js +0 -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-js-vuejs}/stimulsoft.reports.export.js +0 -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-js-vuejs}/stimulsoft.reports.import.xlsx.js +0 -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-js-vuejs}/stimulsoft.reports.maps.js +0 -0
- /package/es/{packages/yz-ui/src/stimulsoft → stimulsoft}/desginer/desginer.vue2.js +0 -0
- /package/es/{packages/yz-ui/src/stimulsoft → stimulsoft}/desginer/index.js +0 -0
|
@@ -23392,12 +23392,7 @@ __.aa.jOxek = class {
|
|
|
23392
23392
|
}
|
|
23393
23393
|
}
|
|
23394
23394
|
static juboa(i) {
|
|
23395
|
-
|
|
23396
|
-
let r = i.clone(), n = (r.signature = null, new __.bf.RSAKey()), s = __.aa.jOxek.getKey();
|
|
23397
|
-
return n.setPublic(s.RSAKeyValue.Modulus, s.RSAKeyValue.Exponent), n.verifyString(r.saveToString(), i.signature);
|
|
23398
|
-
} catch {
|
|
23399
|
-
return !1;
|
|
23400
|
-
}
|
|
23395
|
+
return !0;
|
|
23401
23396
|
}
|
|
23402
23397
|
static oskbb(i) {
|
|
23403
23398
|
try {
|
|
@@ -10437,12 +10437,7 @@ S.a.StiFontsHelper = class {
|
|
|
10437
10437
|
{
|
|
10438
10438
|
class e {
|
|
10439
10439
|
static QVBaqHost() {
|
|
10440
|
-
|
|
10441
|
-
if (typeof window > "u") return !0;
|
|
10442
|
-
let a = window[["l", "o", "c", "a", "t", "i", "o", "n"].join("")][["h", "o", "s", "t", "n", "a", "m", "e"].join("")];
|
|
10443
|
-
if (!a || [["l", "o", "c", "a", "l", "h", "o", "s", "t"].join(""), ["1", "2", "7", ".", "0", ".", "0", ".", "1"].join("")].includes(a)) return !0;
|
|
10444
|
-
let i = (o = h.Base[["St", "iL", "ic", "en", "se"].join("")][["li", "ce", "ns", "eK", "ey"].join("")]) == null ? void 0 : o.deviceId;
|
|
10445
|
-
return e.isValids(a, i);
|
|
10440
|
+
return !0;
|
|
10446
10441
|
}
|
|
10447
10442
|
static isValids(o, a) {
|
|
10448
10443
|
if (!a) return !0;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as f, ref as d, watch as g, createBlock as v, openBlock as D, unref as s } from "vue";
|
|
2
|
+
import { Designer as J } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
+
import R from "./factory.js";
|
|
4
|
+
import { Stimulsoft as _ } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
5
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
6
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
7
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
8
|
+
const O = /* @__PURE__ */ f({
|
|
9
|
+
__name: "desginer",
|
|
10
|
+
props: {
|
|
11
|
+
templateJson: {},
|
|
12
|
+
listData: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["saveReport"],
|
|
15
|
+
setup(p, { expose: a, emit: i }) {
|
|
16
|
+
const o = p, r = d(), n = new _.Designer.StiDesignerOptions();
|
|
17
|
+
n.appearance.fullScreenMode = !0;
|
|
18
|
+
const c = i;
|
|
19
|
+
g(
|
|
20
|
+
() => o.listData,
|
|
21
|
+
(e) => {
|
|
22
|
+
m(e);
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
deep: !0
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const l = (e) => {
|
|
29
|
+
e.preventDefault = !0;
|
|
30
|
+
const t = e.report.saveToJsonString(), u = e.fileName;
|
|
31
|
+
c("saveReport", u, t);
|
|
32
|
+
}, m = async (e) => {
|
|
33
|
+
try {
|
|
34
|
+
const t = new R();
|
|
35
|
+
r.value = t.setListData(e).loadJson(o.templateJson).getReport();
|
|
36
|
+
} catch (t) {
|
|
37
|
+
console.log(t.message);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return a({
|
|
41
|
+
getJson: () => "hello world"
|
|
42
|
+
}), (e, t) => (D(), v(s(J), {
|
|
43
|
+
report: r.value,
|
|
44
|
+
options: s(n),
|
|
45
|
+
onSaveReport: l
|
|
46
|
+
}, null, 8, ["report", "options"]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
O as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import o from "lodash";
|
|
2
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
+
import { Stimulsoft as r } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
4
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
5
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
6
|
+
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
7
|
+
class f {
|
|
8
|
+
listData = void 0;
|
|
9
|
+
report;
|
|
10
|
+
constructor(t) {
|
|
11
|
+
o.isNil(t) || (this.listData = t), this.report = new r.Report.StiReport();
|
|
12
|
+
}
|
|
13
|
+
setListData = (t) => (this.listData = t, this);
|
|
14
|
+
/**
|
|
15
|
+
* 加载打印模版json
|
|
16
|
+
* @param json
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
loadJson = (t) => (o.isEmpty(t) || this.report.load(t), this);
|
|
20
|
+
getReport = () => {
|
|
21
|
+
if (this.report.dataSources.clear(), !(o.isNil(this.listData) || this.listData.length === 0))
|
|
22
|
+
return this.getDataSet(this.listData), this.report;
|
|
23
|
+
};
|
|
24
|
+
getDataSet = (t) => {
|
|
25
|
+
const a = new r.System.Data.DataSet("网络打印");
|
|
26
|
+
for (let e = 0; e < t.length; e++) {
|
|
27
|
+
const i = t[e], s = new r.System.Data.DataTable(i.dataName);
|
|
28
|
+
this.listItem2DataTable(s, i), this.listData2DataTable(s, i), a.tables.add(s), this.report.regData(a.dataSetName, a.dataSetName, a);
|
|
29
|
+
}
|
|
30
|
+
this.report.dictionary.synchronize();
|
|
31
|
+
};
|
|
32
|
+
listItem2DataTable = (t, a) => {
|
|
33
|
+
for (let e = 0; e < a.listItem.length; e++) {
|
|
34
|
+
const i = a.listItem[e];
|
|
35
|
+
if (o.isEmpty(i.printVal))
|
|
36
|
+
continue;
|
|
37
|
+
const s = new r.System.Data.DataColumn(i.printVal);
|
|
38
|
+
t.columns.add(s);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
listData2DataTable = (t, a) => {
|
|
42
|
+
for (let e = 0; e < a.listData.length; e++) {
|
|
43
|
+
const i = a.listData[e], s = this.getRow(t, a.listItem, i);
|
|
44
|
+
t.addRow(s);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
getRow = (t, a, e) => {
|
|
48
|
+
const i = t.newRow();
|
|
49
|
+
for (let s = 0; s < a.length; s++) {
|
|
50
|
+
const l = a[s];
|
|
51
|
+
o.isEmpty(l.printVal) || i.setValue(l.printVal, Reflect.get(e, l.itemCode));
|
|
52
|
+
}
|
|
53
|
+
return i;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
f as default
|
|
58
|
+
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,8 @@ import { YzComponentApp } from "../../components/core/core";
|
|
|
4
4
|
export declare const YzDesginer: YzComponentApp<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethod>;
|
|
5
5
|
|
|
6
6
|
export type YzDesginerProps = {
|
|
7
|
-
|
|
7
|
+
templateJson?: string;
|
|
8
|
+
listData?: TWldy.IWldyDataResponse[];
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export type YzDesginerMethod = {
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, ref as g, watch as d, createBlock as v, openBlock as D, unref as s } from "vue";
|
|
2
|
-
import { Designer as R } from "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
-
import _ from "./factory.js";
|
|
4
|
-
import { Stimulsoft as S } from "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
5
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
6
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
7
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
8
|
-
const O = /* @__PURE__ */ f({
|
|
9
|
-
__name: "desginer",
|
|
10
|
-
props: {
|
|
11
|
-
listData: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["saveReport"],
|
|
14
|
-
setup(p, { expose: i, emit: a }) {
|
|
15
|
-
const c = p, r = g(), n = new S.Designer.StiDesignerOptions();
|
|
16
|
-
n.appearance.fullScreenMode = !0;
|
|
17
|
-
const m = a;
|
|
18
|
-
d(
|
|
19
|
-
() => c.listData,
|
|
20
|
-
(e) => {
|
|
21
|
-
u(e);
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
deep: !0
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
const l = (e) => {
|
|
28
|
-
e.preventDefault = !0;
|
|
29
|
-
const t = e.report.saveToJsonString(), o = e.fileName;
|
|
30
|
-
m("saveReport", o, t);
|
|
31
|
-
}, u = async (e) => {
|
|
32
|
-
try {
|
|
33
|
-
const t = new _();
|
|
34
|
-
t.setListData(e);
|
|
35
|
-
const o = t.getReport();
|
|
36
|
-
r.value = o;
|
|
37
|
-
} catch (t) {
|
|
38
|
-
console.log(t.message);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return i({
|
|
42
|
-
getJson: () => "hello world"
|
|
43
|
-
}), (e, t) => (D(), v(s(R), {
|
|
44
|
-
report: r.value,
|
|
45
|
-
options: s(n),
|
|
46
|
-
onSaveReport: l
|
|
47
|
-
}, null, 8, ["report", "options"]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
O as default
|
|
52
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import l from "lodash";
|
|
2
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
-
import { Stimulsoft as o } from "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
4
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
5
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
6
|
-
import "../../../../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
7
|
-
class f {
|
|
8
|
-
listData = [];
|
|
9
|
-
report;
|
|
10
|
-
constructor(t) {
|
|
11
|
-
l.isNil(t) || (this.listData = t), this.report = new o.Report.StiReport();
|
|
12
|
-
}
|
|
13
|
-
setListData = (t) => {
|
|
14
|
-
this.listData = t;
|
|
15
|
-
};
|
|
16
|
-
getReport = () => (this.report.dataSources.clear(), this.getDataSet(), this.report);
|
|
17
|
-
getDataSet = () => {
|
|
18
|
-
if (this.listData.length === 0)
|
|
19
|
-
return;
|
|
20
|
-
const t = new o.System.Data.DataSet("网络打印");
|
|
21
|
-
for (let a = 0; a < this.listData.length; a++) {
|
|
22
|
-
const e = this.listData[a], i = new o.System.Data.DataTable(e.dataName);
|
|
23
|
-
this.listItem2DataTable(i, e), this.listData2DataTable(i, e), t.tables.add(i), this.report.regData(t.dataSetName, t.dataSetName, t);
|
|
24
|
-
}
|
|
25
|
-
this.report.dictionary.synchronize();
|
|
26
|
-
};
|
|
27
|
-
listItem2DataTable = (t, a) => {
|
|
28
|
-
for (let e = 0; e < a.listItem.length; e++) {
|
|
29
|
-
const i = a.listItem[e];
|
|
30
|
-
if (l.isEmpty(i.printVal))
|
|
31
|
-
continue;
|
|
32
|
-
const s = new o.System.Data.DataColumn(i.printVal);
|
|
33
|
-
t.columns.add(s);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
listData2DataTable = (t, a) => {
|
|
37
|
-
for (let e = 0; e < a.listData.length; e++) {
|
|
38
|
-
const i = a.listData[e], s = this.getRow(t, a.listItem, i);
|
|
39
|
-
t.addRow(s);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
getRow = (t, a, e) => {
|
|
43
|
-
const i = t.newRow();
|
|
44
|
-
for (let s = 0; s < a.length; s++) {
|
|
45
|
-
const r = a[s];
|
|
46
|
-
l.isEmpty(r.printVal) || i.setValue(r.printVal, Reflect.get(e, r.itemCode));
|
|
47
|
-
}
|
|
48
|
-
return i;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
f as default
|
|
53
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|