@aiquants/virtualscroll 3.9.1 → 3.10.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 +114 -0
- package/README.md +95 -29
- package/dist/ScrollBar.d.cts +41 -35
- package/dist/ScrollBar.d.ts +41 -35
- package/dist/ScrollBar.d.ts.map +1 -1
- package/dist/ScrollPane.d.cts +12 -14
- package/dist/ScrollPane.d.ts +12 -14
- package/dist/ScrollPane.d.ts.map +1 -1
- package/dist/VirtualGrid.d.cts +6 -6
- package/dist/VirtualGrid.d.ts +6 -6
- package/dist/VirtualGrid.d.ts.map +1 -1
- package/dist/VirtualScroll.d.cts +72 -23
- package/dist/VirtualScroll.d.ts +72 -23
- package/dist/VirtualScroll.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2048 -2025
- package/dist/labels.d.cts +38 -7
- package/dist/labels.d.ts +38 -7
- package/dist/labels.d.ts.map +1 -1
- package/dist/styles/virtualscroll.css +1 -1
- package/dist/styles/virtualscroll.standalone.css +1 -1
- package/dist/utils.d.cts +14 -0
- package/dist/utils.d.ts +14 -0
- package/dist/utils.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/ScrollBar.tsx +91 -49
- package/src/ScrollPane.tsx +12 -14
- package/src/VirtualGrid.tsx +6 -6
- package/src/VirtualScroll.tsx +235 -116
- package/src/labels.ts +58 -7
- package/src/styles/virtualscroll.css +51 -3
- package/src/utils.ts +15 -0
package/src/VirtualGrid.tsx
CHANGED
|
@@ -229,7 +229,7 @@ export type VirtualGridRange = {
|
|
|
229
229
|
totalHeight: number
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
/** Live-region options: the consumer owns announcement wording/locale; the built-in catalog (`locale` / `labels`) covers only the
|
|
232
|
+
/** Live-region options: the consumer owns announcement wording/locale; the built-in catalog (`locale` / `labels`) covers only the eleven chrome strings (the scrollbar names, pills, empty state) — row-parity. / liveRegion オプション: 読み上げの文言とロケールは消費側所有。内蔵カタログ (`locale` / `labels`) はクローム 11 文言 (スクロールバーの名前・ピル・空状態) のみ対象 — 行側と同一方針。 */
|
|
233
233
|
export type VirtualGridLiveRegionOptions = {
|
|
234
234
|
/** Builds the announcement (same string = no re-announce, "" clears). / 読み上げ文言の組み立て (同一文字列 = 再読み上げなし、"" でクリア)。 */
|
|
235
235
|
buildMessage: (range: VirtualGridRange) => string
|
|
@@ -419,11 +419,11 @@ export type VirtualGridProps<T> = {
|
|
|
419
419
|
scrollBarOptions?: VirtualScrollScrollBarOptions
|
|
420
420
|
liveRegion?: VirtualGridLiveRegionOptions
|
|
421
421
|
/**
|
|
422
|
-
* UI chrome locale (default `"en"`), forwarded to the embedded vertical VirtualScroll (its
|
|
423
|
-
*
|
|
424
|
-
* arrows. An unsupported value throws a RangeError at render.
|
|
425
|
-
* UI クロームロケール (既定 `"en"`)。内蔵の縦 VirtualScroll (
|
|
426
|
-
* 空状態)
|
|
422
|
+
* UI chrome locale (default `"en"`), forwarded to the embedded vertical VirtualScroll (its bar's
|
|
423
|
+
* names and the 0-row / all-frozen / degenerate-band empty state) and the horizontal bar (the
|
|
424
|
+
* names of the bar, its thumb and its arrows). An unsupported value throws a RangeError at render.
|
|
425
|
+
* UI クロームロケール (既定 `"en"`)。内蔵の縦 VirtualScroll (バーの名前と 0 行・全行固定・退化帯の
|
|
426
|
+
* 空状態) と横バー (バー・つまみ・矢印の名前) へ転送。非対応値は描画時に RangeError。
|
|
427
427
|
*/
|
|
428
428
|
locale?: VirtualScrollLocale
|
|
429
429
|
/**
|