@ningboyz/vue 1.0.19 → 1.0.20

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/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import * as YzUI from './components';
2
+ export * from './components';
3
+ export default YzUI;
@@ -1,7 +1,7 @@
1
- import { IStimulsoftDesginProps } from './interface';
2
- declare const _default: import('vue').DefineComponent<IStimulsoftDesginProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1
+ import { YzDesginerProps } from 'types/components/stimulsoft/desginer/desginer';
2
+ declare const _default: import('vue').DefineComponent<YzDesginerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  saveReport: (fileName: string, json: string) => any;
4
- }, string, import('vue').PublicProps, Readonly<IStimulsoftDesginProps> & Readonly<{
4
+ }, string, import('vue').PublicProps, Readonly<YzDesginerProps> & Readonly<{
5
5
  onSaveReport?: ((fileName: string, json: string) => any) | undefined;
6
6
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
7
  export default _default;
@@ -1,7 +1,50 @@
1
- import e from "./desginer.vue2.js";
2
- /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-37e004ee"]]);
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({
9
+ __name: "desginer",
10
+ props: {
11
+ listData: {}
12
+ },
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,
20
+ (e) => {
21
+ l(e);
22
+ },
23
+ {
24
+ deep: !0
25
+ }
26
+ );
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) => {
32
+ try {
33
+ const t = new R();
34
+ t.setListData(e);
35
+ const o = t.getReport();
36
+ r.value = o;
37
+ } catch (t) {
38
+ console.log(t.message);
39
+ }
40
+ };
41
+ return (e, t) => (g(), d(s(D), {
42
+ report: r.value,
43
+ options: s(n),
44
+ onSaveReport: m
45
+ }, null, 8, ["report", "options"]));
46
+ }
47
+ });
5
48
  export {
6
- p as default
49
+ N as default
7
50
  };
@@ -1,50 +1,4 @@
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({
9
- __name: "desginer",
10
- props: {
11
- listData: {}
12
- },
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,
20
- (e) => {
21
- l(e);
22
- },
23
- {
24
- deep: !0
25
- }
26
- );
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) => {
32
- try {
33
- const t = new R();
34
- t.setListData(e);
35
- const o = t.getReport();
36
- r.value = o;
37
- } catch (t) {
38
- console.log(t.message);
39
- }
40
- };
41
- return (e, t) => (g(), d(s(D), {
42
- report: r.value,
43
- options: s(n),
44
- onSaveReport: m
45
- }, null, 8, ["report", "options"]));
46
- }
47
- });
1
+ import f from "./desginer.vue.js";
48
2
  export {
49
- N as default
3
+ f as default
50
4
  };
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
2
  export declare const YzDesginer: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').IStimulsoftDesginProps> & Readonly<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
4
4
  onSaveReport?: ((fileName: string, json: string) => any) | undefined;
5
5
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
6
  saveReport: (fileName: string, json: string) => any;
@@ -11,17 +11,16 @@ export declare const YzDesginer: {
11
11
  C: {};
12
12
  M: {};
13
13
  Defaults: {};
14
- }, Readonly<import('./interface').IStimulsoftDesginProps> & Readonly<{
14
+ }, Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
15
15
  onSaveReport?: ((fileName: string, json: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, {}>;
17
17
  __isFragment?: never;
18
18
  __isTeleport?: never;
19
19
  __isSuspense?: never;
20
- } & import('vue').ComponentOptionsBase<Readonly<import('./interface').IStimulsoftDesginProps> & Readonly<{
20
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../../types/components/stimulsoft/desginer/desginer').YzDesginerProps> & Readonly<{
21
21
  onSaveReport?: ((fileName: string, json: string) => any) | undefined;
22
22
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
23
  saveReport: (fileName: string, json: string) => any;
24
24
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
25
25
  install(app: App): void;
26
26
  };
27
- export * from './interface';
@@ -1,7 +1,7 @@
1
- import e from "./desginer.vue.js";
2
- const s = Object.assign({}, e, {
3
- install(n) {
4
- n.component(e.name, e);
1
+ import n from "./desginer.vue.js";
2
+ const s = Object.assign({}, n, {
3
+ install(e) {
4
+ e.component(n.name, n);
5
5
  }
6
6
  });
7
7
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "private": false,
5
5
  "description": "宁波甬政vue-ui库",
6
6
  "author": "nbyt-syq",
@@ -15,10 +15,10 @@
15
15
  "./package.json": "./package.json"
16
16
  },
17
17
  "main": "es/index.js",
18
- "types": "es/index.d.ts",
18
+ "types": "types/index.d.ts",
19
19
  "files": [
20
20
  "es",
21
- "components.d.ts"
21
+ "index.d.ts"
22
22
  ],
23
23
  "scripts": {
24
24
  "build": "vite build",
@@ -1,9 +0,0 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
7
- export {
8
- s as default
9
- };
@@ -1,7 +0,0 @@
1
- import { TWldy } from '@ningboyz/types';
2
- export interface IStimulsoftDesginProps {
3
- listData: TWldy.IWldyDataResponse[];
4
- }
5
- export interface IStimulsoftDesginEmits {
6
- (event: "saveReport", fileName: string, json: string): void;
7
- }