@cssints/apg-specs 0.0.0-stage → 0.5.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/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/apg/accordion.bridge.d.mts +35 -0
- package/dist/apg/accordion.bridge.mjs +326 -0
- package/dist/apg/accordion.model.json +8397 -0
- package/dist/apg/alert.bridge.d.mts +22 -0
- package/dist/apg/alert.bridge.mjs +86 -0
- package/dist/apg/alert.model.json +871 -0
- package/dist/apg/alertdialog.bridge.d.mts +21 -0
- package/dist/apg/alertdialog.bridge.mjs +221 -0
- package/dist/apg/alertdialog.model.json +5232 -0
- package/dist/apg/breadcrumb.bridge.d.mts +26 -0
- package/dist/apg/breadcrumb.bridge.mjs +120 -0
- package/dist/apg/breadcrumb.model.json +574 -0
- package/dist/apg/button.bridge.d.mts +35 -0
- package/dist/apg/button.bridge.mjs +208 -0
- package/dist/apg/button.model.json +5814 -0
- package/dist/apg/carousel.bridge.d.mts +44 -0
- package/dist/apg/carousel.bridge.mjs +262 -0
- package/dist/apg/carousel.model.json +8963 -0
- package/dist/apg/checkbox-group.bridge.d.mts +25 -0
- package/dist/apg/checkbox-group.bridge.mjs +276 -0
- package/dist/apg/checkbox-group.model.json +3863 -0
- package/dist/apg/checkbox.bridge.d.mts +34 -0
- package/dist/apg/checkbox.bridge.mjs +253 -0
- package/dist/apg/checkbox.model.json +3158 -0
- package/dist/apg/combobox-autocomplete.bridge.d.mts +14 -0
- package/dist/apg/combobox-autocomplete.bridge.mjs +326 -0
- package/dist/apg/combobox-autocomplete.model.json +11586 -0
- package/dist/apg/combobox-dialog.bridge.d.mts +17 -0
- package/dist/apg/combobox-dialog.bridge.mjs +250 -0
- package/dist/apg/combobox-dialog.model.json +8981 -0
- package/dist/apg/combobox-grid.bridge.d.mts +17 -0
- package/dist/apg/combobox-grid.bridge.mjs +227 -0
- package/dist/apg/combobox-grid.model.json +8554 -0
- package/dist/apg/combobox-select-only.bridge.d.mts +24 -0
- package/dist/apg/combobox-select-only.bridge.mjs +304 -0
- package/dist/apg/combobox-select-only.model.json +7846 -0
- package/dist/apg/combobox-tree.bridge.d.mts +17 -0
- package/dist/apg/combobox-tree.bridge.mjs +211 -0
- package/dist/apg/combobox-tree.model.json +9345 -0
- package/dist/apg/dialog-modal.bridge.d.mts +35 -0
- package/dist/apg/dialog-modal.bridge.mjs +186 -0
- package/dist/apg/dialog-modal.model.json +7580 -0
- package/dist/apg/disclosure.bridge.d.mts +25 -0
- package/dist/apg/disclosure.bridge.mjs +202 -0
- package/dist/apg/disclosure.model.json +4703 -0
- package/dist/apg/feed.bridge.d.mts +31 -0
- package/dist/apg/feed.bridge.mjs +246 -0
- package/dist/apg/feed.model.json +4523 -0
- package/dist/apg/grid-selection.bridge.d.mts +13 -0
- package/dist/apg/grid-selection.bridge.mjs +160 -0
- package/dist/apg/grid-selection.model.json +6974 -0
- package/dist/apg/grid-sort.bridge.d.mts +12 -0
- package/dist/apg/grid-sort.bridge.mjs +138 -0
- package/dist/apg/grid-sort.model.json +3799 -0
- package/dist/apg/grid.bridge.d.mts +54 -0
- package/dist/apg/grid.bridge.mjs +441 -0
- package/dist/apg/grid.model.json +3802 -0
- package/dist/apg/link.bridge.d.mts +24 -0
- package/dist/apg/link.bridge.mjs +126 -0
- package/dist/apg/link.model.json +694 -0
- package/dist/apg/listbox-multi.bridge.d.mts +10 -0
- package/dist/apg/listbox-multi.bridge.mjs +261 -0
- package/dist/apg/listbox-multi.model.json +10893 -0
- package/dist/apg/listbox-rearrangeable.bridge.d.mts +20 -0
- package/dist/apg/listbox-rearrangeable.bridge.mjs +237 -0
- package/dist/apg/listbox-rearrangeable.model.json +17592 -0
- package/dist/apg/listbox-shared.d.mts +58 -0
- package/dist/apg/listbox-shared.mjs +171 -0
- package/dist/apg/listbox-single.bridge.d.mts +10 -0
- package/dist/apg/listbox-single.bridge.mjs +196 -0
- package/dist/apg/listbox-single.model.json +8024 -0
- package/dist/apg/listbox-typeahead.bridge.d.mts +10 -0
- package/dist/apg/listbox-typeahead.bridge.mjs +153 -0
- package/dist/apg/listbox-typeahead.model.json +5615 -0
- package/dist/apg/menu-button.bridge.d.mts +29 -0
- package/dist/apg/menu-button.bridge.mjs +259 -0
- package/dist/apg/menu-button.model.json +5706 -0
- package/dist/apg/menu-checkable.bridge.d.mts +25 -0
- package/dist/apg/menu-checkable.bridge.mjs +226 -0
- package/dist/apg/menu-checkable.model.json +4277 -0
- package/dist/apg/menu-menubar.bridge.d.mts +27 -0
- package/dist/apg/menu-menubar.bridge.mjs +273 -0
- package/dist/apg/menu-menubar.model.json +9540 -0
- package/dist/apg/meter.bridge.d.mts +28 -0
- package/dist/apg/meter.bridge.mjs +159 -0
- package/dist/apg/meter.model.json +1185 -0
- package/dist/apg/player.bridge.d.mts +24 -0
- package/dist/apg/player.bridge.mjs +342 -0
- package/dist/apg/player.model.json +11013 -0
- package/dist/apg/radio.bridge.d.mts +35 -0
- package/dist/apg/radio.bridge.mjs +371 -0
- package/dist/apg/radio.model.json +5011 -0
- package/dist/apg/slider-multithumb.bridge.d.mts +34 -0
- package/dist/apg/slider-multithumb.bridge.mjs +365 -0
- package/dist/apg/slider-multithumb.model.json +5774 -0
- package/dist/apg/slider.bridge.d.mts +54 -0
- package/dist/apg/slider.bridge.mjs +359 -0
- package/dist/apg/slider.model.json +4881 -0
- package/dist/apg/spinbutton.bridge.d.mts +41 -0
- package/dist/apg/spinbutton.bridge.mjs +327 -0
- package/dist/apg/spinbutton.model.json +7571 -0
- package/dist/apg/switch.bridge.d.mts +30 -0
- package/dist/apg/switch.bridge.mjs +243 -0
- package/dist/apg/switch.model.json +3159 -0
- package/dist/apg/tabs.bridge.d.mts +41 -0
- package/dist/apg/tabs.bridge.mjs +294 -0
- package/dist/apg/tabs.model.json +7659 -0
- package/dist/apg/timeline.bridge.d.mts +36 -0
- package/dist/apg/timeline.bridge.mjs +265 -0
- package/dist/apg/timeline.model.json +6189 -0
- package/dist/apg/toolbar.bridge.d.mts +25 -0
- package/dist/apg/toolbar.bridge.mjs +307 -0
- package/dist/apg/toolbar.model.json +6616 -0
- package/dist/apg/tooltip.bridge.d.mts +36 -0
- package/dist/apg/tooltip.bridge.mjs +208 -0
- package/dist/apg/tooltip.model.json +8295 -0
- package/dist/apg/treegrid.bridge.d.mts +28 -0
- package/dist/apg/treegrid.bridge.mjs +311 -0
- package/dist/apg/treegrid.model.json +17358 -0
- package/dist/apg/treeview.bridge.d.mts +26 -0
- package/dist/apg/treeview.bridge.mjs +396 -0
- package/dist/apg/treeview.model.json +13745 -0
- package/dist/apg/windowsplitter.bridge.d.mts +36 -0
- package/dist/apg/windowsplitter.bridge.mjs +242 -0
- package/dist/apg/windowsplitter.model.json +6253 -0
- package/dist/canvas/camera.model.json +6568 -0
- package/dist/canvas/canvas.bridge.d.mts +190 -0
- package/dist/canvas/canvas.bridge.mjs +729 -0
- package/dist/canvas/pointer.model.json +17095 -0
- package/dist/scenario.d.mts +233 -0
- package/dist/scenario.mjs +313 -0
- package/package.json +57 -4
- package/scenarios/apg/README.md +221 -0
- package/scenarios/apg/accordion.base-ui.json +1005 -0
- package/scenarios/apg/accordion.react-aria.json +929 -0
- package/scenarios/apg/alert.base-ui.json +81 -0
- package/scenarios/apg/alert.react-aria.json +98 -0
- package/scenarios/apg/alertdialog.base-ui.json +331 -0
- package/scenarios/apg/alertdialog.react-aria.json +225 -0
- package/scenarios/apg/breadcrumb.react-aria.json +312 -0
- package/scenarios/apg/button.ariakit.json +136 -0
- package/scenarios/apg/button.base-ui.json +747 -0
- package/scenarios/apg/button.react-aria.json +443 -0
- package/scenarios/apg/carousel.apg.json +909 -0
- package/scenarios/apg/checkbox.ariakit.json +299 -0
- package/scenarios/apg/checkbox.base-ui.json +1126 -0
- package/scenarios/apg/checkbox.react-aria.json +518 -0
- package/scenarios/apg/combobox.ariakit.json +945 -0
- package/scenarios/apg/combobox.base-ui.json +2444 -0
- package/scenarios/apg/combobox.react-aria.json +845 -0
- package/scenarios/apg/dialog-modal.ariakit.json +1102 -0
- package/scenarios/apg/dialog-modal.base-ui.json +775 -0
- package/scenarios/apg/dialog-modal.react-aria.json +638 -0
- package/scenarios/apg/disclosure.apg.json +349 -0
- package/scenarios/apg/disclosure.ariakit.json +163 -0
- package/scenarios/apg/disclosure.base-ui.json +451 -0
- package/scenarios/apg/disclosure.react-aria.json +643 -0
- package/scenarios/apg/feed.apg.json +442 -0
- package/scenarios/apg/grid.ariakit.json +197 -0
- package/scenarios/apg/grid.base-ui.json +720 -0
- package/scenarios/apg/grid.react-aria.json +969 -0
- package/scenarios/apg/landmarks.ariakit.json +93 -0
- package/scenarios/apg/landmarks.react-aria.json +330 -0
- package/scenarios/apg/link.ariakit.json +83 -0
- package/scenarios/apg/link.base-ui.json +88 -0
- package/scenarios/apg/link.react-aria.json +186 -0
- package/scenarios/apg/listbox.ariakit.json +78 -0
- package/scenarios/apg/listbox.base-ui.json +163 -0
- package/scenarios/apg/listbox.react-aria.json +1118 -0
- package/scenarios/apg/menu-button.ariakit.json +924 -0
- package/scenarios/apg/menu-button.base-ui.json +1155 -0
- package/scenarios/apg/menu-button.react-aria.json +1080 -0
- package/scenarios/apg/menubar.ariakit.json +758 -0
- package/scenarios/apg/menubar.base-ui.json +673 -0
- package/scenarios/apg/meter.base-ui.json +243 -0
- package/scenarios/apg/meter.react-aria.json +201 -0
- package/scenarios/apg/radio.ariakit.json +459 -0
- package/scenarios/apg/radio.base-ui.json +581 -0
- package/scenarios/apg/radio.react-aria.json +576 -0
- package/scenarios/apg/slider-multithumb.base-ui.json +316 -0
- package/scenarios/apg/slider-multithumb.react-aria.json +363 -0
- package/scenarios/apg/slider.base-ui.json +544 -0
- package/scenarios/apg/slider.react-aria.json +456 -0
- package/scenarios/apg/spinbutton.base-ui.json +1688 -0
- package/scenarios/apg/spinbutton.react-aria.json +426 -0
- package/scenarios/apg/switch.base-ui.json +456 -0
- package/scenarios/apg/switch.react-aria.json +303 -0
- package/scenarios/apg/table.ariakit.json +65 -0
- package/scenarios/apg/table.react-aria.json +221 -0
- package/scenarios/apg/tabs.ariakit.json +329 -0
- package/scenarios/apg/tabs.base-ui.json +875 -0
- package/scenarios/apg/tabs.react-aria.json +644 -0
- package/scenarios/apg/toolbar.ariakit.json +595 -0
- package/scenarios/apg/toolbar.base-ui.json +1189 -0
- package/scenarios/apg/toolbar.react-aria.json +383 -0
- package/scenarios/apg/tooltip.ariakit.json +441 -0
- package/scenarios/apg/tooltip.base-ui.json +411 -0
- package/scenarios/apg/tooltip.react-aria.json +454 -0
- package/scenarios/apg/treegrid.apg.json +2558 -0
- package/scenarios/apg/treegrid.react-aria.json +5094 -0
- package/scenarios/apg/treeview.apg.json +928 -0
- package/scenarios/apg/windowsplitter.apg.json +557 -0
- package/scenarios/canvas/README.md +69 -0
- package/scenarios/canvas/camera.contract.json +237 -0
- package/scenarios/canvas/camera.excalidraw.json +57 -0
- package/scenarios/canvas/marquee.excalidraw.json +122 -0
- package/scenarios/canvas/pan.excalidraw.json +46 -0
- package/scenarios/canvas/pointer.contract.json +528 -0
- package/scenarios/parts.json +291 -0
- package/shared/aria.qnt +186 -0
- package/shared/details-group.qnt +50 -0
- package/shared/focusgroup.qnt +152 -0
- package/shared/invokers.qnt +81 -0
- package/shared/popover.qnt +71 -0
- package/specs/apg/STATIC.md +103 -0
- package/specs/apg/accordion.qnt +578 -0
- package/specs/apg/alert.qnt +131 -0
- package/specs/apg/alertdialog.qnt +455 -0
- package/specs/apg/breadcrumb.qnt +88 -0
- package/specs/apg/button.qnt +445 -0
- package/specs/apg/carousel.qnt +732 -0
- package/specs/apg/checkbox-group.qnt +388 -0
- package/specs/apg/checkbox.qnt +394 -0
- package/specs/apg/combobox-autocomplete.qnt +764 -0
- package/specs/apg/combobox-dialog.qnt +627 -0
- package/specs/apg/combobox-grid.qnt +632 -0
- package/specs/apg/combobox-select-only.qnt +626 -0
- package/specs/apg/combobox-tree.qnt +633 -0
- package/specs/apg/dialog-modal.qnt +499 -0
- package/specs/apg/disclosure.qnt +309 -0
- package/specs/apg/feed.qnt +485 -0
- package/specs/apg/grid-selection.qnt +512 -0
- package/specs/apg/grid-sort.qnt +330 -0
- package/specs/apg/grid.qnt +360 -0
- package/specs/apg/link.qnt +119 -0
- package/specs/apg/listbox-multi.qnt +799 -0
- package/specs/apg/listbox-rearrangeable.qnt +801 -0
- package/specs/apg/listbox-single.qnt +511 -0
- package/specs/apg/listbox-typeahead.qnt +396 -0
- package/specs/apg/menu-button.qnt +363 -0
- package/specs/apg/menu-checkable.qnt +304 -0
- package/specs/apg/menu-menubar.qnt +531 -0
- package/specs/apg/meter.qnt +129 -0
- package/specs/apg/player.qnt +1081 -0
- package/specs/apg/radio.qnt +394 -0
- package/specs/apg/slider-multithumb.qnt +441 -0
- package/specs/apg/slider.qnt +396 -0
- package/specs/apg/spinbutton.qnt +494 -0
- package/specs/apg/switch.qnt +389 -0
- package/specs/apg/tabs.qnt +412 -0
- package/specs/apg/timeline.qnt +612 -0
- package/specs/apg/toolbar.qnt +364 -0
- package/specs/apg/tooltip.qnt +553 -0
- package/specs/apg/treegrid.qnt +983 -0
- package/specs/apg/treeview.qnt +1004 -0
- package/specs/apg/windowsplitter.qnt +487 -0
- package/specs/canvas/camera.qnt +407 -0
- package/specs/canvas/pointer.qnt +841 -0
|
@@ -0,0 +1,969 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pattern": "grid",
|
|
3
|
+
"source": "react-aria",
|
|
4
|
+
"commit": "99e610236887da619ad9d54a1cd87983166c043d",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"scenarios": [
|
|
7
|
+
{
|
|
8
|
+
"id": "grid.react-aria.use-grid-row-mode-cell-mode",
|
|
9
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/grid/useGrid.test.js#L53",
|
|
10
|
+
"upstreamTest": "useGrid > gridFocusMode = row, cellFocusMode = cell",
|
|
11
|
+
"apg": "keyboard",
|
|
12
|
+
"config": {
|
|
13
|
+
"layout": "grid",
|
|
14
|
+
"gridFocusMode": "row",
|
|
15
|
+
"cellFocusMode": "cell",
|
|
16
|
+
"rows": 3,
|
|
17
|
+
"cellChildren": [2, 3, 2]
|
|
18
|
+
},
|
|
19
|
+
"steps": [
|
|
20
|
+
{ "event": "key", "key": "Tab" },
|
|
21
|
+
{ "expect": { "focus": "row:0" } },
|
|
22
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0" },
|
|
23
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
24
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0" },
|
|
25
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
26
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:0" },
|
|
27
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
28
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:1" },
|
|
29
|
+
{ "expect": { "focus": "row:0" } },
|
|
30
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
31
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
32
|
+
{ "event": "focus", "target": "cell:0,0/child:1" },
|
|
33
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:1" },
|
|
34
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
35
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:0" },
|
|
36
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
37
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0" },
|
|
38
|
+
{ "expect": { "focus": "row:0" } }
|
|
39
|
+
],
|
|
40
|
+
"notes": "Each Item is a row holding a single gridcell of interactive children (switches). Row mode exposes the cell element; cell mode exposes its children."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "grid.react-aria.use-grid-row-mode-child-mode",
|
|
44
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/grid/useGrid.test.js#L86",
|
|
45
|
+
"upstreamTest": "useGrid > gridFocusMode = row, cellFocusMode = child",
|
|
46
|
+
"apg": "keyboard",
|
|
47
|
+
"config": {
|
|
48
|
+
"layout": "grid",
|
|
49
|
+
"gridFocusMode": "row",
|
|
50
|
+
"cellFocusMode": "child",
|
|
51
|
+
"rows": 3,
|
|
52
|
+
"cellChildren": [2, 3, 2]
|
|
53
|
+
},
|
|
54
|
+
"steps": [
|
|
55
|
+
{ "event": "key", "key": "Tab" },
|
|
56
|
+
{ "expect": { "focus": "row:0" } },
|
|
57
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0" },
|
|
58
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
59
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:0" },
|
|
60
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
61
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:1" },
|
|
62
|
+
{ "expect": { "focus": "row:0" } },
|
|
63
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
64
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
65
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:1" },
|
|
66
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
67
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:0" },
|
|
68
|
+
{ "expect": { "focus": "row:0" } },
|
|
69
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
70
|
+
{ "expect": { "focus": "cell:0,0/child:1" } }
|
|
71
|
+
],
|
|
72
|
+
"notes": "cellFocusMode=child skips the cell element: entering a row enters its last focused child, wrapping around."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "grid.react-aria.use-grid-cell-mode-child-mode",
|
|
76
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/grid/useGrid.test.js#L114",
|
|
77
|
+
"upstreamTest": "useGrid > gridFocusMode = cell, cellFocusMode = child",
|
|
78
|
+
"apg": "keyboard",
|
|
79
|
+
"config": {
|
|
80
|
+
"layout": "grid",
|
|
81
|
+
"gridFocusMode": "cell",
|
|
82
|
+
"cellFocusMode": "child",
|
|
83
|
+
"rows": 3,
|
|
84
|
+
"cellChildren": [2, 3, 2]
|
|
85
|
+
},
|
|
86
|
+
"steps": [
|
|
87
|
+
{ "event": "key", "key": "Tab" },
|
|
88
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
89
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:0" },
|
|
90
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
91
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:1" },
|
|
92
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
93
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:0" },
|
|
94
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
95
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:1" },
|
|
96
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
97
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:0" },
|
|
98
|
+
{ "expect": { "focus": "cell:0,0/child:1" } }
|
|
99
|
+
],
|
|
100
|
+
"notes": "Grid starts on the first child; horizontal arrows cycle within the cell's children."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "grid.react-aria.use-grid-cell-mode-cell-mode",
|
|
104
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/grid/useGrid.test.js#L136",
|
|
105
|
+
"upstreamTest": "useGrid > gridFocusMode = cell, cellFocusMode = cell",
|
|
106
|
+
"apg": "keyboard",
|
|
107
|
+
"config": {
|
|
108
|
+
"layout": "grid",
|
|
109
|
+
"gridFocusMode": "cell",
|
|
110
|
+
"cellFocusMode": "cell",
|
|
111
|
+
"rows": 3,
|
|
112
|
+
"cellChildren": [2, 3, 2]
|
|
113
|
+
},
|
|
114
|
+
"steps": [
|
|
115
|
+
{ "event": "key", "key": "Tab" },
|
|
116
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
117
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0" },
|
|
118
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
119
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:0" },
|
|
120
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
121
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:1" },
|
|
122
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
123
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0" },
|
|
124
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
125
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:1" },
|
|
126
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
127
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,0/child:0" },
|
|
128
|
+
{ "expect": { "focus": "cell:0,0" } }
|
|
129
|
+
],
|
|
130
|
+
"notes": "Grid and cells both focusable: arrows move between cell and children."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "grid.react-aria.use-grid-restores-last-focused-child",
|
|
134
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/grid/useGrid.test.js#L161",
|
|
135
|
+
"upstreamTest": "useGrid > should restore focus to the child that was last focused within a cell, not the first child",
|
|
136
|
+
"apg": "focus",
|
|
137
|
+
"config": {
|
|
138
|
+
"layout": "grid",
|
|
139
|
+
"gridFocusMode": "cell",
|
|
140
|
+
"cellFocusMode": "child",
|
|
141
|
+
"rows": 3,
|
|
142
|
+
"cellChildren": [2, 3, 2]
|
|
143
|
+
},
|
|
144
|
+
"steps": [
|
|
145
|
+
{ "event": "focus", "target": "cell:0,0" },
|
|
146
|
+
{ "expect": { "focus": "cell:0,0/child:0" } },
|
|
147
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0/child:0" },
|
|
148
|
+
{ "expect": { "focus": "cell:0,0/child:1" } },
|
|
149
|
+
{ "event": "focus", "target": "cell:0,0" },
|
|
150
|
+
{ "expect": { "focus": "cell:0,0/child:1" } }
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "grid.react-aria.gridlist-layout-grid-arrow-navigation",
|
|
155
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L554",
|
|
156
|
+
"upstreamTest": "GridList > should support grid layout",
|
|
157
|
+
"apg": "keyboard",
|
|
158
|
+
"config": {
|
|
159
|
+
"layout": "grid",
|
|
160
|
+
"rows": 3,
|
|
161
|
+
"orientation": "horizontal"
|
|
162
|
+
},
|
|
163
|
+
"steps": [
|
|
164
|
+
{ "event": "key", "key": "Tab" },
|
|
165
|
+
{ "expect": { "focus": "row:0" } },
|
|
166
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0" },
|
|
167
|
+
{ "expect": { "focus": "row:1" } },
|
|
168
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:1" },
|
|
169
|
+
{ "expect": { "focus": "row:2" } },
|
|
170
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:2" },
|
|
171
|
+
{ "expect": { "focus": "row:1" } },
|
|
172
|
+
{ "event": "key", "key": "Tab", "target": "row:1" },
|
|
173
|
+
{ "expect": { "focus": "row:1/child:0" } },
|
|
174
|
+
{ "event": "key", "key": "Tab", "target": "row:1/child:0" },
|
|
175
|
+
{ "expect": { "focus": "body" } }
|
|
176
|
+
],
|
|
177
|
+
"notes": "layout=\"grid\" gives the list a grid role and makes rows laid out horizontally navigable with Left/Right."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "grid.react-aria.gridlist-horizontal-orientation",
|
|
181
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L590",
|
|
182
|
+
"upstreamTest": "GridList > should support horizontal orientation",
|
|
183
|
+
"apg": "keyboard",
|
|
184
|
+
"config": {
|
|
185
|
+
"layout": "list",
|
|
186
|
+
"orientation": "horizontal",
|
|
187
|
+
"rows": 3
|
|
188
|
+
},
|
|
189
|
+
"steps": [
|
|
190
|
+
{ "event": "key", "key": "Tab" },
|
|
191
|
+
{ "expect": { "focus": "row:0" } },
|
|
192
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:0" },
|
|
193
|
+
{ "expect": { "focus": "row:1" } },
|
|
194
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:1" },
|
|
195
|
+
{ "expect": { "focus": "row:2" } },
|
|
196
|
+
{ "event": "key", "key": "ArrowUp", "target": "row:2" },
|
|
197
|
+
{ "expect": { "focus": "row:1" } },
|
|
198
|
+
{ "event": "key", "key": "ArrowUp", "target": "row:1" },
|
|
199
|
+
{ "expect": { "focus": "row:0" } }
|
|
200
|
+
],
|
|
201
|
+
"notes": "With orientation=horizontal the Up/Down arrows are the forward/backward keys."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "grid.react-aria.gridlist-horizontal-orientation-grid-layout",
|
|
205
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L617",
|
|
206
|
+
"upstreamTest": "GridList > should support horizontal orientation with grid layout",
|
|
207
|
+
"apg": "keyboard",
|
|
208
|
+
"config": {
|
|
209
|
+
"layout": "grid",
|
|
210
|
+
"orientation": "horizontal",
|
|
211
|
+
"rows": 3
|
|
212
|
+
},
|
|
213
|
+
"steps": [
|
|
214
|
+
{ "event": "key", "key": "Tab" },
|
|
215
|
+
{ "expect": { "focus": "row:0" } },
|
|
216
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:0" },
|
|
217
|
+
{ "expect": { "focus": "row:1" } },
|
|
218
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:1" },
|
|
219
|
+
{ "expect": { "focus": "row:2" } },
|
|
220
|
+
{ "event": "key", "key": "ArrowUp", "target": "row:2" },
|
|
221
|
+
{ "expect": { "focus": "row:1" } },
|
|
222
|
+
{ "event": "key", "key": "Tab", "target": "row:1" },
|
|
223
|
+
{ "expect": { "focus": "row:1/child:0" } },
|
|
224
|
+
{ "event": "key", "key": "Tab", "target": "row:1/child:0" },
|
|
225
|
+
{ "expect": { "focus": "body" } }
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "grid.react-aria.gridlist-selection-replace-checkboxes",
|
|
230
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L653",
|
|
231
|
+
"upstreamTest": "GridList > should support selectionMode=\"replace\" with checkboxes",
|
|
232
|
+
"apg": "selection",
|
|
233
|
+
"config": {
|
|
234
|
+
"layout": "list",
|
|
235
|
+
"rows": 3,
|
|
236
|
+
"selectionMode": "multiple",
|
|
237
|
+
"selectionBehavior": "replace"
|
|
238
|
+
},
|
|
239
|
+
"steps": [
|
|
240
|
+
{ "event": "click", "target": "row:0" },
|
|
241
|
+
{ "event": "click", "target": "row:1" },
|
|
242
|
+
{
|
|
243
|
+
"expect": {
|
|
244
|
+
"attrs": {
|
|
245
|
+
"row:0": { "aria-selected": "false" },
|
|
246
|
+
"row:1": { "aria-selected": "true" },
|
|
247
|
+
"row:2": { "aria-selected": "false" }
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{ "event": "click", "target": "row:2/checkbox" },
|
|
252
|
+
{
|
|
253
|
+
"expect": {
|
|
254
|
+
"attrs": {
|
|
255
|
+
"row:0": { "aria-selected": "false" },
|
|
256
|
+
"row:1": { "aria-selected": "true" },
|
|
257
|
+
"row:2": { "aria-selected": "true" }
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"notes": "selecting a row replaces the selection; the row checkbox adds to an existing selection."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": "grid.react-aria.gridlist-selection-replace-single-keyboard",
|
|
266
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L777",
|
|
267
|
+
"upstreamTest": "GridList > selectionBehavior=\"replace\" > keyboard > should perform selection with single selection",
|
|
268
|
+
"apg": "selection",
|
|
269
|
+
"config": {
|
|
270
|
+
"layout": "list",
|
|
271
|
+
"rows": 3,
|
|
272
|
+
"selectionMode": "single",
|
|
273
|
+
"selectionBehavior": "replace",
|
|
274
|
+
"noCheckboxes": true
|
|
275
|
+
},
|
|
276
|
+
"steps": [
|
|
277
|
+
{ "event": "focus", "target": "row:2" },
|
|
278
|
+
{ "event": "key", "key": "Enter", "target": "row:2" },
|
|
279
|
+
{
|
|
280
|
+
"expect": {
|
|
281
|
+
"attrs": {
|
|
282
|
+
"row:2": { "aria-selected": "true", "data-selected": "true" }
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{ "event": "focus", "target": "row:1" },
|
|
287
|
+
{ "event": "key", "key": "Enter", "target": "row:1" },
|
|
288
|
+
{
|
|
289
|
+
"expect": {
|
|
290
|
+
"attrs": {
|
|
291
|
+
"row:1": { "aria-selected": "true", "data-selected": "true" },
|
|
292
|
+
"row:2": { "aria-selected": "false", "data-selected": null }
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{ "event": "key", "key": "Enter", "target": "row:1" },
|
|
297
|
+
{
|
|
298
|
+
"expect": {
|
|
299
|
+
"attrs": {
|
|
300
|
+
"row:1": { "aria-selected": "false", "data-selected": null }
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"notes": "No checkboxes are rendered when selectionBehavior=replace. Keyboard selection starts on the focused row, which is why the first focus also fires a change upstream."
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "grid.react-aria.gridlist-focus-mode-child-autofocus",
|
|
309
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L2151",
|
|
310
|
+
"upstreamTest": "GridList > focusMode and allowsArrowNavigation > focusMode=\"child\" auto-focuses first child when item receives focus",
|
|
311
|
+
"apg": "focus",
|
|
312
|
+
"config": {
|
|
313
|
+
"layout": "list",
|
|
314
|
+
"rows": 3,
|
|
315
|
+
"keyboardNavigationBehavior": "tab",
|
|
316
|
+
"focusMode": "child"
|
|
317
|
+
},
|
|
318
|
+
"steps": [
|
|
319
|
+
{ "event": "key", "key": "Tab" },
|
|
320
|
+
{ "expect": { "focus": "row:0/child:0" } },
|
|
321
|
+
{ "event": "key", "key": "Tab", "modifiers": ["Shift"] },
|
|
322
|
+
{ "event": "key", "key": "ArrowDown" },
|
|
323
|
+
{ "expect": { "focus": "row:1/child:0" } }
|
|
324
|
+
],
|
|
325
|
+
"notes": "In keyboardNavigationBehavior=\"tab\" a focusMode=child row puts focus straight on its first child."
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"id": "grid.react-aria.gridlist-allows-arrow-navigation-on-child",
|
|
329
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L2179",
|
|
330
|
+
"upstreamTest": "GridList > focusMode and allowsArrowNavigation > allowsArrowNavigation allows arrow key row navigation when focused on child",
|
|
331
|
+
"apg": "keyboard",
|
|
332
|
+
"config": {
|
|
333
|
+
"layout": "list",
|
|
334
|
+
"rows": 3,
|
|
335
|
+
"keyboardNavigationBehavior": "tab",
|
|
336
|
+
"focusMode": "child",
|
|
337
|
+
"allowsArrowNavigation": true
|
|
338
|
+
},
|
|
339
|
+
"steps": [
|
|
340
|
+
{ "event": "key", "key": "Tab" },
|
|
341
|
+
{ "expect": { "focus": "row:0/child:0" } },
|
|
342
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:0/child:0" },
|
|
343
|
+
{ "expect": { "focus": "row:1/child:0" } }
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": "grid.react-aria.gridlist-focus-mode-child-arrow-down",
|
|
348
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L2207",
|
|
349
|
+
"upstreamTest": "GridList > focusMode=\"child\" with default arrow navigation > ArrowDown from child navigates to first child of next item",
|
|
350
|
+
"apg": "keyboard",
|
|
351
|
+
"config": {
|
|
352
|
+
"layout": "list",
|
|
353
|
+
"rows": 3,
|
|
354
|
+
"focusMode": "child"
|
|
355
|
+
},
|
|
356
|
+
"steps": [
|
|
357
|
+
{ "event": "key", "key": "Tab" },
|
|
358
|
+
{ "expect": { "focus": "row:0/child:0" } },
|
|
359
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:0/child:0" },
|
|
360
|
+
{ "expect": { "focus": "row:1/child:0" } },
|
|
361
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:1/child:0" },
|
|
362
|
+
{ "expect": { "focus": "row:2/child:0" } }
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "grid.react-aria.gridlist-focus-mode-child-arrow-up",
|
|
367
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L2238",
|
|
368
|
+
"upstreamTest": "GridList > focusMode=\"child\" with default arrow navigation > ArrowUp from child navigates to first child of previous item",
|
|
369
|
+
"apg": "keyboard",
|
|
370
|
+
"config": {
|
|
371
|
+
"layout": "list",
|
|
372
|
+
"rows": 2,
|
|
373
|
+
"focusMode": "child"
|
|
374
|
+
},
|
|
375
|
+
"steps": [
|
|
376
|
+
{ "event": "key", "key": "Tab" },
|
|
377
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:0/child:0" },
|
|
378
|
+
{ "expect": { "focus": "row:1/child:0" } },
|
|
379
|
+
{ "event": "key", "key": "ArrowUp", "target": "row:1/child:0" },
|
|
380
|
+
{ "expect": { "focus": "row:0/child:0" } }
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"id": "grid.react-aria.gridlist-focus-mode-child-left-right-cycle",
|
|
385
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/GridList.test.js#L2262",
|
|
386
|
+
"upstreamTest": "GridList > focusMode=\"child\" with default arrow navigation > ArrowLeft/Right cycles through children and row element",
|
|
387
|
+
"apg": "keyboard",
|
|
388
|
+
"config": {
|
|
389
|
+
"layout": "list",
|
|
390
|
+
"rows": 1,
|
|
391
|
+
"focusMode": "child",
|
|
392
|
+
"cellChildren": 2
|
|
393
|
+
},
|
|
394
|
+
"steps": [
|
|
395
|
+
{ "event": "key", "key": "Tab" },
|
|
396
|
+
{ "expect": { "focus": "row:0/child:0" } },
|
|
397
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0/child:0" },
|
|
398
|
+
{ "expect": { "focus": "row:0/child:1" } },
|
|
399
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0/child:1" },
|
|
400
|
+
{ "expect": { "focus": "row:0" } },
|
|
401
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
402
|
+
{ "expect": { "focus": "row:0/child:1" } },
|
|
403
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0/child:1" },
|
|
404
|
+
{ "expect": { "focus": "row:0/child:0" } },
|
|
405
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0/child:0" },
|
|
406
|
+
{ "expect": { "focus": "row:0" } },
|
|
407
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0" },
|
|
408
|
+
{ "expect": { "focus": "row:0/child:0" } }
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"id": "grid.react-aria.table-restore-focus-to-dialog-trigger-in-cell",
|
|
413
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L458",
|
|
414
|
+
"upstreamTest": "Table > should restore focus to the associated dialog trigger inside a cell",
|
|
415
|
+
"apg": "focus",
|
|
416
|
+
"config": {
|
|
417
|
+
"layout": "grid",
|
|
418
|
+
"rows": 1,
|
|
419
|
+
"cols": 3,
|
|
420
|
+
"cellTriggers": 3
|
|
421
|
+
},
|
|
422
|
+
"steps": [
|
|
423
|
+
{ "event": "click", "target": "cell:0,2/child:1" },
|
|
424
|
+
{ "expect": { "focus": "dialog", "visible": ["dialog"] } },
|
|
425
|
+
{ "event": "key", "key": "Escape", "target": "dialog" },
|
|
426
|
+
{ "expect": { "focus": "cell:0,2/child:1", "visible": [] } }
|
|
427
|
+
],
|
|
428
|
+
"notes": "A dialog opened from a cell action returns focus to that trigger when dismissed."
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"id": "grid.react-aria.table-select-all-mod-a",
|
|
432
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L676",
|
|
433
|
+
"upstreamTest": "Table > should support select all with Mod+A",
|
|
434
|
+
"apg": "selection",
|
|
435
|
+
"config": {
|
|
436
|
+
"layout": "grid",
|
|
437
|
+
"rows": 3,
|
|
438
|
+
"selectionMode": "multiple",
|
|
439
|
+
"platform": "mac"
|
|
440
|
+
},
|
|
441
|
+
"steps": [
|
|
442
|
+
{ "event": "focus", "target": "cell:0,0" },
|
|
443
|
+
{
|
|
444
|
+
"event": "key",
|
|
445
|
+
"key": "a",
|
|
446
|
+
"target": "cell:0,0",
|
|
447
|
+
"modifiers": ["Meta"]
|
|
448
|
+
},
|
|
449
|
+
{ "expect": { "events": { "onSelectionChange": ["all"] } } }
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"id": "grid.react-aria.table-select-all-control-windows",
|
|
454
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L689",
|
|
455
|
+
"upstreamTest": "Table > should support select all with Mod+A (Control) on Windows",
|
|
456
|
+
"apg": "extension",
|
|
457
|
+
"config": {
|
|
458
|
+
"layout": "grid",
|
|
459
|
+
"rows": 3,
|
|
460
|
+
"selectionMode": "multiple",
|
|
461
|
+
"platform": "windows"
|
|
462
|
+
},
|
|
463
|
+
"steps": [
|
|
464
|
+
{ "event": "focus", "target": "cell:0,0" },
|
|
465
|
+
{
|
|
466
|
+
"event": "key",
|
|
467
|
+
"key": "a",
|
|
468
|
+
"target": "cell:0,0",
|
|
469
|
+
"modifiers": ["Control"]
|
|
470
|
+
},
|
|
471
|
+
{ "expect": { "events": { "onSelectionChange": ["all"] } } }
|
|
472
|
+
],
|
|
473
|
+
"notes": "Platform-specific modifier (extension): Control on Windows."
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "grid.react-aria.table-no-select-all-in-single-mode",
|
|
477
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L702",
|
|
478
|
+
"upstreamTest": "Table > should not select all with Mod+A when selection mode is single",
|
|
479
|
+
"apg": "selection",
|
|
480
|
+
"config": {
|
|
481
|
+
"layout": "grid",
|
|
482
|
+
"rows": 3,
|
|
483
|
+
"selectionMode": "single",
|
|
484
|
+
"platform": "mac"
|
|
485
|
+
},
|
|
486
|
+
"steps": [
|
|
487
|
+
{ "event": "focus", "target": "cell:0,0" },
|
|
488
|
+
{
|
|
489
|
+
"event": "key",
|
|
490
|
+
"key": "a",
|
|
491
|
+
"target": "cell:0,0",
|
|
492
|
+
"modifiers": ["Meta"]
|
|
493
|
+
},
|
|
494
|
+
{ "expect": { "events": { "onSelectionChange": [] } } }
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"id": "grid.react-aria.table-escape-none-keeps-selection",
|
|
499
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L714",
|
|
500
|
+
"upstreamTest": "Table > should prevent Esc from clearing selection if escapeKeyBehavior is \"none\"",
|
|
501
|
+
"apg": "selection",
|
|
502
|
+
"config": {
|
|
503
|
+
"layout": "grid",
|
|
504
|
+
"rows": 3,
|
|
505
|
+
"selectionMode": "multiple",
|
|
506
|
+
"escapeKeyBehavior": "none"
|
|
507
|
+
},
|
|
508
|
+
"steps": [
|
|
509
|
+
{ "event": "click", "target": "row:0/checkbox" },
|
|
510
|
+
{ "event": "click", "target": "row:1/checkbox" },
|
|
511
|
+
{
|
|
512
|
+
"expect": {
|
|
513
|
+
"attrs": {
|
|
514
|
+
"row:0": { "aria-selected": "true" },
|
|
515
|
+
"row:1": { "aria-selected": "true" }
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{ "event": "key", "key": "Escape", "target": "cell:0,0" },
|
|
520
|
+
{
|
|
521
|
+
"expect": {
|
|
522
|
+
"attrs": {
|
|
523
|
+
"row:0": { "aria-selected": "true" },
|
|
524
|
+
"row:1": { "aria-selected": "true" }
|
|
525
|
+
},
|
|
526
|
+
"events": { "onSelectionChange": ["row:0", "row:1"] }
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"id": "grid.react-aria.table-arrow-up-down-keeps-column-index",
|
|
533
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L1638",
|
|
534
|
+
"upstreamTest": "Table > colSpan > should focus to the same colIndex when moving focus up or down",
|
|
535
|
+
"apg": "keyboard",
|
|
536
|
+
"config": {
|
|
537
|
+
"layout": "grid",
|
|
538
|
+
"rows": 8,
|
|
539
|
+
"cols": 3,
|
|
540
|
+
"rowHeaders": true,
|
|
541
|
+
"colSpans": true
|
|
542
|
+
},
|
|
543
|
+
"steps": [
|
|
544
|
+
{ "event": "focus", "target": "row:1" },
|
|
545
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:1" },
|
|
546
|
+
{ "expect": { "focus": "row:1/rowheader" } },
|
|
547
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:1/rowheader" },
|
|
548
|
+
{ "expect": { "focus": "cell:1,0" } },
|
|
549
|
+
{ "event": "key", "key": "ArrowDown", "target": "cell:1,0" },
|
|
550
|
+
{ "expect": { "focus": "cell:2,0" } },
|
|
551
|
+
{ "event": "key", "key": "ArrowDown", "target": "cell:2,0" },
|
|
552
|
+
{ "expect": { "focus": "row:3/rowheader" } },
|
|
553
|
+
{ "event": "key", "key": "ArrowDown", "target": "row:3/rowheader" },
|
|
554
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:4/rowheader" },
|
|
555
|
+
{ "expect": { "focus": "cell:4,0" } },
|
|
556
|
+
{ "event": "key", "key": "ArrowUp", "target": "cell:4,0" },
|
|
557
|
+
{ "expect": { "focus": "row:3/rowheader" } }
|
|
558
|
+
],
|
|
559
|
+
"notes": "With row headers and colspan, vertical movement preserves the column (or row header) even when spans shift the column count."
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"id": "grid.react-aria.table-tab-from-cell-to-first-child",
|
|
563
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3801",
|
|
564
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > Tab from a focused cell moves focus to the first tabbable child",
|
|
565
|
+
"apg": "keyboard",
|
|
566
|
+
"config": {
|
|
567
|
+
"layout": "grid",
|
|
568
|
+
"rows": 3,
|
|
569
|
+
"cols": 4,
|
|
570
|
+
"keyboardNavigationBehavior": "tab",
|
|
571
|
+
"rowHeaders": true,
|
|
572
|
+
"focusableCell": "cell:0,3"
|
|
573
|
+
},
|
|
574
|
+
"steps": [
|
|
575
|
+
{ "event": "focus", "target": "cell:0,1" },
|
|
576
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,1" },
|
|
577
|
+
{ "expect": { "focus": "cell:0,3" } },
|
|
578
|
+
{ "event": "key", "key": "Tab", "target": "cell:0,3" },
|
|
579
|
+
{ "expect": { "focus": "cell:0,3/child:0" } }
|
|
580
|
+
],
|
|
581
|
+
"notes": "cell:0,3 holds a text input (child 0) and a button (child 1)."
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"id": "grid.react-aria.table-tab-exits-table",
|
|
585
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3815",
|
|
586
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > Tab from a cell with no tabbable children or from the last child in a cell exits the table",
|
|
587
|
+
"apg": "keyboard",
|
|
588
|
+
"config": {
|
|
589
|
+
"layout": "grid",
|
|
590
|
+
"rows": 3,
|
|
591
|
+
"cols": 4,
|
|
592
|
+
"keyboardNavigationBehavior": "tab",
|
|
593
|
+
"rowHeaders": true,
|
|
594
|
+
"focusableCell": "cell:0,3",
|
|
595
|
+
"surroundingButtons": true
|
|
596
|
+
},
|
|
597
|
+
"steps": [
|
|
598
|
+
{ "event": "focus", "target": "cell:0,3" },
|
|
599
|
+
{ "event": "key", "key": "Tab", "target": "cell:0,3" },
|
|
600
|
+
{ "expect": { "focus": "cell:0,3/child:0" } },
|
|
601
|
+
{ "event": "key", "key": "Tab", "target": "cell:0,3/child:0" },
|
|
602
|
+
{ "expect": { "focus": "cell:0,3/child:1" } },
|
|
603
|
+
{ "event": "key", "key": "Tab", "target": "cell:0,3/child:1" },
|
|
604
|
+
{ "expect": { "focus": "after:2" } }
|
|
605
|
+
],
|
|
606
|
+
"notes": "Tabbing past the last child of the last cell leaves the grid (after:2 is the button following the table)."
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"id": "grid.react-aria.table-shift-tab-returns-to-cell",
|
|
610
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3849",
|
|
611
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > Shift+Tab from a child returns focus to the cell",
|
|
612
|
+
"apg": "keyboard",
|
|
613
|
+
"config": {
|
|
614
|
+
"layout": "grid",
|
|
615
|
+
"rows": 3,
|
|
616
|
+
"cols": 4,
|
|
617
|
+
"keyboardNavigationBehavior": "tab",
|
|
618
|
+
"rowHeaders": true,
|
|
619
|
+
"focusableCell": "cell:0,3"
|
|
620
|
+
},
|
|
621
|
+
"steps": [
|
|
622
|
+
{ "event": "focus", "target": "cell:0,3" },
|
|
623
|
+
{ "event": "key", "key": "Tab", "target": "cell:0,3" },
|
|
624
|
+
{ "expect": { "focus": "cell:0,3/child:0" } },
|
|
625
|
+
{
|
|
626
|
+
"event": "key",
|
|
627
|
+
"key": "Tab",
|
|
628
|
+
"target": "cell:0,3/child:0",
|
|
629
|
+
"modifiers": ["Shift"]
|
|
630
|
+
},
|
|
631
|
+
{ "expect": { "focus": "cell:0,3" } }
|
|
632
|
+
]
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"id": "grid.react-aria.table-arrows-in-text-input-do-not-navigate",
|
|
636
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3865",
|
|
637
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > should not navigate to next cell when arrow keys are pressed while a text input child has focus",
|
|
638
|
+
"apg": "editing",
|
|
639
|
+
"config": {
|
|
640
|
+
"layout": "grid",
|
|
641
|
+
"rows": 3,
|
|
642
|
+
"cols": 4,
|
|
643
|
+
"keyboardNavigationBehavior": "tab",
|
|
644
|
+
"rowHeaders": true,
|
|
645
|
+
"focusableCell": "cell:0,3"
|
|
646
|
+
},
|
|
647
|
+
"steps": [
|
|
648
|
+
{ "event": "focus", "target": "cell:0,3/child:0" },
|
|
649
|
+
{ "event": "key", "key": "ArrowDown", "target": "cell:0,3/child:0" },
|
|
650
|
+
{ "expect": { "focus": "cell:0,3/child:0" } },
|
|
651
|
+
{ "event": "key", "key": "ArrowUp", "target": "cell:0,3/child:0" },
|
|
652
|
+
{ "expect": { "focus": "cell:0,3/child:0" } },
|
|
653
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,3/child:0" },
|
|
654
|
+
{ "expect": { "focus": "cell:0,3/child:0" } },
|
|
655
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,3/child:0" },
|
|
656
|
+
{ "expect": { "focus": "cell:0,3/child:0" } }
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"id": "grid.react-aria.table-typeahead-not-in-text-input",
|
|
661
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3890",
|
|
662
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > should not trigger typeahead when typing in a text input child",
|
|
663
|
+
"apg": "editing",
|
|
664
|
+
"config": {
|
|
665
|
+
"layout": "grid",
|
|
666
|
+
"rows": 3,
|
|
667
|
+
"cols": 4,
|
|
668
|
+
"keyboardNavigationBehavior": "tab",
|
|
669
|
+
"rowHeaders": true,
|
|
670
|
+
"focusableCell": "cell:0,3"
|
|
671
|
+
},
|
|
672
|
+
"steps": [
|
|
673
|
+
{ "event": "focus", "target": "cell:0,3/child:0" },
|
|
674
|
+
{ "event": "type", "text": "Games", "target": "cell:0,3/child:0" },
|
|
675
|
+
{
|
|
676
|
+
"expect": {
|
|
677
|
+
"focus": "cell:0,3/child:0",
|
|
678
|
+
"value": { "cell:0,3/child:0": "Games" }
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
]
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"id": "grid.react-aria.table-space-enter-in-text-input-no-selection",
|
|
685
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3910",
|
|
686
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > should not trigger selection when pressing Space or Enter in a text input child",
|
|
687
|
+
"apg": "selection",
|
|
688
|
+
"config": {
|
|
689
|
+
"layout": "grid",
|
|
690
|
+
"rows": 3,
|
|
691
|
+
"cols": 4,
|
|
692
|
+
"keyboardNavigationBehavior": "tab",
|
|
693
|
+
"rowHeaders": true,
|
|
694
|
+
"focusableCell": "cell:0,3",
|
|
695
|
+
"selectionMode": "multiple"
|
|
696
|
+
},
|
|
697
|
+
"steps": [
|
|
698
|
+
{ "event": "focus", "target": "cell:0,3/child:0" },
|
|
699
|
+
{ "event": "type", "text": " ", "target": "cell:0,3/child:0" },
|
|
700
|
+
{ "event": "key", "key": "Enter", "target": "cell:0,3/child:0" },
|
|
701
|
+
{
|
|
702
|
+
"expect": {
|
|
703
|
+
"focus": "cell:0,3/child:0",
|
|
704
|
+
"events": { "onSelectionChange": [] }
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"id": "grid.react-aria.table-click-tabbable-child-no-selection",
|
|
711
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3935",
|
|
712
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > should not trigger selection when clicking on a tabbable child element",
|
|
713
|
+
"apg": "selection",
|
|
714
|
+
"config": {
|
|
715
|
+
"layout": "grid",
|
|
716
|
+
"rows": 3,
|
|
717
|
+
"cols": 4,
|
|
718
|
+
"keyboardNavigationBehavior": "tab",
|
|
719
|
+
"rowHeaders": true,
|
|
720
|
+
"focusableCell": "cell:0,3",
|
|
721
|
+
"selectionMode": "multiple"
|
|
722
|
+
},
|
|
723
|
+
"steps": [
|
|
724
|
+
{ "event": "click", "target": "cell:0,3/child:0" },
|
|
725
|
+
{
|
|
726
|
+
"expect": {
|
|
727
|
+
"focus": "cell:0,3/child:0",
|
|
728
|
+
"events": { "onSelectionChange": [] }
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"id": "grid.react-aria.table-click-row-selects",
|
|
735
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3961",
|
|
736
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > should still trigger selection when clicking on a row with no tabbable children",
|
|
737
|
+
"apg": "selection",
|
|
738
|
+
"config": {
|
|
739
|
+
"layout": "grid",
|
|
740
|
+
"rows": 3,
|
|
741
|
+
"cols": 4,
|
|
742
|
+
"selectionMode": "multiple"
|
|
743
|
+
},
|
|
744
|
+
"steps": [
|
|
745
|
+
{ "event": "click", "target": "row:0" },
|
|
746
|
+
{ "expect": { "events": { "onSelectionChange": ["row:0"] } } }
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"id": "grid.react-aria.table-focus-mode-child-arrow-focuses-child",
|
|
751
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3976",
|
|
752
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > focusMode='child' > arrow navigating to a focusMode=\"child\" cell focuses the child directly",
|
|
753
|
+
"apg": "focus",
|
|
754
|
+
"config": {
|
|
755
|
+
"layout": "grid",
|
|
756
|
+
"rows": 3,
|
|
757
|
+
"cols": 4,
|
|
758
|
+
"keyboardNavigationBehavior": "tab",
|
|
759
|
+
"rowHeaders": true,
|
|
760
|
+
"focusableCell": "cell:0,3",
|
|
761
|
+
"actionCellFocusMode": "child"
|
|
762
|
+
},
|
|
763
|
+
"steps": [
|
|
764
|
+
{ "event": "focus", "target": "row:0" },
|
|
765
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
766
|
+
{ "expect": { "focus": "cell:0,3/child:1" } }
|
|
767
|
+
],
|
|
768
|
+
"notes": "ArrowLeft into a focusMode=child action cell focuses the last child (the button)."
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"id": "grid.react-aria.table-focus-mode-child-allows-arrow-navigation",
|
|
772
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3984",
|
|
773
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > focusMode='child' > allowsArrowNavigation allows arrow key row navigation when focused on child",
|
|
774
|
+
"apg": "keyboard",
|
|
775
|
+
"config": {
|
|
776
|
+
"layout": "grid",
|
|
777
|
+
"rows": 3,
|
|
778
|
+
"cols": 4,
|
|
779
|
+
"keyboardNavigationBehavior": "tab",
|
|
780
|
+
"rowHeaders": true,
|
|
781
|
+
"focusableCell": "cell:0,3",
|
|
782
|
+
"actionCellFocusMode": "child",
|
|
783
|
+
"allowsArrowNavigation": true
|
|
784
|
+
},
|
|
785
|
+
"steps": [
|
|
786
|
+
{ "event": "focus", "target": "row:0" },
|
|
787
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
788
|
+
{ "expect": { "focus": "cell:0,3/child:1" } },
|
|
789
|
+
{ "event": "key", "key": "ArrowDown", "target": "cell:0,3/child:1" },
|
|
790
|
+
{ "expect": { "focus": "cell:1,3/child:0" } }
|
|
791
|
+
]
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"id": "grid.react-aria.table-shift-tab-from-focus-mode-child-skips-cell",
|
|
795
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3995",
|
|
796
|
+
"upstreamTest": "Table > keyboardNavigationBehavior='tab' and textfields in row > focusMode='child' > Shift+Tab from a focusMode=\"child\" child skips the cell and does not return to it",
|
|
797
|
+
"apg": "keyboard",
|
|
798
|
+
"config": {
|
|
799
|
+
"layout": "grid",
|
|
800
|
+
"rows": 3,
|
|
801
|
+
"cols": 4,
|
|
802
|
+
"keyboardNavigationBehavior": "tab",
|
|
803
|
+
"rowHeaders": true,
|
|
804
|
+
"focusableCell": "cell:0,3",
|
|
805
|
+
"actionCellFocusMode": "child"
|
|
806
|
+
},
|
|
807
|
+
"steps": [
|
|
808
|
+
{ "event": "focus", "target": "row:0" },
|
|
809
|
+
{ "event": "key", "key": "ArrowLeft", "target": "row:0" },
|
|
810
|
+
{ "expect": { "focus": "cell:0,3/child:1" } },
|
|
811
|
+
{
|
|
812
|
+
"event": "key",
|
|
813
|
+
"key": "Tab",
|
|
814
|
+
"target": "cell:0,3/child:1",
|
|
815
|
+
"modifiers": ["Shift"]
|
|
816
|
+
},
|
|
817
|
+
{ "expect": { "focus": "cell:0,3/child:0" } },
|
|
818
|
+
{
|
|
819
|
+
"event": "key",
|
|
820
|
+
"key": "Tab",
|
|
821
|
+
"target": "cell:0,3/child:0",
|
|
822
|
+
"modifiers": ["Shift"]
|
|
823
|
+
},
|
|
824
|
+
{ "expect": { "focus": "body" } }
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"id": "grid.react-aria.table-arrow-mode-crosses-cells",
|
|
829
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L4015",
|
|
830
|
+
"upstreamTest": "Table > cells with focusable children in arrow navigation mode > default focusMode: ArrowRight crosses from last child to first child of next cell, ArrowLeft reverses",
|
|
831
|
+
"apg": "keyboard",
|
|
832
|
+
"config": {
|
|
833
|
+
"layout": "grid",
|
|
834
|
+
"rows": 2,
|
|
835
|
+
"cols": 3,
|
|
836
|
+
"rowHeaders": true,
|
|
837
|
+
"cellChildren": 2
|
|
838
|
+
},
|
|
839
|
+
"steps": [
|
|
840
|
+
{ "event": "focus", "target": "row:0" },
|
|
841
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0" },
|
|
842
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
843
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0" },
|
|
844
|
+
{ "expect": { "focus": "cell:0,1/child:0" } },
|
|
845
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,1/child:0" },
|
|
846
|
+
{ "expect": { "focus": "cell:0,1/child:1" } },
|
|
847
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,1/child:1" },
|
|
848
|
+
{ "expect": { "focus": "cell:0,2/child:0" } },
|
|
849
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,2/child:0" },
|
|
850
|
+
{ "expect": { "focus": "cell:0,1/child:1" } }
|
|
851
|
+
],
|
|
852
|
+
"notes": "Arrow navigation in a table crosses cell boundaries between focusable children."
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"id": "grid.react-aria.table-focus-mode-cell-stays-on-cell",
|
|
856
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L4033",
|
|
857
|
+
"upstreamTest": "Table > cells with focusable children in arrow navigation mode > focusMode='cell': cell element stays focused on navigate, arrows enter/exit children within cell",
|
|
858
|
+
"apg": "keyboard",
|
|
859
|
+
"config": {
|
|
860
|
+
"layout": "grid",
|
|
861
|
+
"rows": 2,
|
|
862
|
+
"cols": 3,
|
|
863
|
+
"rowHeaders": true,
|
|
864
|
+
"cellChildren": 2,
|
|
865
|
+
"cellFocusMode": "cell"
|
|
866
|
+
},
|
|
867
|
+
"steps": [
|
|
868
|
+
{ "event": "focus", "target": "row:0" },
|
|
869
|
+
{ "event": "key", "key": "ArrowRight", "target": "row:0" },
|
|
870
|
+
{ "expect": { "focus": "cell:0,0" } },
|
|
871
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,0" },
|
|
872
|
+
{ "expect": { "focus": "cell:0,1" } },
|
|
873
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,1" },
|
|
874
|
+
{ "expect": { "focus": "cell:0,1/child:0" } },
|
|
875
|
+
{ "event": "key", "key": "ArrowRight", "target": "cell:0,1/child:0" },
|
|
876
|
+
{ "expect": { "focus": "cell:0,1/child:1" } },
|
|
877
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,1/child:1" },
|
|
878
|
+
{ "expect": { "focus": "cell:0,1/child:0" } },
|
|
879
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,1/child:0" },
|
|
880
|
+
{ "expect": { "focus": "cell:0,1" } },
|
|
881
|
+
{ "event": "key", "key": "ArrowLeft", "target": "cell:0,1" },
|
|
882
|
+
{ "expect": { "focus": "cell:0,0" } }
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"id": "grid.react-aria.table-double-click-row-action",
|
|
887
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria/test/table/useTable.test.tsx#L117",
|
|
888
|
+
"upstreamTest": "useTable > actions on rows > calls onAction",
|
|
889
|
+
"apg": "selection",
|
|
890
|
+
"config": {
|
|
891
|
+
"layout": "grid",
|
|
892
|
+
"rows": 5,
|
|
893
|
+
"selectionMode": "multiple",
|
|
894
|
+
"selectionBehavior": "replace"
|
|
895
|
+
},
|
|
896
|
+
"steps": [
|
|
897
|
+
{ "event": "click", "target": "cell:1,0" },
|
|
898
|
+
{
|
|
899
|
+
"expect": {
|
|
900
|
+
"events": { "onSelectionChange": ["row:1"], "onAction": [] }
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
{ "event": "click", "target": "cell:1,0", "count": 2 },
|
|
904
|
+
{ "expect": { "events": { "onAction": ["row:1"] } } }
|
|
905
|
+
],
|
|
906
|
+
"notes": "A single click selects and announces the row; a double click fires onAction."
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"id": "grid.react-aria.table-selection-replace-single-keyboard",
|
|
910
|
+
"upstream": "https://github.com/adobe/react-spectrum/blob/99e610236887da619ad9d54a1cd87983166c043d/packages/react-aria-components/test/Table.test.js#L3254",
|
|
911
|
+
"upstreamTest": "Table > selectionBehavior=\"replace\" > keyboard > should perform selection with single selection",
|
|
912
|
+
"apg": "selection",
|
|
913
|
+
"config": {
|
|
914
|
+
"layout": "grid",
|
|
915
|
+
"rows": 3,
|
|
916
|
+
"selectionMode": "single",
|
|
917
|
+
"selectionBehavior": "replace",
|
|
918
|
+
"noCheckboxes": true
|
|
919
|
+
},
|
|
920
|
+
"steps": [
|
|
921
|
+
{ "event": "focus", "target": "cell:2,0" },
|
|
922
|
+
{ "event": "key", "key": "Enter", "target": "cell:2,0" },
|
|
923
|
+
{
|
|
924
|
+
"expect": {
|
|
925
|
+
"attrs": {
|
|
926
|
+
"row:2": { "aria-selected": "true", "data-selected": "true" }
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
{ "event": "focus", "target": "cell:1,0" },
|
|
931
|
+
{ "event": "key", "key": "Enter", "target": "cell:1,0" },
|
|
932
|
+
{
|
|
933
|
+
"expect": {
|
|
934
|
+
"attrs": {
|
|
935
|
+
"row:1": { "aria-selected": "true", "data-selected": "true" },
|
|
936
|
+
"row:2": { "aria-selected": "false", "data-selected": null }
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
]
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
"skipped": [
|
|
944
|
+
{
|
|
945
|
+
"reason": "useGrid.test.js: none skipped — all five focus-mode tests ported"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"reason": "GridList.test.js / Table.test.js: styling, custom classes, DOM props, refs, render props, hover/press/focus-ring visuals"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"reason": "GridList.test.js / Table.test.js: virtualizer, async loading, load-more sentinel and scroll callbacks"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"reason": "GridList.test.js / Table.test.js: drag and drop, drop indicators, column resizing"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"reason": "GridList.test.js / Table.test.js: links, RouterProvider, SSR, Suspense, error/duplicate-key state, TagGroup nesting"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"reason": "Table.test.js: selection replacement/strict-mode bugs tied to React effects"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"reason": "tableResizingTests.tsx / ariaTableResizing.test.tsx / useTableBackwardCompat.test.tsx: resizing and legacy API"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"reason": "@adobe/react-spectrum layout Grid.test.js: CSS layout component, not an interactive grid"
|
|
967
|
+
}
|
|
968
|
+
]
|
|
969
|
+
}
|