@lensui/lens-table 0.1.33 → 0.1.34
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 +9 -2
- package/dist/index.css +3 -1
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5300,13 +5300,20 @@ function TableInner({
|
|
|
5300
5300
|
height: renderHeight
|
|
5301
5301
|
},
|
|
5302
5302
|
children: [
|
|
5303
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
5303
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
5304
|
+
"div",
|
|
5305
|
+
{
|
|
5306
|
+
className: `rvg-column-drag-preview-header${selectedColumnKeySet.has(columns[columnDragPreview.sourceIndex]?.key) ? " is-axis-selected" : ""}`,
|
|
5307
|
+
style: { top: headerLeafTop, height: headerLeafHeight },
|
|
5308
|
+
children: columns[columnDragPreview.sourceIndex]?.renderHeader?.(columns[columnDragPreview.sourceIndex]) ?? columns[columnDragPreview.sourceIndex]?.title
|
|
5309
|
+
}
|
|
5310
|
+
),
|
|
5304
5311
|
rows.slice(domRange.rowStart, domRange.rowEnd).map((_row, visibleRowOffset) => {
|
|
5305
5312
|
const rowIndex = domRange.rowStart + visibleRowOffset;
|
|
5306
5313
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
5307
5314
|
"div",
|
|
5308
5315
|
{
|
|
5309
|
-
className: `rvg-column-drag-preview-cell${hasStripedRows && rowIndex % 2 === 1 ? " is-striped" : ""}`,
|
|
5316
|
+
className: `rvg-column-drag-preview-cell${selectedColumnKeySet.has(columns[columnDragPreview.sourceIndex]?.key) ? " is-axis-selected" : ""}${hasStripedRows && rowIndex % 2 === 1 ? " is-striped" : ""}`,
|
|
5310
5317
|
style: { top: bodyTop + rowIndex * rowHeight - scrollRef.current.top, height: rowHeight },
|
|
5311
5318
|
children: getCellLabel(rowIndex, columnDragPreview.sourceIndex)
|
|
5312
5319
|
},
|
package/dist/index.css
CHANGED
|
@@ -1584,8 +1584,10 @@
|
|
|
1584
1584
|
.rvg-is-dragging * {
|
|
1585
1585
|
cursor: move !important;
|
|
1586
1586
|
}
|
|
1587
|
+
.rvg-column-drag-preview-header.is-axis-selected,
|
|
1587
1588
|
.rvg-column-drag-preview-cell.is-axis-selected {
|
|
1588
|
-
background: var(--rvg-color-axis-selection-fill);
|
|
1589
|
+
background: var(--rvg-color-axis-selection-drag-fill);
|
|
1590
|
+
color: var(--rvg-color-axis-selection-drag-text);
|
|
1589
1591
|
}
|
|
1590
1592
|
.rvg-column-drag-preview-cell.is-edited {
|
|
1591
1593
|
background: var(--rvg-color-edited-fill);
|
package/dist/index.js
CHANGED
|
@@ -5270,13 +5270,20 @@ function TableInner({
|
|
|
5270
5270
|
height: renderHeight
|
|
5271
5271
|
},
|
|
5272
5272
|
children: [
|
|
5273
|
-
/* @__PURE__ */ jsx7(
|
|
5273
|
+
/* @__PURE__ */ jsx7(
|
|
5274
|
+
"div",
|
|
5275
|
+
{
|
|
5276
|
+
className: `rvg-column-drag-preview-header${selectedColumnKeySet.has(columns[columnDragPreview.sourceIndex]?.key) ? " is-axis-selected" : ""}`,
|
|
5277
|
+
style: { top: headerLeafTop, height: headerLeafHeight },
|
|
5278
|
+
children: columns[columnDragPreview.sourceIndex]?.renderHeader?.(columns[columnDragPreview.sourceIndex]) ?? columns[columnDragPreview.sourceIndex]?.title
|
|
5279
|
+
}
|
|
5280
|
+
),
|
|
5274
5281
|
rows.slice(domRange.rowStart, domRange.rowEnd).map((_row, visibleRowOffset) => {
|
|
5275
5282
|
const rowIndex = domRange.rowStart + visibleRowOffset;
|
|
5276
5283
|
return /* @__PURE__ */ jsx7(
|
|
5277
5284
|
"div",
|
|
5278
5285
|
{
|
|
5279
|
-
className: `rvg-column-drag-preview-cell${hasStripedRows && rowIndex % 2 === 1 ? " is-striped" : ""}`,
|
|
5286
|
+
className: `rvg-column-drag-preview-cell${selectedColumnKeySet.has(columns[columnDragPreview.sourceIndex]?.key) ? " is-axis-selected" : ""}${hasStripedRows && rowIndex % 2 === 1 ? " is-striped" : ""}`,
|
|
5280
5287
|
style: { top: bodyTop + rowIndex * rowHeight - scrollRef.current.top, height: rowHeight },
|
|
5281
5288
|
children: getCellLabel(rowIndex, columnDragPreview.sourceIndex)
|
|
5282
5289
|
},
|