@react-aria/table 3.13.6-nightly.4552 → 3.13.6-nightly.4558

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 (90) hide show
  1. package/dist/TableKeyboardDelegate.main.js +132 -0
  2. package/dist/TableKeyboardDelegate.main.js.map +1 -0
  3. package/dist/TableKeyboardDelegate.mjs +127 -0
  4. package/dist/TableKeyboardDelegate.module.js +127 -0
  5. package/dist/TableKeyboardDelegate.module.js.map +1 -0
  6. package/dist/ar-AE.mjs +1 -1
  7. package/dist/bg-BG.mjs +1 -1
  8. package/dist/cs-CZ.mjs +1 -1
  9. package/dist/da-DK.mjs +1 -1
  10. package/dist/de-DE.mjs +1 -1
  11. package/dist/el-GR.mjs +1 -1
  12. package/dist/en-US.mjs +1 -1
  13. package/dist/es-ES.mjs +1 -1
  14. package/dist/et-EE.mjs +1 -1
  15. package/dist/fi-FI.mjs +1 -1
  16. package/dist/fr-FR.mjs +1 -1
  17. package/dist/he-IL.mjs +1 -1
  18. package/dist/hr-HR.mjs +1 -1
  19. package/dist/hu-HU.mjs +1 -1
  20. package/dist/import.mjs +8 -779
  21. package/dist/intlStrings.main.js +108 -0
  22. package/dist/intlStrings.main.js.map +1 -0
  23. package/dist/intlStrings.mjs +110 -0
  24. package/dist/intlStrings.module.js +110 -0
  25. package/dist/intlStrings.module.js.map +1 -0
  26. package/dist/it-IT.mjs +1 -1
  27. package/dist/ja-JP.mjs +1 -1
  28. package/dist/ko-KR.mjs +1 -1
  29. package/dist/lt-LT.mjs +1 -1
  30. package/dist/lv-LV.mjs +1 -1
  31. package/dist/main.js +15 -786
  32. package/dist/main.js.map +1 -1
  33. package/dist/module.js +8 -779
  34. package/dist/module.js.map +1 -1
  35. package/dist/nb-NO.mjs +1 -1
  36. package/dist/nl-NL.mjs +1 -1
  37. package/dist/pl-PL.mjs +1 -1
  38. package/dist/pt-BR.mjs +1 -1
  39. package/dist/pt-PT.mjs +1 -1
  40. package/dist/ro-RO.mjs +1 -1
  41. package/dist/ru-RU.mjs +1 -1
  42. package/dist/sk-SK.mjs +1 -1
  43. package/dist/sl-SI.mjs +1 -1
  44. package/dist/sr-SP.mjs +1 -1
  45. package/dist/sv-SE.mjs +1 -1
  46. package/dist/tr-TR.mjs +1 -1
  47. package/dist/uk-UA.mjs +1 -1
  48. package/dist/useTable.main.js +111 -0
  49. package/dist/useTable.main.js.map +1 -0
  50. package/dist/useTable.mjs +106 -0
  51. package/dist/useTable.module.js +106 -0
  52. package/dist/useTable.module.js.map +1 -0
  53. package/dist/useTableCell.main.js +36 -0
  54. package/dist/useTableCell.main.js.map +1 -0
  55. package/dist/useTableCell.mjs +31 -0
  56. package/dist/useTableCell.module.js +31 -0
  57. package/dist/useTableCell.module.js.map +1 -0
  58. package/dist/useTableColumnHeader.main.js +93 -0
  59. package/dist/useTableColumnHeader.main.js.map +1 -0
  60. package/dist/useTableColumnHeader.mjs +88 -0
  61. package/dist/useTableColumnHeader.module.js +88 -0
  62. package/dist/useTableColumnHeader.module.js.map +1 -0
  63. package/dist/useTableColumnResize.main.js +216 -0
  64. package/dist/useTableColumnResize.main.js.map +1 -0
  65. package/dist/useTableColumnResize.mjs +211 -0
  66. package/dist/useTableColumnResize.module.js +211 -0
  67. package/dist/useTableColumnResize.module.js.map +1 -0
  68. package/dist/useTableHeaderRow.main.js +32 -0
  69. package/dist/useTableHeaderRow.main.js.map +1 -0
  70. package/dist/useTableHeaderRow.mjs +27 -0
  71. package/dist/useTableHeaderRow.module.js +27 -0
  72. package/dist/useTableHeaderRow.module.js.map +1 -0
  73. package/dist/useTableRow.main.js +80 -0
  74. package/dist/useTableRow.main.js.map +1 -0
  75. package/dist/useTableRow.mjs +75 -0
  76. package/dist/useTableRow.module.js +75 -0
  77. package/dist/useTableRow.module.js.map +1 -0
  78. package/dist/useTableSelectionCheckbox.main.js +56 -0
  79. package/dist/useTableSelectionCheckbox.main.js.map +1 -0
  80. package/dist/useTableSelectionCheckbox.mjs +50 -0
  81. package/dist/useTableSelectionCheckbox.module.js +50 -0
  82. package/dist/useTableSelectionCheckbox.module.js.map +1 -0
  83. package/dist/utils.main.js +43 -0
  84. package/dist/utils.main.js.map +1 -0
  85. package/dist/utils.mjs +35 -0
  86. package/dist/utils.module.js +35 -0
  87. package/dist/utils.module.js.map +1 -0
  88. package/dist/zh-CN.mjs +1 -1
  89. package/dist/zh-TW.mjs +1 -1
  90. package/package.json +17 -17
package/dist/main.js CHANGED
@@ -1,88 +1,26 @@
1
- var $ca0f93ae476efcee$exports = require("./ar-AE.main.js");
2
- var $8fcf86b24fd399a9$exports = require("./bg-BG.main.js");
3
- var $146712099a722811$exports = require("./cs-CZ.main.js");
4
- var $2735c96991aebe53$exports = require("./da-DK.main.js");
5
- var $d85ed0c826146b1e$exports = require("./de-DE.main.js");
6
- var $1aecf8df24cd2c6e$exports = require("./el-GR.main.js");
7
- var $8629e38d73986227$exports = require("./en-US.main.js");
8
- var $219ef73190fd7b54$exports = require("./es-ES.main.js");
9
- var $28e4d12b64c559fe$exports = require("./et-EE.main.js");
10
- var $d443cdd0bb14863a$exports = require("./fi-FI.main.js");
11
- var $e7b61bd0e93b97c5$exports = require("./fr-FR.main.js");
12
- var $b09d12ffa0a56a3e$exports = require("./he-IL.main.js");
13
- var $c3d9f76f15300329$exports = require("./hr-HR.main.js");
14
- var $9904561a995a328e$exports = require("./hu-HU.main.js");
15
- var $b63a88a974650d19$exports = require("./it-IT.main.js");
16
- var $f79114b6f7838962$exports = require("./ja-JP.main.js");
17
- var $305e358db516b233$exports = require("./ko-KR.main.js");
18
- var $c37a95c245032ee0$exports = require("./lt-LT.main.js");
19
- var $0d99b6662f72a76d$exports = require("./lv-LV.main.js");
20
- var $b350dd154e1c203e$exports = require("./nb-NO.main.js");
21
- var $94dcc10598f2ecbe$exports = require("./nl-NL.main.js");
22
- var $847263ec44d85feb$exports = require("./pl-PL.main.js");
23
- var $649f25af616381b6$exports = require("./pt-BR.main.js");
24
- var $63863f752f22090b$exports = require("./pt-PT.main.js");
25
- var $1011caef6838d0cf$exports = require("./ro-RO.main.js");
26
- var $5c0e71883f016b2f$exports = require("./ru-RU.main.js");
27
- var $9799788df99a536e$exports = require("./sk-SK.main.js");
28
- var $79bf9bea0e0b8579$exports = require("./sl-SI.main.js");
29
- var $374736afc1a4c11c$exports = require("./sr-SP.main.js");
30
- var $948317bce9061901$exports = require("./sv-SE.main.js");
31
- var $73e2289d5a9ac4de$exports = require("./tr-TR.main.js");
32
- var $aca57efccc60ebb1$exports = require("./uk-UA.main.js");
33
- var $ccd86abad329f871$exports = require("./zh-CN.main.js");
34
- var $ad6eb5efb83fe2f8$exports = require("./zh-TW.main.js");
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");
35
8
  var $kJQf8$reactariagrid = require("@react-aria/grid");
36
- var $kJQf8$reactarialiveannouncer = require("@react-aria/live-announcer");
37
- var $kJQf8$reactariautils = require("@react-aria/utils");
38
- var $kJQf8$react = require("react");
39
- var $kJQf8$reactstatelyflags = require("@react-stately/flags");
40
- var $kJQf8$reactariai18n = require("@react-aria/i18n");
41
- var $kJQf8$reactstatelycollections = require("@react-stately/collections");
42
- var $kJQf8$reactariafocus = require("@react-aria/focus");
43
- var $kJQf8$reactariainteractions = require("@react-aria/interactions");
44
- var $kJQf8$reactariavisuallyhidden = require("@react-aria/visually-hidden");
45
9
 
46
10
 
47
11
  function $parcel$export(e, n, v, s) {
48
12
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
49
13
  }
50
14
 
51
- function $parcel$interopDefault(a) {
52
- return a && a.__esModule ? a.default : a;
53
- }
54
-
55
15
  $parcel$export(module.exports, "useTableRowGroup", () => $cd66afe5decb6adb$export$6fb1613bd7b28198);
56
- $parcel$export(module.exports, "useTable", () => $25d14c0f8fad722e$export$25bceaac3c7e4dc7);
57
- $parcel$export(module.exports, "useTableColumnHeader", () => $7669c34a63ef0113$export$9514819a8c81e960);
58
- $parcel$export(module.exports, "useTableRow", () => $10b2115217af7c93$export$7f2f6ae19e707aa5);
59
- $parcel$export(module.exports, "useTableHeaderRow", () => $eb16c38321a72835$export$1b95a7d2d517b841);
60
- $parcel$export(module.exports, "useTableCell", () => $32387a1f2c61cda2$export$49571c903d73624c);
61
- $parcel$export(module.exports, "useTableSelectionCheckbox", () => $0b394e4562ac57c9$export$16ea7f650bd7c1bb);
62
- $parcel$export(module.exports, "useTableSelectAllCheckbox", () => $0b394e4562ac57c9$export$1003db6a7e384b99);
63
- $parcel$export(module.exports, "useTableColumnResize", () => $16d645f9e2153641$export$52994e973806c219);
64
- /*
65
- * Copyright 2020 Adobe. All rights reserved.
66
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
67
- * you may not use this file except in compliance with the License. You may obtain a copy
68
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
69
- *
70
- * Unless required by applicable law or agreed to in writing, software distributed under
71
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
72
- * OF ANY KIND, either express or implied. See the License for the specific language
73
- * governing permissions and limitations under the License.
74
- */ /*
75
- * Copyright 2020 Adobe. All rights reserved.
76
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
77
- * you may not use this file except in compliance with the License. You may obtain a copy
78
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
79
- *
80
- * Unless required by applicable law or agreed to in writing, software distributed under
81
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
82
- * OF ANY KIND, either express or implied. See the License for the specific language
83
- * governing permissions and limitations under the License.
84
- */
85
-
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);
86
24
  /*
87
25
  * Copyright 2020 Adobe. All rights reserved.
88
26
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -93,723 +31,14 @@ $parcel$export(module.exports, "useTableColumnResize", () => $16d645f9e2153641$e
93
31
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
94
32
  * OF ANY KIND, either express or implied. See the License for the specific language
95
33
  * governing permissions and limitations under the License.
96
- */ const $6acf696f746f932c$export$552312adfd451dab = new WeakMap();
97
- function $6acf696f746f932c$var$normalizeKey(key) {
98
- if (typeof key === "string") return key.replace(/\s*/g, "");
99
- return "" + key;
100
- }
101
- function $6acf696f746f932c$export$37cd4213f2ad742e(state, columnKey) {
102
- let gridId = $6acf696f746f932c$export$552312adfd451dab.get(state);
103
- if (!gridId) throw new Error("Unknown grid");
104
- return `${gridId}-${$6acf696f746f932c$var$normalizeKey(columnKey)}`;
105
- }
106
- function $6acf696f746f932c$export$19baff3266315d44(state, rowKey, columnKey) {
107
- let gridId = $6acf696f746f932c$export$552312adfd451dab.get(state);
108
- if (!gridId) throw new Error("Unknown grid");
109
- return `${gridId}-${$6acf696f746f932c$var$normalizeKey(rowKey)}-${$6acf696f746f932c$var$normalizeKey(columnKey)}`;
110
- }
111
- function $6acf696f746f932c$export$85069b70317f543(state, rowKey) {
112
- // A row is labelled by it's row headers.
113
- return [
114
- ...state.collection.rowHeaderColumnKeys
115
- ].map((columnKey)=>$6acf696f746f932c$export$19baff3266315d44(state, rowKey, columnKey)).join(" ");
116
- }
117
-
118
-
119
- var $7ff3f66df3873a5e$exports = {};
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
- $7ff3f66df3873a5e$exports = {
155
- "ar-AE": $ca0f93ae476efcee$exports,
156
- "bg-BG": $8fcf86b24fd399a9$exports,
157
- "cs-CZ": $146712099a722811$exports,
158
- "da-DK": $2735c96991aebe53$exports,
159
- "de-DE": $d85ed0c826146b1e$exports,
160
- "el-GR": $1aecf8df24cd2c6e$exports,
161
- "en-US": $8629e38d73986227$exports,
162
- "es-ES": $219ef73190fd7b54$exports,
163
- "et-EE": $28e4d12b64c559fe$exports,
164
- "fi-FI": $d443cdd0bb14863a$exports,
165
- "fr-FR": $e7b61bd0e93b97c5$exports,
166
- "he-IL": $b09d12ffa0a56a3e$exports,
167
- "hr-HR": $c3d9f76f15300329$exports,
168
- "hu-HU": $9904561a995a328e$exports,
169
- "it-IT": $b63a88a974650d19$exports,
170
- "ja-JP": $f79114b6f7838962$exports,
171
- "ko-KR": $305e358db516b233$exports,
172
- "lt-LT": $c37a95c245032ee0$exports,
173
- "lv-LV": $0d99b6662f72a76d$exports,
174
- "nb-NO": $b350dd154e1c203e$exports,
175
- "nl-NL": $94dcc10598f2ecbe$exports,
176
- "pl-PL": $847263ec44d85feb$exports,
177
- "pt-BR": $649f25af616381b6$exports,
178
- "pt-PT": $63863f752f22090b$exports,
179
- "ro-RO": $1011caef6838d0cf$exports,
180
- "ru-RU": $5c0e71883f016b2f$exports,
181
- "sk-SK": $9799788df99a536e$exports,
182
- "sl-SI": $79bf9bea0e0b8579$exports,
183
- "sr-SP": $374736afc1a4c11c$exports,
184
- "sv-SE": $948317bce9061901$exports,
185
- "tr-TR": $73e2289d5a9ac4de$exports,
186
- "uk-UA": $aca57efccc60ebb1$exports,
187
- "zh-CN": $ccd86abad329f871$exports,
188
- "zh-TW": $ad6eb5efb83fe2f8$exports
189
- };
190
-
191
-
192
-
193
-
194
- /*
195
- * Copyright 2022 Adobe. All rights reserved.
196
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
197
- * you may not use this file except in compliance with the License. You may obtain a copy
198
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
199
- *
200
- * Unless required by applicable law or agreed to in writing, software distributed under
201
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
202
- * OF ANY KIND, either express or implied. See the License for the specific language
203
- * governing permissions and limitations under the License.
204
34
  */
205
35
 
206
- class $a911ff492b884835$export$da43f8f5cb04028d extends (0, $kJQf8$reactariagrid.GridKeyboardDelegate) {
207
- isCell(node) {
208
- return node.type === "cell" || node.type === "rowheader" || node.type === "column";
209
- }
210
- getKeyBelow(key) {
211
- let startItem = this.collection.getItem(key);
212
- if (!startItem) return;
213
- // If focus was on a column, then focus the first child column if any,
214
- // or find the corresponding cell in the first row.
215
- if (startItem.type === "column") {
216
- let child = (0, $kJQf8$reactstatelycollections.getFirstItem)((0, $kJQf8$reactstatelycollections.getChildNodes)(startItem, this.collection));
217
- if (child) return child.key;
218
- let firstKey = this.getFirstKey();
219
- if (firstKey == null) return;
220
- let firstItem = this.collection.getItem(firstKey);
221
- return (0, $kJQf8$reactstatelycollections.getNthItem)((0, $kJQf8$reactstatelycollections.getChildNodes)(firstItem, this.collection), startItem.index).key;
222
- }
223
- return super.getKeyBelow(key);
224
- }
225
- getKeyAbove(key) {
226
- let startItem = this.collection.getItem(key);
227
- if (!startItem) return;
228
- // If focus was on a column, focus the parent column if any
229
- if (startItem.type === "column") {
230
- let parent = this.collection.getItem(startItem.parentKey);
231
- if (parent && parent.type === "column") return parent.key;
232
- return;
233
- }
234
- // only return above row key if not header row
235
- let superKey = super.getKeyAbove(key);
236
- if (superKey != null && this.collection.getItem(superKey).type !== "headerrow") return superKey;
237
- // If no item was found, and focus was on a cell, then focus the
238
- // corresponding column header.
239
- if (this.isCell(startItem)) return this.collection.columns[startItem.index].key;
240
- // If focus was on a row, then focus the first column header.
241
- return this.collection.columns[0].key;
242
- }
243
- findNextColumnKey(column) {
244
- // Search following columns
245
- let key = this.findNextKey(column.key, (item)=>item.type === "column");
246
- if (key != null) return key;
247
- // Wrap around to the first column
248
- let row = this.collection.headerRows[column.level];
249
- for (let item of (0, $kJQf8$reactstatelycollections.getChildNodes)(row, this.collection)){
250
- if (item.type === "column") return item.key;
251
- }
252
- }
253
- findPreviousColumnKey(column) {
254
- // Search previous columns
255
- let key = this.findPreviousKey(column.key, (item)=>item.type === "column");
256
- if (key != null) return key;
257
- // Wrap around to the last column
258
- let row = this.collection.headerRows[column.level];
259
- let childNodes = [
260
- ...(0, $kJQf8$reactstatelycollections.getChildNodes)(row, this.collection)
261
- ];
262
- for(let i = childNodes.length - 1; i >= 0; i--){
263
- let item = childNodes[i];
264
- if (item.type === "column") return item.key;
265
- }
266
- }
267
- getKeyRightOf(key) {
268
- let item = this.collection.getItem(key);
269
- if (!item) return;
270
- // If focus was on a column, then focus the next column
271
- if (item.type === "column") return this.direction === "rtl" ? this.findPreviousColumnKey(item) : this.findNextColumnKey(item);
272
- return super.getKeyRightOf(key);
273
- }
274
- getKeyLeftOf(key) {
275
- let item = this.collection.getItem(key);
276
- if (!item) return;
277
- // If focus was on a column, then focus the previous column
278
- if (item.type === "column") return this.direction === "rtl" ? this.findNextColumnKey(item) : this.findPreviousColumnKey(item);
279
- return super.getKeyLeftOf(key);
280
- }
281
- getKeyForSearch(search, fromKey) {
282
- if (!this.collator) return null;
283
- let collection = this.collection;
284
- let key = fromKey !== null && fromKey !== void 0 ? fromKey : this.getFirstKey();
285
- if (key == null) return null;
286
- // If the starting key is a cell, search from its parent row.
287
- let startItem = collection.getItem(key);
288
- if (startItem.type === "cell") key = startItem.parentKey;
289
- let hasWrapped = false;
290
- while(key != null){
291
- let item = collection.getItem(key);
292
- // Check each of the row header cells in this row for a match
293
- for (let cell of (0, $kJQf8$reactstatelycollections.getChildNodes)(item, this.collection)){
294
- let column = collection.columns[cell.index];
295
- if (collection.rowHeaderColumnKeys.has(column.key) && cell.textValue) {
296
- let substring = cell.textValue.slice(0, search.length);
297
- if (this.collator.compare(substring, search) === 0) {
298
- // If we started on a cell, end on the matching cell. Otherwise, end on the row.
299
- let fromItem = fromKey != null ? collection.getItem(fromKey) : startItem;
300
- return fromItem.type === "cell" ? cell.key : item.key;
301
- }
302
- }
303
- }
304
- key = this.getKeyBelow(key);
305
- // Wrap around when reaching the end of the collection
306
- if (key == null && !hasWrapped) {
307
- key = this.getFirstKey();
308
- hasWrapped = true;
309
- }
310
- }
311
- return null;
312
- }
313
- }
314
-
315
-
316
-
317
-
318
- function $25d14c0f8fad722e$export$25bceaac3c7e4dc7(props, state, ref) {
319
- let { keyboardDelegate: keyboardDelegate, isVirtualized: isVirtualized, layout: layout } = props;
320
- // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).
321
- // When virtualized, the layout object will be passed in as a prop and override this.
322
- let collator = (0, $kJQf8$reactariai18n.useCollator)({
323
- usage: "search",
324
- sensitivity: "base"
325
- });
326
- let { direction: direction } = (0, $kJQf8$reactariai18n.useLocale)();
327
- let disabledBehavior = state.selectionManager.disabledBehavior;
328
- let delegate = (0, $kJQf8$react.useMemo)(()=>keyboardDelegate || new (0, $a911ff492b884835$export$da43f8f5cb04028d)({
329
- collection: state.collection,
330
- disabledKeys: state.disabledKeys,
331
- disabledBehavior: disabledBehavior,
332
- ref: ref,
333
- direction: direction,
334
- collator: collator,
335
- layout: layout
336
- }), [
337
- keyboardDelegate,
338
- state.collection,
339
- state.disabledKeys,
340
- disabledBehavior,
341
- ref,
342
- direction,
343
- collator,
344
- layout
345
- ]);
346
- let id = (0, $kJQf8$reactariautils.useId)(props.id);
347
- (0, $6acf696f746f932c$export$552312adfd451dab).set(state, id);
348
- let { gridProps: gridProps } = (0, $kJQf8$reactariagrid.useGrid)({
349
- ...props,
350
- id: id,
351
- keyboardDelegate: delegate
352
- }, state, ref);
353
- // Override to include header rows
354
- if (isVirtualized) gridProps["aria-rowcount"] = state.collection.size + state.collection.headerRows.length;
355
- if ((0, $kJQf8$reactstatelyflags.tableNestedRows)() && "expandedKeys" in state) gridProps.role = "treegrid";
356
- let { column: column, direction: sortDirection } = state.sortDescriptor || {};
357
- let stringFormatter = (0, $kJQf8$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7ff3f66df3873a5e$exports))), "@react-aria/table");
358
- let sortDescription = (0, $kJQf8$react.useMemo)(()=>{
359
- var _state_collection_columns_find;
360
- let columnName = (_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;
361
- return sortDirection && column ? stringFormatter.format(`${sortDirection}Sort`, {
362
- columnName: columnName
363
- }) : undefined;
364
- // eslint-disable-next-line react-hooks/exhaustive-deps
365
- }, [
366
- sortDirection,
367
- column,
368
- state.collection.columns
369
- ]);
370
- let descriptionProps = (0, $kJQf8$reactariautils.useDescription)(sortDescription);
371
- // Only announce after initial render, tabbing to the table will tell you the initial sort info already
372
- (0, $kJQf8$reactariautils.useUpdateEffect)(()=>{
373
- (0, $kJQf8$reactarialiveannouncer.announce)(sortDescription, "assertive", 500);
374
- }, [
375
- sortDescription
376
- ]);
377
- return {
378
- gridProps: (0, $kJQf8$reactariautils.mergeProps)(gridProps, descriptionProps, {
379
- // merge sort description with long press information
380
- "aria-describedby": [
381
- descriptionProps["aria-describedby"],
382
- gridProps["aria-describedby"]
383
- ].filter(Boolean).join(" ")
384
- })
385
- };
386
- }
387
-
388
36
 
389
- /*
390
- * Copyright 2020 Adobe. All rights reserved.
391
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
392
- * you may not use this file except in compliance with the License. You may obtain a copy
393
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
394
- *
395
- * Unless required by applicable law or agreed to in writing, software distributed under
396
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
397
- * OF ANY KIND, either express or implied. See the License for the specific language
398
- * governing permissions and limitations under the License.
399
- */
400
37
 
401
38
 
402
39
 
403
40
 
404
41
 
405
-
406
-
407
- function $7669c34a63ef0113$export$9514819a8c81e960(props, state, ref) {
408
- var _state_sortDescriptor, _state_sortDescriptor1;
409
- let { node: node } = props;
410
- let allowsSorting = node.props.allowsSorting;
411
- // if there are no focusable children, the column header will focus the cell
412
- let { gridCellProps: gridCellProps } = (0, $kJQf8$reactariagrid.useGridCell)({
413
- ...props,
414
- focusMode: "child"
415
- }, state, ref);
416
- let isSelectionCellDisabled = node.props.isSelectionCell && state.selectionManager.selectionMode === "single";
417
- let { pressProps: pressProps } = (0, $kJQf8$reactariainteractions.usePress)({
418
- isDisabled: !allowsSorting || isSelectionCellDisabled,
419
- onPress () {
420
- state.sort(node.key);
421
- },
422
- ref: ref
423
- });
424
- // Needed to pick up the focusable context, enabling things like Tooltips for example
425
- let { focusableProps: focusableProps } = (0, $kJQf8$reactariafocus.useFocusable)({}, ref);
426
- let ariaSort = null;
427
- let isSortedColumn = ((_state_sortDescriptor = state.sortDescriptor) === null || _state_sortDescriptor === void 0 ? void 0 : _state_sortDescriptor.column) === node.key;
428
- let sortDirection = (_state_sortDescriptor1 = state.sortDescriptor) === null || _state_sortDescriptor1 === void 0 ? void 0 : _state_sortDescriptor1.direction;
429
- // aria-sort not supported in Android Talkback
430
- if (node.props.allowsSorting && !(0, $kJQf8$reactariautils.isAndroid)()) ariaSort = isSortedColumn ? sortDirection : "none";
431
- let stringFormatter = (0, $kJQf8$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7ff3f66df3873a5e$exports))), "@react-aria/table");
432
- let sortDescription;
433
- if (allowsSorting) {
434
- sortDescription = `${stringFormatter.format("sortable")}`;
435
- // Android Talkback doesn't support aria-sort so we add sort order details to the aria-described by here
436
- if (isSortedColumn && sortDirection && (0, $kJQf8$reactariautils.isAndroid)()) sortDescription = `${sortDescription}, ${stringFormatter.format(sortDirection)}`;
437
- }
438
- let descriptionProps = (0, $kJQf8$reactariautils.useDescription)(sortDescription);
439
- let shouldDisableFocus = state.collection.size === 0;
440
- (0, $kJQf8$react.useEffect)(()=>{
441
- if (shouldDisableFocus && state.selectionManager.focusedKey === node.key) state.selectionManager.setFocusedKey(null);
442
- }, [
443
- shouldDisableFocus,
444
- state.selectionManager,
445
- node.key
446
- ]);
447
- return {
448
- columnHeaderProps: {
449
- ...(0, $kJQf8$reactariautils.mergeProps)(gridCellProps, pressProps, focusableProps, descriptionProps, // If the table is empty, make all column headers untabbable
450
- shouldDisableFocus && {
451
- tabIndex: -1
452
- }),
453
- role: "columnheader",
454
- id: (0, $6acf696f746f932c$export$37cd4213f2ad742e)(state, node.key),
455
- "aria-colspan": node.colspan && node.colspan > 1 ? node.colspan : null,
456
- "aria-sort": ariaSort
457
- }
458
- };
459
- }
460
-
461
-
462
- /*
463
- * Copyright 2020 Adobe. All rights reserved.
464
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
465
- * you may not use this file except in compliance with the License. You may obtain a copy
466
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
467
- *
468
- * Unless required by applicable law or agreed to in writing, software distributed under
469
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
470
- * OF ANY KIND, either express or implied. See the License for the specific language
471
- * governing permissions and limitations under the License.
472
- */
473
-
474
-
475
-
476
-
477
-
478
- const $10b2115217af7c93$var$EXPANSION_KEYS = {
479
- expand: {
480
- ltr: "ArrowRight",
481
- rtl: "ArrowLeft"
482
- },
483
- "collapse": {
484
- ltr: "ArrowLeft",
485
- rtl: "ArrowRight"
486
- }
487
- };
488
- function $10b2115217af7c93$export$7f2f6ae19e707aa5(props, state, ref) {
489
- let { node: node, isVirtualized: isVirtualized } = props;
490
- let { rowProps: rowProps, ...states } = (0, $kJQf8$reactariagrid.useGridRow)(props, state, ref);
491
- let { direction: direction } = (0, $kJQf8$reactariai18n.useLocale)();
492
- if (isVirtualized && !((0, $kJQf8$reactstatelyflags.tableNestedRows)() && "expandedKeys" in state)) rowProps["aria-rowindex"] = node.index + 1 + state.collection.headerRows.length; // aria-rowindex is 1 based
493
- else delete rowProps["aria-rowindex"];
494
- let treeGridRowProps = {};
495
- if ((0, $kJQf8$reactstatelyflags.tableNestedRows)() && "expandedKeys" in state) {
496
- let treeNode = state.keyMap.get(node.key);
497
- if (treeNode != null) {
498
- var _treeNode_props, _treeNode_props_children, _treeNode_props1;
499
- let hasChildRows = ((_treeNode_props = treeNode.props) === null || _treeNode_props === void 0 ? void 0 : _treeNode_props.UNSTABLE_childItems) || ((_treeNode_props1 = treeNode.props) === null || _treeNode_props1 === void 0 ? void 0 : (_treeNode_props_children = _treeNode_props1.children) === null || _treeNode_props_children === void 0 ? void 0 : _treeNode_props_children.length) > state.userColumnCount;
500
- treeGridRowProps = {
501
- onKeyDown: (e)=>{
502
- if (e.key === $10b2115217af7c93$var$EXPANSION_KEYS["expand"][direction] && state.selectionManager.focusedKey === treeNode.key && hasChildRows && state.expandedKeys !== "all" && !state.expandedKeys.has(treeNode.key)) {
503
- state.toggleKey(treeNode.key);
504
- e.stopPropagation();
505
- } else if (e.key === $10b2115217af7c93$var$EXPANSION_KEYS["collapse"][direction] && state.selectionManager.focusedKey === treeNode.key && hasChildRows && (state.expandedKeys === "all" || state.expandedKeys.has(treeNode.key))) {
506
- state.toggleKey(treeNode.key);
507
- e.stopPropagation();
508
- }
509
- },
510
- "aria-expanded": hasChildRows ? state.expandedKeys === "all" || state.expandedKeys.has(node.key) : undefined,
511
- "aria-level": treeNode.level,
512
- "aria-posinset": treeNode.indexOfType + 1,
513
- "aria-setsize": treeNode.level > 1 ? (0, $kJQf8$reactstatelycollections.getLastItem)(state.keyMap.get(treeNode === null || treeNode === void 0 ? void 0 : treeNode.parentKey).childNodes).indexOfType + 1 : (0, $kJQf8$reactstatelycollections.getLastItem)(state.keyMap.get(state.collection.body.key).childNodes).indexOfType + 1
514
- };
515
- }
516
- }
517
- let linkProps = states.hasAction ? (0, $kJQf8$reactariautils.getSyntheticLinkProps)(node.props) : {};
518
- return {
519
- rowProps: {
520
- ...(0, $kJQf8$reactariautils.mergeProps)(rowProps, treeGridRowProps, linkProps),
521
- "aria-labelledby": (0, $6acf696f746f932c$export$85069b70317f543)(state, node.key)
522
- },
523
- ...states
524
- };
525
- }
526
-
527
-
528
- /*
529
- * Copyright 2020 Adobe. All rights reserved.
530
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
531
- * you may not use this file except in compliance with the License. You may obtain a copy
532
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
533
- *
534
- * Unless required by applicable law or agreed to in writing, software distributed under
535
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
536
- * OF ANY KIND, either express or implied. See the License for the specific language
537
- * governing permissions and limitations under the License.
538
- */
539
- function $eb16c38321a72835$export$1b95a7d2d517b841(props, state, ref) {
540
- let { node: node, isVirtualized: isVirtualized } = props;
541
- let rowProps = {
542
- role: "row"
543
- };
544
- if (isVirtualized && !((0, $kJQf8$reactstatelyflags.tableNestedRows)() && "expandedKeys" in state)) rowProps["aria-rowindex"] = node.index + 1; // aria-rowindex is 1 based
545
- return {
546
- rowProps: rowProps
547
- };
548
- }
549
-
550
-
551
- /*
552
- * Copyright 2020 Adobe. All rights reserved.
553
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
554
- * you may not use this file except in compliance with the License. You may obtain a copy
555
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
556
- *
557
- * Unless required by applicable law or agreed to in writing, software distributed under
558
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
559
- * OF ANY KIND, either express or implied. See the License for the specific language
560
- * governing permissions and limitations under the License.
561
- */
562
-
563
- function $32387a1f2c61cda2$export$49571c903d73624c(props, state, ref) {
564
- let { gridCellProps: gridCellProps, isPressed: isPressed } = (0, $kJQf8$reactariagrid.useGridCell)(props, state, ref);
565
- let columnKey = props.node.column.key;
566
- if (state.collection.rowHeaderColumnKeys.has(columnKey)) {
567
- gridCellProps.role = "rowheader";
568
- gridCellProps.id = (0, $6acf696f746f932c$export$19baff3266315d44)(state, props.node.parentKey, columnKey);
569
- }
570
- return {
571
- gridCellProps: gridCellProps,
572
- isPressed: isPressed
573
- };
574
- }
575
-
576
-
577
- /*
578
- * Copyright 2020 Adobe. All rights reserved.
579
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
580
- * you may not use this file except in compliance with the License. You may obtain a copy
581
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
582
- *
583
- * Unless required by applicable law or agreed to in writing, software distributed under
584
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
585
- * OF ANY KIND, either express or implied. See the License for the specific language
586
- * governing permissions and limitations under the License.
587
- */
588
-
589
-
590
-
591
- function $0b394e4562ac57c9$export$16ea7f650bd7c1bb(props, state) {
592
- let { key: key } = props;
593
- const { checkboxProps: checkboxProps } = (0, $kJQf8$reactariagrid.useGridSelectionCheckbox)(props, state);
594
- return {
595
- checkboxProps: {
596
- ...checkboxProps,
597
- "aria-labelledby": `${checkboxProps.id} ${(0, $6acf696f746f932c$export$85069b70317f543)(state, key)}`
598
- }
599
- };
600
- }
601
- function $0b394e4562ac57c9$export$1003db6a7e384b99(state) {
602
- let { isEmpty: isEmpty, isSelectAll: isSelectAll, selectionMode: selectionMode } = state.selectionManager;
603
- const stringFormatter = (0, $kJQf8$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7ff3f66df3873a5e$exports))), "@react-aria/table");
604
- return {
605
- checkboxProps: {
606
- "aria-label": stringFormatter.format(selectionMode === "single" ? "select" : "selectAll"),
607
- isSelected: isSelectAll,
608
- isDisabled: selectionMode !== "multiple" || state.collection.size === 0,
609
- isIndeterminate: !isEmpty && !isSelectAll,
610
- onChange: ()=>state.selectionManager.toggleSelectAll()
611
- }
612
- };
613
- }
614
-
615
-
616
- /*
617
- * Copyright 2020 Adobe. All rights reserved.
618
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
619
- * you may not use this file except in compliance with the License. You may obtain a copy
620
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
621
- *
622
- * Unless required by applicable law or agreed to in writing, software distributed under
623
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
624
- * OF ANY KIND, either express or implied. See the License for the specific language
625
- * governing permissions and limitations under the License.
626
- */
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
- function $16d645f9e2153641$export$52994e973806c219(props, state, ref) {
635
- let { column: item, triggerRef: triggerRef, isDisabled: isDisabled, onResizeStart: onResizeStart, onResize: onResize, onResizeEnd: onResizeEnd, "aria-label": ariaLabel } = props;
636
- const stringFormatter = (0, $kJQf8$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7ff3f66df3873a5e$exports))), "@react-aria/table");
637
- let id = (0, $kJQf8$reactariautils.useId)();
638
- let isResizing = state.resizingColumn === item.key;
639
- let isResizingRef = (0, $kJQf8$react.useRef)(isResizing);
640
- let lastSize = (0, $kJQf8$react.useRef)(null);
641
- let wasFocusedOnResizeStart = (0, $kJQf8$react.useRef)(false);
642
- let editModeEnabled = state.tableState.isKeyboardNavigationDisabled;
643
- let { direction: direction } = (0, $kJQf8$reactariai18n.useLocale)();
644
- let { keyboardProps: keyboardProps } = (0, $kJQf8$reactariainteractions.useKeyboard)({
645
- onKeyDown: (e)=>{
646
- if (editModeEnabled) {
647
- if (e.key === "Escape" || e.key === "Enter" || e.key === " " || e.key === "Tab") {
648
- e.preventDefault();
649
- endResize(item);
650
- }
651
- } else {
652
- // Continue propagation on keydown events so they still bubbles to useSelectableCollection and are handled there
653
- e.continuePropagation();
654
- if (e.key === "Enter") startResize(item);
655
- }
656
- }
657
- });
658
- let startResize = (0, $kJQf8$reactariautils.useEffectEvent)((item)=>{
659
- if (!isResizingRef.current) {
660
- lastSize.current = state.updateResizedColumns(item.key, state.getColumnWidth(item.key));
661
- state.startResize(item.key);
662
- state.tableState.setKeyboardNavigationDisabled(true);
663
- onResizeStart === null || onResizeStart === void 0 ? void 0 : onResizeStart(lastSize.current);
664
- }
665
- isResizingRef.current = true;
666
- });
667
- let resize = (0, $kJQf8$reactariautils.useEffectEvent)((item, newWidth)=>{
668
- let sizes = state.updateResizedColumns(item.key, newWidth);
669
- onResize === null || onResize === void 0 ? void 0 : onResize(sizes);
670
- lastSize.current = sizes;
671
- });
672
- let endResize = (0, $kJQf8$reactariautils.useEffectEvent)((item)=>{
673
- if (isResizingRef.current) {
674
- if (lastSize.current == null) lastSize.current = state.updateResizedColumns(item.key, state.getColumnWidth(item.key));
675
- state.endResize();
676
- state.tableState.setKeyboardNavigationDisabled(false);
677
- onResizeEnd === null || onResizeEnd === void 0 ? void 0 : onResizeEnd(lastSize.current);
678
- isResizingRef.current = false;
679
- if ((triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.current) && !wasFocusedOnResizeStart.current) // switch focus back to the column header unless the resizer was already focused when resizing started.
680
- (0, $kJQf8$reactariafocus.focusSafely)(triggerRef.current);
681
- }
682
- lastSize.current = null;
683
- });
684
- const columnResizeWidthRef = (0, $kJQf8$react.useRef)(0);
685
- const { moveProps: moveProps } = (0, $kJQf8$reactariainteractions.useMove)({
686
- onMoveStart () {
687
- columnResizeWidthRef.current = state.getColumnWidth(item.key);
688
- startResize(item);
689
- },
690
- onMove (e) {
691
- let { deltaX: deltaX, deltaY: deltaY, pointerType: pointerType } = e;
692
- if (direction === "rtl") deltaX *= -1;
693
- if (pointerType === "keyboard") {
694
- if (deltaY !== 0 && deltaX === 0) deltaX = deltaY * -1;
695
- deltaX *= 10;
696
- }
697
- // if moving up/down only, no need to resize
698
- if (deltaX !== 0) {
699
- columnResizeWidthRef.current += deltaX;
700
- resize(item, columnResizeWidthRef.current);
701
- }
702
- },
703
- onMoveEnd (e) {
704
- let { pointerType: pointerType } = e;
705
- columnResizeWidthRef.current = 0;
706
- if (pointerType === "mouse" || pointerType === "touch" && wasFocusedOnResizeStart.current) endResize(item);
707
- }
708
- });
709
- let onKeyDown = (0, $kJQf8$react.useCallback)((e)=>{
710
- if (editModeEnabled) moveProps.onKeyDown(e);
711
- }, [
712
- editModeEnabled,
713
- moveProps
714
- ]);
715
- let min = Math.floor(state.getColumnMinWidth(item.key));
716
- let max = Math.floor(state.getColumnMaxWidth(item.key));
717
- if (max === Infinity) max = Number.MAX_SAFE_INTEGER;
718
- let value = Math.floor(state.getColumnWidth(item.key));
719
- let modality = (0, $kJQf8$reactariainteractions.useInteractionModality)();
720
- if (modality === "virtual" && typeof window !== "undefined" && "ontouchstart" in window) modality = "touch";
721
- let description = (triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.current) == null && (modality === "keyboard" || modality === "virtual") && !isResizing ? stringFormatter.format("resizerDescription") : undefined;
722
- let descriptionProps = (0, $kJQf8$reactariautils.useDescription)(description);
723
- let ariaProps = {
724
- "aria-label": ariaLabel,
725
- "aria-orientation": "horizontal",
726
- "aria-labelledby": `${id} ${(0, $6acf696f746f932c$export$37cd4213f2ad742e)(state.tableState, item.key)}`,
727
- "aria-valuetext": stringFormatter.format("columnSize", {
728
- value: value
729
- }),
730
- "type": "range",
731
- min: min,
732
- max: max,
733
- value: value,
734
- ...descriptionProps
735
- };
736
- const focusInput = (0, $kJQf8$react.useCallback)(()=>{
737
- if (ref.current) (0, $kJQf8$reactariafocus.focusSafely)(ref.current);
738
- }, [
739
- ref
740
- ]);
741
- let resizingColumn = state.resizingColumn;
742
- let prevResizingColumn = (0, $kJQf8$react.useRef)(null);
743
- (0, $kJQf8$react.useEffect)(()=>{
744
- if (prevResizingColumn.current !== resizingColumn && resizingColumn != null && resizingColumn === item.key) {
745
- wasFocusedOnResizeStart.current = document.activeElement === ref.current;
746
- startResize(item);
747
- // Delay focusing input until Android Chrome's delayed click after touchend happens: https://bugs.chromium.org/p/chromium/issues/detail?id=1150073
748
- let timeout = setTimeout(()=>focusInput(), 0);
749
- // VoiceOver on iOS has problems focusing the input from a menu.
750
- let VOTimeout = setTimeout(focusInput, 400);
751
- return ()=>{
752
- clearTimeout(timeout);
753
- clearTimeout(VOTimeout);
754
- };
755
- }
756
- prevResizingColumn.current = resizingColumn;
757
- }, [
758
- resizingColumn,
759
- item,
760
- focusInput,
761
- ref,
762
- startResize
763
- ]);
764
- let onChange = (e)=>{
765
- let currentWidth = state.getColumnWidth(item.key);
766
- let nextValue = parseFloat(e.target.value);
767
- if (nextValue > currentWidth) nextValue = currentWidth + 10;
768
- else nextValue = currentWidth - 10;
769
- resize(item, nextValue);
770
- };
771
- let { pressProps: pressProps } = (0, $kJQf8$reactariainteractions.usePress)({
772
- onPressStart: (e)=>{
773
- if (e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard") return;
774
- if (e.pointerType === "virtual" && state.resizingColumn != null) {
775
- endResize(item);
776
- return;
777
- }
778
- // Sometimes onPress won't trigger for quick taps on mobile so we want to focus the input so blurring away
779
- // can cancel resize mode for us.
780
- focusInput();
781
- // If resizer is always visible, mobile screenreader user can access the visually hidden resizer directly and thus we don't need
782
- // to handle a virtual click to start the resizer.
783
- if (e.pointerType !== "virtual") startResize(item);
784
- },
785
- onPress: (e)=>{
786
- if ((e.pointerType === "touch" && wasFocusedOnResizeStart.current || e.pointerType === "mouse") && state.resizingColumn != null) endResize(item);
787
- }
788
- });
789
- let { visuallyHiddenProps: visuallyHiddenProps } = (0, $kJQf8$reactariavisuallyhidden.useVisuallyHidden)();
790
- return {
791
- resizerProps: (0, $kJQf8$reactariautils.mergeProps)(keyboardProps, {
792
- ...moveProps,
793
- onKeyDown: onKeyDown
794
- }, pressProps, {
795
- style: {
796
- touchAction: "none"
797
- }
798
- }),
799
- inputProps: (0, $kJQf8$reactariautils.mergeProps)(visuallyHiddenProps, {
800
- id: id,
801
- onBlur: ()=>{
802
- endResize(item);
803
- },
804
- onChange: onChange,
805
- disabled: isDisabled
806
- }, ariaProps),
807
- isResizing: isResizing
808
- };
809
- }
810
-
811
-
812
-
813
42
  function $cd66afe5decb6adb$export$6fb1613bd7b28198() {
814
43
  return (0, $kJQf8$reactariagrid.useGridRowGroup)();
815
44
  }