easy-file-system 2.1.223 → 2.1.225
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/example.js +77 -77
- package/lib/div/item/entry/drag/directoryName.js +2 -2
- package/lib/div/item/entry/drag.js +2 -2
- package/lib/example/view.js +14 -14
- package/lib/explorer.js +27 -27
- package/lib/item/entry/drag/directoryName.js +6 -6
- package/lib/item/entry/drag/fileName.js +7 -7
- package/lib/item/entry/drag.js +9 -9
- package/lib/rubbishBin.js +15 -15
- package/lib/span/name.js +3 -3
- package/package.json +1 -1
- package/src/div/item/entry/drag/directoryName.js +1 -1
- package/src/div/item/entry/drag.js +1 -1
- package/src/example/view.js +14 -14
- package/src/explorer.js +26 -26
- package/src/item/entry/drag/directoryName.js +5 -5
- package/src/item/entry/drag/fileName.js +6 -6
- package/src/item/entry/drag.js +8 -8
- package/src/rubbishBin.js +24 -24
- package/src/span/name.js +2 -2
package/src/example/view.js
CHANGED
|
@@ -29,36 +29,36 @@ export default class View extends Element {
|
|
|
29
29
|
firstExplorer.createFilePath();
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
console.log("
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
moveCustomHandler = (pathMaps, explorer, element, done) => {
|
|
37
|
-
console.log("move", JSON.stringify(pathMaps, null, " "))
|
|
32
|
+
renameCustomHandler = (event, element, pathMaps, explorer, done) => {
|
|
33
|
+
console.log("rename", JSON.stringify(pathMaps, null, " "))
|
|
38
34
|
|
|
39
35
|
done();
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
|
|
43
|
-
console.log("
|
|
38
|
+
createCustomHandler = (event, element, pathMaps, explorer, done) => {
|
|
39
|
+
console.log("create", JSON.stringify(pathMaps, null, " "))
|
|
44
40
|
|
|
45
41
|
done();
|
|
46
42
|
}
|
|
47
43
|
|
|
48
|
-
|
|
49
|
-
console.log("
|
|
44
|
+
selectCustomHandler = (event, element, path, selected, readOnly, explorer) => {
|
|
45
|
+
console.log("select", path, selected, readOnly)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
removeCustomHandler = (event, element, pathMaps, explorer, done) => {
|
|
49
|
+
console.log("remove", JSON.stringify(pathMaps, null, " "))
|
|
50
50
|
|
|
51
51
|
done();
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
console.log("
|
|
54
|
+
moveCustomHandler = (event, element, pathMaps, explorer, done) => {
|
|
55
|
+
console.log("move", JSON.stringify(pathMaps, null, " "))
|
|
56
56
|
|
|
57
57
|
done();
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
console.log("
|
|
60
|
+
openCustomHandler = (event, element, filePath, explorer) => {
|
|
61
|
+
console.log("open", filePath)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
getExplorers() {
|
package/src/explorer.js
CHANGED
|
@@ -29,7 +29,7 @@ const { first } = arrayUtilities,
|
|
|
29
29
|
{ concatenatePaths, pathWithoutBottommostNameFromPath } = pathUtilities;
|
|
30
30
|
|
|
31
31
|
class Explorer extends Element {
|
|
32
|
-
dragOverCustomHandler = (
|
|
32
|
+
dragOverCustomHandler = (event, element, dragElement) => {
|
|
33
33
|
const dragEntryItem = dragElement, ///
|
|
34
34
|
markerEntryItem = this.retrieveMarkerEntryItem(),
|
|
35
35
|
dragEntryItemName = dragEntryItem.getName();
|
|
@@ -52,7 +52,7 @@ class Explorer extends Element {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
dropCustomHandler = (dragElement, aborted,
|
|
55
|
+
dropCustomHandler = (event, element, dragElement, aborted, done) => {
|
|
56
56
|
const markerEntryItem = this.retrieveMarkerEntryItem(),
|
|
57
57
|
markerEntryItemExplorer = markerEntryItem.getExplorer();
|
|
58
58
|
|
|
@@ -66,7 +66,7 @@ class Explorer extends Element {
|
|
|
66
66
|
|
|
67
67
|
const dragEntryItem = dragElement; ///
|
|
68
68
|
|
|
69
|
-
markerEntryItemExplorer.dropDragEntryItem(dragEntryItem, done);
|
|
69
|
+
markerEntryItemExplorer.dropDragEntryItem(event, element, dragEntryItem, done);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
getExplorer() {
|
|
@@ -229,14 +229,14 @@ class Explorer extends Element {
|
|
|
229
229
|
return selectedPath;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
clickDragEntryItem(dragEntryItem) {
|
|
232
|
+
clickDragEntryItem(event, element, dragEntryItem) {
|
|
233
233
|
const singleClick = this.isSingleClick();
|
|
234
234
|
|
|
235
235
|
if (singleClick) {
|
|
236
|
-
const selected = dragEntryItem.click();
|
|
236
|
+
const selected = dragEntryItem.click(event, element);
|
|
237
237
|
|
|
238
238
|
if (selected) {
|
|
239
|
-
dragEntryItem.singleClick();
|
|
239
|
+
dragEntryItem.singleClick(event, element);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
return;
|
|
@@ -263,7 +263,7 @@ class Explorer extends Element {
|
|
|
263
263
|
|
|
264
264
|
this.clearClickedDragEntryItem();
|
|
265
265
|
|
|
266
|
-
dragEntryItem.click();
|
|
266
|
+
dragEntryItem.click(event, element);
|
|
267
267
|
}, delay),
|
|
268
268
|
clickedDragEntryItem = dragEntryItem; ///
|
|
269
269
|
|
|
@@ -280,10 +280,10 @@ class Explorer extends Element {
|
|
|
280
280
|
|
|
281
281
|
this.clearClickedDragEntryItem();
|
|
282
282
|
|
|
283
|
-
dragEntryItem.doubleClick();
|
|
283
|
+
dragEntryItem.doubleClick(event, element);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
openFileNameDragEntryItem(fileNameDragEntryItem) {
|
|
286
|
+
openFileNameDragEntryItem(event, element, fileNameDragEntryItem) {
|
|
287
287
|
const disabled = this.isDisabled();
|
|
288
288
|
|
|
289
289
|
if (disabled) {
|
|
@@ -295,10 +295,10 @@ class Explorer extends Element {
|
|
|
295
295
|
explorer = fileNameDragEntryItem.getExplorer(),
|
|
296
296
|
customEventType = OPEN_CUSTOM_EVENT_TYPE;
|
|
297
297
|
|
|
298
|
-
this.callCustomHandlers(customEventType, filePath, explorer);
|
|
298
|
+
this.callCustomHandlers(customEventType, event, element, filePath, explorer);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
selectOrDeselectDragEntryItem(dragEntryItem) {
|
|
301
|
+
selectOrDeselectDragEntryItem(event, element, dragEntryItem) {
|
|
302
302
|
const disabled = this.isDisabled();
|
|
303
303
|
|
|
304
304
|
if (disabled) {
|
|
@@ -323,23 +323,23 @@ class Explorer extends Element {
|
|
|
323
323
|
explorer = dragEntryItem.getExplorer(),
|
|
324
324
|
customEventType = SELECT_CUSTOM_EVENT_TYPE;
|
|
325
325
|
|
|
326
|
-
this.callCustomHandlers(customEventType, path, selected, readOnly, explorer);
|
|
326
|
+
this.callCustomHandlers(customEventType, event, element, path, selected, readOnly, explorer);
|
|
327
327
|
|
|
328
328
|
return selected;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
createDragEntryItem(dragEntryItem, done) {
|
|
331
|
+
createDragEntryItem(event, element, dragEntryItem, done) {
|
|
332
332
|
const sourceEntryPath = sourceEntryPathFromEntryItem(dragEntryItem),
|
|
333
333
|
targetEntryPath = targetEntryPathFromEntryItem(dragEntryItem),
|
|
334
334
|
pathMaps = dragEntryItem.getPathMaps(sourceEntryPath, targetEntryPath),
|
|
335
335
|
explorer = this; ///
|
|
336
336
|
|
|
337
|
-
this.createDragEntryItems(pathMaps, explorer, () => {
|
|
337
|
+
this.createDragEntryItems(event, element, pathMaps, explorer, () => {
|
|
338
338
|
done();
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
renameDragEntryItem(dragEntryItem, done) {
|
|
342
|
+
renameDragEntryItem(event, element, dragEntryItem, done) {
|
|
343
343
|
let sourceEntryPath,
|
|
344
344
|
targetEntryPath;
|
|
345
345
|
|
|
@@ -360,12 +360,12 @@ class Explorer extends Element {
|
|
|
360
360
|
|
|
361
361
|
const explorer = this; ///
|
|
362
362
|
|
|
363
|
-
this.renameDragEntryItems(pathMaps, explorer, () => {
|
|
363
|
+
this.renameDragEntryItems(event, element, pathMaps, explorer, () => {
|
|
364
364
|
done();
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
dropDragEntryItem(dragEntryItem, done) {
|
|
368
|
+
dropDragEntryItem(event, element, dragEntryItem, done) {
|
|
369
369
|
const dragEntryItemExplorer = dragEntryItem.getExplorer(),
|
|
370
370
|
markerEntryItem = this.retrieveMarkerEntryItem(),
|
|
371
371
|
sourceEntryPath = sourceEntryPathFromEntryItem(dragEntryItem),
|
|
@@ -382,17 +382,17 @@ class Explorer extends Element {
|
|
|
382
382
|
const pathMaps = dragEntryItem.getPathMaps(sourceEntryPath, targetEntryPath),
|
|
383
383
|
explorer = dragEntryItemExplorer; ///
|
|
384
384
|
|
|
385
|
-
this.moveDragEntryItems(pathMaps, explorer, () => {
|
|
385
|
+
this.moveDragEntryItems(event, element, pathMaps, explorer, () => {
|
|
386
386
|
this.removeMarker();
|
|
387
387
|
|
|
388
388
|
done();
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
renameDragEntryItems(pathMaps, explorer, done) {
|
|
392
|
+
renameDragEntryItems(event, element, pathMaps, explorer, done) {
|
|
393
393
|
const customEventType = RENAME_CUSTOM_EVENT_TYPE;
|
|
394
394
|
|
|
395
|
-
this.callCustomHandlersAsync(customEventType, pathMaps, explorer, () => {
|
|
395
|
+
this.callCustomHandlersAsync(customEventType, event, element, pathMaps, explorer, () => {
|
|
396
396
|
pathMaps.forEach((pathMap) => {
|
|
397
397
|
this.removeDragEntryItem(pathMap, explorer);
|
|
398
398
|
});
|
|
@@ -405,10 +405,10 @@ class Explorer extends Element {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
moveDragEntryItems(pathMaps, explorer, done) {
|
|
408
|
+
moveDragEntryItems(event, element, pathMaps, explorer, done) {
|
|
409
409
|
const customEventType = MOVE_CUSTOM_EVENT_TYPE;
|
|
410
410
|
|
|
411
|
-
this.callCustomHandlersAsync(customEventType, pathMaps, explorer, () => {
|
|
411
|
+
this.callCustomHandlersAsync(customEventType, event, element, pathMaps, explorer, () => {
|
|
412
412
|
pathMaps.forEach((pathMap) => {
|
|
413
413
|
this.removeDragEntryItem(pathMap, explorer);
|
|
414
414
|
});
|
|
@@ -421,10 +421,10 @@ class Explorer extends Element {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
removeDragEntryItems(pathMaps, explorer, done) {
|
|
424
|
+
removeDragEntryItems(event, element, pathMaps, explorer, done) {
|
|
425
425
|
const customEventType = REMOVE_CUSTOM_EVENT_TYPE;
|
|
426
426
|
|
|
427
|
-
this.callCustomHandlersAsync(customEventType, pathMaps, explorer, () => {
|
|
427
|
+
this.callCustomHandlersAsync(customEventType, event, element, pathMaps, explorer, () => {
|
|
428
428
|
pathMaps.forEach((pathMap) => {
|
|
429
429
|
this.removeDragEntryItem(pathMap, explorer);
|
|
430
430
|
});
|
|
@@ -437,10 +437,10 @@ class Explorer extends Element {
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
createDragEntryItems(pathMaps, explorer, done) {
|
|
440
|
+
createDragEntryItems(event, element, pathMaps, explorer, done) {
|
|
441
441
|
const customEventType = CREATE_CUSTOM_EVENT_TYPE;
|
|
442
442
|
|
|
443
|
-
this.callCustomHandlersAsync(customEventType, pathMaps, explorer, () => {
|
|
443
|
+
this.callCustomHandlersAsync(customEventType, event, element, pathMaps, explorer, () => {
|
|
444
444
|
pathMaps.forEach((pathMap) => {
|
|
445
445
|
this.removeDragEntryItem(pathMap, explorer);
|
|
446
446
|
});
|
|
@@ -14,7 +14,7 @@ import { FILE_NAME_DRAG_ENTRY_TYPE, FILE_NAME_MARKER_ENTRY_TYPE, DIRECTORY_NAME_
|
|
|
14
14
|
const { concatenatePaths } = pathUtilities;
|
|
15
15
|
|
|
16
16
|
export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
17
|
-
dragOverCustomHandler = (
|
|
17
|
+
dragOverCustomHandler = (event, element, dragElement) => {
|
|
18
18
|
const collapsed = this.isCollapsed();
|
|
19
19
|
|
|
20
20
|
if (collapsed) {
|
|
@@ -45,7 +45,7 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
dropCustomHandler = (dragElement, aborted,
|
|
48
|
+
dropCustomHandler = (event, element, dragElement, aborted, done) => {
|
|
49
49
|
const dragEntryItem = dragElement, ///
|
|
50
50
|
markerEntryItem = this.retrieveMarkerEntryItem(),
|
|
51
51
|
markerEntryItemExplorer = markerEntryItem.getExplorer();
|
|
@@ -58,10 +58,10 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
markerEntryItemExplorer.dropDragEntryItem(dragEntryItem, done);
|
|
61
|
+
markerEntryItemExplorer.dropDragEntryItem(event, element, dragEntryItem, done);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
doubleClick() {
|
|
64
|
+
doubleClick(event, element) {
|
|
65
65
|
let collapsed = this.isCollapsed();
|
|
66
66
|
|
|
67
67
|
collapsed = !collapsed;
|
|
@@ -71,7 +71,7 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
71
71
|
this.expand();
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
singleClick() {
|
|
74
|
+
singleClick(event, element) {
|
|
75
75
|
this.expand();
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -8,19 +8,19 @@ import { nameIsBeforeEntryItemName } from "../../../utilities/name";
|
|
|
8
8
|
import { FILE_NAME_DRAG_ENTRY_TYPE, DIRECTORY_NAME_DRAG_ENTRY_TYPE, FILE_NAME_MARKER_ENTRY_TYPE, DIRECTORY_NAME_MARKER_ENTRY_TYPE } from "../../../entryTypes";
|
|
9
9
|
|
|
10
10
|
export default class FileNameDragEntryItem extends DragEntryItem {
|
|
11
|
-
openFileNameDragEntryItem() {
|
|
11
|
+
openFileNameDragEntryItem(event, element) {
|
|
12
12
|
const explorer = this.getExplorer(),
|
|
13
13
|
fileNameDragEntryItem = this; ///
|
|
14
14
|
|
|
15
|
-
explorer.openFileNameDragEntryItem(fileNameDragEntryItem);
|
|
15
|
+
explorer.openFileNameDragEntryItem(event, element, fileNameDragEntryItem);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
doubleClick() {
|
|
19
|
-
this.openFileNameDragEntryItem();
|
|
18
|
+
doubleClick(event, element) {
|
|
19
|
+
this.openFileNameDragEntryItem(event, element);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
singleClick() {
|
|
23
|
-
this.openFileNameDragEntryItem();
|
|
22
|
+
singleClick(event, element) {
|
|
23
|
+
this.openFileNameDragEntryItem(event, element);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
isBefore(entryItem) {
|
package/src/item/entry/drag.js
CHANGED
|
@@ -28,14 +28,14 @@ class DragEntryItem extends EntryItem {
|
|
|
28
28
|
const dragEntryItem = this; ///
|
|
29
29
|
|
|
30
30
|
if (created) {
|
|
31
|
-
explorer.createDragEntryItem(dragEntryItem, () => {
|
|
31
|
+
explorer.createDragEntryItem(event, element, dragEntryItem, () => {
|
|
32
32
|
this.reset();
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
explorer.renameDragEntryItem(dragEntryItem, () => {
|
|
38
|
+
explorer.renameDragEntryItem(event, element, dragEntryItem, () => {
|
|
39
39
|
this.reset();
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -49,7 +49,7 @@ class DragEntryItem extends EntryItem {
|
|
|
49
49
|
this.cancel(created);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
startDragCustomHandler = (element) => {
|
|
52
|
+
startDragCustomHandler = (event, element) => {
|
|
53
53
|
const path = this.getPath(),
|
|
54
54
|
type = this.getType(),
|
|
55
55
|
explorer = this.getExplorer(),
|
|
@@ -59,7 +59,7 @@ class DragEntryItem extends EntryItem {
|
|
|
59
59
|
explorer.addMarker(markerEntryItemPath, dragEntryItemType);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
stopDragCustomHandler = (dropElement, aborted,
|
|
62
|
+
stopDragCustomHandler = (event, element, dropElement, aborted, done) => {
|
|
63
63
|
if (dropElement !== null) {
|
|
64
64
|
done();
|
|
65
65
|
|
|
@@ -77,15 +77,15 @@ class DragEntryItem extends EntryItem {
|
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
const dragEntryItem =
|
|
80
|
+
const dragEntryItem = this; ///
|
|
81
81
|
|
|
82
|
-
markerEntryItemExplorer.dropDragEntryItem(dragEntryItem, done);
|
|
82
|
+
markerEntryItemExplorer.dropDragEntryItem(event, element, dragEntryItem, done);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
click() {
|
|
85
|
+
click(event, element) {
|
|
86
86
|
const explorer = this.getExplorer(),
|
|
87
87
|
dragEntryItem = this, ///
|
|
88
|
-
selected = explorer.selectOrDeselectDragEntryItem(dragEntryItem);
|
|
88
|
+
selected = explorer.selectOrDeselectDragEntryItem(event, element, dragEntryItem);
|
|
89
89
|
|
|
90
90
|
return selected;
|
|
91
91
|
}
|
package/src/rubbishBin.js
CHANGED
|
@@ -17,30 +17,14 @@ import { sourceEntryPathFromEntryItem } from "./utilities/pathMap";
|
|
|
17
17
|
import { DIRECTORY_NAME_DRAG_ENTRY_TYPE, FILE_NAME_DRAG_ENTRY_TYPE } from "./entryTypes";
|
|
18
18
|
|
|
19
19
|
class RubbishBin extends Element {
|
|
20
|
-
|
|
21
|
-
const dragEntryItem = dragElement, ///
|
|
22
|
-
markerEntryItem = this.retrieveMarkerEntryItem(),
|
|
23
|
-
markerEntryItemExplorer = markerEntryItem.getExplorer();
|
|
24
|
-
|
|
25
|
-
if (aborted) {
|
|
26
|
-
markerEntryItemExplorer.removeMarker();
|
|
27
|
-
|
|
28
|
-
done();
|
|
29
|
-
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
markerEntryItemExplorer.dropDragEntryItem(dragEntryItem, done);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
dragOverCustomHandler = (dragElement, element) => {
|
|
20
|
+
dragOverCustomHandler = (event, element, dragElement) => {
|
|
37
21
|
const dragEntryItem = dragElement, ///
|
|
38
22
|
markerEntryItem = this.retrieveMarkerEntryItem();
|
|
39
23
|
|
|
40
24
|
let markerEntryItemPath = markerEntryItem.getPath(),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
markerEntryItemExplorer = markerEntryItem.getExplorer(),
|
|
26
|
+
previousMarkerEntryItemPath = markerEntryItemPath, ///
|
|
27
|
+
previousMarkerEntryItemExplorer = markerEntryItemExplorer; ///
|
|
44
28
|
|
|
45
29
|
markerEntryItemPath = null; ///
|
|
46
30
|
|
|
@@ -55,6 +39,22 @@ class RubbishBin extends Element {
|
|
|
55
39
|
}
|
|
56
40
|
}
|
|
57
41
|
|
|
42
|
+
dropCustomHandler = (event, element, dragElement, aborted, done) => {
|
|
43
|
+
const dragEntryItem = dragElement, ///
|
|
44
|
+
markerEntryItem = this.retrieveMarkerEntryItem(),
|
|
45
|
+
markerEntryItemExplorer = markerEntryItem.getExplorer();
|
|
46
|
+
|
|
47
|
+
if (aborted) {
|
|
48
|
+
markerEntryItemExplorer.removeMarker();
|
|
49
|
+
|
|
50
|
+
done();
|
|
51
|
+
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
markerEntryItemExplorer.dropDragEntryItem(event, element, dragEntryItem, done);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
58
|
getReference() {
|
|
59
59
|
const { reference = null } = this.properties;
|
|
60
60
|
|
|
@@ -134,24 +134,24 @@ class RubbishBin extends Element {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
dropDragEntryItem(dragEntryItem, done) {
|
|
137
|
+
dropDragEntryItem(event, element, dragEntryItem, done) {
|
|
138
138
|
const dragEntryItemExplorer = dragEntryItem.getExplorer(),
|
|
139
139
|
sourceEntryPath = sourceEntryPathFromEntryItem(dragEntryItem),
|
|
140
140
|
targetEntryPath = null,
|
|
141
141
|
pathMaps = dragEntryItem.getPathMaps(sourceEntryPath, targetEntryPath),
|
|
142
142
|
explorer = dragEntryItemExplorer; ///
|
|
143
143
|
|
|
144
|
-
this.removeDragEntryItems(pathMaps, explorer, () => {
|
|
144
|
+
this.removeDragEntryItems(event, element, pathMaps, explorer, () => {
|
|
145
145
|
this.removeMarker();
|
|
146
146
|
|
|
147
147
|
done();
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
removeDragEntryItems(pathMaps, explorer, done) {
|
|
151
|
+
removeDragEntryItems(event, element, pathMaps, explorer, done) {
|
|
152
152
|
const customEventType = REMOVE_CUSTOM_EVENT_TYPE;
|
|
153
153
|
|
|
154
|
-
this.callCustomHandlersAsync(customEventType, pathMaps, explorer, () => {
|
|
154
|
+
this.callCustomHandlersAsync(customEventType, event, element, pathMaps, explorer, () => {
|
|
155
155
|
pathMaps.forEach((pathMap) => {
|
|
156
156
|
this.removeDragEntryItem(pathMap, explorer)
|
|
157
157
|
});
|
package/src/span/name.js
CHANGED
|
@@ -20,7 +20,7 @@ class NameSpan extends Element {
|
|
|
20
20
|
if (keyCode === ENTER_KEY_CODE) {
|
|
21
21
|
const customEventType = CHANGE_CUSTOM_EVENT_TYPE;
|
|
22
22
|
|
|
23
|
-
this.callCustomHandlers(customEventType);
|
|
23
|
+
this.callCustomHandlers(customEventType, event, element);
|
|
24
24
|
|
|
25
25
|
event.preventDefault();
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ class NameSpan extends Element {
|
|
|
28
28
|
if (keyCode === ESCAPE_KEY_CODE) {
|
|
29
29
|
const customEventType = CANCEL_CUSTOM_EVENT_TYPE;
|
|
30
30
|
|
|
31
|
-
this.callCustomHandlers(customEventType);
|
|
31
|
+
this.callCustomHandlers(customEventType, event, element);
|
|
32
32
|
|
|
33
33
|
event.preventDefault();
|
|
34
34
|
}
|