@xcelsior/ui-spreadsheets 1.1.8 → 1.1.9
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.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/SpreadsheetCell.tsx +3 -3
- package/src/components/SpreadsheetHeader.tsx +1 -1
- package/src/types.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -377,7 +377,7 @@ var SpreadsheetCell = ({
|
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
379
|
!isInSelection && !isFocused && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-0.5 shrink-0", children: [
|
|
380
|
-
onHighlight && /* @__PURE__ */ jsx(
|
|
380
|
+
column.highlightable !== false && onHighlight && /* @__PURE__ */ jsx(
|
|
381
381
|
"button",
|
|
382
382
|
{
|
|
383
383
|
type: "button",
|
|
@@ -398,7 +398,7 @@ var SpreadsheetCell = ({
|
|
|
398
398
|
)
|
|
399
399
|
}
|
|
400
400
|
),
|
|
401
|
-
hasComments && onViewComments ? /* @__PURE__ */ jsxs(
|
|
401
|
+
column.commentable !== false && hasComments && onViewComments ? /* @__PURE__ */ jsxs(
|
|
402
402
|
"button",
|
|
403
403
|
{
|
|
404
404
|
type: "button",
|
|
@@ -413,7 +413,7 @@ var SpreadsheetCell = ({
|
|
|
413
413
|
unresolvedCommentCount > 0 && /* @__PURE__ */ jsx("span", { className: "text-[9px] font-medium text-amber-600", children: unresolvedCommentCount > 99 ? "99+" : unresolvedCommentCount })
|
|
414
414
|
]
|
|
415
415
|
}
|
|
416
|
-
) : onAddComment ? /* @__PURE__ */ jsx(
|
|
416
|
+
) : column.commentable !== false && onAddComment ? /* @__PURE__ */ jsx(
|
|
417
417
|
"button",
|
|
418
418
|
{
|
|
419
419
|
type: "button",
|
|
@@ -1216,7 +1216,7 @@ var SpreadsheetHeader = ({
|
|
|
1216
1216
|
ColumnHeaderActions,
|
|
1217
1217
|
{
|
|
1218
1218
|
enableFiltering: column.filterable,
|
|
1219
|
-
enableHighlighting: !!onHighlightClick,
|
|
1219
|
+
enableHighlighting: column.highlightable !== false && !!onHighlightClick,
|
|
1220
1220
|
enablePinning: column.pinnable !== false,
|
|
1221
1221
|
hasActiveFilter,
|
|
1222
1222
|
hasActiveHighlight: !!highlightColor,
|