@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.
Files changed (21) hide show
  1. package/es/components.js +14 -0
  2. package/es/index.js +13 -0
  3. package/es/layout/index.js +8 -0
  4. package/es/layout/layout.vue.js +46 -0
  5. package/es/layout/layout.vue2.js +4 -0
  6. package/es/message/index.js +5 -0
  7. package/es/message/message.js +56 -0
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. package/es/stimulsoft/desginer/desginer.vue.js +54 -0
  18. package/es/stimulsoft/desginer/desginer.vue2.js +4 -0
  19. package/es/stimulsoft/desginer/factory.js +58 -0
  20. package/es/stimulsoft/desginer/index.js +10 -0
  21. package/package.json +1 -1
@@ -0,0 +1,54 @@
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/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.3/node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
+ import S from "./factory.js";
4
+ import { Stimulsoft as n } 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 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
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./desginer.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,58 @@
1
+ import r 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 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";
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 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
+ };
@@ -0,0 +1,10 @@
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",