@epam/ai-dial-ui-kit 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -204,8 +204,8 @@ const Td = "-", Kw = (e) => {
|
|
|
204
204
|
continue;
|
|
205
205
|
r.push(S);
|
|
206
206
|
const y = o(C, v);
|
|
207
|
-
for (let
|
|
208
|
-
const R = y[
|
|
207
|
+
for (let x = 0; x < y.length; ++x) {
|
|
208
|
+
const R = y[x];
|
|
209
209
|
r.push(b + R);
|
|
210
210
|
}
|
|
211
211
|
l = d + (l.length > 0 ? " " + l : l);
|
|
@@ -276,9 +276,9 @@ const st = (e) => {
|
|
|
276
276
|
"bottom-left",
|
|
277
277
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
278
278
|
"left-bottom"
|
|
279
|
-
], y = () => [...S(), he, ue],
|
|
279
|
+
], y = () => [...S(), he, ue], x = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], F = () => [he, ue, l], P = () => [Hi, "full", "auto", ...F()], T = () => [Vs, "none", "subgrid", he, ue], E = () => ["auto", {
|
|
280
280
|
span: ["full", Vs, he, ue]
|
|
281
|
-
}, Vs, he, ue], A = () => [Vs, "auto", he, ue], U = () => ["auto", "min", "max", "fr", he, ue], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], X = () => ["auto", ...
|
|
281
|
+
}, Vs, he, ue], A = () => [Vs, "auto", he, ue], U = () => ["auto", "min", "max", "fr", he, ue], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], H = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], X = () => ["auto", ...F()], se = () => [Hi, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...F()], N = () => [e, he, ue], de = () => [...S(), $u, Uu, {
|
|
282
282
|
position: [he, ue]
|
|
283
283
|
}], j = () => ["no-repeat", {
|
|
284
284
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -299,7 +299,7 @@ const st = (e) => {
|
|
|
299
299
|
p,
|
|
300
300
|
he,
|
|
301
301
|
ue
|
|
302
|
-
], xe = () => ["none", Me, he, ue], $ = () => ["none", Me, he, ue], V = () => [Me, he, ue], Y = () => [Hi, "full", ...
|
|
302
|
+
], xe = () => ["none", Me, he, ue], $ = () => ["none", Me, he, ue], V = () => [Me, he, ue], Y = () => [Hi, "full", ...F()];
|
|
303
303
|
return {
|
|
304
304
|
cacheSize: 500,
|
|
305
305
|
theme: {
|
|
@@ -430,21 +430,21 @@ const st = (e) => {
|
|
|
430
430
|
* @see https://tailwindcss.com/docs/overflow
|
|
431
431
|
*/
|
|
432
432
|
overflow: [{
|
|
433
|
-
overflow:
|
|
433
|
+
overflow: x()
|
|
434
434
|
}],
|
|
435
435
|
/**
|
|
436
436
|
* Overflow X
|
|
437
437
|
* @see https://tailwindcss.com/docs/overflow
|
|
438
438
|
*/
|
|
439
439
|
"overflow-x": [{
|
|
440
|
-
"overflow-x":
|
|
440
|
+
"overflow-x": x()
|
|
441
441
|
}],
|
|
442
442
|
/**
|
|
443
443
|
* Overflow Y
|
|
444
444
|
* @see https://tailwindcss.com/docs/overflow
|
|
445
445
|
*/
|
|
446
446
|
"overflow-y": [{
|
|
447
|
-
"overflow-y":
|
|
447
|
+
"overflow-y": x()
|
|
448
448
|
}],
|
|
449
449
|
/**
|
|
450
450
|
* Overscroll Behavior
|
|
@@ -555,7 +555,7 @@ const st = (e) => {
|
|
|
555
555
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
556
556
|
*/
|
|
557
557
|
basis: [{
|
|
558
|
-
basis: [Hi, "full", "auto", a, ...
|
|
558
|
+
basis: [Hi, "full", "auto", a, ...F()]
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Flex Direction
|
|
@@ -681,21 +681,21 @@ const st = (e) => {
|
|
|
681
681
|
* @see https://tailwindcss.com/docs/gap
|
|
682
682
|
*/
|
|
683
683
|
gap: [{
|
|
684
|
-
gap:
|
|
684
|
+
gap: F()
|
|
685
685
|
}],
|
|
686
686
|
/**
|
|
687
687
|
* Gap X
|
|
688
688
|
* @see https://tailwindcss.com/docs/gap
|
|
689
689
|
*/
|
|
690
690
|
"gap-x": [{
|
|
691
|
-
"gap-x":
|
|
691
|
+
"gap-x": F()
|
|
692
692
|
}],
|
|
693
693
|
/**
|
|
694
694
|
* Gap Y
|
|
695
695
|
* @see https://tailwindcss.com/docs/gap
|
|
696
696
|
*/
|
|
697
697
|
"gap-y": [{
|
|
698
|
-
"gap-y":
|
|
698
|
+
"gap-y": F()
|
|
699
699
|
}],
|
|
700
700
|
/**
|
|
701
701
|
* Justify Content
|
|
@@ -770,63 +770,63 @@ const st = (e) => {
|
|
|
770
770
|
* @see https://tailwindcss.com/docs/padding
|
|
771
771
|
*/
|
|
772
772
|
p: [{
|
|
773
|
-
p:
|
|
773
|
+
p: F()
|
|
774
774
|
}],
|
|
775
775
|
/**
|
|
776
776
|
* Padding X
|
|
777
777
|
* @see https://tailwindcss.com/docs/padding
|
|
778
778
|
*/
|
|
779
779
|
px: [{
|
|
780
|
-
px:
|
|
780
|
+
px: F()
|
|
781
781
|
}],
|
|
782
782
|
/**
|
|
783
783
|
* Padding Y
|
|
784
784
|
* @see https://tailwindcss.com/docs/padding
|
|
785
785
|
*/
|
|
786
786
|
py: [{
|
|
787
|
-
py:
|
|
787
|
+
py: F()
|
|
788
788
|
}],
|
|
789
789
|
/**
|
|
790
790
|
* Padding Start
|
|
791
791
|
* @see https://tailwindcss.com/docs/padding
|
|
792
792
|
*/
|
|
793
793
|
ps: [{
|
|
794
|
-
ps:
|
|
794
|
+
ps: F()
|
|
795
795
|
}],
|
|
796
796
|
/**
|
|
797
797
|
* Padding End
|
|
798
798
|
* @see https://tailwindcss.com/docs/padding
|
|
799
799
|
*/
|
|
800
800
|
pe: [{
|
|
801
|
-
pe:
|
|
801
|
+
pe: F()
|
|
802
802
|
}],
|
|
803
803
|
/**
|
|
804
804
|
* Padding Top
|
|
805
805
|
* @see https://tailwindcss.com/docs/padding
|
|
806
806
|
*/
|
|
807
807
|
pt: [{
|
|
808
|
-
pt:
|
|
808
|
+
pt: F()
|
|
809
809
|
}],
|
|
810
810
|
/**
|
|
811
811
|
* Padding Right
|
|
812
812
|
* @see https://tailwindcss.com/docs/padding
|
|
813
813
|
*/
|
|
814
814
|
pr: [{
|
|
815
|
-
pr:
|
|
815
|
+
pr: F()
|
|
816
816
|
}],
|
|
817
817
|
/**
|
|
818
818
|
* Padding Bottom
|
|
819
819
|
* @see https://tailwindcss.com/docs/padding
|
|
820
820
|
*/
|
|
821
821
|
pb: [{
|
|
822
|
-
pb:
|
|
822
|
+
pb: F()
|
|
823
823
|
}],
|
|
824
824
|
/**
|
|
825
825
|
* Padding Left
|
|
826
826
|
* @see https://tailwindcss.com/docs/padding
|
|
827
827
|
*/
|
|
828
828
|
pl: [{
|
|
829
|
-
pl:
|
|
829
|
+
pl: F()
|
|
830
830
|
}],
|
|
831
831
|
/**
|
|
832
832
|
* Margin
|
|
@@ -896,7 +896,7 @@ const st = (e) => {
|
|
|
896
896
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
897
897
|
*/
|
|
898
898
|
"space-x": [{
|
|
899
|
-
"space-x":
|
|
899
|
+
"space-x": F()
|
|
900
900
|
}],
|
|
901
901
|
/**
|
|
902
902
|
* Space Between X Reverse
|
|
@@ -908,7 +908,7 @@ const st = (e) => {
|
|
|
908
908
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
909
909
|
*/
|
|
910
910
|
"space-y": [{
|
|
911
|
-
"space-y":
|
|
911
|
+
"space-y": F()
|
|
912
912
|
}],
|
|
913
913
|
/**
|
|
914
914
|
* Space Between Y Reverse
|
|
@@ -1077,7 +1077,7 @@ const st = (e) => {
|
|
|
1077
1077
|
leading: [
|
|
1078
1078
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1079
1079
|
n,
|
|
1080
|
-
...
|
|
1080
|
+
...F()
|
|
1081
1081
|
]
|
|
1082
1082
|
}],
|
|
1083
1083
|
/**
|
|
@@ -1178,7 +1178,7 @@ const st = (e) => {
|
|
|
1178
1178
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1179
1179
|
*/
|
|
1180
1180
|
indent: [{
|
|
1181
|
-
indent:
|
|
1181
|
+
indent: F()
|
|
1182
1182
|
}],
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Vertical Alignment
|
|
@@ -2142,21 +2142,21 @@ const st = (e) => {
|
|
|
2142
2142
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2143
2143
|
*/
|
|
2144
2144
|
"border-spacing": [{
|
|
2145
|
-
"border-spacing":
|
|
2145
|
+
"border-spacing": F()
|
|
2146
2146
|
}],
|
|
2147
2147
|
/**
|
|
2148
2148
|
* Border Spacing X
|
|
2149
2149
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2150
2150
|
*/
|
|
2151
2151
|
"border-spacing-x": [{
|
|
2152
|
-
"border-spacing-x":
|
|
2152
|
+
"border-spacing-x": F()
|
|
2153
2153
|
}],
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Border Spacing Y
|
|
2156
2156
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2157
2157
|
*/
|
|
2158
2158
|
"border-spacing-y": [{
|
|
2159
|
-
"border-spacing-y":
|
|
2159
|
+
"border-spacing-y": F()
|
|
2160
2160
|
}],
|
|
2161
2161
|
/**
|
|
2162
2162
|
* Table Layout
|
|
@@ -2448,126 +2448,126 @@ const st = (e) => {
|
|
|
2448
2448
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2449
2449
|
*/
|
|
2450
2450
|
"scroll-m": [{
|
|
2451
|
-
"scroll-m":
|
|
2451
|
+
"scroll-m": F()
|
|
2452
2452
|
}],
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Scroll Margin X
|
|
2455
2455
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2456
2456
|
*/
|
|
2457
2457
|
"scroll-mx": [{
|
|
2458
|
-
"scroll-mx":
|
|
2458
|
+
"scroll-mx": F()
|
|
2459
2459
|
}],
|
|
2460
2460
|
/**
|
|
2461
2461
|
* Scroll Margin Y
|
|
2462
2462
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2463
2463
|
*/
|
|
2464
2464
|
"scroll-my": [{
|
|
2465
|
-
"scroll-my":
|
|
2465
|
+
"scroll-my": F()
|
|
2466
2466
|
}],
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Scroll Margin Start
|
|
2469
2469
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2470
2470
|
*/
|
|
2471
2471
|
"scroll-ms": [{
|
|
2472
|
-
"scroll-ms":
|
|
2472
|
+
"scroll-ms": F()
|
|
2473
2473
|
}],
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Scroll Margin End
|
|
2476
2476
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2477
2477
|
*/
|
|
2478
2478
|
"scroll-me": [{
|
|
2479
|
-
"scroll-me":
|
|
2479
|
+
"scroll-me": F()
|
|
2480
2480
|
}],
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Scroll Margin Top
|
|
2483
2483
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2484
2484
|
*/
|
|
2485
2485
|
"scroll-mt": [{
|
|
2486
|
-
"scroll-mt":
|
|
2486
|
+
"scroll-mt": F()
|
|
2487
2487
|
}],
|
|
2488
2488
|
/**
|
|
2489
2489
|
* Scroll Margin Right
|
|
2490
2490
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2491
2491
|
*/
|
|
2492
2492
|
"scroll-mr": [{
|
|
2493
|
-
"scroll-mr":
|
|
2493
|
+
"scroll-mr": F()
|
|
2494
2494
|
}],
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Scroll Margin Bottom
|
|
2497
2497
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2498
2498
|
*/
|
|
2499
2499
|
"scroll-mb": [{
|
|
2500
|
-
"scroll-mb":
|
|
2500
|
+
"scroll-mb": F()
|
|
2501
2501
|
}],
|
|
2502
2502
|
/**
|
|
2503
2503
|
* Scroll Margin Left
|
|
2504
2504
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2505
2505
|
*/
|
|
2506
2506
|
"scroll-ml": [{
|
|
2507
|
-
"scroll-ml":
|
|
2507
|
+
"scroll-ml": F()
|
|
2508
2508
|
}],
|
|
2509
2509
|
/**
|
|
2510
2510
|
* Scroll Padding
|
|
2511
2511
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2512
2512
|
*/
|
|
2513
2513
|
"scroll-p": [{
|
|
2514
|
-
"scroll-p":
|
|
2514
|
+
"scroll-p": F()
|
|
2515
2515
|
}],
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Scroll Padding X
|
|
2518
2518
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2519
2519
|
*/
|
|
2520
2520
|
"scroll-px": [{
|
|
2521
|
-
"scroll-px":
|
|
2521
|
+
"scroll-px": F()
|
|
2522
2522
|
}],
|
|
2523
2523
|
/**
|
|
2524
2524
|
* Scroll Padding Y
|
|
2525
2525
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2526
2526
|
*/
|
|
2527
2527
|
"scroll-py": [{
|
|
2528
|
-
"scroll-py":
|
|
2528
|
+
"scroll-py": F()
|
|
2529
2529
|
}],
|
|
2530
2530
|
/**
|
|
2531
2531
|
* Scroll Padding Start
|
|
2532
2532
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2533
2533
|
*/
|
|
2534
2534
|
"scroll-ps": [{
|
|
2535
|
-
"scroll-ps":
|
|
2535
|
+
"scroll-ps": F()
|
|
2536
2536
|
}],
|
|
2537
2537
|
/**
|
|
2538
2538
|
* Scroll Padding End
|
|
2539
2539
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2540
2540
|
*/
|
|
2541
2541
|
"scroll-pe": [{
|
|
2542
|
-
"scroll-pe":
|
|
2542
|
+
"scroll-pe": F()
|
|
2543
2543
|
}],
|
|
2544
2544
|
/**
|
|
2545
2545
|
* Scroll Padding Top
|
|
2546
2546
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2547
2547
|
*/
|
|
2548
2548
|
"scroll-pt": [{
|
|
2549
|
-
"scroll-pt":
|
|
2549
|
+
"scroll-pt": F()
|
|
2550
2550
|
}],
|
|
2551
2551
|
/**
|
|
2552
2552
|
* Scroll Padding Right
|
|
2553
2553
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2554
2554
|
*/
|
|
2555
2555
|
"scroll-pr": [{
|
|
2556
|
-
"scroll-pr":
|
|
2556
|
+
"scroll-pr": F()
|
|
2557
2557
|
}],
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Scroll Padding Bottom
|
|
2560
2560
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2561
2561
|
*/
|
|
2562
2562
|
"scroll-pb": [{
|
|
2563
|
-
"scroll-pb":
|
|
2563
|
+
"scroll-pb": F()
|
|
2564
2564
|
}],
|
|
2565
2565
|
/**
|
|
2566
2566
|
* Scroll Padding Left
|
|
2567
2567
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2568
2568
|
*/
|
|
2569
2569
|
"scroll-pl": [{
|
|
2570
|
-
"scroll-pl":
|
|
2570
|
+
"scroll-pl": F()
|
|
2571
2571
|
}],
|
|
2572
2572
|
/**
|
|
2573
2573
|
* Scroll Snap Align
|
|
@@ -3333,7 +3333,7 @@ const W1 = "w-full flex", _1 = {
|
|
|
3333
3333
|
defaultEmptyText: f,
|
|
3334
3334
|
children: v
|
|
3335
3335
|
}) => {
|
|
3336
|
-
const C = `${e}-label`, w = o ? `${e}-desc` : void 0, b = n ? `${e}-err` : void 0, S = `${e}-caption-desc`, y = [w, b].filter(Boolean).join(" ") || void 0,
|
|
3336
|
+
const C = `${e}-label`, w = o ? `${e}-desc` : void 0, b = n ? `${e}-err` : void 0, S = `${e}-caption-desc`, y = [w, b].filter(Boolean).join(" ") || void 0, x = D(() => typeof n == "boolean" ? null : typeof n == "string" || typeof n > "u" ? n ? /* @__PURE__ */ m(
|
|
3337
3337
|
"div",
|
|
3338
3338
|
{
|
|
3339
3339
|
id: b,
|
|
@@ -3398,7 +3398,7 @@ const W1 = "w-full flex", _1 = {
|
|
|
3398
3398
|
children: h
|
|
3399
3399
|
}
|
|
3400
3400
|
),
|
|
3401
|
-
|
|
3401
|
+
x()
|
|
3402
3402
|
] })
|
|
3403
3403
|
]
|
|
3404
3404
|
}
|
|
@@ -5898,8 +5898,8 @@ var jr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(jr ||
|
|
|
5898
5898
|
}, t.prototype.calculateNewSizeFromAspectRatio = function(s, i, o, n) {
|
|
5899
5899
|
var r = this.props, a = r.lockAspectRatio, l = r.lockAspectRatioExtraHeight, c = r.lockAspectRatioExtraWidth, d = typeof n.width > "u" ? 10 : n.width, u = typeof o.width > "u" || o.width < 0 ? s : o.width, h = typeof n.height > "u" ? 10 : n.height, g = typeof o.height > "u" || o.height < 0 ? i : o.height, p = l || 0, f = c || 0;
|
|
5900
5900
|
if (a) {
|
|
5901
|
-
var v = (h - p) * this.ratio + f, C = (g - p) * this.ratio + f, w = (d - f) / this.ratio + p, b = (u - f) / this.ratio + p, S = Math.max(d, v), y = Math.min(u, C),
|
|
5902
|
-
s = rr(s, S, y), i = rr(i,
|
|
5901
|
+
var v = (h - p) * this.ratio + f, C = (g - p) * this.ratio + f, w = (d - f) / this.ratio + p, b = (u - f) / this.ratio + p, S = Math.max(d, v), y = Math.min(u, C), x = Math.max(h, w), R = Math.min(g, b);
|
|
5902
|
+
s = rr(s, S, y), i = rr(i, x, R);
|
|
5903
5903
|
} else
|
|
5904
5904
|
s = rr(s, d, u), i = rr(i, h, g);
|
|
5905
5905
|
return { newWidth: s, newHeight: i };
|
|
@@ -5964,9 +5964,9 @@ var jr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(jr ||
|
|
|
5964
5964
|
n = C.maxWidth, r = C.maxHeight, a = C.minWidth, l = C.minHeight;
|
|
5965
5965
|
var w = this.calculateNewSizeFromDirection(c, d), b = w.newHeight, S = w.newWidth, y = this.calculateNewMaxFromBoundary(n, r);
|
|
5966
5966
|
this.props.snap && this.props.snap.x && (S = ch(S, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = ch(b, this.props.snap.y, this.props.snapGap));
|
|
5967
|
-
var
|
|
5968
|
-
if (S =
|
|
5969
|
-
var R = lh(S, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0),
|
|
5967
|
+
var x = this.calculateNewSizeFromAspectRatio(S, b, { width: y.maxWidth, height: y.maxHeight }, { width: a, height: l });
|
|
5968
|
+
if (S = x.newWidth, b = x.newHeight, this.props.grid) {
|
|
5969
|
+
var R = lh(S, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), F = lh(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), P = this.props.snapGap || 0, T = P === 0 || Math.abs(R - S) <= P ? R : S, E = P === 0 || Math.abs(F - b) <= P ? F : b;
|
|
5970
5970
|
S = T, b = E;
|
|
5971
5971
|
}
|
|
5972
5972
|
var A = {
|
|
@@ -6133,8 +6133,8 @@ const gS = ({ side: e, className: t }) => {
|
|
|
6133
6133
|
right: S ? void 0 : y
|
|
6134
6134
|
},
|
|
6135
6135
|
onResizeStart: C,
|
|
6136
|
-
onResize: (
|
|
6137
|
-
const P = Math.round(
|
|
6136
|
+
onResize: (x, R, F) => {
|
|
6137
|
+
const P = Math.round(F.offsetWidth);
|
|
6138
6138
|
r?.(P);
|
|
6139
6139
|
},
|
|
6140
6140
|
onResizeStop: w
|
|
@@ -6187,15 +6187,15 @@ const CS = (e) => {
|
|
|
6187
6187
|
c
|
|
6188
6188
|
);
|
|
6189
6189
|
if (r !== Zt.Default) {
|
|
6190
|
-
const
|
|
6190
|
+
const F = ce(
|
|
6191
6191
|
u,
|
|
6192
6192
|
r === Zt.Circular && "rounded-full",
|
|
6193
6193
|
r === Zt.Rectangular && "rounded",
|
|
6194
6194
|
r === Zt.Text && "rounded"
|
|
6195
6195
|
), P = {};
|
|
6196
|
-
return a && (P.width = typeof a == "number" ? `${a}px` : a), l && (P.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ m("div", { className:
|
|
6196
|
+
return a && (P.width = typeof a == "number" ? `${a}px` : a), l && (P.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ m("div", { className: F, style: P, ...d });
|
|
6197
6197
|
}
|
|
6198
|
-
const h = !!s, g = !!i, p = !!t, f = typeof s == "object" ? s : {}, v = typeof i == "object" ? i : {}, C = typeof t == "object" ? t : {}, w = CS(f.size), b = f.shape ?? Dc.Circle, S = v.width ?? "38%", y = C.rows ?? 3,
|
|
6198
|
+
const h = !!s, g = !!i, p = !!t, f = typeof s == "object" ? s : {}, v = typeof i == "object" ? i : {}, C = typeof t == "object" ? t : {}, w = CS(f.size), b = f.shape ?? Dc.Circle, S = v.width ?? "38%", y = C.rows ?? 3, x = C.width, R = (F) => x ? Array.isArray(x) ? x[F] ?? "100%" : x : F === y - 1 ? "61%" : "100%";
|
|
6199
6199
|
return /* @__PURE__ */ W("div", { ...d, className: ce("flex gap-4", c), children: [
|
|
6200
6200
|
h && /* @__PURE__ */ m(
|
|
6201
6201
|
"div",
|
|
@@ -6216,7 +6216,7 @@ const CS = (e) => {
|
|
|
6216
6216
|
style: { width: S }
|
|
6217
6217
|
}
|
|
6218
6218
|
),
|
|
6219
|
-
p && /* @__PURE__ */ m("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((
|
|
6219
|
+
p && /* @__PURE__ */ m("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((F, P) => /* @__PURE__ */ m(
|
|
6220
6220
|
"div",
|
|
6221
6221
|
{
|
|
6222
6222
|
className: ce(u, "h-4 rounded"),
|
|
@@ -8499,10 +8499,10 @@ function Xt(e, t, s) {
|
|
|
8499
8499
|
return !1;
|
|
8500
8500
|
if (t?.state && !t.state.forEach)
|
|
8501
8501
|
return _(32), !1;
|
|
8502
|
-
const C = (y,
|
|
8502
|
+
const C = (y, x, R, F, P) => {
|
|
8503
8503
|
if (!y)
|
|
8504
8504
|
return;
|
|
8505
|
-
const T = _y(
|
|
8505
|
+
const T = _y(x, t.defaultState), E = T("flex").value1;
|
|
8506
8506
|
if (Af(
|
|
8507
8507
|
e,
|
|
8508
8508
|
y,
|
|
@@ -8519,9 +8519,9 @@ function Xt(e, t, s) {
|
|
|
8519
8519
|
U != null && A >= U && y.setActualWidth(A, s);
|
|
8520
8520
|
}
|
|
8521
8521
|
}
|
|
8522
|
-
P || !y.isPrimary() || (h?.syncColumnWithState(y, s, T), o?.syncColumnWithState(y, s, T, R), n?.syncColumnWithState(y, s, T,
|
|
8523
|
-
}, w = (y,
|
|
8524
|
-
const
|
|
8522
|
+
P || !y.isPrimary() || (h?.syncColumnWithState(y, s, T), o?.syncColumnWithState(y, s, T, R), n?.syncColumnWithState(y, s, T, F));
|
|
8523
|
+
}, w = (y, x, R) => {
|
|
8524
|
+
const F = Hf(e, s), P = x.slice(), T = {}, E = {}, A = [], U = [], B = [];
|
|
8525
8525
|
let H = 0;
|
|
8526
8526
|
const X = o?.columns.slice() ?? [], se = n?.columns.slice() ?? [];
|
|
8527
8527
|
for (const j of y) {
|
|
@@ -8557,7 +8557,7 @@ function Xt(e, t, s) {
|
|
|
8557
8557
|
), sR(t, i, p), c.refresh(s), g.dispatchEvent({
|
|
8558
8558
|
type: "columnEverythingChanged",
|
|
8559
8559
|
source: s
|
|
8560
|
-
}),
|
|
8560
|
+
}), F(), { unmatchedAndAutoStates: B, unmatchedCount: H };
|
|
8561
8561
|
};
|
|
8562
8562
|
l?.start();
|
|
8563
8563
|
let { unmatchedAndAutoStates: b, unmatchedCount: S } = w(
|
|
@@ -8570,7 +8570,7 @@ function Xt(e, t, s) {
|
|
|
8570
8570
|
S = w(
|
|
8571
8571
|
b,
|
|
8572
8572
|
y,
|
|
8573
|
-
(
|
|
8573
|
+
(x) => d?.getPivotResultCol(x) ?? null
|
|
8574
8574
|
).unmatchedCount;
|
|
8575
8575
|
}
|
|
8576
8576
|
return l?.finish(), S === 0;
|
|
@@ -8598,27 +8598,27 @@ function Hf(e, t) {
|
|
|
8598
8598
|
for (const u of c)
|
|
8599
8599
|
d[u.colId] = u;
|
|
8600
8600
|
return () => {
|
|
8601
|
-
const u = (
|
|
8602
|
-
const T = R.map(P), E =
|
|
8601
|
+
const u = (x, R, F, P) => {
|
|
8602
|
+
const T = R.map(P), E = F.map(P);
|
|
8603
8603
|
if (ti(T, E))
|
|
8604
8604
|
return;
|
|
8605
8605
|
const U = new Set(R);
|
|
8606
|
-
for (const H of
|
|
8606
|
+
for (const H of F)
|
|
8607
8607
|
U.delete(H) || U.add(H);
|
|
8608
8608
|
const B = [...U];
|
|
8609
8609
|
a.dispatchEvent({
|
|
8610
|
-
type:
|
|
8610
|
+
type: x,
|
|
8611
8611
|
columns: B,
|
|
8612
8612
|
column: B.length === 1 ? B[0] : null,
|
|
8613
8613
|
source: t
|
|
8614
8614
|
});
|
|
8615
|
-
}, h = (
|
|
8615
|
+
}, h = (x) => {
|
|
8616
8616
|
const R = [];
|
|
8617
|
-
return n.forAllCols((
|
|
8618
|
-
const P = d[
|
|
8619
|
-
P &&
|
|
8617
|
+
return n.forAllCols((F) => {
|
|
8618
|
+
const P = d[F.getColId()];
|
|
8619
|
+
P && x(P, F) && R.push(F);
|
|
8620
8620
|
}), R;
|
|
8621
|
-
}, g = (
|
|
8621
|
+
}, g = (x) => x.getColId();
|
|
8622
8622
|
u(
|
|
8623
8623
|
"columnRowGroupChanged",
|
|
8624
8624
|
l.rowGroupColumns,
|
|
@@ -8630,12 +8630,12 @@ function Hf(e, t) {
|
|
|
8630
8630
|
i?.columns ?? [],
|
|
8631
8631
|
g
|
|
8632
8632
|
);
|
|
8633
|
-
const f = h((
|
|
8634
|
-
const
|
|
8633
|
+
const f = h((x, R) => {
|
|
8634
|
+
const F = x.aggFunc != null, P = F != R.isValueActive(), T = F && x.aggFunc != R.getAggFunc();
|
|
8635
8635
|
return P || T;
|
|
8636
8636
|
});
|
|
8637
|
-
f.length > 0 && eR(a, "columnValueChanged", f, t), po(a, h((
|
|
8638
|
-
const S = h((
|
|
8637
|
+
f.length > 0 && eR(a, "columnValueChanged", f, t), po(a, h((x, R) => x.width != R.getActualWidth()), !0, t), Nf(a, h((x, R) => x.pinned != R.getPinned()), t), Jy(a, h((x, R) => x.hide == R.isVisible()), t);
|
|
8638
|
+
const S = h((x, R) => x.sort != R.getSort() || x.sortIndex != R.getSortIndex());
|
|
8639
8639
|
S.length > 0 && r?.dispatchSortChangedEvents(t, S);
|
|
8640
8640
|
const y = na(e);
|
|
8641
8641
|
oR(c, y, t, n, a);
|
|
@@ -14228,7 +14228,7 @@ var Or = {
|
|
|
14228
14228
|
let u, h, g = 0;
|
|
14229
14229
|
this.invalidateVerticalScroll();
|
|
14230
14230
|
do {
|
|
14231
|
-
const { stickyTopHeight: p, stickyBottomHeight: f } = c, v = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight, y = this.getVScrollPosition(),
|
|
14231
|
+
const { stickyTopHeight: p, stickyBottomHeight: f } = c, v = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight, y = this.getVScrollPosition(), x = a.divStretchOffset, R = y.top + x, F = y.bottom + x, P = F - R, T = a.getScrollPositionForPixel(b), E = a.getScrollPositionForPixel(S - P), A = Math.min((T + E) / 2, b), U = R + p > b, B = F - f < S;
|
|
14232
14232
|
let H = null;
|
|
14233
14233
|
t === "top" ? H = T - p : t === "bottom" ? H = E + f : t === "middle" ? H = A : U ? H = T - p : B && (E - T > P ? H = T - p : H = E + f), H !== null && (this.setVerticalScrollPosition(H), l.redraw({ afterScroll: !0 })), u = v !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
|
|
14234
14234
|
} while ((u || h) && g < 10);
|
|
@@ -19868,8 +19868,8 @@ function X3(e) {
|
|
|
19868
19868
|
for (; b <= S && c.indexOf(y) < 0; )
|
|
19869
19869
|
b++, C.push(b), y = d[b];
|
|
19870
19870
|
b = v - 1;
|
|
19871
|
-
const
|
|
19872
|
-
for (; b >=
|
|
19871
|
+
const x = 0;
|
|
19872
|
+
for (; b >= x; )
|
|
19873
19873
|
C.push(b), b--;
|
|
19874
19874
|
C.sort(w).reverse();
|
|
19875
19875
|
}
|
|
@@ -20743,22 +20743,22 @@ var uE = class extends O {
|
|
|
20743
20743
|
v = !1;
|
|
20744
20744
|
const w = [];
|
|
20745
20745
|
let b = 0, S = u;
|
|
20746
|
-
h.forEach((
|
|
20747
|
-
if (f[
|
|
20748
|
-
S -= p[
|
|
20746
|
+
h.forEach((x, R) => {
|
|
20747
|
+
if (f[x.getId()])
|
|
20748
|
+
S -= p[x.getId()];
|
|
20749
20749
|
else {
|
|
20750
|
-
w.push(
|
|
20750
|
+
w.push(x);
|
|
20751
20751
|
const P = g[R];
|
|
20752
20752
|
b += P;
|
|
20753
20753
|
}
|
|
20754
20754
|
});
|
|
20755
20755
|
const y = 1 / b;
|
|
20756
|
-
w.forEach((
|
|
20757
|
-
const
|
|
20756
|
+
w.forEach((x, R) => {
|
|
20757
|
+
const F = R === w.length - 1;
|
|
20758
20758
|
let P;
|
|
20759
|
-
|
|
20760
|
-
const T =
|
|
20761
|
-
P < T ? (P = T, f[
|
|
20759
|
+
F ? P = S : (P = Math.round(g[R] * u * y), S -= P);
|
|
20760
|
+
const T = x.getMinWidth(), E = x.getMaxWidth();
|
|
20761
|
+
P < T ? (P = T, f[x.getId()] = !0, v = !0) : E > 0 && P > E && (P = E, f[x.getId()] = !0, v = !0), p[x.getId()] = P;
|
|
20762
20762
|
});
|
|
20763
20763
|
}
|
|
20764
20764
|
for (const w of h) {
|
|
@@ -21763,7 +21763,7 @@ var oD = class extends O {
|
|
|
21763
21763
|
if (g(y))
|
|
21764
21764
|
continue;
|
|
21765
21765
|
v = y, w += f * (y.flex / d);
|
|
21766
|
-
const
|
|
21766
|
+
const x = w - C, R = Math.round(x);
|
|
21767
21767
|
y.targetSize = R, C += R;
|
|
21768
21768
|
}
|
|
21769
21769
|
v && (v.targetSize += f - C);
|
|
@@ -21771,8 +21771,8 @@ var oD = class extends O {
|
|
|
21771
21771
|
for (const y of l) {
|
|
21772
21772
|
if (g(y))
|
|
21773
21773
|
continue;
|
|
21774
|
-
const
|
|
21775
|
-
b += R -
|
|
21774
|
+
const x = y.targetSize, R = Math.min(Math.max(x, y.min), y.max);
|
|
21775
|
+
b += R - x, y.violationType = R === x ? void 0 : R < x ? "max" : "min", y.targetSize = R;
|
|
21776
21776
|
}
|
|
21777
21777
|
const S = b === 0 ? "all" : b > 0 ? "min" : "max";
|
|
21778
21778
|
for (const y of l)
|
|
@@ -27170,18 +27170,18 @@ var b5 = class extends O {
|
|
|
27170
27170
|
return;
|
|
27171
27171
|
}
|
|
27172
27172
|
if (!i || !w) {
|
|
27173
|
-
const y = h?.isEditing(n), R = u.get("enableCellTextSelection") && e.defaultPrevented,
|
|
27174
|
-
n.focusCell(
|
|
27173
|
+
const y = h?.isEditing(n), R = u.get("enableCellTextSelection") && e.defaultPrevented, F = (si() || R) && !y && !tn(o) && !b;
|
|
27174
|
+
n.focusCell(F, e);
|
|
27175
27175
|
}
|
|
27176
27176
|
if (i && w && !d.isCellFocused(f)) {
|
|
27177
27177
|
e.preventDefault();
|
|
27178
27178
|
const y = d.getFocusedCell();
|
|
27179
27179
|
if (y) {
|
|
27180
|
-
const { column:
|
|
27180
|
+
const { column: x, rowIndex: R, rowPinned: F } = y;
|
|
27181
27181
|
h?.isEditing(y) && h?.stopEditing(y), d.setFocusedCell({
|
|
27182
|
-
column:
|
|
27182
|
+
column: x,
|
|
27183
27183
|
rowIndex: R,
|
|
27184
|
-
rowPinned:
|
|
27184
|
+
rowPinned: F,
|
|
27185
27185
|
forceBrowserFocus: !0,
|
|
27186
27186
|
preventScrollOnBrowserFocus: !0,
|
|
27187
27187
|
sourceEvent: e
|
|
@@ -27195,8 +27195,8 @@ var b5 = class extends O {
|
|
|
27195
27195
|
if (i)
|
|
27196
27196
|
l.extendLatestRangeToCell(f);
|
|
27197
27197
|
else if (!y) {
|
|
27198
|
-
const
|
|
27199
|
-
l.setRangeToCell(f,
|
|
27198
|
+
const x = t || s;
|
|
27199
|
+
l.setRangeToCell(f, x);
|
|
27200
27200
|
}
|
|
27201
27201
|
}
|
|
27202
27202
|
C();
|
|
@@ -30291,8 +30291,8 @@ var Z5 = (
|
|
|
30291
30291
|
const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
|
|
30292
30292
|
let g = !1, p, f;
|
|
30293
30293
|
do {
|
|
30294
|
-
const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel:
|
|
30295
|
-
h ? (p = y + R, f =
|
|
30294
|
+
const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: x } = t.getCurrentPagePixelRange(), R = e.divStretchOffset, F = u.getVScrollPosition(), P = F.top, T = F.bottom;
|
|
30295
|
+
h ? (p = y + R, f = x + R) : (p = Math.max(P + S - d, y) + R, f = Math.min(T + S + d, x) + R), this.firstVisibleVPixel = Math.max(P + S, y) + R, this.lastVisibleVPixel = Math.min(T + S, x) + R, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
|
|
30296
30296
|
} while (g);
|
|
30297
30297
|
let v = s.getRowIndexAtPixel(p), C = s.getRowIndexAtPixel(f);
|
|
30298
30298
|
const w = t.getFirstRow(), b = t.getLastRow();
|
|
@@ -31754,11 +31754,11 @@ function k4(e, t = !1) {
|
|
|
31754
31754
|
pivot: b,
|
|
31755
31755
|
pivotIndex: S,
|
|
31756
31756
|
pinned: y,
|
|
31757
|
-
hide:
|
|
31757
|
+
hide: x,
|
|
31758
31758
|
width: R,
|
|
31759
|
-
flex:
|
|
31759
|
+
flex: F
|
|
31760
31760
|
} = e[h];
|
|
31761
|
-
d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), v && (i[C ?? 0] = g), typeof w == "string" && o.push({ colId: g, aggFunc: w }), b && (n[S ?? 0] = g), y && (y === "right" ? a : r).push(g),
|
|
31761
|
+
d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), v && (i[C ?? 0] = g), typeof w == "string" && o.push({ colId: g, aggFunc: w }), b && (n[S ?? 0] = g), y && (y === "right" ? a : r).push(g), x && l.push(g), (F != null || R) && c.push({ colId: g, flex: F ?? void 0, width: R });
|
|
31762
31762
|
}
|
|
31763
31763
|
return {
|
|
31764
31764
|
sort: s.length ? { sortModel: ic(s) } : void 0,
|
|
@@ -38697,17 +38697,17 @@ var LM = {
|
|
|
38697
38697
|
C.data !== w && (C.updateData(w), r.has(C) || a.add(C), !C.selectable && C.isSelected() && c.push(C));
|
|
38698
38698
|
}, f = (C, w, b) => {
|
|
38699
38699
|
for (let S = 0, y = w.length; S < y; ++S) {
|
|
38700
|
-
const
|
|
38701
|
-
if (!
|
|
38700
|
+
const x = w[S];
|
|
38701
|
+
if (!x)
|
|
38702
38702
|
continue;
|
|
38703
|
-
let R = this.getRowNode(o({ data:
|
|
38704
|
-
if (R ? (p(R,
|
|
38703
|
+
let R = this.getRowNode(o({ data: x, level: b }));
|
|
38704
|
+
if (R ? (p(R, x), g || (g = !!d && R.treeParent !== C)) : (R = this.createRowNode(x, b), r.add(R)), !d || l.has(R)) {
|
|
38705
38705
|
l.add(R);
|
|
38706
38706
|
continue;
|
|
38707
38707
|
}
|
|
38708
38708
|
l.add(R), R.treeParent = C;
|
|
38709
|
-
const
|
|
38710
|
-
|
|
38709
|
+
const F = d(x);
|
|
38710
|
+
F && f(R, F, b + 1);
|
|
38711
38711
|
}
|
|
38712
38712
|
};
|
|
38713
38713
|
f(s, t, 0);
|
|
@@ -38895,16 +38895,16 @@ var LM = {
|
|
|
38895
38895
|
S && (v ?? (v = this.shouldSortContainsGroupCols(e)), S && (S = !v));
|
|
38896
38896
|
let y = null;
|
|
38897
38897
|
if (S) {
|
|
38898
|
-
let
|
|
38898
|
+
let x = !1;
|
|
38899
38899
|
if (h) {
|
|
38900
38900
|
const R = w.level + 1;
|
|
38901
|
-
R < h.length && (
|
|
38901
|
+
R < h.length && (x = h[R].getSort() === null);
|
|
38902
38902
|
}
|
|
38903
|
-
|
|
38903
|
+
x || (y = qM(w));
|
|
38904
38904
|
} else !e.length || b || (t && s ? y = jM(a, w, s, i, e) : y = a.doFullSort(w.childrenAfterAggFilter, e));
|
|
38905
38905
|
if (y || (y = w.childrenAfterAggFilter?.slice(0) ?? []), f || (f = w.childrenAfterSort?.[0] !== y[0]), w.childrenAfterSort = y, $C(w), p) {
|
|
38906
|
-
const
|
|
38907
|
-
p(
|
|
38906
|
+
const x = { nodes: w.childrenAfterSort };
|
|
38907
|
+
p(x);
|
|
38908
38908
|
}
|
|
38909
38909
|
};
|
|
38910
38910
|
if (i?.forEachChangedNodeDepthFirst(C), f && o.get("groupHideOpenParents")) {
|
|
@@ -40754,11 +40754,11 @@ var BI = class extends O {
|
|
|
40754
40754
|
f(E).pinned = "right";
|
|
40755
40755
|
}
|
|
40756
40756
|
(y || !s) && (v.pinned = null);
|
|
40757
|
-
const
|
|
40758
|
-
if (
|
|
40757
|
+
const x = g("columnVisibility", c);
|
|
40758
|
+
if (x)
|
|
40759
40759
|
for (const E of c?.hiddenColIds ?? [])
|
|
40760
40760
|
f(E).hide = !0;
|
|
40761
|
-
(
|
|
40761
|
+
(x || !s) && (v.hide = null);
|
|
40762
40762
|
const R = g("columnSizing", d);
|
|
40763
40763
|
if (R)
|
|
40764
40764
|
for (const { colId: E, flex: A, width: U } of d?.columnSizingModel ?? []) {
|
|
@@ -40766,7 +40766,7 @@ var BI = class extends O {
|
|
|
40766
40766
|
B.flex = A ?? null, B.width = U;
|
|
40767
40767
|
}
|
|
40768
40768
|
(R || !s) && (v.flex = null);
|
|
40769
|
-
const
|
|
40769
|
+
const F = u?.orderedColIds, P = !!F?.length && !i?.has("columnOrder"), T = P ? F.map((E) => f(E)) : Object.values(p);
|
|
40770
40770
|
(T.length || h) && (this.columnStates = T, Xt(
|
|
40771
40771
|
this.beans,
|
|
40772
40772
|
{
|
|
@@ -41750,22 +41750,22 @@ var D8 = class extends O {
|
|
|
41750
41750
|
const v = /* @__PURE__ */ new Set();
|
|
41751
41751
|
let C = -1;
|
|
41752
41752
|
const w = Object.fromEntries(
|
|
41753
|
-
c.map(({ colId: y, ...
|
|
41753
|
+
c.map(({ colId: y, ...x }) => [y, x])
|
|
41754
41754
|
), b = o ?? this.gos.get("skipHeaderOnAutoSize"), S = n ?? b;
|
|
41755
41755
|
for (; C !== 0; ) {
|
|
41756
41756
|
C = 0;
|
|
41757
41757
|
const y = [];
|
|
41758
|
-
for (const
|
|
41759
|
-
if (!
|
|
41758
|
+
for (const x of i) {
|
|
41759
|
+
if (!x || Vy(x))
|
|
41760
41760
|
continue;
|
|
41761
|
-
const R = g.getCol(
|
|
41761
|
+
const R = g.getCol(x);
|
|
41762
41762
|
if (!R || v.has(R))
|
|
41763
41763
|
continue;
|
|
41764
|
-
const
|
|
41765
|
-
if (
|
|
41764
|
+
const F = p.getPreferredWidthForColumn(R, b);
|
|
41765
|
+
if (F > 0) {
|
|
41766
41766
|
const P = w[R.colId] ?? {};
|
|
41767
41767
|
P.minWidth ?? (P.minWidth = l), P.maxWidth ?? (P.maxWidth = a);
|
|
41768
|
-
const T = P8(R,
|
|
41768
|
+
const T = P8(R, F, P);
|
|
41769
41769
|
R.setActualWidth(T, d), v.add(R), C++;
|
|
41770
41770
|
}
|
|
41771
41771
|
y.push(R);
|
|
@@ -41889,9 +41889,9 @@ var D8 = class extends O {
|
|
|
41889
41889
|
const f = p / Rs(l);
|
|
41890
41890
|
let v = p;
|
|
41891
41891
|
for (let C = l.length - 1; C >= 0; C--) {
|
|
41892
|
-
const w = l[C], b = o?.[w.getId()], S = b?.minWidth ?? i?.defaultMinWidth, y = b?.maxWidth ?? i?.defaultMaxWidth,
|
|
41892
|
+
const w = l[C], b = o?.[w.getId()], S = b?.minWidth ?? i?.defaultMinWidth, y = b?.maxWidth ?? i?.defaultMaxWidth, x = w.getMinWidth(), R = w.getMaxWidth(), F = typeof S == "number" && S > x ? S : x, P = typeof y == "number" && y < R ? y : R;
|
|
41893
41893
|
let T = Math.round(w.getActualWidth() * f);
|
|
41894
|
-
T <
|
|
41894
|
+
T < F ? (T = F, h(w), u = !1) : T > P ? (T = P, h(w), u = !1) : C === 0 && (T = v), w.setActualWidth(T, t, !0), v -= T;
|
|
41895
41895
|
}
|
|
41896
41896
|
}
|
|
41897
41897
|
}
|
|
@@ -42062,7 +42062,7 @@ var N8 = {
|
|
|
42062
42062
|
}
|
|
42063
42063
|
const y = n.getValue(t, b);
|
|
42064
42064
|
if (g) {
|
|
42065
|
-
const
|
|
42065
|
+
const x = fe(s, {
|
|
42066
42066
|
valueA: v,
|
|
42067
42067
|
nodeA: p,
|
|
42068
42068
|
valueB: y,
|
|
@@ -42070,7 +42070,7 @@ var N8 = {
|
|
|
42070
42070
|
column: t,
|
|
42071
42071
|
colDef: a
|
|
42072
42072
|
});
|
|
42073
|
-
if (!h(
|
|
42073
|
+
if (!h(x)) {
|
|
42074
42074
|
C(b, y);
|
|
42075
42075
|
return;
|
|
42076
42076
|
}
|
|
@@ -42079,8 +42079,8 @@ var N8 = {
|
|
|
42079
42079
|
return;
|
|
42080
42080
|
}
|
|
42081
42081
|
if (!f) {
|
|
42082
|
-
const
|
|
42083
|
-
|
|
42082
|
+
const x = l?.get(p);
|
|
42083
|
+
x?.firstNode === p ? (x.reset(), f = x) : f = new H8(t, p), c.set(p, f);
|
|
42084
42084
|
}
|
|
42085
42085
|
f.addSpannedNode(b), c.set(b, f);
|
|
42086
42086
|
};
|
|
@@ -42923,14 +42923,14 @@ function ma(e, t, s) {
|
|
|
42923
42923
|
return i.length === e.length && o.length === 0 ? e : i.length === 0 && o.length === t.length ? t : i.length === 0 ? o : o.length === 0 ? i : [...i, ...o];
|
|
42924
42924
|
}
|
|
42925
42925
|
var XC = Sd((e, t) => {
|
|
42926
|
-
const { registry: s, context: i } = ot(wt), o = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = I(), [h, g] = I(), [p, f] = I(), [v, C] = I(() => new jt()), [w, b] = I(() => new jt("ag-hidden")), [S, y] = I(() => new jt("ag-hidden")), [
|
|
42926
|
+
const { registry: s, context: i } = ot(wt), o = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = I(), [h, g] = I(), [p, f] = I(), [v, C] = I(() => new jt()), [w, b] = I(() => new jt("ag-hidden")), [S, y] = I(() => new jt("ag-hidden")), [x, R] = I(() => new jt("ag-invisible"));
|
|
42927
42927
|
En(t, () => ({
|
|
42928
42928
|
// force new instance when grid tries to refresh
|
|
42929
42929
|
refresh() {
|
|
42930
42930
|
return !1;
|
|
42931
42931
|
}
|
|
42932
42932
|
})), Qt(() => Nn(d, i, n.current), [d]);
|
|
42933
|
-
const
|
|
42933
|
+
const F = D((se) => {
|
|
42934
42934
|
if (o.current = se, !se || i.isDestroyed()) {
|
|
42935
42935
|
c.current = i.destroyBean(c.current);
|
|
42936
42936
|
return;
|
|
@@ -42958,12 +42958,12 @@ var XC = Sd((e, t) => {
|
|
|
42958
42958
|
}, []), P = G(() => `ag-cell-wrapper ${v.toString()}`, [v]), T = G(() => `ag-group-expanded ${w.toString()}`, [w]), E = G(
|
|
42959
42959
|
() => `ag-group-contracted ${S.toString()}`,
|
|
42960
42960
|
[S]
|
|
42961
|
-
), A = G(() => `ag-group-checkbox ${
|
|
42961
|
+
), A = G(() => `ag-group-checkbox ${x.toString()}`, [x]), U = d?.componentFromFramework, B = U ? d.componentClass : void 0, H = d == null && p != null, X = xo(p);
|
|
42962
42962
|
return /* @__PURE__ */ K.createElement(
|
|
42963
42963
|
"span",
|
|
42964
42964
|
{
|
|
42965
42965
|
className: P,
|
|
42966
|
-
ref:
|
|
42966
|
+
ref: F,
|
|
42967
42967
|
...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
|
|
42968
42968
|
},
|
|
42969
42969
|
/* @__PURE__ */ K.createElement("span", { className: T, ref: a }),
|
|
@@ -43477,14 +43477,14 @@ var MA = 1e3, IA = class {
|
|
|
43477
43477
|
() => new jt("ag-header-cell", "ag-floating-filter")
|
|
43478
43478
|
), [a, l] = I(() => new jt()), [c, d] = I(
|
|
43479
43479
|
() => new jt("ag-floating-filter-button", "ag-hidden")
|
|
43480
|
-
), [u, h] = I("false"), [g, p] = I(), [, f] = I(1), v = L(), C = L(null), w = L(null), b = L(null), S = L(null), y = L(),
|
|
43480
|
+
), [u, h] = I("false"), [g, p] = I(), [, f] = I(1), v = L(), C = L(null), w = L(null), b = L(null), S = L(null), y = L(), x = L(), R = (j) => {
|
|
43481
43481
|
j != null && y.current && y.current(j);
|
|
43482
|
-
},
|
|
43482
|
+
}, F = D((j) => {
|
|
43483
43483
|
if (C.current = j, !j || !e.isAlive() || t.isDestroyed()) {
|
|
43484
43484
|
v.current = t.destroyBean(v.current);
|
|
43485
43485
|
return;
|
|
43486
43486
|
}
|
|
43487
|
-
v.current = t.createBean(new Fo()),
|
|
43487
|
+
v.current = t.createBean(new Fo()), x.current = new Ie((J) => {
|
|
43488
43488
|
y.current = J;
|
|
43489
43489
|
});
|
|
43490
43490
|
const oe = {
|
|
@@ -43498,7 +43498,7 @@ var MA = 1e3, IA = class {
|
|
|
43498
43498
|
C.current && (C.current.style.width = J);
|
|
43499
43499
|
},
|
|
43500
43500
|
setCompDetails: (J) => p(J),
|
|
43501
|
-
getFloatingFilterComp: () =>
|
|
43501
|
+
getFloatingFilterComp: () => x.current ? x.current : null,
|
|
43502
43502
|
setMenuIcon: (J) => S.current?.appendChild(J)
|
|
43503
43503
|
};
|
|
43504
43504
|
e.setComp(oe, j, S.current, w.current, v.current);
|
|
@@ -43517,7 +43517,7 @@ var MA = 1e3, IA = class {
|
|
|
43517
43517
|
ku();
|
|
43518
43518
|
}, [g]);
|
|
43519
43519
|
const se = H?.getProps(), N = g?.componentFromFramework, de = g?.componentClass;
|
|
43520
|
-
return /* @__PURE__ */ K.createElement("div", { ref:
|
|
43520
|
+
return /* @__PURE__ */ K.createElement("div", { ref: F, style: i, className: P, role: "gridcell" }, /* @__PURE__ */ K.createElement("div", { ref: w, className: T, role: "presentation" }, N ? U ? se && /* @__PURE__ */ K.createElement(
|
|
43521
43521
|
Au.Provider,
|
|
43522
43522
|
{
|
|
43523
43523
|
value: {
|
|
@@ -43577,11 +43577,11 @@ var MA = 1e3, IA = class {
|
|
|
43577
43577
|
Qt(() => Nn(h, t, C.current), [h]), Se(() => {
|
|
43578
43578
|
f.current && e.setDragSource(f.current);
|
|
43579
43579
|
}, [h]);
|
|
43580
|
-
const S = G(() => !!(h?.componentFromFramework && Do(h.componentClass)), [h]), y = G(() => "ag-header-group-cell " + o.toString(), [o]),
|
|
43580
|
+
const S = G(() => !!(h?.componentFromFramework && Do(h.componentClass)), [h]), y = G(() => "ag-header-group-cell " + o.toString(), [o]), x = G(
|
|
43581
43581
|
() => "ag-header-cell-resize " + r.toString(),
|
|
43582
43582
|
[r]
|
|
43583
|
-
), R = h?.componentFromFramework,
|
|
43584
|
-
return /* @__PURE__ */ K.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ K.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, R ? S ? /* @__PURE__ */ K.createElement(
|
|
43583
|
+
), R = h?.componentFromFramework, F = h?.componentClass;
|
|
43584
|
+
return /* @__PURE__ */ K.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ K.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, R ? S ? /* @__PURE__ */ K.createElement(F, { ...h.params }) : /* @__PURE__ */ K.createElement(F, { ...h.params, ref: w }) : null), /* @__PURE__ */ K.createElement("div", { ref: v, "aria-hidden": l, className: x }));
|
|
43585
43585
|
}, GA = vt(HA), BA = ({ ctrl: e }) => {
|
|
43586
43586
|
const { gos: t, context: s } = ot(wt), { topOffset: i, rowHeight: o } = G(() => e.getTopAndHeight(), []), n = G(() => t.get("tabIndex"), []), [r, a] = I(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = I(() => o + "px"), [u, h] = I(() => i + "px"), g = L(null), [p, f] = I(() => e.getUpdatedHeaderCtrls()), v = L(), C = L(null), w = D((y) => {
|
|
43587
43587
|
if (C.current = y, !y || !e.isAlive() || s.isDestroyed()) {
|
|
@@ -43589,11 +43589,11 @@ var MA = 1e3, IA = class {
|
|
|
43589
43589
|
return;
|
|
43590
43590
|
}
|
|
43591
43591
|
v.current = s.createBean(new Fo());
|
|
43592
|
-
const
|
|
43592
|
+
const x = {
|
|
43593
43593
|
setHeight: (R) => d(R),
|
|
43594
43594
|
setTop: (R) => h(R),
|
|
43595
|
-
setHeaderCtrls: (R,
|
|
43596
|
-
const T = g.current, E = ma(T, R,
|
|
43595
|
+
setHeaderCtrls: (R, F, P) => {
|
|
43596
|
+
const T = g.current, E = ma(T, R, F);
|
|
43597
43597
|
E !== T && (g.current = E, Rn(P, () => f(E)));
|
|
43598
43598
|
},
|
|
43599
43599
|
setWidth: (R) => {
|
|
@@ -43603,7 +43603,7 @@ var MA = 1e3, IA = class {
|
|
|
43603
43603
|
a(R);
|
|
43604
43604
|
}
|
|
43605
43605
|
};
|
|
43606
|
-
e.setComp(
|
|
43606
|
+
e.setComp(x, v.current, !1);
|
|
43607
43607
|
}, []), b = G(
|
|
43608
43608
|
() => ({
|
|
43609
43609
|
height: c,
|
|
@@ -43858,9 +43858,9 @@ var MA = 1e3, IA = class {
|
|
|
43858
43858
|
instanceId: r
|
|
43859
43859
|
} = e, a = L(), [l, c] = I(
|
|
43860
43860
|
() => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
|
|
43861
|
-
), [d, u] = I(), [h, g] = I(1), [p, f] = I(), [v, C] = I(!1), [w, b] = I(!1), [S, y] = I(!1), [
|
|
43861
|
+
), [d, u] = I(), [h, g] = I(1), [p, f] = I(), [v, C] = I(!1), [w, b] = I(!1), [S, y] = I(!1), [x, R] = I(), F = G(() => e.isForceWrapper(), [e]), P = G(() => e.getCellAriaRole(), [e]), T = L(null), E = L(null), A = L(null), U = L(), B = L(), H = L(), X = L([]), se = L(), N = L(), [de, j] = I(0), oe = D((ae) => {
|
|
43862
43862
|
N.current = ae, j((Fe) => Fe + 1);
|
|
43863
|
-
}, []), J = l != null && (v || S || w) && (d == null || !!d.popup), ee =
|
|
43863
|
+
}, []), J = l != null && (v || S || w) && (d == null || !!d.popup), ee = F || J, q = G(() => e.getCellValueClass(), [e]), we = D(
|
|
43864
43864
|
(ae) => {
|
|
43865
43865
|
if (B.current = ae, ae) {
|
|
43866
43866
|
const Fe = ae.isCancelBeforeStart && ae.isCancelBeforeStart();
|
|
@@ -43890,7 +43890,7 @@ var MA = 1e3, IA = class {
|
|
|
43890
43890
|
if (!be)
|
|
43891
43891
|
return;
|
|
43892
43892
|
const Re = be.getGui();
|
|
43893
|
-
we(be), Te || ((
|
|
43893
|
+
we(be), Te || ((F ? H : T).current?.appendChild(Re), be.afterGuiAttached?.()), R(be);
|
|
43894
43894
|
}), () => {
|
|
43895
43895
|
He.then((be) => {
|
|
43896
43896
|
const Re = be.getGui();
|
|
@@ -44005,14 +44005,14 @@ var MA = 1e3, IA = class {
|
|
|
44005
44005
|
return /* @__PURE__ */ K.createElement(Jv, { fallback: /* @__PURE__ */ K.createElement(QA, { cellCtrl: e, parent: T }) }, Y ? /* @__PURE__ */ K.createElement(Te, { ...ae.params, key: h }) : /* @__PURE__ */ K.createElement(Te, { ...ae.params, key: h, ref: A }));
|
|
44006
44006
|
}
|
|
44007
44007
|
}, me = () => {
|
|
44008
|
-
const ae = () => l == null ? null : ee ? /* @__PURE__ */ K.createElement("span", { role: "presentation", id: `cell-${r}`, className: q, ref: oe }, le()) : le(), Fe = (Te) => YA(Te, we, T.current, e,
|
|
44008
|
+
const ae = () => l == null ? null : ee ? /* @__PURE__ */ K.createElement("span", { role: "presentation", id: `cell-${r}`, className: q, ref: oe }, le()) : le(), Fe = (Te) => YA(Te, we, T.current, e, x);
|
|
44009
44009
|
return d != null ? d.popup ? /* @__PURE__ */ K.createElement(K.Fragment, null, ae(), Fe(d)) : Fe(d) : ae();
|
|
44010
44010
|
}, De = () => /* @__PURE__ */ K.createElement("div", { ref: $, style: p, role: P, "col-id": n }, ee ? /* @__PURE__ */ K.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: ge }, me()) : me());
|
|
44011
44011
|
return e.isCellSpanning() ? /* @__PURE__ */ K.createElement("div", { ref: V, className: "ag-spanned-cell-wrapper", role: "presentation" }, De()) : De();
|
|
44012
44012
|
}, JA = vt(XA), ek = ({ rowCtrl: e, containerType: t }) => {
|
|
44013
44013
|
const { context: s, gos: i, editSvc: o } = ot(wt), n = ot(YC) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = I(
|
|
44014
44014
|
() => c ? e.rowNode.getRowIndexString() : null
|
|
44015
|
-
), [h, g] = I(() => e.rowId), [p, f] = I(() => e.businessKey), [v, C] = I(() => e.rowStyles), w = L(null), [b, S] = I(() => null), [y,
|
|
44015
|
+
), [h, g] = I(() => e.rowId), [p, f] = I(() => e.businessKey), [v, C] = I(() => e.rowStyles), w = L(null), [b, S] = I(() => null), [y, x] = I(), [R, F] = I(
|
|
44016
44016
|
() => c ? e.getInitialRowTop(t) : void 0
|
|
44017
44017
|
), [P, T] = I(
|
|
44018
44018
|
() => c ? e.getInitialTransform(t) : void 0
|
|
@@ -44043,7 +44043,7 @@ var MA = 1e3, IA = class {
|
|
|
44043
44043
|
const V = {
|
|
44044
44044
|
// the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)
|
|
44045
44045
|
// as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.
|
|
44046
|
-
setTop:
|
|
44046
|
+
setTop: F,
|
|
44047
44047
|
setTransform: T,
|
|
44048
44048
|
// i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
|
|
44049
44049
|
// React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
|
|
@@ -44060,13 +44060,13 @@ var MA = 1e3, IA = class {
|
|
|
44060
44060
|
De !== me && (w.current = De, n ? N.current() : Rn(le, () => S(De)));
|
|
44061
44061
|
},
|
|
44062
44062
|
showFullWidth: (Y) => {
|
|
44063
|
-
U.current = Y.params,
|
|
44063
|
+
U.current = Y.params, x(Y);
|
|
44064
44064
|
},
|
|
44065
44065
|
getFullWidthCellRenderer: () => A.current,
|
|
44066
44066
|
getFullWidthCellRendererParams: () => U.current,
|
|
44067
44067
|
refreshFullWidth: (Y) => {
|
|
44068
44068
|
const le = Y();
|
|
44069
|
-
return U.current = le, k.current ? (
|
|
44069
|
+
return U.current = le, k.current ? (x((me) => ({
|
|
44070
44070
|
...me,
|
|
44071
44071
|
params: le
|
|
44072
44072
|
})), !0) : !A.current || !A.current.refresh ? !1 : A.current.refresh(le);
|
|
@@ -44110,13 +44110,13 @@ var MA = 1e3, IA = class {
|
|
|
44110
44110
|
we ? ge() : q ? xe() : null
|
|
44111
44111
|
);
|
|
44112
44112
|
}, Hg = vt(ek), tk = ({ name: e }) => {
|
|
44113
|
-
const { context: t, gos: s } = ot(wt), i = G(() => kn(e), [e]), o = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = I(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = I(() => []), v = L(!1), C = L(), w = G(() => Vt("ag-viewport", bm(e)), [e]), b = G(() => Vt(Hr(e)), [e]), S = G(() => Vt("ag-spanning-container", zx(e)), [e]), y = i.type === "center" || u,
|
|
44114
|
-
ci(" AG Row Container " + e + " ",
|
|
44113
|
+
const { context: t, gos: s } = ot(wt), i = G(() => kn(e), [e]), o = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = I(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = I(() => []), v = L(!1), C = L(), w = G(() => Vt("ag-viewport", bm(e)), [e]), b = G(() => Vt(Hr(e)), [e]), S = G(() => Vt("ag-spanning-container", zx(e)), [e]), y = i.type === "center" || u, x = y ? o : n;
|
|
44114
|
+
ci(" AG Row Container " + e + " ", x);
|
|
44115
44115
|
const R = D(() => {
|
|
44116
44116
|
const H = !y || o.current != null, X = n.current != null, se = !u || r.current != null;
|
|
44117
44117
|
return H && X && se;
|
|
44118
|
-
}, []),
|
|
44119
|
-
if (
|
|
44118
|
+
}, []), F = D(() => o.current == null && n.current == null && r.current == null, []), P = D(() => {
|
|
44119
|
+
if (F() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && R()) {
|
|
44120
44120
|
const H = (N) => {
|
|
44121
44121
|
const de = ma(
|
|
44122
44122
|
l.current,
|
|
@@ -44163,7 +44163,7 @@ var MA = 1e3, IA = class {
|
|
|
44163
44163
|
o.current
|
|
44164
44164
|
);
|
|
44165
44165
|
}
|
|
44166
|
-
}, [R,
|
|
44166
|
+
}, [R, F]), T = D(
|
|
44167
44167
|
(H) => {
|
|
44168
44168
|
n.current = H, P();
|
|
44169
44169
|
},
|
|
@@ -44192,7 +44192,7 @@ var MA = 1e3, IA = class {
|
|
|
44192
44192
|
const B = () => /* @__PURE__ */ K.createElement("div", { className: S, ref: E, role: "presentation" }, p.map((H) => /* @__PURE__ */ K.createElement(Hg, { rowCtrl: H, containerType: i.type, key: H.instanceId })));
|
|
44193
44193
|
return /* @__PURE__ */ K.createElement("div", { className: w, ref: A, role: "rowgroup" }, U(), u ? B() : null);
|
|
44194
44194
|
}, sk = vt(tk), ik = () => {
|
|
44195
|
-
const e = ot(wt), { context: t, overlays: s } = e, [i, o] = I(""), [n, r] = I(0), [a, l] = I(0), [c, d] = I("0px"), [u, h] = I("0px"), [g, p] = I("100%"), [f, v] = I("0px"), [C, w] = I("0px"), [b, S] = I("100%"), [y,
|
|
44195
|
+
const e = ot(wt), { context: t, overlays: s } = e, [i, o] = I(""), [n, r] = I(0), [a, l] = I(0), [c, d] = I("0px"), [u, h] = I("0px"), [g, p] = I("100%"), [f, v] = I("0px"), [C, w] = I("0px"), [b, S] = I("100%"), [y, x] = I(!0), [R, F] = I(!0), [P, T] = I(null), [E, A] = I(""), [U, B] = I(null), [H, X] = I("ag-layout-normal"), se = L();
|
|
44196
44196
|
se.current || (se.current = new In(() => N.current));
|
|
44197
44197
|
const N = L(null), de = L(null), j = L(null), oe = L(null), J = L(null), ee = L(null), q = L(null), we = L([]), ye = L([]);
|
|
44198
44198
|
ci(" AG Grid Body ", N), ci(" AG Pinned Top ", de), ci(" AG Sticky Top ", j), ci(" AG Middle ", ee), ci(" AG Pinned Bottom ", q);
|
|
@@ -44228,8 +44228,8 @@ var MA = 1e3, IA = class {
|
|
|
44228
44228
|
setStickyTopHeight: d,
|
|
44229
44229
|
setStickyTopTop: h,
|
|
44230
44230
|
setStickyTopWidth: p,
|
|
44231
|
-
setTopInvisible:
|
|
44232
|
-
setBottomInvisible:
|
|
44231
|
+
setTopInvisible: x,
|
|
44232
|
+
setBottomInvisible: F,
|
|
44233
44233
|
setColumnMovingCss: (z, Ee) => se.current.toggleCss(z, Ee),
|
|
44234
44234
|
updateLayoutClasses: X,
|
|
44235
44235
|
setAlwaysVerticalScrollClass: T,
|
|
@@ -44396,7 +44396,7 @@ var MA = 1e3, IA = class {
|
|
|
44396
44396
|
}), b = L(), S = L([]), y = D(() => {
|
|
44397
44397
|
}, []);
|
|
44398
44398
|
ci(" AG Grid ", p);
|
|
44399
|
-
const
|
|
44399
|
+
const x = D((A) => {
|
|
44400
44400
|
if (p.current = A, g.current = A ? e.createBean(new i3()) : e.destroyBean(g.current), !A || e.isDestroyed())
|
|
44401
44401
|
return;
|
|
44402
44402
|
const U = g.current;
|
|
@@ -44462,7 +44462,7 @@ var MA = 1e3, IA = class {
|
|
|
44462
44462
|
const R = G(
|
|
44463
44463
|
() => Vt("ag-root-wrapper", t, i),
|
|
44464
44464
|
[t, i]
|
|
44465
|
-
),
|
|
44465
|
+
), F = G(
|
|
44466
44466
|
() => Vt("ag-root-wrapper-body", "ag-focus-managed", i),
|
|
44467
44467
|
[i]
|
|
44468
44468
|
), P = G(
|
|
@@ -44475,7 +44475,7 @@ var MA = 1e3, IA = class {
|
|
|
44475
44475
|
), T = D((A) => {
|
|
44476
44476
|
f.current = A, h(A !== null);
|
|
44477
44477
|
}, []), E = D(() => !g.current?.isFocusable(), []);
|
|
44478
|
-
return /* @__PURE__ */ K.createElement("div", { ref:
|
|
44478
|
+
return /* @__PURE__ */ K.createElement("div", { ref: x, className: R, style: P, role: "presentation" }, /* @__PURE__ */ K.createElement("div", { className: F, ref: C, role: "presentation" }, c && v && !e.isDestroyed() && /* @__PURE__ */ K.createElement(wt.Provider, { value: e.getBeans() }, /* @__PURE__ */ K.createElement(
|
|
44479
44479
|
ak,
|
|
44480
44480
|
{
|
|
44481
44481
|
ref: T,
|
|
@@ -44559,16 +44559,16 @@ var MA = 1e3, IA = class {
|
|
|
44559
44559
|
}
|
|
44560
44560
|
}, y = new mk(S);
|
|
44561
44561
|
a.current = y;
|
|
44562
|
-
const
|
|
44562
|
+
const x = new dk(), R = {
|
|
44563
44563
|
providedBeanInstances: {
|
|
44564
44564
|
frameworkCompWrapper: new pk(i.current, b),
|
|
44565
|
-
renderStatus:
|
|
44565
|
+
renderStatus: x
|
|
44566
44566
|
},
|
|
44567
44567
|
modules: w,
|
|
44568
44568
|
frameworkOverrides: y,
|
|
44569
44569
|
setThemeOnGridDiv: !0
|
|
44570
|
-
},
|
|
44571
|
-
u(E), E.createBean(
|
|
44570
|
+
}, F = (E) => {
|
|
44571
|
+
u(E), E.createBean(x), o.current.push(() => {
|
|
44572
44572
|
E.destroy();
|
|
44573
44573
|
}), E.getBean("ctrlsSvc").whenReady(
|
|
44574
44574
|
{
|
|
@@ -44600,7 +44600,7 @@ var MA = 1e3, IA = class {
|
|
|
44600
44600
|
b.gridId ?? (b.gridId = l.current), t.current = T.create(
|
|
44601
44601
|
C,
|
|
44602
44602
|
b,
|
|
44603
|
-
|
|
44603
|
+
F,
|
|
44604
44604
|
P,
|
|
44605
44605
|
R
|
|
44606
44606
|
), o.current.push(() => {
|
|
@@ -44701,14 +44701,14 @@ var pk = class extends O4 {
|
|
|
44701
44701
|
f.current = o.destroyBean(f.current), C.current?.();
|
|
44702
44702
|
return;
|
|
44703
44703
|
}
|
|
44704
|
-
const
|
|
44704
|
+
const F = {
|
|
44705
44705
|
toggleCss: (T, E) => l((A) => A.setClass(T, E)),
|
|
44706
44706
|
toggleDetailGridCss: (T, E) => d((A) => A.setClass(T, E)),
|
|
44707
44707
|
setDetailGrid: (T) => h(T),
|
|
44708
44708
|
setRowData: (T) => p(T),
|
|
44709
44709
|
getGui: () => v.current
|
|
44710
44710
|
}, P = i.createDynamicBean("detailCellRendererCtrl", !0);
|
|
44711
|
-
if (P && (o.createBean(P), P.init(
|
|
44711
|
+
if (P && (o.createBean(P), P.init(F, e), f.current = P, n.get("detailRowAutoHeight"))) {
|
|
44712
44712
|
const T = () => {
|
|
44713
44713
|
if (v.current == null)
|
|
44714
44714
|
return;
|
|
@@ -44719,7 +44719,7 @@ var pk = class extends O4 {
|
|
|
44719
44719
|
};
|
|
44720
44720
|
C.current = ks(s, R, T), T();
|
|
44721
44721
|
}
|
|
44722
|
-
}, []),
|
|
44722
|
+
}, []), x = D((R) => {
|
|
44723
44723
|
f.current?.registerDetailWithMaster(R);
|
|
44724
44724
|
}, []);
|
|
44725
44725
|
return /* @__PURE__ */ K.createElement("div", { className: b, ref: y }, u && /* @__PURE__ */ K.createElement(
|
|
@@ -44729,7 +44729,7 @@ var pk = class extends O4 {
|
|
|
44729
44729
|
...u,
|
|
44730
44730
|
modules: w,
|
|
44731
44731
|
rowData: g,
|
|
44732
|
-
passGridApi:
|
|
44732
|
+
passGridApi: x
|
|
44733
44733
|
}
|
|
44734
44734
|
));
|
|
44735
44735
|
}), mk = class extends km {
|
|
@@ -44825,15 +44825,15 @@ const wk = te(
|
|
|
44825
44825
|
matchReferenceWidth: C = !0,
|
|
44826
44826
|
maxDropdownHeight: w
|
|
44827
44827
|
}) => {
|
|
44828
|
-
const [b, S] = I(a), y = r !== void 0,
|
|
44828
|
+
const [b, S] = I(a), y = r !== void 0, x = y ? !!r : b, R = L(null), F = D(
|
|
44829
44829
|
(k) => {
|
|
44830
44830
|
y || S(k), l?.(k);
|
|
44831
44831
|
},
|
|
44832
44832
|
[y, l]
|
|
44833
44833
|
), P = yd(), T = o === void 0, E = (k) => "clientWidth" in k ? k.clientWidth : k.getBoundingClientRect?.()?.width ?? 0, { refs: A, floatingStyles: U, context: B } = pd({
|
|
44834
44834
|
placement: o,
|
|
44835
|
-
open:
|
|
44836
|
-
onOpenChange:
|
|
44835
|
+
open: x,
|
|
44836
|
+
onOpenChange: F,
|
|
44837
44837
|
whileElementsMounted: ip,
|
|
44838
44838
|
middleware: [
|
|
44839
44839
|
ep({ mainAxis: $o, crossAxis: 0 }),
|
|
@@ -44901,26 +44901,26 @@ const wk = te(
|
|
|
44901
44901
|
!i.includes(_t.ContextMenu) || n || (k.preventDefault(), v && (oe(k.clientX, k.clientY), R.current = document.elementFromPoint(
|
|
44902
44902
|
k.clientX,
|
|
44903
44903
|
k.clientY
|
|
44904
|
-
)),
|
|
44904
|
+
)), F(!0));
|
|
44905
44905
|
},
|
|
44906
|
-
[v, n,
|
|
44906
|
+
[v, n, F, oe, i]
|
|
44907
44907
|
), ee = D(
|
|
44908
44908
|
(k) => {
|
|
44909
|
-
!v || n || (i.includes(_t.ContextMenu) &&
|
|
44909
|
+
!v || n || (i.includes(_t.ContextMenu) && x && F(!1), oe(k.clientX, k.clientY), R.current = document.elementFromPoint(
|
|
44910
44910
|
k.clientX,
|
|
44911
44911
|
k.clientY
|
|
44912
44912
|
));
|
|
44913
44913
|
},
|
|
44914
|
-
[v, n, oe,
|
|
44914
|
+
[v, n, oe, x, i, F]
|
|
44915
44915
|
);
|
|
44916
44916
|
Se(() => {
|
|
44917
|
-
n &&
|
|
44918
|
-
}, [n,
|
|
44917
|
+
n && x && F(!1);
|
|
44918
|
+
}, [n, x, F]);
|
|
44919
44919
|
const q = D(
|
|
44920
44920
|
(k) => (ge) => {
|
|
44921
|
-
k.disabled || (k.onClick?.({ key: k.key, domEvent: ge }), t?.onClick?.({ key: k.key, domEvent: ge }),
|
|
44921
|
+
k.disabled || (k.onClick?.({ key: k.key, domEvent: ge }), t?.onClick?.({ key: k.key, domEvent: ge }), F(!1));
|
|
44922
44922
|
},
|
|
44923
|
-
[t,
|
|
44923
|
+
[t, F]
|
|
44924
44924
|
), we = G(() => s ? s() : t ? /* @__PURE__ */ W(Ve, { children: [
|
|
44925
44925
|
t.header && /* @__PURE__ */ m(Ve, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
44926
44926
|
/* @__PURE__ */ m("div", { role: "none", className: "py-1", "aria-label": "dropdown", children: t.items.map((k) => k.type === xn.Divider ? /* @__PURE__ */ m(
|
|
@@ -44987,18 +44987,18 @@ const wk = te(
|
|
|
44987
44987
|
onMouseDown: ee
|
|
44988
44988
|
});
|
|
44989
44989
|
return Se(() => {
|
|
44990
|
-
if (!
|
|
44990
|
+
if (!x) return;
|
|
44991
44991
|
const k = A.reference.current;
|
|
44992
44992
|
let ge = null;
|
|
44993
44993
|
if (k instanceof Element ? ge = k : R.current instanceof Element && (ge = R.current), !ge) return;
|
|
44994
44994
|
const xe = new IntersectionObserver(
|
|
44995
44995
|
([$]) => {
|
|
44996
|
-
$.isIntersecting ||
|
|
44996
|
+
$.isIntersecting || F(!1);
|
|
44997
44997
|
},
|
|
44998
44998
|
{ root: null, threshold: 0 }
|
|
44999
44999
|
);
|
|
45000
45000
|
return xe.observe(ge), () => xe.disconnect();
|
|
45001
|
-
}, [
|
|
45001
|
+
}, [x, A.reference, F]), /* @__PURE__ */ W(Ve, { children: [
|
|
45002
45002
|
/* @__PURE__ */ m(
|
|
45003
45003
|
"span",
|
|
45004
45004
|
{
|
|
@@ -45009,13 +45009,13 @@ const wk = te(
|
|
|
45009
45009
|
u
|
|
45010
45010
|
),
|
|
45011
45011
|
"aria-haspopup": "menu",
|
|
45012
|
-
"aria-expanded":
|
|
45012
|
+
"aria-expanded": x,
|
|
45013
45013
|
"aria-controls": P,
|
|
45014
45014
|
...ye,
|
|
45015
45015
|
children: e
|
|
45016
45016
|
}
|
|
45017
45017
|
),
|
|
45018
|
-
|
|
45018
|
+
x && /* @__PURE__ */ m(wd, { children: /* @__PURE__ */ m(
|
|
45019
45019
|
np,
|
|
45020
45020
|
{
|
|
45021
45021
|
context: B,
|
|
@@ -45040,7 +45040,7 @@ const wk = te(
|
|
|
45040
45040
|
{
|
|
45041
45041
|
ariaLabel: "Close dropdown",
|
|
45042
45042
|
onClose: (k) => {
|
|
45043
|
-
d?.(k),
|
|
45043
|
+
d?.(k), F(!1);
|
|
45044
45044
|
}
|
|
45045
45045
|
}
|
|
45046
45046
|
) }),
|
|
@@ -45184,9 +45184,9 @@ const rv = ({
|
|
|
45184
45184
|
emptyStateTitle: b = "No results found",
|
|
45185
45185
|
emptyStateDescription: S = "Sorry, we couldn't find any results for your search.",
|
|
45186
45186
|
loading: y = !1,
|
|
45187
|
-
wrapperBorder:
|
|
45187
|
+
wrapperBorder: x = !0,
|
|
45188
45188
|
withoutHeaderBorders: R = !1,
|
|
45189
|
-
selectionMode:
|
|
45189
|
+
selectionMode: F = Qo.CHECKBOX
|
|
45190
45190
|
}) => {
|
|
45191
45191
|
const [P, T] = I(cc), [E, A] = I(), U = yd(), {
|
|
45192
45192
|
currentSelectedIds: B,
|
|
@@ -45205,9 +45205,9 @@ const rv = ({
|
|
|
45205
45205
|
() => ({
|
|
45206
45206
|
...lc,
|
|
45207
45207
|
oddRowBackgroundColor: v ? lc.oddRowBackgroundColor : lc.backgroundColor,
|
|
45208
|
-
wrapperBorder:
|
|
45208
|
+
wrapperBorder: x
|
|
45209
45209
|
}),
|
|
45210
|
-
[v,
|
|
45210
|
+
[v, x]
|
|
45211
45211
|
), de = D(($) => {
|
|
45212
45212
|
$.api.sizeColumnsToFit(), T(cc);
|
|
45213
45213
|
}, []), j = D(
|
|
@@ -45221,7 +45221,7 @@ const rv = ({
|
|
|
45221
45221
|
},
|
|
45222
45222
|
[B, l, f]
|
|
45223
45223
|
), oe = D(() => {
|
|
45224
|
-
if (
|
|
45224
|
+
if (F !== Qo.CHECKBOX) return null;
|
|
45225
45225
|
const $ = X === "checked", V = X === "indeterminate", Y = "header-select-all", le = t?.some((me) => !l?.has(f(me))) ?? !1;
|
|
45226
45226
|
return /* @__PURE__ */ m("div", { className: "flex items-center justify-center h-full header-checkbox-container", children: /* @__PURE__ */ m(
|
|
45227
45227
|
_r,
|
|
@@ -45246,7 +45246,7 @@ const rv = ({
|
|
|
45246
45246
|
se,
|
|
45247
45247
|
l,
|
|
45248
45248
|
f,
|
|
45249
|
-
|
|
45249
|
+
F
|
|
45250
45250
|
]), J = D(
|
|
45251
45251
|
($) => {
|
|
45252
45252
|
if ($.data) {
|
|
@@ -45276,7 +45276,7 @@ const rv = ({
|
|
|
45276
45276
|
($) => {
|
|
45277
45277
|
if (!$.data) return null;
|
|
45278
45278
|
const V = f($.data), Y = B.has(V), le = l?.has(V), me = `row-select-${V}`;
|
|
45279
|
-
return
|
|
45279
|
+
return F === Qo.RADIO_BUTTON ? /* @__PURE__ */ m("div", { className: "h-6 w-6 flex items-center justify-center", children: /* @__PURE__ */ m(
|
|
45280
45280
|
Pp,
|
|
45281
45281
|
{
|
|
45282
45282
|
className: "w-[18px] h-[18px]",
|
|
@@ -45315,7 +45315,7 @@ const rv = ({
|
|
|
45315
45315
|
f,
|
|
45316
45316
|
H,
|
|
45317
45317
|
u,
|
|
45318
|
-
|
|
45318
|
+
F
|
|
45319
45319
|
]
|
|
45320
45320
|
), q = D(
|
|
45321
45321
|
($) => {
|
|
@@ -45364,9 +45364,9 @@ const rv = ({
|
|
|
45364
45364
|
filter: !1,
|
|
45365
45365
|
floatingFilter: !1,
|
|
45366
45366
|
cellRenderer: ee,
|
|
45367
|
-
headerComponent:
|
|
45367
|
+
headerComponent: F === Qo.CHECKBOX ? oe : void 0
|
|
45368
45368
|
}),
|
|
45369
|
-
[ee, oe,
|
|
45369
|
+
[ee, oe, F]
|
|
45370
45370
|
), ye = G(() => {
|
|
45371
45371
|
const $ = (e ?? []).map(q);
|
|
45372
45372
|
return r ? [we, ...$] : $;
|
|
@@ -45527,24 +45527,24 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
45527
45527
|
desktopDropdownClassName: a,
|
|
45528
45528
|
desktopTabClassName: l
|
|
45529
45529
|
}) => {
|
|
45530
|
-
const [c, d] = I(!1), [u, h] = I(!1), [g, p] = I(!1), f = Pk(), v = f === Ks.Mobile || o === Ca.Tablet && f === Ks.Tablet, C = i === cd.Horizontal, w = L(null), b = L(null), S = L(null), y = e.find((
|
|
45530
|
+
const [c, d] = I(!1), [u, h] = I(!1), [g, p] = I(!1), f = Pk(), v = f === Ks.Mobile || o === Ca.Tablet && f === Ks.Tablet, C = i === cd.Horizontal, w = L(null), b = L(null), S = L(null), y = e.find((F) => F.id === t), x = G(
|
|
45531
45531
|
() => te(
|
|
45532
45532
|
"flex gap-2",
|
|
45533
45533
|
C ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
45534
45534
|
),
|
|
45535
45535
|
[C]
|
|
45536
45536
|
), R = D(() => {
|
|
45537
|
-
const
|
|
45538
|
-
|
|
45537
|
+
const F = b.current;
|
|
45538
|
+
F && p(F.scrollWidth > F.clientWidth);
|
|
45539
45539
|
}, []);
|
|
45540
45540
|
return Se(() => {
|
|
45541
45541
|
R();
|
|
45542
|
-
const
|
|
45543
|
-
return P &&
|
|
45542
|
+
const F = new ResizeObserver(() => R()), P = b.current;
|
|
45543
|
+
return P && F.observe(P), () => F.disconnect();
|
|
45544
45544
|
}, [e, R]), Se(() => {
|
|
45545
|
-
const
|
|
45546
|
-
if (!
|
|
45547
|
-
const T =
|
|
45545
|
+
const F = S.current, P = b.current;
|
|
45546
|
+
if (!F || !P) return;
|
|
45547
|
+
const T = F.offsetLeft, E = T + F.offsetWidth, A = P.scrollLeft, U = A + P.clientWidth;
|
|
45548
45548
|
T < A ? P.scrollTo({
|
|
45549
45549
|
left: T - Gg,
|
|
45550
45550
|
behavior: "smooth"
|
|
@@ -45568,11 +45568,11 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
45568
45568
|
onOpenChange: d,
|
|
45569
45569
|
placement: "bottom-start",
|
|
45570
45570
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
45571
|
-
renderOverlay: () => e.map((
|
|
45571
|
+
renderOverlay: () => e.map((F) => /* @__PURE__ */ m(
|
|
45572
45572
|
br,
|
|
45573
45573
|
{
|
|
45574
|
-
tab:
|
|
45575
|
-
active:
|
|
45574
|
+
tab: F,
|
|
45575
|
+
active: F.id === t,
|
|
45576
45576
|
onClick: (P) => {
|
|
45577
45577
|
s(P), d(!1);
|
|
45578
45578
|
},
|
|
@@ -45581,7 +45581,7 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
45581
45581
|
r
|
|
45582
45582
|
)
|
|
45583
45583
|
},
|
|
45584
|
-
|
|
45584
|
+
F.id
|
|
45585
45585
|
)),
|
|
45586
45586
|
children: /* @__PURE__ */ W("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
|
|
45587
45587
|
/* @__PURE__ */ m(
|
|
@@ -45611,23 +45611,23 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
45611
45611
|
) : (
|
|
45612
45612
|
// Desktop
|
|
45613
45613
|
/* @__PURE__ */ W("div", { ref: w, className: "flex w-full items-start", children: [
|
|
45614
|
-
/* @__PURE__ */ m("div", { ref: b, role: "tablist", className:
|
|
45614
|
+
/* @__PURE__ */ m("div", { ref: b, role: "tablist", className: x, children: e.map((F) => /* @__PURE__ */ m(
|
|
45615
45615
|
"div",
|
|
45616
45616
|
{
|
|
45617
|
-
ref: t ===
|
|
45617
|
+
ref: t === F.id ? S : void 0,
|
|
45618
45618
|
className: "w-full",
|
|
45619
45619
|
children: /* @__PURE__ */ m(
|
|
45620
45620
|
br,
|
|
45621
45621
|
{
|
|
45622
|
-
tab:
|
|
45623
|
-
active: t ===
|
|
45622
|
+
tab: F,
|
|
45623
|
+
active: t === F.id,
|
|
45624
45624
|
onClick: s,
|
|
45625
45625
|
horizontal: C,
|
|
45626
45626
|
className: ce("w-full", l)
|
|
45627
45627
|
}
|
|
45628
45628
|
)
|
|
45629
45629
|
},
|
|
45630
|
-
|
|
45630
|
+
F.id
|
|
45631
45631
|
)) }),
|
|
45632
45632
|
g && /* @__PURE__ */ m("div", { className: "flex items-center ml-2", children: /* @__PURE__ */ m(
|
|
45633
45633
|
kt,
|
|
@@ -45636,17 +45636,17 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
45636
45636
|
open: u,
|
|
45637
45637
|
onOpenChange: h,
|
|
45638
45638
|
placement: "bottom-end",
|
|
45639
|
-
renderOverlay: () => e.map((
|
|
45639
|
+
renderOverlay: () => e.map((F) => /* @__PURE__ */ m(
|
|
45640
45640
|
br,
|
|
45641
45641
|
{
|
|
45642
|
-
tab:
|
|
45643
|
-
active:
|
|
45642
|
+
tab: F,
|
|
45643
|
+
active: F.id === t,
|
|
45644
45644
|
onClick: (P) => {
|
|
45645
45645
|
s(P), h(!1);
|
|
45646
45646
|
},
|
|
45647
45647
|
className: "w-full rounded-none h-8 items-center px-3 py-2"
|
|
45648
45648
|
},
|
|
45649
|
-
|
|
45649
|
+
F.id
|
|
45650
45650
|
)),
|
|
45651
45651
|
children: /* @__PURE__ */ m(
|
|
45652
45652
|
Lt,
|
|
@@ -45980,11 +45980,11 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
45980
45980
|
textAfterInput: b,
|
|
45981
45981
|
onBlur: S,
|
|
45982
45982
|
defaultValue: y,
|
|
45983
|
-
tooltipText:
|
|
45983
|
+
tooltipText: x,
|
|
45984
45984
|
hideTooltip: R = !1,
|
|
45985
|
-
inputRef:
|
|
45985
|
+
inputRef: F
|
|
45986
45986
|
}) => {
|
|
45987
|
-
const P = L(null), T = vd([
|
|
45987
|
+
const P = L(null), T = vd([F, P]);
|
|
45988
45988
|
Se(() => {
|
|
45989
45989
|
const B = P.current;
|
|
45990
45990
|
if (!B) return;
|
|
@@ -46046,7 +46046,7 @@ const Bg = () => typeof window < "u" && window.innerWidth < 640, dc = () => {
|
|
|
46046
46046
|
/* @__PURE__ */ m(
|
|
46047
46047
|
es,
|
|
46048
46048
|
{
|
|
46049
|
-
tooltip: R ? void 0 :
|
|
46049
|
+
tooltip: R ? void 0 : x || i,
|
|
46050
46050
|
triggerClassName: te(l, "flex-1"),
|
|
46051
46051
|
children: /* @__PURE__ */ m(
|
|
46052
46052
|
"input",
|
|
@@ -46542,11 +46542,11 @@ const Yk = "flex justify-end gap-2 px-6 py-4", Zk = "text-secondary dial-small-1
|
|
|
46542
46542
|
id: w,
|
|
46543
46543
|
size: b = Kt.Md
|
|
46544
46544
|
}) => {
|
|
46545
|
-
const [S, y] = I(!1),
|
|
46545
|
+
const [S, y] = I(!1), x = D(() => {
|
|
46546
46546
|
s || y(!0);
|
|
46547
46547
|
}, [s]), R = D(() => {
|
|
46548
46548
|
y(!1), c?.();
|
|
46549
|
-
}, [c]),
|
|
46549
|
+
}, [c]), F = D(() => {
|
|
46550
46550
|
h(), R();
|
|
46551
46551
|
}, [h, R]);
|
|
46552
46552
|
return /* @__PURE__ */ W("div", { className: "flex flex-col", children: [
|
|
@@ -46560,7 +46560,7 @@ const Yk = "flex justify-end gap-2 px-6 py-4", Zk = "text-secondary dial-small-1
|
|
|
46560
46560
|
valueClassName: r,
|
|
46561
46561
|
inputClassName: te(a, "py-2", "px-3"),
|
|
46562
46562
|
emptyValueText: l,
|
|
46563
|
-
onOpen:
|
|
46563
|
+
onOpen: x,
|
|
46564
46564
|
children: /* @__PURE__ */ m(
|
|
46565
46565
|
Po,
|
|
46566
46566
|
{
|
|
@@ -46581,7 +46581,7 @@ const Yk = "flex justify-end gap-2 px-6 py-4", Zk = "text-secondary dial-small-1
|
|
|
46581
46581
|
fs,
|
|
46582
46582
|
{
|
|
46583
46583
|
label: p,
|
|
46584
|
-
onClick:
|
|
46584
|
+
onClick: F,
|
|
46585
46585
|
disabled: !f
|
|
46586
46586
|
}
|
|
46587
46587
|
)
|
|
@@ -46867,32 +46867,35 @@ const aL = {
|
|
|
46867
46867
|
optional: s,
|
|
46868
46868
|
elementId: i,
|
|
46869
46869
|
placeholder: o,
|
|
46870
|
-
|
|
46871
|
-
|
|
46872
|
-
|
|
46873
|
-
|
|
46870
|
+
captionDescription: n,
|
|
46871
|
+
errorText: r,
|
|
46872
|
+
invalid: a,
|
|
46873
|
+
disabled: l,
|
|
46874
|
+
onChange: c
|
|
46874
46875
|
}) => {
|
|
46875
|
-
const
|
|
46876
|
-
const
|
|
46877
|
-
if (
|
|
46878
|
-
const
|
|
46879
|
-
|
|
46880
|
-
}
|
|
46881
|
-
},
|
|
46882
|
-
(
|
|
46883
|
-
},
|
|
46884
|
-
|
|
46885
|
-
|
|
46886
|
-
|
|
46876
|
+
const d = L(null), [u, h] = I(e), [g, p] = I(""), [f, v] = I(!1), C = (x) => {
|
|
46877
|
+
const R = x.trim().replace(/,$/, "");
|
|
46878
|
+
if (R && !u.includes(R)) {
|
|
46879
|
+
const F = [R, ...u];
|
|
46880
|
+
h(F), c?.(F);
|
|
46881
|
+
}
|
|
46882
|
+
}, w = (x) => {
|
|
46883
|
+
(x.key === "," || x.key === "Enter") && (x.preventDefault(), C(g), p(""));
|
|
46884
|
+
}, b = () => {
|
|
46885
|
+
g.trim() && (C(g), p(""));
|
|
46886
|
+
}, S = (x) => {
|
|
46887
|
+
const R = u.filter((F, P) => P !== x);
|
|
46888
|
+
h(R), c?.(R);
|
|
46889
|
+
}, y = () => r ? /* @__PURE__ */ m(wi, { errorText: r }) : n ? /* @__PURE__ */ m("div", { className: "dial-tiny text-secondary mt-1", children: n }) : null;
|
|
46887
46890
|
return Se(() => {
|
|
46888
|
-
const
|
|
46889
|
-
if (
|
|
46890
|
-
const
|
|
46891
|
-
|
|
46891
|
+
const x = new ResizeObserver(() => {
|
|
46892
|
+
if (d.current) {
|
|
46893
|
+
const R = d.current.scrollHeight > d.current.clientHeight + 10;
|
|
46894
|
+
v(R);
|
|
46892
46895
|
}
|
|
46893
46896
|
});
|
|
46894
|
-
return
|
|
46895
|
-
}, [
|
|
46897
|
+
return d.current && x.observe(d.current), () => x.disconnect();
|
|
46898
|
+
}, [u]), /* @__PURE__ */ W("div", { className: te("flex flex-col w-full"), children: [
|
|
46896
46899
|
/* @__PURE__ */ m(
|
|
46897
46900
|
yo,
|
|
46898
46901
|
{
|
|
@@ -46906,38 +46909,39 @@ const aL = {
|
|
|
46906
46909
|
{
|
|
46907
46910
|
className: te(
|
|
46908
46911
|
"dial-input min-h-[38px] p-[6px]",
|
|
46909
|
-
|
|
46910
|
-
|
|
46912
|
+
a && "dial-input-error",
|
|
46913
|
+
l && "dial-input-disable"
|
|
46911
46914
|
),
|
|
46912
46915
|
children: /* @__PURE__ */ W(
|
|
46913
46916
|
"div",
|
|
46914
46917
|
{
|
|
46915
|
-
ref:
|
|
46918
|
+
ref: d,
|
|
46916
46919
|
className: te(
|
|
46917
46920
|
"flex flex-wrap gap-2 items-center",
|
|
46918
|
-
|
|
46921
|
+
f ? "flex-col-reverse" : "flex-row"
|
|
46919
46922
|
),
|
|
46920
46923
|
children: [
|
|
46921
|
-
|
|
46924
|
+
u.map((x, R) => /* @__PURE__ */ m(
|
|
46922
46925
|
Ad,
|
|
46923
46926
|
{
|
|
46924
|
-
tag:
|
|
46925
|
-
remove:
|
|
46927
|
+
tag: x,
|
|
46928
|
+
remove: l ? void 0 : () => S(R)
|
|
46926
46929
|
},
|
|
46927
|
-
|
|
46930
|
+
x + R
|
|
46928
46931
|
)),
|
|
46929
46932
|
/* @__PURE__ */ m(
|
|
46930
46933
|
"input",
|
|
46931
46934
|
{
|
|
46932
46935
|
type: "text",
|
|
46933
|
-
value:
|
|
46934
|
-
onChange: (
|
|
46935
|
-
onKeyDown:
|
|
46936
|
+
value: g,
|
|
46937
|
+
onChange: (x) => p(x.target.value),
|
|
46938
|
+
onKeyDown: w,
|
|
46939
|
+
onBlur: b,
|
|
46936
46940
|
className: te(
|
|
46937
46941
|
"dial-input-no-border outline-none border-none w-full min-w-[100px] flex-1 p-1"
|
|
46938
46942
|
),
|
|
46939
46943
|
placeholder: o,
|
|
46940
|
-
disabled:
|
|
46944
|
+
disabled: l
|
|
46941
46945
|
}
|
|
46942
46946
|
)
|
|
46943
46947
|
]
|
|
@@ -46945,7 +46949,7 @@ const aL = {
|
|
|
46945
46949
|
)
|
|
46946
46950
|
}
|
|
46947
46951
|
),
|
|
46948
|
-
|
|
46952
|
+
y()
|
|
46949
46953
|
] });
|
|
46950
46954
|
}, lL = "dial-input flex w-full items-center justify-between gap-2 dial-small cursor-pointer", cL = "w-full rounded flex flex-col", hc = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none", dL = "bg-accent-primary-alpha", uL = "bg-accent-primary-alpha border-l border-accent-primary border-1", Wg = "opacity-75", hL = 352, gL = /* @__PURE__ */ m(Sa, { size: 16 }), fv = ({
|
|
46951
46955
|
options: e,
|
|
@@ -46988,9 +46992,9 @@ const pL = ({
|
|
|
46988
46992
|
className: b,
|
|
46989
46993
|
listClassName: S,
|
|
46990
46994
|
closable: y = !1,
|
|
46991
|
-
header:
|
|
46995
|
+
header: x,
|
|
46992
46996
|
footer: R,
|
|
46993
|
-
onClose:
|
|
46997
|
+
onClose: F,
|
|
46994
46998
|
onChange: P,
|
|
46995
46999
|
inlineSearch: T = !1,
|
|
46996
47000
|
dismissRef: E,
|
|
@@ -47133,7 +47137,7 @@ const pL = ({
|
|
|
47133
47137
|
onOpenChange: Fe,
|
|
47134
47138
|
disabled: w,
|
|
47135
47139
|
closable: y,
|
|
47136
|
-
onClose:
|
|
47140
|
+
onClose: F,
|
|
47137
47141
|
placement: "bottom-start",
|
|
47138
47142
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
47139
47143
|
maxDropdownHeight: d ? null : hL,
|
|
@@ -47146,7 +47150,7 @@ const pL = ({
|
|
|
47146
47150
|
"aria-multiselectable": t || void 0,
|
|
47147
47151
|
className: cL,
|
|
47148
47152
|
children: [
|
|
47149
|
-
|
|
47153
|
+
x && /* @__PURE__ */ m(Ve, { children: typeof x == "function" ? x() : x }),
|
|
47150
47154
|
(d || y) && e.length > 8 && /* @__PURE__ */ W("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
|
|
47151
47155
|
d && /* @__PURE__ */ m(
|
|
47152
47156
|
pv,
|
|
@@ -47164,7 +47168,7 @@ const pL = ({
|
|
|
47164
47168
|
className: "shrink-0",
|
|
47165
47169
|
iconBefore: /* @__PURE__ */ m(wo, { size: 16 }),
|
|
47166
47170
|
onClick: (z) => {
|
|
47167
|
-
|
|
47171
|
+
F?.(z), oe(!1);
|
|
47168
47172
|
}
|
|
47169
47173
|
}
|
|
47170
47174
|
)
|
|
@@ -47630,7 +47634,7 @@ function xL(e, t, s, i, o) {
|
|
|
47630
47634
|
x: s.x - a.x,
|
|
47631
47635
|
y: s.y - a.y
|
|
47632
47636
|
}, { offsetWidth: c, offsetHeight: d } = e, { anchorX: u, anchorY: h } = i, { dragPreviewWidth: g, dragPreviewHeight: p } = RL(n, t, c, d), f = () => {
|
|
47633
|
-
let
|
|
47637
|
+
let x = new Ug([
|
|
47634
47638
|
0,
|
|
47635
47639
|
0.5,
|
|
47636
47640
|
1
|
|
@@ -47642,7 +47646,7 @@ function xL(e, t, s, i, o) {
|
|
|
47642
47646
|
// Dock to the bottom
|
|
47643
47647
|
l.y + p - d
|
|
47644
47648
|
]).interpolate(h);
|
|
47645
|
-
return bv() && n && (
|
|
47649
|
+
return bv() && n && (x += (window.devicePixelRatio - 1) * p), x;
|
|
47646
47650
|
}, v = () => new Ug([
|
|
47647
47651
|
0,
|
|
47648
47652
|
0.5,
|
|
@@ -47977,7 +47981,7 @@ const PL = function(t, s, i) {
|
|
|
47977
47981
|
Se(() => {
|
|
47978
47982
|
b();
|
|
47979
47983
|
}, [o]);
|
|
47980
|
-
const [{ isOver: S, canDrop: y },
|
|
47984
|
+
const [{ isOver: S, canDrop: y }, x] = Vp(
|
|
47981
47985
|
() => ({
|
|
47982
47986
|
accept: [Ou],
|
|
47983
47987
|
drop(E) {
|
|
@@ -47992,7 +47996,7 @@ const PL = function(t, s, i) {
|
|
|
47992
47996
|
[v]
|
|
47993
47997
|
), R = (E) => {
|
|
47994
47998
|
(E.key === "Enter" || E.key === "Space") && (E.preventDefault(), u.current?.click());
|
|
47995
|
-
},
|
|
47999
|
+
}, F = (E) => {
|
|
47996
48000
|
E?.preventDefault();
|
|
47997
48001
|
const A = Array.from(E.dataTransfer?.items ?? []);
|
|
47998
48002
|
f(!!c?.(A)), g(A);
|
|
@@ -48004,13 +48008,13 @@ const PL = function(t, s, i) {
|
|
|
48004
48008
|
y && (S ? "border-accent-primary" : "border-hover"),
|
|
48005
48009
|
w && "border-error"
|
|
48006
48010
|
);
|
|
48007
|
-
return
|
|
48011
|
+
return x(d), /* @__PURE__ */ W(Ve, { children: [
|
|
48008
48012
|
/* @__PURE__ */ W(
|
|
48009
48013
|
"div",
|
|
48010
48014
|
{
|
|
48011
48015
|
className: T,
|
|
48012
48016
|
ref: d,
|
|
48013
|
-
onDragOver:
|
|
48017
|
+
onDragOver: F,
|
|
48014
48018
|
onDragLeave: P,
|
|
48015
48019
|
children: [
|
|
48016
48020
|
/* @__PURE__ */ W(
|
|
@@ -48562,9 +48566,9 @@ const wa = ({
|
|
|
48562
48566
|
const { expandedPaths: S, togglePath: y } = Rv({
|
|
48563
48567
|
expandedPaths: s ?? /* @__PURE__ */ new Set(),
|
|
48564
48568
|
onExpandedPathsChange: b
|
|
48565
|
-
}),
|
|
48566
|
-
p?.(
|
|
48567
|
-
}, R = (
|
|
48569
|
+
}), x = (F) => {
|
|
48570
|
+
p?.(F), y(F.path);
|
|
48571
|
+
}, R = (F, P) => F.map((T) => {
|
|
48568
48572
|
const { path: E, nodeType: A, name: U, items: B } = T, H = A === Oe.FOLDER;
|
|
48569
48573
|
if (!d && gd(T)) return null;
|
|
48570
48574
|
if (!H && !t) return;
|
|
@@ -48591,14 +48595,14 @@ const wa = ({
|
|
|
48591
48595
|
"div",
|
|
48592
48596
|
{
|
|
48593
48597
|
className: "absolute size-full left-0 top-0 z-0",
|
|
48594
|
-
onClick: () =>
|
|
48598
|
+
onClick: () => x(T)
|
|
48595
48599
|
}
|
|
48596
48600
|
),
|
|
48597
48601
|
/* @__PURE__ */ m(
|
|
48598
48602
|
"div",
|
|
48599
48603
|
{
|
|
48600
48604
|
className: "relative flex flex-row truncate items-center w-fit h-6",
|
|
48601
|
-
onClick: () => !j &&
|
|
48605
|
+
onClick: () => !j && x(T),
|
|
48602
48606
|
children: /* @__PURE__ */ W(Ve, { children: [
|
|
48603
48607
|
H && /* @__PURE__ */ m(
|
|
48604
48608
|
Bw,
|
|
@@ -48750,13 +48754,13 @@ const wa = ({
|
|
|
48750
48754
|
r,
|
|
48751
48755
|
o,
|
|
48752
48756
|
s
|
|
48753
|
-
]), [y,
|
|
48757
|
+
]), [y, x] = I(!1), R = D(() => {
|
|
48754
48758
|
if (b && !y) {
|
|
48755
|
-
|
|
48759
|
+
x(!0);
|
|
48756
48760
|
const T = document.getElementById(h);
|
|
48757
48761
|
T && T.focus();
|
|
48758
48762
|
}
|
|
48759
|
-
}, [h, y, b]),
|
|
48763
|
+
}, [h, y, b]), F = D(() => {
|
|
48760
48764
|
(!u || String(u).trim() === "") && v?.("");
|
|
48761
48765
|
}, [u, v]), P = D(() => b && y ? /* @__PURE__ */ m(
|
|
48762
48766
|
ei,
|
|
@@ -48764,7 +48768,7 @@ const wa = ({
|
|
|
48764
48768
|
className: "!p-[9px]",
|
|
48765
48769
|
iconBefore: /* @__PURE__ */ m(Vw, { ...re }),
|
|
48766
48770
|
onClick: () => {
|
|
48767
|
-
|
|
48771
|
+
x(!1), v?.("");
|
|
48768
48772
|
}
|
|
48769
48773
|
}
|
|
48770
48774
|
) : /* @__PURE__ */ m("div", { className: o7, children: /* @__PURE__ */ m(
|
|
@@ -48815,7 +48819,7 @@ const wa = ({
|
|
|
48815
48819
|
onChange: v,
|
|
48816
48820
|
disabled: g,
|
|
48817
48821
|
readonly: p,
|
|
48818
|
-
onBlur:
|
|
48822
|
+
onBlur: F,
|
|
48819
48823
|
invalid: f,
|
|
48820
48824
|
className: C,
|
|
48821
48825
|
containerClassName: ce(w, {
|
|
@@ -48966,13 +48970,13 @@ function d7({
|
|
|
48966
48970
|
let f = null;
|
|
48967
48971
|
const v = () => {
|
|
48968
48972
|
f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
48969
|
-
const w = r.current, b = l.current?.offsetWidth ?? 0, S = c.current?.offsetWidth ?? 0, y = b + S, R = w.getBoundingClientRect().width - y - s - i * 2 - o * 2,
|
|
48973
|
+
const w = r.current, b = l.current?.offsetWidth ?? 0, S = c.current?.offsetWidth ?? 0, y = b + S, R = w.getBoundingClientRect().width - y - s - i * 2 - o * 2, F = d.current;
|
|
48970
48974
|
let P = 0, T = 0;
|
|
48971
48975
|
if (t === Zi.Reverse)
|
|
48972
|
-
for (let E =
|
|
48976
|
+
for (let E = F.length - 1; E >= 0 && (P += F[E] + i, !(P > R)); E--)
|
|
48973
48977
|
T++;
|
|
48974
48978
|
else
|
|
48975
|
-
for (const E of
|
|
48979
|
+
for (const E of F) {
|
|
48976
48980
|
if (P += E + i, P > R) break;
|
|
48977
48981
|
T++;
|
|
48978
48982
|
}
|
|
@@ -49133,23 +49137,23 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49133
49137
|
l.current = !1, n(!1), i([]), a(null);
|
|
49134
49138
|
}, []), u = D(
|
|
49135
49139
|
(w, b) => {
|
|
49136
|
-
const S = e(w), y = new Set(S.map(Cc)),
|
|
49140
|
+
const S = e(w), y = new Set(S.map(Cc)), x = b.filter((R) => y.has(R.name));
|
|
49137
49141
|
return {
|
|
49138
|
-
hasConflicts:
|
|
49139
|
-
conflicts:
|
|
49142
|
+
hasConflicts: x.length > 0,
|
|
49143
|
+
conflicts: x
|
|
49140
49144
|
};
|
|
49141
49145
|
},
|
|
49142
49146
|
[e]
|
|
49143
49147
|
), h = D(
|
|
49144
49148
|
(w, b, S, y) => {
|
|
49145
|
-
const
|
|
49146
|
-
return b.map((
|
|
49147
|
-
const P =
|
|
49149
|
+
const x = e(w), R = new Set(x.map(Cc));
|
|
49150
|
+
return b.map((F) => {
|
|
49151
|
+
const P = F.name, T = R.has(P), E = S && T ? P : Zg(P, R, F.nodeType);
|
|
49148
49152
|
return (!S || !T) && R.add(E), {
|
|
49149
|
-
sourceUrl:
|
|
49153
|
+
sourceUrl: F.path,
|
|
49150
49154
|
destinationUrl: `${w}/${E}`,
|
|
49151
49155
|
overwrite: S && T,
|
|
49152
|
-
nodeType:
|
|
49156
|
+
nodeType: F.nodeType ?? Oe.ITEM,
|
|
49153
49157
|
...y ?? {}
|
|
49154
49158
|
};
|
|
49155
49159
|
});
|
|
@@ -49157,7 +49161,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49157
49161
|
[e]
|
|
49158
49162
|
), g = D(
|
|
49159
49163
|
(w, b, S, y) => {
|
|
49160
|
-
const
|
|
49164
|
+
const x = e(w), R = new Set(x.map(Cc));
|
|
49161
49165
|
return b.filter((P) => S.get(P.path) !== ft.Cancel).map((P) => {
|
|
49162
49166
|
const T = S.get(P.path), E = R.has(P.name), A = T === ft.Replace && E, U = A ? P.name : Zg(P.name, R, P.nodeType);
|
|
49163
49167
|
return A || R.add(U), {
|
|
@@ -49211,12 +49215,12 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49211
49215
|
]), C = D(
|
|
49212
49216
|
(w) => {
|
|
49213
49217
|
if (!r) return;
|
|
49214
|
-
const { files: b, destinationFolder: S, metadata: y } = r,
|
|
49215
|
-
w.map((
|
|
49218
|
+
const { files: b, destinationFolder: S, metadata: y } = r, x = new Map(
|
|
49219
|
+
w.map((F) => [F.file.path, F.action])
|
|
49216
49220
|
), R = g(
|
|
49217
49221
|
S,
|
|
49218
49222
|
b,
|
|
49219
|
-
|
|
49223
|
+
x,
|
|
49220
49224
|
y
|
|
49221
49225
|
);
|
|
49222
49226
|
t?.(R, S), d();
|
|
@@ -49255,9 +49259,9 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49255
49259
|
const [l, c] = I(!1), [d, u] = I([]), [h, g] = I([]), [p, f] = I(it.Copy), [v, C] = I(), [w, b] = I(null), {
|
|
49256
49260
|
conflictingFiles: S,
|
|
49257
49261
|
conflictResolutionOpen: y,
|
|
49258
|
-
hasActiveConflictRef:
|
|
49262
|
+
hasActiveConflictRef: x,
|
|
49259
49263
|
startConflictResolution: R,
|
|
49260
|
-
resolveConflictsWithStrategy:
|
|
49264
|
+
resolveConflictsWithStrategy: F,
|
|
49261
49265
|
closeConflictResolution: P,
|
|
49262
49266
|
openConflictResolution: T,
|
|
49263
49267
|
handleReplaceAll: E,
|
|
@@ -49280,7 +49284,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49280
49284
|
type: it.Copy
|
|
49281
49285
|
});
|
|
49282
49286
|
if (b({ type: it.Copy }), !ge.hasConflicts) {
|
|
49283
|
-
const xe =
|
|
49287
|
+
const xe = F(
|
|
49284
49288
|
k,
|
|
49285
49289
|
d,
|
|
49286
49290
|
!1
|
|
@@ -49291,7 +49295,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49291
49295
|
[
|
|
49292
49296
|
d,
|
|
49293
49297
|
R,
|
|
49294
|
-
|
|
49298
|
+
F,
|
|
49295
49299
|
t,
|
|
49296
49300
|
i,
|
|
49297
49301
|
B
|
|
@@ -49303,7 +49307,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49303
49307
|
type: it.Move,
|
|
49304
49308
|
sourceFolderPath: xe
|
|
49305
49309
|
}).hasConflicts) {
|
|
49306
|
-
const V =
|
|
49310
|
+
const V = F(
|
|
49307
49311
|
k,
|
|
49308
49312
|
h,
|
|
49309
49313
|
!0
|
|
@@ -49314,7 +49318,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49314
49318
|
[
|
|
49315
49319
|
h,
|
|
49316
49320
|
R,
|
|
49317
|
-
|
|
49321
|
+
F,
|
|
49318
49322
|
s,
|
|
49319
49323
|
o,
|
|
49320
49324
|
B,
|
|
@@ -49331,22 +49335,22 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49331
49335
|
[U, B]
|
|
49332
49336
|
), j = D(
|
|
49333
49337
|
(k) => {
|
|
49334
|
-
const ge = k.at(0)?.parentPath ?? "/", xe =
|
|
49338
|
+
const ge = k.at(0)?.parentPath ?? "/", xe = F(
|
|
49335
49339
|
ge,
|
|
49336
49340
|
k,
|
|
49337
49341
|
!1
|
|
49338
49342
|
);
|
|
49339
49343
|
t?.(xe, ge), n?.();
|
|
49340
49344
|
},
|
|
49341
|
-
[t, n,
|
|
49345
|
+
[t, n, F]
|
|
49342
49346
|
), oe = D(
|
|
49343
49347
|
(k) => {
|
|
49344
49348
|
f(k), c(!0);
|
|
49345
49349
|
},
|
|
49346
49350
|
[]
|
|
49347
49351
|
), J = D(() => {
|
|
49348
|
-
c(!1),
|
|
49349
|
-
}, [B,
|
|
49352
|
+
c(!1), x.current || B();
|
|
49353
|
+
}, [B, x]), [ee, q] = I(), we = D(
|
|
49350
49354
|
(k) => {
|
|
49351
49355
|
u(k);
|
|
49352
49356
|
const ge = k[0]?.parentPath ?? k[0]?.folderId;
|
|
@@ -49463,7 +49467,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49463
49467
|
uploadEnabled: r = !0,
|
|
49464
49468
|
currentFolder: a
|
|
49465
49469
|
} = {}) => {
|
|
49466
|
-
const [l, c] = I(!1), [d, u] = I(!1), [h, g] = I(), p = L(null), f = L(""), v = L([]), C = G(() => !!a?.permissions?.includes(To.WRITE), [a]), [w, b] = I(/* @__PURE__ */ new Map()), [S, y] = I(null),
|
|
49470
|
+
const [l, c] = I(!1), [d, u] = I(!1), [h, g] = I(), p = L(null), f = L(""), v = L([]), C = G(() => !!a?.permissions?.includes(To.WRITE), [a]), [w, b] = I(/* @__PURE__ */ new Map()), [S, y] = I(null), x = D(
|
|
49467
49471
|
(V) => !i || i.includes("*/*") ? V : V.filter(
|
|
49468
49472
|
({ fileContent: Y, name: le }) => yv(i, Y.type, le)
|
|
49469
49473
|
),
|
|
@@ -49471,7 +49475,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49471
49475
|
), R = D(() => {
|
|
49472
49476
|
b(/* @__PURE__ */ new Map()), y(null);
|
|
49473
49477
|
}, []), {
|
|
49474
|
-
conflictingFiles:
|
|
49478
|
+
conflictingFiles: F,
|
|
49475
49479
|
conflictResolutionOpen: P,
|
|
49476
49480
|
hasActiveConflictRef: T,
|
|
49477
49481
|
startConflictResolution: E,
|
|
@@ -49621,7 +49625,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49621
49625
|
const De = me.map((Fe) => ({
|
|
49622
49626
|
fileContent: Fe,
|
|
49623
49627
|
name: Fe.name
|
|
49624
|
-
})), ae =
|
|
49628
|
+
})), ae = x(De);
|
|
49625
49629
|
if (ae.length === 0) {
|
|
49626
49630
|
g(
|
|
49627
49631
|
o.unsupportedFiles || "Selected files are not supported"
|
|
@@ -49632,7 +49636,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49632
49636
|
},
|
|
49633
49637
|
[
|
|
49634
49638
|
r,
|
|
49635
|
-
|
|
49639
|
+
x,
|
|
49636
49640
|
de,
|
|
49637
49641
|
o,
|
|
49638
49642
|
C
|
|
@@ -49650,7 +49654,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49650
49654
|
const me = Array.from(V.files).map((ae) => ({
|
|
49651
49655
|
fileContent: ae,
|
|
49652
49656
|
name: ae.name
|
|
49653
|
-
})), De =
|
|
49657
|
+
})), De = x(me);
|
|
49654
49658
|
if (De.length === 0) {
|
|
49655
49659
|
g(
|
|
49656
49660
|
o.unsupportedFiles || "Selected files are not supported"
|
|
@@ -49669,7 +49673,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49669
49673
|
}, [
|
|
49670
49674
|
r,
|
|
49671
49675
|
i,
|
|
49672
|
-
|
|
49676
|
+
x,
|
|
49673
49677
|
de,
|
|
49674
49678
|
o,
|
|
49675
49679
|
C
|
|
@@ -49724,7 +49728,7 @@ const u7 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49724
49728
|
openFileDialog: ge,
|
|
49725
49729
|
openArchiveDialog: xe,
|
|
49726
49730
|
fileInputRef: p,
|
|
49727
|
-
uploadConflictingFiles:
|
|
49731
|
+
uploadConflictingFiles: F,
|
|
49728
49732
|
uploadConflictResolutionOpen: P,
|
|
49729
49733
|
hasActiveUploadConflictRef: T,
|
|
49730
49734
|
openUploadConflictResolution: U,
|
|
@@ -50025,8 +50029,8 @@ function I7({
|
|
|
50025
50029
|
const v = String(
|
|
50026
50030
|
n ?? c ?? ""
|
|
50027
50031
|
).trim(), C = h.current && (o || i.length > 0 || v !== ""), w = D(
|
|
50028
|
-
(
|
|
50029
|
-
const R =
|
|
50032
|
+
(x) => {
|
|
50033
|
+
const R = x.trim();
|
|
50030
50034
|
if (!R) {
|
|
50031
50035
|
h.current = !1, u.current = !1;
|
|
50032
50036
|
return;
|
|
@@ -50037,8 +50041,8 @@ function I7({
|
|
|
50037
50041
|
), b = D(() => {
|
|
50038
50042
|
u.current = !1, h.current = !1, g.current = [], d(""), r?.(""), t?.();
|
|
50039
50043
|
}, [t, r]), S = D(
|
|
50040
|
-
(
|
|
50041
|
-
const R = String(
|
|
50044
|
+
(x) => {
|
|
50045
|
+
const R = String(x ?? "");
|
|
50042
50046
|
d(R), r?.(R), R.trim() ? w(R) : b();
|
|
50043
50047
|
},
|
|
50044
50048
|
[r, w, b]
|
|
@@ -50060,8 +50064,8 @@ function I7({
|
|
|
50060
50064
|
}
|
|
50061
50065
|
if (!v || !a.length)
|
|
50062
50066
|
return [];
|
|
50063
|
-
const
|
|
50064
|
-
return Xg(
|
|
50067
|
+
const x = M7(a);
|
|
50068
|
+
return Xg(x, v);
|
|
50065
50069
|
}, [e, i, v, a]);
|
|
50066
50070
|
return {
|
|
50067
50071
|
isSearchMode: C,
|
|
@@ -50121,9 +50125,9 @@ const k7 = ({
|
|
|
50121
50125
|
destinationFolderPopupOptions: b,
|
|
50122
50126
|
conflictResolutionPopupOptions: S,
|
|
50123
50127
|
onPathChange: y,
|
|
50124
|
-
onTableFileClick:
|
|
50128
|
+
onTableFileClick: x,
|
|
50125
50129
|
onGridApiChange: R,
|
|
50126
|
-
onCopyFiles:
|
|
50130
|
+
onCopyFiles: F,
|
|
50127
50131
|
onMoveToFiles: P,
|
|
50128
50132
|
onDeleteFiles: T,
|
|
50129
50133
|
onDownloadFiles: E,
|
|
@@ -50239,7 +50243,7 @@ const k7 = ({
|
|
|
50239
50243
|
sourceFolder: $n
|
|
50240
50244
|
} = p7({
|
|
50241
50245
|
getDestinationFiles: (Be) => qg(s, Be)?.items ?? [],
|
|
50242
|
-
onCopyFiles:
|
|
50246
|
+
onCopyFiles: F,
|
|
50243
50247
|
onMoveToFiles: P,
|
|
50244
50248
|
onCopySuccess: Re,
|
|
50245
50249
|
onMoveSuccess: Re,
|
|
@@ -50409,9 +50413,9 @@ const k7 = ({
|
|
|
50409
50413
|
[ht]
|
|
50410
50414
|
), kv = D(
|
|
50411
50415
|
(Be) => {
|
|
50412
|
-
Be.nodeType === Oe.FOLDER ? ht(Be.path) :
|
|
50416
|
+
Be.nodeType === Oe.FOLDER ? ht(Be.path) : x?.(Be);
|
|
50413
50417
|
},
|
|
50414
|
-
[ht,
|
|
50418
|
+
[ht, x]
|
|
50415
50419
|
), { expandedPaths: Vu, setExpandedPaths: Lv, collapseAll: Ov } = Rv({
|
|
50416
50420
|
expandedPaths: h?.expandedPaths,
|
|
50417
50421
|
onExpandedPathsChange: h?.onExpandedPathsChange
|
|
@@ -50500,7 +50504,7 @@ const k7 = ({
|
|
|
50500
50504
|
handleBreadcrumbItemClick: Av,
|
|
50501
50505
|
handleSearchChange: Xa,
|
|
50502
50506
|
handleTableRowClick: kv,
|
|
50503
|
-
onTableFileClick:
|
|
50507
|
+
onTableFileClick: x,
|
|
50504
50508
|
onGridApiChange: R,
|
|
50505
50509
|
isDragging: Lo,
|
|
50506
50510
|
uploadError: ll,
|
|
@@ -50632,9 +50636,9 @@ const k7 = ({
|
|
|
50632
50636
|
alertProps: v,
|
|
50633
50637
|
...C
|
|
50634
50638
|
}) => {
|
|
50635
|
-
const [w, b] = I(!1), S = L(null), y = D((
|
|
50636
|
-
b(
|
|
50637
|
-
}, []),
|
|
50639
|
+
const [w, b] = I(!1), S = L(null), y = D((F) => {
|
|
50640
|
+
b(F);
|
|
50641
|
+
}, []), x = r === it.Copy ? "Copy to" : "Move to", R = G(() => !p || !h ? !1 : h === p, [p, h]);
|
|
50638
50642
|
return /* @__PURE__ */ m(
|
|
50639
50643
|
Po,
|
|
50640
50644
|
{
|
|
@@ -50687,7 +50691,7 @@ const k7 = ({
|
|
|
50687
50691
|
)
|
|
50688
50692
|
] })
|
|
50689
50693
|
] }),
|
|
50690
|
-
header: u ??
|
|
50694
|
+
header: u ?? x,
|
|
50691
50695
|
children: /* @__PURE__ */ W("div", { className: "bg-layer-2 h-full flex flex-col", children: [
|
|
50692
50696
|
v && /* @__PURE__ */ m("div", { className: "px-4 pt-4", children: /* @__PURE__ */ m(L1, { ...v }) }),
|
|
50693
50697
|
/* @__PURE__ */ m("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ m(
|
|
@@ -50967,7 +50971,7 @@ const k7 = ({
|
|
|
50967
50971
|
nameColumnLabel: g = "Name",
|
|
50968
50972
|
actionColumnLabel: p = "Action"
|
|
50969
50973
|
}) => {
|
|
50970
|
-
const f = n.length === 1, v = f ? n[0]?.name : "", C = c?.[ft.Replace] ?? "Replace", w = c?.[ft.Duplicate] ?? "Duplicate", b = c?.[ft.Cancel] ?? "Cancel", S = d?.[Gt.ReplaceAll] ?? "Replace all", y = d?.[Gt.DuplicateAll] ?? "Duplicate all",
|
|
50974
|
+
const f = n.length === 1, v = f ? n[0]?.name : "", C = c?.[ft.Replace] ?? "Replace", w = c?.[ft.Duplicate] ?? "Duplicate", b = c?.[ft.Cancel] ?? "Cancel", S = d?.[Gt.ReplaceAll] ?? "Replace all", y = d?.[Gt.DuplicateAll] ?? "Duplicate all", x = d?.[Gt.DecideForEach] ?? "Decide for each", [R, F] = I(
|
|
50971
50975
|
ft.Replace
|
|
50972
50976
|
), [P, T] = I(
|
|
50973
50977
|
Gt.ReplaceAll
|
|
@@ -51122,7 +51126,7 @@ const k7 = ({
|
|
|
51122
51126
|
},
|
|
51123
51127
|
{
|
|
51124
51128
|
id: Gt.DecideForEach,
|
|
51125
|
-
name:
|
|
51129
|
+
name: x,
|
|
51126
51130
|
content: P === Gt.DecideForEach ? /* @__PURE__ */ m("div", { className: "mt-4", children: /* @__PURE__ */ m(
|
|
51127
51131
|
rv,
|
|
51128
51132
|
{
|
|
@@ -51142,7 +51146,7 @@ const k7 = ({
|
|
|
51142
51146
|
[
|
|
51143
51147
|
S,
|
|
51144
51148
|
y,
|
|
51145
|
-
|
|
51149
|
+
x,
|
|
51146
51150
|
P,
|
|
51147
51151
|
oe,
|
|
51148
51152
|
j
|
|
@@ -51195,7 +51199,7 @@ const k7 = ({
|
|
|
51195
51199
|
radioButtons: de,
|
|
51196
51200
|
activeRadioButton: R,
|
|
51197
51201
|
orientation: uo.Column,
|
|
51198
|
-
onChange: (q) =>
|
|
51202
|
+
onChange: (q) => F(q)
|
|
51199
51203
|
}
|
|
51200
51204
|
) : /* @__PURE__ */ m(
|
|
51201
51205
|
yc,
|
|
@@ -51538,7 +51542,7 @@ const Mv = ({
|
|
|
51538
51542
|
shared: h,
|
|
51539
51543
|
sharedIndicatorClassName: p,
|
|
51540
51544
|
iconSize: qs,
|
|
51541
|
-
validate: (
|
|
51545
|
+
validate: (F) => b(F, C),
|
|
51542
51546
|
onSave: S,
|
|
51543
51547
|
onCancel: y,
|
|
51544
51548
|
inputContainerClassName: ce([
|
|
@@ -51711,9 +51715,9 @@ const e9 = (e) => /* @__PURE__ */ m(k7, { ...e, children: /* @__PURE__ */ m(t9,
|
|
|
51711
51715
|
isTreeCollapsed: b,
|
|
51712
51716
|
toggleTreeCollapse: S,
|
|
51713
51717
|
currentPath: y,
|
|
51714
|
-
gridRows:
|
|
51718
|
+
gridRows: x,
|
|
51715
51719
|
selectedPaths: R,
|
|
51716
|
-
selectedFiles:
|
|
51720
|
+
selectedFiles: F,
|
|
51717
51721
|
clearSelection: P,
|
|
51718
51722
|
setSelectedPaths: T,
|
|
51719
51723
|
effectiveSearchValue: E,
|
|
@@ -51940,23 +51944,23 @@ const e9 = (e) => /* @__PURE__ */ m(k7, { ...e, children: /* @__PURE__ */ m(t9,
|
|
|
51940
51944
|
]
|
|
51941
51945
|
), hl = G(() => {
|
|
51942
51946
|
const ie = /* @__PURE__ */ new Map();
|
|
51943
|
-
return
|
|
51944
|
-
const Gs =
|
|
51947
|
+
return F.forEach((Ge, Hs) => {
|
|
51948
|
+
const Gs = x.find((sr) => sr.path === Hs);
|
|
51945
51949
|
Gs && ie.set(Hs, Gs);
|
|
51946
51950
|
}), ie;
|
|
51947
|
-
}, [
|
|
51951
|
+
}, [F, x]), gl = G(() => {
|
|
51948
51952
|
const ie = /* @__PURE__ */ new Set();
|
|
51949
|
-
return
|
|
51953
|
+
return x.filter(
|
|
51950
51954
|
(Ge) => No(Ge, f, v)
|
|
51951
51955
|
).forEach((Ge) => ie.add(Ge.path)), ie;
|
|
51952
|
-
}, [f, v,
|
|
51956
|
+
}, [f, v, x, No]), pl = D(
|
|
51953
51957
|
(ie) => {
|
|
51954
51958
|
const Ge = /* @__PURE__ */ new Set();
|
|
51955
51959
|
ie.forEach((Hs, Gs) => Ge.add(Gs)), T(Ge);
|
|
51956
51960
|
},
|
|
51957
51961
|
[T]
|
|
51958
51962
|
), Jn = H7({
|
|
51959
|
-
selectedFiles:
|
|
51963
|
+
selectedFiles: F,
|
|
51960
51964
|
actionLabels: c?.actionLabels,
|
|
51961
51965
|
onDuplicate: ee,
|
|
51962
51966
|
onCopy: (ie) => {
|
|
@@ -52208,11 +52212,11 @@ const e9 = (e) => /* @__PURE__ */ m(k7, { ...e, children: /* @__PURE__ */ m(t9,
|
|
|
52208
52212
|
onDragLeave: Ae,
|
|
52209
52213
|
onDragOver: Nt,
|
|
52210
52214
|
onDrop: ht,
|
|
52211
|
-
children:
|
|
52215
|
+
children: x.length === 0 && !Ao && !i ? Cl() : /* @__PURE__ */ m(
|
|
52212
52216
|
rv,
|
|
52213
52217
|
{
|
|
52214
52218
|
columnDefs: Ho,
|
|
52215
|
-
rowData:
|
|
52219
|
+
rowData: x,
|
|
52216
52220
|
getRowId: (ie) => ie.path,
|
|
52217
52221
|
loading: i || ol,
|
|
52218
52222
|
getContextMenuItems: Ni,
|