@ningboyz/vue 1.0.8 → 1.0.10

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.
@@ -1 +1,3 @@
1
- export { default as StimulsoftDesgin } from './stimulsoft/desgin';
1
+ import { App } from 'vue';
2
+ export declare function install(app: App): void;
3
+ export * from './stimulsoft/desgin';
package/es/components.js CHANGED
@@ -1,5 +1,9 @@
1
- import "./stimulsoft/desgin/index.js";
2
- import { default as f } from "./stimulsoft/desgin/desgin.vue.js";
1
+ import { YzDesgin as t } from "./stimulsoft/desgin/index.js";
2
+ const s = [t];
3
+ function e(o) {
4
+ s.forEach((n) => o.use(n));
5
+ }
3
6
  export {
4
- f as StimulsoftDesgin
7
+ t as YzDesgin,
8
+ e as install
5
9
  };
package/es/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { Plugin } from 'vue';
2
- export * from './components.ts';
3
- declare const _default: Plugin;
4
- export default _default;
1
+ import * as YzUI from './components';
2
+ export * from './components';
3
+ export default YzUI;
package/es/index.js CHANGED
@@ -1,16 +1,8 @@
1
- import o from "./package.json.js";
2
- import * as s from "./components.js";
3
- import "./stimulsoft/desgin/index.js";
4
- import { default as l } from "./stimulsoft/desgin/desgin.vue.js";
5
- const a = {
6
- install(e) {
7
- Object.entries(s).forEach(([i, t]) => {
8
- t.install && e.use(t);
9
- });
10
- },
11
- version: o.version
12
- };
1
+ import * as o from "./components.js";
2
+ import { install as e } from "./components.js";
3
+ import { YzDesgin as p } from "./stimulsoft/desgin/index.js";
13
4
  export {
14
- l as StimulsoftDesgin,
15
- a as default
5
+ p as YzDesgin,
6
+ o as default,
7
+ e as install
16
8
  };
@@ -1,4 +1,4 @@
1
- const o = "1.0.8", s = {
1
+ const o = "1.0.10", s = {
2
2
  version: o
3
3
  };
4
4
  export {
@@ -1,3 +1,7 @@
1
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>;
2
+ declare const _default: import('vue').DefineComponent<IStimulsoftDesginProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
+ saveReport: (fileName: string, json: string) => any;
4
+ }, string, import('vue').PublicProps, Readonly<IStimulsoftDesginProps> & Readonly<{
5
+ onSaveReport?: ((fileName: string, json: string) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import o from "./desgin.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6de6eb59"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-119bbadd"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,45 +1,50 @@
1
- import { defineComponent as l, ref as m, watch as u, createBlock as f, openBlock as g, unref as n } from "vue";
2
- import { Designer as d } from "../../node_modules/stimulsoft-reports-js-vuejs/designer.js";
3
- import D from "./factory.js";
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
4
  import { Stimulsoft as _ } 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
- const x = /* @__PURE__ */ l({
8
+ const N = /* @__PURE__ */ f({
9
9
  __name: "desgin",
10
10
  props: {
11
11
  listData: {}
12
12
  },
13
- setup(s) {
14
- const p = s, o = m(), r = new _.Designer.StiDesignerOptions();
15
- r.appearance.fullScreenMode = !0, u(
16
- () => p.listData,
13
+ emits: ["saveReport"],
14
+ setup(p, { emit: i }) {
15
+ const a = p, r = u(), n = new _.Designer.StiDesignerOptions();
16
+ n.appearance.fullScreenMode = !0;
17
+ const c = i;
18
+ v(
19
+ () => a.listData,
17
20
  (e) => {
18
- c(e);
21
+ l(e);
19
22
  },
20
23
  {
21
24
  deep: !0
22
25
  }
23
26
  );
24
- const a = (e) => {
25
- e.preventDefault = !0, console.log(e);
26
- }, c = async (e) => {
27
+ const m = (e) => {
28
+ e.preventDefault = !0;
29
+ const t = e.report.saveToJsonString(), o = e.fileName;
30
+ c("saveReport", o, t);
31
+ }, l = async (e) => {
27
32
  try {
28
- const t = new D();
33
+ const t = new R();
29
34
  t.setListData(e);
30
- const i = t.getReport();
31
- o.value = i;
35
+ const o = t.getReport();
36
+ r.value = o;
32
37
  } catch (t) {
33
38
  console.log(t.message);
34
39
  }
35
40
  };
36
- return (e, t) => (g(), f(n(d), {
37
- report: o.value,
38
- options: n(r),
39
- onSaveReport: a
41
+ return (e, t) => (g(), d(s(D), {
42
+ report: r.value,
43
+ options: s(n),
44
+ onSaveReport: m
40
45
  }, null, 8, ["report", "options"]));
41
46
  }
42
47
  });
43
48
  export {
44
- x as default
49
+ N as default
45
50
  };
@@ -1,2 +1,28 @@
1
- import { default as StimulsoftDesgin } from './desgin.vue';
2
- export default StimulsoftDesgin;
1
+ import { App } from 'vue';
2
+ export declare const YzDesgin: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').IStimulsoftDesginProps> & Readonly<{
4
+ onSaveReport?: ((fileName: string, json: string) => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ saveReport: (fileName: string, json: string) => any;
7
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
8
+ P: {};
9
+ B: {};
10
+ D: {};
11
+ C: {};
12
+ M: {};
13
+ Defaults: {};
14
+ }, Readonly<import('./interface').IStimulsoftDesginProps> & Readonly<{
15
+ onSaveReport?: ((fileName: string, json: string) => any) | undefined;
16
+ }>, {}, {}, {}, {}, {}>;
17
+ __isFragment?: never;
18
+ __isTeleport?: never;
19
+ __isSuspense?: never;
20
+ } & import('vue').ComponentOptionsBase<Readonly<import('./interface').IStimulsoftDesginProps> & Readonly<{
21
+ onSaveReport?: ((fileName: string, json: string) => any) | undefined;
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ saveReport: (fileName: string, json: string) => any;
24
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
25
+ install(app: App): void;
26
+ version: string;
27
+ };
28
+ export default YzDesgin;
@@ -1,7 +1,12 @@
1
- import t from "./desgin.vue.js";
2
- t.install = (o) => {
3
- o.component(t.name || "StimulsoftDesgin", t);
4
- };
1
+ import n from "./desgin.vue.js";
2
+ import e from "../../package.json.js";
3
+ const t = Object.assign({}, n, {
4
+ install(o) {
5
+ o.component(n.name, n);
6
+ },
7
+ version: e.version
8
+ });
5
9
  export {
10
+ t as YzDesgin,
6
11
  t as default
7
12
  };
@@ -2,3 +2,6 @@ import { TWldy } from '@ningboyz/types';
2
2
  export interface IStimulsoftDesginProps {
3
3
  listData: TWldy.IWldyDataResponse[];
4
4
  }
5
+ export interface IStimulsoftDesginEmits {
6
+ (event: "saveReport", fileName: string, json: string): void;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",