@soft-stech/bootsman-ui-shadcn 1.4.38 → 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.
- package/dist/{BuiAutoForm.vue_vue_type_script_setup_true_lang-NgH9DwLC.js → BuiAutoForm.vue_vue_type_script_setup_true_lang-Dxpu5S0H.js} +1 -1
- package/dist/{BuiAutoFormField.vue_vue_type_script_setup_true_lang-sQMSYv4x.js → BuiAutoFormField.vue_vue_type_script_setup_true_lang-CGrtsy45.js} +4 -4
- package/dist/{BuiAutoFormFieldArray.vue_vue_type_script_setup_true_lang-Ca127sig.js → BuiAutoFormFieldArray.vue_vue_type_script_setup_true_lang-BUp0LzFn.js} +2 -2
- package/dist/{BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-Dw_hNSai.js → BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-D1ep3aAf.js} +1 -1
- package/dist/{BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-CF2OEO3g.js → BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-BknIdgDc.js} +3 -4
- package/dist/{BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DJLIoCbs.js → BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-B3DiJflK.js} +13 -14
- package/dist/{BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-CkG97QVf.js → BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-DauTmsh6.js} +3 -4
- package/dist/{BuiAutoFormFieldObject.vue_vue_type_script_setup_true_lang-D46XtQz6.js → BuiAutoFormFieldObject.vue_vue_type_script_setup_true_lang-DyP0uzRO.js} +1 -1
- package/dist/{BuiPaginationCommon.vue_vue_type_script_setup_true_lang-D1L6JoMY.js → BuiPaginationCommon.vue_vue_type_script_setup_true_lang-CCTFFo7-.js} +16 -17
- package/dist/components/ui/auto-form/BuiAutoForm.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormField.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldArray.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldArrayCard.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldDate.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldFile.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldInput.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldNumber.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldObject.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldObjectCard.js +1 -1
- package/dist/components/ui/auto-form/constant.js +5 -5
- package/dist/components/ui/auto-form/index.js +8 -8
- package/dist/components/ui/calendar/BuiCalendar.js +1 -1
- package/dist/components/ui/calendar/index.js +1 -1
- package/dist/components/ui/input/index.js +7 -8
- package/dist/components/ui/pagination/BuiPaginationCommon.js +1 -1
- package/dist/components/ui/pagination/index.js +1 -1
- package/dist/components/ui/table/index.js +314 -314
- package/dist/index.d.ts +0 -1
- package/dist/index.js +395 -396
- package/dist/lib/useResizeColumns.d.ts +13 -0
- package/dist/lib/useResizeColumns.js +70 -63
- package/dist/style.css +1 -0
- package/package.json +1 -1
- package/src/assets/main.css +1 -1
- package/src/components/stories/BuiDataTable.story.vue +8 -4
- package/src/components/stories/data/tasks.json +26 -13
- package/src/components/ui/table/BuiDataTable.vue +15 -2
- package/src/index.ts +0 -3
- package/src/lib/useResizeColumns.ts +52 -28
- package/dist/BuiCalendar.css +0 -1
- package/dist/assets/main.css +0 -1
- package/dist/index.css +0 -1
- package/dist/index2.css +0 -1
- /package/dist/{BuiCalendar.vue_vue_type_style_index_0_lang-DK4yUiXC.js → BuiCalendar.vue_vue_type_style_index_0_lang-BQ0IaS4p.js} +0 -0
@@ -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
|
8
|
-
import { _ as
|
9
|
-
import { _ as
|
10
|
-
import { _ as
|
11
|
-
import { _ as
|
12
|
-
import { _ as
|
13
|
-
import { _ as
|
14
|
-
import { _ as
|
15
|
-
import { h as
|
16
|
-
import { FlexRender as
|
17
|
-
import { _ as
|
18
|
-
import { _ as
|
19
|
-
import { _ as
|
20
|
-
import { _ as
|
21
|
-
import { _ as
|
22
|
-
import { _ as
|
23
|
-
import { _ as
|
24
|
-
import { _ as
|
25
|
-
import { _ as
|
26
|
-
import { useElementSize as
|
27
|
-
import { useResizeColumns as
|
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 =
|
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
|
-
]),
|
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(
|
49
|
-
return (r, f) => (
|
50
|
-
n.value ? E("", !0) : (
|
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:
|
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
|
-
(
|
59
|
+
(c(!0), T(j, null, Q(r.row.getVisibleCells(), (o) => (c(), P(s(me), {
|
60
60
|
key: o.id,
|
61
|
-
style: ye({ ...s(
|
61
|
+
style: ye({ ...s(lt)(o.column) })
|
62
62
|
}, {
|
63
63
|
default: d(() => [
|
64
|
-
_(s(
|
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) ? (
|
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
|
-
(
|
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
|
98
|
-
function
|
99
|
-
var t =
|
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[
|
101
|
+
e[Z] = void 0;
|
102
102
|
var r = !0;
|
103
103
|
} catch {
|
104
104
|
}
|
105
|
-
var f =
|
106
|
-
return r && (t ? e[
|
105
|
+
var f = nn.call(e);
|
106
|
+
return r && (t ? e[Z] = n : delete e[Z]), f;
|
107
107
|
}
|
108
|
-
var
|
109
|
-
function
|
110
|
-
return
|
108
|
+
var an = Object.prototype, on = an.toString;
|
109
|
+
function sn(e) {
|
110
|
+
return on.call(e);
|
111
111
|
}
|
112
|
-
var
|
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 ?
|
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
|
125
|
-
function
|
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 ==
|
129
|
+
return t == dn || t == cn || t == fn || t == pn;
|
130
130
|
}
|
131
|
-
var
|
132
|
-
var e = /[^.]+$/.exec(
|
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
|
136
|
-
return !!
|
135
|
+
function gn(e) {
|
136
|
+
return !!Ae && Ae in e;
|
137
137
|
}
|
138
|
-
var
|
138
|
+
var mn = Function.prototype, bn = mn.toString;
|
139
139
|
function U(e) {
|
140
140
|
if (e != null) {
|
141
141
|
try {
|
142
|
-
return
|
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
|
153
|
-
"^" +
|
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
|
156
|
-
if (!Ze(e) ||
|
155
|
+
function $n(e) {
|
156
|
+
if (!Ze(e) || gn(e))
|
157
157
|
return !1;
|
158
|
-
var t =
|
158
|
+
var t = Qe(e) ? Tn : vn;
|
159
159
|
return t.test(U(e));
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function On(e, t) {
|
162
162
|
return e?.[t];
|
163
163
|
}
|
164
164
|
function X(e, t) {
|
165
|
-
var n =
|
166
|
-
return
|
165
|
+
var n = On(e, t);
|
166
|
+
return $n(n) ? n : void 0;
|
167
167
|
}
|
168
|
-
var ve = X(M, "WeakMap"),
|
169
|
-
function
|
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 ??
|
171
|
+
return t = t ?? Cn, !!t && (n == "number" || n != "symbol" && Pn.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
172
172
|
}
|
173
|
-
function
|
173
|
+
function et(e, t) {
|
174
174
|
return e === t || e !== e && t !== t;
|
175
175
|
}
|
176
|
-
var
|
177
|
-
function
|
178
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
176
|
+
var jn = 9007199254740991;
|
177
|
+
function tt(e) {
|
178
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= jn;
|
179
179
|
}
|
180
|
-
function
|
181
|
-
return e != null &&
|
180
|
+
function In(e) {
|
181
|
+
return e != null && tt(e.length) && !Qe(e);
|
182
182
|
}
|
183
|
-
var
|
184
|
-
function
|
185
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
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
|
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
|
194
|
+
function je(e) {
|
195
195
|
return te(e) && ae(e) == zn;
|
196
196
|
}
|
197
|
-
var
|
197
|
+
var nt = Object.prototype, Mn = nt.hasOwnProperty, Bn = nt.propertyIsEnumerable, Ln = je(/* @__PURE__ */ function() {
|
198
198
|
return arguments;
|
199
|
-
}()) ?
|
200
|
-
return te(e) &&
|
199
|
+
}()) ? je : function(e) {
|
200
|
+
return te(e) && Mn.call(e, "callee") && !Bn.call(e, "callee");
|
201
201
|
};
|
202
|
-
function
|
202
|
+
function Dn() {
|
203
203
|
return !1;
|
204
204
|
}
|
205
|
-
var
|
206
|
-
m[
|
207
|
-
m[
|
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
|
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 ||
|
219
|
+
return e || pe && pe.binding && pe.binding("util");
|
220
220
|
} catch {
|
221
221
|
}
|
222
|
-
}(),
|
223
|
-
function
|
224
|
-
var n = se(e), r = !n &&
|
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
|
-
|
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
|
-
|
230
|
+
An(g, v))) && b.push(g);
|
231
231
|
return b;
|
232
232
|
}
|
233
|
-
function
|
233
|
+
function yr(e, t) {
|
234
234
|
return function(n) {
|
235
235
|
return e(t(n));
|
236
236
|
};
|
237
237
|
}
|
238
|
-
var
|
239
|
-
function
|
240
|
-
if (!
|
241
|
-
return
|
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
|
-
|
244
|
+
hr.call(e, n) && n != "constructor" && t.push(n);
|
245
245
|
return t;
|
246
246
|
}
|
247
|
-
function
|
248
|
-
return
|
247
|
+
function Sr(e) {
|
248
|
+
return In(e) ? br(e) : wr(e);
|
249
249
|
}
|
250
250
|
var ne = X(Object, "create");
|
251
|
-
function
|
251
|
+
function Tr() {
|
252
252
|
this.__data__ = ne ? ne(null) : {}, this.size = 0;
|
253
253
|
}
|
254
|
-
function
|
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
|
259
|
-
function
|
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 ===
|
263
|
+
return n === Or ? void 0 : n;
|
264
264
|
}
|
265
|
-
return
|
265
|
+
return Pr.call(t, e) ? t[e] : void 0;
|
266
266
|
}
|
267
|
-
var
|
268
|
-
function
|
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 :
|
270
|
+
return ne ? t[e] !== void 0 : Ir.call(t, e);
|
271
271
|
}
|
272
|
-
var
|
273
|
-
function
|
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 ?
|
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 =
|
285
|
-
H.prototype.delete =
|
286
|
-
H.prototype.get =
|
287
|
-
H.prototype.has =
|
288
|
-
H.prototype.set =
|
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 (
|
294
|
+
if (et(e[n][0], t))
|
295
295
|
return n;
|
296
296
|
return -1;
|
297
297
|
}
|
298
|
-
var
|
299
|
-
function
|
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() :
|
304
|
+
return n == r ? t.pop() : Br.call(t, n, 1), --this.size, !0;
|
305
305
|
}
|
306
|
-
function
|
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
|
310
|
+
function Nr(e) {
|
311
311
|
return ue(this.__data__, e) > -1;
|
312
312
|
}
|
313
|
-
function
|
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 =
|
326
|
-
B.prototype.get =
|
327
|
-
B.prototype.has =
|
328
|
-
B.prototype.set =
|
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
|
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
|
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
|
343
|
+
return Ur(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
344
344
|
}
|
345
|
-
function
|
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
|
349
|
+
function Vr(e) {
|
350
350
|
return fe(this, e).get(e);
|
351
351
|
}
|
352
|
-
function
|
352
|
+
function Kr(e) {
|
353
353
|
return fe(this, e).has(e);
|
354
354
|
}
|
355
|
-
function
|
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 =
|
367
|
-
G.prototype.delete =
|
368
|
-
G.prototype.get =
|
369
|
-
G.prototype.has =
|
370
|
-
G.prototype.set =
|
371
|
-
function
|
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
|
376
|
+
function Xr() {
|
377
377
|
this.__data__ = new B(), this.size = 0;
|
378
378
|
}
|
379
|
-
function
|
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
|
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
|
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 =
|
405
|
-
F.prototype.delete =
|
406
|
-
F.prototype.get =
|
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 =
|
409
|
-
function
|
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
|
416
|
+
function ta() {
|
417
417
|
return [];
|
418
418
|
}
|
419
|
-
var
|
420
|
-
return e == null ? [] : (e = Object(e),
|
421
|
-
return
|
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
|
-
} :
|
424
|
-
function
|
423
|
+
} : ta;
|
424
|
+
function oa(e, t, n) {
|
425
425
|
var r = t(e);
|
426
|
-
return se(e) ? r :
|
426
|
+
return se(e) ? r : qr(r, n(e));
|
427
427
|
}
|
428
|
-
function
|
429
|
-
return
|
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"),
|
432
|
-
(he && N(new he(new ArrayBuffer(1))) !=
|
433
|
-
var t = ae(e), n = t ==
|
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
|
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
|
449
|
+
var He = M.Uint8Array, ca = "__lodash_hash_undefined__";
|
450
450
|
function pa(e) {
|
451
|
-
return this.__data__.set(e,
|
451
|
+
return this.__data__.set(e, ca), this;
|
452
452
|
}
|
453
|
-
function
|
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 =
|
463
|
-
function
|
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
|
469
|
+
function ba(e, t) {
|
470
470
|
return e.has(t);
|
471
471
|
}
|
472
|
-
var
|
473
|
-
function
|
474
|
-
var l = n &
|
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),
|
478
|
-
if (g &&
|
479
|
-
return g == t &&
|
480
|
-
var h = -1, y = !0, $ = n &
|
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 (!
|
493
|
-
if (!
|
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
|
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
|
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
|
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
|
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
|
526
|
-
return !(e.byteLength != t.byteLength || !o(new
|
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
|
-
|
535
|
-
return e == t + "";
|
530
|
+
return et(+e, +t);
|
536
531
|
case Oa:
|
537
|
-
|
532
|
+
return e.name == t.name && e.message == t.message;
|
538
533
|
case Aa:
|
539
|
-
|
540
|
-
|
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 |=
|
546
|
-
var
|
547
|
-
return l.delete(e),
|
548
|
-
case
|
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
|
555
|
-
function
|
556
|
-
var l = n &
|
557
|
-
if (v !=
|
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 :
|
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
|
571
|
+
var x = e[y], I = t[y];
|
572
572
|
if (r)
|
573
|
-
var V = l ? r(I,
|
574
|
-
if (!(V === void 0 ?
|
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,
|
582
|
-
L !=
|
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
|
587
|
-
function
|
588
|
-
var l = se(e), b = se(t), v = l ?
|
589
|
-
v = v ==
|
590
|
-
var
|
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,
|
594
|
+
l = !0, p = !1;
|
595
595
|
}
|
596
|
-
if (y && !
|
597
|
-
return o || (o = new F()), l ||
|
598
|
-
if (!(n &
|
599
|
-
var $ =
|
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()),
|
605
|
+
return y ? (o || (o = new F()), Da(e, t, n, r, f, o)) : !1;
|
606
606
|
}
|
607
|
-
function
|
608
|
-
return e === t ? !0 : e == null || t == null || !te(e) && !te(t) ? e !== e && t !== t :
|
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
|
611
|
-
return
|
610
|
+
function Ua(e, t) {
|
611
|
+
return st(e, t);
|
612
612
|
}
|
613
|
-
const
|
613
|
+
const Ga = {
|
614
614
|
key: 0,
|
615
615
|
class: "w-full py-3"
|
616
|
-
},
|
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
|
-
},
|
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),
|
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:
|
671
|
-
getPaginationRowModel:
|
672
|
-
getSortedRowModel:
|
670
|
+
getCoreRowModel: Bt(),
|
671
|
+
getPaginationRowModel: Lt(),
|
672
|
+
getSortedRowModel: Dt(),
|
673
673
|
onSortingChange: (a) => {
|
674
|
-
|
674
|
+
J(a, n);
|
675
675
|
},
|
676
676
|
onPaginationChange: (a) => {
|
677
|
-
|
677
|
+
J(a, r);
|
678
678
|
},
|
679
679
|
onRowSelectionChange: (a) => {
|
680
|
-
|
680
|
+
J(a, f);
|
681
681
|
},
|
682
|
-
onColumnVisibilityChange: (a) => {
|
683
|
-
|
682
|
+
onColumnVisibilityChange: async (a) => {
|
683
|
+
J(a, o), await St(), $e();
|
684
684
|
},
|
685
685
|
onColumnOrderChange: (a) => {
|
686
|
-
|
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
|
712
|
+
return p.getState().pagination.pageSize;
|
713
713
|
},
|
714
714
|
set(a) {
|
715
|
-
r.value && (r.value.pageSize = a,
|
715
|
+
r.value && (r.value.pageSize = a, p.setPageSize(a), p.setPageIndex(0));
|
716
716
|
}
|
717
717
|
}), y = D({
|
718
718
|
get() {
|
719
|
-
return
|
719
|
+
return p.getState().pagination.pageIndex + 1;
|
720
720
|
},
|
721
721
|
set(a) {
|
722
|
-
r.value && (r.value.pageIndex = a - 1,
|
722
|
+
r.value && (r.value.pageIndex = a - 1, p.setPageIndex(a - 1));
|
723
723
|
}
|
724
724
|
});
|
725
|
-
|
726
|
-
const a =
|
725
|
+
Oe(() => {
|
726
|
+
const a = p.getPageCount();
|
727
727
|
a && a < y.value && (y.value = a);
|
728
728
|
});
|
729
|
-
const $ = D(() => t.groupBy ?
|
730
|
-
const C = i.getValue(t.groupBy) ??
|
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
|
-
|
738
|
-
), O = D(() => S.value.map((a) => a.id)),
|
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
|
-
() =>
|
741
|
+
() => p.getHeaderGroups().length > 0 ? p.getHeaderGroups()[0].headers : void 0
|
742
742
|
);
|
743
|
-
|
744
|
-
|
743
|
+
Tt(O, () => {
|
744
|
+
p.setColumnOrder(O.value);
|
745
745
|
});
|
746
|
-
const
|
747
|
-
tableHeaderElement:
|
746
|
+
const z = oe(null), { height: ut } = Xt(z), {
|
747
|
+
tableHeaderElement: ft,
|
748
748
|
calculatedColumnSizing: de,
|
749
|
-
isResizing:
|
750
|
-
resizingCellId:
|
749
|
+
isResizing: dt,
|
750
|
+
resizingCellId: ct,
|
751
751
|
resetCells: Te,
|
752
752
|
handleResizeControlMouseDown: pt,
|
753
|
-
handleResizeControlMouseUp:
|
754
|
-
setInitialColumnWidths:
|
753
|
+
handleResizeControlMouseUp: gt,
|
754
|
+
setInitialColumnWidths: $e,
|
755
755
|
setProvidedCellWidths: mt
|
756
|
-
} =
|
757
|
-
return
|
756
|
+
} = kt();
|
757
|
+
return $t(() => {
|
758
758
|
de.value = b.value;
|
759
|
-
}),
|
760
|
-
|
761
|
-
}),
|
762
|
-
|
763
|
-
}),
|
764
|
-
a.$slots.caption ? (
|
765
|
-
R(a.$slots, "caption", { table: s(
|
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,
|
767
|
+
_(s(bt), null, Ct({
|
768
768
|
default: d(() => [
|
769
|
-
L.value ? (
|
769
|
+
L.value ? (c(), P(s(_t), {
|
770
770
|
key: 0,
|
771
771
|
"freeze-header": t.freezeHeader,
|
772
772
|
ref_key: "tableHeaderRef",
|
773
|
-
ref:
|
773
|
+
ref: z
|
774
774
|
}, {
|
775
775
|
default: d(() => [
|
776
|
-
(
|
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(
|
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) : (
|
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() ? (
|
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(
|
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(
|
798
|
+
s(dt) && s(ct) === u.id ? "bg-primary opacity-50" : ""
|
799
799
|
)
|
800
|
-
}, null, 40,
|
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(
|
810
|
-
t.groupBy && $.value ? (
|
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(
|
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",
|
829
|
-
A("div",
|
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 ===
|
838
|
-
W(
|
839
|
-
], 64)) : (
|
840
|
-
W(
|
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
|
-
}) : (
|
845
|
-
W(
|
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(
|
863
|
+
_(s(It), { asChild: "" }, {
|
864
864
|
default: d(() => [
|
865
|
-
(
|
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)) : (
|
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)) : (
|
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(
|
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(
|
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(
|
925
|
+
style: ye({ height: `${s(ut).toFixed(1)}px` })
|
926
926
|
}, [
|
927
|
-
A("div",
|
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(
|
942
|
+
_(s(Wt), {
|
943
943
|
class: "w-[250px] p-0",
|
944
944
|
align: "start"
|
945
945
|
}, {
|
946
946
|
default: d(() => [
|
947
|
-
_(s(
|
947
|
+
_(s(Nt), null, {
|
948
948
|
default: d(() => [
|
949
|
-
_(s(
|
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(
|
955
|
+
_(s(Gt), null, {
|
956
956
|
default: d(() => [
|
957
|
-
_(s(
|
957
|
+
_(s(qt), { class: "h-[300px]" }, {
|
958
958
|
default: d(() => [
|
959
|
-
_(s(
|
959
|
+
_(s(Ft), null, {
|
960
960
|
default: d(() => [
|
961
|
-
W(
|
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(
|
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(
|
972
|
+
onSelect: i[3] || (i[3] = (u) => s(p).setColumnVisibility({ ...o.value, ...x.value }))
|
973
973
|
}, {
|
974
974
|
default: d(() => [
|
975
|
-
W(
|
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 ? (
|
998
|
+
(a.showPagination || a.$slots.numberOfItems) && v.value > 0 ? (c(), T("div", {
|
999
999
|
key: 1,
|
1000
|
-
class:
|
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 ? (
|
1006
|
+
a.$slots.numberOfItems ? (c(), T("div", Xa, [
|
1007
1007
|
R(a.$slots, "numberOfItems")
|
1008
1008
|
])) : E("", !0),
|
1009
|
-
a.showPagination ? (
|
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
|
1022
|
+
function lt(e) {
|
1023
1023
|
return { position: "relative" };
|
1024
1024
|
}
|
1025
1025
|
export {
|
1026
|
-
|
1026
|
+
So as BuiDataTable,
|
1027
1027
|
Jt as BuiDataTableColumnList,
|
1028
1028
|
bt as BuiTable,
|
1029
1029
|
yt as BuiTableBody,
|
1030
|
-
|
1030
|
+
Oo as BuiTableCaption,
|
1031
1031
|
me as BuiTableCell,
|
1032
|
-
|
1033
|
-
|
1032
|
+
Pt as BuiTableEmpty,
|
1033
|
+
Po as BuiTableFooter,
|
1034
1034
|
vt as BuiTableHead,
|
1035
1035
|
_t as BuiTableHeader,
|
1036
1036
|
be as BuiTableRow,
|
1037
|
-
|
1038
|
-
|
1037
|
+
Ce as BuiTableRowSubrow,
|
1038
|
+
lt as getPinningStyle
|
1039
1039
|
};
|