@aiquants/spreadsheet 0.8.0 → 0.9.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/CHANGELOG.md +50 -0
- package/README.md +86 -8
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +4159 -3886
- package/dist/styles/spreadsheet.css +1 -1
- package/dist/styles/spreadsheet.standalone.css +1 -1
- package/package.json +3 -3
- package/src/Spreadsheet.tsx +198 -22
- package/src/grid/GridBody.tsx +16 -0
- package/src/header/ColumnHeader.tsx +84 -12
- package/src/header/RowHeader.tsx +79 -11
- package/src/header/resizeStrips.ts +86 -1
- package/src/header/useHeaderResize.ts +88 -20
- package/src/header/useHeaderSelection.ts +28 -9
- package/src/keyboard/ensureCellVisible.ts +40 -17
- package/src/keyboard/useGridKeyboard.ts +10 -4
- package/src/model/frozenPartition.ts +183 -59
- package/src/overlay/SelectionOverlay.tsx +599 -116
- package/src/overlay/useFillHandle.ts +65 -11
- package/src/popover/usePopovers.ts +39 -7
- package/src/selection/useAutoScroller.ts +58 -15
- package/src/selection/useSelectionEngine.ts +27 -10
- package/src/styles/spreadsheet.css +32 -0
package/dist/index.d.cts
CHANGED
|
@@ -1583,6 +1583,33 @@ export declare type SpreadsheetProps = {
|
|
|
1583
1583
|
* 位置に依らず常時可視で、可視化の縦成分は no-op。飛行中の変更は全ドラッグを取り消す。
|
|
1584
1584
|
*/
|
|
1585
1585
|
frozenRows?: number;
|
|
1586
|
+
/**
|
|
1587
|
+
* Freezes the LAST N columns at the right edge (v0.9 — the VirtualGrid frozenTrailingCols
|
|
1588
|
+
* pass-through; LIVE prop, default 0). Validation SSOT is the engine's fail-fast contract
|
|
1589
|
+
* (integer in [0, 128] — RangeError otherwise; the count clamp is leading-wins:
|
|
1590
|
+
* effectiveTrailing = min(T, colCount − effectiveLeading)). Trailing columns stay visible at
|
|
1591
|
+
* any horizontal scroll — with ONE registered exception: when the leading + trailing extent
|
|
1592
|
+
* exceeds the viewport, occluded trailing cells cannot be scrolled into view and keyboard
|
|
1593
|
+
* focus paints no visible frame (ADR-19-1). scrollToCell / ensure-visible treat a trailing
|
|
1594
|
+
* target as a horizontal no-op. A mid-flight change cancels every in-flight drag without
|
|
1595
|
+
* restore (the frozenColumns cancel seam).
|
|
1596
|
+
* 末尾 N 列の右端凍結 (v0.9 — VirtualGrid frozenTrailingCols の素通し。ライブ prop、既定 0)。
|
|
1597
|
+
* 検証 SSOT はエンジンの fail-fast 契約 ([0, 128] 整数、それ以外 RangeError。件数クランプは
|
|
1598
|
+
* leading 勝ち: min(T, colCount − effectiveLeading))。末尾列は任意の横スクロールで可視 —
|
|
1599
|
+
* ただし leading + trailing の extent が viewport を超える overlap では遮蔽された末尾セルを
|
|
1600
|
+
* スクロールで可視化できず、キーボードフォーカスは可視フレームを描かない (ADR-19-1 の登記済み
|
|
1601
|
+
* 帰結)。scrollToCell / ensure-visible は末尾ターゲットを横 no-op として扱う。飛行中の変更は
|
|
1602
|
+
* 全ドラッグを復元なしで取り消す (frozenColumns と同じシーム)。
|
|
1603
|
+
*/
|
|
1604
|
+
frozenTrailingColumns?: number;
|
|
1605
|
+
/**
|
|
1606
|
+
* Freezes the LAST N rows at the bottom (v0.9 — the VirtualGrid frozenTrailingRows
|
|
1607
|
+
* pass-through; LIVE prop, default 0 — the row twin of frozenTrailingColumns, same engine
|
|
1608
|
+
* fail-fast contract and cancel seam). The typical use is a pinned totals row.
|
|
1609
|
+
* 末尾 N 行の下端凍結 (v0.9 — frozenTrailingRows の素通し。ライブ prop、既定 0 —
|
|
1610
|
+
* frozenTrailingColumns の行双子。エンジン契約・取消シームは同文)。典型は固定合計行。
|
|
1611
|
+
*/
|
|
1612
|
+
frozenTrailingRows?: number;
|
|
1586
1613
|
/**
|
|
1587
1614
|
* Identity-stable contract (same as adapter): an inline arrow here defeats the CellView memo
|
|
1588
1615
|
* and turns every host re-render into a full visible re-slice (~800 cells at 16k columns).
|
package/dist/index.d.ts
CHANGED
|
@@ -1583,6 +1583,33 @@ export declare type SpreadsheetProps = {
|
|
|
1583
1583
|
* 位置に依らず常時可視で、可視化の縦成分は no-op。飛行中の変更は全ドラッグを取り消す。
|
|
1584
1584
|
*/
|
|
1585
1585
|
frozenRows?: number;
|
|
1586
|
+
/**
|
|
1587
|
+
* Freezes the LAST N columns at the right edge (v0.9 — the VirtualGrid frozenTrailingCols
|
|
1588
|
+
* pass-through; LIVE prop, default 0). Validation SSOT is the engine's fail-fast contract
|
|
1589
|
+
* (integer in [0, 128] — RangeError otherwise; the count clamp is leading-wins:
|
|
1590
|
+
* effectiveTrailing = min(T, colCount − effectiveLeading)). Trailing columns stay visible at
|
|
1591
|
+
* any horizontal scroll — with ONE registered exception: when the leading + trailing extent
|
|
1592
|
+
* exceeds the viewport, occluded trailing cells cannot be scrolled into view and keyboard
|
|
1593
|
+
* focus paints no visible frame (ADR-19-1). scrollToCell / ensure-visible treat a trailing
|
|
1594
|
+
* target as a horizontal no-op. A mid-flight change cancels every in-flight drag without
|
|
1595
|
+
* restore (the frozenColumns cancel seam).
|
|
1596
|
+
* 末尾 N 列の右端凍結 (v0.9 — VirtualGrid frozenTrailingCols の素通し。ライブ prop、既定 0)。
|
|
1597
|
+
* 検証 SSOT はエンジンの fail-fast 契約 ([0, 128] 整数、それ以外 RangeError。件数クランプは
|
|
1598
|
+
* leading 勝ち: min(T, colCount − effectiveLeading))。末尾列は任意の横スクロールで可視 —
|
|
1599
|
+
* ただし leading + trailing の extent が viewport を超える overlap では遮蔽された末尾セルを
|
|
1600
|
+
* スクロールで可視化できず、キーボードフォーカスは可視フレームを描かない (ADR-19-1 の登記済み
|
|
1601
|
+
* 帰結)。scrollToCell / ensure-visible は末尾ターゲットを横 no-op として扱う。飛行中の変更は
|
|
1602
|
+
* 全ドラッグを復元なしで取り消す (frozenColumns と同じシーム)。
|
|
1603
|
+
*/
|
|
1604
|
+
frozenTrailingColumns?: number;
|
|
1605
|
+
/**
|
|
1606
|
+
* Freezes the LAST N rows at the bottom (v0.9 — the VirtualGrid frozenTrailingRows
|
|
1607
|
+
* pass-through; LIVE prop, default 0 — the row twin of frozenTrailingColumns, same engine
|
|
1608
|
+
* fail-fast contract and cancel seam). The typical use is a pinned totals row.
|
|
1609
|
+
* 末尾 N 行の下端凍結 (v0.9 — frozenTrailingRows の素通し。ライブ prop、既定 0 —
|
|
1610
|
+
* frozenTrailingColumns の行双子。エンジン契約・取消シームは同文)。典型は固定合計行。
|
|
1611
|
+
*/
|
|
1612
|
+
frozenTrailingRows?: number;
|
|
1586
1613
|
/**
|
|
1587
1614
|
* Identity-stable contract (same as adapter): an inline arrow here defeats the CellView memo
|
|
1588
1615
|
* and turns every host re-render into a full visible re-slice (~800 cells at 16k columns).
|