easy-file-system 2.1.11 → 2.1.13
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/README.md +2 -2
- package/example.js +246 -473
- package/lib/constants.js +15 -7
- package/lib/div/item/entry/drag/directoryName.js +3 -4
- package/lib/div/item/entry/drag/fileName.js +3 -4
- package/lib/div/item/entry/drag.js +3 -3
- package/lib/div/item/entry.js +2 -2
- package/lib/explorer.js +3 -3
- package/lib/index.js +3 -7
- package/lib/item/entry/drag/directoryName.js +5 -6
- package/lib/item/entry/drag/fileName.js +3 -4
- package/lib/item/entry/drag.js +23 -38
- package/lib/mixins/nameSpan.js +52 -0
- package/lib/span/name.js +291 -0
- package/lib/utilities/pathMap.js +4 -4
- package/package.json +1 -1
- package/src/constants.js +4 -2
- package/src/div/item/entry/drag/directoryName.js +3 -6
- package/src/div/item/entry/drag/fileName.js +3 -6
- package/src/div/item/entry/drag.js +3 -2
- package/src/div/item/entry.js +0 -1
- package/src/explorer.js +2 -2
- package/src/index.js +1 -2
- package/src/item/entry/drag/directoryName.js +4 -5
- package/src/item/entry/drag/fileName.js +4 -4
- package/src/item/entry/drag.js +31 -49
- package/src/mixins/{nameInput.js → nameSpan.js} +2 -2
- package/src/{input → span}/name.js +52 -43
- package/src/utilities/pathMap.js +3 -3
- package/lib/button/name.js +0 -199
- package/lib/input/name.js +0 -294
- package/lib/mixins/nameInput.js +0 -52
- package/src/button/name.js +0 -72
|
@@ -20,18 +20,15 @@ export default class DirectoryNameDragEntryItemDiv extends DragEntryItemDiv {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
childElements() {
|
|
23
|
-
const { name,
|
|
23
|
+
const { name, NameSpan, ToggleButton, DirectoryNameSVG } = this.properties;
|
|
24
24
|
|
|
25
25
|
return ([
|
|
26
26
|
|
|
27
27
|
<ToggleButton onMouseDown={this.toggleButtonMouseDownHandler} />,
|
|
28
28
|
<DirectoryNameSVG/>,
|
|
29
|
-
<
|
|
29
|
+
<NameSpan>
|
|
30
30
|
{name}
|
|
31
|
-
</
|
|
32
|
-
<NameInput>
|
|
33
|
-
{name}
|
|
34
|
-
</NameInput>
|
|
31
|
+
</NameSpan>
|
|
35
32
|
|
|
36
33
|
]);
|
|
37
34
|
}
|
|
@@ -12,17 +12,14 @@ export default class FileNameDragEntryItemDiv extends DragEntryItemDiv {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
childElements() {
|
|
15
|
-
const { name,
|
|
15
|
+
const { name, NameSpan, FileNameSVG } = this.properties;
|
|
16
16
|
|
|
17
17
|
return ([
|
|
18
18
|
|
|
19
19
|
<FileNameSVG/>,
|
|
20
|
-
<
|
|
20
|
+
<NameSpan>
|
|
21
21
|
{name}
|
|
22
|
-
</
|
|
23
|
-
<NameInput>
|
|
24
|
-
{name}
|
|
25
|
-
</NameInput>
|
|
22
|
+
</NameSpan>
|
|
26
23
|
|
|
27
24
|
]);
|
|
28
25
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import EntryItemDiv from "../../../div/item/entry";
|
|
4
4
|
|
|
5
|
+
import { EMPTY_STRING } from "../../../constants";
|
|
6
|
+
|
|
5
7
|
export default class DragEntryItemDiv extends EntryItemDiv {
|
|
6
8
|
mouseDownHandler = (event, element) => {
|
|
7
9
|
const explorer = this.getExplorer(),
|
|
@@ -24,8 +26,7 @@ export default class DragEntryItemDiv extends EntryItemDiv {
|
|
|
24
26
|
|
|
25
27
|
static ignoredProperties = [
|
|
26
28
|
"name",
|
|
27
|
-
"
|
|
28
|
-
"NameButton"
|
|
29
|
+
"NameSpan"
|
|
29
30
|
];
|
|
30
31
|
|
|
31
32
|
static defaultProperties = {
|
package/src/div/item/entry.js
CHANGED
package/src/explorer.js
CHANGED
|
@@ -105,9 +105,9 @@ class Explorer extends Element {
|
|
|
105
105
|
|
|
106
106
|
if (selectedDragEntryItem !== null) {
|
|
107
107
|
const dragEntryItem = selectedDragEntryItem, ///
|
|
108
|
-
|
|
108
|
+
dragEntryItemEditable = dragEntryItem.isEditable();
|
|
109
109
|
|
|
110
|
-
if (
|
|
110
|
+
if (dragEntryItemEditable) {
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
|
package/src/index.js
CHANGED
|
@@ -5,8 +5,7 @@ export { default as RubbishBin } from "./rubbishBin";
|
|
|
5
5
|
|
|
6
6
|
export { default as eventTypes } from "./eventTypes";
|
|
7
7
|
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as NameButton } from "./button/name";
|
|
8
|
+
export { default as NameSpan } from "./span/name";
|
|
10
9
|
export { default as EntriesList } from "./list/entries";
|
|
11
10
|
export { default as ToggleButton } from "./button/toggle";
|
|
12
11
|
|
|
@@ -117,13 +117,13 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
117
117
|
retrievePathMaps(sourceEntryPath, targetEntryPath, pathMaps) {
|
|
118
118
|
const name = this.getName(),
|
|
119
119
|
pathMap = this.getPathMap(sourceEntryPath, targetEntryPath),
|
|
120
|
-
|
|
120
|
+
nameSpanName = this.getNameSpanName();
|
|
121
121
|
|
|
122
122
|
pathMaps.push(pathMap);
|
|
123
123
|
|
|
124
124
|
sourceEntryPath = adjustSourceEntryPath(sourceEntryPath, name);
|
|
125
125
|
|
|
126
|
-
targetEntryPath = adjustTargetEntryPath(targetEntryPath,
|
|
126
|
+
targetEntryPath = adjustTargetEntryPath(targetEntryPath, nameSpanName);
|
|
127
127
|
|
|
128
128
|
this.forEachDragEntryItem((dragEntryItem) => {
|
|
129
129
|
dragEntryItem.retrievePathMaps(sourceEntryPath, targetEntryPath, pathMaps);
|
|
@@ -180,7 +180,7 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
180
180
|
|
|
181
181
|
childElements() {
|
|
182
182
|
const { name } = this.properties,
|
|
183
|
-
{
|
|
183
|
+
{ NameSpan, ToggleButton, DirectoryNameSVG } = this.constructor,
|
|
184
184
|
explorer = this.getExplorer(),
|
|
185
185
|
EntriesList = explorer.getEntriesList();
|
|
186
186
|
|
|
@@ -188,8 +188,7 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
188
188
|
|
|
189
189
|
<DirectoryNameDragEntryItemDiv name={name}
|
|
190
190
|
explorer={explorer}
|
|
191
|
-
|
|
192
|
-
NameButton={NameButton}
|
|
191
|
+
NameSpan={NameSpan}
|
|
193
192
|
ToggleButton={ToggleButton}
|
|
194
193
|
DirectoryNameSVG={DirectoryNameSVG}
|
|
195
194
|
/>,
|
|
@@ -54,17 +54,17 @@ export default class FileNameDragEntryItem extends DragEntryItem {
|
|
|
54
54
|
|
|
55
55
|
childElements() {
|
|
56
56
|
const { name } = this.properties,
|
|
57
|
-
{
|
|
57
|
+
{ NameSpan, FileNameSVG } = this.constructor,
|
|
58
58
|
explorer = this.getExplorer();
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
61
|
|
|
62
62
|
<FileNameDragEntryItemDiv name={name}
|
|
63
63
|
explorer={explorer}
|
|
64
|
-
|
|
65
|
-
NameButton={NameButton}
|
|
64
|
+
NameSpan={NameSpan}
|
|
66
65
|
FileNameSVG={FileNameSVG}
|
|
67
|
-
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
|
package/src/item/entry/drag.js
CHANGED
|
@@ -4,25 +4,27 @@ import withStyle from "easy-with-style"; ///
|
|
|
4
4
|
|
|
5
5
|
import { dragMixins } from "easy-drag-and-drop";
|
|
6
6
|
|
|
7
|
+
import NameSpan from "../../span/name";
|
|
7
8
|
import EntryItem from "../../item/entry";
|
|
8
|
-
import NameInput from "../../input/name";
|
|
9
|
-
import NameButton from "../../button/name";
|
|
10
9
|
|
|
11
10
|
import { EMPTY_STRING } from "../../constants";
|
|
12
11
|
import { DIRECTORY_NAME_DRAG_ENTRY_TYPE } from "../../entryTypes";
|
|
13
12
|
import { adjustSourceEntryPath, adjustTargetEntryPath } from "../../utilities/pathMap";
|
|
14
13
|
|
|
15
14
|
class DragEntryItem extends EntryItem {
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
nameChanged =
|
|
20
|
-
dragEntryItem = this; ///
|
|
15
|
+
nameSpanChangeHandler = (event, element) => {
|
|
16
|
+
const name = this.getName(),
|
|
17
|
+
nameSpanName = this.getNameSpanName(),
|
|
18
|
+
nameChanged = (name !== nameSpanName);
|
|
21
19
|
|
|
22
20
|
if (!nameChanged) {
|
|
23
21
|
return;
|
|
24
22
|
}
|
|
25
23
|
|
|
24
|
+
const created = this.isCreated(),
|
|
25
|
+
explorer = this.getExplorer(),
|
|
26
|
+
dragEntryItem = this; ///
|
|
27
|
+
|
|
26
28
|
if (created) {
|
|
27
29
|
explorer.createDragEntryItem(dragEntryItem, () => {
|
|
28
30
|
this.cancel();
|
|
@@ -36,7 +38,7 @@ class DragEntryItem extends EntryItem {
|
|
|
36
38
|
});
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
nameSpanCancelHandler = (event, element) => {
|
|
40
42
|
const created = this.isCreated();
|
|
41
43
|
|
|
42
44
|
created ?
|
|
@@ -88,12 +90,12 @@ class DragEntryItem extends EntryItem {
|
|
|
88
90
|
getPathMap(sourceEntryPath, targetEntryPath) {
|
|
89
91
|
const name = this.getName(),
|
|
90
92
|
collapsed = this.isCollapsed(),
|
|
91
|
-
|
|
93
|
+
nameSpanName = this.getNameSpanName(),
|
|
92
94
|
entryDirectory = this.getEntryDirectory();
|
|
93
95
|
|
|
94
96
|
sourceEntryPath = adjustSourceEntryPath(sourceEntryPath, name); ///
|
|
95
97
|
|
|
96
|
-
targetEntryPath = adjustTargetEntryPath(targetEntryPath,
|
|
98
|
+
targetEntryPath = adjustTargetEntryPath(targetEntryPath, nameSpanName); ///
|
|
97
99
|
|
|
98
100
|
const pathMap = {
|
|
99
101
|
collapsed,
|
|
@@ -115,14 +117,6 @@ class DragEntryItem extends EntryItem {
|
|
|
115
117
|
return pathMaps;
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
hasNameChanged() {
|
|
119
|
-
const nameInputName = this.getNameInputName(),
|
|
120
|
-
nameButtonName = this.getNameButtonName(),
|
|
121
|
-
nameChanged = (nameInputName !== nameButtonName);
|
|
122
|
-
|
|
123
|
-
return nameChanged;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
120
|
getEntryDirectory() {
|
|
127
121
|
const directoryNameDragEntryItem = this.isDirectoryNameDragEntryItem(),
|
|
128
122
|
entryDirectory = directoryNameDragEntryItem; ///
|
|
@@ -150,11 +144,11 @@ class DragEntryItem extends EntryItem {
|
|
|
150
144
|
return selected;
|
|
151
145
|
}
|
|
152
146
|
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
|
|
147
|
+
isEditable() {
|
|
148
|
+
const nameSpanEdited = this.isNameSpanEditable(),
|
|
149
|
+
editable = nameSpanEdited; ///
|
|
156
150
|
|
|
157
|
-
return
|
|
151
|
+
return editable;
|
|
158
152
|
}
|
|
159
153
|
|
|
160
154
|
deselect() {
|
|
@@ -166,44 +160,34 @@ class DragEntryItem extends EntryItem {
|
|
|
166
160
|
}
|
|
167
161
|
|
|
168
162
|
edit() {
|
|
169
|
-
const created = this.isCreated()
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
nameButtonName = name; ///
|
|
175
|
-
|
|
176
|
-
this.setNameInputName(nameInputName);
|
|
177
|
-
|
|
178
|
-
this.setNameButtonName(nameButtonName);
|
|
179
|
-
}
|
|
163
|
+
const created = this.isCreated(),
|
|
164
|
+
name = created ?
|
|
165
|
+
EMPTY_STRING :
|
|
166
|
+
this.getName(),
|
|
167
|
+
nameSpanName = name; ///
|
|
180
168
|
|
|
181
|
-
this.
|
|
169
|
+
this.setNameSpanName(nameSpanName);
|
|
182
170
|
|
|
183
|
-
this.
|
|
171
|
+
this.editNameSpan();
|
|
184
172
|
}
|
|
185
173
|
|
|
186
174
|
cancel() {
|
|
187
175
|
const name = this.getName(),
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.setNameInputName(nameInputName);
|
|
176
|
+
nameSpanName = name; ///
|
|
191
177
|
|
|
192
|
-
this.
|
|
178
|
+
this.setNameSpanName(nameSpanName);
|
|
193
179
|
|
|
194
|
-
this.
|
|
180
|
+
this.cancelNameSpan();
|
|
195
181
|
}
|
|
196
182
|
|
|
197
183
|
didMount() {
|
|
198
|
-
this.hideNameInput();
|
|
199
|
-
|
|
200
184
|
this.onStopDrag(this.stopDragHandler);
|
|
201
185
|
|
|
202
186
|
this.onStartDrag(this.startDragHandler);
|
|
203
187
|
|
|
204
|
-
this.
|
|
188
|
+
this.onNameSpanChange(this.nameSpanChangeHandler);
|
|
205
189
|
|
|
206
|
-
this.
|
|
190
|
+
this.onNameSpanCancel(this.nameSpanCancelHandler);
|
|
207
191
|
|
|
208
192
|
this.enableDrag();
|
|
209
193
|
}
|
|
@@ -213,9 +197,9 @@ class DragEntryItem extends EntryItem {
|
|
|
213
197
|
|
|
214
198
|
this.offStartDrag(this.startDragHandler);
|
|
215
199
|
|
|
216
|
-
this.
|
|
200
|
+
this.offNameSpanChange(this.nameSpanChangeHandler);
|
|
217
201
|
|
|
218
|
-
this.
|
|
202
|
+
this.offNameSpanCancel(this.nameSpanCancelHandler);
|
|
219
203
|
|
|
220
204
|
this.disableDrag();
|
|
221
205
|
}
|
|
@@ -236,9 +220,7 @@ class DragEntryItem extends EntryItem {
|
|
|
236
220
|
this.assignContext();
|
|
237
221
|
}
|
|
238
222
|
|
|
239
|
-
static
|
|
240
|
-
|
|
241
|
-
static NameButton = NameButton;
|
|
223
|
+
static NameSpan = NameSpan;
|
|
242
224
|
|
|
243
225
|
static ignoredProperties = [
|
|
244
226
|
"created"
|
|
@@ -54,7 +54,7 @@ function callCancelHandlers() {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const nameSpanMixins = {
|
|
58
58
|
onChange,
|
|
59
59
|
offChange,
|
|
60
60
|
onCancel,
|
|
@@ -63,4 +63,4 @@ const nameInputMixins = {
|
|
|
63
63
|
callCancelHandlers
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
export default
|
|
66
|
+
export default nameSpanMixins;
|
|
@@ -4,15 +4,15 @@ import withStyle from "easy-with-style"; ///
|
|
|
4
4
|
|
|
5
5
|
import { arrayUtilities } from "necessary";
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import nameSpanMixins from "../mixins/nameSpan";
|
|
8
8
|
|
|
9
|
-
import { NONE, INLINE_BLOCK } from "../constants";
|
|
10
9
|
import { Element, window, document } from "easy";
|
|
11
10
|
import { ENTER_KEY_CODE, ESCAPE_KEY_CODE } from "../keyCodes";
|
|
11
|
+
import { ROLE, TRUE, TEXTBOX, CONTENT_EDITABLE } from "../constants";
|
|
12
12
|
|
|
13
13
|
const { first } = arrayUtilities;
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class NameSpan extends Element {
|
|
16
16
|
keyDownHandler = (event, element) => {
|
|
17
17
|
const { keyCode } = event;
|
|
18
18
|
|
|
@@ -29,6 +29,12 @@ class NameInput extends Element {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
isEditable() {
|
|
33
|
+
const editable = this.hasClass("editable");
|
|
34
|
+
|
|
35
|
+
return editable;
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
getName() {
|
|
33
39
|
const html = this.html(),
|
|
34
40
|
name = html; ///
|
|
@@ -45,12 +51,14 @@ class NameInput extends Element {
|
|
|
45
51
|
textNode.nodeValue = name; ///
|
|
46
52
|
}
|
|
47
53
|
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
edit() {
|
|
55
|
+
this.focus();
|
|
50
56
|
|
|
51
|
-
this.
|
|
57
|
+
this.addClass("editable");
|
|
52
58
|
|
|
53
|
-
this.
|
|
59
|
+
this.addAttribute(ROLE, TEXTBOX);
|
|
60
|
+
|
|
61
|
+
this.addAttribute(CONTENT_EDITABLE, TRUE);
|
|
54
62
|
|
|
55
63
|
const html = this.html(),
|
|
56
64
|
range = document.createRange(),
|
|
@@ -68,65 +76,66 @@ class NameInput extends Element {
|
|
|
68
76
|
selection.removeAllRanges();
|
|
69
77
|
|
|
70
78
|
selection.addRange(range);
|
|
71
|
-
}
|
|
72
79
|
|
|
73
|
-
hide() {
|
|
74
|
-
const display = NONE;
|
|
75
|
-
|
|
76
|
-
this.display(display);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
didMount() {
|
|
80
80
|
this.onKeyDown(this.keyDownHandler);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
cancel() {
|
|
84
84
|
this.offKeyDown(this.keyDownHandler);
|
|
85
|
+
|
|
86
|
+
this.removeClass("editable");
|
|
87
|
+
|
|
88
|
+
this.removeAttribute(ROLE, TEXTBOX);
|
|
89
|
+
|
|
90
|
+
this.removeAttribute(CONTENT_EDITABLE, TRUE);
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
parentContext() {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
const editNameSpan = this.edit.bind(this), ///
|
|
95
|
+
cancelNameSpan = this.cancel.bind(this), ///
|
|
96
|
+
getNameSpanName = this.getName.bind(this), ///
|
|
97
|
+
setNameSpanName = this.setName.bind(this), ///
|
|
98
|
+
onNameSpanChange = this.onChange.bind(this), ///
|
|
99
|
+
onNameSpanCancel = this.onCancel.bind(this), ///
|
|
100
|
+
offNameSpanChange = this.offChange.bind(this), ///
|
|
101
|
+
offNameSpanCancel = this.offCancel.bind(this), ///
|
|
102
|
+
isNameSpanEditable = this.isEditable.bind(this); ///
|
|
97
103
|
|
|
98
104
|
return ({
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
editNameSpan,
|
|
106
|
+
cancelNameSpan,
|
|
107
|
+
getNameSpanName,
|
|
108
|
+
setNameSpanName,
|
|
109
|
+
onNameSpanChange,
|
|
110
|
+
onNameSpanCancel,
|
|
111
|
+
offNameSpanChange,
|
|
112
|
+
offNameSpanCancel,
|
|
113
|
+
isNameSpanEditable
|
|
108
114
|
});
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
static tagName = "span"; ///
|
|
112
118
|
|
|
113
119
|
static defaultProperties = {
|
|
114
|
-
|
|
115
|
-
className: "name",
|
|
116
|
-
contentEditable: "true"
|
|
120
|
+
className: "name"
|
|
117
121
|
};
|
|
118
122
|
}
|
|
119
123
|
|
|
120
|
-
Object.assign(
|
|
124
|
+
Object.assign(NameSpan.prototype, nameSpanMixins);
|
|
121
125
|
|
|
122
|
-
export default withStyle(
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
export default withStyle(NameSpan)`
|
|
127
|
+
|
|
128
|
+
border: none;
|
|
129
|
+
display: inline-block;
|
|
125
130
|
font-size: inherit;
|
|
126
131
|
text-align: left;
|
|
132
|
+
background: transparent;
|
|
127
133
|
font-weight: inherit;
|
|
128
134
|
font-family: inherit;
|
|
129
|
-
|
|
130
|
-
|
|
135
|
+
|
|
136
|
+
.editable {
|
|
137
|
+
border: 1px solid black;
|
|
138
|
+
padding: 4px;
|
|
139
|
+
}
|
|
131
140
|
|
|
132
141
|
`;
|
package/src/utilities/pathMap.js
CHANGED
|
@@ -37,15 +37,15 @@ export function adjustSourceEntryPath(sourceEntryPath, name) {
|
|
|
37
37
|
return sourceEntryPath;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export function adjustTargetEntryPath(targetEntryPath,
|
|
40
|
+
export function adjustTargetEntryPath(targetEntryPath, nameSpanName) {
|
|
41
41
|
if (false) {
|
|
42
42
|
///
|
|
43
43
|
} else if (targetEntryPath === null) {
|
|
44
44
|
targetEntryPath = null;
|
|
45
45
|
} else if (targetEntryPath === EMPTY_STRING) {
|
|
46
|
-
targetEntryPath =
|
|
46
|
+
targetEntryPath = nameSpanName; ///
|
|
47
47
|
} else {
|
|
48
|
-
targetEntryPath = concatenatePaths(targetEntryPath,
|
|
48
|
+
targetEntryPath = concatenatePaths(targetEntryPath, nameSpanName);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return targetEntryPath;
|