@ibiz-template/vue3-components 0.7.5 → 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-iqcGVBHE.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 +10 -2
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +25 -3
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +19 -5
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +18 -4
- package/es/control/dashboard/dashboard.d.ts +0 -1
- package/es/control/dashboard/dashboard.mjs +3 -11
- package/es/control/dashboard/index.d.ts +0 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +3 -6
- package/es/control/drbar/drbar.controller.mjs +2 -1
- package/es/control/drtab/drtab.controller.mjs +2 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -0
- package/es/control/grid/grid/grid.mjs +33 -2
- package/es/control/grid/grid/index.d.ts +1 -0
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +2 -1
- package/es/control/toolbar/toolbar.mjs +13 -7
- package/es/control/wizard-panel/wizard-panel.mjs +8 -9
- 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/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +16 -8
- 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/panel-component/panel-button/panel-button.controller.mjs +2 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +13 -5
- 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/view-engine/wizard-view-engine.mjs +2 -2
- 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 +10 -2
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +19 -5
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +18 -4
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +2 -10
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +3 -6
- package/lib/control/drbar/drbar.controller.cjs +2 -1
- package/lib/control/drtab/drtab.controller.cjs +2 -1
- package/lib/control/grid/grid/grid.cjs +33 -2
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/kanban/kanban.cjs +2 -1
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +13 -7
- package/lib/control/wizard-panel/wizard-panel.cjs +8 -9
- 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/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +16 -8
- 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/panel-component/panel-button/panel-button.controller.cjs +2 -0
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +13 -5
- 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/view-engine/wizard-view-engine.cjs +2 -2
- 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-QdhEqiEH.js +0 -4
- package/dist/index-ZIuDbCjc.js +0 -1
|
@@ -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;
|
|
@@ -29,8 +29,8 @@ class WizardViewEngine extends runtime.ViewEngineBase {
|
|
|
29
29
|
this.view.slotProps.wizardpanel = {};
|
|
30
30
|
}
|
|
31
31
|
this.wizardPanel.initialize();
|
|
32
|
-
this.wizardPanel.evt.on("onFinishSuccess", (
|
|
33
|
-
this.view.closeView({ ok: true, data:
|
|
32
|
+
this.wizardPanel.evt.on("onFinishSuccess", (event) => {
|
|
33
|
+
this.view.closeView({ ok: true, data: event.data });
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -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:{}})}}}));
|