@ibiz-template/vue3-components 0.7.41-alpha.15 → 0.7.41-alpha.17
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-AOFxMmyX.js +1 -0
- package/dist/index-swminiXb.js +1 -0
- package/dist/index-t1aZ8OJE.js +11 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-yDknWojV.js → wang-editor-Y8puaTx2.js} +1 -1
- package/dist/{xlsx-util-8l4wyK1s.js → xlsx-util-jYyM8alm.js} +1 -1
- package/es/common/index.mjs +2 -0
- package/es/common/kanben-setting/kanben-setting.css +1 -0
- package/es/common/kanben-setting/kanben-setting.d.ts +42 -0
- package/es/common/kanben-setting/kanben-setting.mjs +65 -0
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +25 -8
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.d.ts +8 -0
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +20 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +117 -22
- package/es/control/drbar/drbar.controller.mjs +2 -0
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +24 -0
- package/es/control/drtab/drtab.controller.mjs +36 -0
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +2 -0
- package/es/control/drtab/drtab.mjs +5 -2
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.d.ts +17 -2
- package/es/control/drtab/flow-drtab.mjs +189 -11
- package/es/control/drtab/index.d.ts +2 -0
- package/es/control/form/edit-form/edit-form.mjs +11 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +11 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +59 -5
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +6 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +4 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +11 -11
- package/es/control/gantt/gantt.mjs +1 -0
- package/es/control/grid/grid/grid-control.util.mjs +36 -14
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +8 -3
- package/es/control/kanban/index.d.ts +4 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.d.ts +4 -1
- package/es/control/kanban/kanban.mjs +66 -23
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.d.ts +2 -7
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +69 -12
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +97 -12
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +37 -30
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +47 -8
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/upload-editor.controller.d.ts +25 -0
- package/es/editor/upload/upload-editor.controller.mjs +43 -1
- package/es/editor/upload/use/use-iview-upload.mjs +9 -2
- package/es/locale/en/index.d.ts +14 -5
- package/es/locale/en/index.mjs +11 -3
- package/es/locale/zh-CN/index.d.ts +14 -5
- package/es/locale/zh-CN/index.mjs +11 -3
- package/es/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs +3377 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/common-extend-menu/common-extend-menu.mjs +20 -5
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.d.ts +1950 -1
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-menu-base.util.d.ts +53 -6
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-standard-menu/extend-standard-menu.css +1 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-standard-menu/extend-standard-menu.d.ts +2031 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-standard-menu/extend-standard-menu.mjs +278 -0
- package/es/panel-component/panel-button/panel-button.mjs +1 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/calendar-view.engine.d.ts +11 -1
- package/es/view-engine/calendar-view.engine.mjs +10 -0
- package/es/view-engine/chart-exp-view.engine.d.ts +6 -6
- package/es/view-engine/chart-exp-view.engine.mjs +6 -15
- package/es/view-engine/gantt-view.engine.d.ts +3 -3
- package/es/view-engine/gantt-view.engine.mjs +3 -46
- package/es/view-engine/login-view.engine.mjs +7 -0
- package/es/view-engine/tab-exp-view.engine.mjs +1 -1
- package/es/view-engine/tab-search-view.engine.mjs +4 -2
- package/es/view-engine/tree-view.engine.d.ts +12 -2
- package/es/view-engine/tree-view.engine.mjs +39 -11
- package/lib/common/index.cjs +2 -0
- package/lib/common/kanben-setting/kanben-setting.cjs +67 -0
- package/lib/common/kanben-setting/kanben-setting.css +1 -0
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +23 -6
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +20 -0
- package/lib/control/data-view/data-view.cjs +117 -22
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +2 -0
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +5 -2
- package/lib/control/drtab/drtab.controller.cjs +36 -0
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +188 -10
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/form/edit-form/edit-form.cjs +11 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +11 -7
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +58 -4
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +4 -0
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +11 -11
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/lib/control/gantt/gantt.cjs +1 -0
- package/lib/control/grid/grid/grid-control.util.cjs +36 -14
- package/lib/control/grid/grid/grid.cjs +8 -3
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/kanban/kanban.cjs +64 -21
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +67 -10
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/lib/control/list/list.cjs +97 -12
- package/lib/control/list/list.css +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +36 -29
- package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +47 -8
- package/lib/editor/upload/upload-editor.controller.cjs +43 -1
- package/lib/editor/upload/use/use-iview-upload.cjs +9 -2
- package/lib/locale/en/index.cjs +11 -3
- package/lib/locale/zh-CN/index.cjs +11 -3
- package/lib/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +3384 -0
- package/lib/panel-component/app-extend-menu/extend-menu-base/common-extend-menu/common-extend-menu.cjs +20 -5
- package/lib/panel-component/app-extend-menu/extend-menu-base/extend-standard-menu/extend-standard-menu.cjs +280 -0
- package/lib/panel-component/app-extend-menu/extend-menu-base/extend-standard-menu/extend-standard-menu.css +1 -0
- package/lib/panel-component/panel-button/panel-button.cjs +1 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/calendar-view.engine.cjs +10 -0
- package/lib/view-engine/chart-exp-view.engine.cjs +6 -15
- package/lib/view-engine/gantt-view.engine.cjs +2 -45
- package/lib/view-engine/login-view.engine.cjs +7 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +1 -1
- package/lib/view-engine/tab-search-view.engine.cjs +4 -2
- package/lib/view-engine/tree-view.engine.cjs +39 -11
- package/package.json +9 -7
- package/dist/index-1hn7qv2s.js +0 -4
- package/dist/index-EYFbyMUF.js +0 -1
- package/dist/index-kNUznzXY.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { isVNode, createVNode, resolveComponent, ref, computed, defineComponent } from 'vue';
|
|
2
|
+
import { showTitle } from '@ibiz-template/core';
|
|
3
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
4
|
+
import { createUUID } from 'qx-util';
|
|
5
|
+
import { getMenus, findMenuItem } from '../extend-menu-base.util.mjs';
|
|
6
|
+
import './extend-standard-menu.css';
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
const ellipsisSvg = () => {
|
|
13
|
+
return createVNode("ion-icon", {
|
|
14
|
+
"name": "ellipsis-horizontal"
|
|
15
|
+
}, null);
|
|
16
|
+
};
|
|
17
|
+
function renderMenuItem(_params) {
|
|
18
|
+
var _a, _b, _c, _d;
|
|
19
|
+
const {
|
|
20
|
+
isFirst,
|
|
21
|
+
menu,
|
|
22
|
+
collapse,
|
|
23
|
+
ns,
|
|
24
|
+
menuAlign,
|
|
25
|
+
menuItemsState
|
|
26
|
+
} = _params;
|
|
27
|
+
if (!menu.id || menuItemsState && !((_a = menuItemsState[menu.id]) == null ? void 0 : _a.visible)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (menu.itemType === "MENUITEM") {
|
|
31
|
+
let content;
|
|
32
|
+
if (!(isFirst && collapse)) {
|
|
33
|
+
content = [menu.sysImage ? createVNode(resolveComponent("iBizIcon"), {
|
|
34
|
+
"class": ns.e("icon"),
|
|
35
|
+
"icon": menu.sysImage
|
|
36
|
+
}, null) : null, createVNode("span", {
|
|
37
|
+
"class": ns.e("caption")
|
|
38
|
+
}, [menu.caption])];
|
|
39
|
+
} else {
|
|
40
|
+
content = [menu.sysImage ? createVNode(resolveComponent("iBizIcon"), {
|
|
41
|
+
"class": ns.e("icon"),
|
|
42
|
+
"icon": menu.sysImage
|
|
43
|
+
}, null) : createVNode("span", {
|
|
44
|
+
"class": ns.e("caption")
|
|
45
|
+
}, [(_b = menu.caption) == null ? void 0 : _b.slice(0, 1)])];
|
|
46
|
+
}
|
|
47
|
+
return !(isFirst && collapse) ? createVNode(resolveComponent("el-menu-item"), {
|
|
48
|
+
"class": [ns.e("item"), "".concat(((_c = menu.sysCss) == null ? void 0 : _c.cssName) || "")],
|
|
49
|
+
"index": menu.id,
|
|
50
|
+
"title": showTitle(menu.tooltip)
|
|
51
|
+
}, _isSlot(content) ? content : {
|
|
52
|
+
default: () => [content]
|
|
53
|
+
}) : createVNode(resolveComponent("el-tooltip"), {
|
|
54
|
+
"class": ns.b("tooltip"),
|
|
55
|
+
"content": menu.caption,
|
|
56
|
+
"placement": menuAlign === "horizontal" ? "bottom" : "left",
|
|
57
|
+
"theme": "light"
|
|
58
|
+
}, {
|
|
59
|
+
default: () => {
|
|
60
|
+
var _a2;
|
|
61
|
+
return [createVNode(resolveComponent("el-menu-item"), {
|
|
62
|
+
"class": [ns.e("item"), "".concat(((_a2 = menu.sysCss) == null ? void 0 : _a2.cssName) || "")],
|
|
63
|
+
"index": menu.id
|
|
64
|
+
}, _isSlot(content) ? content : {
|
|
65
|
+
default: () => [content]
|
|
66
|
+
})];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (menu.itemType === "SEPERATOR") {
|
|
71
|
+
const direction = menuAlign === "horizontal" && isFirst ? "vertical" : "horizontal";
|
|
72
|
+
return createVNode(resolveComponent("el-divider"), {
|
|
73
|
+
"direction": direction,
|
|
74
|
+
"class": ns.em("separator", direction),
|
|
75
|
+
"id": menu.id
|
|
76
|
+
}, null);
|
|
77
|
+
}
|
|
78
|
+
if (menu.itemType === "RAWITEM") {
|
|
79
|
+
return createVNode(resolveComponent("el-menu-item"), {
|
|
80
|
+
"index": menu.id,
|
|
81
|
+
"title": showTitle(menu.tooltip),
|
|
82
|
+
"class": [ns.e("rawitem"), "".concat(((_d = menu.sysCss) == null ? void 0 : _d.cssName) || "")]
|
|
83
|
+
}, {
|
|
84
|
+
default: () => [createVNode(resolveComponent("iBizRawItem"), {
|
|
85
|
+
"rawItem": menu
|
|
86
|
+
}, null)]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function renderSubmenu(_params) {
|
|
91
|
+
var _a, _b;
|
|
92
|
+
const {
|
|
93
|
+
isFirst,
|
|
94
|
+
menu,
|
|
95
|
+
collapse,
|
|
96
|
+
ns,
|
|
97
|
+
menuAlign,
|
|
98
|
+
menuItemsState
|
|
99
|
+
} = _params;
|
|
100
|
+
if (!menu.id || menuItemsState && !((_a = menuItemsState[menu.id]) == null ? void 0 : _a.visible)) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
return createVNode(resolveComponent("el-sub-menu"), {
|
|
104
|
+
"class": [ns.b("submenu"), "".concat(((_b = menu.sysCss) == null ? void 0 : _b.cssName) || "")],
|
|
105
|
+
"index": menu.id,
|
|
106
|
+
"teleported": true,
|
|
107
|
+
"popper-class": [ns.b("popup-container")]
|
|
108
|
+
}, {
|
|
109
|
+
default: () => menu.children && menu.children.map((item) => {
|
|
110
|
+
if (item.children && item.children) {
|
|
111
|
+
return renderSubmenu({
|
|
112
|
+
isFirst: false,
|
|
113
|
+
menu: item,
|
|
114
|
+
collapse,
|
|
115
|
+
ns,
|
|
116
|
+
menuAlign,
|
|
117
|
+
menuItemsState
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return renderMenuItem({
|
|
121
|
+
isFirst: false,
|
|
122
|
+
menu: item,
|
|
123
|
+
collapse,
|
|
124
|
+
ns,
|
|
125
|
+
menuAlign,
|
|
126
|
+
menuItemsState
|
|
127
|
+
});
|
|
128
|
+
}),
|
|
129
|
+
title: () => {
|
|
130
|
+
var _a2;
|
|
131
|
+
if (collapse) {
|
|
132
|
+
if (menu.sysImage) {
|
|
133
|
+
return createVNode(resolveComponent("iBizIcon"), {
|
|
134
|
+
"class": ns.e("icon"),
|
|
135
|
+
"icon": menu.sysImage
|
|
136
|
+
}, null);
|
|
137
|
+
}
|
|
138
|
+
return [isFirst ? (_a2 = menu.caption) == null ? void 0 : _a2.slice(0, 1) : menu.caption, isFirst ? null : createVNode("ion-icon", {
|
|
139
|
+
"name": "chevron-forward-outline"
|
|
140
|
+
}, null)];
|
|
141
|
+
}
|
|
142
|
+
return [createVNode(resolveComponent("iBizIcon"), {
|
|
143
|
+
"class": ns.e("icon"),
|
|
144
|
+
"icon": menu.sysImage
|
|
145
|
+
}, null), createVNode("span", {
|
|
146
|
+
"class": ns.e("caption")
|
|
147
|
+
}, [menu.caption])];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function renderMenuContent(_params) {
|
|
152
|
+
const {
|
|
153
|
+
refreshKey,
|
|
154
|
+
ns,
|
|
155
|
+
collapse,
|
|
156
|
+
menuAlign,
|
|
157
|
+
position,
|
|
158
|
+
menus,
|
|
159
|
+
menuItemsState,
|
|
160
|
+
handleMenuSelect
|
|
161
|
+
} = _params;
|
|
162
|
+
return createVNode("div", {
|
|
163
|
+
"class": [ns.e("content"), ns.is("collapse", collapse), ns.is(menuAlign, !!menuAlign), ns.is(position == null ? void 0 : position.toLowerCase(), !!position)]
|
|
164
|
+
}, [createVNode(resolveComponent("el-menu"), {
|
|
165
|
+
"key": refreshKey,
|
|
166
|
+
"popper-class": [ns.b("popper")],
|
|
167
|
+
"collapse": collapse,
|
|
168
|
+
"collapse-transition": false,
|
|
169
|
+
"onSelect": handleMenuSelect,
|
|
170
|
+
"theme": "light",
|
|
171
|
+
"mode": menuAlign,
|
|
172
|
+
"ellipsis-icon": () => ellipsisSvg(),
|
|
173
|
+
"ellipsis": menuAlign === "horizontal"
|
|
174
|
+
}, {
|
|
175
|
+
default: () => {
|
|
176
|
+
return menus.map((item) => {
|
|
177
|
+
if (item.children && item.children.length > 0) {
|
|
178
|
+
return renderSubmenu({
|
|
179
|
+
isFirst: true,
|
|
180
|
+
menu: item,
|
|
181
|
+
collapse,
|
|
182
|
+
ns,
|
|
183
|
+
menuAlign,
|
|
184
|
+
menuItemsState
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
return renderMenuItem({
|
|
188
|
+
isFirst: true,
|
|
189
|
+
menu: item,
|
|
190
|
+
collapse,
|
|
191
|
+
ns,
|
|
192
|
+
menuAlign,
|
|
193
|
+
menuItemsState
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
})]);
|
|
198
|
+
}
|
|
199
|
+
const ExtendStandardMenu = /* @__PURE__ */ defineComponent({
|
|
200
|
+
name: "IBizExtendStandardMenu",
|
|
201
|
+
props: {
|
|
202
|
+
items: {
|
|
203
|
+
type: Object,
|
|
204
|
+
required: true
|
|
205
|
+
},
|
|
206
|
+
menuItemsState: {
|
|
207
|
+
type: Object,
|
|
208
|
+
required: true
|
|
209
|
+
},
|
|
210
|
+
providers: {
|
|
211
|
+
type: Object,
|
|
212
|
+
required: true
|
|
213
|
+
},
|
|
214
|
+
position: {
|
|
215
|
+
type: String,
|
|
216
|
+
required: true
|
|
217
|
+
},
|
|
218
|
+
layoutMode: {
|
|
219
|
+
type: String,
|
|
220
|
+
required: true
|
|
221
|
+
},
|
|
222
|
+
layout: {
|
|
223
|
+
type: Object
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
emits: {
|
|
227
|
+
/**
|
|
228
|
+
* @description 项点击事件
|
|
229
|
+
*/
|
|
230
|
+
menuItemClick: (_item, _event) => true
|
|
231
|
+
},
|
|
232
|
+
setup(props, {
|
|
233
|
+
emit
|
|
234
|
+
}) {
|
|
235
|
+
const ns = useNamespace("extend-standard-menu");
|
|
236
|
+
const defaultMenuRef = ref();
|
|
237
|
+
const refreshKey = ref(createUUID());
|
|
238
|
+
const collapse = ref(false);
|
|
239
|
+
const menuAlign = computed(() => ["TOP", "BOTTOM"].includes(props.position) ? "horizontal" : "vertical");
|
|
240
|
+
const menus = ref(getMenus(props.items));
|
|
241
|
+
const handleMenuSelect = async (_id, _event) => {
|
|
242
|
+
const menuItem = findMenuItem(_id, props.items);
|
|
243
|
+
if (!(menuItem == null ? void 0 : menuItem.appFuncId)) {
|
|
244
|
+
ibiz.log.warn(ibiz.i18n.t("runtime.controller.control.menu.noConfigured"));
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
emit("menuItemClick", menuItem, _event);
|
|
248
|
+
};
|
|
249
|
+
return {
|
|
250
|
+
ns,
|
|
251
|
+
defaultMenuRef,
|
|
252
|
+
refreshKey,
|
|
253
|
+
collapse,
|
|
254
|
+
menuAlign,
|
|
255
|
+
menus,
|
|
256
|
+
handleMenuSelect
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
render() {
|
|
260
|
+
return createVNode("div", {
|
|
261
|
+
"ref": "defaultMenuRef",
|
|
262
|
+
"class": [this.ns.b(), this.ns.b(this.layoutMode.toLowerCase()), this.ns.is(this.position.toLowerCase(), true), this.ns.is(this.menuAlign, true), this.ns.is("collapse", this.collapse)]
|
|
263
|
+
}, [renderMenuContent({
|
|
264
|
+
isLayout: false,
|
|
265
|
+
position: this.position,
|
|
266
|
+
refreshKey: this.refreshKey,
|
|
267
|
+
ns: this.ns,
|
|
268
|
+
collapse: this.collapse,
|
|
269
|
+
menuAlign: this.menuAlign,
|
|
270
|
+
menus: this.menus,
|
|
271
|
+
menuLayout: this.layout,
|
|
272
|
+
menuItemsState: this.menuItemsState,
|
|
273
|
+
handleMenuSelect: this.handleMenuSelect
|
|
274
|
+
})]);
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
export { ExtendStandardMenu };
|
|
@@ -95,6 +95,7 @@ const PanelButton = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
}, [createVNode(resolveComponent("el-button"), {
|
|
96
96
|
"type": this.buttonType,
|
|
97
97
|
"text": this.isText,
|
|
98
|
+
"data-id": this.modelData.id,
|
|
98
99
|
"title": showTitle(this.tooltip),
|
|
99
100
|
"disabled": this.state.disabled,
|
|
100
101
|
"loading": this.state.loading,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { ViewController, ICalendarViewEvent, ICalendarViewState, MDViewEngine, EventBase } from '@ibiz-template/runtime';
|
|
1
|
+
import { ViewController, ICalendarViewEvent, ICalendarViewState, MDViewEngine, EventBase, IUIActionResult } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDECalendarView } from '@ibiz/model-core';
|
|
3
3
|
export declare class CalendarViewEngine extends MDViewEngine {
|
|
4
4
|
protected view: ViewController<IAppDECalendarView, ICalendarViewState, ICalendarViewEvent>;
|
|
5
5
|
protected onXDataActive(event: EventBase): Promise<void>;
|
|
6
6
|
onCreated(): Promise<void>;
|
|
7
|
+
protected openData(args: {
|
|
8
|
+
data: IData[];
|
|
9
|
+
event?: MouseEvent;
|
|
10
|
+
context?: IContext;
|
|
11
|
+
params?: IParams;
|
|
12
|
+
}): Promise<IUIActionResult>;
|
|
13
|
+
protected newData(args: {
|
|
14
|
+
data: IData[];
|
|
15
|
+
event?: MouseEvent;
|
|
16
|
+
}): Promise<IUIActionResult>;
|
|
7
17
|
}
|
|
@@ -13,6 +13,16 @@ class CalendarViewEngine extends MDViewEngine {
|
|
|
13
13
|
}
|
|
14
14
|
this.view.slotProps.calendar.mdctrlActiveMode = model.mdctrlActiveMode;
|
|
15
15
|
}
|
|
16
|
+
async openData(args) {
|
|
17
|
+
const { data, event } = args;
|
|
18
|
+
const result = await this.xdataControl.openData(data[0], event);
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
async newData(args) {
|
|
22
|
+
const { data, event } = args;
|
|
23
|
+
const result = await this.xdataControl.newData(data[0], event);
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
16
26
|
}
|
|
17
27
|
|
|
18
28
|
export { CalendarViewEngine };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ViewController,
|
|
1
|
+
import { ViewController, IChartExpViewEvent, IChartExpViewState } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEChartExplorerView } from '@ibiz/model-core';
|
|
3
|
-
|
|
3
|
+
import { ExpViewEngine } from './exp-view.engine';
|
|
4
|
+
export declare class ChartExpViewEngine extends ExpViewEngine {
|
|
4
5
|
/**
|
|
5
6
|
* 图表导航视图控制器
|
|
6
7
|
*
|
|
@@ -14,11 +15,10 @@ export declare class ChartExpViewEngine extends ViewEngineBase {
|
|
|
14
15
|
*/
|
|
15
16
|
protected view: ViewController<IAppDEChartExplorerView, IChartExpViewState, IChartExpViewEvent>;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
18
|
+
* @description 导航栏部件名称
|
|
19
19
|
* @readonly
|
|
20
|
+
* @type {string}
|
|
20
21
|
* @memberof ChartExpViewEngine
|
|
21
22
|
*/
|
|
22
|
-
get
|
|
23
|
-
onCreated(): Promise<void>;
|
|
23
|
+
get expBarName(): string;
|
|
24
24
|
}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpViewEngine } from './exp-view.engine.mjs';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
class ChartExpViewEngine extends
|
|
4
|
+
class ChartExpViewEngine extends ExpViewEngine {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* @description 导航栏部件名称
|
|
8
7
|
* @readonly
|
|
8
|
+
* @type {string}
|
|
9
9
|
* @memberof ChartExpViewEngine
|
|
10
10
|
*/
|
|
11
|
-
get
|
|
12
|
-
return
|
|
13
|
-
}
|
|
14
|
-
async onCreated() {
|
|
15
|
-
await super.onCreated();
|
|
16
|
-
const { childNames } = this.view;
|
|
17
|
-
childNames.push("chartexpbar");
|
|
18
|
-
if (!this.view.slotProps.chartexpbar) {
|
|
19
|
-
this.view.slotProps.chartexpbar = {};
|
|
20
|
-
}
|
|
21
|
-
this.view.slotProps.chartexpbar.srfnav = this.view.state.srfnav;
|
|
11
|
+
get expBarName() {
|
|
12
|
+
return "chartexpbar";
|
|
22
13
|
}
|
|
23
14
|
}
|
|
24
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewController, IGanttViewState, IGanttViewEvent, IGanttController, IApiGanttViewCall } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEGanttView } from '@ibiz/model-core';
|
|
3
|
-
|
|
3
|
+
import { TreeGridExViewEngine } from './tree-grid-ex-view.engine';
|
|
4
|
+
export declare class GanttViewEngine extends TreeGridExViewEngine {
|
|
4
5
|
protected view: ViewController<IAppDEGanttView, IGanttViewState, IGanttViewEvent>;
|
|
5
6
|
get gantt(): IGanttController;
|
|
6
7
|
call(key: keyof IApiGanttViewCall, args: any): Promise<IData | null | undefined>;
|
|
7
|
-
protected onXDataActive(event: EventBase): Promise<void>;
|
|
8
8
|
onCreated(): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SysUIActionTag } from '@ibiz-template/runtime';
|
|
2
|
+
import { TreeGridExViewEngine } from './tree-grid-ex-view.engine.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
-
class GanttViewEngine extends
|
|
5
|
+
class GanttViewEngine extends TreeGridExViewEngine {
|
|
6
6
|
get gantt() {
|
|
7
7
|
return this.view.getController("gantt");
|
|
8
8
|
}
|
|
@@ -23,51 +23,8 @@ class GanttViewEngine extends MDViewEngine {
|
|
|
23
23
|
this.gantt.saveAll();
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
|
-
if (key === SysUIActionTag.EXPAND) {
|
|
27
|
-
const { srfcollapsetag } = args.params || {};
|
|
28
|
-
let tag = srfcollapsetag || "";
|
|
29
|
-
if (!tag) {
|
|
30
|
-
const { selectedData } = this.gantt.state;
|
|
31
|
-
const selectedGroup = selectedData.filter((x) => !x._leaf);
|
|
32
|
-
if (selectedGroup.length > 0) {
|
|
33
|
-
tag = selectedGroup[0].srfnodeid;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (!tag) {
|
|
37
|
-
throw new RuntimeError(ibiz.i18n.t("viewEngine.noExpandTag"));
|
|
38
|
-
}
|
|
39
|
-
this.gantt.changeCollapse({ tag, expand: true });
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
if (key === SysUIActionTag.COLLAPSE) {
|
|
43
|
-
const { srfcollapsetag } = args.params || {};
|
|
44
|
-
let tag = srfcollapsetag || "";
|
|
45
|
-
if (!tag) {
|
|
46
|
-
const { selectedData } = this.gantt.state;
|
|
47
|
-
const selectedGroup = selectedData.filter((x) => !x._leaf);
|
|
48
|
-
if (selectedGroup.length > 0) {
|
|
49
|
-
tag = selectedGroup[0].srfnodeid;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (!tag) {
|
|
53
|
-
throw new RuntimeError(ibiz.i18n.t("viewEngine.noCollapseTag"));
|
|
54
|
-
}
|
|
55
|
-
this.gantt.changeCollapse({ tag, expand: false });
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
if (key === SysUIActionTag.EXPANDALL) {
|
|
59
|
-
this.gantt.changeCollapse({ expand: true });
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
if (key === SysUIActionTag.COLLAPSEALL) {
|
|
63
|
-
this.gantt.changeCollapse({ expand: false });
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
26
|
return super.call(key, args);
|
|
67
27
|
}
|
|
68
|
-
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
69
|
-
async onXDataActive(event) {
|
|
70
|
-
}
|
|
71
28
|
async onCreated() {
|
|
72
29
|
super.onCreated();
|
|
73
30
|
const { model } = this.view;
|
|
@@ -30,6 +30,13 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
32
|
};
|
|
33
|
+
const targetID = event.target.dataset.id;
|
|
34
|
+
if (targetID) {
|
|
35
|
+
const targetPanelItem = this.view.layoutPanel.findPanelItemByName(targetID);
|
|
36
|
+
if (targetPanelItem) {
|
|
37
|
+
args.data = [targetPanelItem.data];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
33
40
|
await this.login(args);
|
|
34
41
|
}
|
|
35
42
|
});
|
|
@@ -167,7 +167,7 @@ class TabExpViewEngine extends ViewEngineBase {
|
|
|
167
167
|
calcViewHeaderVisible() {
|
|
168
168
|
let showHeader = super.calcViewHeaderVisible();
|
|
169
169
|
const { tabLayout } = this.view.model;
|
|
170
|
-
if (tabLayout === void 0 ||
|
|
170
|
+
if (tabLayout === void 0 || ["TOP", "TOP_DROPDOWNLIST"].includes(tabLayout) && getControl(this.view.model, "tabexppanel")) {
|
|
171
171
|
showHeader = true;
|
|
172
172
|
}
|
|
173
173
|
return showHeader;
|
|
@@ -113,8 +113,10 @@ class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
this.searchBar
|
|
117
|
-
|
|
116
|
+
if (this.searchBar) {
|
|
117
|
+
this.searchBar.placeHolder = caption || "";
|
|
118
|
+
this.searchBar.state.quickSearchPlaceHolder = caption || "";
|
|
119
|
+
}
|
|
118
120
|
}
|
|
119
121
|
async call(key, args) {
|
|
120
122
|
if (key === SysUIActionTag.SEARCH) {
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import { ViewController, ITreeViewEvent, ITreeViewState, MDViewEngine,
|
|
1
|
+
import { ViewController, ITreeViewEvent, ITreeViewState, MDViewEngine, IApiTreeViewCall, IUIActionResult, ITreeController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDETreeView } from '@ibiz/model-core';
|
|
3
3
|
export declare class TreeViewEngine extends MDViewEngine {
|
|
4
4
|
protected view: ViewController<IAppDETreeView, ITreeViewState, ITreeViewEvent>;
|
|
5
|
-
get tree(): ITreeController;
|
|
6
5
|
onCreated(): Promise<void>;
|
|
6
|
+
get tree(): ITreeController;
|
|
7
7
|
call(key: keyof IApiTreeViewCall, args: any): Promise<IData | null | undefined>;
|
|
8
|
+
protected openData(args: {
|
|
9
|
+
data: IData[];
|
|
10
|
+
event?: MouseEvent;
|
|
11
|
+
context?: IContext;
|
|
12
|
+
params?: IParams;
|
|
13
|
+
}): Promise<IUIActionResult>;
|
|
14
|
+
protected newData(args: {
|
|
15
|
+
data: IData[];
|
|
16
|
+
event?: MouseEvent;
|
|
17
|
+
}): Promise<IUIActionResult>;
|
|
8
18
|
}
|
|
@@ -3,31 +3,37 @@ import { RuntimeError } from '@ibiz-template/core';
|
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
class TreeViewEngine extends MDViewEngine {
|
|
6
|
-
get tree() {
|
|
7
|
-
return this.view.getController("tree");
|
|
8
|
-
}
|
|
9
6
|
async onCreated() {
|
|
10
7
|
await super.onCreated();
|
|
11
8
|
if (!this.view.slotProps.tree) {
|
|
12
9
|
this.view.slotProps.tree = {};
|
|
13
10
|
}
|
|
14
11
|
}
|
|
12
|
+
get tree() {
|
|
13
|
+
return this.view.getController("tree");
|
|
14
|
+
}
|
|
15
15
|
async call(key, args) {
|
|
16
16
|
var _a;
|
|
17
17
|
if (key === SysUIActionTag.REFRESH_ALL) {
|
|
18
|
-
await this.
|
|
18
|
+
await this.xdataControl.refresh();
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
21
|
if (key === SysUIActionTag.REFRESH) {
|
|
22
22
|
if ((_a = args == null ? void 0 : args.data) == null ? void 0 : _a[0]) {
|
|
23
|
-
await this.
|
|
23
|
+
await this.xdataControl.refreshNodeChildren(
|
|
24
|
+
args.data[0],
|
|
25
|
+
false
|
|
26
|
+
);
|
|
24
27
|
} else {
|
|
25
|
-
await this.
|
|
28
|
+
await this.xdataControl.refresh();
|
|
26
29
|
}
|
|
27
30
|
return null;
|
|
28
31
|
}
|
|
29
32
|
if (key === SysUIActionTag.REFRESH_PARENT) {
|
|
30
|
-
await this.
|
|
33
|
+
await this.xdataControl.refreshNodeChildren(
|
|
34
|
+
args.data[0],
|
|
35
|
+
true
|
|
36
|
+
);
|
|
31
37
|
return null;
|
|
32
38
|
}
|
|
33
39
|
if (key === SysUIActionTag.EXPAND) {
|
|
@@ -40,7 +46,10 @@ class TreeViewEngine extends MDViewEngine {
|
|
|
40
46
|
if (!tag) {
|
|
41
47
|
throw new RuntimeError(ibiz.i18n.t("viewEngine.noExpandTag"));
|
|
42
48
|
}
|
|
43
|
-
this.
|
|
49
|
+
this.xdataControl.changeCollapse({
|
|
50
|
+
tag,
|
|
51
|
+
expand: true
|
|
52
|
+
});
|
|
44
53
|
return null;
|
|
45
54
|
}
|
|
46
55
|
if (key === SysUIActionTag.COLLAPSE) {
|
|
@@ -53,19 +62,38 @@ class TreeViewEngine extends MDViewEngine {
|
|
|
53
62
|
if (!tag) {
|
|
54
63
|
throw new RuntimeError(ibiz.i18n.t("viewEngine.noCollapseTag"));
|
|
55
64
|
}
|
|
56
|
-
this.
|
|
65
|
+
this.xdataControl.changeCollapse({
|
|
66
|
+
tag,
|
|
67
|
+
expand: false
|
|
68
|
+
});
|
|
57
69
|
return null;
|
|
58
70
|
}
|
|
59
71
|
if (key === SysUIActionTag.EXPANDALL) {
|
|
60
|
-
this.
|
|
72
|
+
this.xdataControl.changeCollapse({ expand: true });
|
|
61
73
|
return null;
|
|
62
74
|
}
|
|
63
75
|
if (key === SysUIActionTag.COLLAPSEALL) {
|
|
64
|
-
this.
|
|
76
|
+
this.xdataControl.changeCollapse({ expand: false });
|
|
65
77
|
return null;
|
|
66
78
|
}
|
|
67
79
|
return super.call(key, args);
|
|
68
80
|
}
|
|
81
|
+
async openData(args) {
|
|
82
|
+
const { data, event } = args;
|
|
83
|
+
const result = await this.xdataControl.openData(
|
|
84
|
+
data[0],
|
|
85
|
+
event
|
|
86
|
+
);
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
async newData(args) {
|
|
90
|
+
const { data, event } = args;
|
|
91
|
+
const result = await this.xdataControl.newData(
|
|
92
|
+
data[0],
|
|
93
|
+
event
|
|
94
|
+
);
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
69
97
|
}
|
|
70
98
|
|
|
71
99
|
export { TreeViewEngine };
|
package/lib/common/index.cjs
CHANGED
|
@@ -37,10 +37,12 @@ var ganttSetting = require('./gantt-setting/gantt-setting.cjs');
|
|
|
37
37
|
var navSplit = require('./nav-split/nav-split.cjs');
|
|
38
38
|
var cropping = require('./cropping/cropping.cjs');
|
|
39
39
|
var editorEmptyText = require('./editor-empty-text/editor-empty-text.cjs');
|
|
40
|
+
var kanbenSetting = require('./kanben-setting/kanben-setting.cjs');
|
|
40
41
|
|
|
41
42
|
"use strict";
|
|
42
43
|
const IBizCommonComponents = {
|
|
43
44
|
install: (v) => {
|
|
45
|
+
v.component(kanbenSetting.IBizKanbanSetting.name, kanbenSetting.IBizKanbanSetting);
|
|
44
46
|
v.component(editorEmptyText.IBizEditorEmptyText.name, editorEmptyText.IBizEditorEmptyText);
|
|
45
47
|
v.component(cropping.IBizCropping.name, cropping.IBizCropping);
|
|
46
48
|
v.component(vue3Util.IBizControlBase.name, vue3Util.IBizControlBase);
|