@ningboyz/vue 1.0.39 → 1.0.41

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 (19) hide show
  1. package/es/components.js +7 -5
  2. package/es/index.js +4 -2
  3. package/es/message/index.js +21 -0
  4. package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.reports.engine.js +6 -1
  5. package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.viewer.js +6 -1
  6. package/es/stimulsoft/desginer/desginer.vue.js +23 -21
  7. package/es/stimulsoft/desginer/factory.js +5 -5
  8. package/package.json +4 -2
  9. package/types/all.d.ts +4 -3
  10. package/types/components/core/{component.d.ts → core.d.ts} +3 -1
  11. package/types/components/message/message.d.ts +7 -0
  12. package/types/components/stimulsoft/desginer/desginer.d.ts +5 -5
  13. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/designer.js +0 -0
  14. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.blockly.editor.js +0 -0
  15. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.designer.js +0 -0
  16. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.reports.chart.js +0 -0
  17. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.reports.export.js +0 -0
  18. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.reports.import.xlsx.js +0 -0
  19. /package/es/node_modules/{stimulsoft-reports-js-vuejs → .pnpm/stimulsoft-reports-js-vuejs@2025.3.2_typescript@5.8.2/node_modules/stimulsoft-reports-js-vuejs}/stimulsoft.reports.maps.js +0 -0
package/es/components.js CHANGED
@@ -1,8 +1,10 @@
1
- import { YzDesginer as s } from "./stimulsoft/desginer/index.js";
2
- const t = [s], r = (o) => {
3
- t.forEach((n) => o.use(n));
1
+ import { YzDesginer as e } from "./stimulsoft/desginer/index.js";
2
+ import * as n from "./message/index.js";
3
+ const r = [e], a = (o) => {
4
+ r.forEach((s) => o.use(s));
4
5
  };
5
6
  export {
6
- s as YzDesginer,
7
- r as install
7
+ e as YzDesginer,
8
+ n as YzMessage,
9
+ a as install
8
10
  };
package/es/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import * as o from "./components.js";
2
2
  import { install as t } from "./components.js";
3
- import { YzDesginer as p } from "./stimulsoft/desginer/index.js";
3
+ import * as e from "./message/index.js";
4
+ import { YzDesginer as m } from "./stimulsoft/desginer/index.js";
4
5
  export {
5
- p as YzDesginer,
6
+ m as YzDesginer,
7
+ e as YzMessage,
6
8
  o as default,
7
9
  t as install
8
10
  };
@@ -0,0 +1,21 @@
1
+ import { VxeUI as t } from "vxe-pc-ui";
2
+ class r {
3
+ static messageId = "vxe-modal-message-id-d0556a60da2a";
4
+ static options;
5
+ static config = (s) => {
6
+ this.options = s;
7
+ };
8
+ static showError(s) {
9
+ this.showMessage(this.messageId, s, "error");
10
+ }
11
+ static showMessage = (s, a, e) => {
12
+ t.modal.message({
13
+ id: s,
14
+ content: a,
15
+ status: e
16
+ });
17
+ };
18
+ }
19
+ export {
20
+ r as Message
21
+ };
@@ -23392,7 +23392,12 @@ __.aa.jOxek = class {
23392
23392
  }
23393
23393
  }
23394
23394
  static juboa(i) {
23395
- return !0;
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
+ }
23396
23401
  }
23397
23402
  static oskbb(i) {
23398
23403
  try {
@@ -10437,7 +10437,12 @@ S.a.StiFontsHelper = class {
10437
10437
  {
10438
10438
  class e {
10439
10439
  static QVBaqHost() {
10440
- return !0;
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);
10441
10446
  }
10442
10447
  static isValids(o, a) {
10443
10448
  if (!a) return !0;
@@ -1,36 +1,36 @@
1
- import { defineComponent as f, ref as u, watch as v, createBlock as d, openBlock as g, unref as s } from "vue";
2
- import { Designer as D } 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
- const N = /* @__PURE__ */ f({
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.2/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.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 O = /* @__PURE__ */ f({
9
9
  __name: "desginer",
10
10
  props: {
11
11
  listData: {}
12
12
  },
13
13
  emits: ["saveReport"],
14
- setup(p, { emit: i }) {
15
- const a = p, r = u(), n = new _.Designer.StiDesignerOptions();
14
+ setup(p, { expose: i, emit: a }) {
15
+ const c = p, r = g(), n = new S.Designer.StiDesignerOptions();
16
16
  n.appearance.fullScreenMode = !0;
17
- const c = i;
18
- v(
19
- () => a.listData,
17
+ const m = a;
18
+ d(
19
+ () => c.listData,
20
20
  (e) => {
21
- l(e);
21
+ u(e);
22
22
  },
23
23
  {
24
24
  deep: !0
25
25
  }
26
26
  );
27
- const m = (e) => {
27
+ const l = (e) => {
28
28
  e.preventDefault = !0;
29
29
  const t = e.report.saveToJsonString(), o = e.fileName;
30
- c("saveReport", o, t);
31
- }, l = async (e) => {
30
+ m("saveReport", o, t);
31
+ }, u = async (e) => {
32
32
  try {
33
- const t = new R();
33
+ const t = new _();
34
34
  t.setListData(e);
35
35
  const o = t.getReport();
36
36
  r.value = o;
@@ -38,13 +38,15 @@ const N = /* @__PURE__ */ f({
38
38
  console.log(t.message);
39
39
  }
40
40
  };
41
- return (e, t) => (g(), d(s(D), {
41
+ return i({
42
+ getJson: () => "hello world"
43
+ }), (e, t) => (D(), v(s(R), {
42
44
  report: r.value,
43
45
  options: s(n),
44
- onSaveReport: m
46
+ onSaveReport: l
45
47
  }, null, 8, ["report", "options"]));
46
48
  }
47
49
  });
48
50
  export {
49
- N as default
51
+ O as default
50
52
  };
@@ -1,9 +1,9 @@
1
1
  import l from "lodash";
2
- import "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
- import { Stimulsoft as o } 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";
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
7
  class f {
8
8
  listData = [];
9
9
  report;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "private": false,
5
+ "type": "module",
5
6
  "description": "宁波甬政vue-ui库",
6
7
  "author": "nbyt-syq",
7
8
  "license": "ISC",
@@ -35,7 +36,8 @@
35
36
  "@ningboyz/types": "1.2.30",
36
37
  "lodash": "4.17.21",
37
38
  "stimulsoft-reports-js-vuejs": "2025.3.2",
38
- "vue": "3.5.20"
39
+ "vue": "3.5.20",
40
+ "vxe-pc-ui": "4.9.5"
39
41
  },
40
42
  "devDependencies": {
41
43
  "@eslint/js": "9.34.0",
package/types/all.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import YzDesginer from "./components/stimulsoft/desginer/desginer";
2
1
  import { type App } from "vue";
3
-
2
+ import YzDesginer from "./components/stimulsoft/desginer/desginer";
3
+ import YzMessage from "./components/message/message";
4
4
  interface AllComponents {
5
5
  YzDesginer: typeof YzDesginer;
6
6
  }
@@ -17,5 +17,6 @@ declare module "vue" {
17
17
 
18
18
  export {};
19
19
 
20
- export * from "./components/core/component";
20
+ export * from "./components/core/core";
21
21
  export * from "./components/stimulsoft/desginer/desginer";
22
+ export * from "./components/message/message";
@@ -7,12 +7,14 @@ export type YzComponent<
7
7
  P = { [key: string]: any }, //props
8
8
  E = { [key: string]: any }, //event
9
9
  S = { [key: string]: (...args: any[]) => any }, //slots
10
- M = { [key: string]: any } //method emits
10
+ M = { [key: string]: any }, //method emits
11
+ R = { [key: string]: any } //refs
11
12
  > = {
12
13
  new (): {
13
14
  $props: P & E;
14
15
  $slots: S;
15
16
  $emit: M;
17
+ $refs: R;
16
18
  };
17
19
  } & {
18
20
  install(app: App): void;
@@ -0,0 +1,7 @@
1
+ export type YzMessageOptions = {
2
+ duration?: number;
3
+ };
4
+
5
+ export declare class Message {
6
+ public showError(message: string);
7
+ }
@@ -1,7 +1,7 @@
1
1
  import { TWldy } from "@ningboyz/types";
2
- import { YzComponent } from "../../core/component";
2
+ import { YzComponent } from "../../core/core";
3
3
 
4
- export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethod>;
4
+ export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerEmits, YzDesginerInstance>;
5
5
 
6
6
  export namespace YzDesginerPropTypes {
7
7
  export type ListData = TWldy.IWldyDataResponse[];
@@ -11,9 +11,9 @@ export type YzDesginerProps = {
11
11
  listData: YzDesginerPropTypes.ListData;
12
12
  };
13
13
 
14
- export type YzDesginerMethod = {
15
- onOK: () => void;
16
- } & YzDesginerEmits;
14
+ export type YzDesginerInstance = {
15
+ getJson: () => string;
16
+ };
17
17
 
18
18
  export type YzDesginerEmits = {
19
19
  (event: "saveReport", fileName: string, json: string): void;