@ibiz-template/vue3-components 0.7.41-alpha.55 → 0.7.41-alpha.56
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/dist/index-B4jO-RY0.js +11 -0
- package/dist/{index-B7VRgnNY.js → index-CGlkTyaF.js} +1 -1
- package/dist/{index-DTdGRmFc.js → index-CkCK0iHH.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-dy_UWMYO.js → wang-editor-CJcsYvjB.js} +1 -1
- package/dist/{xlsx-util-BAhkwxNf.js → xlsx-util-DS0mIPz0.js} +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/locale/en/index.mjs +3 -0
- package/es/locale/zh-CN/index.mjs +3 -0
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +5 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.mjs +7 -3
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.mjs +15 -1
- package/es/util/ai-chat-util/ai-chat-util.mjs +2 -2
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/index.mjs +1 -0
- package/es/util/print-preview-util/print-preview-markdown/icon/icon.mjs +46 -0
- package/es/util/print-preview-util/print-preview-markdown/print-preview-markdown.css +1 -0
- package/es/util/print-preview-util/print-preview-markdown/print-preview-markdown.mjs +75 -0
- package/es/util/print-preview-util/print-preview-util.mjs +57 -0
- package/es/web-app/main.mjs +2 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +3 -0
- package/lib/locale/zh-CN/index.cjs +3 -0
- package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +5 -1
- package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.cjs +7 -3
- package/lib/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.cjs +15 -1
- package/lib/util/ai-chat-util/ai-chat-util.cjs +2 -2
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/index.cjs +2 -0
- package/lib/util/print-preview-util/print-preview-markdown/icon/icon.cjs +52 -0
- package/lib/util/print-preview-util/print-preview-markdown/print-preview-markdown.cjs +77 -0
- package/lib/util/print-preview-util/print-preview-markdown/print-preview-markdown.css +1 -0
- package/lib/util/print-preview-util/print-preview-util.cjs +59 -0
- package/lib/web-app/main.cjs +2 -0
- package/package.json +6 -6
- package/dist/index-BZxlkb5k.js +0 -11
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.53_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.58_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.53_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.58_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var printPreviewMarkdown = require('./print-preview-markdown/print-preview-markdown.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class PrintPreviewUtil {
|
|
8
|
+
/**
|
|
9
|
+
* 执行打印
|
|
10
|
+
* @param context
|
|
11
|
+
* @param params
|
|
12
|
+
* @param data
|
|
13
|
+
* @returns boolean 是否成功执行打印
|
|
14
|
+
*/
|
|
15
|
+
async execPrint(context, params, data) {
|
|
16
|
+
const srfcontenttype = params.srfcontenttype;
|
|
17
|
+
if (srfcontenttype === "MARKDOWN") {
|
|
18
|
+
return this.printMarkDown(data, params);
|
|
19
|
+
}
|
|
20
|
+
if (srfcontenttype === "HTML") {
|
|
21
|
+
return this.printHtml(data);
|
|
22
|
+
}
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 打印MarkDown(窗口可以由视图参数srfprintheight和srfprintwidth指定,默认居中50%,绘制时为md预览模式绘制,提供全屏按钮,和关闭按钮。)
|
|
27
|
+
* @param data
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
async printMarkDown(data, params) {
|
|
31
|
+
const text = await data.text();
|
|
32
|
+
const overlay = ibiz.overlay.createModal(
|
|
33
|
+
(modal) => vue.h(printPreviewMarkdown.PrintPreviewMarkdown, {
|
|
34
|
+
value: text,
|
|
35
|
+
modal
|
|
36
|
+
}),
|
|
37
|
+
void 0,
|
|
38
|
+
{
|
|
39
|
+
width: params.srfprintwidth || "50%",
|
|
40
|
+
height: params.srfprintheight || "50%"
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
overlay.present();
|
|
44
|
+
await overlay.onWillDismiss();
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 打印HTML(原生浏览器预览)
|
|
49
|
+
* @param data
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
async printHtml(data) {
|
|
53
|
+
const link = window.URL.createObjectURL(data);
|
|
54
|
+
window.open(link, "_blank");
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.PrintPreviewUtil = PrintPreviewUtil;
|
package/lib/web-app/main.cjs
CHANGED
|
@@ -26,6 +26,7 @@ var overlayController = require('../util/overlay-controller/overlay-controller.c
|
|
|
26
26
|
var inlineAiUtil = require('../util/inline-ai-util/inline-ai-util.cjs');
|
|
27
27
|
var screenShotUtil = require('../util/screen-shot-util/screen-shot-util.cjs');
|
|
28
28
|
var aiChatUtil = require('../util/ai-chat-util/ai-chat-util.cjs');
|
|
29
|
+
var printPreviewUtil = require('../util/print-preview-util/print-preview-util.cjs');
|
|
29
30
|
var fullscreenUtil = require('../util/fullscreen/fullscreen-util.cjs');
|
|
30
31
|
|
|
31
32
|
"use strict";
|
|
@@ -92,6 +93,7 @@ async function runApp(plugins, opts) {
|
|
|
92
93
|
ibiz.util.text.format = (value, code) => {
|
|
93
94
|
return app.config.globalProperties.$textFormat(value, code);
|
|
94
95
|
};
|
|
96
|
+
ibiz.printPreview = new printPreviewUtil.PrintPreviewUtil();
|
|
95
97
|
ibiz.fullscreenUtil = new fullscreenUtil.FullscreenUtil();
|
|
96
98
|
await ibiz.i18n.init();
|
|
97
99
|
app.mount("#app");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.56",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
32
32
|
"@floating-ui/dom": "^1.5.3",
|
|
33
|
-
"@ibiz-template-plugin/ai-chat": "^0.0.
|
|
33
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.47",
|
|
34
34
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.378",
|
|
35
35
|
"@ibiz-template-plugin/bi-report": "0.0.32",
|
|
36
36
|
"@ibiz-template-plugin/data-view": "0.0.6",
|
|
37
|
-
"@ibiz-template/core": "0.7.41-alpha.
|
|
37
|
+
"@ibiz-template/core": "0.7.41-alpha.58",
|
|
38
38
|
"@ibiz-template/devtool": "0.0.14",
|
|
39
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
40
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
39
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.58",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.58",
|
|
41
41
|
"@ibiz-template/theme": "0.7.39",
|
|
42
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
42
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.58",
|
|
43
43
|
"@ibiz-template/web-theme": "3.10.0",
|
|
44
44
|
"@ibiz/model-core": "^0.1.84",
|
|
45
45
|
"@imengyu/vue3-context-menu": "^1.3.5",
|