@epam/ai-dial-ui-kit 0.4.0-rc.14 → 0.4.0-rc.15
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 +10 -10
- package/dist/dial-ui-kit.es.js +755 -753
- package/dist/src/components/Input/Input.d.ts +2 -0
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as w, jsxs as $, Fragment as It } from "react/jsx-runtime";
|
|
|
2
2
|
import K from "classnames";
|
|
3
3
|
import { useFloating as Na, offset as tu, flip as su, shift as ou, arrow as Rf, autoUpdate as iu, useHover as nu, useFocus as xf, useDismiss as Ga, useRole as Va, useInteractions as Ba, useMergeRefs as ru, FloatingPortal as za, FloatingArrow as Ff, autoPlacement as Ef, size as Df, useClick as Pf, FloatingFocusManager as au, FloatingOverlay as Tf } from "@floating-ui/react";
|
|
4
4
|
import * as ae from "react";
|
|
5
|
-
import G, { createContext as Wa, useState as A, useRef as O, useMemo as
|
|
5
|
+
import G, { createContext as Wa, useState as A, useRef as O, useMemo as z, useContext as Ge, forwardRef as Ci, isValidElement as _a, cloneElement as rn, useCallback as U, useEffect as ve, memo as tt, useLayoutEffect as Lt, useId as Ua, createElement as lu, Children as Mf, Component as If, useImperativeHandle as $a, Suspense as kf } from "react";
|
|
6
6
|
import { IconInfoCircle as cu, IconCircleCheck as Af, IconAlertTriangle as Lf, IconAlertCircle as Of, IconX as vi, IconMinus as Hf, IconCheck as du, IconExclamationCircle as ja, IconClipboardX as uu, IconChevronsLeft as Nf, IconChevronsRight as Gf, IconGripVertical as Vf, IconFile as Bf, IconFileTypeZip as zf, IconFileTypeXml as Wf, IconFileTypeXls as _f, IconFileTypeVue as Uf, IconFileTypeTxt as $f, IconFileTypeTsx as jf, IconFileTypeTs as Kf, IconFileTypeSvg as qf, IconFileTypeSql as Yf, IconFileTypeRs as Zf, IconFileTypePpt as Qf, IconFileTypePng as Xf, IconFileTypePhp as Jf, IconFileTypePdf as em, IconFileTypeJsx as tm, IconFileTypeJs as sm, IconFileTypeJpg as om, IconFileTypeHtml as im, IconFileTypeDocx as nm, IconFileTypeDoc as rm, IconFileTypeCsv as am, IconFileTypeCss as lm, IconFileTypeBmp as cm, IconArrowUpRight as dm, IconFolder as um, IconChevronDown as Ka, IconDotsVertical as hu, IconChevronRight as hm, IconTrashX as gu, IconSearch as gm, IconCaretRightFilled as pm, IconChevronUp as fm, IconRefresh as mm, IconEyeOff as Cm, IconEye as vm, IconPlus as wm } from "@tabler/icons-react";
|
|
7
7
|
import bm, { createPortal as qa } from "react-dom";
|
|
8
8
|
const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "text-error dial-tiny mt-1", children: e }), Fe = ({ icon: e, className: t }) => e ? /* @__PURE__ */ w("span", { className: K("flex-shrink-0", t), children: e }) : null, Sm = 7, ym = 2, pu = Wa(null), fu = () => {
|
|
@@ -42,7 +42,7 @@ const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "te
|
|
|
42
42
|
}), h = xf(d.context, {
|
|
43
43
|
enabled: o == null
|
|
44
44
|
}), g = Ga(d.context), p = Va(d.context, { role: "tooltip" }), f = Ba([u, h, g, p]);
|
|
45
|
-
return
|
|
45
|
+
return z(
|
|
46
46
|
() => ({
|
|
47
47
|
open: l,
|
|
48
48
|
setOpen: c,
|
|
@@ -327,8 +327,8 @@ const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "te
|
|
|
327
327
|
r.push(S);
|
|
328
328
|
const y = i(C, m);
|
|
329
329
|
for (let R = 0; R < y.length; ++R) {
|
|
330
|
-
const
|
|
331
|
-
r.push(b +
|
|
330
|
+
const F = y[R];
|
|
331
|
+
r.push(b + F);
|
|
332
332
|
}
|
|
333
333
|
l = d + (l.length > 0 ? " " + l : l);
|
|
334
334
|
}
|
|
@@ -398,9 +398,9 @@ const Ae = (e) => {
|
|
|
398
398
|
"bottom-left",
|
|
399
399
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
400
400
|
"left-bottom"
|
|
401
|
-
], y = () => [...S(), Z, Y], R = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
401
|
+
], y = () => [...S(), Z, Y], R = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], T = () => [Z, Y, l], H = () => [Xs, "full", "auto", ...T()], M = () => [is, "none", "subgrid", Z, Y], E = () => ["auto", {
|
|
402
402
|
span: ["full", is, Z, Y]
|
|
403
|
-
}, is, Z, Y], D = () => [is, "auto", Z, Y],
|
|
403
|
+
}, is, Z, Y], D = () => [is, "auto", Z, Y], B = () => ["auto", "min", "max", "fr", Z, Y], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ne = () => ["auto", ...T()], j = () => [Xs, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], k = () => [e, Z, Y], te = () => [...S(), nc, ic, {
|
|
404
404
|
position: [Z, Y]
|
|
405
405
|
}], V = () => ["no-repeat", {
|
|
406
406
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -573,21 +573,21 @@ const Ae = (e) => {
|
|
|
573
573
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
574
574
|
*/
|
|
575
575
|
overscroll: [{
|
|
576
|
-
overscroll:
|
|
576
|
+
overscroll: F()
|
|
577
577
|
}],
|
|
578
578
|
/**
|
|
579
579
|
* Overscroll Behavior X
|
|
580
580
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
581
581
|
*/
|
|
582
582
|
"overscroll-x": [{
|
|
583
|
-
"overscroll-x":
|
|
583
|
+
"overscroll-x": F()
|
|
584
584
|
}],
|
|
585
585
|
/**
|
|
586
586
|
* Overscroll Behavior Y
|
|
587
587
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
588
588
|
*/
|
|
589
589
|
"overscroll-y": [{
|
|
590
|
-
"overscroll-y":
|
|
590
|
+
"overscroll-y": F()
|
|
591
591
|
}],
|
|
592
592
|
/**
|
|
593
593
|
* Position
|
|
@@ -733,7 +733,7 @@ const Ae = (e) => {
|
|
|
733
733
|
* @see https://tailwindcss.com/docs/grid-column
|
|
734
734
|
*/
|
|
735
735
|
"col-start-end": [{
|
|
736
|
-
col:
|
|
736
|
+
col: E()
|
|
737
737
|
}],
|
|
738
738
|
/**
|
|
739
739
|
* Grid Column Start
|
|
@@ -761,7 +761,7 @@ const Ae = (e) => {
|
|
|
761
761
|
* @see https://tailwindcss.com/docs/grid-row
|
|
762
762
|
*/
|
|
763
763
|
"row-start-end": [{
|
|
764
|
-
row:
|
|
764
|
+
row: E()
|
|
765
765
|
}],
|
|
766
766
|
/**
|
|
767
767
|
* Grid Row Start
|
|
@@ -789,14 +789,14 @@ const Ae = (e) => {
|
|
|
789
789
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
790
790
|
*/
|
|
791
791
|
"auto-cols": [{
|
|
792
|
-
"auto-cols":
|
|
792
|
+
"auto-cols": B()
|
|
793
793
|
}],
|
|
794
794
|
/**
|
|
795
795
|
* Grid Auto Rows
|
|
796
796
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
797
797
|
*/
|
|
798
798
|
"auto-rows": [{
|
|
799
|
-
"auto-rows":
|
|
799
|
+
"auto-rows": B()
|
|
800
800
|
}],
|
|
801
801
|
/**
|
|
802
802
|
* Gap
|
|
@@ -824,7 +824,7 @@ const Ae = (e) => {
|
|
|
824
824
|
* @see https://tailwindcss.com/docs/justify-content
|
|
825
825
|
*/
|
|
826
826
|
"justify-content": [{
|
|
827
|
-
justify: [...
|
|
827
|
+
justify: [...J(), "normal"]
|
|
828
828
|
}],
|
|
829
829
|
/**
|
|
830
830
|
* Justify Items
|
|
@@ -845,7 +845,7 @@ const Ae = (e) => {
|
|
|
845
845
|
* @see https://tailwindcss.com/docs/align-content
|
|
846
846
|
*/
|
|
847
847
|
"align-content": [{
|
|
848
|
-
content: ["normal", ...
|
|
848
|
+
content: ["normal", ...J()]
|
|
849
849
|
}],
|
|
850
850
|
/**
|
|
851
851
|
* Align Items
|
|
@@ -870,7 +870,7 @@ const Ae = (e) => {
|
|
|
870
870
|
* @see https://tailwindcss.com/docs/place-content
|
|
871
871
|
*/
|
|
872
872
|
"place-content": [{
|
|
873
|
-
"place-content":
|
|
873
|
+
"place-content": J()
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Place Items
|
|
@@ -1373,7 +1373,7 @@ const Ae = (e) => {
|
|
|
1373
1373
|
* @see https://tailwindcss.com/docs/background-position
|
|
1374
1374
|
*/
|
|
1375
1375
|
"bg-position": [{
|
|
1376
|
-
bg:
|
|
1376
|
+
bg: te()
|
|
1377
1377
|
}],
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Background Repeat
|
|
@@ -2050,7 +2050,7 @@ const Ae = (e) => {
|
|
|
2050
2050
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2051
2051
|
*/
|
|
2052
2052
|
"mask-position": [{
|
|
2053
|
-
mask:
|
|
2053
|
+
mask: te()
|
|
2054
2054
|
}],
|
|
2055
2055
|
/**
|
|
2056
2056
|
* Mask Repeat
|
|
@@ -3029,10 +3029,10 @@ const nC = {
|
|
|
3029
3029
|
window.removeEventListener("resize", f), m && m.disconnect(), d.current && cancelAnimationFrame(d.current);
|
|
3030
3030
|
};
|
|
3031
3031
|
}, [e, h]);
|
|
3032
|
-
const g =
|
|
3032
|
+
const g = z(
|
|
3033
3033
|
() => typeof e == "string" ? e : l,
|
|
3034
3034
|
[l, e]
|
|
3035
|
-
), p =
|
|
3035
|
+
), p = z(() => o ? "" : r ? g : "", [g, o, r]);
|
|
3036
3036
|
return /* @__PURE__ */ $(mu, { ...i, children: [
|
|
3037
3037
|
/* @__PURE__ */ w(
|
|
3038
3038
|
vu,
|
|
@@ -3281,7 +3281,7 @@ const mC = "w-full flex", CC = {
|
|
|
3281
3281
|
className: d,
|
|
3282
3282
|
children: n
|
|
3283
3283
|
}
|
|
3284
|
-
), [n, d, b]),
|
|
3284
|
+
), [n, d, b]), F = U(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ w("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ w("span", { "aria-readonly": "true", children: f ?? "None" }), [p, f]);
|
|
3285
3285
|
return /* @__PURE__ */ $(
|
|
3286
3286
|
"div",
|
|
3287
3287
|
{
|
|
@@ -3316,7 +3316,7 @@ const mC = "w-full flex", CC = {
|
|
|
3316
3316
|
}
|
|
3317
3317
|
),
|
|
3318
3318
|
/* @__PURE__ */ $("div", { className: pe("min-w-0 w-full", u), children: [
|
|
3319
|
-
g ? /* @__PURE__ */ w("div", { className: "dial-input px-3 py-2", children:
|
|
3319
|
+
g ? /* @__PURE__ */ w("div", { className: "dial-input px-3 py-2", children: F() }) : m,
|
|
3320
3320
|
h && /* @__PURE__ */ w(
|
|
3321
3321
|
"div",
|
|
3322
3322
|
{
|
|
@@ -3438,7 +3438,7 @@ const vC = "flex", wC = "pb-1 mt-2", bC = {
|
|
|
3438
3438
|
isOpened: l,
|
|
3439
3439
|
onToggle: c
|
|
3440
3440
|
}) => {
|
|
3441
|
-
const [d, u] = A(s), [h, g] = A(!0), p =
|
|
3441
|
+
const [d, u] = A(s), [h, g] = A(!0), p = z(() => typeof l == "boolean", [l]), f = p ? l : h;
|
|
3442
3442
|
ve(() => {
|
|
3443
3443
|
p && u(l ? s : tr);
|
|
3444
3444
|
}, [p, l, s]);
|
|
@@ -4721,10 +4721,10 @@ function Vu(e, t) {
|
|
|
4721
4721
|
const s = [
|
|
4722
4722
|
...t || []
|
|
4723
4723
|
];
|
|
4724
|
-
return t == null && typeof e != "function" && s.push(e),
|
|
4724
|
+
return t == null && typeof e != "function" && s.push(e), z(() => typeof e == "function" ? e() : e, s);
|
|
4725
4725
|
}
|
|
4726
4726
|
function Jv(e) {
|
|
4727
|
-
return
|
|
4727
|
+
return z(
|
|
4728
4728
|
() => e.hooks.dragSource(),
|
|
4729
4729
|
[
|
|
4730
4730
|
e
|
|
@@ -4732,7 +4732,7 @@ function Jv(e) {
|
|
|
4732
4732
|
);
|
|
4733
4733
|
}
|
|
4734
4734
|
function ew(e) {
|
|
4735
|
-
return
|
|
4735
|
+
return z(
|
|
4736
4736
|
() => e.hooks.dragPreview(),
|
|
4737
4737
|
[
|
|
4738
4738
|
e
|
|
@@ -5098,7 +5098,7 @@ function Io() {
|
|
|
5098
5098
|
return le(e != null, "Expected drag drop context"), e;
|
|
5099
5099
|
}
|
|
5100
5100
|
function dw(e, t) {
|
|
5101
|
-
const s = Io(), o =
|
|
5101
|
+
const s = Io(), o = z(
|
|
5102
5102
|
() => new lw(s.getBackend()),
|
|
5103
5103
|
[
|
|
5104
5104
|
s
|
|
@@ -5114,7 +5114,7 @@ function dw(e, t) {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
function uw() {
|
|
5116
5116
|
const e = Io();
|
|
5117
|
-
return
|
|
5117
|
+
return z(
|
|
5118
5118
|
() => new tw(e),
|
|
5119
5119
|
[
|
|
5120
5120
|
e
|
|
@@ -5144,7 +5144,7 @@ class hw {
|
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
5146
|
function gw(e, t, s) {
|
|
5147
|
-
const o =
|
|
5147
|
+
const o = z(
|
|
5148
5148
|
() => new hw(e, t, s),
|
|
5149
5149
|
[
|
|
5150
5150
|
t,
|
|
@@ -5158,7 +5158,7 @@ function gw(e, t, s) {
|
|
|
5158
5158
|
]), o;
|
|
5159
5159
|
}
|
|
5160
5160
|
function pw(e) {
|
|
5161
|
-
return
|
|
5161
|
+
return z(() => {
|
|
5162
5162
|
const t = e.type;
|
|
5163
5163
|
return le(t != null, "spec.type must be defined"), t;
|
|
5164
5164
|
}, [
|
|
@@ -5191,7 +5191,7 @@ function mw(e, t) {
|
|
|
5191
5191
|
];
|
|
5192
5192
|
}
|
|
5193
5193
|
function Cw(e) {
|
|
5194
|
-
return
|
|
5194
|
+
return z(
|
|
5195
5195
|
() => e.hooks.dropTarget(),
|
|
5196
5196
|
[
|
|
5197
5197
|
e
|
|
@@ -5199,7 +5199,7 @@ function Cw(e) {
|
|
|
5199
5199
|
);
|
|
5200
5200
|
}
|
|
5201
5201
|
function vw(e) {
|
|
5202
|
-
const t = Io(), s =
|
|
5202
|
+
const t = Io(), s = z(
|
|
5203
5203
|
() => new cw(t.getBackend()),
|
|
5204
5204
|
[
|
|
5205
5205
|
t
|
|
@@ -5211,7 +5211,7 @@ function vw(e) {
|
|
|
5211
5211
|
}
|
|
5212
5212
|
function ww() {
|
|
5213
5213
|
const e = Io();
|
|
5214
|
-
return
|
|
5214
|
+
return z(
|
|
5215
5215
|
() => new sw(e),
|
|
5216
5216
|
[
|
|
5217
5217
|
e
|
|
@@ -5220,7 +5220,7 @@ function ww() {
|
|
|
5220
5220
|
}
|
|
5221
5221
|
function bw(e) {
|
|
5222
5222
|
const { accept: t } = e;
|
|
5223
|
-
return
|
|
5223
|
+
return z(() => (le(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
|
|
5224
5224
|
t
|
|
5225
5225
|
]), [
|
|
5226
5226
|
t
|
|
@@ -5245,7 +5245,7 @@ class Sw {
|
|
|
5245
5245
|
}
|
|
5246
5246
|
}
|
|
5247
5247
|
function yw(e, t) {
|
|
5248
|
-
const s =
|
|
5248
|
+
const s = z(
|
|
5249
5249
|
() => new Sw(e, t),
|
|
5250
5250
|
[
|
|
5251
5251
|
t
|
|
@@ -5539,7 +5539,7 @@ const Hw = K(
|
|
|
5539
5539
|
S || b(L), l?.(L);
|
|
5540
5540
|
},
|
|
5541
5541
|
[S, l]
|
|
5542
|
-
),
|
|
5542
|
+
), F = Ua(), T = i === void 0, H = (L) => "clientWidth" in L ? L.clientWidth : L.getBoundingClientRect?.()?.width ?? 0, { refs: M, floatingStyles: E, context: D } = Na({
|
|
5543
5543
|
placement: i,
|
|
5544
5544
|
open: y,
|
|
5545
5545
|
onOpenChange: R,
|
|
@@ -5567,9 +5567,9 @@ const Hw = K(
|
|
|
5567
5567
|
}
|
|
5568
5568
|
})
|
|
5569
5569
|
]
|
|
5570
|
-
}),
|
|
5570
|
+
}), B = Pf(D, {
|
|
5571
5571
|
enabled: o.includes(kt.Click) && !n
|
|
5572
|
-
}),
|
|
5572
|
+
}), J = nu(D, {
|
|
5573
5573
|
enabled: o.includes(kt.Hover) && !n,
|
|
5574
5574
|
move: !1,
|
|
5575
5575
|
restMs: 40,
|
|
@@ -5583,11 +5583,11 @@ const Hw = K(
|
|
|
5583
5583
|
return !(g?.current && ie instanceof Node && g.current.contains(ie));
|
|
5584
5584
|
}
|
|
5585
5585
|
}), ne = Va(D, { role: "menu" }), { getReferenceProps: j, getFloatingProps: k } = Ba([
|
|
5586
|
-
|
|
5587
|
-
|
|
5586
|
+
B,
|
|
5587
|
+
J,
|
|
5588
5588
|
I,
|
|
5589
5589
|
ne
|
|
5590
|
-
]),
|
|
5590
|
+
]), te = U(
|
|
5591
5591
|
(L, ie) => {
|
|
5592
5592
|
M.setPositionReference({
|
|
5593
5593
|
getBoundingClientRect: () => ({
|
|
@@ -5605,14 +5605,14 @@ const Hw = K(
|
|
|
5605
5605
|
[M]
|
|
5606
5606
|
), V = U(
|
|
5607
5607
|
(L) => {
|
|
5608
|
-
!o.includes(kt.ContextMenu) || n || (L.preventDefault(), m &&
|
|
5608
|
+
!o.includes(kt.ContextMenu) || n || (L.preventDefault(), m && te(L.clientX, L.clientY), R(!0));
|
|
5609
5609
|
},
|
|
5610
|
-
[m, n, R,
|
|
5610
|
+
[m, n, R, te, o]
|
|
5611
5611
|
), se = U(
|
|
5612
5612
|
(L) => {
|
|
5613
|
-
!m || n ||
|
|
5613
|
+
!m || n || te(L.clientX, L.clientY);
|
|
5614
5614
|
},
|
|
5615
|
-
[m, n,
|
|
5615
|
+
[m, n, te]
|
|
5616
5616
|
);
|
|
5617
5617
|
ve(() => {
|
|
5618
5618
|
n && y && R(!1);
|
|
@@ -5622,7 +5622,7 @@ const Hw = K(
|
|
|
5622
5622
|
L.disabled || (L.onClick?.({ key: L.key, domEvent: ie }), t?.onClick?.({ key: L.key, domEvent: ie }), R(!1));
|
|
5623
5623
|
},
|
|
5624
5624
|
[t, R]
|
|
5625
|
-
), q =
|
|
5625
|
+
), q = z(() => s ? s() : t ? /* @__PURE__ */ $(It, { children: [
|
|
5626
5626
|
t.header && /* @__PURE__ */ w(It, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
5627
5627
|
/* @__PURE__ */ w("div", { role: "none", className: "py-1", children: t.items.map((L) => L.type === $u.Divider ? /* @__PURE__ */ w(
|
|
5628
5628
|
"div",
|
|
@@ -5687,7 +5687,7 @@ const Hw = K(
|
|
|
5687
5687
|
),
|
|
5688
5688
|
"aria-haspopup": "menu",
|
|
5689
5689
|
"aria-expanded": y,
|
|
5690
|
-
"aria-controls":
|
|
5690
|
+
"aria-controls": F,
|
|
5691
5691
|
...re,
|
|
5692
5692
|
children: e
|
|
5693
5693
|
}
|
|
@@ -5702,9 +5702,9 @@ const Hw = K(
|
|
|
5702
5702
|
children: /* @__PURE__ */ $(
|
|
5703
5703
|
"div",
|
|
5704
5704
|
{
|
|
5705
|
-
id:
|
|
5705
|
+
id: F,
|
|
5706
5706
|
ref: M.setFloating,
|
|
5707
|
-
style:
|
|
5707
|
+
style: E,
|
|
5708
5708
|
className: K(
|
|
5709
5709
|
Nw,
|
|
5710
5710
|
!C && "w-max",
|
|
@@ -5778,7 +5778,7 @@ const Hw = K(
|
|
|
5778
5778
|
onClick: s,
|
|
5779
5779
|
orientation: o = Xr.Horizontal
|
|
5780
5780
|
}) => {
|
|
5781
|
-
const [i, n] = A(!1), [r, a] = A(!1), [l, c] = A(!1), d = Lw(), u = o === Xr.Horizontal, h = O(null), g = O(null), p = O(null), f = e.find((v) => v.id === t), m =
|
|
5781
|
+
const [i, n] = A(!1), [r, a] = A(!1), [l, c] = A(!1), d = Lw(), u = o === Xr.Horizontal, h = O(null), g = O(null), p = O(null), f = e.find((v) => v.id === t), m = z(
|
|
5782
5782
|
() => K(
|
|
5783
5783
|
"flex gap-3",
|
|
5784
5784
|
u ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
@@ -5795,11 +5795,11 @@ const Hw = K(
|
|
|
5795
5795
|
}, [e, C]), ve(() => {
|
|
5796
5796
|
const v = p.current, b = g.current;
|
|
5797
5797
|
if (!v || !b) return;
|
|
5798
|
-
const S = v.offsetLeft, y = S + v.offsetWidth, R = b.scrollLeft,
|
|
5798
|
+
const S = v.offsetLeft, y = S + v.offsetWidth, R = b.scrollLeft, F = R + b.clientWidth;
|
|
5799
5799
|
S < R ? b.scrollTo({
|
|
5800
5800
|
left: S - bc,
|
|
5801
5801
|
behavior: "smooth"
|
|
5802
|
-
}) : y >
|
|
5802
|
+
}) : y > F && b.scrollTo({
|
|
5803
5803
|
left: y - b.clientWidth + bc,
|
|
5804
5804
|
behavior: "smooth"
|
|
5805
5805
|
});
|
|
@@ -6071,18 +6071,19 @@ const Hw = K(
|
|
|
6071
6071
|
textAfterInput: b,
|
|
6072
6072
|
onBlur: S,
|
|
6073
6073
|
defaultValue: y,
|
|
6074
|
-
tooltipText: R
|
|
6074
|
+
tooltipText: R,
|
|
6075
|
+
hideTooltip: F = !1
|
|
6075
6076
|
}) => {
|
|
6076
|
-
const
|
|
6077
|
-
e1(
|
|
6078
|
-
},
|
|
6079
|
-
const
|
|
6080
|
-
if (
|
|
6081
|
-
const
|
|
6082
|
-
if (isNaN(
|
|
6077
|
+
const T = (D) => D.target.blur(), H = c === "number" || p !== void 0 || f !== void 0, M = (D) => {
|
|
6078
|
+
e1(D, c, p, f);
|
|
6079
|
+
}, E = (D) => {
|
|
6080
|
+
const B = D.currentTarget.value;
|
|
6081
|
+
if (H && B !== "") {
|
|
6082
|
+
const J = parseFloat(B);
|
|
6083
|
+
if (isNaN(J) && B !== "-" && B !== "." || !isNaN(J) && (p !== void 0 && J < p || f !== void 0 && J > f))
|
|
6083
6084
|
return;
|
|
6084
6085
|
}
|
|
6085
|
-
g?.(
|
|
6086
|
+
g?.(B || void 0);
|
|
6086
6087
|
};
|
|
6087
6088
|
return /* @__PURE__ */ $(
|
|
6088
6089
|
"div",
|
|
@@ -6123,7 +6124,7 @@ const Hw = K(
|
|
|
6123
6124
|
/* @__PURE__ */ w(
|
|
6124
6125
|
$s,
|
|
6125
6126
|
{
|
|
6126
|
-
tooltip: R || o,
|
|
6127
|
+
tooltip: F ? void 0 : R || o,
|
|
6127
6128
|
triggerClassName: K(l, "flex-1"),
|
|
6128
6129
|
children: /* @__PURE__ */ w(
|
|
6129
6130
|
"input",
|
|
@@ -6138,9 +6139,9 @@ const Hw = K(
|
|
|
6138
6139
|
"border-0 bg-transparent w-full truncate",
|
|
6139
6140
|
r
|
|
6140
6141
|
),
|
|
6141
|
-
onChange: (
|
|
6142
|
-
onKeyDown:
|
|
6143
|
-
onWheel:
|
|
6142
|
+
onChange: (D) => !u && E?.(D),
|
|
6143
|
+
onKeyDown: M,
|
|
6144
|
+
onWheel: T,
|
|
6144
6145
|
onBlur: S,
|
|
6145
6146
|
min: p,
|
|
6146
6147
|
max: f,
|
|
@@ -6568,11 +6569,11 @@ const l1 = "flex justify-end gap-2 px-6 py-4", c1 = "text-secondary dial-small-1
|
|
|
6568
6569
|
}) => {
|
|
6569
6570
|
const [S, y] = A(!1), R = U(() => {
|
|
6570
6571
|
s || y(!0);
|
|
6571
|
-
}, [s]),
|
|
6572
|
+
}, [s]), F = U(() => {
|
|
6572
6573
|
y(!1), c?.();
|
|
6573
6574
|
}, [c]), T = U(() => {
|
|
6574
|
-
h(),
|
|
6575
|
-
}, [h,
|
|
6575
|
+
h(), F();
|
|
6576
|
+
}, [h, F]);
|
|
6576
6577
|
return /* @__PURE__ */ $("div", { className: "flex flex-col", children: [
|
|
6577
6578
|
/* @__PURE__ */ w(Mo, { fieldTitle: e, htmlFor: t }),
|
|
6578
6579
|
/* @__PURE__ */ w(
|
|
@@ -6589,7 +6590,7 @@ const l1 = "flex justify-end gap-2 px-6 py-4", c1 = "text-secondary dial-small-1
|
|
|
6589
6590
|
rl,
|
|
6590
6591
|
{
|
|
6591
6592
|
open: S,
|
|
6592
|
-
onClose:
|
|
6593
|
+
onClose: F,
|
|
6593
6594
|
title: d,
|
|
6594
6595
|
portalId: u,
|
|
6595
6596
|
size: b,
|
|
@@ -6599,7 +6600,7 @@ const l1 = "flex justify-end gap-2 px-6 py-4", c1 = "text-secondary dial-small-1
|
|
|
6599
6600
|
{
|
|
6600
6601
|
variant: Le.Secondary,
|
|
6601
6602
|
title: g,
|
|
6602
|
-
onClick:
|
|
6603
|
+
onClick: F
|
|
6603
6604
|
}
|
|
6604
6605
|
),
|
|
6605
6606
|
/* @__PURE__ */ w(
|
|
@@ -6797,7 +6798,7 @@ const m1 = {
|
|
|
6797
6798
|
searchCssClass: p,
|
|
6798
6799
|
searchContainerCssClass: f
|
|
6799
6800
|
}) => {
|
|
6800
|
-
const m =
|
|
6801
|
+
const m = z(() => {
|
|
6801
6802
|
if (!o) return;
|
|
6802
6803
|
const C = o.split("/").map((v) => v.trim()).filter(Boolean);
|
|
6803
6804
|
return C.length ? C.map((v, b) => {
|
|
@@ -6871,7 +6872,7 @@ const T1 = {
|
|
|
6871
6872
|
}, g = (p, f) => p.map((m) => {
|
|
6872
6873
|
const { path: C, nodeType: v, name: b, items: S } = m, y = v === hs.FOLDER;
|
|
6873
6874
|
if (!y && !t) return;
|
|
6874
|
-
const R = Array.isArray(S) && S.length > 0 && S.some((D) => D.nodeType === hs.FOLDER || t),
|
|
6875
|
+
const R = Array.isArray(S) && S.length > 0 && S.some((D) => D.nodeType === hs.FOLDER || t), F = d.has(C), T = i === C, H = o.has(C), M = T ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", E = c?.(m) ?? [];
|
|
6875
6876
|
return /* @__PURE__ */ w("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ $("div", { className: "flex flex-col", children: [
|
|
6876
6877
|
/* @__PURE__ */ $(
|
|
6877
6878
|
"div",
|
|
@@ -6888,7 +6889,7 @@ const T1 = {
|
|
|
6888
6889
|
trigger: [kt.ContextMenu],
|
|
6889
6890
|
cssClass: "w-full",
|
|
6890
6891
|
anchorToMouse: !0,
|
|
6891
|
-
menu: { items:
|
|
6892
|
+
menu: { items: E },
|
|
6892
6893
|
children: /* @__PURE__ */ w("div", { className: "flex-1 flex flex-row truncate items-center", children: y ? /* @__PURE__ */ $(It, { children: [
|
|
6893
6894
|
/* @__PURE__ */ w(
|
|
6894
6895
|
pm,
|
|
@@ -6896,7 +6897,7 @@ const T1 = {
|
|
|
6896
6897
|
...T1,
|
|
6897
6898
|
className: K(
|
|
6898
6899
|
"flex-shrink-0",
|
|
6899
|
-
|
|
6900
|
+
F && "rotate-90 transition-all",
|
|
6900
6901
|
!R && "text-transparent"
|
|
6901
6902
|
)
|
|
6902
6903
|
}
|
|
@@ -6905,12 +6906,12 @@ const T1 = {
|
|
|
6905
6906
|
] }) : /* @__PURE__ */ w(_u, { name: b }) })
|
|
6906
6907
|
}
|
|
6907
6908
|
) }),
|
|
6908
|
-
|
|
6909
|
+
E.length > 0 && /* @__PURE__ */ w(
|
|
6909
6910
|
gs,
|
|
6910
6911
|
{
|
|
6911
6912
|
placement: "bottom-start",
|
|
6912
6913
|
allowedPlacements: ["top-start", "top-end"],
|
|
6913
|
-
menu: { items:
|
|
6914
|
+
menu: { items: E },
|
|
6914
6915
|
children: /* @__PURE__ */ w(
|
|
6915
6916
|
Fe,
|
|
6916
6917
|
{
|
|
@@ -6923,7 +6924,7 @@ const T1 = {
|
|
|
6923
6924
|
]
|
|
6924
6925
|
}
|
|
6925
6926
|
),
|
|
6926
|
-
|
|
6927
|
+
F && S && g(S, f + 1)
|
|
6927
6928
|
] }) }, `${C}-children`);
|
|
6928
6929
|
});
|
|
6929
6930
|
return /* @__PURE__ */ w("div", { className: "flex-1 w-full h-full overflow-y-auto", children: e.length > 0 ? g(e, 0) : /* @__PURE__ */ w(
|
|
@@ -7018,11 +7019,11 @@ var Gs = class {
|
|
|
7018
7019
|
function jt(e) {
|
|
7019
7020
|
return e == null || e === "" ? null : e;
|
|
7020
7021
|
}
|
|
7021
|
-
function
|
|
7022
|
+
function _(e) {
|
|
7022
7023
|
return e != null && e !== "";
|
|
7023
7024
|
}
|
|
7024
7025
|
function Re(e) {
|
|
7025
|
-
return !
|
|
7026
|
+
return !_(e);
|
|
7026
7027
|
}
|
|
7027
7028
|
function Jr(e) {
|
|
7028
7029
|
return e != null && typeof e.toString == "function" ? e.toString() : null;
|
|
@@ -7073,7 +7074,7 @@ function Ne(e) {
|
|
|
7073
7074
|
const { gos: t, eRootDiv: s } = e;
|
|
7074
7075
|
let o = null;
|
|
7075
7076
|
const i = t.get("getDocument");
|
|
7076
|
-
return i &&
|
|
7077
|
+
return i && _(i) ? o = i() : s && (o = s.ownerDocument), o && _(o) ? o : document;
|
|
7077
7078
|
}
|
|
7078
7079
|
function Qu(e) {
|
|
7079
7080
|
const t = Ee(e);
|
|
@@ -7703,7 +7704,7 @@ function vb(e, t) {
|
|
|
7703
7704
|
}
|
|
7704
7705
|
}
|
|
7705
7706
|
function Xe(e, t, s = !0, o = !1) {
|
|
7706
|
-
|
|
7707
|
+
_(t) && vb(t, (i, n) => {
|
|
7707
7708
|
let r = e[i];
|
|
7708
7709
|
r !== n && (o && r == null && n != null && typeof n == "object" && n.constructor === Object && (r = {}, e[i] = r), Pc(n) && Pc(r) && !Array.isArray(r) ? Xe(r, n, s, o) : (s || n !== void 0) && (e[i] = n));
|
|
7709
7710
|
});
|
|
@@ -8003,7 +8004,7 @@ var Pb = class {
|
|
|
8003
8004
|
for (const t of e)
|
|
8004
8005
|
ci(t, void 0);
|
|
8005
8006
|
}
|
|
8006
|
-
},
|
|
8007
|
+
}, W = "34.3.0", Tc = 2e3, Mc = 100, yh = "_version_", Rh = null, ho = `${vh}/javascript-data-grid`;
|
|
8007
8008
|
function Tb(e) {
|
|
8008
8009
|
Rh = e;
|
|
8009
8010
|
}
|
|
@@ -8050,7 +8051,7 @@ function Ab(e, t, s) {
|
|
|
8050
8051
|
}
|
|
8051
8052
|
function Fh(e, t) {
|
|
8052
8053
|
const s = new URLSearchParams();
|
|
8053
|
-
if (s.append(yh,
|
|
8054
|
+
if (s.append(yh, W), t)
|
|
8054
8055
|
for (const n of Object.keys(t))
|
|
8055
8056
|
s.append(n, kb(t[n]));
|
|
8056
8057
|
const o = `${ho}/errors/${e}`, i = oa(o, s);
|
|
@@ -8312,7 +8313,7 @@ function Yb(e, t) {
|
|
|
8312
8313
|
};
|
|
8313
8314
|
t.dispatchEvent(n);
|
|
8314
8315
|
}
|
|
8315
|
-
function
|
|
8316
|
+
function ee(e, t) {
|
|
8316
8317
|
return e.addCommon(t);
|
|
8317
8318
|
}
|
|
8318
8319
|
function Ki(e, t) {
|
|
@@ -8373,7 +8374,7 @@ var qs = class extends P {
|
|
|
8373
8374
|
gos: e,
|
|
8374
8375
|
colDef: { field: t, tooltipField: s }
|
|
8375
8376
|
} = this, o = e.get("suppressFieldDotNotation");
|
|
8376
|
-
this.fieldContainsDots =
|
|
8377
|
+
this.fieldContainsDots = _(t) && t.includes(".") && !o, this.tooltipFieldContainsDots = _(s) && s.includes(".") && !o;
|
|
8377
8378
|
}
|
|
8378
8379
|
initMinAndMaxWidths() {
|
|
8379
8380
|
const e = this.colDef;
|
|
@@ -8452,7 +8453,7 @@ var qs = class extends P {
|
|
|
8452
8453
|
this.colEventSvc.removeEventListener(e, s);
|
|
8453
8454
|
}
|
|
8454
8455
|
createColumnFunctionCallbackParams(e) {
|
|
8455
|
-
return
|
|
8456
|
+
return ee(this.gos, {
|
|
8456
8457
|
node: e,
|
|
8457
8458
|
data: e.data,
|
|
8458
8459
|
column: this,
|
|
@@ -8503,7 +8504,7 @@ var qs = class extends P {
|
|
|
8503
8504
|
return !1;
|
|
8504
8505
|
}
|
|
8505
8506
|
createColumnEvent(e, t) {
|
|
8506
|
-
return
|
|
8507
|
+
return ee(this.gos, {
|
|
8507
8508
|
type: e,
|
|
8508
8509
|
column: this,
|
|
8509
8510
|
columns: [this],
|
|
@@ -8533,7 +8534,7 @@ var qs = class extends P {
|
|
|
8533
8534
|
}
|
|
8534
8535
|
/** @deprecated v32 use col.getSort() !== undefined */
|
|
8535
8536
|
isSorting() {
|
|
8536
|
-
return
|
|
8537
|
+
return _(this.sort);
|
|
8537
8538
|
}
|
|
8538
8539
|
getSortIndex() {
|
|
8539
8540
|
return this.sortIndex;
|
|
@@ -8651,7 +8652,7 @@ var qs = class extends P {
|
|
|
8651
8652
|
return this.autoHeaderHeight = e, t;
|
|
8652
8653
|
}
|
|
8653
8654
|
createBaseColDefParams(e) {
|
|
8654
|
-
return
|
|
8655
|
+
return ee(this.gos, {
|
|
8655
8656
|
node: e,
|
|
8656
8657
|
data: e.data,
|
|
8657
8658
|
colDef: this.colDef,
|
|
@@ -8961,7 +8962,7 @@ var o0 = (e, t) => (s, o) => {
|
|
|
8961
8962
|
value2: void 0
|
|
8962
8963
|
};
|
|
8963
8964
|
let n = !1;
|
|
8964
|
-
return e && (e[s] !== void 0 && (i.value1 = e[s], n = !0),
|
|
8965
|
+
return e && (e[s] !== void 0 && (i.value1 = e[s], n = !0), _(o) && e[o] !== void 0 && (i.value2 = e[o], n = !0)), !n && t && (t[s] !== void 0 && (i.value1 = t[s]), _(o) && t[o] !== void 0 && (i.value2 = t[o])), i;
|
|
8965
8966
|
}, i0 = (e, t) => {
|
|
8966
8967
|
qe(e) && e.setupExpandable(), e.originalParent = t;
|
|
8967
8968
|
};
|
|
@@ -9207,10 +9208,10 @@ function yt(e, t, s) {
|
|
|
9207
9208
|
return !1;
|
|
9208
9209
|
if (t?.state && !t.state.forEach)
|
|
9209
9210
|
return N(32), !1;
|
|
9210
|
-
const C = (y, R,
|
|
9211
|
+
const C = (y, R, F, T, H) => {
|
|
9211
9212
|
if (!y)
|
|
9212
9213
|
return;
|
|
9213
|
-
const M = o0(R, t.defaultState),
|
|
9214
|
+
const M = o0(R, t.defaultState), E = M("flex").value1;
|
|
9214
9215
|
if (Bh(
|
|
9215
9216
|
e,
|
|
9216
9217
|
y,
|
|
@@ -9218,54 +9219,54 @@ function yt(e, t, s) {
|
|
|
9218
9219
|
M("sort").value1,
|
|
9219
9220
|
M("sortIndex").value1,
|
|
9220
9221
|
M("pinned").value1,
|
|
9221
|
-
|
|
9222
|
+
E,
|
|
9222
9223
|
s
|
|
9223
|
-
),
|
|
9224
|
+
), E == null) {
|
|
9224
9225
|
const D = M("width").value1;
|
|
9225
9226
|
if (D != null) {
|
|
9226
|
-
const
|
|
9227
|
-
|
|
9227
|
+
const B = y.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
|
|
9228
|
+
B != null && D >= B && y.setActualWidth(D, s);
|
|
9228
9229
|
}
|
|
9229
9230
|
}
|
|
9230
|
-
H || !y.isPrimary() || (h?.syncColumnWithState(y, s, M), i?.syncColumnWithState(y, s, M,
|
|
9231
|
-
}, v = (y, R,
|
|
9232
|
-
const T = $h(e, s), H = R.slice(), M = {},
|
|
9231
|
+
H || !y.isPrimary() || (h?.syncColumnWithState(y, s, M), i?.syncColumnWithState(y, s, M, F), n?.syncColumnWithState(y, s, M, T));
|
|
9232
|
+
}, v = (y, R, F) => {
|
|
9233
|
+
const T = $h(e, s), H = R.slice(), M = {}, E = {}, D = [], B = [], J = [];
|
|
9233
9234
|
let I = 0;
|
|
9234
9235
|
const ne = i?.columns.slice() ?? [], j = n?.columns.slice() ?? [];
|
|
9235
9236
|
for (const V of y) {
|
|
9236
9237
|
const se = V.colId;
|
|
9237
9238
|
if (se.startsWith(Wn)) {
|
|
9238
|
-
D.push(V),
|
|
9239
|
+
D.push(V), J.push(V);
|
|
9239
9240
|
continue;
|
|
9240
9241
|
}
|
|
9241
9242
|
if (ts(se)) {
|
|
9242
|
-
|
|
9243
|
+
B.push(V), J.push(V);
|
|
9243
9244
|
continue;
|
|
9244
9245
|
}
|
|
9245
|
-
const q =
|
|
9246
|
-
q ? (C(q, V, M,
|
|
9246
|
+
const q = F(se);
|
|
9247
|
+
q ? (C(q, V, M, E, !1), Rt(H, q)) : (J.push(V), I += 1);
|
|
9247
9248
|
}
|
|
9248
|
-
const k = (V) => C(V, null, M,
|
|
9249
|
-
H.forEach(k), i?.sortColumns(Oc.bind(i, M, ne)), n?.sortColumns(Oc.bind(n,
|
|
9250
|
-
const
|
|
9249
|
+
const k = (V) => C(V, null, M, E, !1);
|
|
9250
|
+
H.forEach(k), i?.sortColumns(Oc.bind(i, M, ne)), n?.sortColumns(Oc.bind(n, E, j)), o.refreshCols(!1, s);
|
|
9251
|
+
const te = (V, se, Q = []) => {
|
|
9251
9252
|
for (const q of se) {
|
|
9252
9253
|
const re = V(q.colId);
|
|
9253
9254
|
Rt(Q, re), C(re, q, null, null, !0);
|
|
9254
9255
|
}
|
|
9255
9256
|
Q.forEach(k);
|
|
9256
9257
|
};
|
|
9257
|
-
return
|
|
9258
|
+
return te(
|
|
9258
9259
|
(V) => r?.getColumn(V) ?? null,
|
|
9259
9260
|
D,
|
|
9260
9261
|
r?.getColumns()?.slice()
|
|
9261
|
-
),
|
|
9262
|
+
), te(
|
|
9262
9263
|
(V) => a?.getColumn(V) ?? null,
|
|
9263
|
-
|
|
9264
|
+
B,
|
|
9264
9265
|
a?.getColumns()?.slice()
|
|
9265
9266
|
), m0(t, o, p), c.refresh(s), g.dispatchEvent({
|
|
9266
9267
|
type: "columnEverythingChanged",
|
|
9267
9268
|
source: s
|
|
9268
|
-
}), T(), { unmatchedAndAutoStates:
|
|
9269
|
+
}), T(), { unmatchedAndAutoStates: J, unmatchedCount: I };
|
|
9269
9270
|
};
|
|
9270
9271
|
l?.start();
|
|
9271
9272
|
let { unmatchedAndAutoStates: b, unmatchedCount: S } = v(
|
|
@@ -9273,7 +9274,7 @@ function yt(e, t, s) {
|
|
|
9273
9274
|
f,
|
|
9274
9275
|
(y) => o.getColDefCol(y)
|
|
9275
9276
|
);
|
|
9276
|
-
if (b.length > 0 ||
|
|
9277
|
+
if (b.length > 0 || _(t.defaultState)) {
|
|
9277
9278
|
const y = d?.getPivotResultCols()?.list ?? [];
|
|
9278
9279
|
S = v(
|
|
9279
9280
|
b,
|
|
@@ -9295,7 +9296,7 @@ function f0(e, t) {
|
|
|
9295
9296
|
};
|
|
9296
9297
|
o?.getColumns()?.forEach(g), i?.getColumns()?.forEach(g), c?.forEach(g), yt(e, { state: d }, t);
|
|
9297
9298
|
const p = o?.getColumns() ?? [], C = [...i?.getColumns() ?? [], ...p, ...a].map((v) => ({ colId: v.colId }));
|
|
9298
|
-
yt(e, { state: C, applyOrder: !0 }, t), n.dispatchEvent(
|
|
9299
|
+
yt(e, { state: C, applyOrder: !0 }, t), n.dispatchEvent(ee(r, { type: "columnsReset", source: t }));
|
|
9299
9300
|
}
|
|
9300
9301
|
function $h(e, t) {
|
|
9301
9302
|
const { rowGroupColsSvc: s, pivotColsSvc: o, valueColsSvc: i, colModel: n, sortSvc: r, eventSvc: a } = e, l = {
|
|
@@ -9306,26 +9307,26 @@ function $h(e, t) {
|
|
|
9306
9307
|
for (const u of c)
|
|
9307
9308
|
d[u.colId] = u;
|
|
9308
9309
|
return () => {
|
|
9309
|
-
const u = (R,
|
|
9310
|
-
const M =
|
|
9311
|
-
if (ws(M,
|
|
9310
|
+
const u = (R, F, T, H) => {
|
|
9311
|
+
const M = F.map(H), E = T.map(H);
|
|
9312
|
+
if (ws(M, E))
|
|
9312
9313
|
return;
|
|
9313
|
-
const
|
|
9314
|
+
const B = new Set(F);
|
|
9314
9315
|
for (const I of T)
|
|
9315
|
-
|
|
9316
|
-
const
|
|
9316
|
+
B.delete(I) || B.add(I);
|
|
9317
|
+
const J = [...B];
|
|
9317
9318
|
a.dispatchEvent({
|
|
9318
9319
|
type: R,
|
|
9319
|
-
columns:
|
|
9320
|
-
column:
|
|
9320
|
+
columns: J,
|
|
9321
|
+
column: J.length === 1 ? J[0] : null,
|
|
9321
9322
|
source: t
|
|
9322
9323
|
});
|
|
9323
9324
|
}, h = (R) => {
|
|
9324
|
-
const
|
|
9325
|
+
const F = [];
|
|
9325
9326
|
return n.forAllCols((T) => {
|
|
9326
9327
|
const H = d[T.getColId()];
|
|
9327
|
-
H && R(H, T) &&
|
|
9328
|
-
}),
|
|
9328
|
+
H && R(H, T) && F.push(T);
|
|
9329
|
+
}), F;
|
|
9329
9330
|
}, g = (R) => R.getColId();
|
|
9330
9331
|
u(
|
|
9331
9332
|
"columnRowGroupChanged",
|
|
@@ -9338,12 +9339,12 @@ function $h(e, t) {
|
|
|
9338
9339
|
o?.columns ?? [],
|
|
9339
9340
|
g
|
|
9340
9341
|
);
|
|
9341
|
-
const f = h((R,
|
|
9342
|
-
const T = R.aggFunc != null, H = T !=
|
|
9342
|
+
const f = h((R, F) => {
|
|
9343
|
+
const T = R.aggFunc != null, H = T != F.isValueActive(), M = T && R.aggFunc != F.getAggFunc();
|
|
9343
9344
|
return H || M;
|
|
9344
9345
|
});
|
|
9345
|
-
f.length > 0 && p0(a, "columnValueChanged", f, t), xo(a, h((R,
|
|
9346
|
-
const S = h((R,
|
|
9346
|
+
f.length > 0 && p0(a, "columnValueChanged", f, t), xo(a, h((R, F) => R.width != F.getActualWidth()), !0, t), Uh(a, h((R, F) => R.pinned != F.getPinned()), t), g0(a, h((R, F) => R.hide == F.isVisible()), t);
|
|
9347
|
+
const S = h((R, F) => R.sort != F.getSort() || R.sortIndex != F.getSortIndex());
|
|
9347
9348
|
S.length > 0 && r?.dispatchSortChangedEvents(t, S);
|
|
9348
9349
|
const y = xn(e);
|
|
9349
9350
|
v0(c, y, t, n, a);
|
|
@@ -10232,7 +10233,7 @@ function ui(e) {
|
|
|
10232
10233
|
function sS(e) {
|
|
10233
10234
|
return typeof e == "object" && !!e.getComp;
|
|
10234
10235
|
}
|
|
10235
|
-
var
|
|
10236
|
+
var x = {
|
|
10236
10237
|
BACKSPACE: "Backspace",
|
|
10237
10238
|
TAB: "Tab",
|
|
10238
10239
|
ENTER: "Enter",
|
|
@@ -10774,7 +10775,7 @@ var Ds = class extends ig {
|
|
|
10774
10775
|
}
|
|
10775
10776
|
setValue(e, t) {
|
|
10776
10777
|
const s = this.eInput;
|
|
10777
|
-
return s.value !== e && (s.value =
|
|
10778
|
+
return s.value !== e && (s.value = _(e) ? e : ""), super.setValue(e, t);
|
|
10778
10779
|
}
|
|
10779
10780
|
/** Used to set an initial value into the input without necessarily setting `this.value` or triggering events (e.g. to set an invalid value) */
|
|
10780
10781
|
setStartValue(e) {
|
|
@@ -10880,7 +10881,7 @@ var Ds = class extends ig {
|
|
|
10880
10881
|
);
|
|
10881
10882
|
}
|
|
10882
10883
|
setValueOrInputValue(e, t, s) {
|
|
10883
|
-
if (
|
|
10884
|
+
if (_(s)) {
|
|
10884
10885
|
let o = this.isScientificNotation(s);
|
|
10885
10886
|
if (o && this.eInput.validity.valid)
|
|
10886
10887
|
return e(s);
|
|
@@ -11019,7 +11020,7 @@ var Ds = class extends ig {
|
|
|
11019
11020
|
handleKeyDown(e) {
|
|
11020
11021
|
const t = e.key;
|
|
11021
11022
|
switch (t) {
|
|
11022
|
-
case
|
|
11023
|
+
case x.ENTER:
|
|
11023
11024
|
if (!this.highlightedItem)
|
|
11024
11025
|
this.setValue(this.getValue());
|
|
11025
11026
|
else {
|
|
@@ -11027,14 +11028,14 @@ var Ds = class extends ig {
|
|
|
11027
11028
|
this.setValueByIndex(s);
|
|
11028
11029
|
}
|
|
11029
11030
|
break;
|
|
11030
|
-
case
|
|
11031
|
-
case
|
|
11031
|
+
case x.DOWN:
|
|
11032
|
+
case x.UP:
|
|
11032
11033
|
e.preventDefault(), this.navigate(t);
|
|
11033
11034
|
break;
|
|
11034
|
-
case
|
|
11035
|
-
case
|
|
11036
|
-
case
|
|
11037
|
-
case
|
|
11035
|
+
case x.PAGE_DOWN:
|
|
11036
|
+
case x.PAGE_UP:
|
|
11037
|
+
case x.PAGE_HOME:
|
|
11038
|
+
case x.PAGE_END:
|
|
11038
11039
|
e.preventDefault(), this.navigateToPage(t);
|
|
11039
11040
|
break;
|
|
11040
11041
|
}
|
|
@@ -11107,7 +11108,7 @@ var Ds = class extends ig {
|
|
|
11107
11108
|
this.listItems.push(o), this.getGui().appendChild(o.getGui());
|
|
11108
11109
|
}
|
|
11109
11110
|
navigate(e) {
|
|
11110
|
-
const t = e ===
|
|
11111
|
+
const t = e === x.DOWN;
|
|
11111
11112
|
let s;
|
|
11112
11113
|
const { listItems: o, highlightedItem: i } = this;
|
|
11113
11114
|
if (!i)
|
|
@@ -11124,7 +11125,7 @@ var Ds = class extends ig {
|
|
|
11124
11125
|
return;
|
|
11125
11126
|
const o = t.indexOf(s), i = this.options.length - 1, n = t[0].getHeight(), r = Math.floor(this.getGui().clientHeight / n);
|
|
11126
11127
|
let a = -1;
|
|
11127
|
-
e ===
|
|
11128
|
+
e === x.PAGE_HOME ? a = 0 : e === x.PAGE_END ? a = i : e === x.PAGE_DOWN ? a = Math.min(o + r, i) : e === x.PAGE_UP && (a = Math.max(o - r, 0)), a !== -1 && this.highlightItem(t[a]);
|
|
11128
11129
|
}
|
|
11129
11130
|
refreshAriaRole() {
|
|
11130
11131
|
Vs(this.getGui(), this.options.length === 0 ? "presentation" : "listbox");
|
|
@@ -11200,13 +11201,13 @@ var Ds = class extends ig {
|
|
|
11200
11201
|
}
|
|
11201
11202
|
onKeyDown(e) {
|
|
11202
11203
|
switch (e.key) {
|
|
11203
|
-
case
|
|
11204
|
-
case
|
|
11205
|
-
case
|
|
11206
|
-
case
|
|
11204
|
+
case x.UP:
|
|
11205
|
+
case x.DOWN:
|
|
11206
|
+
case x.ENTER:
|
|
11207
|
+
case x.SPACE:
|
|
11207
11208
|
e.preventDefault(), this.onLabelOrWrapperMouseDown();
|
|
11208
11209
|
break;
|
|
11209
|
-
case
|
|
11210
|
+
case x.ESCAPE:
|
|
11210
11211
|
this.isPickerDisplayed && (e.preventDefault(), e.stopPropagation(), this.hideCurrentPicker && this.hideCurrentPicker());
|
|
11211
11212
|
break;
|
|
11212
11213
|
}
|
|
@@ -11375,20 +11376,20 @@ var Ds = class extends ig {
|
|
|
11375
11376
|
}
|
|
11376
11377
|
onKeyDown(e) {
|
|
11377
11378
|
const { key: t } = e;
|
|
11378
|
-
switch (t ===
|
|
11379
|
-
case
|
|
11380
|
-
case
|
|
11381
|
-
case
|
|
11382
|
-
case
|
|
11383
|
-
case
|
|
11384
|
-
case
|
|
11385
|
-
case
|
|
11379
|
+
switch (t === x.TAB && this.hidePicker(), t) {
|
|
11380
|
+
case x.ENTER:
|
|
11381
|
+
case x.UP:
|
|
11382
|
+
case x.DOWN:
|
|
11383
|
+
case x.PAGE_UP:
|
|
11384
|
+
case x.PAGE_DOWN:
|
|
11385
|
+
case x.PAGE_HOME:
|
|
11386
|
+
case x.PAGE_END:
|
|
11386
11387
|
e.preventDefault(), this.isPickerDisplayed ? this.listComponent?.handleKeyDown(e) : super.onKeyDown(e);
|
|
11387
11388
|
break;
|
|
11388
|
-
case
|
|
11389
|
+
case x.ESCAPE:
|
|
11389
11390
|
super.onKeyDown(e);
|
|
11390
11391
|
break;
|
|
11391
|
-
case
|
|
11392
|
+
case x.SPACE:
|
|
11392
11393
|
this.isPickerDisplayed ? e.preventDefault() : super.onKeyDown(e);
|
|
11393
11394
|
break;
|
|
11394
11395
|
}
|
|
@@ -12102,7 +12103,7 @@ ${n}}
|
|
|
12102
12103
|
}
|
|
12103
12104
|
showTooltip() {
|
|
12104
12105
|
const e = this.getTooltipValue(), t = this.tooltipCtrl;
|
|
12105
|
-
if (!
|
|
12106
|
+
if (!_(e) || t.shouldDisplayTooltip && !t.shouldDisplayTooltip()) {
|
|
12106
12107
|
this.setToDoNothing();
|
|
12107
12108
|
return;
|
|
12108
12109
|
}
|
|
@@ -12372,7 +12373,7 @@ ${n}}
|
|
|
12372
12373
|
}
|
|
12373
12374
|
initialisePopupPosition(e) {
|
|
12374
12375
|
const s = this.getPopupParent().getBoundingClientRect();
|
|
12375
|
-
|
|
12376
|
+
_(e.style.top) || (e.style.top = `${s.top * -1}px`), _(e.style.left) || (e.style.left = `${s.left * -1}px`);
|
|
12376
12377
|
}
|
|
12377
12378
|
createPopupWrapper(e, t, s, o) {
|
|
12378
12379
|
const i = this.getPopupParent(), { environment: n, gos: r } = this.beans, a = wi({ tag: "div" });
|
|
@@ -12384,7 +12385,7 @@ ${n}}
|
|
|
12384
12385
|
const u = (f) => {
|
|
12385
12386
|
if (!o.contains(Ee(t)))
|
|
12386
12387
|
return;
|
|
12387
|
-
f.key ===
|
|
12388
|
+
f.key === x.ESCAPE && !this.isStopPropagation(f) && p({ keyboardEvent: f });
|
|
12388
12389
|
}, h = (f) => p({ mouseEvent: f }), g = (f) => p({ touchEvent: f }), p = (f = {}) => {
|
|
12389
12390
|
const { mouseEvent: m, touchEvent: C, keyboardEvent: v, forceHide: b } = f;
|
|
12390
12391
|
!b && // we don't hide popup if the event was on the child, or any
|
|
@@ -12771,7 +12772,7 @@ ${n}}
|
|
|
12771
12772
|
}
|
|
12772
12773
|
// shared keydown handler to cancel current drag with ESC
|
|
12773
12774
|
onKeyDown(e) {
|
|
12774
|
-
e.key ===
|
|
12775
|
+
e.key === x.ESCAPE && this.cancelDrag();
|
|
12775
12776
|
}
|
|
12776
12777
|
}, jc = (e) => {
|
|
12777
12778
|
gl(e.handlers);
|
|
@@ -12982,13 +12983,13 @@ ${n}}
|
|
|
12982
12983
|
}
|
|
12983
12984
|
}, vy = class extends Cy {
|
|
12984
12985
|
createEvent(e) {
|
|
12985
|
-
return
|
|
12986
|
+
return ee(this.gos, e);
|
|
12986
12987
|
}
|
|
12987
12988
|
createDragImageComp(e) {
|
|
12988
12989
|
const { gos: t, beans: s } = this;
|
|
12989
12990
|
return z0(
|
|
12990
12991
|
s.userCompFactory,
|
|
12991
|
-
|
|
12992
|
+
ee(t, {
|
|
12992
12993
|
dragSource: e
|
|
12993
12994
|
})
|
|
12994
12995
|
)?.newAgStackInstance();
|
|
@@ -13495,7 +13496,7 @@ var hi = class extends P {
|
|
|
13495
13496
|
}
|
|
13496
13497
|
};
|
|
13497
13498
|
function by(e, t, s) {
|
|
13498
|
-
return
|
|
13499
|
+
return ee(t, {
|
|
13499
13500
|
type: s,
|
|
13500
13501
|
node: e,
|
|
13501
13502
|
data: e.data,
|
|
@@ -13647,7 +13648,7 @@ var Ey = class extends De {
|
|
|
13647
13648
|
});
|
|
13648
13649
|
this.activateTabIndex([p]), h && (i = p);
|
|
13649
13650
|
const f = (C) => {
|
|
13650
|
-
C.key ===
|
|
13651
|
+
C.key === x.ENTER && (C.preventDefault(), u(C));
|
|
13651
13652
|
}, m = this.listeners;
|
|
13652
13653
|
p.addEventListener("click", u), m.push(() => p.removeEventListener("click", u)), p.addEventListener("keydown", f), m.push(() => p.removeEventListener("keydown", f)), n.append(p);
|
|
13653
13654
|
};
|
|
@@ -13809,7 +13810,7 @@ var Py = class extends De {
|
|
|
13809
13810
|
return;
|
|
13810
13811
|
const s = e, o = s?.key;
|
|
13811
13812
|
let i;
|
|
13812
|
-
(o ===
|
|
13813
|
+
(o === x.ENTER || o === x.SPACE) && (i = { keyboardEvent: s }), t(i), this.hidePopup = null;
|
|
13813
13814
|
}
|
|
13814
13815
|
afterAction(e, t) {
|
|
13815
13816
|
const { params: s, applyActive: o } = this, i = s?.closeOnApply;
|
|
@@ -13829,7 +13830,7 @@ var Py = class extends De {
|
|
|
13829
13830
|
}
|
|
13830
13831
|
}
|
|
13831
13832
|
handleKeyDown(e) {
|
|
13832
|
-
!e.defaultPrevented && e.key ===
|
|
13833
|
+
!e.defaultPrevented && e.key === x.ENTER && this.applyActive && (this.updateModel(this.column, "apply", { fromButtons: !0 }), this.afterAction("apply", e));
|
|
13833
13834
|
}
|
|
13834
13835
|
destroy() {
|
|
13835
13836
|
this.hidePopup = null, this.eButtons = this.destroyBean(this.eButtons);
|
|
@@ -13885,7 +13886,7 @@ var Py = class extends De {
|
|
|
13885
13886
|
);
|
|
13886
13887
|
this.comp = d, l = d.getGui();
|
|
13887
13888
|
} else
|
|
13888
|
-
l = a.getGui(),
|
|
13889
|
+
l = a.getGui(), _(l) || N(69, { guiFromFilter: l });
|
|
13889
13890
|
this.appendChild(l), e ? this.eventSvc.dispatchEvent({
|
|
13890
13891
|
type: "filterOpened",
|
|
13891
13892
|
column: t,
|
|
@@ -13976,12 +13977,12 @@ var ma = {
|
|
|
13976
13977
|
}, Ca = {
|
|
13977
13978
|
number: () => ({ comparator: Iy }),
|
|
13978
13979
|
boolean: ({ t: e }) => ({
|
|
13979
|
-
valueFormatter: (t) =>
|
|
13980
|
+
valueFormatter: (t) => _(t.value) ? e(String(t.value), t.value ? "True" : "False") : e("blanks", "(Blanks)")
|
|
13980
13981
|
}),
|
|
13981
13982
|
date: ({ formatValue: e, t }) => ({
|
|
13982
13983
|
valueFormatter: (s) => {
|
|
13983
13984
|
const o = e(s);
|
|
13984
|
-
return
|
|
13985
|
+
return _(o) ? o : t("blanks", "(Blanks)");
|
|
13985
13986
|
},
|
|
13986
13987
|
treeList: !0,
|
|
13987
13988
|
treeListFormatter: (s, o) => {
|
|
@@ -13998,7 +13999,7 @@ var ma = {
|
|
|
13998
13999
|
dateString: ({ formatValue: e, dataTypeDefinition: t, t: s }) => ({
|
|
13999
14000
|
valueFormatter: (o) => {
|
|
14000
14001
|
const i = e(o);
|
|
14001
|
-
return
|
|
14002
|
+
return _(i) ? i : s("blanks", "(Blanks)");
|
|
14002
14003
|
},
|
|
14003
14004
|
treeList: !0,
|
|
14004
14005
|
treeListPathGetter: (o) => Mi(t.dateParser(o ?? void 0), !1),
|
|
@@ -14021,7 +14022,7 @@ var ma = {
|
|
|
14021
14022
|
object: ({ formatValue: e, t }) => ({
|
|
14022
14023
|
valueFormatter: (s) => {
|
|
14023
14024
|
const o = e(s);
|
|
14024
|
-
return
|
|
14025
|
+
return _(o) ? o : t("blanks", "(Blanks)");
|
|
14025
14026
|
}
|
|
14026
14027
|
}),
|
|
14027
14028
|
text: () => {
|
|
@@ -14463,7 +14464,7 @@ var Gy = "ag-focus-managed", Lo = class extends P {
|
|
|
14463
14464
|
_s(t);
|
|
14464
14465
|
return;
|
|
14465
14466
|
}
|
|
14466
|
-
t.key ===
|
|
14467
|
+
t.key === x.TAB ? s.onTabKeyDown(t) : s.handleKeyDown && s.handleKeyDown(t);
|
|
14467
14468
|
}
|
|
14468
14469
|
});
|
|
14469
14470
|
}
|
|
@@ -14936,9 +14937,9 @@ var Zi = {
|
|
|
14936
14937
|
let u, h, g = 0;
|
|
14937
14938
|
this.invalidateVerticalScroll();
|
|
14938
14939
|
do {
|
|
14939
|
-
const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, v = r.getPixelOffset(), b = d.rowTop - v, S = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset,
|
|
14940
|
+
const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, v = r.getPixelOffset(), b = d.rowTop - v, S = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset, F = y.top + R, T = y.bottom + R, H = T - F, M = a.getScrollPositionForPixel(b), E = a.getScrollPositionForPixel(S - H), D = Math.min((M + E) / 2, b), B = F + p > b, J = T - f < S;
|
|
14940
14941
|
let I = null;
|
|
14941
|
-
t === "top" ? I = M - p : t === "bottom" ? I =
|
|
14942
|
+
t === "top" ? I = M - p : t === "bottom" ? I = E + f : t === "middle" ? I = D : B ? I = M - p : J && (E - M > H ? I = M - p : I = E + f), I !== null && (this.setVerticalScrollPosition(I), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
|
|
14942
14943
|
} while ((u || h) && g < 10);
|
|
14943
14944
|
if (this.animationFrameSvc?.flushAllFrames(), s < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
|
|
14944
14945
|
const p = this.getVScrollPosition().top;
|
|
@@ -15094,7 +15095,7 @@ function _y(e, t, s, o) {
|
|
|
15094
15095
|
}
|
|
15095
15096
|
function Fg(e, t, s, o, i) {
|
|
15096
15097
|
return i ? i(
|
|
15097
|
-
|
|
15098
|
+
ee(e, {
|
|
15098
15099
|
column: t,
|
|
15099
15100
|
node: s,
|
|
15100
15101
|
event: o
|
|
@@ -15123,7 +15124,7 @@ function va(e, t, s, o, i) {
|
|
|
15123
15124
|
const n = o ? o.getColDef().suppressKeyboardEvent : void 0;
|
|
15124
15125
|
if (!n)
|
|
15125
15126
|
return !1;
|
|
15126
|
-
const r =
|
|
15127
|
+
const r = ee(e, {
|
|
15127
15128
|
event: t,
|
|
15128
15129
|
editing: i,
|
|
15129
15130
|
column: o,
|
|
@@ -15154,22 +15155,22 @@ function Xy(e) {
|
|
|
15154
15155
|
let s;
|
|
15155
15156
|
switch (t) {
|
|
15156
15157
|
case jy:
|
|
15157
|
-
s =
|
|
15158
|
+
s = x.A;
|
|
15158
15159
|
break;
|
|
15159
15160
|
case Ky:
|
|
15160
|
-
s =
|
|
15161
|
+
s = x.C;
|
|
15161
15162
|
break;
|
|
15162
15163
|
case qy:
|
|
15163
|
-
s =
|
|
15164
|
+
s = x.V;
|
|
15164
15165
|
break;
|
|
15165
15166
|
case Yy:
|
|
15166
|
-
s =
|
|
15167
|
+
s = x.D;
|
|
15167
15168
|
break;
|
|
15168
15169
|
case Zy:
|
|
15169
|
-
s =
|
|
15170
|
+
s = x.Z;
|
|
15170
15171
|
break;
|
|
15171
15172
|
case Qy:
|
|
15172
|
-
s =
|
|
15173
|
+
s = x.Y;
|
|
15173
15174
|
break;
|
|
15174
15175
|
default:
|
|
15175
15176
|
s = e.code;
|
|
@@ -15227,21 +15228,21 @@ var Jy = class extends P {
|
|
|
15227
15228
|
const c = s.key;
|
|
15228
15229
|
if (t === "keydown")
|
|
15229
15230
|
switch (c) {
|
|
15230
|
-
case
|
|
15231
|
-
case
|
|
15232
|
-
case
|
|
15233
|
-
case
|
|
15231
|
+
case x.PAGE_HOME:
|
|
15232
|
+
case x.PAGE_END:
|
|
15233
|
+
case x.PAGE_UP:
|
|
15234
|
+
case x.PAGE_DOWN:
|
|
15234
15235
|
n?.handlePageScrollingKey(s, !0);
|
|
15235
15236
|
break;
|
|
15236
|
-
case
|
|
15237
|
-
case
|
|
15237
|
+
case x.LEFT:
|
|
15238
|
+
case x.RIGHT:
|
|
15238
15239
|
if (!this.gos.get("embedFullWidthRows"))
|
|
15239
15240
|
break;
|
|
15240
|
-
case
|
|
15241
|
-
case
|
|
15241
|
+
case x.UP:
|
|
15242
|
+
case x.DOWN:
|
|
15242
15243
|
e.onKeyboardNavigate(s);
|
|
15243
15244
|
break;
|
|
15244
|
-
case
|
|
15245
|
+
case x.TAB:
|
|
15245
15246
|
e.onTabKeyDown(s);
|
|
15246
15247
|
break;
|
|
15247
15248
|
}
|
|
@@ -15252,19 +15253,19 @@ var Jy = class extends P {
|
|
|
15252
15253
|
if (!e.ctrlKey && !e.metaKey || t || !li(this.beans, e))
|
|
15253
15254
|
return;
|
|
15254
15255
|
const s = Xy(e), { clipboardSvc: o, undoRedo: i } = this.beans;
|
|
15255
|
-
if (s ===
|
|
15256
|
+
if (s === x.A)
|
|
15256
15257
|
return this.onCtrlAndA(e);
|
|
15257
|
-
if (s ===
|
|
15258
|
+
if (s === x.C)
|
|
15258
15259
|
return this.onCtrlAndC(o, e);
|
|
15259
|
-
if (s ===
|
|
15260
|
+
if (s === x.D)
|
|
15260
15261
|
return this.onCtrlAndD(o, e);
|
|
15261
|
-
if (s ===
|
|
15262
|
+
if (s === x.V)
|
|
15262
15263
|
return this.onCtrlAndV(o, e);
|
|
15263
|
-
if (s ===
|
|
15264
|
+
if (s === x.X)
|
|
15264
15265
|
return this.onCtrlAndX(o, e);
|
|
15265
|
-
if (s ===
|
|
15266
|
+
if (s === x.Y)
|
|
15266
15267
|
return this.onCtrlAndY(i);
|
|
15267
|
-
if (s ===
|
|
15268
|
+
if (s === x.Z)
|
|
15268
15269
|
return this.onCtrlAndZ(i, e);
|
|
15269
15270
|
}
|
|
15270
15271
|
onCtrlAndA(e) {
|
|
@@ -16023,7 +16024,7 @@ function Ag(e, t, s) {
|
|
|
16023
16024
|
e.toggleCss(SR, s.isColAtEdge(t, "first")), e.toggleCss(yR, s.isColAtEdge(t, "last"));
|
|
16024
16025
|
}
|
|
16025
16026
|
function RR(e, t, s, o) {
|
|
16026
|
-
return
|
|
16027
|
+
return ee(t, {
|
|
16027
16028
|
// bad naming, as colDef here can be a group or a column,
|
|
16028
16029
|
// however most people won't appreciate the difference,
|
|
16029
16030
|
// so keeping it as colDef to avoid confusion.
|
|
@@ -16046,7 +16047,7 @@ function xR(e, t, s, o, i) {
|
|
|
16046
16047
|
function FR(e, t, s) {
|
|
16047
16048
|
t.addManagedElementListeners(s, {
|
|
16048
16049
|
keydown: (o) => {
|
|
16049
|
-
if (!o.defaultPrevented && o.key ===
|
|
16050
|
+
if (!o.defaultPrevented && o.key === x.TAB) {
|
|
16050
16051
|
const i = o.shiftKey;
|
|
16051
16052
|
Ys(e, s, !1, i) || Eo(e, i) && o.preventDefault();
|
|
16052
16053
|
}
|
|
@@ -16184,16 +16185,16 @@ var IR = class extends P {
|
|
|
16184
16185
|
let t = null;
|
|
16185
16186
|
const { headerNavigation: s } = this.beans;
|
|
16186
16187
|
switch (e.key) {
|
|
16187
|
-
case
|
|
16188
|
+
case x.LEFT:
|
|
16188
16189
|
t = "LEFT";
|
|
16189
|
-
case
|
|
16190
|
-
|
|
16190
|
+
case x.RIGHT: {
|
|
16191
|
+
_(t) || (t = "RIGHT"), s.navigateHorizontally(t, !1, e) && e.preventDefault();
|
|
16191
16192
|
break;
|
|
16192
16193
|
}
|
|
16193
|
-
case
|
|
16194
|
+
case x.UP:
|
|
16194
16195
|
t = "UP";
|
|
16195
|
-
case
|
|
16196
|
-
|
|
16196
|
+
case x.DOWN: {
|
|
16197
|
+
_(t) || (t = "DOWN"), s.navigateVertically(t, e) && e.preventDefault();
|
|
16197
16198
|
break;
|
|
16198
16199
|
}
|
|
16199
16200
|
default:
|
|
@@ -16227,7 +16228,7 @@ var IR = class extends P {
|
|
|
16227
16228
|
this.addManagedListeners(this.columnOrGroup, { leftChanged: e }), this.setLeftFirstTime(), this.addManagedEventListeners({ displayedColumnsWidthChanged: e }), this.addManagedPropertyListener("domLayout", e);
|
|
16228
16229
|
}
|
|
16229
16230
|
setLeftFirstTime() {
|
|
16230
|
-
const { gos: e, colAnimation: t } = this.beans, s = e.get("suppressColumnMoveAnimation"), o =
|
|
16231
|
+
const { gos: e, colAnimation: t } = this.beans, s = e.get("suppressColumnMoveAnimation"), o = _(this.columnOrGroup.getOldLeft());
|
|
16231
16232
|
t?.isActive() && o && !s ? this.animateInLeft() : this.onLeftChanged();
|
|
16232
16233
|
}
|
|
16233
16234
|
animateInLeft() {
|
|
@@ -16252,7 +16253,7 @@ var IR = class extends P {
|
|
|
16252
16253
|
return n + t;
|
|
16253
16254
|
}
|
|
16254
16255
|
setLeft(e) {
|
|
16255
|
-
if (
|
|
16256
|
+
if (_(e) && (this.eCell.style.left = `${e}px`), Me(this.columnOrGroup)) {
|
|
16256
16257
|
const t = this.columnOrGroup.getLeafColumns();
|
|
16257
16258
|
if (!t.length)
|
|
16258
16259
|
return;
|
|
@@ -16274,9 +16275,9 @@ var IR = class extends P {
|
|
|
16274
16275
|
}
|
|
16275
16276
|
shouldStopEventPropagation(e) {
|
|
16276
16277
|
const { headerRowIndex: t, column: s } = this.beans.focusSvc.focusedHeader, o = s.getDefinition(), i = o?.suppressHeaderKeyboardEvent;
|
|
16277
|
-
if (!
|
|
16278
|
+
if (!_(i))
|
|
16278
16279
|
return !1;
|
|
16279
|
-
const n =
|
|
16280
|
+
const n = ee(this.gos, {
|
|
16280
16281
|
colDef: o,
|
|
16281
16282
|
column: s,
|
|
16282
16283
|
headerRowIndex: t,
|
|
@@ -16357,12 +16358,12 @@ var IR = class extends P {
|
|
|
16357
16358
|
this.eGui && at(this.eGui, "tabindex", e ? null : "-1");
|
|
16358
16359
|
}
|
|
16359
16360
|
onGuiKeyDown(e) {
|
|
16360
|
-
const t = Ee(this.beans), s = e.key ===
|
|
16361
|
+
const t = Ee(this.beans), s = e.key === x.LEFT || e.key === x.RIGHT;
|
|
16361
16362
|
if (this.isResizing && (e.preventDefault(), e.stopImmediatePropagation()), // if elements within the header are focused, we don't process the event
|
|
16362
16363
|
t !== this.eGui || // if shiftKey and altKey are not pressed, it's cell navigation so we don't process the event
|
|
16363
16364
|
!e.shiftKey && !e.altKey || ((this.isResizing || s) && (e.preventDefault(), e.stopImmediatePropagation()), !s))
|
|
16364
16365
|
return;
|
|
16365
|
-
const i = e.key ===
|
|
16366
|
+
const i = e.key === x.LEFT !== this.gos.get("enableRtl") ? "left" : "right";
|
|
16366
16367
|
if (e.altKey) {
|
|
16367
16368
|
this.isResizing = !0, this.resizeMultiplier += 1;
|
|
16368
16369
|
const n = this.getViewportAdjustedResizeDiff(e);
|
|
@@ -16379,7 +16380,7 @@ var IR = class extends P {
|
|
|
16379
16380
|
}
|
|
16380
16381
|
getResizeDiff(e) {
|
|
16381
16382
|
const { gos: t, column: s } = this;
|
|
16382
|
-
let o = e.key ===
|
|
16383
|
+
let o = e.key === x.LEFT !== t.get("enableRtl");
|
|
16383
16384
|
const i = s.getPinned(), n = t.get("enableRtl");
|
|
16384
16385
|
return i && n !== (i === "right") && (o = !o), (o ? -1 : 1) * this.resizeMultiplier;
|
|
16385
16386
|
}
|
|
@@ -16391,10 +16392,10 @@ var IR = class extends P {
|
|
|
16391
16392
|
handleKeyDown(e) {
|
|
16392
16393
|
const t = this.getWrapperHasFocus();
|
|
16393
16394
|
switch (e.key) {
|
|
16394
|
-
case
|
|
16395
|
-
case
|
|
16396
|
-
case
|
|
16397
|
-
case
|
|
16395
|
+
case x.PAGE_DOWN:
|
|
16396
|
+
case x.PAGE_UP:
|
|
16397
|
+
case x.PAGE_HOME:
|
|
16398
|
+
case x.PAGE_END:
|
|
16398
16399
|
t && e.preventDefault();
|
|
16399
16400
|
}
|
|
16400
16401
|
}
|
|
@@ -16485,7 +16486,7 @@ var IR = class extends P {
|
|
|
16485
16486
|
}
|
|
16486
16487
|
getHeaderClassParams() {
|
|
16487
16488
|
const { column: e, beans: t } = this, s = e.colDef;
|
|
16488
|
-
return
|
|
16489
|
+
return ee(t.gos, {
|
|
16489
16490
|
colDef: s,
|
|
16490
16491
|
column: e,
|
|
16491
16492
|
floatingFilter: !1
|
|
@@ -16504,7 +16505,7 @@ var IR = class extends P {
|
|
|
16504
16505
|
}
|
|
16505
16506
|
createParams() {
|
|
16506
16507
|
const { menuSvc: e, sortSvc: t, colFilter: s, gos: o } = this.beans;
|
|
16507
|
-
return
|
|
16508
|
+
return ee(o, {
|
|
16508
16509
|
column: this.column,
|
|
16509
16510
|
displayName: this.displayName,
|
|
16510
16511
|
enableSorting: this.column.isSortable(),
|
|
@@ -16558,7 +16559,7 @@ var IR = class extends P {
|
|
|
16558
16559
|
return this.selectAllFeature?.getCheckboxGui();
|
|
16559
16560
|
}
|
|
16560
16561
|
handleKeyDown(e) {
|
|
16561
|
-
super.handleKeyDown(e), e.key ===
|
|
16562
|
+
super.handleKeyDown(e), e.key === x.SPACE && this.selectAllFeature?.onSpaceKeyDown(e), e.key === x.ENTER && this.onEnterKeyDown(e), e.key === x.DOWN && e.altKey && this.showMenuOnKeyPress(e, !1);
|
|
16562
16563
|
}
|
|
16563
16564
|
onEnterKeyDown(e) {
|
|
16564
16565
|
e.ctrlKey || e.metaKey ? this.showMenuOnKeyPress(e, !0) : this.sortable && this.beans.sortSvc?.progressSort(this.column, e.shiftKey, "uiColumnSorted");
|
|
@@ -17303,7 +17304,7 @@ var WR = (
|
|
|
17303
17304
|
}
|
|
17304
17305
|
}), this.addManagedElementListeners(e.eGridCell, {
|
|
17305
17306
|
keydown: (i) => {
|
|
17306
|
-
if (i.key ===
|
|
17307
|
+
if (i.key === x.SPACE && !t.isDisabled()) {
|
|
17307
17308
|
e.eGridCell === Ee(s) && t.toggle();
|
|
17308
17309
|
const n = t.getValue();
|
|
17309
17310
|
this.onCheckboxChanged(n), i.preventDefault();
|
|
@@ -18200,7 +18201,7 @@ function Vg({ gos: e, selectionColSvc: t }, s) {
|
|
|
18200
18201
|
if (typeof o == "object") {
|
|
18201
18202
|
const l = ts(s), c = wl(s);
|
|
18202
18203
|
(vn(o) === "autoGroupColumn" && c || l && t?.isSelectionColumnEnabled()) && (r = ji(o));
|
|
18203
|
-
} else typeof n == "function" ? r = n(
|
|
18204
|
+
} else typeof n == "function" ? r = n(ee(e, { column: s, colDef: i })) : r = !!n;
|
|
18204
18205
|
return r;
|
|
18205
18206
|
}
|
|
18206
18207
|
var r2 = class extends P {
|
|
@@ -19401,7 +19402,7 @@ var E2 = { tag: "div", cls: "ag-drag-handle ag-row-drag", attrs: { draggable: "t
|
|
|
19401
19402
|
onDragStart(e) {
|
|
19402
19403
|
const { rowNode: t, column: s, eCell: o, gos: i } = this, n = s.getColDef().dndSourceOnRowDrag, r = e.dataTransfer;
|
|
19403
19404
|
if (r.setDragImage(o, 0, 0), n) {
|
|
19404
|
-
const a =
|
|
19405
|
+
const a = ee(i, {
|
|
19405
19406
|
rowNode: t,
|
|
19406
19407
|
dragEvent: e
|
|
19407
19408
|
});
|
|
@@ -19614,7 +19615,7 @@ function G2(e, t) {
|
|
|
19614
19615
|
return !1;
|
|
19615
19616
|
break;
|
|
19616
19617
|
default:
|
|
19617
|
-
if (
|
|
19618
|
+
if (_(t.rowPinned))
|
|
19618
19619
|
return t.rowPinned !== "top";
|
|
19619
19620
|
break;
|
|
19620
19621
|
}
|
|
@@ -20266,11 +20267,11 @@ var gi = class {
|
|
|
20266
20267
|
}
|
|
20267
20268
|
}, jg = {
|
|
20268
20269
|
moduleName: "Drag",
|
|
20269
|
-
version:
|
|
20270
|
+
version: W,
|
|
20270
20271
|
beans: [A2]
|
|
20271
20272
|
}, X2 = {
|
|
20272
20273
|
moduleName: "DragAndDrop",
|
|
20273
|
-
version:
|
|
20274
|
+
version: W,
|
|
20274
20275
|
dynamicBeans: {
|
|
20275
20276
|
dndSourceComp: D2
|
|
20276
20277
|
},
|
|
@@ -20280,7 +20281,7 @@ var gi = class {
|
|
|
20280
20281
|
}
|
|
20281
20282
|
}, Kg = {
|
|
20282
20283
|
moduleName: "SharedDragAndDrop",
|
|
20283
|
-
version:
|
|
20284
|
+
version: W,
|
|
20284
20285
|
beans: [vy],
|
|
20285
20286
|
dependsOn: [jg],
|
|
20286
20287
|
userComponents: {
|
|
@@ -20311,7 +20312,7 @@ var gi = class {
|
|
|
20311
20312
|
}
|
|
20312
20313
|
}, J2 = {
|
|
20313
20314
|
moduleName: "RowDrag",
|
|
20314
|
-
version:
|
|
20315
|
+
version: W,
|
|
20315
20316
|
beans: [Q2, Z2],
|
|
20316
20317
|
apiFunctions: {
|
|
20317
20318
|
addRowDropZone: P2,
|
|
@@ -20323,7 +20324,7 @@ var gi = class {
|
|
|
20323
20324
|
dependsOn: [Kg]
|
|
20324
20325
|
}, ex = {
|
|
20325
20326
|
moduleName: "HorizontalResize",
|
|
20326
|
-
version:
|
|
20327
|
+
version: W,
|
|
20327
20328
|
beans: [L2],
|
|
20328
20329
|
dependsOn: [jg]
|
|
20329
20330
|
}, tx = (
|
|
@@ -20594,7 +20595,7 @@ function Pr(e, t) {
|
|
|
20594
20595
|
}
|
|
20595
20596
|
var fd = 7, Ra = 100, Vi = Ra / 2, gx = 5, px = 100, fx = class extends P {
|
|
20596
20597
|
constructor(e) {
|
|
20597
|
-
super(), this.pinned = e, this.needToMoveLeft = !1, this.needToMoveRight = !1, this.lastMovedInfo = null, this.isCenterContainer = !
|
|
20598
|
+
super(), this.pinned = e, this.needToMoveLeft = !1, this.needToMoveRight = !1, this.lastMovedInfo = null, this.isCenterContainer = !_(e);
|
|
20598
20599
|
}
|
|
20599
20600
|
postConstruct() {
|
|
20600
20601
|
this.beans.ctrlsSvc.whenReady(this, (e) => {
|
|
@@ -21154,7 +21155,7 @@ function Sx(e, t) {
|
|
|
21154
21155
|
}
|
|
21155
21156
|
var yx = {
|
|
21156
21157
|
moduleName: "ColumnMove",
|
|
21157
|
-
version:
|
|
21158
|
+
version: W,
|
|
21158
21159
|
beans: [vx, sx],
|
|
21159
21160
|
apiFunctions: {
|
|
21160
21161
|
moveColumnByIndex: ox,
|
|
@@ -21224,7 +21225,7 @@ var yx = {
|
|
|
21224
21225
|
}
|
|
21225
21226
|
}, Zg = {
|
|
21226
21227
|
moduleName: "AutoWidth",
|
|
21227
|
-
version:
|
|
21228
|
+
version: W,
|
|
21228
21229
|
beans: [Rx]
|
|
21229
21230
|
};
|
|
21230
21231
|
function xx(e, t, s = !0, o = "api") {
|
|
@@ -21451,22 +21452,22 @@ var Fx = class extends P {
|
|
|
21451
21452
|
m = !1;
|
|
21452
21453
|
const v = [];
|
|
21453
21454
|
let b = 0, S = u;
|
|
21454
|
-
h.forEach((R,
|
|
21455
|
+
h.forEach((R, F) => {
|
|
21455
21456
|
if (f[R.getId()])
|
|
21456
21457
|
S -= p[R.getId()];
|
|
21457
21458
|
else {
|
|
21458
21459
|
v.push(R);
|
|
21459
|
-
const H = g[
|
|
21460
|
+
const H = g[F];
|
|
21460
21461
|
b += H;
|
|
21461
21462
|
}
|
|
21462
21463
|
});
|
|
21463
21464
|
const y = 1 / b;
|
|
21464
|
-
v.forEach((R,
|
|
21465
|
-
const T =
|
|
21465
|
+
v.forEach((R, F) => {
|
|
21466
|
+
const T = F === v.length - 1;
|
|
21466
21467
|
let H;
|
|
21467
|
-
T ? H = S : (H = Math.round(g[
|
|
21468
|
-
const M = R.getMinWidth(),
|
|
21469
|
-
H < M ? (H = M, f[R.getId()] = !0, m = !0) :
|
|
21468
|
+
T ? H = S : (H = Math.round(g[F] * u * y), S -= H);
|
|
21469
|
+
const M = R.getMinWidth(), E = R.getMaxWidth();
|
|
21470
|
+
H < M ? (H = M, f[R.getId()] = !0, m = !0) : E > 0 && H > E && (H = E, f[R.getId()] = !0, m = !0), p[R.getId()] = H;
|
|
21470
21471
|
});
|
|
21471
21472
|
}
|
|
21472
21473
|
for (const v of h) {
|
|
@@ -21513,7 +21514,7 @@ function Px(e) {
|
|
|
21513
21514
|
}
|
|
21514
21515
|
var Tx = {
|
|
21515
21516
|
moduleName: "ColumnResize",
|
|
21516
|
-
version:
|
|
21517
|
+
version: W,
|
|
21517
21518
|
beans: [Dx],
|
|
21518
21519
|
apiFunctions: {
|
|
21519
21520
|
setColumnWidths: xx
|
|
@@ -21575,7 +21576,7 @@ var Tx = {
|
|
|
21575
21576
|
}
|
|
21576
21577
|
getHeaderClassParams() {
|
|
21577
21578
|
const { column: e, beans: t } = this, s = e.getDefinition();
|
|
21578
|
-
return
|
|
21579
|
+
return ee(t.gos, {
|
|
21579
21580
|
colDef: s,
|
|
21580
21581
|
columnGroup: e,
|
|
21581
21582
|
floatingFilter: !1
|
|
@@ -21615,7 +21616,7 @@ var Tx = {
|
|
|
21615
21616
|
this.resizeFeature?.resizeLeafColumnsToFit(e);
|
|
21616
21617
|
}
|
|
21617
21618
|
setupUserComp() {
|
|
21618
|
-
const { colGroupSvc: e, userCompFactory: t, gos: s, enterpriseMenuFactory: o } = this.beans, i = this.column, n = i.getProvidedColumnGroup(), r =
|
|
21619
|
+
const { colGroupSvc: e, userCompFactory: t, gos: s, enterpriseMenuFactory: o } = this.beans, i = this.column, n = i.getProvidedColumnGroup(), r = ee(s, {
|
|
21619
21620
|
displayName: this.displayName,
|
|
21620
21621
|
columnGroup: i,
|
|
21621
21622
|
setExpanded: (l) => {
|
|
@@ -21696,7 +21697,7 @@ var Tx = {
|
|
|
21696
21697
|
handleKeyDown(e) {
|
|
21697
21698
|
super.handleKeyDown(e);
|
|
21698
21699
|
const t = this.getWrapperHasFocus();
|
|
21699
|
-
if (!(!this.expandable || !t) && e.key ===
|
|
21700
|
+
if (!(!this.expandable || !t) && e.key === x.ENTER) {
|
|
21700
21701
|
const s = this.column, o = !s.isExpanded();
|
|
21701
21702
|
this.beans.colGroupSvc.setColumnGroupOpened(
|
|
21702
21703
|
s.getProvidedColumnGroup(),
|
|
@@ -22222,7 +22223,7 @@ var $x = class extends P {
|
|
|
22222
22223
|
createColumnGroup(e, t, s, o, i) {
|
|
22223
22224
|
const n = e.getGroupId(), r = t.getInstanceIdForKey(n), a = Cg(n, r);
|
|
22224
22225
|
let l = s[a];
|
|
22225
|
-
return l && l.getProvidedColumnGroup() !== e && (l = null),
|
|
22226
|
+
return l && l.getProvidedColumnGroup() !== e && (l = null), _(l) ? l.reset() : (l = new hi(e, n, r, o), i || this.createBean(l)), l;
|
|
22226
22227
|
}
|
|
22227
22228
|
// returns back a 2d map of ColumnGroup as follows: groupId -> instanceId -> ColumnGroup
|
|
22228
22229
|
mapOldGroupsById(e) {
|
|
@@ -22244,7 +22245,7 @@ var $x = class extends P {
|
|
|
22244
22245
|
}
|
|
22245
22246
|
}, jx = {
|
|
22246
22247
|
moduleName: "ColumnGroup",
|
|
22247
|
-
version:
|
|
22248
|
+
version: W,
|
|
22248
22249
|
dynamicBeans: { headerGroupCellCtrl: Ix },
|
|
22249
22250
|
beans: [$x],
|
|
22250
22251
|
apiFunctions: {
|
|
@@ -22292,13 +22293,13 @@ var $x = class extends P {
|
|
|
22292
22293
|
}
|
|
22293
22294
|
}, Yx = {
|
|
22294
22295
|
moduleName: "CheckboxCellRenderer",
|
|
22295
|
-
version:
|
|
22296
|
+
version: W,
|
|
22296
22297
|
userComponents: {
|
|
22297
22298
|
agCheckboxCellRenderer: KR
|
|
22298
22299
|
}
|
|
22299
22300
|
}, Zx = {
|
|
22300
22301
|
moduleName: "SkeletonCellRenderer",
|
|
22301
|
-
version:
|
|
22302
|
+
version: W,
|
|
22302
22303
|
userComponents: {
|
|
22303
22304
|
agSkeletonCellRenderer: qx
|
|
22304
22305
|
}
|
|
@@ -22471,16 +22472,16 @@ var vF = class extends P {
|
|
|
22471
22472
|
if (g(y))
|
|
22472
22473
|
continue;
|
|
22473
22474
|
m = y, v += f * (y.flex / d);
|
|
22474
|
-
const R = v - C,
|
|
22475
|
-
y.targetSize =
|
|
22475
|
+
const R = v - C, F = Math.round(R);
|
|
22476
|
+
y.targetSize = F, C += F;
|
|
22476
22477
|
}
|
|
22477
22478
|
m && (m.targetSize += f - C);
|
|
22478
22479
|
let b = 0;
|
|
22479
22480
|
for (const y of l) {
|
|
22480
22481
|
if (g(y))
|
|
22481
22482
|
continue;
|
|
22482
|
-
const R = y.targetSize,
|
|
22483
|
-
b +=
|
|
22483
|
+
const R = y.targetSize, F = Math.min(Math.max(R, y.min), y.max);
|
|
22484
|
+
b += F - R, y.violationType = F === R ? void 0 : F < R ? "max" : "min", y.targetSize = F;
|
|
22484
22485
|
}
|
|
22485
22486
|
const S = b === 0 ? "all" : b > 0 ? "min" : "max";
|
|
22486
22487
|
for (const y of l)
|
|
@@ -22539,7 +22540,7 @@ var bF = [
|
|
|
22539
22540
|
cellEditor: "agCheckboxCellEditor",
|
|
22540
22541
|
cellRenderer: "agCheckboxCellRenderer",
|
|
22541
22542
|
getFindText: () => null,
|
|
22542
|
-
suppressKeyboardEvent: (e) => !!e.colDef.editable && e.event.key ===
|
|
22543
|
+
suppressKeyboardEvent: (e) => !!e.colDef.editable && e.event.key === x.SPACE
|
|
22543
22544
|
};
|
|
22544
22545
|
},
|
|
22545
22546
|
date({ formatValue: e }) {
|
|
@@ -22966,16 +22967,16 @@ function RF(e, t) {
|
|
|
22966
22967
|
}
|
|
22967
22968
|
var xF = {
|
|
22968
22969
|
moduleName: "DataType",
|
|
22969
|
-
version:
|
|
22970
|
+
version: W,
|
|
22970
22971
|
beans: [SF],
|
|
22971
22972
|
dependsOn: [Yx]
|
|
22972
22973
|
}, FF = {
|
|
22973
22974
|
moduleName: "ColumnFlex",
|
|
22974
|
-
version:
|
|
22975
|
+
version: W,
|
|
22975
22976
|
beans: [wF]
|
|
22976
22977
|
}, Qg = {
|
|
22977
22978
|
moduleName: "ColumnApi",
|
|
22978
|
-
version:
|
|
22979
|
+
version: W,
|
|
22979
22980
|
beans: [vF],
|
|
22980
22981
|
apiFunctions: {
|
|
22981
22982
|
getColumnDef: Qx,
|
|
@@ -23028,7 +23029,7 @@ var DF = class extends P {
|
|
|
23028
23029
|
getHeaderName(e, t, s, o, i) {
|
|
23029
23030
|
const n = e.headerValueGetter;
|
|
23030
23031
|
if (n) {
|
|
23031
|
-
const r =
|
|
23032
|
+
const r = ee(this.gos, {
|
|
23032
23033
|
colDef: e,
|
|
23033
23034
|
column: t,
|
|
23034
23035
|
columnGroup: s,
|
|
@@ -23129,7 +23130,7 @@ var DF = class extends P {
|
|
|
23129
23130
|
return this.colsWithinViewport;
|
|
23130
23131
|
const t = (n) => {
|
|
23131
23132
|
const r = n.getLeft();
|
|
23132
|
-
return
|
|
23133
|
+
return _(r) && r > this.viewportLeft;
|
|
23133
23134
|
}, s = this.isColumnVirtualisationSuppressed() ? void 0 : this.isColumnInRowViewport.bind(this), { visibleCols: o } = this, i = o.centerCols;
|
|
23134
23135
|
return o.getColsForRow(e, i, s, t);
|
|
23135
23136
|
}
|
|
@@ -23209,7 +23210,7 @@ var MF = class extends P {
|
|
|
23209
23210
|
}
|
|
23210
23211
|
}, IF = {
|
|
23211
23212
|
moduleName: "CellRendererFunction",
|
|
23212
|
-
version:
|
|
23213
|
+
version: W,
|
|
23213
23214
|
beans: [MF]
|
|
23214
23215
|
}, kF = class extends iy {
|
|
23215
23216
|
constructor() {
|
|
@@ -24667,7 +24668,7 @@ var I3 = class extends P {
|
|
|
24667
24668
|
if (n.isSuppressNavigable(l)) {
|
|
24668
24669
|
const c = this.gos.get("enableRtl");
|
|
24669
24670
|
let d;
|
|
24670
|
-
return !o || o.key ===
|
|
24671
|
+
return !o || o.key === x.TAB ? d = c ? x.LEFT : x.RIGHT : d = o.key, this.beans.navigation?.navigateToNextCell(
|
|
24671
24672
|
null,
|
|
24672
24673
|
d,
|
|
24673
24674
|
{ rowIndex: r, column: n, rowPinned: a || null },
|
|
@@ -26353,7 +26354,7 @@ var X3 = {
|
|
|
26353
26354
|
* @param property GridOption property
|
|
26354
26355
|
*/
|
|
26355
26356
|
exists(e) {
|
|
26356
|
-
return
|
|
26357
|
+
return _(this.gridOptions[e]);
|
|
26357
26358
|
}
|
|
26358
26359
|
/**
|
|
26359
26360
|
* Wrap the user callback and attach the api and context to the params object on the way through.
|
|
@@ -26443,7 +26444,7 @@ var X3 = {
|
|
|
26443
26444
|
let t = e;
|
|
26444
26445
|
for (; t; ) {
|
|
26445
26446
|
const s = t[Fd];
|
|
26446
|
-
if (
|
|
26447
|
+
if (_(s))
|
|
26447
26448
|
return s === this.instanceId;
|
|
26448
26449
|
t = t.parentElement;
|
|
26449
26450
|
}
|
|
@@ -26699,14 +26700,14 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26699
26700
|
}
|
|
26700
26701
|
setupLabel(e) {
|
|
26701
26702
|
const { displayName: t, columnGroup: s } = e, o = this.innerHeaderGroupComponent || this.isLoadingInnerComponent;
|
|
26702
|
-
|
|
26703
|
+
_(t) && !o && (this.agLabel.textContent = ko(t)), this.toggleCss("ag-sticky-label", !s.getColGroupDef()?.suppressStickyLabel);
|
|
26703
26704
|
}
|
|
26704
26705
|
destroy() {
|
|
26705
26706
|
super.destroy(), this.innerHeaderGroupComponent && (this.destroyBean(this.innerHeaderGroupComponent), this.innerHeaderGroupComponent = void 0);
|
|
26706
26707
|
}
|
|
26707
26708
|
}, dE = {
|
|
26708
26709
|
moduleName: "ColumnHeaderComp",
|
|
26709
|
-
version:
|
|
26710
|
+
version: W,
|
|
26710
26711
|
userComponents: {
|
|
26711
26712
|
agColumnHeader: aE
|
|
26712
26713
|
},
|
|
@@ -26718,7 +26719,7 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26718
26719
|
}
|
|
26719
26720
|
}, uE = {
|
|
26720
26721
|
moduleName: "ColumnGroupHeaderComp",
|
|
26721
|
-
version:
|
|
26722
|
+
version: W,
|
|
26722
26723
|
userComponents: {
|
|
26723
26724
|
agColumnGroupHeader: cE
|
|
26724
26725
|
},
|
|
@@ -26811,7 +26812,7 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26811
26812
|
}
|
|
26812
26813
|
}, gE = {
|
|
26813
26814
|
moduleName: "AnimationFrame",
|
|
26814
|
-
version:
|
|
26815
|
+
version: W,
|
|
26815
26816
|
beans: [hE]
|
|
26816
26817
|
}, pE = class extends P {
|
|
26817
26818
|
constructor() {
|
|
@@ -26853,7 +26854,7 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26853
26854
|
return;
|
|
26854
26855
|
const { params: i, eMenu: n, eFilterButton: r } = e, a = new Fs(e.getGui(), !0);
|
|
26855
26856
|
e.addDestroyFunc(() => a.destroy());
|
|
26856
|
-
const l = e.shouldSuppressMenuHide(), c = l &&
|
|
26857
|
+
const l = e.shouldSuppressMenuHide(), c = l && _(n) && i.enableMenu;
|
|
26857
26858
|
let d = a;
|
|
26858
26859
|
if (c && (d = new Fs(n, !0), e.addDestroyFunc(() => d.destroy())), i.enableMenu || o?.isHeaderContextMenuEnabled(i.column)) {
|
|
26859
26860
|
const u = c ? "tap" : "longTap", h = (g) => i.showColumnMenuAfterMouseClick(g.touchStart);
|
|
@@ -26896,7 +26897,7 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26896
26897
|
}
|
|
26897
26898
|
}, mE = {
|
|
26898
26899
|
moduleName: "Touch",
|
|
26899
|
-
version:
|
|
26900
|
+
version: W,
|
|
26900
26901
|
beans: [fE]
|
|
26901
26902
|
}, CE = class extends P {
|
|
26902
26903
|
constructor() {
|
|
@@ -26910,7 +26911,7 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26910
26911
|
return s ? this.getNextCellToFocusWithCtrlPressed(e, t) : this.getNextCellToFocusWithoutCtrlPressed(e, t);
|
|
26911
26912
|
}
|
|
26912
26913
|
getNextCellToFocusWithCtrlPressed(e, t) {
|
|
26913
|
-
const s = e ===
|
|
26914
|
+
const s = e === x.UP, o = e === x.DOWN, i = e === x.LEFT;
|
|
26914
26915
|
let n, r;
|
|
26915
26916
|
const { pageBounds: a, gos: l, visibleCols: c, pinnedRowModel: d } = this.beans, { rowPinned: u } = t;
|
|
26916
26917
|
if (s || o)
|
|
@@ -26935,16 +26936,16 @@ var nE = gp(!0), rE = gp(!1), aE = class extends De {
|
|
|
26935
26936
|
let s = t, o = !1;
|
|
26936
26937
|
for (; !o; ) {
|
|
26937
26938
|
switch (e) {
|
|
26938
|
-
case
|
|
26939
|
+
case x.UP:
|
|
26939
26940
|
s = this.getCellAbove(s);
|
|
26940
26941
|
break;
|
|
26941
|
-
case
|
|
26942
|
+
case x.DOWN:
|
|
26942
26943
|
s = this.getCellBelow(s);
|
|
26943
26944
|
break;
|
|
26944
|
-
case
|
|
26945
|
+
case x.RIGHT:
|
|
26945
26946
|
s = this.gos.get("enableRtl") ? this.getCellToLeft(s) : this.getCellToRight(s);
|
|
26946
26947
|
break;
|
|
26947
|
-
case
|
|
26948
|
+
case x.LEFT:
|
|
26948
26949
|
s = this.gos.get("enableRtl") ? this.getCellToRight(s) : this.getCellToLeft(s);
|
|
26949
26950
|
break;
|
|
26950
26951
|
default:
|
|
@@ -27425,7 +27426,7 @@ function Cp(e, t, s) {
|
|
|
27425
27426
|
}
|
|
27426
27427
|
function vp(e, t, s, o) {
|
|
27427
27428
|
const { valueSvc: i, gos: n, editSvc: r } = e, a = e.gos.get("enableGroupEdit"), l = ye(e, t), c = t.rowNode?.rowIndex ?? void 0, d = r?.isBatchEditing(), u = e.colModel.getCol(t.column.getId()), { rowNode: h, column: g } = t, p = l.comp?.getCellEditor(), f = r?.getCellDataValue(t, !1) ?? (p ? Cp(e, p)?.editorValue : void 0), m = f === bt ? i.getValueForDisplay(u, h)?.value : f;
|
|
27428
|
-
return
|
|
27429
|
+
return ee(n, {
|
|
27429
27430
|
value: a ? f : m,
|
|
27430
27431
|
eventKey: s ?? null,
|
|
27431
27432
|
column: g,
|
|
@@ -27645,7 +27646,7 @@ function IE(e) {
|
|
|
27645
27646
|
}), s;
|
|
27646
27647
|
}
|
|
27647
27648
|
function kE(e, t, s, { rowNode: o, column: i }, n) {
|
|
27648
|
-
return
|
|
27649
|
+
return ee(e.gos, {
|
|
27649
27650
|
type: s,
|
|
27650
27651
|
node: o,
|
|
27651
27652
|
data: o.data,
|
|
@@ -27658,7 +27659,7 @@ function kE(e, t, s, { rowNode: o, column: i }, n) {
|
|
|
27658
27659
|
});
|
|
27659
27660
|
}
|
|
27660
27661
|
function AE(e, t = !1) {
|
|
27661
|
-
return e ===
|
|
27662
|
+
return e === x.DELETE ? !0 : !t && e === x.BACKSPACE ? Jh() : !1;
|
|
27662
27663
|
}
|
|
27663
27664
|
var LE = class extends P {
|
|
27664
27665
|
constructor(e, t, s, o) {
|
|
@@ -27670,26 +27671,26 @@ var LE = class extends P {
|
|
|
27670
27671
|
onKeyDown(e) {
|
|
27671
27672
|
const t = e.key;
|
|
27672
27673
|
switch (t) {
|
|
27673
|
-
case
|
|
27674
|
+
case x.ENTER:
|
|
27674
27675
|
this.onEnterKeyDown(e);
|
|
27675
27676
|
break;
|
|
27676
|
-
case
|
|
27677
|
+
case x.F2:
|
|
27677
27678
|
this.onF2KeyDown(e);
|
|
27678
27679
|
break;
|
|
27679
|
-
case
|
|
27680
|
+
case x.ESCAPE:
|
|
27680
27681
|
this.onEscapeKeyDown(e);
|
|
27681
27682
|
break;
|
|
27682
|
-
case
|
|
27683
|
+
case x.TAB:
|
|
27683
27684
|
this.onTabKeyDown(e);
|
|
27684
27685
|
break;
|
|
27685
|
-
case
|
|
27686
|
-
case
|
|
27686
|
+
case x.BACKSPACE:
|
|
27687
|
+
case x.DELETE:
|
|
27687
27688
|
this.onBackspaceOrDeleteKeyDown(t, e);
|
|
27688
27689
|
break;
|
|
27689
|
-
case
|
|
27690
|
-
case
|
|
27691
|
-
case
|
|
27692
|
-
case
|
|
27690
|
+
case x.DOWN:
|
|
27691
|
+
case x.UP:
|
|
27692
|
+
case x.RIGHT:
|
|
27693
|
+
case x.LEFT:
|
|
27693
27694
|
this.onNavigationKeyDown(e, t);
|
|
27694
27695
|
break;
|
|
27695
27696
|
}
|
|
@@ -27711,7 +27712,7 @@ var LE = class extends P {
|
|
|
27711
27712
|
if (!t)
|
|
27712
27713
|
return;
|
|
27713
27714
|
const o = t.extendLatestRangeInDirection(e);
|
|
27714
|
-
o && (e.key ===
|
|
27715
|
+
o && (e.key === x.LEFT || e.key === x.RIGHT ? s?.ensureColumnVisible(o.column) : s?.ensureRowVisible(o.rowIndex));
|
|
27715
27716
|
}
|
|
27716
27717
|
onTabKeyDown(e) {
|
|
27717
27718
|
this.beans.navigation?.onTabKeyDown(this.cellCtrl, e);
|
|
@@ -27748,7 +27749,7 @@ var LE = class extends P {
|
|
|
27748
27749
|
source: "edit"
|
|
27749
27750
|
}) : a && !t.isCellEditable() ? o?.stopEditing({ rowNode: r }, { event: e, source: "edit" }) : l(t);
|
|
27750
27751
|
} else if (s.gos.get("enterNavigatesVertically")) {
|
|
27751
|
-
const c = e.shiftKey ?
|
|
27752
|
+
const c = e.shiftKey ? x.UP : x.DOWN;
|
|
27752
27753
|
i?.navigateToNextCell(null, c, t.cellPosition, !1);
|
|
27753
27754
|
} else {
|
|
27754
27755
|
if (o?.hasValidationErrors())
|
|
@@ -27757,7 +27758,7 @@ var LE = class extends P {
|
|
|
27757
27758
|
}
|
|
27758
27759
|
}
|
|
27759
27760
|
isCtrlEnter(e) {
|
|
27760
|
-
return (e.ctrlKey || e.metaKey) && e.key ===
|
|
27761
|
+
return (e.ctrlKey || e.metaKey) && e.key === x.ENTER;
|
|
27761
27762
|
}
|
|
27762
27763
|
onF2KeyDown(e) {
|
|
27763
27764
|
const {
|
|
@@ -27783,7 +27784,7 @@ var LE = class extends P {
|
|
|
27783
27784
|
} = this;
|
|
27784
27785
|
if (s || o?.isEditing(i, { withOpenEditor: !0 }))
|
|
27785
27786
|
return;
|
|
27786
|
-
if (e.key ===
|
|
27787
|
+
if (e.key === x.SPACE)
|
|
27787
27788
|
this.onSpaceKeyDown(e);
|
|
27788
27789
|
else if (o?.isCellEditable(i, "ui")) {
|
|
27789
27790
|
if (o?.hasValidationErrors() && !o?.hasValidationErrors(i))
|
|
@@ -27878,17 +27879,17 @@ var LE = class extends P {
|
|
|
27878
27879
|
return;
|
|
27879
27880
|
}
|
|
27880
27881
|
if (!o || !v) {
|
|
27881
|
-
const y = h?.isEditing(n),
|
|
27882
|
+
const y = h?.isEditing(n), F = u.get("enableCellTextSelection") && e.defaultPrevented, T = (bs() || F) && !y && !qo(i) && !b;
|
|
27882
27883
|
n.focusCell(T, e);
|
|
27883
27884
|
}
|
|
27884
27885
|
if (o && v && !d.isCellFocused(f)) {
|
|
27885
27886
|
e.preventDefault();
|
|
27886
27887
|
const y = d.getFocusedCell();
|
|
27887
27888
|
if (y) {
|
|
27888
|
-
const { column: R, rowIndex:
|
|
27889
|
+
const { column: R, rowIndex: F, rowPinned: T } = y;
|
|
27889
27890
|
h?.isEditing(y) && h?.stopEditing(y), d.setFocusedCell({
|
|
27890
27891
|
column: R,
|
|
27891
|
-
rowIndex:
|
|
27892
|
+
rowIndex: F,
|
|
27892
27893
|
rowPinned: T,
|
|
27893
27894
|
forceBrowserFocus: !0,
|
|
27894
27895
|
preventScrollOnBrowserFocus: !0,
|
|
@@ -28183,7 +28184,7 @@ var LE = class extends P {
|
|
|
28183
28184
|
eGui: n,
|
|
28184
28185
|
beans: { valueSvc: r, gos: a, editSvc: l }
|
|
28185
28186
|
} = this;
|
|
28186
|
-
return
|
|
28187
|
+
return ee(a, {
|
|
28187
28188
|
value: e,
|
|
28188
28189
|
valueFormatted: t,
|
|
28189
28190
|
getValue: () => r.getValueForDisplay(s, o).value,
|
|
@@ -28557,7 +28558,7 @@ var jE = class extends P {
|
|
|
28557
28558
|
);
|
|
28558
28559
|
}
|
|
28559
28560
|
processRowClassRules(e, t, s) {
|
|
28560
|
-
const { gos: o, expressionSvc: i } = this.beans, n =
|
|
28561
|
+
const { gos: o, expressionSvc: i } = this.beans, n = ee(o, {
|
|
28561
28562
|
data: e.data,
|
|
28562
28563
|
node: e,
|
|
28563
28564
|
rowIndex: e.rowIndex
|
|
@@ -28847,7 +28848,7 @@ var jE = class extends P {
|
|
|
28847
28848
|
setAnimateFlags(e) {
|
|
28848
28849
|
if (this.rowNode.sticky || !e)
|
|
28849
28850
|
return;
|
|
28850
|
-
const t =
|
|
28851
|
+
const t = _(this.rowNode.oldRowTop), { visibleCols: s } = this.beans, o = s.isPinningLeft(), i = s.isPinningRight();
|
|
28851
28852
|
if (t) {
|
|
28852
28853
|
const { slideInAnimation: n } = this;
|
|
28853
28854
|
if (this.isFullWidth() && !this.gos.get("embedFullWidthRows")) {
|
|
@@ -29055,7 +29056,7 @@ var jE = class extends P {
|
|
|
29055
29056
|
}
|
|
29056
29057
|
createRowEvent(e, t) {
|
|
29057
29058
|
const { rowNode: s } = this;
|
|
29058
|
-
return
|
|
29059
|
+
return ee(this.gos, {
|
|
29059
29060
|
type: e,
|
|
29060
29061
|
node: s,
|
|
29061
29062
|
data: s.data,
|
|
@@ -29138,7 +29139,7 @@ var jE = class extends P {
|
|
|
29138
29139
|
this.rowType === "FullWidthDetail" && this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this, e);
|
|
29139
29140
|
}
|
|
29140
29141
|
createFullWidthCompDetails(e, t) {
|
|
29141
|
-
const { gos: s, rowNode: o } = this, i =
|
|
29142
|
+
const { gos: s, rowNode: o } = this, i = ee(s, {
|
|
29142
29143
|
fullWidth: !0,
|
|
29143
29144
|
data: o.data,
|
|
29144
29145
|
node: o,
|
|
@@ -29378,7 +29379,7 @@ var jE = class extends P {
|
|
|
29378
29379
|
return e + s * (t ? 1 : -1);
|
|
29379
29380
|
}
|
|
29380
29381
|
setRowTop(e) {
|
|
29381
|
-
if (!this.printLayout &&
|
|
29382
|
+
if (!this.printLayout && _(e)) {
|
|
29382
29383
|
const t = this.applyPaginationOffset(e), i = `${this.rowNode.isRowPinned() || this.rowNode.sticky ? t : this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;
|
|
29383
29384
|
this.setRowTopStyle(i);
|
|
29384
29385
|
}
|
|
@@ -29448,27 +29449,27 @@ var jE = class extends P {
|
|
|
29448
29449
|
const s = e.key, o = e.altKey, i = e.ctrlKey || e.metaKey, n = !!this.beans.rangeSvc && e.shiftKey, r = mR(this.gos, e);
|
|
29449
29450
|
let a = !1;
|
|
29450
29451
|
switch (s) {
|
|
29451
|
-
case
|
|
29452
|
-
case
|
|
29452
|
+
case x.PAGE_HOME:
|
|
29453
|
+
case x.PAGE_END:
|
|
29453
29454
|
!i && !o && (this.onHomeOrEndKey(s), a = !0);
|
|
29454
29455
|
break;
|
|
29455
|
-
case
|
|
29456
|
-
case
|
|
29457
|
-
case
|
|
29458
|
-
case
|
|
29456
|
+
case x.LEFT:
|
|
29457
|
+
case x.RIGHT:
|
|
29458
|
+
case x.UP:
|
|
29459
|
+
case x.DOWN:
|
|
29459
29460
|
if (!r)
|
|
29460
29461
|
return !1;
|
|
29461
29462
|
i && !o && !n && (this.onCtrlUpDownLeftRight(s, r), a = !0);
|
|
29462
29463
|
break;
|
|
29463
|
-
case
|
|
29464
|
-
case
|
|
29464
|
+
case x.PAGE_DOWN:
|
|
29465
|
+
case x.PAGE_UP:
|
|
29465
29466
|
!i && !o && (a = this.handlePageUpDown(s, r, t));
|
|
29466
29467
|
break;
|
|
29467
29468
|
}
|
|
29468
29469
|
return a && e.preventDefault(), a;
|
|
29469
29470
|
}
|
|
29470
29471
|
handlePageUpDown(e, t, s) {
|
|
29471
|
-
return s && (t = this.beans.focusSvc.getFocusedCell()), t ? (e ===
|
|
29472
|
+
return s && (t = this.beans.focusSvc.getFocusedCell()), t ? (e === x.PAGE_UP ? this.onPageUp(t) : this.onPageDown(t), !0) : !1;
|
|
29472
29473
|
}
|
|
29473
29474
|
navigateTo({
|
|
29474
29475
|
scrollIndex: e,
|
|
@@ -29480,7 +29481,7 @@ var jE = class extends P {
|
|
|
29480
29481
|
rowPinned: r
|
|
29481
29482
|
}) {
|
|
29482
29483
|
const { scrollFeature: a } = this.gridBodyCon;
|
|
29483
|
-
|
|
29484
|
+
_(s) && !s.isPinned() && a.ensureColumnVisible(s), _(e) && a.ensureIndexVisible(e, t), n || a.ensureIndexVisible(o);
|
|
29484
29485
|
const { focusSvc: l, rangeSvc: c } = this.beans;
|
|
29485
29486
|
l.setFocusedCell({
|
|
29486
29487
|
rowIndex: o,
|
|
@@ -29577,7 +29578,7 @@ var jE = class extends P {
|
|
|
29577
29578
|
// home brings focus to top left cell, end brings focus to bottom right, grid scrolled to bring
|
|
29578
29579
|
// same cell into view (which means either scroll all the way up, or all the way down).
|
|
29579
29580
|
onHomeOrEndKey(e) {
|
|
29580
|
-
const t = e ===
|
|
29581
|
+
const t = e === x.PAGE_HOME, { visibleCols: s, pageBounds: o, rowModel: i } = this.beans, n = s.allCols, r = t ? o.getFirstRow() : o.getLastRow(), a = i.getRow(r);
|
|
29581
29582
|
if (!a)
|
|
29582
29583
|
return;
|
|
29583
29584
|
const l = (t ? n : [...n].reverse()).find(
|
|
@@ -29639,7 +29640,7 @@ var jE = class extends P {
|
|
|
29639
29640
|
n.focusCell(!0);
|
|
29640
29641
|
else if (n)
|
|
29641
29642
|
return this.tryToFocusFullWidthRow(n, t);
|
|
29642
|
-
return
|
|
29643
|
+
return _(n);
|
|
29643
29644
|
}
|
|
29644
29645
|
/**
|
|
29645
29646
|
* called by the cell, when tab is pressed while editing.
|
|
@@ -29651,7 +29652,7 @@ var jE = class extends P {
|
|
|
29651
29652
|
for (; ; ) {
|
|
29652
29653
|
e !== i && (e = i), t || (i = this.getLastCellOfColSpan(i)), i = r.getNextTabbedCell(i, t);
|
|
29653
29654
|
const u = a.getCallback("tabToNextCell");
|
|
29654
|
-
if (
|
|
29655
|
+
if (_(u)) {
|
|
29655
29656
|
const f = u({
|
|
29656
29657
|
backwards: t,
|
|
29657
29658
|
editing: s,
|
|
@@ -29711,21 +29712,21 @@ var jE = class extends P {
|
|
|
29711
29712
|
let i = s, n = !1;
|
|
29712
29713
|
const r = this.beans, { cellNavigation: a, focusSvc: l, gos: c } = r;
|
|
29713
29714
|
for (; i && (i === s || !this.isValidNavigateCell(i)); )
|
|
29714
|
-
c.get("enableRtl") ? t ===
|
|
29715
|
-
if (n && e && e.key ===
|
|
29715
|
+
c.get("enableRtl") ? t === x.LEFT && (i = this.getLastCellOfColSpan(i)) : t === x.RIGHT && (i = this.getLastCellOfColSpan(i)), i = a.getNextCellToFocus(t, i), n = Re(i);
|
|
29716
|
+
if (n && e && e.key === x.UP && (i = {
|
|
29716
29717
|
rowIndex: -1,
|
|
29717
29718
|
rowPinned: null,
|
|
29718
29719
|
column: s.column
|
|
29719
29720
|
}), o) {
|
|
29720
29721
|
const u = c.getCallback("navigateToNextCell");
|
|
29721
|
-
if (
|
|
29722
|
+
if (_(u)) {
|
|
29722
29723
|
const g = u({
|
|
29723
29724
|
key: t,
|
|
29724
29725
|
previousCellPosition: s,
|
|
29725
29726
|
nextCellPosition: i || null,
|
|
29726
29727
|
event: e
|
|
29727
29728
|
});
|
|
29728
|
-
|
|
29729
|
+
_(g) ? i = {
|
|
29729
29730
|
rowPinned: g.rowPinned,
|
|
29730
29731
|
rowIndex: g.rowIndex,
|
|
29731
29732
|
column: g.column
|
|
@@ -29813,7 +29814,7 @@ function Ar(e) {
|
|
|
29813
29814
|
}
|
|
29814
29815
|
var YE = {
|
|
29815
29816
|
moduleName: "KeyboardNavigation",
|
|
29816
|
-
version:
|
|
29817
|
+
version: W,
|
|
29817
29818
|
beans: [qE, CE, P3],
|
|
29818
29819
|
apiFunctions: {
|
|
29819
29820
|
getFocusedCell: vE,
|
|
@@ -30016,7 +30017,7 @@ var YE = {
|
|
|
30016
30017
|
}
|
|
30017
30018
|
}, tD = {
|
|
30018
30019
|
moduleName: "PinnedColumn",
|
|
30019
|
-
version:
|
|
30020
|
+
version: W,
|
|
30020
30021
|
beans: [eD],
|
|
30021
30022
|
css: [XE]
|
|
30022
30023
|
}, sD = class extends P {
|
|
@@ -30058,7 +30059,7 @@ var YE = {
|
|
|
30058
30059
|
}
|
|
30059
30060
|
}, oD = {
|
|
30060
30061
|
moduleName: "Aria",
|
|
30061
|
-
version:
|
|
30062
|
+
version: W,
|
|
30062
30063
|
beans: [sD]
|
|
30063
30064
|
}, iD = (
|
|
30064
30065
|
/*css*/
|
|
@@ -30087,7 +30088,7 @@ var YE = {
|
|
|
30087
30088
|
}
|
|
30088
30089
|
}, rD = {
|
|
30089
30090
|
moduleName: "ColumnDelayRender",
|
|
30090
|
-
version:
|
|
30091
|
+
version: W,
|
|
30091
30092
|
beans: [nD],
|
|
30092
30093
|
css: [iD]
|
|
30093
30094
|
};
|
|
@@ -30120,7 +30121,7 @@ var dD = (
|
|
|
30120
30121
|
super(uD), this.eOverlayWrapper = X, this.activePromise = null, this.activeOverlay = null, this.updateListenerDestroyFunc = null, this.activeCssClass = null, this.elToFocusAfter = null, this.registerCSS(dD);
|
|
30121
30122
|
}
|
|
30122
30123
|
handleKeyDown(e) {
|
|
30123
|
-
if (e.key !==
|
|
30124
|
+
if (e.key !== x.TAB || e.defaultPrevented || Yt(e))
|
|
30124
30125
|
return;
|
|
30125
30126
|
const t = this.beans;
|
|
30126
30127
|
if (Ys(t, this.eOverlayWrapper, !1, e.shiftKey))
|
|
@@ -30158,7 +30159,7 @@ var dD = (
|
|
|
30158
30159
|
if (this.activeOverlay !== i && (this.eOverlayWrapper.appendChild(i.getGui()), this.activeOverlay = i, o)) {
|
|
30159
30160
|
const n = i;
|
|
30160
30161
|
this.updateListenerDestroyFunc = this.addManagedPropertyListener(o, ({ currentValue: r }) => {
|
|
30161
|
-
n.refresh?.(
|
|
30162
|
+
n.refresh?.(ee(this.gos, { ...r ?? {} }));
|
|
30162
30163
|
});
|
|
30163
30164
|
}
|
|
30164
30165
|
s && this.isGridFocused() && Ws(this.eOverlayWrapper);
|
|
@@ -30258,14 +30259,14 @@ var dD = (
|
|
|
30258
30259
|
}
|
|
30259
30260
|
doShowLoadingOverlay() {
|
|
30260
30261
|
this.eWrapper && (this.state = 1, this.showOverlay(
|
|
30261
|
-
X0(this.beans.userCompFactory,
|
|
30262
|
+
X0(this.beans.userCompFactory, ee(this.gos, {})),
|
|
30262
30263
|
"ag-overlay-loading-wrapper",
|
|
30263
30264
|
"loadingOverlayComponentParams"
|
|
30264
30265
|
), this.updateExclusive());
|
|
30265
30266
|
}
|
|
30266
30267
|
doShowNoRowsOverlay() {
|
|
30267
30268
|
this.eWrapper && (this.state = 2, this.showOverlay(
|
|
30268
|
-
J0(this.beans.userCompFactory,
|
|
30269
|
+
J0(this.beans.userCompFactory, ee(this.gos, {})),
|
|
30269
30270
|
"ag-overlay-no-rows-wrapper",
|
|
30270
30271
|
"noRowsOverlayComponentParams"
|
|
30271
30272
|
), this.updateExclusive());
|
|
@@ -30292,7 +30293,7 @@ var dD = (
|
|
|
30292
30293
|
}
|
|
30293
30294
|
}, pD = {
|
|
30294
30295
|
moduleName: "Overlay",
|
|
30295
|
-
version:
|
|
30296
|
+
version: W,
|
|
30296
30297
|
userComponents: {
|
|
30297
30298
|
agLoadingOverlay: GR,
|
|
30298
30299
|
agNoRowsOverlay: BR
|
|
@@ -30720,7 +30721,7 @@ var dD = (
|
|
|
30720
30721
|
return;
|
|
30721
30722
|
}
|
|
30722
30723
|
t.doesRowOrCellHaveBrowserFocus() || this.updateCellFocus(
|
|
30723
|
-
|
|
30724
|
+
ee(this.gos, {
|
|
30724
30725
|
...s,
|
|
30725
30726
|
forceBrowserFocus: !0,
|
|
30726
30727
|
preventScrollOnBrowserFocus: !0,
|
|
@@ -30810,9 +30811,9 @@ var dD = (
|
|
|
30810
30811
|
// and two columns provided, that identifies 4 cells, so 4 CellCtrl's returned.
|
|
30811
30812
|
getCellCtrls(e, t) {
|
|
30812
30813
|
let s;
|
|
30813
|
-
|
|
30814
|
+
_(t) && (s = {}, t.forEach((i) => {
|
|
30814
30815
|
const n = this.colModel.getCol(i);
|
|
30815
|
-
|
|
30816
|
+
_(n) && (s[n.getId()] = !0);
|
|
30816
30817
|
}));
|
|
30817
30818
|
const o = [];
|
|
30818
30819
|
for (const i of this.getRowCtrls(e))
|
|
@@ -30948,8 +30949,8 @@ var dD = (
|
|
|
30948
30949
|
}
|
|
30949
30950
|
createOrUpdateRowCtrl(e, t, s, o) {
|
|
30950
30951
|
let i, n = this.rowCtrlsByRowIndex[e];
|
|
30951
|
-
if (n || (i = this.rowModel.getRow(e),
|
|
30952
|
-
if (i || (i = this.rowModel.getRow(e)),
|
|
30952
|
+
if (n || (i = this.rowModel.getRow(e), _(i) && _(t) && t[i.id] && i.alreadyRendered && (n = t[i.id], t[i.id] = null)), !n)
|
|
30953
|
+
if (i || (i = this.rowModel.getRow(e)), _(i))
|
|
30953
30954
|
n = this.createRowCon(i, s, o);
|
|
30954
30955
|
else
|
|
30955
30956
|
return;
|
|
@@ -30999,8 +31000,8 @@ var dD = (
|
|
|
30999
31000
|
const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
|
|
31000
31001
|
let g = !1, p, f;
|
|
31001
31002
|
do {
|
|
31002
|
-
const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: R } = t.getCurrentPagePixelRange(),
|
|
31003
|
-
h ? (p = y +
|
|
31003
|
+
const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: R } = t.getCurrentPagePixelRange(), F = e.divStretchOffset, T = u.getVScrollPosition(), H = T.top, M = T.bottom;
|
|
31004
|
+
h ? (p = y + F, f = R + F) : (p = Math.max(H + S - d, y) + F, f = Math.min(M + S + d, R) + F), this.firstVisibleVPixel = Math.max(H + S, y) + F, this.lastVisibleVPixel = Math.min(M + S, R) + F, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
|
|
31004
31005
|
} while (g);
|
|
31005
31006
|
let m = s.getRowIndexAtPixel(p), C = s.getRowIndexAtPixel(f);
|
|
31006
31007
|
const v = t.getFirstRow(), b = t.getLastRow();
|
|
@@ -31225,7 +31226,7 @@ function bD(e) {
|
|
|
31225
31226
|
}
|
|
31226
31227
|
var Sp = {
|
|
31227
31228
|
moduleName: "Sort",
|
|
31228
|
-
version:
|
|
31229
|
+
version: W,
|
|
31229
31230
|
beans: [N3, wD],
|
|
31230
31231
|
apiFunctions: {
|
|
31231
31232
|
onSortChanged: bD
|
|
@@ -31375,22 +31376,22 @@ var xD = "paste", FD = class extends P {
|
|
|
31375
31376
|
}
|
|
31376
31377
|
}, PD = {
|
|
31377
31378
|
moduleName: "ValueCache",
|
|
31378
|
-
version:
|
|
31379
|
+
version: W,
|
|
31379
31380
|
beans: [DD],
|
|
31380
31381
|
apiFunctions: {
|
|
31381
31382
|
expireValueCache: yD
|
|
31382
31383
|
}
|
|
31383
31384
|
}, TD = {
|
|
31384
31385
|
moduleName: "Expression",
|
|
31385
|
-
version:
|
|
31386
|
+
version: W,
|
|
31386
31387
|
beans: [ED]
|
|
31387
31388
|
}, MD = {
|
|
31388
31389
|
moduleName: "ChangeDetection",
|
|
31389
|
-
version:
|
|
31390
|
+
version: W,
|
|
31390
31391
|
beans: [FD]
|
|
31391
31392
|
}, ID = {
|
|
31392
31393
|
moduleName: "CellApi",
|
|
31393
|
-
version:
|
|
31394
|
+
version: W,
|
|
31394
31395
|
apiFunctions: {
|
|
31395
31396
|
getCellValue: RD
|
|
31396
31397
|
}
|
|
@@ -31491,8 +31492,8 @@ var xD = "paste", FD = class extends P {
|
|
|
31491
31492
|
}
|
|
31492
31493
|
parseValue(e, t, s, o) {
|
|
31493
31494
|
const i = e.getColDef(), n = i.valueParser;
|
|
31494
|
-
if (
|
|
31495
|
-
const r =
|
|
31495
|
+
if (_(n)) {
|
|
31496
|
+
const r = ee(this.gos, {
|
|
31496
31497
|
node: t,
|
|
31497
31498
|
data: t?.data,
|
|
31498
31499
|
oldValue: o,
|
|
@@ -31505,14 +31506,14 @@ var xD = "paste", FD = class extends P {
|
|
|
31505
31506
|
return s;
|
|
31506
31507
|
}
|
|
31507
31508
|
getDeleteValue(e, t) {
|
|
31508
|
-
return
|
|
31509
|
+
return _(e.getColDef().valueParser) ? this.parseValue(e, t, "", this.getValueForDisplay(e, t).value) ?? null : null;
|
|
31509
31510
|
}
|
|
31510
31511
|
formatValue(e, t, s, o, i = !0) {
|
|
31511
31512
|
const { expressionSvc: n } = this.beans;
|
|
31512
31513
|
let r = null, a;
|
|
31513
31514
|
const l = e.getColDef();
|
|
31514
31515
|
if (o ? a = o : i && (a = l.valueFormatter), a) {
|
|
31515
|
-
const c = t ? t.data : null, d =
|
|
31516
|
+
const c = t ? t.data : null, d = ee(this.gos, {
|
|
31516
31517
|
value: s,
|
|
31517
31518
|
node: t,
|
|
31518
31519
|
data: c,
|
|
@@ -31542,7 +31543,7 @@ var xD = "paste", FD = class extends P {
|
|
|
31542
31543
|
return N(17), !1;
|
|
31543
31544
|
if (this.dataTypeSvc && !this.dataTypeSvc.checkType(i, s))
|
|
31544
31545
|
return N(135), !1;
|
|
31545
|
-
const a =
|
|
31546
|
+
const a = ee(this.gos, {
|
|
31546
31547
|
node: e,
|
|
31547
31548
|
data: e.data,
|
|
31548
31549
|
oldValue: this.getValue(i, e, void 0, o),
|
|
@@ -31552,7 +31553,7 @@ var xD = "paste", FD = class extends P {
|
|
|
31552
31553
|
});
|
|
31553
31554
|
a.newValue = s;
|
|
31554
31555
|
let l;
|
|
31555
|
-
if (
|
|
31556
|
+
if (_(r) ? typeof r == "function" ? l = r(a) : l = this.expressionSvc?.evaluate(r, a) : l = this.setValueUsingField(e.data, n, s, i.isFieldContainsDots()), l === void 0 && (l = !0), !l)
|
|
31556
31557
|
return !1;
|
|
31557
31558
|
e.resetQuickFilterAggregateText(), this.valueCache?.onDataChanged();
|
|
31558
31559
|
const c = this.getValue(i, e);
|
|
@@ -31613,7 +31614,7 @@ var xD = "paste", FD = class extends P {
|
|
|
31613
31614
|
return this.valueCache.setValue(o, i, r), r;
|
|
31614
31615
|
}
|
|
31615
31616
|
executeValueGetterWithoutValueCache(e, t, s, o) {
|
|
31616
|
-
const i =
|
|
31617
|
+
const i = ee(this.gos, {
|
|
31617
31618
|
data: t,
|
|
31618
31619
|
node: o,
|
|
31619
31620
|
column: s,
|
|
@@ -31632,7 +31633,7 @@ var xD = "paste", FD = class extends P {
|
|
|
31632
31633
|
const s = this.getValue(e, t), o = e.getColDef().keyCreator;
|
|
31633
31634
|
let i = s;
|
|
31634
31635
|
if (o) {
|
|
31635
|
-
const n =
|
|
31636
|
+
const n = ee(this.gos, {
|
|
31636
31637
|
value: s,
|
|
31637
31638
|
colDef: e.getColDef(),
|
|
31638
31639
|
column: e,
|
|
@@ -31645,7 +31646,7 @@ var xD = "paste", FD = class extends P {
|
|
|
31645
31646
|
}
|
|
31646
31647
|
}, AD = {
|
|
31647
31648
|
moduleName: "CommunityCore",
|
|
31648
|
-
version:
|
|
31649
|
+
version: W,
|
|
31649
31650
|
beans: [
|
|
31650
31651
|
A3,
|
|
31651
31652
|
w2,
|
|
@@ -32463,10 +32464,10 @@ function KD(e, t = !1) {
|
|
|
32463
32464
|
pivotIndex: S,
|
|
32464
32465
|
pinned: y,
|
|
32465
32466
|
hide: R,
|
|
32466
|
-
width:
|
|
32467
|
+
width: F,
|
|
32467
32468
|
flex: T
|
|
32468
32469
|
} = e[h];
|
|
32469
|
-
d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), m && (o[C ?? 0] = g), typeof v == "string" && i.push({ colId: g, aggFunc: v }), b && (n[S ?? 0] = g), y && (y === "right" ? a : r).push(g), R && l.push(g), (T != null ||
|
|
32470
|
+
d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), m && (o[C ?? 0] = g), typeof v == "string" && i.push({ colId: g, aggFunc: v }), b && (n[S ?? 0] = g), y && (y === "right" ? a : r).push(g), R && l.push(g), (T != null || F) && c.push({ colId: g, flex: T ?? void 0, width: F });
|
|
32470
32471
|
}
|
|
32471
32472
|
return {
|
|
32472
32473
|
sort: s.length ? { sortModel: Or(s) } : void 0,
|
|
@@ -32550,11 +32551,11 @@ var QD = class extends P {
|
|
|
32550
32551
|
extractRowCellValue(e, t, s, o, i) {
|
|
32551
32552
|
const n = t === 0 && kh(this.gos, i, this.colModel.isPivotMode());
|
|
32552
32553
|
if (this.processRowGroupCallback && (this.gos.get("treeData") || i.group) && (e.isRowGroupDisplayed(i.rowGroupColumn?.getColId() ?? "") || n))
|
|
32553
|
-
return { value: this.processRowGroupCallback(
|
|
32554
|
+
return { value: this.processRowGroupCallback(ee(this.gos, { column: e, node: i })) ?? "" };
|
|
32554
32555
|
if (this.processCellCallback)
|
|
32555
32556
|
return {
|
|
32556
32557
|
value: this.processCellCallback(
|
|
32557
|
-
|
|
32558
|
+
ee(this.gos, {
|
|
32558
32559
|
accumulatedRowIndex: s,
|
|
32559
32560
|
column: e,
|
|
32560
32561
|
node: i,
|
|
@@ -32596,7 +32597,7 @@ var QD = class extends P {
|
|
|
32596
32597
|
};
|
|
32597
32598
|
}
|
|
32598
32599
|
getHeaderName(e, t) {
|
|
32599
|
-
return e ? e(
|
|
32600
|
+
return e ? e(ee(this.gos, { column: t })) : this.colNames.getDisplayNameForColumn(t, "csv", !0);
|
|
32600
32601
|
}
|
|
32601
32602
|
};
|
|
32602
32603
|
function JD(e, t) {
|
|
@@ -33159,7 +33160,7 @@ var dP = /* @__PURE__ */ new Set([
|
|
|
33159
33160
|
"childIndexChanged"
|
|
33160
33161
|
]), uP = {
|
|
33161
33162
|
moduleName: "Validation",
|
|
33162
|
-
version:
|
|
33163
|
+
version: W,
|
|
33163
33164
|
beans: [lP]
|
|
33164
33165
|
};
|
|
33165
33166
|
function Fp(e) {
|
|
@@ -33230,7 +33231,7 @@ var hP = class extends P {
|
|
|
33230
33231
|
}
|
|
33231
33232
|
getHeaderClassParams() {
|
|
33232
33233
|
const { column: e, beans: t } = this, s = e.colDef;
|
|
33233
|
-
return
|
|
33234
|
+
return ee(t.gos, {
|
|
33234
33235
|
colDef: s,
|
|
33235
33236
|
column: e,
|
|
33236
33237
|
floatingFilter: !0
|
|
@@ -33291,17 +33292,17 @@ var hP = class extends P {
|
|
|
33291
33292
|
super.handleKeyDown(e);
|
|
33292
33293
|
const t = this.getWrapperHasFocus();
|
|
33293
33294
|
switch (e.key) {
|
|
33294
|
-
case
|
|
33295
|
-
case
|
|
33296
|
-
case
|
|
33297
|
-
case
|
|
33295
|
+
case x.UP:
|
|
33296
|
+
case x.DOWN:
|
|
33297
|
+
case x.LEFT:
|
|
33298
|
+
case x.RIGHT:
|
|
33298
33299
|
if (t)
|
|
33299
33300
|
return;
|
|
33300
33301
|
_s(e);
|
|
33301
|
-
case
|
|
33302
|
+
case x.ENTER:
|
|
33302
33303
|
t && Ws(this.eGui) && e.preventDefault();
|
|
33303
33304
|
break;
|
|
33304
|
-
case
|
|
33305
|
+
case x.ESCAPE:
|
|
33305
33306
|
t || this.eGui.focus();
|
|
33306
33307
|
}
|
|
33307
33308
|
}
|
|
@@ -33310,7 +33311,7 @@ var hP = class extends P {
|
|
|
33310
33311
|
return;
|
|
33311
33312
|
const s = !!e.relatedTarget && !e.relatedTarget.classList.contains("ag-floating-filter"), o = !!e.relatedTarget && Ts(e.relatedTarget, "ag-floating-filter");
|
|
33312
33313
|
if (s && o && e.target === this.eGui) {
|
|
33313
|
-
const i = this.lastFocusEvent, n = !!(i && i.key ===
|
|
33314
|
+
const i = this.lastFocusEvent, n = !!(i && i.key === x.TAB);
|
|
33314
33315
|
if (i && n) {
|
|
33315
33316
|
const r = i.shiftKey;
|
|
33316
33317
|
Ws(this.eGui, r);
|
|
@@ -33445,7 +33446,7 @@ function fP(e) {
|
|
|
33445
33446
|
}
|
|
33446
33447
|
var mP = {
|
|
33447
33448
|
moduleName: "SharedMenu",
|
|
33448
|
-
version:
|
|
33449
|
+
version: W,
|
|
33449
33450
|
beans: [HR],
|
|
33450
33451
|
apiFunctions: {
|
|
33451
33452
|
showColumnMenu: pP,
|
|
@@ -33527,7 +33528,7 @@ var mP = {
|
|
|
33527
33528
|
}
|
|
33528
33529
|
}, Yn = {
|
|
33529
33530
|
moduleName: "Popup",
|
|
33530
|
-
version:
|
|
33531
|
+
version: W,
|
|
33531
33532
|
beans: [CP]
|
|
33532
33533
|
}, vP = (
|
|
33533
33534
|
/*css*/
|
|
@@ -33670,11 +33671,11 @@ var MP = {
|
|
|
33670
33671
|
} = this;
|
|
33671
33672
|
if (s.forEach((n, r) => {
|
|
33672
33673
|
const a = this.getModelFromFilterWrapper(n);
|
|
33673
|
-
|
|
33674
|
+
_(a) && (t[r] = a);
|
|
33674
33675
|
}), !e)
|
|
33675
33676
|
for (const n of Object.keys(o)) {
|
|
33676
33677
|
const r = o[n];
|
|
33677
|
-
|
|
33678
|
+
_(r) && !s.has(n) && i.getCol(n)?.isFilterAllowed() && (t[n] = r);
|
|
33678
33679
|
}
|
|
33679
33680
|
return t;
|
|
33680
33681
|
}
|
|
@@ -33880,7 +33881,7 @@ var MP = {
|
|
|
33880
33881
|
return s ? s.isFilterActive() : He(this.initialModel, e.getColId()) != null;
|
|
33881
33882
|
}
|
|
33882
33883
|
isHandlerActive(e) {
|
|
33883
|
-
const t =
|
|
33884
|
+
const t = _(He(this.model, e.getColId()));
|
|
33884
33885
|
if (t)
|
|
33885
33886
|
return t;
|
|
33886
33887
|
const s = this.beans.groupFilter;
|
|
@@ -33963,7 +33964,7 @@ var MP = {
|
|
|
33963
33964
|
}
|
|
33964
33965
|
createBaseFilterParams(e, t) {
|
|
33965
33966
|
const { filterManager: s, rowModel: o } = this.beans;
|
|
33966
|
-
return
|
|
33967
|
+
return ee(this.gos, {
|
|
33967
33968
|
column: e,
|
|
33968
33969
|
colDef: e.getColDef(),
|
|
33969
33970
|
getValue: this.createGetValue(e),
|
|
@@ -34093,12 +34094,12 @@ var MP = {
|
|
|
34093
34094
|
};
|
|
34094
34095
|
}
|
|
34095
34096
|
createHandlerFromFunc(e, t, s) {
|
|
34096
|
-
const o = e.getColDef(), i = t(
|
|
34097
|
+
const o = e.getColDef(), i = t(ee(this.gos, { column: e, colDef: o })), n = this.createHandlerParams(e, s);
|
|
34097
34098
|
return { handler: i, handlerParams: n };
|
|
34098
34099
|
}
|
|
34099
34100
|
createHandlerParams(e, t) {
|
|
34100
34101
|
const s = e.getColDef(), o = e.getColId(), i = this.filterChangedCallbackFactory(e);
|
|
34101
|
-
return
|
|
34102
|
+
return ee(this.gos, {
|
|
34102
34103
|
colDef: s,
|
|
34103
34104
|
column: e,
|
|
34104
34105
|
getValue: this.createGetValue(e),
|
|
@@ -34136,7 +34137,7 @@ var MP = {
|
|
|
34136
34137
|
s,
|
|
34137
34138
|
a,
|
|
34138
34139
|
this.createFilterCompParams(e, c, "init", !0)
|
|
34139
|
-
), u =
|
|
34140
|
+
), u = ee(this.gos, {
|
|
34140
34141
|
column: e,
|
|
34141
34142
|
filterParams: d,
|
|
34142
34143
|
currentParentModel: () => this.getCurrentFloatingFilterParentModel(e),
|
|
@@ -34407,7 +34408,7 @@ var MP = {
|
|
|
34407
34408
|
}
|
|
34408
34409
|
/** for handlers only */
|
|
34409
34410
|
updateStoredModel(e, t) {
|
|
34410
|
-
|
|
34411
|
+
_(t) ? this.model[e] = t : delete this.model[e];
|
|
34411
34412
|
const s = this.state.get(e), o = {
|
|
34412
34413
|
model: t,
|
|
34413
34414
|
state: s?.state
|
|
@@ -34789,7 +34790,7 @@ var LP = class extends P {
|
|
|
34789
34790
|
}), td(e, !0, "contextMenu"), this.dispatchVisibleChangedEvent(!0, s, e);
|
|
34790
34791
|
}
|
|
34791
34792
|
trapFocusWithin(e, t) {
|
|
34792
|
-
e.key !==
|
|
34793
|
+
e.key !== x.TAB || e.defaultPrevented || Ys(this.beans, t, !1, e.shiftKey) || (e.preventDefault(), Ws(t, e.shiftKey));
|
|
34793
34794
|
}
|
|
34794
34795
|
dispatchVisibleChangedEvent(e, t, s) {
|
|
34795
34796
|
this.eventSvc.dispatchEvent({
|
|
@@ -34820,7 +34821,7 @@ var LP = class extends P {
|
|
|
34820
34821
|
return r ? this.executeFilterValueGetter(r, t.data, e, t, o) : n.getValue(e, t);
|
|
34821
34822
|
}
|
|
34822
34823
|
executeFilterValueGetter(e, t, s, o, i) {
|
|
34823
|
-
const { expressionSvc: n, valueSvc: r } = this.beans, a =
|
|
34824
|
+
const { expressionSvc: n, valueSvc: r } = this.beans, a = ee(this.gos, {
|
|
34824
34825
|
data: t,
|
|
34825
34826
|
node: o,
|
|
34826
34827
|
column: s,
|
|
@@ -35417,7 +35418,7 @@ var Hd = 1e3, Nd = 1 / 0, WP = class extends jl {
|
|
|
35417
35418
|
s,
|
|
35418
35419
|
t,
|
|
35419
35420
|
i.colDef,
|
|
35420
|
-
|
|
35421
|
+
ee(o, {
|
|
35421
35422
|
onDateChanged: () => this.onUiChanged(),
|
|
35422
35423
|
filterParams: i,
|
|
35423
35424
|
location: "filter"
|
|
@@ -35880,7 +35881,7 @@ var $P = class extends Tp {
|
|
|
35880
35881
|
}
|
|
35881
35882
|
getDateComponentParams() {
|
|
35882
35883
|
const { filterParams: e } = this.params, t = Il(e, this.defaultDebounceMs);
|
|
35883
|
-
return
|
|
35884
|
+
return ee(this.gos, {
|
|
35884
35885
|
onDateChanged: Ue(this, this.onDateChanged.bind(this), t),
|
|
35885
35886
|
filterParams: e,
|
|
35886
35887
|
location: "floatingFilter"
|
|
@@ -36174,7 +36175,7 @@ var XP = {
|
|
|
36174
36175
|
it(this.eFloatingFilterInputContainer), this.destroyBean(t), this.setupFloatingFilterInputService(e), t.setValue(s, !0);
|
|
36175
36176
|
}
|
|
36176
36177
|
syncUpWithParentFilter(e) {
|
|
36177
|
-
const t = e.key ===
|
|
36178
|
+
const t = e.key === x.ENTER, s = this.reactive;
|
|
36178
36179
|
if (s && this.params.onUiChange(), this.applyActive && !t)
|
|
36179
36180
|
return;
|
|
36180
36181
|
const { inputSvc: o, params: i, lastType: n } = this;
|
|
@@ -36459,7 +36460,7 @@ var d5 = class extends P {
|
|
|
36459
36460
|
e ? this.quickFilterParts = t ? t(e) : e.split(" ") : this.quickFilterParts = null;
|
|
36460
36461
|
}
|
|
36461
36462
|
parseFilter(e) {
|
|
36462
|
-
return
|
|
36463
|
+
return _(e) ? e.toUpperCase() : null;
|
|
36463
36464
|
}
|
|
36464
36465
|
setFilter(e) {
|
|
36465
36466
|
if (e != null && typeof e != "string") {
|
|
@@ -36479,7 +36480,7 @@ var d5 = class extends P {
|
|
|
36479
36480
|
doesRowPassNoCache(e, t) {
|
|
36480
36481
|
return this.colsToUse.some((s) => {
|
|
36481
36482
|
const o = this.getTextForColumn(s, e);
|
|
36482
|
-
return
|
|
36483
|
+
return _(o) && o.includes(t);
|
|
36483
36484
|
});
|
|
36484
36485
|
}
|
|
36485
36486
|
doesRowPassCache(e, t) {
|
|
@@ -36498,7 +36499,7 @@ var d5 = class extends P {
|
|
|
36498
36499
|
let s = this.beans.filterValueSvc.getValue(e, t);
|
|
36499
36500
|
const o = e.getColDef();
|
|
36500
36501
|
if (o.getQuickFilterText) {
|
|
36501
|
-
const i =
|
|
36502
|
+
const i = ee(this.gos, {
|
|
36502
36503
|
value: s,
|
|
36503
36504
|
node: t,
|
|
36504
36505
|
data: t.data,
|
|
@@ -36507,25 +36508,25 @@ var d5 = class extends P {
|
|
|
36507
36508
|
});
|
|
36508
36509
|
s = o.getQuickFilterText(i);
|
|
36509
36510
|
}
|
|
36510
|
-
return
|
|
36511
|
+
return _(s) ? s.toString().toUpperCase() : null;
|
|
36511
36512
|
}
|
|
36512
36513
|
getAggText(e) {
|
|
36513
36514
|
const t = [];
|
|
36514
36515
|
for (const s of this.colsToUse) {
|
|
36515
36516
|
const o = this.getTextForColumn(s, e);
|
|
36516
|
-
|
|
36517
|
+
_(o) && t.push(o);
|
|
36517
36518
|
}
|
|
36518
36519
|
return t.join(`
|
|
36519
36520
|
`);
|
|
36520
36521
|
}
|
|
36521
36522
|
}, u5 = {
|
|
36522
36523
|
moduleName: "ClientSideRowModelFilter",
|
|
36523
|
-
version:
|
|
36524
|
+
version: W,
|
|
36524
36525
|
rowModels: ["clientSide"],
|
|
36525
36526
|
beans: [hP]
|
|
36526
36527
|
}, Ql = {
|
|
36527
36528
|
moduleName: "FilterCore",
|
|
36528
|
-
version:
|
|
36529
|
+
version: W,
|
|
36529
36530
|
beans: [LP],
|
|
36530
36531
|
apiFunctions: {
|
|
36531
36532
|
isAnyFilterPresent: kP,
|
|
@@ -36535,11 +36536,11 @@ var d5 = class extends P {
|
|
|
36535
36536
|
dependsOn: [u5]
|
|
36536
36537
|
}, Vp = {
|
|
36537
36538
|
moduleName: "FilterValue",
|
|
36538
|
-
version:
|
|
36539
|
+
version: W,
|
|
36539
36540
|
beans: [HP]
|
|
36540
36541
|
}, Zn = {
|
|
36541
36542
|
moduleName: "ColumnFilter",
|
|
36542
|
-
version:
|
|
36543
|
+
version: W,
|
|
36543
36544
|
beans: [IP, OP],
|
|
36544
36545
|
dynamicBeans: { headerFilterCellCtrl: gP },
|
|
36545
36546
|
icons: {
|
|
@@ -36564,12 +36565,12 @@ var d5 = class extends P {
|
|
|
36564
36565
|
dependsOn: [Ql, Yn, Vp, mP]
|
|
36565
36566
|
}, h5 = {
|
|
36566
36567
|
moduleName: "CustomFilter",
|
|
36567
|
-
version:
|
|
36568
|
+
version: W,
|
|
36568
36569
|
userComponents: { agReadOnlyFloatingFilter: GP },
|
|
36569
36570
|
dependsOn: [Zn]
|
|
36570
36571
|
}, g5 = {
|
|
36571
36572
|
moduleName: "TextFilter",
|
|
36572
|
-
version:
|
|
36573
|
+
version: W,
|
|
36573
36574
|
dependsOn: [Zn],
|
|
36574
36575
|
userComponents: {
|
|
36575
36576
|
agTextColumnFilter: {
|
|
@@ -36585,7 +36586,7 @@ var d5 = class extends P {
|
|
|
36585
36586
|
}
|
|
36586
36587
|
}, p5 = {
|
|
36587
36588
|
moduleName: "NumberFilter",
|
|
36588
|
-
version:
|
|
36589
|
+
version: W,
|
|
36589
36590
|
dependsOn: [Zn],
|
|
36590
36591
|
userComponents: {
|
|
36591
36592
|
agNumberColumnFilter: {
|
|
@@ -36601,7 +36602,7 @@ var d5 = class extends P {
|
|
|
36601
36602
|
}
|
|
36602
36603
|
}, f5 = {
|
|
36603
36604
|
moduleName: "DateFilter",
|
|
36604
|
-
version:
|
|
36605
|
+
version: W,
|
|
36605
36606
|
dependsOn: [Zn],
|
|
36606
36607
|
userComponents: {
|
|
36607
36608
|
agDateColumnFilter: {
|
|
@@ -36618,13 +36619,13 @@ var d5 = class extends P {
|
|
|
36618
36619
|
}
|
|
36619
36620
|
}, m5 = {
|
|
36620
36621
|
moduleName: "QuickFilterCore",
|
|
36621
|
-
version:
|
|
36622
|
+
version: W,
|
|
36622
36623
|
rowModels: ["clientSide"],
|
|
36623
36624
|
beans: [d5],
|
|
36624
36625
|
dependsOn: [Ql, Vp]
|
|
36625
36626
|
}, C5 = {
|
|
36626
36627
|
moduleName: "QuickFilter",
|
|
36627
|
-
version:
|
|
36628
|
+
version: W,
|
|
36628
36629
|
apiFunctions: {
|
|
36629
36630
|
isQuickFilterPresent: a5,
|
|
36630
36631
|
getQuickFilter: l5,
|
|
@@ -36633,7 +36634,7 @@ var d5 = class extends P {
|
|
|
36633
36634
|
dependsOn: [m5]
|
|
36634
36635
|
}, v5 = {
|
|
36635
36636
|
moduleName: "ExternalFilter",
|
|
36636
|
-
version:
|
|
36637
|
+
version: W,
|
|
36637
36638
|
dependsOn: [Ql]
|
|
36638
36639
|
}, w5 = (
|
|
36639
36640
|
/*css*/
|
|
@@ -36655,7 +36656,7 @@ var d5 = class extends P {
|
|
|
36655
36656
|
getGui: () => a,
|
|
36656
36657
|
getLocation: () => c,
|
|
36657
36658
|
getTooltipValue: () => s ?? l?.headerTooltipValueGetter?.(
|
|
36658
|
-
|
|
36659
|
+
ee(i, { location: c, colDef: l, column: r, value: h, valueFormatted: u })
|
|
36659
36660
|
) ?? l?.headerTooltip,
|
|
36660
36661
|
shouldDisplayTooltip: o,
|
|
36661
36662
|
getAdditionalParams: () => ({
|
|
@@ -36676,7 +36677,7 @@ var d5 = class extends P {
|
|
|
36676
36677
|
getGui: () => a,
|
|
36677
36678
|
getLocation: () => c,
|
|
36678
36679
|
getTooltipValue: () => s ?? l?.headerTooltipValueGetter?.(
|
|
36679
|
-
|
|
36680
|
+
ee(i, { location: c, colDef: l, column: r, value: h, valueFormatted: u })
|
|
36680
36681
|
) ?? l?.headerTooltip,
|
|
36681
36682
|
shouldDisplayTooltip: o,
|
|
36682
36683
|
getAdditionalParams: () => {
|
|
@@ -36697,11 +36698,11 @@ var d5 = class extends P {
|
|
|
36697
36698
|
return l = "cellEditor", g;
|
|
36698
36699
|
l = "cell";
|
|
36699
36700
|
const p = r.getColDef(), f = a.data;
|
|
36700
|
-
if (p.tooltipField &&
|
|
36701
|
+
if (p.tooltipField && _(f))
|
|
36701
36702
|
return ei(f, p.tooltipField, r.isTooltipFieldContainsDots());
|
|
36702
36703
|
const m = p.tooltipValueGetter;
|
|
36703
36704
|
return m ? m(
|
|
36704
|
-
|
|
36705
|
+
ee(i, {
|
|
36705
36706
|
location: "cell",
|
|
36706
36707
|
colDef: r.getColDef(),
|
|
36707
36708
|
column: r,
|
|
@@ -36771,7 +36772,7 @@ var d5 = class extends P {
|
|
|
36771
36772
|
}
|
|
36772
36773
|
initCol(e) {
|
|
36773
36774
|
const { colDef: t } = e;
|
|
36774
|
-
e.tooltipEnabled =
|
|
36775
|
+
e.tooltipEnabled = _(t.tooltipField) || _(t.tooltipValueGetter) || _(t.tooltipComponent);
|
|
36775
36776
|
}
|
|
36776
36777
|
createTooltipFeature(e, t) {
|
|
36777
36778
|
return this.beans.registry.createDynamicBean("tooltipFeature", !1, e, t);
|
|
@@ -36790,7 +36791,7 @@ var d5 = class extends P {
|
|
|
36790
36791
|
}
|
|
36791
36792
|
}, Bp = {
|
|
36792
36793
|
moduleName: "Tooltip",
|
|
36793
|
-
version:
|
|
36794
|
+
version: W,
|
|
36794
36795
|
beans: [b5],
|
|
36795
36796
|
dynamicBeans: {
|
|
36796
36797
|
tooltipFeature: pg,
|
|
@@ -37086,9 +37087,9 @@ var d5 = class extends P {
|
|
|
37086
37087
|
const { eEditor: s } = this, { cellStartedEdit: o, eventKey: i, suppressPreventDefault: n } = e;
|
|
37087
37088
|
s.getInputElement().setAttribute("title", ""), t.init(s, e);
|
|
37088
37089
|
let r, a = !0;
|
|
37089
|
-
o ? (this.focusAfterAttached = !0, i ===
|
|
37090
|
+
o ? (this.focusAfterAttached = !0, i === x.BACKSPACE || i === x.DELETE ? r = "" : i && i.length === 1 ? n ? a = !1 : r = i : (r = t.getStartValue(), i !== x.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, r = t.getStartValue()), a && r != null && s.setStartValue(r), this.addGuiEventListener("keydown", (l) => {
|
|
37090
37091
|
const { key: c } = l;
|
|
37091
|
-
(c ===
|
|
37092
|
+
(c === x.PAGE_UP || c === x.PAGE_DOWN) && l.preventDefault();
|
|
37092
37093
|
});
|
|
37093
37094
|
}
|
|
37094
37095
|
afterGuiAttached() {
|
|
@@ -37163,7 +37164,7 @@ var d5 = class extends P {
|
|
|
37163
37164
|
}
|
|
37164
37165
|
getValue() {
|
|
37165
37166
|
const { eEditor: e, params: t } = this, s = e.getDate();
|
|
37166
|
-
return !
|
|
37167
|
+
return !_(s) && !_(t.value) ? t.value : s ?? null;
|
|
37167
37168
|
}
|
|
37168
37169
|
getStartValue() {
|
|
37169
37170
|
const { value: e } = this.params;
|
|
@@ -37230,7 +37231,7 @@ var d5 = class extends P {
|
|
|
37230
37231
|
}
|
|
37231
37232
|
getValue() {
|
|
37232
37233
|
const { params: e, eEditor: t } = this, s = this.formatDate(t.getDate());
|
|
37233
|
-
return !
|
|
37234
|
+
return !_(s) && !_(e.value) ? e.value : e.parseValue(s ?? "");
|
|
37234
37235
|
}
|
|
37235
37236
|
getStartValue() {
|
|
37236
37237
|
return ct(this.parseDate(this.params.value ?? void 0) ?? null, this.includeTime ?? !1);
|
|
@@ -37270,7 +37271,7 @@ var d5 = class extends P {
|
|
|
37270
37271
|
const { eEditor: t } = this, { cellStartedEdit: s, eventKey: o, maxLength: i, cols: n, rows: r } = e;
|
|
37271
37272
|
this.focusAfterAttached = s, t.getInputElement().setAttribute("title", ""), t.setMaxLength(i || 200).setCols(n || 60).setRows(r || 10);
|
|
37272
37273
|
let a;
|
|
37273
|
-
s ? (this.focusAfterAttached = !0, o ===
|
|
37274
|
+
s ? (this.focusAfterAttached = !0, o === x.BACKSPACE || o === x.DELETE ? a = "" : o && o.length === 1 ? a = o : (a = this.getStartValue(e), o !== x.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, a = this.getStartValue(e)), a != null && t.setValue(a, !0), this.addGuiEventListener("keydown", this.onKeyDown.bind(this)), this.activateTabIndex();
|
|
37274
37275
|
}
|
|
37275
37276
|
getStartValue(e) {
|
|
37276
37277
|
const { value: t } = e;
|
|
@@ -37278,7 +37279,7 @@ var d5 = class extends P {
|
|
|
37278
37279
|
}
|
|
37279
37280
|
onKeyDown(e) {
|
|
37280
37281
|
const t = e.key;
|
|
37281
|
-
(t ===
|
|
37282
|
+
(t === x.LEFT || t === x.UP || t === x.RIGHT || t === x.DOWN || e.shiftKey && t === x.ENTER) && e.stopPropagation();
|
|
37282
37283
|
}
|
|
37283
37284
|
afterGuiAttached() {
|
|
37284
37285
|
const { eEditor: e, focusAfterAttached: t, highlightAllOnFocus: s } = this, o = this.getLocaleTextFunc();
|
|
@@ -37286,7 +37287,7 @@ var d5 = class extends P {
|
|
|
37286
37287
|
}
|
|
37287
37288
|
getValue() {
|
|
37288
37289
|
const { eEditor: e, params: t } = this, { value: s } = t, o = e.getValue();
|
|
37289
|
-
return !
|
|
37290
|
+
return !_(o) && !_(s) ? s : t.parseValue(o);
|
|
37290
37291
|
}
|
|
37291
37292
|
getValidationElement() {
|
|
37292
37293
|
return this.eEditor.getInputElement();
|
|
@@ -37337,11 +37338,11 @@ var d5 = class extends P {
|
|
|
37337
37338
|
}) : a;
|
|
37338
37339
|
}
|
|
37339
37340
|
preventStepping(e) {
|
|
37340
|
-
(e.key ===
|
|
37341
|
+
(e.key === x.UP || e.key === x.DOWN) && e.preventDefault();
|
|
37341
37342
|
}
|
|
37342
37343
|
getValue() {
|
|
37343
37344
|
const { eEditor: e, params: t } = this, s = e.getValue();
|
|
37344
|
-
if (!
|
|
37345
|
+
if (!_(s) && !_(t.value))
|
|
37345
37346
|
return t.value;
|
|
37346
37347
|
let o = t.parseValue(s);
|
|
37347
37348
|
if (o == null)
|
|
@@ -37387,7 +37388,7 @@ var d5 = class extends P {
|
|
|
37387
37388
|
N(58);
|
|
37388
37389
|
return;
|
|
37389
37390
|
}
|
|
37390
|
-
this.startedByEnter = r != null ? r ===
|
|
37391
|
+
this.startedByEnter = r != null ? r === x.ENTER : !1;
|
|
37391
37392
|
let a = !1;
|
|
37392
37393
|
i.forEach((u) => {
|
|
37393
37394
|
const h = { value: u }, g = s.formatValue(e.column, null, u), p = g != null;
|
|
@@ -37455,7 +37456,7 @@ var d5 = class extends P {
|
|
|
37455
37456
|
}
|
|
37456
37457
|
getValue() {
|
|
37457
37458
|
const { eEditor: e, params: t } = this, s = e.getValue();
|
|
37458
|
-
return !
|
|
37459
|
+
return !_(s) && !_(t.value) ? t.value : t.parseValue(s);
|
|
37459
37460
|
}
|
|
37460
37461
|
getStartValue() {
|
|
37461
37462
|
const e = this.params;
|
|
@@ -37463,7 +37464,7 @@ var d5 = class extends P {
|
|
|
37463
37464
|
}
|
|
37464
37465
|
setCaret() {
|
|
37465
37466
|
bs() && this.eEditor.getInputElement().focus({ preventScroll: !0 });
|
|
37466
|
-
const e = this.eEditor, t = e.getValue(), s =
|
|
37467
|
+
const e = this.eEditor, t = e.getValue(), s = _(t) && t.length || 0;
|
|
37467
37468
|
s && e.getInputElement().setSelectionRange(s, s);
|
|
37468
37469
|
}
|
|
37469
37470
|
}, Vd = class extends Qn {
|
|
@@ -37593,7 +37594,7 @@ var t4 = { tag: "div", cls: "ag-popup-editor", attrs: { tabindex: "-1" } }, s4 =
|
|
|
37593
37594
|
}
|
|
37594
37595
|
};
|
|
37595
37596
|
function o4(e, { column: t }, s, o, i = "ui") {
|
|
37596
|
-
if (s instanceof KeyboardEvent && (s.key ===
|
|
37597
|
+
if (s instanceof KeyboardEvent && (s.key === x.TAB || s.key === x.ENTER || s.key === x.F2 || s.key === x.BACKSPACE && o))
|
|
37597
37598
|
return !0;
|
|
37598
37599
|
if (s?.shiftKey && e.rangeSvc?.getCellRanges().length != 0)
|
|
37599
37600
|
return !1;
|
|
@@ -37821,7 +37822,7 @@ var r4 = class extends P {
|
|
|
37821
37822
|
}
|
|
37822
37823
|
h = m, g || (g = p);
|
|
37823
37824
|
} else if (s instanceof KeyboardEvent && this.batch && this.strategy?.midBatchInputsAllowed(e) && this.isEditing(e, { withOpenEditor: !0 })) {
|
|
37824
|
-
const { key: m } = s, C = m ===
|
|
37825
|
+
const { key: m } = s, C = m === x.ENTER, v = m === x.ESCAPE, b = m === x.TAB;
|
|
37825
37826
|
(C || b || v) && (C || b ? Ps(a, { persist: !0 }) : v && this.revertSingleCellEdit(u), this.isBatchEditing() ? this.strategy?.cleanupEditors() : bo(a, l.getEditPositions(), { event: s, cancel: v }), s.preventDefault(), this.bulkRefresh(e, h, { suppressFlash: !0 }), h = l.getEditMap());
|
|
37826
37827
|
} else
|
|
37827
37828
|
Ps(a, { persist: !0 }), h = l.getEditMap();
|
|
@@ -37834,9 +37835,9 @@ var r4 = class extends P {
|
|
|
37834
37835
|
if (!(s instanceof KeyboardEvent) || o)
|
|
37835
37836
|
return;
|
|
37836
37837
|
const { key: n, shiftKey: r } = s, a = this.gos.get("enterNavigatesVerticallyAfterEdit");
|
|
37837
|
-
if (n !==
|
|
37838
|
+
if (n !== x.ENTER || !a)
|
|
37838
37839
|
return;
|
|
37839
|
-
const l = r ?
|
|
37840
|
+
const l = r ? x.UP : x.DOWN;
|
|
37840
37841
|
this.beans.navigation?.navigateToNextCell(null, l, t, !1);
|
|
37841
37842
|
}
|
|
37842
37843
|
processEdits(e, t = !1, s) {
|
|
@@ -38020,7 +38021,7 @@ var r4 = class extends P {
|
|
|
38020
38021
|
this.eventSvc.dispatchEvent(this.createBatchEditEvent(e, t));
|
|
38021
38022
|
}
|
|
38022
38023
|
createBatchEditEvent(e, t) {
|
|
38023
|
-
return
|
|
38024
|
+
return ee(this.gos, {
|
|
38024
38025
|
type: e,
|
|
38025
38026
|
...e === "batchEditingStopped" ? {
|
|
38026
38027
|
changes: this.toEventChangeList(t)
|
|
@@ -38228,11 +38229,11 @@ var qp = class extends P {
|
|
|
38228
38229
|
}
|
|
38229
38230
|
shouldStop(e, t, s = "ui") {
|
|
38230
38231
|
const o = this.editSvc.isBatchEditing();
|
|
38231
|
-
return o && s === "api" ? !0 : o && (s === "ui" || s === "edit") ? !1 : s === "api" ? !0 : t instanceof KeyboardEvent && !o ? t.key ===
|
|
38232
|
+
return o && s === "api" ? !0 : o && (s === "ui" || s === "edit") ? !1 : s === "api" ? !0 : t instanceof KeyboardEvent && !o ? t.key === x.ENTER : null;
|
|
38232
38233
|
}
|
|
38233
38234
|
shouldCancel(e, t, s = "ui") {
|
|
38234
38235
|
const o = this.editSvc.isBatchEditing();
|
|
38235
|
-
return !!(t instanceof KeyboardEvent && !o && t.key ===
|
|
38236
|
+
return !!(t instanceof KeyboardEvent && !o && t.key === x.ESCAPE || o && s === "api" || s === "api");
|
|
38236
38237
|
}
|
|
38237
38238
|
setEditMap(e, t) {
|
|
38238
38239
|
t?.update || this.editSvc.stopEditing(void 0, { cancel: !0, source: "api" });
|
|
@@ -38457,7 +38458,7 @@ var qp = class extends P {
|
|
|
38457
38458
|
}
|
|
38458
38459
|
}, ys = {
|
|
38459
38460
|
moduleName: "EditCore",
|
|
38460
|
-
version:
|
|
38461
|
+
version: W,
|
|
38461
38462
|
beans: [xE, m4],
|
|
38462
38463
|
apiFunctions: {
|
|
38463
38464
|
getEditingCells: q5,
|
|
@@ -38476,7 +38477,7 @@ var qp = class extends P {
|
|
|
38476
38477
|
css: [x5]
|
|
38477
38478
|
}, b4 = {
|
|
38478
38479
|
moduleName: "UndoRedoEdit",
|
|
38479
|
-
version:
|
|
38480
|
+
version: W,
|
|
38480
38481
|
beans: [R5],
|
|
38481
38482
|
apiFunctions: {
|
|
38482
38483
|
undoCellEditing: $5,
|
|
@@ -38487,12 +38488,12 @@ var qp = class extends P {
|
|
|
38487
38488
|
dependsOn: [ys]
|
|
38488
38489
|
}, S4 = {
|
|
38489
38490
|
moduleName: "TextEditor",
|
|
38490
|
-
version:
|
|
38491
|
+
version: W,
|
|
38491
38492
|
userComponents: { agCellEditor: Vd, agTextCellEditor: Vd },
|
|
38492
38493
|
dependsOn: [ys]
|
|
38493
38494
|
}, y4 = {
|
|
38494
38495
|
moduleName: "NumberEditor",
|
|
38495
|
-
version:
|
|
38496
|
+
version: W,
|
|
38496
38497
|
userComponents: {
|
|
38497
38498
|
agNumberCellEditor: {
|
|
38498
38499
|
classImp: N5
|
|
@@ -38501,7 +38502,7 @@ var qp = class extends P {
|
|
|
38501
38502
|
dependsOn: [ys]
|
|
38502
38503
|
}, R4 = {
|
|
38503
38504
|
moduleName: "DateEditor",
|
|
38504
|
-
version:
|
|
38505
|
+
version: W,
|
|
38505
38506
|
userComponents: {
|
|
38506
38507
|
agDateCellEditor: T5,
|
|
38507
38508
|
agDateStringCellEditor: k5
|
|
@@ -38509,24 +38510,24 @@ var qp = class extends P {
|
|
|
38509
38510
|
dependsOn: [ys]
|
|
38510
38511
|
}, x4 = {
|
|
38511
38512
|
moduleName: "CheckboxEditor",
|
|
38512
|
-
version:
|
|
38513
|
+
version: W,
|
|
38513
38514
|
userComponents: {
|
|
38514
38515
|
agCheckboxCellEditor: E5
|
|
38515
38516
|
},
|
|
38516
38517
|
dependsOn: [ys]
|
|
38517
38518
|
}, F4 = {
|
|
38518
38519
|
moduleName: "SelectEditor",
|
|
38519
|
-
version:
|
|
38520
|
+
version: W,
|
|
38520
38521
|
userComponents: { agSelectCellEditor: V5 },
|
|
38521
38522
|
dependsOn: [ys]
|
|
38522
38523
|
}, E4 = {
|
|
38523
38524
|
moduleName: "LargeTextEditor",
|
|
38524
|
-
version:
|
|
38525
|
+
version: W,
|
|
38525
38526
|
userComponents: { agLargeTextCellEditor: L5 },
|
|
38526
38527
|
dependsOn: [ys]
|
|
38527
38528
|
}, D4 = {
|
|
38528
38529
|
moduleName: "CustomEditor",
|
|
38529
|
-
version:
|
|
38530
|
+
version: W,
|
|
38530
38531
|
dependsOn: [ys]
|
|
38531
38532
|
}, P4 = class extends P {
|
|
38532
38533
|
constructor() {
|
|
@@ -39137,7 +39138,7 @@ function Zp(e) {
|
|
|
39137
39138
|
}
|
|
39138
39139
|
var z4 = {
|
|
39139
39140
|
moduleName: "SharedRowSelection",
|
|
39140
|
-
version:
|
|
39141
|
+
version: W,
|
|
39141
39142
|
beans: [P4],
|
|
39142
39143
|
apiFunctions: {
|
|
39143
39144
|
setNodesSelected: T4,
|
|
@@ -39152,7 +39153,7 @@ var z4 = {
|
|
|
39152
39153
|
}
|
|
39153
39154
|
}, W4 = {
|
|
39154
39155
|
moduleName: "RowSelection",
|
|
39155
|
-
version:
|
|
39156
|
+
version: W,
|
|
39156
39157
|
rowModels: ["clientSide", "infinite", "viewport"],
|
|
39157
39158
|
beans: [G4],
|
|
39158
39159
|
dependsOn: [z4]
|
|
@@ -39197,15 +39198,15 @@ function K4(e) {
|
|
|
39197
39198
|
}
|
|
39198
39199
|
var q4 = {
|
|
39199
39200
|
moduleName: "CsrmSsrmSharedApi",
|
|
39200
|
-
version:
|
|
39201
|
+
version: W,
|
|
39201
39202
|
apiFunctions: { expandAll: _4, collapseAll: U4 }
|
|
39202
39203
|
}, Y4 = {
|
|
39203
39204
|
moduleName: "RowModelSharedApi",
|
|
39204
|
-
version:
|
|
39205
|
+
version: W,
|
|
39205
39206
|
apiFunctions: { onRowHeightChanged: Qp, resetRowHeights: Xp }
|
|
39206
39207
|
}, Z4 = {
|
|
39207
39208
|
moduleName: "SsrmInfiniteSharedApi",
|
|
39208
|
-
version:
|
|
39209
|
+
version: W,
|
|
39209
39210
|
apiFunctions: {
|
|
39210
39211
|
setRowCount: $4,
|
|
39211
39212
|
getCacheBlockState: j4,
|
|
@@ -39360,7 +39361,7 @@ var q4 = {
|
|
|
39360
39361
|
}
|
|
39361
39362
|
}, X4 = {
|
|
39362
39363
|
moduleName: "AlignedGrids",
|
|
39363
|
-
version:
|
|
39364
|
+
version: W,
|
|
39364
39365
|
beans: [Q4],
|
|
39365
39366
|
dependsOn: [Qg]
|
|
39366
39367
|
}, J4 = class extends P {
|
|
@@ -39408,14 +39409,14 @@ var q4 = {
|
|
|
39408
39409
|
const R = v[S];
|
|
39409
39410
|
if (!R)
|
|
39410
39411
|
continue;
|
|
39411
|
-
let
|
|
39412
|
-
if (
|
|
39413
|
-
l.add(
|
|
39412
|
+
let F = this.getRowNode(i({ data: R, level: b }));
|
|
39413
|
+
if (F ? (p(F, R), g || (g = !!d && F.treeParent !== C)) : (F = this.createRowNode(R, b), r.add(F)), !d || l.has(F)) {
|
|
39414
|
+
l.add(F);
|
|
39414
39415
|
continue;
|
|
39415
39416
|
}
|
|
39416
|
-
l.add(
|
|
39417
|
+
l.add(F), F.treeParent = C;
|
|
39417
39418
|
const T = d(R);
|
|
39418
|
-
T && f(
|
|
39419
|
+
T && f(F, T, b + 1);
|
|
39419
39420
|
}
|
|
39420
39421
|
};
|
|
39421
39422
|
f(s, t, 0);
|
|
@@ -39605,8 +39606,8 @@ var q4 = {
|
|
|
39605
39606
|
if (S) {
|
|
39606
39607
|
let R = !1;
|
|
39607
39608
|
if (h) {
|
|
39608
|
-
const
|
|
39609
|
-
|
|
39609
|
+
const F = v.level + 1;
|
|
39610
|
+
F < h.length && (R = h[F].getSort() === null);
|
|
39610
39611
|
}
|
|
39611
39612
|
R || (y = lT(v));
|
|
39612
39613
|
} else !e.length || b || (t && s ? y = rT(a, v, s, o, e) : y = a.doFullSort(v.childrenAfterAggFilter, e));
|
|
@@ -40249,13 +40250,13 @@ function wT(e) {
|
|
|
40249
40250
|
}
|
|
40250
40251
|
var bT = {
|
|
40251
40252
|
moduleName: "ClientSideRowModel",
|
|
40252
|
-
version:
|
|
40253
|
+
version: W,
|
|
40253
40254
|
rowModels: ["clientSide"],
|
|
40254
40255
|
beans: [cT, nT],
|
|
40255
40256
|
dependsOn: [Sp]
|
|
40256
40257
|
}, ST = {
|
|
40257
40258
|
moduleName: "ClientSideRowModelApi",
|
|
40258
|
-
version:
|
|
40259
|
+
version: W,
|
|
40259
40260
|
apiFunctions: {
|
|
40260
40261
|
onGroupExpandedOrCollapsed: dT,
|
|
40261
40262
|
refreshClientSideRowModel: uT,
|
|
@@ -40299,13 +40300,13 @@ var bT = {
|
|
|
40299
40300
|
}
|
|
40300
40301
|
processRow(e, t, s, o) {
|
|
40301
40302
|
const i = t.shouldRowBeSkipped || (() => !1), r = t.rowPositions != null || !!t.onlySelected, a = this.gos.get("groupHideOpenParents") && !r, l = this.colModel.isPivotMode() ? o.leafGroup : !o.group, c = !!o.footer, d = o.allChildrenCount === 1 && o.childrenAfterGroup?.length === 1 && Gb(this.gos, o);
|
|
40302
|
-
if (!l && !c && (t.skipRowGroups || d || a) || t.onlySelected && !o.isSelected() || t.skipPinnedTop && o.rowPinned === "top" || t.skipPinnedBottom && o.rowPinned === "bottom" || o.stub || o.level === -1 && !l && !c || i(
|
|
40303
|
+
if (!l && !c && (t.skipRowGroups || d || a) || t.onlySelected && !o.isSelected() || t.skipPinnedTop && o.rowPinned === "top" || t.skipPinnedBottom && o.rowPinned === "bottom" || o.stub || o.level === -1 && !l && !c || i(ee(this.gos, { node: o })))
|
|
40303
40304
|
return;
|
|
40304
40305
|
const g = e.onNewBodyRow(o);
|
|
40305
40306
|
if (s.forEach((p, f) => {
|
|
40306
40307
|
g.onColumn(p, f, o);
|
|
40307
40308
|
}), t.getCustomContentBelowRow) {
|
|
40308
|
-
const p = t.getCustomContentBelowRow(
|
|
40309
|
+
const p = t.getCustomContentBelowRow(ee(this.gos, { node: o }));
|
|
40309
40310
|
p && e.addCustomContent(p);
|
|
40310
40311
|
}
|
|
40311
40312
|
}
|
|
@@ -40427,7 +40428,7 @@ var bT = {
|
|
|
40427
40428
|
const r = n;
|
|
40428
40429
|
let a;
|
|
40429
40430
|
s ? a = s(
|
|
40430
|
-
|
|
40431
|
+
ee(this.gos, {
|
|
40431
40432
|
columnGroup: r
|
|
40432
40433
|
})
|
|
40433
40434
|
) : a = this.beans.colNames.getDisplayNameForColumnGroup(r, "header");
|
|
@@ -40449,7 +40450,7 @@ var bT = {
|
|
|
40449
40450
|
}
|
|
40450
40451
|
}, RT = {
|
|
40451
40452
|
moduleName: "SharedExport",
|
|
40452
|
-
version:
|
|
40453
|
+
version: W,
|
|
40453
40454
|
beans: [yT]
|
|
40454
40455
|
}, Wd = `\r
|
|
40455
40456
|
`, xT = class extends XD {
|
|
@@ -40525,7 +40526,7 @@ var bT = {
|
|
|
40525
40526
|
N(51);
|
|
40526
40527
|
return;
|
|
40527
40528
|
}
|
|
40528
|
-
const t = this.getMergedParams(e), s = this.getData(t), o = new Blob(["\uFEFF", s], { type: "text/plain" }), i = typeof t.fileName == "function" ? t.fileName(
|
|
40529
|
+
const t = this.getMergedParams(e), s = this.getData(t), o = new Blob(["\uFEFF", s], { type: "text/plain" }), i = typeof t.fileName == "function" ? t.fileName(ee(this.gos, {})) : t.fileName;
|
|
40529
40530
|
JD(this.getFileName(i), o);
|
|
40530
40531
|
}
|
|
40531
40532
|
exportDataAsCsv(e) {
|
|
@@ -40573,7 +40574,7 @@ function DT(e, t) {
|
|
|
40573
40574
|
}
|
|
40574
40575
|
var PT = {
|
|
40575
40576
|
moduleName: "CsvExport",
|
|
40576
|
-
version:
|
|
40577
|
+
version: W,
|
|
40577
40578
|
beans: [FT],
|
|
40578
40579
|
apiFunctions: {
|
|
40579
40580
|
getDataAsCsv: ET,
|
|
@@ -40629,7 +40630,7 @@ var PT = {
|
|
|
40629
40630
|
};
|
|
40630
40631
|
}
|
|
40631
40632
|
setDataAndId(e, t, s) {
|
|
40632
|
-
|
|
40633
|
+
_(t) ? e.setDataAndId(t, s.toString()) : e.setDataAndId(void 0, void 0);
|
|
40633
40634
|
}
|
|
40634
40635
|
loadFromDatasource() {
|
|
40635
40636
|
const e = this.createLoadParams();
|
|
@@ -40656,7 +40657,7 @@ var PT = {
|
|
|
40656
40657
|
failCallback: this.pageLoadFailed.bind(this, s),
|
|
40657
40658
|
sortModel: o,
|
|
40658
40659
|
filterModel: i,
|
|
40659
|
-
context:
|
|
40660
|
+
context: ee(n, {}).context
|
|
40660
40661
|
};
|
|
40661
40662
|
}
|
|
40662
40663
|
forEachNode(e, t, s) {
|
|
@@ -40768,7 +40769,7 @@ var PT = {
|
|
|
40768
40769
|
}
|
|
40769
40770
|
}
|
|
40770
40771
|
setRowCount(e, t) {
|
|
40771
|
-
this.rowCount = e,
|
|
40772
|
+
this.rowCount = e, _(t) && (this.lastRowIndexKnown = t), this.lastRowIndexKnown || this.rowCount % this.params.blockSize === 0 && this.rowCount++, this.onCacheUpdated();
|
|
40772
40773
|
}
|
|
40773
40774
|
forEachNodeDeep(e) {
|
|
40774
40775
|
const t = { value: 0 };
|
|
@@ -41051,12 +41052,12 @@ var HT = class extends P {
|
|
|
41051
41052
|
}
|
|
41052
41053
|
}, NT = {
|
|
41053
41054
|
moduleName: "InfiniteRowModelCore",
|
|
41054
|
-
version:
|
|
41055
|
+
version: W,
|
|
41055
41056
|
rowModels: ["infinite"],
|
|
41056
41057
|
beans: [kT, HT]
|
|
41057
41058
|
}, GT = {
|
|
41058
41059
|
moduleName: "InfiniteRowModel",
|
|
41059
|
-
version:
|
|
41060
|
+
version: W,
|
|
41060
41061
|
apiFunctions: {
|
|
41061
41062
|
refreshInfiniteCache: AT,
|
|
41062
41063
|
purgeInfiniteCache: LT,
|
|
@@ -41077,7 +41078,7 @@ var HT = class extends P {
|
|
|
41077
41078
|
this.refresh(e, !0);
|
|
41078
41079
|
}
|
|
41079
41080
|
showDelta(e, t) {
|
|
41080
|
-
const s = Math.abs(t), o = e.formatValue(s), i =
|
|
41081
|
+
const s = Math.abs(t), o = e.formatValue(s), i = _(o) ? o : s, n = t >= 0, r = this.eDelta;
|
|
41081
41082
|
n ? r.textContent = VT + i : r.textContent = BT + i, r.classList.toggle("ag-value-change-delta-up", n), r.classList.toggle("ag-value-change-delta-down", !n);
|
|
41082
41083
|
}
|
|
41083
41084
|
setTimerToRemoveDelta() {
|
|
@@ -41094,7 +41095,7 @@ var HT = class extends P {
|
|
|
41094
41095
|
}
|
|
41095
41096
|
refresh(e, t = !1) {
|
|
41096
41097
|
const { value: s, valueFormatted: o } = e, { eValue: i, lastValue: n, beans: r } = this;
|
|
41097
|
-
if (s === n || (
|
|
41098
|
+
if (s === n || (_(o) ? i.textContent = o : _(s) ? i.textContent = s : it(i), r.filterManager?.isSuppressFlashingCellsBecauseFiltering()))
|
|
41098
41099
|
return !1;
|
|
41099
41100
|
const a = s && typeof s == "object" && "toNumber" in s ? s.toNumber() : s, l = n && typeof n == "object" && "toNumber" in n ? n.toNumber() : n;
|
|
41100
41101
|
if (a === l)
|
|
@@ -41137,7 +41138,7 @@ var HT = class extends P {
|
|
|
41137
41138
|
return !1;
|
|
41138
41139
|
t || this.addSlideAnimation(), this.lastValue = s;
|
|
41139
41140
|
const o = this.eCurrent;
|
|
41140
|
-
return
|
|
41141
|
+
return _(e.valueFormatted) ? o.textContent = e.valueFormatted : _(e.value) ? o.textContent = s : it(o), !0;
|
|
41141
41142
|
}
|
|
41142
41143
|
}, jT = class extends P {
|
|
41143
41144
|
constructor() {
|
|
@@ -41217,7 +41218,7 @@ function KT(e, t = {}) {
|
|
|
41217
41218
|
}
|
|
41218
41219
|
var qT = {
|
|
41219
41220
|
moduleName: "HighlightChanges",
|
|
41220
|
-
version:
|
|
41221
|
+
version: W,
|
|
41221
41222
|
beans: [jT],
|
|
41222
41223
|
userComponents: {
|
|
41223
41224
|
agAnimateShowChangeCellRenderer: WT,
|
|
@@ -41234,7 +41235,7 @@ function ZT(e, t, s) {
|
|
|
41234
41235
|
return e.stateSvc?.setState(t, s);
|
|
41235
41236
|
}
|
|
41236
41237
|
function _d(e) {
|
|
41237
|
-
return e = { ...e }, e.version || (e.version = "32.1.0"), e.version === "32.1.0" && (e = QT(e)), e.version =
|
|
41238
|
+
return e = { ...e }, e.version || (e.version = "32.1.0"), e.version === "32.1.0" && (e = QT(e)), e.version = W, e;
|
|
41238
41239
|
}
|
|
41239
41240
|
function QT(e) {
|
|
41240
41241
|
return e.cellSelection = XT(e, "rangeSelection"), e;
|
|
@@ -41426,55 +41427,55 @@ var JT = class extends P {
|
|
|
41426
41427
|
columnOrder: u
|
|
41427
41428
|
} = e;
|
|
41428
41429
|
let h = !1;
|
|
41429
|
-
const g = (
|
|
41430
|
-
const
|
|
41431
|
-
return h || (h =
|
|
41432
|
-
}, p = {}, f = (
|
|
41433
|
-
let D = p[
|
|
41434
|
-
return D || (D = { colId:
|
|
41430
|
+
const g = (E, D) => {
|
|
41431
|
+
const B = !o?.has(E) && !!(D || t === "api");
|
|
41432
|
+
return h || (h = B), B;
|
|
41433
|
+
}, p = {}, f = (E) => {
|
|
41434
|
+
let D = p[E];
|
|
41435
|
+
return D || (D = { colId: E }, p[E] = D, D);
|
|
41435
41436
|
}, m = {}, C = g("sort", i);
|
|
41436
|
-
C && i?.sortModel.forEach(({ colId:
|
|
41437
|
-
const
|
|
41438
|
-
|
|
41437
|
+
C && i?.sortModel.forEach(({ colId: E, sort: D }, B) => {
|
|
41438
|
+
const J = f(E);
|
|
41439
|
+
J.sort = D, J.sortIndex = B;
|
|
41439
41440
|
}), (C || !s) && (m.sort = null, m.sortIndex = null);
|
|
41440
41441
|
const v = g("rowGroup", n);
|
|
41441
|
-
v && n?.groupColIds.forEach((
|
|
41442
|
-
const
|
|
41443
|
-
|
|
41442
|
+
v && n?.groupColIds.forEach((E, D) => {
|
|
41443
|
+
const B = f(E);
|
|
41444
|
+
B.rowGroup = !0, B.rowGroupIndex = D;
|
|
41444
41445
|
}), (v || !s) && (m.rowGroup = null, m.rowGroupIndex = null);
|
|
41445
41446
|
const b = g("aggregation", r);
|
|
41446
|
-
b && r?.aggregationModel.forEach(({ colId:
|
|
41447
|
-
f(
|
|
41447
|
+
b && r?.aggregationModel.forEach(({ colId: E, aggFunc: D }) => {
|
|
41448
|
+
f(E).aggFunc = D;
|
|
41448
41449
|
}), (b || !s) && (m.aggFunc = null);
|
|
41449
41450
|
const S = g("pivot", a);
|
|
41450
|
-
S && (a?.pivotColIds.forEach((
|
|
41451
|
-
const
|
|
41452
|
-
|
|
41451
|
+
S && (a?.pivotColIds.forEach((E, D) => {
|
|
41452
|
+
const B = f(E);
|
|
41453
|
+
B.pivot = !0, B.pivotIndex = D;
|
|
41453
41454
|
}), this.gos.updateGridOptions({
|
|
41454
41455
|
options: { pivotMode: !!a?.pivotMode },
|
|
41455
41456
|
source: t
|
|
41456
41457
|
})), (S || !s) && (m.pivot = null, m.pivotIndex = null);
|
|
41457
41458
|
const y = g("columnPinning", l);
|
|
41458
41459
|
if (y) {
|
|
41459
|
-
for (const
|
|
41460
|
-
f(
|
|
41461
|
-
for (const
|
|
41462
|
-
f(
|
|
41460
|
+
for (const E of l?.leftColIds ?? [])
|
|
41461
|
+
f(E).pinned = "left";
|
|
41462
|
+
for (const E of l?.rightColIds ?? [])
|
|
41463
|
+
f(E).pinned = "right";
|
|
41463
41464
|
}
|
|
41464
41465
|
(y || !s) && (m.pinned = null);
|
|
41465
41466
|
const R = g("columnVisibility", c);
|
|
41466
41467
|
if (R)
|
|
41467
|
-
for (const
|
|
41468
|
-
f(
|
|
41468
|
+
for (const E of c?.hiddenColIds ?? [])
|
|
41469
|
+
f(E).hide = !0;
|
|
41469
41470
|
(R || !s) && (m.hide = null);
|
|
41470
|
-
const
|
|
41471
|
-
if (
|
|
41472
|
-
for (const { colId:
|
|
41473
|
-
const
|
|
41474
|
-
|
|
41475
|
-
}
|
|
41476
|
-
(
|
|
41477
|
-
const T = u?.orderedColIds, H = !!T?.length && !o?.has("columnOrder"), M = H ? T.map((
|
|
41471
|
+
const F = g("columnSizing", d);
|
|
41472
|
+
if (F)
|
|
41473
|
+
for (const { colId: E, flex: D, width: B } of d?.columnSizingModel ?? []) {
|
|
41474
|
+
const J = f(E);
|
|
41475
|
+
J.flex = D ?? null, J.width = B;
|
|
41476
|
+
}
|
|
41477
|
+
(F || !s) && (m.flex = null);
|
|
41478
|
+
const T = u?.orderedColIds, H = !!T?.length && !o?.has("columnOrder"), M = H ? T.map((E) => f(E)) : Object.values(p);
|
|
41478
41479
|
(M.length || h) && (this.columnStates = M, yt(
|
|
41479
41480
|
this.beans,
|
|
41480
41481
|
{
|
|
@@ -41739,7 +41740,7 @@ var JT = class extends P {
|
|
|
41739
41740
|
}
|
|
41740
41741
|
}, e6 = {
|
|
41741
41742
|
moduleName: "GridState",
|
|
41742
|
-
version:
|
|
41743
|
+
version: W,
|
|
41743
41744
|
beans: [JT],
|
|
41744
41745
|
apiFunctions: {
|
|
41745
41746
|
getState: YT,
|
|
@@ -41923,7 +41924,7 @@ var u6 = class extends P {
|
|
|
41923
41924
|
this.addManagedListeners(t, {
|
|
41924
41925
|
click: s,
|
|
41925
41926
|
keydown: (o) => {
|
|
41926
|
-
(o.key ===
|
|
41927
|
+
(o.key === x.ENTER || o.key === x.SPACE) && (o.preventDefault(), s());
|
|
41927
41928
|
}
|
|
41928
41929
|
});
|
|
41929
41930
|
}
|
|
@@ -42158,7 +42159,7 @@ var u6 = class extends P {
|
|
|
42158
42159
|
this.currentPage = e;
|
|
42159
42160
|
}
|
|
42160
42161
|
get pageSize() {
|
|
42161
|
-
return
|
|
42162
|
+
return _(this.pageSizeAutoCalculated) && this.gos.get("paginationAutoPageSize") ? this.pageSizeAutoCalculated : _(this.pageSizeFromPageSizeSelector) ? this.pageSizeFromPageSizeSelector : _(this.pageSizeFromInitialState) ? this.pageSizeFromInitialState : _(this.pageSizeFromGridOptions) ? this.pageSizeFromGridOptions : this.defaultPageSize;
|
|
42162
42163
|
}
|
|
42163
42164
|
calculatePages() {
|
|
42164
42165
|
this.active ? this.paginateChildRows ? this.calculatePagesAllRows() : this.calculatePagesMasterRowsOnly() : this.calculatedPagesNotActive(), this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex, this.bottomDisplayedRowIndex);
|
|
@@ -42241,7 +42242,7 @@ var u6 = class extends P {
|
|
|
42241
42242
|
}
|
|
42242
42243
|
}, w6 = {
|
|
42243
42244
|
moduleName: "Pagination",
|
|
42244
|
-
version:
|
|
42245
|
+
version: W,
|
|
42245
42246
|
beans: [v6, u6],
|
|
42246
42247
|
icons: {
|
|
42247
42248
|
// "go to first" button in pagination controls
|
|
@@ -42300,7 +42301,7 @@ function P6(e) {
|
|
|
42300
42301
|
}
|
|
42301
42302
|
var T6 = {
|
|
42302
42303
|
moduleName: "RowApi",
|
|
42303
|
-
version:
|
|
42304
|
+
version: W,
|
|
42304
42305
|
apiFunctions: {
|
|
42305
42306
|
redrawRows: b6,
|
|
42306
42307
|
setRowNodeExpanded: tf,
|
|
@@ -42315,7 +42316,7 @@ var T6 = {
|
|
|
42315
42316
|
}
|
|
42316
42317
|
}, M6 = {
|
|
42317
42318
|
moduleName: "ScrollApi",
|
|
42318
|
-
version:
|
|
42319
|
+
version: W,
|
|
42319
42320
|
apiFunctions: {
|
|
42320
42321
|
getVerticalPixelRange: W5,
|
|
42321
42322
|
getHorizontalPixelRange: _5,
|
|
@@ -42373,7 +42374,7 @@ function N6(e, t = {}) {
|
|
|
42373
42374
|
}
|
|
42374
42375
|
var G6 = {
|
|
42375
42376
|
moduleName: "RenderApi",
|
|
42376
|
-
version:
|
|
42377
|
+
version: W,
|
|
42377
42378
|
apiFunctions: {
|
|
42378
42379
|
setGridAriaProperty: I6,
|
|
42379
42380
|
refreshCells: k6,
|
|
@@ -42466,17 +42467,17 @@ var z6 = class extends P {
|
|
|
42466
42467
|
for (const R of o) {
|
|
42467
42468
|
if (!R || e0(R))
|
|
42468
42469
|
continue;
|
|
42469
|
-
const
|
|
42470
|
-
if (!
|
|
42470
|
+
const F = g.getCol(R);
|
|
42471
|
+
if (!F || m.has(F))
|
|
42471
42472
|
continue;
|
|
42472
|
-
const T = p.getPreferredWidthForColumn(
|
|
42473
|
+
const T = p.getPreferredWidthForColumn(F, b);
|
|
42473
42474
|
if (T > 0) {
|
|
42474
|
-
const H = v[
|
|
42475
|
+
const H = v[F.colId] ?? {};
|
|
42475
42476
|
H.minWidth ?? (H.minWidth = l), H.maxWidth ?? (H.maxWidth = a);
|
|
42476
|
-
const M = W6(
|
|
42477
|
-
|
|
42477
|
+
const M = W6(F, T, H);
|
|
42478
|
+
F.setActualWidth(M, d), m.add(F), C++;
|
|
42478
42479
|
}
|
|
42479
|
-
y.push(
|
|
42480
|
+
y.push(F);
|
|
42480
42481
|
}
|
|
42481
42482
|
y.length && f.refresh(d);
|
|
42482
42483
|
}
|
|
@@ -42597,7 +42598,7 @@ var z6 = class extends P {
|
|
|
42597
42598
|
const f = p / _t(l);
|
|
42598
42599
|
let m = p;
|
|
42599
42600
|
for (let C = l.length - 1; C >= 0; C--) {
|
|
42600
|
-
const v = l[C], b = i?.[v.getId()], S = b?.minWidth ?? o?.defaultMinWidth, y = b?.maxWidth ?? o?.defaultMaxWidth, R = v.getMinWidth(),
|
|
42601
|
+
const v = l[C], b = i?.[v.getId()], S = b?.minWidth ?? o?.defaultMinWidth, y = b?.maxWidth ?? o?.defaultMaxWidth, R = v.getMinWidth(), F = v.getMaxWidth(), T = typeof S == "number" && S > R ? S : R, H = typeof y == "number" && y < F ? y : F;
|
|
42601
42602
|
let M = Math.round(v.getActualWidth() * f);
|
|
42602
42603
|
M < T ? (M = T, h(v), u = !1) : M > H ? (M = H, h(v), u = !1) : C === 0 && (M = m), v.setActualWidth(M, t, !0), m -= M;
|
|
42603
42604
|
}
|
|
@@ -42662,7 +42663,7 @@ function Ud({ ctrlsSvc: e, scrollVisibleSvc: t }) {
|
|
|
42662
42663
|
}
|
|
42663
42664
|
var _6 = {
|
|
42664
42665
|
moduleName: "ColumnAutoSize",
|
|
42665
|
-
version:
|
|
42666
|
+
version: W,
|
|
42666
42667
|
beans: [z6],
|
|
42667
42668
|
apiFunctions: {
|
|
42668
42669
|
sizeColumnsToFit: V6,
|
|
@@ -42691,7 +42692,7 @@ function Y6(e, t, s) {
|
|
|
42691
42692
|
}
|
|
42692
42693
|
var Z6 = {
|
|
42693
42694
|
moduleName: "PinnedRow",
|
|
42694
|
-
version:
|
|
42695
|
+
version: W,
|
|
42695
42696
|
beans: [t2],
|
|
42696
42697
|
css: [U6],
|
|
42697
42698
|
apiFunctions: {
|
|
@@ -42770,7 +42771,7 @@ var Z6 = {
|
|
|
42770
42771
|
}
|
|
42771
42772
|
const y = n.getValue(t, b);
|
|
42772
42773
|
if (g) {
|
|
42773
|
-
const R =
|
|
42774
|
+
const R = ee(s, {
|
|
42774
42775
|
valueA: m,
|
|
42775
42776
|
nodeA: p,
|
|
42776
42777
|
valueB: y,
|
|
@@ -43121,7 +43122,7 @@ var Z6 = {
|
|
|
43121
43122
|
}
|
|
43122
43123
|
}, oM = {
|
|
43123
43124
|
moduleName: "CellSpan",
|
|
43124
|
-
version:
|
|
43125
|
+
version: W,
|
|
43125
43126
|
beans: [J6, sM]
|
|
43126
43127
|
}, iM = class extends P {
|
|
43127
43128
|
constructor(e, t) {
|
|
@@ -43165,7 +43166,7 @@ var Z6 = {
|
|
|
43165
43166
|
}
|
|
43166
43167
|
getCellClassParams(e, t) {
|
|
43167
43168
|
const { value: s, rowNode: o } = this.cellCtrl;
|
|
43168
|
-
return
|
|
43169
|
+
return ee(this.beans.gos, {
|
|
43169
43170
|
value: s,
|
|
43170
43171
|
data: o.data,
|
|
43171
43172
|
node: o,
|
|
@@ -43205,11 +43206,11 @@ var Z6 = {
|
|
|
43205
43206
|
}
|
|
43206
43207
|
}, rM = {
|
|
43207
43208
|
moduleName: "CellStyle",
|
|
43208
|
-
version:
|
|
43209
|
+
version: W,
|
|
43209
43210
|
beans: [nM]
|
|
43210
43211
|
}, aM = {
|
|
43211
43212
|
moduleName: "RowStyle",
|
|
43212
|
-
version:
|
|
43213
|
+
version: W,
|
|
43213
43214
|
beans: [jE]
|
|
43214
43215
|
};
|
|
43215
43216
|
function lM(e, t) {
|
|
@@ -43291,7 +43292,7 @@ var cM = class extends P {
|
|
|
43291
43292
|
}
|
|
43292
43293
|
}, hM = {
|
|
43293
43294
|
moduleName: "ColumnHover",
|
|
43294
|
-
version:
|
|
43295
|
+
version: W,
|
|
43295
43296
|
beans: [uM],
|
|
43296
43297
|
apiFunctions: {
|
|
43297
43298
|
isColumnHovered: lM
|
|
@@ -43361,7 +43362,7 @@ function CM(e, t) {
|
|
|
43361
43362
|
}
|
|
43362
43363
|
var vM = {
|
|
43363
43364
|
moduleName: "EventApi",
|
|
43364
|
-
version:
|
|
43365
|
+
version: W,
|
|
43365
43366
|
apiFunctions: {
|
|
43366
43367
|
addEventListener: pM,
|
|
43367
43368
|
addGlobalListener: mM,
|
|
@@ -43371,7 +43372,7 @@ var vM = {
|
|
|
43371
43372
|
beans: [gM]
|
|
43372
43373
|
}, wM = {
|
|
43373
43374
|
moduleName: "Locale",
|
|
43374
|
-
version:
|
|
43375
|
+
version: W,
|
|
43375
43376
|
beans: [jD]
|
|
43376
43377
|
}, bM = class extends P {
|
|
43377
43378
|
constructor() {
|
|
@@ -43503,11 +43504,11 @@ var vM = {
|
|
|
43503
43504
|
}
|
|
43504
43505
|
}, SM = {
|
|
43505
43506
|
moduleName: "RowAutoHeight",
|
|
43506
|
-
version:
|
|
43507
|
+
version: W,
|
|
43507
43508
|
beans: [bM]
|
|
43508
43509
|
}, yM = {
|
|
43509
43510
|
moduleName: "AllCommunity",
|
|
43510
|
-
version:
|
|
43511
|
+
version: W,
|
|
43511
43512
|
dependsOn: [
|
|
43512
43513
|
bT,
|
|
43513
43514
|
PT,
|
|
@@ -43631,7 +43632,7 @@ function On(e, t, s) {
|
|
|
43631
43632
|
return o.length === e.length && i.length === 0 ? e : o.length === 0 && i.length === t.length ? t : o.length === 0 ? i : i.length === 0 ? o : [...o, ...i];
|
|
43632
43633
|
}
|
|
43633
43634
|
var af = Ci((e, t) => {
|
|
43634
|
-
const { registry: s, context: o } = Ge(Ye), i = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [m, C] = A(() => new wt()), [v, b] = A(() => new wt("ag-hidden")), [S, y] = A(() => new wt("ag-hidden")), [R,
|
|
43635
|
+
const { registry: s, context: o } = Ge(Ye), i = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [m, C] = A(() => new wt()), [v, b] = A(() => new wt("ag-hidden")), [S, y] = A(() => new wt("ag-hidden")), [R, F] = A(() => new wt("ag-invisible"));
|
|
43635
43636
|
$a(t, () => ({
|
|
43636
43637
|
// force new instance when grid tries to refresh
|
|
43637
43638
|
refresh() {
|
|
@@ -43651,10 +43652,10 @@ var af = Ci((e, t) => {
|
|
|
43651
43652
|
toggleCss: (V, se) => C((Q) => Q.setClass(V, se)),
|
|
43652
43653
|
setContractedDisplayed: (V) => y((se) => se.setClass("ag-hidden", !V)),
|
|
43653
43654
|
setExpandedDisplayed: (V) => b((se) => se.setClass("ag-hidden", !V)),
|
|
43654
|
-
setCheckboxVisible: (V) =>
|
|
43655
|
-
setCheckboxSpacing: (V) =>
|
|
43656
|
-
},
|
|
43657
|
-
|
|
43655
|
+
setCheckboxVisible: (V) => F((se) => se.setClass("ag-invisible", !V)),
|
|
43656
|
+
setCheckboxSpacing: (V) => F((se) => se.setClass("ag-group-checkbox-spacing", V))
|
|
43657
|
+
}, te = s.createDynamicBean("groupCellRendererCtrl", !0);
|
|
43658
|
+
te && (c.current = o.createBean(te), c.current.init(
|
|
43658
43659
|
k,
|
|
43659
43660
|
j,
|
|
43660
43661
|
r.current,
|
|
@@ -43663,10 +43664,10 @@ var af = Ci((e, t) => {
|
|
|
43663
43664
|
af,
|
|
43664
43665
|
e
|
|
43665
43666
|
));
|
|
43666
|
-
}, []), H =
|
|
43667
|
+
}, []), H = z(() => `ag-cell-wrapper ${m.toString()}`, [m]), M = z(() => `ag-group-expanded ${v.toString()}`, [v]), E = z(
|
|
43667
43668
|
() => `ag-group-contracted ${S.toString()}`,
|
|
43668
43669
|
[S]
|
|
43669
|
-
), D =
|
|
43670
|
+
), D = z(() => `ag-group-checkbox ${R.toString()}`, [R]), B = d?.componentFromFramework, J = B ? d.componentClass : void 0, I = d == null && p != null, ne = ko(p);
|
|
43670
43671
|
return /* @__PURE__ */ G.createElement(
|
|
43671
43672
|
"span",
|
|
43672
43673
|
{
|
|
@@ -43675,9 +43676,9 @@ var af = Ci((e, t) => {
|
|
|
43675
43676
|
...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
|
|
43676
43677
|
},
|
|
43677
43678
|
/* @__PURE__ */ G.createElement("span", { className: M, ref: a }),
|
|
43678
|
-
/* @__PURE__ */ G.createElement("span", { className:
|
|
43679
|
+
/* @__PURE__ */ G.createElement("span", { className: E, ref: l }),
|
|
43679
43680
|
/* @__PURE__ */ G.createElement("span", { className: D, ref: r }),
|
|
43680
|
-
/* @__PURE__ */ G.createElement("span", { className: "ag-group-value", ref: n }, I ? ne :
|
|
43681
|
+
/* @__PURE__ */ G.createElement("span", { className: "ag-group-value", ref: n }, I ? ne : B ? /* @__PURE__ */ G.createElement(J, { ...d.params }) : null),
|
|
43681
43682
|
/* @__PURE__ */ G.createElement("span", { className: "ag-group-child-count" }, h)
|
|
43682
43683
|
);
|
|
43683
43684
|
}), jd = af, Xl = Wa({
|
|
@@ -44162,7 +44163,7 @@ var UM = 1e3, $M = class {
|
|
|
44162
44163
|
), ve(() => {
|
|
44163
44164
|
e.setDragSource(l.current);
|
|
44164
44165
|
}, [o]);
|
|
44165
|
-
const p =
|
|
44166
|
+
const p = z(() => !!(o?.componentFromFramework && Oo(o.componentClass)), [o]), f = o?.componentFromFramework, m = o?.componentClass;
|
|
44166
44167
|
return /* @__PURE__ */ G.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ G.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ G.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ G.createElement(m, { ...o.params }) : /* @__PURE__ */ G.createElement(m, { ...o.params, ref: u }) : null));
|
|
44167
44168
|
}, KM = tt(jM), qM = class {
|
|
44168
44169
|
constructor(e, t) {
|
|
@@ -44185,7 +44186,7 @@ var UM = 1e3, $M = class {
|
|
|
44185
44186
|
() => new wt("ag-header-cell", "ag-floating-filter")
|
|
44186
44187
|
), [a, l] = A(() => new wt()), [c, d] = A(
|
|
44187
44188
|
() => new wt("ag-floating-filter-button", "ag-hidden")
|
|
44188
|
-
), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = O(), C = O(null), v = O(null), b = O(null), S = O(null), y = O(), R = O(),
|
|
44189
|
+
), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = O(), C = O(null), v = O(null), b = O(null), S = O(null), y = O(), R = O(), F = (V) => {
|
|
44189
44190
|
V != null && y.current && y.current(V);
|
|
44190
44191
|
}, T = U((V) => {
|
|
44191
44192
|
if (C.current = V, !V || !e.isAlive() || t.isDestroyed()) {
|
|
@@ -44212,34 +44213,34 @@ var UM = 1e3, $M = class {
|
|
|
44212
44213
|
e.setComp(se, V, S.current, v.current, m.current);
|
|
44213
44214
|
}, []);
|
|
44214
44215
|
Lt(
|
|
44215
|
-
() => Ei(g, t, v.current,
|
|
44216
|
+
() => Ei(g, t, v.current, F),
|
|
44216
44217
|
[g]
|
|
44217
44218
|
);
|
|
44218
|
-
const H =
|
|
44219
|
+
const H = z(() => n.toString(), [n]), M = z(() => a.toString(), [a]), E = z(() => c.toString(), [c]), D = z(() => !!(g && g.componentFromFramework && Oo(g.componentClass)), [g]), B = z(() => s.get("reactiveCustomComponents"), []), J = z(() => s.get("enableFilterHandlers"), []), [I, ne] = A();
|
|
44219
44220
|
ve(() => {
|
|
44220
44221
|
if (g?.componentFromFramework)
|
|
44221
|
-
if (
|
|
44222
|
-
const V =
|
|
44223
|
-
|
|
44222
|
+
if (B) {
|
|
44223
|
+
const V = J ? qM : OM, se = new V(g.params, () => f((Q) => Q + 1));
|
|
44224
|
+
F(se), ne(se);
|
|
44224
44225
|
} else
|
|
44225
44226
|
Jl();
|
|
44226
44227
|
}, [g]);
|
|
44227
|
-
const j = I?.getProps(), k = g?.componentFromFramework,
|
|
44228
|
-
return /* @__PURE__ */ G.createElement("div", { ref: T, style: o, className: H, role: "gridcell" }, /* @__PURE__ */ G.createElement("div", { ref: v, className: M, role: "presentation" }, k ?
|
|
44228
|
+
const j = I?.getProps(), k = g?.componentFromFramework, te = g?.componentClass;
|
|
44229
|
+
return /* @__PURE__ */ G.createElement("div", { ref: T, style: o, className: H, role: "gridcell" }, /* @__PURE__ */ G.createElement("div", { ref: v, className: M, role: "presentation" }, k ? B ? j && /* @__PURE__ */ G.createElement(
|
|
44229
44230
|
Xl.Provider,
|
|
44230
44231
|
{
|
|
44231
44232
|
value: {
|
|
44232
44233
|
setMethods: (V) => I.setMethods(V)
|
|
44233
44234
|
}
|
|
44234
44235
|
},
|
|
44235
|
-
/* @__PURE__ */ G.createElement(
|
|
44236
|
-
) : /* @__PURE__ */ G.createElement(
|
|
44237
|
-
} :
|
|
44236
|
+
/* @__PURE__ */ G.createElement(te, { ...j })
|
|
44237
|
+
) : /* @__PURE__ */ G.createElement(te, { ...g.params, ref: D ? () => {
|
|
44238
|
+
} : F }) : null), /* @__PURE__ */ G.createElement(
|
|
44238
44239
|
"div",
|
|
44239
44240
|
{
|
|
44240
44241
|
ref: b,
|
|
44241
44242
|
"aria-hidden": u,
|
|
44242
|
-
className:
|
|
44243
|
+
className: E,
|
|
44243
44244
|
role: "presentation"
|
|
44244
44245
|
},
|
|
44245
44246
|
/* @__PURE__ */ G.createElement(
|
|
@@ -44260,24 +44261,24 @@ var UM = 1e3, $M = class {
|
|
|
44260
44261
|
}
|
|
44261
44262
|
p.current = t.createBean(new Ao());
|
|
44262
44263
|
const M = {
|
|
44263
|
-
setWidth: (
|
|
44264
|
-
f.current && (f.current.style.width =
|
|
44264
|
+
setWidth: (E) => {
|
|
44265
|
+
f.current && (f.current.style.width = E);
|
|
44265
44266
|
},
|
|
44266
|
-
toggleCss: (
|
|
44267
|
-
setUserStyles: (
|
|
44268
|
-
setHeaderWrapperHidden: (
|
|
44267
|
+
toggleCss: (E, D) => n((B) => B.setClass(E, D)),
|
|
44268
|
+
setUserStyles: (E) => o(E),
|
|
44269
|
+
setHeaderWrapperHidden: (E) => {
|
|
44269
44270
|
const D = C.current;
|
|
44270
|
-
D && (
|
|
44271
|
+
D && (E ? D.style.setProperty("display", "none") : D.style.removeProperty("display"));
|
|
44271
44272
|
},
|
|
44272
|
-
setHeaderWrapperMaxHeight: (
|
|
44273
|
+
setHeaderWrapperMaxHeight: (E) => {
|
|
44273
44274
|
const D = C.current;
|
|
44274
|
-
D && (
|
|
44275
|
+
D && (E != null ? D.style.setProperty("max-height", `${E}px`) : D.style.removeProperty("max-height"), D.classList.toggle("ag-header-cell-comp-wrapper-limited-height", E != null));
|
|
44275
44276
|
},
|
|
44276
|
-
setUserCompDetails: (
|
|
44277
|
-
setResizableDisplayed: (
|
|
44278
|
-
a((D) => D.setClass("ag-hidden", !
|
|
44277
|
+
setUserCompDetails: (E) => g(E),
|
|
44278
|
+
setResizableDisplayed: (E) => {
|
|
44279
|
+
a((D) => D.setClass("ag-hidden", !E)), c(E ? "false" : "true");
|
|
44279
44280
|
},
|
|
44280
|
-
setAriaExpanded: (
|
|
44281
|
+
setAriaExpanded: (E) => u(E),
|
|
44281
44282
|
getUserCompInstance: () => v.current || void 0
|
|
44282
44283
|
};
|
|
44283
44284
|
e.setComp(M, H, m.current, C.current, p.current);
|
|
@@ -44285,34 +44286,34 @@ var UM = 1e3, $M = class {
|
|
|
44285
44286
|
Lt(() => Ei(h, t, C.current), [h]), ve(() => {
|
|
44286
44287
|
f.current && e.setDragSource(f.current);
|
|
44287
44288
|
}, [h]);
|
|
44288
|
-
const S =
|
|
44289
|
+
const S = z(() => !!(h?.componentFromFramework && Oo(h.componentClass)), [h]), y = z(() => "ag-header-group-cell " + i.toString(), [i]), R = z(
|
|
44289
44290
|
() => "ag-header-cell-resize " + r.toString(),
|
|
44290
44291
|
[r]
|
|
44291
|
-
),
|
|
44292
|
-
return /* @__PURE__ */ G.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ G.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" },
|
|
44292
|
+
), F = h?.componentFromFramework, T = h?.componentClass;
|
|
44293
|
+
return /* @__PURE__ */ G.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ G.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, F ? S ? /* @__PURE__ */ G.createElement(T, { ...h.params }) : /* @__PURE__ */ G.createElement(T, { ...h.params, ref: v }) : null), /* @__PURE__ */ G.createElement("div", { ref: m, "aria-hidden": l, className: R }));
|
|
44293
44294
|
}, XM = tt(QM), JM = ({ ctrl: e }) => {
|
|
44294
|
-
const { gos: t, context: s } = Ge(Ye), { topOffset: o, rowHeight: i } =
|
|
44295
|
+
const { gos: t, context: s } = Ge(Ye), { topOffset: o, rowHeight: i } = z(() => e.getTopAndHeight(), []), n = z(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => i + "px"), [u, h] = A(() => o + "px"), g = O(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), m = O(), C = O(null), v = U((y) => {
|
|
44295
44296
|
if (C.current = y, !y || !e.isAlive() || s.isDestroyed()) {
|
|
44296
44297
|
m.current = s.destroyBean(m.current);
|
|
44297
44298
|
return;
|
|
44298
44299
|
}
|
|
44299
44300
|
m.current = s.createBean(new Ao());
|
|
44300
44301
|
const R = {
|
|
44301
|
-
setHeight: (
|
|
44302
|
-
setTop: (
|
|
44303
|
-
setHeaderCtrls: (
|
|
44304
|
-
const M = g.current,
|
|
44305
|
-
|
|
44302
|
+
setHeight: (F) => d(F),
|
|
44303
|
+
setTop: (F) => h(F),
|
|
44304
|
+
setHeaderCtrls: (F, T, H) => {
|
|
44305
|
+
const M = g.current, E = On(M, F, T);
|
|
44306
|
+
E !== M && (g.current = E, mi(H, () => f(E)));
|
|
44306
44307
|
},
|
|
44307
|
-
setWidth: (
|
|
44308
|
-
C.current && (C.current.style.width =
|
|
44308
|
+
setWidth: (F) => {
|
|
44309
|
+
C.current && (C.current.style.width = F);
|
|
44309
44310
|
},
|
|
44310
|
-
setRowIndex: (
|
|
44311
|
-
a(
|
|
44311
|
+
setRowIndex: (F) => {
|
|
44312
|
+
a(F);
|
|
44312
44313
|
}
|
|
44313
44314
|
};
|
|
44314
44315
|
e.setComp(R, m.current, !1);
|
|
44315
|
-
}, []), b =
|
|
44316
|
+
}, []), b = z(
|
|
44316
44317
|
() => ({
|
|
44317
44318
|
height: c,
|
|
44318
44319
|
top: u
|
|
@@ -44377,7 +44378,7 @@ var UM = 1e3, $M = class {
|
|
|
44377
44378
|
setHeightAndMinHeight: (h) => o(h)
|
|
44378
44379
|
};
|
|
44379
44380
|
r.current.setComp(u, d, d);
|
|
44380
|
-
}, []), l =
|
|
44381
|
+
}, []), l = z(() => "ag-header " + e.toString(), [e]), c = z(
|
|
44381
44382
|
() => ({
|
|
44382
44383
|
height: s,
|
|
44383
44384
|
minHeight: s
|
|
@@ -44543,7 +44544,7 @@ var UM = 1e3, $M = class {
|
|
|
44543
44544
|
cellCtrl: e,
|
|
44544
44545
|
parent: t
|
|
44545
44546
|
}) => {
|
|
44546
|
-
const s = O(), o =
|
|
44547
|
+
const s = O(), o = z(() => {
|
|
44547
44548
|
const { loadingComp: i } = e.getDeferLoadingCellRenderer();
|
|
44548
44549
|
return i ? {
|
|
44549
44550
|
value: void 0,
|
|
@@ -44566,11 +44567,11 @@ var UM = 1e3, $M = class {
|
|
|
44566
44567
|
instanceId: r
|
|
44567
44568
|
} = e, a = O(), [l, c] = A(
|
|
44568
44569
|
() => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
|
|
44569
|
-
), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [v, b] = A(!1), [S, y] = A(!1), [R,
|
|
44570
|
+
), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [v, b] = A(!1), [S, y] = A(!1), [R, F] = A(), T = z(() => e.isForceWrapper(), [e]), H = z(() => e.getCellAriaRole(), [e]), M = O(null), E = O(null), D = O(null), B = O(), J = O(), I = O(), ne = O([]), j = O(), k = O(), [te, V] = A(0), se = U((de) => {
|
|
44570
44571
|
k.current = de, V((be) => be + 1);
|
|
44571
|
-
}, []), Q = l != null && (m || S || v) && (d == null || !!d.popup), q = T || Q, re =
|
|
44572
|
+
}, []), Q = l != null && (m || S || v) && (d == null || !!d.popup), q = T || Q, re = z(() => e.getCellValueClass(), [e]), L = U(
|
|
44572
44573
|
(de) => {
|
|
44573
|
-
if (
|
|
44574
|
+
if (J.current = de, de) {
|
|
44574
44575
|
const be = de.isCancelBeforeStart && de.isCancelBeforeStart();
|
|
44575
44576
|
setTimeout(() => {
|
|
44576
44577
|
be ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(de));
|
|
@@ -44579,7 +44580,7 @@ var UM = 1e3, $M = class {
|
|
|
44579
44580
|
},
|
|
44580
44581
|
[e]
|
|
44581
44582
|
), ie = O();
|
|
44582
|
-
ie.current || (ie.current = new Si(() => M.current)), df(l, q, k.current,
|
|
44583
|
+
ie.current || (ie.current = new Si(() => M.current)), df(l, q, k.current, te, B, M);
|
|
44583
44584
|
const he = O();
|
|
44584
44585
|
Lt(() => {
|
|
44585
44586
|
const de = he.current, be = l;
|
|
@@ -44598,11 +44599,11 @@ var UM = 1e3, $M = class {
|
|
|
44598
44599
|
if (!ce)
|
|
44599
44600
|
return;
|
|
44600
44601
|
const me = ce.getGui();
|
|
44601
|
-
L(ce), ze || ((T ? I : M).current?.appendChild(me), ce.afterGuiAttached?.()),
|
|
44602
|
+
L(ce), ze || ((T ? I : M).current?.appendChild(me), ce.afterGuiAttached?.()), F(ce);
|
|
44602
44603
|
}), () => {
|
|
44603
44604
|
je.then((ce) => {
|
|
44604
44605
|
const me = ce.getGui();
|
|
44605
|
-
e.disableEditorTooltipFeature(), i.destroyBean(ce), L(void 0),
|
|
44606
|
+
e.disableEditorTooltipFeature(), i.destroyBean(ce), L(void 0), F(void 0), me?.remove();
|
|
44606
44607
|
});
|
|
44607
44608
|
};
|
|
44608
44609
|
}, [d]);
|
|
@@ -44625,7 +44626,7 @@ var UM = 1e3, $M = class {
|
|
|
44625
44626
|
},
|
|
44626
44627
|
[e, i, S, v, m]
|
|
44627
44628
|
), st = U(() => {
|
|
44628
|
-
const de = !e.isCellSpanning() ||
|
|
44629
|
+
const de = !e.isCellSpanning() || E.current, be = M.current;
|
|
44629
44630
|
if (!be || !de || !e || !e.isAlive() || i.isDestroyed()) {
|
|
44630
44631
|
a.current = i.destroyBean(a.current);
|
|
44631
44632
|
return;
|
|
@@ -44638,8 +44639,8 @@ var UM = 1e3, $M = class {
|
|
|
44638
44639
|
setIncludeSelection: (ce) => C(ce),
|
|
44639
44640
|
setIncludeRowDrag: (ce) => b(ce),
|
|
44640
44641
|
setIncludeDndSource: (ce) => y(ce),
|
|
44641
|
-
getCellEditor: () =>
|
|
44642
|
-
getCellRenderer: () => D.current ??
|
|
44642
|
+
getCellEditor: () => J.current ?? null,
|
|
44643
|
+
getCellRenderer: () => D.current ?? B.current,
|
|
44643
44644
|
getParentOfValue: () => k.current ?? I.current ?? M.current,
|
|
44644
44645
|
setRenderDetails: (ce, me, Ze) => {
|
|
44645
44646
|
const os = () => {
|
|
@@ -44675,7 +44676,7 @@ var UM = 1e3, $M = class {
|
|
|
44675
44676
|
compProxy: We
|
|
44676
44677
|
}), me || c(void 0);
|
|
44677
44678
|
} else
|
|
44678
|
-
e.hasBrowserFocus() && ze.getFocusableElement().focus({ preventScroll: !0 }),
|
|
44679
|
+
e.hasBrowserFocus() && ze.getFocusableElement().focus({ preventScroll: !0 }), J.current = void 0, u(void 0);
|
|
44679
44680
|
},
|
|
44680
44681
|
refreshEditStyles: (ce, me) => {
|
|
44681
44682
|
if (!M.current)
|
|
@@ -44687,7 +44688,7 @@ var UM = 1e3, $M = class {
|
|
|
44687
44688
|
e.setComp(
|
|
44688
44689
|
ze,
|
|
44689
44690
|
be,
|
|
44690
|
-
|
|
44691
|
+
E.current ?? void 0,
|
|
44691
44692
|
je,
|
|
44692
44693
|
t,
|
|
44693
44694
|
s,
|
|
@@ -44696,8 +44697,8 @@ var UM = 1e3, $M = class {
|
|
|
44696
44697
|
}, []), fe = U((de) => {
|
|
44697
44698
|
M.current = de, st();
|
|
44698
44699
|
}, []), St = U((de) => {
|
|
44699
|
-
|
|
44700
|
-
}, []), ke =
|
|
44700
|
+
E.current = de, st();
|
|
44701
|
+
}, []), ke = z(() => !!(l?.compDetails?.componentFromFramework && Oo(l.compDetails.componentClass)), [l]);
|
|
44701
44702
|
Lt(() => {
|
|
44702
44703
|
if (!M.current)
|
|
44703
44704
|
return;
|
|
@@ -44720,29 +44721,29 @@ var UM = 1e3, $M = class {
|
|
|
44720
44721
|
}, gI = tt(hI), pI = ({ rowCtrl: e, containerType: t }) => {
|
|
44721
44722
|
const { context: s, gos: o, editSvc: i } = Ge(Ye), n = Ge(of) === "default", r = O(), a = O(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = A(
|
|
44722
44723
|
() => c ? e.rowNode.getRowIndexString() : null
|
|
44723
|
-
), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [m, C] = A(() => e.rowStyles), v = O(null), [b, S] = A(() => null), [y, R] = A(), [
|
|
44724
|
+
), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [m, C] = A(() => e.rowStyles), v = O(null), [b, S] = A(() => null), [y, R] = A(), [F, T] = A(
|
|
44724
44725
|
() => c ? e.getInitialRowTop(t) : void 0
|
|
44725
44726
|
), [H, M] = A(
|
|
44726
44727
|
() => c ? e.getInitialTransform(t) : void 0
|
|
44727
|
-
),
|
|
44728
|
+
), E = O(null), D = O(), B = O(), J = O(!1), [I, ne] = A(0);
|
|
44728
44729
|
ve(() => {
|
|
44729
|
-
if (
|
|
44730
|
+
if (J.current || !y || I > 10)
|
|
44730
44731
|
return;
|
|
44731
|
-
const fe =
|
|
44732
|
-
fe ? (e.setupDetailRowAutoHeight(fe),
|
|
44732
|
+
const fe = E.current?.firstChild;
|
|
44733
|
+
fe ? (e.setupDetailRowAutoHeight(fe), J.current = !0) : ne((St) => St + 1);
|
|
44733
44734
|
}, [y, I]);
|
|
44734
44735
|
const j = O();
|
|
44735
|
-
j.current || (j.current = new Si(() =>
|
|
44736
|
+
j.current || (j.current = new Si(() => E.current));
|
|
44736
44737
|
const k = O(() => {
|
|
44737
|
-
}),
|
|
44738
|
+
}), te = U((fe) => (k.current = fe, () => {
|
|
44738
44739
|
k.current = () => {
|
|
44739
44740
|
};
|
|
44740
44741
|
}), []), V = EM(
|
|
44741
|
-
|
|
44742
|
+
te,
|
|
44742
44743
|
() => v.current,
|
|
44743
44744
|
[]
|
|
44744
44745
|
), se = n ? V : b, Q = U((fe) => {
|
|
44745
|
-
if (
|
|
44746
|
+
if (E.current = fe, r.current = fe ? s.createBean(new Ao()) : s.destroyBean(r.current), !fe) {
|
|
44746
44747
|
e.unsetComp(t);
|
|
44747
44748
|
return;
|
|
44748
44749
|
}
|
|
@@ -44768,13 +44769,13 @@ var UM = 1e3, $M = class {
|
|
|
44768
44769
|
ss !== Vt && (v.current = ss, n ? k.current() : mi(ut, () => S(ss)));
|
|
44769
44770
|
},
|
|
44770
44771
|
showFullWidth: (ke) => {
|
|
44771
|
-
|
|
44772
|
+
B.current = ke.params, R(ke);
|
|
44772
44773
|
},
|
|
44773
44774
|
getFullWidthCellRenderer: () => D.current,
|
|
44774
|
-
getFullWidthCellRendererParams: () =>
|
|
44775
|
+
getFullWidthCellRendererParams: () => B.current,
|
|
44775
44776
|
refreshFullWidth: (ke) => {
|
|
44776
44777
|
const ut = ke();
|
|
44777
|
-
return
|
|
44778
|
+
return B.current = ut, he.current ? (R((Vt) => ({
|
|
44778
44779
|
...Vt,
|
|
44779
44780
|
params: ut
|
|
44780
44781
|
})), !0) : !D.current || !D.current.refresh ? !1 : D.current.refresh(ut);
|
|
@@ -44783,13 +44784,13 @@ var UM = 1e3, $M = class {
|
|
|
44783
44784
|
e.setComp(St, fe, t, r.current);
|
|
44784
44785
|
}, []);
|
|
44785
44786
|
Lt(
|
|
44786
|
-
() => Ei(y, s,
|
|
44787
|
+
() => Ei(y, s, E.current, D),
|
|
44787
44788
|
[y]
|
|
44788
44789
|
);
|
|
44789
|
-
const q =
|
|
44790
|
-
const fe = { top:
|
|
44790
|
+
const q = z(() => {
|
|
44791
|
+
const fe = { top: F, transform: H };
|
|
44791
44792
|
return Object.assign(fe, m), fe;
|
|
44792
|
-
}, [
|
|
44793
|
+
}, [F, H, m]), re = l && y?.componentFromFramework, L = !l && se != null, ie = z(() => !!(y?.componentFromFramework && Oo(y.componentClass)), [y]), he = O(!1);
|
|
44793
44794
|
ve(() => {
|
|
44794
44795
|
he.current = ie && !!y && !!o.get("reactiveCustomComponents");
|
|
44795
44796
|
}, [ie, y]);
|
|
@@ -44818,27 +44819,27 @@ var UM = 1e3, $M = class {
|
|
|
44818
44819
|
L ? Be() : re ? st() : null
|
|
44819
44820
|
);
|
|
44820
44821
|
}, Zd = tt(pI), fI = ({ name: e }) => {
|
|
44821
|
-
const { context: t, gos: s } = Ge(Ye), o =
|
|
44822
|
+
const { context: t, gos: s } = Ge(Ye), o = z(() => Ri(e), [e]), i = O(null), n = O(null), r = O(null), a = O([]), l = O([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!o.getSpannedRowCtrls, h = O([]), g = O([]), [p, f] = A(() => []), m = O(!1), C = O(), v = z(() => pt("ag-viewport", Pg(e)), [e]), b = z(() => pt(Xi(e)), [e]), S = z(() => pt("ag-spanning-container", tR(e)), [e]), y = o.type === "center" || u, R = y ? i : n;
|
|
44822
44823
|
Es(" AG Row Container " + e + " ", R);
|
|
44823
|
-
const
|
|
44824
|
+
const F = U(() => {
|
|
44824
44825
|
const I = !y || i.current != null, ne = n.current != null, j = !u || r.current != null;
|
|
44825
44826
|
return I && ne && j;
|
|
44826
44827
|
}, []), T = U(() => i.current == null && n.current == null && r.current == null, []), H = U(() => {
|
|
44827
|
-
if (T() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() &&
|
|
44828
|
+
if (T() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && F()) {
|
|
44828
44829
|
const I = (k) => {
|
|
44829
|
-
const
|
|
44830
|
+
const te = On(
|
|
44830
44831
|
l.current,
|
|
44831
44832
|
a.current,
|
|
44832
44833
|
m.current
|
|
44833
44834
|
);
|
|
44834
|
-
|
|
44835
|
+
te !== l.current && (l.current = te, mi(k, () => d(te)));
|
|
44835
44836
|
}, ne = (k) => {
|
|
44836
|
-
const
|
|
44837
|
+
const te = On(
|
|
44837
44838
|
g.current,
|
|
44838
44839
|
h.current,
|
|
44839
44840
|
m.current
|
|
44840
44841
|
);
|
|
44841
|
-
|
|
44842
|
+
te !== g.current && (g.current = te, mi(k, () => f(te)));
|
|
44842
44843
|
}, j = {
|
|
44843
44844
|
setHorizontalScroll: (k) => {
|
|
44844
44845
|
i.current && (i.current.scrollLeft = k);
|
|
@@ -44846,12 +44847,12 @@ var UM = 1e3, $M = class {
|
|
|
44846
44847
|
setViewportHeight: (k) => {
|
|
44847
44848
|
i.current && (i.current.style.height = k);
|
|
44848
44849
|
},
|
|
44849
|
-
setRowCtrls: ({ rowCtrls: k, useFlushSync:
|
|
44850
|
-
const V = !!
|
|
44850
|
+
setRowCtrls: ({ rowCtrls: k, useFlushSync: te }) => {
|
|
44851
|
+
const V = !!te && a.current.length > 0 && k.length > 0;
|
|
44851
44852
|
a.current = k, I(V);
|
|
44852
44853
|
},
|
|
44853
|
-
setSpannedRowCtrls: (k,
|
|
44854
|
-
const V = !!
|
|
44854
|
+
setSpannedRowCtrls: (k, te) => {
|
|
44855
|
+
const V = !!te && h.current.length > 0 && k.length > 0;
|
|
44855
44856
|
h.current = k, ne(V);
|
|
44856
44857
|
},
|
|
44857
44858
|
setDomOrder: (k) => {
|
|
@@ -44871,12 +44872,12 @@ var UM = 1e3, $M = class {
|
|
|
44871
44872
|
i.current
|
|
44872
44873
|
);
|
|
44873
44874
|
}
|
|
44874
|
-
}, [
|
|
44875
|
+
}, [F, T]), M = U(
|
|
44875
44876
|
(I) => {
|
|
44876
44877
|
n.current = I, H();
|
|
44877
44878
|
},
|
|
44878
44879
|
[H]
|
|
44879
|
-
),
|
|
44880
|
+
), E = U(
|
|
44880
44881
|
(I) => {
|
|
44881
44882
|
r.current = I, H();
|
|
44882
44883
|
},
|
|
@@ -44886,7 +44887,7 @@ var UM = 1e3, $M = class {
|
|
|
44886
44887
|
i.current = I, H();
|
|
44887
44888
|
},
|
|
44888
44889
|
[H]
|
|
44889
|
-
),
|
|
44890
|
+
), B = () => /* @__PURE__ */ G.createElement(
|
|
44890
44891
|
"div",
|
|
44891
44892
|
{
|
|
44892
44893
|
className: b,
|
|
@@ -44896,14 +44897,14 @@ var UM = 1e3, $M = class {
|
|
|
44896
44897
|
c.map((I) => /* @__PURE__ */ G.createElement(Zd, { rowCtrl: I, containerType: o.type, key: I.instanceId }))
|
|
44897
44898
|
);
|
|
44898
44899
|
if (!y)
|
|
44899
|
-
return
|
|
44900
|
-
const
|
|
44901
|
-
return /* @__PURE__ */ G.createElement("div", { className: v, ref: D, role: "rowgroup" },
|
|
44900
|
+
return B();
|
|
44901
|
+
const J = () => /* @__PURE__ */ G.createElement("div", { className: S, ref: E, role: "presentation" }, p.map((I) => /* @__PURE__ */ G.createElement(Zd, { rowCtrl: I, containerType: o.type, key: I.instanceId })));
|
|
44902
|
+
return /* @__PURE__ */ G.createElement("div", { className: v, ref: D, role: "rowgroup" }, B(), u ? J() : null);
|
|
44902
44903
|
}, mI = tt(fI), CI = () => {
|
|
44903
|
-
const e = Ge(Ye), { context: t, overlays: s } = e, [o, i] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, v] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [
|
|
44904
|
+
const e = Ge(Ye), { context: t, overlays: s } = e, [o, i] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, v] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [F, T] = A(!0), [H, M] = A(null), [E, D] = A(""), [B, J] = A(null), [I, ne] = A("ag-layout-normal"), j = O();
|
|
44904
44905
|
j.current || (j.current = new Si(() => k.current));
|
|
44905
|
-
const k = O(null),
|
|
44906
|
-
Es(" AG Grid Body ", k), Es(" AG Pinned Top ",
|
|
44906
|
+
const k = O(null), te = O(null), V = O(null), se = O(null), Q = O(null), q = O(null), re = O(null), L = O([]), ie = O([]);
|
|
44907
|
+
Es(" AG Grid Body ", k), Es(" AG Pinned Top ", te), Es(" AG Sticky Top ", V), Es(" AG Middle ", q), Es(" AG Pinned Bottom ", re);
|
|
44907
44908
|
const he = U((me) => {
|
|
44908
44909
|
if (k.current = me, !me || t.isDestroyed()) {
|
|
44909
44910
|
L.current = t.destroyBeans(L.current);
|
|
@@ -44942,7 +44943,7 @@ var UM = 1e3, $M = class {
|
|
|
44942
44943
|
updateLayoutClasses: ne,
|
|
44943
44944
|
setAlwaysVerticalScrollClass: M,
|
|
44944
44945
|
setPinnedTopBottomOverflowY: D,
|
|
44945
|
-
setCellSelectableCss: (Pe, rt) =>
|
|
44946
|
+
setCellSelectableCss: (Pe, rt) => J(rt ? Pe : null),
|
|
44946
44947
|
setBodyViewportWidth: (Pe) => {
|
|
44947
44948
|
q.current && (q.current.style.width = Pe);
|
|
44948
44949
|
},
|
|
@@ -44961,57 +44962,57 @@ var UM = 1e3, $M = class {
|
|
|
44961
44962
|
Sf,
|
|
44962
44963
|
me,
|
|
44963
44964
|
q.current,
|
|
44964
|
-
|
|
44965
|
+
te.current,
|
|
44965
44966
|
re.current,
|
|
44966
44967
|
V.current,
|
|
44967
44968
|
se.current
|
|
44968
44969
|
);
|
|
44969
|
-
}, []), Be =
|
|
44970
|
+
}, []), Be = z(() => pt("ag-root", "ag-unselectable", I), [I]), st = z(
|
|
44970
44971
|
() => pt(
|
|
44971
44972
|
"ag-body-viewport",
|
|
44972
44973
|
o,
|
|
44973
44974
|
I,
|
|
44974
44975
|
H,
|
|
44975
|
-
|
|
44976
|
+
B
|
|
44976
44977
|
),
|
|
44977
|
-
[o, I, H,
|
|
44978
|
-
), fe =
|
|
44979
|
-
() => pt("ag-floating-top", y ? "ag-invisible" : null,
|
|
44980
|
-
[
|
|
44981
|
-
), ke =
|
|
44982
|
-
() => pt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null,
|
|
44983
|
-
[
|
|
44984
|
-
), Vt =
|
|
44985
|
-
() => pt("ag-floating-bottom",
|
|
44986
|
-
[
|
|
44987
|
-
), ss =
|
|
44978
|
+
[o, I, H, B]
|
|
44979
|
+
), fe = z(() => pt("ag-body", I), [I]), St = z(
|
|
44980
|
+
() => pt("ag-floating-top", y ? "ag-invisible" : null, B),
|
|
44981
|
+
[B, y]
|
|
44982
|
+
), ke = z(() => pt("ag-sticky-top", B), [B]), ut = z(
|
|
44983
|
+
() => pt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, B),
|
|
44984
|
+
[B, f]
|
|
44985
|
+
), Vt = z(
|
|
44986
|
+
() => pt("ag-floating-bottom", F ? "ag-invisible" : null, B),
|
|
44987
|
+
[B, F]
|
|
44988
|
+
), ss = z(
|
|
44988
44989
|
() => ({
|
|
44989
44990
|
height: n,
|
|
44990
44991
|
minHeight: n,
|
|
44991
|
-
overflowY:
|
|
44992
|
+
overflowY: E
|
|
44992
44993
|
}),
|
|
44993
|
-
[n,
|
|
44994
|
-
), de =
|
|
44994
|
+
[n, E]
|
|
44995
|
+
), de = z(
|
|
44995
44996
|
() => ({
|
|
44996
44997
|
height: c,
|
|
44997
44998
|
top: u,
|
|
44998
44999
|
width: g
|
|
44999
45000
|
}),
|
|
45000
45001
|
[c, u, g]
|
|
45001
|
-
), be =
|
|
45002
|
+
), be = z(
|
|
45002
45003
|
() => ({
|
|
45003
45004
|
height: f,
|
|
45004
45005
|
bottom: C,
|
|
45005
45006
|
width: b
|
|
45006
45007
|
}),
|
|
45007
45008
|
[f, C, b]
|
|
45008
|
-
), ze =
|
|
45009
|
+
), ze = z(
|
|
45009
45010
|
() => ({
|
|
45010
45011
|
height: a,
|
|
45011
45012
|
minHeight: a,
|
|
45012
|
-
overflowY:
|
|
45013
|
+
overflowY: E
|
|
45013
45014
|
}),
|
|
45014
|
-
[a,
|
|
45015
|
+
[a, E]
|
|
45015
45016
|
), je = (me) => /* @__PURE__ */ G.createElement(mI, { name: me, key: `${me}-container` }), ce = ({
|
|
45016
45017
|
section: me,
|
|
45017
45018
|
children: Ze,
|
|
@@ -45019,7 +45020,7 @@ var UM = 1e3, $M = class {
|
|
|
45019
45020
|
style: We
|
|
45020
45021
|
}) => /* @__PURE__ */ G.createElement("div", { ref: me, className: os, role: "presentation", style: We }, Ze.map(je));
|
|
45021
45022
|
return /* @__PURE__ */ G.createElement("div", { ref: he, className: Be }, /* @__PURE__ */ G.createElement(oI, null), ce({
|
|
45022
|
-
section:
|
|
45023
|
+
section: te,
|
|
45023
45024
|
className: St,
|
|
45024
45025
|
style: ss,
|
|
45025
45026
|
children: ["topLeft", "topCenter", "topRight", "topFullWidth"]
|
|
@@ -45107,9 +45108,9 @@ var UM = 1e3, $M = class {
|
|
|
45107
45108
|
const R = U((D) => {
|
|
45108
45109
|
if (p.current = D, g.current = D ? e.createBean(new C2()) : e.destroyBean(g.current), !D || e.isDestroyed())
|
|
45109
45110
|
return;
|
|
45110
|
-
const
|
|
45111
|
-
v.current =
|
|
45112
|
-
const
|
|
45111
|
+
const B = g.current;
|
|
45112
|
+
v.current = B.focusInnerElement.bind(B);
|
|
45113
|
+
const J = {
|
|
45113
45114
|
destroyGridUi: () => {
|
|
45114
45115
|
},
|
|
45115
45116
|
// do nothing, as framework users destroy grid by removing the comp
|
|
@@ -45132,48 +45133,48 @@ var UM = 1e3, $M = class {
|
|
|
45132
45133
|
setCursor: r,
|
|
45133
45134
|
setUserSelect: l
|
|
45134
45135
|
};
|
|
45135
|
-
|
|
45136
|
+
B.setComp(J, D, D), d(!0);
|
|
45136
45137
|
}, []);
|
|
45137
45138
|
ve(() => {
|
|
45138
|
-
const D = g.current,
|
|
45139
|
-
if (!u || !D || !m || !
|
|
45139
|
+
const D = g.current, B = p.current;
|
|
45140
|
+
if (!u || !D || !m || !B || e.isDestroyed())
|
|
45140
45141
|
return;
|
|
45141
|
-
const
|
|
45142
|
+
const J = [], {
|
|
45142
45143
|
watermarkSelector: I,
|
|
45143
45144
|
paginationSelector: ne,
|
|
45144
45145
|
sideBarSelector: j,
|
|
45145
45146
|
statusBarSelector: k,
|
|
45146
|
-
gridHeaderDropZonesSelector:
|
|
45147
|
+
gridHeaderDropZonesSelector: te
|
|
45147
45148
|
} = D.getOptionalSelectors(), V = [];
|
|
45148
|
-
if (
|
|
45149
|
-
const Q = e.createBean(new
|
|
45150
|
-
|
|
45149
|
+
if (te) {
|
|
45150
|
+
const Q = e.createBean(new te.component()), q = Q.getGui();
|
|
45151
|
+
B.insertAdjacentElement("afterbegin", q), V.push(q), J.push(Q);
|
|
45151
45152
|
}
|
|
45152
45153
|
if (j) {
|
|
45153
45154
|
const Q = e.createBean(new j.component()), q = Q.getGui(), re = m.querySelector(".ag-tab-guard-bottom");
|
|
45154
|
-
re && (re.insertAdjacentElement("beforebegin", q), V.push(q)),
|
|
45155
|
+
re && (re.insertAdjacentElement("beforebegin", q), V.push(q)), J.push(Q), S.current.push(Q);
|
|
45155
45156
|
}
|
|
45156
45157
|
const se = (Q) => {
|
|
45157
45158
|
const q = e.createBean(new Q()), re = q.getGui();
|
|
45158
|
-
return
|
|
45159
|
+
return B.insertAdjacentElement("beforeend", re), V.push(re), J.push(q), q;
|
|
45159
45160
|
};
|
|
45160
45161
|
if (k && se(k.component), ne) {
|
|
45161
45162
|
const Q = se(ne.component);
|
|
45162
45163
|
b.current = Q, S.current.push(Q);
|
|
45163
45164
|
}
|
|
45164
45165
|
return I && se(I.component), () => {
|
|
45165
|
-
e.destroyBeans(
|
|
45166
|
+
e.destroyBeans(J);
|
|
45166
45167
|
for (const Q of V)
|
|
45167
45168
|
Q.remove();
|
|
45168
45169
|
};
|
|
45169
45170
|
}, [u, m, e]);
|
|
45170
|
-
const
|
|
45171
|
+
const F = z(
|
|
45171
45172
|
() => pt("ag-root-wrapper", t, o),
|
|
45172
45173
|
[t, o]
|
|
45173
|
-
), T =
|
|
45174
|
+
), T = z(
|
|
45174
45175
|
() => pt("ag-root-wrapper-body", "ag-focus-managed", o),
|
|
45175
45176
|
[o]
|
|
45176
|
-
), H =
|
|
45177
|
+
), H = z(
|
|
45177
45178
|
() => ({
|
|
45178
45179
|
userSelect: a ?? "",
|
|
45179
45180
|
WebkitUserSelect: a ?? "",
|
|
@@ -45182,8 +45183,8 @@ var UM = 1e3, $M = class {
|
|
|
45182
45183
|
[a, n]
|
|
45183
45184
|
), M = U((D) => {
|
|
45184
45185
|
f.current = D, h(D !== null);
|
|
45185
|
-
}, []),
|
|
45186
|
-
return /* @__PURE__ */ G.createElement("div", { ref: R, className:
|
|
45186
|
+
}, []), E = U(() => !g.current?.isFocusable(), []);
|
|
45187
|
+
return /* @__PURE__ */ G.createElement("div", { ref: R, className: F, style: H, role: "presentation" }, /* @__PURE__ */ G.createElement("div", { className: T, ref: C, role: "presentation" }, c && m && !e.isDestroyed() && /* @__PURE__ */ G.createElement(Ye.Provider, { value: e.getBeans() }, /* @__PURE__ */ G.createElement(
|
|
45187
45188
|
SI,
|
|
45188
45189
|
{
|
|
45189
45190
|
ref: M,
|
|
@@ -45191,7 +45192,7 @@ var UM = 1e3, $M = class {
|
|
|
45191
45192
|
onTabKeyDown: y,
|
|
45192
45193
|
gridCtrl: g.current,
|
|
45193
45194
|
forceFocusOutWhenTabGuardsAreEmpty: !0,
|
|
45194
|
-
isEmpty:
|
|
45195
|
+
isEmpty: E
|
|
45195
45196
|
},
|
|
45196
45197
|
// we wait for initialised before rending the children, so GridComp has created and registered with it's
|
|
45197
45198
|
// GridCtrl before we create the child GridBodyComp. Otherwise the GridBodyComp would initialise first,
|
|
@@ -45241,14 +45242,14 @@ var UM = 1e3, $M = class {
|
|
|
45241
45242
|
}, hf = new Set(Object.keys(FI)), EI = new Set(Object.keys(uf)), gf = (e) => {
|
|
45242
45243
|
const t = O(), s = O(null), o = O(null), i = O([]), n = O([]), r = O(e), a = O(), l = O(), c = O(!1), [d, u] = A(void 0), [, h] = A(0), g = U((C) => {
|
|
45243
45244
|
if (s.current = C, !C) {
|
|
45244
|
-
for (const
|
|
45245
|
-
|
|
45245
|
+
for (const E of i.current)
|
|
45246
|
+
E();
|
|
45246
45247
|
i.current.length = 0;
|
|
45247
45248
|
return;
|
|
45248
45249
|
}
|
|
45249
45250
|
const v = e.modules || [];
|
|
45250
45251
|
o.current || (o.current = new $M(
|
|
45251
|
-
() => h((
|
|
45252
|
+
() => h((E) => E + 1),
|
|
45252
45253
|
e.componentWrappingElement,
|
|
45253
45254
|
e.maxComponentCreationTimeMs
|
|
45254
45255
|
), i.current.push(() => {
|
|
@@ -45257,17 +45258,17 @@ var UM = 1e3, $M = class {
|
|
|
45257
45258
|
const b = qb(
|
|
45258
45259
|
e.gridOptions,
|
|
45259
45260
|
e,
|
|
45260
|
-
Object.keys(e).filter((
|
|
45261
|
+
Object.keys(e).filter((E) => !hf.has(E))
|
|
45261
45262
|
), S = () => {
|
|
45262
45263
|
if (c.current) {
|
|
45263
|
-
const
|
|
45264
|
-
let D =
|
|
45264
|
+
const E = () => a.current?.shouldQueueUpdates() ? void 0 : n.current.shift();
|
|
45265
|
+
let D = E();
|
|
45265
45266
|
for (; D; )
|
|
45266
|
-
D(), D =
|
|
45267
|
+
D(), D = E();
|
|
45267
45268
|
}
|
|
45268
45269
|
}, y = new MI(S);
|
|
45269
45270
|
a.current = y;
|
|
45270
|
-
const R = new xI(),
|
|
45271
|
+
const R = new xI(), F = {
|
|
45271
45272
|
providedBeanInstances: {
|
|
45272
45273
|
frameworkCompWrapper: new PI(o.current, b),
|
|
45273
45274
|
renderStatus: R
|
|
@@ -45275,24 +45276,24 @@ var UM = 1e3, $M = class {
|
|
|
45275
45276
|
modules: v,
|
|
45276
45277
|
frameworkOverrides: y,
|
|
45277
45278
|
setThemeOnGridDiv: !0
|
|
45278
|
-
}, T = (
|
|
45279
|
-
u(
|
|
45280
|
-
|
|
45281
|
-
}),
|
|
45279
|
+
}, T = (E) => {
|
|
45280
|
+
u(E), E.createBean(R), i.current.push(() => {
|
|
45281
|
+
E.destroy();
|
|
45282
|
+
}), E.getBean("ctrlsSvc").whenReady(
|
|
45282
45283
|
{
|
|
45283
45284
|
addDestroyFunc: (D) => {
|
|
45284
45285
|
i.current.push(D);
|
|
45285
45286
|
}
|
|
45286
45287
|
},
|
|
45287
45288
|
() => {
|
|
45288
|
-
if (
|
|
45289
|
+
if (E.isDestroyed())
|
|
45289
45290
|
return;
|
|
45290
45291
|
const D = t.current;
|
|
45291
45292
|
D && e.passGridApi?.(D);
|
|
45292
45293
|
}
|
|
45293
45294
|
);
|
|
45294
|
-
}, H = (
|
|
45295
|
-
|
|
45295
|
+
}, H = (E) => {
|
|
45296
|
+
E.getBean("ctrlsSvc").whenReady(
|
|
45296
45297
|
{
|
|
45297
45298
|
addDestroyFunc: (D) => {
|
|
45298
45299
|
i.current.push(D);
|
|
@@ -45310,11 +45311,11 @@ var UM = 1e3, $M = class {
|
|
|
45310
45311
|
b,
|
|
45311
45312
|
T,
|
|
45312
45313
|
H,
|
|
45313
|
-
|
|
45314
|
+
F
|
|
45314
45315
|
), i.current.push(() => {
|
|
45315
45316
|
t.current = void 0;
|
|
45316
45317
|
}), t.current && (l.current = t.current.getGridId());
|
|
45317
|
-
}, []), p =
|
|
45318
|
+
}, []), p = z(() => ({
|
|
45318
45319
|
height: "100%",
|
|
45319
45320
|
...e.containerStyle || {}
|
|
45320
45321
|
}), [e.containerStyle]), f = U((C) => {
|
|
@@ -45395,23 +45396,23 @@ var PI = class extends YD {
|
|
|
45395
45396
|
return new lf(e, this.parent, t, i);
|
|
45396
45397
|
}
|
|
45397
45398
|
}, TI = Ci((e, t) => {
|
|
45398
|
-
const s = Ge(Ye), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = A(() => new wt()), [c, d] = A(() => new wt()), [u, h] = A(), [g, p] = A(), f = O(), m = O(null), C = O(), v =
|
|
45399
|
+
const s = Ge(Ye), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = A(() => new wt()), [c, d] = A(() => new wt()), [u, h] = A(), [g, p] = A(), f = O(), m = O(null), C = O(), v = z(
|
|
45399
45400
|
() => Fb(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
|
|
45400
45401
|
[e]
|
|
45401
|
-
), b =
|
|
45402
|
+
), b = z(() => a.toString() + " ag-details-row", [a]), S = z(() => c.toString() + " ag-details-grid", [c]);
|
|
45402
45403
|
t && $a(t, () => ({
|
|
45403
45404
|
refresh() {
|
|
45404
45405
|
return f.current?.refresh() ?? !1;
|
|
45405
45406
|
}
|
|
45406
45407
|
})), e.template && N(230);
|
|
45407
|
-
const y = U((
|
|
45408
|
-
if (m.current =
|
|
45408
|
+
const y = U((F) => {
|
|
45409
|
+
if (m.current = F, !F || i.isDestroyed()) {
|
|
45409
45410
|
f.current = i.destroyBean(f.current), C.current?.();
|
|
45410
45411
|
return;
|
|
45411
45412
|
}
|
|
45412
45413
|
const T = {
|
|
45413
|
-
toggleCss: (M,
|
|
45414
|
-
toggleDetailGridCss: (M,
|
|
45414
|
+
toggleCss: (M, E) => l((D) => D.setClass(M, E)),
|
|
45415
|
+
toggleDetailGridCss: (M, E) => d((D) => D.setClass(M, E)),
|
|
45415
45416
|
setDetailGrid: (M) => h(M),
|
|
45416
45417
|
setRowData: (M) => p(M),
|
|
45417
45418
|
getGui: () => m.current
|
|
@@ -45420,15 +45421,15 @@ var PI = class extends YD {
|
|
|
45420
45421
|
const M = () => {
|
|
45421
45422
|
if (m.current == null)
|
|
45422
45423
|
return;
|
|
45423
|
-
const
|
|
45424
|
-
|
|
45425
|
-
e.node.setRowHeight(
|
|
45424
|
+
const E = m.current.clientHeight;
|
|
45425
|
+
E != null && E > 0 && setTimeout(() => {
|
|
45426
|
+
e.node.setRowHeight(E), (Te(n) || Ks(n)) && r.onRowHeightChanged();
|
|
45426
45427
|
}, 0);
|
|
45427
45428
|
};
|
|
45428
|
-
C.current = Jt(s,
|
|
45429
|
+
C.current = Jt(s, F, M), M();
|
|
45429
45430
|
}
|
|
45430
|
-
}, []), R = U((
|
|
45431
|
-
f.current?.registerDetailWithMaster(
|
|
45431
|
+
}, []), R = U((F) => {
|
|
45432
|
+
f.current?.registerDetailWithMaster(F);
|
|
45432
45433
|
}, []);
|
|
45433
45434
|
return /* @__PURE__ */ G.createElement("div", { className: b, ref: y }, u && /* @__PURE__ */ G.createElement(
|
|
45434
45435
|
gf,
|
|
@@ -45541,7 +45542,7 @@ const kI = "h-full", Br = {
|
|
|
45541
45542
|
p ? f.add(g) : f.delete(g), a(f);
|
|
45542
45543
|
},
|
|
45543
45544
|
[r, a]
|
|
45544
|
-
), c = s?.length || 0, d = r.size, u =
|
|
45545
|
+
), c = s?.length || 0, d = r.size, u = z(() => d === 0 ? "unchecked" : d === c ? "checked" : "indeterminate", [d, c]), h = U(() => {
|
|
45545
45546
|
if (u === "checked")
|
|
45546
45547
|
a(/* @__PURE__ */ new Set());
|
|
45547
45548
|
else {
|
|
@@ -45582,13 +45583,13 @@ const OI = ({
|
|
|
45582
45583
|
onSelectionChange: c,
|
|
45583
45584
|
rowData: t,
|
|
45584
45585
|
getRowId: d
|
|
45585
|
-
}), R =
|
|
45586
|
+
}), R = z(
|
|
45586
45587
|
() => ({
|
|
45587
45588
|
...Br,
|
|
45588
45589
|
oddRowBackgroundColor: u ? Br.oddRowBackgroundColor : Br.backgroundColor
|
|
45589
45590
|
}),
|
|
45590
45591
|
[u]
|
|
45591
|
-
),
|
|
45592
|
+
), F = U((j) => {
|
|
45592
45593
|
j.api.sizeColumnsToFit(), p(zr);
|
|
45593
45594
|
}, []), T = U(
|
|
45594
45595
|
(j) => {
|
|
@@ -45611,7 +45612,7 @@ const OI = ({
|
|
|
45611
45612
|
) }), [S, y]), M = U(
|
|
45612
45613
|
(j) => {
|
|
45613
45614
|
if (j.data) {
|
|
45614
|
-
const k = o?.(j.data) ?? [],
|
|
45615
|
+
const k = o?.(j.data) ?? [], te = j.value == null ? "" : String(j.value);
|
|
45615
45616
|
return /* @__PURE__ */ w(
|
|
45616
45617
|
gs,
|
|
45617
45618
|
{
|
|
@@ -45623,7 +45624,7 @@ const OI = ({
|
|
|
45623
45624
|
children: /* @__PURE__ */ w("span", { className: "block min-w-0 h-full max-w-full", children: /* @__PURE__ */ w(
|
|
45624
45625
|
Zt,
|
|
45625
45626
|
{
|
|
45626
|
-
text:
|
|
45627
|
+
text: te,
|
|
45627
45628
|
cssClass: "max-w-full h-full"
|
|
45628
45629
|
}
|
|
45629
45630
|
) })
|
|
@@ -45632,22 +45633,22 @@ const OI = ({
|
|
|
45632
45633
|
}
|
|
45633
45634
|
},
|
|
45634
45635
|
[o]
|
|
45635
|
-
),
|
|
45636
|
+
), E = U(
|
|
45636
45637
|
(j) => {
|
|
45637
45638
|
if (!j.data) return null;
|
|
45638
|
-
const k = d(j.data),
|
|
45639
|
+
const k = d(j.data), te = v.has(k), V = `row-select-${k}`;
|
|
45639
45640
|
return /* @__PURE__ */ w("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ w(
|
|
45640
45641
|
an,
|
|
45641
45642
|
{
|
|
45642
45643
|
id: V,
|
|
45643
45644
|
ariaLabel: "Select row",
|
|
45644
|
-
checked:
|
|
45645
|
+
checked: te,
|
|
45645
45646
|
cssClass: "dial-row-select",
|
|
45646
45647
|
onChange: (se) => {
|
|
45647
45648
|
b(k, !!se);
|
|
45648
45649
|
}
|
|
45649
45650
|
},
|
|
45650
|
-
`${k}-${
|
|
45651
|
+
`${k}-${te}`
|
|
45651
45652
|
) });
|
|
45652
45653
|
},
|
|
45653
45654
|
[v, d, b]
|
|
@@ -45658,11 +45659,11 @@ const OI = ({
|
|
|
45658
45659
|
return { ...j, cellRenderer: M };
|
|
45659
45660
|
if (!k)
|
|
45660
45661
|
return j;
|
|
45661
|
-
const
|
|
45662
|
+
const te = j.cellRenderer;
|
|
45662
45663
|
return { ...j, cellRenderer: (se) => {
|
|
45663
45664
|
const Q = se.data ? o?.(se.data) ?? [] : [];
|
|
45664
45665
|
let q = null;
|
|
45665
|
-
return typeof
|
|
45666
|
+
return typeof te == "function" ? q = /* @__PURE__ */ w(te, { ...se }) : q = M(se), /* @__PURE__ */ w(
|
|
45666
45667
|
gs,
|
|
45667
45668
|
{
|
|
45668
45669
|
trigger: [kt.ContextMenu],
|
|
@@ -45676,7 +45677,7 @@ const OI = ({
|
|
|
45676
45677
|
} };
|
|
45677
45678
|
},
|
|
45678
45679
|
[o, M, a]
|
|
45679
|
-
),
|
|
45680
|
+
), B = z(
|
|
45680
45681
|
() => ({
|
|
45681
45682
|
colId: "__select",
|
|
45682
45683
|
headerName: "",
|
|
@@ -45690,14 +45691,14 @@ const OI = ({
|
|
|
45690
45691
|
floatingFilter: !1,
|
|
45691
45692
|
suppressMenu: !0,
|
|
45692
45693
|
borderless: !0,
|
|
45693
|
-
cellRenderer:
|
|
45694
|
+
cellRenderer: E,
|
|
45694
45695
|
headerComponent: H
|
|
45695
45696
|
}),
|
|
45696
|
-
[
|
|
45697
|
-
),
|
|
45697
|
+
[E, H]
|
|
45698
|
+
), J = z(() => {
|
|
45698
45699
|
const j = (e ?? []).map(D);
|
|
45699
|
-
return r ? [
|
|
45700
|
-
}, [e,
|
|
45700
|
+
return r ? [B, ...j] : j;
|
|
45701
|
+
}, [e, B, r, D]), I = z(
|
|
45701
45702
|
() => ({
|
|
45702
45703
|
minWidth: 150,
|
|
45703
45704
|
resizable: !0,
|
|
@@ -45712,8 +45713,8 @@ const OI = ({
|
|
|
45712
45713
|
}),
|
|
45713
45714
|
[h]
|
|
45714
45715
|
), ne = (j) => {
|
|
45715
|
-
const k =
|
|
45716
|
-
...
|
|
45716
|
+
const k = J.map((te) => ({
|
|
45717
|
+
...te,
|
|
45717
45718
|
sort: void 0
|
|
45718
45719
|
}));
|
|
45719
45720
|
j.api.updateGridOptions({ columnDefs: k, rowData: t }), j.api.sizeColumnsToFit(), m(j.api), s?.onGridReady?.(j);
|
|
@@ -45746,9 +45747,9 @@ const OI = ({
|
|
|
45746
45747
|
getRowClass: T,
|
|
45747
45748
|
theme: S3.withPart(e3).withParams({ ...R }),
|
|
45748
45749
|
autoSizeStrategy: { type: "fitGridWidth" },
|
|
45749
|
-
columnDefs:
|
|
45750
|
+
columnDefs: J,
|
|
45750
45751
|
defaultColDef: I,
|
|
45751
|
-
onGridSizeChanged:
|
|
45752
|
+
onGridSizeChanged: F,
|
|
45752
45753
|
onGridReady: ne,
|
|
45753
45754
|
suppressCellFocus: !0,
|
|
45754
45755
|
rowData: t,
|
|
@@ -45784,7 +45785,7 @@ const OI = ({
|
|
|
45784
45785
|
};
|
|
45785
45786
|
return s(e), t;
|
|
45786
45787
|
}, VI = /* @__PURE__ */ w(Ka, { size: 16 }), BI = /* @__PURE__ */ w(fm, { size: 16 }), zI = (e) => {
|
|
45787
|
-
const [t, s] = A(!1), o =
|
|
45788
|
+
const [t, s] = A(!1), o = z(() => t ? BI : VI, [t]);
|
|
45788
45789
|
return /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(
|
|
45789
45790
|
gs,
|
|
45790
45791
|
{
|
|
@@ -45878,10 +45879,10 @@ const OI = ({
|
|
|
45878
45879
|
...C
|
|
45879
45880
|
} = o ?? {}, v = String(
|
|
45880
45881
|
i?.value ?? u ?? ""
|
|
45881
|
-
).trim(), b =
|
|
45882
|
+
).trim(), b = z(
|
|
45882
45883
|
() => HI(s, c) ?? s[0],
|
|
45883
45884
|
[s, c]
|
|
45884
|
-
), S =
|
|
45885
|
+
), S = z(() => {
|
|
45885
45886
|
const I = nn(v).trim(), ne = b?.items ?? [], k = (I ? GI(b) : ne).map((V) => ({
|
|
45886
45887
|
id: V.id ?? V.path,
|
|
45887
45888
|
name: V.name ?? V.path.split("/").pop() ?? "",
|
|
@@ -45893,14 +45894,14 @@ const OI = ({
|
|
|
45893
45894
|
extension: V.extension
|
|
45894
45895
|
}));
|
|
45895
45896
|
if (!I) return k;
|
|
45896
|
-
const
|
|
45897
|
+
const te = I.split(/\s+/).filter(Boolean);
|
|
45897
45898
|
return k.filter((V) => {
|
|
45898
45899
|
const se = nn(V.name), Q = nn(V.author), q = NI(V.extension);
|
|
45899
|
-
return
|
|
45900
|
+
return te.every(
|
|
45900
45901
|
(re) => se.includes(re) || Q.includes(re) || q.includes(re)
|
|
45901
45902
|
);
|
|
45902
45903
|
});
|
|
45903
|
-
}, [b, v]), y =
|
|
45904
|
+
}, [b, v]), y = z(() => [
|
|
45904
45905
|
{
|
|
45905
45906
|
field: "name",
|
|
45906
45907
|
headerName: "Name",
|
|
@@ -45922,13 +45923,13 @@ const OI = ({
|
|
|
45922
45923
|
}
|
|
45923
45924
|
], []), {
|
|
45924
45925
|
columnDefs: R,
|
|
45925
|
-
filterable:
|
|
45926
|
+
filterable: F = !0,
|
|
45926
45927
|
...T
|
|
45927
|
-
} = n ?? {}, H = R ?? y, M =
|
|
45928
|
+
} = n ?? {}, H = R ?? y, M = z(() => F ? H : H.map((I) => ({
|
|
45928
45929
|
...I,
|
|
45929
45930
|
filter: !1,
|
|
45930
45931
|
floatingFilter: !1
|
|
45931
|
-
})), [H,
|
|
45932
|
+
})), [H, F]), E = U(
|
|
45932
45933
|
(I) => {
|
|
45933
45934
|
d(I.path), a?.(I.path);
|
|
45934
45935
|
},
|
|
@@ -45938,13 +45939,13 @@ const OI = ({
|
|
|
45938
45939
|
d(I), a?.(I);
|
|
45939
45940
|
},
|
|
45940
45941
|
[a]
|
|
45941
|
-
),
|
|
45942
|
+
), B = U(
|
|
45942
45943
|
(I) => {
|
|
45943
45944
|
const ne = String(I ?? "");
|
|
45944
45945
|
h(ne), i?.onSearchChange?.(ne);
|
|
45945
45946
|
},
|
|
45946
45947
|
[i]
|
|
45947
|
-
),
|
|
45948
|
+
), J = U(
|
|
45948
45949
|
(I) => {
|
|
45949
45950
|
I.nodeType === hs.FOLDER ? (d(I.path), a?.(I.path)) : l?.(I);
|
|
45950
45951
|
},
|
|
@@ -45980,7 +45981,7 @@ const OI = ({
|
|
|
45980
45981
|
...C,
|
|
45981
45982
|
items: s,
|
|
45982
45983
|
selectedPath: c,
|
|
45983
|
-
onItemClick:
|
|
45984
|
+
onItemClick: E
|
|
45984
45985
|
}
|
|
45985
45986
|
)
|
|
45986
45987
|
}
|
|
@@ -45996,7 +45997,7 @@ const OI = ({
|
|
|
45996
45997
|
onItemClick: D,
|
|
45997
45998
|
makeHref: (I) => "/" + I.join("/"),
|
|
45998
45999
|
value: v,
|
|
45999
|
-
onSearchChange:
|
|
46000
|
+
onSearchChange: B
|
|
46000
46001
|
}
|
|
46001
46002
|
),
|
|
46002
46003
|
/* @__PURE__ */ w(
|
|
@@ -46015,7 +46016,7 @@ const OI = ({
|
|
|
46015
46016
|
additionalGridOptions: {
|
|
46016
46017
|
...T.additionalGridOptions,
|
|
46017
46018
|
onRowClicked: (I) => {
|
|
46018
|
-
I.data &&
|
|
46019
|
+
I.data && J(I.data);
|
|
46019
46020
|
}
|
|
46020
46021
|
}
|
|
46021
46022
|
}
|
|
@@ -46052,6 +46053,7 @@ const OI = ({
|
|
|
46052
46053
|
{
|
|
46053
46054
|
type: t ? "text" : "password",
|
|
46054
46055
|
...e,
|
|
46056
|
+
hideTooltip: !t,
|
|
46055
46057
|
iconAfter: t ? /* @__PURE__ */ w(UI, { onClick: () => o(!1) }) : /* @__PURE__ */ w($I, { onClick: () => o(!0) })
|
|
46056
46058
|
}
|
|
46057
46059
|
);
|
|
@@ -46252,7 +46254,7 @@ const OI = ({
|
|
|
46252
46254
|
onClose: f,
|
|
46253
46255
|
onChange: m
|
|
46254
46256
|
}) => {
|
|
46255
|
-
const [C, v] = A(!1), [b, S] = A(""), y = Ua(), R = s !== void 0, [
|
|
46257
|
+
const [C, v] = A(!1), [b, S] = A(""), y = Ua(), R = s !== void 0, [F, T] = A(o), H = R ? s : F, M = z(() => t ? Array.isArray(H) ? H : [] : typeof H == "string" ? [H] : [], [H, t]), E = z(() => {
|
|
46256
46258
|
const L = b.trim().toLowerCase();
|
|
46257
46259
|
return L ? e.filter((ie) => ie.label.toLowerCase().includes(L)) : e;
|
|
46258
46260
|
}, [e, b]);
|
|
@@ -46264,13 +46266,13 @@ const OI = ({
|
|
|
46264
46266
|
R || T(L), m?.(L);
|
|
46265
46267
|
},
|
|
46266
46268
|
[R, m]
|
|
46267
|
-
),
|
|
46269
|
+
), B = (L) => {
|
|
46268
46270
|
if (t) {
|
|
46269
46271
|
const ie = new Set(M);
|
|
46270
46272
|
ie.has(L) ? ie.delete(L) : ie.add(L), D(Array.from(ie));
|
|
46271
46273
|
} else
|
|
46272
46274
|
D(L), v(!1);
|
|
46273
|
-
},
|
|
46275
|
+
}, J = U(
|
|
46274
46276
|
(L, ie) => {
|
|
46275
46277
|
if (L.stopPropagation(), !t) {
|
|
46276
46278
|
D("");
|
|
@@ -46280,13 +46282,13 @@ const OI = ({
|
|
|
46280
46282
|
D(he);
|
|
46281
46283
|
},
|
|
46282
46284
|
[t, M, D]
|
|
46283
|
-
), I =
|
|
46284
|
-
() =>
|
|
46285
|
-
[
|
|
46286
|
-
), ne =
|
|
46285
|
+
), I = z(
|
|
46286
|
+
() => E.filter((L) => !L.disabled),
|
|
46287
|
+
[E]
|
|
46288
|
+
), ne = z(
|
|
46287
46289
|
() => I.filter((L) => M.includes(L.value)).length,
|
|
46288
46290
|
[I, M]
|
|
46289
|
-
), j = I.length > 0 && ne === I.length, k = ne > 0 && !j,
|
|
46291
|
+
), j = I.length > 0 && ne === I.length, k = ne > 0 && !j, te = () => {
|
|
46290
46292
|
if (!(!t || I.length === 0))
|
|
46291
46293
|
if (j) {
|
|
46292
46294
|
const L = new Set(I.map((he) => he.value)), ie = M.filter((he) => !L.has(he));
|
|
@@ -46295,7 +46297,7 @@ const OI = ({
|
|
|
46295
46297
|
const L = new Set(M);
|
|
46296
46298
|
I.forEach((ie) => L.add(ie.value)), D(Array.from(L));
|
|
46297
46299
|
}
|
|
46298
|
-
}, V = M.length > 0, se = !t && V ? M[0] : void 0, Q =
|
|
46300
|
+
}, V = M.length > 0, se = !t && V ? M[0] : void 0, Q = z(
|
|
46299
46301
|
() => se ? e.find((L) => L.value === se) : void 0,
|
|
46300
46302
|
[e, se]
|
|
46301
46303
|
), q = U(() => !t || M.length === 0 ? null : /* @__PURE__ */ w(
|
|
@@ -46303,9 +46305,9 @@ const OI = ({
|
|
|
46303
46305
|
{
|
|
46304
46306
|
options: e,
|
|
46305
46307
|
selectedValues: M,
|
|
46306
|
-
handleRemoveTag:
|
|
46308
|
+
handleRemoveTag: J
|
|
46307
46309
|
}
|
|
46308
|
-
), [t, e, M,
|
|
46310
|
+
), [t, e, M, J]), re = U(() => t ? V ? q() : /* @__PURE__ */ w("span", { className: "text-secondary truncate", children: i }) : Q ? /* @__PURE__ */ $(It, { children: [
|
|
46309
46311
|
Q.icon && /* @__PURE__ */ w(Fe, { icon: Q.icon }),
|
|
46310
46312
|
/* @__PURE__ */ w(Zt, { text: Q.label })
|
|
46311
46313
|
] }) : /* @__PURE__ */ w("span", { className: "text-secondary truncate", children: i }), [V, t, i, q, Q]);
|
|
@@ -46356,18 +46358,18 @@ const OI = ({
|
|
|
46356
46358
|
label: l,
|
|
46357
46359
|
checked: j,
|
|
46358
46360
|
indeterminate: k,
|
|
46359
|
-
onChange:
|
|
46361
|
+
onChange: te,
|
|
46360
46362
|
ariaLabel: l
|
|
46361
46363
|
}
|
|
46362
46364
|
) }),
|
|
46363
|
-
/* @__PURE__ */ w("div", { className: "overflow-y-auto py-1", children:
|
|
46365
|
+
/* @__PURE__ */ w("div", { className: "overflow-y-auto py-1", children: E.length === 0 ? /* @__PURE__ */ w("div", { className: "px-2 py-3", children: /* @__PURE__ */ w(
|
|
46364
46366
|
Tu,
|
|
46365
46367
|
{
|
|
46366
46368
|
icon: u ?? /* @__PURE__ */ w(uu, { size: 24 }),
|
|
46367
46369
|
title: c,
|
|
46368
46370
|
description: d
|
|
46369
46371
|
}
|
|
46370
|
-
) }) :
|
|
46372
|
+
) }) : E.map((L) => {
|
|
46371
46373
|
const ie = M.includes(L.value);
|
|
46372
46374
|
return t ? /* @__PURE__ */ $(
|
|
46373
46375
|
"div",
|
|
@@ -46389,7 +46391,7 @@ const OI = ({
|
|
|
46389
46391
|
] }),
|
|
46390
46392
|
checked: ie,
|
|
46391
46393
|
disabled: L.disabled,
|
|
46392
|
-
onChange: () => !L.disabled &&
|
|
46394
|
+
onChange: () => !L.disabled && B(L.value),
|
|
46393
46395
|
ariaLabel: L.label
|
|
46394
46396
|
}
|
|
46395
46397
|
),
|
|
@@ -46410,7 +46412,7 @@ const OI = ({
|
|
|
46410
46412
|
ie && ZI,
|
|
46411
46413
|
L.disabled && Qd
|
|
46412
46414
|
),
|
|
46413
|
-
onClick: () => !L.disabled &&
|
|
46415
|
+
onClick: () => !L.disabled && B(L.value),
|
|
46414
46416
|
children: /* @__PURE__ */ $("div", { className: "flex items-center gap-2 w-full", children: [
|
|
46415
46417
|
L.icon && /* @__PURE__ */ w(Fe, { icon: L.icon }),
|
|
46416
46418
|
/* @__PURE__ */ w(Zt, { text: L.label })
|
|
@@ -47079,18 +47081,18 @@ const hk = function(t, s, o) {
|
|
|
47079
47081
|
getIsFileFormatError: c
|
|
47080
47082
|
}) => {
|
|
47081
47083
|
const d = O(null), u = O(null), [h, g] = A([]), [p, f] = A(!1), m = U(
|
|
47082
|
-
(
|
|
47083
|
-
const D =
|
|
47084
|
+
(E) => {
|
|
47085
|
+
const D = E.target.files;
|
|
47084
47086
|
if (D && D.length > 0) {
|
|
47085
|
-
const
|
|
47086
|
-
c?.(
|
|
47087
|
+
const B = Array.from(D);
|
|
47088
|
+
c?.(B) ? f(!0) : e(B);
|
|
47087
47089
|
}
|
|
47088
47090
|
},
|
|
47089
47091
|
[c, e]
|
|
47090
47092
|
), C = U(
|
|
47091
|
-
(
|
|
47093
|
+
(E) => n && E?.length > n,
|
|
47092
47094
|
[n]
|
|
47093
|
-
), v =
|
|
47095
|
+
), v = z(() => p || C(h), [p, h, C]), b = () => {
|
|
47094
47096
|
g([]), f(!1);
|
|
47095
47097
|
};
|
|
47096
47098
|
ve(() => {
|
|
@@ -47099,24 +47101,24 @@ const hk = function(t, s, o) {
|
|
|
47099
47101
|
const [{ isOver: S, canDrop: y }, R] = zu(
|
|
47100
47102
|
() => ({
|
|
47101
47103
|
accept: [ec],
|
|
47102
|
-
drop(
|
|
47103
|
-
const D =
|
|
47104
|
+
drop(E) {
|
|
47105
|
+
const D = E.files;
|
|
47104
47106
|
!c?.(D) && !C(D) && e(D), b();
|
|
47105
47107
|
},
|
|
47106
|
-
collect: (
|
|
47107
|
-
isOver:
|
|
47108
|
-
canDrop:
|
|
47108
|
+
collect: (E) => ({
|
|
47109
|
+
isOver: E.isOver(),
|
|
47110
|
+
canDrop: E.canDrop()
|
|
47109
47111
|
})
|
|
47110
47112
|
}),
|
|
47111
47113
|
[m]
|
|
47112
|
-
),
|
|
47113
|
-
(
|
|
47114
|
-
}, T = (
|
|
47115
|
-
|
|
47116
|
-
const D = Array.from(
|
|
47114
|
+
), F = (E) => {
|
|
47115
|
+
(E.key === "Enter" || E.key === "Space") && (E.preventDefault(), u.current?.click());
|
|
47116
|
+
}, T = (E) => {
|
|
47117
|
+
E?.preventDefault();
|
|
47118
|
+
const D = Array.from(E.dataTransfer?.items ?? []);
|
|
47117
47119
|
f(!!c?.(D)), g(D);
|
|
47118
|
-
}, H = (
|
|
47119
|
-
|
|
47120
|
+
}, H = (E) => {
|
|
47121
|
+
E.target === E.currentTarget && b();
|
|
47120
47122
|
}, M = K(
|
|
47121
47123
|
"border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
|
|
47122
47124
|
!y && !v && "border-primary",
|
|
@@ -47137,7 +47139,7 @@ const hk = function(t, s, o) {
|
|
|
47137
47139
|
{
|
|
47138
47140
|
htmlFor: "file",
|
|
47139
47141
|
tabIndex: 0,
|
|
47140
|
-
onKeyDown:
|
|
47142
|
+
onKeyDown: F,
|
|
47141
47143
|
className: "flex flex-col items-center cursor-pointer h-full w-full text-secondary dial-tiny justify-center",
|
|
47142
47144
|
children: [
|
|
47143
47145
|
t && /* @__PURE__ */ w("p", { className: "mb-1", children: t }),
|
|
@@ -47316,7 +47318,7 @@ const Bk = (e) => {
|
|
|
47316
47318
|
Ha.MyFiles
|
|
47317
47319
|
), o = (n) => {
|
|
47318
47320
|
s(n);
|
|
47319
|
-
}, i =
|
|
47321
|
+
}, i = z(() => {
|
|
47320
47322
|
if (e)
|
|
47321
47323
|
return Object.values(Ha).map((n) => ({
|
|
47322
47324
|
id: n,
|