@ningboyz/vue 1.0.5
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/components.d.ts +1 -0
- package/es/components.js +5 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +16 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/designer.js +77 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js +7956 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js +49958 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js +21875 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js +107961 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js +12892 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js +13842 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js +1067 -0
- package/es/node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js +11271 -0
- package/es/package.json.js +7 -0
- package/es/stimulsoft/desgin/desgin.vue.d.ts +3 -0
- package/es/stimulsoft/desgin/desgin.vue.js +7 -0
- package/es/stimulsoft/desgin/desgin.vue2.js +41 -0
- package/es/stimulsoft/desgin/factory.d.ts +14 -0
- package/es/stimulsoft/desgin/factory.js +53 -0
- package/es/stimulsoft/desgin/index.d.ts +2 -0
- package/es/stimulsoft/desgin/index.js +7 -0
- package/es/stimulsoft/desgin/interface.d.ts +4 -0
- package/package.json +51 -0
- package/readme.md +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IStimulsoftDesginProps } from './interface';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IStimulsoftDesginProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IStimulsoftDesginProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as a, ref as c, watch as m, createBlock as l, openBlock as u, unref as n } from "vue";
|
|
2
|
+
import { Designer as f } from "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/designer.js";
|
|
3
|
+
import d from "./factory.js";
|
|
4
|
+
import { Stimulsoft as g } from "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/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.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
6
|
+
import "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
7
|
+
import "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js";
|
|
8
|
+
const v = /* @__PURE__ */ a({
|
|
9
|
+
__name: "desgin",
|
|
10
|
+
props: {
|
|
11
|
+
listData: {}
|
|
12
|
+
},
|
|
13
|
+
setup(s) {
|
|
14
|
+
const p = s, o = c(), r = new g.Designer.StiDesignerOptions();
|
|
15
|
+
r.appearance.fullScreenMode = !0, m(
|
|
16
|
+
() => p.listData,
|
|
17
|
+
(t) => {
|
|
18
|
+
i(t);
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
immediate: !0,
|
|
22
|
+
deep: !0
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
const i = async (t) => {
|
|
26
|
+
try {
|
|
27
|
+
const e = new d();
|
|
28
|
+
e.setListData(t), o.value = e.getReport();
|
|
29
|
+
} catch (e) {
|
|
30
|
+
console.log(e.message);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (t, e) => (u(), l(n(f), {
|
|
34
|
+
report: o.value,
|
|
35
|
+
options: n(r)
|
|
36
|
+
}, null, 8, ["report", "options"]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
v as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TWldy } from '@ningboyz/types';
|
|
2
|
+
import { Stimulsoft } from 'stimulsoft-reports-js-vuejs/designer';
|
|
3
|
+
declare class Factory {
|
|
4
|
+
private listData;
|
|
5
|
+
private report;
|
|
6
|
+
constructor(listData?: TWldy.IWldyDataResponse[]);
|
|
7
|
+
setListData: (listData: TWldy.IWldyDataResponse[]) => void;
|
|
8
|
+
getReport: () => Stimulsoft.Report.StiReport;
|
|
9
|
+
private getDataSet;
|
|
10
|
+
private listItem2DataTable;
|
|
11
|
+
private listData2DataTable;
|
|
12
|
+
private getRow;
|
|
13
|
+
}
|
|
14
|
+
export default Factory;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import l from "lodash";
|
|
2
|
+
import "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/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.2/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.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js";
|
|
5
|
+
import "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js";
|
|
6
|
+
import "../../node_modules/.pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/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
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ningboyz/vue",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "宁波甬政vue-ui库",
|
|
6
|
+
"author": "nbyt-syq",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./es/index.d.ts",
|
|
12
|
+
"import": "./es/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./es/*": "./es/*",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"main": "es/index.js",
|
|
18
|
+
"types": "es/index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"es"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "vite build",
|
|
24
|
+
"prettier": "prettier --config ./.prettierrc --write \"./**/*.{ts,tsx}\" "
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@ningboyz/types": "1.2.30",
|
|
32
|
+
"lodash": "4.17.21",
|
|
33
|
+
"stimulsoft-reports-js-vuejs": "2025.3.2",
|
|
34
|
+
"vue": "3.5.20"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@tsconfig/node22": "^22.0.2",
|
|
38
|
+
"@types/lodash": "^4.17.20",
|
|
39
|
+
"@types/node": "^22.16.5",
|
|
40
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
41
|
+
"@vue/tsconfig": "^0.7.0",
|
|
42
|
+
"npm-run-all2": "^8.0.4",
|
|
43
|
+
"sass": "^1.91.0",
|
|
44
|
+
"typescript": "~5.8.0",
|
|
45
|
+
"vite": "^7.1.3",
|
|
46
|
+
"vite-plugin-dts": "^4.5.4",
|
|
47
|
+
"vite-plugin-tsx-resolve-types": "^0.0.4",
|
|
48
|
+
"vite-plugin-vue-devtools": "^8.0.0",
|
|
49
|
+
"vue-tsc": "^3.0.4"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/readme.md
ADDED
|
File without changes
|