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