@ibiz-template/vue3-components 0.7.41-alpha.171 → 0.7.41-alpha.173

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.
Files changed (53) hide show
  1. package/dist/{chart-D8ak71ob.js → chart-5YvW_6v1.js} +1 -1
  2. package/dist/{index-3TWmawfm.js → index-Bpc_rJB_.js} +5 -5
  3. package/dist/{index.es-LxA_BfCY.js → index.es-BGwZae9P.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{wang-editor-Cm91QEYy.js → wang-editor-DPleXNBg.js} +1 -1
  7. package/dist/{xlsx-util-DSZIziO3.js → xlsx-util-Dkq4LKKo.js} +1 -1
  8. package/es/common/carousel/carousel.mjs +1 -1
  9. package/es/control/chart/chart.mjs +4 -4
  10. package/es/control/data-view/data-view.mjs +9 -3
  11. package/es/control/drtab/drtab-control.util.mjs +1 -1
  12. package/es/control/grid/grid/grid.mjs +4 -4
  13. package/es/control/list/list.mjs +9 -3
  14. package/es/control/tree-grid/tree-grid.mjs +4 -4
  15. package/es/control/tree-grid-ex/tree-grid-ex.mjs +4 -4
  16. package/es/editor/ai-chat/embed-ai-chat/embed-ai-chat.mjs +25 -10
  17. package/es/editor/ai-chat/embed-ai-chat-editor.controller.mjs +17 -8
  18. package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.mjs +14 -14
  19. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +25 -28
  20. package/es/util/ai-chat-util/ai-chat-util.mjs +44 -3
  21. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  22. package/es/util/modal-util/modal-util.mjs +7 -0
  23. package/lib/common/carousel/carousel.cjs +1 -1
  24. package/lib/control/chart/chart.cjs +4 -4
  25. package/lib/control/data-view/data-view.cjs +8 -2
  26. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  27. package/lib/control/grid/grid/grid.cjs +4 -4
  28. package/lib/control/list/list.cjs +8 -2
  29. package/lib/control/tree-grid/tree-grid.cjs +4 -4
  30. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +4 -4
  31. package/lib/editor/ai-chat/embed-ai-chat/embed-ai-chat.cjs +24 -9
  32. package/lib/editor/ai-chat/embed-ai-chat-editor.controller.cjs +17 -8
  33. package/lib/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.cjs +14 -14
  34. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +25 -28
  35. package/lib/util/ai-chat-util/ai-chat-util.cjs +43 -2
  36. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  37. package/lib/util/modal-util/modal-util.cjs +7 -0
  38. package/package.json +6 -6
  39. package/src/common/carousel/carousel.tsx +1 -1
  40. package/src/control/chart/chart.tsx +4 -4
  41. package/src/control/data-view/data-view.tsx +11 -4
  42. package/src/control/grid/grid/grid.tsx +4 -4
  43. package/src/control/list/list.tsx +11 -4
  44. package/src/control/tree-grid/tree-grid.tsx +4 -4
  45. package/src/control/tree-grid-ex/tree-grid-ex.tsx +4 -4
  46. package/src/editor/ai-chat/embed-ai-chat/embed-ai-chat.tsx +32 -18
  47. package/src/editor/ai-chat/embed-ai-chat-editor.controller.ts +25 -13
  48. package/src/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.tsx +14 -14
  49. package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +42 -63
  50. package/src/util/ai-chat-util/ai-chat-util.ts +49 -3
  51. package/src/util/modal-util/modal-util.ts +8 -0
  52. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.152_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.161_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
  53. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.152_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.161_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
@@ -60,7 +60,7 @@ const IBizCarouselComponent = /* @__PURE__ */ defineComponent({
60
60
  style: props.semantic.semanticStyle("arrowright"),
61
61
  selector: ".el-carousel__arrow--right"
62
62
  }, {
63
- class: props.semantic.semanticStyle("indicator"),
63
+ style: props.semantic.semanticStyle("indicator"),
64
64
  selector: ".el-carousel__indicator"
65
65
  }];
66
66
  return {
@@ -102,16 +102,16 @@ const ChartControl = /* @__PURE__ */ defineComponent({
102
102
  selector: ".el-table__header .el-table__cell"
103
103
  }];
104
104
  const childStyle = [{
105
- class: semanticStyle("table.body.row"),
105
+ style: semanticStyle("table.body.row"),
106
106
  selector: ".el-table__row"
107
107
  }, {
108
- class: semanticStyle("table.header.row"),
108
+ style: semanticStyle("table.header.row"),
109
109
  selector: ".el-table__header tr"
110
110
  }, {
111
- class: semanticStyle("table.body.cell"),
111
+ style: semanticStyle("table.body.cell"),
112
112
  selector: ".el-table__body .el-table__cell"
113
113
  }, {
114
- class: semanticStyle("table.header.cell"),
114
+ style: semanticStyle("table.header.cell"),
115
115
  selector: ".el-table__header .el-table__cell"
116
116
  }];
117
117
  const initSimpleData = () => {
@@ -1,6 +1,6 @@
1
1
  import { isVNode, defineComponent, createVNode, resolveComponent, mergeProps, ref, computed, watch, h, withDirectives, resolveDirective, Fragment } from 'vue';
2
2
  import { useControlController, useNamespace, useControlPopoverzIndex, useSemanticNode, hasEmptyPanelRenderer, IBizCustomRender } from '@ibiz-template/vue3-util';
3
- import { DataViewControlController, ControlVO, getMDCtrlItemProvider, getControl, filterPresetAttrs, ScriptFactory } from '@ibiz-template/runtime';
3
+ import { DataViewControlController, ControlVO, Srfuf, getMDCtrlItemProvider, getControl, filterPresetAttrs, ScriptFactory } from '@ibiz-template/runtime';
4
4
  import { createUUID } from 'qx-util';
5
5
  import draggable from 'vuedraggable';
6
6
  import '../../util/index.mjs';
@@ -136,14 +136,20 @@ const DataViewControl = /* @__PURE__ */ defineComponent({
136
136
  }
137
137
  });
138
138
  const isSelected = (item) => {
139
- let selected = !!c.state.selectedData.find((data) => data.srfkey === item.srfkey);
139
+ let selected = !!c.state.selectedData.find((data) => {
140
+ const isCreate = data.srfuf === Srfuf.CREATE;
141
+ const compareKey = isCreate ? "tempsrfkey" : "srfkey";
142
+ return data[compareKey] === item[compareKey];
143
+ });
140
144
  if (c.view.model.viewType === "DEDATAVIEW" && c.state.mdctrlActiveMode === 1 && c.state.singleSelect === true)
141
145
  selected = false;
142
146
  return selected;
143
147
  };
144
148
  const toggleSelection = (item) => {
145
149
  const selected = c.state.selectedData;
146
- const index = selected.findIndex((data) => data.srfkey === item.srfkey);
150
+ const isCreate = item.srfuf === Srfuf.CREATE;
151
+ const compareKey = isCreate ? "tempsrfkey" : "srfkey";
152
+ const index = selected.findIndex((data) => data[compareKey] === item[compareKey]);
147
153
  if (index === -1) {
148
154
  selected.push(item);
149
155
  } else {
@@ -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.152_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';
2
+ import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.161_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) {
@@ -378,16 +378,16 @@ const GridControl = /* @__PURE__ */ defineComponent({
378
378
  selector: ".el-table__header .el-table__cell"
379
379
  }];
380
380
  const childStyle = [{
381
- class: semanticStyle("body.row"),
381
+ style: semanticStyle("body.row"),
382
382
  selector: ".el-table__row"
383
383
  }, {
384
- class: semanticStyle("header.row"),
384
+ style: semanticStyle("header.row"),
385
385
  selector: ".el-table__header tr"
386
386
  }, {
387
- class: semanticStyle("body.cell"),
387
+ style: semanticStyle("body.cell"),
388
388
  selector: ".el-table__body .el-table__cell"
389
389
  }, {
390
- class: semanticStyle("header.cell"),
390
+ style: semanticStyle("header.cell"),
391
391
  selector: ".el-table__header .el-table__cell"
392
392
  }];
393
393
  c.evt.on("onLoadSuccess", () => {
@@ -1,7 +1,7 @@
1
1
  import { isVNode, defineComponent, createVNode, resolveComponent, mergeProps, ref, computed, watch, h } from 'vue';
2
2
  import { useControlController, useNamespace, useControlPopoverzIndex, useSemanticNode, hasEmptyPanelRenderer, IBizCustomRender } from '@ibiz-template/vue3-util';
3
3
  import { isNil, debounce } from 'lodash-es';
4
- import { ListController, ControlVO, getMDCtrlItemProvider, filterPresetAttrs, ScriptFactory } from '@ibiz-template/runtime';
4
+ import { ListController, ControlVO, Srfuf, getMDCtrlItemProvider, filterPresetAttrs, ScriptFactory } from '@ibiz-template/runtime';
5
5
  import draggable from 'vuedraggable';
6
6
  import { showTitle } from '@ibiz-template/core';
7
7
  import '../../util/index.mjs';
@@ -192,14 +192,20 @@ const ListControl = /* @__PURE__ */ defineComponent({
192
192
  isCollapse.value = false;
193
193
  };
194
194
  const isSelected = (item) => {
195
- let selected = !!c.state.selectedData.find((data) => data.srfkey === item.srfkey);
195
+ let selected = !!c.state.selectedData.find((data) => {
196
+ const isCreate = data.srfuf === Srfuf.CREATE;
197
+ const compareKey = isCreate ? "tempsrfkey" : "srfkey";
198
+ return data[compareKey] === item[compareKey];
199
+ });
196
200
  if (c.view.model.viewType === "DELISTVIEW" && c.state.mdctrlActiveMode === 1 && c.state.singleSelect === true)
197
201
  selected = false;
198
202
  return selected;
199
203
  };
200
204
  const toggleSelection = (item) => {
201
205
  const selected = c.state.selectedData;
202
- const index = selected.findIndex((data) => data.srfkey === item.srfkey);
206
+ const isCreate = item.srfuf === Srfuf.CREATE;
207
+ const compareKey = isCreate ? "tempsrfkey" : "srfkey";
208
+ const index = selected.findIndex((data) => data[compareKey] === item[compareKey]);
203
209
  if (index === -1) {
204
210
  selected.push(item);
205
211
  } else {
@@ -124,16 +124,16 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
124
124
  selector: ".el-table__header .el-table__cell"
125
125
  }];
126
126
  const childStyle = [{
127
- class: semanticStyle("body.row"),
127
+ style: semanticStyle("body.row"),
128
128
  selector: ".el-table__row"
129
129
  }, {
130
- class: semanticStyle("header.row"),
130
+ style: semanticStyle("header.row"),
131
131
  selector: ".el-table__header tr"
132
132
  }, {
133
- class: semanticStyle("body.cell"),
133
+ style: semanticStyle("body.cell"),
134
134
  selector: ".el-table__body .el-table__cell"
135
135
  }, {
136
- class: semanticStyle("header.cell"),
136
+ style: semanticStyle("header.cell"),
137
137
  selector: ".el-table__header .el-table__cell"
138
138
  }];
139
139
  const {
@@ -75,16 +75,16 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
75
75
  selector: ".el-table__header .el-table__cell"
76
76
  }];
77
77
  const childStyle = [{
78
- class: semanticStyle("body.row"),
78
+ style: semanticStyle("body.row"),
79
79
  selector: ".el-table__row"
80
80
  }, {
81
- class: semanticStyle("header.row"),
81
+ style: semanticStyle("header.row"),
82
82
  selector: ".el-table__header tr"
83
83
  }, {
84
- class: semanticStyle("body.cell"),
84
+ style: semanticStyle("body.cell"),
85
85
  selector: ".el-table__body .el-table__cell"
86
86
  }, {
87
- class: semanticStyle("header.cell"),
87
+ style: semanticStyle("header.cell"),
88
88
  selector: ".el-table__header .el-table__cell"
89
89
  }];
90
90
  const renderNoData = () => {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, createVNode, ref, watch, onMounted, onUnmounted, onDeactivated, onActivated } from 'vue';
2
2
  import { createUUID } from 'qx-util';
3
- import { convertNavData, calcDeCodeNameById, FormDetailEventName } from '@ibiz-template/runtime';
3
+ import { calcDeCodeNameById, convertNavData, FormDetailEventName } from '@ibiz-template/runtime';
4
4
  import { useNamespace, getEditorEmits, getInputProps } from '@ibiz-template/vue3-util';
5
5
  import './embed-ai-chat.css';
6
6
 
@@ -17,6 +17,27 @@ const IBizEmbedAIChat = /* @__PURE__ */ defineComponent({
17
17
  const knowledgeMap = /* @__PURE__ */ new Map();
18
18
  const aiChatElementRef = ref(null);
19
19
  let mountedFlag = false;
20
+ const getTopicId = () => {
21
+ const {
22
+ appDataEntityId,
23
+ appDEACModeId
24
+ } = c.model;
25
+ if (!appDataEntityId || !appDEACModeId)
26
+ return "";
27
+ const editorParams = {
28
+ ...c.editorParams
29
+ };
30
+ const appDataEntityName = calcDeCodeNameById(appDataEntityId);
31
+ let topicId = "".concat(appDataEntityId, "@").concat(c.model.appDEACModeId, "@");
32
+ topicId += c.context[appDataEntityName] ? c.context[appDataEntityName] : editorParams.srfainewtopic === "true" ? createUUID() : "default";
33
+ if (editorParams.srfattachsessiontag) {
34
+ topicId += "__".concat(editorParams.srfattachsessiontag);
35
+ delete editorParams.srfattachsessiontag;
36
+ } else {
37
+ topicId += "__".concat(createUUID());
38
+ }
39
+ return topicId;
40
+ };
20
41
  const mountedAIChat = async () => {
21
42
  var _a;
22
43
  if (mountedFlag)
@@ -45,16 +66,10 @@ const IBizEmbedAIChat = /* @__PURE__ */ defineComponent({
45
66
  topicId = srfsessionid.substring(firstAtIndex + 1, lastAtIndex);
46
67
  }
47
68
  sessionid = editorParams.srfsessionid;
69
+ if (c.isShare)
70
+ topicId = getTopicId();
48
71
  } else {
49
- const appDataEntityName = calcDeCodeNameById(appDataEntityId);
50
- topicId = "".concat(appDataEntityId, "@").concat(c.model.appDEACModeId, "@");
51
- topicId += c.context[appDataEntityName] ? c.context[appDataEntityName] : editorParams.srfainewtopic === "true" ? createUUID() : "default";
52
- if (editorParams.srfattachsessiontag) {
53
- topicId += "__".concat(editorParams.srfattachsessiontag);
54
- delete editorParams.srfattachsessiontag;
55
- } else {
56
- topicId += "__".concat(createUUID());
57
- }
72
+ topicId = getTopicId();
58
73
  sessionid = ibiz.aiChatUtil.getChatSessionId("TOPIC", topicId, editorParams.srfattachtimestamp !== "false");
59
74
  }
60
75
  const tempParams = {
@@ -37,11 +37,17 @@ class EmbedAIChatEditorController extends EditorController {
37
37
  */
38
38
  __publicField(this, "deACMode");
39
39
  /**
40
- * @description
40
+ * @description 是否为简单模式
41
41
  * @type {boolean}
42
42
  * @memberof EmbedAIChatEditorController
43
43
  */
44
44
  __publicField(this, "isSimple", false);
45
+ /**
46
+ * @description 是否为分享模式
47
+ * @type {boolean}
48
+ * @memberof EmbedAIChatEditorController
49
+ */
50
+ __publicField(this, "isShare", false);
45
51
  /**
46
52
  * @description 编辑器唯一标识
47
53
  * @protected
@@ -59,6 +65,7 @@ class EmbedAIChatEditorController extends EditorController {
59
65
  * @memberof EmbedAIChatEditorController
60
66
  */
61
67
  async onInit() {
68
+ var _a;
62
69
  await super.onInit();
63
70
  const model = this.model;
64
71
  if (model.appDEACModeId) {
@@ -73,15 +80,17 @@ class EmbedAIChatEditorController extends EditorController {
73
80
  }
74
81
  }
75
82
  }
76
- const module = await import('@ibiz-template-plugin/ai-chat');
77
- if (module && module.createFlatChat) {
78
- this.chatInstance = module.createFlatChat();
79
- } else if (module && module.default && module.default.createFlatChat) {
80
- this.chatInstance = module.default.createFlatChat();
81
- }
82
- const { issimple } = this.editorParams;
83
+ const { issimple, share } = this.editorParams;
83
84
  if (issimple)
84
85
  this.isSimple = issimple === "true";
86
+ this.isShare = share === "true";
87
+ const module = await import('@ibiz-template-plugin/ai-chat');
88
+ if (!module)
89
+ return;
90
+ const factory = (_a = module.default) != null ? _a : module;
91
+ const createChat = this.isShare ? factory.createReadonlyChat : factory.createFlatChat;
92
+ if (createChat)
93
+ this.chatInstance = createChat();
85
94
  }
86
95
  /**
87
96
  * @description 重绘
@@ -66,46 +66,46 @@ const IBizTransferPicker = /* @__PURE__ */ defineComponent({
66
66
  selector: ".ibiz-transfer-panel__item .el-checkbox__label"
67
67
  }];
68
68
  const childStyle = [{
69
- class: semanticStyle("editor.content"),
69
+ style: semanticStyle("editor.content"),
70
70
  selector: ".ibiz-transfer"
71
71
  }, {
72
- class: semanticStyle("editor.section"),
72
+ style: semanticStyle("editor.section"),
73
73
  selector: ".ibiz-transfer-panel"
74
74
  }, {
75
- class: semanticStyle("editor.actions"),
75
+ style: semanticStyle("editor.actions"),
76
76
  selector: ".ibiz-transfer__buttons"
77
77
  }, {
78
- class: semanticStyle("editor.actions.item"),
78
+ style: semanticStyle("editor.actions.item"),
79
79
  selector: ".ibiz-transfer__button"
80
80
  }, {
81
- class: semanticStyle("editor.header"),
81
+ style: semanticStyle("editor.header"),
82
82
  selector: ".ibiz-transfer-panel__header"
83
83
  }, {
84
- class: semanticStyle("editor.title"),
84
+ style: semanticStyle("editor.title"),
85
85
  selector: ".ibiz-transfer-panel__header--title"
86
86
  }, {
87
- class: semanticStyle("editor.count"),
87
+ style: semanticStyle("editor.count"),
88
88
  selector: ".ibiz-transfer-panel__header--count"
89
89
  }, {
90
- class: semanticStyle("editor.body"),
90
+ style: semanticStyle("editor.body"),
91
91
  selector: ".ibiz-transfer-panel__body"
92
92
  }, {
93
- class: semanticStyle("editor.search"),
93
+ style: semanticStyle("editor.search"),
94
94
  selector: ".el-input__inner"
95
95
  }, {
96
- class: semanticStyle("editor.search.prefix"),
96
+ style: semanticStyle("editor.search.prefix"),
97
97
  selector: ".el-input__prefix"
98
98
  }, {
99
- class: semanticStyle("editor.list"),
99
+ style: semanticStyle("editor.list"),
100
100
  selector: ".ibiz-transfer-panel__list"
101
101
  }, {
102
- class: semanticStyle("editor.item"),
102
+ style: semanticStyle("editor.item"),
103
103
  selector: ".ibiz-transfer-panel__item"
104
104
  }, {
105
- class: semanticStyle("editor.item.checkbox"),
105
+ style: semanticStyle("editor.item.checkbox"),
106
106
  selector: ".ibiz-transfer-panel__item .el-checkbox__inner"
107
107
  }, {
108
- class: semanticStyle("editor.item.label"),
108
+ style: semanticStyle("editor.item.label"),
109
109
  selector: ".ibiz-transfer-panel__item .el-checkbox__label"
110
110
  }];
111
111
  const curValue = ref([]);
@@ -408,23 +408,28 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
408
408
  funcs.stop();
409
409
  }
410
410
  });
411
+ const getItemStyle = (item) => {
412
+ const isRound = c.editorParams.type === "round";
413
+ return ns.cssVarBlock({
414
+ "select-option-item-color": isRound ? (item == null ? void 0 : item.color) || "var(".concat(ns.cssVarName("color-primary-text"), ")") : item == null ? void 0 : item.color,
415
+ "select-option-item-bkcolor": isRound ? (item == null ? void 0 : item.bkcolor) || "var(".concat(ns.cssVarName("color-primary"), ")") : item == null ? void 0 : item.bkcolor,
416
+ "select-option-item-padding": isRound ? "0 var(".concat(ns.cssVarName("spacing-base"), ")") : ""
417
+ });
418
+ };
411
419
  const prefix = {};
412
420
  if (c.editorParams.type === "round") {
413
421
  Object.assign(prefix, {
414
422
  prefix: () => {
415
- return valueText.value.split(valueSeparator).map((text) => {
416
- const codeListItem = getCodeListItem(text);
417
- return createVNode("div", {
418
- "class": [ns.b("select-option-text"), codeListItem == null ? void 0 : codeListItem.textCls],
419
- "style": (codeListItem == null ? void 0 : codeListItem.color) || (codeListItem == null ? void 0 : codeListItem.bkcolor) ? ns.cssVarBlock({
420
- "select-option-item-color": "".concat(codeListItem.color || ""),
421
- "select-option-item-bkcolor": "".concat(codeListItem.bkcolor || ""),
422
- "select-option-item-padding": "0 var(".concat(ns.cssVarName("spacing-base"), ")")
423
- }) : ""
424
- }, [(codeListItem == null ? void 0 : codeListItem.sysImage) && createVNode(resolveComponent("iBizIcon"), {
425
- "icon": codeListItem == null ? void 0 : codeListItem.sysImage
426
- }, null), text || ""]);
427
- });
423
+ if (valueText.value)
424
+ return valueText.value.split(valueSeparator).map((text) => {
425
+ const codeListItem = getCodeListItem(text);
426
+ return createVNode("div", {
427
+ "class": [ns.b("select-option-text"), codeListItem == null ? void 0 : codeListItem.textCls],
428
+ "style": getItemStyle(codeListItem)
429
+ }, [(codeListItem == null ? void 0 : codeListItem.sysImage) && createVNode(resolveComponent("iBizIcon"), {
430
+ "icon": codeListItem == null ? void 0 : codeListItem.sysImage
431
+ }, null), text]);
432
+ });
428
433
  }
429
434
  });
430
435
  }
@@ -450,6 +455,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
450
455
  onFocus,
451
456
  setEditable,
452
457
  handleKeyUp,
458
+ getItemStyle,
453
459
  getCodeListItem,
454
460
  onVisibleChange,
455
461
  customNodeClass,
@@ -540,9 +546,9 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
540
546
  "value": (_a = item.value) == null ? void 0 : _a.toString(),
541
547
  "label": item.text,
542
548
  "disabled": item.disableSelect === true,
543
- "style": [item.bkcolor ? this.ns.cssVarBlock({
544
- "select-option-item-bkcolor": "".concat(item.bkcolor)
545
- }) : "", this.semanticStyle("editor.popup.item", {
549
+ "style": [this.ns.cssVarBlock({
550
+ "select-option-item-bkcolor": item.bkcolor
551
+ }), this.semanticStyle("editor.popup.item", {
546
552
  item
547
553
  })],
548
554
  "class": [item.cls ? item.cls : null, this.ns.e("option-item"), this.semanticClass("editor.popup.item", {
@@ -553,9 +559,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
553
559
  default: () => {
554
560
  return createVNode("div", {
555
561
  "class": [this.ns.b("select-option-content"), item.textCls ? item.textCls : null],
556
- "style": item.color ? this.ns.cssVarBlock({
557
- "select-option-item-color": "".concat(item.color)
558
- }) : ""
562
+ "style": this.getItemStyle(item)
559
563
  }, [item.sysImage && createVNode(resolveComponent("iBizIcon"), {
560
564
  "class": this.ns.em("option-item", "icon"),
561
565
  "icon": item.sysImage
@@ -578,11 +582,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
578
582
  "class": [this.ns.e("item"), codeListItem == null ? void 0 : codeListItem.textCls, this.ns.b("readonly-text-item"), this.semanticClass("editor.item", {
579
583
  item: codeListItem
580
584
  })],
581
- "style": [(codeListItem == null ? void 0 : codeListItem.color) || (codeListItem == null ? void 0 : codeListItem.bkcolor) ? this.ns.cssVarBlock({
582
- "readonly-text-item-color": "".concat(codeListItem.color || ""),
583
- "select-option-item-color": "".concat(codeListItem.color || ""),
584
- "select-option-item-bkcolor": "".concat((this.c.editorParams.type === "round" ? codeListItem.bkcolor : "") || "")
585
- }) : "", this.semanticStyle("editor.item", {
585
+ "style": [this.getItemStyle(codeListItem), this.semanticStyle("editor.item", {
586
586
  item: codeListItem
587
587
  })]
588
588
  }, [(codeListItem == null ? void 0 : codeListItem.sysImage) && createVNode(resolveComponent("iBizIcon"), {
@@ -605,10 +605,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
605
605
  "class": [this.ns.e("item"), codeListItem == null ? void 0 : codeListItem.textCls, this.ns.b("content-item"), this.semanticClass("editor.item", {
606
606
  item: codeListItem
607
607
  })],
608
- "style": [(codeListItem == null ? void 0 : codeListItem.color) || (codeListItem == null ? void 0 : codeListItem.bkcolor) ? this.ns.cssVarBlock({
609
- "select-option-item-color": "".concat(codeListItem.color || ""),
610
- "select-option-item-bkcolor": "".concat((this.c.editorParams.type === "round" ? codeListItem.bkcolor : "") || "")
611
- }) : "", this.semanticStyle("editor.item", {
608
+ "style": [this.getItemStyle(codeListItem), this.semanticStyle("editor.item", {
612
609
  item: codeListItem
613
610
  })]
614
611
  }, [createVNode("span", {
@@ -1,6 +1,6 @@
1
1
  import { h, render, createVNode } from 'vue';
2
2
  import { createUUID } from 'qx-util';
3
- import { ConfigService, UIActionUtil, SysUIActionTag, parseViewProtocol, OpenAppViewCommand, UtilService, AIUtilService, Modal, ViewMode } from '@ibiz-template/runtime';
3
+ import { UIActionUtil, ConfigService, SysUIActionTag, parseViewProtocol, OpenAppViewCommand, UtilService, AIUtilService, Modal, ViewMode } from '@ibiz-template/runtime';
4
4
  import { StringUtil, IBizContext } from '@ibiz-template/core';
5
5
  import { IBizViewShell } from '@ibiz-template/vue3-util';
6
6
  import { isNotNil } from 'ramda';
@@ -328,6 +328,22 @@ class AIChatUtil {
328
328
  });
329
329
  return result;
330
330
  };
331
+ topicOptions.shareTopic = async (realID) => {
332
+ if (!ibiz.config.common.aiSessionShareUIActionTag)
333
+ return;
334
+ await UIActionUtil.execAndResolved(
335
+ ibiz.config.common.aiSessionShareUIActionTag,
336
+ {
337
+ context,
338
+ params,
339
+ data: [{ id: realID }],
340
+ view: args.view,
341
+ ctrl: args.ctrl
342
+ },
343
+ context.srfappid
344
+ );
345
+ return true;
346
+ };
331
347
  topicOptions.action = async (action, context2, params2, data2, event) => {
332
348
  if (action === "LINK" && data2.url) {
333
349
  await ibiz.openView.push(data2.url);
@@ -341,7 +357,7 @@ class AIChatUtil {
341
357
  locale: ibiz.i18n.getLang(),
342
358
  enableAIProject: editorParams.srfenableaiprojectselect ? editorParams.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect,
343
359
  projectSelectPlaceholder: editorParams.srfprojectselectplaceholder || ibiz.config.common.aiProjectSelectPlaceholder,
344
- knowledgeBaseView: editorParams.srfaiknowledgebaseview || ibiz.config.common.aiKnowledgeBaseView,
360
+ knowledgeBaseView: editorParams.srfaiknowledgebaseview !== void 0 ? editorParams.srfaiknowledgebaseview : ibiz.config.common.aiKnowledgeBaseView,
345
361
  selectAIProjectId: editorParams.srfselectaiprojectid
346
362
  };
347
363
  if (editorParams.srfaiappendcurdata) {
@@ -1079,6 +1095,22 @@ class AIChatUtil {
1079
1095
  });
1080
1096
  return result;
1081
1097
  };
1098
+ topicOptions.shareTopic = async (realID) => {
1099
+ if (!ibiz.config.common.aiSessionShareUIActionTag)
1100
+ return;
1101
+ await UIActionUtil.execAndResolved(
1102
+ ibiz.config.common.aiSessionShareUIActionTag,
1103
+ {
1104
+ context,
1105
+ params,
1106
+ data: [{ id: realID }],
1107
+ view: args.view,
1108
+ ctrl: args.ctrl
1109
+ },
1110
+ context.srfappid
1111
+ );
1112
+ return true;
1113
+ };
1082
1114
  topicOptions.action = async (action, context2, params2, data2, event) => {
1083
1115
  if (action === "LINK" && data2.url) {
1084
1116
  await ibiz.openView.push(data2.url);
@@ -1092,7 +1124,7 @@ class AIChatUtil {
1092
1124
  locale: ibiz.i18n.getLang(),
1093
1125
  enableAIProject: params.srfenableaiprojectselect ? params.srfenableaiprojectselect === "true" : ibiz.config.common.enableAIProjectSelect,
1094
1126
  projectSelectPlaceholder: params.srfprojectselectplaceholder || ibiz.config.common.aiProjectSelectPlaceholder,
1095
- knowledgeBaseView: params.srfaiknowledgebaseview || ibiz.config.common.aiKnowledgeBaseView,
1127
+ knowledgeBaseView: params.srfaiknowledgebaseview !== void 0 ? params.srfaiknowledgebaseview : ibiz.config.common.aiKnowledgeBaseView,
1096
1128
  selectAIProjectId: params.srfselectaiprojectid
1097
1129
  };
1098
1130
  if (params.hasOwnProperty("srfaiknowledgebaseview"))
@@ -2051,6 +2083,15 @@ class AIChatUtil {
2051
2083
  );
2052
2084
  return result;
2053
2085
  };
2086
+ resourceOptions.copySession = async (realID, data) => {
2087
+ const result = await utilService.copySession(
2088
+ context,
2089
+ params,
2090
+ realID,
2091
+ data
2092
+ );
2093
+ return result;
2094
+ };
2054
2095
  return resourceOptions;
2055
2096
  }
2056
2097
  /**
@@ -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.152_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
+ import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.161_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";
@@ -2,6 +2,13 @@ import { ElMessageBox } from 'element-plus';
2
2
 
3
3
  "use strict";
4
4
  class ModalUtil {
5
+ async default(params) {
6
+ await ElMessageBox({
7
+ message: params.desc,
8
+ ...params,
9
+ ...params.options
10
+ });
11
+ }
5
12
  async info(params) {
6
13
  await ElMessageBox.alert(params.desc, params.title, {
7
14
  ...params.options,
@@ -62,7 +62,7 @@ const IBizCarouselComponent = /* @__PURE__ */ vue.defineComponent({
62
62
  style: props.semantic.semanticStyle("arrowright"),
63
63
  selector: ".el-carousel__arrow--right"
64
64
  }, {
65
- class: props.semantic.semanticStyle("indicator"),
65
+ style: props.semantic.semanticStyle("indicator"),
66
66
  selector: ".el-carousel__indicator"
67
67
  }];
68
68
  return {
@@ -106,16 +106,16 @@ const ChartControl = /* @__PURE__ */ vue.defineComponent({
106
106
  selector: ".el-table__header .el-table__cell"
107
107
  }];
108
108
  const childStyle = [{
109
- class: semanticStyle("table.body.row"),
109
+ style: semanticStyle("table.body.row"),
110
110
  selector: ".el-table__row"
111
111
  }, {
112
- class: semanticStyle("table.header.row"),
112
+ style: semanticStyle("table.header.row"),
113
113
  selector: ".el-table__header tr"
114
114
  }, {
115
- class: semanticStyle("table.body.cell"),
115
+ style: semanticStyle("table.body.cell"),
116
116
  selector: ".el-table__body .el-table__cell"
117
117
  }, {
118
- class: semanticStyle("table.header.cell"),
118
+ style: semanticStyle("table.header.cell"),
119
119
  selector: ".el-table__header .el-table__cell"
120
120
  }];
121
121
  const initSimpleData = () => {
@@ -138,14 +138,20 @@ const DataViewControl = /* @__PURE__ */ vue.defineComponent({
138
138
  }
139
139
  });
140
140
  const isSelected = (item) => {
141
- let selected = !!c.state.selectedData.find((data) => data.srfkey === item.srfkey);
141
+ let selected = !!c.state.selectedData.find((data) => {
142
+ const isCreate = data.srfuf === runtime.Srfuf.CREATE;
143
+ const compareKey = isCreate ? "tempsrfkey" : "srfkey";
144
+ return data[compareKey] === item[compareKey];
145
+ });
142
146
  if (c.view.model.viewType === "DEDATAVIEW" && c.state.mdctrlActiveMode === 1 && c.state.singleSelect === true)
143
147
  selected = false;
144
148
  return selected;
145
149
  };
146
150
  const toggleSelection = (item) => {
147
151
  const selected = c.state.selectedData;
148
- const index = selected.findIndex((data) => data.srfkey === item.srfkey);
152
+ const isCreate = item.srfuf === runtime.Srfuf.CREATE;
153
+ const compareKey = isCreate ? "tempsrfkey" : "srfkey";
154
+ const index = selected.findIndex((data) => data[compareKey] === item[compareKey]);
149
155
  if (index === -1) {
150
156
  selected.push(item);
151
157
  } else {
@@ -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.152_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');
4
+ var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.161_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) {
@@ -380,16 +380,16 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
380
380
  selector: ".el-table__header .el-table__cell"
381
381
  }];
382
382
  const childStyle = [{
383
- class: semanticStyle("body.row"),
383
+ style: semanticStyle("body.row"),
384
384
  selector: ".el-table__row"
385
385
  }, {
386
- class: semanticStyle("header.row"),
386
+ style: semanticStyle("header.row"),
387
387
  selector: ".el-table__header tr"
388
388
  }, {
389
- class: semanticStyle("body.cell"),
389
+ style: semanticStyle("body.cell"),
390
390
  selector: ".el-table__body .el-table__cell"
391
391
  }, {
392
- class: semanticStyle("header.cell"),
392
+ style: semanticStyle("header.cell"),
393
393
  selector: ".el-table__header .el-table__cell"
394
394
  }];
395
395
  c.evt.on("onLoadSuccess", () => {