@marimo-team/islands 0.23.9-dev4 → 0.23.9-dev5
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/{code-visibility-VZebNmSs.js → code-visibility-DY2PjKMU.js} +783 -705
- package/dist/main.js +842 -840
- package/dist/{reveal-component-DZtPMEoM.js → reveal-component-Bq1iwOTq.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/TableBottomBar.tsx +30 -6
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +73 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +52 -1
- package/src/components/data-table/__tests__/header-items.test.tsx +47 -1
- package/src/components/data-table/__tests__/useColumnVisibility.test.ts +42 -0
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +7 -1
- package/src/components/data-table/column-header.tsx +2 -0
- package/src/components/data-table/columns.tsx +3 -4
- package/src/components/data-table/data-table.tsx +30 -0
- package/src/components/data-table/header-items.tsx +18 -1
- package/src/components/data-table/hooks/use-column-visibility.ts +42 -0
- package/src/components/data-table/pagination.tsx +16 -3
- package/src/plugins/impl/DataTablePlugin.tsx +4 -0
|
@@ -1902,21 +1902,21 @@ Defaulting to \`null\`.`;
|
|
|
1902
1902
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
1903
1903
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
1904
1904
|
if (e === t) return;
|
|
1905
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0,
|
|
1906
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
1907
|
-
let
|
|
1908
|
-
if (
|
|
1909
|
-
else if (
|
|
1910
|
-
else if (
|
|
1911
|
-
else if (
|
|
1912
|
-
let e2 =
|
|
1905
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, xK = parseInt(h.borderRightWidth, 10) || 0, SK = c.top - E, CK = c.bottom + O, wK = c.left - A, $ = c.right + M, TK = e === _ ? 0 : Q + xK, EK = e === _ ? 0 : q + J, DK = e.offsetWidth - e.clientWidth - TK, OK = e.offsetHeight - e.clientHeight - EK, kK = v + q + I, AK = y - J - z - OK, jK = S + Q + U, MK = w - xK - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? jK += DK : MK -= DK;
|
|
1907
|
+
let NK = SK < kK || CK > AK, PK = wK < jK || $ > MK;
|
|
1908
|
+
if (NK && i === "start") o += SK - kK;
|
|
1909
|
+
else if (NK && i === "center") o += (SK + CK) / 2 - (kK + AK) / 2;
|
|
1910
|
+
else if (NK && i === "end") o += CK - AK;
|
|
1911
|
+
else if (NK && i === "nearest") {
|
|
1912
|
+
let e2 = SK - kK, t2 = CK - AK;
|
|
1913
1913
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
else if (
|
|
1917
|
-
else if (
|
|
1918
|
-
else if (
|
|
1919
|
-
let e2 =
|
|
1915
|
+
if (PK && a === "start") s += wK - jK;
|
|
1916
|
+
else if (PK && a === "center") s += (wK + $) / 2 - (jK + MK) / 2;
|
|
1917
|
+
else if (PK && a === "end") s += $ - MK;
|
|
1918
|
+
else if (PK && a === "nearest") {
|
|
1919
|
+
let e2 = wK - jK, t2 = $ - MK;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5024,25 +5024,25 @@ Defaulting to \`null\`.`;
|
|
|
5024
5024
|
let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[U]} ${K}`), i2 = $edcf132a9284368a$var$computePosition(t, c, n, e2, h, _, f, v, S, w, d);
|
|
5025
5025
|
$edcf132a9284368a$var$getAvailableSpace(c, f, t, a, o + h, e2, d, E) > Q && (A = e2, q = i2, J = h);
|
|
5026
5026
|
}
|
|
5027
|
-
let
|
|
5028
|
-
A.axis === "top" ? A.placement === "top" ?
|
|
5029
|
-
let
|
|
5030
|
-
q[I] +=
|
|
5031
|
-
let
|
|
5032
|
-
y && y <
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5035
|
-
let
|
|
5036
|
-
x: U === "top" || U === "bottom" ? $ :
|
|
5037
|
-
y: U === "left" || U === "right" ? $ :
|
|
5027
|
+
let xK = "bottom";
|
|
5028
|
+
A.axis === "top" ? A.placement === "top" ? xK = "top" : A.placement === "bottom" && (xK = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? xK = "bottom" : A.crossPlacement === "bottom" && (xK = "top"));
|
|
5029
|
+
let SK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += SK;
|
|
5031
|
+
let CK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, xK, d, E, O);
|
|
5032
|
+
y && y < CK && (CK = y), n.height = Math.min(n.height, CK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), SK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += SK;
|
|
5033
|
+
let wK = {}, $ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], TK = $ + 0.5 * t[z], EK = S / 2 + w, DK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), OK = n[z] - DK - S / 2 - w;
|
|
5034
|
+
wK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(TK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), EK, OK), { placement: U, crossPlacement: K } = A, S ? $ = wK[I] : K === "right" ? $ += t[z] : K === "center" && ($ += t[z] / 2);
|
|
5035
|
+
let kK = U === "left" || U === "top" ? n[M] : 0, AK = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? $ : kK,
|
|
5037
|
+
y: U === "left" || U === "right" ? $ : kK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: CK,
|
|
5042
|
+
arrowOffsetLeft: wK.left,
|
|
5043
|
+
arrowOffsetTop: wK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: AK
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
5048
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -6867,7 +6867,7 @@ Defaulting to \`null\`.`;
|
|
|
6867
6867
|
let e2 = window.getSelection();
|
|
6868
6868
|
(e2 == null ? void 0 : e2.anchorNode) && $d4ee10de306f2510$export$4282f70798064fe0(n.current, e2 == null ? void 0 : e2.anchorNode) && e2.collapse(n.current);
|
|
6869
6869
|
});
|
|
6870
|
-
let
|
|
6870
|
+
let xK = (0, import_react.useRef)("");
|
|
6871
6871
|
$e9faafb641e167db$export$90fc3a17d93f704c(n, "beforeinput", (i2) => {
|
|
6872
6872
|
if (n.current) switch (i2.preventDefault(), i2.inputType) {
|
|
6873
6873
|
case "deleteContentBackward":
|
|
@@ -6875,7 +6875,7 @@ Defaulting to \`null\`.`;
|
|
|
6875
6875
|
E.isValidPartialNumber(e.text) && !t.isReadOnly && O();
|
|
6876
6876
|
break;
|
|
6877
6877
|
case "insertCompositionText":
|
|
6878
|
-
|
|
6878
|
+
xK.current = n.current.textContent, n.current.textContent = n.current.textContent;
|
|
6879
6879
|
break;
|
|
6880
6880
|
default:
|
|
6881
6881
|
i2.data != null && J(i2.data);
|
|
@@ -6885,7 +6885,7 @@ Defaulting to \`null\`.`;
|
|
|
6885
6885
|
let { inputType: t2, data: i2 } = e2;
|
|
6886
6886
|
switch (t2) {
|
|
6887
6887
|
case "insertCompositionText":
|
|
6888
|
-
n.current && (n.current.textContent =
|
|
6888
|
+
n.current && (n.current.textContent = xK.current), i2 != null && (M(z, i2) || M(U, i2)) && J(i2);
|
|
6889
6889
|
break;
|
|
6890
6890
|
}
|
|
6891
6891
|
}), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let SK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,7 +6907,7 @@ Defaulting to \`null\`.`;
|
|
|
6907
6907
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
6908
6908
|
t.segments
|
|
6909
6909
|
]) && !t.isInvalid && (f = void 0);
|
|
6910
|
-
let
|
|
6910
|
+
let CK = $bdb11010cef70236$export$f680877a34711e37(), wK = !t.isDisabled && !t.isReadOnly && e.isEditable, $ = e.type === "literal" ? "" : s.of(e.type), TK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
6911
|
"aria-label": `${$}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
|
|
|
6916
6916
|
"aria-hidden": true
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
-
let
|
|
6919
|
+
let EK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
EK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (EK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, TK, {
|
|
6929
|
+
id: CK,
|
|
6930
|
+
...SK,
|
|
6931
6931
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
6932
6932
|
"aria-describedby": f,
|
|
6933
6933
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
6934
6934
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
6935
|
-
contentEditable:
|
|
6936
|
-
suppressContentEditableWarning:
|
|
6937
|
-
spellCheck:
|
|
6938
|
-
autoCorrect:
|
|
6939
|
-
enterKeyHint:
|
|
6940
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
6935
|
+
contentEditable: wK,
|
|
6936
|
+
suppressContentEditableWarning: wK,
|
|
6937
|
+
spellCheck: wK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: wK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: wK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !wK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: EK,
|
|
6945
6945
|
onPointerDown(e2) {
|
|
6946
6946
|
e2.stopPropagation();
|
|
6947
6947
|
},
|
|
@@ -7014,7 +7014,7 @@ Defaulting to \`null\`.`;
|
|
|
7014
7014
|
q.current = true, (n2 = e.onFocus) == null || n2.call(e, t2), (i2 = e.onFocusChange) == null || i2.call(e, true);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a),
|
|
7017
|
+
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a), xK = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
7018
7018
|
return {
|
|
7019
7019
|
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(K, M, d, S, J, {
|
|
7020
7020
|
role: "group",
|
|
@@ -7061,7 +7061,7 @@ Defaulting to \`null\`.`;
|
|
|
7061
7061
|
realtimeValidation: t.realtimeValidation,
|
|
7062
7062
|
displayValidation: t.displayValidation,
|
|
7063
7063
|
updateValidation(e2) {
|
|
7064
|
-
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2,
|
|
7064
|
+
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2, xK.current));
|
|
7065
7065
|
},
|
|
7066
7066
|
resetValidation: t.resetValidation,
|
|
7067
7067
|
commitValidation: t.commitValidation
|
|
@@ -7079,7 +7079,7 @@ Defaulting to \`null\`.`;
|
|
|
7079
7079
|
realtimeValidation: t.realtimeValidation,
|
|
7080
7080
|
displayValidation: t.displayValidation,
|
|
7081
7081
|
updateValidation(e2) {
|
|
7082
|
-
|
|
7082
|
+
xK.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Q.current, e2));
|
|
7083
7083
|
},
|
|
7084
7084
|
resetValidation: t.resetValidation,
|
|
7085
7085
|
commitValidation: t.commitValidation
|
|
@@ -10173,7 +10173,7 @@ Defaulting to \`null\`.`;
|
|
|
10173
10173
|
function Q(e2) {
|
|
10174
10174
|
e2 = $f62d864046160412$export$4f5203c0d889109e(e2, s, c), A(e2);
|
|
10175
10175
|
}
|
|
10176
|
-
function
|
|
10176
|
+
function xK(t2) {
|
|
10177
10177
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
10178
10178
|
let e2 = t2;
|
|
10179
10179
|
if (e2 === null) {
|
|
@@ -10184,12 +10184,12 @@ Defaulting to \`null\`.`;
|
|
|
10184
10184
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10185
10185
|
}
|
|
10186
10186
|
}
|
|
10187
|
-
let
|
|
10187
|
+
let SK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10188
10188
|
w,
|
|
10189
10189
|
f,
|
|
10190
10190
|
s,
|
|
10191
10191
|
c
|
|
10192
|
-
]),
|
|
10192
|
+
]), CK = e.isInvalid || e.validationState === "invalid" || SK, wK = CK ? "invalid" : null, $ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -10197,7 +10197,7 @@ Defaulting to \`null\`.`;
|
|
|
10197
10197
|
isDisabled: e.isDisabled ?? false,
|
|
10198
10198
|
isReadOnly: e.isReadOnly ?? false,
|
|
10199
10199
|
value: w,
|
|
10200
|
-
setValue:
|
|
10200
|
+
setValue: xK,
|
|
10201
10201
|
visibleRange: {
|
|
10202
10202
|
start: M,
|
|
10203
10203
|
end: K
|
|
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
|
|
|
10206
10206
|
maxValue: c,
|
|
10207
10207
|
focusedDate: O,
|
|
10208
10208
|
timeZone: E,
|
|
10209
|
-
validationState:
|
|
10210
|
-
isValueInvalid:
|
|
10209
|
+
validationState: wK,
|
|
10210
|
+
isValueInvalid: CK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10268,10 +10268,10 @@ Defaulting to \`null\`.`;
|
|
|
10268
10268
|
}));
|
|
10269
10269
|
},
|
|
10270
10270
|
selectFocusedDate() {
|
|
10271
|
-
f && f(O) ||
|
|
10271
|
+
f && f(O) || xK(O);
|
|
10272
10272
|
},
|
|
10273
10273
|
selectDate(e2) {
|
|
10274
|
-
|
|
10274
|
+
xK(e2);
|
|
10275
10275
|
},
|
|
10276
10276
|
isFocused: z,
|
|
10277
10277
|
setFocused: U,
|
|
@@ -10374,13 +10374,13 @@ Defaulting to \`null\`.`;
|
|
|
10374
10374
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10375
10375
|
}), q(null);
|
|
10376
10376
|
}
|
|
10377
|
-
}, [
|
|
10378
|
-
|
|
10377
|
+
}, [xK, SK] = (0, import_react.useState)(false), { isDateUnavailable: CK } = e, wK = (0, import_react.useMemo)(() => !h || v ? false : CK && (CK(h.start) || CK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
CK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]), $ = e.isInvalid || e.validationState === "invalid" ||
|
|
10383
|
+
]), $ = e.isInvalid || e.validationState === "invalid" || wK, TK = $ ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10388,7 +10388,7 @@ Defaulting to \`null\`.`;
|
|
|
10388
10388
|
anchorDate: v,
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
|
-
validationState:
|
|
10391
|
+
validationState: TK,
|
|
10392
10392
|
isValueInvalid: $,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
@@ -10404,8 +10404,8 @@ Defaulting to \`null\`.`;
|
|
|
10404
10404
|
var _a2, _b;
|
|
10405
10405
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10406
10406
|
},
|
|
10407
|
-
isDragging:
|
|
10408
|
-
setDragging:
|
|
10407
|
+
isDragging: xK,
|
|
10408
|
+
setDragging: SK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11587,12 +11587,12 @@ Defaulting to \`null\`.`;
|
|
|
11587
11587
|
q
|
|
11588
11588
|
]), Q = (0, import_react.useMemo)(() => J.resolvedOptions(), [
|
|
11589
11589
|
J
|
|
11590
|
-
]),
|
|
11590
|
+
]), xK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$66aa2b09de4b1ea5(e.placeholderValue, _, S, v), [
|
|
11591
11591
|
e.placeholderValue,
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), SK = (0, import_react.useMemo)(() => {
|
|
11596
11596
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11597
11597
|
"era",
|
|
11598
11598
|
"year",
|
|
@@ -11610,15 +11610,15 @@ Defaulting to \`null\`.`;
|
|
|
11610
11610
|
e.maxGranularity,
|
|
11611
11611
|
_,
|
|
11612
11612
|
w
|
|
11613
|
-
]), [
|
|
11614
|
-
(M !==
|
|
11615
|
-
let
|
|
11616
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11613
|
+
]), [CK, wK] = (0, import_react.useState)(M), [$, TK] = (0, import_react.useState)(S), [EK, DK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== CK || w !== EK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, $)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), wK(M), TK(S), DK(w), z(I));
|
|
11615
|
+
let OK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(SK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11617
11617
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11618
11618
|
else {
|
|
11619
|
-
if (t2.isComplete(
|
|
11620
|
-
let e2 = t2.toValue(M ??
|
|
11621
|
-
if (t2.validate(e2,
|
|
11619
|
+
if (t2.isComplete(SK)) {
|
|
11620
|
+
let e2 = t2.toValue(M ?? xK);
|
|
11621
|
+
if (t2.validate(e2, SK)) {
|
|
11622
11622
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11623
11623
|
if (!E || t3.compare(E) !== 0) {
|
|
11624
11624
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11628,83 +11628,83 @@ Defaulting to \`null\`.`;
|
|
|
11628
11628
|
}
|
|
11629
11629
|
z(t2);
|
|
11630
11630
|
}
|
|
11631
|
-
},
|
|
11631
|
+
}, kK = (0, import_react.useMemo)(() => I.toValue(M ?? xK).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
|
-
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11635
|
+
xK
|
|
11636
|
+
]), AK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(kK, I, J, Q, S, t, _), [
|
|
11637
|
+
kK,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), jK = (e2, t2) => {
|
|
11645
|
+
OK(I.cycle(e2, t2, xK, SK));
|
|
11646
|
+
}, MK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11647
11647
|
E,
|
|
11648
11648
|
c,
|
|
11649
11649
|
d,
|
|
11650
11650
|
f,
|
|
11651
11651
|
K
|
|
11652
|
-
]),
|
|
11652
|
+
]), NK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: MK
|
|
11656
|
+
}), PK = NK.displayValidation.isInvalid, FK = e.validationState || (PK ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...NK,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: kK,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: OK,
|
|
11664
|
+
segments: AK,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: FK,
|
|
11667
|
+
isInvalid: PK,
|
|
11668
11668
|
granularity: _,
|
|
11669
11669
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11670
11670
|
isDisabled: a,
|
|
11671
11671
|
isReadOnly: o,
|
|
11672
11672
|
isRequired: s,
|
|
11673
11673
|
increment(e2) {
|
|
11674
|
-
|
|
11674
|
+
jK(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
jK(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
jK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
jK(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11684
11684
|
},
|
|
11685
11685
|
incrementToMax(e2) {
|
|
11686
11686
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11687
|
-
|
|
11687
|
+
OK(I.set(e2, t2, xK));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
|
|
11691
|
+
OK(I.set(e2, t2, xK));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
OK(I.set(e2, t2, xK));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11698
|
-
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ??
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(SK)) {
|
|
11698
|
+
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? xK), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11699
11699
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11700
11700
|
}
|
|
11701
11701
|
},
|
|
11702
11702
|
clearSegment(e2) {
|
|
11703
11703
|
let t2 = I;
|
|
11704
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11704
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), OK(t2);
|
|
11705
11705
|
},
|
|
11706
11706
|
formatValue(e2) {
|
|
11707
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11707
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(kK) : "";
|
|
11708
11708
|
},
|
|
11709
11709
|
getDateFormatter(e2, t2) {
|
|
11710
11710
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
|
|
|
11824
11824
|
e.endName
|
|
11825
11825
|
]),
|
|
11826
11826
|
builtinValidation: J
|
|
11827
|
-
}),
|
|
11827
|
+
}), xK = Q.displayValidation.isInvalid, SK = e.validationState || (xK ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,8 +11870,8 @@ Defaulting to \`null\`.`;
|
|
|
11870
11870
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
11871
11871
|
}), t.setOpen(n2);
|
|
11872
11872
|
},
|
|
11873
|
-
validationState:
|
|
11874
|
-
isInvalid:
|
|
11873
|
+
validationState: SK,
|
|
11874
|
+
isInvalid: xK,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
11877
11877
|
let i2 = "timeZone" in c.start ? c.start.timeZone : void 0, a2 = e.granularity || (c.start && "minute" in c.start ? "minute" : "day"), o2 = "timeZone" in c.end ? c.end.timeZone : void 0, s2 = e.granularity || (c.end && "minute" in c.end ? "minute" : "day"), d2 = $35a22f14a1f04b11$export$7e319ea407e63bc0(n2, {
|
|
@@ -15742,29 +15742,29 @@ try {
|
|
|
15742
15742
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15743
15743
|
function y(e2) {
|
|
15744
15744
|
var _a2, _b, _c, _d;
|
|
15745
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
15745
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), xK = !!Q && !I, SK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), CK = SK[t], wK = CK || SK, { colorSchemes: $ = _, components: TK = v, cssVarPrefix: EK } = wK, DK = Object.keys($).filter((e3) => !!$[e3]).join(","), OK = import_react.useMemo(() => DK.split(","), [
|
|
15748
|
+
DK
|
|
15749
|
+
]), kK = typeof s == "string" ? s : s.light, AK = typeof s == "string" ? s : s.dark, { mode: jK, setMode: MK, systemMode: NK, lightColorScheme: PK, darkColorScheme: FK, colorScheme: IK, setColorScheme: LK } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: OK,
|
|
15751
|
+
defaultLightColorScheme: kK,
|
|
15752
|
+
defaultDarkColorScheme: AK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode: $[
|
|
15755
|
+
defaultMode: $[kK] && $[AK] ? U : ((_b = (_a2 = $[wK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = wK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
|
|
15761
|
-
let
|
|
15759
|
+
}), RK = jK, zK = IK;
|
|
15760
|
+
xK && (RK = Q.mode, zK = Q.colorScheme);
|
|
15761
|
+
let BK = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15763
|
+
let e3 = zK || wK.defaultColorScheme, t2 = ((_a3 = wK.generateThemeVars) == null ? void 0 : _a3.call(wK)) || wK.vars, n2 = {
|
|
15764
|
+
...wK,
|
|
15765
|
+
components: TK,
|
|
15766
15766
|
colorSchemes: $,
|
|
15767
|
-
cssVarPrefix:
|
|
15767
|
+
cssVarPrefix: EK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
@@ -15778,31 +15778,31 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
|
|
15782
|
-
|
|
15783
|
-
|
|
15781
|
+
wK,
|
|
15782
|
+
zK,
|
|
15783
|
+
TK,
|
|
15784
15784
|
$,
|
|
15785
|
-
|
|
15786
|
-
]),
|
|
15785
|
+
EK
|
|
15786
|
+
]), VK = wK.colorSchemeSelector;
|
|
15787
15787
|
useEnhancedEffect_default(() => {
|
|
15788
|
-
if (
|
|
15789
|
-
let e3 =
|
|
15790
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
15788
|
+
if (zK && M && VK && VK !== "media") {
|
|
15789
|
+
let e3 = VK, t2 = VK;
|
|
15790
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...OK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", zK));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", zK).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || OK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(zK, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, zK);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
LK,
|
|
15803
15802
|
zK,
|
|
15803
|
+
VK,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
OK
|
|
15806
15806
|
]), import_react.useEffect(() => {
|
|
15807
15807
|
let e3;
|
|
15808
15808
|
if (w2 && q.current && A) {
|
|
@@ -15815,48 +15815,48 @@ try {
|
|
|
15815
15815
|
clearTimeout(e3);
|
|
15816
15816
|
};
|
|
15817
15817
|
}, [
|
|
15818
|
-
|
|
15818
|
+
zK,
|
|
15819
15819
|
w2,
|
|
15820
15820
|
A
|
|
15821
15821
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15822
15822
|
q.current = false;
|
|
15823
15823
|
}), []);
|
|
15824
|
-
let
|
|
15825
|
-
allColorSchemes:
|
|
15826
|
-
colorScheme:
|
|
15827
|
-
darkColorScheme:
|
|
15828
|
-
lightColorScheme:
|
|
15829
|
-
mode:
|
|
15830
|
-
setColorScheme:
|
|
15831
|
-
setMode:
|
|
15832
|
-
systemMode:
|
|
15824
|
+
let HK = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: OK,
|
|
15826
|
+
colorScheme: zK,
|
|
15827
|
+
darkColorScheme: FK,
|
|
15828
|
+
lightColorScheme: PK,
|
|
15829
|
+
mode: RK,
|
|
15830
|
+
setColorScheme: LK,
|
|
15831
|
+
setMode: MK,
|
|
15832
|
+
systemMode: NK
|
|
15833
15833
|
}), [
|
|
15834
|
-
|
|
15834
|
+
OK,
|
|
15835
|
+
zK,
|
|
15836
|
+
FK,
|
|
15837
|
+
PK,
|
|
15838
|
+
RK,
|
|
15835
15839
|
LK,
|
|
15836
|
-
NK,
|
|
15837
15840
|
MK,
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
]), VK = true;
|
|
15844
|
-
(z || SK.cssVariables === false || yK && (J == null ? void 0 : J.cssVarPrefix) === wK) && (VK = false);
|
|
15845
|
-
let HK = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15841
|
+
NK,
|
|
15842
|
+
BK.colorSchemeSelector
|
|
15843
|
+
]), UK = true;
|
|
15844
|
+
(z || wK.cssVariables === false || xK && (J == null ? void 0 : J.cssVarPrefix) === EK) && (UK = false);
|
|
15845
|
+
let WK = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15846
15846
|
children: [
|
|
15847
15847
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
15848
|
-
themeId:
|
|
15849
|
-
theme:
|
|
15848
|
+
themeId: CK ? t : void 0,
|
|
15849
|
+
theme: BK,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
UK && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = BK.generateStyleSheets) == null ? void 0 : _d.call(BK)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return xK ? WK : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: HK,
|
|
15859
|
+
children: WK
|
|
15860
15860
|
});
|
|
15861
15861
|
}
|
|
15862
15862
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17356,10 +17356,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17356
17356
|
let n = useDefaultProps({
|
|
17357
17357
|
props: e,
|
|
17358
17358
|
name: "MuiInputBase"
|
|
17359
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
17360
|
-
}, []),
|
|
17359
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: xK, onFocus: SK, onKeyDown: CK, onKeyUp: wK, placeholder: $, readOnly: TK, renderSuffix: EK, rows: DK, size: OK, slotProps: kK = {}, slots: AK = {}, startAdornment: jK, type: MK = "text", value: NK, ...PK } = n, FK = A.value == null ? NK : A.value, { current: IK } = import_react.useRef(FK != null), LK = import_react.useRef(), RK = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), zK = useForkRef_default(LK, M, A.ref, RK), [BK, VK] = import_react.useState(false), HK = useFormControl(), UK = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: HK,
|
|
17363
17363
|
states: [
|
|
17364
17364
|
"color",
|
|
17365
17365
|
"disabled",
|
|
@@ -17370,145 +17370,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17370
17370
|
"filled"
|
|
17371
17371
|
]
|
|
17372
17372
|
});
|
|
17373
|
-
|
|
17374
|
-
!
|
|
17373
|
+
UK.focused = HK ? HK.focused : BK, import_react.useEffect(() => {
|
|
17374
|
+
!HK && _ && BK && (VK(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
HK,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
BK,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let WK = HK && HK.onFilled, GK = HK && HK.onEmpty, KK = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? WK && WK() : GK && GK();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
WK,
|
|
17385
|
+
GK
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
IK && KK({
|
|
17389
|
+
value: FK
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17392
|
+
FK,
|
|
17393
|
+
KK,
|
|
17394
|
+
IK
|
|
17395
17395
|
]);
|
|
17396
|
-
let
|
|
17397
|
-
|
|
17398
|
-
},
|
|
17399
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17400
|
-
},
|
|
17401
|
-
if (!
|
|
17402
|
-
let t3 = e2.target ||
|
|
17396
|
+
let qK = (e2) => {
|
|
17397
|
+
SK && SK(e2), A.onFocus && A.onFocus(e2), HK && HK.onFocus ? HK.onFocus(e2) : VK(true);
|
|
17398
|
+
}, JK = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), HK && HK.onBlur ? HK.onBlur(e2) : VK(false);
|
|
17400
|
+
}, YK = (e2, ...t2) => {
|
|
17401
|
+
if (!IK) {
|
|
17402
|
+
let t3 = e2.target || LK.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
KK({
|
|
17405
17405
|
value: t3.value
|
|
17406
17406
|
});
|
|
17407
17407
|
}
|
|
17408
17408
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17409
17409
|
};
|
|
17410
17410
|
import_react.useEffect(() => {
|
|
17411
|
-
|
|
17411
|
+
KK(LK.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let XK = (e2) => {
|
|
17414
|
+
LK.current && e2.currentTarget === e2.target && LK.current.focus(), xK && xK(e2);
|
|
17415
|
+
}, ZK = O, QK = A;
|
|
17416
|
+
K && ZK === "input" && (QK = DK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: DK,
|
|
17419
|
+
maxRows: DK,
|
|
17420
|
+
...QK
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...QK
|
|
17426
|
+
}, ZK = TextareaAutosize_default);
|
|
17427
|
+
let $K = (e2) => {
|
|
17428
|
+
KK(e2.animationName === "mui-auto-fill-cancel" ? LK.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
HK && HK.setAdornedStart(!!jK);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
HK,
|
|
17436
|
+
jK
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let eq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: UK.color || "primary",
|
|
17441
|
+
disabled: UK.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: UK.error,
|
|
17444
|
+
focused: UK.focused,
|
|
17445
|
+
formControl: HK,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: UK.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
...
|
|
17449
|
+
size: UK.size,
|
|
17450
|
+
startAdornment: jK,
|
|
17451
|
+
type: MK
|
|
17452
|
+
}, tq = useUtilityClasses(eq), nq = AK.root || d.Root || InputBaseRoot, rq = kK.root || f.root || {}, iq = AK.input || d.Input || InputBaseInput;
|
|
17453
|
+
return QK = {
|
|
17454
|
+
...QK,
|
|
17455
|
+
...kK.input ?? f.input
|
|
17456
17456
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17457
17457
|
children: [
|
|
17458
17458
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17459
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17460
|
-
...
|
|
17459
|
+
(0, import_jsx_runtime.jsxs)(nq, {
|
|
17460
|
+
...rq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: XK,
|
|
17463
|
+
...PK,
|
|
17464
|
+
...!isHostComponent_default(nq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...eq,
|
|
17467
|
+
...rq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(tq.root, rq.className, s, TK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
jK,
|
|
17473
17473
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17474
17474
|
value: null,
|
|
17475
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17476
|
-
"aria-invalid":
|
|
17475
|
+
children: (0, import_jsx_runtime.jsx)(iq, {
|
|
17476
|
+
"aria-invalid": UK.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: UK.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: $K,
|
|
17484
17484
|
name: q,
|
|
17485
17485
|
placeholder: $,
|
|
17486
|
-
readOnly:
|
|
17487
|
-
required:
|
|
17488
|
-
rows:
|
|
17489
|
-
value:
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17492
|
-
type:
|
|
17493
|
-
...
|
|
17494
|
-
...!isHostComponent_default(
|
|
17495
|
-
as:
|
|
17486
|
+
readOnly: TK,
|
|
17487
|
+
required: UK.required,
|
|
17488
|
+
rows: DK,
|
|
17489
|
+
value: FK,
|
|
17490
|
+
onKeyDown: CK,
|
|
17491
|
+
onKeyUp: wK,
|
|
17492
|
+
type: MK,
|
|
17493
|
+
...QK,
|
|
17494
|
+
...!isHostComponent_default(iq) && {
|
|
17495
|
+
as: ZK,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...eq,
|
|
17498
|
+
...QK.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: zK,
|
|
17502
|
+
className: clsx_default(tq.input, QK.className, TK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: JK,
|
|
17504
|
+
onChange: YK,
|
|
17505
|
+
onFocus: qK
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
...
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
EK ? EK({
|
|
17510
|
+
...UK,
|
|
17511
|
+
startAdornment: jK
|
|
17512
17512
|
}) : null
|
|
17513
17513
|
]
|
|
17514
17514
|
})
|
|
@@ -18584,30 +18584,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18584
18584
|
M,
|
|
18585
18585
|
i,
|
|
18586
18586
|
a
|
|
18587
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
18588
|
-
|
|
18587
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), xK = useJsonViewerStore((e2) => e2.onChange), SK = useTextColor(), CK = useJsonViewerStore((e2) => e2.colorspace.base0C), wK = useJsonViewerStore((e2) => e2.colorspace.base0A), $ = useJsonViewerStore((e2) => e2.displayComma), TK = useJsonViewerStore((e2) => e2.quotesOnKeys), EK = useJsonViewerStore((e2) => e2.rootName), DK = U === t, OK = Number.isInteger(Number(A)), kK = useJsonViewerStore((e2) => e2.enableAdd), AK = useJsonViewerStore((e2) => e2.onAdd), jK = (0, import_react.useMemo)(() => !AK || a !== void 0 || kK === false || v === false ? false : typeof kK == "function" ? !!kK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
AK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
kK,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), MK = useJsonViewerStore((e2) => e2.enableDelete), NK = useJsonViewerStore((e2) => e2.onDelete), PK = (0, import_react.useMemo)(() => !NK || a !== void 0 || DK || MK === false || v === false ? false : typeof MK == "function" ? !!MK(i, t) : MK, [
|
|
18595
|
+
NK,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
DK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
MK,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), FK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: IK, copied: LK } = useClipboard(), RK = useJsonViewerStore((e2) => e2.highlightUpdates), zK = (0, import_react.useMemo)(() => !RK || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
|
|
18603
|
+
RK,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), BK = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
BK.current && zK && "animate" in BK.current && BK.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: wK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,40 +18617,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18617
18617
|
easing: "ease-in"
|
|
18618
18618
|
});
|
|
18619
18619
|
}, [
|
|
18620
|
-
|
|
18621
|
-
|
|
18620
|
+
wK,
|
|
18621
|
+
zK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let VK = (0, import_react.useCallback)((e2) => {
|
|
18626
18626
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18627
18627
|
}, [
|
|
18628
18628
|
h,
|
|
18629
18629
|
t
|
|
18630
|
-
]),
|
|
18630
|
+
]), HK = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), UK = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
|
-
|
|
18637
|
+
xK(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
18639
18639
|
}
|
|
18640
18640
|
}, [
|
|
18641
18641
|
Q,
|
|
18642
18642
|
_,
|
|
18643
|
-
|
|
18643
|
+
xK,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), WK = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18647
18647
|
children: [
|
|
18648
18648
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18649
18649
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18650
18650
|
sx: {
|
|
18651
18651
|
fontSize: ".8rem"
|
|
18652
18652
|
},
|
|
18653
|
-
onClick:
|
|
18653
|
+
onClick: HK
|
|
18654
18654
|
})
|
|
18655
18655
|
}),
|
|
18656
18656
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18658,22 +18658,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18658
18658
|
sx: {
|
|
18659
18659
|
fontSize: ".8rem"
|
|
18660
18660
|
},
|
|
18661
|
-
onClick: () =>
|
|
18661
|
+
onClick: () => UK(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
FK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
IK(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: LK ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18677
18677
|
sx: {
|
|
18678
18678
|
fontSize: ".8rem"
|
|
18679
18679
|
}
|
|
@@ -18684,16 +18684,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18684
18684
|
})
|
|
18685
18685
|
}),
|
|
18686
18686
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18687
|
-
onClick:
|
|
18687
|
+
onClick: VK,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
jK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), AK == null ? void 0 : AK(i);
|
|
18697
18697
|
},
|
|
18698
18698
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18699
18699
|
sx: {
|
|
@@ -18701,9 +18701,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18701
18701
|
}
|
|
18702
18702
|
})
|
|
18703
18703
|
}),
|
|
18704
|
-
|
|
18704
|
+
PK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), NK == null ? void 0 : NK(i, t);
|
|
18707
18707
|
},
|
|
18708
18708
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18709
18709
|
sx: {
|
|
@@ -18716,24 +18716,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18716
18716
|
f,
|
|
18717
18717
|
h,
|
|
18718
18718
|
_,
|
|
18719
|
-
|
|
18720
|
-
|
|
18719
|
+
LK,
|
|
18720
|
+
IK,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18723
|
+
FK,
|
|
18724
|
+
jK,
|
|
18725
|
+
PK,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
]),
|
|
18729
|
+
AK,
|
|
18730
|
+
NK,
|
|
18731
|
+
VK,
|
|
18732
|
+
HK,
|
|
18733
|
+
UK
|
|
18734
|
+
]), GK = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), KK = !GK && !!(c && d), qK = useJsonViewerStore((e2) => e2.keyRenderer), JK = (0, import_react.useMemo)(() => ({
|
|
18737
18737
|
path: i,
|
|
18738
18738
|
inspect: K,
|
|
18739
18739
|
setInspect: q,
|
|
@@ -18765,18 +18765,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
className: "data-key",
|
|
18766
18766
|
sx: {
|
|
18767
18767
|
lineHeight: 1.5,
|
|
18768
|
-
color:
|
|
18768
|
+
color: SK,
|
|
18769
18769
|
letterSpacing: 0.5,
|
|
18770
18770
|
opacity: 0.8
|
|
18771
18771
|
},
|
|
18772
18772
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18773
|
-
e2.isDefaultPrevented() ||
|
|
18773
|
+
e2.isDefaultPrevented() || GK || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
GK,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
KK ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18780
18780
|
className: "data-key-toggle-expanded",
|
|
18781
18781
|
sx: {
|
|
18782
18782
|
fontSize: ".8rem",
|
|
@@ -18794,27 +18794,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18794
18794
|
}
|
|
18795
18795
|
}) : null,
|
|
18796
18796
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18797
|
-
ref:
|
|
18797
|
+
ref: BK,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: DK && O === 0 ? EK === false ? null : TK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
EK,
|
|
18804
18804
|
'"'
|
|
18805
18805
|
]
|
|
18806
18806
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18807
|
-
children:
|
|
18808
|
-
}) :
|
|
18809
|
-
...
|
|
18810
|
-
}) : a === void 0 && (
|
|
18807
|
+
children: EK
|
|
18808
|
+
}) : qK.when(JK) ? (0, import_jsx_runtime.jsx)(qK, {
|
|
18809
|
+
...JK
|
|
18810
|
+
}) : a === void 0 && (OK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: CK,
|
|
18814
|
+
userSelect: OK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : TK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18818
18818
|
children: [
|
|
18819
18819
|
'"',
|
|
18820
18820
|
A,
|
|
@@ -18824,7 +18824,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18824
18824
|
children: A
|
|
18825
18825
|
}))
|
|
18826
18826
|
}),
|
|
18827
|
-
|
|
18827
|
+
DK ? EK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18828
18828
|
className: "data-key-colon",
|
|
18829
18829
|
sx: {
|
|
18830
18830
|
mr: 0.5
|
|
@@ -18837,38 +18837,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18837
18837
|
".data-key-key:empty + &": {
|
|
18838
18838
|
display: "none"
|
|
18839
18839
|
},
|
|
18840
|
-
userSelect:
|
|
18840
|
+
userSelect: OK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...JK
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && KK && K && WK
|
|
18848
18848
|
]
|
|
18849
18849
|
}),
|
|
18850
18850
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
18851
18851
|
path: i,
|
|
18852
18852
|
value: w,
|
|
18853
18853
|
setValue: E,
|
|
18854
|
-
abortEditing:
|
|
18855
|
-
commitEditing:
|
|
18854
|
+
abortEditing: HK,
|
|
18855
|
+
commitEditing: UK
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...JK
|
|
18858
18858
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18859
18859
|
component: "span",
|
|
18860
18860
|
className: "data-value-fallback",
|
|
18861
18861
|
children: `fallback: ${t}`
|
|
18862
18862
|
}),
|
|
18863
18863
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
18864
|
-
...
|
|
18864
|
+
...JK
|
|
18865
18865
|
}),
|
|
18866
18866
|
!o && $ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && KK && !K && WK,
|
|
18870
|
+
I && !KK && WK,
|
|
18871
|
+
!I && J && WK
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19709,18 +19709,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19709
19709
|
}
|
|
19710
19710
|
let _, v, y, S, w, E;
|
|
19711
19711
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== f || t[8] !== c) {
|
|
19712
|
-
let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
19713
|
-
t[15] === s ?
|
|
19712
|
+
let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), xK = n.filter(_temp16), SK = n.filter(_temp17), CK;
|
|
19713
|
+
t[15] === s ? CK = t[16] : (CK = () => {
|
|
19714
19714
|
s.openApplication("scratchpad");
|
|
19715
|
-
}, t[15] = s, t[16] =
|
|
19716
|
-
let
|
|
19715
|
+
}, t[15] = s, t[16] = CK);
|
|
19716
|
+
let wK = CK, $ = () => {
|
|
19717
19717
|
let t2 = [];
|
|
19718
|
-
if (Q.length > 0 ||
|
|
19718
|
+
if (Q.length > 0 || xK.length > 0) {
|
|
19719
19719
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
19720
19720
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19721
19721
|
children: [
|
|
19722
19722
|
Q.map(_temp20),
|
|
19723
|
-
|
|
19723
|
+
xK.map(_temp21),
|
|
19724
19724
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19725
19725
|
size: "xs",
|
|
19726
19726
|
variant: "outline",
|
|
@@ -19752,7 +19752,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19752
19752
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19753
19753
|
errors: [
|
|
19754
19754
|
...Q,
|
|
19755
|
-
...
|
|
19755
|
+
...xK
|
|
19756
19756
|
],
|
|
19757
19757
|
cellId: i
|
|
19758
19758
|
})
|
|
@@ -19913,7 +19913,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19913
19913
|
size: "xs",
|
|
19914
19914
|
variant: "link",
|
|
19915
19915
|
className: "my-2 font-normal mx-0 px-0",
|
|
19916
|
-
onClick:
|
|
19916
|
+
onClick: wK,
|
|
19917
19917
|
children: [
|
|
19918
19918
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
19919
19919
|
className: "h-3"
|
|
@@ -20028,23 +20028,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20028
20028
|
cellId: i
|
|
20029
20029
|
})
|
|
20030
20030
|
]
|
|
20031
|
-
}, "ancestor-stopped")),
|
|
20031
|
+
}, "ancestor-stopped")), SK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20032
20032
|
children: [
|
|
20033
|
-
|
|
20033
|
+
SK.map(_temp35),
|
|
20034
20034
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20035
|
-
errors:
|
|
20035
|
+
errors: SK,
|
|
20036
20036
|
cellId: i,
|
|
20037
20037
|
className: "mt-2.5"
|
|
20038
20038
|
})
|
|
20039
20039
|
]
|
|
20040
20040
|
}, "sql-errors")), t2;
|
|
20041
|
-
},
|
|
20042
|
-
t[17] !==
|
|
20043
|
-
className:
|
|
20041
|
+
}, TK = `font-code font-medium tracking-wide ${f}`, EK;
|
|
20042
|
+
t[17] !== TK || t[18] !== c ? (EK = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20043
|
+
className: TK,
|
|
20044
20044
|
children: c
|
|
20045
|
-
}), t[17] =
|
|
20046
|
-
let
|
|
20047
|
-
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
20045
|
+
}), t[17] = TK, t[18] = c, t[19] = EK) : EK = t[19];
|
|
20046
|
+
let DK = EK;
|
|
20047
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = DK, v = "flex flex-col gap-8", y = $(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = f, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
|
|
20048
20048
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
20049
20049
|
let O;
|
|
20050
20050
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -23411,6 +23411,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23411
23411
|
]
|
|
23412
23412
|
});
|
|
23413
23413
|
}
|
|
23414
|
+
function HideColumn(e) {
|
|
23415
|
+
let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e;
|
|
23416
|
+
if (!n.getCanHide()) return null;
|
|
23417
|
+
let i;
|
|
23418
|
+
t[0] === n ? i = t[1] : (i = () => n.toggleVisibility(false), t[0] = n, t[1] = i);
|
|
23419
|
+
let a;
|
|
23420
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
23421
|
+
className: "mo-dropdown-icon"
|
|
23422
|
+
}), t[2] = a) : a = t[2];
|
|
23423
|
+
let o;
|
|
23424
|
+
return t[3] === i ? o = t[4] : (o = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23425
|
+
onClick: i,
|
|
23426
|
+
children: [
|
|
23427
|
+
a,
|
|
23428
|
+
"Hide column"
|
|
23429
|
+
]
|
|
23430
|
+
}), t[3] = i, t[4] = o), o;
|
|
23431
|
+
}
|
|
23414
23432
|
function renderCopyColumn(e) {
|
|
23415
23433
|
var _a2;
|
|
23416
23434
|
return !((_a2 = e.getCanCopy) == null ? void 0 : _a2.call(e)) || e.id.startsWith("__m_column__") ? null : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
@@ -23476,8 +23494,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23476
23494
|
n === "desc" && s()
|
|
23477
23495
|
]
|
|
23478
23496
|
}),
|
|
23479
|
-
c()
|
|
23480
|
-
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {})
|
|
23497
|
+
c()
|
|
23481
23498
|
]
|
|
23482
23499
|
});
|
|
23483
23500
|
}
|
|
@@ -23579,6 +23596,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23579
23596
|
renderColumnPinning(e),
|
|
23580
23597
|
renderColumnWrapping(e),
|
|
23581
23598
|
renderFormatOptions(e, c),
|
|
23599
|
+
(0, import_jsx_runtime.jsx)(HideColumn, {
|
|
23600
|
+
column: e
|
|
23601
|
+
}),
|
|
23582
23602
|
_ && (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
23583
23603
|
_ && (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23584
23604
|
onSelect: () => d.requestAddFilter({
|
|
@@ -25352,7 +25372,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25352
25372
|
className: "text-link hover:underline",
|
|
25353
25373
|
children: n
|
|
25354
25374
|
}), t[1] = n, t[2] = a), a;
|
|
25355
|
-
}, PopoverClose$1 = Close$1
|
|
25375
|
+
}, PopoverClose$1 = Close$1;
|
|
25376
|
+
NAMELESS_COLUMN_PREFIX = "__m_column__";
|
|
25377
|
+
var MAX_STRING_LENGTH = 50;
|
|
25356
25378
|
function inferDataType(e) {
|
|
25357
25379
|
return typeof e == "string" ? [
|
|
25358
25380
|
"string",
|
|
@@ -25380,7 +25402,6 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25380
25402
|
});
|
|
25381
25403
|
}), Objects.entries(t);
|
|
25382
25404
|
};
|
|
25383
|
-
NAMELESS_COLUMN_PREFIX = "__m_column__";
|
|
25384
25405
|
generateColumns = function({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: i, textJustifyColumns: o, wrappedColumns: s, headerTooltip: c, showDataTypes: d, calculateTopKRows: f, fractionDigitsByColumn: h }) {
|
|
25385
25406
|
let _ = new Set(e.map(([e2]) => e2)), v = Maps.keyBy(n, (e2) => e2[0]), y = (t2) => {
|
|
25386
25407
|
var _a2, _b;
|
|
@@ -25413,6 +25434,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25413
25434
|
let O = w.map((e2, n2) => ({
|
|
25414
25435
|
id: e2 || `__m_column__${n2}`,
|
|
25415
25436
|
accessorFn: (t2) => t2[e2],
|
|
25437
|
+
enableHiding: !_.has(e2) && e2 !== "",
|
|
25416
25438
|
header: ({ column: t2, table: n3 }) => {
|
|
25417
25439
|
var _a2;
|
|
25418
25440
|
let s2 = i == null ? void 0 : i.getColumnStats(e2), h2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, v2 = c == null ? void 0 : c[e2], y2 = o == null ? void 0 : o[e2], S2 = d && h2 ? (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -25484,7 +25506,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
25484
25506
|
meta: y(e2)
|
|
25485
25507
|
}));
|
|
25486
25508
|
return (t === "single" || t === "multi") && O.unshift({
|
|
25487
|
-
id:
|
|
25509
|
+
id: "__select__",
|
|
25488
25510
|
maxSize: 40,
|
|
25489
25511
|
header: ({ table: e2 }) => t === "multi" ? (0, import_jsx_runtime.jsx)(Checkbox, {
|
|
25490
25512
|
"data-testid": "select-all-checkbox",
|
|
@@ -26044,7 +26066,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26044
26066
|
function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
|
|
26045
26067
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26046
26068
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26047
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
26069
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, xK = useUniqueId(s), SK = (0, import_react.useRef)({
|
|
26048
26070
|
callbacks: {
|
|
26049
26071
|
onCollapse: f,
|
|
26050
26072
|
onExpand: h,
|
|
@@ -26057,72 +26079,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26057
26079
|
maxSize: c,
|
|
26058
26080
|
minSize: d
|
|
26059
26081
|
},
|
|
26060
|
-
id:
|
|
26082
|
+
id: xK,
|
|
26061
26083
|
idIsFromProps: s !== void 0,
|
|
26062
26084
|
order: v
|
|
26063
26085
|
});
|
|
26064
26086
|
(0, import_react.useRef)({
|
|
26065
26087
|
didLogMissingDefaultSizeWarning: false
|
|
26066
26088
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26067
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26089
|
+
let { callbacks: e2, constraints: t2 } = SK.current, o2 = {
|
|
26068
26090
|
...t2
|
|
26069
26091
|
};
|
|
26070
|
-
|
|
26092
|
+
SK.current.id = xK, SK.current.idIsFromProps = s !== void 0, SK.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(SK.current, o2);
|
|
26071
26093
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26072
|
-
let e2 =
|
|
26094
|
+
let e2 = SK.current;
|
|
26073
26095
|
return q(e2), () => {
|
|
26074
26096
|
Q(e2);
|
|
26075
26097
|
};
|
|
26076
26098
|
}, [
|
|
26077
26099
|
v,
|
|
26078
|
-
|
|
26100
|
+
xK,
|
|
26079
26101
|
q,
|
|
26080
26102
|
Q
|
|
26081
26103
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26082
26104
|
collapse: () => {
|
|
26083
|
-
O(
|
|
26105
|
+
O(SK.current);
|
|
26084
26106
|
},
|
|
26085
26107
|
expand: (e2) => {
|
|
26086
|
-
A(
|
|
26108
|
+
A(SK.current, e2);
|
|
26087
26109
|
},
|
|
26088
26110
|
getId() {
|
|
26089
|
-
return
|
|
26111
|
+
return xK;
|
|
26090
26112
|
},
|
|
26091
26113
|
getSize() {
|
|
26092
|
-
return M(
|
|
26114
|
+
return M(SK.current);
|
|
26093
26115
|
},
|
|
26094
26116
|
isCollapsed() {
|
|
26095
|
-
return U(
|
|
26117
|
+
return U(SK.current);
|
|
26096
26118
|
},
|
|
26097
26119
|
isExpanded() {
|
|
26098
|
-
return !U(
|
|
26120
|
+
return !U(SK.current);
|
|
26099
26121
|
},
|
|
26100
26122
|
resize: (e2) => {
|
|
26101
|
-
J(
|
|
26123
|
+
J(SK.current, e2);
|
|
26102
26124
|
}
|
|
26103
26125
|
}), [
|
|
26104
26126
|
O,
|
|
26105
26127
|
A,
|
|
26106
26128
|
M,
|
|
26107
26129
|
U,
|
|
26108
|
-
|
|
26130
|
+
xK,
|
|
26109
26131
|
J
|
|
26110
26132
|
]);
|
|
26111
|
-
let
|
|
26133
|
+
let CK = I(SK.current, a);
|
|
26112
26134
|
return (0, import_react.createElement)(S, {
|
|
26113
26135
|
...w,
|
|
26114
26136
|
children: e,
|
|
26115
26137
|
className: t,
|
|
26116
|
-
id:
|
|
26138
|
+
id: xK,
|
|
26117
26139
|
style: {
|
|
26118
|
-
...
|
|
26140
|
+
...CK,
|
|
26119
26141
|
...y
|
|
26120
26142
|
},
|
|
26121
26143
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26122
26144
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26123
26145
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26124
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
26125
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26146
|
+
[DATA_ATTRIBUTES.panelId]: xK,
|
|
26147
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + CK.flexGrow).toFixed(1)
|
|
26126
26148
|
});
|
|
26127
26149
|
}
|
|
26128
26150
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -26895,7 +26917,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26895
26917
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
26896
26918
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
26897
26919
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
26898
|
-
}, []),
|
|
26920
|
+
}, []), xK = (0, import_react.useCallback)((e2, t2) => {
|
|
26899
26921
|
let { panelDataArray: n2 } = K.current;
|
|
26900
26922
|
return computePanelFlexBoxStyle({
|
|
26901
26923
|
defaultSize: t2,
|
|
@@ -26907,13 +26929,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26907
26929
|
}, [
|
|
26908
26930
|
S,
|
|
26909
26931
|
E
|
|
26910
|
-
]),
|
|
26932
|
+
]), SK = (0, import_react.useCallback)((e2) => {
|
|
26911
26933
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
26912
26934
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
26913
|
-
}, []),
|
|
26935
|
+
}, []), CK = (0, import_react.useCallback)((e2) => {
|
|
26914
26936
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
26915
26937
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
26916
|
-
}, []),
|
|
26938
|
+
}, []), wK = (0, import_react.useCallback)((e2) => {
|
|
26917
26939
|
let { panelDataArray: t2 } = K.current;
|
|
26918
26940
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
26919
26941
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -26963,7 +26985,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26963
26985
|
}), I2 = !compareLayouts(f2, A2);
|
|
26964
26986
|
(isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
|
|
26965
26987
|
};
|
|
26966
|
-
}, []),
|
|
26988
|
+
}, []), TK = (0, import_react.useCallback)((e2, t2) => {
|
|
26967
26989
|
let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
|
|
26968
26990
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
26969
26991
|
let d2 = adjustLayoutByDelta({
|
|
@@ -26975,12 +26997,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26975
26997
|
trigger: "imperative-api"
|
|
26976
26998
|
});
|
|
26977
26999
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
26978
|
-
}, []),
|
|
27000
|
+
}, []), EK = (0, import_react.useCallback)((e2, t2) => {
|
|
26979
27001
|
let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
|
|
26980
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27002
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || TK(e2, s2) : h2 < f2 ? TK(e2, f2) : h2 > d2 && TK(e2, d2));
|
|
26981
27003
|
}, [
|
|
26982
|
-
|
|
26983
|
-
]),
|
|
27004
|
+
TK
|
|
27005
|
+
]), DK = (0, import_react.useCallback)((e2, t2) => {
|
|
26984
27006
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
26985
27007
|
if (!y.current) return;
|
|
26986
27008
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -26992,30 +27014,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26992
27014
|
initialCursorPosition: o2,
|
|
26993
27015
|
initialLayout: i2
|
|
26994
27016
|
});
|
|
26995
|
-
}, []),
|
|
27017
|
+
}, []), OK = (0, import_react.useCallback)(() => {
|
|
26996
27018
|
w(null);
|
|
26997
|
-
}, []),
|
|
27019
|
+
}, []), kK = (0, import_react.useCallback)((e2) => {
|
|
26998
27020
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
26999
27021
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27000
27022
|
}, [
|
|
27001
27023
|
A
|
|
27002
|
-
]),
|
|
27024
|
+
]), AK = (0, import_react.useMemo)(() => ({
|
|
27003
27025
|
collapsePanel: q,
|
|
27004
27026
|
direction: i,
|
|
27005
27027
|
dragState: S,
|
|
27006
27028
|
expandPanel: J,
|
|
27007
27029
|
getPanelSize: Q,
|
|
27008
|
-
getPanelStyle:
|
|
27030
|
+
getPanelStyle: xK,
|
|
27009
27031
|
groupId: v,
|
|
27010
|
-
isPanelCollapsed:
|
|
27011
|
-
isPanelExpanded:
|
|
27012
|
-
reevaluatePanelConstraints:
|
|
27013
|
-
registerPanel:
|
|
27032
|
+
isPanelCollapsed: SK,
|
|
27033
|
+
isPanelExpanded: CK,
|
|
27034
|
+
reevaluatePanelConstraints: EK,
|
|
27035
|
+
registerPanel: wK,
|
|
27014
27036
|
registerResizeHandle: $,
|
|
27015
|
-
resizePanel:
|
|
27016
|
-
startDragging:
|
|
27017
|
-
stopDragging:
|
|
27018
|
-
unregisterPanel:
|
|
27037
|
+
resizePanel: TK,
|
|
27038
|
+
startDragging: DK,
|
|
27039
|
+
stopDragging: OK,
|
|
27040
|
+
unregisterPanel: kK,
|
|
27019
27041
|
panelGroupElement: y.current
|
|
27020
27042
|
}), [
|
|
27021
27043
|
q,
|
|
@@ -27023,18 +27045,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27023
27045
|
i,
|
|
27024
27046
|
J,
|
|
27025
27047
|
Q,
|
|
27026
|
-
yK,
|
|
27027
|
-
v,
|
|
27028
|
-
bK,
|
|
27029
27048
|
xK,
|
|
27030
|
-
|
|
27049
|
+
v,
|
|
27031
27050
|
SK,
|
|
27032
|
-
$,
|
|
27033
27051
|
CK,
|
|
27034
|
-
TK,
|
|
27035
27052
|
EK,
|
|
27036
|
-
|
|
27037
|
-
|
|
27053
|
+
wK,
|
|
27054
|
+
$,
|
|
27055
|
+
TK,
|
|
27056
|
+
DK,
|
|
27057
|
+
OK,
|
|
27058
|
+
kK
|
|
27059
|
+
]), jK = {
|
|
27038
27060
|
display: "flex",
|
|
27039
27061
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27040
27062
|
height: "100%",
|
|
@@ -27042,7 +27064,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27042
27064
|
width: "100%"
|
|
27043
27065
|
};
|
|
27044
27066
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27045
|
-
value:
|
|
27067
|
+
value: AK
|
|
27046
27068
|
}, (0, import_react.createElement)(h, {
|
|
27047
27069
|
..._,
|
|
27048
27070
|
children: t,
|
|
@@ -27050,7 +27072,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27050
27072
|
id: o,
|
|
27051
27073
|
ref: y,
|
|
27052
27074
|
style: {
|
|
27053
|
-
...
|
|
27075
|
+
...jK,
|
|
27054
27076
|
...f
|
|
27055
27077
|
},
|
|
27056
27078
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27127,31 +27149,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27127
27149
|
});
|
|
27128
27150
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27129
27151
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27130
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
27152
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [xK, SK] = (0, import_react.useState)(false), [CK, wK] = (0, import_react.useState)(null), $ = (0, import_react.useRef)({
|
|
27131
27153
|
state: J
|
|
27132
27154
|
});
|
|
27133
27155
|
useIsomorphicLayoutEffect$1(() => {
|
|
27134
27156
|
$.current.state = J;
|
|
27135
27157
|
}), (0, import_react.useEffect)(() => {
|
|
27136
|
-
if (n)
|
|
27158
|
+
if (n) wK(null);
|
|
27137
27159
|
else {
|
|
27138
27160
|
let e2 = I(q);
|
|
27139
|
-
|
|
27161
|
+
wK(() => e2);
|
|
27140
27162
|
}
|
|
27141
27163
|
}, [
|
|
27142
27164
|
n,
|
|
27143
27165
|
q,
|
|
27144
27166
|
I
|
|
27145
27167
|
]);
|
|
27146
|
-
let
|
|
27168
|
+
let TK = (i == null ? void 0 : i.coarse) ?? 15, EK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27147
27169
|
(0, import_react.useEffect)(() => {
|
|
27148
|
-
if (n ||
|
|
27170
|
+
if (n || CK == null) return;
|
|
27149
27171
|
let e2 = w.current;
|
|
27150
27172
|
assert(e2, "Element ref not attached");
|
|
27151
27173
|
let t2 = false;
|
|
27152
27174
|
return registerResizeHandle(q, e2, A, {
|
|
27153
|
-
coarse:
|
|
27154
|
-
fine:
|
|
27175
|
+
coarse: TK,
|
|
27176
|
+
fine: EK
|
|
27155
27177
|
}, (e3, n2, i2) => {
|
|
27156
27178
|
if (!n2) {
|
|
27157
27179
|
Q("inactive");
|
|
@@ -27166,7 +27188,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27166
27188
|
}
|
|
27167
27189
|
case "move": {
|
|
27168
27190
|
let { state: e4 } = $.current;
|
|
27169
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27191
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), CK(i2);
|
|
27170
27192
|
break;
|
|
27171
27193
|
}
|
|
27172
27194
|
case "up": {
|
|
@@ -27178,22 +27200,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27178
27200
|
}
|
|
27179
27201
|
});
|
|
27180
27202
|
}, [
|
|
27181
|
-
|
|
27203
|
+
TK,
|
|
27182
27204
|
A,
|
|
27183
27205
|
n,
|
|
27184
|
-
|
|
27206
|
+
EK,
|
|
27185
27207
|
I,
|
|
27186
27208
|
q,
|
|
27187
|
-
|
|
27209
|
+
CK,
|
|
27188
27210
|
z,
|
|
27189
27211
|
U
|
|
27190
27212
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27191
27213
|
disabled: n,
|
|
27192
27214
|
handleId: q,
|
|
27193
|
-
resizeHandler:
|
|
27215
|
+
resizeHandler: CK,
|
|
27194
27216
|
panelGroupElement: K
|
|
27195
27217
|
});
|
|
27196
|
-
let
|
|
27218
|
+
let DK = {
|
|
27197
27219
|
touchAction: "none",
|
|
27198
27220
|
userSelect: "none"
|
|
27199
27221
|
};
|
|
@@ -27203,22 +27225,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27203
27225
|
className: t,
|
|
27204
27226
|
id: a,
|
|
27205
27227
|
onBlur: () => {
|
|
27206
|
-
|
|
27228
|
+
SK(false), o == null ? void 0 : o();
|
|
27207
27229
|
},
|
|
27208
27230
|
onFocus: () => {
|
|
27209
|
-
|
|
27231
|
+
SK(true), d == null ? void 0 : d();
|
|
27210
27232
|
},
|
|
27211
27233
|
ref: w,
|
|
27212
27234
|
role: "separator",
|
|
27213
27235
|
style: {
|
|
27214
|
-
...
|
|
27236
|
+
...DK,
|
|
27215
27237
|
..._
|
|
27216
27238
|
},
|
|
27217
27239
|
tabIndex: v,
|
|
27218
27240
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
27219
27241
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
27220
27242
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
27221
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
27243
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : xK ? "keyboard" : void 0,
|
|
27222
27244
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
27223
27245
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
27224
27246
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -27510,7 +27532,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27510
27532
|
}, [
|
|
27511
27533
|
h
|
|
27512
27534
|
]), k(() => {
|
|
27513
|
-
U(6,
|
|
27535
|
+
U(6, CK);
|
|
27514
27536
|
}, []);
|
|
27515
27537
|
let K = import_react.useMemo(() => ({
|
|
27516
27538
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27519,7 +27541,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27519
27541
|
var _a2;
|
|
27520
27542
|
var a2, o2, s2;
|
|
27521
27543
|
if (!Object.is(n.current[e2], t2)) {
|
|
27522
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27544
|
+
if (n.current[e2] = t2, e2 === "search") SK(), Q(), U(1, xK);
|
|
27523
27545
|
else if (e2 === "value") {
|
|
27524
27546
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27525
27547
|
let e3 = document.getElementById(I);
|
|
@@ -27527,8 +27549,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27527
27549
|
}
|
|
27528
27550
|
if (U(7, () => {
|
|
27529
27551
|
var _a3;
|
|
27530
|
-
n.current.selectedItemId = (_a3 =
|
|
27531
|
-
}), i2 || U(5,
|
|
27552
|
+
n.current.selectedItemId = (_a3 = wK()) == null ? void 0 : _a3.id, K.emit();
|
|
27553
|
+
}), i2 || U(5, CK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27532
27554
|
let e3 = t2 ?? "";
|
|
27533
27555
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27534
27556
|
return;
|
|
@@ -27553,12 +27575,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27553
27575
|
item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
|
|
27554
27576
|
e2
|
|
27555
27577
|
]))), U(3, () => {
|
|
27556
|
-
|
|
27578
|
+
SK(), Q(), n.current.value || xK(), K.emit();
|
|
27557
27579
|
}), () => {
|
|
27558
27580
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27559
|
-
let t3 =
|
|
27581
|
+
let t3 = wK();
|
|
27560
27582
|
U(4, () => {
|
|
27561
|
-
|
|
27583
|
+
SK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && xK(), K.emit();
|
|
27562
27584
|
});
|
|
27563
27585
|
}),
|
|
27564
27586
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27603,12 +27625,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27603
27625
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
27604
27626
|
});
|
|
27605
27627
|
}
|
|
27606
|
-
function
|
|
27628
|
+
function xK() {
|
|
27607
27629
|
var _a2;
|
|
27608
27630
|
let e2 = (_a2 = $().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27609
27631
|
K.setState("value", e2 || void 0);
|
|
27610
27632
|
}
|
|
27611
|
-
function
|
|
27633
|
+
function SK() {
|
|
27612
27634
|
var _a2, _b;
|
|
27613
27635
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27614
27636
|
n.current.filtered.count = i.current.size;
|
|
@@ -27626,17 +27648,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27626
27648
|
}
|
|
27627
27649
|
n.current.filtered.count = e2;
|
|
27628
27650
|
}
|
|
27629
|
-
function
|
|
27651
|
+
function CK() {
|
|
27630
27652
|
var _a2, _b;
|
|
27631
27653
|
var e2;
|
|
27632
|
-
let t2 =
|
|
27654
|
+
let t2 = wK();
|
|
27633
27655
|
t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
|
|
27634
27656
|
block: "nearest"
|
|
27635
27657
|
})), t2.scrollIntoView({
|
|
27636
27658
|
block: "nearest"
|
|
27637
27659
|
}));
|
|
27638
27660
|
}
|
|
27639
|
-
function
|
|
27661
|
+
function wK() {
|
|
27640
27662
|
var _a2;
|
|
27641
27663
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27642
27664
|
}
|
|
@@ -27644,25 +27666,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27644
27666
|
var _a2;
|
|
27645
27667
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27646
27668
|
}
|
|
27647
|
-
function
|
|
27669
|
+
function TK(e2) {
|
|
27648
27670
|
let t2 = $()[e2];
|
|
27649
27671
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27650
27672
|
}
|
|
27651
|
-
function
|
|
27673
|
+
function EK(e2) {
|
|
27652
27674
|
var t2;
|
|
27653
|
-
let n2 =
|
|
27675
|
+
let n2 = wK(), i2 = $(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27654
27676
|
(t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
|
|
27655
27677
|
}
|
|
27656
|
-
function
|
|
27678
|
+
function DK(e2) {
|
|
27657
27679
|
var _a2;
|
|
27658
|
-
let t2 = (_a2 =
|
|
27680
|
+
let t2 = (_a2 = wK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27659
27681
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27660
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27682
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : EK(e2);
|
|
27661
27683
|
}
|
|
27662
|
-
let
|
|
27663
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27664
|
-
},
|
|
27665
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27684
|
+
let OK = () => TK($().length - 1), kK = (e2) => {
|
|
27685
|
+
e2.preventDefault(), e2.metaKey ? OK() : e2.altKey ? DK(1) : EK(1);
|
|
27686
|
+
}, AK = (e2) => {
|
|
27687
|
+
e2.preventDefault(), e2.metaKey ? TK(0) : e2.altKey ? DK(-1) : EK(-1);
|
|
27666
27688
|
};
|
|
27667
27689
|
return import_react.createElement(Primitive.div, {
|
|
27668
27690
|
ref: t,
|
|
@@ -27676,27 +27698,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27676
27698
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27677
27699
|
case "n":
|
|
27678
27700
|
case "j":
|
|
27679
|
-
E && e2.ctrlKey &&
|
|
27701
|
+
E && e2.ctrlKey && kK(e2);
|
|
27680
27702
|
break;
|
|
27681
27703
|
case "ArrowDown":
|
|
27682
|
-
|
|
27704
|
+
kK(e2);
|
|
27683
27705
|
break;
|
|
27684
27706
|
case "p":
|
|
27685
27707
|
case "k":
|
|
27686
|
-
E && e2.ctrlKey &&
|
|
27708
|
+
E && e2.ctrlKey && AK(e2);
|
|
27687
27709
|
break;
|
|
27688
27710
|
case "ArrowUp":
|
|
27689
|
-
|
|
27711
|
+
AK(e2);
|
|
27690
27712
|
break;
|
|
27691
27713
|
case "Home":
|
|
27692
|
-
e2.preventDefault(),
|
|
27714
|
+
e2.preventDefault(), TK(0);
|
|
27693
27715
|
break;
|
|
27694
27716
|
case "End":
|
|
27695
|
-
e2.preventDefault(),
|
|
27717
|
+
e2.preventDefault(), OK();
|
|
27696
27718
|
break;
|
|
27697
27719
|
case "Enter": {
|
|
27698
27720
|
e2.preventDefault();
|
|
27699
|
-
let t3 =
|
|
27721
|
+
let t3 = wK();
|
|
27700
27722
|
if (t3) {
|
|
27701
27723
|
let e3 = new Event(Z);
|
|
27702
27724
|
t3.dispatchEvent(e3);
|
|
@@ -28105,153 +28127,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28105
28127
|
Combobox = (e) => {
|
|
28106
28128
|
let t = (0, import_compiler_runtime$30.c)(103), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J;
|
|
28107
28129
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: J, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: q, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J);
|
|
28108
|
-
let Q = M === void 0 ? false : M,
|
|
28109
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28130
|
+
let Q = M === void 0 ? false : M, xK = I === void 0 ? true : I, SK = z === void 0 ? "Search..." : z, CK = U === void 0 ? "Nothing found." : U, wK = K === void 0 ? false : K, $ = q === void 0 ? false : q, TK = s ?? false, EK;
|
|
28131
|
+
t[24] !== v || t[25] !== w || t[26] !== TK ? (EK = {
|
|
28110
28132
|
prop: w,
|
|
28111
|
-
defaultProp:
|
|
28133
|
+
defaultProp: TK,
|
|
28112
28134
|
onChange: v
|
|
28113
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28114
|
-
let [
|
|
28115
|
-
t[28] === S ?
|
|
28135
|
+
}, t[24] = v, t[25] = w, t[26] = TK, t[27] = EK) : EK = t[27];
|
|
28136
|
+
let [DK, OK] = useControllableState(EK), kK = DK === void 0 ? false : DK, AK;
|
|
28137
|
+
t[28] === S ? AK = t[29] : (AK = (e2) => {
|
|
28116
28138
|
S == null ? void 0 : S(e2);
|
|
28117
|
-
}, t[28] = S, t[29] =
|
|
28118
|
-
let
|
|
28119
|
-
t[30] !== c || t[31] !==
|
|
28139
|
+
}, t[28] = S, t[29] = AK);
|
|
28140
|
+
let jK;
|
|
28141
|
+
t[30] !== c || t[31] !== AK || t[32] !== J ? (jK = {
|
|
28120
28142
|
prop: J,
|
|
28121
28143
|
defaultProp: c,
|
|
28122
|
-
onChange:
|
|
28123
|
-
}, t[30] = c, t[31] =
|
|
28124
|
-
let [
|
|
28125
|
-
t[34] ===
|
|
28126
|
-
let
|
|
28127
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28144
|
+
onChange: AK
|
|
28145
|
+
}, t[30] = c, t[31] = AK, t[32] = J, t[33] = jK) : jK = t[33];
|
|
28146
|
+
let [MK, NK] = useControllableState(jK), PK;
|
|
28147
|
+
t[34] === MK ? PK = t[35] : (PK = (e2) => Array.isArray(MK) ? MK.includes(e2) : MK === e2, t[34] = MK, t[35] = PK);
|
|
28148
|
+
let FK = PK, IK;
|
|
28149
|
+
t[36] !== _ || t[37] !== Q || t[38] !== OK || t[39] !== NK || t[40] !== MK ? (IK = (e2) => {
|
|
28128
28150
|
let t2 = e2;
|
|
28129
|
-
if (Q) if (Array.isArray(
|
|
28130
|
-
let n2 =
|
|
28151
|
+
if (Q) if (Array.isArray(MK)) if (MK.includes(t2)) {
|
|
28152
|
+
let n2 = MK.filter((t3) => t3 !== e2);
|
|
28131
28153
|
t2 = n2.length > 0 ? n2 : [];
|
|
28132
28154
|
} else t2 = [
|
|
28133
|
-
...
|
|
28155
|
+
...MK,
|
|
28134
28156
|
t2
|
|
28135
28157
|
];
|
|
28136
28158
|
else t2 = [
|
|
28137
28159
|
t2
|
|
28138
28160
|
];
|
|
28139
|
-
else
|
|
28140
|
-
|
|
28141
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28142
|
-
let FK = PK, IK;
|
|
28143
|
-
t[42] !== SK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== AK ? (IK = () => Q && SK && E ? E : AK == null ? E ?? "--" : Array.isArray(AK) ? AK.length === 0 ? E ?? "--" : AK.length === 1 && d !== void 0 ? d(AK[0]) : `${AK.length} selected` : d === void 0 ? E ?? "--" : d(AK), t[42] = SK, t[43] = d, t[44] = Q, t[45] = E, t[46] = AK, t[47] = IK) : IK = t[47];
|
|
28161
|
+
else MK === e2 && (t2 = null);
|
|
28162
|
+
NK(t2), (_ ?? Q) || OK(false);
|
|
28163
|
+
}, t[36] = _, t[37] = Q, t[38] = OK, t[39] = NK, t[40] = MK, t[41] = IK) : IK = t[41];
|
|
28144
28164
|
let LK = IK, RK;
|
|
28145
|
-
t[
|
|
28146
|
-
let zK;
|
|
28147
|
-
t[
|
|
28148
|
-
|
|
28149
|
-
|
|
28150
|
-
|
|
28151
|
-
|
|
28152
|
-
let UK;
|
|
28153
|
-
t[
|
|
28154
|
-
let
|
|
28155
|
-
t[
|
|
28156
|
-
className: "truncate flex-1 min-w-0",
|
|
28157
|
-
children: UK
|
|
28158
|
-
}), t[57] = UK, t[58] = WK);
|
|
28165
|
+
t[42] !== wK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== MK ? (RK = () => Q && wK && E ? E : MK == null ? E ?? "--" : Array.isArray(MK) ? MK.length === 0 ? E ?? "--" : MK.length === 1 && d !== void 0 ? d(MK[0]) : `${MK.length} selected` : d === void 0 ? E ?? "--" : d(MK), t[42] = wK, t[43] = d, t[44] = Q, t[45] = E, t[46] = MK, t[47] = RK) : RK = t[47];
|
|
28166
|
+
let zK = RK, BK;
|
|
28167
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (BK = cn("relative"), t[48] = BK) : BK = t[48];
|
|
28168
|
+
let VK;
|
|
28169
|
+
t[49] !== $ || t[50] !== OK ? (VK = (e2) => {
|
|
28170
|
+
$ && e2 || OK(e2);
|
|
28171
|
+
}, t[49] = $, t[50] = OK, t[51] = VK) : VK = t[51];
|
|
28172
|
+
let HK = $ && "cursor-not-allowed opacity-50", UK;
|
|
28173
|
+
t[52] !== o || t[53] !== HK ? (UK = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", HK, o), t[52] = o, t[53] = HK, t[54] = UK) : UK = t[54];
|
|
28174
|
+
let GK;
|
|
28175
|
+
t[55] === zK ? GK = t[56] : (GK = zK(), t[55] = zK, t[56] = GK);
|
|
28159
28176
|
let KK;
|
|
28160
|
-
t[
|
|
28177
|
+
t[57] === GK ? KK = t[58] : (KK = (0, import_jsx_runtime.jsx)("span", {
|
|
28178
|
+
className: "truncate flex-1 min-w-0",
|
|
28179
|
+
children: GK
|
|
28180
|
+
}), t[57] = GK, t[58] = KK);
|
|
28181
|
+
let JK;
|
|
28182
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (JK = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28161
28183
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28162
|
-
}), t[59] =
|
|
28163
|
-
let
|
|
28164
|
-
t[60] !== $ || t[61] !== h || t[62] !==
|
|
28184
|
+
}), t[59] = JK) : JK = t[59];
|
|
28185
|
+
let YK;
|
|
28186
|
+
t[60] !== $ || t[61] !== h || t[62] !== kK || t[63] !== UK || t[64] !== KK ? (YK = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28165
28187
|
asChild: true,
|
|
28166
28188
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28167
28189
|
id: h,
|
|
28168
28190
|
type: "button",
|
|
28169
|
-
className:
|
|
28170
|
-
"aria-expanded":
|
|
28191
|
+
className: UK,
|
|
28192
|
+
"aria-expanded": kK,
|
|
28171
28193
|
"aria-disabled": $,
|
|
28172
28194
|
children: [
|
|
28173
|
-
|
|
28174
|
-
|
|
28195
|
+
KK,
|
|
28196
|
+
JK
|
|
28175
28197
|
]
|
|
28176
28198
|
})
|
|
28177
|
-
}), t[60] = $, t[61] = h, t[62] =
|
|
28178
|
-
let
|
|
28179
|
-
t[66] !==
|
|
28180
|
-
placeholder:
|
|
28199
|
+
}), t[60] = $, t[61] = h, t[62] = kK, t[63] = UK, t[64] = KK, t[65] = YK) : YK = t[65];
|
|
28200
|
+
let XK;
|
|
28201
|
+
t[66] !== SK || t[67] !== y || t[68] !== A ? (XK = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28202
|
+
placeholder: SK,
|
|
28181
28203
|
rootClassName: "px-1 h-8",
|
|
28182
28204
|
autoFocus: true,
|
|
28183
28205
|
value: A,
|
|
28184
28206
|
onValueChange: y
|
|
28185
|
-
}), t[66] =
|
|
28186
|
-
let YK;
|
|
28187
|
-
t[70] === xK ? YK = t[71] : (YK = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28188
|
-
children: xK
|
|
28189
|
-
}), t[70] = xK, t[71] = YK);
|
|
28190
|
-
let XK;
|
|
28191
|
-
t[72] !== FK || t[73] !== NK ? (XK = {
|
|
28192
|
-
isSelected: NK,
|
|
28193
|
-
onSelect: FK
|
|
28194
|
-
}, t[72] = FK, t[73] = NK, t[74] = XK) : XK = t[74];
|
|
28207
|
+
}), t[66] = SK, t[67] = y, t[68] = A, t[69] = XK) : XK = t[69];
|
|
28195
28208
|
let ZK;
|
|
28196
|
-
t[
|
|
28197
|
-
|
|
28198
|
-
|
|
28199
|
-
}), t[75] = n, t[76] = XK, t[77] = ZK) : ZK = t[77];
|
|
28209
|
+
t[70] === CK ? ZK = t[71] : (ZK = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28210
|
+
children: CK
|
|
28211
|
+
}), t[70] = CK, t[71] = ZK);
|
|
28200
28212
|
let QK;
|
|
28201
|
-
t[
|
|
28213
|
+
t[72] !== LK || t[73] !== FK ? (QK = {
|
|
28214
|
+
isSelected: FK,
|
|
28215
|
+
onSelect: LK
|
|
28216
|
+
}, t[72] = LK, t[73] = FK, t[74] = QK) : QK = t[74];
|
|
28217
|
+
let $K;
|
|
28218
|
+
t[75] !== n || t[76] !== QK ? ($K = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28219
|
+
value: QK,
|
|
28220
|
+
children: n
|
|
28221
|
+
}), t[75] = n, t[76] = QK, t[77] = $K) : $K = t[77];
|
|
28222
|
+
let eq;
|
|
28223
|
+
t[78] !== ZK || t[79] !== $K ? (eq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28202
28224
|
className: "max-h-60 py-.5",
|
|
28203
28225
|
children: [
|
|
28204
|
-
|
|
28205
|
-
|
|
28226
|
+
ZK,
|
|
28227
|
+
$K
|
|
28206
28228
|
]
|
|
28207
|
-
}), t[78] =
|
|
28208
|
-
let
|
|
28209
|
-
t[81] !== f || t[82] !==
|
|
28229
|
+
}), t[78] = ZK, t[79] = $K, t[80] = eq) : eq = t[80];
|
|
28230
|
+
let tq;
|
|
28231
|
+
t[81] !== f || t[82] !== xK || t[83] !== XK || t[84] !== eq ? (tq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28210
28232
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28211
28233
|
align: "start",
|
|
28212
28234
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28213
28235
|
filter: f,
|
|
28214
|
-
shouldFilter:
|
|
28236
|
+
shouldFilter: xK,
|
|
28215
28237
|
children: [
|
|
28216
|
-
|
|
28217
|
-
|
|
28238
|
+
XK,
|
|
28239
|
+
eq
|
|
28218
28240
|
]
|
|
28219
28241
|
})
|
|
28220
|
-
}), t[81] = f, t[82] =
|
|
28221
|
-
let
|
|
28222
|
-
t[86] !==
|
|
28223
|
-
open:
|
|
28224
|
-
onOpenChange:
|
|
28242
|
+
}), t[81] = f, t[82] = xK, t[83] = XK, t[84] = eq, t[85] = tq) : tq = t[85];
|
|
28243
|
+
let nq;
|
|
28244
|
+
t[86] !== kK || t[87] !== VK || t[88] !== YK || t[89] !== tq ? (nq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28245
|
+
open: kK,
|
|
28246
|
+
onOpenChange: VK,
|
|
28225
28247
|
children: [
|
|
28226
|
-
|
|
28227
|
-
|
|
28248
|
+
YK,
|
|
28249
|
+
tq
|
|
28228
28250
|
]
|
|
28229
|
-
}), t[86] =
|
|
28230
|
-
let
|
|
28231
|
-
t[91] !==
|
|
28251
|
+
}), t[86] = kK, t[87] = VK, t[88] = YK, t[89] = tq, t[90] = nq) : nq = t[90];
|
|
28252
|
+
let rq;
|
|
28253
|
+
t[91] !== wK || t[92] !== i || t[93] !== $ || t[94] !== d || t[95] !== LK || t[96] !== Q || t[97] !== MK ? (rq = Q && wK && (0, import_jsx_runtime.jsx)("div", {
|
|
28232
28254
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28233
|
-
children: Array.isArray(
|
|
28255
|
+
children: Array.isArray(MK) && MK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28234
28256
|
variant: "secondary",
|
|
28235
28257
|
children: [
|
|
28236
28258
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28237
28259
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28238
28260
|
onClick: () => {
|
|
28239
|
-
$ ||
|
|
28261
|
+
$ || LK(e2);
|
|
28240
28262
|
},
|
|
28241
28263
|
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", $ && "pointer-events-none")
|
|
28242
28264
|
})
|
|
28243
28265
|
]
|
|
28244
28266
|
}, String(e2)))
|
|
28245
|
-
}), t[91] =
|
|
28246
|
-
let
|
|
28247
|
-
return t[99] !== O || t[100] !==
|
|
28248
|
-
className:
|
|
28267
|
+
}), t[91] = wK, t[92] = i, t[93] = $, t[94] = d, t[95] = LK, t[96] = Q, t[97] = MK, t[98] = rq) : rq = t[98];
|
|
28268
|
+
let iq;
|
|
28269
|
+
return t[99] !== O || t[100] !== nq || t[101] !== rq ? (iq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28270
|
+
className: BK,
|
|
28249
28271
|
...O,
|
|
28250
28272
|
children: [
|
|
28251
|
-
|
|
28252
|
-
|
|
28273
|
+
nq,
|
|
28274
|
+
rq
|
|
28253
28275
|
]
|
|
28254
|
-
}), t[99] = O, t[100] =
|
|
28276
|
+
}), t[99] = O, t[100] = nq, t[101] = rq, t[102] = iq) : iq = t[102], iq;
|
|
28255
28277
|
};
|
|
28256
28278
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28257
28279
|
let n = (0, import_compiler_runtime$30.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29379,13 +29401,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29379
29401
|
id: v,
|
|
29380
29402
|
operator: e2
|
|
29381
29403
|
});
|
|
29382
|
-
},
|
|
29404
|
+
}, xK = buildFilterValue({
|
|
29383
29405
|
type: S,
|
|
29384
29406
|
operator: E,
|
|
29385
29407
|
draft: mergeNumberTextDraft(A, I)
|
|
29386
|
-
}),
|
|
29387
|
-
if (!
|
|
29388
|
-
let e2 =
|
|
29408
|
+
}), SK = xK === void 0, CK = SK ? getMissingValueMessage(S, E) : "Apply filter", wK = () => {
|
|
29409
|
+
if (!xK) return;
|
|
29410
|
+
let e2 = xK;
|
|
29389
29411
|
t.setColumnFilters((t2) => {
|
|
29390
29412
|
if (a === void 0) return [
|
|
29391
29413
|
{
|
|
@@ -29404,18 +29426,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29404
29426
|
}), i();
|
|
29405
29427
|
}, $ = () => {
|
|
29406
29428
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29407
|
-
},
|
|
29429
|
+
}, TK = !OPERATORS_WITHOUT_VALUE.has(E), EK = OPERATORS_BY_TYPE[S], DK = (0, import_react.useRef)(null), OK = (0, import_react.useRef)(null);
|
|
29408
29430
|
return (0, import_react.useEffect)(() => {
|
|
29409
29431
|
var _a2, _b;
|
|
29410
|
-
let e2 = (_a2 =
|
|
29411
|
-
e2 ? e2.focus() : (_b =
|
|
29432
|
+
let e2 = (_a2 = DK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29433
|
+
e2 ? e2.focus() : (_b = OK.current) == null ? void 0 : _b.focus();
|
|
29412
29434
|
}, [
|
|
29413
29435
|
S,
|
|
29414
29436
|
E
|
|
29415
29437
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29416
29438
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29417
29439
|
onSubmit: (e2) => {
|
|
29418
|
-
e2.preventDefault(),
|
|
29440
|
+
e2.preventDefault(), wK();
|
|
29419
29441
|
},
|
|
29420
29442
|
onKeyDownCapture: (e2) => {
|
|
29421
29443
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29456,13 +29478,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29456
29478
|
onValueChange: (e2) => Q(e2),
|
|
29457
29479
|
children: [
|
|
29458
29480
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29459
|
-
ref:
|
|
29481
|
+
ref: OK,
|
|
29460
29482
|
id: s,
|
|
29461
29483
|
className: "h-6 mb-1 bg-transparent",
|
|
29462
29484
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29463
29485
|
}),
|
|
29464
29486
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29465
|
-
children:
|
|
29487
|
+
children: EK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29466
29488
|
value: e2,
|
|
29467
29489
|
children: OPERATOR_LABELS[e2]
|
|
29468
29490
|
}, e2))
|
|
@@ -29471,8 +29493,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29471
29493
|
}, S)
|
|
29472
29494
|
]
|
|
29473
29495
|
}),
|
|
29474
|
-
|
|
29475
|
-
ref:
|
|
29496
|
+
TK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29497
|
+
ref: DK,
|
|
29476
29498
|
className: "flex flex-col gap-1",
|
|
29477
29499
|
children: [
|
|
29478
29500
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29499,14 +29521,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29499
29521
|
className: "flex gap-1 mb-1",
|
|
29500
29522
|
children: [
|
|
29501
29523
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29502
|
-
content:
|
|
29524
|
+
content: CK,
|
|
29503
29525
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29504
29526
|
className: "inline-flex",
|
|
29505
29527
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29506
29528
|
type: "submit",
|
|
29507
29529
|
size: "icon",
|
|
29508
29530
|
variant: "ghost",
|
|
29509
|
-
disabled:
|
|
29531
|
+
disabled: SK,
|
|
29510
29532
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29511
29533
|
"aria-label": "Apply filter",
|
|
29512
29534
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -31934,6 +31956,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
31934
31956
|
[t.id]: i
|
|
31935
31957
|
}));
|
|
31936
31958
|
}
|
|
31959
|
+
function useColumnVisibility(e) {
|
|
31960
|
+
let [t, n] = useInternalStateWithSync(Object.fromEntries((e ?? []).map((e2) => [
|
|
31961
|
+
e2,
|
|
31962
|
+
false
|
|
31963
|
+
])), dequal);
|
|
31964
|
+
return {
|
|
31965
|
+
columnVisibility: t,
|
|
31966
|
+
setColumnVisibility: n
|
|
31967
|
+
};
|
|
31968
|
+
}
|
|
31969
|
+
function getUserColumnVisibilityCounts(e) {
|
|
31970
|
+
let t = e.getAllLeafColumns().filter((e2) => e2.getCanHide()), n = t.filter((e2) => e2.getIsVisible()).length;
|
|
31971
|
+
return {
|
|
31972
|
+
total: t.length,
|
|
31973
|
+
visible: n,
|
|
31974
|
+
hidden: t.length - n
|
|
31975
|
+
};
|
|
31976
|
+
}
|
|
31937
31977
|
const DataTablePagination = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
|
|
31938
31978
|
let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), d = e.getState().pagination.pageSize, f = (e2) => {
|
|
31939
31979
|
t || e2();
|
|
@@ -32251,10 +32291,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32251
32291
|
prettifyRowCount = function(e, t) {
|
|
32252
32292
|
return `${prettyNumber(e, t)} ${new PluralWord("row").pluralize(e)}`;
|
|
32253
32293
|
};
|
|
32254
|
-
prettifyRowColumnCount = ({ numRows: e, totalColumns: t,
|
|
32255
|
-
e === "too_many" ? "Unknown" : prettifyRowCount(e,
|
|
32256
|
-
|
|
32257
|
-
|
|
32294
|
+
prettifyRowColumnCount = ({ numRows: e, totalColumns: t, hiddenColumns: n, locale: i }) => {
|
|
32295
|
+
let a = e === "too_many" ? "Unknown" : prettifyRowCount(e, i), o = n ?? 0, s = t - o;
|
|
32296
|
+
return {
|
|
32297
|
+
rowsAndColumns: [
|
|
32298
|
+
a,
|
|
32299
|
+
o > 0 ? `${prettyNumber(s, i)} visible` : `${prettyNumber(t, i)} ${new PluralWord("column").pluralize(t)}`
|
|
32300
|
+
].join(", "),
|
|
32301
|
+
hiddenSuffix: o > 0 ? `(${prettyNumber(o, i)} hidden)` : null
|
|
32302
|
+
};
|
|
32303
|
+
};
|
|
32258
32304
|
var import_compiler_runtime$13 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
|
|
32259
32305
|
const CellSelectionStats = (e) => {
|
|
32260
32306
|
let t = (0, import_compiler_runtime$13.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
|
|
@@ -32350,8 +32396,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32350
32396
|
return e + t;
|
|
32351
32397
|
}
|
|
32352
32398
|
let TableBottomBar, downloadSizeLimitAtom;
|
|
32353
|
-
TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f,
|
|
32354
|
-
let { locale:
|
|
32399
|
+
TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f, togglePanel: _, part: v, className: y }) => {
|
|
32400
|
+
let { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), E = (e2) => {
|
|
32355
32401
|
if (!i) return;
|
|
32356
32402
|
if (!e2) {
|
|
32357
32403
|
i({});
|
|
@@ -32386,8 +32432,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32386
32432
|
});
|
|
32387
32433
|
};
|
|
32388
32434
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
32389
|
-
part:
|
|
32390
|
-
className: cn("flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0",
|
|
32435
|
+
part: v,
|
|
32436
|
+
className: cn("flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0", y),
|
|
32391
32437
|
children: [
|
|
32392
32438
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
32393
32439
|
className: "flex flex-col text-sm text-muted-foreground px-2 shrink-0",
|
|
@@ -32395,12 +32441,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32395
32441
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32396
32442
|
className: "flex items-center gap-1",
|
|
32397
32443
|
children: (() => {
|
|
32398
|
-
let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), f2 = a === d2,
|
|
32399
|
-
|
|
32444
|
+
let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), f2 = a === d2, v2 = n === "single-cell" || n === "multi-cell";
|
|
32445
|
+
if (v2 && (a = i2.length, c2 = false, f2 = false), c2 && !f2) return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32400
32446
|
children: [
|
|
32401
32447
|
(0, import_jsx_runtime.jsxs)("span", {
|
|
32402
32448
|
children: [
|
|
32403
|
-
prettyNumber(a,
|
|
32449
|
+
prettyNumber(a, S),
|
|
32404
32450
|
" selected"
|
|
32405
32451
|
]
|
|
32406
32452
|
}),
|
|
@@ -32410,18 +32456,19 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32410
32456
|
variant: "link",
|
|
32411
32457
|
className: "h-4 print:hidden",
|
|
32412
32458
|
onMouseDown: Events.preventFocus,
|
|
32413
|
-
onClick: () =>
|
|
32459
|
+
onClick: () => E(true),
|
|
32414
32460
|
children: [
|
|
32415
32461
|
"Select all ",
|
|
32416
|
-
prettyNumber(d2,
|
|
32462
|
+
prettyNumber(d2, S)
|
|
32417
32463
|
]
|
|
32418
32464
|
})
|
|
32419
32465
|
]
|
|
32420
|
-
})
|
|
32466
|
+
});
|
|
32467
|
+
if (a) return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32421
32468
|
children: [
|
|
32422
32469
|
(0, import_jsx_runtime.jsxs)("span", {
|
|
32423
32470
|
children: [
|
|
32424
|
-
prettyNumber(a,
|
|
32471
|
+
prettyNumber(a, S),
|
|
32425
32472
|
" selected"
|
|
32426
32473
|
]
|
|
32427
32474
|
}),
|
|
@@ -32432,17 +32479,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32432
32479
|
className: "h-4 print:hidden",
|
|
32433
32480
|
onMouseDown: Events.preventFocus,
|
|
32434
32481
|
onClick: () => {
|
|
32435
|
-
|
|
32482
|
+
v2 ? s.resetCellSelection && s.resetCellSelection() : E(false);
|
|
32436
32483
|
},
|
|
32437
32484
|
children: "Clear selection"
|
|
32438
32485
|
})
|
|
32439
32486
|
]
|
|
32440
|
-
})
|
|
32441
|
-
|
|
32442
|
-
|
|
32443
|
-
|
|
32444
|
-
|
|
32445
|
-
|
|
32487
|
+
});
|
|
32488
|
+
let y2 = getUserColumnVisibilityCounts(s), { rowsAndColumns: w, hiddenSuffix: O } = prettifyRowColumnCount({
|
|
32489
|
+
numRows: s.getRowCount(),
|
|
32490
|
+
totalColumns: y2.hidden > 0 ? y2.total : t,
|
|
32491
|
+
hiddenColumns: y2.hidden,
|
|
32492
|
+
locale: S
|
|
32493
|
+
});
|
|
32494
|
+
return (0, import_jsx_runtime.jsxs)("span", {
|
|
32495
|
+
className: "flex items-center gap-1",
|
|
32496
|
+
children: [
|
|
32497
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
32498
|
+
children: w
|
|
32499
|
+
}),
|
|
32500
|
+
O && (0, import_jsx_runtime.jsx)("button", {
|
|
32501
|
+
type: "button",
|
|
32502
|
+
className: "text-xs underline-offset-2 hover:underline cursor-pointer",
|
|
32503
|
+
onClick: () => _ == null ? void 0 : _(PANEL_TYPES.COLUMN_EXPLORER),
|
|
32504
|
+
children: O
|
|
32505
|
+
})
|
|
32506
|
+
]
|
|
32446
32507
|
});
|
|
32447
32508
|
})()
|
|
32448
32509
|
}),
|
|
@@ -32768,7 +32829,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32768
32829
|
filename: i2.filename
|
|
32769
32830
|
};
|
|
32770
32831
|
}, t[6] = e, t[7] = S);
|
|
32771
|
-
let O = S, A, M, I, z, U, K, q, J, Q,
|
|
32832
|
+
let O = S, A, M, I, z, U, K, q, J, Q, xK, SK, CK, wK;
|
|
32772
32833
|
if (t[8] !== y || t[9] !== c || t[10] !== n || t[11] !== i || t[12] !== (s == null ? void 0 : s.unavailableMessage) || t[13] !== O) {
|
|
32773
32834
|
let e2 = async (t2) => {
|
|
32774
32835
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -32836,10 +32897,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32836
32897
|
content: d2,
|
|
32837
32898
|
open: f2,
|
|
32838
32899
|
children: v2
|
|
32839
|
-
}), t[33] = d2, t[34] = f2, t[35] = v2, t[36] = J) : J = t[36], A = DropdownMenuContent, Q = "bottom",
|
|
32900
|
+
}), t[33] = d2, t[34] = f2, t[35] = v2, t[36] = J) : J = t[36], A = DropdownMenuContent, Q = "bottom", xK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32840
32901
|
className: "text-xs text-muted-foreground",
|
|
32841
32902
|
children: "Download"
|
|
32842
|
-
}), t[37] =
|
|
32903
|
+
}), t[37] = SK) : SK = t[37], CK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32843
32904
|
onSelect: () => {
|
|
32844
32905
|
e2(t2.format);
|
|
32845
32906
|
},
|
|
@@ -32860,10 +32921,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32860
32921
|
]
|
|
32861
32922
|
})
|
|
32862
32923
|
]
|
|
32863
|
-
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32924
|
+
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), I = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32864
32925
|
className: "text-xs text-muted-foreground",
|
|
32865
32926
|
children: "Copy to clipboard"
|
|
32866
|
-
}), t[38] = I, t[39] =
|
|
32927
|
+
}), t[38] = I, t[39] = wK) : (I = t[38], wK = t[39]), z = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32867
32928
|
onSelect: async () => {
|
|
32868
32929
|
try {
|
|
32869
32930
|
await a(e3.format);
|
|
@@ -32892,22 +32953,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32892
32953
|
]
|
|
32893
32954
|
})
|
|
32894
32955
|
]
|
|
32895
|
-
}, e3.label)), t[8] = y, t[9] = c, t[10] = n, t[11] = i, t[12] = s == null ? void 0 : s.unavailableMessage, t[13] = O, t[14] = A, t[15] = M, t[16] = I, t[17] = z, t[18] = U, t[19] = K, t[20] = q, t[21] = J, t[22] = Q, t[23] =
|
|
32896
|
-
} else A = t[14], M = t[15], I = t[16], z = t[17], U = t[18], K = t[19], q = t[20], J = t[21], Q = t[22],
|
|
32956
|
+
}, e3.label)), t[8] = y, t[9] = c, t[10] = n, t[11] = i, t[12] = s == null ? void 0 : s.unavailableMessage, t[13] = O, t[14] = A, t[15] = M, t[16] = I, t[17] = z, t[18] = U, t[19] = K, t[20] = q, t[21] = J, t[22] = Q, t[23] = xK, t[24] = SK, t[25] = CK, t[26] = wK;
|
|
32957
|
+
} else A = t[14], M = t[15], I = t[16], z = t[17], U = t[18], K = t[19], q = t[20], J = t[21], Q = t[22], xK = t[23], SK = t[24], CK = t[25], wK = t[26];
|
|
32897
32958
|
let $;
|
|
32898
|
-
t[40] !== A || t[41] !== I || t[42] !== z || t[43] !== Q || t[44] !==
|
|
32959
|
+
t[40] !== A || t[41] !== I || t[42] !== z || t[43] !== Q || t[44] !== xK || t[45] !== SK || t[46] !== CK || t[47] !== wK ? ($ = (0, import_jsx_runtime.jsxs)(A, {
|
|
32899
32960
|
side: Q,
|
|
32900
|
-
className:
|
|
32961
|
+
className: xK,
|
|
32901
32962
|
children: [
|
|
32902
|
-
bK,
|
|
32903
|
-
xK,
|
|
32904
32963
|
SK,
|
|
32964
|
+
CK,
|
|
32965
|
+
wK,
|
|
32905
32966
|
I,
|
|
32906
32967
|
z
|
|
32907
32968
|
]
|
|
32908
|
-
}), t[40] = A, t[41] = I, t[42] = z, t[43] = Q, t[44] =
|
|
32909
|
-
let
|
|
32910
|
-
return t[49] !== M || t[50] !== U || t[51] !== K || t[52] !== q || t[53] !== J || t[54] !== $ ? (
|
|
32969
|
+
}), t[40] = A, t[41] = I, t[42] = z, t[43] = Q, t[44] = xK, t[45] = SK, t[46] = CK, t[47] = wK, t[48] = $) : $ = t[48];
|
|
32970
|
+
let TK;
|
|
32971
|
+
return t[49] !== M || t[50] !== U || t[51] !== K || t[52] !== q || t[53] !== J || t[54] !== $ ? (TK = (0, import_jsx_runtime.jsxs)(M, {
|
|
32911
32972
|
modal: U,
|
|
32912
32973
|
open: K,
|
|
32913
32974
|
onOpenChange: q,
|
|
@@ -32915,7 +32976,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32915
32976
|
J,
|
|
32916
32977
|
$
|
|
32917
32978
|
]
|
|
32918
|
-
}), t[49] = M, t[50] = U, t[51] = K, t[52] = q, t[53] = J, t[54] = $, t[55] =
|
|
32979
|
+
}), t[49] = M, t[50] = U, t[51] = K, t[52] = q, t[53] = J, t[54] = $, t[55] = TK) : TK = t[55], TK;
|
|
32919
32980
|
};
|
|
32920
32981
|
function fetchJson(e) {
|
|
32921
32982
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33007,22 +33068,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33007
33068
|
]
|
|
33008
33069
|
}) : null;
|
|
33009
33070
|
};
|
|
33010
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes:
|
|
33011
|
-
let [
|
|
33071
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, manualSorting: v = false, sorting: y, setSorting: S, rowSelection: w, cellSelection: E, cellStyling: O, hoverTemplate: A, cellHoverTexts: M, paginationState: I, setPaginationState: z, downloadAs: U, manualPagination: K = false, pagination: q = false, onRowSelectionChange: J, onCellSelectionChange: Q, getRowIds: xK, enableSearch: SK = false, searchQuery: CK, onSearchQueryChange: wK, showFilters: $ = false, filters: TK, onFiltersChange: EK, calculateTopKRows: DK, reloading: OK, freezeColumnsLeft: kK, freezeColumnsRight: AK, hiddenColumns: jK, toggleDisplayHeader: MK, showChartBuilder: NK, isChartBuilderOpen: PK, showPageSizeSelector: FK, showTableExplorer: IK, togglePanel: LK, isPanelOpen: RK, isAnyPanelOpen: zK, viewedRowIdx: BK, onViewedRowChange: VK }) => {
|
|
33072
|
+
let [HK, UK] = import_react.useState(false), { locale: WK } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: GK, setColumnPinning: KK } = useColumnPinning(kK, AK), { columnVisibility: qK, setColumnVisibility: JK } = useColumnVisibility(jK);
|
|
33012
33073
|
import_react.useEffect(() => {
|
|
33013
33074
|
let e2;
|
|
33014
|
-
return
|
|
33015
|
-
|
|
33016
|
-
}, 300) :
|
|
33075
|
+
return OK ? e2 = setTimeout(() => {
|
|
33076
|
+
UK(true);
|
|
33077
|
+
}, 300) : UK(false), () => {
|
|
33017
33078
|
e2 && clearTimeout(e2);
|
|
33018
33079
|
};
|
|
33019
33080
|
}, [
|
|
33020
|
-
|
|
33081
|
+
OK
|
|
33021
33082
|
]);
|
|
33022
|
-
function
|
|
33023
|
-
return
|
|
33083
|
+
function YK(e2, t2) {
|
|
33084
|
+
return I ? t2 + (K ? I.pageIndex * I.pageSize : 0) : t2;
|
|
33024
33085
|
}
|
|
33025
|
-
let
|
|
33086
|
+
let XK = useReactTable({
|
|
33026
33087
|
_features: [
|
|
33027
33088
|
ColumnPinning,
|
|
33028
33089
|
ColumnWrappingFeature,
|
|
@@ -33041,79 +33102,81 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33041
33102
|
},
|
|
33042
33103
|
getCoreRowModel: getCoreRowModel(),
|
|
33043
33104
|
rowCount: f === "too_many" ? void 0 : f,
|
|
33044
|
-
...
|
|
33045
|
-
onPaginationChange:
|
|
33105
|
+
...z ? {
|
|
33106
|
+
onPaginationChange: z,
|
|
33046
33107
|
getRowId: (e2, t2) => {
|
|
33047
33108
|
let n2 = getStableRowId(e2);
|
|
33048
33109
|
if (n2) return n2;
|
|
33049
|
-
let i2 =
|
|
33110
|
+
let i2 = YK(e2, t2);
|
|
33050
33111
|
return String(i2);
|
|
33051
33112
|
}
|
|
33052
33113
|
} : {},
|
|
33053
|
-
locale:
|
|
33054
|
-
manualPagination:
|
|
33114
|
+
locale: WK,
|
|
33115
|
+
manualPagination: K,
|
|
33055
33116
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33056
|
-
...
|
|
33057
|
-
onSortingChange:
|
|
33117
|
+
...S ? {
|
|
33118
|
+
onSortingChange: S
|
|
33058
33119
|
} : {},
|
|
33059
|
-
manualSorting:
|
|
33120
|
+
manualSorting: v,
|
|
33060
33121
|
enableMultiSort: true,
|
|
33061
33122
|
getSortedRowModel: getSortedRowModel(),
|
|
33062
33123
|
manualFiltering: true,
|
|
33063
|
-
enableColumnFilters:
|
|
33124
|
+
enableColumnFilters: $,
|
|
33064
33125
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33065
|
-
onColumnFiltersChange:
|
|
33066
|
-
onRowSelectionChange:
|
|
33067
|
-
onCellSelectionChange:
|
|
33126
|
+
onColumnFiltersChange: EK,
|
|
33127
|
+
onRowSelectionChange: J,
|
|
33128
|
+
onCellSelectionChange: Q,
|
|
33068
33129
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33069
33130
|
enableMultiCellSelection: c === "multi-cell",
|
|
33070
|
-
onColumnPinningChange:
|
|
33131
|
+
onColumnPinningChange: KK,
|
|
33132
|
+
onColumnVisibilityChange: JK,
|
|
33071
33133
|
enableFocusRow: true,
|
|
33072
|
-
onFocusRowChange:
|
|
33134
|
+
onFocusRowChange: VK,
|
|
33073
33135
|
state: {
|
|
33074
|
-
...
|
|
33075
|
-
sorting:
|
|
33136
|
+
...y ? {
|
|
33137
|
+
sorting: y
|
|
33076
33138
|
} : {},
|
|
33077
|
-
columnFilters:
|
|
33078
|
-
...
|
|
33079
|
-
pagination:
|
|
33080
|
-
} :
|
|
33139
|
+
columnFilters: TK,
|
|
33140
|
+
...I ? {
|
|
33141
|
+
pagination: I
|
|
33142
|
+
} : q && !I ? {} : {
|
|
33081
33143
|
pagination: {
|
|
33082
33144
|
pageIndex: 0,
|
|
33083
33145
|
pageSize: o.length
|
|
33084
33146
|
}
|
|
33085
33147
|
},
|
|
33086
|
-
rowSelection:
|
|
33087
|
-
cellSelection:
|
|
33088
|
-
|
|
33089
|
-
|
|
33090
|
-
|
|
33091
|
-
|
|
33092
|
-
|
|
33093
|
-
|
|
33148
|
+
rowSelection: w ?? {},
|
|
33149
|
+
cellSelection: E ?? [],
|
|
33150
|
+
columnVisibility: qK,
|
|
33151
|
+
cellStyling: O,
|
|
33152
|
+
columnPinning: GK,
|
|
33153
|
+
cellHoverTemplate: A,
|
|
33154
|
+
cellHoverTexts: M ?? {}
|
|
33155
|
+
}
|
|
33156
|
+
}), ZK = (RK == null ? void 0 : RK(PANEL_TYPES.ROW_VIEWER)) ?? false, QK = !q && o.length > 100, $K = useScrollContainerHeight({
|
|
33094
33157
|
maxHeight: n,
|
|
33095
|
-
virtualize:
|
|
33096
|
-
}), [
|
|
33158
|
+
virtualize: QK
|
|
33159
|
+
}), [eq, tq] = import_react.useState(null), nq = import_react.useMemo(() => ({
|
|
33160
|
+
requestAddFilter: (e2) => {
|
|
33161
|
+
let t2 = XK.getColumn(e2.columnId);
|
|
33162
|
+
t2 && tq(buildEditorSnapshot(t2, {
|
|
33163
|
+
operator: e2.operator
|
|
33164
|
+
}));
|
|
33165
|
+
}
|
|
33166
|
+
}), [
|
|
33167
|
+
XK
|
|
33168
|
+
]), rq = getUserColumnVisibilityCounts(XK), iq = rq.total > 0 && rq.visible === 0;
|
|
33097
33169
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
33098
|
-
value:
|
|
33099
|
-
requestAddFilter: (e2) => {
|
|
33100
|
-
let t2 = WK.getColumn(e2.columnId);
|
|
33101
|
-
t2 && YK(buildEditorSnapshot(t2, {
|
|
33102
|
-
operator: e2.operator
|
|
33103
|
-
}));
|
|
33104
|
-
}
|
|
33105
|
-
}), [
|
|
33106
|
-
WK
|
|
33107
|
-
]),
|
|
33170
|
+
value: nq,
|
|
33108
33171
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33109
33172
|
className: cn(e, "flex flex-col space-y-1"),
|
|
33110
33173
|
children: [
|
|
33111
33174
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
33112
|
-
filters:
|
|
33113
|
-
table:
|
|
33114
|
-
calculateTopKRows:
|
|
33115
|
-
addFilterSnapshot:
|
|
33116
|
-
onAddFilterSnapshotChange:
|
|
33175
|
+
filters: TK,
|
|
33176
|
+
table: XK,
|
|
33177
|
+
calculateTopKRows: DK,
|
|
33178
|
+
addFilterSnapshot: eq,
|
|
33179
|
+
onAddFilterSnapshotChange: tq
|
|
33117
33180
|
}),
|
|
33118
33181
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
33119
33182
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -33121,34 +33184,48 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33121
33184
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33122
33185
|
children: [
|
|
33123
33186
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33124
|
-
enableSearch:
|
|
33125
|
-
searchQuery:
|
|
33126
|
-
onSearchQueryChange:
|
|
33127
|
-
reloading:
|
|
33128
|
-
showChartBuilder:
|
|
33129
|
-
isChartBuilderOpen:
|
|
33130
|
-
toggleDisplayHeader:
|
|
33131
|
-
showTableExplorer:
|
|
33132
|
-
togglePanel:
|
|
33133
|
-
isAnyPanelOpen:
|
|
33134
|
-
downloadAs:
|
|
33135
|
-
sizeBytes:
|
|
33187
|
+
enableSearch: SK,
|
|
33188
|
+
searchQuery: CK,
|
|
33189
|
+
onSearchQueryChange: wK,
|
|
33190
|
+
reloading: OK,
|
|
33191
|
+
showChartBuilder: NK,
|
|
33192
|
+
isChartBuilderOpen: PK,
|
|
33193
|
+
toggleDisplayHeader: MK,
|
|
33194
|
+
showTableExplorer: IK,
|
|
33195
|
+
togglePanel: LK,
|
|
33196
|
+
isAnyPanelOpen: zK,
|
|
33197
|
+
downloadAs: U,
|
|
33198
|
+
sizeBytes: _
|
|
33199
|
+
}),
|
|
33200
|
+
iq && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33201
|
+
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
33202
|
+
children: [
|
|
33203
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
33204
|
+
children: "All columns are hidden."
|
|
33205
|
+
}),
|
|
33206
|
+
(0, import_jsx_runtime.jsx)(Button, {
|
|
33207
|
+
variant: "link",
|
|
33208
|
+
size: "xs",
|
|
33209
|
+
onClick: () => XK.resetColumnVisibility(true),
|
|
33210
|
+
children: "Unhide all"
|
|
33211
|
+
})
|
|
33212
|
+
]
|
|
33136
33213
|
}),
|
|
33137
33214
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
33138
33215
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
33139
|
-
ref:
|
|
33216
|
+
ref: $K,
|
|
33140
33217
|
children: [
|
|
33141
|
-
|
|
33218
|
+
HK && (0, import_jsx_runtime.jsx)("thead", {
|
|
33142
33219
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
33143
33220
|
}),
|
|
33144
|
-
renderTableHeader(
|
|
33221
|
+
renderTableHeader(XK, QK || !!n),
|
|
33145
33222
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
33146
|
-
table:
|
|
33223
|
+
table: XK,
|
|
33147
33224
|
columns: i,
|
|
33148
|
-
rowViewerPanelOpen:
|
|
33149
|
-
getRowIndex:
|
|
33150
|
-
viewedRowIdx:
|
|
33151
|
-
virtualize:
|
|
33225
|
+
rowViewerPanelOpen: ZK,
|
|
33226
|
+
getRowIndex: YK,
|
|
33227
|
+
viewedRowIdx: BK,
|
|
33228
|
+
virtualize: QK
|
|
33152
33229
|
})
|
|
33153
33230
|
]
|
|
33154
33231
|
}),
|
|
@@ -33156,13 +33233,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33156
33233
|
part: "table-footer",
|
|
33157
33234
|
className: "pt-1.5 pb-0.5 border-t border-border",
|
|
33158
33235
|
totalColumns: d,
|
|
33159
|
-
pagination:
|
|
33236
|
+
pagination: q,
|
|
33160
33237
|
selection: c,
|
|
33161
|
-
onRowSelectionChange:
|
|
33162
|
-
table:
|
|
33163
|
-
getRowIds:
|
|
33164
|
-
showPageSizeSelector:
|
|
33165
|
-
tableLoading:
|
|
33238
|
+
onRowSelectionChange: J,
|
|
33239
|
+
table: XK,
|
|
33240
|
+
getRowIds: xK,
|
|
33241
|
+
showPageSizeSelector: FK,
|
|
33242
|
+
tableLoading: OK,
|
|
33243
|
+
togglePanel: LK
|
|
33166
33244
|
})
|
|
33167
33245
|
]
|
|
33168
33246
|
})
|
|
@@ -33251,69 +33329,69 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33251
33329
|
${_}`,
|
|
33252
33330
|
triggerImmediately: e2
|
|
33253
33331
|
});
|
|
33254
|
-
}, [q, J] = _.split(":", 2),
|
|
33255
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33256
|
-
let
|
|
33257
|
-
t[11] ===
|
|
33258
|
-
let
|
|
33259
|
-
t[13] === $ ?
|
|
33332
|
+
}, [q, J] = _.split(":", 2), xK = d ? KEY : "", CK;
|
|
33333
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CK = () => f(_temp$3), t[10] = CK) : CK = t[10];
|
|
33334
|
+
let wK = d ? "rotate-180" : "rotate-0", $;
|
|
33335
|
+
t[11] === wK ? $ = t[12] : ($ = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", wK), t[11] = wK, t[12] = $);
|
|
33336
|
+
let TK;
|
|
33337
|
+
t[13] === $ ? TK = t[14] : (TK = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33260
33338
|
className: $
|
|
33261
|
-
}), t[13] = $, t[14] =
|
|
33262
|
-
let
|
|
33263
|
-
t[15] ===
|
|
33339
|
+
}), t[13] = $, t[14] = TK);
|
|
33340
|
+
let EK = q || "Error", DK;
|
|
33341
|
+
t[15] === EK ? DK = t[16] : (DK = (0, import_jsx_runtime.jsxs)("span", {
|
|
33264
33342
|
className: "text-destructive",
|
|
33265
33343
|
children: [
|
|
33266
|
-
|
|
33344
|
+
EK,
|
|
33267
33345
|
":"
|
|
33268
33346
|
]
|
|
33269
|
-
}), t[15] =
|
|
33270
|
-
let
|
|
33271
|
-
t[17] !== J || t[18] !==
|
|
33347
|
+
}), t[15] = EK, t[16] = DK);
|
|
33348
|
+
let OK;
|
|
33349
|
+
t[17] !== J || t[18] !== DK ? (OK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33272
33350
|
className: "text-sm inline font-mono",
|
|
33273
33351
|
children: [
|
|
33274
|
-
|
|
33352
|
+
DK,
|
|
33275
33353
|
" ",
|
|
33276
33354
|
J
|
|
33277
33355
|
]
|
|
33278
|
-
}), t[17] = J, t[18] =
|
|
33279
|
-
let
|
|
33280
|
-
t[20] !==
|
|
33356
|
+
}), t[17] = J, t[18] = DK, t[19] = OK) : OK = t[19];
|
|
33357
|
+
let AK;
|
|
33358
|
+
t[20] !== OK || t[21] !== TK ? (AK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33281
33359
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
33282
|
-
onClick:
|
|
33360
|
+
onClick: CK,
|
|
33283
33361
|
children: [
|
|
33284
|
-
|
|
33285
|
-
|
|
33362
|
+
TK,
|
|
33363
|
+
OK
|
|
33286
33364
|
]
|
|
33287
|
-
}), t[20] =
|
|
33288
|
-
let
|
|
33289
|
-
t[23] === c ?
|
|
33365
|
+
}), t[20] = OK, t[21] = TK, t[22] = AK) : AK = t[22];
|
|
33366
|
+
let MK;
|
|
33367
|
+
t[23] === c ? MK = t[24] : (MK = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
33290
33368
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
33291
33369
|
children: c
|
|
33292
|
-
}), t[23] = c, t[24] =
|
|
33293
|
-
let
|
|
33294
|
-
t[25] !==
|
|
33370
|
+
}), t[23] = c, t[24] = MK);
|
|
33371
|
+
let NK;
|
|
33372
|
+
t[25] !== AK || t[26] !== MK ? (NK = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
33295
33373
|
value: KEY,
|
|
33296
33374
|
className: "border-none",
|
|
33297
33375
|
children: [
|
|
33298
|
-
|
|
33299
|
-
|
|
33376
|
+
AK,
|
|
33377
|
+
MK
|
|
33300
33378
|
]
|
|
33301
|
-
}), t[25] =
|
|
33302
|
-
let
|
|
33303
|
-
t[28] !==
|
|
33379
|
+
}), t[25] = AK, t[26] = MK, t[27] = NK) : NK = t[27];
|
|
33380
|
+
let PK;
|
|
33381
|
+
t[28] !== NK || t[29] !== xK ? (PK = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
33304
33382
|
type: "single",
|
|
33305
33383
|
collapsible: true,
|
|
33306
|
-
value:
|
|
33307
|
-
children:
|
|
33308
|
-
}), t[28] =
|
|
33309
|
-
let
|
|
33310
|
-
t[31] !== K || t[32] !== I ? (
|
|
33384
|
+
value: xK,
|
|
33385
|
+
children: NK
|
|
33386
|
+
}), t[28] = NK, t[29] = xK, t[30] = PK) : PK = t[30];
|
|
33387
|
+
let FK;
|
|
33388
|
+
t[31] !== K || t[32] !== I ? (FK = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33311
33389
|
tooltip: "Fix with AI",
|
|
33312
33390
|
openPrompt: () => K(false),
|
|
33313
33391
|
applyAutofix: () => K(true)
|
|
33314
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
33315
|
-
let
|
|
33316
|
-
t[34] !== A || t[35] !== w ? (
|
|
33392
|
+
}), t[31] = K, t[32] = I, t[33] = FK) : FK = t[33];
|
|
33393
|
+
let LK;
|
|
33394
|
+
t[34] !== A || t[35] !== w ? (LK = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33317
33395
|
content: "Attach pdb to the exception point.",
|
|
33318
33396
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33319
33397
|
size: "xs",
|
|
@@ -33330,9 +33408,9 @@ ${_}`,
|
|
|
33330
33408
|
"Launch debugger"
|
|
33331
33409
|
]
|
|
33332
33410
|
})
|
|
33333
|
-
}), t[34] = A, t[35] = w, t[36] =
|
|
33334
|
-
let
|
|
33335
|
-
t[37] !== _ || t[38] !== i ? (
|
|
33411
|
+
}), t[34] = A, t[35] = w, t[36] = LK) : LK = t[36];
|
|
33412
|
+
let RK;
|
|
33413
|
+
t[37] !== _ || t[38] !== i ? (RK = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33336
33414
|
children: [
|
|
33337
33415
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33338
33416
|
asChild: true,
|
|
@@ -33400,24 +33478,24 @@ ${_}`,
|
|
|
33400
33478
|
]
|
|
33401
33479
|
})
|
|
33402
33480
|
]
|
|
33403
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
33404
|
-
let
|
|
33405
|
-
t[40] !==
|
|
33481
|
+
}), t[37] = _, t[38] = i, t[39] = RK) : RK = t[39];
|
|
33482
|
+
let zK;
|
|
33483
|
+
t[40] !== FK || t[41] !== LK || t[42] !== RK ? (zK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33406
33484
|
className: "flex gap-2",
|
|
33407
33485
|
children: [
|
|
33408
|
-
NK,
|
|
33409
33486
|
FK,
|
|
33410
|
-
|
|
33487
|
+
LK,
|
|
33488
|
+
RK
|
|
33411
33489
|
]
|
|
33412
|
-
}), t[40] =
|
|
33413
|
-
let
|
|
33414
|
-
return t[44] !==
|
|
33490
|
+
}), t[40] = FK, t[41] = LK, t[42] = RK, t[43] = zK) : zK = t[43];
|
|
33491
|
+
let BK;
|
|
33492
|
+
return t[44] !== PK || t[45] !== zK ? (BK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33415
33493
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33416
33494
|
children: [
|
|
33417
|
-
|
|
33418
|
-
|
|
33495
|
+
PK,
|
|
33496
|
+
zK
|
|
33419
33497
|
]
|
|
33420
|
-
}), t[44] =
|
|
33498
|
+
}), t[44] = PK, t[45] = zK, t[46] = BK) : BK = t[46], BK;
|
|
33421
33499
|
};
|
|
33422
33500
|
function lastLine(e) {
|
|
33423
33501
|
var _a2, _b;
|
|
@@ -34803,7 +34881,7 @@ ${_}`,
|
|
|
34803
34881
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
34804
34882
|
}
|
|
34805
34883
|
}
|
|
34806
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
34884
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev5");
|
|
34807
34885
|
showCodeInRunModeAtom = atom(true);
|
|
34808
34886
|
atom(null);
|
|
34809
34887
|
var import_compiler_runtime = require_compiler_runtime();
|