@sheetxl/react 0.6.3 → 0.6.5
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/cjs/{Cyh9Bap4TpoyCtJH.cjs → COCkgm8-fe2c7LYP.cjs} +1 -1
- package/browser/cjs/{CO3QFg229FikFVtG.cjs → DaoAGX07szjW7Na_.cjs} +1 -1
- package/browser/cjs/{D8nQoQYBjMa8aYTt.cjs → VKHWR3AWoMzuFI7k.cjs} +1 -1
- package/browser/cjs/index.cjs +9 -9
- package/browser/esm/{qB4RFwPC3QbPg_lu.mjs → MFoCOovTxqHMrS-r.mjs} +1 -1
- package/browser/esm/{BicU25h_rgZ803fI.mjs → Vb46TnWVv7cNzPMf.mjs} +1 -1
- package/browser/esm/index.mjs +751 -746
- package/browser/esm/{BjkKvf1gjemfnoHr.mjs → tWtXdQeWDT3tp47E.mjs} +1 -1
- package/node/esm/{ejU1APlFhtupMVGr.mjs → C8Okkdlpyj9V_Xym.mjs} +1 -1
- package/node/esm/index.mjs +69 -64
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import x, { memo as ce, useState as q, useRef as h, useCallback as ie, useEffect as M } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
3
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -189,8 +189,8 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
189
189
|
const e3 = ie2.getSuperSubScale();
|
|
190
190
|
q4 *= e3, M3 *= e3;
|
|
191
191
|
}
|
|
192
|
-
const F3 = { textAlign: y4, textAlignLast: y4,
|
|
193
|
-
ae2 && (F3.color = ae2.toCSS(E2));
|
|
192
|
+
const F3 = { textAlign: y4, textAlignLast: y4, ...S4, ...ie2.toCSS(E2, p2, true), fontSize: q4 * a.getDeviceScale() };
|
|
193
|
+
ye2 || (F3.background = void 0), ae2 && (F3.color = ae2.toCSS(E2));
|
|
194
194
|
const D3 = b3 + o3;
|
|
195
195
|
let V3 = ue2.top + v4.y + 0;
|
|
196
196
|
if (A3 && (V3 += f5 - q4), c5) {
|
|
@@ -233,8 +233,9 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
233
233
|
const r2 = e3.runs[0].text.replace(/\s+$/, ""), i2 = t2 === n3 - 1;
|
|
234
234
|
let a2 = _2 === l.HorizontalAlignment.Justify && (i2 || e3.runs[0].text.endsWith("\n")) ? l.HorizontalAlignment.Left : _2, s4 = 0;
|
|
235
235
|
t2 > 0 && (se2.getVertical() === l.VerticalAlignment.Distributed || se2.getVertical() === l.VerticalAlignment.Justify) && (s4 = Math.max(0, (T2 - (he2 + 3) - e3.bounds.height * n3) / (n3 - 1) * t2)), se2.getVertical() === l.VerticalAlignment.Distributed && ge2 && ge2 % 90 == 0 && ge2 % 180 != 0 && (a2 = l.HorizontalAlignment.Distributed), a2 !== l.HorizontalAlignment.Justify && a2 !== l.HorizontalAlignment.Distributed && a2 !== l.HorizontalAlignment.Fill || (o2 = { ...o2, width: c4 });
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
let d4 = de2 || I2 && (I2.repeatChars.length > 0 || I2.spacingChars.length > 0) ? o2.width : e3.bounds.width;
|
|
237
|
+
const u4 = { ...e3.bounds, y: e3.bounds.y + s4 + 0, width: d4 };
|
|
238
|
+
C2(r2, t2, u4, g3.lines[0].baseline, a2, i2, 1 === n3 ? U2 : null, ye2 && t2 > 0 ? { ...v3, style: { ...v3.style, background: void 0 } } : v3);
|
|
238
239
|
} });
|
|
239
240
|
}
|
|
240
241
|
d3.length > 0 && (Y2 = d3);
|
|
@@ -1087,7 +1088,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
|
|
|
1087
1088
|
ee2(this, null, null);
|
|
1088
1089
|
}), new k("insertNote", p2, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [M.Shift] }, description: "Add a note to the cell." }, (e3, t2) => {
|
|
1089
1090
|
((e4, t3) => {
|
|
1090
|
-
e4?.showMessage?.(Z("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", G("br", {}), G("br", {}), "Please see the ", G("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
|
|
1091
|
+
e4?.showMessage?.(Z("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", G("br", {}), G("br", {}), "Please see the ", G("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
|
|
1091
1092
|
})(f2, t2.label());
|
|
1092
1093
|
}), new R("updateComments", p2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [M.Ctrl, M.Alt] }, description: "Add a comment to the current cell.", context: () => X2 }, async function(e3, t2) {
|
|
1093
1094
|
const o2 = this, n2 = { context: t2.context(), onUpdateComments: (e4) => {
|
|
@@ -2176,7 +2177,7 @@ const Rt = (e2, t2, o2 = null) => {
|
|
|
2176
2177
|
ye2.current = true;
|
|
2177
2178
|
const e3 = Q.lazy(async () => {
|
|
2178
2179
|
try {
|
|
2179
|
-
const e4 = await import("./
|
|
2180
|
+
const e4 = await import("./C8Okkdlpyj9V_Xym.mjs");
|
|
2180
2181
|
return ye2.current = false, Ce2.current = true, R2([...k2]), e4;
|
|
2181
2182
|
} catch (e4) {
|
|
2182
2183
|
return console.warn(e4), _2.current?.(false), null;
|
|
@@ -2644,7 +2645,7 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2644
2645
|
e3 = r3.width, t3 = r3.lineHeight;
|
|
2645
2646
|
}
|
|
2646
2647
|
return { width: Math.round(e3 + 5), height: Math.round(t3 + 3) };
|
|
2647
|
-
}, [Ve2, fe2?.header.text, o2]), Le2 = Ie2 ? ze2 * He2.width : Ce2.edgeStrokeWidth, Be2 = Ee2 ? ze2 * He2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(ne2, (o2?.getColumnHeaders().getDefaultSize() ?? He2.width) + Le2 + 1), Pe2 = Math.max(se2, (o2?.getRowHeaders().getDefaultSize() ?? He2.height) + Be2 + 1), $e2 = le(/* @__PURE__ */ new Map()), We2 = le(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = oe(() => Ue2()), [Ze2, je2] = oe(false), [Ke2, Xe2] = oe(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ae(() =>
|
|
2648
|
+
}, [Ve2, fe2?.header.text, o2]), Le2 = Ie2 ? ze2 * He2.width : Ce2.edgeStrokeWidth, Be2 = Ee2 ? ze2 * He2.height : Ce2.edgeStrokeWidth, Oe2 = Math.max(ne2, (o2?.getColumnHeaders().getDefaultSize() ?? He2.width) + Le2 + 1), Pe2 = Math.max(se2, (o2?.getRowHeaders().getDefaultSize() ?? He2.height) + Be2 + 1), $e2 = le(/* @__PURE__ */ new Map()), We2 = le(null), Ue2 = () => ({ getColOffset: (e3) => o2.getColumnHeaders().findOffset(e3), getColIndex: (e3) => o2.getColumnHeaders().findIndex(e3), getRowOffset: (e3) => o2.getRowHeaders().findOffset(e3), getRowIndex: (e3) => o2.getRowHeaders().findIndex(e3) }), [_e2, Ge2] = oe(() => Ue2()), [Ze2, je2] = oe(false), [Ke2, Xe2] = oe(null), Ye2 = true, Je2 = fe2.selection?.strokeFill, Qe2 = ae(() => Kt2.current, []), [tt2, ot2] = oe(), nt2 = S((e3) => {
|
|
2648
2649
|
ot2(e3), o2 && o2.getView() && o2.getView().setTopLeft(e3 ? { left: e3.left, top: e3.top } : null), f2?.(e3);
|
|
2649
2650
|
}, [o2, f2]), lt2 = le(null);
|
|
2650
2651
|
re(() => {
|
|
@@ -2694,22 +2695,22 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2694
2695
|
const e3 = o2.getEntireRange();
|
|
2695
2696
|
Ne2({ height: e3.getRowCount(), width: e3.getColumnCount() }), Ge2(Ue2());
|
|
2696
2697
|
}, onStyleChange: () => {
|
|
2697
|
-
|
|
2698
|
+
Xt2();
|
|
2698
2699
|
}, onMovablesChange: () => {
|
|
2699
2700
|
}, onInvalidated: () => {
|
|
2700
|
-
|
|
2701
|
+
Xt2();
|
|
2701
2702
|
} }), Ct(o2, { onRequestScrollIntoView: async (e3, t3) => {
|
|
2702
2703
|
if (!t3) return;
|
|
2703
2704
|
const o3 = { colIndex: t3?.coords.colStart, rowIndex: t3?.coords.rowStart };
|
|
2704
2705
|
return await ke2.current?.scrollCellCoordsIntoView(o3, t3?.scroll), true;
|
|
2705
|
-
}, onRequestFocus: () => K.whenFocus(
|
|
2706
|
-
const Gt2 = te(() => {
|
|
2706
|
+
}, onRequestFocus: () => K.whenFocus(Kt2.current) }, uo);
|
|
2707
|
+
const Gt2 = le(false), Zt2 = te(() => {
|
|
2707
2708
|
const e3 = (e4, t4) => {
|
|
2708
2709
|
Nt2.current = true, Vt2([(l3) => {
|
|
2709
2710
|
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: 0, rowEnd: Ve2.height, colStart: e4, colEnd: e4 }))) return;
|
|
2710
2711
|
const r3 = l3.getLayout(), i2 = Math.max(0, r3.getColOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.x + a2.width, r3.getColOffset(e4 + 1)), d2 = l3.getAnchor();
|
|
2711
2712
|
if (null !== t4 && (d2 === X.Left || d2 === X.Center || d2 === X.Right)) {
|
|
2712
|
-
const e5 = K.roundAccurately(t4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(t4 / ze2), 2).toFixed(2), l4 = "Width: " + (t4 ? n3 + " (" + e5 + " pixels)" : "Hidden"), r4 =
|
|
2713
|
+
const e5 = K.roundAccurately(t4 * K.getDPI(), 0), n3 = K.roundAccurately(o2?.getColumnWidthAsFontUnit(t4 / ze2), 2).toFixed(2), l4 = "Width: " + (t4 ? n3 + " (" + e5 + " pixels)" : "Hidden"), r4 = yo2.current.getGridElement().getRelativePointFromClient(0, 0), d3 = 0 - r4.y, c4 = 0 - r4.y + Be2, g4 = { x: i2 - (r4.x - a2.x), y: d3, width: s3 - i2, height: c4 - d3 };
|
|
2713
2714
|
requestAnimationFrame(() => {
|
|
2714
2715
|
Nt2.current && ge2?.({ anchor: g4, display: l4 });
|
|
2715
2716
|
});
|
|
@@ -2720,23 +2721,25 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2720
2721
|
};
|
|
2721
2722
|
let t3 = null;
|
|
2722
2723
|
return { onResizeHeadersStart: (n3, l3, r3) => {
|
|
2723
|
-
t3 = o2.beginCommit(r3), e3(n3, l3);
|
|
2724
|
+
t3 = o2.beginCommit(r3), Gt2.current = false, e3(n3, l3);
|
|
2724
2725
|
}, onResizeHeaders: (t4, o3, n3) => {
|
|
2725
|
-
e3(t4, o3);
|
|
2726
|
+
Gt2.current = false, e3(t4, o3);
|
|
2726
2727
|
}, onResizeHeadersDown: (t4, o3) => {
|
|
2727
|
-
|
|
2728
|
+
Gt2.current = true, setTimeout(() => {
|
|
2729
|
+
Gt2.current && e3(t4, o3);
|
|
2730
|
+
}, 280);
|
|
2728
2731
|
}, onResizeHeadersEnd: (e4, o3, n3) => {
|
|
2729
|
-
t3?.commit({ description: n3 }), t3 = null, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2732
|
+
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2730
2733
|
}, onResizeHeadersUp: (e4) => {
|
|
2731
|
-
requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2734
|
+
Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2732
2735
|
}, ...c2 };
|
|
2733
|
-
}, [o2, c2, Be2, It2]),
|
|
2736
|
+
}, [o2, c2, Be2, It2]), jt2 = te(() => {
|
|
2734
2737
|
const e3 = (e4, t4) => {
|
|
2735
2738
|
Nt2.current = true, Vt2([(l3) => {
|
|
2736
2739
|
if (!l3.toClipBounds(l3.getRangeCoordsBounds({ rowStart: e4, rowEnd: e4, colStart: 0, colEnd: Ve2.width }))) return;
|
|
2737
2740
|
const r3 = l3.getLayout(), i2 = Math.max(0, r3.getRowOffset(e4)), a2 = l3.getBounds(), s3 = Math.min(a2.y + a2.height, r3.getRowOffset(e4 + 1)), d2 = l3.getAnchor();
|
|
2738
2741
|
if (null !== t4 && (d2 === X.Top || d2 === X.Center || d2 === X.Bottom)) {
|
|
2739
|
-
const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 =
|
|
2742
|
+
const e5 = Math.floor(10 * K.getDPI()) / 10, n3 = K.roundAccurately(t4 * e5, 0), l4 = K.roundAccurately(n3 / ze2 / (o2?.getRowHeaders().getScaleFactor() * K.getDPI()), 2).toFixed(2), r4 = "Height: " + (t4 ? l4 + " (" + n3 + " pixels)" : "Hidden"), d3 = qo2.current.getGridElement().getRelativePointFromClient(0, 0), c4 = 0 - d3.x, g4 = 0 - d3.x + Le2, u4 = { x: c4, y: i2 - (d3.y - a2.y), width: g4 - c4, height: s3 - i2 };
|
|
2740
2743
|
requestAnimationFrame(() => {
|
|
2741
2744
|
Nt2.current && ue2?.({ anchor: u4, display: r4 });
|
|
2742
2745
|
});
|
|
@@ -2747,17 +2750,19 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2747
2750
|
};
|
|
2748
2751
|
let t3 = null;
|
|
2749
2752
|
return { onResizeHeadersStart: (n3, l3, r3) => {
|
|
2750
|
-
t3 = o2.beginCommit(r3), e3(n3, l3);
|
|
2753
|
+
t3 = o2.beginCommit(r3), Gt2.current = false, e3(n3, l3);
|
|
2751
2754
|
}, onResizeHeaders: (t4, o3, n3) => {
|
|
2752
|
-
e3(t4, o3);
|
|
2755
|
+
Gt2.current = false, e3(t4, o3);
|
|
2753
2756
|
}, onResizeHeadersDown: (t4, o3) => {
|
|
2754
|
-
|
|
2757
|
+
Gt2.current = true, setTimeout(() => {
|
|
2758
|
+
Gt2.current && e3(t4, o3);
|
|
2759
|
+
}, 280);
|
|
2755
2760
|
}, onResizeHeadersEnd: (e4, o3, n3) => {
|
|
2756
|
-
t3?.commit({ description: n3 }), t3 = null, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2761
|
+
t3?.commit({ description: n3 }), t3 = null, Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2757
2762
|
}, onResizeHeadersUp: (e4) => {
|
|
2758
|
-
requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2763
|
+
Gt2.current = false, requestAnimationFrame(() => he2?.()), Nt2.current = false, Vt2(null);
|
|
2759
2764
|
}, ...u2 };
|
|
2760
|
-
}, [o2, u2, Le2]),
|
|
2765
|
+
}, [o2, u2, Le2]), Kt2 = b(t2, () => {
|
|
2761
2766
|
const e3 = (e4) => {
|
|
2762
2767
|
o2?.getView() && o2.getView().selectMovables([]), We2.current = null, ke2?.current?.focus(e4);
|
|
2763
2768
|
}, t3 = async (e4 = null) => {
|
|
@@ -2771,31 +2776,31 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2771
2776
|
let r3 = $e2.current?.get(l3);
|
|
2772
2777
|
return r3?.current ? (await r3.current.focusMovable(e4), true) : (We2.current = { movable: e4, anchor: l3 }, true);
|
|
2773
2778
|
};
|
|
2774
|
-
return { getGridElement: () => ke2.current, getRowHeaderElement: () =>
|
|
2779
|
+
return { getGridElement: () => ke2.current, getRowHeaderElement: () => qo2.current, getColumnHeaderElement: () => yo2.current, rowHeaderHeight: () => Be2, colHeaderWidth: () => Le2, startEdit: ht2, submitEdit: () => {
|
|
2775
2780
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, submit: true } });
|
|
2776
2781
|
}, cancelEdit: () => {
|
|
2777
2782
|
gt2.setMode((e4) => "edit" !== e4?.key ? e4 : { key: "edit", args: { stateAndCoords: null, cancel: true } });
|
|
2778
2783
|
}, isEditing: null !== Ke2, focus: (n3) => {
|
|
2779
2784
|
o2?.getView().getMovableSelection().length > 0 && t3() || e3(n3);
|
|
2780
|
-
}, focusSheet: e3, focusMovable: t3, contains: (e4) => ke2?.current?.contains?.(e4), invalidate:
|
|
2781
|
-
}, [o2]),
|
|
2785
|
+
}, focusSheet: e3, focusMovable: t3, contains: (e4) => ke2?.current?.contains?.(e4), invalidate: Xt2, isSheetElement: () => true, getSheet: () => o2 };
|
|
2786
|
+
}, [o2]), Xt2 = ae((e3) => {
|
|
2782
2787
|
me2.current || (ke2?.current?.invalidate(e3), _2?.());
|
|
2783
2788
|
}, []);
|
|
2784
2789
|
re(() => {
|
|
2785
|
-
|
|
2790
|
+
Xt2();
|
|
2786
2791
|
}, [fe2]);
|
|
2787
|
-
const
|
|
2788
|
-
let
|
|
2789
|
-
Ee2 && Ie2 && (
|
|
2792
|
+
const Yt2 = ft2 ? Se2.edgeStrokeFill : Ce2.fill, Jt2 = ft2 ? be2.fill : "function" == typeof fe2.headerHover ? fe2.headerHover(Ce2)?.fill : Ce2.fill, Qt2 = te(() => R2 ? G("div", { className: Me("sheetxl-viewport-overlay", qt), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: R2 }) : G(j, {}), [R2]);
|
|
2793
|
+
let eo2 = null;
|
|
2794
|
+
Ee2 && Ie2 && (eo2 = Z("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${Be2}px`, width: `${Le2}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (e3) => {
|
|
2790
2795
|
let t3 = !e3.ctrlKey;
|
|
2791
2796
|
pt2?.getCommand("selectAll")?.execute(!t3 || 0 !== e3.button), e3.nativeEvent.which === N.Right ? r2?.({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: -1, colIndex: -1 }) : ke2.current?.focus();
|
|
2792
|
-
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${
|
|
2793
|
-
const
|
|
2794
|
-
}, []),
|
|
2797
|
+
}, children: [G("div", { style: { height: Be2 - 5 + "px", width: Be2 - 5 + "px", clipPath: `path('M${Be2 - 5} 0 L0 ${Be2 - 5} L${Be2 - 5} ${Be2 - 5} L${Be2 - 5} 0 Z')`, borderRight: `2px solid ${Yt2}`, borderBottom: `2px solid ${Yt2}`, background: `${Jt2}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), G("div", { style: { position: "absolute", height: `${Be2}px`, width: `${Le2}px`, boxSizing: "border-box", borderRight: `solid 1px ${Ce2.strokeFill}`, borderBottom: `solid 1px ${Ce2.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
|
|
2798
|
+
const no2 = S(({ _left: e3, _top: t3 }) => {
|
|
2799
|
+
}, []), lo2 = S((e3) => {
|
|
2795
2800
|
if (!r2) return;
|
|
2796
2801
|
const t3 = ke2.current.getViewFromClient(e3.clientX, e3.clientY)?.getCellCoordsFromClient(e3.clientX, e3.clientY);
|
|
2797
2802
|
t3 && (r2({ originalEvent: e3, clientX: e3.clientX, clientY: e3.clientY, rowIndex: t3.rowIndex, colIndex: t3.colIndex }), e3.stopPropagation(), e3.preventDefault());
|
|
2798
|
-
}, [r2]),
|
|
2803
|
+
}, [r2]), ro2 = S((e3) => {
|
|
2799
2804
|
if (!(!e3.shiftKey && (e3.ctrlKey || e3.metaKey))) return;
|
|
2800
2805
|
const { deltaY: t3 } = e3;
|
|
2801
2806
|
return t3 > 0 ? pt2.getCommand("sheetZoomOut")?.execute() : t3 < 0 && pt2.getCommand("sheetZoomIn")?.execute(), 0 === t3;
|
|
@@ -2803,9 +2808,9 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2803
2808
|
re(() => {
|
|
2804
2809
|
Bt2(null), Ot2.current = null, Nt2.current = false, Vt2(null);
|
|
2805
2810
|
const e3 = o2?.getView().getTopLeft();
|
|
2806
|
-
|
|
2811
|
+
no2(e3), ke2.current?.scrollTo(e3), it2(e3), Ae2(o2.getView()), ct2(st2(o2.getView().getFreezePanes())), Ge2(Ue2()), _2();
|
|
2807
2812
|
}, [o2?.getView()]);
|
|
2808
|
-
const
|
|
2813
|
+
const io2 = S((e3) => {
|
|
2809
2814
|
const t3 = e3.getVisibleRangeCoords();
|
|
2810
2815
|
if (!t3) return null;
|
|
2811
2816
|
const n3 = [];
|
|
@@ -2826,15 +2831,15 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2826
2831
|
const e3 = [];
|
|
2827
2832
|
y2 && e3.push(...y2), It2 && e3.push(...It2), K.isEqualArrays(e3, Ot2.current) || (Ot2.current = e3, Bt2(e3));
|
|
2828
2833
|
}, [y2, It2, fe2]);
|
|
2829
|
-
const
|
|
2834
|
+
const mo2 = te(() => ({ style: { boxShadow: `0.5px 0.5px 0px 0px ${n2?.body?.fill}` }, pathProps: { stroke: n2?.body?.text?.fill ?? "black" } }), [fe2?.header?.edgeStrokeFill]), po2 = S((e3) => {
|
|
2830
2835
|
e3.isDefaultPrevented() || e3.isPropagationStopped() || (We2.current = null, o2?.getView().getMovableSelection().length > 0 && o2.getView().selectMovables([]));
|
|
2831
|
-
}, [o2]),
|
|
2836
|
+
}, [o2]), fo2 = te(() => {
|
|
2832
2837
|
const e3 = gt2.getMode();
|
|
2833
2838
|
return "cut" === e3?.key || "copy" === e3?.key;
|
|
2834
|
-
}, [gt2]),
|
|
2839
|
+
}, [gt2]), wo2 = S(async (e3) => {
|
|
2835
2840
|
const t3 = gt2.getMode();
|
|
2836
|
-
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter &&
|
|
2837
|
-
}, [pt2, gt2]),
|
|
2841
|
+
return e3.keyCode === x.Escape && t3 ? (e3.preventDefault(), void gt2.setMode(null)) : e3.keyCode === x.Enter && fo2 ? (e3.preventDefault(), await pt2?.getCommand("paste")?.execute(), void gt2.setMode(null)) : void pt2?.dispatchToFocusedCommand(e3);
|
|
2842
|
+
}, [pt2, gt2]), qo2 = le(null), vo2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${Le2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Le2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2" }, children: G(Mt, { ref: qo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Top], oppositeSize: Le2, containerWidth: Le2, containerHeight: Pe2, sheetHeader: o2.getRowHeaders(), gridStyle: we2, verticalPadding: Math.max(0, Math.floor(o2.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: Wt2, onSheetContextMenu: r2, tabIndex: -1, style: { position: "relative", flex: "0", top: `${Be2 + 1}px`, width: `${Le2 + Ce2.edgeStrokeWidth}px`, minWidth: `${Le2 + Ce2.edgeStrokeWidth}px`, borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, height: `calc(100% - ${Be2}px)`, boxSizing: "border-box", zIndex: "2", ...jt2?.style }, ...jt2 }) }), [Le2, Be2, Pe2, o2, Wt2, dt2?.[X.Top], fe2, Ye2, r2, Ce2.fill, u2]), yo2 = le(null), Co2 = te(() => G("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: G(Mt, { ref: yo2, sheetElement: Kt2.current, gridRef: ke2, freezeStart: dt2?.[X.Left], oppositeSize: Be2, containerWidth: Oe2, containerHeight: Be2, sheetHeader: o2.getColumnHeaders(), gridStyle: we2, scrollPoint: Pt2, onSheetContextMenu: r2, ...Zt2, style: { ...Zt2?.style, position: "relative", left: "0px", width: "100%", height: `${Be2 + Ce2.edgeStrokeWidth}px`, minHeight: `${Be2 + Ce2.edgeStrokeWidth}px`, borderBottom: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [Be2, Oe2, o2, Pt2, dt2?.[X.Left], fe2, Ce2.fill, Ye2, r2, c2]), bo2 = S((e3) => {
|
|
2838
2843
|
const { value: t3, key: n3, ...l3 } = e3;
|
|
2839
2844
|
let r3 = t3, i2 = Ke2;
|
|
2840
2845
|
if (!i2 || i2.colIndex === e3.coords.colIndex && i2.rowIndex === e3.coords.rowIndex || (i2 = null), !r3) {
|
|
@@ -2854,12 +2859,12 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2854
2859
|
}), i2 && i2.colIndex === e3.range.colStart && i2.rowIndex === e3.range.rowStart && (r3 = r3.createTemporaryCell({ value: null }));
|
|
2855
2860
|
const s3 = o2.getStyles();
|
|
2856
2861
|
return ce(et, { ...l3, key: n3, bodyStyle: ve2, docTheme: s3.getTheme(), normalStyle: s3.getNormal(), showFormulas: Te2.isShowFormulas(), showZeros: Te2.isShowZeros(), onLinkMouseDown: a2, ...$2, value: r3 });
|
|
2857
|
-
}, [o2, _e2, ve2, Ke2, Te2?.isShowFormulas(), Te2.isShowZeros()]),
|
|
2862
|
+
}, [o2, _e2, ve2, Ke2, Te2?.isShowFormulas(), Te2.isShowZeros()]), So2 = ae((e3, t3) => {
|
|
2858
2863
|
const { key: n3, ...l3 } = e3;
|
|
2859
|
-
return [G(Tt, { ref: t3, getVisibleCells:
|
|
2860
|
-
|
|
2864
|
+
return [G(Tt, { ref: t3, getVisibleCells: io2, sheet: o2, gridStyle: fe2, ...l3 }, `border-${n3}`), G(ao, { ref: t3, sheet: o2, commands: pt2, ...l3 }, `table-${n3}`), G(so, { ref: t3, sheet: o2, ...l3 }, `spill-${n3}`), G(_t, { ref: t3, sheet: o2, commands: pt2, notifier: I2, onShowTooltip: de2, onCloseTooltip: he2, gridStyle: fe2, gridRef: ke2, editingCoords: Ke2, isActive: Ye2, ...l3 }, `selection-${n3}`), G(Ht, { ref: t3, sheet: o2, commands: pt2, gridStyle: fe2, element: Qe2, notifier: I2, ...l3 }, `copy-paste-${n3}`), G(to, { ref: t3, sheet: o2, commands: pt2, target: ut2, notifier: I2, renderMovable: k2, movableProps: { onUnFocus: () => {
|
|
2865
|
+
Kt2.current.focus();
|
|
2861
2866
|
} }, ...l3 }, `movable-${n3}`), G(oo, { ref: t3, sheet: o2, commands: pt2, notifier: I2, gridStyle: fe2, getCellEditor: T2, showProtectedError: Dt2, setEditingCoords: Xe2, ...l3 }, `editor-${n3}`)];
|
|
2862
|
-
}, [o2, ke2.current, fe2, T2, pt2, I2]), [
|
|
2867
|
+
}, [o2, ke2.current, fe2, T2, pt2, I2]), [xo2, ko2] = oe(false), Ro2 = te(() => {
|
|
2863
2868
|
if (0 === Oe2 || 0 === Pe2) return null;
|
|
2864
2869
|
const e3 = o2.getStyles().getNormal(), t3 = e3.getFont(), n3 = e3.getFill(), l3 = e3.getBorder(), r3 = e3.getFill().getType() === m.Type.None;
|
|
2865
2870
|
let i2 = De2, a2 = De2;
|
|
@@ -2867,43 +2872,43 @@ const eo = ee(ne((e2, t2) => {
|
|
|
2867
2872
|
a2 = s3(l3.getBottom(), a2, !l3.getBottom().isNone()), a2 = s3(l3.getTop(), a2, !l3.getTop().isNone()), i2 = s3(l3.getRight(), i2, !l3.getRight().isNone()), i2 = s3(l3.getLeft(), i2, !l3.getLeft().isNone());
|
|
2868
2873
|
let d2 = Te2?.getGridLineColor()?.toRGBA(ve2.darkMode).toString() ?? ve2.strokeFill;
|
|
2869
2874
|
return r3 || (a2 = s3(l3.getBottom(), a2, true), a2 = s3(l3.getTop(), a2, true), i2 = s3(l3.getRight(), i2, true), i2 = s3(l3.getLeft(), i2, true)), G(qe, { className: "sheetxl-sheet-primary", style: { ...co, ...n3.toCSS(ve2.darkMode), ...t3.toCSS(ve2.darkMode, ze2), "--sxl-app-color-background": ve2.fill, "--sxl-app-color-shadow": fe2.colorShadow, "--sxl-app-color-grey": fe2.colorGrey, "--sxl-app-color-button-fill": ye2.fill, "--sxl-app-color-button-text": ye2.text?.fill, "--sxl-app-color-button-border": ye2.edgeStrokeFill, "--sxl-app-color-primary-dark": fe2.selection.strokeFill }, ref: ke2, zoom: ze2, ...P2, onFirstRender: (e4) => {
|
|
2870
|
-
|
|
2871
|
-
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps:
|
|
2875
|
+
ko2(true), P2?.onFirstRender?.(e4), pt2?.activate();
|
|
2876
|
+
}, showGridLines: Fe2, gridLineColor: d2, gridLineColumnsProps: i2, gridLineRowsProps: a2, freezeLeft: dt2?.[X.Left], freezeLeftProps: mo2, freezeTop: dt2?.[X.Top], freezeTopProps: mo2, width: Oe2, height: Pe2, columnCount: Ve2.width, rowCount: Ve2.height, cursor: Et2 ?? At2 ?? "cell", clipCells: true, layout: _e2, cellRenderer: bo2, overlayRenderer: So2, getCellCoordsAsRangeCoords: at2, getVisibleCells: io2, onWheelScroll: ro2, onPointerDown: po2, onKeyDown: wo2, onViewportChange: nt2, onImmediateScroll: no2, scrollPoint: rt2, stageProps: { onFocus: () => {
|
|
2872
2877
|
pt2?.activate();
|
|
2873
2878
|
} }, overlays: Lt2 });
|
|
2874
2879
|
}, [U2]);
|
|
2875
2880
|
re(() => {
|
|
2876
2881
|
me2.current || _2();
|
|
2877
2882
|
}, [_e2, dt2, ze2, pt2, rt2?.left, rt2?.top, ve2, P2, Oe2, Pe2, Et2, Lt2, Ye2, At2]);
|
|
2878
|
-
let
|
|
2879
|
-
h2 || (
|
|
2880
|
-
const
|
|
2883
|
+
let Mo2 = { flex: "1 1 100%", display: "flex", alignContent: "stretch", position: "relative" };
|
|
2884
|
+
h2 || (Mo2 = { ...Mo2, ...E2 });
|
|
2885
|
+
const To2 = te(() => {
|
|
2881
2886
|
const e3 = o2.getStyles().getTheme(), t3 = e3.getColorScheme(), n3 = e3.getFontScheme();
|
|
2882
2887
|
return { "--sxl-doc-color-dk1": t3.getDk1().toCSS(ve2.darkMode), "--sxl-doc-color-dk2": t3.getDk2().toCSS(ve2.darkMode), "--sxl-doc-color-lt1": t3.getLt1().toCSS(ve2.darkMode), "--sxl-doc-color-lt2": t3.getLt2().toCSS(ve2.darkMode), "--sxl-doc-color-accent1": t3.getAccent1().toCSS(ve2.darkMode), "--sxl-doc-color-accent2": t3.getAccent2().toCSS(ve2.darkMode), "--sxl-doc-color-accent3": t3.getAccent3().toCSS(ve2.darkMode), "--sxl-doc-color-accent4": t3.getAccent4().toCSS(ve2.darkMode), "--sxl-doc-color-accent5": t3.getAccent5().toCSS(ve2.darkMode), "--sxl-doc-color-accent6": t3.getAccent6().toCSS(ve2.darkMode), "--sxl-doc-color-hlink": t3.getHlink().toCSS(ve2.darkMode), "--sxl-doc-color-fol-hlink": t3.getFolHlink().toCSS(ve2.darkMode), "--sxl-doc-font-major": n3.getMajorFont(), "--sxl-doc-font-minor": n3.getMinorFont() };
|
|
2883
2888
|
}, [o2.getStyles().getTheme()]);
|
|
2884
|
-
let
|
|
2885
|
-
|
|
2889
|
+
let Ao2 = G("div", { style: Mo2, onTouchStart: () => {
|
|
2890
|
+
Do2();
|
|
2886
2891
|
}, onFocus: (e3) => {
|
|
2887
2892
|
je2(true), A2?.(e3);
|
|
2888
2893
|
}, onBlur: (e3) => {
|
|
2889
2894
|
je2(false), F2?.(e3);
|
|
2890
|
-
}, ref:
|
|
2895
|
+
}, ref: Kt2, ...W2, children: G("div", { className: Me("sheetxl-sheet", wt), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...To2 }, children: Z("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [eo2, vo2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [Co2, Z("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${Ce2.edgeStrokeWidth}px ${Ce2.edgeStrokeFill}`, backgroundColor: ve2.fill }, ref: ee2, onContextMenu: lo2, children: [Ro2, Qt2, G(yt, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: fe2?.selection?.strokeFill, colorCredits: fe2?.body?.text?.fill })] })] })] }) }) });
|
|
2891
2896
|
if (h2) {
|
|
2892
2897
|
const e3 = (e4) => G(kt, { ...e4, sheet: o2 });
|
|
2893
|
-
|
|
2898
|
+
Ao2 = G(O, { style: { flex: "1 1 100%", overflow: "hidden", background: `${Ce2.fill}`, minHeight: 2 * He2.height, minWidth: 2 * He2.width, ...E2 }, viewport: tt2, touchElement: ke2.current?.stage, disableTouch: Rt2, onScrollViewport: (e4) => {
|
|
2894
2899
|
ke2.current?.scrollTo(e4);
|
|
2895
|
-
}, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children:
|
|
2900
|
+
}, createHorizontalScrollbar: e3, createVerticalScrollbar: e3, ...p2, children: Ao2 });
|
|
2896
2901
|
}
|
|
2897
2902
|
re(() => {
|
|
2898
|
-
me2.current = false, _2?.(), Ze2 &&
|
|
2903
|
+
me2.current = false, _2?.(), Ze2 && Kt2.current?.focus();
|
|
2899
2904
|
}, [o2]);
|
|
2900
|
-
const [
|
|
2901
|
-
|
|
2902
|
-
}, [
|
|
2905
|
+
const [zo2, Fo2] = oe(false), Do2 = S(() => {
|
|
2906
|
+
zo2 || Fo2(true);
|
|
2907
|
+
}, [zo2]);
|
|
2903
2908
|
return re(() => {
|
|
2904
|
-
if (
|
|
2909
|
+
if (xo2) return "function" == typeof M2 && M2(), "touch" === C.detectIt().primaryInput && Do2(), () => {
|
|
2905
2910
|
};
|
|
2906
|
-
}, [M2,
|
|
2911
|
+
}, [M2, xo2, zo2]), Ao2;
|
|
2907
2912
|
}));
|
|
2908
2913
|
mo.displayName = "SheetElement";
|
|
2909
2914
|
const po = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), fo = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1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kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", wo = ee(ne((e2, t2) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/react",
|
|
3
3
|
"description": "React - React components needed to build advanced grid and spreadsheet UIs.",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.5",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"@dnd-kit/sortable": "^10.0.0",
|
|
38
38
|
"@dnd-kit/utilities": "^3.2.2",
|
|
39
39
|
"@monaco-editor/react": "^4.6.0",
|
|
40
|
-
"@sheetxl/utils": "^0.6.
|
|
41
|
-
"@sheetxl/utils-react": "^0.6.
|
|
42
|
-
"@sheetxl/grid-react": "^0.6.
|
|
43
|
-
"@sheetxl/sdk": "^0.6.
|
|
40
|
+
"@sheetxl/utils": "^0.6.5",
|
|
41
|
+
"@sheetxl/utils-react": "^0.6.5",
|
|
42
|
+
"@sheetxl/grid-react": "^0.6.5",
|
|
43
|
+
"@sheetxl/sdk": "^0.6.5",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"monaco-editor-auto-typings": "^0.4.6",
|
|
46
46
|
"react-merge-refs": "^3.0.2",
|