munza-x-data-grid 1.1.6 → 1.1.8
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/components/header/HeaderFilter.d.ts +5 -0
- package/dist/components/header/HeaderSort.d.ts +5 -0
- package/dist/components/table/TBody.d.ts +2 -0
- package/dist/components/table/TCell.d.ts +6 -0
- package/dist/components/table/THead.d.ts +6 -0
- package/dist/components/table/THeader.d.ts +2 -0
- package/dist/components/table/TMain.d.ts +2 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/contexts/GridContext.d.ts +25 -0
- package/dist/core/Grid.d.ts +2 -3
- package/dist/data-grid.cjs +4 -1
- package/dist/data-grid.css +1 -1
- package/dist/data-grid.js +2008 -602
- package/dist/hooks/useGrid.d.ts +2 -0
- package/dist/hooks/useSyncScroll.d.ts +7 -0
- package/dist/index.d.ts +2 -0
- package/package.json +4 -1
- package/dist/App.d.ts +0 -2
package/dist/data-grid.js
CHANGED
|
@@ -1,226 +1,1566 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
8
|
-
var a = e.length;
|
|
9
|
-
for (t = 0; t < a; t++) e[t] && (r = n(e[t])) && (i && (i += " "), i += r);
|
|
10
|
-
} else for (r in e) e[r] && (i && (i += " "), i += r);
|
|
11
|
-
return i;
|
|
2
|
+
import t, { createContext as n, useContext as r, useEffect as i, useMemo as a, useRef as o } from "react";
|
|
3
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
5
|
+
function u(e, t) {
|
|
6
|
+
return typeof e == "function" ? e(t) : e;
|
|
12
7
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
function d(e, t) {
|
|
9
|
+
return (n) => {
|
|
10
|
+
t.setState((t) => ({
|
|
11
|
+
...t,
|
|
12
|
+
[e]: u(n, t[e])
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
let t = n?.[e], a = o?.[e];
|
|
23
|
-
if (t === null) return null;
|
|
24
|
-
let s = i(t) || i(a);
|
|
25
|
-
return r[e][s];
|
|
26
|
-
}), c = n && Object.entries(n).reduce((e, t) => {
|
|
27
|
-
let [n, r] = t;
|
|
28
|
-
return r === void 0 || (e[n] = r), e;
|
|
29
|
-
}, {});
|
|
30
|
-
return a(e, s, t?.compoundVariants?.reduce((e, t) => {
|
|
31
|
-
let { class: n, className: r, ...i } = t;
|
|
32
|
-
return Object.entries(i).every((e) => {
|
|
33
|
-
let [t, n] = e;
|
|
34
|
-
return Array.isArray(n) ? n.includes({
|
|
35
|
-
...o,
|
|
36
|
-
...c
|
|
37
|
-
}[t]) : {
|
|
38
|
-
...o,
|
|
39
|
-
...c
|
|
40
|
-
}[t] === n;
|
|
41
|
-
}) ? [
|
|
42
|
-
...e,
|
|
43
|
-
n,
|
|
44
|
-
r
|
|
45
|
-
] : e;
|
|
46
|
-
}, []), n?.class, n?.className);
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
50
|
-
function s(e, t) {
|
|
51
|
-
if (typeof e == "function") return e(t);
|
|
52
|
-
e != null && (e.current = t);
|
|
16
|
+
function f(e) {
|
|
17
|
+
return e instanceof Function;
|
|
18
|
+
}
|
|
19
|
+
function p(e) {
|
|
20
|
+
return Array.isArray(e) && e.every((e) => typeof e == "number");
|
|
53
21
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
22
|
+
function m(e, t) {
|
|
23
|
+
let n = [], r = (e) => {
|
|
24
|
+
e.forEach((e) => {
|
|
25
|
+
n.push(e);
|
|
26
|
+
let i = t(e);
|
|
27
|
+
i != null && i.length && r(i);
|
|
59
28
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
29
|
+
};
|
|
30
|
+
return r(e), n;
|
|
31
|
+
}
|
|
32
|
+
function h(e, t, n) {
|
|
33
|
+
let r = [], i;
|
|
34
|
+
return (a) => {
|
|
35
|
+
let o;
|
|
36
|
+
n.key && n.debug && (o = Date.now());
|
|
37
|
+
let s = e(a);
|
|
38
|
+
if (!(s.length !== r.length || s.some((e, t) => r[t] !== e))) return i;
|
|
39
|
+
r = s;
|
|
40
|
+
let c;
|
|
41
|
+
if (n.key && n.debug && (c = Date.now()), i = t(...s), n == null || n.onChange == null || n.onChange(i), n.key && n.debug && n != null && n.debug()) {
|
|
42
|
+
let e = Math.round((Date.now() - o) * 100) / 100, t = Math.round((Date.now() - c) * 100) / 100, r = t / 16, i = (e, t) => {
|
|
43
|
+
for (e = String(e); e.length < t;) e = " " + e;
|
|
44
|
+
return e;
|
|
45
|
+
};
|
|
46
|
+
console.info(`%c⏱ ${i(t, 5)} /${i(e, 5)} ms`, `
|
|
47
|
+
font-size: .6rem;
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * r, 120))}deg 100% 31%);`, n?.key);
|
|
50
|
+
}
|
|
51
|
+
return i;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function g(e, t, n, r) {
|
|
55
|
+
return {
|
|
56
|
+
debug: () => e?.debugAll ?? e[t],
|
|
57
|
+
key: process.env.NODE_ENV === "development" && n,
|
|
58
|
+
onChange: r
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function _(e, t, n, r) {
|
|
62
|
+
let i = {
|
|
63
|
+
id: `${t.id}_${n.id}`,
|
|
64
|
+
row: t,
|
|
65
|
+
column: n,
|
|
66
|
+
getValue: () => t.getValue(r),
|
|
67
|
+
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
|
|
68
|
+
getContext: h(() => [
|
|
69
|
+
e,
|
|
70
|
+
n,
|
|
71
|
+
t,
|
|
72
|
+
i
|
|
73
|
+
], (e, t, n, r) => ({
|
|
74
|
+
table: e,
|
|
75
|
+
column: t,
|
|
76
|
+
row: n,
|
|
77
|
+
cell: r,
|
|
78
|
+
getValue: r.getValue,
|
|
79
|
+
renderValue: r.renderValue
|
|
80
|
+
}), g(e.options, "debugCells", "cell.getContext"))
|
|
81
|
+
};
|
|
82
|
+
return e._features.forEach((r) => {
|
|
83
|
+
r.createCell == null || r.createCell(i, n, t, e);
|
|
84
|
+
}, {}), i;
|
|
85
|
+
}
|
|
86
|
+
function ee(e, t, n, r) {
|
|
87
|
+
let i = {
|
|
88
|
+
...e._getDefaultColumnDef(),
|
|
89
|
+
...t
|
|
90
|
+
}, a = i.accessorKey, o = i.id ?? (a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) ?? (typeof i.header == "string" ? i.header : void 0), s;
|
|
91
|
+
if (i.accessorFn ? s = i.accessorFn : a && (s = a.includes(".") ? (e) => {
|
|
92
|
+
let t = e;
|
|
93
|
+
for (let e of a.split(".")) t = t?.[e], process.env.NODE_ENV !== "production" && t === void 0 && console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`);
|
|
94
|
+
return t;
|
|
95
|
+
} : (e) => e[i.accessorKey]), !o) throw process.env.NODE_ENV === "production" ? Error() : Error(i.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header");
|
|
96
|
+
let c = {
|
|
97
|
+
id: `${String(o)}`,
|
|
98
|
+
accessorFn: s,
|
|
99
|
+
parent: r,
|
|
100
|
+
depth: n,
|
|
101
|
+
columnDef: i,
|
|
102
|
+
columns: [],
|
|
103
|
+
getFlatColumns: h(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], g(e.options, "debugColumns", "column.getFlatColumns")),
|
|
104
|
+
getLeafColumns: h(() => [e._getOrderColumnsFn()], (e) => {
|
|
105
|
+
var t;
|
|
106
|
+
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
|
|
107
|
+
}, g(e.options, "debugColumns", "column.getLeafColumns"))
|
|
108
|
+
};
|
|
109
|
+
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
|
|
110
|
+
return c;
|
|
111
|
+
}
|
|
112
|
+
var v = "debugHeaders";
|
|
113
|
+
function y(e, t, n) {
|
|
114
|
+
let r = {
|
|
115
|
+
id: n.id ?? t.id,
|
|
116
|
+
column: t,
|
|
117
|
+
index: n.index,
|
|
118
|
+
isPlaceholder: !!n.isPlaceholder,
|
|
119
|
+
placeholderId: n.placeholderId,
|
|
120
|
+
depth: n.depth,
|
|
121
|
+
subHeaders: [],
|
|
122
|
+
colSpan: 0,
|
|
123
|
+
rowSpan: 0,
|
|
124
|
+
headerGroup: null,
|
|
125
|
+
getLeafHeaders: () => {
|
|
126
|
+
let e = [], t = (n) => {
|
|
127
|
+
n.subHeaders && n.subHeaders.length && n.subHeaders.map(t), e.push(n);
|
|
128
|
+
};
|
|
129
|
+
return t(r), e;
|
|
130
|
+
},
|
|
131
|
+
getContext: () => ({
|
|
132
|
+
table: e,
|
|
133
|
+
header: r,
|
|
134
|
+
column: t
|
|
135
|
+
})
|
|
136
|
+
};
|
|
137
|
+
return e._features.forEach((t) => {
|
|
138
|
+
t.createHeader == null || t.createHeader(r, e);
|
|
139
|
+
}), r;
|
|
140
|
+
}
|
|
141
|
+
var te = { createTable: (e) => {
|
|
142
|
+
e.getHeaderGroups = h(() => [
|
|
143
|
+
e.getAllColumns(),
|
|
144
|
+
e.getVisibleLeafColumns(),
|
|
145
|
+
e.getState().columnPinning.left,
|
|
146
|
+
e.getState().columnPinning.right
|
|
147
|
+
], (t, n, r, i) => {
|
|
148
|
+
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
|
|
149
|
+
return b(t, [
|
|
150
|
+
...a,
|
|
151
|
+
...s,
|
|
152
|
+
...o
|
|
153
|
+
], e);
|
|
154
|
+
}, g(e.options, v, "getHeaderGroups")), e.getCenterHeaderGroups = h(() => [
|
|
155
|
+
e.getAllColumns(),
|
|
156
|
+
e.getVisibleLeafColumns(),
|
|
157
|
+
e.getState().columnPinning.left,
|
|
158
|
+
e.getState().columnPinning.right
|
|
159
|
+
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), b(t, n, e, "center")), g(e.options, v, "getCenterHeaderGroups")), e.getLeftHeaderGroups = h(() => [
|
|
160
|
+
e.getAllColumns(),
|
|
161
|
+
e.getVisibleLeafColumns(),
|
|
162
|
+
e.getState().columnPinning.left
|
|
163
|
+
], (t, n, r) => b(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), g(e.options, v, "getLeftHeaderGroups")), e.getRightHeaderGroups = h(() => [
|
|
164
|
+
e.getAllColumns(),
|
|
165
|
+
e.getVisibleLeafColumns(),
|
|
166
|
+
e.getState().columnPinning.right
|
|
167
|
+
], (t, n, r) => b(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), g(e.options, v, "getRightHeaderGroups")), e.getFooterGroups = h(() => [e.getHeaderGroups()], (e) => [...e].reverse(), g(e.options, v, "getFooterGroups")), e.getLeftFooterGroups = h(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), g(e.options, v, "getLeftFooterGroups")), e.getCenterFooterGroups = h(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), g(e.options, v, "getCenterFooterGroups")), e.getRightFooterGroups = h(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), g(e.options, v, "getRightFooterGroups")), e.getFlatHeaders = h(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, v, "getFlatHeaders")), e.getLeftFlatHeaders = h(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, v, "getLeftFlatHeaders")), e.getCenterFlatHeaders = h(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, v, "getCenterFlatHeaders")), e.getRightFlatHeaders = h(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, v, "getRightFlatHeaders")), e.getCenterLeafHeaders = h(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
|
|
168
|
+
var t;
|
|
169
|
+
return !((t = e.subHeaders) != null && t.length);
|
|
170
|
+
}), g(e.options, v, "getCenterLeafHeaders")), e.getLeftLeafHeaders = h(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
|
|
171
|
+
var t;
|
|
172
|
+
return !((t = e.subHeaders) != null && t.length);
|
|
173
|
+
}), g(e.options, v, "getLeftLeafHeaders")), e.getRightLeafHeaders = h(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
|
|
174
|
+
var t;
|
|
175
|
+
return !((t = e.subHeaders) != null && t.length);
|
|
176
|
+
}), g(e.options, v, "getRightLeafHeaders")), e.getLeafHeaders = h(() => [
|
|
177
|
+
e.getLeftHeaderGroups(),
|
|
178
|
+
e.getCenterHeaderGroups(),
|
|
179
|
+
e.getRightHeaderGroups()
|
|
180
|
+
], (e, t, n) => [
|
|
181
|
+
...e[0]?.headers ?? [],
|
|
182
|
+
...t[0]?.headers ?? [],
|
|
183
|
+
...n[0]?.headers ?? []
|
|
184
|
+
].map((e) => e.getLeafHeaders()).flat(), g(e.options, v, "getLeafHeaders"));
|
|
185
|
+
} };
|
|
186
|
+
function b(e, t, n, r) {
|
|
187
|
+
let i = 0, a = function(e, t) {
|
|
188
|
+
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
|
|
189
|
+
var n;
|
|
190
|
+
(n = e.columns) != null && n.length && a(e.columns, t + 1);
|
|
191
|
+
}, 0);
|
|
192
|
+
};
|
|
193
|
+
a(e);
|
|
194
|
+
let o = [], s = (e, t) => {
|
|
195
|
+
let i = {
|
|
196
|
+
depth: t,
|
|
197
|
+
id: [r, `${t}`].filter(Boolean).join("_"),
|
|
198
|
+
headers: []
|
|
199
|
+
}, a = [];
|
|
200
|
+
e.forEach((e) => {
|
|
201
|
+
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
|
|
202
|
+
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
|
|
203
|
+
else {
|
|
204
|
+
let i = y(n, c, {
|
|
205
|
+
id: [
|
|
206
|
+
r,
|
|
207
|
+
t,
|
|
208
|
+
c.id,
|
|
209
|
+
e?.id
|
|
210
|
+
].filter(Boolean).join("_"),
|
|
211
|
+
isPlaceholder: l,
|
|
212
|
+
placeholderId: l ? `${a.filter((e) => e.column === c).length}` : void 0,
|
|
213
|
+
depth: t,
|
|
214
|
+
index: a.length
|
|
215
|
+
});
|
|
216
|
+
i.subHeaders.push(e), a.push(i);
|
|
64
217
|
}
|
|
218
|
+
i.headers.push(e), e.headerGroup = i;
|
|
219
|
+
}), o.push(i), t > 0 && s(a, t - 1);
|
|
220
|
+
};
|
|
221
|
+
s(t.map((e, t) => y(n, e, {
|
|
222
|
+
depth: i,
|
|
223
|
+
index: t
|
|
224
|
+
})), i - 1), o.reverse();
|
|
225
|
+
let c = (e) => e.filter((e) => e.column.getIsVisible()).map((e) => {
|
|
226
|
+
let t = 0, n = 0, r = [0];
|
|
227
|
+
e.subHeaders && e.subHeaders.length ? (r = [], c(e.subHeaders).forEach((e) => {
|
|
228
|
+
let { colSpan: n, rowSpan: i } = e;
|
|
229
|
+
t += n, r.push(i);
|
|
230
|
+
})) : t = 1;
|
|
231
|
+
let i = Math.min(...r);
|
|
232
|
+
return n += i, e.colSpan = t, e.rowSpan = n, {
|
|
233
|
+
colSpan: t,
|
|
234
|
+
rowSpan: n
|
|
65
235
|
};
|
|
236
|
+
});
|
|
237
|
+
return c(o[0]?.headers ?? []), o;
|
|
238
|
+
}
|
|
239
|
+
var ne = (e, t, n, r, i, a, o) => {
|
|
240
|
+
let s = {
|
|
241
|
+
id: t,
|
|
242
|
+
index: r,
|
|
243
|
+
original: n,
|
|
244
|
+
depth: i,
|
|
245
|
+
parentId: o,
|
|
246
|
+
_valuesCache: {},
|
|
247
|
+
_uniqueValuesCache: {},
|
|
248
|
+
getValue: (t) => {
|
|
249
|
+
if (s._valuesCache.hasOwnProperty(t)) return s._valuesCache[t];
|
|
250
|
+
let n = e.getColumn(t);
|
|
251
|
+
if (n != null && n.accessorFn) return s._valuesCache[t] = n.accessorFn(s.original, r), s._valuesCache[t];
|
|
252
|
+
},
|
|
253
|
+
getUniqueValues: (t) => {
|
|
254
|
+
if (s._uniqueValuesCache.hasOwnProperty(t)) return s._uniqueValuesCache[t];
|
|
255
|
+
let n = e.getColumn(t);
|
|
256
|
+
if (n != null && n.accessorFn) return n.columnDef.getUniqueValues ? (s._uniqueValuesCache[t] = n.columnDef.getUniqueValues(s.original, r), s._uniqueValuesCache[t]) : (s._uniqueValuesCache[t] = [s.getValue(t)], s._uniqueValuesCache[t]);
|
|
257
|
+
},
|
|
258
|
+
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
|
|
259
|
+
subRows: a ?? [],
|
|
260
|
+
getLeafRows: () => m(s.subRows, (e) => e.subRows),
|
|
261
|
+
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
262
|
+
getParentRows: () => {
|
|
263
|
+
let e = [], t = s;
|
|
264
|
+
for (;;) {
|
|
265
|
+
let n = t.getParentRow();
|
|
266
|
+
if (!n) break;
|
|
267
|
+
e.push(n), t = n;
|
|
268
|
+
}
|
|
269
|
+
return e.reverse();
|
|
270
|
+
},
|
|
271
|
+
getAllCells: h(() => [e.getAllLeafColumns()], (t) => t.map((t) => _(e, s, t, t.id)), g(e.options, "debugRows", "getAllCells")),
|
|
272
|
+
_getAllCellsByColumnId: h(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), g(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
66
273
|
};
|
|
274
|
+
for (let t = 0; t < e._features.length; t++) {
|
|
275
|
+
let n = e._features[t];
|
|
276
|
+
n == null || n.createRow == null || n.createRow(s, e);
|
|
277
|
+
}
|
|
278
|
+
return s;
|
|
279
|
+
}, x = { createColumn: (e, t) => {
|
|
280
|
+
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
|
|
281
|
+
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
|
|
282
|
+
};
|
|
283
|
+
} }, S = (e, t, n) => {
|
|
284
|
+
var r, i;
|
|
285
|
+
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
286
|
+
return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
|
|
287
|
+
};
|
|
288
|
+
S.autoRemove = (e) => k(e);
|
|
289
|
+
var re = (e, t, n) => {
|
|
290
|
+
var r;
|
|
291
|
+
return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
|
|
292
|
+
};
|
|
293
|
+
re.autoRemove = (e) => k(e);
|
|
294
|
+
var ie = (e, t, n) => {
|
|
295
|
+
var r;
|
|
296
|
+
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
297
|
+
};
|
|
298
|
+
ie.autoRemove = (e) => k(e);
|
|
299
|
+
var C = (e, t, n) => e.getValue(t)?.includes(n);
|
|
300
|
+
C.autoRemove = (e) => k(e);
|
|
301
|
+
var ae = (e, t, n) => !n.some((n) => {
|
|
302
|
+
var r;
|
|
303
|
+
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
304
|
+
});
|
|
305
|
+
ae.autoRemove = (e) => k(e) || !(e != null && e.length);
|
|
306
|
+
var w = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
307
|
+
w.autoRemove = (e) => k(e) || !(e != null && e.length);
|
|
308
|
+
var T = (e, t, n) => e.getValue(t) === n;
|
|
309
|
+
T.autoRemove = (e) => k(e);
|
|
310
|
+
var E = (e, t, n) => e.getValue(t) == n;
|
|
311
|
+
E.autoRemove = (e) => k(e);
|
|
312
|
+
var D = (e, t, n) => {
|
|
313
|
+
let [r, i] = n, a = e.getValue(t);
|
|
314
|
+
return a >= r && a <= i;
|
|
315
|
+
};
|
|
316
|
+
D.resolveFilterValue = (e) => {
|
|
317
|
+
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
|
|
318
|
+
if (a > o) {
|
|
319
|
+
let e = a;
|
|
320
|
+
a = o, o = e;
|
|
321
|
+
}
|
|
322
|
+
return [a, o];
|
|
323
|
+
}, D.autoRemove = (e) => k(e) || k(e[0]) && k(e[1]);
|
|
324
|
+
var O = {
|
|
325
|
+
includesString: S,
|
|
326
|
+
includesStringSensitive: re,
|
|
327
|
+
equalsString: ie,
|
|
328
|
+
arrIncludes: C,
|
|
329
|
+
arrIncludesAll: ae,
|
|
330
|
+
arrIncludesSome: w,
|
|
331
|
+
equals: T,
|
|
332
|
+
weakEquals: E,
|
|
333
|
+
inNumberRange: D
|
|
334
|
+
};
|
|
335
|
+
function k(e) {
|
|
336
|
+
return e == null || e === "";
|
|
67
337
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
338
|
+
var A = {
|
|
339
|
+
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
340
|
+
getInitialState: (e) => ({
|
|
341
|
+
columnFilters: [],
|
|
342
|
+
...e
|
|
343
|
+
}),
|
|
344
|
+
getDefaultOptions: (e) => ({
|
|
345
|
+
onColumnFiltersChange: d("columnFilters", e),
|
|
346
|
+
filterFromLeafRows: !1,
|
|
347
|
+
maxLeafRowFilterDepth: 100
|
|
348
|
+
}),
|
|
349
|
+
createColumn: (e, t) => {
|
|
350
|
+
e.getAutoFilterFn = () => {
|
|
351
|
+
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
352
|
+
return typeof n == "string" ? O.includesString : typeof n == "number" ? O.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? O.equals : Array.isArray(n) ? O.arrIncludes : O.weakEquals;
|
|
353
|
+
}, e.getFilterFn = () => f(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? O[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
|
354
|
+
var n;
|
|
355
|
+
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
|
|
356
|
+
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
|
|
357
|
+
t.setColumnFilters((t) => {
|
|
358
|
+
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = u(n, i ? i.value : void 0);
|
|
359
|
+
if (oe(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
|
|
360
|
+
let o = {
|
|
361
|
+
id: e.id,
|
|
362
|
+
value: a
|
|
363
|
+
};
|
|
364
|
+
return i ? t?.map((t) => t.id === e.id ? o : t) ?? [] : t != null && t.length ? [...t, o] : [o];
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
},
|
|
368
|
+
createRow: (e, t) => {
|
|
369
|
+
e.columnFilters = {}, e.columnFiltersMeta = {};
|
|
370
|
+
},
|
|
371
|
+
createTable: (e) => {
|
|
372
|
+
e.setColumnFilters = (t) => {
|
|
373
|
+
let n = e.getAllLeafColumns();
|
|
374
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => u(t, e)?.filter((e) => {
|
|
375
|
+
let t = n.find((t) => t.id === e.id);
|
|
376
|
+
return !(t && oe(t.getFilterFn(), e.value, t));
|
|
377
|
+
}));
|
|
378
|
+
}, e.resetColumnFilters = (t) => {
|
|
379
|
+
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
|
|
380
|
+
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
function oe(e, t, n) {
|
|
384
|
+
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
|
|
385
|
+
}
|
|
386
|
+
var j = {
|
|
387
|
+
sum: (e, t, n) => n.reduce((t, n) => {
|
|
388
|
+
let r = n.getValue(e);
|
|
389
|
+
return t + (typeof r == "number" ? r : 0);
|
|
390
|
+
}, 0),
|
|
391
|
+
min: (e, t, n) => {
|
|
392
|
+
let r;
|
|
393
|
+
return n.forEach((t) => {
|
|
394
|
+
let n = t.getValue(e);
|
|
395
|
+
n != null && (r > n || r === void 0 && n >= n) && (r = n);
|
|
396
|
+
}), r;
|
|
397
|
+
},
|
|
398
|
+
max: (e, t, n) => {
|
|
399
|
+
let r;
|
|
400
|
+
return n.forEach((t) => {
|
|
401
|
+
let n = t.getValue(e);
|
|
402
|
+
n != null && (r < n || r === void 0 && n >= n) && (r = n);
|
|
403
|
+
}), r;
|
|
404
|
+
},
|
|
405
|
+
extent: (e, t, n) => {
|
|
406
|
+
let r, i;
|
|
407
|
+
return n.forEach((t) => {
|
|
408
|
+
let n = t.getValue(e);
|
|
409
|
+
n != null && (r === void 0 ? n >= n && (r = i = n) : (r > n && (r = n), i < n && (i = n)));
|
|
410
|
+
}), [r, i];
|
|
411
|
+
},
|
|
412
|
+
mean: (e, t) => {
|
|
413
|
+
let n = 0, r = 0;
|
|
414
|
+
if (t.forEach((t) => {
|
|
415
|
+
let i = t.getValue(e);
|
|
416
|
+
i != null && (i = +i) >= i && (++n, r += i);
|
|
417
|
+
}), n) return r / n;
|
|
418
|
+
},
|
|
419
|
+
median: (e, t) => {
|
|
420
|
+
if (!t.length) return;
|
|
421
|
+
let n = t.map((t) => t.getValue(e));
|
|
422
|
+
if (!p(n)) return;
|
|
423
|
+
if (n.length === 1) return n[0];
|
|
424
|
+
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
|
|
425
|
+
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
|
|
426
|
+
},
|
|
427
|
+
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
|
|
428
|
+
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
|
|
429
|
+
count: (e, t) => t.length
|
|
430
|
+
}, se = {
|
|
431
|
+
getDefaultColumnDef: () => ({
|
|
432
|
+
aggregatedCell: (e) => {
|
|
433
|
+
var t;
|
|
434
|
+
return ((t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;
|
|
435
|
+
},
|
|
436
|
+
aggregationFn: "auto"
|
|
437
|
+
}),
|
|
438
|
+
getInitialState: (e) => ({
|
|
439
|
+
grouping: [],
|
|
440
|
+
...e
|
|
441
|
+
}),
|
|
442
|
+
getDefaultOptions: (e) => ({
|
|
443
|
+
onGroupingChange: d("grouping", e),
|
|
444
|
+
groupedColumnMode: "reorder"
|
|
445
|
+
}),
|
|
446
|
+
createColumn: (e, t) => {
|
|
447
|
+
e.toggleGrouping = () => {
|
|
448
|
+
t.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((t) => t !== e.id) : [...t ?? [], e.id]);
|
|
449
|
+
}, e.getCanGroup = () => (e.columnDef.enableGrouping ?? !0) && (t.options.enableGrouping ?? !0) && (!!e.accessorFn || !!e.columnDef.getGroupingValue), e.getIsGrouped = () => t.getState().grouping?.includes(e.id), e.getGroupedIndex = () => t.getState().grouping?.indexOf(e.id), e.getToggleGroupingHandler = () => {
|
|
450
|
+
let t = e.getCanGroup();
|
|
451
|
+
return () => {
|
|
452
|
+
t && e.toggleGrouping();
|
|
453
|
+
};
|
|
454
|
+
}, e.getAutoAggregationFn = () => {
|
|
455
|
+
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
456
|
+
if (typeof n == "number") return j.sum;
|
|
457
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return j.extent;
|
|
458
|
+
}, e.getAggregationFn = () => {
|
|
459
|
+
if (!e) throw Error();
|
|
460
|
+
return f(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? j[e.columnDef.aggregationFn];
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
createTable: (e) => {
|
|
464
|
+
e.setGrouping = (t) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(t), e.resetGrouping = (t) => {
|
|
465
|
+
e.setGrouping(t ? [] : e.initialState?.grouping ?? []);
|
|
466
|
+
}, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
|
|
467
|
+
},
|
|
468
|
+
createRow: (e, t) => {
|
|
469
|
+
e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (n) => {
|
|
470
|
+
if (e._groupingValuesCache.hasOwnProperty(n)) return e._groupingValuesCache[n];
|
|
471
|
+
let r = t.getColumn(n);
|
|
472
|
+
return r != null && r.columnDef.getGroupingValue ? (e._groupingValuesCache[n] = r.columnDef.getGroupingValue(e.original), e._groupingValuesCache[n]) : e.getValue(n);
|
|
473
|
+
}, e._groupingValuesCache = {};
|
|
474
|
+
},
|
|
475
|
+
createCell: (e, t, n, r) => {
|
|
476
|
+
e.getIsGrouped = () => t.getIsGrouped() && t.id === n.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && t.getIsGrouped(), e.getIsAggregated = () => {
|
|
477
|
+
var t;
|
|
478
|
+
return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((t = n.subRows) != null && t.length);
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
function ce(e, t, n) {
|
|
483
|
+
if (!(t != null && t.length) || !n) return e;
|
|
484
|
+
let r = e.filter((e) => !t.includes(e.id));
|
|
485
|
+
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
|
|
486
|
+
}
|
|
487
|
+
var M = {
|
|
488
|
+
getInitialState: (e) => ({
|
|
489
|
+
columnOrder: [],
|
|
490
|
+
...e
|
|
491
|
+
}),
|
|
492
|
+
getDefaultOptions: (e) => ({ onColumnOrderChange: d("columnOrder", e) }),
|
|
493
|
+
createColumn: (e, t) => {
|
|
494
|
+
e.getIndex = h((e) => [B(t, e)], (t) => t.findIndex((t) => t.id === e.id), g(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => B(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
|
|
495
|
+
let r = B(t, n);
|
|
496
|
+
return r[r.length - 1]?.id === e.id;
|
|
497
|
+
};
|
|
498
|
+
},
|
|
499
|
+
createTable: (e) => {
|
|
500
|
+
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
|
|
501
|
+
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
|
|
502
|
+
}, e._getOrderColumnsFn = h(() => [
|
|
503
|
+
e.getState().columnOrder,
|
|
504
|
+
e.getState().grouping,
|
|
505
|
+
e.options.groupedColumnMode
|
|
506
|
+
], (e, t, n) => (r) => {
|
|
507
|
+
let i = [];
|
|
508
|
+
if (!(e != null && e.length)) i = r;
|
|
509
|
+
else {
|
|
510
|
+
let t = [...e], n = [...r];
|
|
511
|
+
for (; n.length && t.length;) {
|
|
512
|
+
let e = t.shift(), r = n.findIndex((t) => t.id === e);
|
|
513
|
+
r > -1 && i.push(n.splice(r, 1)[0]);
|
|
514
|
+
}
|
|
515
|
+
i = [...i, ...n];
|
|
516
|
+
}
|
|
517
|
+
return ce(i, t, n);
|
|
518
|
+
}, g(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
519
|
+
}
|
|
520
|
+
}, N = () => ({
|
|
521
|
+
left: [],
|
|
522
|
+
right: []
|
|
523
|
+
}), P = {
|
|
524
|
+
getInitialState: (e) => ({
|
|
525
|
+
columnPinning: N(),
|
|
526
|
+
...e
|
|
527
|
+
}),
|
|
528
|
+
getDefaultOptions: (e) => ({ onColumnPinningChange: d("columnPinning", e) }),
|
|
529
|
+
createColumn: (e, t) => {
|
|
530
|
+
e.pin = (n) => {
|
|
531
|
+
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
|
|
532
|
+
t.setColumnPinning((e) => n === "right" ? {
|
|
533
|
+
left: (e?.left ?? []).filter((e) => !(r != null && r.includes(e))),
|
|
534
|
+
right: [...(e?.right ?? []).filter((e) => !(r != null && r.includes(e))), ...r]
|
|
535
|
+
} : n === "left" ? {
|
|
536
|
+
left: [...(e?.left ?? []).filter((e) => !(r != null && r.includes(e))), ...r],
|
|
537
|
+
right: (e?.right ?? []).filter((e) => !(r != null && r.includes(e)))
|
|
538
|
+
} : {
|
|
539
|
+
left: (e?.left ?? []).filter((e) => !(r != null && r.includes(e))),
|
|
540
|
+
right: (e?.right ?? []).filter((e) => !(r != null && r.includes(e)))
|
|
541
|
+
});
|
|
542
|
+
}, e.getCanPin = () => e.getLeafColumns().some((e) => (e.columnDef.enablePinning ?? !0) && (t.options.enableColumnPinning ?? t.options.enablePinning ?? !0)), e.getIsPinned = () => {
|
|
543
|
+
let n = e.getLeafColumns().map((e) => e.id), { left: r, right: i } = t.getState().columnPinning, a = n.some((e) => r?.includes(e)), o = n.some((e) => i?.includes(e));
|
|
544
|
+
return a ? "left" : o ? "right" : !1;
|
|
545
|
+
}, e.getPinnedIndex = () => {
|
|
546
|
+
var n;
|
|
547
|
+
let r = e.getIsPinned();
|
|
548
|
+
return r ? ((n = t.getState().columnPinning) == null || (n = n[r]) == null ? void 0 : n.indexOf(e.id)) ?? -1 : 0;
|
|
549
|
+
};
|
|
550
|
+
},
|
|
551
|
+
createRow: (e, t) => {
|
|
552
|
+
e.getCenterVisibleCells = h(() => [
|
|
553
|
+
e._getAllVisibleCells(),
|
|
554
|
+
t.getState().columnPinning.left,
|
|
555
|
+
t.getState().columnPinning.right
|
|
556
|
+
], (e, t, n) => {
|
|
557
|
+
let r = [...t ?? [], ...n ?? []];
|
|
558
|
+
return e.filter((e) => !r.includes(e.column.id));
|
|
559
|
+
}, g(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = h(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
|
|
560
|
+
...e,
|
|
561
|
+
position: "left"
|
|
562
|
+
})), g(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = h(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
|
|
563
|
+
...e,
|
|
564
|
+
position: "right"
|
|
565
|
+
})), g(t.options, "debugRows", "getRightVisibleCells"));
|
|
566
|
+
},
|
|
567
|
+
createTable: (e) => {
|
|
568
|
+
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? N() : e.initialState?.columnPinning ?? N()), e.getIsSomeColumnsPinned = (t) => {
|
|
569
|
+
let n = e.getState().columnPinning;
|
|
570
|
+
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
|
|
571
|
+
}, e.getLeftLeafColumns = h(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), g(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = h(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), g(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = h(() => [
|
|
572
|
+
e.getAllLeafColumns(),
|
|
573
|
+
e.getState().columnPinning.left,
|
|
574
|
+
e.getState().columnPinning.right
|
|
575
|
+
], (e, t, n) => {
|
|
576
|
+
let r = [...t ?? [], ...n ?? []];
|
|
577
|
+
return e.filter((e) => !r.includes(e.id));
|
|
578
|
+
}, g(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
function le(e) {
|
|
582
|
+
return e || (typeof document < "u" ? document : null);
|
|
583
|
+
}
|
|
584
|
+
var F = {
|
|
585
|
+
size: 150,
|
|
586
|
+
minSize: 20,
|
|
587
|
+
maxSize: 2 ** 53 - 1
|
|
588
|
+
}, I = () => ({
|
|
589
|
+
startOffset: null,
|
|
590
|
+
startSize: null,
|
|
591
|
+
deltaOffset: null,
|
|
592
|
+
deltaPercentage: null,
|
|
593
|
+
isResizingColumn: !1,
|
|
594
|
+
columnSizingStart: []
|
|
595
|
+
}), L = {
|
|
596
|
+
getDefaultColumnDef: () => F,
|
|
597
|
+
getInitialState: (e) => ({
|
|
598
|
+
columnSizing: {},
|
|
599
|
+
columnSizingInfo: I(),
|
|
600
|
+
...e
|
|
601
|
+
}),
|
|
602
|
+
getDefaultOptions: (e) => ({
|
|
603
|
+
columnResizeMode: "onEnd",
|
|
604
|
+
columnResizeDirection: "ltr",
|
|
605
|
+
onColumnSizingChange: d("columnSizing", e),
|
|
606
|
+
onColumnSizingInfoChange: d("columnSizingInfo", e)
|
|
607
|
+
}),
|
|
608
|
+
createColumn: (e, t) => {
|
|
609
|
+
e.getSize = () => {
|
|
610
|
+
let n = t.getState().columnSizing[e.id];
|
|
611
|
+
return Math.min(Math.max(e.columnDef.minSize ?? F.minSize, n ?? e.columnDef.size ?? F.size), e.columnDef.maxSize ?? F.maxSize);
|
|
612
|
+
}, e.getStart = h((e) => [
|
|
613
|
+
e,
|
|
614
|
+
B(t, e),
|
|
615
|
+
t.getState().columnSizing
|
|
616
|
+
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), g(t.options, "debugColumns", "getStart")), e.getAfter = h((e) => [
|
|
617
|
+
e,
|
|
618
|
+
B(t, e),
|
|
619
|
+
t.getState().columnSizing
|
|
620
|
+
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), g(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
621
|
+
t.setColumnSizing((t) => {
|
|
622
|
+
let { [e.id]: n, ...r } = t;
|
|
623
|
+
return r;
|
|
624
|
+
});
|
|
625
|
+
}, e.getCanResize = () => (e.columnDef.enableResizing ?? !0) && (t.options.enableColumnResizing ?? !0), e.getIsResizing = () => t.getState().columnSizingInfo.isResizingColumn === e.id;
|
|
626
|
+
},
|
|
627
|
+
createHeader: (e, t) => {
|
|
628
|
+
e.getSize = () => {
|
|
629
|
+
let t = 0, n = (e) => {
|
|
630
|
+
e.subHeaders.length ? e.subHeaders.forEach(n) : t += e.column.getSize() ?? 0;
|
|
631
|
+
};
|
|
632
|
+
return n(e), t;
|
|
633
|
+
}, e.getStart = () => {
|
|
634
|
+
if (e.index > 0) {
|
|
635
|
+
let t = e.headerGroup.headers[e.index - 1];
|
|
636
|
+
return t.getStart() + t.getSize();
|
|
637
|
+
}
|
|
638
|
+
return 0;
|
|
639
|
+
}, e.getResizeHandler = (n) => {
|
|
640
|
+
let r = t.getColumn(e.column.id), i = r?.getCanResize();
|
|
641
|
+
return (a) => {
|
|
642
|
+
if (!r || !i || (a.persist == null || a.persist(), z(a) && a.touches && a.touches.length > 1)) return;
|
|
643
|
+
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = z(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
|
|
644
|
+
typeof n == "number" && (t.setColumnSizingInfo((e) => {
|
|
645
|
+
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
|
|
646
|
+
return e.columnSizingStart.forEach((e) => {
|
|
647
|
+
let [t, n] = e;
|
|
648
|
+
l[t] = Math.round(Math.max(n + n * a, 0) * 100) / 100;
|
|
649
|
+
}), {
|
|
650
|
+
...e,
|
|
651
|
+
deltaOffset: i,
|
|
652
|
+
deltaPercentage: a
|
|
653
|
+
};
|
|
654
|
+
}), (t.options.columnResizeMode === "onChange" || e === "end") && t.setColumnSizing((e) => ({
|
|
655
|
+
...e,
|
|
656
|
+
...l
|
|
657
|
+
})));
|
|
658
|
+
}, d = (e) => u("move", e), f = (e) => {
|
|
659
|
+
u("end", e), t.setColumnSizingInfo((e) => ({
|
|
660
|
+
...e,
|
|
661
|
+
isResizingColumn: !1,
|
|
662
|
+
startOffset: null,
|
|
663
|
+
startSize: null,
|
|
664
|
+
deltaOffset: null,
|
|
665
|
+
deltaPercentage: null,
|
|
666
|
+
columnSizingStart: []
|
|
667
|
+
}));
|
|
668
|
+
}, p = le(n), m = {
|
|
669
|
+
moveHandler: (e) => d(e.clientX),
|
|
670
|
+
upHandler: (e) => {
|
|
671
|
+
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
|
|
672
|
+
}
|
|
673
|
+
}, h = {
|
|
674
|
+
moveHandler: (e) => (e.cancelable && (e.preventDefault(), e.stopPropagation()), d(e.touches[0].clientX), !1),
|
|
675
|
+
upHandler: (e) => {
|
|
676
|
+
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
|
|
677
|
+
}
|
|
678
|
+
}, g = ue() ? { passive: !1 } : !1;
|
|
679
|
+
z(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
|
|
680
|
+
...e,
|
|
681
|
+
startOffset: c,
|
|
682
|
+
startSize: o,
|
|
683
|
+
deltaOffset: 0,
|
|
684
|
+
deltaPercentage: 0,
|
|
685
|
+
columnSizingStart: s,
|
|
686
|
+
isResizingColumn: r.id
|
|
687
|
+
}));
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
},
|
|
691
|
+
createTable: (e) => {
|
|
692
|
+
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
|
|
693
|
+
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
|
|
694
|
+
}, e.resetHeaderSizeInfo = (t) => {
|
|
695
|
+
e.setColumnSizingInfo(t ? I() : e.initialState.columnSizingInfo ?? I());
|
|
696
|
+
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
|
|
697
|
+
}
|
|
698
|
+
}, R = null;
|
|
699
|
+
function ue() {
|
|
700
|
+
if (typeof R == "boolean") return R;
|
|
701
|
+
let e = !1;
|
|
702
|
+
try {
|
|
703
|
+
let t = { get passive() {
|
|
704
|
+
return e = !0, !1;
|
|
705
|
+
} }, n = () => {};
|
|
706
|
+
window.addEventListener("test", n, t), window.removeEventListener("test", n);
|
|
707
|
+
} catch {
|
|
708
|
+
e = !1;
|
|
709
|
+
}
|
|
710
|
+
return R = e, R;
|
|
711
|
+
}
|
|
712
|
+
function z(e) {
|
|
713
|
+
return e.type === "touchstart";
|
|
714
|
+
}
|
|
715
|
+
var de = {
|
|
716
|
+
getInitialState: (e) => ({
|
|
717
|
+
columnVisibility: {},
|
|
718
|
+
...e
|
|
719
|
+
}),
|
|
720
|
+
getDefaultOptions: (e) => ({ onColumnVisibilityChange: d("columnVisibility", e) }),
|
|
721
|
+
createColumn: (e, t) => {
|
|
722
|
+
e.toggleVisibility = (n) => {
|
|
723
|
+
e.getCanHide() && t.setColumnVisibility((t) => ({
|
|
724
|
+
...t,
|
|
725
|
+
[e.id]: n ?? !e.getIsVisible()
|
|
726
|
+
}));
|
|
727
|
+
}, e.getIsVisible = () => {
|
|
728
|
+
let n = e.columns;
|
|
729
|
+
return (n.length ? n.some((e) => e.getIsVisible()) : t.getState().columnVisibility?.[e.id]) ?? !0;
|
|
730
|
+
}, e.getCanHide = () => (e.columnDef.enableHiding ?? !0) && (t.options.enableHiding ?? !0), e.getToggleVisibilityHandler = () => (t) => {
|
|
731
|
+
e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
createRow: (e, t) => {
|
|
735
|
+
e._getAllVisibleCells = h(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), g(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = h(() => [
|
|
736
|
+
e.getLeftVisibleCells(),
|
|
737
|
+
e.getCenterVisibleCells(),
|
|
738
|
+
e.getRightVisibleCells()
|
|
739
|
+
], (e, t, n) => [
|
|
740
|
+
...e,
|
|
741
|
+
...t,
|
|
742
|
+
...n
|
|
743
|
+
], g(t.options, "debugRows", "getVisibleCells"));
|
|
744
|
+
},
|
|
745
|
+
createTable: (e) => {
|
|
746
|
+
let t = (t, n) => h(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), g(e.options, "debugColumns", t));
|
|
747
|
+
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
748
|
+
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
|
|
749
|
+
}, e.toggleAllColumnsVisible = (t) => {
|
|
750
|
+
t ??= !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((e, n) => ({
|
|
751
|
+
...e,
|
|
752
|
+
[n.id]: t || !(n.getCanHide != null && n.getCanHide())
|
|
753
|
+
}), {}));
|
|
754
|
+
}, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((e) => !(e.getIsVisible != null && e.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
|
|
755
|
+
e.toggleAllColumnsVisible(t.target?.checked);
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
function B(e, t) {
|
|
760
|
+
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
761
|
+
}
|
|
762
|
+
var fe = { createTable: (e) => {
|
|
763
|
+
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
764
|
+
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
|
|
765
|
+
};
|
|
766
|
+
} }, pe = {
|
|
767
|
+
getInitialState: (e) => ({
|
|
768
|
+
globalFilter: void 0,
|
|
769
|
+
...e
|
|
770
|
+
}),
|
|
771
|
+
getDefaultOptions: (e) => ({
|
|
772
|
+
onGlobalFilterChange: d("globalFilter", e),
|
|
773
|
+
globalFilterFn: "auto",
|
|
774
|
+
getColumnCanGlobalFilter: (t) => {
|
|
775
|
+
var n;
|
|
776
|
+
let r = (n = e.getCoreRowModel().flatRows[0]) == null || (n = n._getAllCellsByColumnId()[t.id]) == null ? void 0 : n.getValue();
|
|
777
|
+
return typeof r == "string" || typeof r == "number";
|
|
778
|
+
}
|
|
779
|
+
}),
|
|
780
|
+
createColumn: (e, t) => {
|
|
781
|
+
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
|
|
782
|
+
},
|
|
783
|
+
createTable: (e) => {
|
|
784
|
+
e.getGlobalAutoFilterFn = () => O.includesString, e.getGlobalFilterFn = () => {
|
|
785
|
+
let { globalFilterFn: t } = e.options;
|
|
786
|
+
return f(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? O[t];
|
|
787
|
+
}, e.setGlobalFilter = (t) => {
|
|
788
|
+
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
789
|
+
}, e.resetGlobalFilter = (t) => {
|
|
790
|
+
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
}, me = {
|
|
794
|
+
getInitialState: (e) => ({
|
|
795
|
+
expanded: {},
|
|
796
|
+
...e
|
|
797
|
+
}),
|
|
798
|
+
getDefaultOptions: (e) => ({
|
|
799
|
+
onExpandedChange: d("expanded", e),
|
|
800
|
+
paginateExpandedRows: !0
|
|
801
|
+
}),
|
|
802
|
+
createTable: (e) => {
|
|
803
|
+
let t = !1, n = !1;
|
|
804
|
+
e._autoResetExpanded = () => {
|
|
805
|
+
if (!t) {
|
|
806
|
+
e._queue(() => {
|
|
807
|
+
t = !0;
|
|
808
|
+
});
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
if (e.options.autoResetAll ?? e.options.autoResetExpanded ?? !e.options.manualExpanding) {
|
|
812
|
+
if (n) return;
|
|
813
|
+
n = !0, e._queue(() => {
|
|
814
|
+
e.resetExpanded(), n = !1;
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
}, e.setExpanded = (t) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(t), e.toggleAllRowsExpanded = (t) => {
|
|
818
|
+
t ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
|
|
819
|
+
}, e.resetExpanded = (t) => {
|
|
820
|
+
e.setExpanded(t ? {} : e.initialState?.expanded ?? {});
|
|
821
|
+
}, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((e) => e.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (t) => {
|
|
822
|
+
t.persist == null || t.persist(), e.toggleAllRowsExpanded();
|
|
823
|
+
}, e.getIsSomeRowsExpanded = () => {
|
|
824
|
+
let t = e.getState().expanded;
|
|
825
|
+
return t === !0 || Object.values(t).some(Boolean);
|
|
826
|
+
}, e.getIsAllRowsExpanded = () => {
|
|
827
|
+
let t = e.getState().expanded;
|
|
828
|
+
return typeof t == "boolean" ? t === !0 : !(!Object.keys(t).length || e.getRowModel().flatRows.some((e) => !e.getIsExpanded()));
|
|
829
|
+
}, e.getExpandedDepth = () => {
|
|
830
|
+
let t = 0;
|
|
831
|
+
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((e) => {
|
|
832
|
+
let n = e.split(".");
|
|
833
|
+
t = Math.max(t, n.length);
|
|
834
|
+
}), t;
|
|
835
|
+
}, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
|
|
836
|
+
},
|
|
837
|
+
createRow: (e, t) => {
|
|
838
|
+
e.toggleExpanded = (n) => {
|
|
839
|
+
t.setExpanded((r) => {
|
|
840
|
+
let i = r === !0 ? !0 : !!(r != null && r[e.id]), a = {};
|
|
841
|
+
if (r === !0 ? Object.keys(t.getRowModel().rowsById).forEach((e) => {
|
|
842
|
+
a[e] = !0;
|
|
843
|
+
}) : a = r, n ??= !i, !i && n) return {
|
|
844
|
+
...a,
|
|
845
|
+
[e.id]: !0
|
|
846
|
+
};
|
|
847
|
+
if (i && !n) {
|
|
848
|
+
let { [e.id]: t, ...n } = a;
|
|
849
|
+
return n;
|
|
850
|
+
}
|
|
851
|
+
return r;
|
|
852
|
+
});
|
|
853
|
+
}, e.getIsExpanded = () => {
|
|
854
|
+
let n = t.getState().expanded;
|
|
855
|
+
return !!((t.options.getIsRowExpanded == null ? void 0 : t.options.getIsRowExpanded(e)) ?? (n === !0 || n?.[e.id]));
|
|
856
|
+
}, e.getCanExpand = () => {
|
|
857
|
+
var n;
|
|
858
|
+
return (t.options.getRowCanExpand == null ? void 0 : t.options.getRowCanExpand(e)) ?? ((t.options.enableExpanding ?? !0) && !!((n = e.subRows) != null && n.length));
|
|
859
|
+
}, e.getIsAllParentsExpanded = () => {
|
|
860
|
+
let n = !0, r = e;
|
|
861
|
+
for (; n && r.parentId;) r = t.getRow(r.parentId, !0), n = r.getIsExpanded();
|
|
862
|
+
return n;
|
|
863
|
+
}, e.getToggleExpandedHandler = () => {
|
|
864
|
+
let t = e.getCanExpand();
|
|
865
|
+
return () => {
|
|
866
|
+
t && e.toggleExpanded();
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
}, he = 0, ge = 10, _e = () => ({
|
|
871
|
+
pageIndex: he,
|
|
872
|
+
pageSize: ge
|
|
873
|
+
}), ve = {
|
|
874
|
+
getInitialState: (e) => ({
|
|
875
|
+
...e,
|
|
876
|
+
pagination: {
|
|
877
|
+
..._e(),
|
|
878
|
+
...e?.pagination
|
|
879
|
+
}
|
|
880
|
+
}),
|
|
881
|
+
getDefaultOptions: (e) => ({ onPaginationChange: d("pagination", e) }),
|
|
882
|
+
createTable: (e) => {
|
|
883
|
+
let t = !1, n = !1;
|
|
884
|
+
e._autoResetPageIndex = () => {
|
|
885
|
+
if (!t) {
|
|
886
|
+
e._queue(() => {
|
|
887
|
+
t = !0;
|
|
888
|
+
});
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
|
|
892
|
+
if (n) return;
|
|
893
|
+
n = !0, e._queue(() => {
|
|
894
|
+
e.resetPageIndex(), n = !1;
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => u(t, e)), e.resetPagination = (t) => {
|
|
898
|
+
e.setPagination(t ? _e() : e.initialState.pagination ?? _e());
|
|
899
|
+
}, e.setPageIndex = (t) => {
|
|
900
|
+
e.setPagination((n) => {
|
|
901
|
+
let r = u(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
|
|
902
|
+
return r = Math.max(0, Math.min(r, i)), {
|
|
903
|
+
...n,
|
|
904
|
+
pageIndex: r
|
|
905
|
+
};
|
|
906
|
+
});
|
|
907
|
+
}, e.resetPageIndex = (t) => {
|
|
908
|
+
var n;
|
|
909
|
+
e.setPageIndex(t ? he : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? he);
|
|
910
|
+
}, e.resetPageSize = (t) => {
|
|
911
|
+
var n;
|
|
912
|
+
e.setPageSize(t ? ge : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? ge);
|
|
913
|
+
}, e.setPageSize = (t) => {
|
|
914
|
+
e.setPagination((e) => {
|
|
915
|
+
let n = Math.max(1, u(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
|
|
916
|
+
return {
|
|
917
|
+
...e,
|
|
918
|
+
pageIndex: i,
|
|
919
|
+
pageSize: n
|
|
920
|
+
};
|
|
921
|
+
});
|
|
922
|
+
}, e.setPageCount = (t) => e.setPagination((n) => {
|
|
923
|
+
let r = u(t, e.options.pageCount ?? -1);
|
|
924
|
+
return typeof r == "number" && (r = Math.max(-1, r)), {
|
|
925
|
+
...n,
|
|
926
|
+
pageCount: r
|
|
927
|
+
};
|
|
928
|
+
}), e.getPageOptions = h(() => [e.getPageCount()], (e) => {
|
|
929
|
+
let t = [];
|
|
930
|
+
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
|
|
931
|
+
}, g(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
932
|
+
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
|
|
933
|
+
return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
|
|
934
|
+
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
|
|
935
|
+
}
|
|
936
|
+
}, ye = () => ({
|
|
937
|
+
top: [],
|
|
938
|
+
bottom: []
|
|
939
|
+
}), be = {
|
|
940
|
+
getInitialState: (e) => ({
|
|
941
|
+
rowPinning: ye(),
|
|
942
|
+
...e
|
|
943
|
+
}),
|
|
944
|
+
getDefaultOptions: (e) => ({ onRowPinningChange: d("rowPinning", e) }),
|
|
945
|
+
createRow: (e, t) => {
|
|
946
|
+
e.pin = (n, r, i) => {
|
|
947
|
+
let a = r ? e.getLeafRows().map((e) => {
|
|
948
|
+
let { id: t } = e;
|
|
949
|
+
return t;
|
|
950
|
+
}) : [], o = i ? e.getParentRows().map((e) => {
|
|
951
|
+
let { id: t } = e;
|
|
952
|
+
return t;
|
|
953
|
+
}) : [], s = new Set([
|
|
77
954
|
...o,
|
|
78
|
-
|
|
79
|
-
|
|
955
|
+
e.id,
|
|
956
|
+
...a
|
|
957
|
+
]);
|
|
958
|
+
t.setRowPinning((e) => n === "bottom" ? {
|
|
959
|
+
top: (e?.top ?? []).filter((e) => !(s != null && s.has(e))),
|
|
960
|
+
bottom: [...(e?.bottom ?? []).filter((e) => !(s != null && s.has(e))), ...Array.from(s)]
|
|
961
|
+
} : n === "top" ? {
|
|
962
|
+
top: [...(e?.top ?? []).filter((e) => !(s != null && s.has(e))), ...Array.from(s)],
|
|
963
|
+
bottom: (e?.bottom ?? []).filter((e) => !(s != null && s.has(e)))
|
|
964
|
+
} : {
|
|
965
|
+
top: (e?.top ?? []).filter((e) => !(s != null && s.has(e))),
|
|
966
|
+
bottom: (e?.bottom ?? []).filter((e) => !(s != null && s.has(e)))
|
|
967
|
+
});
|
|
968
|
+
}, e.getCanPin = () => {
|
|
969
|
+
let { enableRowPinning: n, enablePinning: r } = t.options;
|
|
970
|
+
return typeof n == "function" ? n(e) : n ?? r ?? !0;
|
|
971
|
+
}, e.getIsPinned = () => {
|
|
972
|
+
let n = [e.id], { top: r, bottom: i } = t.getState().rowPinning, a = n.some((e) => r?.includes(e)), o = n.some((e) => i?.includes(e));
|
|
973
|
+
return a ? "top" : o ? "bottom" : !1;
|
|
974
|
+
}, e.getPinnedIndex = () => {
|
|
975
|
+
let n = e.getIsPinned();
|
|
976
|
+
return n ? ((n === "top" ? t.getTopRows() : t.getBottomRows())?.map((e) => {
|
|
977
|
+
let { id: t } = e;
|
|
978
|
+
return t;
|
|
979
|
+
}))?.indexOf(e.id) ?? -1 : -1;
|
|
980
|
+
};
|
|
981
|
+
},
|
|
982
|
+
createTable: (e) => {
|
|
983
|
+
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? ye() : e.initialState?.rowPinning ?? ye()), e.getIsSomeRowsPinned = (t) => {
|
|
984
|
+
let n = e.getState().rowPinning;
|
|
985
|
+
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
|
|
986
|
+
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
|
|
987
|
+
let n = e.getRow(t, !0);
|
|
988
|
+
return n.getIsAllParentsExpanded() ? n : null;
|
|
989
|
+
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
|
|
990
|
+
...e,
|
|
991
|
+
position: r
|
|
992
|
+
})), e.getTopRows = h(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), g(e.options, "debugRows", "getTopRows")), e.getBottomRows = h(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), g(e.options, "debugRows", "getBottomRows")), e.getCenterRows = h(() => [
|
|
993
|
+
e.getRowModel().rows,
|
|
994
|
+
e.getState().rowPinning.top,
|
|
995
|
+
e.getState().rowPinning.bottom
|
|
996
|
+
], (e, t, n) => {
|
|
997
|
+
let r = new Set([...t ?? [], ...n ?? []]);
|
|
998
|
+
return e.filter((e) => !r.has(e.id));
|
|
999
|
+
}, g(e.options, "debugRows", "getCenterRows"));
|
|
1000
|
+
}
|
|
1001
|
+
}, xe = {
|
|
1002
|
+
getInitialState: (e) => ({
|
|
1003
|
+
rowSelection: {},
|
|
1004
|
+
...e
|
|
1005
|
+
}),
|
|
1006
|
+
getDefaultOptions: (e) => ({
|
|
1007
|
+
onRowSelectionChange: d("rowSelection", e),
|
|
1008
|
+
enableRowSelection: !0,
|
|
1009
|
+
enableMultiRowSelection: !0,
|
|
1010
|
+
enableSubRowSelection: !0
|
|
1011
|
+
}),
|
|
1012
|
+
createTable: (e) => {
|
|
1013
|
+
e.setRowSelection = (t) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(t), e.resetRowSelection = (t) => e.setRowSelection(t ? {} : e.initialState.rowSelection ?? {}), e.toggleAllRowsSelected = (t) => {
|
|
1014
|
+
e.setRowSelection((n) => {
|
|
1015
|
+
t = t === void 0 ? !e.getIsAllRowsSelected() : t;
|
|
1016
|
+
let r = { ...n }, i = e.getPreGroupedRowModel().flatRows;
|
|
1017
|
+
return t ? i.forEach((e) => {
|
|
1018
|
+
e.getCanSelect() && (r[e.id] = !0);
|
|
1019
|
+
}) : i.forEach((e) => {
|
|
1020
|
+
delete r[e.id];
|
|
1021
|
+
}), r;
|
|
1022
|
+
});
|
|
1023
|
+
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
|
|
1024
|
+
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
|
|
1025
|
+
return e.getRowModel().rows.forEach((t) => {
|
|
1026
|
+
Se(i, t.id, r, !0, e);
|
|
1027
|
+
}), i;
|
|
1028
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = h(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? Ce(e, n) : {
|
|
1029
|
+
rows: [],
|
|
1030
|
+
flatRows: [],
|
|
1031
|
+
rowsById: {}
|
|
1032
|
+
}, g(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = h(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? Ce(e, n) : {
|
|
1033
|
+
rows: [],
|
|
1034
|
+
flatRows: [],
|
|
1035
|
+
rowsById: {}
|
|
1036
|
+
}, g(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = h(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? Ce(e, n) : {
|
|
1037
|
+
rows: [],
|
|
1038
|
+
flatRows: [],
|
|
1039
|
+
rowsById: {}
|
|
1040
|
+
}, g(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1041
|
+
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
|
|
1042
|
+
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
|
|
1043
|
+
}, e.getIsAllPageRowsSelected = () => {
|
|
1044
|
+
let t = e.getPaginationRowModel().flatRows.filter((e) => e.getCanSelect()), { rowSelection: n } = e.getState(), r = !!t.length;
|
|
1045
|
+
return r && t.some((e) => !n[e.id]) && (r = !1), r;
|
|
1046
|
+
}, e.getIsSomeRowsSelected = () => {
|
|
1047
|
+
let t = Object.keys(e.getState().rowSelection ?? {}).length;
|
|
1048
|
+
return t > 0 && t < e.getFilteredRowModel().flatRows.length;
|
|
1049
|
+
}, e.getIsSomePageRowsSelected = () => {
|
|
1050
|
+
let t = e.getPaginationRowModel().flatRows;
|
|
1051
|
+
return e.getIsAllPageRowsSelected() ? !1 : t.filter((e) => e.getCanSelect()).some((e) => e.getIsSelected() || e.getIsSomeSelected());
|
|
1052
|
+
}, e.getToggleAllRowsSelectedHandler = () => (t) => {
|
|
1053
|
+
e.toggleAllRowsSelected(t.target.checked);
|
|
1054
|
+
}, e.getToggleAllPageRowsSelectedHandler = () => (t) => {
|
|
1055
|
+
e.toggleAllPageRowsSelected(t.target.checked);
|
|
1056
|
+
};
|
|
1057
|
+
},
|
|
1058
|
+
createRow: (e, t) => {
|
|
1059
|
+
e.toggleSelected = (n, r) => {
|
|
1060
|
+
let i = e.getIsSelected();
|
|
1061
|
+
t.setRowSelection((a) => {
|
|
1062
|
+
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
|
|
1063
|
+
let o = { ...a };
|
|
1064
|
+
return Se(o, e.id, n, r?.selectChildren ?? !0, t), o;
|
|
80
1065
|
});
|
|
1066
|
+
}, e.getIsSelected = () => {
|
|
1067
|
+
let { rowSelection: n } = t.getState();
|
|
1068
|
+
return we(e, n);
|
|
1069
|
+
}, e.getIsSomeSelected = () => {
|
|
1070
|
+
let { rowSelection: n } = t.getState();
|
|
1071
|
+
return Te(e, n) === "some";
|
|
1072
|
+
}, e.getIsAllSubRowsSelected = () => {
|
|
1073
|
+
let { rowSelection: n } = t.getState();
|
|
1074
|
+
return Te(e, n) === "all";
|
|
1075
|
+
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
|
|
1076
|
+
let t = e.getCanSelect();
|
|
1077
|
+
return (n) => {
|
|
1078
|
+
t && e.toggleSelected(n.target?.checked);
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
}, Se = (e, t, n, r, i) => {
|
|
1083
|
+
var a;
|
|
1084
|
+
let o = i.getRow(t, !0);
|
|
1085
|
+
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => Se(e, t.id, n, r, i));
|
|
1086
|
+
};
|
|
1087
|
+
function Ce(e, t) {
|
|
1088
|
+
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
|
|
1089
|
+
return e.map((e) => {
|
|
1090
|
+
var t;
|
|
1091
|
+
let o = we(e, n);
|
|
1092
|
+
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
|
|
1093
|
+
...e,
|
|
1094
|
+
subRows: a(e.subRows)
|
|
1095
|
+
}), o) return e;
|
|
1096
|
+
}).filter(Boolean);
|
|
1097
|
+
};
|
|
1098
|
+
return {
|
|
1099
|
+
rows: a(t.rows),
|
|
1100
|
+
flatRows: r,
|
|
1101
|
+
rowsById: i
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
function we(e, t) {
|
|
1105
|
+
return t[e.id] ?? !1;
|
|
1106
|
+
}
|
|
1107
|
+
function Te(e, t, n) {
|
|
1108
|
+
var r;
|
|
1109
|
+
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
1110
|
+
let i = !0, a = !1;
|
|
1111
|
+
return e.subRows.forEach((e) => {
|
|
1112
|
+
if (!(a && !i) && (e.getCanSelect() && (we(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
1113
|
+
let n = Te(e, t);
|
|
1114
|
+
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
81
1115
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1116
|
+
}), i ? "all" : a ? "some" : !1;
|
|
1117
|
+
}
|
|
1118
|
+
var Ee = /([0-9]+)/gm, De = (e, t, n) => Pe(V(e.getValue(n)).toLowerCase(), V(t.getValue(n)).toLowerCase()), Oe = (e, t, n) => Pe(V(e.getValue(n)), V(t.getValue(n))), ke = (e, t, n) => Ne(V(e.getValue(n)).toLowerCase(), V(t.getValue(n)).toLowerCase()), Ae = (e, t, n) => Ne(V(e.getValue(n)), V(t.getValue(n))), je = (e, t, n) => {
|
|
1119
|
+
let r = e.getValue(n), i = t.getValue(n);
|
|
1120
|
+
return r > i ? 1 : r < i ? -1 : 0;
|
|
1121
|
+
}, Me = (e, t, n) => Ne(e.getValue(n), t.getValue(n));
|
|
1122
|
+
function Ne(e, t) {
|
|
1123
|
+
return e === t ? 0 : e > t ? 1 : -1;
|
|
89
1124
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
1125
|
+
function V(e) {
|
|
1126
|
+
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1127
|
+
}
|
|
1128
|
+
function Pe(e, t) {
|
|
1129
|
+
let n = e.split(Ee).filter(Boolean), r = t.split(Ee).filter(Boolean);
|
|
1130
|
+
for (; n.length && r.length;) {
|
|
1131
|
+
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
|
|
1132
|
+
if (isNaN(o[0])) {
|
|
1133
|
+
if (e > t) return 1;
|
|
1134
|
+
if (t > e) return -1;
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1137
|
+
if (isNaN(o[1])) return isNaN(i) ? -1 : 1;
|
|
1138
|
+
if (i > a) return 1;
|
|
1139
|
+
if (a > i) return -1;
|
|
1140
|
+
}
|
|
1141
|
+
return n.length - r.length;
|
|
1142
|
+
}
|
|
1143
|
+
var H = {
|
|
1144
|
+
alphanumeric: De,
|
|
1145
|
+
alphanumericCaseSensitive: Oe,
|
|
1146
|
+
text: ke,
|
|
1147
|
+
textCaseSensitive: Ae,
|
|
1148
|
+
datetime: je,
|
|
1149
|
+
basic: Me
|
|
1150
|
+
}, Fe = [
|
|
1151
|
+
te,
|
|
1152
|
+
de,
|
|
1153
|
+
M,
|
|
1154
|
+
P,
|
|
1155
|
+
x,
|
|
1156
|
+
A,
|
|
1157
|
+
fe,
|
|
1158
|
+
pe,
|
|
1159
|
+
{
|
|
1160
|
+
getInitialState: (e) => ({
|
|
1161
|
+
sorting: [],
|
|
1162
|
+
...e
|
|
1163
|
+
}),
|
|
1164
|
+
getDefaultColumnDef: () => ({
|
|
1165
|
+
sortingFn: "auto",
|
|
1166
|
+
sortUndefined: 1
|
|
1167
|
+
}),
|
|
1168
|
+
getDefaultOptions: (e) => ({
|
|
1169
|
+
onSortingChange: d("sorting", e),
|
|
1170
|
+
isMultiSortEvent: (e) => e.shiftKey
|
|
1171
|
+
}),
|
|
1172
|
+
createColumn: (e, t) => {
|
|
1173
|
+
e.getAutoSortingFn = () => {
|
|
1174
|
+
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
|
|
1175
|
+
for (let t of n) {
|
|
1176
|
+
let n = t?.getValue(e.id);
|
|
1177
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return H.datetime;
|
|
1178
|
+
if (typeof n == "string" && (r = !0, n.split(Ee).length > 1)) return H.alphanumeric;
|
|
1179
|
+
}
|
|
1180
|
+
return r ? H.text : H.basic;
|
|
1181
|
+
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
|
|
1182
|
+
if (!e) throw Error();
|
|
1183
|
+
return f(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? H[e.columnDef.sortingFn];
|
|
1184
|
+
}, e.toggleSorting = (n, r) => {
|
|
1185
|
+
let i = e.getNextSortingOrder(), a = n != null;
|
|
1186
|
+
t.setSorting((o) => {
|
|
1187
|
+
let s = o?.find((t) => t.id === e.id), c = o?.findIndex((t) => t.id === e.id), l = [], u, d = a ? n : i === "desc";
|
|
1188
|
+
return u = o != null && o.length && e.getCanMultiSort() && r ? s ? "toggle" : "add" : o != null && o.length && c !== o.length - 1 ? "replace" : s ? "toggle" : "replace", u === "toggle" && (a || i || (u = "remove")), u === "add" ? (l = [...o, {
|
|
1189
|
+
id: e.id,
|
|
1190
|
+
desc: d
|
|
1191
|
+
}], l.splice(0, l.length - (t.options.maxMultiSortColCount ?? 2 ** 53 - 1))) : l = u === "toggle" ? o.map((t) => t.id === e.id ? {
|
|
1192
|
+
...t,
|
|
1193
|
+
desc: d
|
|
1194
|
+
} : t) : u === "remove" ? o.filter((t) => t.id !== e.id) : [{
|
|
1195
|
+
id: e.id,
|
|
1196
|
+
desc: d
|
|
1197
|
+
}], l;
|
|
1198
|
+
});
|
|
1199
|
+
}, e.getFirstSortDir = () => e.columnDef.sortDescFirst ?? t.options.sortDescFirst ?? e.getAutoSortDir() === "desc" ? "desc" : "asc", e.getNextSortingOrder = (n) => {
|
|
1200
|
+
let r = e.getFirstSortDir(), i = e.getIsSorted();
|
|
1201
|
+
return i ? i !== r && (t.options.enableSortingRemoval ?? !0) && (!n || (t.options.enableMultiRemove ?? !0)) ? !1 : i === "desc" ? "asc" : "desc" : r;
|
|
1202
|
+
}, e.getCanSort = () => (e.columnDef.enableSorting ?? !0) && (t.options.enableSorting ?? !0) && !!e.accessorFn, e.getCanMultiSort = () => e.columnDef.enableMultiSort ?? t.options.enableMultiSort ?? !!e.accessorFn, e.getIsSorted = () => {
|
|
1203
|
+
let n = t.getState().sorting?.find((t) => t.id === e.id);
|
|
1204
|
+
return n ? n.desc ? "desc" : "asc" : !1;
|
|
1205
|
+
}, e.getSortIndex = () => t.getState().sorting?.findIndex((t) => t.id === e.id) ?? -1, e.clearSorting = () => {
|
|
1206
|
+
t.setSorting((t) => t != null && t.length ? t.filter((t) => t.id !== e.id) : []);
|
|
1207
|
+
}, e.getToggleSortingHandler = () => {
|
|
1208
|
+
let n = e.getCanSort();
|
|
1209
|
+
return (r) => {
|
|
1210
|
+
n && (r.persist == null || r.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? t.options.isMultiSortEvent == null ? void 0 : t.options.isMultiSortEvent(r) : !1));
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
},
|
|
1214
|
+
createTable: (e) => {
|
|
1215
|
+
e.setSorting = (t) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(t), e.resetSorting = (t) => {
|
|
1216
|
+
e.setSorting(t ? [] : e.initialState?.sorting ?? []);
|
|
1217
|
+
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
98
1218
|
}
|
|
99
|
-
|
|
1219
|
+
},
|
|
1220
|
+
se,
|
|
1221
|
+
me,
|
|
1222
|
+
ve,
|
|
1223
|
+
be,
|
|
1224
|
+
xe,
|
|
1225
|
+
L
|
|
1226
|
+
];
|
|
1227
|
+
function Ie(e) {
|
|
1228
|
+
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1229
|
+
let t = [...Fe, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
|
|
1230
|
+
...r,
|
|
1231
|
+
...e
|
|
1232
|
+
}, a = { ...e.initialState ?? {} };
|
|
1233
|
+
n._features.forEach((e) => {
|
|
1234
|
+
a = (e.getInitialState == null ? void 0 : e.getInitialState(a)) ?? a;
|
|
100
1235
|
});
|
|
101
|
-
|
|
1236
|
+
let o = [], s = !1, c = {
|
|
1237
|
+
_features: t,
|
|
1238
|
+
options: {
|
|
1239
|
+
...r,
|
|
1240
|
+
...e
|
|
1241
|
+
},
|
|
1242
|
+
initialState: a,
|
|
1243
|
+
_queue: (e) => {
|
|
1244
|
+
o.push(e), s || (s = !0, Promise.resolve().then(() => {
|
|
1245
|
+
for (; o.length;) o.shift()();
|
|
1246
|
+
s = !1;
|
|
1247
|
+
}).catch((e) => setTimeout(() => {
|
|
1248
|
+
throw e;
|
|
1249
|
+
})));
|
|
1250
|
+
},
|
|
1251
|
+
reset: () => {
|
|
1252
|
+
n.setState(n.initialState);
|
|
1253
|
+
},
|
|
1254
|
+
setOptions: (e) => {
|
|
1255
|
+
n.options = i(u(e, n.options));
|
|
1256
|
+
},
|
|
1257
|
+
getState: () => n.options.state,
|
|
1258
|
+
setState: (e) => {
|
|
1259
|
+
n.options.onStateChange == null || n.options.onStateChange(e);
|
|
1260
|
+
},
|
|
1261
|
+
_getRowId: (e, t, r) => (n.options.getRowId == null ? void 0 : n.options.getRowId(e, t, r)) ?? `${r ? [r.id, t].join(".") : t}`,
|
|
1262
|
+
getCoreRowModel: () => (n._getCoreRowModel ||= n.options.getCoreRowModel(n), n._getCoreRowModel()),
|
|
1263
|
+
getRowModel: () => n.getPaginationRowModel(),
|
|
1264
|
+
getRow: (e, t) => {
|
|
1265
|
+
let r = (t ? n.getPrePaginationRowModel() : n.getRowModel()).rowsById[e];
|
|
1266
|
+
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw process.env.NODE_ENV === "production" ? Error() : Error(`getRow could not find row with ID: ${e}`);
|
|
1267
|
+
return r;
|
|
1268
|
+
},
|
|
1269
|
+
_getDefaultColumnDef: h(() => [n.options.defaultColumn], (e) => (e ??= {}, {
|
|
1270
|
+
header: (e) => {
|
|
1271
|
+
let t = e.header.column.columnDef;
|
|
1272
|
+
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
|
|
1273
|
+
},
|
|
1274
|
+
cell: (e) => {
|
|
1275
|
+
var t;
|
|
1276
|
+
return ((t = e.renderValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;
|
|
1277
|
+
},
|
|
1278
|
+
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
|
|
1279
|
+
...e
|
|
1280
|
+
}), g(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1281
|
+
_getColumnDefs: () => n.options.columns,
|
|
1282
|
+
getAllColumns: h(() => [n._getColumnDefs()], (e) => {
|
|
1283
|
+
let t = function(e, r, i) {
|
|
1284
|
+
return i === void 0 && (i = 0), e.map((e) => {
|
|
1285
|
+
let a = ee(n, e, i, r), o = e;
|
|
1286
|
+
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
|
|
1287
|
+
});
|
|
1288
|
+
};
|
|
1289
|
+
return t(e);
|
|
1290
|
+
}, g(e, "debugColumns", "getAllColumns")),
|
|
1291
|
+
getAllFlatColumns: h(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), g(e, "debugColumns", "getAllFlatColumns")),
|
|
1292
|
+
_getAllFlatColumnsById: h(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), g(e, "debugColumns", "getAllFlatColumnsById")),
|
|
1293
|
+
getAllLeafColumns: h(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), g(e, "debugColumns", "getAllLeafColumns")),
|
|
1294
|
+
getColumn: (e) => {
|
|
1295
|
+
let t = n._getAllFlatColumnsById()[e];
|
|
1296
|
+
return process.env.NODE_ENV !== "production" && !t && console.error(`[Table] Column with id '${e}' does not exist.`), t;
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
Object.assign(n, c);
|
|
1300
|
+
for (let e = 0; e < n._features.length; e++) {
|
|
1301
|
+
let t = n._features[e];
|
|
1302
|
+
t == null || t.createTable == null || t.createTable(n);
|
|
1303
|
+
}
|
|
1304
|
+
return n;
|
|
102
1305
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
1306
|
+
function Le() {
|
|
1307
|
+
return (e) => h(() => [e.options.data], (t) => {
|
|
1308
|
+
let n = {
|
|
1309
|
+
rows: [],
|
|
1310
|
+
flatRows: [],
|
|
1311
|
+
rowsById: {}
|
|
1312
|
+
}, r = function(t, i, a) {
|
|
1313
|
+
i === void 0 && (i = 0);
|
|
1314
|
+
let o = [];
|
|
1315
|
+
for (let c = 0; c < t.length; c++) {
|
|
1316
|
+
let l = ne(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
|
|
1317
|
+
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
|
|
1318
|
+
var s;
|
|
1319
|
+
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
return o;
|
|
1323
|
+
};
|
|
1324
|
+
return n.rows = r(t), n;
|
|
1325
|
+
}, g(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
106
1326
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
1327
|
+
//#endregion
|
|
1328
|
+
//#region node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
1329
|
+
function Re(t, n) {
|
|
1330
|
+
return t ? ze(t) ? /* @__PURE__ */ e.createElement(t, n) : t : null;
|
|
1331
|
+
}
|
|
1332
|
+
function ze(e) {
|
|
1333
|
+
return Be(e) || typeof e == "function" || Ve(e);
|
|
1334
|
+
}
|
|
1335
|
+
function Be(e) {
|
|
1336
|
+
return typeof e == "function" && (() => {
|
|
1337
|
+
let t = Object.getPrototypeOf(e);
|
|
1338
|
+
return t.prototype && t.prototype.isReactComponent;
|
|
1339
|
+
})();
|
|
1340
|
+
}
|
|
1341
|
+
function Ve(e) {
|
|
1342
|
+
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
1343
|
+
}
|
|
1344
|
+
function He(t) {
|
|
1345
|
+
let n = {
|
|
1346
|
+
state: {},
|
|
1347
|
+
onStateChange: () => {},
|
|
1348
|
+
renderFallbackValue: null,
|
|
1349
|
+
...t
|
|
1350
|
+
}, [r] = e.useState(() => ({ current: Ie(n) })), [i, a] = e.useState(() => r.current.initialState);
|
|
1351
|
+
return r.current.setOptions((e) => ({
|
|
120
1352
|
...e,
|
|
121
|
-
...
|
|
122
|
-
|
|
1353
|
+
...t,
|
|
1354
|
+
state: {
|
|
1355
|
+
...i,
|
|
1356
|
+
...t.state
|
|
1357
|
+
},
|
|
1358
|
+
onStateChange: (e) => {
|
|
1359
|
+
a(e), t.onStateChange == null || t.onStateChange(e);
|
|
1360
|
+
}
|
|
1361
|
+
})), r.current;
|
|
123
1362
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
1363
|
+
//#endregion
|
|
1364
|
+
//#region src/hooks/useSyncScroll.ts
|
|
1365
|
+
var Ue = ({ refs: e, axis: t = "both" }) => {
|
|
1366
|
+
let n = o(null), r = o(!1), a = o(/* @__PURE__ */ new Map());
|
|
1367
|
+
i(() => {
|
|
1368
|
+
let i = e.map((e) => e.current).filter((e) => e !== null);
|
|
1369
|
+
if (i.length < 2) return;
|
|
1370
|
+
let o = (e) => {
|
|
1371
|
+
r.current || (n.current !== null && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
|
|
1372
|
+
r.current = !0;
|
|
1373
|
+
let n = e.scrollLeft, a = e.scrollTop;
|
|
1374
|
+
for (let r of i) r !== e && ((t === "x" || t === "both") && r.scrollLeft !== n && (r.scrollLeft = n), (t === "y" || t === "both") && r.scrollTop !== a && (r.scrollTop = a));
|
|
1375
|
+
r.current = !1;
|
|
1376
|
+
}));
|
|
1377
|
+
};
|
|
1378
|
+
for (let e of i) {
|
|
1379
|
+
let t = () => o(e);
|
|
1380
|
+
a.current.set(e, t), e.addEventListener("scroll", t, { passive: !0 });
|
|
1381
|
+
}
|
|
1382
|
+
return () => {
|
|
1383
|
+
for (let [e, t] of a.current.entries()) e.removeEventListener("scroll", t);
|
|
1384
|
+
a.current.clear(), n.current !== null && (cancelAnimationFrame(n.current), n.current = null);
|
|
1385
|
+
};
|
|
1386
|
+
}, [e, t]);
|
|
1387
|
+
}, We = n(void 0), Ge = ({ children: e, payload: n, columns: r }) => {
|
|
1388
|
+
let [i, s] = t.useState([]), l = He({
|
|
1389
|
+
data: n?.data ?? [],
|
|
1390
|
+
columns: r,
|
|
1391
|
+
state: { columnFilters: i },
|
|
1392
|
+
onColumnFiltersChange: s,
|
|
1393
|
+
getCoreRowModel: Le(),
|
|
1394
|
+
debugTable: !0,
|
|
1395
|
+
debugHeaders: !0,
|
|
1396
|
+
debugColumns: !1,
|
|
1397
|
+
defaultColumn: {
|
|
1398
|
+
size: 180,
|
|
1399
|
+
minSize: 180,
|
|
1400
|
+
maxSize: 180
|
|
1401
|
+
}
|
|
1402
|
+
}), u = o(null), d = o(null), f = o(null), p = o(null), m = o(null), h = o(null), g = o(null);
|
|
1403
|
+
Ue({
|
|
1404
|
+
refs: [u, d],
|
|
1405
|
+
axis: "x"
|
|
1406
|
+
}), Ue({
|
|
1407
|
+
refs: [p, h],
|
|
1408
|
+
axis: "x"
|
|
1409
|
+
}), Ue({
|
|
1410
|
+
refs: [m, g],
|
|
1411
|
+
axis: "x"
|
|
1412
|
+
}), Ue({
|
|
1413
|
+
refs: [
|
|
1414
|
+
d,
|
|
1415
|
+
f,
|
|
1416
|
+
h,
|
|
1417
|
+
g
|
|
1418
|
+
],
|
|
1419
|
+
axis: "y"
|
|
1420
|
+
});
|
|
1421
|
+
let _ = a(() => ({
|
|
1422
|
+
paneRef1: u,
|
|
1423
|
+
paneRef2: d,
|
|
1424
|
+
paneRef3: f,
|
|
1425
|
+
paneRef4: p,
|
|
1426
|
+
paneRef5: m,
|
|
1427
|
+
paneRef6: h,
|
|
1428
|
+
paneRef7: g
|
|
1429
|
+
}), [
|
|
1430
|
+
u,
|
|
1431
|
+
d,
|
|
1432
|
+
f,
|
|
1433
|
+
p,
|
|
1434
|
+
m,
|
|
1435
|
+
h,
|
|
1436
|
+
g
|
|
1437
|
+
]);
|
|
1438
|
+
return /* @__PURE__ */ c(We.Provider, {
|
|
1439
|
+
value: {
|
|
1440
|
+
..._,
|
|
1441
|
+
table: l
|
|
1442
|
+
},
|
|
1443
|
+
children: e
|
|
1444
|
+
});
|
|
1445
|
+
};
|
|
1446
|
+
//#endregion
|
|
1447
|
+
//#region src/hooks/useGrid.ts
|
|
1448
|
+
function Ke() {
|
|
1449
|
+
let e = r(We);
|
|
1450
|
+
if (!e) throw Error("useGrid must be used within a GridContextProvider");
|
|
1451
|
+
return e;
|
|
1452
|
+
}
|
|
1453
|
+
//#endregion
|
|
1454
|
+
//#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
1455
|
+
function qe(e) {
|
|
1456
|
+
var t, n, r = "";
|
|
1457
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1458
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1459
|
+
var i = e.length;
|
|
1460
|
+
for (t = 0; t < i; t++) e[t] && (n = qe(e[t])) && (r && (r += " "), r += n);
|
|
1461
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1462
|
+
return r;
|
|
1463
|
+
}
|
|
1464
|
+
function Je() {
|
|
1465
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qe(e)) && (r && (r += " "), r += t);
|
|
1466
|
+
return r;
|
|
127
1467
|
}
|
|
128
1468
|
//#endregion
|
|
129
1469
|
//#region node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
130
|
-
var
|
|
1470
|
+
var Ye = (e, t) => {
|
|
131
1471
|
let n = Array(e.length + t.length);
|
|
132
1472
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
133
1473
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
134
1474
|
return n;
|
|
135
|
-
},
|
|
1475
|
+
}, Xe = (e, t) => ({
|
|
136
1476
|
classGroupId: e,
|
|
137
1477
|
validator: t
|
|
138
|
-
}),
|
|
1478
|
+
}), Ze = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
139
1479
|
nextPart: e,
|
|
140
1480
|
validators: t,
|
|
141
1481
|
classGroupId: n
|
|
142
|
-
}),
|
|
143
|
-
let t =
|
|
1482
|
+
}), Qe = "-", $e = [], et = "arbitrary..", tt = (e) => {
|
|
1483
|
+
let t = it(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
144
1484
|
return {
|
|
145
1485
|
getClassGroupId: (e) => {
|
|
146
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
147
|
-
let n = e.split(
|
|
148
|
-
return
|
|
1486
|
+
if (e.startsWith("[") && e.endsWith("]")) return rt(e);
|
|
1487
|
+
let n = e.split(Qe);
|
|
1488
|
+
return nt(n, n[0] === "" && n.length > 1 ? 1 : 0, t);
|
|
149
1489
|
},
|
|
150
1490
|
getConflictingClassGroupIds: (e, t) => {
|
|
151
1491
|
if (t) {
|
|
152
1492
|
let t = r[e], i = n[e];
|
|
153
|
-
return t ? i ?
|
|
1493
|
+
return t ? i ? Ye(i, t) : t : i || $e;
|
|
154
1494
|
}
|
|
155
|
-
return n[e] ||
|
|
1495
|
+
return n[e] || $e;
|
|
156
1496
|
}
|
|
157
1497
|
};
|
|
158
|
-
},
|
|
1498
|
+
}, nt = (e, t, n) => {
|
|
159
1499
|
if (e.length - t === 0) return n.classGroupId;
|
|
160
1500
|
let r = e[t], i = n.nextPart.get(r);
|
|
161
1501
|
if (i) {
|
|
162
|
-
let n =
|
|
1502
|
+
let n = nt(e, t + 1, i);
|
|
163
1503
|
if (n) return n;
|
|
164
1504
|
}
|
|
165
1505
|
let a = n.validators;
|
|
166
1506
|
if (a === null) return;
|
|
167
|
-
let o = t === 0 ? e.join(
|
|
1507
|
+
let o = t === 0 ? e.join(Qe) : e.slice(t).join(Qe), s = a.length;
|
|
168
1508
|
for (let e = 0; e < s; e++) {
|
|
169
1509
|
let t = a[e];
|
|
170
1510
|
if (t.validator(o)) return t.classGroupId;
|
|
171
1511
|
}
|
|
172
|
-
},
|
|
1512
|
+
}, rt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
173
1513
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
174
|
-
return r ?
|
|
175
|
-
})(),
|
|
1514
|
+
return r ? et + r : void 0;
|
|
1515
|
+
})(), it = (e) => {
|
|
176
1516
|
let { theme: t, classGroups: n } = e;
|
|
177
|
-
return
|
|
178
|
-
},
|
|
179
|
-
let n =
|
|
1517
|
+
return at(n, t);
|
|
1518
|
+
}, at = (e, t) => {
|
|
1519
|
+
let n = Ze();
|
|
180
1520
|
for (let r in e) {
|
|
181
1521
|
let i = e[r];
|
|
182
|
-
|
|
1522
|
+
ot(i, n, r, t);
|
|
183
1523
|
}
|
|
184
1524
|
return n;
|
|
185
|
-
},
|
|
1525
|
+
}, ot = (e, t, n, r) => {
|
|
186
1526
|
let i = e.length;
|
|
187
1527
|
for (let a = 0; a < i; a++) {
|
|
188
1528
|
let i = e[a];
|
|
189
|
-
|
|
1529
|
+
st(i, t, n, r);
|
|
190
1530
|
}
|
|
191
|
-
},
|
|
1531
|
+
}, st = (e, t, n, r) => {
|
|
192
1532
|
if (typeof e == "string") {
|
|
193
|
-
|
|
1533
|
+
ct(e, t, n);
|
|
194
1534
|
return;
|
|
195
1535
|
}
|
|
196
1536
|
if (typeof e == "function") {
|
|
197
|
-
|
|
1537
|
+
lt(e, t, n, r);
|
|
198
1538
|
return;
|
|
199
1539
|
}
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
let r = e === "" ? t :
|
|
1540
|
+
ut(e, t, n, r);
|
|
1541
|
+
}, ct = (e, t, n) => {
|
|
1542
|
+
let r = e === "" ? t : dt(t, e);
|
|
203
1543
|
r.classGroupId = n;
|
|
204
|
-
},
|
|
205
|
-
if (
|
|
206
|
-
|
|
1544
|
+
}, lt = (e, t, n, r) => {
|
|
1545
|
+
if (ft(e)) {
|
|
1546
|
+
ot(e(r), t, n, r);
|
|
207
1547
|
return;
|
|
208
1548
|
}
|
|
209
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
210
|
-
},
|
|
1549
|
+
t.validators === null && (t.validators = []), t.validators.push(Xe(n, e));
|
|
1550
|
+
}, ut = (e, t, n, r) => {
|
|
211
1551
|
let i = Object.entries(e), a = i.length;
|
|
212
1552
|
for (let e = 0; e < a; e++) {
|
|
213
1553
|
let [a, o] = i[e];
|
|
214
|
-
|
|
1554
|
+
ot(o, dt(t, a), n, r);
|
|
215
1555
|
}
|
|
216
|
-
},
|
|
217
|
-
let n = e, r = t.split(
|
|
1556
|
+
}, dt = (e, t) => {
|
|
1557
|
+
let n = e, r = t.split(Qe), i = r.length;
|
|
218
1558
|
for (let e = 0; e < i; e++) {
|
|
219
1559
|
let t = r[e], i = n.nextPart.get(t);
|
|
220
|
-
i || (i =
|
|
1560
|
+
i || (i = Ze(), n.nextPart.set(t, i)), n = i;
|
|
221
1561
|
}
|
|
222
1562
|
return n;
|
|
223
|
-
},
|
|
1563
|
+
}, ft = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, pt = (e) => {
|
|
224
1564
|
if (e < 1) return {
|
|
225
1565
|
get: () => void 0,
|
|
226
1566
|
set: () => {}
|
|
@@ -238,19 +1578,19 @@ var h = (e, t) => {
|
|
|
238
1578
|
e in n ? n[e] = t : i(e, t);
|
|
239
1579
|
}
|
|
240
1580
|
};
|
|
241
|
-
},
|
|
1581
|
+
}, mt = "!", ht = ":", gt = [], _t = (e, t, n, r, i) => ({
|
|
242
1582
|
modifiers: e,
|
|
243
1583
|
hasImportantModifier: t,
|
|
244
1584
|
baseClassName: n,
|
|
245
1585
|
maybePostfixModifierPosition: r,
|
|
246
1586
|
isExternal: i
|
|
247
|
-
}),
|
|
1587
|
+
}), vt = (e) => {
|
|
248
1588
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
249
1589
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
250
1590
|
for (let s = 0; s < o; s++) {
|
|
251
1591
|
let o = e[s];
|
|
252
1592
|
if (n === 0 && r === 0) {
|
|
253
|
-
if (o ===
|
|
1593
|
+
if (o === ht) {
|
|
254
1594
|
t.push(e.slice(i, s)), i = s + 1;
|
|
255
1595
|
continue;
|
|
256
1596
|
}
|
|
@@ -262,13 +1602,13 @@ var h = (e, t) => {
|
|
|
262
1602
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
263
1603
|
}
|
|
264
1604
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
265
|
-
s.endsWith(
|
|
1605
|
+
s.endsWith(mt) ? (c = s.slice(0, -1), l = !0) : s.startsWith(mt) && (c = s.slice(1), l = !0);
|
|
266
1606
|
let u = a && a > i ? a - i : void 0;
|
|
267
|
-
return
|
|
1607
|
+
return _t(t, l, c, u);
|
|
268
1608
|
};
|
|
269
1609
|
if (t) {
|
|
270
|
-
let e = t +
|
|
271
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
1610
|
+
let e = t + ht, n = r;
|
|
1611
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : _t(gt, !1, t, void 0, !0);
|
|
272
1612
|
}
|
|
273
1613
|
if (n) {
|
|
274
1614
|
let e = r;
|
|
@@ -278,7 +1618,7 @@ var h = (e, t) => {
|
|
|
278
1618
|
});
|
|
279
1619
|
}
|
|
280
1620
|
return r;
|
|
281
|
-
},
|
|
1621
|
+
}, yt = (e) => {
|
|
282
1622
|
let t = /* @__PURE__ */ new Map();
|
|
283
1623
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
284
1624
|
t.set(e, 1e6 + n);
|
|
@@ -290,70 +1630,70 @@ var h = (e, t) => {
|
|
|
290
1630
|
}
|
|
291
1631
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
292
1632
|
};
|
|
293
|
-
},
|
|
294
|
-
cache:
|
|
295
|
-
parseClassName:
|
|
296
|
-
sortModifiers:
|
|
297
|
-
...
|
|
298
|
-
}),
|
|
299
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(
|
|
1633
|
+
}, bt = (e) => ({
|
|
1634
|
+
cache: pt(e.cacheSize),
|
|
1635
|
+
parseClassName: vt(e),
|
|
1636
|
+
sortModifiers: yt(e),
|
|
1637
|
+
...tt(e)
|
|
1638
|
+
}), xt = /\s+/, St = (e, t) => {
|
|
1639
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a } = t, o = [], s = e.trim().split(xt), c = "";
|
|
300
1640
|
for (let e = s.length - 1; e >= 0; --e) {
|
|
301
|
-
let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier:
|
|
1641
|
+
let t = s[e], { isExternal: l, modifiers: u, hasImportantModifier: d, baseClassName: f, maybePostfixModifierPosition: p } = n(t);
|
|
302
1642
|
if (l) {
|
|
303
1643
|
c = t + (c.length > 0 ? " " + c : c);
|
|
304
1644
|
continue;
|
|
305
1645
|
}
|
|
306
|
-
let
|
|
307
|
-
if (!
|
|
308
|
-
if (!
|
|
1646
|
+
let m = !!p, h = r(m ? f.substring(0, p) : f);
|
|
1647
|
+
if (!h) {
|
|
1648
|
+
if (!m) {
|
|
309
1649
|
c = t + (c.length > 0 ? " " + c : c);
|
|
310
1650
|
continue;
|
|
311
1651
|
}
|
|
312
|
-
if (
|
|
1652
|
+
if (h = r(f), !h) {
|
|
313
1653
|
c = t + (c.length > 0 ? " " + c : c);
|
|
314
1654
|
continue;
|
|
315
1655
|
}
|
|
316
|
-
|
|
1656
|
+
m = !1;
|
|
317
1657
|
}
|
|
318
|
-
let
|
|
319
|
-
if (o.indexOf(
|
|
320
|
-
o.push(
|
|
321
|
-
let v = i(
|
|
1658
|
+
let g = u.length === 0 ? "" : u.length === 1 ? u[0] : a(u).join(":"), _ = d ? g + mt : g, ee = _ + h;
|
|
1659
|
+
if (o.indexOf(ee) > -1) continue;
|
|
1660
|
+
o.push(ee);
|
|
1661
|
+
let v = i(h, m);
|
|
322
1662
|
for (let e = 0; e < v.length; ++e) {
|
|
323
1663
|
let t = v[e];
|
|
324
|
-
o.push(
|
|
1664
|
+
o.push(_ + t);
|
|
325
1665
|
}
|
|
326
1666
|
c = t + (c.length > 0 ? " " + c : c);
|
|
327
1667
|
}
|
|
328
1668
|
return c;
|
|
329
|
-
},
|
|
1669
|
+
}, Ct = (...e) => {
|
|
330
1670
|
let t = 0, n, r, i = "";
|
|
331
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
1671
|
+
for (; t < e.length;) (n = e[t++]) && (r = wt(n)) && (i && (i += " "), i += r);
|
|
332
1672
|
return i;
|
|
333
|
-
},
|
|
1673
|
+
}, wt = (e) => {
|
|
334
1674
|
if (typeof e == "string") return e;
|
|
335
1675
|
let t, n = "";
|
|
336
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
1676
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = wt(e[r])) && (n && (n += " "), n += t);
|
|
337
1677
|
return n;
|
|
338
|
-
},
|
|
339
|
-
let n, r, i, a, o = (o) => (n =
|
|
1678
|
+
}, Tt = (e, ...t) => {
|
|
1679
|
+
let n, r, i, a, o = (o) => (n = bt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
340
1680
|
let t = r(e);
|
|
341
1681
|
if (t) return t;
|
|
342
|
-
let a =
|
|
1682
|
+
let a = St(e, n);
|
|
343
1683
|
return i(e, a), a;
|
|
344
1684
|
};
|
|
345
|
-
return a = o, (...e) => a(
|
|
346
|
-
},
|
|
347
|
-
let t = (t) => t[e] ||
|
|
1685
|
+
return a = o, (...e) => a(Ct(...e));
|
|
1686
|
+
}, Et = [], U = (e) => {
|
|
1687
|
+
let t = (t) => t[e] || Et;
|
|
348
1688
|
return t.isThemeGetter = !0, t;
|
|
349
|
-
},
|
|
350
|
-
let r =
|
|
1689
|
+
}, Dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ot = /^\((?:(\w[\w-]*):)?(.+)\)$/i, kt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, At = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Mt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Nt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => kt.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), K = (e) => !!e && Number.isInteger(Number(e)), Ft = (e) => e.endsWith("%") && G(e.slice(0, -1)), q = (e) => At.test(e), It = () => !0, Lt = (e) => jt.test(e) && !Mt.test(e), Rt = () => !1, zt = (e) => Nt.test(e), Bt = (e) => Pt.test(e), Vt = (e) => !J(e) && !X(e), Ht = (e) => Z(e, an, Rt), J = (e) => Dt.test(e), Y = (e) => Z(e, on, Lt), Ut = (e) => Z(e, sn, G), Wt = (e) => Z(e, ln, It), Gt = (e) => Z(e, cn, Rt), Kt = (e) => Z(e, nn, Rt), qt = (e) => Z(e, rn, Bt), Jt = (e) => Z(e, un, zt), X = (e) => Ot.test(e), Yt = (e) => Q(e, on), Xt = (e) => Q(e, cn), Zt = (e) => Q(e, nn), Qt = (e) => Q(e, an), $t = (e) => Q(e, rn), en = (e) => Q(e, un, !0), tn = (e) => Q(e, ln, !0), Z = (e, t, n) => {
|
|
1690
|
+
let r = Dt.exec(e);
|
|
351
1691
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
352
|
-
},
|
|
353
|
-
let r =
|
|
1692
|
+
}, Q = (e, t, n = !1) => {
|
|
1693
|
+
let r = Ot.exec(e);
|
|
354
1694
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
355
|
-
},
|
|
356
|
-
let e =
|
|
1695
|
+
}, nn = (e) => e === "position" || e === "percentage", rn = (e) => e === "image" || e === "url", an = (e) => e === "length" || e === "size" || e === "bg-size", on = (e) => e === "length", sn = (e) => e === "number", cn = (e) => e === "family-name", ln = (e) => e === "number" || e === "weight", un = (e) => e === "shadow", dn = /* @__PURE__ */ Tt(() => {
|
|
1696
|
+
let e = U("color"), t = U("font"), n = U("text"), r = U("font-weight"), i = U("tracking"), a = U("leading"), o = U("breakpoint"), s = U("container"), c = U("spacing"), l = U("radius"), u = U("shadow"), d = U("inset-shadow"), f = U("text-shadow"), p = U("drop-shadow"), m = U("blur"), h = U("perspective"), g = U("aspect"), _ = U("ease"), ee = U("animate"), v = () => [
|
|
357
1697
|
"auto",
|
|
358
1698
|
"avoid",
|
|
359
1699
|
"all",
|
|
@@ -379,56 +1719,56 @@ var h = (e, t) => {
|
|
|
379
1719
|
], te = () => [
|
|
380
1720
|
...y(),
|
|
381
1721
|
X,
|
|
382
|
-
|
|
383
|
-
],
|
|
1722
|
+
J
|
|
1723
|
+
], b = () => [
|
|
384
1724
|
"auto",
|
|
385
1725
|
"hidden",
|
|
386
1726
|
"clip",
|
|
387
1727
|
"visible",
|
|
388
1728
|
"scroll"
|
|
389
|
-
],
|
|
1729
|
+
], ne = () => [
|
|
390
1730
|
"auto",
|
|
391
1731
|
"contain",
|
|
392
1732
|
"none"
|
|
393
1733
|
], x = () => [
|
|
394
1734
|
X,
|
|
395
|
-
|
|
1735
|
+
J,
|
|
396
1736
|
c
|
|
397
1737
|
], S = () => [
|
|
398
|
-
|
|
1738
|
+
W,
|
|
399
1739
|
"full",
|
|
400
1740
|
"auto",
|
|
401
1741
|
...x()
|
|
402
1742
|
], re = () => [
|
|
403
|
-
|
|
1743
|
+
K,
|
|
404
1744
|
"none",
|
|
405
1745
|
"subgrid",
|
|
406
1746
|
X,
|
|
407
|
-
|
|
408
|
-
],
|
|
1747
|
+
J
|
|
1748
|
+
], ie = () => [
|
|
409
1749
|
"auto",
|
|
410
1750
|
{ span: [
|
|
411
1751
|
"full",
|
|
412
|
-
|
|
1752
|
+
K,
|
|
413
1753
|
X,
|
|
414
|
-
|
|
1754
|
+
J
|
|
415
1755
|
] },
|
|
416
|
-
|
|
1756
|
+
K,
|
|
417
1757
|
X,
|
|
418
|
-
|
|
419
|
-
],
|
|
420
|
-
|
|
1758
|
+
J
|
|
1759
|
+
], C = () => [
|
|
1760
|
+
K,
|
|
421
1761
|
"auto",
|
|
422
1762
|
X,
|
|
423
|
-
|
|
424
|
-
],
|
|
1763
|
+
J
|
|
1764
|
+
], ae = () => [
|
|
425
1765
|
"auto",
|
|
426
1766
|
"min",
|
|
427
1767
|
"max",
|
|
428
1768
|
"fr",
|
|
429
1769
|
X,
|
|
430
|
-
|
|
431
|
-
],
|
|
1770
|
+
J
|
|
1771
|
+
], w = () => [
|
|
432
1772
|
"start",
|
|
433
1773
|
"end",
|
|
434
1774
|
"center",
|
|
@@ -439,15 +1779,15 @@ var h = (e, t) => {
|
|
|
439
1779
|
"baseline",
|
|
440
1780
|
"center-safe",
|
|
441
1781
|
"end-safe"
|
|
442
|
-
],
|
|
1782
|
+
], T = () => [
|
|
443
1783
|
"start",
|
|
444
1784
|
"end",
|
|
445
1785
|
"center",
|
|
446
1786
|
"stretch",
|
|
447
1787
|
"center-safe",
|
|
448
1788
|
"end-safe"
|
|
449
|
-
],
|
|
450
|
-
|
|
1789
|
+
], E = () => ["auto", ...x()], D = () => [
|
|
1790
|
+
W,
|
|
451
1791
|
"auto",
|
|
452
1792
|
"full",
|
|
453
1793
|
"dvw",
|
|
@@ -460,8 +1800,8 @@ var h = (e, t) => {
|
|
|
460
1800
|
"max",
|
|
461
1801
|
"fit",
|
|
462
1802
|
...x()
|
|
463
|
-
],
|
|
464
|
-
|
|
1803
|
+
], O = () => [
|
|
1804
|
+
W,
|
|
465
1805
|
"screen",
|
|
466
1806
|
"full",
|
|
467
1807
|
"dvw",
|
|
@@ -471,8 +1811,8 @@ var h = (e, t) => {
|
|
|
471
1811
|
"max",
|
|
472
1812
|
"fit",
|
|
473
1813
|
...x()
|
|
474
|
-
],
|
|
475
|
-
|
|
1814
|
+
], k = () => [
|
|
1815
|
+
W,
|
|
476
1816
|
"screen",
|
|
477
1817
|
"full",
|
|
478
1818
|
"lh",
|
|
@@ -483,50 +1823,50 @@ var h = (e, t) => {
|
|
|
483
1823
|
"max",
|
|
484
1824
|
"fit",
|
|
485
1825
|
...x()
|
|
486
|
-
],
|
|
1826
|
+
], A = () => [
|
|
487
1827
|
e,
|
|
488
1828
|
X,
|
|
489
|
-
|
|
490
|
-
],
|
|
1829
|
+
J
|
|
1830
|
+
], oe = () => [
|
|
491
1831
|
...y(),
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
{ position: [X,
|
|
495
|
-
],
|
|
1832
|
+
Zt,
|
|
1833
|
+
Kt,
|
|
1834
|
+
{ position: [X, J] }
|
|
1835
|
+
], j = () => ["no-repeat", { repeat: [
|
|
496
1836
|
"",
|
|
497
1837
|
"x",
|
|
498
1838
|
"y",
|
|
499
1839
|
"space",
|
|
500
1840
|
"round"
|
|
501
|
-
] }],
|
|
1841
|
+
] }], se = () => [
|
|
502
1842
|
"auto",
|
|
503
1843
|
"cover",
|
|
504
1844
|
"contain",
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
{ size: [X,
|
|
508
|
-
],
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
],
|
|
1845
|
+
Qt,
|
|
1846
|
+
Ht,
|
|
1847
|
+
{ size: [X, J] }
|
|
1848
|
+
], ce = () => [
|
|
1849
|
+
Ft,
|
|
1850
|
+
Yt,
|
|
1851
|
+
Y
|
|
1852
|
+
], M = () => [
|
|
513
1853
|
"",
|
|
514
1854
|
"none",
|
|
515
1855
|
"full",
|
|
516
1856
|
l,
|
|
517
1857
|
X,
|
|
518
|
-
q
|
|
519
|
-
], F = () => [
|
|
520
|
-
"",
|
|
521
|
-
W,
|
|
522
|
-
Z,
|
|
523
1858
|
J
|
|
524
|
-
],
|
|
1859
|
+
], N = () => [
|
|
1860
|
+
"",
|
|
1861
|
+
G,
|
|
1862
|
+
Yt,
|
|
1863
|
+
Y
|
|
1864
|
+
], P = () => [
|
|
525
1865
|
"solid",
|
|
526
1866
|
"dashed",
|
|
527
1867
|
"dotted",
|
|
528
1868
|
"double"
|
|
529
|
-
],
|
|
1869
|
+
], le = () => [
|
|
530
1870
|
"normal",
|
|
531
1871
|
"multiply",
|
|
532
1872
|
"screen",
|
|
@@ -543,33 +1883,33 @@ var h = (e, t) => {
|
|
|
543
1883
|
"saturation",
|
|
544
1884
|
"color",
|
|
545
1885
|
"luminosity"
|
|
546
|
-
],
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
],
|
|
1886
|
+
], F = () => [
|
|
1887
|
+
G,
|
|
1888
|
+
Ft,
|
|
1889
|
+
Zt,
|
|
1890
|
+
Kt
|
|
1891
|
+
], I = () => [
|
|
552
1892
|
"",
|
|
553
1893
|
"none",
|
|
554
|
-
|
|
1894
|
+
m,
|
|
555
1895
|
X,
|
|
556
|
-
|
|
557
|
-
],
|
|
1896
|
+
J
|
|
1897
|
+
], L = () => [
|
|
558
1898
|
"none",
|
|
559
|
-
|
|
1899
|
+
G,
|
|
560
1900
|
X,
|
|
561
|
-
|
|
562
|
-
],
|
|
1901
|
+
J
|
|
1902
|
+
], R = () => [
|
|
563
1903
|
"none",
|
|
564
|
-
|
|
1904
|
+
G,
|
|
565
1905
|
X,
|
|
566
|
-
|
|
567
|
-
],
|
|
568
|
-
|
|
1906
|
+
J
|
|
1907
|
+
], ue = () => [
|
|
1908
|
+
G,
|
|
569
1909
|
X,
|
|
570
|
-
|
|
571
|
-
],
|
|
572
|
-
|
|
1910
|
+
J
|
|
1911
|
+
], z = () => [
|
|
1912
|
+
W,
|
|
573
1913
|
"full",
|
|
574
1914
|
...x()
|
|
575
1915
|
];
|
|
@@ -583,17 +1923,17 @@ var h = (e, t) => {
|
|
|
583
1923
|
"bounce"
|
|
584
1924
|
],
|
|
585
1925
|
aspect: ["video"],
|
|
586
|
-
blur: [
|
|
587
|
-
breakpoint: [
|
|
588
|
-
color: [
|
|
589
|
-
container: [
|
|
590
|
-
"drop-shadow": [
|
|
1926
|
+
blur: [q],
|
|
1927
|
+
breakpoint: [q],
|
|
1928
|
+
color: [It],
|
|
1929
|
+
container: [q],
|
|
1930
|
+
"drop-shadow": [q],
|
|
591
1931
|
ease: [
|
|
592
1932
|
"in",
|
|
593
1933
|
"out",
|
|
594
1934
|
"in-out"
|
|
595
1935
|
],
|
|
596
|
-
font: [
|
|
1936
|
+
font: [Vt],
|
|
597
1937
|
"font-weight": [
|
|
598
1938
|
"thin",
|
|
599
1939
|
"extralight",
|
|
@@ -605,7 +1945,7 @@ var h = (e, t) => {
|
|
|
605
1945
|
"extrabold",
|
|
606
1946
|
"black"
|
|
607
1947
|
],
|
|
608
|
-
"inset-shadow": [
|
|
1948
|
+
"inset-shadow": [q],
|
|
609
1949
|
leading: [
|
|
610
1950
|
"none",
|
|
611
1951
|
"tight",
|
|
@@ -622,11 +1962,11 @@ var h = (e, t) => {
|
|
|
622
1962
|
"distant",
|
|
623
1963
|
"none"
|
|
624
1964
|
],
|
|
625
|
-
radius: [
|
|
626
|
-
shadow: [
|
|
627
|
-
spacing: ["px",
|
|
628
|
-
text: [
|
|
629
|
-
"text-shadow": [
|
|
1965
|
+
radius: [q],
|
|
1966
|
+
shadow: [q],
|
|
1967
|
+
spacing: ["px", G],
|
|
1968
|
+
text: [q],
|
|
1969
|
+
"text-shadow": [q],
|
|
630
1970
|
tracking: [
|
|
631
1971
|
"tighter",
|
|
632
1972
|
"tight",
|
|
@@ -640,15 +1980,15 @@ var h = (e, t) => {
|
|
|
640
1980
|
aspect: [{ aspect: [
|
|
641
1981
|
"auto",
|
|
642
1982
|
"square",
|
|
643
|
-
|
|
644
|
-
|
|
1983
|
+
W,
|
|
1984
|
+
J,
|
|
645
1985
|
X,
|
|
646
|
-
|
|
1986
|
+
g
|
|
647
1987
|
] }],
|
|
648
1988
|
container: ["container"],
|
|
649
1989
|
columns: [{ columns: [
|
|
650
|
-
|
|
651
|
-
|
|
1990
|
+
G,
|
|
1991
|
+
J,
|
|
652
1992
|
X,
|
|
653
1993
|
s
|
|
654
1994
|
] }],
|
|
@@ -710,12 +2050,12 @@ var h = (e, t) => {
|
|
|
710
2050
|
"scale-down"
|
|
711
2051
|
] }],
|
|
712
2052
|
"object-position": [{ object: te() }],
|
|
713
|
-
overflow: [{ overflow:
|
|
714
|
-
"overflow-x": [{ "overflow-x":
|
|
715
|
-
"overflow-y": [{ "overflow-y":
|
|
716
|
-
overscroll: [{ overscroll:
|
|
717
|
-
"overscroll-x": [{ "overscroll-x":
|
|
718
|
-
"overscroll-y": [{ "overscroll-y":
|
|
2053
|
+
overflow: [{ overflow: b() }],
|
|
2054
|
+
"overflow-x": [{ "overflow-x": b() }],
|
|
2055
|
+
"overflow-y": [{ "overflow-y": b() }],
|
|
2056
|
+
overscroll: [{ overscroll: ne() }],
|
|
2057
|
+
"overscroll-x": [{ "overscroll-x": ne() }],
|
|
2058
|
+
"overscroll-y": [{ "overscroll-y": ne() }],
|
|
719
2059
|
position: [
|
|
720
2060
|
"static",
|
|
721
2061
|
"fixed",
|
|
@@ -746,13 +2086,13 @@ var h = (e, t) => {
|
|
|
746
2086
|
"collapse"
|
|
747
2087
|
],
|
|
748
2088
|
z: [{ z: [
|
|
749
|
-
|
|
2089
|
+
K,
|
|
750
2090
|
"auto",
|
|
751
2091
|
X,
|
|
752
|
-
|
|
2092
|
+
J
|
|
753
2093
|
] }],
|
|
754
2094
|
basis: [{ basis: [
|
|
755
|
-
|
|
2095
|
+
W,
|
|
756
2096
|
"full",
|
|
757
2097
|
"auto",
|
|
758
2098
|
s,
|
|
@@ -770,41 +2110,41 @@ var h = (e, t) => {
|
|
|
770
2110
|
"wrap-reverse"
|
|
771
2111
|
] }],
|
|
772
2112
|
flex: [{ flex: [
|
|
2113
|
+
G,
|
|
773
2114
|
W,
|
|
774
|
-
U,
|
|
775
2115
|
"auto",
|
|
776
2116
|
"initial",
|
|
777
2117
|
"none",
|
|
778
|
-
|
|
2118
|
+
J
|
|
779
2119
|
] }],
|
|
780
2120
|
grow: [{ grow: [
|
|
781
2121
|
"",
|
|
782
|
-
|
|
2122
|
+
G,
|
|
783
2123
|
X,
|
|
784
|
-
|
|
2124
|
+
J
|
|
785
2125
|
] }],
|
|
786
2126
|
shrink: [{ shrink: [
|
|
787
2127
|
"",
|
|
788
|
-
|
|
2128
|
+
G,
|
|
789
2129
|
X,
|
|
790
|
-
|
|
2130
|
+
J
|
|
791
2131
|
] }],
|
|
792
2132
|
order: [{ order: [
|
|
793
|
-
|
|
2133
|
+
K,
|
|
794
2134
|
"first",
|
|
795
2135
|
"last",
|
|
796
2136
|
"none",
|
|
797
2137
|
X,
|
|
798
|
-
|
|
2138
|
+
J
|
|
799
2139
|
] }],
|
|
800
2140
|
"grid-cols": [{ "grid-cols": re() }],
|
|
801
|
-
"col-start-end": [{ col:
|
|
802
|
-
"col-start": [{ "col-start":
|
|
803
|
-
"col-end": [{ "col-end":
|
|
2141
|
+
"col-start-end": [{ col: ie() }],
|
|
2142
|
+
"col-start": [{ "col-start": C() }],
|
|
2143
|
+
"col-end": [{ "col-end": C() }],
|
|
804
2144
|
"grid-rows": [{ "grid-rows": re() }],
|
|
805
|
-
"row-start-end": [{ row:
|
|
806
|
-
"row-start": [{ "row-start":
|
|
807
|
-
"row-end": [{ "row-end":
|
|
2145
|
+
"row-start-end": [{ row: ie() }],
|
|
2146
|
+
"row-start": [{ "row-start": C() }],
|
|
2147
|
+
"row-end": [{ "row-end": C() }],
|
|
808
2148
|
"grid-flow": [{ "grid-flow": [
|
|
809
2149
|
"row",
|
|
810
2150
|
"col",
|
|
@@ -812,24 +2152,24 @@ var h = (e, t) => {
|
|
|
812
2152
|
"row-dense",
|
|
813
2153
|
"col-dense"
|
|
814
2154
|
] }],
|
|
815
|
-
"auto-cols": [{ "auto-cols":
|
|
816
|
-
"auto-rows": [{ "auto-rows":
|
|
2155
|
+
"auto-cols": [{ "auto-cols": ae() }],
|
|
2156
|
+
"auto-rows": [{ "auto-rows": ae() }],
|
|
817
2157
|
gap: [{ gap: x() }],
|
|
818
2158
|
"gap-x": [{ "gap-x": x() }],
|
|
819
2159
|
"gap-y": [{ "gap-y": x() }],
|
|
820
|
-
"justify-content": [{ justify: [...
|
|
821
|
-
"justify-items": [{ "justify-items": [...
|
|
822
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
823
|
-
"align-content": [{ content: ["normal", ...
|
|
824
|
-
"align-items": [{ items: [...
|
|
2160
|
+
"justify-content": [{ justify: [...w(), "normal"] }],
|
|
2161
|
+
"justify-items": [{ "justify-items": [...T(), "normal"] }],
|
|
2162
|
+
"justify-self": [{ "justify-self": ["auto", ...T()] }],
|
|
2163
|
+
"align-content": [{ content: ["normal", ...w()] }],
|
|
2164
|
+
"align-items": [{ items: [...T(), { baseline: ["", "last"] }] }],
|
|
825
2165
|
"align-self": [{ self: [
|
|
826
2166
|
"auto",
|
|
827
|
-
...
|
|
2167
|
+
...T(),
|
|
828
2168
|
{ baseline: ["", "last"] }
|
|
829
2169
|
] }],
|
|
830
|
-
"place-content": [{ "place-content":
|
|
831
|
-
"place-items": [{ "place-items": [...
|
|
832
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
2170
|
+
"place-content": [{ "place-content": w() }],
|
|
2171
|
+
"place-items": [{ "place-items": [...T(), "baseline"] }],
|
|
2172
|
+
"place-self": [{ "place-self": ["auto", ...T()] }],
|
|
833
2173
|
p: [{ p: x() }],
|
|
834
2174
|
px: [{ px: x() }],
|
|
835
2175
|
py: [{ py: x() }],
|
|
@@ -841,38 +2181,38 @@ var h = (e, t) => {
|
|
|
841
2181
|
pr: [{ pr: x() }],
|
|
842
2182
|
pb: [{ pb: x() }],
|
|
843
2183
|
pl: [{ pl: x() }],
|
|
844
|
-
m: [{ m:
|
|
845
|
-
mx: [{ mx:
|
|
846
|
-
my: [{ my:
|
|
847
|
-
ms: [{ ms:
|
|
848
|
-
me: [{ me:
|
|
849
|
-
mbs: [{ mbs:
|
|
850
|
-
mbe: [{ mbe:
|
|
851
|
-
mt: [{ mt:
|
|
852
|
-
mr: [{ mr:
|
|
853
|
-
mb: [{ mb:
|
|
854
|
-
ml: [{ ml:
|
|
2184
|
+
m: [{ m: E() }],
|
|
2185
|
+
mx: [{ mx: E() }],
|
|
2186
|
+
my: [{ my: E() }],
|
|
2187
|
+
ms: [{ ms: E() }],
|
|
2188
|
+
me: [{ me: E() }],
|
|
2189
|
+
mbs: [{ mbs: E() }],
|
|
2190
|
+
mbe: [{ mbe: E() }],
|
|
2191
|
+
mt: [{ mt: E() }],
|
|
2192
|
+
mr: [{ mr: E() }],
|
|
2193
|
+
mb: [{ mb: E() }],
|
|
2194
|
+
ml: [{ ml: E() }],
|
|
855
2195
|
"space-x": [{ "space-x": x() }],
|
|
856
2196
|
"space-x-reverse": ["space-x-reverse"],
|
|
857
2197
|
"space-y": [{ "space-y": x() }],
|
|
858
2198
|
"space-y-reverse": ["space-y-reverse"],
|
|
859
|
-
size: [{ size:
|
|
860
|
-
"inline-size": [{ inline: ["auto", ...
|
|
861
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
862
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
863
|
-
"block-size": [{ block: ["auto", ...
|
|
864
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
865
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
2199
|
+
size: [{ size: D() }],
|
|
2200
|
+
"inline-size": [{ inline: ["auto", ...O()] }],
|
|
2201
|
+
"min-inline-size": [{ "min-inline": ["auto", ...O()] }],
|
|
2202
|
+
"max-inline-size": [{ "max-inline": ["none", ...O()] }],
|
|
2203
|
+
"block-size": [{ block: ["auto", ...k()] }],
|
|
2204
|
+
"min-block-size": [{ "min-block": ["auto", ...k()] }],
|
|
2205
|
+
"max-block-size": [{ "max-block": ["none", ...k()] }],
|
|
866
2206
|
w: [{ w: [
|
|
867
2207
|
s,
|
|
868
2208
|
"screen",
|
|
869
|
-
...
|
|
2209
|
+
...D()
|
|
870
2210
|
] }],
|
|
871
2211
|
"min-w": [{ "min-w": [
|
|
872
2212
|
s,
|
|
873
2213
|
"screen",
|
|
874
2214
|
"none",
|
|
875
|
-
...
|
|
2215
|
+
...D()
|
|
876
2216
|
] }],
|
|
877
2217
|
"max-w": [{ "max-w": [
|
|
878
2218
|
s,
|
|
@@ -880,36 +2220,36 @@ var h = (e, t) => {
|
|
|
880
2220
|
"none",
|
|
881
2221
|
"prose",
|
|
882
2222
|
{ screen: [o] },
|
|
883
|
-
...
|
|
2223
|
+
...D()
|
|
884
2224
|
] }],
|
|
885
2225
|
h: [{ h: [
|
|
886
2226
|
"screen",
|
|
887
2227
|
"lh",
|
|
888
|
-
...
|
|
2228
|
+
...D()
|
|
889
2229
|
] }],
|
|
890
2230
|
"min-h": [{ "min-h": [
|
|
891
2231
|
"screen",
|
|
892
2232
|
"lh",
|
|
893
2233
|
"none",
|
|
894
|
-
...
|
|
2234
|
+
...D()
|
|
895
2235
|
] }],
|
|
896
2236
|
"max-h": [{ "max-h": [
|
|
897
2237
|
"screen",
|
|
898
2238
|
"lh",
|
|
899
|
-
...
|
|
2239
|
+
...D()
|
|
900
2240
|
] }],
|
|
901
2241
|
"font-size": [{ text: [
|
|
902
2242
|
"base",
|
|
903
2243
|
n,
|
|
904
|
-
|
|
905
|
-
|
|
2244
|
+
Yt,
|
|
2245
|
+
Y
|
|
906
2246
|
] }],
|
|
907
2247
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
908
2248
|
"font-style": ["italic", "not-italic"],
|
|
909
2249
|
"font-weight": [{ font: [
|
|
910
2250
|
r,
|
|
911
|
-
|
|
912
|
-
|
|
2251
|
+
tn,
|
|
2252
|
+
Wt
|
|
913
2253
|
] }],
|
|
914
2254
|
"font-stretch": [{ "font-stretch": [
|
|
915
2255
|
"ultra-condensed",
|
|
@@ -921,15 +2261,15 @@ var h = (e, t) => {
|
|
|
921
2261
|
"expanded",
|
|
922
2262
|
"extra-expanded",
|
|
923
2263
|
"ultra-expanded",
|
|
924
|
-
|
|
925
|
-
|
|
2264
|
+
Ft,
|
|
2265
|
+
J
|
|
926
2266
|
] }],
|
|
927
2267
|
"font-family": [{ font: [
|
|
928
|
-
|
|
929
|
-
|
|
2268
|
+
Xt,
|
|
2269
|
+
Gt,
|
|
930
2270
|
t
|
|
931
2271
|
] }],
|
|
932
|
-
"font-features": [{ "font-features": [
|
|
2272
|
+
"font-features": [{ "font-features": [J] }],
|
|
933
2273
|
"fvn-normal": ["normal-nums"],
|
|
934
2274
|
"fvn-ordinal": ["ordinal"],
|
|
935
2275
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -939,19 +2279,19 @@ var h = (e, t) => {
|
|
|
939
2279
|
tracking: [{ tracking: [
|
|
940
2280
|
i,
|
|
941
2281
|
X,
|
|
942
|
-
|
|
2282
|
+
J
|
|
943
2283
|
] }],
|
|
944
2284
|
"line-clamp": [{ "line-clamp": [
|
|
945
|
-
|
|
2285
|
+
G,
|
|
946
2286
|
"none",
|
|
947
2287
|
X,
|
|
948
|
-
|
|
2288
|
+
Ut
|
|
949
2289
|
] }],
|
|
950
2290
|
leading: [{ leading: [a, ...x()] }],
|
|
951
2291
|
"list-image": [{ "list-image": [
|
|
952
2292
|
"none",
|
|
953
2293
|
X,
|
|
954
|
-
|
|
2294
|
+
J
|
|
955
2295
|
] }],
|
|
956
2296
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
957
2297
|
"list-style-type": [{ list: [
|
|
@@ -959,7 +2299,7 @@ var h = (e, t) => {
|
|
|
959
2299
|
"decimal",
|
|
960
2300
|
"none",
|
|
961
2301
|
X,
|
|
962
|
-
|
|
2302
|
+
J
|
|
963
2303
|
] }],
|
|
964
2304
|
"text-alignment": [{ text: [
|
|
965
2305
|
"left",
|
|
@@ -969,28 +2309,28 @@ var h = (e, t) => {
|
|
|
969
2309
|
"start",
|
|
970
2310
|
"end"
|
|
971
2311
|
] }],
|
|
972
|
-
"placeholder-color": [{ placeholder:
|
|
973
|
-
"text-color": [{ text:
|
|
2312
|
+
"placeholder-color": [{ placeholder: A() }],
|
|
2313
|
+
"text-color": [{ text: A() }],
|
|
974
2314
|
"text-decoration": [
|
|
975
2315
|
"underline",
|
|
976
2316
|
"overline",
|
|
977
2317
|
"line-through",
|
|
978
2318
|
"no-underline"
|
|
979
2319
|
],
|
|
980
|
-
"text-decoration-style": [{ decoration: [...
|
|
2320
|
+
"text-decoration-style": [{ decoration: [...P(), "wavy"] }],
|
|
981
2321
|
"text-decoration-thickness": [{ decoration: [
|
|
982
|
-
|
|
2322
|
+
G,
|
|
983
2323
|
"from-font",
|
|
984
2324
|
"auto",
|
|
985
2325
|
X,
|
|
986
|
-
|
|
2326
|
+
Y
|
|
987
2327
|
] }],
|
|
988
|
-
"text-decoration-color": [{ decoration:
|
|
2328
|
+
"text-decoration-color": [{ decoration: A() }],
|
|
989
2329
|
"underline-offset": [{ "underline-offset": [
|
|
990
|
-
|
|
2330
|
+
G,
|
|
991
2331
|
"auto",
|
|
992
2332
|
X,
|
|
993
|
-
|
|
2333
|
+
J
|
|
994
2334
|
] }],
|
|
995
2335
|
"text-transform": [
|
|
996
2336
|
"uppercase",
|
|
@@ -1020,7 +2360,7 @@ var h = (e, t) => {
|
|
|
1020
2360
|
"sub",
|
|
1021
2361
|
"super",
|
|
1022
2362
|
X,
|
|
1023
|
-
|
|
2363
|
+
J
|
|
1024
2364
|
] }],
|
|
1025
2365
|
whitespace: [{ whitespace: [
|
|
1026
2366
|
"normal",
|
|
@@ -1049,7 +2389,7 @@ var h = (e, t) => {
|
|
|
1049
2389
|
content: [{ content: [
|
|
1050
2390
|
"none",
|
|
1051
2391
|
X,
|
|
1052
|
-
|
|
2392
|
+
J
|
|
1053
2393
|
] }],
|
|
1054
2394
|
"bg-attachment": [{ bg: [
|
|
1055
2395
|
"fixed",
|
|
@@ -1067,9 +2407,9 @@ var h = (e, t) => {
|
|
|
1067
2407
|
"padding",
|
|
1068
2408
|
"content"
|
|
1069
2409
|
] }],
|
|
1070
|
-
"bg-position": [{ bg:
|
|
1071
|
-
"bg-repeat": [{ bg:
|
|
1072
|
-
"bg-size": [{ bg:
|
|
2410
|
+
"bg-position": [{ bg: oe() }],
|
|
2411
|
+
"bg-repeat": [{ bg: j() }],
|
|
2412
|
+
"bg-size": [{ bg: se() }],
|
|
1073
2413
|
"bg-image": [{ bg: [
|
|
1074
2414
|
"none",
|
|
1075
2415
|
{
|
|
@@ -1084,140 +2424,140 @@ var h = (e, t) => {
|
|
|
1084
2424
|
"l",
|
|
1085
2425
|
"tl"
|
|
1086
2426
|
] },
|
|
1087
|
-
|
|
2427
|
+
K,
|
|
1088
2428
|
X,
|
|
1089
|
-
|
|
2429
|
+
J
|
|
1090
2430
|
],
|
|
1091
2431
|
radial: [
|
|
1092
2432
|
"",
|
|
1093
2433
|
X,
|
|
1094
|
-
|
|
2434
|
+
J
|
|
1095
2435
|
],
|
|
1096
2436
|
conic: [
|
|
1097
|
-
|
|
2437
|
+
K,
|
|
1098
2438
|
X,
|
|
1099
|
-
|
|
2439
|
+
J
|
|
1100
2440
|
]
|
|
1101
2441
|
},
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
] }],
|
|
1105
|
-
"bg-color": [{ bg:
|
|
1106
|
-
"gradient-from-pos": [{ from:
|
|
1107
|
-
"gradient-via-pos": [{ via:
|
|
1108
|
-
"gradient-to-pos": [{ to:
|
|
1109
|
-
"gradient-from": [{ from:
|
|
1110
|
-
"gradient-via": [{ via:
|
|
1111
|
-
"gradient-to": [{ to:
|
|
1112
|
-
rounded: [{ rounded:
|
|
1113
|
-
"rounded-s": [{ "rounded-s":
|
|
1114
|
-
"rounded-e": [{ "rounded-e":
|
|
1115
|
-
"rounded-t": [{ "rounded-t":
|
|
1116
|
-
"rounded-r": [{ "rounded-r":
|
|
1117
|
-
"rounded-b": [{ "rounded-b":
|
|
1118
|
-
"rounded-l": [{ "rounded-l":
|
|
1119
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1120
|
-
"rounded-se": [{ "rounded-se":
|
|
1121
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1122
|
-
"rounded-es": [{ "rounded-es":
|
|
1123
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1124
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1125
|
-
"rounded-br": [{ "rounded-br":
|
|
1126
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1127
|
-
"border-w": [{ border:
|
|
1128
|
-
"border-w-x": [{ "border-x":
|
|
1129
|
-
"border-w-y": [{ "border-y":
|
|
1130
|
-
"border-w-s": [{ "border-s":
|
|
1131
|
-
"border-w-e": [{ "border-e":
|
|
1132
|
-
"border-w-bs": [{ "border-bs":
|
|
1133
|
-
"border-w-be": [{ "border-be":
|
|
1134
|
-
"border-w-t": [{ "border-t":
|
|
1135
|
-
"border-w-r": [{ "border-r":
|
|
1136
|
-
"border-w-b": [{ "border-b":
|
|
1137
|
-
"border-w-l": [{ "border-l":
|
|
1138
|
-
"divide-x": [{ "divide-x":
|
|
2442
|
+
$t,
|
|
2443
|
+
qt
|
|
2444
|
+
] }],
|
|
2445
|
+
"bg-color": [{ bg: A() }],
|
|
2446
|
+
"gradient-from-pos": [{ from: ce() }],
|
|
2447
|
+
"gradient-via-pos": [{ via: ce() }],
|
|
2448
|
+
"gradient-to-pos": [{ to: ce() }],
|
|
2449
|
+
"gradient-from": [{ from: A() }],
|
|
2450
|
+
"gradient-via": [{ via: A() }],
|
|
2451
|
+
"gradient-to": [{ to: A() }],
|
|
2452
|
+
rounded: [{ rounded: M() }],
|
|
2453
|
+
"rounded-s": [{ "rounded-s": M() }],
|
|
2454
|
+
"rounded-e": [{ "rounded-e": M() }],
|
|
2455
|
+
"rounded-t": [{ "rounded-t": M() }],
|
|
2456
|
+
"rounded-r": [{ "rounded-r": M() }],
|
|
2457
|
+
"rounded-b": [{ "rounded-b": M() }],
|
|
2458
|
+
"rounded-l": [{ "rounded-l": M() }],
|
|
2459
|
+
"rounded-ss": [{ "rounded-ss": M() }],
|
|
2460
|
+
"rounded-se": [{ "rounded-se": M() }],
|
|
2461
|
+
"rounded-ee": [{ "rounded-ee": M() }],
|
|
2462
|
+
"rounded-es": [{ "rounded-es": M() }],
|
|
2463
|
+
"rounded-tl": [{ "rounded-tl": M() }],
|
|
2464
|
+
"rounded-tr": [{ "rounded-tr": M() }],
|
|
2465
|
+
"rounded-br": [{ "rounded-br": M() }],
|
|
2466
|
+
"rounded-bl": [{ "rounded-bl": M() }],
|
|
2467
|
+
"border-w": [{ border: N() }],
|
|
2468
|
+
"border-w-x": [{ "border-x": N() }],
|
|
2469
|
+
"border-w-y": [{ "border-y": N() }],
|
|
2470
|
+
"border-w-s": [{ "border-s": N() }],
|
|
2471
|
+
"border-w-e": [{ "border-e": N() }],
|
|
2472
|
+
"border-w-bs": [{ "border-bs": N() }],
|
|
2473
|
+
"border-w-be": [{ "border-be": N() }],
|
|
2474
|
+
"border-w-t": [{ "border-t": N() }],
|
|
2475
|
+
"border-w-r": [{ "border-r": N() }],
|
|
2476
|
+
"border-w-b": [{ "border-b": N() }],
|
|
2477
|
+
"border-w-l": [{ "border-l": N() }],
|
|
2478
|
+
"divide-x": [{ "divide-x": N() }],
|
|
1139
2479
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1140
|
-
"divide-y": [{ "divide-y":
|
|
2480
|
+
"divide-y": [{ "divide-y": N() }],
|
|
1141
2481
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1142
2482
|
"border-style": [{ border: [
|
|
1143
|
-
...
|
|
2483
|
+
...P(),
|
|
1144
2484
|
"hidden",
|
|
1145
2485
|
"none"
|
|
1146
2486
|
] }],
|
|
1147
2487
|
"divide-style": [{ divide: [
|
|
1148
|
-
...
|
|
2488
|
+
...P(),
|
|
1149
2489
|
"hidden",
|
|
1150
2490
|
"none"
|
|
1151
2491
|
] }],
|
|
1152
|
-
"border-color": [{ border:
|
|
1153
|
-
"border-color-x": [{ "border-x":
|
|
1154
|
-
"border-color-y": [{ "border-y":
|
|
1155
|
-
"border-color-s": [{ "border-s":
|
|
1156
|
-
"border-color-e": [{ "border-e":
|
|
1157
|
-
"border-color-bs": [{ "border-bs":
|
|
1158
|
-
"border-color-be": [{ "border-be":
|
|
1159
|
-
"border-color-t": [{ "border-t":
|
|
1160
|
-
"border-color-r": [{ "border-r":
|
|
1161
|
-
"border-color-b": [{ "border-b":
|
|
1162
|
-
"border-color-l": [{ "border-l":
|
|
1163
|
-
"divide-color": [{ divide:
|
|
2492
|
+
"border-color": [{ border: A() }],
|
|
2493
|
+
"border-color-x": [{ "border-x": A() }],
|
|
2494
|
+
"border-color-y": [{ "border-y": A() }],
|
|
2495
|
+
"border-color-s": [{ "border-s": A() }],
|
|
2496
|
+
"border-color-e": [{ "border-e": A() }],
|
|
2497
|
+
"border-color-bs": [{ "border-bs": A() }],
|
|
2498
|
+
"border-color-be": [{ "border-be": A() }],
|
|
2499
|
+
"border-color-t": [{ "border-t": A() }],
|
|
2500
|
+
"border-color-r": [{ "border-r": A() }],
|
|
2501
|
+
"border-color-b": [{ "border-b": A() }],
|
|
2502
|
+
"border-color-l": [{ "border-l": A() }],
|
|
2503
|
+
"divide-color": [{ divide: A() }],
|
|
1164
2504
|
"outline-style": [{ outline: [
|
|
1165
|
-
...
|
|
2505
|
+
...P(),
|
|
1166
2506
|
"none",
|
|
1167
2507
|
"hidden"
|
|
1168
2508
|
] }],
|
|
1169
2509
|
"outline-offset": [{ "outline-offset": [
|
|
1170
|
-
|
|
2510
|
+
G,
|
|
1171
2511
|
X,
|
|
1172
|
-
|
|
2512
|
+
J
|
|
1173
2513
|
] }],
|
|
1174
2514
|
"outline-w": [{ outline: [
|
|
1175
2515
|
"",
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
2516
|
+
G,
|
|
2517
|
+
Yt,
|
|
2518
|
+
Y
|
|
1179
2519
|
] }],
|
|
1180
|
-
"outline-color": [{ outline:
|
|
2520
|
+
"outline-color": [{ outline: A() }],
|
|
1181
2521
|
shadow: [{ shadow: [
|
|
1182
2522
|
"",
|
|
1183
2523
|
"none",
|
|
1184
2524
|
u,
|
|
1185
|
-
|
|
1186
|
-
|
|
2525
|
+
en,
|
|
2526
|
+
Jt
|
|
1187
2527
|
] }],
|
|
1188
|
-
"shadow-color": [{ shadow:
|
|
2528
|
+
"shadow-color": [{ shadow: A() }],
|
|
1189
2529
|
"inset-shadow": [{ "inset-shadow": [
|
|
1190
2530
|
"none",
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
2531
|
+
d,
|
|
2532
|
+
en,
|
|
2533
|
+
Jt
|
|
1194
2534
|
] }],
|
|
1195
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1196
|
-
"ring-w": [{ ring:
|
|
2535
|
+
"inset-shadow-color": [{ "inset-shadow": A() }],
|
|
2536
|
+
"ring-w": [{ ring: N() }],
|
|
1197
2537
|
"ring-w-inset": ["ring-inset"],
|
|
1198
|
-
"ring-color": [{ ring:
|
|
1199
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1200
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1201
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1202
|
-
"inset-ring-color": [{ "inset-ring":
|
|
2538
|
+
"ring-color": [{ ring: A() }],
|
|
2539
|
+
"ring-offset-w": [{ "ring-offset": [G, Y] }],
|
|
2540
|
+
"ring-offset-color": [{ "ring-offset": A() }],
|
|
2541
|
+
"inset-ring-w": [{ "inset-ring": N() }],
|
|
2542
|
+
"inset-ring-color": [{ "inset-ring": A() }],
|
|
1203
2543
|
"text-shadow": [{ "text-shadow": [
|
|
1204
2544
|
"none",
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
2545
|
+
f,
|
|
2546
|
+
en,
|
|
2547
|
+
Jt
|
|
1208
2548
|
] }],
|
|
1209
|
-
"text-shadow-color": [{ "text-shadow":
|
|
2549
|
+
"text-shadow-color": [{ "text-shadow": A() }],
|
|
1210
2550
|
opacity: [{ opacity: [
|
|
1211
|
-
|
|
2551
|
+
G,
|
|
1212
2552
|
X,
|
|
1213
|
-
|
|
2553
|
+
J
|
|
1214
2554
|
] }],
|
|
1215
2555
|
"mix-blend": [{ "mix-blend": [
|
|
1216
|
-
...
|
|
2556
|
+
...le(),
|
|
1217
2557
|
"plus-darker",
|
|
1218
2558
|
"plus-lighter"
|
|
1219
2559
|
] }],
|
|
1220
|
-
"bg-blend": [{ "bg-blend":
|
|
2560
|
+
"bg-blend": [{ "bg-blend": le() }],
|
|
1221
2561
|
"mask-clip": [{ "mask-clip": [
|
|
1222
2562
|
"border",
|
|
1223
2563
|
"padding",
|
|
@@ -1232,51 +2572,51 @@ var h = (e, t) => {
|
|
|
1232
2572
|
"intersect",
|
|
1233
2573
|
"exclude"
|
|
1234
2574
|
] }],
|
|
1235
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1236
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1237
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1238
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1239
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1240
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1241
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1242
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1243
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1244
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1245
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1246
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1247
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1248
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1249
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1250
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1251
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1252
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1253
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1254
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1255
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1256
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1257
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1258
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1259
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1260
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1261
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1262
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1263
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1264
|
-
"mask-image-radial": [{ "mask-radial": [X,
|
|
1265
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1266
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1267
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1268
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
2575
|
+
"mask-image-linear-pos": [{ "mask-linear": [G] }],
|
|
2576
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": F() }],
|
|
2577
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": F() }],
|
|
2578
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": A() }],
|
|
2579
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": A() }],
|
|
2580
|
+
"mask-image-t-from-pos": [{ "mask-t-from": F() }],
|
|
2581
|
+
"mask-image-t-to-pos": [{ "mask-t-to": F() }],
|
|
2582
|
+
"mask-image-t-from-color": [{ "mask-t-from": A() }],
|
|
2583
|
+
"mask-image-t-to-color": [{ "mask-t-to": A() }],
|
|
2584
|
+
"mask-image-r-from-pos": [{ "mask-r-from": F() }],
|
|
2585
|
+
"mask-image-r-to-pos": [{ "mask-r-to": F() }],
|
|
2586
|
+
"mask-image-r-from-color": [{ "mask-r-from": A() }],
|
|
2587
|
+
"mask-image-r-to-color": [{ "mask-r-to": A() }],
|
|
2588
|
+
"mask-image-b-from-pos": [{ "mask-b-from": F() }],
|
|
2589
|
+
"mask-image-b-to-pos": [{ "mask-b-to": F() }],
|
|
2590
|
+
"mask-image-b-from-color": [{ "mask-b-from": A() }],
|
|
2591
|
+
"mask-image-b-to-color": [{ "mask-b-to": A() }],
|
|
2592
|
+
"mask-image-l-from-pos": [{ "mask-l-from": F() }],
|
|
2593
|
+
"mask-image-l-to-pos": [{ "mask-l-to": F() }],
|
|
2594
|
+
"mask-image-l-from-color": [{ "mask-l-from": A() }],
|
|
2595
|
+
"mask-image-l-to-color": [{ "mask-l-to": A() }],
|
|
2596
|
+
"mask-image-x-from-pos": [{ "mask-x-from": F() }],
|
|
2597
|
+
"mask-image-x-to-pos": [{ "mask-x-to": F() }],
|
|
2598
|
+
"mask-image-x-from-color": [{ "mask-x-from": A() }],
|
|
2599
|
+
"mask-image-x-to-color": [{ "mask-x-to": A() }],
|
|
2600
|
+
"mask-image-y-from-pos": [{ "mask-y-from": F() }],
|
|
2601
|
+
"mask-image-y-to-pos": [{ "mask-y-to": F() }],
|
|
2602
|
+
"mask-image-y-from-color": [{ "mask-y-from": A() }],
|
|
2603
|
+
"mask-image-y-to-color": [{ "mask-y-to": A() }],
|
|
2604
|
+
"mask-image-radial": [{ "mask-radial": [X, J] }],
|
|
2605
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": F() }],
|
|
2606
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": F() }],
|
|
2607
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": A() }],
|
|
2608
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": A() }],
|
|
1269
2609
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1270
2610
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1271
2611
|
closest: ["side", "corner"],
|
|
1272
2612
|
farthest: ["side", "corner"]
|
|
1273
2613
|
}] }],
|
|
1274
2614
|
"mask-image-radial-pos": [{ "mask-radial-at": y() }],
|
|
1275
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1276
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1277
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1278
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1279
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
2615
|
+
"mask-image-conic-pos": [{ "mask-conic": [G] }],
|
|
2616
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": F() }],
|
|
2617
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": F() }],
|
|
2618
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": A() }],
|
|
2619
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": A() }],
|
|
1280
2620
|
"mask-mode": [{ mask: [
|
|
1281
2621
|
"alpha",
|
|
1282
2622
|
"luminance",
|
|
@@ -1290,117 +2630,117 @@ var h = (e, t) => {
|
|
|
1290
2630
|
"stroke",
|
|
1291
2631
|
"view"
|
|
1292
2632
|
] }],
|
|
1293
|
-
"mask-position": [{ mask:
|
|
1294
|
-
"mask-repeat": [{ mask:
|
|
1295
|
-
"mask-size": [{ mask:
|
|
2633
|
+
"mask-position": [{ mask: oe() }],
|
|
2634
|
+
"mask-repeat": [{ mask: j() }],
|
|
2635
|
+
"mask-size": [{ mask: se() }],
|
|
1296
2636
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1297
2637
|
"mask-image": [{ mask: [
|
|
1298
2638
|
"none",
|
|
1299
2639
|
X,
|
|
1300
|
-
|
|
2640
|
+
J
|
|
1301
2641
|
] }],
|
|
1302
2642
|
filter: [{ filter: [
|
|
1303
2643
|
"",
|
|
1304
2644
|
"none",
|
|
1305
2645
|
X,
|
|
1306
|
-
|
|
2646
|
+
J
|
|
1307
2647
|
] }],
|
|
1308
|
-
blur: [{ blur:
|
|
2648
|
+
blur: [{ blur: I() }],
|
|
1309
2649
|
brightness: [{ brightness: [
|
|
1310
|
-
|
|
2650
|
+
G,
|
|
1311
2651
|
X,
|
|
1312
|
-
|
|
2652
|
+
J
|
|
1313
2653
|
] }],
|
|
1314
2654
|
contrast: [{ contrast: [
|
|
1315
|
-
|
|
2655
|
+
G,
|
|
1316
2656
|
X,
|
|
1317
|
-
|
|
2657
|
+
J
|
|
1318
2658
|
] }],
|
|
1319
2659
|
"drop-shadow": [{ "drop-shadow": [
|
|
1320
2660
|
"",
|
|
1321
2661
|
"none",
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
2662
|
+
p,
|
|
2663
|
+
en,
|
|
2664
|
+
Jt
|
|
1325
2665
|
] }],
|
|
1326
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
2666
|
+
"drop-shadow-color": [{ "drop-shadow": A() }],
|
|
1327
2667
|
grayscale: [{ grayscale: [
|
|
1328
2668
|
"",
|
|
1329
|
-
|
|
2669
|
+
G,
|
|
1330
2670
|
X,
|
|
1331
|
-
|
|
2671
|
+
J
|
|
1332
2672
|
] }],
|
|
1333
2673
|
"hue-rotate": [{ "hue-rotate": [
|
|
1334
|
-
|
|
2674
|
+
G,
|
|
1335
2675
|
X,
|
|
1336
|
-
|
|
2676
|
+
J
|
|
1337
2677
|
] }],
|
|
1338
2678
|
invert: [{ invert: [
|
|
1339
2679
|
"",
|
|
1340
|
-
|
|
2680
|
+
G,
|
|
1341
2681
|
X,
|
|
1342
|
-
|
|
2682
|
+
J
|
|
1343
2683
|
] }],
|
|
1344
2684
|
saturate: [{ saturate: [
|
|
1345
|
-
|
|
2685
|
+
G,
|
|
1346
2686
|
X,
|
|
1347
|
-
|
|
2687
|
+
J
|
|
1348
2688
|
] }],
|
|
1349
2689
|
sepia: [{ sepia: [
|
|
1350
2690
|
"",
|
|
1351
|
-
|
|
2691
|
+
G,
|
|
1352
2692
|
X,
|
|
1353
|
-
|
|
2693
|
+
J
|
|
1354
2694
|
] }],
|
|
1355
2695
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1356
2696
|
"",
|
|
1357
2697
|
"none",
|
|
1358
2698
|
X,
|
|
1359
|
-
|
|
2699
|
+
J
|
|
1360
2700
|
] }],
|
|
1361
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
2701
|
+
"backdrop-blur": [{ "backdrop-blur": I() }],
|
|
1362
2702
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1363
|
-
|
|
2703
|
+
G,
|
|
1364
2704
|
X,
|
|
1365
|
-
|
|
2705
|
+
J
|
|
1366
2706
|
] }],
|
|
1367
2707
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1368
|
-
|
|
2708
|
+
G,
|
|
1369
2709
|
X,
|
|
1370
|
-
|
|
2710
|
+
J
|
|
1371
2711
|
] }],
|
|
1372
2712
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1373
2713
|
"",
|
|
1374
|
-
|
|
2714
|
+
G,
|
|
1375
2715
|
X,
|
|
1376
|
-
|
|
2716
|
+
J
|
|
1377
2717
|
] }],
|
|
1378
2718
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1379
|
-
|
|
2719
|
+
G,
|
|
1380
2720
|
X,
|
|
1381
|
-
|
|
2721
|
+
J
|
|
1382
2722
|
] }],
|
|
1383
2723
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1384
2724
|
"",
|
|
1385
|
-
|
|
2725
|
+
G,
|
|
1386
2726
|
X,
|
|
1387
|
-
|
|
2727
|
+
J
|
|
1388
2728
|
] }],
|
|
1389
2729
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1390
|
-
|
|
2730
|
+
G,
|
|
1391
2731
|
X,
|
|
1392
|
-
|
|
2732
|
+
J
|
|
1393
2733
|
] }],
|
|
1394
2734
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1395
|
-
|
|
2735
|
+
G,
|
|
1396
2736
|
X,
|
|
1397
|
-
|
|
2737
|
+
J
|
|
1398
2738
|
] }],
|
|
1399
2739
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1400
2740
|
"",
|
|
1401
|
-
|
|
2741
|
+
G,
|
|
1402
2742
|
X,
|
|
1403
|
-
|
|
2743
|
+
J
|
|
1404
2744
|
] }],
|
|
1405
2745
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1406
2746
|
"border-spacing": [{ "border-spacing": x() }],
|
|
@@ -1417,55 +2757,55 @@ var h = (e, t) => {
|
|
|
1417
2757
|
"transform",
|
|
1418
2758
|
"none",
|
|
1419
2759
|
X,
|
|
1420
|
-
|
|
2760
|
+
J
|
|
1421
2761
|
] }],
|
|
1422
2762
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1423
2763
|
duration: [{ duration: [
|
|
1424
|
-
|
|
2764
|
+
G,
|
|
1425
2765
|
"initial",
|
|
1426
2766
|
X,
|
|
1427
|
-
|
|
2767
|
+
J
|
|
1428
2768
|
] }],
|
|
1429
2769
|
ease: [{ ease: [
|
|
1430
2770
|
"linear",
|
|
1431
2771
|
"initial",
|
|
1432
|
-
|
|
2772
|
+
_,
|
|
1433
2773
|
X,
|
|
1434
|
-
|
|
2774
|
+
J
|
|
1435
2775
|
] }],
|
|
1436
2776
|
delay: [{ delay: [
|
|
1437
|
-
|
|
2777
|
+
G,
|
|
1438
2778
|
X,
|
|
1439
|
-
|
|
2779
|
+
J
|
|
1440
2780
|
] }],
|
|
1441
2781
|
animate: [{ animate: [
|
|
1442
2782
|
"none",
|
|
1443
|
-
|
|
2783
|
+
ee,
|
|
1444
2784
|
X,
|
|
1445
|
-
|
|
2785
|
+
J
|
|
1446
2786
|
] }],
|
|
1447
2787
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1448
2788
|
perspective: [{ perspective: [
|
|
1449
|
-
|
|
2789
|
+
h,
|
|
1450
2790
|
X,
|
|
1451
|
-
|
|
2791
|
+
J
|
|
1452
2792
|
] }],
|
|
1453
2793
|
"perspective-origin": [{ "perspective-origin": te() }],
|
|
1454
|
-
rotate: [{ rotate:
|
|
1455
|
-
"rotate-x": [{ "rotate-x":
|
|
1456
|
-
"rotate-y": [{ "rotate-y":
|
|
1457
|
-
"rotate-z": [{ "rotate-z":
|
|
1458
|
-
scale: [{ scale:
|
|
1459
|
-
"scale-x": [{ "scale-x":
|
|
1460
|
-
"scale-y": [{ "scale-y":
|
|
1461
|
-
"scale-z": [{ "scale-z":
|
|
2794
|
+
rotate: [{ rotate: L() }],
|
|
2795
|
+
"rotate-x": [{ "rotate-x": L() }],
|
|
2796
|
+
"rotate-y": [{ "rotate-y": L() }],
|
|
2797
|
+
"rotate-z": [{ "rotate-z": L() }],
|
|
2798
|
+
scale: [{ scale: R() }],
|
|
2799
|
+
"scale-x": [{ "scale-x": R() }],
|
|
2800
|
+
"scale-y": [{ "scale-y": R() }],
|
|
2801
|
+
"scale-z": [{ "scale-z": R() }],
|
|
1462
2802
|
"scale-3d": ["scale-3d"],
|
|
1463
|
-
skew: [{ skew:
|
|
1464
|
-
"skew-x": [{ "skew-x":
|
|
1465
|
-
"skew-y": [{ "skew-y":
|
|
2803
|
+
skew: [{ skew: ue() }],
|
|
2804
|
+
"skew-x": [{ "skew-x": ue() }],
|
|
2805
|
+
"skew-y": [{ "skew-y": ue() }],
|
|
1466
2806
|
transform: [{ transform: [
|
|
1467
2807
|
X,
|
|
1468
|
-
|
|
2808
|
+
J,
|
|
1469
2809
|
"",
|
|
1470
2810
|
"none",
|
|
1471
2811
|
"gpu",
|
|
@@ -1473,14 +2813,14 @@ var h = (e, t) => {
|
|
|
1473
2813
|
] }],
|
|
1474
2814
|
"transform-origin": [{ origin: te() }],
|
|
1475
2815
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1476
|
-
translate: [{ translate:
|
|
1477
|
-
"translate-x": [{ "translate-x":
|
|
1478
|
-
"translate-y": [{ "translate-y":
|
|
1479
|
-
"translate-z": [{ "translate-z":
|
|
2816
|
+
translate: [{ translate: z() }],
|
|
2817
|
+
"translate-x": [{ "translate-x": z() }],
|
|
2818
|
+
"translate-y": [{ "translate-y": z() }],
|
|
2819
|
+
"translate-z": [{ "translate-z": z() }],
|
|
1480
2820
|
"translate-none": ["translate-none"],
|
|
1481
|
-
accent: [{ accent:
|
|
2821
|
+
accent: [{ accent: A() }],
|
|
1482
2822
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1483
|
-
"caret-color": [{ caret:
|
|
2823
|
+
"caret-color": [{ caret: A() }],
|
|
1484
2824
|
"color-scheme": [{ scheme: [
|
|
1485
2825
|
"normal",
|
|
1486
2826
|
"dark",
|
|
@@ -1527,7 +2867,7 @@ var h = (e, t) => {
|
|
|
1527
2867
|
"zoom-in",
|
|
1528
2868
|
"zoom-out",
|
|
1529
2869
|
X,
|
|
1530
|
-
|
|
2870
|
+
J
|
|
1531
2871
|
] }],
|
|
1532
2872
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1533
2873
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1602,16 +2942,16 @@ var h = (e, t) => {
|
|
|
1602
2942
|
"contents",
|
|
1603
2943
|
"transform",
|
|
1604
2944
|
X,
|
|
1605
|
-
|
|
2945
|
+
J
|
|
1606
2946
|
] }],
|
|
1607
|
-
fill: [{ fill: ["none", ...
|
|
2947
|
+
fill: [{ fill: ["none", ...A()] }],
|
|
1608
2948
|
"stroke-w": [{ stroke: [
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
2949
|
+
G,
|
|
2950
|
+
Yt,
|
|
2951
|
+
Y,
|
|
2952
|
+
Ut
|
|
1613
2953
|
] }],
|
|
1614
|
-
stroke: [{ stroke: ["none", ...
|
|
2954
|
+
stroke: [{ stroke: ["none", ...A()] }],
|
|
1615
2955
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1616
2956
|
},
|
|
1617
2957
|
conflictingClassGroups: {
|
|
@@ -1798,52 +3138,118 @@ var h = (e, t) => {
|
|
|
1798
3138
|
});
|
|
1799
3139
|
//#endregion
|
|
1800
3140
|
//#region src/lib/utils.ts
|
|
1801
|
-
function
|
|
1802
|
-
return
|
|
3141
|
+
function $(...e) {
|
|
3142
|
+
return dn(Je(e));
|
|
1803
3143
|
}
|
|
1804
3144
|
//#endregion
|
|
1805
|
-
//#region src/components/ui/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
"data-
|
|
1837
|
-
className:
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
3145
|
+
//#region src/components/ui/table.tsx
|
|
3146
|
+
function fn({ className: e, ...t }) {
|
|
3147
|
+
return /* @__PURE__ */ c("table", {
|
|
3148
|
+
"data-slot": "table",
|
|
3149
|
+
className: $("mun:w-full mun:caption-bottom mun:text-sm", e),
|
|
3150
|
+
...t
|
|
3151
|
+
});
|
|
3152
|
+
}
|
|
3153
|
+
function pn({ className: e, ...t }) {
|
|
3154
|
+
return /* @__PURE__ */ c("thead", {
|
|
3155
|
+
"data-slot": "table-header",
|
|
3156
|
+
className: $("mun:[&_tr]:border-b", e),
|
|
3157
|
+
...t
|
|
3158
|
+
});
|
|
3159
|
+
}
|
|
3160
|
+
function mn({ className: e, ...t }) {
|
|
3161
|
+
return /* @__PURE__ */ c("tbody", {
|
|
3162
|
+
"data-slot": "table-body",
|
|
3163
|
+
className: $("mun:[&_tr:last-child]:border-0", e),
|
|
3164
|
+
...t
|
|
3165
|
+
});
|
|
3166
|
+
}
|
|
3167
|
+
function hn({ className: e, ...t }) {
|
|
3168
|
+
return /* @__PURE__ */ c("tr", {
|
|
3169
|
+
"data-slot": "table-row",
|
|
3170
|
+
className: $("mun:border-b mun:transition-colors mun:hover:bg-muted/50 mun:data-[state=selected]:bg-muted", e),
|
|
3171
|
+
...t
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
function gn({ className: e, ...t }) {
|
|
3175
|
+
return /* @__PURE__ */ c("th", {
|
|
3176
|
+
"data-slot": "table-head",
|
|
3177
|
+
className: $("mun:h-10 mun:px-2 mun:text-left mun:align-middle mun:font-medium mun:whitespace-nowrap mun:text-foreground mun:[&:has([role=checkbox])]:pr-0", e),
|
|
3178
|
+
...t
|
|
3179
|
+
});
|
|
3180
|
+
}
|
|
3181
|
+
function _n({ className: e, ...t }) {
|
|
3182
|
+
return /* @__PURE__ */ c("td", {
|
|
3183
|
+
"data-slot": "table-cell",
|
|
3184
|
+
className: $("mun:p-2 mun:align-middle mun:whitespace-nowrap mun:[&:has([role=checkbox])]:pr-0", e),
|
|
3185
|
+
...t
|
|
3186
|
+
});
|
|
3187
|
+
}
|
|
3188
|
+
//#endregion
|
|
3189
|
+
//#region src/components/table/TCell.tsx
|
|
3190
|
+
var vn = ({ cell: e }) => /* @__PURE__ */ c(_n, {
|
|
3191
|
+
style: { minWidth: e.column.getSize() },
|
|
3192
|
+
children: Re(e.column.columnDef.cell, e.getContext())
|
|
3193
|
+
}, e.id), yn = () => {
|
|
3194
|
+
let { table: e } = Ke();
|
|
3195
|
+
return /* @__PURE__ */ c(fn, { children: /* @__PURE__ */ c(mn, { children: e.getRowModel().rows.map((e) => /* @__PURE__ */ c(hn, {
|
|
3196
|
+
className: "mun:*:border-r mun:*:border-border",
|
|
3197
|
+
children: e.getVisibleCells().map((e) => /* @__PURE__ */ c(vn, { cell: e }, e.id))
|
|
3198
|
+
}, e.id)) }) });
|
|
3199
|
+
};
|
|
3200
|
+
//#endregion
|
|
3201
|
+
//#region src/components/ui/input.tsx
|
|
3202
|
+
function bn({ className: e, type: t, ...n }) {
|
|
3203
|
+
return /* @__PURE__ */ c("input", {
|
|
3204
|
+
type: t,
|
|
3205
|
+
"data-slot": "input",
|
|
3206
|
+
className: $("mun:h-8 mun:w-full mun:min-w-0 mun:rounded-lg mun:border mun:border-input mun:bg-transparent mun:px-2.5 mun:py-1 mun:text-base mun:transition-colors mun:outline-none mun:file:inline-flex mun:file:h-6 mun:file:border-0 mun:file:bg-transparent mun:file:text-sm mun:file:font-medium mun:file:text-foreground mun:placeholder:text-muted-foreground mun:focus-visible:border-ring mun:focus-visible:ring-3 mun:focus-visible:ring-ring/50 mun:disabled:pointer-events-none mun:disabled:cursor-not-allowed mun:disabled:bg-input/50 mun:disabled:opacity-50 mun:aria-invalid:border-destructive mun:aria-invalid:ring-3 mun:aria-invalid:ring-destructive/20 mun:md:text-sm mun:dark:bg-input/30 mun:dark:disabled:bg-input/80 mun:dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
3207
|
+
...n
|
|
1843
3208
|
});
|
|
1844
3209
|
}
|
|
1845
3210
|
//#endregion
|
|
1846
|
-
//#region src/
|
|
1847
|
-
var
|
|
3211
|
+
//#region src/components/header/HeaderFilter.tsx
|
|
3212
|
+
var xn = ({ column: e }) => /* @__PURE__ */ c("div", {
|
|
3213
|
+
className: "mun:p-1.5 mun:border-t mun:border-border mun:w-full",
|
|
3214
|
+
children: e.getCanFilter() ? /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(bn, {}) }) : null
|
|
3215
|
+
}), Sn = ({ header: e }) => /* @__PURE__ */ c("div", {
|
|
3216
|
+
className: "mun:space-y-1.5 mun:w-full",
|
|
3217
|
+
children: /* @__PURE__ */ c("span", { children: Re(e.column.columnDef.header, e.getContext()) })
|
|
3218
|
+
}), Cn = ({ header: e }) => /* @__PURE__ */ c(gn, {
|
|
3219
|
+
colSpan: e.colSpan,
|
|
3220
|
+
style: { minWidth: e.getSize() },
|
|
3221
|
+
className: "mun:p-0 mun:truncate mun:relative mun:group",
|
|
3222
|
+
children: /* @__PURE__ */ c(s, { children: e.isPlaceholder ? null : /* @__PURE__ */ l("div", {
|
|
3223
|
+
className: "mun:flex mun:flex-col mun:gap-1.5",
|
|
3224
|
+
children: [/* @__PURE__ */ c("div", {
|
|
3225
|
+
className: "mun:p-1.5 mun:flex mun:items-center mun:justify-between mun:gap-3",
|
|
3226
|
+
children: /* @__PURE__ */ c(Sn, { header: e })
|
|
3227
|
+
}), /* @__PURE__ */ c(xn, { column: e.column })]
|
|
3228
|
+
}) })
|
|
3229
|
+
}, e.id), wn = () => {
|
|
3230
|
+
let { table: e } = Ke();
|
|
3231
|
+
return /* @__PURE__ */ c(fn, { children: /* @__PURE__ */ c(pn, { children: e.getHeaderGroups().map((e) => /* @__PURE__ */ c(hn, {
|
|
3232
|
+
className: "mun:*:border-r mun:*:border-border",
|
|
3233
|
+
children: e.headers.map((e) => /* @__PURE__ */ c(Cn, { header: e }, e.id))
|
|
3234
|
+
}, e.id)) }) });
|
|
3235
|
+
}, Tn = () => {
|
|
3236
|
+
let { paneRef1: e, paneRef2: n } = Ke();
|
|
3237
|
+
return /* @__PURE__ */ l(t.Fragment, { children: [/* @__PURE__ */ c("div", {
|
|
3238
|
+
className: "mun:w-full mun:bg-muted mun:border-b mun:border-border mun:overflow-y-scroll mun:[scrollbar-color:transparent_transparent] mun:overflow-x-hidden",
|
|
3239
|
+
ref: e,
|
|
3240
|
+
children: /* @__PURE__ */ c(wn, {})
|
|
3241
|
+
}), /* @__PURE__ */ c("div", {
|
|
3242
|
+
className: "mun:h-[75vh] mun:w-full mun:overflow-scroll mun:bg-background",
|
|
3243
|
+
ref: n,
|
|
3244
|
+
children: /* @__PURE__ */ c(yn, {})
|
|
3245
|
+
})] });
|
|
3246
|
+
}, En = ({ columns: e, payload: t }) => /* @__PURE__ */ c(Ge, {
|
|
3247
|
+
payload: t,
|
|
3248
|
+
columns: e,
|
|
3249
|
+
children: /* @__PURE__ */ c("div", {
|
|
3250
|
+
className: "mun:overflow-hidden mun:flex-1 mun:rounded-md",
|
|
3251
|
+
children: /* @__PURE__ */ c(Tn, {})
|
|
3252
|
+
})
|
|
3253
|
+
});
|
|
1848
3254
|
//#endregion
|
|
1849
|
-
export {
|
|
3255
|
+
export { En as Grid };
|