@ibiz-template/vue3-components 0.7.41-alpha.151 → 0.7.41-alpha.153

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.
@@ -2,6 +2,7 @@ import { defineComponent, createVNode, resolveComponent, ref, watch } from 'vue'
2
2
  import { useNamespace } from '@ibiz-template/vue3-util';
3
3
  import { createUUID } from 'qx-util';
4
4
  import { isBase64Image, isBase64, isSvg } from '@ibiz-template/core';
5
+ import { isObject } from 'lodash-es';
5
6
  import '../../util/index.mjs';
6
7
  import './rawitem.css';
7
8
  import { parseHtml } from '../../util/wang-editor-util/wang-editor-util.mjs';
@@ -119,7 +120,8 @@ const IBizRawItem = /* @__PURE__ */ defineComponent({
119
120
  }
120
121
  } else if (["INFO", "WARNING", "ERROR"].includes(contentType)) {
121
122
  rawItemContent.value = rawItem.rawContent;
122
- } else if (["VIDEO", "DIVIDER"].includes(contentType)) {
123
+ } else if (contentType === "DIVIDER" && !rawItem.rawItemParams) {
124
+ rawItemContent.value = rawItem.rawContent;
123
125
  } else if (contentType === "IMAGE" && sysImage) {
124
126
  rawItemContent.value = sysImage;
125
127
  }
@@ -157,6 +159,15 @@ const IBizRawItem = /* @__PURE__ */ defineComponent({
157
159
  showIcon: false
158
160
  });
159
161
  const rawItemText = ref("");
162
+ const getRawItemParams = () => {
163
+ const tempParams = {};
164
+ if (rawItem && rawItem.rawItemParams && rawItem.rawItemParams.length > 0) {
165
+ rawItem.rawItemParams.forEach((item) => {
166
+ tempParams[item.key] = item.value;
167
+ });
168
+ }
169
+ return tempParams;
170
+ };
160
171
  const convertValue = () => {
161
172
  if (rawItemType.value === "IMAGE") {
162
173
  if (props.content && typeof props.content === "string") {
@@ -192,20 +203,36 @@ const IBizRawItem = /* @__PURE__ */ defineComponent({
192
203
  let rawConfig = {};
193
204
  try {
194
205
  if (typeof rawItemContent.value === "string") {
195
- const func = new Function("return (".concat(rawItemContent.value, ");"));
196
- rawConfig = func();
206
+ if (/^[[{]/.test(rawItemContent.value)) {
207
+ const func = new Function("return (".concat(rawItemContent.value, ");"));
208
+ rawConfig = func();
209
+ } else {
210
+ rawConfig = rawItemContent.value;
211
+ }
197
212
  switch (rawItemType.value) {
198
213
  case "VIDEO":
199
- Object.assign(playerParams.value, rawConfig);
214
+ if (isObject(rawConfig)) {
215
+ Object.assign(playerParams.value, rawConfig);
216
+ } else {
217
+ playerParams.value.path = rawConfig;
218
+ }
200
219
  break;
201
220
  case "DIVIDER":
202
- Object.assign(dividerParams.value, rawConfig);
221
+ if (isObject(rawConfig)) {
222
+ Object.assign(dividerParams.value, rawConfig);
223
+ } else {
224
+ dividerParams.value.html = rawConfig;
225
+ }
203
226
  break;
204
227
  case "INFO":
205
228
  case "WARNING":
206
229
  case "ERROR":
207
230
  alertParams.value.type = rawItemType.value.toLocaleLowerCase();
208
- Object.assign(alertParams.value, rawConfig);
231
+ if (isObject(rawConfig)) {
232
+ Object.assign(alertParams.value, rawConfig);
233
+ } else {
234
+ alertParams.value.title = rawConfig;
235
+ }
209
236
  break;
210
237
  default:
211
238
  break;
@@ -216,13 +243,12 @@ const IBizRawItem = /* @__PURE__ */ defineComponent({
216
243
  type: rawItemType.value
217
244
  }));
218
245
  }
219
- } else if (rawItemType.value === "VIDEO") {
220
- if (rawItem && rawItem.rawItemParams && rawItem.rawItemParams.length > 0) {
221
- const tempParams = {};
222
- rawItem.rawItemParams.forEach((item) => {
223
- tempParams[item.key] = item.value;
224
- });
246
+ } else if (["DIVIDER", "VIDEO"].includes(rawItemType.value)) {
247
+ const tempParams = getRawItemParams();
248
+ if (rawItemType.value === "VIDEO") {
225
249
  Object.assign(playerParams.value, tempParams);
250
+ } else {
251
+ Object.assign(dividerParams.value, tempParams);
226
252
  }
227
253
  }
228
254
  }
@@ -1,4 +1,4 @@
1
- import { isVNode, defineComponent, createVNode, resolveComponent, withDirectives, resolveDirective, ref, computed, watch } from 'vue';
1
+ import { isVNode, defineComponent, createVNode, resolveComponent, mergeProps, withDirectives, resolveDirective, ref, computed, watch } from 'vue';
2
2
  import { hasEmptyPanelRenderer, IBizCustomRender, useControlController, useNamespace, useUIStore, useSemanticNode } from '@ibiz-template/vue3-util';
3
3
  import { CalendarController } from '@ibiz-template/runtime';
4
4
  import dayjs from 'dayjs';
@@ -470,16 +470,19 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
470
470
  let content;
471
471
  if (!htmlCode)
472
472
  content = this.showDateRange ? date && (dayjs(date).isSame(item.beginTime, "day") || dayjs(date).day() === 0 || !item.beginTime && dayjs(date).isSame(item.endTime, "day")) ? item.text : "" : item.text;
473
- return createVNode("div", {
473
+ const vHtmlProps = htmlCode ? {
474
+ "v-html": htmlCode
475
+ } : {};
476
+ return createVNode("div", mergeProps({
474
477
  "class": itemClass,
475
478
  "style": style,
476
- "key": item.deData.srfkey,
477
- "innerHTML": htmlCode,
479
+ "key": item.deData.srfkey
480
+ }, vHtmlProps, {
478
481
  "title": showTitle(item.tips || item.text),
479
482
  "onClick": () => this.c.onRowClick(item),
480
483
  "onDblclick": () => this.c.onDbRowClick(item),
481
484
  "onContextmenu": (evt) => this.onNodeContextmenu(item, evt)
482
- }, [content]);
485
+ }), [content]);
483
486
  };
484
487
  const renderCalendarItem = (item, date) => {
485
488
  var _a, _b, _c;
@@ -84,7 +84,8 @@ const IBizEmbedAIChat = /* @__PURE__ */ defineComponent({
84
84
  containerOptions: {
85
85
  container: aiChatElementRef.value,
86
86
  compWrapperId: editorParams.compwrapperid || "DEFAULT",
87
- enableBackFill: false
87
+ enableBackFill: false,
88
+ isEmbedAiHeaderHidden: editorParams.isembedaiheaderhidden ? editorParams.isembedaiheaderhidden === "true" : ibiz.config.common.isEmbedAiHeaderHidden
88
89
  },
89
90
  topicOptions: {
90
91
  appid: ibiz.env.appId,
@@ -921,7 +921,8 @@ var index = {
921
921
  discriminationPrejudice: "Discrimination or Prejudice Answer",
922
922
  violationPrivacy: "Violation of Privacy",
923
923
  contentInfringement: "Content infringement",
924
- placeholder: "Please enter"
924
+ placeholder: "Please enter",
925
+ noFilePreviewAddress: "No attachment preview service. Please contact the administrator to add it!"
925
926
  },
926
927
  screenShotUtil: {
927
928
  prepareCanvas: "Prepare the canvas...",
@@ -917,7 +917,8 @@ var index = {
917
917
  discriminationPrejudice: "\u6B67\u89C6\u6216\u504F\u89C1\u56DE\u7B54",
918
918
  violationPrivacy: "\u4FB5\u72AF\u9690\u79C1",
919
919
  contentInfringement: "\u5185\u5BB9\u4FB5\u6743",
920
- placeholder: "\u8BF7\u8F93\u5165"
920
+ placeholder: "\u8BF7\u8F93\u5165",
921
+ noFilePreviewAddress: "\u65E0\u9644\u4EF6\u9884\u89C8\u670D\u52A1\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6DFB\u52A0!"
921
922
  },
922
923
  screenShotUtil: {
923
924
  prepareCanvas: "\u51C6\u5907\u753B\u5E03\u4E2D...",
@@ -223,6 +223,11 @@ class AIChatUtil {
223
223
  } else {
224
224
  chatOptions.chatMessagePageSize = ibiz.config.common.aiChatMessagePageSize;
225
225
  }
226
+ if (editorParams.srfaienableworkspace) {
227
+ chatOptions.enableWorkSpace = editorParams.srfaienableworkspace === "true";
228
+ } else {
229
+ chatOptions.enableWorkSpace = ibiz.config.common.aiEnableWorkSpace;
230
+ }
226
231
  chatOptions.fetchAgentList = (args2 = {}) => {
227
232
  const { query, agentid } = args2;
228
233
  return this.getAIAgentList(
@@ -251,7 +256,11 @@ class AIChatUtil {
251
256
  let id = "";
252
257
  let abortController;
253
258
  const { chatInstance, view, ctrl } = args;
254
- const fileSystemOptions = await this.getAIFileSystemOptions();
259
+ let filePreviewMode = ibiz.config.common.aiFilePreviewMode;
260
+ if (editorParams.srfaifilepreviewmode) {
261
+ filePreviewMode = editorParams.srfaifilepreviewmode;
262
+ }
263
+ const fileSystemOptions = await this.getAIFileSystemOptions(filePreviewMode);
255
264
  chatOptions.fileSystemOptions = fileSystemOptions;
256
265
  chatOptions.history = async (ctx, param, other) => {
257
266
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
@@ -355,9 +364,11 @@ class AIChatUtil {
355
364
  if (extParams && Object.keys(extParams).length > 0) {
356
365
  Object.assign(questionRequestData, { srfextparams: extParams });
357
366
  }
367
+ aiChat.addWaitingMessage(id);
358
368
  await deService.aiChatSse(
359
369
  (msg) => {
360
370
  if (msg.actionstate === 20 && msg.actionresult) {
371
+ aiChat.removeWaitingMessage(id);
361
372
  if (msg.asextparam && localMsgID && updateFlag) {
362
373
  aiChat.updateMsgRealMessageID(localMsgID, msg.asextparam);
363
374
  updateFlag = false;
@@ -428,6 +439,7 @@ class AIChatUtil {
428
439
  }
429
440
  abortController == null ? void 0 : abortController.abort();
430
441
  } finally {
442
+ aiChat.removeWaitingMessage(id);
431
443
  aiChat.completeMessage(id, true);
432
444
  aiChat.setActiveAsyncacitonId("");
433
445
  return true;
@@ -487,9 +499,11 @@ class AIChatUtil {
487
499
  srfproject: other.srfproject
488
500
  });
489
501
  try {
502
+ aiChat.addWaitingMessage(id);
490
503
  await deService.aiResumeSse(
491
504
  (msg) => {
492
505
  if (msg.actionstate === 20 && msg.actionresult) {
506
+ aiChat.removeWaitingMessage(id);
493
507
  aiChat.isLoading.value = true;
494
508
  if (!aiChat.getActiveAsyncacitonId()) {
495
509
  aiChat.setActiveAsyncacitonId(msg.asyncacitonid);
@@ -559,6 +573,7 @@ class AIChatUtil {
559
573
  }
560
574
  abortController == null ? void 0 : abortController.abort();
561
575
  } finally {
576
+ aiChat.removeWaitingMessage(id);
562
577
  aiChat.isLoading.value = false;
563
578
  aiChat.completeMessage(id, true);
564
579
  aiChat.setActiveAsyncacitonId("");
@@ -1022,6 +1037,12 @@ class AIChatUtil {
1022
1037
  } else {
1023
1038
  chatOptions.chatMessagePageSize = ibiz.config.common.aiChatMessagePageSize;
1024
1039
  }
1040
+ if (params.hasOwnProperty("srfaienableworkspace")) {
1041
+ chatOptions.enableWorkSpace = params.srfaienableworkspace === "true";
1042
+ delete params.srfaienableworkspace;
1043
+ } else {
1044
+ chatOptions.enableWorkSpace = ibiz.config.common.aiEnableWorkSpace;
1045
+ }
1025
1046
  chatOptions.fetchAgentList = (args2 = {}) => {
1026
1047
  const { query, agentid } = args2;
1027
1048
  return this.getAIAgentList(context, {
@@ -1048,7 +1069,12 @@ class AIChatUtil {
1048
1069
  let id = "";
1049
1070
  let abortController;
1050
1071
  const { chatInstance, view, ctrl } = args;
1051
- const fileSystemOptions = await this.getAIFileSystemOptions();
1072
+ let filePreviewMode = ibiz.config.common.aiFilePreviewMode;
1073
+ if (params.hasOwnProperty("srfaifilepreviewmode")) {
1074
+ filePreviewMode = params.srfaifilepreviewmode;
1075
+ delete params.srfaifilepreviewmode;
1076
+ }
1077
+ const fileSystemOptions = await this.getAIFileSystemOptions(filePreviewMode);
1052
1078
  chatOptions.fileSystemOptions = fileSystemOptions;
1053
1079
  chatOptions.history = async (ctx, param, other) => {
1054
1080
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, other.appDataEntityId);
@@ -1150,9 +1176,11 @@ class AIChatUtil {
1150
1176
  if (extParams && Object.keys(extParams).length > 0) {
1151
1177
  Object.assign(questionRequestData, { srfextparams: extParams });
1152
1178
  }
1179
+ aiChat.addWaitingMessage(id);
1153
1180
  await deService.aiChatSse(
1154
1181
  (msg) => {
1155
1182
  if (msg.actionstate === 20 && msg.actionresult) {
1183
+ aiChat.removeWaitingMessage(id);
1156
1184
  if (msg.asextparam && localMsgID && updateFlag) {
1157
1185
  aiChat.updateMsgRealMessageID(localMsgID, msg.asextparam);
1158
1186
  updateFlag = false;
@@ -1223,6 +1251,7 @@ class AIChatUtil {
1223
1251
  }
1224
1252
  abortController == null ? void 0 : abortController.abort();
1225
1253
  } finally {
1254
+ aiChat.removeWaitingMessage(id);
1226
1255
  aiChat.setActiveAsyncacitonId("");
1227
1256
  aiChat.completeMessage(id, true);
1228
1257
  return true;
@@ -1282,9 +1311,11 @@ class AIChatUtil {
1282
1311
  srfproject: other.srfproject
1283
1312
  });
1284
1313
  try {
1314
+ aiChat.addWaitingMessage(id);
1285
1315
  await deService.aiResumeSse(
1286
1316
  (msg) => {
1287
1317
  if (msg.actionstate === 20 && msg.actionresult) {
1318
+ aiChat.removeWaitingMessage(id);
1288
1319
  aiChat.isLoading.value = true;
1289
1320
  if (!aiChat.getActiveAsyncacitonId()) {
1290
1321
  aiChat.setActiveAsyncacitonId(msg.asyncacitonid);
@@ -1354,6 +1385,7 @@ class AIChatUtil {
1354
1385
  }
1355
1386
  abortController == null ? void 0 : abortController.abort();
1356
1387
  } finally {
1388
+ aiChat.removeWaitingMessage(id);
1357
1389
  aiChat.isLoading.value = false;
1358
1390
  aiChat.completeMessage(id, true);
1359
1391
  aiChat.setActiveAsyncacitonId("");
@@ -1879,8 +1911,34 @@ class AIChatUtil {
1879
1911
  * @returns {*} {Promise<IData>}
1880
1912
  * @memberof AIChatUtil
1881
1913
  */
1882
- async getAIFileSystemOptions() {
1914
+ async getAIFileSystemOptions(filePreviewMode) {
1883
1915
  const fileSystemOptions = {};
1916
+ fileSystemOptions.filePreviewMode = filePreviewMode;
1917
+ fileSystemOptions.getCustomFilePreviewUrl = async (ctx, param, other) => {
1918
+ var _a;
1919
+ const filePreviewAddress = (_a = ibiz.env.customParams) == null ? void 0 : _a.file_preview_address;
1920
+ if (!filePreviewAddress) {
1921
+ ibiz.message.error(
1922
+ ibiz.i18n.t("util.aiChartUtil.noFilePreviewAddress")
1923
+ );
1924
+ return "";
1925
+ }
1926
+ const { id, name, folder } = other;
1927
+ let { downloadUrl } = ibiz.util.file.calcFileUpDownUrl(
1928
+ ctx,
1929
+ param,
1930
+ {},
1931
+ { osscat: folder }
1932
+ );
1933
+ downloadUrl = downloadUrl.replace("%fileId%", id);
1934
+ const { protocol, hostname, port } = window.location;
1935
+ const actualPort = port || (protocol === "https:" ? "443" : "80");
1936
+ const windowInfo = "".concat(protocol, "//").concat(hostname, ":").concat(actualPort);
1937
+ const filedownloadurl = "".concat(windowInfo).concat(downloadUrl, "?fullfilename=").concat(name);
1938
+ const b64Encoded = ibiz.util.base64.encode(filedownloadurl);
1939
+ const previewUrl = "".concat(filePreviewAddress, "/onlinePreview?url=").concat(encodeURIComponent(b64Encoded));
1940
+ return previewUrl;
1941
+ };
1884
1942
  fileSystemOptions.getFileList = async (ctx, param, other) => {
1885
1943
  const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
1886
1944
  const response = await deService.aiChatProject(
@@ -1897,12 +1955,57 @@ class AIChatUtil {
1897
1955
  const response = await deService.aiChatProject(
1898
1956
  ctx,
1899
1957
  { srfactag: param.srfactag },
1900
- { ...other, action: "UPLOAD" }
1958
+ { action: "UPLOAD", ...other }
1901
1959
  );
1902
1960
  if (response.ok)
1903
1961
  return response.data;
1904
1962
  return void 0;
1905
1963
  };
1964
+ fileSystemOptions.createFolder = async (ctx, param, other) => {
1965
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
1966
+ const response = await deService.aiChatProject(
1967
+ ctx,
1968
+ { srfactag: param.srfactag },
1969
+ { action: "MKDIR", ...other }
1970
+ );
1971
+ return response.data;
1972
+ };
1973
+ fileSystemOptions.createFile = async (ctx, param, other) => {
1974
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
1975
+ const response = await deService.aiChatProject(
1976
+ ctx,
1977
+ { srfactag: param.srfactag },
1978
+ { action: "WRITE", ...other }
1979
+ );
1980
+ return response.data;
1981
+ };
1982
+ fileSystemOptions.move = async (ctx, param, other) => {
1983
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
1984
+ const response = await deService.aiChatProject(
1985
+ ctx,
1986
+ { srfactag: param.srfactag },
1987
+ { action: "MOVE", ...other }
1988
+ );
1989
+ return response.data;
1990
+ };
1991
+ fileSystemOptions.delete = async (ctx, param, other) => {
1992
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
1993
+ const response = await deService.aiChatProject(
1994
+ ctx,
1995
+ { srfactag: param.srfactag },
1996
+ { recursive: true, action: "DELETE", ...other }
1997
+ );
1998
+ return response.data;
1999
+ };
2000
+ fileSystemOptions.readFile = async (ctx, param, other) => {
2001
+ const deService = await ibiz.hub.getApp(ctx.srfappid).deService.getService(ctx, param.appDataEntityId);
2002
+ const response = await deService.aiChatProject(
2003
+ ctx,
2004
+ { srfactag: param.srfactag },
2005
+ { action: "READ", ...other }
2006
+ );
2007
+ return response.data;
2008
+ };
1906
2009
  fileSystemOptions.getContent = async (ctx, param, id, type, cat) => {
1907
2010
  const app = await ibiz.hub.getAppAsync(ctx.appId);
1908
2011
  const requestUrl = "/ibizutil/downloadtxt/".concat(cat ? "".concat(cat, "/") : "").concat(id, "?type=").concat(type);
@@ -4,6 +4,7 @@ var vue = require('vue');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
5
  var qxUtil = require('qx-util');
6
6
  var core = require('@ibiz-template/core');
7
+ var lodashEs = require('lodash-es');
7
8
  require('../../util/index.cjs');
8
9
  require('./rawitem.css');
9
10
  var wangEditorUtil = require('../../util/wang-editor-util/wang-editor-util.cjs');
@@ -121,7 +122,8 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
121
122
  }
122
123
  } else if (["INFO", "WARNING", "ERROR"].includes(contentType)) {
123
124
  rawItemContent.value = rawItem.rawContent;
124
- } else if (["VIDEO", "DIVIDER"].includes(contentType)) {
125
+ } else if (contentType === "DIVIDER" && !rawItem.rawItemParams) {
126
+ rawItemContent.value = rawItem.rawContent;
125
127
  } else if (contentType === "IMAGE" && sysImage) {
126
128
  rawItemContent.value = sysImage;
127
129
  }
@@ -159,6 +161,15 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
159
161
  showIcon: false
160
162
  });
161
163
  const rawItemText = vue.ref("");
164
+ const getRawItemParams = () => {
165
+ const tempParams = {};
166
+ if (rawItem && rawItem.rawItemParams && rawItem.rawItemParams.length > 0) {
167
+ rawItem.rawItemParams.forEach((item) => {
168
+ tempParams[item.key] = item.value;
169
+ });
170
+ }
171
+ return tempParams;
172
+ };
162
173
  const convertValue = () => {
163
174
  if (rawItemType.value === "IMAGE") {
164
175
  if (props.content && typeof props.content === "string") {
@@ -194,20 +205,36 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
194
205
  let rawConfig = {};
195
206
  try {
196
207
  if (typeof rawItemContent.value === "string") {
197
- const func = new Function("return (".concat(rawItemContent.value, ");"));
198
- rawConfig = func();
208
+ if (/^[[{]/.test(rawItemContent.value)) {
209
+ const func = new Function("return (".concat(rawItemContent.value, ");"));
210
+ rawConfig = func();
211
+ } else {
212
+ rawConfig = rawItemContent.value;
213
+ }
199
214
  switch (rawItemType.value) {
200
215
  case "VIDEO":
201
- Object.assign(playerParams.value, rawConfig);
216
+ if (lodashEs.isObject(rawConfig)) {
217
+ Object.assign(playerParams.value, rawConfig);
218
+ } else {
219
+ playerParams.value.path = rawConfig;
220
+ }
202
221
  break;
203
222
  case "DIVIDER":
204
- Object.assign(dividerParams.value, rawConfig);
223
+ if (lodashEs.isObject(rawConfig)) {
224
+ Object.assign(dividerParams.value, rawConfig);
225
+ } else {
226
+ dividerParams.value.html = rawConfig;
227
+ }
205
228
  break;
206
229
  case "INFO":
207
230
  case "WARNING":
208
231
  case "ERROR":
209
232
  alertParams.value.type = rawItemType.value.toLocaleLowerCase();
210
- Object.assign(alertParams.value, rawConfig);
233
+ if (lodashEs.isObject(rawConfig)) {
234
+ Object.assign(alertParams.value, rawConfig);
235
+ } else {
236
+ alertParams.value.title = rawConfig;
237
+ }
211
238
  break;
212
239
  default:
213
240
  break;
@@ -218,13 +245,12 @@ const IBizRawItem = /* @__PURE__ */ vue.defineComponent({
218
245
  type: rawItemType.value
219
246
  }));
220
247
  }
221
- } else if (rawItemType.value === "VIDEO") {
222
- if (rawItem && rawItem.rawItemParams && rawItem.rawItemParams.length > 0) {
223
- const tempParams = {};
224
- rawItem.rawItemParams.forEach((item) => {
225
- tempParams[item.key] = item.value;
226
- });
248
+ } else if (["DIVIDER", "VIDEO"].includes(rawItemType.value)) {
249
+ const tempParams = getRawItemParams();
250
+ if (rawItemType.value === "VIDEO") {
227
251
  Object.assign(playerParams.value, tempParams);
252
+ } else {
253
+ Object.assign(dividerParams.value, tempParams);
228
254
  }
229
255
  }
230
256
  }
@@ -472,16 +472,19 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
472
472
  let content;
473
473
  if (!htmlCode)
474
474
  content = this.showDateRange ? date && (dayjs(date).isSame(item.beginTime, "day") || dayjs(date).day() === 0 || !item.beginTime && dayjs(date).isSame(item.endTime, "day")) ? item.text : "" : item.text;
475
- return vue.createVNode("div", {
475
+ const vHtmlProps = htmlCode ? {
476
+ "v-html": htmlCode
477
+ } : {};
478
+ return vue.createVNode("div", vue.mergeProps({
476
479
  "class": itemClass,
477
480
  "style": style,
478
- "key": item.deData.srfkey,
479
- "innerHTML": htmlCode,
481
+ "key": item.deData.srfkey
482
+ }, vHtmlProps, {
480
483
  "title": core.showTitle(item.tips || item.text),
481
484
  "onClick": () => this.c.onRowClick(item),
482
485
  "onDblclick": () => this.c.onDbRowClick(item),
483
486
  "onContextmenu": (evt) => this.onNodeContextmenu(item, evt)
484
- }, [content]);
487
+ }), [content]);
485
488
  };
486
489
  const renderCalendarItem = (item, date) => {
487
490
  var _a, _b, _c;
@@ -86,7 +86,8 @@ const IBizEmbedAIChat = /* @__PURE__ */ vue.defineComponent({
86
86
  containerOptions: {
87
87
  container: aiChatElementRef.value,
88
88
  compWrapperId: editorParams.compwrapperid || "DEFAULT",
89
- enableBackFill: false
89
+ enableBackFill: false,
90
+ isEmbedAiHeaderHidden: editorParams.isembedaiheaderhidden ? editorParams.isembedaiheaderhidden === "true" : ibiz.config.common.isEmbedAiHeaderHidden
90
91
  },
91
92
  topicOptions: {
92
93
  appid: ibiz.env.appId,
@@ -925,7 +925,8 @@ var index = {
925
925
  discriminationPrejudice: "Discrimination or Prejudice Answer",
926
926
  violationPrivacy: "Violation of Privacy",
927
927
  contentInfringement: "Content infringement",
928
- placeholder: "Please enter"
928
+ placeholder: "Please enter",
929
+ noFilePreviewAddress: "No attachment preview service. Please contact the administrator to add it!"
929
930
  },
930
931
  screenShotUtil: {
931
932
  prepareCanvas: "Prepare the canvas...",
@@ -921,7 +921,8 @@ var index = {
921
921
  discriminationPrejudice: "\u6B67\u89C6\u6216\u504F\u89C1\u56DE\u7B54",
922
922
  violationPrivacy: "\u4FB5\u72AF\u9690\u79C1",
923
923
  contentInfringement: "\u5185\u5BB9\u4FB5\u6743",
924
- placeholder: "\u8BF7\u8F93\u5165"
924
+ placeholder: "\u8BF7\u8F93\u5165",
925
+ noFilePreviewAddress: "\u65E0\u9644\u4EF6\u9884\u89C8\u670D\u52A1\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6DFB\u52A0!"
925
926
  },
926
927
  screenShotUtil: {
927
928
  prepareCanvas: "\u51C6\u5907\u753B\u5E03\u4E2D...",