evui 3.5.0-rc.1 → 3.5.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.
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/common/utils.bignumber.js +23 -0
- package/dist/common/utils.debounce.js +66 -0
- package/dist/common/utils.js +64 -0
- package/dist/common/utils.throttle.js +15 -0
- package/dist/components/button/Button.vue.js +65 -0
- package/dist/components/button/index.js +7 -0
- package/dist/components/buttonGroup/ButtonGroup.vue.js +14 -0
- package/dist/components/buttonGroup/index.js +7 -0
- package/dist/components/calendar/Calendar.vue.js +299 -0
- package/dist/components/calendar/index.js +7 -0
- package/dist/components/calendar/uses.js +579 -0
- package/dist/components/chart/Chart.vue.js +261 -0
- package/dist/components/chart/ChartToolbar.vue.js +32 -0
- package/dist/components/chart/chart.core.js +738 -0
- package/dist/components/chart/chartZoom.core.js +221 -0
- package/dist/components/chart/element/element.bar.js +358 -0
- package/dist/components/chart/element/element.bar.time.js +55 -0
- package/dist/components/chart/element/element.heatmap.js +403 -0
- package/dist/components/chart/element/element.line.js +292 -0
- package/dist/components/chart/element/element.pie.js +73 -0
- package/dist/components/chart/element/element.scatter.js +209 -0
- package/dist/components/chart/element/element.tip.js +312 -0
- package/dist/components/chart/helpers/helpers.canvas.js +141 -0
- package/dist/components/chart/helpers/helpers.constant.js +253 -0
- package/dist/components/chart/helpers/helpers.util.js +265 -0
- package/dist/components/chart/index.js +7 -0
- package/dist/components/chart/model/index.js +6 -0
- package/dist/components/chart/model/model.series.js +82 -0
- package/dist/components/chart/model/model.store.js +650 -0
- package/dist/components/chart/plugins/plugins.interaction.js +823 -0
- package/dist/components/chart/plugins/plugins.legend.gradient.js +281 -0
- package/dist/components/chart/plugins/plugins.legend.js +665 -0
- package/dist/components/chart/plugins/plugins.pie.js +86 -0
- package/dist/components/chart/plugins/plugins.scrollbar.js +345 -0
- package/dist/components/chart/plugins/plugins.title.js +43 -0
- package/dist/components/chart/plugins/plugins.tooltip.js +508 -0
- package/dist/components/chart/scale/scale.js +492 -0
- package/dist/components/chart/scale/scale.linear.js +248 -0
- package/dist/components/chart/scale/scale.logarithmic.js +82 -0
- package/dist/components/chart/scale/scale.step.js +227 -0
- package/dist/components/chart/scale/scale.time.category.js +148 -0
- package/dist/components/chart/scale/scale.time.js +95 -0
- package/dist/components/chart/uses.js +479 -0
- package/dist/components/chartBrush/ChartBrush.vue.js +198 -0
- package/dist/components/chartBrush/chartBrush.core.js +265 -0
- package/dist/components/chartBrush/index.js +7 -0
- package/dist/components/chartBrush/uses.js +18 -0
- package/dist/components/chartGroup/ChartGroup.vue.js +128 -0
- package/dist/components/chartGroup/index.js +7 -0
- package/dist/components/chartGroup/uses.js +47 -0
- package/dist/components/checkbox/Checkbox.vue.js +99 -0
- package/dist/components/checkbox/index.js +7 -0
- package/dist/components/checkboxGroup/CheckboxGroup.vue.js +40 -0
- package/dist/components/checkboxGroup/index.js +7 -0
- package/dist/components/contextMenu/ContextMenu.vue.js +70 -0
- package/dist/components/contextMenu/MenuList.vue.js +105 -0
- package/dist/components/contextMenu/index.js +7 -0
- package/dist/components/contextMenu/uses.js +79 -0
- package/dist/components/datePicker/DatePicker.vue.js +310 -0
- package/dist/components/datePicker/index.js +7 -0
- package/dist/components/datePicker/uses.js +190 -0
- package/dist/components/grid/Grid.vue.js +1261 -0
- package/dist/components/grid/GridColumnSetting.vue.js +212 -0
- package/dist/components/grid/GridFilterSetting.vue.js +222 -0
- package/dist/components/grid/GridPagination.vue.js +69 -0
- package/dist/components/grid/GridSummary.vue.js +186 -0
- package/dist/components/grid/GridToolbar.vue.js +15 -0
- package/dist/components/grid/icon/icon-option-button.vue.js +39 -0
- package/dist/components/grid/icon/icon-sort-button.vue.js +56 -0
- package/dist/components/grid/index.js +7 -0
- package/dist/components/grid/uses.js +697 -0
- package/dist/components/icon/Icon.vue.js +50 -0
- package/dist/components/icon/index.js +8 -0
- package/dist/components/inputNumber/InputNumber.vue.js +112 -0
- package/dist/components/inputNumber/index.js +7 -0
- package/dist/components/inputNumber/uses.js +76 -0
- package/dist/components/loading/Loading.vue.js +78 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/menu/Menu.vue.js +66 -0
- package/dist/components/menu/MenuItem.vue.js +125 -0
- package/dist/components/menu/index.js +7 -0
- package/dist/components/message/Message.vue.js +122 -0
- package/dist/components/message/index.js +16 -0
- package/dist/components/messageBox/MessageBox.vue.js +216 -0
- package/dist/components/messageBox/index.js +13 -0
- package/dist/components/notification/Notification.vue.js +140 -0
- package/dist/components/notification/index.js +23 -0
- package/dist/components/pagination/Pagination.vue.js +215 -0
- package/dist/components/pagination/index.js +7 -0
- package/dist/components/pagination/pageButton.vue.js +35 -0
- package/dist/components/progress/Progress.vue.js +88 -0
- package/dist/components/progress/index.js +7 -0
- package/dist/components/radio/Radio.vue.js +75 -0
- package/dist/components/radio/index.js +7 -0
- package/dist/components/radioGroup/RadioGroup.vue.js +37 -0
- package/dist/components/radioGroup/index.js +7 -0
- package/dist/components/scheduler/Scheduler.vue.js +128 -0
- package/dist/components/scheduler/index.js +7 -0
- package/dist/components/scheduler/uses.js +73 -0
- package/dist/components/select/Select.vue.js +381 -0
- package/dist/components/select/index.js +7 -0
- package/dist/components/select/uses.js +147 -0
- package/dist/components/slider/Slider.vue.js +243 -0
- package/dist/components/slider/index.js +7 -0
- package/dist/components/slider/uses.js +188 -0
- package/dist/components/tabPanel/TabPanel.vue.js +39 -0
- package/dist/components/tabPanel/index.js +7 -0
- package/dist/components/tabs/Tabs.vue.js +220 -0
- package/dist/components/tabs/index.js +7 -0
- package/dist/components/textField/TextField.vue.js +209 -0
- package/dist/components/textField/index.js +7 -0
- package/dist/components/timePicker/TimePicker.vue.js +227 -0
- package/dist/components/timePicker/index.js +7 -0
- package/dist/components/toggle/Toggle.vue.js +66 -0
- package/dist/components/toggle/index.js +7 -0
- package/dist/components/tree/Tree.vue.js +220 -0
- package/dist/components/tree/TreeNode.vue.js +146 -0
- package/dist/components/tree/index.js +7 -0
- package/dist/components/treeGrid/TreeGrid.vue.js +898 -0
- package/dist/components/treeGrid/TreeGridNode.vue.js +274 -0
- package/dist/components/treeGrid/TreeGridToolbar.vue.js +15 -0
- package/dist/components/treeGrid/index.js +7 -0
- package/dist/components/treeGrid/uses.js +497 -0
- package/dist/components/window/Window.vue.js +211 -0
- package/dist/components/window/index.js +7 -0
- package/dist/components/window/uses.js +345 -0
- package/dist/directives/clickoutside.js +47 -0
- package/dist/main.js +142 -0
- package/dist/package.json.js +4 -0
- package/dist/resolver.js +17 -0
- package/dist/style.css +1 -1
- package/package.json +56 -23
- package/dist/index.js +0 -21754
- package/dist/index.umd.cjs +0 -28
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { computed as u, resolveComponent as v, openBlock as i, createElementBlock as r, normalizeClass as x, normalizeStyle as g, createVNode as F, createCommentVNode as s, Fragment as S, renderList as E, createElementVNode as y, createBlock as N, withModifiers as I, renderSlot as V } from "vue";
|
|
2
|
+
import H from "../grid/icon/icon-option-button.vue.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import R from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const O = {
|
|
6
|
+
name: "TreeGridNode",
|
|
7
|
+
components: { GridOptionButton: H },
|
|
8
|
+
props: {
|
|
9
|
+
dataIndex: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 0
|
|
12
|
+
},
|
|
13
|
+
nodeData: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => ({})
|
|
16
|
+
},
|
|
17
|
+
selectedData: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({})
|
|
20
|
+
},
|
|
21
|
+
useCheckbox: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
orderedColumns: {
|
|
26
|
+
type: [Array],
|
|
27
|
+
default: () => []
|
|
28
|
+
},
|
|
29
|
+
expandIcon: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
collapseIcon: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
parentIcon: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ""
|
|
40
|
+
},
|
|
41
|
+
childIcon: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
customContextMenu: {
|
|
46
|
+
type: [Array],
|
|
47
|
+
default: () => []
|
|
48
|
+
},
|
|
49
|
+
menuRef: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: null
|
|
52
|
+
},
|
|
53
|
+
rowHeight: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: 35
|
|
56
|
+
},
|
|
57
|
+
minWidth: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 40
|
|
60
|
+
},
|
|
61
|
+
borderStyle: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: ""
|
|
64
|
+
},
|
|
65
|
+
highlightIndex: {
|
|
66
|
+
type: Number,
|
|
67
|
+
default: -1
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
emits: {
|
|
71
|
+
"check-tree-data": null,
|
|
72
|
+
"expand-tree-data": null,
|
|
73
|
+
"click-tree-data": null,
|
|
74
|
+
"dbl-click-tree-data": null,
|
|
75
|
+
"context-menu": null
|
|
76
|
+
},
|
|
77
|
+
setup(d, { emit: t }) {
|
|
78
|
+
const a = (n, l) => {
|
|
79
|
+
t("check-tree-data", n, l);
|
|
80
|
+
}, e = (n) => {
|
|
81
|
+
t("expand-tree-data", n);
|
|
82
|
+
}, p = (n, l) => {
|
|
83
|
+
t("click-tree-data", n, l);
|
|
84
|
+
}, D = (n, l) => {
|
|
85
|
+
t("dbl-click-tree-data", n, l);
|
|
86
|
+
}, k = (n) => {
|
|
87
|
+
t("context-menu", n);
|
|
88
|
+
}, b = (n) => {
|
|
89
|
+
const l = d.expandIcon ? d.expandIcon : "", m = d.expandIcon ? d.collapseIcon : "";
|
|
90
|
+
return n.expand ? m : l;
|
|
91
|
+
}, f = u(() => d.nodeData || {}), C = u(() => d.parentIcon || "tree-parent-icon"), o = u(() => d.childIcon || "tree-child-icon"), c = u(
|
|
92
|
+
() => C.value !== "none" || o.value !== "none"
|
|
93
|
+
), w = u(() => {
|
|
94
|
+
const n = d.orderedColumns || [], l = n.findIndex(
|
|
95
|
+
(h) => h.expandColumn && !h.hide && !h.hiddenDisplay
|
|
96
|
+
);
|
|
97
|
+
if (l !== -1)
|
|
98
|
+
return l;
|
|
99
|
+
const m = n.findIndex((h) => !h.hide && !h.hiddenDisplay);
|
|
100
|
+
return m !== -1 ? m : 0;
|
|
101
|
+
}), M = (n) => ({
|
|
102
|
+
row: !0,
|
|
103
|
+
"tree-row": !0,
|
|
104
|
+
[`tree-row--level-${n == null ? void 0 : n.level}`]: !0,
|
|
105
|
+
highlight: (n == null ? void 0 : n.index) === d.highlightIndex,
|
|
106
|
+
selected: n.selected,
|
|
107
|
+
"non-border": !!d.borderStyle && d.borderStyle !== "rows"
|
|
108
|
+
}), _ = u(() => ({
|
|
109
|
+
cell: !0,
|
|
110
|
+
"row-checkbox": !0,
|
|
111
|
+
"non-border": !!d.borderStyle
|
|
112
|
+
}));
|
|
113
|
+
return {
|
|
114
|
+
parentIconMV: C,
|
|
115
|
+
childIconMV: o,
|
|
116
|
+
node: f,
|
|
117
|
+
isDataIcon: c,
|
|
118
|
+
checkboxClass: _,
|
|
119
|
+
expandColumnIdx: w,
|
|
120
|
+
onCheck: a,
|
|
121
|
+
onExpand: e,
|
|
122
|
+
onClick: p,
|
|
123
|
+
onDblClick: D,
|
|
124
|
+
onContextMenu: k,
|
|
125
|
+
expandIconClasses: b,
|
|
126
|
+
getRowClass: M,
|
|
127
|
+
getColumnClass: (n, l) => ({
|
|
128
|
+
cell: !0,
|
|
129
|
+
"tree-td": l === 0,
|
|
130
|
+
[n.type]: n.type,
|
|
131
|
+
[n.align]: n.align,
|
|
132
|
+
[n.field]: n.field,
|
|
133
|
+
"non-border": !!d.borderStyle
|
|
134
|
+
}),
|
|
135
|
+
getColumnStyle: (n, l) => ({
|
|
136
|
+
width: `${n.width}px`,
|
|
137
|
+
height: `${d.rowHeight}px`,
|
|
138
|
+
"line-height": `${d.rowHeight}px`,
|
|
139
|
+
"min-width": `${d.minWidth}px`,
|
|
140
|
+
"border-right": d.orderedColumns.length - 1 === l ? "none" : "1px solid #CFCFCF"
|
|
141
|
+
}),
|
|
142
|
+
getDepthStyle: (n) => ({
|
|
143
|
+
"margin-left": `${n * 13}px`
|
|
144
|
+
})
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
}, j = ["data-index"], z = ["data-name", "data-index"], B = { class: "td-content__wrapper" }, G = ["title"], W = { class: "td-content" };
|
|
148
|
+
function A(d, t, a, e, p, D) {
|
|
149
|
+
var C;
|
|
150
|
+
const k = v("ev-checkbox"), b = v("ev-icon"), f = v("grid-option-button");
|
|
151
|
+
return i(), r("tr", {
|
|
152
|
+
"data-index": e.node.index,
|
|
153
|
+
class: x(e.getRowClass(e.node)),
|
|
154
|
+
onClick: t[7] || (t[7] = (o) => e.onClick(o, e.node)),
|
|
155
|
+
onDblclick: t[8] || (t[8] = (o) => e.onDblClick(o, e.node))
|
|
156
|
+
}, [
|
|
157
|
+
a.useCheckbox.use ? (i(), r("td", {
|
|
158
|
+
key: 0,
|
|
159
|
+
class: x(e.checkboxClass),
|
|
160
|
+
style: g({
|
|
161
|
+
width: `${a.minWidth}px`,
|
|
162
|
+
height: `${a.rowHeight}px`,
|
|
163
|
+
"border-right": "1px solid #CFCFCF"
|
|
164
|
+
})
|
|
165
|
+
}, [
|
|
166
|
+
F(k, {
|
|
167
|
+
modelValue: e.node.checked,
|
|
168
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => e.node.checked = o),
|
|
169
|
+
disabled: e.node.uncheckable,
|
|
170
|
+
indeterminate: e.node.indeterminate,
|
|
171
|
+
class: "row-checkbox-input",
|
|
172
|
+
onChange: t[1] || (t[1] = (o) => e.onCheck(o, e.node))
|
|
173
|
+
}, null, 8, ["modelValue", "disabled", "indeterminate"])
|
|
174
|
+
], 6)) : s("", !0),
|
|
175
|
+
(i(!0), r(S, null, E(a.orderedColumns, (o, c) => (i(), r(S, { key: c }, [
|
|
176
|
+
!o.hide && !o.hiddenDisplay ? (i(), r("td", {
|
|
177
|
+
key: 0,
|
|
178
|
+
"data-name": o.field,
|
|
179
|
+
"data-index": e.node.index,
|
|
180
|
+
class: x(e.getColumnClass(o, c)),
|
|
181
|
+
style: g(e.getColumnStyle(o, c))
|
|
182
|
+
}, [
|
|
183
|
+
y("div", B, [
|
|
184
|
+
c === e.expandColumnIdx ? (i(), r("span", {
|
|
185
|
+
key: 0,
|
|
186
|
+
style: g(e.getDepthStyle(e.node.level))
|
|
187
|
+
}, null, 4)) : s("", !0),
|
|
188
|
+
c === e.expandColumnIdx ? (i(), r("span", {
|
|
189
|
+
key: 1,
|
|
190
|
+
class: x({
|
|
191
|
+
expand: e.node.expand,
|
|
192
|
+
"ev-tree-toggle": !0
|
|
193
|
+
})
|
|
194
|
+
}, [
|
|
195
|
+
e.node.hasChild ? (i(), r(S, { key: 0 }, [
|
|
196
|
+
e.expandIconClasses(e.node) ? (i(), N(b, {
|
|
197
|
+
key: 0,
|
|
198
|
+
icon: e.expandIconClasses(e.node),
|
|
199
|
+
style: { display: "block" },
|
|
200
|
+
onClick: t[2] || (t[2] = (w) => e.onExpand(e.node))
|
|
201
|
+
}, null, 8, ["icon"])) : (i(), r("button", {
|
|
202
|
+
key: 1,
|
|
203
|
+
class: "tree-expand-icon",
|
|
204
|
+
onClick: t[3] || (t[3] = I((w) => e.onExpand(e.node), ["stop"]))
|
|
205
|
+
}, [...t[9] || (t[9] = [
|
|
206
|
+
y("i", null, null, -1)
|
|
207
|
+
])]))
|
|
208
|
+
], 64)) : s("", !0)
|
|
209
|
+
], 2)) : s("", !0),
|
|
210
|
+
c === e.expandColumnIdx && e.isDataIcon ? (i(), r("span", {
|
|
211
|
+
key: 2,
|
|
212
|
+
title: e.node[o.field],
|
|
213
|
+
class: x({
|
|
214
|
+
expand: e.node.expand,
|
|
215
|
+
"ev-tree-toggle": !0
|
|
216
|
+
})
|
|
217
|
+
}, [
|
|
218
|
+
y("span", {
|
|
219
|
+
class: x(e.node.hasChild ? e.parentIconMV : e.childIconMV)
|
|
220
|
+
}, [...t[10] || (t[10] = [
|
|
221
|
+
y("i", null, null, -1)
|
|
222
|
+
])], 2)
|
|
223
|
+
], 10, G)) : s("", !0),
|
|
224
|
+
y("div", W, [
|
|
225
|
+
d.$slots[o.field + "Node"] ? V(d.$slots, o.field + "Node", {
|
|
226
|
+
key: 0,
|
|
227
|
+
item: {
|
|
228
|
+
data: e.node.data
|
|
229
|
+
}
|
|
230
|
+
}, void 0, !0) : s("", !0)
|
|
231
|
+
])
|
|
232
|
+
])
|
|
233
|
+
], 14, z)) : s("", !0)
|
|
234
|
+
], 64))), 128)),
|
|
235
|
+
(C = a.customContextMenu) != null && C.length ? (i(), r("td", {
|
|
236
|
+
key: 1,
|
|
237
|
+
class: x({
|
|
238
|
+
"row-contextmenu": !0,
|
|
239
|
+
"non-border": !!a.borderStyle
|
|
240
|
+
}),
|
|
241
|
+
style: g({
|
|
242
|
+
position: "sticky",
|
|
243
|
+
right: 0,
|
|
244
|
+
width: "30px",
|
|
245
|
+
height: `${a.rowHeight}px`,
|
|
246
|
+
"min-width": "30px",
|
|
247
|
+
"line-height": `${a.rowHeight}px`
|
|
248
|
+
})
|
|
249
|
+
}, [
|
|
250
|
+
d.$slots.contextmenuIconNode ? (i(), r("span", {
|
|
251
|
+
key: 0,
|
|
252
|
+
class: "row-contextmenu__btn",
|
|
253
|
+
onClick: [
|
|
254
|
+
t[4] || (t[4] = (o) => e.onContextMenu(o)),
|
|
255
|
+
t[5] || (t[5] = I((...o) => a.menuRef.show && a.menuRef.show(...o), ["prevent"]))
|
|
256
|
+
]
|
|
257
|
+
}, [
|
|
258
|
+
V(d.$slots, "contextmenuIconNode", {}, void 0, !0)
|
|
259
|
+
])) : (i(), N(f, {
|
|
260
|
+
key: 1,
|
|
261
|
+
icon: "ev-icon-warning2",
|
|
262
|
+
class: "row-contextmenu__btn",
|
|
263
|
+
onClick: [
|
|
264
|
+
t[6] || (t[6] = (o) => e.onContextMenu(o)),
|
|
265
|
+
I(a.menuRef.show, ["prevent"])
|
|
266
|
+
]
|
|
267
|
+
}, null, 8, ["onClick"]))
|
|
268
|
+
], 6)) : s("", !0)
|
|
269
|
+
], 42, j);
|
|
270
|
+
}
|
|
271
|
+
const Q = /* @__PURE__ */ R(O, [["render", A], ["__scopeId", "data-v-faab3696"]]);
|
|
272
|
+
export {
|
|
273
|
+
Q as default
|
|
274
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { openBlock as r, createElementBlock as e, renderSlot as t } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = {
|
|
5
|
+
name: "EvTreeGridToolbar"
|
|
6
|
+
}, n = { class: "tree-grid-toolbar" };
|
|
7
|
+
function c(o, p, l, i, d, _) {
|
|
8
|
+
return r(), e("div", n, [
|
|
9
|
+
t(o.$slots, "toolbarWrapper")
|
|
10
|
+
]);
|
|
11
|
+
}
|
|
12
|
+
const b = /* @__PURE__ */ s(a, [["render", c]]);
|
|
13
|
+
export {
|
|
14
|
+
b as default
|
|
15
|
+
};
|