@ningboyz/vue 1.0.58 → 1.0.60

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 (13) hide show
  1. 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
  2. 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
  3. package/es/stimulsoft/desginer/desginer.vue.js +21 -22
  4. package/es/stimulsoft/desginer/factory.js +25 -23
  5. package/package.json +1 -1
  6. package/types/stimulsoft/desginer/desginer.d.ts +2 -1
  7. /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
  8. /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
  9. /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
  10. /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
  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-js-vuejs}/stimulsoft.reports.export.js +0 -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-js-vuejs}/stimulsoft.reports.import.xlsx.js +0 -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-js-vuejs}/stimulsoft.reports.maps.js +0 -0
@@ -23392,12 +23392,7 @@ __.aa.jOxek = class {
23392
23392
  }
23393
23393
  }
23394
23394
  static juboa(i) {
23395
- try {
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
- var o;
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;
@@ -1,24 +1,25 @@
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";
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
8
  const O = /* @__PURE__ */ f({
9
9
  __name: "desginer",
10
10
  props: {
11
+ templateJson: {},
11
12
  listData: {}
12
13
  },
13
14
  emits: ["saveReport"],
14
- setup(p, { expose: i, emit: a }) {
15
- const c = p, r = g(), n = new S.Designer.StiDesignerOptions();
15
+ setup(p, { expose: a, emit: i }) {
16
+ const o = p, r = d(), n = new _.Designer.StiDesignerOptions();
16
17
  n.appearance.fullScreenMode = !0;
17
- const m = a;
18
- d(
19
- () => c.listData,
18
+ const c = i;
19
+ g(
20
+ () => o.listData,
20
21
  (e) => {
21
- u(e);
22
+ m(e);
22
23
  },
23
24
  {
24
25
  deep: !0
@@ -26,21 +27,19 @@ const O = /* @__PURE__ */ f({
26
27
  );
27
28
  const l = (e) => {
28
29
  e.preventDefault = !0;
29
- const t = e.report.saveToJsonString(), o = e.fileName;
30
- m("saveReport", o, t);
31
- }, u = async (e) => {
30
+ const t = e.report.saveToJsonString(), u = e.fileName;
31
+ c("saveReport", u, t);
32
+ }, m = async (e) => {
32
33
  try {
33
- const t = new _();
34
- t.setListData(e);
35
- const o = t.getReport();
36
- r.value = o;
34
+ const t = new R();
35
+ r.value = t.setListData(e).loadJson(o.templateJson).getReport();
37
36
  } catch (t) {
38
37
  console.log(t.message);
39
38
  }
40
39
  };
41
- return i({
40
+ return a({
42
41
  getJson: () => "hello world"
43
- }), (e, t) => (D(), v(s(R), {
42
+ }), (e, t) => (D(), v(s(J), {
44
43
  report: r.value,
45
44
  options: s(n),
46
45
  onSaveReport: l
@@ -1,35 +1,37 @@
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";
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
7
  class f {
8
- listData = [];
8
+ listData = void 0;
9
9
  report;
10
10
  constructor(t) {
11
- l.isNil(t) || (this.listData = t), this.report = new o.Report.StiReport();
11
+ o.isNil(t) || (this.listData = t), this.report = new r.Report.StiReport();
12
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);
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 = () => (this.report.dataSources.clear(), o.isNil(this.listData) || this.listData.length === 0 ? this.report : (this.getDataSet(this.listData), this.report));
21
+ getDataSet = (t) => {
22
+ const a = new r.System.Data.DataSet("网络打印");
23
+ for (let e = 0; e < t.length; e++) {
24
+ const i = t[e], s = new r.System.Data.DataTable(i.dataName);
25
+ this.listItem2DataTable(s, i), this.listData2DataTable(s, i), a.tables.add(s), this.report.regData(a.dataSetName, a.dataSetName, a);
24
26
  }
25
27
  this.report.dictionary.synchronize();
26
28
  };
27
29
  listItem2DataTable = (t, a) => {
28
30
  for (let e = 0; e < a.listItem.length; e++) {
29
31
  const i = a.listItem[e];
30
- if (l.isEmpty(i.printVal))
32
+ if (o.isEmpty(i.printVal))
31
33
  continue;
32
- const s = new o.System.Data.DataColumn(i.printVal);
34
+ const s = new r.System.Data.DataColumn(i.printVal);
33
35
  t.columns.add(s);
34
36
  }
35
37
  };
@@ -42,8 +44,8 @@ class f {
42
44
  getRow = (t, a, e) => {
43
45
  const i = t.newRow();
44
46
  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
+ const l = a[s];
48
+ o.isEmpty(l.printVal) || i.setValue(l.printVal, Reflect.get(e, l.itemCode));
47
49
  }
48
50
  return i;
49
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
@@ -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
- listData: TWldy.IWldyDataResponse[];
7
+ templateJson?: string;
8
+ listData?: TWldy.IWldyDataResponse[];
8
9
  };
9
10
 
10
11
  export type YzDesginerMethod = {