voiptime-components 0.0.19 → 0.0.21

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.es.js CHANGED
@@ -1,19 +1,19 @@
1
- import { createElementBlock as f, openBlock as p, createElementVNode as _, defineComponent as le, computed as x, createBlock as re, createCommentVNode as H, resolveDynamicComponent as Oe, useSlots as Me, resolveDirective as je, withDirectives as $e, normalizeClass as W, renderSlot as pe, Teleport as lt, normalizeStyle as ie, withModifiers as me, toDisplayString as te, watch as he, Fragment as ne, renderList as oe, vModelSelect as st, createVNode as Z, withCtx as xe, createTextVNode as _e, ref as D, createApp as it, h as ke, onMounted as ve, onUnmounted as Le, nextTick as at, mergeModels as ze, useModel as rt, reactive as ct, provide as ut, unref as U, inject as dt } from "vue";
2
- const K = (e, t) => {
3
- const o = e.__vccOpts || e;
4
- for (const [n, s] of t)
1
+ import { createElementBlock as m, openBlock as p, createElementVNode as h, createStaticVNode as Oe, defineComponent as le, computed as x, createBlock as ae, createCommentVNode as D, resolveDynamicComponent as je, useSlots as Le, resolveDirective as Fe, withDirectives as $e, normalizeClass as z, renderSlot as pe, Teleport as st, normalizeStyle as re, withModifiers as he, toDisplayString as te, watch as me, Fragment as ne, renderList as oe, vModelSelect as rt, createVNode as Z, withCtx as xe, createTextVNode as _e, ref as A, createApp as it, h as be, onMounted as ve, onUnmounted as Se, nextTick as at, mergeModels as Te, useModel as ct, reactive as ut, provide as dt, unref as q, inject as pt } from "vue";
2
+ const H = (t, e) => {
3
+ const o = t.__vccOpts || t;
4
+ for (const [n, s] of e)
5
5
  o[n] = s;
6
6
  return o;
7
- }, pt = {}, mt = {
7
+ }, ht = {}, mt = {
8
8
  width: "20",
9
9
  height: "20",
10
10
  viewBox: "0 0 20 20",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  };
14
- function ht(e, t) {
15
- return p(), f("svg", mt, t[0] || (t[0] = [
16
- _("path", {
14
+ function vt(t, e) {
15
+ return p(), m("svg", mt, e[0] || (e[0] = [
16
+ h("path", {
17
17
  d: "M14 8L10 12L6 8",
18
18
  stroke: "currentColor",
19
19
  "stroke-width": "1.5",
@@ -22,16 +22,16 @@ function ht(e, t) {
22
22
  }, null, -1)
23
23
  ]));
24
24
  }
25
- const vt = /* @__PURE__ */ K(pt, [["render", ht]]), ft = {}, _t = {
25
+ const ft = /* @__PURE__ */ H(ht, [["render", vt]]), _t = {}, gt = {
26
26
  width: "20",
27
27
  height: "20",
28
28
  viewBox: "0 0 20 20",
29
29
  fill: "none",
30
30
  xmlns: "http://www.w3.org/2000/svg"
31
31
  };
32
- function gt(e, t) {
33
- return p(), f("svg", _t, t[0] || (t[0] = [
34
- _("path", {
32
+ function Ct(t, e) {
33
+ return p(), m("svg", gt, e[0] || (e[0] = [
34
+ h("path", {
35
35
  d: "M6 12L10 8L14 12",
36
36
  stroke: "currentColor",
37
37
  "stroke-width": "1.5",
@@ -40,38 +40,38 @@ function gt(e, t) {
40
40
  }, null, -1)
41
41
  ]));
42
42
  }
43
- const Ct = /* @__PURE__ */ K(ft, [["render", gt]]), bt = {}, wt = {
43
+ const wt = /* @__PURE__ */ H(_t, [["render", Ct]]), kt = {}, bt = {
44
44
  width: "14",
45
45
  height: "15",
46
46
  viewBox: "0 0 14 15",
47
47
  fill: "none",
48
48
  xmlns: "http://www.w3.org/2000/svg"
49
49
  };
50
- function kt(e, t) {
51
- return p(), f("svg", wt, t[0] || (t[0] = [
52
- _("path", {
50
+ function yt(t, e) {
51
+ return p(), m("svg", bt, e[0] || (e[0] = [
52
+ h("path", {
53
53
  d: "M11.8789 4.90517L11.2561 4.20124C10.4045 3.33504 9.28504 2.7626 8.06789 2.5709C6.85074 2.3792 5.60245 2.57874 4.5127 3.13917C3.42296 3.69961 2.55134 4.59032 2.03031 5.67593C1.50928 6.76155 1.36732 7.98272 1.626 9.15387C1.88469 10.325 2.52987 11.3821 3.46351 12.1645C4.39716 12.9469 5.56821 13.4119 6.79871 13.4887C8.02921 13.5655 9.25189 13.25 10.2809 12.5901C11.31 11.9302 12.0891 10.962 12.5 9.83266",
54
54
  stroke: "currentColor",
55
55
  "stroke-width": "1.5",
56
56
  "stroke-miterlimit": "10",
57
57
  "stroke-linecap": "round"
58
58
  }, null, -1),
59
- _("path", {
59
+ h("path", {
60
60
  d: "M8.5157 6.5C8.07025 6.5 7.84716 5.96143 8.16215 5.64645L10.3086 3.5L12.455 1.35355C12.77 1.03857 13.3086 1.26165 13.3086 1.70711V6C13.3086 6.27614 13.0847 6.5 12.8086 6.5L8.5157 6.5Z",
61
61
  fill: "currentColor"
62
62
  }, null, -1)
63
63
  ]));
64
64
  }
65
- const yt = /* @__PURE__ */ K(bt, [["render", kt]]), xt = {}, St = {
65
+ const xt = /* @__PURE__ */ H(kt, [["render", yt]]), Mt = {}, Lt = {
66
66
  width: "21",
67
67
  height: "20",
68
68
  viewBox: "0 0 21 20",
69
69
  fill: "none",
70
70
  xmlns: "http://www.w3.org/2000/svg"
71
71
  };
72
- function Mt(e, t) {
73
- return p(), f("svg", St, t[0] || (t[0] = [
74
- _("path", {
72
+ function $t(t, e) {
73
+ return p(), m("svg", Lt, e[0] || (e[0] = [
74
+ h("path", {
75
75
  d: "M8.60352 6L12.6035 10L8.60352 14",
76
76
  stroke: "currentColor",
77
77
  "stroke-width": "1.5",
@@ -80,16 +80,16 @@ function Mt(e, t) {
80
80
  }, null, -1)
81
81
  ]));
82
82
  }
83
- const $t = /* @__PURE__ */ K(xt, [["render", Mt]]), Lt = {}, It = {
83
+ const St = /* @__PURE__ */ H(Mt, [["render", $t]]), It = {}, Vt = {
84
84
  width: "21",
85
85
  height: "20",
86
86
  viewBox: "0 0 21 20",
87
87
  fill: "none",
88
88
  xmlns: "http://www.w3.org/2000/svg"
89
89
  };
90
- function Bt(e, t) {
91
- return p(), f("svg", It, t[0] || (t[0] = [
92
- _("path", {
90
+ function Bt(t, e) {
91
+ return p(), m("svg", Vt, e[0] || (e[0] = [
92
+ h("path", {
93
93
  d: "M12.3984 14L8.39844 10L12.3984 6",
94
94
  stroke: "currentColor",
95
95
  "stroke-width": "1.5",
@@ -98,16 +98,16 @@ function Bt(e, t) {
98
98
  }, null, -1)
99
99
  ]));
100
100
  }
101
- const Rt = /* @__PURE__ */ K(Lt, [["render", Bt]]), Tt = {}, zt = {
101
+ const Rt = /* @__PURE__ */ H(It, [["render", Bt]]), Tt = {}, Et = {
102
102
  width: "20",
103
103
  height: "20",
104
104
  viewBox: "0 0 20 20",
105
105
  fill: "none",
106
106
  xmlns: "http://www.w3.org/2000/svg"
107
107
  };
108
- function Et(e, t) {
109
- return p(), f("svg", zt, t[0] || (t[0] = [
110
- _("path", {
108
+ function zt(t, e) {
109
+ return p(), m("svg", Et, e[0] || (e[0] = [
110
+ h("path", {
111
111
  d: "M12.5 1.66406L11.1783 2.94156C10.6233 3.47906 10.345 3.7474 10 3.7474C9.655 3.7474 9.37667 3.47906 8.82167 2.94156L7.5 1.66406M14.5833 5.83073C15.7533 5.83073 16.3392 5.83073 16.7592 6.11156C16.9412 6.23319 17.0975 6.3895 17.2192 6.57156C17.5 6.99156 17.5 7.5774 17.5 8.7474V15.4141C17.5 16.5841 17.5 17.1699 17.2192 17.5899C17.0975 17.772 16.9412 17.9283 16.7592 18.0499C16.3392 18.3307 15.7533 18.3307 14.5833 18.3307C13.4133 18.3307 12.8275 18.3307 12.4075 18.0499C12.2254 17.9283 12.0691 17.772 11.9475 17.5899C11.6667 17.1699 11.6667 16.5841 11.6667 15.4141V8.7474C11.6667 7.5774 11.6667 6.99156 11.9475 6.57156C12.0691 6.3895 12.2254 6.23319 12.4075 6.11156C12.8275 5.83073 13.4133 5.83073 14.5833 5.83073ZM5.41667 5.83073C6.58667 5.83073 7.1725 5.83073 7.5925 6.11156C7.77456 6.23319 7.93087 6.3895 8.0525 6.57156C8.33333 6.99156 8.33333 7.5774 8.33333 8.7474V15.4141C8.33333 16.5841 8.33333 17.1699 8.0525 17.5899C7.93087 17.772 7.77456 17.9283 7.5925 18.0499C7.1725 18.3307 6.58667 18.3307 5.41667 18.3307C4.24667 18.3307 3.66083 18.3307 3.24083 18.0499C3.05877 17.9283 2.90246 17.772 2.78083 17.5899C2.5 17.1699 2.5 16.5841 2.5 15.4141V8.7474C2.5 7.5774 2.5 6.99156 2.78083 6.57156C2.90246 6.3895 3.05877 6.23319 3.24083 6.11156C3.66083 5.83073 4.24667 5.83073 5.41667 5.83073Z",
112
112
  stroke: "currentColor",
113
113
  "stroke-width": "1.5",
@@ -116,23 +116,23 @@ function Et(e, t) {
116
116
  }, null, -1)
117
117
  ]));
118
118
  }
119
- const Wt = /* @__PURE__ */ K(Tt, [["render", Et]]), Vt = {}, Ht = {
119
+ const Ht = /* @__PURE__ */ H(Tt, [["render", zt]]), Wt = {}, Dt = {
120
120
  width: "20",
121
121
  height: "20",
122
122
  viewBox: "0 0 20 20",
123
123
  fill: "none",
124
124
  xmlns: "http://www.w3.org/2000/svg"
125
125
  };
126
- function Pt(e, t) {
127
- return p(), f("svg", Ht, t[0] || (t[0] = [
128
- _("path", {
126
+ function Pt(t, e) {
127
+ return p(), m("svg", Dt, e[0] || (e[0] = [
128
+ h("path", {
129
129
  d: "M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",
130
130
  stroke: "currentColor",
131
131
  "stroke-width": "1.5",
132
132
  "stroke-linecap": "round",
133
133
  "stroke-linejoin": "round"
134
134
  }, null, -1),
135
- _("path", {
135
+ h("path", {
136
136
  d: "M12 14.7143L13.1151 15.6701C13.3268 15.8515 13.646 15.8247 13.8246 15.6105L16 13",
137
137
  stroke: "currentColor",
138
138
  "stroke-width": "1.5",
@@ -140,23 +140,23 @@ function Pt(e, t) {
140
140
  }, null, -1)
141
141
  ]));
142
142
  }
143
- const Dt = /* @__PURE__ */ K(Vt, [["render", Pt]]), At = {}, Ot = {
143
+ const At = /* @__PURE__ */ H(Wt, [["render", Pt]]), Ot = {}, jt = {
144
144
  width: "20",
145
145
  height: "20",
146
146
  viewBox: "0 0 20 20",
147
147
  fill: "none",
148
148
  xmlns: "http://www.w3.org/2000/svg"
149
149
  };
150
- function jt(e, t) {
151
- return p(), f("svg", Ot, t[0] || (t[0] = [
152
- _("path", {
150
+ function Ft(t, e) {
151
+ return p(), m("svg", jt, e[0] || (e[0] = [
152
+ h("path", {
153
153
  d: "M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",
154
154
  stroke: "currentColor",
155
155
  "stroke-width": "1.5",
156
156
  "stroke-linecap": "round",
157
157
  "stroke-linejoin": "round"
158
158
  }, null, -1),
159
- _("path", {
159
+ h("path", {
160
160
  d: "M13 16L14.5 14.5M16 13L14.5 14.5M14.5 14.5L13 13M14.5 14.5L16 16",
161
161
  stroke: "currentColor",
162
162
  "stroke-width": "1.5",
@@ -164,16 +164,16 @@ function jt(e, t) {
164
164
  }, null, -1)
165
165
  ]));
166
166
  }
167
- const Nt = /* @__PURE__ */ K(At, [["render", jt]]), Zt = {}, Ft = {
167
+ const Nt = /* @__PURE__ */ H(Ot, [["render", Ft]]), Zt = {}, Ut = {
168
168
  xmlns: "http://www.w3.org/2000/svg",
169
169
  width: "60",
170
170
  height: "60",
171
171
  viewBox: "0 0 60 60",
172
172
  fill: "none"
173
173
  };
174
- function Ut(e, t) {
175
- return p(), f("svg", Ft, t[0] || (t[0] = [
176
- _("path", {
174
+ function qt(t, e) {
175
+ return p(), m("svg", Ut, e[0] || (e[0] = [
176
+ h("path", {
177
177
  d: "M24.195 7H18.625C17.1332 7 15.7024 7.59263 14.6475 8.64752C13.5926 9.70242 13 11.1332 13 12.625V46.375C13 47.8668 13.5926 49.2976 14.6475 50.3525C15.7024 51.4074 17.1332 52 18.625 52H41.125C42.6168 52 44.0476 51.4074 45.1025 50.3525C46.1574 49.2976 46.75 47.8668 46.75 46.375V29.5M24.195 7C27.3025 7 29.875 9.5175 29.875 12.625V18.25C29.875 19.7418 30.4676 21.1726 31.5225 22.2275C32.5774 23.2824 34.0082 23.875 35.5 23.875H41.125C42.6168 23.875 44.0476 24.4676 45.1025 25.5225C46.1574 26.5774 46.75 28.0082 46.75 29.5M24.195 7C33.42 7 46.75 20.4 46.75 29.5",
178
178
  stroke: "currentColor",
179
179
  "stroke-width": "2",
@@ -182,22 +182,22 @@ function Ut(e, t) {
182
182
  }, null, -1)
183
183
  ]));
184
184
  }
185
- const qt = /* @__PURE__ */ K(Zt, [["render", Ut]]), Xt = {}, Gt = {
185
+ const Xt = /* @__PURE__ */ H(Zt, [["render", qt]]), Gt = {}, Kt = {
186
186
  width: "20",
187
187
  height: "20",
188
188
  viewBox: "0 0 20 20",
189
189
  fill: "none",
190
190
  xmlns: "http://www.w3.org/2000/svg"
191
191
  };
192
- function Kt(e, t) {
193
- return p(), f("svg", Gt, t[0] || (t[0] = [
194
- _("path", {
192
+ function Yt(t, e) {
193
+ return p(), m("svg", Kt, e[0] || (e[0] = [
194
+ h("path", {
195
195
  "fill-rule": "evenodd",
196
196
  "clip-rule": "evenodd",
197
197
  d: "M6.99479 8.75521C6.55276 8.75521 6.12884 8.57961 5.81628 8.26705C5.50372 7.95449 5.32812 7.53057 5.32812 7.08854C5.32812 6.64651 5.50372 6.22259 5.81628 5.91003C6.12884 5.59747 6.55276 5.42187 6.99479 5.42188C7.43682 5.42187 7.86074 5.59747 8.1733 5.91003C8.48586 6.22259 8.66146 6.64651 8.66146 7.08854C8.66146 7.53057 8.48586 7.95449 8.1733 8.26705C7.86074 8.57961 7.43682 8.75521 6.99479 8.75521ZM6.99479 14.5885C6.55276 14.5885 6.12884 14.4129 5.81628 14.1004C5.50372 13.7878 5.32812 13.3639 5.32812 12.9219C5.32812 12.4798 5.50372 12.0559 5.81628 11.7434C6.12884 11.4308 6.55276 11.2552 6.99479 11.2552C7.43682 11.2552 7.86074 11.4308 8.1733 11.7434C8.48586 12.0559 8.66146 12.4798 8.66146 12.9219C8.66146 13.3639 8.48586 13.7878 8.1733 14.1004C7.86074 14.4129 7.43682 14.5885 6.99479 14.5885Z",
198
198
  fill: "currentColor"
199
199
  }, null, -1),
200
- _("path", {
200
+ h("path", {
201
201
  "fill-rule": "evenodd",
202
202
  "clip-rule": "evenodd",
203
203
  d: "M12.9948 8.75521C12.5528 8.75521 12.1288 8.57961 11.8163 8.26705C11.5037 7.95449 11.3281 7.53057 11.3281 7.08854C11.3281 6.64651 11.5037 6.22259 11.8163 5.91003C12.1288 5.59747 12.5528 5.42187 12.9948 5.42188C13.4368 5.42187 13.8607 5.59747 14.1733 5.91003C14.4859 6.22259 14.6615 6.64651 14.6615 7.08854C14.6615 7.53057 14.4859 7.95449 14.1733 8.26705C13.8607 8.57961 13.4368 8.75521 12.9948 8.75521ZM12.9948 14.5885C12.5528 14.5885 12.1288 14.4129 11.8163 14.1004C11.5037 13.7878 11.3281 13.3639 11.3281 12.9219C11.3281 12.4798 11.5037 12.0559 11.8163 11.7434C12.1288 11.4308 12.5528 11.2552 12.9948 11.2552C13.4368 11.2552 13.8607 11.4308 14.1733 11.7434C14.4859 12.0559 14.6615 12.4798 14.6615 12.9219C14.6615 13.3639 14.4859 13.7878 14.1733 14.1004C13.8607 14.4129 13.4368 14.5885 12.9948 14.5885Z",
@@ -205,16 +205,16 @@ function Kt(e, t) {
205
205
  }, null, -1)
206
206
  ]));
207
207
  }
208
- const Yt = /* @__PURE__ */ K(Xt, [["render", Kt]]), Jt = {}, Qt = {
208
+ const Jt = /* @__PURE__ */ H(Gt, [["render", Yt]]), Qt = {}, en = {
209
209
  width: "20",
210
210
  height: "20",
211
211
  viewBox: "0 0 20 20",
212
212
  fill: "none",
213
213
  xmlns: "http://www.w3.org/2000/svg"
214
214
  };
215
- function en(e, t) {
216
- return p(), f("svg", Qt, t[0] || (t[0] = [
217
- _("path", {
215
+ function tn(t, e) {
216
+ return p(), m("svg", en, e[0] || (e[0] = [
217
+ h("path", {
218
218
  "fill-rule": "evenodd",
219
219
  "clip-rule": "evenodd",
220
220
  d: "M10.1667 5.83333C9.72464 5.83333 9.30072 5.65774 8.98816 5.34518C8.67559 5.03262 8.5 4.60869 8.5 4.16667C8.5 3.72464 8.67559 3.30072 8.98816 2.98816C9.30072 2.67559 9.72464 2.5 10.1667 2.5C10.6087 2.5 11.0326 2.67559 11.3452 2.98816C11.6577 3.30072 11.8333 3.72464 11.8333 4.16667C11.8333 4.60869 11.6577 5.03262 11.3452 5.34518C11.0326 5.65774 10.6087 5.83333 10.1667 5.83333ZM10.1667 11.6667C9.72464 11.6667 9.30072 11.4911 8.98816 11.1785C8.67559 10.8659 8.5 10.442 8.5 10C8.5 9.55797 8.67559 9.13405 8.98816 8.82149C9.30072 8.50893 9.72464 8.33333 10.1667 8.33333C10.6087 8.33333 11.0326 8.50893 11.3452 8.82149C11.6577 9.13405 11.8333 9.55797 11.8333 10C11.8333 10.442 11.6577 10.8659 11.3452 11.1785C11.0326 11.4911 10.6087 11.6667 10.1667 11.6667ZM10.1667 17.5C9.72464 17.5 9.30072 17.3244 8.98816 17.0118C8.67559 16.6993 8.5 16.2754 8.5 15.8333C8.5 15.3913 8.67559 14.9674 8.98816 14.6548C9.30072 14.3423 9.72464 14.1667 10.1667 14.1667C10.6087 14.1667 11.0326 14.3423 11.3452 14.6548C11.6577 14.9674 11.8333 15.3913 11.8333 15.8333C11.8333 16.2754 11.6577 16.6993 11.3452 17.0118C11.0326 17.3244 10.6087 17.5 10.1667 17.5Z",
@@ -222,16 +222,16 @@ function en(e, t) {
222
222
  }, null, -1)
223
223
  ]));
224
224
  }
225
- const tn = /* @__PURE__ */ K(Jt, [["render", en]]), nn = {}, on = {
225
+ const nn = /* @__PURE__ */ H(Qt, [["render", tn]]), on = {}, ln = {
226
226
  width: "21",
227
227
  height: "20",
228
228
  viewBox: "0 0 21 20",
229
229
  fill: "none",
230
230
  xmlns: "http://www.w3.org/2000/svg"
231
231
  };
232
- function ln(e, t) {
233
- return p(), f("svg", on, t[0] || (t[0] = [
234
- _("path", {
232
+ function sn(t, e) {
233
+ return p(), m("svg", ln, e[0] || (e[0] = [
234
+ h("path", {
235
235
  "fill-rule": "evenodd",
236
236
  "clip-rule": "evenodd",
237
237
  d: "M6.33333 9.83333C6.33333 10.2754 6.15774 10.6993 5.84518 11.0118C5.53262 11.3244 5.10869 11.5 4.66667 11.5C4.22464 11.5 3.80072 11.3244 3.48816 11.0118C3.17559 10.6993 3 10.2754 3 9.83333C3 9.39131 3.17559 8.96738 3.48816 8.65482C3.80072 8.34226 4.22464 8.16667 4.66667 8.16667C5.10869 8.16667 5.53262 8.34226 5.84518 8.65482C6.15774 8.96738 6.33333 9.39131 6.33333 9.83333ZM12.1667 9.83333C12.1667 10.2754 11.9911 10.6993 11.6785 11.0118C11.3659 11.3244 10.942 11.5 10.5 11.5C10.058 11.5 9.63405 11.3244 9.32149 11.0118C9.00893 10.6993 8.83333 10.2754 8.83333 9.83333C8.83333 9.39131 9.00893 8.96738 9.32149 8.65482C9.63405 8.34226 10.058 8.16667 10.5 8.16667C10.942 8.16667 11.3659 8.34226 11.6785 8.65482C11.9911 8.96738 12.1667 9.39131 12.1667 9.83333ZM18 9.83333C18 10.2754 17.8244 10.6993 17.5118 11.0118C17.1993 11.3244 16.7754 11.5 16.3333 11.5C15.8913 11.5 15.4674 11.3244 15.1548 11.0118C14.8423 10.6993 14.6667 10.2754 14.6667 9.83333C14.6667 9.39131 14.8423 8.96738 15.1548 8.65482C15.4674 8.34226 15.8913 8.16667 16.3333 8.16667C16.7754 8.16667 17.1993 8.34226 17.5118 8.65482C17.8244 8.96738 18 9.39131 18 9.83333Z",
@@ -239,16 +239,16 @@ function ln(e, t) {
239
239
  }, null, -1)
240
240
  ]));
241
241
  }
242
- const sn = /* @__PURE__ */ K(nn, [["render", ln]]), an = {}, rn = {
242
+ const rn = /* @__PURE__ */ H(on, [["render", sn]]), an = {}, cn = {
243
243
  width: "20",
244
244
  height: "20",
245
245
  viewBox: "0 0 20 20",
246
246
  fill: "none",
247
247
  xmlns: "http://www.w3.org/2000/svg"
248
248
  };
249
- function cn(e, t) {
250
- return p(), f("svg", rn, t[0] || (t[0] = [
251
- _("path", {
249
+ function un(t, e) {
250
+ return p(), m("svg", cn, e[0] || (e[0] = [
251
+ h("path", {
252
252
  d: "M6 14L10 10M10 10L14 6M10 10L6 6M10 10L14 14",
253
253
  stroke: "currentColor",
254
254
  "stroke-width": "1.5",
@@ -257,37 +257,226 @@ function cn(e, t) {
257
257
  }, null, -1)
258
258
  ]));
259
259
  }
260
- const un = /* @__PURE__ */ K(an, [["render", cn]]), dn = {
260
+ const dn = /* @__PURE__ */ H(an, [["render", un]]), pn = {}, hn = {
261
+ width: "20",
262
+ height: "20",
263
+ viewBox: "0 0 20 20",
264
+ fill: "none",
265
+ xmlns: "http://www.w3.org/2000/svg"
266
+ };
267
+ function mn(t, e) {
268
+ return p(), m("svg", hn, e[0] || (e[0] = [
269
+ h("path", {
270
+ d: "M9.31732 16.8976L7.50065 17.5026V10.4193L3.76732 6.3126C3.48852 6.00588 3.33403 5.60627 3.33398 5.19177V3.33594H16.6673V5.14594C16.6672 5.58793 16.4916 6.01178 16.179 6.32427L12.5007 10.0026V12.5026M12.5007 15.8359L14.1673 17.5026L17.5007 14.1693",
271
+ stroke: "currentColor",
272
+ "stroke-width": "1.5",
273
+ "stroke-linecap": "round",
274
+ "stroke-linejoin": "round"
275
+ }, null, -1)
276
+ ]));
277
+ }
278
+ const vn = /* @__PURE__ */ H(pn, [["render", mn]]), fn = {}, _n = {
279
+ width: "20",
280
+ height: "20",
281
+ viewBox: "0 0 20 20",
282
+ fill: "none",
283
+ xmlns: "http://www.w3.org/2000/svg"
284
+ };
285
+ function gn(t, e) {
286
+ return p(), m("svg", _n, e[0] || (e[0] = [
287
+ h("path", {
288
+ d: "M11.4657 16.1809L7.50065 17.5026V10.4193L3.76732 6.3126C3.48852 6.00588 3.33403 5.60627 3.33398 5.19177V3.33594H16.6673V5.14594C16.6672 5.58793 16.4916 6.01178 16.179 6.32427L12.5007 10.0026V11.2526M18.334 18.3359L14.1673 14.1693M14.1673 18.3359L18.334 14.1693",
289
+ stroke: "currentColor",
290
+ "stroke-width": "1.5",
291
+ "stroke-linecap": "round",
292
+ "stroke-linejoin": "round"
293
+ }, null, -1)
294
+ ]));
295
+ }
296
+ const Cn = /* @__PURE__ */ H(fn, [["render", gn]]), wn = {}, kn = {
297
+ width: "20",
298
+ height: "20",
299
+ viewBox: "0 0 20 20",
300
+ fill: "none",
301
+ xmlns: "http://www.w3.org/2000/svg"
302
+ };
303
+ function bn(t, e) {
304
+ return p(), m("svg", kn, e[0] || (e[0] = [
305
+ h("path", {
306
+ d: "M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",
307
+ stroke: "currentColor",
308
+ "stroke-width": "1.5",
309
+ "stroke-linecap": "round",
310
+ "stroke-linejoin": "round"
311
+ }, null, -1),
312
+ h("path", {
313
+ d: "M15.5 16.6591L13.857 17.9057C13.7756 17.9719 13.6868 18.0032 13.5906 17.9997C13.4944 17.9962 13.4093 17.9685 13.3353 17.9167C13.2613 17.865 13.204 17.7951 13.1635 17.7071C13.1229 17.6192 13.121 17.5236 13.1577 17.4203L13.7904 15.3795L12.1808 14.2433C12.092 14.1844 12.0365 14.1072 12.0143 14.0116C11.9921 13.916 11.9958 13.8277 12.0254 13.7468C12.055 13.6659 12.1068 13.5942 12.1808 13.5315C12.2548 13.4688 12.3436 13.4377 12.4472 13.438H14.4343L15.0782 11.3199C15.1152 11.217 15.1726 11.1378 15.2504 11.0825C15.3283 11.0272 15.4115 10.9997 15.5 11C15.5885 11.0003 15.6718 11.0279 15.75 11.083C15.8281 11.138 15.8854 11.217 15.9218 11.3199L16.5657 13.438H18.5528C18.6564 13.438 18.7452 13.4693 18.8192 13.5319C18.8932 13.5946 18.945 13.6662 18.9746 13.7468C19.0042 13.8274 19.0079 13.9157 18.9857 14.0116C18.9635 14.1075 18.908 14.1847 18.8192 14.2433L17.2096 15.3795L17.8423 17.4203C17.8793 17.5233 17.8775 17.6189 17.837 17.7071C17.7964 17.7954 17.739 17.8653 17.6647 17.9167C17.5904 17.9682 17.5053 17.9959 17.4094 17.9997C17.3135 18.0035 17.2247 17.9722 17.143 17.9057L15.5 16.6591Z",
314
+ stroke: "currentColor",
315
+ "stroke-width": "1.5"
316
+ }, null, -1)
317
+ ]));
318
+ }
319
+ const yn = /* @__PURE__ */ H(wn, [["render", bn]]), xn = {}, Mn = {
320
+ width: "20",
321
+ height: "20",
322
+ viewBox: "0 0 20 20",
323
+ fill: "none",
324
+ xmlns: "http://www.w3.org/2000/svg"
325
+ };
326
+ function Ln(t, e) {
327
+ return p(), m("svg", Mn, e[0] || (e[0] = [
328
+ Oe('<path d="M10.5 5.5H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M10.5 10H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M10.5 15H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M3 15.083L4.042 16.125L7.167 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 6.083L4.042 7.125L7.167 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>', 5)
329
+ ]));
330
+ }
331
+ const $n = /* @__PURE__ */ H(xn, [["render", Ln]]), Sn = {}, In = {
332
+ width: "20",
333
+ height: "20",
334
+ viewBox: "0 0 20 20",
335
+ fill: "none",
336
+ xmlns: "http://www.w3.org/2000/svg"
337
+ };
338
+ function Vn(t, e) {
339
+ return p(), m("svg", In, e[0] || (e[0] = [
340
+ h("path", {
341
+ d: "M16.6673 5.83594L6.66732 5.83594M16.6673 5.83594L13.7507 8.7526M16.6673 5.83594L13.7507 2.91927M14.1673 14.1693L3.33398 14.1693M3.33398 14.1693L6.25065 17.0859M3.33398 14.1693L6.25065 11.2526",
342
+ stroke: "currentColor",
343
+ "stroke-width": "1.5",
344
+ "stroke-linecap": "round",
345
+ "stroke-linejoin": "round"
346
+ }, null, -1)
347
+ ]));
348
+ }
349
+ const Bn = /* @__PURE__ */ H(Sn, [["render", Vn]]), Rn = {}, Tn = {
350
+ width: "20",
351
+ height: "20",
352
+ viewBox: "0 0 20 20",
353
+ fill: "none",
354
+ xmlns: "http://www.w3.org/2000/svg"
355
+ };
356
+ function En(t, e) {
357
+ return p(), m("svg", Tn, e[0] || (e[0] = [
358
+ h("path", {
359
+ d: "M11.1667 10.9167V9.66667L14.845 5.98833C15.1576 5.67585 15.3332 5.25199 15.3333 4.81V3H2V4.85583C2.00004 5.27033 2.15454 5.66994 2.43333 5.97667L6.16667 10.0833V17.1667C6.16667 17.1667 7.37495 16.7639 8.14917 16.5058",
360
+ stroke: "currentColor",
361
+ "stroke-width": "1.5",
362
+ "stroke-linecap": "round",
363
+ "stroke-linejoin": "round"
364
+ }, null, -1),
365
+ h("path", {
366
+ d: "M15.4116 11.3639L11.4924 15.283C11.4138 15.3616 11.3636 15.4642 11.3498 15.5746L11.0994 17.5789C11.059 17.9025 11.3341 18.1776 11.6577 18.1371L13.6622 17.8861C13.7725 17.8722 13.8751 17.8221 13.9537 17.7435L17.8724 13.8248C18.0676 13.6296 18.0676 13.313 17.8724 13.1177L16.1187 11.364C15.9234 11.1687 15.6068 11.1687 15.4116 11.3639Z",
367
+ stroke: "currentColor",
368
+ "stroke-width": "1.5"
369
+ }, null, -1),
370
+ h("path", {
371
+ d: "M14 12L16.4608 14.4608",
372
+ stroke: "currentColor",
373
+ "stroke-width": "1.5"
374
+ }, null, -1)
375
+ ]));
376
+ }
377
+ const zn = /* @__PURE__ */ H(Rn, [["render", En]]), Hn = {}, Wn = {
378
+ width: "20",
379
+ height: "20",
380
+ viewBox: "0 0 20 20",
381
+ fill: "none",
382
+ xmlns: "http://www.w3.org/2000/svg"
383
+ };
384
+ function Dn(t, e) {
385
+ return p(), m("svg", Wn, e[0] || (e[0] = [
386
+ h("path", {
387
+ d: "M6.2832 15.8359H3.3332C3.11222 15.8359 2.90029 15.7482 2.74404 15.5919C2.58778 15.4356 2.5 15.2237 2.5 15.0027V4.16954C2.49995 4.06009 2.52146 3.9517 2.56331 3.85056C2.60516 3.74943 2.66652 3.65753 2.7439 3.58012C2.82127 3.50271 2.91314 3.4413 3.01426 3.3994C3.11537 3.3575 3.22375 3.33594 3.3332 3.33594H16.6668C16.7763 3.33594 16.8846 3.3575 16.9857 3.3994C17.0869 3.4413 17.1787 3.50271 17.2561 3.58012C17.3335 3.65753 17.3948 3.74943 17.4367 3.85056C17.4785 3.9517 17.5001 4.06009 17.5 4.16954V15.0027C17.5 15.2237 17.4122 15.4356 17.256 15.5919C17.0997 15.7482 16.8878 15.8359 16.6668 15.8359H5.38347",
388
+ stroke: "currentColor",
389
+ "stroke-width": "1.5",
390
+ "stroke-linecap": "round",
391
+ "stroke-linejoin": "round"
392
+ }, null, -1),
393
+ h("path", {
394
+ d: "M6.66406 2.5V5M13.3305 2.5V5M8.33046 10.8332L9.16406 11.6668L11.6641 9.1668",
395
+ stroke: "currentColor",
396
+ "stroke-width": "1.5",
397
+ "stroke-linecap": "round",
398
+ "stroke-linejoin": "round"
399
+ }, null, -1)
400
+ ]));
401
+ }
402
+ const Pn = /* @__PURE__ */ H(Hn, [["render", Dn]]), An = {}, On = {
403
+ width: "20",
404
+ height: "20",
405
+ viewBox: "0 0 20 20",
406
+ fill: "none",
407
+ xmlns: "http://www.w3.org/2000/svg"
408
+ };
409
+ function jn(t, e) {
410
+ return p(), m("svg", On, e[0] || (e[0] = [
411
+ Oe('<circle cx="4.5" cy="12.5" r="1.5" stroke="currentColor" stroke-width="1.5"></circle><circle cx="9.5" cy="8.5" r="1.5" transform="rotate(-180 9.5 8.5)" stroke="currentColor" stroke-width="1.5"></circle><circle cx="14.5" cy="12.5" r="1.5" stroke="currentColor" stroke-width="1.5"></circle><path d="M4.55469 10.5V2" stroke="currentColor" stroke-width="1.5"></path><path d="M9.44531 9.5L9.44531 18" stroke="currentColor" stroke-width="1.5"></path><path d="M14.5547 10.5V2" stroke="currentColor" stroke-width="1.5"></path><path d="M4.55469 18V15.5" stroke="currentColor" stroke-width="1.5"></path><path d="M9.44531 2L9.44531 5.5" stroke="currentColor" stroke-width="1.5"></path><path d="M14.5547 18V15.5" stroke="currentColor" stroke-width="1.5"></path>', 9)
412
+ ]));
413
+ }
414
+ const Fn = /* @__PURE__ */ H(An, [["render", jn]]), Nn = {}, Zn = {
415
+ width: "20",
416
+ height: "20",
417
+ viewBox: "0 0 20 20",
418
+ fill: "none",
419
+ xmlns: "http://www.w3.org/2000/svg"
420
+ };
421
+ function Un(t, e) {
422
+ return p(), m("svg", Zn, e[0] || (e[0] = [
423
+ h("path", {
424
+ d: "M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",
425
+ stroke: "currentColor",
426
+ "stroke-width": "1.5",
427
+ "stroke-linecap": "round",
428
+ "stroke-linejoin": "round"
429
+ }, null, -1),
430
+ h("path", {
431
+ d: "M16 16.8926V11M13.0537 13.9463H18.9463",
432
+ stroke: "currentColor",
433
+ "stroke-width": "1.5",
434
+ "stroke-linecap": "round",
435
+ "stroke-linejoin": "round"
436
+ }, null, -1)
437
+ ]));
438
+ }
439
+ const qn = /* @__PURE__ */ H(Nn, [["render", Un]]), Xn = {
261
440
  // arrow icons
262
- arrowDown: vt,
263
- arrowTop: Ct,
264
- arrowRight: $t,
441
+ arrowDown: ft,
442
+ arrowTop: wt,
443
+ arrowRight: St,
265
444
  arrowLeft: Rt,
266
- arrowReload: yt,
445
+ arrowReload: xt,
267
446
  // table icons
268
- columnInsert: Wt,
269
- freeze: Dt,
447
+ columnInsert: Ht,
448
+ freeze: At,
270
449
  unfreeze: Nt,
271
- columnsMove: Yt,
272
- empty: qt,
450
+ columnsMove: Jt,
451
+ empty: Xt,
273
452
  // actions icons
274
- listBullet: tn,
275
- listBulletHorizontal: sn,
276
- close: un
453
+ listBullet: nn,
454
+ listBulletHorizontal: rn,
455
+ close: dn,
456
+ // filter icons
457
+ filterSave: vn,
458
+ filterReset: Cn,
459
+ filterNew: yn,
460
+ filterMultiselect: $n,
461
+ filterExchange: Bn,
462
+ filterEdit: zn,
463
+ filterDateCheck: Pn,
464
+ filterAdvanced: Fn,
465
+ filterAdd: qn
277
466
  }, Y = /* @__PURE__ */ le({
278
467
  __name: "VIcon",
279
468
  props: {
280
469
  name: {}
281
470
  },
282
- setup(e) {
283
- const t = e, o = x(() => dn[t.name]);
284
- return (n, s) => o.value ? (p(), re(Oe(o.value), { key: 0 })) : H("", !0);
471
+ setup(t) {
472
+ const e = t, o = x(() => Xn[e.name]);
473
+ return (n, s) => o.value ? (p(), ae(je(o.value), { key: 0 })) : D("", !0);
285
474
  }
286
- }), pn = {}, mn = { class: "vt-loader" };
287
- function hn(e, t) {
288
- return p(), f("span", mn);
475
+ }), Gn = {}, Kn = { class: "vt-loader" };
476
+ function Yn(t, e) {
477
+ return p(), m("span", Kn);
289
478
  }
290
- const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "data-placement"], fn = {
479
+ const Ne = /* @__PURE__ */ H(Gn, [["render", Yn]]), Jn = ["disabled", "type", "data-placement"], Qn = {
291
480
  key: 2,
292
481
  class: "vt-button__content"
293
482
  }, ge = /* @__PURE__ */ le({
@@ -303,12 +492,12 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
303
492
  htmlType: { default: "button" }
304
493
  },
305
494
  emits: ["click"],
306
- setup(e, { emit: t }) {
307
- const o = e, n = t, s = Me(), l = x(() => !!(o.icon && o.shape)), r = x(() => {
308
- var k, S;
495
+ setup(t, { emit: e }) {
496
+ const o = t, n = e, s = Le(), l = x(() => !!(o.icon && o.shape)), a = x(() => {
497
+ var b, M;
309
498
  const c = s.default ? s.default({}) : null;
310
- return ((S = (k = c == null ? void 0 : c[0]) == null ? void 0 : k.children) == null ? void 0 : S.toString()) ?? "";
311
- }), i = x(() => [
499
+ return ((M = (b = c == null ? void 0 : c[0]) == null ? void 0 : b.children) == null ? void 0 : M.toString()) ?? "";
500
+ }), r = x(() => [
312
501
  "vt-button",
313
502
  `vt-button--${o.type}`,
314
503
  {
@@ -317,41 +506,41 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
317
506
  "vt-button--disabled": o.disabled || o.loading,
318
507
  "vt-button--loading": o.loading
319
508
  }
320
- ]), a = x(() => l.value && o.tooltip ? r.value : null), u = (c) => {
509
+ ]), i = x(() => l.value && o.tooltip ? a.value : null), u = (c) => {
321
510
  !o.disabled && !o.loading && n("click", c);
322
511
  };
323
- return (c, k) => {
324
- const S = je("tooltip");
325
- return $e((p(), f("button", {
326
- class: W(i.value),
512
+ return (c, b) => {
513
+ const M = Fe("tooltip");
514
+ return $e((p(), m("button", {
515
+ class: z(r.value),
327
516
  disabled: o.disabled || o.loading,
328
517
  type: o.htmlType,
329
518
  "data-placement": o.tooltipPlacement,
330
519
  onClick: u
331
520
  }, [
332
- o.loading ? (p(), re(Ne, {
521
+ o.loading ? (p(), ae(Ne, {
333
522
  key: 0,
334
523
  class: "vt-button__icon"
335
- })) : o.icon ? (p(), re(Y, {
524
+ })) : o.icon ? (p(), ae(Y, {
336
525
  key: 1,
337
526
  name: o.icon,
338
527
  class: "vt-button__icon"
339
- }, null, 8, ["name"])) : H("", !0),
340
- l.value ? H("", !0) : (p(), f("span", fn, [
528
+ }, null, 8, ["name"])) : D("", !0),
529
+ l.value ? D("", !0) : (p(), m("span", Qn, [
341
530
  pe(c.$slots, "default")
342
531
  ]))
343
- ], 10, vn)), [
344
- [S, a.value]
532
+ ], 10, Jn)), [
533
+ [M, i.value]
345
534
  ]);
346
535
  };
347
536
  }
348
- }), _n = {
537
+ }), eo = {
349
538
  key: 0,
350
539
  class: "vt-modal__header"
351
- }, gn = {
540
+ }, to = {
352
541
  key: 0,
353
542
  class: "vt-modal__title"
354
- }, Cn = { class: "vt-modal__content" }, Ze = /* @__PURE__ */ le({
543
+ }, no = { class: "vt-modal__content" }, Ze = /* @__PURE__ */ le({
355
544
  __name: "VModal",
356
545
  props: {
357
546
  modelValue: { type: Boolean },
@@ -362,43 +551,43 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
362
551
  zIndex: { default: 1e3 }
363
552
  },
364
553
  emits: ["update:modelValue", "close"],
365
- setup(e, { emit: t }) {
366
- const o = e, n = t, s = x(() => ["vt-modal__container", `vt-modal__container--${o.size}`]), l = x(() => ({
554
+ setup(t, { emit: e }) {
555
+ const o = t, n = e, s = x(() => ["vt-modal__container", `vt-modal__container--${o.size}`]), l = x(() => ({
367
556
  zIndex: o.zIndex
368
- })), r = () => {
557
+ })), a = () => {
369
558
  n("update:modelValue", !1), n("close");
370
- }, i = () => {
371
- o.closeOnBackdropClick && r();
559
+ }, r = () => {
560
+ o.closeOnBackdropClick && a();
372
561
  };
373
- return (a, u) => (p(), re(lt, { to: "body" }, [
374
- a.modelValue ? (p(), f("div", {
562
+ return (i, u) => (p(), ae(st, { to: "body" }, [
563
+ i.modelValue ? (p(), m("div", {
375
564
  key: 0,
376
565
  class: "vt-modal__backdrop",
377
- style: ie(l.value),
378
- onClick: i
566
+ style: re(l.value),
567
+ onClick: r
379
568
  }, [
380
- _("div", {
381
- class: W(s.value),
382
- onClick: u[0] || (u[0] = me(() => {
569
+ h("div", {
570
+ class: z(s.value),
571
+ onClick: u[0] || (u[0] = he(() => {
383
572
  }, ["stop"]))
384
573
  }, [
385
- a.title || a.showCloseButton ? (p(), f("div", _n, [
386
- a.title ? (p(), f("h2", gn, te(a.title), 1)) : H("", !0),
387
- a.showCloseButton ? (p(), re(Y, {
574
+ i.title || i.showCloseButton ? (p(), m("div", eo, [
575
+ i.title ? (p(), m("h2", to, te(i.title), 1)) : D("", !0),
576
+ i.showCloseButton ? (p(), ae(Y, {
388
577
  key: 1,
389
578
  name: "close",
390
579
  class: "vt-modal__close",
391
- onClick: r
392
- })) : H("", !0)
393
- ])) : H("", !0),
394
- _("div", Cn, [
395
- pe(a.$slots, "default")
580
+ onClick: a
581
+ })) : D("", !0)
582
+ ])) : D("", !0),
583
+ h("div", no, [
584
+ pe(i.$slots, "default")
396
585
  ])
397
586
  ], 2)
398
- ], 4)) : H("", !0)
587
+ ], 4)) : D("", !0)
399
588
  ]));
400
589
  }
401
- }), bn = { class: "vt-pagination" }, wn = { class: "vt-pagination__info" }, kn = { class: "vt-pagination__rows-per-page" }, yn = ["value"], xn = { class: "vt-pagination__navigation" }, Sn = ["disabled"], Mn = ["onClick"], $n = ["disabled"], Ln = /* @__PURE__ */ le({
590
+ }), oo = { class: "vt-pagination" }, lo = { class: "vt-pagination__info" }, so = { class: "vt-pagination__rows-per-page" }, ro = ["value"], io = { class: "vt-pagination__navigation" }, ao = ["disabled"], co = ["onClick"], uo = ["disabled"], po = /* @__PURE__ */ le({
402
591
  __name: "VPagination",
403
592
  props: {
404
593
  totalItems: {},
@@ -408,95 +597,95 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
408
597
  maxVisiblePages: { default: 6 }
409
598
  },
410
599
  emits: ["update:currentPage", "update:pageSize", "pageChange", "reloadData"],
411
- setup(e, { emit: t }) {
412
- const o = e, n = t, s = x({
600
+ setup(t, { emit: e }) {
601
+ const o = t, n = e, s = x({
413
602
  get: () => o.currentPage,
414
- set: (M) => n("update:currentPage", M)
603
+ set: (L) => n("update:currentPage", L)
415
604
  }), l = x({
416
605
  get: () => o.pageSize,
417
- set: (M) => n("update:pageSize", M)
418
- }), r = x(() => Math.ceil(o.totalItems / l.value)), i = x(() => o.totalItems === 0 ? 0 : (s.value - 1) * l.value + 1), a = x(() => Math.min(s.value * l.value, o.totalItems)), u = x(() => s.value <= 1), c = x(() => s.value >= r.value), k = x(() => {
419
- const M = [], V = r.value, R = s.value, X = o.maxVisiblePages;
420
- if (V <= X)
421
- for (let y = 1; y <= V; y++)
422
- M.push(y);
606
+ set: (L) => n("update:pageSize", L)
607
+ }), a = x(() => Math.ceil(o.totalItems / l.value)), r = x(() => o.totalItems === 0 ? 0 : (s.value - 1) * l.value + 1), i = x(() => Math.min(s.value * l.value, o.totalItems)), u = x(() => s.value <= 1), c = x(() => s.value >= a.value), b = x(() => {
608
+ const L = [], W = a.value, B = s.value, G = o.maxVisiblePages;
609
+ if (W <= G)
610
+ for (let y = 1; y <= W; y++)
611
+ L.push(y);
423
612
  else {
424
- M.push(1);
425
- const y = Math.max(2, R - Math.floor(X / 2)), E = Math.min(V - 1, R + Math.floor(X / 2));
426
- y > 2 && M.push("...");
613
+ L.push(1);
614
+ const y = Math.max(2, B - Math.floor(G / 2)), E = Math.min(W - 1, B + Math.floor(G / 2));
615
+ y > 2 && L.push("...");
427
616
  for (let $ = y; $ <= E; $++)
428
- M.push($);
429
- E < V - 1 && M.push("..."), V > 1 && M.push(V);
617
+ L.push($);
618
+ E < W - 1 && L.push("..."), W > 1 && L.push(W);
430
619
  }
431
- return M;
432
- }), S = () => {
620
+ return L;
621
+ }), M = () => {
433
622
  n("pageChange", {
434
623
  page: s.value,
435
624
  pageSize: l.value
436
625
  });
437
- }, q = (M) => {
438
- typeof M == "number" && M !== s.value && (s.value = M, S());
439
- }, j = () => {
440
- u.value || (s.value--, S());
441
- }, Q = () => {
442
- c.value || (s.value++, S());
626
+ }, X = (L) => {
627
+ typeof L == "number" && L !== s.value && (s.value = L, M());
443
628
  }, F = () => {
444
- s.value = 1, S();
629
+ u.value || (s.value--, M());
630
+ }, Q = () => {
631
+ c.value || (s.value++, M());
632
+ }, U = () => {
633
+ s.value = 1, M();
445
634
  }, N = () => {
446
635
  n("reloadData", s.value);
447
636
  };
448
- return he(
637
+ return me(
449
638
  () => o.totalItems,
450
639
  () => {
451
- s.value > r.value && r.value > 0 && (s.value = r.value, S());
640
+ s.value > a.value && a.value > 0 && (s.value = a.value, M());
452
641
  }
453
- ), (M, V) => (p(), f("div", bn, [
454
- _("div", wn, [
455
- _("div", kn, [
456
- V[1] || (V[1] = _("label", {
642
+ ), (L, W) => (p(), m("div", oo, [
643
+ h("div", lo, [
644
+ h("div", so, [
645
+ W[1] || (W[1] = h("label", {
457
646
  for: "rowsSelect",
458
647
  class: "vt-pagination__label"
459
648
  }, "Рядків на сторінку:", -1)),
460
- $e(_("select", {
649
+ $e(h("select", {
461
650
  id: "rowsSelect",
462
- "onUpdate:modelValue": V[0] || (V[0] = (R) => l.value = R),
463
- onChange: F,
651
+ "onUpdate:modelValue": W[0] || (W[0] = (B) => l.value = B),
652
+ onChange: U,
464
653
  class: "vt-pagination__select"
465
654
  }, [
466
- (p(!0), f(ne, null, oe(M.pageSizeOptions, (R) => (p(), f("option", {
467
- key: R,
468
- value: R
469
- }, te(R), 9, yn))), 128))
655
+ (p(!0), m(ne, null, oe(L.pageSizeOptions, (B) => (p(), m("option", {
656
+ key: B,
657
+ value: B
658
+ }, te(B), 9, ro))), 128))
470
659
  ], 544), [
471
- [st, l.value]
660
+ [rt, l.value]
472
661
  ])
473
662
  ]),
474
- _("span", null, te(i.value) + " - " + te(a.value) + " з " + te(M.totalItems), 1)
663
+ h("span", null, te(r.value) + " - " + te(i.value) + " з " + te(L.totalItems), 1)
475
664
  ]),
476
- _("div", xn, [
477
- _("button", {
478
- onClick: j,
665
+ h("div", io, [
666
+ h("button", {
667
+ onClick: F,
479
668
  disabled: u.value,
480
- class: W({ "vt-pagination__nav-button": !0, "has-items": !u.value })
669
+ class: z({ "vt-pagination__nav-button": !0, "has-items": !u.value })
481
670
  }, [
482
671
  Z(Y, { name: "arrowLeft" })
483
- ], 10, Sn),
484
- (p(!0), f(ne, null, oe(k.value, (R) => (p(), f("button", {
485
- key: R,
486
- onClick: (X) => q(R),
487
- class: W(["vt-pagination__nav-button", {
488
- "vt-pagination__nav-button--active": R === s.value
672
+ ], 10, ao),
673
+ (p(!0), m(ne, null, oe(b.value, (B) => (p(), m("button", {
674
+ key: B,
675
+ onClick: (G) => X(B),
676
+ class: z(["vt-pagination__nav-button", {
677
+ "vt-pagination__nav-button--active": B === s.value
489
678
  }])
490
- }, te(R), 11, Mn))), 128)),
491
- _("button", {
679
+ }, te(B), 11, co))), 128)),
680
+ h("button", {
492
681
  onClick: Q,
493
682
  disabled: c.value,
494
- class: W({ "vt-pagination__nav-button": !0, "has-items": !c.value })
683
+ class: z({ "vt-pagination__nav-button": !0, "has-items": !c.value })
495
684
  }, [
496
685
  Z(Y, { name: "arrowRight" })
497
- ], 10, $n)
686
+ ], 10, uo)
498
687
  ]),
499
- _("div", null, [
688
+ h("div", null, [
500
689
  Z(ge, {
501
690
  icon: "arrowReload",
502
691
  shape: "circle",
@@ -504,7 +693,7 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
504
693
  tooltipPlacement: "left",
505
694
  onClick: N
506
695
  }, {
507
- default: xe(() => V[2] || (V[2] = [
696
+ default: xe(() => W[2] || (W[2] = [
508
697
  _e("Оновити дані ", -1)
509
698
  ])),
510
699
  _: 1,
@@ -513,7 +702,7 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
513
702
  ])
514
703
  ]));
515
704
  }
516
- }), In = ["for"], Bn = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], ue = /* @__PURE__ */ le({
705
+ }), ho = ["for"], mo = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], ue = /* @__PURE__ */ le({
517
706
  __name: "VCheckbox",
518
707
  props: {
519
708
  modelValue: { type: Boolean, default: void 0 },
@@ -530,18 +719,18 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
530
719
  isDouble: { type: Boolean, default: !1 }
531
720
  },
532
721
  emits: ["update:modelValue", "change", "focus", "blur"],
533
- setup(e, { emit: t }) {
534
- const o = e, n = t, s = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, l = x(() => o.id || s()), r = x(() => o.modelValue ?? o.checked), i = (c) => {
722
+ setup(t, { emit: e }) {
723
+ const o = t, n = e, s = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, l = x(() => o.id || s()), a = x(() => o.modelValue ?? o.checked), r = (c) => {
535
724
  if (o.disabled) return;
536
- const S = c.target.checked;
537
- n("update:modelValue", S), n("change", S, c);
538
- }, a = (c) => {
725
+ const M = c.target.checked;
726
+ n("update:modelValue", M), n("change", M, c);
727
+ }, i = (c) => {
539
728
  n("focus", c);
540
729
  }, u = (c) => {
541
730
  n("blur", c);
542
731
  };
543
- return (c, k) => (p(), f("label", {
544
- class: W([
732
+ return (c, b) => (p(), m("label", {
733
+ class: z([
545
734
  "vt-checkbox",
546
735
  `vt-checkbox--${c.size}`,
547
736
  `vt-checkbox--${c.variant}`,
@@ -552,37 +741,37 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
552
741
  ]),
553
742
  for: l.value
554
743
  }, [
555
- _("input", {
744
+ h("input", {
556
745
  id: l.value,
557
746
  name: c.name,
558
747
  value: c.value,
559
- checked: r.value,
748
+ checked: a.value,
560
749
  disabled: c.disabled,
561
750
  required: c.required,
562
751
  ".indeterminate": c.indeterminate,
563
752
  type: "checkbox",
564
753
  class: "vt-checkbox__input",
565
- onChange: i,
566
- onFocus: a,
754
+ onChange: r,
755
+ onFocus: i,
567
756
  onBlur: u
568
- }, null, 40, Bn),
569
- _("div", {
570
- class: W([
757
+ }, null, 40, mo),
758
+ h("div", {
759
+ class: z([
571
760
  "vt-checkbox__box",
572
761
  {
573
- "vt-checkbox__box--checked": r.value && !c.indeterminate && !c.isDouble,
762
+ "vt-checkbox__box--checked": a.value && !c.indeterminate && !c.isDouble,
574
763
  "vt-checkbox__box--indeterminate": c.indeterminate,
575
- "vt-checkbox__box--double": c.isDouble && r.value,
764
+ "vt-checkbox__box--double": c.isDouble && a.value,
576
765
  "vt-checkbox__box--disabled": c.disabled
577
766
  }
578
767
  ])
579
768
  }, [
580
- !c.indeterminate && !c.isDouble ? (p(), f("svg", {
769
+ !c.indeterminate && !c.isDouble ? (p(), m("svg", {
581
770
  key: 0,
582
- class: W([
771
+ class: z([
583
772
  "vt-checkbox__checkmark",
584
773
  {
585
- "vt-checkbox__checkmark--checked": r.value
774
+ "vt-checkbox__checkmark--checked": a.value
586
775
  }
587
776
  ]),
588
777
  width: "10",
@@ -590,20 +779,20 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
590
779
  viewBox: "0 0 10 9",
591
780
  fill: "none",
592
781
  xmlns: "http://www.w3.org/2000/svg"
593
- }, k[0] || (k[0] = [
594
- _("path", {
782
+ }, b[0] || (b[0] = [
783
+ h("path", {
595
784
  d: "M1 5L3.58264 7.58264C3.80112 7.80112 4.16348 7.77113 4.34306 7.51971L9 1",
596
785
  stroke: "currentColor",
597
786
  "stroke-width": "2",
598
787
  "stroke-linecap": "round"
599
788
  }, null, -1)
600
- ]), 2)) : H("", !0),
601
- c.isDouble && r.value ? (p(), f("svg", {
789
+ ]), 2)) : D("", !0),
790
+ c.isDouble && a.value ? (p(), m("svg", {
602
791
  key: 1,
603
- class: W([
792
+ class: z([
604
793
  "vt-checkbox__checkmark",
605
794
  {
606
- "vt-checkbox__checkmark--checked": r.value
795
+ "vt-checkbox__checkmark--checked": a.value
607
796
  }
608
797
  ]),
609
798
  width: "13",
@@ -611,35 +800,35 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
611
800
  viewBox: "0 0 13 6",
612
801
  fill: "none",
613
802
  xmlns: "http://www.w3.org/2000/svg"
614
- }, k[1] || (k[1] = [
615
- _("path", {
803
+ }, b[1] || (b[1] = [
804
+ h("path", {
616
805
  d: "M6 3L8.25 5L12 1",
617
806
  stroke: "currentColor",
618
807
  "stroke-width": "2",
619
808
  "stroke-linecap": "round",
620
809
  "stroke-linejoin": "round"
621
810
  }, null, -1),
622
- _("path", {
811
+ h("path", {
623
812
  d: "M1 3L3.25 5L7 1",
624
813
  stroke: "currentColor",
625
814
  "stroke-width": "2",
626
815
  "stroke-linecap": "round",
627
816
  "stroke-linejoin": "round"
628
817
  }, null, -1)
629
- ]), 2)) : H("", !0),
630
- c.indeterminate ? (p(), f("div", {
818
+ ]), 2)) : D("", !0),
819
+ c.indeterminate ? (p(), m("div", {
631
820
  key: 2,
632
- class: W([
821
+ class: z([
633
822
  "vt-checkbox__indeterminate-mark",
634
823
  {
635
824
  "vt-checkbox__indeterminate-mark--visible": c.indeterminate
636
825
  }
637
826
  ])
638
- }, null, 2)) : H("", !0)
827
+ }, null, 2)) : D("", !0)
639
828
  ], 2),
640
- c.label || c.$slots.label || c.$slots.default ? (p(), f("span", {
829
+ c.label || c.$slots.label || c.$slots.default ? (p(), m("span", {
641
830
  key: 0,
642
- class: W([
831
+ class: z([
643
832
  "vt-checkbox__label",
644
833
  {
645
834
  "vt-checkbox__label--disabled": c.disabled
@@ -651,264 +840,264 @@ const Ne = /* @__PURE__ */ K(pn, [["render", hn]]), vn = ["disabled", "type", "d
651
840
  _e(te(c.label), 1)
652
841
  ])
653
842
  ])
654
- ], 2)) : H("", !0)
655
- ], 10, In));
843
+ ], 2)) : D("", !0)
844
+ ], 10, ho));
656
845
  }
657
846
  });
658
- function Rn(e) {
659
- const t = x(() => [...e].sort((s, l) => s.pinnedLeft && !l.pinnedLeft ? -1 : !s.pinnedLeft && l.pinnedLeft || s.pinnedRight && !l.pinnedRight ? 1 : !s.pinnedRight && l.pinnedRight ? -1 : 0)), o = () => {
660
- const s = t.value.length, l = t.value.filter((c) => c.width || c.minWidth), r = l.reduce((c, k) => c + (k.width || k.minWidth || 0), 0), i = s - l.length;
661
- if (i === 0) return 150;
662
- const u = Math.max(800 - r, i * 80);
663
- return Math.max(Math.floor(u / i), 120);
847
+ function vo(t) {
848
+ const e = x(() => [...t].sort((s, l) => s.pinnedLeft && !l.pinnedLeft ? -1 : !s.pinnedLeft && l.pinnedLeft || s.pinnedRight && !l.pinnedRight ? 1 : !s.pinnedRight && l.pinnedRight ? -1 : 0)), o = () => {
849
+ const s = e.value.length, l = e.value.filter((c) => c.width || c.minWidth), a = l.reduce((c, b) => c + (b.width || b.minWidth || 0), 0), r = s - l.length;
850
+ if (r === 0) return 150;
851
+ const u = Math.max(800 - a, r * 80);
852
+ return Math.max(Math.floor(u / r), 120);
664
853
  };
665
854
  return {
666
- sortedColumns: t,
855
+ sortedColumns: e,
667
856
  getDefaultColumnWidth: o,
668
- getStickyOffset: (s, l, r = !1) => {
669
- const i = t.value;
670
- let a = 0;
857
+ getStickyOffset: (s, l, a = !1) => {
858
+ const r = e.value;
859
+ let i = 0;
671
860
  if (s === "left") {
672
- r && (a += 50);
861
+ a && (i += 50);
673
862
  for (let u = 0; u < l; u++) {
674
- const c = i[u];
675
- c.pinnedLeft && (a += c.width || c.minWidth || o());
863
+ const c = r[u];
864
+ c.pinnedLeft && (i += c.width || c.minWidth || o());
676
865
  }
677
866
  } else
678
- for (let u = i.length - 1; u > l; u--) {
679
- const c = i[u];
680
- c.pinnedRight && (a += c.width || c.minWidth || o());
867
+ for (let u = r.length - 1; u > l; u--) {
868
+ const c = r[u];
869
+ c.pinnedRight && (i += c.width || c.minWidth || o());
681
870
  }
682
- return a;
871
+ return i;
683
872
  }
684
873
  };
685
874
  }
686
- function Tn(e) {
687
- const t = () => {
875
+ function fo(t) {
876
+ const e = () => {
688
877
  const l = {};
689
- return e.maxHeight && (l.maxHeight = `${e.maxHeight}px`), l;
690
- }, o = (l, r, i, a) => {
878
+ return t.maxHeight && (l.maxHeight = `${t.maxHeight}px`), l;
879
+ }, o = (l, a, r, i) => {
691
880
  const u = {};
692
881
  if (l.width)
693
882
  u.width = `${l.width}px`, u.minWidth = `${l.width}px`, u.maxWidth = `${l.width}px`;
694
883
  else if (l.minWidth)
695
884
  u.minWidth = `${l.minWidth}px`, u.width = `${l.minWidth}px`, u.maxWidth = "none";
696
885
  else {
697
- const c = a();
886
+ const c = i();
698
887
  u.width = `${c}px`, u.minWidth = "80px", u.maxWidth = "none";
699
888
  }
700
- return l.pinnedLeft ? (u.position = "sticky", u.left = `${i("left", r, e.selectable)}px`, u.zIndex = "10") : l.pinnedRight && (u.position = "sticky", u.right = `${i("right", r, !1)}px`, u.zIndex = "10"), u;
889
+ return l.pinnedLeft ? (u.position = "sticky", u.left = `${r("left", a, t.selectable)}px`, u.zIndex = "10") : l.pinnedRight && (u.position = "sticky", u.right = `${r("right", a, !1)}px`, u.zIndex = "10"), u;
701
890
  };
702
891
  return {
703
- getTableWrapperStyle: t,
892
+ getTableWrapperStyle: e,
704
893
  getColumnStyle: o,
705
- getHeaderStyle: (l, r, i, a) => {
706
- const u = o(l, r, i, a);
707
- return e.maxHeight && (u.position = "sticky", u.top = "0", l.pinnedLeft || l.pinnedRight ? u.zIndex = "12" : u.zIndex = "11"), u;
894
+ getHeaderStyle: (l, a, r, i) => {
895
+ const u = o(l, a, r, i);
896
+ return t.maxHeight && (u.position = "sticky", u.top = "0", l.pinnedLeft || l.pinnedRight ? u.zIndex = "12" : u.zIndex = "11"), u;
708
897
  },
709
- getFooterStyle: (l, r, i, a) => {
710
- const u = o(l, r, i, a);
711
- return e.maxHeight && (u.position = "sticky", u.bottom = "0", l.pinnedLeft || l.pinnedRight ? u.zIndex = "12" : u.zIndex = "11"), u;
898
+ getFooterStyle: (l, a, r, i) => {
899
+ const u = o(l, a, r, i);
900
+ return t.maxHeight && (u.position = "sticky", u.bottom = "0", l.pinnedLeft || l.pinnedRight ? u.zIndex = "12" : u.zIndex = "11"), u;
712
901
  }
713
902
  };
714
903
  }
715
- function zn() {
716
- const e = D({
904
+ function _o() {
905
+ const t = A({
717
906
  resizingCol: null,
718
907
  startX: 0,
719
908
  startWidth: 0
720
- }), t = `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M5 13L2 10L5 7' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M15 7L18 10L15 13' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 3L10 17' stroke='%23828282' stroke-width='3' stroke-linecap='round'/></svg>") 10 10, col-resize`;
909
+ }), e = `url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M5 13L2 10L5 7' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M15 7L18 10L15 13' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 3L10 17' stroke='%23828282' stroke-width='3' stroke-linecap='round'/></svg>") 10 10, col-resize`;
721
910
  return {
722
- onMouseDown: (n, s, l, r) => {
723
- n.preventDefault(), n.stopPropagation(), e.value.resizingCol = s, e.value.startX = n.clientX, e.value.startWidth = s.width || s.minWidth || l(s.prop);
724
- const i = (u) => {
725
- const { resizingCol: c, startX: k, startWidth: S } = e.value;
911
+ onMouseDown: (n, s, l, a) => {
912
+ n.preventDefault(), n.stopPropagation(), t.value.resizingCol = s, t.value.startX = n.clientX, t.value.startWidth = s.width || s.minWidth || l(s.prop);
913
+ const r = (u) => {
914
+ const { resizingCol: c, startX: b, startWidth: M } = t.value;
726
915
  if (!c) return;
727
916
  document.querySelectorAll(`[data-resizer="${c.prop}"]`).forEach((N) => {
728
917
  N.classList.add("vt-table__resizer--active");
729
918
  });
730
- const q = u.clientX - k, j = c.minWidth || 50, Q = c.maxWidth || 1e3, F = Math.max(Math.min(S + q, Q), j);
731
- c.width = F;
732
- }, a = () => {
733
- const { resizingCol: u } = e.value;
734
- document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), u && (document.querySelectorAll(`[data-resizer="${u.prop}"]`).forEach((c) => {
919
+ const X = u.clientX - b, F = c.minWidth || 50, Q = c.maxWidth || 1e3, U = Math.max(Math.min(M + X, Q), F);
920
+ c.width = U;
921
+ }, i = () => {
922
+ const { resizingCol: u } = t.value;
923
+ document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", i), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), u && (document.querySelectorAll(`[data-resizer="${u.prop}"]`).forEach((c) => {
735
924
  c.classList.remove("vt-table__resizer--active");
736
- }), r && u.width && r(u.width)), e.value.resizingCol = null;
925
+ }), a && u.width && a(u.width)), t.value.resizingCol = null;
737
926
  };
738
- document.addEventListener("mousemove", i), document.addEventListener("mouseup", a), document.body.style.cursor = t, document.body.style.userSelect = "none", document.body.classList.add("vt-table-resizing");
927
+ document.addEventListener("mousemove", r), document.addEventListener("mouseup", i), document.body.style.cursor = e, document.body.style.userSelect = "none", document.body.classList.add("vt-table-resizing");
739
928
  },
740
- resizeState: e
929
+ resizeState: t
741
930
  };
742
931
  }
743
- function En(e, t, o, n) {
932
+ function go(t, e, o, n) {
744
933
  var J;
745
- const s = e.selectionKey || "id", l = D([]), r = D(null), i = D(!1);
746
- (J = e.defaultSelection) != null && J.length && (l.value = [...e.defaultSelection]);
747
- const a = (m) => m[s], u = (m) => i.value ? !0 : l.value.some((A) => a(A) === a(m)), c = x(() => t.value.filter((m) => u(m)).length), k = x(() => t.value.length > 0 && c.value === t.value.length), S = x(() => {
748
- if (i.value) return !1;
749
- const m = c.value;
750
- return m > 0 && m < t.value.length;
751
- }), q = x(() => i.value ? !0 : k.value && !S.value), j = x(() => i.value), Q = (m, A) => {
752
- const T = a(m), G = l.value.some((v) => a(v) === a(m)), d = A !== void 0 ? A : !G;
753
- if (i.value && !d) {
754
- i.value = !1, n != null && n.value && (l.value = n.value.filter((v) => a(v) !== T)), $(m, !1);
934
+ const s = t.selectionKey || "id", l = A([]), a = A(null), r = A(!1);
935
+ (J = t.defaultSelection) != null && J.length && (l.value = [...t.defaultSelection]);
936
+ const i = (v) => v[s], u = (v) => r.value ? !0 : l.value.some((O) => i(O) === i(v)), c = x(() => e.value.filter((v) => u(v)).length), b = x(() => e.value.length > 0 && c.value === e.value.length), M = x(() => {
937
+ if (r.value) return !1;
938
+ const v = c.value;
939
+ return v > 0 && v < e.value.length;
940
+ }), X = x(() => r.value ? !0 : b.value && !M.value), F = x(() => r.value), Q = (v, O) => {
941
+ const R = i(v), K = l.value.some((_) => i(_) === i(v)), d = O !== void 0 ? O : !K;
942
+ if (r.value && !d) {
943
+ r.value = !1, n != null && n.value && (l.value = n.value.filter((_) => i(_) !== R)), $(v, !1);
755
944
  return;
756
945
  }
757
- i.value && d || (d && !G ? l.value.push(m) : !d && G && (l.value = l.value.filter((v) => a(v) !== T)), e.selectOnClickRow && A === void 0 && X(d ? m : null), $(m, d));
758
- }, F = () => {
946
+ r.value && d || (d && !K ? l.value.push(v) : !d && K && (l.value = l.value.filter((_) => i(_) !== R)), t.selectOnClickRow && O === void 0 && G(d ? v : null), $(v, d));
947
+ }, U = () => {
759
948
  switch (N()) {
760
949
  case "none":
761
950
  case "partial":
762
- M();
951
+ L();
763
952
  break;
764
953
  case "allVisible":
765
- V();
954
+ W();
766
955
  break;
767
956
  case "absoluteAll":
768
- R();
957
+ B();
769
958
  break;
770
959
  }
771
- }, N = () => i.value ? "absoluteAll" : k.value ? "allVisible" : c.value > 0 ? "partial" : "none", M = () => {
772
- const m = [], A = new Set(l.value.map((T) => a(T)));
773
- l.value.forEach((T) => {
774
- m.push(T);
775
- }), t.value.forEach((T) => {
776
- A.has(a(T)) || m.push(T);
777
- }), l.value = m, i.value = !1, $();
778
- }, V = () => {
779
- i.value = !0, n != null && n.value ? l.value = [...n.value] : l.value = [...t.value], $(void 0, void 0, !0);
780
- }, R = () => {
781
- l.value = [], i.value = !1, r.value = null, $();
782
- }, X = (m) => {
783
- const A = r.value;
784
- r.value = m, o("current-change", {
785
- currentRow: r.value,
786
- oldCurrentRow: A
960
+ }, N = () => r.value ? "absoluteAll" : b.value ? "allVisible" : c.value > 0 ? "partial" : "none", L = () => {
961
+ const v = [], O = new Set(l.value.map((R) => i(R)));
962
+ l.value.forEach((R) => {
963
+ v.push(R);
964
+ }), e.value.forEach((R) => {
965
+ O.has(i(R)) || v.push(R);
966
+ }), l.value = v, r.value = !1, $();
967
+ }, W = () => {
968
+ r.value = !0, n != null && n.value ? l.value = [...n.value] : l.value = [...e.value], $(void 0, void 0, !0);
969
+ }, B = () => {
970
+ l.value = [], r.value = !1, a.value = null, $();
971
+ }, G = (v) => {
972
+ const O = a.value;
973
+ a.value = v, o("current-change", {
974
+ currentRow: a.value,
975
+ oldCurrentRow: O
787
976
  });
788
- }, y = () => [...l.value], E = (m) => {
789
- l.value = [...m], i.value = !1, $();
790
- }, $ = (m, A, T = !1) => {
791
- const G = {
977
+ }, y = () => [...l.value], E = (v) => {
978
+ l.value = [...v], r.value = !1, $();
979
+ }, $ = (v, O, R = !1) => {
980
+ const K = {
792
981
  selection: [...l.value],
793
- row: m,
794
- selected: A,
795
- isAllSelected: T || i.value
982
+ row: v,
983
+ selected: O,
984
+ isAllSelected: R || r.value
796
985
  };
797
- o("selection-change", G);
986
+ o("selection-change", K);
798
987
  };
799
- return he(
800
- () => e.defaultSelection,
801
- (m) => {
802
- m != null && m.length && (l.value = [...m]);
988
+ return me(
989
+ () => t.defaultSelection,
990
+ (v) => {
991
+ v != null && v.length && (l.value = [...v]);
803
992
  }
804
993
  ), {
805
994
  selectedRows: l,
806
- currentRow: r,
995
+ currentRow: a,
807
996
  isRowSelected: u,
808
- isAllSelected: q,
809
- isIndeterminate: S,
810
- isDoubleCheck: j,
811
- isFullSelection: i,
997
+ isAllSelected: X,
998
+ isIndeterminate: M,
999
+ isDoubleCheck: F,
1000
+ isFullSelection: r,
812
1001
  toggleRowSelection: Q,
813
- toggleAllSelection: F,
814
- clearSelection: R,
815
- setCurrentRow: X,
1002
+ toggleAllSelection: U,
1003
+ clearSelection: B,
1004
+ setCurrentRow: G,
816
1005
  getSelectionRows: y,
817
1006
  setSelectionRows: E,
818
- selectAbsolutelyAll: V
1007
+ selectAbsolutelyAll: W
819
1008
  };
820
1009
  }
821
- function Wn(e, t) {
822
- if (!e)
823
- return String(t.value ?? "");
1010
+ function Co(t, e) {
1011
+ if (!t)
1012
+ return String(e.value ?? "");
824
1013
  try {
825
- const o = e(t);
1014
+ const o = t(e);
826
1015
  return o;
827
1016
  } catch (o) {
828
- return console.error("Error rendering table slot:", o), String(t.value ?? "");
1017
+ return console.error("Error rendering table slot:", o), String(e.value ?? "");
829
1018
  }
830
1019
  }
831
- const Vn = (e, t, o = "asc") => {
832
- if (e == null && t == null) return 0;
833
- if (e == null) return o === "asc" ? 1 : -1;
834
- if (t == null) return o === "asc" ? -1 : 1;
835
- if (e === t) return 0;
1020
+ const wo = (t, e, o = "asc") => {
1021
+ if (t == null && e == null) return 0;
1022
+ if (t == null) return o === "asc" ? 1 : -1;
1023
+ if (e == null) return o === "asc" ? -1 : 1;
1024
+ if (t === e) return 0;
836
1025
  let n = 0;
837
- const s = Number(e), l = Number(t);
838
- return !isNaN(s) && !isNaN(l) ? n = s - l : Ee(e) && Ee(t) ? n = new Date(e).getTime() - new Date(t).getTime() : typeof e == "boolean" && typeof t == "boolean" ? n = e === t ? 0 : e ? -1 : 1 : n = String(e).localeCompare(String(t), void 0, {
1026
+ const s = Number(t), l = Number(e);
1027
+ return !isNaN(s) && !isNaN(l) ? n = s - l : Ee(t) && Ee(e) ? n = new Date(t).getTime() - new Date(e).getTime() : typeof t == "boolean" && typeof e == "boolean" ? n = t === e ? 0 : t ? -1 : 1 : n = String(t).localeCompare(String(e), void 0, {
839
1028
  numeric: !0,
840
1029
  sensitivity: "base"
841
1030
  }), o === "desc" ? -n : n;
842
- }, Ee = (e) => e instanceof Date ? !isNaN(e.getTime()) : typeof e == "string" && /\d{4}-\d{2}-\d{2}|\//.test(e) ? !isNaN(new Date(e).getTime()) : !1, Hn = (e, t, o) => {
843
- e.sortable && o({
844
- prop: e.prop,
845
- direction: t
1031
+ }, Ee = (t) => t instanceof Date ? !isNaN(t.getTime()) : typeof t == "string" && /\d{4}-\d{2}-\d{2}|\//.test(t) ? !isNaN(new Date(t).getTime()) : !1, ko = (t, e, o) => {
1032
+ t.sortable && o({
1033
+ prop: t.prop,
1034
+ direction: e
846
1035
  });
847
- }, We = (e, t) => {
848
- const o = (t == null ? void 0 : t.prop) === e.prop, n = t == null ? void 0 : t.direction;
1036
+ }, ze = (t, e) => {
1037
+ const o = (e == null ? void 0 : e.prop) === t.prop, n = e == null ? void 0 : e.direction;
849
1038
  return {
850
1039
  asc: ["vt-th__sort-icon", o && n === "asc" && "vt-th__sortable-active"].filter(Boolean).join(" "),
851
1040
  desc: ["vt-th__sort-icon", o && n === "desc" && "vt-th__sortable-active"].filter(Boolean).join(" ")
852
1041
  };
853
- }, Pn = (e, t, o) => {
854
- if (!t) return [...e];
855
- const n = o.find((l) => l.prop === t.prop);
856
- if (!(n != null && n.sortable)) return [...e];
857
- const s = n.sortMethod || Vn;
858
- return [...e].sort((l, r) => {
859
- const i = l[n.prop], a = r[n.prop];
860
- return s(i, a, t.direction);
1042
+ }, bo = (t, e, o) => {
1043
+ if (!e) return [...t];
1044
+ const n = o.find((l) => l.prop === e.prop);
1045
+ if (!(n != null && n.sortable)) return [...t];
1046
+ const s = n.sortMethod || wo;
1047
+ return [...t].sort((l, a) => {
1048
+ const r = l[n.prop], i = a[n.prop];
1049
+ return s(r, i, e.direction);
861
1050
  });
862
1051
  };
863
- class Dn {
1052
+ class yo {
864
1053
  constructor() {
865
1054
  this.modalStack = [], this.baseZIndex = 1e3;
866
1055
  }
867
- open(t = {}) {
1056
+ open(e = {}) {
868
1057
  const o = `modal-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, n = document.createElement("div");
869
1058
  n.setAttribute("data-vt-modal", o), document.body.appendChild(n);
870
- const s = D(!0), l = this.baseZIndex + this.modalStack.length * 10, r = it({
1059
+ const s = A(!0), l = this.baseZIndex + this.modalStack.length * 10, a = it({
871
1060
  setup() {
872
- const a = () => {
1061
+ const i = () => {
873
1062
  s.value = !1, setTimeout(() => {
874
- ae.closeById(o);
1063
+ ie.closeById(o);
875
1064
  }, 100);
876
1065
  };
877
- return () => ke(
1066
+ return () => be(
878
1067
  Ze,
879
1068
  {
880
1069
  modelValue: s.value,
881
- "onUpdate:modelValue": a,
882
- title: t.title,
883
- size: t.size || "medium",
884
- showCloseButton: t.showCloseButton !== !1,
885
- closeOnBackdropClick: t.closeOnBackdropClick !== !1,
886
- onClose: a,
1070
+ "onUpdate:modelValue": i,
1071
+ title: e.title,
1072
+ size: e.size || "medium",
1073
+ showCloseButton: e.showCloseButton !== !1,
1074
+ closeOnBackdropClick: e.closeOnBackdropClick !== !1,
1075
+ onClose: i,
887
1076
  zIndex: l
888
1077
  },
889
1078
  {
890
- default: () => t.component ? ke(t.component, t.props || {}) : t.content ? ke("div", { innerHTML: t.content }) : null
1079
+ default: () => e.component ? be(e.component, e.props || {}) : e.content ? be("div", { innerHTML: e.content }) : null
891
1080
  }
892
1081
  );
893
1082
  }
894
1083
  });
895
- r.mount(n);
896
- const i = {
1084
+ a.mount(n);
1085
+ const r = {
897
1086
  id: o,
898
- app: r,
1087
+ app: a,
899
1088
  container: n,
900
1089
  isOpen: s
901
1090
  };
902
- return this.modalStack.push(i), o;
1091
+ return this.modalStack.push(r), o;
903
1092
  }
904
1093
  close() {
905
1094
  if (this.modalStack.length > 0) {
906
- const t = this.modalStack[this.modalStack.length - 1];
907
- this.closeById(t.id);
1095
+ const e = this.modalStack[this.modalStack.length - 1];
1096
+ this.closeById(e.id);
908
1097
  }
909
1098
  }
910
- closeById(t) {
911
- const o = this.modalStack.findIndex((n) => n.id === t);
1099
+ closeById(e) {
1100
+ const o = this.modalStack.findIndex((n) => n.id === e);
912
1101
  if (o !== -1) {
913
1102
  const n = this.modalStack[o];
914
1103
  this.cleanupModal(n), this.modalStack.splice(o, 1), this.recalculateZIndices();
@@ -916,219 +1105,219 @@ class Dn {
916
1105
  }
917
1106
  closeAll() {
918
1107
  for (; this.modalStack.length > 0; ) {
919
- const t = this.modalStack.pop();
920
- t && this.cleanupModal(t);
1108
+ const e = this.modalStack.pop();
1109
+ e && this.cleanupModal(e);
921
1110
  }
922
1111
  }
923
1112
  getOpenModalsCount() {
924
1113
  return this.modalStack.length;
925
1114
  }
926
- cleanupModal(t) {
927
- t.app && t.app.unmount(), t.container && t.container.parentNode && document.body.removeChild(t.container);
1115
+ cleanupModal(e) {
1116
+ e.app && e.app.unmount(), e.container && e.container.parentNode && document.body.removeChild(e.container);
928
1117
  }
929
1118
  recalculateZIndices() {
930
1119
  }
931
1120
  }
932
- const ae = new Dn(), An = {
933
- install(e) {
934
- e.config.globalProperties.$modal = ae, e.config.globalProperties.$modalStack = {
935
- closeAll: () => ae.closeAll(),
936
- getCount: () => ae.getOpenModalsCount(),
937
- closeById: (t) => ae.closeById(t)
1121
+ const ie = new yo(), xo = {
1122
+ install(t) {
1123
+ t.config.globalProperties.$modal = ie, t.config.globalProperties.$modalStack = {
1124
+ closeAll: () => ie.closeAll(),
1125
+ getCount: () => ie.getOpenModalsCount(),
1126
+ closeById: (e) => ie.closeById(e)
938
1127
  };
939
1128
  }
940
- }, On = { class: "vt-columns-selector-body" }, jn = { class: "vt-columns-selector" }, Nn = { class: "vt-columns-selector__panel" }, Zn = ["draggable", "onDragstart", "onDragover", "onDrop"], Fn = {
1129
+ }, Mo = { class: "vt-columns-selector-body" }, Lo = { class: "vt-columns-selector" }, $o = { class: "vt-columns-selector__panel" }, So = ["draggable", "onDragstart", "onDragover", "onDrop"], Io = {
941
1130
  key: 0,
942
1131
  class: "vt-columns-selector__panel-item-pinned"
943
- }, Un = { class: "vt-columns-selector__available" }, qn = ["onClick"], Xn = {
1132
+ }, Vo = { class: "vt-columns-selector__available" }, Bo = ["onClick"], Ro = {
944
1133
  key: 0,
945
1134
  class: "vt-columns-selector__group-columns"
946
- }, Gn = {
1135
+ }, To = {
947
1136
  key: 0,
948
1137
  class: "vt-columns-selector__pinned-note"
949
- }, Kn = { class: "vt-modal__content-button" }, Yn = /* @__PURE__ */ le({
1138
+ }, Eo = { class: "vt-modal__content-button" }, zo = /* @__PURE__ */ le({
950
1139
  __name: "VTableColumnSelector",
951
1140
  props: {
952
1141
  columns: {},
953
1142
  columnsSelector: { default: () => [] }
954
1143
  },
955
1144
  emits: ["update-columns"],
956
- setup(e, { emit: t }) {
957
- const o = e, n = t, s = D([]), l = D(/* @__PURE__ */ new Set()), r = D(-1), i = D(-1), a = D("before"), u = x(() => {
1145
+ setup(t, { emit: e }) {
1146
+ const o = t, n = e, s = A([]), l = A(/* @__PURE__ */ new Set()), a = A(-1), r = A(-1), i = A("before"), u = x(() => {
958
1147
  const d = {};
959
- return o.columnsSelector.forEach((v) => {
960
- if (v.name === "removed")
1148
+ return o.columnsSelector.forEach((_) => {
1149
+ if (_.name === "removed")
961
1150
  return;
962
- const g = v.columns.map((B) => B.prop), w = s.value.filter((B) => g.includes(B.prop));
963
- w.length === 0 ? d[v.name] = { checked: !1, indeterminate: !1 } : w.length === v.columns.length ? d[v.name] = { checked: !0, indeterminate: !1 } : d[v.name] = { checked: !1, indeterminate: !0 };
1151
+ const g = _.columns.map((V) => V.prop), k = s.value.filter((V) => g.includes(V.prop));
1152
+ k.length === 0 ? d[_.name] = { checked: !1, indeterminate: !1 } : k.length === _.columns.length ? d[_.name] = { checked: !0, indeterminate: !1 } : d[_.name] = { checked: !1, indeterminate: !0 };
964
1153
  }), d;
965
- }), c = x(() => o.columnsSelector.filter((d) => d.name !== "removed")), k = (d) => d.pinnedLeft || d.pinnedRight, S = (d) => !k(d), q = () => {
1154
+ }), c = x(() => o.columnsSelector.filter((d) => d.name !== "removed")), b = (d) => d.pinnedLeft || d.pinnedRight, M = (d) => !b(d), X = () => {
966
1155
  const d = s.value;
967
- let v = -1;
968
- for (let w = 0; w < d.length; w++)
969
- d[w].pinnedLeft && (v = w);
1156
+ let _ = -1;
1157
+ for (let k = 0; k < d.length; k++)
1158
+ d[k].pinnedLeft && (_ = k);
970
1159
  let g = d.length;
971
- for (let w = 0; w < d.length; w++)
972
- if (d[w].pinnedRight) {
973
- g = w;
1160
+ for (let k = 0; k < d.length; k++)
1161
+ if (d[k].pinnedRight) {
1162
+ g = k;
974
1163
  break;
975
1164
  }
976
1165
  return {
977
- minIndex: v + 1,
1166
+ minIndex: _ + 1,
978
1167
  maxIndex: g - 1
979
1168
  };
980
- }, j = (d) => {
981
- const v = q();
982
- return !(d < v.minIndex || d > v.maxIndex + 1);
983
- }, Q = (d, v) => {
984
- const g = s.value[v];
985
- if (!S(g)) {
1169
+ }, F = (d) => {
1170
+ const _ = X();
1171
+ return !(d < _.minIndex || d > _.maxIndex + 1);
1172
+ }, Q = (d, _) => {
1173
+ const g = s.value[_];
1174
+ if (!M(g)) {
986
1175
  d.preventDefault();
987
1176
  return;
988
1177
  }
989
- r.value = v, d.dataTransfer && (d.dataTransfer.effectAllowed = "move", d.dataTransfer.setData("text/plain", g.prop)), document.body.style.cursor = "grabbing";
990
- }, F = (d, v) => {
991
- if (r.value === -1) return;
1178
+ a.value = _, d.dataTransfer && (d.dataTransfer.effectAllowed = "move", d.dataTransfer.setData("text/plain", g.prop)), document.body.style.cursor = "grabbing";
1179
+ }, U = (d, _) => {
1180
+ if (a.value === -1) return;
992
1181
  d.preventDefault();
993
- const g = d.currentTarget.getBoundingClientRect(), w = d.clientY, B = g.top + g.height / 2;
994
- let L = v, ee = "before";
995
- w < B ? (L = v, ee = "before") : (L = v + 1, ee = "after"), r.value < L && L--, j(L) ? (i.value = v, a.value = ee, d.dataTransfer.dropEffect = "move") : (i.value = -1, d.dataTransfer.dropEffect = "none");
1182
+ const g = d.currentTarget.getBoundingClientRect(), k = d.clientY, V = g.top + g.height / 2;
1183
+ let S = _, ee = "before";
1184
+ k < V ? (S = _, ee = "before") : (S = _ + 1, ee = "after"), a.value < S && S--, F(S) ? (r.value = _, i.value = ee, d.dataTransfer.dropEffect = "move") : (r.value = -1, d.dataTransfer.dropEffect = "none");
996
1185
  }, N = () => {
997
1186
  setTimeout(() => {
998
- r.value === -1 && (i.value = -1);
1187
+ a.value === -1 && (r.value = -1);
999
1188
  }, 50);
1000
- }, M = (d, v) => {
1001
- if (d.preventDefault(), r.value === -1 || i.value === -1) {
1002
- R();
1189
+ }, L = (d, _) => {
1190
+ if (d.preventDefault(), a.value === -1 || r.value === -1) {
1191
+ B();
1003
1192
  return;
1004
1193
  }
1005
- const g = d.currentTarget.getBoundingClientRect(), w = d.clientY, B = g.top + g.height / 2;
1006
- let L = v;
1007
- if (w >= B && (L = v + 1), r.value < L && L--, !j(L) || L === r.value) {
1008
- R();
1194
+ const g = d.currentTarget.getBoundingClientRect(), k = d.clientY, V = g.top + g.height / 2;
1195
+ let S = _;
1196
+ if (k >= V && (S = _ + 1), a.value < S && S--, !F(S) || S === a.value) {
1197
+ B();
1009
1198
  return;
1010
1199
  }
1011
- const ee = [...s.value], [Ce] = ee.splice(r.value, 1);
1012
- ee.splice(L, 0, Ce), s.value = ee, R();
1013
- }, V = () => {
1014
- R();
1015
- }, R = () => {
1016
- r.value = -1, i.value = -1, a.value = "before", document.body.style.cursor = "";
1017
- }, X = (d) => {
1018
- const v = ["vt-columns-selector__panel-item"];
1019
- return r.value === d && v.push("vt-columns-selector__panel-item--dragging"), i.value === d && a.value === "before" && v.push("vt-columns-selector__panel-item--drop-before"), i.value === d && a.value === "after" && v.push("vt-columns-selector__panel-item--drop-after"), v;
1200
+ const ee = [...s.value], [Ce] = ee.splice(a.value, 1);
1201
+ ee.splice(S, 0, Ce), s.value = ee, B();
1202
+ }, W = () => {
1203
+ B();
1204
+ }, B = () => {
1205
+ a.value = -1, r.value = -1, i.value = "before", document.body.style.cursor = "";
1206
+ }, G = (d) => {
1207
+ const _ = ["vt-columns-selector__panel-item"];
1208
+ return a.value === d && _.push("vt-columns-selector__panel-item--dragging"), r.value === d && i.value === "before" && _.push("vt-columns-selector__panel-item--drop-before"), r.value === d && i.value === "after" && _.push("vt-columns-selector__panel-item--drop-after"), _;
1020
1209
  }, y = () => {
1021
1210
  s.value = [...o.columns.map((d) => ({ ...d }))], o.columnsSelector.forEach((d) => {
1022
1211
  d.name !== "removed" && l.value.add(d.name);
1023
1212
  });
1024
- }, E = (d, v) => {
1025
- if (v)
1213
+ }, E = (d, _) => {
1214
+ if (_)
1026
1215
  s.value.some((g) => g.prop === d.prop) || s.value.push({ ...d });
1027
1216
  else {
1028
- if (k(d))
1217
+ if (b(d))
1029
1218
  return;
1030
1219
  s.value = s.value.filter((g) => g.prop !== d.prop);
1031
1220
  }
1032
- }, $ = (d, v) => {
1033
- if (v)
1221
+ }, $ = (d, _) => {
1222
+ if (_)
1034
1223
  d.columns.forEach((g) => {
1035
- s.value.some((w) => w.prop === g.prop) || s.value.push({ ...g });
1224
+ s.value.some((k) => k.prop === g.prop) || s.value.push({ ...g });
1036
1225
  });
1037
1226
  else {
1038
1227
  const g = [];
1039
- d.columns.forEach((w) => {
1040
- const B = s.value.find((L) => L.prop === w.prop);
1041
- B && !k(B) && g.push(B);
1228
+ d.columns.forEach((k) => {
1229
+ const V = s.value.find((S) => S.prop === k.prop);
1230
+ V && !b(V) && g.push(V);
1042
1231
  }), s.value = s.value.filter(
1043
- (w) => !g.some((B) => B.prop === w.prop)
1232
+ (k) => !g.some((V) => V.prop === k.prop)
1044
1233
  );
1045
1234
  }
1046
- }, J = (d) => s.value.some((v) => v.prop === d.prop), m = (d) => {
1047
- const v = s.value.find((g) => g.prop === d.prop);
1048
- return !v || !k(v);
1049
- }, A = (d) => {
1235
+ }, J = (d) => s.value.some((_) => _.prop === d.prop), v = (d) => {
1236
+ const _ = s.value.find((g) => g.prop === d.prop);
1237
+ return !_ || !b(_);
1238
+ }, O = (d) => {
1050
1239
  l.value.has(d) ? l.value.delete(d) : l.value.add(d);
1051
- }, T = () => {
1052
- n("update-columns", [...s.value]), ae.close();
1053
- }, G = () => {
1054
- ae.close();
1240
+ }, R = () => {
1241
+ n("update-columns", [...s.value]), ie.close();
1242
+ }, K = () => {
1243
+ ie.close();
1055
1244
  };
1056
1245
  return ve(() => {
1057
1246
  y();
1058
- }), (d, v) => (p(), f("div", On, [
1059
- _("div", jn, [
1060
- _("div", Nn, [
1061
- (p(!0), f(ne, null, oe(s.value, (g, w) => (p(), f("div", {
1247
+ }), (d, _) => (p(), m("div", Mo, [
1248
+ h("div", Lo, [
1249
+ h("div", $o, [
1250
+ (p(!0), m(ne, null, oe(s.value, (g, k) => (p(), m("div", {
1062
1251
  key: g.prop,
1063
- class: W(X(w)),
1064
- draggable: S(g),
1065
- onDragstart: (B) => Q(B, w),
1066
- onDragover: (B) => F(B, w),
1252
+ class: z(G(k)),
1253
+ draggable: M(g),
1254
+ onDragstart: (V) => Q(V, k),
1255
+ onDragover: (V) => U(V, k),
1067
1256
  onDragleave: N,
1068
- onDrop: (B) => M(B, w),
1069
- onDragend: V
1257
+ onDrop: (V) => L(V, k),
1258
+ onDragend: W
1070
1259
  }, [
1071
1260
  Z(Y, {
1072
- name: S(g) ? "columnsMove" : "freeze",
1073
- class: W(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": S(g) }])
1261
+ name: M(g) ? "columnsMove" : "freeze",
1262
+ class: z(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": M(g) }])
1074
1263
  }, null, 8, ["name", "class"]),
1075
1264
  Z(ue, {
1076
1265
  label: g.label,
1077
1266
  checked: !0,
1078
- disabled: k(g),
1079
- onChange: (B) => E(g, B),
1080
- onClick: v[0] || (v[0] = me(() => {
1267
+ disabled: b(g),
1268
+ onChange: (V) => E(g, V),
1269
+ onClick: _[0] || (_[0] = he(() => {
1081
1270
  }, ["stop"]))
1082
1271
  }, null, 8, ["label", "disabled", "onChange"]),
1083
- k(g) ? (p(), f("span", Fn, "pinned")) : H("", !0)
1084
- ], 42, Zn))), 128))
1272
+ b(g) ? (p(), m("span", Io, "pinned")) : D("", !0)
1273
+ ], 42, So))), 128))
1085
1274
  ]),
1086
- _("div", Un, [
1087
- (p(!0), f(ne, null, oe(c.value, (g) => {
1088
- var w, B;
1089
- return p(), f("div", {
1275
+ h("div", Vo, [
1276
+ (p(!0), m(ne, null, oe(c.value, (g) => {
1277
+ var k, V;
1278
+ return p(), m("div", {
1090
1279
  key: g.name,
1091
1280
  class: "vt-columns-selector__group"
1092
1281
  }, [
1093
- _("div", {
1282
+ h("div", {
1094
1283
  class: "vt-columns-selector__group-header",
1095
- onClick: (L) => A(g.name)
1284
+ onClick: (S) => O(g.name)
1096
1285
  }, [
1097
1286
  Z(ue, {
1098
1287
  label: g.label,
1099
- checked: ((w = u.value[g.name]) == null ? void 0 : w.checked) || !1,
1100
- indeterminate: ((B = u.value[g.name]) == null ? void 0 : B.indeterminate) || !1,
1101
- onChange: (L) => $(g, L),
1102
- onClick: v[1] || (v[1] = me(() => {
1288
+ checked: ((k = u.value[g.name]) == null ? void 0 : k.checked) || !1,
1289
+ indeterminate: ((V = u.value[g.name]) == null ? void 0 : V.indeterminate) || !1,
1290
+ onChange: (S) => $(g, S),
1291
+ onClick: _[1] || (_[1] = he(() => {
1103
1292
  }, ["stop"]))
1104
1293
  }, null, 8, ["label", "checked", "indeterminate", "onChange"]),
1105
- g.icon ? (p(), re(Y, {
1294
+ g.icon ? (p(), ae(Y, {
1106
1295
  key: 0,
1107
1296
  name: g.icon,
1108
1297
  class: "vt-columns-selector__group-icon"
1109
- }, null, 8, ["name"])) : H("", !0)
1110
- ], 8, qn),
1111
- l.value.has(g.name) ? (p(), f("div", Xn, [
1112
- (p(!0), f(ne, null, oe(g.columns, (L) => (p(), f("div", {
1113
- key: L.prop,
1298
+ }, null, 8, ["name"])) : D("", !0)
1299
+ ], 8, Bo),
1300
+ l.value.has(g.name) ? (p(), m("div", Ro, [
1301
+ (p(!0), m(ne, null, oe(g.columns, (S) => (p(), m("div", {
1302
+ key: S.prop,
1114
1303
  class: "vt-columns-selector__group-column"
1115
1304
  }, [
1116
1305
  Z(ue, {
1117
- label: L.label,
1118
- checked: J(L),
1119
- disabled: !m(L),
1120
- onChange: (ee) => E(L, ee)
1306
+ label: S.label,
1307
+ checked: J(S),
1308
+ disabled: !v(S),
1309
+ onChange: (ee) => E(S, ee)
1121
1310
  }, null, 8, ["label", "checked", "disabled", "onChange"]),
1122
- m(L) ? H("", !0) : (p(), f("span", Gn, " (закріплена) "))
1311
+ v(S) ? D("", !0) : (p(), m("span", To, " (закріплена) "))
1123
1312
  ]))), 128))
1124
- ])) : H("", !0)
1313
+ ])) : D("", !0)
1125
1314
  ]);
1126
1315
  }), 128))
1127
1316
  ])
1128
1317
  ]),
1129
- _("div", Kn, [
1130
- Z(ge, { onClick: G }, {
1131
- default: xe(() => v[2] || (v[2] = [
1318
+ h("div", Eo, [
1319
+ Z(ge, { onClick: K }, {
1320
+ default: xe(() => _[2] || (_[2] = [
1132
1321
  _e("Скасувати", -1)
1133
1322
  ])),
1134
1323
  _: 1,
@@ -1136,9 +1325,9 @@ const ae = new Dn(), An = {
1136
1325
  }),
1137
1326
  Z(ge, {
1138
1327
  type: "primary",
1139
- onClick: T
1328
+ onClick: R
1140
1329
  }, {
1141
- default: xe(() => v[3] || (v[3] = [
1330
+ default: xe(() => _[3] || (_[3] = [
1142
1331
  _e("Зберегти", -1)
1143
1332
  ])),
1144
1333
  _: 1,
@@ -1147,7 +1336,7 @@ const ae = new Dn(), An = {
1147
1336
  ])
1148
1337
  ]));
1149
1338
  }
1150
- }), Jn = /* @__PURE__ */ le({
1339
+ }), Ho = /* @__PURE__ */ le({
1151
1340
  __name: "ColumnActions",
1152
1341
  props: {
1153
1342
  column: {},
@@ -1155,54 +1344,54 @@ const ae = new Dn(), An = {
1155
1344
  columnsSelector: {}
1156
1345
  },
1157
1346
  emits: ["pin", "update-columns"],
1158
- setup(e, { emit: t }) {
1159
- const o = e, n = t, s = D(), l = D(), r = D(), i = D(!1), a = D(!1), u = D([]), c = async () => {
1347
+ setup(t, { emit: e }) {
1348
+ const o = t, n = e, s = A(), l = A(), a = A(), r = A(!1), i = A(!1), u = A([]), c = async () => {
1160
1349
  if (await at(), !s.value || !l.value) return;
1161
1350
  const y = l.value.getBoundingClientRect(), E = s.value, $ = E.offsetWidth, J = y.left + y.width / 2;
1162
1351
  E.style.top = `${y.bottom - 20}px`, E.style.left = `${J - $ / 2}px`;
1163
- const m = E.getBoundingClientRect();
1164
- m.right > window.innerWidth && (E.style.left = `${window.innerWidth - $ - 8}px`), m.left < 0 && (E.style.left = "8px");
1165
- }, k = (y) => {
1166
- y.stopPropagation(), !a.value && (i.value ? q() : S());
1167
- }, S = () => {
1168
- a.value || (i.value = !0, c(), r.value && (r.value.style.zIndex = "22"));
1169
- }, q = () => {
1170
- a.value = !0, i.value = !1, r.value && r.value.style.removeProperty("z-index"), setTimeout(() => {
1171
- a.value = !1;
1352
+ const v = E.getBoundingClientRect();
1353
+ v.right > window.innerWidth && (E.style.left = `${window.innerWidth - $ - 8}px`), v.left < 0 && (E.style.left = "8px");
1354
+ }, b = (y) => {
1355
+ y.stopPropagation(), !i.value && (r.value ? X() : M());
1356
+ }, M = () => {
1357
+ i.value || (r.value = !0, c(), a.value && (a.value.style.zIndex = "22"));
1358
+ }, X = () => {
1359
+ i.value = !0, r.value = !1, a.value && a.value.style.removeProperty("z-index"), setTimeout(() => {
1360
+ i.value = !1;
1172
1361
  }, 100);
1173
- }, j = (y) => {
1362
+ }, F = (y) => {
1174
1363
  var E, $;
1175
- !((E = l.value) != null && E.contains(y.target)) && !(($ = s.value) != null && $.contains(y.target)) && q();
1364
+ !((E = l.value) != null && E.contains(y.target)) && !(($ = s.value) != null && $.contains(y.target)) && X();
1176
1365
  }, Q = () => {
1177
- X() ? (n("pin", o.column, "none"), console.log(`Колонка "${o.column.label}" відкріплена`)) : (n("pin", o.column, "left"), console.log(`Колонка "${o.column.label}" прикріплена зліва`)), q();
1178
- }, F = (y) => ({
1366
+ G() ? (n("pin", o.column, "none"), console.log(`Колонка "${o.column.label}" відкріплена`)) : (n("pin", o.column, "left"), console.log(`Колонка "${o.column.label}" прикріплена зліва`)), X();
1367
+ }, U = (y) => ({
1179
1368
  name: "removed",
1180
1369
  label: "Видалені колонки",
1181
1370
  order: 999,
1182
1371
  // Найвищий порядок, щоб відображались останніми
1183
1372
  columns: y
1184
1373
  }), N = (y) => {
1185
- var A;
1186
- const E = new Set(y.map((T) => T.prop)), $ = /* @__PURE__ */ new Set();
1187
- (A = o.columnsSelector) == null || A.forEach((T) => {
1188
- T.columns.forEach((G) => $.add(G.prop));
1189
- }), o.allColumns.forEach((T) => $.add(T.prop));
1374
+ var O;
1375
+ const E = new Set(y.map((R) => R.prop)), $ = /* @__PURE__ */ new Set();
1376
+ (O = o.columnsSelector) == null || O.forEach((R) => {
1377
+ R.columns.forEach((K) => $.add(K.prop));
1378
+ }), o.allColumns.forEach((R) => $.add(R.prop));
1190
1379
  const J = [];
1191
- $.forEach((T) => {
1192
- var G;
1193
- if (!E.has(T)) {
1380
+ $.forEach((R) => {
1381
+ var K;
1382
+ if (!E.has(R)) {
1194
1383
  let d;
1195
- (G = o.columnsSelector) == null || G.forEach((v) => {
1196
- const g = v.columns.find((w) => w.prop === T);
1384
+ (K = o.columnsSelector) == null || K.forEach((_) => {
1385
+ const g = _.columns.find((k) => k.prop === R);
1197
1386
  g && (d = g);
1198
- }), d || (d = o.allColumns.find((v) => v.prop === T)), d && J.push(d);
1387
+ }), d || (d = o.allColumns.find((_) => _.prop === R)), d && J.push(d);
1199
1388
  }
1200
1389
  });
1201
- const m = [...o.columnsSelector || []];
1202
- J.length > 0 && m.push(F(J)), u.value = m;
1203
- }, M = () => {
1204
- N(o.allColumns), ae.open({
1205
- component: Yn,
1390
+ const v = [...o.columnsSelector || []];
1391
+ J.length > 0 && v.push(U(J)), u.value = v;
1392
+ }, L = () => {
1393
+ N(o.allColumns), ie.open({
1394
+ component: zo,
1206
1395
  title: "Управління колонками таблиці",
1207
1396
  props: {
1208
1397
  columns: o.allColumns,
@@ -1215,50 +1404,50 @@ const ae = new Dn(), An = {
1215
1404
  },
1216
1405
  size: "large",
1217
1406
  closeOnBackdropClick: !1
1218
- }), q();
1219
- }, V = () => o.column.pinnedLeft, R = () => o.column.pinnedRight, X = () => V() || R();
1407
+ }), X();
1408
+ }, W = () => o.column.pinnedLeft, B = () => o.column.pinnedRight, G = () => W() || B();
1220
1409
  return ve(() => {
1221
- document.addEventListener("click", j), l.value && (r.value = l.value.closest("th")), N(o.allColumns);
1222
- }), Le(() => {
1223
- document.removeEventListener("click", j);
1224
- }), (y, E) => (p(), f("div", {
1410
+ document.addEventListener("click", F), l.value && (a.value = l.value.closest("th")), N(o.allColumns);
1411
+ }), Se(() => {
1412
+ document.removeEventListener("click", F);
1413
+ }), (y, E) => (p(), m("div", {
1225
1414
  ref_key: "triggerRef",
1226
1415
  ref: l,
1227
1416
  class: "vt-table-header-actions",
1228
- onClick: k
1417
+ onClick: b
1229
1418
  }, [
1230
1419
  Z(Y, { name: "listBullet" }),
1231
- i.value ? (p(), f("ul", {
1420
+ r.value ? (p(), m("ul", {
1232
1421
  key: 0,
1233
1422
  ref_key: "menuRef",
1234
1423
  ref: s,
1235
- class: W(["dropdown-menu", "vt-table-dropdown", { visible: i.value }])
1424
+ class: z(["dropdown-menu", "vt-table-dropdown", { visible: r.value }])
1236
1425
  }, [
1237
- _("li", { onClick: Q }, [
1426
+ h("li", { onClick: Q }, [
1238
1427
  Z(Y, {
1239
- name: X() ? "unfreeze" : "freeze"
1428
+ name: G() ? "unfreeze" : "freeze"
1240
1429
  }, null, 8, ["name"]),
1241
- _("span", null, te(X() ? "Розморозити" : "Заморозити"), 1)
1430
+ h("span", null, te(G() ? "Розморозити" : "Заморозити"), 1)
1242
1431
  ]),
1243
- _("li", { onClick: M }, [
1432
+ h("li", { onClick: L }, [
1244
1433
  Z(Y, { name: "columnInsert" }),
1245
- E[0] || (E[0] = _("span", null, "Колонки", -1))
1434
+ E[0] || (E[0] = h("span", null, "Колонки", -1))
1246
1435
  ])
1247
- ], 2)) : H("", !0)
1436
+ ], 2)) : D("", !0)
1248
1437
  ], 512));
1249
1438
  }
1250
- }), Qn = { class: "vt-table" }, eo = { class: "vt-th__content" }, to = { class: "vt-th__content" }, no = { class: "vt-th__label" }, oo = {
1439
+ }), Wo = { class: "vt-table" }, Do = { class: "vt-th__content" }, Po = { class: "vt-th__content" }, Ao = { class: "vt-th__label" }, Oo = {
1251
1440
  key: 0,
1252
1441
  class: "vt-th__sortable"
1253
- }, lo = ["data-resizer", "onMousedown"], so = {
1442
+ }, jo = ["data-resizer", "onMousedown"], Fo = {
1254
1443
  key: 0,
1255
1444
  class: "vt-table__empty-row"
1256
- }, io = ["colspan"], ao = { class: "vt-table__empty-content" }, ro = ["onClick"], co = { class: "vt-table__cell-content" }, uo = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, po = { key: 1 }, mo = ["data-resizer", "onMousedown"], ho = {
1445
+ }, No = ["colspan"], Zo = { class: "vt-table__empty-content" }, Uo = ["onClick"], qo = { class: "vt-table__cell-content" }, Xo = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, Go = { key: 1 }, Ko = ["data-resizer", "onMousedown"], Yo = {
1257
1446
  key: 0,
1258
1447
  class: "vt-table__summary"
1259
- }, vo = { class: "vt-table__cell-content vt-table__cell-content--summary" }, ye = 50, fo = /* @__PURE__ */ le({
1448
+ }, Jo = { class: "vt-table__cell-content vt-table__cell-content--summary" }, ye = 50, Qo = /* @__PURE__ */ le({
1260
1449
  __name: "VTable",
1261
- props: /* @__PURE__ */ ze({
1450
+ props: /* @__PURE__ */ Te({
1262
1451
  data: {},
1263
1452
  maxHeight: {},
1264
1453
  defaultSort: {},
@@ -1276,341 +1465,341 @@ const ae = new Dn(), An = {
1276
1465
  columns: { required: !1 },
1277
1466
  columnsModifiers: {}
1278
1467
  }),
1279
- emits: /* @__PURE__ */ ze(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
1280
- setup(e, { expose: t, emit: o }) {
1281
- const n = e, s = rt(e, "columns"), l = o;
1282
- Me();
1283
- const r = D({}), i = D(), a = ct([]), u = D(n.defaultSort || null), c = x(() => s.value !== void 0), k = x(() => n.data && n.data.length > 0), S = D(!1), q = D(0);
1284
- let j = null;
1468
+ emits: /* @__PURE__ */ Te(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
1469
+ setup(t, { expose: e, emit: o }) {
1470
+ const n = t, s = ct(t, "columns"), l = o;
1471
+ Le();
1472
+ const a = A({}), r = A(), i = ut([]), u = A(n.defaultSort || null), c = x(() => s.value !== void 0), b = x(() => n.data && n.data.length > 0), M = A(!1), X = A(0);
1473
+ let F = null;
1285
1474
  const Q = () => {
1286
- c.value && s.value ? a.splice(0, a.length, ...s.value) : n.columns && a.splice(0, a.length, ...n.columns);
1475
+ c.value && s.value ? i.splice(0, i.length, ...s.value) : n.columns && i.splice(0, i.length, ...n.columns);
1287
1476
  };
1288
- he(
1477
+ me(
1289
1478
  () => s.value,
1290
- (h) => {
1291
- h && c.value && a.splice(0, a.length, ...h);
1479
+ (f) => {
1480
+ f && c.value && i.splice(0, i.length, ...f);
1292
1481
  },
1293
1482
  { deep: !0 }
1294
- ), he(
1483
+ ), me(
1295
1484
  () => n.columns,
1296
- (h) => {
1297
- h && !c.value && a.splice(0, a.length, ...h);
1485
+ (f) => {
1486
+ f && !c.value && i.splice(0, i.length, ...f);
1298
1487
  },
1299
1488
  { deep: !0 }
1300
- ), ut("vt-table-columns", a);
1301
- const { sortedColumns: F, getDefaultColumnWidth: N, getStickyOffset: M } = Rn(a), { getTableWrapperStyle: V, getColumnStyle: R, getHeaderStyle: X, getFooterStyle: y } = Tn(n), { onMouseDown: E } = zn(), $ = x(() => Pn(n.data, u.value, a)), J = x(() => n.allData || n.data), m = n.selectable ? En(n, $, l, J) : null, A = () => ({
1489
+ ), dt("vt-table-columns", i);
1490
+ const { sortedColumns: U, getDefaultColumnWidth: N, getStickyOffset: L } = vo(i), { getTableWrapperStyle: W, getColumnStyle: B, getHeaderStyle: G, getFooterStyle: y } = fo(n), { onMouseDown: E } = _o(), $ = x(() => bo(n.data, u.value, i)), J = x(() => n.allData || n.data), v = n.selectable ? go(n, $, l, J) : null, O = () => ({
1302
1491
  width: `${ye}px`,
1303
1492
  minWidth: `${ye}px`,
1304
1493
  maxWidth: `${ye}px`,
1305
1494
  left: "0px",
1306
1495
  position: "sticky",
1307
1496
  zIndex: 10
1308
- }), T = () => {
1309
- const h = A();
1497
+ }), R = () => {
1498
+ const f = O();
1310
1499
  return n.maxHeight ? {
1311
- ...h,
1500
+ ...f,
1312
1501
  top: "0px",
1313
1502
  zIndex: 11
1314
1503
  // Вищий z-index для header
1315
- } : h;
1316
- }, G = () => {
1317
- const h = A();
1504
+ } : f;
1505
+ }, K = () => {
1506
+ const f = O();
1318
1507
  return n.maxHeight ? {
1319
- ...h,
1508
+ ...f,
1320
1509
  bottom: "0px",
1321
1510
  zIndex: 11
1322
1511
  // Вищий z-index для footer
1323
- } : h;
1512
+ } : f;
1324
1513
  }, d = () => {
1325
- if (!i.value || S.value) return;
1326
- const h = i.value, C = h.scrollTop, I = h.scrollHeight, z = h.clientHeight, P = 30;
1327
- j && clearTimeout(j), j = setTimeout(() => {
1328
- const fe = C - q.value > 1, b = I - C - z <= P, ce = I - C - z <= 5;
1329
- q.value = C, fe && (b || ce) && (S.value = !0, l("infinity-scroll"), setTimeout(() => {
1330
- S.value = !1;
1514
+ if (!r.value || M.value) return;
1515
+ const f = r.value, C = f.scrollTop, I = f.scrollHeight, T = f.clientHeight, P = 30;
1516
+ F && clearTimeout(F), F = setTimeout(() => {
1517
+ const fe = C - X.value > 1, w = I - C - T <= P, ce = I - C - T <= 5;
1518
+ X.value = C, fe && (w || ce) && (M.value = !0, l("infinity-scroll"), setTimeout(() => {
1519
+ M.value = !1;
1331
1520
  }, 1e3));
1332
1521
  }, 50);
1333
- }, v = () => {
1334
- S.value = !1;
1522
+ }, _ = () => {
1523
+ M.value = !1;
1335
1524
  };
1336
1525
  ve(() => {
1337
- i.value && i.value.addEventListener("scroll", d);
1338
- }), Le(() => {
1339
- j && clearTimeout(j), i.value && i.value.removeEventListener("scroll", d);
1526
+ r.value && r.value.addEventListener("scroll", d);
1527
+ }), Se(() => {
1528
+ F && clearTimeout(F), r.value && r.value.removeEventListener("scroll", d);
1340
1529
  });
1341
- const g = (h, C) => {
1342
- Hn(h, C, (I) => {
1343
- var z, P;
1344
- ((z = u.value) == null ? void 0 : z.prop) === h.prop && u.value.direction === C ? u.value = null : u.value = I, l("sort-change", {
1345
- column: h,
1530
+ const g = (f, C) => {
1531
+ ko(f, C, (I) => {
1532
+ var T, P;
1533
+ ((T = u.value) == null ? void 0 : T.prop) === f.prop && u.value.direction === C ? u.value = null : u.value = I, l("sort-change", {
1534
+ column: f,
1346
1535
  direction: ((P = u.value) == null ? void 0 : P.direction) || null,
1347
- prop: h.prop,
1536
+ prop: f.prop,
1348
1537
  sortedData: $.value
1349
1538
  });
1350
1539
  });
1351
- }, w = (h, C) => {
1540
+ }, k = (f, C) => {
1352
1541
  const I = {
1353
1542
  pinnedLeft: C === "left",
1354
1543
  pinnedRight: C === "right"
1355
1544
  };
1356
- L(h.prop, I), l("column-pin", { column: { ...h, ...I }, position: C });
1357
- }, B = (h) => {
1358
- a.splice(0, a.length, ...h), c.value && (s.value = [...h]), l("columns-change", [...h]);
1359
- }, L = (h, C) => {
1360
- const I = a.findIndex((z) => z.prop === h);
1545
+ S(f.prop, I), l("column-pin", { column: { ...f, ...I }, position: C });
1546
+ }, V = (f) => {
1547
+ i.splice(0, i.length, ...f), c.value && (s.value = [...f]), l("columns-change", [...f]);
1548
+ }, S = (f, C) => {
1549
+ const I = i.findIndex((T) => T.prop === f);
1361
1550
  if (I !== -1) {
1362
- if (Object.assign(a[I], C), c.value && s.value) {
1363
- const z = s.value.findIndex((P) => P.prop === h);
1364
- if (z !== -1) {
1551
+ if (Object.assign(i[I], C), c.value && s.value) {
1552
+ const T = s.value.findIndex((P) => P.prop === f);
1553
+ if (T !== -1) {
1365
1554
  const P = [...s.value];
1366
- P[z] = { ...P[z], ...C }, s.value = P;
1555
+ P[T] = { ...P[T], ...C }, s.value = P;
1367
1556
  }
1368
1557
  }
1369
- l("columns-change", [...a]);
1558
+ l("columns-change", [...i]);
1370
1559
  } else
1371
1560
  console.error(
1372
1561
  "Колонку не знайдено:",
1373
- h,
1562
+ f,
1374
1563
  "Доступні колонки:",
1375
- a.map((z) => z.prop)
1564
+ i.map((T) => T.prop)
1376
1565
  );
1377
- }, ee = (h, C, I) => {
1378
- l("row-click", { row: h, column: C, event: I }), n.highlightCurrentRow && m && m.setCurrentRow(h);
1379
- }, Ce = (h, C, I) => {
1380
- I.stopPropagation(), m && m.toggleRowSelection(C, h);
1381
- }, Fe = (h, C) => {
1382
- C.stopPropagation(), m && m.toggleAllSelection();
1383
- }, Ie = (h, C) => {
1384
- h && (r.value[C] = h);
1385
- }, Be = (h, C) => {
1566
+ }, ee = (f, C, I) => {
1567
+ l("row-click", { row: f, column: C, event: I }), n.highlightCurrentRow && v && v.setCurrentRow(f);
1568
+ }, Ce = (f, C, I) => {
1569
+ I.stopPropagation(), v && v.toggleRowSelection(C, f);
1570
+ }, Ue = (f, C) => {
1571
+ C.stopPropagation(), v && v.toggleAllSelection();
1572
+ }, Ie = (f, C) => {
1573
+ f && (a.value[C] = f);
1574
+ }, Ve = (f, C) => {
1386
1575
  const I = C.width || N();
1387
- E(h, C, N, (z) => {
1388
- L(C.prop, { width: z }), l("column-resize", {
1389
- column: { ...C, width: z },
1390
- width: z,
1576
+ E(f, C, N, (T) => {
1577
+ S(C.prop, { width: T }), l("column-resize", {
1578
+ column: { ...C, width: T },
1579
+ width: T,
1391
1580
  oldWidth: I
1392
1581
  });
1393
1582
  });
1394
- }, Ue = (h, C) => R(h, C, M, N), qe = (h, C) => X(h, C, M, N), Xe = (h, C) => y(h, C, M, N), Ge = (h, C) => {
1583
+ }, qe = (f, C) => B(f, C, L, N), Xe = (f, C) => G(f, C, L, N), Ge = (f, C) => y(f, C, L, N), Ke = (f, C) => {
1395
1584
  if (!C || !C.prop) return "";
1396
- const I = h[C.prop];
1585
+ const I = f[C.prop];
1397
1586
  return I == null ? "" : String(I);
1398
- }, Ke = x(() => {
1399
- if (!n.showSummary || !k.value) return {};
1400
- const h = a;
1587
+ }, Ye = x(() => {
1588
+ if (!n.showSummary || !b.value) return {};
1589
+ const f = i;
1401
1590
  if (typeof n.summaryMethod == "function") {
1402
- const C = n.summaryMethod({ columns: h, data: $.value });
1403
- return h.reduce(
1404
- (I, z, P) => (I[z.prop] = C[P], I),
1591
+ const C = n.summaryMethod({ columns: f, data: $.value });
1592
+ return f.reduce(
1593
+ (I, T, P) => (I[T.prop] = C[P], I),
1405
1594
  {}
1406
1595
  );
1407
1596
  }
1408
- return h.reduce(
1597
+ return f.reduce(
1409
1598
  (C, I) => {
1410
- const z = $.value.map((P) => P[I.prop]);
1411
- return C[I.prop] = z.every((P) => typeof P == "number") ? z.reduce((P, de) => P + de, 0) : "", C;
1599
+ const T = $.value.map((P) => P[I.prop]);
1600
+ return C[I.prop] = T.every((P) => typeof P == "number") ? T.reduce((P, de) => P + de, 0) : "", C;
1412
1601
  },
1413
1602
  {}
1414
1603
  );
1415
- }), Ye = x(() => n.showSummary && k.value), Je = (h, C) => {
1416
- m && m.toggleRowSelection(h, C);
1417
- }, Qe = () => {
1418
- m && m.toggleAllSelection();
1604
+ }), Je = x(() => n.showSummary && b.value), Qe = (f, C) => {
1605
+ v && v.toggleRowSelection(f, C);
1419
1606
  }, et = () => {
1420
- m && m.selectAbsolutelyAll();
1607
+ v && v.toggleAllSelection();
1421
1608
  }, tt = () => {
1422
- m && m.clearSelection();
1423
- }, nt = () => m ? m.getSelectionRows() : [], ot = (h) => {
1424
- m && m.setSelectionRows(h);
1609
+ v && v.selectAbsolutelyAll();
1610
+ }, nt = () => {
1611
+ v && v.clearSelection();
1612
+ }, ot = () => v ? v.getSelectionRows() : [], lt = (f) => {
1613
+ v && v.setSelectionRows(f);
1425
1614
  };
1426
1615
  return ve(() => {
1427
1616
  Q();
1428
- }), t({
1429
- toggleRowSelection: Je,
1430
- toggleAllSelection: Qe,
1431
- selectAbsolutelyAll: et,
1432
- clearSelection: tt,
1433
- getSelectionRows: nt,
1434
- setSelectionRows: ot,
1435
- resetInfinityScroll: v
1617
+ }), e({
1618
+ toggleRowSelection: Qe,
1619
+ toggleAllSelection: et,
1620
+ selectAbsolutelyAll: tt,
1621
+ clearSelection: nt,
1622
+ getSelectionRows: ot,
1623
+ setSelectionRows: lt,
1624
+ resetInfinityScroll: _
1436
1625
  // Додаємо метод для скидання infinity scroll
1437
- }), (h, C) => {
1438
- var z, P, de, fe;
1439
- const I = je("tooltip");
1440
- return p(), f("div", {
1626
+ }), (f, C) => {
1627
+ var T, P, de, fe;
1628
+ const I = Fe("tooltip");
1629
+ return p(), m("div", {
1441
1630
  ref_key: "tableWrapperRef",
1442
- ref: i,
1631
+ ref: r,
1443
1632
  class: "vt-table-wrapper",
1444
- style: ie(U(V)()),
1633
+ style: re(q(W)()),
1445
1634
  onScroll: d
1446
1635
  }, [
1447
- pe(h.$slots, "default"),
1448
- _("table", Qn, [
1449
- _("thead", null, [
1450
- _("tr", null, [
1451
- n.selectable ? (p(), f("th", {
1636
+ pe(f.$slots, "default"),
1637
+ h("table", Wo, [
1638
+ h("thead", null, [
1639
+ h("tr", null, [
1640
+ n.selectable ? (p(), m("th", {
1452
1641
  key: 0,
1453
- class: W(["vt-table__th vt-table__th--selection", {
1642
+ class: z(["vt-table__th vt-table__th--selection", {
1454
1643
  "vt-table__th--sticky": n.maxHeight,
1455
1644
  "vt-table__th--pinned-left": !0
1456
1645
  }]),
1457
- style: ie(T())
1646
+ style: re(R())
1458
1647
  }, [
1459
- _("div", eo, [
1648
+ h("div", Do, [
1460
1649
  Z(ue, {
1461
- checked: (z = U(m)) == null ? void 0 : z.isAllSelected.value,
1462
- indeterminate: (P = U(m)) == null ? void 0 : P.isIndeterminate.value,
1463
- "is-double": (fe = (de = U(m)) == null ? void 0 : de.isDoubleCheck) == null ? void 0 : fe.value,
1464
- onChange: Fe
1650
+ checked: (T = q(v)) == null ? void 0 : T.isAllSelected.value,
1651
+ indeterminate: (P = q(v)) == null ? void 0 : P.isIndeterminate.value,
1652
+ "is-double": (fe = (de = q(v)) == null ? void 0 : de.isDoubleCheck) == null ? void 0 : fe.value,
1653
+ onChange: Ue
1465
1654
  }, null, 8, ["checked", "indeterminate", "is-double"])
1466
1655
  ])
1467
- ], 6)) : H("", !0),
1468
- (p(!0), f(ne, null, oe(U(F), (b, ce) => (p(), f("th", {
1469
- key: b.prop,
1656
+ ], 6)) : D("", !0),
1657
+ (p(!0), m(ne, null, oe(q(U), (w, ce) => (p(), m("th", {
1658
+ key: w.prop,
1470
1659
  ref_for: !0,
1471
- ref: (se) => Ie(se, b.prop),
1472
- style: ie(qe(b, ce)),
1473
- class: W([
1660
+ ref: (se) => Ie(se, w.prop),
1661
+ style: re(Xe(w, ce)),
1662
+ class: z([
1474
1663
  "vt-table__th",
1475
1664
  {
1476
1665
  "vt-table__th--sticky": n.maxHeight,
1477
- "vt-table__th--pinned-left": b.pinnedLeft,
1478
- "vt-table__th--pinned-right": b.pinnedRight,
1479
- "vt-table__th--sortable": b.sortable
1666
+ "vt-table__th--pinned-left": w.pinnedLeft,
1667
+ "vt-table__th--pinned-right": w.pinnedRight,
1668
+ "vt-table__th--sortable": w.sortable
1480
1669
  }
1481
1670
  ])
1482
1671
  }, [
1483
- _("div", to, [
1484
- _("div", no, te(b.label), 1),
1485
- b.sortable ? (p(), f("div", oo, [
1672
+ h("div", Po, [
1673
+ h("div", Ao, te(w.label), 1),
1674
+ w.sortable ? (p(), m("div", Oo, [
1486
1675
  Z(Y, {
1487
1676
  name: "arrowTop",
1488
- class: W(U(We)(b, u.value).asc),
1489
- onClick: me((se) => g(b, "asc"), ["stop"])
1677
+ class: z(q(ze)(w, u.value).asc),
1678
+ onClick: he((se) => g(w, "asc"), ["stop"])
1490
1679
  }, null, 8, ["class", "onClick"]),
1491
1680
  Z(Y, {
1492
1681
  name: "arrowDown",
1493
- class: W(U(We)(b, u.value).desc),
1494
- onClick: me((se) => g(b, "desc"), ["stop"])
1682
+ class: z(q(ze)(w, u.value).desc),
1683
+ onClick: he((se) => g(w, "desc"), ["stop"])
1495
1684
  }, null, 8, ["class", "onClick"])
1496
- ])) : H("", !0),
1497
- b.actionColumn ? (p(), re(Jn, {
1685
+ ])) : D("", !0),
1686
+ w.actionColumn ? (p(), ae(Ho, {
1498
1687
  key: 1,
1499
- column: b,
1500
- "all-columns": U(F),
1688
+ column: w,
1689
+ "all-columns": q(U),
1501
1690
  columnsSelector: n.columnsSelector,
1502
- onPin: w,
1503
- onUpdateColumns: B
1504
- }, null, 8, ["column", "all-columns", "columnsSelector"])) : H("", !0)
1691
+ onPin: k,
1692
+ onUpdateColumns: V
1693
+ }, null, 8, ["column", "all-columns", "columnsSelector"])) : D("", !0)
1505
1694
  ]),
1506
- _("div", {
1695
+ h("div", {
1507
1696
  class: "vt-table__resizer",
1508
- "data-resizer": b.prop,
1509
- onMousedown: (se) => Be(se, b)
1510
- }, null, 40, lo)
1697
+ "data-resizer": w.prop,
1698
+ onMousedown: (se) => Ve(se, w)
1699
+ }, null, 40, jo)
1511
1700
  ], 6))), 128))
1512
1701
  ])
1513
1702
  ]),
1514
- _("tbody", null, [
1515
- k.value ? (p(!0), f(ne, { key: 1 }, oe($.value, (b, ce) => {
1516
- var se, Re, Te;
1517
- return p(), f("tr", {
1518
- key: b.id,
1519
- class: W([
1703
+ h("tbody", null, [
1704
+ b.value ? (p(!0), m(ne, { key: 1 }, oe($.value, (w, ce) => {
1705
+ var se, Be, Re;
1706
+ return p(), m("tr", {
1707
+ key: w.id,
1708
+ class: z([
1520
1709
  "vt-table__row",
1521
1710
  {
1522
- "vt-table__row--selected": (se = U(m)) == null ? void 0 : se.isRowSelected(b),
1523
- "vt-table__row--current": ((Re = U(m)) == null ? void 0 : Re.currentRow.value) === b,
1711
+ "vt-table__row--selected": (se = q(v)) == null ? void 0 : se.isRowSelected(w),
1712
+ "vt-table__row--current": ((Be = q(v)) == null ? void 0 : Be.currentRow.value) === w,
1524
1713
  "vt-table__row--clickable": n.selectOnClickRow || n.highlightCurrentRow
1525
1714
  }
1526
1715
  ]),
1527
- onClick: (O) => ee(b, U(F)[0], O)
1716
+ onClick: (j) => ee(w, q(U)[0], j)
1528
1717
  }, [
1529
- n.selectable ? (p(), f("td", {
1718
+ n.selectable ? (p(), m("td", {
1530
1719
  key: 0,
1531
- class: W(["vt-table__td vt-table__td--selection", {
1720
+ class: z(["vt-table__td vt-table__td--selection", {
1532
1721
  "vt-table__td--pinned-left": !0
1533
1722
  }]),
1534
- style: ie(A())
1723
+ style: re(O())
1535
1724
  }, [
1536
- _("div", co, [
1725
+ h("div", qo, [
1537
1726
  Z(ue, {
1538
- checked: (Te = U(m)) == null ? void 0 : Te.isRowSelected(b),
1539
- onChange: (O, be) => Ce(O, b, be)
1727
+ checked: (Re = q(v)) == null ? void 0 : Re.isRowSelected(w),
1728
+ onChange: (j, we) => Ce(j, w, we)
1540
1729
  }, null, 8, ["checked", "onChange"])
1541
1730
  ])
1542
- ], 4)) : H("", !0),
1543
- (p(!0), f(ne, null, oe(U(F), (O, be) => (p(), f("td", {
1544
- key: O.prop,
1731
+ ], 4)) : D("", !0),
1732
+ (p(!0), m(ne, null, oe(q(U), (j, we) => (p(), m("td", {
1733
+ key: j.prop,
1545
1734
  ref_for: !0,
1546
- ref: (we) => Ie(we, O.prop),
1547
- style: ie(Ue(O, be)),
1548
- class: W([
1735
+ ref: (ke) => Ie(ke, j.prop),
1736
+ style: re(qe(j, we)),
1737
+ class: z([
1549
1738
  "vt-table__td",
1550
1739
  {
1551
- "vt-table__td--pinned-left": O.pinnedLeft,
1552
- "vt-table__td--pinned-right": O.pinnedRight
1740
+ "vt-table__td--pinned-left": j.pinnedLeft,
1741
+ "vt-table__td--pinned-right": j.pinnedRight
1553
1742
  }
1554
1743
  ])
1555
1744
  }, [
1556
- $e((p(), f("div", uo, [
1557
- O.renderSlot ? (p(), re(Oe(() => U(Wn)(O.renderSlot, { row: b, column: O, value: b[O.prop], index: ce })), { key: 0 })) : (p(), f("span", po, te(b[O.prop]), 1))
1745
+ $e((p(), m("div", Xo, [
1746
+ j.renderSlot ? (p(), ae(je(() => q(Co)(j.renderSlot, { row: w, column: j, value: w[j.prop], index: ce })), { key: 0 })) : (p(), m("span", Go, te(w[j.prop]), 1))
1558
1747
  ])), [
1559
- [I, O.showOverflowTooltip ? Ge(b, O) : null]
1748
+ [I, j.showOverflowTooltip ? Ke(w, j) : null]
1560
1749
  ]),
1561
- _("div", {
1750
+ h("div", {
1562
1751
  class: "vt-table__resizer",
1563
- "data-resizer": O.prop,
1564
- onMousedown: (we) => Be(we, O)
1565
- }, null, 40, mo)
1752
+ "data-resizer": j.prop,
1753
+ onMousedown: (ke) => Ve(ke, j)
1754
+ }, null, 40, Ko)
1566
1755
  ], 6))), 128))
1567
- ], 10, ro);
1568
- }), 128)) : (p(), f("tr", so, [
1569
- _("td", {
1570
- colspan: U(F).length + (n.selectable ? 1 : 0),
1756
+ ], 10, Uo);
1757
+ }), 128)) : (p(), m("tr", Fo, [
1758
+ h("td", {
1759
+ colspan: q(U).length + (n.selectable ? 1 : 0),
1571
1760
  class: "vt-table__empty-cell"
1572
1761
  }, [
1573
- _("div", ao, [
1762
+ h("div", Zo, [
1574
1763
  Z(Y, {
1575
1764
  name: "empty",
1576
1765
  class: "vt-table__empty-icon"
1577
1766
  }),
1578
- C[0] || (C[0] = _("span", { class: "vt-table__empty-text" }, "Немає даних!", -1))
1767
+ C[0] || (C[0] = h("span", { class: "vt-table__empty-text" }, "Немає даних!", -1))
1579
1768
  ])
1580
- ], 8, io)
1769
+ ], 8, No)
1581
1770
  ]))
1582
1771
  ]),
1583
- Ye.value ? (p(), f("tfoot", ho, [
1584
- _("tr", null, [
1585
- n.selectable ? (p(), f("td", {
1772
+ Je.value ? (p(), m("tfoot", Yo, [
1773
+ h("tr", null, [
1774
+ n.selectable ? (p(), m("td", {
1586
1775
  key: 0,
1587
- class: W(["vt-table__td", {
1776
+ class: z(["vt-table__td", {
1588
1777
  "vt-table__td--pinned-left": !0
1589
1778
  }]),
1590
- style: ie(G())
1779
+ style: re(K())
1591
1780
  }, C[1] || (C[1] = [
1592
- _("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
1593
- ]), 4)) : H("", !0),
1594
- (p(!0), f(ne, null, oe(U(F), (b, ce) => (p(), f("td", {
1595
- key: b.prop,
1596
- style: ie(Xe(b, ce)),
1597
- class: W([
1781
+ h("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
1782
+ ]), 4)) : D("", !0),
1783
+ (p(!0), m(ne, null, oe(q(U), (w, ce) => (p(), m("td", {
1784
+ key: w.prop,
1785
+ style: re(Ge(w, ce)),
1786
+ class: z([
1598
1787
  "vt-table__td",
1599
1788
  {
1600
- "vt-table__td--pinned-left": b.pinnedLeft,
1601
- "vt-table__td--pinned-right": b.pinnedRight
1789
+ "vt-table__td--pinned-left": w.pinnedLeft,
1790
+ "vt-table__td--pinned-right": w.pinnedRight
1602
1791
  }
1603
1792
  ])
1604
1793
  }, [
1605
- _("div", vo, te(Ke.value[b.prop]), 1)
1794
+ h("div", Jo, te(Ye.value[w.prop]), 1)
1606
1795
  ], 6))), 128))
1607
1796
  ])
1608
- ])) : H("", !0)
1797
+ ])) : D("", !0)
1609
1798
  ])
1610
1799
  ], 36);
1611
1800
  };
1612
1801
  }
1613
- }), _o = /* @__PURE__ */ le({
1802
+ }), el = /* @__PURE__ */ le({
1614
1803
  __name: "VTableColumn",
1615
1804
  props: {
1616
1805
  prop: {},
@@ -1627,69 +1816,69 @@ const ae = new Dn(), An = {
1627
1816
  renderSlot: {},
1628
1817
  sortMethod: {}
1629
1818
  },
1630
- setup(e) {
1631
- const t = e, o = Me(), n = dt("vt-table-columns");
1819
+ setup(t) {
1820
+ const e = t, o = Le(), n = pt("vt-table-columns");
1632
1821
  n || console.error(
1633
1822
  "VTableColumn: не знайдено контекст таблиці. Переконайтеся, що компонент використовується всередині VTable."
1634
1823
  );
1635
1824
  const s = () => ({
1636
- prop: t.prop,
1637
- label: t.label,
1638
- width: t.width,
1639
- minWidth: t.minWidth,
1640
- maxWidth: t.maxWidth,
1641
- sortable: t.sortable,
1642
- pinnedLeft: t.pinnedLeft,
1643
- pinnedRight: t.pinnedRight,
1644
- actionColumn: t.actionColumn,
1645
- showOverflowTooltip: t.showOverflowTooltip,
1646
- selectable: t.selectable,
1825
+ prop: e.prop,
1826
+ label: e.label,
1827
+ width: e.width,
1828
+ minWidth: e.minWidth,
1829
+ maxWidth: e.maxWidth,
1830
+ sortable: e.sortable,
1831
+ pinnedLeft: e.pinnedLeft,
1832
+ pinnedRight: e.pinnedRight,
1833
+ actionColumn: e.actionColumn,
1834
+ showOverflowTooltip: e.showOverflowTooltip,
1835
+ selectable: e.selectable,
1647
1836
  // Зберігаємо слот - пріоритет: назва колонки -> default -> slot
1648
- renderSlot: o[t.prop] ?? o.default ?? o.slot
1837
+ renderSlot: o[e.prop] ?? o.default ?? o.slot
1649
1838
  });
1650
1839
  let l = -1;
1651
1840
  return ve(() => {
1652
1841
  if (n) {
1653
- const r = s();
1654
- n.push(r), l = n.length - 1;
1842
+ const a = s();
1843
+ n.push(a), l = n.length - 1;
1655
1844
  }
1656
- }), he(
1845
+ }), me(
1657
1846
  () => [
1658
- t.width,
1659
- t.minWidth,
1660
- t.maxWidth,
1661
- t.sortable,
1662
- t.pinnedLeft,
1663
- t.pinnedRight,
1664
- t.actionColumn,
1665
- t.showOverflowTooltip,
1666
- t.selectable,
1667
- t.label
1847
+ e.width,
1848
+ e.minWidth,
1849
+ e.maxWidth,
1850
+ e.sortable,
1851
+ e.pinnedLeft,
1852
+ e.pinnedRight,
1853
+ e.actionColumn,
1854
+ e.showOverflowTooltip,
1855
+ e.selectable,
1856
+ e.label
1668
1857
  ],
1669
1858
  () => {
1670
1859
  if (n && l !== -1) {
1671
- const r = n.findIndex((i) => i.prop === t.prop);
1672
- if (r !== -1) {
1673
- const i = n[r], a = {
1860
+ const a = n.findIndex((r) => r.prop === e.prop);
1861
+ if (a !== -1) {
1862
+ const r = n[a], i = {
1674
1863
  ...s(),
1675
- renderSlot: i.renderSlot
1864
+ renderSlot: r.renderSlot
1676
1865
  // Зберігаємо існуючий renderSlot
1677
1866
  };
1678
- n[r] = a;
1867
+ n[a] = i;
1679
1868
  }
1680
1869
  }
1681
1870
  },
1682
1871
  { deep: !0 }
1683
- ), Le(() => {
1872
+ ), Se(() => {
1684
1873
  if (n) {
1685
- const r = n.findIndex((i) => i.prop === t.prop);
1686
- r > -1 && n.splice(r, 1);
1874
+ const a = n.findIndex((r) => r.prop === e.prop);
1875
+ a > -1 && n.splice(a, 1);
1687
1876
  }
1688
- }), (r, i) => null;
1877
+ }), (a, r) => null;
1689
1878
  }
1690
- }), Ve = (e, t) => {
1879
+ }), He = (t, e) => {
1691
1880
  const o = document.createElement("div");
1692
- o.className = `vt-tooltip vt-tooltip--${t}`, o.innerText = e, Object.assign(o.style, {
1881
+ o.className = `vt-tooltip vt-tooltip--${e}`, o.innerText = t, Object.assign(o.style, {
1693
1882
  position: "absolute",
1694
1883
  background: "rgba(0, 0, 0, 0.8)",
1695
1884
  color: "white",
@@ -1707,14 +1896,14 @@ const ae = new Dn(), An = {
1707
1896
  wordWrap: "break-word",
1708
1897
  whiteSpace: "normal",
1709
1898
  boxShadow: "0 2px 8px rgba(0, 0, 0, 0.2)"
1710
- }), e.length < 50 && (o.style.whiteSpace = "nowrap");
1899
+ }), t.length < 50 && (o.style.whiteSpace = "nowrap");
1711
1900
  const n = document.createElement("div");
1712
1901
  switch (n.className = "vt-tooltip__arrow", Object.assign(n.style, {
1713
1902
  position: "absolute",
1714
1903
  width: "0",
1715
1904
  height: "0",
1716
1905
  borderStyle: "solid"
1717
- }), t) {
1906
+ }), e) {
1718
1907
  case "top":
1719
1908
  Object.assign(n.style, {
1720
1909
  top: "100%",
@@ -1753,86 +1942,86 @@ const ae = new Dn(), An = {
1753
1942
  break;
1754
1943
  }
1755
1944
  return o.appendChild(n), o;
1756
- }, Se = (e, t, o) => {
1757
- const n = t.getBoundingClientRect(), s = e.getBoundingClientRect(), l = window.pageXOffset || document.documentElement.scrollLeft, r = window.pageYOffset || document.documentElement.scrollTop;
1758
- let i = 0, a = 0;
1945
+ }, Me = (t, e, o) => {
1946
+ const n = e.getBoundingClientRect(), s = t.getBoundingClientRect(), l = window.pageXOffset || document.documentElement.scrollLeft, a = window.pageYOffset || document.documentElement.scrollTop;
1947
+ let r = 0, i = 0;
1759
1948
  switch (o) {
1760
1949
  case "top":
1761
- i = n.top + r - s.height - 8, a = n.left + l + (n.width - s.width) / 2;
1950
+ r = n.top + a - s.height - 8, i = n.left + l + (n.width - s.width) / 2;
1762
1951
  break;
1763
1952
  case "bottom":
1764
- i = n.bottom + r + 8, a = n.left + l + (n.width - s.width) / 2;
1953
+ r = n.bottom + a + 8, i = n.left + l + (n.width - s.width) / 2;
1765
1954
  break;
1766
1955
  case "left":
1767
- i = n.top + r + (n.height - s.height) / 2, a = n.left + l - s.width - 8;
1956
+ r = n.top + a + (n.height - s.height) / 2, i = n.left + l - s.width - 8;
1768
1957
  break;
1769
1958
  case "right":
1770
- i = n.top + r + (n.height - s.height) / 2, a = n.right + l + 8;
1959
+ r = n.top + a + (n.height - s.height) / 2, i = n.right + l + 8;
1771
1960
  break;
1772
1961
  }
1773
1962
  const u = window.innerWidth, c = window.innerHeight;
1774
- a < 8 ? a = 8 : a + s.width > u - 8 && (a = u - s.width - 8), i < r + 8 ? o === "top" ? i = n.bottom + r + 8 : i = r + 8 : i + s.height > r + c - 8 && (o === "bottom" ? i = n.top + r - s.height - 8 : i = r + c - s.height - 8), e.style.top = `${i}px`, e.style.left = `${a}px`;
1775
- }, He = (e, t, o) => {
1776
- e.parentElement || document.body.appendChild(e), e.style.visibility = "visible", Se(e, t, o), requestAnimationFrame(() => {
1777
- e.style.opacity = "1";
1963
+ i < 8 ? i = 8 : i + s.width > u - 8 && (i = u - s.width - 8), r < a + 8 ? o === "top" ? r = n.bottom + a + 8 : r = a + 8 : r + s.height > a + c - 8 && (o === "bottom" ? r = n.top + a - s.height - 8 : r = a + c - s.height - 8), t.style.top = `${r}px`, t.style.left = `${i}px`;
1964
+ }, We = (t, e, o) => {
1965
+ t.parentElement || document.body.appendChild(t), t.style.visibility = "visible", Me(t, e, o), requestAnimationFrame(() => {
1966
+ t.style.opacity = "1";
1778
1967
  });
1779
- }, Pe = (e) => {
1780
- e.style.opacity = "0", e.style.visibility = "hidden";
1781
- }, De = (e) => e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight, Ae = (e) => !!e.closest(".vt-table, table"), go = {
1782
- mounted(e, t) {
1783
- var a;
1784
- const o = (a = t.value) == null ? void 0 : a.trim();
1968
+ }, De = (t) => {
1969
+ t.style.opacity = "0", t.style.visibility = "hidden";
1970
+ }, Pe = (t) => t.scrollWidth > t.clientWidth || t.scrollHeight > t.clientHeight, Ae = (t) => !!t.closest(".vt-table, table"), tl = {
1971
+ mounted(t, e) {
1972
+ var i;
1973
+ const o = (i = e.value) == null ? void 0 : i.trim();
1785
1974
  if (!o) return;
1786
- const n = e.dataset.placement || "top", s = Ve(o, n);
1787
- e.__tooltipEl = s;
1975
+ const n = t.dataset.placement || "top", s = He(o, n);
1976
+ t.__tooltipEl = s;
1788
1977
  const l = () => {
1789
- (Ae(e) ? De(e) : !0) && He(s, e, n);
1978
+ (Ae(t) ? Pe(t) : !0) && We(s, t, n);
1979
+ }, a = () => {
1980
+ De(s);
1790
1981
  }, r = () => {
1791
- Pe(s);
1792
- }, i = () => {
1793
- s.style.opacity === "1" && Se(s, e, n);
1982
+ s.style.opacity === "1" && Me(s, t, n);
1794
1983
  };
1795
- e.__mouseenterHandler = l, e.__mouseleaveHandler = r, e.__scrollHandler = i, e.addEventListener("mouseenter", l), e.addEventListener("mouseleave", r), window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
1984
+ t.__mouseenterHandler = l, t.__mouseleaveHandler = a, t.__scrollHandler = r, t.addEventListener("mouseenter", l), t.addEventListener("mouseleave", a), window.addEventListener("scroll", r, !0), window.addEventListener("resize", r);
1796
1985
  },
1797
- updated(e, t) {
1986
+ updated(t, e) {
1798
1987
  var n;
1799
- const o = (n = t.value) == null ? void 0 : n.trim();
1800
- if (e.__tooltipEl)
1801
- o ? e.__tooltipEl.firstChild.textContent = o : (e.__tooltipEl.parentElement && e.__tooltipEl.parentElement.removeChild(e.__tooltipEl), delete e.__tooltipEl);
1988
+ const o = (n = e.value) == null ? void 0 : n.trim();
1989
+ if (t.__tooltipEl)
1990
+ o ? t.__tooltipEl.firstChild.textContent = o : (t.__tooltipEl.parentElement && t.__tooltipEl.parentElement.removeChild(t.__tooltipEl), delete t.__tooltipEl);
1802
1991
  else if (o) {
1803
- const s = e.dataset.placement || "top", l = Ve(o, s);
1804
- e.__tooltipEl = l;
1805
- const r = () => {
1806
- (Ae(e) ? De(e) : !0) && He(l, e, s);
1992
+ const s = t.dataset.placement || "top", l = He(o, s);
1993
+ t.__tooltipEl = l;
1994
+ const a = () => {
1995
+ (Ae(t) ? Pe(t) : !0) && We(l, t, s);
1996
+ }, r = () => {
1997
+ De(l);
1807
1998
  }, i = () => {
1808
- Pe(l);
1809
- }, a = () => {
1810
- l.style.opacity === "1" && Se(l, e, s);
1999
+ l.style.opacity === "1" && Me(l, t, s);
1811
2000
  };
1812
- e.__mouseenterHandler = r, e.__mouseleaveHandler = i, e.__scrollHandler = a, e.addEventListener("mouseenter", r), e.addEventListener("mouseleave", i), window.addEventListener("scroll", a, !0), window.addEventListener("resize", a);
2001
+ t.__mouseenterHandler = a, t.__mouseleaveHandler = r, t.__scrollHandler = i, t.addEventListener("mouseenter", a), t.addEventListener("mouseleave", r), window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
1813
2002
  }
1814
2003
  },
1815
- beforeUnmount(e) {
1816
- e.__tooltipEl && e.__tooltipEl.parentElement && (e.__tooltipEl.parentElement.removeChild(e.__tooltipEl), delete e.__tooltipEl), e.__mouseenterHandler && (e.removeEventListener("mouseenter", e.__mouseenterHandler), delete e.__mouseenterHandler), e.__mouseleaveHandler && (e.removeEventListener("mouseleave", e.__mouseleaveHandler), delete e.__mouseleaveHandler), e.__scrollHandler && (window.removeEventListener("scroll", e.__scrollHandler, !0), window.removeEventListener("resize", e.__scrollHandler), delete e.__scrollHandler);
2004
+ beforeUnmount(t) {
2005
+ t.__tooltipEl && t.__tooltipEl.parentElement && (t.__tooltipEl.parentElement.removeChild(t.__tooltipEl), delete t.__tooltipEl), t.__mouseenterHandler && (t.removeEventListener("mouseenter", t.__mouseenterHandler), delete t.__mouseenterHandler), t.__mouseleaveHandler && (t.removeEventListener("mouseleave", t.__mouseleaveHandler), delete t.__mouseleaveHandler), t.__scrollHandler && (window.removeEventListener("scroll", t.__scrollHandler, !0), window.removeEventListener("resize", t.__scrollHandler), delete t.__scrollHandler);
1817
2006
  }
1818
- }, Co = {
1819
- install(e, t = {}) {
1820
- const { prefix: o = "V", modal: n = !0 } = t;
1821
- e.component(`${o}Button`, ge), e.component(`${o}Icon`, Y), e.component(`${o}Loader`, Ne), e.component(`${o}Modal`, Ze), e.component(`${o}Pagination`, Ln), e.component(`${o}Checkbox`, ue), e.component(`${o}Table`, fo), e.component(`${o}TableColumn`, _o), e.directive("tooltip", go), n && e.use(An);
2007
+ }, nl = {
2008
+ install(t, e = {}) {
2009
+ const { prefix: o = "V", modal: n = !0 } = e;
2010
+ t.component(`${o}Button`, ge), t.component(`${o}Icon`, Y), t.component(`${o}Loader`, Ne), t.component(`${o}Modal`, Ze), t.component(`${o}Pagination`, po), t.component(`${o}Checkbox`, ue), t.component(`${o}Table`, Qo), t.component(`${o}TableColumn`, el), t.directive("tooltip", tl), n && t.use(xo);
1822
2011
  }
1823
- }, wo = Co.install;
2012
+ }, ll = nl.install;
1824
2013
  export {
1825
2014
  ge as VButton,
1826
2015
  ue as VCheckbox,
1827
2016
  Y as VIcon,
1828
2017
  Ne as VLoader,
1829
2018
  Ze as VModal,
1830
- An as VModalPlugin,
1831
- Ln as VPagination,
1832
- fo as VTable,
1833
- _o as VTableColumn,
1834
- Co as default,
1835
- wo as install,
1836
- ae as modalManager,
1837
- go as tooltipDirective
2019
+ xo as VModalPlugin,
2020
+ po as VPagination,
2021
+ Qo as VTable,
2022
+ el as VTableColumn,
2023
+ nl as default,
2024
+ ll as install,
2025
+ ie as modalManager,
2026
+ tl as tooltipDirective
1838
2027
  };