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.
Files changed (135) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/common/utils.bignumber.js +23 -0
  3. package/dist/common/utils.debounce.js +66 -0
  4. package/dist/common/utils.js +64 -0
  5. package/dist/common/utils.throttle.js +15 -0
  6. package/dist/components/button/Button.vue.js +65 -0
  7. package/dist/components/button/index.js +7 -0
  8. package/dist/components/buttonGroup/ButtonGroup.vue.js +14 -0
  9. package/dist/components/buttonGroup/index.js +7 -0
  10. package/dist/components/calendar/Calendar.vue.js +299 -0
  11. package/dist/components/calendar/index.js +7 -0
  12. package/dist/components/calendar/uses.js +579 -0
  13. package/dist/components/chart/Chart.vue.js +261 -0
  14. package/dist/components/chart/ChartToolbar.vue.js +32 -0
  15. package/dist/components/chart/chart.core.js +738 -0
  16. package/dist/components/chart/chartZoom.core.js +221 -0
  17. package/dist/components/chart/element/element.bar.js +358 -0
  18. package/dist/components/chart/element/element.bar.time.js +55 -0
  19. package/dist/components/chart/element/element.heatmap.js +403 -0
  20. package/dist/components/chart/element/element.line.js +292 -0
  21. package/dist/components/chart/element/element.pie.js +73 -0
  22. package/dist/components/chart/element/element.scatter.js +209 -0
  23. package/dist/components/chart/element/element.tip.js +312 -0
  24. package/dist/components/chart/helpers/helpers.canvas.js +141 -0
  25. package/dist/components/chart/helpers/helpers.constant.js +253 -0
  26. package/dist/components/chart/helpers/helpers.util.js +265 -0
  27. package/dist/components/chart/index.js +7 -0
  28. package/dist/components/chart/model/index.js +6 -0
  29. package/dist/components/chart/model/model.series.js +82 -0
  30. package/dist/components/chart/model/model.store.js +650 -0
  31. package/dist/components/chart/plugins/plugins.interaction.js +823 -0
  32. package/dist/components/chart/plugins/plugins.legend.gradient.js +281 -0
  33. package/dist/components/chart/plugins/plugins.legend.js +665 -0
  34. package/dist/components/chart/plugins/plugins.pie.js +86 -0
  35. package/dist/components/chart/plugins/plugins.scrollbar.js +345 -0
  36. package/dist/components/chart/plugins/plugins.title.js +43 -0
  37. package/dist/components/chart/plugins/plugins.tooltip.js +508 -0
  38. package/dist/components/chart/scale/scale.js +492 -0
  39. package/dist/components/chart/scale/scale.linear.js +248 -0
  40. package/dist/components/chart/scale/scale.logarithmic.js +82 -0
  41. package/dist/components/chart/scale/scale.step.js +227 -0
  42. package/dist/components/chart/scale/scale.time.category.js +148 -0
  43. package/dist/components/chart/scale/scale.time.js +95 -0
  44. package/dist/components/chart/uses.js +479 -0
  45. package/dist/components/chartBrush/ChartBrush.vue.js +198 -0
  46. package/dist/components/chartBrush/chartBrush.core.js +265 -0
  47. package/dist/components/chartBrush/index.js +7 -0
  48. package/dist/components/chartBrush/uses.js +18 -0
  49. package/dist/components/chartGroup/ChartGroup.vue.js +128 -0
  50. package/dist/components/chartGroup/index.js +7 -0
  51. package/dist/components/chartGroup/uses.js +47 -0
  52. package/dist/components/checkbox/Checkbox.vue.js +99 -0
  53. package/dist/components/checkbox/index.js +7 -0
  54. package/dist/components/checkboxGroup/CheckboxGroup.vue.js +40 -0
  55. package/dist/components/checkboxGroup/index.js +7 -0
  56. package/dist/components/contextMenu/ContextMenu.vue.js +70 -0
  57. package/dist/components/contextMenu/MenuList.vue.js +105 -0
  58. package/dist/components/contextMenu/index.js +7 -0
  59. package/dist/components/contextMenu/uses.js +79 -0
  60. package/dist/components/datePicker/DatePicker.vue.js +310 -0
  61. package/dist/components/datePicker/index.js +7 -0
  62. package/dist/components/datePicker/uses.js +190 -0
  63. package/dist/components/grid/Grid.vue.js +1261 -0
  64. package/dist/components/grid/GridColumnSetting.vue.js +212 -0
  65. package/dist/components/grid/GridFilterSetting.vue.js +222 -0
  66. package/dist/components/grid/GridPagination.vue.js +69 -0
  67. package/dist/components/grid/GridSummary.vue.js +186 -0
  68. package/dist/components/grid/GridToolbar.vue.js +15 -0
  69. package/dist/components/grid/icon/icon-option-button.vue.js +39 -0
  70. package/dist/components/grid/icon/icon-sort-button.vue.js +56 -0
  71. package/dist/components/grid/index.js +7 -0
  72. package/dist/components/grid/uses.js +697 -0
  73. package/dist/components/icon/Icon.vue.js +50 -0
  74. package/dist/components/icon/index.js +8 -0
  75. package/dist/components/inputNumber/InputNumber.vue.js +112 -0
  76. package/dist/components/inputNumber/index.js +7 -0
  77. package/dist/components/inputNumber/uses.js +76 -0
  78. package/dist/components/loading/Loading.vue.js +78 -0
  79. package/dist/components/loading/index.js +7 -0
  80. package/dist/components/menu/Menu.vue.js +66 -0
  81. package/dist/components/menu/MenuItem.vue.js +125 -0
  82. package/dist/components/menu/index.js +7 -0
  83. package/dist/components/message/Message.vue.js +122 -0
  84. package/dist/components/message/index.js +16 -0
  85. package/dist/components/messageBox/MessageBox.vue.js +216 -0
  86. package/dist/components/messageBox/index.js +13 -0
  87. package/dist/components/notification/Notification.vue.js +140 -0
  88. package/dist/components/notification/index.js +23 -0
  89. package/dist/components/pagination/Pagination.vue.js +215 -0
  90. package/dist/components/pagination/index.js +7 -0
  91. package/dist/components/pagination/pageButton.vue.js +35 -0
  92. package/dist/components/progress/Progress.vue.js +88 -0
  93. package/dist/components/progress/index.js +7 -0
  94. package/dist/components/radio/Radio.vue.js +75 -0
  95. package/dist/components/radio/index.js +7 -0
  96. package/dist/components/radioGroup/RadioGroup.vue.js +37 -0
  97. package/dist/components/radioGroup/index.js +7 -0
  98. package/dist/components/scheduler/Scheduler.vue.js +128 -0
  99. package/dist/components/scheduler/index.js +7 -0
  100. package/dist/components/scheduler/uses.js +73 -0
  101. package/dist/components/select/Select.vue.js +381 -0
  102. package/dist/components/select/index.js +7 -0
  103. package/dist/components/select/uses.js +147 -0
  104. package/dist/components/slider/Slider.vue.js +243 -0
  105. package/dist/components/slider/index.js +7 -0
  106. package/dist/components/slider/uses.js +188 -0
  107. package/dist/components/tabPanel/TabPanel.vue.js +39 -0
  108. package/dist/components/tabPanel/index.js +7 -0
  109. package/dist/components/tabs/Tabs.vue.js +220 -0
  110. package/dist/components/tabs/index.js +7 -0
  111. package/dist/components/textField/TextField.vue.js +209 -0
  112. package/dist/components/textField/index.js +7 -0
  113. package/dist/components/timePicker/TimePicker.vue.js +227 -0
  114. package/dist/components/timePicker/index.js +7 -0
  115. package/dist/components/toggle/Toggle.vue.js +66 -0
  116. package/dist/components/toggle/index.js +7 -0
  117. package/dist/components/tree/Tree.vue.js +220 -0
  118. package/dist/components/tree/TreeNode.vue.js +146 -0
  119. package/dist/components/tree/index.js +7 -0
  120. package/dist/components/treeGrid/TreeGrid.vue.js +898 -0
  121. package/dist/components/treeGrid/TreeGridNode.vue.js +274 -0
  122. package/dist/components/treeGrid/TreeGridToolbar.vue.js +15 -0
  123. package/dist/components/treeGrid/index.js +7 -0
  124. package/dist/components/treeGrid/uses.js +497 -0
  125. package/dist/components/window/Window.vue.js +211 -0
  126. package/dist/components/window/index.js +7 -0
  127. package/dist/components/window/uses.js +345 -0
  128. package/dist/directives/clickoutside.js +47 -0
  129. package/dist/main.js +142 -0
  130. package/dist/package.json.js +4 -0
  131. package/dist/resolver.js +17 -0
  132. package/dist/style.css +1 -1
  133. package/package.json +56 -23
  134. package/dist/index.js +0 -21754
  135. package/dist/index.umd.cjs +0 -28
@@ -0,0 +1,88 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,75 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,37 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,128 @@
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
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,73 @@
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
+ };