@1771technologies/lytenyte-pro 0.0.53 → 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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. 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 (!isMultiRange && !isNormalClick(event)) {
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) return;
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
  ]);
@@ -2915,6 +2919,7 @@ function ContextMenuDriver() {
2915
2919
  setOpen(true);
2916
2920
  }
2917
2921
  }, [menu]);
2922
+ const soft = !!(menu?.hoveredRow != null && menu.hoveredColumn != null && grid.api.cellSelectionIsSelected(menu.hoveredRow, menu.hoveredColumn));
2918
2923
  return /* @__PURE__ */ jsx(
2919
2924
  MenuRoot,
2920
2925
  {
@@ -2923,6 +2928,9 @@ function ContextMenuDriver() {
2923
2928
  setOpen(c);
2924
2929
  },
2925
2930
  onOpenChangeComplete: (c) => {
2931
+ if (c) {
2932
+ grid.state.internal.cellSelectionSoftFocus.set(soft);
2933
+ }
2926
2934
  if (!c) {
2927
2935
  grid.api.contextMenuClose();
2928
2936
  setMenu(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1771technologies/lytenyte-pro",
3
- "version": "0.0.53",
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.53",
74
- "@1771technologies/grid-core": "0.0.53",
75
- "@1771technologies/grid-design": "0.0.53",
76
- "@1771technologies/grid-provider": "0.0.53",
77
- "@1771technologies/grid-store-pro": "0.0.53",
78
- "@1771technologies/grid-tree-data-source": "0.0.53",
79
- "@1771technologies/grid-types": "0.0.53",
80
- "@1771technologies/js-utils": "0.0.53",
81
- "@1771technologies/lytenyte-core": "0.0.53",
82
- "@1771technologies/react-cascada": "0.0.53",
83
- "@1771technologies/react-dragon": "0.0.53",
84
- "@1771technologies/react-sizer": "0.0.53",
85
- "@1771technologies/react-split-pane": "0.0.53",
86
- "@1771technologies/react-utils": "0.0.53",
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": {