@ibiz-template/vue3-components 0.7.16-alpha.0 → 0.7.17-alpha.0
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.
- package/dist/index-PC3JcJ3h.js +4 -0
- package/dist/index-d8pCzmlk.js +1 -0
- package/dist/index-tSpp-ef8.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-MJWwC396.js → xlsx-util-GyD7bt4p.js} +1 -1
- package/es/editor/autocomplete/autocomplete-editor.controller.d.ts +9 -1
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +12 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +8 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +13 -2
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +11 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +13 -2
- package/es/editor/data-picker/picker-editor.controller.d.ts +9 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +12 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +27 -7
- package/es/editor/list-box/list-box-picker-editor.controller.d.ts +18 -2
- package/es/editor/list-box/list-box-picker-editor.controller.mjs +29 -1
- package/es/locale/en/index.d.ts +490 -390
- package/es/locale/en/index.mjs +13 -563
- package/es/locale/zh-CN/index.d.ts +490 -390
- package/es/locale/zh-CN/index.mjs +13 -561
- package/es/panel-component/user-action/index.d.ts +1 -1
- package/es/panel-component/user-action/user-action.d.ts +1 -1
- package/es/panel-component/user-action/user-action.mjs +5 -3
- package/es/util/app-util/app-util.d.ts +2 -2
- package/es/util/app-util/app-util.mjs +8 -7
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +11 -0
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +7 -0
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +12 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +10 -0
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +12 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +11 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +26 -6
- package/lib/editor/list-box/list-box-picker-editor.controller.cjs +28 -0
- package/lib/locale/en/index.cjs +13 -563
- package/lib/locale/zh-CN/index.cjs +13 -561
- package/lib/panel-component/user-action/user-action.cjs +5 -3
- package/lib/util/app-util/app-util.cjs +8 -7
- package/package.json +5 -5
- package/dist/index-8Lu2Ax-_.js +0 -1
- package/dist/index-Hg_8xCYx.js +0 -1
- 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
|
-
},
|
|
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
|
-
},
|
|
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: () =>
|
|
170
|
-
|
|
171
|
-
|
|
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: () =>
|
|
186
|
-
|
|
187
|
-
|
|
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
|
/**
|