@react-aria/table 3.0.0-beta.0 → 3.0.0-nightly-641446f65-240905
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/dist/TableKeyboardDelegate.main.js +132 -0
- package/dist/TableKeyboardDelegate.main.js.map +1 -0
- package/dist/TableKeyboardDelegate.mjs +127 -0
- package/dist/TableKeyboardDelegate.module.js +127 -0
- package/dist/TableKeyboardDelegate.module.js.map +1 -0
- package/dist/ar-AE.main.js +14 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +16 -0
- package/dist/ar-AE.module.js +16 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +14 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +16 -0
- package/dist/bg-BG.module.js +16 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +14 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +16 -0
- package/dist/cs-CZ.module.js +16 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +14 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +16 -0
- package/dist/da-DK.module.js +16 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +14 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +16 -0
- package/dist/de-DE.module.js +16 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +14 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +16 -0
- package/dist/el-GR.module.js +16 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +14 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +16 -0
- package/dist/en-US.module.js +16 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +14 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +16 -0
- package/dist/es-ES.module.js +16 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +14 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +16 -0
- package/dist/et-EE.module.js +16 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +14 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +16 -0
- package/dist/fi-FI.module.js +16 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +14 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +16 -0
- package/dist/fr-FR.module.js +16 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +14 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +16 -0
- package/dist/he-IL.module.js +16 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +14 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +16 -0
- package/dist/hr-HR.module.js +16 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +14 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +16 -0
- package/dist/hu-HU.module.js +16 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +34 -0
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.main.js +14 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +16 -0
- package/dist/it-IT.module.js +16 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +14 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +16 -0
- package/dist/ja-JP.module.js +16 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +14 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +16 -0
- package/dist/ko-KR.module.js +16 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +14 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +16 -0
- package/dist/lt-LT.module.js +16 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +14 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +16 -0
- package/dist/lv-LV.module.js +16 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +26 -466
- package/dist/main.js.map +1 -1
- package/dist/module.js +12 -422
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +14 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +16 -0
- package/dist/nb-NO.module.js +16 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +14 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +16 -0
- package/dist/nl-NL.module.js +16 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +14 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +16 -0
- package/dist/pl-PL.module.js +16 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +14 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +16 -0
- package/dist/pt-BR.module.js +16 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +14 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +16 -0
- package/dist/pt-PT.module.js +16 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +14 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +16 -0
- package/dist/ro-RO.module.js +16 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +14 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +16 -0
- package/dist/ru-RU.module.js +16 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +14 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +16 -0
- package/dist/sk-SK.module.js +16 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +14 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +16 -0
- package/dist/sl-SI.module.js +16 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +14 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +16 -0
- package/dist/sr-SP.module.js +16 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +14 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +16 -0
- package/dist/sv-SE.module.js +16 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +14 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +16 -0
- package/dist/tr-TR.module.js +16 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +102 -43
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +14 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +16 -0
- package/dist/uk-UA.module.js +16 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/useTable.main.js +113 -0
- package/dist/useTable.main.js.map +1 -0
- package/dist/useTable.mjs +108 -0
- package/dist/useTable.module.js +108 -0
- package/dist/useTable.module.js.map +1 -0
- package/dist/useTableCell.main.js +36 -0
- package/dist/useTableCell.main.js.map +1 -0
- package/dist/useTableCell.mjs +31 -0
- package/dist/useTableCell.module.js +31 -0
- package/dist/useTableCell.module.js.map +1 -0
- package/dist/useTableColumnHeader.main.js +93 -0
- package/dist/useTableColumnHeader.main.js.map +1 -0
- package/dist/useTableColumnHeader.mjs +88 -0
- package/dist/useTableColumnHeader.module.js +88 -0
- package/dist/useTableColumnHeader.module.js.map +1 -0
- package/dist/useTableColumnResize.main.js +216 -0
- package/dist/useTableColumnResize.main.js.map +1 -0
- package/dist/useTableColumnResize.mjs +211 -0
- package/dist/useTableColumnResize.module.js +211 -0
- package/dist/useTableColumnResize.module.js.map +1 -0
- package/dist/useTableHeaderRow.main.js +32 -0
- package/dist/useTableHeaderRow.main.js.map +1 -0
- package/dist/useTableHeaderRow.mjs +27 -0
- package/dist/useTableHeaderRow.module.js +27 -0
- package/dist/useTableHeaderRow.module.js.map +1 -0
- package/dist/useTableRow.main.js +81 -0
- package/dist/useTableRow.main.js.map +1 -0
- package/dist/useTableRow.mjs +76 -0
- package/dist/useTableRow.module.js +76 -0
- package/dist/useTableRow.module.js.map +1 -0
- package/dist/useTableSelectionCheckbox.main.js +56 -0
- package/dist/useTableSelectionCheckbox.main.js.map +1 -0
- package/dist/useTableSelectionCheckbox.mjs +50 -0
- package/dist/useTableSelectionCheckbox.module.js +50 -0
- package/dist/useTableSelectionCheckbox.module.js.map +1 -0
- package/dist/utils.main.js +43 -0
- package/dist/utils.main.js.map +1 -0
- package/dist/utils.mjs +35 -0
- package/dist/utils.module.js +35 -0
- package/dist/utils.module.js.map +1 -0
- package/dist/zh-CN.main.js +14 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +16 -0
- package/dist/zh-CN.module.js +16 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +14 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +16 -0
- package/dist/zh-TW.module.js +16 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +25 -17
- package/src/TableKeyboardDelegate.ts +18 -10
- package/src/index.ts +21 -7
- package/src/useTable.ts +65 -44
- package/src/useTableCell.ts +59 -0
- package/src/useTableColumnHeader.ts +58 -25
- package/src/useTableColumnResize.ts +275 -0
- package/src/useTableHeaderRow.ts +42 -0
- package/src/useTableRow.ts +60 -6
- package/src/useTableSelectionCheckbox.ts +20 -27
- package/src/utils.ts +1 -1
- package/LICENSE +0 -201
- package/src/useTableRowHeader.ts +0 -51
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var $52535c35c24ec937$exports = {};
|
|
2
|
+
$52535c35c24ec937$exports = {
|
|
3
|
+
"ascending": `\u{C624}\u{B984}\u{CC28}\u{C21C}`,
|
|
4
|
+
"ascendingSort": (args)=>`${args.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
|
|
5
|
+
"columnSize": (args)=>`${args.value} \u{D53D}\u{C140}`,
|
|
6
|
+
"descending": `\u{B0B4}\u{B9BC}\u{CC28}\u{C21C}`,
|
|
7
|
+
"descendingSort": (args)=>`${args.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{B0B4}\u{B9BC}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
|
|
8
|
+
"resizerDescription": `\u{D06C}\u{AE30} \u{C870}\u{C815}\u{C744} \u{C2DC}\u{C791}\u{D558}\u{B824}\u{BA74} Enter\u{B97C} \u{B204}\u{B974}\u{C138}\u{C694}.`,
|
|
9
|
+
"select": `\u{C120}\u{D0DD}`,
|
|
10
|
+
"selectAll": `\u{BAA8}\u{B450} \u{C120}\u{D0DD}`,
|
|
11
|
+
"sortable": `\u{C815}\u{B82C} \u{AC00}\u{B2A5}\u{D55C} \u{C5F4}`
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export {$52535c35c24ec937$exports as default};
|
|
16
|
+
//# sourceMappingURL=ko-KR.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,aAAa,CAAC,gCAAI,CAAC;IACrC,iBAAiB,CAAC,OAAS,CAAC,EAAE,KAAK,UAAU,CAAC,4HAAmB,CAAC;IAClE,cAAc,CAAC,OAAS,CAAC,EAAE,KAAK,KAAK,CAAC,iBAAG,CAAC;IAC1C,cAAc,CAAC,gCAAI,CAAC;IACpB,kBAAkB,CAAC,OAAS,CAAC,EAAE,KAAK,UAAU,CAAC,4HAAmB,CAAC;IACnE,sBAAsB,CAAC,kIAAyB,CAAC;IACjD,UAAU,CAAC,gBAAE,CAAC;IACd,aAAa,CAAC,iCAAK,CAAC;IACpB,YAAY,CAAC,kDAAQ,CAAC;AACxB","sources":["packages/@react-aria/table/intl/ko-KR.json"],"sourcesContent":["{\n \"ascending\": \"오름차순\",\n \"ascendingSort\": \"{columnName} 열을 기준으로 오름차순으로 정렬됨\",\n \"columnSize\": \"{value} 픽셀\",\n \"descending\": \"내림차순\",\n \"descendingSort\": \"{columnName} 열을 기준으로 내림차순으로 정렬됨\",\n \"resizerDescription\": \"크기 조정을 시작하려면 Enter를 누르세요.\",\n \"select\": \"선택\",\n \"selectAll\": \"모두 선택\",\n \"sortable\": \"정렬 가능한 열\"\n}\n"],"names":[],"version":3,"file":"ko-KR.module.js.map"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"ascending": `did\u{117}jan\u{10D}ia tvarka`,
|
|
3
|
+
"ascendingSort": (args)=>`surikiuota pagal stulpel\u{12F} ${args.columnName} did\u{117}jan\u{10D}ia tvarka`,
|
|
4
|
+
"columnSize": (args)=>`${args.value} piks.`,
|
|
5
|
+
"descending": `ma\u{17E}\u{117}jan\u{10D}ia tvarka`,
|
|
6
|
+
"descendingSort": (args)=>`surikiuota pagal stulpel\u{12F} ${args.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,
|
|
7
|
+
"resizerDescription": `Paspauskite \u{201E}Enter\u{201C}, kad prad\u{117}tum\u{117}te keisti dyd\u{12F}`,
|
|
8
|
+
"select": `Pasirinkti`,
|
|
9
|
+
"selectAll": `Pasirinkti visk\u{105}`,
|
|
10
|
+
"sortable": `rikiuojamas stulpelis`
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=lt-LT.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,6BAAiB,CAAC;IAClD,iBAAiB,CAAC,OAAS,CAAC,gCAA0B,EAAE,KAAK,UAAU,CAAC,8BAAkB,CAAC;IAC3F,cAAc,CAAC,OAAS,CAAC,EAAE,KAAK,KAAK,CAAC,MAAM,CAAC;IAC7C,cAAc,CAAC,mCAAiB,CAAC;IACjC,kBAAkB,CAAC,OAAS,CAAC,gCAA0B,EAAE,KAAK,UAAU,CAAC,oCAAkB,CAAC;IAC5F,sBAAsB,CAAC,gFAAgD,CAAC;IACxE,UAAU,CAAC,UAAU,CAAC;IACtB,aAAa,CAAC,sBAAgB,CAAC;IAC/B,YAAY,CAAC,qBAAqB,CAAC;AACrC","sources":["packages/@react-aria/table/intl/lt-LT.json"],"sourcesContent":["{\n \"ascending\": \"didėjančia tvarka\",\n \"ascendingSort\": \"surikiuota pagal stulpelį {columnName} didėjančia tvarka\",\n \"columnSize\": \"{value} piks.\",\n \"descending\": \"mažėjančia tvarka\",\n \"descendingSort\": \"surikiuota pagal stulpelį {columnName} mažėjančia tvarka\",\n \"resizerDescription\": \"Paspauskite „Enter“, kad pradėtumėte keisti dydį\",\n \"select\": \"Pasirinkti\",\n \"selectAll\": \"Pasirinkti viską\",\n \"sortable\": \"rikiuojamas stulpelis\"\n}\n"],"names":[],"version":3,"file":"lt-LT.main.js.map"}
|
package/dist/lt-LT.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var $b37ee03672edfd1d$exports = {};
|
|
2
|
+
$b37ee03672edfd1d$exports = {
|
|
3
|
+
"ascending": `did\u{117}jan\u{10D}ia tvarka`,
|
|
4
|
+
"ascendingSort": (args)=>`surikiuota pagal stulpel\u{12F} ${args.columnName} did\u{117}jan\u{10D}ia tvarka`,
|
|
5
|
+
"columnSize": (args)=>`${args.value} piks.`,
|
|
6
|
+
"descending": `ma\u{17E}\u{117}jan\u{10D}ia tvarka`,
|
|
7
|
+
"descendingSort": (args)=>`surikiuota pagal stulpel\u{12F} ${args.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,
|
|
8
|
+
"resizerDescription": `Paspauskite \u{201E}Enter\u{201C}, kad prad\u{117}tum\u{117}te keisti dyd\u{12F}`,
|
|
9
|
+
"select": `Pasirinkti`,
|
|
10
|
+
"selectAll": `Pasirinkti visk\u{105}`,
|
|
11
|
+
"sortable": `rikiuojamas stulpelis`
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export {$b37ee03672edfd1d$exports as default};
|
|
16
|
+
//# sourceMappingURL=lt-LT.module.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var $b37ee03672edfd1d$exports = {};
|
|
2
|
+
$b37ee03672edfd1d$exports = {
|
|
3
|
+
"ascending": `did\u{117}jan\u{10D}ia tvarka`,
|
|
4
|
+
"ascendingSort": (args)=>`surikiuota pagal stulpel\u{12F} ${args.columnName} did\u{117}jan\u{10D}ia tvarka`,
|
|
5
|
+
"columnSize": (args)=>`${args.value} piks.`,
|
|
6
|
+
"descending": `ma\u{17E}\u{117}jan\u{10D}ia tvarka`,
|
|
7
|
+
"descendingSort": (args)=>`surikiuota pagal stulpel\u{12F} ${args.columnName} ma\u{17E}\u{117}jan\u{10D}ia tvarka`,
|
|
8
|
+
"resizerDescription": `Paspauskite \u{201E}Enter\u{201C}, kad prad\u{117}tum\u{117}te keisti dyd\u{12F}`,
|
|
9
|
+
"select": `Pasirinkti`,
|
|
10
|
+
"selectAll": `Pasirinkti visk\u{105}`,
|
|
11
|
+
"sortable": `rikiuojamas stulpelis`
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export {$b37ee03672edfd1d$exports as default};
|
|
16
|
+
//# sourceMappingURL=lt-LT.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,aAAa,CAAC,6BAAiB,CAAC;IAClD,iBAAiB,CAAC,OAAS,CAAC,gCAA0B,EAAE,KAAK,UAAU,CAAC,8BAAkB,CAAC;IAC3F,cAAc,CAAC,OAAS,CAAC,EAAE,KAAK,KAAK,CAAC,MAAM,CAAC;IAC7C,cAAc,CAAC,mCAAiB,CAAC;IACjC,kBAAkB,CAAC,OAAS,CAAC,gCAA0B,EAAE,KAAK,UAAU,CAAC,oCAAkB,CAAC;IAC5F,sBAAsB,CAAC,gFAAgD,CAAC;IACxE,UAAU,CAAC,UAAU,CAAC;IACtB,aAAa,CAAC,sBAAgB,CAAC;IAC/B,YAAY,CAAC,qBAAqB,CAAC;AACrC","sources":["packages/@react-aria/table/intl/lt-LT.json"],"sourcesContent":["{\n \"ascending\": \"didėjančia tvarka\",\n \"ascendingSort\": \"surikiuota pagal stulpelį {columnName} didėjančia tvarka\",\n \"columnSize\": \"{value} piks.\",\n \"descending\": \"mažėjančia tvarka\",\n \"descendingSort\": \"surikiuota pagal stulpelį {columnName} mažėjančia tvarka\",\n \"resizerDescription\": \"Paspauskite „Enter“, kad pradėtumėte keisti dydį\",\n \"select\": \"Pasirinkti\",\n \"selectAll\": \"Pasirinkti viską\",\n \"sortable\": \"rikiuojamas stulpelis\"\n}\n"],"names":[],"version":3,"file":"lt-LT.module.js.map"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"ascending": `augo\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
3
|
+
"ascendingSort": (args)=>`k\u{101}rtots p\u{113}c kolonnas ${args.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
4
|
+
"columnSize": (args)=>`${args.value} pikse\u{13C}i`,
|
|
5
|
+
"descending": `dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
6
|
+
"descendingSort": (args)=>`k\u{101}rtots p\u{113}c kolonnas ${args.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
7
|
+
"resizerDescription": `Nospiediet Enter, lai s\u{101}ktu izm\u{113}ru main\u{12B}\u{161}anu`,
|
|
8
|
+
"select": `Atlas\u{12B}t`,
|
|
9
|
+
"selectAll": `Atlas\u{12B}t visu`,
|
|
10
|
+
"sortable": `k\u{101}rtojam\u{101} kolonna`
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=lv-LV.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,qCAAa,CAAC;IAC9C,iBAAiB,CAAC,OAAS,CAAC,iCAAqB,EAAE,KAAK,UAAU,CAAC,sCAAc,CAAC;IAClF,cAAc,CAAC,OAAS,CAAC,EAAE,KAAK,KAAK,CAAC,cAAQ,CAAC;IAC/C,cAAc,CAAC,uCAAe,CAAC;IAC/B,kBAAkB,CAAC,OAAS,CAAC,iCAAqB,EAAE,KAAK,UAAU,CAAC,wCAAgB,CAAC;IACrF,sBAAsB,CAAC,oEAA4C,CAAC;IACpE,UAAU,CAAC,aAAO,CAAC;IACnB,aAAa,CAAC,kBAAY,CAAC;IAC3B,YAAY,CAAC,6BAAiB,CAAC;AACjC","sources":["packages/@react-aria/table/intl/lv-LV.json"],"sourcesContent":["{\n \"ascending\": \"augošā secībā\",\n \"ascendingSort\": \"kārtots pēc kolonnas {columnName} augošā secībā\",\n \"columnSize\": \"{value} pikseļi\",\n \"descending\": \"dilstošā secībā\",\n \"descendingSort\": \"kārtots pēc kolonnas {columnName} dilstošā secībā\",\n \"resizerDescription\": \"Nospiediet Enter, lai sāktu izmēru mainīšanu\",\n \"select\": \"Atlasīt\",\n \"selectAll\": \"Atlasīt visu\",\n \"sortable\": \"kārtojamā kolonna\"\n}\n"],"names":[],"version":3,"file":"lv-LV.main.js.map"}
|
package/dist/lv-LV.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var $c7df6686b4189d56$exports = {};
|
|
2
|
+
$c7df6686b4189d56$exports = {
|
|
3
|
+
"ascending": `augo\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
4
|
+
"ascendingSort": (args)=>`k\u{101}rtots p\u{113}c kolonnas ${args.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
5
|
+
"columnSize": (args)=>`${args.value} pikse\u{13C}i`,
|
|
6
|
+
"descending": `dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
7
|
+
"descendingSort": (args)=>`k\u{101}rtots p\u{113}c kolonnas ${args.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
8
|
+
"resizerDescription": `Nospiediet Enter, lai s\u{101}ktu izm\u{113}ru main\u{12B}\u{161}anu`,
|
|
9
|
+
"select": `Atlas\u{12B}t`,
|
|
10
|
+
"selectAll": `Atlas\u{12B}t visu`,
|
|
11
|
+
"sortable": `k\u{101}rtojam\u{101} kolonna`
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export {$c7df6686b4189d56$exports as default};
|
|
16
|
+
//# sourceMappingURL=lv-LV.module.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var $c7df6686b4189d56$exports = {};
|
|
2
|
+
$c7df6686b4189d56$exports = {
|
|
3
|
+
"ascending": `augo\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
4
|
+
"ascendingSort": (args)=>`k\u{101}rtots p\u{113}c kolonnas ${args.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
5
|
+
"columnSize": (args)=>`${args.value} pikse\u{13C}i`,
|
|
6
|
+
"descending": `dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
7
|
+
"descendingSort": (args)=>`k\u{101}rtots p\u{113}c kolonnas ${args.columnName} dilsto\u{161}\u{101} sec\u{12B}b\u{101}`,
|
|
8
|
+
"resizerDescription": `Nospiediet Enter, lai s\u{101}ktu izm\u{113}ru main\u{12B}\u{161}anu`,
|
|
9
|
+
"select": `Atlas\u{12B}t`,
|
|
10
|
+
"selectAll": `Atlas\u{12B}t visu`,
|
|
11
|
+
"sortable": `k\u{101}rtojam\u{101} kolonna`
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export {$c7df6686b4189d56$exports as default};
|
|
16
|
+
//# sourceMappingURL=lv-LV.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,aAAa,CAAC,qCAAa,CAAC;IAC9C,iBAAiB,CAAC,OAAS,CAAC,iCAAqB,EAAE,KAAK,UAAU,CAAC,sCAAc,CAAC;IAClF,cAAc,CAAC,OAAS,CAAC,EAAE,KAAK,KAAK,CAAC,cAAQ,CAAC;IAC/C,cAAc,CAAC,uCAAe,CAAC;IAC/B,kBAAkB,CAAC,OAAS,CAAC,iCAAqB,EAAE,KAAK,UAAU,CAAC,wCAAgB,CAAC;IACrF,sBAAsB,CAAC,oEAA4C,CAAC;IACpE,UAAU,CAAC,aAAO,CAAC;IACnB,aAAa,CAAC,kBAAY,CAAC;IAC3B,YAAY,CAAC,6BAAiB,CAAC;AACjC","sources":["packages/@react-aria/table/intl/lv-LV.json"],"sourcesContent":["{\n \"ascending\": \"augošā secībā\",\n \"ascendingSort\": \"kārtots pēc kolonnas {columnName} augošā secībā\",\n \"columnSize\": \"{value} pikseļi\",\n \"descending\": \"dilstošā secībā\",\n \"descendingSort\": \"kārtots pēc kolonnas {columnName} dilstošā secībā\",\n \"resizerDescription\": \"Nospiediet Enter, lai sāktu izmēru mainīšanu\",\n \"select\": \"Atlasīt\",\n \"selectAll\": \"Atlasīt visu\",\n \"sortable\": \"kārtojamā kolonna\"\n}\n"],"names":[],"version":3,"file":"lv-LV.module.js.map"}
|
package/dist/main.js
CHANGED
|
@@ -1,42 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var {
|
|
26
|
-
useGridCell,
|
|
27
|
-
useGridRowGroup,
|
|
28
|
-
useGrid,
|
|
29
|
-
GridKeyboardDelegate,
|
|
30
|
-
useGridRow
|
|
31
|
-
} = require("@react-aria/grid");
|
|
32
|
-
|
|
33
|
-
exports.useTableRowGroup = useGridRowGroup;
|
|
34
|
-
exports.useTableCell = useGridCell;
|
|
35
|
-
|
|
36
|
-
function $parcel$interopDefault(a) {
|
|
37
|
-
return a && a.__esModule ? a.default : a;
|
|
38
|
-
}
|
|
39
|
-
|
|
1
|
+
var $25d14c0f8fad722e$exports = require("./useTable.main.js");
|
|
2
|
+
var $7669c34a63ef0113$exports = require("./useTableColumnHeader.main.js");
|
|
3
|
+
var $10b2115217af7c93$exports = require("./useTableRow.main.js");
|
|
4
|
+
var $eb16c38321a72835$exports = require("./useTableHeaderRow.main.js");
|
|
5
|
+
var $32387a1f2c61cda2$exports = require("./useTableCell.main.js");
|
|
6
|
+
var $0b394e4562ac57c9$exports = require("./useTableSelectionCheckbox.main.js");
|
|
7
|
+
var $16d645f9e2153641$exports = require("./useTableColumnResize.main.js");
|
|
8
|
+
var $kJQf8$reactariagrid = require("@react-aria/grid");
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
function $parcel$export(e, n, v, s) {
|
|
12
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$parcel$export(module.exports, "useTableRowGroup", () => $cd66afe5decb6adb$export$6fb1613bd7b28198);
|
|
16
|
+
$parcel$export(module.exports, "useTable", () => $25d14c0f8fad722e$exports.useTable);
|
|
17
|
+
$parcel$export(module.exports, "useTableColumnHeader", () => $7669c34a63ef0113$exports.useTableColumnHeader);
|
|
18
|
+
$parcel$export(module.exports, "useTableRow", () => $10b2115217af7c93$exports.useTableRow);
|
|
19
|
+
$parcel$export(module.exports, "useTableHeaderRow", () => $eb16c38321a72835$exports.useTableHeaderRow);
|
|
20
|
+
$parcel$export(module.exports, "useTableCell", () => $32387a1f2c61cda2$exports.useTableCell);
|
|
21
|
+
$parcel$export(module.exports, "useTableSelectionCheckbox", () => $0b394e4562ac57c9$exports.useTableSelectionCheckbox);
|
|
22
|
+
$parcel$export(module.exports, "useTableSelectAllCheckbox", () => $0b394e4562ac57c9$exports.useTableSelectAllCheckbox);
|
|
23
|
+
$parcel$export(module.exports, "useTableColumnResize", () => $16d645f9e2153641$exports.useTableColumnResize);
|
|
40
24
|
/*
|
|
41
25
|
* Copyright 2020 Adobe. All rights reserved.
|
|
42
26
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -47,441 +31,17 @@ function $parcel$interopDefault(a) {
|
|
|
47
31
|
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
48
32
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
49
33
|
* governing permissions and limitations under the License.
|
|
50
|
-
*/
|
|
51
|
-
const $b62c6c69dd91ba8b8df7cfb5ba576$export$gridIds = new WeakMap();
|
|
52
|
-
|
|
53
|
-
function $b62c6c69dd91ba8b8df7cfb5ba576$var$normalizeKey(key) {
|
|
54
|
-
if (typeof key === 'string') {
|
|
55
|
-
return key.replace(/\s*/g, '');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return '' + key;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function $b62c6c69dd91ba8b8df7cfb5ba576$export$getColumnHeaderId(state, columnKey) {
|
|
62
|
-
let gridId = $b62c6c69dd91ba8b8df7cfb5ba576$export$gridIds.get(state);
|
|
63
|
-
|
|
64
|
-
if (!gridId) {
|
|
65
|
-
throw new Error('Unknown grid');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return gridId + "-" + $b62c6c69dd91ba8b8df7cfb5ba576$var$normalizeKey(columnKey);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function $b62c6c69dd91ba8b8df7cfb5ba576$export$getCellId(state, rowKey, columnKey) {
|
|
72
|
-
let gridId = $b62c6c69dd91ba8b8df7cfb5ba576$export$gridIds.get(state);
|
|
73
|
-
|
|
74
|
-
if (!gridId) {
|
|
75
|
-
throw new Error('Unknown grid');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return gridId + "-" + $b62c6c69dd91ba8b8df7cfb5ba576$var$normalizeKey(rowKey) + "-" + $b62c6c69dd91ba8b8df7cfb5ba576$var$normalizeKey(columnKey);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function $b62c6c69dd91ba8b8df7cfb5ba576$export$getRowLabelledBy(state, rowKey) {
|
|
82
|
-
// A row is labelled by it's row headers.
|
|
83
|
-
return [...state.collection.rowHeaderColumnKeys].map(columnKey => $b62c6c69dd91ba8b8df7cfb5ba576$export$getCellId(state, rowKey, columnKey)).join(' ');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
class $d19e2fa944f991da21b1694810eb968d$export$TableKeyboardDelegate extends GridKeyboardDelegate {
|
|
87
|
-
isCell(node) {
|
|
88
|
-
return node.type === 'cell' || node.type === 'rowheader' || node.type === 'column';
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
getKeyBelow(key) {
|
|
92
|
-
let startItem = this.collection.getItem(key);
|
|
93
|
-
|
|
94
|
-
if (!startItem) {
|
|
95
|
-
return;
|
|
96
|
-
} // If focus was on a column, then focus the first child column if any,
|
|
97
|
-
// or find the corresponding cell in the first row.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
if (startItem.type === 'column') {
|
|
101
|
-
let child = [...startItem.childNodes][0];
|
|
102
|
-
|
|
103
|
-
if (child) {
|
|
104
|
-
return child.key;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
let firstItem = this.collection.getItem(this.getFirstKey());
|
|
108
|
-
return [...firstItem.childNodes][startItem.index].key;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return super.getKeyBelow(key);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
getKeyAbove(key) {
|
|
115
|
-
let startItem = this.collection.getItem(key);
|
|
116
|
-
|
|
117
|
-
if (!startItem) {
|
|
118
|
-
return;
|
|
119
|
-
} // If focus was on a column, focus the parent column if any
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (startItem.type === 'column') {
|
|
123
|
-
let parent = this.collection.getItem(startItem.parentKey);
|
|
124
|
-
|
|
125
|
-
if (parent && parent.type === 'column') {
|
|
126
|
-
return parent.key;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
return;
|
|
130
|
-
} // only return above row key if not header row
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
let superKey = super.getKeyAbove(key);
|
|
134
|
-
|
|
135
|
-
if (superKey && this.collection.getItem(superKey).type !== 'headerrow') {
|
|
136
|
-
return superKey;
|
|
137
|
-
} // If no item was found, and focus was on a cell, then focus the
|
|
138
|
-
// corresponding column header.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (this.isCell(startItem)) {
|
|
142
|
-
return this.collection.columns[startItem.index].key;
|
|
143
|
-
} // If focus was on a row, then focus the first column header.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return this.collection.columns[0].key;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
findNextColumnKey(column) {
|
|
150
|
-
// Search following columns
|
|
151
|
-
let key = this.findNextKey(column.key, item => item.type === 'column');
|
|
152
|
-
|
|
153
|
-
if (key != null) {
|
|
154
|
-
return key;
|
|
155
|
-
} // Wrap around to the first column
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
let row = this.collection.headerRows[column.level];
|
|
159
|
-
|
|
160
|
-
for (let item of row.childNodes) {
|
|
161
|
-
if (item.type === 'column') {
|
|
162
|
-
return item.key;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
findPreviousColumnKey(column) {
|
|
168
|
-
// Search previous columns
|
|
169
|
-
let key = this.findPreviousKey(column.key, item => item.type === 'column');
|
|
170
|
-
|
|
171
|
-
if (key != null) {
|
|
172
|
-
return key;
|
|
173
|
-
} // Wrap around to the last column
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
let row = this.collection.headerRows[column.level];
|
|
177
|
-
let childNodes = [...row.childNodes];
|
|
178
|
-
|
|
179
|
-
for (let i = childNodes.length - 1; i >= 0; i--) {
|
|
180
|
-
let item = childNodes[i];
|
|
181
|
-
|
|
182
|
-
if (item.type === 'column') {
|
|
183
|
-
return item.key;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
34
|
+
*/
|
|
187
35
|
|
|
188
|
-
getKeyRightOf(key) {
|
|
189
|
-
let item = this.collection.getItem(key);
|
|
190
36
|
|
|
191
|
-
if (!item) {
|
|
192
|
-
return;
|
|
193
|
-
} // If focus was on a column, then focus the next column
|
|
194
37
|
|
|
195
38
|
|
|
196
|
-
if (item.type === 'column') {
|
|
197
|
-
return this.direction === 'rtl' ? this.findPreviousColumnKey(item) : this.findNextColumnKey(item);
|
|
198
|
-
}
|
|
199
39
|
|
|
200
|
-
return super.getKeyRightOf(key);
|
|
201
|
-
}
|
|
202
40
|
|
|
203
|
-
getKeyLeftOf(key) {
|
|
204
|
-
let item = this.collection.getItem(key);
|
|
205
|
-
|
|
206
|
-
if (!item) {
|
|
207
|
-
return;
|
|
208
|
-
} // If focus was on a column, then focus the previous column
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (item.type === 'column') {
|
|
212
|
-
return this.direction === 'rtl' ? this.findNextColumnKey(item) : this.findPreviousColumnKey(item);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
return super.getKeyLeftOf(key);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
getKeyForSearch(search, fromKey) {
|
|
219
|
-
if (!this.collator) {
|
|
220
|
-
return null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
let collection = this.collection;
|
|
224
|
-
let key = fromKey != null ? fromKey : this.getFirstKey(); // If the starting key is a cell, search from its parent row.
|
|
225
|
-
|
|
226
|
-
let startItem = collection.getItem(key);
|
|
227
|
-
|
|
228
|
-
if (startItem.type === 'cell') {
|
|
229
|
-
key = startItem.parentKey;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
let hasWrapped = false;
|
|
233
|
-
|
|
234
|
-
while (key != null) {
|
|
235
|
-
let item = collection.getItem(key); // Check each of the row header cells in this row for a match
|
|
236
|
-
|
|
237
|
-
for (let cell of item.childNodes) {
|
|
238
|
-
let column = collection.columns[cell.index];
|
|
239
|
-
|
|
240
|
-
if (collection.rowHeaderColumnKeys.has(column.key) && cell.textValue) {
|
|
241
|
-
let substring = cell.textValue.slice(0, search.length);
|
|
242
|
-
|
|
243
|
-
if (this.collator.compare(substring, search) === 0) {
|
|
244
|
-
// If we started on a cell, end on the matching cell. Otherwise, end on the row.
|
|
245
|
-
let fromItem = fromKey != null ? collection.getItem(fromKey) : startItem;
|
|
246
|
-
return fromItem.type === 'cell' ? cell.key : item.key;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
key = this.getKeyBelow(key); // Wrap around when reaching the end of the collection
|
|
252
|
-
|
|
253
|
-
if (key == null && !hasWrapped) {
|
|
254
|
-
key = this.getFirstKey();
|
|
255
|
-
hasWrapped = true;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
return null;
|
|
260
|
-
}
|
|
261
41
|
|
|
42
|
+
function $cd66afe5decb6adb$export$6fb1613bd7b28198() {
|
|
43
|
+
return (0, $kJQf8$reactariagrid.useGridRowGroup)();
|
|
262
44
|
}
|
|
263
45
|
|
|
264
|
-
/**
|
|
265
|
-
* Provides the behavior and accessibility implementation for a table component.
|
|
266
|
-
* A table displays data in one or more rows and columns and enables a user to navigate its contents via directional navigation keys.
|
|
267
|
-
* @param props - Props for the table.
|
|
268
|
-
* @param state - State for the table, as returned by `useTableState`.
|
|
269
|
-
*/
|
|
270
|
-
function useTable(props, state) {
|
|
271
|
-
let {
|
|
272
|
-
ref,
|
|
273
|
-
keyboardDelegate,
|
|
274
|
-
isVirtualized,
|
|
275
|
-
layout
|
|
276
|
-
} = props; // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
|
|
277
|
-
// When virtualized, the layout object will be passed in as a prop and override this.
|
|
278
|
-
|
|
279
|
-
let collator = useCollator({
|
|
280
|
-
usage: 'search',
|
|
281
|
-
sensitivity: 'base'
|
|
282
|
-
});
|
|
283
|
-
let {
|
|
284
|
-
direction
|
|
285
|
-
} = useLocale();
|
|
286
|
-
let delegate = useMemo(() => keyboardDelegate || new $d19e2fa944f991da21b1694810eb968d$export$TableKeyboardDelegate({
|
|
287
|
-
collection: state.collection,
|
|
288
|
-
disabledKeys: state.disabledKeys,
|
|
289
|
-
ref,
|
|
290
|
-
direction,
|
|
291
|
-
collator,
|
|
292
|
-
layout
|
|
293
|
-
}), [keyboardDelegate, state.collection, state.disabledKeys, ref, direction, collator, layout]);
|
|
294
|
-
let id = useId();
|
|
295
|
-
$b62c6c69dd91ba8b8df7cfb5ba576$export$gridIds.set(state, id);
|
|
296
|
-
let {
|
|
297
|
-
gridProps
|
|
298
|
-
} = useGrid(_babelRuntimeHelpersExtends({}, props, {
|
|
299
|
-
id,
|
|
300
|
-
keyboardDelegate: delegate,
|
|
301
|
-
|
|
302
|
-
getRowText(key) {
|
|
303
|
-
let added = state.collection.getItem(key); // If the row has a textValue, use that.
|
|
304
|
-
|
|
305
|
-
if (added.textValue != null) {
|
|
306
|
-
return added.textValue;
|
|
307
|
-
} // Otherwise combine the text of each of the row header columns.
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
let rowHeaderColumnKeys = state.collection.rowHeaderColumnKeys;
|
|
311
|
-
|
|
312
|
-
if (rowHeaderColumnKeys) {
|
|
313
|
-
let text = [];
|
|
314
|
-
|
|
315
|
-
for (let cell of added.childNodes) {
|
|
316
|
-
let column = state.collection.columns[cell.index];
|
|
317
|
-
|
|
318
|
-
if (rowHeaderColumnKeys.has(column.key) && cell.textValue) {
|
|
319
|
-
text.push(cell.textValue);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
if (text.length === rowHeaderColumnKeys.size) {
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
return text.join(' ');
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
return '';
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
}), state); // Override to include header rows
|
|
334
|
-
|
|
335
|
-
if (isVirtualized) {
|
|
336
|
-
gridProps['aria-rowcount'] = state.collection.size + state.collection.headerRows.length;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
return {
|
|
340
|
-
gridProps
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
exports.useTable = useTable;
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Provides the behavior and accessibility implementation for a column header in a table.
|
|
348
|
-
* @param props - Props for the column header.
|
|
349
|
-
* @param state - State of the table, as returned by `useTableState`.
|
|
350
|
-
*/
|
|
351
|
-
function useTableColumnHeader(props, state) {
|
|
352
|
-
let {
|
|
353
|
-
node,
|
|
354
|
-
colspan,
|
|
355
|
-
ref,
|
|
356
|
-
isDisabled
|
|
357
|
-
} = props;
|
|
358
|
-
let {
|
|
359
|
-
gridCellProps
|
|
360
|
-
} = useGridCell(props, state);
|
|
361
|
-
let {
|
|
362
|
-
pressProps
|
|
363
|
-
} = usePress({
|
|
364
|
-
isDisabled: !node.props.allowsSorting || isDisabled,
|
|
365
|
-
|
|
366
|
-
onPress() {
|
|
367
|
-
state.sort(node.key);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
}); // Needed to pick up the focusable context, enabling things like Tooltips for example
|
|
371
|
-
|
|
372
|
-
let {
|
|
373
|
-
focusableProps
|
|
374
|
-
} = useFocusable({}, ref);
|
|
375
|
-
let ariaSort = null;
|
|
376
|
-
|
|
377
|
-
if (node.props.allowsSorting) {
|
|
378
|
-
var _state$sortDescriptor;
|
|
379
|
-
|
|
380
|
-
ariaSort = ((_state$sortDescriptor = state.sortDescriptor) == null ? void 0 : _state$sortDescriptor.column) === node.key ? state.sortDescriptor.direction : 'none';
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
return {
|
|
384
|
-
columnHeaderProps: _babelRuntimeHelpersExtends({}, mergeProps(gridCellProps, pressProps, focusableProps), {
|
|
385
|
-
role: 'columnheader',
|
|
386
|
-
id: $b62c6c69dd91ba8b8df7cfb5ba576$export$getColumnHeaderId(state, node.key),
|
|
387
|
-
'aria-colspan': colspan && colspan > 1 ? colspan : null,
|
|
388
|
-
'aria-sort': ariaSort
|
|
389
|
-
})
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
exports.useTableColumnHeader = useTableColumnHeader;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Provides the behavior and accessibility implementation for a row in a table.
|
|
397
|
-
* @param props - Props for the row.
|
|
398
|
-
* @param state - State of the table, as returned by `useTableState`.
|
|
399
|
-
*/
|
|
400
|
-
function useTableRow(props, state) {
|
|
401
|
-
let {
|
|
402
|
-
node
|
|
403
|
-
} = props;
|
|
404
|
-
let {
|
|
405
|
-
rowProps
|
|
406
|
-
} = useGridRow(props, state);
|
|
407
|
-
return {
|
|
408
|
-
rowProps: _babelRuntimeHelpersExtends({}, rowProps, {
|
|
409
|
-
'aria-labelledby': $b62c6c69dd91ba8b8df7cfb5ba576$export$getRowLabelledBy(state, node.key)
|
|
410
|
-
})
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
exports.useTableRow = useTableRow;
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* Provides the behavior and accessibility implementation for a row header in a table.
|
|
418
|
-
* @param props - Props for the row header.
|
|
419
|
-
* @param state - State of the table, as returned by `useTableState`.
|
|
420
|
-
*/
|
|
421
|
-
function useTableRowHeader(props, state) {
|
|
422
|
-
let {
|
|
423
|
-
gridCellProps
|
|
424
|
-
} = useGridCell(props, state);
|
|
425
|
-
let columnKey = props.node.column.key;
|
|
426
|
-
return {
|
|
427
|
-
rowHeaderProps: _babelRuntimeHelpersExtends({}, gridCellProps, {
|
|
428
|
-
role: 'rowheader',
|
|
429
|
-
id: $b62c6c69dd91ba8b8df7cfb5ba576$export$getCellId(state, props.node.parentKey, columnKey)
|
|
430
|
-
})
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
exports.useTableRowHeader = useTableRowHeader;
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Provides the behavior and accessibility implementation for a selection checkbox in a table.
|
|
438
|
-
* @param props - Props for the selection checkbox.
|
|
439
|
-
* @param state - State of the table, as returned by `useTableState`.
|
|
440
|
-
*/
|
|
441
|
-
function useTableSelectionCheckbox(props, state) {
|
|
442
|
-
let {
|
|
443
|
-
key,
|
|
444
|
-
isDisabled
|
|
445
|
-
} = props;
|
|
446
|
-
let manager = state.selectionManager;
|
|
447
|
-
let checkboxId = useId();
|
|
448
|
-
let isSelected = state.selectionManager.isSelected(key) && !isDisabled;
|
|
449
|
-
|
|
450
|
-
let onChange = () => manager.select(key);
|
|
451
|
-
|
|
452
|
-
return {
|
|
453
|
-
checkboxProps: {
|
|
454
|
-
id: checkboxId,
|
|
455
|
-
'aria-label': 'Select',
|
|
456
|
-
'aria-labelledby': checkboxId + " " + $b62c6c69dd91ba8b8df7cfb5ba576$export$getRowLabelledBy(state, key),
|
|
457
|
-
isSelected,
|
|
458
|
-
onChange
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* Provides the behavior and accessibility implementation for the select all checkbox in a table.
|
|
464
|
-
* @param props - Props for the select all checkbox.
|
|
465
|
-
* @param state - State of the table, as returned by `useTableState`.
|
|
466
|
-
*/
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
exports.useTableSelectionCheckbox = useTableSelectionCheckbox;
|
|
470
|
-
|
|
471
|
-
function useTableSelectAllCheckbox(state) {
|
|
472
|
-
let {
|
|
473
|
-
isEmpty,
|
|
474
|
-
isSelectAll
|
|
475
|
-
} = state.selectionManager;
|
|
476
|
-
return {
|
|
477
|
-
checkboxProps: {
|
|
478
|
-
'aria-label': 'Select All',
|
|
479
|
-
isSelected: isSelectAll,
|
|
480
|
-
isIndeterminate: !isEmpty && !isSelectAll,
|
|
481
|
-
onChange: () => state.selectionManager.toggleSelectAll()
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
46
|
|
|
486
|
-
exports.useTableSelectAllCheckbox = useTableSelectAllCheckbox;
|
|
487
47
|
//# sourceMappingURL=main.js.map
|