@ibiz-template/vue3-components 0.7.41-alpha.56 → 0.7.41-alpha.58
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 → index-QscInrTW.js} +3 -3
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-CJcsYvjB.js → wang-editor-w-EiarfV.js} +1 -1
- package/dist/{xlsx-util-DS0mIPz0.js → xlsx-util-B-cFlAOU.js} +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +12 -3
- package/es/util/ai-chat-util/ai-chat-util.mjs +40 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +11 -2
- package/lib/util/ai-chat-util/ai-chat-util.cjs +40 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/package.json +10 -10
- /package/es/node_modules/.pnpm/{@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 → @ibiz-template_core@0.7.41-alpha.61_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.58_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.61_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.61_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,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, defineComponent, createVNode, createTextVNode, resolveComponent, h } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, computedAsync } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { CompositeFormItem } from './composite-form-item/composite-form-item.mjs';
|
|
4
4
|
import './form-item.css';
|
|
5
5
|
|
|
@@ -29,17 +29,21 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const onValueChange = (val, name, ignore = false) => {
|
|
30
30
|
props.controller.setDataValue(val, name, ignore);
|
|
31
31
|
};
|
|
32
|
+
const CustomHtml = computedAsync(async () => {
|
|
33
|
+
const html = await props.controller.getCustomHtml(props.controller.data);
|
|
34
|
+
return html;
|
|
35
|
+
});
|
|
32
36
|
return {
|
|
33
37
|
ns,
|
|
34
38
|
c,
|
|
39
|
+
CustomHtml,
|
|
35
40
|
onValueChange
|
|
36
41
|
};
|
|
37
42
|
},
|
|
38
43
|
render() {
|
|
39
44
|
var _a, _b, _c, _d, _e;
|
|
40
|
-
if (!this.c.state.visible || ((_a = this.c.model.editor) == null ? void 0 : _a.editorType) === "HIDDEN")
|
|
45
|
+
if (!this.c.state.visible || ((_a = this.c.model.editor) == null ? void 0 : _a.editorType) === "HIDDEN")
|
|
41
46
|
return null;
|
|
42
|
-
}
|
|
43
47
|
let editor = null;
|
|
44
48
|
const compositeItem = this.c.model.compositeItem;
|
|
45
49
|
if (compositeItem) {
|
|
@@ -94,6 +98,11 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
94
98
|
}, null);
|
|
95
99
|
}
|
|
96
100
|
}
|
|
101
|
+
if (this.c.isCustomCode)
|
|
102
|
+
return createVNode("div", {
|
|
103
|
+
"class": [this.ns.b(), this.ns.e("script"), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
104
|
+
"innerHTML": this.CustomHtml
|
|
105
|
+
}, null);
|
|
97
106
|
return createVNode(resolveComponent("iBizFormItemContainer"), {
|
|
98
107
|
"id": "".concat(this.c.form.view.model.codeName, "_").concat(this.c.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
99
108
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
@@ -286,6 +286,26 @@ class AIChatUtil {
|
|
|
286
286
|
}
|
|
287
287
|
return null;
|
|
288
288
|
};
|
|
289
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
290
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
291
|
+
const tempParams = { ...param };
|
|
292
|
+
if (other.srfaiagent) {
|
|
293
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
294
|
+
}
|
|
295
|
+
const result = await deService.aiChatChatDigest(
|
|
296
|
+
ctx,
|
|
297
|
+
tempParams,
|
|
298
|
+
other.message
|
|
299
|
+
);
|
|
300
|
+
if (result.ok && result.data) {
|
|
301
|
+
const choices = result.data.choices;
|
|
302
|
+
if (choices && choices.length > 0) {
|
|
303
|
+
return choices[0];
|
|
304
|
+
}
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
return null;
|
|
308
|
+
};
|
|
289
309
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
290
310
|
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
291
311
|
let globalDownloadPrifix = false;
|
|
@@ -712,6 +732,26 @@ class AIChatUtil {
|
|
|
712
732
|
}
|
|
713
733
|
return null;
|
|
714
734
|
};
|
|
735
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
736
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
737
|
+
const tempParams = { ...param };
|
|
738
|
+
if (other.srfaiagent) {
|
|
739
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
740
|
+
}
|
|
741
|
+
const result = await deService.aiChatChatDigest(
|
|
742
|
+
ctx,
|
|
743
|
+
tempParams,
|
|
744
|
+
other.message
|
|
745
|
+
);
|
|
746
|
+
if (result.ok && result.data) {
|
|
747
|
+
const choices = result.data.choices;
|
|
748
|
+
if (choices && choices.length > 0) {
|
|
749
|
+
return choices[0];
|
|
750
|
+
}
|
|
751
|
+
return null;
|
|
752
|
+
}
|
|
753
|
+
return null;
|
|
754
|
+
};
|
|
715
755
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
716
756
|
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
717
757
|
let globalDownloadPrifix = false;
|
|
@@ -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.61_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";
|
|
@@ -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.61_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) {
|
|
@@ -33,17 +33,21 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
const onValueChange = (val, name, ignore = false) => {
|
|
34
34
|
props.controller.setDataValue(val, name, ignore);
|
|
35
35
|
};
|
|
36
|
+
const CustomHtml = vue3Util.computedAsync(async () => {
|
|
37
|
+
const html = await props.controller.getCustomHtml(props.controller.data);
|
|
38
|
+
return html;
|
|
39
|
+
});
|
|
36
40
|
return {
|
|
37
41
|
ns,
|
|
38
42
|
c,
|
|
43
|
+
CustomHtml,
|
|
39
44
|
onValueChange
|
|
40
45
|
};
|
|
41
46
|
},
|
|
42
47
|
render() {
|
|
43
48
|
var _a, _b, _c, _d, _e;
|
|
44
|
-
if (!this.c.state.visible || ((_a = this.c.model.editor) == null ? void 0 : _a.editorType) === "HIDDEN")
|
|
49
|
+
if (!this.c.state.visible || ((_a = this.c.model.editor) == null ? void 0 : _a.editorType) === "HIDDEN")
|
|
45
50
|
return null;
|
|
46
|
-
}
|
|
47
51
|
let editor = null;
|
|
48
52
|
const compositeItem = this.c.model.compositeItem;
|
|
49
53
|
if (compositeItem) {
|
|
@@ -98,6 +102,11 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
98
102
|
}, null);
|
|
99
103
|
}
|
|
100
104
|
}
|
|
105
|
+
if (this.c.isCustomCode)
|
|
106
|
+
return vue.createVNode("div", {
|
|
107
|
+
"class": [this.ns.b(), this.ns.e("script"), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
108
|
+
"innerHTML": this.CustomHtml
|
|
109
|
+
}, null);
|
|
101
110
|
return vue.createVNode(vue.resolveComponent("iBizFormItemContainer"), {
|
|
102
111
|
"id": "".concat(this.c.form.view.model.codeName, "_").concat(this.c.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
103
112
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), this.ns.is("compositeItem", compositeItem), ...this.c.containerClass],
|
|
@@ -288,6 +288,26 @@ class AIChatUtil {
|
|
|
288
288
|
}
|
|
289
289
|
return null;
|
|
290
290
|
};
|
|
291
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
292
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
293
|
+
const tempParams = { ...param };
|
|
294
|
+
if (other.srfaiagent) {
|
|
295
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
296
|
+
}
|
|
297
|
+
const result = await deService.aiChatChatDigest(
|
|
298
|
+
ctx,
|
|
299
|
+
tempParams,
|
|
300
|
+
other.message
|
|
301
|
+
);
|
|
302
|
+
if (result.ok && result.data) {
|
|
303
|
+
const choices = result.data.choices;
|
|
304
|
+
if (choices && choices.length > 0) {
|
|
305
|
+
return choices[0];
|
|
306
|
+
}
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
return null;
|
|
310
|
+
};
|
|
291
311
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
292
312
|
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
293
313
|
let globalDownloadPrifix = false;
|
|
@@ -714,6 +734,26 @@ class AIChatUtil {
|
|
|
714
734
|
}
|
|
715
735
|
return null;
|
|
716
736
|
};
|
|
737
|
+
chatOptions.chatDigest = async (ctx, param, other) => {
|
|
738
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
739
|
+
const tempParams = { ...param };
|
|
740
|
+
if (other.srfaiagent) {
|
|
741
|
+
tempParams.srfaiagent = other.srfaiagent;
|
|
742
|
+
}
|
|
743
|
+
const result = await deService.aiChatChatDigest(
|
|
744
|
+
ctx,
|
|
745
|
+
tempParams,
|
|
746
|
+
other.message
|
|
747
|
+
);
|
|
748
|
+
if (result.ok && result.data) {
|
|
749
|
+
const choices = result.data.choices;
|
|
750
|
+
if (choices && choices.length > 0) {
|
|
751
|
+
return choices[0];
|
|
752
|
+
}
|
|
753
|
+
return null;
|
|
754
|
+
}
|
|
755
|
+
return null;
|
|
756
|
+
};
|
|
717
757
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
718
758
|
const folder = ibiz.env.defaultOSSCat || app.model.defaultOSSCat || ((_a = app.model.userParam) == null ? void 0 : _a.DefaultOSSCat);
|
|
719
759
|
let globalDownloadPrifix = false;
|
|
@@ -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.61_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";
|
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.58",
|
|
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.49",
|
|
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.61",
|
|
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.61",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.61",
|
|
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.61",
|
|
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",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"pinia": "^2.1.7",
|
|
60
60
|
"pluralize": "^8.0.0",
|
|
61
61
|
"qs": "^6.11.2",
|
|
62
|
-
"axios": "^1.
|
|
62
|
+
"axios": "^1.8.2",
|
|
63
63
|
"qx-util": "^0.4.8",
|
|
64
64
|
"ramda": "^0.29.1",
|
|
65
65
|
"vue": "^3.3.8",
|
|
66
|
-
"vue-i18n": "^9.
|
|
66
|
+
"vue-i18n": "^9.14.3",
|
|
67
67
|
"vue-router": "^4.2.5",
|
|
68
68
|
"vuedraggable": "^4.1.0",
|
|
69
69
|
"sortablejs": "^1.15.6",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"stylelint-scss": "5.3.1",
|
|
100
100
|
"typescript": "^5.3.3",
|
|
101
101
|
"vite": "^5.0.12",
|
|
102
|
-
"vitest": "^1.
|
|
102
|
+
"vitest": "^1.6.1",
|
|
103
103
|
"vue-tsc": "^1.8.27"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"qx-util": "^0.4.8",
|
|
127
127
|
"ramda": "^0.29.0",
|
|
128
128
|
"vue": "^3.3.8",
|
|
129
|
-
"vue-i18n": "^9.
|
|
129
|
+
"vue-i18n": "^9.14.3",
|
|
130
130
|
"vue-router": "^4.2.4",
|
|
131
131
|
"vuedraggable": "^4.1.0"
|
|
132
132
|
},
|