@ibiz-template/vue3-components 0.7.41-alpha.113 → 0.7.41-alpha.114

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 (79) hide show
  1. package/dist/{index-BLBroBhu.js → index-B3O6yu1f.js} +1 -1
  2. package/dist/index-BugLIX5r.js +339 -0
  3. package/dist/{index-C-9vEACb.js → index-qO4rCmKY.js} +1 -1
  4. package/dist/{index.es-BU8Fy5we.js → index.es-EGP1S-jJ.js} +1 -1
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/{wang-editor-9zdglekK.js → wang-editor-CBp2ammw.js} +1 -1
  8. package/dist/{xlsx-util-DrUAhpzt.js → xlsx-util-NIbtpljc.js} +1 -1
  9. package/es/common/button-list/button-list.mjs +6 -1
  10. package/es/common/data-import/data-import.mjs +11 -8
  11. package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +2 -2
  12. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -2
  13. package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +2 -0
  14. package/es/control/drtab/drtab-control.util.mjs +1 -1
  15. package/es/control/drtab/drtab.controller.mjs +48 -13
  16. package/es/control/drtab/drtab.mjs +1 -1
  17. package/es/control/drtab/flow-drtab.mjs +9 -9
  18. package/es/control/exp-bar/render-util.mjs +2 -2
  19. package/es/control/medit-view-panel/medit-view-panel.mjs +1 -1
  20. package/es/control/toolbar/toolbar.mjs +3 -0
  21. package/es/control/tree/tree.mjs +1 -1
  22. package/es/control/tree-grid-ex/tree-grid-ex.mjs +1 -0
  23. package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -1
  24. package/es/locale/en/index.mjs +1 -0
  25. package/es/locale/zh-CN/index.mjs +1 -0
  26. package/es/panel-component/global-search/global-search.mjs +2 -1
  27. package/es/panel-component/nav-tabs/nav-tabs.mjs +12 -3
  28. package/es/panel-component/short-cut/short-cut.mjs +2 -1
  29. package/es/panel-component/user-message/user-message.mjs +1 -0
  30. package/es/util/ai-chat-util/ai-chat-util.mjs +11 -0
  31. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  32. package/lib/common/button-list/button-list.cjs +6 -1
  33. package/lib/common/data-import/data-import.cjs +11 -8
  34. package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +2 -2
  35. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -2
  36. package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +2 -0
  37. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  38. package/lib/control/drtab/drtab.cjs +1 -1
  39. package/lib/control/drtab/drtab.controller.cjs +48 -13
  40. package/lib/control/drtab/flow-drtab.cjs +9 -9
  41. package/lib/control/exp-bar/render-util.cjs +2 -2
  42. package/lib/control/medit-view-panel/medit-view-panel.cjs +1 -1
  43. package/lib/control/toolbar/toolbar.cjs +3 -0
  44. package/lib/control/tree/tree.cjs +1 -1
  45. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -0
  46. package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -1
  47. package/lib/locale/en/index.cjs +1 -0
  48. package/lib/locale/zh-CN/index.cjs +1 -0
  49. package/lib/panel-component/global-search/global-search.cjs +2 -1
  50. package/lib/panel-component/nav-tabs/nav-tabs.cjs +12 -3
  51. package/lib/panel-component/short-cut/short-cut.cjs +2 -1
  52. package/lib/panel-component/user-message/user-message.cjs +1 -0
  53. package/lib/util/ai-chat-util/ai-chat-util.cjs +11 -0
  54. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  55. package/package.json +5 -5
  56. package/src/common/button-list/button-list.tsx +4 -1
  57. package/src/common/data-import/data-import.tsx +16 -9
  58. package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +2 -2
  59. package/src/control/calendar/components/custom-calendar/custom-calendar.tsx +1 -1
  60. package/src/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.tsx +2 -0
  61. package/src/control/drtab/drtab.controller.ts +54 -14
  62. package/src/control/drtab/drtab.tsx +1 -1
  63. package/src/control/drtab/flow-drtab.tsx +9 -9
  64. package/src/control/exp-bar/render-util.tsx +3 -3
  65. package/src/control/medit-view-panel/medit-view-panel.tsx +1 -1
  66. package/src/control/toolbar/toolbar.tsx +1 -0
  67. package/src/control/tree/tree.tsx +1 -1
  68. package/src/control/tree-grid-ex/tree-grid-ex.tsx +1 -0
  69. package/src/editor/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +1 -0
  70. package/src/locale/en/index.ts +1 -0
  71. package/src/locale/zh-CN/index.ts +1 -0
  72. package/src/panel-component/global-search/global-search.tsx +1 -0
  73. package/src/panel-component/nav-tabs/nav-tabs.tsx +9 -0
  74. package/src/panel-component/short-cut/short-cut.tsx +1 -0
  75. package/src/panel-component/user-message/user-message.tsx +1 -0
  76. package/src/util/ai-chat-util/ai-chat-util.ts +13 -0
  77. package/dist/index-CkG9L_La.js +0 -339
  78. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.117_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.119_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
  79. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.117_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.119_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
@@ -261,7 +261,7 @@ const DRTabControl = /* @__PURE__ */ vue.defineComponent({
261
261
  "style": this.semanticStyle("root"),
262
262
  "semanticClass": this.semanticClass,
263
263
  "semanticStyle": this.semanticStyle,
264
- "pagesstate": this.visibleItems,
264
+ "pagesState": this.visibleItems,
265
265
  "drtabpages": this.modelData.dedrtabPages,
266
266
  "context": this.c.context,
267
267
  "params": this.c.params,
@@ -34,6 +34,12 @@ class DRTabController extends runtime.ControlController {
34
34
  * @memberof DRTabController
35
35
  */
36
36
  __publicField(this, "srfCacheKeyTempl", "");
37
+ /**
38
+ * @description 显示位置
39
+ * @type {(string | undefined)}
40
+ * @memberof DRTabController
41
+ */
42
+ __publicField(this, "tabPosition");
37
43
  /**
38
44
  * Router 对象
39
45
  *
@@ -148,6 +154,7 @@ class DRTabController extends runtime.ControlController {
148
154
  super.initState();
149
155
  this.state.drTabPages = [];
150
156
  this.state.showMore = false;
157
+ this.state.expViewParams = {};
151
158
  this.state.hideEditItem = !!this.model.hideEditItem;
152
159
  }
153
160
  /**
@@ -157,6 +164,8 @@ class DRTabController extends runtime.ControlController {
157
164
  * @memberof DRTabController
158
165
  */
159
166
  async onCreated() {
167
+ var _a;
168
+ this.tabPosition = (_a = this.view.model.tabLayout) == null ? void 0 : _a.toLowerCase();
160
169
  await super.onCreated();
161
170
  await this.initCounter();
162
171
  this.srfCacheKeyTempl = this.controlParams.srfcachekeytempl || "";
@@ -362,7 +371,7 @@ class DRTabController extends runtime.ControlController {
362
371
  testScriptCode,
363
372
  counterMode
364
373
  } = item;
365
- drTabPages.push({
374
+ const drTabPage = {
366
375
  tag: item.id,
367
376
  caption: item.caption,
368
377
  sysImage: item.sysImage,
@@ -374,7 +383,15 @@ class DRTabController extends runtime.ControlController {
374
383
  testAppDELogicId,
375
384
  testScriptCode,
376
385
  counterMode
377
- });
386
+ };
387
+ if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
388
+ const { context, params } = this.prepareParams(item);
389
+ Object.assign(drTabPage, {
390
+ context,
391
+ params
392
+ });
393
+ }
394
+ drTabPages.push(drTabPage);
378
395
  });
379
396
  this.state.drTabPages = drTabPages;
380
397
  this.state.defaultName = drTabPages[0].tag;
@@ -451,12 +468,12 @@ class DRTabController extends runtime.ControlController {
451
468
  /**
452
469
  * 准备参数
453
470
  *
454
- * @param {IDEDRCtrlItem} drTabPages 关系分页
471
+ * @param {IDEDRCtrlItem} drTabPage 关系分页
455
472
  * @return {*}
456
473
  * @memberof DRTabController
457
474
  */
458
- prepareParams(drTabPages) {
459
- const { navigateContexts, navigateParams } = drTabPages;
475
+ prepareParams(drTabPage) {
476
+ const { navigateContexts, navigateParams } = drTabPage;
460
477
  const model = {
461
478
  navContexts: navigateContexts,
462
479
  navParams: navigateParams
@@ -468,9 +485,13 @@ class DRTabController extends runtime.ControlController {
468
485
  };
469
486
  const { resultContext, resultParams } = runtime.calcNavParams(model, originParams);
470
487
  const context = Object.assign(this.context.clone(), resultContext, {
471
- currentSrfNav: drTabPages.id
488
+ currentSrfNav: drTabPage.id
472
489
  });
473
- const params = { ...this.params, ...resultParams };
490
+ const params = {
491
+ ...this.params,
492
+ ...resultParams,
493
+ ...this.state.expViewParams
494
+ };
474
495
  return { context, params };
475
496
  }
476
497
  /**
@@ -478,20 +499,20 @@ class DRTabController extends runtime.ControlController {
478
499
  *
479
500
  * @author lxm
480
501
  * @date 2023-12-21 05:40:07
481
- * @param {IDEDRCtrlItem} drTabPages
502
+ * @param {IDEDRCtrlItem} drTabPage
482
503
  * @param {boolean} [isRoutePushed=false]
483
504
  * @return {*} {Promise<void>}
484
505
  */
485
- async openNavPosView(drTabPages, isRoutePushed = false, navViewKey) {
506
+ async openNavPosView(drTabPage, isRoutePushed = false, navViewKey) {
486
507
  var _a;
487
- const { context, params } = this.prepareParams(drTabPages);
488
- if (!drTabPages.appViewId)
508
+ const { context, params } = this.prepareParams(drTabPage);
509
+ if (!drTabPage.appViewId)
489
510
  return;
490
511
  (_a = this.navPos) == null ? void 0 : _a.openView({
491
- key: navViewKey || drTabPages.id,
512
+ key: navViewKey || drTabPage.id,
492
513
  context,
493
514
  params,
494
- viewId: drTabPages.appViewId,
515
+ viewId: drTabPage.appViewId,
495
516
  isRoutePushed
496
517
  });
497
518
  }
@@ -526,6 +547,20 @@ class DRTabController extends runtime.ControlController {
526
547
  */
527
548
  async refresh() {
528
549
  var _a;
550
+ if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
551
+ this.state.drTabPages.forEach((tabPageState) => {
552
+ var _a2;
553
+ const dedrtabPage = (_a2 = this.model.dedrtabPages) == null ? void 0 : _a2.find(
554
+ (item) => item.id === tabPageState.tag
555
+ );
556
+ if (dedrtabPage) {
557
+ const { context, params } = this.prepareParams(dedrtabPage);
558
+ tabPageState.context = context;
559
+ tabPageState.params = params;
560
+ }
561
+ });
562
+ return;
563
+ }
529
564
  const { activeName } = this.state;
530
565
  const drBarItem = (_a = this.model.dedrtabPages) == null ? void 0 : _a.find(
531
566
  (item) => item.id === activeName
@@ -10,7 +10,7 @@ require('./flow-drtab.css');
10
10
  const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
11
11
  name: "FlowDrtab",
12
12
  props: {
13
- pagesstate: {
13
+ pagesState: {
14
14
  type: Array,
15
15
  default: () => []
16
16
  },
@@ -73,7 +73,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
73
73
  navbarpos.value = c.navbarpos;
74
74
  navBarWidth.value = c.navbarwidth;
75
75
  const allVisibleViews = vue.computed(() => {
76
- return props.pagesstate.filter((item) => {
76
+ return props.pagesState.filter((item) => {
77
77
  const target = props.drtabpages.find((page) => {
78
78
  return page.id === item.tag;
79
79
  });
@@ -81,8 +81,8 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
81
81
  }).length;
82
82
  });
83
83
  const allNavTags = vue.computed(() => {
84
- if (props.pagesstate) {
85
- return props.pagesstate.map((item) => {
84
+ if (props.pagesState) {
85
+ return props.pagesState.map((item) => {
86
86
  const target = props.drtabpages.find((page) => {
87
87
  return page.id === item.tag;
88
88
  });
@@ -174,7 +174,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
174
174
  });
175
175
  completedViews.value += 1;
176
176
  if (completedViews.value === allVisibleViews.value && !navtag.value) {
177
- navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.pagesstate[0].tag);
177
+ navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.pagesState[0].tag);
178
178
  }
179
179
  const el = document.getElementById("".concat(target == null ? void 0 : target.appViewId, "_").concat(item.tag));
180
180
  if (el) {
@@ -265,7 +265,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
265
265
  "ref": (el) => {
266
266
  navbarRef.value = el;
267
267
  }
268
- }, [props.pagesstate.map((item) => {
268
+ }, [props.pagesState.map((item) => {
269
269
  const target = props.drtabpages.find((page) => {
270
270
  return page.id === item.tag;
271
271
  });
@@ -305,7 +305,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
305
305
  },
306
306
  render() {
307
307
  var _a, _b;
308
- const tabs = this.pagesstate.map((item) => {
308
+ const tabs = this.pagesState.map((item) => {
309
309
  const counterNum = item.counterId ? this.counterData[item.counterId] : void 0;
310
310
  const viewShell = vue.resolveComponent("IBizViewShell");
311
311
  const target = this.drtabpages.find((page) => {
@@ -361,8 +361,8 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
361
361
  })
362
362
  }
363
363
  }, [vue.h(viewShell, {
364
- context: this.context,
365
- params: this.params,
364
+ context: item.context || this.context,
365
+ params: item.params || this.params,
366
366
  viewId: target.appViewId,
367
367
  onMounted: () => this.onViewMounted(item)
368
368
  })])]);
@@ -34,11 +34,11 @@ function useExpBarRender(c, ns) {
34
34
  "style": semanticStyle("title"),
35
35
  "class": [ns.b("caption"), expBarNs.b("caption"), semanticClass("title")]
36
36
  }, [model.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
37
+ "class": [expBarNs.be("caption", "icon"), semanticClass("title.icon")],
37
38
  "style": semanticStyle("title.icon"),
38
- "class": [expBarNs.be("caption", "icon"), semanticStyle("title.icon")],
39
39
  "icon": model.sysImage
40
40
  }, null), title && vue.createVNode("span", {
41
- "class": [ns.be("caption", "text"), expBarNs.be("caption", "text"), semanticStyle("title.text")],
41
+ "class": [ns.be("caption", "text"), expBarNs.be("caption", "text"), semanticClass("title.text")],
42
42
  "style": semanticStyle("title.text")
43
43
  }, [title])]);
44
44
  };
@@ -144,7 +144,7 @@ const MEditViewPanelControl = /* @__PURE__ */ vue.defineComponent({
144
144
  "class": [this.ns.be("tab-label", "remove"), this.semanticClass("tab.remove", {
145
145
  item
146
146
  })],
147
- "style": this.semanticClass("tab.remove", {
147
+ "style": this.semanticStyle("tab.remove", {
148
148
  item
149
149
  }),
150
150
  "name": "close-outline",
@@ -306,6 +306,9 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
306
306
  "popper-class": [ns2.b("popper"), ns2.b("dropdown-popper"), ns2.bm("dropdown-popper", toolbarStyle), ns2.em("dropdown-popper", groupButtonStyle.toLowerCase()), ns2.bm("dropdown-popper", calcCssName(item)), semanticClass("popup", {
307
307
  item
308
308
  })],
309
+ "popper-style": semanticStyle("popup", {
310
+ item
311
+ }),
309
312
  "placement": "right-start",
310
313
  "teleported": false,
311
314
  "popper-options": {
@@ -966,7 +966,7 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
966
966
  "ref": "treeviewRef",
967
967
  "controller": this.c,
968
968
  "class": this.semanticClass("root"),
969
- "style": this.semanticClass("root"),
969
+ "style": this.semanticStyle("root"),
970
970
  "element-loading-text": this.c.state.loadingText
971
971
  }, _isSlot(slots) ? slots : {
972
972
  default: () => [slots]
@@ -299,6 +299,7 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
299
299
  "ref": "tableRef",
300
300
  "key": this.tableRefreshKey,
301
301
  "class": [this.ns.e("table"), this.semanticClass("content")],
302
+ "style": this.semanticStyle("content"),
302
303
  "border": true,
303
304
  "row-key": "id",
304
305
  "data": this.elTableData,
@@ -191,7 +191,8 @@ const IBizDatePicker = /* @__PURE__ */ vue.defineComponent({
191
191
  }, this.$attrs), null);
192
192
  const readonlyContent = this.formatValue;
193
193
  const formDefaultContent = vue.createVNode("div", {
194
- "class": [this.ns.e("content"), this.ns.b("form-default-content"), this.semanticClass("editor.content")]
194
+ "class": [this.ns.e("content"), this.ns.b("form-default-content"), this.semanticClass("editor.content")],
195
+ "style": this.semanticStyle("editor.content")
195
196
  }, [this.formatValue ? this.formatValue : vue.createVNode(vue.resolveComponent("iBizEditorEmptyText"), {
196
197
  "showPlaceholder": this.c.emptyShowPlaceholder,
197
198
  "placeHolder": this.c.placeHolder
@@ -548,6 +548,7 @@ var index = {
548
548
  importResults: "Import Results",
549
549
  downloadTemplate: "Download the import template and fill in as required:",
550
550
  templateFile: "Data import template file",
551
+ template: "Template",
551
552
  continue: "Continue importing"
552
553
  },
553
554
  dataImport2: {
@@ -544,6 +544,7 @@ var index = {
544
544
  importResults: "\u5BFC\u5165\u7ED3\u679C",
545
545
  downloadTemplate: "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248\uFF0C\u5E76\u6309\u8981\u6C42\u586B\u5199\uFF1A",
546
546
  templateFile: "\u6570\u636E\u5BFC\u5165\u6A21\u677F\u6587\u4EF6",
547
+ template: "\u6A21\u677F",
547
548
  continue: "\u7EE7\u7EED\u5BFC\u5165"
548
549
  },
549
550
  dataImport2: {
@@ -235,7 +235,8 @@ const GlobalSearch = /* @__PURE__ */ vue.defineComponent({
235
235
  "width": "auto",
236
236
  "visible": this.visible,
237
237
  "placement": "bottom-start",
238
- "popper-class": [this.ns.e("popper"), this.semanticClass("popup")]
238
+ "popper-class": [this.ns.e("popper"), this.semanticClass("popup")],
239
+ "popper-style": this.semanticStyle("popup")
239
240
  }, {
240
241
  reference: () => {
241
242
  return vue.createVNode(vue.resolveComponent("el-input"), {
@@ -227,15 +227,24 @@ const NavTabs = /* @__PURE__ */ vue.defineComponent({
227
227
  }, [vue.createVNode("span", {
228
228
  "class": [this.ns.em("item", "captioninfo"), this.semanticClass("item.captioninfo", {
229
229
  item: msg
230
- })]
230
+ })],
231
+ "style": this.semanticStyle("item.captioninfo", {
232
+ item: msg
233
+ })
231
234
  }, [msg.caption]), msg.dataInfo && vue.createVNode("span", {
232
235
  "class": [this.ns.em("item", "captiondivider"), this.semanticClass("item.captiondivider", {
233
236
  item: msg
234
- })]
237
+ })],
238
+ "style": this.semanticStyle("item.captiondivider", {
239
+ item: msg
240
+ })
235
241
  }, [vue.createTextVNode("\xA0-\xA0")]), msg.dataInfo && vue.createVNode("span", {
236
242
  "class": [this.ns.em("item", "datainfo"), this.semanticClass("item.datainfo", {
237
243
  item: msg
238
- })]
244
+ })],
245
+ "style": this.semanticStyle("item.datainfo", {
246
+ item: msg
247
+ })
239
248
  }, [msg.dataInfo])])]);
240
249
  }
241
250
  });
@@ -219,7 +219,8 @@ const ShortCut = /* @__PURE__ */ vue.defineComponent({
219
219
  "placement": "top-start",
220
220
  "trigger": "click",
221
221
  "width": "auto",
222
- "popper-class": [ns.e("popover"), semanticClass("popup")]
222
+ "popper-class": [ns.e("popover"), semanticClass("popup")],
223
+ "popper-style": semanticStyle("popup")
223
224
  }, {
224
225
  reference: () => {
225
226
  return vue.createVNode("div", {
@@ -106,6 +106,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
106
106
  }, [vue.createVNode(vue.resolveComponent("el-popover"), {
107
107
  "ref": "popoverRef",
108
108
  "popper-class": [this.ns.b("popover"), this.semanticClass("popup")],
109
+ "popper-style": this.semanticStyle("popup"),
109
110
  "placement": "bottom",
110
111
  "trigger": "click",
111
112
  "visible": this.showPopover,
@@ -509,6 +509,11 @@ class AIChatUtil {
509
509
  );
510
510
  }
511
511
  };
512
+ let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
513
+ if (editorParams.srfuploadmaxsize) {
514
+ uploadMaxSize = Number(editorParams.srfuploadmaxsize);
515
+ }
516
+ chatOptions.uploader.maxSize = uploadMaxSize;
512
517
  chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
513
518
  var _a2, _b, _c;
514
519
  const { id: id2, isPluginApp } = source;
@@ -1086,6 +1091,12 @@ class AIChatUtil {
1086
1091
  );
1087
1092
  }
1088
1093
  };
1094
+ let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
1095
+ if (params.hasOwnProperty("srfuploadmaxsize")) {
1096
+ uploadMaxSize = Number(params.srfuploadmaxsize);
1097
+ delete params.srfuploadmaxsize;
1098
+ }
1099
+ chatOptions.uploader.maxSize = uploadMaxSize;
1089
1100
  chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
1090
1101
  var _a2, _b, _c;
1091
1102
  const { id: id2, isPluginApp } = source;
@@ -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.117_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
+ var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.119_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.113",
3
+ "version": "0.7.41-alpha.114",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -35,12 +35,12 @@
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.7",
38
- "@ibiz-template/core": "0.7.41-alpha.117",
38
+ "@ibiz-template/core": "0.7.41-alpha.119",
39
39
  "@ibiz-template/devtool": "0.0.16",
40
- "@ibiz-template/model-helper": "0.7.41-alpha.118",
41
- "@ibiz-template/runtime": "0.7.41-alpha.118",
40
+ "@ibiz-template/model-helper": "0.7.41-alpha.120",
41
+ "@ibiz-template/runtime": "0.7.41-alpha.120",
42
42
  "@ibiz-template/theme": "0.7.39",
43
- "@ibiz-template/vue3-util": "0.7.41-alpha.118",
43
+ "@ibiz-template/vue3-util": "0.7.41-alpha.120",
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",
@@ -253,7 +253,10 @@ export const IBizButtonList = defineComponent({
253
253
  },
254
254
  ],
255
255
  }}
256
- popper-style={`z-index: ${zIndex.zIndex}`}
256
+ popper-style={{
257
+ zIndex: zIndex.zIndex,
258
+ ...props.semantic.semanticStyle('popup', { model: detail }),
259
+ }}
257
260
  >
258
261
  {{
259
262
  reference: () => {
@@ -1,12 +1,11 @@
1
1
  import { IAppDataEntity, IAppDEDataImport } from '@ibiz/model-core';
2
2
  import { useNamespace } from '@ibiz-template/vue3-util';
3
3
  import { defineComponent, ref, PropType } from 'vue';
4
-
5
- import './data-import.scss';
6
4
  import {
7
- downloadImportTemplate,
8
5
  selectAndImport,
6
+ downloadImportTemplate,
9
7
  } from '@ibiz-template/runtime';
8
+ import './data-import.scss';
10
9
 
11
10
  export const DataImport = defineComponent({
12
11
  name: 'DataImport',
@@ -46,6 +45,11 @@ export const DataImport = defineComponent({
46
45
 
47
46
  const isLoading = ref(false);
48
47
 
48
+ const importTemplName =
49
+ ibiz.config.common.importTemplNameMode === 'custom'
50
+ ? `${props.dataImport?.name}${ibiz.i18n.t('component.dataImport.template')}`
51
+ : `${props.appDataEntity.logicName}${ibiz.i18n.t('component.dataImport.templateFile')}`;
52
+
49
53
  const onCancelButtonClick = () => {
50
54
  props.dismiss();
51
55
  };
@@ -57,6 +61,9 @@ export const DataImport = defineComponent({
57
61
  props.dataImport,
58
62
  props.context,
59
63
  props.params,
64
+ ibiz.config.common.importTemplNameMode === 'custom'
65
+ ? importTemplName
66
+ : undefined,
60
67
  );
61
68
  };
62
69
 
@@ -101,12 +108,13 @@ export const DataImport = defineComponent({
101
108
 
102
109
  return {
103
110
  ns,
104
- onLinkClick,
105
- selectFile,
106
- onCancelButtonClick,
107
- isLoading,
108
111
  message,
112
+ isLoading,
109
113
  errorMessage,
114
+ importTemplName,
115
+ selectFile,
116
+ onLinkClick,
117
+ onCancelButtonClick,
110
118
  };
111
119
  },
112
120
  render() {
@@ -149,8 +157,7 @@ export const DataImport = defineComponent({
149
157
  </div>
150
158
  <div class={this.ns.e('template-link')} onClick={this.onLinkClick}>
151
159
  <ion-icon class={this.ns.e('link-icon')} name='link' />
152
- {this.appDataEntity.logicName}
153
- {ibiz.i18n.t('component.dataImport.templateFile')}
160
+ {this.importTemplName}
154
161
  </div>
155
162
  </div>
156
163
  <div class={this.ns.e('button-bar')}>
@@ -157,7 +157,7 @@ export const CalendarUser2 = defineComponent({
157
157
  class={[
158
158
  this.ns.e('legend'),
159
159
  this.ns.em('header', 'legend'),
160
- this.semanticStyle('legend'),
160
+ this.semanticClass('legend'),
161
161
  ]}
162
162
  style={this.semanticStyle('legend')}
163
163
  >
@@ -168,7 +168,7 @@ export const CalendarUser2 = defineComponent({
168
168
  class={[
169
169
  this.ns.e('legend-item'),
170
170
  this.ns.em('legend', 'item'),
171
- this.semanticStyle('legend.item'),
171
+ this.semanticClass('legend.item'),
172
172
  ]}
173
173
  style={this.semanticStyle('legend.item')}
174
174
  onClick={() => this.$emit('legendClick', legend)}
@@ -171,7 +171,7 @@ export const CustomCalendar = defineComponent({
171
171
  */
172
172
  const renderDay = () => {
173
173
  return (
174
- <div class={ns.e('calendar-day')} style={props.semanticStyle('day')}>
174
+ <div class={ns.e('calendar-day')}>
175
175
  {slots?.header ? (
176
176
  <div
177
177
  class={[
@@ -170,6 +170,7 @@ export const AppMenuPortletControl = defineComponent({
170
170
  content = (
171
171
  <el-collapse
172
172
  class={[this.ns.e('content'), this.semanticClass('content')]}
173
+ style={this.semanticStyle('content')}
173
174
  v-model={this.defaultOpens}
174
175
  >
175
176
  {model.appMenuItems.map(item => {
@@ -185,6 +186,7 @@ export const AppMenuPortletControl = defineComponent({
185
186
  return (
186
187
  <iBizControlBase
187
188
  class={[this.ns.b(), this.semanticClass('root')]}
189
+ style={this.semanticStyle('root')}
188
190
  controller={this.c}
189
191
  >
190
192
  {content}