easy-file-system 1.3.103 → 1.3.107
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 +122 -127
- package/index.html +1 -0
- package/lib/button/toggle.js +2 -16
- package/lib/div/item/entry/directoryName.js +1 -1
- package/lib/div/item/entry/fileName.js +1 -1
- package/lib/div/item/entry/marker.js +1 -1
- package/lib/example/explorer.js +1 -1
- package/lib/item/entry/drag/directoryName.js +2 -23
- package/lib/item/entry/drag/fileName.js +2 -16
- package/lib/item/entry/marker/directoryName.js +1 -1
- package/lib/item/entry/marker/fileName.js +1 -1
- package/lib/item/entry/marker.js +2 -9
- package/lib/rubbishBin.js +2 -16
- package/package.json +3 -3
- package/src/button/toggle.js +1 -14
- package/src/item/entry/drag/directoryName.js +3 -23
- package/src/item/entry/drag/fileName.js +2 -15
- package/src/item/entry/marker.js +1 -7
- package/src/rubbishBin.js +1 -14
|
@@ -63,24 +63,6 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
63
63
|
return collapsed;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
getNameButton() {
|
|
67
|
-
const { NameButton } = this.constructor;
|
|
68
|
-
|
|
69
|
-
return NameButton;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
getToggleButton() {
|
|
73
|
-
const { ToggleButton } = this.constructor;
|
|
74
|
-
|
|
75
|
-
return ToggleButton;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
getDirectoryNameSVG() {
|
|
79
|
-
const { DirectoryNameSVG } = this.constructor;
|
|
80
|
-
|
|
81
|
-
return DirectoryNameSVG;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
66
|
retrievePathMaps(sourceEntryPath, targetEntryPath, pathMaps) {
|
|
85
67
|
const name = this.getName(),
|
|
86
68
|
pathMap = this.getPathMap(sourceEntryPath, targetEntryPath);
|
|
@@ -200,11 +182,9 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
200
182
|
|
|
201
183
|
childElements() {
|
|
202
184
|
const { name } = this.properties,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
ToggleButton = this.getToggleButton(),
|
|
207
|
-
DirectoryNameSVG = this.getDirectoryNameSVG();
|
|
185
|
+
{ NameButton, ToggleButton, DirectoryNameSVG } = this.constructor,
|
|
186
|
+
explorer = this.getExplorer(),
|
|
187
|
+
EntriesList = explorer.getEntriesList();
|
|
208
188
|
|
|
209
189
|
return ([
|
|
210
190
|
|
|
@@ -39,18 +39,6 @@ export default class FileNameDragEntryItem extends DragEntryItem {
|
|
|
39
39
|
return fileName;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
getNameButton() {
|
|
43
|
-
const { NameButton } = this.constructor;
|
|
44
|
-
|
|
45
|
-
return NameButton;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
getFileNameSVG() {
|
|
49
|
-
const { FileNameSVG } = this.constructor;
|
|
50
|
-
|
|
51
|
-
return FileNameSVG;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
42
|
getPathMap(sourceEntryPath, targetEntryPath) {
|
|
55
43
|
const pathMap = super.getPathMap(sourceEntryPath, targetEntryPath),
|
|
56
44
|
entryDirectory = false;
|
|
@@ -70,9 +58,8 @@ export default class FileNameDragEntryItem extends DragEntryItem {
|
|
|
70
58
|
|
|
71
59
|
childElements() {
|
|
72
60
|
const { name } = this.properties,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
FileNameSVG = this.getFileNameSVG();
|
|
61
|
+
{ NameButton, FileNameSVG } = this.constructor,
|
|
62
|
+
explorer = this.getExplorer();
|
|
76
63
|
|
|
77
64
|
return (
|
|
78
65
|
|
package/src/item/entry/marker.js
CHANGED
|
@@ -5,14 +5,8 @@ import MarkerSVG from "../../svg/marker";
|
|
|
5
5
|
import MarkerEntryItemDiv from "../../div/item/entry/marker";
|
|
6
6
|
|
|
7
7
|
export default class MarkerEntryItem extends EntryItem {
|
|
8
|
-
getMarkerSVG() {
|
|
9
|
-
const { MarkerSVG } = this.constructor;
|
|
10
|
-
|
|
11
|
-
return MarkerSVG;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
8
|
childElements() {
|
|
15
|
-
const MarkerSVG = this.
|
|
9
|
+
const { MarkerSVG } = this.constructor;
|
|
16
10
|
|
|
17
11
|
return (
|
|
18
12
|
|
package/src/rubbishBin.js
CHANGED
|
@@ -34,18 +34,6 @@ class RubbishBin extends Element {
|
|
|
34
34
|
return ignoredReferences;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
getOpenRubbishBinSVG() {
|
|
38
|
-
const { OpenRubbishBinSVG } = this.constructor;
|
|
39
|
-
|
|
40
|
-
return OpenRubbishBinSVG;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
getClosedRubbishBinSVG() {
|
|
44
|
-
const { ClosedRubbishBinSVG } = this.constructor;
|
|
45
|
-
|
|
46
|
-
return ClosedRubbishBinSVG;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
37
|
retrieveMarkerEntryItem() {
|
|
50
38
|
const { markerEntryItem } = globalThis;
|
|
51
39
|
|
|
@@ -306,8 +294,7 @@ class RubbishBin extends Element {
|
|
|
306
294
|
}
|
|
307
295
|
|
|
308
296
|
childElements() {
|
|
309
|
-
const OpenRubbishBinSVG = this.
|
|
310
|
-
ClosedRubbishBinSVG = this.getClosedRubbishBinSVG();
|
|
297
|
+
const { OpenRubbishBinSVG, ClosedRubbishBinSVG } = this.constructor;
|
|
311
298
|
|
|
312
299
|
return ([
|
|
313
300
|
|