@warkypublic/oranguru 0.0.21 → 0.0.23
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/lib.cjs.js +5 -5
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.es.js +66 -66
- package/dist/lib.es.js.map +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -3,9 +3,9 @@ import { CompactSelection as W, GridCellKind as V, DataEditor as Me } from "@gli
|
|
|
3
3
|
import { IconX as Ne, IconGrid4x4 as se, IconSquarePlus as Oe, IconEdit as fe, IconTrashX as ge, IconExclamationMark as $e, IconRefresh as De, IconMenu2 as ze } from "@tabler/icons-react";
|
|
4
4
|
import { getUUID as we } from "@warkypublic/artemis-kit";
|
|
5
5
|
import { createSyncStore as ye } from "@warkypublic/zustandsyncstore";
|
|
6
|
-
import { produce as
|
|
6
|
+
import { produce as Y } from "immer";
|
|
7
7
|
import { Portal as Le, Menu as G, Stack as be, Select as Ge, TextInput as He, ActionIcon as xe, useMantineTheme as qe, useMantineColorScheme as Be, lighten as he, darken as We, Group as Ke } from "@mantine/core";
|
|
8
|
-
import { useDebouncedValue as Re, useDebouncedCallback as Ve, useElementSize as
|
|
8
|
+
import { useDebouncedValue as Re, useDebouncedCallback as Ve, useElementSize as Ye, useMergedRef as Je } from "@mantine/hooks";
|
|
9
9
|
var oe = { exports: {} }, U = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
@@ -54,12 +54,12 @@ function Xe() {
|
|
|
54
54
|
function o(l) {
|
|
55
55
|
if (l == null) return null;
|
|
56
56
|
if (typeof l == "function")
|
|
57
|
-
return l.$$typeof ===
|
|
57
|
+
return l.$$typeof === j ? null : l.displayName || l.name || null;
|
|
58
58
|
if (typeof l == "string") return l;
|
|
59
59
|
switch (l) {
|
|
60
60
|
case b:
|
|
61
61
|
return "Fragment";
|
|
62
|
-
case
|
|
62
|
+
case M:
|
|
63
63
|
return "Profiler";
|
|
64
64
|
case E:
|
|
65
65
|
return "StrictMode";
|
|
@@ -78,14 +78,14 @@ function Xe() {
|
|
|
78
78
|
return "Portal";
|
|
79
79
|
case q:
|
|
80
80
|
return l.displayName || "Context";
|
|
81
|
-
case
|
|
81
|
+
case P:
|
|
82
82
|
return (l._context.displayName || "Context") + ".Consumer";
|
|
83
83
|
case v:
|
|
84
84
|
var m = l.render;
|
|
85
85
|
return l = l.displayName, l || (l = m.displayName || m.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
|
|
86
86
|
case I:
|
|
87
87
|
return m = l.displayName || null, m !== null ? m : o(l.type) || "Memo";
|
|
88
|
-
case
|
|
88
|
+
case A:
|
|
89
89
|
m = l._payload, l = l._init;
|
|
90
90
|
try {
|
|
91
91
|
return o(l(m));
|
|
@@ -116,7 +116,7 @@ function Xe() {
|
|
|
116
116
|
}
|
|
117
117
|
function t(l) {
|
|
118
118
|
if (l === b) return "<>";
|
|
119
|
-
if (typeof l == "object" && l !== null && l.$$typeof ===
|
|
119
|
+
if (typeof l == "object" && l !== null && l.$$typeof === A)
|
|
120
120
|
return "<...>";
|
|
121
121
|
try {
|
|
122
122
|
var m = o(l);
|
|
@@ -208,7 +208,7 @@ function Xe() {
|
|
|
208
208
|
var K = Object.keys(m).filter(function(Pe) {
|
|
209
209
|
return Pe !== "key";
|
|
210
210
|
});
|
|
211
|
-
p = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
211
|
+
p = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", J[k + p] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
212
|
`A props object containing a "key" prop is being spread into JSX:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s {...props} />
|
|
@@ -219,7 +219,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
219
219
|
k,
|
|
220
220
|
K,
|
|
221
221
|
k
|
|
222
|
-
),
|
|
222
|
+
), J[k + p] = !0);
|
|
223
223
|
}
|
|
224
224
|
if (k = null, y !== void 0 && (e(y), k = "" + y), i(m) && (e(m.key), k = "" + m.key), "key" in m) {
|
|
225
225
|
y = {};
|
|
@@ -239,12 +239,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
241
|
function d(l) {
|
|
242
|
-
S(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof ===
|
|
242
|
+
S(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === A && (l._payload.status === "fulfilled" ? S(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
|
|
243
243
|
}
|
|
244
244
|
function S(l) {
|
|
245
245
|
return typeof l == "object" && l !== null && l.$$typeof === C;
|
|
246
246
|
}
|
|
247
|
-
var _ = N, C = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"),
|
|
247
|
+
var _ = N, C = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), q = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), $ = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, H = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
248
248
|
return null;
|
|
249
249
|
};
|
|
250
250
|
_ = {
|
|
@@ -255,7 +255,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
255
255
|
var Z, ee = {}, te = _.react_stack_bottom_frame.bind(
|
|
256
256
|
_,
|
|
257
257
|
r
|
|
258
|
-
)(), ne = D(t(r)),
|
|
258
|
+
)(), ne = D(t(r)), J = {};
|
|
259
259
|
X.Fragment = b, X.jsx = function(l, m, y) {
|
|
260
260
|
var p = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
261
261
|
return u(
|
|
@@ -356,7 +356,7 @@ const { Provider: ot, useStore: pe } = ye(
|
|
|
356
356
|
menus: [],
|
|
357
357
|
setInstanceState: (e, t, n) => {
|
|
358
358
|
o(
|
|
359
|
-
|
|
359
|
+
Y((r) => {
|
|
360
360
|
const i = r?.menus?.findIndex((s) => s.id === e);
|
|
361
361
|
i >= 0 && (r.menus[i][t] = n);
|
|
362
362
|
})
|
|
@@ -364,7 +364,7 @@ const { Provider: ot, useStore: pe } = ye(
|
|
|
364
364
|
},
|
|
365
365
|
setState: (e, t) => {
|
|
366
366
|
o(
|
|
367
|
-
|
|
367
|
+
Y((n) => {
|
|
368
368
|
n[e] = t;
|
|
369
369
|
})
|
|
370
370
|
);
|
|
@@ -372,7 +372,7 @@ const { Provider: ot, useStore: pe } = ye(
|
|
|
372
372
|
show: (e, t) => {
|
|
373
373
|
const n = c(), r = n.menus.findIndex((s) => s.id === e), i = n.menus[r] ? { ...n.menus[r] } : {};
|
|
374
374
|
Object.assign(i, t), i.id = i.id ?? e, i.visible = !(i.visible ?? !1), r < 0 ? n.setState("menus", [...n.menus, i]) : o(
|
|
375
|
-
|
|
375
|
+
Y((s) => {
|
|
376
376
|
s.menus || (s.menus = []), s.menus[r] = { ...s.menus[r], ...i };
|
|
377
377
|
})
|
|
378
378
|
);
|
|
@@ -577,7 +577,7 @@ const it = [
|
|
|
577
577
|
addError: (e, ...t) => {
|
|
578
578
|
const n = c();
|
|
579
579
|
console.log("Gridler Error", n.uniqueid, e, t), o(
|
|
580
|
-
|
|
580
|
+
Y((r) => {
|
|
581
581
|
r.errors = [...r.errors, e];
|
|
582
582
|
})
|
|
583
583
|
);
|
|
@@ -715,7 +715,7 @@ const it = [
|
|
|
715
715
|
},
|
|
716
716
|
onCellClicked: (e, t) => {
|
|
717
717
|
const n = c(), [r, i] = e;
|
|
718
|
-
n.glideProps?.onCellClicked
|
|
718
|
+
n.glideProps?.onCellClicked && n.glideProps?.onCellClicked?.(e, t), n.values?.length && n.onChange && n.onChange(n.values), n._events.dispatchEvent(
|
|
719
719
|
new CustomEvent("onCellClicked", {
|
|
720
720
|
detail: { cell: e, col: r, row: i, state: n }
|
|
721
721
|
})
|
|
@@ -943,14 +943,14 @@ const it = [
|
|
|
943
943
|
},
|
|
944
944
|
setState: (e, t) => {
|
|
945
945
|
o(
|
|
946
|
-
|
|
946
|
+
Y((n) => {
|
|
947
947
|
n[e] = t;
|
|
948
948
|
})
|
|
949
949
|
);
|
|
950
950
|
},
|
|
951
951
|
setStateFN: (e, t) => new Promise((r, i) => {
|
|
952
952
|
o(
|
|
953
|
-
|
|
953
|
+
Y((s) => {
|
|
954
954
|
if (typeof t == "function")
|
|
955
955
|
s[e] = t(s[e]);
|
|
956
956
|
else
|
|
@@ -1059,19 +1059,19 @@ function dt(o) {
|
|
|
1059
1059
|
type: "custom-sql-w",
|
|
1060
1060
|
value: o.filter
|
|
1061
1061
|
}), (o.options ?? []).length > 0 && E.push(...o.options ?? []);
|
|
1062
|
-
const
|
|
1063
|
-
if (o.hotfields && o.hotfields.length > 0 &&
|
|
1062
|
+
const M = g?.filter((f) => !f.virtual)?.map((f) => f.id) ?? [];
|
|
1063
|
+
if (o.hotfields && o.hotfields.length > 0 && M?.push(o.hotfields.join(",")), M && M.length > 0 && E.push({
|
|
1064
1064
|
type: "select-fields",
|
|
1065
|
-
value:
|
|
1065
|
+
value: M.join(",")
|
|
1066
1066
|
}), E && E.length > 0) {
|
|
1067
1067
|
const f = Q(E);
|
|
1068
1068
|
for (const w in Q(E))
|
|
1069
1069
|
b.set(w, f[w]);
|
|
1070
1070
|
}
|
|
1071
|
-
const
|
|
1071
|
+
const P = R?.findIndex((f) => f.page === a) ?? -1;
|
|
1072
1072
|
if (R?.forEach((f) => {
|
|
1073
1073
|
(f.page >= 0 && f.page < a - 2 || a >= 0 && f.page > a + 2) && f.controller?.abort?.();
|
|
1074
|
-
}), R &&
|
|
1074
|
+
}), R && P >= 0 && R[P]) {
|
|
1075
1075
|
e("loadingData", !1);
|
|
1076
1076
|
return;
|
|
1077
1077
|
}
|
|
@@ -1377,8 +1377,8 @@ const Ie = N.memo(() => {
|
|
|
1377
1377
|
searchStr: R,
|
|
1378
1378
|
selectedRowKey: b,
|
|
1379
1379
|
setState: E,
|
|
1380
|
-
setStateFN:
|
|
1381
|
-
values:
|
|
1380
|
+
setStateFN: M,
|
|
1381
|
+
values: P
|
|
1382
1382
|
} = L((v) => ({
|
|
1383
1383
|
_glideref: v._glideref,
|
|
1384
1384
|
_gridSelectionRows: v._gridSelectionRows,
|
|
@@ -1414,49 +1414,49 @@ const Ie = N.memo(() => {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
);
|
|
1416
1416
|
return x(() => {
|
|
1417
|
-
|
|
1418
|
-
const f = d("_page_data"), w = d("pageSize"), I = d("keyField") ?? "id",
|
|
1419
|
-
for (const O in
|
|
1420
|
-
let
|
|
1417
|
+
P && (async () => {
|
|
1418
|
+
const f = d("_page_data"), w = d("pageSize"), I = d("keyField") ?? "id", A = [];
|
|
1419
|
+
for (const O in P) {
|
|
1420
|
+
let j = -1;
|
|
1421
1421
|
const $ = String(
|
|
1422
|
-
typeof
|
|
1422
|
+
typeof P?.[O] == "object" ? P?.[O]?.[I] : typeof P?.[O] == "string" ? P?.[O] : void 0
|
|
1423
1423
|
);
|
|
1424
1424
|
for (const T in f) {
|
|
1425
1425
|
for (const H in f[T]) {
|
|
1426
1426
|
const D = Number(T) * w + Number(H);
|
|
1427
1427
|
if (String(f[T][H]?.[I]) === $) {
|
|
1428
|
-
|
|
1428
|
+
j = D;
|
|
1429
1429
|
break;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
if (
|
|
1433
|
-
|
|
1432
|
+
if (j >= 0) {
|
|
1433
|
+
A.push(j);
|
|
1434
1434
|
break;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
if (!(
|
|
1437
|
+
if (!(j >= 0)) {
|
|
1438
1438
|
const T = await u($);
|
|
1439
|
-
T &&
|
|
1439
|
+
T && A.push(T);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
return
|
|
1442
|
+
return A;
|
|
1443
1443
|
})().then((f) => {
|
|
1444
1444
|
let w = W.empty();
|
|
1445
1445
|
f.forEach((I) => {
|
|
1446
1446
|
w = w.add(I);
|
|
1447
|
-
}),
|
|
1447
|
+
}), M("_gridSelectionRows", () => w), M("_gridSelection", (I) => ({
|
|
1448
1448
|
columns: I?.columns ?? W.empty(),
|
|
1449
1449
|
...I,
|
|
1450
1450
|
rows: w
|
|
1451
1451
|
}));
|
|
1452
1452
|
});
|
|
1453
|
-
}, [
|
|
1453
|
+
}, [P]), x(() => {
|
|
1454
1454
|
const v = d("onChange");
|
|
1455
1455
|
if (v && typeof v == "function") {
|
|
1456
1456
|
const w = d("getGridSelectedRows")(), I = d("values");
|
|
1457
1457
|
JSON.stringify(I) !== JSON.stringify(w) && v(w);
|
|
1458
1458
|
}
|
|
1459
|
-
}, [
|
|
1459
|
+
}, [n, n?.length, d]), x(() => {
|
|
1460
1460
|
E(
|
|
1461
1461
|
"renderColumns",
|
|
1462
1462
|
g?.map((v) => ({
|
|
@@ -1476,7 +1476,7 @@ const Ie = N.memo(() => {
|
|
|
1476
1476
|
columns: W.empty(),
|
|
1477
1477
|
current: void 0,
|
|
1478
1478
|
rows: W.empty()
|
|
1479
|
-
}), E("_gridSelectionRows", W.empty()),
|
|
1479
|
+
}), E("_gridSelectionRows", W.empty()), M("renderColumns", (v) => v?.map((f) => ({
|
|
1480
1480
|
...f,
|
|
1481
1481
|
icon: f.id && a?.find((w) => w.id === f.id)?.direction ? a?.find((w) => w.id === f.id)?.direction === "asc" ? "sortup" : "sortdown" : f.defaultIcon ?? "sort"
|
|
1482
1482
|
}))).then(() => {
|
|
@@ -1497,14 +1497,14 @@ const Ie = N.memo(() => {
|
|
|
1497
1497
|
);
|
|
1498
1498
|
}), e.current = r);
|
|
1499
1499
|
}, [r]), x(() => {
|
|
1500
|
-
s &&
|
|
1500
|
+
s && M("renderColumns", (v) => v?.map((f) => ({
|
|
1501
1501
|
...f,
|
|
1502
1502
|
width: f.id && s?.[f.id] ? s?.[f.id] : f.width
|
|
1503
1503
|
}))).then(() => {
|
|
1504
1504
|
d("refreshCells")?.();
|
|
1505
1505
|
});
|
|
1506
1506
|
}, [s]), x(() => {
|
|
1507
|
-
i &&
|
|
1507
|
+
i && M("renderColumns", (v) => v?.sort((w, I) => i[w.id] > i[I.id] ? 1 : -1)).then(() => {
|
|
1508
1508
|
d("refreshCells")?.();
|
|
1509
1509
|
});
|
|
1510
1510
|
}, [i]), x(() => {
|
|
@@ -1518,9 +1518,9 @@ const Ie = N.memo(() => {
|
|
|
1518
1518
|
const I = d("scrollToRowKey");
|
|
1519
1519
|
if (I && I >= 0)
|
|
1520
1520
|
return;
|
|
1521
|
-
const
|
|
1522
|
-
if ($ && $ > 0 && (T.length ?? 0) === 0) {
|
|
1523
|
-
const H = [
|
|
1521
|
+
const A = d("keyField") ?? "id", j = d("_page_data")?.[0]?.[0], $ = j?.[A], T = d("values") ?? [];
|
|
1522
|
+
if (!(P && P.length > 0) && $ && $ > 0 && (T.length ?? 0) === 0) {
|
|
1523
|
+
const H = [j, ...T], D = d("onChange");
|
|
1524
1524
|
D ? D(H) : E("values", H), E("scrollToRowKey", $);
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
@@ -1530,16 +1530,16 @@ const Ie = N.memo(() => {
|
|
|
1530
1530
|
};
|
|
1531
1531
|
}, [_]), x(() => {
|
|
1532
1532
|
const v = d("ready"), f = d("_glideref"), w = d("getRowIndexByKey"), I = b ?? C;
|
|
1533
|
-
I && f && v && w?.(I).then((
|
|
1534
|
-
if (
|
|
1533
|
+
I && f && v && w?.(I).then((A) => {
|
|
1534
|
+
if (A !== void 0) {
|
|
1535
1535
|
if (b) {
|
|
1536
|
-
const O = d("onChange"),
|
|
1537
|
-
O ? O(
|
|
1536
|
+
const O = d("onChange"), j = [{ [d("keyField") ?? "id"]: b }];
|
|
1537
|
+
JSON.stringify(d("values")) !== JSON.stringify(j) && (O ? O(j) : E("values", j));
|
|
1538
1538
|
}
|
|
1539
|
-
f.scrollTo(0,
|
|
1539
|
+
f.scrollTo(0, A), d("_events").dispatchEvent(
|
|
1540
1540
|
new CustomEvent("scrollToRowKeyFound", {
|
|
1541
1541
|
detail: {
|
|
1542
|
-
rowNumber:
|
|
1542
|
+
rowNumber: A,
|
|
1543
1543
|
scrollToRowKey: C,
|
|
1544
1544
|
selectedRowKey: b
|
|
1545
1545
|
}
|
|
@@ -1650,7 +1650,7 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1650
1650
|
g(s);
|
|
1651
1651
|
}, [c, t]), { getRowThemeOverride: (d) => e ? bt(c)(d) : void 0, gridTheme: a };
|
|
1652
1652
|
}, Rt = () => {
|
|
1653
|
-
const o = N.useRef(null), c = N.useRef(!1), { height: e, ref: t, width: n } =
|
|
1653
|
+
const o = N.useRef(null), c = N.useRef(!1), { height: e, ref: t, width: n } = Ye({ box: "content-box" }), {
|
|
1654
1654
|
_gridSelection: r,
|
|
1655
1655
|
allowMultiSelect: i,
|
|
1656
1656
|
focused: s,
|
|
@@ -1664,16 +1664,16 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1664
1664
|
mounted: R,
|
|
1665
1665
|
onCellActivated: b,
|
|
1666
1666
|
onCellClicked: E,
|
|
1667
|
-
onCellEdited:
|
|
1668
|
-
onColumnMoved:
|
|
1667
|
+
onCellEdited: M,
|
|
1668
|
+
onColumnMoved: P,
|
|
1669
1669
|
onColumnProposeMove: q,
|
|
1670
1670
|
onColumnResize: v,
|
|
1671
1671
|
onContextClick: f,
|
|
1672
1672
|
onHeaderClicked: w,
|
|
1673
1673
|
onHeaderMenuClick: I,
|
|
1674
|
-
onItemHovered:
|
|
1674
|
+
onItemHovered: A,
|
|
1675
1675
|
onVisibleRegionChanged: O,
|
|
1676
|
-
renderColumns:
|
|
1676
|
+
renderColumns: j,
|
|
1677
1677
|
rowHeight: $,
|
|
1678
1678
|
sections: T,
|
|
1679
1679
|
selectMode: H,
|
|
@@ -1712,11 +1712,11 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1712
1712
|
setStateFN: l.setStateFN,
|
|
1713
1713
|
total_rows: l.total_rows,
|
|
1714
1714
|
widthProp: l.width
|
|
1715
|
-
})), ne =
|
|
1715
|
+
})), ne = Je(o, (l) => {
|
|
1716
1716
|
Z("_glideref", () => l ?? void 0);
|
|
1717
1717
|
const m = u("ready"), y = !!(l && R);
|
|
1718
1718
|
m !== y && D("ready", y);
|
|
1719
|
-
}),
|
|
1719
|
+
}), J = xt();
|
|
1720
1720
|
return /* @__PURE__ */ h.jsxs(
|
|
1721
1721
|
be,
|
|
1722
1722
|
{
|
|
@@ -1751,7 +1751,7 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1751
1751
|
Me,
|
|
1752
1752
|
{
|
|
1753
1753
|
cellActivationBehavior: "double-click",
|
|
1754
|
-
columns:
|
|
1754
|
+
columns: j ?? [],
|
|
1755
1755
|
columnSelect: "none",
|
|
1756
1756
|
drawFocusRing: !0,
|
|
1757
1757
|
height: e ?? 400,
|
|
@@ -1772,7 +1772,7 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1772
1772
|
...d,
|
|
1773
1773
|
getCellContent: a,
|
|
1774
1774
|
getCellsForSelection: g,
|
|
1775
|
-
getRowThemeOverride:
|
|
1775
|
+
getRowThemeOverride: J.getRowThemeOverride,
|
|
1776
1776
|
gridSelection: r,
|
|
1777
1777
|
headerHeight: _ ?? 32,
|
|
1778
1778
|
headerIcons: { sort: Ct, sortdown: de, sortup: ue },
|
|
@@ -1783,8 +1783,8 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1783
1783
|
c.current = !1;
|
|
1784
1784
|
}, 100));
|
|
1785
1785
|
},
|
|
1786
|
-
onCellEdited:
|
|
1787
|
-
onColumnMoved:
|
|
1786
|
+
onCellEdited: M,
|
|
1787
|
+
onColumnMoved: P,
|
|
1788
1788
|
onColumnProposeMove: q,
|
|
1789
1789
|
onColumnResize: v,
|
|
1790
1790
|
onGridSelectionChange: (l) => {
|
|
@@ -1798,7 +1798,7 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1798
1798
|
if (m.length === 0)
|
|
1799
1799
|
for (const F of y?.rows ?? [])
|
|
1800
1800
|
z && z(F)?.[p] && (m = m.hasIndex(F) ? m : m.add(F));
|
|
1801
|
-
(JSON.stringify(y?.columns) !== JSON.stringify(l.columns) || JSON.stringify(y?.rows) !== JSON.stringify(m) || JSON.stringify(y?.current) !== JSON.stringify(l.current)) && (D("_gridSelection", { ...l, rows: m }),
|
|
1801
|
+
console.log("Debug:onGridSelectionChange", y, l), (JSON.stringify(y?.columns) !== JSON.stringify(l.columns) || JSON.stringify(y?.rows) !== JSON.stringify(m) || JSON.stringify(y?.current) !== JSON.stringify(l.current)) && (D("_gridSelection", { ...l, rows: m }), D("_gridSelectionRows", m));
|
|
1802
1802
|
},
|
|
1803
1803
|
onHeaderClicked: w,
|
|
1804
1804
|
onHeaderContextMenu: (l, m) => {
|
|
@@ -1807,7 +1807,7 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1807
1807
|
}, 100));
|
|
1808
1808
|
},
|
|
1809
1809
|
onHeaderMenuClick: I,
|
|
1810
|
-
onItemHovered:
|
|
1810
|
+
onItemHovered: A,
|
|
1811
1811
|
onVisibleRegionChanged: O,
|
|
1812
1812
|
ref: ne,
|
|
1813
1813
|
rightElement: T?.rightElementDisabled ? void 0 : /* @__PURE__ */ h.jsxs(Ke, { children: [
|
|
@@ -1817,7 +1817,7 @@ const Ct = (o) => `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" w
|
|
|
1817
1817
|
] }),
|
|
1818
1818
|
rowHeight: $ ?? 22,
|
|
1819
1819
|
rows: ee ?? 0,
|
|
1820
|
-
theme:
|
|
1820
|
+
theme: J.gridTheme,
|
|
1821
1821
|
width: n ?? 200
|
|
1822
1822
|
}
|
|
1823
1823
|
),
|