@extable/core 0.1.0 → 0.2.0
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/README.md +6 -0
- package/dist/fillHandle.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1928 -1124
- package/dist/index.js.map +1 -1
- package/dist/selectionManager.d.ts +4 -1
- package/dist/types.d.ts +2 -0
- package/package.json +7 -1
|
@@ -55,8 +55,10 @@ export declare class SelectionManager {
|
|
|
55
55
|
private composing;
|
|
56
56
|
private lastCompositionEnd;
|
|
57
57
|
private readonly handleSelectionBlur;
|
|
58
|
+
private readonly handleRootKeydown;
|
|
58
59
|
private isCellReadonly;
|
|
59
|
-
|
|
60
|
+
private sequenceLangs?;
|
|
61
|
+
constructor(root: HTMLElement, editMode: EditMode, onEdit: EditHandler, onRowSelect: RowSelectHandler, onMove: MoveHandler, hitTest: HitTest, dataModel: DataModel, sequenceLangs: readonly string[] | undefined, isCellReadonly: (rowId: string, colKey: string) => boolean, onActiveChange: ActiveChange, onContextMenu: ContextMenuHandler, onSelectionChange: SelectionChange, onUndo: UndoRedoHandler, onRedo: UndoRedoHandler);
|
|
60
62
|
setEditMode(mode: EditMode): void;
|
|
61
63
|
syncAfterRowsChanged(): void;
|
|
62
64
|
navigateToCell(rowId: string, colKey: string): void;
|
|
@@ -83,6 +85,7 @@ export declare class SelectionManager {
|
|
|
83
85
|
private computeCanvasCellRect;
|
|
84
86
|
private computeCanvasCellBoxContent;
|
|
85
87
|
private getCanvasCellMetrics;
|
|
88
|
+
private getActiveCellRect;
|
|
86
89
|
private ensureVisibleCell;
|
|
87
90
|
private moveActiveCell;
|
|
88
91
|
private handlePointerDown;
|
package/dist/types.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ export interface CoreOptions {
|
|
|
188
188
|
renderMode?: RenderMode;
|
|
189
189
|
editMode?: EditMode;
|
|
190
190
|
lockMode?: LockMode;
|
|
191
|
+
/** Preferred languages for auto-fill sequence matching (e.g. ["ja", "en"]). */
|
|
192
|
+
langs?: string[];
|
|
191
193
|
/** Loading UI configuration used when `defaultData` is `null`. */
|
|
192
194
|
loading?: {
|
|
193
195
|
/** Enable built-in loading overlay/spinner. Default: true */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extable/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,11 +23,16 @@
|
|
|
23
23
|
"./dist/index.css"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
+
"prebuild": "npm run build --workspace @extable/sequence",
|
|
27
|
+
"pretest": "npm run build --workspace @extable/sequence",
|
|
26
28
|
"build": "tsc -p tsconfig.build.json --emitDeclarationOnly && vite build",
|
|
27
29
|
"test": "vitest run",
|
|
28
30
|
"lint": "biome lint .",
|
|
29
31
|
"format": "biome format --write ."
|
|
30
32
|
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@extable/sequence": "0.1.0"
|
|
35
|
+
},
|
|
31
36
|
"devDependencies": {
|
|
32
37
|
"typescript": "^5.6.3"
|
|
33
38
|
},
|
|
@@ -38,6 +43,7 @@
|
|
|
38
43
|
"type": "git",
|
|
39
44
|
"url": "git+https://github.com/shibukawa/extable.git"
|
|
40
45
|
},
|
|
46
|
+
"homepage": "https://shibukawa.github.io/extable/",
|
|
41
47
|
"author": "Yoshiki Shibukawa",
|
|
42
48
|
"license": "Apache-2.0",
|
|
43
49
|
"peerDependencies": {}
|