easy-file-system 5.0.45 → 5.0.49
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/lib/button/toggle.js +42 -164
- package/lib/constants.js +6 -6
- package/lib/customEventTypes.js +9 -9
- package/lib/div/item/entry/drag/directoryName.js +24 -122
- package/lib/div/item/entry/drag/fileName.js +15 -112
- package/lib/div/item/entry/drag.js +19 -120
- package/lib/div/item/entry/marker.js +10 -107
- package/lib/div/item/entry.js +25 -187
- package/lib/entryTypes.js +5 -5
- package/lib/example/preamble.js +2 -2
- package/lib/example/view/button.js +12 -23
- package/lib/example/view/explorer/first.js +20 -120
- package/lib/example/view/explorer/second.js +17 -117
- package/lib/example/view/rubbishBin.js +10 -88
- package/lib/example/view.js +88 -233
- package/lib/example.js +6 -6
- package/lib/explorer.js +393 -740
- package/lib/index.js +17 -17
- package/lib/item/entry/drag/directoryName.js +130 -289
- package/lib/item/entry/drag/fileName.js +61 -182
- package/lib/item/entry/drag.js +179 -375
- package/lib/item/entry/marker/directoryName.js +20 -117
- package/lib/item/entry/marker/fileName.js +21 -118
- package/lib/item/entry/marker.js +13 -110
- package/lib/item/entry.js +54 -249
- package/lib/list/entries.js +464 -808
- package/lib/mixins/dragEntryItem.js +19 -19
- package/lib/mixins/explorer.js +28 -28
- package/lib/mixins/nameSpan.js +12 -12
- package/lib/mixins/rubbishBin.js +8 -8
- package/lib/rubbishBin.js +180 -415
- package/lib/span/name.js +93 -262
- package/lib/styles.js +14 -14
- package/lib/svg/directoryName.js +31 -142
- package/lib/svg/fileName.js +32 -143
- package/lib/svg/marker.js +25 -136
- package/lib/svg/rubbishBin/closed.js +48 -163
- package/lib/svg/rubbishBin/open.js +52 -167
- package/lib/svg/toggle/down.js +29 -145
- package/lib/svg/toggle/up.js +30 -146
- package/lib/svg.js +12 -149
- package/lib/utilities/name.js +12 -12
- package/lib/utilities/path.js +5 -5
- package/lib/utilities/pathMap.js +7 -7
- package/package.json +8 -4
- package/.aiignore +0 -14
- package/.swcrc +0 -11
- package/bin/main.js +0 -15
- package/example.js +0 -41953
- package/index.html +0 -46
|
@@ -8,131 +8,30 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return DragEntryItemDiv;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _entry = /*#__PURE__*/ _interop_require_default(require("../../../div/item/entry"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
17
|
+
class DragEntryItemDiv extends _entry.default {
|
|
18
|
+
clickHandler = (event, element)=>{
|
|
19
|
+
const explorer = this.getExplorer(), dragEntryItem = this.getDragEntryItem();
|
|
20
|
+
explorer.clickDragEntryItem(event, element, dragEntryItem);
|
|
21
|
+
};
|
|
22
|
+
didMount() {
|
|
23
|
+
this.onClick(this.clickHandler);
|
|
24
|
+
}
|
|
25
|
+
willUnmount() {
|
|
26
|
+
this.offClick(this.clickHandler);
|
|
27
|
+
}
|
|
28
|
+
static ignoredProperties = [
|
|
29
|
+
"name",
|
|
30
|
+
"NameSpan"
|
|
31
|
+
];
|
|
32
|
+
static defaultProperties = {
|
|
33
|
+
className: "drag"
|
|
88
34
|
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
35
|
}
|
|
103
|
-
var DragEntryItemDiv = /*#__PURE__*/ function(EntryItemDiv) {
|
|
104
|
-
_inherits(DragEntryItemDiv, EntryItemDiv);
|
|
105
|
-
function DragEntryItemDiv() {
|
|
106
|
-
_class_call_check(this, DragEntryItemDiv);
|
|
107
|
-
var _this;
|
|
108
|
-
_this = _call_super(this, DragEntryItemDiv, arguments), _define_property(_this, "clickHandler", function(event, element) {
|
|
109
|
-
var explorer = _this.getExplorer(), dragEntryItem = _this.getDragEntryItem();
|
|
110
|
-
explorer.clickDragEntryItem(event, element, dragEntryItem);
|
|
111
|
-
});
|
|
112
|
-
return _this;
|
|
113
|
-
}
|
|
114
|
-
_create_class(DragEntryItemDiv, [
|
|
115
|
-
{
|
|
116
|
-
key: "didMount",
|
|
117
|
-
value: function didMount() {
|
|
118
|
-
this.onClick(this.clickHandler);
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
key: "willUnmount",
|
|
123
|
-
value: function willUnmount() {
|
|
124
|
-
this.offClick(this.clickHandler);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
]);
|
|
128
|
-
return DragEntryItemDiv;
|
|
129
|
-
}(_entry.default);
|
|
130
|
-
_define_property(DragEntryItemDiv, "ignoredProperties", [
|
|
131
|
-
"name",
|
|
132
|
-
"NameSpan"
|
|
133
|
-
]);
|
|
134
|
-
_define_property(DragEntryItemDiv, "defaultProperties", {
|
|
135
|
-
className: "drag"
|
|
136
|
-
});
|
|
137
36
|
|
|
138
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kaXYvaXRlbS9lbnRyeS9kcmFnLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgRW50cnlJdGVtRGl2IGZyb20gXCIuLi8uLi8uLi9kaXYvaXRlbS9lbnRyeVwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBEcmFnRW50cnlJdGVtRGl2IGV4dGVuZHMgRW50cnlJdGVtRGl2IHtcbiAgY2xpY2tIYW5kbGVyID0gKGV2ZW50LCBlbGVtZW50KSA9PiB7XG4gICAgY29uc3QgZXhwbG9yZXIgPSB0aGlzLmdldEV4cGxvcmVyKCksXG4gICAgICAgICAgZHJhZ0VudHJ5SXRlbSA9IHRoaXMuZ2V0RHJhZ0VudHJ5SXRlbSgpO1xuXG4gICAgZXhwbG9yZXIuY2xpY2tEcmFnRW50cnlJdGVtKGV2ZW50LCBlbGVtZW50LCBkcmFnRW50cnlJdGVtKTtcbiAgfVxuXG4gIGRpZE1vdW50KCkge1xuICAgIHRoaXMub25DbGljayh0aGlzLmNsaWNrSGFuZGxlcilcbiAgfVxuXG4gIHdpbGxVbm1vdW50KCkge1xuICAgIHRoaXMub2ZmQ2xpY2sodGhpcy5jbGlja0hhbmRsZXIpO1xuICB9XG5cbiAgc3RhdGljIGlnbm9yZWRQcm9wZXJ0aWVzID0gW1xuICAgIFwibmFtZVwiLFxuICAgIFw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"default", {
|
|
|
8
8
|
return MarkerEntryItemDiv;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _entry = /*#__PURE__*/ _interop_require_default(require("../../../div/item/entry"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
17
|
+
class MarkerEntryItemDiv extends _entry.default {
|
|
18
|
+
childElements() {
|
|
19
|
+
const { MarkerSVG } = this.properties;
|
|
20
|
+
return [
|
|
21
|
+
/*#__PURE__*/ React.createElement(MarkerSVG, null)
|
|
22
|
+
];
|
|
81
23
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
function _set_prototype_of(o, p) {
|
|
85
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
-
o.__proto__ = p;
|
|
87
|
-
return o;
|
|
24
|
+
static defaultProperties = {
|
|
25
|
+
className: "file-name"
|
|
88
26
|
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
27
|
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
|
-
}
|
|
103
|
-
var MarkerEntryItemDiv = /*#__PURE__*/ function(EntryItemDiv) {
|
|
104
|
-
_inherits(MarkerEntryItemDiv, EntryItemDiv);
|
|
105
|
-
function MarkerEntryItemDiv() {
|
|
106
|
-
_class_call_check(this, MarkerEntryItemDiv);
|
|
107
|
-
return _call_super(this, MarkerEntryItemDiv, arguments);
|
|
108
|
-
}
|
|
109
|
-
_create_class(MarkerEntryItemDiv, [
|
|
110
|
-
{
|
|
111
|
-
key: "childElements",
|
|
112
|
-
value: function childElements() {
|
|
113
|
-
var MarkerSVG = this.properties.MarkerSVG;
|
|
114
|
-
return [
|
|
115
|
-
/*#__PURE__*/ React.createElement(MarkerSVG, null)
|
|
116
|
-
];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
]);
|
|
120
|
-
return MarkerEntryItemDiv;
|
|
121
|
-
}(_entry.default);
|
|
122
|
-
_define_property(MarkerEntryItemDiv, "defaultProperties", {
|
|
123
|
-
className: "file-name"
|
|
124
|
-
});
|
|
125
28
|
|
|
126
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kaXYvaXRlbS9lbnRyeS9tYXJrZXIuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBFbnRyeUl0ZW1EaXYgZnJvbSBcIi4uLy4uLy4uL2Rpdi9pdGVtL2VudHJ5XCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIE1hcmtlckVudHJ5SXRlbURpdiBleHRlbmRzIEVudHJ5SXRlbURpdiB7XG4gIGNoaWxkRWxlbWVudHMoKSB7XG4gICAgY29uc3QgeyBNYXJrZXJTVkcgfSA9IHRoaXMucHJvcGVydGllcztcblxuICAgIHJldHVybiAoW1xuXG4gICAgICA8TWFya2VyU1ZHLz5cblxuICAgIF0pO1xuICB9XG5cbiAgc3RhdGljIGRlZmF1bHRQcm9wZXJ0aWVzID0ge1xuICAgIGNsYXNzTmFtZTogXCJmaWxlLW5hbWVcIlxuICB9O1xufVxuIl0sIm5hbWVzIjpbIk1hcmtlckVudHJ5SXRlbURpdiIsIkVudHJ5SXRlbURpdiIsImNoaWxkRWxlbWVudHMiLCJNYXJrZXJTVkciLCJwcm9wZXJ0aWVzIiwiZGVmYXVsdFByb3BlcnRpZXMiLCJjbGFzc05hbWUiXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQUlBOzs7ZUFBcUJBOzs7OERBRkk7Ozs7OztBQUVWLE1BQU1BLDJCQUEyQkMsY0FBWTtJQUMxREMsZ0JBQWdCO1FBQ2QsTUFBTSxFQUFFQyxTQUFTLEVBQUUsR0FBRyxJQUFJLENBQUNDLFVBQVU7UUFFckMsT0FBUTswQkFFTixvQkFBQ0Q7U0FFRjtJQUNIO0lBRUEsT0FBT0Usb0JBQW9CO1FBQ3pCQyxXQUFXO0lBQ2IsRUFBRTtBQUNKIn0=
|
package/lib/div/item/entry.js
CHANGED
|
@@ -8,198 +8,36 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function _assert_this_initialized(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 _call_super(_this, derived, args) {
|
|
21
|
-
derived = _get_prototype_of(derived);
|
|
22
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
23
|
-
}
|
|
24
|
-
function _class_call_check(instance, Constructor) {
|
|
25
|
-
if (!(instance instanceof Constructor)) {
|
|
26
|
-
throw new TypeError("Cannot call a class as a function");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function _construct(Parent, args, Class) {
|
|
30
|
-
if (_is_native_reflect_construct()) {
|
|
31
|
-
_construct = Reflect.construct;
|
|
32
|
-
} else {
|
|
33
|
-
_construct = function construct(Parent, args, Class) {
|
|
34
|
-
var a = [
|
|
35
|
-
null
|
|
36
|
-
];
|
|
37
|
-
a.push.apply(a, args);
|
|
38
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
39
|
-
var instance = new Constructor();
|
|
40
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
41
|
-
return instance;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
return _construct.apply(null, arguments);
|
|
45
|
-
}
|
|
46
|
-
function _defineProperties(target, props) {
|
|
47
|
-
for(var i = 0; i < props.length; i++){
|
|
48
|
-
var descriptor = props[i];
|
|
49
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
50
|
-
descriptor.configurable = true;
|
|
51
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
52
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
56
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
57
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
58
|
-
return Constructor;
|
|
59
|
-
}
|
|
60
|
-
function _define_property(obj, key, value) {
|
|
61
|
-
if (key in obj) {
|
|
62
|
-
Object.defineProperty(obj, key, {
|
|
63
|
-
value: value,
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true,
|
|
66
|
-
writable: true
|
|
67
|
-
});
|
|
68
|
-
} else {
|
|
69
|
-
obj[key] = value;
|
|
70
|
-
}
|
|
71
|
-
return obj;
|
|
72
|
-
}
|
|
73
|
-
function _get_prototype_of(o) {
|
|
74
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
75
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
76
|
-
};
|
|
77
|
-
return _get_prototype_of(o);
|
|
78
|
-
}
|
|
79
|
-
function _inherits(subClass, superClass) {
|
|
80
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
81
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
82
|
-
}
|
|
83
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
84
|
-
constructor: {
|
|
85
|
-
value: subClass,
|
|
86
|
-
writable: true,
|
|
87
|
-
configurable: true
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
91
|
-
}
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
13
|
+
const _styles = require("../../styles");
|
|
92
14
|
function _interop_require_default(obj) {
|
|
93
15
|
return obj && obj.__esModule ? obj : {
|
|
94
16
|
default: obj
|
|
95
17
|
};
|
|
96
18
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
19
|
+
class EntryItemDiv extends _easy.Element {
|
|
20
|
+
getExplorer() {
|
|
21
|
+
const { explorer } = this.properties;
|
|
22
|
+
return explorer;
|
|
23
|
+
}
|
|
24
|
+
getDragEntryItem() {
|
|
25
|
+
const parentElement = this.getParentElement(), dragEntryItem = parentElement; ///
|
|
26
|
+
return dragEntryItem; ///
|
|
27
|
+
}
|
|
28
|
+
static tagName = "div";
|
|
29
|
+
static ignoredProperties = [
|
|
30
|
+
"name",
|
|
31
|
+
"explorer"
|
|
32
|
+
];
|
|
33
|
+
static defaultProperties = {
|
|
34
|
+
className: "entry-item"
|
|
110
35
|
};
|
|
111
|
-
return _set_prototype_of(o, p);
|
|
112
36
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
raw: {
|
|
119
|
-
value: Object.freeze(raw)
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
function _type_of(obj) {
|
|
124
|
-
"@swc/helpers - typeof";
|
|
125
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
126
|
-
}
|
|
127
|
-
function _wrap_native_super(Class) {
|
|
128
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
129
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
130
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
131
|
-
if (typeof Class !== "function") {
|
|
132
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
133
|
-
}
|
|
134
|
-
if (typeof _cache !== "undefined") {
|
|
135
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
136
|
-
_cache.set(Class, Wrapper);
|
|
137
|
-
}
|
|
138
|
-
function Wrapper() {
|
|
139
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
140
|
-
}
|
|
141
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
142
|
-
constructor: {
|
|
143
|
-
value: Wrapper,
|
|
144
|
-
enumerable: false,
|
|
145
|
-
writable: true,
|
|
146
|
-
configurable: true
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
return _set_prototype_of(Wrapper, Class);
|
|
150
|
-
};
|
|
151
|
-
return _wrap_native_super(Class);
|
|
152
|
-
}
|
|
153
|
-
function _is_native_reflect_construct() {
|
|
154
|
-
try {
|
|
155
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
156
|
-
} catch (_) {}
|
|
157
|
-
return (_is_native_reflect_construct = function() {
|
|
158
|
-
return !!result;
|
|
159
|
-
})();
|
|
160
|
-
}
|
|
161
|
-
function _templateObject() {
|
|
162
|
-
var data = _tagged_template_literal([
|
|
163
|
-
"\n\n padding-top: ",
|
|
164
|
-
";\n \n"
|
|
165
|
-
]);
|
|
166
|
-
_templateObject = function _templateObject() {
|
|
167
|
-
return data;
|
|
168
|
-
};
|
|
169
|
-
return data;
|
|
170
|
-
}
|
|
171
|
-
var EntryItemDiv = /*#__PURE__*/ function(Element) {
|
|
172
|
-
_inherits(EntryItemDiv, Element);
|
|
173
|
-
function EntryItemDiv() {
|
|
174
|
-
_class_call_check(this, EntryItemDiv);
|
|
175
|
-
return _call_super(this, EntryItemDiv, arguments);
|
|
176
|
-
}
|
|
177
|
-
_create_class(EntryItemDiv, [
|
|
178
|
-
{
|
|
179
|
-
key: "getExplorer",
|
|
180
|
-
value: function getExplorer() {
|
|
181
|
-
var explorer = this.properties.explorer;
|
|
182
|
-
return explorer;
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
key: "getDragEntryItem",
|
|
187
|
-
value: function getDragEntryItem() {
|
|
188
|
-
var parentElement = this.getParentElement(), dragEntryItem = parentElement; ///
|
|
189
|
-
return dragEntryItem; ///
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
]);
|
|
193
|
-
return EntryItemDiv;
|
|
194
|
-
}(_wrap_native_super(_easy.Element));
|
|
195
|
-
_define_property(EntryItemDiv, "tagName", "div");
|
|
196
|
-
_define_property(EntryItemDiv, "ignoredProperties", [
|
|
197
|
-
"name",
|
|
198
|
-
"explorer"
|
|
199
|
-
]);
|
|
200
|
-
_define_property(EntryItemDiv, "defaultProperties", {
|
|
201
|
-
className: "entry-item"
|
|
202
|
-
});
|
|
203
|
-
var _default = (0, _easywithstyle.default)(EntryItemDiv)(_templateObject(), _styles.entryItemDivPaddingTop);
|
|
37
|
+
const _default = (0, _easywithstyle.default)(EntryItemDiv)`
|
|
38
|
+
|
|
39
|
+
padding-top: ${_styles.entryItemDivPaddingTop};
|
|
40
|
+
|
|
41
|
+
`;
|
|
204
42
|
|
|
205
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kaXYvaXRlbS9lbnRyeS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgRWxlbWVudCB9IGZyb20gXCJlYXN5XCI7XG5cbmltcG9ydCB7IGVudHJ5SXRlbURpdlBhZGRpbmdUb3AgfSBmcm9tIFwiLi4vLi4vc3R5bGVzXCI7XG5cbmNsYXNzIEVudHJ5SXRlbURpdiBleHRlbmRzIEVsZW1lbnQge1xuICBnZXRFeHBsb3JlcigpIHtcbiAgICBjb25zdCB7IGV4cGxvcmVyIH0gPSB0aGlzLnByb3BlcnRpZXM7XG5cbiAgICByZXR1cm4gZXhwbG9yZXI7XG4gIH1cblxuICBnZXREcmFnRW50cnlJdGVtKCkge1xuICAgIGNvbnN0IHBhcmVudEVsZW1lbnQgPSB0aGlzLmdldFBhcmVudEVsZW1lbnQoKSxcbiAgICAgICAgICBkcmFnRW50cnlJdGVtID0gcGFyZW50RWxlbWVudDsgIC8vL1xuXG4gICAgcmV0dXJuIGRyYWdFbnRyeUl0ZW07IC8vL1xuICB9XG5cbiAgc3RhdGljIHRhZ05hbWUgPSBcImRpdlwiO1xuXG4gIHN0YXR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QUNBO0tBQ0QsQ0FBQztJQUVGLE9BQU9DLG9CQUFvQjtRQUN6QkMsV0FBVztJQUNiLEVBQUU7QUFDSjtNQUVBLFdBQWVDLElBQUFBLHNCQUFTLEVBQUNiLGFBQWEsQ0FBQzs7ZUFFeEIsRUFBRWMsOEJBQXNCLENBQUM7O0FBRXhDLENBQUMifQ==
|
package/lib/entryTypes.js
CHANGED
|
@@ -22,9 +22,9 @@ _export(exports, {
|
|
|
22
22
|
return FILE_NAME_MARKER_ENTRY_TYPE;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const FILE_NAME_DRAG_ENTRY_TYPE = "file";
|
|
26
|
+
const FILE_NAME_MARKER_ENTRY_TYPE = "file-marker";
|
|
27
|
+
const DIRECTORY_NAME_DRAG_ENTRY_TYPE = "directory";
|
|
28
|
+
const DIRECTORY_NAME_MARKER_ENTRY_TYPE = "directory-marker";
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9lbnRyeVR5cGVzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5leHBvcnQgY29uc3QgRklMRV9OQU1FX0RSQUdfRU5UUllfVFlQRSA9IFwiZmlsZVwiO1xuZXhwb3J0IGNvbnN0IEZJTEVfTkFNRV9NQVJLRVJfRU5UUllfVFlQRSA9IFwiZmlsZS1tYXJrZXJcIjtcbmV4cG9ydCBjb25zdCBESVJFQ1RPUllfTkFNRV9EUkFHX0VOVFJZX1RZUEUgPSBcImRpcmVjdG9yeVwiO1xuZXhwb3J0IGNvbnN0IERJUkVDVE9SWV9OQU1FX01BUktFUl9FTlRSWV9UWVBFID0gXCJkaXJlY3RvcnktbWFya2VyXCI7XG4iXSwibmFtZXMiOlsiRElSRUNUT1JZX05BTUVfRFJBR19FTlRSWV9UWVBFIiwiRElSRUNUT1JZX05BTUVfTUFSS0VSX0VOVFJZX1RZUEUiLCJGSUxFX05BTUVfRFJBR19FTlRSWV9UWVBFIiwiRklMRV9OQU1FX01BUktFUl9FTlRSWV9UWVBFIl0sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7UUFJYUE7ZUFBQUE7O1FBQ0FDO2VBQUFBOztRQUhBQztlQUFBQTs7UUFDQUM7ZUFBQUE7OztBQUROLE1BQU1ELDRCQUE0QjtBQUNsQyxNQUFNQyw4QkFBOEI7QUFDcEMsTUFBTUgsaUNBQWlDO0FBQ3ZDLE1BQU1DLG1DQUFtQyJ9
|
package/lib/example/preamble.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
5
|
+
const _easy = require("easy");
|
|
6
6
|
Object.assign(globalThis, {
|
|
7
7
|
React: _easy.React
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlL3ByZWFtYmxlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgeyBSZWFjdCB9IGZyb20gXCJlYXN5XCI7XG5cbk9iamVjdC5hc3NpZ24oZ2xvYmFsVGhpcywge1xuICBSZWFjdFxufSk7XG4iXSwibmFtZXMiOlsiT2JqZWN0IiwiYXNzaWduIiwiZ2xvYmFsVGhpcyIsIlJlYWN0Il0sIm1hcHBpbmdzIjoiQUFBQTs7OztzQkFFc0I7QUFFdEJBLE9BQU9DLE1BQU0sQ0FBQ0MsWUFBWTtJQUN4QkMsT0FBQUEsV0FBSztBQUNQIn0=
|
|
@@ -8,32 +8,21 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
|
+
const _easy = require("easy");
|
|
13
13
|
function _interop_require_default(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : {
|
|
15
15
|
default: obj
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
function _templateObject() {
|
|
29
|
-
var data = _tagged_template_literal([
|
|
30
|
-
"\n\n border: 1px solid black;\n cursor: pointer;\n padding: 1rem;\n margin-top: 12rem;\n margin-left: 1rem;\n \n"
|
|
31
|
-
]);
|
|
32
|
-
_templateObject = function _templateObject() {
|
|
33
|
-
return data;
|
|
34
|
-
};
|
|
35
|
-
return data;
|
|
36
|
-
}
|
|
37
|
-
var _default = (0, _easywithstyle.default)(_easy.Button)(_templateObject());
|
|
18
|
+
const _default = (0, _easywithstyle.default)(_easy.Button)`
|
|
19
|
+
|
|
20
|
+
border: 1px solid black;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
padding: 1rem;
|
|
23
|
+
margin-top: 12rem;
|
|
24
|
+
margin-left: 1rem;
|
|
25
|
+
|
|
26
|
+
`;
|
|
38
27
|
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvYnV0dG9uLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tIFwiZWFzeVwiO1xuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoQnV0dG9uKWBcblxuICBib3JkZXI6IDFweCBzb2xpZCBibGFjaztcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBwYWRkaW5nOiAxcmVtO1xuICBtYXJnaW4tdG9wOiAxMnJlbTtcbiAgbWFyZ2luLWxlZnQ6IDFyZW07XG4gIFxuYDtcbiJdLCJuYW1lcyI6WyJ3aXRoU3R5bGUiLCJCdXR0b24iXSwibWFwcGluZ3MiOiJBQUFBOzs7OytCQU1BOzs7ZUFBQTs7O3NFQUpzQjtzQkFFQzs7Ozs7O01BRXZCLFdBQWVBLElBQUFBLHNCQUFTLEVBQUNDLFlBQU0sQ0FBQyxDQUFDOzs7Ozs7OztBQVFqQyxDQUFDIn0=
|