easy-file-system 2.1.33 → 2.1.34
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 +7 -6
- package/lib/explorer.js +2 -2
- package/lib/item/entry/drag.js +3 -2
- package/lib/list/entries.js +2 -2
- package/lib/mixins/dragEntryItem.js +3 -3
- package/package.json +1 -1
- package/src/explorer.js +2 -1
- package/src/item/entry/drag.js +2 -0
- package/src/list/entries.js +1 -1
- package/src/mixins/dragEntryItem.js +2 -2
package/src/explorer.js
CHANGED
|
@@ -284,10 +284,11 @@ class Explorer extends Element {
|
|
|
284
284
|
|
|
285
285
|
createDirectoryPath() {
|
|
286
286
|
const path = this.createPath(),
|
|
287
|
+
readOnly = false,
|
|
287
288
|
collapsed = false,
|
|
288
289
|
callHandlers = false,
|
|
289
290
|
directoryPath = path, ///
|
|
290
|
-
directoryNameDragEntryItem = this.addDirectoryPath(directoryPath, collapsed);
|
|
291
|
+
directoryNameDragEntryItem = this.addDirectoryPath(directoryPath, readOnly, collapsed);
|
|
291
292
|
|
|
292
293
|
this.deselectDragEntryItem(directoryNameDragEntryItem);
|
|
293
294
|
|
package/src/item/entry/drag.js
CHANGED
|
@@ -89,6 +89,7 @@ class DragEntryItem extends EntryItem {
|
|
|
89
89
|
|
|
90
90
|
getPathMap(sourceEntryPath, targetEntryPath) {
|
|
91
91
|
const name = this.getName(),
|
|
92
|
+
readOnly = this.isReadOnly(),
|
|
92
93
|
collapsed = this.isCollapsed(),
|
|
93
94
|
nameSpanName = this.getNameSpanName(),
|
|
94
95
|
entryDirectory = this.getEntryDirectory();
|
|
@@ -98,6 +99,7 @@ class DragEntryItem extends EntryItem {
|
|
|
98
99
|
targetEntryPath = adjustTargetEntryPath(targetEntryPath, nameSpanName); ///
|
|
99
100
|
|
|
100
101
|
const pathMap = {
|
|
102
|
+
readOnly,
|
|
101
103
|
collapsed,
|
|
102
104
|
entryDirectory,
|
|
103
105
|
sourceEntryPath,
|
package/src/list/entries.js
CHANGED
|
@@ -125,7 +125,7 @@ class EntriesList extends Element {
|
|
|
125
125
|
if (topmostDirectoryNameDragEntryItem === null) {
|
|
126
126
|
const collapsed = true;
|
|
127
127
|
|
|
128
|
-
topmostDirectoryNameDragEntryItem = this.createDirectoryNameDragEntryItem(topmostDirectoryName, collapsed);
|
|
128
|
+
topmostDirectoryNameDragEntryItem = this.createDirectoryNameDragEntryItem(topmostDirectoryName, readOnly, collapsed);
|
|
129
129
|
|
|
130
130
|
this.addEntryItem(topmostDirectoryNameDragEntryItem);
|
|
131
131
|
}
|
|
@@ -51,10 +51,10 @@ function addDirectoryNameDragEntryItem(pathMap, explorer) {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
const { collapsed } = pathMap,
|
|
54
|
+
const { readOnly, collapsed } = pathMap,
|
|
55
55
|
directoryPath = targetEntryPath; ///
|
|
56
56
|
|
|
57
|
-
explorer.addDirectoryPath(directoryPath, collapsed);
|
|
57
|
+
explorer.addDirectoryPath(directoryPath, readOnly, collapsed);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function removeDirectoryNameDragEntryItem(pathMap, explorer) {
|