@react-aria/dnd 3.0.0-alpha.4 → 3.0.0-alpha.7
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 +434 -397
- package/dist/main.js.map +1 -1
- package/dist/module.js +428 -391
- 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 $c1cba3854dc3a167$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,40 +148,40 @@ function $c1cba3854dc3a167$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
|
+
has(type) {
|
|
156
|
+
if (this.includesUnknownTypes) return true;
|
|
157
|
+
return this.types.has(type);
|
|
158
|
+
}
|
|
155
159
|
constructor(dataTransfer){
|
|
156
160
|
this.types = new Set();
|
|
157
161
|
let hasFiles = false;
|
|
158
|
-
for (let item of dataTransfer.items)if (item.type !== $
|
|
162
|
+
for (let item of dataTransfer.items)if (item.type !== $76b1e110a27b1ccd$export$fd9f9fc120c5402d) {
|
|
159
163
|
if (item.kind === 'file') hasFiles = true;
|
|
160
164
|
if (item.type) this.types.add(item.type);
|
|
161
165
|
else // Files with unknown types or extensions that don't map to a known mime type
|
|
162
166
|
// are sometimes exposed as an empty string by the browser. Map to a generic
|
|
163
167
|
// mime type instead. Note that this could also be a directory as there's no
|
|
164
168
|
// way to determine if something is a file or directory until drop.
|
|
165
|
-
this.types.add($
|
|
169
|
+
this.types.add($76b1e110a27b1ccd$export$f8fc6581787339b3);
|
|
166
170
|
}
|
|
167
171
|
// In Safari, when dragging files, the dataTransfer.items list is empty, but dataTransfer.types contains "Files".
|
|
168
172
|
// Unfortunately, this doesn't tell us what types of files the user is dragging, so we need to assume that any
|
|
169
173
|
// type the user checks for is included. See https://bugs.webkit.org/show_bug.cgi?id=223517.
|
|
170
174
|
this.includesUnknownTypes = !hasFiles && dataTransfer.types.includes('Files');
|
|
171
175
|
}
|
|
172
|
-
has(type) {
|
|
173
|
-
if (this.includesUnknownTypes) return true;
|
|
174
|
-
return this.types.has(type);
|
|
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 $c1cba3854dc3a167$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 $c1cba3854dc3a167$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 $c1cba3854dc3a167$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 $c1cba3854dc3a167$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* $c1cba3854dc3a167$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
|
+
}
|
|
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;
|
|
321
327
|
}
|
|
322
|
-
const $
|
|
328
|
+
const $28e10663603f5ea1$var$CANCELED_EVENTS = [
|
|
323
329
|
'pointerdown',
|
|
324
330
|
'pointermove',
|
|
325
331
|
'pointerenter',
|
|
@@ -341,48 +347,40 @@ const $d69e2bc1de15721f$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 $
|
|
355
|
-
constructor(target, formatMessage){
|
|
356
|
-
this.dragTarget = target;
|
|
357
|
-
this.formatMessage = formatMessage;
|
|
358
|
-
this.onKeyDown = this.onKeyDown.bind(this);
|
|
359
|
-
this.onFocus = this.onFocus.bind(this);
|
|
360
|
-
this.onBlur = this.onBlur.bind(this);
|
|
361
|
-
this.onClick = this.onClick.bind(this);
|
|
362
|
-
this.cancelEvent = this.cancelEvent.bind(this);
|
|
363
|
-
}
|
|
360
|
+
class $28e10663603f5ea1$var$DragSession {
|
|
364
361
|
setup() {
|
|
365
362
|
document.addEventListener('keydown', this.onKeyDown, true);
|
|
366
363
|
window.addEventListener('focus', this.onFocus, true);
|
|
367
364
|
window.addEventListener('blur', this.onBlur, true);
|
|
368
365
|
document.addEventListener('click', this.onClick, true);
|
|
369
|
-
for (let event of $
|
|
366
|
+
for (let event of $28e10663603f5ea1$var$CANCELED_EVENTS)document.addEventListener(event, this.cancelEvent, true);
|
|
370
367
|
this.mutationObserver = new MutationObserver(()=>this.updateValidDropTargets()
|
|
371
368
|
);
|
|
372
369
|
this.updateValidDropTargets();
|
|
373
|
-
$
|
|
370
|
+
$4vY0V$reactarialiveannouncer.announce(this.formatMessage($28e10663603f5ea1$var$MESSAGES[$4620ae0dc40f0031$export$1fb2158d224b542c()]));
|
|
374
371
|
}
|
|
375
372
|
teardown() {
|
|
376
373
|
document.removeEventListener('keydown', this.onKeyDown, true);
|
|
377
374
|
window.removeEventListener('focus', this.onFocus, true);
|
|
378
375
|
window.removeEventListener('blur', this.onBlur, true);
|
|
379
376
|
document.removeEventListener('click', this.onClick, true);
|
|
380
|
-
for (let event of $
|
|
377
|
+
for (let event of $28e10663603f5ea1$var$CANCELED_EVENTS)document.removeEventListener(event, this.cancelEvent, true);
|
|
381
378
|
this.mutationObserver.disconnect();
|
|
382
379
|
this.restoreAriaHidden();
|
|
383
380
|
if (this.mutationImmediate) clearImmediate(this.mutationImmediate);
|
|
384
381
|
}
|
|
385
382
|
onKeyDown(e) {
|
|
383
|
+
var ref;
|
|
386
384
|
this.cancelEvent(e);
|
|
387
385
|
if (e.key === 'Escape') {
|
|
388
386
|
this.cancel();
|
|
@@ -397,7 +395,7 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
397
395
|
if (e.shiftKey) this.previous();
|
|
398
396
|
else this.next();
|
|
399
397
|
}
|
|
400
|
-
if (typeof this.currentDropTarget
|
|
398
|
+
if (typeof ((ref = this.currentDropTarget) === null || ref === void 0 ? void 0 : ref.onKeyDown) === 'function') this.currentDropTarget.onKeyDown(e, this.dragTarget);
|
|
401
399
|
}
|
|
402
400
|
onFocus(e) {
|
|
403
401
|
// Prevent focus events, except to the original drag target.
|
|
@@ -411,7 +409,7 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
411
409
|
else this.dragTarget.element.focus();
|
|
412
410
|
return;
|
|
413
411
|
}
|
|
414
|
-
let item = $
|
|
412
|
+
let item = $28e10663603f5ea1$var$dropItems.get(e.target);
|
|
415
413
|
this.setCurrentDropTarget(dropTarget, item);
|
|
416
414
|
}
|
|
417
415
|
onBlur(e) {
|
|
@@ -433,14 +431,17 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
433
431
|
let dropTarget = this.validDropTargets.find((target)=>target.element.contains(e.target)
|
|
434
432
|
);
|
|
435
433
|
if (dropTarget) {
|
|
436
|
-
let item = $
|
|
434
|
+
let item = $28e10663603f5ea1$var$dropItems.get(e.target);
|
|
437
435
|
this.setCurrentDropTarget(dropTarget, item);
|
|
438
436
|
this.drop(item);
|
|
439
437
|
}
|
|
440
438
|
}
|
|
441
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;
|
|
442
443
|
// Allow default for events that might cancel a click event
|
|
443
|
-
if (!$
|
|
444
|
+
if (!$28e10663603f5ea1$var$CLICK_EVENTS.includes(e.type)) e.preventDefault();
|
|
444
445
|
e.stopPropagation();
|
|
445
446
|
e.stopImmediatePropagation();
|
|
446
447
|
}
|
|
@@ -448,12 +449,12 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
448
449
|
if (!this.mutationObserver) return;
|
|
449
450
|
this.mutationObserver.disconnect();
|
|
450
451
|
if (this.restoreAriaHidden) this.restoreAriaHidden();
|
|
451
|
-
this.validDropTargets = $
|
|
452
|
+
this.validDropTargets = $28e10663603f5ea1$var$findValidDropTargets(this.dragTarget);
|
|
452
453
|
if (this.currentDropTarget && !this.validDropTargets.includes(this.currentDropTarget)) this.setCurrentDropTarget(this.validDropTargets[0]);
|
|
453
454
|
// Find valid drop items within collections
|
|
454
|
-
let types = $
|
|
455
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(this.dragTarget.items);
|
|
455
456
|
let validDropItems = [
|
|
456
|
-
...$
|
|
457
|
+
...$28e10663603f5ea1$var$dropItems.values()
|
|
457
458
|
].filter((item)=>{
|
|
458
459
|
if (typeof item.getDropOperation === 'function') return item.getDropOperation(types, this.dragTarget.allowedDropOperations) !== 'cancel';
|
|
459
460
|
return true;
|
|
@@ -463,7 +464,7 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
463
464
|
let visibleDropTargets = this.validDropTargets.filter((target)=>!validDropItems.some((item)=>target.element.contains(item.element)
|
|
464
465
|
)
|
|
465
466
|
);
|
|
466
|
-
this.restoreAriaHidden = $
|
|
467
|
+
this.restoreAriaHidden = $4vY0V$reactariaoverlays.ariaHideOutside([
|
|
467
468
|
this.dragTarget.element,
|
|
468
469
|
...validDropItems.map((item)=>item.element
|
|
469
470
|
),
|
|
@@ -536,12 +537,12 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
536
537
|
y: rect.top + rect.height / 2
|
|
537
538
|
}, this.dragTarget);
|
|
538
539
|
}
|
|
539
|
-
if (!item) dropTarget
|
|
540
|
+
if (!item) dropTarget === null || dropTarget === void 0 ? void 0 : dropTarget.element.focus();
|
|
540
541
|
}
|
|
541
542
|
}
|
|
542
543
|
if (item !== this.currentDropItem) {
|
|
543
|
-
if (item && typeof this.currentDropTarget.onDropTargetEnter === 'function') this.currentDropTarget.onDropTargetEnter(item
|
|
544
|
-
item
|
|
544
|
+
if (item && typeof this.currentDropTarget.onDropTargetEnter === 'function') this.currentDropTarget.onDropTargetEnter(item === null || item === void 0 ? void 0 : item.target);
|
|
545
|
+
item === null || item === void 0 ? void 0 : item.element.focus();
|
|
545
546
|
this.currentDropItem = item;
|
|
546
547
|
}
|
|
547
548
|
}
|
|
@@ -557,24 +558,29 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
557
558
|
dropOperation: this.dropOperation
|
|
558
559
|
});
|
|
559
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
|
+
}
|
|
560
566
|
this.setCurrentDropTarget(null);
|
|
561
|
-
$
|
|
567
|
+
$28e10663603f5ea1$var$endDragging();
|
|
562
568
|
}
|
|
563
569
|
cancel() {
|
|
564
570
|
this.end();
|
|
565
571
|
if (!this.dragTarget.element.closest('[aria-hidden="true"]')) this.dragTarget.element.focus();
|
|
566
|
-
$
|
|
572
|
+
$4vY0V$reactarialiveannouncer.announce(this.formatMessage('dropCanceled'));
|
|
567
573
|
}
|
|
568
574
|
drop(item1) {
|
|
569
575
|
if (!this.currentDropTarget) {
|
|
570
576
|
this.cancel();
|
|
571
577
|
return;
|
|
572
578
|
}
|
|
573
|
-
if (typeof item1
|
|
574
|
-
let types = $
|
|
579
|
+
if (typeof (item1 === null || item1 === void 0 ? void 0 : item1.getDropOperation) === 'function') {
|
|
580
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(this.dragTarget.items);
|
|
575
581
|
this.dropOperation = item1.getDropOperation(types, this.dragTarget.allowedDropOperations);
|
|
576
582
|
} else if (typeof this.currentDropTarget.getDropOperation === 'function') {
|
|
577
|
-
let types = $
|
|
583
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(this.dragTarget.items);
|
|
578
584
|
this.dropOperation = this.currentDropTarget.getDropOperation(types, this.dragTarget.allowedDropOperations);
|
|
579
585
|
} else // TODO: show menu ??
|
|
580
586
|
this.dropOperation = this.dragTarget.allowedDropOperations[0];
|
|
@@ -592,10 +598,10 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
592
598
|
y: rect.top + rect.height / 2,
|
|
593
599
|
items: items,
|
|
594
600
|
dropOperation: this.dropOperation
|
|
595
|
-
}, item1
|
|
601
|
+
}, item1 === null || item1 === void 0 ? void 0 : item1.target);
|
|
596
602
|
}
|
|
597
603
|
this.end();
|
|
598
|
-
$
|
|
604
|
+
$4vY0V$reactarialiveannouncer.announce(this.formatMessage('dropComplete'));
|
|
599
605
|
}
|
|
600
606
|
activate() {
|
|
601
607
|
if (this.currentDropTarget && typeof this.currentDropTarget.onDropActivate === 'function') {
|
|
@@ -607,11 +613,20 @@ class $d69e2bc1de15721f$var$DragSession {
|
|
|
607
613
|
});
|
|
608
614
|
}
|
|
609
615
|
}
|
|
616
|
+
constructor(target, formatMessage){
|
|
617
|
+
this.dragTarget = target;
|
|
618
|
+
this.formatMessage = formatMessage;
|
|
619
|
+
this.onKeyDown = this.onKeyDown.bind(this);
|
|
620
|
+
this.onFocus = this.onFocus.bind(this);
|
|
621
|
+
this.onBlur = this.onBlur.bind(this);
|
|
622
|
+
this.onClick = this.onClick.bind(this);
|
|
623
|
+
this.cancelEvent = this.cancelEvent.bind(this);
|
|
624
|
+
}
|
|
610
625
|
}
|
|
611
|
-
function $
|
|
612
|
-
let types = $
|
|
626
|
+
function $28e10663603f5ea1$var$findValidDropTargets(options) {
|
|
627
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(options.items);
|
|
613
628
|
return [
|
|
614
|
-
...$
|
|
629
|
+
...$28e10663603f5ea1$var$dropTargets.values()
|
|
615
630
|
].filter((target)=>{
|
|
616
631
|
if (target.element.closest('[aria-hidden="true"]')) return false;
|
|
617
632
|
if (typeof target.getDropOperation === 'function') return target.getDropOperation(types, options.allowedDropOperations) !== 'cancel';
|
|
@@ -621,178 +636,178 @@ function $d69e2bc1de15721f$var$findValidDropTargets(options) {
|
|
|
621
636
|
|
|
622
637
|
|
|
623
638
|
|
|
624
|
-
var $
|
|
625
|
-
var $
|
|
626
|
-
$
|
|
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}\"}");
|
|
627
642
|
|
|
628
643
|
|
|
629
|
-
var $
|
|
630
|
-
$
|
|
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}\"}");
|
|
631
646
|
|
|
632
647
|
|
|
633
|
-
var $
|
|
634
|
-
$
|
|
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}\"}");
|
|
635
650
|
|
|
636
651
|
|
|
637
|
-
var $
|
|
638
|
-
$
|
|
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}\"}");
|
|
639
654
|
|
|
640
655
|
|
|
641
|
-
var $
|
|
642
|
-
$
|
|
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\"}");
|
|
643
658
|
|
|
644
659
|
|
|
645
|
-
var $
|
|
646
|
-
$
|
|
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}\"}");
|
|
647
662
|
|
|
648
663
|
|
|
649
|
-
var $
|
|
650
|
-
$
|
|
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}\"}");
|
|
651
666
|
|
|
652
667
|
|
|
653
|
-
var $
|
|
654
|
-
$
|
|
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}\"}");
|
|
655
670
|
|
|
656
671
|
|
|
657
|
-
var $
|
|
658
|
-
$
|
|
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\"}");
|
|
659
674
|
|
|
660
675
|
|
|
661
|
-
var $
|
|
662
|
-
$
|
|
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\"}");
|
|
663
678
|
|
|
664
679
|
|
|
665
|
-
var $
|
|
666
|
-
$
|
|
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}\"}");
|
|
667
682
|
|
|
668
683
|
|
|
669
|
-
var $
|
|
670
|
-
$
|
|
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}\"}");
|
|
671
686
|
|
|
672
687
|
|
|
673
|
-
var $
|
|
674
|
-
$
|
|
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}\"}");
|
|
675
690
|
|
|
676
691
|
|
|
677
|
-
var $
|
|
678
|
-
$
|
|
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é\"}");
|
|
679
694
|
|
|
680
695
|
|
|
681
|
-
var $
|
|
682
|
-
$
|
|
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}\"}");
|
|
683
698
|
|
|
684
699
|
|
|
685
|
-
var $
|
|
686
|
-
$
|
|
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} の間に挿入\"}");
|
|
687
702
|
|
|
688
703
|
|
|
689
|
-
var $
|
|
690
|
-
$
|
|
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} 사이에 삽입\"}");
|
|
691
706
|
|
|
692
707
|
|
|
693
|
-
var $
|
|
694
|
-
$
|
|
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}\"}");
|
|
695
710
|
|
|
696
711
|
|
|
697
|
-
var $
|
|
698
|
-
$
|
|
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}\"}");
|
|
699
714
|
|
|
700
715
|
|
|
701
|
-
var $
|
|
702
|
-
$
|
|
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}\"}");
|
|
703
718
|
|
|
704
719
|
|
|
705
|
-
var $
|
|
706
|
-
$
|
|
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}\"}");
|
|
707
722
|
|
|
708
723
|
|
|
709
|
-
var $
|
|
710
|
-
$
|
|
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}\"}");
|
|
711
726
|
|
|
712
727
|
|
|
713
|
-
var $
|
|
714
|
-
$
|
|
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}\"}");
|
|
715
730
|
|
|
716
731
|
|
|
717
|
-
var $
|
|
718
|
-
$
|
|
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}\"}");
|
|
719
734
|
|
|
720
735
|
|
|
721
|
-
var $
|
|
722
|
-
$
|
|
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}\"}");
|
|
723
738
|
|
|
724
739
|
|
|
725
|
-
var $
|
|
726
|
-
$
|
|
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}\"}");
|
|
727
742
|
|
|
728
743
|
|
|
729
|
-
var $
|
|
730
|
-
$
|
|
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}\"}");
|
|
731
746
|
|
|
732
747
|
|
|
733
|
-
var $
|
|
734
|
-
$
|
|
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}\"}");
|
|
735
750
|
|
|
736
751
|
|
|
737
|
-
var $
|
|
738
|
-
$
|
|
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}\"}");
|
|
739
754
|
|
|
740
755
|
|
|
741
|
-
var $
|
|
742
|
-
$
|
|
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}\"}");
|
|
743
758
|
|
|
744
759
|
|
|
745
|
-
var $
|
|
746
|
-
$
|
|
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\"}");
|
|
747
762
|
|
|
748
763
|
|
|
749
|
-
var $
|
|
750
|
-
$
|
|
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}\"}");
|
|
751
766
|
|
|
752
767
|
|
|
753
|
-
var $
|
|
754
|
-
$
|
|
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} 之间\"}");
|
|
755
770
|
|
|
756
771
|
|
|
757
|
-
var $
|
|
758
|
-
$
|
|
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}」之間\"}");
|
|
759
774
|
|
|
760
775
|
|
|
761
|
-
$
|
|
762
|
-
"ar-AE": $
|
|
763
|
-
"bg-BG": $
|
|
764
|
-
"cs-CZ": $
|
|
765
|
-
"da-DK": $
|
|
766
|
-
"de-DE": $
|
|
767
|
-
"el-GR": $
|
|
768
|
-
"en-US": $
|
|
769
|
-
"es-ES": $
|
|
770
|
-
"et-EE": $
|
|
771
|
-
"fi-FI": $
|
|
772
|
-
"fr-FR": $
|
|
773
|
-
"he-IL": $
|
|
774
|
-
"hr-HR": $
|
|
775
|
-
"hu-HU": $
|
|
776
|
-
"it-IT": $
|
|
777
|
-
"ja-JP": $
|
|
778
|
-
"ko-KR": $
|
|
779
|
-
"lt-LT": $
|
|
780
|
-
"lv-LV": $
|
|
781
|
-
"nb-NO": $
|
|
782
|
-
"nl-NL": $
|
|
783
|
-
"pl-PL": $
|
|
784
|
-
"pt-BR": $
|
|
785
|
-
"pt-PT": $
|
|
786
|
-
"ro-RO": $
|
|
787
|
-
"ru-RU": $
|
|
788
|
-
"sk-SK": $
|
|
789
|
-
"sl-SI": $
|
|
790
|
-
"sr-SP": $
|
|
791
|
-
"sv-SE": $
|
|
792
|
-
"tr-TR": $
|
|
793
|
-
"uk-UA": $
|
|
794
|
-
"zh-CN": $
|
|
795
|
-
"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
|
|
796
811
|
};
|
|
797
812
|
|
|
798
813
|
|
|
@@ -801,7 +816,7 @@ $a0e2171154b8c4fe$exports = {
|
|
|
801
816
|
|
|
802
817
|
|
|
803
818
|
|
|
804
|
-
const $
|
|
819
|
+
const $dc204e8ec58447a6$var$MESSAGES = {
|
|
805
820
|
keyboard: {
|
|
806
821
|
start: 'dragDescriptionKeyboard',
|
|
807
822
|
end: 'endDragKeyboard'
|
|
@@ -815,23 +830,24 @@ const $d067e40b40cb0a24$var$MESSAGES = {
|
|
|
815
830
|
end: 'endDragVirtual'
|
|
816
831
|
}
|
|
817
832
|
};
|
|
818
|
-
function $
|
|
819
|
-
let formatMessage = $
|
|
820
|
-
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({
|
|
821
836
|
options: options,
|
|
822
837
|
x: 0,
|
|
823
838
|
y: 0
|
|
824
839
|
}).current;
|
|
825
840
|
state.options = options;
|
|
826
|
-
let [isDragging, setDragging] = $
|
|
827
|
-
let
|
|
841
|
+
let [isDragging, setDragging] = $4vY0V$react.useState(false);
|
|
842
|
+
let { addGlobalListener: addGlobalListener , removeAllGlobalListeners: removeAllGlobalListeners } = $4vY0V$reactariautils.useGlobalListeners();
|
|
843
|
+
let onDragStart = (e1)=>{
|
|
828
844
|
let items = options.getItems();
|
|
829
|
-
$
|
|
845
|
+
$4620ae0dc40f0031$export$f9c1490890ddd063(e1.dataTransfer, items);
|
|
830
846
|
if (typeof options.getAllowedDropOperations === 'function') {
|
|
831
847
|
let allowedOperations = options.getAllowedDropOperations();
|
|
832
|
-
let allowed = $
|
|
833
|
-
for (let operation of allowedOperations)allowed |= $
|
|
834
|
-
|
|
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';
|
|
835
851
|
}
|
|
836
852
|
// If there is a renderPreview function, use it to render a custom preview image that will
|
|
837
853
|
// appear under the pointer while dragging. If not, the element itself is dragged by the browser.
|
|
@@ -846,32 +862,43 @@ function $d067e40b40cb0a24$export$7941f8aafa4b6021(options) {
|
|
|
846
862
|
node.style.left = '-100000px';
|
|
847
863
|
document.body.appendChild(node);
|
|
848
864
|
// Call renderPreview to get a JSX element, and render it into the div with React DOM.
|
|
849
|
-
($parcel$interopDefault($
|
|
865
|
+
($parcel$interopDefault($4vY0V$reactdom)).render(preview, node);
|
|
850
866
|
// Compute the offset that the preview will appear under the mouse.
|
|
851
867
|
// If possible, this is based on the point the user clicked on the target.
|
|
852
868
|
// If the preview is much smaller, then just use the center point of the preview.
|
|
853
869
|
let size = node.getBoundingClientRect();
|
|
854
|
-
let rect =
|
|
855
|
-
let x =
|
|
856
|
-
let y =
|
|
870
|
+
let rect = e1.currentTarget.getBoundingClientRect();
|
|
871
|
+
let x = e1.clientX - rect.x;
|
|
872
|
+
let y = e1.clientY - rect.y;
|
|
857
873
|
if (x > size.width || y > size.height) {
|
|
858
874
|
x = size.width / 2;
|
|
859
875
|
y = size.height / 2;
|
|
860
876
|
}
|
|
861
|
-
|
|
877
|
+
e1.dataTransfer.setDragImage(node, x, y);
|
|
862
878
|
// Remove the preview from the DOM after a frame so the browser has time to paint.
|
|
863
879
|
requestAnimationFrame(()=>{
|
|
864
880
|
document.body.removeChild(node);
|
|
865
881
|
});
|
|
866
882
|
}
|
|
867
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
|
+
});
|
|
868
895
|
if (typeof options.onDragStart === 'function') options.onDragStart({
|
|
869
896
|
type: 'dragstart',
|
|
870
|
-
x:
|
|
871
|
-
y:
|
|
897
|
+
x: e1.clientX,
|
|
898
|
+
y: e1.clientY
|
|
872
899
|
});
|
|
873
|
-
state.x =
|
|
874
|
-
state.y =
|
|
900
|
+
state.x = e1.clientX;
|
|
901
|
+
state.y = e1.clientY;
|
|
875
902
|
// Wait a frame before we set dragging to true so that the browser has time to
|
|
876
903
|
// render the preview image before we update the element that has been dragged.
|
|
877
904
|
requestAnimationFrame(()=>{
|
|
@@ -893,22 +920,23 @@ function $d067e40b40cb0a24$export$7941f8aafa4b6021(options) {
|
|
|
893
920
|
type: 'dragend',
|
|
894
921
|
x: e.clientX,
|
|
895
922
|
y: e.clientY,
|
|
896
|
-
dropOperation: $
|
|
923
|
+
dropOperation: $76b1e110a27b1ccd$export$608ecc6f1b23c35d[e.dataTransfer.dropEffect]
|
|
897
924
|
});
|
|
898
925
|
setDragging(false);
|
|
926
|
+
removeAllGlobalListeners();
|
|
899
927
|
};
|
|
900
|
-
let onPress = (
|
|
901
|
-
if (
|
|
928
|
+
let onPress = (e2)=>{
|
|
929
|
+
if (e2.pointerType !== 'keyboard' && e2.pointerType !== 'virtual') return;
|
|
902
930
|
if (typeof state.options.onDragStart === 'function') {
|
|
903
|
-
let rect =
|
|
931
|
+
let rect = e2.target.getBoundingClientRect();
|
|
904
932
|
state.options.onDragStart({
|
|
905
933
|
type: 'dragstart',
|
|
906
934
|
x: rect.x + rect.width / 2,
|
|
907
935
|
y: rect.y + rect.height / 2
|
|
908
936
|
});
|
|
909
937
|
}
|
|
910
|
-
$
|
|
911
|
-
element:
|
|
938
|
+
$28e10663603f5ea1$export$549dbcf8649bf3b2({
|
|
939
|
+
element: e2.target,
|
|
912
940
|
items: state.options.getItems(),
|
|
913
941
|
allowedDropOperations: typeof state.options.getAllowedDropOperations === 'function' ? state.options.getAllowedDropOperations() : [
|
|
914
942
|
'move',
|
|
@@ -922,8 +950,8 @@ function $d067e40b40cb0a24$export$7941f8aafa4b6021(options) {
|
|
|
922
950
|
}, formatMessage);
|
|
923
951
|
setDragging(true);
|
|
924
952
|
};
|
|
925
|
-
let modality = $
|
|
926
|
-
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));
|
|
927
955
|
return {
|
|
928
956
|
dragProps: {
|
|
929
957
|
draggable: 'true',
|
|
@@ -940,9 +968,9 @@ function $d067e40b40cb0a24$export$7941f8aafa4b6021(options) {
|
|
|
940
968
|
}
|
|
941
969
|
|
|
942
970
|
|
|
943
|
-
var $
|
|
971
|
+
var $1ca228bc9257ca16$exports = {};
|
|
944
972
|
|
|
945
|
-
$parcel$export($
|
|
973
|
+
$parcel$export($1ca228bc9257ca16$exports, "useDrop", () => $1ca228bc9257ca16$export$ccdee5eaf73cf661);
|
|
946
974
|
|
|
947
975
|
|
|
948
976
|
|
|
@@ -953,16 +981,16 @@ $parcel$export($444fab3ca6c3b038$exports, "useDrop", () => $444fab3ca6c3b038$exp
|
|
|
953
981
|
|
|
954
982
|
|
|
955
983
|
|
|
956
|
-
const $
|
|
984
|
+
const $419982e205c8e8dc$var$MESSAGES = {
|
|
957
985
|
keyboard: 'dropDescriptionKeyboard',
|
|
958
986
|
touch: 'dropDescriptionTouch',
|
|
959
987
|
virtual: 'dropDescriptionVirtual'
|
|
960
988
|
};
|
|
961
|
-
function $
|
|
962
|
-
let formatMessage = $
|
|
963
|
-
let modality = $
|
|
964
|
-
let dragSession = $
|
|
965
|
-
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]) : '');
|
|
966
994
|
return {
|
|
967
995
|
dropProps: {
|
|
968
996
|
...descriptionProps,
|
|
@@ -978,10 +1006,10 @@ function $116cc020faed051c$export$62447ad3d2ec7da6() {
|
|
|
978
1006
|
}
|
|
979
1007
|
|
|
980
1008
|
|
|
981
|
-
const $
|
|
982
|
-
function $
|
|
983
|
-
let [isDropTarget, setDropTarget] = $
|
|
984
|
-
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({
|
|
985
1013
|
x: 0,
|
|
986
1014
|
y: 0,
|
|
987
1015
|
dragEnterCount: 0,
|
|
@@ -998,11 +1026,11 @@ function $444fab3ca6c3b038$export$ccdee5eaf73cf661(options) {
|
|
|
998
1026
|
state.x = e.clientX;
|
|
999
1027
|
state.y = e.clientY;
|
|
1000
1028
|
if (typeof options.getDropOperationForPoint === 'function') {
|
|
1001
|
-
let allowedOperations = $
|
|
1002
|
-
let types = new $
|
|
1029
|
+
let allowedOperations = $1ca228bc9257ca16$var$effectAllowedToOperations(e.dataTransfer.effectAllowed);
|
|
1030
|
+
let types = new $4620ae0dc40f0031$export$7f04ce188c91447c(e.dataTransfer);
|
|
1003
1031
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1004
1032
|
let dropOperation = options.getDropOperationForPoint(types, allowedOperations, state.x - rect.x, state.y - rect.y);
|
|
1005
|
-
state.dropEffect = $
|
|
1033
|
+
state.dropEffect = $76b1e110a27b1ccd$export$5eacb0769d26d3b2[dropOperation] || 'none';
|
|
1006
1034
|
}
|
|
1007
1035
|
e.dataTransfer.dropEffect = state.dropEffect;
|
|
1008
1036
|
if (typeof options.onDropMove === 'function') {
|
|
@@ -1022,26 +1050,26 @@ function $444fab3ca6c3b038$export$ccdee5eaf73cf661(options) {
|
|
|
1022
1050
|
x: state.x - rect.x,
|
|
1023
1051
|
y: state.y - rect.y
|
|
1024
1052
|
});
|
|
1025
|
-
}, $
|
|
1053
|
+
}, $1ca228bc9257ca16$var$DROP_ACTIVATE_TIMEOUT);
|
|
1026
1054
|
}
|
|
1027
1055
|
};
|
|
1028
1056
|
let onDragEnter = (e)=>{
|
|
1029
1057
|
e.stopPropagation();
|
|
1030
1058
|
state.dragEnterCount++;
|
|
1031
1059
|
if (state.dragEnterCount > 1) return;
|
|
1032
|
-
let allowedOperations = $
|
|
1060
|
+
let allowedOperations = $1ca228bc9257ca16$var$effectAllowedToOperations(e.dataTransfer.effectAllowed);
|
|
1033
1061
|
let dropOperation = allowedOperations[0];
|
|
1034
1062
|
if (typeof options.getDropOperation === 'function') {
|
|
1035
|
-
let types = new $
|
|
1063
|
+
let types = new $4620ae0dc40f0031$export$7f04ce188c91447c(e.dataTransfer);
|
|
1036
1064
|
dropOperation = options.getDropOperation(types, allowedOperations);
|
|
1037
1065
|
}
|
|
1038
1066
|
if (dropOperation !== 'cancel') setDropTarget(true);
|
|
1039
1067
|
if (typeof options.getDropOperationForPoint === 'function') {
|
|
1040
|
-
let types = new $
|
|
1068
|
+
let types = new $4620ae0dc40f0031$export$7f04ce188c91447c(e.dataTransfer);
|
|
1041
1069
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1042
1070
|
dropOperation = options.getDropOperationForPoint(types, allowedOperations, e.clientX - rect.x, e.clientY - rect.y);
|
|
1043
1071
|
}
|
|
1044
|
-
state.dropEffect = $
|
|
1072
|
+
state.dropEffect = $76b1e110a27b1ccd$export$5eacb0769d26d3b2[dropOperation] || 'none';
|
|
1045
1073
|
e.dataTransfer.dropEffect = state.dropEffect;
|
|
1046
1074
|
if (typeof options.onDropEnter === 'function' && dropOperation !== 'cancel') {
|
|
1047
1075
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
@@ -1073,8 +1101,8 @@ function $444fab3ca6c3b038$export$ccdee5eaf73cf661(options) {
|
|
|
1073
1101
|
e.preventDefault();
|
|
1074
1102
|
e.stopPropagation();
|
|
1075
1103
|
if (typeof options.onDrop === 'function') {
|
|
1076
|
-
let dropOperation = $
|
|
1077
|
-
let items = $
|
|
1104
|
+
let dropOperation = $76b1e110a27b1ccd$export$608ecc6f1b23c35d[state.dropEffect];
|
|
1105
|
+
let items = $4620ae0dc40f0031$export$d9e760437831f8b3(e.dataTransfer);
|
|
1078
1106
|
let rect = e.currentTarget.getBoundingClientRect();
|
|
1079
1107
|
let event = {
|
|
1080
1108
|
type: 'drop',
|
|
@@ -1103,9 +1131,9 @@ function $444fab3ca6c3b038$export$ccdee5eaf73cf661(options) {
|
|
|
1103
1131
|
setDropTarget(false);
|
|
1104
1132
|
clearTimeout(state.dropActivateTimer);
|
|
1105
1133
|
};
|
|
1106
|
-
let optionsRef = $
|
|
1134
|
+
let optionsRef = $4vY0V$react.useRef(options);
|
|
1107
1135
|
optionsRef.current = options;
|
|
1108
|
-
$
|
|
1136
|
+
$4vY0V$reactariautils.useLayoutEffect(()=>$28e10663603f5ea1$export$c28d9fb4a54e471a({
|
|
1109
1137
|
element: optionsRef.current.ref.current,
|
|
1110
1138
|
getDropOperation: optionsRef.current.getDropOperation,
|
|
1111
1139
|
onDropEnter (e) {
|
|
@@ -1126,7 +1154,7 @@ function $444fab3ca6c3b038$export$ccdee5eaf73cf661(options) {
|
|
|
1126
1154
|
, [
|
|
1127
1155
|
optionsRef
|
|
1128
1156
|
]);
|
|
1129
|
-
let { dropProps: dropProps } = $
|
|
1157
|
+
let { dropProps: dropProps } = $419982e205c8e8dc$export$62447ad3d2ec7da6();
|
|
1130
1158
|
return {
|
|
1131
1159
|
dropProps: {
|
|
1132
1160
|
...dropProps,
|
|
@@ -1138,19 +1166,19 @@ function $444fab3ca6c3b038$export$ccdee5eaf73cf661(options) {
|
|
|
1138
1166
|
isDropTarget: isDropTarget
|
|
1139
1167
|
};
|
|
1140
1168
|
}
|
|
1141
|
-
function $
|
|
1142
|
-
let allowedOperationsBits = $
|
|
1169
|
+
function $1ca228bc9257ca16$var$effectAllowedToOperations(effectAllowed) {
|
|
1170
|
+
let allowedOperationsBits = $76b1e110a27b1ccd$export$9bbdfc78cf083e16[effectAllowed];
|
|
1143
1171
|
let allowedOperations = [];
|
|
1144
|
-
if (allowedOperationsBits & $
|
|
1145
|
-
if (allowedOperationsBits & $
|
|
1146
|
-
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');
|
|
1147
1175
|
return allowedOperations;
|
|
1148
1176
|
}
|
|
1149
1177
|
|
|
1150
1178
|
|
|
1151
|
-
var $
|
|
1179
|
+
var $7f93a158ac20b90a$exports = {};
|
|
1152
1180
|
|
|
1153
|
-
$parcel$export($
|
|
1181
|
+
$parcel$export($7f93a158ac20b90a$exports, "useDroppableCollection", () => $7f93a158ac20b90a$export$f4e2f423c21f7b04);
|
|
1154
1182
|
|
|
1155
1183
|
|
|
1156
1184
|
|
|
@@ -1158,20 +1186,20 @@ $parcel$export($f56fb52b53faaf3d$exports, "useDroppableCollection", () => $f56fb
|
|
|
1158
1186
|
|
|
1159
1187
|
|
|
1160
1188
|
|
|
1161
|
-
const $
|
|
1162
|
-
function $
|
|
1163
|
-
let scrollableRef = $
|
|
1164
|
-
$
|
|
1165
|
-
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);
|
|
1166
1194
|
}, [
|
|
1167
1195
|
ref
|
|
1168
1196
|
]);
|
|
1169
|
-
let state = $
|
|
1197
|
+
let state = $4vY0V$react.useRef({
|
|
1170
1198
|
timer: null,
|
|
1171
1199
|
dx: 0,
|
|
1172
1200
|
dy: 0
|
|
1173
1201
|
}).current;
|
|
1174
|
-
let scroll = $
|
|
1202
|
+
let scroll = $4vY0V$react.useCallback(()=>{
|
|
1175
1203
|
scrollableRef.current.scrollLeft += state.dx;
|
|
1176
1204
|
scrollableRef.current.scrollTop += state.dy;
|
|
1177
1205
|
if (state.timer) state.timer = requestAnimationFrame(scroll);
|
|
@@ -1183,12 +1211,12 @@ function $0337847923f488b7$export$6323452ca4533ed8(ref) {
|
|
|
1183
1211
|
move (x, y) {
|
|
1184
1212
|
// Most browsers auto scroll natively, but WebKit on macOS does not (iOS does 🤷♂️).
|
|
1185
1213
|
// https://bugs.webkit.org/show_bug.cgi?id=222636
|
|
1186
|
-
if (!$
|
|
1214
|
+
if (!$4vY0V$reactariautils.isWebKit() || $4vY0V$reactariautils.isIOS() || !scrollableRef.current) return;
|
|
1187
1215
|
let box = scrollableRef.current.getBoundingClientRect();
|
|
1188
|
-
let left = $
|
|
1189
|
-
let top = $
|
|
1190
|
-
let bottom = box.height - $
|
|
1191
|
-
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;
|
|
1192
1220
|
if (x < left || x > right || y < top || y > bottom) {
|
|
1193
1221
|
if (x < left) state.dx = x - left;
|
|
1194
1222
|
else if (x > right) state.dx = x - right;
|
|
@@ -1209,13 +1237,13 @@ function $0337847923f488b7$export$6323452ca4533ed8(ref) {
|
|
|
1209
1237
|
|
|
1210
1238
|
|
|
1211
1239
|
|
|
1212
|
-
const $
|
|
1240
|
+
const $7f93a158ac20b90a$var$DROP_POSITIONS = [
|
|
1213
1241
|
'before',
|
|
1214
1242
|
'on',
|
|
1215
1243
|
'after'
|
|
1216
1244
|
];
|
|
1217
|
-
function $
|
|
1218
|
-
let localState = $
|
|
1245
|
+
function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
|
|
1246
|
+
let localState = $4vY0V$react.useRef({
|
|
1219
1247
|
props: props,
|
|
1220
1248
|
state: state1,
|
|
1221
1249
|
nextTarget: null,
|
|
@@ -1223,9 +1251,9 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1223
1251
|
}).current;
|
|
1224
1252
|
localState.props = props;
|
|
1225
1253
|
localState.state = state1;
|
|
1226
|
-
let autoScroll = $
|
|
1227
|
-
let { dropProps: dropProps } = $
|
|
1228
|
-
ref:
|
|
1254
|
+
let autoScroll = $12cc069a1c69155b$export$6323452ca4533ed8(ref2);
|
|
1255
|
+
let { dropProps: dropProps } = $1ca228bc9257ca16$export$ccdee5eaf73cf661({
|
|
1256
|
+
ref: ref2,
|
|
1229
1257
|
onDropEnter (e) {
|
|
1230
1258
|
let target = props.getDropTargetFromPoint(e.x, e.y);
|
|
1231
1259
|
state1.setTarget(target);
|
|
@@ -1265,7 +1293,8 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1265
1293
|
autoScroll.stop();
|
|
1266
1294
|
},
|
|
1267
1295
|
onDropActivate (e) {
|
|
1268
|
-
|
|
1296
|
+
var ref, ref1;
|
|
1297
|
+
if (((ref = state1.target) === null || ref === void 0 ? void 0 : ref.type) === 'item' && ((ref1 = state1.target) === null || ref1 === void 0 ? void 0 : ref1.dropPosition) === 'on' && typeof props.onDropActivate === 'function') props.onDropActivate({
|
|
1269
1298
|
type: 'dropactivate',
|
|
1270
1299
|
x: e.x,
|
|
1271
1300
|
y: e.y,
|
|
@@ -1276,8 +1305,8 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1276
1305
|
if (state1.target && typeof props.onDrop === 'function') onDrop(e, state1.target);
|
|
1277
1306
|
}
|
|
1278
1307
|
});
|
|
1279
|
-
let droppingState = $
|
|
1280
|
-
let onDrop = $
|
|
1308
|
+
let droppingState = $4vY0V$react.useRef(null);
|
|
1309
|
+
let onDrop = $4vY0V$react.useCallback((e, target)=>{
|
|
1281
1310
|
let { state: state2 } = localState;
|
|
1282
1311
|
// Focus the collection.
|
|
1283
1312
|
state2.selectionManager.setFocused(true);
|
|
@@ -1310,8 +1339,8 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1310
1339
|
if (target.type === 'item' && target.dropPosition === 'on' && state.collection.getItem(target.key) != null) {
|
|
1311
1340
|
state.selectionManager.setFocusedKey(target.key);
|
|
1312
1341
|
state.selectionManager.setFocused(true);
|
|
1313
|
-
$
|
|
1314
|
-
} else if (!state.selectionManager.isSelected(focusedKey)) $
|
|
1342
|
+
$4vY0V$reactariainteractions.setInteractionModality('keyboard');
|
|
1343
|
+
} else if (!state.selectionManager.isSelected(focusedKey)) $4vY0V$reactariainteractions.setInteractionModality('keyboard');
|
|
1315
1344
|
}
|
|
1316
1345
|
droppingState.current = null;
|
|
1317
1346
|
}, 50);
|
|
@@ -1319,12 +1348,12 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1319
1348
|
localState
|
|
1320
1349
|
]);
|
|
1321
1350
|
// eslint-disable-next-line arrow-body-style
|
|
1322
|
-
$
|
|
1351
|
+
$4vY0V$react.useEffect(()=>{
|
|
1323
1352
|
return ()=>{
|
|
1324
1353
|
if (droppingState.current) clearTimeout(droppingState.current.timeout);
|
|
1325
1354
|
};
|
|
1326
1355
|
}, []);
|
|
1327
|
-
$
|
|
1356
|
+
$4vY0V$reactariautils.useLayoutEffect(()=>{
|
|
1328
1357
|
// If an insert occurs during a drop, we want to immediately select these items to give
|
|
1329
1358
|
// feedback to the user that a drop occurred. Only do this if the selection didn't change
|
|
1330
1359
|
// since the drop started so we don't override if the user or application did something.
|
|
@@ -1338,12 +1367,12 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1338
1367
|
if (state1.selectionManager.focusedKey === droppingState.current.focusedKey) {
|
|
1339
1368
|
let first = newKeys.keys().next().value;
|
|
1340
1369
|
state1.selectionManager.setFocusedKey(first);
|
|
1341
|
-
if (state1.selectionManager.selectionMode === 'none') $
|
|
1370
|
+
if (state1.selectionManager.selectionMode === 'none') $4vY0V$reactariainteractions.setInteractionModality('keyboard');
|
|
1342
1371
|
}
|
|
1343
1372
|
droppingState.current = null;
|
|
1344
1373
|
}
|
|
1345
1374
|
});
|
|
1346
|
-
$
|
|
1375
|
+
$4vY0V$react.useEffect(()=>{
|
|
1347
1376
|
let getNextTarget1 = (target, wrap = true)=>{
|
|
1348
1377
|
if (!target) return {
|
|
1349
1378
|
type: 'root'
|
|
@@ -1352,9 +1381,9 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1352
1381
|
let nextKey = target.type === 'item' ? keyboardDelegate.getKeyBelow(target.key) : keyboardDelegate.getFirstKey();
|
|
1353
1382
|
let dropPosition = 'before';
|
|
1354
1383
|
if (target.type === 'item') {
|
|
1355
|
-
let positionIndex = $
|
|
1356
|
-
let nextDropPosition = $
|
|
1357
|
-
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 {
|
|
1358
1387
|
type: 'item',
|
|
1359
1388
|
key: target.key,
|
|
1360
1389
|
dropPosition: nextDropPosition
|
|
@@ -1377,11 +1406,11 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1377
1406
|
};
|
|
1378
1407
|
let getPreviousTarget = (target, wrap = true)=>{
|
|
1379
1408
|
let { keyboardDelegate: keyboardDelegate } = localState.props;
|
|
1380
|
-
let nextKey = target
|
|
1409
|
+
let nextKey = (target === null || target === void 0 ? void 0 : target.type) === 'item' ? keyboardDelegate.getKeyAbove(target.key) : keyboardDelegate.getLastKey();
|
|
1381
1410
|
let dropPosition = !target || target.type === 'root' ? 'after' : 'on';
|
|
1382
|
-
if (target
|
|
1383
|
-
let positionIndex = $
|
|
1384
|
-
let nextDropPosition = $
|
|
1411
|
+
if ((target === null || target === void 0 ? void 0 : target.type) === 'item') {
|
|
1412
|
+
let positionIndex = $7f93a158ac20b90a$var$DROP_POSITIONS.indexOf(target.dropPosition);
|
|
1413
|
+
let nextDropPosition = $7f93a158ac20b90a$var$DROP_POSITIONS[positionIndex - 1];
|
|
1385
1414
|
if (positionIndex > 0 && nextDropPosition !== 'after') return {
|
|
1386
1415
|
type: 'item',
|
|
1387
1416
|
key: target.key,
|
|
@@ -1416,8 +1445,8 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1416
1445
|
if (operation === 'cancel') return null;
|
|
1417
1446
|
return target;
|
|
1418
1447
|
};
|
|
1419
|
-
return $
|
|
1420
|
-
element:
|
|
1448
|
+
return $28e10663603f5ea1$export$c28d9fb4a54e471a({
|
|
1449
|
+
element: ref2.current,
|
|
1421
1450
|
getDropOperation (types, allowedOperations) {
|
|
1422
1451
|
if (localState.state.target) return localState.state.getDropOperation(localState.state.target, types, allowedOperations);
|
|
1423
1452
|
// Check if any of the targets accept the drop.
|
|
@@ -1426,7 +1455,7 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1426
1455
|
return target ? 'move' : 'cancel';
|
|
1427
1456
|
},
|
|
1428
1457
|
onDropEnter (e, drag) {
|
|
1429
|
-
let types = $
|
|
1458
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(drag.items);
|
|
1430
1459
|
let selectionManager = localState.state.selectionManager;
|
|
1431
1460
|
let target;
|
|
1432
1461
|
// When entering the droppable collection for the first time, the default drop target
|
|
@@ -1436,7 +1465,7 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1436
1465
|
// If the focused key is a cell, get the parent item instead.
|
|
1437
1466
|
// For now, we assume that individual cells cannot be dropped on.
|
|
1438
1467
|
let item = localState.state.collection.getItem(key);
|
|
1439
|
-
if (item
|
|
1468
|
+
if ((item === null || item === void 0 ? void 0 : item.type) === 'cell') key = item.parentKey;
|
|
1440
1469
|
// If the focused item is also selected, the default drop target is after the last selected item.
|
|
1441
1470
|
// But if the focused key is the first selected item, then default to before the first selected item.
|
|
1442
1471
|
// This is to make reordering lists slightly easier. If you select top down, we assume you want to
|
|
@@ -1451,8 +1480,9 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1451
1480
|
key: key,
|
|
1452
1481
|
dropPosition: dropPosition
|
|
1453
1482
|
};
|
|
1483
|
+
var ref;
|
|
1454
1484
|
// If the default target is not valid, find the next one that is.
|
|
1455
|
-
if (localState.state.getDropOperation(target, types, drag.allowedDropOperations) === 'cancel') target = nextValidTarget(target, types, drag.allowedDropOperations, getNextTarget1, false)
|
|
1485
|
+
if (localState.state.getDropOperation(target, types, drag.allowedDropOperations) === 'cancel') target = (ref = nextValidTarget(target, types, drag.allowedDropOperations, getNextTarget1, false)) !== null && ref !== void 0 ? ref : nextValidTarget(target, types, drag.allowedDropOperations, getPreviousTarget, false);
|
|
1456
1486
|
}
|
|
1457
1487
|
// If no focused key, then start from the root.
|
|
1458
1488
|
if (!target) target = nextValidTarget(null, types, drag.allowedDropOperations, getNextTarget1);
|
|
@@ -1465,7 +1495,8 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1465
1495
|
localState.state.setTarget(target);
|
|
1466
1496
|
},
|
|
1467
1497
|
onDropActivate (e) {
|
|
1468
|
-
|
|
1498
|
+
var ref, ref3;
|
|
1499
|
+
if (((ref = localState.state.target) === null || ref === void 0 ? void 0 : ref.type) === 'item' && ((ref3 = localState.state.target) === null || ref3 === void 0 ? void 0 : ref3.dropPosition) === 'on' && typeof localState.props.onDropActivate === 'function') localState.props.onDropActivate({
|
|
1469
1500
|
type: 'dropactivate',
|
|
1470
1501
|
x: e.x,
|
|
1471
1502
|
y: e.y,
|
|
@@ -1477,7 +1508,7 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1477
1508
|
},
|
|
1478
1509
|
onKeyDown (e, drag) {
|
|
1479
1510
|
let { keyboardDelegate: keyboardDelegate } = localState.props;
|
|
1480
|
-
let types = $
|
|
1511
|
+
let types = $4620ae0dc40f0031$export$e1d41611756c6326(drag.items);
|
|
1481
1512
|
switch(e.key){
|
|
1482
1513
|
case 'ArrowDown':
|
|
1483
1514
|
if (keyboardDelegate.getKeyBelow) {
|
|
@@ -1524,9 +1555,10 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1524
1555
|
// If the target does not accept the drop, find the next valid target.
|
|
1525
1556
|
// If no next valid target, find the previous valid target.
|
|
1526
1557
|
let operation = localState.state.getDropOperation(target, types, drag.allowedDropOperations);
|
|
1527
|
-
|
|
1558
|
+
var ref;
|
|
1559
|
+
if (operation === 'cancel') target = (ref = nextValidTarget(target, types, drag.allowedDropOperations, getNextTarget1, false)) !== null && ref !== void 0 ? ref : nextValidTarget(target, types, drag.allowedDropOperations, getPreviousTarget, false);
|
|
1528
1560
|
}
|
|
1529
|
-
localState.state.setTarget(target
|
|
1561
|
+
localState.state.setTarget(target !== null && target !== void 0 ? target : localState.state.target);
|
|
1530
1562
|
}
|
|
1531
1563
|
break;
|
|
1532
1564
|
case 'PageUp':
|
|
@@ -1555,9 +1587,10 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1555
1587
|
// If the target does not accept the drop, find the previous valid target.
|
|
1556
1588
|
// If no next valid target, find the next valid target.
|
|
1557
1589
|
let operation = localState.state.getDropOperation(target, types, drag.allowedDropOperations);
|
|
1558
|
-
|
|
1590
|
+
var ref4;
|
|
1591
|
+
if (operation === 'cancel') target = (ref4 = nextValidTarget(target, types, drag.allowedDropOperations, getPreviousTarget, false)) !== null && ref4 !== void 0 ? ref4 : nextValidTarget(target, types, drag.allowedDropOperations, getNextTarget1, false);
|
|
1559
1592
|
}
|
|
1560
|
-
localState.state.setTarget(target
|
|
1593
|
+
localState.state.setTarget(target !== null && target !== void 0 ? target : localState.state.target);
|
|
1561
1594
|
break;
|
|
1562
1595
|
}
|
|
1563
1596
|
}
|
|
@@ -1565,12 +1598,12 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1565
1598
|
});
|
|
1566
1599
|
}, [
|
|
1567
1600
|
localState,
|
|
1568
|
-
|
|
1601
|
+
ref2,
|
|
1569
1602
|
onDrop
|
|
1570
1603
|
]);
|
|
1571
|
-
let id = $
|
|
1604
|
+
let id = $4620ae0dc40f0031$export$b1601eb39394a581(state1);
|
|
1572
1605
|
return {
|
|
1573
|
-
collectionProps: $
|
|
1606
|
+
collectionProps: $4vY0V$reactariautils.mergeProps(dropProps, {
|
|
1574
1607
|
id: id,
|
|
1575
1608
|
// Remove description from collection element. If dropping on the entire collection,
|
|
1576
1609
|
// there should be a drop indicator that has this description, so no need to double announce.
|
|
@@ -1580,17 +1613,17 @@ function $f56fb52b53faaf3d$export$f4e2f423c21f7b04(props, state1, ref) {
|
|
|
1580
1613
|
}
|
|
1581
1614
|
|
|
1582
1615
|
|
|
1583
|
-
var $
|
|
1616
|
+
var $fc1876157e07bcec$exports = {};
|
|
1584
1617
|
|
|
1585
|
-
$parcel$export($
|
|
1618
|
+
$parcel$export($fc1876157e07bcec$exports, "useDroppableItem", () => $fc1876157e07bcec$export$f7b0c5d28b66b6a5);
|
|
1586
1619
|
|
|
1587
1620
|
|
|
1588
1621
|
|
|
1589
1622
|
|
|
1590
|
-
function $
|
|
1591
|
-
let { dropProps: dropProps } = $
|
|
1592
|
-
$
|
|
1593
|
-
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({
|
|
1594
1627
|
element: ref.current,
|
|
1595
1628
|
target: options.target,
|
|
1596
1629
|
getDropOperation (types, allowedOperations) {
|
|
@@ -1602,10 +1635,10 @@ function $bfcc97d22144d9f4$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
|
1602
1635
|
options.target,
|
|
1603
1636
|
state
|
|
1604
1637
|
]);
|
|
1605
|
-
let dragSession = $
|
|
1606
|
-
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';
|
|
1607
1640
|
let isDropTarget = state.isDropTarget(options.target);
|
|
1608
|
-
$
|
|
1641
|
+
$4vY0V$react.useEffect(()=>{
|
|
1609
1642
|
if (dragSession && isDropTarget && ref.current) ref.current.focus();
|
|
1610
1643
|
}, [
|
|
1611
1644
|
isDropTarget,
|
|
@@ -1621,29 +1654,31 @@ function $bfcc97d22144d9f4$export$f7b0c5d28b66b6a5(options, state, ref) {
|
|
|
1621
1654
|
}
|
|
1622
1655
|
|
|
1623
1656
|
|
|
1624
|
-
var $
|
|
1657
|
+
var $c5557edbed563ebf$exports = {};
|
|
1625
1658
|
|
|
1626
|
-
$parcel$export($
|
|
1659
|
+
$parcel$export($c5557edbed563ebf$exports, "useDropIndicator", () => $c5557edbed563ebf$export$8d0e41d2815afac5);
|
|
1627
1660
|
|
|
1628
1661
|
|
|
1629
1662
|
|
|
1630
1663
|
|
|
1631
1664
|
|
|
1632
1665
|
|
|
1633
|
-
function $
|
|
1666
|
+
function $c5557edbed563ebf$export$8d0e41d2815afac5(props, state, ref1) {
|
|
1634
1667
|
let { target: target } = props;
|
|
1635
1668
|
let { collection: collection } = state;
|
|
1636
|
-
let formatMessage = $
|
|
1637
|
-
let dragSession = $
|
|
1638
|
-
let { dropProps: dropProps } = $
|
|
1639
|
-
let id = $
|
|
1640
|
-
let getText = (key)=>
|
|
1641
|
-
|
|
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();
|
|
1673
|
+
let getText = (key)=>{
|
|
1674
|
+
var ref;
|
|
1675
|
+
return (ref = collection.getItem(key)) === null || ref === void 0 ? void 0 : ref.textValue;
|
|
1676
|
+
};
|
|
1642
1677
|
let label = '';
|
|
1643
1678
|
let labelledBy;
|
|
1644
1679
|
if (target.type === 'root') {
|
|
1645
1680
|
label = formatMessage('dropOnRoot');
|
|
1646
|
-
labelledBy = `${id} ${$
|
|
1681
|
+
labelledBy = `${id} ${$4620ae0dc40f0031$export$3093291712f09a77(state)}`;
|
|
1647
1682
|
} else if (target.dropPosition === 'on') label = formatMessage('dropOnItem', {
|
|
1648
1683
|
itemText: getText(target.key)
|
|
1649
1684
|
});
|
|
@@ -1675,15 +1710,15 @@ function $dd3402c2521ab910$export$8d0e41d2815afac5(props, state, ref) {
|
|
|
1675
1710
|
}
|
|
1676
1711
|
|
|
1677
1712
|
|
|
1678
|
-
var $
|
|
1713
|
+
var $0cbbd00cda972c67$exports = {};
|
|
1679
1714
|
|
|
1680
|
-
$parcel$export($
|
|
1715
|
+
$parcel$export($0cbbd00cda972c67$exports, "useDraggableItem", () => $0cbbd00cda972c67$export$b35afafff42da2d9);
|
|
1681
1716
|
|
|
1682
1717
|
|
|
1683
1718
|
|
|
1684
|
-
function $
|
|
1685
|
-
let formatMessage = $
|
|
1686
|
-
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({
|
|
1687
1722
|
getItems () {
|
|
1688
1723
|
return state.getItems(props.key);
|
|
1689
1724
|
},
|
|
@@ -1704,11 +1739,12 @@ function $ef813332c2b7144e$export$b35afafff42da2d9(props, state) {
|
|
|
1704
1739
|
let numSelectedKeys = state.selectionManager.selectedKeys.size;
|
|
1705
1740
|
let isSelected = state.selectionManager.isSelected(props.key);
|
|
1706
1741
|
let message;
|
|
1742
|
+
var ref;
|
|
1707
1743
|
if (isSelected && numSelectedKeys > 1) message = formatMessage('dragSelectedItems', {
|
|
1708
1744
|
count: numSelectedKeys
|
|
1709
1745
|
});
|
|
1710
1746
|
else message = formatMessage('dragItem', {
|
|
1711
|
-
itemText: item
|
|
1747
|
+
itemText: (ref = item === null || item === void 0 ? void 0 : item.textValue) !== null && ref !== void 0 ? ref : ''
|
|
1712
1748
|
});
|
|
1713
1749
|
return {
|
|
1714
1750
|
dragProps: dragProps,
|
|
@@ -1720,16 +1756,16 @@ function $ef813332c2b7144e$export$b35afafff42da2d9(props, state) {
|
|
|
1720
1756
|
}
|
|
1721
1757
|
|
|
1722
1758
|
|
|
1723
|
-
var $
|
|
1759
|
+
var $74f3dedaa4d234b4$exports = {};
|
|
1724
1760
|
|
|
1725
|
-
$parcel$export($
|
|
1761
|
+
$parcel$export($74f3dedaa4d234b4$exports, "useClipboard", () => $74f3dedaa4d234b4$export$2314ca2a3e892862);
|
|
1726
1762
|
|
|
1727
1763
|
|
|
1728
1764
|
|
|
1729
1765
|
|
|
1730
|
-
const $
|
|
1731
|
-
function $
|
|
1732
|
-
let eventData = $
|
|
1766
|
+
const $74f3dedaa4d234b4$var$globalEvents = new Map();
|
|
1767
|
+
function $74f3dedaa4d234b4$var$addGlobalEventListener(event, fn) {
|
|
1768
|
+
let eventData = $74f3dedaa4d234b4$var$globalEvents.get(event);
|
|
1733
1769
|
if (!eventData) {
|
|
1734
1770
|
let handlers = new Set();
|
|
1735
1771
|
let listener = (e)=>{
|
|
@@ -1739,7 +1775,7 @@ function $0e4f47463d859da8$var$addGlobalEventListener(event, fn) {
|
|
|
1739
1775
|
listener: listener,
|
|
1740
1776
|
handlers: handlers
|
|
1741
1777
|
};
|
|
1742
|
-
$
|
|
1778
|
+
$74f3dedaa4d234b4$var$globalEvents.set(event, eventData);
|
|
1743
1779
|
document.addEventListener(event, listener);
|
|
1744
1780
|
}
|
|
1745
1781
|
eventData.handlers.add(fn);
|
|
@@ -1747,31 +1783,32 @@ function $0e4f47463d859da8$var$addGlobalEventListener(event, fn) {
|
|
|
1747
1783
|
eventData.handlers.delete(fn);
|
|
1748
1784
|
if (eventData.handlers.size === 0) {
|
|
1749
1785
|
document.removeEventListener(event, eventData.listener);
|
|
1750
|
-
$
|
|
1786
|
+
$74f3dedaa4d234b4$var$globalEvents.delete(event);
|
|
1751
1787
|
}
|
|
1752
1788
|
};
|
|
1753
1789
|
}
|
|
1754
|
-
function $
|
|
1755
|
-
let ref = $
|
|
1790
|
+
function $74f3dedaa4d234b4$export$2314ca2a3e892862(options1) {
|
|
1791
|
+
let ref = $4vY0V$react.useRef(options1);
|
|
1756
1792
|
ref.current = options1;
|
|
1757
|
-
let isFocusedRef = $
|
|
1758
|
-
let { focusProps: focusProps } = $
|
|
1793
|
+
let isFocusedRef = $4vY0V$react.useRef(false);
|
|
1794
|
+
let { focusProps: focusProps } = $4vY0V$reactariainteractions.useFocus({
|
|
1759
1795
|
onFocusChange: (isFocused)=>{
|
|
1760
1796
|
isFocusedRef.current = isFocused;
|
|
1761
1797
|
}
|
|
1762
1798
|
});
|
|
1763
|
-
$
|
|
1799
|
+
$4vY0V$react.useEffect(()=>{
|
|
1764
1800
|
let onBeforeCopy = (e)=>{
|
|
1765
1801
|
// Enable the "Copy" menu item in Safari if this element is focused and copying is supported.
|
|
1766
1802
|
let options = ref.current;
|
|
1767
1803
|
if (isFocusedRef.current && options.getItems) e.preventDefault();
|
|
1768
1804
|
};
|
|
1769
1805
|
let onCopy = (e)=>{
|
|
1806
|
+
var ref1;
|
|
1770
1807
|
let options = ref.current;
|
|
1771
1808
|
if (!isFocusedRef.current || !options.getItems) return;
|
|
1772
1809
|
e.preventDefault();
|
|
1773
|
-
$
|
|
1774
|
-
options.onCopy
|
|
1810
|
+
$4620ae0dc40f0031$export$f9c1490890ddd063(e.clipboardData, options.getItems());
|
|
1811
|
+
(ref1 = options.onCopy) === null || ref1 === void 0 ? void 0 : ref1.call(options);
|
|
1775
1812
|
};
|
|
1776
1813
|
let onBeforeCut = (e)=>{
|
|
1777
1814
|
let options = ref.current;
|
|
@@ -1781,7 +1818,7 @@ function $0e4f47463d859da8$export$2314ca2a3e892862(options1) {
|
|
|
1781
1818
|
let options = ref.current;
|
|
1782
1819
|
if (!isFocusedRef.current || !options.onCut || !options.getItems) return;
|
|
1783
1820
|
e.preventDefault();
|
|
1784
|
-
$
|
|
1821
|
+
$4620ae0dc40f0031$export$f9c1490890ddd063(e.clipboardData, options.getItems());
|
|
1785
1822
|
options.onCut();
|
|
1786
1823
|
};
|
|
1787
1824
|
let onBeforePaste = (e)=>{
|
|
@@ -1794,10 +1831,10 @@ function $0e4f47463d859da8$export$2314ca2a3e892862(options1) {
|
|
|
1794
1831
|
let options = ref.current;
|
|
1795
1832
|
if (!isFocusedRef.current || !options.onPaste) return;
|
|
1796
1833
|
e.preventDefault();
|
|
1797
|
-
let items = $
|
|
1834
|
+
let items = $4620ae0dc40f0031$export$d9e760437831f8b3(e.clipboardData);
|
|
1798
1835
|
options.onPaste(items);
|
|
1799
1836
|
};
|
|
1800
|
-
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));
|
|
1801
1838
|
}, []);
|
|
1802
1839
|
return {
|
|
1803
1840
|
clipboardProps: focusProps
|
|
@@ -1805,13 +1842,13 @@ function $0e4f47463d859da8$export$2314ca2a3e892862(options1) {
|
|
|
1805
1842
|
}
|
|
1806
1843
|
|
|
1807
1844
|
|
|
1808
|
-
$parcel$exportWildcard(module.exports, $
|
|
1809
|
-
$parcel$exportWildcard(module.exports, $
|
|
1810
|
-
$parcel$exportWildcard(module.exports, $
|
|
1811
|
-
$parcel$exportWildcard(module.exports, $
|
|
1812
|
-
$parcel$exportWildcard(module.exports, $
|
|
1813
|
-
$parcel$exportWildcard(module.exports, $
|
|
1814
|
-
$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);
|
|
1815
1852
|
|
|
1816
1853
|
|
|
1817
1854
|
//# sourceMappingURL=main.js.map
|