@ibiz-template/vue3-components 0.7.41-alpha.47 → 0.7.41-alpha.49
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-BniHS_Fs.js → index-BUZnRhE6.js} +3 -3
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-Bx-SzrX-.js → wang-editor-DnumgoHr.js} +1 -1
- package/dist/{xlsx-util-DgYbktap.js → xlsx-util-BVE35vSD.js} +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/util/app-popover/app-popover-component.css +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.hook.mjs +9 -7
- package/es/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.mjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -0
- package/lib/util/app-popover/app-popover-component.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.cjs +1 -1
- package/lib/util/inline-ai-util/inline-ai-textarea/inline-ai-textarea.hook.cjs +9 -7
- package/package.json +8 -8
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.35_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.51_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.35_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.51_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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, watchEffect, onUnmounted } from 'vue';
|
|
2
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
2
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.51_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';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-popover{position:absolute;top:0;left:0;z-index:1;display:none;width:-moz-max-content;width:max-content;background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-medium)}.ibiz-popover__arrow{position:absolute;z-index:-1;width:var(--ibiz-width-icon-extra-small);height:var(--ibiz-width-icon-extra-small);background:var(--ibiz-color-bg-2);transform:rotate(45deg)}.ibiz-popover.is-show{display:block}.ibiz-popover__overlay{position:fixed;inset:0;background-color:transparent}
|
|
1
|
+
.ibiz-popover{position:absolute;top:0;left:0;z-index:1;display:none;width:-moz-max-content;width:max-content;background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-medium)}.ibiz-popover__arrow{position:absolute;z-index:-1;width:var(--ibiz-width-icon-extra-small);height:var(--ibiz-width-icon-extra-small);background:var(--ibiz-color-bg-2);transform:rotate(45deg)}.ibiz-popover__arrow[data-placement^=top]{border-right:1px solid var(--ibiz-color-border);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-popover__arrow[data-placement^=bottom]{border-top:1px solid var(--ibiz-color-border);border-left:1px solid var(--ibiz-color-border)}.ibiz-popover__arrow[data-placement^=left]{border-top:1px solid var(--ibiz-color-border);border-right:1px solid var(--ibiz-color-border)}.ibiz-popover__arrow[data-placement^=right]{border-bottom:1px solid var(--ibiz-color-border);border-left:1px solid var(--ibiz-color-border)}.ibiz-popover.is-show{display:block}.ibiz-popover__overlay{position:fixed;inset:0;background-color:transparent}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.51_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';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -24,17 +24,14 @@ const computedInLineAIParams = (props) => {
|
|
|
24
24
|
inlinecompletionmode: (_g = (_f = params.inlinecompletionmode) != null ? _f : editorParams.inlinecompletionmode) != null ? _g : "async"
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
const useInLineAIContainerClick = (props, message, isLoading) => {
|
|
27
|
+
const useInLineAIContainerClick = (props, message, isLoading, abortController) => {
|
|
28
28
|
const handMousedown = async (evt) => {
|
|
29
|
+
var _a;
|
|
29
30
|
const target = evt.target;
|
|
30
31
|
if (!target.closest(".ibiz-inline-ai-textarea-container") && !target.closest(".ibiz-inline-ai-alert")) {
|
|
31
|
-
if (isLoading.value) {
|
|
32
|
-
evt.stopPropagation();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
32
|
const isChange = props.content !== message.value.content;
|
|
36
33
|
let isClose = true;
|
|
37
|
-
if (isChange) {
|
|
34
|
+
if (isChange || isLoading.value) {
|
|
38
35
|
isClose = await ibiz.confirm.warning({
|
|
39
36
|
title: ibiz.i18n.t("util.inlineAiUtil.warningTitle"),
|
|
40
37
|
desc: ibiz.i18n.t("util.inlineAiUtil.warningDesc"),
|
|
@@ -43,8 +40,12 @@ const useInLineAIContainerClick = (props, message, isLoading) => {
|
|
|
43
40
|
}
|
|
44
41
|
});
|
|
45
42
|
}
|
|
46
|
-
if (isClose)
|
|
43
|
+
if (isClose) {
|
|
44
|
+
if (isLoading.value) {
|
|
45
|
+
(_a = abortController.value) == null ? void 0 : _a.abort();
|
|
46
|
+
}
|
|
47
47
|
props.unMountAIChat();
|
|
48
|
+
}
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
onMounted(() => {
|
|
@@ -302,6 +303,7 @@ const useBase = (props, element, message) => {
|
|
|
302
303
|
return;
|
|
303
304
|
textareaRef.value.style.height = "auto";
|
|
304
305
|
textareaRef.value.style.height = "".concat(textareaRef.value.scrollHeight, "px");
|
|
306
|
+
textareaRef.value.parentElement.scrollTop = textareaRef.value.parentElement.scrollHeight;
|
|
305
307
|
});
|
|
306
308
|
},
|
|
307
309
|
{
|
|
@@ -106,7 +106,7 @@ const InlineAITextArea = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
srfaiagent,
|
|
107
107
|
srfaiappendcurdata
|
|
108
108
|
});
|
|
109
|
-
useInLineAIContainerClick(props, message, isLoading);
|
|
109
|
+
useInLineAIContainerClick(props, message, isLoading, abortController);
|
|
110
110
|
const stopQuestionAndClose = () => {
|
|
111
111
|
var _a;
|
|
112
112
|
(_a = abortController.value) == null ? void 0 : _a.abort();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.51_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');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-popover{position:absolute;top:0;left:0;z-index:1;display:none;width:-moz-max-content;width:max-content;background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-medium)}.ibiz-popover__arrow{position:absolute;z-index:-1;width:var(--ibiz-width-icon-extra-small);height:var(--ibiz-width-icon-extra-small);background:var(--ibiz-color-bg-2);transform:rotate(45deg)}.ibiz-popover.is-show{display:block}.ibiz-popover__overlay{position:fixed;inset:0;background-color:transparent}
|
|
1
|
+
.ibiz-popover{position:absolute;top:0;left:0;z-index:1;display:none;width:-moz-max-content;width:max-content;background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-medium)}.ibiz-popover__arrow{position:absolute;z-index:-1;width:var(--ibiz-width-icon-extra-small);height:var(--ibiz-width-icon-extra-small);background:var(--ibiz-color-bg-2);transform:rotate(45deg)}.ibiz-popover__arrow[data-placement^=top]{border-right:1px solid var(--ibiz-color-border);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-popover__arrow[data-placement^=bottom]{border-top:1px solid var(--ibiz-color-border);border-left:1px solid var(--ibiz-color-border)}.ibiz-popover__arrow[data-placement^=left]{border-top:1px solid var(--ibiz-color-border);border-right:1px solid var(--ibiz-color-border)}.ibiz-popover__arrow[data-placement^=right]{border-bottom:1px solid var(--ibiz-color-border);border-left:1px solid var(--ibiz-color-border)}.ibiz-popover.is-show{display:block}.ibiz-popover__overlay{position:fixed;inset:0;background-color:transparent}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.51_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');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -108,7 +108,7 @@ const InlineAITextArea = /* @__PURE__ */ vue.defineComponent({
|
|
|
108
108
|
srfaiagent,
|
|
109
109
|
srfaiappendcurdata
|
|
110
110
|
});
|
|
111
|
-
inlineAiTextarea_hook.useInLineAIContainerClick(props, message, isLoading);
|
|
111
|
+
inlineAiTextarea_hook.useInLineAIContainerClick(props, message, isLoading, abortController);
|
|
112
112
|
const stopQuestionAndClose = () => {
|
|
113
113
|
var _a;
|
|
114
114
|
(_a = abortController.value) == null ? void 0 : _a.abort();
|
|
@@ -26,17 +26,14 @@ const computedInLineAIParams = (props) => {
|
|
|
26
26
|
inlinecompletionmode: (_g = (_f = params.inlinecompletionmode) != null ? _f : editorParams.inlinecompletionmode) != null ? _g : "async"
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
const useInLineAIContainerClick = (props, message, isLoading) => {
|
|
29
|
+
const useInLineAIContainerClick = (props, message, isLoading, abortController) => {
|
|
30
30
|
const handMousedown = async (evt) => {
|
|
31
|
+
var _a;
|
|
31
32
|
const target = evt.target;
|
|
32
33
|
if (!target.closest(".ibiz-inline-ai-textarea-container") && !target.closest(".ibiz-inline-ai-alert")) {
|
|
33
|
-
if (isLoading.value) {
|
|
34
|
-
evt.stopPropagation();
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
34
|
const isChange = props.content !== message.value.content;
|
|
38
35
|
let isClose = true;
|
|
39
|
-
if (isChange) {
|
|
36
|
+
if (isChange || isLoading.value) {
|
|
40
37
|
isClose = await ibiz.confirm.warning({
|
|
41
38
|
title: ibiz.i18n.t("util.inlineAiUtil.warningTitle"),
|
|
42
39
|
desc: ibiz.i18n.t("util.inlineAiUtil.warningDesc"),
|
|
@@ -45,8 +42,12 @@ const useInLineAIContainerClick = (props, message, isLoading) => {
|
|
|
45
42
|
}
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
|
-
if (isClose)
|
|
45
|
+
if (isClose) {
|
|
46
|
+
if (isLoading.value) {
|
|
47
|
+
(_a = abortController.value) == null ? void 0 : _a.abort();
|
|
48
|
+
}
|
|
49
49
|
props.unMountAIChat();
|
|
50
|
+
}
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
vue.onMounted(() => {
|
|
@@ -304,6 +305,7 @@ const useBase = (props, element, message) => {
|
|
|
304
305
|
return;
|
|
305
306
|
textareaRef.value.style.height = "auto";
|
|
306
307
|
textareaRef.value.style.height = "".concat(textareaRef.value.scrollHeight, "px");
|
|
308
|
+
textareaRef.value.parentElement.scrollTop = textareaRef.value.parentElement.scrollHeight;
|
|
307
309
|
});
|
|
308
310
|
},
|
|
309
311
|
{
|
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.49",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,17 +30,17 @@
|
|
|
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.
|
|
34
|
-
"@ibiz-template-plugin/gantt": "0.1.8-alpha.
|
|
33
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.41",
|
|
34
|
+
"@ibiz-template-plugin/gantt": "0.1.8-alpha.378",
|
|
35
35
|
"@ibiz-template-plugin/bi-report": "0.0.30",
|
|
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.51",
|
|
38
38
|
"@ibiz-template/devtool": "0.0.13",
|
|
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.51",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.51",
|
|
41
41
|
"@ibiz-template/theme": "0.7.39",
|
|
42
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
43
|
-
"@ibiz-template/web-theme": "3.
|
|
42
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.51",
|
|
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",
|
|
46
46
|
"@monaco-editor/loader": "^1.4.0",
|