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.js
CHANGED
|
@@ -2580,6 +2580,34 @@ function SheetGrid({
|
|
|
2580
2580
|
},
|
|
2581
2581
|
title: c.error || "",
|
|
2582
2582
|
children: [
|
|
2583
|
+
!readOnly && /* @__PURE__ */ jsxs12(Fragment8, { children: [
|
|
2584
|
+
/* @__PURE__ */ jsx13(
|
|
2585
|
+
"span",
|
|
2586
|
+
{
|
|
2587
|
+
className: "shg-resize-col shg-resize-in-cell",
|
|
2588
|
+
onClick: (e) => e.stopPropagation(),
|
|
2589
|
+
onMouseDown: (e) => startResize(
|
|
2590
|
+
e,
|
|
2591
|
+
"col",
|
|
2592
|
+
col.id,
|
|
2593
|
+
colWidth(col) || e.currentTarget.closest("td").offsetWidth
|
|
2594
|
+
)
|
|
2595
|
+
}
|
|
2596
|
+
),
|
|
2597
|
+
/* @__PURE__ */ jsx13(
|
|
2598
|
+
"span",
|
|
2599
|
+
{
|
|
2600
|
+
className: "shg-resize-row shg-resize-in-cell",
|
|
2601
|
+
onClick: (e) => e.stopPropagation(),
|
|
2602
|
+
onMouseDown: (e) => startResize(
|
|
2603
|
+
e,
|
|
2604
|
+
"row",
|
|
2605
|
+
row.id,
|
|
2606
|
+
rowHeight(row) || e.currentTarget.closest("tr").offsetHeight
|
|
2607
|
+
)
|
|
2608
|
+
}
|
|
2609
|
+
)
|
|
2610
|
+
] }),
|
|
2583
2611
|
peer && /* @__PURE__ */ jsx13("span", { className: "shg-peer-flag", style: { background: peer.color }, children: peer.name }),
|
|
2584
2612
|
isEditing ? renderEditor(col) : /* @__PURE__ */ jsx13(
|
|
2585
2613
|
"div",
|