@ibiz-template/vue3-components 0.7.41-alpha.153 → 0.7.41-alpha.155
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-CR7U-PBa.js +339 -0
- package/dist/{index.es-DcGGowg9.js → index.es-Bi7iirdS.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-D0vwuhRC.js → wang-editor-JVvrMHPf.js} +1 -1
- package/dist/{xlsx-util-oopIn_S1.js → xlsx-util-DVsxoQbL.js} +1 -1
- package/es/control/calendar/index.mjs +1 -0
- package/es/control/data-view/index.mjs +1 -0
- package/es/control/drtab/index.mjs +1 -0
- package/es/control/grid/grid/index.mjs +1 -0
- package/es/control/grid/grid-column/grid-field-edit-column/index.mjs +3 -0
- package/es/control/grid/grid-column/index.mjs +3 -0
- package/es/control/grid/index.mjs +5 -0
- package/es/control/index.mjs +10 -0
- package/es/control/tree/index.mjs +1 -0
- package/es/control/tree-grid-ex/index.mjs +1 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/index.mjs +3 -0
- package/es/index.mjs +10 -0
- package/es/util/ai-chat-util/ai-chat-util.mjs +51 -24
- package/lib/control/calendar/index.cjs +4 -0
- package/lib/control/data-view/index.cjs +2 -0
- package/lib/control/drtab/index.cjs +2 -0
- package/lib/control/grid/grid/index.cjs +3 -0
- package/lib/control/grid/grid-column/grid-field-edit-column/index.cjs +6 -0
- package/lib/control/grid/grid-column/index.cjs +6 -0
- package/lib/control/grid/index.cjs +12 -0
- package/lib/control/index.cjs +31 -0
- package/lib/control/tree/index.cjs +9 -0
- package/lib/control/tree-grid-ex/index.cjs +2 -0
- package/lib/control/tree-grid-ex/tree-grid-ex-column/index.cjs +6 -0
- package/lib/index.cjs +31 -0
- package/lib/util/ai-chat-util/ai-chat-util.cjs +51 -24
- package/package.json +5 -5
- package/src/control/calendar/index.ts +2 -0
- package/src/control/data-view/index.ts +1 -0
- package/src/control/drtab/index.ts +1 -0
- package/src/control/grid/grid/index.ts +1 -0
- package/src/control/grid/grid-column/grid-field-edit-column/index.ts +4 -0
- package/src/control/grid/index.ts +1 -0
- package/src/control/tree/index.ts +2 -0
- package/src/control/tree-grid-ex/index.ts +2 -0
- package/src/control/tree-grid-ex/tree-grid-ex-column/index.ts +3 -0
- package/src/util/ai-chat-util/ai-chat-util.ts +62 -26
- package/dist/index-pFskXRPD.js +0 -339
|
@@ -6,6 +6,7 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
7
|
var tree = require('./tree.cjs');
|
|
8
8
|
var tree_provider = require('./tree.provider.cjs');
|
|
9
|
+
var elTreeUtil = require('./el-tree-util.cjs');
|
|
9
10
|
|
|
10
11
|
"use strict";
|
|
11
12
|
const IBizTreeControl = vue3Util.withInstall(tree.TreeControl, function(v) {
|
|
@@ -13,5 +14,13 @@ const IBizTreeControl = vue3Util.withInstall(tree.TreeControl, function(v) {
|
|
|
13
14
|
runtime.registerControlProvider(runtime.ControlType.TREEVIEW, () => new tree_provider.TreeProvider());
|
|
14
15
|
});
|
|
15
16
|
|
|
17
|
+
exports.findChildItems = elTreeUtil.findChildItems;
|
|
18
|
+
exports.findNodeData = elTreeUtil.findNodeData;
|
|
19
|
+
exports.formatNodeDropType = elTreeUtil.formatNodeDropType;
|
|
20
|
+
exports.getNewNodeControlPanel = elTreeUtil.getNewNodeControlPanel;
|
|
21
|
+
exports.getNodeControlPanel = elTreeUtil.getNodeControlPanel;
|
|
22
|
+
exports.useAppTreeBase = elTreeUtil.useAppTreeBase;
|
|
23
|
+
exports.useElTreeUtil = elTreeUtil.useElTreeUtil;
|
|
24
|
+
exports.useLoadMoreUtil = elTreeUtil.useLoadMoreUtil;
|
|
16
25
|
exports.IBizTreeControl = IBizTreeControl;
|
|
17
26
|
exports.default = IBizTreeControl;
|
|
@@ -7,6 +7,7 @@ var vue3Util = require('@ibiz-template/vue3-util');
|
|
|
7
7
|
var treeGridEx = require('./tree-grid-ex.cjs');
|
|
8
8
|
var treeGridEx_provider = require('./tree-grid-ex.provider.cjs');
|
|
9
9
|
require('./tree-grid-ex-column/index.cjs');
|
|
10
|
+
var useRowEditPopover = require('./use-row-edit-popover.cjs');
|
|
10
11
|
var treeGridExEditColumn = require('./tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs');
|
|
11
12
|
var index = require('./tree-grid-ex-column/tree-grid-ex-field-column/index.cjs');
|
|
12
13
|
var index$1 = require('./tree-grid-ex-column/tree-grid-ex-ua-column/index.cjs');
|
|
@@ -26,5 +27,6 @@ const IBizTreeGridExControl = vue3Util.withInstall(
|
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
|
|
30
|
+
exports.useTreeGridExRowEditPopover = useRowEditPopover.useRowEditPopover;
|
|
29
31
|
exports.IBizTreeGridExControl = IBizTreeGridExControl;
|
|
30
32
|
exports.default = IBizTreeGridExControl;
|
|
@@ -3,9 +3,15 @@
|
|
|
3
3
|
var index = require('./tree-grid-ex-field-column/index.cjs');
|
|
4
4
|
var treeGridExEditColumn = require('./tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs');
|
|
5
5
|
var index$1 = require('./tree-grid-ex-ua-column/index.cjs');
|
|
6
|
+
var allEdit = require('./tree-grid-ex-edit-column/all-edit.cjs');
|
|
7
|
+
var cellEdit = require('./tree-grid-ex-edit-column/cell-edit.cjs');
|
|
8
|
+
var rowEdit = require('./tree-grid-ex-edit-column/row-edit.cjs');
|
|
6
9
|
|
|
7
10
|
"use strict";
|
|
8
11
|
|
|
9
12
|
exports.IBizTreeGridExFieldColumn = index.IBizTreeGridExFieldColumn;
|
|
10
13
|
exports.TreeGridExEditColumn = treeGridExEditColumn.TreeGridExEditColumn;
|
|
11
14
|
exports.IBizTreeGridExUAColumn = index$1.IBizTreeGridExUAColumn;
|
|
15
|
+
exports.useTreeGridExAllEdit = allEdit.useAllEdit;
|
|
16
|
+
exports.useTreeGridExCellEdit = cellEdit.useCellEdit;
|
|
17
|
+
exports.useTreeGridExRowEdit = rowEdit.useRowEdit;
|
package/lib/index.cjs
CHANGED
|
@@ -20,10 +20,15 @@ var splitTrigger = require('./common/split-trigger/split-trigger.cjs');
|
|
|
20
20
|
var sortBar = require('./common/sort-bar/sort-bar.cjs');
|
|
21
21
|
var index$2 = require('./control/app-menu/index.cjs');
|
|
22
22
|
var index$3 = require('./control/app-menu-icon-view/index.cjs');
|
|
23
|
+
var useRowEditPopover = require('./control/grid/row-edit-popover/use-row-edit-popover.cjs');
|
|
24
|
+
var grid = require('./control/grid/grid/grid.cjs');
|
|
23
25
|
var gridControl_util = require('./control/grid/grid/grid-control.util.cjs');
|
|
24
26
|
var index$4 = require('./control/grid/grid/index.cjs');
|
|
25
27
|
var index$5 = require('./control/grid/grid-column/grid-field-column/index.cjs');
|
|
26
28
|
var index$6 = require('./control/grid/grid-column/grid-ua-column/index.cjs');
|
|
29
|
+
var cellEdit = require('./control/grid/grid-column/grid-field-edit-column/cell-edit.cjs');
|
|
30
|
+
var allEdit = require('./control/grid/grid-column/grid-field-edit-column/all-edit.cjs');
|
|
31
|
+
var rowEdit = require('./control/grid/grid-column/grid-field-edit-column/row-edit.cjs');
|
|
27
32
|
var index$7 = require('./control/grid/grid-column/grid-field-edit-column/index.cjs');
|
|
28
33
|
var index$8 = require('./control/grid/grid-column/grid-group-column/index.cjs');
|
|
29
34
|
var index$9 = require('./control/grid/grid-column/auto-grid-field-edit-column/index.cjs');
|
|
@@ -48,7 +53,9 @@ var index$p = require('./control/form/form/index.cjs');
|
|
|
48
53
|
var index$q = require('./control/toolbar/index.cjs');
|
|
49
54
|
var index$r = require('./control/caption-bar/index.cjs');
|
|
50
55
|
var dataView_provider = require('./control/data-view/data-view.provider.cjs');
|
|
56
|
+
var dataView_util = require('./control/data-view/data-view.util.cjs');
|
|
51
57
|
var index$s = require('./control/data-view/index.cjs');
|
|
58
|
+
var elTreeUtil = require('./control/tree/el-tree-util.cjs');
|
|
52
59
|
var index$t = require('./control/tree/index.cjs');
|
|
53
60
|
var index$u = require('./control/pickup-view-panel/index.cjs');
|
|
54
61
|
var index$v = require('./control/tab-exp-panel/index.cjs');
|
|
@@ -65,6 +72,7 @@ var index$E = require('./control/wizard-panel/index.cjs');
|
|
|
65
72
|
var drbar_controller = require('./control/drbar/drbar.controller.cjs');
|
|
66
73
|
var index$F = require('./control/drbar/index.cjs');
|
|
67
74
|
var drtab_controller = require('./control/drtab/drtab.controller.cjs');
|
|
75
|
+
var drtabControl_util = require('./control/drtab/drtab-control.util.cjs');
|
|
68
76
|
var index$G = require('./control/drtab/index.cjs');
|
|
69
77
|
var containerPortlet = require('./control/dashboard/portlet/container-portlet/container-portlet.cjs');
|
|
70
78
|
var index$I = require('./control/dashboard/portlet/container-portlet/index.cjs');
|
|
@@ -88,8 +96,10 @@ var index$Q = require('./control/dashboard/portlet/report-portlet/index.cjs');
|
|
|
88
96
|
var filterPortlet = require('./control/dashboard/portlet/filter-portlet/filter-portlet.cjs');
|
|
89
97
|
var index$R = require('./control/dashboard/portlet/filter-portlet/index.cjs');
|
|
90
98
|
var index$H = require('./control/dashboard/index.cjs');
|
|
99
|
+
var calendarUtil = require('./control/calendar/calendar-util.cjs');
|
|
91
100
|
var index$S = require('./control/calendar/index.cjs');
|
|
92
101
|
var index$T = require('./control/kanban/index.cjs');
|
|
102
|
+
var useRowEditPopover$1 = require('./control/tree-grid-ex/use-row-edit-popover.cjs');
|
|
93
103
|
var index$U = require('./control/tree-grid-ex/index.cjs');
|
|
94
104
|
var index$V = require('./control/tree-grid/index.cjs');
|
|
95
105
|
var index$W = require('./control/medit-view-panel/index.cjs');
|
|
@@ -253,6 +263,10 @@ exports.IBizSplitTrigger = splitTrigger.IBizSplitTrigger;
|
|
|
253
263
|
exports.IBizSortBar = sortBar.IBizSortBar;
|
|
254
264
|
exports.IBizAppMenuControl = index$2.IBizAppMenuControl;
|
|
255
265
|
exports.IBizAppMenuIconViewControl = index$3.IBizAppMenuIconViewControl;
|
|
266
|
+
exports.useGridRowEditPopover = useRowEditPopover.useRowEditPopover;
|
|
267
|
+
exports.renderChildColumn = grid.renderChildColumn;
|
|
268
|
+
exports.renderColumn = grid.renderColumn;
|
|
269
|
+
exports.renderFieldColumn = grid.renderFieldColumn;
|
|
256
270
|
exports.useAppGridBase = gridControl_util.useAppGridBase;
|
|
257
271
|
exports.useAppGridPagination = gridControl_util.useAppGridPagination;
|
|
258
272
|
exports.useGridDraggable = gridControl_util.useGridDraggable;
|
|
@@ -261,6 +275,9 @@ exports.useITableEvent = gridControl_util.useITableEvent;
|
|
|
261
275
|
exports.IBizGridControl = index$4.IBizGridControl;
|
|
262
276
|
exports.IBizGridFieldColumn = index$5.IBizGridFieldColumn;
|
|
263
277
|
exports.IBizGridUAColumn = index$6.IBizGridUAColumn;
|
|
278
|
+
exports.useCellEdit = cellEdit.useCellEdit;
|
|
279
|
+
exports.useAllEdit = allEdit.useAllEdit;
|
|
280
|
+
exports.useRowEdit = rowEdit.useRowEdit;
|
|
264
281
|
exports.IBizGridFieldEditColumn = index$7.IBizGridFieldEditColumn;
|
|
265
282
|
exports.IBizGridGroupColumn = index$8.IBizGridGroupColumn;
|
|
266
283
|
exports.IBizDynamicGridFieldEditColumn = index$9.IBizDynamicGridFieldEditColumn;
|
|
@@ -285,7 +302,16 @@ exports.IBizFormControl = index$p.IBizFormControl;
|
|
|
285
302
|
exports.IBizToolbarControl = index$q.IBizToolbarControl;
|
|
286
303
|
exports.IBizCaptionBarControl = index$r.IBizCaptionBarControl;
|
|
287
304
|
exports.DataViewControlProvider = dataView_provider.DataViewControlProvider;
|
|
305
|
+
exports.useDataViewSkeleton = dataView_util.useDataViewSkeleton;
|
|
288
306
|
exports.IBizDataViewControl = index$s.IBizDataViewControl;
|
|
307
|
+
exports.findChildItems = elTreeUtil.findChildItems;
|
|
308
|
+
exports.findNodeData = elTreeUtil.findNodeData;
|
|
309
|
+
exports.formatNodeDropType = elTreeUtil.formatNodeDropType;
|
|
310
|
+
exports.getNewNodeControlPanel = elTreeUtil.getNewNodeControlPanel;
|
|
311
|
+
exports.getNodeControlPanel = elTreeUtil.getNodeControlPanel;
|
|
312
|
+
exports.useAppTreeBase = elTreeUtil.useAppTreeBase;
|
|
313
|
+
exports.useElTreeUtil = elTreeUtil.useElTreeUtil;
|
|
314
|
+
exports.useLoadMoreUtil = elTreeUtil.useLoadMoreUtil;
|
|
289
315
|
exports.IBizTreeControl = index$t.IBizTreeControl;
|
|
290
316
|
exports.IBizPickupViewPanelControl = index$u.IBizPickupViewPanelControl;
|
|
291
317
|
exports.IBizTabExpPanelControl = index$v.IBizTabExpPanelControl;
|
|
@@ -303,6 +329,7 @@ exports.IBizWizardPanelControl = index$E.IBizWizardPanelControl;
|
|
|
303
329
|
exports.DRBarController = drbar_controller.DRBarController;
|
|
304
330
|
exports.IBizDRBarControl = index$F.IBizDRBarControl;
|
|
305
331
|
exports.DRTabController = drtab_controller.DRTabController;
|
|
332
|
+
exports.useAppDRTab = drtabControl_util.useAppDRTab;
|
|
306
333
|
exports.IBizDRTabControl = index$G.IBizDRTabControl;
|
|
307
334
|
exports.ContainerPortlet = containerPortlet.ContainerPortlet;
|
|
308
335
|
exports.IBizContainerPortlet = index$I.IBizContainerPortlet;
|
|
@@ -326,8 +353,12 @@ exports.IBizReportPortlet = index$Q.IBizReportPortlet;
|
|
|
326
353
|
exports.FilterPortlet = filterPortlet.FilterPortlet;
|
|
327
354
|
exports.IBizFilterPortlet = index$R.IBizFilterPortlet;
|
|
328
355
|
exports.IBizDashboardControl = index$H.IBizDashboardControl;
|
|
356
|
+
exports.getWeekRange = calendarUtil.getWeekRange;
|
|
357
|
+
exports.isTimeBetween = calendarUtil.isTimeBetween;
|
|
358
|
+
exports.useCalendarLegend = calendarUtil.useCalendarLegend;
|
|
329
359
|
exports.IBizCalendarControl = index$S.IBizCalendarControl;
|
|
330
360
|
exports.IBizKanbanControl = index$T.IBizKanbanControl;
|
|
361
|
+
exports.useTreeGridExRowEditPopover = useRowEditPopover$1.useRowEditPopover;
|
|
331
362
|
exports.IBizTreeGridExControl = index$U.IBizTreeGridExControl;
|
|
332
363
|
exports.IBizTreeGridControl = index$V.IBizTreeGridControl;
|
|
333
364
|
exports.IBizMEditViewPanelControl = index$W.IBizMEditViewPanelControl;
|
|
@@ -255,8 +255,15 @@ class AIChatUtil {
|
|
|
255
255
|
}
|
|
256
256
|
const sessionid = this.getChatSessionId("TEMP");
|
|
257
257
|
chatOptions.sessionid = sessionid;
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
const chatStateMap = /* @__PURE__ */ new WeakMap();
|
|
259
|
+
const getChatState = (aiChat) => {
|
|
260
|
+
let state = chatStateMap.get(aiChat);
|
|
261
|
+
if (!state) {
|
|
262
|
+
state = { id: "", abortController: new AbortController() };
|
|
263
|
+
chatStateMap.set(aiChat, state);
|
|
264
|
+
}
|
|
265
|
+
return state;
|
|
266
|
+
};
|
|
260
267
|
const { chatInstance, view, ctrl } = args;
|
|
261
268
|
let filePreviewMode = ibiz.config.common.aiFilePreviewMode;
|
|
262
269
|
if (editorParams.srfaifilepreviewmode) {
|
|
@@ -325,8 +332,10 @@ class AIChatUtil {
|
|
|
325
332
|
};
|
|
326
333
|
chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid2, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers, sessionmeta, srfproject, localMsgID) => {
|
|
327
334
|
let updateFlag = true;
|
|
328
|
-
|
|
329
|
-
|
|
335
|
+
const state = getChatState(aiChat);
|
|
336
|
+
state.id = qxUtil.createUUID();
|
|
337
|
+
state.abortController = new AbortController();
|
|
338
|
+
const { id, abortController } = state;
|
|
330
339
|
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
331
340
|
try {
|
|
332
341
|
const questionRequestData = {
|
|
@@ -448,6 +457,7 @@ class AIChatUtil {
|
|
|
448
457
|
}
|
|
449
458
|
};
|
|
450
459
|
chatOptions.abortQuestion = async (aiChat, ctx, param, other) => {
|
|
460
|
+
const { id, abortController } = getChatState(aiChat);
|
|
451
461
|
abortController == null ? void 0 : abortController.abort();
|
|
452
462
|
const asyncacitonid = aiChat.getActiveAsyncacitonId();
|
|
453
463
|
if (asyncacitonid) {
|
|
@@ -482,8 +492,10 @@ class AIChatUtil {
|
|
|
482
492
|
};
|
|
483
493
|
chatOptions.resumeQuestion = async (aiChat, ctx, param, other, arr) => {
|
|
484
494
|
if (other.asyncacitonid) {
|
|
485
|
-
|
|
486
|
-
|
|
495
|
+
const state = getChatState(aiChat);
|
|
496
|
+
state.id = qxUtil.createUUID();
|
|
497
|
+
state.abortController = new AbortController();
|
|
498
|
+
const { id, abortController } = state;
|
|
487
499
|
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
488
500
|
const resumeRequestData = { asyncacitonid: other.asyncacitonid };
|
|
489
501
|
if (other.sessionid) {
|
|
@@ -501,11 +513,9 @@ class AIChatUtil {
|
|
|
501
513
|
srfproject: other.srfproject
|
|
502
514
|
});
|
|
503
515
|
try {
|
|
504
|
-
aiChat.addWaitingMessage(id);
|
|
505
516
|
await deService.aiResumeSse(
|
|
506
517
|
(msg) => {
|
|
507
518
|
if (msg.actionstate === 20 && msg.actionresult) {
|
|
508
|
-
aiChat.removeWaitingMessage(id);
|
|
509
519
|
aiChat.isLoading.value = true;
|
|
510
520
|
if (!aiChat.getActiveAsyncacitonId()) {
|
|
511
521
|
aiChat.setActiveAsyncacitonId(msg.asyncacitonid);
|
|
@@ -575,7 +585,6 @@ class AIChatUtil {
|
|
|
575
585
|
}
|
|
576
586
|
abortController == null ? void 0 : abortController.abort();
|
|
577
587
|
} finally {
|
|
578
|
-
aiChat.removeWaitingMessage(id);
|
|
579
588
|
aiChat.isLoading.value = false;
|
|
580
589
|
aiChat.completeMessage(id, true);
|
|
581
590
|
aiChat.setActiveAsyncacitonId("");
|
|
@@ -666,7 +675,7 @@ class AIChatUtil {
|
|
|
666
675
|
(options == null ? void 0 : options.context) || context,
|
|
667
676
|
(options == null ? void 0 : options.params) || params,
|
|
668
677
|
{},
|
|
669
|
-
{ enableNoAccess: true, osscat: folder }
|
|
678
|
+
{ enableNoAccess: true, osscat: (options == null ? void 0 : options.folder) || folder }
|
|
670
679
|
);
|
|
671
680
|
const headers = ibiz.util.file.getUploadHeaders();
|
|
672
681
|
const formData = new FormData();
|
|
@@ -735,7 +744,7 @@ class AIChatUtil {
|
|
|
735
744
|
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
736
745
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
737
746
|
var _a2, _b, _c;
|
|
738
|
-
const { id
|
|
747
|
+
const { id, isPluginApp } = source;
|
|
739
748
|
let appId = source.appId;
|
|
740
749
|
const tempContext = core.IBizContext.create(context2);
|
|
741
750
|
if (isPluginApp) {
|
|
@@ -750,7 +759,7 @@ class AIChatUtil {
|
|
|
750
759
|
}
|
|
751
760
|
}
|
|
752
761
|
const result = await runtime.UIActionUtil.exec(
|
|
753
|
-
|
|
762
|
+
id,
|
|
754
763
|
{
|
|
755
764
|
view,
|
|
756
765
|
ctrl,
|
|
@@ -1068,8 +1077,15 @@ class AIChatUtil {
|
|
|
1068
1077
|
chatOptions.questionToolbarItems = questionToolbarItems;
|
|
1069
1078
|
chatOptions.otherToolbarItems = otherToolbarItems;
|
|
1070
1079
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1080
|
+
const chatStateMap = /* @__PURE__ */ new WeakMap();
|
|
1081
|
+
const getChatState = (aiChat) => {
|
|
1082
|
+
let state = chatStateMap.get(aiChat);
|
|
1083
|
+
if (!state) {
|
|
1084
|
+
state = { id: "", abortController: new AbortController() };
|
|
1085
|
+
chatStateMap.set(aiChat, state);
|
|
1086
|
+
}
|
|
1087
|
+
return state;
|
|
1088
|
+
};
|
|
1073
1089
|
const { chatInstance, view, ctrl } = args;
|
|
1074
1090
|
let filePreviewMode = ibiz.config.common.aiFilePreviewMode;
|
|
1075
1091
|
if (params.hasOwnProperty("srfaifilepreviewmode")) {
|
|
@@ -1139,8 +1155,10 @@ class AIChatUtil {
|
|
|
1139
1155
|
};
|
|
1140
1156
|
chatOptions.question = async (aiChat, ctx, param, other, arr, sessionid, srfaiagent, srfmode, srfscope, srfknowledgebases, srfaiagentconfig, appendcurdata, mcpservers, sessionmeta, srfproject, localMsgID) => {
|
|
1141
1157
|
let updateFlag = true;
|
|
1142
|
-
|
|
1143
|
-
|
|
1158
|
+
const state = getChatState(aiChat);
|
|
1159
|
+
state.id = qxUtil.createUUID();
|
|
1160
|
+
state.abortController = new AbortController();
|
|
1161
|
+
const { id, abortController } = state;
|
|
1144
1162
|
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
1145
1163
|
try {
|
|
1146
1164
|
const questionRequestData = {
|
|
@@ -1260,6 +1278,7 @@ class AIChatUtil {
|
|
|
1260
1278
|
}
|
|
1261
1279
|
};
|
|
1262
1280
|
chatOptions.abortQuestion = async (aiChat, ctx, param, other) => {
|
|
1281
|
+
const { id, abortController } = getChatState(aiChat);
|
|
1263
1282
|
abortController == null ? void 0 : abortController.abort();
|
|
1264
1283
|
const asyncacitonid = aiChat.getActiveAsyncacitonId();
|
|
1265
1284
|
if (asyncacitonid) {
|
|
@@ -1294,8 +1313,10 @@ class AIChatUtil {
|
|
|
1294
1313
|
};
|
|
1295
1314
|
chatOptions.resumeQuestion = async (aiChat, ctx, param, other, arr) => {
|
|
1296
1315
|
if (other.asyncacitonid) {
|
|
1297
|
-
|
|
1298
|
-
|
|
1316
|
+
const state = getChatState(aiChat);
|
|
1317
|
+
state.id = qxUtil.createUUID();
|
|
1318
|
+
state.abortController = new AbortController();
|
|
1319
|
+
const { id, abortController } = state;
|
|
1299
1320
|
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
|
|
1300
1321
|
const resumeRequestData = { asyncacitonid: other.asyncacitonid };
|
|
1301
1322
|
if (other.sessionid) {
|
|
@@ -1313,11 +1334,9 @@ class AIChatUtil {
|
|
|
1313
1334
|
srfproject: other.srfproject
|
|
1314
1335
|
});
|
|
1315
1336
|
try {
|
|
1316
|
-
aiChat.addWaitingMessage(id);
|
|
1317
1337
|
await deService.aiResumeSse(
|
|
1318
1338
|
(msg) => {
|
|
1319
1339
|
if (msg.actionstate === 20 && msg.actionresult) {
|
|
1320
|
-
aiChat.removeWaitingMessage(id);
|
|
1321
1340
|
aiChat.isLoading.value = true;
|
|
1322
1341
|
if (!aiChat.getActiveAsyncacitonId()) {
|
|
1323
1342
|
aiChat.setActiveAsyncacitonId(msg.asyncacitonid);
|
|
@@ -1387,7 +1406,6 @@ class AIChatUtil {
|
|
|
1387
1406
|
}
|
|
1388
1407
|
abortController == null ? void 0 : abortController.abort();
|
|
1389
1408
|
} finally {
|
|
1390
|
-
aiChat.removeWaitingMessage(id);
|
|
1391
1409
|
aiChat.isLoading.value = false;
|
|
1392
1410
|
aiChat.completeMessage(id, true);
|
|
1393
1411
|
aiChat.setActiveAsyncacitonId("");
|
|
@@ -1479,7 +1497,7 @@ class AIChatUtil {
|
|
|
1479
1497
|
(options == null ? void 0 : options.context) || context,
|
|
1480
1498
|
(options == null ? void 0 : options.params) || params,
|
|
1481
1499
|
{},
|
|
1482
|
-
{ enableNoAccess: true, osscat: folder }
|
|
1500
|
+
{ enableNoAccess: true, osscat: (options == null ? void 0 : options.folder) || folder }
|
|
1483
1501
|
);
|
|
1484
1502
|
const headers = ibiz.util.file.getUploadHeaders();
|
|
1485
1503
|
const formData = new FormData();
|
|
@@ -1549,7 +1567,7 @@ class AIChatUtil {
|
|
|
1549
1567
|
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
1550
1568
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
1551
1569
|
var _a2, _b, _c;
|
|
1552
|
-
const { id
|
|
1570
|
+
const { id, isPluginApp } = source;
|
|
1553
1571
|
let appId = source.appId;
|
|
1554
1572
|
const tempContext = core.IBizContext.create(context2);
|
|
1555
1573
|
if (isPluginApp) {
|
|
@@ -1564,7 +1582,7 @@ class AIChatUtil {
|
|
|
1564
1582
|
}
|
|
1565
1583
|
}
|
|
1566
1584
|
const result = await runtime.UIActionUtil.exec(
|
|
1567
|
-
|
|
1585
|
+
id,
|
|
1568
1586
|
{
|
|
1569
1587
|
view,
|
|
1570
1588
|
ctrl,
|
|
@@ -1963,6 +1981,15 @@ class AIChatUtil {
|
|
|
1963
1981
|
return response.data;
|
|
1964
1982
|
return void 0;
|
|
1965
1983
|
};
|
|
1984
|
+
fileSystemOptions.downloadFile = async (ctx, param, other) => {
|
|
1985
|
+
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
|
|
1986
|
+
const response = await deService.aiChatProject(
|
|
1987
|
+
ctx,
|
|
1988
|
+
{ srfactag: param.srfactag },
|
|
1989
|
+
{ action: "DOWNLOAD", ...other }
|
|
1990
|
+
);
|
|
1991
|
+
return response.data;
|
|
1992
|
+
};
|
|
1966
1993
|
fileSystemOptions.createFolder = async (ctx, param, other) => {
|
|
1967
1994
|
const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
|
|
1968
1995
|
const response = await deService.aiChatProject(
|
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.155",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
33
33
|
"@floating-ui/dom": "^1.5.3",
|
|
34
|
-
"@ibiz-template-plugin/ai-chat": "^0.0.
|
|
34
|
+
"@ibiz-template-plugin/ai-chat": "^0.0.120",
|
|
35
35
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
|
|
36
36
|
"@ibiz-template-plugin/bi-report": "0.0.32",
|
|
37
37
|
"@ibiz-template-plugin/data-view": "0.0.8",
|
|
38
38
|
"@ibiz-template/core": "0.7.41-alpha.152",
|
|
39
39
|
"@ibiz-template/devtool": "0.0.17",
|
|
40
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
41
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
40
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.154",
|
|
41
|
+
"@ibiz-template/runtime": "0.7.41-alpha.154",
|
|
42
42
|
"@ibiz-template/theme": "0.7.39",
|
|
43
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
43
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.154",
|
|
44
44
|
"@ibiz-template/web-theme": "3.16.0",
|
|
45
45
|
"@ibiz/model-core": "^0.1.89",
|
|
46
46
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
@@ -5,6 +5,8 @@ import { CalendarControl } from './calendar';
|
|
|
5
5
|
import { CalendarProvider } from './calendar.provider';
|
|
6
6
|
import IBizCustomCalendar from './components/custom-calendar';
|
|
7
7
|
|
|
8
|
+
export * from './calendar-util';
|
|
9
|
+
|
|
8
10
|
export const IBizCalendarControl = withInstall(
|
|
9
11
|
CalendarControl,
|
|
10
12
|
function (v: App) {
|
|
@@ -5,6 +5,7 @@ import { DRTabControl } from './drtab';
|
|
|
5
5
|
import { DRTabProvider } from './drtab.provider';
|
|
6
6
|
|
|
7
7
|
export * from './drtab.controller';
|
|
8
|
+
export * from './drtab-control.util';
|
|
8
9
|
|
|
9
10
|
export const IBizDRTabControl = withInstall(DRTabControl, function (v: App) {
|
|
10
11
|
v.component(DRTabControl.name, DRTabControl);
|
|
@@ -15,6 +15,7 @@ import { GridControl } from './grid';
|
|
|
15
15
|
import { GridProvider } from './grid.provider';
|
|
16
16
|
|
|
17
17
|
export * from './grid-control.util';
|
|
18
|
+
export { renderChildColumn, renderColumn, renderFieldColumn } from './grid';
|
|
18
19
|
|
|
19
20
|
export const IBizGridControl = withInstall(GridControl, (v: App) => {
|
|
20
21
|
v.component(GridControl.name, GridControl);
|
|
@@ -6,6 +6,10 @@ import { GridFieldEditColumnProvider } from './grid-field-edit-column.provider';
|
|
|
6
6
|
|
|
7
7
|
import { IBizGridEditItem } from './grid-edit-item/grid-edit-item';
|
|
8
8
|
|
|
9
|
+
export * from './cell-edit';
|
|
10
|
+
export * from './all-edit';
|
|
11
|
+
export * from './row-edit';
|
|
12
|
+
|
|
9
13
|
export const IBizGridFieldEditColumn = withInstall(
|
|
10
14
|
GridFieldEditColumn,
|
|
11
15
|
function (v: App) {
|
|
@@ -4,6 +4,8 @@ import { App } from 'vue';
|
|
|
4
4
|
import { TreeControl } from './tree';
|
|
5
5
|
import { TreeProvider } from './tree.provider';
|
|
6
6
|
|
|
7
|
+
export * from './el-tree-util';
|
|
8
|
+
|
|
7
9
|
export const IBizTreeControl = withInstall(TreeControl, function (v: App) {
|
|
8
10
|
v.component(TreeControl.name, TreeControl);
|
|
9
11
|
registerControlProvider(ControlType.TREEVIEW, () => new TreeProvider());
|
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
TreeGridExEditColumn,
|
|
10
10
|
} from './tree-grid-ex-column';
|
|
11
11
|
|
|
12
|
+
export { useRowEditPopover as useTreeGridExRowEditPopover } from './use-row-edit-popover';
|
|
13
|
+
|
|
12
14
|
export const IBizTreeGridExControl = withInstall(
|
|
13
15
|
TreeGridExControl,
|
|
14
16
|
function (v: App) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './tree-grid-ex-field-column';
|
|
2
2
|
export * from './tree-grid-ex-edit-column/tree-grid-ex-edit-column';
|
|
3
3
|
export * from './tree-grid-ex-ua-column';
|
|
4
|
+
export { useAllEdit as useTreeGridExAllEdit } from './tree-grid-ex-edit-column/all-edit';
|
|
5
|
+
export { useCellEdit as useTreeGridExCellEdit } from './tree-grid-ex-edit-column/cell-edit';
|
|
6
|
+
export { useRowEdit as useTreeGridExRowEdit } from './tree-grid-ex-edit-column/row-edit';
|