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