@ibiz-template/mob-vue3-components 0.0.12 → 0.0.13

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 (81) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +5 -5
  3. package/dist/index.system.min.js.map +1 -1
  4. package/es/control/app-menu/app-menu.d.ts +1 -1
  5. package/es/control/app-menu/app-menu.mjs +5 -3
  6. package/es/control/app-menu/index.d.ts +1 -1
  7. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +1 -1
  8. package/es/editor/date-picker/date-picker-editor.controller.d.ts +0 -8
  9. package/es/editor/date-picker/date-picker-editor.controller.mjs +0 -11
  10. package/es/editor/date-range/date-range-editor.controller.d.ts +0 -8
  11. package/es/editor/date-range/date-range-editor.controller.mjs +0 -20
  12. package/es/editor/span/span/span.d.ts +3 -0
  13. package/es/ibiz-vue3.d.ts +6 -0
  14. package/es/ibiz-vue3.mjs +75 -0
  15. package/es/index.d.ts +6 -10
  16. package/es/index.mjs +89 -135
  17. package/es/mob-app/App.css +1 -0
  18. package/es/mob-app/App.d.ts +11 -0
  19. package/es/mob-app/App.mjs +64 -0
  20. package/es/mob-app/attach-environment-config.d.ts +1 -0
  21. package/es/mob-app/attach-environment-config.mjs +22 -0
  22. package/es/mob-app/components/home-view/home-view.css +1 -0
  23. package/es/mob-app/components/home-view/home-view.d.ts +17 -0
  24. package/es/mob-app/components/home-view/home-view.mjs +38 -0
  25. package/es/mob-app/components/index.d.ts +3 -0
  26. package/es/mob-app/components/index.mjs +4 -0
  27. package/es/mob-app/components/router-shell/router-shell.d.ts +3867 -0
  28. package/es/mob-app/components/router-shell/router-shell.mjs +82 -0
  29. package/es/mob-app/create-vue-app.d.ts +12 -0
  30. package/es/mob-app/create-vue-app.mjs +38 -0
  31. package/es/mob-app/guard/auth-guard/auth-guard.d.ts +9 -0
  32. package/es/mob-app/guard/auth-guard/auth-guard.mjs +141 -0
  33. package/es/mob-app/guard/index.d.ts +1 -0
  34. package/es/mob-app/guard/index.mjs +3 -0
  35. package/es/mob-app/index.d.ts +1 -0
  36. package/es/mob-app/index.mjs +3 -0
  37. package/es/mob-app/main.d.ts +2 -0
  38. package/es/mob-app/main.mjs +60 -0
  39. package/es/mob-app/router/index.d.ts +21 -0
  40. package/es/mob-app/router/index.mjs +174 -0
  41. package/es/mob-app/util/index.d.ts +1 -0
  42. package/es/mob-app/util/index.mjs +3 -0
  43. package/es/mob-app/util/unauthorized-handler/unauthorized-handler.d.ts +46 -0
  44. package/es/mob-app/util/unauthorized-handler/unauthorized-handler.mjs +100 -0
  45. package/es/panel-component/index.mjs +2 -1
  46. package/es/util/open-view-util/open-view-util.d.ts +2 -1
  47. package/es/util/open-view-util/open-view-util.mjs +5 -2
  48. package/es/view-engine/mob-edit-view.engine.mjs +5 -1
  49. package/lib/control/app-menu/app-menu.cjs +5 -3
  50. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +1 -1
  51. package/lib/editor/date-picker/date-picker-editor.controller.cjs +0 -11
  52. package/lib/editor/date-range/date-range-editor.controller.cjs +0 -20
  53. package/lib/editor/upload/ibiz-image-select/ibiz-image-select.cjs +2 -2
  54. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +2 -2
  55. package/lib/ibiz-vue3.cjs +79 -0
  56. package/lib/index.cjs +177 -221
  57. package/lib/mob-app/App.cjs +68 -0
  58. package/lib/mob-app/App.css +1 -0
  59. package/lib/mob-app/attach-environment-config.cjs +24 -0
  60. package/lib/mob-app/components/home-view/home-view.cjs +40 -0
  61. package/lib/mob-app/components/home-view/home-view.css +1 -0
  62. package/lib/mob-app/components/index.cjs +9 -0
  63. package/lib/mob-app/components/router-shell/router-shell.cjs +84 -0
  64. package/lib/mob-app/create-vue-app.cjs +40 -0
  65. package/lib/mob-app/guard/auth-guard/auth-guard.cjs +143 -0
  66. package/lib/mob-app/guard/index.cjs +7 -0
  67. package/lib/mob-app/index.cjs +7 -0
  68. package/lib/mob-app/main.cjs +62 -0
  69. package/lib/mob-app/router/index.cjs +176 -0
  70. package/lib/mob-app/util/index.cjs +7 -0
  71. package/lib/mob-app/util/unauthorized-handler/unauthorized-handler.cjs +102 -0
  72. package/lib/panel-component/index.cjs +1 -0
  73. package/lib/util/confirm-util/confirm-util.cjs +5 -5
  74. package/lib/util/directive/loading.cjs +2 -2
  75. package/lib/util/loading-util/loading-util.cjs +2 -2
  76. package/lib/util/message-util/message-util.cjs +5 -5
  77. package/lib/util/modal-util/modal-util.cjs +6 -6
  78. package/lib/util/notification-util/notification-util.cjs +5 -5
  79. package/lib/util/open-view-util/open-view-util.cjs +5 -2
  80. package/lib/view-engine/mob-edit-view.engine.cjs +5 -1
  81. package/package.json +8 -7
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue3Util = require('@ibiz-template/vue3-util');
4
- var vant = require('vant');
4
+ var Vant = require('vant');
5
5
 
6
6
  "use strict";
7
7
  const INSTANCE_KEY = Symbol("vanLoading");
@@ -16,7 +16,7 @@ const createInstance = (el) => {
16
16
  overlayClass: ns.e("overlay")
17
17
  };
18
18
  el[INSTANCE_KEY] = {
19
- instance: vant.showLoadingToast(options)
19
+ instance: Vant.showLoadingToast(options)
20
20
  };
21
21
  };
22
22
  const loadingDirective = {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue3Util = require('@ibiz-template/vue3-util');
4
- var vant = require('vant');
4
+ var Vant = require('vant');
5
5
 
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
@@ -46,7 +46,7 @@ class LoadingUtil {
46
46
  show() {
47
47
  const ns = vue3Util.useNamespace("loading");
48
48
  if (this.count === 0) {
49
- this.loading = vant.showLoadingToast({
49
+ this.loading = Vant.showLoadingToast({
50
50
  message: "\u52A0\u8F7D\u4E2D...",
51
51
  forbidClick: true,
52
52
  className: ns.b(),
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var vant = require('vant');
3
+ var Vant = require('vant');
4
4
 
5
5
  "use strict";
6
6
  class MessageUtil {
7
7
  info(msg, duration, _closable) {
8
- vant.showNotify({
8
+ Vant.showNotify({
9
9
  message: msg,
10
10
  duration: duration != null ? duration * 1e3 : 1500,
11
11
  type: "primary"
12
12
  });
13
13
  }
14
14
  success(msg, duration, _closable) {
15
- vant.showNotify({
15
+ Vant.showNotify({
16
16
  message: msg,
17
17
  duration: duration != null ? duration * 1e3 : 1500,
18
18
  type: "success"
19
19
  });
20
20
  }
21
21
  warning(msg, duration, _closable) {
22
- vant.showNotify({
22
+ Vant.showNotify({
23
23
  message: msg,
24
24
  duration: duration != null ? duration * 1e3 : 1500,
25
25
  type: "warning"
26
26
  });
27
27
  }
28
28
  error(msg, duration, _closable) {
29
- vant.showNotify({
29
+ Vant.showNotify({
30
30
  message: msg,
31
31
  duration: duration != null ? duration * 1e3 : 1500,
32
32
  type: "danger"
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var vant = require('vant');
3
+ var Vant = require('vant');
4
4
 
5
5
  "use strict";
6
6
  class ModalUtil {
7
7
  async info(params) {
8
8
  const { confirmButtonText, cancelButtonText } = params;
9
- await vant.showDialog({
9
+ await Vant.showDialog({
10
10
  title: params.title,
11
11
  message: params.desc,
12
12
  confirmButtonText,
@@ -15,7 +15,7 @@ class ModalUtil {
15
15
  }
16
16
  async success(params) {
17
17
  const { confirmButtonText, cancelButtonText } = params;
18
- await vant.showDialog({
18
+ await Vant.showDialog({
19
19
  title: params.title,
20
20
  message: params.desc,
21
21
  confirmButtonColor: "#07c160",
@@ -25,7 +25,7 @@ class ModalUtil {
25
25
  }
26
26
  async warning(params) {
27
27
  const { confirmButtonText, cancelButtonText } = params;
28
- await vant.showDialog({
28
+ await Vant.showDialog({
29
29
  title: params.title,
30
30
  message: params.desc,
31
31
  confirmButtonColor: "#faab0c",
@@ -35,7 +35,7 @@ class ModalUtil {
35
35
  }
36
36
  async error(params) {
37
37
  const { confirmButtonText, cancelButtonText } = params;
38
- await vant.showDialog({
38
+ await Vant.showDialog({
39
39
  title: params.title,
40
40
  message: params.desc,
41
41
  theme: "round-button",
@@ -46,7 +46,7 @@ class ModalUtil {
46
46
  async confirm(params) {
47
47
  const { confirmButtonText, cancelButtonText } = params;
48
48
  return new Promise((resolve) => {
49
- vant.showConfirmDialog({
49
+ Vant.showConfirmDialog({
50
50
  title: params.title,
51
51
  message: params.desc,
52
52
  confirmButtonText,
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var vant = require('vant');
3
+ var Vant = require('vant');
4
4
 
5
5
  "use strict";
6
6
  class NotificationUtil {
7
7
  info(params) {
8
8
  const duration = params.duration ? params.duration * 1e3 : 4500;
9
- vant.showNotify({
9
+ Vant.showNotify({
10
10
  message: params.desc,
11
11
  type: "primary",
12
12
  duration
@@ -14,7 +14,7 @@ class NotificationUtil {
14
14
  }
15
15
  success(params) {
16
16
  const duration = params.duration ? params.duration * 1e3 : 4500;
17
- vant.showNotify({
17
+ Vant.showNotify({
18
18
  message: params.desc,
19
19
  type: "success",
20
20
  duration
@@ -22,7 +22,7 @@ class NotificationUtil {
22
22
  }
23
23
  warning(params) {
24
24
  const duration = params.duration ? params.duration * 1e3 : 4500;
25
- vant.showNotify({
25
+ Vant.showNotify({
26
26
  message: params.desc,
27
27
  type: "warning",
28
28
  duration
@@ -30,7 +30,7 @@ class NotificationUtil {
30
30
  }
31
31
  error(params) {
32
32
  const duration = params.duration ? params.duration * 1e3 : 4500;
33
- vant.showNotify({
33
+ Vant.showNotify({
34
34
  message: params.desc,
35
35
  type: "danger",
36
36
  duration
@@ -8,10 +8,13 @@ class OpenViewUtil {
8
8
  constructor(router) {
9
9
  this.router = router;
10
10
  }
11
+ rootByModal(_appViewId, _context, _params) {
12
+ throw new Error("Method not implemented.");
13
+ }
11
14
  push(path) {
12
15
  return vue3Util.routerCallback.open(this.router, path);
13
16
  }
14
- async root(appViewId, context, params) {
17
+ async root(appViewId, context, params, opts = {}) {
15
18
  const appView = await ibiz.hub.config.view.get(appViewId);
16
19
  const { path } = await vue3Util.generateRoutePath(
17
20
  appView,
@@ -19,7 +22,7 @@ class OpenViewUtil {
19
22
  context,
20
23
  params
21
24
  );
22
- return vue3Util.routerCallback.open(this.router, path);
25
+ return vue3Util.routerCallback.open(this.router, path, opts);
23
26
  }
24
27
  /**
25
28
  * 模态打开视图
@@ -159,13 +159,17 @@ class MobEditViewEngine extends runtime.ViewEngineBase {
159
159
  * @returns {*} {Promise<void>}
160
160
  */
161
161
  async wfStart() {
162
+ var _a, _b;
162
163
  await this.save();
163
164
  const app = ibiz.hub.getApp(this.view.context.srfappid);
164
165
  const entityService = await app.deService.getService(
165
166
  this.view.context,
166
167
  this.view.model.appDataEntityId
167
168
  );
168
- const res = await entityService.wf.getWFVersion();
169
+ const data = this.form.state.data;
170
+ const res = await entityService.wf.getWFVersion(
171
+ (_b = (_a = data.srfwftag) != null ? _a : this.view.params.srfwftag) != null ? _b : this.view.context.srfwftag
172
+ );
169
173
  if (res.data.length === 0) {
170
174
  throw new core.RuntimeError("\u5F53\u524D\u5DE5\u4F5C\u6D41\u7248\u672C\u4E0D\u5B58\u5728");
171
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/mob-vue3-components",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -24,12 +24,13 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@ibiz-template-package/vs-tree-ex": "^0.1.1",
27
- "@ibiz-template/core": "^0.5.2",
28
- "@ibiz-template/model-helper": "^0.5.2",
29
- "@ibiz-template/runtime": "^0.5.2",
30
- "@ibiz-template/theme": "^0.5.0",
31
- "@ibiz-template/vue3-util": "^0.5.2",
32
- "@ibiz/model-core": "^0.1.2",
27
+ "@ibiz-template/core": "^0.6.0",
28
+ "@ibiz-template/model-helper": "0.6.1-alpha.0",
29
+ "@ibiz-template/runtime": "0.6.1-alpha.0",
30
+ "@ibiz-template/theme": "^0.6.0",
31
+ "@ibiz-template/vue3-util": "0.6.1-alpha.0",
32
+ "@ibiz/model-core": "^0.1.11",
33
+ "@ibiz-template/mob-theme": "^0.2.12",
33
34
  "async-validator": "^4.2.5",
34
35
  "cherry-markdown": "^0.8.26",
35
36
  "dayjs": "^1.11.10",