easy-file-system 2.1.74 → 2.1.77
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 +97 -93
- package/lib/constants.js +8 -8
- package/lib/entryTypes.js +7 -7
- package/lib/eventTypes.js +12 -12
- package/lib/example/preamble.js +2 -2
- package/lib/explorer.js +13 -9
- package/lib/index.js +31 -31
- package/lib/styles.js +24 -24
- package/lib/utilities/pathMap.js +7 -7
- package/package.json +4 -4
- package/src/example/preamble.js +2 -2
- package/src/explorer.js +15 -11
package/src/explorer.js
CHANGED
|
@@ -103,6 +103,15 @@ class Explorer extends Element {
|
|
|
103
103
|
return EntriesList;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
isExplorerIgnored(explorer) {
|
|
107
|
+
const reference = explorer.getReference(),
|
|
108
|
+
ignoredReferences = this.getIgnoredReferences(),
|
|
109
|
+
ignoredReferencesIncludesReference = ignoredReferences.includes(reference),
|
|
110
|
+
explorerIgnored = ignoredReferencesIncludesReference; ///
|
|
111
|
+
|
|
112
|
+
return explorerIgnored;
|
|
113
|
+
}
|
|
114
|
+
|
|
106
115
|
isDirectoryEmpty(directoryPath) {
|
|
107
116
|
const directoryNameDragEntryItem = this.retrieveDirectoryNameDragEntryItem(directoryPath),
|
|
108
117
|
directoryNameDragEntryItemEmpty = directoryNameDragEntryItem.isEmpty(),
|
|
@@ -111,13 +120,12 @@ class Explorer extends Element {
|
|
|
111
120
|
return directoryEmpty;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
explorerIgnored = ignoredReferencesIncludesReference; ///
|
|
123
|
+
isDirectoryReadOnly(directoryPath) {
|
|
124
|
+
const directoryNameDragEntryItem = this.retrieveDirectoryNameDragEntryItem(directoryPath),
|
|
125
|
+
directoryNameDragEntryItemReadOnly = directoryNameDragEntryItem.isReadOnly(),
|
|
126
|
+
directoryReadOnly = directoryNameDragEntryItemReadOnly; ///
|
|
119
127
|
|
|
120
|
-
return
|
|
128
|
+
return directoryReadOnly;
|
|
121
129
|
}
|
|
122
130
|
|
|
123
131
|
getIgnoredReferences() {
|
|
@@ -276,11 +284,7 @@ class Explorer extends Element {
|
|
|
276
284
|
const selectedDragEntryItem = this.retrieveSelectedDragEntryItem();
|
|
277
285
|
|
|
278
286
|
if (selectedDragEntryItem !== null) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
if (!selectedDragEntryItemReadOnly) {
|
|
282
|
-
selectedDragEntryItem.edit();
|
|
283
|
-
}
|
|
287
|
+
selectedDragEntryItem.edit();
|
|
284
288
|
}
|
|
285
289
|
}
|
|
286
290
|
|