easy-file-system 2.1.34 → 2.1.38
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 +9 -11
- package/lib/example/view/explorer/first.js +4 -5
- package/lib/explorer.js +3 -3
- package/lib/item/entry/drag.js +4 -3
- package/lib/list/entries.js +3 -3
- package/package.json +1 -1
- package/src/example/view/explorer/first.js +3 -5
- package/src/explorer.js +2 -2
- package/src/item/entry/drag.js +4 -2
- package/src/list/entries.js +2 -2
|
@@ -6,12 +6,10 @@ export default class FirstExplorer extends Explorer {
|
|
|
6
6
|
initialise() {
|
|
7
7
|
super.initialise();
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
this.addFilePath("directory1/file1.txt");
|
|
10
|
+
this.addFilePath("directory1/file2.txt");
|
|
10
11
|
|
|
11
|
-
this.
|
|
12
|
-
this.addFilePath("directory1/file2.txt", readOnly);
|
|
13
|
-
|
|
14
|
-
this.addDirectoryPath("directory1/directory3", readOnly);
|
|
12
|
+
this.addDirectoryPath("directory1/directory3");
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
static defaultProperties = {
|
package/src/explorer.js
CHANGED
|
@@ -167,7 +167,7 @@ class Explorer extends Element {
|
|
|
167
167
|
return ignoredReferences;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
getFileNameDragEntryItem() {
|
|
170
|
+
getFileNameDragEntryItem(readOnly) {
|
|
171
171
|
const { FileNameDragEntryItem } = this.constructor;
|
|
172
172
|
|
|
173
173
|
return FileNameDragEntryItem;
|
|
@@ -179,7 +179,7 @@ class Explorer extends Element {
|
|
|
179
179
|
return FileNameMarkerEntryItem;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
getDirectoryNameDragEntryItem(topmost) {
|
|
182
|
+
getDirectoryNameDragEntryItem(readOnly, topmost) {
|
|
183
183
|
const { DirectoryNameDragEntryItem } = this.constructor;
|
|
184
184
|
|
|
185
185
|
return DirectoryNameDragEntryItem;
|
package/src/item/entry/drag.js
CHANGED
|
@@ -17,6 +17,8 @@ class DragEntryItem extends EntryItem {
|
|
|
17
17
|
nameSpanName = this.getNameSpanName(),
|
|
18
18
|
nameChanged = (name !== nameSpanName);
|
|
19
19
|
|
|
20
|
+
this.done();
|
|
21
|
+
|
|
20
22
|
if (!nameChanged) {
|
|
21
23
|
return;
|
|
22
24
|
}
|
|
@@ -27,14 +29,14 @@ class DragEntryItem extends EntryItem {
|
|
|
27
29
|
|
|
28
30
|
if (created) {
|
|
29
31
|
explorer.createDragEntryItem(dragEntryItem, () => {
|
|
30
|
-
|
|
32
|
+
///
|
|
31
33
|
});
|
|
32
34
|
|
|
33
35
|
return;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
explorer.editDragEntryItem(dragEntryItem, () => {
|
|
37
|
-
|
|
39
|
+
///
|
|
38
40
|
});
|
|
39
41
|
}
|
|
40
42
|
|
package/src/list/entries.js
CHANGED
|
@@ -369,7 +369,7 @@ class EntriesList extends Element {
|
|
|
369
369
|
createFileNameDragEntryItem(fileName, readOnly) {
|
|
370
370
|
const name = fileName, ///
|
|
371
371
|
explorer = this.getExplorer(),
|
|
372
|
-
FileNameDragEntryItem = explorer.getFileNameDragEntryItem(),
|
|
372
|
+
FileNameDragEntryItem = explorer.getFileNameDragEntryItem(readOnly),
|
|
373
373
|
fileNameDragEntryItem =
|
|
374
374
|
|
|
375
375
|
<FileNameDragEntryItem name={name} readOnly={readOnly} explorer={explorer} />
|
|
@@ -383,7 +383,7 @@ class EntriesList extends Element {
|
|
|
383
383
|
const name = directoryName, ///
|
|
384
384
|
topmost = this.isTopmost(),
|
|
385
385
|
explorer = this.getExplorer(),
|
|
386
|
-
DirectoryNameDragEntryItem = explorer.getDirectoryNameDragEntryItem(topmost),
|
|
386
|
+
DirectoryNameDragEntryItem = explorer.getDirectoryNameDragEntryItem(readOnly, topmost),
|
|
387
387
|
directoryNameDragEntryItem =
|
|
388
388
|
|
|
389
389
|
<DirectoryNameDragEntryItem name={name} explorer={explorer} readOnly={readOnly} collapsed={collapsed} />
|