@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/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $
|
|
7
|
-
var $
|
|
1
|
+
var $4vY0V$react = require("react");
|
|
2
|
+
var $4vY0V$reactdom = require("react-dom");
|
|
3
|
+
var $4vY0V$reactariautils = require("@react-aria/utils");
|
|
4
|
+
var $4vY0V$reactariai18n = require("@react-aria/i18n");
|
|
5
|
+
var $4vY0V$reactarialiveannouncer = require("@react-aria/live-announcer");
|
|
6
|
+
var $4vY0V$reactariaoverlays = require("@react-aria/overlays");
|
|
7
|
+
var $4vY0V$reactariainteractions = require("@react-aria/interactions");
|
|
8
8
|
|
|
9
9
|
function $parcel$exportWildcard(dest, source) {
|
|
10
10
|
Object.keys(source).forEach(function(key) {
|
|
@@ -28,85 +28,85 @@ function $parcel$interopDefault(a) {
|
|
|
28
28
|
function $parcel$export(e, n, v, s) {
|
|
29
29
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
30
30
|
}
|
|
31
|
-
var $
|
|
31
|
+
var $dc204e8ec58447a6$exports = {};
|
|
32
32
|
|
|
33
|
-
$parcel$export($
|
|
33
|
+
$parcel$export($dc204e8ec58447a6$exports, "useDrag", () => $dc204e8ec58447a6$export$7941f8aafa4b6021);
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
let $
|
|
38
|
-
(function($
|
|
39
|
-
$
|
|
40
|
-
$
|
|
41
|
-
$
|
|
42
|
-
$
|
|
43
|
-
$
|
|
44
|
-
$
|
|
45
|
-
})($
|
|
37
|
+
let $76b1e110a27b1ccd$export$60b7b4bcf3903d8e;
|
|
38
|
+
(function($76b1e110a27b1ccd$export$60b7b4bcf3903d8e) {
|
|
39
|
+
$76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["none"] = 0] = "none";
|
|
40
|
+
$76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["cancel"] = 0] = "cancel";
|
|
41
|
+
$76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["move"] = 1] = "move";
|
|
42
|
+
$76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["copy"] = 2] = "copy";
|
|
43
|
+
$76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["link"] = 4] = "link";
|
|
44
|
+
$76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["all"] = 7] = "all";
|
|
45
|
+
})($76b1e110a27b1ccd$export$60b7b4bcf3903d8e || ($76b1e110a27b1ccd$export$60b7b4bcf3903d8e = {
|
|
46
46
|
}));
|
|
47
|
-
const $
|
|
48
|
-
...$
|
|
49
|
-
copyMove: $
|
|
50
|
-
copyLink: $
|
|
51
|
-
linkMove: $
|
|
52
|
-
all: $
|
|
53
|
-
uninitialized: $
|
|
47
|
+
const $76b1e110a27b1ccd$export$9bbdfc78cf083e16 = {
|
|
48
|
+
...$76b1e110a27b1ccd$export$60b7b4bcf3903d8e,
|
|
49
|
+
copyMove: $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.copy | $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.move,
|
|
50
|
+
copyLink: $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.copy | $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.link,
|
|
51
|
+
linkMove: $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.link | $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.move,
|
|
52
|
+
all: $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.all,
|
|
53
|
+
uninitialized: $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.all
|
|
54
54
|
};
|
|
55
|
-
const $
|
|
56
|
-
const $
|
|
57
|
-
const $
|
|
55
|
+
const $76b1e110a27b1ccd$export$dd0165308d8bff45 = $76b1e110a27b1ccd$var$invert($76b1e110a27b1ccd$export$9bbdfc78cf083e16);
|
|
56
|
+
const $76b1e110a27b1ccd$export$d7ebf00f36b7a95e = $76b1e110a27b1ccd$var$invert($76b1e110a27b1ccd$export$60b7b4bcf3903d8e);
|
|
57
|
+
const $76b1e110a27b1ccd$export$608ecc6f1b23c35d = {
|
|
58
58
|
none: 'cancel',
|
|
59
59
|
link: 'link',
|
|
60
60
|
copy: 'copy',
|
|
61
61
|
move: 'move'
|
|
62
62
|
};
|
|
63
|
-
const $
|
|
64
|
-
function $
|
|
63
|
+
const $76b1e110a27b1ccd$export$5eacb0769d26d3b2 = $76b1e110a27b1ccd$var$invert($76b1e110a27b1ccd$export$608ecc6f1b23c35d);
|
|
64
|
+
function $76b1e110a27b1ccd$var$invert(object) {
|
|
65
65
|
let res = {
|
|
66
66
|
};
|
|
67
67
|
for(let key in object)res[object[key]] = key;
|
|
68
68
|
return res;
|
|
69
69
|
}
|
|
70
|
-
const $
|
|
70
|
+
const $76b1e110a27b1ccd$export$4a7729b856e9a690 = new Set([
|
|
71
71
|
'text/plain',
|
|
72
72
|
'text/uri-list',
|
|
73
73
|
'text/html'
|
|
74
74
|
]);
|
|
75
|
-
const $
|
|
76
|
-
const $
|
|
75
|
+
const $76b1e110a27b1ccd$export$fd9f9fc120c5402d = 'application/vnd.react-aria.items+json';
|
|
76
|
+
const $76b1e110a27b1ccd$export$f8fc6581787339b3 = 'application/octet-stream';
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
const $
|
|
82
|
-
function $
|
|
83
|
-
let id = $
|
|
84
|
-
$
|
|
81
|
+
const $4620ae0dc40f0031$var$droppableCollectionIds = new WeakMap();
|
|
82
|
+
function $4620ae0dc40f0031$export$b1601eb39394a581(state) {
|
|
83
|
+
let id = $4vY0V$reactariautils.useId();
|
|
84
|
+
$4620ae0dc40f0031$var$droppableCollectionIds.set(state, id);
|
|
85
85
|
return id;
|
|
86
86
|
}
|
|
87
|
-
function $
|
|
88
|
-
let id = $
|
|
87
|
+
function $4620ae0dc40f0031$export$3093291712f09a77(state) {
|
|
88
|
+
let id = $4620ae0dc40f0031$var$droppableCollectionIds.get(state);
|
|
89
89
|
if (!id) throw new Error('Droppable item outside a droppable collection');
|
|
90
90
|
return id;
|
|
91
91
|
}
|
|
92
|
-
function $
|
|
92
|
+
function $4620ae0dc40f0031$export$e1d41611756c6326(items) {
|
|
93
93
|
let types = new Set();
|
|
94
94
|
for (let item of items)for (let type of Object.keys(item))types.add(type);
|
|
95
95
|
return types;
|
|
96
96
|
}
|
|
97
|
-
function $
|
|
97
|
+
function $4620ae0dc40f0031$var$mapModality(modality) {
|
|
98
98
|
if (!modality) modality = 'virtual';
|
|
99
99
|
if (modality === 'pointer') modality = 'virtual';
|
|
100
100
|
if (modality === 'virtual' && 'ontouchstart' in window) modality = 'touch';
|
|
101
101
|
return modality;
|
|
102
102
|
}
|
|
103
|
-
function $
|
|
104
|
-
return $
|
|
103
|
+
function $4620ae0dc40f0031$export$49bac5d6d4b352ea() {
|
|
104
|
+
return $4620ae0dc40f0031$var$mapModality($4vY0V$reactariainteractions.useInteractionModality());
|
|
105
105
|
}
|
|
106
|
-
function $
|
|
107
|
-
return $
|
|
106
|
+
function $4620ae0dc40f0031$export$1fb2158d224b542c() {
|
|
107
|
+
return $4620ae0dc40f0031$var$mapModality($4vY0V$reactariainteractions.getInteractionModality());
|
|
108
108
|
}
|
|
109
|
-
function $
|
|
109
|
+
function $4620ae0dc40f0031$export$f9c1490890ddd063(dataTransfer, items) {
|
|
110
110
|
// The data transfer API doesn't support more than one item of a given type at once.
|
|
111
111
|
// In addition, only a small set of types are supported natively for transfer between applications.
|
|
112
112
|
// We allow for both multiple items, as well as multiple representations of a single item.
|
|
@@ -139,7 +139,7 @@ function $29c8537521cf08fe$export$f9c1490890ddd063(dataTransfer, items) {
|
|
|
139
139
|
}
|
|
140
140
|
customData.push(dataByType);
|
|
141
141
|
}
|
|
142
|
-
for (let [type, items1] of groupedByType)if ($
|
|
142
|
+
for (let [type, items1] of groupedByType)if ($76b1e110a27b1ccd$export$4a7729b856e9a690.has(type)) {
|
|
143
143
|
// Only one item of a given type can be set on a data transfer.
|
|
144
144
|
// Join all of the items together separated by newlines.
|
|
145
145
|
let data = items1.join('\n');
|
|
@@ -148,10 +148,10 @@ function $29c8537521cf08fe$export$f9c1490890ddd063(dataTransfer, items) {
|
|
|
148
148
|
dataTransfer.items.add(items1[0], type);
|
|
149
149
|
if (needsCustomData) {
|
|
150
150
|
let data = JSON.stringify(customData);
|
|
151
|
-
dataTransfer.items.add(data, $
|
|
151
|
+
dataTransfer.items.add(data, $76b1e110a27b1ccd$export$fd9f9fc120c5402d);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
class $
|
|
154
|
+
class $4620ae0dc40f0031$export$7f04ce188c91447c {
|
|
155
155
|
has(type) {
|
|
156
156
|
if (this.includesUnknownTypes) return true;
|
|
157
157
|
return this.types.has(type);
|
|
@@ -159,14 +159,14 @@ class $29c8537521cf08fe$export$7f04ce188c91447c {
|
|
|
159
159
|
constructor(dataTransfer){
|
|
160
160
|
this.types = new Set();
|
|
161
161
|
let hasFiles = false;
|
|
162
|
-
for (let item of dataTransfer.items)if (item.type !== $
|
|
162
|
+
for (let item of dataTransfer.items)if (item.type !== $76b1e110a27b1ccd$export$fd9f9fc120c5402d) {
|
|
163
163
|
if (item.kind === 'file') hasFiles = true;
|
|
164
164
|
if (item.type) this.types.add(item.type);
|
|
165
165
|
else // Files with unknown types or extensions that don't map to a known mime type
|
|
166
166
|
// are sometimes exposed as an empty string by the browser. Map to a generic
|
|
167
167
|
// mime type instead. Note that this could also be a directory as there's no
|
|
168
168
|
// way to determine if something is a file or directory until drop.
|
|
169
|
-
this.types.add($
|
|
169
|
+
this.types.add($76b1e110a27b1ccd$export$f8fc6581787339b3);
|
|
170
170
|
}
|
|
171
171
|
// In Safari, when dragging files, the dataTransfer.items list is empty, but dataTransfer.types contains "Files".
|
|
172
172
|
// Unfortunately, this doesn't tell us what types of files the user is dragging, so we need to assume that any
|
|
@@ -174,14 +174,14 @@ class $29c8537521cf08fe$export$7f04ce188c91447c {
|
|
|
174
174
|
this.includesUnknownTypes = !hasFiles && dataTransfer.types.includes('Files');
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
function $
|
|
177
|
+
function $4620ae0dc40f0031$export$d9e760437831f8b3(dataTransfer) {
|
|
178
178
|
let items = [];
|
|
179
179
|
// If our custom drag type is available, use that. This is a JSON serialized
|
|
180
180
|
// representation of all items in the drag, set when there are multiple items
|
|
181
181
|
// of the same type, or an individual item has multiple representations.
|
|
182
182
|
let hasCustomType = false;
|
|
183
|
-
if (dataTransfer.types.includes($
|
|
184
|
-
let data = dataTransfer.getData($
|
|
183
|
+
if (dataTransfer.types.includes($76b1e110a27b1ccd$export$fd9f9fc120c5402d)) try {
|
|
184
|
+
let data = dataTransfer.getData($76b1e110a27b1ccd$export$fd9f9fc120c5402d);
|
|
185
185
|
let parsed = JSON.parse(data);
|
|
186
186
|
for (let item of parsed)items.push({
|
|
187
187
|
kind: 'text',
|
|
@@ -199,7 +199,7 @@ function $29c8537521cf08fe$export$d9e760437831f8b3(dataTransfer) {
|
|
|
199
199
|
if (item.kind === 'string') // The data for all formats must be read here because the data transfer gets
|
|
200
200
|
// cleared out after the event handler finishes. If the item has an empty string
|
|
201
201
|
// as a type, the mime type is unknown. Map to a generic mime type instead.
|
|
202
|
-
stringItems.set(item.type || $
|
|
202
|
+
stringItems.set(item.type || $76b1e110a27b1ccd$export$f8fc6581787339b3, dataTransfer.getData(item.type));
|
|
203
203
|
else if (item.kind === 'file') {
|
|
204
204
|
// Despite the name, webkitGetAsEntry is also implemented in Firefox and Edge.
|
|
205
205
|
// In the future, we may use getAsFileSystemHandle instead, but that's currently
|
|
@@ -207,10 +207,10 @@ function $29c8537521cf08fe$export$d9e760437831f8b3(dataTransfer) {
|
|
|
207
207
|
if (typeof item.webkitGetAsEntry === 'function') {
|
|
208
208
|
let entry = item.webkitGetAsEntry();
|
|
209
209
|
if (!entry) continue;
|
|
210
|
-
if (entry.isFile) items.push($
|
|
211
|
-
else if (entry.isDirectory) items.push($
|
|
210
|
+
if (entry.isFile) items.push($4620ae0dc40f0031$var$createFileItem(item.getAsFile()));
|
|
211
|
+
else if (entry.isDirectory) items.push($4620ae0dc40f0031$var$createDirectoryItem(entry));
|
|
212
212
|
} else // Assume it's a file.
|
|
213
|
-
items.push($
|
|
213
|
+
items.push($4620ae0dc40f0031$var$createFileItem(item.getAsFile()));
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
// All string items are different representations of the same item. There's no way to have
|
|
@@ -223,7 +223,7 @@ function $29c8537521cf08fe$export$d9e760437831f8b3(dataTransfer) {
|
|
|
223
223
|
}
|
|
224
224
|
return items;
|
|
225
225
|
}
|
|
226
|
-
function $
|
|
226
|
+
function $4620ae0dc40f0031$var$blobToString(blob) {
|
|
227
227
|
if (typeof blob.text === 'function') return blob.text();
|
|
228
228
|
// Safari doesn't have the Blob#text() method yet...
|
|
229
229
|
return new Promise((resolve, reject)=>{
|
|
@@ -235,24 +235,24 @@ function $29c8537521cf08fe$var$blobToString(blob) {
|
|
|
235
235
|
reader.readAsText(blob);
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function $
|
|
238
|
+
function $4620ae0dc40f0031$var$createFileItem(file) {
|
|
239
239
|
return {
|
|
240
240
|
kind: 'file',
|
|
241
|
-
type: file.type || $
|
|
241
|
+
type: file.type || $76b1e110a27b1ccd$export$f8fc6581787339b3,
|
|
242
242
|
name: file.name,
|
|
243
|
-
getText: ()=>$
|
|
243
|
+
getText: ()=>$4620ae0dc40f0031$var$blobToString(file)
|
|
244
244
|
,
|
|
245
245
|
getFile: ()=>Promise.resolve(file)
|
|
246
246
|
};
|
|
247
247
|
}
|
|
248
|
-
function $
|
|
248
|
+
function $4620ae0dc40f0031$var$createDirectoryItem(entry) {
|
|
249
249
|
return {
|
|
250
250
|
kind: 'directory',
|
|
251
251
|
name: entry.name,
|
|
252
|
-
getEntries: ()=>$
|
|
252
|
+
getEntries: ()=>$4620ae0dc40f0031$var$getEntries(entry)
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
async function* $
|
|
255
|
+
async function* $4620ae0dc40f0031$var$getEntries(item) {
|
|
256
256
|
let reader = item.createReader();
|
|
257
257
|
// We must call readEntries repeatedly because there may be a limit to the
|
|
258
258
|
// number of entries that are returned at once.
|
|
@@ -263,63 +263,69 @@ async function* $29c8537521cf08fe$var$getEntries(item) {
|
|
|
263
263
|
});
|
|
264
264
|
for (let entry of entries){
|
|
265
265
|
if (entry.isFile) {
|
|
266
|
-
let file = await $
|
|
267
|
-
yield $
|
|
268
|
-
} else if (entry.isDirectory) yield $
|
|
266
|
+
let file = await $4620ae0dc40f0031$var$getEntryFile(entry);
|
|
267
|
+
yield $4620ae0dc40f0031$var$createFileItem(file);
|
|
268
|
+
} else if (entry.isDirectory) yield $4620ae0dc40f0031$var$createDirectoryItem(entry);
|
|
269
269
|
}
|
|
270
270
|
}while (entries.length > 0)
|
|
271
271
|
}
|
|
272
|
-
function $
|
|
272
|
+
function $4620ae0dc40f0031$var$getEntryFile(entry) {
|
|
273
273
|
return new Promise((resolve, reject)=>entry.file(resolve, reject)
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
|
|
278
278
|
|
|
279
|
-
let $
|
|
280
|
-
let $
|
|
281
|
-
let $
|
|
282
|
-
let $
|
|
283
|
-
function $
|
|
284
|
-
$
|
|
285
|
-
$
|
|
279
|
+
let $28e10663603f5ea1$var$dropTargets = new Map();
|
|
280
|
+
let $28e10663603f5ea1$var$dropItems = new Map();
|
|
281
|
+
let $28e10663603f5ea1$var$dragSession = null;
|
|
282
|
+
let $28e10663603f5ea1$var$subscriptions = new Set();
|
|
283
|
+
function $28e10663603f5ea1$export$c28d9fb4a54e471a(target) {
|
|
284
|
+
$28e10663603f5ea1$var$dropTargets.set(target.element, target);
|
|
285
|
+
$28e10663603f5ea1$var$dragSession === null || $28e10663603f5ea1$var$dragSession === void 0 ? void 0 : $28e10663603f5ea1$var$dragSession.updateValidDropTargets();
|
|
286
286
|
return ()=>{
|
|
287
|
-
$
|
|
288
|
-
$
|
|
287
|
+
$28e10663603f5ea1$var$dropTargets.delete(target.element);
|
|
288
|
+
$28e10663603f5ea1$var$dragSession === null || $28e10663603f5ea1$var$dragSession === void 0 ? void 0 : $28e10663603f5ea1$var$dragSession.updateValidDropTargets();
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
function $
|
|
292
|
-
$
|
|
291
|
+
function $28e10663603f5ea1$export$aef80212ac99c003(item) {
|
|
292
|
+
$28e10663603f5ea1$var$dropItems.set(item.element, item);
|
|
293
293
|
return ()=>{
|
|
294
|
-
$
|
|
294
|
+
$28e10663603f5ea1$var$dropItems.delete(item.element);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function $
|
|
298
|
-
if ($
|
|
299
|
-
$
|
|
297
|
+
function $28e10663603f5ea1$export$549dbcf8649bf3b2(target, formatMessage) {
|
|
298
|
+
if ($28e10663603f5ea1$var$dragSession) throw new Error('Cannot begin dragging while already dragging');
|
|
299
|
+
$28e10663603f5ea1$var$dragSession = new $28e10663603f5ea1$var$DragSession(target, formatMessage);
|
|
300
300
|
requestAnimationFrame(()=>{
|
|
301
|
-
$
|
|
302
|
-
if ($
|
|
301
|
+
$28e10663603f5ea1$var$dragSession.setup();
|
|
302
|
+
if ($4620ae0dc40f0031$export$1fb2158d224b542c() === 'keyboard') $28e10663603f5ea1$var$dragSession.next();
|
|
303
303
|
});
|
|
304
|
-
for (let cb of $
|
|
304
|
+
for (let cb of $28e10663603f5ea1$var$subscriptions)cb();
|
|
305
305
|
}
|
|
306
|
-
function $
|
|
307
|
-
let [session, setSession] = $
|
|
308
|
-
$
|
|
309
|
-
let cb = ()=>setSession($
|
|
306
|
+
function $28e10663603f5ea1$export$418e185dd3f1b968() {
|
|
307
|
+
let [session, setSession] = $4vY0V$react.useState($28e10663603f5ea1$var$dragSession);
|
|
308
|
+
$4vY0V$react.useEffect(()=>{
|
|
309
|
+
let cb = ()=>setSession($28e10663603f5ea1$var$dragSession)
|
|
310
310
|
;
|
|
311
|
-
$
|
|
311
|
+
$28e10663603f5ea1$var$subscriptions.add(cb);
|
|
312
312
|
return ()=>{
|
|
313
|
-
$
|
|
313
|
+
$28e10663603f5ea1$var$subscriptions.delete(cb);
|
|
314
314
|
};
|
|
315
315
|
}, []);
|
|
316
316
|
return session;
|
|
317
317
|
}
|
|
318
|
-
function $
|
|
319
|
-
$
|
|
320
|
-
for (let cb of $
|
|
318
|
+
function $28e10663603f5ea1$var$endDragging() {
|
|
319
|
+
$28e10663603f5ea1$var$dragSession = null;
|
|
320
|
+
for (let cb of $28e10663603f5ea1$var$subscriptions)cb();
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
function $28e10663603f5ea1$export$7454aff2e161f241(element) {
|
|
323
|
+
for (let target of $28e10663603f5ea1$var$dropTargets.keys()){
|
|
324
|
+
if (target.contains(element)) return true;
|
|
325
|
+
}
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
328
|
+
const $28e10663603f5ea1$var$CANCELED_EVENTS = [
|
|
323
329
|
'pointerdown',
|
|
324
330
|
'pointermove',
|
|
325
331
|
'pointerenter',
|
|
@@ -341,34 +347,34 @@ const $7b1813d52b80b911$var$CANCELED_EVENTS = [
|
|
|
341
347
|
'focusin',
|
|
342
348
|
'focusout'
|
|
343
349
|
];
|
|
344
|
-
const $
|
|
350
|
+
const $28e10663603f5ea1$var$CLICK_EVENTS = [
|
|
345
351
|
'pointerup',
|
|
346
352
|
'mouseup',
|
|
347
353
|
'touchend'
|
|
348
354
|
];
|
|
349
|
-
const $
|
|
355
|
+
const $28e10663603f5ea1$var$MESSAGES = {
|
|
350
356
|
keyboard: 'dragStartedKeyboard',
|
|
351
357
|
touch: 'dragStartedTouch',
|
|
352
358
|
virtual: 'dragStartedVirtual'
|
|
353
359
|
};
|
|
354
|
-
class $
|
|
360
|
+
class $28e10663603f5ea1$var$DragSession {
|
|
355
361
|
setup() {
|
|
356
362
|
document.addEventListener('keydown', this.onKeyDown, true);
|
|
357
363
|
window.addEventListener('focus', this.onFocus, true);
|
|
358
364
|
window.addEventListener('blur', this.onBlur, true);
|
|
359
365
|
document.addEventListener('click', this.onClick, true);
|
|
360
|
-
for (let event of $
|
|
366
|
+
for (let event of $28e10663603f5ea1$var$CANCELED_EVENTS)document.addEventListener(event, this.cancelEvent, true);
|
|
361
367
|
this.mutationObserver = new MutationObserver(()=>this.updateValidDropTargets()
|
|
362
368
|
);
|
|
363
369
|
this.updateValidDropTargets();
|
|
364
|
-
$
|
|
370
|
+
$4vY0V$reactarialiveannouncer.announce(this.formatMessage($28e10663603f5ea1$var$MESSAGES[$4620ae0dc40f0031$export$1fb2158d224b542c()]));
|
|
365
371
|
}
|
|
366
372
|
teardown() {
|
|
367
373
|
document.removeEventListener('keydown', this.onKeyDown, true);
|
|
368
374
|
window.removeEventListener('focus', this.onFocus, true);
|
|
369
375
|
window.removeEventListener('blur', this.onBlur, true);
|
|
370
376
|
document.removeEventListener('click', this.onClick, true);
|
|
371
|
-
for (let event of $
|
|
377
|
+
for (let event of $28e10663603f5ea1$var$CANCELED_EVENTS)document.removeEventListener(event, this.cancelEvent, true);
|
|
372
378
|
this.mutationObserver.disconnect();
|
|
373
379
|
this.restoreAriaHidden();
|
|
374
380
|
if (this.mutationImmediate) clearImmediate(this.mutationImmediate);
|
|
@@ -403,7 +409,7 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
403
409
|
else this.dragTarget.element.focus();
|
|
404
410
|
return;
|
|
405
411
|
}
|
|
406
|
-
let item = $
|
|
412
|
+
let item = $28e10663603f5ea1$var$dropItems.get(e.target);
|
|
407
413
|
this.setCurrentDropTarget(dropTarget, item);
|
|
408
414
|
}
|
|
409
415
|
onBlur(e) {
|
|
@@ -425,14 +431,17 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
425
431
|
let dropTarget = this.validDropTargets.find((target)=>target.element.contains(e.target)
|
|
426
432
|
);
|
|
427
433
|
if (dropTarget) {
|
|
428
|
-
let item = $
|
|
434
|
+
let item = $28e10663603f5ea1$var$dropItems.get(e.target);
|
|
429
435
|
this.setCurrentDropTarget(dropTarget, item);
|
|
430
436
|
this.drop(item);
|
|
431
437
|
}
|
|
432
438
|
}
|
|
433
439
|
cancelEvent(e) {
|
|
440
|
+
var ref;
|
|
441
|
+
// Allow focusin and focusout on the drag target so focus ring works properly.
|
|
442
|
+
if ((e.type === 'focusin' || e.type === 'focusout') && e.target === ((ref = this.dragTarget) === null || ref === void 0 ? void 0 : ref.element)) return;
|
|
434
443
|
// Allow default for events that might cancel a click event
|
|
435
|
-
if (!$
|
|
444
|
+
if (!$28e10663603f5ea1$var$CLICK_EVENTS.includes(e.type)) e.preventDefault();
|
|
436
445
|
e.stopPropagation();
|
|
437
446
|
e.stopImmediatePropagation();
|
|
438
447
|
}
|
|
@@ -440,12 +449,12 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
440
449
|
if (!this.mutationObserver) return;
|
|
441
450
|
this.mutationObserver.disconnect();
|
|
442
451
|
if (this.restoreAriaHidden) this.restoreAriaHidden();
|
|
443
|
-
this.validDropTargets = $
|
|
452
|
+
this.validDropTargets = $28e10663603f5ea1$var$findValidDropTargets(this.dragTarget);
|
|
444
453
|
if (this.currentDropTarget && !this.validDropTargets.includes(this.currentDropTarget)) this.setCurrentDropTarget(this.validDropTargets[0]);
|
|
445
454
|
// Find valid drop items within collections
|
|
446
|
-
let types = $
|
|
455
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(this.dragTarget.items);
|
|
447
456
|
let validDropItems = [
|
|
448
|
-
...$
|
|
457
|
+
...$28e10663603f5ea1$var$dropItems.values()
|
|
449
458
|
].filter((item)=>{
|
|
450
459
|
if (typeof item.getDropOperation === 'function') return item.getDropOperation(types, this.dragTarget.allowedDropOperations) !== 'cancel';
|
|
451
460
|
return true;
|
|
@@ -455,7 +464,7 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
455
464
|
let visibleDropTargets = this.validDropTargets.filter((target)=>!validDropItems.some((item)=>target.element.contains(item.element)
|
|
456
465
|
)
|
|
457
466
|
);
|
|
458
|
-
this.restoreAriaHidden = $
|
|
467
|
+
this.restoreAriaHidden = $4vY0V$reactariaoverlays.ariaHideOutside([
|
|
459
468
|
this.dragTarget.element,
|
|
460
469
|
...validDropItems.map((item)=>item.element
|
|
461
470
|
),
|
|
@@ -549,13 +558,18 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
549
558
|
dropOperation: this.dropOperation
|
|
550
559
|
});
|
|
551
560
|
}
|
|
561
|
+
// Blur and re-focus the drop target so that the focus ring appears.
|
|
562
|
+
if (this.currentDropTarget) {
|
|
563
|
+
this.currentDropTarget.element.blur();
|
|
564
|
+
this.currentDropTarget.element.focus();
|
|
565
|
+
}
|
|
552
566
|
this.setCurrentDropTarget(null);
|
|
553
|
-
$
|
|
567
|
+
$28e10663603f5ea1$var$endDragging();
|
|
554
568
|
}
|
|
555
569
|
cancel() {
|
|
556
570
|
this.end();
|
|
557
571
|
if (!this.dragTarget.element.closest('[aria-hidden="true"]')) this.dragTarget.element.focus();
|
|
558
|
-
$
|
|
572
|
+
$4vY0V$reactarialiveannouncer.announce(this.formatMessage('dropCanceled'));
|
|
559
573
|
}
|
|
560
574
|
drop(item1) {
|
|
561
575
|
if (!this.currentDropTarget) {
|
|
@@ -563,10 +577,10 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
563
577
|
return;
|
|
564
578
|
}
|
|
565
579
|
if (typeof (item1 === null || item1 === void 0 ? void 0 : item1.getDropOperation) === 'function') {
|
|
566
|
-
let types = $
|
|
580
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(this.dragTarget.items);
|
|
567
581
|
this.dropOperation = item1.getDropOperation(types, this.dragTarget.allowedDropOperations);
|
|
568
582
|
} else if (typeof this.currentDropTarget.getDropOperation === 'function') {
|
|
569
|
-
let types = $
|
|
583
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(this.dragTarget.items);
|
|
570
584
|
this.dropOperation = this.currentDropTarget.getDropOperation(types, this.dragTarget.allowedDropOperations);
|
|
571
585
|
} else // TODO: show menu ??
|
|
572
586
|
this.dropOperation = this.dragTarget.allowedDropOperations[0];
|
|
@@ -587,7 +601,7 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
587
601
|
}, item1 === null || item1 === void 0 ? void 0 : item1.target);
|
|
588
602
|
}
|
|
589
603
|
this.end();
|
|
590
|
-
$
|
|
604
|
+
$4vY0V$reactarialiveannouncer.announce(this.formatMessage('dropComplete'));
|
|
591
605
|
}
|
|
592
606
|
activate() {
|
|
593
607
|
if (this.currentDropTarget && typeof this.currentDropTarget.onDropActivate === 'function') {
|
|
@@ -609,10 +623,10 @@ class $7b1813d52b80b911$var$DragSession {
|
|
|
609
623
|
this.cancelEvent = this.cancelEvent.bind(this);
|
|
610
624
|
}
|
|
611
625
|
}
|
|
612
|
-
function $
|
|
613
|
-
let types = $
|
|
626
|
+
function $28e10663603f5ea1$var$findValidDropTargets(options) {
|
|
627
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(options.items);
|
|
614
628
|
return [
|
|
615
|
-
...$
|
|
629
|
+
...$28e10663603f5ea1$var$dropTargets.values()
|
|
616
630
|
].filter((target)=>{
|
|
617
631
|
if (target.element.closest('[aria-hidden="true"]')) return false;
|
|
618
632
|
if (typeof target.getDropOperation === 'function') return target.getDropOperation(types, options.allowedDropOperations) !== 'cancel';
|
|
@@ -622,178 +636,178 @@ function $7b1813d52b80b911$var$findValidDropTargets(options) {
|
|
|
622
636
|
|
|
623
637
|
|
|
624
638
|
|
|
625
|
-
var $
|
|
626
|
-
var $
|
|
627
|
-
$
|
|
639
|
+
var $d624b4da796f302a$exports = {};
|
|
640
|
+
var $12ee6b0bfb4232ad$exports = {};
|
|
641
|
+
$12ee6b0bfb4232ad$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}\"}");
|
|
628
642
|
|
|
629
643
|
|
|
630
|
-
var $
|
|
631
|
-
$
|
|
644
|
+
var $e21ef7c55796c5e1$exports = {};
|
|
645
|
+
$e21ef7c55796c5e1$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 $dfa9cd1c2317d9aa$exports = {};
|
|
649
|
+
$dfa9cd1c2317d9aa$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}\"}");
|
|
636
650
|
|
|
637
651
|
|
|
638
|
-
var $
|
|
639
|
-
$
|
|
652
|
+
var $65fff3bbacfa8956$exports = {};
|
|
653
|
+
$65fff3bbacfa8956$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}\"}");
|
|
640
654
|
|
|
641
655
|
|
|
642
|
-
var $
|
|
643
|
-
$
|
|
656
|
+
var $10b7dfe45cd41c2d$exports = {};
|
|
657
|
+
$10b7dfe45cd41c2d$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\"}");
|
|
644
658
|
|
|
645
659
|
|
|
646
|
-
var $
|
|
647
|
-
$
|
|
660
|
+
var $0cadcffb7abc96b8$exports = {};
|
|
661
|
+
$0cadcffb7abc96b8$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}\"}");
|
|
648
662
|
|
|
649
663
|
|
|
650
|
-
var $
|
|
651
|
-
$
|
|
664
|
+
var $7e3982b34ddf1bdf$exports = {};
|
|
665
|
+
$7e3982b34ddf1bdf$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}\"}");
|
|
652
666
|
|
|
653
667
|
|
|
654
|
-
var $
|
|
655
|
-
$
|
|
668
|
+
var $cb29ce0b655c4023$exports = {};
|
|
669
|
+
$cb29ce0b655c4023$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}\"}");
|
|
656
670
|
|
|
657
671
|
|
|
658
|
-
var $
|
|
659
|
-
$
|
|
672
|
+
var $067d46bab80bcf4b$exports = {};
|
|
673
|
+
$067d46bab80bcf4b$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\"}");
|
|
660
674
|
|
|
661
675
|
|
|
662
|
-
var $
|
|
663
|
-
$
|
|
676
|
+
var $8aa1b9a1f9d783d3$exports = {};
|
|
677
|
+
$8aa1b9a1f9d783d3$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\"}");
|
|
664
678
|
|
|
665
679
|
|
|
666
|
-
var $
|
|
667
|
-
$
|
|
680
|
+
var $9e248ec27f7dc55f$exports = {};
|
|
681
|
+
$9e248ec27f7dc55f$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}\"}");
|
|
668
682
|
|
|
669
683
|
|
|
670
|
-
var $
|
|
671
|
-
$
|
|
684
|
+
var $6387f7228f0de45e$exports = {};
|
|
685
|
+
$6387f7228f0de45e$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}\"}");
|
|
672
686
|
|
|
673
687
|
|
|
674
|
-
var $
|
|
675
|
-
$
|
|
688
|
+
var $34a283567735f754$exports = {};
|
|
689
|
+
$34a283567735f754$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}\"}");
|
|
676
690
|
|
|
677
691
|
|
|
678
|
-
var $
|
|
679
|
-
$
|
|
692
|
+
var $466590c56bee4342$exports = {};
|
|
693
|
+
$466590c56bee4342$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é\"}");
|
|
680
694
|
|
|
681
695
|
|
|
682
|
-
var $
|
|
683
|
-
$
|
|
696
|
+
var $e013896dcb6a6884$exports = {};
|
|
697
|
+
$e013896dcb6a6884$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}\"}");
|
|
684
698
|
|
|
685
699
|
|
|
686
|
-
var $
|
|
687
|
-
$
|
|
700
|
+
var $d6121e4246c6e502$exports = {};
|
|
701
|
+
$d6121e4246c6e502$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} の間に挿入\"}");
|
|
688
702
|
|
|
689
703
|
|
|
690
|
-
var $
|
|
691
|
-
$
|
|
704
|
+
var $cf48a963c482dcba$exports = {};
|
|
705
|
+
$cf48a963c482dcba$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} 사이에 삽입\"}");
|
|
692
706
|
|
|
693
707
|
|
|
694
|
-
var $
|
|
695
|
-
$
|
|
708
|
+
var $b156071f04f1c899$exports = {};
|
|
709
|
+
$b156071f04f1c899$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}\"}");
|
|
696
710
|
|
|
697
711
|
|
|
698
|
-
var $
|
|
699
|
-
$
|
|
712
|
+
var $5300be8ef98d39fa$exports = {};
|
|
713
|
+
$5300be8ef98d39fa$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}\"}");
|
|
700
714
|
|
|
701
715
|
|
|
702
|
-
var $
|
|
703
|
-
$
|
|
716
|
+
var $7484477aad199932$exports = {};
|
|
717
|
+
$7484477aad199932$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}\"}");
|
|
704
718
|
|
|
705
719
|
|
|
706
|
-
var $
|
|
707
|
-
$
|
|
720
|
+
var $968e09cb41d6cd76$exports = {};
|
|
721
|
+
$968e09cb41d6cd76$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}\"}");
|
|
708
722
|
|
|
709
723
|
|
|
710
|
-
var $
|
|
711
|
-
$
|
|
724
|
+
var $0c2c6c954dd638d7$exports = {};
|
|
725
|
+
$0c2c6c954dd638d7$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}\"}");
|
|
712
726
|
|
|
713
727
|
|
|
714
|
-
var $
|
|
715
|
-
$
|
|
728
|
+
var $db510f249c1f2e00$exports = {};
|
|
729
|
+
$db510f249c1f2e00$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}\"}");
|
|
716
730
|
|
|
717
731
|
|
|
718
|
-
var $
|
|
719
|
-
$
|
|
732
|
+
var $d734686296d37387$exports = {};
|
|
733
|
+
$d734686296d37387$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}\"}");
|
|
720
734
|
|
|
721
735
|
|
|
722
|
-
var $
|
|
723
|
-
$
|
|
736
|
+
var $d239d4998a584a23$exports = {};
|
|
737
|
+
$d239d4998a584a23$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}\"}");
|
|
724
738
|
|
|
725
739
|
|
|
726
|
-
var $
|
|
727
|
-
$
|
|
740
|
+
var $a06126b47eabe64f$exports = {};
|
|
741
|
+
$a06126b47eabe64f$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}\"}");
|
|
728
742
|
|
|
729
743
|
|
|
730
|
-
var $
|
|
731
|
-
$
|
|
744
|
+
var $0983413fc05d96fb$exports = {};
|
|
745
|
+
$0983413fc05d96fb$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}\"}");
|
|
732
746
|
|
|
733
747
|
|
|
734
|
-
var $
|
|
735
|
-
$
|
|
748
|
+
var $c66896a0464692f1$exports = {};
|
|
749
|
+
$c66896a0464692f1$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}\"}");
|
|
736
750
|
|
|
737
751
|
|
|
738
|
-
var $
|
|
739
|
-
$
|
|
752
|
+
var $f0d9abe43a1bcdf6$exports = {};
|
|
753
|
+
$f0d9abe43a1bcdf6$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}\"}");
|
|
740
754
|
|
|
741
755
|
|
|
742
|
-
var $
|
|
743
|
-
$
|
|
756
|
+
var $f3e2ce4b6d6cc4ac$exports = {};
|
|
757
|
+
$f3e2ce4b6d6cc4ac$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}\"}");
|
|
744
758
|
|
|
745
759
|
|
|
746
|
-
var $
|
|
747
|
-
$
|
|
760
|
+
var $da91b0d12d273475$exports = {};
|
|
761
|
+
$da91b0d12d273475$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\"}");
|
|
748
762
|
|
|
749
763
|
|
|
750
|
-
var $
|
|
751
|
-
$
|
|
764
|
+
var $d6f72e28f0f4871c$exports = {};
|
|
765
|
+
$d6f72e28f0f4871c$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}\"}");
|
|
752
766
|
|
|
753
767
|
|
|
754
|
-
var $
|
|
755
|
-
$
|
|
768
|
+
var $187738fbdc896f75$exports = {};
|
|
769
|
+
$187738fbdc896f75$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} 之间\"}");
|
|
756
770
|
|
|
757
771
|
|
|
758
|
-
var $
|
|
759
|
-
$
|
|
772
|
+
var $80cfc1f1f7d356d3$exports = {};
|
|
773
|
+
$80cfc1f1f7d356d3$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}」之間\"}");
|
|
760
774
|
|
|
761
775
|
|
|
762
|
-
$
|
|
763
|
-
"ar-AE": $
|
|
764
|
-
"bg-BG": $
|
|
765
|
-
"cs-CZ": $
|
|
766
|
-
"da-DK": $
|
|
767
|
-
"de-DE": $
|
|
768
|
-
"el-GR": $
|
|
769
|
-
"en-US": $
|
|
770
|
-
"es-ES": $
|
|
771
|
-
"et-EE": $
|
|
772
|
-
"fi-FI": $
|
|
773
|
-
"fr-FR": $
|
|
774
|
-
"he-IL": $
|
|
775
|
-
"hr-HR": $
|
|
776
|
-
"hu-HU": $
|
|
777
|
-
"it-IT": $
|
|
778
|
-
"ja-JP": $
|
|
779
|
-
"ko-KR": $
|
|
780
|
-
"lt-LT": $
|
|
781
|
-
"lv-LV": $
|
|
782
|
-
"nb-NO": $
|
|
783
|
-
"nl-NL": $
|
|
784
|
-
"pl-PL": $
|
|
785
|
-
"pt-BR": $
|
|
786
|
-
"pt-PT": $
|
|
787
|
-
"ro-RO": $
|
|
788
|
-
"ru-RU": $
|
|
789
|
-
"sk-SK": $
|
|
790
|
-
"sl-SI": $
|
|
791
|
-
"sr-SP": $
|
|
792
|
-
"sv-SE": $
|
|
793
|
-
"tr-TR": $
|
|
794
|
-
"uk-UA": $
|
|
795
|
-
"zh-CN": $
|
|
796
|
-
"zh-TW": $
|
|
776
|
+
$d624b4da796f302a$exports = {
|
|
777
|
+
"ar-AE": $12ee6b0bfb4232ad$exports,
|
|
778
|
+
"bg-BG": $e21ef7c55796c5e1$exports,
|
|
779
|
+
"cs-CZ": $dfa9cd1c2317d9aa$exports,
|
|
780
|
+
"da-DK": $65fff3bbacfa8956$exports,
|
|
781
|
+
"de-DE": $10b7dfe45cd41c2d$exports,
|
|
782
|
+
"el-GR": $0cadcffb7abc96b8$exports,
|
|
783
|
+
"en-US": $7e3982b34ddf1bdf$exports,
|
|
784
|
+
"es-ES": $cb29ce0b655c4023$exports,
|
|
785
|
+
"et-EE": $067d46bab80bcf4b$exports,
|
|
786
|
+
"fi-FI": $8aa1b9a1f9d783d3$exports,
|
|
787
|
+
"fr-FR": $9e248ec27f7dc55f$exports,
|
|
788
|
+
"he-IL": $6387f7228f0de45e$exports,
|
|
789
|
+
"hr-HR": $34a283567735f754$exports,
|
|
790
|
+
"hu-HU": $466590c56bee4342$exports,
|
|
791
|
+
"it-IT": $e013896dcb6a6884$exports,
|
|
792
|
+
"ja-JP": $d6121e4246c6e502$exports,
|
|
793
|
+
"ko-KR": $cf48a963c482dcba$exports,
|
|
794
|
+
"lt-LT": $b156071f04f1c899$exports,
|
|
795
|
+
"lv-LV": $5300be8ef98d39fa$exports,
|
|
796
|
+
"nb-NO": $7484477aad199932$exports,
|
|
797
|
+
"nl-NL": $968e09cb41d6cd76$exports,
|
|
798
|
+
"pl-PL": $0c2c6c954dd638d7$exports,
|
|
799
|
+
"pt-BR": $db510f249c1f2e00$exports,
|
|
800
|
+
"pt-PT": $d734686296d37387$exports,
|
|
801
|
+
"ro-RO": $d239d4998a584a23$exports,
|
|
802
|
+
"ru-RU": $a06126b47eabe64f$exports,
|
|
803
|
+
"sk-SK": $0983413fc05d96fb$exports,
|
|
804
|
+
"sl-SI": $c66896a0464692f1$exports,
|
|
805
|
+
"sr-SP": $f0d9abe43a1bcdf6$exports,
|
|
806
|
+
"sv-SE": $f3e2ce4b6d6cc4ac$exports,
|
|
807
|
+
"tr-TR": $da91b0d12d273475$exports,
|
|
808
|
+
"uk-UA": $d6f72e28f0f4871c$exports,
|
|
809
|
+
"zh-CN": $187738fbdc896f75$exports,
|
|
810
|
+
"zh-TW": $80cfc1f1f7d356d3$exports
|
|
797
811
|
};
|
|
798
812
|
|
|
799
813
|
|
|
@@ -802,7 +816,7 @@ $6dae25bfb54cafe2$exports = {
|
|
|
802
816
|
|
|
803
817
|
|
|
804
818
|
|
|
805
|
-
const $
|
|
819
|
+
const $dc204e8ec58447a6$var$MESSAGES = {
|
|
806
820
|
keyboard: {
|
|
807
821
|
start: 'dragDescriptionKeyboard',
|
|
808
822
|
end: 'endDragKeyboard'
|
|
@@ -816,23 +830,24 @@ const $e2630e07d35639b3$var$MESSAGES = {
|
|
|
816
830
|
end: 'endDragVirtual'
|
|
817
831
|
}
|
|
818
832
|
};
|
|
819
|
-
function $
|
|
820
|
-
let formatMessage = $
|
|
821
|
-
let state = $
|
|
833
|
+
function $dc204e8ec58447a6$export$7941f8aafa4b6021(options) {
|
|
834
|
+
let formatMessage = $4vY0V$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d624b4da796f302a$exports)));
|
|
835
|
+
let state = $4vY0V$react.useRef({
|
|
822
836
|
options: options,
|
|
823
837
|
x: 0,
|
|
824
838
|
y: 0
|
|
825
839
|
}).current;
|
|
826
840
|
state.options = options;
|
|
827
|
-
let [isDragging, setDragging] = $
|
|
828
|
-
let
|
|
841
|
+
let [isDragging, setDragging] = $4vY0V$react.useState(false);
|
|
842
|
+
let { addGlobalListener: addGlobalListener , removeAllGlobalListeners: removeAllGlobalListeners } = $4vY0V$reactariautils.useGlobalListeners();
|
|
843
|
+
let onDragStart = (e1)=>{
|
|
829
844
|
let items = options.getItems();
|
|
830
|
-
$
|
|
845
|
+
$4620ae0dc40f0031$export$f9c1490890ddd063(e1.dataTransfer, items);
|
|
831
846
|
if (typeof options.getAllowedDropOperations === 'function') {
|
|
832
847
|
let allowedOperations = options.getAllowedDropOperations();
|
|
833
|
-
let allowed = $
|
|
834
|
-
for (let operation of allowedOperations)allowed |= $
|
|
835
|
-
|
|
848
|
+
let allowed = $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.none;
|
|
849
|
+
for (let operation of allowedOperations)allowed |= $76b1e110a27b1ccd$export$60b7b4bcf3903d8e[operation] || $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.none;
|
|
850
|
+
e1.dataTransfer.effectAllowed = $76b1e110a27b1ccd$export$dd0165308d8bff45[allowed] || 'none';
|
|
836
851
|
}
|
|
837
852
|
// If there is a renderPreview function, use it to render a custom preview image that will
|
|
838
853
|
// appear under the pointer while dragging. If not, the element itself is dragged by the browser.
|
|
@@ -847,32 +862,43 @@ function $e2630e07d35639b3$export$7941f8aafa4b6021(options) {
|
|
|
847
862
|
node.style.left = '-100000px';
|
|
848
863
|
document.body.appendChild(node);
|
|
849
864
|
// Call renderPreview to get a JSX element, and render it into the div with React DOM.
|
|
850
|
-
($parcel$interopDefault($
|
|
865
|
+
($parcel$interopDefault($4vY0V$reactdom)).render(preview, node);
|
|
851
866
|
// Compute the offset that the preview will appear under the mouse.
|
|
852
867
|
// If possible, this is based on the point the user clicked on the target.
|
|
853
868
|
// If the preview is much smaller, then just use the center point of the preview.
|
|
854
869
|
let size = node.getBoundingClientRect();
|
|
855
|
-
let rect =
|
|
856
|
-
let x =
|
|
857
|
-
let y =
|
|
870
|
+
let rect = e1.currentTarget.getBoundingClientRect();
|
|
871
|
+
let x = e1.clientX - rect.x;
|
|
872
|
+
let y = e1.clientY - rect.y;
|
|
858
873
|
if (x > size.width || y > size.height) {
|
|
859
874
|
x = size.width / 2;
|
|
860
875
|
y = size.height / 2;
|
|
861
876
|
}
|
|
862
|
-
|
|
877
|
+
e1.dataTransfer.setDragImage(node, x, y);
|
|
863
878
|
// Remove the preview from the DOM after a frame so the browser has time to paint.
|
|
864
879
|
requestAnimationFrame(()=>{
|
|
865
880
|
document.body.removeChild(node);
|
|
866
881
|
});
|
|
867
882
|
}
|
|
868
883
|
}
|
|
884
|
+
// Enforce that drops are handled by useDrop.
|
|
885
|
+
addGlobalListener(window, 'drop', (e)=>{
|
|
886
|
+
if (!$28e10663603f5ea1$export$7454aff2e161f241(e.target)) {
|
|
887
|
+
e.preventDefault();
|
|
888
|
+
e.stopPropagation();
|
|
889
|
+
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.');
|
|
890
|
+
}
|
|
891
|
+
}, {
|
|
892
|
+
capture: true,
|
|
893
|
+
once: true
|
|
894
|
+
});
|
|
869
895
|
if (typeof options.onDragStart === 'function') options.onDragStart({
|
|
870
896
|
type: 'dragstart',
|
|
871
|
-
x:
|
|
872
|
-
y:
|
|
897
|
+
x: e1.clientX,
|
|
898
|
+
y: e1.clientY
|
|
873
899
|
});
|
|
874
|
-
state.x =
|
|
875
|
-
state.y =
|
|
900
|
+
state.x = e1.clientX;
|
|
901
|
+
state.y = e1.clientY;
|
|
876
902
|
// Wait a frame before we set dragging to true so that the browser has time to
|
|
877
903
|
// render the preview image before we update the element that has been dragged.
|
|
878
904
|
requestAnimationFrame(()=>{
|
|
@@ -894,22 +920,23 @@ function $e2630e07d35639b3$export$7941f8aafa4b6021(options) {
|
|
|
894
920
|
type: 'dragend',
|
|
895
921
|
x: e.clientX,
|
|
896
922
|
y: e.clientY,
|
|
897
|
-
dropOperation: $
|
|
923
|
+
dropOperation: $76b1e110a27b1ccd$export$608ecc6f1b23c35d[e.dataTransfer.dropEffect]
|
|
898
924
|
});
|
|
899
925
|
setDragging(false);
|
|
926
|
+
removeAllGlobalListeners();
|
|
900
927
|
};
|
|
901
|
-
let onPress = (
|
|
902
|
-
if (
|
|
928
|
+
let onPress = (e2)=>{
|
|
929
|
+
if (e2.pointerType !== 'keyboard' && e2.pointerType !== 'virtual') return;
|
|
903
930
|
if (typeof state.options.onDragStart === 'function') {
|
|
904
|
-
let rect =
|
|
931
|
+
let rect = e2.target.getBoundingClientRect();
|
|
905
932
|
state.options.onDragStart({
|
|
906
933
|
type: 'dragstart',
|
|
907
934
|
x: rect.x + rect.width / 2,
|
|
908
935
|
y: rect.y + rect.height / 2
|
|
909
936
|
});
|
|
910
937
|
}
|
|
911
|
-
$
|
|
912
|
-
element:
|
|
938
|
+
$28e10663603f5ea1$export$549dbcf8649bf3b2({
|
|
939
|
+
element: e2.target,
|
|
913
940
|
items: state.options.getItems(),
|
|
914
941
|
allowedDropOperations: typeof state.options.getAllowedDropOperations === 'function' ? state.options.getAllowedDropOperations() : [
|
|
915
942
|
'move',
|
|
@@ -923,8 +950,8 @@ function $e2630e07d35639b3$export$7941f8aafa4b6021(options) {
|
|
|
923
950
|
}, formatMessage);
|
|
924
951
|
setDragging(true);
|
|
925
952
|
};
|
|
926
|
-
let modality = $
|
|
927
|
-
let descriptionProps = $
|
|
953
|
+
let modality = $4620ae0dc40f0031$export$49bac5d6d4b352ea();
|
|
954
|
+
let descriptionProps = $4vY0V$reactariautils.useDescription(formatMessage(!isDragging ? $dc204e8ec58447a6$var$MESSAGES[modality].start : $dc204e8ec58447a6$var$MESSAGES[modality].end));
|
|
928
955
|
return {
|
|
929
956
|
dragProps: {
|
|
930
957
|
draggable: 'true',
|
|
@@ -941,9 +968,9 @@ function $e2630e07d35639b3$export$7941f8aafa4b6021(options) {
|
|
|
941
968
|
}
|
|
942
969
|
|
|
943
970
|
|
|
944
|
-
var $
|
|
971
|
+
var $1ca228bc9257ca16$exports = {};
|
|
945
972
|
|
|
946
|
-
$parcel$export($
|
|
973
|
+
$parcel$export($1ca228bc9257ca16$exports, "useDrop", () => $1ca228bc9257ca16$export$ccdee5eaf73cf661);
|
|
947
974
|
|
|
948
975
|
|
|
949
976
|
|
|
@@ -954,16 +981,16 @@ $parcel$export($8946a7288b8c2406$exports, "useDrop", () => $8946a7288b8c2406$exp
|
|
|
954
981
|
|
|
955
982
|
|
|
956
983
|
|
|
957
|
-
const $
|
|
984
|
+
const $419982e205c8e8dc$var$MESSAGES = {
|
|
958
985
|
keyboard: 'dropDescriptionKeyboard',
|
|
959
986
|
touch: 'dropDescriptionTouch',
|
|
960
987
|
virtual: 'dropDescriptionVirtual'
|
|
961
988
|
};
|
|
962
|
-
function $
|
|
963
|
-
let formatMessage = $
|
|
964
|
-
let modality = $
|
|
965
|
-
let dragSession = $
|
|
966
|
-
let descriptionProps = $
|
|
989
|
+
function $419982e205c8e8dc$export$62447ad3d2ec7da6() {
|
|
990
|
+
let formatMessage = $4vY0V$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d624b4da796f302a$exports)));
|
|
991
|
+
let modality = $4620ae0dc40f0031$export$49bac5d6d4b352ea();
|
|
992
|
+
let dragSession = $28e10663603f5ea1$export$418e185dd3f1b968();
|
|
993
|
+
let descriptionProps = $4vY0V$reactariautils.useDescription(dragSession ? formatMessage($419982e205c8e8dc$var$MESSAGES[modality]) : '');
|
|
967
994
|
return {
|
|
968
995
|
dropProps: {
|
|
969
996
|
...descriptionProps,
|
|
@@ -979,10 +1006,10 @@ function $06a19d9f22d42d75$export$62447ad3d2ec7da6() {
|
|
|
979
1006
|
}
|
|
980
1007
|
|
|
981
1008
|
|
|
982
|
-
const $
|
|
983
|
-
function $
|
|
984
|
-
let [isDropTarget, setDropTarget] = $
|
|
985
|
-
let state = $
|
|
1009
|
+
const $1ca228bc9257ca16$var$DROP_ACTIVATE_TIMEOUT = 800;
|
|
1010
|
+
function $1ca228bc9257ca16$export$ccdee5eaf73cf661(options) {
|
|
1011
|
+
let [isDropTarget, setDropTarget] = $4vY0V$react.useState(false);
|
|
1012
|
+
let state = $4vY0V$react.useRef({
|
|
986
1013
|
x: 0,
|
|
987
1014
|
y: 0,
|
|
988
1015
|
dragEnterCount: 0,
|
|
@@ -999,11 +1026,11 @@ function $8946a7288b8c2406$export$ccdee5eaf73cf661(options) {
|
|
|
999
1026
|
state.x = e.clientX;
|
|
1000
1027
|
state.y = e.clientY;
|
|
1001
1028
|
if (typeof options.getDropOperationForPoint === 'function') {
|
|
1002
|
-
let allowedOperations = $
|
|
1003
|
-
let types = new $
|
|
1029
|
+
let allowedOperations = $1ca228bc9257ca16$var$effectAllowedToOperations(e.dataTransfer.effectAllowed);
|
|
1030
|
+
let types = new $4620ae0dc40f0031$export$7f04ce188c91447c(e.dataTransfer);
|
|
1004
1031
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1005
1032
|
let dropOperation = options.getDropOperationForPoint(types, allowedOperations, state.x - rect.x, state.y - rect.y);
|
|
1006
|
-
state.dropEffect = $
|
|
1033
|
+
state.dropEffect = $76b1e110a27b1ccd$export$5eacb0769d26d3b2[dropOperation] || 'none';
|
|
1007
1034
|
}
|
|
1008
1035
|
e.dataTransfer.dropEffect = state.dropEffect;
|
|
1009
1036
|
if (typeof options.onDropMove === 'function') {
|
|
@@ -1023,26 +1050,26 @@ function $8946a7288b8c2406$export$ccdee5eaf73cf661(options) {
|
|
|
1023
1050
|
x: state.x - rect.x,
|
|
1024
1051
|
y: state.y - rect.y
|
|
1025
1052
|
});
|
|
1026
|
-
}, $
|
|
1053
|
+
}, $1ca228bc9257ca16$var$DROP_ACTIVATE_TIMEOUT);
|
|
1027
1054
|
}
|
|
1028
1055
|
};
|
|
1029
1056
|
let onDragEnter = (e)=>{
|
|
1030
1057
|
e.stopPropagation();
|
|
1031
1058
|
state.dragEnterCount++;
|
|
1032
1059
|
if (state.dragEnterCount > 1) return;
|
|
1033
|
-
let allowedOperations = $
|
|
1060
|
+
let allowedOperations = $1ca228bc9257ca16$var$effectAllowedToOperations(e.dataTransfer.effectAllowed);
|
|
1034
1061
|
let dropOperation = allowedOperations[0];
|
|
1035
1062
|
if (typeof options.getDropOperation === 'function') {
|
|
1036
|
-
let types = new $
|
|
1063
|
+
let types = new $4620ae0dc40f0031$export$7f04ce188c91447c(e.dataTransfer);
|
|
1037
1064
|
dropOperation = options.getDropOperation(types, allowedOperations);
|
|
1038
1065
|
}
|
|
1039
1066
|
if (dropOperation !== 'cancel') setDropTarget(true);
|
|
1040
1067
|
if (typeof options.getDropOperationForPoint === 'function') {
|
|
1041
|
-
let types = new $
|
|
1068
|
+
let types = new $4620ae0dc40f0031$export$7f04ce188c91447c(e.dataTransfer);
|
|
1042
1069
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1043
1070
|
dropOperation = options.getDropOperationForPoint(types, allowedOperations, e.clientX - rect.x, e.clientY - rect.y);
|
|
1044
1071
|
}
|
|
1045
|
-
state.dropEffect = $
|
|
1072
|
+
state.dropEffect = $76b1e110a27b1ccd$export$5eacb0769d26d3b2[dropOperation] || 'none';
|
|
1046
1073
|
e.dataTransfer.dropEffect = state.dropEffect;
|
|
1047
1074
|
if (typeof options.onDropEnter === 'function' && dropOperation !== 'cancel') {
|
|
1048
1075
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
@@ -1074,8 +1101,8 @@ function $8946a7288b8c2406$export$ccdee5eaf73cf661(options) {
|
|
|
1074
1101
|
e.preventDefault();
|
|
1075
1102
|
e.stopPropagation();
|
|
1076
1103
|
if (typeof options.onDrop === 'function') {
|
|
1077
|
-
let dropOperation = $
|
|
1078
|
-
let items = $
|
|
1104
|
+
let dropOperation = $76b1e110a27b1ccd$export$608ecc6f1b23c35d[state.dropEffect];
|
|
1105
|
+
let items = $4620ae0dc40f0031$export$d9e760437831f8b3(e.dataTransfer);
|
|
1079
1106
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1080
1107
|
let event = {
|
|
1081
1108
|
type: 'drop',
|
|
@@ -1104,9 +1131,9 @@ function $8946a7288b8c2406$export$ccdee5eaf73cf661(options) {
|
|
|
1104
1131
|
setDropTarget(false);
|
|
1105
1132
|
clearTimeout(state.dropActivateTimer);
|
|
1106
1133
|
};
|
|
1107
|
-
let optionsRef = $
|
|
1134
|
+
let optionsRef = $4vY0V$react.useRef(options);
|
|
1108
1135
|
optionsRef.current = options;
|
|
1109
|
-
$
|
|
1136
|
+
$4vY0V$reactariautils.useLayoutEffect(()=>$28e10663603f5ea1$export$c28d9fb4a54e471a({
|
|
1110
1137
|
element: optionsRef.current.ref.current,
|
|
1111
1138
|
getDropOperation: optionsRef.current.getDropOperation,
|
|
1112
1139
|
onDropEnter (e) {
|
|
@@ -1127,7 +1154,7 @@ function $8946a7288b8c2406$export$ccdee5eaf73cf661(options) {
|
|
|
1127
1154
|
, [
|
|
1128
1155
|
optionsRef
|
|
1129
1156
|
]);
|
|
1130
|
-
let { dropProps: dropProps } = $
|
|
1157
|
+
let { dropProps: dropProps } = $419982e205c8e8dc$export$62447ad3d2ec7da6();
|
|
1131
1158
|
return {
|
|
1132
1159
|
dropProps: {
|
|
1133
1160
|
...dropProps,
|
|
@@ -1139,19 +1166,19 @@ function $8946a7288b8c2406$export$ccdee5eaf73cf661(options) {
|
|
|
1139
1166
|
isDropTarget: isDropTarget
|
|
1140
1167
|
};
|
|
1141
1168
|
}
|
|
1142
|
-
function $
|
|
1143
|
-
let allowedOperationsBits = $
|
|
1169
|
+
function $1ca228bc9257ca16$var$effectAllowedToOperations(effectAllowed) {
|
|
1170
|
+
let allowedOperationsBits = $76b1e110a27b1ccd$export$9bbdfc78cf083e16[effectAllowed];
|
|
1144
1171
|
let allowedOperations = [];
|
|
1145
|
-
if (allowedOperationsBits & $
|
|
1146
|
-
if (allowedOperationsBits & $
|
|
1147
|
-
if (allowedOperationsBits & $
|
|
1172
|
+
if (allowedOperationsBits & $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.move) allowedOperations.push('move');
|
|
1173
|
+
if (allowedOperationsBits & $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.copy) allowedOperations.push('copy');
|
|
1174
|
+
if (allowedOperationsBits & $76b1e110a27b1ccd$export$60b7b4bcf3903d8e.link) allowedOperations.push('link');
|
|
1148
1175
|
return allowedOperations;
|
|
1149
1176
|
}
|
|
1150
1177
|
|
|
1151
1178
|
|
|
1152
|
-
var $
|
|
1179
|
+
var $7f93a158ac20b90a$exports = {};
|
|
1153
1180
|
|
|
1154
|
-
$parcel$export($
|
|
1181
|
+
$parcel$export($7f93a158ac20b90a$exports, "useDroppableCollection", () => $7f93a158ac20b90a$export$f4e2f423c21f7b04);
|
|
1155
1182
|
|
|
1156
1183
|
|
|
1157
1184
|
|
|
@@ -1159,20 +1186,20 @@ $parcel$export($783cde594bac15e2$exports, "useDroppableCollection", () => $783cd
|
|
|
1159
1186
|
|
|
1160
1187
|
|
|
1161
1188
|
|
|
1162
|
-
const $
|
|
1163
|
-
function $
|
|
1164
|
-
let scrollableRef = $
|
|
1165
|
-
$
|
|
1166
|
-
if (ref.current) scrollableRef.current = $
|
|
1189
|
+
const $12cc069a1c69155b$var$AUTOSCROLL_AREA_SIZE = 20;
|
|
1190
|
+
function $12cc069a1c69155b$export$6323452ca4533ed8(ref) {
|
|
1191
|
+
let scrollableRef = $4vY0V$react.useRef(null);
|
|
1192
|
+
$4vY0V$react.useEffect(()=>{
|
|
1193
|
+
if (ref.current) scrollableRef.current = $4vY0V$reactariautils.getScrollParent(ref.current);
|
|
1167
1194
|
}, [
|
|
1168
1195
|
ref
|
|
1169
1196
|
]);
|
|
1170
|
-
let state = $
|
|
1197
|
+
let state = $4vY0V$react.useRef({
|
|
1171
1198
|
timer: null,
|
|
1172
1199
|
dx: 0,
|
|
1173
1200
|
dy: 0
|
|
1174
1201
|
}).current;
|
|
1175
|
-
let scroll = $
|
|
1202
|
+
let scroll = $4vY0V$react.useCallback(()=>{
|
|
1176
1203
|
scrollableRef.current.scrollLeft += state.dx;
|
|
1177
1204
|
scrollableRef.current.scrollTop += state.dy;
|
|
1178
1205
|
if (state.timer) state.timer = requestAnimationFrame(scroll);
|
|
@@ -1184,12 +1211,12 @@ function $e7eb5ef06b31c864$export$6323452ca4533ed8(ref) {
|
|
|
1184
1211
|
move (x, y) {
|
|
1185
1212
|
// Most browsers auto scroll natively, but WebKit on macOS does not (iOS does 🤷♂️).
|
|
1186
1213
|
// https://bugs.webkit.org/show_bug.cgi?id=222636
|
|
1187
|
-
if (!$
|
|
1214
|
+
if (!$4vY0V$reactariautils.isWebKit() || $4vY0V$reactariautils.isIOS() || !scrollableRef.current) return;
|
|
1188
1215
|
let box = scrollableRef.current.getBoundingClientRect();
|
|
1189
|
-
let left = $
|
|
1190
|
-
let top = $
|
|
1191
|
-
let bottom = box.height - $
|
|
1192
|
-
let right = box.width - $
|
|
1216
|
+
let left = $12cc069a1c69155b$var$AUTOSCROLL_AREA_SIZE;
|
|
1217
|
+
let top = $12cc069a1c69155b$var$AUTOSCROLL_AREA_SIZE;
|
|
1218
|
+
let bottom = box.height - $12cc069a1c69155b$var$AUTOSCROLL_AREA_SIZE;
|
|
1219
|
+
let right = box.width - $12cc069a1c69155b$var$AUTOSCROLL_AREA_SIZE;
|
|
1193
1220
|
if (x < left || x > right || y < top || y > bottom) {
|
|
1194
1221
|
if (x < left) state.dx = x - left;
|
|
1195
1222
|
else if (x > right) state.dx = x - right;
|
|
@@ -1210,13 +1237,13 @@ function $e7eb5ef06b31c864$export$6323452ca4533ed8(ref) {
|
|
|
1210
1237
|
|
|
1211
1238
|
|
|
1212
1239
|
|
|
1213
|
-
const $
|
|
1240
|
+
const $7f93a158ac20b90a$var$DROP_POSITIONS = [
|
|
1214
1241
|
'before',
|
|
1215
1242
|
'on',
|
|
1216
1243
|
'after'
|
|
1217
1244
|
];
|
|
1218
|
-
function $
|
|
1219
|
-
let localState = $
|
|
1245
|
+
function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
1246
|
+
let localState = $4vY0V$react.useRef({
|
|
1220
1247
|
props: props,
|
|
1221
1248
|
state: state1,
|
|
1222
1249
|
nextTarget: null,
|
|
@@ -1224,8 +1251,8 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1224
1251
|
}).current;
|
|
1225
1252
|
localState.props = props;
|
|
1226
1253
|
localState.state = state1;
|
|
1227
|
-
let autoScroll = $
|
|
1228
|
-
let { dropProps: dropProps } = $
|
|
1254
|
+
let autoScroll = $12cc069a1c69155b$export$6323452ca4533ed8(ref2);
|
|
1255
|
+
let { dropProps: dropProps } = $1ca228bc9257ca16$export$ccdee5eaf73cf661({
|
|
1229
1256
|
ref: ref2,
|
|
1230
1257
|
onDropEnter (e) {
|
|
1231
1258
|
let target = props.getDropTargetFromPoint(e.x, e.y);
|
|
@@ -1278,8 +1305,8 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1278
1305
|
if (state1.target && typeof props.onDrop === 'function') onDrop(e, state1.target);
|
|
1279
1306
|
}
|
|
1280
1307
|
});
|
|
1281
|
-
let droppingState = $
|
|
1282
|
-
let onDrop = $
|
|
1308
|
+
let droppingState = $4vY0V$react.useRef(null);
|
|
1309
|
+
let onDrop = $4vY0V$react.useCallback((e, target)=>{
|
|
1283
1310
|
let { state: state2 } = localState;
|
|
1284
1311
|
// Focus the collection.
|
|
1285
1312
|
state2.selectionManager.setFocused(true);
|
|
@@ -1312,8 +1339,8 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1312
1339
|
if (target.type === 'item' && target.dropPosition === 'on' && state.collection.getItem(target.key) != null) {
|
|
1313
1340
|
state.selectionManager.setFocusedKey(target.key);
|
|
1314
1341
|
state.selectionManager.setFocused(true);
|
|
1315
|
-
$
|
|
1316
|
-
} else if (!state.selectionManager.isSelected(focusedKey)) $
|
|
1342
|
+
$4vY0V$reactariainteractions.setInteractionModality('keyboard');
|
|
1343
|
+
} else if (!state.selectionManager.isSelected(focusedKey)) $4vY0V$reactariainteractions.setInteractionModality('keyboard');
|
|
1317
1344
|
}
|
|
1318
1345
|
droppingState.current = null;
|
|
1319
1346
|
}, 50);
|
|
@@ -1321,12 +1348,12 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1321
1348
|
localState
|
|
1322
1349
|
]);
|
|
1323
1350
|
// eslint-disable-next-line arrow-body-style
|
|
1324
|
-
$
|
|
1351
|
+
$4vY0V$react.useEffect(()=>{
|
|
1325
1352
|
return ()=>{
|
|
1326
1353
|
if (droppingState.current) clearTimeout(droppingState.current.timeout);
|
|
1327
1354
|
};
|
|
1328
1355
|
}, []);
|
|
1329
|
-
$
|
|
1356
|
+
$4vY0V$reactariautils.useLayoutEffect(()=>{
|
|
1330
1357
|
// If an insert occurs during a drop, we want to immediately select these items to give
|
|
1331
1358
|
// feedback to the user that a drop occurred. Only do this if the selection didn't change
|
|
1332
1359
|
// since the drop started so we don't override if the user or application did something.
|
|
@@ -1340,12 +1367,12 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1340
1367
|
if (state1.selectionManager.focusedKey === droppingState.current.focusedKey) {
|
|
1341
1368
|
let first = newKeys.keys().next().value;
|
|
1342
1369
|
state1.selectionManager.setFocusedKey(first);
|
|
1343
|
-
if (state1.selectionManager.selectionMode === 'none') $
|
|
1370
|
+
if (state1.selectionManager.selectionMode === 'none') $4vY0V$reactariainteractions.setInteractionModality('keyboard');
|
|
1344
1371
|
}
|
|
1345
1372
|
droppingState.current = null;
|
|
1346
1373
|
}
|
|
1347
1374
|
});
|
|
1348
|
-
$
|
|
1375
|
+
$4vY0V$react.useEffect(()=>{
|
|
1349
1376
|
let getNextTarget1 = (target, wrap = true)=>{
|
|
1350
1377
|
if (!target) return {
|
|
1351
1378
|
type: 'root'
|
|
@@ -1354,9 +1381,9 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1354
1381
|
let nextKey = target.type === 'item' ? keyboardDelegate.getKeyBelow(target.key) : keyboardDelegate.getFirstKey();
|
|
1355
1382
|
let dropPosition = 'before';
|
|
1356
1383
|
if (target.type === 'item') {
|
|
1357
|
-
let positionIndex = $
|
|
1358
|
-
let nextDropPosition = $
|
|
1359
|
-
if (positionIndex < $
|
|
1384
|
+
let positionIndex = $7f93a158ac20b90a$var$DROP_POSITIONS.indexOf(target.dropPosition);
|
|
1385
|
+
let nextDropPosition = $7f93a158ac20b90a$var$DROP_POSITIONS[positionIndex + 1];
|
|
1386
|
+
if (positionIndex < $7f93a158ac20b90a$var$DROP_POSITIONS.length - 1 && !(nextDropPosition === 'after' && nextKey != null)) return {
|
|
1360
1387
|
type: 'item',
|
|
1361
1388
|
key: target.key,
|
|
1362
1389
|
dropPosition: nextDropPosition
|
|
@@ -1382,8 +1409,8 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1382
1409
|
let nextKey = (target === null || target === void 0 ? void 0 : target.type) === 'item' ? keyboardDelegate.getKeyAbove(target.key) : keyboardDelegate.getLastKey();
|
|
1383
1410
|
let dropPosition = !target || target.type === 'root' ? 'after' : 'on';
|
|
1384
1411
|
if ((target === null || target === void 0 ? void 0 : target.type) === 'item') {
|
|
1385
|
-
let positionIndex = $
|
|
1386
|
-
let nextDropPosition = $
|
|
1412
|
+
let positionIndex = $7f93a158ac20b90a$var$DROP_POSITIONS.indexOf(target.dropPosition);
|
|
1413
|
+
let nextDropPosition = $7f93a158ac20b90a$var$DROP_POSITIONS[positionIndex - 1];
|
|
1387
1414
|
if (positionIndex > 0 && nextDropPosition !== 'after') return {
|
|
1388
1415
|
type: 'item',
|
|
1389
1416
|
key: target.key,
|
|
@@ -1418,7 +1445,7 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1418
1445
|
if (operation === 'cancel') return null;
|
|
1419
1446
|
return target;
|
|
1420
1447
|
};
|
|
1421
|
-
return $
|
|
1448
|
+
return $28e10663603f5ea1$export$c28d9fb4a54e471a({
|
|
1422
1449
|
element: ref2.current,
|
|
1423
1450
|
getDropOperation (types, allowedOperations) {
|
|
1424
1451
|
if (localState.state.target) return localState.state.getDropOperation(localState.state.target, types, allowedOperations);
|
|
@@ -1428,7 +1455,7 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1428
1455
|
return target ? 'move' : 'cancel';
|
|
1429
1456
|
},
|
|
1430
1457
|
onDropEnter (e, drag) {
|
|
1431
|
-
let types = $
|
|
1458
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(drag.items);
|
|
1432
1459
|
let selectionManager = localState.state.selectionManager;
|
|
1433
1460
|
let target;
|
|
1434
1461
|
// When entering the droppable collection for the first time, the default drop target
|
|
@@ -1481,7 +1508,7 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1481
1508
|
},
|
|
1482
1509
|
onKeyDown (e, drag) {
|
|
1483
1510
|
let { keyboardDelegate: keyboardDelegate } = localState.props;
|
|
1484
|
-
let types = $
|
|
1511
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(drag.items);
|
|
1485
1512
|
switch(e.key){
|
|
1486
1513
|
case 'ArrowDown':
|
|
1487
1514
|
if (keyboardDelegate.getKeyBelow) {
|
|
@@ -1574,9 +1601,9 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1574
1601
|
ref2,
|
|
1575
1602
|
onDrop
|
|
1576
1603
|
]);
|
|
1577
|
-
let id = $
|
|
1604
|
+
let id = $4620ae0dc40f0031$export$b1601eb39394a581(state1);
|
|
1578
1605
|
return {
|
|
1579
|
-
collectionProps: $
|
|
1606
|
+
collectionProps: $4vY0V$reactariautils.mergeProps(dropProps, {
|
|
1580
1607
|
id: id,
|
|
1581
1608
|
// Remove description from collection element. If dropping on the entire collection,
|
|
1582
1609
|
// there should be a drop indicator that has this description, so no need to double announce.
|
|
@@ -1586,17 +1613,17 @@ function $783cde594bac15e2$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
|
1586
1613
|
}
|
|
1587
1614
|
|
|
1588
1615
|
|
|
1589
|
-
var $
|
|
1616
|
+
var $fc1876157e07bcec$exports = {};
|
|
1590
1617
|
|
|
1591
|
-
$parcel$export($
|
|
1618
|
+
$parcel$export($fc1876157e07bcec$exports, "useDroppableItem", () => $fc1876157e07bcec$export$f7b0c5d28b66b6a5);
|
|
1592
1619
|
|
|
1593
1620
|
|
|
1594
1621
|
|
|
1595
1622
|
|
|
1596
|
-
function $
|
|
1597
|
-
let { dropProps: dropProps } = $
|
|
1598
|
-
$
|
|
1599
|
-
if (ref.current) return $
|
|
1623
|
+
function $fc1876157e07bcec$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
1624
|
+
let { dropProps: dropProps } = $419982e205c8e8dc$export$62447ad3d2ec7da6();
|
|
1625
|
+
$4vY0V$react.useEffect(()=>{
|
|
1626
|
+
if (ref.current) return $28e10663603f5ea1$export$aef80212ac99c003({
|
|
1600
1627
|
element: ref.current,
|
|
1601
1628
|
target: options.target,
|
|
1602
1629
|
getDropOperation (types, allowedOperations) {
|
|
@@ -1608,10 +1635,10 @@ function $7862eebad9f285c6$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
|
1608
1635
|
options.target,
|
|
1609
1636
|
state
|
|
1610
1637
|
]);
|
|
1611
|
-
let dragSession = $
|
|
1612
|
-
let isValidDropTarget = dragSession && state.getDropOperation(options.target, $
|
|
1638
|
+
let dragSession = $28e10663603f5ea1$export$418e185dd3f1b968();
|
|
1639
|
+
let isValidDropTarget = dragSession && state.getDropOperation(options.target, $4620ae0dc40f0031$export$e1d41611756c6326(dragSession.dragTarget.items), dragSession.dragTarget.allowedDropOperations) !== 'cancel';
|
|
1613
1640
|
let isDropTarget = state.isDropTarget(options.target);
|
|
1614
|
-
$
|
|
1641
|
+
$4vY0V$react.useEffect(()=>{
|
|
1615
1642
|
if (dragSession && isDropTarget && ref.current) ref.current.focus();
|
|
1616
1643
|
}, [
|
|
1617
1644
|
isDropTarget,
|
|
@@ -1627,22 +1654,22 @@ function $7862eebad9f285c6$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
|
1627
1654
|
}
|
|
1628
1655
|
|
|
1629
1656
|
|
|
1630
|
-
var $
|
|
1657
|
+
var $c5557edbed563ebf$exports = {};
|
|
1631
1658
|
|
|
1632
|
-
$parcel$export($
|
|
1659
|
+
$parcel$export($c5557edbed563ebf$exports, "useDropIndicator", () => $c5557edbed563ebf$export$8d0e41d2815afac5);
|
|
1633
1660
|
|
|
1634
1661
|
|
|
1635
1662
|
|
|
1636
1663
|
|
|
1637
1664
|
|
|
1638
1665
|
|
|
1639
|
-
function $
|
|
1666
|
+
function $c5557edbed563ebf$export$8d0e41d2815afac5(props, state, ref1) {
|
|
1640
1667
|
let { target: target } = props;
|
|
1641
1668
|
let { collection: collection } = state;
|
|
1642
|
-
let formatMessage = $
|
|
1643
|
-
let dragSession = $
|
|
1644
|
-
let { dropProps: dropProps } = $
|
|
1645
|
-
let id = $
|
|
1669
|
+
let formatMessage = $4vY0V$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d624b4da796f302a$exports)));
|
|
1670
|
+
let dragSession = $28e10663603f5ea1$export$418e185dd3f1b968();
|
|
1671
|
+
let { dropProps: dropProps } = $fc1876157e07bcec$export$f7b0c5d28b66b6a5(props, state, ref1);
|
|
1672
|
+
let id = $4vY0V$reactariautils.useId();
|
|
1646
1673
|
let getText = (key)=>{
|
|
1647
1674
|
var ref;
|
|
1648
1675
|
return (ref = collection.getItem(key)) === null || ref === void 0 ? void 0 : ref.textValue;
|
|
@@ -1651,7 +1678,7 @@ function $dba686f3b740894f$export$8d0e41d2815afac5(props, state, ref1) {
|
|
|
1651
1678
|
let labelledBy;
|
|
1652
1679
|
if (target.type === 'root') {
|
|
1653
1680
|
label = formatMessage('dropOnRoot');
|
|
1654
|
-
labelledBy = `${id} ${$
|
|
1681
|
+
labelledBy = `${id} ${$4620ae0dc40f0031$export$3093291712f09a77(state)}`;
|
|
1655
1682
|
} else if (target.dropPosition === 'on') label = formatMessage('dropOnItem', {
|
|
1656
1683
|
itemText: getText(target.key)
|
|
1657
1684
|
});
|
|
@@ -1683,15 +1710,15 @@ function $dba686f3b740894f$export$8d0e41d2815afac5(props, state, ref1) {
|
|
|
1683
1710
|
}
|
|
1684
1711
|
|
|
1685
1712
|
|
|
1686
|
-
var $
|
|
1713
|
+
var $0cbbd00cda972c67$exports = {};
|
|
1687
1714
|
|
|
1688
|
-
$parcel$export($
|
|
1715
|
+
$parcel$export($0cbbd00cda972c67$exports, "useDraggableItem", () => $0cbbd00cda972c67$export$b35afafff42da2d9);
|
|
1689
1716
|
|
|
1690
1717
|
|
|
1691
1718
|
|
|
1692
|
-
function $
|
|
1693
|
-
let formatMessage = $
|
|
1694
|
-
let { dragProps: dragProps , dragButtonProps: dragButtonProps } = $
|
|
1719
|
+
function $0cbbd00cda972c67$export$b35afafff42da2d9(props, state) {
|
|
1720
|
+
let formatMessage = $4vY0V$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d624b4da796f302a$exports)));
|
|
1721
|
+
let { dragProps: dragProps , dragButtonProps: dragButtonProps } = $dc204e8ec58447a6$export$7941f8aafa4b6021({
|
|
1695
1722
|
getItems () {
|
|
1696
1723
|
return state.getItems(props.key);
|
|
1697
1724
|
},
|
|
@@ -1729,16 +1756,16 @@ function $0d235029225a739d$export$b35afafff42da2d9(props, state) {
|
|
|
1729
1756
|
}
|
|
1730
1757
|
|
|
1731
1758
|
|
|
1732
|
-
var $
|
|
1759
|
+
var $74f3dedaa4d234b4$exports = {};
|
|
1733
1760
|
|
|
1734
|
-
$parcel$export($
|
|
1761
|
+
$parcel$export($74f3dedaa4d234b4$exports, "useClipboard", () => $74f3dedaa4d234b4$export$2314ca2a3e892862);
|
|
1735
1762
|
|
|
1736
1763
|
|
|
1737
1764
|
|
|
1738
1765
|
|
|
1739
|
-
const $
|
|
1740
|
-
function $
|
|
1741
|
-
let eventData = $
|
|
1766
|
+
const $74f3dedaa4d234b4$var$globalEvents = new Map();
|
|
1767
|
+
function $74f3dedaa4d234b4$var$addGlobalEventListener(event, fn) {
|
|
1768
|
+
let eventData = $74f3dedaa4d234b4$var$globalEvents.get(event);
|
|
1742
1769
|
if (!eventData) {
|
|
1743
1770
|
let handlers = new Set();
|
|
1744
1771
|
let listener = (e)=>{
|
|
@@ -1748,7 +1775,7 @@ function $15e98f67a3ab1ee9$var$addGlobalEventListener(event, fn) {
|
|
|
1748
1775
|
listener: listener,
|
|
1749
1776
|
handlers: handlers
|
|
1750
1777
|
};
|
|
1751
|
-
$
|
|
1778
|
+
$74f3dedaa4d234b4$var$globalEvents.set(event, eventData);
|
|
1752
1779
|
document.addEventListener(event, listener);
|
|
1753
1780
|
}
|
|
1754
1781
|
eventData.handlers.add(fn);
|
|
@@ -1756,20 +1783,20 @@ function $15e98f67a3ab1ee9$var$addGlobalEventListener(event, fn) {
|
|
|
1756
1783
|
eventData.handlers.delete(fn);
|
|
1757
1784
|
if (eventData.handlers.size === 0) {
|
|
1758
1785
|
document.removeEventListener(event, eventData.listener);
|
|
1759
|
-
$
|
|
1786
|
+
$74f3dedaa4d234b4$var$globalEvents.delete(event);
|
|
1760
1787
|
}
|
|
1761
1788
|
};
|
|
1762
1789
|
}
|
|
1763
|
-
function $
|
|
1764
|
-
let ref = $
|
|
1790
|
+
function $74f3dedaa4d234b4$export$2314ca2a3e892862(options1) {
|
|
1791
|
+
let ref = $4vY0V$react.useRef(options1);
|
|
1765
1792
|
ref.current = options1;
|
|
1766
|
-
let isFocusedRef = $
|
|
1767
|
-
let { focusProps: focusProps } = $
|
|
1793
|
+
let isFocusedRef = $4vY0V$react.useRef(false);
|
|
1794
|
+
let { focusProps: focusProps } = $4vY0V$reactariainteractions.useFocus({
|
|
1768
1795
|
onFocusChange: (isFocused)=>{
|
|
1769
1796
|
isFocusedRef.current = isFocused;
|
|
1770
1797
|
}
|
|
1771
1798
|
});
|
|
1772
|
-
$
|
|
1799
|
+
$4vY0V$react.useEffect(()=>{
|
|
1773
1800
|
let onBeforeCopy = (e)=>{
|
|
1774
1801
|
// Enable the "Copy" menu item in Safari if this element is focused and copying is supported.
|
|
1775
1802
|
let options = ref.current;
|
|
@@ -1780,7 +1807,7 @@ function $15e98f67a3ab1ee9$export$2314ca2a3e892862(options1) {
|
|
|
1780
1807
|
let options = ref.current;
|
|
1781
1808
|
if (!isFocusedRef.current || !options.getItems) return;
|
|
1782
1809
|
e.preventDefault();
|
|
1783
|
-
$
|
|
1810
|
+
$4620ae0dc40f0031$export$f9c1490890ddd063(e.clipboardData, options.getItems());
|
|
1784
1811
|
(ref1 = options.onCopy) === null || ref1 === void 0 ? void 0 : ref1.call(options);
|
|
1785
1812
|
};
|
|
1786
1813
|
let onBeforeCut = (e)=>{
|
|
@@ -1791,7 +1818,7 @@ function $15e98f67a3ab1ee9$export$2314ca2a3e892862(options1) {
|
|
|
1791
1818
|
let options = ref.current;
|
|
1792
1819
|
if (!isFocusedRef.current || !options.onCut || !options.getItems) return;
|
|
1793
1820
|
e.preventDefault();
|
|
1794
|
-
$
|
|
1821
|
+
$4620ae0dc40f0031$export$f9c1490890ddd063(e.clipboardData, options.getItems());
|
|
1795
1822
|
options.onCut();
|
|
1796
1823
|
};
|
|
1797
1824
|
let onBeforePaste = (e)=>{
|
|
@@ -1804,10 +1831,10 @@ function $15e98f67a3ab1ee9$export$2314ca2a3e892862(options1) {
|
|
|
1804
1831
|
let options = ref.current;
|
|
1805
1832
|
if (!isFocusedRef.current || !options.onPaste) return;
|
|
1806
1833
|
e.preventDefault();
|
|
1807
|
-
let items = $
|
|
1834
|
+
let items = $4620ae0dc40f0031$export$d9e760437831f8b3(e.clipboardData);
|
|
1808
1835
|
options.onPaste(items);
|
|
1809
1836
|
};
|
|
1810
|
-
return $
|
|
1837
|
+
return $4vY0V$reactariautils.chain($74f3dedaa4d234b4$var$addGlobalEventListener('beforecopy', onBeforeCopy), $74f3dedaa4d234b4$var$addGlobalEventListener('copy', onCopy), $74f3dedaa4d234b4$var$addGlobalEventListener('beforecut', onBeforeCut), $74f3dedaa4d234b4$var$addGlobalEventListener('cut', onCut), $74f3dedaa4d234b4$var$addGlobalEventListener('beforepaste', onBeforePaste), $74f3dedaa4d234b4$var$addGlobalEventListener('paste', onPaste));
|
|
1811
1838
|
}, []);
|
|
1812
1839
|
return {
|
|
1813
1840
|
clipboardProps: focusProps
|
|
@@ -1815,13 +1842,13 @@ function $15e98f67a3ab1ee9$export$2314ca2a3e892862(options1) {
|
|
|
1815
1842
|
}
|
|
1816
1843
|
|
|
1817
1844
|
|
|
1818
|
-
$parcel$exportWildcard(module.exports, $
|
|
1819
|
-
$parcel$exportWildcard(module.exports, $
|
|
1820
|
-
$parcel$exportWildcard(module.exports, $
|
|
1821
|
-
$parcel$exportWildcard(module.exports, $
|
|
1822
|
-
$parcel$exportWildcard(module.exports, $
|
|
1823
|
-
$parcel$exportWildcard(module.exports, $
|
|
1824
|
-
$parcel$exportWildcard(module.exports, $
|
|
1845
|
+
$parcel$exportWildcard(module.exports, $dc204e8ec58447a6$exports);
|
|
1846
|
+
$parcel$exportWildcard(module.exports, $1ca228bc9257ca16$exports);
|
|
1847
|
+
$parcel$exportWildcard(module.exports, $7f93a158ac20b90a$exports);
|
|
1848
|
+
$parcel$exportWildcard(module.exports, $fc1876157e07bcec$exports);
|
|
1849
|
+
$parcel$exportWildcard(module.exports, $c5557edbed563ebf$exports);
|
|
1850
|
+
$parcel$exportWildcard(module.exports, $0cbbd00cda972c67$exports);
|
|
1851
|
+
$parcel$exportWildcard(module.exports, $74f3dedaa4d234b4$exports);
|
|
1825
1852
|
|
|
1826
1853
|
|
|
1827
1854
|
//# sourceMappingURL=main.js.map
|