easy-file-system 2.1.110 → 2.1.114
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 +132 -27
- package/lib/constants.js +5 -1
- package/lib/div/item/entry/drag/directoryName.js +1 -5
- package/lib/div/item/entry/drag/fileName.js +2 -8
- package/lib/div/item/entry/drag.js +5 -7
- package/lib/explorer.js +98 -6
- package/lib/item/entry/drag/directoryName.js +7 -1
- package/lib/item/entry/drag/fileName.js +8 -1
- package/lib/item/entry/drag.js +8 -1
- package/lib/list/entries.js +6 -5
- package/package.json +1 -1
- package/src/constants.js +1 -0
- package/src/div/item/entry/drag/directoryName.js +0 -7
- package/src/div/item/entry/drag/fileName.js +0 -8
- package/src/div/item/entry/drag.js +4 -8
- package/src/explorer.js +107 -7
- package/src/item/entry/drag/directoryName.js +5 -1
- package/src/item/entry/drag/fileName.js +7 -0
- package/src/item/entry/drag.js +7 -0
- package/src/list/entries.js +15 -4
package/src/item/entry/drag.js
CHANGED
|
@@ -77,6 +77,13 @@ class DragEntryItem extends EntryItem {
|
|
|
77
77
|
markerEntryItemExplorer.dropDragEntryItem(dragEntryItem, done);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
delayedClick() {
|
|
81
|
+
const explorer = this.getExplorer(),
|
|
82
|
+
dragEntryItem = this; ///
|
|
83
|
+
|
|
84
|
+
explorer.selectOrDeselectDragEntryItem(dragEntryItem);
|
|
85
|
+
}
|
|
86
|
+
|
|
80
87
|
hasNameChanged() {
|
|
81
88
|
const name = this.getName(),
|
|
82
89
|
nameSpanName = this.getNameSpanName(),
|
package/src/list/entries.js
CHANGED
|
@@ -253,7 +253,9 @@ class EntriesList extends Element {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
addEntryItem(entryItem) {
|
|
256
|
-
const
|
|
256
|
+
const explorer = this.getExplorer(),
|
|
257
|
+
mounted = explorer.isMounted(),
|
|
258
|
+
nextEntryItem = entryItem, ///
|
|
257
259
|
previousEntryItem = this.findEntryItem((entryItem) => {
|
|
258
260
|
const nextEntryBeforeEntryItem = nextEntryItem.isBefore(entryItem);
|
|
259
261
|
|
|
@@ -263,14 +265,23 @@ class EntriesList extends Element {
|
|
|
263
265
|
});
|
|
264
266
|
|
|
265
267
|
if (previousEntryItem === null) {
|
|
266
|
-
|
|
268
|
+
mounted ?
|
|
269
|
+
this.mount(entryItem) :
|
|
270
|
+
this.add(entryItem);
|
|
267
271
|
} else {
|
|
268
|
-
|
|
272
|
+
mounted ?
|
|
273
|
+
entryItem.mountBefore(previousEntryItem) :
|
|
274
|
+
entryItem.insertBefore(previousEntryItem);
|
|
269
275
|
}
|
|
270
276
|
}
|
|
271
277
|
|
|
272
278
|
removeEntryItem(entryItem) {
|
|
273
|
-
this.
|
|
279
|
+
const explorer = this.getExplorer(),
|
|
280
|
+
mounted = explorer.isMounted();
|
|
281
|
+
|
|
282
|
+
mounted ?
|
|
283
|
+
this.unmount(entryItem) :
|
|
284
|
+
this.remove(entryItem);
|
|
274
285
|
}
|
|
275
286
|
|
|
276
287
|
removeEntryItems() {
|