@ibiz-template/vue3-components 0.7.16-alpha.0 → 0.7.16

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 (33) hide show
  1. package/dist/index-8VqjTY2N.js +4 -0
  2. package/dist/{index-Hg_8xCYx.js → index-B_FGiHpY.js} +1 -1
  3. package/dist/{index-8Lu2Ax-_.js → index-Q8y2iWnX.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{xlsx-util-MJWwC396.js → xlsx-util-AIEyudtA.js} +1 -1
  7. package/es/editor/autocomplete/autocomplete-editor.controller.d.ts +9 -1
  8. package/es/editor/autocomplete/autocomplete-editor.controller.mjs +12 -1
  9. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +8 -1
  10. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +13 -2
  11. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +11 -1
  12. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +13 -2
  13. package/es/editor/data-picker/picker-editor.controller.d.ts +9 -1
  14. package/es/editor/data-picker/picker-editor.controller.mjs +12 -1
  15. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +27 -7
  16. package/es/editor/list-box/list-box-picker-editor.controller.d.ts +18 -2
  17. package/es/editor/list-box/list-box-picker-editor.controller.mjs +29 -1
  18. package/es/locale/en/index.d.ts +1 -0
  19. package/es/locale/en/index.mjs +2 -1
  20. package/es/locale/zh-CN/index.d.ts +1 -0
  21. package/es/locale/zh-CN/index.mjs +2 -1
  22. package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +11 -0
  23. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +7 -0
  24. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +12 -1
  25. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +10 -0
  26. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +12 -1
  27. package/lib/editor/data-picker/picker-editor.controller.cjs +11 -0
  28. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +26 -6
  29. package/lib/editor/list-box/list-box-picker-editor.controller.cjs +28 -0
  30. package/lib/locale/en/index.cjs +2 -1
  31. package/lib/locale/zh-CN/index.cjs +2 -1
  32. package/package.json +5 -5
  33. package/dist/index-dATrePJW.js +0 -4
@@ -1,5 +1,5 @@
1
1
  import { IHttpResponse } from '@ibiz-template/core';
2
- import { EditorController } from '@ibiz-template/runtime';
2
+ import { EditorController, IAcItemProvider } from '@ibiz-template/runtime';
3
3
  import { IAppDEACMode, IAutoComplete, IDEACModeDataItem } from '@ibiz/model-core';
4
4
  /**
5
5
  * 自动完成编辑器控制器
@@ -32,6 +32,14 @@ export declare class AutoCompleteEditorController extends EditorController<IAuto
32
32
  * 自填数据项集合(已排除了value和text)
33
33
  */
34
34
  dataItems: IDEACModeDataItem[];
35
+ /**
36
+ * 自填列表项适配器
37
+ *
38
+ * @author zhanghengfeng
39
+ * @date 2024-05-21 17:05:21
40
+ * @type {IAcItemProvider}
41
+ */
42
+ acItemProvider?: IAcItemProvider;
35
43
  protected onInit(): Promise<void>;
36
44
  /**
37
45
  * 加载实体数据集数据
@@ -1,5 +1,5 @@
1
1
  import { RuntimeModelError } from '@ibiz-template/core';
2
- import { EditorController, getDeACMode } from '@ibiz-template/runtime';
2
+ import { EditorController, getDeACMode, getAcItemProvider } from '@ibiz-template/runtime';
3
3
  import { mergeDeepLeft } from 'ramda';
4
4
 
5
5
  "use strict";
@@ -36,6 +36,14 @@ class AutoCompleteEditorController extends EditorController {
36
36
  * 自填数据项集合(已排除了value和text)
37
37
  */
38
38
  __publicField(this, "dataItems", []);
39
+ /**
40
+ * 自填列表项适配器
41
+ *
42
+ * @author zhanghengfeng
43
+ * @date 2024-05-21 17:05:21
44
+ * @type {IAcItemProvider}
45
+ */
46
+ __publicField(this, "acItemProvider");
39
47
  }
40
48
  async onInit() {
41
49
  super.onInit();
@@ -70,6 +78,9 @@ class AutoCompleteEditorController extends EditorController {
70
78
  }
71
79
  );
72
80
  }
81
+ if (this.deACMode.itemSysPFPluginId) {
82
+ this.acItemProvider = await getAcItemProvider(this.deACMode);
83
+ }
73
84
  }
74
85
  }
75
86
  }
@@ -1,4 +1,4 @@
1
- import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
1
+ import { ref, computed, watch, resolveComponent, mergeProps, h, createVNode, defineComponent } from 'vue';
2
2
  import { getAutoCompleteProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-autocomplete.css';
4
4
  import { debounce } from 'lodash-es';
@@ -181,6 +181,13 @@ const IBizAutoComplete = /* @__PURE__ */ defineComponent({
181
181
  default: ({
182
182
  item
183
183
  }) => {
184
+ if (this.c.acItemProvider) {
185
+ const component = resolveComponent(this.c.acItemProvider.component);
186
+ return h(component, {
187
+ item,
188
+ controller: this.c
189
+ });
190
+ }
184
191
  return createVNode("div", {
185
192
  "class": [this.ns.e("transfer-item"), this.ns.is("ellipsis", isEllipsis)],
186
193
  "title": isEllipsis ? item[this.c.textName] : ""
@@ -1,4 +1,4 @@
1
- import { isVNode, ref, computed, watch, onMounted, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
1
+ import { isVNode, ref, computed, watch, onMounted, resolveComponent, mergeProps, h, createVNode, defineComponent } from 'vue';
2
2
  import { getDataPickerProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-mpicker.css';
4
4
  import { clone } from 'lodash-es';
@@ -308,7 +308,18 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
308
308
  "key": item[this.c.keyName],
309
309
  "value": item[this.c.keyName],
310
310
  "label": item[this.c.textName]
311
- }, null);
311
+ }, {
312
+ default: () => {
313
+ if (this.c.acItemProvider) {
314
+ const component = resolveComponent(this.c.acItemProvider.component);
315
+ return h(component, {
316
+ item,
317
+ controller: this.c
318
+ });
319
+ }
320
+ return createVNode("span", null, [item[this.c.textName] != null ? item[this.c.textName] : ""]);
321
+ }
322
+ });
312
323
  })) ? _slot : {
313
324
  default: () => [_slot]
314
325
  }), !this.readonly && createVNode("div", {
@@ -1,4 +1,4 @@
1
- import { ref, computed, watch, onMounted, resolveComponent, createVNode, mergeProps, defineComponent } from 'vue';
1
+ import { ref, computed, watch, onMounted, resolveComponent, h, createVNode, mergeProps, defineComponent } from 'vue';
2
2
  import { getDataPickerProps, getEditorEmits, useNamespace, renderString } from '@ibiz-template/vue3-util';
3
3
  import { isEmpty, isNil } from 'ramda';
4
4
  import './ibiz-picker.css';
@@ -205,6 +205,16 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
205
205
  context,
206
206
  params
207
207
  } = this.c;
208
+ if (this.c.acItemProvider) {
209
+ const component = resolveComponent(this.c.acItemProvider.component);
210
+ return h(component, {
211
+ item,
212
+ controller: this.c,
213
+ onClick: () => {
214
+ this.onACSelect(item);
215
+ }
216
+ });
217
+ }
208
218
  return panel ? createVNode(resolveComponent("iBizControlShell"), {
209
219
  "data": item,
210
220
  "modelData": panel,
@@ -1,4 +1,4 @@
1
- import { isVNode, ref, computed, watch, onMounted, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
1
+ import { isVNode, ref, computed, watch, onMounted, resolveComponent, mergeProps, h, createVNode, defineComponent } from 'vue';
2
2
  import { getDataPickerProps, getEditorEmits, useNamespace, renderString } from '@ibiz-template/vue3-util';
3
3
  import { isNil, clone } from 'ramda';
4
4
  import './ibiz-picker-dropdown.css';
@@ -240,7 +240,18 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
240
240
  "value": item[this.c.keyName],
241
241
  "key": item[this.c.keyName],
242
242
  "label": item[this.c.textName]
243
- }, null);
243
+ }, {
244
+ default: () => {
245
+ if (this.c.acItemProvider) {
246
+ const component = resolveComponent(this.c.acItemProvider.component);
247
+ return h(component, {
248
+ item,
249
+ controller: this.c
250
+ });
251
+ }
252
+ return createVNode("span", null, [item[this.c.textName] != null ? item[this.c.textName] : ""]);
253
+ }
254
+ });
244
255
  })) ? _slot : {
245
256
  default: () => [_slot]
246
257
  });
@@ -1,5 +1,5 @@
1
1
  import { IHttpResponse } from '@ibiz-template/core';
2
- import { EditorController, IViewConfig } from '@ibiz-template/runtime';
2
+ import { EditorController, IViewConfig, IAcItemProvider } from '@ibiz-template/runtime';
3
3
  import { IAppDEACMode, IDEACModeDataItem, IPicker } from '@ibiz/model-core';
4
4
  /**
5
5
  * 数据选择编辑器控制器
@@ -59,6 +59,14 @@ export declare class PickerEditorController extends EditorController<IPicker> {
59
59
  objectIdField: string | undefined;
60
60
  objectNameField: string | undefined;
61
61
  objectValueField: string | undefined;
62
+ /**
63
+ * 自填列表项适配器
64
+ *
65
+ * @author zhanghengfeng
66
+ * @date 2024-05-21 17:05:50
67
+ * @type {IAcItemProvider}
68
+ */
69
+ acItemProvider?: IAcItemProvider;
62
70
  protected onInit(): Promise<void>;
63
71
  /**
64
72
  * 初始化noAc和noButton
@@ -1,5 +1,5 @@
1
1
  import { RuntimeModelError } from '@ibiz-template/core';
2
- import { EditorController, getDeACMode, OpenAppViewCommand } from '@ibiz-template/runtime';
2
+ import { EditorController, getDeACMode, getAcItemProvider, OpenAppViewCommand } from '@ibiz-template/runtime';
3
3
  import { mergeDeepLeft } from 'ramda';
4
4
 
5
5
  "use strict";
@@ -66,6 +66,14 @@ class PickerEditorController extends EditorController {
66
66
  __publicField(this, "objectNameField", "");
67
67
  // 对象值属性
68
68
  __publicField(this, "objectValueField", "");
69
+ /**
70
+ * 自填列表项适配器
71
+ *
72
+ * @author zhanghengfeng
73
+ * @date 2024-05-21 17:05:50
74
+ * @type {IAcItemProvider}
75
+ */
76
+ __publicField(this, "acItemProvider");
69
77
  }
70
78
  async onInit() {
71
79
  var _a, _b, _c, _d;
@@ -103,6 +111,9 @@ class PickerEditorController extends EditorController {
103
111
  }
104
112
  );
105
113
  }
114
+ if (this.deACMode.itemSysPFPluginId) {
115
+ this.acItemProvider = await getAcItemProvider(this.deACMode);
116
+ }
106
117
  }
107
118
  }
108
119
  }
@@ -1,4 +1,4 @@
1
- import { isVNode, computed, ref, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
1
+ import { isVNode, computed, ref, watch, resolveComponent, mergeProps, h, createVNode, defineComponent } from 'vue';
2
2
  import { getListBoxProps, getEditorEmits, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import { isNil } from 'ramda';
4
4
  import './ibiz-list-box.css';
@@ -166,9 +166,19 @@ const IBizListBox = /* @__PURE__ */ defineComponent({
166
166
  "label": item.value,
167
167
  "disabled": this.disabled || this.readonly || item.disableSelect === true
168
168
  }, {
169
- default: () => [createVNode("span", {
170
- "class": this.ns.e("text")
171
- }, [item.text])]
169
+ default: () => {
170
+ const c = this.controller;
171
+ if (c.acItemProvider) {
172
+ const component = resolveComponent(c.acItemProvider.component);
173
+ return h(component, {
174
+ item,
175
+ controller: c
176
+ });
177
+ }
178
+ return createVNode("span", {
179
+ "class": this.ns.e("text")
180
+ }, [item.text]);
181
+ }
172
182
  }))) ? _slot : {
173
183
  default: () => [_slot]
174
184
  }) : createVNode(resolveComponent("el-radio-group"), mergeProps({
@@ -182,9 +192,19 @@ const IBizListBox = /* @__PURE__ */ defineComponent({
182
192
  this.onSelectArrayChange(item.value);
183
193
  }
184
194
  }, {
185
- default: () => [createVNode("span", {
186
- "class": this.ns.e("text")
187
- }, [item.text])]
195
+ default: () => {
196
+ const c = this.controller;
197
+ if (c.acItemProvider) {
198
+ const component = resolveComponent(c.acItemProvider.component);
199
+ return h(component, {
200
+ item,
201
+ controller: c
202
+ });
203
+ }
204
+ return createVNode("span", {
205
+ "class": this.ns.e("text")
206
+ }, [item.text]);
207
+ }
188
208
  }))) ? _slot2 : {
189
209
  default: () => [_slot2]
190
210
  })]);
@@ -1,6 +1,6 @@
1
1
  import { IHttpResponse } from '@ibiz-template/core';
2
- import { EditorController } from '@ibiz-template/runtime';
3
- import { IListBoxPicker } from '@ibiz/model-core';
2
+ import { EditorController, IAcItemProvider } from '@ibiz-template/runtime';
3
+ import { IAppDEACMode, IListBoxPicker } from '@ibiz/model-core';
4
4
  /**
5
5
  * 列表框picker编辑器控制器
6
6
  * @return {*}
@@ -20,6 +20,22 @@ export declare class ListBoxPickerEditorController extends EditorController<ILis
20
20
  * 数据集codeName
21
21
  */
22
22
  interfaceName: string;
23
+ /**
24
+ * 实体自填模式模型
25
+ *
26
+ * @author zhanghengfeng
27
+ * @date 2024-05-21 17:05:03
28
+ * @type {IAppDEACMode}
29
+ */
30
+ deACMode?: IAppDEACMode;
31
+ /**
32
+ * 自填列表项适配器
33
+ *
34
+ * @author zhanghengfeng
35
+ * @date 2024-05-21 17:05:25
36
+ * @type {IAcItemProvider}
37
+ */
38
+ acItemProvider?: IAcItemProvider;
23
39
  protected onInit(): Promise<void>;
24
40
  /**
25
41
  * 加载实体数据集数据
@@ -1,5 +1,5 @@
1
1
  import { RuntimeModelError } from '@ibiz-template/core';
2
- import { EditorController } from '@ibiz-template/runtime';
2
+ import { EditorController, getDeACMode, getAcItemProvider } from '@ibiz-template/runtime';
3
3
  import { mergeDeepLeft } from 'ramda';
4
4
 
5
5
  "use strict";
@@ -24,6 +24,22 @@ class ListBoxPickerEditorController extends EditorController {
24
24
  * 数据集codeName
25
25
  */
26
26
  __publicField(this, "interfaceName", "");
27
+ /**
28
+ * 实体自填模式模型
29
+ *
30
+ * @author zhanghengfeng
31
+ * @date 2024-05-21 17:05:03
32
+ * @type {IAppDEACMode}
33
+ */
34
+ __publicField(this, "deACMode");
35
+ /**
36
+ * 自填列表项适配器
37
+ *
38
+ * @author zhanghengfeng
39
+ * @date 2024-05-21 17:05:25
40
+ * @type {IAcItemProvider}
41
+ */
42
+ __publicField(this, "acItemProvider");
27
43
  }
28
44
  async onInit() {
29
45
  super.onInit();
@@ -31,6 +47,18 @@ class ListBoxPickerEditorController extends EditorController {
31
47
  if (this.model.appDEDataSetId) {
32
48
  this.interfaceName = this.model.appDEDataSetId;
33
49
  }
50
+ if (this.model.appDataEntityId && this.model.appDEACModeId) {
51
+ this.deACMode = await getDeACMode(
52
+ this.model.appDEACModeId,
53
+ this.model.appDataEntityId,
54
+ this.context.srfappid
55
+ );
56
+ if (this.deACMode) {
57
+ if (this.deACMode.itemSysPFPluginId) {
58
+ this.acItemProvider = await getAcItemProvider(this.deACMode);
59
+ }
60
+ }
61
+ }
34
62
  }
35
63
  }
36
64
  /**
@@ -732,6 +732,7 @@ declare const _default: {
732
732
  viewPlugin: string;
733
733
  correspondViewTypeStyle: string;
734
734
  toolbarItem: string;
735
+ acItem: string;
735
736
  };
736
737
  };
737
738
  service: {
@@ -738,7 +738,8 @@ var index = {
738
738
  frontEndPluginNode: "Cannot find interface logic front-end plugin node, plugin {pluginKey} corresponding adapter",
739
739
  viewPlugin: "Cannot find the adapter corresponding to the view plugin {pluginKey}.",
740
740
  correspondViewTypeStyle: "Cannot find an adapter for view type: [{viewType}] corresponding to view style: [{viewStyle}].",
741
- toolbarItem: "Cannot find the adapter corresponding to the toolbar item plugin {pluginKey}."
741
+ toolbarItem: "Cannot find the adapter corresponding to the toolbar item plugin {pluginKey}.",
742
+ acItem: "Cannot find the adapter corresponding to the ac item plugin {pluginKey}."
742
743
  }
743
744
  },
744
745
  service: {
@@ -730,6 +730,7 @@ declare const _default: {
730
730
  viewPlugin: string;
731
731
  correspondViewTypeStyle: string;
732
732
  toolbarItem: string;
733
+ acItem: string;
733
734
  };
734
735
  };
735
736
  service: {
@@ -736,7 +736,8 @@ var index = {
736
736
  frontEndPluginNode: "\u627E\u4E0D\u5230\u754C\u9762\u903B\u8F91\u524D\u7AEF\u63D2\u4EF6\u8282\u70B9\uFF0C\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
737
737
  viewPlugin: "\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
738
738
  correspondViewTypeStyle: "\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[{viewType}]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[{viewStyle}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
739
- toolbarItem: "\u627E\u4E0D\u5230\u5DE5\u5177\u680F\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668"
739
+ toolbarItem: "\u627E\u4E0D\u5230\u5DE5\u5177\u680F\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
740
+ acItem: "\u627E\u4E0D\u5230\u81EA\u586B\u5217\u8868\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668"
740
741
  }
741
742
  },
742
743
  service: {
@@ -38,6 +38,14 @@ class AutoCompleteEditorController extends runtime.EditorController {
38
38
  * 自填数据项集合(已排除了value和text)
39
39
  */
40
40
  __publicField(this, "dataItems", []);
41
+ /**
42
+ * 自填列表项适配器
43
+ *
44
+ * @author zhanghengfeng
45
+ * @date 2024-05-21 17:05:21
46
+ * @type {IAcItemProvider}
47
+ */
48
+ __publicField(this, "acItemProvider");
41
49
  }
42
50
  async onInit() {
43
51
  super.onInit();
@@ -72,6 +80,9 @@ class AutoCompleteEditorController extends runtime.EditorController {
72
80
  }
73
81
  );
74
82
  }
83
+ if (this.deACMode.itemSysPFPluginId) {
84
+ this.acItemProvider = await runtime.getAcItemProvider(this.deACMode);
85
+ }
75
86
  }
76
87
  }
77
88
  }
@@ -183,6 +183,13 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
183
183
  default: ({
184
184
  item
185
185
  }) => {
186
+ if (this.c.acItemProvider) {
187
+ const component = vue.resolveComponent(this.c.acItemProvider.component);
188
+ return vue.h(component, {
189
+ item,
190
+ controller: this.c
191
+ });
192
+ }
186
193
  return vue.createVNode("div", {
187
194
  "class": [this.ns.e("transfer-item"), this.ns.is("ellipsis", isEllipsis)],
188
195
  "title": isEllipsis ? item[this.c.textName] : ""
@@ -310,7 +310,18 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
310
310
  "key": item[this.c.keyName],
311
311
  "value": item[this.c.keyName],
312
312
  "label": item[this.c.textName]
313
- }, null);
313
+ }, {
314
+ default: () => {
315
+ if (this.c.acItemProvider) {
316
+ const component = vue.resolveComponent(this.c.acItemProvider.component);
317
+ return vue.h(component, {
318
+ item,
319
+ controller: this.c
320
+ });
321
+ }
322
+ return vue.createVNode("span", null, [item[this.c.textName] != null ? item[this.c.textName] : ""]);
323
+ }
324
+ });
314
325
  })) ? _slot : {
315
326
  default: () => [_slot]
316
327
  }), !this.readonly && vue.createVNode("div", {
@@ -207,6 +207,16 @@ const IBizPicker = /* @__PURE__ */ vue.defineComponent({
207
207
  context,
208
208
  params
209
209
  } = this.c;
210
+ if (this.c.acItemProvider) {
211
+ const component = vue.resolveComponent(this.c.acItemProvider.component);
212
+ return vue.h(component, {
213
+ item,
214
+ controller: this.c,
215
+ onClick: () => {
216
+ this.onACSelect(item);
217
+ }
218
+ });
219
+ }
210
220
  return panel ? vue.createVNode(vue.resolveComponent("iBizControlShell"), {
211
221
  "data": item,
212
222
  "modelData": panel,
@@ -242,7 +242,18 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
242
242
  "value": item[this.c.keyName],
243
243
  "key": item[this.c.keyName],
244
244
  "label": item[this.c.textName]
245
- }, null);
245
+ }, {
246
+ default: () => {
247
+ if (this.c.acItemProvider) {
248
+ const component = vue.resolveComponent(this.c.acItemProvider.component);
249
+ return vue.h(component, {
250
+ item,
251
+ controller: this.c
252
+ });
253
+ }
254
+ return vue.createVNode("span", null, [item[this.c.textName] != null ? item[this.c.textName] : ""]);
255
+ }
256
+ });
246
257
  })) ? _slot : {
247
258
  default: () => [_slot]
248
259
  });
@@ -68,6 +68,14 @@ class PickerEditorController extends runtime.EditorController {
68
68
  __publicField(this, "objectNameField", "");
69
69
  // 对象值属性
70
70
  __publicField(this, "objectValueField", "");
71
+ /**
72
+ * 自填列表项适配器
73
+ *
74
+ * @author zhanghengfeng
75
+ * @date 2024-05-21 17:05:50
76
+ * @type {IAcItemProvider}
77
+ */
78
+ __publicField(this, "acItemProvider");
71
79
  }
72
80
  async onInit() {
73
81
  var _a, _b, _c, _d;
@@ -105,6 +113,9 @@ class PickerEditorController extends runtime.EditorController {
105
113
  }
106
114
  );
107
115
  }
116
+ if (this.deACMode.itemSysPFPluginId) {
117
+ this.acItemProvider = await runtime.getAcItemProvider(this.deACMode);
118
+ }
108
119
  }
109
120
  }
110
121
  }
@@ -168,9 +168,19 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
168
168
  "label": item.value,
169
169
  "disabled": this.disabled || this.readonly || item.disableSelect === true
170
170
  }, {
171
- default: () => [vue.createVNode("span", {
172
- "class": this.ns.e("text")
173
- }, [item.text])]
171
+ default: () => {
172
+ const c = this.controller;
173
+ if (c.acItemProvider) {
174
+ const component = vue.resolveComponent(c.acItemProvider.component);
175
+ return vue.h(component, {
176
+ item,
177
+ controller: c
178
+ });
179
+ }
180
+ return vue.createVNode("span", {
181
+ "class": this.ns.e("text")
182
+ }, [item.text]);
183
+ }
174
184
  }))) ? _slot : {
175
185
  default: () => [_slot]
176
186
  }) : vue.createVNode(vue.resolveComponent("el-radio-group"), vue.mergeProps({
@@ -184,9 +194,19 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
184
194
  this.onSelectArrayChange(item.value);
185
195
  }
186
196
  }, {
187
- default: () => [vue.createVNode("span", {
188
- "class": this.ns.e("text")
189
- }, [item.text])]
197
+ default: () => {
198
+ const c = this.controller;
199
+ if (c.acItemProvider) {
200
+ const component = vue.resolveComponent(c.acItemProvider.component);
201
+ return vue.h(component, {
202
+ item,
203
+ controller: c
204
+ });
205
+ }
206
+ return vue.createVNode("span", {
207
+ "class": this.ns.e("text")
208
+ }, [item.text]);
209
+ }
190
210
  }))) ? _slot2 : {
191
211
  default: () => [_slot2]
192
212
  })]);
@@ -26,6 +26,22 @@ class ListBoxPickerEditorController extends runtime.EditorController {
26
26
  * 数据集codeName
27
27
  */
28
28
  __publicField(this, "interfaceName", "");
29
+ /**
30
+ * 实体自填模式模型
31
+ *
32
+ * @author zhanghengfeng
33
+ * @date 2024-05-21 17:05:03
34
+ * @type {IAppDEACMode}
35
+ */
36
+ __publicField(this, "deACMode");
37
+ /**
38
+ * 自填列表项适配器
39
+ *
40
+ * @author zhanghengfeng
41
+ * @date 2024-05-21 17:05:25
42
+ * @type {IAcItemProvider}
43
+ */
44
+ __publicField(this, "acItemProvider");
29
45
  }
30
46
  async onInit() {
31
47
  super.onInit();
@@ -33,6 +49,18 @@ class ListBoxPickerEditorController extends runtime.EditorController {
33
49
  if (this.model.appDEDataSetId) {
34
50
  this.interfaceName = this.model.appDEDataSetId;
35
51
  }
52
+ if (this.model.appDataEntityId && this.model.appDEACModeId) {
53
+ this.deACMode = await runtime.getDeACMode(
54
+ this.model.appDEACModeId,
55
+ this.model.appDataEntityId,
56
+ this.context.srfappid
57
+ );
58
+ if (this.deACMode) {
59
+ if (this.deACMode.itemSysPFPluginId) {
60
+ this.acItemProvider = await runtime.getAcItemProvider(this.deACMode);
61
+ }
62
+ }
63
+ }
36
64
  }
37
65
  }
38
66
  /**
@@ -742,7 +742,8 @@ var index = {
742
742
  frontEndPluginNode: "Cannot find interface logic front-end plugin node, plugin {pluginKey} corresponding adapter",
743
743
  viewPlugin: "Cannot find the adapter corresponding to the view plugin {pluginKey}.",
744
744
  correspondViewTypeStyle: "Cannot find an adapter for view type: [{viewType}] corresponding to view style: [{viewStyle}].",
745
- toolbarItem: "Cannot find the adapter corresponding to the toolbar item plugin {pluginKey}."
745
+ toolbarItem: "Cannot find the adapter corresponding to the toolbar item plugin {pluginKey}.",
746
+ acItem: "Cannot find the adapter corresponding to the ac item plugin {pluginKey}."
746
747
  }
747
748
  },
748
749
  service: {
@@ -740,7 +740,8 @@ var index = {
740
740
  frontEndPluginNode: "\u627E\u4E0D\u5230\u754C\u9762\u903B\u8F91\u524D\u7AEF\u63D2\u4EF6\u8282\u70B9\uFF0C\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
741
741
  viewPlugin: "\u627E\u4E0D\u5230\u89C6\u56FE\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
742
742
  correspondViewTypeStyle: "\u627E\u4E0D\u5230\u89C6\u56FE\u7C7B\u578B\uFF1A[{viewType}]\u7684\u89C6\u56FE\u6837\u5F0F\uFF1A[{viewStyle}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
743
- toolbarItem: "\u627E\u4E0D\u5230\u5DE5\u5177\u680F\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668"
743
+ toolbarItem: "\u627E\u4E0D\u5230\u5DE5\u5177\u680F\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
744
+ acItem: "\u627E\u4E0D\u5230\u81EA\u586B\u5217\u8868\u9879\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668"
744
745
  }
745
746
  },
746
747
  service: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.16-alpha.0",
3
+ "version": "0.7.16",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,12 +30,12 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.5",
32
32
  "@ibiz-template-plugin/gantt": "0.1.4",
33
- "@ibiz-template/core": "0.7.16-alpha.0",
33
+ "@ibiz-template/core": "0.7.16",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.7.16-alpha.0",
36
- "@ibiz-template/runtime": "0.7.16-alpha.0",
35
+ "@ibiz-template/model-helper": "0.7.16",
36
+ "@ibiz-template/runtime": "0.7.16",
37
37
  "@ibiz-template/theme": "^0.7.0",
38
- "@ibiz-template/vue3-util": "0.7.16-alpha.0",
38
+ "@ibiz-template/vue3-util": "0.7.16",
39
39
  "@ibiz-template/web-theme": "^1.1.17",
40
40
  "@ibiz/model-core": "^0.1.27",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",