@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.
Files changed (91) hide show
  1. package/dist/index-FAFZUJRc.js +4 -0
  2. package/dist/index-Rqr5SnvQ.js +1 -0
  3. package/dist/index-x-jLCilD.js +1 -0
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{xlsx-util-iqcGVBHE.js → xlsx-util-2bS-pf2I.js} +1 -1
  7. package/es/common/action-toolbar/action-toolbar.d.ts +1 -0
  8. package/es/common/action-toolbar/action-toolbar.mjs +10 -2
  9. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +25 -3
  10. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +19 -5
  11. package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
  12. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +18 -4
  13. package/es/control/dashboard/dashboard.d.ts +0 -1
  14. package/es/control/dashboard/dashboard.mjs +3 -11
  15. package/es/control/dashboard/index.d.ts +0 -1
  16. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +3 -6
  17. package/es/control/drbar/drbar.controller.mjs +2 -1
  18. package/es/control/drtab/drtab.controller.mjs +2 -1
  19. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
  20. package/es/control/grid/grid/grid.css +1 -1
  21. package/es/control/grid/grid/grid.d.ts +1 -0
  22. package/es/control/grid/grid/grid.mjs +33 -2
  23. package/es/control/grid/grid/index.d.ts +1 -0
  24. package/es/control/kanban/kanban.css +1 -1
  25. package/es/control/kanban/kanban.mjs +2 -1
  26. package/es/control/toolbar/toolbar.mjs +13 -7
  27. package/es/control/wizard-panel/wizard-panel.mjs +8 -9
  28. package/es/editor/code/monaco-editor/monaco-editor.css +1 -1
  29. package/es/editor/code/monaco-editor/monaco-editor.d.ts +7 -0
  30. package/es/editor/code/monaco-editor/monaco-editor.mjs +179 -16
  31. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +16 -8
  32. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
  33. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +10 -3
  34. package/es/editor/text-box/input/input.d.ts +1 -0
  35. package/es/editor/text-box/input/input.mjs +9 -2
  36. package/es/ibiz-vue3.mjs +2 -0
  37. package/es/index.mjs +1 -0
  38. package/es/locale/en/index.d.ts +9 -1
  39. package/es/locale/en/index.mjs +10 -2
  40. package/es/locale/zh-CN/index.d.ts +9 -1
  41. package/es/locale/zh-CN/index.mjs +10 -2
  42. package/es/panel-component/panel-button/panel-button.controller.mjs +2 -0
  43. package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +13 -5
  44. package/es/util/open-view-util/open-view-util.mjs +2 -3
  45. package/es/view/403-view/403-view.css +1 -0
  46. package/es/view/403-view/403-view.d.ts +6 -0
  47. package/es/view/403-view/403-view.mjs +45 -0
  48. package/es/view/404-view/404-view.mjs +2 -2
  49. package/es/view/index.d.ts +1 -0
  50. package/es/view/index.mjs +1 -0
  51. package/es/view-engine/wizard-view-engine.mjs +2 -2
  52. package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +5 -2
  53. package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +1 -1
  54. package/es/web-app/util/unauthorized-handler/unauthorized-handler.mjs +3 -12
  55. package/lib/common/action-toolbar/action-toolbar.cjs +10 -2
  56. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +19 -5
  57. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +18 -4
  58. package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
  59. package/lib/control/dashboard/dashboard.cjs +2 -10
  60. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +3 -6
  61. package/lib/control/drbar/drbar.controller.cjs +2 -1
  62. package/lib/control/drtab/drtab.controller.cjs +2 -1
  63. package/lib/control/grid/grid/grid.cjs +33 -2
  64. package/lib/control/grid/grid/grid.css +1 -1
  65. package/lib/control/kanban/kanban.cjs +2 -1
  66. package/lib/control/kanban/kanban.css +1 -1
  67. package/lib/control/toolbar/toolbar.cjs +13 -7
  68. package/lib/control/wizard-panel/wizard-panel.cjs +8 -9
  69. package/lib/editor/code/monaco-editor/monaco-editor.cjs +178 -15
  70. package/lib/editor/code/monaco-editor/monaco-editor.css +1 -1
  71. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +16 -8
  72. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +10 -3
  73. package/lib/editor/text-box/input/input.cjs +9 -2
  74. package/lib/ibiz-vue3.cjs +2 -0
  75. package/lib/index.cjs +2 -0
  76. package/lib/locale/en/index.cjs +10 -2
  77. package/lib/locale/zh-CN/index.cjs +10 -2
  78. package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -0
  79. package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +13 -5
  80. package/lib/util/open-view-util/open-view-util.cjs +2 -3
  81. package/lib/view/403-view/403-view.cjs +47 -0
  82. package/lib/view/403-view/403-view.css +1 -0
  83. package/lib/view/404-view/404-view.cjs +2 -2
  84. package/lib/view/index.cjs +2 -0
  85. package/lib/view-engine/wizard-view-engine.cjs +2 -2
  86. package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +4 -1
  87. package/lib/web-app/util/unauthorized-handler/unauthorized-handler.cjs +3 -12
  88. package/package.json +7 -7
  89. package/dist/index-13Oh42A8.js +0 -1
  90. package/dist/index-QdhEqiEH.js +0 -4
  91. 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: true };
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.router.push({ path });
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\u9875\u9762\u4E0D\u5B58\u5728\uFF01")]), this.isTop ? vue.createVNode("div", {
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\u9875\u9762\u4E0D\u5B58\u5728\uFF0C\u8BF7"), vue.createVNode("a", {
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
  }
@@ -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", (_event) => {
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
- const result = await ibiz.confirm.warning({
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.5",
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.3",
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.5",
36
- "@ibiz-template/runtime": "0.7.5",
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.5",
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.21",
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.21",
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",
@@ -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:{}})}}}));