@react-aria/table 3.17.11 → 3.18.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.
Files changed (239) hide show
  1. package/dist/import.mjs +2 -19
  2. package/dist/main.js +10 -27
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +2 -19
  5. package/dist/module.js.map +1 -1
  6. package/dist/types/src/index.d.ts +4 -0
  7. package/package.json +15 -25
  8. package/src/index.ts +4 -21
  9. package/dist/TableKeyboardDelegate.main.js +0 -142
  10. package/dist/TableKeyboardDelegate.main.js.map +0 -1
  11. package/dist/TableKeyboardDelegate.mjs +0 -137
  12. package/dist/TableKeyboardDelegate.module.js +0 -137
  13. package/dist/TableKeyboardDelegate.module.js.map +0 -1
  14. package/dist/ar-AE.main.js +0 -14
  15. package/dist/ar-AE.main.js.map +0 -1
  16. package/dist/ar-AE.mjs +0 -16
  17. package/dist/ar-AE.module.js +0 -16
  18. package/dist/ar-AE.module.js.map +0 -1
  19. package/dist/bg-BG.main.js +0 -14
  20. package/dist/bg-BG.main.js.map +0 -1
  21. package/dist/bg-BG.mjs +0 -16
  22. package/dist/bg-BG.module.js +0 -16
  23. package/dist/bg-BG.module.js.map +0 -1
  24. package/dist/cs-CZ.main.js +0 -14
  25. package/dist/cs-CZ.main.js.map +0 -1
  26. package/dist/cs-CZ.mjs +0 -16
  27. package/dist/cs-CZ.module.js +0 -16
  28. package/dist/cs-CZ.module.js.map +0 -1
  29. package/dist/da-DK.main.js +0 -14
  30. package/dist/da-DK.main.js.map +0 -1
  31. package/dist/da-DK.mjs +0 -16
  32. package/dist/da-DK.module.js +0 -16
  33. package/dist/da-DK.module.js.map +0 -1
  34. package/dist/de-DE.main.js +0 -14
  35. package/dist/de-DE.main.js.map +0 -1
  36. package/dist/de-DE.mjs +0 -16
  37. package/dist/de-DE.module.js +0 -16
  38. package/dist/de-DE.module.js.map +0 -1
  39. package/dist/el-GR.main.js +0 -14
  40. package/dist/el-GR.main.js.map +0 -1
  41. package/dist/el-GR.mjs +0 -16
  42. package/dist/el-GR.module.js +0 -16
  43. package/dist/el-GR.module.js.map +0 -1
  44. package/dist/en-US.main.js +0 -14
  45. package/dist/en-US.main.js.map +0 -1
  46. package/dist/en-US.mjs +0 -16
  47. package/dist/en-US.module.js +0 -16
  48. package/dist/en-US.module.js.map +0 -1
  49. package/dist/es-ES.main.js +0 -14
  50. package/dist/es-ES.main.js.map +0 -1
  51. package/dist/es-ES.mjs +0 -16
  52. package/dist/es-ES.module.js +0 -16
  53. package/dist/es-ES.module.js.map +0 -1
  54. package/dist/et-EE.main.js +0 -14
  55. package/dist/et-EE.main.js.map +0 -1
  56. package/dist/et-EE.mjs +0 -16
  57. package/dist/et-EE.module.js +0 -16
  58. package/dist/et-EE.module.js.map +0 -1
  59. package/dist/fi-FI.main.js +0 -14
  60. package/dist/fi-FI.main.js.map +0 -1
  61. package/dist/fi-FI.mjs +0 -16
  62. package/dist/fi-FI.module.js +0 -16
  63. package/dist/fi-FI.module.js.map +0 -1
  64. package/dist/fr-FR.main.js +0 -14
  65. package/dist/fr-FR.main.js.map +0 -1
  66. package/dist/fr-FR.mjs +0 -16
  67. package/dist/fr-FR.module.js +0 -16
  68. package/dist/fr-FR.module.js.map +0 -1
  69. package/dist/he-IL.main.js +0 -14
  70. package/dist/he-IL.main.js.map +0 -1
  71. package/dist/he-IL.mjs +0 -16
  72. package/dist/he-IL.module.js +0 -16
  73. package/dist/he-IL.module.js.map +0 -1
  74. package/dist/hr-HR.main.js +0 -14
  75. package/dist/hr-HR.main.js.map +0 -1
  76. package/dist/hr-HR.mjs +0 -16
  77. package/dist/hr-HR.module.js +0 -16
  78. package/dist/hr-HR.module.js.map +0 -1
  79. package/dist/hu-HU.main.js +0 -14
  80. package/dist/hu-HU.main.js.map +0 -1
  81. package/dist/hu-HU.mjs +0 -16
  82. package/dist/hu-HU.module.js +0 -16
  83. package/dist/hu-HU.module.js.map +0 -1
  84. package/dist/intlStrings.main.js +0 -108
  85. package/dist/intlStrings.main.js.map +0 -1
  86. package/dist/intlStrings.mjs +0 -110
  87. package/dist/intlStrings.module.js +0 -110
  88. package/dist/intlStrings.module.js.map +0 -1
  89. package/dist/it-IT.main.js +0 -14
  90. package/dist/it-IT.main.js.map +0 -1
  91. package/dist/it-IT.mjs +0 -16
  92. package/dist/it-IT.module.js +0 -16
  93. package/dist/it-IT.module.js.map +0 -1
  94. package/dist/ja-JP.main.js +0 -14
  95. package/dist/ja-JP.main.js.map +0 -1
  96. package/dist/ja-JP.mjs +0 -16
  97. package/dist/ja-JP.module.js +0 -16
  98. package/dist/ja-JP.module.js.map +0 -1
  99. package/dist/ko-KR.main.js +0 -14
  100. package/dist/ko-KR.main.js.map +0 -1
  101. package/dist/ko-KR.mjs +0 -16
  102. package/dist/ko-KR.module.js +0 -16
  103. package/dist/ko-KR.module.js.map +0 -1
  104. package/dist/lt-LT.main.js +0 -14
  105. package/dist/lt-LT.main.js.map +0 -1
  106. package/dist/lt-LT.mjs +0 -16
  107. package/dist/lt-LT.module.js +0 -16
  108. package/dist/lt-LT.module.js.map +0 -1
  109. package/dist/lv-LV.main.js +0 -14
  110. package/dist/lv-LV.main.js.map +0 -1
  111. package/dist/lv-LV.mjs +0 -16
  112. package/dist/lv-LV.module.js +0 -16
  113. package/dist/lv-LV.module.js.map +0 -1
  114. package/dist/nb-NO.main.js +0 -14
  115. package/dist/nb-NO.main.js.map +0 -1
  116. package/dist/nb-NO.mjs +0 -16
  117. package/dist/nb-NO.module.js +0 -16
  118. package/dist/nb-NO.module.js.map +0 -1
  119. package/dist/nl-NL.main.js +0 -14
  120. package/dist/nl-NL.main.js.map +0 -1
  121. package/dist/nl-NL.mjs +0 -16
  122. package/dist/nl-NL.module.js +0 -16
  123. package/dist/nl-NL.module.js.map +0 -1
  124. package/dist/pl-PL.main.js +0 -14
  125. package/dist/pl-PL.main.js.map +0 -1
  126. package/dist/pl-PL.mjs +0 -16
  127. package/dist/pl-PL.module.js +0 -16
  128. package/dist/pl-PL.module.js.map +0 -1
  129. package/dist/pt-BR.main.js +0 -14
  130. package/dist/pt-BR.main.js.map +0 -1
  131. package/dist/pt-BR.mjs +0 -16
  132. package/dist/pt-BR.module.js +0 -16
  133. package/dist/pt-BR.module.js.map +0 -1
  134. package/dist/pt-PT.main.js +0 -14
  135. package/dist/pt-PT.main.js.map +0 -1
  136. package/dist/pt-PT.mjs +0 -16
  137. package/dist/pt-PT.module.js +0 -16
  138. package/dist/pt-PT.module.js.map +0 -1
  139. package/dist/ro-RO.main.js +0 -14
  140. package/dist/ro-RO.main.js.map +0 -1
  141. package/dist/ro-RO.mjs +0 -16
  142. package/dist/ro-RO.module.js +0 -16
  143. package/dist/ro-RO.module.js.map +0 -1
  144. package/dist/ru-RU.main.js +0 -14
  145. package/dist/ru-RU.main.js.map +0 -1
  146. package/dist/ru-RU.mjs +0 -16
  147. package/dist/ru-RU.module.js +0 -16
  148. package/dist/ru-RU.module.js.map +0 -1
  149. package/dist/sk-SK.main.js +0 -14
  150. package/dist/sk-SK.main.js.map +0 -1
  151. package/dist/sk-SK.mjs +0 -16
  152. package/dist/sk-SK.module.js +0 -16
  153. package/dist/sk-SK.module.js.map +0 -1
  154. package/dist/sl-SI.main.js +0 -14
  155. package/dist/sl-SI.main.js.map +0 -1
  156. package/dist/sl-SI.mjs +0 -16
  157. package/dist/sl-SI.module.js +0 -16
  158. package/dist/sl-SI.module.js.map +0 -1
  159. package/dist/sr-SP.main.js +0 -14
  160. package/dist/sr-SP.main.js.map +0 -1
  161. package/dist/sr-SP.mjs +0 -16
  162. package/dist/sr-SP.module.js +0 -16
  163. package/dist/sr-SP.module.js.map +0 -1
  164. package/dist/sv-SE.main.js +0 -14
  165. package/dist/sv-SE.main.js.map +0 -1
  166. package/dist/sv-SE.mjs +0 -16
  167. package/dist/sv-SE.module.js +0 -16
  168. package/dist/sv-SE.module.js.map +0 -1
  169. package/dist/tr-TR.main.js +0 -14
  170. package/dist/tr-TR.main.js.map +0 -1
  171. package/dist/tr-TR.mjs +0 -16
  172. package/dist/tr-TR.module.js +0 -16
  173. package/dist/tr-TR.module.js.map +0 -1
  174. package/dist/types.d.ts +0 -157
  175. package/dist/types.d.ts.map +0 -1
  176. package/dist/uk-UA.main.js +0 -14
  177. package/dist/uk-UA.main.js.map +0 -1
  178. package/dist/uk-UA.mjs +0 -16
  179. package/dist/uk-UA.module.js +0 -16
  180. package/dist/uk-UA.module.js.map +0 -1
  181. package/dist/useTable.main.js +0 -114
  182. package/dist/useTable.main.js.map +0 -1
  183. package/dist/useTable.mjs +0 -109
  184. package/dist/useTable.module.js +0 -109
  185. package/dist/useTable.module.js.map +0 -1
  186. package/dist/useTableCell.main.js +0 -37
  187. package/dist/useTableCell.main.js.map +0 -1
  188. package/dist/useTableCell.mjs +0 -32
  189. package/dist/useTableCell.module.js +0 -32
  190. package/dist/useTableCell.module.js.map +0 -1
  191. package/dist/useTableColumnHeader.main.js +0 -92
  192. package/dist/useTableColumnHeader.main.js.map +0 -1
  193. package/dist/useTableColumnHeader.mjs +0 -87
  194. package/dist/useTableColumnHeader.module.js +0 -87
  195. package/dist/useTableColumnHeader.module.js.map +0 -1
  196. package/dist/useTableColumnResize.main.js +0 -226
  197. package/dist/useTableColumnResize.main.js.map +0 -1
  198. package/dist/useTableColumnResize.mjs +0 -221
  199. package/dist/useTableColumnResize.module.js +0 -221
  200. package/dist/useTableColumnResize.module.js.map +0 -1
  201. package/dist/useTableHeaderRow.main.js +0 -32
  202. package/dist/useTableHeaderRow.main.js.map +0 -1
  203. package/dist/useTableHeaderRow.mjs +0 -27
  204. package/dist/useTableHeaderRow.module.js +0 -27
  205. package/dist/useTableHeaderRow.module.js.map +0 -1
  206. package/dist/useTableRow.main.js +0 -82
  207. package/dist/useTableRow.main.js.map +0 -1
  208. package/dist/useTableRow.mjs +0 -77
  209. package/dist/useTableRow.module.js +0 -77
  210. package/dist/useTableRow.module.js.map +0 -1
  211. package/dist/useTableSelectionCheckbox.main.js +0 -56
  212. package/dist/useTableSelectionCheckbox.main.js.map +0 -1
  213. package/dist/useTableSelectionCheckbox.mjs +0 -50
  214. package/dist/useTableSelectionCheckbox.module.js +0 -50
  215. package/dist/useTableSelectionCheckbox.module.js.map +0 -1
  216. package/dist/utils.main.js +0 -43
  217. package/dist/utils.main.js.map +0 -1
  218. package/dist/utils.mjs +0 -35
  219. package/dist/utils.module.js +0 -35
  220. package/dist/utils.module.js.map +0 -1
  221. package/dist/zh-CN.main.js +0 -14
  222. package/dist/zh-CN.main.js.map +0 -1
  223. package/dist/zh-CN.mjs +0 -16
  224. package/dist/zh-CN.module.js +0 -16
  225. package/dist/zh-CN.module.js.map +0 -1
  226. package/dist/zh-TW.main.js +0 -14
  227. package/dist/zh-TW.main.js.map +0 -1
  228. package/dist/zh-TW.mjs +0 -16
  229. package/dist/zh-TW.module.js +0 -16
  230. package/dist/zh-TW.module.js.map +0 -1
  231. package/src/TableKeyboardDelegate.ts +0 -214
  232. package/src/useTable.ts +0 -123
  233. package/src/useTableCell.ts +0 -59
  234. package/src/useTableColumnHeader.ts +0 -108
  235. package/src/useTableColumnResize.ts +0 -277
  236. package/src/useTableHeaderRow.ts +0 -42
  237. package/src/useTableRow.ts +0 -86
  238. package/src/useTableSelectionCheckbox.ts +0 -72
  239. package/src/utils.ts +0 -49
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- "ascending": `artan s\u{131}rada`,
3
- "ascendingSort": (args)=>`${args.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
4
- "columnSize": (args)=>`${args.value} piksel`,
5
- "descending": `azalan s\u{131}rada`,
6
- "descendingSort": (args)=>`${args.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,
7
- "resizerDescription": `Yeniden boyutland\u{131}rmak i\xe7in Enter'a bas\u{131}n`,
8
- "select": `Se\xe7`,
9
- "selectAll": `T\xfcm\xfcn\xfc Se\xe7`,
10
- "sortable": `S\u{131}ralanabilir s\xfctun`
11
- };
12
-
13
-
14
- //# sourceMappingURL=tr-TR.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,kBAAY,CAAC;IAC7C,iBAAiB,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,gDAAiC,CAAC;IAChF,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,OAAO,CAAC;IAC9C,cAAc,CAAC,mBAAa,CAAC;IAC7B,kBAAkB,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,iDAAkC,CAAC;IAClF,sBAAsB,CAAC,wDAAyC,CAAC;IACjE,UAAU,CAAC,MAAG,CAAC;IACf,aAAa,CAAC,sBAAU,CAAC;IACzB,YAAY,CAAC,4BAAmB,CAAC;AACnC","sources":["packages/@react-aria/table/intl/tr-TR.json"],"sourcesContent":["{\n \"ascending\": \"artan sırada\",\n \"ascendingSort\": \"{columnName} sütuna göre artan düzende sırala\",\n \"columnSize\": \"{value} piksel\",\n \"descending\": \"azalan sırada\",\n \"descendingSort\": \"{columnName} sütuna göre azalan düzende sırala\",\n \"resizerDescription\": \"Yeniden boyutlandırmak için Enter'a basın\",\n \"select\": \"Seç\",\n \"selectAll\": \"Tümünü Seç\",\n \"sortable\": \"Sıralanabilir sütun\"\n}\n"],"names":[],"version":3,"file":"tr-TR.main.js.map"}
package/dist/tr-TR.mjs DELETED
@@ -1,16 +0,0 @@
1
- var $166b7c9cc1adb1a1$exports = {};
2
- $166b7c9cc1adb1a1$exports = {
3
- "ascending": `artan s\u{131}rada`,
4
- "ascendingSort": (args)=>`${args.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
5
- "columnSize": (args)=>`${args.value} piksel`,
6
- "descending": `azalan s\u{131}rada`,
7
- "descendingSort": (args)=>`${args.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,
8
- "resizerDescription": `Yeniden boyutland\u{131}rmak i\xe7in Enter'a bas\u{131}n`,
9
- "select": `Se\xe7`,
10
- "selectAll": `T\xfcm\xfcn\xfc Se\xe7`,
11
- "sortable": `S\u{131}ralanabilir s\xfctun`
12
- };
13
-
14
-
15
- export {$166b7c9cc1adb1a1$exports as default};
16
- //# sourceMappingURL=tr-TR.module.js.map
@@ -1,16 +0,0 @@
1
- var $166b7c9cc1adb1a1$exports = {};
2
- $166b7c9cc1adb1a1$exports = {
3
- "ascending": `artan s\u{131}rada`,
4
- "ascendingSort": (args)=>`${args.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
5
- "columnSize": (args)=>`${args.value} piksel`,
6
- "descending": `azalan s\u{131}rada`,
7
- "descendingSort": (args)=>`${args.columnName} s\xfctuna g\xf6re azalan d\xfczende s\u{131}rala`,
8
- "resizerDescription": `Yeniden boyutland\u{131}rmak i\xe7in Enter'a bas\u{131}n`,
9
- "select": `Se\xe7`,
10
- "selectAll": `T\xfcm\xfcn\xfc Se\xe7`,
11
- "sortable": `S\u{131}ralanabilir s\xfctun`
12
- };
13
-
14
-
15
- export {$166b7c9cc1adb1a1$exports as default};
16
- //# sourceMappingURL=tr-TR.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,aAAa,CAAC,kBAAY,CAAC;IAC7C,iBAAiB,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,gDAAiC,CAAC;IAChF,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,OAAO,CAAC;IAC9C,cAAc,CAAC,mBAAa,CAAC;IAC7B,kBAAkB,CAAC,OAAS,GAAG,KAAK,UAAU,CAAC,iDAAkC,CAAC;IAClF,sBAAsB,CAAC,wDAAyC,CAAC;IACjE,UAAU,CAAC,MAAG,CAAC;IACf,aAAa,CAAC,sBAAU,CAAC;IACzB,YAAY,CAAC,4BAAmB,CAAC;AACnC","sources":["packages/@react-aria/table/intl/tr-TR.json"],"sourcesContent":["{\n \"ascending\": \"artan sırada\",\n \"ascendingSort\": \"{columnName} sütuna göre artan düzende sırala\",\n \"columnSize\": \"{value} piksel\",\n \"descending\": \"azalan sırada\",\n \"descendingSort\": \"{columnName} sütuna göre azalan düzende sırala\",\n \"resizerDescription\": \"Yeniden boyutlandırmak için Enter'a basın\",\n \"select\": \"Seç\",\n \"selectAll\": \"Tümünü Seç\",\n \"sortable\": \"Sıralanabilir sütun\"\n}\n"],"names":[],"version":3,"file":"tr-TR.module.js.map"}
package/dist/types.d.ts DELETED
@@ -1,157 +0,0 @@
1
- import { GridAria, GridProps, GridRowAria, GridRowProps, GridRowGroupAria } from "@react-aria/grid";
2
- import { Key, LayoutDelegate, Rect, RefObject, Size, DOMAttributes, FocusableElement } from "@react-types/shared";
3
- import { TableState, TreeGridState, TableColumnResizeState } from "@react-stately/table";
4
- import { GridNode } from "@react-types/grid";
5
- import { AriaCheckboxProps } from "@react-types/checkbox";
6
- import { ColumnSize } from "@react-types/table";
7
- export interface AriaTableProps extends GridProps {
8
- /** The layout object for the table. Computes what content is visible and how to position and style them. */
9
- layoutDelegate?: LayoutDelegate;
10
- /** @deprecated - Use layoutDelegate instead. */
11
- layout?: DeprecatedLayout;
12
- }
13
- interface DeprecatedLayout {
14
- getLayoutInfo(key: Key): DeprecatedLayoutInfo;
15
- getContentSize(): Size;
16
- virtualizer: DeprecatedVirtualizer;
17
- }
18
- interface DeprecatedLayoutInfo {
19
- rect: Rect;
20
- }
21
- interface DeprecatedVirtualizer {
22
- visibleRect: Rect;
23
- }
24
- /**
25
- * Provides the behavior and accessibility implementation for a table component.
26
- * A table displays data in rows and columns and enables a user to navigate its contents via directional navigation keys,
27
- * and optionally supports row selection and sorting.
28
- * @param props - Props for the table.
29
- * @param state - State for the table, as returned by `useTableState`.
30
- * @param ref - The ref attached to the table element.
31
- */
32
- export function useTable<T>(props: AriaTableProps, state: TableState<T> | TreeGridState<T>, ref: RefObject<HTMLElement | null>): GridAria;
33
- export interface AriaTableColumnHeaderProps<T> {
34
- /** An object representing the [column header](https://www.w3.org/TR/wai-aria-1.1/#columnheader). Contains all the relevant information that makes up the column header. */
35
- node: GridNode<T>;
36
- /** Whether the [column header](https://www.w3.org/TR/wai-aria-1.1/#columnheader) is contained in a virtual scroller. */
37
- isVirtualized?: boolean;
38
- }
39
- export interface TableColumnHeaderAria {
40
- /** Props for the [column header](https://www.w3.org/TR/wai-aria-1.1/#columnheader) element. */
41
- columnHeaderProps: DOMAttributes;
42
- /** Whether the column is currently in a pressed state. */
43
- isPressed: boolean;
44
- }
45
- /**
46
- * Provides the behavior and accessibility implementation for a column header in a table.
47
- * @param props - Props for the column header.
48
- * @param state - State of the table, as returned by `useTableState`.
49
- * @param ref - The ref attached to the column header element.
50
- */
51
- export function useTableColumnHeader<T>(props: AriaTableColumnHeaderProps<T>, state: TableState<T>, ref: RefObject<FocusableElement | null>): TableColumnHeaderAria;
52
- /**
53
- * Provides the behavior and accessibility implementation for a row in a table.
54
- * @param props - Props for the row.
55
- * @param state - State of the table, as returned by `useTableState`.
56
- */
57
- export function useTableRow<T>(props: GridRowProps<T>, state: TableState<T> | TreeGridState<T>, ref: RefObject<FocusableElement | null>): GridRowAria;
58
- export interface TableHeaderRowAria {
59
- /** Props for the grid row element. */
60
- rowProps: DOMAttributes;
61
- }
62
- /**
63
- * Provides the behavior and accessibility implementation for a header row in a table.
64
- * @param props - Props for the row.
65
- * @param state - State of the table, as returned by `useTableState`.
66
- */
67
- export function useTableHeaderRow<T>(props: GridRowProps<T>, state: TableState<T>, ref: RefObject<Element | null>): TableHeaderRowAria;
68
- export interface AriaTableCellProps {
69
- /** An object representing the table cell. Contains all the relevant information that makes up the row header. */
70
- node: GridNode<unknown>;
71
- /** Whether the cell is contained in a virtual scroller. */
72
- isVirtualized?: boolean;
73
- /** Whether selection should occur on press up instead of press down. */
74
- shouldSelectOnPressUp?: boolean;
75
- /**
76
- * Handler that is called when a user performs an action on the cell.
77
- * Please use onCellAction at the collection level instead.
78
- * @deprecated
79
- **/
80
- onAction?: () => void;
81
- }
82
- export interface TableCellAria {
83
- /** Props for the table cell element. */
84
- gridCellProps: DOMAttributes;
85
- /** Whether the cell is currently in a pressed state. */
86
- isPressed: boolean;
87
- }
88
- /**
89
- * Provides the behavior and accessibility implementation for a cell in a table.
90
- * @param props - Props for the cell.
91
- * @param state - State of the table, as returned by `useTableState`.
92
- * @param ref - The ref attached to the cell element.
93
- */
94
- export function useTableCell<T>(props: AriaTableCellProps, state: TableState<T>, ref: RefObject<FocusableElement | null>): TableCellAria;
95
- export interface AriaTableSelectionCheckboxProps {
96
- /** A unique key for the checkbox. */
97
- key: Key;
98
- }
99
- export interface TableSelectionCheckboxAria {
100
- /** Props for the row selection checkbox element. */
101
- checkboxProps: AriaCheckboxProps;
102
- }
103
- export interface TableSelectAllCheckboxAria {
104
- /** Props for the select all checkbox element. */
105
- checkboxProps: AriaCheckboxProps;
106
- }
107
- /**
108
- * Provides the behavior and accessibility implementation for a selection checkbox in a table.
109
- * @param props - Props for the selection checkbox.
110
- * @param state - State of the table, as returned by `useTableState`.
111
- */
112
- export function useTableSelectionCheckbox<T>(props: AriaTableSelectionCheckboxProps, state: TableState<T>): TableSelectionCheckboxAria;
113
- /**
114
- * Provides the behavior and accessibility implementation for the select all checkbox in a table.
115
- * @param props - Props for the select all checkbox.
116
- * @param state - State of the table, as returned by `useTableState`.
117
- */
118
- export function useTableSelectAllCheckbox<T>(state: TableState<T>): TableSelectAllCheckboxAria;
119
- export interface TableColumnResizeAria {
120
- /** Props for the visually hidden input element. */
121
- inputProps: DOMAttributes;
122
- /** Props for the resizer element. */
123
- resizerProps: DOMAttributes;
124
- /** Whether this column is currently being resized. */
125
- isResizing: boolean;
126
- }
127
- export interface AriaTableColumnResizeProps<T> {
128
- /** An object representing the [column header](https://www.w3.org/TR/wai-aria-1.1/#columnheader). Contains all the relevant information that makes up the column header. */
129
- column: GridNode<T>;
130
- /** Aria label for the hidden input. Gets read when resizing. */
131
- 'aria-label': string;
132
- /**
133
- * Ref to the trigger if resizing was started from a column header menu. If it's provided,
134
- * focus will be returned there when resizing is done. If it isn't provided, it is assumed that the resizer is
135
- * visible at all time and keyboard resizing is started via pressing Enter on the resizer and not on focus.
136
- * */
137
- triggerRef?: RefObject<FocusableElement | null>;
138
- /** If resizing is disabled. */
139
- isDisabled?: boolean;
140
- /** Called when resizing starts. */
141
- onResizeStart?: (widths: Map<Key, ColumnSize>) => void;
142
- /** Called for every resize event that results in new column sizes. */
143
- onResize?: (widths: Map<Key, ColumnSize>) => void;
144
- /** Called when resizing ends. */
145
- onResizeEnd?: (widths: Map<Key, ColumnSize>) => void;
146
- }
147
- /**
148
- * Provides the behavior and accessibility implementation for a table column resizer element.
149
- * @param props - Props for the resizer.
150
- * @param state - State for the table's resizable columns, as returned by `useTableColumnResizeState`.
151
- * @param ref - The ref attached to the resizer's visually hidden input element.
152
- */
153
- export function useTableColumnResize<T>(props: AriaTableColumnResizeProps<T>, state: TableColumnResizeState<T>, ref: RefObject<HTMLInputElement | null>): TableColumnResizeAria;
154
- export function useTableRowGroup(): GridRowGroupAria;
155
- export type { GridAria, GridRowAria, GridRowProps } from '@react-aria/grid';
156
-
157
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;AEyBA,+BAAgC,SAAQ,SAAS;IAC/C,4GAA4G;IAC5G,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gDAAgD;IAChD,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAC1B;AAED;IACE,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,oBAAoB,CAAC;IAC9C,cAAc,IAAI,IAAI,CAAC;IACvB,WAAW,EAAE,qBAAqB,CAAA;CACnC;AAED;IACE,IAAI,EAAE,IAAI,CAAA;CACX;AAED;IACE,WAAW,EAAE,IAAI,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,yBAAyB,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,WAAW,GAAG,IAAI,CAAC,GAAG,QAAQ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IAAI,CAAA;CACrD;AAED;;;;;GAKG;AACH,qCAAqC,CAAC,EAAE,KAAK,EAAE,2BAA2B,CAAC,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,gBAAgB,GAAG,IAAI,CAAC,GAAG,qBAAqB,CAuN9K;AC7PD,oCAAoC,gBAAgB,CAEnD;AAGD,YAAY,EAAC,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC","sources":["packages/@react-aria/table/src/packages/@react-aria/table/src/utils.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/TableKeyboardDelegate.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTable.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTableColumnHeader.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTableRow.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTableHeaderRow.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTableCell.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTableSelectionCheckbox.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/useTableColumnResize.ts","packages/@react-aria/table/src/packages/@react-aria/table/src/index.ts","packages/@react-aria/table/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useTable} from './useTable';\nexport {useTableColumnHeader} from './useTableColumnHeader';\nexport {useTableRow} from './useTableRow';\nexport {useTableHeaderRow} from './useTableHeaderRow';\nexport {useTableCell} from './useTableCell';\nexport {useTableSelectionCheckbox, useTableSelectAllCheckbox} from './useTableSelectionCheckbox';\nexport {useTableColumnResize} from './useTableColumnResize';\n\n// Workaround for a Parcel bug where re-exports don't work in the CommonJS output format...\n// export {useGridRowGroup as useTableRowGroup} from '@react-aria/grid';\nimport {GridRowGroupAria, useGridRowGroup} from '@react-aria/grid';\nexport function useTableRowGroup(): GridRowGroupAria {\n return useGridRowGroup();\n}\n\nexport type {AriaTableProps} from './useTable';\nexport type {GridAria, GridRowAria, GridRowProps} from '@react-aria/grid';\nexport type {AriaTableColumnHeaderProps, TableColumnHeaderAria} from './useTableColumnHeader';\nexport type {AriaTableCellProps, TableCellAria} from './useTableCell';\nexport type {TableHeaderRowAria} from './useTableHeaderRow';\nexport type {AriaTableSelectionCheckboxProps, TableSelectionCheckboxAria, TableSelectAllCheckboxAria} from './useTableSelectionCheckbox';\nexport type {AriaTableColumnResizeProps, TableColumnResizeAria} from './useTableColumnResize';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- "ascending": `\u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
3
- "ascendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
4
- "columnSize": (args)=>`${args.value} \u{43F}\u{456}\u{43A}\u{441}.`,
5
- "descending": `\u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
6
- "descendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
7
- "resizerDescription": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{438} \u{437}\u{43C}\u{456}\u{43D}\u{443} \u{440}\u{43E}\u{437}\u{43C}\u{456}\u{440}\u{443}`,
8
- "select": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438}`,
9
- "selectAll": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438} \u{432}\u{441}\u{435}`,
10
- "sortable": `\u{441}\u{43E}\u{440}\u{442}\u{443}\u{432}\u{430}\u{43B}\u{44C}\u{43D}\u{438}\u{439} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{435}\u{446}\u{44C}`
11
- };
12
-
13
-
14
- //# sourceMappingURL=uk-UA.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,aAAa,CAAC,+DAAS,CAAC;IAC1C,iBAAiB,CAAC,OAAS,CAAC,6JAAyB,EAAE,KAAK,UAAU,CAAC,iIAAqB,CAAC;IAC7F,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,8BAAM,CAAC;IAC7C,cAAc,CAAC,+DAAS,CAAC;IACzB,kBAAkB,CAAC,OAAS,CAAC,6JAAyB,EAAE,KAAK,UAAU,CAAC,iIAAqB,CAAC;IAC9F,sBAAsB,CAAC,6NAAyC,CAAC;IACjE,UAAU,CAAC,iDAAO,CAAC;IACnB,aAAa,CAAC,uEAAW,CAAC;IAC1B,YAAY,CAAC,6IAAqB,CAAC;AACrC","sources":["packages/@react-aria/table/intl/uk-UA.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":"uk-UA.main.js.map"}
package/dist/uk-UA.mjs DELETED
@@ -1,16 +0,0 @@
1
- var $c7ab180b401e49ff$exports = {};
2
- $c7ab180b401e49ff$exports = {
3
- "ascending": `\u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
4
- "ascendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
5
- "columnSize": (args)=>`${args.value} \u{43F}\u{456}\u{43A}\u{441}.`,
6
- "descending": `\u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
7
- "descendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
8
- "resizerDescription": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{438} \u{437}\u{43C}\u{456}\u{43D}\u{443} \u{440}\u{43E}\u{437}\u{43C}\u{456}\u{440}\u{443}`,
9
- "select": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438}`,
10
- "selectAll": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438} \u{432}\u{441}\u{435}`,
11
- "sortable": `\u{441}\u{43E}\u{440}\u{442}\u{443}\u{432}\u{430}\u{43B}\u{44C}\u{43D}\u{438}\u{439} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{435}\u{446}\u{44C}`
12
- };
13
-
14
-
15
- export {$c7ab180b401e49ff$exports as default};
16
- //# sourceMappingURL=uk-UA.module.js.map
@@ -1,16 +0,0 @@
1
- var $c7ab180b401e49ff$exports = {};
2
- $c7ab180b401e49ff$exports = {
3
- "ascending": `\u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
4
- "ascendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
5
- "columnSize": (args)=>`${args.value} \u{43F}\u{456}\u{43A}\u{441}.`,
6
- "descending": `\u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{438}\u{439}`,
7
- "descendingSort": (args)=>`\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${args.columnName} \u{443} \u{43D}\u{438}\u{437}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
8
- "resizerDescription": `\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} Enter, \u{449}\u{43E}\u{431} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{438} \u{437}\u{43C}\u{456}\u{43D}\u{443} \u{440}\u{43E}\u{437}\u{43C}\u{456}\u{440}\u{443}`,
9
- "select": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438}`,
10
- "selectAll": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{442}\u{438} \u{432}\u{441}\u{435}`,
11
- "sortable": `\u{441}\u{43E}\u{440}\u{442}\u{443}\u{432}\u{430}\u{43B}\u{44C}\u{43D}\u{438}\u{439} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{435}\u{446}\u{44C}`
12
- };
13
-
14
-
15
- export {$c7ab180b401e49ff$exports as default};
16
- //# sourceMappingURL=uk-UA.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,aAAa,CAAC,+DAAS,CAAC;IAC1C,iBAAiB,CAAC,OAAS,CAAC,6JAAyB,EAAE,KAAK,UAAU,CAAC,iIAAqB,CAAC;IAC7F,cAAc,CAAC,OAAS,GAAG,KAAK,KAAK,CAAC,8BAAM,CAAC;IAC7C,cAAc,CAAC,+DAAS,CAAC;IACzB,kBAAkB,CAAC,OAAS,CAAC,6JAAyB,EAAE,KAAK,UAAU,CAAC,iIAAqB,CAAC;IAC9F,sBAAsB,CAAC,6NAAyC,CAAC;IACjE,UAAU,CAAC,iDAAO,CAAC;IACnB,aAAa,CAAC,uEAAW,CAAC;IAC1B,YAAY,CAAC,6IAAqB,CAAC;AACrC","sources":["packages/@react-aria/table/intl/uk-UA.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":"uk-UA.module.js.map"}
@@ -1,114 +0,0 @@
1
- var $6acf696f746f932c$exports = require("./utils.main.js");
2
- var $7ff3f66df3873a5e$exports = require("./intlStrings.main.js");
3
- var $a911ff492b884835$exports = require("./TableKeyboardDelegate.main.js");
4
- var $aZ1Oy$reactarialiveannouncer = require("@react-aria/live-announcer");
5
- var $aZ1Oy$reactariagrid = require("@react-aria/grid");
6
- var $aZ1Oy$reactariautils = require("@react-aria/utils");
7
- var $aZ1Oy$reactstatelyflags = require("@react-stately/flags");
8
- var $aZ1Oy$reactariai18n = require("@react-aria/i18n");
9
- var $aZ1Oy$react = require("react");
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
-
16
- function $parcel$export(e, n, v, s) {
17
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
18
- }
19
-
20
- $parcel$export(module.exports, "useTable", () => $25d14c0f8fad722e$export$25bceaac3c7e4dc7);
21
- /*
22
- * Copyright 2020 Adobe. All rights reserved.
23
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
24
- * you may not use this file except in compliance with the License. You may obtain a copy
25
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
26
- *
27
- * Unless required by applicable law or agreed to in writing, software distributed under
28
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
29
- * OF ANY KIND, either express or implied. See the License for the specific language
30
- * governing permissions and limitations under the License.
31
- */
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- function $25d14c0f8fad722e$export$25bceaac3c7e4dc7(props, state, ref) {
41
- let { keyboardDelegate: keyboardDelegate, isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, layout: layout } = props;
42
- // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
43
- // When virtualized, the layout object will be passed in as a prop and override this.
44
- let collator = (0, $aZ1Oy$reactariai18n.useCollator)({
45
- usage: 'search',
46
- sensitivity: 'base'
47
- });
48
- let { direction: direction } = (0, $aZ1Oy$reactariai18n.useLocale)();
49
- let disabledBehavior = state.selectionManager.disabledBehavior;
50
- let delegate = (0, $aZ1Oy$react.useMemo)(()=>keyboardDelegate || new (0, $a911ff492b884835$exports.TableKeyboardDelegate)({
51
- collection: state.collection,
52
- disabledKeys: state.disabledKeys,
53
- disabledBehavior: disabledBehavior,
54
- ref: ref,
55
- direction: direction,
56
- collator: collator,
57
- layoutDelegate: layoutDelegate,
58
- layout: layout
59
- }), [
60
- keyboardDelegate,
61
- state.collection,
62
- state.disabledKeys,
63
- disabledBehavior,
64
- ref,
65
- direction,
66
- collator,
67
- layoutDelegate,
68
- layout
69
- ]);
70
- let id = (0, $aZ1Oy$reactariautils.useId)(props.id);
71
- (0, $6acf696f746f932c$exports.gridIds).set(state, id);
72
- let { gridProps: gridProps } = (0, $aZ1Oy$reactariagrid.useGrid)({
73
- ...props,
74
- id: id,
75
- keyboardDelegate: delegate
76
- }, state, ref);
77
- // Override to include header rows
78
- if (isVirtualized) gridProps['aria-rowcount'] = state.collection.size + state.collection.headerRows.length;
79
- if ((0, $aZ1Oy$reactstatelyflags.tableNestedRows)() && 'expandedKeys' in state) gridProps.role = 'treegrid';
80
- let { column: column, direction: sortDirection } = state.sortDescriptor || {};
81
- let stringFormatter = (0, $aZ1Oy$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($7ff3f66df3873a5e$exports))), '@react-aria/table');
82
- let sortDescription = (0, $aZ1Oy$react.useMemo)(()=>{
83
- var _state_collection_columns_find;
84
- var _state_collection_columns_find_textValue;
85
- let columnName = (_state_collection_columns_find_textValue = (_state_collection_columns_find = state.collection.columns.find((c)=>c.key === column)) === null || _state_collection_columns_find === void 0 ? void 0 : _state_collection_columns_find.textValue) !== null && _state_collection_columns_find_textValue !== void 0 ? _state_collection_columns_find_textValue : '';
86
- return sortDirection && column ? stringFormatter.format(`${sortDirection}Sort`, {
87
- columnName: columnName
88
- }) : undefined;
89
- // eslint-disable-next-line react-hooks/exhaustive-deps
90
- }, [
91
- sortDirection,
92
- column,
93
- state.collection.columns
94
- ]);
95
- let descriptionProps = (0, $aZ1Oy$reactariautils.useDescription)(sortDescription);
96
- // Only announce after initial render, tabbing to the table will tell you the initial sort info already
97
- (0, $aZ1Oy$reactariautils.useUpdateEffect)(()=>{
98
- if (sortDescription) (0, $aZ1Oy$reactarialiveannouncer.announce)(sortDescription, 'assertive', 500);
99
- }, [
100
- sortDescription
101
- ]);
102
- return {
103
- gridProps: (0, $aZ1Oy$reactariautils.mergeProps)(gridProps, descriptionProps, {
104
- // merge sort description with long press information
105
- 'aria-describedby': [
106
- descriptionProps['aria-describedby'],
107
- gridProps['aria-describedby']
108
- ].filter(Boolean).join(' ')
109
- })
110
- };
111
- }
112
-
113
-
114
- //# sourceMappingURL=useTable.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AA4CM,SAAS,0CAAY,KAAqB,EAAE,KAAuC,EAAE,GAAkC;IAC5H,IAAI,oBACF,gBAAgB,iBAChB,aAAa,kBACb,cAAc,UACd,MAAM,EACP,GAAG;IAEJ,0HAA0H;IAC1H,qFAAqF;IACrF,IAAI,WAAW,CAAA,GAAA,gCAAU,EAAE;QAAC,OAAO;QAAU,aAAa;IAAM;IAChE,IAAI,aAAC,SAAS,EAAC,GAAG,CAAA,GAAA,8BAAQ;IAC1B,IAAI,mBAAmB,MAAM,gBAAgB,CAAC,gBAAgB;IAC9D,I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EpD,IAAI,mBAAmB,CAAA,GAAA,oCAAa,EAAE;IAEtC,uGAAuG;IACvG,CAAA,GAAA,qCAAc,EAAE;QACd,IAAI,iBACF,CAAA,GAAA,sCAAO,EAAE,iBAAiB,aAAa;IAE3C,GAAG;QAAC;KAAgB;IAEpB,OAAO;QACL,WAAW,CAAA,GAAA,gCAAS,EAClB,WACA,kBACA;YACE,qDAAqD;YACrD,oBAAoB;gBAAC,gBAAgB,CAAC,mBAAmB;gBAAE,SAAS,CAAC,mBAAmB;aAAC,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC;QACjH;IAEJ;AACF","sources":["packages/@react-aria/table/src/useTable.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {announce} from '@react-aria/live-announcer';\nimport {GridAria, GridProps, useGrid} from '@react-aria/grid';\nimport {gridIds} from './utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Key, LayoutDelegate, Rect, RefObject, Size} from '@react-types/shared';\nimport {mergeProps, useDescription, useId, useUpdateEffect} from '@react-aria/utils';\nimport {TableKeyboardDelegate} from './TableKeyboardDelegate';\nimport {tableNestedRows} from '@react-stately/flags';\nimport {TableState, TreeGridState} from '@react-stately/table';\nimport {useCollator, useLocale, useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\nexport interface AriaTableProps extends GridProps {\n /** The layout object for the table. Computes what content is visible and how to position and style them. */\n layoutDelegate?: LayoutDelegate,\n /** @deprecated - Use layoutDelegate instead. */\n layout?: DeprecatedLayout\n}\n\ninterface DeprecatedLayout {\n getLayoutInfo(key: Key): DeprecatedLayoutInfo,\n getContentSize(): Size,\n virtualizer: DeprecatedVirtualizer\n}\n\ninterface DeprecatedLayoutInfo {\n rect: Rect\n}\n\ninterface DeprecatedVirtualizer {\n visibleRect: Rect\n}\n\n/**\n * Provides the behavior and accessibility implementation for a table component.\n * A table displays data in rows and columns and enables a user to navigate its contents via directional navigation keys,\n * and optionally supports row selection and sorting.\n * @param props - Props for the table.\n * @param state - State for the table, as returned by `useTableState`.\n * @param ref - The ref attached to the table element.\n */\nexport function useTable<T>(props: AriaTableProps, state: TableState<T> | TreeGridState<T>, ref: RefObject<HTMLElement | null>): GridAria {\n let {\n keyboardDelegate,\n isVirtualized,\n layoutDelegate,\n layout\n } = props;\n\n // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).\n // When virtualized, the layout object will be passed in as a prop and override this.\n let collator = useCollator({usage: 'search', sensitivity: 'base'});\n let {direction} = useLocale();\n let disabledBehavior = state.selectionManager.disabledBehavior;\n let delegate = useMemo(() => keyboardDelegate || new TableKeyboardDelegate({\n collection: state.collection,\n disabledKeys: state.disabledKeys,\n disabledBehavior,\n ref,\n direction,\n collator,\n layoutDelegate,\n layout\n }), [keyboardDelegate, state.collection, state.disabledKeys, disabledBehavior, ref, direction, collator, layoutDelegate, layout]);\n let id = useId(props.id);\n gridIds.set(state, id);\n\n let {gridProps} = useGrid({\n ...props,\n id,\n keyboardDelegate: delegate\n }, state, ref);\n\n // Override to include header rows\n if (isVirtualized) {\n gridProps['aria-rowcount'] = state.collection.size + state.collection.headerRows.length;\n }\n\n if (tableNestedRows() && 'expandedKeys' in state) {\n gridProps.role = 'treegrid';\n }\n\n let {column, direction: sortDirection} = state.sortDescriptor || {};\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-aria/table');\n let sortDescription = useMemo(() => {\n let columnName = state.collection.columns.find(c => c.key === column)?.textValue ?? '';\n return sortDirection && column ? stringFormatter.format(`${sortDirection}Sort`, {columnName}) : undefined;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [sortDirection, column, state.collection.columns]);\n\n let descriptionProps = useDescription(sortDescription);\n\n // Only announce after initial render, tabbing to the table will tell you the initial sort info already\n useUpdateEffect(() => {\n if (sortDescription) {\n announce(sortDescription, 'assertive', 500);\n }\n }, [sortDescription]);\n\n return {\n gridProps: mergeProps(\n gridProps,\n descriptionProps,\n {\n // merge sort description with long press information\n 'aria-describedby': [descriptionProps['aria-describedby'], gridProps['aria-describedby']].filter(Boolean).join(' ')\n }\n )\n };\n}\n"],"names":[],"version":3,"file":"useTable.main.js.map"}
package/dist/useTable.mjs DELETED
@@ -1,109 +0,0 @@
1
- import {gridIds as $2140fb2337097f2d$export$552312adfd451dab} from "./utils.mjs";
2
- import $dDeJM$intlStringsmodulejs from "./intlStrings.mjs";
3
- import {TableKeyboardDelegate as $0ba3c81c7f1caedd$export$da43f8f5cb04028d} from "./TableKeyboardDelegate.mjs";
4
- import {announce as $dDeJM$announce} from "@react-aria/live-announcer";
5
- import {useGrid as $dDeJM$useGrid} from "@react-aria/grid";
6
- import {useId as $dDeJM$useId, useDescription as $dDeJM$useDescription, useUpdateEffect as $dDeJM$useUpdateEffect, mergeProps as $dDeJM$mergeProps} from "@react-aria/utils";
7
- import {tableNestedRows as $dDeJM$tableNestedRows} from "@react-stately/flags";
8
- import {useCollator as $dDeJM$useCollator, useLocale as $dDeJM$useLocale, useLocalizedStringFormatter as $dDeJM$useLocalizedStringFormatter} from "@react-aria/i18n";
9
- import {useMemo as $dDeJM$useMemo} from "react";
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
- function $6e31608fbba75bab$export$25bceaac3c7e4dc7(props, state, ref) {
35
- let { keyboardDelegate: keyboardDelegate, isVirtualized: isVirtualized, layoutDelegate: layoutDelegate, layout: layout } = props;
36
- // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
37
- // When virtualized, the layout object will be passed in as a prop and override this.
38
- let collator = (0, $dDeJM$useCollator)({
39
- usage: 'search',
40
- sensitivity: 'base'
41
- });
42
- let { direction: direction } = (0, $dDeJM$useLocale)();
43
- let disabledBehavior = state.selectionManager.disabledBehavior;
44
- let delegate = (0, $dDeJM$useMemo)(()=>keyboardDelegate || new (0, $0ba3c81c7f1caedd$export$da43f8f5cb04028d)({
45
- collection: state.collection,
46
- disabledKeys: state.disabledKeys,
47
- disabledBehavior: disabledBehavior,
48
- ref: ref,
49
- direction: direction,
50
- collator: collator,
51
- layoutDelegate: layoutDelegate,
52
- layout: layout
53
- }), [
54
- keyboardDelegate,
55
- state.collection,
56
- state.disabledKeys,
57
- disabledBehavior,
58
- ref,
59
- direction,
60
- collator,
61
- layoutDelegate,
62
- layout
63
- ]);
64
- let id = (0, $dDeJM$useId)(props.id);
65
- (0, $2140fb2337097f2d$export$552312adfd451dab).set(state, id);
66
- let { gridProps: gridProps } = (0, $dDeJM$useGrid)({
67
- ...props,
68
- id: id,
69
- keyboardDelegate: delegate
70
- }, state, ref);
71
- // Override to include header rows
72
- if (isVirtualized) gridProps['aria-rowcount'] = state.collection.size + state.collection.headerRows.length;
73
- if ((0, $dDeJM$tableNestedRows)() && 'expandedKeys' in state) gridProps.role = 'treegrid';
74
- let { column: column, direction: sortDirection } = state.sortDescriptor || {};
75
- let stringFormatter = (0, $dDeJM$useLocalizedStringFormatter)((0, ($parcel$interopDefault($dDeJM$intlStringsmodulejs))), '@react-aria/table');
76
- let sortDescription = (0, $dDeJM$useMemo)(()=>{
77
- var _state_collection_columns_find;
78
- var _state_collection_columns_find_textValue;
79
- let columnName = (_state_collection_columns_find_textValue = (_state_collection_columns_find = state.collection.columns.find((c)=>c.key === column)) === null || _state_collection_columns_find === void 0 ? void 0 : _state_collection_columns_find.textValue) !== null && _state_collection_columns_find_textValue !== void 0 ? _state_collection_columns_find_textValue : '';
80
- return sortDirection && column ? stringFormatter.format(`${sortDirection}Sort`, {
81
- columnName: columnName
82
- }) : undefined;
83
- // eslint-disable-next-line react-hooks/exhaustive-deps
84
- }, [
85
- sortDirection,
86
- column,
87
- state.collection.columns
88
- ]);
89
- let descriptionProps = (0, $dDeJM$useDescription)(sortDescription);
90
- // Only announce after initial render, tabbing to the table will tell you the initial sort info already
91
- (0, $dDeJM$useUpdateEffect)(()=>{
92
- if (sortDescription) (0, $dDeJM$announce)(sortDescription, 'assertive', 500);
93
- }, [
94
- sortDescription
95
- ]);
96
- return {
97
- gridProps: (0, $dDeJM$mergeProps)(gridProps, descriptionProps, {
98
- // merge sort description with long press information
99
- 'aria-describedby': [
100
- descriptionProps['aria-describedby'],
101
- gridProps['aria-describedby']
102
- ].filter(Boolean).join(' ')
103
- })
104
- };
105
- }
106
-
107
-
108
- export {$6e31608fbba75bab$export$25bceaac3c7e4dc7 as useTable};
109
- //# sourceMappingURL=useTable.module.js.map