@react-aria/table 3.14.1-nightly.4624 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TableKeyboardDelegate.main.js +13 -13
- package/dist/TableKeyboardDelegate.mjs +13 -13
- package/dist/TableKeyboardDelegate.module.js +13 -13
- package/dist/useTable.main.js +10 -10
- package/dist/useTable.mjs +10 -10
- package/dist/useTable.module.js +10 -10
- package/dist/useTableCell.main.js +1 -1
- package/dist/useTableCell.mjs +1 -1
- package/dist/useTableCell.module.js +1 -1
- package/dist/useTableColumnHeader.main.js +8 -8
- package/dist/useTableColumnHeader.mjs +8 -8
- package/dist/useTableColumnHeader.module.js +8 -8
- package/dist/useTableColumnResize.main.js +19 -19
- package/dist/useTableColumnResize.mjs +19 -19
- package/dist/useTableColumnResize.module.js +19 -19
- package/dist/useTableHeaderRow.main.js +2 -2
- package/dist/useTableHeaderRow.mjs +2 -2
- package/dist/useTableHeaderRow.module.js +2 -2
- package/dist/useTableRow.main.js +15 -15
- package/dist/useTableRow.mjs +15 -15
- package/dist/useTableRow.module.js +15 -15
- package/dist/useTableSelectionCheckbox.main.js +4 -4
- package/dist/useTableSelectionCheckbox.mjs +4 -4
- package/dist/useTableSelectionCheckbox.module.js +4 -4
- package/dist/utils.main.js +5 -5
- package/dist/utils.mjs +5 -5
- package/dist/utils.module.js +5 -5
- package/package.json +17 -17
|
@@ -27,18 +27,18 @@ function $2a795c53a101c542$export$16ea7f650bd7c1bb(props, state) {
|
|
|
27
27
|
return {
|
|
28
28
|
checkboxProps: {
|
|
29
29
|
...checkboxProps,
|
|
30
|
-
|
|
30
|
+
'aria-labelledby': `${checkboxProps.id} ${(0, $2140fb2337097f2d$export$85069b70317f543)(state, key)}`
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function $2a795c53a101c542$export$1003db6a7e384b99(state) {
|
|
35
35
|
let { isEmpty: isEmpty, isSelectAll: isSelectAll, selectionMode: selectionMode } = state.selectionManager;
|
|
36
|
-
const stringFormatter = (0, $iIuaM$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iIuaM$intlStringsmodulejs))),
|
|
36
|
+
const stringFormatter = (0, $iIuaM$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iIuaM$intlStringsmodulejs))), '@react-aria/table');
|
|
37
37
|
return {
|
|
38
38
|
checkboxProps: {
|
|
39
|
-
|
|
39
|
+
'aria-label': stringFormatter.format(selectionMode === 'single' ? 'select' : 'selectAll'),
|
|
40
40
|
isSelected: isSelectAll,
|
|
41
|
-
isDisabled: selectionMode !==
|
|
41
|
+
isDisabled: selectionMode !== 'multiple' || state.collection.size === 0,
|
|
42
42
|
isIndeterminate: !isEmpty && !isSelectAll,
|
|
43
43
|
onChange: ()=>state.selectionManager.toggleSelectAll()
|
|
44
44
|
}
|
package/dist/utils.main.js
CHANGED
|
@@ -19,24 +19,24 @@ $parcel$export(module.exports, "getRowLabelledBy", () => $6acf696f746f932c$expor
|
|
|
19
19
|
* governing permissions and limitations under the License.
|
|
20
20
|
*/ const $6acf696f746f932c$export$552312adfd451dab = new WeakMap();
|
|
21
21
|
function $6acf696f746f932c$var$normalizeKey(key) {
|
|
22
|
-
if (typeof key ===
|
|
23
|
-
return
|
|
22
|
+
if (typeof key === 'string') return key.replace(/\s*/g, '');
|
|
23
|
+
return '' + key;
|
|
24
24
|
}
|
|
25
25
|
function $6acf696f746f932c$export$37cd4213f2ad742e(state, columnKey) {
|
|
26
26
|
let gridId = $6acf696f746f932c$export$552312adfd451dab.get(state);
|
|
27
|
-
if (!gridId) throw new Error(
|
|
27
|
+
if (!gridId) throw new Error('Unknown grid');
|
|
28
28
|
return `${gridId}-${$6acf696f746f932c$var$normalizeKey(columnKey)}`;
|
|
29
29
|
}
|
|
30
30
|
function $6acf696f746f932c$export$19baff3266315d44(state, rowKey, columnKey) {
|
|
31
31
|
let gridId = $6acf696f746f932c$export$552312adfd451dab.get(state);
|
|
32
|
-
if (!gridId) throw new Error(
|
|
32
|
+
if (!gridId) throw new Error('Unknown grid');
|
|
33
33
|
return `${gridId}-${$6acf696f746f932c$var$normalizeKey(rowKey)}-${$6acf696f746f932c$var$normalizeKey(columnKey)}`;
|
|
34
34
|
}
|
|
35
35
|
function $6acf696f746f932c$export$85069b70317f543(state, rowKey) {
|
|
36
36
|
// A row is labelled by it's row headers.
|
|
37
37
|
return [
|
|
38
38
|
...state.collection.rowHeaderColumnKeys
|
|
39
|
-
].map((columnKey)=>$6acf696f746f932c$export$19baff3266315d44(state, rowKey, columnKey)).join(
|
|
39
|
+
].map((columnKey)=>$6acf696f746f932c$export$19baff3266315d44(state, rowKey, columnKey)).join(' ');
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
package/dist/utils.mjs
CHANGED
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/ const $2140fb2337097f2d$export$552312adfd451dab = new WeakMap();
|
|
12
12
|
function $2140fb2337097f2d$var$normalizeKey(key) {
|
|
13
|
-
if (typeof key ===
|
|
14
|
-
return
|
|
13
|
+
if (typeof key === 'string') return key.replace(/\s*/g, '');
|
|
14
|
+
return '' + key;
|
|
15
15
|
}
|
|
16
16
|
function $2140fb2337097f2d$export$37cd4213f2ad742e(state, columnKey) {
|
|
17
17
|
let gridId = $2140fb2337097f2d$export$552312adfd451dab.get(state);
|
|
18
|
-
if (!gridId) throw new Error(
|
|
18
|
+
if (!gridId) throw new Error('Unknown grid');
|
|
19
19
|
return `${gridId}-${$2140fb2337097f2d$var$normalizeKey(columnKey)}`;
|
|
20
20
|
}
|
|
21
21
|
function $2140fb2337097f2d$export$19baff3266315d44(state, rowKey, columnKey) {
|
|
22
22
|
let gridId = $2140fb2337097f2d$export$552312adfd451dab.get(state);
|
|
23
|
-
if (!gridId) throw new Error(
|
|
23
|
+
if (!gridId) throw new Error('Unknown grid');
|
|
24
24
|
return `${gridId}-${$2140fb2337097f2d$var$normalizeKey(rowKey)}-${$2140fb2337097f2d$var$normalizeKey(columnKey)}`;
|
|
25
25
|
}
|
|
26
26
|
function $2140fb2337097f2d$export$85069b70317f543(state, rowKey) {
|
|
27
27
|
// A row is labelled by it's row headers.
|
|
28
28
|
return [
|
|
29
29
|
...state.collection.rowHeaderColumnKeys
|
|
30
|
-
].map((columnKey)=>$2140fb2337097f2d$export$19baff3266315d44(state, rowKey, columnKey)).join(
|
|
30
|
+
].map((columnKey)=>$2140fb2337097f2d$export$19baff3266315d44(state, rowKey, columnKey)).join(' ');
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
package/dist/utils.module.js
CHANGED
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/ const $2140fb2337097f2d$export$552312adfd451dab = new WeakMap();
|
|
12
12
|
function $2140fb2337097f2d$var$normalizeKey(key) {
|
|
13
|
-
if (typeof key ===
|
|
14
|
-
return
|
|
13
|
+
if (typeof key === 'string') return key.replace(/\s*/g, '');
|
|
14
|
+
return '' + key;
|
|
15
15
|
}
|
|
16
16
|
function $2140fb2337097f2d$export$37cd4213f2ad742e(state, columnKey) {
|
|
17
17
|
let gridId = $2140fb2337097f2d$export$552312adfd451dab.get(state);
|
|
18
|
-
if (!gridId) throw new Error(
|
|
18
|
+
if (!gridId) throw new Error('Unknown grid');
|
|
19
19
|
return `${gridId}-${$2140fb2337097f2d$var$normalizeKey(columnKey)}`;
|
|
20
20
|
}
|
|
21
21
|
function $2140fb2337097f2d$export$19baff3266315d44(state, rowKey, columnKey) {
|
|
22
22
|
let gridId = $2140fb2337097f2d$export$552312adfd451dab.get(state);
|
|
23
|
-
if (!gridId) throw new Error(
|
|
23
|
+
if (!gridId) throw new Error('Unknown grid');
|
|
24
24
|
return `${gridId}-${$2140fb2337097f2d$var$normalizeKey(rowKey)}-${$2140fb2337097f2d$var$normalizeKey(columnKey)}`;
|
|
25
25
|
}
|
|
26
26
|
function $2140fb2337097f2d$export$85069b70317f543(state, rowKey) {
|
|
27
27
|
// A row is labelled by it's row headers.
|
|
28
28
|
return [
|
|
29
29
|
...state.collection.rowHeaderColumnKeys
|
|
30
|
-
].map((columnKey)=>$2140fb2337097f2d$export$19baff3266315d44(state, rowKey, columnKey)).join(
|
|
30
|
+
].map((columnKey)=>$2140fb2337097f2d$export$19baff3266315d44(state, rowKey, columnKey)).join(' ');
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/table",
|
|
3
|
-
"version": "3.14.1
|
|
3
|
+
"version": "3.14.1",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
"url": "https://github.com/adobe/react-spectrum"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-aria/focus": "3.
|
|
26
|
-
"@react-aria/grid": "3.9.1
|
|
27
|
-
"@react-aria/i18n": "3.
|
|
28
|
-
"@react-aria/interactions": "3.
|
|
29
|
-
"@react-aria/live-announcer": "3.
|
|
30
|
-
"@react-aria/utils": "3.
|
|
31
|
-
"@react-aria/visually-hidden": "3.
|
|
32
|
-
"@react-stately/collections": "3.
|
|
33
|
-
"@react-stately/flags": "3.0.3
|
|
34
|
-
"@react-stately/table": "3.11.8
|
|
35
|
-
"@react-stately/virtualizer": "3.7.1
|
|
36
|
-
"@react-types/checkbox": "3.
|
|
37
|
-
"@react-types/grid": "3.2.6
|
|
38
|
-
"@react-types/shared": "3.
|
|
39
|
-
"@react-types/table": "3.9.5
|
|
25
|
+
"@react-aria/focus": "^3.17.1",
|
|
26
|
+
"@react-aria/grid": "^3.9.1",
|
|
27
|
+
"@react-aria/i18n": "^3.11.1",
|
|
28
|
+
"@react-aria/interactions": "^3.21.3",
|
|
29
|
+
"@react-aria/live-announcer": "^3.3.4",
|
|
30
|
+
"@react-aria/utils": "^3.24.1",
|
|
31
|
+
"@react-aria/visually-hidden": "^3.8.12",
|
|
32
|
+
"@react-stately/collections": "^3.10.7",
|
|
33
|
+
"@react-stately/flags": "^3.0.3",
|
|
34
|
+
"@react-stately/table": "^3.11.8",
|
|
35
|
+
"@react-stately/virtualizer": "^3.7.1",
|
|
36
|
+
"@react-types/checkbox": "^3.8.1",
|
|
37
|
+
"@react-types/grid": "^3.2.6",
|
|
38
|
+
"@react-types/shared": "^3.23.1",
|
|
39
|
+
"@react-types/table": "^3.9.5",
|
|
40
40
|
"@swc/helpers": "^0.5.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
|
|
50
50
|
}
|