@sheetxl/grid-react 0.8.0-beta.20 → 0.8.0-beta.21
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/browser/esm/index.mjs +63 -63
- package/node/esm/index.mjs +159 -159
- package/package.json +3 -3
- package/types/src/header/HeaderDividerAnchor.d.ts +1 -1
package/browser/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.grid-surface,.touch-input{--sxl-handle-size:11px;--sxl-handle-ring:2px;--sxl-handle-hit:11px;--sxl-handle-color:var(--sxl-color-primary,#217346);--sxl-handle-halo:0px}.touch-input{--sxl-handle-size:14px;--sxl-handle-hit:36px;--sxl-handle-halo:1.5px}._grid-stage_rzp9d_1{width:100%;height:100%;position:absolute;top:0;left:0}._grid-stage_rzp9d_1>*{pointer-events:none;position:absolute;inset:0}._grid-stage_rzp9d_1>*>*{pointer-events:auto}._sheetxl-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.sxl-grid-surface,.sxl-touch-input{--sxl-handle-size:11px;--sxl-handle-ring:2px;--sxl-handle-hit:11px;--sxl-handle-color:var(--sxl-color-primary,#217346);--sxl-handle-halo:0px}.sxl-touch-input{--sxl-handle-size:14px;--sxl-handle-hit:36px;--sxl-handle-halo:1.5px}._grid-stage_rzp9d_1{width:100%;height:100%;position:absolute;top:0;left:0}._grid-stage_rzp9d_1>*{pointer-events:none;position:absolute;inset:0}._grid-stage_rzp9d_1>*>*{pointer-events:auto}._sheetxl-grid_9syr3_7{box-sizing:border-box;user-select:none;contain:strict;width:100%;height:100%;position:relative}._sheetxl-grid_9syr3_7 *{box-sizing:border-box!important}._sheetxl-grid_9syr3_7 :focus{outline:none}._sheetxl-grid_9syr3_7>*{contain:size layout style}._virtual-div_16eab_1{position:absolute}._tiles_1hj43_7{will-change:transform}._tiles_1hj43_7 .sxl-tile{white-space:pre;position:absolute}._tiles_1hj43_7 .sxl-tile>*{contain:strict;position:absolute}._tiles_1hj43_7 [data-cell-interactive]{pointer-events:auto}._gridlines_1hj43_32,._gridlines_1hj43_32 *{pointer-events:none;position:absolute;overflow:visible}.sxl-cell{letter-spacing:-.25px;padding:2px 4px;font-family:Calibri;line-height:1.2}._field_q34pi_8{box-sizing:border-box;background:light-dark(#fff,#2b2b2b);border:1px solid light-dark(#c4c4c4,#5a5a5a);border-radius:4px;flex:none;align-items:center;width:100%;min-width:0;display:flex;position:relative}._field_q34pi_8:focus-within{border-color:var(--sxl-color-primary,#0078d7)}._search_q34pi_28{box-sizing:border-box;width:auto;min-width:0;font:inherit;color:inherit;background:0 0;border:none;outline:none;flex:auto;margin:0;padding:3px 4px}._search_q34pi_28::placeholder{opacity:.6}._icon_q34pi_47{opacity:.6;pointer-events:none;flex:none;width:14px;height:14px;margin-left:6px}._clear_q34pi_56{width:20px;height:20px;color:inherit;opacity:.6;cursor:pointer;background:0 0;border:none;border-radius:2px;flex:none;justify-content:center;align-items:center;margin-right:2px;padding:0;display:inline-flex}._clear_q34pi_56 svg{width:12px;height:12px}._clear_q34pi_56:hover{opacity:1;background:light-dark(#0000000f,#ffffff1a)}._row_q34pi_84{align-items:center;gap:6px;min-width:0;display:flex}._row_q34pi_84 ._field_q34pi_8{flex:auto;width:auto}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/grid-react - Grid React - Advanced grid component for React - v0.8.0-beta.
|
|
3
|
+
* @license @sheetxl/grid-react - Grid React - Advanced grid component for React - v0.8.0-beta.21
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
@@ -453,7 +453,7 @@ var Y = (e, t, n) => Math.min(n, Math.max(t, e)), _e = (e, t, n) => {
|
|
|
453
453
|
registerLayer: v
|
|
454
454
|
}), []);
|
|
455
455
|
return l(() => v({ getElement: () => G.current }), [v]), y("div", {
|
|
456
|
-
className: J(n, "stage", xe),
|
|
456
|
+
className: J(n, "sxl-stage", xe),
|
|
457
457
|
ref: G,
|
|
458
458
|
tabIndex: 0,
|
|
459
459
|
...c,
|
|
@@ -804,7 +804,7 @@ var Z = Object.freeze([]), De = (e, t) => {
|
|
|
804
804
|
value: i,
|
|
805
805
|
children: t
|
|
806
806
|
});
|
|
807
|
-
}, Ue = { "sheetxl-grid": "_sheetxl-
|
|
807
|
+
}, Ue = { "sheetxl-grid": "_sheetxl-grid_9syr3_7" }, We = o(i((e, n) => {
|
|
808
808
|
let { rowCount: i = 1, columnCount: o = 1, viewport: c, metrics: u, getRangeFromCell: d = U.cellToRange, hiddenRowsAt: g, hiddenColumnsAt: _, freezeLeft: x = 0, freezeTop: S = 0, propsFreezeLeft: C, propsFreezeTop: w, onFirstRender: T, children: E, wrapPane: D, onFocus: O, onBlur: A, className: j, style: M, ...N } = e, F = P(O, [O]), I = P(A, [A]), z = P(T, [T]), [B, ee] = h(H.Center), [V, te] = p((e) => e + 1, 0), W = f(() => new k({}), []), G = c ?? W, [re, ie] = h(() => {
|
|
809
809
|
let e = G.getClient();
|
|
810
810
|
return {
|
|
@@ -964,7 +964,7 @@ var Z = Object.freeze([]), De = (e, t) => {
|
|
|
964
964
|
ref: (e) => {
|
|
965
965
|
e ? (o.refStage = e, X()) : o.refStage = null;
|
|
966
966
|
},
|
|
967
|
-
className: `stage stage-${r}`,
|
|
967
|
+
className: `sxl-stage sxl-stage-${r}`,
|
|
968
968
|
onFocus: (e) => {
|
|
969
969
|
ee(r), F(e);
|
|
970
970
|
},
|
|
@@ -1272,7 +1272,7 @@ var Z = Object.freeze([]), De = (e, t) => {
|
|
|
1272
1272
|
let lt = R();
|
|
1273
1273
|
return y("div", {
|
|
1274
1274
|
ref: rt,
|
|
1275
|
-
className: J(j, "grid-surface", Ue["sheetxl-grid"], { "touch-input": lt === "touch" }),
|
|
1275
|
+
className: J(j, "sxl-grid-surface", Ue["sheetxl-grid"], { "sxl-touch-input": lt === "touch" }),
|
|
1276
1276
|
style: {
|
|
1277
1277
|
overflow: "hidden",
|
|
1278
1278
|
...M
|
|
@@ -1890,7 +1890,7 @@ var pt = !1, mt = (e, t, n, r) => ({
|
|
|
1890
1890
|
let e = x.getElement()?.getBoundingClientRect(), t = h.x - (e?.left ?? 0), n = h.y - (e?.top ?? 0);
|
|
1891
1891
|
N = y("div", {
|
|
1892
1892
|
ref: j,
|
|
1893
|
-
className: "sticky-layer",
|
|
1893
|
+
className: "sxl-sticky-layer",
|
|
1894
1894
|
style: {
|
|
1895
1895
|
position: "absolute",
|
|
1896
1896
|
left: 0,
|
|
@@ -2337,7 +2337,7 @@ var Xt = {
|
|
|
2337
2337
|
if (w === "none") return t;
|
|
2338
2338
|
let n = w === "focus";
|
|
2339
2339
|
return y("div", {
|
|
2340
|
-
className: "range-float-frame",
|
|
2340
|
+
className: "sxl-range-float-frame",
|
|
2341
2341
|
style: tn,
|
|
2342
2342
|
onPointerDownCapture: n ? () => {
|
|
2343
2343
|
G.current = !0;
|
|
@@ -2379,7 +2379,7 @@ var ln = (e, t) => Array.isArray(e) ? e.includes(t) : e === t, un = (e) => {
|
|
|
2379
2379
|
p(null);
|
|
2380
2380
|
}, []);
|
|
2381
2381
|
return y(ct, {
|
|
2382
|
-
className: J(a, "range-float"),
|
|
2382
|
+
className: J(a, "sxl-range-float"),
|
|
2383
2383
|
onPointerMove: u ? m : void 0,
|
|
2384
2384
|
onPointerLeave: u ? g : void 0,
|
|
2385
2385
|
children: y(cn, {
|
|
@@ -2396,7 +2396,7 @@ var dn = (e) => {
|
|
|
2396
2396
|
return y(un, {
|
|
2397
2397
|
...o,
|
|
2398
2398
|
activateOn: "hover",
|
|
2399
|
-
className: J(n, "range-tooltip"),
|
|
2399
|
+
className: J(n, "sxl-range-tooltip"),
|
|
2400
2400
|
style: r,
|
|
2401
2401
|
interactive: i ? "pointer" : "none",
|
|
2402
2402
|
zIndex: ke,
|
|
@@ -2568,7 +2568,7 @@ var fn = (e) => 1 - (1 - e) * (1 - e), pn = () => typeof window < "u" && typeof
|
|
|
2568
2568
|
}, [O]);
|
|
2569
2569
|
let k = tt(), A = m(null), j = m(() => {});
|
|
2570
2570
|
if (j.current = () => {
|
|
2571
|
-
let e = A.current?.closest(".gesture-tip");
|
|
2571
|
+
let e = A.current?.closest(".sxl-gesture-tip");
|
|
2572
2572
|
if (!e) return;
|
|
2573
2573
|
let t = s && k ? s.frame(vn(k)) : null;
|
|
2574
2574
|
if (!t) return void (e.style.translate = "");
|
|
@@ -2583,7 +2583,7 @@ var fn = (e) => 1 - (1 - e) * (1 - e), pn = () => typeof window < "u" && typeof
|
|
|
2583
2583
|
ref: A,
|
|
2584
2584
|
style: Cn,
|
|
2585
2585
|
children: p
|
|
2586
|
-
}) : p, N = J(f, "gesture-tip"), P = () => D(!0), F = T && o?.duration ? {
|
|
2586
|
+
}) : p, N = J(f, "sxl-gesture-tip"), P = () => D(!0), F = T && o?.duration ? {
|
|
2587
2587
|
...Sn,
|
|
2588
2588
|
transition: `transform ${o.duration}ms ${o.easing ?? "ease-in-out"}`
|
|
2589
2589
|
} : Sn;
|
|
@@ -2830,7 +2830,7 @@ var Bn = () => () => {}, Vn = () => 0, Hn = o((e) => {
|
|
|
2830
2830
|
let v = _ ?? p.current;
|
|
2831
2831
|
return y(ct, {
|
|
2832
2832
|
...r,
|
|
2833
|
-
className: J(t, "range-tooltips"),
|
|
2833
|
+
className: J(t, "sxl-range-tooltips"),
|
|
2834
2834
|
onPointerMove: i ? d : void 0,
|
|
2835
2835
|
onPointerLeave: i ? f : void 0,
|
|
2836
2836
|
children: i ? y(cn, {
|
|
@@ -2957,12 +2957,12 @@ var Kn = o((e) => {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
};
|
|
2959
2959
|
return [
|
|
2960
|
-
["insert-bar", l.toClipBounds(t, -f)],
|
|
2961
|
-
["insert-bar-cap-start", h(r.start) ? r.start : null],
|
|
2962
|
-
["insert-bar-cap-end", h(r.end) ? r.end : null]
|
|
2960
|
+
["sxl-insert-bar", l.toClipBounds(t, -f)],
|
|
2961
|
+
["sxl-insert-bar-cap-start", h(r.start) ? r.start : null],
|
|
2962
|
+
["sxl-insert-bar-cap-end", h(r.end) ? r.end : null]
|
|
2963
2963
|
];
|
|
2964
2964
|
})(e).map(([t, i]) => i && y(ft, {
|
|
2965
|
-
className: J(t, e ? "row" : "column"),
|
|
2965
|
+
className: J(t, e ? "sxl-axis-row" : "sxl-axis-column"),
|
|
2966
2966
|
bounds: i,
|
|
2967
2967
|
style: {
|
|
2968
2968
|
pointerEvents: "none",
|
|
@@ -3197,7 +3197,7 @@ var rr = (e) => {
|
|
|
3197
3197
|
top: 0,
|
|
3198
3198
|
transform: H
|
|
3199
3199
|
}, U = {
|
|
3200
|
-
className: J("drag-handle", S),
|
|
3200
|
+
className: J("sxl-drag-handle", S),
|
|
3201
3201
|
ref: j,
|
|
3202
3202
|
onPointerDown: (e) => {
|
|
3203
3203
|
F(e) ? p(e) : I(e);
|
|
@@ -3384,7 +3384,7 @@ var sr = () => {
|
|
|
3384
3384
|
return b(v, { children: [
|
|
3385
3385
|
y(ft, r === "entire" ? {
|
|
3386
3386
|
ref: x,
|
|
3387
|
-
className: J("drag-grip", h),
|
|
3387
|
+
className: J("sxl-drag-grip", h),
|
|
3388
3388
|
...F ? { bounds: F } : { range: t },
|
|
3389
3389
|
style: {
|
|
3390
3390
|
cursor: A,
|
|
@@ -3394,7 +3394,7 @@ var sr = () => {
|
|
|
3394
3394
|
...M
|
|
3395
3395
|
} : {
|
|
3396
3396
|
ref: x,
|
|
3397
|
-
className: J("drag-grip", h),
|
|
3397
|
+
className: J("sxl-drag-grip", h),
|
|
3398
3398
|
range: t,
|
|
3399
3399
|
clipInsets: -N / 2,
|
|
3400
3400
|
style: {
|
|
@@ -3454,12 +3454,12 @@ var vr = (e, t, n, r) => {
|
|
|
3454
3454
|
if (!t) return null;
|
|
3455
3455
|
let w = x ?? t, T = x ? null : d ?? null;
|
|
3456
3456
|
return b(v, { children: [y(Gn, {
|
|
3457
|
-
className: "resizer-outline",
|
|
3457
|
+
className: "sxl-resizer-outline",
|
|
3458
3458
|
range: w,
|
|
3459
3459
|
glide: T,
|
|
3460
3460
|
...p
|
|
3461
3461
|
}), n.map((e) => y(or, {
|
|
3462
|
-
className: `resize-handle
|
|
3462
|
+
className: `sxl-resize-handle sxl-${e}`,
|
|
3463
3463
|
range: w,
|
|
3464
3464
|
glide: T,
|
|
3465
3465
|
anchor: e,
|
|
@@ -3565,7 +3565,7 @@ var Sr = (e, t, n, r) => {
|
|
|
3565
3565
|
let N = x ? wr(t, x) : null;
|
|
3566
3566
|
return b(v, { children: [
|
|
3567
3567
|
y(or, {
|
|
3568
|
-
className: "fill-handle",
|
|
3568
|
+
className: "sxl-fill-handle",
|
|
3569
3569
|
range: t,
|
|
3570
3570
|
anchor: j,
|
|
3571
3571
|
clampToView: M,
|
|
@@ -3591,12 +3591,12 @@ var Sr = (e, t, n, r) => {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
}),
|
|
3593
3593
|
x && y(Gn, {
|
|
3594
|
-
className: "fill-preview",
|
|
3594
|
+
className: "sxl-fill-preview",
|
|
3595
3595
|
range: x,
|
|
3596
3596
|
...h
|
|
3597
3597
|
}),
|
|
3598
3598
|
N && y(Gn, {
|
|
3599
|
-
className: "fill-vacated",
|
|
3599
|
+
className: "sxl-fill-vacated",
|
|
3600
3600
|
range: N,
|
|
3601
3601
|
fill: "rgba(128, 128, 128, 0.28)"
|
|
3602
3602
|
})
|
|
@@ -3614,7 +3614,7 @@ var Er = "data-cell-interactive", Dr = Object.freeze({ [Er]: "" }), Or = (e) =>
|
|
|
3614
3614
|
}, Ar = o((e) => {
|
|
3615
3615
|
let { value: t, zoom: n, bounds: r, cell: i, range: a, children: o, className: s, ...c } = e;
|
|
3616
3616
|
return y("div", {
|
|
3617
|
-
className: J(s, "cell"),
|
|
3617
|
+
className: J(s, "sxl-cell"),
|
|
3618
3618
|
...c,
|
|
3619
3619
|
children: t
|
|
3620
3620
|
});
|
|
@@ -3757,8 +3757,8 @@ var Er = "data-cell-interactive", Dr = Object.freeze({ [Er]: "" }), Or = (e) =>
|
|
|
3757
3757
|
ranges: i
|
|
3758
3758
|
}), i;
|
|
3759
3759
|
}, Rr = (e, t) => `${e}:${t}`, zr = {
|
|
3760
|
-
tiles: "
|
|
3761
|
-
gridlines: "
|
|
3760
|
+
tiles: "_tiles_1hj43_7",
|
|
3761
|
+
gridlines: "_gridlines_1hj43_32"
|
|
3762
3762
|
}, Br = o((e) => {
|
|
3763
3763
|
let { renderCell: t, cacheToken: n, getVisibleCells: r, hiddenCellAt: i, suppressCell: a, className: o, style: s } = e, c = Q(), d = c.getAnchor(), p = u(), g = f(() => `sxl-cl-${p.replace(/[^a-zA-Z0-9_-]/g, "")}`, [p]), _ = m({
|
|
3764
3764
|
token: void 0,
|
|
@@ -3829,7 +3829,7 @@ var Er = "data-cell-interactive", Dr = Object.freeze({ [Er]: "" }), Or = (e) =>
|
|
|
3829
3829
|
}));
|
|
3830
3830
|
}
|
|
3831
3831
|
if (l = y("div", {
|
|
3832
|
-
className: "tile",
|
|
3832
|
+
className: "sxl-tile",
|
|
3833
3833
|
style: { transform: `translate(${m}px, ${h}px)` },
|
|
3834
3834
|
children: g
|
|
3835
3835
|
}, `pane:${d}:tile:${e}:${n}`), r && (a.set(i, l), a.size > Kr)) {
|
|
@@ -3877,7 +3877,7 @@ var Er = "data-cell-interactive", Dr = Object.freeze({ [Er]: "" }), Or = (e) =>
|
|
|
3877
3877
|
let L = T.getDevicePixelRatio(), R = Math.round((E - C) * L) / L, z = Math.round((D - w) * L) / L;
|
|
3878
3878
|
return b(v, { children: [y(ft, {
|
|
3879
3879
|
fill: !0,
|
|
3880
|
-
className: J("tiles", zr.tiles, g, o),
|
|
3880
|
+
className: J("sxl-tiles", zr.tiles, g, o),
|
|
3881
3881
|
style: {
|
|
3882
3882
|
pointerEvents: "none",
|
|
3883
3883
|
...s,
|
|
@@ -3896,7 +3896,7 @@ Br.displayName = "CellTileDiv";
|
|
|
3896
3896
|
var Vr = o((e) => {
|
|
3897
3897
|
let { renderCell: t, cacheToken: n, getVisibleCells: r, hiddenCellAt: i, suppressCell: a, className: o, style: s, ...c } = e;
|
|
3898
3898
|
return y(ct, {
|
|
3899
|
-
className: J(o, "cells"),
|
|
3899
|
+
className: J(o, "sxl-cells"),
|
|
3900
3900
|
...c,
|
|
3901
3901
|
children: y(Br, {
|
|
3902
3902
|
renderCell: t,
|
|
@@ -3993,7 +3993,7 @@ var Hr = 8, Ur = 1 << 19, Wr = 150, Gr = 1, Kr = 512, qr = !1, Jr = (e, t, n, r)
|
|
|
3993
3993
|
if (!n) return null;
|
|
3994
3994
|
let a = e.getPaneBounds(), o = Math.ceil(a.width), s = Math.ceil(a.height), c = String($r / T.getDevicePixelRatio());
|
|
3995
3995
|
return y("svg", {
|
|
3996
|
-
className: J(t ? "horizontal" : "vertical"),
|
|
3996
|
+
className: J(t ? "sxl-horizontal" : "sxl-vertical"),
|
|
3997
3997
|
width: `${o}`,
|
|
3998
3998
|
height: `${s}`,
|
|
3999
3999
|
viewBox: `0 0 ${o} ${s}`,
|
|
@@ -4022,10 +4022,10 @@ var Hr = 8, Ur = 1 << 19, Wr = 150, Gr = 1, Kr = 512, qr = !1, Jr = (e, t, n, r)
|
|
|
4022
4022
|
]);
|
|
4023
4023
|
return h || g ? y(ct, {
|
|
4024
4024
|
...d,
|
|
4025
|
-
className: J(l, "gridlines"),
|
|
4025
|
+
className: J(l, "sxl-gridlines"),
|
|
4026
4026
|
children: b(ft, {
|
|
4027
4027
|
fill: !0,
|
|
4028
|
-
className: J("gridlines-box", zr.gridlines),
|
|
4028
|
+
className: J("sxl-gridlines-box", zr.gridlines),
|
|
4029
4029
|
style: {
|
|
4030
4030
|
pointerEvents: "none",
|
|
4031
4031
|
...u
|
|
@@ -4564,7 +4564,7 @@ var bi = {
|
|
|
4564
4564
|
transition: !1,
|
|
4565
4565
|
themeFrom: "anchor",
|
|
4566
4566
|
zIndex: V("grid"),
|
|
4567
|
-
className: "touch-input",
|
|
4567
|
+
className: "sxl-touch-input",
|
|
4568
4568
|
style: {
|
|
4569
4569
|
width: 0,
|
|
4570
4570
|
height: 0,
|
|
@@ -4573,7 +4573,7 @@ var bi = {
|
|
|
4573
4573
|
},
|
|
4574
4574
|
children: y("div", {
|
|
4575
4575
|
ref: s,
|
|
4576
|
-
className: "touch-select-grip",
|
|
4576
|
+
className: "sxl-touch-select-grip",
|
|
4577
4577
|
style: {
|
|
4578
4578
|
position: "absolute",
|
|
4579
4579
|
left: 0,
|
|
@@ -5043,7 +5043,7 @@ var bi = {
|
|
|
5043
5043
|
duration: Re.transitionDuration ?? 0,
|
|
5044
5044
|
easing: Re.transitionEasing
|
|
5045
5045
|
} : Je = Oe), e.useLayoutEffect(() => {
|
|
5046
|
-
let e = de.current?.closest(".gesture-tip");
|
|
5046
|
+
let e = de.current?.closest(".sxl-gesture-tip");
|
|
5047
5047
|
if (!e) return;
|
|
5048
5048
|
let { width: t, height: n } = e.getBoundingClientRect();
|
|
5049
5049
|
fe.current = {
|
|
@@ -5075,17 +5075,17 @@ var bi = {
|
|
|
5075
5075
|
Te.map((t, n) => y(e.Fragment, { children: Fi(Pe, t) }, `other-${n}`)),
|
|
5076
5076
|
Fi(Pe, X, ne ? we : void 0),
|
|
5077
5077
|
y(Gn, {
|
|
5078
|
-
className: "anchor",
|
|
5078
|
+
className: "sxl-anchor",
|
|
5079
5079
|
range: we,
|
|
5080
5080
|
...Fe
|
|
5081
5081
|
})
|
|
5082
5082
|
] } : { children: [Fi(Pe, X, ne ? we : void 0, "range", Ne), u && y(Gn, {
|
|
5083
|
-
className: "anchor",
|
|
5083
|
+
className: "sxl-anchor",
|
|
5084
5084
|
range: we,
|
|
5085
5085
|
...u
|
|
5086
5086
|
})] }),
|
|
5087
5087
|
!be && x && y(_r, {
|
|
5088
|
-
className: "move-grip",
|
|
5088
|
+
className: "sxl-move-grip",
|
|
5089
5089
|
range: X,
|
|
5090
5090
|
grip: "edges",
|
|
5091
5091
|
dragCursor: D,
|
|
@@ -5097,7 +5097,7 @@ var bi = {
|
|
|
5097
5097
|
...Re,
|
|
5098
5098
|
color: (n.refused ? Le : void 0) ?? Re.color
|
|
5099
5099
|
}) : Pe.border && y(Gn, {
|
|
5100
|
-
className: "move-ghost",
|
|
5100
|
+
className: "sxl-move-ghost",
|
|
5101
5101
|
range: n.to,
|
|
5102
5102
|
glide: Oe,
|
|
5103
5103
|
...Pe.border,
|
|
@@ -5195,20 +5195,20 @@ var bi = {
|
|
|
5195
5195
|
Pi.displayName = "SelectionLayer";
|
|
5196
5196
|
var Fi = (e, t, n, r = "range", i = null) => b(v, { children: [
|
|
5197
5197
|
e.fill && y(Gn, {
|
|
5198
|
-
className:
|
|
5198
|
+
className: `sxl-${r} sxl-${r}-fill`,
|
|
5199
5199
|
glide: i,
|
|
5200
5200
|
range: t,
|
|
5201
5201
|
hole: n,
|
|
5202
5202
|
...e.fill
|
|
5203
5203
|
}),
|
|
5204
5204
|
e.inner && y(Gn, {
|
|
5205
|
-
className:
|
|
5205
|
+
className: `sxl-${r} sxl-${r}-inner`,
|
|
5206
5206
|
glide: i,
|
|
5207
5207
|
range: t,
|
|
5208
5208
|
...e.inner
|
|
5209
5209
|
}),
|
|
5210
5210
|
e.border && y(Gn, {
|
|
5211
|
-
className:
|
|
5211
|
+
className: `sxl-${r} sxl-${r}-border`,
|
|
5212
5212
|
glide: i,
|
|
5213
5213
|
range: t,
|
|
5214
5214
|
...e.border
|
|
@@ -5283,7 +5283,7 @@ var Fi = (e, t, n, r = "range", i = null) => b(v, { children: [
|
|
|
5283
5283
|
children: [
|
|
5284
5284
|
(!a || k) && y(ft, {
|
|
5285
5285
|
fill: !0,
|
|
5286
|
-
className: J(g, "ranges-picker-draw"),
|
|
5286
|
+
className: J(g, "sxl-ranges-picker-draw"),
|
|
5287
5287
|
style: { touchAction: "none" },
|
|
5288
5288
|
onPointerDown: (e) => {
|
|
5289
5289
|
e.stopPropagation(), d && e.preventDefault(), R.onPointerDown(e);
|
|
@@ -5748,7 +5748,7 @@ function $i(e) {
|
|
|
5748
5748
|
}, A = typeof i == "function" ? (S ? i(S) : void 0) ?? "transparent" : i;
|
|
5749
5749
|
return y(ct, { children: C ? y(ft, {
|
|
5750
5750
|
...d,
|
|
5751
|
-
className: J(c, "editor"),
|
|
5751
|
+
className: J(c, "sxl-editor"),
|
|
5752
5752
|
bounds: C,
|
|
5753
5753
|
alignWidth: o,
|
|
5754
5754
|
keepMounted: !0,
|
|
@@ -5783,7 +5783,7 @@ function ea(e) {
|
|
|
5783
5783
|
r && t.startEdit(r, { mode: "edit" });
|
|
5784
5784
|
}, [n, t]);
|
|
5785
5785
|
return y(ct, {
|
|
5786
|
-
className: "editor-start",
|
|
5786
|
+
className: "sxl-editor-start",
|
|
5787
5787
|
onKeyDown: r,
|
|
5788
5788
|
onDoubleClick: i
|
|
5789
5789
|
});
|
|
@@ -5830,7 +5830,7 @@ function ta(e) {
|
|
|
5830
5830
|
});
|
|
5831
5831
|
}
|
|
5832
5832
|
Qi.displayName = "DefaultEditorInput", ta.displayName = "EditorDiv";
|
|
5833
|
-
var na = "header-divider", ra = "ew-resize", ia = "ns-resize", aa = "var(--sxl-color-base-100, #f5f5f5)", oa = "var(--sxl-color-primary, rgb(33, 115, 70))", sa = (e, t, n, r) => ({
|
|
5833
|
+
var na = "sxl-header-divider", ra = "ew-resize", ia = "ns-resize", aa = "var(--sxl-color-base-100, #f5f5f5)", oa = "var(--sxl-color-primary, rgb(33, 115, 70))", sa = (e, t, n, r) => ({
|
|
5834
5834
|
position: "absolute",
|
|
5835
5835
|
boxSizing: "border-box",
|
|
5836
5836
|
left: e ? t - n / 2 : "50%",
|
|
@@ -5843,7 +5843,7 @@ var na = "header-divider", ra = "ew-resize", ia = "ns-resize", aa = "var(--sxl-c
|
|
|
5843
5843
|
alignItems: "center",
|
|
5844
5844
|
justifyContent: "center"
|
|
5845
5845
|
}), ca = (e, t) => y("div", {
|
|
5846
|
-
className: "header-divider-handle",
|
|
5846
|
+
className: "sxl-header-divider-handle",
|
|
5847
5847
|
style: {
|
|
5848
5848
|
...sa(e, t, 6, 16),
|
|
5849
5849
|
pointerEvents: "none",
|
|
@@ -5853,7 +5853,7 @@ var na = "header-divider", ra = "ew-resize", ia = "ns-resize", aa = "var(--sxl-c
|
|
|
5853
5853
|
}), la = o((e) => {
|
|
5854
5854
|
let { isColumn: t, lineOffset: n, onUnhide: r } = e, [i, a] = h(!1), o = i ? aa : oa;
|
|
5855
5855
|
return y("div", {
|
|
5856
|
-
className: "header-divider-unhide",
|
|
5856
|
+
className: "sxl-header-divider-unhide",
|
|
5857
5857
|
role: "button",
|
|
5858
5858
|
style: {
|
|
5859
5859
|
...sa(t, n, 20, 12),
|
|
@@ -5898,7 +5898,7 @@ var ua = o(i((e, t) => {
|
|
|
5898
5898
|
c && (z = -2), l && (z = 2), l && (F = F / 2 + z, L = 2 * z);
|
|
5899
5899
|
let B = j || z !== 0 ? `linear-gradient(${M}, ${M})` : `linear-gradient(${E ? 180 : 90}deg, ${N}, ${M} 55%, ${M} 100%)`;
|
|
5900
5900
|
return b("div", {
|
|
5901
|
-
className: J(na, { disabled: o }, i, `index-${r}`),
|
|
5901
|
+
className: J(na, { "sxl-disabled": o }, i, `sxl-index-${r}`),
|
|
5902
5902
|
ref: t,
|
|
5903
5903
|
onPointerDown: P ? void 0 : m,
|
|
5904
5904
|
onDoubleClick: P ? void 0 : () => g?.(),
|
|
@@ -6147,7 +6147,7 @@ var pa = (e, t) => {
|
|
|
6147
6147
|
return b(v, { children: [
|
|
6148
6148
|
_,
|
|
6149
6149
|
y("div", {
|
|
6150
|
-
className: "header-freeze-grip",
|
|
6150
|
+
className: "sxl-header-freeze-grip",
|
|
6151
6151
|
...g,
|
|
6152
6152
|
style: {
|
|
6153
6153
|
position: "absolute",
|
|
@@ -6161,7 +6161,7 @@ var pa = (e, t) => {
|
|
|
6161
6161
|
}
|
|
6162
6162
|
}),
|
|
6163
6163
|
y(se, {
|
|
6164
|
-
className: "header-freeze-bar",
|
|
6164
|
+
className: "sxl-header-freeze-bar",
|
|
6165
6165
|
linePoints: u ? [
|
|
6166
6166
|
0,
|
|
6167
6167
|
0,
|
|
@@ -6206,7 +6206,7 @@ var _a = o((e) => {
|
|
|
6206
6206
|
if (!d || n) return m;
|
|
6207
6207
|
let h = l ? c.getPaneBounds().width : c.getPaneBounds().height;
|
|
6208
6208
|
return b(v, { children: [m, y("div", {
|
|
6209
|
-
className: "grid-freeze-grip",
|
|
6209
|
+
className: "sxl-grid-freeze-grip",
|
|
6210
6210
|
...p,
|
|
6211
6211
|
style: {
|
|
6212
6212
|
position: "absolute",
|
|
@@ -6434,7 +6434,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6434
6434
|
});
|
|
6435
6435
|
return y("div", {
|
|
6436
6436
|
ref: R,
|
|
6437
|
-
className: J("list-surface", _),
|
|
6437
|
+
className: J("sxl-list-surface", _),
|
|
6438
6438
|
style: {
|
|
6439
6439
|
position: "relative",
|
|
6440
6440
|
overflow: "hidden",
|
|
@@ -6510,7 +6510,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6510
6510
|
}, [r]), b = f(() => o ? { onKeyDown: o } : void 0, [o]);
|
|
6511
6511
|
return y(ja, {
|
|
6512
6512
|
ref: _,
|
|
6513
|
-
className: J("list", p),
|
|
6513
|
+
className: J("sxl-list", p),
|
|
6514
6514
|
style: m,
|
|
6515
6515
|
itemCount: n,
|
|
6516
6516
|
itemHeight: i,
|
|
@@ -6634,7 +6634,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6634
6634
|
]);
|
|
6635
6635
|
return b("div", {
|
|
6636
6636
|
ref: z,
|
|
6637
|
-
className: J("checkbox-list", T),
|
|
6637
|
+
className: J("sxl-checkbox-list", T),
|
|
6638
6638
|
style: {
|
|
6639
6639
|
display: "flex",
|
|
6640
6640
|
flexDirection: "column",
|
|
@@ -6648,7 +6648,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6648
6648
|
"aria-label": h,
|
|
6649
6649
|
title: h,
|
|
6650
6650
|
...g,
|
|
6651
|
-
className: J("select-all", g?.className),
|
|
6651
|
+
className: J("sxl-select-all", g?.className),
|
|
6652
6652
|
style: {
|
|
6653
6653
|
display: "flex",
|
|
6654
6654
|
alignItems: "center",
|
|
@@ -6792,7 +6792,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6792
6792
|
}), [k, A]);
|
|
6793
6793
|
return y(ja, {
|
|
6794
6794
|
ref: M,
|
|
6795
|
-
className: J("pick-list", g),
|
|
6795
|
+
className: J("sxl-pick-list", g),
|
|
6796
6796
|
role: "listbox",
|
|
6797
6797
|
style: {
|
|
6798
6798
|
maxHeight: o * a,
|
|
@@ -6844,7 +6844,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6844
6844
|
i,
|
|
6845
6845
|
u
|
|
6846
6846
|
]), m = b("div", {
|
|
6847
|
-
className: J(Ra, "list-search-field", d),
|
|
6847
|
+
className: J(Ra, "sxl-list-search-field", d),
|
|
6848
6848
|
children: [
|
|
6849
6849
|
o ?? y(Wa, { className: Ba }),
|
|
6850
6850
|
y("input", {
|
|
@@ -6853,7 +6853,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6853
6853
|
role: "searchbox",
|
|
6854
6854
|
autoComplete: "off",
|
|
6855
6855
|
spellCheck: !1,
|
|
6856
|
-
className: J(za, "list-search"),
|
|
6856
|
+
className: J(za, "sxl-list-search"),
|
|
6857
6857
|
value: n,
|
|
6858
6858
|
onChange: (e) => r(e.target.value),
|
|
6859
6859
|
onKeyDown: p,
|
|
@@ -6861,7 +6861,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6861
6861
|
}),
|
|
6862
6862
|
n ? y("button", {
|
|
6863
6863
|
type: "button",
|
|
6864
|
-
className: J(Va, "list-search-clear"),
|
|
6864
|
+
className: J(Va, "sxl-list-search-clear"),
|
|
6865
6865
|
"aria-label": a,
|
|
6866
6866
|
title: a,
|
|
6867
6867
|
tabIndex: -1,
|
|
@@ -6882,7 +6882,7 @@ var Da = parseInt(_.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
6882
6882
|
]
|
|
6883
6883
|
});
|
|
6884
6884
|
return c == null && l == null ? m : b("div", {
|
|
6885
|
-
className: J(Ha, "list-search-row"),
|
|
6885
|
+
className: J(Ha, "sxl-list-search-row"),
|
|
6886
6886
|
children: [
|
|
6887
6887
|
c,
|
|
6888
6888
|
m,
|