munza-x-data-grid 3.0.0-beta.3 → 3.0.0-beta.5
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/data-grid.cjs +2 -5
- package/dist/data-grid.js +109 -3197
- package/package.json +3 -2
package/dist/data-grid.js
CHANGED
|
@@ -1,3273 +1,185 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as
|
|
2
|
+
import { createContext as e, useContext as t } from "react";
|
|
3
|
+
import { flexRender as n, getCoreRowModel as r, useReactTable as i } from "@tanstack/react-table";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
import { clsx as s } from "clsx";
|
|
6
|
+
import { twMerge as c } from "tailwind-merge";
|
|
5
7
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var
|
|
8
|
+
var l = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), u = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
7
9
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
8
10
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
9
|
-
}),
|
|
10
|
-
var t =
|
|
11
|
+
}), d = /* @__PURE__ */ l(((e) => {
|
|
12
|
+
var t = u("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
11
13
|
e.c = function(e) {
|
|
12
14
|
return t.H.useMemoCache(e);
|
|
13
15
|
};
|
|
14
|
-
})),
|
|
16
|
+
})), f = /* @__PURE__ */ l(((e) => {
|
|
15
17
|
process.env.NODE_ENV !== "production" && (function() {
|
|
16
|
-
var t =
|
|
18
|
+
var t = u("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
17
19
|
e.c = function(e) {
|
|
18
20
|
var n = t.H;
|
|
19
21
|
return n === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), n.useMemoCache(e);
|
|
20
22
|
};
|
|
21
23
|
})();
|
|
22
|
-
})),
|
|
23
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
24
|
-
})))()
|
|
25
|
-
|
|
26
|
-
return typeof e == "function" ? e(t) : e;
|
|
27
|
-
}
|
|
28
|
-
function d(e, t) {
|
|
29
|
-
return (n) => {
|
|
30
|
-
t.setState((t) => ({
|
|
31
|
-
...t,
|
|
32
|
-
[e]: u(n, t[e])
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function f(e) {
|
|
37
|
-
return e instanceof Function;
|
|
38
|
-
}
|
|
39
|
-
function p(e) {
|
|
40
|
-
return Array.isArray(e) && e.every((e) => typeof e == "number");
|
|
41
|
-
}
|
|
42
|
-
function m(e, t) {
|
|
43
|
-
let n = [], r = (e) => {
|
|
44
|
-
e.forEach((e) => {
|
|
45
|
-
n.push(e);
|
|
46
|
-
let i = t(e);
|
|
47
|
-
i != null && i.length && r(i);
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
return r(e), n;
|
|
51
|
-
}
|
|
52
|
-
function h(e, t, n) {
|
|
53
|
-
let r = [], i;
|
|
54
|
-
return (a) => {
|
|
55
|
-
let o;
|
|
56
|
-
n.key && n.debug && (o = Date.now());
|
|
57
|
-
let s = e(a);
|
|
58
|
-
if (!(s.length !== r.length || s.some((e, t) => r[t] !== e))) return i;
|
|
59
|
-
r = s;
|
|
60
|
-
let c;
|
|
61
|
-
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()) {
|
|
62
|
-
let e = Math.round((Date.now() - o) * 100) / 100, t = Math.round((Date.now() - c) * 100) / 100, r = t / 16, i = (e, t) => {
|
|
63
|
-
for (e = String(e); e.length < t;) e = " " + e;
|
|
64
|
-
return e;
|
|
65
|
-
};
|
|
66
|
-
console.info(`%c⏱ ${i(t, 5)} /${i(e, 5)} ms`, `
|
|
67
|
-
font-size: .6rem;
|
|
68
|
-
font-weight: bold;
|
|
69
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * r, 120))}deg 100% 31%);`, n?.key);
|
|
70
|
-
}
|
|
71
|
-
return i;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function g(e, t, n, r) {
|
|
75
|
-
return {
|
|
76
|
-
debug: () => e?.debugAll ?? e[t],
|
|
77
|
-
key: process.env.NODE_ENV === "development" && n,
|
|
78
|
-
onChange: r
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function ee(e, t, n, r) {
|
|
82
|
-
let i = {
|
|
83
|
-
id: `${t.id}_${n.id}`,
|
|
84
|
-
row: t,
|
|
85
|
-
column: n,
|
|
86
|
-
getValue: () => t.getValue(r),
|
|
87
|
-
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
|
|
88
|
-
getContext: h(() => [
|
|
89
|
-
e,
|
|
90
|
-
n,
|
|
91
|
-
t,
|
|
92
|
-
i
|
|
93
|
-
], (e, t, n, r) => ({
|
|
94
|
-
table: e,
|
|
95
|
-
column: t,
|
|
96
|
-
row: n,
|
|
97
|
-
cell: r,
|
|
98
|
-
getValue: r.getValue,
|
|
99
|
-
renderValue: r.renderValue
|
|
100
|
-
}), g(e.options, "debugCells", "cell.getContext"))
|
|
101
|
-
};
|
|
102
|
-
return e._features.forEach((r) => {
|
|
103
|
-
r.createCell == null || r.createCell(i, n, t, e);
|
|
104
|
-
}, {}), i;
|
|
105
|
-
}
|
|
106
|
-
function te(e, t, n, r) {
|
|
107
|
-
let i = {
|
|
108
|
-
...e._getDefaultColumnDef(),
|
|
109
|
-
...t
|
|
110
|
-
}, 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;
|
|
111
|
-
if (i.accessorFn ? s = i.accessorFn : a && (s = a.includes(".") ? (e) => {
|
|
112
|
-
let t = e;
|
|
113
|
-
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.`);
|
|
114
|
-
return t;
|
|
115
|
-
} : (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");
|
|
116
|
-
let c = {
|
|
117
|
-
id: `${String(o)}`,
|
|
118
|
-
accessorFn: s,
|
|
119
|
-
parent: r,
|
|
120
|
-
depth: n,
|
|
121
|
-
columnDef: i,
|
|
122
|
-
columns: [],
|
|
123
|
-
getFlatColumns: h(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], g(e.options, "debugColumns", "column.getFlatColumns")),
|
|
124
|
-
getLeafColumns: h(() => [e._getOrderColumnsFn()], (e) => {
|
|
125
|
-
var t;
|
|
126
|
-
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
|
|
127
|
-
}, g(e.options, "debugColumns", "column.getLeafColumns"))
|
|
128
|
-
};
|
|
129
|
-
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
|
|
130
|
-
return c;
|
|
131
|
-
}
|
|
132
|
-
var _ = "debugHeaders";
|
|
133
|
-
function v(e, t, n) {
|
|
134
|
-
let r = {
|
|
135
|
-
id: n.id ?? t.id,
|
|
136
|
-
column: t,
|
|
137
|
-
index: n.index,
|
|
138
|
-
isPlaceholder: !!n.isPlaceholder,
|
|
139
|
-
placeholderId: n.placeholderId,
|
|
140
|
-
depth: n.depth,
|
|
141
|
-
subHeaders: [],
|
|
142
|
-
colSpan: 0,
|
|
143
|
-
rowSpan: 0,
|
|
144
|
-
headerGroup: null,
|
|
145
|
-
getLeafHeaders: () => {
|
|
146
|
-
let e = [], t = (n) => {
|
|
147
|
-
n.subHeaders && n.subHeaders.length && n.subHeaders.map(t), e.push(n);
|
|
148
|
-
};
|
|
149
|
-
return t(r), e;
|
|
150
|
-
},
|
|
151
|
-
getContext: () => ({
|
|
152
|
-
table: e,
|
|
153
|
-
header: r,
|
|
154
|
-
column: t
|
|
155
|
-
})
|
|
156
|
-
};
|
|
157
|
-
return e._features.forEach((t) => {
|
|
158
|
-
t.createHeader == null || t.createHeader(r, e);
|
|
159
|
-
}), r;
|
|
160
|
-
}
|
|
161
|
-
var ne = { createTable: (e) => {
|
|
162
|
-
e.getHeaderGroups = h(() => [
|
|
163
|
-
e.getAllColumns(),
|
|
164
|
-
e.getVisibleLeafColumns(),
|
|
165
|
-
e.getState().columnPinning.left,
|
|
166
|
-
e.getState().columnPinning.right
|
|
167
|
-
], (t, n, r, i) => {
|
|
168
|
-
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)));
|
|
169
|
-
return y(t, [
|
|
170
|
-
...a,
|
|
171
|
-
...s,
|
|
172
|
-
...o
|
|
173
|
-
], e);
|
|
174
|
-
}, g(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = h(() => [
|
|
175
|
-
e.getAllColumns(),
|
|
176
|
-
e.getVisibleLeafColumns(),
|
|
177
|
-
e.getState().columnPinning.left,
|
|
178
|
-
e.getState().columnPinning.right
|
|
179
|
-
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), y(t, n, e, "center")), g(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = h(() => [
|
|
180
|
-
e.getAllColumns(),
|
|
181
|
-
e.getVisibleLeafColumns(),
|
|
182
|
-
e.getState().columnPinning.left
|
|
183
|
-
], (t, n, r) => y(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), g(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = h(() => [
|
|
184
|
-
e.getAllColumns(),
|
|
185
|
-
e.getVisibleLeafColumns(),
|
|
186
|
-
e.getState().columnPinning.right
|
|
187
|
-
], (t, n, r) => y(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), g(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = h(() => [e.getHeaderGroups()], (e) => [...e].reverse(), g(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = h(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), g(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = h(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), g(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = h(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), g(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = h(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = h(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = h(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = h(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), g(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = h(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
|
|
188
|
-
var t;
|
|
189
|
-
return !((t = e.subHeaders) != null && t.length);
|
|
190
|
-
}), g(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = h(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
|
|
191
|
-
var t;
|
|
192
|
-
return !((t = e.subHeaders) != null && t.length);
|
|
193
|
-
}), g(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = h(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
|
|
194
|
-
var t;
|
|
195
|
-
return !((t = e.subHeaders) != null && t.length);
|
|
196
|
-
}), g(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = h(() => [
|
|
197
|
-
e.getLeftHeaderGroups(),
|
|
198
|
-
e.getCenterHeaderGroups(),
|
|
199
|
-
e.getRightHeaderGroups()
|
|
200
|
-
], (e, t, n) => [
|
|
201
|
-
...e[0]?.headers ?? [],
|
|
202
|
-
...t[0]?.headers ?? [],
|
|
203
|
-
...n[0]?.headers ?? []
|
|
204
|
-
].map((e) => e.getLeafHeaders()).flat(), g(e.options, _, "getLeafHeaders"));
|
|
205
|
-
} };
|
|
206
|
-
function y(e, t, n, r) {
|
|
207
|
-
let i = 0, a = function(e, t) {
|
|
208
|
-
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
|
|
209
|
-
var n;
|
|
210
|
-
(n = e.columns) != null && n.length && a(e.columns, t + 1);
|
|
211
|
-
}, 0);
|
|
212
|
-
};
|
|
213
|
-
a(e);
|
|
214
|
-
let o = [], s = (e, t) => {
|
|
215
|
-
let i = {
|
|
216
|
-
depth: t,
|
|
217
|
-
id: [r, `${t}`].filter(Boolean).join("_"),
|
|
218
|
-
headers: []
|
|
219
|
-
}, a = [];
|
|
220
|
-
e.forEach((e) => {
|
|
221
|
-
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
|
|
222
|
-
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
|
|
223
|
-
else {
|
|
224
|
-
let i = v(n, c, {
|
|
225
|
-
id: [
|
|
226
|
-
r,
|
|
227
|
-
t,
|
|
228
|
-
c.id,
|
|
229
|
-
e?.id
|
|
230
|
-
].filter(Boolean).join("_"),
|
|
231
|
-
isPlaceholder: l,
|
|
232
|
-
placeholderId: l ? `${a.filter((e) => e.column === c).length}` : void 0,
|
|
233
|
-
depth: t,
|
|
234
|
-
index: a.length
|
|
235
|
-
});
|
|
236
|
-
i.subHeaders.push(e), a.push(i);
|
|
237
|
-
}
|
|
238
|
-
i.headers.push(e), e.headerGroup = i;
|
|
239
|
-
}), o.push(i), t > 0 && s(a, t - 1);
|
|
240
|
-
};
|
|
241
|
-
s(t.map((e, t) => v(n, e, {
|
|
242
|
-
depth: i,
|
|
243
|
-
index: t
|
|
244
|
-
})), i - 1), o.reverse();
|
|
245
|
-
let c = (e) => e.filter((e) => e.column.getIsVisible()).map((e) => {
|
|
246
|
-
let t = 0, n = 0, r = [0];
|
|
247
|
-
e.subHeaders && e.subHeaders.length ? (r = [], c(e.subHeaders).forEach((e) => {
|
|
248
|
-
let { colSpan: n, rowSpan: i } = e;
|
|
249
|
-
t += n, r.push(i);
|
|
250
|
-
})) : t = 1;
|
|
251
|
-
let i = Math.min(...r);
|
|
252
|
-
return n += i, e.colSpan = t, e.rowSpan = n, {
|
|
253
|
-
colSpan: t,
|
|
254
|
-
rowSpan: n
|
|
255
|
-
};
|
|
256
|
-
});
|
|
257
|
-
return c(o[0]?.headers ?? []), o;
|
|
258
|
-
}
|
|
259
|
-
var re = (e, t, n, r, i, a, o) => {
|
|
260
|
-
let s = {
|
|
261
|
-
id: t,
|
|
262
|
-
index: r,
|
|
263
|
-
original: n,
|
|
264
|
-
depth: i,
|
|
265
|
-
parentId: o,
|
|
266
|
-
_valuesCache: {},
|
|
267
|
-
_uniqueValuesCache: {},
|
|
268
|
-
getValue: (t) => {
|
|
269
|
-
if (s._valuesCache.hasOwnProperty(t)) return s._valuesCache[t];
|
|
270
|
-
let n = e.getColumn(t);
|
|
271
|
-
if (n != null && n.accessorFn) return s._valuesCache[t] = n.accessorFn(s.original, r), s._valuesCache[t];
|
|
272
|
-
},
|
|
273
|
-
getUniqueValues: (t) => {
|
|
274
|
-
if (s._uniqueValuesCache.hasOwnProperty(t)) return s._uniqueValuesCache[t];
|
|
275
|
-
let n = e.getColumn(t);
|
|
276
|
-
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]);
|
|
277
|
-
},
|
|
278
|
-
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
|
|
279
|
-
subRows: a ?? [],
|
|
280
|
-
getLeafRows: () => m(s.subRows, (e) => e.subRows),
|
|
281
|
-
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
282
|
-
getParentRows: () => {
|
|
283
|
-
let e = [], t = s;
|
|
284
|
-
for (;;) {
|
|
285
|
-
let n = t.getParentRow();
|
|
286
|
-
if (!n) break;
|
|
287
|
-
e.push(n), t = n;
|
|
288
|
-
}
|
|
289
|
-
return e.reverse();
|
|
290
|
-
},
|
|
291
|
-
getAllCells: h(() => [e.getAllLeafColumns()], (t) => t.map((t) => ee(e, s, t, t.id)), g(e.options, "debugRows", "getAllCells")),
|
|
292
|
-
_getAllCellsByColumnId: h(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), g(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
293
|
-
};
|
|
294
|
-
for (let t = 0; t < e._features.length; t++) {
|
|
295
|
-
let n = e._features[t];
|
|
296
|
-
n == null || n.createRow == null || n.createRow(s, e);
|
|
297
|
-
}
|
|
298
|
-
return s;
|
|
299
|
-
}, b = { createColumn: (e, t) => {
|
|
300
|
-
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 = () => {
|
|
301
|
-
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
|
|
302
|
-
};
|
|
303
|
-
} }, x = (e, t, n) => {
|
|
304
|
-
var r, i;
|
|
305
|
-
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
306
|
-
return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
|
|
307
|
-
};
|
|
308
|
-
x.autoRemove = (e) => O(e);
|
|
309
|
-
var ie = (e, t, n) => {
|
|
310
|
-
var r;
|
|
311
|
-
return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
|
|
312
|
-
};
|
|
313
|
-
ie.autoRemove = (e) => O(e);
|
|
314
|
-
var ae = (e, t, n) => {
|
|
315
|
-
var r;
|
|
316
|
-
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
317
|
-
};
|
|
318
|
-
ae.autoRemove = (e) => O(e);
|
|
319
|
-
var S = (e, t, n) => e.getValue(t)?.includes(n);
|
|
320
|
-
S.autoRemove = (e) => O(e);
|
|
321
|
-
var oe = (e, t, n) => !n.some((n) => {
|
|
322
|
-
var r;
|
|
323
|
-
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
324
|
-
});
|
|
325
|
-
oe.autoRemove = (e) => O(e) || !(e != null && e.length);
|
|
326
|
-
var C = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
327
|
-
C.autoRemove = (e) => O(e) || !(e != null && e.length);
|
|
328
|
-
var w = (e, t, n) => e.getValue(t) === n;
|
|
329
|
-
w.autoRemove = (e) => O(e);
|
|
330
|
-
var T = (e, t, n) => e.getValue(t) == n;
|
|
331
|
-
T.autoRemove = (e) => O(e);
|
|
332
|
-
var E = (e, t, n) => {
|
|
333
|
-
let [r, i] = n, a = e.getValue(t);
|
|
334
|
-
return a >= r && a <= i;
|
|
335
|
-
};
|
|
336
|
-
E.resolveFilterValue = (e) => {
|
|
337
|
-
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;
|
|
338
|
-
if (a > o) {
|
|
339
|
-
let e = a;
|
|
340
|
-
a = o, o = e;
|
|
341
|
-
}
|
|
342
|
-
return [a, o];
|
|
343
|
-
}, E.autoRemove = (e) => O(e) || O(e[0]) && O(e[1]);
|
|
344
|
-
var D = {
|
|
345
|
-
includesString: x,
|
|
346
|
-
includesStringSensitive: ie,
|
|
347
|
-
equalsString: ae,
|
|
348
|
-
arrIncludes: S,
|
|
349
|
-
arrIncludesAll: oe,
|
|
350
|
-
arrIncludesSome: C,
|
|
351
|
-
equals: w,
|
|
352
|
-
weakEquals: T,
|
|
353
|
-
inNumberRange: E
|
|
354
|
-
};
|
|
355
|
-
function O(e) {
|
|
356
|
-
return e == null || e === "";
|
|
357
|
-
}
|
|
358
|
-
var k = {
|
|
359
|
-
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
360
|
-
getInitialState: (e) => ({
|
|
361
|
-
columnFilters: [],
|
|
362
|
-
...e
|
|
363
|
-
}),
|
|
364
|
-
getDefaultOptions: (e) => ({
|
|
365
|
-
onColumnFiltersChange: d("columnFilters", e),
|
|
366
|
-
filterFromLeafRows: !1,
|
|
367
|
-
maxLeafRowFilterDepth: 100
|
|
368
|
-
}),
|
|
369
|
-
createColumn: (e, t) => {
|
|
370
|
-
e.getAutoFilterFn = () => {
|
|
371
|
-
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
372
|
-
return typeof n == "string" ? D.includesString : typeof n == "number" ? D.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? D.equals : Array.isArray(n) ? D.arrIncludes : D.weakEquals;
|
|
373
|
-
}, e.getFilterFn = () => f(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? D[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 = () => {
|
|
374
|
-
var n;
|
|
375
|
-
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
|
|
376
|
-
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
|
|
377
|
-
t.setColumnFilters((t) => {
|
|
378
|
-
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = u(n, i ? i.value : void 0);
|
|
379
|
-
if (se(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
|
|
380
|
-
let o = {
|
|
381
|
-
id: e.id,
|
|
382
|
-
value: a
|
|
383
|
-
};
|
|
384
|
-
return i ? t?.map((t) => t.id === e.id ? o : t) ?? [] : t != null && t.length ? [...t, o] : [o];
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
},
|
|
388
|
-
createRow: (e, t) => {
|
|
389
|
-
e.columnFilters = {}, e.columnFiltersMeta = {};
|
|
390
|
-
},
|
|
391
|
-
createTable: (e) => {
|
|
392
|
-
e.setColumnFilters = (t) => {
|
|
393
|
-
let n = e.getAllLeafColumns();
|
|
394
|
-
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => u(t, e)?.filter((e) => {
|
|
395
|
-
let t = n.find((t) => t.id === e.id);
|
|
396
|
-
return !(t && se(t.getFilterFn(), e.value, t));
|
|
397
|
-
}));
|
|
398
|
-
}, e.resetColumnFilters = (t) => {
|
|
399
|
-
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
|
|
400
|
-
}, 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());
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
function se(e, t, n) {
|
|
404
|
-
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
|
|
405
|
-
}
|
|
406
|
-
var A = {
|
|
407
|
-
sum: (e, t, n) => n.reduce((t, n) => {
|
|
408
|
-
let r = n.getValue(e);
|
|
409
|
-
return t + (typeof r == "number" ? r : 0);
|
|
410
|
-
}, 0),
|
|
411
|
-
min: (e, t, n) => {
|
|
412
|
-
let r;
|
|
413
|
-
return n.forEach((t) => {
|
|
414
|
-
let n = t.getValue(e);
|
|
415
|
-
n != null && (r > n || r === void 0 && n >= n) && (r = n);
|
|
416
|
-
}), r;
|
|
417
|
-
},
|
|
418
|
-
max: (e, t, n) => {
|
|
419
|
-
let r;
|
|
420
|
-
return n.forEach((t) => {
|
|
421
|
-
let n = t.getValue(e);
|
|
422
|
-
n != null && (r < n || r === void 0 && n >= n) && (r = n);
|
|
423
|
-
}), r;
|
|
424
|
-
},
|
|
425
|
-
extent: (e, t, n) => {
|
|
426
|
-
let r, i;
|
|
427
|
-
return n.forEach((t) => {
|
|
428
|
-
let n = t.getValue(e);
|
|
429
|
-
n != null && (r === void 0 ? n >= n && (r = i = n) : (r > n && (r = n), i < n && (i = n)));
|
|
430
|
-
}), [r, i];
|
|
431
|
-
},
|
|
432
|
-
mean: (e, t) => {
|
|
433
|
-
let n = 0, r = 0;
|
|
434
|
-
if (t.forEach((t) => {
|
|
435
|
-
let i = t.getValue(e);
|
|
436
|
-
i != null && (i = +i) >= i && (++n, r += i);
|
|
437
|
-
}), n) return r / n;
|
|
438
|
-
},
|
|
439
|
-
median: (e, t) => {
|
|
440
|
-
if (!t.length) return;
|
|
441
|
-
let n = t.map((t) => t.getValue(e));
|
|
442
|
-
if (!p(n)) return;
|
|
443
|
-
if (n.length === 1) return n[0];
|
|
444
|
-
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
|
|
445
|
-
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
|
|
446
|
-
},
|
|
447
|
-
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
|
|
448
|
-
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
|
|
449
|
-
count: (e, t) => t.length
|
|
450
|
-
}, ce = {
|
|
451
|
-
getDefaultColumnDef: () => ({
|
|
452
|
-
aggregatedCell: (e) => {
|
|
453
|
-
var t;
|
|
454
|
-
return ((t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;
|
|
455
|
-
},
|
|
456
|
-
aggregationFn: "auto"
|
|
457
|
-
}),
|
|
458
|
-
getInitialState: (e) => ({
|
|
459
|
-
grouping: [],
|
|
460
|
-
...e
|
|
461
|
-
}),
|
|
462
|
-
getDefaultOptions: (e) => ({
|
|
463
|
-
onGroupingChange: d("grouping", e),
|
|
464
|
-
groupedColumnMode: "reorder"
|
|
465
|
-
}),
|
|
466
|
-
createColumn: (e, t) => {
|
|
467
|
-
e.toggleGrouping = () => {
|
|
468
|
-
t.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((t) => t !== e.id) : [...t ?? [], e.id]);
|
|
469
|
-
}, 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 = () => {
|
|
470
|
-
let t = e.getCanGroup();
|
|
471
|
-
return () => {
|
|
472
|
-
t && e.toggleGrouping();
|
|
473
|
-
};
|
|
474
|
-
}, e.getAutoAggregationFn = () => {
|
|
475
|
-
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
476
|
-
if (typeof n == "number") return A.sum;
|
|
477
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return A.extent;
|
|
478
|
-
}, e.getAggregationFn = () => {
|
|
479
|
-
if (!e) throw Error();
|
|
480
|
-
return f(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? A[e.columnDef.aggregationFn];
|
|
481
|
-
};
|
|
482
|
-
},
|
|
483
|
-
createTable: (e) => {
|
|
484
|
-
e.setGrouping = (t) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(t), e.resetGrouping = (t) => {
|
|
485
|
-
e.setGrouping(t ? [] : e.initialState?.grouping ?? []);
|
|
486
|
-
}, 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());
|
|
487
|
-
},
|
|
488
|
-
createRow: (e, t) => {
|
|
489
|
-
e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (n) => {
|
|
490
|
-
if (e._groupingValuesCache.hasOwnProperty(n)) return e._groupingValuesCache[n];
|
|
491
|
-
let r = t.getColumn(n);
|
|
492
|
-
return r != null && r.columnDef.getGroupingValue ? (e._groupingValuesCache[n] = r.columnDef.getGroupingValue(e.original), e._groupingValuesCache[n]) : e.getValue(n);
|
|
493
|
-
}, e._groupingValuesCache = {};
|
|
494
|
-
},
|
|
495
|
-
createCell: (e, t, n, r) => {
|
|
496
|
-
e.getIsGrouped = () => t.getIsGrouped() && t.id === n.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && t.getIsGrouped(), e.getIsAggregated = () => {
|
|
497
|
-
var t;
|
|
498
|
-
return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((t = n.subRows) != null && t.length);
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
function le(e, t, n) {
|
|
503
|
-
if (!(t != null && t.length) || !n) return e;
|
|
504
|
-
let r = e.filter((e) => !t.includes(e.id));
|
|
505
|
-
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
|
|
506
|
-
}
|
|
507
|
-
var j = {
|
|
508
|
-
getInitialState: (e) => ({
|
|
509
|
-
columnOrder: [],
|
|
510
|
-
...e
|
|
511
|
-
}),
|
|
512
|
-
getDefaultOptions: (e) => ({ onColumnOrderChange: d("columnOrder", e) }),
|
|
513
|
-
createColumn: (e, t) => {
|
|
514
|
-
e.getIndex = h((e) => [z(t, e)], (t) => t.findIndex((t) => t.id === e.id), g(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => z(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
|
|
515
|
-
let r = z(t, n);
|
|
516
|
-
return r[r.length - 1]?.id === e.id;
|
|
517
|
-
};
|
|
518
|
-
},
|
|
519
|
-
createTable: (e) => {
|
|
520
|
-
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
|
|
521
|
-
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
|
|
522
|
-
}, e._getOrderColumnsFn = h(() => [
|
|
523
|
-
e.getState().columnOrder,
|
|
524
|
-
e.getState().grouping,
|
|
525
|
-
e.options.groupedColumnMode
|
|
526
|
-
], (e, t, n) => (r) => {
|
|
527
|
-
let i = [];
|
|
528
|
-
if (!(e != null && e.length)) i = r;
|
|
529
|
-
else {
|
|
530
|
-
let t = [...e], n = [...r];
|
|
531
|
-
for (; n.length && t.length;) {
|
|
532
|
-
let e = t.shift(), r = n.findIndex((t) => t.id === e);
|
|
533
|
-
r > -1 && i.push(n.splice(r, 1)[0]);
|
|
534
|
-
}
|
|
535
|
-
i = [...i, ...n];
|
|
536
|
-
}
|
|
537
|
-
return le(i, t, n);
|
|
538
|
-
}, g(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
539
|
-
}
|
|
540
|
-
}, M = () => ({
|
|
541
|
-
left: [],
|
|
542
|
-
right: []
|
|
543
|
-
}), N = {
|
|
544
|
-
getInitialState: (e) => ({
|
|
545
|
-
columnPinning: M(),
|
|
546
|
-
...e
|
|
547
|
-
}),
|
|
548
|
-
getDefaultOptions: (e) => ({ onColumnPinningChange: d("columnPinning", e) }),
|
|
549
|
-
createColumn: (e, t) => {
|
|
550
|
-
e.pin = (n) => {
|
|
551
|
-
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
|
|
552
|
-
t.setColumnPinning((e) => n === "right" ? {
|
|
553
|
-
left: (e?.left ?? []).filter((e) => !(r != null && r.includes(e))),
|
|
554
|
-
right: [...(e?.right ?? []).filter((e) => !(r != null && r.includes(e))), ...r]
|
|
555
|
-
} : n === "left" ? {
|
|
556
|
-
left: [...(e?.left ?? []).filter((e) => !(r != null && r.includes(e))), ...r],
|
|
557
|
-
right: (e?.right ?? []).filter((e) => !(r != null && r.includes(e)))
|
|
558
|
-
} : {
|
|
559
|
-
left: (e?.left ?? []).filter((e) => !(r != null && r.includes(e))),
|
|
560
|
-
right: (e?.right ?? []).filter((e) => !(r != null && r.includes(e)))
|
|
561
|
-
});
|
|
562
|
-
}, e.getCanPin = () => e.getLeafColumns().some((e) => (e.columnDef.enablePinning ?? !0) && (t.options.enableColumnPinning ?? t.options.enablePinning ?? !0)), e.getIsPinned = () => {
|
|
563
|
-
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));
|
|
564
|
-
return a ? "left" : o ? "right" : !1;
|
|
565
|
-
}, e.getPinnedIndex = () => {
|
|
566
|
-
var n;
|
|
567
|
-
let r = e.getIsPinned();
|
|
568
|
-
return r ? ((n = t.getState().columnPinning) == null || (n = n[r]) == null ? void 0 : n.indexOf(e.id)) ?? -1 : 0;
|
|
569
|
-
};
|
|
570
|
-
},
|
|
571
|
-
createRow: (e, t) => {
|
|
572
|
-
e.getCenterVisibleCells = h(() => [
|
|
573
|
-
e._getAllVisibleCells(),
|
|
574
|
-
t.getState().columnPinning.left,
|
|
575
|
-
t.getState().columnPinning.right
|
|
576
|
-
], (e, t, n) => {
|
|
577
|
-
let r = [...t ?? [], ...n ?? []];
|
|
578
|
-
return e.filter((e) => !r.includes(e.column.id));
|
|
579
|
-
}, 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) => ({
|
|
580
|
-
...e,
|
|
581
|
-
position: "left"
|
|
582
|
-
})), 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) => ({
|
|
583
|
-
...e,
|
|
584
|
-
position: "right"
|
|
585
|
-
})), g(t.options, "debugRows", "getRightVisibleCells"));
|
|
586
|
-
},
|
|
587
|
-
createTable: (e) => {
|
|
588
|
-
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? M() : e.initialState?.columnPinning ?? M()), e.getIsSomeColumnsPinned = (t) => {
|
|
589
|
-
let n = e.getState().columnPinning;
|
|
590
|
-
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
|
|
591
|
-
}, 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(() => [
|
|
592
|
-
e.getAllLeafColumns(),
|
|
593
|
-
e.getState().columnPinning.left,
|
|
594
|
-
e.getState().columnPinning.right
|
|
595
|
-
], (e, t, n) => {
|
|
596
|
-
let r = [...t ?? [], ...n ?? []];
|
|
597
|
-
return e.filter((e) => !r.includes(e.id));
|
|
598
|
-
}, g(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
function ue(e) {
|
|
602
|
-
return e || (typeof document < "u" ? document : null);
|
|
603
|
-
}
|
|
604
|
-
var P = {
|
|
605
|
-
size: 150,
|
|
606
|
-
minSize: 20,
|
|
607
|
-
maxSize: 2 ** 53 - 1
|
|
608
|
-
}, F = () => ({
|
|
609
|
-
startOffset: null,
|
|
610
|
-
startSize: null,
|
|
611
|
-
deltaOffset: null,
|
|
612
|
-
deltaPercentage: null,
|
|
613
|
-
isResizingColumn: !1,
|
|
614
|
-
columnSizingStart: []
|
|
615
|
-
}), I = {
|
|
616
|
-
getDefaultColumnDef: () => P,
|
|
617
|
-
getInitialState: (e) => ({
|
|
618
|
-
columnSizing: {},
|
|
619
|
-
columnSizingInfo: F(),
|
|
620
|
-
...e
|
|
621
|
-
}),
|
|
622
|
-
getDefaultOptions: (e) => ({
|
|
623
|
-
columnResizeMode: "onEnd",
|
|
624
|
-
columnResizeDirection: "ltr",
|
|
625
|
-
onColumnSizingChange: d("columnSizing", e),
|
|
626
|
-
onColumnSizingInfoChange: d("columnSizingInfo", e)
|
|
627
|
-
}),
|
|
628
|
-
createColumn: (e, t) => {
|
|
629
|
-
e.getSize = () => {
|
|
630
|
-
let n = t.getState().columnSizing[e.id];
|
|
631
|
-
return Math.min(Math.max(e.columnDef.minSize ?? P.minSize, n ?? e.columnDef.size ?? P.size), e.columnDef.maxSize ?? P.maxSize);
|
|
632
|
-
}, e.getStart = h((e) => [
|
|
633
|
-
e,
|
|
634
|
-
z(t, e),
|
|
635
|
-
t.getState().columnSizing
|
|
636
|
-
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), g(t.options, "debugColumns", "getStart")), e.getAfter = h((e) => [
|
|
637
|
-
e,
|
|
638
|
-
z(t, e),
|
|
639
|
-
t.getState().columnSizing
|
|
640
|
-
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), g(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
641
|
-
t.setColumnSizing((t) => {
|
|
642
|
-
let { [e.id]: n, ...r } = t;
|
|
643
|
-
return r;
|
|
644
|
-
});
|
|
645
|
-
}, e.getCanResize = () => (e.columnDef.enableResizing ?? !0) && (t.options.enableColumnResizing ?? !0), e.getIsResizing = () => t.getState().columnSizingInfo.isResizingColumn === e.id;
|
|
646
|
-
},
|
|
647
|
-
createHeader: (e, t) => {
|
|
648
|
-
e.getSize = () => {
|
|
649
|
-
let t = 0, n = (e) => {
|
|
650
|
-
e.subHeaders.length ? e.subHeaders.forEach(n) : t += e.column.getSize() ?? 0;
|
|
651
|
-
};
|
|
652
|
-
return n(e), t;
|
|
653
|
-
}, e.getStart = () => {
|
|
654
|
-
if (e.index > 0) {
|
|
655
|
-
let t = e.headerGroup.headers[e.index - 1];
|
|
656
|
-
return t.getStart() + t.getSize();
|
|
657
|
-
}
|
|
658
|
-
return 0;
|
|
659
|
-
}, e.getResizeHandler = (n) => {
|
|
660
|
-
let r = t.getColumn(e.column.id), i = r?.getCanResize();
|
|
661
|
-
return (a) => {
|
|
662
|
-
if (!r || !i || (a.persist == null || a.persist(), R(a) && a.touches && a.touches.length > 1)) return;
|
|
663
|
-
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = R(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
|
|
664
|
-
typeof n == "number" && (t.setColumnSizingInfo((e) => {
|
|
665
|
-
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
|
|
666
|
-
return e.columnSizingStart.forEach((e) => {
|
|
667
|
-
let [t, n] = e;
|
|
668
|
-
l[t] = Math.round(Math.max(n + n * a, 0) * 100) / 100;
|
|
669
|
-
}), {
|
|
670
|
-
...e,
|
|
671
|
-
deltaOffset: i,
|
|
672
|
-
deltaPercentage: a
|
|
673
|
-
};
|
|
674
|
-
}), (t.options.columnResizeMode === "onChange" || e === "end") && t.setColumnSizing((e) => ({
|
|
675
|
-
...e,
|
|
676
|
-
...l
|
|
677
|
-
})));
|
|
678
|
-
}, d = (e) => u("move", e), f = (e) => {
|
|
679
|
-
u("end", e), t.setColumnSizingInfo((e) => ({
|
|
680
|
-
...e,
|
|
681
|
-
isResizingColumn: !1,
|
|
682
|
-
startOffset: null,
|
|
683
|
-
startSize: null,
|
|
684
|
-
deltaOffset: null,
|
|
685
|
-
deltaPercentage: null,
|
|
686
|
-
columnSizingStart: []
|
|
687
|
-
}));
|
|
688
|
-
}, p = ue(n), m = {
|
|
689
|
-
moveHandler: (e) => d(e.clientX),
|
|
690
|
-
upHandler: (e) => {
|
|
691
|
-
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
|
|
692
|
-
}
|
|
693
|
-
}, h = {
|
|
694
|
-
moveHandler: (e) => (e.cancelable && (e.preventDefault(), e.stopPropagation()), d(e.touches[0].clientX), !1),
|
|
695
|
-
upHandler: (e) => {
|
|
696
|
-
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
|
|
697
|
-
}
|
|
698
|
-
}, g = de() ? { passive: !1 } : !1;
|
|
699
|
-
R(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) => ({
|
|
700
|
-
...e,
|
|
701
|
-
startOffset: c,
|
|
702
|
-
startSize: o,
|
|
703
|
-
deltaOffset: 0,
|
|
704
|
-
deltaPercentage: 0,
|
|
705
|
-
columnSizingStart: s,
|
|
706
|
-
isResizingColumn: r.id
|
|
707
|
-
}));
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
},
|
|
711
|
-
createTable: (e) => {
|
|
712
|
-
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) => {
|
|
713
|
-
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
|
|
714
|
-
}, e.resetHeaderSizeInfo = (t) => {
|
|
715
|
-
e.setColumnSizingInfo(t ? F() : e.initialState.columnSizingInfo ?? F());
|
|
716
|
-
}, 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;
|
|
717
|
-
}
|
|
718
|
-
}, L = null;
|
|
719
|
-
function de() {
|
|
720
|
-
if (typeof L == "boolean") return L;
|
|
721
|
-
let e = !1;
|
|
722
|
-
try {
|
|
723
|
-
let t = { get passive() {
|
|
724
|
-
return e = !0, !1;
|
|
725
|
-
} }, n = () => {};
|
|
726
|
-
window.addEventListener("test", n, t), window.removeEventListener("test", n);
|
|
727
|
-
} catch {
|
|
728
|
-
e = !1;
|
|
729
|
-
}
|
|
730
|
-
return L = e, L;
|
|
731
|
-
}
|
|
732
|
-
function R(e) {
|
|
733
|
-
return e.type === "touchstart";
|
|
734
|
-
}
|
|
735
|
-
var fe = {
|
|
736
|
-
getInitialState: (e) => ({
|
|
737
|
-
columnVisibility: {},
|
|
738
|
-
...e
|
|
739
|
-
}),
|
|
740
|
-
getDefaultOptions: (e) => ({ onColumnVisibilityChange: d("columnVisibility", e) }),
|
|
741
|
-
createColumn: (e, t) => {
|
|
742
|
-
e.toggleVisibility = (n) => {
|
|
743
|
-
e.getCanHide() && t.setColumnVisibility((t) => ({
|
|
744
|
-
...t,
|
|
745
|
-
[e.id]: n ?? !e.getIsVisible()
|
|
746
|
-
}));
|
|
747
|
-
}, e.getIsVisible = () => {
|
|
748
|
-
let n = e.columns;
|
|
749
|
-
return (n.length ? n.some((e) => e.getIsVisible()) : t.getState().columnVisibility?.[e.id]) ?? !0;
|
|
750
|
-
}, e.getCanHide = () => (e.columnDef.enableHiding ?? !0) && (t.options.enableHiding ?? !0), e.getToggleVisibilityHandler = () => (t) => {
|
|
751
|
-
e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
|
|
752
|
-
};
|
|
753
|
-
},
|
|
754
|
-
createRow: (e, t) => {
|
|
755
|
-
e._getAllVisibleCells = h(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), g(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = h(() => [
|
|
756
|
-
e.getLeftVisibleCells(),
|
|
757
|
-
e.getCenterVisibleCells(),
|
|
758
|
-
e.getRightVisibleCells()
|
|
759
|
-
], (e, t, n) => [
|
|
760
|
-
...e,
|
|
761
|
-
...t,
|
|
762
|
-
...n
|
|
763
|
-
], g(t.options, "debugRows", "getVisibleCells"));
|
|
764
|
-
},
|
|
765
|
-
createTable: (e) => {
|
|
766
|
-
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));
|
|
767
|
-
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) => {
|
|
768
|
-
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
|
|
769
|
-
}, e.toggleAllColumnsVisible = (t) => {
|
|
770
|
-
t ??= !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((e, n) => ({
|
|
771
|
-
...e,
|
|
772
|
-
[n.id]: t || !(n.getCanHide != null && n.getCanHide())
|
|
773
|
-
}), {}));
|
|
774
|
-
}, 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) => {
|
|
775
|
-
e.toggleAllColumnsVisible(t.target?.checked);
|
|
776
|
-
};
|
|
777
|
-
}
|
|
778
|
-
};
|
|
779
|
-
function z(e, t) {
|
|
780
|
-
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
781
|
-
}
|
|
782
|
-
var pe = { createTable: (e) => {
|
|
783
|
-
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 = () => {
|
|
784
|
-
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
|
|
785
|
-
};
|
|
786
|
-
} }, me = {
|
|
787
|
-
getInitialState: (e) => ({
|
|
788
|
-
globalFilter: void 0,
|
|
789
|
-
...e
|
|
790
|
-
}),
|
|
791
|
-
getDefaultOptions: (e) => ({
|
|
792
|
-
onGlobalFilterChange: d("globalFilter", e),
|
|
793
|
-
globalFilterFn: "auto",
|
|
794
|
-
getColumnCanGlobalFilter: (t) => {
|
|
795
|
-
var n;
|
|
796
|
-
let r = (n = e.getCoreRowModel().flatRows[0]) == null || (n = n._getAllCellsByColumnId()[t.id]) == null ? void 0 : n.getValue();
|
|
797
|
-
return typeof r == "string" || typeof r == "number";
|
|
798
|
-
}
|
|
799
|
-
}),
|
|
800
|
-
createColumn: (e, t) => {
|
|
801
|
-
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;
|
|
802
|
-
},
|
|
803
|
-
createTable: (e) => {
|
|
804
|
-
e.getGlobalAutoFilterFn = () => D.includesString, e.getGlobalFilterFn = () => {
|
|
805
|
-
let { globalFilterFn: t } = e.options;
|
|
806
|
-
return f(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? D[t];
|
|
807
|
-
}, e.setGlobalFilter = (t) => {
|
|
808
|
-
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
809
|
-
}, e.resetGlobalFilter = (t) => {
|
|
810
|
-
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
}, he = {
|
|
814
|
-
getInitialState: (e) => ({
|
|
815
|
-
expanded: {},
|
|
816
|
-
...e
|
|
817
|
-
}),
|
|
818
|
-
getDefaultOptions: (e) => ({
|
|
819
|
-
onExpandedChange: d("expanded", e),
|
|
820
|
-
paginateExpandedRows: !0
|
|
821
|
-
}),
|
|
822
|
-
createTable: (e) => {
|
|
823
|
-
let t = !1, n = !1;
|
|
824
|
-
e._autoResetExpanded = () => {
|
|
825
|
-
if (!t) {
|
|
826
|
-
e._queue(() => {
|
|
827
|
-
t = !0;
|
|
828
|
-
});
|
|
829
|
-
return;
|
|
830
|
-
}
|
|
831
|
-
if (e.options.autoResetAll ?? e.options.autoResetExpanded ?? !e.options.manualExpanding) {
|
|
832
|
-
if (n) return;
|
|
833
|
-
n = !0, e._queue(() => {
|
|
834
|
-
e.resetExpanded(), n = !1;
|
|
835
|
-
});
|
|
836
|
-
}
|
|
837
|
-
}, e.setExpanded = (t) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(t), e.toggleAllRowsExpanded = (t) => {
|
|
838
|
-
t ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
|
|
839
|
-
}, e.resetExpanded = (t) => {
|
|
840
|
-
e.setExpanded(t ? {} : e.initialState?.expanded ?? {});
|
|
841
|
-
}, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((e) => e.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (t) => {
|
|
842
|
-
t.persist == null || t.persist(), e.toggleAllRowsExpanded();
|
|
843
|
-
}, e.getIsSomeRowsExpanded = () => {
|
|
844
|
-
let t = e.getState().expanded;
|
|
845
|
-
return t === !0 || Object.values(t).some(Boolean);
|
|
846
|
-
}, e.getIsAllRowsExpanded = () => {
|
|
847
|
-
let t = e.getState().expanded;
|
|
848
|
-
return typeof t == "boolean" ? t === !0 : !(!Object.keys(t).length || e.getRowModel().flatRows.some((e) => !e.getIsExpanded()));
|
|
849
|
-
}, e.getExpandedDepth = () => {
|
|
850
|
-
let t = 0;
|
|
851
|
-
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((e) => {
|
|
852
|
-
let n = e.split(".");
|
|
853
|
-
t = Math.max(t, n.length);
|
|
854
|
-
}), t;
|
|
855
|
-
}, 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());
|
|
856
|
-
},
|
|
857
|
-
createRow: (e, t) => {
|
|
858
|
-
e.toggleExpanded = (n) => {
|
|
859
|
-
t.setExpanded((r) => {
|
|
860
|
-
let i = r === !0 || !!(r != null && r[e.id]), a = {};
|
|
861
|
-
if (r === !0 ? Object.keys(t.getRowModel().rowsById).forEach((e) => {
|
|
862
|
-
a[e] = !0;
|
|
863
|
-
}) : a = r, n ??= !i, !i && n) return {
|
|
864
|
-
...a,
|
|
865
|
-
[e.id]: !0
|
|
866
|
-
};
|
|
867
|
-
if (i && !n) {
|
|
868
|
-
let { [e.id]: t, ...n } = a;
|
|
869
|
-
return n;
|
|
870
|
-
}
|
|
871
|
-
return r;
|
|
872
|
-
});
|
|
873
|
-
}, e.getIsExpanded = () => {
|
|
874
|
-
let n = t.getState().expanded;
|
|
875
|
-
return !!((t.options.getIsRowExpanded == null ? void 0 : t.options.getIsRowExpanded(e)) ?? (n === !0 || n?.[e.id]));
|
|
876
|
-
}, e.getCanExpand = () => {
|
|
877
|
-
var n;
|
|
878
|
-
return (t.options.getRowCanExpand == null ? void 0 : t.options.getRowCanExpand(e)) ?? ((t.options.enableExpanding ?? !0) && !!((n = e.subRows) != null && n.length));
|
|
879
|
-
}, e.getIsAllParentsExpanded = () => {
|
|
880
|
-
let n = !0, r = e;
|
|
881
|
-
for (; n && r.parentId;) r = t.getRow(r.parentId, !0), n = r.getIsExpanded();
|
|
882
|
-
return n;
|
|
883
|
-
}, e.getToggleExpandedHandler = () => {
|
|
884
|
-
let t = e.getCanExpand();
|
|
885
|
-
return () => {
|
|
886
|
-
t && e.toggleExpanded();
|
|
887
|
-
};
|
|
888
|
-
};
|
|
889
|
-
}
|
|
890
|
-
}, ge = 0, _e = 10, ve = () => ({
|
|
891
|
-
pageIndex: ge,
|
|
892
|
-
pageSize: _e
|
|
893
|
-
}), ye = {
|
|
894
|
-
getInitialState: (e) => ({
|
|
895
|
-
...e,
|
|
896
|
-
pagination: {
|
|
897
|
-
...ve(),
|
|
898
|
-
...e?.pagination
|
|
899
|
-
}
|
|
900
|
-
}),
|
|
901
|
-
getDefaultOptions: (e) => ({ onPaginationChange: d("pagination", e) }),
|
|
902
|
-
createTable: (e) => {
|
|
903
|
-
let t = !1, n = !1;
|
|
904
|
-
e._autoResetPageIndex = () => {
|
|
905
|
-
if (!t) {
|
|
906
|
-
e._queue(() => {
|
|
907
|
-
t = !0;
|
|
908
|
-
});
|
|
909
|
-
return;
|
|
910
|
-
}
|
|
911
|
-
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
|
|
912
|
-
if (n) return;
|
|
913
|
-
n = !0, e._queue(() => {
|
|
914
|
-
e.resetPageIndex(), n = !1;
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => u(t, e)), e.resetPagination = (t) => {
|
|
918
|
-
e.setPagination(t ? ve() : e.initialState.pagination ?? ve());
|
|
919
|
-
}, e.setPageIndex = (t) => {
|
|
920
|
-
e.setPagination((n) => {
|
|
921
|
-
let r = u(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
|
|
922
|
-
return r = Math.max(0, Math.min(r, i)), {
|
|
923
|
-
...n,
|
|
924
|
-
pageIndex: r
|
|
925
|
-
};
|
|
926
|
-
});
|
|
927
|
-
}, e.resetPageIndex = (t) => {
|
|
928
|
-
var n;
|
|
929
|
-
e.setPageIndex(t ? ge : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? ge);
|
|
930
|
-
}, e.resetPageSize = (t) => {
|
|
931
|
-
var n;
|
|
932
|
-
e.setPageSize(t ? _e : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? _e);
|
|
933
|
-
}, e.setPageSize = (t) => {
|
|
934
|
-
e.setPagination((e) => {
|
|
935
|
-
let n = Math.max(1, u(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
|
|
936
|
-
return {
|
|
937
|
-
...e,
|
|
938
|
-
pageIndex: i,
|
|
939
|
-
pageSize: n
|
|
940
|
-
};
|
|
941
|
-
});
|
|
942
|
-
}, e.setPageCount = (t) => e.setPagination((n) => {
|
|
943
|
-
let r = u(t, e.options.pageCount ?? -1);
|
|
944
|
-
return typeof r == "number" && (r = Math.max(-1, r)), {
|
|
945
|
-
...n,
|
|
946
|
-
pageCount: r
|
|
947
|
-
};
|
|
948
|
-
}), e.getPageOptions = h(() => [e.getPageCount()], (e) => {
|
|
949
|
-
let t = [];
|
|
950
|
-
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
|
|
951
|
-
}, g(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
952
|
-
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
|
|
953
|
-
return n === -1 || n !== 0 && t < n - 1;
|
|
954
|
-
}, 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;
|
|
955
|
-
}
|
|
956
|
-
}, be = () => ({
|
|
957
|
-
top: [],
|
|
958
|
-
bottom: []
|
|
959
|
-
}), xe = {
|
|
960
|
-
getInitialState: (e) => ({
|
|
961
|
-
rowPinning: be(),
|
|
962
|
-
...e
|
|
963
|
-
}),
|
|
964
|
-
getDefaultOptions: (e) => ({ onRowPinningChange: d("rowPinning", e) }),
|
|
965
|
-
createRow: (e, t) => {
|
|
966
|
-
e.pin = (n, r, i) => {
|
|
967
|
-
let a = r ? e.getLeafRows().map((e) => {
|
|
968
|
-
let { id: t } = e;
|
|
969
|
-
return t;
|
|
970
|
-
}) : [], o = i ? e.getParentRows().map((e) => {
|
|
971
|
-
let { id: t } = e;
|
|
972
|
-
return t;
|
|
973
|
-
}) : [], s = /* @__PURE__ */ new Set([
|
|
974
|
-
...o,
|
|
975
|
-
e.id,
|
|
976
|
-
...a
|
|
977
|
-
]);
|
|
978
|
-
t.setRowPinning((e) => n === "bottom" ? {
|
|
979
|
-
top: (e?.top ?? []).filter((e) => !(s != null && s.has(e))),
|
|
980
|
-
bottom: [...(e?.bottom ?? []).filter((e) => !(s != null && s.has(e))), ...Array.from(s)]
|
|
981
|
-
} : n === "top" ? {
|
|
982
|
-
top: [...(e?.top ?? []).filter((e) => !(s != null && s.has(e))), ...Array.from(s)],
|
|
983
|
-
bottom: (e?.bottom ?? []).filter((e) => !(s != null && s.has(e)))
|
|
984
|
-
} : {
|
|
985
|
-
top: (e?.top ?? []).filter((e) => !(s != null && s.has(e))),
|
|
986
|
-
bottom: (e?.bottom ?? []).filter((e) => !(s != null && s.has(e)))
|
|
987
|
-
});
|
|
988
|
-
}, e.getCanPin = () => {
|
|
989
|
-
let { enableRowPinning: n, enablePinning: r } = t.options;
|
|
990
|
-
return typeof n == "function" ? n(e) : n ?? r ?? !0;
|
|
991
|
-
}, e.getIsPinned = () => {
|
|
992
|
-
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));
|
|
993
|
-
return a ? "top" : o ? "bottom" : !1;
|
|
994
|
-
}, e.getPinnedIndex = () => {
|
|
995
|
-
let n = e.getIsPinned();
|
|
996
|
-
return n ? ((n === "top" ? t.getTopRows() : t.getBottomRows())?.map((e) => {
|
|
997
|
-
let { id: t } = e;
|
|
998
|
-
return t;
|
|
999
|
-
}))?.indexOf(e.id) ?? -1 : -1;
|
|
1000
|
-
};
|
|
1001
|
-
},
|
|
1002
|
-
createTable: (e) => {
|
|
1003
|
-
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? be() : e.initialState?.rowPinning ?? be()), e.getIsSomeRowsPinned = (t) => {
|
|
1004
|
-
let n = e.getState().rowPinning;
|
|
1005
|
-
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
|
|
1006
|
-
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
|
|
1007
|
-
let n = e.getRow(t, !0);
|
|
1008
|
-
return n.getIsAllParentsExpanded() ? n : null;
|
|
1009
|
-
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
|
|
1010
|
-
...e,
|
|
1011
|
-
position: r
|
|
1012
|
-
})), 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(() => [
|
|
1013
|
-
e.getRowModel().rows,
|
|
1014
|
-
e.getState().rowPinning.top,
|
|
1015
|
-
e.getState().rowPinning.bottom
|
|
1016
|
-
], (e, t, n) => {
|
|
1017
|
-
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
|
1018
|
-
return e.filter((e) => !r.has(e.id));
|
|
1019
|
-
}, g(e.options, "debugRows", "getCenterRows"));
|
|
1020
|
-
}
|
|
1021
|
-
}, Se = {
|
|
1022
|
-
getInitialState: (e) => ({
|
|
1023
|
-
rowSelection: {},
|
|
1024
|
-
...e
|
|
1025
|
-
}),
|
|
1026
|
-
getDefaultOptions: (e) => ({
|
|
1027
|
-
onRowSelectionChange: d("rowSelection", e),
|
|
1028
|
-
enableRowSelection: !0,
|
|
1029
|
-
enableMultiRowSelection: !0,
|
|
1030
|
-
enableSubRowSelection: !0
|
|
1031
|
-
}),
|
|
1032
|
-
createTable: (e) => {
|
|
1033
|
-
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) => {
|
|
1034
|
-
e.setRowSelection((n) => {
|
|
1035
|
-
t = t === void 0 ? !e.getIsAllRowsSelected() : t;
|
|
1036
|
-
let r = { ...n }, i = e.getPreGroupedRowModel().flatRows;
|
|
1037
|
-
return t ? i.forEach((e) => {
|
|
1038
|
-
e.getCanSelect() && (r[e.id] = !0);
|
|
1039
|
-
}) : i.forEach((e) => {
|
|
1040
|
-
delete r[e.id];
|
|
1041
|
-
}), r;
|
|
1042
|
-
});
|
|
1043
|
-
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
|
|
1044
|
-
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
|
|
1045
|
-
return e.getRowModel().rows.forEach((t) => {
|
|
1046
|
-
Ce(i, t.id, r, !0, e);
|
|
1047
|
-
}), i;
|
|
1048
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = h(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? we(e, n) : {
|
|
1049
|
-
rows: [],
|
|
1050
|
-
flatRows: [],
|
|
1051
|
-
rowsById: {}
|
|
1052
|
-
}, g(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = h(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? we(e, n) : {
|
|
1053
|
-
rows: [],
|
|
1054
|
-
flatRows: [],
|
|
1055
|
-
rowsById: {}
|
|
1056
|
-
}, g(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = h(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? we(e, n) : {
|
|
1057
|
-
rows: [],
|
|
1058
|
-
flatRows: [],
|
|
1059
|
-
rowsById: {}
|
|
1060
|
-
}, g(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1061
|
-
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
|
|
1062
|
-
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
|
|
1063
|
-
}, e.getIsAllPageRowsSelected = () => {
|
|
1064
|
-
let t = e.getPaginationRowModel().flatRows.filter((e) => e.getCanSelect()), { rowSelection: n } = e.getState(), r = !!t.length;
|
|
1065
|
-
return r && t.some((e) => !n[e.id]) && (r = !1), r;
|
|
1066
|
-
}, e.getIsSomeRowsSelected = () => {
|
|
1067
|
-
let t = Object.keys(e.getState().rowSelection ?? {}).length;
|
|
1068
|
-
return t > 0 && t < e.getFilteredRowModel().flatRows.length;
|
|
1069
|
-
}, e.getIsSomePageRowsSelected = () => {
|
|
1070
|
-
let t = e.getPaginationRowModel().flatRows;
|
|
1071
|
-
return !e.getIsAllPageRowsSelected() && t.filter((e) => e.getCanSelect()).some((e) => e.getIsSelected() || e.getIsSomeSelected());
|
|
1072
|
-
}, e.getToggleAllRowsSelectedHandler = () => (t) => {
|
|
1073
|
-
e.toggleAllRowsSelected(t.target.checked);
|
|
1074
|
-
}, e.getToggleAllPageRowsSelectedHandler = () => (t) => {
|
|
1075
|
-
e.toggleAllPageRowsSelected(t.target.checked);
|
|
1076
|
-
};
|
|
1077
|
-
},
|
|
1078
|
-
createRow: (e, t) => {
|
|
1079
|
-
e.toggleSelected = (n, r) => {
|
|
1080
|
-
let i = e.getIsSelected();
|
|
1081
|
-
t.setRowSelection((a) => {
|
|
1082
|
-
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
|
|
1083
|
-
let o = { ...a };
|
|
1084
|
-
return Ce(o, e.id, n, r?.selectChildren ?? !0, t), o;
|
|
1085
|
-
});
|
|
1086
|
-
}, e.getIsSelected = () => {
|
|
1087
|
-
let { rowSelection: n } = t.getState();
|
|
1088
|
-
return Te(e, n);
|
|
1089
|
-
}, e.getIsSomeSelected = () => {
|
|
1090
|
-
let { rowSelection: n } = t.getState();
|
|
1091
|
-
return Ee(e, n) === "some";
|
|
1092
|
-
}, e.getIsAllSubRowsSelected = () => {
|
|
1093
|
-
let { rowSelection: n } = t.getState();
|
|
1094
|
-
return Ee(e, n) === "all";
|
|
1095
|
-
}, 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 = () => {
|
|
1096
|
-
let t = e.getCanSelect();
|
|
1097
|
-
return (n) => {
|
|
1098
|
-
t && e.toggleSelected(n.target?.checked);
|
|
1099
|
-
};
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
}, Ce = (e, t, n, r, i) => {
|
|
1103
|
-
var a;
|
|
1104
|
-
let o = i.getRow(t, !0);
|
|
1105
|
-
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) => Ce(e, t.id, n, r, i));
|
|
1106
|
-
};
|
|
1107
|
-
function we(e, t) {
|
|
1108
|
-
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
|
|
1109
|
-
return e.map((e) => {
|
|
1110
|
-
var t;
|
|
1111
|
-
let o = Te(e, n);
|
|
1112
|
-
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
|
|
1113
|
-
...e,
|
|
1114
|
-
subRows: a(e.subRows)
|
|
1115
|
-
}), o) return e;
|
|
1116
|
-
}).filter(Boolean);
|
|
1117
|
-
};
|
|
1118
|
-
return {
|
|
1119
|
-
rows: a(t.rows),
|
|
1120
|
-
flatRows: r,
|
|
1121
|
-
rowsById: i
|
|
1122
|
-
};
|
|
1123
|
-
}
|
|
1124
|
-
function Te(e, t) {
|
|
1125
|
-
return t[e.id] ?? !1;
|
|
1126
|
-
}
|
|
1127
|
-
function Ee(e, t, n) {
|
|
1128
|
-
var r;
|
|
1129
|
-
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
1130
|
-
let i = !0, a = !1;
|
|
1131
|
-
return e.subRows.forEach((e) => {
|
|
1132
|
-
if (!(a && !i) && (e.getCanSelect() && (Te(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
1133
|
-
let n = Ee(e, t);
|
|
1134
|
-
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
1135
|
-
}
|
|
1136
|
-
}), i ? "all" : a ? "some" : !1;
|
|
1137
|
-
}
|
|
1138
|
-
var De = /([0-9]+)/gm, Oe = (e, t, n) => Fe(B(e.getValue(n)).toLowerCase(), B(t.getValue(n)).toLowerCase()), ke = (e, t, n) => Fe(B(e.getValue(n)), B(t.getValue(n))), Ae = (e, t, n) => Pe(B(e.getValue(n)).toLowerCase(), B(t.getValue(n)).toLowerCase()), je = (e, t, n) => Pe(B(e.getValue(n)), B(t.getValue(n))), Me = (e, t, n) => {
|
|
1139
|
-
let r = e.getValue(n), i = t.getValue(n);
|
|
1140
|
-
return r > i ? 1 : r < i ? -1 : 0;
|
|
1141
|
-
}, Ne = (e, t, n) => Pe(e.getValue(n), t.getValue(n));
|
|
1142
|
-
function Pe(e, t) {
|
|
1143
|
-
return e === t ? 0 : e > t ? 1 : -1;
|
|
1144
|
-
}
|
|
1145
|
-
function B(e) {
|
|
1146
|
-
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1147
|
-
}
|
|
1148
|
-
function Fe(e, t) {
|
|
1149
|
-
let n = e.split(De).filter(Boolean), r = t.split(De).filter(Boolean);
|
|
1150
|
-
for (; n.length && r.length;) {
|
|
1151
|
-
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
|
|
1152
|
-
if (isNaN(o[0])) {
|
|
1153
|
-
if (e > t) return 1;
|
|
1154
|
-
if (t > e) return -1;
|
|
1155
|
-
continue;
|
|
1156
|
-
}
|
|
1157
|
-
if (isNaN(o[1])) return isNaN(i) ? -1 : 1;
|
|
1158
|
-
if (i > a) return 1;
|
|
1159
|
-
if (a > i) return -1;
|
|
1160
|
-
}
|
|
1161
|
-
return n.length - r.length;
|
|
1162
|
-
}
|
|
1163
|
-
var V = {
|
|
1164
|
-
alphanumeric: Oe,
|
|
1165
|
-
alphanumericCaseSensitive: ke,
|
|
1166
|
-
text: Ae,
|
|
1167
|
-
textCaseSensitive: je,
|
|
1168
|
-
datetime: Me,
|
|
1169
|
-
basic: Ne
|
|
1170
|
-
}, Ie = [
|
|
1171
|
-
ne,
|
|
1172
|
-
fe,
|
|
1173
|
-
j,
|
|
1174
|
-
N,
|
|
1175
|
-
b,
|
|
1176
|
-
k,
|
|
1177
|
-
pe,
|
|
1178
|
-
me,
|
|
1179
|
-
{
|
|
1180
|
-
getInitialState: (e) => ({
|
|
1181
|
-
sorting: [],
|
|
1182
|
-
...e
|
|
1183
|
-
}),
|
|
1184
|
-
getDefaultColumnDef: () => ({
|
|
1185
|
-
sortingFn: "auto",
|
|
1186
|
-
sortUndefined: 1
|
|
1187
|
-
}),
|
|
1188
|
-
getDefaultOptions: (e) => ({
|
|
1189
|
-
onSortingChange: d("sorting", e),
|
|
1190
|
-
isMultiSortEvent: (e) => e.shiftKey
|
|
1191
|
-
}),
|
|
1192
|
-
createColumn: (e, t) => {
|
|
1193
|
-
e.getAutoSortingFn = () => {
|
|
1194
|
-
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
|
|
1195
|
-
for (let t of n) {
|
|
1196
|
-
let n = t?.getValue(e.id);
|
|
1197
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return V.datetime;
|
|
1198
|
-
if (typeof n == "string" && (r = !0, n.split(De).length > 1)) return V.alphanumeric;
|
|
1199
|
-
}
|
|
1200
|
-
return r ? V.text : V.basic;
|
|
1201
|
-
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
|
|
1202
|
-
if (!e) throw Error();
|
|
1203
|
-
return f(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? V[e.columnDef.sortingFn];
|
|
1204
|
-
}, e.toggleSorting = (n, r) => {
|
|
1205
|
-
let i = e.getNextSortingOrder(), a = n != null;
|
|
1206
|
-
t.setSorting((o) => {
|
|
1207
|
-
let s = o?.find((t) => t.id === e.id), c = o?.findIndex((t) => t.id === e.id), l = [], u, d = a ? n : i === "desc";
|
|
1208
|
-
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, {
|
|
1209
|
-
id: e.id,
|
|
1210
|
-
desc: d
|
|
1211
|
-
}], l.splice(0, l.length - (t.options.maxMultiSortColCount ?? 2 ** 53 - 1))) : l = u === "toggle" ? o.map((t) => t.id === e.id ? {
|
|
1212
|
-
...t,
|
|
1213
|
-
desc: d
|
|
1214
|
-
} : t) : u === "remove" ? o.filter((t) => t.id !== e.id) : [{
|
|
1215
|
-
id: e.id,
|
|
1216
|
-
desc: d
|
|
1217
|
-
}], l;
|
|
1218
|
-
});
|
|
1219
|
-
}, e.getFirstSortDir = () => e.columnDef.sortDescFirst ?? t.options.sortDescFirst ?? e.getAutoSortDir() === "desc" ? "desc" : "asc", e.getNextSortingOrder = (n) => {
|
|
1220
|
-
let r = e.getFirstSortDir(), i = e.getIsSorted();
|
|
1221
|
-
return i ? i !== r && (t.options.enableSortingRemoval ?? !0) && (!n || (t.options.enableMultiRemove ?? !0)) ? !1 : i === "desc" ? "asc" : "desc" : r;
|
|
1222
|
-
}, e.getCanSort = () => (e.columnDef.enableSorting ?? !0) && (t.options.enableSorting ?? !0) && !!e.accessorFn, e.getCanMultiSort = () => e.columnDef.enableMultiSort ?? t.options.enableMultiSort ?? !!e.accessorFn, e.getIsSorted = () => {
|
|
1223
|
-
let n = t.getState().sorting?.find((t) => t.id === e.id);
|
|
1224
|
-
return n ? n.desc ? "desc" : "asc" : !1;
|
|
1225
|
-
}, e.getSortIndex = () => t.getState().sorting?.findIndex((t) => t.id === e.id) ?? -1, e.clearSorting = () => {
|
|
1226
|
-
t.setSorting((t) => t != null && t.length ? t.filter((t) => t.id !== e.id) : []);
|
|
1227
|
-
}, e.getToggleSortingHandler = () => {
|
|
1228
|
-
let n = e.getCanSort();
|
|
1229
|
-
return (r) => {
|
|
1230
|
-
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));
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
},
|
|
1234
|
-
createTable: (e) => {
|
|
1235
|
-
e.setSorting = (t) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(t), e.resetSorting = (t) => {
|
|
1236
|
-
e.setSorting(t ? [] : e.initialState?.sorting ?? []);
|
|
1237
|
-
}, 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());
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
ce,
|
|
1241
|
-
he,
|
|
1242
|
-
ye,
|
|
1243
|
-
xe,
|
|
1244
|
-
Se,
|
|
1245
|
-
I
|
|
1246
|
-
];
|
|
1247
|
-
function Le(e) {
|
|
1248
|
-
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1249
|
-
let t = [...Ie, ...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) : {
|
|
1250
|
-
...r,
|
|
1251
|
-
...e
|
|
1252
|
-
}, a = { ...e.initialState ?? {} };
|
|
1253
|
-
n._features.forEach((e) => {
|
|
1254
|
-
a = (e.getInitialState == null ? void 0 : e.getInitialState(a)) ?? a;
|
|
1255
|
-
});
|
|
1256
|
-
let o = [], s = !1, c = {
|
|
1257
|
-
_features: t,
|
|
1258
|
-
options: {
|
|
1259
|
-
...r,
|
|
1260
|
-
...e
|
|
1261
|
-
},
|
|
1262
|
-
initialState: a,
|
|
1263
|
-
_queue: (e) => {
|
|
1264
|
-
o.push(e), s || (s = !0, Promise.resolve().then(() => {
|
|
1265
|
-
for (; o.length;) o.shift()();
|
|
1266
|
-
s = !1;
|
|
1267
|
-
}).catch((e) => setTimeout(() => {
|
|
1268
|
-
throw e;
|
|
1269
|
-
})));
|
|
1270
|
-
},
|
|
1271
|
-
reset: () => {
|
|
1272
|
-
n.setState(n.initialState);
|
|
1273
|
-
},
|
|
1274
|
-
setOptions: (e) => {
|
|
1275
|
-
let t = u(e, n.options);
|
|
1276
|
-
n.options = i(t);
|
|
1277
|
-
},
|
|
1278
|
-
getState: () => n.options.state,
|
|
1279
|
-
setState: (e) => {
|
|
1280
|
-
n.options.onStateChange == null || n.options.onStateChange(e);
|
|
1281
|
-
},
|
|
1282
|
-
_getRowId: (e, t, r) => (n.options.getRowId == null ? void 0 : n.options.getRowId(e, t, r)) ?? `${r ? [r.id, t].join(".") : t}`,
|
|
1283
|
-
getCoreRowModel: () => (n._getCoreRowModel ||= n.options.getCoreRowModel(n), n._getCoreRowModel()),
|
|
1284
|
-
getRowModel: () => n.getPaginationRowModel(),
|
|
1285
|
-
getRow: (e, t) => {
|
|
1286
|
-
let r = (t ? n.getPrePaginationRowModel() : n.getRowModel()).rowsById[e];
|
|
1287
|
-
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw process.env.NODE_ENV === "production" ? Error() : Error(`getRow could not find row with ID: ${e}`);
|
|
1288
|
-
return r;
|
|
1289
|
-
},
|
|
1290
|
-
_getDefaultColumnDef: h(() => [n.options.defaultColumn], (e) => (e ??= {}, {
|
|
1291
|
-
header: (e) => {
|
|
1292
|
-
let t = e.header.column.columnDef;
|
|
1293
|
-
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
|
|
1294
|
-
},
|
|
1295
|
-
cell: (e) => {
|
|
1296
|
-
var t;
|
|
1297
|
-
return ((t = e.renderValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;
|
|
1298
|
-
},
|
|
1299
|
-
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
|
|
1300
|
-
...e
|
|
1301
|
-
}), g(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1302
|
-
_getColumnDefs: () => n.options.columns,
|
|
1303
|
-
getAllColumns: h(() => [n._getColumnDefs()], (e) => {
|
|
1304
|
-
let t = function(e, r, i) {
|
|
1305
|
-
return i === void 0 && (i = 0), e.map((e) => {
|
|
1306
|
-
let a = te(n, e, i, r), o = e;
|
|
1307
|
-
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
|
|
1308
|
-
});
|
|
1309
|
-
};
|
|
1310
|
-
return t(e);
|
|
1311
|
-
}, g(e, "debugColumns", "getAllColumns")),
|
|
1312
|
-
getAllFlatColumns: h(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), g(e, "debugColumns", "getAllFlatColumns")),
|
|
1313
|
-
_getAllFlatColumnsById: h(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), g(e, "debugColumns", "getAllFlatColumnsById")),
|
|
1314
|
-
getAllLeafColumns: h(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), g(e, "debugColumns", "getAllLeafColumns")),
|
|
1315
|
-
getColumn: (e) => {
|
|
1316
|
-
let t = n._getAllFlatColumnsById()[e];
|
|
1317
|
-
return process.env.NODE_ENV !== "production" && !t && console.error(`[Table] Column with id '${e}' does not exist.`), t;
|
|
1318
|
-
}
|
|
1319
|
-
};
|
|
1320
|
-
Object.assign(n, c);
|
|
1321
|
-
for (let e = 0; e < n._features.length; e++) {
|
|
1322
|
-
let t = n._features[e];
|
|
1323
|
-
t == null || t.createTable == null || t.createTable(n);
|
|
1324
|
-
}
|
|
1325
|
-
return n;
|
|
1326
|
-
}
|
|
1327
|
-
function Re() {
|
|
1328
|
-
return (e) => h(() => [e.options.data], (t) => {
|
|
1329
|
-
let n = {
|
|
1330
|
-
rows: [],
|
|
1331
|
-
flatRows: [],
|
|
1332
|
-
rowsById: {}
|
|
1333
|
-
}, r = function(t, i, a) {
|
|
1334
|
-
i === void 0 && (i = 0);
|
|
1335
|
-
let o = [];
|
|
1336
|
-
for (let c = 0; c < t.length; c++) {
|
|
1337
|
-
let l = re(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
|
|
1338
|
-
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
|
|
1339
|
-
var s;
|
|
1340
|
-
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
return o;
|
|
1344
|
-
};
|
|
1345
|
-
return n.rows = r(t), n;
|
|
1346
|
-
}, g(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
1347
|
-
}
|
|
1348
|
-
//#endregion
|
|
1349
|
-
//#region node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
1350
|
-
function ze(t, n) {
|
|
1351
|
-
return t ? Be(t) ? /*#__PURE__*/ e.createElement(t, n) : t : null;
|
|
1352
|
-
}
|
|
1353
|
-
function Be(e) {
|
|
1354
|
-
return Ve(e) || typeof e == "function" || He(e);
|
|
1355
|
-
}
|
|
1356
|
-
function Ve(e) {
|
|
1357
|
-
return typeof e == "function" && (() => {
|
|
1358
|
-
let t = Object.getPrototypeOf(e);
|
|
1359
|
-
return t.prototype && t.prototype.isReactComponent;
|
|
1360
|
-
})();
|
|
1361
|
-
}
|
|
1362
|
-
function He(e) {
|
|
1363
|
-
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
1364
|
-
}
|
|
1365
|
-
function Ue(t) {
|
|
1366
|
-
let n = {
|
|
1367
|
-
state: {},
|
|
1368
|
-
onStateChange: () => {},
|
|
1369
|
-
renderFallbackValue: null,
|
|
1370
|
-
...t
|
|
1371
|
-
}, [r] = e.useState(() => ({ current: Le(n) })), [i, a] = e.useState(() => r.current.initialState);
|
|
1372
|
-
return r.current.setOptions((e) => ({
|
|
1373
|
-
...e,
|
|
1374
|
-
...t,
|
|
1375
|
-
state: {
|
|
1376
|
-
...i,
|
|
1377
|
-
...t.state
|
|
1378
|
-
},
|
|
1379
|
-
onStateChange: (e) => {
|
|
1380
|
-
a(e), t.onStateChange == null || t.onStateChange(e);
|
|
1381
|
-
}
|
|
1382
|
-
})), r.current;
|
|
1383
|
-
}
|
|
1384
|
-
//#endregion
|
|
1385
|
-
//#region src/package/contexts/GridContext.tsx
|
|
1386
|
-
var We = t(void 0), Ge = ({ children: e, payload: t, columns: n }) => {
|
|
1387
|
-
let i = Ue({
|
|
24
|
+
})), p = (/* @__PURE__ */ l(((e, t) => {
|
|
25
|
+
process.env.NODE_ENV === "production" ? t.exports = d() : t.exports = f();
|
|
26
|
+
})))(), m = e(void 0), h = ({ children: e, payload: t, columns: n }) => {
|
|
27
|
+
let o = i({
|
|
1388
28
|
data: t?.data ?? [],
|
|
1389
29
|
columns: n,
|
|
1390
|
-
getCoreRowModel:
|
|
30
|
+
getCoreRowModel: r()
|
|
1391
31
|
});
|
|
1392
|
-
return /* @__PURE__ */
|
|
1393
|
-
value: { table:
|
|
32
|
+
return /* @__PURE__ */ a(m.Provider, {
|
|
33
|
+
value: { table: o },
|
|
1394
34
|
children: e
|
|
1395
35
|
});
|
|
1396
36
|
};
|
|
1397
|
-
function
|
|
1398
|
-
let e =
|
|
37
|
+
function g() {
|
|
38
|
+
let e = t(m);
|
|
1399
39
|
if (!e) throw Error("useGrid must be used within a GridContextProvider");
|
|
1400
40
|
return e;
|
|
1401
41
|
}
|
|
1402
42
|
//#endregion
|
|
1403
|
-
//#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
1404
|
-
function qe(e) {
|
|
1405
|
-
var t, n, r = "";
|
|
1406
|
-
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1407
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1408
|
-
var i = e.length;
|
|
1409
|
-
for (t = 0; t < i; t++) e[t] && (n = qe(e[t])) && (r && (r += " "), r += n);
|
|
1410
|
-
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1411
|
-
return r;
|
|
1412
|
-
}
|
|
1413
|
-
function Je() {
|
|
1414
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qe(e)) && (r && (r += " "), r += t);
|
|
1415
|
-
return r;
|
|
1416
|
-
}
|
|
1417
|
-
//#endregion
|
|
1418
|
-
//#region node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
1419
|
-
var Ye = (e, t) => {
|
|
1420
|
-
let n = Array(e.length + t.length);
|
|
1421
|
-
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
1422
|
-
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
1423
|
-
return n;
|
|
1424
|
-
}, Xe = (e, t) => ({
|
|
1425
|
-
classGroupId: e,
|
|
1426
|
-
validator: t
|
|
1427
|
-
}), Ze = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
1428
|
-
nextPart: e,
|
|
1429
|
-
validators: t,
|
|
1430
|
-
classGroupId: n
|
|
1431
|
-
}), Qe = "-", $e = [], et = "arbitrary..", tt = (e) => {
|
|
1432
|
-
let t = it(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
1433
|
-
return {
|
|
1434
|
-
getClassGroupId: (e) => {
|
|
1435
|
-
if (e.startsWith("[") && e.endsWith("]")) return rt(e);
|
|
1436
|
-
let n = e.split(Qe);
|
|
1437
|
-
return nt(n, +(n[0] === "" && n.length > 1), t);
|
|
1438
|
-
},
|
|
1439
|
-
getConflictingClassGroupIds: (e, t) => {
|
|
1440
|
-
if (t) {
|
|
1441
|
-
let t = r[e], i = n[e];
|
|
1442
|
-
return t ? i ? Ye(i, t) : t : i || $e;
|
|
1443
|
-
}
|
|
1444
|
-
return n[e] || $e;
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
|
-
}, nt = (e, t, n) => {
|
|
1448
|
-
if (e.length - t === 0) return n.classGroupId;
|
|
1449
|
-
let r = e[t], i = n.nextPart.get(r);
|
|
1450
|
-
if (i) {
|
|
1451
|
-
let n = nt(e, t + 1, i);
|
|
1452
|
-
if (n) return n;
|
|
1453
|
-
}
|
|
1454
|
-
let a = n.validators;
|
|
1455
|
-
if (a === null) return;
|
|
1456
|
-
let o = t === 0 ? e.join(Qe) : e.slice(t).join(Qe), s = a.length;
|
|
1457
|
-
for (let e = 0; e < s; e++) {
|
|
1458
|
-
let t = a[e];
|
|
1459
|
-
if (t.validator(o)) return t.classGroupId;
|
|
1460
|
-
}
|
|
1461
|
-
}, rt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1462
|
-
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
1463
|
-
return r ? et + r : void 0;
|
|
1464
|
-
})(), it = (e) => {
|
|
1465
|
-
let { theme: t, classGroups: n } = e;
|
|
1466
|
-
return at(n, t);
|
|
1467
|
-
}, at = (e, t) => {
|
|
1468
|
-
let n = Ze();
|
|
1469
|
-
for (let r in e) {
|
|
1470
|
-
let i = e[r];
|
|
1471
|
-
ot(i, n, r, t);
|
|
1472
|
-
}
|
|
1473
|
-
return n;
|
|
1474
|
-
}, ot = (e, t, n, r) => {
|
|
1475
|
-
let i = e.length;
|
|
1476
|
-
for (let a = 0; a < i; a++) {
|
|
1477
|
-
let i = e[a];
|
|
1478
|
-
st(i, t, n, r);
|
|
1479
|
-
}
|
|
1480
|
-
}, st = (e, t, n, r) => {
|
|
1481
|
-
if (typeof e == "string") {
|
|
1482
|
-
ct(e, t, n);
|
|
1483
|
-
return;
|
|
1484
|
-
}
|
|
1485
|
-
if (typeof e == "function") {
|
|
1486
|
-
lt(e, t, n, r);
|
|
1487
|
-
return;
|
|
1488
|
-
}
|
|
1489
|
-
ut(e, t, n, r);
|
|
1490
|
-
}, ct = (e, t, n) => {
|
|
1491
|
-
let r = e === "" ? t : dt(t, e);
|
|
1492
|
-
r.classGroupId = n;
|
|
1493
|
-
}, lt = (e, t, n, r) => {
|
|
1494
|
-
if (ft(e)) {
|
|
1495
|
-
ot(e(r), t, n, r);
|
|
1496
|
-
return;
|
|
1497
|
-
}
|
|
1498
|
-
t.validators === null && (t.validators = []), t.validators.push(Xe(n, e));
|
|
1499
|
-
}, ut = (e, t, n, r) => {
|
|
1500
|
-
let i = Object.entries(e), a = i.length;
|
|
1501
|
-
for (let e = 0; e < a; e++) {
|
|
1502
|
-
let [a, o] = i[e];
|
|
1503
|
-
ot(o, dt(t, a), n, r);
|
|
1504
|
-
}
|
|
1505
|
-
}, dt = (e, t) => {
|
|
1506
|
-
let n = e, r = t.split(Qe), i = r.length;
|
|
1507
|
-
for (let e = 0; e < i; e++) {
|
|
1508
|
-
let t = r[e], i = n.nextPart.get(t);
|
|
1509
|
-
i || (i = Ze(), n.nextPart.set(t, i)), n = i;
|
|
1510
|
-
}
|
|
1511
|
-
return n;
|
|
1512
|
-
}, ft = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, pt = (e) => {
|
|
1513
|
-
if (e < 1) return {
|
|
1514
|
-
get: () => void 0,
|
|
1515
|
-
set: () => {}
|
|
1516
|
-
};
|
|
1517
|
-
let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
|
|
1518
|
-
n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
|
|
1519
|
-
};
|
|
1520
|
-
return {
|
|
1521
|
-
get(e) {
|
|
1522
|
-
let t = n[e];
|
|
1523
|
-
if (t !== void 0) return t;
|
|
1524
|
-
if ((t = r[e]) !== void 0) return i(e, t), t;
|
|
1525
|
-
},
|
|
1526
|
-
set(e, t) {
|
|
1527
|
-
e in n ? n[e] = t : i(e, t);
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
}, mt = "!", ht = ":", gt = [], _t = (e, t, n, r, i) => ({
|
|
1531
|
-
modifiers: e,
|
|
1532
|
-
hasImportantModifier: t,
|
|
1533
|
-
baseClassName: n,
|
|
1534
|
-
maybePostfixModifierPosition: r,
|
|
1535
|
-
isExternal: i
|
|
1536
|
-
}), vt = (e) => {
|
|
1537
|
-
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
1538
|
-
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
1539
|
-
for (let s = 0; s < o; s++) {
|
|
1540
|
-
let o = e[s];
|
|
1541
|
-
if (n === 0 && r === 0) {
|
|
1542
|
-
if (o === ht) {
|
|
1543
|
-
t.push(e.slice(i, s)), i = s + 1;
|
|
1544
|
-
continue;
|
|
1545
|
-
}
|
|
1546
|
-
if (o === "/") {
|
|
1547
|
-
a = s;
|
|
1548
|
-
continue;
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
1552
|
-
}
|
|
1553
|
-
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
1554
|
-
s.endsWith(mt) ? (c = s.slice(0, -1), l = !0) : s.startsWith(mt) && (c = s.slice(1), l = !0);
|
|
1555
|
-
let u = a && a > i ? a - i : void 0;
|
|
1556
|
-
return _t(t, l, c, u);
|
|
1557
|
-
};
|
|
1558
|
-
if (t) {
|
|
1559
|
-
let e = t + ht, n = r;
|
|
1560
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : _t(gt, !1, t, void 0, !0);
|
|
1561
|
-
}
|
|
1562
|
-
if (n) {
|
|
1563
|
-
let e = r;
|
|
1564
|
-
r = (t) => n({
|
|
1565
|
-
className: t,
|
|
1566
|
-
parseClassName: e
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
return r;
|
|
1570
|
-
}, yt = (e) => {
|
|
1571
|
-
let t = /* @__PURE__ */ new Map();
|
|
1572
|
-
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
1573
|
-
t.set(e, 1e6 + n);
|
|
1574
|
-
}), (e) => {
|
|
1575
|
-
let n = [], r = [];
|
|
1576
|
-
for (let i = 0; i < e.length; i++) {
|
|
1577
|
-
let a = e[i], o = a[0] === "[", s = t.has(a);
|
|
1578
|
-
o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
|
|
1579
|
-
}
|
|
1580
|
-
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
1581
|
-
};
|
|
1582
|
-
}, bt = (e) => ({
|
|
1583
|
-
cache: pt(e.cacheSize),
|
|
1584
|
-
parseClassName: vt(e),
|
|
1585
|
-
sortModifiers: yt(e),
|
|
1586
|
-
postfixLookupClassGroupIds: xt(e),
|
|
1587
|
-
...tt(e)
|
|
1588
|
-
}), xt = (e) => {
|
|
1589
|
-
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
1590
|
-
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
1591
|
-
return t;
|
|
1592
|
-
}, St = /\s+/, Ct = (e, t) => {
|
|
1593
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(St), l = "";
|
|
1594
|
-
for (let e = c.length - 1; e >= 0; --e) {
|
|
1595
|
-
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
1596
|
-
if (u) {
|
|
1597
|
-
l = t + (l.length > 0 ? " " + l : l);
|
|
1598
|
-
continue;
|
|
1599
|
-
}
|
|
1600
|
-
let h = !!m, g;
|
|
1601
|
-
if (h) {
|
|
1602
|
-
g = r(p.substring(0, m));
|
|
1603
|
-
let e = g && o[g] ? r(p) : void 0;
|
|
1604
|
-
e && e !== g && (g = e, h = !1);
|
|
1605
|
-
} else g = r(p);
|
|
1606
|
-
if (!g) {
|
|
1607
|
-
if (!h) {
|
|
1608
|
-
l = t + (l.length > 0 ? " " + l : l);
|
|
1609
|
-
continue;
|
|
1610
|
-
}
|
|
1611
|
-
if (g = r(p), !g) {
|
|
1612
|
-
l = t + (l.length > 0 ? " " + l : l);
|
|
1613
|
-
continue;
|
|
1614
|
-
}
|
|
1615
|
-
h = !1;
|
|
1616
|
-
}
|
|
1617
|
-
let ee = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), te = f ? ee + mt : ee, _ = te + g;
|
|
1618
|
-
if (s.indexOf(_) > -1) continue;
|
|
1619
|
-
s.push(_);
|
|
1620
|
-
let v = i(g, h);
|
|
1621
|
-
for (let e = 0; e < v.length; ++e) {
|
|
1622
|
-
let t = v[e];
|
|
1623
|
-
s.push(te + t);
|
|
1624
|
-
}
|
|
1625
|
-
l = t + (l.length > 0 ? " " + l : l);
|
|
1626
|
-
}
|
|
1627
|
-
return l;
|
|
1628
|
-
}, wt = (...e) => {
|
|
1629
|
-
let t = 0, n, r, i = "";
|
|
1630
|
-
for (; t < e.length;) (n = e[t++]) && (r = Tt(n)) && (i && (i += " "), i += r);
|
|
1631
|
-
return i;
|
|
1632
|
-
}, Tt = (e) => {
|
|
1633
|
-
if (typeof e == "string") return e;
|
|
1634
|
-
let t, n = "";
|
|
1635
|
-
for (let r = 0; r < e.length; r++) e[r] && (t = Tt(e[r])) && (n && (n += " "), n += t);
|
|
1636
|
-
return n;
|
|
1637
|
-
}, Et = (e, ...t) => {
|
|
1638
|
-
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) => {
|
|
1639
|
-
let t = r(e);
|
|
1640
|
-
if (t) return t;
|
|
1641
|
-
let a = Ct(e, n);
|
|
1642
|
-
return i(e, a), a;
|
|
1643
|
-
};
|
|
1644
|
-
return a = o, (...e) => a(wt(...e));
|
|
1645
|
-
}, Dt = [], H = (e) => {
|
|
1646
|
-
let t = (t) => t[e] || Dt;
|
|
1647
|
-
return t.isThemeGetter = !0, t;
|
|
1648
|
-
}, Ot = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, kt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, At = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, jt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mt = /\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$/, Nt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Pt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ft = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (e) => At.test(e), W = (e) => !!e && !Number.isNaN(Number(e)), G = (e) => !!e && Number.isInteger(Number(e)), It = (e) => e.endsWith("%") && W(e.slice(0, -1)), K = (e) => jt.test(e), Lt = () => !0, Rt = (e) => Mt.test(e) && !Nt.test(e), zt = () => !1, Bt = (e) => Pt.test(e), Vt = (e) => Ft.test(e), Ht = (e) => !q(e) && !Y(e), Ut = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Wt = (e) => Z(e, on, zt), q = (e) => Ot.test(e), J = (e) => Z(e, sn, Rt), Gt = (e) => Z(e, cn, W), Kt = (e) => Z(e, un, Lt), qt = (e) => Z(e, ln, zt), Jt = (e) => Z(e, rn, zt), Yt = (e) => Z(e, an, Vt), Xt = (e) => Z(e, dn, Bt), Y = (e) => kt.test(e), X = (e) => Q(e, sn), Zt = (e) => Q(e, ln), Qt = (e) => Q(e, rn), $t = (e) => Q(e, on), en = (e) => Q(e, an), tn = (e) => Q(e, dn, !0), nn = (e) => Q(e, un, !0), Z = (e, t, n) => {
|
|
1649
|
-
let r = Ot.exec(e);
|
|
1650
|
-
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1651
|
-
}, Q = (e, t, n = !1) => {
|
|
1652
|
-
let r = kt.exec(e);
|
|
1653
|
-
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1654
|
-
}, rn = (e) => e === "position" || e === "percentage", an = (e) => e === "image" || e === "url", on = (e) => e === "length" || e === "size" || e === "bg-size", sn = (e) => e === "length", cn = (e) => e === "number", ln = (e) => e === "family-name", un = (e) => e === "number" || e === "weight", dn = (e) => e === "shadow", fn = /*#__PURE__*/ Et(() => {
|
|
1655
|
-
let e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), i = H("tracking"), a = H("leading"), o = H("breakpoint"), s = H("container"), c = H("spacing"), l = H("radius"), u = H("shadow"), d = H("inset-shadow"), f = H("text-shadow"), p = H("drop-shadow"), m = H("blur"), h = H("perspective"), g = H("aspect"), ee = H("ease"), te = H("animate"), _ = () => [
|
|
1656
|
-
"auto",
|
|
1657
|
-
"avoid",
|
|
1658
|
-
"all",
|
|
1659
|
-
"avoid-page",
|
|
1660
|
-
"page",
|
|
1661
|
-
"left",
|
|
1662
|
-
"right",
|
|
1663
|
-
"column"
|
|
1664
|
-
], v = () => [
|
|
1665
|
-
"center",
|
|
1666
|
-
"top",
|
|
1667
|
-
"bottom",
|
|
1668
|
-
"left",
|
|
1669
|
-
"right",
|
|
1670
|
-
"top-left",
|
|
1671
|
-
"left-top",
|
|
1672
|
-
"top-right",
|
|
1673
|
-
"right-top",
|
|
1674
|
-
"bottom-right",
|
|
1675
|
-
"right-bottom",
|
|
1676
|
-
"bottom-left",
|
|
1677
|
-
"left-bottom"
|
|
1678
|
-
], ne = () => [
|
|
1679
|
-
...v(),
|
|
1680
|
-
Y,
|
|
1681
|
-
q
|
|
1682
|
-
], y = () => [
|
|
1683
|
-
"auto",
|
|
1684
|
-
"hidden",
|
|
1685
|
-
"clip",
|
|
1686
|
-
"visible",
|
|
1687
|
-
"scroll"
|
|
1688
|
-
], re = () => [
|
|
1689
|
-
"auto",
|
|
1690
|
-
"contain",
|
|
1691
|
-
"none"
|
|
1692
|
-
], b = () => [
|
|
1693
|
-
Y,
|
|
1694
|
-
q,
|
|
1695
|
-
c
|
|
1696
|
-
], x = () => [
|
|
1697
|
-
U,
|
|
1698
|
-
"full",
|
|
1699
|
-
"auto",
|
|
1700
|
-
...b()
|
|
1701
|
-
], ie = () => [
|
|
1702
|
-
G,
|
|
1703
|
-
"none",
|
|
1704
|
-
"subgrid",
|
|
1705
|
-
Y,
|
|
1706
|
-
q
|
|
1707
|
-
], ae = () => [
|
|
1708
|
-
"auto",
|
|
1709
|
-
{ span: [
|
|
1710
|
-
"full",
|
|
1711
|
-
G,
|
|
1712
|
-
Y,
|
|
1713
|
-
q
|
|
1714
|
-
] },
|
|
1715
|
-
G,
|
|
1716
|
-
Y,
|
|
1717
|
-
q
|
|
1718
|
-
], S = () => [
|
|
1719
|
-
G,
|
|
1720
|
-
"auto",
|
|
1721
|
-
Y,
|
|
1722
|
-
q
|
|
1723
|
-
], oe = () => [
|
|
1724
|
-
"auto",
|
|
1725
|
-
"min",
|
|
1726
|
-
"max",
|
|
1727
|
-
"fr",
|
|
1728
|
-
Y,
|
|
1729
|
-
q
|
|
1730
|
-
], C = () => [
|
|
1731
|
-
"start",
|
|
1732
|
-
"end",
|
|
1733
|
-
"center",
|
|
1734
|
-
"between",
|
|
1735
|
-
"around",
|
|
1736
|
-
"evenly",
|
|
1737
|
-
"stretch",
|
|
1738
|
-
"baseline",
|
|
1739
|
-
"center-safe",
|
|
1740
|
-
"end-safe"
|
|
1741
|
-
], w = () => [
|
|
1742
|
-
"start",
|
|
1743
|
-
"end",
|
|
1744
|
-
"center",
|
|
1745
|
-
"stretch",
|
|
1746
|
-
"center-safe",
|
|
1747
|
-
"end-safe"
|
|
1748
|
-
], T = () => ["auto", ...b()], E = () => [
|
|
1749
|
-
U,
|
|
1750
|
-
"auto",
|
|
1751
|
-
"full",
|
|
1752
|
-
"dvw",
|
|
1753
|
-
"dvh",
|
|
1754
|
-
"lvw",
|
|
1755
|
-
"lvh",
|
|
1756
|
-
"svw",
|
|
1757
|
-
"svh",
|
|
1758
|
-
"min",
|
|
1759
|
-
"max",
|
|
1760
|
-
"fit",
|
|
1761
|
-
...b()
|
|
1762
|
-
], D = () => [
|
|
1763
|
-
U,
|
|
1764
|
-
"screen",
|
|
1765
|
-
"full",
|
|
1766
|
-
"dvw",
|
|
1767
|
-
"lvw",
|
|
1768
|
-
"svw",
|
|
1769
|
-
"min",
|
|
1770
|
-
"max",
|
|
1771
|
-
"fit",
|
|
1772
|
-
...b()
|
|
1773
|
-
], O = () => [
|
|
1774
|
-
U,
|
|
1775
|
-
"screen",
|
|
1776
|
-
"full",
|
|
1777
|
-
"lh",
|
|
1778
|
-
"dvh",
|
|
1779
|
-
"lvh",
|
|
1780
|
-
"svh",
|
|
1781
|
-
"min",
|
|
1782
|
-
"max",
|
|
1783
|
-
"fit",
|
|
1784
|
-
...b()
|
|
1785
|
-
], k = () => [
|
|
1786
|
-
e,
|
|
1787
|
-
Y,
|
|
1788
|
-
q
|
|
1789
|
-
], se = () => [
|
|
1790
|
-
...v(),
|
|
1791
|
-
Qt,
|
|
1792
|
-
Jt,
|
|
1793
|
-
{ position: [Y, q] }
|
|
1794
|
-
], A = () => ["no-repeat", { repeat: [
|
|
1795
|
-
"",
|
|
1796
|
-
"x",
|
|
1797
|
-
"y",
|
|
1798
|
-
"space",
|
|
1799
|
-
"round"
|
|
1800
|
-
] }], ce = () => [
|
|
1801
|
-
"auto",
|
|
1802
|
-
"cover",
|
|
1803
|
-
"contain",
|
|
1804
|
-
$t,
|
|
1805
|
-
Wt,
|
|
1806
|
-
{ size: [Y, q] }
|
|
1807
|
-
], le = () => [
|
|
1808
|
-
It,
|
|
1809
|
-
X,
|
|
1810
|
-
J
|
|
1811
|
-
], j = () => [
|
|
1812
|
-
"",
|
|
1813
|
-
"none",
|
|
1814
|
-
"full",
|
|
1815
|
-
l,
|
|
1816
|
-
Y,
|
|
1817
|
-
q
|
|
1818
|
-
], M = () => [
|
|
1819
|
-
"",
|
|
1820
|
-
W,
|
|
1821
|
-
X,
|
|
1822
|
-
J
|
|
1823
|
-
], N = () => [
|
|
1824
|
-
"solid",
|
|
1825
|
-
"dashed",
|
|
1826
|
-
"dotted",
|
|
1827
|
-
"double"
|
|
1828
|
-
], ue = () => [
|
|
1829
|
-
"normal",
|
|
1830
|
-
"multiply",
|
|
1831
|
-
"screen",
|
|
1832
|
-
"overlay",
|
|
1833
|
-
"darken",
|
|
1834
|
-
"lighten",
|
|
1835
|
-
"color-dodge",
|
|
1836
|
-
"color-burn",
|
|
1837
|
-
"hard-light",
|
|
1838
|
-
"soft-light",
|
|
1839
|
-
"difference",
|
|
1840
|
-
"exclusion",
|
|
1841
|
-
"hue",
|
|
1842
|
-
"saturation",
|
|
1843
|
-
"color",
|
|
1844
|
-
"luminosity"
|
|
1845
|
-
], P = () => [
|
|
1846
|
-
W,
|
|
1847
|
-
It,
|
|
1848
|
-
Qt,
|
|
1849
|
-
Jt
|
|
1850
|
-
], F = () => [
|
|
1851
|
-
"",
|
|
1852
|
-
"none",
|
|
1853
|
-
m,
|
|
1854
|
-
Y,
|
|
1855
|
-
q
|
|
1856
|
-
], I = () => [
|
|
1857
|
-
"none",
|
|
1858
|
-
W,
|
|
1859
|
-
Y,
|
|
1860
|
-
q
|
|
1861
|
-
], L = () => [
|
|
1862
|
-
"none",
|
|
1863
|
-
W,
|
|
1864
|
-
Y,
|
|
1865
|
-
q
|
|
1866
|
-
], de = () => [
|
|
1867
|
-
W,
|
|
1868
|
-
Y,
|
|
1869
|
-
q
|
|
1870
|
-
], R = () => [
|
|
1871
|
-
U,
|
|
1872
|
-
"full",
|
|
1873
|
-
...b()
|
|
1874
|
-
];
|
|
1875
|
-
return {
|
|
1876
|
-
cacheSize: 500,
|
|
1877
|
-
theme: {
|
|
1878
|
-
animate: [
|
|
1879
|
-
"spin",
|
|
1880
|
-
"ping",
|
|
1881
|
-
"pulse",
|
|
1882
|
-
"bounce"
|
|
1883
|
-
],
|
|
1884
|
-
aspect: ["video"],
|
|
1885
|
-
blur: [K],
|
|
1886
|
-
breakpoint: [K],
|
|
1887
|
-
color: [Lt],
|
|
1888
|
-
container: [K],
|
|
1889
|
-
"drop-shadow": [K],
|
|
1890
|
-
ease: [
|
|
1891
|
-
"in",
|
|
1892
|
-
"out",
|
|
1893
|
-
"in-out"
|
|
1894
|
-
],
|
|
1895
|
-
font: [Ht],
|
|
1896
|
-
"font-weight": [
|
|
1897
|
-
"thin",
|
|
1898
|
-
"extralight",
|
|
1899
|
-
"light",
|
|
1900
|
-
"normal",
|
|
1901
|
-
"medium",
|
|
1902
|
-
"semibold",
|
|
1903
|
-
"bold",
|
|
1904
|
-
"extrabold",
|
|
1905
|
-
"black"
|
|
1906
|
-
],
|
|
1907
|
-
"inset-shadow": [K],
|
|
1908
|
-
leading: [
|
|
1909
|
-
"none",
|
|
1910
|
-
"tight",
|
|
1911
|
-
"snug",
|
|
1912
|
-
"normal",
|
|
1913
|
-
"relaxed",
|
|
1914
|
-
"loose"
|
|
1915
|
-
],
|
|
1916
|
-
perspective: [
|
|
1917
|
-
"dramatic",
|
|
1918
|
-
"near",
|
|
1919
|
-
"normal",
|
|
1920
|
-
"midrange",
|
|
1921
|
-
"distant",
|
|
1922
|
-
"none"
|
|
1923
|
-
],
|
|
1924
|
-
radius: [K],
|
|
1925
|
-
shadow: [K],
|
|
1926
|
-
spacing: ["px", W],
|
|
1927
|
-
text: [K],
|
|
1928
|
-
"text-shadow": [K],
|
|
1929
|
-
tracking: [
|
|
1930
|
-
"tighter",
|
|
1931
|
-
"tight",
|
|
1932
|
-
"normal",
|
|
1933
|
-
"wide",
|
|
1934
|
-
"wider",
|
|
1935
|
-
"widest"
|
|
1936
|
-
]
|
|
1937
|
-
},
|
|
1938
|
-
classGroups: {
|
|
1939
|
-
aspect: [{ aspect: [
|
|
1940
|
-
"auto",
|
|
1941
|
-
"square",
|
|
1942
|
-
U,
|
|
1943
|
-
q,
|
|
1944
|
-
Y,
|
|
1945
|
-
g
|
|
1946
|
-
] }],
|
|
1947
|
-
container: ["container"],
|
|
1948
|
-
"container-type": [{ "@container": [
|
|
1949
|
-
"",
|
|
1950
|
-
"normal",
|
|
1951
|
-
"size",
|
|
1952
|
-
Y,
|
|
1953
|
-
q
|
|
1954
|
-
] }],
|
|
1955
|
-
"container-named": [Ut],
|
|
1956
|
-
columns: [{ columns: [
|
|
1957
|
-
W,
|
|
1958
|
-
q,
|
|
1959
|
-
Y,
|
|
1960
|
-
s
|
|
1961
|
-
] }],
|
|
1962
|
-
"break-after": [{ "break-after": _() }],
|
|
1963
|
-
"break-before": [{ "break-before": _() }],
|
|
1964
|
-
"break-inside": [{ "break-inside": [
|
|
1965
|
-
"auto",
|
|
1966
|
-
"avoid",
|
|
1967
|
-
"avoid-page",
|
|
1968
|
-
"avoid-column"
|
|
1969
|
-
] }],
|
|
1970
|
-
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
|
|
1971
|
-
box: [{ box: ["border", "content"] }],
|
|
1972
|
-
display: [
|
|
1973
|
-
"block",
|
|
1974
|
-
"inline-block",
|
|
1975
|
-
"inline",
|
|
1976
|
-
"flex",
|
|
1977
|
-
"inline-flex",
|
|
1978
|
-
"table",
|
|
1979
|
-
"inline-table",
|
|
1980
|
-
"table-caption",
|
|
1981
|
-
"table-cell",
|
|
1982
|
-
"table-column",
|
|
1983
|
-
"table-column-group",
|
|
1984
|
-
"table-footer-group",
|
|
1985
|
-
"table-header-group",
|
|
1986
|
-
"table-row-group",
|
|
1987
|
-
"table-row",
|
|
1988
|
-
"flow-root",
|
|
1989
|
-
"grid",
|
|
1990
|
-
"inline-grid",
|
|
1991
|
-
"contents",
|
|
1992
|
-
"list-item",
|
|
1993
|
-
"hidden"
|
|
1994
|
-
],
|
|
1995
|
-
sr: ["sr-only", "not-sr-only"],
|
|
1996
|
-
float: [{ float: [
|
|
1997
|
-
"right",
|
|
1998
|
-
"left",
|
|
1999
|
-
"none",
|
|
2000
|
-
"start",
|
|
2001
|
-
"end"
|
|
2002
|
-
] }],
|
|
2003
|
-
clear: [{ clear: [
|
|
2004
|
-
"left",
|
|
2005
|
-
"right",
|
|
2006
|
-
"both",
|
|
2007
|
-
"none",
|
|
2008
|
-
"start",
|
|
2009
|
-
"end"
|
|
2010
|
-
] }],
|
|
2011
|
-
isolation: ["isolate", "isolation-auto"],
|
|
2012
|
-
"object-fit": [{ object: [
|
|
2013
|
-
"contain",
|
|
2014
|
-
"cover",
|
|
2015
|
-
"fill",
|
|
2016
|
-
"none",
|
|
2017
|
-
"scale-down"
|
|
2018
|
-
] }],
|
|
2019
|
-
"object-position": [{ object: ne() }],
|
|
2020
|
-
overflow: [{ overflow: y() }],
|
|
2021
|
-
"overflow-x": [{ "overflow-x": y() }],
|
|
2022
|
-
"overflow-y": [{ "overflow-y": y() }],
|
|
2023
|
-
overscroll: [{ overscroll: re() }],
|
|
2024
|
-
"overscroll-x": [{ "overscroll-x": re() }],
|
|
2025
|
-
"overscroll-y": [{ "overscroll-y": re() }],
|
|
2026
|
-
position: [
|
|
2027
|
-
"static",
|
|
2028
|
-
"fixed",
|
|
2029
|
-
"absolute",
|
|
2030
|
-
"relative",
|
|
2031
|
-
"sticky"
|
|
2032
|
-
],
|
|
2033
|
-
inset: [{ inset: x() }],
|
|
2034
|
-
"inset-x": [{ "inset-x": x() }],
|
|
2035
|
-
"inset-y": [{ "inset-y": x() }],
|
|
2036
|
-
start: [{
|
|
2037
|
-
"inset-s": x(),
|
|
2038
|
-
start: x()
|
|
2039
|
-
}],
|
|
2040
|
-
end: [{
|
|
2041
|
-
"inset-e": x(),
|
|
2042
|
-
end: x()
|
|
2043
|
-
}],
|
|
2044
|
-
"inset-bs": [{ "inset-bs": x() }],
|
|
2045
|
-
"inset-be": [{ "inset-be": x() }],
|
|
2046
|
-
top: [{ top: x() }],
|
|
2047
|
-
right: [{ right: x() }],
|
|
2048
|
-
bottom: [{ bottom: x() }],
|
|
2049
|
-
left: [{ left: x() }],
|
|
2050
|
-
visibility: [
|
|
2051
|
-
"visible",
|
|
2052
|
-
"invisible",
|
|
2053
|
-
"collapse"
|
|
2054
|
-
],
|
|
2055
|
-
z: [{ z: [
|
|
2056
|
-
G,
|
|
2057
|
-
"auto",
|
|
2058
|
-
Y,
|
|
2059
|
-
q
|
|
2060
|
-
] }],
|
|
2061
|
-
basis: [{ basis: [
|
|
2062
|
-
U,
|
|
2063
|
-
"full",
|
|
2064
|
-
"auto",
|
|
2065
|
-
s,
|
|
2066
|
-
...b()
|
|
2067
|
-
] }],
|
|
2068
|
-
"flex-direction": [{ flex: [
|
|
2069
|
-
"row",
|
|
2070
|
-
"row-reverse",
|
|
2071
|
-
"col",
|
|
2072
|
-
"col-reverse"
|
|
2073
|
-
] }],
|
|
2074
|
-
"flex-wrap": [{ flex: [
|
|
2075
|
-
"nowrap",
|
|
2076
|
-
"wrap",
|
|
2077
|
-
"wrap-reverse"
|
|
2078
|
-
] }],
|
|
2079
|
-
flex: [{ flex: [
|
|
2080
|
-
W,
|
|
2081
|
-
U,
|
|
2082
|
-
"auto",
|
|
2083
|
-
"initial",
|
|
2084
|
-
"none",
|
|
2085
|
-
q
|
|
2086
|
-
] }],
|
|
2087
|
-
grow: [{ grow: [
|
|
2088
|
-
"",
|
|
2089
|
-
W,
|
|
2090
|
-
Y,
|
|
2091
|
-
q
|
|
2092
|
-
] }],
|
|
2093
|
-
shrink: [{ shrink: [
|
|
2094
|
-
"",
|
|
2095
|
-
W,
|
|
2096
|
-
Y,
|
|
2097
|
-
q
|
|
2098
|
-
] }],
|
|
2099
|
-
order: [{ order: [
|
|
2100
|
-
G,
|
|
2101
|
-
"first",
|
|
2102
|
-
"last",
|
|
2103
|
-
"none",
|
|
2104
|
-
Y,
|
|
2105
|
-
q
|
|
2106
|
-
] }],
|
|
2107
|
-
"grid-cols": [{ "grid-cols": ie() }],
|
|
2108
|
-
"col-start-end": [{ col: ae() }],
|
|
2109
|
-
"col-start": [{ "col-start": S() }],
|
|
2110
|
-
"col-end": [{ "col-end": S() }],
|
|
2111
|
-
"grid-rows": [{ "grid-rows": ie() }],
|
|
2112
|
-
"row-start-end": [{ row: ae() }],
|
|
2113
|
-
"row-start": [{ "row-start": S() }],
|
|
2114
|
-
"row-end": [{ "row-end": S() }],
|
|
2115
|
-
"grid-flow": [{ "grid-flow": [
|
|
2116
|
-
"row",
|
|
2117
|
-
"col",
|
|
2118
|
-
"dense",
|
|
2119
|
-
"row-dense",
|
|
2120
|
-
"col-dense"
|
|
2121
|
-
] }],
|
|
2122
|
-
"auto-cols": [{ "auto-cols": oe() }],
|
|
2123
|
-
"auto-rows": [{ "auto-rows": oe() }],
|
|
2124
|
-
gap: [{ gap: b() }],
|
|
2125
|
-
"gap-x": [{ "gap-x": b() }],
|
|
2126
|
-
"gap-y": [{ "gap-y": b() }],
|
|
2127
|
-
"justify-content": [{ justify: [...C(), "normal"] }],
|
|
2128
|
-
"justify-items": [{ "justify-items": [...w(), "normal"] }],
|
|
2129
|
-
"justify-self": [{ "justify-self": ["auto", ...w()] }],
|
|
2130
|
-
"align-content": [{ content: ["normal", ...C()] }],
|
|
2131
|
-
"align-items": [{ items: [...w(), { baseline: ["", "last"] }] }],
|
|
2132
|
-
"align-self": [{ self: [
|
|
2133
|
-
"auto",
|
|
2134
|
-
...w(),
|
|
2135
|
-
{ baseline: ["", "last"] }
|
|
2136
|
-
] }],
|
|
2137
|
-
"place-content": [{ "place-content": C() }],
|
|
2138
|
-
"place-items": [{ "place-items": [...w(), "baseline"] }],
|
|
2139
|
-
"place-self": [{ "place-self": ["auto", ...w()] }],
|
|
2140
|
-
p: [{ p: b() }],
|
|
2141
|
-
px: [{ px: b() }],
|
|
2142
|
-
py: [{ py: b() }],
|
|
2143
|
-
ps: [{ ps: b() }],
|
|
2144
|
-
pe: [{ pe: b() }],
|
|
2145
|
-
pbs: [{ pbs: b() }],
|
|
2146
|
-
pbe: [{ pbe: b() }],
|
|
2147
|
-
pt: [{ pt: b() }],
|
|
2148
|
-
pr: [{ pr: b() }],
|
|
2149
|
-
pb: [{ pb: b() }],
|
|
2150
|
-
pl: [{ pl: b() }],
|
|
2151
|
-
m: [{ m: T() }],
|
|
2152
|
-
mx: [{ mx: T() }],
|
|
2153
|
-
my: [{ my: T() }],
|
|
2154
|
-
ms: [{ ms: T() }],
|
|
2155
|
-
me: [{ me: T() }],
|
|
2156
|
-
mbs: [{ mbs: T() }],
|
|
2157
|
-
mbe: [{ mbe: T() }],
|
|
2158
|
-
mt: [{ mt: T() }],
|
|
2159
|
-
mr: [{ mr: T() }],
|
|
2160
|
-
mb: [{ mb: T() }],
|
|
2161
|
-
ml: [{ ml: T() }],
|
|
2162
|
-
"space-x": [{ "space-x": b() }],
|
|
2163
|
-
"space-x-reverse": ["space-x-reverse"],
|
|
2164
|
-
"space-y": [{ "space-y": b() }],
|
|
2165
|
-
"space-y-reverse": ["space-y-reverse"],
|
|
2166
|
-
size: [{ size: E() }],
|
|
2167
|
-
"inline-size": [{ inline: ["auto", ...D()] }],
|
|
2168
|
-
"min-inline-size": [{ "min-inline": ["auto", ...D()] }],
|
|
2169
|
-
"max-inline-size": [{ "max-inline": ["none", ...D()] }],
|
|
2170
|
-
"block-size": [{ block: ["auto", ...O()] }],
|
|
2171
|
-
"min-block-size": [{ "min-block": ["auto", ...O()] }],
|
|
2172
|
-
"max-block-size": [{ "max-block": ["none", ...O()] }],
|
|
2173
|
-
w: [{ w: [
|
|
2174
|
-
s,
|
|
2175
|
-
"screen",
|
|
2176
|
-
...E()
|
|
2177
|
-
] }],
|
|
2178
|
-
"min-w": [{ "min-w": [
|
|
2179
|
-
s,
|
|
2180
|
-
"screen",
|
|
2181
|
-
"none",
|
|
2182
|
-
...E()
|
|
2183
|
-
] }],
|
|
2184
|
-
"max-w": [{ "max-w": [
|
|
2185
|
-
s,
|
|
2186
|
-
"screen",
|
|
2187
|
-
"none",
|
|
2188
|
-
"prose",
|
|
2189
|
-
{ screen: [o] },
|
|
2190
|
-
...E()
|
|
2191
|
-
] }],
|
|
2192
|
-
h: [{ h: [
|
|
2193
|
-
"screen",
|
|
2194
|
-
"lh",
|
|
2195
|
-
...E()
|
|
2196
|
-
] }],
|
|
2197
|
-
"min-h": [{ "min-h": [
|
|
2198
|
-
"screen",
|
|
2199
|
-
"lh",
|
|
2200
|
-
"none",
|
|
2201
|
-
...E()
|
|
2202
|
-
] }],
|
|
2203
|
-
"max-h": [{ "max-h": [
|
|
2204
|
-
"screen",
|
|
2205
|
-
"lh",
|
|
2206
|
-
...E()
|
|
2207
|
-
] }],
|
|
2208
|
-
"font-size": [{ text: [
|
|
2209
|
-
"base",
|
|
2210
|
-
n,
|
|
2211
|
-
X,
|
|
2212
|
-
J
|
|
2213
|
-
] }],
|
|
2214
|
-
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
2215
|
-
"font-style": ["italic", "not-italic"],
|
|
2216
|
-
"font-weight": [{ font: [
|
|
2217
|
-
r,
|
|
2218
|
-
nn,
|
|
2219
|
-
Kt
|
|
2220
|
-
] }],
|
|
2221
|
-
"font-stretch": [{ "font-stretch": [
|
|
2222
|
-
"ultra-condensed",
|
|
2223
|
-
"extra-condensed",
|
|
2224
|
-
"condensed",
|
|
2225
|
-
"semi-condensed",
|
|
2226
|
-
"normal",
|
|
2227
|
-
"semi-expanded",
|
|
2228
|
-
"expanded",
|
|
2229
|
-
"extra-expanded",
|
|
2230
|
-
"ultra-expanded",
|
|
2231
|
-
It,
|
|
2232
|
-
q
|
|
2233
|
-
] }],
|
|
2234
|
-
"font-family": [{ font: [
|
|
2235
|
-
Zt,
|
|
2236
|
-
qt,
|
|
2237
|
-
t
|
|
2238
|
-
] }],
|
|
2239
|
-
"font-features": [{ "font-features": [q] }],
|
|
2240
|
-
"fvn-normal": ["normal-nums"],
|
|
2241
|
-
"fvn-ordinal": ["ordinal"],
|
|
2242
|
-
"fvn-slashed-zero": ["slashed-zero"],
|
|
2243
|
-
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
2244
|
-
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
2245
|
-
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
2246
|
-
tracking: [{ tracking: [
|
|
2247
|
-
i,
|
|
2248
|
-
Y,
|
|
2249
|
-
q
|
|
2250
|
-
] }],
|
|
2251
|
-
"line-clamp": [{ "line-clamp": [
|
|
2252
|
-
W,
|
|
2253
|
-
"none",
|
|
2254
|
-
Y,
|
|
2255
|
-
Gt
|
|
2256
|
-
] }],
|
|
2257
|
-
leading: [{ leading: [a, ...b()] }],
|
|
2258
|
-
"list-image": [{ "list-image": [
|
|
2259
|
-
"none",
|
|
2260
|
-
Y,
|
|
2261
|
-
q
|
|
2262
|
-
] }],
|
|
2263
|
-
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
2264
|
-
"list-style-type": [{ list: [
|
|
2265
|
-
"disc",
|
|
2266
|
-
"decimal",
|
|
2267
|
-
"none",
|
|
2268
|
-
Y,
|
|
2269
|
-
q
|
|
2270
|
-
] }],
|
|
2271
|
-
"text-alignment": [{ text: [
|
|
2272
|
-
"left",
|
|
2273
|
-
"center",
|
|
2274
|
-
"right",
|
|
2275
|
-
"justify",
|
|
2276
|
-
"start",
|
|
2277
|
-
"end"
|
|
2278
|
-
] }],
|
|
2279
|
-
"placeholder-color": [{ placeholder: k() }],
|
|
2280
|
-
"text-color": [{ text: k() }],
|
|
2281
|
-
"text-decoration": [
|
|
2282
|
-
"underline",
|
|
2283
|
-
"overline",
|
|
2284
|
-
"line-through",
|
|
2285
|
-
"no-underline"
|
|
2286
|
-
],
|
|
2287
|
-
"text-decoration-style": [{ decoration: [...N(), "wavy"] }],
|
|
2288
|
-
"text-decoration-thickness": [{ decoration: [
|
|
2289
|
-
W,
|
|
2290
|
-
"from-font",
|
|
2291
|
-
"auto",
|
|
2292
|
-
Y,
|
|
2293
|
-
J
|
|
2294
|
-
] }],
|
|
2295
|
-
"text-decoration-color": [{ decoration: k() }],
|
|
2296
|
-
"underline-offset": [{ "underline-offset": [
|
|
2297
|
-
W,
|
|
2298
|
-
"auto",
|
|
2299
|
-
Y,
|
|
2300
|
-
q
|
|
2301
|
-
] }],
|
|
2302
|
-
"text-transform": [
|
|
2303
|
-
"uppercase",
|
|
2304
|
-
"lowercase",
|
|
2305
|
-
"capitalize",
|
|
2306
|
-
"normal-case"
|
|
2307
|
-
],
|
|
2308
|
-
"text-overflow": [
|
|
2309
|
-
"truncate",
|
|
2310
|
-
"text-ellipsis",
|
|
2311
|
-
"text-clip"
|
|
2312
|
-
],
|
|
2313
|
-
"text-wrap": [{ text: [
|
|
2314
|
-
"wrap",
|
|
2315
|
-
"nowrap",
|
|
2316
|
-
"balance",
|
|
2317
|
-
"pretty"
|
|
2318
|
-
] }],
|
|
2319
|
-
indent: [{ indent: b() }],
|
|
2320
|
-
"tab-size": [{ tab: [
|
|
2321
|
-
G,
|
|
2322
|
-
Y,
|
|
2323
|
-
q
|
|
2324
|
-
] }],
|
|
2325
|
-
"vertical-align": [{ align: [
|
|
2326
|
-
"baseline",
|
|
2327
|
-
"top",
|
|
2328
|
-
"middle",
|
|
2329
|
-
"bottom",
|
|
2330
|
-
"text-top",
|
|
2331
|
-
"text-bottom",
|
|
2332
|
-
"sub",
|
|
2333
|
-
"super",
|
|
2334
|
-
Y,
|
|
2335
|
-
q
|
|
2336
|
-
] }],
|
|
2337
|
-
whitespace: [{ whitespace: [
|
|
2338
|
-
"normal",
|
|
2339
|
-
"nowrap",
|
|
2340
|
-
"pre",
|
|
2341
|
-
"pre-line",
|
|
2342
|
-
"pre-wrap",
|
|
2343
|
-
"break-spaces"
|
|
2344
|
-
] }],
|
|
2345
|
-
break: [{ break: [
|
|
2346
|
-
"normal",
|
|
2347
|
-
"words",
|
|
2348
|
-
"all",
|
|
2349
|
-
"keep"
|
|
2350
|
-
] }],
|
|
2351
|
-
wrap: [{ wrap: [
|
|
2352
|
-
"break-word",
|
|
2353
|
-
"anywhere",
|
|
2354
|
-
"normal"
|
|
2355
|
-
] }],
|
|
2356
|
-
hyphens: [{ hyphens: [
|
|
2357
|
-
"none",
|
|
2358
|
-
"manual",
|
|
2359
|
-
"auto"
|
|
2360
|
-
] }],
|
|
2361
|
-
content: [{ content: [
|
|
2362
|
-
"none",
|
|
2363
|
-
Y,
|
|
2364
|
-
q
|
|
2365
|
-
] }],
|
|
2366
|
-
"bg-attachment": [{ bg: [
|
|
2367
|
-
"fixed",
|
|
2368
|
-
"local",
|
|
2369
|
-
"scroll"
|
|
2370
|
-
] }],
|
|
2371
|
-
"bg-clip": [{ "bg-clip": [
|
|
2372
|
-
"border",
|
|
2373
|
-
"padding",
|
|
2374
|
-
"content",
|
|
2375
|
-
"text"
|
|
2376
|
-
] }],
|
|
2377
|
-
"bg-origin": [{ "bg-origin": [
|
|
2378
|
-
"border",
|
|
2379
|
-
"padding",
|
|
2380
|
-
"content"
|
|
2381
|
-
] }],
|
|
2382
|
-
"bg-position": [{ bg: se() }],
|
|
2383
|
-
"bg-repeat": [{ bg: A() }],
|
|
2384
|
-
"bg-size": [{ bg: ce() }],
|
|
2385
|
-
"bg-image": [{ bg: [
|
|
2386
|
-
"none",
|
|
2387
|
-
{
|
|
2388
|
-
linear: [
|
|
2389
|
-
{ to: [
|
|
2390
|
-
"t",
|
|
2391
|
-
"tr",
|
|
2392
|
-
"r",
|
|
2393
|
-
"br",
|
|
2394
|
-
"b",
|
|
2395
|
-
"bl",
|
|
2396
|
-
"l",
|
|
2397
|
-
"tl"
|
|
2398
|
-
] },
|
|
2399
|
-
G,
|
|
2400
|
-
Y,
|
|
2401
|
-
q
|
|
2402
|
-
],
|
|
2403
|
-
radial: [
|
|
2404
|
-
"",
|
|
2405
|
-
Y,
|
|
2406
|
-
q
|
|
2407
|
-
],
|
|
2408
|
-
conic: [
|
|
2409
|
-
G,
|
|
2410
|
-
Y,
|
|
2411
|
-
q
|
|
2412
|
-
]
|
|
2413
|
-
},
|
|
2414
|
-
en,
|
|
2415
|
-
Yt
|
|
2416
|
-
] }],
|
|
2417
|
-
"bg-color": [{ bg: k() }],
|
|
2418
|
-
"gradient-from-pos": [{ from: le() }],
|
|
2419
|
-
"gradient-via-pos": [{ via: le() }],
|
|
2420
|
-
"gradient-to-pos": [{ to: le() }],
|
|
2421
|
-
"gradient-from": [{ from: k() }],
|
|
2422
|
-
"gradient-via": [{ via: k() }],
|
|
2423
|
-
"gradient-to": [{ to: k() }],
|
|
2424
|
-
rounded: [{ rounded: j() }],
|
|
2425
|
-
"rounded-s": [{ "rounded-s": j() }],
|
|
2426
|
-
"rounded-e": [{ "rounded-e": j() }],
|
|
2427
|
-
"rounded-t": [{ "rounded-t": j() }],
|
|
2428
|
-
"rounded-r": [{ "rounded-r": j() }],
|
|
2429
|
-
"rounded-b": [{ "rounded-b": j() }],
|
|
2430
|
-
"rounded-l": [{ "rounded-l": j() }],
|
|
2431
|
-
"rounded-ss": [{ "rounded-ss": j() }],
|
|
2432
|
-
"rounded-se": [{ "rounded-se": j() }],
|
|
2433
|
-
"rounded-ee": [{ "rounded-ee": j() }],
|
|
2434
|
-
"rounded-es": [{ "rounded-es": j() }],
|
|
2435
|
-
"rounded-tl": [{ "rounded-tl": j() }],
|
|
2436
|
-
"rounded-tr": [{ "rounded-tr": j() }],
|
|
2437
|
-
"rounded-br": [{ "rounded-br": j() }],
|
|
2438
|
-
"rounded-bl": [{ "rounded-bl": j() }],
|
|
2439
|
-
"border-w": [{ border: M() }],
|
|
2440
|
-
"border-w-x": [{ "border-x": M() }],
|
|
2441
|
-
"border-w-y": [{ "border-y": M() }],
|
|
2442
|
-
"border-w-s": [{ "border-s": M() }],
|
|
2443
|
-
"border-w-e": [{ "border-e": M() }],
|
|
2444
|
-
"border-w-bs": [{ "border-bs": M() }],
|
|
2445
|
-
"border-w-be": [{ "border-be": M() }],
|
|
2446
|
-
"border-w-t": [{ "border-t": M() }],
|
|
2447
|
-
"border-w-r": [{ "border-r": M() }],
|
|
2448
|
-
"border-w-b": [{ "border-b": M() }],
|
|
2449
|
-
"border-w-l": [{ "border-l": M() }],
|
|
2450
|
-
"divide-x": [{ "divide-x": M() }],
|
|
2451
|
-
"divide-x-reverse": ["divide-x-reverse"],
|
|
2452
|
-
"divide-y": [{ "divide-y": M() }],
|
|
2453
|
-
"divide-y-reverse": ["divide-y-reverse"],
|
|
2454
|
-
"border-style": [{ border: [
|
|
2455
|
-
...N(),
|
|
2456
|
-
"hidden",
|
|
2457
|
-
"none"
|
|
2458
|
-
] }],
|
|
2459
|
-
"divide-style": [{ divide: [
|
|
2460
|
-
...N(),
|
|
2461
|
-
"hidden",
|
|
2462
|
-
"none"
|
|
2463
|
-
] }],
|
|
2464
|
-
"border-color": [{ border: k() }],
|
|
2465
|
-
"border-color-x": [{ "border-x": k() }],
|
|
2466
|
-
"border-color-y": [{ "border-y": k() }],
|
|
2467
|
-
"border-color-s": [{ "border-s": k() }],
|
|
2468
|
-
"border-color-e": [{ "border-e": k() }],
|
|
2469
|
-
"border-color-bs": [{ "border-bs": k() }],
|
|
2470
|
-
"border-color-be": [{ "border-be": k() }],
|
|
2471
|
-
"border-color-t": [{ "border-t": k() }],
|
|
2472
|
-
"border-color-r": [{ "border-r": k() }],
|
|
2473
|
-
"border-color-b": [{ "border-b": k() }],
|
|
2474
|
-
"border-color-l": [{ "border-l": k() }],
|
|
2475
|
-
"divide-color": [{ divide: k() }],
|
|
2476
|
-
"outline-style": [{ outline: [
|
|
2477
|
-
...N(),
|
|
2478
|
-
"none",
|
|
2479
|
-
"hidden"
|
|
2480
|
-
] }],
|
|
2481
|
-
"outline-offset": [{ "outline-offset": [
|
|
2482
|
-
W,
|
|
2483
|
-
Y,
|
|
2484
|
-
q
|
|
2485
|
-
] }],
|
|
2486
|
-
"outline-w": [{ outline: [
|
|
2487
|
-
"",
|
|
2488
|
-
W,
|
|
2489
|
-
X,
|
|
2490
|
-
J
|
|
2491
|
-
] }],
|
|
2492
|
-
"outline-color": [{ outline: k() }],
|
|
2493
|
-
shadow: [{ shadow: [
|
|
2494
|
-
"",
|
|
2495
|
-
"none",
|
|
2496
|
-
u,
|
|
2497
|
-
tn,
|
|
2498
|
-
Xt
|
|
2499
|
-
] }],
|
|
2500
|
-
"shadow-color": [{ shadow: k() }],
|
|
2501
|
-
"inset-shadow": [{ "inset-shadow": [
|
|
2502
|
-
"none",
|
|
2503
|
-
d,
|
|
2504
|
-
tn,
|
|
2505
|
-
Xt
|
|
2506
|
-
] }],
|
|
2507
|
-
"inset-shadow-color": [{ "inset-shadow": k() }],
|
|
2508
|
-
"ring-w": [{ ring: M() }],
|
|
2509
|
-
"ring-w-inset": ["ring-inset"],
|
|
2510
|
-
"ring-color": [{ ring: k() }],
|
|
2511
|
-
"ring-offset-w": [{ "ring-offset": [W, J] }],
|
|
2512
|
-
"ring-offset-color": [{ "ring-offset": k() }],
|
|
2513
|
-
"inset-ring-w": [{ "inset-ring": M() }],
|
|
2514
|
-
"inset-ring-color": [{ "inset-ring": k() }],
|
|
2515
|
-
"text-shadow": [{ "text-shadow": [
|
|
2516
|
-
"none",
|
|
2517
|
-
f,
|
|
2518
|
-
tn,
|
|
2519
|
-
Xt
|
|
2520
|
-
] }],
|
|
2521
|
-
"text-shadow-color": [{ "text-shadow": k() }],
|
|
2522
|
-
opacity: [{ opacity: [
|
|
2523
|
-
W,
|
|
2524
|
-
Y,
|
|
2525
|
-
q
|
|
2526
|
-
] }],
|
|
2527
|
-
"mix-blend": [{ "mix-blend": [
|
|
2528
|
-
...ue(),
|
|
2529
|
-
"plus-darker",
|
|
2530
|
-
"plus-lighter"
|
|
2531
|
-
] }],
|
|
2532
|
-
"bg-blend": [{ "bg-blend": ue() }],
|
|
2533
|
-
"mask-clip": [{ "mask-clip": [
|
|
2534
|
-
"border",
|
|
2535
|
-
"padding",
|
|
2536
|
-
"content",
|
|
2537
|
-
"fill",
|
|
2538
|
-
"stroke",
|
|
2539
|
-
"view"
|
|
2540
|
-
] }, "mask-no-clip"],
|
|
2541
|
-
"mask-composite": [{ mask: [
|
|
2542
|
-
"add",
|
|
2543
|
-
"subtract",
|
|
2544
|
-
"intersect",
|
|
2545
|
-
"exclude"
|
|
2546
|
-
] }],
|
|
2547
|
-
"mask-image-linear-pos": [{ "mask-linear": [W] }],
|
|
2548
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from": P() }],
|
|
2549
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to": P() }],
|
|
2550
|
-
"mask-image-linear-from-color": [{ "mask-linear-from": k() }],
|
|
2551
|
-
"mask-image-linear-to-color": [{ "mask-linear-to": k() }],
|
|
2552
|
-
"mask-image-t-from-pos": [{ "mask-t-from": P() }],
|
|
2553
|
-
"mask-image-t-to-pos": [{ "mask-t-to": P() }],
|
|
2554
|
-
"mask-image-t-from-color": [{ "mask-t-from": k() }],
|
|
2555
|
-
"mask-image-t-to-color": [{ "mask-t-to": k() }],
|
|
2556
|
-
"mask-image-r-from-pos": [{ "mask-r-from": P() }],
|
|
2557
|
-
"mask-image-r-to-pos": [{ "mask-r-to": P() }],
|
|
2558
|
-
"mask-image-r-from-color": [{ "mask-r-from": k() }],
|
|
2559
|
-
"mask-image-r-to-color": [{ "mask-r-to": k() }],
|
|
2560
|
-
"mask-image-b-from-pos": [{ "mask-b-from": P() }],
|
|
2561
|
-
"mask-image-b-to-pos": [{ "mask-b-to": P() }],
|
|
2562
|
-
"mask-image-b-from-color": [{ "mask-b-from": k() }],
|
|
2563
|
-
"mask-image-b-to-color": [{ "mask-b-to": k() }],
|
|
2564
|
-
"mask-image-l-from-pos": [{ "mask-l-from": P() }],
|
|
2565
|
-
"mask-image-l-to-pos": [{ "mask-l-to": P() }],
|
|
2566
|
-
"mask-image-l-from-color": [{ "mask-l-from": k() }],
|
|
2567
|
-
"mask-image-l-to-color": [{ "mask-l-to": k() }],
|
|
2568
|
-
"mask-image-x-from-pos": [{ "mask-x-from": P() }],
|
|
2569
|
-
"mask-image-x-to-pos": [{ "mask-x-to": P() }],
|
|
2570
|
-
"mask-image-x-from-color": [{ "mask-x-from": k() }],
|
|
2571
|
-
"mask-image-x-to-color": [{ "mask-x-to": k() }],
|
|
2572
|
-
"mask-image-y-from-pos": [{ "mask-y-from": P() }],
|
|
2573
|
-
"mask-image-y-to-pos": [{ "mask-y-to": P() }],
|
|
2574
|
-
"mask-image-y-from-color": [{ "mask-y-from": k() }],
|
|
2575
|
-
"mask-image-y-to-color": [{ "mask-y-to": k() }],
|
|
2576
|
-
"mask-image-radial": [{ "mask-radial": [Y, q] }],
|
|
2577
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from": P() }],
|
|
2578
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to": P() }],
|
|
2579
|
-
"mask-image-radial-from-color": [{ "mask-radial-from": k() }],
|
|
2580
|
-
"mask-image-radial-to-color": [{ "mask-radial-to": k() }],
|
|
2581
|
-
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
2582
|
-
"mask-image-radial-size": [{ "mask-radial": [{
|
|
2583
|
-
closest: ["side", "corner"],
|
|
2584
|
-
farthest: ["side", "corner"]
|
|
2585
|
-
}] }],
|
|
2586
|
-
"mask-image-radial-pos": [{ "mask-radial-at": v() }],
|
|
2587
|
-
"mask-image-conic-pos": [{ "mask-conic": [W] }],
|
|
2588
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from": P() }],
|
|
2589
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to": P() }],
|
|
2590
|
-
"mask-image-conic-from-color": [{ "mask-conic-from": k() }],
|
|
2591
|
-
"mask-image-conic-to-color": [{ "mask-conic-to": k() }],
|
|
2592
|
-
"mask-mode": [{ mask: [
|
|
2593
|
-
"alpha",
|
|
2594
|
-
"luminance",
|
|
2595
|
-
"match"
|
|
2596
|
-
] }],
|
|
2597
|
-
"mask-origin": [{ "mask-origin": [
|
|
2598
|
-
"border",
|
|
2599
|
-
"padding",
|
|
2600
|
-
"content",
|
|
2601
|
-
"fill",
|
|
2602
|
-
"stroke",
|
|
2603
|
-
"view"
|
|
2604
|
-
] }],
|
|
2605
|
-
"mask-position": [{ mask: se() }],
|
|
2606
|
-
"mask-repeat": [{ mask: A() }],
|
|
2607
|
-
"mask-size": [{ mask: ce() }],
|
|
2608
|
-
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
2609
|
-
"mask-image": [{ mask: [
|
|
2610
|
-
"none",
|
|
2611
|
-
Y,
|
|
2612
|
-
q
|
|
2613
|
-
] }],
|
|
2614
|
-
filter: [{ filter: [
|
|
2615
|
-
"",
|
|
2616
|
-
"none",
|
|
2617
|
-
Y,
|
|
2618
|
-
q
|
|
2619
|
-
] }],
|
|
2620
|
-
blur: [{ blur: F() }],
|
|
2621
|
-
brightness: [{ brightness: [
|
|
2622
|
-
W,
|
|
2623
|
-
Y,
|
|
2624
|
-
q
|
|
2625
|
-
] }],
|
|
2626
|
-
contrast: [{ contrast: [
|
|
2627
|
-
W,
|
|
2628
|
-
Y,
|
|
2629
|
-
q
|
|
2630
|
-
] }],
|
|
2631
|
-
"drop-shadow": [{ "drop-shadow": [
|
|
2632
|
-
"",
|
|
2633
|
-
"none",
|
|
2634
|
-
p,
|
|
2635
|
-
tn,
|
|
2636
|
-
Xt
|
|
2637
|
-
] }],
|
|
2638
|
-
"drop-shadow-color": [{ "drop-shadow": k() }],
|
|
2639
|
-
grayscale: [{ grayscale: [
|
|
2640
|
-
"",
|
|
2641
|
-
W,
|
|
2642
|
-
Y,
|
|
2643
|
-
q
|
|
2644
|
-
] }],
|
|
2645
|
-
"hue-rotate": [{ "hue-rotate": [
|
|
2646
|
-
W,
|
|
2647
|
-
Y,
|
|
2648
|
-
q
|
|
2649
|
-
] }],
|
|
2650
|
-
invert: [{ invert: [
|
|
2651
|
-
"",
|
|
2652
|
-
W,
|
|
2653
|
-
Y,
|
|
2654
|
-
q
|
|
2655
|
-
] }],
|
|
2656
|
-
saturate: [{ saturate: [
|
|
2657
|
-
W,
|
|
2658
|
-
Y,
|
|
2659
|
-
q
|
|
2660
|
-
] }],
|
|
2661
|
-
sepia: [{ sepia: [
|
|
2662
|
-
"",
|
|
2663
|
-
W,
|
|
2664
|
-
Y,
|
|
2665
|
-
q
|
|
2666
|
-
] }],
|
|
2667
|
-
"backdrop-filter": [{ "backdrop-filter": [
|
|
2668
|
-
"",
|
|
2669
|
-
"none",
|
|
2670
|
-
Y,
|
|
2671
|
-
q
|
|
2672
|
-
] }],
|
|
2673
|
-
"backdrop-blur": [{ "backdrop-blur": F() }],
|
|
2674
|
-
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
2675
|
-
W,
|
|
2676
|
-
Y,
|
|
2677
|
-
q
|
|
2678
|
-
] }],
|
|
2679
|
-
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
2680
|
-
W,
|
|
2681
|
-
Y,
|
|
2682
|
-
q
|
|
2683
|
-
] }],
|
|
2684
|
-
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
2685
|
-
"",
|
|
2686
|
-
W,
|
|
2687
|
-
Y,
|
|
2688
|
-
q
|
|
2689
|
-
] }],
|
|
2690
|
-
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
2691
|
-
W,
|
|
2692
|
-
Y,
|
|
2693
|
-
q
|
|
2694
|
-
] }],
|
|
2695
|
-
"backdrop-invert": [{ "backdrop-invert": [
|
|
2696
|
-
"",
|
|
2697
|
-
W,
|
|
2698
|
-
Y,
|
|
2699
|
-
q
|
|
2700
|
-
] }],
|
|
2701
|
-
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
2702
|
-
W,
|
|
2703
|
-
Y,
|
|
2704
|
-
q
|
|
2705
|
-
] }],
|
|
2706
|
-
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
2707
|
-
W,
|
|
2708
|
-
Y,
|
|
2709
|
-
q
|
|
2710
|
-
] }],
|
|
2711
|
-
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
2712
|
-
"",
|
|
2713
|
-
W,
|
|
2714
|
-
Y,
|
|
2715
|
-
q
|
|
2716
|
-
] }],
|
|
2717
|
-
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
2718
|
-
"border-spacing": [{ "border-spacing": b() }],
|
|
2719
|
-
"border-spacing-x": [{ "border-spacing-x": b() }],
|
|
2720
|
-
"border-spacing-y": [{ "border-spacing-y": b() }],
|
|
2721
|
-
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
2722
|
-
caption: [{ caption: ["top", "bottom"] }],
|
|
2723
|
-
transition: [{ transition: [
|
|
2724
|
-
"",
|
|
2725
|
-
"all",
|
|
2726
|
-
"colors",
|
|
2727
|
-
"opacity",
|
|
2728
|
-
"shadow",
|
|
2729
|
-
"transform",
|
|
2730
|
-
"none",
|
|
2731
|
-
Y,
|
|
2732
|
-
q
|
|
2733
|
-
] }],
|
|
2734
|
-
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
2735
|
-
duration: [{ duration: [
|
|
2736
|
-
W,
|
|
2737
|
-
"initial",
|
|
2738
|
-
Y,
|
|
2739
|
-
q
|
|
2740
|
-
] }],
|
|
2741
|
-
ease: [{ ease: [
|
|
2742
|
-
"linear",
|
|
2743
|
-
"initial",
|
|
2744
|
-
ee,
|
|
2745
|
-
Y,
|
|
2746
|
-
q
|
|
2747
|
-
] }],
|
|
2748
|
-
delay: [{ delay: [
|
|
2749
|
-
W,
|
|
2750
|
-
Y,
|
|
2751
|
-
q
|
|
2752
|
-
] }],
|
|
2753
|
-
animate: [{ animate: [
|
|
2754
|
-
"none",
|
|
2755
|
-
te,
|
|
2756
|
-
Y,
|
|
2757
|
-
q
|
|
2758
|
-
] }],
|
|
2759
|
-
backface: [{ backface: ["hidden", "visible"] }],
|
|
2760
|
-
perspective: [{ perspective: [
|
|
2761
|
-
h,
|
|
2762
|
-
Y,
|
|
2763
|
-
q
|
|
2764
|
-
] }],
|
|
2765
|
-
"perspective-origin": [{ "perspective-origin": ne() }],
|
|
2766
|
-
rotate: [{ rotate: I() }],
|
|
2767
|
-
"rotate-x": [{ "rotate-x": I() }],
|
|
2768
|
-
"rotate-y": [{ "rotate-y": I() }],
|
|
2769
|
-
"rotate-z": [{ "rotate-z": I() }],
|
|
2770
|
-
scale: [{ scale: L() }],
|
|
2771
|
-
"scale-x": [{ "scale-x": L() }],
|
|
2772
|
-
"scale-y": [{ "scale-y": L() }],
|
|
2773
|
-
"scale-z": [{ "scale-z": L() }],
|
|
2774
|
-
"scale-3d": ["scale-3d"],
|
|
2775
|
-
skew: [{ skew: de() }],
|
|
2776
|
-
"skew-x": [{ "skew-x": de() }],
|
|
2777
|
-
"skew-y": [{ "skew-y": de() }],
|
|
2778
|
-
transform: [{ transform: [
|
|
2779
|
-
Y,
|
|
2780
|
-
q,
|
|
2781
|
-
"",
|
|
2782
|
-
"none",
|
|
2783
|
-
"gpu",
|
|
2784
|
-
"cpu"
|
|
2785
|
-
] }],
|
|
2786
|
-
"transform-origin": [{ origin: ne() }],
|
|
2787
|
-
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
2788
|
-
translate: [{ translate: R() }],
|
|
2789
|
-
"translate-x": [{ "translate-x": R() }],
|
|
2790
|
-
"translate-y": [{ "translate-y": R() }],
|
|
2791
|
-
"translate-z": [{ "translate-z": R() }],
|
|
2792
|
-
"translate-none": ["translate-none"],
|
|
2793
|
-
zoom: [{ zoom: [
|
|
2794
|
-
G,
|
|
2795
|
-
Y,
|
|
2796
|
-
q
|
|
2797
|
-
] }],
|
|
2798
|
-
accent: [{ accent: k() }],
|
|
2799
|
-
appearance: [{ appearance: ["none", "auto"] }],
|
|
2800
|
-
"caret-color": [{ caret: k() }],
|
|
2801
|
-
"color-scheme": [{ scheme: [
|
|
2802
|
-
"normal",
|
|
2803
|
-
"dark",
|
|
2804
|
-
"light",
|
|
2805
|
-
"light-dark",
|
|
2806
|
-
"only-dark",
|
|
2807
|
-
"only-light"
|
|
2808
|
-
] }],
|
|
2809
|
-
cursor: [{ cursor: [
|
|
2810
|
-
"auto",
|
|
2811
|
-
"default",
|
|
2812
|
-
"pointer",
|
|
2813
|
-
"wait",
|
|
2814
|
-
"text",
|
|
2815
|
-
"move",
|
|
2816
|
-
"help",
|
|
2817
|
-
"not-allowed",
|
|
2818
|
-
"none",
|
|
2819
|
-
"context-menu",
|
|
2820
|
-
"progress",
|
|
2821
|
-
"cell",
|
|
2822
|
-
"crosshair",
|
|
2823
|
-
"vertical-text",
|
|
2824
|
-
"alias",
|
|
2825
|
-
"copy",
|
|
2826
|
-
"no-drop",
|
|
2827
|
-
"grab",
|
|
2828
|
-
"grabbing",
|
|
2829
|
-
"all-scroll",
|
|
2830
|
-
"col-resize",
|
|
2831
|
-
"row-resize",
|
|
2832
|
-
"n-resize",
|
|
2833
|
-
"e-resize",
|
|
2834
|
-
"s-resize",
|
|
2835
|
-
"w-resize",
|
|
2836
|
-
"ne-resize",
|
|
2837
|
-
"nw-resize",
|
|
2838
|
-
"se-resize",
|
|
2839
|
-
"sw-resize",
|
|
2840
|
-
"ew-resize",
|
|
2841
|
-
"ns-resize",
|
|
2842
|
-
"nesw-resize",
|
|
2843
|
-
"nwse-resize",
|
|
2844
|
-
"zoom-in",
|
|
2845
|
-
"zoom-out",
|
|
2846
|
-
Y,
|
|
2847
|
-
q
|
|
2848
|
-
] }],
|
|
2849
|
-
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
2850
|
-
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
2851
|
-
resize: [{ resize: [
|
|
2852
|
-
"none",
|
|
2853
|
-
"",
|
|
2854
|
-
"y",
|
|
2855
|
-
"x"
|
|
2856
|
-
] }],
|
|
2857
|
-
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
2858
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb": k() }],
|
|
2859
|
-
"scrollbar-track-color": [{ "scrollbar-track": k() }],
|
|
2860
|
-
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
2861
|
-
"auto",
|
|
2862
|
-
"stable",
|
|
2863
|
-
"both"
|
|
2864
|
-
] }],
|
|
2865
|
-
"scrollbar-w": [{ scrollbar: [
|
|
2866
|
-
"auto",
|
|
2867
|
-
"thin",
|
|
2868
|
-
"none"
|
|
2869
|
-
] }],
|
|
2870
|
-
"scroll-m": [{ "scroll-m": b() }],
|
|
2871
|
-
"scroll-mx": [{ "scroll-mx": b() }],
|
|
2872
|
-
"scroll-my": [{ "scroll-my": b() }],
|
|
2873
|
-
"scroll-ms": [{ "scroll-ms": b() }],
|
|
2874
|
-
"scroll-me": [{ "scroll-me": b() }],
|
|
2875
|
-
"scroll-mbs": [{ "scroll-mbs": b() }],
|
|
2876
|
-
"scroll-mbe": [{ "scroll-mbe": b() }],
|
|
2877
|
-
"scroll-mt": [{ "scroll-mt": b() }],
|
|
2878
|
-
"scroll-mr": [{ "scroll-mr": b() }],
|
|
2879
|
-
"scroll-mb": [{ "scroll-mb": b() }],
|
|
2880
|
-
"scroll-ml": [{ "scroll-ml": b() }],
|
|
2881
|
-
"scroll-p": [{ "scroll-p": b() }],
|
|
2882
|
-
"scroll-px": [{ "scroll-px": b() }],
|
|
2883
|
-
"scroll-py": [{ "scroll-py": b() }],
|
|
2884
|
-
"scroll-ps": [{ "scroll-ps": b() }],
|
|
2885
|
-
"scroll-pe": [{ "scroll-pe": b() }],
|
|
2886
|
-
"scroll-pbs": [{ "scroll-pbs": b() }],
|
|
2887
|
-
"scroll-pbe": [{ "scroll-pbe": b() }],
|
|
2888
|
-
"scroll-pt": [{ "scroll-pt": b() }],
|
|
2889
|
-
"scroll-pr": [{ "scroll-pr": b() }],
|
|
2890
|
-
"scroll-pb": [{ "scroll-pb": b() }],
|
|
2891
|
-
"scroll-pl": [{ "scroll-pl": b() }],
|
|
2892
|
-
"snap-align": [{ snap: [
|
|
2893
|
-
"start",
|
|
2894
|
-
"end",
|
|
2895
|
-
"center",
|
|
2896
|
-
"align-none"
|
|
2897
|
-
] }],
|
|
2898
|
-
"snap-stop": [{ snap: ["normal", "always"] }],
|
|
2899
|
-
"snap-type": [{ snap: [
|
|
2900
|
-
"none",
|
|
2901
|
-
"x",
|
|
2902
|
-
"y",
|
|
2903
|
-
"both"
|
|
2904
|
-
] }],
|
|
2905
|
-
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
|
|
2906
|
-
touch: [{ touch: [
|
|
2907
|
-
"auto",
|
|
2908
|
-
"none",
|
|
2909
|
-
"manipulation"
|
|
2910
|
-
] }],
|
|
2911
|
-
"touch-x": [{ "touch-pan": [
|
|
2912
|
-
"x",
|
|
2913
|
-
"left",
|
|
2914
|
-
"right"
|
|
2915
|
-
] }],
|
|
2916
|
-
"touch-y": [{ "touch-pan": [
|
|
2917
|
-
"y",
|
|
2918
|
-
"up",
|
|
2919
|
-
"down"
|
|
2920
|
-
] }],
|
|
2921
|
-
"touch-pz": ["touch-pinch-zoom"],
|
|
2922
|
-
select: [{ select: [
|
|
2923
|
-
"none",
|
|
2924
|
-
"text",
|
|
2925
|
-
"all",
|
|
2926
|
-
"auto"
|
|
2927
|
-
] }],
|
|
2928
|
-
"will-change": [{ "will-change": [
|
|
2929
|
-
"auto",
|
|
2930
|
-
"scroll",
|
|
2931
|
-
"contents",
|
|
2932
|
-
"transform",
|
|
2933
|
-
Y,
|
|
2934
|
-
q
|
|
2935
|
-
] }],
|
|
2936
|
-
fill: [{ fill: ["none", ...k()] }],
|
|
2937
|
-
"stroke-w": [{ stroke: [
|
|
2938
|
-
W,
|
|
2939
|
-
X,
|
|
2940
|
-
J,
|
|
2941
|
-
Gt
|
|
2942
|
-
] }],
|
|
2943
|
-
stroke: [{ stroke: ["none", ...k()] }],
|
|
2944
|
-
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
2945
|
-
},
|
|
2946
|
-
conflictingClassGroups: {
|
|
2947
|
-
"container-named": ["container-type"],
|
|
2948
|
-
overflow: ["overflow-x", "overflow-y"],
|
|
2949
|
-
overscroll: ["overscroll-x", "overscroll-y"],
|
|
2950
|
-
inset: [
|
|
2951
|
-
"inset-x",
|
|
2952
|
-
"inset-y",
|
|
2953
|
-
"inset-bs",
|
|
2954
|
-
"inset-be",
|
|
2955
|
-
"start",
|
|
2956
|
-
"end",
|
|
2957
|
-
"top",
|
|
2958
|
-
"right",
|
|
2959
|
-
"bottom",
|
|
2960
|
-
"left"
|
|
2961
|
-
],
|
|
2962
|
-
"inset-x": ["right", "left"],
|
|
2963
|
-
"inset-y": ["top", "bottom"],
|
|
2964
|
-
flex: [
|
|
2965
|
-
"basis",
|
|
2966
|
-
"grow",
|
|
2967
|
-
"shrink"
|
|
2968
|
-
],
|
|
2969
|
-
gap: ["gap-x", "gap-y"],
|
|
2970
|
-
p: [
|
|
2971
|
-
"px",
|
|
2972
|
-
"py",
|
|
2973
|
-
"ps",
|
|
2974
|
-
"pe",
|
|
2975
|
-
"pbs",
|
|
2976
|
-
"pbe",
|
|
2977
|
-
"pt",
|
|
2978
|
-
"pr",
|
|
2979
|
-
"pb",
|
|
2980
|
-
"pl"
|
|
2981
|
-
],
|
|
2982
|
-
px: ["pr", "pl"],
|
|
2983
|
-
py: ["pt", "pb"],
|
|
2984
|
-
m: [
|
|
2985
|
-
"mx",
|
|
2986
|
-
"my",
|
|
2987
|
-
"ms",
|
|
2988
|
-
"me",
|
|
2989
|
-
"mbs",
|
|
2990
|
-
"mbe",
|
|
2991
|
-
"mt",
|
|
2992
|
-
"mr",
|
|
2993
|
-
"mb",
|
|
2994
|
-
"ml"
|
|
2995
|
-
],
|
|
2996
|
-
mx: ["mr", "ml"],
|
|
2997
|
-
my: ["mt", "mb"],
|
|
2998
|
-
size: ["w", "h"],
|
|
2999
|
-
"font-size": ["leading"],
|
|
3000
|
-
"fvn-normal": [
|
|
3001
|
-
"fvn-ordinal",
|
|
3002
|
-
"fvn-slashed-zero",
|
|
3003
|
-
"fvn-figure",
|
|
3004
|
-
"fvn-spacing",
|
|
3005
|
-
"fvn-fraction"
|
|
3006
|
-
],
|
|
3007
|
-
"fvn-ordinal": ["fvn-normal"],
|
|
3008
|
-
"fvn-slashed-zero": ["fvn-normal"],
|
|
3009
|
-
"fvn-figure": ["fvn-normal"],
|
|
3010
|
-
"fvn-spacing": ["fvn-normal"],
|
|
3011
|
-
"fvn-fraction": ["fvn-normal"],
|
|
3012
|
-
"line-clamp": ["display", "overflow"],
|
|
3013
|
-
rounded: [
|
|
3014
|
-
"rounded-s",
|
|
3015
|
-
"rounded-e",
|
|
3016
|
-
"rounded-t",
|
|
3017
|
-
"rounded-r",
|
|
3018
|
-
"rounded-b",
|
|
3019
|
-
"rounded-l",
|
|
3020
|
-
"rounded-ss",
|
|
3021
|
-
"rounded-se",
|
|
3022
|
-
"rounded-ee",
|
|
3023
|
-
"rounded-es",
|
|
3024
|
-
"rounded-tl",
|
|
3025
|
-
"rounded-tr",
|
|
3026
|
-
"rounded-br",
|
|
3027
|
-
"rounded-bl"
|
|
3028
|
-
],
|
|
3029
|
-
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
3030
|
-
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
3031
|
-
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
3032
|
-
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
3033
|
-
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
3034
|
-
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
3035
|
-
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
3036
|
-
"border-w": [
|
|
3037
|
-
"border-w-x",
|
|
3038
|
-
"border-w-y",
|
|
3039
|
-
"border-w-s",
|
|
3040
|
-
"border-w-e",
|
|
3041
|
-
"border-w-bs",
|
|
3042
|
-
"border-w-be",
|
|
3043
|
-
"border-w-t",
|
|
3044
|
-
"border-w-r",
|
|
3045
|
-
"border-w-b",
|
|
3046
|
-
"border-w-l"
|
|
3047
|
-
],
|
|
3048
|
-
"border-w-x": ["border-w-r", "border-w-l"],
|
|
3049
|
-
"border-w-y": ["border-w-t", "border-w-b"],
|
|
3050
|
-
"border-color": [
|
|
3051
|
-
"border-color-x",
|
|
3052
|
-
"border-color-y",
|
|
3053
|
-
"border-color-s",
|
|
3054
|
-
"border-color-e",
|
|
3055
|
-
"border-color-bs",
|
|
3056
|
-
"border-color-be",
|
|
3057
|
-
"border-color-t",
|
|
3058
|
-
"border-color-r",
|
|
3059
|
-
"border-color-b",
|
|
3060
|
-
"border-color-l"
|
|
3061
|
-
],
|
|
3062
|
-
"border-color-x": ["border-color-r", "border-color-l"],
|
|
3063
|
-
"border-color-y": ["border-color-t", "border-color-b"],
|
|
3064
|
-
translate: [
|
|
3065
|
-
"translate-x",
|
|
3066
|
-
"translate-y",
|
|
3067
|
-
"translate-none"
|
|
3068
|
-
],
|
|
3069
|
-
"translate-none": [
|
|
3070
|
-
"translate",
|
|
3071
|
-
"translate-x",
|
|
3072
|
-
"translate-y",
|
|
3073
|
-
"translate-z"
|
|
3074
|
-
],
|
|
3075
|
-
"scroll-m": [
|
|
3076
|
-
"scroll-mx",
|
|
3077
|
-
"scroll-my",
|
|
3078
|
-
"scroll-ms",
|
|
3079
|
-
"scroll-me",
|
|
3080
|
-
"scroll-mbs",
|
|
3081
|
-
"scroll-mbe",
|
|
3082
|
-
"scroll-mt",
|
|
3083
|
-
"scroll-mr",
|
|
3084
|
-
"scroll-mb",
|
|
3085
|
-
"scroll-ml"
|
|
3086
|
-
],
|
|
3087
|
-
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
3088
|
-
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
3089
|
-
"scroll-p": [
|
|
3090
|
-
"scroll-px",
|
|
3091
|
-
"scroll-py",
|
|
3092
|
-
"scroll-ps",
|
|
3093
|
-
"scroll-pe",
|
|
3094
|
-
"scroll-pbs",
|
|
3095
|
-
"scroll-pbe",
|
|
3096
|
-
"scroll-pt",
|
|
3097
|
-
"scroll-pr",
|
|
3098
|
-
"scroll-pb",
|
|
3099
|
-
"scroll-pl"
|
|
3100
|
-
],
|
|
3101
|
-
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
3102
|
-
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
3103
|
-
touch: [
|
|
3104
|
-
"touch-x",
|
|
3105
|
-
"touch-y",
|
|
3106
|
-
"touch-pz"
|
|
3107
|
-
],
|
|
3108
|
-
"touch-x": ["touch"],
|
|
3109
|
-
"touch-y": ["touch"],
|
|
3110
|
-
"touch-pz": ["touch"]
|
|
3111
|
-
},
|
|
3112
|
-
conflictingClassGroupModifiers: { "font-size": ["leading"] },
|
|
3113
|
-
postfixLookupClassGroups: ["container-type"],
|
|
3114
|
-
orderSensitiveModifiers: [
|
|
3115
|
-
"*",
|
|
3116
|
-
"**",
|
|
3117
|
-
"after",
|
|
3118
|
-
"backdrop",
|
|
3119
|
-
"before",
|
|
3120
|
-
"details-content",
|
|
3121
|
-
"file",
|
|
3122
|
-
"first-letter",
|
|
3123
|
-
"first-line",
|
|
3124
|
-
"marker",
|
|
3125
|
-
"placeholder",
|
|
3126
|
-
"selection"
|
|
3127
|
-
]
|
|
3128
|
-
};
|
|
3129
|
-
});
|
|
3130
|
-
//#endregion
|
|
3131
43
|
//#region src/lib/utils.ts
|
|
3132
|
-
function
|
|
3133
|
-
return
|
|
44
|
+
function _(...e) {
|
|
45
|
+
return c(s(e));
|
|
3134
46
|
}
|
|
3135
47
|
//#endregion
|
|
3136
48
|
//#region src/components/ui/table.tsx
|
|
3137
|
-
function
|
|
3138
|
-
let t = (0,
|
|
3139
|
-
t[0] === e ? (n = t[1],
|
|
3140
|
-
let
|
|
3141
|
-
t[3] === n ?
|
|
49
|
+
function v(e) {
|
|
50
|
+
let t = (0, p.c)(8), n, r;
|
|
51
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
52
|
+
let i;
|
|
53
|
+
t[3] === n ? i = t[4] : (i = _("w-full caption-bottom text-sm", n), t[3] = n, t[4] = i);
|
|
3142
54
|
let o;
|
|
3143
|
-
return t[5] !==
|
|
55
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ a("div", {
|
|
3144
56
|
"data-slot": "table-container",
|
|
3145
57
|
className: "relative w-full overflow-x-auto",
|
|
3146
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ a("table", {
|
|
3147
59
|
"data-slot": "table",
|
|
3148
|
-
className:
|
|
3149
|
-
...
|
|
60
|
+
className: i,
|
|
61
|
+
...r
|
|
3150
62
|
})
|
|
3151
|
-
}), t[5] =
|
|
63
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
3152
64
|
}
|
|
3153
|
-
function
|
|
3154
|
-
let t = (0,
|
|
3155
|
-
t[0] === e ? (n = t[1],
|
|
3156
|
-
let
|
|
3157
|
-
t[3] === n ?
|
|
65
|
+
function y(e) {
|
|
66
|
+
let t = (0, p.c)(8), n, r;
|
|
67
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
68
|
+
let i;
|
|
69
|
+
t[3] === n ? i = t[4] : (i = _("[&_tr]:border-b", n), t[3] = n, t[4] = i);
|
|
3158
70
|
let o;
|
|
3159
|
-
return t[5] !==
|
|
71
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ a("thead", {
|
|
3160
72
|
"data-slot": "table-header",
|
|
3161
|
-
className:
|
|
3162
|
-
...
|
|
3163
|
-
}), t[5] =
|
|
3164
|
-
}
|
|
3165
|
-
function
|
|
3166
|
-
let t = (0,
|
|
3167
|
-
t[0] === e ? (n = t[1],
|
|
3168
|
-
let
|
|
3169
|
-
t[3] === n ?
|
|
73
|
+
className: i,
|
|
74
|
+
...r
|
|
75
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
76
|
+
}
|
|
77
|
+
function b(e) {
|
|
78
|
+
let t = (0, p.c)(8), n, r;
|
|
79
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
80
|
+
let i;
|
|
81
|
+
t[3] === n ? i = t[4] : (i = _("[&_tr:last-child]:border-0", n), t[3] = n, t[4] = i);
|
|
3170
82
|
let o;
|
|
3171
|
-
return t[5] !==
|
|
83
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ a("tbody", {
|
|
3172
84
|
"data-slot": "table-body",
|
|
3173
|
-
className:
|
|
3174
|
-
...
|
|
3175
|
-
}), t[5] =
|
|
3176
|
-
}
|
|
3177
|
-
function
|
|
3178
|
-
let t = (0,
|
|
3179
|
-
t[0] === e ? (n = t[1],
|
|
3180
|
-
let
|
|
3181
|
-
t[3] === n ?
|
|
85
|
+
className: i,
|
|
86
|
+
...r
|
|
87
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
88
|
+
}
|
|
89
|
+
function x(e) {
|
|
90
|
+
let t = (0, p.c)(8), n, r;
|
|
91
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
92
|
+
let i;
|
|
93
|
+
t[3] === n ? i = t[4] : (i = _("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", n), t[3] = n, t[4] = i);
|
|
3182
94
|
let o;
|
|
3183
|
-
return t[5] !==
|
|
95
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ a("tr", {
|
|
3184
96
|
"data-slot": "table-row",
|
|
3185
|
-
className:
|
|
3186
|
-
...
|
|
3187
|
-
}), t[5] =
|
|
3188
|
-
}
|
|
3189
|
-
function
|
|
3190
|
-
let t = (0,
|
|
3191
|
-
t[0] === e ? (n = t[1],
|
|
3192
|
-
let
|
|
3193
|
-
t[3] === n ?
|
|
97
|
+
className: i,
|
|
98
|
+
...r
|
|
99
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
100
|
+
}
|
|
101
|
+
function S(e) {
|
|
102
|
+
let t = (0, p.c)(8), n, r;
|
|
103
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
104
|
+
let i;
|
|
105
|
+
t[3] === n ? i = t[4] : (i = _("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", n), t[3] = n, t[4] = i);
|
|
3194
106
|
let o;
|
|
3195
|
-
return t[5] !==
|
|
107
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ a("th", {
|
|
3196
108
|
"data-slot": "table-head",
|
|
3197
|
-
className:
|
|
3198
|
-
...
|
|
3199
|
-
}), t[5] =
|
|
3200
|
-
}
|
|
3201
|
-
function
|
|
3202
|
-
let t = (0,
|
|
3203
|
-
t[0] === e ? (n = t[1],
|
|
3204
|
-
let
|
|
3205
|
-
t[3] === n ?
|
|
109
|
+
className: i,
|
|
110
|
+
...r
|
|
111
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
112
|
+
}
|
|
113
|
+
function C(e) {
|
|
114
|
+
let t = (0, p.c)(8), n, r;
|
|
115
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
116
|
+
let i;
|
|
117
|
+
t[3] === n ? i = t[4] : (i = _("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", n), t[3] = n, t[4] = i);
|
|
3206
118
|
let o;
|
|
3207
|
-
return t[5] !==
|
|
119
|
+
return t[5] !== r || t[6] !== i ? (o = /* @__PURE__ */ a("td", {
|
|
3208
120
|
"data-slot": "table-cell",
|
|
3209
|
-
className:
|
|
3210
|
-
...
|
|
3211
|
-
}), t[5] =
|
|
121
|
+
className: i,
|
|
122
|
+
...r
|
|
123
|
+
}), t[5] = r, t[6] = i, t[7] = o) : o = t[7], o;
|
|
3212
124
|
}
|
|
3213
125
|
//#endregion
|
|
3214
126
|
//#region src/package/table/TMain.tsx
|
|
3215
|
-
var
|
|
3216
|
-
let e = (0,
|
|
3217
|
-
e[0] === t ? n = e[1] : (n = t.getHeaderGroups().map(
|
|
3218
|
-
let
|
|
3219
|
-
e[2] === n ?
|
|
127
|
+
var w = () => {
|
|
128
|
+
let e = (0, p.c)(11), { table: t } = g(), n;
|
|
129
|
+
e[0] === t ? n = e[1] : (n = t.getHeaderGroups().map(E), e[0] = t, e[1] = n);
|
|
130
|
+
let r;
|
|
131
|
+
e[2] === n ? r = e[3] : (r = /* @__PURE__ */ a(y, {
|
|
3220
132
|
className: "sticky top-0 z-10 bg-muted",
|
|
3221
133
|
children: n
|
|
3222
|
-
}), e[2] = n, e[3] =
|
|
3223
|
-
let
|
|
3224
|
-
e[4] === t ?
|
|
134
|
+
}), e[2] = n, e[3] = r);
|
|
135
|
+
let i;
|
|
136
|
+
e[4] === t ? i = e[5] : (i = t.getRowModel().rows.map(O), e[4] = t, e[5] = i);
|
|
3225
137
|
let s;
|
|
3226
|
-
e[6] ===
|
|
138
|
+
e[6] === i ? s = e[7] : (s = /* @__PURE__ */ a(b, { children: i }), e[6] = i, e[7] = s);
|
|
3227
139
|
let c;
|
|
3228
|
-
return e[8] !==
|
|
140
|
+
return e[8] !== r || e[9] !== s ? (c = /* @__PURE__ */ o(v, { children: [r, s] }), e[8] = r, e[9] = s, e[10] = c) : c = e[10], c;
|
|
3229
141
|
};
|
|
3230
|
-
function
|
|
3231
|
-
return /* @__PURE__ */
|
|
142
|
+
function T(e) {
|
|
143
|
+
return /* @__PURE__ */ a(S, {
|
|
3232
144
|
colSpan: e.colSpan,
|
|
3233
145
|
style: {
|
|
3234
146
|
width: e.getSize(),
|
|
3235
147
|
minWidth: e.getSize(),
|
|
3236
148
|
maxWidth: e.getSize()
|
|
3237
149
|
},
|
|
3238
|
-
children: e.isPlaceholder ? null :
|
|
150
|
+
children: e.isPlaceholder ? null : n(e.column.columnDef.header, e.getContext())
|
|
3239
151
|
}, e.id);
|
|
3240
152
|
}
|
|
3241
|
-
function
|
|
3242
|
-
return /* @__PURE__ */
|
|
153
|
+
function E(e) {
|
|
154
|
+
return /* @__PURE__ */ a(x, { children: e.headers.map(T) }, e.id);
|
|
3243
155
|
}
|
|
3244
|
-
function
|
|
3245
|
-
return /* @__PURE__ */
|
|
156
|
+
function D(e) {
|
|
157
|
+
return /* @__PURE__ */ a(C, {
|
|
3246
158
|
style: {
|
|
3247
159
|
width: e.column.getSize(),
|
|
3248
160
|
minWidth: e.column.getSize(),
|
|
3249
161
|
maxWidth: e.column.getSize()
|
|
3250
162
|
},
|
|
3251
|
-
children:
|
|
163
|
+
children: n(e.column.columnDef.cell, e.getContext())
|
|
3252
164
|
}, e.id);
|
|
3253
165
|
}
|
|
3254
|
-
function
|
|
3255
|
-
return /* @__PURE__ */
|
|
166
|
+
function O(e) {
|
|
167
|
+
return /* @__PURE__ */ a(x, {
|
|
3256
168
|
"data-state": e.getIsSelected(),
|
|
3257
|
-
children: e.getVisibleCells().map(
|
|
169
|
+
children: e.getVisibleCells().map(D)
|
|
3258
170
|
}, e.id);
|
|
3259
171
|
}
|
|
3260
172
|
//#endregion
|
|
3261
173
|
//#region src/package/grid/index.tsx
|
|
3262
|
-
var
|
|
3263
|
-
let t = (0,
|
|
3264
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
174
|
+
var k = (e) => {
|
|
175
|
+
let t = (0, p.c)(4), { columns: n, payload: r } = e, i;
|
|
176
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(w, {}), t[0] = i) : i = t[0];
|
|
3265
177
|
let o;
|
|
3266
|
-
return t[1] !== n || t[2] !==
|
|
3267
|
-
payload:
|
|
178
|
+
return t[1] !== n || t[2] !== r ? (o = /* @__PURE__ */ a(h, {
|
|
179
|
+
payload: r,
|
|
3268
180
|
columns: n,
|
|
3269
|
-
children:
|
|
3270
|
-
}), t[1] = n, t[2] =
|
|
181
|
+
children: i
|
|
182
|
+
}), t[1] = n, t[2] = r, t[3] = o) : o = t[3], o;
|
|
3271
183
|
};
|
|
3272
184
|
//#endregion
|
|
3273
|
-
export {
|
|
185
|
+
export { k as Grid };
|