@rokkit/ui 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -160,6 +160,12 @@
|
|
|
160
160
|
{@const row = entry.proxy.value as Record<string, unknown>}
|
|
161
161
|
{@const isSelected = wrapper.selectedKeys.has(entry.key)}
|
|
162
162
|
{@const isFocused = wrapper.focusedKey === entry.key}
|
|
163
|
+
<!-- A roving tabindex needs a resting stop. focusedKey starts null, and this
|
|
164
|
+
root carries no tabindex of its own (unlike Tree, which puts 0 on its
|
|
165
|
+
container), so keying purely off isFocused left the body with NO tab stop
|
|
166
|
+
and no way for a keyboard user to enter the grid. The first row holds it
|
|
167
|
+
until focus moves. -->
|
|
168
|
+
{@const isTabStop = isFocused || (wrapper.focusedKey === null && rowIndex === 0)}
|
|
163
169
|
{#if rowSnippet}
|
|
164
170
|
{@render rowSnippet(row, proxyTable.columns, rowIndex, isSelected)}
|
|
165
171
|
{:else}
|
|
@@ -170,7 +176,7 @@
|
|
|
170
176
|
data-focused={isFocused || undefined}
|
|
171
177
|
aria-selected={isSelected}
|
|
172
178
|
aria-rowindex={rowIndex + 1}
|
|
173
|
-
tabindex={
|
|
179
|
+
tabindex={isTabStop ? 0 : -1}
|
|
174
180
|
>
|
|
175
181
|
{#each proxyTable.columns as column (column.name)}
|
|
176
182
|
<!-- A column that names a snippet is more specific than the blanket
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokkit/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Data driven UI components for Rokkit applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
"dropdown"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rokkit/core": "1.
|
|
49
|
-
"@rokkit/data": "1.
|
|
50
|
-
"@rokkit/states": "1.
|
|
51
|
-
"@rokkit/actions": "1.
|
|
48
|
+
"@rokkit/core": "1.8.0",
|
|
49
|
+
"@rokkit/data": "1.8.0",
|
|
50
|
+
"@rokkit/states": "1.8.0",
|
|
51
|
+
"@rokkit/actions": "1.8.0",
|
|
52
52
|
"marked": "^15.0.0",
|
|
53
53
|
"dompurify": "^3.4.13"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"shiki": "^3.23.0",
|
|
56
|
+
"shiki": "^3.23.0 || ^4",
|
|
57
57
|
"svelte": "^5.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|