@vashu96/ui 0.0.1 → 0.0.3
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/README.md +52 -0
- package/dist/Breadcrumb.d.ts +1 -0
- package/dist/TOC.d.ts +19 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +436 -350
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as d, Fragment as et } from "react/jsx-runtime";
|
|
2
2
|
import * as Fe from "react";
|
|
3
|
-
import { forwardRef as _, useRef as L, useCallback as V, createContext as se, useEffect as P, useContext as le, useState as
|
|
3
|
+
import { forwardRef as _, useRef as L, useCallback as V, createContext as se, useEffect as P, useContext as le, useState as N, useMemo as Ue, useLayoutEffect as $t, useId as Pt } from "react";
|
|
4
4
|
import { createPortal as J } from "react-dom";
|
|
5
5
|
function tt(e) {
|
|
6
6
|
var n, t, r = "";
|
|
@@ -163,11 +163,11 @@ function Ht(e) {
|
|
|
163
163
|
}
|
|
164
164
|
f === "[" ? a++ : f === "]" && a--;
|
|
165
165
|
}
|
|
166
|
-
var u = l.length === 0 ? s : s.substring(c),
|
|
166
|
+
var u = l.length === 0 ? s : s.substring(c), p = u.startsWith(ot), m = p ? u.substring(1) : u, C = g && g > c ? g - c : void 0;
|
|
167
167
|
return {
|
|
168
168
|
modifiers: l,
|
|
169
|
-
hasImportantModifier:
|
|
170
|
-
baseClassName:
|
|
169
|
+
hasImportantModifier: p,
|
|
170
|
+
baseClassName: m,
|
|
171
171
|
maybePostfixModifierPosition: C
|
|
172
172
|
};
|
|
173
173
|
};
|
|
@@ -206,10 +206,10 @@ function Wt(e, n) {
|
|
|
206
206
|
};
|
|
207
207
|
u = !1;
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var p = Bt(a).join(":"), m = c ? p + ot : p;
|
|
210
210
|
return {
|
|
211
211
|
isTailwindClass: !0,
|
|
212
|
-
modifierId:
|
|
212
|
+
modifierId: m,
|
|
213
213
|
classGroupId: f,
|
|
214
214
|
originalClassName: s,
|
|
215
215
|
hasPostfixModifier: u
|
|
@@ -230,8 +230,8 @@ function qt() {
|
|
|
230
230
|
n[t] = arguments[t];
|
|
231
231
|
var r, o, i, s = l;
|
|
232
232
|
function l(c) {
|
|
233
|
-
var g = n[0], h = n.slice(1), f = h.reduce(function(u,
|
|
234
|
-
return
|
|
233
|
+
var g = n[0], h = n.slice(1), f = h.reduce(function(u, p) {
|
|
234
|
+
return p(u);
|
|
235
235
|
}, g());
|
|
236
236
|
return r = Ot(f), o = r.cache.get, i = r.cache.set, s = a, a(c);
|
|
237
237
|
}
|
|
@@ -246,7 +246,7 @@ function qt() {
|
|
|
246
246
|
return s(Lt.apply(null, arguments));
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function k(e) {
|
|
250
250
|
var n = function(r) {
|
|
251
251
|
return r[e] || [];
|
|
252
252
|
};
|
|
@@ -312,13 +312,13 @@ function sn(e) {
|
|
|
312
312
|
return Yt.test(e);
|
|
313
313
|
}
|
|
314
314
|
function ln() {
|
|
315
|
-
var e =
|
|
315
|
+
var e = k("colors"), n = k("spacing"), t = k("blur"), r = k("brightness"), o = k("borderColor"), i = k("borderRadius"), s = k("borderSpacing"), l = k("borderWidth"), a = k("contrast"), c = k("grayscale"), g = k("hueRotate"), h = k("invert"), f = k("gap"), u = k("gradientColorStops"), p = k("gradientColorStopPositions"), m = k("inset"), C = k("margin"), S = k("opacity"), v = k("padding"), y = k("saturate"), I = k("scale"), M = k("sepia"), E = k("skew"), O = k("space"), G = k("translate"), j = function() {
|
|
316
316
|
return ["auto", "contain", "none"];
|
|
317
317
|
}, X = function() {
|
|
318
318
|
return ["auto", "hidden", "clip", "visible", "scroll"];
|
|
319
319
|
}, W = function() {
|
|
320
320
|
return ["auto", F, n];
|
|
321
|
-
},
|
|
321
|
+
}, $ = function() {
|
|
322
322
|
return [F, n];
|
|
323
323
|
}, Oe = function() {
|
|
324
324
|
return ["", T];
|
|
@@ -350,25 +350,25 @@ function ln() {
|
|
|
350
350
|
brightness: te(),
|
|
351
351
|
borderColor: [e],
|
|
352
352
|
borderRadius: ["none", "", "full", q, F],
|
|
353
|
-
borderSpacing:
|
|
353
|
+
borderSpacing: $(),
|
|
354
354
|
borderWidth: Oe(),
|
|
355
355
|
contrast: te(),
|
|
356
356
|
grayscale: ee(),
|
|
357
357
|
hueRotate: ce(),
|
|
358
358
|
invert: ee(),
|
|
359
|
-
gap:
|
|
359
|
+
gap: $(),
|
|
360
360
|
gradientColorStops: [e],
|
|
361
361
|
gradientColorStopPositions: [tn, Ne],
|
|
362
362
|
inset: W(),
|
|
363
363
|
margin: W(),
|
|
364
364
|
opacity: te(),
|
|
365
|
-
padding:
|
|
365
|
+
padding: $(),
|
|
366
366
|
saturate: te(),
|
|
367
367
|
scale: te(),
|
|
368
368
|
sepia: ee(),
|
|
369
369
|
skew: ce(),
|
|
370
|
-
space:
|
|
371
|
-
translate:
|
|
370
|
+
space: $(),
|
|
371
|
+
translate: $()
|
|
372
372
|
},
|
|
373
373
|
classGroups: {
|
|
374
374
|
// Layout
|
|
@@ -516,63 +516,63 @@ function ln() {
|
|
|
516
516
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
517
517
|
*/
|
|
518
518
|
inset: [{
|
|
519
|
-
inset: [
|
|
519
|
+
inset: [m]
|
|
520
520
|
}],
|
|
521
521
|
/**
|
|
522
522
|
* Right / Left
|
|
523
523
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
524
524
|
*/
|
|
525
525
|
"inset-x": [{
|
|
526
|
-
"inset-x": [
|
|
526
|
+
"inset-x": [m]
|
|
527
527
|
}],
|
|
528
528
|
/**
|
|
529
529
|
* Top / Bottom
|
|
530
530
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
531
531
|
*/
|
|
532
532
|
"inset-y": [{
|
|
533
|
-
"inset-y": [
|
|
533
|
+
"inset-y": [m]
|
|
534
534
|
}],
|
|
535
535
|
/**
|
|
536
536
|
* Start
|
|
537
537
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
538
538
|
*/
|
|
539
539
|
start: [{
|
|
540
|
-
start: [
|
|
540
|
+
start: [m]
|
|
541
541
|
}],
|
|
542
542
|
/**
|
|
543
543
|
* End
|
|
544
544
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
545
545
|
*/
|
|
546
546
|
end: [{
|
|
547
|
-
end: [
|
|
547
|
+
end: [m]
|
|
548
548
|
}],
|
|
549
549
|
/**
|
|
550
550
|
* Top
|
|
551
551
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
552
552
|
*/
|
|
553
553
|
top: [{
|
|
554
|
-
top: [
|
|
554
|
+
top: [m]
|
|
555
555
|
}],
|
|
556
556
|
/**
|
|
557
557
|
* Right
|
|
558
558
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
559
559
|
*/
|
|
560
560
|
right: [{
|
|
561
|
-
right: [
|
|
561
|
+
right: [m]
|
|
562
562
|
}],
|
|
563
563
|
/**
|
|
564
564
|
* Bottom
|
|
565
565
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
566
566
|
*/
|
|
567
567
|
bottom: [{
|
|
568
|
-
bottom: [
|
|
568
|
+
bottom: [m]
|
|
569
569
|
}],
|
|
570
570
|
/**
|
|
571
571
|
* Left
|
|
572
572
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
573
573
|
*/
|
|
574
574
|
left: [{
|
|
575
|
-
left: [
|
|
575
|
+
left: [m]
|
|
576
576
|
}],
|
|
577
577
|
/**
|
|
578
578
|
* Visibility
|
|
@@ -1185,7 +1185,7 @@ function ln() {
|
|
|
1185
1185
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1186
1186
|
*/
|
|
1187
1187
|
indent: [{
|
|
1188
|
-
indent:
|
|
1188
|
+
indent: $()
|
|
1189
1189
|
}],
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Vertical Alignment
|
|
@@ -1296,21 +1296,21 @@ function ln() {
|
|
|
1296
1296
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1297
1297
|
*/
|
|
1298
1298
|
"gradient-from-pos": [{
|
|
1299
|
-
from: [
|
|
1299
|
+
from: [p]
|
|
1300
1300
|
}],
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Gradient Color Stops Via Position
|
|
1303
1303
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1304
1304
|
*/
|
|
1305
1305
|
"gradient-via-pos": [{
|
|
1306
|
-
via: [
|
|
1306
|
+
via: [p]
|
|
1307
1307
|
}],
|
|
1308
1308
|
/**
|
|
1309
1309
|
* Gradient Color Stops To Position
|
|
1310
1310
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1311
1311
|
*/
|
|
1312
1312
|
"gradient-to-pos": [{
|
|
1313
|
-
to: [
|
|
1313
|
+
to: [p]
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Gradient Color Stops From
|
|
@@ -1777,7 +1777,7 @@ function ln() {
|
|
|
1777
1777
|
* @see https://tailwindcss.com/docs/saturate
|
|
1778
1778
|
*/
|
|
1779
1779
|
saturate: [{
|
|
1780
|
-
saturate: [
|
|
1780
|
+
saturate: [y]
|
|
1781
1781
|
}],
|
|
1782
1782
|
/**
|
|
1783
1783
|
* Sepia
|
|
@@ -1848,7 +1848,7 @@ function ln() {
|
|
|
1848
1848
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
1849
1849
|
*/
|
|
1850
1850
|
"backdrop-saturate": [{
|
|
1851
|
-
"backdrop-saturate": [
|
|
1851
|
+
"backdrop-saturate": [y]
|
|
1852
1852
|
}],
|
|
1853
1853
|
/**
|
|
1854
1854
|
* Backdrop Sepia
|
|
@@ -1949,21 +1949,21 @@ function ln() {
|
|
|
1949
1949
|
* @see https://tailwindcss.com/docs/scale
|
|
1950
1950
|
*/
|
|
1951
1951
|
scale: [{
|
|
1952
|
-
scale: [
|
|
1952
|
+
scale: [I]
|
|
1953
1953
|
}],
|
|
1954
1954
|
/**
|
|
1955
1955
|
* Scale X
|
|
1956
1956
|
* @see https://tailwindcss.com/docs/scale
|
|
1957
1957
|
*/
|
|
1958
1958
|
"scale-x": [{
|
|
1959
|
-
"scale-x": [
|
|
1959
|
+
"scale-x": [I]
|
|
1960
1960
|
}],
|
|
1961
1961
|
/**
|
|
1962
1962
|
* Scale Y
|
|
1963
1963
|
* @see https://tailwindcss.com/docs/scale
|
|
1964
1964
|
*/
|
|
1965
1965
|
"scale-y": [{
|
|
1966
|
-
"scale-y": [
|
|
1966
|
+
"scale-y": [I]
|
|
1967
1967
|
}],
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Rotate
|
|
@@ -2060,126 +2060,126 @@ function ln() {
|
|
|
2060
2060
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2061
2061
|
*/
|
|
2062
2062
|
"scroll-m": [{
|
|
2063
|
-
"scroll-m":
|
|
2063
|
+
"scroll-m": $()
|
|
2064
2064
|
}],
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Scroll Margin X
|
|
2067
2067
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2068
2068
|
*/
|
|
2069
2069
|
"scroll-mx": [{
|
|
2070
|
-
"scroll-mx":
|
|
2070
|
+
"scroll-mx": $()
|
|
2071
2071
|
}],
|
|
2072
2072
|
/**
|
|
2073
2073
|
* Scroll Margin Y
|
|
2074
2074
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2075
2075
|
*/
|
|
2076
2076
|
"scroll-my": [{
|
|
2077
|
-
"scroll-my":
|
|
2077
|
+
"scroll-my": $()
|
|
2078
2078
|
}],
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Scroll Margin Start
|
|
2081
2081
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2082
2082
|
*/
|
|
2083
2083
|
"scroll-ms": [{
|
|
2084
|
-
"scroll-ms":
|
|
2084
|
+
"scroll-ms": $()
|
|
2085
2085
|
}],
|
|
2086
2086
|
/**
|
|
2087
2087
|
* Scroll Margin End
|
|
2088
2088
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2089
2089
|
*/
|
|
2090
2090
|
"scroll-me": [{
|
|
2091
|
-
"scroll-me":
|
|
2091
|
+
"scroll-me": $()
|
|
2092
2092
|
}],
|
|
2093
2093
|
/**
|
|
2094
2094
|
* Scroll Margin Top
|
|
2095
2095
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2096
2096
|
*/
|
|
2097
2097
|
"scroll-mt": [{
|
|
2098
|
-
"scroll-mt":
|
|
2098
|
+
"scroll-mt": $()
|
|
2099
2099
|
}],
|
|
2100
2100
|
/**
|
|
2101
2101
|
* Scroll Margin Right
|
|
2102
2102
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2103
2103
|
*/
|
|
2104
2104
|
"scroll-mr": [{
|
|
2105
|
-
"scroll-mr":
|
|
2105
|
+
"scroll-mr": $()
|
|
2106
2106
|
}],
|
|
2107
2107
|
/**
|
|
2108
2108
|
* Scroll Margin Bottom
|
|
2109
2109
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2110
2110
|
*/
|
|
2111
2111
|
"scroll-mb": [{
|
|
2112
|
-
"scroll-mb":
|
|
2112
|
+
"scroll-mb": $()
|
|
2113
2113
|
}],
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Scroll Margin Left
|
|
2116
2116
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2117
2117
|
*/
|
|
2118
2118
|
"scroll-ml": [{
|
|
2119
|
-
"scroll-ml":
|
|
2119
|
+
"scroll-ml": $()
|
|
2120
2120
|
}],
|
|
2121
2121
|
/**
|
|
2122
2122
|
* Scroll Padding
|
|
2123
2123
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2124
2124
|
*/
|
|
2125
2125
|
"scroll-p": [{
|
|
2126
|
-
"scroll-p":
|
|
2126
|
+
"scroll-p": $()
|
|
2127
2127
|
}],
|
|
2128
2128
|
/**
|
|
2129
2129
|
* Scroll Padding X
|
|
2130
2130
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2131
2131
|
*/
|
|
2132
2132
|
"scroll-px": [{
|
|
2133
|
-
"scroll-px":
|
|
2133
|
+
"scroll-px": $()
|
|
2134
2134
|
}],
|
|
2135
2135
|
/**
|
|
2136
2136
|
* Scroll Padding Y
|
|
2137
2137
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2138
2138
|
*/
|
|
2139
2139
|
"scroll-py": [{
|
|
2140
|
-
"scroll-py":
|
|
2140
|
+
"scroll-py": $()
|
|
2141
2141
|
}],
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Scroll Padding Start
|
|
2144
2144
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2145
2145
|
*/
|
|
2146
2146
|
"scroll-ps": [{
|
|
2147
|
-
"scroll-ps":
|
|
2147
|
+
"scroll-ps": $()
|
|
2148
2148
|
}],
|
|
2149
2149
|
/**
|
|
2150
2150
|
* Scroll Padding End
|
|
2151
2151
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2152
2152
|
*/
|
|
2153
2153
|
"scroll-pe": [{
|
|
2154
|
-
"scroll-pe":
|
|
2154
|
+
"scroll-pe": $()
|
|
2155
2155
|
}],
|
|
2156
2156
|
/**
|
|
2157
2157
|
* Scroll Padding Top
|
|
2158
2158
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2159
2159
|
*/
|
|
2160
2160
|
"scroll-pt": [{
|
|
2161
|
-
"scroll-pt":
|
|
2161
|
+
"scroll-pt": $()
|
|
2162
2162
|
}],
|
|
2163
2163
|
/**
|
|
2164
2164
|
* Scroll Padding Right
|
|
2165
2165
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2166
2166
|
*/
|
|
2167
2167
|
"scroll-pr": [{
|
|
2168
|
-
"scroll-pr":
|
|
2168
|
+
"scroll-pr": $()
|
|
2169
2169
|
}],
|
|
2170
2170
|
/**
|
|
2171
2171
|
* Scroll Padding Bottom
|
|
2172
2172
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2173
2173
|
*/
|
|
2174
2174
|
"scroll-pb": [{
|
|
2175
|
-
"scroll-pb":
|
|
2175
|
+
"scroll-pb": $()
|
|
2176
2176
|
}],
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Scroll Padding Left
|
|
2179
2179
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2180
2180
|
*/
|
|
2181
2181
|
"scroll-pl": [{
|
|
2182
|
-
"scroll-pl":
|
|
2182
|
+
"scroll-pl": $()
|
|
2183
2183
|
}],
|
|
2184
2184
|
/**
|
|
2185
2185
|
* Scroll Snap Align
|
|
@@ -2327,7 +2327,7 @@ const w = (...e) => an(Vt(e)), un = {
|
|
|
2327
2327
|
className: o,
|
|
2328
2328
|
children: i,
|
|
2329
2329
|
...s
|
|
2330
|
-
}, l) => /* @__PURE__ */
|
|
2330
|
+
}, l) => /* @__PURE__ */ b(
|
|
2331
2331
|
"button",
|
|
2332
2332
|
{
|
|
2333
2333
|
ref: l,
|
|
@@ -2341,7 +2341,7 @@ const w = (...e) => an(Vt(e)), un = {
|
|
|
2341
2341
|
),
|
|
2342
2342
|
...s,
|
|
2343
2343
|
children: [
|
|
2344
|
-
t && /* @__PURE__ */
|
|
2344
|
+
t && /* @__PURE__ */ b(
|
|
2345
2345
|
"svg",
|
|
2346
2346
|
{
|
|
2347
2347
|
className: "animate-spin -ml-1 mr-2 h-4 w-4",
|
|
@@ -2480,7 +2480,7 @@ const Cn = _(
|
|
|
2480
2480
|
);
|
|
2481
2481
|
Cn.displayName = "Separator";
|
|
2482
2482
|
const lt = _(
|
|
2483
|
-
({ error: e, className: n, ...t }, r) => /* @__PURE__ */
|
|
2483
|
+
({ error: e, className: n, ...t }, r) => /* @__PURE__ */ b("div", { className: "w-full", children: [
|
|
2484
2484
|
/* @__PURE__ */ d(
|
|
2485
2485
|
"input",
|
|
2486
2486
|
{
|
|
@@ -2586,23 +2586,23 @@ function fo({
|
|
|
2586
2586
|
children: r,
|
|
2587
2587
|
className: o
|
|
2588
2588
|
}) {
|
|
2589
|
-
const [i, s] =
|
|
2589
|
+
const [i, s] = N(!1), [l, a] = N({ x: 0, y: 0 }), c = L(null), g = L(null), h = V(() => {
|
|
2590
2590
|
g.current = setTimeout(() => {
|
|
2591
2591
|
if (!c.current) return;
|
|
2592
|
-
const
|
|
2592
|
+
const m = c.current.getBoundingClientRect(), C = 8;
|
|
2593
2593
|
let S = 0, v = 0;
|
|
2594
2594
|
switch (n) {
|
|
2595
2595
|
case "top":
|
|
2596
|
-
S =
|
|
2596
|
+
S = m.left + m.width / 2, v = m.top - C;
|
|
2597
2597
|
break;
|
|
2598
2598
|
case "bottom":
|
|
2599
|
-
S =
|
|
2599
|
+
S = m.left + m.width / 2, v = m.bottom + C;
|
|
2600
2600
|
break;
|
|
2601
2601
|
case "left":
|
|
2602
|
-
S =
|
|
2602
|
+
S = m.left - C, v = m.top + m.height / 2;
|
|
2603
2603
|
break;
|
|
2604
2604
|
case "right":
|
|
2605
|
-
S =
|
|
2605
|
+
S = m.right + C, v = m.top + m.height / 2;
|
|
2606
2606
|
break;
|
|
2607
2607
|
}
|
|
2608
2608
|
a({ x: S, y: v }), s(!0);
|
|
@@ -2621,13 +2621,13 @@ function fo({
|
|
|
2621
2621
|
bottom: "top center",
|
|
2622
2622
|
left: "right center",
|
|
2623
2623
|
right: "left center"
|
|
2624
|
-
},
|
|
2624
|
+
}, p = {
|
|
2625
2625
|
top: "translate(-50%, -100%)",
|
|
2626
2626
|
bottom: "translate(-50%, 0)",
|
|
2627
2627
|
left: "translate(-100%, -50%)",
|
|
2628
2628
|
right: "translate(0, -50%)"
|
|
2629
2629
|
};
|
|
2630
|
-
return /* @__PURE__ */
|
|
2630
|
+
return /* @__PURE__ */ b(et, { children: [
|
|
2631
2631
|
/* @__PURE__ */ d(
|
|
2632
2632
|
"span",
|
|
2633
2633
|
{
|
|
@@ -2649,7 +2649,7 @@ function fo({
|
|
|
2649
2649
|
position: "fixed",
|
|
2650
2650
|
left: l.x,
|
|
2651
2651
|
top: l.y,
|
|
2652
|
-
transform:
|
|
2652
|
+
transform: p[n],
|
|
2653
2653
|
transformOrigin: u[n],
|
|
2654
2654
|
zIndex: 9999
|
|
2655
2655
|
},
|
|
@@ -2668,7 +2668,7 @@ function Ae() {
|
|
|
2668
2668
|
return e;
|
|
2669
2669
|
}
|
|
2670
2670
|
function po({ children: e }) {
|
|
2671
|
-
const [n, t] =
|
|
2671
|
+
const [n, t] = N(!1), r = L(null), o = V(() => t((s) => !s), []), i = V(() => t(!1), []);
|
|
2672
2672
|
return P(() => {
|
|
2673
2673
|
if (!n) return;
|
|
2674
2674
|
const s = (l) => {
|
|
@@ -2679,7 +2679,7 @@ function po({ children: e }) {
|
|
|
2679
2679
|
}
|
|
2680
2680
|
const Rn = _(({ className: e, children: n, ...t }, r) => {
|
|
2681
2681
|
const { toggle: o, open: i, triggerRef: s } = Ae();
|
|
2682
|
-
return /* @__PURE__ */
|
|
2682
|
+
return /* @__PURE__ */ b(
|
|
2683
2683
|
"button",
|
|
2684
2684
|
{
|
|
2685
2685
|
ref: s,
|
|
@@ -2725,7 +2725,7 @@ function mo({
|
|
|
2725
2725
|
children: t,
|
|
2726
2726
|
...r
|
|
2727
2727
|
}) {
|
|
2728
|
-
const { open: o, close: i, triggerRef: s } = Ae(), l = L(null), [a, c] =
|
|
2728
|
+
const { open: o, close: i, triggerRef: s } = Ae(), l = L(null), [a, c] = N({ top: 0, left: 0, minWidth: 0 });
|
|
2729
2729
|
return P(() => {
|
|
2730
2730
|
if (!o) return;
|
|
2731
2731
|
const g = (h) => {
|
|
@@ -2799,7 +2799,7 @@ const Fn = {
|
|
|
2799
2799
|
warning: "alert-warning",
|
|
2800
2800
|
danger: "alert-danger"
|
|
2801
2801
|
}, Mn = {
|
|
2802
|
-
info: /* @__PURE__ */
|
|
2802
|
+
info: /* @__PURE__ */ b("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
2803
2803
|
/* @__PURE__ */ d("circle", { cx: "9", cy: "9", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
2804
2804
|
/* @__PURE__ */ d(
|
|
2805
2805
|
"path",
|
|
@@ -2811,7 +2811,7 @@ const Fn = {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
)
|
|
2813
2813
|
] }),
|
|
2814
|
-
success: /* @__PURE__ */
|
|
2814
|
+
success: /* @__PURE__ */ b("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
2815
2815
|
/* @__PURE__ */ d("circle", { cx: "9", cy: "9", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
2816
2816
|
/* @__PURE__ */ d(
|
|
2817
2817
|
"path",
|
|
@@ -2824,7 +2824,7 @@ const Fn = {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
)
|
|
2826
2826
|
] }),
|
|
2827
|
-
warning: /* @__PURE__ */
|
|
2827
|
+
warning: /* @__PURE__ */ b("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
2828
2828
|
/* @__PURE__ */ d(
|
|
2829
2829
|
"path",
|
|
2830
2830
|
{
|
|
@@ -2844,7 +2844,7 @@ const Fn = {
|
|
|
2844
2844
|
}
|
|
2845
2845
|
)
|
|
2846
2846
|
] }),
|
|
2847
|
-
danger: /* @__PURE__ */
|
|
2847
|
+
danger: /* @__PURE__ */ b("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
2848
2848
|
/* @__PURE__ */ d("circle", { cx: "9", cy: "9", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
2849
2849
|
/* @__PURE__ */ d(
|
|
2850
2850
|
"path",
|
|
@@ -2867,12 +2867,12 @@ const Fn = {
|
|
|
2867
2867
|
children: s,
|
|
2868
2868
|
...l
|
|
2869
2869
|
}, a) => {
|
|
2870
|
-
const [c, g] =
|
|
2870
|
+
const [c, g] = N(!1);
|
|
2871
2871
|
if (c) return null;
|
|
2872
2872
|
const h = () => {
|
|
2873
2873
|
g(!0), o?.();
|
|
2874
2874
|
};
|
|
2875
|
-
return /* @__PURE__ */
|
|
2875
|
+
return /* @__PURE__ */ b(
|
|
2876
2876
|
"div",
|
|
2877
2877
|
{
|
|
2878
2878
|
ref: a,
|
|
@@ -2881,7 +2881,7 @@ const Fn = {
|
|
|
2881
2881
|
...l,
|
|
2882
2882
|
children: [
|
|
2883
2883
|
/* @__PURE__ */ d("span", { className: "alert-icon", children: t ?? Mn[e] }),
|
|
2884
|
-
/* @__PURE__ */
|
|
2884
|
+
/* @__PURE__ */ b("div", { className: "alert-content", children: [
|
|
2885
2885
|
n && /* @__PURE__ */ d("p", { className: "alert-title", children: n }),
|
|
2886
2886
|
s && /* @__PURE__ */ d("div", { className: "alert-description", children: s })
|
|
2887
2887
|
] }),
|
|
@@ -2915,14 +2915,14 @@ function vo() {
|
|
|
2915
2915
|
if (!e) throw new Error("useToast must be used within <ToastProvider>");
|
|
2916
2916
|
return e;
|
|
2917
2917
|
}
|
|
2918
|
-
const
|
|
2918
|
+
const In = {
|
|
2919
2919
|
info: "toast-info",
|
|
2920
2920
|
success: "toast-success",
|
|
2921
2921
|
warning: "toast-warning",
|
|
2922
2922
|
danger: "toast-danger"
|
|
2923
2923
|
};
|
|
2924
|
-
function
|
|
2925
|
-
const [t, r] =
|
|
2924
|
+
function kn({ data: e, onDismiss: n }) {
|
|
2925
|
+
const [t, r] = N(!1), [o, i] = N(!1), s = L(0), l = L(Date.now()), a = e.duration ?? 4e3, c = V(() => {
|
|
2926
2926
|
r(!0), setTimeout(() => n(e.id), 200);
|
|
2927
2927
|
}, [e.id, n]);
|
|
2928
2928
|
return P(() => {
|
|
@@ -2936,19 +2936,19 @@ function $n({ data: e, onDismiss: n }) {
|
|
|
2936
2936
|
s.current += Date.now() - l.current, l.current = Date.now(), s.current >= a && (c(), clearInterval(g));
|
|
2937
2937
|
}, 50);
|
|
2938
2938
|
return () => clearInterval(g);
|
|
2939
|
-
}, [a, o, c]), /* @__PURE__ */
|
|
2939
|
+
}, [a, o, c]), /* @__PURE__ */ b(
|
|
2940
2940
|
"div",
|
|
2941
2941
|
{
|
|
2942
2942
|
className: w(
|
|
2943
2943
|
"toast",
|
|
2944
|
-
|
|
2944
|
+
In[e.variant],
|
|
2945
2945
|
t ? "toast-exit" : "toast-enter"
|
|
2946
2946
|
),
|
|
2947
2947
|
role: "alert",
|
|
2948
2948
|
onMouseEnter: () => i(!0),
|
|
2949
2949
|
onMouseLeave: () => i(!1),
|
|
2950
2950
|
children: [
|
|
2951
|
-
/* @__PURE__ */
|
|
2951
|
+
/* @__PURE__ */ b("div", { className: "toast-body", children: [
|
|
2952
2952
|
/* @__PURE__ */ d("p", { className: "toast-title", children: e.title }),
|
|
2953
2953
|
e.description && /* @__PURE__ */ d("p", { className: "toast-description", children: e.description })
|
|
2954
2954
|
] }),
|
|
@@ -2974,21 +2974,21 @@ function $n({ data: e, onDismiss: n }) {
|
|
|
2974
2974
|
}
|
|
2975
2975
|
);
|
|
2976
2976
|
}
|
|
2977
|
-
let
|
|
2977
|
+
let $n = 0;
|
|
2978
2978
|
function wo({ children: e, maxToasts: n = 5 }) {
|
|
2979
|
-
const [t, r] =
|
|
2979
|
+
const [t, r] = N([]), o = V(
|
|
2980
2980
|
(s) => {
|
|
2981
|
-
const l = `toast-${
|
|
2981
|
+
const l = `toast-${++$n}`;
|
|
2982
2982
|
r((a) => [...a.slice(-(n - 1)), { ...s, id: l }]);
|
|
2983
2983
|
},
|
|
2984
2984
|
[n]
|
|
2985
2985
|
), i = V((s) => {
|
|
2986
2986
|
r((l) => l.filter((a) => a.id !== s));
|
|
2987
2987
|
}, []);
|
|
2988
|
-
return /* @__PURE__ */
|
|
2988
|
+
return /* @__PURE__ */ b(pt.Provider, { value: { toast: o }, children: [
|
|
2989
2989
|
e,
|
|
2990
2990
|
J(
|
|
2991
|
-
/* @__PURE__ */ d("div", { className: "toast-container", "aria-live": "polite", children: t.map((s) => /* @__PURE__ */ d(
|
|
2991
|
+
/* @__PURE__ */ d("div", { className: "toast-container", "aria-live": "polite", children: t.map((s) => /* @__PURE__ */ d(kn, { data: s, onDismiss: i }, s.id)) }),
|
|
2992
2992
|
document.body
|
|
2993
2993
|
)
|
|
2994
2994
|
] });
|
|
@@ -3030,10 +3030,10 @@ const Pn = {
|
|
|
3030
3030
|
)
|
|
3031
3031
|
);
|
|
3032
3032
|
Vn.displayName = "Textarea";
|
|
3033
|
-
const
|
|
3033
|
+
const Ie = _(
|
|
3034
3034
|
({ label: e, checked: n, indeterminate: t, className: r, onChange: o, ...i }, s) => {
|
|
3035
3035
|
const l = L(null), a = s ?? l;
|
|
3036
|
-
return /* @__PURE__ */
|
|
3036
|
+
return /* @__PURE__ */ b("label", { className: w("checkbox-wrapper", r), children: [
|
|
3037
3037
|
/* @__PURE__ */ d(
|
|
3038
3038
|
"input",
|
|
3039
3039
|
{
|
|
@@ -3085,9 +3085,9 @@ const ke = _(
|
|
|
3085
3085
|
] });
|
|
3086
3086
|
}
|
|
3087
3087
|
);
|
|
3088
|
-
|
|
3088
|
+
Ie.displayName = "Checkbox";
|
|
3089
3089
|
const Ln = _(
|
|
3090
|
-
({ checked: e, onChange: n, label: t, size: r = "md", className: o, ...i }, s) => /* @__PURE__ */
|
|
3090
|
+
({ checked: e, onChange: n, label: t, size: r = "md", className: o, ...i }, s) => /* @__PURE__ */ b("label", { className: w("switch-wrapper", o), children: [
|
|
3091
3091
|
/* @__PURE__ */ d(
|
|
3092
3092
|
"button",
|
|
3093
3093
|
{
|
|
@@ -3113,8 +3113,8 @@ const Ln = _(
|
|
|
3113
3113
|
);
|
|
3114
3114
|
Ln.displayName = "Switch";
|
|
3115
3115
|
const En = _(
|
|
3116
|
-
({ label: e, showValue: n, className: t, value: r, ...o }, i) => /* @__PURE__ */
|
|
3117
|
-
(e || n) && /* @__PURE__ */
|
|
3116
|
+
({ label: e, showValue: n, className: t, value: r, ...o }, i) => /* @__PURE__ */ b("div", { className: w("flex flex-col gap-1.5", t), children: [
|
|
3117
|
+
(e || n) && /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
|
|
3118
3118
|
e && /* @__PURE__ */ d("span", { className: "form-label", children: e }),
|
|
3119
3119
|
n && /* @__PURE__ */ d(
|
|
3120
3120
|
"span",
|
|
@@ -3146,25 +3146,25 @@ function Dn({
|
|
|
3146
3146
|
error: o,
|
|
3147
3147
|
className: i
|
|
3148
3148
|
}) {
|
|
3149
|
-
const [s, l] =
|
|
3149
|
+
const [s, l] = N(!1), a = L(null), c = L(null), [g, h] = N({ top: 0, left: 0, width: 0 }), f = e.find((m) => m.value === n)?.label, u = V(() => l((m) => !m), []), p = V(() => l(!1), []);
|
|
3150
3150
|
return P(() => {
|
|
3151
3151
|
if (!s || !a.current) return;
|
|
3152
|
-
const
|
|
3153
|
-
h({ top:
|
|
3152
|
+
const m = a.current.getBoundingClientRect();
|
|
3153
|
+
h({ top: m.bottom + 4, left: m.left, width: m.width });
|
|
3154
3154
|
}, [s]), P(() => {
|
|
3155
3155
|
if (!s) return;
|
|
3156
|
-
const
|
|
3157
|
-
c.current && !c.current.contains(C.target) && a.current && !a.current.contains(C.target) &&
|
|
3156
|
+
const m = (C) => {
|
|
3157
|
+
c.current && !c.current.contains(C.target) && a.current && !a.current.contains(C.target) && p();
|
|
3158
3158
|
};
|
|
3159
|
-
return document.addEventListener("mousedown",
|
|
3160
|
-
}, [s,
|
|
3159
|
+
return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
3160
|
+
}, [s, p]), P(() => {
|
|
3161
3161
|
if (!s) return;
|
|
3162
|
-
const
|
|
3163
|
-
C.key === "Escape" &&
|
|
3162
|
+
const m = (C) => {
|
|
3163
|
+
C.key === "Escape" && p();
|
|
3164
3164
|
};
|
|
3165
|
-
return document.addEventListener("keydown",
|
|
3166
|
-
}, [s,
|
|
3167
|
-
/* @__PURE__ */
|
|
3165
|
+
return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
|
|
3166
|
+
}, [s, p]), /* @__PURE__ */ b("div", { className: w("inline-block w-full", i), children: [
|
|
3167
|
+
/* @__PURE__ */ b(
|
|
3168
3168
|
"button",
|
|
3169
3169
|
{
|
|
3170
3170
|
ref: a,
|
|
@@ -3212,26 +3212,26 @@ function Dn({
|
|
|
3212
3212
|
width: g.width,
|
|
3213
3213
|
zIndex: 9998
|
|
3214
3214
|
},
|
|
3215
|
-
children: e.map((
|
|
3215
|
+
children: e.map((m) => /* @__PURE__ */ b(
|
|
3216
3216
|
"div",
|
|
3217
3217
|
{
|
|
3218
3218
|
className: w(
|
|
3219
3219
|
"select-option",
|
|
3220
|
-
|
|
3220
|
+
m.disabled && "opacity-50 cursor-not-allowed"
|
|
3221
3221
|
),
|
|
3222
|
-
"data-selected":
|
|
3222
|
+
"data-selected": m.value === n,
|
|
3223
3223
|
onClick: () => {
|
|
3224
|
-
|
|
3224
|
+
m.disabled || (t?.(m.value), p());
|
|
3225
3225
|
},
|
|
3226
3226
|
onKeyDown: (C) => {
|
|
3227
|
-
(C.key === "Enter" || C.key === " ") && !
|
|
3227
|
+
(C.key === "Enter" || C.key === " ") && !m.disabled && (t?.(m.value), p());
|
|
3228
3228
|
},
|
|
3229
|
-
tabIndex:
|
|
3229
|
+
tabIndex: m.disabled ? -1 : 0,
|
|
3230
3230
|
role: "option",
|
|
3231
|
-
"aria-selected":
|
|
3231
|
+
"aria-selected": m.value === n,
|
|
3232
3232
|
children: [
|
|
3233
|
-
/* @__PURE__ */ d("span", { children:
|
|
3234
|
-
|
|
3233
|
+
/* @__PURE__ */ d("span", { children: m.label }),
|
|
3234
|
+
m.value === n && /* @__PURE__ */ d("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ d(
|
|
3235
3235
|
"path",
|
|
3236
3236
|
{
|
|
3237
3237
|
d: "M3.5 7L6 9.5L10.5 4.5",
|
|
@@ -3243,7 +3243,7 @@ function Dn({
|
|
|
3243
3243
|
) })
|
|
3244
3244
|
]
|
|
3245
3245
|
},
|
|
3246
|
-
|
|
3246
|
+
m.value
|
|
3247
3247
|
))
|
|
3248
3248
|
}
|
|
3249
3249
|
),
|
|
@@ -3264,7 +3264,7 @@ function Co({
|
|
|
3264
3264
|
children: r,
|
|
3265
3265
|
className: o
|
|
3266
3266
|
}) {
|
|
3267
|
-
const [i, s] =
|
|
3267
|
+
const [i, s] = N(e), l = n ?? i, a = L(/* @__PURE__ */ new Map()), c = V(
|
|
3268
3268
|
(h) => {
|
|
3269
3269
|
s(h), t?.(h);
|
|
3270
3270
|
},
|
|
@@ -3281,7 +3281,7 @@ function So({
|
|
|
3281
3281
|
children: e,
|
|
3282
3282
|
className: n
|
|
3283
3283
|
}) {
|
|
3284
|
-
const { activeTab: t } = ze(), r = L(null), [o, i] =
|
|
3284
|
+
const { activeTab: t } = ze(), r = L(null), [o, i] = N({ left: 0, width: 0 });
|
|
3285
3285
|
return P(() => {
|
|
3286
3286
|
if (!r.current) return;
|
|
3287
3287
|
const s = r.current.querySelector(
|
|
@@ -3294,7 +3294,7 @@ function So({
|
|
|
3294
3294
|
width: a.width
|
|
3295
3295
|
});
|
|
3296
3296
|
}
|
|
3297
|
-
}, [t]), /* @__PURE__ */
|
|
3297
|
+
}, [t]), /* @__PURE__ */ b("div", { ref: r, className: w("tabs-list", n), children: [
|
|
3298
3298
|
e,
|
|
3299
3299
|
/* @__PURE__ */ d(
|
|
3300
3300
|
"div",
|
|
@@ -3351,8 +3351,8 @@ const he = _(({ className: e, ...n }, t) => /* @__PURE__ */ d("tr", { ref: t, cl
|
|
|
3351
3351
|
he.displayName = "TableRow";
|
|
3352
3352
|
const St = _(({ className: e, ...n }, t) => /* @__PURE__ */ d("th", { ref: t, className: w("data-table-head", e), ...n }));
|
|
3353
3353
|
St.displayName = "TableHead";
|
|
3354
|
-
const
|
|
3355
|
-
|
|
3354
|
+
const ke = _(({ className: e, ...n }, t) => /* @__PURE__ */ d("td", { ref: t, className: w("data-table-cell", e), ...n }));
|
|
3355
|
+
ke.displayName = "TableCell";
|
|
3356
3356
|
const An = {
|
|
3357
3357
|
xs: "avatar-xs",
|
|
3358
3358
|
sm: "avatar-sm",
|
|
@@ -3404,10 +3404,10 @@ const Hn = {
|
|
|
3404
3404
|
...s
|
|
3405
3405
|
}, l) => {
|
|
3406
3406
|
const a = Math.min(100, Math.max(0, e / n * 100));
|
|
3407
|
-
return /* @__PURE__ */
|
|
3408
|
-
(r || o) && /* @__PURE__ */
|
|
3407
|
+
return /* @__PURE__ */ b("div", { className: w("progress-wrapper", i), ref: l, ...s, children: [
|
|
3408
|
+
(r || o) && /* @__PURE__ */ b("div", { className: "progress-label-row", children: [
|
|
3409
3409
|
r && /* @__PURE__ */ d("span", { className: "progress-label", children: r }),
|
|
3410
|
-
o && /* @__PURE__ */
|
|
3410
|
+
o && /* @__PURE__ */ b("span", { className: "progress-value", children: [
|
|
3411
3411
|
Math.round(a),
|
|
3412
3412
|
"%"
|
|
3413
3413
|
] })
|
|
@@ -3438,7 +3438,7 @@ const On = {
|
|
|
3438
3438
|
md: "spinner-md",
|
|
3439
3439
|
lg: "spinner-lg"
|
|
3440
3440
|
}, jn = _(
|
|
3441
|
-
({ size: e = "md", label: n, className: t, ...r }, o) => /* @__PURE__ */
|
|
3441
|
+
({ size: e = "md", label: n, className: t, ...r }, o) => /* @__PURE__ */ b(
|
|
3442
3442
|
"div",
|
|
3443
3443
|
{
|
|
3444
3444
|
ref: o,
|
|
@@ -3446,7 +3446,7 @@ const On = {
|
|
|
3446
3446
|
className: w("spinner-wrapper", t),
|
|
3447
3447
|
...r,
|
|
3448
3448
|
children: [
|
|
3449
|
-
/* @__PURE__ */
|
|
3449
|
+
/* @__PURE__ */ b(
|
|
3450
3450
|
"svg",
|
|
3451
3451
|
{
|
|
3452
3452
|
className: w("spinner", On[e]),
|
|
@@ -3498,7 +3498,7 @@ const Wn = {
|
|
|
3498
3498
|
className: o,
|
|
3499
3499
|
children: i,
|
|
3500
3500
|
...s
|
|
3501
|
-
}, l) => /* @__PURE__ */
|
|
3501
|
+
}, l) => /* @__PURE__ */ b(
|
|
3502
3502
|
"span",
|
|
3503
3503
|
{
|
|
3504
3504
|
ref: l,
|
|
@@ -3531,7 +3531,7 @@ const Wn = {
|
|
|
3531
3531
|
);
|
|
3532
3532
|
qn.displayName = "Tag";
|
|
3533
3533
|
const Un = _(
|
|
3534
|
-
({ icon: e, title: n, description: t, action: r, className: o, ...i }, s) => /* @__PURE__ */
|
|
3534
|
+
({ icon: e, title: n, description: t, action: r, className: o, ...i }, s) => /* @__PURE__ */ b("div", { ref: s, className: w("empty-state", o), ...i, children: [
|
|
3535
3535
|
e && /* @__PURE__ */ d("div", { className: "empty-state-icon", children: e }),
|
|
3536
3536
|
/* @__PURE__ */ d("h3", { className: "empty-state-title", children: n }),
|
|
3537
3537
|
t && /* @__PURE__ */ d("p", { className: "empty-state-description", children: t }),
|
|
@@ -3620,52 +3620,52 @@ function Jn({
|
|
|
3620
3620
|
loading: i = !1,
|
|
3621
3621
|
onQueryChange: s
|
|
3622
3622
|
}) {
|
|
3623
|
-
const [l, a] =
|
|
3624
|
-
const
|
|
3625
|
-
a(
|
|
3626
|
-
},
|
|
3627
|
-
if (s) return t.filter((
|
|
3628
|
-
if (!l) return t.filter((
|
|
3623
|
+
const [l, a] = N(""), [c, g] = N(0), h = L(null), f = L(null), u = (v) => {
|
|
3624
|
+
const y = v.target.value;
|
|
3625
|
+
a(y), s?.(y);
|
|
3626
|
+
}, p = Ue(() => {
|
|
3627
|
+
if (s) return t.filter((y) => !y.disabled);
|
|
3628
|
+
if (!l) return t.filter((y) => !y.disabled);
|
|
3629
3629
|
const v = l.toLowerCase();
|
|
3630
3630
|
return t.filter(
|
|
3631
|
-
(
|
|
3631
|
+
(y) => !y.disabled && y.label.toLowerCase().includes(v)
|
|
3632
3632
|
);
|
|
3633
|
-
}, [t, l, s]),
|
|
3633
|
+
}, [t, l, s]), m = Ue(() => {
|
|
3634
3634
|
const v = /* @__PURE__ */ new Map();
|
|
3635
|
-
for (const
|
|
3636
|
-
const
|
|
3637
|
-
v.has(
|
|
3635
|
+
for (const y of p) {
|
|
3636
|
+
const I = y.group ?? "";
|
|
3637
|
+
v.has(I) || v.set(I, []), v.get(I).push(y);
|
|
3638
3638
|
}
|
|
3639
3639
|
return v;
|
|
3640
|
-
}, [
|
|
3640
|
+
}, [p]);
|
|
3641
3641
|
P(() => {
|
|
3642
3642
|
e && (a(""), g(0), setTimeout(() => h.current?.focus(), 50));
|
|
3643
3643
|
}, [e]), P(() => {
|
|
3644
3644
|
g(0);
|
|
3645
3645
|
}, [l, i, t]), P(() => {
|
|
3646
3646
|
if (!e) return;
|
|
3647
|
-
const v = (
|
|
3648
|
-
|
|
3647
|
+
const v = (y) => {
|
|
3648
|
+
y.key === "Escape" && n();
|
|
3649
3649
|
};
|
|
3650
3650
|
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
3651
3651
|
}, [e, n]);
|
|
3652
3652
|
const C = V(
|
|
3653
3653
|
(v) => {
|
|
3654
|
-
v.key === "ArrowDown" ? (v.preventDefault(), g((
|
|
3654
|
+
v.key === "ArrowDown" ? (v.preventDefault(), g((y) => (y + 1) % p.length)) : v.key === "ArrowUp" ? (v.preventDefault(), g((y) => (y - 1 + p.length) % p.length)) : v.key === "Enter" && p[c] && (v.preventDefault(), p[c].onSelect(), n());
|
|
3655
3655
|
},
|
|
3656
|
-
[
|
|
3656
|
+
[p, c, n]
|
|
3657
3657
|
);
|
|
3658
3658
|
if (P(() => {
|
|
3659
3659
|
f.current?.querySelector("[data-active='true']")?.scrollIntoView({ block: "nearest" });
|
|
3660
3660
|
}, [c]), P(() => {
|
|
3661
|
-
const v = (
|
|
3662
|
-
(
|
|
3661
|
+
const v = (y) => {
|
|
3662
|
+
(y.metaKey || y.ctrlKey) && y.key === "k" && (y.preventDefault(), e && n());
|
|
3663
3663
|
};
|
|
3664
3664
|
return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
|
|
3665
3665
|
}, [e, n]), !e) return null;
|
|
3666
3666
|
let S = 0;
|
|
3667
3667
|
return J(
|
|
3668
|
-
/* @__PURE__ */ d("div", { className: "command-overlay", onClick: n, children: /* @__PURE__ */
|
|
3668
|
+
/* @__PURE__ */ d("div", { className: "command-overlay", onClick: n, children: /* @__PURE__ */ b(
|
|
3669
3669
|
"div",
|
|
3670
3670
|
{
|
|
3671
3671
|
className: "command-dialog",
|
|
@@ -3673,7 +3673,7 @@ function Jn({
|
|
|
3673
3673
|
role: "dialog",
|
|
3674
3674
|
"aria-modal": "true",
|
|
3675
3675
|
children: [
|
|
3676
|
-
/* @__PURE__ */
|
|
3676
|
+
/* @__PURE__ */ b("div", { className: "command-input-wrapper", children: [
|
|
3677
3677
|
i ? /* @__PURE__ */ d("div", { className: "command-search-icon animate-spin", children: /* @__PURE__ */ d(
|
|
3678
3678
|
"svg",
|
|
3679
3679
|
{
|
|
@@ -3687,7 +3687,7 @@ function Jn({
|
|
|
3687
3687
|
strokeLinejoin: "round",
|
|
3688
3688
|
children: /* @__PURE__ */ d("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
3689
3689
|
}
|
|
3690
|
-
) }) : /* @__PURE__ */
|
|
3690
|
+
) }) : /* @__PURE__ */ b(
|
|
3691
3691
|
"svg",
|
|
3692
3692
|
{
|
|
3693
3693
|
className: "command-search-icon",
|
|
@@ -3717,31 +3717,31 @@ function Jn({
|
|
|
3717
3717
|
}
|
|
3718
3718
|
)
|
|
3719
3719
|
] }),
|
|
3720
|
-
/* @__PURE__ */
|
|
3721
|
-
!i &&
|
|
3722
|
-
i &&
|
|
3723
|
-
[...
|
|
3720
|
+
/* @__PURE__ */ b("div", { ref: f, className: "command-list", children: [
|
|
3721
|
+
!i && p.length === 0 && /* @__PURE__ */ d("p", { className: "command-empty", children: o }),
|
|
3722
|
+
i && p.length === 0 && /* @__PURE__ */ d("p", { className: "command-empty", children: "Searching..." }),
|
|
3723
|
+
[...m.entries()].map(([v, y]) => /* @__PURE__ */ b("div", { children: [
|
|
3724
3724
|
v && /* @__PURE__ */ d("div", { className: "command-group-label", children: v }),
|
|
3725
|
-
|
|
3725
|
+
y.map((I) => {
|
|
3726
3726
|
const M = S++;
|
|
3727
|
-
return /* @__PURE__ */
|
|
3727
|
+
return /* @__PURE__ */ b(
|
|
3728
3728
|
"div",
|
|
3729
3729
|
{
|
|
3730
3730
|
className: "command-item",
|
|
3731
3731
|
"data-active": M === c,
|
|
3732
3732
|
onClick: () => {
|
|
3733
|
-
|
|
3733
|
+
I.onSelect(), n();
|
|
3734
3734
|
},
|
|
3735
3735
|
onMouseEnter: () => g(M),
|
|
3736
3736
|
role: "option",
|
|
3737
3737
|
"aria-selected": M === c,
|
|
3738
3738
|
children: [
|
|
3739
|
-
|
|
3740
|
-
/* @__PURE__ */ d("span", { className: "command-item-label", children:
|
|
3741
|
-
|
|
3739
|
+
I.icon && /* @__PURE__ */ d("span", { className: "command-item-icon", children: I.icon }),
|
|
3740
|
+
/* @__PURE__ */ d("span", { className: "command-item-label", children: I.label }),
|
|
3741
|
+
I.shortcut && /* @__PURE__ */ d("kbd", { className: "command-shortcut", children: I.shortcut })
|
|
3742
3742
|
]
|
|
3743
3743
|
},
|
|
3744
|
-
|
|
3744
|
+
I.id
|
|
3745
3745
|
);
|
|
3746
3746
|
})
|
|
3747
3747
|
] }, v))
|
|
@@ -3775,22 +3775,22 @@ function _o({
|
|
|
3775
3775
|
children: o,
|
|
3776
3776
|
...i
|
|
3777
3777
|
}) {
|
|
3778
|
-
const [s, l] =
|
|
3778
|
+
const [s, l] = N(e), a = n ?? s, [c, g] = N({
|
|
3779
3779
|
top: 0,
|
|
3780
3780
|
left: 0,
|
|
3781
3781
|
height: 0,
|
|
3782
3782
|
width: 0,
|
|
3783
3783
|
opacity: 0
|
|
3784
|
-
}), h = L(null), [f, u] =
|
|
3785
|
-
const
|
|
3786
|
-
l(
|
|
3784
|
+
}), h = L(null), [f, u] = N(!1), p = V(() => {
|
|
3785
|
+
const m = !a;
|
|
3786
|
+
l(m), t?.(m);
|
|
3787
3787
|
}, [a, t]);
|
|
3788
3788
|
return /* @__PURE__ */ d(
|
|
3789
3789
|
bt.Provider,
|
|
3790
3790
|
{
|
|
3791
3791
|
value: {
|
|
3792
3792
|
collapsed: a,
|
|
3793
|
-
toggle:
|
|
3793
|
+
toggle: p,
|
|
3794
3794
|
indicator: c,
|
|
3795
3795
|
setIndicator: g,
|
|
3796
3796
|
contentRef: h,
|
|
@@ -3830,7 +3830,7 @@ const tr = _(({ className: e, children: n, ...t }, r) => {
|
|
|
3830
3830
|
const { contentRef: o, indicator: i, setContentReady: s } = ae(), { top: l, left: a, height: c, width: g, opacity: h } = i;
|
|
3831
3831
|
return P(() => {
|
|
3832
3832
|
o.current && s(!0);
|
|
3833
|
-
}, [o, s]), /* @__PURE__ */
|
|
3833
|
+
}, [o, s]), /* @__PURE__ */ b(
|
|
3834
3834
|
"div",
|
|
3835
3835
|
{
|
|
3836
3836
|
ref: (f) => {
|
|
@@ -3861,7 +3861,7 @@ tr.displayName = "SidebarContent";
|
|
|
3861
3861
|
const nr = _(
|
|
3862
3862
|
({ label: e, className: n, children: t, ...r }, o) => {
|
|
3863
3863
|
const { collapsed: i } = ae();
|
|
3864
|
-
return /* @__PURE__ */
|
|
3864
|
+
return /* @__PURE__ */ b("div", { ref: o, className: w("sidebar-group", n), ...r, children: [
|
|
3865
3865
|
e && /* @__PURE__ */ d(
|
|
3866
3866
|
"div",
|
|
3867
3867
|
{
|
|
@@ -3879,11 +3879,11 @@ const nr = _(
|
|
|
3879
3879
|
nr.displayName = "SidebarGroup";
|
|
3880
3880
|
const rr = _(
|
|
3881
3881
|
({ icon: e, active: n, disabled: t, tooltip: r, className: o, children: i, ...s }, l) => {
|
|
3882
|
-
const { collapsed: a, setIndicator: c, contentRef: g, contentReady: h } = ae(), [f, u] =
|
|
3883
|
-
|
|
3884
|
-
if (n &&
|
|
3882
|
+
const { collapsed: a, setIndicator: c, contentRef: g, contentReady: h } = ae(), [f, u] = N(!1), p = L(null), m = L(null), [C, S] = N({ top: 0, left: 0 });
|
|
3883
|
+
$t(() => {
|
|
3884
|
+
if (n && m.current && g.current && h) {
|
|
3885
3885
|
const M = () => {
|
|
3886
|
-
const G =
|
|
3886
|
+
const G = m.current, j = g.current;
|
|
3887
3887
|
if (G && j) {
|
|
3888
3888
|
const X = window.getComputedStyle(j), W = parseFloat(X.paddingTop) || 0;
|
|
3889
3889
|
c({
|
|
@@ -3898,7 +3898,7 @@ const rr = _(
|
|
|
3898
3898
|
};
|
|
3899
3899
|
M();
|
|
3900
3900
|
const E = new ResizeObserver(M);
|
|
3901
|
-
E.observe(
|
|
3901
|
+
E.observe(m.current), E.observe(g.current);
|
|
3902
3902
|
const O = () => M();
|
|
3903
3903
|
return g.current.addEventListener(
|
|
3904
3904
|
"transitionend",
|
|
@@ -3911,26 +3911,26 @@ const rr = _(
|
|
|
3911
3911
|
};
|
|
3912
3912
|
}
|
|
3913
3913
|
}, [n, a, c, g, h]);
|
|
3914
|
-
const v = r ?? (typeof i == "string" ? i : ""),
|
|
3915
|
-
!a || !v || (
|
|
3916
|
-
const M =
|
|
3914
|
+
const v = r ?? (typeof i == "string" ? i : ""), y = V(() => {
|
|
3915
|
+
!a || !v || (p.current = setTimeout(() => {
|
|
3916
|
+
const M = m.current;
|
|
3917
3917
|
if (M) {
|
|
3918
3918
|
const E = M.getBoundingClientRect();
|
|
3919
3919
|
S({ top: E.top + E.height / 2, left: E.right + 8 });
|
|
3920
3920
|
}
|
|
3921
3921
|
u(!0);
|
|
3922
3922
|
}, 200));
|
|
3923
|
-
}, [a, v]),
|
|
3924
|
-
|
|
3923
|
+
}, [a, v]), I = V(() => {
|
|
3924
|
+
p.current != null && clearTimeout(p.current), u(!1);
|
|
3925
3925
|
}, []);
|
|
3926
3926
|
return P(() => {
|
|
3927
3927
|
a || u(!1);
|
|
3928
|
-
}, [a]), /* @__PURE__ */
|
|
3929
|
-
/* @__PURE__ */
|
|
3928
|
+
}, [a]), /* @__PURE__ */ b(et, { children: [
|
|
3929
|
+
/* @__PURE__ */ b(
|
|
3930
3930
|
"button",
|
|
3931
3931
|
{
|
|
3932
3932
|
ref: (M) => {
|
|
3933
|
-
|
|
3933
|
+
m.current = M, typeof l == "function" ? l(M) : l && (l.current = M);
|
|
3934
3934
|
},
|
|
3935
3935
|
type: "button",
|
|
3936
3936
|
disabled: t,
|
|
@@ -3941,10 +3941,10 @@ const rr = _(
|
|
|
3941
3941
|
t && "opacity-50 cursor-not-allowed",
|
|
3942
3942
|
o
|
|
3943
3943
|
),
|
|
3944
|
-
onMouseEnter:
|
|
3945
|
-
onMouseLeave:
|
|
3946
|
-
onFocus:
|
|
3947
|
-
onBlur:
|
|
3944
|
+
onMouseEnter: y,
|
|
3945
|
+
onMouseLeave: I,
|
|
3946
|
+
onFocus: y,
|
|
3947
|
+
onBlur: I,
|
|
3948
3948
|
...s,
|
|
3949
3949
|
children: [
|
|
3950
3950
|
e && /* @__PURE__ */ d("span", { className: "sidebar-item-icon", children: e }),
|
|
@@ -4018,14 +4018,14 @@ const lr = _(
|
|
|
4018
4018
|
);
|
|
4019
4019
|
lr.displayName = "BreadcrumbItem";
|
|
4020
4020
|
const ar = _(
|
|
4021
|
-
({ href: e, active: n,
|
|
4021
|
+
({ href: e, active: n, isCurrent: t, className: r, children: o, ...i }, s) => n || t ? /* @__PURE__ */ d("span", { className: w("breadcrumb-page", r), "aria-current": "page", children: o }) : /* @__PURE__ */ d(
|
|
4022
4022
|
"a",
|
|
4023
4023
|
{
|
|
4024
|
-
ref:
|
|
4024
|
+
ref: s,
|
|
4025
4025
|
href: e,
|
|
4026
|
-
className: w("breadcrumb-link",
|
|
4027
|
-
...
|
|
4028
|
-
children:
|
|
4026
|
+
className: w("breadcrumb-link", r),
|
|
4027
|
+
...i,
|
|
4028
|
+
children: o
|
|
4029
4029
|
}
|
|
4030
4030
|
)
|
|
4031
4031
|
);
|
|
@@ -4060,7 +4060,7 @@ function No({
|
|
|
4060
4060
|
...i
|
|
4061
4061
|
}) {
|
|
4062
4062
|
const s = ur(e, n, r);
|
|
4063
|
-
return /* @__PURE__ */
|
|
4063
|
+
return /* @__PURE__ */ b(
|
|
4064
4064
|
"nav",
|
|
4065
4065
|
{
|
|
4066
4066
|
"aria-label": "Pagination",
|
|
@@ -4128,7 +4128,7 @@ function No({
|
|
|
4128
4128
|
);
|
|
4129
4129
|
}
|
|
4130
4130
|
function dr(e, n) {
|
|
4131
|
-
const [t, r] =
|
|
4131
|
+
const [t, r] = N(e);
|
|
4132
4132
|
return P(() => {
|
|
4133
4133
|
const o = setTimeout(() => r(e), n);
|
|
4134
4134
|
return () => {
|
|
@@ -4142,8 +4142,8 @@ const cr = async (e) => e ? (await new Promise((n) => setTimeout(n, 1e3)), Array
|
|
|
4142
4142
|
group: "Search Results",
|
|
4143
4143
|
onSelect: () => console.log(`Selected ${e} Result ${t + 1}`)
|
|
4144
4144
|
}))) : [];
|
|
4145
|
-
function
|
|
4146
|
-
const [t, r] =
|
|
4145
|
+
function Io({ open: e, onClose: n }) {
|
|
4146
|
+
const [t, r] = N(""), o = dr(t, 500), [i, s] = N(!1), [l, a] = N([]);
|
|
4147
4147
|
return P(() => {
|
|
4148
4148
|
o ? (s(!0), cr(o).then((c) => {
|
|
4149
4149
|
a(c), s(!1);
|
|
@@ -4161,7 +4161,7 @@ function ko({ open: e, onClose: n }) {
|
|
|
4161
4161
|
}
|
|
4162
4162
|
);
|
|
4163
4163
|
}
|
|
4164
|
-
function
|
|
4164
|
+
function ko({
|
|
4165
4165
|
open: e,
|
|
4166
4166
|
onClose: n,
|
|
4167
4167
|
onConfirm: t,
|
|
@@ -4172,13 +4172,13 @@ function $o({
|
|
|
4172
4172
|
variant: l = "default",
|
|
4173
4173
|
loading: a = !1
|
|
4174
4174
|
}) {
|
|
4175
|
-
return /* @__PURE__ */
|
|
4175
|
+
return /* @__PURE__ */ b(yn, { open: e, onClose: n, size: "sm", children: [
|
|
4176
4176
|
/* @__PURE__ */ d(xn, {}),
|
|
4177
|
-
/* @__PURE__ */
|
|
4177
|
+
/* @__PURE__ */ b(ut, { children: [
|
|
4178
4178
|
/* @__PURE__ */ d(ct, { children: r }),
|
|
4179
4179
|
/* @__PURE__ */ d(gt, { children: o })
|
|
4180
4180
|
] }),
|
|
4181
|
-
/* @__PURE__ */
|
|
4181
|
+
/* @__PURE__ */ b(dt, { children: [
|
|
4182
4182
|
/* @__PURE__ */ d(Z, { variant: "secondary", onClick: n, disabled: a, children: s }),
|
|
4183
4183
|
/* @__PURE__ */ d(
|
|
4184
4184
|
Z,
|
|
@@ -4230,10 +4230,10 @@ function x(e, n, t) {
|
|
|
4230
4230
|
r = l;
|
|
4231
4231
|
let c;
|
|
4232
4232
|
if (t.key && t.debug && (c = Date.now()), o = n(...l), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
|
|
4233
|
-
const g = Math.round((Date.now() - s) * 100) / 100, h = Math.round((Date.now() - c) * 100) / 100, f = h / 16, u = (
|
|
4234
|
-
for (
|
|
4235
|
-
|
|
4236
|
-
return
|
|
4233
|
+
const g = Math.round((Date.now() - s) * 100) / 100, h = Math.round((Date.now() - c) * 100) / 100, f = h / 16, u = (p, m) => {
|
|
4234
|
+
for (p = String(p); p.length < m; )
|
|
4235
|
+
p = " " + p;
|
|
4236
|
+
return p;
|
|
4237
4237
|
};
|
|
4238
4238
|
console.info(`%c⏱ ${u(h, 5)} /${u(g, 5)} ms`, `
|
|
4239
4239
|
font-size: .6rem;
|
|
@@ -4285,9 +4285,9 @@ function mr(e, n, t, r) {
|
|
|
4285
4285
|
let c = (o = (i = l.id) != null ? i : a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) != null ? o : typeof l.header == "string" ? l.header : void 0, g;
|
|
4286
4286
|
if (l.accessorFn ? g = l.accessorFn : a && (a.includes(".") ? g = (f) => {
|
|
4287
4287
|
let u = f;
|
|
4288
|
-
for (const
|
|
4289
|
-
var
|
|
4290
|
-
u = (
|
|
4288
|
+
for (const m of a.split(".")) {
|
|
4289
|
+
var p;
|
|
4290
|
+
u = (p = u) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && u === void 0 && console.warn(`"${m}" in deeply nested key "${a}" returned undefined.`);
|
|
4291
4291
|
}
|
|
4292
4292
|
return u;
|
|
4293
4293
|
} : g = (f) => f[l.accessorKey]), !c)
|
|
@@ -4306,8 +4306,8 @@ function mr(e, n, t, r) {
|
|
|
4306
4306
|
getLeafColumns: x(() => [e._getOrderColumnsFn()], (f) => {
|
|
4307
4307
|
var u;
|
|
4308
4308
|
if ((u = h.columns) != null && u.length) {
|
|
4309
|
-
let
|
|
4310
|
-
return f(
|
|
4309
|
+
let p = h.columns.flatMap((m) => m.getLeafColumns());
|
|
4310
|
+
return f(p);
|
|
4311
4311
|
}
|
|
4312
4312
|
return [h];
|
|
4313
4313
|
}, R(e.options, "debugColumns", "column.getLeafColumns"))
|
|
@@ -4379,53 +4379,53 @@ function fe(e, n, t, r) {
|
|
|
4379
4379
|
var o, i;
|
|
4380
4380
|
let s = 0;
|
|
4381
4381
|
const l = function(f, u) {
|
|
4382
|
-
u === void 0 && (u = 1), s = Math.max(s, u), f.filter((
|
|
4383
|
-
var
|
|
4384
|
-
(
|
|
4382
|
+
u === void 0 && (u = 1), s = Math.max(s, u), f.filter((p) => p.getIsVisible()).forEach((p) => {
|
|
4383
|
+
var m;
|
|
4384
|
+
(m = p.columns) != null && m.length && l(p.columns, u + 1);
|
|
4385
4385
|
}, 0);
|
|
4386
4386
|
};
|
|
4387
4387
|
l(e);
|
|
4388
4388
|
let a = [];
|
|
4389
4389
|
const c = (f, u) => {
|
|
4390
|
-
const
|
|
4390
|
+
const p = {
|
|
4391
4391
|
depth: u,
|
|
4392
4392
|
id: [r, `${u}`].filter(Boolean).join("_"),
|
|
4393
4393
|
headers: []
|
|
4394
|
-
},
|
|
4394
|
+
}, m = [];
|
|
4395
4395
|
f.forEach((C) => {
|
|
4396
|
-
const S = [...
|
|
4397
|
-
let
|
|
4398
|
-
if (v && C.column.parent ?
|
|
4396
|
+
const S = [...m].reverse()[0], v = C.column.depth === p.depth;
|
|
4397
|
+
let y, I = !1;
|
|
4398
|
+
if (v && C.column.parent ? y = C.column.parent : (y = C.column, I = !0), S && S?.column === y)
|
|
4399
4399
|
S.subHeaders.push(C);
|
|
4400
4400
|
else {
|
|
4401
|
-
const M = Ye(t,
|
|
4402
|
-
id: [r, u,
|
|
4403
|
-
isPlaceholder:
|
|
4404
|
-
placeholderId:
|
|
4401
|
+
const M = Ye(t, y, {
|
|
4402
|
+
id: [r, u, y.id, C?.id].filter(Boolean).join("_"),
|
|
4403
|
+
isPlaceholder: I,
|
|
4404
|
+
placeholderId: I ? `${m.filter((E) => E.column === y).length}` : void 0,
|
|
4405
4405
|
depth: u,
|
|
4406
|
-
index:
|
|
4406
|
+
index: m.length
|
|
4407
4407
|
});
|
|
4408
|
-
M.subHeaders.push(C),
|
|
4408
|
+
M.subHeaders.push(C), m.push(M);
|
|
4409
4409
|
}
|
|
4410
|
-
|
|
4411
|
-
}), a.push(
|
|
4410
|
+
p.headers.push(C), C.headerGroup = p;
|
|
4411
|
+
}), a.push(p), u > 0 && c(m, u - 1);
|
|
4412
4412
|
}, g = n.map((f, u) => Ye(t, f, {
|
|
4413
4413
|
depth: s,
|
|
4414
4414
|
index: u
|
|
4415
4415
|
}));
|
|
4416
4416
|
c(g, s - 1), a.reverse();
|
|
4417
|
-
const h = (f) => f.filter((
|
|
4418
|
-
let
|
|
4419
|
-
|
|
4417
|
+
const h = (f) => f.filter((p) => p.column.getIsVisible()).map((p) => {
|
|
4418
|
+
let m = 0, C = 0, S = [0];
|
|
4419
|
+
p.subHeaders && p.subHeaders.length ? (S = [], h(p.subHeaders).forEach((y) => {
|
|
4420
4420
|
let {
|
|
4421
|
-
colSpan:
|
|
4421
|
+
colSpan: I,
|
|
4422
4422
|
rowSpan: M
|
|
4423
|
-
} =
|
|
4424
|
-
|
|
4425
|
-
})) :
|
|
4423
|
+
} = y;
|
|
4424
|
+
m += I, S.push(M);
|
|
4425
|
+
})) : m = 1;
|
|
4426
4426
|
const v = Math.min(...S);
|
|
4427
|
-
return C = C + v,
|
|
4428
|
-
colSpan:
|
|
4427
|
+
return C = C + v, p.colSpan = m, p.rowSpan = C, {
|
|
4428
|
+
colSpan: m,
|
|
4429
4429
|
rowSpan: C
|
|
4430
4430
|
};
|
|
4431
4431
|
});
|
|
@@ -4518,8 +4518,8 @@ const Mt = (e, n, t) => t.some((r) => {
|
|
|
4518
4518
|
Mt.autoRemove = (e) => H(e) || !(e != null && e.length);
|
|
4519
4519
|
const Nt = (e, n, t) => e.getValue(n) === t;
|
|
4520
4520
|
Nt.autoRemove = (e) => H(e);
|
|
4521
|
-
const
|
|
4522
|
-
|
|
4521
|
+
const It = (e, n, t) => e.getValue(n) == t;
|
|
4522
|
+
It.autoRemove = (e) => H(e);
|
|
4523
4523
|
const Te = (e, n, t) => {
|
|
4524
4524
|
let [r, o] = t;
|
|
4525
4525
|
const i = e.getValue(n);
|
|
@@ -4542,7 +4542,7 @@ const B = {
|
|
|
4542
4542
|
arrIncludesAll: Ft,
|
|
4543
4543
|
arrIncludesSome: Mt,
|
|
4544
4544
|
equals: Nt,
|
|
4545
|
-
weakEquals:
|
|
4545
|
+
weakEquals: It,
|
|
4546
4546
|
inNumberRange: Te
|
|
4547
4547
|
};
|
|
4548
4548
|
function H(e) {
|
|
@@ -4740,13 +4740,13 @@ const Cr = (e, n, t) => t.reduce((r, o) => {
|
|
|
4740
4740
|
};
|
|
4741
4741
|
}
|
|
4742
4742
|
};
|
|
4743
|
-
function
|
|
4743
|
+
function Ir(e, n, t) {
|
|
4744
4744
|
if (!(n != null && n.length) || !t)
|
|
4745
4745
|
return e;
|
|
4746
4746
|
const r = e.filter((i) => !n.includes(i.id));
|
|
4747
4747
|
return t === "remove" ? r : [...n.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...r];
|
|
4748
4748
|
}
|
|
4749
|
-
const
|
|
4749
|
+
const kr = {
|
|
4750
4750
|
getInitialState: (e) => ({
|
|
4751
4751
|
columnOrder: [],
|
|
4752
4752
|
...e
|
|
@@ -4780,13 +4780,13 @@ const $r = {
|
|
|
4780
4780
|
}
|
|
4781
4781
|
i = [...i, ...l];
|
|
4782
4782
|
}
|
|
4783
|
-
return
|
|
4783
|
+
return Ir(i, t, r);
|
|
4784
4784
|
}, R(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4785
4785
|
}
|
|
4786
4786
|
}, Se = () => ({
|
|
4787
4787
|
left: [],
|
|
4788
4788
|
right: []
|
|
4789
|
-
}),
|
|
4789
|
+
}), $r = {
|
|
4790
4790
|
getInitialState: (e) => ({
|
|
4791
4791
|
columnPinning: Se(),
|
|
4792
4792
|
...e
|
|
@@ -4932,19 +4932,19 @@ const pe = {
|
|
|
4932
4932
|
if (!r || !o || (i.persist == null || i.persist(), ye(i) && i.touches && i.touches.length > 1))
|
|
4933
4933
|
return;
|
|
4934
4934
|
const s = e.getSize(), l = e ? e.getLeafHeaders().map((S) => [S.column.id, S.column.getSize()]) : [[r.id, r.getSize()]], a = ye(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, g = (S, v) => {
|
|
4935
|
-
typeof v == "number" && (n.setColumnSizingInfo((
|
|
4936
|
-
var
|
|
4937
|
-
const E = n.options.columnResizeDirection === "rtl" ? -1 : 1, O = (v - ((
|
|
4938
|
-
return
|
|
4935
|
+
typeof v == "number" && (n.setColumnSizingInfo((y) => {
|
|
4936
|
+
var I, M;
|
|
4937
|
+
const E = n.options.columnResizeDirection === "rtl" ? -1 : 1, O = (v - ((I = y?.startOffset) != null ? I : 0)) * E, G = Math.max(O / ((M = y?.startSize) != null ? M : 0), -0.999999);
|
|
4938
|
+
return y.columnSizingStart.forEach((j) => {
|
|
4939
4939
|
let [X, W] = j;
|
|
4940
4940
|
c[X] = Math.round(Math.max(W + W * G, 0) * 100) / 100;
|
|
4941
4941
|
}), {
|
|
4942
|
-
...
|
|
4942
|
+
...y,
|
|
4943
4943
|
deltaOffset: O,
|
|
4944
4944
|
deltaPercentage: G
|
|
4945
4945
|
};
|
|
4946
|
-
}), (n.options.columnResizeMode === "onChange" || S === "end") && n.setColumnSizing((
|
|
4947
|
-
...
|
|
4946
|
+
}), (n.options.columnResizeMode === "onChange" || S === "end") && n.setColumnSizing((y) => ({
|
|
4947
|
+
...y,
|
|
4948
4948
|
...c
|
|
4949
4949
|
})));
|
|
4950
4950
|
}, h = (S) => g("move", S), f = (S) => {
|
|
@@ -4957,21 +4957,21 @@ const pe = {
|
|
|
4957
4957
|
deltaPercentage: null,
|
|
4958
4958
|
columnSizingStart: []
|
|
4959
4959
|
}));
|
|
4960
|
-
}, u = Pr(t),
|
|
4960
|
+
}, u = Pr(t), p = {
|
|
4961
4961
|
moveHandler: (S) => h(S.clientX),
|
|
4962
4962
|
upHandler: (S) => {
|
|
4963
|
-
u?.removeEventListener("mousemove",
|
|
4963
|
+
u?.removeEventListener("mousemove", p.moveHandler), u?.removeEventListener("mouseup", p.upHandler), f(S.clientX);
|
|
4964
4964
|
}
|
|
4965
|
-
},
|
|
4965
|
+
}, m = {
|
|
4966
4966
|
moveHandler: (S) => (S.cancelable && (S.preventDefault(), S.stopPropagation()), h(S.touches[0].clientX), !1),
|
|
4967
4967
|
upHandler: (S) => {
|
|
4968
4968
|
var v;
|
|
4969
|
-
u?.removeEventListener("touchmove",
|
|
4969
|
+
u?.removeEventListener("touchmove", m.moveHandler), u?.removeEventListener("touchend", m.upHandler), S.cancelable && (S.preventDefault(), S.stopPropagation()), f((v = S.touches[0]) == null ? void 0 : v.clientX);
|
|
4970
4970
|
}
|
|
4971
4971
|
}, C = Lr() ? {
|
|
4972
4972
|
passive: !1
|
|
4973
4973
|
} : !1;
|
|
4974
|
-
ye(i) ? (u?.addEventListener("touchmove",
|
|
4974
|
+
ye(i) ? (u?.addEventListener("touchmove", m.moveHandler, C), u?.addEventListener("touchend", m.upHandler, C)) : (u?.addEventListener("mousemove", p.moveHandler, C), u?.addEventListener("mouseup", p.upHandler, C)), n.setColumnSizingInfo((S) => ({
|
|
4975
4975
|
...S,
|
|
4976
4976
|
startOffset: a,
|
|
4977
4977
|
startSize: s,
|
|
@@ -5200,8 +5200,8 @@ const Dr = {
|
|
|
5200
5200
|
};
|
|
5201
5201
|
};
|
|
5202
5202
|
}
|
|
5203
|
-
},
|
|
5204
|
-
pageIndex:
|
|
5203
|
+
}, $e = 0, Pe = 10, xe = () => ({
|
|
5204
|
+
pageIndex: $e,
|
|
5205
5205
|
pageSize: Pe
|
|
5206
5206
|
}), Gr = {
|
|
5207
5207
|
getInitialState: (e) => ({
|
|
@@ -5247,7 +5247,7 @@ const Dr = {
|
|
|
5247
5247
|
});
|
|
5248
5248
|
}, e.resetPageIndex = (r) => {
|
|
5249
5249
|
var o, i;
|
|
5250
|
-
e.setPageIndex(r ?
|
|
5250
|
+
e.setPageIndex(r ? $e : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? o : $e);
|
|
5251
5251
|
}, e.resetPageSize = (r) => {
|
|
5252
5252
|
var o, i;
|
|
5253
5253
|
e.setPageSize(r ? Pe : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? o : Pe);
|
|
@@ -5312,20 +5312,20 @@ const Dr = {
|
|
|
5312
5312
|
if (t === "bottom") {
|
|
5313
5313
|
var h, f;
|
|
5314
5314
|
return {
|
|
5315
|
-
top: ((h = a?.top) != null ? h : []).filter((
|
|
5316
|
-
bottom: [...((f = a?.bottom) != null ? f : []).filter((
|
|
5315
|
+
top: ((h = a?.top) != null ? h : []).filter((m) => !(l != null && l.has(m))),
|
|
5316
|
+
bottom: [...((f = a?.bottom) != null ? f : []).filter((m) => !(l != null && l.has(m))), ...Array.from(l)]
|
|
5317
5317
|
};
|
|
5318
5318
|
}
|
|
5319
5319
|
if (t === "top") {
|
|
5320
|
-
var u,
|
|
5320
|
+
var u, p;
|
|
5321
5321
|
return {
|
|
5322
|
-
top: [...((u = a?.top) != null ? u : []).filter((
|
|
5323
|
-
bottom: ((
|
|
5322
|
+
top: [...((u = a?.top) != null ? u : []).filter((m) => !(l != null && l.has(m))), ...Array.from(l)],
|
|
5323
|
+
bottom: ((p = a?.bottom) != null ? p : []).filter((m) => !(l != null && l.has(m)))
|
|
5324
5324
|
};
|
|
5325
5325
|
}
|
|
5326
5326
|
return {
|
|
5327
|
-
top: ((c = a?.top) != null ? c : []).filter((
|
|
5328
|
-
bottom: ((g = a?.bottom) != null ? g : []).filter((
|
|
5327
|
+
top: ((c = a?.top) != null ? c : []).filter((m) => !(l != null && l.has(m))),
|
|
5328
|
+
bottom: ((g = a?.bottom) != null ? g : []).filter((m) => !(l != null && l.has(m)))
|
|
5329
5329
|
};
|
|
5330
5330
|
});
|
|
5331
5331
|
}, e.getCanPin = () => {
|
|
@@ -5543,7 +5543,7 @@ function Le(e, n, t) {
|
|
|
5543
5543
|
}
|
|
5544
5544
|
}), o ? "all" : i ? "some" : !1;
|
|
5545
5545
|
}
|
|
5546
|
-
const Ee = /([0-9]+)/gm, Br = (e, n, t) =>
|
|
5546
|
+
const Ee = /([0-9]+)/gm, Br = (e, n, t) => kt(K(e.getValue(t)).toLowerCase(), K(n.getValue(t)).toLowerCase()), Or = (e, n, t) => kt(K(e.getValue(t)), K(n.getValue(t))), jr = (e, n, t) => Be(K(e.getValue(t)).toLowerCase(), K(n.getValue(t)).toLowerCase()), Wr = (e, n, t) => Be(K(e.getValue(t)), K(n.getValue(t))), qr = (e, n, t) => {
|
|
5547
5547
|
const r = e.getValue(t), o = n.getValue(t);
|
|
5548
5548
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
5549
5549
|
}, Ur = (e, n, t) => Be(e.getValue(t), n.getValue(t));
|
|
@@ -5553,7 +5553,7 @@ function Be(e, n) {
|
|
|
5553
5553
|
function K(e) {
|
|
5554
5554
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5555
5555
|
}
|
|
5556
|
-
function
|
|
5556
|
+
function kt(e, n) {
|
|
5557
5557
|
const t = e.split(Ee).filter(Boolean), r = n.split(Ee).filter(Boolean);
|
|
5558
5558
|
for (; t.length && r.length; ) {
|
|
5559
5559
|
const o = t.shift(), i = r.shift(), s = parseInt(o, 10), l = parseInt(i, 10), a = [s, l].sort();
|
|
@@ -5672,8 +5672,8 @@ const oe = {
|
|
|
5672
5672
|
}, Xr = [
|
|
5673
5673
|
hr,
|
|
5674
5674
|
Er,
|
|
5675
|
+
kr,
|
|
5675
5676
|
$r,
|
|
5676
|
-
Ir,
|
|
5677
5677
|
vr,
|
|
5678
5678
|
wr,
|
|
5679
5679
|
Dr,
|
|
@@ -5737,9 +5737,9 @@ function Qr(e) {
|
|
|
5737
5737
|
setState: (f) => {
|
|
5738
5738
|
o.options.onStateChange == null || o.options.onStateChange(f);
|
|
5739
5739
|
},
|
|
5740
|
-
_getRowId: (f, u,
|
|
5741
|
-
var
|
|
5742
|
-
return (
|
|
5740
|
+
_getRowId: (f, u, p) => {
|
|
5741
|
+
var m;
|
|
5742
|
+
return (m = o.options.getRowId == null ? void 0 : o.options.getRowId(f, u, p)) != null ? m : `${p ? [p.id, u].join(".") : u}`;
|
|
5743
5743
|
},
|
|
5744
5744
|
getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
|
|
5745
5745
|
// The final calls start at the bottom of the model,
|
|
@@ -5747,42 +5747,42 @@ function Qr(e) {
|
|
|
5747
5747
|
getRowModel: () => o.getPaginationRowModel(),
|
|
5748
5748
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
5749
5749
|
getRow: (f, u) => {
|
|
5750
|
-
let
|
|
5751
|
-
if (!
|
|
5750
|
+
let p = (u ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[f];
|
|
5751
|
+
if (!p && (p = o.getCoreRowModel().rowsById[f], !p))
|
|
5752
5752
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${f}`) : new Error();
|
|
5753
|
-
return
|
|
5753
|
+
return p;
|
|
5754
5754
|
},
|
|
5755
5755
|
_getDefaultColumnDef: x(() => [o.options.defaultColumn], (f) => {
|
|
5756
5756
|
var u;
|
|
5757
5757
|
return f = (u = f) != null ? u : {}, {
|
|
5758
|
-
header: (
|
|
5759
|
-
const
|
|
5760
|
-
return
|
|
5758
|
+
header: (p) => {
|
|
5759
|
+
const m = p.header.column.columnDef;
|
|
5760
|
+
return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
|
|
5761
5761
|
},
|
|
5762
5762
|
// footer: props => props.header.column.id,
|
|
5763
|
-
cell: (
|
|
5764
|
-
var
|
|
5765
|
-
return (
|
|
5763
|
+
cell: (p) => {
|
|
5764
|
+
var m, C;
|
|
5765
|
+
return (m = (C = p.renderValue()) == null || C.toString == null ? void 0 : C.toString()) != null ? m : null;
|
|
5766
5766
|
},
|
|
5767
|
-
...o._features.reduce((
|
|
5767
|
+
...o._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
|
|
5768
5768
|
...f
|
|
5769
5769
|
};
|
|
5770
5770
|
}, R(e, "debugColumns", "_getDefaultColumnDef")),
|
|
5771
5771
|
_getColumnDefs: () => o.options.columns,
|
|
5772
5772
|
getAllColumns: x(() => [o._getColumnDefs()], (f) => {
|
|
5773
|
-
const u = function(
|
|
5774
|
-
return C === void 0 && (C = 0),
|
|
5775
|
-
const v = mr(o, S, C,
|
|
5776
|
-
return v.columns =
|
|
5773
|
+
const u = function(p, m, C) {
|
|
5774
|
+
return C === void 0 && (C = 0), p.map((S) => {
|
|
5775
|
+
const v = mr(o, S, C, m), y = S;
|
|
5776
|
+
return v.columns = y.columns ? u(y.columns, v, C + 1) : [], v;
|
|
5777
5777
|
});
|
|
5778
5778
|
};
|
|
5779
5779
|
return u(f);
|
|
5780
5780
|
}, R(e, "debugColumns", "getAllColumns")),
|
|
5781
5781
|
getAllFlatColumns: x(() => [o.getAllColumns()], (f) => f.flatMap((u) => u.getFlatColumns()), R(e, "debugColumns", "getAllFlatColumns")),
|
|
5782
|
-
_getAllFlatColumnsById: x(() => [o.getAllFlatColumns()], (f) => f.reduce((u,
|
|
5782
|
+
_getAllFlatColumnsById: x(() => [o.getAllFlatColumns()], (f) => f.reduce((u, p) => (u[p.id] = p, u), {}), R(e, "debugColumns", "getAllFlatColumnsById")),
|
|
5783
5783
|
getAllLeafColumns: x(() => [o.getAllColumns(), o._getOrderColumnsFn()], (f, u) => {
|
|
5784
|
-
let
|
|
5785
|
-
return u(
|
|
5784
|
+
let p = f.flatMap((m) => m.getLeafColumns());
|
|
5785
|
+
return u(p);
|
|
5786
5786
|
}, R(e, "debugColumns", "getAllLeafColumns")),
|
|
5787
5787
|
getColumn: (f) => {
|
|
5788
5788
|
const u = o._getAllFlatColumnsById()[f];
|
|
@@ -5839,18 +5839,18 @@ function eo(e, n, t) {
|
|
|
5839
5839
|
for (let f = 0; f < a.length; f++) {
|
|
5840
5840
|
var h;
|
|
5841
5841
|
let u = a[f];
|
|
5842
|
-
const
|
|
5843
|
-
if (
|
|
5844
|
-
if (
|
|
5842
|
+
const p = Ge(t, u.id, u.original, u.index, u.depth, void 0, u.parentId);
|
|
5843
|
+
if (p.columnFilters = u.columnFilters, (h = u.subRows) != null && h.length && c < s) {
|
|
5844
|
+
if (p.subRows = l(u.subRows, c + 1), u = p, n(u) && !p.subRows.length) {
|
|
5845
5845
|
g.push(u), i[u.id] = u, o.push(u);
|
|
5846
5846
|
continue;
|
|
5847
5847
|
}
|
|
5848
|
-
if (n(u) ||
|
|
5848
|
+
if (n(u) || p.subRows.length) {
|
|
5849
5849
|
g.push(u), i[u.id] = u, o.push(u);
|
|
5850
5850
|
continue;
|
|
5851
5851
|
}
|
|
5852
5852
|
} else
|
|
5853
|
-
u =
|
|
5853
|
+
u = p, n(u) && (g.push(u), i[u.id] = u, o.push(u));
|
|
5854
5854
|
}
|
|
5855
5855
|
return g;
|
|
5856
5856
|
};
|
|
@@ -5870,8 +5870,8 @@ function to(e, n, t) {
|
|
|
5870
5870
|
if (n(u)) {
|
|
5871
5871
|
var h;
|
|
5872
5872
|
if ((h = u.subRows) != null && h.length && c < s) {
|
|
5873
|
-
const
|
|
5874
|
-
|
|
5873
|
+
const m = Ge(t, u.id, u.original, u.index, u.depth, void 0, u.parentId);
|
|
5874
|
+
m.subRows = l(u.subRows, c + 1), u = m;
|
|
5875
5875
|
}
|
|
5876
5876
|
g.push(u), o.push(u), i[u.id] = u;
|
|
5877
5877
|
}
|
|
@@ -5894,18 +5894,18 @@ function no() {
|
|
|
5894
5894
|
const o = [], i = [];
|
|
5895
5895
|
(t ?? []).forEach((f) => {
|
|
5896
5896
|
var u;
|
|
5897
|
-
const
|
|
5898
|
-
if (!
|
|
5897
|
+
const p = e.getColumn(f.id);
|
|
5898
|
+
if (!p)
|
|
5899
5899
|
return;
|
|
5900
|
-
const
|
|
5901
|
-
if (!
|
|
5902
|
-
process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${
|
|
5900
|
+
const m = p.getFilterFn();
|
|
5901
|
+
if (!m) {
|
|
5902
|
+
process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${p.id}.`);
|
|
5903
5903
|
return;
|
|
5904
5904
|
}
|
|
5905
5905
|
o.push({
|
|
5906
5906
|
id: f.id,
|
|
5907
|
-
filterFn:
|
|
5908
|
-
resolvedValue: (u =
|
|
5907
|
+
filterFn: m,
|
|
5908
|
+
resolvedValue: (u = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(f.value)) != null ? u : f.value
|
|
5909
5909
|
});
|
|
5910
5910
|
});
|
|
5911
5911
|
const s = (t ?? []).map((f) => f.id), l = e.getGlobalFilterFn(), a = e.getAllLeafColumns().filter((f) => f.getCanGlobalFilter());
|
|
@@ -5921,19 +5921,19 @@ function no() {
|
|
|
5921
5921
|
for (let f = 0; f < n.flatRows.length; f++) {
|
|
5922
5922
|
const u = n.flatRows[f];
|
|
5923
5923
|
if (u.columnFilters = {}, o.length)
|
|
5924
|
-
for (let
|
|
5925
|
-
c = o[
|
|
5926
|
-
const
|
|
5927
|
-
u.columnFilters[
|
|
5928
|
-
u.columnFiltersMeta[
|
|
5924
|
+
for (let p = 0; p < o.length; p++) {
|
|
5925
|
+
c = o[p];
|
|
5926
|
+
const m = c.id;
|
|
5927
|
+
u.columnFilters[m] = c.filterFn(u, m, c.resolvedValue, (C) => {
|
|
5928
|
+
u.columnFiltersMeta[m] = C;
|
|
5929
5929
|
});
|
|
5930
5930
|
}
|
|
5931
5931
|
if (i.length) {
|
|
5932
|
-
for (let
|
|
5933
|
-
g = i[
|
|
5934
|
-
const
|
|
5935
|
-
if (g.filterFn(u,
|
|
5936
|
-
u.columnFiltersMeta[
|
|
5932
|
+
for (let p = 0; p < i.length; p++) {
|
|
5933
|
+
g = i[p];
|
|
5934
|
+
const m = g.id;
|
|
5935
|
+
if (g.filterFn(u, m, g.resolvedValue, (C) => {
|
|
5936
|
+
u.columnFiltersMeta[m] = C;
|
|
5937
5937
|
})) {
|
|
5938
5938
|
u.columnFilters.__global__ = !0;
|
|
5939
5939
|
break;
|
|
@@ -6005,18 +6005,18 @@ function oo() {
|
|
|
6005
6005
|
return c.sort((g, h) => {
|
|
6006
6006
|
for (let u = 0; u < i.length; u += 1) {
|
|
6007
6007
|
var f;
|
|
6008
|
-
const
|
|
6008
|
+
const p = i[u], m = s[p.id], C = m.sortUndefined, S = (f = p?.desc) != null ? f : !1;
|
|
6009
6009
|
let v = 0;
|
|
6010
6010
|
if (C) {
|
|
6011
|
-
const
|
|
6011
|
+
const y = g.getValue(p.id), I = h.getValue(p.id), M = y === void 0, E = I === void 0;
|
|
6012
6012
|
if (M || E) {
|
|
6013
6013
|
if (C === "first") return M ? -1 : 1;
|
|
6014
6014
|
if (C === "last") return M ? 1 : -1;
|
|
6015
6015
|
v = M && E ? 0 : M ? C : -C;
|
|
6016
6016
|
}
|
|
6017
6017
|
}
|
|
6018
|
-
if (v === 0 && (v =
|
|
6019
|
-
return S && (v *= -1),
|
|
6018
|
+
if (v === 0 && (v = m.sortingFn(g, h, p.id)), v !== 0)
|
|
6019
|
+
return S && (v *= -1), m.invertSorting && (v *= -1), v;
|
|
6020
6020
|
}
|
|
6021
6021
|
return g.index - h.index;
|
|
6022
6022
|
}), c.forEach((g) => {
|
|
@@ -6072,30 +6072,30 @@ function ao(e) {
|
|
|
6072
6072
|
}
|
|
6073
6073
|
})), t.current;
|
|
6074
6074
|
}
|
|
6075
|
-
function
|
|
6075
|
+
function $o({
|
|
6076
6076
|
columns: e,
|
|
6077
6077
|
data: n,
|
|
6078
6078
|
searchPlaceholder: t = "Search..."
|
|
6079
6079
|
}) {
|
|
6080
|
-
const [r, o] =
|
|
6080
|
+
const [r, o] = N([]), [i, s] = N({}), [l, a] = N(""), [c, g] = N({
|
|
6081
6081
|
pageIndex: 0,
|
|
6082
6082
|
pageSize: 5
|
|
6083
6083
|
}), f = [{
|
|
6084
6084
|
id: "select",
|
|
6085
|
-
header: ({ table:
|
|
6086
|
-
|
|
6085
|
+
header: ({ table: p }) => /* @__PURE__ */ d(
|
|
6086
|
+
Ie,
|
|
6087
6087
|
{
|
|
6088
|
-
checked:
|
|
6089
|
-
indeterminate:
|
|
6090
|
-
onChange: () =>
|
|
6088
|
+
checked: p.getIsAllPageRowsSelected(),
|
|
6089
|
+
indeterminate: p.getIsSomePageRowsSelected(),
|
|
6090
|
+
onChange: () => p.toggleAllPageRowsSelected(),
|
|
6091
6091
|
"aria-label": "Select all"
|
|
6092
6092
|
}
|
|
6093
6093
|
),
|
|
6094
|
-
cell: ({ row:
|
|
6095
|
-
|
|
6094
|
+
cell: ({ row: p }) => /* @__PURE__ */ d(
|
|
6095
|
+
Ie,
|
|
6096
6096
|
{
|
|
6097
|
-
checked:
|
|
6098
|
-
onChange: () =>
|
|
6097
|
+
checked: p.getIsSelected(),
|
|
6098
|
+
onChange: () => p.toggleSelected(),
|
|
6099
6099
|
"aria-label": "Select row"
|
|
6100
6100
|
}
|
|
6101
6101
|
),
|
|
@@ -6119,34 +6119,34 @@ function Io({
|
|
|
6119
6119
|
globalFilter: l
|
|
6120
6120
|
}
|
|
6121
6121
|
});
|
|
6122
|
-
return /* @__PURE__ */
|
|
6122
|
+
return /* @__PURE__ */ b("div", { className: "space-y-4", children: [
|
|
6123
6123
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ d("div", { className: "max-w-sm flex-1", children: /* @__PURE__ */ d(
|
|
6124
6124
|
lt,
|
|
6125
6125
|
{
|
|
6126
6126
|
placeholder: t,
|
|
6127
6127
|
value: l ?? "",
|
|
6128
|
-
onChange: (
|
|
6128
|
+
onChange: (p) => a(p.target.value),
|
|
6129
6129
|
className: "h-10"
|
|
6130
6130
|
}
|
|
6131
6131
|
) }) }),
|
|
6132
|
-
/* @__PURE__ */ d("div", { className: "rounded-[var(--radius-lg)] border border-[var(--color-border-default)] overflow-hidden bg-[var(--color-surface-1)]", children: /* @__PURE__ */
|
|
6133
|
-
/* @__PURE__ */ d(wt, { children: u.getHeaderGroups().map((
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
) },
|
|
6137
|
-
/* @__PURE__ */ d(Ct, { children: u.getRowModel().rows?.length ? u.getRowModel().rows.map((
|
|
6132
|
+
/* @__PURE__ */ d("div", { className: "rounded-[var(--radius-lg)] border border-[var(--color-border-default)] overflow-hidden bg-[var(--color-surface-1)]", children: /* @__PURE__ */ b(vt, { children: [
|
|
6133
|
+
/* @__PURE__ */ d(wt, { children: u.getHeaderGroups().map((p) => /* @__PURE__ */ d(he, { children: p.headers.map((m) => /* @__PURE__ */ d(St, { children: m.isPlaceholder ? null : Je(
|
|
6134
|
+
m.column.columnDef.header,
|
|
6135
|
+
m.getContext()
|
|
6136
|
+
) }, m.id)) }, p.id)) }),
|
|
6137
|
+
/* @__PURE__ */ d(Ct, { children: u.getRowModel().rows?.length ? u.getRowModel().rows.map((p) => /* @__PURE__ */ d(
|
|
6138
6138
|
he,
|
|
6139
6139
|
{
|
|
6140
|
-
"data-state":
|
|
6140
|
+
"data-state": p.getIsSelected() && "selected",
|
|
6141
6141
|
className: "hover:bg-[var(--color-surface-2)] transition-colors",
|
|
6142
|
-
children:
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
) },
|
|
6142
|
+
children: p.getVisibleCells().map((m) => /* @__PURE__ */ d(ke, { children: Je(
|
|
6143
|
+
m.column.columnDef.cell,
|
|
6144
|
+
m.getContext()
|
|
6145
|
+
) }, m.id))
|
|
6146
6146
|
},
|
|
6147
|
-
|
|
6147
|
+
p.id
|
|
6148
6148
|
)) : /* @__PURE__ */ d(he, { children: /* @__PURE__ */ d(
|
|
6149
|
-
|
|
6149
|
+
ke,
|
|
6150
6150
|
{
|
|
6151
6151
|
colSpan: f.length,
|
|
6152
6152
|
className: "h-24 text-center text-[var(--color-text-tertiary)]",
|
|
@@ -6154,16 +6154,16 @@ function Io({
|
|
|
6154
6154
|
}
|
|
6155
6155
|
) }) })
|
|
6156
6156
|
] }) }),
|
|
6157
|
-
/* @__PURE__ */
|
|
6158
|
-
/* @__PURE__ */
|
|
6157
|
+
/* @__PURE__ */ b("div", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between px-2 pb-2", children: [
|
|
6158
|
+
/* @__PURE__ */ b("div", { className: "flex-1 text-sm text-[var(--color-text-tertiary)]", children: [
|
|
6159
6159
|
u.getFilteredSelectedRowModel().rows.length,
|
|
6160
6160
|
" of",
|
|
6161
6161
|
" ",
|
|
6162
6162
|
u.getFilteredRowModel().rows.length,
|
|
6163
6163
|
" row(s) selected."
|
|
6164
6164
|
] }),
|
|
6165
|
-
/* @__PURE__ */
|
|
6166
|
-
/* @__PURE__ */
|
|
6165
|
+
/* @__PURE__ */ b("div", { className: "flex flex-wrap items-center gap-4 sm:gap-6 lg:gap-8", children: [
|
|
6166
|
+
/* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
|
|
6167
6167
|
/* @__PURE__ */ d("p", { className: "text-sm font-medium whitespace-nowrap", children: "Rows per page" }),
|
|
6168
6168
|
/* @__PURE__ */ d("div", { className: "w-[80px]", children: /* @__PURE__ */ d(
|
|
6169
6169
|
Dn,
|
|
@@ -6175,20 +6175,20 @@ function Io({
|
|
|
6175
6175
|
{ label: "20", value: "20" },
|
|
6176
6176
|
{ label: "50", value: "50" }
|
|
6177
6177
|
],
|
|
6178
|
-
onChange: (
|
|
6179
|
-
u.setPageSize(Number(
|
|
6178
|
+
onChange: (p) => {
|
|
6179
|
+
u.setPageSize(Number(p));
|
|
6180
6180
|
}
|
|
6181
6181
|
}
|
|
6182
6182
|
) })
|
|
6183
6183
|
] }),
|
|
6184
|
-
/* @__PURE__ */
|
|
6184
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-center text-sm font-medium whitespace-nowrap min-w-[100px]", children: [
|
|
6185
6185
|
"Page ",
|
|
6186
6186
|
u.getState().pagination.pageIndex + 1,
|
|
6187
6187
|
" of",
|
|
6188
6188
|
" ",
|
|
6189
6189
|
u.getPageCount()
|
|
6190
6190
|
] }),
|
|
6191
|
-
/* @__PURE__ */
|
|
6191
|
+
/* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
|
|
6192
6192
|
/* @__PURE__ */ d(
|
|
6193
6193
|
Z,
|
|
6194
6194
|
{
|
|
@@ -6220,7 +6220,7 @@ function Po({
|
|
|
6220
6220
|
column: e,
|
|
6221
6221
|
title: n
|
|
6222
6222
|
}) {
|
|
6223
|
-
return e.getCanSort() ? /* @__PURE__ */ d("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */
|
|
6223
|
+
return e.getCanSort() ? /* @__PURE__ */ d("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ b(
|
|
6224
6224
|
Z,
|
|
6225
6225
|
{
|
|
6226
6226
|
variant: "ghost",
|
|
@@ -6285,12 +6285,97 @@ function Vo({
|
|
|
6285
6285
|
htmlFor: i
|
|
6286
6286
|
}) {
|
|
6287
6287
|
const s = Pt(), l = i || s, a = typeof n == "string" ? n : void 0;
|
|
6288
|
-
return /* @__PURE__ */
|
|
6288
|
+
return /* @__PURE__ */ b("div", { className: w("space-y-1.5", o), children: [
|
|
6289
6289
|
e && /* @__PURE__ */ d(mt, { htmlFor: l, required: !!n, error: !!n, children: e }),
|
|
6290
6290
|
r,
|
|
6291
6291
|
a ? /* @__PURE__ */ d("p", { className: "text-xs text-[var(--color-danger)] animate-in slide-in-from-top-1", children: a }) : t ? /* @__PURE__ */ d("p", { className: "text-xs text-[var(--color-text-tertiary)]", children: t }) : null
|
|
6292
6292
|
] });
|
|
6293
6293
|
}
|
|
6294
|
+
function Lo({
|
|
6295
|
+
items: e,
|
|
6296
|
+
smooth: n = !0,
|
|
6297
|
+
className: t,
|
|
6298
|
+
onItemClick: r,
|
|
6299
|
+
...o
|
|
6300
|
+
}) {
|
|
6301
|
+
const [i, s] = N([]), l = N({
|
|
6302
|
+
current: null
|
|
6303
|
+
})[0], [a, c] = N({ top: 0, height: 0 });
|
|
6304
|
+
return P(() => {
|
|
6305
|
+
const g = new IntersectionObserver(
|
|
6306
|
+
(h) => {
|
|
6307
|
+
s((f) => {
|
|
6308
|
+
const u = new Set(f);
|
|
6309
|
+
return h.forEach((p) => {
|
|
6310
|
+
p.isIntersecting ? u.add(p.target.id) : u.delete(p.target.id);
|
|
6311
|
+
}), Array.from(u);
|
|
6312
|
+
});
|
|
6313
|
+
},
|
|
6314
|
+
{ rootMargin: "0px 0px 0px 0px" }
|
|
6315
|
+
);
|
|
6316
|
+
return e.forEach((h) => {
|
|
6317
|
+
const f = document.getElementById(h.id);
|
|
6318
|
+
f && g.observe(f);
|
|
6319
|
+
}), () => g.disconnect();
|
|
6320
|
+
}, [e]), P(() => {
|
|
6321
|
+
if (i.length === 0 || !l.current) {
|
|
6322
|
+
c({ top: 0, height: 0 });
|
|
6323
|
+
return;
|
|
6324
|
+
}
|
|
6325
|
+
const g = Array.from(
|
|
6326
|
+
l.current.querySelectorAll("[data-active='true']")
|
|
6327
|
+
);
|
|
6328
|
+
if (g.length > 0) {
|
|
6329
|
+
const h = g[0], f = g[g.length - 1], u = l.current.getBoundingClientRect(), p = h.getBoundingClientRect(), m = f.getBoundingClientRect(), C = p.top - u.top, S = m.bottom - p.top;
|
|
6330
|
+
c({ top: C, height: S });
|
|
6331
|
+
}
|
|
6332
|
+
}, [i, l]), /* @__PURE__ */ b("nav", { className: w("space-y-1", t), ...o, children: [
|
|
6333
|
+
/* @__PURE__ */ d("p", { className: "font-semibold text-sm mb-4 ps-4", children: "On This Page" }),
|
|
6334
|
+
/* @__PURE__ */ b(
|
|
6335
|
+
"ul",
|
|
6336
|
+
{
|
|
6337
|
+
ref: (g) => {
|
|
6338
|
+
l.current = g;
|
|
6339
|
+
},
|
|
6340
|
+
className: "space-y-0 relative border-s border-[var(--color-border-default)]",
|
|
6341
|
+
children: [
|
|
6342
|
+
/* @__PURE__ */ d(
|
|
6343
|
+
"div",
|
|
6344
|
+
{
|
|
6345
|
+
className: "absolute left-[-1.5px] w-[3px] bg-[var(--color-primary)] rounded-full transition-all duration-300 ease-[var(--ease-spring)]",
|
|
6346
|
+
style: {
|
|
6347
|
+
top: a.top,
|
|
6348
|
+
height: a.height,
|
|
6349
|
+
opacity: a.height > 0 ? 1 : 0
|
|
6350
|
+
}
|
|
6351
|
+
}
|
|
6352
|
+
),
|
|
6353
|
+
e.map((g) => /* @__PURE__ */ d("li", { children: /* @__PURE__ */ d(
|
|
6354
|
+
"button",
|
|
6355
|
+
{
|
|
6356
|
+
"data-active": i.includes(g.id),
|
|
6357
|
+
className: w(
|
|
6358
|
+
"block py-1.5 px-4 text-sm transition-colors duration-200 text-left w-full border-s-2 border-transparent -ms-[1px]",
|
|
6359
|
+
i.includes(g.id) ? "text-[var(--color-primary)] font-medium" : "text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]"
|
|
6360
|
+
),
|
|
6361
|
+
onClick: () => {
|
|
6362
|
+
const h = document.getElementById(g.id);
|
|
6363
|
+
if (h) {
|
|
6364
|
+
const u = h.getBoundingClientRect().top + window.scrollY - 100;
|
|
6365
|
+
window.scrollTo({
|
|
6366
|
+
top: u,
|
|
6367
|
+
behavior: n ? "smooth" : "auto"
|
|
6368
|
+
}), r && r(g.id);
|
|
6369
|
+
}
|
|
6370
|
+
},
|
|
6371
|
+
children: g.label
|
|
6372
|
+
}
|
|
6373
|
+
) }, g.id))
|
|
6374
|
+
]
|
|
6375
|
+
}
|
|
6376
|
+
)
|
|
6377
|
+
] });
|
|
6378
|
+
}
|
|
6294
6379
|
export {
|
|
6295
6380
|
Nn as Alert,
|
|
6296
6381
|
zn as Avatar,
|
|
@@ -6302,10 +6387,10 @@ export {
|
|
|
6302
6387
|
Mo as BreadcrumbSeparator,
|
|
6303
6388
|
Z as Button,
|
|
6304
6389
|
fn as Card,
|
|
6305
|
-
|
|
6390
|
+
Ie as Checkbox,
|
|
6306
6391
|
Jn as Command,
|
|
6307
|
-
|
|
6308
|
-
|
|
6392
|
+
ko as ConfirmDialog,
|
|
6393
|
+
$o as DataTable,
|
|
6309
6394
|
Po as DataTableColumnHeader,
|
|
6310
6395
|
yn as Dialog,
|
|
6311
6396
|
xn as DialogClose,
|
|
@@ -6324,7 +6409,7 @@ export {
|
|
|
6324
6409
|
mt as Label,
|
|
6325
6410
|
No as Pagination,
|
|
6326
6411
|
Bn as Progress,
|
|
6327
|
-
|
|
6412
|
+
Io as SearchCommand,
|
|
6328
6413
|
Dn as Select,
|
|
6329
6414
|
Cn as Separator,
|
|
6330
6415
|
xo as Sheet,
|
|
@@ -6345,9 +6430,10 @@ export {
|
|
|
6345
6430
|
jn as Spinner,
|
|
6346
6431
|
hn as SpotlightCard,
|
|
6347
6432
|
Ln as Switch,
|
|
6433
|
+
Lo as TOC,
|
|
6348
6434
|
vt as Table,
|
|
6349
6435
|
Ct as TableBody,
|
|
6350
|
-
|
|
6436
|
+
ke as TableCell,
|
|
6351
6437
|
St as TableHead,
|
|
6352
6438
|
wt as TableHeader,
|
|
6353
6439
|
he as TableRow,
|