@aiquants/spreadsheet 0.13.1 → 0.15.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 +38 -0
- package/README.md +53 -7
- package/dist/index.cjs +8 -15
- package/dist/index.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +1176 -1255
- package/dist/styles/spreadsheet.standalone.css +1 -1
- package/dist/tsv-B6TDExlk.js +91 -0
- package/dist/tsv-BHXbWK5W.cjs +8 -0
- package/dist/tsv.cjs +1 -0
- package/dist/tsv.d.cts +13 -0
- package/dist/tsv.d.ts +13 -0
- package/dist/tsv.js +5 -0
- package/dist/view.cjs +1 -0
- package/dist/view.d.cts +49 -0
- package/dist/view.d.ts +49 -0
- package/dist/view.js +14 -0
- package/package.json +31 -7
- package/src/Spreadsheet.tsx +20 -50
- package/src/grid/GridBody.tsx +7 -6
- package/src/header/ColumnHeader.tsx +10 -6
- package/src/header/RowHeader.tsx +4 -3
- package/src/model/labels.ts +23 -22
- package/src/model/viewStore.ts +1 -4
- package/src/overlay/SelectionOverlay.tsx +3 -3
- package/src/popover/placement.ts +4 -4
- package/src/styles/spreadsheet.css +1 -1
- package/src/tsv.ts +13 -0
- package/src/view.ts +62 -0
package/dist/index.d.cts
CHANGED
|
@@ -1572,10 +1572,11 @@ export declare type SpreadsheetLabelOverrides = {
|
|
|
1572
1572
|
};
|
|
1573
1573
|
|
|
1574
1574
|
/**
|
|
1575
|
-
* The closed label vocabulary:
|
|
1576
|
-
* own keys of the spreadsheet. Every key has a value in
|
|
1575
|
+
* The closed label vocabulary: every engine chrome key of `@aiquants/virtualscroll`
|
|
1576
|
+
* (VIRTUAL_SCROLL_LABEL_KEYS) plus the 21 own keys of the spreadsheet. Every key has a value in
|
|
1577
|
+
* each SPREADSHEET_LABEL_CATALOGS entry;
|
|
1577
1578
|
* consumers override any subset through the `labels` prop (SpreadsheetLabelOverrides).
|
|
1578
|
-
* 閉じたラベル語彙: `@aiquants/virtualscroll`
|
|
1579
|
+
* 閉じたラベル語彙: `@aiquants/virtualscroll` のエンジンクロームキー全件 (VIRTUAL_SCROLL_LABEL_KEYS) とスプレッドシート固有の 21 キー。
|
|
1579
1580
|
* 全キーが SPREADSHEET_LABEL_CATALOGS の各ロケールに値を持ち、消費者は `labels` prop で任意の部分集合を上書き。
|
|
1580
1581
|
*/
|
|
1581
1582
|
export declare type SpreadsheetLabels = VirtualScrollLabels & {
|
|
@@ -1996,14 +1997,14 @@ export declare type SpreadsheetProps = {
|
|
|
1996
1997
|
locale?: SpreadsheetLocale;
|
|
1997
1998
|
/**
|
|
1998
1999
|
* UI label vocabulary (v0.8 §1.6) — folds the former `sinkAriaLabel` / `rootAriaLabel` props
|
|
1999
|
-
* (clean cut-over).
|
|
2000
|
-
*
|
|
2001
|
-
* explicitly `undefined` key keeps the value of the `locale` catalog. An unknown key
|
|
2002
|
-
* empty / blank value throws a RangeError during render, and the resolved `sinkAriaLabel`
|
|
2003
|
-
* mention "Escape" (WCAG 2.1.2 escape advisement, §10-4).
|
|
2000
|
+
* (clean cut-over). Keys = every engine chrome key of `@aiquants/virtualscroll`
|
|
2001
|
+
* (`VIRTUAL_SCROLL_LABEL_KEYS`, e.g. scrollUp / scrollToTop / noItems) + 21 own keys. An omitted
|
|
2002
|
+
* prop or an explicitly `undefined` key keeps the value of the `locale` catalog. An unknown key
|
|
2003
|
+
* or an empty / blank value throws a RangeError during render, and the resolved `sinkAriaLabel`
|
|
2004
|
+
* MUST mention "Escape" (WCAG 2.1.2 escape advisement, §10-4).
|
|
2004
2005
|
* UI ラベル語彙 (v0.8 §1.6) — 旧 sinkAriaLabel / rootAriaLabel prop を畳込み (クリーンカットオーバー)。
|
|
2005
|
-
*
|
|
2006
|
-
*
|
|
2006
|
+
* キー = `@aiquants/virtualscroll` のエンジンクロームキー全件 (`VIRTUAL_SCROLL_LABEL_KEYS` — scrollUp /
|
|
2007
|
+
* scrollToTop / noItems など) + 固有 21 キー。prop 省略 / 明示 undefined のキーは `locale` のカタログ値。
|
|
2007
2008
|
* 未知キー・空 / 空白値は render 中 RangeError、解決後の sinkAriaLabel は "Escape" を含むこと (§10-4)。
|
|
2008
2009
|
*/
|
|
2009
2010
|
labels?: SpreadsheetLabelOverrides;
|
|
@@ -2012,7 +2013,7 @@ export declare type SpreadsheetProps = {
|
|
|
2012
2013
|
* list, `null` unbinds it. Validated at prop time — a non-canonical chord, a modifier-less
|
|
2013
2014
|
* chord, a single string, an override of a non-rebindable row (`pasteSpecial`), a clash with
|
|
2014
2015
|
* a non-rebindable built-in row in the command's column, or one chord bound to two commands
|
|
2015
|
-
* throws a RangeError during render (`
|
|
2016
|
+
* throws a RangeError during render (`clampSpreadsheetZoom` precedent). Consulted through a ref.
|
|
2016
2017
|
* 再バインド可能なコマンドチョード (v0.8 §1.9 / ADR-17)。配列は既定一覧の置換、null は未束縛。
|
|
2017
2018
|
* prop 時検証 (非正準 / 修飾なし / 単一 string / 非再バインド行の上書き / 列内予約行との一致 /
|
|
2018
2019
|
* 二重束縛は render 中 RangeError)。ref 経由で参照。
|
package/dist/index.d.ts
CHANGED
|
@@ -1572,10 +1572,11 @@ export declare type SpreadsheetLabelOverrides = {
|
|
|
1572
1572
|
};
|
|
1573
1573
|
|
|
1574
1574
|
/**
|
|
1575
|
-
* The closed label vocabulary:
|
|
1576
|
-
* own keys of the spreadsheet. Every key has a value in
|
|
1575
|
+
* The closed label vocabulary: every engine chrome key of `@aiquants/virtualscroll`
|
|
1576
|
+
* (VIRTUAL_SCROLL_LABEL_KEYS) plus the 21 own keys of the spreadsheet. Every key has a value in
|
|
1577
|
+
* each SPREADSHEET_LABEL_CATALOGS entry;
|
|
1577
1578
|
* consumers override any subset through the `labels` prop (SpreadsheetLabelOverrides).
|
|
1578
|
-
* 閉じたラベル語彙: `@aiquants/virtualscroll`
|
|
1579
|
+
* 閉じたラベル語彙: `@aiquants/virtualscroll` のエンジンクロームキー全件 (VIRTUAL_SCROLL_LABEL_KEYS) とスプレッドシート固有の 21 キー。
|
|
1579
1580
|
* 全キーが SPREADSHEET_LABEL_CATALOGS の各ロケールに値を持ち、消費者は `labels` prop で任意の部分集合を上書き。
|
|
1580
1581
|
*/
|
|
1581
1582
|
export declare type SpreadsheetLabels = VirtualScrollLabels & {
|
|
@@ -1996,14 +1997,14 @@ export declare type SpreadsheetProps = {
|
|
|
1996
1997
|
locale?: SpreadsheetLocale;
|
|
1997
1998
|
/**
|
|
1998
1999
|
* UI label vocabulary (v0.8 §1.6) — folds the former `sinkAriaLabel` / `rootAriaLabel` props
|
|
1999
|
-
* (clean cut-over).
|
|
2000
|
-
*
|
|
2001
|
-
* explicitly `undefined` key keeps the value of the `locale` catalog. An unknown key
|
|
2002
|
-
* empty / blank value throws a RangeError during render, and the resolved `sinkAriaLabel`
|
|
2003
|
-
* mention "Escape" (WCAG 2.1.2 escape advisement, §10-4).
|
|
2000
|
+
* (clean cut-over). Keys = every engine chrome key of `@aiquants/virtualscroll`
|
|
2001
|
+
* (`VIRTUAL_SCROLL_LABEL_KEYS`, e.g. scrollUp / scrollToTop / noItems) + 21 own keys. An omitted
|
|
2002
|
+
* prop or an explicitly `undefined` key keeps the value of the `locale` catalog. An unknown key
|
|
2003
|
+
* or an empty / blank value throws a RangeError during render, and the resolved `sinkAriaLabel`
|
|
2004
|
+
* MUST mention "Escape" (WCAG 2.1.2 escape advisement, §10-4).
|
|
2004
2005
|
* UI ラベル語彙 (v0.8 §1.6) — 旧 sinkAriaLabel / rootAriaLabel prop を畳込み (クリーンカットオーバー)。
|
|
2005
|
-
*
|
|
2006
|
-
*
|
|
2006
|
+
* キー = `@aiquants/virtualscroll` のエンジンクロームキー全件 (`VIRTUAL_SCROLL_LABEL_KEYS` — scrollUp /
|
|
2007
|
+
* scrollToTop / noItems など) + 固有 21 キー。prop 省略 / 明示 undefined のキーは `locale` のカタログ値。
|
|
2007
2008
|
* 未知キー・空 / 空白値は render 中 RangeError、解決後の sinkAriaLabel は "Escape" を含むこと (§10-4)。
|
|
2008
2009
|
*/
|
|
2009
2010
|
labels?: SpreadsheetLabelOverrides;
|
|
@@ -2012,7 +2013,7 @@ export declare type SpreadsheetProps = {
|
|
|
2012
2013
|
* list, `null` unbinds it. Validated at prop time — a non-canonical chord, a modifier-less
|
|
2013
2014
|
* chord, a single string, an override of a non-rebindable row (`pasteSpecial`), a clash with
|
|
2014
2015
|
* a non-rebindable built-in row in the command's column, or one chord bound to two commands
|
|
2015
|
-
* throws a RangeError during render (`
|
|
2016
|
+
* throws a RangeError during render (`clampSpreadsheetZoom` precedent). Consulted through a ref.
|
|
2016
2017
|
* 再バインド可能なコマンドチョード (v0.8 §1.9 / ADR-17)。配列は既定一覧の置換、null は未束縛。
|
|
2017
2018
|
* prop 時検証 (非正準 / 修飾なし / 単一 string / 非再バインド行の上書き / 列内予約行との一致 /
|
|
2018
2019
|
* 二重束縛は render 中 RangeError)。ref 経由で参照。
|