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.
Files changed (134) hide show
  1. package/dist/index.js +23148 -0
  2. package/dist/index.umd.cjs +28 -0
  3. package/package.json +5 -11
  4. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  5. package/dist/common/utils.bignumber.js +0 -23
  6. package/dist/common/utils.debounce.js +0 -66
  7. package/dist/common/utils.js +0 -64
  8. package/dist/common/utils.throttle.js +0 -15
  9. package/dist/components/button/Button.vue.js +0 -65
  10. package/dist/components/button/index.js +0 -7
  11. package/dist/components/buttonGroup/ButtonGroup.vue.js +0 -14
  12. package/dist/components/buttonGroup/index.js +0 -7
  13. package/dist/components/calendar/Calendar.vue.js +0 -299
  14. package/dist/components/calendar/index.js +0 -7
  15. package/dist/components/calendar/uses.js +0 -579
  16. package/dist/components/chart/Chart.vue.js +0 -261
  17. package/dist/components/chart/ChartToolbar.vue.js +0 -32
  18. package/dist/components/chart/chart.core.js +0 -738
  19. package/dist/components/chart/chartZoom.core.js +0 -221
  20. package/dist/components/chart/element/element.bar.js +0 -358
  21. package/dist/components/chart/element/element.bar.time.js +0 -55
  22. package/dist/components/chart/element/element.heatmap.js +0 -403
  23. package/dist/components/chart/element/element.line.js +0 -292
  24. package/dist/components/chart/element/element.pie.js +0 -73
  25. package/dist/components/chart/element/element.scatter.js +0 -209
  26. package/dist/components/chart/element/element.tip.js +0 -312
  27. package/dist/components/chart/helpers/helpers.canvas.js +0 -141
  28. package/dist/components/chart/helpers/helpers.constant.js +0 -253
  29. package/dist/components/chart/helpers/helpers.util.js +0 -265
  30. package/dist/components/chart/index.js +0 -7
  31. package/dist/components/chart/model/index.js +0 -6
  32. package/dist/components/chart/model/model.series.js +0 -82
  33. package/dist/components/chart/model/model.store.js +0 -650
  34. package/dist/components/chart/plugins/plugins.interaction.js +0 -823
  35. package/dist/components/chart/plugins/plugins.legend.gradient.js +0 -281
  36. package/dist/components/chart/plugins/plugins.legend.js +0 -665
  37. package/dist/components/chart/plugins/plugins.pie.js +0 -86
  38. package/dist/components/chart/plugins/plugins.scrollbar.js +0 -345
  39. package/dist/components/chart/plugins/plugins.title.js +0 -43
  40. package/dist/components/chart/plugins/plugins.tooltip.js +0 -508
  41. package/dist/components/chart/scale/scale.js +0 -492
  42. package/dist/components/chart/scale/scale.linear.js +0 -248
  43. package/dist/components/chart/scale/scale.logarithmic.js +0 -82
  44. package/dist/components/chart/scale/scale.step.js +0 -227
  45. package/dist/components/chart/scale/scale.time.category.js +0 -148
  46. package/dist/components/chart/scale/scale.time.js +0 -95
  47. package/dist/components/chart/uses.js +0 -479
  48. package/dist/components/chartBrush/ChartBrush.vue.js +0 -198
  49. package/dist/components/chartBrush/chartBrush.core.js +0 -265
  50. package/dist/components/chartBrush/index.js +0 -7
  51. package/dist/components/chartBrush/uses.js +0 -18
  52. package/dist/components/chartGroup/ChartGroup.vue.js +0 -128
  53. package/dist/components/chartGroup/index.js +0 -7
  54. package/dist/components/chartGroup/uses.js +0 -47
  55. package/dist/components/checkbox/Checkbox.vue.js +0 -99
  56. package/dist/components/checkbox/index.js +0 -7
  57. package/dist/components/checkboxGroup/CheckboxGroup.vue.js +0 -40
  58. package/dist/components/checkboxGroup/index.js +0 -7
  59. package/dist/components/contextMenu/ContextMenu.vue.js +0 -70
  60. package/dist/components/contextMenu/MenuList.vue.js +0 -105
  61. package/dist/components/contextMenu/index.js +0 -7
  62. package/dist/components/contextMenu/uses.js +0 -79
  63. package/dist/components/datePicker/DatePicker.vue.js +0 -310
  64. package/dist/components/datePicker/index.js +0 -7
  65. package/dist/components/datePicker/uses.js +0 -190
  66. package/dist/components/grid/Grid.vue.js +0 -1261
  67. package/dist/components/grid/GridColumnSetting.vue.js +0 -212
  68. package/dist/components/grid/GridFilterSetting.vue.js +0 -222
  69. package/dist/components/grid/GridPagination.vue.js +0 -69
  70. package/dist/components/grid/GridSummary.vue.js +0 -186
  71. package/dist/components/grid/GridToolbar.vue.js +0 -15
  72. package/dist/components/grid/icon/icon-option-button.vue.js +0 -39
  73. package/dist/components/grid/icon/icon-sort-button.vue.js +0 -56
  74. package/dist/components/grid/index.js +0 -7
  75. package/dist/components/grid/uses.js +0 -697
  76. package/dist/components/icon/Icon.vue.js +0 -50
  77. package/dist/components/icon/index.js +0 -8
  78. package/dist/components/inputNumber/InputNumber.vue.js +0 -112
  79. package/dist/components/inputNumber/index.js +0 -7
  80. package/dist/components/inputNumber/uses.js +0 -76
  81. package/dist/components/loading/Loading.vue.js +0 -78
  82. package/dist/components/loading/index.js +0 -7
  83. package/dist/components/menu/Menu.vue.js +0 -66
  84. package/dist/components/menu/MenuItem.vue.js +0 -125
  85. package/dist/components/menu/index.js +0 -7
  86. package/dist/components/message/Message.vue.js +0 -122
  87. package/dist/components/message/index.js +0 -16
  88. package/dist/components/messageBox/MessageBox.vue.js +0 -216
  89. package/dist/components/messageBox/index.js +0 -13
  90. package/dist/components/notification/Notification.vue.js +0 -140
  91. package/dist/components/notification/index.js +0 -23
  92. package/dist/components/pagination/Pagination.vue.js +0 -215
  93. package/dist/components/pagination/index.js +0 -7
  94. package/dist/components/pagination/pageButton.vue.js +0 -35
  95. package/dist/components/progress/Progress.vue.js +0 -88
  96. package/dist/components/progress/index.js +0 -7
  97. package/dist/components/radio/Radio.vue.js +0 -75
  98. package/dist/components/radio/index.js +0 -7
  99. package/dist/components/radioGroup/RadioGroup.vue.js +0 -37
  100. package/dist/components/radioGroup/index.js +0 -7
  101. package/dist/components/scheduler/Scheduler.vue.js +0 -128
  102. package/dist/components/scheduler/index.js +0 -7
  103. package/dist/components/scheduler/uses.js +0 -73
  104. package/dist/components/select/Select.vue.js +0 -381
  105. package/dist/components/select/index.js +0 -7
  106. package/dist/components/select/uses.js +0 -147
  107. package/dist/components/slider/Slider.vue.js +0 -243
  108. package/dist/components/slider/index.js +0 -7
  109. package/dist/components/slider/uses.js +0 -188
  110. package/dist/components/tabPanel/TabPanel.vue.js +0 -39
  111. package/dist/components/tabPanel/index.js +0 -7
  112. package/dist/components/tabs/Tabs.vue.js +0 -220
  113. package/dist/components/tabs/index.js +0 -7
  114. package/dist/components/textField/TextField.vue.js +0 -209
  115. package/dist/components/textField/index.js +0 -7
  116. package/dist/components/timePicker/TimePicker.vue.js +0 -227
  117. package/dist/components/timePicker/index.js +0 -7
  118. package/dist/components/toggle/Toggle.vue.js +0 -66
  119. package/dist/components/toggle/index.js +0 -7
  120. package/dist/components/tree/Tree.vue.js +0 -220
  121. package/dist/components/tree/TreeNode.vue.js +0 -146
  122. package/dist/components/tree/index.js +0 -7
  123. package/dist/components/treeGrid/TreeGrid.vue.js +0 -898
  124. package/dist/components/treeGrid/TreeGridNode.vue.js +0 -274
  125. package/dist/components/treeGrid/TreeGridToolbar.vue.js +0 -15
  126. package/dist/components/treeGrid/index.js +0 -7
  127. package/dist/components/treeGrid/uses.js +0 -497
  128. package/dist/components/window/Window.vue.js +0 -211
  129. package/dist/components/window/index.js +0 -7
  130. package/dist/components/window/uses.js +0 -345
  131. package/dist/directives/clickoutside.js +0 -47
  132. package/dist/main.js +0 -142
  133. package/dist/package.json.js +0 -4
  134. package/dist/resolver.js +0 -17
@@ -1,88 +0,0 @@
1
- import { openBlock as a, createElementBlock as s, createElementVNode as i, normalizeStyle as d, toDisplayString as v, createCommentVNode as u, renderSlot as y, computed as m } from "vue";
2
- /* empty css */
3
- import g from "../../_virtual/_plugin-vue_export-helper.js";
4
- const h = {
5
- name: "EvProgress",
6
- props: {
7
- modelValue: {
8
- type: Number,
9
- default: 0,
10
- validator: (e) => e >= 0 && e <= 100
11
- },
12
- color: {
13
- type: [String, Array],
14
- default: "#409EFF"
15
- },
16
- strokeWidth: {
17
- type: Number,
18
- default: 6
19
- },
20
- innerText: {
21
- type: String,
22
- default: ""
23
- }
24
- },
25
- emits: {},
26
- setup(e) {
27
- const c = m(() => ({
28
- height: `${e.strokeWidth}px`
29
- })), o = m(() => {
30
- if (Array.isArray(e.color)) {
31
- const t = [...e.color].sort((r, n) => r.value - n.value);
32
- let l = t[0].color;
33
- if (!e.modelValue)
34
- return {
35
- width: `${e.modelValue}%`,
36
- "background-color": l
37
- };
38
- for (let r = 0; r < t.length; r++) {
39
- const n = r === 0 ? 0 : t[r - 1].value, f = t[r].value;
40
- if (e.modelValue > n && e.modelValue <= f) {
41
- l = t[r].color;
42
- break;
43
- }
44
- }
45
- return {
46
- width: `${e.modelValue}%`,
47
- "background-color": l
48
- };
49
- }
50
- return {
51
- width: `${e.modelValue}%`,
52
- "background-color": e.color
53
- };
54
- });
55
- return {
56
- wrapperStyle: c,
57
- innerStyle: o
58
- };
59
- }
60
- }, _ = { class: "ev-progress" }, V = {
61
- key: 0,
62
- class: "ev-progress-inner-text"
63
- }, k = {
64
- key: 0,
65
- class: "ev-progress-label"
66
- };
67
- function S(e, c, o, t, l, r) {
68
- return a(), s("div", _, [
69
- i("div", {
70
- class: "ev-progress-wrapper",
71
- style: d(t.wrapperStyle)
72
- }, [
73
- i("div", {
74
- class: "ev-progress-inner",
75
- style: d(t.innerStyle)
76
- }, [
77
- o.innerText ? (a(), s("div", V, v(o.innerText), 1)) : u("", !0)
78
- ], 4)
79
- ], 4),
80
- e.$slots.default ? (a(), s("div", k, [
81
- y(e.$slots, "default")
82
- ])) : u("", !0)
83
- ]);
84
- }
85
- const x = /* @__PURE__ */ g(h, [["render", S]]);
86
- export {
87
- x as default
88
- };
@@ -1,7 +0,0 @@
1
- import o from "./Progress.vue.js";
2
- o.install = (e) => {
3
- e.component(o.name, o);
4
- };
5
- export {
6
- o as default
7
- };
@@ -1,75 +0,0 @@
1
- import { openBlock as i, createElementBlock as s, normalizeClass as m, withDirectives as v, createElementVNode as r, withModifiers as b, vModelRadio as f, renderSlot as g, Fragment as p, createTextVNode as h, toDisplayString as y, inject as u, computed as c, nextTick as k } from "vue";
2
- /* empty css */
3
- import S from "../../_virtual/_plugin-vue_export-helper.js";
4
- const V = {
5
- name: "EvRadio",
6
- props: {
7
- modelValue: {
8
- type: [String, Number, Symbol, Boolean],
9
- default: null
10
- },
11
- label: {
12
- type: [String, Number, Symbol, Boolean],
13
- default: null
14
- },
15
- disabled: {
16
- type: Boolean,
17
- default: !1
18
- },
19
- size: {
20
- type: String,
21
- default: ""
22
- }
23
- },
24
- emits: {
25
- "update:modelValue": null,
26
- change: null
27
- },
28
- setup(t, { emit: l }) {
29
- const e = u(
30
- "EvRadioGroupMv",
31
- c({
32
- get: () => t.modelValue,
33
- set: (o) => l("update:modelValue", o)
34
- })
35
- ), a = u("EvRadioGroupChange", async (o) => {
36
- await k(), l("change", e.value, o);
37
- }), n = c(() => e.value === t.label);
38
- return {
39
- mv: e,
40
- checked: n,
41
- changeMv: a
42
- };
43
- }
44
- }, E = ["value", "disabled"], M = { class: "ev-radio-label" };
45
- function _(t, l, e, a, n, o) {
46
- return i(), s("label", {
47
- class: m(["ev-radio", [
48
- {
49
- disabled: e.disabled,
50
- checked: a.checked
51
- },
52
- e.size
53
- ]])
54
- }, [
55
- v(r("input", {
56
- "onUpdate:modelValue": l[0] || (l[0] = (d) => a.mv = d),
57
- type: "radio",
58
- class: "ev-radio-input",
59
- value: e.label,
60
- disabled: e.disabled,
61
- onChange: l[1] || (l[1] = b((...d) => a.changeMv && a.changeMv(...d), ["stop"]))
62
- }, null, 40, E), [
63
- [f, a.mv]
64
- ]),
65
- r("span", M, [
66
- t.$slots.default ? g(t.$slots, "default", { key: 0 }) : (i(), s(p, { key: 1 }, [
67
- h(y(e.label), 1)
68
- ], 64))
69
- ])
70
- ], 2);
71
- }
72
- const w = /* @__PURE__ */ S(V, [["render", _]]);
73
- export {
74
- w as default
75
- };
@@ -1,7 +0,0 @@
1
- import o from "./Radio.vue.js";
2
- o.install = (a) => {
3
- a.component(o.name, o);
4
- };
5
- export {
6
- o as default
7
- };
@@ -1,37 +0,0 @@
1
- import { openBlock as l, createElementBlock as u, normalizeClass as p, renderSlot as d, computed as c, provide as r, nextTick as s } from "vue";
2
- import i from "../../_virtual/_plugin-vue_export-helper.js";
3
- const m = {
4
- name: "EvRadioGroup",
5
- props: {
6
- modelValue: {
7
- type: [String, Number, Symbol, Boolean],
8
- default: null
9
- },
10
- type: {
11
- type: String,
12
- default: "radio"
13
- }
14
- },
15
- emits: ["update:modelValue", "change"],
16
- setup(t, { emit: a }) {
17
- const e = c({
18
- get: () => t.modelValue,
19
- set: (o) => a("update:modelValue", o)
20
- });
21
- r("EvRadioGroupMv", e), r("EvRadioGroupChange", async (o) => {
22
- await s(), a("change", e.value, o);
23
- });
24
- }
25
- };
26
- function f(t, a, e, n, o, g) {
27
- return l(), u("div", {
28
- class: p(["ev-radio-group", { "type-button": e.type === "button" }]),
29
- role: "group"
30
- }, [
31
- d(t.$slots, "default")
32
- ], 2);
33
- }
34
- const _ = /* @__PURE__ */ i(m, [["render", f]]);
35
- export {
36
- _ as default
37
- };
@@ -1,7 +0,0 @@
1
- import o from "./RadioGroup.vue.js";
2
- o.install = (a) => {
3
- a.component(o.name, o);
4
- };
5
- export {
6
- o as default
7
- };
@@ -1,128 +0,0 @@
1
- import { openBlock as r, createElementBlock as s, normalizeClass as f, createElementVNode as m, Fragment as i, renderList as v, mergeProps as L, withModifiers as _, toHandlerKey as M, toRefs as B } from "vue";
2
- import { useModel as g, useEvent as k } from "./uses.js";
3
- /* empty css */
4
- import p from "../../_virtual/_plugin-vue_export-helper.js";
5
- const A = {
6
- name: "EvScheduler",
7
- props: {
8
- modelValue: {
9
- type: Array,
10
- default: () => []
11
- },
12
- colLabels: {
13
- type: Array,
14
- default: () => [
15
- '<span style="color: #FF0000">SUN</span>',
16
- "MON",
17
- "TUE",
18
- "WED",
19
- "THU",
20
- "FRI",
21
- '<span style="color: #0006F9">SAT</span>'
22
- ]
23
- },
24
- rowLabels: {
25
- type: Array,
26
- default: () => [
27
- "00:00",
28
- "01:00",
29
- "02:00",
30
- "03:00",
31
- "04:00",
32
- "05:00",
33
- "06:00",
34
- "07:00",
35
- "08:00",
36
- "09:00",
37
- "10:00",
38
- "11:00",
39
- "12:00",
40
- "13:00",
41
- "14:00",
42
- "15:00",
43
- "16:00",
44
- "17:00",
45
- "18:00",
46
- "19:00",
47
- "20:00",
48
- "21:00",
49
- "22:00",
50
- "23:00"
51
- ]
52
- }
53
- },
54
- emits: {
55
- "update:modelValue": Array,
56
- change: Array
57
- },
58
- setup() {
59
- const { mv: u, validateValue: a } = g();
60
- a();
61
- const {
62
- mousePos: l,
63
- selectionStyle: o,
64
- mousedownBox: y,
65
- mouseupBox: b,
66
- mousemoveBox: n,
67
- mouseleaveBoxArea: e,
68
- selectColumn: c,
69
- selectRow: t
70
- } = k({ mv: u });
71
- return {
72
- mv: u,
73
- selectionStyle: o,
74
- mousedownBox: y,
75
- mouseupBox: b,
76
- mousemoveBox: n,
77
- mouseleaveBoxArea: e,
78
- selectColumn: c,
79
- selectRow: t,
80
- ...B(l)
81
- };
82
- }
83
- }, E = { class: "ev-scheduler-header" }, h = ["onClick", "innerHTML"], C = ["onClick", "innerHTML"], T = ["onMousedown", "onMouseup"];
84
- function H(u, a, l, o, y, b) {
85
- return r(), s("table", {
86
- class: f(["ev-scheduler", { draggable: !!u.dragEventName }])
87
- }, [
88
- m("thead", null, [
89
- m("tr", E, [
90
- a[1] || (a[1] = m("td", null, null, -1)),
91
- (r(!0), s(i, null, v(l.colLabels.length, (n, e) => (r(), s("td", {
92
- key: `${n}_${e}_header`,
93
- class: "ev-scheduler-header-label",
94
- onClick: (c) => o.selectColumn(e),
95
- innerHTML: l.colLabels[e]
96
- }, null, 8, h))), 128))
97
- ])
98
- ]),
99
- m("tbody", {
100
- onMouseleave: a[0] || (a[0] = (...n) => o.mouseleaveBoxArea && o.mouseleaveBoxArea(...n))
101
- }, [
102
- (r(!0), s(i, null, v(l.rowLabels.length, (n, e) => (r(), s("tr", {
103
- key: `${n}_${e}_body`,
104
- class: "ev-scheduler-body"
105
- }, [
106
- (r(), s("td", {
107
- key: `${n}_${e}_${l.rowLabels[e]}`,
108
- class: "ev-scheduler-body-label",
109
- onClick: (c) => o.selectRow(e),
110
- innerHTML: l.rowLabels[e]
111
- }, null, 8, C)),
112
- (r(!0), s(i, null, v(l.colLabels.length, (c, t) => (r(), s("td", L({
113
- key: `${c}_${e}_${t}_body`,
114
- class: ["ev-scheduler-body-box", { selected: o.mv[e][t] }],
115
- style: o.selectionStyle(e, t),
116
- onMousedown: _((d) => o.mousedownBox(e, t, d), ["stop", "prevent"]),
117
- onMouseup: _((d) => o.mouseupBox(e, t), ["stop", "prevent"])
118
- }, {
119
- [M(`${u.dragEventName}`)]: (d) => o.mousemoveBox(e, t)
120
- }), null, 16, T))), 128))
121
- ]))), 128))
122
- ], 32)
123
- ], 2);
124
- }
125
- const R = /* @__PURE__ */ p(A, [["render", H]]);
126
- export {
127
- R as default
128
- };
@@ -1,7 +0,0 @@
1
- import e from "./Scheduler.vue.js";
2
- e.install = (o) => {
3
- o.component(e.name, e);
4
- };
5
- export {
6
- e as default
7
- };
@@ -1,73 +0,0 @@
1
- import { getCurrentInstance as i, computed as v, reactive as f } from "vue";
2
- const R = (t, n) => Array.from(Array(t), () => Array(n).fill(!1)), A = () => {
3
- const { props: t, emit: n } = i(), e = v({
4
- get: () => t.modelValue.length !== t.rowLabels.length || !t.modelValue[0] || t.modelValue[0].length !== t.colLabels.length ? R(t.rowLabels.length, t.colLabels.length) : t.modelValue,
5
- set: (d) => {
6
- n("update:modelValue", d), n("change", d);
7
- }
8
- });
9
- return {
10
- mv: e,
11
- validateValue: () => {
12
- (t.modelValue.length !== t.rowLabels.length || !t.modelValue[0] || t.modelValue[0].length !== t.colLabels.length) && (e.value = [...R(t.rowLabels.length, t.colLabels.length)]);
13
- }
14
- };
15
- }, L = (t) => {
16
- const { mv: n } = t, e = f({
17
- startRow: null,
18
- startCol: null,
19
- dragRow: null,
20
- dragCol: null,
21
- endRow: null,
22
- endCol: null,
23
- dragEventName: null
24
- }), C = (l, o) => {
25
- if (e.dragCol === null || e.dragRow === null)
26
- return {};
27
- const s = e.startRow < e.dragRow ? e.startRow : e.dragRow, a = e.startRow > e.dragRow ? e.startRow : e.dragRow, m = e.startCol < e.dragCol ? e.startCol : e.dragCol, g = e.startCol > e.dragCol ? e.startCol : e.dragCol;
28
- if (s > l || a < l || m > o || g < o)
29
- return {};
30
- const u = "2px solid #5292F7";
31
- let r = {};
32
- return l === s && (r = { ...r, "border-top": u }), l === a && (r = { ...r, "border-bottom": u }), o === m && (r = { ...r, "border-left": u }), o === g && (r = { ...r, "border-right": u }), r;
33
- }, d = (l, o) => {
34
- e.startRow = l, e.startCol = o, e.dragRow = l, e.dragCol = o, e.dragEventName = "mousemove";
35
- }, w = (l, o) => {
36
- if (!e.dragEventName)
37
- return;
38
- e.endRow = l, e.endCol = o, e.dragEventName = null;
39
- const s = [...n.value], a = e.startRow < e.endRow ? e.startRow : e.endRow, m = e.startRow > e.endRow ? e.startRow : e.endRow, g = e.startCol < e.endCol ? e.startCol : e.endCol, u = e.startCol > e.endCol ? e.startCol : e.endCol;
40
- for (let r = a; r <= m; r++)
41
- for (let c = g; c <= u; c++)
42
- s[r][c] = !s[r][c];
43
- n.value = [...s], e.dragRow = null, e.dragCol = null;
44
- };
45
- return {
46
- mousePos: e,
47
- selectionStyle: C,
48
- mousedownBox: d,
49
- mouseupBox: w,
50
- mousemoveBox: (l, o) => {
51
- e.dragRow = l, e.dragCol = o;
52
- },
53
- mouseleaveBoxArea: () => {
54
- w(e.dragRow, e.dragCol);
55
- },
56
- selectColumn: (l) => {
57
- const o = [...n.value], s = o[0][l];
58
- for (let a = 0; a < o.length; a++)
59
- o[a][l] = !s;
60
- n.value = [...o];
61
- },
62
- selectRow: (l) => {
63
- const o = [...n.value], s = o[l][0];
64
- for (let a = 0; a < o[0].length; a++)
65
- o[l][a] = !s;
66
- n.value = [...o];
67
- }
68
- };
69
- };
70
- export {
71
- L as useEvent,
72
- A as useModel
73
- };