@ibiz-template/vue3-components 0.7.1 → 0.7.2
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-8RikZoLN.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-X-Qzwu1f.js → xlsx-util-vcRxGFII.js} +1 -1
- package/es/common/data-import/data-import.d.ts +1 -3
- package/es/common/data-import/data-import.mjs +34 -77
- package/es/control/form/form/form.mjs +7 -9
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +40 -0
- package/es/control/grid/grid/grid.d.ts +1 -0
- package/es/control/grid/grid/grid.mjs +15 -3
- package/es/control/grid/grid/index.d.ts +3 -0
- package/es/control/tree-grid/index.d.ts +3 -0
- package/es/control/tree-grid/tree-grid.d.ts +3 -1
- package/es/control/tree-grid/tree-grid.mjs +15 -3
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +7 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +7 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +5 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +7 -3
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +5 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +18 -3
- package/es/editor/text-box/input/input.d.ts +1 -1
- package/es/index.mjs +1 -0
- package/es/panel-component/data-import/data-import-shell.css +0 -0
- package/es/panel-component/data-import/data-import-shell.d.ts +27 -0
- package/es/panel-component/data-import/data-import-shell.mjs +49 -0
- package/es/panel-component/data-import/data-import.provider.d.ts +15 -0
- package/es/panel-component/data-import/data-import.provider.mjs +21 -0
- package/es/panel-component/data-import/index.d.ts +24 -0
- package/es/panel-component/data-import/index.mjs +15 -0
- package/es/panel-component/index.d.ts +1 -0
- package/es/panel-component/index.mjs +5 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +0 -1
- package/es/panel-component/user-action/index.d.ts +25 -0
- package/es/panel-component/user-action/index.mjs +14 -0
- package/es/panel-component/user-action/user-action-provider.d.ts +6 -0
- package/es/panel-component/user-action/user-action-provider.mjs +21 -0
- package/es/panel-component/user-action/user-action.css +1 -0
- package/es/panel-component/user-action/user-action.d.ts +28 -0
- package/es/panel-component/user-action/user-action.mjs +74 -0
- package/es/view-engine/app-data-upload-view.engine.d.ts +13 -0
- package/es/view-engine/app-data-upload-view.engine.mjs +7 -0
- package/es/view-engine/index-view.engine.mjs +13 -1
- package/es/view-engine/index.mjs +5 -0
- package/lib/common/data-import/data-import.cjs +33 -76
- package/lib/control/form/form/form.cjs +7 -9
- package/lib/control/grid/grid/grid.cjs +14 -2
- package/lib/control/tree-grid/tree-grid.cjs +14 -2
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +6 -0
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +7 -3
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +5 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +7 -3
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +5 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +18 -3
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/index.cjs +12 -10
- package/lib/panel-component/data-import/data-import-shell.cjs +51 -0
- package/lib/panel-component/data-import/data-import-shell.css +0 -0
- package/lib/panel-component/data-import/data-import.provider.cjs +23 -0
- package/lib/panel-component/data-import/index.cjs +20 -0
- package/lib/panel-component/index.cjs +31 -26
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.cjs +0 -1
- package/lib/panel-component/user-action/index.cjs +19 -0
- package/lib/panel-component/user-action/user-action-provider.cjs +23 -0
- package/lib/panel-component/user-action/user-action.cjs +76 -0
- package/lib/panel-component/user-action/user-action.css +1 -0
- package/lib/view-engine/app-data-upload-view.engine.cjs +9 -0
- package/lib/view-engine/index-view.engine.cjs +12 -0
- package/lib/view-engine/index.cjs +5 -0
- package/package.json +6 -6
- package/dist/index-XRnHM6lw.js +0 -4
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('./user-action.css');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const UserAction = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizUserAction",
|
|
11
|
+
props: {
|
|
12
|
+
modelData: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
controller: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(props) {
|
|
22
|
+
const ns = vue3Util.useNamespace("user-action");
|
|
23
|
+
const c = props.controller;
|
|
24
|
+
const imgConfig = {
|
|
25
|
+
SETTING: {
|
|
26
|
+
imagePath: "svg/setting.svg"
|
|
27
|
+
},
|
|
28
|
+
HELPER: {
|
|
29
|
+
imagePath: "svg/helper.svg"
|
|
30
|
+
},
|
|
31
|
+
CUSTOM: {
|
|
32
|
+
imagePath: "svg/custom-workbench.svg"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
let sysImage = props.modelData.sysImage;
|
|
36
|
+
if (!sysImage && props.modelData && props.modelData.rawItem) {
|
|
37
|
+
const predefinedType = props.modelData.rawItem.predefinedType;
|
|
38
|
+
if (predefinedType) {
|
|
39
|
+
sysImage = imgConfig[predefinedType];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const onClick = async () => {
|
|
43
|
+
const id = props.modelData.id;
|
|
44
|
+
const menuC = c.panel.view.getController("appmenu");
|
|
45
|
+
if (menuC) {
|
|
46
|
+
const targetMenu = menuC.allAppMenuItems.find((item) => {
|
|
47
|
+
return item.id === id;
|
|
48
|
+
});
|
|
49
|
+
if (targetMenu) {
|
|
50
|
+
const tempContext = c.panel.context.clone();
|
|
51
|
+
const tempParam = c.panel.params;
|
|
52
|
+
tempContext.srfappid = targetMenu.appId || ibiz.env.appId;
|
|
53
|
+
await ibiz.commands.execute(runtime.AppFuncCommand.TAG, targetMenu.appFuncId, tempContext, tempParam, {});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
ns,
|
|
59
|
+
c,
|
|
60
|
+
sysImage,
|
|
61
|
+
onClick
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
render() {
|
|
65
|
+
return vue.createVNode("div", {
|
|
66
|
+
"class": this.ns.b(),
|
|
67
|
+
"onClick": this.onClick,
|
|
68
|
+
"title": this.modelData.caption
|
|
69
|
+
}, [vue.createVNode(vue.resolveComponent("i-biz-icon"), {
|
|
70
|
+
"class": [this.ns.e("image")],
|
|
71
|
+
"icon": this.sysImage
|
|
72
|
+
}, null)]);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
exports.UserAction = UserAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-user-action{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ibiz-user-action__image{display:flex;place-items:center center;justify-content:center;width:28px;height:28px;margin-bottom:6px;cursor:pointer}
|
|
@@ -32,6 +32,18 @@ class IndexViewEngine extends runtime.ViewEngineBase {
|
|
|
32
32
|
}
|
|
33
33
|
async onMounted() {
|
|
34
34
|
await super.onMounted();
|
|
35
|
+
if (!this.isExistAndInLayout("appmenu")) {
|
|
36
|
+
const { model, context, params } = this.view;
|
|
37
|
+
const { defAppViewId } = model;
|
|
38
|
+
if (defAppViewId) {
|
|
39
|
+
ibiz.commands.execute(
|
|
40
|
+
runtime.OpenAppViewCommand.TAG,
|
|
41
|
+
defAppViewId,
|
|
42
|
+
context,
|
|
43
|
+
params
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
35
47
|
if (window.innerWidth <= 1200) {
|
|
36
48
|
this.toggleCollapse();
|
|
37
49
|
}
|
|
@@ -46,6 +46,7 @@ var ganttView_engine = require('./gantt-view.engine.cjs');
|
|
|
46
46
|
var deIndexViewEngine = require('./de-index-view-engine.cjs');
|
|
47
47
|
var subAppRefView_engine = require('./sub-app-ref-view.engine.cjs');
|
|
48
48
|
var tabSearchView_engine = require('./tab-search-view.engine.cjs');
|
|
49
|
+
var appDataUploadView_engine = require('./app-data-upload-view.engine.cjs');
|
|
49
50
|
|
|
50
51
|
"use strict";
|
|
51
52
|
const IBizViewEngine = {
|
|
@@ -238,6 +239,10 @@ const IBizViewEngine = {
|
|
|
238
239
|
"VIEW_DESUBAPPREFVIEW",
|
|
239
240
|
(c) => new subAppRefView_engine.SubAppRefViewEngine(c)
|
|
240
241
|
);
|
|
242
|
+
ibiz.engine.register(
|
|
243
|
+
"VIEW_APPDATAUPLOADVIEW",
|
|
244
|
+
(c) => new appDataUploadView_engine.AppDataUploadViewEngine(c)
|
|
245
|
+
);
|
|
241
246
|
ibiz.engine.register(
|
|
242
247
|
"VIEW_GridView9",
|
|
243
248
|
(c) => new gridView_engine.GridViewEngine(c)
|
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.2",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,13 +30,13 @@
|
|
|
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.2",
|
|
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.2",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.2",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
39
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.2",
|
|
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",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|