@ningboyz/vue 1.0.52 → 1.0.55

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,12 +1,12 @@
1
1
  import { YzDesginer as t } from "./stimulsoft/desginer/index.js";
2
- import { YzMessage as s } from "./message/index.js";
3
2
  import { YzLayout as e } from "./layout/index.js";
4
- const m = [t, e, s], a = (o) => {
5
- m.forEach((r) => o.use(r));
3
+ import { YzMessage as f } from "./message/index.js";
4
+ const s = [t, e], p = (o) => {
5
+ s.forEach((r) => o.use(r));
6
6
  };
7
7
  export {
8
8
  t as YzDesginer,
9
9
  e as YzLayout,
10
- s as YzMessage,
11
- a as install
10
+ f as YzMessage,
11
+ p as install
12
12
  };
@@ -1,9 +1,8 @@
1
- import n from "./layout.vue.js";
2
- const a = Object.assign({}, n, {
3
- install(o) {
4
- o.component(n.name, n);
5
- }
6
- });
1
+ import o from "./layout.vue.js";
2
+ o.install = (n) => {
3
+ n.component(o.name, o);
4
+ };
5
+ const m = o;
7
6
  export {
8
- a as YzLayout
7
+ m as YzLayout
9
8
  };
@@ -1,9 +1,5 @@
1
1
  import { Message as e } from "./message.js";
2
- const n = Object.assign({}, e, {
3
- install(s) {
4
- s.component(e.name || "yz-message", e);
5
- }
6
- });
2
+ const o = e;
7
3
  export {
8
- n as YzMessage
4
+ o as YzMessage
9
5
  };
@@ -25,6 +25,7 @@ class c {
25
25
  status: e
26
26
  });
27
27
  };
28
+ static install;
28
29
  }
29
30
  export {
30
31
  c as Message
@@ -1,7 +1,7 @@
1
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/stimulsoft-reports-js-vuejs/designer.js";
3
- import _ from "./factory.js";
4
- import { Stimulsoft as S } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
2
+ import { Designer as S } 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
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";
@@ -10,9 +10,9 @@ const O = /* @__PURE__ */ f({
10
10
  props: {
11
11
  listData: {}
12
12
  },
13
- emits: ["saveReport", "test"],
13
+ emits: ["onSaveReport"],
14
14
  setup(p, { expose: i, emit: a }) {
15
- const c = p, r = g(), n = new S.Designer.StiDesignerOptions();
15
+ const c = p, r = g(), n = new _.Designer.StiDesignerOptions();
16
16
  n.appearance.fullScreenMode = !0;
17
17
  const m = a;
18
18
  d(
@@ -27,10 +27,10 @@ const O = /* @__PURE__ */ f({
27
27
  const l = (e) => {
28
28
  e.preventDefault = !0;
29
29
  const t = e.report.saveToJsonString(), o = e.fileName;
30
- m("saveReport", o, t);
30
+ m("onSaveReport", o, t);
31
31
  }, u = async (e) => {
32
32
  try {
33
- const t = new _();
33
+ const t = new R();
34
34
  t.setListData(e);
35
35
  const o = t.getReport();
36
36
  r.value = o;
@@ -40,7 +40,7 @@ const O = /* @__PURE__ */ f({
40
40
  };
41
41
  return i({
42
42
  getJson: () => "hello world"
43
- }), (e, t) => (D(), v(s(R), {
43
+ }), (e, t) => (D(), v(s(S), {
44
44
  report: r.value,
45
45
  options: s(n),
46
46
  onSaveReport: l
@@ -1,9 +1,8 @@
1
1
  import n from "./desginer.vue.js";
2
- const s = Object.assign({}, n, {
3
- install(e) {
4
- e.component(n.name, n);
5
- }
6
- });
2
+ n.install = (o) => {
3
+ o.component(n.name, n);
4
+ };
5
+ const m = n;
7
6
  export {
8
- s as YzDesginer
7
+ m as YzDesginer
9
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.52",
3
+ "version": "1.0.55",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
@@ -0,0 +1,5 @@
1
+ import { App } from 'vue';
2
+ export declare const install: (app: App) => void;
3
+ export * from './stimulsoft/desginer';
4
+ export * from './message';
5
+ export * from './layout';
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import * as YzUI from "./all";
2
- export * from "./all";
1
+ import * as YzUI from "./components";
2
+ export * from './components';
3
3
  export default YzUI;
@@ -0,0 +1,15 @@
1
+ export declare const YzLayout: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').YzLayoutProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<import('./types').YzLayoutProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: never;
11
+ __isTeleport?: never;
12
+ __isSuspense?: never;
13
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').YzLayoutProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
14
+ $slots: Readonly<import('./types').YzLayoutSlots> & import('./types').YzLayoutSlots;
15
+ });
@@ -0,0 +1,16 @@
1
+ import { YzLayoutProps, YzLayoutSlots } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<YzLayoutSlots> & YzLayoutSlots;
5
+ refs: {};
6
+ rootEl: any;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<YzLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<YzLayoutProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ export default _default;
12
+ type __VLS_WithTemplateSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,11 @@
1
+ import { VxeLayoutAsideProps } from 'vxe-pc-ui';
2
+ import { VNode } from 'vue';
3
+ export type YzLayoutProps = {
4
+ asideProps: VxeLayoutAsideProps;
5
+ };
6
+ export type YzLayoutSlots = {
7
+ header?: () => VNode | string;
8
+ aside?: () => VNode | string;
9
+ body?: () => VNode | string;
10
+ };
11
+ export type YzLayoutEmits = {};
@@ -0,0 +1,2 @@
1
+ import { Message } from './message';
2
+ export declare const YzMessage: typeof Message;
@@ -0,0 +1,13 @@
1
+ import { YzMessageOptions } from './types';
2
+ export declare class Message {
3
+ private static messageErrorId;
4
+ private static messageSuccessId;
5
+ private static messageWarningId;
6
+ private static options;
7
+ static config: (options: YzMessageOptions) => void;
8
+ static showError: (message: string) => void;
9
+ static showSuccess: (message: string) => void;
10
+ static showWarning: (message: string) => void;
11
+ private static showMessage;
12
+ static install: any;
13
+ }
@@ -0,0 +1,3 @@
1
+ export type YzMessageOptions = {
2
+ duration: number;
3
+ };
@@ -0,0 +1,9 @@
1
+ import { YzDesginerProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<YzDesginerProps, {
3
+ getJson: () => string;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ onSaveReport: (filename: string, json: string) => any;
6
+ }, string, import('vue').PublicProps, Readonly<YzDesginerProps> & Readonly<{
7
+ onOnSaveReport?: ((filename: string, json: string) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -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,7 @@
1
+ export declare const YzDesginer: import('vue').DefineComponent<import('./types').YzDesginerProps, {
2
+ getJson: () => string;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ onSaveReport: (filename: string, json: string) => any;
5
+ }, string, import('vue').PublicProps, Readonly<import('./types').YzDesginerProps> & Readonly<{
6
+ onOnSaveReport?: ((filename: string, json: string) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,10 @@
1
+ import { TWldy } from '@ningboyz/types';
2
+ export type YzDesginerProps = {
3
+ listData: TWldy.IWldyDataResponse[];
4
+ };
5
+ export type YzDesginerEmits = {
6
+ onSaveReport: [filename: string, json: string];
7
+ };
8
+ export type YzDesginerInstance = {
9
+ getJson: () => string;
10
+ };
package/types/all.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import { type App } from "vue";
2
- import YzDesginer from "./components/stimulsoft/desginer/desginer";
3
- import YzLayout from "./components/layout/layout";
4
- import YzMessage from "./components/message/message";
5
- interface AllComponents {
6
- YzDesginer: typeof YzDesginer;
7
- YzLayout: typeof YzLayout;
8
- YzMessage: typeof YzMessage;
9
- }
10
-
11
- export function install(app: App): void;
12
-
13
- declare module "@vue/runtime-core" {
14
- export interface GlobalComponents extends AllComponents {}
15
- }
16
-
17
- export {};
18
-
19
- export * from "./components/core/core";
20
- export * from "./components/stimulsoft/desginer/desginer";
21
- export * from "./components/message/message";
22
- export * from "./components/layout/layout";
@@ -1,19 +0,0 @@
1
- import { App } from "vue";
2
-
3
- /**
4
- * 组件类型
5
- */
6
- export type YzComponent<
7
- P = { [key: string]: any }, //props
8
- E = { [key: string]: any }, //event
9
- S = { [key: string]: (...args: any[]) => any }, //slots
10
- M = { [key: string]: any } //method emits
11
- > = {
12
- new (): {
13
- $props: P & E;
14
- $slots: S;
15
- $emit: M;
16
- };
17
- } & {
18
- install(app: App): void;
19
- };
@@ -1,17 +0,0 @@
1
- import { YzComponent } from "../core/core";
2
- import { VxeLayoutAsideProps } from "vxe-pc-ui";
3
- import { VNode } from "vue";
4
-
5
- export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots, YzLayoutMethods>;
6
-
7
- export type YzLayoutProps = {
8
- asideProps: VxeLayoutAsideProps;
9
- };
10
-
11
- export type YzLayoutSlots = {
12
- header?: () => VNode | string;
13
- aside?: () => VNode | string;
14
- body?: () => VNode | string;
15
- };
16
-
17
- export type YzLayoutMethods = {};
@@ -1,10 +0,0 @@
1
- export type YzMessageOptions = {
2
- duration?: number;
3
- };
4
-
5
- export declare class YzMessage {
6
- public static config(options: YzMessageOptions);
7
- public static showError(message: string);
8
- public static showSuccess(message: string);
9
- public static showWarning(message: string);
10
- }
@@ -1,29 +0,0 @@
1
- import { TWldy } from "@ningboyz/types";
2
- import { YzComponent } from "../../core/core";
3
-
4
- export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethods>;
5
-
6
- export namespace YzDesginerPropTypes {
7
- export type ListData = TWldy.IWldyDataResponse[];
8
- }
9
-
10
- export type YzDesginerProps = {
11
- listData: YzDesginerPropTypes.ListData;
12
- };
13
-
14
- export type YzDesginerInstance = {
15
- getJson: () => string;
16
- };
17
-
18
- export type YzDesginerSlots = {
19
- title?: () => any;
20
- };
21
-
22
- export namespace YzDesginerMethodsTypes {
23
- export type SaveReport = (fileName: string, json: string) => void;
24
- }
25
-
26
- export type YzDesginerMethods = {
27
- saveReport: [fileName: string, json: string];
28
- test: YzDesginerMethodsTypes.SaveReport;
29
- };