@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
|
@@ -37,7 +37,7 @@ const UserAction = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
sysImage = imgConfig[predefinedType];
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
const onClick = async () => {
|
|
40
|
+
const onClick = async (event) => {
|
|
41
41
|
const id = props.modelData.id;
|
|
42
42
|
const menuC = c.panel.view.getController("appmenu");
|
|
43
43
|
if (menuC) {
|
|
@@ -54,7 +54,9 @@ const UserAction = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
const tempContext = c.panel.context.clone();
|
|
55
55
|
const tempParam = c.panel.params;
|
|
56
56
|
tempContext.srfappid = targetMenu.appId || ibiz.env.appId;
|
|
57
|
-
await ibiz.commands.execute(AppFuncCommand.TAG, targetMenu.appFuncId, tempContext, tempParam, {
|
|
57
|
+
await ibiz.commands.execute(AppFuncCommand.TAG, targetMenu.appFuncId, tempContext, tempParam, {
|
|
58
|
+
event
|
|
59
|
+
});
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
};
|
|
@@ -68,7 +70,7 @@ const UserAction = /* @__PURE__ */ defineComponent({
|
|
|
68
70
|
render() {
|
|
69
71
|
return createVNode("div", {
|
|
70
72
|
"class": this.ns.b(),
|
|
71
|
-
"onClick": this.onClick,
|
|
73
|
+
"onClick": (event) => this.onClick(event),
|
|
72
74
|
"title": this.modelData.caption
|
|
73
75
|
}, [createVNode(resolveComponent("i-biz-icon"), {
|
|
74
76
|
"class": [this.ns.e("image")],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Router } from 'vue-router';
|
|
2
|
-
import { IAppUtil } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppUtil, IAuthResult } from '@ibiz-template/runtime';
|
|
3
3
|
export declare class AppUtil implements IAppUtil {
|
|
4
4
|
protected router: Router;
|
|
5
5
|
/**
|
|
@@ -41,7 +41,7 @@ export declare class AppUtil implements IAppUtil {
|
|
|
41
41
|
* @param {(IData | undefined)} [opts]
|
|
42
42
|
* @return {*} {Promise<boolean>}
|
|
43
43
|
*/
|
|
44
|
-
changePwd(oldPwd: string, newPwd: string, opts?: IData | undefined): Promise<
|
|
44
|
+
changePwd(oldPwd: string, newPwd: string, opts?: IData | undefined): Promise<IAuthResult>;
|
|
45
45
|
/**
|
|
46
46
|
* 切换组织
|
|
47
47
|
*
|
|
@@ -47,9 +47,10 @@ class AppUtil {
|
|
|
47
47
|
window.history.replaceState({}, "", href);
|
|
48
48
|
}
|
|
49
49
|
await this.router.push(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
)
|
|
50
|
+
// `/login?ru=${encodeURIComponent(
|
|
51
|
+
// window.location.hash.replace('#/', '/'),
|
|
52
|
+
// )}`,
|
|
53
|
+
"/login"
|
|
53
54
|
);
|
|
54
55
|
ibiz.util.showAppLoading();
|
|
55
56
|
window.location.reload();
|
|
@@ -67,11 +68,11 @@ class AppUtil {
|
|
|
67
68
|
* @return {*} {Promise<boolean>}
|
|
68
69
|
*/
|
|
69
70
|
async changePwd(oldPwd, newPwd, opts) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
if (this.validatePwd(oldPwd, newPwd, opts)) {
|
|
72
|
+
const result = await ibiz.auth.changePwd(oldPwd, newPwd);
|
|
73
|
+
return result;
|
|
73
74
|
}
|
|
74
|
-
return
|
|
75
|
+
return { ok: false, result: {} };
|
|
75
76
|
}
|
|
76
77
|
/**
|
|
77
78
|
* 切换组织
|
|
@@ -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
|
-
},
|
|
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
|
-
},
|
|
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: () =>
|
|
172
|
-
|
|
173
|
-
|
|
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: () =>
|
|
188
|
-
|
|
189
|
-
|
|
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
|
/**
|