@react-spectrum/list 3.0.0-alpha.6 → 3.0.0-alpha.9
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/main.css +1 -1
- package/dist/main.js +421 -292
- package/dist/main.js.map +1 -1
- package/dist/module.js +420 -291
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +34 -28
- package/src/ListView.tsx +93 -17
- package/src/ListViewItem.tsx +50 -9
- package/src/listview.css +42 -3
package/dist/module.js
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
|
-
import {Item as $
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {useProvider as $
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import $
|
|
15
|
-
import $
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
2
|
+
import {Item as $75e4a7b01832b12d$re_export$Item} from "@react-stately/collections";
|
|
3
|
+
import {Checkbox as $fWI2a$Checkbox} from "@react-spectrum/checkbox";
|
|
4
|
+
import {useDOMRef as $fWI2a$useDOMRef, useStyleProps as $fWI2a$useStyleProps, classNames as $fWI2a$classNames, SlotProvider as $fWI2a$SlotProvider, ClearSlots as $fWI2a$ClearSlots} from "@react-spectrum/utils";
|
|
5
|
+
import {Content as $fWI2a$Content} from "@react-spectrum/view";
|
|
6
|
+
import {GridCollection as $fWI2a$GridCollection, useGridState as $fWI2a$useGridState} from "@react-stately/grid";
|
|
7
|
+
import {GridKeyboardDelegate as $fWI2a$GridKeyboardDelegate, useGridSelectionCheckbox as $fWI2a$useGridSelectionCheckbox, useGrid as $fWI2a$useGrid, useGridRow as $fWI2a$useGridRow, useGridCell as $fWI2a$useGridCell} from "@react-aria/grid";
|
|
8
|
+
import {ListLayout as $fWI2a$ListLayout} from "@react-stately/layout";
|
|
9
|
+
import {useListState as $fWI2a$useListState} from "@react-stately/list";
|
|
10
|
+
import {ProgressCircle as $fWI2a$ProgressCircle} from "@react-spectrum/progress";
|
|
11
|
+
import {useProvider as $fWI2a$useProvider, Provider as $fWI2a$Provider} from "@react-spectrum/provider";
|
|
12
|
+
import $fWI2a$react, {useMemo as $fWI2a$useMemo, useRef as $fWI2a$useRef, useContext as $fWI2a$useContext} from "react";
|
|
13
|
+
import {useCollator as $fWI2a$useCollator, useMessageFormatter as $fWI2a$useMessageFormatter, useLocale as $fWI2a$useLocale} from "@react-aria/i18n";
|
|
14
|
+
import {Virtualizer as $fWI2a$Virtualizer} from "@react-aria/virtualizer";
|
|
15
|
+
import $fWI2a$spectrumiconsuiListGripper from "@spectrum-icons/ui/ListGripper";
|
|
16
|
+
import $fWI2a$spectrumiconsuiChevronLeftMedium from "@spectrum-icons/ui/ChevronLeftMedium";
|
|
17
|
+
import $fWI2a$spectrumiconsuiChevronRightMedium from "@spectrum-icons/ui/ChevronRightMedium";
|
|
18
|
+
import {useFocusRing as $fWI2a$useFocusRing, FocusRing as $fWI2a$FocusRing} from "@react-aria/focus";
|
|
19
|
+
import {Grid as $fWI2a$Grid} from "@react-spectrum/layout";
|
|
20
|
+
import {mergeProps as $fWI2a$mergeProps} from "@react-aria/utils";
|
|
21
|
+
import {useButton as $fWI2a$useButton} from "@react-aria/button";
|
|
22
|
+
import {useHover as $fWI2a$useHover, usePress as $fWI2a$usePress} from "@react-aria/interactions";
|
|
23
|
+
import {useVisuallyHidden as $fWI2a$useVisuallyHidden} from "@react-aria/visually-hidden";
|
|
21
24
|
|
|
22
25
|
function $parcel$interopDefault(a) {
|
|
23
26
|
return a && a.__esModule ? a.default : a;
|
|
@@ -28,377 +31,426 @@ function $parcel$export(e, n, v, s) {
|
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
|
|
31
|
-
var $58dd82a3a3707bc6$exports = {};
|
|
32
|
-
var $6b2ebdd0cf3fc8f2$exports = {};
|
|
33
|
-
$6b2ebdd0cf3fc8f2$exports = JSON.parse("{\"loading\":\"جارٍ التحميل...\",\"loadingMore\":\"جارٍ تحميل المزيد...\"}");
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var $
|
|
37
|
-
$
|
|
36
|
+
var $8d8b0a0ae222979e$exports = {};
|
|
37
|
+
var $a8be062dce739a7d$exports = {};
|
|
38
|
+
$a8be062dce739a7d$exports = JSON.parse("{\"loading\":\"جارٍ التحميل...\",\"loadingMore\":\"جارٍ تحميل المزيد...\"}");
|
|
38
39
|
|
|
39
40
|
|
|
40
|
-
var $
|
|
41
|
-
$
|
|
41
|
+
var $ebee5026543c5714$exports = {};
|
|
42
|
+
$ebee5026543c5714$exports = JSON.parse("{\"loading\":\"Зареждане...\",\"loadingMore\":\"Зареждане на още...\"}");
|
|
42
43
|
|
|
43
44
|
|
|
44
|
-
var $
|
|
45
|
-
$
|
|
45
|
+
var $ec2dceffa5b2d037$exports = {};
|
|
46
|
+
$ec2dceffa5b2d037$exports = JSON.parse("{\"loading\":\"Načítání...\",\"loadingMore\":\"Načítání dalších...\"}");
|
|
46
47
|
|
|
47
48
|
|
|
48
|
-
var $
|
|
49
|
-
$
|
|
49
|
+
var $e49254d6635b1a35$exports = {};
|
|
50
|
+
$e49254d6635b1a35$exports = JSON.parse("{\"loading\":\"Indlæser...\",\"loadingMore\":\"Indlæser flere...\"}");
|
|
50
51
|
|
|
51
52
|
|
|
52
|
-
var $
|
|
53
|
-
$
|
|
53
|
+
var $c25de0af306f5a70$exports = {};
|
|
54
|
+
$c25de0af306f5a70$exports = JSON.parse("{\"loading\":\"Laden...\",\"loadingMore\":\"Mehr laden ...\"}");
|
|
54
55
|
|
|
55
56
|
|
|
56
|
-
var $
|
|
57
|
-
$
|
|
57
|
+
var $1aedf9be304cf865$exports = {};
|
|
58
|
+
$1aedf9be304cf865$exports = JSON.parse("{\"loading\":\"Φόρτωση...\",\"loadingMore\":\"Φόρτωση περισσότερων...\"}");
|
|
58
59
|
|
|
59
60
|
|
|
60
|
-
var $
|
|
61
|
-
$
|
|
61
|
+
var $653a020875a8fea3$exports = {};
|
|
62
|
+
$653a020875a8fea3$exports = JSON.parse("{\"loading\":\"Loading…\",\"loadingMore\":\"Loading more…\"}");
|
|
62
63
|
|
|
63
64
|
|
|
64
|
-
var $
|
|
65
|
-
$
|
|
65
|
+
var $24fba9a73a2aba1c$exports = {};
|
|
66
|
+
$24fba9a73a2aba1c$exports = JSON.parse("{\"loading\":\"Cargando…\",\"loadingMore\":\"Cargando más…\"}");
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
var $
|
|
69
|
-
$
|
|
69
|
+
var $0994847e6d27862d$exports = {};
|
|
70
|
+
$0994847e6d27862d$exports = JSON.parse("{\"loading\":\"Laadimine...\",\"loadingMore\":\"Laadi rohkem...\"}");
|
|
70
71
|
|
|
71
72
|
|
|
72
|
-
var $
|
|
73
|
-
$
|
|
73
|
+
var $084b0bc3d6e3d2a1$exports = {};
|
|
74
|
+
$084b0bc3d6e3d2a1$exports = JSON.parse("{\"loading\":\"Ladataan…\",\"loadingMore\":\"Ladataan lisää…\"}");
|
|
74
75
|
|
|
75
76
|
|
|
76
|
-
var $
|
|
77
|
-
$
|
|
77
|
+
var $3c567f46aec1205a$exports = {};
|
|
78
|
+
$3c567f46aec1205a$exports = JSON.parse("{\"loading\":\"Chargement...\",\"loadingMore\":\"Chargement supplémentaire...\"}");
|
|
78
79
|
|
|
79
80
|
|
|
80
|
-
var $
|
|
81
|
-
$
|
|
81
|
+
var $e5a01f2966bf0b9a$exports = {};
|
|
82
|
+
$e5a01f2966bf0b9a$exports = JSON.parse("{\"loading\":\"טוען...\",\"loadingMore\":\"טוען עוד...\"}");
|
|
82
83
|
|
|
83
84
|
|
|
84
|
-
var $
|
|
85
|
-
$
|
|
85
|
+
var $223cc8f6bb1d23dd$exports = {};
|
|
86
|
+
$223cc8f6bb1d23dd$exports = JSON.parse("{\"loading\":\"Učitavam...\",\"loadingMore\":\"Učitavam još...\"}");
|
|
86
87
|
|
|
87
88
|
|
|
88
|
-
var $
|
|
89
|
-
$
|
|
89
|
+
var $c577fab129d558ed$exports = {};
|
|
90
|
+
$c577fab129d558ed$exports = JSON.parse("{\"loading\":\"Betöltés folyamatban…\",\"loadingMore\":\"Továbbiak betöltése folyamatban…\"}");
|
|
90
91
|
|
|
91
92
|
|
|
92
|
-
var $
|
|
93
|
-
$
|
|
93
|
+
var $a6e5541030242f67$exports = {};
|
|
94
|
+
$a6e5541030242f67$exports = JSON.parse("{\"loading\":\"Caricamento...\",\"loadingMore\":\"Caricamento altri...\"}");
|
|
94
95
|
|
|
95
96
|
|
|
96
|
-
var $
|
|
97
|
-
$
|
|
97
|
+
var $cce2c1ef24294875$exports = {};
|
|
98
|
+
$cce2c1ef24294875$exports = JSON.parse("{\"loading\":\"読み込み中...\",\"loadingMore\":\"さらに読み込み中...\"}");
|
|
98
99
|
|
|
99
100
|
|
|
100
|
-
var $
|
|
101
|
-
$
|
|
101
|
+
var $01de2837b3b6f15a$exports = {};
|
|
102
|
+
$01de2837b3b6f15a$exports = JSON.parse("{\"loading\":\"로드 중…\",\"loadingMore\":\"추가 로드 중…\"}");
|
|
102
103
|
|
|
103
104
|
|
|
104
|
-
var $
|
|
105
|
-
$
|
|
105
|
+
var $5394997707852da6$exports = {};
|
|
106
|
+
$5394997707852da6$exports = JSON.parse("{\"loading\":\"Įkeliama...\",\"loadingMore\":\"Įkeliama daugiau...\"}");
|
|
106
107
|
|
|
107
108
|
|
|
108
|
-
var $
|
|
109
|
-
$
|
|
109
|
+
var $3f13373950080912$exports = {};
|
|
110
|
+
$3f13373950080912$exports = JSON.parse("{\"loading\":\"Notiek ielāde...\",\"loadingMore\":\"Tiek ielādēts vēl...\"}");
|
|
110
111
|
|
|
111
112
|
|
|
112
|
-
var $
|
|
113
|
-
$
|
|
113
|
+
var $041a8a2796a43a59$exports = {};
|
|
114
|
+
$041a8a2796a43a59$exports = JSON.parse("{\"loading\":\"Laster inn ...\",\"loadingMore\":\"Laster inn flere ...\"}");
|
|
114
115
|
|
|
115
116
|
|
|
116
|
-
var $
|
|
117
|
-
$
|
|
117
|
+
var $ef957358eac33027$exports = {};
|
|
118
|
+
$ef957358eac33027$exports = JSON.parse("{\"loading\":\"Laden...\",\"loadingMore\":\"Meer laden...\"}");
|
|
118
119
|
|
|
119
120
|
|
|
120
|
-
var $
|
|
121
|
-
$
|
|
121
|
+
var $09a0ddc6d157c4fe$exports = {};
|
|
122
|
+
$09a0ddc6d157c4fe$exports = JSON.parse("{\"loading\":\"Ładowanie...\",\"loadingMore\":\"Wczytywanie większej liczby...\"}");
|
|
122
123
|
|
|
123
124
|
|
|
124
|
-
var $
|
|
125
|
-
$
|
|
125
|
+
var $5e4abb947f3a742c$exports = {};
|
|
126
|
+
$5e4abb947f3a742c$exports = JSON.parse("{\"loading\":\"Carregando...\",\"loadingMore\":\"Carregando mais...\"}");
|
|
126
127
|
|
|
127
128
|
|
|
128
|
-
var $
|
|
129
|
-
$
|
|
129
|
+
var $18faaf4c3266f94f$exports = {};
|
|
130
|
+
$18faaf4c3266f94f$exports = JSON.parse("{\"loading\":\"A carregar...\",\"loadingMore\":\"A carregar mais...\"}");
|
|
130
131
|
|
|
131
132
|
|
|
132
|
-
var $
|
|
133
|
-
$
|
|
133
|
+
var $b3819b882aaf2b05$exports = {};
|
|
134
|
+
$b3819b882aaf2b05$exports = JSON.parse("{\"loading\":\"Se încarcă...\",\"loadingMore\":\"Se încarcă mai multe...\"}");
|
|
134
135
|
|
|
135
136
|
|
|
136
|
-
var $
|
|
137
|
-
$
|
|
137
|
+
var $bbb9489f20c7c6c0$exports = {};
|
|
138
|
+
$bbb9489f20c7c6c0$exports = JSON.parse("{\"loading\":\"Загрузка...\",\"loadingMore\":\"Дополнительная загрузка...\"}");
|
|
138
139
|
|
|
139
140
|
|
|
140
|
-
var $
|
|
141
|
-
$
|
|
141
|
+
var $12e7bbe01da0d5ad$exports = {};
|
|
142
|
+
$12e7bbe01da0d5ad$exports = JSON.parse("{\"loading\":\"Načítava sa...\",\"loadingMore\":\"Načítava sa viac...\"}");
|
|
142
143
|
|
|
143
144
|
|
|
144
|
-
var $
|
|
145
|
-
$
|
|
145
|
+
var $5582a397c204a97c$exports = {};
|
|
146
|
+
$5582a397c204a97c$exports = JSON.parse("{\"loading\":\"Nalaganje ...\",\"loadingMore\":\"Nalaganje več vsebine ...\"}");
|
|
146
147
|
|
|
147
148
|
|
|
148
|
-
var $
|
|
149
|
-
$
|
|
149
|
+
var $aa6549babfa00736$exports = {};
|
|
150
|
+
$aa6549babfa00736$exports = JSON.parse("{\"loading\":\"Učitavam...\",\"loadingMore\":\"Učitavam još...\"}");
|
|
150
151
|
|
|
151
152
|
|
|
152
|
-
var $
|
|
153
|
-
$
|
|
153
|
+
var $13248984d46c1e4f$exports = {};
|
|
154
|
+
$13248984d46c1e4f$exports = JSON.parse("{\"loading\":\"Läser in...\",\"loadingMore\":\"Läser in mer...\"}");
|
|
154
155
|
|
|
155
156
|
|
|
156
|
-
var $
|
|
157
|
-
$
|
|
157
|
+
var $7af10700b945dced$exports = {};
|
|
158
|
+
$7af10700b945dced$exports = JSON.parse("{\"loading\":\"Yükleniyor...\",\"loadingMore\":\"Daha fazla yükleniyor...\"}");
|
|
158
159
|
|
|
159
160
|
|
|
160
|
-
var $
|
|
161
|
-
$
|
|
161
|
+
var $00a02749c6fa842b$exports = {};
|
|
162
|
+
$00a02749c6fa842b$exports = JSON.parse("{\"loading\":\"Завантаження…\",\"loadingMore\":\"Завантаження інших об’єктів...\"}");
|
|
162
163
|
|
|
163
164
|
|
|
164
|
-
var $
|
|
165
|
-
$
|
|
165
|
+
var $e3b2b7128a600af6$exports = {};
|
|
166
|
+
$e3b2b7128a600af6$exports = JSON.parse("{\"loading\":\"正在加载...\",\"loadingMore\":\"正在加载更多...\"}");
|
|
166
167
|
|
|
167
168
|
|
|
168
|
-
$
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
169
|
+
var $8751d9847e270a98$exports = {};
|
|
170
|
+
$8751d9847e270a98$exports = JSON.parse("{\"loading\":\"載入中…\",\"loadingMore\":\"正在載入更多…\"}");
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
$8d8b0a0ae222979e$exports = {
|
|
174
|
+
"ar-AE": $a8be062dce739a7d$exports,
|
|
175
|
+
"bg-BG": $ebee5026543c5714$exports,
|
|
176
|
+
"cs-CZ": $ec2dceffa5b2d037$exports,
|
|
177
|
+
"da-DK": $e49254d6635b1a35$exports,
|
|
178
|
+
"de-DE": $c25de0af306f5a70$exports,
|
|
179
|
+
"el-GR": $1aedf9be304cf865$exports,
|
|
180
|
+
"en-US": $653a020875a8fea3$exports,
|
|
181
|
+
"es-ES": $24fba9a73a2aba1c$exports,
|
|
182
|
+
"et-EE": $0994847e6d27862d$exports,
|
|
183
|
+
"fi-FI": $084b0bc3d6e3d2a1$exports,
|
|
184
|
+
"fr-FR": $3c567f46aec1205a$exports,
|
|
185
|
+
"he-IL": $e5a01f2966bf0b9a$exports,
|
|
186
|
+
"hr-HR": $223cc8f6bb1d23dd$exports,
|
|
187
|
+
"hu-HU": $c577fab129d558ed$exports,
|
|
188
|
+
"it-IT": $a6e5541030242f67$exports,
|
|
189
|
+
"ja-JP": $cce2c1ef24294875$exports,
|
|
190
|
+
"ko-KR": $01de2837b3b6f15a$exports,
|
|
191
|
+
"lt-LT": $5394997707852da6$exports,
|
|
192
|
+
"lv-LV": $3f13373950080912$exports,
|
|
193
|
+
"nb-NO": $041a8a2796a43a59$exports,
|
|
194
|
+
"nl-NL": $ef957358eac33027$exports,
|
|
195
|
+
"pl-PL": $09a0ddc6d157c4fe$exports,
|
|
196
|
+
"pt-BR": $5e4abb947f3a742c$exports,
|
|
197
|
+
"pt-PT": $18faaf4c3266f94f$exports,
|
|
198
|
+
"ro-RO": $b3819b882aaf2b05$exports,
|
|
199
|
+
"ru-RU": $bbb9489f20c7c6c0$exports,
|
|
200
|
+
"sk-SK": $12e7bbe01da0d5ad$exports,
|
|
201
|
+
"sl-SI": $5582a397c204a97c$exports,
|
|
202
|
+
"sr-SP": $aa6549babfa00736$exports,
|
|
203
|
+
"sv-SE": $13248984d46c1e4f$exports,
|
|
204
|
+
"tr-TR": $7af10700b945dced$exports,
|
|
205
|
+
"uk-UA": $00a02749c6fa842b$exports,
|
|
206
|
+
"zh-CN": $e3b2b7128a600af6$exports,
|
|
207
|
+
"zh-TW": $8751d9847e270a98$exports
|
|
203
208
|
};
|
|
204
209
|
|
|
205
210
|
|
|
206
211
|
|
|
207
212
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
$parcel$export($
|
|
212
|
-
$parcel$export($
|
|
213
|
-
$parcel$export($
|
|
214
|
-
$parcel$export($
|
|
215
|
-
$parcel$export($
|
|
216
|
-
$parcel$export($
|
|
217
|
-
$parcel$export($
|
|
218
|
-
$parcel$export($
|
|
219
|
-
$parcel$export($
|
|
220
|
-
$parcel$export($
|
|
221
|
-
$parcel$export($
|
|
222
|
-
$parcel$export($
|
|
223
|
-
$parcel$export($
|
|
224
|
-
$parcel$export($
|
|
225
|
-
$parcel$export($
|
|
226
|
-
$parcel$export($
|
|
227
|
-
$parcel$export($
|
|
228
|
-
$parcel$export($
|
|
229
|
-
$parcel$export($
|
|
230
|
-
$parcel$export($
|
|
231
|
-
$parcel$export($
|
|
232
|
-
$parcel$export($
|
|
233
|
-
$parcel$export($
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
var $
|
|
241
|
-
var $
|
|
242
|
-
var $
|
|
243
|
-
var $
|
|
244
|
-
var $
|
|
245
|
-
var $
|
|
246
|
-
var $
|
|
247
|
-
var $
|
|
248
|
-
var $
|
|
249
|
-
var $
|
|
250
|
-
var $
|
|
251
|
-
var $
|
|
252
|
-
var $
|
|
253
|
-
var $
|
|
254
|
-
var $
|
|
255
|
-
var $
|
|
256
|
-
var $
|
|
257
|
-
var $
|
|
258
|
-
$
|
|
259
|
-
$
|
|
260
|
-
$
|
|
261
|
-
$
|
|
262
|
-
$
|
|
263
|
-
$
|
|
264
|
-
$
|
|
265
|
-
$
|
|
266
|
-
$
|
|
267
|
-
$
|
|
268
|
-
$
|
|
269
|
-
$
|
|
270
|
-
$
|
|
271
|
-
$
|
|
272
|
-
$
|
|
273
|
-
$
|
|
274
|
-
$
|
|
275
|
-
$
|
|
276
|
-
$
|
|
277
|
-
$
|
|
278
|
-
$
|
|
279
|
-
$
|
|
280
|
-
$
|
|
281
|
-
$
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
213
|
+
|
|
214
|
+
var $7a33fe9cdec6aaae$exports = {};
|
|
215
|
+
|
|
216
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView", () => $7a33fe9cdec6aaae$export$4ad4709e9aee8e02, (v) => $7a33fe9cdec6aaae$export$4ad4709e9aee8e02 = v);
|
|
217
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--quiet", () => $7a33fe9cdec6aaae$export$b01cb9680b0b8d22, (v) => $7a33fe9cdec6aaae$export$b01cb9680b0b8d22 = v);
|
|
218
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem", () => $7a33fe9cdec6aaae$export$ce8c93b50eec2d4f, (v) => $7a33fe9cdec6aaae$export$ce8c93b50eec2d4f = v);
|
|
219
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--emphasized", () => $7a33fe9cdec6aaae$export$eb0d5352b2a55473, (v) => $7a33fe9cdec6aaae$export$eb0d5352b2a55473 = v);
|
|
220
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "is-selected", () => $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a, (v) => $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a = v);
|
|
221
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "is-hovered", () => $7a33fe9cdec6aaae$export$b8813cd5d7824ce7, (v) => $7a33fe9cdec6aaae$export$b8813cd5d7824ce7 = v);
|
|
222
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "is-active", () => $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f, (v) => $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f = v);
|
|
223
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "is-previous-selected", () => $7a33fe9cdec6aaae$export$714358c802c073a3, (v) => $7a33fe9cdec6aaae$export$714358c802c073a3 = v);
|
|
224
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "is-focused", () => $7a33fe9cdec6aaae$export$e7dc768d35940237, (v) => $7a33fe9cdec6aaae$export$e7dc768d35940237 = v);
|
|
225
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "focus-ring", () => $7a33fe9cdec6aaae$export$f39a09f249340e2a, (v) => $7a33fe9cdec6aaae$export$f39a09f249340e2a = v);
|
|
226
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "has-checkbox", () => $7a33fe9cdec6aaae$export$27f4d14f7fc5b94, (v) => $7a33fe9cdec6aaae$export$27f4d14f7fc5b94 = v);
|
|
227
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "is-dragging", () => $7a33fe9cdec6aaae$export$642fdeb0d9a9740d, (v) => $7a33fe9cdec6aaae$export$642fdeb0d9a9740d = v);
|
|
228
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-grid", () => $7a33fe9cdec6aaae$export$aaaf83100348d389, (v) => $7a33fe9cdec6aaae$export$aaaf83100348d389 = v);
|
|
229
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-draghandle-container", () => $7a33fe9cdec6aaae$export$f385e7456ddfee84, (v) => $7a33fe9cdec6aaae$export$f385e7456ddfee84 = v);
|
|
230
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-draghandle-button", () => $7a33fe9cdec6aaae$export$4784f0c2ec8bbf7b, (v) => $7a33fe9cdec6aaae$export$4784f0c2ec8bbf7b = v);
|
|
231
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-checkbox", () => $7a33fe9cdec6aaae$export$f979f76ca45242f2, (v) => $7a33fe9cdec6aaae$export$f979f76ca45242f2 = v);
|
|
232
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-icon", () => $7a33fe9cdec6aaae$export$2b56ca744bd31ebd, (v) => $7a33fe9cdec6aaae$export$2b56ca744bd31ebd = v);
|
|
233
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-image", () => $7a33fe9cdec6aaae$export$1260770e51d5a8c4, (v) => $7a33fe9cdec6aaae$export$1260770e51d5a8c4 = v);
|
|
234
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-content", () => $7a33fe9cdec6aaae$export$dc2b0b08d47555, (v) => $7a33fe9cdec6aaae$export$dc2b0b08d47555 = v);
|
|
235
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-description", () => $7a33fe9cdec6aaae$export$5d2adfeb248e654a, (v) => $7a33fe9cdec6aaae$export$5d2adfeb248e654a = v);
|
|
236
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-actions", () => $7a33fe9cdec6aaae$export$26480389595d4515, (v) => $7a33fe9cdec6aaae$export$26480389595d4515 = v);
|
|
237
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-actionmenu", () => $7a33fe9cdec6aaae$export$58dfda3903289699, (v) => $7a33fe9cdec6aaae$export$58dfda3903289699 = v);
|
|
238
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem-parentIndicator", () => $7a33fe9cdec6aaae$export$39b42a8a24290c17, (v) => $7a33fe9cdec6aaae$export$39b42a8a24290c17 = v);
|
|
239
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--compact", () => $7a33fe9cdec6aaae$export$1f55b27adf96a61e, (v) => $7a33fe9cdec6aaae$export$1f55b27adf96a61e = v);
|
|
240
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--spacious", () => $7a33fe9cdec6aaae$export$cbd30c7809acdd81, (v) => $7a33fe9cdec6aaae$export$cbd30c7809acdd81 = v);
|
|
241
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView--draggable", () => $7a33fe9cdec6aaae$export$a2d35348c0cc9bca, (v) => $7a33fe9cdec6aaae$export$a2d35348c0cc9bca = v);
|
|
242
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListViewItem--draggable", () => $7a33fe9cdec6aaae$export$f290f4d471385527, (v) => $7a33fe9cdec6aaae$export$f290f4d471385527 = v);
|
|
243
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView-centeredWrapper", () => $7a33fe9cdec6aaae$export$1b66ee5cd8394caf, (v) => $7a33fe9cdec6aaae$export$1b66ee5cd8394caf = v);
|
|
244
|
+
$parcel$export($7a33fe9cdec6aaae$exports, "react-spectrum-ListView-centeredWrapper--loadingMore", () => $7a33fe9cdec6aaae$export$6b3b7792abd9e5f4, (v) => $7a33fe9cdec6aaae$export$6b3b7792abd9e5f4 = v);
|
|
245
|
+
var $7a33fe9cdec6aaae$export$4ad4709e9aee8e02;
|
|
246
|
+
var $7a33fe9cdec6aaae$export$b01cb9680b0b8d22;
|
|
247
|
+
var $7a33fe9cdec6aaae$export$ce8c93b50eec2d4f;
|
|
248
|
+
var $7a33fe9cdec6aaae$export$eb0d5352b2a55473;
|
|
249
|
+
var $7a33fe9cdec6aaae$export$1e0fb04f31d3c22a;
|
|
250
|
+
var $7a33fe9cdec6aaae$export$b8813cd5d7824ce7;
|
|
251
|
+
var $7a33fe9cdec6aaae$export$20fd0f7cd4e6112f;
|
|
252
|
+
var $7a33fe9cdec6aaae$export$714358c802c073a3;
|
|
253
|
+
var $7a33fe9cdec6aaae$export$e7dc768d35940237;
|
|
254
|
+
var $7a33fe9cdec6aaae$export$f39a09f249340e2a;
|
|
255
|
+
var $7a33fe9cdec6aaae$export$27f4d14f7fc5b94;
|
|
256
|
+
var $7a33fe9cdec6aaae$export$642fdeb0d9a9740d;
|
|
257
|
+
var $7a33fe9cdec6aaae$export$aaaf83100348d389;
|
|
258
|
+
var $7a33fe9cdec6aaae$export$f385e7456ddfee84;
|
|
259
|
+
var $7a33fe9cdec6aaae$export$4784f0c2ec8bbf7b;
|
|
260
|
+
var $7a33fe9cdec6aaae$export$f979f76ca45242f2;
|
|
261
|
+
var $7a33fe9cdec6aaae$export$2b56ca744bd31ebd;
|
|
262
|
+
var $7a33fe9cdec6aaae$export$1260770e51d5a8c4;
|
|
263
|
+
var $7a33fe9cdec6aaae$export$dc2b0b08d47555;
|
|
264
|
+
var $7a33fe9cdec6aaae$export$5d2adfeb248e654a;
|
|
265
|
+
var $7a33fe9cdec6aaae$export$26480389595d4515;
|
|
266
|
+
var $7a33fe9cdec6aaae$export$58dfda3903289699;
|
|
267
|
+
var $7a33fe9cdec6aaae$export$39b42a8a24290c17;
|
|
268
|
+
var $7a33fe9cdec6aaae$export$1f55b27adf96a61e;
|
|
269
|
+
var $7a33fe9cdec6aaae$export$cbd30c7809acdd81;
|
|
270
|
+
var $7a33fe9cdec6aaae$export$a2d35348c0cc9bca;
|
|
271
|
+
var $7a33fe9cdec6aaae$export$f290f4d471385527;
|
|
272
|
+
var $7a33fe9cdec6aaae$export$1b66ee5cd8394caf;
|
|
273
|
+
var $7a33fe9cdec6aaae$export$6b3b7792abd9e5f4;
|
|
274
|
+
$7a33fe9cdec6aaae$export$4ad4709e9aee8e02 = "react-spectrum-ListView_d68562";
|
|
275
|
+
$7a33fe9cdec6aaae$export$b01cb9680b0b8d22 = "react-spectrum-ListView--quiet_d68562";
|
|
276
|
+
$7a33fe9cdec6aaae$export$ce8c93b50eec2d4f = "react-spectrum-ListViewItem_d68562";
|
|
277
|
+
$7a33fe9cdec6aaae$export$eb0d5352b2a55473 = "react-spectrum-ListView--emphasized_d68562";
|
|
278
|
+
$7a33fe9cdec6aaae$export$1e0fb04f31d3c22a = "is-selected_d68562";
|
|
279
|
+
$7a33fe9cdec6aaae$export$b8813cd5d7824ce7 = "is-hovered_d68562";
|
|
280
|
+
$7a33fe9cdec6aaae$export$20fd0f7cd4e6112f = "is-active_d68562";
|
|
281
|
+
$7a33fe9cdec6aaae$export$714358c802c073a3 = "is-previous-selected_d68562";
|
|
282
|
+
$7a33fe9cdec6aaae$export$e7dc768d35940237 = "is-focused_d68562";
|
|
283
|
+
$7a33fe9cdec6aaae$export$f39a09f249340e2a = "focus-ring_d68562";
|
|
284
|
+
$7a33fe9cdec6aaae$export$27f4d14f7fc5b94 = "has-checkbox_d68562";
|
|
285
|
+
$7a33fe9cdec6aaae$export$642fdeb0d9a9740d = "is-dragging_d68562";
|
|
286
|
+
$7a33fe9cdec6aaae$export$aaaf83100348d389 = "react-spectrum-ListViewItem-grid_d68562";
|
|
287
|
+
$7a33fe9cdec6aaae$export$f385e7456ddfee84 = "react-spectrum-ListViewItem-draghandle-container_d68562";
|
|
288
|
+
$7a33fe9cdec6aaae$export$4784f0c2ec8bbf7b = "react-spectrum-ListViewItem-draghandle-button_d68562";
|
|
289
|
+
$7a33fe9cdec6aaae$export$f979f76ca45242f2 = "react-spectrum-ListViewItem-checkbox_d68562";
|
|
290
|
+
$7a33fe9cdec6aaae$export$2b56ca744bd31ebd = "react-spectrum-ListViewItem-icon_d68562";
|
|
291
|
+
$7a33fe9cdec6aaae$export$1260770e51d5a8c4 = "react-spectrum-ListViewItem-image_d68562";
|
|
292
|
+
$7a33fe9cdec6aaae$export$dc2b0b08d47555 = "react-spectrum-ListViewItem-content_d68562";
|
|
293
|
+
$7a33fe9cdec6aaae$export$5d2adfeb248e654a = "react-spectrum-ListViewItem-description_d68562";
|
|
294
|
+
$7a33fe9cdec6aaae$export$26480389595d4515 = "react-spectrum-ListViewItem-actions_d68562";
|
|
295
|
+
$7a33fe9cdec6aaae$export$58dfda3903289699 = "react-spectrum-ListViewItem-actionmenu_d68562";
|
|
296
|
+
$7a33fe9cdec6aaae$export$39b42a8a24290c17 = "react-spectrum-ListViewItem-parentIndicator_d68562";
|
|
297
|
+
$7a33fe9cdec6aaae$export$1f55b27adf96a61e = "react-spectrum-ListView--compact_d68562";
|
|
298
|
+
$7a33fe9cdec6aaae$export$cbd30c7809acdd81 = "react-spectrum-ListView--spacious_d68562";
|
|
299
|
+
$7a33fe9cdec6aaae$export$a2d35348c0cc9bca = "react-spectrum-ListView--draggable_d68562";
|
|
300
|
+
$7a33fe9cdec6aaae$export$f290f4d471385527 = "react-spectrum-ListViewItem--draggable_d68562";
|
|
301
|
+
$7a33fe9cdec6aaae$export$1b66ee5cd8394caf = "react-spectrum-ListView-centeredWrapper_d68562";
|
|
302
|
+
$7a33fe9cdec6aaae$export$6b3b7792abd9e5f4 = "react-spectrum-ListView-centeredWrapper--loadingMore_d68562";
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
function $d7c07ca2efc5ba02$export$c6bde0c04b033c0e(props) {
|
|
323
|
+
let { item: item , isEmphasized: isEmphasized , dragHooks: dragHooks } = props;
|
|
300
324
|
let cellNode = [
|
|
301
325
|
...item.childNodes
|
|
302
326
|
][0];
|
|
303
|
-
let { state: state } = $
|
|
304
|
-
let { direction: direction } = $
|
|
305
|
-
let rowRef = $
|
|
306
|
-
let cellRef = $
|
|
307
|
-
let { isFocusVisible: isFocusVisibleWithin , focusProps: focusWithinProps } = $
|
|
327
|
+
let { state: state , dragState: dragState , onAction: onAction , isListDraggable: isListDraggable } = $fWI2a$useContext($f85fb77f9d4cbc6c$export$870039b0abfe3de0);
|
|
328
|
+
let { direction: direction } = $fWI2a$useLocale();
|
|
329
|
+
let rowRef = $fWI2a$useRef();
|
|
330
|
+
let cellRef = $fWI2a$useRef();
|
|
331
|
+
let { isFocusVisible: isFocusVisibleWithin , focusProps: focusWithinProps } = $fWI2a$useFocusRing({
|
|
308
332
|
within: true
|
|
309
333
|
});
|
|
310
|
-
let { isFocusVisible: isFocusVisible , focusProps: focusProps } = $
|
|
334
|
+
let { isFocusVisible: isFocusVisible , focusProps: focusProps } = $fWI2a$useFocusRing();
|
|
311
335
|
let allowsInteraction = state.selectionManager.selectionMode !== 'none' || onAction;
|
|
312
336
|
let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);
|
|
313
|
-
let
|
|
337
|
+
let isDraggable = (dragState === null || dragState === void 0 ? void 0 : dragState.isDraggable(item.key)) && !isDisabled;
|
|
338
|
+
let { hoverProps: hoverProps , isHovered: isHovered } = $fWI2a$useHover({
|
|
314
339
|
isDisabled: isDisabled
|
|
315
340
|
});
|
|
316
|
-
let { pressProps: pressProps , isPressed: isPressed } = $
|
|
341
|
+
let { pressProps: pressProps , isPressed: isPressed } = $fWI2a$usePress({
|
|
317
342
|
isDisabled: isDisabled
|
|
318
343
|
});
|
|
319
|
-
let { rowProps: rowProps } = $
|
|
344
|
+
let { rowProps: rowProps } = $fWI2a$useGridRow({
|
|
320
345
|
node: item,
|
|
321
346
|
isVirtualized: true,
|
|
322
347
|
onAction: onAction ? ()=>onAction(item.key)
|
|
323
|
-
: undefined
|
|
348
|
+
: undefined,
|
|
349
|
+
shouldSelectOnPressUp: isListDraggable
|
|
324
350
|
}, state, rowRef);
|
|
325
|
-
let { gridCellProps: gridCellProps } = $
|
|
351
|
+
let { gridCellProps: gridCellProps } = $fWI2a$useGridCell({
|
|
326
352
|
node: cellNode,
|
|
327
353
|
focusMode: 'cell'
|
|
328
354
|
}, state, cellRef);
|
|
329
|
-
|
|
330
|
-
|
|
355
|
+
let draggableItem;
|
|
356
|
+
if (isListDraggable) // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
357
|
+
draggableItem = dragHooks.useDraggableItem({
|
|
358
|
+
key: item.key
|
|
359
|
+
}, dragState);
|
|
360
|
+
const mergedProps = $fWI2a$mergeProps(gridCellProps, hoverProps, focusWithinProps, focusProps);
|
|
361
|
+
let { checkboxProps: checkboxProps } = $fWI2a$useGridSelectionCheckbox({
|
|
331
362
|
...props,
|
|
332
363
|
key: item.key
|
|
333
364
|
}, state);
|
|
365
|
+
let dragButtonRef = $fWI2a$react.useRef();
|
|
366
|
+
let { buttonProps: buttonProps } = $fWI2a$useButton({
|
|
367
|
+
...draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragButtonProps,
|
|
368
|
+
elementType: 'div'
|
|
369
|
+
}, dragButtonRef);
|
|
334
370
|
let chevron = null;
|
|
335
|
-
if (item.props.hasChildItems) chevron = direction === 'ltr' ? /*#__PURE__*/ $
|
|
371
|
+
if (item.props.hasChildItems) chevron = direction === 'ltr' ? /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$spectrumiconsuiChevronRightMedium, {
|
|
336
372
|
"aria-hidden": "true",
|
|
337
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
338
|
-
}) : /*#__PURE__*/ $
|
|
373
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-parentIndicator']
|
|
374
|
+
}) : /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$spectrumiconsuiChevronLeftMedium, {
|
|
339
375
|
"aria-hidden": "true",
|
|
340
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
376
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-parentIndicator']
|
|
341
377
|
});
|
|
342
378
|
let showCheckbox = state.selectionManager.selectionMode !== 'none' && state.selectionManager.selectionBehavior === 'toggle';
|
|
343
379
|
let isSelected = state.selectionManager.isSelected(item.key);
|
|
344
|
-
|
|
345
|
-
|
|
380
|
+
let showDragHandle = isDraggable && (isFocusVisibleWithin || isHovered || isPressed);
|
|
381
|
+
let { visuallyHiddenProps: visuallyHiddenProps } = $fWI2a$useVisuallyHidden();
|
|
382
|
+
return(/*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
383
|
+
...$fWI2a$mergeProps(rowProps, pressProps, isDraggable && (draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps)),
|
|
346
384
|
ref: rowRef
|
|
347
|
-
}, /*#__PURE__*/ $
|
|
348
|
-
className: $
|
|
385
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
386
|
+
className: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'react-spectrum-ListViewItem', {
|
|
349
387
|
'is-active': isPressed,
|
|
350
388
|
'is-focused': isFocusVisibleWithin,
|
|
351
389
|
'focus-ring': isFocusVisible,
|
|
352
390
|
'is-hovered': isHovered,
|
|
353
391
|
'is-selected': isSelected,
|
|
354
392
|
'is-previous-selected': state.selectionManager.isSelected(item.prevKey),
|
|
355
|
-
'react-spectrum-ListViewItem--highlightSelection': state.selectionManager.selectionBehavior === 'replace' && (isSelected || state.selectionManager.isSelected(item.nextKey))
|
|
393
|
+
'react-spectrum-ListViewItem--highlightSelection': state.selectionManager.selectionBehavior === 'replace' && (isSelected || state.selectionManager.isSelected(item.nextKey)),
|
|
394
|
+
'react-spectrum-ListViewItem--draggable': isDraggable
|
|
356
395
|
}),
|
|
357
396
|
ref: cellRef,
|
|
358
397
|
...mergedProps
|
|
359
|
-
}, /*#__PURE__*/ $
|
|
360
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
361
|
-
},
|
|
362
|
-
|
|
398
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Grid, {
|
|
399
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-grid']
|
|
400
|
+
}, isListDraggable && /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
401
|
+
className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-draghandle-container']
|
|
402
|
+
}, isDraggable && /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$FocusRing, {
|
|
403
|
+
focusRingClass: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'focus-ring')
|
|
404
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
405
|
+
...buttonProps,
|
|
406
|
+
className: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'react-spectrum-ListViewItem-draghandle-button'),
|
|
407
|
+
style: !showDragHandle ? {
|
|
408
|
+
...visuallyHiddenProps.style
|
|
409
|
+
} : {
|
|
410
|
+
},
|
|
411
|
+
ref: dragButtonRef,
|
|
412
|
+
draggable: "true"
|
|
413
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$spectrumiconsuiListGripper, null)))), showCheckbox && /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Checkbox, {
|
|
414
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-checkbox'],
|
|
363
415
|
...checkboxProps,
|
|
364
416
|
isEmphasized: isEmphasized
|
|
365
|
-
}), /*#__PURE__*/ $
|
|
417
|
+
}), /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$SlotProvider, {
|
|
366
418
|
slots: {
|
|
367
419
|
content: {
|
|
368
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
420
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-content']
|
|
369
421
|
},
|
|
370
422
|
text: {
|
|
371
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
423
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-content']
|
|
372
424
|
},
|
|
373
425
|
description: {
|
|
374
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
426
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-description']
|
|
375
427
|
},
|
|
376
428
|
icon: {
|
|
377
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
429
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-icon'],
|
|
378
430
|
size: 'M'
|
|
379
431
|
},
|
|
380
432
|
image: {
|
|
381
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
433
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-image']
|
|
382
434
|
},
|
|
383
435
|
link: {
|
|
384
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
436
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-content'],
|
|
385
437
|
isQuiet: true
|
|
386
438
|
},
|
|
387
439
|
actionButton: {
|
|
388
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
440
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-actions'],
|
|
389
441
|
isQuiet: true
|
|
390
442
|
},
|
|
391
443
|
actionGroup: {
|
|
392
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
444
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-actions'],
|
|
393
445
|
isQuiet: true,
|
|
394
446
|
density: 'compact'
|
|
395
447
|
},
|
|
396
448
|
actionMenu: {
|
|
397
|
-
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($
|
|
449
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-actionmenu'],
|
|
398
450
|
isQuiet: true
|
|
399
451
|
}
|
|
400
452
|
}
|
|
401
|
-
}, typeof item.rendered === 'string' ? /*#__PURE__*/ $
|
|
453
|
+
}, typeof item.rendered === 'string' ? /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Content, null, item.rendered) : item.rendered, /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$ClearSlots, null, chevron))))));
|
|
402
454
|
}
|
|
403
455
|
|
|
404
456
|
|
|
@@ -407,8 +459,8 @@ function $671cb2d8e4a495f2$export$c6bde0c04b033c0e(props) {
|
|
|
407
459
|
|
|
408
460
|
|
|
409
461
|
|
|
410
|
-
const $
|
|
411
|
-
const $
|
|
462
|
+
const $f85fb77f9d4cbc6c$export$870039b0abfe3de0 = /*#__PURE__*/ $fWI2a$react.createContext(null);
|
|
463
|
+
const $f85fb77f9d4cbc6c$var$ROW_HEIGHTS = {
|
|
412
464
|
compact: {
|
|
413
465
|
medium: 32,
|
|
414
466
|
large: 40
|
|
@@ -422,18 +474,18 @@ const $7396e6b125d14e03$var$ROW_HEIGHTS = {
|
|
|
422
474
|
large: 60
|
|
423
475
|
}
|
|
424
476
|
};
|
|
425
|
-
function $
|
|
426
|
-
let { scale: scale } = $
|
|
427
|
-
let collator = $
|
|
477
|
+
function $f85fb77f9d4cbc6c$export$bea90da51ec70dea(state, density) {
|
|
478
|
+
let { scale: scale } = $fWI2a$useProvider();
|
|
479
|
+
let collator = $fWI2a$useCollator({
|
|
428
480
|
usage: 'search',
|
|
429
481
|
sensitivity: 'base'
|
|
430
482
|
});
|
|
431
483
|
let isEmpty = state.collection.size === 0;
|
|
432
|
-
let layout = $
|
|
433
|
-
estimatedRowHeight: $
|
|
484
|
+
let layout = $fWI2a$useMemo(()=>new $fWI2a$ListLayout({
|
|
485
|
+
estimatedRowHeight: $f85fb77f9d4cbc6c$var$ROW_HEIGHTS[density][scale],
|
|
434
486
|
padding: 0,
|
|
435
487
|
collator: collator,
|
|
436
|
-
loaderHeight: isEmpty ? null : $
|
|
488
|
+
loaderHeight: isEmpty ? null : $f85fb77f9d4cbc6c$var$ROW_HEIGHTS[density][scale]
|
|
437
489
|
})
|
|
438
490
|
, [
|
|
439
491
|
collator,
|
|
@@ -445,19 +497,22 @@ function $7396e6b125d14e03$export$bea90da51ec70dea(state, density) {
|
|
|
445
497
|
layout.disabledKeys = state.disabledKeys;
|
|
446
498
|
return layout;
|
|
447
499
|
}
|
|
448
|
-
function $
|
|
449
|
-
let { density: density = 'regular' , onLoadMore: onLoadMore , loadingState: loadingState , isQuiet: isQuiet , transitionDuration: transitionDuration = 0 , onAction: onAction } = props;
|
|
450
|
-
let
|
|
451
|
-
let
|
|
452
|
-
|
|
500
|
+
function $f85fb77f9d4cbc6c$var$ListView(props, ref) {
|
|
501
|
+
let { density: density = 'regular' , onLoadMore: onLoadMore , loadingState: loadingState , isQuiet: isQuiet , transitionDuration: transitionDuration = 0 , onAction: onAction , dragHooks: dragHooks } = props;
|
|
502
|
+
let isListDraggable = !!dragHooks;
|
|
503
|
+
let dragHooksProvided = $fWI2a$useRef(isListDraggable);
|
|
504
|
+
if (dragHooksProvided.current !== isListDraggable) console.warn('Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.');
|
|
505
|
+
let domRef = $fWI2a$useDOMRef(ref);
|
|
506
|
+
let { collection: collection } = $fWI2a$useListState(props);
|
|
507
|
+
let formatMessage = $fWI2a$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($8d8b0a0ae222979e$exports)));
|
|
453
508
|
let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
|
|
454
|
-
let { styleProps: styleProps } = $
|
|
455
|
-
let { direction: direction } = $
|
|
456
|
-
let collator = $
|
|
509
|
+
let { styleProps: styleProps } = $fWI2a$useStyleProps(props);
|
|
510
|
+
let { direction: direction } = $fWI2a$useLocale();
|
|
511
|
+
let collator = $fWI2a$useCollator({
|
|
457
512
|
usage: 'search',
|
|
458
513
|
sensitivity: 'base'
|
|
459
514
|
});
|
|
460
|
-
let gridCollection = $
|
|
515
|
+
let gridCollection = $fWI2a$useMemo(()=>new $fWI2a$GridCollection({
|
|
461
516
|
columnCount: 1,
|
|
462
517
|
items: [
|
|
463
518
|
...collection
|
|
@@ -483,14 +538,14 @@ function $7396e6b125d14e03$var$ListView(props, ref) {
|
|
|
483
538
|
, [
|
|
484
539
|
collection
|
|
485
540
|
]);
|
|
486
|
-
let state = $
|
|
541
|
+
let state = $fWI2a$useGridState({
|
|
487
542
|
...props,
|
|
488
543
|
collection: gridCollection,
|
|
489
544
|
focusMode: 'cell',
|
|
490
545
|
selectionBehavior: props.selectionStyle === 'highlight' ? 'replace' : 'toggle'
|
|
491
546
|
});
|
|
492
|
-
let layout = $
|
|
493
|
-
let keyboardDelegate = $
|
|
547
|
+
let layout = $f85fb77f9d4cbc6c$export$bea90da51ec70dea(state, props.density || 'regular');
|
|
548
|
+
let keyboardDelegate = $fWI2a$useMemo(()=>new $fWI2a$GridKeyboardDelegate({
|
|
494
549
|
collection: state.collection,
|
|
495
550
|
disabledKeys: state.disabledKeys,
|
|
496
551
|
ref: domRef,
|
|
@@ -506,7 +561,77 @@ function $7396e6b125d14e03$var$ListView(props, ref) {
|
|
|
506
561
|
direction,
|
|
507
562
|
collator
|
|
508
563
|
]);
|
|
509
|
-
let
|
|
564
|
+
let provider = $fWI2a$useProvider();
|
|
565
|
+
let { checkboxProps: checkboxProps } = $fWI2a$useGridSelectionCheckbox({
|
|
566
|
+
key: null
|
|
567
|
+
}, state);
|
|
568
|
+
let dragState;
|
|
569
|
+
if (isListDraggable) dragState = dragHooks.useDraggableCollectionState({
|
|
570
|
+
collection: state.collection,
|
|
571
|
+
selectionManager: state.selectionManager,
|
|
572
|
+
renderPreview (selectedKeys, draggedKey) {
|
|
573
|
+
let item = state.collection.getItem(draggedKey);
|
|
574
|
+
let itemWidth = domRef.current.offsetWidth;
|
|
575
|
+
let showCheckbox = state.selectionManager.selectionMode !== 'none' && state.selectionManager.selectionBehavior === 'toggle';
|
|
576
|
+
let isSelected = state.selectionManager.isSelected(item.key);
|
|
577
|
+
return(/*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Provider, {
|
|
578
|
+
...provider,
|
|
579
|
+
UNSAFE_className: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'react-spectrum-ListViewItem', 'is-dragging'),
|
|
580
|
+
UNSAFE_style: {
|
|
581
|
+
width: itemWidth,
|
|
582
|
+
paddingInlineStart: 0
|
|
583
|
+
}
|
|
584
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
585
|
+
className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-grid']
|
|
586
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
587
|
+
className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-draghandle-container']
|
|
588
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
589
|
+
className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-draghandle-button']
|
|
590
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$spectrumiconsuiListGripper, null))), showCheckbox && /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Checkbox, {
|
|
591
|
+
isSelected: isSelected,
|
|
592
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-checkbox'],
|
|
593
|
+
isEmphasized: true,
|
|
594
|
+
"aria-label": checkboxProps['aria-label']
|
|
595
|
+
}), /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$SlotProvider, {
|
|
596
|
+
slots: {
|
|
597
|
+
content: {
|
|
598
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-content']
|
|
599
|
+
},
|
|
600
|
+
text: {
|
|
601
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-content']
|
|
602
|
+
},
|
|
603
|
+
description: {
|
|
604
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-description']
|
|
605
|
+
},
|
|
606
|
+
icon: {
|
|
607
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-icon'],
|
|
608
|
+
size: 'M'
|
|
609
|
+
},
|
|
610
|
+
image: {
|
|
611
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-image']
|
|
612
|
+
},
|
|
613
|
+
link: {
|
|
614
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-content'],
|
|
615
|
+
isQuiet: true
|
|
616
|
+
},
|
|
617
|
+
actionButton: {
|
|
618
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-actions'],
|
|
619
|
+
isQuiet: true
|
|
620
|
+
},
|
|
621
|
+
actionGroup: {
|
|
622
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-actions'],
|
|
623
|
+
isQuiet: true,
|
|
624
|
+
density: 'compact'
|
|
625
|
+
},
|
|
626
|
+
actionMenu: {
|
|
627
|
+
UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports))['react-spectrum-ListViewItem-actionmenu'],
|
|
628
|
+
isQuiet: true
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}, typeof item.rendered === 'string' ? /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Content, null, item.rendered) : item.rendered))));
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
let { gridProps: gridProps } = $fWI2a$useGrid({
|
|
510
635
|
...props,
|
|
511
636
|
isVirtualized: true,
|
|
512
637
|
keyboardDelegate: keyboardDelegate
|
|
@@ -515,13 +640,16 @@ function $7396e6b125d14e03$var$ListView(props, ref) {
|
|
|
515
640
|
layout.isLoading = isLoading;
|
|
516
641
|
let focusedKey = state.selectionManager.focusedKey;
|
|
517
642
|
let focusedItem = gridCollection.getItem(state.selectionManager.focusedKey);
|
|
518
|
-
if (focusedItem
|
|
519
|
-
return(/*#__PURE__*/ $
|
|
643
|
+
if ((focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) != null) focusedKey = focusedItem.parentKey;
|
|
644
|
+
return(/*#__PURE__*/ $fWI2a$react.createElement($f85fb77f9d4cbc6c$export$870039b0abfe3de0.Provider, {
|
|
520
645
|
value: {
|
|
521
646
|
state: state,
|
|
522
|
-
keyboardDelegate: keyboardDelegate
|
|
647
|
+
keyboardDelegate: keyboardDelegate,
|
|
648
|
+
dragState: dragState,
|
|
649
|
+
onAction: onAction,
|
|
650
|
+
isListDraggable: isListDraggable
|
|
523
651
|
}
|
|
524
|
-
}, /*#__PURE__*/ $
|
|
652
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$Virtualizer, {
|
|
525
653
|
...gridProps,
|
|
526
654
|
...styleProps,
|
|
527
655
|
isLoading: isLoading,
|
|
@@ -529,46 +657,47 @@ function $7396e6b125d14e03$var$ListView(props, ref) {
|
|
|
529
657
|
ref: domRef,
|
|
530
658
|
focusedKey: focusedKey,
|
|
531
659
|
scrollDirection: "vertical",
|
|
532
|
-
className: $
|
|
533
|
-
'react-spectrum-ListView--quiet': isQuiet
|
|
660
|
+
className: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'react-spectrum-ListView', `react-spectrum-ListView--${density}`, 'react-spectrum-ListView--emphasized', {
|
|
661
|
+
'react-spectrum-ListView--quiet': isQuiet,
|
|
662
|
+
'react-spectrum-ListView--draggable': isListDraggable
|
|
534
663
|
}, styleProps.className),
|
|
535
664
|
layout: layout,
|
|
536
665
|
collection: gridCollection,
|
|
537
666
|
transitionDuration: transitionDuration
|
|
538
667
|
}, (type, item)=>{
|
|
539
|
-
if (type === 'item') return(/*#__PURE__*/ $
|
|
668
|
+
if (type === 'item') return(/*#__PURE__*/ $fWI2a$react.createElement($d7c07ca2efc5ba02$export$c6bde0c04b033c0e, {
|
|
540
669
|
item: item,
|
|
541
|
-
|
|
542
|
-
|
|
670
|
+
isEmphasized: true,
|
|
671
|
+
dragHooks: dragHooks
|
|
543
672
|
}));
|
|
544
|
-
else if (type === 'loader') return(/*#__PURE__*/ $
|
|
673
|
+
else if (type === 'loader') return(/*#__PURE__*/ $fWI2a$react.createElement($f85fb77f9d4cbc6c$var$CenteredWrapper, null, /*#__PURE__*/ $fWI2a$react.createElement($fWI2a$ProgressCircle, {
|
|
545
674
|
isIndeterminate: true,
|
|
546
675
|
"aria-label": state.collection.size > 0 ? formatMessage('loadingMore') : formatMessage('loading')
|
|
547
676
|
})));
|
|
548
677
|
else if (type === 'placeholder') {
|
|
549
678
|
let emptyState = props.renderEmptyState ? props.renderEmptyState() : null;
|
|
550
679
|
if (emptyState == null) return null;
|
|
551
|
-
return(/*#__PURE__*/ $
|
|
680
|
+
return(/*#__PURE__*/ $fWI2a$react.createElement($f85fb77f9d4cbc6c$var$CenteredWrapper, null, emptyState));
|
|
552
681
|
}
|
|
553
682
|
})));
|
|
554
683
|
}
|
|
555
|
-
function $
|
|
556
|
-
let { state: state } = $
|
|
557
|
-
return(/*#__PURE__*/ $
|
|
684
|
+
function $f85fb77f9d4cbc6c$var$CenteredWrapper({ children: children }) {
|
|
685
|
+
let { state: state } = $fWI2a$useContext($f85fb77f9d4cbc6c$export$870039b0abfe3de0);
|
|
686
|
+
return(/*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
558
687
|
role: "row",
|
|
559
688
|
"aria-rowindex": state.collection.size + 1,
|
|
560
|
-
className: $
|
|
689
|
+
className: $fWI2a$classNames((/*@__PURE__*/$parcel$interopDefault($7a33fe9cdec6aaae$exports)), 'react-spectrum-ListView-centeredWrapper', {
|
|
561
690
|
'react-spectrum-ListView-centeredWrapper--loadingMore': state.collection.size > 0
|
|
562
691
|
})
|
|
563
|
-
}, /*#__PURE__*/ $
|
|
692
|
+
}, /*#__PURE__*/ $fWI2a$react.createElement("div", {
|
|
564
693
|
role: "gridcell"
|
|
565
694
|
}, children)));
|
|
566
695
|
}
|
|
567
|
-
const $
|
|
696
|
+
const $f85fb77f9d4cbc6c$export$84d0dd190d551cd1 = /*#__PURE__*/ $fWI2a$react.forwardRef($f85fb77f9d4cbc6c$var$ListView);
|
|
568
697
|
|
|
569
698
|
|
|
570
699
|
|
|
571
700
|
|
|
572
701
|
|
|
573
|
-
export {$
|
|
702
|
+
export {$f85fb77f9d4cbc6c$export$84d0dd190d551cd1 as ListView, $75e4a7b01832b12d$re_export$Item as Item};
|
|
574
703
|
//# sourceMappingURL=module.js.map
|