@react-aria/dnd 3.0.0-alpha.5 → 3.0.0-alpha.6
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.js +388 -361
- package/dist/main.js.map +1 -1
- package/dist/module.js +382 -355
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/DragManager.ts +21 -0
- package/src/useDrag.ts +12 -1
- package/src/useDraggableItem.ts +2 -2
package/dist/module.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {useRef as $
|
|
2
|
-
import $
|
|
3
|
-
import {useDescription as $
|
|
4
|
-
import {useMessageFormatter as $
|
|
5
|
-
import {announce as $
|
|
6
|
-
import {ariaHideOutside as $
|
|
7
|
-
import {useInteractionModality as $
|
|
1
|
+
import {useRef as $fP8tg$useRef, useState as $fP8tg$useState, useEffect as $fP8tg$useEffect, useCallback as $fP8tg$useCallback} from "react";
|
|
2
|
+
import $fP8tg$reactdom from "react-dom";
|
|
3
|
+
import {useGlobalListeners as $fP8tg$useGlobalListeners, useDescription as $fP8tg$useDescription, useId as $fP8tg$useId, useLayoutEffect as $fP8tg$useLayoutEffect, mergeProps as $fP8tg$mergeProps, getScrollParent as $fP8tg$getScrollParent, isWebKit as $fP8tg$isWebKit, isIOS as $fP8tg$isIOS, chain as $fP8tg$chain} from "@react-aria/utils";
|
|
4
|
+
import {useMessageFormatter as $fP8tg$useMessageFormatter} from "@react-aria/i18n";
|
|
5
|
+
import {announce as $fP8tg$announce} from "@react-aria/live-announcer";
|
|
6
|
+
import {ariaHideOutside as $fP8tg$ariaHideOutside} from "@react-aria/overlays";
|
|
7
|
+
import {useInteractionModality as $fP8tg$useInteractionModality, getInteractionModality as $fP8tg$getInteractionModality, setInteractionModality as $fP8tg$setInteractionModality, useFocus as $fP8tg$useFocus} from "@react-aria/interactions";
|
|
8
8
|
|
|
9
9
|
function $parcel$interopDefault(a) {
|
|
10
10
|
return a && a.__esModule ? a.default : a;
|
|
@@ -12,85 +12,85 @@ function $parcel$interopDefault(a) {
|
|
|
12
12
|
function $parcel$export(e, n, v, s) {
|
|
13
13
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
14
14
|
}
|
|
15
|
-
var $
|
|
15
|
+
var $8253ed7ece74b463$exports = {};
|
|
16
16
|
|
|
17
|
-
$parcel$export($
|
|
17
|
+
$parcel$export($8253ed7ece74b463$exports, "useDrag", () => $8253ed7ece74b463$export$7941f8aafa4b6021);
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
let $
|
|
22
|
-
(function($
|
|
23
|
-
$
|
|
24
|
-
$
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
})($
|
|
21
|
+
let $103790afe9474d1c$export$60b7b4bcf3903d8e;
|
|
22
|
+
(function($103790afe9474d1c$export$60b7b4bcf3903d8e) {
|
|
23
|
+
$103790afe9474d1c$export$60b7b4bcf3903d8e[$103790afe9474d1c$export$60b7b4bcf3903d8e["none"] = 0] = "none";
|
|
24
|
+
$103790afe9474d1c$export$60b7b4bcf3903d8e[$103790afe9474d1c$export$60b7b4bcf3903d8e["cancel"] = 0] = "cancel";
|
|
25
|
+
$103790afe9474d1c$export$60b7b4bcf3903d8e[$103790afe9474d1c$export$60b7b4bcf3903d8e["move"] = 1] = "move";
|
|
26
|
+
$103790afe9474d1c$export$60b7b4bcf3903d8e[$103790afe9474d1c$export$60b7b4bcf3903d8e["copy"] = 2] = "copy";
|
|
27
|
+
$103790afe9474d1c$export$60b7b4bcf3903d8e[$103790afe9474d1c$export$60b7b4bcf3903d8e["link"] = 4] = "link";
|
|
28
|
+
$103790afe9474d1c$export$60b7b4bcf3903d8e[$103790afe9474d1c$export$60b7b4bcf3903d8e["all"] = 7] = "all";
|
|
29
|
+
})($103790afe9474d1c$export$60b7b4bcf3903d8e || ($103790afe9474d1c$export$60b7b4bcf3903d8e = {
|
|
30
30
|
}));
|
|
31
|
-
const $
|
|
32
|
-
...$
|
|
33
|
-
copyMove: $
|
|
34
|
-
copyLink: $
|
|
35
|
-
linkMove: $
|
|
36
|
-
all: $
|
|
37
|
-
uninitialized: $
|
|
31
|
+
const $103790afe9474d1c$export$9bbdfc78cf083e16 = {
|
|
32
|
+
...$103790afe9474d1c$export$60b7b4bcf3903d8e,
|
|
33
|
+
copyMove: $103790afe9474d1c$export$60b7b4bcf3903d8e.copy | $103790afe9474d1c$export$60b7b4bcf3903d8e.move,
|
|
34
|
+
copyLink: $103790afe9474d1c$export$60b7b4bcf3903d8e.copy | $103790afe9474d1c$export$60b7b4bcf3903d8e.link,
|
|
35
|
+
linkMove: $103790afe9474d1c$export$60b7b4bcf3903d8e.link | $103790afe9474d1c$export$60b7b4bcf3903d8e.move,
|
|
36
|
+
all: $103790afe9474d1c$export$60b7b4bcf3903d8e.all,
|
|
37
|
+
uninitialized: $103790afe9474d1c$export$60b7b4bcf3903d8e.all
|
|
38
38
|
};
|
|
39
|
-
const $
|
|
40
|
-
const $
|
|
41
|
-
const $
|
|
39
|
+
const $103790afe9474d1c$export$dd0165308d8bff45 = $103790afe9474d1c$var$invert($103790afe9474d1c$export$9bbdfc78cf083e16);
|
|
40
|
+
const $103790afe9474d1c$export$d7ebf00f36b7a95e = $103790afe9474d1c$var$invert($103790afe9474d1c$export$60b7b4bcf3903d8e);
|
|
41
|
+
const $103790afe9474d1c$export$608ecc6f1b23c35d = {
|
|
42
42
|
none: 'cancel',
|
|
43
43
|
link: 'link',
|
|
44
44
|
copy: 'copy',
|
|
45
45
|
move: 'move'
|
|
46
46
|
};
|
|
47
|
-
const $
|
|
48
|
-
function $
|
|
47
|
+
const $103790afe9474d1c$export$5eacb0769d26d3b2 = $103790afe9474d1c$var$invert($103790afe9474d1c$export$608ecc6f1b23c35d);
|
|
48
|
+
function $103790afe9474d1c$var$invert(object) {
|
|
49
49
|
let res = {
|
|
50
50
|
};
|
|
51
51
|
for(let key in object)res[object[key]] = key;
|
|
52
52
|
return res;
|
|
53
53
|
}
|
|
54
|
-
const $
|
|
54
|
+
const $103790afe9474d1c$export$4a7729b856e9a690 = new Set([
|
|
55
55
|
'text/plain',
|
|
56
56
|
'text/uri-list',
|
|
57
57
|
'text/html'
|
|
58
58
|
]);
|
|
59
|
-
const $
|
|
60
|
-
const $
|
|
59
|
+
const $103790afe9474d1c$export$fd9f9fc120c5402d = 'application/vnd.react-aria.items+json';
|
|
60
|
+
const $103790afe9474d1c$export$f8fc6581787339b3 = 'application/octet-stream';
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
const $
|
|
66
|
-
function $
|
|
67
|
-
let id = $
|
|
68
|
-
$
|
|
65
|
+
const $7252cd45fc48c07c$var$droppableCollectionIds = new WeakMap();
|
|
66
|
+
function $7252cd45fc48c07c$export$b1601eb39394a581(state) {
|
|
67
|
+
let id = $fP8tg$useId();
|
|
68
|
+
$7252cd45fc48c07c$var$droppableCollectionIds.set(state, id);
|
|
69
69
|
return id;
|
|
70
70
|
}
|
|
71
|
-
function $
|
|
72
|
-
let id = $
|
|
71
|
+
function $7252cd45fc48c07c$export$3093291712f09a77(state) {
|
|
72
|
+
let id = $7252cd45fc48c07c$var$droppableCollectionIds.get(state);
|
|
73
73
|
if (!id) throw new Error('Droppable item outside a droppable collection');
|
|
74
74
|
return id;
|
|
75
75
|
}
|
|
76
|
-
function $
|
|
76
|
+
function $7252cd45fc48c07c$export$e1d41611756c6326(items) {
|
|
77
77
|
let types = new Set();
|
|
78
78
|
for (let item of items)for (let type of Object.keys(item))types.add(type);
|
|
79
79
|
return types;
|
|
80
80
|
}
|
|
81
|
-
function $
|
|
81
|
+
function $7252cd45fc48c07c$var$mapModality(modality) {
|
|
82
82
|
if (!modality) modality = 'virtual';
|
|
83
83
|
if (modality === 'pointer') modality = 'virtual';
|
|
84
84
|
if (modality === 'virtual' && 'ontouchstart' in window) modality = 'touch';
|
|
85
85
|
return modality;
|
|
86
86
|
}
|
|
87
|
-
function $
|
|
88
|
-
return $
|
|
87
|
+
function $7252cd45fc48c07c$export$49bac5d6d4b352ea() {
|
|
88
|
+
return $7252cd45fc48c07c$var$mapModality($fP8tg$useInteractionModality());
|
|
89
89
|
}
|
|
90
|
-
function $
|
|
91
|
-
return $
|
|
90
|
+
function $7252cd45fc48c07c$export$1fb2158d224b542c() {
|
|
91
|
+
return $7252cd45fc48c07c$var$mapModality($fP8tg$getInteractionModality());
|
|
92
92
|
}
|
|
93
|
-
function $
|
|
93
|
+
function $7252cd45fc48c07c$export$f9c1490890ddd063(dataTransfer, items) {
|
|
94
94
|
// The data transfer API doesn't support more than one item of a given type at once.
|
|
95
95
|
// In addition, only a small set of types are supported natively for transfer between applications.
|
|
96
96
|
// We allow for both multiple items, as well as multiple representations of a single item.
|
|
@@ -123,7 +123,7 @@ function $8e71d0478f045349$export$f9c1490890ddd063(dataTransfer, items) {
|
|
|
123
123
|
}
|
|
124
124
|
customData.push(dataByType);
|
|
125
125
|
}
|
|
126
|
-
for (let [type, items1] of groupedByType)if ($
|
|
126
|
+
for (let [type, items1] of groupedByType)if ($103790afe9474d1c$export$4a7729b856e9a690.has(type)) {
|
|
127
127
|
// Only one item of a given type can be set on a data transfer.
|
|
128
128
|
// Join all of the items together separated by newlines.
|
|
129
129
|
let data = items1.join('\n');
|
|
@@ -132,10 +132,10 @@ function $8e71d0478f045349$export$f9c1490890ddd063(dataTransfer, items) {
|
|
|
132
132
|
dataTransfer.items.add(items1[0], type);
|
|
133
133
|
if (needsCustomData) {
|
|
134
134
|
let data = JSON.stringify(customData);
|
|
135
|
-
dataTransfer.items.add(data, $
|
|
135
|
+
dataTransfer.items.add(data, $103790afe9474d1c$export$fd9f9fc120c5402d);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
class $
|
|
138
|
+
class $7252cd45fc48c07c$export$7f04ce188c91447c {
|
|
139
139
|
has(type) {
|
|
140
140
|
if (this.includesUnknownTypes) return true;
|
|
141
141
|
return this.types.has(type);
|
|
@@ -143,14 +143,14 @@ class $8e71d0478f045349$export$7f04ce188c91447c {
|
|
|
143
143
|
constructor(dataTransfer){
|
|
144
144
|
this.types = new Set();
|
|
145
145
|
let hasFiles = false;
|
|
146
|
-
for (let item of dataTransfer.items)if (item.type !== $
|
|
146
|
+
for (let item of dataTransfer.items)if (item.type !== $103790afe9474d1c$export$fd9f9fc120c5402d) {
|
|
147
147
|
if (item.kind === 'file') hasFiles = true;
|
|
148
148
|
if (item.type) this.types.add(item.type);
|
|
149
149
|
else // Files with unknown types or extensions that don't map to a known mime type
|
|
150
150
|
// are sometimes exposed as an empty string by the browser. Map to a generic
|
|
151
151
|
// mime type instead. Note that this could also be a directory as there's no
|
|
152
152
|
// way to determine if something is a file or directory until drop.
|
|
153
|
-
this.types.add($
|
|
153
|
+
this.types.add($103790afe9474d1c$export$f8fc6581787339b3);
|
|
154
154
|
}
|
|
155
155
|
// In Safari, when dragging files, the dataTransfer.items list is empty, but dataTransfer.types contains "Files".
|
|
156
156
|
// Unfortunately, this doesn't tell us what types of files the user is dragging, so we need to assume that any
|
|
@@ -158,14 +158,14 @@ class $8e71d0478f045349$export$7f04ce188c91447c {
|
|
|
158
158
|
this.includesUnknownTypes = !hasFiles && dataTransfer.types.includes('Files');
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function $
|
|
161
|
+
function $7252cd45fc48c07c$export$d9e760437831f8b3(dataTransfer) {
|
|
162
162
|
let items = [];
|
|
163
163
|
// If our custom drag type is available, use that. This is a JSON serialized
|
|
164
164
|
// representation of all items in the drag, set when there are multiple items
|
|
165
165
|
// of the same type, or an individual item has multiple representations.
|
|
166
166
|
let hasCustomType = false;
|
|
167
|
-
if (dataTransfer.types.includes($
|
|
168
|
-
let data = dataTransfer.getData($
|
|
167
|
+
if (dataTransfer.types.includes($103790afe9474d1c$export$fd9f9fc120c5402d)) try {
|
|
168
|
+
let data = dataTransfer.getData($103790afe9474d1c$export$fd9f9fc120c5402d);
|
|
169
169
|
let parsed = JSON.parse(data);
|
|
170
170
|
for (let item of parsed)items.push({
|
|
171
171
|
kind: 'text',
|
|
@@ -183,7 +183,7 @@ function $8e71d0478f045349$export$d9e760437831f8b3(dataTransfer) {
|
|
|
183
183
|
if (item.kind === 'string') // The data for all formats must be read here because the data transfer gets
|
|
184
184
|
// cleared out after the event handler finishes. If the item has an empty string
|
|
185
185
|
// as a type, the mime type is unknown. Map to a generic mime type instead.
|
|
186
|
-
stringItems.set(item.type || $
|
|
186
|
+
stringItems.set(item.type || $103790afe9474d1c$export$f8fc6581787339b3, dataTransfer.getData(item.type));
|
|
187
187
|
else if (item.kind === 'file') {
|
|
188
188
|
// Despite the name, webkitGetAsEntry is also implemented in Firefox and Edge.
|
|
189
189
|
// In the future, we may use getAsFileSystemHandle instead, but that's currently
|
|
@@ -191,10 +191,10 @@ function $8e71d0478f045349$export$d9e760437831f8b3(dataTransfer) {
|
|
|
191
191
|
if (typeof item.webkitGetAsEntry === 'function') {
|
|
192
192
|
let entry = item.webkitGetAsEntry();
|
|
193
193
|
if (!entry) continue;
|
|
194
|
-
if (entry.isFile) items.push($
|
|
195
|
-
else if (entry.isDirectory) items.push($
|
|
194
|
+
if (entry.isFile) items.push($7252cd45fc48c07c$var$createFileItem(item.getAsFile()));
|
|
195
|
+
else if (entry.isDirectory) items.push($7252cd45fc48c07c$var$createDirectoryItem(entry));
|
|
196
196
|
} else // Assume it's a file.
|
|
197
|
-
items.push($
|
|
197
|
+
items.push($7252cd45fc48c07c$var$createFileItem(item.getAsFile()));
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
// All string items are different representations of the same item. There's no way to have
|
|
@@ -207,7 +207,7 @@ function $8e71d0478f045349$export$d9e760437831f8b3(dataTransfer) {
|
|
|
207
207
|
}
|
|
208
208
|
return items;
|
|
209
209
|
}
|
|
210
|
-
function $
|
|
210
|
+
function $7252cd45fc48c07c$var$blobToString(blob) {
|
|
211
211
|
if (typeof blob.text === 'function') return blob.text();
|
|
212
212
|
// Safari doesn't have the Blob#text() method yet...
|
|
213
213
|
return new Promise((resolve, reject)=>{
|
|
@@ -219,24 +219,24 @@ function $8e71d0478f045349$var$blobToString(blob) {
|
|
|
219
219
|
reader.readAsText(blob);
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
function $
|
|
222
|
+
function $7252cd45fc48c07c$var$createFileItem(file) {
|
|
223
223
|
return {
|
|
224
224
|
kind: 'file',
|
|
225
|
-
type: file.type || $
|
|
225
|
+
type: file.type || $103790afe9474d1c$export$f8fc6581787339b3,
|
|
226
226
|
name: file.name,
|
|
227
|
-
getText: ()=>$
|
|
227
|
+
getText: ()=>$7252cd45fc48c07c$var$blobToString(file)
|
|
228
228
|
,
|
|
229
229
|
getFile: ()=>Promise.resolve(file)
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function $
|
|
232
|
+
function $7252cd45fc48c07c$var$createDirectoryItem(entry) {
|
|
233
233
|
return {
|
|
234
234
|
kind: 'directory',
|
|
235
235
|
name: entry.name,
|
|
236
|
-
getEntries: ()=>$
|
|
236
|
+
getEntries: ()=>$7252cd45fc48c07c$var$getEntries(entry)
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
async function* $
|
|
239
|
+
async function* $7252cd45fc48c07c$var$getEntries(item) {
|
|
240
240
|
let reader = item.createReader();
|
|
241
241
|
// We must call readEntries repeatedly because there may be a limit to the
|
|
242
242
|
// number of entries that are returned at once.
|
|
@@ -247,63 +247,69 @@ async function* $8e71d0478f045349$var$getEntries(item) {
|
|
|
247
247
|
});
|
|
248
248
|
for (let entry of entries){
|
|
249
249
|
if (entry.isFile) {
|
|
250
|
-
let file = await $
|
|
251
|
-
yield $
|
|
252
|
-
} else if (entry.isDirectory) yield $
|
|
250
|
+
let file = await $7252cd45fc48c07c$var$getEntryFile(entry);
|
|
251
|
+
yield $7252cd45fc48c07c$var$createFileItem(file);
|
|
252
|
+
} else if (entry.isDirectory) yield $7252cd45fc48c07c$var$createDirectoryItem(entry);
|
|
253
253
|
}
|
|
254
254
|
}while (entries.length > 0)
|
|
255
255
|
}
|
|
256
|
-
function $
|
|
256
|
+
function $7252cd45fc48c07c$var$getEntryFile(entry) {
|
|
257
257
|
return new Promise((resolve, reject)=>entry.file(resolve, reject)
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
|
|
262
262
|
|
|
263
|
-
let $
|
|
264
|
-
let $
|
|
265
|
-
let $
|
|
266
|
-
let $
|
|
267
|
-
function $
|
|
268
|
-
$
|
|
269
|
-
$
|
|
263
|
+
let $67560de7c78cb232$var$dropTargets = new Map();
|
|
264
|
+
let $67560de7c78cb232$var$dropItems = new Map();
|
|
265
|
+
let $67560de7c78cb232$var$dragSession = null;
|
|
266
|
+
let $67560de7c78cb232$var$subscriptions = new Set();
|
|
267
|
+
function $67560de7c78cb232$export$c28d9fb4a54e471a(target) {
|
|
268
|
+
$67560de7c78cb232$var$dropTargets.set(target.element, target);
|
|
269
|
+
$67560de7c78cb232$var$dragSession === null || $67560de7c78cb232$var$dragSession === void 0 ? void 0 : $67560de7c78cb232$var$dragSession.updateValidDropTargets();
|
|
270
270
|
return ()=>{
|
|
271
|
-
$
|
|
272
|
-
$
|
|
271
|
+
$67560de7c78cb232$var$dropTargets.delete(target.element);
|
|
272
|
+
$67560de7c78cb232$var$dragSession === null || $67560de7c78cb232$var$dragSession === void 0 ? void 0 : $67560de7c78cb232$var$dragSession.updateValidDropTargets();
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
function $
|
|
276
|
-
$
|
|
275
|
+
function $67560de7c78cb232$export$aef80212ac99c003(item) {
|
|
276
|
+
$67560de7c78cb232$var$dropItems.set(item.element, item);
|
|
277
277
|
return ()=>{
|
|
278
|
-
$
|
|
278
|
+
$67560de7c78cb232$var$dropItems.delete(item.element);
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function $
|
|
282
|
-
if ($
|
|
283
|
-
$
|
|
281
|
+
function $67560de7c78cb232$export$549dbcf8649bf3b2(target, formatMessage) {
|
|
282
|
+
if ($67560de7c78cb232$var$dragSession) throw new Error('Cannot begin dragging while already dragging');
|
|
283
|
+
$67560de7c78cb232$var$dragSession = new $67560de7c78cb232$var$DragSession(target, formatMessage);
|
|
284
284
|
requestAnimationFrame(()=>{
|
|
285
|
-
$
|
|
286
|
-
if ($
|
|
285
|
+
$67560de7c78cb232$var$dragSession.setup();
|
|
286
|
+
if ($7252cd45fc48c07c$export$1fb2158d224b542c() === 'keyboard') $67560de7c78cb232$var$dragSession.next();
|
|
287
287
|
});
|
|
288
|
-
for (let cb of $
|
|
288
|
+
for (let cb of $67560de7c78cb232$var$subscriptions)cb();
|
|
289
289
|
}
|
|
290
|
-
function $
|
|
291
|
-
let [session, setSession] = $
|
|
292
|
-
$
|
|
293
|
-
let cb = ()=>setSession($
|
|
290
|
+
function $67560de7c78cb232$export$418e185dd3f1b968() {
|
|
291
|
+
let [session, setSession] = $fP8tg$useState($67560de7c78cb232$var$dragSession);
|
|
292
|
+
$fP8tg$useEffect(()=>{
|
|
293
|
+
let cb = ()=>setSession($67560de7c78cb232$var$dragSession)
|
|
294
294
|
;
|
|
295
|
-
$
|
|
295
|
+
$67560de7c78cb232$var$subscriptions.add(cb);
|
|
296
296
|
return ()=>{
|
|
297
|
-
$
|
|
297
|
+
$67560de7c78cb232$var$subscriptions.delete(cb);
|
|
298
298
|
};
|
|
299
299
|
}, []);
|
|
300
300
|
return session;
|
|
301
301
|
}
|
|
302
|
-
function $
|
|
303
|
-
$
|
|
304
|
-
for (let cb of $
|
|
302
|
+
function $67560de7c78cb232$var$endDragging() {
|
|
303
|
+
$67560de7c78cb232$var$dragSession = null;
|
|
304
|
+
for (let cb of $67560de7c78cb232$var$subscriptions)cb();
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
function $67560de7c78cb232$export$7454aff2e161f241(element) {
|
|
307
|
+
for (let target of $67560de7c78cb232$var$dropTargets.keys()){
|
|
308
|
+
if (target.contains(element)) return true;
|
|
309
|
+
}
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
const $67560de7c78cb232$var$CANCELED_EVENTS = [
|
|
307
313
|
'pointerdown',
|
|
308
314
|
'pointermove',
|
|
309
315
|
'pointerenter',
|
|
@@ -325,34 +331,34 @@ const $3ff2dbc10bf5c0b8$var$CANCELED_EVENTS = [
|
|
|
325
331
|
'focusin',
|
|
326
332
|
'focusout'
|
|
327
333
|
];
|
|
328
|
-
const $
|
|
334
|
+
const $67560de7c78cb232$var$CLICK_EVENTS = [
|
|
329
335
|
'pointerup',
|
|
330
336
|
'mouseup',
|
|
331
337
|
'touchend'
|
|
332
338
|
];
|
|
333
|
-
const $
|
|
339
|
+
const $67560de7c78cb232$var$MESSAGES = {
|
|
334
340
|
keyboard: 'dragStartedKeyboard',
|
|
335
341
|
touch: 'dragStartedTouch',
|
|
336
342
|
virtual: 'dragStartedVirtual'
|
|
337
343
|
};
|
|
338
|
-
class $
|
|
344
|
+
class $67560de7c78cb232$var$DragSession {
|
|
339
345
|
setup() {
|
|
340
346
|
document.addEventListener('keydown', this.onKeyDown, true);
|
|
341
347
|
window.addEventListener('focus', this.onFocus, true);
|
|
342
348
|
window.addEventListener('blur', this.onBlur, true);
|
|
343
349
|
document.addEventListener('click', this.onClick, true);
|
|
344
|
-
for (let event of $
|
|
350
|
+
for (let event of $67560de7c78cb232$var$CANCELED_EVENTS)document.addEventListener(event, this.cancelEvent, true);
|
|
345
351
|
this.mutationObserver = new MutationObserver(()=>this.updateValidDropTargets()
|
|
346
352
|
);
|
|
347
353
|
this.updateValidDropTargets();
|
|
348
|
-
$
|
|
354
|
+
$fP8tg$announce(this.formatMessage($67560de7c78cb232$var$MESSAGES[$7252cd45fc48c07c$export$1fb2158d224b542c()]));
|
|
349
355
|
}
|
|
350
356
|
teardown() {
|
|
351
357
|
document.removeEventListener('keydown', this.onKeyDown, true);
|
|
352
358
|
window.removeEventListener('focus', this.onFocus, true);
|
|
353
359
|
window.removeEventListener('blur', this.onBlur, true);
|
|
354
360
|
document.removeEventListener('click', this.onClick, true);
|
|
355
|
-
for (let event of $
|
|
361
|
+
for (let event of $67560de7c78cb232$var$CANCELED_EVENTS)document.removeEventListener(event, this.cancelEvent, true);
|
|
356
362
|
this.mutationObserver.disconnect();
|
|
357
363
|
this.restoreAriaHidden();
|
|
358
364
|
if (this.mutationImmediate) clearImmediate(this.mutationImmediate);
|
|
@@ -387,7 +393,7 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
387
393
|
else this.dragTarget.element.focus();
|
|
388
394
|
return;
|
|
389
395
|
}
|
|
390
|
-
let item = $
|
|
396
|
+
let item = $67560de7c78cb232$var$dropItems.get(e.target);
|
|
391
397
|
this.setCurrentDropTarget(dropTarget, item);
|
|
392
398
|
}
|
|
393
399
|
onBlur(e) {
|
|
@@ -409,14 +415,17 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
409
415
|
let dropTarget = this.validDropTargets.find((target)=>target.element.contains(e.target)
|
|
410
416
|
);
|
|
411
417
|
if (dropTarget) {
|
|
412
|
-
let item = $
|
|
418
|
+
let item = $67560de7c78cb232$var$dropItems.get(e.target);
|
|
413
419
|
this.setCurrentDropTarget(dropTarget, item);
|
|
414
420
|
this.drop(item);
|
|
415
421
|
}
|
|
416
422
|
}
|
|
417
423
|
cancelEvent(e) {
|
|
424
|
+
var ref;
|
|
425
|
+
// Allow focusin and focusout on the drag target so focus ring works properly.
|
|
426
|
+
if ((e.type === 'focusin' || e.type === 'focusout') && e.target === ((ref = this.dragTarget) === null || ref === void 0 ? void 0 : ref.element)) return;
|
|
418
427
|
// Allow default for events that might cancel a click event
|
|
419
|
-
if (!$
|
|
428
|
+
if (!$67560de7c78cb232$var$CLICK_EVENTS.includes(e.type)) e.preventDefault();
|
|
420
429
|
e.stopPropagation();
|
|
421
430
|
e.stopImmediatePropagation();
|
|
422
431
|
}
|
|
@@ -424,12 +433,12 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
424
433
|
if (!this.mutationObserver) return;
|
|
425
434
|
this.mutationObserver.disconnect();
|
|
426
435
|
if (this.restoreAriaHidden) this.restoreAriaHidden();
|
|
427
|
-
this.validDropTargets = $
|
|
436
|
+
this.validDropTargets = $67560de7c78cb232$var$findValidDropTargets(this.dragTarget);
|
|
428
437
|
if (this.currentDropTarget && !this.validDropTargets.includes(this.currentDropTarget)) this.setCurrentDropTarget(this.validDropTargets[0]);
|
|
429
438
|
// Find valid drop items within collections
|
|
430
|
-
let types = $
|
|
439
|
+
let types = $7252cd45fc48c07c$export$e1d41611756c6326(this.dragTarget.items);
|
|
431
440
|
let validDropItems = [
|
|
432
|
-
...$
|
|
441
|
+
...$67560de7c78cb232$var$dropItems.values()
|
|
433
442
|
].filter((item)=>{
|
|
434
443
|
if (typeof item.getDropOperation === 'function') return item.getDropOperation(types, this.dragTarget.allowedDropOperations) !== 'cancel';
|
|
435
444
|
return true;
|
|
@@ -439,7 +448,7 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
439
448
|
let visibleDropTargets = this.validDropTargets.filter((target)=>!validDropItems.some((item)=>target.element.contains(item.element)
|
|
440
449
|
)
|
|
441
450
|
);
|
|
442
|
-
this.restoreAriaHidden = $
|
|
451
|
+
this.restoreAriaHidden = $fP8tg$ariaHideOutside([
|
|
443
452
|
this.dragTarget.element,
|
|
444
453
|
...validDropItems.map((item)=>item.element
|
|
445
454
|
),
|
|
@@ -533,13 +542,18 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
533
542
|
dropOperation: this.dropOperation
|
|
534
543
|
});
|
|
535
544
|
}
|
|
545
|
+
// Blur and re-focus the drop target so that the focus ring appears.
|
|
546
|
+
if (this.currentDropTarget) {
|
|
547
|
+
this.currentDropTarget.element.blur();
|
|
548
|
+
this.currentDropTarget.element.focus();
|
|
549
|
+
}
|
|
536
550
|
this.setCurrentDropTarget(null);
|
|
537
|
-
$
|
|
551
|
+
$67560de7c78cb232$var$endDragging();
|
|
538
552
|
}
|
|
539
553
|
cancel() {
|
|
540
554
|
this.end();
|
|
541
555
|
if (!this.dragTarget.element.closest('[aria-hidden="true"]')) this.dragTarget.element.focus();
|
|
542
|
-
$
|
|
556
|
+
$fP8tg$announce(this.formatMessage('dropCanceled'));
|
|
543
557
|
}
|
|
544
558
|
drop(item1) {
|
|
545
559
|
if (!this.currentDropTarget) {
|
|
@@ -547,10 +561,10 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
547
561
|
return;
|
|
548
562
|
}
|
|
549
563
|
if (typeof (item1 === null || item1 === void 0 ? void 0 : item1.getDropOperation) === 'function') {
|
|
550
|
-
let types = $
|
|
564
|
+
let types = $7252cd45fc48c07c$export$e1d41611756c6326(this.dragTarget.items);
|
|
551
565
|
this.dropOperation = item1.getDropOperation(types, this.dragTarget.allowedDropOperations);
|
|
552
566
|
} else if (typeof this.currentDropTarget.getDropOperation === 'function') {
|
|
553
|
-
let types = $
|
|
567
|
+
let types = $7252cd45fc48c07c$export$e1d41611756c6326(this.dragTarget.items);
|
|
554
568
|
this.dropOperation = this.currentDropTarget.getDropOperation(types, this.dragTarget.allowedDropOperations);
|
|
555
569
|
} else // TODO: show menu ??
|
|
556
570
|
this.dropOperation = this.dragTarget.allowedDropOperations[0];
|
|
@@ -571,7 +585,7 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
571
585
|
}, item1 === null || item1 === void 0 ? void 0 : item1.target);
|
|
572
586
|
}
|
|
573
587
|
this.end();
|
|
574
|
-
$
|
|
588
|
+
$fP8tg$announce(this.formatMessage('dropComplete'));
|
|
575
589
|
}
|
|
576
590
|
activate() {
|
|
577
591
|
if (this.currentDropTarget && typeof this.currentDropTarget.onDropActivate === 'function') {
|
|
@@ -593,10 +607,10 @@ class $3ff2dbc10bf5c0b8$var$DragSession {
|
|
|
593
607
|
this.cancelEvent = this.cancelEvent.bind(this);
|
|
594
608
|
}
|
|
595
609
|
}
|
|
596
|
-
function $
|
|
597
|
-
let types = $
|
|
610
|
+
function $67560de7c78cb232$var$findValidDropTargets(options) {
|
|
611
|
+
let types = $7252cd45fc48c07c$export$e1d41611756c6326(options.items);
|
|
598
612
|
return [
|
|
599
|
-
...$
|
|
613
|
+
...$67560de7c78cb232$var$dropTargets.values()
|
|
600
614
|
].filter((target)=>{
|
|
601
615
|
if (target.element.closest('[aria-hidden="true"]')) return false;
|
|
602
616
|
if (typeof target.getDropOperation === 'function') return target.getDropOperation(types, options.allowedDropOperations) !== 'cancel';
|
|
@@ -606,178 +620,178 @@ function $3ff2dbc10bf5c0b8$var$findValidDropTargets(options) {
|
|
|
606
620
|
|
|
607
621
|
|
|
608
622
|
|
|
609
|
-
var $
|
|
610
|
-
var $
|
|
611
|
-
$
|
|
623
|
+
var $c530af5bd0e7e6c6$exports = {};
|
|
624
|
+
var $7dfcac1a0c98c789$exports = {};
|
|
625
|
+
$7dfcac1a0c98c789$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"اضغط Enter لبدء السحب.\",\"dragDescriptionTouch\":\"اضغط مرتين لبدء السحب.\",\"dragDescriptionVirtual\":\"انقر لبدء السحب.\",\"dragItem\":\"اسحب {itemText}\",\"dragSelectedItems\":\"اسحب {count, plural, one {# عنصر محدد} other {# عناصر محددة}}\",\"dragStartedKeyboard\":\"بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.\",\"dragStartedTouch\":\"بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.\",\"dragStartedVirtual\":\"بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.\",\"dropCanceled\":\"تم إلغاء الإفلات.\",\"dropComplete\":\"اكتمل الإفلات.\",\"dropDescriptionKeyboard\":\"اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.\",\"dropDescriptionTouch\":\"اضغط مرتين للإفلات.\",\"dropDescriptionVirtual\":\"انقر للإفلات.\",\"dropIndicator\":\"مؤشر الإفلات\",\"dropOnItem\":\"إفلات {itemText}\",\"dropOnRoot\":\"الإفلات\",\"endDragKeyboard\":\"السحب. اضغط Enter لإلغاء السحب.\",\"endDragTouch\":\"السحب. اضغط مرتين لإلغاء السحب.\",\"endDragVirtual\":\"السحب. انقر لإلغاء السحب.\",\"insertAfter\":\"أدخل بعد {itemText}\",\"insertBefore\":\"أدخل قبل {itemText}\",\"insertBetween\":\"أدخل بين {beforeItemText} و {afterItemText}\"}");
|
|
612
626
|
|
|
613
627
|
|
|
614
|
-
var $
|
|
615
|
-
$
|
|
628
|
+
var $f311c26671219eca$exports = {};
|
|
629
|
+
$f311c26671219eca$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Натиснете „Enter“, за да започнете да плъзгате.\",\"dragDescriptionTouch\":\"Натиснете двукратно, за да започнете да плъзгате.\",\"dragDescriptionVirtual\":\"Щракнете, за да започнете да плъзгате.\",\"dragItem\":\"Плъзни {itemText}\",\"dragSelectedItems\":\"Плъзни {count, plural, one {# избран елемент} other {# избрани елемента}}\",\"dragStartedKeyboard\":\"Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.\",\"dragStartedTouch\":\"Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.\",\"dragStartedVirtual\":\"Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.\",\"dropCanceled\":\"Пускането е отменено.\",\"dropComplete\":\"Пускането е завършено.\",\"dropDescriptionKeyboard\":\"Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.\",\"dropDescriptionTouch\":\"Натиснете двукратно за пускане.\",\"dropDescriptionVirtual\":\"Щракнете за пускане.\",\"dropIndicator\":\"индикатор за пускане\",\"dropOnItem\":\"Пусни върху {itemText}\",\"dropOnRoot\":\"Пусни върху\",\"endDragKeyboard\":\"Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.\",\"endDragTouch\":\"Плъзгане. Натиснете двукратно за отмяна на плъзгането.\",\"endDragVirtual\":\"Плъзгане. Щракнете за отмяна.\",\"insertAfter\":\"Вмъкни след {itemText}\",\"insertBefore\":\"Вмъкни преди {itemText}\",\"insertBetween\":\"Вмъкни между {beforeItemText} и {afterItemText}\"}");
|
|
616
630
|
|
|
617
631
|
|
|
618
|
-
var $
|
|
619
|
-
$
|
|
632
|
+
var $1aa4ade186550f72$exports = {};
|
|
633
|
+
$1aa4ade186550f72$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Stisknutím klávesy Enter začnete s přetahováním.\",\"dragDescriptionTouch\":\"Poklepáním začnete s přetahováním.\",\"dragDescriptionVirtual\":\"Kliknutím začnete s přetahováním.\",\"dragItem\":\"Přetáhnout {itemText}\",\"dragSelectedItems\":\"Přetáhnout {count, plural, one {# vybranou položku} few {# vybrané položky} other {# vybraných položek}}\",\"dragStartedKeyboard\":\"Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.\",\"dragStartedTouch\":\"Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.\",\"dragStartedVirtual\":\"Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.\",\"dropCanceled\":\"Přetažení bylo zrušeno.\",\"dropComplete\":\"Přetažení bylo dokončeno.\",\"dropDescriptionKeyboard\":\"Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.\",\"dropDescriptionTouch\":\"Poklepáním přetažení dokončete.\",\"dropDescriptionVirtual\":\"Kliknutím objekt přetáhněte.\",\"dropIndicator\":\"indikátor přetažení\",\"dropOnItem\":\"Přetáhnout na {itemText}\",\"dropOnRoot\":\"Přetáhnout na\",\"endDragKeyboard\":\"Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.\",\"endDragTouch\":\"Probíhá přetahování. Poklepáním přetažení zrušíte.\",\"endDragVirtual\":\"Probíhá přetahování. Kliknutím přetažení zrušíte.\",\"insertAfter\":\"Vložit za {itemText}\",\"insertBefore\":\"Vložit před {itemText}\",\"insertBetween\":\"Vložit mezi {beforeItemText} a {afterItemText}\"}");
|
|
620
634
|
|
|
621
635
|
|
|
622
|
-
var $
|
|
623
|
-
$
|
|
636
|
+
var $b6b0ea1b94a7633c$exports = {};
|
|
637
|
+
$b6b0ea1b94a7633c$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Tryk på Enter for at starte med at trække.\",\"dragDescriptionTouch\":\"Dobbelttryk for at starte med at trække.\",\"dragDescriptionVirtual\":\"Klik for at starte med at trække.\",\"dragItem\":\"Træk {itemText}\",\"dragSelectedItems\":\"Træk {count, plural, one {# valgt element} other {# valgte elementer}}\",\"dragStartedKeyboard\":\"Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.\",\"dragStartedTouch\":\"Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.\",\"dragStartedVirtual\":\"Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.\",\"dropCanceled\":\"Slip annulleret.\",\"dropComplete\":\"Slip fuldført.\",\"dropDescriptionKeyboard\":\"Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.\",\"dropDescriptionTouch\":\"Dobbelttryk for at slippe.\",\"dropDescriptionVirtual\":\"Klik for at slippe.\",\"dropIndicator\":\"slip-indikator\",\"dropOnItem\":\"Slip på {itemText}\",\"dropOnRoot\":\"Slip på\",\"endDragKeyboard\":\"Trækning. Tryk på enter for at annullere træk.\",\"endDragTouch\":\"Trækning. Dobbelttryk for at annullere træk.\",\"endDragVirtual\":\"Trækning. Klik for at annullere trækning.\",\"insertAfter\":\"Indsæt efter {itemText}\",\"insertBefore\":\"Indsæt før {itemText}\",\"insertBetween\":\"Indsæt mellem {beforeItemText} og {afterItemText}\"}");
|
|
624
638
|
|
|
625
639
|
|
|
626
|
-
var $
|
|
627
|
-
$
|
|
640
|
+
var $d10e4f47c744ad52$exports = {};
|
|
641
|
+
$d10e4f47c744ad52$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.\",\"dragDescriptionTouch\":\"Tippen Sie doppelt, um den Ziehvorgang zu starten.\",\"dragDescriptionVirtual\":\"Zum Starten des Ziehvorgangs klicken.\",\"dragItem\":\"{itemText} ziehen\",\"dragSelectedItems\":\"{count, plural, one {# ausgewähltes Objekt} other {# ausgewählte Objekte}} ziehen\",\"dragStartedKeyboard\":\"Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.\",\"dragStartedTouch\":\"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.\",\"dragStartedVirtual\":\"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.\",\"dropCanceled\":\"Ablegen abgebrochen.\",\"dropComplete\":\"Ablegen abgeschlossen.\",\"dropDescriptionKeyboard\":\"Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.\",\"dropDescriptionTouch\":\"Tippen Sie doppelt, um das Objekt abzulegen.\",\"dropDescriptionVirtual\":\"Zum Ablegen klicken.\",\"dropIndicator\":\"Ablegeanzeiger\",\"dropOnItem\":\"Auf {itemText} ablegen\",\"dropOnRoot\":\"Ablegen auf\",\"endDragKeyboard\":\"Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.\",\"endDragTouch\":\"Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.\",\"endDragVirtual\":\"Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.\",\"insertAfter\":\"Nach {itemText} einfügen\",\"insertBefore\":\"Vor {itemText} einfügen\",\"insertBetween\":\"Zwischen {beforeItemText} und {afterItemText} einfügen\"}");
|
|
628
642
|
|
|
629
643
|
|
|
630
|
-
var $
|
|
631
|
-
$
|
|
644
|
+
var $b3d2bb9abce688ab$exports = {};
|
|
645
|
+
$b3d2bb9abce688ab$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Πατήστε Enter για έναρξη της μεταφοράς.\",\"dragDescriptionTouch\":\"Πατήστε δύο φορές για έναρξη της μεταφοράς.\",\"dragDescriptionVirtual\":\"Κάντε κλικ για να ξεκινήσετε τη μεταφορά.\",\"dragItem\":\"Μεταφορά {itemText}\",\"dragSelectedItems\":\"Μεταφορά σε {count, plural, one {# επιλεγμένο στοιχείο} other {# επιλεγμένα στοιχεία}}\",\"dragStartedKeyboard\":\"Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.\",\"dragStartedTouch\":\"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.\",\"dragStartedVirtual\":\"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.\",\"dropCanceled\":\"Η απόθεση ακυρώθηκε.\",\"dropComplete\":\"Η απόθεση ολοκληρώθηκε.\",\"dropDescriptionKeyboard\":\"Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.\",\"dropDescriptionTouch\":\"Πατήστε δύο φορές για απόθεση.\",\"dropDescriptionVirtual\":\"Κάντε κλικ για απόθεση.\",\"dropIndicator\":\"δείκτης απόθεσης\",\"dropOnItem\":\"Απόθεση σε {itemText}\",\"dropOnRoot\":\"Απόθεση σε\",\"endDragKeyboard\":\"Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.\",\"endDragTouch\":\"Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.\",\"endDragVirtual\":\"Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.\",\"insertAfter\":\"Εισαγωγή μετά από {itemText}\",\"insertBefore\":\"Εισαγωγή πριν από {itemText}\",\"insertBetween\":\"Εισαγωγή μεταξύ {beforeItemText} και {afterItemText}\"}");
|
|
632
646
|
|
|
633
647
|
|
|
634
|
-
var $
|
|
635
|
-
$
|
|
648
|
+
var $f9b46437e610cca1$exports = {};
|
|
649
|
+
$f9b46437e610cca1$exports = JSON.parse("{\"dragItem\":\"Drag {itemText}\",\"dragSelectedItems\":\"Drag {count, plural, one {# selected item} other {# selected items}}\",\"dragDescriptionKeyboard\":\"Press Enter to start dragging.\",\"dragDescriptionTouch\":\"Double tap to start dragging.\",\"dragDescriptionVirtual\":\"Click to start dragging.\",\"dragStartedKeyboard\":\"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.\",\"dragStartedTouch\":\"Started dragging. Navigate to a drop target, then double tap to drop.\",\"dragStartedVirtual\":\"Started dragging. Navigate to a drop target, then click or press Enter to drop.\",\"endDragKeyboard\":\"Dragging. Press Enter to cancel drag.\",\"endDragTouch\":\"Dragging. Double tap to cancel drag.\",\"endDragVirtual\":\"Dragging. Click to cancel drag.\",\"dropDescriptionKeyboard\":\"Press Enter to drop. Press Escape to cancel drag.\",\"dropDescriptionTouch\":\"Double tap to drop.\",\"dropDescriptionVirtual\":\"Click to drop.\",\"dropCanceled\":\"Drop canceled.\",\"dropComplete\":\"Drop complete.\",\"dropIndicator\":\"drop indicator\",\"dropOnRoot\":\"Drop on\",\"dropOnItem\":\"Drop on {itemText}\",\"insertBefore\":\"Insert before {itemText}\",\"insertBetween\":\"Insert between {beforeItemText} and {afterItemText}\",\"insertAfter\":\"Insert after {itemText}\"}");
|
|
636
650
|
|
|
637
651
|
|
|
638
|
-
var $
|
|
639
|
-
$
|
|
652
|
+
var $204b5c01bd3acf26$exports = {};
|
|
653
|
+
$204b5c01bd3acf26$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Pulse Intro para empezar a arrastrar.\",\"dragDescriptionTouch\":\"Pulse dos veces para iniciar el arrastre.\",\"dragDescriptionVirtual\":\"Haga clic para iniciar el arrastre.\",\"dragItem\":\"Arrastrar {itemText}\",\"dragSelectedItems\":\"Arrastrar {count, plural, one {# elemento seleccionado} other {# elementos seleccionados}}\",\"dragStartedKeyboard\":\"Se ha empezado a arrastrar. Pulse el tabulador para ir al destino de colocación y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.\",\"dragStartedTouch\":\"Se ha empezado a arrastrar. Vaya al destino de colocación y, a continuación, pulse dos veces para soltar.\",\"dragStartedVirtual\":\"Se ha empezado a arrastrar. Vaya al destino de colocación y, a continuación, haga clic o pulse Intro para soltar.\",\"dropCanceled\":\"Se ha cancelado la colocación.\",\"dropComplete\":\"Colocación finalizada.\",\"dropDescriptionKeyboard\":\"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.\",\"dropDescriptionTouch\":\"Pulse dos veces para soltar.\",\"dropDescriptionVirtual\":\"Haga clic para soltar.\",\"dropIndicator\":\"indicador de colocación\",\"dropOnItem\":\"Soltar en {itemText}\",\"dropOnRoot\":\"Soltar en\",\"endDragKeyboard\":\"Arrastrando. Pulse Intro para cancelar el arrastre.\",\"endDragTouch\":\"Arrastrando. Pulse dos veces para cancelar el arrastre.\",\"endDragVirtual\":\"Arrastrando. Haga clic para cancelar el arrastre.\",\"insertAfter\":\"Insertar después de {itemText}\",\"insertBefore\":\"Insertar antes de {itemText}\",\"insertBetween\":\"Insertar entre {beforeItemText} y {afterItemText}\"}");
|
|
640
654
|
|
|
641
655
|
|
|
642
|
-
var $
|
|
643
|
-
$
|
|
656
|
+
var $110bdd83348ecbc0$exports = {};
|
|
657
|
+
$110bdd83348ecbc0$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Lohistamise alustamiseks vajutage klahvi Enter.\",\"dragDescriptionTouch\":\"Topeltpuudutage lohistamise alustamiseks.\",\"dragDescriptionVirtual\":\"Klõpsake lohistamise alustamiseks.\",\"dragItem\":\"Lohista {itemText}\",\"dragSelectedItems\":\"Lohista {count, plural, one {# valitud üksust} other {# valitud üksust}}\",\"dragStartedKeyboard\":\"Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.\",\"dragStartedTouch\":\"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.\",\"dragStartedVirtual\":\"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.\",\"dropCanceled\":\"Lohistamisest loobuti.\",\"dropComplete\":\"Lohistamine on tehtud.\",\"dropDescriptionKeyboard\":\"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.\",\"dropDescriptionTouch\":\"Kukutamiseks topeltpuudutage.\",\"dropDescriptionVirtual\":\"Kukutamiseks klõpsake.\",\"dropIndicator\":\"lohistamise indikaator\",\"dropOnItem\":\"Kukuta asukohta {itemText}\",\"dropOnRoot\":\"Kukuta asukohta\",\"endDragKeyboard\":\"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.\",\"endDragTouch\":\"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.\",\"endDragVirtual\":\"Lohistamine. Lohistamisest loobumiseks klõpsake.\",\"insertAfter\":\"Sisesta {itemText} järele\",\"insertBefore\":\"Sisesta {itemText} ette\",\"insertBetween\":\"Sisesta {beforeItemText} ja {afterItemText} vahele\"}");
|
|
644
658
|
|
|
645
659
|
|
|
646
|
-
var $
|
|
647
|
-
$
|
|
660
|
+
var $87d3ccd5e347c7cc$exports = {};
|
|
661
|
+
$87d3ccd5e347c7cc$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Aloita vetäminen painamalla Enter-näppäintä.\",\"dragDescriptionTouch\":\"Aloita vetäminen kaksoisnapauttamalla.\",\"dragDescriptionVirtual\":\"Aloita vetäminen napsauttamalla.\",\"dragItem\":\"Vedä kohdetta {itemText}\",\"dragSelectedItems\":\"Vedä {count, plural, one {# valittua kohdetta} other {# valittua kohdetta}}\",\"dragStartedKeyboard\":\"Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.\",\"dragStartedTouch\":\"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.\",\"dragStartedVirtual\":\"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.\",\"dropCanceled\":\"Pudotus peruutettu.\",\"dropComplete\":\"Pudotus suoritettu.\",\"dropDescriptionKeyboard\":\"Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.\",\"dropDescriptionTouch\":\"Pudota kaksoisnapauttamalla.\",\"dropDescriptionVirtual\":\"Pudota napsauttamalla.\",\"dropIndicator\":\"pudotuksen ilmaisin\",\"dropOnItem\":\"Pudota kohteeseen {itemText}\",\"dropOnRoot\":\"Pudota kohteeseen\",\"endDragKeyboard\":\"Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.\",\"endDragTouch\":\"Vedetään. Peruuta vetäminen kaksoisnapauttamalla.\",\"endDragVirtual\":\"Vedetään. Peruuta vetäminen napsauttamalla.\",\"insertAfter\":\"Lisää kohteen {itemText} jälkeen\",\"insertBefore\":\"Lisää ennen kohdetta {itemText}\",\"insertBetween\":\"Lisää kohteiden {beforeItemText} ja {afterItemText} väliin\"}");
|
|
648
662
|
|
|
649
663
|
|
|
650
|
-
var $
|
|
651
|
-
$
|
|
664
|
+
var $a5de891427686596$exports = {};
|
|
665
|
+
$a5de891427686596$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Appuyez sur Entrée pour commencer le déplacement.\",\"dragDescriptionTouch\":\"Touchez deux fois pour commencer le déplacement.\",\"dragDescriptionVirtual\":\"Cliquez pour commencer le déplacement.\",\"dragItem\":\"Déplacer {itemText}\",\"dragSelectedItems\":\"Déplacer {count, plural, one {# élément sélectionné} other {# éléments sélectionnés}}\",\"dragStartedKeyboard\":\"Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.\",\"dragStartedTouch\":\"Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.\",\"dragStartedVirtual\":\"Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.\",\"dropCanceled\":\"Dépôt annulé.\",\"dropComplete\":\"Dépôt terminé.\",\"dropDescriptionKeyboard\":\"Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.\",\"dropDescriptionTouch\":\"Touchez deux fois pour déposer.\",\"dropDescriptionVirtual\":\"Cliquez pour déposer.\",\"dropIndicator\":\"indicateur de dépôt\",\"dropOnItem\":\"Déposer sur {itemText}\",\"dropOnRoot\":\"Déposer sur\",\"endDragKeyboard\":\"Déplacement. Appuyez sur Entrée pour annuler le déplacement.\",\"endDragTouch\":\"Déplacement. Touchez deux fois pour annuler le déplacement.\",\"endDragVirtual\":\"Déplacement. Cliquez pour annuler le déplacement.\",\"insertAfter\":\"Insérer après {itemText}\",\"insertBefore\":\"Insérer avant {itemText}\",\"insertBetween\":\"Insérer entre {beforeItemText} et {afterItemText}\"}");
|
|
652
666
|
|
|
653
667
|
|
|
654
|
-
var $
|
|
655
|
-
$
|
|
668
|
+
var $ad7f4c66d85b4494$exports = {};
|
|
669
|
+
$ad7f4c66d85b4494$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"הקש על Enter כדי להתחיל לגרור.\",\"dragDescriptionTouch\":\"הקש פעמיים כדי להתחיל בגרירה.\",\"dragDescriptionVirtual\":\"לחץ כדי להתחיל לגרור.\",\"dragItem\":\"גרור את {itemText}\",\"dragSelectedItems\":\"גרור {count, plural, one {פריט נבחר #} other {# פריטים שנבחרו}}\",\"dragStartedKeyboard\":\"התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.\",\"dragStartedTouch\":\"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.\",\"dragStartedVirtual\":\"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.\",\"dropCanceled\":\"השחרור בוטל.\",\"dropComplete\":\"השחרור הושלם.\",\"dropDescriptionKeyboard\":\"הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.\",\"dropDescriptionTouch\":\"הקש פעמיים כדי לשחרר.\",\"dropDescriptionVirtual\":\"לחץ כדי לשחרר.\",\"dropIndicator\":\"מחוון שחרור\",\"dropOnItem\":\"שחרר על {itemText}\",\"dropOnRoot\":\"שחרר על\",\"endDragKeyboard\":\"גורר. הקש על Enter כדי לבטל את הגרירה.\",\"endDragTouch\":\"גורר. הקש פעמיים כדי לבטל את הגרירה.\",\"endDragVirtual\":\"גורר. לחץ כדי לבטל את הגרירה.\",\"insertAfter\":\"הוסף אחרי {itemText}\",\"insertBefore\":\"הוסף לפני {itemText}\",\"insertBetween\":\"הוסף בין {beforeItemText} לבין {afterItemText}\"}");
|
|
656
670
|
|
|
657
671
|
|
|
658
|
-
var $
|
|
659
|
-
$
|
|
672
|
+
var $4aa59f3c6a796cae$exports = {};
|
|
673
|
+
$4aa59f3c6a796cae$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Pritisnite Enter da biste počeli povlačiti.\",\"dragDescriptionTouch\":\"Dvaput dodirnite da biste počeli povlačiti.\",\"dragDescriptionVirtual\":\"Kliknite da biste počeli povlačiti.\",\"dragItem\":\"Povucite stavku {itemText}\",\"dragSelectedItems\":\"Povucite {count, plural, one {# odabranu stavku} other {ovoliko odabranih stavki: #}}\",\"dragStartedKeyboard\":\"Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.\",\"dragStartedTouch\":\"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.\",\"dragStartedVirtual\":\"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.\",\"dropCanceled\":\"Povlačenje je prekinuto.\",\"dropComplete\":\"Ispuštanje je dovršeno.\",\"dropDescriptionKeyboard\":\"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.\",\"dropDescriptionTouch\":\"Dvaput dodirnite da biste ispustili stavku.\",\"dropDescriptionVirtual\":\"Kliknite da biste ispustili stavku.\",\"dropIndicator\":\"pokazatelj ispuštanja\",\"dropOnItem\":\"Ispustite na stavku {itemText}\",\"dropOnRoot\":\"Ispustite na\",\"endDragKeyboard\":\"Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.\",\"endDragTouch\":\"Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.\",\"endDragVirtual\":\"Povlačenje. Kliknite da biste prekinuli povlačenje.\",\"insertAfter\":\"Umetnite iza stavke {itemText}\",\"insertBefore\":\"Ispustite ispred stavke {itemText}\",\"insertBetween\":\"Umetnite između stavki {beforeItemText} i {afterItemText}\"}");
|
|
660
674
|
|
|
661
675
|
|
|
662
|
-
var $
|
|
663
|
-
$
|
|
676
|
+
var $d8d3646556c40586$exports = {};
|
|
677
|
+
$d8d3646556c40586$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Nyomja le az Enter billentyűt a húzás megkezdéséhez.\",\"dragDescriptionTouch\":\"Koppintson duplán a húzás megkezdéséhez.\",\"dragDescriptionVirtual\":\"Kattintson a húzás megkezdéséhez.\",\"dragItem\":\"{itemText} húzása\",\"dragSelectedItems\":\"{count, plural, one {# kijelölt elem} other {# kijelölt elem}} húzása\",\"dragStartedKeyboard\":\"Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.\",\"dragStartedTouch\":\"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.\",\"dragStartedVirtual\":\"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.\",\"dropCanceled\":\"Elengedés megszakítva.\",\"dropComplete\":\"Elengedés teljesítve.\",\"dropDescriptionKeyboard\":\"Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.\",\"dropDescriptionTouch\":\"Koppintson duplán az elengedéshez.\",\"dropDescriptionVirtual\":\"Kattintson az elengedéshez.\",\"dropIndicator\":\"elengedésjelző\",\"dropOnItem\":\"Elengedés erre: {itemText}\",\"dropOnRoot\":\"Elengedés erre:\",\"endDragKeyboard\":\"Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.\",\"endDragTouch\":\"Húzás folyamatban. Koppintson duplán a húzás megszakításához.\",\"endDragVirtual\":\"Húzás folyamatban. Kattintson a húzás megszakításához.\",\"insertAfter\":\"Beszúrás {itemText} után\",\"insertBefore\":\"Beszúrás {itemText} elé\",\"insertBetween\":\"Beszúrás {beforeItemText} és {afterItemText} közé\"}");
|
|
664
678
|
|
|
665
679
|
|
|
666
|
-
var $
|
|
667
|
-
$
|
|
680
|
+
var $982d558b45395246$exports = {};
|
|
681
|
+
$982d558b45395246$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Premi Invio per iniziare a trascinare.\",\"dragDescriptionTouch\":\"Tocca due volte per iniziare a trascinare.\",\"dragDescriptionVirtual\":\"Fai clic per iniziare a trascinare.\",\"dragItem\":\"Trascina {itemText}\",\"dragSelectedItems\":\"Trascina {count, plural, one {# altro elemento selezionato} other {# altri elementi selezionati}}\",\"dragStartedKeyboard\":\"Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.\",\"dragStartedTouch\":\"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.\",\"dragStartedVirtual\":\"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.\",\"dropCanceled\":\"Rilascio annullato.\",\"dropComplete\":\"Rilascio completato.\",\"dropDescriptionKeyboard\":\"Premi Invio per rilasciare. Premi Esc per annullare.\",\"dropDescriptionTouch\":\"Tocca due volte per rilasciare.\",\"dropDescriptionVirtual\":\"Fai clic per rilasciare.\",\"dropIndicator\":\"indicatore di rilascio\",\"dropOnItem\":\"Rilascia su {itemText}\",\"dropOnRoot\":\"Rilascia su\",\"endDragKeyboard\":\"Trascinamento. Premi Invio per annullare.\",\"endDragTouch\":\"Trascinamento. Tocca due volte per annullare.\",\"endDragVirtual\":\"Trascinamento. Fai clic per annullare.\",\"insertAfter\":\"Inserisci dopo {itemText}\",\"insertBefore\":\"Inserisci prima di {itemText}\",\"insertBetween\":\"Inserisci tra {beforeItemText} e {afterItemText}\"}");
|
|
668
682
|
|
|
669
683
|
|
|
670
|
-
var $
|
|
671
|
-
$
|
|
684
|
+
var $6a0cf387b9de036c$exports = {};
|
|
685
|
+
$6a0cf387b9de036c$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Enter キーを押してドラッグを開始してください。\",\"dragDescriptionTouch\":\"ダブルタップしてドラッグを開始します。\",\"dragDescriptionVirtual\":\"クリックしてドラッグを開始します。\",\"dragItem\":\"{itemText} をドラッグ\",\"dragSelectedItems\":\"{count, plural, one {# 個の選択項目} other {# 個の選択項目}} をドラッグ\",\"dragStartedKeyboard\":\"ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。\",\"dragStartedTouch\":\"ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。\",\"dragStartedVirtual\":\"ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。\",\"dropCanceled\":\"ドロップがキャンセルされました。\",\"dropComplete\":\"ドロップが完了しました。\",\"dropDescriptionKeyboard\":\"Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。\",\"dropDescriptionTouch\":\"ダブルタップしてドロップします。\",\"dropDescriptionVirtual\":\"クリックしてドロップします。\",\"dropIndicator\":\"ドロップインジケーター\",\"dropOnItem\":\"{itemText} にドロップ\",\"dropOnRoot\":\"ドロップ場所\",\"endDragKeyboard\":\"ドラッグしています。Enter キーを押してドラッグをキャンセルします。\",\"endDragTouch\":\"ドラッグしています。ダブルタップしてドラッグをキャンセルします。\",\"endDragVirtual\":\"ドラッグしています。クリックしてドラッグをキャンセルします。\",\"insertAfter\":\"{itemText} の後に挿入\",\"insertBefore\":\"{itemText} の前に挿入\",\"insertBetween\":\"{beforeItemText} と {afterItemText} の間に挿入\"}");
|
|
672
686
|
|
|
673
687
|
|
|
674
|
-
var $
|
|
675
|
-
$
|
|
688
|
+
var $a97fefa2956f4bcb$exports = {};
|
|
689
|
+
$a97fefa2956f4bcb$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"드래그를 시작하려면 Enter를 누르세요.\",\"dragDescriptionTouch\":\"드래그를 시작하려면 더블 탭하세요.\",\"dragDescriptionVirtual\":\"드래그를 시작하려면 클릭하세요.\",\"dragItem\":\"{itemText} 드래그\",\"dragSelectedItems\":\"{count, plural, one {#개 선택 항목} other {#개 선택 항목}} 드래그\",\"dragStartedKeyboard\":\"드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.\",\"dragStartedTouch\":\"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.\",\"dragStartedVirtual\":\"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.\",\"dropCanceled\":\"드롭이 취소되었습니다.\",\"dropComplete\":\"드롭이 완료되었습니다.\",\"dropDescriptionKeyboard\":\"드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.\",\"dropDescriptionTouch\":\"더블 탭하여 드롭하세요.\",\"dropDescriptionVirtual\":\"드롭하려면 클릭하세요.\",\"dropIndicator\":\"드롭 표시기\",\"dropOnItem\":\"{itemText}에 드롭\",\"dropOnRoot\":\"드롭 대상\",\"endDragKeyboard\":\"드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.\",\"endDragTouch\":\"드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.\",\"endDragVirtual\":\"드래그 중입니다. 드래그를 취소하려면 클릭하세요.\",\"insertAfter\":\"{itemText} 이후에 삽입\",\"insertBefore\":\"{itemText} 이전에 삽입\",\"insertBetween\":\"{beforeItemText} 및 {afterItemText} 사이에 삽입\"}");
|
|
676
690
|
|
|
677
691
|
|
|
678
|
-
var $
|
|
679
|
-
$
|
|
692
|
+
var $5fb5837f94e1c150$exports = {};
|
|
693
|
+
$5fb5837f94e1c150$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Paspauskite „Enter“, kad pradėtumėte vilkti.\",\"dragDescriptionTouch\":\"Palieskite dukart, kad pradėtumėte vilkti.\",\"dragDescriptionVirtual\":\"Spustelėkite, kad pradėtumėte vilkti.\",\"dragItem\":\"Vilkti {itemText}\",\"dragSelectedItems\":\"Vilkti {count, plural, one {# pasirinktą elementą} other {# pasirinktus elementus}}\",\"dragStartedKeyboard\":\"Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.\",\"dragStartedTouch\":\"Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.\",\"dragStartedVirtual\":\"Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.\",\"dropCanceled\":\"Numetimas atšauktas.\",\"dropComplete\":\"Numesta.\",\"dropDescriptionKeyboard\":\"Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.\",\"dropDescriptionTouch\":\"Palieskite dukart, kad numestumėte.\",\"dropDescriptionVirtual\":\"Spustelėkite, kad numestumėte.\",\"dropIndicator\":\"numetimo indikatorius\",\"dropOnItem\":\"Numesti ant {itemText}\",\"dropOnRoot\":\"Numesti ant\",\"endDragKeyboard\":\"Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.\",\"endDragTouch\":\"Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.\",\"endDragVirtual\":\"Velkama. Spustelėkite, kad atšauktumėte vilkimą.\",\"insertAfter\":\"Įterpti po {itemText}\",\"insertBefore\":\"Įterpti prieš {itemText}\",\"insertBetween\":\"Įterpti tarp {beforeItemText} ir {afterItemText}\"}");
|
|
680
694
|
|
|
681
695
|
|
|
682
|
-
var $
|
|
683
|
-
$
|
|
696
|
+
var $5b2e5709864cc922$exports = {};
|
|
697
|
+
$5b2e5709864cc922$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Nospiediet Enter, lai sāktu vilkšanu.\",\"dragDescriptionTouch\":\"Veiciet dubultskārienu, lai sāktu vilkšanu.\",\"dragDescriptionVirtual\":\"Noklikšķiniet, lai sāktu vilkšanu.\",\"dragItem\":\"Velciet {itemText}\",\"dragSelectedItems\":\"Velciet {count, plural, one {# atlasīto vienumu} other {# atlasītos vienumus}}\",\"dragStartedKeyboard\":\"Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.\",\"dragStartedTouch\":\"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.\",\"dragStartedVirtual\":\"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.\",\"dropCanceled\":\"Nomešana atcelta.\",\"dropComplete\":\"Nomešana pabeigta.\",\"dropDescriptionKeyboard\":\"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.\",\"dropDescriptionTouch\":\"Veiciet dubultskārienu, lai nomestu.\",\"dropDescriptionVirtual\":\"Noklikšķiniet, lai nomestu.\",\"dropIndicator\":\"nomešanas indikators\",\"dropOnItem\":\"Nometiet uz {itemText}\",\"dropOnRoot\":\"Nometiet uz\",\"endDragKeyboard\":\"Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.\",\"endDragTouch\":\"Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.\",\"endDragVirtual\":\"Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.\",\"insertAfter\":\"Ievietojiet pēc {itemText}\",\"insertBefore\":\"Ievietojiet pirms {itemText}\",\"insertBetween\":\"Ievietojiet starp {beforeItemText} un {afterItemText}\"}");
|
|
684
698
|
|
|
685
699
|
|
|
686
|
-
var $
|
|
687
|
-
$
|
|
700
|
+
var $ee15bb8efb18cc69$exports = {};
|
|
701
|
+
$ee15bb8efb18cc69$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Trykk på Enter for å begynne å dra.\",\"dragDescriptionTouch\":\"Dobbelttrykk for å begynne å dra.\",\"dragDescriptionVirtual\":\"Klikk for å begynne å dra.\",\"dragItem\":\"Dra {itemText}\",\"dragSelectedItems\":\"Dra {count, plural, one {# merket element} other {# merkede elementer}}\",\"dragStartedKeyboard\":\"Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.\",\"dragStartedTouch\":\"Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.\",\"dragStartedVirtual\":\"Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.\",\"dropCanceled\":\"Avbrøt slipping.\",\"dropComplete\":\"Slippingen er fullført.\",\"dropDescriptionKeyboard\":\"Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.\",\"dropDescriptionTouch\":\"Dobbelttrykk for å slippe.\",\"dropDescriptionVirtual\":\"Klikk for å slippe.\",\"dropIndicator\":\"slippeindikator\",\"dropOnItem\":\"Slipp på {itemText}\",\"dropOnRoot\":\"Slipp på\",\"endDragKeyboard\":\"Drar. Trykk på Enter hvis du vil avbryte.\",\"endDragTouch\":\"Drar. Dobbelttrykk hvis du vil avbryte.\",\"endDragVirtual\":\"Drar. Klikk hvis du vil avbryte.\",\"insertAfter\":\"Sett inn etter {itemText}\",\"insertBefore\":\"Sett inn før {itemText}\",\"insertBetween\":\"Sett inn mellom {beforeItemText} og {afterItemText}\"}");
|
|
688
702
|
|
|
689
703
|
|
|
690
|
-
var $
|
|
691
|
-
$
|
|
704
|
+
var $1daf2d4602e26ac4$exports = {};
|
|
705
|
+
$1daf2d4602e26ac4$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Druk op Enter om te slepen.\",\"dragDescriptionTouch\":\"Dubbeltik om te slepen.\",\"dragDescriptionVirtual\":\"Klik om met slepen te starten.\",\"dragItem\":\"{itemText} slepen\",\"dragSelectedItems\":\"{count, plural, one {# geselecteerd item} other {# geselecteerde items}} slepen\",\"dragStartedKeyboard\":\"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.\",\"dragStartedTouch\":\"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.\",\"dragStartedVirtual\":\"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.\",\"dropCanceled\":\"Neerzetten geannuleerd.\",\"dropComplete\":\"Neerzetten voltooid.\",\"dropDescriptionKeyboard\":\"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.\",\"dropDescriptionTouch\":\"Dubbeltik om neer te zetten.\",\"dropDescriptionVirtual\":\"Klik om neer te zetten.\",\"dropIndicator\":\"aanwijzer voor neerzetten\",\"dropOnItem\":\"Neerzetten op {itemText}\",\"dropOnRoot\":\"Neerzetten op\",\"endDragKeyboard\":\"Bezig met slepen. Druk op Enter om te annuleren.\",\"endDragTouch\":\"Bezig met slepen. Dubbeltik om te annuleren.\",\"endDragVirtual\":\"Bezig met slepen. Klik om te annuleren.\",\"insertAfter\":\"Plaatsen na {itemText}\",\"insertBefore\":\"Plaatsen vóór {itemText}\",\"insertBetween\":\"Plaatsen tussen {beforeItemText} en {afterItemText}\"}");
|
|
692
706
|
|
|
693
707
|
|
|
694
|
-
var $
|
|
695
|
-
$
|
|
708
|
+
var $7115429b0f60511f$exports = {};
|
|
709
|
+
$7115429b0f60511f$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Naciśnij Enter, aby rozpocząć przeciąganie.\",\"dragDescriptionTouch\":\"Dotknij dwukrotnie, aby rozpocząć przeciąganie.\",\"dragDescriptionVirtual\":\"Kliknij, aby rozpocząć przeciąganie.\",\"dragItem\":\"Przeciągnij {itemText}\",\"dragSelectedItems\":\"Przeciągnij {count, plural, one {# wybrany element} other {# wybranych elementów}}\",\"dragStartedKeyboard\":\"Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.\",\"dragStartedTouch\":\"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F\",\"dragStartedVirtual\":\"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.\",\"dropCanceled\":\"Anulowano upuszczenie.\",\"dropComplete\":\"Zakończono upuszczanie.\",\"dropDescriptionKeyboard\":\"Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.\",\"dropDescriptionTouch\":\"Dotknij dwukrotnie, aby upuścić.\",\"dropDescriptionVirtual\":\"Kliknij, aby upuścić.\",\"dropIndicator\":\"wskaźnik upuszczenia\",\"dropOnItem\":\"Upuść na {itemText}\",\"dropOnRoot\":\"Upuść\",\"endDragKeyboard\":\"Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.\",\"endDragTouch\":\"Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.\",\"endDragVirtual\":\"Przeciąganie. Kliknij, aby anulować przeciąganie.\",\"insertAfter\":\"Umieść za {itemText}\",\"insertBefore\":\"Umieść przed {itemText}\",\"insertBetween\":\"Umieść między {beforeItemText} i {afterItemText}\"}");
|
|
696
710
|
|
|
697
711
|
|
|
698
|
-
var $
|
|
699
|
-
$
|
|
712
|
+
var $5edd453ae5d4a8bc$exports = {};
|
|
713
|
+
$5edd453ae5d4a8bc$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Pressione Enter para começar a arrastar.\",\"dragDescriptionTouch\":\"Toque duas vezes para começar a arrastar.\",\"dragDescriptionVirtual\":\"Clique para começar a arrastar.\",\"dragItem\":\"Arrastar {itemText}\",\"dragSelectedItems\":\"Arrastar {count, plural, one {# item selecionado} other {# itens selecionados}}\",\"dragStartedKeyboard\":\"Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.\",\"dragStartedTouch\":\"Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.\",\"dragStartedVirtual\":\"Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.\",\"dropCanceled\":\"Liberação cancelada.\",\"dropComplete\":\"Liberação concluída.\",\"dropDescriptionKeyboard\":\"Pressione Enter para soltar. Pressione Escape para cancelar.\",\"dropDescriptionTouch\":\"Toque duas vezes para soltar.\",\"dropDescriptionVirtual\":\"Clique para soltar.\",\"dropIndicator\":\"indicador de liberação\",\"dropOnItem\":\"Soltar em {itemText}\",\"dropOnRoot\":\"Soltar\",\"endDragKeyboard\":\"Arrastando. Pressione Enter para cancelar.\",\"endDragTouch\":\"Arrastando. Toque duas vezes para cancelar.\",\"endDragVirtual\":\"Arrastando. Clique para cancelar.\",\"insertAfter\":\"Inserir após {itemText}\",\"insertBefore\":\"Inserir antes de {itemText}\",\"insertBetween\":\"Inserir entre {beforeItemText} e {afterItemText}\"}");
|
|
700
714
|
|
|
701
715
|
|
|
702
|
-
var $
|
|
703
|
-
$
|
|
716
|
+
var $5f431994f708535e$exports = {};
|
|
717
|
+
$5f431994f708535e$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Prima Enter para iniciar o arrasto.\",\"dragDescriptionTouch\":\"Faça duplo toque para começar a arrastar.\",\"dragDescriptionVirtual\":\"Clique para iniciar o arrasto.\",\"dragItem\":\"Arrastar {itemText}\",\"dragSelectedItems\":\"Arrastar {count, plural, one {# item selecionado} outro {# itens selecionados}}\",\"dragStartedKeyboard\":\"Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.\",\"dragStartedTouch\":\"Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.\",\"dragStartedVirtual\":\"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.\",\"dropCanceled\":\"Largar cancelado.\",\"dropComplete\":\"Largar completo.\",\"dropDescriptionKeyboard\":\"Prima Enter para largar. Prima Escape para cancelar o arrasto.\",\"dropDescriptionTouch\":\"Faça duplo toque para largar.\",\"dropDescriptionVirtual\":\"Clique para largar.\",\"dropIndicator\":\"Indicador de largar\",\"dropOnItem\":\"Largar em {itemText}\",\"dropOnRoot\":\"Largar em\",\"endDragKeyboard\":\"A arrastar. Prima Enter para cancelar o arrasto.\",\"endDragTouch\":\"A arrastar. Faça duplo toque para cancelar o arrasto.\",\"endDragVirtual\":\"A arrastar. Clique para cancelar o arrasto.\",\"insertAfter\":\"Inserir depois de {itemText}\",\"insertBefore\":\"Inserir antes de {itemText}\",\"insertBetween\":\"Inserir entre {beforeItemText} e {afterItemText}\"}");
|
|
704
718
|
|
|
705
719
|
|
|
706
|
-
var $
|
|
707
|
-
$
|
|
720
|
+
var $107b5e2e45e971f1$exports = {};
|
|
721
|
+
$107b5e2e45e971f1$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Apăsați pe Enter pentru a începe glisarea.\",\"dragDescriptionTouch\":\"Atingeți de două ori pentru a începe să glisați.\",\"dragDescriptionVirtual\":\"Faceți clic pentru a începe glisarea.\",\"dragItem\":\"Glisați {itemText}\",\"dragSelectedItems\":\"Glisați {count, plural, one {# element selectat} other {# elemente selectate}}\",\"dragStartedKeyboard\":\"A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.\",\"dragStartedTouch\":\"A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.\",\"dragStartedVirtual\":\"A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.\",\"dropCanceled\":\"Fixare anulată.\",\"dropComplete\":\"Fixare finalizată.\",\"dropDescriptionKeyboard\":\"Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.\",\"dropDescriptionTouch\":\"Atingeți de două ori pentru a fixa.\",\"dropDescriptionVirtual\":\"Faceți clic pentru a fixa.\",\"dropIndicator\":\"indicator de fixare\",\"dropOnItem\":\"Fixați pe {itemText}\",\"dropOnRoot\":\"Fixare pe\",\"endDragKeyboard\":\"Se glisează. Apăsați pe Enter pentru a anula glisarea.\",\"endDragTouch\":\"Se glisează. Atingeți de două ori pentru a anula glisarea.\",\"endDragVirtual\":\"Se glisează. Faceți clic pentru a anula glisarea.\",\"insertAfter\":\"Inserați după {itemText}\",\"insertBefore\":\"Inserați înainte de {itemText}\",\"insertBetween\":\"Inserați între {beforeItemText} și {afterItemText}\"}");
|
|
708
722
|
|
|
709
723
|
|
|
710
|
-
var $
|
|
711
|
-
$
|
|
724
|
+
var $d4b9c2f01c1892f7$exports = {};
|
|
725
|
+
$d4b9c2f01c1892f7$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Нажмите клавишу Enter для начала перетаскивания.\",\"dragDescriptionTouch\":\"Дважды нажмите для начала перетаскивания.\",\"dragDescriptionVirtual\":\"Щелкните для начала перетаскивания.\",\"dragItem\":\"Перетащить {itemText}\",\"dragSelectedItems\":\"Перетащить {count, plural, one {# выбранный элемент} other {# выбранных элем}}\",\"dragStartedKeyboard\":\"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.\",\"dragStartedTouch\":\"Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.\",\"dragStartedVirtual\":\"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.\",\"dropCanceled\":\"Перетаскивание отменено.\",\"dropComplete\":\"Перетаскивание завершено.\",\"dropDescriptionKeyboard\":\"Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.\",\"dropDescriptionTouch\":\"Дважды нажмите, чтобы применить перетаскивание.\",\"dropDescriptionVirtual\":\"Щелкните, чтобы применить перетаскивание.\",\"dropIndicator\":\"индикатор перетаскивания\",\"dropOnItem\":\"Перетащить на {itemText}\",\"dropOnRoot\":\"Перетащить на\",\"endDragKeyboard\":\"Перетаскивание. Нажмите клавишу Enter для отмены.\",\"endDragTouch\":\"Перетаскивание. Дважды нажмите для отмены.\",\"endDragVirtual\":\"Перетаскивание. Щелкните для отмены.\",\"insertAfter\":\"Вставить после {itemText}\",\"insertBefore\":\"Вставить перед {itemText}\",\"insertBetween\":\"Вставить между {beforeItemText} и {afterItemText}\"}");
|
|
712
726
|
|
|
713
727
|
|
|
714
|
-
var $
|
|
715
|
-
$
|
|
728
|
+
var $dbdc1942894e83e4$exports = {};
|
|
729
|
+
$dbdc1942894e83e4$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Stlačením klávesu Enter začnete presúvanie.\",\"dragDescriptionTouch\":\"Dvojitým kliknutím začnete presúvanie.\",\"dragDescriptionVirtual\":\"Kliknutím začnete presúvanie.\",\"dragItem\":\"Presunúť položku {itemText}\",\"dragSelectedItems\":\"Presunúť {count, plural, one {# vybratú položku} other {# vybraté položky}}\",\"dragStartedKeyboard\":\"Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.\",\"dragStartedTouch\":\"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.\",\"dragStartedVirtual\":\"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.\",\"dropCanceled\":\"Umiestnenie zrušené.\",\"dropComplete\":\"Umiestnenie dokončené.\",\"dropDescriptionKeyboard\":\"Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.\",\"dropDescriptionTouch\":\"Dvojitým kliknutím umiestnite položku.\",\"dropDescriptionVirtual\":\"Kliknutím umiestnite položku.\",\"dropIndicator\":\"indikátor umiestnenia\",\"dropOnItem\":\"Umiestniť na položku {itemText}\",\"dropOnRoot\":\"Umiestniť na\",\"endDragKeyboard\":\"Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.\",\"endDragTouch\":\"Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.\",\"endDragVirtual\":\"Prebieha presúvanie.\",\"insertAfter\":\"Vložiť za položku {itemText}\",\"insertBefore\":\"Vložiť pred položku {itemText}\",\"insertBetween\":\"Vložiť medzi položky {beforeItemText} a {afterItemText}\"}");
|
|
716
730
|
|
|
717
731
|
|
|
718
|
-
var $
|
|
719
|
-
$
|
|
732
|
+
var $fbaaaaebd547d998$exports = {};
|
|
733
|
+
$fbaaaaebd547d998$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Pritisnite tipko Enter za začetek vlečenja.\",\"dragDescriptionTouch\":\"Dvotapnite za začetek vlečenja.\",\"dragDescriptionVirtual\":\"Kliknite za začetek vlečenja.\",\"dragItem\":\"Povleci {itemText}\",\"dragSelectedItems\":\"Povlecite {count, plural, one {# izbran element} other {izbrane elemente (#)}}\",\"dragStartedKeyboard\":\"Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.\",\"dragStartedTouch\":\"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.\",\"dragStartedVirtual\":\"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.\",\"dropCanceled\":\"Spust je preklican.\",\"dropComplete\":\"Spust je končan.\",\"dropDescriptionKeyboard\":\"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.\",\"dropDescriptionTouch\":\"Dvotapnite, da spustite.\",\"dropDescriptionVirtual\":\"Kliknite, da spustite.\",\"dropIndicator\":\"indikator spusta\",\"dropOnItem\":\"Spusti na mesto {itemText}\",\"dropOnRoot\":\"Spusti na mesto\",\"endDragKeyboard\":\"Vlečenje. Pritisnite tipko Enter za preklic vlečenja.\",\"endDragTouch\":\"Vlečenje. Dvotapnite za preklic vlečenja.\",\"endDragVirtual\":\"Vlečenje. Kliknite, da prekličete vlečenje.\",\"insertAfter\":\"Vstavi za {itemText}\",\"insertBefore\":\"Vstavi pred {itemText}\",\"insertBetween\":\"Vstavi med {beforeItemText} in {afterItemText}\"}");
|
|
720
734
|
|
|
721
735
|
|
|
722
|
-
var $
|
|
723
|
-
$
|
|
736
|
+
var $a0caa33f1e264489$exports = {};
|
|
737
|
+
$a0caa33f1e264489$exports = JSON.parse("{\"dragItem\":\"Prevucite {itemText}\",\"dragSelectedItems\":\"Prevucite {count, plural, one {# izabranu stavku} other {# izabrane stavke}}\",\"dragDescriptionKeyboard\":\"Pritisnite Enter da biste započeli prevlačenje..\",\"dragDescriptionTouch\":\"Dvaput dodirnite za otpuštanje.\",\"dragDescriptionVirtual\":\"Kliknite da biste započeli prevlačenje.\",\"dragStartedKeyboard\":\"Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.\",\"dragStartedTouch\":\"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.\",\"dragStartedVirtual\":\"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.\",\"endDragKeyboard\":\"Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.\",\"endDragTouch\":\"Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.\",\"endDragVirtual\":\"Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.\",\"dropDescriptionKeyboard\":\"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.\",\"dropDescriptionTouch\":\"Dvaput dodirnite za otpuštanje.\",\"dropDescriptionVirtual\":\"Kliknite za otpuštanje.\",\"dropCanceled\":\"Otpuštanje je otkazano.\",\"dropComplete\":\"Prevlačenje je završeno.\",\"dropIndicator\":\"Indikator otpuštanja\",\"dropOnRoot\":\"Otpusti na\",\"dropOnItem\":\"Otpusti na {itemText}\",\"insertBefore\":\"Umetnite ispred {itemText}\",\"insertBetween\":\"Umetnite između {beforeItemText} i {afterItemText}\",\"insertAfter\":\"Umetnite posle {itemText}\"}");
|
|
724
738
|
|
|
725
739
|
|
|
726
|
-
var $
|
|
727
|
-
$
|
|
740
|
+
var $d576b66176f5c0ff$exports = {};
|
|
741
|
+
$d576b66176f5c0ff$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Tryck på enter för att börja dra.\",\"dragDescriptionTouch\":\"Dubbeltryck för att börja dra.\",\"dragDescriptionVirtual\":\"Klicka för att börja dra.\",\"dragItem\":\"Dra {itemText}\",\"dragSelectedItems\":\"Dra {count, plural, one {# valt objekt} other {# valda objekt}}\",\"dragStartedKeyboard\":\"Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.\",\"dragStartedTouch\":\"Börja dra. Navigera till ett mål och dubbeltryck för att släppa.\",\"dragStartedVirtual\":\"Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.\",\"dropCanceled\":\"Släppåtgärd avbröts.\",\"dropComplete\":\"Släppåtgärd klar.\",\"dropDescriptionKeyboard\":\"Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.\",\"dropDescriptionTouch\":\"Dubbeltryck för att släppa.\",\"dropDescriptionVirtual\":\"Klicka för att släppa.\",\"dropIndicator\":\"släppindikator\",\"dropOnItem\":\"Släpp på {itemText}\",\"dropOnRoot\":\"Släpp på\",\"endDragKeyboard\":\"Drar. Tryck på enter för att avbryta dragåtgärd.\",\"endDragTouch\":\"Drar. Dubbeltryck för att avbryta dragåtgärd.\",\"endDragVirtual\":\"Drar. Klicka för att avbryta dragåtgärd.\",\"insertAfter\":\"Infoga efter {itemText}\",\"insertBefore\":\"Infoga före {itemText}\",\"insertBetween\":\"Infoga mellan {beforeItemText} och {afterItemText}\"}");
|
|
728
742
|
|
|
729
743
|
|
|
730
|
-
var $
|
|
731
|
-
$
|
|
744
|
+
var $0681f168c13d8f2a$exports = {};
|
|
745
|
+
$0681f168c13d8f2a$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Sürüklemeyi başlatmak için Enter'a basın.\",\"dragDescriptionTouch\":\"Sürüklemeyi başlatmak için çift tıklayın.\",\"dragDescriptionVirtual\":\"Sürüklemeyi başlatmak için tıklayın.\",\"dragItem\":\"{itemText}’i sürükle\",\"dragSelectedItems\":\"Sürükle {count, plural, one {# seçili öge} other {# seçili öge}}\",\"dragStartedKeyboard\":\"Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.\",\"dragStartedTouch\":\"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.\",\"dragStartedVirtual\":\"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.\",\"dropCanceled\":\"Bırakma iptal edildi.\",\"dropComplete\":\"Bırakma tamamlandı.\",\"dropDescriptionKeyboard\":\"Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.\",\"dropDescriptionTouch\":\"Bırakmak için çift tıklayın.\",\"dropDescriptionVirtual\":\"Bırakmak için tıklayın.\",\"dropIndicator\":\"bırakma göstergesi\",\"dropOnItem\":\"{itemText} üzerine bırak\",\"dropOnRoot\":\"Bırakın\",\"endDragKeyboard\":\"Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.\",\"endDragTouch\":\"Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.\",\"endDragVirtual\":\"Sürükleme. Sürüklemeyi iptal etmek için tıklayın.\",\"insertAfter\":\"{itemText}’den sonra gir\",\"insertBefore\":\"{itemText}’den önce gir\",\"insertBetween\":\"{beforeItemText} ve {afterItemText} arasına gir\"}");
|
|
732
746
|
|
|
733
747
|
|
|
734
|
-
var $
|
|
735
|
-
$
|
|
748
|
+
var $2bfbc1f42c1cf5a7$exports = {};
|
|
749
|
+
$2bfbc1f42c1cf5a7$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"Натисніть Enter, щоб почати перетягування.\",\"dragDescriptionTouch\":\"Натисніть двічі, щоб почати перетягування.\",\"dragDescriptionVirtual\":\"Натисніть, щоб почати перетягування.\",\"dragItem\":\"Перетягнути {itemText}\",\"dragSelectedItems\":\"Перетягніть {count, plural, one {# вибраний елемент} other {# вибраних елем}}\",\"dragStartedKeyboard\":\"Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.\",\"dragStartedTouch\":\"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.\",\"dragStartedVirtual\":\"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.\",\"dropCanceled\":\"Перетягування скасовано.\",\"dropComplete\":\"Перетягування завершено.\",\"dropDescriptionKeyboard\":\"Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.\",\"dropDescriptionTouch\":\"Натисніть двічі, щоб перетягнути.\",\"dropDescriptionVirtual\":\"Натисніть, щоб перетягнути.\",\"dropIndicator\":\"індикатор перетягування\",\"dropOnItem\":\"Перетягнути на {itemText}\",\"dropOnRoot\":\"Перетягнути на\",\"endDragKeyboard\":\"Триває перетягування. Натисніть Enter, щоб скасувати перетягування.\",\"endDragTouch\":\"Триває перетягування. Натисніть двічі, щоб скасувати перетягування.\",\"endDragVirtual\":\"Триває перетягування. Натисніть, щоб скасувати перетягування.\",\"insertAfter\":\"Вставити після {itemText}\",\"insertBefore\":\"Вставити перед {itemText}\",\"insertBetween\":\"Вставити між {beforeItemText} і {afterItemText}\"}");
|
|
736
750
|
|
|
737
751
|
|
|
738
|
-
var $
|
|
739
|
-
$
|
|
752
|
+
var $d0f488d433b55b8a$exports = {};
|
|
753
|
+
$d0f488d433b55b8a$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"按 Enter 开始拖动。\",\"dragDescriptionTouch\":\"双击开始拖动。\",\"dragDescriptionVirtual\":\"单击开始拖动。\",\"dragItem\":\"拖动 {itemText}\",\"dragSelectedItems\":\"拖动 {count, plural, one {# 选中项目} other {# 选中项目}}\",\"dragStartedKeyboard\":\"已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。\",\"dragStartedTouch\":\"已开始拖动。导航到放置目标,然后双击放置。\",\"dragStartedVirtual\":\"已开始拖动。导航到放置目标,然后单击或按 Enter 放置。\",\"dropCanceled\":\"放置已取消。\",\"dropComplete\":\"放置已完成。\",\"dropDescriptionKeyboard\":\"按 Enter 放置。按 Escape 取消拖动。\",\"dropDescriptionTouch\":\"双击放置。\",\"dropDescriptionVirtual\":\"单击放置。\",\"dropIndicator\":\"放置标记\",\"dropOnItem\":\"放置于 {itemText}\",\"dropOnRoot\":\"放置于\",\"endDragKeyboard\":\"正在拖动。按 Enter 取消拖动。\",\"endDragTouch\":\"正在拖动。双击取消拖动。\",\"endDragVirtual\":\"正在拖动。单击取消拖动。\",\"insertAfter\":\"插入到 {itemText} 之后\",\"insertBefore\":\"插入到 {itemText} 之前\",\"insertBetween\":\"插入到 {beforeItemText} 和 {afterItemText} 之间\"}");
|
|
740
754
|
|
|
741
755
|
|
|
742
|
-
var $
|
|
743
|
-
$
|
|
756
|
+
var $46168b0dce85301e$exports = {};
|
|
757
|
+
$46168b0dce85301e$exports = JSON.parse("{\"dragDescriptionKeyboard\":\"按 Enter 鍵以開始拖曳。\",\"dragDescriptionTouch\":\"輕點兩下以開始拖曳。\",\"dragDescriptionVirtual\":\"按一下滑鼠以開始拖曳。\",\"dragItem\":\"拖曳「{itemText}」\",\"dragSelectedItems\":\"拖曳 {count, plural, one {# 個選定項目} other {# 個選定項目}}\",\"dragStartedKeyboard\":\"已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。\",\"dragStartedTouch\":\"已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。\",\"dragStartedVirtual\":\"已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。\",\"dropCanceled\":\"放置已取消。\",\"dropComplete\":\"放置已完成。\",\"dropDescriptionKeyboard\":\"按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。\",\"dropDescriptionTouch\":\"輕點兩下以放置。\",\"dropDescriptionVirtual\":\"按一下滑鼠以放置。\",\"dropIndicator\":\"放置指示器\",\"dropOnItem\":\"放置在「{itemText}」上\",\"dropOnRoot\":\"放置在\",\"endDragKeyboard\":\"拖曳中。按 Enter 鍵以取消拖曳。\",\"endDragTouch\":\"拖曳中。輕點兩下以取消拖曳。\",\"endDragVirtual\":\"拖曳中。按一下滑鼠以取消拖曳。\",\"insertAfter\":\"插入至「{itemText}」之後\",\"insertBefore\":\"插入至「{itemText}」之前\",\"insertBetween\":\"插入至「{beforeItemText}」和「{afterItemText}」之間\"}");
|
|
744
758
|
|
|
745
759
|
|
|
746
|
-
$
|
|
747
|
-
"ar-AE": $
|
|
748
|
-
"bg-BG": $
|
|
749
|
-
"cs-CZ": $
|
|
750
|
-
"da-DK": $
|
|
751
|
-
"de-DE": $
|
|
752
|
-
"el-GR": $
|
|
753
|
-
"en-US": $
|
|
754
|
-
"es-ES": $
|
|
755
|
-
"et-EE": $
|
|
756
|
-
"fi-FI": $
|
|
757
|
-
"fr-FR": $
|
|
758
|
-
"he-IL": $
|
|
759
|
-
"hr-HR": $
|
|
760
|
-
"hu-HU": $
|
|
761
|
-
"it-IT": $
|
|
762
|
-
"ja-JP": $
|
|
763
|
-
"ko-KR": $
|
|
764
|
-
"lt-LT": $
|
|
765
|
-
"lv-LV": $
|
|
766
|
-
"nb-NO": $
|
|
767
|
-
"nl-NL": $
|
|
768
|
-
"pl-PL": $
|
|
769
|
-
"pt-BR": $
|
|
770
|
-
"pt-PT": $
|
|
771
|
-
"ro-RO": $
|
|
772
|
-
"ru-RU": $
|
|
773
|
-
"sk-SK": $
|
|
774
|
-
"sl-SI": $
|
|
775
|
-
"sr-SP": $
|
|
776
|
-
"sv-SE": $
|
|
777
|
-
"tr-TR": $
|
|
778
|
-
"uk-UA": $
|
|
779
|
-
"zh-CN": $
|
|
780
|
-
"zh-TW": $
|
|
760
|
+
$c530af5bd0e7e6c6$exports = {
|
|
761
|
+
"ar-AE": $7dfcac1a0c98c789$exports,
|
|
762
|
+
"bg-BG": $f311c26671219eca$exports,
|
|
763
|
+
"cs-CZ": $1aa4ade186550f72$exports,
|
|
764
|
+
"da-DK": $b6b0ea1b94a7633c$exports,
|
|
765
|
+
"de-DE": $d10e4f47c744ad52$exports,
|
|
766
|
+
"el-GR": $b3d2bb9abce688ab$exports,
|
|
767
|
+
"en-US": $f9b46437e610cca1$exports,
|
|
768
|
+
"es-ES": $204b5c01bd3acf26$exports,
|
|
769
|
+
"et-EE": $110bdd83348ecbc0$exports,
|
|
770
|
+
"fi-FI": $87d3ccd5e347c7cc$exports,
|
|
771
|
+
"fr-FR": $a5de891427686596$exports,
|
|
772
|
+
"he-IL": $ad7f4c66d85b4494$exports,
|
|
773
|
+
"hr-HR": $4aa59f3c6a796cae$exports,
|
|
774
|
+
"hu-HU": $d8d3646556c40586$exports,
|
|
775
|
+
"it-IT": $982d558b45395246$exports,
|
|
776
|
+
"ja-JP": $6a0cf387b9de036c$exports,
|
|
777
|
+
"ko-KR": $a97fefa2956f4bcb$exports,
|
|
778
|
+
"lt-LT": $5fb5837f94e1c150$exports,
|
|
779
|
+
"lv-LV": $5b2e5709864cc922$exports,
|
|
780
|
+
"nb-NO": $ee15bb8efb18cc69$exports,
|
|
781
|
+
"nl-NL": $1daf2d4602e26ac4$exports,
|
|
782
|
+
"pl-PL": $7115429b0f60511f$exports,
|
|
783
|
+
"pt-BR": $5edd453ae5d4a8bc$exports,
|
|
784
|
+
"pt-PT": $5f431994f708535e$exports,
|
|
785
|
+
"ro-RO": $107b5e2e45e971f1$exports,
|
|
786
|
+
"ru-RU": $d4b9c2f01c1892f7$exports,
|
|
787
|
+
"sk-SK": $dbdc1942894e83e4$exports,
|
|
788
|
+
"sl-SI": $fbaaaaebd547d998$exports,
|
|
789
|
+
"sr-SP": $a0caa33f1e264489$exports,
|
|
790
|
+
"sv-SE": $d576b66176f5c0ff$exports,
|
|
791
|
+
"tr-TR": $0681f168c13d8f2a$exports,
|
|
792
|
+
"uk-UA": $2bfbc1f42c1cf5a7$exports,
|
|
793
|
+
"zh-CN": $d0f488d433b55b8a$exports,
|
|
794
|
+
"zh-TW": $46168b0dce85301e$exports
|
|
781
795
|
};
|
|
782
796
|
|
|
783
797
|
|
|
@@ -786,7 +800,7 @@ $570b43ebcd82e11f$exports = {
|
|
|
786
800
|
|
|
787
801
|
|
|
788
802
|
|
|
789
|
-
const $
|
|
803
|
+
const $8253ed7ece74b463$var$MESSAGES = {
|
|
790
804
|
keyboard: {
|
|
791
805
|
start: 'dragDescriptionKeyboard',
|
|
792
806
|
end: 'endDragKeyboard'
|
|
@@ -800,23 +814,24 @@ const $fd21d4ef39f74060$var$MESSAGES = {
|
|
|
800
814
|
end: 'endDragVirtual'
|
|
801
815
|
}
|
|
802
816
|
};
|
|
803
|
-
function $
|
|
804
|
-
let formatMessage = $
|
|
805
|
-
let state = $
|
|
817
|
+
function $8253ed7ece74b463$export$7941f8aafa4b6021(options) {
|
|
818
|
+
let formatMessage = $fP8tg$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c530af5bd0e7e6c6$exports)));
|
|
819
|
+
let state = $fP8tg$useRef({
|
|
806
820
|
options: options,
|
|
807
821
|
x: 0,
|
|
808
822
|
y: 0
|
|
809
823
|
}).current;
|
|
810
824
|
state.options = options;
|
|
811
|
-
let [isDragging, setDragging] = $
|
|
812
|
-
let
|
|
825
|
+
let [isDragging, setDragging] = $fP8tg$useState(false);
|
|
826
|
+
let { addGlobalListener: addGlobalListener , removeAllGlobalListeners: removeAllGlobalListeners } = $fP8tg$useGlobalListeners();
|
|
827
|
+
let onDragStart = (e1)=>{
|
|
813
828
|
let items = options.getItems();
|
|
814
|
-
$
|
|
829
|
+
$7252cd45fc48c07c$export$f9c1490890ddd063(e1.dataTransfer, items);
|
|
815
830
|
if (typeof options.getAllowedDropOperations === 'function') {
|
|
816
831
|
let allowedOperations = options.getAllowedDropOperations();
|
|
817
|
-
let allowed = $
|
|
818
|
-
for (let operation of allowedOperations)allowed |= $
|
|
819
|
-
|
|
832
|
+
let allowed = $103790afe9474d1c$export$60b7b4bcf3903d8e.none;
|
|
833
|
+
for (let operation of allowedOperations)allowed |= $103790afe9474d1c$export$60b7b4bcf3903d8e[operation] || $103790afe9474d1c$export$60b7b4bcf3903d8e.none;
|
|
834
|
+
e1.dataTransfer.effectAllowed = $103790afe9474d1c$export$dd0165308d8bff45[allowed] || 'none';
|
|
820
835
|
}
|
|
821
836
|
// If there is a renderPreview function, use it to render a custom preview image that will
|
|
822
837
|
// appear under the pointer while dragging. If not, the element itself is dragged by the browser.
|
|
@@ -831,32 +846,43 @@ function $fd21d4ef39f74060$export$7941f8aafa4b6021(options) {
|
|
|
831
846
|
node.style.left = '-100000px';
|
|
832
847
|
document.body.appendChild(node);
|
|
833
848
|
// Call renderPreview to get a JSX element, and render it into the div with React DOM.
|
|
834
|
-
$
|
|
849
|
+
$fP8tg$reactdom.render(preview, node);
|
|
835
850
|
// Compute the offset that the preview will appear under the mouse.
|
|
836
851
|
// If possible, this is based on the point the user clicked on the target.
|
|
837
852
|
// If the preview is much smaller, then just use the center point of the preview.
|
|
838
853
|
let size = node.getBoundingClientRect();
|
|
839
|
-
let rect =
|
|
840
|
-
let x =
|
|
841
|
-
let y =
|
|
854
|
+
let rect = e1.currentTarget.getBoundingClientRect();
|
|
855
|
+
let x = e1.clientX - rect.x;
|
|
856
|
+
let y = e1.clientY - rect.y;
|
|
842
857
|
if (x > size.width || y > size.height) {
|
|
843
858
|
x = size.width / 2;
|
|
844
859
|
y = size.height / 2;
|
|
845
860
|
}
|
|
846
|
-
|
|
861
|
+
e1.dataTransfer.setDragImage(node, x, y);
|
|
847
862
|
// Remove the preview from the DOM after a frame so the browser has time to paint.
|
|
848
863
|
requestAnimationFrame(()=>{
|
|
849
864
|
document.body.removeChild(node);
|
|
850
865
|
});
|
|
851
866
|
}
|
|
852
867
|
}
|
|
868
|
+
// Enforce that drops are handled by useDrop.
|
|
869
|
+
addGlobalListener(window, 'drop', (e)=>{
|
|
870
|
+
if (!$67560de7c78cb232$export$7454aff2e161f241(e.target)) {
|
|
871
|
+
e.preventDefault();
|
|
872
|
+
e.stopPropagation();
|
|
873
|
+
throw new Error('Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.');
|
|
874
|
+
}
|
|
875
|
+
}, {
|
|
876
|
+
capture: true,
|
|
877
|
+
once: true
|
|
878
|
+
});
|
|
853
879
|
if (typeof options.onDragStart === 'function') options.onDragStart({
|
|
854
880
|
type: 'dragstart',
|
|
855
|
-
x:
|
|
856
|
-
y:
|
|
881
|
+
x: e1.clientX,
|
|
882
|
+
y: e1.clientY
|
|
857
883
|
});
|
|
858
|
-
state.x =
|
|
859
|
-
state.y =
|
|
884
|
+
state.x = e1.clientX;
|
|
885
|
+
state.y = e1.clientY;
|
|
860
886
|
// Wait a frame before we set dragging to true so that the browser has time to
|
|
861
887
|
// render the preview image before we update the element that has been dragged.
|
|
862
888
|
requestAnimationFrame(()=>{
|
|
@@ -878,22 +904,23 @@ function $fd21d4ef39f74060$export$7941f8aafa4b6021(options) {
|
|
|
878
904
|
type: 'dragend',
|
|
879
905
|
x: e.clientX,
|
|
880
906
|
y: e.clientY,
|
|
881
|
-
dropOperation: $
|
|
907
|
+
dropOperation: $103790afe9474d1c$export$608ecc6f1b23c35d[e.dataTransfer.dropEffect]
|
|
882
908
|
});
|
|
883
909
|
setDragging(false);
|
|
910
|
+
removeAllGlobalListeners();
|
|
884
911
|
};
|
|
885
|
-
let onPress = (
|
|
886
|
-
if (
|
|
912
|
+
let onPress = (e2)=>{
|
|
913
|
+
if (e2.pointerType !== 'keyboard' && e2.pointerType !== 'virtual') return;
|
|
887
914
|
if (typeof state.options.onDragStart === 'function') {
|
|
888
|
-
let rect =
|
|
915
|
+
let rect = e2.target.getBoundingClientRect();
|
|
889
916
|
state.options.onDragStart({
|
|
890
917
|
type: 'dragstart',
|
|
891
918
|
x: rect.x + rect.width / 2,
|
|
892
919
|
y: rect.y + rect.height / 2
|
|
893
920
|
});
|
|
894
921
|
}
|
|
895
|
-
$
|
|
896
|
-
element:
|
|
922
|
+
$67560de7c78cb232$export$549dbcf8649bf3b2({
|
|
923
|
+
element: e2.target,
|
|
897
924
|
items: state.options.getItems(),
|
|
898
925
|
allowedDropOperations: typeof state.options.getAllowedDropOperations === 'function' ? state.options.getAllowedDropOperations() : [
|
|
899
926
|
'move',
|
|
@@ -907,8 +934,8 @@ function $fd21d4ef39f74060$export$7941f8aafa4b6021(options) {
|
|
|
907
934
|
}, formatMessage);
|
|
908
935
|
setDragging(true);
|
|
909
936
|
};
|
|
910
|
-
let modality = $
|
|
911
|
-
let descriptionProps = $
|
|
937
|
+
let modality = $7252cd45fc48c07c$export$49bac5d6d4b352ea();
|
|
938
|
+
let descriptionProps = $fP8tg$useDescription(formatMessage(!isDragging ? $8253ed7ece74b463$var$MESSAGES[modality].start : $8253ed7ece74b463$var$MESSAGES[modality].end));
|
|
912
939
|
return {
|
|
913
940
|
dragProps: {
|
|
914
941
|
draggable: 'true',
|
|
@@ -925,9 +952,9 @@ function $fd21d4ef39f74060$export$7941f8aafa4b6021(options) {
|
|
|
925
952
|
}
|
|
926
953
|
|
|
927
954
|
|
|
928
|
-
var $
|
|
955
|
+
var $5c06e4929e123553$exports = {};
|
|
929
956
|
|
|
930
|
-
$parcel$export($
|
|
957
|
+
$parcel$export($5c06e4929e123553$exports, "useDrop", () => $5c06e4929e123553$export$ccdee5eaf73cf661);
|
|
931
958
|
|
|
932
959
|
|
|
933
960
|
|
|
@@ -938,16 +965,16 @@ $parcel$export($c68dfee587607bbe$exports, "useDrop", () => $c68dfee587607bbe$exp
|
|
|
938
965
|
|
|
939
966
|
|
|
940
967
|
|
|
941
|
-
const $
|
|
968
|
+
const $224594fe3e57ff1e$var$MESSAGES = {
|
|
942
969
|
keyboard: 'dropDescriptionKeyboard',
|
|
943
970
|
touch: 'dropDescriptionTouch',
|
|
944
971
|
virtual: 'dropDescriptionVirtual'
|
|
945
972
|
};
|
|
946
|
-
function $
|
|
947
|
-
let formatMessage = $
|
|
948
|
-
let modality = $
|
|
949
|
-
let dragSession = $
|
|
950
|
-
let descriptionProps = $
|
|
973
|
+
function $224594fe3e57ff1e$export$62447ad3d2ec7da6() {
|
|
974
|
+
let formatMessage = $fP8tg$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c530af5bd0e7e6c6$exports)));
|
|
975
|
+
let modality = $7252cd45fc48c07c$export$49bac5d6d4b352ea();
|
|
976
|
+
let dragSession = $67560de7c78cb232$export$418e185dd3f1b968();
|
|
977
|
+
let descriptionProps = $fP8tg$useDescription(dragSession ? formatMessage($224594fe3e57ff1e$var$MESSAGES[modality]) : '');
|
|
951
978
|
return {
|
|
952
979
|
dropProps: {
|
|
953
980
|
...descriptionProps,
|
|
@@ -963,10 +990,10 @@ function $3aee5decbf98b057$export$62447ad3d2ec7da6() {
|
|
|
963
990
|
}
|
|
964
991
|
|
|
965
992
|
|
|
966
|
-
const $
|
|
967
|
-
function $
|
|
968
|
-
let [isDropTarget, setDropTarget] = $
|
|
969
|
-
let state = $
|
|
993
|
+
const $5c06e4929e123553$var$DROP_ACTIVATE_TIMEOUT = 800;
|
|
994
|
+
function $5c06e4929e123553$export$ccdee5eaf73cf661(options) {
|
|
995
|
+
let [isDropTarget, setDropTarget] = $fP8tg$useState(false);
|
|
996
|
+
let state = $fP8tg$useRef({
|
|
970
997
|
x: 0,
|
|
971
998
|
y: 0,
|
|
972
999
|
dragEnterCount: 0,
|
|
@@ -983,11 +1010,11 @@ function $c68dfee587607bbe$export$ccdee5eaf73cf661(options) {
|
|
|
983
1010
|
state.x = e.clientX;
|
|
984
1011
|
state.y = e.clientY;
|
|
985
1012
|
if (typeof options.getDropOperationForPoint === 'function') {
|
|
986
|
-
let allowedOperations = $
|
|
987
|
-
let types = new $
|
|
1013
|
+
let allowedOperations = $5c06e4929e123553$var$effectAllowedToOperations(e.dataTransfer.effectAllowed);
|
|
1014
|
+
let types = new $7252cd45fc48c07c$export$7f04ce188c91447c(e.dataTransfer);
|
|
988
1015
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
989
1016
|
let dropOperation = options.getDropOperationForPoint(types, allowedOperations, state.x - rect.x, state.y - rect.y);
|
|
990
|
-
state.dropEffect = $
|
|
1017
|
+
state.dropEffect = $103790afe9474d1c$export$5eacb0769d26d3b2[dropOperation] || 'none';
|
|
991
1018
|
}
|
|
992
1019
|
e.dataTransfer.dropEffect = state.dropEffect;
|
|
993
1020
|
if (typeof options.onDropMove === 'function') {
|
|
@@ -1007,26 +1034,26 @@ function $c68dfee587607bbe$export$ccdee5eaf73cf661(options) {
|
|
|
1007
1034
|
x: state.x - rect.x,
|
|
1008
1035
|
y: state.y - rect.y
|
|
1009
1036
|
});
|
|
1010
|
-
}, $
|
|
1037
|
+
}, $5c06e4929e123553$var$DROP_ACTIVATE_TIMEOUT);
|
|
1011
1038
|
}
|
|
1012
1039
|
};
|
|
1013
1040
|
let onDragEnter = (e)=>{
|
|
1014
1041
|
e.stopPropagation();
|
|
1015
1042
|
state.dragEnterCount++;
|
|
1016
1043
|
if (state.dragEnterCount > 1) return;
|
|
1017
|
-
let allowedOperations = $
|
|
1044
|
+
let allowedOperations = $5c06e4929e123553$var$effectAllowedToOperations(e.dataTransfer.effectAllowed);
|
|
1018
1045
|
let dropOperation = allowedOperations[0];
|
|
1019
1046
|
if (typeof options.getDropOperation === 'function') {
|
|
1020
|
-
let types = new $
|
|
1047
|
+
let types = new $7252cd45fc48c07c$export$7f04ce188c91447c(e.dataTransfer);
|
|
1021
1048
|
dropOperation = options.getDropOperation(types, allowedOperations);
|
|
1022
1049
|
}
|
|
1023
1050
|
if (dropOperation !== 'cancel') setDropTarget(true);
|
|
1024
1051
|
if (typeof options.getDropOperationForPoint === 'function') {
|
|
1025
|
-
let types = new $
|
|
1052
|
+
let types = new $7252cd45fc48c07c$export$7f04ce188c91447c(e.dataTransfer);
|
|
1026
1053
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1027
1054
|
dropOperation = options.getDropOperationForPoint(types, allowedOperations, e.clientX - rect.x, e.clientY - rect.y);
|
|
1028
1055
|
}
|
|
1029
|
-
state.dropEffect = $
|
|
1056
|
+
state.dropEffect = $103790afe9474d1c$export$5eacb0769d26d3b2[dropOperation] || 'none';
|
|
1030
1057
|
e.dataTransfer.dropEffect = state.dropEffect;
|
|
1031
1058
|
if (typeof options.onDropEnter === 'function' && dropOperation !== 'cancel') {
|
|
1032
1059
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
@@ -1058,8 +1085,8 @@ function $c68dfee587607bbe$export$ccdee5eaf73cf661(options) {
|
|
|
1058
1085
|
e.preventDefault();
|
|
1059
1086
|
e.stopPropagation();
|
|
1060
1087
|
if (typeof options.onDrop === 'function') {
|
|
1061
|
-
let dropOperation = $
|
|
1062
|
-
let items = $
|
|
1088
|
+
let dropOperation = $103790afe9474d1c$export$608ecc6f1b23c35d[state.dropEffect];
|
|
1089
|
+
let items = $7252cd45fc48c07c$export$d9e760437831f8b3(e.dataTransfer);
|
|
1063
1090
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1064
1091
|
let event = {
|
|
1065
1092
|
type: 'drop',
|
|
@@ -1088,9 +1115,9 @@ function $c68dfee587607bbe$export$ccdee5eaf73cf661(options) {
|
|
|
1088
1115
|
setDropTarget(false);
|
|
1089
1116
|
clearTimeout(state.dropActivateTimer);
|
|
1090
1117
|
};
|
|
1091
|
-
let optionsRef = $
|
|
1118
|
+
let optionsRef = $fP8tg$useRef(options);
|
|
1092
1119
|
optionsRef.current = options;
|
|
1093
|
-
$
|
|
1120
|
+
$fP8tg$useLayoutEffect(()=>$67560de7c78cb232$export$c28d9fb4a54e471a({
|
|
1094
1121
|
element: optionsRef.current.ref.current,
|
|
1095
1122
|
getDropOperation: optionsRef.current.getDropOperation,
|
|
1096
1123
|
onDropEnter (e) {
|
|
@@ -1111,7 +1138,7 @@ function $c68dfee587607bbe$export$ccdee5eaf73cf661(options) {
|
|
|
1111
1138
|
, [
|
|
1112
1139
|
optionsRef
|
|
1113
1140
|
]);
|
|
1114
|
-
let { dropProps: dropProps } = $
|
|
1141
|
+
let { dropProps: dropProps } = $224594fe3e57ff1e$export$62447ad3d2ec7da6();
|
|
1115
1142
|
return {
|
|
1116
1143
|
dropProps: {
|
|
1117
1144
|
...dropProps,
|
|
@@ -1123,19 +1150,19 @@ function $c68dfee587607bbe$export$ccdee5eaf73cf661(options) {
|
|
|
1123
1150
|
isDropTarget: isDropTarget
|
|
1124
1151
|
};
|
|
1125
1152
|
}
|
|
1126
|
-
function $
|
|
1127
|
-
let allowedOperationsBits = $
|
|
1153
|
+
function $5c06e4929e123553$var$effectAllowedToOperations(effectAllowed) {
|
|
1154
|
+
let allowedOperationsBits = $103790afe9474d1c$export$9bbdfc78cf083e16[effectAllowed];
|
|
1128
1155
|
let allowedOperations = [];
|
|
1129
|
-
if (allowedOperationsBits & $
|
|
1130
|
-
if (allowedOperationsBits & $
|
|
1131
|
-
if (allowedOperationsBits & $
|
|
1156
|
+
if (allowedOperationsBits & $103790afe9474d1c$export$60b7b4bcf3903d8e.move) allowedOperations.push('move');
|
|
1157
|
+
if (allowedOperationsBits & $103790afe9474d1c$export$60b7b4bcf3903d8e.copy) allowedOperations.push('copy');
|
|
1158
|
+
if (allowedOperationsBits & $103790afe9474d1c$export$60b7b4bcf3903d8e.link) allowedOperations.push('link');
|
|
1132
1159
|
return allowedOperations;
|
|
1133
1160
|
}
|
|
1134
1161
|
|
|
1135
1162
|
|
|
1136
|
-
var $
|
|
1163
|
+
var $4b52e4eff84e5217$exports = {};
|
|
1137
1164
|
|
|
1138
|
-
$parcel$export($
|
|
1165
|
+
$parcel$export($4b52e4eff84e5217$exports, "useDroppableCollection", () => $4b52e4eff84e5217$export$f4e2f423c21f7b04);
|
|
1139
1166
|
|
|
1140
1167
|
|
|
1141
1168
|
|
|
@@ -1143,20 +1170,20 @@ $parcel$export($9ca0e158e516b9bb$exports, "useDroppableCollection", () => $9ca0e
|
|
|
1143
1170
|
|
|
1144
1171
|
|
|
1145
1172
|
|
|
1146
|
-
const $
|
|
1147
|
-
function $
|
|
1148
|
-
let scrollableRef = $
|
|
1149
|
-
$
|
|
1150
|
-
if (ref.current) scrollableRef.current = $
|
|
1173
|
+
const $80d9daea3067eff3$var$AUTOSCROLL_AREA_SIZE = 20;
|
|
1174
|
+
function $80d9daea3067eff3$export$6323452ca4533ed8(ref) {
|
|
1175
|
+
let scrollableRef = $fP8tg$useRef(null);
|
|
1176
|
+
$fP8tg$useEffect(()=>{
|
|
1177
|
+
if (ref.current) scrollableRef.current = $fP8tg$getScrollParent(ref.current);
|
|
1151
1178
|
}, [
|
|
1152
1179
|
ref
|
|
1153
1180
|
]);
|
|
1154
|
-
let state = $
|
|
1181
|
+
let state = $fP8tg$useRef({
|
|
1155
1182
|
timer: null,
|
|
1156
1183
|
dx: 0,
|
|
1157
1184
|
dy: 0
|
|
1158
1185
|
}).current;
|
|
1159
|
-
let scroll = $
|
|
1186
|
+
let scroll = $fP8tg$useCallback(()=>{
|
|
1160
1187
|
scrollableRef.current.scrollLeft += state.dx;
|
|
1161
1188
|
scrollableRef.current.scrollTop += state.dy;
|
|
1162
1189
|
if (state.timer) state.timer = requestAnimationFrame(scroll);
|
|
@@ -1168,12 +1195,12 @@ function $70a47f6ec683dbce$export$6323452ca4533ed8(ref) {
|
|
|
1168
1195
|
move (x, y) {
|
|
1169
1196
|
// Most browsers auto scroll natively, but WebKit on macOS does not (iOS does 🤷♂️).
|
|
1170
1197
|
// https://bugs.webkit.org/show_bug.cgi?id=222636
|
|
1171
|
-
if (!$
|
|
1198
|
+
if (!$fP8tg$isWebKit() || $fP8tg$isIOS() || !scrollableRef.current) return;
|
|
1172
1199
|
let box = scrollableRef.current.getBoundingClientRect();
|
|
1173
|
-
let left = $
|
|
1174
|
-
let top = $
|
|
1175
|
-
let bottom = box.height - $
|
|
1176
|
-
let right = box.width - $
|
|
1200
|
+
let left = $80d9daea3067eff3$var$AUTOSCROLL_AREA_SIZE;
|
|
1201
|
+
let top = $80d9daea3067eff3$var$AUTOSCROLL_AREA_SIZE;
|
|
1202
|
+
let bottom = box.height - $80d9daea3067eff3$var$AUTOSCROLL_AREA_SIZE;
|
|
1203
|
+
let right = box.width - $80d9daea3067eff3$var$AUTOSCROLL_AREA_SIZE;
|
|
1177
1204
|
if (x < left || x > right || y < top || y > bottom) {
|
|
1178
1205
|
if (x < left) state.dx = x - left;
|
|
1179
1206
|
else if (x > right) state.dx = x - right;
|
|
@@ -1194,13 +1221,13 @@ function $70a47f6ec683dbce$export$6323452ca4533ed8(ref) {
|
|
|
1194
1221
|
|
|
1195
1222
|
|
|
1196
1223
|
|
|
1197
|
-
const $
|
|
1224
|
+
const $4b52e4eff84e5217$var$DROP_POSITIONS = [
|
|
1198
1225
|
'before',
|
|
1199
1226
|
'on',
|
|
1200
1227
|
'after'
|
|
1201
1228
|
];
|
|
1202
|
-
function $
|
|
1203
|
-
let localState = $
|
|
1229
|
+
function $4b52e4eff84e5217$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
1230
|
+
let localState = $fP8tg$useRef({
|
|
1204
1231
|
props: props,
|
|
1205
1232
|
state: state1,
|
|
1206
1233
|
nextTarget: null,
|
|
@@ -1208,8 +1235,8 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1208
1235
|
}).current;
|
|
1209
1236
|
localState.props = props;
|
|
1210
1237
|
localState.state = state1;
|
|
1211
|
-
let autoScroll = $
|
|
1212
|
-
let { dropProps: dropProps } = $
|
|
1238
|
+
let autoScroll = $80d9daea3067eff3$export$6323452ca4533ed8(ref2);
|
|
1239
|
+
let { dropProps: dropProps } = $5c06e4929e123553$export$ccdee5eaf73cf661({
|
|
1213
1240
|
ref: ref2,
|
|
1214
1241
|
onDropEnter (e) {
|
|
1215
1242
|
let target = props.getDropTargetFromPoint(e.x, e.y);
|
|
@@ -1262,8 +1289,8 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1262
1289
|
if (state1.target && typeof props.onDrop === 'function') onDrop(e, state1.target);
|
|
1263
1290
|
}
|
|
1264
1291
|
});
|
|
1265
|
-
let droppingState = $
|
|
1266
|
-
let onDrop = $
|
|
1292
|
+
let droppingState = $fP8tg$useRef(null);
|
|
1293
|
+
let onDrop = $fP8tg$useCallback((e, target)=>{
|
|
1267
1294
|
let { state: state2 } = localState;
|
|
1268
1295
|
// Focus the collection.
|
|
1269
1296
|
state2.selectionManager.setFocused(true);
|
|
@@ -1296,8 +1323,8 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1296
1323
|
if (target.type === 'item' && target.dropPosition === 'on' && state.collection.getItem(target.key) != null) {
|
|
1297
1324
|
state.selectionManager.setFocusedKey(target.key);
|
|
1298
1325
|
state.selectionManager.setFocused(true);
|
|
1299
|
-
$
|
|
1300
|
-
} else if (!state.selectionManager.isSelected(focusedKey)) $
|
|
1326
|
+
$fP8tg$setInteractionModality('keyboard');
|
|
1327
|
+
} else if (!state.selectionManager.isSelected(focusedKey)) $fP8tg$setInteractionModality('keyboard');
|
|
1301
1328
|
}
|
|
1302
1329
|
droppingState.current = null;
|
|
1303
1330
|
}, 50);
|
|
@@ -1305,12 +1332,12 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1305
1332
|
localState
|
|
1306
1333
|
]);
|
|
1307
1334
|
// eslint-disable-next-line arrow-body-style
|
|
1308
|
-
$
|
|
1335
|
+
$fP8tg$useEffect(()=>{
|
|
1309
1336
|
return ()=>{
|
|
1310
1337
|
if (droppingState.current) clearTimeout(droppingState.current.timeout);
|
|
1311
1338
|
};
|
|
1312
1339
|
}, []);
|
|
1313
|
-
$
|
|
1340
|
+
$fP8tg$useLayoutEffect(()=>{
|
|
1314
1341
|
// If an insert occurs during a drop, we want to immediately select these items to give
|
|
1315
1342
|
// feedback to the user that a drop occurred. Only do this if the selection didn't change
|
|
1316
1343
|
// since the drop started so we don't override if the user or application did something.
|
|
@@ -1324,12 +1351,12 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1324
1351
|
if (state1.selectionManager.focusedKey === droppingState.current.focusedKey) {
|
|
1325
1352
|
let first = newKeys.keys().next().value;
|
|
1326
1353
|
state1.selectionManager.setFocusedKey(first);
|
|
1327
|
-
if (state1.selectionManager.selectionMode === 'none') $
|
|
1354
|
+
if (state1.selectionManager.selectionMode === 'none') $fP8tg$setInteractionModality('keyboard');
|
|
1328
1355
|
}
|
|
1329
1356
|
droppingState.current = null;
|
|
1330
1357
|
}
|
|
1331
1358
|
});
|
|
1332
|
-
$
|
|
1359
|
+
$fP8tg$useEffect(()=>{
|
|
1333
1360
|
let getNextTarget1 = (target, wrap = true)=>{
|
|
1334
1361
|
if (!target) return {
|
|
1335
1362
|
type: 'root'
|
|
@@ -1338,9 +1365,9 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1338
1365
|
let nextKey = target.type === 'item' ? keyboardDelegate.getKeyBelow(target.key) : keyboardDelegate.getFirstKey();
|
|
1339
1366
|
let dropPosition = 'before';
|
|
1340
1367
|
if (target.type === 'item') {
|
|
1341
|
-
let positionIndex = $
|
|
1342
|
-
let nextDropPosition = $
|
|
1343
|
-
if (positionIndex < $
|
|
1368
|
+
let positionIndex = $4b52e4eff84e5217$var$DROP_POSITIONS.indexOf(target.dropPosition);
|
|
1369
|
+
let nextDropPosition = $4b52e4eff84e5217$var$DROP_POSITIONS[positionIndex + 1];
|
|
1370
|
+
if (positionIndex < $4b52e4eff84e5217$var$DROP_POSITIONS.length - 1 && !(nextDropPosition === 'after' && nextKey != null)) return {
|
|
1344
1371
|
type: 'item',
|
|
1345
1372
|
key: target.key,
|
|
1346
1373
|
dropPosition: nextDropPosition
|
|
@@ -1366,8 +1393,8 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1366
1393
|
let nextKey = (target === null || target === void 0 ? void 0 : target.type) === 'item' ? keyboardDelegate.getKeyAbove(target.key) : keyboardDelegate.getLastKey();
|
|
1367
1394
|
let dropPosition = !target || target.type === 'root' ? 'after' : 'on';
|
|
1368
1395
|
if ((target === null || target === void 0 ? void 0 : target.type) === 'item') {
|
|
1369
|
-
let positionIndex = $
|
|
1370
|
-
let nextDropPosition = $
|
|
1396
|
+
let positionIndex = $4b52e4eff84e5217$var$DROP_POSITIONS.indexOf(target.dropPosition);
|
|
1397
|
+
let nextDropPosition = $4b52e4eff84e5217$var$DROP_POSITIONS[positionIndex - 1];
|
|
1371
1398
|
if (positionIndex > 0 && nextDropPosition !== 'after') return {
|
|
1372
1399
|
type: 'item',
|
|
1373
1400
|
key: target.key,
|
|
@@ -1402,7 +1429,7 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1402
1429
|
if (operation === 'cancel') return null;
|
|
1403
1430
|
return target;
|
|
1404
1431
|
};
|
|
1405
|
-
return $
|
|
1432
|
+
return $67560de7c78cb232$export$c28d9fb4a54e471a({
|
|
1406
1433
|
element: ref2.current,
|
|
1407
1434
|
getDropOperation (types, allowedOperations) {
|
|
1408
1435
|
if (localState.state.target) return localState.state.getDropOperation(localState.state.target, types, allowedOperations);
|
|
@@ -1412,7 +1439,7 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1412
1439
|
return target ? 'move' : 'cancel';
|
|
1413
1440
|
},
|
|
1414
1441
|
onDropEnter (e, drag) {
|
|
1415
|
-
let types = $
|
|
1442
|
+
let types = $7252cd45fc48c07c$export$e1d41611756c6326(drag.items);
|
|
1416
1443
|
let selectionManager = localState.state.selectionManager;
|
|
1417
1444
|
let target;
|
|
1418
1445
|
// When entering the droppable collection for the first time, the default drop target
|
|
@@ -1465,7 +1492,7 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1465
1492
|
},
|
|
1466
1493
|
onKeyDown (e, drag) {
|
|
1467
1494
|
let { keyboardDelegate: keyboardDelegate } = localState.props;
|
|
1468
|
-
let types = $
|
|
1495
|
+
let types = $7252cd45fc48c07c$export$e1d41611756c6326(drag.items);
|
|
1469
1496
|
switch(e.key){
|
|
1470
1497
|
case 'ArrowDown':
|
|
1471
1498
|
if (keyboardDelegate.getKeyBelow) {
|
|
@@ -1558,9 +1585,9 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1558
1585
|
ref2,
|
|
1559
1586
|
onDrop
|
|
1560
1587
|
]);
|
|
1561
|
-
let id = $
|
|
1588
|
+
let id = $7252cd45fc48c07c$export$b1601eb39394a581(state1);
|
|
1562
1589
|
return {
|
|
1563
|
-
collectionProps: $
|
|
1590
|
+
collectionProps: $fP8tg$mergeProps(dropProps, {
|
|
1564
1591
|
id: id,
|
|
1565
1592
|
// Remove description from collection element. If dropping on the entire collection,
|
|
1566
1593
|
// there should be a drop indicator that has this description, so no need to double announce.
|
|
@@ -1570,17 +1597,17 @@ function $9ca0e158e516b9bb$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1570
1597
|
}
|
|
1571
1598
|
|
|
1572
1599
|
|
|
1573
|
-
var $
|
|
1600
|
+
var $bfaab576ce1c580e$exports = {};
|
|
1574
1601
|
|
|
1575
|
-
$parcel$export($
|
|
1602
|
+
$parcel$export($bfaab576ce1c580e$exports, "useDroppableItem", () => $bfaab576ce1c580e$export$f7b0c5d28b66b6a5);
|
|
1576
1603
|
|
|
1577
1604
|
|
|
1578
1605
|
|
|
1579
1606
|
|
|
1580
|
-
function $
|
|
1581
|
-
let { dropProps: dropProps } = $
|
|
1582
|
-
$
|
|
1583
|
-
if (ref.current) return $
|
|
1607
|
+
function $bfaab576ce1c580e$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
1608
|
+
let { dropProps: dropProps } = $224594fe3e57ff1e$export$62447ad3d2ec7da6();
|
|
1609
|
+
$fP8tg$useEffect(()=>{
|
|
1610
|
+
if (ref.current) return $67560de7c78cb232$export$aef80212ac99c003({
|
|
1584
1611
|
element: ref.current,
|
|
1585
1612
|
target: options.target,
|
|
1586
1613
|
getDropOperation (types, allowedOperations) {
|
|
@@ -1592,10 +1619,10 @@ function $939cc8a8c092cd72$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
|
1592
1619
|
options.target,
|
|
1593
1620
|
state
|
|
1594
1621
|
]);
|
|
1595
|
-
let dragSession = $
|
|
1596
|
-
let isValidDropTarget = dragSession && state.getDropOperation(options.target, $
|
|
1622
|
+
let dragSession = $67560de7c78cb232$export$418e185dd3f1b968();
|
|
1623
|
+
let isValidDropTarget = dragSession && state.getDropOperation(options.target, $7252cd45fc48c07c$export$e1d41611756c6326(dragSession.dragTarget.items), dragSession.dragTarget.allowedDropOperations) !== 'cancel';
|
|
1597
1624
|
let isDropTarget = state.isDropTarget(options.target);
|
|
1598
|
-
$
|
|
1625
|
+
$fP8tg$useEffect(()=>{
|
|
1599
1626
|
if (dragSession && isDropTarget && ref.current) ref.current.focus();
|
|
1600
1627
|
}, [
|
|
1601
1628
|
isDropTarget,
|
|
@@ -1611,22 +1638,22 @@ function $939cc8a8c092cd72$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
|
1611
1638
|
}
|
|
1612
1639
|
|
|
1613
1640
|
|
|
1614
|
-
var $
|
|
1641
|
+
var $ddf25448c71fc93a$exports = {};
|
|
1615
1642
|
|
|
1616
|
-
$parcel$export($
|
|
1643
|
+
$parcel$export($ddf25448c71fc93a$exports, "useDropIndicator", () => $ddf25448c71fc93a$export$8d0e41d2815afac5);
|
|
1617
1644
|
|
|
1618
1645
|
|
|
1619
1646
|
|
|
1620
1647
|
|
|
1621
1648
|
|
|
1622
1649
|
|
|
1623
|
-
function $
|
|
1650
|
+
function $ddf25448c71fc93a$export$8d0e41d2815afac5(props, state, ref1) {
|
|
1624
1651
|
let { target: target } = props;
|
|
1625
1652
|
let { collection: collection } = state;
|
|
1626
|
-
let formatMessage = $
|
|
1627
|
-
let dragSession = $
|
|
1628
|
-
let { dropProps: dropProps } = $
|
|
1629
|
-
let id = $
|
|
1653
|
+
let formatMessage = $fP8tg$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c530af5bd0e7e6c6$exports)));
|
|
1654
|
+
let dragSession = $67560de7c78cb232$export$418e185dd3f1b968();
|
|
1655
|
+
let { dropProps: dropProps } = $bfaab576ce1c580e$export$f7b0c5d28b66b6a5(props, state, ref1);
|
|
1656
|
+
let id = $fP8tg$useId();
|
|
1630
1657
|
let getText = (key)=>{
|
|
1631
1658
|
var ref;
|
|
1632
1659
|
return (ref = collection.getItem(key)) === null || ref === void 0 ? void 0 : ref.textValue;
|
|
@@ -1635,7 +1662,7 @@ function $61e12d7d87fee06c$export$8d0e41d2815afac5(props, state, ref1) {
|
|
|
1635
1662
|
let labelledBy;
|
|
1636
1663
|
if (target.type === 'root') {
|
|
1637
1664
|
label = formatMessage('dropOnRoot');
|
|
1638
|
-
labelledBy = `${id} ${$
|
|
1665
|
+
labelledBy = `${id} ${$7252cd45fc48c07c$export$3093291712f09a77(state)}`;
|
|
1639
1666
|
} else if (target.dropPosition === 'on') label = formatMessage('dropOnItem', {
|
|
1640
1667
|
itemText: getText(target.key)
|
|
1641
1668
|
});
|
|
@@ -1667,15 +1694,15 @@ function $61e12d7d87fee06c$export$8d0e41d2815afac5(props, state, ref1) {
|
|
|
1667
1694
|
}
|
|
1668
1695
|
|
|
1669
1696
|
|
|
1670
|
-
var $
|
|
1697
|
+
var $fd98cf7cbf233429$exports = {};
|
|
1671
1698
|
|
|
1672
|
-
$parcel$export($
|
|
1699
|
+
$parcel$export($fd98cf7cbf233429$exports, "useDraggableItem", () => $fd98cf7cbf233429$export$b35afafff42da2d9);
|
|
1673
1700
|
|
|
1674
1701
|
|
|
1675
1702
|
|
|
1676
|
-
function $
|
|
1677
|
-
let formatMessage = $
|
|
1678
|
-
let { dragProps: dragProps , dragButtonProps: dragButtonProps } = $
|
|
1703
|
+
function $fd98cf7cbf233429$export$b35afafff42da2d9(props, state) {
|
|
1704
|
+
let formatMessage = $fP8tg$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c530af5bd0e7e6c6$exports)));
|
|
1705
|
+
let { dragProps: dragProps , dragButtonProps: dragButtonProps } = $8253ed7ece74b463$export$7941f8aafa4b6021({
|
|
1679
1706
|
getItems () {
|
|
1680
1707
|
return state.getItems(props.key);
|
|
1681
1708
|
},
|
|
@@ -1713,16 +1740,16 @@ function $5f9db871ed0189e9$export$b35afafff42da2d9(props, state) {
|
|
|
1713
1740
|
}
|
|
1714
1741
|
|
|
1715
1742
|
|
|
1716
|
-
var $
|
|
1743
|
+
var $9fcc7f0d70d084ee$exports = {};
|
|
1717
1744
|
|
|
1718
|
-
$parcel$export($
|
|
1745
|
+
$parcel$export($9fcc7f0d70d084ee$exports, "useClipboard", () => $9fcc7f0d70d084ee$export$2314ca2a3e892862);
|
|
1719
1746
|
|
|
1720
1747
|
|
|
1721
1748
|
|
|
1722
1749
|
|
|
1723
|
-
const $
|
|
1724
|
-
function $
|
|
1725
|
-
let eventData = $
|
|
1750
|
+
const $9fcc7f0d70d084ee$var$globalEvents = new Map();
|
|
1751
|
+
function $9fcc7f0d70d084ee$var$addGlobalEventListener(event, fn) {
|
|
1752
|
+
let eventData = $9fcc7f0d70d084ee$var$globalEvents.get(event);
|
|
1726
1753
|
if (!eventData) {
|
|
1727
1754
|
let handlers = new Set();
|
|
1728
1755
|
let listener = (e)=>{
|
|
@@ -1732,7 +1759,7 @@ function $59f335667f89955c$var$addGlobalEventListener(event, fn) {
|
|
|
1732
1759
|
listener: listener,
|
|
1733
1760
|
handlers: handlers
|
|
1734
1761
|
};
|
|
1735
|
-
$
|
|
1762
|
+
$9fcc7f0d70d084ee$var$globalEvents.set(event, eventData);
|
|
1736
1763
|
document.addEventListener(event, listener);
|
|
1737
1764
|
}
|
|
1738
1765
|
eventData.handlers.add(fn);
|
|
@@ -1740,20 +1767,20 @@ function $59f335667f89955c$var$addGlobalEventListener(event, fn) {
|
|
|
1740
1767
|
eventData.handlers.delete(fn);
|
|
1741
1768
|
if (eventData.handlers.size === 0) {
|
|
1742
1769
|
document.removeEventListener(event, eventData.listener);
|
|
1743
|
-
$
|
|
1770
|
+
$9fcc7f0d70d084ee$var$globalEvents.delete(event);
|
|
1744
1771
|
}
|
|
1745
1772
|
};
|
|
1746
1773
|
}
|
|
1747
|
-
function $
|
|
1748
|
-
let ref = $
|
|
1774
|
+
function $9fcc7f0d70d084ee$export$2314ca2a3e892862(options1) {
|
|
1775
|
+
let ref = $fP8tg$useRef(options1);
|
|
1749
1776
|
ref.current = options1;
|
|
1750
|
-
let isFocusedRef = $
|
|
1751
|
-
let { focusProps: focusProps } = $
|
|
1777
|
+
let isFocusedRef = $fP8tg$useRef(false);
|
|
1778
|
+
let { focusProps: focusProps } = $fP8tg$useFocus({
|
|
1752
1779
|
onFocusChange: (isFocused)=>{
|
|
1753
1780
|
isFocusedRef.current = isFocused;
|
|
1754
1781
|
}
|
|
1755
1782
|
});
|
|
1756
|
-
$
|
|
1783
|
+
$fP8tg$useEffect(()=>{
|
|
1757
1784
|
let onBeforeCopy = (e)=>{
|
|
1758
1785
|
// Enable the "Copy" menu item in Safari if this element is focused and copying is supported.
|
|
1759
1786
|
let options = ref.current;
|
|
@@ -1764,7 +1791,7 @@ function $59f335667f89955c$export$2314ca2a3e892862(options1) {
|
|
|
1764
1791
|
let options = ref.current;
|
|
1765
1792
|
if (!isFocusedRef.current || !options.getItems) return;
|
|
1766
1793
|
e.preventDefault();
|
|
1767
|
-
$
|
|
1794
|
+
$7252cd45fc48c07c$export$f9c1490890ddd063(e.clipboardData, options.getItems());
|
|
1768
1795
|
(ref1 = options.onCopy) === null || ref1 === void 0 ? void 0 : ref1.call(options);
|
|
1769
1796
|
};
|
|
1770
1797
|
let onBeforeCut = (e)=>{
|
|
@@ -1775,7 +1802,7 @@ function $59f335667f89955c$export$2314ca2a3e892862(options1) {
|
|
|
1775
1802
|
let options = ref.current;
|
|
1776
1803
|
if (!isFocusedRef.current || !options.onCut || !options.getItems) return;
|
|
1777
1804
|
e.preventDefault();
|
|
1778
|
-
$
|
|
1805
|
+
$7252cd45fc48c07c$export$f9c1490890ddd063(e.clipboardData, options.getItems());
|
|
1779
1806
|
options.onCut();
|
|
1780
1807
|
};
|
|
1781
1808
|
let onBeforePaste = (e)=>{
|
|
@@ -1788,10 +1815,10 @@ function $59f335667f89955c$export$2314ca2a3e892862(options1) {
|
|
|
1788
1815
|
let options = ref.current;
|
|
1789
1816
|
if (!isFocusedRef.current || !options.onPaste) return;
|
|
1790
1817
|
e.preventDefault();
|
|
1791
|
-
let items = $
|
|
1818
|
+
let items = $7252cd45fc48c07c$export$d9e760437831f8b3(e.clipboardData);
|
|
1792
1819
|
options.onPaste(items);
|
|
1793
1820
|
};
|
|
1794
|
-
return $
|
|
1821
|
+
return $fP8tg$chain($9fcc7f0d70d084ee$var$addGlobalEventListener('beforecopy', onBeforeCopy), $9fcc7f0d70d084ee$var$addGlobalEventListener('copy', onCopy), $9fcc7f0d70d084ee$var$addGlobalEventListener('beforecut', onBeforeCut), $9fcc7f0d70d084ee$var$addGlobalEventListener('cut', onCut), $9fcc7f0d70d084ee$var$addGlobalEventListener('beforepaste', onBeforePaste), $9fcc7f0d70d084ee$var$addGlobalEventListener('paste', onPaste));
|
|
1795
1822
|
}, []);
|
|
1796
1823
|
return {
|
|
1797
1824
|
clipboardProps: focusProps
|
|
@@ -1801,5 +1828,5 @@ function $59f335667f89955c$export$2314ca2a3e892862(options1) {
|
|
|
1801
1828
|
|
|
1802
1829
|
|
|
1803
1830
|
|
|
1804
|
-
export {$
|
|
1831
|
+
export {$8253ed7ece74b463$export$7941f8aafa4b6021 as useDrag, $5c06e4929e123553$export$ccdee5eaf73cf661 as useDrop, $4b52e4eff84e5217$export$f4e2f423c21f7b04 as useDroppableCollection, $bfaab576ce1c580e$export$f7b0c5d28b66b6a5 as useDroppableItem, $ddf25448c71fc93a$export$8d0e41d2815afac5 as useDropIndicator, $fd98cf7cbf233429$export$b35afafff42da2d9 as useDraggableItem, $9fcc7f0d70d084ee$export$2314ca2a3e892862 as useClipboard};
|
|
1805
1832
|
//# sourceMappingURL=module.js.map
|