easy-file-system 2.1.9 → 2.1.11
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 +198 -272
- package/lib/button/name.js +1 -4
- package/lib/div/item/entry/drag/directoryName.js +159 -0
- package/lib/div/item/entry/{fileName.js → drag/fileName.js} +17 -26
- package/lib/div/item/entry/drag.js +155 -0
- package/lib/div/item/entry/marker.js +2 -4
- package/lib/div/item/entry.js +2 -2
- package/lib/explorer.js +12 -10
- package/lib/index.js +21 -21
- package/lib/item/entry/drag/directoryName.js +2 -2
- package/lib/item/entry/drag/fileName.js +2 -2
- package/lib/item/entry/drag.js +1 -8
- package/lib/list/entries.js +2 -2
- package/lib/rubbishBin.js +3 -3
- package/package.json +1 -1
- package/src/button/name.js +0 -4
- package/src/div/item/entry/{directoryName.js → drag/directoryName.js} +6 -16
- package/src/div/item/entry/{fileName.js → drag/fileName.js} +6 -16
- package/src/div/item/entry/drag.js +34 -0
- package/src/div/item/entry/marker.js +1 -3
- package/src/div/item/entry.js +1 -0
- package/src/explorer.js +33 -10
- package/src/index.js +5 -4
- package/src/item/entry/drag/directoryName.js +7 -7
- package/src/item/entry/drag/fileName.js +6 -6
- package/src/item/entry/drag.js +0 -16
- package/src/list/entries.js +3 -1
- package/src/rubbishBin.js +6 -2
- package/lib/button/svg.js +0 -161
- package/lib/div/background.js +0 -39
- package/lib/div/item/entry/directoryName.js +0 -168
- package/src/button/svg.js +0 -28
- package/src/div/background.js +0 -16
package/src/index.js
CHANGED
|
@@ -9,10 +9,6 @@ export { default as NameInput } from "./input/name";
|
|
|
9
9
|
export { default as NameButton } from "./button/name";
|
|
10
10
|
export { default as EntriesList } from "./list/entries";
|
|
11
11
|
export { default as ToggleButton } from "./button/toggle";
|
|
12
|
-
export { default as FileNameDragEntryItem } from "./item/entry/drag/fileName";
|
|
13
|
-
export { default as FileNameMarkerEntryItem } from "./item/entry/marker/fileName";
|
|
14
|
-
export { default as DirectoryNameDragEntryItem } from "./item/entry/drag/directoryName";
|
|
15
|
-
export { default as DirectoryNameMarkerEntryItem } from "./item/entry/marker/directoryName";
|
|
16
12
|
|
|
17
13
|
export { default as MarkerSVG } from "./svg/marker";
|
|
18
14
|
export { default as FileNameSVG } from "./svg/fileName";
|
|
@@ -21,3 +17,8 @@ export { default as DownToggleSVG } from "./svg/toggle/down";
|
|
|
21
17
|
export { default as DirectoryNameSVG } from "./svg/directoryName";
|
|
22
18
|
export { default as OpenRubbishBinSVG } from "./svg/rubbishBin/open";
|
|
23
19
|
export { default as ClosedRubbishBinSVG } from "./svg/rubbishBin/closed";
|
|
20
|
+
|
|
21
|
+
export { default as FileNameDragEntryItem } from "./item/entry/drag/fileName";
|
|
22
|
+
export { default as FileNameMarkerEntryItem } from "./item/entry/marker/fileName";
|
|
23
|
+
export { default as DirectoryNameDragEntryItem } from "./item/entry/drag/directoryName";
|
|
24
|
+
export { default as DirectoryNameMarkerEntryItem } from "./item/entry/marker/directoryName";
|
|
@@ -6,7 +6,7 @@ import { pathUtilities } from "necessary";
|
|
|
6
6
|
import ToggleButton from "../../../button/toggle";
|
|
7
7
|
import DragEntryItem from "../../../item/entry/drag";
|
|
8
8
|
import DirectoryNameSVG from "../../../svg/directoryName";
|
|
9
|
-
import
|
|
9
|
+
import DirectoryNameDragEntryItemDiv from "../../../div/item/entry/drag/directoryName";
|
|
10
10
|
|
|
11
11
|
import { adjustSourceEntryPath, adjustTargetEntryPath } from "../../../utilities/pathMap";
|
|
12
12
|
import { FILE_NAME_DRAG_ENTRY_TYPE, FILE_NAME_MARKER_ENTRY_TYPE, DIRECTORY_NAME_DRAG_ENTRY_TYPE, DIRECTORY_NAME_MARKER_ENTRY_TYPE } from "../../../entryTypes";
|
|
@@ -186,12 +186,12 @@ export default class DirectoryNameDragEntryItem extends DragEntryItem {
|
|
|
186
186
|
|
|
187
187
|
return ([
|
|
188
188
|
|
|
189
|
-
<
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
189
|
+
<DirectoryNameDragEntryItemDiv name={name}
|
|
190
|
+
explorer={explorer}
|
|
191
|
+
NameInput={NameInput}
|
|
192
|
+
NameButton={NameButton}
|
|
193
|
+
ToggleButton={ToggleButton}
|
|
194
|
+
DirectoryNameSVG={DirectoryNameSVG}
|
|
195
195
|
/>,
|
|
196
196
|
<EntriesList explorer={explorer} />
|
|
197
197
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import FileNameSVG from "../../../svg/fileName";
|
|
4
4
|
import DragEntryItem from "../../../item/entry/drag";
|
|
5
|
-
import
|
|
5
|
+
import FileNameDragEntryItemDiv from "../../../div/item/entry/drag/fileName";
|
|
6
6
|
|
|
7
7
|
import { nameIsBeforeEntryItemName } from "../../../utilities/name";
|
|
8
8
|
import { FILE_NAME_DRAG_ENTRY_TYPE, DIRECTORY_NAME_DRAG_ENTRY_TYPE, FILE_NAME_MARKER_ENTRY_TYPE, DIRECTORY_NAME_MARKER_ENTRY_TYPE } from "../../../entryTypes";
|
|
@@ -59,11 +59,11 @@ export default class FileNameDragEntryItem extends DragEntryItem {
|
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
61
|
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
<FileNameDragEntryItemDiv name={name}
|
|
63
|
+
explorer={explorer}
|
|
64
|
+
NameInput={NameInput}
|
|
65
|
+
NameButton={NameButton}
|
|
66
|
+
FileNameSVG={FileNameSVG}
|
|
67
67
|
/>
|
|
68
68
|
);
|
|
69
69
|
}
|
package/src/item/entry/drag.js
CHANGED
|
@@ -13,18 +13,6 @@ import { DIRECTORY_NAME_DRAG_ENTRY_TYPE } from "../../entryTypes";
|
|
|
13
13
|
import { adjustSourceEntryPath, adjustTargetEntryPath } from "../../utilities/pathMap";
|
|
14
14
|
|
|
15
15
|
class DragEntryItem extends EntryItem {
|
|
16
|
-
svgButtonClickHandler = (event, element) => {
|
|
17
|
-
const explorer = this.getExplorer(),
|
|
18
|
-
dragEntryItem = this, ///
|
|
19
|
-
selected = dragEntryItem.isSelected();
|
|
20
|
-
|
|
21
|
-
selected ?
|
|
22
|
-
explorer.deselectDragEntryItem(dragEntryItem) :
|
|
23
|
-
explorer.selectDragEntryItem(dragEntryItem);
|
|
24
|
-
|
|
25
|
-
event.stopPropagation();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
16
|
nameInputChangeHandler = () => {
|
|
29
17
|
const created = this.isCreated(),
|
|
30
18
|
explorer = this.getExplorer(),
|
|
@@ -213,8 +201,6 @@ class DragEntryItem extends EntryItem {
|
|
|
213
201
|
|
|
214
202
|
this.onStartDrag(this.startDragHandler);
|
|
215
203
|
|
|
216
|
-
this.onSVGButtonClick(this.svgButtonClickHandler);
|
|
217
|
-
|
|
218
204
|
this.onNameInputChange(this.nameInputChangeHandler);
|
|
219
205
|
|
|
220
206
|
this.onNameInputCancel(this.nameInputCancelHandler);
|
|
@@ -227,8 +213,6 @@ class DragEntryItem extends EntryItem {
|
|
|
227
213
|
|
|
228
214
|
this.offStartDrag(this.startDragHandler);
|
|
229
215
|
|
|
230
|
-
this.offSVGButtonClick(this.svgButtonClickHandler);
|
|
231
|
-
|
|
232
216
|
this.offNameInputChange(this.nameInputChangeHandler);
|
|
233
217
|
|
|
234
218
|
this.offNameInputCancel(this.nameInputCancelHandler);
|
package/src/list/entries.js
CHANGED
|
@@ -307,7 +307,9 @@ class EntriesList extends Element {
|
|
|
307
307
|
removeEntryItems() {
|
|
308
308
|
const entryItems = this.getEntryItems();
|
|
309
309
|
|
|
310
|
-
entryItems.forEach((entryItem) =>
|
|
310
|
+
entryItems.forEach((entryItem) => {
|
|
311
|
+
this.removeEntryItem(entryItem);
|
|
312
|
+
});
|
|
311
313
|
}
|
|
312
314
|
|
|
313
315
|
addMarkerEntryItem(markerEntryItemName, dragEntryItemType) {
|
package/src/rubbishBin.js
CHANGED
|
@@ -174,9 +174,13 @@ class RubbishBin extends Element {
|
|
|
174
174
|
|
|
175
175
|
removeDragEntryItems(pathMaps, explorer, done) {
|
|
176
176
|
this.callRemoveHandlersAsync(pathMaps, explorer, () => {
|
|
177
|
-
pathMaps.forEach((pathMap) =>
|
|
177
|
+
pathMaps.forEach((pathMap) => {
|
|
178
|
+
this.removeDragEntryItem(pathMap, explorer)
|
|
179
|
+
});
|
|
178
180
|
|
|
179
|
-
pathMaps.forEach((pathMap) =>
|
|
181
|
+
pathMaps.forEach((pathMap) => {
|
|
182
|
+
this.addDragEntryItem(pathMap, explorer);
|
|
183
|
+
});
|
|
180
184
|
|
|
181
185
|
done();
|
|
182
186
|
});
|
package/lib/button/svg.js
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _easyWithStyle = /*#__PURE__*/ _interopRequireDefault(require("easy-with-style"));
|
|
12
|
-
var _easy = require("easy");
|
|
13
|
-
function _assertThisInitialized(self) {
|
|
14
|
-
if (self === void 0) {
|
|
15
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
-
}
|
|
17
|
-
return self;
|
|
18
|
-
}
|
|
19
|
-
function _classCallCheck(instance, Constructor) {
|
|
20
|
-
if (!(instance instanceof Constructor)) {
|
|
21
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function _defineProperties(target, props) {
|
|
25
|
-
for(var i = 0; i < props.length; i++){
|
|
26
|
-
var descriptor = props[i];
|
|
27
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
28
|
-
descriptor.configurable = true;
|
|
29
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
30
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
34
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
35
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
36
|
-
return Constructor;
|
|
37
|
-
}
|
|
38
|
-
function _defineProperty(obj, key, value) {
|
|
39
|
-
if (key in obj) {
|
|
40
|
-
Object.defineProperty(obj, key, {
|
|
41
|
-
value: value,
|
|
42
|
-
enumerable: true,
|
|
43
|
-
configurable: true,
|
|
44
|
-
writable: true
|
|
45
|
-
});
|
|
46
|
-
} else {
|
|
47
|
-
obj[key] = value;
|
|
48
|
-
}
|
|
49
|
-
return obj;
|
|
50
|
-
}
|
|
51
|
-
function _getPrototypeOf(o) {
|
|
52
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
53
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
54
|
-
};
|
|
55
|
-
return _getPrototypeOf(o);
|
|
56
|
-
}
|
|
57
|
-
function _inherits(subClass, superClass) {
|
|
58
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
59
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
60
|
-
}
|
|
61
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
62
|
-
constructor: {
|
|
63
|
-
value: subClass,
|
|
64
|
-
writable: true,
|
|
65
|
-
configurable: true
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
69
|
-
}
|
|
70
|
-
function _interopRequireDefault(obj) {
|
|
71
|
-
return obj && obj.__esModule ? obj : {
|
|
72
|
-
default: obj
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function _possibleConstructorReturn(self, call) {
|
|
76
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
77
|
-
return call;
|
|
78
|
-
}
|
|
79
|
-
return _assertThisInitialized(self);
|
|
80
|
-
}
|
|
81
|
-
function _setPrototypeOf(o, p) {
|
|
82
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
83
|
-
o.__proto__ = p;
|
|
84
|
-
return o;
|
|
85
|
-
};
|
|
86
|
-
return _setPrototypeOf(o, p);
|
|
87
|
-
}
|
|
88
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
89
|
-
if (!raw) {
|
|
90
|
-
raw = strings.slice(0);
|
|
91
|
-
}
|
|
92
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
93
|
-
raw: {
|
|
94
|
-
value: Object.freeze(raw)
|
|
95
|
-
}
|
|
96
|
-
}));
|
|
97
|
-
}
|
|
98
|
-
var _typeof = function(obj) {
|
|
99
|
-
"@swc/helpers - typeof";
|
|
100
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
101
|
-
};
|
|
102
|
-
function _isNativeReflectConstruct() {
|
|
103
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
104
|
-
if (Reflect.construct.sham) return false;
|
|
105
|
-
if (typeof Proxy === "function") return true;
|
|
106
|
-
try {
|
|
107
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
108
|
-
return true;
|
|
109
|
-
} catch (e) {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function _createSuper(Derived) {
|
|
114
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
115
|
-
return function _createSuperInternal() {
|
|
116
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
117
|
-
if (hasNativeReflectConstruct) {
|
|
118
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
119
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
120
|
-
} else {
|
|
121
|
-
result = Super.apply(this, arguments);
|
|
122
|
-
}
|
|
123
|
-
return _possibleConstructorReturn(this, result);
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function _templateObject() {
|
|
127
|
-
var data = _taggedTemplateLiteral([
|
|
128
|
-
"\n\n outline: none;\n background: transparent;\n \n"
|
|
129
|
-
]);
|
|
130
|
-
_templateObject = function _templateObject() {
|
|
131
|
-
return data;
|
|
132
|
-
};
|
|
133
|
-
return data;
|
|
134
|
-
}
|
|
135
|
-
var SVGButton = /*#__PURE__*/ function(Button) {
|
|
136
|
-
_inherits(SVGButton, Button);
|
|
137
|
-
var _super = _createSuper(SVGButton);
|
|
138
|
-
function SVGButton() {
|
|
139
|
-
_classCallCheck(this, SVGButton);
|
|
140
|
-
return _super.apply(this, arguments);
|
|
141
|
-
}
|
|
142
|
-
_createClass(SVGButton, [
|
|
143
|
-
{
|
|
144
|
-
key: "parentContext",
|
|
145
|
-
value: function parentContext() {
|
|
146
|
-
var onSVGButtonClick = this.onClick.bind(this), offSVGButtonClick = this.onClick.bind(this); ///
|
|
147
|
-
return {
|
|
148
|
-
onSVGButtonClick: onSVGButtonClick,
|
|
149
|
-
offSVGButtonClick: offSVGButtonClick
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
]);
|
|
154
|
-
return SVGButton;
|
|
155
|
-
}(_easy.Button);
|
|
156
|
-
_defineProperty(SVGButton, "defaultProperties", {
|
|
157
|
-
className: "svg"
|
|
158
|
-
});
|
|
159
|
-
var _default = (0, _easyWithStyle.default)(SVGButton)(_templateObject());
|
|
160
|
-
|
|
161
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idXR0b24vc3ZnLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQg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ozs7O0FBRXZCLElBQUEsQUFBTUEsMEJBZ0JILEFBaEJIO2NBQU1BOzhCQUFBQTthQUFBQTs4QkFBQUE7OztpQkFBQUE7O1lBQ0pDLEtBQUFBO21CQUFBQSxTQUFBQSxnQkFBZ0I7Z0JBQ2QsSUFBTUMsbUJBQW1CLElBQUksQ0FBQ0MsT0FBTyxDQUFDQyxJQUFJLENBQUMsSUFBSSxHQUN6Q0Msb0JBQW9CLElBQUksQ0FBQ0YsT0FBTyxDQUFDQyxJQUFJLENBQUMsSUFBSSxHQUFHLEdBQUc7Z0JBRXRELE9BQVE7b0JBQ05GLGtCQUFBQTtvQkFDQUcsbUJBQUFBO2dCQUNGO1lBQ0Y7OztXQVRJTDtFQUFrQk0sWUFBTTtBQVc1QixnQkFYSU4sV0FXR08scUJBQW9CO0lBQ3pCQyxXQUFXO0FBQ2I7SUFHRixXQUFlQyxJQUFBQSxzQkFBUyxFQUFDVCJ9
|
package/lib/div/background.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _easyWithStyle = /*#__PURE__*/ _interopRequireDefault(require("easy-with-style"));
|
|
12
|
-
function _interopRequireDefault(obj) {
|
|
13
|
-
return obj && obj.__esModule ? obj : {
|
|
14
|
-
default: obj
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function _taggedTemplateLiteral(strings, raw) {
|
|
18
|
-
if (!raw) {
|
|
19
|
-
raw = strings.slice(0);
|
|
20
|
-
}
|
|
21
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
22
|
-
raw: {
|
|
23
|
-
value: Object.freeze(raw)
|
|
24
|
-
}
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
function _templateObject() {
|
|
28
|
-
var data = _taggedTemplateLiteral([
|
|
29
|
-
"\n\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: -1;\n position: absolute;\n \n"
|
|
30
|
-
]);
|
|
31
|
-
_templateObject = function _templateObject() {
|
|
32
|
-
return data;
|
|
33
|
-
};
|
|
34
|
-
return data;
|
|
35
|
-
}
|
|
36
|
-
var BackgroundDiv = _easyWithStyle.default.div(_templateObject());
|
|
37
|
-
var _default = BackgroundDiv;
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXYvYmFja2dyb3VuZC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuY29uc3QgQmFja2dyb3VuZERpdiA9IHdpdGhTdHlsZS5kaXZgXG5cbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB6LWluZGV4OiAtMTtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgXG5gO1xuXG5leHBvcnQgZGVmYXVsdCBCYWNrZ3JvdW5kRGl2O1xuIl0sIm5hbWVzIjpbIkJhY2tncm91bmREaXYiLCJ3aXRoU3R5bGUiLCJkaXYiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQWVBOzs7ZUFBQTs7O2tFQWJzQjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV0QixJQUFNQSxnQkFBZ0JDLHNCQUFTLENBQUNDLEdBQUc7SUFXbkMsV0FBZUYifQ==
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return DirectoryNameEntryItemDiv;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _svg = /*#__PURE__*/ _interopRequireDefault(require("../../../button/svg"));
|
|
12
|
-
var _entry = /*#__PURE__*/ _interopRequireDefault(require("../../../div/item/entry"));
|
|
13
|
-
var _background = /*#__PURE__*/ _interopRequireDefault(require("../../../div/background"));
|
|
14
|
-
function _assertThisInitialized(self) {
|
|
15
|
-
if (self === void 0) {
|
|
16
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
|
-
}
|
|
18
|
-
return self;
|
|
19
|
-
}
|
|
20
|
-
function _classCallCheck(instance, Constructor) {
|
|
21
|
-
if (!(instance instanceof Constructor)) {
|
|
22
|
-
throw new TypeError("Cannot call a class as a function");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function _defineProperties(target, props) {
|
|
26
|
-
for(var i = 0; i < props.length; i++){
|
|
27
|
-
var descriptor = props[i];
|
|
28
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
29
|
-
descriptor.configurable = true;
|
|
30
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
31
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
35
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
36
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
37
|
-
return Constructor;
|
|
38
|
-
}
|
|
39
|
-
function _defineProperty(obj, key, value) {
|
|
40
|
-
if (key in obj) {
|
|
41
|
-
Object.defineProperty(obj, key, {
|
|
42
|
-
value: value,
|
|
43
|
-
enumerable: true,
|
|
44
|
-
configurable: true,
|
|
45
|
-
writable: true
|
|
46
|
-
});
|
|
47
|
-
} else {
|
|
48
|
-
obj[key] = value;
|
|
49
|
-
}
|
|
50
|
-
return obj;
|
|
51
|
-
}
|
|
52
|
-
function _getPrototypeOf(o) {
|
|
53
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
54
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
55
|
-
};
|
|
56
|
-
return _getPrototypeOf(o);
|
|
57
|
-
}
|
|
58
|
-
function _inherits(subClass, superClass) {
|
|
59
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
60
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
61
|
-
}
|
|
62
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
63
|
-
constructor: {
|
|
64
|
-
value: subClass,
|
|
65
|
-
writable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
70
|
-
}
|
|
71
|
-
function _interopRequireDefault(obj) {
|
|
72
|
-
return obj && obj.__esModule ? obj : {
|
|
73
|
-
default: obj
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function _possibleConstructorReturn(self, call) {
|
|
77
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
78
|
-
return call;
|
|
79
|
-
}
|
|
80
|
-
return _assertThisInitialized(self);
|
|
81
|
-
}
|
|
82
|
-
function _setPrototypeOf(o, p) {
|
|
83
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
84
|
-
o.__proto__ = p;
|
|
85
|
-
return o;
|
|
86
|
-
};
|
|
87
|
-
return _setPrototypeOf(o, p);
|
|
88
|
-
}
|
|
89
|
-
var _typeof = function(obj) {
|
|
90
|
-
"@swc/helpers - typeof";
|
|
91
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
92
|
-
};
|
|
93
|
-
function _isNativeReflectConstruct() {
|
|
94
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
95
|
-
if (Reflect.construct.sham) return false;
|
|
96
|
-
if (typeof Proxy === "function") return true;
|
|
97
|
-
try {
|
|
98
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
99
|
-
return true;
|
|
100
|
-
} catch (e) {
|
|
101
|
-
return false;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
function _createSuper(Derived) {
|
|
105
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
106
|
-
return function _createSuperInternal() {
|
|
107
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
108
|
-
if (hasNativeReflectConstruct) {
|
|
109
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
110
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
111
|
-
} else {
|
|
112
|
-
result = Super.apply(this, arguments);
|
|
113
|
-
}
|
|
114
|
-
return _possibleConstructorReturn(this, result);
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
var DirectoryNameEntryItemDiv = /*#__PURE__*/ function(EntryItemDiv) {
|
|
118
|
-
_inherits(DirectoryNameEntryItemDiv, EntryItemDiv);
|
|
119
|
-
var _super = _createSuper(DirectoryNameEntryItemDiv);
|
|
120
|
-
function DirectoryNameEntryItemDiv() {
|
|
121
|
-
_classCallCheck(this, DirectoryNameEntryItemDiv);
|
|
122
|
-
var _this;
|
|
123
|
-
_this = _super.apply(this, arguments);
|
|
124
|
-
_defineProperty(_assertThisInitialized(_this), "toggleButtonMouseDownHandler", function(event, element) {
|
|
125
|
-
var dragEntryItem = _this.getDragEntryItem(), directoryNameDragEntryItem = dragEntryItem; ///
|
|
126
|
-
directoryNameDragEntryItem.toggle();
|
|
127
|
-
event.stopPropagation();
|
|
128
|
-
});
|
|
129
|
-
_defineProperty(_assertThisInitialized(_this), "nameButtonDoubleClickHandler", function(event, element) {
|
|
130
|
-
var dragEntryItem = _this.getDragEntryItem(), directoryNameDragEntryItem = dragEntryItem; ///
|
|
131
|
-
directoryNameDragEntryItem.toggle();
|
|
132
|
-
event.stopPropagation();
|
|
133
|
-
});
|
|
134
|
-
return _this;
|
|
135
|
-
}
|
|
136
|
-
_createClass(DirectoryNameEntryItemDiv, [
|
|
137
|
-
{
|
|
138
|
-
key: "childElements",
|
|
139
|
-
value: function childElements() {
|
|
140
|
-
var _this_properties = this.properties, name = _this_properties.name, NameInput = _this_properties.NameInput, NameButton = _this_properties.NameButton, ToggleButton = _this_properties.ToggleButton, DirectoryNameSVG = _this_properties.DirectoryNameSVG;
|
|
141
|
-
return [
|
|
142
|
-
/*#__PURE__*/ React.createElement(ToggleButton, {
|
|
143
|
-
onMouseDown: this.toggleButtonMouseDownHandler
|
|
144
|
-
}),
|
|
145
|
-
/*#__PURE__*/ React.createElement(_svg.default, null, /*#__PURE__*/ React.createElement(DirectoryNameSVG, null)),
|
|
146
|
-
/*#__PURE__*/ React.createElement(NameButton, {
|
|
147
|
-
onDoubleClick: this.nameButtonDoubleClickHandler
|
|
148
|
-
}, name),
|
|
149
|
-
/*#__PURE__*/ React.createElement(NameInput, null, name),
|
|
150
|
-
/*#__PURE__*/ React.createElement(_background.default, null)
|
|
151
|
-
];
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
]);
|
|
155
|
-
return DirectoryNameEntryItemDiv;
|
|
156
|
-
}(_entry.default);
|
|
157
|
-
_defineProperty(DirectoryNameEntryItemDiv, "ignoredProperties", [
|
|
158
|
-
"name",
|
|
159
|
-
"NameInput",
|
|
160
|
-
"NameButton",
|
|
161
|
-
"ToggleButton",
|
|
162
|
-
"DirectoryNameSVG"
|
|
163
|
-
]);
|
|
164
|
-
_defineProperty(DirectoryNameEntryItemDiv, "defaultProperties", {
|
|
165
|
-
className: "directory-name"
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL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StCLFNBQUNQLE9BQU9DLFNBQVk7WUFDakQsSUFBTUMsZ0JBQWdCLE1BQUtDLGdCQUFnQixJQUNyQ0MsNkJBQTZCRixlQUFlLEdBQUc7WUFFckRFLDJCQUEyQkMsTUFBTTtZQUVqQ0wsTUFBTU0sZUFBZTtRQUN2Qjs7O2lCQWpCbUJSOztZQW1CbkJVLEtBQUFBO21CQUFBQSxTQUFBQSxnQkFBZ0I7Z0JBQ2QsSUFBd0UsbUJBQUEsSUFBSSxDQUFDQyxVQUFVLEVBQS9FQyxPQUFnRSxpQkFBaEVBLE1BQU1DLFlBQTBELGlCQUExREEsV0FBV0MsYUFBK0MsaUJBQS9DQSxZQUFZQyxlQUFtQyxpQkFBbkNBLGNBQWNDLG1CQUFxQixpQkFBckJBO2dCQUVuRCxPQUFRO2tDQUVOLG9CQUFDRDt3QkFBYUUsYUFBYSxJQUFJLENBQUNoQiw0QkFBNEI7O2tDQUM1RCxvQkFBQ2lCLFlBQVMsc0JBQ1Isb0JBQUNGO2tDQUVILG9CQUFDRjt3QkFBV0ssZUFBZSxJQUFJLENBQUNWLDRCQUE0Qjt1QkFDekRHO2tDQUVILG9CQUFDQyxpQkFDRUQ7a0NBRUgsb0JBQUNRLG1CQUFhO2lCQUVmO1lBQ0g7OztXQXJDbUJwQjtFQUFrQ3FCLGNBQVk7QUF1Q2pFLGdCQXZDbUJyQiwyQkF1Q1pzQixxQkFBb0I7SUFDekI7SUFDQTtJQUNBO0lBQ0E7SUFDQTtDQUNEO0FBRUQsZ0JBL0NtQnRCLDJCQStDWnVCLHFCQUFvQjtJQUN6QkMsV0FBVztBQUNiIn0=
|
package/src/button/svg.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import { Button } from "easy";
|
|
6
|
-
|
|
7
|
-
class SVGButton extends Button {
|
|
8
|
-
parentContext() {
|
|
9
|
-
const onSVGButtonClick = this.onClick.bind(this), ///
|
|
10
|
-
offSVGButtonClick = this.onClick.bind(this); ///
|
|
11
|
-
|
|
12
|
-
return ({
|
|
13
|
-
onSVGButtonClick,
|
|
14
|
-
offSVGButtonClick
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static defaultProperties = {
|
|
19
|
-
className: "svg"
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default withStyle(SVGButton)`
|
|
24
|
-
|
|
25
|
-
outline: none;
|
|
26
|
-
background: transparent;
|
|
27
|
-
|
|
28
|
-
`;
|
package/src/div/background.js
DELETED