@ningboyz/vue 1.0.84 → 1.0.86

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 CHANGED
@@ -1,14 +1,23 @@
1
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));
2
+ import { StimulsoftFactory as g } from "./stimulsoft/desginer/index.js";
3
+ import { YzLayout as m } from "./layout/index.js";
4
+ import { StimulsoftPrinter as S } from "./stimulsoft/printer/index.js";
5
+ import "js-base64";
6
+ import "lodash";
7
+ import "./node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
8
+ import "./node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js";
9
+ import "./node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js";
10
+ import "./node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js";
11
+ import "./node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js";
12
+ import { YzMessage as D } from "./message/index.js";
13
+ const i = [r, m], x = (o) => {
14
+ i.forEach((t) => o.use(t));
7
15
  };
8
16
  export {
9
- c as StimulsoftFactory,
17
+ g as StimulsoftFactory,
18
+ S as StimulsoftPrinter,
10
19
  r as YzDesginer,
11
- e as YzLayout,
12
- l as YzMessage,
13
- n as install
20
+ m as YzLayout,
21
+ D as YzMessage,
22
+ x as install
14
23
  };
package/es/index.js CHANGED
@@ -1,13 +1,15 @@
1
1
  import * as o from "./components.js";
2
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";
3
+ import { StimulsoftFactory as f, YzDesginer as s } from "./stimulsoft/desginer/index.js";
4
+ import { StimulsoftPrinter as a } from "./stimulsoft/printer/index.js";
5
+ import { YzMessage as x } from "./message/index.js";
6
+ import { YzLayout as n } from "./layout/index.js";
6
7
  export {
7
- s as StimulsoftFactory,
8
- a as YzDesginer,
9
- i as YzLayout,
10
- p as YzMessage,
8
+ f as StimulsoftFactory,
9
+ a as StimulsoftPrinter,
10
+ s as YzDesginer,
11
+ n as YzLayout,
12
+ x as YzMessage,
11
13
  o as default,
12
14
  e as install
13
15
  };
@@ -0,0 +1,72 @@
1
+ import { decode as m } from "js-base64";
2
+ import n from "lodash";
3
+ import { Stimulsoft as l } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
4
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js";
5
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js";
6
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js";
7
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js";
8
+ class D {
9
+ static DATA_SET_NAME = "网络打印";
10
+ static loadLicense = () => {
11
+ l.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";
12
+ };
13
+ static loadLanguage = () => {
14
+ l.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文"), l.Base.Localization.StiLocalization.cultureName = "中文";
15
+ };
16
+ static createDataSet = (i, t) => {
17
+ this.getDataSet(i, t);
18
+ };
19
+ static getDataSet = (i, t) => {
20
+ const a = new l.System.Data.DataSet(this.DATA_SET_NAME);
21
+ for (let o = 0; o < t.length; o++) {
22
+ const e = t[o], s = new l.System.Data.DataTable(e.dataName);
23
+ this.listItem2DataTable(s, e), this.listData2DataTable(s, e), a.tables.add(s), i.regData(a.dataSetName, a.dataSetName, a);
24
+ }
25
+ i.dictionary.synchronize();
26
+ };
27
+ static listItem2DataTable = (i, t) => {
28
+ for (let a = 0; a < t.listItem.length; a++) {
29
+ const o = t.listItem[a];
30
+ if (n.isEmpty(o.printVal))
31
+ continue;
32
+ const e = new l.System.Data.DataColumn(o.printVal);
33
+ i.columns.add(e);
34
+ }
35
+ };
36
+ static listData2DataTable = (i, t) => {
37
+ for (let a = 0; a < t.listData.length; a++) {
38
+ const o = t.listData[a], e = this.getRow(i, t.listItem, o);
39
+ i.addRow(e);
40
+ }
41
+ };
42
+ static getRow = (i, t, a) => {
43
+ const o = i.newRow();
44
+ for (let e = 0; e < t.length; e++) {
45
+ const s = t[e];
46
+ if (!n.isEmpty(s.printVal)) {
47
+ let c = Reflect.get(a, s.itemCode);
48
+ n.isEmpty(s.jsMethod) || (c = this.execJsMethod(s.jsMethod, c)), o.setValue(s.printVal, c);
49
+ }
50
+ }
51
+ return o;
52
+ };
53
+ /**
54
+ * 执行js语句
55
+ * @param jsMethod
56
+ * @param value
57
+ * @returns
58
+ */
59
+ static execJsMethod = (i, t) => {
60
+ const a = m(i), o = new Function("value", a);
61
+ try {
62
+ const e = o(t);
63
+ n.isNil(e) || (t = e);
64
+ } catch (e) {
65
+ console.log(e.message);
66
+ }
67
+ return t;
68
+ };
69
+ }
70
+ export {
71
+ D as default
72
+ };
@@ -1,28 +1,25 @@
1
- import { defineComponent as g, ref as U, watch as S, createBlock as h, openBlock as L, unref as i } from "vue";
2
- import { Designer as v } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
- import z from "lodash";
4
- import x from "./factory.js";
1
+ import { defineComponent as v, ref as g, watch as D, createBlock as R, openBlock as S, unref as p } from "vue";
2
+ import { Designer as _ } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
+ import x from "lodash";
4
+ import b from "./factory.js";
5
5
  import { Stimulsoft as a } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
6
6
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
7
7
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
8
8
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
9
- const N = /* @__PURE__ */ g({
9
+ const O = /* @__PURE__ */ v({
10
10
  __name: "desginer",
11
11
  props: {
12
12
  templateJson: {},
13
- listData: {},
14
- registerTable: { type: Function }
13
+ listData: {}
15
14
  },
16
15
  emits: ["saveReport"],
17
- setup(p, { expose: c, emit: l }) {
18
- a.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", a.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文"), a.Base.Localization.StiLocalization.cultureName = "中文";
19
- const r = p, n = U(), s = new a.Designer.StiDesignerOptions();
16
+ setup(i, { expose: c, emit: m }) {
17
+ const n = i, r = g(), s = new a.Designer.StiDesignerOptions();
20
18
  s.appearance.fullScreenMode = !0;
21
- const m = l;
22
- S(
23
- () => [r.templateJson, r.listData],
19
+ const f = m;
20
+ D(
21
+ () => [n.templateJson, n.listData],
24
22
  (e) => {
25
- console.log(e);
26
23
  const o = e[0], t = e[1];
27
24
  d(o, t);
28
25
  },
@@ -30,27 +27,27 @@ const N = /* @__PURE__ */ g({
30
27
  deep: !0
31
28
  }
32
29
  );
33
- const f = (e) => {
30
+ const l = (e) => {
34
31
  e.preventDefault = !0;
35
32
  const o = e.report.saveToJsonString(), t = e.fileName;
36
- m("saveReport", t, o);
37
- }, u = () => z.isNil(n.value) ? "" : "data:application/pdf;base64," + n.value.exportDocument(a.Report.StiExportFormat.Pdf).toString("base64"), d = async (e, o) => {
33
+ f("saveReport", t, o);
34
+ }, u = () => x.isNil(r.value) ? "" : "data:application/pdf;base64," + r.value.exportDocument(a.Report.StiExportFormat.Pdf).toString("base64"), d = async (e, o) => {
38
35
  try {
39
- const t = new x();
40
- n.value = t.setListData(o).loadJson(e).getReport();
36
+ const t = new b(e, o);
37
+ r.value = t.getReport();
41
38
  } catch (t) {
42
- console.log(t.message);
39
+ console.error(t.message);
43
40
  }
44
41
  };
45
42
  return c({
46
43
  getPdfBase64: u
47
- }), (e, o) => (L(), h(i(v), {
48
- report: n.value,
49
- options: i(s),
50
- onSaveReport: f
44
+ }), (e, o) => (S(), R(p(_), {
45
+ report: r.value,
46
+ options: p(s),
47
+ onSaveReport: l
51
48
  }, null, 8, ["report", "options"]));
52
49
  }
53
50
  });
54
51
  export {
55
- N as default
52
+ O as default
56
53
  };
@@ -1,78 +1,31 @@
1
- import { decode as h } from "js-base64";
2
1
  import s from "lodash";
3
2
  import "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
4
- import { Stimulsoft as r } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
3
+ import t from "../dataUtils/stimulsoftData.js";
4
+ import { Stimulsoft as a } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
5
5
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
6
6
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
7
7
  import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
8
- class g {
9
- listData = void 0;
8
+ class u {
9
+ jsonTemplate;
10
+ listData;
10
11
  report;
11
- constructor(t) {
12
- s.isNil(t) || (this.listData = t), this.report = new r.Report.StiReport();
12
+ constructor(e, r) {
13
+ this.jsonTemplate = e, this.listData = r, this.report = new a.Report.StiReport();
13
14
  }
14
- initLicense = () => (r.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", r.Base.Localization.StiLocalization.addLocalizationFile("../localizations/zh.xml", !1, "中文"), r.Base.Localization.StiLocalization.cultureName = "中文", this);
15
- setListData = (t) => (this.listData = t, this);
15
+ setLicense = () => (t.loadLicense(), t.loadLanguage(), this);
16
16
  /**
17
17
  * 加载打印模版json
18
18
  * @param json
19
19
  * @returns
20
20
  */
21
- loadJson = (t) => (s.isEmpty(t) || this.report.load(t), this);
22
- getReport = () => (this.report.dataSources.clear(), s.isNil(this.listData) || this.listData.length === 0 ? this.report : (this.getDataSet(this.listData), this.report));
23
- print = () => (this.report.print(), this);
24
- printToPdf = () => (this.report.printToPdf(), this);
25
- getDataSet = (t) => {
26
- const e = new r.System.Data.DataSet("网络打印");
27
- for (let i = 0; i < t.length; i++) {
28
- const o = t[i], a = new r.System.Data.DataTable(o.dataName);
29
- this.listItem2DataTable(a, o), this.listData2DataTable(a, o), e.tables.add(a), this.report.regData(e.dataSetName, e.dataSetName, e);
30
- }
31
- this.report.dictionary.synchronize();
32
- };
33
- listItem2DataTable = (t, e) => {
34
- for (let i = 0; i < e.listItem.length; i++) {
35
- const o = e.listItem[i];
36
- if (s.isEmpty(o.printVal))
37
- continue;
38
- const a = new r.System.Data.DataColumn(o.printVal);
39
- t.columns.add(a);
40
- }
41
- };
42
- listData2DataTable = (t, e) => {
43
- for (let i = 0; i < e.listData.length; i++) {
44
- const o = e.listData[i], a = this.getRow(t, e.listItem, o);
45
- t.addRow(a);
46
- }
47
- };
48
- getRow = (t, e, i) => {
49
- const o = t.newRow();
50
- for (let a = 0; a < e.length; a++) {
51
- const n = e[a];
52
- if (!s.isEmpty(n.printVal)) {
53
- let l = Reflect.get(i, n.itemCode);
54
- s.isEmpty(n.jsMethod) || (l = this.execJsMethod(n.jsMethod, l)), o.setValue(n.printVal, l);
55
- }
56
- }
57
- return o;
58
- };
21
+ loadJson = () => (s.isEmpty(this.jsonTemplate) || this.report.load(this.jsonTemplate), this);
59
22
  /**
60
- * 执行js语句
61
- * @param jsMethod
62
- * @param value
23
+ * 加在数据
63
24
  * @returns
64
25
  */
65
- execJsMethod = (t, e) => {
66
- const i = h(t), o = new Function("value", i);
67
- try {
68
- const a = o(e);
69
- s.isNil(a) || (e = a);
70
- } catch (a) {
71
- console.error(a.message);
72
- }
73
- return e;
74
- };
26
+ loadData = () => (this.report.dataSources.clear(), !s.isNil(this.listData) && this.listData.length > 0 && t.createDataSet(this.report, this.listData), this);
27
+ getReport = () => (this.setLicense().loadJson().loadData(), this.report);
75
28
  }
76
29
  export {
77
- g as default
30
+ u as default
78
31
  };
@@ -0,0 +1,5 @@
1
+ import r from "./printer.js";
2
+ const o = r;
3
+ export {
4
+ o as StimulsoftPrinter
5
+ };
@@ -0,0 +1,64 @@
1
+ import { Stimulsoft as a } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
2
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js";
3
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js";
4
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js";
5
+ import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js";
6
+ import o from "../dataUtils/stimulsoftData.js";
7
+ import n from "lodash";
8
+ class R {
9
+ reports = [];
10
+ report;
11
+ printData;
12
+ /**
13
+ * json模版
14
+ * 打印数据
15
+ * @param jsonTemplate
16
+ * @param listData
17
+ */
18
+ constructor(t) {
19
+ this.printData = t, this.report = new a.Report.StiReport();
20
+ }
21
+ /**
22
+ * 初始化license
23
+ * @returns
24
+ */
25
+ setLicense = () => (o.loadLicense(), o.loadLanguage(), this);
26
+ /**
27
+ * 初始化报表
28
+ * @returns
29
+ */
30
+ initReport = () => {
31
+ for (let t = 0; t < this.printData.length; t++) {
32
+ const r = this.printData[t];
33
+ for (let e = 0; e < r.jsonTemplates.length; e++) {
34
+ const p = r.jsonTemplates[e];
35
+ for (let i = 0; i < r.listData.length; i++) {
36
+ const l = r.listData[i], s = new a.Report.StiReport();
37
+ s.load(p), o.createDataSet(s, l), this.reports.push(s);
38
+ }
39
+ }
40
+ }
41
+ return this;
42
+ };
43
+ /**
44
+ * 合并报表
45
+ * @returns
46
+ */
47
+ mergeReport = async () => {
48
+ for (let t = 0; t < this.reports.length; t++) {
49
+ const r = this.reports[t];
50
+ r.render(), t === 0 ? this.report = r : r.renderedPages.toList().forEach((e) => {
51
+ this.report.renderedPages.add(e.clone());
52
+ });
53
+ }
54
+ return this;
55
+ };
56
+ print() {
57
+ n.isNil(this.printData) || this.printData.length === 0 || (this.printData.forEach((t) => {
58
+ n.isNil(t.jsonTemplates) || t.jsonTemplates.length === 0 || n.isNil(t.listData) || t.listData.length;
59
+ }), this.setLicense(), this.initReport(), this.mergeReport(), this.report.print());
60
+ }
61
+ }
62
+ export {
63
+ R as default
64
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
@@ -18,5 +18,7 @@ export {};
18
18
  export * from "./components/core/core";
19
19
  export * from "./stimulsoft/desginer/desginer";
20
20
  export * from "./stimulsoft/desginer/factory";
21
+ export * from "./stimulsoft/printer/printer";
22
+ export * from "./stimulsoft/dataUtils/StimulsoftData";
21
23
  export * from "./message/message";
22
24
  export * from "./layout/layout";
@@ -0,0 +1,14 @@
1
+ import { TWldy } from "@ningboyz/types";
2
+ import { Stimulsoft } from "stimulsoft-reports-js-vuejs/designer";
3
+ declare class StimulsoftData {
4
+ private static DATA_SET_NAME: string;
5
+ public loadLicense: () => void;
6
+ public loadLanguage: () => void;
7
+ public createDataSet: (report: Stimulsoft.Report.StiReport, listData: TWldy.IWldyDataResponse[]) => void;
8
+ private getDataSet: (report: Stimulsoft.Report.StiReport, listData: TWldy.IWldyDataResponse[]) => void;
9
+ private listItem2DataTable: (dataTable: Stimulsoft.System.Data.DataTable, wldyData: TWldy.IWldyDataResponse) => void;
10
+ private listData2DataTable: (dataTable: Stimulsoft.System.Data.DataTable, wldyData: TWldy.IWldyDataResponse) => void;
11
+ private getRow: (dataTable: Stimulsoft.System.Data.DataTable, listItem: TWldy.IWldyItemResponse[], data: any) => void;
12
+ private execJsMethod: (jsMethod: string, value: any) => any;
13
+ }
14
+ export default StimulsoftData;
@@ -7,10 +7,6 @@ export declare const YzDesginer: YzComponentApp<YzDesginerProps, {}, YzDesginerS
7
7
  export type YzDesginerProps = {
8
8
  templateJson?: string;
9
9
  listData?: TWldy.IWldyDataResponse[];
10
- registerTable?: (report: Stimulsoft.Report.StiReport) => Promise<{
11
- table: Stimulsoft.Report.Components.Table.StiTable;
12
- index: number;
13
- }>;
14
10
  };
15
11
 
16
12
  export type YzDesginerMethod = {
@@ -1,19 +1,14 @@
1
1
  import { TWldy } from "@ningboyz/types";
2
2
  import { Stimulsoft } from "stimulsoft-reports-js-vuejs/designer";
3
3
  declare class Factory {
4
- private listData;
5
- private report;
6
- constructor(listData?: TWldy.IWldyDataResponse[]);
7
- initLicense: () => Factory;
8
- setListData: (listData: TWldy.IWldyDataResponse[]) => Factory;
9
- loadJson: (json: string | undefined) => Factory;
10
- getReport: () => Stimulsoft.Report.StiReport;
11
- print: () => Factory;
12
- printToPdf: () => Factory;
13
- private getDataSet;
14
- private listItem2DataTable;
15
- private listData2DataTable;
16
- private getRow;
4
+ private jsonTemplate?: string;
5
+ private listData?: TWldy.IWldyDataResponse[];
6
+ private report: Stimulsoft.Report.StiReport;
7
+ constructor(ljsonTemplate?: string, listData?: TWldy.IWldyDataResponse[]);
8
+ private setLicense: () => Factory;
9
+ private loadJson: () => Factory;
10
+ private loadData: () => Factory;
11
+ public getReport: () => Stimulsoft.Report.StiReport;
17
12
  }
18
13
  export default Factory;
19
14
 
@@ -0,0 +1,14 @@
1
+ import { TWldy, TStim } from "@ningboyz/types";
2
+ import { Stimulsoft } from "stimulsoft-reports-js-vuejs/designer";
3
+ declare class Printer {
4
+ private printData: TStim.IStimulSoftData[];
5
+ private report: Stimulsoft.Report.StiReport;
6
+ constructor(printData: TStim.IStimulSoftData[]);
7
+ private setLicense: () => Printer;
8
+ private initReport: () => Printer;
9
+ private mergeReport: () => Printer;
10
+ public print: () => void;
11
+ }
12
+ export default Printer;
13
+
14
+ export const StimulsoftPrinter = Printer;