easy-file-system 1.5.24 → 1.5.26
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 +451 -365
- package/lib/button/name.js +5 -3
- package/lib/button/svg.js +27 -1
- package/lib/constants.js +9 -1
- package/lib/div/item/entry/directoryName.js +5 -13
- package/lib/div/item/entry/fileName.js +5 -13
- package/lib/eventTypes.js +17 -2
- package/lib/example/view/button.js +39 -0
- package/lib/example/view/explorer/first.js +2 -2
- package/lib/example/view.js +35 -14
- package/lib/explorer.js +73 -4
- package/lib/input/name.js +17 -38
- package/lib/item/entry/drag/directoryName.js +2 -12
- package/lib/item/entry/drag/fileName.js +2 -12
- package/lib/item/entry/drag.js +58 -23
- package/lib/list/entries.js +17 -15
- package/lib/mixins/explorer.js +22 -4
- package/lib/mixins/nameInput.js +52 -0
- package/lib/utilities/path.js +19 -0
- package/lib/utilities/pathMap.js +7 -8
- package/package.json +1 -1
- package/src/button/name.js +6 -2
- package/src/button/svg.js +10 -0
- package/src/constants.js +2 -0
- package/src/div/item/entry/directoryName.js +4 -10
- package/src/div/item/entry/fileName.js +4 -10
- package/src/eventTypes.js +7 -1
- package/src/example/view/button.js +14 -0
- package/src/example/view/explorer/first.js +2 -1
- package/src/example/view.js +44 -11
- package/src/explorer.js +89 -5
- package/src/input/name.js +27 -20
- package/src/item/entry/drag/directoryName.js +0 -9
- package/src/item/entry/drag/fileName.js +0 -9
- package/src/item/entry/drag.js +82 -32
- package/src/list/entries.js +17 -16
- package/src/mixins/explorer.js +38 -8
- package/src/mixins/nameInput.js +66 -0
- package/src/utilities/path.js +16 -0
- package/src/utilities/pathMap.js +10 -15
- package/lib/example/view/button/editSelected.js +0 -157
- package/src/example/view/button/editSelected.js +0 -23
|
@@ -1,157 +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 border: 1px solid black;\n cursor: pointer;\n padding: 1rem;\n \n"
|
|
129
|
-
]);
|
|
130
|
-
_templateObject = function _templateObject() {
|
|
131
|
-
return data;
|
|
132
|
-
};
|
|
133
|
-
return data;
|
|
134
|
-
}
|
|
135
|
-
var EditSelectedButton = /*#__PURE__*/ function(Button) {
|
|
136
|
-
_inherits(EditSelectedButton, Button);
|
|
137
|
-
var _super = _createSuper(EditSelectedButton);
|
|
138
|
-
function EditSelectedButton() {
|
|
139
|
-
_classCallCheck(this, EditSelectedButton);
|
|
140
|
-
return _super.apply(this, arguments);
|
|
141
|
-
}
|
|
142
|
-
_createClass(EditSelectedButton, [
|
|
143
|
-
{
|
|
144
|
-
key: "childElements",
|
|
145
|
-
value: function childElements() {
|
|
146
|
-
return "Edit selected";
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
]);
|
|
150
|
-
return EditSelectedButton;
|
|
151
|
-
}(_easy.Button);
|
|
152
|
-
_defineProperty(EditSelectedButton, "defaultProperties", {
|
|
153
|
-
className: "edit-selected"
|
|
154
|
-
});
|
|
155
|
-
var _default = (0, _easyWithStyle.default)(EditSelectedButton)(_templateObject());
|
|
156
|
-
|
|
157
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9leGFtcGxlL3ZpZXcvYnV0dG9uL2VkaXRTZWxlY3RlZC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IHdpdGhTdHlsZSBmcm9tIFwiZWFzeS13aXRoLXN0eWxlXCI7ICAvLy9cblxuaW1wb3J0IHsgQnV0dG9uIH0gZnJvbSBcImVhc3lcIjtcblxuY2xhc3MgRWRpdFNlbGVjdGVkQnV0dG9uIGV4dGVuZHMgQnV0dG9uIHtcbiAgY2hpbGRFbGVtZW50cygpIHtcbiAgICByZXR1cm4gXCJFZGl0IHNlbGVjdGVkXCI7XG4gIH1cblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZXMgPSB7XG4gICAgY2xhc3NOYW1lOiBcImVkaXQtc2VsZWN0ZWRcIlxuICB9O1xufVxuXG5leHBvcnQgZGVmYXVsdCB3aXRoU3R5bGUoRWRpdFNlbGVjdGVkQnV0dG9uKWBcblxuICBib3JkZXI6IDFweCBzb2xpZCBibGFjaztcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBwYWRkaW5nOiAxcmVtO1xuICBcbmA7XG4iXSwibmFtZXMiOlsiRWRpdFNlbGVjdGVkQnV0dG9uIiwiY2hpbGRFbGVtZW50cyIsIkJ1dHRvbiIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIiwid2l0aFN0eWxlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFnQkE7OztlQUFBOzs7a0VBZHNCO29CQUVDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFdkIsSUFBQSxBQUFNQSxtQ0FVSCxBQVZIO2NBQU1BOzhCQUFBQTthQUFBQTs4QkFBQUE7OztpQkFBQUE7O1lBQ0pDLEtBQUFBO21CQUFBQSxTQUFBQSxnQkFBZ0I7Z0JBQ2QsT0FBTztZQUNUOzs7V0FISUQ7RUFBMkJFLFlBQU07QUFLckMsZ0JBTElGLG9CQUtHRyxxQkFBb0I7SUFDekJDLFdBQVc7QUFDYjtJQUdGLFdBQWVDLElBQUFBLHNCQUFTLEVBQUNMIn0=
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import withStyle from "easy-with-style"; ///
|
|
4
|
-
|
|
5
|
-
import { Button } from "easy";
|
|
6
|
-
|
|
7
|
-
class EditSelectedButton extends Button {
|
|
8
|
-
childElements() {
|
|
9
|
-
return "Edit selected";
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
static defaultProperties = {
|
|
13
|
-
className: "edit-selected"
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default withStyle(EditSelectedButton)`
|
|
18
|
-
|
|
19
|
-
border: 1px solid black;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
padding: 1rem;
|
|
22
|
-
|
|
23
|
-
`;
|