@ningboyz/vue 1.0.54 → 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 +5 -5
- package/es/layout/index.js +6 -7
- package/es/message/index.js +2 -6
- package/es/message/message.js +1 -0
- package/es/stimulsoft/desginer/desginer.vue.js +5 -5
- package/es/stimulsoft/desginer/index.js +5 -6
- package/package.json +1 -1
- package/types/components.d.ts +5 -0
- package/types/index.d.ts +2 -2
- package/types/layout/index.d.ts +15 -0
- package/types/layout/layout.vue.d.ts +16 -0
- package/types/layout/types.d.ts +11 -0
- package/types/message/index.d.ts +2 -0
- package/types/message/message.d.ts +13 -0
- package/types/message/types.d.ts +3 -0
- package/types/stimulsoft/desginer/desginer.vue.d.ts +9 -0
- package/types/stimulsoft/desginer/factory.d.ts +14 -0
- package/types/stimulsoft/desginer/index.d.ts +7 -0
- package/types/stimulsoft/desginer/types.d.ts +10 -0
- package/types/all.d.ts +0 -20
- package/types/components/core/core.d.ts +0 -27
- package/types/components/layout/layout.d.ts +0 -17
- package/types/components/message/message.d.ts +0 -10
- package/types/components/stimulsoft/desginer/desginer.d.ts +0 -20
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
-
|
|
10
|
+
f as YzMessage,
|
|
11
|
+
p as install
|
|
12
12
|
};
|
package/es/layout/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
+
m as YzLayout
|
|
9
8
|
};
|
package/es/message/index.js
CHANGED
package/es/message/message.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
3
|
-
import
|
|
2
|
+
import { Designer as S } 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";
|
|
@@ -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("
|
|
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(
|
|
43
|
+
}), (e, t) => (D(), v(s(S), {
|
|
44
44
|
report: r.value,
|
|
45
45
|
options: s(n),
|
|
46
46
|
onSaveReport: l
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as YzUI from "./
|
|
2
|
-
export * from
|
|
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,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,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,20 +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 * from "./components/core/core";
|
|
18
|
-
export * from "./components/stimulsoft/desginer/desginer";
|
|
19
|
-
export * from "./components/message/message";
|
|
20
|
-
export * from "./components/layout/layout";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { App, DefineSetupFnComponent, EmitsOptions, SlotsType } 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
|
-
// };
|
|
20
|
-
|
|
21
|
-
export type YzComponent<P extends Record<string, any>, E extends EmitsOptions, S extends SlotsType = {}> = {
|
|
22
|
-
props?: P;
|
|
23
|
-
emits?: E;
|
|
24
|
-
slots?: S;
|
|
25
|
-
} & {
|
|
26
|
-
install(app: App): void;
|
|
27
|
-
};
|
|
@@ -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, YzLayoutMethods, YzLayoutSlots>;
|
|
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,20 +0,0 @@
|
|
|
1
|
-
import { TWldy } from "@ningboyz/types";
|
|
2
|
-
import YzComponent from "../../core/core";
|
|
3
|
-
|
|
4
|
-
export declare const YzDesginer: YzComponent<YzDesginerProps, YzDesginerMethods, YzDesginerSlots>;
|
|
5
|
-
|
|
6
|
-
export type YzDesginerProps = {
|
|
7
|
-
listData: TWldy.IWldyDataResponse[];
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type YzDesginerInstance = {
|
|
11
|
-
getJson: () => string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type YzDesginerSlots = {
|
|
15
|
-
title?: () => any;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type YzDesginerMethods = {
|
|
19
|
-
onSaveReport: [fileName: string, json: string];
|
|
20
|
-
};
|