@ibiz-template/vue3-components 0.7.2 → 0.7.4
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-36xAWDJE.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-vcRxGFII.js → xlsx-util-UXWgtlzc.js} +1 -1
- package/es/common/data-import2/data-import2.d.ts +0 -1
- package/es/common/data-import2/data-import2.mjs +26 -67
- package/es/common/data-import2-select/data-import2-select.mjs +5 -3
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +4 -2
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/search-bar/filter-tree/filter-tree.mjs +6 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +1 -1
- package/es/editor/text-box/input/input.mjs +4 -1
- package/es/panel-component/user-action/user-action.mjs +6 -0
- package/es/util/modal-util/modal-util.mjs +16 -4
- package/es/web-app/router/index.mjs +44 -2
- package/lib/common/data-import2/data-import2.cjs +24 -66
- package/lib/common/data-import2-select/data-import2-select.cjs +5 -3
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +6 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +1 -1
- package/lib/editor/text-box/input/input.cjs +4 -1
- package/lib/panel-component/user-action/user-action.cjs +6 -0
- package/lib/util/modal-util/modal-util.cjs +16 -4
- package/lib/web-app/router/index.cjs +44 -2
- package/package.json +5 -5
- package/dist/index-8RikZoLN.js +0 -4
|
@@ -41,6 +41,7 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
});
|
|
42
42
|
const fieldValue = vue.computed(() => props.row.data[props.controller.fieldName]);
|
|
43
43
|
const formatValue = vue.computed(() => props.controller.formatValue(fieldValue.value));
|
|
44
|
+
const codeListValue = vue.computed(() => runtime.ValueExUtil.toText(props.controller.model, fieldValue.value));
|
|
44
45
|
const codeListText = vue.ref("");
|
|
45
46
|
const onInfoTextChange = (text) => {
|
|
46
47
|
codeListText.value = text;
|
|
@@ -63,6 +64,7 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
63
64
|
CustomHtml,
|
|
64
65
|
fieldValue,
|
|
65
66
|
formatValue,
|
|
67
|
+
codeListValue,
|
|
66
68
|
tooltip,
|
|
67
69
|
zIndex
|
|
68
70
|
};
|
|
@@ -89,7 +91,7 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
91
|
"class": this.ns.e("text"),
|
|
90
92
|
"codeListItems": c.codeListItems,
|
|
91
93
|
"codeList": c.codeList,
|
|
92
|
-
"value": this.
|
|
94
|
+
"value": this.codeListValue,
|
|
93
95
|
"onClick": this.onTextClick,
|
|
94
96
|
"onInfoTextChange": this.onInfoTextChange,
|
|
95
97
|
"title": this.tooltip
|
|
@@ -380,7 +380,12 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
380
380
|
}, null);
|
|
381
381
|
})) ? _slot2 : {
|
|
382
382
|
default: () => [_slot2]
|
|
383
|
-
}),
|
|
383
|
+
}), vue.createVNode(vue.resolveComponent("iBizFilterModeSelect"), {
|
|
384
|
+
"disabled": true,
|
|
385
|
+
"class": ns.e("mode-select"),
|
|
386
|
+
"value": child.valueOP,
|
|
387
|
+
"modes": [child.valueOP]
|
|
388
|
+
}, null), renderEditor(child, itemsC)];
|
|
384
389
|
}
|
|
385
390
|
return vue.createVNode("div", {
|
|
386
391
|
"class": (ns.b("group"), ns.bm("group", "items"))
|
|
@@ -157,7 +157,7 @@ const IBizAutoComplete = /* @__PURE__ */ vue.defineComponent({
|
|
|
157
157
|
};
|
|
158
158
|
},
|
|
159
159
|
render() {
|
|
160
|
-
const overflowMode = ibiz.config.pickerEditor.overflowMode;
|
|
160
|
+
const overflowMode = this.c.editorParams.overflowMode || ibiz.config.pickerEditor.overflowMode;
|
|
161
161
|
const isEllipsis = overflowMode === "ellipsis";
|
|
162
162
|
const editContent = vue.createVNode(vue.resolveComponent("el-autocomplete"), vue.mergeProps({
|
|
163
163
|
"class": this.ns.b("input"),
|
|
@@ -281,7 +281,7 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
281
281
|
},
|
|
282
282
|
render() {
|
|
283
283
|
let _slot;
|
|
284
|
-
const overflowMode = ibiz.config.pickerEditor.overflowMode;
|
|
284
|
+
const overflowMode = this.c.editorParams.overflowMode || ibiz.config.pickerEditor.overflowMode;
|
|
285
285
|
const isEllipsis = overflowMode === "ellipsis";
|
|
286
286
|
const editContent = [!this.readonly && vue.createVNode(vue.resolveComponent("el-select"), vue.mergeProps({
|
|
287
287
|
"ref": "editorRef",
|
|
@@ -198,7 +198,7 @@ const IBizPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
198
198
|
};
|
|
199
199
|
},
|
|
200
200
|
render() {
|
|
201
|
-
const overflowMode = ibiz.config.pickerEditor.overflowMode;
|
|
201
|
+
const overflowMode = this.c.editorParams.overflowMode || ibiz.config.pickerEditor.overflowMode;
|
|
202
202
|
const isEllipsis = overflowMode === "ellipsis";
|
|
203
203
|
const itemContent = (item) => {
|
|
204
204
|
var _a;
|
|
@@ -213,7 +213,7 @@ const IBizPickerDropDown = /* @__PURE__ */ vue.defineComponent({
|
|
|
213
213
|
},
|
|
214
214
|
render() {
|
|
215
215
|
let _slot;
|
|
216
|
-
const overflowMode = ibiz.config.pickerEditor.overflowMode;
|
|
216
|
+
const overflowMode = this.c.editorParams.overflowMode || ibiz.config.pickerEditor.overflowMode;
|
|
217
217
|
const isEllipsis = overflowMode === "ellipsis";
|
|
218
218
|
const editContent = this.readonly ? this.value : vue.createVNode(vue.resolveComponent("el-select"), vue.mergeProps({
|
|
219
219
|
"ref": "editorRef",
|
|
@@ -235,7 +235,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
235
235
|
},
|
|
236
236
|
render() {
|
|
237
237
|
let _slot;
|
|
238
|
-
const overflowMode = ibiz.config.pickerEditor.overflowMode;
|
|
238
|
+
const overflowMode = this.c.editorParams.overflowMode || ibiz.config.pickerEditor.overflowMode;
|
|
239
239
|
const isEllipsis = overflowMode === "ellipsis";
|
|
240
240
|
const editContent = this.hasChildren ? vue.createVNode(vue.resolveComponent("el-tree-select"), vue.mergeProps({
|
|
241
241
|
"ref": "editorRef",
|
|
@@ -285,7 +285,10 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
285
285
|
width: editorWidth ? "".concat(editorWidth, "px") : "",
|
|
286
286
|
height: editorHeight ? "".concat(editorHeight, "px") : ""
|
|
287
287
|
}
|
|
288
|
-
}, [this.showFormDefaultContent && formDefaultContent,
|
|
288
|
+
}, [this.showFormDefaultContent && formDefaultContent, this.type === "password" && this.shouldAutoComplete === "new-password" ? vue.createVNode("input", {
|
|
289
|
+
"type": "text",
|
|
290
|
+
"style": "opacity: 0;position:absolute;width:0;height:0;"
|
|
291
|
+
}, null) : null, content, this.c.chatCompletion ? vue.createVNode("div", {
|
|
289
292
|
"class": this.ns.e("ai-chat"),
|
|
290
293
|
"onClick": this.onClick
|
|
291
294
|
}, [vue.createVNode("ion-icon", {
|
|
@@ -47,6 +47,12 @@ const UserAction = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
return item.id === id;
|
|
48
48
|
});
|
|
49
49
|
if (targetMenu) {
|
|
50
|
+
if (targetMenu.accessKey) {
|
|
51
|
+
const app = await ibiz.hub.getApp(c.panel.context.srfappid);
|
|
52
|
+
const permitted = app.authority.calcByResCode(targetMenu.accessKey);
|
|
53
|
+
if (!permitted)
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
50
56
|
const tempContext = c.panel.context.clone();
|
|
51
57
|
const tempParam = c.panel.params;
|
|
52
58
|
tempContext.srfappid = targetMenu.appId || ibiz.env.appId;
|
|
@@ -5,16 +5,28 @@ var ElementPlus = require('element-plus');
|
|
|
5
5
|
"use strict";
|
|
6
6
|
class ModalUtil {
|
|
7
7
|
async info(params) {
|
|
8
|
-
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
8
|
+
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
9
|
+
...params.options,
|
|
10
|
+
type: "info"
|
|
11
|
+
});
|
|
9
12
|
}
|
|
10
13
|
async success(params) {
|
|
11
|
-
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
14
|
+
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
15
|
+
...params.options,
|
|
16
|
+
type: "success"
|
|
17
|
+
});
|
|
12
18
|
}
|
|
13
19
|
async warning(params) {
|
|
14
|
-
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
20
|
+
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
21
|
+
...params.options,
|
|
22
|
+
type: "warning"
|
|
23
|
+
});
|
|
15
24
|
}
|
|
16
25
|
async error(params) {
|
|
17
|
-
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
26
|
+
await ElementPlus.ElMessageBox.alert(params.desc, params.title, {
|
|
27
|
+
...params.options,
|
|
28
|
+
type: "error"
|
|
29
|
+
});
|
|
18
30
|
}
|
|
19
31
|
async confirm(params) {
|
|
20
32
|
return new Promise((resolve) => {
|
|
@@ -148,7 +148,49 @@ class AppRouter {
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
path: ":view6(".concat(viewReg, ")/:params6(").concat(paramReg, ")"),
|
|
151
|
-
component: routerShell.RouterShell
|
|
151
|
+
component: routerShell.RouterShell,
|
|
152
|
+
children: [
|
|
153
|
+
{
|
|
154
|
+
path: "error/:code",
|
|
155
|
+
name: "errorView7",
|
|
156
|
+
component: errorView.ErrorView
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
path: "".concat(runtime.RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
|
|
160
|
+
components: {
|
|
161
|
+
[runtime.RouteConst.ROUTE_MODAL_TAG]: modalRouterShell.ModalRouterShell
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
path: ":view7(".concat(viewReg, ")/:params7(").concat(paramReg, ")"),
|
|
166
|
+
component: routerShell.RouterShell,
|
|
167
|
+
children: [
|
|
168
|
+
{
|
|
169
|
+
path: "error/:code",
|
|
170
|
+
name: "errorView8",
|
|
171
|
+
component: errorView.ErrorView
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "".concat(runtime.RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
|
|
175
|
+
components: {
|
|
176
|
+
[runtime.RouteConst.ROUTE_MODAL_TAG]: modalRouterShell.ModalRouterShell
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: ":view8(".concat(viewReg, ")/:params8(").concat(paramReg, ")"),
|
|
181
|
+
component: routerShell.RouterShell
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
path: ":pathMatch(.*)*",
|
|
185
|
+
redirect: { name: "errorView8" }
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
path: ":pathMatch(.*)*",
|
|
191
|
+
redirect: { name: "errorView7" }
|
|
192
|
+
}
|
|
193
|
+
]
|
|
152
194
|
},
|
|
153
195
|
{
|
|
154
196
|
path: ":pathMatch(.*)*",
|
|
@@ -158,7 +200,7 @@ class AppRouter {
|
|
|
158
200
|
},
|
|
159
201
|
{
|
|
160
202
|
path: ":pathMatch(.*)*",
|
|
161
|
-
redirect: { name: "
|
|
203
|
+
redirect: { name: "errorView5" }
|
|
162
204
|
}
|
|
163
205
|
]
|
|
164
206
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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.1",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
|
|
33
|
-
"@ibiz-template/core": "0.7.
|
|
33
|
+
"@ibiz-template/core": "0.7.3",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.7.
|
|
36
|
-
"@ibiz-template/runtime": "0.7.
|
|
35
|
+
"@ibiz-template/model-helper": "0.7.4",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.4",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.4",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.16",
|
|
40
40
|
"@ibiz/model-core": "^0.1.20",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|