@1771technologies/lytenyte-pro 0.9.0 → 0.9.1
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.js +18 -9
- package/package.json +16 -16
package/dist/index.js
CHANGED
|
@@ -1373,17 +1373,26 @@ function CellEditDriver() {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
function RowHoverDriver() {
|
|
1375
1375
|
const s3 = useGrid();
|
|
1376
|
-
const
|
|
1376
|
+
const grid = s3.state.internal.viewport.use();
|
|
1377
1377
|
const hoveredRow = s3.state.internal.hoveredRow.use();
|
|
1378
|
+
useEffect(() => {
|
|
1379
|
+
if (hoveredRow == null || !grid) return;
|
|
1380
|
+
const cells = Array.from(
|
|
1381
|
+
grid.querySelectorAll(`div > div > .lng1771-cell[aria-rowindex="${hoveredRow + 1}"]`)
|
|
1382
|
+
);
|
|
1383
|
+
cells.forEach((c) => {
|
|
1384
|
+
if (c.classList.contains(".lng1771-cell--selected"))
|
|
1385
|
+
c.style.backgroundColor = "var(--lng1771-primary-30)";
|
|
1386
|
+
else c.style.backgroundColor = "var(--lng1771-gray-10)";
|
|
1387
|
+
});
|
|
1388
|
+
return () => {
|
|
1389
|
+
cells.forEach((c) => {
|
|
1390
|
+
c.style.removeProperty("background-color");
|
|
1391
|
+
});
|
|
1392
|
+
};
|
|
1393
|
+
}, [grid, hoveredRow]);
|
|
1378
1394
|
if (hoveredRow == null) return;
|
|
1379
|
-
return /* @__PURE__ */ jsx(
|
|
1380
|
-
#${gridId} > div > div > :not(.lng1771-cell--selected)[aria-rowindex="${hoveredRow + 1}"] {
|
|
1381
|
-
background-color: var(--lng1771-gray-10);
|
|
1382
|
-
}
|
|
1383
|
-
#${gridId} > div > div > .lng1771-cell--selected[aria-rowindex="${hoveredRow + 1}"] {
|
|
1384
|
-
background-color: var(--lng1771-primary-30);
|
|
1385
|
-
}
|
|
1386
|
-
` });
|
|
1395
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
1387
1396
|
}
|
|
1388
1397
|
function Viewport({
|
|
1389
1398
|
children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -79,21 +79,21 @@
|
|
|
79
79
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@1771technologies/grid-client-data-source-pro": "0.9.
|
|
83
|
-
"@1771technologies/grid-server-data-source": "0.9.
|
|
84
|
-
"@1771technologies/grid-core": "0.9.
|
|
85
|
-
"@1771technologies/grid-design": "0.9.
|
|
86
|
-
"@1771technologies/grid-provider": "0.9.
|
|
87
|
-
"@1771technologies/grid-store-pro": "0.9.
|
|
88
|
-
"@1771technologies/grid-tree-data-source": "0.9.
|
|
89
|
-
"@1771technologies/grid-types": "0.9.
|
|
90
|
-
"@1771technologies/js-utils": "0.9.
|
|
91
|
-
"@1771technologies/lytenyte-core": "0.9.
|
|
92
|
-
"@1771technologies/react-cascada": "0.9.
|
|
93
|
-
"@1771technologies/react-dragon": "0.9.
|
|
94
|
-
"@1771technologies/react-sizer": "0.9.
|
|
95
|
-
"@1771technologies/react-split-pane": "0.9.
|
|
96
|
-
"@1771technologies/react-utils": "0.9.
|
|
82
|
+
"@1771technologies/grid-client-data-source-pro": "0.9.1",
|
|
83
|
+
"@1771technologies/grid-server-data-source": "0.9.1",
|
|
84
|
+
"@1771technologies/grid-core": "0.9.1",
|
|
85
|
+
"@1771technologies/grid-design": "0.9.1",
|
|
86
|
+
"@1771technologies/grid-provider": "0.9.1",
|
|
87
|
+
"@1771technologies/grid-store-pro": "0.9.1",
|
|
88
|
+
"@1771technologies/grid-tree-data-source": "0.9.1",
|
|
89
|
+
"@1771technologies/grid-types": "0.9.1",
|
|
90
|
+
"@1771technologies/js-utils": "0.9.1",
|
|
91
|
+
"@1771technologies/lytenyte-core": "0.9.1",
|
|
92
|
+
"@1771technologies/react-cascada": "0.9.1",
|
|
93
|
+
"@1771technologies/react-dragon": "0.9.1",
|
|
94
|
+
"@1771technologies/react-sizer": "0.9.1",
|
|
95
|
+
"@1771technologies/react-split-pane": "0.9.1",
|
|
96
|
+
"@1771technologies/react-utils": "0.9.1",
|
|
97
97
|
"@base-ui-components/react": "1.0.0-alpha.7"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|