@aiquants/spreadsheet 0.18.0 → 0.18.1
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 +36 -0
- package/README.md +3 -3
- package/dist/index.cjs +8 -8
- package/dist/index.js +3192 -3185
- package/dist/styles/spreadsheet.css +1 -1
- package/dist/styles/spreadsheet.standalone.css +1 -1
- package/package.json +1 -1
- package/src/overlay/SelectionOverlay.tsx +175 -95
- package/src/styles/spreadsheet.css +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@aiquants/spreadsheet` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.18.1 (2026-10-28)
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **A range scrolled out under a frozen row leaves no piece of its frame behind.** A pane placed an open near side (one
|
|
10
|
+
the range continues past, into the frozen pane before it) at the quadrant's start and sized a closed far side from
|
|
11
|
+
there, so once the range's far edge scrolled above the quadrant's start the size came out negative. CSS drops a
|
|
12
|
+
negative size and the frame kept its last one: under a frozen header row, the rows of a framed range left a U-shaped
|
|
13
|
+
stub of the frame below the header until their edge passed a whole screen. An open near side now sits at the
|
|
14
|
+
margin's edge, a screen before the quadrant's start, where its missing line is out of view, so a closed far side's
|
|
15
|
+
size is never negative and the frame ends where the range does, outside the quadrant too.
|
|
16
|
+
- **A frame that starts past the cells' far edge stays out of view in a right-to-left page.** With its near side beyond
|
|
17
|
+
the quadrant's far edge and its far side open, the frame is over-constrained (`left`, `right: 0` and an auto width
|
|
18
|
+
that would be negative), and CSS drops `left` when the containing block is right-to-left: in a `dir="rtl"` page the
|
|
19
|
+
frame's left line showed at the quadrant's right edge. The overlay quadrants now keep a left-to-right direction —
|
|
20
|
+
their marks are all placed in physical px — so `right` is the value dropped and the frame stays outside its quadrant.
|
|
21
|
+
The text sink sits outside the quadrants and keeps the page's direction.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **A repaint that moves no frame allocates nothing for it.** The range cut to the grid is resolved again only when the
|
|
26
|
+
range or the grid's counts change, each quadrant resolves its frame into spans it keeps, and the CSS is built only for
|
|
27
|
+
an axis whose span changed; the quadrants' cell extents are kept as CSS strings, rebuilt with the split cache only.
|
|
28
|
+
- **Demo**: `/fit` gains a range select for the frame — every cell, or `D1:F4`, the first four rows of the last three
|
|
29
|
+
columns, which scrolls out under the frozen header row and, in a narrow box, starts past the cells' far edge.
|
|
30
|
+
|
|
31
|
+
### Verification
|
|
32
|
+
|
|
33
|
+
- **公開面**: 0.18.0 と同じ 143 export。DOM 属性も 0.18.0 と同じ。
|
|
34
|
+
- **検証 — 走行台帳 (census の錨は本未リリース節)**: 単体 / 統合 **99 ファイル 4,285 テスト** 全緑 — 0.18.0 出荷時の
|
|
35
|
+
99 ファイル 4,281 に v0.18.1 進行分 +4 (`frame` +3 — 凍結の行の下へ外れた範囲の軸の解き方・その範囲が古い箱を残さない
|
|
36
|
+
スクロール・象限の左から右の向きの CSS 契約、0.18.0 節の出荷時凍結ピンで `hxCensus` +1)。`tsc --noEmit` / biome 0。
|
|
37
|
+
E2E は `frame` +2 (見出しの行の下へ外れた範囲・右から左のページ) を加えた全 26 ファイル 298 テスト全緑 (2.7 分)。変異:
|
|
38
|
+
開いた近い辺を象限の端 (0) に置く元の形で単体 3 件と E2E の見出しの行の下の 1 件、象限の `direction: ltr` を外す形で E2E の
|
|
39
|
+
右から左のページの 1 件がどれも赤。
|
|
40
|
+
|
|
5
41
|
## 0.18.0 (2026-10-28)
|
|
6
42
|
|
|
7
43
|
### Added
|
package/README.md
CHANGED
|
@@ -1081,8 +1081,8 @@ range's cells:
|
|
|
1081
1081
|
overlay quadrant) and `[data-aqsp-band-clip]` (the bands' clip). Without `frame` the overlay's DOM and writes are those
|
|
1082
1082
|
of 0.17.3.
|
|
1083
1083
|
|
|
1084
|
-
The demo's `/fit` route has a frame switch
|
|
1085
|
-
and column bands to see it meet the dividers and the bands.
|
|
1084
|
+
The demo's `/fit` route has a frame switch and a range select (every cell, or `D1:F4`), with pins (a frozen header
|
|
1085
|
+
row, footer row and first column) and the row and column bands to see it meet the dividers and the bands.
|
|
1086
1086
|
|
|
1087
1087
|
## View geometry and zoom rules (`@aiquants/spreadsheet/view`)
|
|
1088
1088
|
|
|
@@ -1281,7 +1281,7 @@ covers the `?lang=ja` path and the live switch; every other E2E spec runs the En
|
|
|
1281
1281
|
| `/styles` | The v0.8 rich cells (`tests/e2e/styles.spec.ts`): a 300 × 26 sheet whose store declares all eight capabilities (a mini formula evaluator for `=A1+B1` / `SUM` / `AVERAGE` feeds `evaluateFormula` and the computed `getCellText`, `getCellFormula` returns the source), a patch-applying store with per-transaction inverse-patch Undo (a cross-sheet cut-move folds into one entry) and consumer-minted comment ids, a format toolbar driven by `handle.executeCommand` (every button keeps focus in the grid), colour pickers, border / number-format presets, link / note / comment / validation / conditional-format editors, a Paste Special menu opened by `onPasteSpecialRequest` (Excel accelerators — modes `A`ll / `F`ormulas / `V`alues / `T` formats / `C`omments and notes / `N` validation / `X` all except borders / `W`idths / `R` conditional formats, operations `O` none / `D` add / `S` subtract / `M` multiply / `I` divide, flags `B` skip blanks / `E` transpose / `J` inject formats → `handle.paste`), highlight-band settings, a shortcut rebinding table with reserved-chord warnings, a clip-info chip (`onClipChange`), a Sheet A / B toggle for cross-sheet paste and cut-move, and Excel / Sheets fixture buttons that write real interop HTML to the clipboard — and, since v0.9, the trailing freeze live by default: `frozenTrailingRows={1}` / `frozenTrailingColumns={1}` alongside the leading 1×1 (this nine-quadrant state is the ambient every `/styles` budget number is certified on) pin the sheet's grand-total row (the last row's `SUM` / `AVERAGE`, bold at the base font) to the bottom edge, with a `data-demo-trailing` checkbox to release it |
|
|
1282
1282
|
| `/huge` | The v0.4 deep-reach proof: 1,000,000 × 10,000,000 on a pure functional adapter — Ctrl+→ (and End) reach the rightmost column 9,999,999 and Ctrl+↓ the last row 999,999 in one press (uniform-block Excel semantics, unified with the `/` route; ±1px cell placement), a "deep jump" button (`scrollToCell` to the interior column 5,000,000 ≈ 5 億 px, past the 2^25 wall), zoom ×4 holds ±1 logical px — plus runtime freeze toggles (0 ↔ 3 frozen rows above 0 ↔ 3 frozen columns), a context menu (right-click / Shift+F10) that opens at static frozen-cell coordinates even mid-deep-scroll, and the drag-freshness and performance-budget E2E gates — plus the v0.9 trailing-freeze controls consumed by `tests/e2e/trailing-freeze.spec.ts`: trailing freeze toggles for 0 ↔ 2 last rows / columns (`data-demo-trailing-row-toggle` / `data-demo-trailing-col-toggle` — deliberately not the leading toggles' 0 ↔ 3), a row-axis deep jump to the last scroll row `rowCount − T − 1` (`data-demo-deep-jump-row`, reading the live toggle), and an overlap toggle (`data-demo-overlap-toggle` — 16 / 16 frozen rows and 8 / 8 frozen columns exceed the default E2E viewport on both axes) |
|
|
1283
1283
|
| `/tune` | Sizing knobs (`defaultRowHeight` / `defaultColumnWidth` / banded per-column widths via the imperative `resizeColumn` mount effect), hide / unhide (drag a boundary to 0, marker drag / dblclick restore, single-column dblclick autofit), a deliberately low LIVE `maxOperationCells` staging every rejection class (limit, row fan-out ÷10, autofit ÷4, bounds via the multi-cell corner recipe), live `enableResizeUI` / `enableFillHandle` opt-outs, an empty-grid staging toggle (rowCount 0 adapter swap), a data-reset button, and the zoom card (v0.3) — the controlled-mode reference wiring (`zoom` + `onZoomChange`, 50–200% select plus every zoom gesture) and the fixture for the zoom E2E gates |
|
|
1284
|
-
| `/fit` | v0.17 — a host that fits the grid's box to `onContentSizeChange` (`tests/e2e/host-fit.spec.ts`): a read-only 60 × 6 table in the page's flow whose box shows every row so the page scrolls instead, with the headings switch (`data-demo-fit-headings`), the zoom (`data-demo-fit-zoom`), the all-rows fit through `autoFitColumns` (`data-demo-fit-autofit`) and the content-size readout (`data-demo-fit-size`); arrow keys keep the active cell in the window; v0.18 adds the frame switch (`data-demo-fit-frame` — every cell
|
|
1284
|
+
| `/fit` | v0.17 — a host that fits the grid's box to `onContentSizeChange` (`tests/e2e/host-fit.spec.ts`): a read-only 60 × 6 table in the page's flow whose box shows every row so the page scrolls instead, with the headings switch (`data-demo-fit-headings`), the zoom (`data-demo-fit-zoom`), the all-rows fit through `autoFitColumns` (`data-demo-fit-autofit`) and the content-size readout (`data-demo-fit-size`); arrow keys keep the active cell in the window; v0.18 adds the frame switch (`data-demo-fit-frame`) with its range select (`data-demo-fit-frame-range` — every cell, or `D1:F4`, which scrolls out under the frozen header row and, in a narrow box, starts past the cells' far edge), the pins switch (`data-demo-fit-pins` — a frozen header row, footer row and first column) and the bands switch (`data-demo-fit-bands`), read from real pixels by `tests/e2e/frame.spec.ts` |
|
|
1285
1285
|
| `/a11y` | Locale-aware custom `formatCellAnnouncement` / `formatSelectionAnnouncement` (English by default, Japanese under `?lang=ja`) mirrored into visible readouts, per-locale overridden accessible names (Escape advisement kept), the WCAG 2.1.2 escape route |
|
|
1286
1286
|
| `/readonly` | The v0.10 read-only cells (`tests/e2e/readonly.spec.ts`): a 200 × 10 sheet whose adapter declares `isCellReadOnly` (one locked COLUMN plus scattered locked cells for mixed selections) alongside note / comment / link / validation reads — the whole-operation refusals live (edit entries, Delete, paste, cut, fill incl. the diagonal legs, annotation chords on empty cells), the content-aware viewers (the locked column carries a comment thread, a note and a hyperlink; their chords open viewer-mode popovers with the commit affordance disabled), a host-side tint on `[data-aqsp-readonly]` (the package ships no CSS), a refusal toast worded per `ReadOnlyRejection` (the three `editSession` fates told apart, the two-producer cut wording), and an `onPasteResolved` two-line log that sits beside the refusal toast so a read-only-refused paste shows BOTH callbacks |
|
|
1287
1287
|
| `/utils` | The exported pure functions live: TSV round-trip, paste-expansion rules, column-name converter (incl. its fail-fast `RangeError`), range algebra, and a clipboard inspector card (discloses the raw text/html payload, textContent-rendered) |
|