@opengrid-ui/pro 0.1.37 → 0.1.39
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 +2 -2
- package/dist/index.js.map +3 -3
- package/dist/llms.txt +6 -2
- package/dist/react/locale.d.ts +7 -2
- package/package.json +1 -1
package/dist/llms.txt
CHANGED
|
@@ -15,8 +15,8 @@ npm install @opengrid-ui/core @opengrid-ui/pro
|
|
|
15
15
|
GitHub Releases also provides versioned tarballs with SHA-256 checksums.
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
release=https://github.com/Han-wangyu/opengrid-ui/releases/download/v0.1.
|
|
19
|
-
npm install "$release/opengrid-ui-core-0.1.
|
|
18
|
+
release=https://github.com/Han-wangyu/opengrid-ui/releases/download/v0.1.39
|
|
19
|
+
npm install "$release/opengrid-ui-core-0.1.39.tgz" "$release/opengrid-ui-pro-0.1.39.tgz"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
```tsx
|
|
@@ -110,10 +110,14 @@ Keyboard shortcuts for selecting an entire sheet, row or column preserve the act
|
|
|
110
110
|
|
|
111
111
|
Clipboard copy captures the selected ranges and reads them in bounded windows. Each completed window is encoded as TSV; the browser consumes the text as a single clipboard item. A promised payload lets the clipboard write start during the original user gesture.
|
|
112
112
|
|
|
113
|
+
The starting cell owns pointer capture until a selection or fill drag begins. The grid then takes capture. Edge scrolling computes the logical endpoint from the same geometry that renders fixed and variable rows, scaled tracks, and pinned columns. A drag can cross windows without the original cell staying mounted.
|
|
114
|
+
|
|
113
115
|
For master/detail layouts, the virtualizer retains visual row positions. The spreadsheet indexes the expanded detail positions to move between data rows and to apply clipboard and fill operations in data order.
|
|
114
116
|
|
|
115
117
|
Core's opt-in column reordering applies sibling preferences to the definitions passed to TanStack. A pointer drag resolves the destination against logical column boxes and holds capture on the header while center columns virtualize. The same sibling rules serve keyboard moves and successive grip activation.
|
|
116
118
|
|
|
119
|
+
Row reorder shares pointer capture and body-edge scrolling with spreadsheet gestures. Its destination follows logical row geometry, including scaled tracks and variable heights. The host receives a move between row IDs and visual positions through `onRowMove`.
|
|
120
|
+
|
|
117
121
|
The horizontal virtualizer stores column offsets and pin boundaries with the layout. A binary search locates the first visible center column. The mounted leaves identify the grouped headers using a per-pane ancestry index, so horizontal scroll work follows the visible columns, pinned columns and header depth.
|
|
118
122
|
|
|
119
123
|
Local [merged cells](https://github.com/Han-wangyu/opengrid-ui/blob/main/docs/specs/core-engine.spec.md#merged-cells) use a rectangle index over logical rows and columns. The viewport mounts each intersecting merge once, preserves the anchor used for accessibility and edits, and clips its paint to the scaled track beneath pinned columns.
|
package/dist/react/locale.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ declare const en: {
|
|
|
50
50
|
filter: string;
|
|
51
51
|
clearFilter: string;
|
|
52
52
|
exportError: string;
|
|
53
|
+
rowReordering: {
|
|
54
|
+
picked: (position: number) => string;
|
|
55
|
+
moved: (from: number, to: number) => string;
|
|
56
|
+
cancelMove: string;
|
|
57
|
+
};
|
|
53
58
|
columnReordering: {
|
|
54
59
|
move: (column: string) => string;
|
|
55
60
|
picked: (column: string) => string;
|
|
@@ -69,8 +74,8 @@ declare const en: {
|
|
|
69
74
|
};
|
|
70
75
|
};
|
|
71
76
|
export type ResolvedProMessages = typeof en;
|
|
72
|
-
type
|
|
73
|
-
export type ProMessages = Omit<ResolvedProMessages,
|
|
77
|
+
type OptionalMessage = 'exportingXlsx' | 'cancelExport' | 'rowReordering';
|
|
78
|
+
export type ProMessages = Omit<ResolvedProMessages, OptionalMessage> & Partial<Pick<ResolvedProMessages, OptionalMessage>>;
|
|
74
79
|
export type ProLocale = GridLocale | Partial<ProMessages>;
|
|
75
80
|
export declare function messagesFor(host: GridLocale, override: ProLocale | undefined): ResolvedProMessages;
|
|
76
81
|
export {};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@opengrid-ui/pro","version":"0.1.
|
|
1
|
+
{"name":"@opengrid-ui/pro","version":"0.1.39","license":"MIT","type":"module","repository":{"type":"git","url":"git+https://github.com/Han-wangyu/opengrid-ui.git","directory":"packages/pro"},"files":["dist","LICENSE"],"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./styles.css":"./dist/styles.css"},"sideEffects":["**/*.css"],"publishConfig":{"access":"public"},"scripts":{"build":"node ../../scripts/build-package.mjs"},"peerDependencies":{"react":"^17.0.2 || ^18.0.0 || ^19.0.0","react-dom":"^17.0.2 || ^18.0.0 || ^19.0.0"},"dependencies":{"@opengrid-ui/core":"^0.1.39"}}
|