evui 3.5.0 → 3.5.2
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.js +23148 -0
- package/dist/index.umd.cjs +28 -0
- package/package.json +5 -11
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/common/utils.bignumber.js +0 -23
- package/dist/common/utils.debounce.js +0 -66
- package/dist/common/utils.js +0 -64
- package/dist/common/utils.throttle.js +0 -15
- package/dist/components/button/Button.vue.js +0 -65
- package/dist/components/button/index.js +0 -7
- package/dist/components/buttonGroup/ButtonGroup.vue.js +0 -14
- package/dist/components/buttonGroup/index.js +0 -7
- package/dist/components/calendar/Calendar.vue.js +0 -299
- package/dist/components/calendar/index.js +0 -7
- package/dist/components/calendar/uses.js +0 -579
- package/dist/components/chart/Chart.vue.js +0 -261
- package/dist/components/chart/ChartToolbar.vue.js +0 -32
- package/dist/components/chart/chart.core.js +0 -738
- package/dist/components/chart/chartZoom.core.js +0 -221
- package/dist/components/chart/element/element.bar.js +0 -358
- package/dist/components/chart/element/element.bar.time.js +0 -55
- package/dist/components/chart/element/element.heatmap.js +0 -403
- package/dist/components/chart/element/element.line.js +0 -292
- package/dist/components/chart/element/element.pie.js +0 -73
- package/dist/components/chart/element/element.scatter.js +0 -209
- package/dist/components/chart/element/element.tip.js +0 -312
- package/dist/components/chart/helpers/helpers.canvas.js +0 -141
- package/dist/components/chart/helpers/helpers.constant.js +0 -253
- package/dist/components/chart/helpers/helpers.util.js +0 -265
- package/dist/components/chart/index.js +0 -7
- package/dist/components/chart/model/index.js +0 -6
- package/dist/components/chart/model/model.series.js +0 -82
- package/dist/components/chart/model/model.store.js +0 -650
- package/dist/components/chart/plugins/plugins.interaction.js +0 -823
- package/dist/components/chart/plugins/plugins.legend.gradient.js +0 -281
- package/dist/components/chart/plugins/plugins.legend.js +0 -665
- package/dist/components/chart/plugins/plugins.pie.js +0 -86
- package/dist/components/chart/plugins/plugins.scrollbar.js +0 -345
- package/dist/components/chart/plugins/plugins.title.js +0 -43
- package/dist/components/chart/plugins/plugins.tooltip.js +0 -508
- package/dist/components/chart/scale/scale.js +0 -492
- package/dist/components/chart/scale/scale.linear.js +0 -248
- package/dist/components/chart/scale/scale.logarithmic.js +0 -82
- package/dist/components/chart/scale/scale.step.js +0 -227
- package/dist/components/chart/scale/scale.time.category.js +0 -148
- package/dist/components/chart/scale/scale.time.js +0 -95
- package/dist/components/chart/uses.js +0 -479
- package/dist/components/chartBrush/ChartBrush.vue.js +0 -198
- package/dist/components/chartBrush/chartBrush.core.js +0 -265
- package/dist/components/chartBrush/index.js +0 -7
- package/dist/components/chartBrush/uses.js +0 -18
- package/dist/components/chartGroup/ChartGroup.vue.js +0 -128
- package/dist/components/chartGroup/index.js +0 -7
- package/dist/components/chartGroup/uses.js +0 -47
- package/dist/components/checkbox/Checkbox.vue.js +0 -99
- package/dist/components/checkbox/index.js +0 -7
- package/dist/components/checkboxGroup/CheckboxGroup.vue.js +0 -40
- package/dist/components/checkboxGroup/index.js +0 -7
- package/dist/components/contextMenu/ContextMenu.vue.js +0 -70
- package/dist/components/contextMenu/MenuList.vue.js +0 -105
- package/dist/components/contextMenu/index.js +0 -7
- package/dist/components/contextMenu/uses.js +0 -79
- package/dist/components/datePicker/DatePicker.vue.js +0 -310
- package/dist/components/datePicker/index.js +0 -7
- package/dist/components/datePicker/uses.js +0 -190
- package/dist/components/grid/Grid.vue.js +0 -1261
- package/dist/components/grid/GridColumnSetting.vue.js +0 -212
- package/dist/components/grid/GridFilterSetting.vue.js +0 -222
- package/dist/components/grid/GridPagination.vue.js +0 -69
- package/dist/components/grid/GridSummary.vue.js +0 -186
- package/dist/components/grid/GridToolbar.vue.js +0 -15
- package/dist/components/grid/icon/icon-option-button.vue.js +0 -39
- package/dist/components/grid/icon/icon-sort-button.vue.js +0 -56
- package/dist/components/grid/index.js +0 -7
- package/dist/components/grid/uses.js +0 -697
- package/dist/components/icon/Icon.vue.js +0 -50
- package/dist/components/icon/index.js +0 -8
- package/dist/components/inputNumber/InputNumber.vue.js +0 -112
- package/dist/components/inputNumber/index.js +0 -7
- package/dist/components/inputNumber/uses.js +0 -76
- package/dist/components/loading/Loading.vue.js +0 -78
- package/dist/components/loading/index.js +0 -7
- package/dist/components/menu/Menu.vue.js +0 -66
- package/dist/components/menu/MenuItem.vue.js +0 -125
- package/dist/components/menu/index.js +0 -7
- package/dist/components/message/Message.vue.js +0 -122
- package/dist/components/message/index.js +0 -16
- package/dist/components/messageBox/MessageBox.vue.js +0 -216
- package/dist/components/messageBox/index.js +0 -13
- package/dist/components/notification/Notification.vue.js +0 -140
- package/dist/components/notification/index.js +0 -23
- package/dist/components/pagination/Pagination.vue.js +0 -215
- package/dist/components/pagination/index.js +0 -7
- package/dist/components/pagination/pageButton.vue.js +0 -35
- package/dist/components/progress/Progress.vue.js +0 -88
- package/dist/components/progress/index.js +0 -7
- package/dist/components/radio/Radio.vue.js +0 -75
- package/dist/components/radio/index.js +0 -7
- package/dist/components/radioGroup/RadioGroup.vue.js +0 -37
- package/dist/components/radioGroup/index.js +0 -7
- package/dist/components/scheduler/Scheduler.vue.js +0 -128
- package/dist/components/scheduler/index.js +0 -7
- package/dist/components/scheduler/uses.js +0 -73
- package/dist/components/select/Select.vue.js +0 -381
- package/dist/components/select/index.js +0 -7
- package/dist/components/select/uses.js +0 -147
- package/dist/components/slider/Slider.vue.js +0 -243
- package/dist/components/slider/index.js +0 -7
- package/dist/components/slider/uses.js +0 -188
- package/dist/components/tabPanel/TabPanel.vue.js +0 -39
- package/dist/components/tabPanel/index.js +0 -7
- package/dist/components/tabs/Tabs.vue.js +0 -220
- package/dist/components/tabs/index.js +0 -7
- package/dist/components/textField/TextField.vue.js +0 -209
- package/dist/components/textField/index.js +0 -7
- package/dist/components/timePicker/TimePicker.vue.js +0 -227
- package/dist/components/timePicker/index.js +0 -7
- package/dist/components/toggle/Toggle.vue.js +0 -66
- package/dist/components/toggle/index.js +0 -7
- package/dist/components/tree/Tree.vue.js +0 -220
- package/dist/components/tree/TreeNode.vue.js +0 -146
- package/dist/components/tree/index.js +0 -7
- package/dist/components/treeGrid/TreeGrid.vue.js +0 -898
- package/dist/components/treeGrid/TreeGridNode.vue.js +0 -274
- package/dist/components/treeGrid/TreeGridToolbar.vue.js +0 -15
- package/dist/components/treeGrid/index.js +0 -7
- package/dist/components/treeGrid/uses.js +0 -497
- package/dist/components/window/Window.vue.js +0 -211
- package/dist/components/window/index.js +0 -7
- package/dist/components/window/uses.js +0 -345
- package/dist/directives/clickoutside.js +0 -47
- package/dist/main.js +0 -142
- package/dist/package.json.js +0 -4
- package/dist/resolver.js +0 -17
|
@@ -1,274 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|