@soft-stech/bootsman-ui-shadcn 1.5.0 → 1.5.1

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.
@@ -4,27 +4,27 @@ import { _ as me } from "../../../BuiTableCell.vue_vue_type_script_setup_true_la
4
4
  import { _ as vt } from "../../../BuiTableHead.vue_vue_type_script_setup_true_lang-7Lueg0eT.js";
5
5
  import { _ as _t } from "../../../BuiTableHeader.vue_vue_type_script_setup_true_lang-CuFM-eKt.js";
6
6
  import { _ as be } from "../../../BuiTableRow.vue_vue_type_script_setup_true_lang-B7mv21Nn.js";
7
- import { defineComponent as We, computed as D, openBlock as p, createElementBlock as T, Fragment as j, createBlock as P, unref as s, normalizeClass as qe, withCtx as d, renderSlot as R, renderList as Q, normalizeStyle as ye, createVNode as _, createCommentVNode as E, resolveDynamicComponent as ht, mergeModels as wt, useModel as K, watchEffect as $e, ref as oe, watch as St, onBeforeMount as Tt, onMounted as $t, createSlots as Ot, createElementVNode as A, createTextVNode as W, toDisplayString as J } from "vue";
8
- import { _ as $o } from "../../../BuiTableCaption.vue_vue_type_script_setup_true_lang-xqs_Oz8_.js";
9
- import { _ as Ct } from "../../../BuiTableEmpty.vue_vue_type_script_setup_true_lang-Dsuc3SUK.js";
10
- import { _ as Co } from "../../../BuiTableFooter.vue_vue_type_script_setup_true_lang-CM3A5YV0.js";
11
- import { _ as Pt } from "../../../BuiCollapsible.vue_vue_type_script_setup_true_lang-GUBvaqXL.js";
12
- import { _ as At } from "../../../BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-vXX5X3aX.js";
13
- import { _ as jt } from "../../../BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-CLcdIcH8.js";
14
- import { _ as It } from "../../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-CCTFFo7-.js";
15
- import { h as Rt, v as Z, g as Et, _ as zt } from "../../../utils-Dn2Y7TRK.js";
16
- import { FlexRender as Xe, useVueTable as xt, getCoreRowModel as Mt, getPaginationRowModel as Bt, getSortedRowModel as Lt } from "@tanstack/vue-table";
17
- import { _ as Dt } from "../../../BuiCommand.vue_vue_type_script_setup_true_lang-0R3Mg1Vm.js";
18
- import { _ as Nt } from "../../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-6eCvzOuB.js";
19
- import { _ as Ft } from "../../../BuiCommandInput.vue_vue_type_script_setup_true_lang-DMgDCk3Z.js";
20
- import { _ as Ht } from "../../../BuiCommandItem.vue_vue_type_script_setup_true_lang-BhlMWNxj.js";
21
- import { _ as Ut } from "../../../BuiCommandList.vue_vue_type_script_setup_true_lang-B7dvoeeu.js";
22
- import { _ as Gt } from "../../../BuiPopover.vue_vue_type_script_setup_true_lang-DXPGjQrK.js";
23
- import { _ as Vt } from "../../../BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-CdjF4hNu.js";
24
- import { _ as Kt } from "../../../BuiPopoverContent.vue_vue_type_script_setup_true_lang-DzIsHB39.js";
25
- import { _ as Wt } from "../../../BuiScrollArea.vue_vue_type_script_setup_true_lang-D65DkxX6.js";
26
- import { useElementSize as qt, useEventListener as Xt } from "@vueuse/core";
27
- import { useResizeColumns as Yt } from "../../../lib/useResizeColumns.js";
7
+ import { defineComponent as qe, computed as D, openBlock as c, createElementBlock as T, Fragment as j, createBlock as P, unref as s, normalizeClass as Xe, withCtx as d, renderSlot as R, renderList as Q, normalizeStyle as ye, createVNode as _, createCommentVNode as E, resolveDynamicComponent as ht, mergeModels as wt, useModel as K, nextTick as St, watchEffect as Oe, ref as oe, watch as Tt, onBeforeMount as $t, onMounted as Ot, createSlots as Ct, createElementVNode as A, createTextVNode as W, toDisplayString as k } from "vue";
8
+ import { _ as Oo } from "../../../BuiTableCaption.vue_vue_type_script_setup_true_lang-xqs_Oz8_.js";
9
+ import { _ as Pt } from "../../../BuiTableEmpty.vue_vue_type_script_setup_true_lang-Dsuc3SUK.js";
10
+ import { _ as Po } from "../../../BuiTableFooter.vue_vue_type_script_setup_true_lang-CM3A5YV0.js";
11
+ import { _ as At } from "../../../BuiCollapsible.vue_vue_type_script_setup_true_lang-GUBvaqXL.js";
12
+ import { _ as jt } from "../../../BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-vXX5X3aX.js";
13
+ import { _ as It } from "../../../BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-CLcdIcH8.js";
14
+ import { _ as Rt } from "../../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-CCTFFo7-.js";
15
+ import { h as Et, v as J, g as xt, _ as zt } from "../../../utils-Dn2Y7TRK.js";
16
+ import { FlexRender as Ye, useVueTable as Mt, getCoreRowModel as Bt, getPaginationRowModel as Lt, getSortedRowModel as Dt } from "@tanstack/vue-table";
17
+ import { _ as Nt } from "../../../BuiCommand.vue_vue_type_script_setup_true_lang-0R3Mg1Vm.js";
18
+ import { _ as Ft } from "../../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-6eCvzOuB.js";
19
+ import { _ as Ht } from "../../../BuiCommandInput.vue_vue_type_script_setup_true_lang-DMgDCk3Z.js";
20
+ import { _ as Ut } from "../../../BuiCommandItem.vue_vue_type_script_setup_true_lang-BhlMWNxj.js";
21
+ import { _ as Gt } from "../../../BuiCommandList.vue_vue_type_script_setup_true_lang-B7dvoeeu.js";
22
+ import { _ as Vt } from "../../../BuiPopover.vue_vue_type_script_setup_true_lang-DXPGjQrK.js";
23
+ import { _ as Kt } from "../../../BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-CdjF4hNu.js";
24
+ import { _ as Wt } from "../../../BuiPopoverContent.vue_vue_type_script_setup_true_lang-DzIsHB39.js";
25
+ import { _ as qt } from "../../../BuiScrollArea.vue_vue_type_script_setup_true_lang-D65DkxX6.js";
26
+ import { useElementSize as Xt, useEventListener as Yt } from "@vueuse/core";
27
+ import { useResizeColumns as kt } from "../../../lib/useResizeColumns.js";
28
28
  import { _ as Jt } from "../../../BuiDataTableColumnList.vue_vue_type_script_setup_true_lang-CGkGNd8n.js";
29
29
  /**
30
30
  * @license lucide-vue-next v0.441.0 - ISC
@@ -32,12 +32,12 @@ import { _ as Jt } from "../../../BuiDataTableColumnList.vue_vue_type_script_set
32
32
  * This source code is licensed under the ISC license.
33
33
  * See the LICENSE file in the root directory of this source tree.
34
34
  */
35
- const Zt = Rt("Settings2Icon", [
35
+ const Zt = Et("Settings2Icon", [
36
36
  ["path", { d: "M20 7h-9", key: "3s1dr2" }],
37
37
  ["path", { d: "M14 17H5", key: "gfn3mx" }],
38
38
  ["circle", { cx: "17", cy: "17", r: "3", key: "18b49y" }],
39
39
  ["circle", { cx: "7", cy: "7", r: "3", key: "dfmy0x" }]
40
- ]), kt = "[!fake-empty!]", Oe = /* @__PURE__ */ We({
40
+ ]), Qt = "[!fake-empty!]", Ce = /* @__PURE__ */ qe({
41
41
  __name: "BuiTableRowSubrow",
42
42
  props: {
43
43
  row: {},
@@ -45,23 +45,23 @@ const Zt = Rt("Settings2Icon", [
45
45
  columns: {}
46
46
  },
47
47
  setup(e) {
48
- const t = e, n = D(() => t.row.original.name?.includes(kt));
49
- return (r, f) => (p(), T(j, null, [
50
- n.value ? E("", !0) : (p(), P(s(be), {
48
+ const t = e, n = D(() => t.row.original.name?.includes(Qt));
49
+ return (r, f) => (c(), T(j, null, [
50
+ n.value ? E("", !0) : (c(), P(s(be), {
51
51
  key: 0,
52
52
  "data-row-state": r.row.getIsSelected() ? "selected" : void 0,
53
- class: qe(t.renderSubComponent?.(r.row) ? "border-b-0" : "")
53
+ class: Xe(t.renderSubComponent?.(r.row) ? "border-b-0" : "")
54
54
  }, {
55
55
  actions: d(() => [
56
56
  R(r.$slots, "actions")
57
57
  ]),
58
58
  default: d(() => [
59
- (p(!0), T(j, null, Q(r.row.getVisibleCells(), (o) => (p(), P(s(me), {
59
+ (c(!0), T(j, null, Q(r.row.getVisibleCells(), (o) => (c(), P(s(me), {
60
60
  key: o.id,
61
- style: ye({ ...s(st)(o.column) })
61
+ style: ye({ ...s(lt)(o.column) })
62
62
  }, {
63
63
  default: d(() => [
64
- _(s(Xe), {
64
+ _(s(Ye), {
65
65
  render: o.column.columnDef.cell,
66
66
  props: o.getContext()
67
67
  }, null, 8, ["render", "props"])
@@ -71,7 +71,7 @@ const Zt = Rt("Settings2Icon", [
71
71
  ]),
72
72
  _: 3
73
73
  }, 8, ["data-row-state", "class"])),
74
- t.renderSubComponent?.(r.row) ? (p(), P(s(be), {
74
+ t.renderSubComponent?.(r.row) ? (c(), P(s(be), {
75
75
  key: 1,
76
76
  "data-row-state": r.row.getIsSelected() ? "selected" : void 0
77
77
  }, {
@@ -84,7 +84,7 @@ const Zt = Rt("Settings2Icon", [
84
84
  class: "pt-0"
85
85
  }, {
86
86
  default: d(() => [
87
- (p(), P(ht(t.renderSubComponent?.(r.row)?.())))
87
+ (c(), P(ht(t.renderSubComponent?.(r.row)?.())))
88
88
  ]),
89
89
  _: 1
90
90
  }, 8, ["colspan"])
@@ -94,24 +94,24 @@ const Zt = Rt("Settings2Icon", [
94
94
  ], 64));
95
95
  }
96
96
  });
97
- var Ye = typeof global == "object" && global && global.Object === Object && global, Qt = typeof self == "object" && self && self.Object === Object && self, M = Ye || Qt || Function("return this")(), q = M.Symbol, Je = Object.prototype, en = Je.hasOwnProperty, tn = Je.toString, k = q ? q.toStringTag : void 0;
98
- function nn(e) {
99
- var t = en.call(e, k), n = e[k];
97
+ var ke = typeof global == "object" && global && global.Object === Object && global, en = typeof self == "object" && self && self.Object === Object && self, M = ke || en || Function("return this")(), q = M.Symbol, Je = Object.prototype, tn = Je.hasOwnProperty, nn = Je.toString, Z = q ? q.toStringTag : void 0;
98
+ function rn(e) {
99
+ var t = tn.call(e, Z), n = e[Z];
100
100
  try {
101
- e[k] = void 0;
101
+ e[Z] = void 0;
102
102
  var r = !0;
103
103
  } catch {
104
104
  }
105
- var f = tn.call(e);
106
- return r && (t ? e[k] = n : delete e[k]), f;
105
+ var f = nn.call(e);
106
+ return r && (t ? e[Z] = n : delete e[Z]), f;
107
107
  }
108
- var rn = Object.prototype, an = rn.toString;
109
- function on(e) {
110
- return an.call(e);
108
+ var an = Object.prototype, on = an.toString;
109
+ function sn(e) {
110
+ return on.call(e);
111
111
  }
112
- var sn = "[object Null]", ln = "[object Undefined]", Ce = q ? q.toStringTag : void 0;
112
+ var ln = "[object Null]", un = "[object Undefined]", Pe = q ? q.toStringTag : void 0;
113
113
  function ae(e) {
114
- return e == null ? e === void 0 ? ln : sn : Ce && Ce in Object(e) ? nn(e) : on(e);
114
+ return e == null ? e === void 0 ? un : ln : Pe && Pe in Object(e) ? rn(e) : sn(e);
115
115
  }
116
116
  function te(e) {
117
117
  return e != null && typeof e == "object";
@@ -121,25 +121,25 @@ function Ze(e) {
121
121
  var t = typeof e;
122
122
  return e != null && (t == "object" || t == "function");
123
123
  }
124
- var un = "[object AsyncFunction]", fn = "[object Function]", dn = "[object GeneratorFunction]", pn = "[object Proxy]";
125
- function ke(e) {
124
+ var fn = "[object AsyncFunction]", dn = "[object Function]", cn = "[object GeneratorFunction]", pn = "[object Proxy]";
125
+ function Qe(e) {
126
126
  if (!Ze(e))
127
127
  return !1;
128
128
  var t = ae(e);
129
- return t == fn || t == dn || t == un || t == pn;
129
+ return t == dn || t == cn || t == fn || t == pn;
130
130
  }
131
- var pe = M["__core-js_shared__"], Pe = function() {
132
- var e = /[^.]+$/.exec(pe && pe.keys && pe.keys.IE_PROTO || "");
131
+ var ce = M["__core-js_shared__"], Ae = function() {
132
+ var e = /[^.]+$/.exec(ce && ce.keys && ce.keys.IE_PROTO || "");
133
133
  return e ? "Symbol(src)_1." + e : "";
134
134
  }();
135
- function cn(e) {
136
- return !!Pe && Pe in e;
135
+ function gn(e) {
136
+ return !!Ae && Ae in e;
137
137
  }
138
- var gn = Function.prototype, mn = gn.toString;
138
+ var mn = Function.prototype, bn = mn.toString;
139
139
  function U(e) {
140
140
  if (e != null) {
141
141
  try {
142
- return mn.call(e);
142
+ return bn.call(e);
143
143
  } catch {
144
144
  }
145
145
  try {
@@ -149,130 +149,130 @@ function U(e) {
149
149
  }
150
150
  return "";
151
151
  }
152
- var bn = /[\\^$.*+?()[\]{}|]/g, yn = /^\[object .+?Constructor\]$/, vn = Function.prototype, _n = Object.prototype, hn = vn.toString, wn = _n.hasOwnProperty, Sn = RegExp(
153
- "^" + hn.call(wn).replace(bn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
152
+ var yn = /[\\^$.*+?()[\]{}|]/g, vn = /^\[object .+?Constructor\]$/, _n = Function.prototype, hn = Object.prototype, wn = _n.toString, Sn = hn.hasOwnProperty, Tn = RegExp(
153
+ "^" + wn.call(Sn).replace(yn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
154
154
  );
155
- function Tn(e) {
156
- if (!Ze(e) || cn(e))
155
+ function $n(e) {
156
+ if (!Ze(e) || gn(e))
157
157
  return !1;
158
- var t = ke(e) ? Sn : yn;
158
+ var t = Qe(e) ? Tn : vn;
159
159
  return t.test(U(e));
160
160
  }
161
- function $n(e, t) {
161
+ function On(e, t) {
162
162
  return e?.[t];
163
163
  }
164
164
  function X(e, t) {
165
- var n = $n(e, t);
166
- return Tn(n) ? n : void 0;
165
+ var n = On(e, t);
166
+ return $n(n) ? n : void 0;
167
167
  }
168
- var ve = X(M, "WeakMap"), On = 9007199254740991, Cn = /^(?:0|[1-9]\d*)$/;
169
- function Pn(e, t) {
168
+ var ve = X(M, "WeakMap"), Cn = 9007199254740991, Pn = /^(?:0|[1-9]\d*)$/;
169
+ function An(e, t) {
170
170
  var n = typeof e;
171
- return t = t ?? On, !!t && (n == "number" || n != "symbol" && Cn.test(e)) && e > -1 && e % 1 == 0 && e < t;
171
+ return t = t ?? Cn, !!t && (n == "number" || n != "symbol" && Pn.test(e)) && e > -1 && e % 1 == 0 && e < t;
172
172
  }
173
- function Qe(e, t) {
173
+ function et(e, t) {
174
174
  return e === t || e !== e && t !== t;
175
175
  }
176
- var An = 9007199254740991;
177
- function et(e) {
178
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= An;
176
+ var jn = 9007199254740991;
177
+ function tt(e) {
178
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= jn;
179
179
  }
180
- function jn(e) {
181
- return e != null && et(e.length) && !ke(e);
180
+ function In(e) {
181
+ return e != null && tt(e.length) && !Qe(e);
182
182
  }
183
- var In = Object.prototype;
184
- function Rn(e) {
185
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || In;
183
+ var Rn = Object.prototype;
184
+ function En(e) {
185
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || Rn;
186
186
  return e === n;
187
187
  }
188
- function En(e, t) {
188
+ function xn(e, t) {
189
189
  for (var n = -1, r = Array(e); ++n < e; )
190
190
  r[n] = t(n);
191
191
  return r;
192
192
  }
193
193
  var zn = "[object Arguments]";
194
- function Ae(e) {
194
+ function je(e) {
195
195
  return te(e) && ae(e) == zn;
196
196
  }
197
- var tt = Object.prototype, xn = tt.hasOwnProperty, Mn = tt.propertyIsEnumerable, Bn = Ae(/* @__PURE__ */ function() {
197
+ var nt = Object.prototype, Mn = nt.hasOwnProperty, Bn = nt.propertyIsEnumerable, Ln = je(/* @__PURE__ */ function() {
198
198
  return arguments;
199
- }()) ? Ae : function(e) {
200
- return te(e) && xn.call(e, "callee") && !Mn.call(e, "callee");
199
+ }()) ? je : function(e) {
200
+ return te(e) && Mn.call(e, "callee") && !Bn.call(e, "callee");
201
201
  };
202
- function Ln() {
202
+ function Dn() {
203
203
  return !1;
204
204
  }
205
- var nt = typeof exports == "object" && exports && !exports.nodeType && exports, je = nt && typeof module == "object" && module && !module.nodeType && module, Dn = je && je.exports === nt, Ie = Dn ? M.Buffer : void 0, Nn = Ie ? Ie.isBuffer : void 0, _e = Nn || Ln, Fn = "[object Arguments]", Hn = "[object Array]", Un = "[object Boolean]", Gn = "[object Date]", Vn = "[object Error]", Kn = "[object Function]", Wn = "[object Map]", qn = "[object Number]", Xn = "[object Object]", Yn = "[object RegExp]", Jn = "[object Set]", Zn = "[object String]", kn = "[object WeakMap]", Qn = "[object ArrayBuffer]", er = "[object DataView]", tr = "[object Float32Array]", nr = "[object Float64Array]", rr = "[object Int8Array]", ar = "[object Int16Array]", or = "[object Int32Array]", ir = "[object Uint8Array]", sr = "[object Uint8ClampedArray]", lr = "[object Uint16Array]", ur = "[object Uint32Array]", m = {};
206
- m[tr] = m[nr] = m[rr] = m[ar] = m[or] = m[ir] = m[sr] = m[lr] = m[ur] = !0;
207
- m[Fn] = m[Hn] = m[Qn] = m[Un] = m[er] = m[Gn] = m[Vn] = m[Kn] = m[Wn] = m[qn] = m[Xn] = m[Yn] = m[Jn] = m[Zn] = m[kn] = !1;
208
- function fr(e) {
209
- return te(e) && et(e.length) && !!m[ae(e)];
210
- }
205
+ var rt = typeof exports == "object" && exports && !exports.nodeType && exports, Ie = rt && typeof module == "object" && module && !module.nodeType && module, Nn = Ie && Ie.exports === rt, Re = Nn ? M.Buffer : void 0, Fn = Re ? Re.isBuffer : void 0, _e = Fn || Dn, Hn = "[object Arguments]", Un = "[object Array]", Gn = "[object Boolean]", Vn = "[object Date]", Kn = "[object Error]", Wn = "[object Function]", qn = "[object Map]", Xn = "[object Number]", Yn = "[object Object]", kn = "[object RegExp]", Jn = "[object Set]", Zn = "[object String]", Qn = "[object WeakMap]", er = "[object ArrayBuffer]", tr = "[object DataView]", nr = "[object Float32Array]", rr = "[object Float64Array]", ar = "[object Int8Array]", or = "[object Int16Array]", ir = "[object Int32Array]", sr = "[object Uint8Array]", lr = "[object Uint8ClampedArray]", ur = "[object Uint16Array]", fr = "[object Uint32Array]", m = {};
206
+ m[nr] = m[rr] = m[ar] = m[or] = m[ir] = m[sr] = m[lr] = m[ur] = m[fr] = !0;
207
+ m[Hn] = m[Un] = m[er] = m[Gn] = m[tr] = m[Vn] = m[Kn] = m[Wn] = m[qn] = m[Xn] = m[Yn] = m[kn] = m[Jn] = m[Zn] = m[Qn] = !1;
211
208
  function dr(e) {
209
+ return te(e) && tt(e.length) && !!m[ae(e)];
210
+ }
211
+ function cr(e) {
212
212
  return function(t) {
213
213
  return e(t);
214
214
  };
215
215
  }
216
- var rt = typeof exports == "object" && exports && !exports.nodeType && exports, ee = rt && typeof module == "object" && module && !module.nodeType && module, pr = ee && ee.exports === rt, ce = pr && Ye.process, Re = function() {
216
+ var at = typeof exports == "object" && exports && !exports.nodeType && exports, ee = at && typeof module == "object" && module && !module.nodeType && module, pr = ee && ee.exports === at, pe = pr && ke.process, Ee = function() {
217
217
  try {
218
218
  var e = ee && ee.require && ee.require("util").types;
219
- return e || ce && ce.binding && ce.binding("util");
219
+ return e || pe && pe.binding && pe.binding("util");
220
220
  } catch {
221
221
  }
222
- }(), Ee = Re && Re.isTypedArray, at = Ee ? dr(Ee) : fr, cr = Object.prototype, gr = cr.hasOwnProperty;
223
- function mr(e, t) {
224
- var n = se(e), r = !n && Bn(e), f = !n && !r && _e(e), o = !n && !r && !f && at(e), l = n || r || f || o, b = l ? En(e.length, String) : [], v = b.length;
222
+ }(), xe = Ee && Ee.isTypedArray, ot = xe ? cr(xe) : dr, gr = Object.prototype, mr = gr.hasOwnProperty;
223
+ function br(e, t) {
224
+ var n = se(e), r = !n && Ln(e), f = !n && !r && _e(e), o = !n && !r && !f && ot(e), l = n || r || f || o, b = l ? xn(e.length, String) : [], v = b.length;
225
225
  for (var g in e)
226
- gr.call(e, g) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
226
+ mr.call(e, g) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
227
227
  (g == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
228
228
  f && (g == "offset" || g == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
229
229
  o && (g == "buffer" || g == "byteLength" || g == "byteOffset") || // Skip index properties.
230
- Pn(g, v))) && b.push(g);
230
+ An(g, v))) && b.push(g);
231
231
  return b;
232
232
  }
233
- function br(e, t) {
233
+ function yr(e, t) {
234
234
  return function(n) {
235
235
  return e(t(n));
236
236
  };
237
237
  }
238
- var yr = br(Object.keys, Object), vr = Object.prototype, _r = vr.hasOwnProperty;
239
- function hr(e) {
240
- if (!Rn(e))
241
- return yr(e);
238
+ var vr = yr(Object.keys, Object), _r = Object.prototype, hr = _r.hasOwnProperty;
239
+ function wr(e) {
240
+ if (!En(e))
241
+ return vr(e);
242
242
  var t = [];
243
243
  for (var n in Object(e))
244
- _r.call(e, n) && n != "constructor" && t.push(n);
244
+ hr.call(e, n) && n != "constructor" && t.push(n);
245
245
  return t;
246
246
  }
247
- function wr(e) {
248
- return jn(e) ? mr(e) : hr(e);
247
+ function Sr(e) {
248
+ return In(e) ? br(e) : wr(e);
249
249
  }
250
250
  var ne = X(Object, "create");
251
- function Sr() {
251
+ function Tr() {
252
252
  this.__data__ = ne ? ne(null) : {}, this.size = 0;
253
253
  }
254
- function Tr(e) {
254
+ function $r(e) {
255
255
  var t = this.has(e) && delete this.__data__[e];
256
256
  return this.size -= t ? 1 : 0, t;
257
257
  }
258
- var $r = "__lodash_hash_undefined__", Or = Object.prototype, Cr = Or.hasOwnProperty;
259
- function Pr(e) {
258
+ var Or = "__lodash_hash_undefined__", Cr = Object.prototype, Pr = Cr.hasOwnProperty;
259
+ function Ar(e) {
260
260
  var t = this.__data__;
261
261
  if (ne) {
262
262
  var n = t[e];
263
- return n === $r ? void 0 : n;
263
+ return n === Or ? void 0 : n;
264
264
  }
265
- return Cr.call(t, e) ? t[e] : void 0;
265
+ return Pr.call(t, e) ? t[e] : void 0;
266
266
  }
267
- var Ar = Object.prototype, jr = Ar.hasOwnProperty;
268
- function Ir(e) {
267
+ var jr = Object.prototype, Ir = jr.hasOwnProperty;
268
+ function Rr(e) {
269
269
  var t = this.__data__;
270
- return ne ? t[e] !== void 0 : jr.call(t, e);
270
+ return ne ? t[e] !== void 0 : Ir.call(t, e);
271
271
  }
272
- var Rr = "__lodash_hash_undefined__";
273
- function Er(e, t) {
272
+ var Er = "__lodash_hash_undefined__";
273
+ function xr(e, t) {
274
274
  var n = this.__data__;
275
- return this.size += this.has(e) ? 0 : 1, n[e] = ne && t === void 0 ? Rr : t, this;
275
+ return this.size += this.has(e) ? 0 : 1, n[e] = ne && t === void 0 ? Er : t, this;
276
276
  }
277
277
  function H(e) {
278
278
  var t = -1, n = e == null ? 0 : e.length;
@@ -281,36 +281,36 @@ function H(e) {
281
281
  this.set(r[0], r[1]);
282
282
  }
283
283
  }
284
- H.prototype.clear = Sr;
285
- H.prototype.delete = Tr;
286
- H.prototype.get = Pr;
287
- H.prototype.has = Ir;
288
- H.prototype.set = Er;
284
+ H.prototype.clear = Tr;
285
+ H.prototype.delete = $r;
286
+ H.prototype.get = Ar;
287
+ H.prototype.has = Rr;
288
+ H.prototype.set = xr;
289
289
  function zr() {
290
290
  this.__data__ = [], this.size = 0;
291
291
  }
292
292
  function ue(e, t) {
293
293
  for (var n = e.length; n--; )
294
- if (Qe(e[n][0], t))
294
+ if (et(e[n][0], t))
295
295
  return n;
296
296
  return -1;
297
297
  }
298
- var xr = Array.prototype, Mr = xr.splice;
299
- function Br(e) {
298
+ var Mr = Array.prototype, Br = Mr.splice;
299
+ function Lr(e) {
300
300
  var t = this.__data__, n = ue(t, e);
301
301
  if (n < 0)
302
302
  return !1;
303
303
  var r = t.length - 1;
304
- return n == r ? t.pop() : Mr.call(t, n, 1), --this.size, !0;
304
+ return n == r ? t.pop() : Br.call(t, n, 1), --this.size, !0;
305
305
  }
306
- function Lr(e) {
306
+ function Dr(e) {
307
307
  var t = this.__data__, n = ue(t, e);
308
308
  return n < 0 ? void 0 : t[n][1];
309
309
  }
310
- function Dr(e) {
310
+ function Nr(e) {
311
311
  return ue(this.__data__, e) > -1;
312
312
  }
313
- function Nr(e, t) {
313
+ function Fr(e, t) {
314
314
  var n = this.__data__, r = ue(n, e);
315
315
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
316
316
  }
@@ -322,37 +322,37 @@ function B(e) {
322
322
  }
323
323
  }
324
324
  B.prototype.clear = zr;
325
- B.prototype.delete = Br;
326
- B.prototype.get = Lr;
327
- B.prototype.has = Dr;
328
- B.prototype.set = Nr;
325
+ B.prototype.delete = Lr;
326
+ B.prototype.get = Dr;
327
+ B.prototype.has = Nr;
328
+ B.prototype.set = Fr;
329
329
  var re = X(M, "Map");
330
- function Fr() {
330
+ function Hr() {
331
331
  this.size = 0, this.__data__ = {
332
332
  hash: new H(),
333
333
  map: new (re || B)(),
334
334
  string: new H()
335
335
  };
336
336
  }
337
- function Hr(e) {
337
+ function Ur(e) {
338
338
  var t = typeof e;
339
339
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
340
340
  }
341
341
  function fe(e, t) {
342
342
  var n = e.__data__;
343
- return Hr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
343
+ return Ur(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
344
344
  }
345
- function Ur(e) {
345
+ function Gr(e) {
346
346
  var t = fe(this, e).delete(e);
347
347
  return this.size -= t ? 1 : 0, t;
348
348
  }
349
- function Gr(e) {
349
+ function Vr(e) {
350
350
  return fe(this, e).get(e);
351
351
  }
352
- function Vr(e) {
352
+ function Kr(e) {
353
353
  return fe(this, e).has(e);
354
354
  }
355
- function Kr(e, t) {
355
+ function Wr(e, t) {
356
356
  var n = fe(this, e), r = n.size;
357
357
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
358
358
  }
@@ -363,31 +363,31 @@ function G(e) {
363
363
  this.set(r[0], r[1]);
364
364
  }
365
365
  }
366
- G.prototype.clear = Fr;
367
- G.prototype.delete = Ur;
368
- G.prototype.get = Gr;
369
- G.prototype.has = Vr;
370
- G.prototype.set = Kr;
371
- function Wr(e, t) {
366
+ G.prototype.clear = Hr;
367
+ G.prototype.delete = Gr;
368
+ G.prototype.get = Vr;
369
+ G.prototype.has = Kr;
370
+ G.prototype.set = Wr;
371
+ function qr(e, t) {
372
372
  for (var n = -1, r = t.length, f = e.length; ++n < r; )
373
373
  e[f + n] = t[n];
374
374
  return e;
375
375
  }
376
- function qr() {
376
+ function Xr() {
377
377
  this.__data__ = new B(), this.size = 0;
378
378
  }
379
- function Xr(e) {
379
+ function Yr(e) {
380
380
  var t = this.__data__, n = t.delete(e);
381
381
  return this.size = t.size, n;
382
382
  }
383
- function Yr(e) {
383
+ function kr(e) {
384
384
  return this.__data__.get(e);
385
385
  }
386
386
  function Jr(e) {
387
387
  return this.__data__.has(e);
388
388
  }
389
389
  var Zr = 200;
390
- function kr(e, t) {
390
+ function Qr(e, t) {
391
391
  var n = this.__data__;
392
392
  if (n instanceof B) {
393
393
  var r = n.__data__;
@@ -401,56 +401,56 @@ function F(e) {
401
401
  var t = this.__data__ = new B(e);
402
402
  this.size = t.size;
403
403
  }
404
- F.prototype.clear = qr;
405
- F.prototype.delete = Xr;
406
- F.prototype.get = Yr;
404
+ F.prototype.clear = Xr;
405
+ F.prototype.delete = Yr;
406
+ F.prototype.get = kr;
407
407
  F.prototype.has = Jr;
408
- F.prototype.set = kr;
409
- function Qr(e, t) {
408
+ F.prototype.set = Qr;
409
+ function ea(e, t) {
410
410
  for (var n = -1, r = e == null ? 0 : e.length, f = 0, o = []; ++n < r; ) {
411
411
  var l = e[n];
412
412
  t(l, n, e) && (o[f++] = l);
413
413
  }
414
414
  return o;
415
415
  }
416
- function ea() {
416
+ function ta() {
417
417
  return [];
418
418
  }
419
- var ta = Object.prototype, na = ta.propertyIsEnumerable, ze = Object.getOwnPropertySymbols, ra = ze ? function(e) {
420
- return e == null ? [] : (e = Object(e), Qr(ze(e), function(t) {
421
- return na.call(e, t);
419
+ var na = Object.prototype, ra = na.propertyIsEnumerable, ze = Object.getOwnPropertySymbols, aa = ze ? function(e) {
420
+ return e == null ? [] : (e = Object(e), ea(ze(e), function(t) {
421
+ return ra.call(e, t);
422
422
  }));
423
- } : ea;
424
- function aa(e, t, n) {
423
+ } : ta;
424
+ function oa(e, t, n) {
425
425
  var r = t(e);
426
- return se(e) ? r : Wr(r, n(e));
426
+ return se(e) ? r : qr(r, n(e));
427
427
  }
428
- function xe(e) {
429
- return aa(e, wr, ra);
428
+ function Me(e) {
429
+ return oa(e, Sr, aa);
430
430
  }
431
- var he = X(M, "DataView"), we = X(M, "Promise"), Se = X(M, "Set"), Me = "[object Map]", oa = "[object Object]", Be = "[object Promise]", Le = "[object Set]", De = "[object WeakMap]", Ne = "[object DataView]", ia = U(he), sa = U(re), la = U(we), ua = U(Se), fa = U(ve), N = ae;
432
- (he && N(new he(new ArrayBuffer(1))) != Ne || re && N(new re()) != Me || we && N(we.resolve()) != Be || Se && N(new Se()) != Le || ve && N(new ve()) != De) && (N = function(e) {
433
- var t = ae(e), n = t == oa ? e.constructor : void 0, r = n ? U(n) : "";
431
+ var he = X(M, "DataView"), we = X(M, "Promise"), Se = X(M, "Set"), Be = "[object Map]", ia = "[object Object]", Le = "[object Promise]", De = "[object Set]", Ne = "[object WeakMap]", Fe = "[object DataView]", sa = U(he), la = U(re), ua = U(we), fa = U(Se), da = U(ve), N = ae;
432
+ (he && N(new he(new ArrayBuffer(1))) != Fe || re && N(new re()) != Be || we && N(we.resolve()) != Le || Se && N(new Se()) != De || ve && N(new ve()) != Ne) && (N = function(e) {
433
+ var t = ae(e), n = t == ia ? e.constructor : void 0, r = n ? U(n) : "";
434
434
  if (r)
435
435
  switch (r) {
436
- case ia:
437
- return Ne;
438
436
  case sa:
439
- return Me;
437
+ return Fe;
440
438
  case la:
441
439
  return Be;
442
440
  case ua:
443
441
  return Le;
444
442
  case fa:
445
443
  return De;
444
+ case da:
445
+ return Ne;
446
446
  }
447
447
  return t;
448
448
  });
449
- var Fe = M.Uint8Array, da = "__lodash_hash_undefined__";
449
+ var He = M.Uint8Array, ca = "__lodash_hash_undefined__";
450
450
  function pa(e) {
451
- return this.__data__.set(e, da), this;
451
+ return this.__data__.set(e, ca), this;
452
452
  }
453
- function ca(e) {
453
+ function ga(e) {
454
454
  return this.__data__.has(e);
455
455
  }
456
456
  function le(e) {
@@ -459,25 +459,25 @@ function le(e) {
459
459
  this.add(e[t]);
460
460
  }
461
461
  le.prototype.add = le.prototype.push = pa;
462
- le.prototype.has = ca;
463
- function ga(e, t) {
462
+ le.prototype.has = ga;
463
+ function ma(e, t) {
464
464
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
465
465
  if (t(e[n], n, e))
466
466
  return !0;
467
467
  return !1;
468
468
  }
469
- function ma(e, t) {
469
+ function ba(e, t) {
470
470
  return e.has(t);
471
471
  }
472
- var ba = 1, ya = 2;
473
- function ot(e, t, n, r, f, o) {
474
- var l = n & ba, b = e.length, v = t.length;
472
+ var ya = 1, va = 2;
473
+ function it(e, t, n, r, f, o) {
474
+ var l = n & ya, b = e.length, v = t.length;
475
475
  if (b != v && !(l && v > b))
476
476
  return !1;
477
- var g = o.get(e), c = o.get(t);
478
- if (g && c)
479
- return g == t && c == e;
480
- var h = -1, y = !0, $ = n & ya ? new le() : void 0;
477
+ var g = o.get(e), p = o.get(t);
478
+ if (g && p)
479
+ return g == t && p == e;
480
+ var h = -1, y = !0, $ = n & va ? new le() : void 0;
481
481
  for (o.set(e, t), o.set(t, e); ++h < b; ) {
482
482
  var w = e[h], S = t[h];
483
483
  if (r)
@@ -489,8 +489,8 @@ function ot(e, t, n, r, f, o) {
489
489
  break;
490
490
  }
491
491
  if ($) {
492
- if (!ga(t, function(z, I) {
493
- if (!ma($, I) && (w === z || f(w, z, n, r, o)))
492
+ if (!ma(t, function(x, I) {
493
+ if (!ba($, I) && (w === x || f(w, x, n, r, o)))
494
494
  return $.push(I);
495
495
  })) {
496
496
  y = !1;
@@ -503,62 +503,62 @@ function ot(e, t, n, r, f, o) {
503
503
  }
504
504
  return o.delete(e), o.delete(t), y;
505
505
  }
506
- function va(e) {
506
+ function _a(e) {
507
507
  var t = -1, n = Array(e.size);
508
508
  return e.forEach(function(r, f) {
509
509
  n[++t] = [f, r];
510
510
  }), n;
511
511
  }
512
- function _a(e) {
512
+ function ha(e) {
513
513
  var t = -1, n = Array(e.size);
514
514
  return e.forEach(function(r) {
515
515
  n[++t] = r;
516
516
  }), n;
517
517
  }
518
- var ha = 1, wa = 2, Sa = "[object Boolean]", Ta = "[object Date]", $a = "[object Error]", Oa = "[object Map]", Ca = "[object Number]", Pa = "[object RegExp]", Aa = "[object Set]", ja = "[object String]", Ia = "[object Symbol]", Ra = "[object ArrayBuffer]", Ea = "[object DataView]", He = q ? q.prototype : void 0, ge = He ? He.valueOf : void 0;
518
+ var wa = 1, Sa = 2, Ta = "[object Boolean]", $a = "[object Date]", Oa = "[object Error]", Ca = "[object Map]", Pa = "[object Number]", Aa = "[object RegExp]", ja = "[object Set]", Ia = "[object String]", Ra = "[object Symbol]", Ea = "[object ArrayBuffer]", xa = "[object DataView]", Ue = q ? q.prototype : void 0, ge = Ue ? Ue.valueOf : void 0;
519
519
  function za(e, t, n, r, f, o, l) {
520
520
  switch (n) {
521
- case Ea:
521
+ case xa:
522
522
  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
523
523
  return !1;
524
524
  e = e.buffer, t = t.buffer;
525
- case Ra:
526
- return !(e.byteLength != t.byteLength || !o(new Fe(e), new Fe(t)));
527
- case Sa:
525
+ case Ea:
526
+ return !(e.byteLength != t.byteLength || !o(new He(e), new He(t)));
528
527
  case Ta:
529
- case Ca:
530
- return Qe(+e, +t);
531
528
  case $a:
532
- return e.name == t.name && e.message == t.message;
533
529
  case Pa:
534
- case ja:
535
- return e == t + "";
530
+ return et(+e, +t);
536
531
  case Oa:
537
- var b = va;
532
+ return e.name == t.name && e.message == t.message;
538
533
  case Aa:
539
- var v = r & ha;
540
- if (b || (b = _a), e.size != t.size && !v)
534
+ case Ia:
535
+ return e == t + "";
536
+ case Ca:
537
+ var b = _a;
538
+ case ja:
539
+ var v = r & wa;
540
+ if (b || (b = ha), e.size != t.size && !v)
541
541
  return !1;
542
542
  var g = l.get(e);
543
543
  if (g)
544
544
  return g == t;
545
- r |= wa, l.set(e, t);
546
- var c = ot(b(e), b(t), r, f, o, l);
547
- return l.delete(e), c;
548
- case Ia:
545
+ r |= Sa, l.set(e, t);
546
+ var p = it(b(e), b(t), r, f, o, l);
547
+ return l.delete(e), p;
548
+ case Ra:
549
549
  if (ge)
550
550
  return ge.call(e) == ge.call(t);
551
551
  }
552
552
  return !1;
553
553
  }
554
- var xa = 1, Ma = Object.prototype, Ba = Ma.hasOwnProperty;
555
- function La(e, t, n, r, f, o) {
556
- var l = n & xa, b = xe(e), v = b.length, g = xe(t), c = g.length;
557
- if (v != c && !l)
554
+ var Ma = 1, Ba = Object.prototype, La = Ba.hasOwnProperty;
555
+ function Da(e, t, n, r, f, o) {
556
+ var l = n & Ma, b = Me(e), v = b.length, g = Me(t), p = g.length;
557
+ if (v != p && !l)
558
558
  return !1;
559
559
  for (var h = v; h--; ) {
560
560
  var y = b[h];
561
- if (!(l ? y in t : Ba.call(t, y)))
561
+ if (!(l ? y in t : La.call(t, y)))
562
562
  return !1;
563
563
  }
564
564
  var $ = o.get(e), w = o.get(t);
@@ -568,55 +568,55 @@ function La(e, t, n, r, f, o) {
568
568
  o.set(e, t), o.set(t, e);
569
569
  for (var O = l; ++h < v; ) {
570
570
  y = b[h];
571
- var z = e[y], I = t[y];
571
+ var x = e[y], I = t[y];
572
572
  if (r)
573
- var V = l ? r(I, z, y, t, e, o) : r(z, I, y, e, t, o);
574
- if (!(V === void 0 ? z === I || f(z, I, n, r, o) : V)) {
573
+ var V = l ? r(I, x, y, t, e, o) : r(x, I, y, e, t, o);
574
+ if (!(V === void 0 ? x === I || f(x, I, n, r, o) : V)) {
575
575
  S = !1;
576
576
  break;
577
577
  }
578
578
  O || (O = y == "constructor");
579
579
  }
580
580
  if (S && !O) {
581
- var L = e.constructor, x = t.constructor;
582
- L != x && "constructor" in e && "constructor" in t && !(typeof L == "function" && L instanceof L && typeof x == "function" && x instanceof x) && (S = !1);
581
+ var L = e.constructor, z = t.constructor;
582
+ L != z && "constructor" in e && "constructor" in t && !(typeof L == "function" && L instanceof L && typeof z == "function" && z instanceof z) && (S = !1);
583
583
  }
584
584
  return o.delete(e), o.delete(t), S;
585
585
  }
586
- var Da = 1, Ue = "[object Arguments]", Ge = "[object Array]", ie = "[object Object]", Na = Object.prototype, Ve = Na.hasOwnProperty;
587
- function Fa(e, t, n, r, f, o) {
588
- var l = se(e), b = se(t), v = l ? Ge : N(e), g = b ? Ge : N(t);
589
- v = v == Ue ? ie : v, g = g == Ue ? ie : g;
590
- var c = v == ie, h = g == ie, y = v == g;
586
+ var Na = 1, Ge = "[object Arguments]", Ve = "[object Array]", ie = "[object Object]", Fa = Object.prototype, Ke = Fa.hasOwnProperty;
587
+ function Ha(e, t, n, r, f, o) {
588
+ var l = se(e), b = se(t), v = l ? Ve : N(e), g = b ? Ve : N(t);
589
+ v = v == Ge ? ie : v, g = g == Ge ? ie : g;
590
+ var p = v == ie, h = g == ie, y = v == g;
591
591
  if (y && _e(e)) {
592
592
  if (!_e(t))
593
593
  return !1;
594
- l = !0, c = !1;
594
+ l = !0, p = !1;
595
595
  }
596
- if (y && !c)
597
- return o || (o = new F()), l || at(e) ? ot(e, t, n, r, f, o) : za(e, t, v, n, r, f, o);
598
- if (!(n & Da)) {
599
- var $ = c && Ve.call(e, "__wrapped__"), w = h && Ve.call(t, "__wrapped__");
596
+ if (y && !p)
597
+ return o || (o = new F()), l || ot(e) ? it(e, t, n, r, f, o) : za(e, t, v, n, r, f, o);
598
+ if (!(n & Na)) {
599
+ var $ = p && Ke.call(e, "__wrapped__"), w = h && Ke.call(t, "__wrapped__");
600
600
  if ($ || w) {
601
601
  var S = $ ? e.value() : e, O = w ? t.value() : t;
602
602
  return o || (o = new F()), f(S, O, n, r, o);
603
603
  }
604
604
  }
605
- return y ? (o || (o = new F()), La(e, t, n, r, f, o)) : !1;
605
+ return y ? (o || (o = new F()), Da(e, t, n, r, f, o)) : !1;
606
606
  }
607
- function it(e, t, n, r, f) {
608
- return e === t ? !0 : e == null || t == null || !te(e) && !te(t) ? e !== e && t !== t : Fa(e, t, n, r, it, f);
607
+ function st(e, t, n, r, f) {
608
+ return e === t ? !0 : e == null || t == null || !te(e) && !te(t) ? e !== e && t !== t : Ha(e, t, n, r, st, f);
609
609
  }
610
- function Ha(e, t) {
611
- return it(e, t);
610
+ function Ua(e, t) {
611
+ return st(e, t);
612
612
  }
613
- const Ua = {
613
+ const Ga = {
614
614
  key: 0,
615
615
  class: "w-full py-3"
616
- }, Ga = { class: "flex h-full items-center border-b border-l border-border/[0.16] bg-foreground/[0.04] px-1" }, Va = ["onMousedown", "className"], Ka = { class: "mt-1 flex w-full items-center justify-between" }, Wa = { class: "relative -mb-[6px] inline-block rounded-t-lg bg-background px-4 py-2 text-sm font-medium shadow-top-shadow" }, qa = {
616
+ }, Va = { class: "flex h-full items-center border-b border-l border-border/[0.16] bg-foreground/[0.04] px-1" }, Ka = ["onMousedown", "className"], Wa = { class: "mt-1 flex w-full items-center justify-between" }, qa = { class: "relative -mb-[6px] inline-block rounded-t-lg bg-background px-4 py-2 text-sm font-medium shadow-top-shadow" }, Xa = {
617
617
  key: 0,
618
618
  class: "flex min-h-8 items-center"
619
- }, Ke = "#UNDEFINED#", wo = /* @__PURE__ */ We({
619
+ }, We = "#UNDEFINED#", So = /* @__PURE__ */ qe({
620
620
  __name: "BuiDataTable",
621
621
  props: /* @__PURE__ */ wt({
622
622
  columns: {},
@@ -655,7 +655,7 @@ const Ua = {
655
655
  setup(e) {
656
656
  const t = e, n = K(e, "sorting"), r = K(e, "pagination"), f = K(e, "selection"), o = K(e, "columnVisibility"), l = K(e, "columnOrder"), b = K(e, "columnSizing"), v = D(
657
657
  () => t.manualPagination ? t.totalItems : t.data.length
658
- ), g = t.columns.map((a) => a.meta?.pinLeft && a.id ? a.id : "").filter(Boolean), c = xt({
658
+ ), g = t.columns.map((a) => a.meta?.pinLeft && a.id ? a.id : "").filter(Boolean), p = Mt({
659
659
  initialState: {
660
660
  // TODO: column freeze
661
661
  columnPinning: { left: g },
@@ -667,23 +667,23 @@ const Ua = {
667
667
  get columns() {
668
668
  return t.columns;
669
669
  },
670
- getCoreRowModel: Mt(),
671
- getPaginationRowModel: Bt(),
672
- getSortedRowModel: Lt(),
670
+ getCoreRowModel: Bt(),
671
+ getPaginationRowModel: Lt(),
672
+ getSortedRowModel: Dt(),
673
673
  onSortingChange: (a) => {
674
- Z(a, n);
674
+ J(a, n);
675
675
  },
676
676
  onPaginationChange: (a) => {
677
- Z(a, r);
677
+ J(a, r);
678
678
  },
679
679
  onRowSelectionChange: (a) => {
680
- Z(a, f);
680
+ J(a, f);
681
681
  },
682
- onColumnVisibilityChange: (a) => {
683
- Z(a, o);
682
+ onColumnVisibilityChange: async (a) => {
683
+ J(a, o), await St(), $e();
684
684
  },
685
685
  onColumnOrderChange: (a) => {
686
- Z(a, l);
686
+ J(a, l);
687
687
  },
688
688
  autoResetPageIndex: !1,
689
689
  manualPagination: t.manualPagination,
@@ -709,95 +709,95 @@ const Ua = {
709
709
  getRowId: t.getRowId
710
710
  }), h = D({
711
711
  get() {
712
- return c.getState().pagination.pageSize;
712
+ return p.getState().pagination.pageSize;
713
713
  },
714
714
  set(a) {
715
- r.value && (r.value.pageSize = a, c.setPageSize(a), c.setPageIndex(0));
715
+ r.value && (r.value.pageSize = a, p.setPageSize(a), p.setPageIndex(0));
716
716
  }
717
717
  }), y = D({
718
718
  get() {
719
- return c.getState().pagination.pageIndex + 1;
719
+ return p.getState().pagination.pageIndex + 1;
720
720
  },
721
721
  set(a) {
722
- r.value && (r.value.pageIndex = a - 1, c.setPageIndex(a - 1));
722
+ r.value && (r.value.pageIndex = a - 1, p.setPageIndex(a - 1));
723
723
  }
724
724
  });
725
- $e(() => {
726
- const a = c.getPageCount();
725
+ Oe(() => {
726
+ const a = p.getPageCount();
727
727
  a && a < y.value && (y.value = a);
728
728
  });
729
- const $ = D(() => t.groupBy ? c.getRowModel().rows.reduce((a, i) => {
730
- const C = i.getValue(t.groupBy) ?? Ke;
729
+ const $ = D(() => t.groupBy ? p.getRowModel().rows.reduce((a, i) => {
730
+ const C = i.getValue(t.groupBy) ?? We;
731
731
  return a[C] = a[C] || [], a[C].push(i), a;
732
732
  }, /* @__PURE__ */ Object.create(null)) : null);
733
733
  function w(a) {
734
734
  return (t.groupBy && t.groupLabels ? t.groupLabels[t.groupBy] || [] : [])[a];
735
735
  }
736
736
  const S = oe(
737
- c.getAllColumns().filter((a) => typeof a.accessorFn < "u" && a.getCanHide()).sort((a, i) => l.value ? l.value?.indexOf(a.id) < 0 && l.value?.indexOf(i.id) >= 0 ? 1 : l.value?.indexOf(a.id) >= 0 && l.value?.indexOf(i.id) < 0 ? -1 : l.value?.indexOf(a.id) - l.value?.indexOf(i.id) : 0)
738
- ), O = D(() => S.value.map((a) => a.id)), z = D(
737
+ p.getAllColumns().filter((a) => typeof a.accessorFn < "u" && a.getCanHide()).sort((a, i) => l.value ? l.value?.indexOf(a.id) < 0 && l.value?.indexOf(i.id) >= 0 ? 1 : l.value?.indexOf(a.id) >= 0 && l.value?.indexOf(i.id) < 0 ? -1 : l.value?.indexOf(a.id) - l.value?.indexOf(i.id) : 0)
738
+ ), O = D(() => S.value.map((a) => a.id)), x = D(
739
739
  () => O.value.reduce((a, i) => ({ ...a, [i]: !0 }), {})
740
740
  ), I = oe(!1), V = oe(""), L = D(
741
- () => c.getHeaderGroups().length > 0 ? c.getHeaderGroups()[0].headers : void 0
741
+ () => p.getHeaderGroups().length > 0 ? p.getHeaderGroups()[0].headers : void 0
742
742
  );
743
- St(O, () => {
744
- c.setColumnOrder(O.value);
743
+ Tt(O, () => {
744
+ p.setColumnOrder(O.value);
745
745
  });
746
- const x = oe(null), { height: lt } = qt(x), {
747
- tableHeaderElement: ut,
746
+ const z = oe(null), { height: ut } = Xt(z), {
747
+ tableHeaderElement: ft,
748
748
  calculatedColumnSizing: de,
749
- isResizing: ft,
750
- resizingCellId: dt,
749
+ isResizing: dt,
750
+ resizingCellId: ct,
751
751
  resetCells: Te,
752
752
  handleResizeControlMouseDown: pt,
753
- handleResizeControlMouseUp: ct,
754
- setInitialColumnWidths: gt,
753
+ handleResizeControlMouseUp: gt,
754
+ setInitialColumnWidths: $e,
755
755
  setProvidedCellWidths: mt
756
- } = Yt();
757
- return Tt(() => {
756
+ } = kt();
757
+ return $t(() => {
758
758
  de.value = b.value;
759
- }), $t(() => {
760
- x.value && (ut.value = x.value, mt(b.value), gt());
761
- }), $e(() => {
762
- Ha(de.value, b.value) || (b.value = de.value);
763
- }), Xt(document, "mouseup", ct), (a, i) => (p(), T(j, null, [
764
- a.$slots.caption ? (p(), T("div", Ua, [
765
- R(a.$slots, "caption", { table: s(c) })
759
+ }), Ot(() => {
760
+ z.value && (ft.value = z.value, mt(b.value), $e());
761
+ }), Oe(() => {
762
+ Ua(de.value, b.value) || (b.value = de.value);
763
+ }), Yt(document, "mouseup", gt), (a, i) => (c(), T(j, null, [
764
+ a.$slots.caption ? (c(), T("div", Ga, [
765
+ R(a.$slots, "caption", { table: s(p) })
766
766
  ])) : E("", !0),
767
- _(s(bt), null, Ot({
767
+ _(s(bt), null, Ct({
768
768
  default: d(() => [
769
- L.value ? (p(), P(s(_t), {
769
+ L.value ? (c(), P(s(_t), {
770
770
  key: 0,
771
771
  "freeze-header": t.freezeHeader,
772
772
  ref_key: "tableHeaderRef",
773
- ref: x
773
+ ref: z
774
774
  }, {
775
775
  default: d(() => [
776
- (p(!0), T(j, null, Q(L.value, (u, C) => (p(), P(s(vt), {
776
+ (c(!0), T(j, null, Q(L.value, (u, C) => (c(), P(s(vt), {
777
777
  key: u.id,
778
778
  id: `${u.id}_cell`,
779
779
  style: ye({
780
- ...s(st)(u.column)
780
+ ...s(lt)(u.column)
781
781
  }),
782
782
  "freeze-header": t.freezeHeader,
783
783
  "can-resize": u.column.getCanResize() ? !0 : void 0
784
784
  }, {
785
785
  default: d(() => [
786
- u.isPlaceholder ? E("", !0) : (p(), P(s(Xe), {
786
+ u.isPlaceholder ? E("", !0) : (c(), P(s(Ye), {
787
787
  key: 0,
788
788
  render: u.column.columnDef.header,
789
789
  props: u.getContext()
790
790
  }, null, 8, ["render", "props"])),
791
- a.enableColumnResizing && C < L.value.length - 1 && u.column.getCanResize() ? (p(), T("div", {
791
+ a.enableColumnResizing && C < L.value.length - 1 && u.column.getCanResize() ? (c(), T("div", {
792
792
  key: 1,
793
793
  onDblclick: i[5] || (i[5] = //@ts-ignore
794
794
  (...Y) => s(Te) && s(Te)(...Y)),
795
795
  onMousedown: () => s(pt)(u.id, t.enableColumnResizing),
796
- className: s(Et)(
796
+ className: s(xt)(
797
797
  "absolute top-0 right-0 h-full w-1 bg-muted-foreground opacity-0 cursor-col-resize select-none touch-none hover:opacity-50",
798
- s(ft) && s(dt) === u.id ? "bg-primary opacity-50" : ""
798
+ s(dt) && s(ct) === u.id ? "bg-primary opacity-50" : ""
799
799
  )
800
- }, null, 40, Va)) : E("", !0)
800
+ }, null, 40, Ka)) : E("", !0)
801
801
  ]),
802
802
  _: 2
803
803
  }, 1032, ["id", "style", "freeze-header", "can-resize"]))), 128))
@@ -806,14 +806,14 @@ const Ua = {
806
806
  }, 8, ["freeze-header"])) : E("", !0),
807
807
  _(s(yt), null, {
808
808
  default: d(() => [
809
- s(c).getRowModel().rows?.length ? (p(), T(j, { key: 0 }, [
810
- t.groupBy && $.value ? (p(!0), T(j, { key: 0 }, Q($.value, (u, C) => (p(), P(s(Pt), {
809
+ s(p).getRowModel().rows?.length ? (c(), T(j, { key: 0 }, [
810
+ t.groupBy && $.value ? (c(!0), T(j, { key: 0 }, Q($.value, (u, C) => (c(), P(s(At), {
811
811
  asChild: "",
812
812
  key: C,
813
813
  open: !0
814
814
  }, {
815
815
  default: d(() => [
816
- _(s(At), { asChild: "" }, {
816
+ _(s(jt), { asChild: "" }, {
817
817
  default: d(() => [
818
818
  _(s(be), { class: "bg-foreground/[0.04]" }, {
819
819
  actions: d(() => [
@@ -825,8 +825,8 @@ const Ua = {
825
825
  class: "!pb-0"
826
826
  }, {
827
827
  default: d(() => [
828
- A("div", Ka, [
829
- A("div", Wa, [
828
+ A("div", Wa, [
829
+ A("div", qa, [
830
830
  i[8] || (i[8] = A("div", { class: "absolute -left-2 bottom-0 h-2 w-2 bg-background" }, null, -1)),
831
831
  i[9] || (i[9] = A("div", { class: "absolute -left-4 bottom-0 h-4 w-4 rounded-lg bg-background" }, null, -1)),
832
832
  i[10] || (i[10] = A("div", { class: "absolute -left-4 bottom-0 h-4 w-4 rounded-lg bg-foreground/[0.04]" }, null, -1)),
@@ -834,15 +834,15 @@ const Ua = {
834
834
  i[12] || (i[12] = A("div", { class: "absolute -right-4 bottom-0 h-4 w-4 rounded-lg bg-background" }, null, -1)),
835
835
  i[13] || (i[13] = A("div", { class: "absolute -right-4 bottom-0 h-4 w-4 rounded-lg bg-foreground/[0.04]" }, null, -1)),
836
836
  i[14] || (i[14] = A("div", null, null, -1)),
837
- C === Ke ? (p(), T(j, { key: 0 }, [
838
- W(J(w(1)), 1)
839
- ], 64)) : (p(), T(j, { key: 1 }, [
840
- W(J(w(0)) + ": ", 1),
837
+ C === We ? (c(), T(j, { key: 0 }, [
838
+ W(k(w(1)), 1)
839
+ ], 64)) : (c(), T(j, { key: 1 }, [
840
+ W(k(w(0)) + ": ", 1),
841
841
  a.$slots.groupName ? R(a.$slots, "groupName", {
842
842
  key: 0,
843
843
  group: C
844
- }) : (p(), T(j, { key: 1 }, [
845
- W(J(C), 1)
844
+ }) : (c(), T(j, { key: 1 }, [
845
+ W(k(C), 1)
846
846
  ], 64))
847
847
  ], 64))
848
848
  ]),
@@ -860,9 +860,9 @@ const Ua = {
860
860
  ]),
861
861
  _: 2
862
862
  }, 1024),
863
- _(s(jt), { asChild: "" }, {
863
+ _(s(It), { asChild: "" }, {
864
864
  default: d(() => [
865
- (p(!0), T(j, null, Q(u, (Y) => (p(), P(Oe, {
865
+ (c(!0), T(j, null, Q(u, (Y) => (c(), P(Ce, {
866
866
  key: Y.id,
867
867
  columns: t.columns,
868
868
  row: Y,
@@ -880,7 +880,7 @@ const Ua = {
880
880
  }, 1024)
881
881
  ]),
882
882
  _: 2
883
- }, 1024))), 128)) : (p(!0), T(j, { key: 1 }, Q(s(c).getRowModel().rows, (u) => (p(), P(Oe, {
883
+ }, 1024))), 128)) : (c(!0), T(j, { key: 1 }, Q(s(p).getRowModel().rows, (u) => (c(), P(Ce, {
884
884
  key: u.id,
885
885
  columns: t.columns,
886
886
  row: u,
@@ -893,7 +893,7 @@ const Ua = {
893
893
  ]),
894
894
  _: 2
895
895
  }, 1032, ["columns", "row", "renderSubComponent"]))), 128))
896
- ], 64)) : (p(), P(s(Ct), {
896
+ ], 64)) : (c(), P(s(Pt), {
897
897
  key: 1,
898
898
  colspan: a.columns.length
899
899
  }, {
@@ -913,18 +913,18 @@ const Ua = {
913
913
  a.enableColumnListControl ? {
914
914
  name: "columnVisibility",
915
915
  fn: d(() => [
916
- _(s(Gt), {
916
+ _(s(Vt), {
917
917
  open: I.value,
918
918
  "onUpdate:open": i[4] || (i[4] = (u) => I.value = u)
919
919
  }, {
920
920
  default: d(() => [
921
- _(s(Vt), { "as-child": "" }, {
921
+ _(s(Kt), { "as-child": "" }, {
922
922
  default: d(() => [
923
923
  A("div", {
924
924
  class: "absolute right-0 top-0 z-10 bg-background",
925
- style: ye({ height: `${s(lt).toFixed(1)}px` })
925
+ style: ye({ height: `${s(ut).toFixed(1)}px` })
926
926
  }, [
927
- A("div", Ga, [
927
+ A("div", Va, [
928
928
  _(s(zt), {
929
929
  variant: "ghost",
930
930
  class: "flex h-8 w-8 items-center justify-center text-foreground"
@@ -939,26 +939,26 @@ const Ua = {
939
939
  ]),
940
940
  _: 1
941
941
  }),
942
- _(s(Kt), {
942
+ _(s(Wt), {
943
943
  class: "w-[250px] p-0",
944
944
  align: "start"
945
945
  }, {
946
946
  default: d(() => [
947
- _(s(Dt), null, {
947
+ _(s(Nt), null, {
948
948
  default: d(() => [
949
- _(s(Ft), {
949
+ _(s(Ht), {
950
950
  placeholder: a.columnSearchPlaceholder,
951
951
  modelValue: V.value,
952
952
  "onUpdate:modelValue": i[0] || (i[0] = (u) => V.value = u),
953
953
  onInput: i[1] || (i[1] = (u) => V.value = u.target?.value)
954
954
  }, null, 8, ["placeholder", "modelValue"]),
955
- _(s(Ut), null, {
955
+ _(s(Gt), null, {
956
956
  default: d(() => [
957
- _(s(Wt), { class: "h-[300px]" }, {
957
+ _(s(qt), { class: "h-[300px]" }, {
958
958
  default: d(() => [
959
- _(s(Nt), null, {
959
+ _(s(Ft), null, {
960
960
  default: d(() => [
961
- W(J(a.columnSearchNotFound), 1)
961
+ W(k(a.columnSearchNotFound), 1)
962
962
  ]),
963
963
  _: 1
964
964
  }),
@@ -966,13 +966,13 @@ const Ua = {
966
966
  "columns-list": S.value,
967
967
  "onUpdate:columnsList": i[2] || (i[2] = (u) => S.value = u)
968
968
  }, null, 8, ["columns-list"]),
969
- _(s(Ht), {
969
+ _(s(Ut), {
970
970
  value: "reset_columns_visibility",
971
971
  class: "px-2 py-1.5 font-medium text-muted-foreground",
972
- onSelect: i[3] || (i[3] = (u) => s(c).setColumnVisibility({ ...o.value, ...z.value }))
972
+ onSelect: i[3] || (i[3] = (u) => s(p).setColumnVisibility({ ...o.value, ...x.value }))
973
973
  }, {
974
974
  default: d(() => [
975
- W(J(a.columnResetVisibility), 1)
975
+ W(k(a.columnResetVisibility), 1)
976
976
  ]),
977
977
  _: 1
978
978
  })
@@ -995,18 +995,18 @@ const Ua = {
995
995
  key: "0"
996
996
  } : void 0
997
997
  ]), 1024),
998
- (a.showPagination || a.$slots.numberOfItems) && v.value > 0 ? (p(), T("div", {
998
+ (a.showPagination || a.$slots.numberOfItems) && v.value > 0 ? (c(), T("div", {
999
999
  key: 1,
1000
- class: qe(["flex w-full border-x border-b border-border/[0.16] bg-primary/[0.04] px-2.5 py-1 text-sm text-muted-foreground", {
1000
+ class: Xe(["flex w-full border-x border-b border-border/[0.16] bg-primary/[0.04] px-2.5 py-1 text-sm text-muted-foreground", {
1001
1001
  "justify-between": a.showPagination && a.$slots.numberOfItems,
1002
1002
  "justify-start": a.$slots.numberOfItems && !a.showPagination,
1003
1003
  "justify-end": a.showPagination && !a.$slots.numberOfItems
1004
1004
  }])
1005
1005
  }, [
1006
- a.$slots.numberOfItems ? (p(), T("div", qa, [
1006
+ a.$slots.numberOfItems ? (c(), T("div", Xa, [
1007
1007
  R(a.$slots, "numberOfItems")
1008
1008
  ])) : E("", !0),
1009
- a.showPagination ? (p(), P(s(It), {
1009
+ a.showPagination ? (c(), P(s(Rt), {
1010
1010
  key: 1,
1011
1011
  total: v.value,
1012
1012
  pageIndex: y.value,
@@ -1019,21 +1019,21 @@ const Ua = {
1019
1019
  ], 64));
1020
1020
  }
1021
1021
  });
1022
- function st(e) {
1022
+ function lt(e) {
1023
1023
  return { position: "relative" };
1024
1024
  }
1025
1025
  export {
1026
- wo as BuiDataTable,
1026
+ So as BuiDataTable,
1027
1027
  Jt as BuiDataTableColumnList,
1028
1028
  bt as BuiTable,
1029
1029
  yt as BuiTableBody,
1030
- $o as BuiTableCaption,
1030
+ Oo as BuiTableCaption,
1031
1031
  me as BuiTableCell,
1032
- Ct as BuiTableEmpty,
1033
- Co as BuiTableFooter,
1032
+ Pt as BuiTableEmpty,
1033
+ Po as BuiTableFooter,
1034
1034
  vt as BuiTableHead,
1035
1035
  _t as BuiTableHeader,
1036
1036
  be as BuiTableRow,
1037
- Oe as BuiTableRowSubrow,
1038
- st as getPinningStyle
1037
+ Ce as BuiTableRowSubrow,
1038
+ lt as getPinningStyle
1039
1039
  };