@1771technologies/lytenyte-pro 0.0.52 → 0.0.54
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 +16 -3
- package/dist/lytenyte-pro.css +1 -0
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -2078,7 +2078,7 @@ function CellSelectionDriver() {
|
|
|
2078
2078
|
});
|
|
2079
2079
|
};
|
|
2080
2080
|
const pointerDown = (event) => {
|
|
2081
|
-
if (!
|
|
2081
|
+
if (!isNormalClick(event)) {
|
|
2082
2082
|
document.removeEventListener("pointermove", pointerMove);
|
|
2083
2083
|
event.preventDefault();
|
|
2084
2084
|
return;
|
|
@@ -2216,7 +2216,10 @@ function CellSelectionDriver() {
|
|
|
2216
2216
|
);
|
|
2217
2217
|
const unsub = state.internal.navigatePosition.watch(() => {
|
|
2218
2218
|
const pos = state.internal.navigatePosition.peek();
|
|
2219
|
-
if (!pos)
|
|
2219
|
+
if (!pos || state.internal.cellSelectionSoftFocus.peek()) {
|
|
2220
|
+
state.internal.cellSelectionSoftFocus.set(false);
|
|
2221
|
+
return;
|
|
2222
|
+
}
|
|
2220
2223
|
if (pos.kind !== GRID_CELL_POSITION) return state.cellSelections.set([]);
|
|
2221
2224
|
else {
|
|
2222
2225
|
const rect = adjustRectForRowAndCellSpan(api, {
|
|
@@ -2238,6 +2241,7 @@ function CellSelectionDriver() {
|
|
|
2238
2241
|
mode,
|
|
2239
2242
|
state.cellSelections,
|
|
2240
2243
|
state.internal.cellSelectionPivot,
|
|
2244
|
+
state.internal.cellSelectionSoftFocus,
|
|
2241
2245
|
state.internal.navigatePosition,
|
|
2242
2246
|
viewport
|
|
2243
2247
|
]);
|
|
@@ -2830,6 +2834,7 @@ function useContextMenuListener(setMenu) {
|
|
|
2830
2834
|
const grid = useGrid$1();
|
|
2831
2835
|
const viewport = grid.state.internal.viewport.use();
|
|
2832
2836
|
const menuRenderer = grid.state.contextMenuRenderer.use();
|
|
2837
|
+
const predicate = grid.state.contextMenuPredicate.use();
|
|
2833
2838
|
const target = grid.state.internal.contextMenuTarget.use();
|
|
2834
2839
|
useEffect(() => {
|
|
2835
2840
|
if (!viewport || !menuRenderer) return;
|
|
@@ -2864,6 +2869,9 @@ function useContextMenuListener(setMenu) {
|
|
|
2864
2869
|
setMenu(null);
|
|
2865
2870
|
return;
|
|
2866
2871
|
}
|
|
2872
|
+
if (predicate && !predicate({ api: grid.api, menuTarget, columnIndex: hoveredCell, rowIndex: hoveredRow })) {
|
|
2873
|
+
return;
|
|
2874
|
+
}
|
|
2867
2875
|
setMenu({
|
|
2868
2876
|
menuTarget,
|
|
2869
2877
|
hoveredRow,
|
|
@@ -2895,7 +2903,8 @@ function useContextMenuListener(setMenu) {
|
|
|
2895
2903
|
grid.state.internal.contextMenuTarget,
|
|
2896
2904
|
menuRenderer,
|
|
2897
2905
|
viewport,
|
|
2898
|
-
setMenu
|
|
2906
|
+
setMenu,
|
|
2907
|
+
predicate
|
|
2899
2908
|
]);
|
|
2900
2909
|
}
|
|
2901
2910
|
function ContextMenuDriver() {
|
|
@@ -2910,6 +2919,7 @@ function ContextMenuDriver() {
|
|
|
2910
2919
|
setOpen(true);
|
|
2911
2920
|
}
|
|
2912
2921
|
}, [menu]);
|
|
2922
|
+
const soft = !!(menu?.hoveredRow != null && menu.hoveredColumn != null && grid.api.cellSelectionIsSelected(menu.hoveredRow, menu.hoveredColumn));
|
|
2913
2923
|
return /* @__PURE__ */ jsx(
|
|
2914
2924
|
MenuRoot,
|
|
2915
2925
|
{
|
|
@@ -2918,6 +2928,9 @@ function ContextMenuDriver() {
|
|
|
2918
2928
|
setOpen(c);
|
|
2919
2929
|
},
|
|
2920
2930
|
onOpenChangeComplete: (c) => {
|
|
2931
|
+
if (c) {
|
|
2932
|
+
grid.state.internal.cellSelectionSoftFocus.set(soft);
|
|
2933
|
+
}
|
|
2921
2934
|
if (!c) {
|
|
2922
2935
|
grid.api.contextMenuClose();
|
|
2923
2936
|
setMenu(null);
|
package/dist/lytenyte-pro.css
CHANGED
|
@@ -1208,6 +1208,7 @@ body.lng1771-drag-on .lng1771-pill-manager__pill-outer[data-pill-active="false"]
|
|
|
1208
1208
|
font-size: 14px;
|
|
1209
1209
|
color: var(--lng1771-gray-80);
|
|
1210
1210
|
font-family: var(--lng1771-typeface);
|
|
1211
|
+
white-space: nowrap;
|
|
1211
1212
|
position: relative;
|
|
1212
1213
|
overflow: hidden;
|
|
1213
1214
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.54",
|
|
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.54",
|
|
74
|
+
"@1771technologies/grid-core": "0.0.54",
|
|
75
|
+
"@1771technologies/grid-design": "0.0.54",
|
|
76
|
+
"@1771technologies/grid-provider": "0.0.54",
|
|
77
|
+
"@1771technologies/grid-store-pro": "0.0.54",
|
|
78
|
+
"@1771technologies/grid-tree-data-source": "0.0.54",
|
|
79
|
+
"@1771technologies/grid-types": "0.0.54",
|
|
80
|
+
"@1771technologies/js-utils": "0.0.54",
|
|
81
|
+
"@1771technologies/lytenyte-core": "0.0.54",
|
|
82
|
+
"@1771technologies/react-cascada": "0.0.54",
|
|
83
|
+
"@1771technologies/react-dragon": "0.0.54",
|
|
84
|
+
"@1771technologies/react-sizer": "0.0.54",
|
|
85
|
+
"@1771technologies/react-split-pane": "0.0.54",
|
|
86
|
+
"@1771technologies/react-utils": "0.0.54",
|
|
87
87
|
"@base-ui-components/react": "1.0.0-alpha.7"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|