@ibiz-template/vue3-components 0.5.7-alpha.4 → 0.5.7-alpha.6

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 (102) hide show
  1. package/dist/index-CzVC8rhd.js +1 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/dist/{xlsx-util-kzUgnbtt.js → xlsx-util-TVsJdNUI.js} +1 -1
  5. package/es/common/grid-setting/grid-setting.css +1 -1
  6. package/es/common/grid-setting/grid-setting.mjs +23 -4
  7. package/es/control/calendar/calendar.mjs +1 -1
  8. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +236 -0
  9. package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +2 -0
  10. package/es/control/data-view/data-view.mjs +3 -2
  11. package/es/control/drtab/drtab.css +1 -1
  12. package/es/control/form/form-detail/form-button/form-button.mjs +2 -1
  13. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +2124 -0
  14. package/es/control/grid/grid/grid-control.util.mjs +4 -0
  15. package/es/control/search-bar/filter-tree/filter-tree.d.ts +45 -14
  16. package/es/control/search-bar/filter-tree/filter-tree.mjs +42 -21
  17. package/es/control/search-bar/search-bar.mjs +8 -2
  18. package/es/control/tab-exp-panel/tab-exp-panel.mjs +32 -1
  19. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
  20. package/es/editor/index.mjs +8 -0
  21. package/es/editor/span/span/span.d.ts +2 -0
  22. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +2 -2
  23. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.controller.d.ts +46 -0
  24. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.controller.mjs +93 -0
  25. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.css +1 -0
  26. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +81 -0
  27. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +187 -0
  28. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.provider.d.ts +17 -0
  29. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.provider.mjs +22 -0
  30. package/es/editor/user/ibiz-searchcond-edit/index.d.ts +3 -0
  31. package/es/editor/user/ibiz-searchcond-edit/index.mjs +5 -0
  32. package/es/editor/user/index.d.ts +1 -0
  33. package/es/editor/user/index.mjs +6 -0
  34. package/es/index.d.ts +0 -1
  35. package/es/index.mjs +0 -1
  36. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  37. package/es/panel-component/user-message/internal-message/internal-message-default/internal-message-default.css +1 -1
  38. package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.css +1 -1
  39. package/es/util/app-drawer/app-drawer-component.mjs +3 -2
  40. package/es/util/app-modal/app-modal-component.mjs +11 -2
  41. package/es/util/app-popover/app-popover-component.mjs +25 -2
  42. package/es/util/notification-util/notification-util.mjs +1 -0
  43. package/es/util/open-view-util/open-view-util.mjs +8 -1
  44. package/es/view-engine/report-view.engine.d.ts +19 -0
  45. package/es/view-engine/report-view.engine.mjs +37 -10
  46. package/es/view-engine/tab-exp-view.engine.mjs +3 -3
  47. package/lib/common/grid-setting/grid-setting.cjs +23 -4
  48. package/lib/common/grid-setting/grid-setting.css +1 -1
  49. package/lib/control/calendar/calendar.cjs +1 -1
  50. package/lib/control/data-view/data-view.cjs +3 -2
  51. package/lib/control/drtab/drtab.css +1 -1
  52. package/lib/control/form/form-detail/form-button/form-button.cjs +2 -1
  53. package/lib/control/grid/grid/grid-control.util.cjs +4 -0
  54. package/lib/control/search-bar/filter-tree/filter-tree.cjs +41 -20
  55. package/lib/control/search-bar/search-bar.cjs +8 -2
  56. package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
  57. package/lib/control/tab-exp-panel/tab-exp-panel.cjs +31 -0
  58. package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
  59. package/lib/editor/html/wang-editor/wang-editor.cjs +2 -2
  60. package/lib/editor/index.cjs +8 -0
  61. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +2 -2
  62. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +189 -0
  63. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.controller.cjs +95 -0
  64. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.css +1 -0
  65. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.provider.cjs +24 -0
  66. package/lib/editor/user/ibiz-searchcond-edit/index.cjs +11 -0
  67. package/lib/editor/user/index.cjs +12 -0
  68. package/lib/index.cjs +181 -183
  69. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  70. package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +2 -2
  71. package/lib/panel-component/user-message/internal-message/internal-message-default/internal-message-default.css +1 -1
  72. package/lib/panel-component/user-message/internal-message/internal-message-json/internal-message-json.css +1 -1
  73. package/lib/util/app-drawer/app-drawer-component.cjs +3 -2
  74. package/lib/util/app-modal/app-modal-component.cjs +11 -2
  75. package/lib/util/app-popover/app-popover-component.cjs +24 -1
  76. package/lib/util/confirm-util/confirm-util.cjs +5 -5
  77. package/lib/util/loading-util/loading-util.cjs +2 -2
  78. package/lib/util/message-util/message-util.cjs +5 -5
  79. package/lib/util/modal-util/modal-util.cjs +6 -6
  80. package/lib/util/notice-util/notice-util.cjs +3 -3
  81. package/lib/util/notification-util/notification-util.cjs +3 -2
  82. package/lib/util/open-view-util/open-view-util.cjs +8 -1
  83. package/lib/view-engine/report-view.engine.cjs +36 -9
  84. package/lib/view-engine/tab-exp-view.engine.cjs +2 -2
  85. package/package.json +6 -6
  86. package/dist/index-knHzHtox.js +0 -2
  87. package/es/devtool/devtool-action.css +0 -1
  88. package/es/devtool/devtool-action.d.ts +0 -26
  89. package/es/devtool/devtool-action.mjs +0 -219
  90. package/es/devtool/index.d.ts +0 -50
  91. package/es/devtool/index.mjs +0 -81
  92. package/es/devtool/interface/devtool-event.d.ts +0 -12
  93. package/es/devtool/interface/devtool-event.mjs +0 -1
  94. package/es/devtool/interface/devtool-view.d.ts +0 -15
  95. package/es/devtool/interface/devtool-view.mjs +0 -1
  96. package/es/node_modules/.pnpm/element-plus@2.4.2_vue@3.3.8/node_modules/element-plus/dist/locale/zh-cn.mjs +0 -131
  97. package/lib/devtool/devtool-action.cjs +0 -221
  98. package/lib/devtool/devtool-action.css +0 -1
  99. package/lib/devtool/index.cjs +0 -84
  100. package/lib/devtool/interface/devtool-event.cjs +0 -3
  101. package/lib/devtool/interface/devtool-view.cjs +0 -3
  102. package/lib/node_modules/.pnpm/element-plus@2.4.2_vue@3.3.8/node_modules/element-plus/dist/locale/zh-cn.cjs +0 -135
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@ibiz-template/core');
4
- var ElementPlus = require('element-plus');
4
+ var elementPlus = require('element-plus');
5
5
 
6
6
  "use strict";
7
7
  var __defProp = Object.defineProperty;
@@ -16,7 +16,7 @@ class ConfirmUtil {
16
16
  }
17
17
  async info(params) {
18
18
  return new Promise((resolve) => {
19
- ElementPlus.ElMessageBox.confirm(params.desc, params.title, {
19
+ elementPlus.ElMessageBox.confirm(params.desc, params.title, {
20
20
  customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("info")),
21
21
  type: "info",
22
22
  cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
@@ -27,7 +27,7 @@ class ConfirmUtil {
27
27
  }
28
28
  async success(params) {
29
29
  return new Promise((resolve) => {
30
- ElementPlus.ElMessageBox.confirm(params.desc, params.title, {
30
+ elementPlus.ElMessageBox.confirm(params.desc, params.title, {
31
31
  customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("success")),
32
32
  cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
33
33
  confirmButtonClass: "".concat(this.ns.b("ok")),
@@ -38,7 +38,7 @@ class ConfirmUtil {
38
38
  }
39
39
  async warning(params) {
40
40
  return new Promise((resolve) => {
41
- ElementPlus.ElMessageBox.confirm(params.desc, params.title, {
41
+ elementPlus.ElMessageBox.confirm(params.desc, params.title, {
42
42
  customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("warning")),
43
43
  cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
44
44
  confirmButtonClass: "".concat(this.ns.b("ok")),
@@ -49,7 +49,7 @@ class ConfirmUtil {
49
49
  }
50
50
  async error(params) {
51
51
  return new Promise((resolve) => {
52
- ElementPlus.ElMessageBox.confirm(params.desc, params.title, {
52
+ elementPlus.ElMessageBox.confirm(params.desc, params.title, {
53
53
  customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("error")),
54
54
  cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
55
55
  confirmButtonClass: "".concat(this.ns.b("ok")),
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ElementPlus = require('element-plus');
3
+ var elementPlus = require('element-plus');
4
4
 
5
5
  "use strict";
6
6
  var __defProp = Object.defineProperty;
@@ -44,7 +44,7 @@ class LoadingUtil {
44
44
  */
45
45
  show() {
46
46
  if (this.count === 0) {
47
- this.loading = ElementPlus.ElLoading.service({ lock: true, fullscreen: true });
47
+ this.loading = elementPlus.ElLoading.service({ lock: true, fullscreen: true });
48
48
  }
49
49
  this.count += 1;
50
50
  }
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var ElementPlus = require('element-plus');
3
+ var elementPlus = require('element-plus');
4
4
 
5
5
  "use strict";
6
6
  class MessageUtil {
7
7
  info(msg, duration, closable) {
8
- ElementPlus.ElMessage.info({
8
+ elementPlus.ElMessage.info({
9
9
  message: msg,
10
10
  duration: duration ? duration * 1e3 : duration,
11
11
  showClose: closable
12
12
  });
13
13
  }
14
14
  success(msg, duration, closable) {
15
- ElementPlus.ElMessage.success({
15
+ elementPlus.ElMessage.success({
16
16
  message: msg,
17
17
  duration: duration ? duration * 1e3 : duration,
18
18
  showClose: closable
19
19
  });
20
20
  }
21
21
  warning(msg, duration, closable) {
22
- ElementPlus.ElMessage.warning({
22
+ elementPlus.ElMessage.warning({
23
23
  message: msg,
24
24
  duration: duration ? duration * 1e3 : duration,
25
25
  showClose: closable
26
26
  });
27
27
  }
28
28
  error(msg, duration, closable) {
29
- ElementPlus.ElMessage.error({
29
+ elementPlus.ElMessage.error({
30
30
  message: msg,
31
31
  duration: duration ? duration * 1e3 : duration,
32
32
  showClose: closable
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var ElementPlus = require('element-plus');
3
+ var elementPlus = require('element-plus');
4
4
 
5
5
  "use strict";
6
6
  class ModalUtil {
7
7
  async info(params) {
8
- await ElementPlus.ElMessageBox.alert(params.desc, params.title, { type: "info" });
8
+ await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "info" });
9
9
  }
10
10
  async success(params) {
11
- await ElementPlus.ElMessageBox.alert(params.desc, params.title, { type: "success" });
11
+ await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "success" });
12
12
  }
13
13
  async warning(params) {
14
- await ElementPlus.ElMessageBox.alert(params.desc, params.title, { type: "warning" });
14
+ await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "warning" });
15
15
  }
16
16
  async error(params) {
17
- await ElementPlus.ElMessageBox.alert(params.desc, params.title, { type: "error" });
17
+ await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "error" });
18
18
  }
19
19
  async confirm(params) {
20
20
  return new Promise((resolve) => {
21
- ElementPlus.ElMessageBox.confirm(params.desc, params.title, params).then(() => resolve(true)).catch(() => resolve(false));
21
+ elementPlus.ElMessageBox.confirm(params.desc, params.title, params).then(() => resolve(true)).catch(() => resolve(false));
22
22
  });
23
23
  }
24
24
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var runtime = require('@ibiz-template/runtime');
4
- var ElementPlus = require('element-plus');
4
+ var elementPlus = require('element-plus');
5
5
  var vue = require('vue');
6
6
  var vue3Util = require('@ibiz-template/vue3-util');
7
7
  require('../../common/index.cjs');
@@ -22,7 +22,7 @@ class NoticeUtil {
22
22
  const ns = vue3Util.useNamespace("async-action-notice");
23
23
  const porvider = await runtime.getAsyncActionProvider(asyncAction);
24
24
  if (porvider.render) {
25
- const ins = ElementPlus.ElNotification({
25
+ const ins = elementPlus.ElNotification({
26
26
  customClass: ns.b(),
27
27
  message: porvider.render({
28
28
  action: asyncAction,
@@ -38,7 +38,7 @@ class NoticeUtil {
38
38
  showDoingNotice(info) {
39
39
  if (!this.doingNotice) {
40
40
  const reactiveInfo = vue.reactive(info);
41
- const ins = ElementPlus.ElNotification({
41
+ const ins = elementPlus.ElNotification({
42
42
  message: vue.h(doingNotice.DoingNotice, {
43
43
  info: reactiveInfo
44
44
  }),
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ElementPlus = require('element-plus');
3
+ var elementPlus = require('element-plus');
4
4
 
5
5
  "use strict";
6
6
  var __defProp = Object.defineProperty;
@@ -51,10 +51,11 @@ class NotificationUtil {
51
51
  */
52
52
  handleNotice(params, noticeType) {
53
53
  const duration = params.duration ? params.duration * 1e3 : 4500;
54
- ElementPlus.ElNotification({
54
+ elementPlus.ElNotification({
55
55
  title: params.title,
56
56
  message: params.desc,
57
57
  type: noticeType,
58
+ position: params.position || "top-right",
58
59
  duration
59
60
  });
60
61
  }
@@ -59,6 +59,13 @@ class OpenViewUtil {
59
59
  }
60
60
  async popover(appViewId, event, context, params, options = {}) {
61
61
  const appView = await ibiz.hub.config.view.get(appViewId);
62
+ const opts = {
63
+ width: appView.width,
64
+ height: appView.height,
65
+ autoClose: true,
66
+ placement: "bottom",
67
+ ...options
68
+ };
62
69
  return vue3Util.openViewPopover(
63
70
  event,
64
71
  {
@@ -66,7 +73,7 @@ class OpenViewUtil {
66
73
  params,
67
74
  viewId: appView.id
68
75
  },
69
- { autoClose: true, placement: "bottom", ...options }
76
+ opts
70
77
  );
71
78
  }
72
79
  /**
@@ -151,16 +151,43 @@ class ReportViewEngine extends runtime.ViewEngineBase {
151
151
  * @memberof ReportViewEngine
152
152
  */
153
153
  calcViewHeaderVisible() {
154
- let showHeader = super.calcViewHeaderVisible();
155
- if (!this.searchBar || !this.searchBar.state.visible) {
156
- const controller = this.viewLayoutPanel.panelItems.view_searchbar;
157
- if (controller) {
158
- controller.state.visible = false;
159
- }
160
- } else {
161
- showHeader = true;
154
+ const showHeader = super.calcViewHeaderVisible();
155
+ const visible = this.calcViewSearchBarVisible();
156
+ return visible || showHeader;
157
+ }
158
+ /**
159
+ * 计算搜索栏显示
160
+ *
161
+ * @author zk
162
+ * @date 2024-01-29 05:01:36
163
+ * @protected
164
+ * @return {*} {boolean}
165
+ * @memberof MDViewEngine
166
+ */
167
+ calcViewSearchBarVisible() {
168
+ const { model } = this.view;
169
+ const has = this.isExistAndInLayout("searchbar");
170
+ if (!has) {
171
+ return has;
172
+ }
173
+ const searchBar = runtime.getControl(model, "searchbar");
174
+ const visible = !!(searchBar.enableQuickSearch || searchBar.enableGroup || searchBar.enableFilter === true);
175
+ return visible;
176
+ }
177
+ /**
178
+ * 计算移除的模型名称
179
+ *
180
+ * @author zk
181
+ * @date 2024-01-29 03:01:42
182
+ * @return {*} {string[]}
183
+ * @memberof MDViewEngine
184
+ */
185
+ calcRemoveLayoutModel() {
186
+ const names = super.calcRemoveLayoutModel();
187
+ if (!this.calcViewSearchBarVisible()) {
188
+ names.push("view_searchbar");
162
189
  }
163
- return showHeader;
190
+ return names;
164
191
  }
165
192
  /**
166
193
  * 切换搜索表单的显示与否
@@ -22,6 +22,7 @@ class TabExpViewEngine extends runtime.ViewEngineBase {
22
22
  */
23
23
  async onCreated() {
24
24
  var _a;
25
+ this.preprocessTabExpModelLayout();
25
26
  await super.onCreated();
26
27
  const { childNames, model } = this.view;
27
28
  childNames.push("tabexppanel");
@@ -33,7 +34,6 @@ class TabExpViewEngine extends runtime.ViewEngineBase {
33
34
  (item) => item.id === "srfdefaultnav"
34
35
  )) == null ? void 0 : _a.value;
35
36
  this.view.slotProps.tabexppanel.defaultTabName = this.view.state.srfnav || srfdefaultnav;
36
- this.preprocessTabExpModelLayout();
37
37
  }
38
38
  async onMounted() {
39
39
  await super.onMounted();
@@ -144,7 +144,7 @@ class TabExpViewEngine extends runtime.ViewEngineBase {
144
144
  calcViewHeaderVisible() {
145
145
  let showHeader = super.calcViewHeaderVisible();
146
146
  const { tabLayout } = this.view.model;
147
- if ((tabLayout === void 0 || tabLayout === "TOP") && this.tabExpPanel) {
147
+ if (tabLayout === void 0 || tabLayout === "TOP" && runtime.getControl(this.view.model, "tabexppanel")) {
148
148
  showHeader = true;
149
149
  }
150
150
  return showHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.5.7-alpha.4",
3
+ "version": "0.5.7-alpha.6",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -27,12 +27,12 @@
27
27
  "@floating-ui/dom": "^1.5.3",
28
28
  "@ibiz-template-plugin/ai-chat": "^0.0.1",
29
29
  "@ibiz-template-plugin/gantt": "0.1.1",
30
- "@ibiz-template/core": "^0.5.7-alpha.4",
31
- "@ibiz-template/model-helper": "^0.5.7-alpha.4",
32
- "@ibiz-template/runtime": "^0.5.7-alpha.4",
30
+ "@ibiz-template/core": "^0.5.7-alpha.6",
31
+ "@ibiz-template/model-helper": "^0.5.7-alpha.6",
32
+ "@ibiz-template/runtime": "^0.5.7-alpha.6",
33
33
  "@ibiz-template/theme": "^0.5.0",
34
- "@ibiz-template/vue3-util": "^0.5.7-alpha.4",
35
- "@ibiz/model-core": "^0.1.8",
34
+ "@ibiz-template/vue3-util": "^0.5.7-alpha.6",
35
+ "@ibiz/model-core": "^0.1.9",
36
36
  "@imengyu/vue3-context-menu": "^1.3.5",
37
37
  "@monaco-editor/loader": "^1.4.0",
38
38
  "@wangeditor/editor": "^5.1.23",