@ningboyz/vue 1.0.76 → 1.0.78

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.
@@ -1,54 +0,0 @@
1
- import { defineComponent as u, ref as g, watch as U, createBlock as h, openBlock as L, unref as i } from "vue";
2
- import { Designer as z } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
- import S from "./factory.js";
4
- import { Stimulsoft as n } 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 y = /* @__PURE__ */ u({
9
- __name: "desginer",
10
- props: {
11
- templateJson: {},
12
- listData: {}
13
- },
14
- emits: ["saveReport"],
15
- setup(p, { expose: l, emit: c }) {
16
- n.Base.StiLicense.key = "6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkVaUjYnRU/wphl9h6TkK9UtvGvwIZ/qCzU7vjHmM5RWbvCAfAhZhn+eMayEo4PRtUFJINrdMkfnVj1/HeyPgSgAKdpQpP1wzGj2ri5UgGNU8p7Pi59UAegRyUxjTI96rT+khTJIcSoTTPkqZwt0uC+IGtEdehlDchk7madvSLA9guSEZZuSHsc+adQ93NZogak6uo7LbqRh2xC23iGH4sValMR9CBxAsjWUYJH0yrcXODeYrX6ARDlVCW40MGOMrYnx/2W3O8L26oTyAFEdQ1TN1KzYjP4zenjvu4KBAWIopWG6Gk2ydffI0zldxHaPeEl0Lt6U77ykFtsXqW5fN/9t040SfeZfzMAq2ZoVGXPXKCjBo+asFZHrxn7iLpsxF7zwWkYIto8ObpimosoY0on8aLx7At7Qo3VaUOST48gIdqBabUpVz3O9h8UULJa23nlwMVMXheIMMmp6ACD9Bupla/giERFXIYIfpE4eFCD93sR2Cq2f8jdm5Z9B/faB8j4iz0IugVhK4BYhw2q9jAufdWTIx3nsE2Qw7ah0jNsgkR9kWWnHQ3qI/lwFLcFr81SVgyNpFzZ/zcV6vM+xaqbuEMivQx5uFx9WLOMU/ZYkyV8Hi/IEmU+O72NObJtWDxnhUkl4iV0WsYT2V2EU8t0NZP9SBCrLU+rd0SERAdGnRUfoJrm8mXPgcN6+FGNyTgiw0Do8oLU/Skqa/TohVeT", n.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文"), n.Base.Localization.StiLocalization.cultureName = "中文";
17
- const a = p, s = g(), r = new n.Designer.StiDesignerOptions();
18
- r.appearance.fullScreenMode = !0;
19
- const m = c;
20
- U(
21
- () => [a.templateJson, a.listData],
22
- (e) => {
23
- console.log(e);
24
- const o = e[0], t = e[1];
25
- d(o, t);
26
- },
27
- {
28
- deep: !0
29
- }
30
- );
31
- const f = (e) => {
32
- e.preventDefault = !0;
33
- const o = e.report.saveToJsonString(), t = e.fileName;
34
- m("saveReport", t, o);
35
- }, d = async (e, o) => {
36
- try {
37
- const t = new S();
38
- s.value = t.setListData(o).loadJson(e).getReport();
39
- } catch (t) {
40
- console.log(t.message);
41
- }
42
- };
43
- return l({
44
- getJson: () => "hello world"
45
- }), (e, o) => (L(), h(i(z), {
46
- report: s.value,
47
- options: i(r),
48
- onSaveReport: f
49
- }, null, 8, ["report", "options"]));
50
- }
51
- });
52
- export {
53
- y as default
54
- };
@@ -1,4 +0,0 @@
1
- import f from "./desginer.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,58 +0,0 @@
1
- import r from "lodash";
2
- import "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
- import { Stimulsoft as s } 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 u {
8
- listData = void 0;
9
- report;
10
- constructor(t) {
11
- r.isNil(t) || (this.listData = t), this.report = new s.Report.StiReport();
12
- }
13
- initLicense = () => (s.Base.StiLicense.key = "6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkVaUjYnRU/wphl9h6TkK9UtvGvwIZ/qCzU7vjHmM5RWbvCAfAhZhn+eMayEo4PRtUFJINrdMkfnVj1/HeyPgSgAKdpQpP1wzGj2ri5UgGNU8p7Pi59UAegRyUxjTI96rT+khTJIcSoTTPkqZwt0uC+IGtEdehlDchk7madvSLA9guSEZZuSHsc+adQ93NZogak6uo7LbqRh2xC23iGH4sValMR9CBxAsjWUYJH0yrcXODeYrX6ARDlVCW40MGOMrYnx/2W3O8L26oTyAFEdQ1TN1KzYjP4zenjvu4KBAWIopWG6Gk2ydffI0zldxHaPeEl0Lt6U77ykFtsXqW5fN/9t040SfeZfzMAq2ZoVGXPXKCjBo+asFZHrxn7iLpsxF7zwWkYIto8ObpimosoY0on8aLx7At7Qo3VaUOST48gIdqBabUpVz3O9h8UULJa23nlwMVMXheIMMmp6ACD9Bupla/giERFXIYIfpE4eFCD93sR2Cq2f8jdm5Z9B/faB8j4iz0IugVhK4BYhw2q9jAufdWTIx3nsE2Qw7ah0jNsgkR9kWWnHQ3qI/lwFLcFr81SVgyNpFzZ/zcV6vM+xaqbuEMivQx5uFx9WLOMU/ZYkyV8Hi/IEmU+O72NObJtWDxnhUkl4iV0WsYT2V2EU8t0NZP9SBCrLU+rd0SERAdGnRUfoJrm8mXPgcN6+FGNyTgiw0Do8oLU/Skqa/TohVeT", s.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文"), s.Base.Localization.StiLocalization.cultureName = "中文", this);
14
- setListData = (t) => (this.listData = t, this);
15
- /**
16
- * 加载打印模版json
17
- * @param json
18
- * @returns
19
- */
20
- loadJson = (t) => (r.isEmpty(t) || this.report.load(t), this);
21
- getReport = () => (this.report.dataSources.clear(), r.isNil(this.listData) || this.listData.length === 0 ? this.report : (this.getDataSet(this.listData), this.report));
22
- print = () => (this.report.print(), this);
23
- printToPdf = () => (this.report.printToPdf(), this);
24
- getDataSet = (t) => {
25
- const a = new s.System.Data.DataSet("网络打印");
26
- for (let i = 0; i < t.length; i++) {
27
- const e = t[i], o = new s.System.Data.DataTable(e.dataName);
28
- this.listItem2DataTable(o, e), this.listData2DataTable(o, e), a.tables.add(o), this.report.regData(a.dataSetName, a.dataSetName, a);
29
- }
30
- this.report.dictionary.synchronize();
31
- };
32
- listItem2DataTable = (t, a) => {
33
- for (let i = 0; i < a.listItem.length; i++) {
34
- const e = a.listItem[i];
35
- if (r.isEmpty(e.printVal))
36
- continue;
37
- const o = new s.System.Data.DataColumn(e.printVal);
38
- t.columns.add(o);
39
- }
40
- };
41
- listData2DataTable = (t, a) => {
42
- for (let i = 0; i < a.listData.length; i++) {
43
- const e = a.listData[i], o = this.getRow(t, a.listItem, e);
44
- t.addRow(o);
45
- }
46
- };
47
- getRow = (t, a, i) => {
48
- const e = t.newRow();
49
- for (let o = 0; o < a.length; o++) {
50
- const n = a[o];
51
- r.isEmpty(n.printVal) || e.setValue(n.printVal, Reflect.get(i, n.itemCode));
52
- }
53
- return e;
54
- };
55
- }
56
- export {
57
- u as default
58
- };
@@ -1,10 +0,0 @@
1
- import o from "./desginer.vue.js";
2
- import m from "./factory.js";
3
- o.install = (t) => {
4
- t.component(o.name, o);
5
- };
6
- const c = o, i = m;
7
- export {
8
- i as StimulsoftFactory,
9
- c as YzDesginer
10
- };