@ibiz-template/vue3-components 0.5.7-alpha.5 → 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.
- package/dist/index-CzVC8rhd.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-74o5wGKy.js → xlsx-util-TVsJdNUI.js} +1 -1
- package/es/common/grid-setting/grid-setting.css +1 -1
- package/es/common/grid-setting/grid-setting.mjs +23 -4
- package/es/control/calendar/calendar.mjs +1 -1
- package/es/control/data-view/data-view.mjs +3 -2
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +32 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.mjs +0 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/util/app-drawer/app-drawer-component.mjs +3 -2
- package/es/util/app-modal/app-modal-component.mjs +11 -2
- package/es/util/app-popover/app-popover-component.mjs +25 -2
- package/es/util/notification-util/notification-util.mjs +1 -0
- package/es/util/open-view-util/open-view-util.mjs +8 -1
- package/es/view-engine/report-view.engine.d.ts +19 -0
- package/es/view-engine/report-view.engine.mjs +37 -10
- package/es/view-engine/tab-exp-view.engine.mjs +3 -3
- package/lib/common/grid-setting/grid-setting.cjs +23 -4
- package/lib/common/grid-setting/grid-setting.css +1 -1
- package/lib/control/calendar/calendar.cjs +1 -1
- package/lib/control/data-view/data-view.cjs +3 -2
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +31 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +2 -2
- package/lib/index.cjs +181 -183
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +2 -2
- package/lib/util/app-drawer/app-drawer-component.cjs +3 -2
- package/lib/util/app-modal/app-modal-component.cjs +11 -2
- package/lib/util/app-popover/app-popover-component.cjs +24 -1
- package/lib/util/confirm-util/confirm-util.cjs +5 -5
- package/lib/util/loading-util/loading-util.cjs +2 -2
- package/lib/util/message-util/message-util.cjs +5 -5
- package/lib/util/modal-util/modal-util.cjs +6 -6
- package/lib/util/notice-util/notice-util.cjs +3 -3
- package/lib/util/notification-util/notification-util.cjs +3 -2
- package/lib/util/open-view-util/open-view-util.cjs +8 -1
- package/lib/view-engine/report-view.engine.cjs +36 -9
- package/lib/view-engine/tab-exp-view.engine.cjs +2 -2
- package/package.json +5 -5
- package/dist/index--KqYDzjn.js +0 -2
- package/es/devtool/devtool-action.css +0 -1
- package/es/devtool/devtool-action.d.ts +0 -26
- package/es/devtool/devtool-action.mjs +0 -219
- package/es/devtool/index.d.ts +0 -50
- package/es/devtool/index.mjs +0 -81
- package/es/devtool/interface/devtool-event.d.ts +0 -12
- package/es/devtool/interface/devtool-event.mjs +0 -1
- package/es/devtool/interface/devtool-view.d.ts +0 -15
- package/es/devtool/interface/devtool-view.mjs +0 -1
- 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
- package/lib/devtool/devtool-action.cjs +0 -221
- package/lib/devtool/devtool-action.css +0 -1
- package/lib/devtool/index.cjs +0 -84
- package/lib/devtool/interface/devtool-event.cjs +0 -3
- package/lib/devtool/interface/devtool-view.cjs +0 -3
- 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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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 =
|
|
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
|
|
3
|
+
var elementPlus = require('element-plus');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
6
|
class MessageUtil {
|
|
7
7
|
info(msg, duration, closable) {
|
|
8
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
3
|
+
var elementPlus = require('element-plus');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
6
|
class ModalUtil {
|
|
7
7
|
async info(params) {
|
|
8
|
-
await
|
|
8
|
+
await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "info" });
|
|
9
9
|
}
|
|
10
10
|
async success(params) {
|
|
11
|
-
await
|
|
11
|
+
await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "success" });
|
|
12
12
|
}
|
|
13
13
|
async warning(params) {
|
|
14
|
-
await
|
|
14
|
+
await elementPlus.ElMessageBox.alert(params.desc, params.title, { type: "warning" });
|
|
15
15
|
}
|
|
16
16
|
async error(params) {
|
|
17
|
-
await
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
|
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 (
|
|
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.
|
|
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,11 +27,11 @@
|
|
|
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.
|
|
31
|
-
"@ibiz-template/model-helper": "^0.5.7-alpha.
|
|
32
|
-
"@ibiz-template/runtime": "^0.5.7-alpha.
|
|
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.
|
|
34
|
+
"@ibiz-template/vue3-util": "^0.5.7-alpha.6",
|
|
35
35
|
"@ibiz/model-core": "^0.1.9",
|
|
36
36
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
37
37
|
"@monaco-editor/loader": "^1.4.0",
|