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,129 +8,32 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return DirectoryNameMarkerEntryItem;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function _assert_this_initialized(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 _call_super(_this, derived, args) {
|
|
20
|
-
derived = _get_prototype_of(derived);
|
|
21
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _define_property(obj, key, value) {
|
|
43
|
-
if (key in obj) {
|
|
44
|
-
Object.defineProperty(obj, key, {
|
|
45
|
-
value: value,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
obj[key] = value;
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
function _get_prototype_of(o) {
|
|
56
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
57
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
58
|
-
};
|
|
59
|
-
return _get_prototype_of(o);
|
|
60
|
-
}
|
|
61
|
-
function _inherits(subClass, superClass) {
|
|
62
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
63
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
64
|
-
}
|
|
65
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
66
|
-
constructor: {
|
|
67
|
-
value: subClass,
|
|
68
|
-
writable: true,
|
|
69
|
-
configurable: true
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
73
|
-
}
|
|
11
|
+
const _marker = /*#__PURE__*/ _interop_require_default(require("../../../item/entry/marker"));
|
|
12
|
+
const _entryTypes = require("../../../entryTypes");
|
|
74
13
|
function _interop_require_default(obj) {
|
|
75
14
|
return obj && obj.__esModule ? obj : {
|
|
76
15
|
default: obj
|
|
77
16
|
};
|
|
78
17
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
18
|
+
class DirectoryNameMarkerEntryItem extends _marker.default {
|
|
19
|
+
isBefore(dragEntryItem) {
|
|
20
|
+
let before;
|
|
21
|
+
const dragEntryItemType = dragEntryItem.getType();
|
|
22
|
+
switch(dragEntryItemType){
|
|
23
|
+
case _entryTypes.FILE_NAME_DRAG_ENTRY_TYPE:
|
|
24
|
+
before = true;
|
|
25
|
+
break;
|
|
26
|
+
case _entryTypes.DIRECTORY_NAME_DRAG_ENTRY_TYPE:
|
|
27
|
+
const name = this.getName(), dragEntryItemName = dragEntryItem.getName();
|
|
28
|
+
before = name.localeCompare(dragEntryItemName) < 0;
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
return before;
|
|
82
32
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
87
|
-
o.__proto__ = p;
|
|
88
|
-
return o;
|
|
33
|
+
static type = _entryTypes.DIRECTORY_NAME_MARKER_ENTRY_TYPE;
|
|
34
|
+
static defaultProperties = {
|
|
35
|
+
className: "directory-name"
|
|
89
36
|
};
|
|
90
|
-
return _set_prototype_of(o, p);
|
|
91
37
|
}
|
|
92
|
-
function _type_of(obj) {
|
|
93
|
-
"@swc/helpers - typeof";
|
|
94
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
95
|
-
}
|
|
96
|
-
function _is_native_reflect_construct() {
|
|
97
|
-
try {
|
|
98
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
99
|
-
} catch (_) {}
|
|
100
|
-
return (_is_native_reflect_construct = function() {
|
|
101
|
-
return !!result;
|
|
102
|
-
})();
|
|
103
|
-
}
|
|
104
|
-
var DirectoryNameMarkerEntryItem = /*#__PURE__*/ function(MarkerEntryItem) {
|
|
105
|
-
_inherits(DirectoryNameMarkerEntryItem, MarkerEntryItem);
|
|
106
|
-
function DirectoryNameMarkerEntryItem() {
|
|
107
|
-
_class_call_check(this, DirectoryNameMarkerEntryItem);
|
|
108
|
-
return _call_super(this, DirectoryNameMarkerEntryItem, arguments);
|
|
109
|
-
}
|
|
110
|
-
_create_class(DirectoryNameMarkerEntryItem, [
|
|
111
|
-
{
|
|
112
|
-
key: "isBefore",
|
|
113
|
-
value: function isBefore(dragEntryItem) {
|
|
114
|
-
var before;
|
|
115
|
-
var dragEntryItemType = dragEntryItem.getType();
|
|
116
|
-
switch(dragEntryItemType){
|
|
117
|
-
case _entryTypes.FILE_NAME_DRAG_ENTRY_TYPE:
|
|
118
|
-
before = true;
|
|
119
|
-
break;
|
|
120
|
-
case _entryTypes.DIRECTORY_NAME_DRAG_ENTRY_TYPE:
|
|
121
|
-
var name = this.getName(), dragEntryItemName = dragEntryItem.getName();
|
|
122
|
-
before = name.localeCompare(dragEntryItemName) < 0;
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
return before;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
]);
|
|
129
|
-
return DirectoryNameMarkerEntryItem;
|
|
130
|
-
}(_marker.default);
|
|
131
|
-
_define_property(DirectoryNameMarkerEntryItem, "type", _entryTypes.DIRECTORY_NAME_MARKER_ENTRY_TYPE);
|
|
132
|
-
_define_property(DirectoryNameMarkerEntryItem, "defaultProperties", {
|
|
133
|
-
className: "directory-name"
|
|
134
|
-
});
|
|
135
38
|
|
|
136
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pdGVtL2VudHJ5L21hcmtlci9kaXJlY3RvcnlOYW1lLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgTWFya2VyRW50cnlJdGVtIGZyb20gXCIuLi8uLi8uLi9pdGVtL2VudHJ5L21hcmtlclwiO1xuXG5pbXBvcnQgeyBGSUxFX05BTUVfRFJBR19FTlRSWV9UWVBFLCBESVJFQ1RPUllfTkFNRV9EUkFHX0VOVFJZX1RZUEUsIERJUkVDVE9SWV9OQU1FX01BUktFUl9FTlRSWV9UWVBFIH0gZnJvbSBcIi4uLy4uLy4uL2VudHJ5VHlwZXNcIjtcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgRGlyZWN0b3J5TmFtZU1hcmtlckVudHJ5SXRlbSBleHRlbmRzIE1hcmtlckVudHJ5SXRlbSB7XG4gIGlzQ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LCJkcmFnRW50cnlJdGVtTmFtZSIsImxvY2FsZUNvbXBhcmUiLCJ0eXBlIiwiRElSRUNUT1JZX05BTUVfTUFSS0VSX0VOVFJZX1RZUEUiLCJkZWZhdWx0UHJvcGVydGllcyIsImNsYXNzTmFtZSJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBTUE7OztlQUFxQkE7OzsrREFKTzs0QkFFZ0Y7Ozs7OztBQUU3RixNQUFNQSxxQ0FBcUNDLGVBQWU7SUFDdkVDLFNBQVNDLGFBQWEsRUFBRTtRQUN0QixJQUFJQztRQUVKLE1BQU1DLG9CQUFvQkYsY0FBY0csT0FBTztRQUUvQyxPQUFRRDtZQUNOLEtBQUtFLHFDQUF5QjtnQkFDNUJILFNBQVM7Z0JBRVQ7WUFFRixLQUFLSSwwQ0FBOEI7Z0JBQ2pDLE1BQU1DLE9BQU8sSUFBSSxDQUFDQyxPQUFPLElBQ25CQyxvQkFBb0JSLGNBQWNPLE9BQU87Z0JBRS9DTixTQUFVSyxLQUFLRyxhQUFhLENBQUNELHFCQUFxQjtnQkFFbEQ7UUFDSjtRQUVBLE9BQU9QO0lBQ1Q7SUFFQSxPQUFPUyxPQUFPQyw0Q0FBZ0MsQ0FBQztJQUUvQyxPQUFPQyxvQkFBb0I7UUFDekJDLFdBQVc7SUFDYixFQUFFO0FBQ0oifQ==
|
|
@@ -8,130 +8,33 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return FileNameMarkerEntryItem;
|
|
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 _defineProperties(target, props) {
|
|
30
|
-
for(var i = 0; i < props.length; i++){
|
|
31
|
-
var descriptor = props[i];
|
|
32
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33
|
-
descriptor.configurable = true;
|
|
34
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
35
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
39
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
40
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
41
|
-
return Constructor;
|
|
42
|
-
}
|
|
43
|
-
function _define_property(obj, key, value) {
|
|
44
|
-
if (key in obj) {
|
|
45
|
-
Object.defineProperty(obj, key, {
|
|
46
|
-
value: value,
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true
|
|
50
|
-
});
|
|
51
|
-
} else {
|
|
52
|
-
obj[key] = value;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
function _get_prototype_of(o) {
|
|
57
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
58
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
59
|
-
};
|
|
60
|
-
return _get_prototype_of(o);
|
|
61
|
-
}
|
|
62
|
-
function _inherits(subClass, superClass) {
|
|
63
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
64
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
65
|
-
}
|
|
66
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
67
|
-
constructor: {
|
|
68
|
-
value: subClass,
|
|
69
|
-
writable: true,
|
|
70
|
-
configurable: true
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
74
|
-
}
|
|
11
|
+
const _marker = /*#__PURE__*/ _interop_require_default(require("../../../item/entry/marker"));
|
|
12
|
+
const _name = require("../../../utilities/name");
|
|
13
|
+
const _entryTypes = require("../../../entryTypes");
|
|
75
14
|
function _interop_require_default(obj) {
|
|
76
15
|
return obj && obj.__esModule ? obj : {
|
|
77
16
|
default: obj
|
|
78
17
|
};
|
|
79
18
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
19
|
+
class FileNameMarkerEntryItem extends _marker.default {
|
|
20
|
+
isBefore(dragEntryItem) {
|
|
21
|
+
let before;
|
|
22
|
+
const dragEntryItemType = dragEntryItem.getType();
|
|
23
|
+
switch(dragEntryItemType){
|
|
24
|
+
case _entryTypes.FILE_NAME_DRAG_ENTRY_TYPE:
|
|
25
|
+
const name = this.getName(), dragEntryItemName = dragEntryItem.getName();
|
|
26
|
+
before = (0, _name.nameIsBeforeEntryItemName)(name, dragEntryItemName);
|
|
27
|
+
break;
|
|
28
|
+
case _entryTypes.DIRECTORY_NAME_DRAG_ENTRY_TYPE:
|
|
29
|
+
before = false;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
return before;
|
|
83
33
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
88
|
-
o.__proto__ = p;
|
|
89
|
-
return o;
|
|
34
|
+
static type = _entryTypes.FILE_NAME_MARKER_ENTRY_TYPE;
|
|
35
|
+
static defaultProperties = {
|
|
36
|
+
className: "file-name"
|
|
90
37
|
};
|
|
91
|
-
return _set_prototype_of(o, p);
|
|
92
38
|
}
|
|
93
|
-
function _type_of(obj) {
|
|
94
|
-
"@swc/helpers - typeof";
|
|
95
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
96
|
-
}
|
|
97
|
-
function _is_native_reflect_construct() {
|
|
98
|
-
try {
|
|
99
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
100
|
-
} catch (_) {}
|
|
101
|
-
return (_is_native_reflect_construct = function() {
|
|
102
|
-
return !!result;
|
|
103
|
-
})();
|
|
104
|
-
}
|
|
105
|
-
var FileNameMarkerEntryItem = /*#__PURE__*/ function(MarkerEntryItem) {
|
|
106
|
-
_inherits(FileNameMarkerEntryItem, MarkerEntryItem);
|
|
107
|
-
function FileNameMarkerEntryItem() {
|
|
108
|
-
_class_call_check(this, FileNameMarkerEntryItem);
|
|
109
|
-
return _call_super(this, FileNameMarkerEntryItem, arguments);
|
|
110
|
-
}
|
|
111
|
-
_create_class(FileNameMarkerEntryItem, [
|
|
112
|
-
{
|
|
113
|
-
key: "isBefore",
|
|
114
|
-
value: function isBefore(dragEntryItem) {
|
|
115
|
-
var before;
|
|
116
|
-
var dragEntryItemType = dragEntryItem.getType();
|
|
117
|
-
switch(dragEntryItemType){
|
|
118
|
-
case _entryTypes.FILE_NAME_DRAG_ENTRY_TYPE:
|
|
119
|
-
var name = this.getName(), dragEntryItemName = dragEntryItem.getName();
|
|
120
|
-
before = (0, _name.nameIsBeforeEntryItemName)(name, dragEntryItemName);
|
|
121
|
-
break;
|
|
122
|
-
case _entryTypes.DIRECTORY_NAME_DRAG_ENTRY_TYPE:
|
|
123
|
-
before = false;
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
return before;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
]);
|
|
130
|
-
return FileNameMarkerEntryItem;
|
|
131
|
-
}(_marker.default);
|
|
132
|
-
_define_property(FileNameMarkerEntryItem, "type", _entryTypes.FILE_NAME_MARKER_ENTRY_TYPE);
|
|
133
|
-
_define_property(FileNameMarkerEntryItem, "defaultProperties", {
|
|
134
|
-
className: "file-name"
|
|
135
|
-
});
|
|
136
39
|
|
|
137
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pdGVtL2VudHJ5L21hcmtlci9maWxlTmFtZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IE1hcmtlckVudHJ5SXRlbSBmcm9tIFwiLi4vLi4vLi4vaXRlbS9lbnRyeS9tYXJrZXJcIjtcblxuaW1wb3J0IHsgbmFtZUlzQmVmb3JlRW50cnlJdGVtTmFtZSB9IGZyb20gXCIuLi8uLi8uLi91dGlsaXRpZXMvbmFtZVwiO1xuaW1wb3J0IHsgRklMRV9OQU1FX0RSQUdfRU5UUllfVFlQRSwgRklMRV9OQU1FX01BUktFUl9FTlRSWV9UWVBFLCBESVJFQ1RPUllfTkFNRV9EUkFHX0VOVFJZX1RZUEUgfSBmcm9tIFwiLi4vLi4vLi4vZW50cnlUeXBlc1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBGaWxlTmFtZU1hcmtlckVudHJ5SXRlbSBleHRlbmRzIE1hcmtlckVudHJ5SXRlbSB7XG4gIGlzQmVmb3JlKGRyYWdFbnRyeUl0ZW0pIHtcbiAgICBsZXQgYmVmb3JlO1xuXG4gICAgY29uc3QgZHJhZ0VudHJ5SXRlbVR5cGUgPSBkcmFnRW50cnlJdGVtLmdldFR5cGUoKTtcblxuICAgIHN3aXRjaCAoZHJhZ0VudHJ5SXRlbVR5cGUpIHtcbiAgICAgIGNhc2UgRklMRV9OQU1FX0RSQUdfRU5UUllfVFlQRTpcbiAgICAgICAgY29uc3QgbmFtZSA9IHRoaXMuZ2V0TmFtZSgpLFxuICAgICAgICAgICAgICBkcmFnRW50cnlJdG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RUFBRTtRQUN0QixJQUFJQztRQUVKLE1BQU1DLG9CQUFvQkYsY0FBY0csT0FBTztRQUUvQyxPQUFRRDtZQUNOLEtBQUtFLHFDQUF5QjtnQkFDNUIsTUFBTUMsT0FBTyxJQUFJLENBQUNDLE9BQU8sSUFDbkJDLG9CQUFvQlAsY0FBY00sT0FBTztnQkFFL0NMLFNBQVNPLElBQUFBLCtCQUF5QixFQUFDSCxNQUFNRTtnQkFFekM7WUFFRixLQUFLRSwwQ0FBOEI7Z0JBQ2pDUixTQUFTO2dCQUVUO1FBQ0o7UUFFQSxPQUFPQTtJQUNUO0lBRUEsT0FBT1MsT0FBT0MsdUNBQTJCLENBQUM7SUFFMUMsT0FBT0Msb0JBQW9CO1FBQ3pCQyxXQUFXO0lBQ2IsRUFBRTtBQUNKIn0=
|
package/lib/item/entry/marker.js
CHANGED
|
@@ -8,122 +8,25 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return MarkerEntryItem;
|
|
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 _defineProperties(target, props) {
|
|
30
|
-
for(var i = 0; i < props.length; i++){
|
|
31
|
-
var descriptor = props[i];
|
|
32
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33
|
-
descriptor.configurable = true;
|
|
34
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
35
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
39
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
40
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
41
|
-
return Constructor;
|
|
42
|
-
}
|
|
43
|
-
function _define_property(obj, key, value) {
|
|
44
|
-
if (key in obj) {
|
|
45
|
-
Object.defineProperty(obj, key, {
|
|
46
|
-
value: value,
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true
|
|
50
|
-
});
|
|
51
|
-
} else {
|
|
52
|
-
obj[key] = value;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
function _get_prototype_of(o) {
|
|
57
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
58
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
59
|
-
};
|
|
60
|
-
return _get_prototype_of(o);
|
|
61
|
-
}
|
|
62
|
-
function _inherits(subClass, superClass) {
|
|
63
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
64
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
65
|
-
}
|
|
66
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
67
|
-
constructor: {
|
|
68
|
-
value: subClass,
|
|
69
|
-
writable: true,
|
|
70
|
-
configurable: true
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
74
|
-
}
|
|
11
|
+
const _entry = /*#__PURE__*/ _interop_require_default(require("../../item/entry"));
|
|
12
|
+
const _marker = /*#__PURE__*/ _interop_require_default(require("../../svg/marker"));
|
|
13
|
+
const _marker1 = /*#__PURE__*/ _interop_require_default(require("../../div/item/entry/marker"));
|
|
75
14
|
function _interop_require_default(obj) {
|
|
76
15
|
return obj && obj.__esModule ? obj : {
|
|
77
16
|
default: obj
|
|
78
17
|
};
|
|
79
18
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
19
|
+
class MarkerEntryItem extends _entry.default {
|
|
20
|
+
childElements() {
|
|
21
|
+
const { MarkerSVG } = this.constructor;
|
|
22
|
+
return /*#__PURE__*/ React.createElement(_marker1.default, {
|
|
23
|
+
MarkerSVG: MarkerSVG
|
|
24
|
+
});
|
|
83
25
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
88
|
-
o.__proto__ = p;
|
|
89
|
-
return o;
|
|
26
|
+
static MarkerSVG = _marker.default;
|
|
27
|
+
static defaultProperties = {
|
|
28
|
+
className: "marker"
|
|
90
29
|
};
|
|
91
|
-
return _set_prototype_of(o, p);
|
|
92
|
-
}
|
|
93
|
-
function _type_of(obj) {
|
|
94
|
-
"@swc/helpers - typeof";
|
|
95
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
96
|
-
}
|
|
97
|
-
function _is_native_reflect_construct() {
|
|
98
|
-
try {
|
|
99
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
100
|
-
} catch (_) {}
|
|
101
|
-
return (_is_native_reflect_construct = function() {
|
|
102
|
-
return !!result;
|
|
103
|
-
})();
|
|
104
30
|
}
|
|
105
|
-
var MarkerEntryItem = /*#__PURE__*/ function(EntryItem) {
|
|
106
|
-
_inherits(MarkerEntryItem, EntryItem);
|
|
107
|
-
function MarkerEntryItem() {
|
|
108
|
-
_class_call_check(this, MarkerEntryItem);
|
|
109
|
-
return _call_super(this, MarkerEntryItem, arguments);
|
|
110
|
-
}
|
|
111
|
-
_create_class(MarkerEntryItem, [
|
|
112
|
-
{
|
|
113
|
-
key: "childElements",
|
|
114
|
-
value: function childElements() {
|
|
115
|
-
var _$MarkerSVG = this.constructor.MarkerSVG;
|
|
116
|
-
return /*#__PURE__*/ React.createElement(_marker1.default, {
|
|
117
|
-
MarkerSVG: _$MarkerSVG
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
]);
|
|
122
|
-
return MarkerEntryItem;
|
|
123
|
-
}(_entry.default);
|
|
124
|
-
_define_property(MarkerEntryItem, "MarkerSVG", _marker.default);
|
|
125
|
-
_define_property(MarkerEntryItem, "defaultProperties", {
|
|
126
|
-
className: "marker"
|
|
127
|
-
});
|
|
128
31
|
|
|
129
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pdGVtL2VudHJ5L21hcmtlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEVudHJ5SXRlbSBmcm9tIFwiLi4vLi4vaXRlbS9lbnRyeVwiO1xuaW1wb3J0IE1hcmtlclNWRyBmcm9tIFwiLi4vLi4vc3ZnL21hcmtlclwiO1xuaW1wb3J0IE1hcmtlckVudHJ5SXRlbURpdiBmcm9tIFwiLi4vLi4vZGl2L2l0ZW0vZW50cnkvbWFya2VyXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIE1hcmtlckVudHJ5SXRlbSBleHRlbmRzIEVudHJ5SXRlbSB7XG4gIGNoaWxkRWxlbWVudHMoKSB7XG4gICAgY29uc3QgeyBNYXJrZXJTVkcgfSA9IHRoaXMuY29uc3RydWN0b3I7XG5cbiAgICByZXR1cm4gKFxuXG4gICAgICA8TWFya2VyRW50cnlJdGVtRGl2IE1hcmtlclNWRz17TWFya2VyU1ZHfSAvPlxuXG4gICAgKTtcbiAgfVxuXG4gIHN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