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