@ibiz-template/vue3-components 0.7.41-alpha.112 → 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 (112) 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-Dsu1bPbQ.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-4OTQfjW9.js → wang-editor-CBp2ammw.js} +1 -1
  8. package/dist/{xlsx-util--TUzshNx.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/check-box-list/checkbox-list-editor.controller.mjs +11 -1
  24. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +9 -4
  25. package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -1
  26. package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +4 -4
  27. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +1 -1
  28. package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.mjs +17 -1
  29. package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +19 -4
  30. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +24 -7
  31. package/es/editor/list-box/list-box-editor.controller.mjs +11 -0
  32. package/es/editor/list-box/list-box-picker-editor.controller.mjs +11 -0
  33. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -0
  34. package/es/editor/radio-button-list/radio-button-list.controller.mjs +11 -1
  35. package/es/locale/en/index.mjs +1 -0
  36. package/es/locale/zh-CN/index.mjs +1 -0
  37. package/es/panel-component/global-search/global-search.mjs +2 -1
  38. package/es/panel-component/nav-tabs/nav-tabs.mjs +12 -3
  39. package/es/panel-component/short-cut/short-cut.mjs +2 -1
  40. package/es/panel-component/user-message/user-message.mjs +1 -0
  41. package/es/util/ai-chat-util/ai-chat-util.mjs +11 -0
  42. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  43. package/lib/common/button-list/button-list.cjs +6 -1
  44. package/lib/common/data-import/data-import.cjs +11 -8
  45. package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +2 -2
  46. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -2
  47. package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +2 -0
  48. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  49. package/lib/control/drtab/drtab.cjs +1 -1
  50. package/lib/control/drtab/drtab.controller.cjs +48 -13
  51. package/lib/control/drtab/flow-drtab.cjs +9 -9
  52. package/lib/control/exp-bar/render-util.cjs +2 -2
  53. package/lib/control/medit-view-panel/medit-view-panel.cjs +1 -1
  54. package/lib/control/toolbar/toolbar.cjs +3 -0
  55. package/lib/control/tree/tree.cjs +1 -1
  56. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -0
  57. package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -1
  58. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +9 -4
  59. package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -1
  60. package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +4 -4
  61. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +1 -1
  62. package/lib/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.cjs +17 -1
  63. package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +19 -4
  64. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +24 -7
  65. package/lib/editor/list-box/list-box-editor.controller.cjs +11 -0
  66. package/lib/editor/list-box/list-box-picker-editor.controller.cjs +11 -0
  67. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +7 -0
  68. package/lib/editor/radio-button-list/radio-button-list.controller.cjs +11 -1
  69. package/lib/locale/en/index.cjs +1 -0
  70. package/lib/locale/zh-CN/index.cjs +1 -0
  71. package/lib/panel-component/global-search/global-search.cjs +2 -1
  72. package/lib/panel-component/nav-tabs/nav-tabs.cjs +12 -3
  73. package/lib/panel-component/short-cut/short-cut.cjs +2 -1
  74. package/lib/panel-component/user-message/user-message.cjs +1 -0
  75. package/lib/util/ai-chat-util/ai-chat-util.cjs +11 -0
  76. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  77. package/package.json +5 -5
  78. package/src/common/button-list/button-list.tsx +4 -1
  79. package/src/common/data-import/data-import.tsx +16 -9
  80. package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +2 -2
  81. package/src/control/calendar/components/custom-calendar/custom-calendar.tsx +1 -1
  82. package/src/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.tsx +2 -0
  83. package/src/control/drtab/drtab.controller.ts +54 -14
  84. package/src/control/drtab/drtab.tsx +1 -1
  85. package/src/control/drtab/flow-drtab.tsx +9 -9
  86. package/src/control/exp-bar/render-util.tsx +3 -3
  87. package/src/control/medit-view-panel/medit-view-panel.tsx +1 -1
  88. package/src/control/toolbar/toolbar.tsx +1 -0
  89. package/src/control/tree/tree.tsx +1 -1
  90. package/src/control/tree-grid-ex/tree-grid-ex.tsx +1 -0
  91. package/src/editor/check-box-list/checkbox-list-editor.controller.ts +11 -0
  92. package/src/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.tsx +28 -6
  93. package/src/editor/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +1 -0
  94. package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +8 -5
  95. package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +3 -1
  96. package/src/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.tsx +28 -1
  97. package/src/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.tsx +31 -4
  98. package/src/editor/list-box/ibiz-list-box/ibiz-list-box.tsx +45 -9
  99. package/src/editor/list-box/list-box-editor.controller.ts +11 -0
  100. package/src/editor/list-box/list-box-picker-editor.controller.ts +11 -0
  101. package/src/editor/radio-button-list/ibiz-radio/ibiz-radio.tsx +13 -0
  102. package/src/editor/radio-button-list/radio-button-list.controller.ts +11 -0
  103. package/src/locale/en/index.ts +1 -0
  104. package/src/locale/zh-CN/index.ts +1 -0
  105. package/src/panel-component/global-search/global-search.tsx +1 -0
  106. package/src/panel-component/nav-tabs/nav-tabs.tsx +9 -0
  107. package/src/panel-component/short-cut/short-cut.tsx +1 -0
  108. package/src/panel-component/user-message/user-message.tsx +1 -0
  109. package/src/util/ai-chat-util/ai-chat-util.ts +13 -0
  110. package/dist/index-XI8ySm9i.js +0 -339
  111. /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
  112. /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
@@ -57,10 +57,19 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
57
57
  }
58
58
  return false;
59
59
  });
60
+ const valueSeparator = (codeList == null ? void 0 : codeList.valueSeparator) || ",";
60
61
  const items = vue.ref([]);
62
+ const autoSelectFirstOption = () => {
63
+ const item = items.value[0];
64
+ if (!c.autoSelectFirstOption || props.value || !item)
65
+ return;
66
+ const selections = c.allItems ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
67
+ emit("change", c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator), void 0, true);
68
+ };
61
69
  vue.watch(() => props.data, (newVal) => {
62
70
  c.loadCodeList(newVal).then((_codeList) => {
63
71
  items.value = c.handleCodeListAllItems(_codeList);
72
+ autoSelectFirstOption();
64
73
  });
65
74
  }, {
66
75
  immediate: true,
@@ -82,10 +91,6 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
82
91
  items.value = c.handleCodeListAllItems(data);
83
92
  };
84
93
  vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
85
- let valueSeparator = ",";
86
- if (codeList && codeList.valueSeparator) {
87
- valueSeparator = codeList.valueSeparator;
88
- }
89
94
  const {
90
95
  useInFocusAndBlur,
91
96
  useInValueChange
@@ -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
@@ -134,8 +134,8 @@ const IBizDateRangeSelect = /* @__PURE__ */ vue.defineComponent({
134
134
  "onUpdate:modelValue": ($event) => unitValue.value = $event,
135
135
  "onChange": unitChange,
136
136
  "class": ns.em("date-unit", "editor-select"),
137
- "popper-class": [ns.b("popper"), semanticClass("editor.popup")],
138
- "popper-style": semanticStyle("editor.popup")
137
+ "popper-class": [ns.b("date-unit-popper"), semanticClass("editor.dateUnit.popup")],
138
+ "popper-style": semanticStyle("editor.dateUnit.popup")
139
139
  }, _isSlot(_slot = units.map((item) => {
140
140
  return vue.createVNode(vue.resolveComponent("el-option"), {
141
141
  "class": [ns.em("date-unit", "item"), semanticClass("editor.dateUnit.popup.item", {
@@ -274,8 +274,8 @@ const IBizDateRangeSelect = /* @__PURE__ */ vue.defineComponent({
274
274
  "visible": popVisible.value.ALL || popVisible.value.DYNAMIC || popVisible.value.STATIC,
275
275
  "trigger": "click",
276
276
  "width": "240px",
277
- "popper-class": [ns.b("popper"), ns.b("date-range-select"), semanticClass("editor.popup")],
278
- "popper-style": semanticStyle("editor.popup")
277
+ "popper-class": [ns.b("date-type-popper"), ns.b("date-range-select"), semanticClass("editor.dateType.popup")],
278
+ "popper-style": semanticStyle("editor.dateType.popup")
279
279
  }, {
280
280
  reference: () => {
281
281
  return vue.createVNode("div", {
@@ -151,7 +151,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
151
151
  if (!c.autoSelectFirstOption || props.value || !item)
152
152
  return;
153
153
  if (c.multiple) {
154
- const value = c.allItems && !hasChildren.value ? getSelectionValue(item.value).map((v) => "".concat(v)) : [item.value];
154
+ const value = c.allItems && !hasChildren.value ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
155
155
  emit("change", c.model.valueType === "SIMPLES" ? value : value.join(valueSeparator), void 0, true);
156
156
  } else if (editorItems && editorItems.length > 0) {
157
157
  emit("change", item.value, editorItems[0].id, true);
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
+ var core = require('@ibiz-template/core');
4
5
  var vue3Util = require('@ibiz-template/vue3-util');
5
6
  var lodashEs = require('lodash-es');
6
7
  require('./ibiz-tree-picker.css');
@@ -110,6 +111,20 @@ const IBizTreePicker = /* @__PURE__ */ vue.defineComponent({
110
111
  });
111
112
  return list;
112
113
  };
114
+ const autoSelectFirstOption = () => {
115
+ const item = items.value[0];
116
+ if (!c.autoSelectFirstOption || props.value || !item)
117
+ return;
118
+ const selections = [];
119
+ core.recursiveIterate({
120
+ children: [item]
121
+ }, (_item) => {
122
+ selections.push(_item.value);
123
+ }, {
124
+ childrenFields: ["children"]
125
+ });
126
+ emit("change", c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator), void 0, true);
127
+ };
113
128
  const afterLoadCodeList = (codeList) => {
114
129
  items.value = [];
115
130
  codeListItems.value = [];
@@ -125,6 +140,7 @@ const IBizTreePicker = /* @__PURE__ */ vue.defineComponent({
125
140
  break;
126
141
  }
127
142
  }
143
+ autoSelectFirstOption();
128
144
  };
129
145
  const loadCodeList = async () => {
130
146
  if (c.model.appCodeListId) {
@@ -151,7 +167,7 @@ const IBizTreePicker = /* @__PURE__ */ vue.defineComponent({
151
167
  } else if (lodashEs.isString(newVal)) {
152
168
  val = newVal.split(valueSeparator);
153
169
  }
154
- defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && item.isLeaf));
170
+ defaultCheckedKeys.value = val.filter((_key) => codeListItems.value.find((item) => item.value === _key && !item.children));
155
171
  }
156
172
  }, {
157
173
  immediate: true
@@ -96,6 +96,10 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
96
96
  const isLoading = vue.ref(false);
97
97
  let editorState = "";
98
98
  const codeItemValueNumber = vue.ref(false);
99
+ const {
100
+ getSelection,
101
+ getSelectionValue
102
+ } = runtime.useCodeListSelection(c.allItemsValue);
99
103
  const handleTreeNodes = (nodes) => {
100
104
  if (nodes.length === 0) {
101
105
  return [];
@@ -123,6 +127,20 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
123
127
  });
124
128
  return list;
125
129
  };
130
+ const autoSelectFirstOption = () => {
131
+ const item = items.value[0];
132
+ if (!c.autoSelectFirstOption || props.value || !item)
133
+ return;
134
+ if (c.multiple) {
135
+ const value = c.allItems && !hasChildren.value ? getSelectionValue(item.value).map((v) => "".concat(v)) : [item.value];
136
+ emit("change", c.model.valueType === "SIMPLES" ? value : value.join(","), void 0, true);
137
+ } else if (editorItems && editorItems.length > 0) {
138
+ emit("change", item.value, editorItems[0].id, true);
139
+ emit("change", item.text, void 0, true);
140
+ } else {
141
+ emit("change", item.value, void 0, true);
142
+ }
143
+ };
126
144
  const afterLoadCodeList = (codeList) => {
127
145
  items.value = [];
128
146
  codeListItems.value = [];
@@ -145,6 +163,7 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
145
163
  break;
146
164
  }
147
165
  }
166
+ autoSelectFirstOption();
148
167
  };
149
168
  const loadCodeList = async () => {
150
169
  if (c.model.appCodeListId) {
@@ -196,10 +215,6 @@ const IBizVirtualizedList = /* @__PURE__ */ vue.defineComponent({
196
215
  const list = hasChildren.value ? codeListItems.value : items.value;
197
216
  return list.find((item) => item.value === value);
198
217
  };
199
- const {
200
- getSelection,
201
- getSelectionValue
202
- } = runtime.useCodeListSelection(c.allItemsValue);
203
218
  const curValue = vue.computed({
204
219
  get() {
205
220
  var _a, _b, _c;
@@ -66,16 +66,31 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
66
66
  });
67
67
  const codeList = c.codeList;
68
68
  const editorType = editorModel.editorType;
69
+ const valueSeparator = (codeList == null ? void 0 : codeList.valueSeparator) || ",";
69
70
  const items = vue.ref([]);
71
+ const autoSelectFirstOption = () => {
72
+ const item = items.value[0];
73
+ if (!c.autoSelectFirstOption || props.value || !item)
74
+ return;
75
+ let value;
76
+ if (multiple) {
77
+ const selections = c.allItems ? items.value.filter((_item) => _item.value !== c.allItemsValue).map((_item) => _item.value) : [item.value];
78
+ value = c.model.valueType === "SIMPLES" ? selections : selections.join(valueSeparator);
79
+ } else {
80
+ value = item.value;
81
+ }
82
+ emit("change", value, void 0, true);
83
+ };
70
84
  const loadListBoxItems = async () => {
71
85
  if (Object.is("LISTBOX", editorType)) {
72
86
  const controller = c;
73
87
  controller.loadCodeList(props.data).then((_codeList) => {
74
88
  if (multiple) {
75
89
  items.value = controller.handleCodeListAllItems(_codeList);
76
- return;
90
+ } else {
91
+ items.value = _codeList;
77
92
  }
78
- items.value = _codeList;
93
+ autoSelectFirstOption();
79
94
  });
80
95
  } else if (Object.is("LISTBOXPICKUP", editorType)) {
81
96
  const controller = c;
@@ -86,11 +101,17 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
86
101
  value: item[controller.keyName],
87
102
  text: item[controller.textName]
88
103
  }));
104
+ autoSelectFirstOption();
89
105
  }
90
106
  }
91
107
  }
92
108
  };
93
- loadListBoxItems();
109
+ vue.watch(() => props.data, () => {
110
+ loadListBoxItems();
111
+ }, {
112
+ immediate: true,
113
+ deep: true
114
+ });
94
115
  const fn = (data) => {
95
116
  if (data) {
96
117
  if (Object.is("LISTBOX", editorType) && multiple) {
@@ -108,10 +129,6 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
108
129
  return "STR";
109
130
  });
110
131
  const calcOrMode = runtime.useCalcOrMode(currentMode.value, c.model.valueType);
111
- let valueSeparator = ",";
112
- if (codeList && codeList.valueSeparator) {
113
- valueSeparator = codeList.valueSeparator;
114
- }
115
132
  const {
116
133
  getSelection,
117
134
  getSelectionValue
@@ -19,13 +19,24 @@ class ListBoxEditorController extends runtime.CodeListEditorController {
19
19
  * @Date: 2023-05-24 10:55:50
20
20
  */
21
21
  __publicField(this, "codeList");
22
+ /**
23
+ * @description 自动选中第一个
24
+ * @memberof ListBoxEditorController
25
+ */
26
+ __publicField(this, "autoSelectFirstOption", false);
22
27
  }
23
28
  async onInit() {
29
+ var _a;
24
30
  super.onInit();
25
31
  if (this.model.appCodeListId) {
26
32
  const app = await ibiz.hub.getApp(this.context.srfappid);
27
33
  this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
28
34
  }
35
+ if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
36
+ this.autoSelectFirstOption = this.toBoolean(
37
+ this.editorParams.autoselectfirstoption
38
+ );
39
+ }
29
40
  }
30
41
  }
31
42
 
@@ -42,9 +42,20 @@ class ListBoxPickerEditorController extends runtime.EditorController {
42
42
  * @type {IAcItemProvider}
43
43
  */
44
44
  __publicField(this, "acItemProvider");
45
+ /**
46
+ * @description 自动选中第一个
47
+ * @memberof ListBoxPickerEditorController
48
+ */
49
+ __publicField(this, "autoSelectFirstOption", false);
45
50
  }
46
51
  async onInit() {
52
+ var _a;
47
53
  super.onInit();
54
+ if ((_a = this.editorParams) == null ? void 0 : _a.autoselectfirstoption) {
55
+ this.autoSelectFirstOption = this.toBoolean(
56
+ this.editorParams.autoselectfirstoption
57
+ );
58
+ }
48
59
  if (this.model.editorType === "LISTBOXPICKUP") {
49
60
  if (this.model.appDEDataSetId) {
50
61
  this.interfaceName = this.model.appDEDataSetId;
@@ -73,9 +73,16 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
73
73
  useInValueChange();
74
74
  };
75
75
  const items = vue.ref([]);
76
+ const autoSelectFirstOption = () => {
77
+ const item = items.value[0];
78
+ if (!c.autoSelectFirstOption || props.value || !item)
79
+ return;
80
+ emit("change", item.value, void 0, true);
81
+ };
76
82
  vue.watch(() => props.data, (newVal) => {
77
83
  c.loadCodeList(newVal).then((_codeList) => {
78
84
  items.value = _codeList;
85
+ autoSelectFirstOption();
79
86
  });
80
87
  }, {
81
88
  immediate: true,
@@ -19,9 +19,14 @@ class RadioButtonListEditorController extends runtime.CodeListEditorController {
19
19
  * @type {(number | undefined)}
20
20
  */
21
21
  __publicField(this, "rowNumber");
22
+ /**
23
+ * @description 自动选中第一个
24
+ * @memberof RadioButtonListEditorController
25
+ */
26
+ __publicField(this, "autoSelectFirstOption", false);
22
27
  }
23
28
  async onInit() {
24
- var _a, _b;
29
+ var _a, _b, _c;
25
30
  super.onInit();
26
31
  if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
27
32
  this.rowNumber = Number(this.editorParams.rowNumber);
@@ -29,6 +34,11 @@ class RadioButtonListEditorController extends runtime.CodeListEditorController {
29
34
  if ((_b = this.editorParams) == null ? void 0 : _b.rownumber) {
30
35
  this.rowNumber = Number(this.editorParams.rownumber);
31
36
  }
37
+ if ((_c = this.editorParams) == null ? void 0 : _c.autoselectfirstoption) {
38
+ this.autoSelectFirstOption = this.toBoolean(
39
+ this.editorParams.autoselectfirstoption
40
+ );
41
+ }
32
42
  }
33
43
  }
34
44
 
@@ -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.112",
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.117",
41
- "@ibiz-template/runtime": "0.7.41-alpha.117",
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.117",
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}