@epam/ai-dial-ui-kit 0.5.0-rc.67 → 0.5.0-rc.69
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.cjs.js +9 -9
- package/dist/dial-ui-kit.es.js +775 -773
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as C, jsxs as z, Fragment as Ke } from "react/jsx-runtime";
|
|
|
2
2
|
import Q from "classnames";
|
|
3
3
|
import { useFloating as dc, offset as Wh, flip as _h, shift as Uh, arrow as EC, autoUpdate as $h, useHover as jh, useFocus as DC, useDismiss as uc, useRole as hc, useInteractions as gc, useMergeRefs as pc, FloatingPortal as fc, FloatingArrow as PC, autoPlacement as TC, size as MC, useClick as IC, FloatingFocusManager as Kh, FloatingOverlay as kC } from "@floating-ui/react";
|
|
4
4
|
import * as me from "react";
|
|
5
|
-
import U, { createContext as Br, useState as k, useRef as O, useEffect as ve, useMemo as
|
|
5
|
+
import U, { createContext as Br, useState as k, useRef as O, useEffect as ve, useMemo as B, useContext as et, isValidElement as mc, cloneElement as pl, useCallback as I, memo as ht, useLayoutEffect as zt, PureComponent as AC, useId as Cc, Children as LC, createElement as Eo, useImperativeHandle as Vr, Component as OC, forwardRef as vc, Suspense as NC } from "react";
|
|
6
6
|
import { IconInfoCircle as qh, IconCircleCheck as HC, IconAlertTriangle as GC, IconAlertCircle as BC, IconX as so, IconMinus as VC, IconCheck as Yh, IconExclamationCircle as wc, IconClipboardX as Zh, IconChevronsLeft as zC, IconChevronsRight as WC, IconGripVertical as _C, IconFile as Qh, IconFileTypeZip as UC, IconFileTypeXml as $C, IconFileTypeXls as jC, IconFileTypeVue as KC, IconFileTypeTxt as qC, IconFileTypeTsx as YC, IconFileTypeTs as ZC, IconFileTypeSvg as QC, IconFileTypeSql as XC, IconFileTypeRs as JC, IconFileTypePpt as ev, IconFileTypePng as tv, IconFileTypePhp as sv, IconFileTypePdf as iv, IconFileTypeJsx as ov, IconFileTypeJs as nv, IconFileTypeJpg as rv, IconFileTypeHtml as av, IconFileTypeDocx as lv, IconFileTypeDoc as cv, IconFileTypeCsv as dv, IconFileTypeCss as uv, IconFileTypeBmp as hv, IconArrowUpRight as gv, IconFolder as bc, IconChevronLeft as pv, IconChevronRight as Xh, IconChevronDown as zr, IconDotsVertical as en, IconDots as fv, IconTrashX as tn, IconEyeOff as Jh, IconEye as eg, IconSearch as mv, IconPlus as Cv, IconChevronUp as vv, IconAlertCircleFilled as wv, IconCaretRightFilled as bv, IconArrowLeft as Sv, IconZoomCancel as yv, IconFileZip as Rv, IconCopyMinus as xv, IconFolderPlus as Fv, IconCopy as Sc, IconDownload as yc, IconPencilMinus as tg, IconCircleFilled as Un } from "@tabler/icons-react";
|
|
7
7
|
import Ev, { flushSync as Dv, createPortal as Rc } from "react-dom";
|
|
8
8
|
const oi = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "text-error dial-tiny mt-1", children: e }), He = ({ icon: e, className: t }) => e ? /* @__PURE__ */ C("span", { className: Q("flex-shrink-0", t), children: e }) : null, Pv = 7, Tv = 2, sg = Br(null), ig = () => {
|
|
@@ -53,7 +53,7 @@ const oi = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "te
|
|
|
53
53
|
{ root: null, threshold: 0 }
|
|
54
54
|
);
|
|
55
55
|
return v.observe(m), () => v.disconnect();
|
|
56
|
-
}, [l, d.refs.reference, c]),
|
|
56
|
+
}, [l, d.refs.reference, c]), B(
|
|
57
57
|
() => ({
|
|
58
58
|
open: l,
|
|
59
59
|
setOpen: c,
|
|
@@ -342,9 +342,9 @@ const oi = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "te
|
|
|
342
342
|
if (r.includes(S))
|
|
343
343
|
continue;
|
|
344
344
|
r.push(S);
|
|
345
|
-
const
|
|
346
|
-
for (let x = 0; x <
|
|
347
|
-
const E =
|
|
345
|
+
const R = o(v, m);
|
|
346
|
+
for (let x = 0; x < R.length; ++x) {
|
|
347
|
+
const E = R[x];
|
|
348
348
|
r.push(b + E);
|
|
349
349
|
}
|
|
350
350
|
l = d + (l.length > 0 ? " " + l : l);
|
|
@@ -415,9 +415,9 @@ const Qe = (e) => {
|
|
|
415
415
|
"bottom-left",
|
|
416
416
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
417
417
|
"left-bottom"
|
|
418
|
-
],
|
|
418
|
+
], R = () => [...S(), re, ne], x = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], y = () => [re, ne, l], P = () => [Ri, "full", "auto", ...y()], T = () => [Fs, "none", "subgrid", re, ne], F = () => ["auto", {
|
|
419
419
|
span: ["full", Fs, re, ne]
|
|
420
|
-
}, Fs, re, ne], D = () => [Fs, "auto", re, ne], N = () => ["auto", "min", "max", "fr", re, ne],
|
|
420
|
+
}, Fs, re, ne], D = () => [Fs, "auto", re, ne], N = () => ["auto", "min", "max", "fr", re, ne], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ee = () => ["auto", ...y()], se = () => [Ri, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...y()], H = () => [e, re, ne], ie = () => [...S(), Nd, Od, {
|
|
421
421
|
position: [re, ne]
|
|
422
422
|
}], $ = () => ["no-repeat", {
|
|
423
423
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -438,7 +438,7 @@ const Qe = (e) => {
|
|
|
438
438
|
p,
|
|
439
439
|
re,
|
|
440
440
|
ne
|
|
441
|
-
], be = () => ["none", ye, re, ne], ue = () => ["none", ye, re, ne], Ee = () => [ye, re, ne], Re = () => [Ri, "full", ...
|
|
441
|
+
], be = () => ["none", ye, re, ne], ue = () => ["none", ye, re, ne], Ee = () => [ye, re, ne], Re = () => [Ri, "full", ...y()];
|
|
442
442
|
return {
|
|
443
443
|
cacheSize: 500,
|
|
444
444
|
theme: {
|
|
@@ -562,7 +562,7 @@ const Qe = (e) => {
|
|
|
562
562
|
* @see https://tailwindcss.com/docs/object-position
|
|
563
563
|
*/
|
|
564
564
|
"object-position": [{
|
|
565
|
-
object:
|
|
565
|
+
object: R()
|
|
566
566
|
}],
|
|
567
567
|
/**
|
|
568
568
|
* Overflow
|
|
@@ -694,7 +694,7 @@ const Qe = (e) => {
|
|
|
694
694
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
695
695
|
*/
|
|
696
696
|
basis: [{
|
|
697
|
-
basis: [Ri, "full", "auto", a, ...
|
|
697
|
+
basis: [Ri, "full", "auto", a, ...y()]
|
|
698
698
|
}],
|
|
699
699
|
/**
|
|
700
700
|
* Flex Direction
|
|
@@ -820,28 +820,28 @@ const Qe = (e) => {
|
|
|
820
820
|
* @see https://tailwindcss.com/docs/gap
|
|
821
821
|
*/
|
|
822
822
|
gap: [{
|
|
823
|
-
gap:
|
|
823
|
+
gap: y()
|
|
824
824
|
}],
|
|
825
825
|
/**
|
|
826
826
|
* Gap X
|
|
827
827
|
* @see https://tailwindcss.com/docs/gap
|
|
828
828
|
*/
|
|
829
829
|
"gap-x": [{
|
|
830
|
-
"gap-x":
|
|
830
|
+
"gap-x": y()
|
|
831
831
|
}],
|
|
832
832
|
/**
|
|
833
833
|
* Gap Y
|
|
834
834
|
* @see https://tailwindcss.com/docs/gap
|
|
835
835
|
*/
|
|
836
836
|
"gap-y": [{
|
|
837
|
-
"gap-y":
|
|
837
|
+
"gap-y": y()
|
|
838
838
|
}],
|
|
839
839
|
/**
|
|
840
840
|
* Justify Content
|
|
841
841
|
* @see https://tailwindcss.com/docs/justify-content
|
|
842
842
|
*/
|
|
843
843
|
"justify-content": [{
|
|
844
|
-
justify: [...
|
|
844
|
+
justify: [...W(), "normal"]
|
|
845
845
|
}],
|
|
846
846
|
/**
|
|
847
847
|
* Justify Items
|
|
@@ -862,7 +862,7 @@ const Qe = (e) => {
|
|
|
862
862
|
* @see https://tailwindcss.com/docs/align-content
|
|
863
863
|
*/
|
|
864
864
|
"align-content": [{
|
|
865
|
-
content: ["normal", ...
|
|
865
|
+
content: ["normal", ...W()]
|
|
866
866
|
}],
|
|
867
867
|
/**
|
|
868
868
|
* Align Items
|
|
@@ -887,7 +887,7 @@ const Qe = (e) => {
|
|
|
887
887
|
* @see https://tailwindcss.com/docs/place-content
|
|
888
888
|
*/
|
|
889
889
|
"place-content": [{
|
|
890
|
-
"place-content":
|
|
890
|
+
"place-content": W()
|
|
891
891
|
}],
|
|
892
892
|
/**
|
|
893
893
|
* Place Items
|
|
@@ -909,63 +909,63 @@ const Qe = (e) => {
|
|
|
909
909
|
* @see https://tailwindcss.com/docs/padding
|
|
910
910
|
*/
|
|
911
911
|
p: [{
|
|
912
|
-
p:
|
|
912
|
+
p: y()
|
|
913
913
|
}],
|
|
914
914
|
/**
|
|
915
915
|
* Padding X
|
|
916
916
|
* @see https://tailwindcss.com/docs/padding
|
|
917
917
|
*/
|
|
918
918
|
px: [{
|
|
919
|
-
px:
|
|
919
|
+
px: y()
|
|
920
920
|
}],
|
|
921
921
|
/**
|
|
922
922
|
* Padding Y
|
|
923
923
|
* @see https://tailwindcss.com/docs/padding
|
|
924
924
|
*/
|
|
925
925
|
py: [{
|
|
926
|
-
py:
|
|
926
|
+
py: y()
|
|
927
927
|
}],
|
|
928
928
|
/**
|
|
929
929
|
* Padding Start
|
|
930
930
|
* @see https://tailwindcss.com/docs/padding
|
|
931
931
|
*/
|
|
932
932
|
ps: [{
|
|
933
|
-
ps:
|
|
933
|
+
ps: y()
|
|
934
934
|
}],
|
|
935
935
|
/**
|
|
936
936
|
* Padding End
|
|
937
937
|
* @see https://tailwindcss.com/docs/padding
|
|
938
938
|
*/
|
|
939
939
|
pe: [{
|
|
940
|
-
pe:
|
|
940
|
+
pe: y()
|
|
941
941
|
}],
|
|
942
942
|
/**
|
|
943
943
|
* Padding Top
|
|
944
944
|
* @see https://tailwindcss.com/docs/padding
|
|
945
945
|
*/
|
|
946
946
|
pt: [{
|
|
947
|
-
pt:
|
|
947
|
+
pt: y()
|
|
948
948
|
}],
|
|
949
949
|
/**
|
|
950
950
|
* Padding Right
|
|
951
951
|
* @see https://tailwindcss.com/docs/padding
|
|
952
952
|
*/
|
|
953
953
|
pr: [{
|
|
954
|
-
pr:
|
|
954
|
+
pr: y()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Padding Bottom
|
|
958
958
|
* @see https://tailwindcss.com/docs/padding
|
|
959
959
|
*/
|
|
960
960
|
pb: [{
|
|
961
|
-
pb:
|
|
961
|
+
pb: y()
|
|
962
962
|
}],
|
|
963
963
|
/**
|
|
964
964
|
* Padding Left
|
|
965
965
|
* @see https://tailwindcss.com/docs/padding
|
|
966
966
|
*/
|
|
967
967
|
pl: [{
|
|
968
|
-
pl:
|
|
968
|
+
pl: y()
|
|
969
969
|
}],
|
|
970
970
|
/**
|
|
971
971
|
* Margin
|
|
@@ -1035,7 +1035,7 @@ const Qe = (e) => {
|
|
|
1035
1035
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1036
1036
|
*/
|
|
1037
1037
|
"space-x": [{
|
|
1038
|
-
"space-x":
|
|
1038
|
+
"space-x": y()
|
|
1039
1039
|
}],
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Space Between X Reverse
|
|
@@ -1047,7 +1047,7 @@ const Qe = (e) => {
|
|
|
1047
1047
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1048
1048
|
*/
|
|
1049
1049
|
"space-y": [{
|
|
1050
|
-
"space-y":
|
|
1050
|
+
"space-y": y()
|
|
1051
1051
|
}],
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Space Between Y Reverse
|
|
@@ -1216,7 +1216,7 @@ const Qe = (e) => {
|
|
|
1216
1216
|
leading: [
|
|
1217
1217
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1218
1218
|
n,
|
|
1219
|
-
...
|
|
1219
|
+
...y()
|
|
1220
1220
|
]
|
|
1221
1221
|
}],
|
|
1222
1222
|
/**
|
|
@@ -1317,7 +1317,7 @@ const Qe = (e) => {
|
|
|
1317
1317
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1318
1318
|
*/
|
|
1319
1319
|
indent: [{
|
|
1320
|
-
indent:
|
|
1320
|
+
indent: y()
|
|
1321
1321
|
}],
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Vertical Alignment
|
|
@@ -2281,21 +2281,21 @@ const Qe = (e) => {
|
|
|
2281
2281
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2282
2282
|
*/
|
|
2283
2283
|
"border-spacing": [{
|
|
2284
|
-
"border-spacing":
|
|
2284
|
+
"border-spacing": y()
|
|
2285
2285
|
}],
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Border Spacing X
|
|
2288
2288
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2289
2289
|
*/
|
|
2290
2290
|
"border-spacing-x": [{
|
|
2291
|
-
"border-spacing-x":
|
|
2291
|
+
"border-spacing-x": y()
|
|
2292
2292
|
}],
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Border Spacing Y
|
|
2295
2295
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2296
2296
|
*/
|
|
2297
2297
|
"border-spacing-y": [{
|
|
2298
|
-
"border-spacing-y":
|
|
2298
|
+
"border-spacing-y": y()
|
|
2299
2299
|
}],
|
|
2300
2300
|
/**
|
|
2301
2301
|
* Table Layout
|
|
@@ -2378,7 +2378,7 @@ const Qe = (e) => {
|
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2379
2379
|
*/
|
|
2380
2380
|
"perspective-origin": [{
|
|
2381
|
-
"perspective-origin":
|
|
2381
|
+
"perspective-origin": R()
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Rotate
|
|
@@ -2474,7 +2474,7 @@ const Qe = (e) => {
|
|
|
2474
2474
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2475
2475
|
*/
|
|
2476
2476
|
"transform-origin": [{
|
|
2477
|
-
origin:
|
|
2477
|
+
origin: R()
|
|
2478
2478
|
}],
|
|
2479
2479
|
/**
|
|
2480
2480
|
* Transform Style
|
|
@@ -2587,126 +2587,126 @@ const Qe = (e) => {
|
|
|
2587
2587
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2588
2588
|
*/
|
|
2589
2589
|
"scroll-m": [{
|
|
2590
|
-
"scroll-m":
|
|
2590
|
+
"scroll-m": y()
|
|
2591
2591
|
}],
|
|
2592
2592
|
/**
|
|
2593
2593
|
* Scroll Margin X
|
|
2594
2594
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2595
2595
|
*/
|
|
2596
2596
|
"scroll-mx": [{
|
|
2597
|
-
"scroll-mx":
|
|
2597
|
+
"scroll-mx": y()
|
|
2598
2598
|
}],
|
|
2599
2599
|
/**
|
|
2600
2600
|
* Scroll Margin Y
|
|
2601
2601
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2602
2602
|
*/
|
|
2603
2603
|
"scroll-my": [{
|
|
2604
|
-
"scroll-my":
|
|
2604
|
+
"scroll-my": y()
|
|
2605
2605
|
}],
|
|
2606
2606
|
/**
|
|
2607
2607
|
* Scroll Margin Start
|
|
2608
2608
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2609
2609
|
*/
|
|
2610
2610
|
"scroll-ms": [{
|
|
2611
|
-
"scroll-ms":
|
|
2611
|
+
"scroll-ms": y()
|
|
2612
2612
|
}],
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Scroll Margin End
|
|
2615
2615
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2616
2616
|
*/
|
|
2617
2617
|
"scroll-me": [{
|
|
2618
|
-
"scroll-me":
|
|
2618
|
+
"scroll-me": y()
|
|
2619
2619
|
}],
|
|
2620
2620
|
/**
|
|
2621
2621
|
* Scroll Margin Top
|
|
2622
2622
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2623
2623
|
*/
|
|
2624
2624
|
"scroll-mt": [{
|
|
2625
|
-
"scroll-mt":
|
|
2625
|
+
"scroll-mt": y()
|
|
2626
2626
|
}],
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Scroll Margin Right
|
|
2629
2629
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2630
2630
|
*/
|
|
2631
2631
|
"scroll-mr": [{
|
|
2632
|
-
"scroll-mr":
|
|
2632
|
+
"scroll-mr": y()
|
|
2633
2633
|
}],
|
|
2634
2634
|
/**
|
|
2635
2635
|
* Scroll Margin Bottom
|
|
2636
2636
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2637
2637
|
*/
|
|
2638
2638
|
"scroll-mb": [{
|
|
2639
|
-
"scroll-mb":
|
|
2639
|
+
"scroll-mb": y()
|
|
2640
2640
|
}],
|
|
2641
2641
|
/**
|
|
2642
2642
|
* Scroll Margin Left
|
|
2643
2643
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2644
2644
|
*/
|
|
2645
2645
|
"scroll-ml": [{
|
|
2646
|
-
"scroll-ml":
|
|
2646
|
+
"scroll-ml": y()
|
|
2647
2647
|
}],
|
|
2648
2648
|
/**
|
|
2649
2649
|
* Scroll Padding
|
|
2650
2650
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2651
2651
|
*/
|
|
2652
2652
|
"scroll-p": [{
|
|
2653
|
-
"scroll-p":
|
|
2653
|
+
"scroll-p": y()
|
|
2654
2654
|
}],
|
|
2655
2655
|
/**
|
|
2656
2656
|
* Scroll Padding X
|
|
2657
2657
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2658
2658
|
*/
|
|
2659
2659
|
"scroll-px": [{
|
|
2660
|
-
"scroll-px":
|
|
2660
|
+
"scroll-px": y()
|
|
2661
2661
|
}],
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Scroll Padding Y
|
|
2664
2664
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2665
2665
|
*/
|
|
2666
2666
|
"scroll-py": [{
|
|
2667
|
-
"scroll-py":
|
|
2667
|
+
"scroll-py": y()
|
|
2668
2668
|
}],
|
|
2669
2669
|
/**
|
|
2670
2670
|
* Scroll Padding Start
|
|
2671
2671
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2672
2672
|
*/
|
|
2673
2673
|
"scroll-ps": [{
|
|
2674
|
-
"scroll-ps":
|
|
2674
|
+
"scroll-ps": y()
|
|
2675
2675
|
}],
|
|
2676
2676
|
/**
|
|
2677
2677
|
* Scroll Padding End
|
|
2678
2678
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2679
2679
|
*/
|
|
2680
2680
|
"scroll-pe": [{
|
|
2681
|
-
"scroll-pe":
|
|
2681
|
+
"scroll-pe": y()
|
|
2682
2682
|
}],
|
|
2683
2683
|
/**
|
|
2684
2684
|
* Scroll Padding Top
|
|
2685
2685
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2686
2686
|
*/
|
|
2687
2687
|
"scroll-pt": [{
|
|
2688
|
-
"scroll-pt":
|
|
2688
|
+
"scroll-pt": y()
|
|
2689
2689
|
}],
|
|
2690
2690
|
/**
|
|
2691
2691
|
* Scroll Padding Right
|
|
2692
2692
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2693
2693
|
*/
|
|
2694
2694
|
"scroll-pr": [{
|
|
2695
|
-
"scroll-pr":
|
|
2695
|
+
"scroll-pr": y()
|
|
2696
2696
|
}],
|
|
2697
2697
|
/**
|
|
2698
2698
|
* Scroll Padding Bottom
|
|
2699
2699
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2700
2700
|
*/
|
|
2701
2701
|
"scroll-pb": [{
|
|
2702
|
-
"scroll-pb":
|
|
2702
|
+
"scroll-pb": y()
|
|
2703
2703
|
}],
|
|
2704
2704
|
/**
|
|
2705
2705
|
* Scroll Padding Left
|
|
2706
2706
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2707
2707
|
*/
|
|
2708
2708
|
"scroll-pl": [{
|
|
2709
|
-
"scroll-pl":
|
|
2709
|
+
"scroll-pl": y()
|
|
2710
2710
|
}],
|
|
2711
2711
|
/**
|
|
2712
2712
|
* Scroll Snap Align
|
|
@@ -2898,12 +2898,12 @@ const no = ({
|
|
|
2898
2898
|
]
|
|
2899
2899
|
}
|
|
2900
2900
|
) : null;
|
|
2901
|
-
var
|
|
2901
|
+
var Ae = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Tertiary = "tertiary", e.Danger = "danger", e))(Ae || {});
|
|
2902
2902
|
const uw = {
|
|
2903
|
-
[
|
|
2904
|
-
[
|
|
2905
|
-
[
|
|
2906
|
-
[
|
|
2903
|
+
[Ae.Primary]: "dial-primary-button",
|
|
2904
|
+
[Ae.Secondary]: "dial-secondary-button",
|
|
2905
|
+
[Ae.Tertiary]: "dial-tertiary-button",
|
|
2906
|
+
[Ae.Danger]: "dial-danger-button"
|
|
2907
2907
|
}, De = ({
|
|
2908
2908
|
label: e,
|
|
2909
2909
|
variant: t,
|
|
@@ -3042,10 +3042,10 @@ const hw = {
|
|
|
3042
3042
|
window.removeEventListener("resize", f), m && m.disconnect(), d.current && cancelAnimationFrame(d.current);
|
|
3043
3043
|
};
|
|
3044
3044
|
}, [e, h]);
|
|
3045
|
-
const g =
|
|
3045
|
+
const g = B(
|
|
3046
3046
|
() => typeof e == "string" ? e : l,
|
|
3047
3047
|
[l, e]
|
|
3048
|
-
), p =
|
|
3048
|
+
), p = B(() => i ? "" : r ? g : "", [g, i, r]);
|
|
3049
3049
|
return /* @__PURE__ */ z(og, { ...o, children: [
|
|
3050
3050
|
/* @__PURE__ */ C(
|
|
3051
3051
|
rg,
|
|
@@ -3279,7 +3279,7 @@ const Rw = "w-full flex", xw = {
|
|
|
3279
3279
|
defaultEmptyText: f,
|
|
3280
3280
|
children: m
|
|
3281
3281
|
}) => {
|
|
3282
|
-
const v = `${e}-label`, w = o ? `${e}-desc` : void 0, b = n ? `${e}-err` : void 0, S = `${e}-caption-desc`,
|
|
3282
|
+
const v = `${e}-label`, w = o ? `${e}-desc` : void 0, b = n ? `${e}-err` : void 0, S = `${e}-caption-desc`, R = [w, b].filter(Boolean).join(" ") || void 0, x = I(() => typeof n == "boolean" ? null : typeof n == "string" || typeof n > "u" ? n ? /* @__PURE__ */ C(
|
|
3283
3283
|
"div",
|
|
3284
3284
|
{
|
|
3285
3285
|
id: b,
|
|
@@ -3303,7 +3303,7 @@ const Rw = "w-full flex", xw = {
|
|
|
3303
3303
|
{
|
|
3304
3304
|
role: "group",
|
|
3305
3305
|
"aria-labelledby": t ? v : void 0,
|
|
3306
|
-
"aria-describedby":
|
|
3306
|
+
"aria-describedby": R,
|
|
3307
3307
|
className: fe(
|
|
3308
3308
|
Rw,
|
|
3309
3309
|
xw[r],
|
|
@@ -3478,7 +3478,7 @@ const Fw = "flex", Ew = "pb-1 mt-2", Dw = {
|
|
|
3478
3478
|
isOpened: l,
|
|
3479
3479
|
onToggle: c
|
|
3480
3480
|
}) => {
|
|
3481
|
-
const [d, u] = k(s), [h, g] = k(!0), p =
|
|
3481
|
+
const [d, u] = k(s), [h, g] = k(!0), p = B(() => typeof l == "boolean", [l]), f = p ? l : h;
|
|
3482
3482
|
ve(() => {
|
|
3483
3483
|
p && u(l ? s : ba);
|
|
3484
3484
|
}, [p, l, s]);
|
|
@@ -4761,10 +4761,10 @@ function Eg(e, t) {
|
|
|
4761
4761
|
const s = [
|
|
4762
4762
|
...t || []
|
|
4763
4763
|
];
|
|
4764
|
-
return t == null && typeof e != "function" && s.push(e),
|
|
4764
|
+
return t == null && typeof e != "function" && s.push(e), B(() => typeof e == "function" ? e() : e, s);
|
|
4765
4765
|
}
|
|
4766
4766
|
function nb(e) {
|
|
4767
|
-
return
|
|
4767
|
+
return B(
|
|
4768
4768
|
() => e.hooks.dragSource(),
|
|
4769
4769
|
[
|
|
4770
4770
|
e
|
|
@@ -4772,7 +4772,7 @@ function nb(e) {
|
|
|
4772
4772
|
);
|
|
4773
4773
|
}
|
|
4774
4774
|
function rb(e) {
|
|
4775
|
-
return
|
|
4775
|
+
return B(
|
|
4776
4776
|
() => e.hooks.dragPreview(),
|
|
4777
4777
|
[
|
|
4778
4778
|
e
|
|
@@ -5138,7 +5138,7 @@ function ro() {
|
|
|
5138
5138
|
return we(e != null, "Expected drag drop context"), e;
|
|
5139
5139
|
}
|
|
5140
5140
|
function mb(e, t) {
|
|
5141
|
-
const s = ro(), i =
|
|
5141
|
+
const s = ro(), i = B(
|
|
5142
5142
|
() => new pb(s.getBackend()),
|
|
5143
5143
|
[
|
|
5144
5144
|
s
|
|
@@ -5154,7 +5154,7 @@ function mb(e, t) {
|
|
|
5154
5154
|
}
|
|
5155
5155
|
function Cb() {
|
|
5156
5156
|
const e = ro();
|
|
5157
|
-
return
|
|
5157
|
+
return B(
|
|
5158
5158
|
() => new ab(e),
|
|
5159
5159
|
[
|
|
5160
5160
|
e
|
|
@@ -5184,7 +5184,7 @@ class vb {
|
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
function wb(e, t, s) {
|
|
5187
|
-
const i =
|
|
5187
|
+
const i = B(
|
|
5188
5188
|
() => new vb(e, t, s),
|
|
5189
5189
|
[
|
|
5190
5190
|
t,
|
|
@@ -5198,7 +5198,7 @@ function wb(e, t, s) {
|
|
|
5198
5198
|
]), i;
|
|
5199
5199
|
}
|
|
5200
5200
|
function bb(e) {
|
|
5201
|
-
return
|
|
5201
|
+
return B(() => {
|
|
5202
5202
|
const t = e.type;
|
|
5203
5203
|
return we(t != null, "spec.type must be defined"), t;
|
|
5204
5204
|
}, [
|
|
@@ -5231,7 +5231,7 @@ function yb(e, t) {
|
|
|
5231
5231
|
];
|
|
5232
5232
|
}
|
|
5233
5233
|
function Rb(e) {
|
|
5234
|
-
return
|
|
5234
|
+
return B(
|
|
5235
5235
|
() => e.hooks.dropTarget(),
|
|
5236
5236
|
[
|
|
5237
5237
|
e
|
|
@@ -5239,7 +5239,7 @@ function Rb(e) {
|
|
|
5239
5239
|
);
|
|
5240
5240
|
}
|
|
5241
5241
|
function xb(e) {
|
|
5242
|
-
const t = ro(), s =
|
|
5242
|
+
const t = ro(), s = B(
|
|
5243
5243
|
() => new fb(t.getBackend()),
|
|
5244
5244
|
[
|
|
5245
5245
|
t
|
|
@@ -5251,7 +5251,7 @@ function xb(e) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
function Fb() {
|
|
5253
5253
|
const e = ro();
|
|
5254
|
-
return
|
|
5254
|
+
return B(
|
|
5255
5255
|
() => new lb(e),
|
|
5256
5256
|
[
|
|
5257
5257
|
e
|
|
@@ -5260,7 +5260,7 @@ function Fb() {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
function Eb(e) {
|
|
5262
5262
|
const { accept: t } = e;
|
|
5263
|
-
return
|
|
5263
|
+
return B(() => (we(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
|
|
5264
5264
|
t
|
|
5265
5265
|
]), [
|
|
5266
5266
|
t
|
|
@@ -5285,7 +5285,7 @@ class Db {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
}
|
|
5287
5287
|
function Pb(e, t) {
|
|
5288
|
-
const s =
|
|
5288
|
+
const s = B(
|
|
5289
5289
|
() => new Db(e, t),
|
|
5290
5290
|
[
|
|
5291
5291
|
t
|
|
@@ -5567,7 +5567,7 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
|
|
|
5567
5567
|
t(c, s);
|
|
5568
5568
|
}, [t, s]), a = I(function(c) {
|
|
5569
5569
|
t(c, s);
|
|
5570
|
-
}, [t, s]), l =
|
|
5570
|
+
}, [t, s]), l = B(function() {
|
|
5571
5571
|
return Ye(Ye({ position: "absolute", userSelect: "none" }, Bb[s]), o ?? {});
|
|
5572
5572
|
}, [o, s]);
|
|
5573
5573
|
return C("div", { className: n || void 0, style: l, onMouseDown: r, onTouchStart: a, children: i });
|
|
@@ -5818,8 +5818,8 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
|
|
|
5818
5818
|
}, t.prototype.calculateNewSizeFromAspectRatio = function(s, i, o, n) {
|
|
5819
5819
|
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;
|
|
5820
5820
|
if (a) {
|
|
5821
|
-
var m = (h - p) * this.ratio + f, v = (g - p) * this.ratio + f, w = (d - f) / this.ratio + p, b = (u - f) / this.ratio + p, S = Math.max(d, m),
|
|
5822
|
-
s = Dn(s, S,
|
|
5821
|
+
var m = (h - p) * this.ratio + f, v = (g - p) * this.ratio + f, w = (d - f) / this.ratio + p, b = (u - f) / this.ratio + p, S = Math.max(d, m), R = Math.min(u, v), x = Math.max(h, w), E = Math.min(g, b);
|
|
5822
|
+
s = Dn(s, S, R), i = Dn(i, x, E);
|
|
5823
5823
|
} else
|
|
5824
5824
|
s = Dn(s, d, u), i = Dn(i, h, g);
|
|
5825
5825
|
return { newWidth: s, newHeight: i };
|
|
@@ -5882,11 +5882,11 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
|
|
|
5882
5882
|
}
|
|
5883
5883
|
var o = this.props, n = o.maxWidth, r = o.maxHeight, a = o.minWidth, l = o.minHeight, c = Pn(s) ? s.touches[0].clientX : s.clientX, d = Pn(s) ? s.touches[0].clientY : s.clientY, u = this.state, h = u.direction, g = u.original, p = u.width, f = u.height, m = this.getParentSize(), v = Ub(m, this.window.innerWidth, this.window.innerHeight, n, r, a, l);
|
|
5884
5884
|
n = v.maxWidth, r = v.maxHeight, a = v.minWidth, l = v.minHeight;
|
|
5885
|
-
var w = this.calculateNewSizeFromDirection(c, d), b = w.newHeight, S = w.newWidth,
|
|
5885
|
+
var w = this.calculateNewSizeFromDirection(c, d), b = w.newHeight, S = w.newWidth, R = this.calculateNewMaxFromBoundary(n, r);
|
|
5886
5886
|
this.props.snap && this.props.snap.x && (S = Jd(S, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = Jd(b, this.props.snap.y, this.props.snapGap));
|
|
5887
|
-
var x = this.calculateNewSizeFromAspectRatio(S, b, { width:
|
|
5887
|
+
var x = this.calculateNewSizeFromAspectRatio(S, b, { width: R.maxWidth, height: R.maxHeight }, { width: a, height: l });
|
|
5888
5888
|
if (S = x.newWidth, b = x.newHeight, this.props.grid) {
|
|
5889
|
-
var E = Xd(S, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0),
|
|
5889
|
+
var E = Xd(S, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), y = Xd(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), P = this.props.snapGap || 0, T = P === 0 || Math.abs(E - S) <= P ? E : S, F = P === 0 || Math.abs(y - b) <= P ? y : b;
|
|
5890
5890
|
S = T, b = F;
|
|
5891
5891
|
}
|
|
5892
5892
|
var D = {
|
|
@@ -5898,8 +5898,8 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
|
|
|
5898
5898
|
var N = S / m.width * 100;
|
|
5899
5899
|
S = "".concat(N, "%");
|
|
5900
5900
|
} else if (p.endsWith("vw")) {
|
|
5901
|
-
var
|
|
5902
|
-
S = "".concat(
|
|
5901
|
+
var W = S / this.window.innerWidth * 100;
|
|
5902
|
+
S = "".concat(W, "vw");
|
|
5903
5903
|
} else if (p.endsWith("vh")) {
|
|
5904
5904
|
var G = S / this.window.innerHeight * 100;
|
|
5905
5905
|
S = "".concat(G, "vh");
|
|
@@ -5910,8 +5910,8 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
|
|
|
5910
5910
|
var N = b / m.height * 100;
|
|
5911
5911
|
b = "".concat(N, "%");
|
|
5912
5912
|
} else if (f.endsWith("vw")) {
|
|
5913
|
-
var
|
|
5914
|
-
b = "".concat(
|
|
5913
|
+
var W = b / this.window.innerWidth * 100;
|
|
5914
|
+
b = "".concat(W, "vw");
|
|
5915
5915
|
} else if (f.endsWith("vh")) {
|
|
5916
5916
|
var G = b / this.window.innerHeight * 100;
|
|
5917
5917
|
b = "".concat(G, "vh");
|
|
@@ -6019,10 +6019,10 @@ const qb = ({ side: e, className: t }) => {
|
|
|
6019
6019
|
u(!0);
|
|
6020
6020
|
}, []), w = I(() => {
|
|
6021
6021
|
u(!1);
|
|
6022
|
-
const S = m.current?.resizable?.getBoundingClientRect(),
|
|
6023
|
-
p || g(
|
|
6024
|
-
}, [n, p, t]), b =
|
|
6025
|
-
const S = a === ur.Left,
|
|
6022
|
+
const S = m.current?.resizable?.getBoundingClientRect(), R = S ? Math.round(S.width) : t;
|
|
6023
|
+
p || g(R), n?.(R);
|
|
6024
|
+
}, [n, p, t]), b = B(() => {
|
|
6025
|
+
const S = a === ur.Left, R = /* @__PURE__ */ C(
|
|
6026
6026
|
Yb,
|
|
6027
6027
|
{
|
|
6028
6028
|
side: a,
|
|
@@ -6045,16 +6045,16 @@ const qb = ({ side: e, className: t }) => {
|
|
|
6045
6045
|
left: "group"
|
|
6046
6046
|
},
|
|
6047
6047
|
handleStyles: {
|
|
6048
|
-
right: { right: "-
|
|
6049
|
-
left: { left:
|
|
6048
|
+
right: { right: "-8px", zIndex: 10 },
|
|
6049
|
+
left: { left: 0, zIndex: 10 }
|
|
6050
6050
|
},
|
|
6051
6051
|
handleComponent: {
|
|
6052
|
-
left: S ?
|
|
6053
|
-
right: S ? void 0 :
|
|
6052
|
+
left: S ? R : void 0,
|
|
6053
|
+
right: S ? void 0 : R
|
|
6054
6054
|
},
|
|
6055
6055
|
onResizeStart: v,
|
|
6056
|
-
onResize: (x, E,
|
|
6057
|
-
const P = Math.round(
|
|
6056
|
+
onResize: (x, E, y) => {
|
|
6057
|
+
const P = Math.round(y.offsetWidth);
|
|
6058
6058
|
r?.(P);
|
|
6059
6059
|
},
|
|
6060
6060
|
onResizeStop: w
|
|
@@ -6107,7 +6107,7 @@ const Ig = ({
|
|
|
6107
6107
|
emptyPlaceholder: i = "—",
|
|
6108
6108
|
className: o
|
|
6109
6109
|
}) => {
|
|
6110
|
-
const n = Mg(e), r =
|
|
6110
|
+
const n = Mg(e), r = B(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
|
|
6111
6111
|
return /* @__PURE__ */ C(
|
|
6112
6112
|
os,
|
|
6113
6113
|
{
|
|
@@ -6165,15 +6165,15 @@ const s0 = Q(
|
|
|
6165
6165
|
matchReferenceWidth: v = !0,
|
|
6166
6166
|
maxDropdownHeight: w
|
|
6167
6167
|
}) => {
|
|
6168
|
-
const [b, S] = k(a),
|
|
6168
|
+
const [b, S] = k(a), R = r !== void 0, x = R ? !!r : b, E = O(null), y = I(
|
|
6169
6169
|
(A) => {
|
|
6170
|
-
|
|
6170
|
+
R || S(A), l?.(A);
|
|
6171
6171
|
},
|
|
6172
|
-
[
|
|
6173
|
-
), P = Cc(), T = o === void 0, F = (A) => "clientWidth" in A ? A.clientWidth : A.getBoundingClientRect?.()?.width ?? 0, { refs: D, floatingStyles: N, context:
|
|
6172
|
+
[R, l]
|
|
6173
|
+
), P = Cc(), T = o === void 0, F = (A) => "clientWidth" in A ? A.clientWidth : A.getBoundingClientRect?.()?.width ?? 0, { refs: D, floatingStyles: N, context: W } = dc({
|
|
6174
6174
|
placement: o,
|
|
6175
6175
|
open: x,
|
|
6176
|
-
onOpenChange:
|
|
6176
|
+
onOpenChange: y,
|
|
6177
6177
|
whileElementsMounted: $h,
|
|
6178
6178
|
middleware: [
|
|
6179
6179
|
Wh({ mainAxis: bo, crossAxis: 0 }),
|
|
@@ -6200,14 +6200,14 @@ const s0 = Q(
|
|
|
6200
6200
|
}
|
|
6201
6201
|
})
|
|
6202
6202
|
]
|
|
6203
|
-
}), G = IC(
|
|
6203
|
+
}), G = IC(W, {
|
|
6204
6204
|
enabled: i.includes(At.Click) && !n
|
|
6205
|
-
}), ee = jh(
|
|
6205
|
+
}), ee = jh(W, {
|
|
6206
6206
|
enabled: i.includes(At.Hover) && !n,
|
|
6207
6207
|
move: !1,
|
|
6208
6208
|
restMs: 40,
|
|
6209
6209
|
delay: { open: 80, close: 80 }
|
|
6210
|
-
}), se = uc(
|
|
6210
|
+
}), se = uc(W, {
|
|
6211
6211
|
bubbles: !0,
|
|
6212
6212
|
referencePress: !1,
|
|
6213
6213
|
outsidePress: (A) => {
|
|
@@ -6215,7 +6215,7 @@ const s0 = Q(
|
|
|
6215
6215
|
const le = A.target;
|
|
6216
6216
|
return !(g?.current && le instanceof Node && g.current.contains(le));
|
|
6217
6217
|
}
|
|
6218
|
-
}), H = hc(
|
|
6218
|
+
}), H = hc(W, { role: "menu" }), { getReferenceProps: ie, getFloatingProps: $ } = gc([
|
|
6219
6219
|
G,
|
|
6220
6220
|
ee,
|
|
6221
6221
|
se,
|
|
@@ -6241,27 +6241,27 @@ const s0 = Q(
|
|
|
6241
6241
|
!i.includes(At.ContextMenu) || n || (A.preventDefault(), m && (K(A.clientX, A.clientY), E.current = document.elementFromPoint(
|
|
6242
6242
|
A.clientX,
|
|
6243
6243
|
A.clientY
|
|
6244
|
-
)),
|
|
6244
|
+
)), y(!0));
|
|
6245
6245
|
},
|
|
6246
|
-
[m, n,
|
|
6246
|
+
[m, n, y, K, i]
|
|
6247
6247
|
), J = I(
|
|
6248
6248
|
(A) => {
|
|
6249
|
-
!m || n || (i.includes(At.ContextMenu) && x &&
|
|
6249
|
+
!m || n || (i.includes(At.ContextMenu) && x && y(!1), K(A.clientX, A.clientY), E.current = document.elementFromPoint(
|
|
6250
6250
|
A.clientX,
|
|
6251
6251
|
A.clientY
|
|
6252
6252
|
));
|
|
6253
6253
|
},
|
|
6254
|
-
[m, n, K, x, i,
|
|
6254
|
+
[m, n, K, x, i, y]
|
|
6255
6255
|
);
|
|
6256
6256
|
ve(() => {
|
|
6257
|
-
n && x &&
|
|
6258
|
-
}, [n, x,
|
|
6257
|
+
n && x && y(!1);
|
|
6258
|
+
}, [n, x, y]);
|
|
6259
6259
|
const Z = I(
|
|
6260
6260
|
(A) => (le) => {
|
|
6261
|
-
A.disabled || (A.onClick?.({ key: A.key, domEvent: le }), t?.onClick?.({ key: A.key, domEvent: le }),
|
|
6261
|
+
A.disabled || (A.onClick?.({ key: A.key, domEvent: le }), t?.onClick?.({ key: A.key, domEvent: le }), y(!1));
|
|
6262
6262
|
},
|
|
6263
|
-
[t,
|
|
6264
|
-
), oe =
|
|
6263
|
+
[t, y]
|
|
6264
|
+
), oe = B(() => s ? s() : t ? /* @__PURE__ */ z(Ke, { children: [
|
|
6265
6265
|
t.header && /* @__PURE__ */ C(Ke, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
6266
6266
|
/* @__PURE__ */ C("div", { role: "none", className: "py-1", children: t.items.map((A) => A.type === xl.Divider ? /* @__PURE__ */ C(
|
|
6267
6267
|
"div",
|
|
@@ -6332,12 +6332,12 @@ const s0 = Q(
|
|
|
6332
6332
|
if (A instanceof Element ? le = A : E.current instanceof Element && (le = E.current), !le) return;
|
|
6333
6333
|
const be = new IntersectionObserver(
|
|
6334
6334
|
([ue]) => {
|
|
6335
|
-
ue.isIntersecting ||
|
|
6335
|
+
ue.isIntersecting || y(!1);
|
|
6336
6336
|
},
|
|
6337
6337
|
{ root: null, threshold: 0 }
|
|
6338
6338
|
);
|
|
6339
6339
|
return be.observe(le), () => be.disconnect();
|
|
6340
|
-
}, [x, D.reference,
|
|
6340
|
+
}, [x, D.reference, y]), /* @__PURE__ */ z(Ke, { children: [
|
|
6341
6341
|
/* @__PURE__ */ C(
|
|
6342
6342
|
"span",
|
|
6343
6343
|
{
|
|
@@ -6357,7 +6357,7 @@ const s0 = Q(
|
|
|
6357
6357
|
x && /* @__PURE__ */ C(fc, { children: /* @__PURE__ */ C(
|
|
6358
6358
|
Kh,
|
|
6359
6359
|
{
|
|
6360
|
-
context:
|
|
6360
|
+
context: W,
|
|
6361
6361
|
modal: !1,
|
|
6362
6362
|
initialFocus: -1,
|
|
6363
6363
|
returnFocus: !0,
|
|
@@ -6379,7 +6379,7 @@ const s0 = Q(
|
|
|
6379
6379
|
{
|
|
6380
6380
|
ariaLabel: "Close dropdown",
|
|
6381
6381
|
onClose: (A) => {
|
|
6382
|
-
d?.(A),
|
|
6382
|
+
d?.(A), y(!1);
|
|
6383
6383
|
}
|
|
6384
6384
|
}
|
|
6385
6385
|
) }),
|
|
@@ -6454,26 +6454,26 @@ const su = () => typeof window < "u" && window.innerWidth < 640, iu = () => {
|
|
|
6454
6454
|
smallScreenContainerClassName: n,
|
|
6455
6455
|
smallScreenDropdownItemClassName: r
|
|
6456
6456
|
}) => {
|
|
6457
|
-
const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = l0(), p = g === qs.Mobile || o === hr.Tablet && g === qs.Tablet, f = i === Rl.Horizontal, m = O(null), v = O(null), w = O(null), b = e.find((x) => x.id === t), S =
|
|
6457
|
+
const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = l0(), p = g === qs.Mobile || o === hr.Tablet && g === qs.Tablet, f = i === Rl.Horizontal, m = O(null), v = O(null), w = O(null), b = e.find((x) => x.id === t), S = B(
|
|
6458
6458
|
() => Q(
|
|
6459
6459
|
"flex gap-2",
|
|
6460
6460
|
f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
6461
6461
|
),
|
|
6462
6462
|
[f]
|
|
6463
|
-
),
|
|
6463
|
+
), R = I(() => {
|
|
6464
6464
|
const x = v.current;
|
|
6465
6465
|
x && h(x.scrollWidth > x.clientWidth);
|
|
6466
6466
|
}, []);
|
|
6467
6467
|
return ve(() => {
|
|
6468
|
-
|
|
6469
|
-
const x = new ResizeObserver(() =>
|
|
6468
|
+
R();
|
|
6469
|
+
const x = new ResizeObserver(() => R()), E = v.current;
|
|
6470
6470
|
return E && x.observe(E), () => x.disconnect();
|
|
6471
|
-
}, [e,
|
|
6471
|
+
}, [e, R]), ve(() => {
|
|
6472
6472
|
const x = w.current, E = v.current;
|
|
6473
6473
|
if (!x || !E) return;
|
|
6474
|
-
const
|
|
6475
|
-
|
|
6476
|
-
left:
|
|
6474
|
+
const y = x.offsetLeft, P = y + x.offsetWidth, T = E.scrollLeft, F = T + E.clientWidth;
|
|
6475
|
+
y < T ? E.scrollTo({
|
|
6476
|
+
left: y - tu,
|
|
6477
6477
|
behavior: "smooth"
|
|
6478
6478
|
}) : P > F && E.scrollTo({
|
|
6479
6479
|
left: P - E.clientWidth + tu,
|
|
@@ -6647,7 +6647,7 @@ const su = () => typeof window < "u" && window.innerWidth < 640, iu = () => {
|
|
|
6647
6647
|
children: o,
|
|
6648
6648
|
titleClassName: n
|
|
6649
6649
|
}) => {
|
|
6650
|
-
const r =
|
|
6650
|
+
const r = B(() => e?.length ? e : LC.toArray(o).filter(mc).map((c) => {
|
|
6651
6651
|
const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
|
|
6652
6652
|
return p;
|
|
6653
6653
|
}), [e, o]), a = I(
|
|
@@ -6656,7 +6656,7 @@ const su = () => typeof window < "u" && window.innerWidth < 640, iu = () => {
|
|
|
6656
6656
|
u.onClick ? u.onClick(c.domEvent) : u.href && (window.location.href = u.href);
|
|
6657
6657
|
},
|
|
6658
6658
|
[r]
|
|
6659
|
-
), l =
|
|
6659
|
+
), l = B(() => {
|
|
6660
6660
|
if (r.length === 0) return null;
|
|
6661
6661
|
if (r.length <= 3)
|
|
6662
6662
|
return r.map((p, f) => /* @__PURE__ */ Eo(
|
|
@@ -6836,26 +6836,26 @@ const su = () => typeof window < "u" && window.innerWidth < 640, iu = () => {
|
|
|
6836
6836
|
textBeforeInput: w,
|
|
6837
6837
|
textAfterInput: b,
|
|
6838
6838
|
onBlur: S,
|
|
6839
|
-
defaultValue:
|
|
6839
|
+
defaultValue: R,
|
|
6840
6840
|
tooltipText: x,
|
|
6841
6841
|
hideTooltip: E = !1,
|
|
6842
|
-
inputRef:
|
|
6842
|
+
inputRef: y
|
|
6843
6843
|
}) => {
|
|
6844
|
-
const P = O(null), T = pc([
|
|
6844
|
+
const P = O(null), T = pc([y, P]);
|
|
6845
6845
|
ve(() => {
|
|
6846
|
-
const
|
|
6847
|
-
if (!
|
|
6846
|
+
const W = P.current;
|
|
6847
|
+
if (!W) return;
|
|
6848
6848
|
const G = (ee) => {
|
|
6849
6849
|
ee.preventDefault();
|
|
6850
6850
|
};
|
|
6851
|
-
return
|
|
6852
|
-
|
|
6851
|
+
return W.addEventListener("wheel", G, { passive: !1 }), () => {
|
|
6852
|
+
W.removeEventListener("wheel", G);
|
|
6853
6853
|
};
|
|
6854
6854
|
}, []);
|
|
6855
|
-
const F = c === "number" || p !== void 0 || f !== void 0, D = (
|
|
6856
|
-
S0(
|
|
6857
|
-
}, N = (
|
|
6858
|
-
const G =
|
|
6855
|
+
const F = c === "number" || p !== void 0 || f !== void 0, D = (W) => {
|
|
6856
|
+
S0(W, c, p, f);
|
|
6857
|
+
}, N = (W) => {
|
|
6858
|
+
const G = W.currentTarget.value;
|
|
6859
6859
|
if (F && G !== "") {
|
|
6860
6860
|
const ee = parseFloat(G);
|
|
6861
6861
|
if (isNaN(ee) && G !== "-" && G !== "." || !isNaN(ee) && (p !== void 0 && ee < p || f !== void 0 && ee > f))
|
|
@@ -6912,18 +6912,18 @@ const su = () => typeof window < "u" && window.innerWidth < 640, iu = () => {
|
|
|
6912
6912
|
autoComplete: "off",
|
|
6913
6913
|
id: o,
|
|
6914
6914
|
placeholder: n,
|
|
6915
|
-
value:
|
|
6915
|
+
value: R ? void 0 : i ?? "",
|
|
6916
6916
|
disabled: d,
|
|
6917
6917
|
className: Q(
|
|
6918
6918
|
"border-0 bg-transparent w-full truncate",
|
|
6919
6919
|
r
|
|
6920
6920
|
),
|
|
6921
|
-
onChange: (
|
|
6921
|
+
onChange: (W) => !u && N?.(W),
|
|
6922
6922
|
onKeyDown: D,
|
|
6923
6923
|
onBlur: S,
|
|
6924
6924
|
min: p,
|
|
6925
6925
|
max: f,
|
|
6926
|
-
defaultValue:
|
|
6926
|
+
defaultValue: R
|
|
6927
6927
|
}
|
|
6928
6928
|
)
|
|
6929
6929
|
}
|
|
@@ -7166,13 +7166,13 @@ const x0 = "z-[52] flex items-center justify-center bg-blackout md:p-4", F0 = "d
|
|
|
7166
7166
|
var Vo = /* @__PURE__ */ ((e) => (e.Info = "info", e.Danger = "danger", e))(Vo || {});
|
|
7167
7167
|
const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-150 px-6 py-4", M0 = "Cancel", I0 = "Ok", nu = {
|
|
7168
7168
|
[Vo.Info]: {
|
|
7169
|
-
confirmVariant:
|
|
7170
|
-
cancelVariant:
|
|
7169
|
+
confirmVariant: Ae.Primary,
|
|
7170
|
+
cancelVariant: Ae.Secondary
|
|
7171
7171
|
},
|
|
7172
7172
|
[Vo.Danger]: {
|
|
7173
7173
|
container: "dial-danger-popup",
|
|
7174
|
-
confirmVariant:
|
|
7175
|
-
cancelVariant:
|
|
7174
|
+
confirmVariant: Ae.Danger,
|
|
7175
|
+
cancelVariant: Ae.Secondary
|
|
7176
7176
|
}
|
|
7177
7177
|
}, k0 = ({
|
|
7178
7178
|
title: e,
|
|
@@ -7198,7 +7198,7 @@ const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-1
|
|
|
7198
7198
|
/* @__PURE__ */ C(
|
|
7199
7199
|
De,
|
|
7200
7200
|
{
|
|
7201
|
-
variant:
|
|
7201
|
+
variant: Ae.Secondary,
|
|
7202
7202
|
label: n,
|
|
7203
7203
|
onClick: () => h ? h() : d?.()
|
|
7204
7204
|
}
|
|
@@ -7359,11 +7359,11 @@ const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-1
|
|
|
7359
7359
|
id: w,
|
|
7360
7360
|
size: b = ts.Md
|
|
7361
7361
|
}) => {
|
|
7362
|
-
const [S,
|
|
7363
|
-
s ||
|
|
7362
|
+
const [S, R] = k(!1), x = I(() => {
|
|
7363
|
+
s || R(!0);
|
|
7364
7364
|
}, [s]), E = I(() => {
|
|
7365
|
-
|
|
7366
|
-
}, [c]),
|
|
7365
|
+
R(!1), c?.();
|
|
7366
|
+
}, [c]), y = I(() => {
|
|
7367
7367
|
h(), E();
|
|
7368
7368
|
}, [h, E]);
|
|
7369
7369
|
return /* @__PURE__ */ z("div", { className: "flex flex-col", children: [
|
|
@@ -7390,7 +7390,7 @@ const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-1
|
|
|
7390
7390
|
/* @__PURE__ */ C(
|
|
7391
7391
|
De,
|
|
7392
7392
|
{
|
|
7393
|
-
variant:
|
|
7393
|
+
variant: Ae.Secondary,
|
|
7394
7394
|
label: g,
|
|
7395
7395
|
onClick: E
|
|
7396
7396
|
}
|
|
@@ -7398,9 +7398,9 @@ const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-1
|
|
|
7398
7398
|
/* @__PURE__ */ C(
|
|
7399
7399
|
De,
|
|
7400
7400
|
{
|
|
7401
|
-
variant:
|
|
7401
|
+
variant: Ae.Primary,
|
|
7402
7402
|
label: p,
|
|
7403
|
-
onClick:
|
|
7403
|
+
onClick: y,
|
|
7404
7404
|
disabled: !f
|
|
7405
7405
|
}
|
|
7406
7406
|
)
|
|
@@ -7442,7 +7442,7 @@ const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-1
|
|
|
7442
7442
|
/* @__PURE__ */ C(
|
|
7443
7443
|
De,
|
|
7444
7444
|
{
|
|
7445
|
-
variant:
|
|
7445
|
+
variant: Ae.Secondary,
|
|
7446
7446
|
label: i,
|
|
7447
7447
|
onClick: () => d ? d() : l?.()
|
|
7448
7448
|
}
|
|
@@ -7450,7 +7450,7 @@ const P0 = "flex justify-end gap-2 px-6 py-4", T0 = "text-secondary dial-small-1
|
|
|
7450
7450
|
/* @__PURE__ */ C(
|
|
7451
7451
|
De,
|
|
7452
7452
|
{
|
|
7453
|
-
variant:
|
|
7453
|
+
variant: Ae.Primary,
|
|
7454
7454
|
className: a,
|
|
7455
7455
|
label: s,
|
|
7456
7456
|
disabled: n,
|
|
@@ -7694,13 +7694,13 @@ const V0 = {
|
|
|
7694
7694
|
const c = O(null), [d, u] = k(e), [h, g] = k(""), [p, f] = k(!1), m = (b) => {
|
|
7695
7695
|
const S = b.trim().replace(/,$/, "");
|
|
7696
7696
|
if (S && !d.includes(S)) {
|
|
7697
|
-
const
|
|
7698
|
-
u(
|
|
7697
|
+
const R = [S, ...d];
|
|
7698
|
+
u(R), l?.(R);
|
|
7699
7699
|
}
|
|
7700
7700
|
}, v = (b) => {
|
|
7701
7701
|
(b.key === "," || b.key === "Enter") && (b.preventDefault(), m(h), g(""));
|
|
7702
7702
|
}, w = (b) => {
|
|
7703
|
-
const S = d.filter((
|
|
7703
|
+
const S = d.filter((R, x) => x !== b);
|
|
7704
7704
|
u(S), l?.(S);
|
|
7705
7705
|
};
|
|
7706
7706
|
return ve(() => {
|
|
@@ -7806,34 +7806,36 @@ const K0 = ({
|
|
|
7806
7806
|
className: w,
|
|
7807
7807
|
closable: b = !1,
|
|
7808
7808
|
header: S,
|
|
7809
|
-
footer:
|
|
7809
|
+
footer: R,
|
|
7810
7810
|
onClose: x,
|
|
7811
7811
|
onChange: E,
|
|
7812
|
-
inlineSearch:
|
|
7812
|
+
inlineSearch: y = !1,
|
|
7813
7813
|
dismissRef: P,
|
|
7814
7814
|
onFooterClick: T
|
|
7815
7815
|
}) => {
|
|
7816
|
-
const F = Cc(), [D, N] = k(!1), [
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7816
|
+
const F = Cc(), [D, N] = k(!1), [W, G] = k(
|
|
7817
|
+
y && l || ""
|
|
7818
|
+
), ee = O(null), se = i !== void 0, [H, ie] = k(o), $ = se ? i : H, K = B(() => t ? Array.isArray($) ? $ : [] : typeof $ == "string" ? [$] : [], [$, t]), Y = B(() => {
|
|
7819
|
+
const _ = W.trim().toLowerCase();
|
|
7820
|
+
return _ ? e.filter((X) => X.label.toLowerCase().includes(_)) : e;
|
|
7821
|
+
}, [e, W]);
|
|
7820
7822
|
ve(() => {
|
|
7821
|
-
D
|
|
7822
|
-
}, [D]);
|
|
7823
|
+
!D && !y && G("");
|
|
7824
|
+
}, [y, D]);
|
|
7823
7825
|
const J = I(
|
|
7824
|
-
(
|
|
7825
|
-
se || ie(
|
|
7826
|
+
(_) => {
|
|
7827
|
+
se || ie(_), E?.(_);
|
|
7826
7828
|
},
|
|
7827
7829
|
[se, E]
|
|
7828
|
-
), Z = (
|
|
7830
|
+
), Z = (_) => {
|
|
7829
7831
|
if (t) {
|
|
7830
7832
|
const X = new Set(K);
|
|
7831
|
-
X.has(
|
|
7833
|
+
X.has(_) ? X.delete(_) : X.add(_), J(Array.from(X));
|
|
7832
7834
|
} else
|
|
7833
|
-
J(
|
|
7835
|
+
J(_), N(!1);
|
|
7834
7836
|
}, oe = I(
|
|
7835
|
-
(
|
|
7836
|
-
if (
|
|
7837
|
+
(_, X) => {
|
|
7838
|
+
if (_.stopPropagation(), !t) {
|
|
7837
7839
|
J("");
|
|
7838
7840
|
return;
|
|
7839
7841
|
}
|
|
@@ -7841,36 +7843,36 @@ const K0 = ({
|
|
|
7841
7843
|
J(Se);
|
|
7842
7844
|
},
|
|
7843
7845
|
[t, K, J]
|
|
7844
|
-
), he =
|
|
7845
|
-
() => Y.filter((
|
|
7846
|
+
), he = B(
|
|
7847
|
+
() => Y.filter((_) => !_.disabled),
|
|
7846
7848
|
[Y]
|
|
7847
|
-
), A =
|
|
7848
|
-
() => he.filter((
|
|
7849
|
+
), A = B(
|
|
7850
|
+
() => he.filter((_) => K.includes(_.value)).length,
|
|
7849
7851
|
[he, K]
|
|
7850
|
-
), le = (
|
|
7851
|
-
|
|
7852
|
+
), le = (_) => {
|
|
7853
|
+
y && !t && !_ && Z(W), N(_);
|
|
7852
7854
|
}, be = he.length > 0 && A === he.length, ue = A > 0 && !be, Ee = () => {
|
|
7853
7855
|
if (!(!t || he.length === 0))
|
|
7854
7856
|
if (be) {
|
|
7855
|
-
const
|
|
7857
|
+
const _ = new Set(he.map((Se) => Se.value)), X = K.filter((Se) => !_.has(Se));
|
|
7856
7858
|
J(X);
|
|
7857
7859
|
} else {
|
|
7858
|
-
const
|
|
7859
|
-
he.forEach((X) =>
|
|
7860
|
+
const _ = new Set(K);
|
|
7861
|
+
he.forEach((X) => _.add(X.value)), J(Array.from(_));
|
|
7860
7862
|
}
|
|
7861
7863
|
}, Re = K.length > 0;
|
|
7862
7864
|
ve(() => {
|
|
7863
|
-
D &&
|
|
7864
|
-
const
|
|
7865
|
-
if (!
|
|
7866
|
-
|
|
7867
|
-
const X =
|
|
7868
|
-
|
|
7869
|
-
});
|
|
7870
|
-
}, [D,
|
|
7871
|
-
const
|
|
7872
|
-
() =>
|
|
7873
|
-
[e,
|
|
7865
|
+
D && y && !t && !v && requestAnimationFrame(() => {
|
|
7866
|
+
const _ = ee.current;
|
|
7867
|
+
if (!_) return;
|
|
7868
|
+
_.focus();
|
|
7869
|
+
const X = _.value?.length ?? 0;
|
|
7870
|
+
_.setSelectionRange?.(X, X);
|
|
7871
|
+
});
|
|
7872
|
+
}, [D, y, t, v]);
|
|
7873
|
+
const Le = !t && Re ? K[0] : void 0, Ie = B(
|
|
7874
|
+
() => Le ? e.find((_) => _.value === Le) : void 0,
|
|
7875
|
+
[e, Le]
|
|
7874
7876
|
), pt = I(() => !t || K.length === 0 ? null : /* @__PURE__ */ C(
|
|
7875
7877
|
Vg,
|
|
7876
7878
|
{
|
|
@@ -7878,15 +7880,15 @@ const K0 = ({
|
|
|
7878
7880
|
selectedValues: K,
|
|
7879
7881
|
handleRemoveTag: oe
|
|
7880
7882
|
}
|
|
7881
|
-
), [t, e, K, oe]), Ce = I(() => t ? Re ? pt() : /* @__PURE__ */ C("span", { className: "text-secondary truncate", children: c }) :
|
|
7882
|
-
|
|
7883
|
+
), [t, e, K, oe]), Ce = I(() => t ? Re ? pt() : /* @__PURE__ */ C("span", { className: "text-secondary truncate", children: c }) : Ie ? /* @__PURE__ */ z(Ke, { children: [
|
|
7884
|
+
Ie.icon && /* @__PURE__ */ C(He, { icon: Ie.icon }),
|
|
7883
7885
|
/* @__PURE__ */ C(
|
|
7884
7886
|
os,
|
|
7885
7887
|
{
|
|
7886
|
-
text: a ? `${a} ${
|
|
7888
|
+
text: a ? `${a} ${Ie.label}` : Ie.label
|
|
7887
7889
|
}
|
|
7888
7890
|
),
|
|
7889
|
-
|
|
7891
|
+
Ie?.description && /* @__PURE__ */ C("div", { className: "text-secondary dial-small", children: Ie.description })
|
|
7890
7892
|
] }) : l && i ? l : /* @__PURE__ */ C("span", { className: "text-secondary truncate", children: c }), [
|
|
7891
7893
|
Re,
|
|
7892
7894
|
t,
|
|
@@ -7895,16 +7897,16 @@ const K0 = ({
|
|
|
7895
7897
|
i,
|
|
7896
7898
|
c,
|
|
7897
7899
|
pt,
|
|
7898
|
-
|
|
7899
|
-
]), Fe =
|
|
7900
|
+
Ie
|
|
7901
|
+
]), Fe = B(() => W || Ie?.label || "", [W, Ie]);
|
|
7900
7902
|
Vr(P, () => ({
|
|
7901
7903
|
dismiss: () => {
|
|
7902
7904
|
N(!1);
|
|
7903
7905
|
}
|
|
7904
7906
|
}));
|
|
7905
|
-
const
|
|
7907
|
+
const ke = () => {
|
|
7906
7908
|
G(
|
|
7907
|
-
K.length === 1 ?
|
|
7909
|
+
K.length === 1 ? Ie?.label ?? W : ""
|
|
7908
7910
|
);
|
|
7909
7911
|
};
|
|
7910
7912
|
return /* @__PURE__ */ C(
|
|
@@ -7933,7 +7935,7 @@ const K0 = ({
|
|
|
7933
7935
|
{
|
|
7934
7936
|
placeholder: u,
|
|
7935
7937
|
onChange: G,
|
|
7936
|
-
value:
|
|
7938
|
+
value: W,
|
|
7937
7939
|
elementId: `search-${s || F}`
|
|
7938
7940
|
}
|
|
7939
7941
|
),
|
|
@@ -7943,8 +7945,8 @@ const K0 = ({
|
|
|
7943
7945
|
"aria-label": "Close select",
|
|
7944
7946
|
className: "shrink-0",
|
|
7945
7947
|
iconBefore: /* @__PURE__ */ C(so, { size: 16 }),
|
|
7946
|
-
onClick: (
|
|
7947
|
-
x?.(
|
|
7948
|
+
onClick: (_) => {
|
|
7949
|
+
x?.(_), N(!1);
|
|
7948
7950
|
}
|
|
7949
7951
|
}
|
|
7950
7952
|
)
|
|
@@ -7965,80 +7967,80 @@ const K0 = ({
|
|
|
7965
7967
|
{
|
|
7966
7968
|
className: Q(
|
|
7967
7969
|
"overflow-y-auto max-h-[352px]",
|
|
7968
|
-
|
|
7970
|
+
y && Y.length === 0 ? "" : "py-1"
|
|
7969
7971
|
),
|
|
7970
|
-
children: Y.length === 0 ? !
|
|
7972
|
+
children: Y.length === 0 ? !y && /* @__PURE__ */ C("div", { className: "px-2 py-3", children: /* @__PURE__ */ C(
|
|
7971
7973
|
Ec,
|
|
7972
7974
|
{
|
|
7973
7975
|
icon: m ?? /* @__PURE__ */ C(Zh, { size: 24 }),
|
|
7974
7976
|
title: p,
|
|
7975
7977
|
description: f
|
|
7976
7978
|
}
|
|
7977
|
-
) }) : Y.map((
|
|
7978
|
-
const X = K.includes(
|
|
7979
|
+
) }) : Y.map((_) => {
|
|
7980
|
+
const X = K.includes(_.value);
|
|
7979
7981
|
return t ? /* @__PURE__ */ z(
|
|
7980
7982
|
"div",
|
|
7981
7983
|
{
|
|
7982
7984
|
role: "option",
|
|
7983
7985
|
"aria-selected": X,
|
|
7984
|
-
"aria-disabled": !!
|
|
7986
|
+
"aria-disabled": !!_.disabled,
|
|
7985
7987
|
className: Q(
|
|
7986
7988
|
Ea,
|
|
7987
7989
|
X && _0,
|
|
7988
|
-
|
|
7990
|
+
_.disabled && au,
|
|
7989
7991
|
"w-full"
|
|
7990
7992
|
),
|
|
7991
7993
|
children: [
|
|
7992
7994
|
/* @__PURE__ */ C(
|
|
7993
7995
|
lr,
|
|
7994
7996
|
{
|
|
7995
|
-
id: `${s || F}-${
|
|
7997
|
+
id: `${s || F}-${_.value}`,
|
|
7996
7998
|
label: /* @__PURE__ */ z("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
|
|
7997
|
-
|
|
7998
|
-
/* @__PURE__ */ C("span", { className: "truncate", children:
|
|
7999
|
+
_.icon && /* @__PURE__ */ C(He, { icon: _.icon }),
|
|
8000
|
+
/* @__PURE__ */ C("span", { className: "truncate", children: _.label })
|
|
7999
8001
|
] }),
|
|
8000
8002
|
checked: X,
|
|
8001
|
-
disabled:
|
|
8002
|
-
onChange: () => !
|
|
8003
|
-
ariaLabel:
|
|
8003
|
+
disabled: _.disabled,
|
|
8004
|
+
onChange: () => !_.disabled && Z(_.value),
|
|
8005
|
+
ariaLabel: _.label
|
|
8004
8006
|
}
|
|
8005
8007
|
),
|
|
8006
|
-
|
|
8008
|
+
_.description && /* @__PURE__ */ C("div", { className: "text-secondary dial-small", children: _.description })
|
|
8007
8009
|
]
|
|
8008
8010
|
},
|
|
8009
|
-
|
|
8011
|
+
_.value
|
|
8010
8012
|
) : /* @__PURE__ */ C(
|
|
8011
8013
|
"button",
|
|
8012
8014
|
{
|
|
8013
8015
|
role: "option",
|
|
8014
8016
|
type: "button",
|
|
8015
8017
|
"aria-selected": X,
|
|
8016
|
-
"aria-disabled": !!
|
|
8017
|
-
disabled:
|
|
8018
|
+
"aria-disabled": !!_.disabled,
|
|
8019
|
+
disabled: _.disabled,
|
|
8018
8020
|
className: Q(
|
|
8019
8021
|
Ea,
|
|
8020
8022
|
X && U0,
|
|
8021
|
-
|
|
8023
|
+
_.disabled && au
|
|
8022
8024
|
),
|
|
8023
|
-
onClick: () => !
|
|
8025
|
+
onClick: () => !_.disabled && Z(_.value),
|
|
8024
8026
|
children: /* @__PURE__ */ z("div", { className: "flex items-center gap-2 w-full", children: [
|
|
8025
|
-
|
|
8026
|
-
/* @__PURE__ */ C(os, { text:
|
|
8027
|
-
|
|
8027
|
+
_.icon && /* @__PURE__ */ C(He, { icon: _.icon }),
|
|
8028
|
+
/* @__PURE__ */ C(os, { text: _.label }),
|
|
8029
|
+
_.description && /* @__PURE__ */ C("div", { className: "text-secondary dial-small", children: _.description })
|
|
8028
8030
|
] })
|
|
8029
8031
|
},
|
|
8030
|
-
|
|
8032
|
+
_.value
|
|
8031
8033
|
);
|
|
8032
8034
|
})
|
|
8033
8035
|
}
|
|
8034
8036
|
),
|
|
8035
|
-
|
|
8037
|
+
R && /* @__PURE__ */ C(
|
|
8036
8038
|
"div",
|
|
8037
8039
|
{
|
|
8038
|
-
onClick: (
|
|
8039
|
-
T?.(
|
|
8040
|
+
onClick: (_) => {
|
|
8041
|
+
T?.(_), T && N(!1);
|
|
8040
8042
|
},
|
|
8041
|
-
children: typeof
|
|
8043
|
+
children: typeof R == "function" ? R() : R
|
|
8042
8044
|
}
|
|
8043
8045
|
)
|
|
8044
8046
|
]
|
|
@@ -8058,27 +8060,27 @@ const K0 = ({
|
|
|
8058
8060
|
n === El.Secondary ? "!bg-layer-4" : "",
|
|
8059
8061
|
w
|
|
8060
8062
|
),
|
|
8061
|
-
onMouseDown: (
|
|
8062
|
-
v ||
|
|
8063
|
+
onMouseDown: (_) => {
|
|
8064
|
+
v || y && !t && (ke(), _.preventDefault());
|
|
8063
8065
|
},
|
|
8064
8066
|
onClick: () => {
|
|
8065
|
-
v || (N((
|
|
8067
|
+
v || (N((_) => !_), y && !t && (ke(), ee.current?.focus()));
|
|
8066
8068
|
},
|
|
8067
8069
|
children: [
|
|
8068
|
-
|
|
8070
|
+
y && !t ? /* @__PURE__ */ C("div", { className: "flex min-w-0 items-center gap-2 text-primary flex-1", children: /* @__PURE__ */ C(
|
|
8069
8071
|
"input",
|
|
8070
8072
|
{
|
|
8071
8073
|
id: `inline-${s || F}`,
|
|
8072
8074
|
type: "text",
|
|
8073
8075
|
placeholder: u ?? c,
|
|
8074
8076
|
value: Fe,
|
|
8075
|
-
onChange: (
|
|
8077
|
+
onChange: (_) => G(_.currentTarget.value),
|
|
8076
8078
|
onFocus: () => !v && N(!0),
|
|
8077
|
-
onMouseDown: (
|
|
8078
|
-
|
|
8079
|
+
onMouseDown: (_) => {
|
|
8080
|
+
ke(), _.stopPropagation();
|
|
8079
8081
|
},
|
|
8080
|
-
onClick: (
|
|
8081
|
-
|
|
8082
|
+
onClick: (_) => {
|
|
8083
|
+
_.stopPropagation();
|
|
8082
8084
|
},
|
|
8083
8085
|
className: "bg-transparent outline-none w-full dial-small",
|
|
8084
8086
|
ref: ee,
|
|
@@ -8086,7 +8088,7 @@ const K0 = ({
|
|
|
8086
8088
|
"aria-disabled": v
|
|
8087
8089
|
}
|
|
8088
8090
|
) }) : /* @__PURE__ */ C("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: Ce() }),
|
|
8089
|
-
!
|
|
8091
|
+
!y && /* @__PURE__ */ C(
|
|
8090
8092
|
He,
|
|
8091
8093
|
{
|
|
8092
8094
|
icon: j0,
|
|
@@ -8740,13 +8742,13 @@ const aS = function(t, s, i) {
|
|
|
8740
8742
|
), v = I(
|
|
8741
8743
|
(F) => n && F?.length > n,
|
|
8742
8744
|
[n]
|
|
8743
|
-
), w =
|
|
8745
|
+
), w = B(() => p || v(h), [p, h, v]), b = () => {
|
|
8744
8746
|
g([]), f(!1);
|
|
8745
8747
|
};
|
|
8746
8748
|
ve(() => {
|
|
8747
8749
|
b();
|
|
8748
8750
|
}, [o]);
|
|
8749
|
-
const [{ isOver: S, canDrop:
|
|
8751
|
+
const [{ isOver: S, canDrop: R }, x] = Pg(
|
|
8750
8752
|
() => ({
|
|
8751
8753
|
accept: [Hc],
|
|
8752
8754
|
drop(F) {
|
|
@@ -8761,7 +8763,7 @@ const aS = function(t, s, i) {
|
|
|
8761
8763
|
[m]
|
|
8762
8764
|
), E = (F) => {
|
|
8763
8765
|
(F.key === "Enter" || F.key === "Space") && (F.preventDefault(), u.current?.click());
|
|
8764
|
-
},
|
|
8766
|
+
}, y = (F) => {
|
|
8765
8767
|
F?.preventDefault();
|
|
8766
8768
|
const D = Array.from(F.dataTransfer?.items ?? []);
|
|
8767
8769
|
f(!!c?.(D)), g(D);
|
|
@@ -8769,8 +8771,8 @@ const aS = function(t, s, i) {
|
|
|
8769
8771
|
F.target === F.currentTarget && b();
|
|
8770
8772
|
}, T = Q(
|
|
8771
8773
|
"border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
|
|
8772
|
-
!
|
|
8773
|
-
|
|
8774
|
+
!R && !w && "border-primary",
|
|
8775
|
+
R && (S ? "border-accent-primary" : "border-hover"),
|
|
8774
8776
|
w && "border-error"
|
|
8775
8777
|
);
|
|
8776
8778
|
return x(d), /* @__PURE__ */ z(Ke, { children: [
|
|
@@ -8779,7 +8781,7 @@ const aS = function(t, s, i) {
|
|
|
8779
8781
|
{
|
|
8780
8782
|
className: T,
|
|
8781
8783
|
ref: d,
|
|
8782
|
-
onDragOver:
|
|
8784
|
+
onDragOver: y,
|
|
8783
8785
|
onDragLeave: P,
|
|
8784
8786
|
children: [
|
|
8785
8787
|
/* @__PURE__ */ z(
|
|
@@ -8795,7 +8797,7 @@ const aS = function(t, s, i) {
|
|
|
8795
8797
|
i && /* @__PURE__ */ C(
|
|
8796
8798
|
De,
|
|
8797
8799
|
{
|
|
8798
|
-
variant:
|
|
8800
|
+
variant: Ae.Tertiary,
|
|
8799
8801
|
label: i,
|
|
8800
8802
|
onClick: () => u.current?.click()
|
|
8801
8803
|
}
|
|
@@ -8914,7 +8916,7 @@ const aS = function(t, s, i) {
|
|
|
8914
8916
|
/* @__PURE__ */ C(
|
|
8915
8917
|
De,
|
|
8916
8918
|
{
|
|
8917
|
-
variant:
|
|
8919
|
+
variant: Ae.Tertiary,
|
|
8918
8920
|
className: "!text-error",
|
|
8919
8921
|
iconBefore: /* @__PURE__ */ C(tn, { ...de }),
|
|
8920
8922
|
label: c,
|
|
@@ -8924,7 +8926,7 @@ const aS = function(t, s, i) {
|
|
|
8924
8926
|
(o ? o > i?.length : !0) && /* @__PURE__ */ C(
|
|
8925
8927
|
De,
|
|
8926
8928
|
{
|
|
8927
|
-
variant:
|
|
8929
|
+
variant: Ae.Tertiary,
|
|
8928
8930
|
iconBefore: /* @__PURE__ */ C(Cv, { ...de }),
|
|
8929
8931
|
label: d,
|
|
8930
8932
|
onClick: g
|
|
@@ -8960,7 +8962,7 @@ const aS = function(t, s, i) {
|
|
|
8960
8962
|
)
|
|
8961
8963
|
] });
|
|
8962
8964
|
}, uS = /* @__PURE__ */ C(zr, { size: 16 }), hS = /* @__PURE__ */ C(vv, { size: 16 }), uu = (e) => {
|
|
8963
|
-
const [t, s] = k(!1), i =
|
|
8965
|
+
const [t, s] = k(!1), i = B(() => t ? hS : uS, [t]);
|
|
8964
8966
|
return /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C(
|
|
8965
8967
|
Et,
|
|
8966
8968
|
{
|
|
@@ -9147,8 +9149,8 @@ function AS({
|
|
|
9147
9149
|
const w = h.current;
|
|
9148
9150
|
if (!w) return;
|
|
9149
9151
|
const b = (S) => {
|
|
9150
|
-
const
|
|
9151
|
-
|
|
9152
|
+
const R = S.relatedTarget;
|
|
9153
|
+
R && w.contains(R) || (p(r) ? m() : w.focus());
|
|
9152
9154
|
};
|
|
9153
9155
|
return w.addEventListener("blur", b), () => {
|
|
9154
9156
|
w.removeEventListener("blur", b);
|
|
@@ -9209,10 +9211,10 @@ const pr = ({
|
|
|
9209
9211
|
}
|
|
9210
9212
|
);
|
|
9211
9213
|
}, qg = (e) => {
|
|
9212
|
-
const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i =
|
|
9214
|
+
const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = B(
|
|
9213
9215
|
() => !!e?.onExpandedPathsChange,
|
|
9214
9216
|
[e?.onExpandedPathsChange]
|
|
9215
|
-
), o =
|
|
9217
|
+
), o = B(
|
|
9216
9218
|
() => i ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
|
|
9217
9219
|
[i, e?.expandedPaths, t]
|
|
9218
9220
|
), n = I(
|
|
@@ -9272,14 +9274,14 @@ const pr = ({
|
|
|
9272
9274
|
const { expandedPaths: v, togglePath: w } = qg({
|
|
9273
9275
|
expandedPaths: s ?? /* @__PURE__ */ new Set(),
|
|
9274
9276
|
onExpandedPathsChange: m
|
|
9275
|
-
}), b = (
|
|
9276
|
-
u?.(
|
|
9277
|
-
}, S = (
|
|
9278
|
-
const { path:
|
|
9277
|
+
}), b = (R) => {
|
|
9278
|
+
u?.(R), w(R.path);
|
|
9279
|
+
}, S = (R, x) => R.map((E) => {
|
|
9280
|
+
const { path: y, nodeType: P, name: T, items: F } = E, D = P === Je.FOLDER;
|
|
9279
9281
|
if (!c && Kg(E)) return null;
|
|
9280
9282
|
if (!D && !t) return;
|
|
9281
|
-
const N = Array.isArray(F) && F.length > 0 && F.some((Y) => Y.nodeType === Je.FOLDER || t),
|
|
9282
|
-
return /* @__PURE__ */ C("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ z("div", { className: "flex flex-col
|
|
9283
|
+
const N = Array.isArray(F) && F.length > 0 && F.some((Y) => Y.nodeType === Je.FOLDER || t), W = v.has(y), G = n === y, ee = i.has(y), se = d === y, H = o.has(y), ie = f && ((Y) => f(Y, E)), $ = G ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", K = h?.(E) ?? [];
|
|
9284
|
+
return /* @__PURE__ */ C("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ z("div", { className: "flex flex-col w-full", children: [
|
|
9283
9285
|
/* @__PURE__ */ C(
|
|
9284
9286
|
Et,
|
|
9285
9287
|
{
|
|
@@ -9315,7 +9317,7 @@ const pr = ({
|
|
|
9315
9317
|
...TS,
|
|
9316
9318
|
className: Q(
|
|
9317
9319
|
"flex-shrink-0",
|
|
9318
|
-
|
|
9320
|
+
W && "rotate-90 transition-all",
|
|
9319
9321
|
H && !N && "text-transparent"
|
|
9320
9322
|
)
|
|
9321
9323
|
}
|
|
@@ -9323,7 +9325,7 @@ const pr = ({
|
|
|
9323
9325
|
/* @__PURE__ */ C(
|
|
9324
9326
|
pr,
|
|
9325
9327
|
{
|
|
9326
|
-
elementId: `${
|
|
9328
|
+
elementId: `${y}-tree-item`,
|
|
9327
9329
|
name: T,
|
|
9328
9330
|
type: D ? Wt.Folder : Wt.File,
|
|
9329
9331
|
loading: ee,
|
|
@@ -9358,8 +9360,8 @@ const pr = ({
|
|
|
9358
9360
|
)
|
|
9359
9361
|
}
|
|
9360
9362
|
),
|
|
9361
|
-
|
|
9362
|
-
] }) }, `${
|
|
9363
|
+
W && F && S(F, x + 1)
|
|
9364
|
+
] }) }, `${y}-children`);
|
|
9363
9365
|
});
|
|
9364
9366
|
return /* @__PURE__ */ C("div", { className: "flex-1 w-full h-full overflow-y-auto", children: e.length > 0 ? S(e, 0) : /* @__PURE__ */ C(
|
|
9365
9367
|
Ec,
|
|
@@ -9390,32 +9392,32 @@ const pr = ({
|
|
|
9390
9392
|
searchContainerClassName: v,
|
|
9391
9393
|
isCompactView: w = !1
|
|
9392
9394
|
}) => {
|
|
9393
|
-
const b =
|
|
9395
|
+
const b = B(() => {
|
|
9394
9396
|
if (!i) return;
|
|
9395
|
-
const
|
|
9396
|
-
if (!
|
|
9397
|
-
const P =
|
|
9398
|
-
const D =
|
|
9397
|
+
const y = i.split("/").map((T) => T.trim()).filter(Boolean);
|
|
9398
|
+
if (!y.length) return [{ title: "/" }];
|
|
9399
|
+
const P = y.map((T, F) => {
|
|
9400
|
+
const D = y.slice(0, F + 1), N = typeof o == "function" ? o(D, F) : void 0;
|
|
9399
9401
|
return {
|
|
9400
9402
|
title: T,
|
|
9401
9403
|
href: N,
|
|
9402
|
-
onClick: s ? (
|
|
9403
|
-
|
|
9404
|
+
onClick: s ? (W) => {
|
|
9405
|
+
W.preventDefault(), s(N);
|
|
9404
9406
|
} : void 0
|
|
9405
9407
|
};
|
|
9406
9408
|
});
|
|
9407
9409
|
if (n && r) {
|
|
9408
9410
|
const T = n.split("/").filter(Boolean), F = i.split("/").filter(Boolean);
|
|
9409
9411
|
if (T.every(
|
|
9410
|
-
(N,
|
|
9412
|
+
(N, W) => F[W] === N
|
|
9411
9413
|
) && P.length > 0) {
|
|
9412
9414
|
const N = P.slice(T.length);
|
|
9413
9415
|
return [
|
|
9414
9416
|
{
|
|
9415
9417
|
title: r,
|
|
9416
9418
|
href: n,
|
|
9417
|
-
onClick: s ? (
|
|
9418
|
-
|
|
9419
|
+
onClick: s ? (W) => {
|
|
9420
|
+
W.preventDefault(), s(n);
|
|
9419
9421
|
} : void 0
|
|
9420
9422
|
},
|
|
9421
9423
|
...N
|
|
@@ -9423,20 +9425,20 @@ const pr = ({
|
|
|
9423
9425
|
}
|
|
9424
9426
|
}
|
|
9425
9427
|
return P;
|
|
9426
|
-
}, [i, o, s, n, r]), [S,
|
|
9428
|
+
}, [i, o, s, n, r]), [S, R] = k(!1), x = I(() => {
|
|
9427
9429
|
if (!S) {
|
|
9428
|
-
|
|
9429
|
-
const
|
|
9430
|
-
|
|
9430
|
+
R(!0);
|
|
9431
|
+
const y = document.getElementById(u);
|
|
9432
|
+
y && y.focus();
|
|
9431
9433
|
}
|
|
9432
9434
|
}, [u, S]), E = I(() => w && S ? /* @__PURE__ */ C(
|
|
9433
9435
|
De,
|
|
9434
9436
|
{
|
|
9435
9437
|
className: "!p-[9px]",
|
|
9436
|
-
variant:
|
|
9438
|
+
variant: Ae.Secondary,
|
|
9437
9439
|
iconBefore: /* @__PURE__ */ C(Sv, { ...de }),
|
|
9438
9440
|
onClick: () => {
|
|
9439
|
-
|
|
9441
|
+
R(!1), f?.("");
|
|
9440
9442
|
}
|
|
9441
9443
|
}
|
|
9442
9444
|
) : /* @__PURE__ */ C("div", { className: NS, children: /* @__PURE__ */ C(
|
|
@@ -10626,7 +10628,7 @@ var zy = (e, t, s) => {
|
|
|
10626
10628
|
` : ""}Visit ${i}`}${s ? "" : `
|
|
10627
10629
|
Alternatively register the ValidationModule to see the full message in the console.`}`;
|
|
10628
10630
|
};
|
|
10629
|
-
function
|
|
10631
|
+
function V(...e) {
|
|
10630
10632
|
Yc(Lo, e[0], e[1], !0);
|
|
10631
10633
|
}
|
|
10632
10634
|
function Pe(...e) {
|
|
@@ -10673,7 +10675,7 @@ function Ls(e, t, s = !1, i) {
|
|
|
10673
10675
|
data: t.data
|
|
10674
10676
|
}, c = o.getCallback("getRowHeight")(l);
|
|
10675
10677
|
if (Al(c))
|
|
10676
|
-
return c === 0 &&
|
|
10678
|
+
return c === 0 && V(23), { height: Math.max(1, c), estimated: !1 };
|
|
10677
10679
|
}
|
|
10678
10680
|
if (t.detail && o.get("masterDetail"))
|
|
10679
10681
|
return Uy(o);
|
|
@@ -10691,7 +10693,7 @@ function ei(e) {
|
|
|
10691
10693
|
if (!i || Ve(i))
|
|
10692
10694
|
return t.getDefaultRowHeight();
|
|
10693
10695
|
const o = t.refreshRowHeightVariable();
|
|
10694
|
-
return o !== -1 ? o : (
|
|
10696
|
+
return o !== -1 ? o : (V(24), t.getDefaultRowHeight());
|
|
10695
10697
|
}
|
|
10696
10698
|
function Al(e) {
|
|
10697
10699
|
return !isNaN(e) && typeof e == "number" && isFinite(e);
|
|
@@ -10734,7 +10736,7 @@ function Qi(e) {
|
|
|
10734
10736
|
const t = e.getCallback("getRowId");
|
|
10735
10737
|
return t === void 0 ? t : (s) => {
|
|
10736
10738
|
let i = t(s);
|
|
10737
|
-
return typeof i != "string" && ($c(() =>
|
|
10739
|
+
return typeof i != "string" && ($c(() => V(25, { id: i }), "getRowIdString"), i = String(i)), i;
|
|
10738
10740
|
};
|
|
10739
10741
|
}
|
|
10740
10742
|
function $y(e, t) {
|
|
@@ -11125,7 +11127,7 @@ var mi = class extends L {
|
|
|
11125
11127
|
}
|
|
11126
11128
|
/** @deprecated v33 Use `api.isColumnHovered(column)` instead. */
|
|
11127
11129
|
isHovered() {
|
|
11128
|
-
return
|
|
11130
|
+
return V(261), !!this.beans.colHover?.isHovered(this);
|
|
11129
11131
|
}
|
|
11130
11132
|
setFirstRightPinned(e, t) {
|
|
11131
11133
|
this.firstRightPinned !== e && (this.firstRightPinned = e, this.dispatchColEvent("firstRightPinnedChanged", t));
|
|
@@ -11425,7 +11427,7 @@ var rR = class {
|
|
|
11425
11427
|
let i = e ?? t;
|
|
11426
11428
|
if (i ? s !== 0 && (i += "_" + s) : i = s, !this.existingKeys[i]) {
|
|
11427
11429
|
const o = String(i);
|
|
11428
|
-
return e && s > 0 &&
|
|
11430
|
+
return e && s > 0 && V(273, { providedId: e, usedId: o }), this.existingKeys[o] = !0, o;
|
|
11429
11431
|
}
|
|
11430
11432
|
s++;
|
|
11431
11433
|
}
|
|
@@ -11659,11 +11661,11 @@ function vR(e, t, s) {
|
|
|
11659
11661
|
const i = Object.assign({}, nR), o = e.gos.get("columnTypes") || {};
|
|
11660
11662
|
for (const n of Object.keys(o)) {
|
|
11661
11663
|
const r = o[n];
|
|
11662
|
-
n in i ?
|
|
11664
|
+
n in i ? V(34, { key: n }) : (r.type && V(35), i[n] = r);
|
|
11663
11665
|
}
|
|
11664
11666
|
for (const n of t) {
|
|
11665
11667
|
const r = i[n.trim()];
|
|
11666
|
-
r ? mt(s, r, !1, !0) :
|
|
11668
|
+
r ? mt(s, r, !1, !0) : V(36, { t: n });
|
|
11667
11669
|
}
|
|
11668
11670
|
}
|
|
11669
11671
|
function wR(e) {
|
|
@@ -11770,14 +11772,14 @@ function _t(e, t, s) {
|
|
|
11770
11772
|
if (!f.length && !m?.length)
|
|
11771
11773
|
return !1;
|
|
11772
11774
|
if (t?.state && !t.state.forEach)
|
|
11773
|
-
return
|
|
11774
|
-
const v = (
|
|
11775
|
-
if (!
|
|
11775
|
+
return V(32), !1;
|
|
11776
|
+
const v = (R, x, E, y, P) => {
|
|
11777
|
+
if (!R)
|
|
11776
11778
|
return;
|
|
11777
11779
|
const T = dR(x, t.defaultState), F = T("flex").value1;
|
|
11778
11780
|
if (Gp(
|
|
11779
11781
|
e,
|
|
11780
|
-
|
|
11782
|
+
R,
|
|
11781
11783
|
T("hide").value1,
|
|
11782
11784
|
T("sort").value1,
|
|
11783
11785
|
T("sortIndex").value1,
|
|
@@ -11787,27 +11789,27 @@ function _t(e, t, s) {
|
|
|
11787
11789
|
), F == null) {
|
|
11788
11790
|
const D = T("width").value1;
|
|
11789
11791
|
if (D != null) {
|
|
11790
|
-
const N =
|
|
11791
|
-
N != null && D >= N &&
|
|
11792
|
+
const N = R.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
|
|
11793
|
+
N != null && D >= N && R.setActualWidth(D, s);
|
|
11792
11794
|
}
|
|
11793
11795
|
}
|
|
11794
|
-
P || !
|
|
11795
|
-
}, w = (
|
|
11796
|
-
const
|
|
11796
|
+
P || !R.isPrimary() || (h?.syncColumnWithState(R, s, T), o?.syncColumnWithState(R, s, T, E), n?.syncColumnWithState(R, s, T, y));
|
|
11797
|
+
}, w = (R, x, E) => {
|
|
11798
|
+
const y = _p(e, s), P = x.slice(), T = {}, F = {}, D = [], N = [], W = [];
|
|
11797
11799
|
let G = 0;
|
|
11798
11800
|
const ee = o?.columns.slice() ?? [], se = n?.columns.slice() ?? [];
|
|
11799
|
-
for (const $ of
|
|
11801
|
+
for (const $ of R) {
|
|
11800
11802
|
const K = $.colId;
|
|
11801
11803
|
if (K.startsWith(Yr)) {
|
|
11802
|
-
D.push($),
|
|
11804
|
+
D.push($), W.push($);
|
|
11803
11805
|
continue;
|
|
11804
11806
|
}
|
|
11805
11807
|
if (Rs(K)) {
|
|
11806
|
-
N.push($),
|
|
11808
|
+
N.push($), W.push($);
|
|
11807
11809
|
continue;
|
|
11808
11810
|
}
|
|
11809
11811
|
const J = E(K);
|
|
11810
|
-
J ? (v(J, $, T, F, !1), Ut(P, J)) : (
|
|
11812
|
+
J ? (v(J, $, T, F, !1), Ut(P, J)) : (W.push($), G += 1);
|
|
11811
11813
|
}
|
|
11812
11814
|
const H = ($) => v($, null, T, F, !1);
|
|
11813
11815
|
P.forEach(H), o?.sortColumns(Fu.bind(o, T, ee)), n?.sortColumns(Fu.bind(n, F, se)), i.refreshCols(!1, s);
|
|
@@ -11829,19 +11831,19 @@ function _t(e, t, s) {
|
|
|
11829
11831
|
), RR(t, i, p), c.refresh(s), g.dispatchEvent({
|
|
11830
11832
|
type: "columnEverythingChanged",
|
|
11831
11833
|
source: s
|
|
11832
|
-
}),
|
|
11834
|
+
}), y(), { unmatchedAndAutoStates: W, unmatchedCount: G };
|
|
11833
11835
|
};
|
|
11834
11836
|
l?.start();
|
|
11835
11837
|
let { unmatchedAndAutoStates: b, unmatchedCount: S } = w(
|
|
11836
11838
|
t.state || [],
|
|
11837
11839
|
f,
|
|
11838
|
-
(
|
|
11840
|
+
(R) => i.getColDefCol(R)
|
|
11839
11841
|
);
|
|
11840
11842
|
if (b.length > 0 || q(t.defaultState)) {
|
|
11841
|
-
const
|
|
11843
|
+
const R = d?.getPivotResultCols()?.list ?? [];
|
|
11842
11844
|
S = w(
|
|
11843
11845
|
b,
|
|
11844
|
-
|
|
11846
|
+
R,
|
|
11845
11847
|
(x) => d?.getPivotResultCol(x) ?? null
|
|
11846
11848
|
).unmatchedCount;
|
|
11847
11849
|
}
|
|
@@ -11870,25 +11872,25 @@ function _p(e, t) {
|
|
|
11870
11872
|
for (const u of c)
|
|
11871
11873
|
d[u.colId] = u;
|
|
11872
11874
|
return () => {
|
|
11873
|
-
const u = (x, E,
|
|
11874
|
-
const T = E.map(P), F =
|
|
11875
|
+
const u = (x, E, y, P) => {
|
|
11876
|
+
const T = E.map(P), F = y.map(P);
|
|
11875
11877
|
if (Bs(T, F))
|
|
11876
11878
|
return;
|
|
11877
11879
|
const N = new Set(E);
|
|
11878
|
-
for (const G of
|
|
11880
|
+
for (const G of y)
|
|
11879
11881
|
N.delete(G) || N.add(G);
|
|
11880
|
-
const
|
|
11882
|
+
const W = [...N];
|
|
11881
11883
|
a.dispatchEvent({
|
|
11882
11884
|
type: x,
|
|
11883
|
-
columns:
|
|
11884
|
-
column:
|
|
11885
|
+
columns: W,
|
|
11886
|
+
column: W.length === 1 ? W[0] : null,
|
|
11885
11887
|
source: t
|
|
11886
11888
|
});
|
|
11887
11889
|
}, h = (x) => {
|
|
11888
11890
|
const E = [];
|
|
11889
|
-
return n.forAllCols((
|
|
11890
|
-
const P = d[
|
|
11891
|
-
P && x(P,
|
|
11891
|
+
return n.forAllCols((y) => {
|
|
11892
|
+
const P = d[y.getColId()];
|
|
11893
|
+
P && x(P, y) && E.push(y);
|
|
11892
11894
|
}), E;
|
|
11893
11895
|
}, g = (x) => x.getColId();
|
|
11894
11896
|
u(
|
|
@@ -11903,14 +11905,14 @@ function _p(e, t) {
|
|
|
11903
11905
|
g
|
|
11904
11906
|
);
|
|
11905
11907
|
const f = h((x, E) => {
|
|
11906
|
-
const
|
|
11908
|
+
const y = x.aggFunc != null, P = y != E.isValueActive(), T = y && x.aggFunc != E.getAggFunc();
|
|
11907
11909
|
return P || T;
|
|
11908
11910
|
});
|
|
11909
11911
|
f.length > 0 && SR(a, "columnValueChanged", f, t), Xi(a, h((x, E) => x.width != E.getActualWidth()), !0, t), Wp(a, h((x, E) => x.pinned != E.getPinned()), t), bR(a, h((x, E) => x.hide == E.isVisible()), t);
|
|
11910
11912
|
const S = h((x, E) => x.sort != E.getSort() || x.sortIndex != E.getSortIndex());
|
|
11911
11913
|
S.length > 0 && r?.dispatchSortChangedEvents(t, S);
|
|
11912
|
-
const
|
|
11913
|
-
FR(c,
|
|
11914
|
+
const R = Dr(e);
|
|
11915
|
+
FR(c, R, t, n, a);
|
|
11914
11916
|
};
|
|
11915
11917
|
}
|
|
11916
11918
|
function Dr(e) {
|
|
@@ -11992,7 +11994,7 @@ function xR(e, t, s, i) {
|
|
|
11992
11994
|
l.startsWith(Yr) ? o.splice(r++, 0, a) : o.push(a);
|
|
11993
11995
|
}
|
|
11994
11996
|
if (o = Bp(o, i), !Vp(o, s.getColTree())) {
|
|
11995
|
-
|
|
11997
|
+
V(39);
|
|
11996
11998
|
return;
|
|
11997
11999
|
}
|
|
11998
12000
|
e.list = o;
|
|
@@ -15564,7 +15566,7 @@ ${n}}
|
|
|
15564
15566
|
e?.onGridExit?.(t);
|
|
15565
15567
|
}
|
|
15566
15568
|
warnNoBody() {
|
|
15567
|
-
|
|
15569
|
+
V(54);
|
|
15568
15570
|
}
|
|
15569
15571
|
isDropZoneWithinThisGrid(e) {
|
|
15570
15572
|
return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget);
|
|
@@ -16025,7 +16027,7 @@ var Yo = class extends L {
|
|
|
16025
16027
|
* - `false` if the node is not a full width cell
|
|
16026
16028
|
*/
|
|
16027
16029
|
isFullWidthCell() {
|
|
16028
|
-
if (
|
|
16030
|
+
if (V(61), this.detail)
|
|
16029
16031
|
return !0;
|
|
16030
16032
|
const e = this.beans.gos.getCallback("isFullWidthRow");
|
|
16031
16033
|
return e ? e({ rowNode: this }) : !1;
|
|
@@ -16201,7 +16203,7 @@ var Ax = class extends _e {
|
|
|
16201
16203
|
event: v
|
|
16202
16204
|
});
|
|
16203
16205
|
};
|
|
16204
|
-
["apply", "clear", "reset", "cancel"].includes(c) ||
|
|
16206
|
+
["apply", "clear", "reset", "cancel"].includes(c) || V(75);
|
|
16205
16207
|
const h = c === "apply", p = vt({
|
|
16206
16208
|
tag: "button",
|
|
16207
16209
|
attrs: { type: h && t ? "submit" : "button" },
|
|
@@ -16297,7 +16299,7 @@ function Is(e, t, s) {
|
|
|
16297
16299
|
}
|
|
16298
16300
|
function ld(e, t) {
|
|
16299
16301
|
const { debounceMs: s } = e;
|
|
16300
|
-
return Xr(e) ? (s != null &&
|
|
16302
|
+
return Xr(e) ? (s != null && V(71), 0) : s ?? t;
|
|
16301
16303
|
}
|
|
16302
16304
|
function Xr(e) {
|
|
16303
16305
|
return (e.buttons?.indexOf("apply") ?? -1) >= 0;
|
|
@@ -16449,7 +16451,7 @@ var Ox = class extends _e {
|
|
|
16449
16451
|
);
|
|
16450
16452
|
this.comp = d, l = d.getGui();
|
|
16451
16453
|
} else
|
|
16452
|
-
l = a.getGui(), q(l) ||
|
|
16454
|
+
l = a.getGui(), q(l) || V(69, { guiFromFilter: l });
|
|
16453
16455
|
this.appendChild(l), e ? this.eventSvc.dispatchEvent({
|
|
16454
16456
|
type: "filterOpened",
|
|
16455
16457
|
column: t,
|
|
@@ -17078,7 +17080,7 @@ var $x = "ag-focus-managed", co = class extends L {
|
|
|
17078
17080
|
* @deprecated v34 Use the same method on the filter handler (`api.getColumnFilterHandler()`) instead.
|
|
17079
17081
|
*/
|
|
17080
17082
|
doesFilterPass(e) {
|
|
17081
|
-
|
|
17083
|
+
V(283);
|
|
17082
17084
|
const { getHandler: t, model: s, column: i } = this.params;
|
|
17083
17085
|
return t().doesFilterPass({
|
|
17084
17086
|
...e,
|
|
@@ -17093,7 +17095,7 @@ var $x = "ag-focus-managed", co = class extends L {
|
|
|
17093
17095
|
* @deprecated v34 Filters are active when they have a model. Use `api.getColumnFilterModel()` instead.
|
|
17094
17096
|
*/
|
|
17095
17097
|
isFilterActive() {
|
|
17096
|
-
return
|
|
17098
|
+
return V(284), this.params.model != null;
|
|
17097
17099
|
}
|
|
17098
17100
|
setupApplyDebounced() {
|
|
17099
17101
|
const e = ld(this.params, this.defaultDebounceMs), t = at(this, this.checkApplyDebounce.bind(this), e);
|
|
@@ -17108,13 +17110,13 @@ var $x = "ag-focus-managed", co = class extends L {
|
|
|
17108
17110
|
* @deprecated v34 Use (`api.getColumnFilterModel()`) instead.
|
|
17109
17111
|
*/
|
|
17110
17112
|
getModel() {
|
|
17111
|
-
return
|
|
17113
|
+
return V(285), this.params.model;
|
|
17112
17114
|
}
|
|
17113
17115
|
/**
|
|
17114
17116
|
* @deprecated v34 Use (`api.setColumnFilterModel()`) instead.
|
|
17115
17117
|
*/
|
|
17116
17118
|
setModel(e) {
|
|
17117
|
-
|
|
17119
|
+
V(286);
|
|
17118
17120
|
const { beans: t, params: s } = this;
|
|
17119
17121
|
return t.colFilter.setModelForColumnLegacy(s.column, e);
|
|
17120
17122
|
}
|
|
@@ -17490,7 +17492,7 @@ var er = {
|
|
|
17490
17492
|
return;
|
|
17491
17493
|
const { rowModel: i } = this.beans, o = i.getRowCount();
|
|
17492
17494
|
if (typeof e != "number" || e < 0 || e >= o) {
|
|
17493
|
-
|
|
17495
|
+
V(88, { index: e });
|
|
17494
17496
|
return;
|
|
17495
17497
|
}
|
|
17496
17498
|
this.clearRetryListeners();
|
|
@@ -17500,9 +17502,9 @@ var er = {
|
|
|
17500
17502
|
let u, h, g = 0;
|
|
17501
17503
|
this.invalidateVerticalScroll();
|
|
17502
17504
|
do {
|
|
17503
|
-
const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, v = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight,
|
|
17505
|
+
const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, v = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight, R = this.getVScrollPosition(), x = a.divStretchOffset, E = R.top + x, y = R.bottom + x, P = y - E, T = a.getScrollPositionForPixel(b), F = a.getScrollPositionForPixel(S - P), D = Math.min((T + F) / 2, b), N = E + p > b, W = y - f < S;
|
|
17504
17506
|
let G = null;
|
|
17505
|
-
t === "top" ? G = T - p : t === "bottom" ? G = F + f : t === "middle" ? G = D : N ? G = T - p :
|
|
17507
|
+
t === "top" ? G = T - p : t === "bottom" ? G = F + f : t === "middle" ? G = D : N ? G = T - p : W && (F - T > P ? G = T - p : G = F + f), G !== null && (this.setVerticalScrollPosition(G), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || v !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
|
|
17506
17508
|
} while ((u || h) && g < 10);
|
|
17507
17509
|
if (this.animationFrameSvc?.flushAllFrames(), s < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
|
|
17508
17510
|
const p = this.getVScrollPosition().top;
|
|
@@ -18883,8 +18885,8 @@ var GF = class extends L {
|
|
|
18883
18885
|
return;
|
|
18884
18886
|
const { paddingTop: h, paddingBottom: g, borderBottomWidth: p, borderTopWidth: f } = pi(this.eGui), m = h + g + p + f, w = t.offsetHeight + m;
|
|
18885
18887
|
if (u < 5) {
|
|
18886
|
-
const S = !it(o)?.contains(t),
|
|
18887
|
-
if (S ||
|
|
18888
|
+
const S = !it(o)?.contains(t), R = w == 0;
|
|
18889
|
+
if (S || R) {
|
|
18888
18890
|
Ml(() => n(u + 1), "raf", o);
|
|
18889
18891
|
return;
|
|
18890
18892
|
}
|
|
@@ -19753,7 +19755,7 @@ function qF(e, t, s) {
|
|
|
19753
19755
|
}
|
|
19754
19756
|
function Nt(e, t, s) {
|
|
19755
19757
|
let i = null;
|
|
19756
|
-
e === "smallDown" ?
|
|
19758
|
+
e === "smallDown" ? V(262) : e === "smallLeft" ? V(263) : e === "smallRight" && V(264);
|
|
19757
19759
|
const o = s?.getColDef().icons;
|
|
19758
19760
|
if (o && (i = o[e]), t.gos && !i) {
|
|
19759
19761
|
const n = t.gos.get("icons");
|
|
@@ -19766,14 +19768,14 @@ function Nt(e, t, s) {
|
|
|
19766
19768
|
else if (typeof i == "string")
|
|
19767
19769
|
n = i;
|
|
19768
19770
|
else {
|
|
19769
|
-
|
|
19771
|
+
V(38, { iconName: e });
|
|
19770
19772
|
return;
|
|
19771
19773
|
}
|
|
19772
19774
|
if (typeof n == "string")
|
|
19773
19775
|
return Vc(n);
|
|
19774
19776
|
if (_c(n))
|
|
19775
19777
|
return n;
|
|
19776
|
-
|
|
19778
|
+
V(133, { iconName: e });
|
|
19777
19779
|
return;
|
|
19778
19780
|
} else {
|
|
19779
19781
|
const n = t.registry.getIcon(e);
|
|
@@ -20305,7 +20307,7 @@ var Qu = class extends L {
|
|
|
20305
20307
|
for (const d of e) {
|
|
20306
20308
|
const u = i?.({ data: d, level: 0, rowPinned: t }) ?? o + this.nextId++;
|
|
20307
20309
|
if (a.has(u)) {
|
|
20308
|
-
|
|
20310
|
+
V(96, { id: u, data: d });
|
|
20309
20311
|
continue;
|
|
20310
20312
|
}
|
|
20311
20313
|
c++, a.add(u), r.push(u);
|
|
@@ -20724,11 +20726,11 @@ var cE = {
|
|
|
20724
20726
|
), i.setInputAriaLabel(t("ariaHeaderSelection", "Column with Header Selection")), e || s.announceAriaDescription();
|
|
20725
20727
|
}
|
|
20726
20728
|
checkSelectionType(e) {
|
|
20727
|
-
return Rr(this.gos) ? !0 : (
|
|
20729
|
+
return Rr(this.gos) ? !0 : (V(128, { feature: e }), !1);
|
|
20728
20730
|
}
|
|
20729
20731
|
checkRightRowModelType(e) {
|
|
20730
20732
|
const { gos: t, rowModel: s } = this.beans;
|
|
20731
|
-
return je(t) || fi(t) ? !0 : (
|
|
20733
|
+
return je(t) || fi(t) ? !0 : (V(129, { feature: e, rowModel: s.getType() }), !1);
|
|
20732
20734
|
}
|
|
20733
20735
|
onCbSelectAll() {
|
|
20734
20736
|
if (this.processingEventFromCheckbox || !this.cbSelectAllVisible)
|
|
@@ -21918,10 +21920,10 @@ var EE = class extends L {
|
|
|
21918
21920
|
apiNotFound(e) {
|
|
21919
21921
|
const { beans: t, gos: s, preDestroyLink: i } = this;
|
|
21920
21922
|
if (!t)
|
|
21921
|
-
|
|
21923
|
+
V(26, { fnName: e, preDestroyLink: i });
|
|
21922
21924
|
else {
|
|
21923
21925
|
const o = eh[e];
|
|
21924
|
-
s.assertModuleRegistered(o, `api.${e}`) &&
|
|
21926
|
+
s.assertModuleRegistered(o, `api.${e}`) && V(27, { fnName: e, module: o });
|
|
21925
21927
|
}
|
|
21926
21928
|
}
|
|
21927
21929
|
destroy() {
|
|
@@ -22543,12 +22545,12 @@ var Zo = class {
|
|
|
22543
22545
|
}
|
|
22544
22546
|
addRowDropZone(e) {
|
|
22545
22547
|
if (!e.getContainer()) {
|
|
22546
|
-
|
|
22548
|
+
V(55);
|
|
22547
22549
|
return;
|
|
22548
22550
|
}
|
|
22549
22551
|
const t = this.beans.dragAndDrop;
|
|
22550
22552
|
if (t.findExternalZone(e.getContainer())) {
|
|
22551
|
-
|
|
22553
|
+
V(56);
|
|
22552
22554
|
return;
|
|
22553
22555
|
}
|
|
22554
22556
|
const s = e.fromGrid ? e : {
|
|
@@ -23136,9 +23138,9 @@ function w3(e) {
|
|
|
23136
23138
|
} else {
|
|
23137
23139
|
let b = m;
|
|
23138
23140
|
const S = d.length - 1;
|
|
23139
|
-
let
|
|
23140
|
-
for (; b <= S && c.indexOf(
|
|
23141
|
-
b++, v.push(b),
|
|
23141
|
+
let R = d[b];
|
|
23142
|
+
for (; b <= S && c.indexOf(R) < 0; )
|
|
23143
|
+
b++, v.push(b), R = d[b];
|
|
23142
23144
|
b = m - 1;
|
|
23143
23145
|
const x = 0;
|
|
23144
23146
|
for (; b >= x; )
|
|
@@ -23565,7 +23567,7 @@ var x3 = class extends L {
|
|
|
23565
23567
|
if (!l)
|
|
23566
23568
|
return;
|
|
23567
23569
|
if (t > l.length - e.length) {
|
|
23568
|
-
|
|
23570
|
+
V(30, { toIndex: t });
|
|
23569
23571
|
return;
|
|
23570
23572
|
}
|
|
23571
23573
|
n?.start();
|
|
@@ -23636,10 +23638,10 @@ var x3 = class extends L {
|
|
|
23636
23638
|
const b = s.getGroupId(), S = s.getLeafColumns();
|
|
23637
23639
|
if (!S.length)
|
|
23638
23640
|
return;
|
|
23639
|
-
const
|
|
23640
|
-
if (!
|
|
23641
|
+
const R = S[0].getParent();
|
|
23642
|
+
if (!R)
|
|
23641
23643
|
return;
|
|
23642
|
-
w = E3(
|
|
23644
|
+
w = E3(R, b);
|
|
23643
23645
|
} else
|
|
23644
23646
|
w = s;
|
|
23645
23647
|
w && c.focusHeaderPosition({
|
|
@@ -24024,11 +24026,11 @@ var k3 = class extends L {
|
|
|
24024
24026
|
b += P;
|
|
24025
24027
|
}
|
|
24026
24028
|
});
|
|
24027
|
-
const
|
|
24029
|
+
const R = 1 / b;
|
|
24028
24030
|
w.forEach((x, E) => {
|
|
24029
|
-
const
|
|
24031
|
+
const y = E === w.length - 1;
|
|
24030
24032
|
let P;
|
|
24031
|
-
|
|
24033
|
+
y ? P = S : (P = Math.round(g[E] * u * R), S -= P);
|
|
24032
24034
|
const T = x.getMinWidth(), F = x.getMaxWidth();
|
|
24033
24035
|
P < T ? (P = T, f[x.getId()] = !0, m = !0) : F > 0 && P > F && (P = F, f[x.getId()] = !0, m = !0), p[x.getId()] = P;
|
|
24034
24036
|
});
|
|
@@ -25031,24 +25033,24 @@ var FD = class extends L {
|
|
|
25031
25033
|
for (; c > 0; ) {
|
|
25032
25034
|
const f = Math.round(d < 1 ? u * d : u);
|
|
25033
25035
|
let m, v = 0, w = 0;
|
|
25034
|
-
for (const
|
|
25035
|
-
if (g(
|
|
25036
|
+
for (const R of l) {
|
|
25037
|
+
if (g(R))
|
|
25036
25038
|
continue;
|
|
25037
|
-
m =
|
|
25039
|
+
m = R, w += f * (R.flex / d);
|
|
25038
25040
|
const x = w - v, E = Math.round(x);
|
|
25039
|
-
|
|
25041
|
+
R.targetSize = E, v += E;
|
|
25040
25042
|
}
|
|
25041
25043
|
m && (m.targetSize += f - v);
|
|
25042
25044
|
let b = 0;
|
|
25043
|
-
for (const
|
|
25044
|
-
if (g(
|
|
25045
|
+
for (const R of l) {
|
|
25046
|
+
if (g(R))
|
|
25045
25047
|
continue;
|
|
25046
|
-
const x =
|
|
25047
|
-
b += E - x,
|
|
25048
|
+
const x = R.targetSize, E = Math.min(Math.max(x, R.min), R.max);
|
|
25049
|
+
b += E - x, R.violationType = E === x ? void 0 : E < x ? "max" : "min", R.targetSize = E;
|
|
25048
25050
|
}
|
|
25049
25051
|
const S = b === 0 ? "all" : b > 0 ? "min" : "max";
|
|
25050
|
-
for (const
|
|
25051
|
-
g(
|
|
25052
|
+
for (const R of l)
|
|
25053
|
+
g(R) || (S === "all" || R.violationType === S) && h(R, R.targetSize);
|
|
25052
25054
|
}
|
|
25053
25055
|
e.skipSetLeft || i.setLeftValues(t), e.updateBodyWidths && i.updateBodyWidths();
|
|
25054
25056
|
const p = l.filter((f) => f.isFlex && !f.violationType).map((f) => f.col);
|
|
@@ -25193,7 +25195,7 @@ var DD = [
|
|
|
25193
25195
|
o = ah(r, e);
|
|
25194
25196
|
} else {
|
|
25195
25197
|
if (s.includes(n)) {
|
|
25196
|
-
|
|
25198
|
+
V(44);
|
|
25197
25199
|
return;
|
|
25198
25200
|
}
|
|
25199
25201
|
const r = t[n];
|
|
@@ -25223,7 +25225,7 @@ var DD = [
|
|
|
25223
25225
|
}
|
|
25224
25226
|
const n = this.dataTypeDefinitions[i];
|
|
25225
25227
|
if (!n) {
|
|
25226
|
-
|
|
25228
|
+
V(47, { cellDataType: i });
|
|
25227
25229
|
return;
|
|
25228
25230
|
}
|
|
25229
25231
|
return e.cellDataType = i, n.groupSafeValueFormatter && (e.valueFormatter = n.groupSafeValueFormatter), n.valueParser && (e.valueParser = n.valueParser), n.suppressDefaultProperties || this.setColDefPropertiesForBaseDataType(e, i, n, s), n.columnTypes;
|
|
@@ -25365,7 +25367,7 @@ var DD = [
|
|
|
25365
25367
|
return s ? s(t) : !0;
|
|
25366
25368
|
}
|
|
25367
25369
|
validateColDef(e) {
|
|
25368
|
-
const t = (s) =>
|
|
25370
|
+
const t = (s) => V(48, { property: s });
|
|
25369
25371
|
if (e.cellDataType === "object") {
|
|
25370
25372
|
const { object: s } = this.dataTypeDefinitions;
|
|
25371
25373
|
e.valueFormatter === s.groupSafeValueFormatter && !this.hasObjectValueFormatter && t("Formatter"), e.editable && e.valueParser === s.valueParser && !this.hasObjectValueParser && t("Parser");
|
|
@@ -25471,7 +25473,7 @@ function ah(e, t) {
|
|
|
25471
25473
|
]), s;
|
|
25472
25474
|
}
|
|
25473
25475
|
function lh(e, t, s) {
|
|
25474
|
-
return t ? t.baseDataType !== e.baseDataType ? (
|
|
25476
|
+
return t ? t.baseDataType !== e.baseDataType ? (V(46), !1) : !0 : (V(45, { parentCellDataType: s }), !1);
|
|
25475
25477
|
}
|
|
25476
25478
|
function ch(e, t) {
|
|
25477
25479
|
if (e.valueFormatter)
|
|
@@ -26209,7 +26211,7 @@ var HD = class extends L {
|
|
|
26209
26211
|
css: JD
|
|
26210
26212
|
}), sP = /* @__PURE__ */ tP(), iP = {
|
|
26211
26213
|
warn: (...e) => {
|
|
26212
|
-
|
|
26214
|
+
V(e[0], e[1]);
|
|
26213
26215
|
},
|
|
26214
26216
|
error: (...e) => {
|
|
26215
26217
|
Pe(e[0], e[1]);
|
|
@@ -26731,7 +26733,7 @@ var AP = class extends dx {
|
|
|
26731
26733
|
`var(${e.cssName}, solid ${il}px)`
|
|
26732
26734
|
)) : t.style.width = `var(${e.cssName}, ${il}px)`, s.appendChild(t), this.sizeEls.set(e, t);
|
|
26733
26735
|
let n = this.measureSizeEl(e);
|
|
26734
|
-
n === "no-styles" && !o &&
|
|
26736
|
+
n === "no-styles" && !o && V(9, { variable: e });
|
|
26735
26737
|
const r = Ss(this.beans, t, () => {
|
|
26736
26738
|
const a = this.measureSizeEl(e);
|
|
26737
26739
|
a === "detached" || a === "no-styles" || (this.lastKnownValues.set(e, a), a !== n && (n = a, this.fireStylesChangedEvent(e.changeKey)));
|
|
@@ -29199,7 +29201,7 @@ var h5 = hm(!0), g5 = hm(!1), p5 = class extends _e {
|
|
|
29199
29201
|
this.params = e, this.checkWarnings(), this.workOutInnerHeaderGroupComponent(t, e), this.setupLabel(e), this.addGroupExpandIcon(e), this.setupExpandIcons(), s?.setupForHeaderGroup(this);
|
|
29200
29202
|
}
|
|
29201
29203
|
checkWarnings() {
|
|
29202
|
-
this.params.template &&
|
|
29204
|
+
this.params.template && V(89);
|
|
29203
29205
|
}
|
|
29204
29206
|
workOutInnerHeaderGroupComponent(e, t) {
|
|
29205
29207
|
const s = XR(e, t, t);
|
|
@@ -29307,7 +29309,7 @@ var h5 = hm(!0), g5 = hm(!1), p5 = class extends _e {
|
|
|
29307
29309
|
// frames. this stops bugs - where some code is asking for a frame to be executed
|
|
29308
29310
|
// when it should not.
|
|
29309
29311
|
verify() {
|
|
29310
|
-
this.active === !1 &&
|
|
29312
|
+
this.active === !1 && V(92);
|
|
29311
29313
|
}
|
|
29312
29314
|
createTask(e, t, s, i, o = !1) {
|
|
29313
29315
|
this.verify();
|
|
@@ -29512,7 +29514,7 @@ var h5 = hm(!0), g5 = hm(!1), p5 = class extends _e {
|
|
|
29512
29514
|
s = this.gos.get("enableRtl") ? this.getCellToRight(s) : this.getCellToLeft(s);
|
|
29513
29515
|
break;
|
|
29514
29516
|
default:
|
|
29515
|
-
s = null,
|
|
29517
|
+
s = null, V(8, { key: e });
|
|
29516
29518
|
break;
|
|
29517
29519
|
}
|
|
29518
29520
|
s ? i = this.isCellGoodToFocusOn(s) : i = !0;
|
|
@@ -30427,8 +30429,8 @@ var z5 = class extends L {
|
|
|
30427
30429
|
}
|
|
30428
30430
|
onMouseDown(e) {
|
|
30429
30431
|
const { ctrlKey: t, metaKey: s, shiftKey: i } = e, o = e.target, { cellCtrl: n, beans: r } = this, { eventSvc: a, rangeSvc: l, rowNumbersSvc: c, focusSvc: d, gos: u, editSvc: h } = r, { column: g, rowNode: p, cellPosition: f } = n, m = tr(u, g, p, e), v = () => {
|
|
30430
|
-
const
|
|
30431
|
-
|
|
30432
|
+
const R = n.createEvent(e, "cellMouseDown");
|
|
30433
|
+
R.isEventHandlingSuppressed = m, a.dispatchEvent(R);
|
|
30432
30434
|
};
|
|
30433
30435
|
if (m) {
|
|
30434
30436
|
v();
|
|
@@ -30442,18 +30444,18 @@ var z5 = class extends L {
|
|
|
30442
30444
|
return;
|
|
30443
30445
|
}
|
|
30444
30446
|
if (!i || !w) {
|
|
30445
|
-
const
|
|
30446
|
-
n.focusCell(
|
|
30447
|
+
const R = h?.isEditing(n), E = u.get("enableCellTextSelection") && e.defaultPrevented, y = (Vs() || E) && !R && !Io(o) && !b;
|
|
30448
|
+
n.focusCell(y, e);
|
|
30447
30449
|
}
|
|
30448
30450
|
if (i && w && !d.isCellFocused(f)) {
|
|
30449
30451
|
e.preventDefault();
|
|
30450
|
-
const
|
|
30451
|
-
if (
|
|
30452
|
-
const { column: x, rowIndex: E, rowPinned:
|
|
30453
|
-
h?.isEditing(
|
|
30452
|
+
const R = d.getFocusedCell();
|
|
30453
|
+
if (R) {
|
|
30454
|
+
const { column: x, rowIndex: E, rowPinned: y } = R;
|
|
30455
|
+
h?.isEditing(R) && h?.stopEditing(R), d.setFocusedCell({
|
|
30454
30456
|
column: x,
|
|
30455
30457
|
rowIndex: E,
|
|
30456
|
-
rowPinned:
|
|
30458
|
+
rowPinned: y,
|
|
30457
30459
|
forceBrowserFocus: !0,
|
|
30458
30460
|
preventScrollOnBrowserFocus: !0,
|
|
30459
30461
|
sourceEvent: e
|
|
@@ -30463,10 +30465,10 @@ var z5 = class extends L {
|
|
|
30463
30465
|
if (!b) {
|
|
30464
30466
|
if (l) {
|
|
30465
30467
|
S && e.preventDefault();
|
|
30466
|
-
const
|
|
30468
|
+
const R = yu(r, e) && S;
|
|
30467
30469
|
if (i)
|
|
30468
30470
|
l.extendLatestRangeToCell(f);
|
|
30469
|
-
else if (!
|
|
30471
|
+
else if (!R) {
|
|
30470
30472
|
const x = t || s;
|
|
30471
30473
|
l.setRangeToCell(f, x);
|
|
30472
30474
|
}
|
|
@@ -30799,8 +30801,8 @@ var z5 = class extends L {
|
|
|
30799
30801
|
if (w) {
|
|
30800
30802
|
if (S) {
|
|
30801
30803
|
this.showValue(!!s, !1);
|
|
30802
|
-
const
|
|
30803
|
-
!t && !
|
|
30804
|
+
const R = a?.isSuppressFlashingCellsBecauseFiltering();
|
|
30805
|
+
!t && !R && f && r?.flashCell(this), i?.applyCellStyles?.(), o?.applyUserStyles(), o?.applyClassesFromColDef(), n?.applyRowStyles();
|
|
30804
30806
|
}
|
|
30805
30807
|
u?.refreshTooltip(), o?.applyCellClassRules();
|
|
30806
30808
|
}
|
|
@@ -32496,7 +32498,7 @@ var s4 = {
|
|
|
32496
32498
|
if (!i.cols || !e?.length)
|
|
32497
32499
|
return;
|
|
32498
32500
|
if (lt(r, "print")) {
|
|
32499
|
-
|
|
32501
|
+
V(37);
|
|
32500
32502
|
return;
|
|
32501
32503
|
}
|
|
32502
32504
|
o?.start();
|
|
@@ -32795,7 +32797,7 @@ var C4 = (
|
|
|
32795
32797
|
}
|
|
32796
32798
|
hideOverlay() {
|
|
32797
32799
|
if (this.showInitialOverlay = !1, this.gos.get("loading")) {
|
|
32798
|
-
|
|
32800
|
+
V(99);
|
|
32799
32801
|
return;
|
|
32800
32802
|
}
|
|
32801
32803
|
this.doHideOverlay();
|
|
@@ -33563,8 +33565,8 @@ var C4 = (
|
|
|
33563
33565
|
const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
|
|
33564
33566
|
let g = !1, p, f;
|
|
33565
33567
|
do {
|
|
33566
|
-
const S = t.getPixelOffset(), { pageFirstPixel:
|
|
33567
|
-
h ? (p =
|
|
33568
|
+
const S = t.getPixelOffset(), { pageFirstPixel: R, pageLastPixel: x } = t.getCurrentPagePixelRange(), E = e.divStretchOffset, y = u.getVScrollPosition(), P = y.top, T = y.bottom;
|
|
33569
|
+
h ? (p = R + E, f = x + E) : (p = Math.max(P + S - d, R) + E, f = Math.min(T + S + d, x) + E), this.firstVisibleVPixel = Math.max(P + S, R) + E, this.lastVisibleVPixel = Math.min(T + S, x) + E, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
|
|
33568
33570
|
} while (g);
|
|
33569
33571
|
let m = s.getRowIndexAtPixel(p), v = s.getRowIndexAtPixel(f);
|
|
33570
33572
|
const w = t.getFirstRow(), b = t.getLastRow();
|
|
@@ -34103,9 +34105,9 @@ var I4 = "paste", k4 = class extends L {
|
|
|
34103
34105
|
Ve(e.data) && (e.data = {});
|
|
34104
34106
|
const { field: n, valueSetter: r } = o.getColDef();
|
|
34105
34107
|
if (Ve(n) && Ve(r))
|
|
34106
|
-
return
|
|
34108
|
+
return V(17), !1;
|
|
34107
34109
|
if (this.dataTypeSvc && !this.dataTypeSvc.checkType(o, s))
|
|
34108
|
-
return
|
|
34110
|
+
return V(135), !1;
|
|
34109
34111
|
const a = ce(this.gos, {
|
|
34110
34112
|
node: e,
|
|
34111
34113
|
data: e.data,
|
|
@@ -34205,7 +34207,7 @@ var I4 = "paste", k4 = class extends L {
|
|
|
34205
34207
|
});
|
|
34206
34208
|
o = i(n);
|
|
34207
34209
|
}
|
|
34208
|
-
return typeof o == "string" || o == null || (o = String(o), o === "[object Object]" &&
|
|
34210
|
+
return typeof o == "string" || o == null || (o = String(o), o === "[object Object]" && V(121)), o;
|
|
34209
34211
|
}
|
|
34210
34212
|
}, V4 = {
|
|
34211
34213
|
moduleName: "CommunityCore",
|
|
@@ -35025,12 +35027,12 @@ function eT(e, t = !1) {
|
|
|
35025
35027
|
aggFunc: w,
|
|
35026
35028
|
pivot: b,
|
|
35027
35029
|
pivotIndex: S,
|
|
35028
|
-
pinned:
|
|
35030
|
+
pinned: R,
|
|
35029
35031
|
hide: x,
|
|
35030
35032
|
width: E,
|
|
35031
|
-
flex:
|
|
35033
|
+
flex: y
|
|
35032
35034
|
} = e[h];
|
|
35033
|
-
d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), m && (i[v ?? 0] = g), typeof w == "string" && o.push({ colId: g, aggFunc: w }), b && (n[S ?? 0] = g),
|
|
35035
|
+
d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), m && (i[v ?? 0] = g), typeof w == "string" && o.push({ colId: g, aggFunc: w }), b && (n[S ?? 0] = g), R && (R === "right" ? a : r).push(g), x && l.push(g), (y != null || E) && c.push({ colId: g, flex: y ?? void 0, width: E });
|
|
35034
35036
|
}
|
|
35035
35037
|
return {
|
|
35036
35038
|
sort: s.length ? { sortModel: rl(s) } : void 0,
|
|
@@ -35066,7 +35068,7 @@ var sT = class {
|
|
|
35066
35068
|
}
|
|
35067
35069
|
createMethodProxy(e, t, s) {
|
|
35068
35070
|
return function() {
|
|
35069
|
-
return e.hasMethod(t) ? e.callMethod(t, arguments) : (s &&
|
|
35071
|
+
return e.hasMethod(t) ? e.callMethod(t, arguments) : (s && V(49, { methodName: t }), null);
|
|
35070
35072
|
};
|
|
35071
35073
|
}
|
|
35072
35074
|
};
|
|
@@ -35166,7 +35168,7 @@ var oT = class extends L {
|
|
|
35166
35168
|
function rT(e, t) {
|
|
35167
35169
|
const s = document.defaultView || window;
|
|
35168
35170
|
if (!s) {
|
|
35169
|
-
|
|
35171
|
+
V(52);
|
|
35170
35172
|
return;
|
|
35171
35173
|
}
|
|
35172
35174
|
const i = document.createElement("a"), o = s.URL.createObjectURL(t);
|
|
@@ -35566,7 +35568,7 @@ var uT = {
|
|
|
35566
35568
|
this.gridOptions = e.gridOptions, Ny(q4);
|
|
35567
35569
|
}
|
|
35568
35570
|
warnOnInitialPropertyUpdate(e, t) {
|
|
35569
|
-
e === "api" && aT[t] &&
|
|
35571
|
+
e === "api" && aT[t] && V(22, { key: t });
|
|
35570
35572
|
}
|
|
35571
35573
|
processGridOptions(e) {
|
|
35572
35574
|
this.processOptions(e, a5());
|
|
@@ -35579,7 +35581,7 @@ var uT = {
|
|
|
35579
35581
|
o ? this.gos.assertModuleRegistered(
|
|
35580
35582
|
o,
|
|
35581
35583
|
`AG Grid '${e}' component: ${t}`
|
|
35582
|
-
) :
|
|
35584
|
+
) : V(101, {
|
|
35583
35585
|
propertyName: e,
|
|
35584
35586
|
componentName: t,
|
|
35585
35587
|
agGridDefaults: s,
|
|
@@ -35595,10 +35597,10 @@ var uT = {
|
|
|
35595
35597
|
}) : void 0;
|
|
35596
35598
|
}
|
|
35597
35599
|
checkRowEvents(e) {
|
|
35598
|
-
CT.has(e) &&
|
|
35600
|
+
CT.has(e) && V(10, { eventType: e });
|
|
35599
35601
|
}
|
|
35600
35602
|
validateIcon(e) {
|
|
35601
|
-
if (pT.has(e) &&
|
|
35603
|
+
if (pT.has(e) && V(43, { iconName: e }), hT[e])
|
|
35602
35604
|
return;
|
|
35603
35605
|
const t = gT[e];
|
|
35604
35606
|
if (t) {
|
|
@@ -35612,7 +35614,7 @@ var uT = {
|
|
|
35612
35614
|
});
|
|
35613
35615
|
return;
|
|
35614
35616
|
}
|
|
35615
|
-
|
|
35617
|
+
V(134, { iconName: e });
|
|
35616
35618
|
}
|
|
35617
35619
|
isProvidedUserComp(e) {
|
|
35618
35620
|
return !!$i[e];
|
|
@@ -36117,7 +36119,7 @@ function MT(e) {
|
|
|
36117
36119
|
}
|
|
36118
36120
|
function IT(e, t, s) {
|
|
36119
36121
|
const { gos: i, colModel: o, colFilter: n } = e;
|
|
36120
|
-
s && !i.get("enableFilterHandlers") && (
|
|
36122
|
+
s && !i.get("enableFilterHandlers") && (V(288), s = !1);
|
|
36121
36123
|
const r = o.getColDefCol(t);
|
|
36122
36124
|
return r ? n?.getModelForColumn(r, s) ?? null : null;
|
|
36123
36125
|
}
|
|
@@ -36150,7 +36152,7 @@ function OT(e, t) {
|
|
|
36150
36152
|
function NT(e, t) {
|
|
36151
36153
|
const { colModel: s, colFilter: i, gos: o } = e;
|
|
36152
36154
|
if (!o.get("enableFilterHandlers")) {
|
|
36153
|
-
|
|
36155
|
+
V(287);
|
|
36154
36156
|
return;
|
|
36155
36157
|
}
|
|
36156
36158
|
const { colId: n, action: r } = t;
|
|
@@ -36200,16 +36202,16 @@ var HT = {
|
|
|
36200
36202
|
}), l.forEach((c) => {
|
|
36201
36203
|
const d = i.getColDefCol(c) || i.getCol(c);
|
|
36202
36204
|
if (!d) {
|
|
36203
|
-
|
|
36205
|
+
V(62, { colId: c });
|
|
36204
36206
|
return;
|
|
36205
36207
|
}
|
|
36206
36208
|
if (!d.isFilterAllowed()) {
|
|
36207
|
-
|
|
36209
|
+
V(63, { colId: c });
|
|
36208
36210
|
return;
|
|
36209
36211
|
}
|
|
36210
36212
|
const u = this.getOrCreateFilterWrapper(d, !0);
|
|
36211
36213
|
if (!u) {
|
|
36212
|
-
|
|
36214
|
+
V(64, { colId: c });
|
|
36213
36215
|
return;
|
|
36214
36216
|
}
|
|
36215
36217
|
r.push(this.setModelOnFilterWrapper(u, e[c], !0));
|
|
@@ -36269,7 +36271,7 @@ var HT = {
|
|
|
36269
36271
|
if (e.isHandler)
|
|
36270
36272
|
return st(this.model, s);
|
|
36271
36273
|
const i = e.filter;
|
|
36272
|
-
return i ? typeof i.getModel != "function" ? (
|
|
36274
|
+
return i ? typeof i.getModel != "function" ? (V(66), null) : i.getModel() : st(this.initialModel, s);
|
|
36273
36275
|
}
|
|
36274
36276
|
isFilterPresent() {
|
|
36275
36277
|
return this.activeColumnFilters.length > 0;
|
|
@@ -36285,7 +36287,7 @@ var HT = {
|
|
|
36285
36287
|
), !0) : !1;
|
|
36286
36288
|
}
|
|
36287
36289
|
updateActiveFilters() {
|
|
36288
|
-
const e = (c) => c ? c.isFilterActive ? c.isFilterActive() : (
|
|
36290
|
+
const e = (c) => c ? c.isFilterActive ? c.isFilterActive() : (V(67), !1) : !1, { colModel: t, gos: s } = this.beans, i = !!Ll(s), o = (c) => {
|
|
36289
36291
|
if (!c.isPrimary())
|
|
36290
36292
|
return !0;
|
|
36291
36293
|
const u = !t.isPivotActive();
|
|
@@ -36517,7 +36519,7 @@ var HT = {
|
|
|
36517
36519
|
handlerParams: r
|
|
36518
36520
|
};
|
|
36519
36521
|
const { compDetails: c, createFilterUi: d } = l;
|
|
36520
|
-
return this.isGlobalButtons && (c.params?.buttons?.length ||
|
|
36522
|
+
return this.isGlobalButtons && (c.params?.buttons?.length || V(281, { colId: e.getColId() })), {
|
|
36521
36523
|
compDetails: c,
|
|
36522
36524
|
handler: n,
|
|
36523
36525
|
handlerGenerator: a,
|
|
@@ -36639,7 +36641,7 @@ var HT = {
|
|
|
36639
36641
|
const { compName: p, jsComp: f, fwComp: m } = Yp(o, t);
|
|
36640
36642
|
p ? g = p : f == null && m == null && t.filter === !0 && (g = s), h = this.handlerMap[g], h && (u = d(h));
|
|
36641
36643
|
}
|
|
36642
|
-
return u ? { filterHandler: u, handlerNameOrCallback: r ?? h } : l ? (je(i) &&
|
|
36644
|
+
return u ? { filterHandler: u, handlerNameOrCallback: r ?? h } : l ? (je(i) && V(277, { colId: e.getColId() }), HT) : void 0;
|
|
36643
36645
|
}
|
|
36644
36646
|
createHandler(e, t, s) {
|
|
36645
36647
|
const i = this.createHandlerFunc(e, t, s);
|
|
@@ -36959,7 +36961,7 @@ var HT = {
|
|
|
36959
36961
|
if (o) {
|
|
36960
36962
|
o.then((n) => {
|
|
36961
36963
|
if (typeof n?.setModel != "function") {
|
|
36962
|
-
|
|
36964
|
+
V(65), i();
|
|
36963
36965
|
return;
|
|
36964
36966
|
}
|
|
36965
36967
|
(n.setModel(t) || xe.resolve()).then(() => i());
|
|
@@ -37246,7 +37248,7 @@ var zT = class extends L {
|
|
|
37246
37248
|
return this.isAdvFilterEnabled() ? (this.warnAdvFilters(), Promise.resolve(void 0)) : this.colFilter?.getFilterInstance(e) ?? Promise.resolve(void 0);
|
|
37247
37249
|
}
|
|
37248
37250
|
warnAdvFilters() {
|
|
37249
|
-
|
|
37251
|
+
V(68);
|
|
37250
37252
|
}
|
|
37251
37253
|
setupAdvFilterHeaderComp(e) {
|
|
37252
37254
|
this.advancedFilter?.getCtrl().setupHeaderComp(e);
|
|
@@ -37450,7 +37452,7 @@ var zT = class extends L {
|
|
|
37450
37452
|
for (const t of e) {
|
|
37451
37453
|
if (typeof t == "string")
|
|
37452
37454
|
continue;
|
|
37453
|
-
const s = [["displayKey"], ["displayName"], ["predicate", "test"]], i = (o) => o.some((n) => t[n] != null) ? !0 : (
|
|
37455
|
+
const s = [["displayKey"], ["displayName"], ["predicate", "test"]], i = (o) => o.some((n) => t[n] != null) ? !0 : (V(72, { keys: o }), !1);
|
|
37454
37456
|
if (!s.every(i)) {
|
|
37455
37457
|
this.filterOptions = e.filter((o) => o === t) || [];
|
|
37456
37458
|
continue;
|
|
@@ -37468,9 +37470,9 @@ var zT = class extends L {
|
|
|
37468
37470
|
return s;
|
|
37469
37471
|
if (s.displayKey)
|
|
37470
37472
|
return s.displayKey;
|
|
37471
|
-
|
|
37473
|
+
V(73);
|
|
37472
37474
|
} else
|
|
37473
|
-
|
|
37475
|
+
V(74);
|
|
37474
37476
|
}
|
|
37475
37477
|
getCustomOption(e) {
|
|
37476
37478
|
return this.customFilterOptions[e];
|
|
@@ -37494,7 +37496,7 @@ function KT(e, t, s) {
|
|
|
37494
37496
|
}
|
|
37495
37497
|
function qT(e, t) {
|
|
37496
37498
|
let s = e.length;
|
|
37497
|
-
return s > t && (e.splice(t),
|
|
37499
|
+
return s > t && (e.splice(t), V(78), s = t), s;
|
|
37498
37500
|
}
|
|
37499
37501
|
function Xo(e, t) {
|
|
37500
37502
|
const s = t.getCustomOption(e);
|
|
@@ -37573,7 +37575,7 @@ var Rd = class extends jx {
|
|
|
37573
37575
|
if (e.operator) {
|
|
37574
37576
|
const i = e;
|
|
37575
37577
|
let o = i.conditions;
|
|
37576
|
-
o == null && (o = [],
|
|
37578
|
+
o == null && (o = [], V(77));
|
|
37577
37579
|
const n = qT(o, this.maxNumConditions), r = this.getNumConditions();
|
|
37578
37580
|
if (n < r)
|
|
37579
37581
|
this.removeConditionsAndOperators(n);
|
|
@@ -37592,9 +37594,9 @@ var Rd = class extends jx {
|
|
|
37592
37594
|
}
|
|
37593
37595
|
setNumConditions(e) {
|
|
37594
37596
|
let t = e.maxNumConditions ?? 2;
|
|
37595
|
-
t < 1 && (
|
|
37597
|
+
t < 1 && (V(79), t = 1), this.maxNumConditions = t;
|
|
37596
37598
|
let s = e.numAlwaysVisibleConditions ?? 1;
|
|
37597
|
-
s < 1 && (
|
|
37599
|
+
s < 1 && (V(80), s = 1), s > t && (V(81), s = t), this.numAlwaysVisibleConditions = s;
|
|
37598
37600
|
}
|
|
37599
37601
|
createOption() {
|
|
37600
37602
|
const e = this.getGui(), t = this.createManagedBean(new id());
|
|
@@ -37962,16 +37964,16 @@ var Eh = 1e3, Dh = 1 / 0, YT = class extends Rd {
|
|
|
37962
37964
|
const d = e[l];
|
|
37963
37965
|
if (d != null)
|
|
37964
37966
|
if (isNaN(d))
|
|
37965
|
-
|
|
37967
|
+
V(82, { param: l });
|
|
37966
37968
|
else
|
|
37967
37969
|
return d == null ? c : Number(d);
|
|
37968
37970
|
return c;
|
|
37969
37971
|
}, s = t("minValidYear", Eh), i = t("maxValidYear", Dh);
|
|
37970
|
-
this.minValidYear = s, this.maxValidYear = i, s > i &&
|
|
37972
|
+
this.minValidYear = s, this.maxValidYear = i, s > i && V(83);
|
|
37971
37973
|
const { minValidDate: o, maxValidDate: n } = e, r = o instanceof Date ? o : St(o);
|
|
37972
37974
|
this.minValidDate = r;
|
|
37973
37975
|
const a = n instanceof Date ? n : St(n);
|
|
37974
|
-
this.maxValidDate = a, r && a && r > a &&
|
|
37976
|
+
this.maxValidDate = a, r && a && r > a && V(84);
|
|
37975
37977
|
}
|
|
37976
37978
|
createDateCompWrapper(e) {
|
|
37977
37979
|
const {
|
|
@@ -38211,7 +38213,7 @@ var Eh = 1e3, Dh = 1 / 0, YT = class extends Rd {
|
|
|
38211
38213
|
case "notBlank":
|
|
38212
38214
|
return !Nr(t);
|
|
38213
38215
|
default:
|
|
38214
|
-
return
|
|
38216
|
+
return V(76, { filterModelType: i }), !0;
|
|
38215
38217
|
}
|
|
38216
38218
|
}
|
|
38217
38219
|
}, Tm = {
|
|
@@ -38511,11 +38513,11 @@ var XT = class extends Pm {
|
|
|
38511
38513
|
const t = this.eDateInput.getInputElement(), s = this.shouldUseBrowserDatePicker(e);
|
|
38512
38514
|
this.usingSafariDatePicker = s && Vs();
|
|
38513
38515
|
const { minValidYear: i, maxValidYear: o, minValidDate: n, maxValidDate: r, buttons: a, includeTime: l, colDef: c } = e.filterParams || {}, d = this.beans.dataTypeSvc, u = l ?? d?.getDateIncludesTimeFlag?.(c.cellDataType) ?? !1;
|
|
38514
|
-
if (s ? u ? (t.type = "datetime-local", t.step = "1") : t.type = "date" : t.type = "text", n && i &&
|
|
38516
|
+
if (s ? u ? (t.type = "datetime-local", t.step = "1") : t.type = "date" : t.type = "text", n && i && V(85), r && o && V(86), n && r) {
|
|
38515
38517
|
const [h, g] = [n, r].map(
|
|
38516
38518
|
(p) => p instanceof Date ? p : St(p)
|
|
38517
38519
|
);
|
|
38518
|
-
h && g && h.getTime() > g.getTime() &&
|
|
38520
|
+
h && g && h.getTime() > g.getTime() && V(87);
|
|
38519
38521
|
}
|
|
38520
38522
|
n ? n instanceof Date ? t.min = Vl(n) : t.min = n : i && (t.min = `${i}-01-01`), r ? r instanceof Date ? t.max = Vl(r) : t.max = r : o && (t.max = `${o}-12-31`), this.isApply = e.location === "floatingFilter" && !!a?.includes("apply");
|
|
38521
38523
|
}
|
|
@@ -39027,7 +39029,7 @@ var CM = class extends L {
|
|
|
39027
39029
|
}
|
|
39028
39030
|
setFilter(e) {
|
|
39029
39031
|
if (e != null && typeof e != "string") {
|
|
39030
|
-
|
|
39032
|
+
V(70, { newFilter: e });
|
|
39031
39033
|
return;
|
|
39032
39034
|
}
|
|
39033
39035
|
const t = this.parseFilter(e);
|
|
@@ -39948,7 +39950,7 @@ var CM = class extends L {
|
|
|
39948
39950
|
this.focusAfterAttached = e.cellStartedEdit;
|
|
39949
39951
|
const { eEditor: t, valueSvc: s, gos: i } = this, { values: o, value: n, eventKey: r } = e;
|
|
39950
39952
|
if (Ve(o)) {
|
|
39951
|
-
|
|
39953
|
+
V(58);
|
|
39952
39954
|
return;
|
|
39953
39955
|
}
|
|
39954
39956
|
this.startedByEnter = r != null ? r === M.ENTER : !1;
|
|
@@ -40109,7 +40111,7 @@ function i6(e, t) {
|
|
|
40109
40111
|
function o6(e, t) {
|
|
40110
40112
|
const { key: s, colKey: i, rowIndex: o, rowPinned: n } = t, { editSvc: r, colModel: a } = e, l = a.getCol(i);
|
|
40111
40113
|
if (!l) {
|
|
40112
|
-
|
|
40114
|
+
V(12, { colKey: i });
|
|
40113
40115
|
return;
|
|
40114
40116
|
}
|
|
40115
40117
|
const d = ws(e, {
|
|
@@ -40117,7 +40119,7 @@ function o6(e, t) {
|
|
|
40117
40119
|
rowPinned: n || null
|
|
40118
40120
|
});
|
|
40119
40121
|
if (!d) {
|
|
40120
|
-
|
|
40122
|
+
V(290, { rowIndex: o, rowPinned: n });
|
|
40121
40123
|
return;
|
|
40122
40124
|
}
|
|
40123
40125
|
if (!l.isCellEditable(d))
|
|
@@ -41231,7 +41233,7 @@ var Km = class extends L {
|
|
|
41231
41233
|
}
|
|
41232
41234
|
};
|
|
41233
41235
|
function N6(e, t) {
|
|
41234
|
-
if (!t.nodes.every((r) => r.rowPinned && !dn(r) ? (
|
|
41236
|
+
if (!t.nodes.every((r) => r.rowPinned && !dn(r) ? (V(59), !1) : r.id === void 0 ? (V(60), !1) : !0))
|
|
41235
41237
|
return;
|
|
41236
41238
|
const { nodes: i, source: o, newValue: n } = t;
|
|
41237
41239
|
e.selectionSvc?.setNodesSelected({ nodes: i, source: o ?? "api", newValue: n });
|
|
@@ -41308,18 +41310,18 @@ var $6 = class extends gE {
|
|
|
41308
41310
|
return 0;
|
|
41309
41311
|
const { gos: a } = this;
|
|
41310
41312
|
if (!Js(a) && e)
|
|
41311
|
-
return
|
|
41313
|
+
return V(132), 0;
|
|
41312
41314
|
if (i.length > 1 && !this.isMultiSelect())
|
|
41313
|
-
return
|
|
41315
|
+
return V(130), 0;
|
|
41314
41316
|
let l = 0;
|
|
41315
41317
|
for (let c = 0; c < i.length; c++) {
|
|
41316
41318
|
const d = i[c], u = Mi(d);
|
|
41317
41319
|
if (u.rowPinned && !dn(u)) {
|
|
41318
|
-
|
|
41320
|
+
V(59);
|
|
41319
41321
|
continue;
|
|
41320
41322
|
}
|
|
41321
41323
|
if (u.id === void 0) {
|
|
41322
|
-
|
|
41324
|
+
V(60);
|
|
41323
41325
|
continue;
|
|
41324
41326
|
}
|
|
41325
41327
|
this.groupSelectsFiltered && u.group && !a.get("treeData") || this.selectRowNode(u, e, o, n) && (this.detailSelection.delete(u.id), l++), this.groupSelectsDescendants && u.childrenAfterGroup?.length && (l += this.selectChildren(u, e, n));
|
|
@@ -41538,11 +41540,11 @@ var $6 = class extends gE {
|
|
|
41538
41540
|
selectAllRowNodes(e) {
|
|
41539
41541
|
const { gos: t, selectionCtx: s } = this;
|
|
41540
41542
|
if (!Js(t)) {
|
|
41541
|
-
|
|
41543
|
+
V(132);
|
|
41542
41544
|
return;
|
|
41543
41545
|
}
|
|
41544
41546
|
if (Ky(t) && !Rr(t)) {
|
|
41545
|
-
|
|
41547
|
+
V(130);
|
|
41546
41548
|
return;
|
|
41547
41549
|
}
|
|
41548
41550
|
if (!this.canSelectAll())
|
|
@@ -41635,7 +41637,7 @@ var $6 = class extends gE {
|
|
|
41635
41637
|
setDetailSelectionState(e, t, s) {
|
|
41636
41638
|
if (this.masterSelectsDetail) {
|
|
41637
41639
|
if (!Rr(t)) {
|
|
41638
|
-
|
|
41640
|
+
V(269);
|
|
41639
41641
|
return;
|
|
41640
41642
|
}
|
|
41641
41643
|
switch (e.isSelected()) {
|
|
@@ -41732,7 +41734,7 @@ function Zm(e) {
|
|
|
41732
41734
|
}
|
|
41733
41735
|
function Qm(e) {
|
|
41734
41736
|
if (e.rowAutoHeight?.active) {
|
|
41735
|
-
|
|
41737
|
+
V(3);
|
|
41736
41738
|
return;
|
|
41737
41739
|
}
|
|
41738
41740
|
e.rowModel?.resetRowHeights();
|
|
@@ -41864,7 +41866,7 @@ var tI = {
|
|
|
41864
41866
|
break;
|
|
41865
41867
|
}
|
|
41866
41868
|
case "columnPivotChanged":
|
|
41867
|
-
|
|
41869
|
+
V(21);
|
|
41868
41870
|
break;
|
|
41869
41871
|
}
|
|
41870
41872
|
});
|
|
@@ -41968,7 +41970,7 @@ var tI = {
|
|
|
41968
41970
|
}
|
|
41969
41971
|
v.data !== w && (v.updateData(w), r.has(v) || a.add(v), !v.selectable && v.isSelected() && c.push(v));
|
|
41970
41972
|
}, f = (v, w, b) => {
|
|
41971
|
-
for (let S = 0,
|
|
41973
|
+
for (let S = 0, R = w.length; S < R; ++S) {
|
|
41972
41974
|
const x = w[S];
|
|
41973
41975
|
if (!x)
|
|
41974
41976
|
continue;
|
|
@@ -41978,8 +41980,8 @@ var tI = {
|
|
|
41978
41980
|
continue;
|
|
41979
41981
|
}
|
|
41980
41982
|
l.add(E), E.treeParent = v;
|
|
41981
|
-
const
|
|
41982
|
-
|
|
41983
|
+
const y = d(x);
|
|
41984
|
+
y && f(E, y, b + 1);
|
|
41983
41985
|
}
|
|
41984
41986
|
};
|
|
41985
41987
|
f(s, t, 0);
|
|
@@ -42000,7 +42002,7 @@ var tI = {
|
|
|
42000
42002
|
}
|
|
42001
42003
|
updateRowData(e, t) {
|
|
42002
42004
|
if (this.dispatchRowDataUpdateStarted(e.add), this.beans.groupStage?.getNestedDataGetter())
|
|
42003
|
-
return
|
|
42005
|
+
return V(268), { remove: [], update: [], add: [] };
|
|
42004
42006
|
const s = [], i = Qi(this.gos), o = this.executeRemove(i, e, t, s), n = this.executeUpdate(i, e, t, s), r = this.executeAdd(e, t);
|
|
42005
42007
|
return this.deselect(s), { remove: o, update: n, add: r };
|
|
42006
42008
|
}
|
|
@@ -42069,7 +42071,7 @@ var tI = {
|
|
|
42069
42071
|
const s = new Hs(this.beans);
|
|
42070
42072
|
s.parent = this.rootNode, s.level = t, s.group = !1, s.expanded = !1, s.setDataAndId(e, String(this.nextId++));
|
|
42071
42073
|
const i = s.id, o = this.allNodesMap;
|
|
42072
|
-
return o[i] &&
|
|
42074
|
+
return o[i] && V(2, { nodeId: i }), o[i] = s, s;
|
|
42073
42075
|
}
|
|
42074
42076
|
/** Called when a node needs to be deleted */
|
|
42075
42077
|
deleteNode(e) {
|
|
@@ -42165,16 +42167,16 @@ var tI = {
|
|
|
42165
42167
|
const b = g && w.leafGroup;
|
|
42166
42168
|
let S = d && u && !w.leafGroup;
|
|
42167
42169
|
S && (m ?? (m = this.shouldSortContainsGroupCols(e)), S && (S = !m));
|
|
42168
|
-
let
|
|
42170
|
+
let R = null;
|
|
42169
42171
|
if (S) {
|
|
42170
42172
|
let x = !1;
|
|
42171
42173
|
if (h) {
|
|
42172
42174
|
const E = w.level + 1;
|
|
42173
42175
|
E < h.length && (x = h[E].getSort() === null);
|
|
42174
42176
|
}
|
|
42175
|
-
x || (
|
|
42176
|
-
} else !e.length || b || (t && s ?
|
|
42177
|
-
if (
|
|
42177
|
+
x || (R = fI(w));
|
|
42178
|
+
} else !e.length || b || (t && s ? R = gI(a, w, s, i, e) : R = a.doFullSort(w.childrenAfterAggFilter, e));
|
|
42179
|
+
if (R || (R = w.childrenAfterAggFilter?.slice(0) ?? []), f || (f = w.childrenAfterSort?.[0] !== R[0]), w.childrenAfterSort = R, Xm(w), p) {
|
|
42178
42180
|
const x = { nodes: w.childrenAfterSort };
|
|
42179
42181
|
p(x);
|
|
42180
42182
|
}
|
|
@@ -42320,7 +42322,7 @@ var tI = {
|
|
|
42320
42322
|
return;
|
|
42321
42323
|
const n = new Set(e), r = o?.onPropChange(n);
|
|
42322
42324
|
let a;
|
|
42323
|
-
n.has("rowData") ? a = s.get("rowData") : r && (a = o?.extractData()), a && !Array.isArray(a) && (a = null,
|
|
42325
|
+
n.has("rowData") ? a = s.get("rowData") : r && (a = o?.extractData()), a && !Array.isArray(a) && (a = null, V(1));
|
|
42324
42326
|
const l = { step: "nothing", changedProps: n };
|
|
42325
42327
|
a && (!r && !this.isEmpty() && a.length > 0 && s.exists("getRowId") && // backward compatibility - for who want old behaviour of Row IDs but NOT Immutable Data.
|
|
42326
42328
|
!s.get("resetRowDataOnUpdate") ? (l.keepRenderedRows = !0, l.animate = !s.get("suppressAnimationFrame"), l.changedRowNodes = new ir(), t.setImmutableRowData(l, a)) : (l.rowDataUpdated = !0, l.newData = !0, t.setNewRowData(a), this.rowNodesCountReady = !0));
|
|
@@ -43065,7 +43067,7 @@ var DI = {
|
|
|
43065
43067
|
if (e == null)
|
|
43066
43068
|
return '""';
|
|
43067
43069
|
let t;
|
|
43068
|
-
return typeof e == "string" ? t = e : typeof e.toString == "function" ? t = e.toString() : (
|
|
43070
|
+
return typeof e == "string" ? t = e : typeof e.toString == "function" ? t = e.toString() : (V(53), t = ""), '"' + t.replace(/"/g, '""') + '"';
|
|
43069
43071
|
}
|
|
43070
43072
|
parse() {
|
|
43071
43073
|
return this.result;
|
|
@@ -43086,7 +43088,7 @@ var DI = {
|
|
|
43086
43088
|
}
|
|
43087
43089
|
export(e) {
|
|
43088
43090
|
if (this.isExportSuppressed()) {
|
|
43089
|
-
|
|
43091
|
+
V(51);
|
|
43090
43092
|
return;
|
|
43091
43093
|
}
|
|
43092
43094
|
const t = this.getMergedParams(e), s = this.getData(t), i = new Blob(["\uFEFF", s], { type: "text/plain" }), o = typeof t.fileName == "function" ? t.fileName(ce(this.gos, {})) : t.fileName;
|
|
@@ -43198,7 +43200,7 @@ var OI = {
|
|
|
43198
43200
|
loadFromDatasource() {
|
|
43199
43201
|
const e = this.createLoadParams();
|
|
43200
43202
|
if (Ve(this.params.datasource.getRows)) {
|
|
43201
|
-
|
|
43203
|
+
V(90);
|
|
43202
43204
|
return;
|
|
43203
43205
|
}
|
|
43204
43206
|
window.setTimeout(() => {
|
|
@@ -43998,8 +44000,8 @@ var rk = class extends L {
|
|
|
43998
44000
|
return D || (D = { colId: F }, p[F] = D, D);
|
|
43999
44001
|
}, m = {}, v = g("sort", o);
|
|
44000
44002
|
v && o?.sortModel.forEach(({ colId: F, sort: D }, N) => {
|
|
44001
|
-
const
|
|
44002
|
-
|
|
44003
|
+
const W = f(F);
|
|
44004
|
+
W.sort = D, W.sortIndex = N;
|
|
44003
44005
|
}), (v || !s) && (m.sort = null, m.sortIndex = null);
|
|
44004
44006
|
const w = g("rowGroup", n);
|
|
44005
44007
|
w && n?.groupColIds.forEach((F, D) => {
|
|
@@ -44018,14 +44020,14 @@ var rk = class extends L {
|
|
|
44018
44020
|
options: { pivotMode: !!a?.pivotMode },
|
|
44019
44021
|
source: t
|
|
44020
44022
|
})), (S || !s) && (m.pivot = null, m.pivotIndex = null);
|
|
44021
|
-
const
|
|
44022
|
-
if (
|
|
44023
|
+
const R = g("columnPinning", l);
|
|
44024
|
+
if (R) {
|
|
44023
44025
|
for (const F of l?.leftColIds ?? [])
|
|
44024
44026
|
f(F).pinned = "left";
|
|
44025
44027
|
for (const F of l?.rightColIds ?? [])
|
|
44026
44028
|
f(F).pinned = "right";
|
|
44027
44029
|
}
|
|
44028
|
-
(
|
|
44030
|
+
(R || !s) && (m.pinned = null);
|
|
44029
44031
|
const x = g("columnVisibility", c);
|
|
44030
44032
|
if (x)
|
|
44031
44033
|
for (const F of c?.hiddenColIds ?? [])
|
|
@@ -44034,11 +44036,11 @@ var rk = class extends L {
|
|
|
44034
44036
|
const E = g("columnSizing", d);
|
|
44035
44037
|
if (E)
|
|
44036
44038
|
for (const { colId: F, flex: D, width: N } of d?.columnSizingModel ?? []) {
|
|
44037
|
-
const
|
|
44038
|
-
|
|
44039
|
+
const W = f(F);
|
|
44040
|
+
W.flex = D ?? null, W.width = N;
|
|
44039
44041
|
}
|
|
44040
44042
|
(E || !s) && (m.flex = null);
|
|
44041
|
-
const
|
|
44043
|
+
const y = u?.orderedColIds, P = !!y?.length && !i?.has("columnOrder"), T = P ? y.map((F) => f(F)) : Object.values(p);
|
|
44042
44044
|
(T.length || h) && (this.columnStates = T, _t(
|
|
44043
44045
|
this.beans,
|
|
44044
44046
|
{
|
|
@@ -44415,7 +44417,7 @@ var vk = class extends L {
|
|
|
44415
44417
|
const e = this.getPageSizeSelectorValues(), t = this.pagination.getPageSize(), s = !t || !e.includes(t);
|
|
44416
44418
|
if (s) {
|
|
44417
44419
|
const o = this.gos.exists("paginationPageSize"), n = this.gos.get(Fo) !== !0;
|
|
44418
|
-
|
|
44420
|
+
V(94, { pageSizeSet: o, pageSizesSet: n, pageSizeOptions: e, paginationPageSizeOption: t }), n || V(95, { paginationPageSizeOption: t, paginationPageSizeSelector: Fo }), e.unshift("");
|
|
44419
44421
|
}
|
|
44420
44422
|
const i = String(s ? "" : t);
|
|
44421
44423
|
this.selectPageSizeComp ? (Bs(this.pageSizeOptions, e) || (this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)), this.pageSizeOptions = e), this.selectPageSizeComp.setValue(i, !0)) : this.createPageSizeSelectorComp(e, i), this.hasEmptyOption = s;
|
|
@@ -45022,27 +45024,27 @@ var qk = class extends L {
|
|
|
45022
45024
|
const m = /* @__PURE__ */ new Set();
|
|
45023
45025
|
let v = -1;
|
|
45024
45026
|
const w = Object.fromEntries(
|
|
45025
|
-
c.map(({ colId:
|
|
45027
|
+
c.map(({ colId: R, ...x }) => [R, x])
|
|
45026
45028
|
), b = o ?? this.gos.get("skipHeaderOnAutoSize"), S = n ?? b;
|
|
45027
45029
|
for (; v !== 0; ) {
|
|
45028
45030
|
v = 0;
|
|
45029
|
-
const
|
|
45031
|
+
const R = [];
|
|
45030
45032
|
for (const x of i) {
|
|
45031
45033
|
if (!x || aR(x))
|
|
45032
45034
|
continue;
|
|
45033
45035
|
const E = g.getCol(x);
|
|
45034
45036
|
if (!E || m.has(E))
|
|
45035
45037
|
continue;
|
|
45036
|
-
const
|
|
45037
|
-
if (
|
|
45038
|
+
const y = p.getPreferredWidthForColumn(E, b);
|
|
45039
|
+
if (y > 0) {
|
|
45038
45040
|
const P = w[E.colId] ?? {};
|
|
45039
45041
|
P.minWidth ?? (P.minWidth = l), P.maxWidth ?? (P.maxWidth = a);
|
|
45040
|
-
const T = Yk(E,
|
|
45042
|
+
const T = Yk(E, y, P);
|
|
45041
45043
|
E.setActualWidth(T, d), m.add(E), v++;
|
|
45042
45044
|
}
|
|
45043
|
-
|
|
45045
|
+
R.push(E);
|
|
45044
45046
|
}
|
|
45045
|
-
|
|
45047
|
+
R.length && f.refresh(d);
|
|
45046
45048
|
}
|
|
45047
45049
|
S || this.autoSizeColumnGroupsByColumns(i, d, r), t(m);
|
|
45048
45050
|
});
|
|
@@ -45112,7 +45114,7 @@ var qk = class extends L {
|
|
|
45112
45114
|
this.sizeColumnsToFitGridBody(e, 500);
|
|
45113
45115
|
}, 100) : t === 500 ? window.setTimeout(() => {
|
|
45114
45116
|
this.sizeColumnsToFitGridBody(e, -1);
|
|
45115
|
-
}, 500) :
|
|
45117
|
+
}, 500) : V(29);
|
|
45116
45118
|
}
|
|
45117
45119
|
// called from api
|
|
45118
45120
|
sizeColumnsToFit(e, t = "sizeColumnsToFit", s, i) {
|
|
@@ -45161,9 +45163,9 @@ var qk = class extends L {
|
|
|
45161
45163
|
const f = p / us(l);
|
|
45162
45164
|
let m = p;
|
|
45163
45165
|
for (let v = l.length - 1; v >= 0; v--) {
|
|
45164
|
-
const w = l[v], b = o?.[w.getId()], S = b?.minWidth ?? i?.defaultMinWidth,
|
|
45166
|
+
const w = l[v], b = o?.[w.getId()], S = b?.minWidth ?? i?.defaultMinWidth, R = b?.maxWidth ?? i?.defaultMaxWidth, x = w.getMinWidth(), E = w.getMaxWidth(), y = typeof S == "number" && S > x ? S : x, P = typeof R == "number" && R < E ? R : E;
|
|
45165
45167
|
let T = Math.round(w.getActualWidth() * f);
|
|
45166
|
-
T <
|
|
45168
|
+
T < y ? (T = y, h(w), u = !1) : T > P ? (T = P, h(w), u = !1) : v === 0 && (T = m), w.setActualWidth(T, t, !0), m -= T;
|
|
45167
45169
|
}
|
|
45168
45170
|
}
|
|
45169
45171
|
}
|
|
@@ -45332,22 +45334,22 @@ var iA = {
|
|
|
45332
45334
|
v(b, n.getValue(t, b));
|
|
45333
45335
|
return;
|
|
45334
45336
|
}
|
|
45335
|
-
const
|
|
45337
|
+
const R = n.getValue(t, b);
|
|
45336
45338
|
if (g) {
|
|
45337
45339
|
const x = ce(s, {
|
|
45338
45340
|
valueA: m,
|
|
45339
45341
|
nodeA: p,
|
|
45340
|
-
valueB:
|
|
45342
|
+
valueB: R,
|
|
45341
45343
|
nodeB: b,
|
|
45342
45344
|
column: t,
|
|
45343
45345
|
colDef: a
|
|
45344
45346
|
});
|
|
45345
45347
|
if (!h(x)) {
|
|
45346
|
-
v(b,
|
|
45348
|
+
v(b, R);
|
|
45347
45349
|
return;
|
|
45348
45350
|
}
|
|
45349
|
-
} else if (u ? !u(m,
|
|
45350
|
-
v(b,
|
|
45351
|
+
} else if (u ? !u(m, R) : m !== R) {
|
|
45352
|
+
v(b, R);
|
|
45351
45353
|
return;
|
|
45352
45354
|
}
|
|
45353
45355
|
if (!f) {
|
|
@@ -46195,14 +46197,14 @@ function Gr(e, t, s) {
|
|
|
46195
46197
|
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];
|
|
46196
46198
|
}
|
|
46197
46199
|
var nC = vc((e, t) => {
|
|
46198
|
-
const { registry: s, context: i } = et(gt), o = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = k(), [h, g] = k(), [p, f] = k(), [m, v] = k(() => new Ht()), [w, b] = k(() => new Ht("ag-hidden")), [S,
|
|
46200
|
+
const { registry: s, context: i } = et(gt), o = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = k(), [h, g] = k(), [p, f] = k(), [m, v] = k(() => new Ht()), [w, b] = k(() => new Ht("ag-hidden")), [S, R] = k(() => new Ht("ag-hidden")), [x, E] = k(() => new Ht("ag-invisible"));
|
|
46199
46201
|
Vr(t, () => ({
|
|
46200
46202
|
// force new instance when grid tries to refresh
|
|
46201
46203
|
refresh() {
|
|
46202
46204
|
return !1;
|
|
46203
46205
|
}
|
|
46204
46206
|
})), zt(() => un(d, i, n.current), [d]);
|
|
46205
|
-
const
|
|
46207
|
+
const y = I((se) => {
|
|
46206
46208
|
if (o.current = se, !se || i.isDestroyed()) {
|
|
46207
46209
|
c.current = i.destroyBean(c.current);
|
|
46208
46210
|
return;
|
|
@@ -46213,7 +46215,7 @@ var nC = vc((e, t) => {
|
|
|
46213
46215
|
},
|
|
46214
46216
|
setChildCount: ($) => g($),
|
|
46215
46217
|
toggleCss: ($, K) => v((Y) => Y.setClass($, K)),
|
|
46216
|
-
setContractedDisplayed: ($) =>
|
|
46218
|
+
setContractedDisplayed: ($) => R((K) => K.setClass("ag-hidden", !$)),
|
|
46217
46219
|
setExpandedDisplayed: ($) => b((K) => K.setClass("ag-hidden", !$)),
|
|
46218
46220
|
setCheckboxVisible: ($) => E((K) => K.setClass("ag-invisible", !$)),
|
|
46219
46221
|
setCheckboxSpacing: ($) => E((K) => K.setClass("ag-group-checkbox-spacing", $))
|
|
@@ -46227,21 +46229,21 @@ var nC = vc((e, t) => {
|
|
|
46227
46229
|
nC,
|
|
46228
46230
|
e
|
|
46229
46231
|
));
|
|
46230
|
-
}, []), P =
|
|
46232
|
+
}, []), P = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), T = B(() => `ag-group-expanded ${w.toString()}`, [w]), F = B(
|
|
46231
46233
|
() => `ag-group-contracted ${S.toString()}`,
|
|
46232
46234
|
[S]
|
|
46233
|
-
), D =
|
|
46235
|
+
), D = B(() => `ag-group-checkbox ${x.toString()}`, [x]), N = d?.componentFromFramework, W = N ? d.componentClass : void 0, G = d == null && p != null, ee = ao(p);
|
|
46234
46236
|
return /* @__PURE__ */ U.createElement(
|
|
46235
46237
|
"span",
|
|
46236
46238
|
{
|
|
46237
46239
|
className: P,
|
|
46238
|
-
ref:
|
|
46240
|
+
ref: y,
|
|
46239
46241
|
...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
|
|
46240
46242
|
},
|
|
46241
46243
|
/* @__PURE__ */ U.createElement("span", { className: T, ref: a }),
|
|
46242
46244
|
/* @__PURE__ */ U.createElement("span", { className: F, ref: l }),
|
|
46243
46245
|
/* @__PURE__ */ U.createElement("span", { className: D, ref: r }),
|
|
46244
|
-
/* @__PURE__ */ U.createElement("span", { className: "ag-group-value", ref: n }, G ? ee : N ? /* @__PURE__ */ U.createElement(
|
|
46246
|
+
/* @__PURE__ */ U.createElement("span", { className: "ag-group-value", ref: n }, G ? ee : N ? /* @__PURE__ */ U.createElement(W, { ...d.params }) : null),
|
|
46245
46247
|
/* @__PURE__ */ U.createElement("span", { className: "ag-group-child-count" }, h)
|
|
46246
46248
|
);
|
|
46247
46249
|
}), Nh = nC, Td = Br({
|
|
@@ -46646,7 +46648,7 @@ var WA = class {
|
|
|
46646
46648
|
}
|
|
46647
46649
|
};
|
|
46648
46650
|
function Md() {
|
|
46649
|
-
|
|
46651
|
+
V(231);
|
|
46650
46652
|
}
|
|
46651
46653
|
var QA = 1e3, XA = class {
|
|
46652
46654
|
constructor(e, t, s) {
|
|
@@ -46708,7 +46710,7 @@ var QA = 1e3, XA = class {
|
|
|
46708
46710
|
setWidth: (S) => {
|
|
46709
46711
|
l.current && (l.current.style.width = S);
|
|
46710
46712
|
},
|
|
46711
|
-
toggleCss: (S,
|
|
46713
|
+
toggleCss: (S, R) => h.current.toggleCss(S, R),
|
|
46712
46714
|
setUserStyles: (S) => r(S),
|
|
46713
46715
|
setAriaSort: (S) => {
|
|
46714
46716
|
l.current && (S ? sy(l.current, S) : iy(l.current));
|
|
@@ -46726,7 +46728,7 @@ var QA = 1e3, XA = class {
|
|
|
46726
46728
|
), ve(() => {
|
|
46727
46729
|
e.setDragSource(l.current);
|
|
46728
46730
|
}, [i]);
|
|
46729
|
-
const p =
|
|
46731
|
+
const p = B(() => !!(i?.componentFromFramework && uo(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
|
|
46730
46732
|
return /* @__PURE__ */ U.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ U.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ U.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ U.createElement(m, { ...i.params }) : /* @__PURE__ */ U.createElement(m, { ...i.params, ref: u }) : null));
|
|
46731
46733
|
}, e8 = ht(JA), t8 = class {
|
|
46732
46734
|
constructor(e, t) {
|
|
@@ -46749,15 +46751,15 @@ var QA = 1e3, XA = class {
|
|
|
46749
46751
|
() => new Ht("ag-header-cell", "ag-floating-filter")
|
|
46750
46752
|
), [a, l] = k(() => new Ht()), [c, d] = k(
|
|
46751
46753
|
() => new Ht("ag-floating-filter-button", "ag-hidden")
|
|
46752
|
-
), [u, h] = k("false"), [g, p] = k(), [, f] = k(1), m = O(), v = O(null), w = O(null), b = O(null), S = O(null),
|
|
46753
|
-
$ != null &&
|
|
46754
|
-
},
|
|
46754
|
+
), [u, h] = k("false"), [g, p] = k(), [, f] = k(1), m = O(), v = O(null), w = O(null), b = O(null), S = O(null), R = O(), x = O(), E = ($) => {
|
|
46755
|
+
$ != null && R.current && R.current($);
|
|
46756
|
+
}, y = I(($) => {
|
|
46755
46757
|
if (v.current = $, !$ || !e.isAlive() || t.isDestroyed()) {
|
|
46756
46758
|
m.current = t.destroyBean(m.current);
|
|
46757
46759
|
return;
|
|
46758
46760
|
}
|
|
46759
46761
|
m.current = t.createBean(new lo()), x.current = new xe((Y) => {
|
|
46760
|
-
|
|
46762
|
+
R.current = Y;
|
|
46761
46763
|
});
|
|
46762
46764
|
const K = {
|
|
46763
46765
|
toggleCss: (Y, J) => r((Z) => Z.setClass(Y, J)),
|
|
@@ -46779,17 +46781,17 @@ var QA = 1e3, XA = class {
|
|
|
46779
46781
|
() => un(g, t, w.current, E),
|
|
46780
46782
|
[g]
|
|
46781
46783
|
);
|
|
46782
|
-
const P =
|
|
46784
|
+
const P = B(() => n.toString(), [n]), T = B(() => a.toString(), [a]), F = B(() => c.toString(), [c]), D = B(() => !!(g && g.componentFromFramework && uo(g.componentClass)), [g]), N = B(() => s.get("reactiveCustomComponents"), []), W = B(() => s.get("enableFilterHandlers"), []), [G, ee] = k();
|
|
46783
46785
|
ve(() => {
|
|
46784
46786
|
if (g?.componentFromFramework)
|
|
46785
46787
|
if (N) {
|
|
46786
|
-
const $ =
|
|
46788
|
+
const $ = W ? t8 : WA, K = new $(g.params, () => f((Y) => Y + 1));
|
|
46787
46789
|
E(K), ee(K);
|
|
46788
46790
|
} else
|
|
46789
46791
|
Md();
|
|
46790
46792
|
}, [g]);
|
|
46791
46793
|
const se = G?.getProps(), H = g?.componentFromFramework, ie = g?.componentClass;
|
|
46792
|
-
return /* @__PURE__ */ U.createElement("div", { ref:
|
|
46794
|
+
return /* @__PURE__ */ U.createElement("div", { ref: y, style: i, className: P, role: "gridcell" }, /* @__PURE__ */ U.createElement("div", { ref: w, className: T, role: "presentation" }, H ? N ? se && /* @__PURE__ */ U.createElement(
|
|
46793
46795
|
Td.Provider,
|
|
46794
46796
|
{
|
|
46795
46797
|
value: {
|
|
@@ -46849,14 +46851,14 @@ var QA = 1e3, XA = class {
|
|
|
46849
46851
|
zt(() => un(h, t, v.current), [h]), ve(() => {
|
|
46850
46852
|
f.current && e.setDragSource(f.current);
|
|
46851
46853
|
}, [h]);
|
|
46852
|
-
const S =
|
|
46854
|
+
const S = B(() => !!(h?.componentFromFramework && uo(h.componentClass)), [h]), R = B(() => "ag-header-group-cell " + o.toString(), [o]), x = B(
|
|
46853
46855
|
() => "ag-header-cell-resize " + r.toString(),
|
|
46854
46856
|
[r]
|
|
46855
|
-
), E = h?.componentFromFramework,
|
|
46856
|
-
return /* @__PURE__ */ U.createElement("div", { ref: b, style: s, className:
|
|
46857
|
+
), E = h?.componentFromFramework, y = h?.componentClass;
|
|
46858
|
+
return /* @__PURE__ */ U.createElement("div", { ref: b, style: s, className: R, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ U.createElement("div", { ref: v, className: "ag-header-cell-comp-wrapper", role: "presentation" }, E ? S ? /* @__PURE__ */ U.createElement(y, { ...h.params }) : /* @__PURE__ */ U.createElement(y, { ...h.params, ref: w }) : null), /* @__PURE__ */ U.createElement("div", { ref: m, "aria-hidden": l, className: x }));
|
|
46857
46859
|
}, n8 = ht(o8), r8 = ({ ctrl: e }) => {
|
|
46858
|
-
const { gos: t, context: s } = et(gt), { topOffset: i, rowHeight: o } =
|
|
46859
|
-
if (v.current =
|
|
46860
|
+
const { gos: t, context: s } = et(gt), { topOffset: i, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => o + "px"), [u, h] = k(() => i + "px"), g = O(null), [p, f] = k(() => e.getUpdatedHeaderCtrls()), m = O(), v = O(null), w = I((R) => {
|
|
46861
|
+
if (v.current = R, !R || !e.isAlive() || s.isDestroyed()) {
|
|
46860
46862
|
m.current = s.destroyBean(m.current);
|
|
46861
46863
|
return;
|
|
46862
46864
|
}
|
|
@@ -46864,8 +46866,8 @@ var QA = 1e3, XA = class {
|
|
|
46864
46866
|
const x = {
|
|
46865
46867
|
setHeight: (E) => d(E),
|
|
46866
46868
|
setTop: (E) => h(E),
|
|
46867
|
-
setHeaderCtrls: (E,
|
|
46868
|
-
const T = g.current, F = Gr(T, E,
|
|
46869
|
+
setHeaderCtrls: (E, y, P) => {
|
|
46870
|
+
const T = g.current, F = Gr(T, E, y);
|
|
46869
46871
|
F !== T && (g.current = F, Jo(P, () => f(F)));
|
|
46870
46872
|
},
|
|
46871
46873
|
setWidth: (E) => {
|
|
@@ -46876,20 +46878,20 @@ var QA = 1e3, XA = class {
|
|
|
46876
46878
|
}
|
|
46877
46879
|
};
|
|
46878
46880
|
e.setComp(x, m.current, !1);
|
|
46879
|
-
}, []), b =
|
|
46881
|
+
}, []), b = B(
|
|
46880
46882
|
() => ({
|
|
46881
46883
|
height: c,
|
|
46882
46884
|
top: u
|
|
46883
46885
|
}),
|
|
46884
46886
|
[c, u]
|
|
46885
|
-
), S = I((
|
|
46887
|
+
), S = I((R) => {
|
|
46886
46888
|
switch (e.type) {
|
|
46887
46889
|
case "group":
|
|
46888
|
-
return /* @__PURE__ */ U.createElement(n8, { ctrl:
|
|
46890
|
+
return /* @__PURE__ */ U.createElement(n8, { ctrl: R, key: R.instanceId });
|
|
46889
46891
|
case "filter":
|
|
46890
|
-
return /* @__PURE__ */ U.createElement(i8, { ctrl:
|
|
46892
|
+
return /* @__PURE__ */ U.createElement(i8, { ctrl: R, key: R.instanceId });
|
|
46891
46893
|
default:
|
|
46892
|
-
return /* @__PURE__ */ U.createElement(e8, { ctrl:
|
|
46894
|
+
return /* @__PURE__ */ U.createElement(e8, { ctrl: R, key: R.instanceId });
|
|
46893
46895
|
}
|
|
46894
46896
|
}, []);
|
|
46895
46897
|
return /* @__PURE__ */ U.createElement(
|
|
@@ -46941,7 +46943,7 @@ var QA = 1e3, XA = class {
|
|
|
46941
46943
|
setHeightAndMinHeight: (h) => i(h)
|
|
46942
46944
|
};
|
|
46943
46945
|
r.current.setComp(u, d, d);
|
|
46944
|
-
}, []), l =
|
|
46946
|
+
}, []), l = B(() => "ag-header " + e.toString(), [e]), c = B(
|
|
46945
46947
|
() => ({
|
|
46946
46948
|
height: s,
|
|
46947
46949
|
minHeight: s
|
|
@@ -47019,8 +47021,8 @@ var QA = 1e3, XA = class {
|
|
|
47019
47021
|
p = o.createBean(a.createPopupEditorWrapper(u.params));
|
|
47020
47022
|
const f = p.getGui();
|
|
47021
47023
|
if (e.jsChildComp) {
|
|
47022
|
-
const
|
|
47023
|
-
|
|
47024
|
+
const R = e.jsChildComp.getGui();
|
|
47025
|
+
R && f.appendChild(R);
|
|
47024
47026
|
}
|
|
47025
47027
|
const { column: m, rowNode: v } = c, w = {
|
|
47026
47028
|
column: m,
|
|
@@ -47107,7 +47109,7 @@ var QA = 1e3, XA = class {
|
|
|
47107
47109
|
cellCtrl: e,
|
|
47108
47110
|
parent: t
|
|
47109
47111
|
}) => {
|
|
47110
|
-
const s = O(), i =
|
|
47112
|
+
const s = O(), i = B(() => {
|
|
47111
47113
|
const { loadingComp: o } = e.getDeferLoadingCellRenderer();
|
|
47112
47114
|
return o ? {
|
|
47113
47115
|
value: void 0,
|
|
@@ -47130,11 +47132,11 @@ var QA = 1e3, XA = class {
|
|
|
47130
47132
|
instanceId: r
|
|
47131
47133
|
} = e, a = O(), [l, c] = k(
|
|
47132
47134
|
() => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
|
|
47133
|
-
), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, v] = k(!1), [w, b] = k(!1), [S,
|
|
47135
|
+
), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, v] = k(!1), [w, b] = k(!1), [S, R] = k(!1), [x, E] = k(), y = B(() => e.isForceWrapper(), [e]), P = B(() => e.getCellAriaRole(), [e]), T = O(null), F = O(null), D = O(null), N = O(), W = O(), G = O(), ee = O([]), se = O(), H = O(), [ie, $] = k(0), K = I((Ce) => {
|
|
47134
47136
|
H.current = Ce, $((Fe) => Fe + 1);
|
|
47135
|
-
}, []), Y = l != null && (m || S || w) && (d == null || !!d.popup), J =
|
|
47137
|
+
}, []), Y = l != null && (m || S || w) && (d == null || !!d.popup), J = y || Y, Z = B(() => e.getCellValueClass(), [e]), oe = I(
|
|
47136
47138
|
(Ce) => {
|
|
47137
|
-
if (
|
|
47139
|
+
if (W.current = Ce, Ce) {
|
|
47138
47140
|
const Fe = Ce.isCancelBeforeStart && Ce.isCancelBeforeStart();
|
|
47139
47141
|
setTimeout(() => {
|
|
47140
47142
|
Fe ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(Ce));
|
|
@@ -47150,21 +47152,21 @@ var QA = 1e3, XA = class {
|
|
|
47150
47152
|
if (A.current = l, Ce == null || Ce.compDetails == null || Fe == null || Fe.compDetails == null)
|
|
47151
47153
|
return;
|
|
47152
47154
|
se.current?.refreshVisibility();
|
|
47153
|
-
const
|
|
47154
|
-
if (
|
|
47155
|
+
const ke = Ce.compDetails, _ = Fe.compDetails;
|
|
47156
|
+
if (ke.componentClass != _.componentClass || D.current?.refresh == null)
|
|
47155
47157
|
return;
|
|
47156
|
-
D.current.refresh(
|
|
47158
|
+
D.current.refresh(_.params) != !0 && g((Se) => Se + 1);
|
|
47157
47159
|
}, [l]), zt(() => {
|
|
47158
47160
|
if (!(d && !d.compDetails.componentFromFramework) || o.isDestroyed())
|
|
47159
47161
|
return;
|
|
47160
|
-
const Fe = d.compDetails,
|
|
47161
|
-
return
|
|
47162
|
+
const Fe = d.compDetails, ke = d.popup === !0, _ = Fe.newAgStackInstance();
|
|
47163
|
+
return _.then((X) => {
|
|
47162
47164
|
if (!X)
|
|
47163
47165
|
return;
|
|
47164
47166
|
const Se = X.getGui();
|
|
47165
|
-
oe(X),
|
|
47167
|
+
oe(X), ke || ((y ? G : T).current?.appendChild(Se), X.afterGuiAttached?.()), E(X);
|
|
47166
47168
|
}), () => {
|
|
47167
|
-
|
|
47169
|
+
_.then((X) => {
|
|
47168
47170
|
const Se = X.getGui();
|
|
47169
47171
|
e.disableEditorTooltipFeature(), o.destroyBean(X), oe(void 0), E(void 0), Se?.remove();
|
|
47170
47172
|
});
|
|
@@ -47173,19 +47175,19 @@ var QA = 1e3, XA = class {
|
|
|
47173
47175
|
const le = I(
|
|
47174
47176
|
(Ce) => {
|
|
47175
47177
|
if (G.current = Ce, !Ce || o.isDestroyed() || !e.isAlive()) {
|
|
47176
|
-
const
|
|
47178
|
+
const _ = ee.current;
|
|
47177
47179
|
ee.current = [];
|
|
47178
|
-
for (const X of
|
|
47180
|
+
for (const X of _)
|
|
47179
47181
|
X();
|
|
47180
47182
|
return;
|
|
47181
47183
|
}
|
|
47182
47184
|
let Fe;
|
|
47183
|
-
const
|
|
47184
|
-
|
|
47185
|
-
As(
|
|
47185
|
+
const ke = (_) => {
|
|
47186
|
+
_ && (Ce.insertAdjacentElement("afterbegin", _.getGui()), ee.current.push(() => {
|
|
47187
|
+
As(_.getGui()), o.destroyBean(_), se.current === Fe && (se.current = void 0);
|
|
47186
47188
|
}));
|
|
47187
47189
|
};
|
|
47188
|
-
m &&
|
|
47190
|
+
m && ke(e.createSelectionCheckbox()), S && ke(e.createDndSource()), w && (Fe = e.createRowDragComp(), se.current = Fe, Fe && (ke(Fe), Fe.refreshVisibility()));
|
|
47189
47191
|
},
|
|
47190
47192
|
[e, o, S, w, m]
|
|
47191
47193
|
), be = I(() => {
|
|
@@ -47195,14 +47197,14 @@ var QA = 1e3, XA = class {
|
|
|
47195
47197
|
return;
|
|
47196
47198
|
}
|
|
47197
47199
|
a.current = o.createBean(new lo());
|
|
47198
|
-
const
|
|
47200
|
+
const ke = {
|
|
47199
47201
|
toggleCss: (X, Se) => he.current.toggleCss(X, Se),
|
|
47200
47202
|
setUserStyles: (X) => f(X),
|
|
47201
47203
|
getFocusableElement: () => T.current,
|
|
47202
47204
|
setIncludeSelection: (X) => v(X),
|
|
47203
47205
|
setIncludeRowDrag: (X) => b(X),
|
|
47204
|
-
setIncludeDndSource: (X) =>
|
|
47205
|
-
getCellEditor: () =>
|
|
47206
|
+
setIncludeDndSource: (X) => R(X),
|
|
47207
|
+
getCellEditor: () => W.current ?? null,
|
|
47206
47208
|
getCellRenderer: () => D.current ?? N.current,
|
|
47207
47209
|
getParentOfValue: () => H.current ?? G.current ?? T.current,
|
|
47208
47210
|
setRenderDetails: (X, Se, Ue) => {
|
|
@@ -47239,7 +47241,7 @@ var QA = 1e3, XA = class {
|
|
|
47239
47241
|
compProxy: $e
|
|
47240
47242
|
}), Se || c(void 0);
|
|
47241
47243
|
} else
|
|
47242
|
-
e.hasBrowserFocus() &&
|
|
47244
|
+
e.hasBrowserFocus() && ke.getFocusableElement().focus({ preventScroll: !0 }), W.current = void 0, u(void 0);
|
|
47243
47245
|
},
|
|
47244
47246
|
refreshEditStyles: (X, Se) => {
|
|
47245
47247
|
if (!T.current)
|
|
@@ -47247,12 +47249,12 @@ var QA = 1e3, XA = class {
|
|
|
47247
47249
|
const { current: Ue } = he;
|
|
47248
47250
|
Ue.toggleCss("ag-cell-value", !J), Ue.toggleCss("ag-cell-inline-editing", !!X && !Se), Ue.toggleCss("ag-cell-popup-editing", !!X && !!Se), Ue.toggleCss("ag-cell-not-inline-editing", !X || !!Se);
|
|
47249
47251
|
}
|
|
47250
|
-
},
|
|
47252
|
+
}, _ = G.current || void 0;
|
|
47251
47253
|
e.setComp(
|
|
47252
|
-
|
|
47254
|
+
ke,
|
|
47253
47255
|
Fe,
|
|
47254
47256
|
F.current ?? void 0,
|
|
47255
|
-
|
|
47257
|
+
_,
|
|
47256
47258
|
t,
|
|
47257
47259
|
s,
|
|
47258
47260
|
a.current
|
|
@@ -47261,40 +47263,40 @@ var QA = 1e3, XA = class {
|
|
|
47261
47263
|
T.current = Ce, be();
|
|
47262
47264
|
}, []), Ee = I((Ce) => {
|
|
47263
47265
|
F.current = Ce, be();
|
|
47264
|
-
}, []), Re =
|
|
47266
|
+
}, []), Re = B(() => !!(l?.compDetails?.componentFromFramework && uo(l.compDetails.componentClass)), [l]);
|
|
47265
47267
|
zt(() => {
|
|
47266
47268
|
if (!T.current)
|
|
47267
47269
|
return;
|
|
47268
47270
|
const { current: Ce } = he;
|
|
47269
47271
|
Ce.toggleCss("ag-cell-value", !J), Ce.toggleCss("ag-cell-inline-editing", !!d && !d.popup), Ce.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), Ce.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
|
|
47270
47272
|
});
|
|
47271
|
-
const
|
|
47273
|
+
const Le = () => {
|
|
47272
47274
|
const { compDetails: Ce, value: Fe } = l;
|
|
47273
47275
|
if (!Ce)
|
|
47274
47276
|
return Fe?.toString?.() ?? Fe;
|
|
47275
47277
|
if (Ce.componentFromFramework) {
|
|
47276
|
-
const
|
|
47277
|
-
return /* @__PURE__ */ U.createElement(NC, { fallback: /* @__PURE__ */ U.createElement(v8, { cellCtrl: e, parent: T }) }, Re ? /* @__PURE__ */ U.createElement(
|
|
47278
|
+
const ke = Ce.componentClass;
|
|
47279
|
+
return /* @__PURE__ */ U.createElement(NC, { fallback: /* @__PURE__ */ U.createElement(v8, { cellCtrl: e, parent: T }) }, Re ? /* @__PURE__ */ U.createElement(ke, { ...Ce.params, key: h }) : /* @__PURE__ */ U.createElement(ke, { ...Ce.params, key: h, ref: D }));
|
|
47278
47280
|
}
|
|
47279
|
-
},
|
|
47280
|
-
const Ce = () => l == null ? null : J ? /* @__PURE__ */ U.createElement("span", { role: "presentation", id: `cell-${r}`, className: Z, ref: K },
|
|
47281
|
+
}, Ie = () => {
|
|
47282
|
+
const Ce = () => l == null ? null : J ? /* @__PURE__ */ U.createElement("span", { role: "presentation", id: `cell-${r}`, className: Z, ref: K }, Le()) : Le(), Fe = (ke) => m8(ke, oe, T.current, e, x);
|
|
47281
47283
|
return d != null ? d.popup ? /* @__PURE__ */ U.createElement(U.Fragment, null, Ce(), Fe(d)) : Fe(d) : Ce();
|
|
47282
|
-
}, pt = () => /* @__PURE__ */ U.createElement("div", { ref: ue, style: p, role: P, "col-id": n }, J ? /* @__PURE__ */ U.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: le },
|
|
47284
|
+
}, pt = () => /* @__PURE__ */ U.createElement("div", { ref: ue, style: p, role: P, "col-id": n }, J ? /* @__PURE__ */ U.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: le }, Ie()) : Ie());
|
|
47283
47285
|
return e.isCellSpanning() ? /* @__PURE__ */ U.createElement("div", { ref: Ee, className: "ag-spanned-cell-wrapper", role: "presentation" }, pt()) : pt();
|
|
47284
47286
|
}, b8 = ht(w8), S8 = ({ rowCtrl: e, containerType: t }) => {
|
|
47285
47287
|
const { context: s, gos: i, editSvc: o } = et(gt), n = et(sC) === "default", r = O(), a = O(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = k(
|
|
47286
47288
|
() => c ? e.rowNode.getRowIndexString() : null
|
|
47287
|
-
), [h, g] = k(() => e.rowId), [p, f] = k(() => e.businessKey), [m, v] = k(() => e.rowStyles), w = O(null), [b, S] = k(() => null), [
|
|
47289
|
+
), [h, g] = k(() => e.rowId), [p, f] = k(() => e.businessKey), [m, v] = k(() => e.rowStyles), w = O(null), [b, S] = k(() => null), [R, x] = k(), [E, y] = k(
|
|
47288
47290
|
() => c ? e.getInitialRowTop(t) : void 0
|
|
47289
47291
|
), [P, T] = k(
|
|
47290
47292
|
() => c ? e.getInitialTransform(t) : void 0
|
|
47291
|
-
), F = O(null), D = O(), N = O(),
|
|
47293
|
+
), F = O(null), D = O(), N = O(), W = O(!1), [G, ee] = k(0);
|
|
47292
47294
|
ve(() => {
|
|
47293
|
-
if (
|
|
47295
|
+
if (W.current || !R || G > 10)
|
|
47294
47296
|
return;
|
|
47295
47297
|
const ue = F.current?.firstChild;
|
|
47296
|
-
ue ? (e.setupDetailRowAutoHeight(ue),
|
|
47297
|
-
}, [
|
|
47298
|
+
ue ? (e.setupDetailRowAutoHeight(ue), W.current = !0) : ee((Ee) => Ee + 1);
|
|
47299
|
+
}, [R, G]);
|
|
47298
47300
|
const se = O();
|
|
47299
47301
|
se.current || (se.current = new rn(() => F.current));
|
|
47300
47302
|
const H = O(() => {
|
|
@@ -47315,11 +47317,11 @@ var QA = 1e3, XA = class {
|
|
|
47315
47317
|
const Ee = {
|
|
47316
47318
|
// the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)
|
|
47317
47319
|
// as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.
|
|
47318
|
-
setTop:
|
|
47320
|
+
setTop: y,
|
|
47319
47321
|
setTransform: T,
|
|
47320
47322
|
// i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
|
|
47321
47323
|
// React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
|
|
47322
|
-
toggleCss: (Re,
|
|
47324
|
+
toggleCss: (Re, Le) => se.current.toggleCss(Re, Le),
|
|
47323
47325
|
setDomOrder: (Re) => a.current = Re,
|
|
47324
47326
|
setRowIndex: u,
|
|
47325
47327
|
setRowId: g,
|
|
@@ -47327,9 +47329,9 @@ var QA = 1e3, XA = class {
|
|
|
47327
47329
|
setUserStyles: v,
|
|
47328
47330
|
// if we don't maintain the order, then cols will be ripped out and into the dom
|
|
47329
47331
|
// when cols reordered, which would stop the CSS transitions from working
|
|
47330
|
-
setCellCtrls: (Re,
|
|
47331
|
-
const
|
|
47332
|
-
pt !==
|
|
47332
|
+
setCellCtrls: (Re, Le) => {
|
|
47333
|
+
const Ie = w.current, pt = Gr(Ie, Re, a.current);
|
|
47334
|
+
pt !== Ie && (w.current = pt, n ? H.current() : Jo(Le, () => S(pt)));
|
|
47333
47335
|
},
|
|
47334
47336
|
showFullWidth: (Re) => {
|
|
47335
47337
|
N.current = Re.params, x(Re);
|
|
@@ -47337,26 +47339,26 @@ var QA = 1e3, XA = class {
|
|
|
47337
47339
|
getFullWidthCellRenderer: () => D.current,
|
|
47338
47340
|
getFullWidthCellRendererParams: () => N.current,
|
|
47339
47341
|
refreshFullWidth: (Re) => {
|
|
47340
|
-
const
|
|
47341
|
-
return N.current =
|
|
47342
|
-
...
|
|
47343
|
-
params:
|
|
47344
|
-
})), !0) : !D.current || !D.current.refresh ? !1 : D.current.refresh(
|
|
47342
|
+
const Le = Re();
|
|
47343
|
+
return N.current = Le, A.current ? (x((Ie) => ({
|
|
47344
|
+
...Ie,
|
|
47345
|
+
params: Le
|
|
47346
|
+
})), !0) : !D.current || !D.current.refresh ? !1 : D.current.refresh(Le);
|
|
47345
47347
|
}
|
|
47346
47348
|
};
|
|
47347
47349
|
e.setComp(Ee, ue, t, r.current);
|
|
47348
47350
|
}, []);
|
|
47349
47351
|
zt(
|
|
47350
|
-
() => un(
|
|
47351
|
-
[
|
|
47352
|
+
() => un(R, s, F.current, D),
|
|
47353
|
+
[R]
|
|
47352
47354
|
);
|
|
47353
|
-
const J =
|
|
47355
|
+
const J = B(() => {
|
|
47354
47356
|
const ue = { top: E, transform: P };
|
|
47355
47357
|
return Object.assign(ue, m), ue;
|
|
47356
|
-
}, [E, P, m]), Z = l &&
|
|
47358
|
+
}, [E, P, m]), Z = l && R?.componentFromFramework, oe = !l && K != null, he = B(() => !!(R?.componentFromFramework && uo(R.componentClass)), [R]), A = O(!1);
|
|
47357
47359
|
ve(() => {
|
|
47358
|
-
A.current = he && !!
|
|
47359
|
-
}, [he,
|
|
47360
|
+
A.current = he && !!R && !!i.get("reactiveCustomComponents");
|
|
47361
|
+
}, [he, R]);
|
|
47360
47362
|
const le = () => K?.map((ue) => /* @__PURE__ */ U.createElement(
|
|
47361
47363
|
b8,
|
|
47362
47364
|
{
|
|
@@ -47366,8 +47368,8 @@ var QA = 1e3, XA = class {
|
|
|
47366
47368
|
key: ue.instanceId
|
|
47367
47369
|
}
|
|
47368
47370
|
)), be = () => {
|
|
47369
|
-
const ue =
|
|
47370
|
-
return he ? /* @__PURE__ */ U.createElement(ue, { ...
|
|
47371
|
+
const ue = R.componentClass;
|
|
47372
|
+
return he ? /* @__PURE__ */ U.createElement(ue, { ...R.params }) : /* @__PURE__ */ U.createElement(ue, { ...R.params, ref: D });
|
|
47371
47373
|
};
|
|
47372
47374
|
return /* @__PURE__ */ U.createElement(
|
|
47373
47375
|
"div",
|
|
@@ -47382,13 +47384,13 @@ var QA = 1e3, XA = class {
|
|
|
47382
47384
|
oe ? le() : Z ? be() : null
|
|
47383
47385
|
);
|
|
47384
47386
|
}, Vh = ht(S8), y8 = ({ name: e }) => {
|
|
47385
|
-
const { context: t, gos: s } = et(gt), i =
|
|
47387
|
+
const { context: t, gos: s } = et(gt), i = B(() => ln(e), [e]), o = O(null), n = O(null), r = O(null), a = O([]), l = O([]), [c, d] = k(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = O([]), g = O([]), [p, f] = k(() => []), m = O(!1), v = O(), w = B(() => It("ag-viewport", Df(e)), [e]), b = B(() => It(sr(e)), [e]), S = B(() => It("ag-spanning-container", lF(e)), [e]), R = i.type === "center" || u, x = R ? o : n;
|
|
47386
47388
|
Ks(" AG Row Container " + e + " ", x);
|
|
47387
47389
|
const E = I(() => {
|
|
47388
|
-
const G = !
|
|
47390
|
+
const G = !R || o.current != null, ee = n.current != null, se = !u || r.current != null;
|
|
47389
47391
|
return G && ee && se;
|
|
47390
|
-
}, []),
|
|
47391
|
-
if (
|
|
47392
|
+
}, []), y = I(() => o.current == null && n.current == null && r.current == null, []), P = I(() => {
|
|
47393
|
+
if (y() && (v.current = t.destroyBean(v.current)), !t.isDestroyed() && E()) {
|
|
47392
47394
|
const G = (H) => {
|
|
47393
47395
|
const ie = Gr(
|
|
47394
47396
|
l.current,
|
|
@@ -47435,7 +47437,7 @@ var QA = 1e3, XA = class {
|
|
|
47435
47437
|
o.current
|
|
47436
47438
|
);
|
|
47437
47439
|
}
|
|
47438
|
-
}, [E,
|
|
47440
|
+
}, [E, y]), T = I(
|
|
47439
47441
|
(G) => {
|
|
47440
47442
|
n.current = G, P();
|
|
47441
47443
|
},
|
|
@@ -47455,16 +47457,16 @@ var QA = 1e3, XA = class {
|
|
|
47455
47457
|
{
|
|
47456
47458
|
className: b,
|
|
47457
47459
|
ref: T,
|
|
47458
|
-
role:
|
|
47460
|
+
role: R ? "presentation" : "rowgroup"
|
|
47459
47461
|
},
|
|
47460
47462
|
c.map((G) => /* @__PURE__ */ U.createElement(Vh, { rowCtrl: G, containerType: i.type, key: G.instanceId }))
|
|
47461
47463
|
);
|
|
47462
|
-
if (!
|
|
47464
|
+
if (!R)
|
|
47463
47465
|
return N();
|
|
47464
|
-
const
|
|
47465
|
-
return /* @__PURE__ */ U.createElement("div", { className: w, ref: D, role: "rowgroup" }, N(), u ?
|
|
47466
|
+
const W = () => /* @__PURE__ */ U.createElement("div", { className: S, ref: F, role: "presentation" }, p.map((G) => /* @__PURE__ */ U.createElement(Vh, { rowCtrl: G, containerType: i.type, key: G.instanceId })));
|
|
47467
|
+
return /* @__PURE__ */ U.createElement("div", { className: w, ref: D, role: "rowgroup" }, N(), u ? W() : null);
|
|
47466
47468
|
}, R8 = ht(y8), x8 = () => {
|
|
47467
|
-
const e = et(gt), { context: t, overlays: s } = e, [i, o] = k(""), [n, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [g, p] = k("100%"), [f, m] = k("0px"), [v, w] = k("0px"), [b, S] = k("100%"), [
|
|
47469
|
+
const e = et(gt), { context: t, overlays: s } = e, [i, o] = k(""), [n, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [g, p] = k("100%"), [f, m] = k("0px"), [v, w] = k("0px"), [b, S] = k("100%"), [R, x] = k(!0), [E, y] = k(!0), [P, T] = k(null), [F, D] = k(""), [N, W] = k(null), [G, ee] = k("ag-layout-normal"), se = O();
|
|
47468
47470
|
se.current || (se.current = new rn(() => H.current));
|
|
47469
47471
|
const H = O(null), ie = O(null), $ = O(null), K = O(null), Y = O(null), J = O(null), Z = O(null), oe = O([]), he = O([]);
|
|
47470
47472
|
Ks(" AG Grid Body ", H), Ks(" AG Pinned Top ", ie), Ks(" AG Sticky Top ", $), Ks(" AG Middle ", J), Ks(" AG Pinned Bottom ", Z);
|
|
@@ -47501,12 +47503,12 @@ var QA = 1e3, XA = class {
|
|
|
47501
47503
|
setStickyTopTop: h,
|
|
47502
47504
|
setStickyTopWidth: p,
|
|
47503
47505
|
setTopInvisible: x,
|
|
47504
|
-
setBottomInvisible:
|
|
47506
|
+
setBottomInvisible: y,
|
|
47505
47507
|
setColumnMovingCss: (Oe, ot) => se.current.toggleCss(Oe, ot),
|
|
47506
47508
|
updateLayoutClasses: ee,
|
|
47507
47509
|
setAlwaysVerticalScrollClass: T,
|
|
47508
47510
|
setPinnedTopBottomOverflowY: D,
|
|
47509
|
-
setCellSelectableCss: (Oe, ot) =>
|
|
47511
|
+
setCellSelectableCss: (Oe, ot) => W(ot ? Oe : null),
|
|
47510
47512
|
setBodyViewportWidth: (Oe) => {
|
|
47511
47513
|
J.current && (J.current.style.width = Oe);
|
|
47512
47514
|
},
|
|
@@ -47530,7 +47532,7 @@ var QA = 1e3, XA = class {
|
|
|
47530
47532
|
$.current,
|
|
47531
47533
|
K.current
|
|
47532
47534
|
);
|
|
47533
|
-
}, []), le =
|
|
47535
|
+
}, []), le = B(() => It("ag-root", "ag-unselectable", G), [G]), be = B(
|
|
47534
47536
|
() => It(
|
|
47535
47537
|
"ag-body-viewport",
|
|
47536
47538
|
i,
|
|
@@ -47539,49 +47541,49 @@ var QA = 1e3, XA = class {
|
|
|
47539
47541
|
N
|
|
47540
47542
|
),
|
|
47541
47543
|
[i, G, P, N]
|
|
47542
|
-
), ue =
|
|
47543
|
-
() => It("ag-floating-top",
|
|
47544
|
-
[N,
|
|
47545
|
-
), Re =
|
|
47544
|
+
), ue = B(() => It("ag-body", G), [G]), Ee = B(
|
|
47545
|
+
() => It("ag-floating-top", R ? "ag-invisible" : null, N),
|
|
47546
|
+
[N, R]
|
|
47547
|
+
), Re = B(() => It("ag-sticky-top", N), [N]), Le = B(
|
|
47546
47548
|
() => It("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, N),
|
|
47547
47549
|
[N, f]
|
|
47548
|
-
),
|
|
47550
|
+
), Ie = B(
|
|
47549
47551
|
() => It("ag-floating-bottom", E ? "ag-invisible" : null, N),
|
|
47550
47552
|
[N, E]
|
|
47551
|
-
), pt =
|
|
47553
|
+
), pt = B(
|
|
47552
47554
|
() => ({
|
|
47553
47555
|
height: n,
|
|
47554
47556
|
minHeight: n,
|
|
47555
47557
|
overflowY: F
|
|
47556
47558
|
}),
|
|
47557
47559
|
[n, F]
|
|
47558
|
-
), Ce =
|
|
47560
|
+
), Ce = B(
|
|
47559
47561
|
() => ({
|
|
47560
47562
|
height: c,
|
|
47561
47563
|
top: u,
|
|
47562
47564
|
width: g
|
|
47563
47565
|
}),
|
|
47564
47566
|
[c, u, g]
|
|
47565
|
-
), Fe =
|
|
47567
|
+
), Fe = B(
|
|
47566
47568
|
() => ({
|
|
47567
47569
|
height: f,
|
|
47568
47570
|
bottom: v,
|
|
47569
47571
|
width: b
|
|
47570
47572
|
}),
|
|
47571
47573
|
[f, v, b]
|
|
47572
|
-
),
|
|
47574
|
+
), ke = B(
|
|
47573
47575
|
() => ({
|
|
47574
47576
|
height: a,
|
|
47575
47577
|
minHeight: a,
|
|
47576
47578
|
overflowY: F
|
|
47577
47579
|
}),
|
|
47578
47580
|
[a, F]
|
|
47579
|
-
),
|
|
47581
|
+
), _ = (Se) => /* @__PURE__ */ U.createElement(R8, { name: Se, key: `${Se}-container` }), X = ({
|
|
47580
47582
|
section: Se,
|
|
47581
47583
|
children: Ue,
|
|
47582
47584
|
className: yt,
|
|
47583
47585
|
style: $e
|
|
47584
|
-
}) => /* @__PURE__ */ U.createElement("div", { ref: Se, className: yt, role: "presentation", style: $e }, Ue.map(
|
|
47586
|
+
}) => /* @__PURE__ */ U.createElement("div", { ref: Se, className: yt, role: "presentation", style: $e }, Ue.map(_));
|
|
47585
47587
|
return /* @__PURE__ */ U.createElement("div", { ref: A, className: le }, /* @__PURE__ */ U.createElement(d8, null), X({
|
|
47586
47588
|
section: ie,
|
|
47587
47589
|
className: Ee,
|
|
@@ -47598,13 +47600,13 @@ var QA = 1e3, XA = class {
|
|
|
47598
47600
|
children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
|
|
47599
47601
|
}), X({
|
|
47600
47602
|
section: K,
|
|
47601
|
-
className:
|
|
47603
|
+
className: Le,
|
|
47602
47604
|
style: Fe,
|
|
47603
47605
|
children: ["stickyBottomLeft", "stickyBottomCenter", "stickyBottomRight", "stickyBottomFullWidth"]
|
|
47604
47606
|
}), X({
|
|
47605
47607
|
section: Z,
|
|
47606
|
-
className:
|
|
47607
|
-
style:
|
|
47608
|
+
className: Ie,
|
|
47609
|
+
style: ke,
|
|
47608
47610
|
children: ["bottomLeft", "bottomCenter", "bottomRight", "bottomFullWidth"]
|
|
47609
47611
|
}));
|
|
47610
47612
|
}, F8 = ht(x8), E8 = (e, t) => {
|
|
@@ -47665,7 +47667,7 @@ var QA = 1e3, XA = class {
|
|
|
47665
47667
|
return /* @__PURE__ */ U.createElement(U.Fragment, null, m("top"), s, m("bottom"));
|
|
47666
47668
|
}, D8 = vc(E8), P8 = ht(D8), T8 = ({ context: e }) => {
|
|
47667
47669
|
const [t, s] = k(""), [i, o] = k(""), [n, r] = k(null), [a, l] = k(null), [c, d] = k(!1), [u, h] = k(), g = O(), p = O(null), f = O(), [m, v] = k(null), w = O(() => {
|
|
47668
|
-
}), b = O(), S = O([]),
|
|
47670
|
+
}), b = O(), S = O([]), R = I(() => {
|
|
47669
47671
|
}, []);
|
|
47670
47672
|
Ks(" AG Grid ", p);
|
|
47671
47673
|
const x = I((D) => {
|
|
@@ -47673,7 +47675,7 @@ var QA = 1e3, XA = class {
|
|
|
47673
47675
|
return;
|
|
47674
47676
|
const N = g.current;
|
|
47675
47677
|
w.current = N.focusInnerElement.bind(N);
|
|
47676
|
-
const
|
|
47678
|
+
const W = {
|
|
47677
47679
|
destroyGridUi: () => {
|
|
47678
47680
|
},
|
|
47679
47681
|
// do nothing, as framework users destroy grid by removing the comp
|
|
@@ -47696,13 +47698,13 @@ var QA = 1e3, XA = class {
|
|
|
47696
47698
|
setCursor: r,
|
|
47697
47699
|
setUserSelect: l
|
|
47698
47700
|
};
|
|
47699
|
-
N.setComp(
|
|
47701
|
+
N.setComp(W, D, D), d(!0);
|
|
47700
47702
|
}, []);
|
|
47701
47703
|
ve(() => {
|
|
47702
47704
|
const D = g.current, N = p.current;
|
|
47703
47705
|
if (!u || !D || !m || !N || e.isDestroyed())
|
|
47704
47706
|
return;
|
|
47705
|
-
const
|
|
47707
|
+
const W = [], {
|
|
47706
47708
|
watermarkSelector: G,
|
|
47707
47709
|
paginationSelector: ee,
|
|
47708
47710
|
sideBarSelector: se,
|
|
@@ -47711,33 +47713,33 @@ var QA = 1e3, XA = class {
|
|
|
47711
47713
|
} = D.getOptionalSelectors(), $ = [];
|
|
47712
47714
|
if (ie) {
|
|
47713
47715
|
const Y = e.createBean(new ie.component()), J = Y.getGui();
|
|
47714
|
-
N.insertAdjacentElement("afterbegin", J), $.push(J),
|
|
47716
|
+
N.insertAdjacentElement("afterbegin", J), $.push(J), W.push(Y);
|
|
47715
47717
|
}
|
|
47716
47718
|
if (se) {
|
|
47717
47719
|
const Y = e.createBean(new se.component()), J = Y.getGui(), Z = m.querySelector(".ag-tab-guard-bottom");
|
|
47718
|
-
Z && (Z.insertAdjacentElement("beforebegin", J), $.push(J)),
|
|
47720
|
+
Z && (Z.insertAdjacentElement("beforebegin", J), $.push(J)), W.push(Y), S.current.push(Y);
|
|
47719
47721
|
}
|
|
47720
47722
|
const K = (Y) => {
|
|
47721
47723
|
const J = e.createBean(new Y()), Z = J.getGui();
|
|
47722
|
-
return N.insertAdjacentElement("beforeend", Z), $.push(Z),
|
|
47724
|
+
return N.insertAdjacentElement("beforeend", Z), $.push(Z), W.push(J), J;
|
|
47723
47725
|
};
|
|
47724
47726
|
if (H && K(H.component), ee) {
|
|
47725
47727
|
const Y = K(ee.component);
|
|
47726
47728
|
b.current = Y, S.current.push(Y);
|
|
47727
47729
|
}
|
|
47728
47730
|
return G && K(G.component), () => {
|
|
47729
|
-
e.destroyBeans(
|
|
47731
|
+
e.destroyBeans(W);
|
|
47730
47732
|
for (const Y of $)
|
|
47731
47733
|
Y.remove();
|
|
47732
47734
|
};
|
|
47733
47735
|
}, [u, m, e]);
|
|
47734
|
-
const E =
|
|
47736
|
+
const E = B(
|
|
47735
47737
|
() => It("ag-root-wrapper", t, i),
|
|
47736
47738
|
[t, i]
|
|
47737
|
-
),
|
|
47739
|
+
), y = B(
|
|
47738
47740
|
() => It("ag-root-wrapper-body", "ag-focus-managed", i),
|
|
47739
47741
|
[i]
|
|
47740
|
-
), P =
|
|
47742
|
+
), P = B(
|
|
47741
47743
|
() => ({
|
|
47742
47744
|
userSelect: a ?? "",
|
|
47743
47745
|
WebkitUserSelect: a ?? "",
|
|
@@ -47747,12 +47749,12 @@ var QA = 1e3, XA = class {
|
|
|
47747
47749
|
), T = I((D) => {
|
|
47748
47750
|
f.current = D, h(D !== null);
|
|
47749
47751
|
}, []), F = I(() => !g.current?.isFocusable(), []);
|
|
47750
|
-
return /* @__PURE__ */ U.createElement("div", { ref: x, className: E, style: P, role: "presentation" }, /* @__PURE__ */ U.createElement("div", { className:
|
|
47752
|
+
return /* @__PURE__ */ U.createElement("div", { ref: x, className: E, style: P, role: "presentation" }, /* @__PURE__ */ U.createElement("div", { className: y, ref: v, role: "presentation" }, c && m && !e.isDestroyed() && /* @__PURE__ */ U.createElement(gt.Provider, { value: e.getBeans() }, /* @__PURE__ */ U.createElement(
|
|
47751
47753
|
P8,
|
|
47752
47754
|
{
|
|
47753
47755
|
ref: T,
|
|
47754
47756
|
eFocusableElement: m,
|
|
47755
|
-
onTabKeyDown:
|
|
47757
|
+
onTabKeyDown: R,
|
|
47756
47758
|
gridCtrl: g.current,
|
|
47757
47759
|
forceFocusOutWhenTabGuardsAreEmpty: !0,
|
|
47758
47760
|
isEmpty: F
|
|
@@ -47829,17 +47831,17 @@ var QA = 1e3, XA = class {
|
|
|
47829
47831
|
for (; D; )
|
|
47830
47832
|
D(), D = F();
|
|
47831
47833
|
}
|
|
47832
|
-
},
|
|
47833
|
-
a.current =
|
|
47834
|
+
}, R = new H8(S);
|
|
47835
|
+
a.current = R;
|
|
47834
47836
|
const x = new I8(), E = {
|
|
47835
47837
|
providedBeanInstances: {
|
|
47836
47838
|
frameworkCompWrapper: new O8(i.current, b),
|
|
47837
47839
|
renderStatus: x
|
|
47838
47840
|
},
|
|
47839
47841
|
modules: w,
|
|
47840
|
-
frameworkOverrides:
|
|
47842
|
+
frameworkOverrides: R,
|
|
47841
47843
|
setThemeOnGridDiv: !0
|
|
47842
|
-
},
|
|
47844
|
+
}, y = (F) => {
|
|
47843
47845
|
u(F), F.createBean(x), o.current.push(() => {
|
|
47844
47846
|
F.destroy();
|
|
47845
47847
|
}), F.getBean("ctrlsSvc").whenReady(
|
|
@@ -47872,13 +47874,13 @@ var QA = 1e3, XA = class {
|
|
|
47872
47874
|
b.gridId ?? (b.gridId = l.current), t.current = T.create(
|
|
47873
47875
|
v,
|
|
47874
47876
|
b,
|
|
47875
|
-
|
|
47877
|
+
y,
|
|
47876
47878
|
P,
|
|
47877
47879
|
E
|
|
47878
47880
|
), o.current.push(() => {
|
|
47879
47881
|
t.current = void 0;
|
|
47880
47882
|
}), t.current && (l.current = t.current.getGridId());
|
|
47881
|
-
}, []), p =
|
|
47883
|
+
}, []), p = B(() => ({
|
|
47882
47884
|
height: "100%",
|
|
47883
47885
|
...e.containerStyle || {}
|
|
47884
47886
|
}), [e.containerStyle]), f = I((v) => {
|
|
@@ -47897,7 +47899,7 @@ function L8(e, t) {
|
|
|
47897
47899
|
const s = {};
|
|
47898
47900
|
for (const i of Object.keys(t)) {
|
|
47899
47901
|
if (dC.has(i)) {
|
|
47900
|
-
A8.has(i) &&
|
|
47902
|
+
A8.has(i) && V(274, { prop: i });
|
|
47901
47903
|
continue;
|
|
47902
47904
|
}
|
|
47903
47905
|
const o = t[i];
|
|
@@ -47959,28 +47961,28 @@ var O8 = class extends sT {
|
|
|
47959
47961
|
return new rC(e, this.parent, t, o);
|
|
47960
47962
|
}
|
|
47961
47963
|
}, N8 = vc((e, t) => {
|
|
47962
|
-
const s = et(gt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ht()), [c, d] = k(() => new Ht()), [u, h] = k(), [g, p] = k(), f = O(), m = O(null), v = O(), w =
|
|
47964
|
+
const s = et(gt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ht()), [c, d] = k(() => new Ht()), [u, h] = k(), [g, p] = k(), f = O(), m = O(null), v = O(), w = B(
|
|
47963
47965
|
() => ky(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
|
|
47964
47966
|
[e]
|
|
47965
|
-
), b =
|
|
47967
|
+
), b = B(() => a.toString() + " ag-details-row", [a]), S = B(() => c.toString() + " ag-details-grid", [c]);
|
|
47966
47968
|
t && Vr(t, () => ({
|
|
47967
47969
|
refresh() {
|
|
47968
47970
|
return f.current?.refresh() ?? !1;
|
|
47969
47971
|
}
|
|
47970
|
-
})), e.template &&
|
|
47971
|
-
const
|
|
47972
|
+
})), e.template && V(230);
|
|
47973
|
+
const R = I((E) => {
|
|
47972
47974
|
if (m.current = E, !E || o.isDestroyed()) {
|
|
47973
47975
|
f.current = o.destroyBean(f.current), v.current?.();
|
|
47974
47976
|
return;
|
|
47975
47977
|
}
|
|
47976
|
-
const
|
|
47978
|
+
const y = {
|
|
47977
47979
|
toggleCss: (T, F) => l((D) => D.setClass(T, F)),
|
|
47978
47980
|
toggleDetailGridCss: (T, F) => d((D) => D.setClass(T, F)),
|
|
47979
47981
|
setDetailGrid: (T) => h(T),
|
|
47980
47982
|
setRowData: (T) => p(T),
|
|
47981
47983
|
getGui: () => m.current
|
|
47982
47984
|
}, P = i.createDynamicBean("detailCellRendererCtrl", !0);
|
|
47983
|
-
if (P && (o.createBean(P), P.init(
|
|
47985
|
+
if (P && (o.createBean(P), P.init(y, e), f.current = P, n.get("detailRowAutoHeight"))) {
|
|
47984
47986
|
const T = () => {
|
|
47985
47987
|
if (m.current == null)
|
|
47986
47988
|
return;
|
|
@@ -47994,7 +47996,7 @@ var O8 = class extends sT {
|
|
|
47994
47996
|
}, []), x = I((E) => {
|
|
47995
47997
|
f.current?.registerDetailWithMaster(E);
|
|
47996
47998
|
}, []);
|
|
47997
|
-
return /* @__PURE__ */ U.createElement("div", { className: b, ref:
|
|
47999
|
+
return /* @__PURE__ */ U.createElement("div", { className: b, ref: R }, u && /* @__PURE__ */ U.createElement(
|
|
47998
48000
|
uC,
|
|
47999
48001
|
{
|
|
48000
48002
|
className: S,
|
|
@@ -48084,7 +48086,7 @@ const B8 = "h-full", ul = {
|
|
|
48084
48086
|
rowData: o = [],
|
|
48085
48087
|
getRowId: n
|
|
48086
48088
|
}) => {
|
|
48087
|
-
const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c =
|
|
48089
|
+
const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c = B(
|
|
48088
48090
|
() => new Set(l.keys()),
|
|
48089
48091
|
[l]
|
|
48090
48092
|
), d = e !== void 0 || t !== void 0;
|
|
@@ -48112,7 +48114,7 @@ const B8 = "h-full", ul = {
|
|
|
48112
48114
|
s,
|
|
48113
48115
|
i
|
|
48114
48116
|
]
|
|
48115
|
-
), h =
|
|
48117
|
+
), h = B(() => {
|
|
48116
48118
|
if (!o.length) return "unchecked";
|
|
48117
48119
|
const p = o.every(
|
|
48118
48120
|
(m) => c.has(n(m))
|
|
@@ -48170,13 +48172,13 @@ const hC = ({
|
|
|
48170
48172
|
emptyStateDescription: w = "Sorry, we couldn't find any results for your search.",
|
|
48171
48173
|
loading: b = !1,
|
|
48172
48174
|
wrapperBorder: S = !0,
|
|
48173
|
-
withoutHeaderBorders:
|
|
48175
|
+
withoutHeaderBorders: R = !1
|
|
48174
48176
|
}) => {
|
|
48175
|
-
const [x, E] = k(hl), [
|
|
48177
|
+
const [x, E] = k(hl), [y, P] = k(), T = Cc(), {
|
|
48176
48178
|
currentSelectedIds: F,
|
|
48177
48179
|
handleSelectionToggle: D,
|
|
48178
48180
|
headerCheckboxState: N,
|
|
48179
|
-
handleHeaderCheckboxChange:
|
|
48181
|
+
handleHeaderCheckboxChange: W
|
|
48180
48182
|
} = z8({
|
|
48181
48183
|
selectedRowIds: l,
|
|
48182
48184
|
selectedRows: c,
|
|
@@ -48184,7 +48186,7 @@ const hC = ({
|
|
|
48184
48186
|
onSelectionChangeWithMap: h,
|
|
48185
48187
|
rowData: t,
|
|
48186
48188
|
getRowId: g
|
|
48187
|
-
}), G =
|
|
48189
|
+
}), G = B(
|
|
48188
48190
|
() => ({
|
|
48189
48191
|
...ul,
|
|
48190
48192
|
oddRowBackgroundColor: p ? ul.oddRowBackgroundColor : ul.backgroundColor,
|
|
@@ -48212,9 +48214,9 @@ const hC = ({
|
|
|
48212
48214
|
`dial-header-select ${N}`,
|
|
48213
48215
|
!d && "dial-header-select-visible"
|
|
48214
48216
|
),
|
|
48215
|
-
onChange:
|
|
48217
|
+
onChange: W
|
|
48216
48218
|
}
|
|
48217
|
-
) }), [N,
|
|
48219
|
+
) }), [N, W, d]), ie = I(
|
|
48218
48220
|
(A) => {
|
|
48219
48221
|
if (A.data) {
|
|
48220
48222
|
const le = i?.(A.data) ?? [], be = A.value == null ? "" : String(A.value);
|
|
@@ -48270,8 +48272,8 @@ const hC = ({
|
|
|
48270
48272
|
const be = A.cellRenderer;
|
|
48271
48273
|
return { ...A, cellRenderer: (Ee) => {
|
|
48272
48274
|
const Re = Ee.data ? i?.(Ee.data) ?? [] : [];
|
|
48273
|
-
let
|
|
48274
|
-
return typeof be == "function" ?
|
|
48275
|
+
let Le = null;
|
|
48276
|
+
return typeof be == "function" ? Le = /* @__PURE__ */ C(be, { ...Ee }) : Le = ie(Ee), /* @__PURE__ */ C(
|
|
48275
48277
|
Et,
|
|
48276
48278
|
{
|
|
48277
48279
|
trigger: [At.ContextMenu],
|
|
@@ -48279,13 +48281,13 @@ const hC = ({
|
|
|
48279
48281
|
anchorToMouse: !0,
|
|
48280
48282
|
matchReferenceWidth: !0,
|
|
48281
48283
|
className: "w-full h-full",
|
|
48282
|
-
children: /* @__PURE__ */ C("span", { className: "block min-w-0 max-w-full flex-1", children:
|
|
48284
|
+
children: /* @__PURE__ */ C("span", { className: "block min-w-0 max-w-full flex-1", children: Le })
|
|
48283
48285
|
}
|
|
48284
48286
|
);
|
|
48285
48287
|
} };
|
|
48286
48288
|
},
|
|
48287
48289
|
[i, ie, a]
|
|
48288
|
-
), Y =
|
|
48290
|
+
), Y = B(
|
|
48289
48291
|
() => ({
|
|
48290
48292
|
colId: "__select",
|
|
48291
48293
|
headerName: "",
|
|
@@ -48303,10 +48305,10 @@ const hC = ({
|
|
|
48303
48305
|
headerComponent: H
|
|
48304
48306
|
}),
|
|
48305
48307
|
[$, H]
|
|
48306
|
-
), J =
|
|
48308
|
+
), J = B(() => {
|
|
48307
48309
|
const A = (e ?? []).map(K);
|
|
48308
48310
|
return r ? [Y, ...A] : A;
|
|
48309
|
-
}, [e, Y, r, K]), Z =
|
|
48311
|
+
}, [e, Y, r, K]), Z = B(
|
|
48310
48312
|
() => ({
|
|
48311
48313
|
minWidth: 150,
|
|
48312
48314
|
resizable: !0,
|
|
@@ -48328,8 +48330,8 @@ const hC = ({
|
|
|
48328
48330
|
A.api.updateGridOptions({ columnDefs: le, rowData: t }), A.api.sizeColumnsToFit(), P(A.api), s?.onGridReady?.(A);
|
|
48329
48331
|
};
|
|
48330
48332
|
ve(() => {
|
|
48331
|
-
|
|
48332
|
-
}, [
|
|
48333
|
+
y && y.redrawRows();
|
|
48334
|
+
}, [y, F]);
|
|
48333
48335
|
const he = I(
|
|
48334
48336
|
() => /* @__PURE__ */ C(
|
|
48335
48337
|
Ec,
|
|
@@ -48357,7 +48359,7 @@ const hC = ({
|
|
|
48357
48359
|
B8,
|
|
48358
48360
|
o,
|
|
48359
48361
|
r && "with-selection-column",
|
|
48360
|
-
|
|
48362
|
+
R && "dial-without-header-borders"
|
|
48361
48363
|
),
|
|
48362
48364
|
"aria-label": n,
|
|
48363
48365
|
role: "region",
|
|
@@ -48409,14 +48411,14 @@ const gC = () => {
|
|
|
48409
48411
|
areHiddenFilesVisible: i,
|
|
48410
48412
|
onToggleHiddenFiles: o,
|
|
48411
48413
|
isNewButtonVisible: n,
|
|
48412
|
-
newButtonVariant: r =
|
|
48414
|
+
newButtonVariant: r = Ae.Secondary,
|
|
48413
48415
|
newButtonDropdownItems: a = [],
|
|
48414
48416
|
newButtonLabel: l = "New",
|
|
48415
48417
|
hiddenFilesSwitcherLabel: c = "Hidden files",
|
|
48416
48418
|
showHiddenFilesLabel: d = "Show hidden files",
|
|
48417
48419
|
hideHiddenFilesLabel: u = "Hide hidden files"
|
|
48418
48420
|
}) => {
|
|
48419
|
-
const h = gC(), g =
|
|
48421
|
+
const h = gC(), g = B(() => [
|
|
48420
48422
|
{
|
|
48421
48423
|
key: "hidden-files-switch",
|
|
48422
48424
|
label: i ? u : d,
|
|
@@ -48515,13 +48517,13 @@ function $8({
|
|
|
48515
48517
|
let f = null;
|
|
48516
48518
|
const m = () => {
|
|
48517
48519
|
f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
48518
|
-
const w = r.current, b = l.current?.offsetWidth ?? 0, S = c.current?.offsetWidth ?? 0,
|
|
48520
|
+
const w = r.current, b = l.current?.offsetWidth ?? 0, S = c.current?.offsetWidth ?? 0, R = b + S, E = w.getBoundingClientRect().width - R - s - i * 2 - o * 2, y = d.current;
|
|
48519
48521
|
let P = 0, T = 0;
|
|
48520
48522
|
if (t === Ni.Reverse)
|
|
48521
|
-
for (let F =
|
|
48523
|
+
for (let F = y.length - 1; F >= 0 && (P += y[F] + i, !(P > E)); F--)
|
|
48522
48524
|
T++;
|
|
48523
48525
|
else
|
|
48524
|
-
for (const F of
|
|
48526
|
+
for (const F of y) {
|
|
48525
48527
|
if (P += F + i, P > E) break;
|
|
48526
48528
|
T++;
|
|
48527
48529
|
}
|
|
@@ -48567,7 +48569,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48567
48569
|
{
|
|
48568
48570
|
iconBefore: h,
|
|
48569
48571
|
label: g,
|
|
48570
|
-
variant:
|
|
48572
|
+
variant: Ae.Secondary,
|
|
48571
48573
|
hideTitleOnMobile: !0
|
|
48572
48574
|
},
|
|
48573
48575
|
u
|
|
@@ -48588,7 +48590,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48588
48590
|
label: d,
|
|
48589
48591
|
onClick: t,
|
|
48590
48592
|
textClassName: "text-accent-primary whitespace-nowrap",
|
|
48591
|
-
variant:
|
|
48593
|
+
variant: Ae.Tertiary,
|
|
48592
48594
|
iconBefore: /* @__PURE__ */ C(so, { ...de, className: "text-accent-primary" })
|
|
48593
48595
|
}
|
|
48594
48596
|
) }),
|
|
@@ -48619,7 +48621,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48619
48621
|
className: "!p-[9px]",
|
|
48620
48622
|
iconBefore: h,
|
|
48621
48623
|
label: g,
|
|
48622
|
-
variant:
|
|
48624
|
+
variant: Ae.Secondary,
|
|
48623
48625
|
hideTitleOnMobile: !0,
|
|
48624
48626
|
disabled: f,
|
|
48625
48627
|
onClick: (m) => p?.({ key: u, domEvent: m })
|
|
@@ -48682,7 +48684,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48682
48684
|
l.current = !1, n(!1), i([]), a(null);
|
|
48683
48685
|
}, []), u = I(
|
|
48684
48686
|
(w, b) => {
|
|
48685
|
-
const S = e(w),
|
|
48687
|
+
const S = e(w), R = new Set(S.map(gl)), x = b.filter((E) => R.has(E.name));
|
|
48686
48688
|
return {
|
|
48687
48689
|
hasConflicts: x.length > 0,
|
|
48688
48690
|
conflicts: x
|
|
@@ -48690,22 +48692,22 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48690
48692
|
},
|
|
48691
48693
|
[e]
|
|
48692
48694
|
), h = I(
|
|
48693
|
-
(w, b, S,
|
|
48695
|
+
(w, b, S, R) => {
|
|
48694
48696
|
const x = e(w), E = new Set(x.map(gl));
|
|
48695
|
-
return b.map((
|
|
48696
|
-
const P =
|
|
48697
|
+
return b.map((y) => {
|
|
48698
|
+
const P = y.name, T = E.has(P), F = S && T ? P : zh(P, E);
|
|
48697
48699
|
return (!S || !T) && E.add(F), {
|
|
48698
|
-
sourceUrl:
|
|
48700
|
+
sourceUrl: y.path,
|
|
48699
48701
|
destinationUrl: `${w}/${F}`,
|
|
48700
48702
|
overwrite: S && T,
|
|
48701
|
-
nodeType:
|
|
48702
|
-
...
|
|
48703
|
+
nodeType: y.nodeType ?? Je.ITEM,
|
|
48704
|
+
...R ?? {}
|
|
48703
48705
|
};
|
|
48704
48706
|
});
|
|
48705
48707
|
},
|
|
48706
48708
|
[e]
|
|
48707
48709
|
), g = I(
|
|
48708
|
-
(w, b, S,
|
|
48710
|
+
(w, b, S, R) => {
|
|
48709
48711
|
const x = e(w), E = new Set(x.map(gl));
|
|
48710
48712
|
return b.filter((P) => S.get(P.path) !== dt.Cancel).map((P) => {
|
|
48711
48713
|
const T = S.get(P.path), F = E.has(P.name), D = T === dt.Replace && F, N = D ? P.name : zh(P.name, E);
|
|
@@ -48714,30 +48716,30 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48714
48716
|
destinationUrl: `${w}/${N}`,
|
|
48715
48717
|
overwrite: D,
|
|
48716
48718
|
nodeType: P.nodeType ?? Je.ITEM,
|
|
48717
|
-
...
|
|
48719
|
+
...R ?? {}
|
|
48718
48720
|
};
|
|
48719
48721
|
});
|
|
48720
48722
|
},
|
|
48721
48723
|
[e]
|
|
48722
48724
|
), p = I(
|
|
48723
48725
|
(w, b, S) => {
|
|
48724
|
-
const
|
|
48725
|
-
return
|
|
48726
|
+
const R = u(w, b);
|
|
48727
|
+
return R.hasConflicts && (a({
|
|
48726
48728
|
files: b,
|
|
48727
48729
|
destinationFolder: w,
|
|
48728
48730
|
metadata: S
|
|
48729
|
-
}), c(
|
|
48731
|
+
}), c(R.conflicts)), R;
|
|
48730
48732
|
},
|
|
48731
48733
|
[u, c]
|
|
48732
48734
|
), f = I(() => {
|
|
48733
48735
|
if (!r) return;
|
|
48734
|
-
const { files: w, destinationFolder: b, metadata: S } = r,
|
|
48736
|
+
const { files: w, destinationFolder: b, metadata: S } = r, R = h(
|
|
48735
48737
|
b,
|
|
48736
48738
|
w,
|
|
48737
48739
|
!0,
|
|
48738
48740
|
S
|
|
48739
48741
|
);
|
|
48740
|
-
t?.(
|
|
48742
|
+
t?.(R, b), d();
|
|
48741
48743
|
}, [
|
|
48742
48744
|
r,
|
|
48743
48745
|
h,
|
|
@@ -48745,13 +48747,13 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48745
48747
|
d
|
|
48746
48748
|
]), m = I(() => {
|
|
48747
48749
|
if (!r) return;
|
|
48748
|
-
const { files: w, destinationFolder: b, metadata: S } = r,
|
|
48750
|
+
const { files: w, destinationFolder: b, metadata: S } = r, R = h(
|
|
48749
48751
|
b,
|
|
48750
48752
|
w,
|
|
48751
48753
|
!1,
|
|
48752
48754
|
S
|
|
48753
48755
|
);
|
|
48754
|
-
t?.(
|
|
48756
|
+
t?.(R, b), d();
|
|
48755
48757
|
}, [
|
|
48756
48758
|
r,
|
|
48757
48759
|
h,
|
|
@@ -48760,13 +48762,13 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48760
48762
|
]), v = I(
|
|
48761
48763
|
(w) => {
|
|
48762
48764
|
if (!r) return;
|
|
48763
|
-
const { files: b, destinationFolder: S, metadata:
|
|
48764
|
-
w.map((
|
|
48765
|
+
const { files: b, destinationFolder: S, metadata: R } = r, x = new Map(
|
|
48766
|
+
w.map((y) => [y.file.path, y.action])
|
|
48765
48767
|
), E = g(
|
|
48766
48768
|
S,
|
|
48767
48769
|
b,
|
|
48768
48770
|
x,
|
|
48769
|
-
|
|
48771
|
+
R
|
|
48770
48772
|
);
|
|
48771
48773
|
t?.(E, S), d();
|
|
48772
48774
|
},
|
|
@@ -48805,10 +48807,10 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48805
48807
|
conflictingFiles: w,
|
|
48806
48808
|
conflictResolutionOpen: b,
|
|
48807
48809
|
hasActiveConflictRef: S,
|
|
48808
|
-
startConflictResolution:
|
|
48810
|
+
startConflictResolution: R,
|
|
48809
48811
|
resolveConflictsWithStrategy: x,
|
|
48810
48812
|
closeConflictResolution: E,
|
|
48811
|
-
openConflictResolution:
|
|
48813
|
+
openConflictResolution: y,
|
|
48812
48814
|
handleReplaceAll: P,
|
|
48813
48815
|
handleDuplicateAll: T,
|
|
48814
48816
|
handleDecideForEach: F
|
|
@@ -48825,7 +48827,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48825
48827
|
u([]), g([]), v(null);
|
|
48826
48828
|
}, []), N = I(
|
|
48827
48829
|
(oe) => {
|
|
48828
|
-
const he =
|
|
48830
|
+
const he = R(oe, d, {
|
|
48829
48831
|
type: Xe.Copy
|
|
48830
48832
|
});
|
|
48831
48833
|
if (v({ type: Xe.Copy }), !he.hasConflicts) {
|
|
@@ -48839,15 +48841,15 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48839
48841
|
},
|
|
48840
48842
|
[
|
|
48841
48843
|
d,
|
|
48842
|
-
|
|
48844
|
+
R,
|
|
48843
48845
|
x,
|
|
48844
48846
|
t,
|
|
48845
48847
|
i,
|
|
48846
48848
|
D
|
|
48847
48849
|
]
|
|
48848
|
-
),
|
|
48850
|
+
), W = I(
|
|
48849
48851
|
(oe, he) => {
|
|
48850
|
-
const A =
|
|
48852
|
+
const A = R(oe, h, {
|
|
48851
48853
|
type: Xe.Move,
|
|
48852
48854
|
sourceFolder: he
|
|
48853
48855
|
});
|
|
@@ -48862,7 +48864,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48862
48864
|
},
|
|
48863
48865
|
[
|
|
48864
48866
|
h,
|
|
48865
|
-
|
|
48867
|
+
R,
|
|
48866
48868
|
x,
|
|
48867
48869
|
s,
|
|
48868
48870
|
o,
|
|
@@ -48910,7 +48912,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48910
48912
|
handleCloseDestinationFolderPopup: $,
|
|
48911
48913
|
handleOpenDestinationFolderPopup: ie,
|
|
48912
48914
|
handleCopyTo: N,
|
|
48913
|
-
handleMoveTo:
|
|
48915
|
+
handleMoveTo: W,
|
|
48914
48916
|
openDestinationFolderPopup: l,
|
|
48915
48917
|
destinationFolderMode: p,
|
|
48916
48918
|
destinationFolderTitle: K,
|
|
@@ -48919,7 +48921,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48919
48921
|
clearState: D,
|
|
48920
48922
|
conflictingFiles: w,
|
|
48921
48923
|
conflictResolutionOpen: b,
|
|
48922
|
-
openConflictResolution:
|
|
48924
|
+
openConflictResolution: y,
|
|
48923
48925
|
closeConflictResolution: E,
|
|
48924
48926
|
handleConflictReplace: G,
|
|
48925
48927
|
handleConflictDuplicate: ee,
|
|
@@ -48998,13 +49000,13 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48998
49000
|
} = {}) => {
|
|
48999
49001
|
const [n, r] = k(!1), [a, l] = k(!1), [c, d] = k(), u = O(null), h = O(""), g = O([]);
|
|
49000
49002
|
ve(() => {
|
|
49001
|
-
let
|
|
49003
|
+
let y = 0;
|
|
49002
49004
|
const P = (N) => {
|
|
49003
|
-
eL(N) && N.dataTransfer.types.includes(bS) && (
|
|
49005
|
+
eL(N) && N.dataTransfer.types.includes(bS) && (y++, l(!0));
|
|
49004
49006
|
}, T = () => {
|
|
49005
|
-
|
|
49007
|
+
y--, y === 0 && l(!1);
|
|
49006
49008
|
}, F = () => {
|
|
49007
|
-
|
|
49009
|
+
y = 0, l(!1);
|
|
49008
49010
|
}, D = (N) => {
|
|
49009
49011
|
N.preventDefault();
|
|
49010
49012
|
};
|
|
@@ -49013,33 +49015,33 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49013
49015
|
};
|
|
49014
49016
|
}, []);
|
|
49015
49017
|
const p = I(
|
|
49016
|
-
(
|
|
49018
|
+
(y, P) => {
|
|
49017
49019
|
const T = new Set(
|
|
49018
49020
|
P.map((F) => F.name.toLowerCase())
|
|
49019
49021
|
);
|
|
49020
|
-
return
|
|
49022
|
+
return y.filter((F) => T.has(F.name.toLowerCase())).map((F) => F.name);
|
|
49021
49023
|
},
|
|
49022
49024
|
[]
|
|
49023
49025
|
), f = I(
|
|
49024
|
-
(
|
|
49026
|
+
(y) => s ? y.filter((P) => P.fileContent.size > s).map((P) => P.name) : [],
|
|
49025
49027
|
[s]
|
|
49026
49028
|
), m = I(
|
|
49027
|
-
async (
|
|
49029
|
+
async (y, P, T) => {
|
|
49028
49030
|
d(void 0);
|
|
49029
|
-
const F = p(
|
|
49031
|
+
const F = p(y, T);
|
|
49030
49032
|
if (F.length > 0) {
|
|
49031
49033
|
const N = i.duplicateFiles || `Files with the same name already exist: ${F.join(", ")}`;
|
|
49032
49034
|
return d(N), !1;
|
|
49033
49035
|
}
|
|
49034
|
-
const D = f(
|
|
49036
|
+
const D = f(y);
|
|
49035
49037
|
if (D.length > 0) {
|
|
49036
|
-
const N = s ? (s / 1048576).toFixed(2) : 0,
|
|
49037
|
-
return d(
|
|
49038
|
+
const N = s ? (s / 1048576).toFixed(2) : 0, W = i.oversizedFiles || `Files exceed maximum size (${N}MB): ${D.join(", ")}`;
|
|
49039
|
+
return d(W), !1;
|
|
49038
49040
|
}
|
|
49039
49041
|
if (t)
|
|
49040
49042
|
try {
|
|
49041
49043
|
const N = await t(
|
|
49042
|
-
|
|
49044
|
+
y,
|
|
49043
49045
|
T,
|
|
49044
49046
|
P
|
|
49045
49047
|
);
|
|
@@ -49052,7 +49054,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49052
49054
|
i.validationError || "Validation error occurred"
|
|
49053
49055
|
), !1;
|
|
49054
49056
|
}
|
|
49055
|
-
return e && e(
|
|
49057
|
+
return e && e(y, P), !0;
|
|
49056
49058
|
},
|
|
49057
49059
|
[
|
|
49058
49060
|
e,
|
|
@@ -49062,19 +49064,19 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49062
49064
|
s,
|
|
49063
49065
|
i
|
|
49064
49066
|
]
|
|
49065
|
-
), v = I((
|
|
49066
|
-
|
|
49067
|
-
}, []), w = I((
|
|
49068
|
-
|
|
49069
|
-
const P =
|
|
49067
|
+
), v = I((y) => {
|
|
49068
|
+
y.preventDefault(), y.stopPropagation(), y.dataTransfer.types.includes("Files") && r(!0);
|
|
49069
|
+
}, []), w = I((y) => {
|
|
49070
|
+
y.preventDefault(), y.stopPropagation();
|
|
49071
|
+
const P = y.currentTarget.getBoundingClientRect(), T = y.clientX, F = y.clientY;
|
|
49070
49072
|
(T <= P.left || T >= P.right || F <= P.top || F >= P.bottom) && r(!1);
|
|
49071
|
-
}, []), b = I((
|
|
49072
|
-
|
|
49073
|
+
}, []), b = I((y) => {
|
|
49074
|
+
y.preventDefault(), y.stopPropagation(), y.dataTransfer.types.includes("Files") && (y.dataTransfer.dropEffect = "copy");
|
|
49073
49075
|
}, []), S = I(
|
|
49074
|
-
async (
|
|
49075
|
-
if (
|
|
49076
|
+
async (y, P, T) => {
|
|
49077
|
+
if (y.preventDefault(), y.stopPropagation(), r(!1), !y.dataTransfer.types.includes("Files"))
|
|
49076
49078
|
return;
|
|
49077
|
-
const F = Array.from(
|
|
49079
|
+
const F = Array.from(y.dataTransfer.files);
|
|
49078
49080
|
if (F.length > 0) {
|
|
49079
49081
|
const D = F.map((N) => ({
|
|
49080
49082
|
fileContent: N,
|
|
@@ -49086,11 +49088,11 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49086
49088
|
[m]
|
|
49087
49089
|
);
|
|
49088
49090
|
ve(() => {
|
|
49089
|
-
let
|
|
49090
|
-
|
|
49091
|
+
let y = u.current;
|
|
49092
|
+
y || (y = document.createElement("input"), y.type = "file", y.multiple = !0, y.style.display = "none", document.body.appendChild(y), u.current = y);
|
|
49091
49093
|
const P = async () => {
|
|
49092
|
-
if (!
|
|
49093
|
-
const F = Array.from(
|
|
49094
|
+
if (!y?.files?.length) return;
|
|
49095
|
+
const F = Array.from(y.files).map((D) => ({
|
|
49094
49096
|
fileContent: D,
|
|
49095
49097
|
name: D.name
|
|
49096
49098
|
}));
|
|
@@ -49098,19 +49100,19 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49098
49100
|
F,
|
|
49099
49101
|
h.current,
|
|
49100
49102
|
g.current
|
|
49101
|
-
),
|
|
49103
|
+
), y.value = "";
|
|
49102
49104
|
};
|
|
49103
|
-
return
|
|
49104
|
-
|
|
49105
|
+
return y.addEventListener("change", P), () => {
|
|
49106
|
+
y && (y.removeEventListener("change", P), u.current === y && (document.body.removeChild(y), u.current = null));
|
|
49105
49107
|
};
|
|
49106
49108
|
}, [m]);
|
|
49107
|
-
const
|
|
49108
|
-
(
|
|
49109
|
-
h.current =
|
|
49109
|
+
const R = I(
|
|
49110
|
+
(y, P) => {
|
|
49111
|
+
h.current = y, g.current = P, u.current && u.current.click();
|
|
49110
49112
|
},
|
|
49111
49113
|
[]
|
|
49112
49114
|
), x = I(
|
|
49113
|
-
(
|
|
49115
|
+
(y, P) => {
|
|
49114
49116
|
if (!o) return;
|
|
49115
49117
|
const T = document.createElement("input");
|
|
49116
49118
|
T.type = "file", T.accept = ".zip,application/zip", T.multiple = !1, T.style.display = "none";
|
|
@@ -49130,7 +49132,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49130
49132
|
return;
|
|
49131
49133
|
}
|
|
49132
49134
|
try {
|
|
49133
|
-
o(D, N,
|
|
49135
|
+
o(D, N, y);
|
|
49134
49136
|
} finally {
|
|
49135
49137
|
document.body.removeChild(T);
|
|
49136
49138
|
}
|
|
@@ -49151,7 +49153,7 @@ const j8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49151
49153
|
handleDrop: S,
|
|
49152
49154
|
clearError: E,
|
|
49153
49155
|
handleUpload: m,
|
|
49154
|
-
openFileDialog:
|
|
49156
|
+
openFileDialog: R,
|
|
49155
49157
|
openArchiveDialog: x,
|
|
49156
49158
|
fileInputRef: u
|
|
49157
49159
|
};
|
|
@@ -49169,13 +49171,13 @@ const oL = ({
|
|
|
49169
49171
|
validationMessages: s,
|
|
49170
49172
|
onMoveToFiles: i
|
|
49171
49173
|
}) => {
|
|
49172
|
-
const [o, n] = k(), r =
|
|
49174
|
+
const [o, n] = k(), r = B(
|
|
49173
49175
|
() => ({
|
|
49174
49176
|
...sL,
|
|
49175
49177
|
...s
|
|
49176
49178
|
}),
|
|
49177
49179
|
[s]
|
|
49178
|
-
), a =
|
|
49180
|
+
), a = B(() => o?.path, [o]), l = I(
|
|
49179
49181
|
(h) => {
|
|
49180
49182
|
const g = ri(e, h);
|
|
49181
49183
|
g && n(g);
|
|
@@ -49236,7 +49238,7 @@ const oL = ({
|
|
|
49236
49238
|
onCreateFolder: s,
|
|
49237
49239
|
onUploadArchive: i
|
|
49238
49240
|
}) => {
|
|
49239
|
-
const o =
|
|
49241
|
+
const o = B(() => {
|
|
49240
49242
|
const r = [];
|
|
49241
49243
|
return e && (e.newFolder && r.push({
|
|
49242
49244
|
key: "new-folder",
|
|
@@ -49260,7 +49262,7 @@ const oL = ({
|
|
|
49260
49262
|
i && i();
|
|
49261
49263
|
}
|
|
49262
49264
|
})), r;
|
|
49263
|
-
}, [e, t, s, i]), n =
|
|
49265
|
+
}, [e, t, s, i]), n = B(() => o.length > 0, [o]);
|
|
49264
49266
|
return { newActions: o, isNewButtonVisible: n };
|
|
49265
49267
|
}, rL = {
|
|
49266
49268
|
emptyName: "Folder name cannot be empty",
|
|
@@ -49271,7 +49273,7 @@ const oL = ({
|
|
|
49271
49273
|
onValidateFolderName: s,
|
|
49272
49274
|
validationMessages: i
|
|
49273
49275
|
}) => {
|
|
49274
|
-
const [o, n] = k(!1), [r, a] = k(null), l = O(e?.path), c =
|
|
49276
|
+
const [o, n] = k(!1), [r, a] = k(null), l = O(e?.path), c = B(
|
|
49275
49277
|
() => ({
|
|
49276
49278
|
...rL,
|
|
49277
49279
|
...i
|
|
@@ -49353,20 +49355,20 @@ const oL = ({
|
|
|
49353
49355
|
onCopyFiles: w,
|
|
49354
49356
|
onMoveToFiles: b,
|
|
49355
49357
|
onDeleteFiles: S,
|
|
49356
|
-
onDownloadFiles:
|
|
49358
|
+
onDownloadFiles: R,
|
|
49357
49359
|
onRenameValidate: x,
|
|
49358
49360
|
renameValidationMessages: E,
|
|
49359
|
-
onUploadFiles:
|
|
49361
|
+
onUploadFiles: y,
|
|
49360
49362
|
onValidateUpload: P,
|
|
49361
49363
|
maxFileSize: T,
|
|
49362
49364
|
onUploadArchive: F,
|
|
49363
49365
|
onCreateFolder: D,
|
|
49364
49366
|
onCreateFolderValidate: N,
|
|
49365
|
-
folderCreationValidationMessages:
|
|
49367
|
+
folderCreationValidationMessages: W
|
|
49366
49368
|
}) => {
|
|
49367
49369
|
const [G, ee] = k(
|
|
49368
49370
|
/* @__PURE__ */ new Map()
|
|
49369
|
-
), se =
|
|
49371
|
+
), se = B(
|
|
49370
49372
|
() => new Set(G.keys()),
|
|
49371
49373
|
[G]
|
|
49372
49374
|
), H = I(() => ee(/* @__PURE__ */ new Map()), []), { currentPath: ie, setCurrentPath: $, handlePathChange: K } = Q8({
|
|
@@ -49387,8 +49389,8 @@ const oL = ({
|
|
|
49387
49389
|
}), {
|
|
49388
49390
|
renamedPath: Ee,
|
|
49389
49391
|
renamedItem: Re,
|
|
49390
|
-
renameHandler:
|
|
49391
|
-
renameSaveHandler:
|
|
49392
|
+
renameHandler: Le,
|
|
49393
|
+
renameSaveHandler: Ie,
|
|
49392
49394
|
renameCancelHandler: pt,
|
|
49393
49395
|
renameValidateHandler: Ce
|
|
49394
49396
|
} = oL({
|
|
@@ -49396,14 +49398,14 @@ const oL = ({
|
|
|
49396
49398
|
onRenameValidate: x,
|
|
49397
49399
|
validationMessages: E,
|
|
49398
49400
|
onMoveToFiles: b
|
|
49399
|
-
}), [Fe,
|
|
49401
|
+
}), [Fe, ke] = k("");
|
|
49400
49402
|
ve(() => {
|
|
49401
49403
|
const Te = c?.value;
|
|
49402
|
-
Te != null &&
|
|
49404
|
+
Te != null && ke(String(Te));
|
|
49403
49405
|
}, [c?.value]);
|
|
49404
|
-
const
|
|
49406
|
+
const _ = String(
|
|
49405
49407
|
c?.value ?? Fe ?? ""
|
|
49406
|
-
).trim(), X =
|
|
49408
|
+
).trim(), X = B(
|
|
49407
49409
|
() => gu(s, ie) ?? s[0],
|
|
49408
49410
|
[s, ie]
|
|
49409
49411
|
), {
|
|
@@ -49454,7 +49456,7 @@ const oL = ({
|
|
|
49454
49456
|
onDeleteFiles: S,
|
|
49455
49457
|
onDeleteSuccess: H
|
|
49456
49458
|
}), { handleDownloadFiles: da } = J8({
|
|
49457
|
-
onDownloadFiles:
|
|
49459
|
+
onDownloadFiles: R,
|
|
49458
49460
|
onDownloadSuccess: H
|
|
49459
49461
|
}), {
|
|
49460
49462
|
isDragging: ua,
|
|
@@ -49469,7 +49471,7 @@ const oL = ({
|
|
|
49469
49471
|
fileInputRef: pa,
|
|
49470
49472
|
openArchiveDialog: wn
|
|
49471
49473
|
} = tL({
|
|
49472
|
-
onUploadFiles:
|
|
49474
|
+
onUploadFiles: y,
|
|
49473
49475
|
onValidateUpload: P,
|
|
49474
49476
|
maxFileSize: T,
|
|
49475
49477
|
onUploadArchive: F
|
|
@@ -49496,14 +49498,14 @@ const oL = ({
|
|
|
49496
49498
|
currentFolder: X,
|
|
49497
49499
|
onCreateFolder: D,
|
|
49498
49500
|
onValidateFolderName: N,
|
|
49499
|
-
validationMessages:
|
|
49501
|
+
validationMessages: W
|
|
49500
49502
|
}), { newActions: Ne, isNewButtonVisible: Si } = nL({
|
|
49501
49503
|
newActionLabels: h?.newActionLabels,
|
|
49502
49504
|
onUploadFiles: Sn,
|
|
49503
49505
|
onUploadArchive: fa,
|
|
49504
49506
|
onCreateFolder: Co
|
|
49505
|
-
}), as =
|
|
49506
|
-
const Te = jn(
|
|
49507
|
+
}), as = B(() => {
|
|
49508
|
+
const Te = jn(_).trim(), Vt = X?.items ?? [];
|
|
49507
49509
|
let vo = Te ? PS(X) : Vt;
|
|
49508
49510
|
he || (vo = vo.filter((tt) => !Kg(tt)));
|
|
49509
49511
|
const ma = vo.map((tt) => ({
|
|
@@ -49538,7 +49540,7 @@ const oL = ({
|
|
|
49538
49540
|
});
|
|
49539
49541
|
}, [
|
|
49540
49542
|
X,
|
|
49541
|
-
|
|
49543
|
+
_,
|
|
49542
49544
|
he,
|
|
49543
49545
|
bi,
|
|
49544
49546
|
xs
|
|
@@ -49555,7 +49557,7 @@ const oL = ({
|
|
|
49555
49557
|
), mC = I(
|
|
49556
49558
|
(Te) => {
|
|
49557
49559
|
const Vt = String(Te ?? "");
|
|
49558
|
-
|
|
49560
|
+
ke(Vt), c?.onSearchChange?.(Vt);
|
|
49559
49561
|
},
|
|
49560
49562
|
[c]
|
|
49561
49563
|
), CC = I(
|
|
@@ -49601,8 +49603,8 @@ const oL = ({
|
|
|
49601
49603
|
currentPath: ie,
|
|
49602
49604
|
setCurrentPath: $,
|
|
49603
49605
|
searchValue: Fe,
|
|
49604
|
-
effectiveSearchValue:
|
|
49605
|
-
setSearchValue:
|
|
49606
|
+
effectiveSearchValue: _,
|
|
49607
|
+
setSearchValue: ke,
|
|
49606
49608
|
areHiddenFilesVisible: he,
|
|
49607
49609
|
toggleHiddenFilesVisibility: A,
|
|
49608
49610
|
isTreeCollapsed: le,
|
|
@@ -49626,8 +49628,8 @@ const oL = ({
|
|
|
49626
49628
|
handleDownloadFiles: da,
|
|
49627
49629
|
renamedPath: Ee,
|
|
49628
49630
|
renamedItem: Re,
|
|
49629
|
-
onRename:
|
|
49630
|
-
onRenameSave:
|
|
49631
|
+
onRename: Le,
|
|
49632
|
+
onRenameSave: Ie,
|
|
49631
49633
|
onRenameCancel: pt,
|
|
49632
49634
|
onRenameValidate: Ce,
|
|
49633
49635
|
openDeleteConfirmation: wi,
|
|
@@ -49648,7 +49650,7 @@ const oL = ({
|
|
|
49648
49650
|
handleDragOver: ha,
|
|
49649
49651
|
handleDrop: bn,
|
|
49650
49652
|
clearUploadError: ga,
|
|
49651
|
-
onUploadFiles:
|
|
49653
|
+
onUploadFiles: y,
|
|
49652
49654
|
onValidateUpload: P,
|
|
49653
49655
|
maxFileSize: T,
|
|
49654
49656
|
isDraggingOverWindow: Cn,
|
|
@@ -49761,7 +49763,7 @@ const oL = ({
|
|
|
49761
49763
|
De,
|
|
49762
49764
|
{
|
|
49763
49765
|
label: n,
|
|
49764
|
-
variant:
|
|
49766
|
+
variant: Ae.Tertiary,
|
|
49765
49767
|
iconBefore: /* @__PURE__ */ C(Fv, { ...de })
|
|
49766
49768
|
}
|
|
49767
49769
|
),
|
|
@@ -49791,7 +49793,7 @@ const oL = ({
|
|
|
49791
49793
|
{
|
|
49792
49794
|
onClick: e,
|
|
49793
49795
|
label: "Cancel",
|
|
49794
|
-
variant:
|
|
49796
|
+
variant: Ae.Secondary
|
|
49795
49797
|
}
|
|
49796
49798
|
),
|
|
49797
49799
|
/* @__PURE__ */ C(
|
|
@@ -49799,7 +49801,7 @@ const oL = ({
|
|
|
49799
49801
|
{
|
|
49800
49802
|
onClick: t,
|
|
49801
49803
|
label: r === "copy" ? i : o,
|
|
49802
|
-
variant:
|
|
49804
|
+
variant: Ae.Primary
|
|
49803
49805
|
}
|
|
49804
49806
|
)
|
|
49805
49807
|
] })
|
|
@@ -49832,7 +49834,7 @@ const oL = ({
|
|
|
49832
49834
|
onDownload: n,
|
|
49833
49835
|
onDelete: r,
|
|
49834
49836
|
getCurrentFolderPath: a
|
|
49835
|
-
}) =>
|
|
49837
|
+
}) => B(() => {
|
|
49836
49838
|
const l = [], c = Array.from(e.values());
|
|
49837
49839
|
return !c.length || !t || (t[ge.Move] && l.push({
|
|
49838
49840
|
key: ge.Move,
|
|
@@ -49899,7 +49901,7 @@ const oL = ({
|
|
|
49899
49901
|
onDownload: o,
|
|
49900
49902
|
onRename: n,
|
|
49901
49903
|
onDelete: r
|
|
49902
|
-
}) =>
|
|
49904
|
+
}) => B(() => (a) => {
|
|
49903
49905
|
const l = [];
|
|
49904
49906
|
return e && (e[ge.Duplicate] && l.push({
|
|
49905
49907
|
key: ge.Duplicate,
|
|
@@ -49971,7 +49973,7 @@ const oL = ({
|
|
|
49971
49973
|
nameColumnLabel: g = "Name",
|
|
49972
49974
|
actionColumnLabel: p = "Action"
|
|
49973
49975
|
}) => {
|
|
49974
|
-
const f = n.length === 1, m = f ? n[0]?.name : "", v = c?.[dt.Replace] ?? "Replace", w = c?.[dt.Duplicate] ?? "Duplicate", b = c?.[dt.Cancel] ?? "Cancel", S = d?.[Tt.ReplaceAll] ?? "Replace all",
|
|
49976
|
+
const f = n.length === 1, m = f ? n[0]?.name : "", v = c?.[dt.Replace] ?? "Replace", w = c?.[dt.Duplicate] ?? "Duplicate", b = c?.[dt.Cancel] ?? "Cancel", S = d?.[Tt.ReplaceAll] ?? "Replace all", R = d?.[Tt.DuplicateAll] ?? "Duplicate all", x = d?.[Tt.DecideForEach] ?? "Decide for each", [E, y] = k(
|
|
49975
49977
|
dt.Replace
|
|
49976
49978
|
), [P, T] = k(
|
|
49977
49979
|
Tt.ReplaceAll
|
|
@@ -49982,7 +49984,7 @@ const oL = ({
|
|
|
49982
49984
|
dt.Replace
|
|
49983
49985
|
])
|
|
49984
49986
|
)
|
|
49985
|
-
), [N,
|
|
49987
|
+
), [N, W] = k(
|
|
49986
49988
|
void 0
|
|
49987
49989
|
), G = f ? r : a, ee = /* @__PURE__ */ z(Ke, { children: [
|
|
49988
49990
|
"Item with the name ",
|
|
@@ -49993,7 +49995,7 @@ const oL = ({
|
|
|
49993
49995
|
] }),
|
|
49994
49996
|
" ",
|
|
49995
49997
|
"already exists in this destination."
|
|
49996
|
-
] }), se = `${n.length} items with the same names already exist in this destination.`, H = l ?? (f ? ee : se), ie =
|
|
49998
|
+
] }), se = `${n.length} items with the same names already exist in this destination.`, H = l ?? (f ? ee : se), ie = B(
|
|
49997
49999
|
() => [
|
|
49998
50000
|
{
|
|
49999
50001
|
id: dt.Replace,
|
|
@@ -50005,13 +50007,13 @@ const oL = ({
|
|
|
50005
50007
|
}
|
|
50006
50008
|
],
|
|
50007
50009
|
[v, w]
|
|
50008
|
-
), $ =
|
|
50010
|
+
), $ = B(() => n.map((Z) => ({
|
|
50009
50011
|
id: Z.path,
|
|
50010
50012
|
name: Z.name,
|
|
50011
50013
|
path: Z.path,
|
|
50012
50014
|
nodeType: Z.nodeType ?? Je.ITEM,
|
|
50013
50015
|
action: F.get(Z.path) || dt.Replace
|
|
50014
|
-
})), [n, F]), K =
|
|
50016
|
+
})), [n, F]), K = B(() => [
|
|
50015
50017
|
{
|
|
50016
50018
|
field: "name",
|
|
50017
50019
|
headerName: g,
|
|
@@ -50078,14 +50080,14 @@ const oL = ({
|
|
|
50078
50080
|
Z.data.path,
|
|
50079
50081
|
le
|
|
50080
50082
|
), ue;
|
|
50081
|
-
}),
|
|
50083
|
+
}), W(void 0);
|
|
50082
50084
|
}
|
|
50083
50085
|
},
|
|
50084
50086
|
placement: "bottom-start",
|
|
50085
50087
|
matchReferenceWidth: !1,
|
|
50086
50088
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
50087
50089
|
onOpenChange: (le) => {
|
|
50088
|
-
|
|
50090
|
+
W(le ? Z.data.path : void 0);
|
|
50089
50091
|
},
|
|
50090
50092
|
children: /* @__PURE__ */ z("button", { type: "button", className: "flex items-center gap-2", children: [
|
|
50091
50093
|
/* @__PURE__ */ z("span", { className: "flex items-center gap-2", children: [
|
|
@@ -50114,7 +50116,7 @@ const oL = ({
|
|
|
50114
50116
|
w,
|
|
50115
50117
|
b,
|
|
50116
50118
|
N
|
|
50117
|
-
]), Y =
|
|
50119
|
+
]), Y = B(
|
|
50118
50120
|
() => [
|
|
50119
50121
|
{
|
|
50120
50122
|
id: Tt.ReplaceAll,
|
|
@@ -50122,7 +50124,7 @@ const oL = ({
|
|
|
50122
50124
|
},
|
|
50123
50125
|
{
|
|
50124
50126
|
id: Tt.DuplicateAll,
|
|
50125
|
-
name:
|
|
50127
|
+
name: R
|
|
50126
50128
|
},
|
|
50127
50129
|
{
|
|
50128
50130
|
id: Tt.DecideForEach,
|
|
@@ -50145,7 +50147,7 @@ const oL = ({
|
|
|
50145
50147
|
],
|
|
50146
50148
|
[
|
|
50147
50149
|
S,
|
|
50148
|
-
|
|
50150
|
+
R,
|
|
50149
50151
|
x,
|
|
50150
50152
|
P,
|
|
50151
50153
|
K,
|
|
@@ -50191,7 +50193,7 @@ const oL = ({
|
|
|
50191
50193
|
{
|
|
50192
50194
|
onClick: t,
|
|
50193
50195
|
label: h,
|
|
50194
|
-
variant:
|
|
50196
|
+
variant: Ae.Secondary
|
|
50195
50197
|
}
|
|
50196
50198
|
),
|
|
50197
50199
|
/* @__PURE__ */ C(
|
|
@@ -50199,7 +50201,7 @@ const oL = ({
|
|
|
50199
50201
|
{
|
|
50200
50202
|
onClick: J,
|
|
50201
50203
|
label: u,
|
|
50202
|
-
variant:
|
|
50204
|
+
variant: Ae.Primary
|
|
50203
50205
|
}
|
|
50204
50206
|
)
|
|
50205
50207
|
] }),
|
|
@@ -50212,7 +50214,7 @@ const oL = ({
|
|
|
50212
50214
|
radioButtons: ie,
|
|
50213
50215
|
activeRadioButton: E,
|
|
50214
50216
|
orientation: qi.Column,
|
|
50215
|
-
onChange: (Z) =>
|
|
50217
|
+
onChange: (Z) => y(Z)
|
|
50216
50218
|
}
|
|
50217
50219
|
) : /* @__PURE__ */ C(
|
|
50218
50220
|
vl,
|
|
@@ -50287,7 +50289,7 @@ const vL = ({
|
|
|
50287
50289
|
},
|
|
50288
50290
|
[e]
|
|
50289
50291
|
);
|
|
50290
|
-
return { actionsColumnDef:
|
|
50292
|
+
return { actionsColumnDef: B(
|
|
50291
50293
|
() => ({
|
|
50292
50294
|
colId: "__actions",
|
|
50293
50295
|
headerName: "",
|
|
@@ -50327,16 +50329,16 @@ const vL = ({
|
|
|
50327
50329
|
gridRows: w,
|
|
50328
50330
|
selectedIds: b,
|
|
50329
50331
|
selectedFiles: S,
|
|
50330
|
-
setSelectedFiles:
|
|
50332
|
+
setSelectedFiles: R,
|
|
50331
50333
|
clearSelection: x,
|
|
50332
50334
|
effectiveSearchValue: E,
|
|
50333
|
-
handleBreadcrumbItemClick:
|
|
50335
|
+
handleBreadcrumbItemClick: y,
|
|
50334
50336
|
handleSearchChange: P,
|
|
50335
50337
|
handleTreeItemClick: T,
|
|
50336
50338
|
handleTableRowClick: F,
|
|
50337
50339
|
handleOpenDestinationFolderPopup: D,
|
|
50338
50340
|
handleCloseDestinationFolderPopup: N,
|
|
50339
|
-
openDestinationFolderPopup:
|
|
50341
|
+
openDestinationFolderPopup: W,
|
|
50340
50342
|
destinationFolderMode: G,
|
|
50341
50343
|
handleSetCopiedFiles: ee,
|
|
50342
50344
|
handleSetMovedFiles: se,
|
|
@@ -50355,13 +50357,13 @@ const vL = ({
|
|
|
50355
50357
|
onRenameSave: ue,
|
|
50356
50358
|
onRenameCancel: Ee,
|
|
50357
50359
|
onRenameValidate: Re,
|
|
50358
|
-
isDragging:
|
|
50359
|
-
isDraggingOverWindow:
|
|
50360
|
+
isDragging: Le,
|
|
50361
|
+
isDraggingOverWindow: Ie,
|
|
50360
50362
|
handleDragEnter: pt,
|
|
50361
50363
|
handleDragLeave: Ce,
|
|
50362
50364
|
handleDragOver: Fe,
|
|
50363
|
-
handleDrop:
|
|
50364
|
-
onUploadFiles:
|
|
50365
|
+
handleDrop: ke,
|
|
50366
|
+
onUploadFiles: _,
|
|
50365
50367
|
onValidateUpload: X,
|
|
50366
50368
|
maxFileSize: Se,
|
|
50367
50369
|
newActions: Ue,
|
|
@@ -50394,7 +50396,7 @@ const vL = ({
|
|
|
50394
50396
|
...vn
|
|
50395
50397
|
} = r ?? {}, { containerRef: ha, isBelowBreakpoint: nt } = CL(
|
|
50396
50398
|
h
|
|
50397
|
-
), ga =
|
|
50399
|
+
), ga = B(() => [
|
|
50398
50400
|
{
|
|
50399
50401
|
field: "name",
|
|
50400
50402
|
headerName: "Name",
|
|
@@ -50556,7 +50558,7 @@ const vL = ({
|
|
|
50556
50558
|
Y,
|
|
50557
50559
|
o
|
|
50558
50560
|
]
|
|
50559
|
-
), pa =
|
|
50561
|
+
), pa = B(() => {
|
|
50560
50562
|
const te = /* @__PURE__ */ new Map();
|
|
50561
50563
|
return S.forEach((Ne, Si) => {
|
|
50562
50564
|
const as = w.find((yi) => yi.path === Si);
|
|
@@ -50568,9 +50570,9 @@ const vL = ({
|
|
|
50568
50570
|
te.forEach((Si, as) => {
|
|
50569
50571
|
const yi = ri(t, as);
|
|
50570
50572
|
yi && Ne.set(as, yi);
|
|
50571
|
-
}),
|
|
50573
|
+
}), R(Ne);
|
|
50572
50574
|
},
|
|
50573
|
-
[t,
|
|
50575
|
+
[t, R]
|
|
50574
50576
|
), bn = gL({
|
|
50575
50577
|
selectedFiles: S,
|
|
50576
50578
|
actionLabels: l?.actionLabels,
|
|
@@ -50710,7 +50712,7 @@ const vL = ({
|
|
|
50710
50712
|
[t, bi]
|
|
50711
50713
|
), { actionsColumnDef: Co } = vL({
|
|
50712
50714
|
getContextMenuItems: xs
|
|
50713
|
-
}), yn = ua ?? ga, Rn =
|
|
50715
|
+
}), yn = ua ?? ga, Rn = B(() => {
|
|
50714
50716
|
let te = yn;
|
|
50715
50717
|
return nt && (te = te.slice(0, 1), te.push(Co)), Cn ? te : te.map((Ne) => ({
|
|
50716
50718
|
...Ne,
|
|
@@ -50748,7 +50750,7 @@ const vL = ({
|
|
|
50748
50750
|
...n ?? {},
|
|
50749
50751
|
makeHref: (te) => te.join("/"),
|
|
50750
50752
|
path: v,
|
|
50751
|
-
onItemClick:
|
|
50753
|
+
onItemClick: y,
|
|
50752
50754
|
rootItemPath: s?.path,
|
|
50753
50755
|
rootItemLabel: s?.breadcrumbLabel,
|
|
50754
50756
|
value: E,
|
|
@@ -50765,7 +50767,7 @@ const vL = ({
|
|
|
50765
50767
|
onDragEnter: pt,
|
|
50766
50768
|
onDragLeave: Ce,
|
|
50767
50769
|
onDragOver: Fe,
|
|
50768
|
-
onDrop:
|
|
50770
|
+
onDrop: ke,
|
|
50769
50771
|
children: /* @__PURE__ */ C(
|
|
50770
50772
|
hC,
|
|
50771
50773
|
{
|
|
@@ -50777,8 +50779,8 @@ const vL = ({
|
|
|
50777
50779
|
withoutHeaderBorders: nt,
|
|
50778
50780
|
selectionOnHover: !nt,
|
|
50779
50781
|
className: Q(
|
|
50780
|
-
|
|
50781
|
-
|
|
50782
|
+
Le ? "border border-dashed border-accent-primary" : "",
|
|
50783
|
+
Ie && !Le ? "border border-dashed border-primary" : ""
|
|
50782
50784
|
),
|
|
50783
50785
|
...vn,
|
|
50784
50786
|
additionalGridOptions: {
|
|
@@ -50794,7 +50796,7 @@ const vL = ({
|
|
|
50794
50796
|
},
|
|
50795
50797
|
selectedRows: pa,
|
|
50796
50798
|
onSelectionChangeWithMap: wn,
|
|
50797
|
-
wrapperBorder: !
|
|
50799
|
+
wrapperBorder: !Le && !Ie
|
|
50798
50800
|
}
|
|
50799
50801
|
)
|
|
50800
50802
|
}
|
|
@@ -50820,7 +50822,7 @@ const vL = ({
|
|
|
50820
50822
|
hL,
|
|
50821
50823
|
{
|
|
50822
50824
|
...d,
|
|
50823
|
-
open:
|
|
50825
|
+
open: W,
|
|
50824
50826
|
onClose: N,
|
|
50825
50827
|
onConfirm: () => {
|
|
50826
50828
|
const te = d?.destinationFolderPath ?? "/";
|
|
@@ -50830,7 +50832,7 @@ const vL = ({
|
|
|
50830
50832
|
items: t,
|
|
50831
50833
|
rootItem: s,
|
|
50832
50834
|
gridOptions: { columnDefs: Rn, loading: i },
|
|
50833
|
-
onUploadFiles:
|
|
50835
|
+
onUploadFiles: _,
|
|
50834
50836
|
onValidateUpload: X,
|
|
50835
50837
|
maxFileSize: Se
|
|
50836
50838
|
}
|
|
@@ -50855,7 +50857,7 @@ const vL = ({
|
|
|
50855
50857
|
cc.MyFiles
|
|
50856
50858
|
), i = (n) => {
|
|
50857
50859
|
s(n);
|
|
50858
|
-
}, o =
|
|
50860
|
+
}, o = B(() => {
|
|
50859
50861
|
if (e)
|
|
50860
50862
|
return Object.values(cc).map((n) => ({
|
|
50861
50863
|
id: n,
|
|
@@ -50870,7 +50872,7 @@ const vL = ({
|
|
|
50870
50872
|
};
|
|
50871
50873
|
export {
|
|
50872
50874
|
ki as AlertVariant,
|
|
50873
|
-
|
|
50875
|
+
Ae as ButtonVariant,
|
|
50874
50876
|
Vo as ConfirmationPopupVariant,
|
|
50875
50877
|
DL as DialAlert,
|
|
50876
50878
|
HL as DialAutocompleteInput,
|