@ningboyz/vue 1.0.77 → 1.0.78
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/package.json +35 -35
- package/types/components/core/core.d.ts +14 -14
- package/types/components.d.ts +22 -22
- package/types/index.d.ts +3 -3
- package/types/layout/layout.d.ts +15 -15
- package/types/message/message.d.ts +16 -16
- package/types/stimulsoft/desginer/desginer.d.ts +19 -19
- package/types/stimulsoft/desginer/factory.d.ts +20 -20
- package/es/components.js +0 -14
- package/es/index.js +0 -13
- package/es/layout/index.js +0 -8
- package/es/layout/layout.vue.js +0 -46
- package/es/layout/layout.vue2.js +0 -4
- package/es/message/index.js +0 -5
- package/es/message/message.js +0 -56
- package/es/node_modules/stimulsoft-reports-js-vuejs/designer.js +0 -77
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.blockly.editor.js +0 -7956
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.designer.js +0 -49958
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js +0 -21875
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js +0 -107956
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js +0 -12892
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js +0 -13842
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js +0 -1067
- package/es/node_modules/stimulsoft-reports-js-vuejs/stimulsoft.viewer.js +0 -11266
- package/es/stimulsoft/desginer/desginer.vue.js +0 -54
- package/es/stimulsoft/desginer/desginer.vue2.js +0 -4
- package/es/stimulsoft/desginer/factory.js +0 -58
- package/es/stimulsoft/desginer/index.js +0 -10
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ningboyz/vue",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"description": "宁波甬政vue-ui库",
|
|
7
|
-
"author": "nbyt-syq",
|
|
8
|
-
"license": "ISC",
|
|
9
|
-
"keywords": [],
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./types/index.d.ts",
|
|
13
|
-
"import": "./es/index.js"
|
|
14
|
-
},
|
|
15
|
-
"./es/*": "./es/*",
|
|
16
|
-
"./types/*": "./types/*",
|
|
17
|
-
"./package.json": "./package.json"
|
|
18
|
-
},
|
|
19
|
-
"main": "es/index.js",
|
|
20
|
-
"types": "types/index.d.ts",
|
|
21
|
-
"files": [
|
|
22
|
-
"es",
|
|
23
|
-
"types",
|
|
24
|
-
"styles"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "vite build",
|
|
28
|
-
"prettier": "prettier --config ./.prettierrc --write \"./**/*.{ts,tsx}\" ",
|
|
29
|
-
"lint": "eslint ."
|
|
30
|
-
},
|
|
31
|
-
"publishConfig": {
|
|
32
|
-
"access": "public",
|
|
33
|
-
"registry": "https://registry.npmjs.org/"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ningboyz/vue",
|
|
3
|
+
"version": "1.0.78",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "宁波甬政vue-ui库",
|
|
7
|
+
"author": "nbyt-syq",
|
|
8
|
+
"license": "ISC",
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./types/index.d.ts",
|
|
13
|
+
"import": "./es/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./es/*": "./es/*",
|
|
16
|
+
"./types/*": "./types/*",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"main": "es/index.js",
|
|
20
|
+
"types": "types/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"es",
|
|
23
|
+
"types",
|
|
24
|
+
"styles"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "vite build",
|
|
28
|
+
"prettier": "prettier --config ./.prettierrc --write \"./**/*.{ts,tsx}\" ",
|
|
29
|
+
"lint": "eslint ."
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"registry": "https://registry.npmjs.org/"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type App } from "vue";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 组件类型
|
|
5
|
-
*/
|
|
6
|
-
export type YzComponentApp<P = { [key: string]: any }, E = { [key: string]: any }, S = { [key: string]: (...args: any[]) => any }, M = { [key: string]: any }> = {
|
|
7
|
-
new (): {
|
|
8
|
-
$props: P & E;
|
|
9
|
-
$slots: S;
|
|
10
|
-
$emit: M;
|
|
11
|
-
};
|
|
12
|
-
} & {
|
|
13
|
-
install(app: App): void;
|
|
14
|
-
};
|
|
1
|
+
import { type App } from "vue";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 组件类型
|
|
5
|
+
*/
|
|
6
|
+
export type YzComponentApp<P = { [key: string]: any }, E = { [key: string]: any }, S = { [key: string]: (...args: any[]) => any }, M = { [key: string]: any }> = {
|
|
7
|
+
new (): {
|
|
8
|
+
$props: P & E;
|
|
9
|
+
$slots: S;
|
|
10
|
+
$emit: M;
|
|
11
|
+
};
|
|
12
|
+
} & {
|
|
13
|
+
install(app: App): void;
|
|
14
|
+
};
|
package/types/components.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { YzDesginer } from "./stimulsoft/desginer/desginer";
|
|
2
|
-
import { YzLayout } from "./layout/layout";
|
|
3
|
-
import { type App } from "vue";
|
|
4
|
-
|
|
5
|
-
interface AllComponents {
|
|
6
|
-
YzDesginer: typeof YzDesginer;
|
|
7
|
-
YzLayout: typeof YzLayout;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function install(app: App): void;
|
|
11
|
-
|
|
12
|
-
declare module "@vue/runtime-core" {
|
|
13
|
-
export interface GlobalComponents extends AllComponents {}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {};
|
|
17
|
-
|
|
18
|
-
export * from "./components/core/core";
|
|
19
|
-
export * from "./stimulsoft/desginer/desginer";
|
|
20
|
-
export * from "./stimulsoft/desginer/factory";
|
|
21
|
-
export * from "./message/message";
|
|
22
|
-
export * from "./layout/layout";
|
|
1
|
+
import { YzDesginer } from "./stimulsoft/desginer/desginer";
|
|
2
|
+
import { YzLayout } from "./layout/layout";
|
|
3
|
+
import { type App } from "vue";
|
|
4
|
+
|
|
5
|
+
interface AllComponents {
|
|
6
|
+
YzDesginer: typeof YzDesginer;
|
|
7
|
+
YzLayout: typeof YzLayout;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function install(app: App): void;
|
|
11
|
+
|
|
12
|
+
declare module "@vue/runtime-core" {
|
|
13
|
+
export interface GlobalComponents extends AllComponents {}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {};
|
|
17
|
+
|
|
18
|
+
export * from "./components/core/core";
|
|
19
|
+
export * from "./stimulsoft/desginer/desginer";
|
|
20
|
+
export * from "./stimulsoft/desginer/factory";
|
|
21
|
+
export * from "./message/message";
|
|
22
|
+
export * from "./layout/layout";
|
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as YzUI from "./components";
|
|
2
|
-
export * from "./components";
|
|
3
|
-
export default YzUI;
|
|
1
|
+
import * as YzUI from "./components";
|
|
2
|
+
export * from "./components";
|
|
3
|
+
export default YzUI;
|
package/types/layout/layout.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { VxeLayoutAsideProps } from "vxe-pc-ui";
|
|
2
|
-
import { VNode } from "vue";
|
|
3
|
-
import { YzComponentApp } from "../components/core/core";
|
|
4
|
-
|
|
5
|
-
export declare const YzLayout: YzComponentApp<YzLayoutProps, {}, YzLayoutSlots, YzLayoutMethod>;
|
|
6
|
-
|
|
7
|
-
export type YzLayoutProps = {
|
|
8
|
-
asideProps: VxeLayoutAsideProps;
|
|
9
|
-
};
|
|
10
|
-
export type YzLayoutSlots = {
|
|
11
|
-
header?: () => VNode | string;
|
|
12
|
-
aside?: () => VNode | string;
|
|
13
|
-
body?: () => VNode | string;
|
|
14
|
-
};
|
|
15
|
-
export type YzLayoutMethod = {};
|
|
1
|
+
import { VxeLayoutAsideProps } from "vxe-pc-ui";
|
|
2
|
+
import { VNode } from "vue";
|
|
3
|
+
import { YzComponentApp } from "../components/core/core";
|
|
4
|
+
|
|
5
|
+
export declare const YzLayout: YzComponentApp<YzLayoutProps, {}, YzLayoutSlots, YzLayoutMethod>;
|
|
6
|
+
|
|
7
|
+
export type YzLayoutProps = {
|
|
8
|
+
asideProps: VxeLayoutAsideProps;
|
|
9
|
+
};
|
|
10
|
+
export type YzLayoutSlots = {
|
|
11
|
+
header?: () => VNode | string;
|
|
12
|
+
aside?: () => VNode | string;
|
|
13
|
+
body?: () => VNode | string;
|
|
14
|
+
};
|
|
15
|
+
export type YzLayoutMethod = {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export type YzMessageOptions = {
|
|
2
|
-
duration: number;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
export declare class YzMessage {
|
|
6
|
-
private static messageErrorId;
|
|
7
|
-
private static messageSuccessId;
|
|
8
|
-
private static messageWarningId;
|
|
9
|
-
private static options;
|
|
10
|
-
static config: (options: YzMessageOptions) => void;
|
|
11
|
-
static showError: (message: string) => void;
|
|
12
|
-
static showSuccess: (message: string) => void;
|
|
13
|
-
static showWarning: (message: string) => void;
|
|
14
|
-
static showMessage: (id: string, content: string, status: VxeModalPropTypes.Status) => void;
|
|
15
|
-
static showConfirm: (title: string, message: string, needMask = false, maskClosable = true) => Promise<boolean>;
|
|
16
|
-
}
|
|
1
|
+
export type YzMessageOptions = {
|
|
2
|
+
duration: number;
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export declare class YzMessage {
|
|
6
|
+
private static messageErrorId;
|
|
7
|
+
private static messageSuccessId;
|
|
8
|
+
private static messageWarningId;
|
|
9
|
+
private static options;
|
|
10
|
+
static config: (options: YzMessageOptions) => void;
|
|
11
|
+
static showError: (message: string) => void;
|
|
12
|
+
static showSuccess: (message: string) => void;
|
|
13
|
+
static showWarning: (message: string) => void;
|
|
14
|
+
static showMessage: (id: string, content: string, status: VxeModalPropTypes.Status) => void;
|
|
15
|
+
static showConfirm: (title: string, message: string, needMask = false, maskClosable = true) => Promise<boolean>;
|
|
16
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { TWldy } from "@ningboyz/types";
|
|
2
|
-
import { YzComponentApp } from "../../components/core/core";
|
|
3
|
-
|
|
4
|
-
export declare const YzDesginer: YzComponentApp<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethod>;
|
|
5
|
-
|
|
6
|
-
export type YzDesginerProps = {
|
|
7
|
-
templateJson?: string;
|
|
8
|
-
listData?: TWldy.IWldyDataResponse[];
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type YzDesginerMethod = {
|
|
12
|
-
(e: "saveReport", fileName: string, json: string): void;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export interface YzDesginerSlots {
|
|
16
|
-
title?: () => any;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type YzDesginerInstance = {};
|
|
1
|
+
import { TWldy } from "@ningboyz/types";
|
|
2
|
+
import { YzComponentApp } from "../../components/core/core";
|
|
3
|
+
|
|
4
|
+
export declare const YzDesginer: YzComponentApp<YzDesginerProps, {}, YzDesginerSlots, YzDesginerMethod>;
|
|
5
|
+
|
|
6
|
+
export type YzDesginerProps = {
|
|
7
|
+
templateJson?: string;
|
|
8
|
+
listData?: TWldy.IWldyDataResponse[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type YzDesginerMethod = {
|
|
12
|
+
(e: "saveReport", fileName: string, json: string): void;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export interface YzDesginerSlots {
|
|
16
|
+
title?: () => any;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type YzDesginerInstance = {};
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
-
initLicense: () => Factory;
|
|
8
|
-
setListData: (listData: TWldy.IWldyDataResponse[]) => Factory;
|
|
9
|
-
loadJson: (json: string | undefined) => Factory;
|
|
10
|
-
getReport: () => Stimulsoft.Report.StiReport;
|
|
11
|
-
print: () => Factory;
|
|
12
|
-
printToPdf: () => Factory;
|
|
13
|
-
private getDataSet;
|
|
14
|
-
private listItem2DataTable;
|
|
15
|
-
private listData2DataTable;
|
|
16
|
-
private getRow;
|
|
17
|
-
}
|
|
18
|
-
export default Factory;
|
|
19
|
-
|
|
20
|
-
export const StimulsoftFactory = Factory;
|
|
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
|
+
initLicense: () => Factory;
|
|
8
|
+
setListData: (listData: TWldy.IWldyDataResponse[]) => Factory;
|
|
9
|
+
loadJson: (json: string | undefined) => Factory;
|
|
10
|
+
getReport: () => Stimulsoft.Report.StiReport;
|
|
11
|
+
print: () => Factory;
|
|
12
|
+
printToPdf: () => Factory;
|
|
13
|
+
private getDataSet;
|
|
14
|
+
private listItem2DataTable;
|
|
15
|
+
private listData2DataTable;
|
|
16
|
+
private getRow;
|
|
17
|
+
}
|
|
18
|
+
export default Factory;
|
|
19
|
+
|
|
20
|
+
export const StimulsoftFactory = Factory;
|
package/es/components.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { YzDesginer as r } from "./stimulsoft/desginer/index.js";
|
|
2
|
-
import { StimulsoftFactory as c } from "./stimulsoft/desginer/index.js";
|
|
3
|
-
import { YzLayout as e } from "./layout/index.js";
|
|
4
|
-
import { YzMessage as l } from "./message/index.js";
|
|
5
|
-
const s = [r, e], n = (o) => {
|
|
6
|
-
s.forEach((t) => o.use(t));
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
c as StimulsoftFactory,
|
|
10
|
-
r as YzDesginer,
|
|
11
|
-
e as YzLayout,
|
|
12
|
-
l as YzMessage,
|
|
13
|
-
n as install
|
|
14
|
-
};
|
package/es/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as o from "./components.js";
|
|
2
|
-
import { install as e } from "./components.js";
|
|
3
|
-
import { StimulsoftFactory as s, YzDesginer as a } from "./stimulsoft/desginer/index.js";
|
|
4
|
-
import { YzMessage as p } from "./message/index.js";
|
|
5
|
-
import { YzLayout as i } from "./layout/index.js";
|
|
6
|
-
export {
|
|
7
|
-
s as StimulsoftFactory,
|
|
8
|
-
a as YzDesginer,
|
|
9
|
-
i as YzLayout,
|
|
10
|
-
p as YzMessage,
|
|
11
|
-
o as default,
|
|
12
|
-
e as install
|
|
13
|
-
};
|
package/es/layout/index.js
DELETED
package/es/layout/layout.vue.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, createBlock as u, openBlock as d, unref as e, withCtx as o, createVNode as a, renderSlot as r, normalizeProps as n, guardReactiveProps as i } from "vue";
|
|
2
|
-
import { VxeLayoutContainer as l, VxeLayoutHeader as p, VxeLayoutAside as f, VxeLayoutBody as _ } from "vxe-pc-ui";
|
|
3
|
-
const L = /* @__PURE__ */ s({
|
|
4
|
-
__name: "layout",
|
|
5
|
-
props: {
|
|
6
|
-
asideProps: {}
|
|
7
|
-
},
|
|
8
|
-
setup(c) {
|
|
9
|
-
return (t, m) => (d(), u(e(l), { vertical: "" }, {
|
|
10
|
-
default: o(() => [
|
|
11
|
-
a(e(p), null, {
|
|
12
|
-
default: o(() => [
|
|
13
|
-
r(t.$slots, "header")
|
|
14
|
-
]),
|
|
15
|
-
_: 3
|
|
16
|
-
}),
|
|
17
|
-
a(e(l), null, {
|
|
18
|
-
default: o(() => [
|
|
19
|
-
a(e(f), n(i(t.asideProps)), {
|
|
20
|
-
default: o(() => [
|
|
21
|
-
r(t.$slots, "aside")
|
|
22
|
-
]),
|
|
23
|
-
_: 3
|
|
24
|
-
}, 16),
|
|
25
|
-
a(e(l), { vertical: "" }, {
|
|
26
|
-
default: o(() => [
|
|
27
|
-
a(e(_), null, {
|
|
28
|
-
default: o(() => [
|
|
29
|
-
r(t.$slots, "body")
|
|
30
|
-
]),
|
|
31
|
-
_: 3
|
|
32
|
-
})
|
|
33
|
-
]),
|
|
34
|
-
_: 3
|
|
35
|
-
})
|
|
36
|
-
]),
|
|
37
|
-
_: 3
|
|
38
|
-
})
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
L as default
|
|
46
|
-
};
|
package/es/layout/layout.vue2.js
DELETED
package/es/message/index.js
DELETED
package/es/message/message.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { VxeUI as i } from "vxe-pc-ui";
|
|
2
|
-
import { h as n } from "vue";
|
|
3
|
-
class g {
|
|
4
|
-
static messageErrorId = "vxe-modal-message-id-error-d0556a60da2a";
|
|
5
|
-
static messageSuccessId = "vxe-modal-message-id-success-d0556a60da2a";
|
|
6
|
-
static messageWarningId = "vxe-modal-message-id-warning-d0556a60da2a";
|
|
7
|
-
static options;
|
|
8
|
-
static config = (s) => {
|
|
9
|
-
this.options = s;
|
|
10
|
-
};
|
|
11
|
-
static showError = (s) => {
|
|
12
|
-
this.showMessage(this.messageErrorId, s, "error");
|
|
13
|
-
};
|
|
14
|
-
static showSuccess = (s) => {
|
|
15
|
-
this.showMessage(this.messageSuccessId, s, "success");
|
|
16
|
-
};
|
|
17
|
-
static showWarning = (s) => {
|
|
18
|
-
this.showMessage(this.messageWarningId, s, "warning");
|
|
19
|
-
};
|
|
20
|
-
static showMessage = (s, e, t) => {
|
|
21
|
-
const a = this.options || { duration: 3e3 };
|
|
22
|
-
i.modal.message({
|
|
23
|
-
...a,
|
|
24
|
-
id: s,
|
|
25
|
-
content: e,
|
|
26
|
-
status: t
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
static showConfirm = (s, e, t = !1, a = !0) => new Promise((o) => {
|
|
30
|
-
i.modal.confirm({
|
|
31
|
-
title: s,
|
|
32
|
-
slots: {
|
|
33
|
-
default() {
|
|
34
|
-
return n("div", {
|
|
35
|
-
innerHTML: e
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
lockView: !0,
|
|
40
|
-
mask: t,
|
|
41
|
-
showClose: !0,
|
|
42
|
-
showConfirmButton: !0,
|
|
43
|
-
confirmButtonText: "确定",
|
|
44
|
-
cancelButtonText: "取消",
|
|
45
|
-
maskClosable: a,
|
|
46
|
-
position: {
|
|
47
|
-
top: 100
|
|
48
|
-
}
|
|
49
|
-
}).then((r) => {
|
|
50
|
-
o(r === "confirm");
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
g as Message
|
|
56
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { useTemplateRef as l, onMounted as R, onUnmounted as d, watch as p, h as u } from "vue";
|
|
2
|
-
import { Stimulsoft as n } from "./stimulsoft.reports.engine.js";
|
|
3
|
-
import "./stimulsoft.reports.chart.js";
|
|
4
|
-
import "./stimulsoft.reports.export.js";
|
|
5
|
-
import "./stimulsoft.reports.import.xlsx.js";
|
|
6
|
-
import "./stimulsoft.reports.maps.js";
|
|
7
|
-
import "./stimulsoft.viewer.js";
|
|
8
|
-
import "./stimulsoft.designer.js";
|
|
9
|
-
import "./stimulsoft.blockly.editor.js";
|
|
10
|
-
const y = {
|
|
11
|
-
props: {
|
|
12
|
-
report: {
|
|
13
|
-
type: n.Report.StiReport,
|
|
14
|
-
default: null
|
|
15
|
-
},
|
|
16
|
-
visible: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !0
|
|
19
|
-
},
|
|
20
|
-
options: {
|
|
21
|
-
type: n.Designer.StiDesignerOptions,
|
|
22
|
-
default: null
|
|
23
|
-
},
|
|
24
|
-
id: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: null
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
emits: ["prepareVariables", "beginProcessData", "endProcessData", "createReport", "closeReport", "openReport", "openedReport", "saveReport", "saveAsReport", "previewReport", "exit", "assignedReport"],
|
|
30
|
-
setup(i, o) {
|
|
31
|
-
var e, s = l("parentRef");
|
|
32
|
-
const a = () => {
|
|
33
|
-
e = new n.Designer.StiDesigner(i.options, i.id, !1), e.renderHtml(s.value), m(), e.visible = i.visible;
|
|
34
|
-
}, m = () => {
|
|
35
|
-
e.onPrepareVariables = (t, r) => o.emit("prepareVariables", t, r), e.onBeginProcessData = (t, r) => o.emit("beginProcessData", t, r), e.onEndProcessData = (t) => o.emit("endProcessData", t), e.onCreateReport = (t, r) => o.emit("createReport", t, r), e.onCloseReport = (t, r) => o.emit("closeReport", t, r), e.onOpenReport = (t, r) => {
|
|
36
|
-
t.preventDefault = !1, o.emit("openReport", t, r);
|
|
37
|
-
}, e.onOpenedReport = (t, r) => o.emit("openedReport", t, r), e.onSaveReport = (t, r) => {
|
|
38
|
-
t.preventDefault = !1, o.emit("saveReport", t, r);
|
|
39
|
-
}, e.onSaveAsReport = (t, r) => o.emit("saveAsReport", t, r), e.onPreviewReport = (t, r) => o.emit("previewReport", t, r), e.onExit = (t) => o.emit("exit", t), e.onAssignedReport = (t) => o.emit("assignedReport", t);
|
|
40
|
-
};
|
|
41
|
-
return R(() => {
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
a(), e.report = i.report;
|
|
44
|
-
});
|
|
45
|
-
}), d(() => {
|
|
46
|
-
e?.dispose();
|
|
47
|
-
}), p(
|
|
48
|
-
() => i.report,
|
|
49
|
-
() => {
|
|
50
|
-
e && (e.report = i.report);
|
|
51
|
-
},
|
|
52
|
-
{ immediate: !0 }
|
|
53
|
-
), p(
|
|
54
|
-
() => i.options,
|
|
55
|
-
() => {
|
|
56
|
-
e && (a(), e.report = i.report);
|
|
57
|
-
},
|
|
58
|
-
{ immediate: !0, deep: !0 }
|
|
59
|
-
), p(
|
|
60
|
-
() => i.visible,
|
|
61
|
-
() => {
|
|
62
|
-
e && (e.visible = i.visible);
|
|
63
|
-
},
|
|
64
|
-
{ immediate: !0 }
|
|
65
|
-
), p(
|
|
66
|
-
() => i.id,
|
|
67
|
-
() => {
|
|
68
|
-
e && (a(), e.report = i.report);
|
|
69
|
-
},
|
|
70
|
-
{ immediate: !0 }
|
|
71
|
-
), () => u("div", { ref: "parentRef" });
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
y as Designer,
|
|
76
|
-
n as Stimulsoft
|
|
77
|
-
};
|