@ibiz-template/vue3-components 0.7.6 → 0.7.7-dev.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-FAFZUJRc.js +4 -0
- package/dist/index-Rqr5SnvQ.js +1 -0
- package/dist/index-x-jLCilD.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-QjtIWX97.js → xlsx-util-2bS-pf2I.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +1 -0
- package/es/common/action-toolbar/action-toolbar.mjs +9 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
- package/es/control/toolbar/toolbar.mjs +13 -7
- package/es/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +7 -0
- package/es/editor/code/monaco-editor/monaco-editor.mjs +179 -16
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +10 -3
- package/es/editor/text-box/input/input.d.ts +1 -0
- package/es/editor/text-box/input/input.mjs +9 -2
- package/es/ibiz-vue3.mjs +2 -0
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +9 -1
- package/es/locale/en/index.mjs +10 -2
- package/es/locale/zh-CN/index.d.ts +9 -1
- package/es/locale/zh-CN/index.mjs +10 -2
- package/es/util/open-view-util/open-view-util.mjs +2 -3
- package/es/view/403-view/403-view.css +1 -0
- package/es/view/403-view/403-view.d.ts +6 -0
- package/es/view/403-view/403-view.mjs +45 -0
- package/es/view/404-view/404-view.mjs +2 -2
- package/es/view/index.d.ts +1 -0
- package/es/view/index.mjs +1 -0
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +5 -2
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +1 -1
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +3 -12
- package/lib/common/action-toolbar/action-toolbar.cjs +9 -1
- package/lib/control/toolbar/toolbar.cjs +13 -7
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +178 -15
- package/lib/editor/code/monaco-editor/monaco-editor.css +1 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +10 -3
- package/lib/editor/text-box/input/input.cjs +9 -2
- package/lib/ibiz-vue3.cjs +2 -0
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +10 -2
- package/lib/locale/zh-CN/index.cjs +10 -2
- package/lib/util/open-view-util/open-view-util.cjs +2 -3
- package/lib/view/403-view/403-view.cjs +47 -0
- package/lib/view/403-view/403-view.css +1 -0
- package/lib/view/404-view/404-view.cjs +2 -2
- package/lib/view/index.cjs +2 -0
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -1
- package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +3 -12
- package/package.json +7 -7
- package/dist/index-13Oh42A8.js +0 -1
- package/dist/index-ZIuDbCjc.js +0 -1
- package/dist/index-rHXmoO9Y.js +0 -4
|
@@ -16,7 +16,8 @@ var index = {
|
|
|
16
16
|
refresh: "\u5237\u65B0",
|
|
17
17
|
noSupport: "\u6682\u672A\u652F\u6301",
|
|
18
18
|
add: "\u6DFB\u52A0",
|
|
19
|
-
delete: "\u5220\u9664"
|
|
19
|
+
delete: "\u5220\u9664",
|
|
20
|
+
save: "\u4FDD\u5B58"
|
|
20
21
|
},
|
|
21
22
|
// 视图
|
|
22
23
|
view: {},
|
|
@@ -113,7 +114,14 @@ var index = {
|
|
|
113
114
|
}
|
|
114
115
|
},
|
|
115
116
|
// 编辑器
|
|
116
|
-
editor: {
|
|
117
|
+
editor: {
|
|
118
|
+
code: {
|
|
119
|
+
readOnlyPrompt: "\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u4E0D\u53EF\u7F16\u8F91",
|
|
120
|
+
confirmCancelPrompt: "\u786E\u5B9A\u8981\u53D6\u6D88\u7F16\u8F91\u5417\uFF1F",
|
|
121
|
+
cancelEditPrompt: "\u53D6\u6D88\u7F16\u8F91\u5C06\u65E0\u6CD5\u4FDD\u5B58\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u4E14\u4E0D\u80FD\u627E\u56DE\u3002",
|
|
122
|
+
confirmCancel: "\u786E\u8BA4\u53D6\u6D88"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
117
125
|
};
|
|
118
126
|
|
|
119
127
|
exports.default = index;
|
|
@@ -24,7 +24,7 @@ class OpenViewUtil {
|
|
|
24
24
|
} else {
|
|
25
25
|
this.router.push({ path });
|
|
26
26
|
}
|
|
27
|
-
return { ok:
|
|
27
|
+
return { ok: false };
|
|
28
28
|
}
|
|
29
29
|
async rootByModal(appViewId, context, params) {
|
|
30
30
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
@@ -34,8 +34,7 @@ class OpenViewUtil {
|
|
|
34
34
|
context,
|
|
35
35
|
params
|
|
36
36
|
);
|
|
37
|
-
this.
|
|
38
|
-
return { ok: true };
|
|
37
|
+
return this.push(path);
|
|
39
38
|
}
|
|
40
39
|
/**
|
|
41
40
|
* 模态打开视图
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var vueRouter = require('vue-router');
|
|
6
|
+
require('./403-view.css');
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
const View403 = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
name: "IBizView403",
|
|
11
|
+
setup() {
|
|
12
|
+
const ns = vue3Util.useNamespace("403-view");
|
|
13
|
+
const router = vueRouter.useRouter();
|
|
14
|
+
const route = vueRouter.useRoute();
|
|
15
|
+
const gotoIndexView = async () => {
|
|
16
|
+
await router.push("/");
|
|
17
|
+
window.location.reload();
|
|
18
|
+
};
|
|
19
|
+
vue.onMounted(() => ibiz.util.hiddenAppLoading());
|
|
20
|
+
const isTop = vue.computed(() => {
|
|
21
|
+
return route && !route.params.view1;
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
ns,
|
|
25
|
+
isTop,
|
|
26
|
+
gotoIndexView
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
render() {
|
|
30
|
+
return vue.createVNode("div", {
|
|
31
|
+
"class": [this.ns.b(), this.ns.is("top", this.isTop)]
|
|
32
|
+
}, [vue.createVNode("img", {
|
|
33
|
+
"class": this.ns.b("img"),
|
|
34
|
+
"src": "./assets/images/404.png"
|
|
35
|
+
}, null), vue.createVNode("div", {
|
|
36
|
+
"class": this.ns.b("text")
|
|
37
|
+
}, [vue.createVNode("div", {
|
|
38
|
+
"class": this.ns.be("text", "text1")
|
|
39
|
+
}, [vue.createTextVNode("\u62B1\u6B49\uFF0C\u60A8\u6CA1\u6709\u8BBF\u95EE\u8BE5\u9875\u9762\u7684\u6743\u9650")]), this.isTop ? vue.createVNode("div", {
|
|
40
|
+
"class": this.ns.be("text", "text2")
|
|
41
|
+
}, [vue.createTextVNode("\u60A8\u6CA1\u6709\u8BBF\u95EE\u8BE5\u9875\u9762\u7684\u6743\u9650\uFF0C\u8BF7"), vue.createVNode("a", {
|
|
42
|
+
"onClick": this.gotoIndexView
|
|
43
|
+
}, [vue.createTextVNode("\u8FD4\u56DE\u9996\u9875")]), vue.createTextVNode("\u7EE7\u7EED\u6D4F\u89C8")]) : null])]);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
exports.View403 = View403;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-403-view{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;width:100%;height:100%;font-size:16px}.ibiz-403-view .ibiz-403-view-text{margin-top:40px;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}.ibiz-403-view-text__text1{margin-bottom:20px}.ibiz-403-view-text__text2 a{color:#557da5;cursor:pointer}.ibiz-403-view.is-top{width:100vw;height:100vh}
|
|
@@ -36,9 +36,9 @@ const View404 = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
"class": this.ns.b("text")
|
|
37
37
|
}, [vue.createVNode("div", {
|
|
38
38
|
"class": this.ns.be("text", "text1")
|
|
39
|
-
}, [vue.createTextVNode("\u62B1\u6B49\uFF0C\u60A8\u8BBF\u95EE\u7684\
|
|
39
|
+
}, [vue.createTextVNode("\u62B1\u6B49\uFF0C\u60A8\u8BBF\u95EE\u7684\u8D44\u6E90\u4E0D\u5B58\u5728")]), this.isTop ? vue.createVNode("div", {
|
|
40
40
|
"class": this.ns.be("text", "text2")
|
|
41
|
-
}, [vue.createTextVNode("\u60A8\u8981\u627E\u7684\
|
|
41
|
+
}, [vue.createTextVNode("\u60A8\u8981\u627E\u7684\u8D44\u6E90\u4E0D\u5B58\u5728\uFF0C\u8BF7"), vue.createVNode("a", {
|
|
42
42
|
"onClick": this.gotoIndexView
|
|
43
43
|
}, [vue.createTextVNode("\u8FD4\u56DE\u9996\u9875")]), vue.createTextVNode("\u7EE7\u7EED\u6D4F\u89C8")]) : null])]);
|
|
44
44
|
}
|
package/lib/view/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _404View = require('./404-view/404-view.cjs');
|
|
4
|
+
var _403View = require('./403-view/403-view.cjs');
|
|
4
5
|
var loginView = require('./login-view/login-view.cjs');
|
|
5
6
|
var index = require('./wf-step-trace-view/index.cjs');
|
|
6
7
|
var index$1 = require('./sub-app-ref-view/index.cjs');
|
|
@@ -9,6 +10,7 @@ var errorView = require('./error-view/error-view.cjs');
|
|
|
9
10
|
"use strict";
|
|
10
11
|
|
|
11
12
|
exports.View404 = _404View.View404;
|
|
13
|
+
exports.View403 = _403View.View403;
|
|
12
14
|
exports.LoginView = loginView.LoginView;
|
|
13
15
|
exports.IBizWFStepTraceView = index.IBizWFStepTraceView;
|
|
14
16
|
exports.IBizSubAppRefView = index$1.IBizSubAppRefView;
|
|
@@ -99,7 +99,7 @@ const ModalRouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
99
99
|
};
|
|
100
100
|
overlay = ibiz.overlay.createModal(component, void 0, opts);
|
|
101
101
|
overlay.present();
|
|
102
|
-
await overlay.onWillDismiss();
|
|
102
|
+
const result = await overlay.onWillDismiss();
|
|
103
103
|
overlay = null;
|
|
104
104
|
if (isDestroyed.value === false) {
|
|
105
105
|
if ((_a = window.history.state) == null ? void 0 : _a.back) {
|
|
@@ -109,6 +109,9 @@ const ModalRouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
109
|
const index = path.indexOf("/".concat(runtime.RouteConst.ROUTE_MODAL_TAG, "/"));
|
|
110
110
|
router.replace(path.substring(0, index));
|
|
111
111
|
}
|
|
112
|
+
vue3Util.routerCallback.close(router.currentRoute.value.fullPath, result || {
|
|
113
|
+
ok: false
|
|
114
|
+
});
|
|
112
115
|
}
|
|
113
116
|
};
|
|
114
117
|
openView();
|
|
@@ -62,17 +62,8 @@ class UnauthorizedHandler {
|
|
|
62
62
|
* @protected
|
|
63
63
|
* @return {*} {Promise<void>}
|
|
64
64
|
*/
|
|
65
|
-
async handle403() {
|
|
66
|
-
|
|
67
|
-
title: "\u5F53\u524D\u8D26\u6237\u88AB\u7981\u6B62\u8BBF\u95EE",
|
|
68
|
-
desc: "\u662F\u5426\u8981\u9000\u51FA\u5F53\u524D\u8D26\u6237\uFF1F"
|
|
69
|
-
});
|
|
70
|
-
if (result) {
|
|
71
|
-
const bol = await ibiz.hub.controller.logout();
|
|
72
|
-
if (bol) {
|
|
73
|
-
window.location.reload();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
65
|
+
async handle403(error) {
|
|
66
|
+
ibiz.mc.error.send(error);
|
|
76
67
|
}
|
|
77
68
|
/**
|
|
78
69
|
* 没有权限处理
|
|
@@ -99,7 +90,7 @@ class UnauthorizedHandler {
|
|
|
99
90
|
return true;
|
|
100
91
|
}
|
|
101
92
|
if (error.status === 403) {
|
|
102
|
-
this.handle403();
|
|
93
|
+
this.handle403(error);
|
|
103
94
|
return true;
|
|
104
95
|
}
|
|
105
96
|
}
|
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.7-dev.0",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,14 +30,14 @@
|
|
|
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.7-dev.0",
|
|
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.7-dev.0",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.7-dev.0",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.7-dev.0",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.16",
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
40
|
+
"@ibiz/model-core": "^0.1.22",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@ibiz-template/runtime": "^0.7.0",
|
|
101
101
|
"@ibiz-template/theme": "^0.7.0",
|
|
102
102
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
103
|
-
"@ibiz/model-core": "^0.1.
|
|
103
|
+
"@ibiz/model-core": "^0.1.22",
|
|
104
104
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
105
105
|
"@monaco-editor/loader": "^1.3.3",
|
|
106
106
|
"@wangeditor/editor": "^5.1.23",
|
package/dist/index-13Oh42A8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(e){"use strict";return{execute:function(){e("default",{app:{logout:"Logout",error:"Error",success:"Success",confirm:"Confirm",cancel:"Cancel",return:"Return",noData:"No data available",refresh:"Refresh",noSupport:"Not supported currently",add:"Add",delete:"Delete"},view:{},control:{menu:{noSupportAlign:"The menu direction {align} is not supported temporarily"},calendar:{lastYear:"Last Year",lastMonth:"Last Month",today:"Today",nextMonth:"Next Month",nextYear:"Next Year"},chart:{chartPlaceholder:"chart"},dashboard:{dashboardDesign:{global:"Global level",add:"Add",customPortal:"Customize portal",colNum:"Column number",cellHeight:"Cell Height",restoreDefault:"Restore default",save:"Save"}},form:{noSupportDetailType:"Form detail type not supported: {detailType} or corresponding provider cannot be found",formDruipart:{saveFirst:"Please save the master data first"},formGroupPanel:{showMore:"Show More",putAway:"Put Away"},formMDctrlForm:{notFindProvider:"Provider not found for form"}}},component:{indexSearch:{placeholder:"Search Content"},dataImport:{startImport:"Start importing. Please refer to the application notification for detailed progress and results",importSuccess:"A total of {totalNum} pieces of imported data, error [{errorNum}], successful [{successNum}]",importData:"Import Data",clickToUpload:"Click on this area to upload",importResults:"Import Results",downloadTemplate:"Download the import template and fill in as required:",templateFile:"Data import template file",continue:"Continue importing"},dataImport2:{atLastOne:"Select at least one mapping attribute",uploadPlease:"Please upload the file",fileName:"Current file name: {fileName}",saveMode:"Import Mode Save",reUpload:"Re upload files",fileUpload:"File upload",import:"Import"},dataImport2Select:{selectMode:"Select import mode",edit:"Edit"},dataImport2Table:{selectAttribute:"Select the import attribute corresponding to the current column"},extendActionTimeLine:{processTime:"processing time",comments:"Approval opinions"},pagination:{display:"Display",piece:"piece",total:"total",pieceData:"piece of data"},rawItem:{errorConfig:"{type} type custom parameter configuration error",noSupportVideo:"Your browser does not support video tags"},gridSetting:{hideControl:"Column selection"},actionToolbar:{more:"More"}},editor:{}})}}}));
|
package/dist/index-ZIuDbCjc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],(function(e){"use strict";return{execute:function(){e("default",{app:{logout:"退出登录",error:"错误",success:"成功",confirm:"确认",cancel:"取消",return:"返回",noData:"无数据",refresh:"刷新",noSupport:"暂未支持",add:"添加",delete:"删除"},view:{},control:{menu:{noSupportAlign:"暂未支持菜单方向为 {align}"},calendar:{lastYear:"去年",lastMonth:"上个月",today:"今天",nextMonth:"下个月",nextYear:"明年"},chart:{chartPlaceholder:"图表"},dashboard:{dashboardDesign:{global:"全局",add:"添加",customPortal:"自定义门户",colNum:"列数",cellHeight:"单元格高度",restoreDefault:"恢复默认",save:"保存"}},form:{noSupportDetailType:"暂未支持的表单项类型: {detailType} 或找不到对应适配器",formDruipart:{saveFirst:"请先保存主数据"},formGroupPanel:{showMore:"显示更多",putAway:"收起"},formMDctrlForm:{notFindProvider:"未找到表单的适配器"}}},component:{indexSearch:{placeholder:"搜索内容"},dataImport:{startImport:"开始导入,详细进度和结果请看应用通知",importSuccess:"共计导入数据 {totalNum} 条,错误[{errorNum}],成功[{successNum}]",importData:"导入数据",clickToUpload:"单击此区域进行上传",importResults:"导入结果",downloadTemplate:"下载导入模版,并按要求填写:",templateFile:"数据导入模板文件",continue:"继续导入"},dataImport2:{atLastOne:"至少选择一个映射属性",uploadPlease:"请上传文件",fileName:"当前文件名:{fileName}",saveMode:"导入模式保存",reUpload:"重新上传文件",fileUpload:"文件上传",import:"导入"},dataImport2Select:{selectMode:"选择导入模式",edit:"编辑"},dataImport2Table:{selectAttribute:"选择当前列对应的导入属性"},extendActionTimeLine:{processTime:"处理时间",comments:"审批意见"},pagination:{display:"显示",piece:"条",total:"共",pieceData:"条数据"},rawItem:{errorConfig:"{type} 类型自定义参数配置错误",noSupportVideo:"你的浏览器不支持video标签"},gridSetting:{hideControl:"列选择"},actionToolbar:{more:"更多"}},editor:{}})}}}));
|