reifyui 0.6.1 → 0.6.2
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/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sheet/SheetGrid.jsx +16 -0
- package/styles/sheet.css +4 -1
package/dist/index.cjs
CHANGED
|
@@ -2795,6 +2795,34 @@ function SheetGrid({
|
|
|
2795
2795
|
},
|
|
2796
2796
|
title: c.error || "",
|
|
2797
2797
|
children: [
|
|
2798
|
+
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
|
2799
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2800
|
+
"span",
|
|
2801
|
+
{
|
|
2802
|
+
className: "shg-resize-col shg-resize-in-cell",
|
|
2803
|
+
onClick: (e) => e.stopPropagation(),
|
|
2804
|
+
onMouseDown: (e) => startResize(
|
|
2805
|
+
e,
|
|
2806
|
+
"col",
|
|
2807
|
+
col.id,
|
|
2808
|
+
colWidth(col) || e.currentTarget.closest("td").offsetWidth
|
|
2809
|
+
)
|
|
2810
|
+
}
|
|
2811
|
+
),
|
|
2812
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2813
|
+
"span",
|
|
2814
|
+
{
|
|
2815
|
+
className: "shg-resize-row shg-resize-in-cell",
|
|
2816
|
+
onClick: (e) => e.stopPropagation(),
|
|
2817
|
+
onMouseDown: (e) => startResize(
|
|
2818
|
+
e,
|
|
2819
|
+
"row",
|
|
2820
|
+
row.id,
|
|
2821
|
+
rowHeight(row) || e.currentTarget.closest("tr").offsetHeight
|
|
2822
|
+
)
|
|
2823
|
+
}
|
|
2824
|
+
)
|
|
2825
|
+
] }),
|
|
2798
2826
|
peer && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "shg-peer-flag", style: { background: peer.color }, children: peer.name }),
|
|
2799
2827
|
isEditing ? renderEditor(col) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2800
2828
|
"div",
|