@1771technologies/lytenyte-pro 0.0.54 → 0.0.56
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 +4 -1
- package/dist/lytenyte-pro.css +10 -4
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useEvent, useIsoEffect } from "@1771technologies/react-utils";
|
|
|
6
6
|
import { context } from "@1771technologies/grid-provider";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { useContext, useMemo, useEffect, useRef, useState, useCallback, memo } from "react";
|
|
9
|
-
import { sizeFromCoord, clsx, getClientX, IsoResizeObserver, getPreciseElementDimensions, getClientY, getFocusableElements, clamp, getRelativeXPosition, getRelativeYPosition } from "@1771technologies/js-utils";
|
|
9
|
+
import { sizeFromCoord, clsx, getClientX, IsoResizeObserver, getPreciseElementDimensions, getClientY, getFocusableElements, clamp, equal, getRelativeXPosition, getRelativeYPosition } from "@1771technologies/js-utils";
|
|
10
10
|
import { useDraggable, useDroppable, dragState } from "@1771technologies/react-dragon";
|
|
11
11
|
import { getHoveredRowIndex, getHoveredColumnIndex, getRootCell } from "@1771technologies/grid-core";
|
|
12
12
|
import { c as useGrid$1, u as useControlled, a as useTransitionStatus, b as useScrollLock, G as GridProvider } from "./useScrollLock-D4UY33Sb.js";
|
|
@@ -2214,12 +2214,15 @@ function CellSelectionDriver() {
|
|
|
2214
2214
|
},
|
|
2215
2215
|
{ signal: controller.signal }
|
|
2216
2216
|
);
|
|
2217
|
+
let previousPos = state.internal.navigatePosition.peek();
|
|
2217
2218
|
const unsub = state.internal.navigatePosition.watch(() => {
|
|
2218
2219
|
const pos = state.internal.navigatePosition.peek();
|
|
2219
2220
|
if (!pos || state.internal.cellSelectionSoftFocus.peek()) {
|
|
2220
2221
|
state.internal.cellSelectionSoftFocus.set(false);
|
|
2221
2222
|
return;
|
|
2222
2223
|
}
|
|
2224
|
+
if (equal(previousPos, pos)) return;
|
|
2225
|
+
previousPos = pos;
|
|
2223
2226
|
if (pos.kind !== GRID_CELL_POSITION) return state.cellSelections.set([]);
|
|
2224
2227
|
else {
|
|
2225
2228
|
const rect = adjustRectForRowAndCellSpan(api, {
|
package/dist/lytenyte-pro.css
CHANGED
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
padding-inline: 16px;
|
|
17
17
|
padding-block: 12px;
|
|
18
18
|
}
|
|
19
|
-
.lng1771-header__cell,
|
|
20
|
-
.lng1771-header__cell-expand,
|
|
21
|
-
.lng1771-header__cell-floating,
|
|
22
|
-
.lng1771-header__group,
|
|
23
19
|
.lng1771-cell,
|
|
24
20
|
.lng1771-cell__full-width {
|
|
25
21
|
&:focus {
|
|
@@ -28,6 +24,16 @@
|
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
|
|
27
|
+
.lng1771-header__cell,
|
|
28
|
+
.lng1771-header__cell-expand,
|
|
29
|
+
.lng1771-header__cell-floating,
|
|
30
|
+
.lng1771-header__group {
|
|
31
|
+
&:focus {
|
|
32
|
+
outline: 1px solid var(--lng1771-focus-outline);
|
|
33
|
+
outline-offset: -3px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
.lng1771-drag-placeholder {
|
|
32
38
|
padding-inline: 12px;
|
|
33
39
|
padding-block: 8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -70,20 +70,20 @@
|
|
|
70
70
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@1771technologies/grid-client-data-source-pro": "0.0.
|
|
74
|
-
"@1771technologies/grid-core": "0.0.
|
|
75
|
-
"@1771technologies/grid-design": "0.0.
|
|
76
|
-
"@1771technologies/grid-provider": "0.0.
|
|
77
|
-
"@1771technologies/grid-store-pro": "0.0.
|
|
78
|
-
"@1771technologies/grid-tree-data-source": "0.0.
|
|
79
|
-
"@1771technologies/grid-types": "0.0.
|
|
80
|
-
"@1771technologies/js-utils": "0.0.
|
|
81
|
-
"@1771technologies/lytenyte-core": "0.0.
|
|
82
|
-
"@1771technologies/react-cascada": "0.0.
|
|
83
|
-
"@1771technologies/react-dragon": "0.0.
|
|
84
|
-
"@1771technologies/react-sizer": "0.0.
|
|
85
|
-
"@1771technologies/react-split-pane": "0.0.
|
|
86
|
-
"@1771technologies/react-utils": "0.0.
|
|
73
|
+
"@1771technologies/grid-client-data-source-pro": "0.0.56",
|
|
74
|
+
"@1771technologies/grid-core": "0.0.56",
|
|
75
|
+
"@1771technologies/grid-design": "0.0.56",
|
|
76
|
+
"@1771technologies/grid-provider": "0.0.56",
|
|
77
|
+
"@1771technologies/grid-store-pro": "0.0.56",
|
|
78
|
+
"@1771technologies/grid-tree-data-source": "0.0.56",
|
|
79
|
+
"@1771technologies/grid-types": "0.0.56",
|
|
80
|
+
"@1771technologies/js-utils": "0.0.56",
|
|
81
|
+
"@1771technologies/lytenyte-core": "0.0.56",
|
|
82
|
+
"@1771technologies/react-cascada": "0.0.56",
|
|
83
|
+
"@1771technologies/react-dragon": "0.0.56",
|
|
84
|
+
"@1771technologies/react-sizer": "0.0.56",
|
|
85
|
+
"@1771technologies/react-split-pane": "0.0.56",
|
|
86
|
+
"@1771technologies/react-utils": "0.0.56",
|
|
87
87
|
"@base-ui-components/react": "1.0.0-alpha.7"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|