easy 15.0.0 → 15.0.2
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 +500 -605
- package/lib/bounds.js +5 -5
- package/lib/document.js +14 -14
- package/lib/element/body.js +38 -49
- package/lib/element/button.js +38 -49
- package/lib/element/checkbox.js +42 -53
- package/lib/element/link.js +40 -51
- package/lib/element/select.js +41 -52
- package/lib/element.js +35 -35
- package/lib/example/checkbox.js +25 -25
- package/lib/example/view.js +48 -59
- package/lib/example.js +3 -3
- package/lib/index.js +19 -19
- package/lib/inputElement/input.js +27 -27
- package/lib/inputElement/textarea.js +27 -27
- package/lib/inputElement.js +39 -50
- package/lib/mixins/change.js +1 -1
- package/lib/mixins/click.js +1 -1
- package/lib/mixins/element.js +1 -1
- package/lib/mixins/event.js +1 -1
- package/lib/mixins/jsx.js +8 -8
- package/lib/mixins/key.js +1 -1
- package/lib/mixins/mouse.js +1 -1
- package/lib/mixins/resize.js +1 -1
- package/lib/mixins/scroll.js +1 -1
- package/lib/mixins/selection.js +1 -1
- package/lib/mixins/state.js +1 -1
- package/lib/offset.js +5 -5
- package/lib/react.js +7 -7
- package/lib/textElement.js +9 -9
- package/lib/utilities/array.js +12 -12
- package/lib/utilities/dom.js +1 -1
- package/lib/utilities/elements.js +6 -6
- package/lib/utilities/name.js +1 -1
- package/lib/utilities/object.js +9 -9
- package/lib/window.js +25 -25
- package/package.json +2 -2
package/lib/element/checkbox.js
CHANGED
|
@@ -8,42 +8,31 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _element = /*#__PURE__*/
|
|
12
|
-
var _change = /*#__PURE__*/
|
|
13
|
-
function
|
|
11
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
|
|
12
|
+
var _change = /*#__PURE__*/ _interop_require_default(require("../mixins/change"));
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
14
|
if (self === void 0) {
|
|
15
15
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
16
|
}
|
|
17
17
|
return self;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
20
|
if (!(instance instanceof Constructor)) {
|
|
21
21
|
throw new TypeError("Cannot call a class as a function");
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function isNativeReflectConstruct() {
|
|
25
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
26
|
-
if (Reflect.construct.sham) return false;
|
|
27
|
-
if (typeof Proxy === "function") return true;
|
|
28
|
-
try {
|
|
29
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
30
|
-
return true;
|
|
31
|
-
} catch (e) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
24
|
function _construct(Parent, args, Class) {
|
|
36
|
-
if (
|
|
25
|
+
if (_is_native_reflect_construct()) {
|
|
37
26
|
_construct = Reflect.construct;
|
|
38
27
|
} else {
|
|
39
|
-
_construct = function
|
|
28
|
+
_construct = function construct(Parent, args, Class) {
|
|
40
29
|
var a = [
|
|
41
30
|
null
|
|
42
31
|
];
|
|
43
32
|
a.push.apply(a, args);
|
|
44
33
|
var Constructor = Function.bind.apply(Parent, a);
|
|
45
34
|
var instance = new Constructor();
|
|
46
|
-
if (Class)
|
|
35
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
47
36
|
return instance;
|
|
48
37
|
};
|
|
49
38
|
}
|
|
@@ -58,12 +47,12 @@ function _defineProperties(target, props) {
|
|
|
58
47
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59
48
|
}
|
|
60
49
|
}
|
|
61
|
-
function
|
|
50
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
62
51
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
63
52
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
64
53
|
return Constructor;
|
|
65
54
|
}
|
|
66
|
-
function
|
|
55
|
+
function _define_property(obj, key, value) {
|
|
67
56
|
if (key in obj) {
|
|
68
57
|
Object.defineProperty(obj, key, {
|
|
69
58
|
value: value,
|
|
@@ -76,11 +65,11 @@ function _defineProperty(obj, key, value) {
|
|
|
76
65
|
}
|
|
77
66
|
return obj;
|
|
78
67
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
68
|
+
function _get_prototype_of(o) {
|
|
69
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
81
70
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
82
71
|
};
|
|
83
|
-
return
|
|
72
|
+
return _get_prototype_of(o);
|
|
84
73
|
}
|
|
85
74
|
function _inherits(subClass, superClass) {
|
|
86
75
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -93,37 +82,37 @@ function _inherits(subClass, superClass) {
|
|
|
93
82
|
configurable: true
|
|
94
83
|
}
|
|
95
84
|
});
|
|
96
|
-
if (superClass)
|
|
85
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
97
86
|
}
|
|
98
|
-
function
|
|
87
|
+
function _interop_require_default(obj) {
|
|
99
88
|
return obj && obj.__esModule ? obj : {
|
|
100
89
|
default: obj
|
|
101
90
|
};
|
|
102
91
|
}
|
|
103
|
-
function
|
|
92
|
+
function _is_native_function(fn) {
|
|
104
93
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
105
94
|
}
|
|
106
|
-
function
|
|
107
|
-
if (call && (
|
|
95
|
+
function _possible_constructor_return(self, call) {
|
|
96
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
108
97
|
return call;
|
|
109
98
|
}
|
|
110
|
-
return
|
|
99
|
+
return _assert_this_initialized(self);
|
|
111
100
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
101
|
+
function _set_prototype_of(o, p) {
|
|
102
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
114
103
|
o.__proto__ = p;
|
|
115
104
|
return o;
|
|
116
105
|
};
|
|
117
|
-
return
|
|
106
|
+
return _set_prototype_of(o, p);
|
|
118
107
|
}
|
|
119
|
-
|
|
108
|
+
function _type_of(obj) {
|
|
120
109
|
"@swc/helpers - typeof";
|
|
121
110
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
122
|
-
}
|
|
123
|
-
function
|
|
111
|
+
}
|
|
112
|
+
function _wrap_native_super(Class) {
|
|
124
113
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
125
|
-
|
|
126
|
-
if (Class === null || !
|
|
114
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
115
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
127
116
|
if (typeof Class !== "function") {
|
|
128
117
|
throw new TypeError("Super expression must either be null or a function");
|
|
129
118
|
}
|
|
@@ -132,7 +121,7 @@ function _wrapNativeSuper(Class) {
|
|
|
132
121
|
_cache.set(Class, Wrapper);
|
|
133
122
|
}
|
|
134
123
|
function Wrapper() {
|
|
135
|
-
return _construct(Class, arguments,
|
|
124
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
136
125
|
}
|
|
137
126
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
138
127
|
constructor: {
|
|
@@ -142,11 +131,11 @@ function _wrapNativeSuper(Class) {
|
|
|
142
131
|
configurable: true
|
|
143
132
|
}
|
|
144
133
|
});
|
|
145
|
-
return
|
|
134
|
+
return _set_prototype_of(Wrapper, Class);
|
|
146
135
|
};
|
|
147
|
-
return
|
|
136
|
+
return _wrap_native_super(Class);
|
|
148
137
|
}
|
|
149
|
-
function
|
|
138
|
+
function _is_native_reflect_construct() {
|
|
150
139
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
151
140
|
if (Reflect.construct.sham) return false;
|
|
152
141
|
if (typeof Proxy === "function") return true;
|
|
@@ -157,27 +146,27 @@ function _isNativeReflectConstruct() {
|
|
|
157
146
|
return false;
|
|
158
147
|
}
|
|
159
148
|
}
|
|
160
|
-
function
|
|
161
|
-
var hasNativeReflectConstruct =
|
|
149
|
+
function _create_super(Derived) {
|
|
150
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
162
151
|
return function _createSuperInternal() {
|
|
163
|
-
var Super =
|
|
152
|
+
var Super = _get_prototype_of(Derived), result;
|
|
164
153
|
if (hasNativeReflectConstruct) {
|
|
165
|
-
var NewTarget =
|
|
154
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
166
155
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
167
156
|
} else {
|
|
168
157
|
result = Super.apply(this, arguments);
|
|
169
158
|
}
|
|
170
|
-
return
|
|
159
|
+
return _possible_constructor_return(this, result);
|
|
171
160
|
};
|
|
172
161
|
}
|
|
173
162
|
var Checkbox = /*#__PURE__*/ function(Element) {
|
|
174
163
|
_inherits(Checkbox, Element);
|
|
175
|
-
var _super =
|
|
164
|
+
var _super = _create_super(Checkbox);
|
|
176
165
|
function Checkbox() {
|
|
177
|
-
|
|
166
|
+
_class_call_check(this, Checkbox);
|
|
178
167
|
return _super.apply(this, arguments);
|
|
179
168
|
}
|
|
180
|
-
|
|
169
|
+
_create_class(Checkbox, [
|
|
181
170
|
{
|
|
182
171
|
key: "isChecked",
|
|
183
172
|
value: function isChecked() {
|
|
@@ -193,12 +182,12 @@ var Checkbox = /*#__PURE__*/ function(Element) {
|
|
|
193
182
|
}
|
|
194
183
|
]);
|
|
195
184
|
return Checkbox;
|
|
196
|
-
}(
|
|
197
|
-
|
|
198
|
-
|
|
185
|
+
}(_wrap_native_super(_element.default));
|
|
186
|
+
_define_property(Checkbox, "tagName", "input");
|
|
187
|
+
_define_property(Checkbox, "defaultProperties", {
|
|
199
188
|
type: "checkbox"
|
|
200
189
|
});
|
|
201
190
|
Object.assign(Checkbox.prototype, _change.default);
|
|
202
191
|
var _default = Checkbox;
|
|
203
192
|
|
|
204
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
193
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2NoZWNrYm94LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgRWxlbWVudCBmcm9tIFwiLi4vZWxlbWVudFwiO1xuaW1wb3J0IGNoYW5nZU1peGlucyBmcm9tIFwiLi4vbWl4aW5zL2NoYW5nZVwiO1xuXG5jbGFzcyBDaGVja2JveCBleHRlbmRzIEVsZW1lbnQge1xuICBpc0NoZWNrZWQoKSB7IHJldHVybiB0aGlzLmRvbUVsZW1lbnQuY2hlY2tlZDsgfVxuXG4gIGNoZWNrKGNoZWNrZWQgPSB0cnVlKSB7IHRoaXMuZG9tRWxlbWVudC5jaGVja2VkID0gY2hlY2tlZDsgfVxuXG4gIHN0YXRpYyB0YWdOYW1lID0gXCJpbnB1dFwiO1xuXG4gIHN0YXRpYyBkZWZhdWx0UHJvcGVydGllcyA9IHtcbiAgICB0eXBlOiBcImNoZWNrYm94XCJcbiAgfTtcbn1cblxuT2JqZWN0LmFzc2lnbihDaGVja2JveC5wcm90b3R5cGUsIGNoYW5nZU1peGlucyk7XG5cbmV4cG9ydCBkZWZhdWx0IENoZWNrYm94O1xuIl0sIm5hbWVzIjpbIkNoZWNrYm94IiwiaXNDaGVja2VkIiwiZG9tRWxlbWVudCIsImNoZWNrZWQiLCJjaGVjayIsIkVsZW1lbnQiLCJ0YWdOYW1lIiwiZGVmYXVsdFByb3BlcnRpZXMiLCJ0eXBlIiwiT2JqZWN0IiwiYXNzaWduIiwicHJvdG90eXBlIiwiY2hhbmdlTWl4aW5zIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFtQkE7OztlQUFBOzs7OERBakJvQjs2REFDSzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRXpCLElBQUEsQUFBTUEseUJBWUgsQUFaSDtjQUFNQTsrQkFBQUE7YUFBQUE7Z0NBQUFBOzs7a0JBQUFBOztZQUNKQyxLQUFBQTttQkFBQUEsU0FBQUE7Z0JBQWMsT0FBTyxJQUFJLENBQUNDLFVBQVUsQ0FBQ0MsT0FBTztZQUFFOzs7WUFFOUNDLEtBQUFBO21CQUFBQSxTQUFBQTtvQkFBTUQsVUFBQUEsaUVBQVU7Z0JBQVEsSUFBSSxDQUFDRCxVQUFVLENBQUNDLE9BQU8sR0FBR0E7WUFBUzs7O1dBSHZESDtxQkFBaUJLLGdCQUFPO0FBSzVCLGlCQUxJTCxVQUtHTSxXQUFVO0FBRWpCLGlCQVBJTixVQU9HTyxxQkFBb0I7SUFDekJDLE1BQU07QUFDUjtBQUdGQyxPQUFPQyxNQUFNLENBQUNWLFNBQVNXLFNBQVMsRUFBRUMsZUFBWTtJQUU5QyxXQUFlWiJ9
|
package/lib/element/link.js
CHANGED
|
@@ -8,41 +8,30 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return Link;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _element = /*#__PURE__*/
|
|
12
|
-
function
|
|
11
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
|
|
12
|
+
function _assert_this_initialized(self) {
|
|
13
13
|
if (self === void 0) {
|
|
14
14
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
15
|
}
|
|
16
16
|
return self;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _class_call_check(instance, Constructor) {
|
|
19
19
|
if (!(instance instanceof Constructor)) {
|
|
20
20
|
throw new TypeError("Cannot call a class as a function");
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
function isNativeReflectConstruct() {
|
|
24
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
25
|
-
if (Reflect.construct.sham) return false;
|
|
26
|
-
if (typeof Proxy === "function") return true;
|
|
27
|
-
try {
|
|
28
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
29
|
-
return true;
|
|
30
|
-
} catch (e) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
23
|
function _construct(Parent, args, Class) {
|
|
35
|
-
if (
|
|
24
|
+
if (_is_native_reflect_construct()) {
|
|
36
25
|
_construct = Reflect.construct;
|
|
37
26
|
} else {
|
|
38
|
-
_construct = function
|
|
27
|
+
_construct = function construct(Parent, args, Class) {
|
|
39
28
|
var a = [
|
|
40
29
|
null
|
|
41
30
|
];
|
|
42
31
|
a.push.apply(a, args);
|
|
43
32
|
var Constructor = Function.bind.apply(Parent, a);
|
|
44
33
|
var instance = new Constructor();
|
|
45
|
-
if (Class)
|
|
34
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
46
35
|
return instance;
|
|
47
36
|
};
|
|
48
37
|
}
|
|
@@ -57,12 +46,12 @@ function _defineProperties(target, props) {
|
|
|
57
46
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
58
47
|
}
|
|
59
48
|
}
|
|
60
|
-
function
|
|
49
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
61
50
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
62
51
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
63
52
|
return Constructor;
|
|
64
53
|
}
|
|
65
|
-
function
|
|
54
|
+
function _define_property(obj, key, value) {
|
|
66
55
|
if (key in obj) {
|
|
67
56
|
Object.defineProperty(obj, key, {
|
|
68
57
|
value: value,
|
|
@@ -75,11 +64,11 @@ function _defineProperty(obj, key, value) {
|
|
|
75
64
|
}
|
|
76
65
|
return obj;
|
|
77
66
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
67
|
+
function _get_prototype_of(o) {
|
|
68
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
80
69
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
81
70
|
};
|
|
82
|
-
return
|
|
71
|
+
return _get_prototype_of(o);
|
|
83
72
|
}
|
|
84
73
|
function _inherits(subClass, superClass) {
|
|
85
74
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -92,37 +81,37 @@ function _inherits(subClass, superClass) {
|
|
|
92
81
|
configurable: true
|
|
93
82
|
}
|
|
94
83
|
});
|
|
95
|
-
if (superClass)
|
|
84
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
96
85
|
}
|
|
97
|
-
function
|
|
86
|
+
function _interop_require_default(obj) {
|
|
98
87
|
return obj && obj.__esModule ? obj : {
|
|
99
88
|
default: obj
|
|
100
89
|
};
|
|
101
90
|
}
|
|
102
|
-
function
|
|
91
|
+
function _is_native_function(fn) {
|
|
103
92
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
104
93
|
}
|
|
105
|
-
function
|
|
106
|
-
if (call && (
|
|
94
|
+
function _possible_constructor_return(self, call) {
|
|
95
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
107
96
|
return call;
|
|
108
97
|
}
|
|
109
|
-
return
|
|
98
|
+
return _assert_this_initialized(self);
|
|
110
99
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
100
|
+
function _set_prototype_of(o, p) {
|
|
101
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
113
102
|
o.__proto__ = p;
|
|
114
103
|
return o;
|
|
115
104
|
};
|
|
116
|
-
return
|
|
105
|
+
return _set_prototype_of(o, p);
|
|
117
106
|
}
|
|
118
|
-
|
|
107
|
+
function _type_of(obj) {
|
|
119
108
|
"@swc/helpers - typeof";
|
|
120
109
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
121
|
-
}
|
|
122
|
-
function
|
|
110
|
+
}
|
|
111
|
+
function _wrap_native_super(Class) {
|
|
123
112
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
124
|
-
|
|
125
|
-
if (Class === null || !
|
|
113
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
114
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
126
115
|
if (typeof Class !== "function") {
|
|
127
116
|
throw new TypeError("Super expression must either be null or a function");
|
|
128
117
|
}
|
|
@@ -131,7 +120,7 @@ function _wrapNativeSuper(Class) {
|
|
|
131
120
|
_cache.set(Class, Wrapper);
|
|
132
121
|
}
|
|
133
122
|
function Wrapper() {
|
|
134
|
-
return _construct(Class, arguments,
|
|
123
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
135
124
|
}
|
|
136
125
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
137
126
|
constructor: {
|
|
@@ -141,11 +130,11 @@ function _wrapNativeSuper(Class) {
|
|
|
141
130
|
configurable: true
|
|
142
131
|
}
|
|
143
132
|
});
|
|
144
|
-
return
|
|
133
|
+
return _set_prototype_of(Wrapper, Class);
|
|
145
134
|
};
|
|
146
|
-
return
|
|
135
|
+
return _wrap_native_super(Class);
|
|
147
136
|
}
|
|
148
|
-
function
|
|
137
|
+
function _is_native_reflect_construct() {
|
|
149
138
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
150
139
|
if (Reflect.construct.sham) return false;
|
|
151
140
|
if (typeof Proxy === "function") return true;
|
|
@@ -156,27 +145,27 @@ function _isNativeReflectConstruct() {
|
|
|
156
145
|
return false;
|
|
157
146
|
}
|
|
158
147
|
}
|
|
159
|
-
function
|
|
160
|
-
var hasNativeReflectConstruct =
|
|
148
|
+
function _create_super(Derived) {
|
|
149
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
161
150
|
return function _createSuperInternal() {
|
|
162
|
-
var Super =
|
|
151
|
+
var Super = _get_prototype_of(Derived), result;
|
|
163
152
|
if (hasNativeReflectConstruct) {
|
|
164
|
-
var NewTarget =
|
|
153
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
165
154
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
166
155
|
} else {
|
|
167
156
|
result = Super.apply(this, arguments);
|
|
168
157
|
}
|
|
169
|
-
return
|
|
158
|
+
return _possible_constructor_return(this, result);
|
|
170
159
|
};
|
|
171
160
|
}
|
|
172
161
|
var Link = /*#__PURE__*/ function(Element) {
|
|
173
162
|
_inherits(Link, Element);
|
|
174
|
-
var _super =
|
|
163
|
+
var _super = _create_super(Link);
|
|
175
164
|
function Link() {
|
|
176
|
-
|
|
165
|
+
_class_call_check(this, Link);
|
|
177
166
|
return _super.apply(this, arguments);
|
|
178
167
|
}
|
|
179
|
-
|
|
168
|
+
_create_class(Link, [
|
|
180
169
|
{
|
|
181
170
|
key: "getHRef",
|
|
182
171
|
value: function getHRef() {
|
|
@@ -191,7 +180,7 @@ var Link = /*#__PURE__*/ function(Element) {
|
|
|
191
180
|
}
|
|
192
181
|
]);
|
|
193
182
|
return Link;
|
|
194
|
-
}(
|
|
195
|
-
|
|
183
|
+
}(_wrap_native_super(_element.default));
|
|
184
|
+
_define_property(Link, "tagName", "a");
|
|
196
185
|
|
|
197
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
186
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2xpbmsuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBFbGVtZW50IGZyb20gXCIuLi9lbGVtZW50XCI7XG5cbmV4cG9ydCBkZWZhdW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 Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _element = /*#__PURE__*/
|
|
12
|
-
var _change = /*#__PURE__*/
|
|
13
|
-
function
|
|
11
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
|
|
12
|
+
var _change = /*#__PURE__*/ _interop_require_default(require("../mixins/change"));
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
14
|
if (self === void 0) {
|
|
15
15
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
16
|
}
|
|
17
17
|
return self;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
20
|
if (!(instance instanceof Constructor)) {
|
|
21
21
|
throw new TypeError("Cannot call a class as a function");
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function isNativeReflectConstruct() {
|
|
25
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
26
|
-
if (Reflect.construct.sham) return false;
|
|
27
|
-
if (typeof Proxy === "function") return true;
|
|
28
|
-
try {
|
|
29
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
30
|
-
return true;
|
|
31
|
-
} catch (e) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
24
|
function _construct(Parent, args, Class) {
|
|
36
|
-
if (
|
|
25
|
+
if (_is_native_reflect_construct()) {
|
|
37
26
|
_construct = Reflect.construct;
|
|
38
27
|
} else {
|
|
39
|
-
_construct = function
|
|
28
|
+
_construct = function construct(Parent, args, Class) {
|
|
40
29
|
var a = [
|
|
41
30
|
null
|
|
42
31
|
];
|
|
43
32
|
a.push.apply(a, args);
|
|
44
33
|
var Constructor = Function.bind.apply(Parent, a);
|
|
45
34
|
var instance = new Constructor();
|
|
46
|
-
if (Class)
|
|
35
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
47
36
|
return instance;
|
|
48
37
|
};
|
|
49
38
|
}
|
|
@@ -58,12 +47,12 @@ function _defineProperties(target, props) {
|
|
|
58
47
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
59
48
|
}
|
|
60
49
|
}
|
|
61
|
-
function
|
|
50
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
62
51
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
63
52
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
64
53
|
return Constructor;
|
|
65
54
|
}
|
|
66
|
-
function
|
|
55
|
+
function _define_property(obj, key, value) {
|
|
67
56
|
if (key in obj) {
|
|
68
57
|
Object.defineProperty(obj, key, {
|
|
69
58
|
value: value,
|
|
@@ -76,11 +65,11 @@ function _defineProperty(obj, key, value) {
|
|
|
76
65
|
}
|
|
77
66
|
return obj;
|
|
78
67
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
68
|
+
function _get_prototype_of(o) {
|
|
69
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
81
70
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
82
71
|
};
|
|
83
|
-
return
|
|
72
|
+
return _get_prototype_of(o);
|
|
84
73
|
}
|
|
85
74
|
function _inherits(subClass, superClass) {
|
|
86
75
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -93,37 +82,37 @@ function _inherits(subClass, superClass) {
|
|
|
93
82
|
configurable: true
|
|
94
83
|
}
|
|
95
84
|
});
|
|
96
|
-
if (superClass)
|
|
85
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
97
86
|
}
|
|
98
|
-
function
|
|
87
|
+
function _interop_require_default(obj) {
|
|
99
88
|
return obj && obj.__esModule ? obj : {
|
|
100
89
|
default: obj
|
|
101
90
|
};
|
|
102
91
|
}
|
|
103
|
-
function
|
|
92
|
+
function _is_native_function(fn) {
|
|
104
93
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
105
94
|
}
|
|
106
|
-
function
|
|
107
|
-
if (call && (
|
|
95
|
+
function _possible_constructor_return(self, call) {
|
|
96
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
108
97
|
return call;
|
|
109
98
|
}
|
|
110
|
-
return
|
|
99
|
+
return _assert_this_initialized(self);
|
|
111
100
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
101
|
+
function _set_prototype_of(o, p) {
|
|
102
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
114
103
|
o.__proto__ = p;
|
|
115
104
|
return o;
|
|
116
105
|
};
|
|
117
|
-
return
|
|
106
|
+
return _set_prototype_of(o, p);
|
|
118
107
|
}
|
|
119
|
-
|
|
108
|
+
function _type_of(obj) {
|
|
120
109
|
"@swc/helpers - typeof";
|
|
121
110
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
122
|
-
}
|
|
123
|
-
function
|
|
111
|
+
}
|
|
112
|
+
function _wrap_native_super(Class) {
|
|
124
113
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
125
|
-
|
|
126
|
-
if (Class === null || !
|
|
114
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
115
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
127
116
|
if (typeof Class !== "function") {
|
|
128
117
|
throw new TypeError("Super expression must either be null or a function");
|
|
129
118
|
}
|
|
@@ -132,7 +121,7 @@ function _wrapNativeSuper(Class) {
|
|
|
132
121
|
_cache.set(Class, Wrapper);
|
|
133
122
|
}
|
|
134
123
|
function Wrapper() {
|
|
135
|
-
return _construct(Class, arguments,
|
|
124
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
136
125
|
}
|
|
137
126
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
138
127
|
constructor: {
|
|
@@ -142,11 +131,11 @@ function _wrapNativeSuper(Class) {
|
|
|
142
131
|
configurable: true
|
|
143
132
|
}
|
|
144
133
|
});
|
|
145
|
-
return
|
|
134
|
+
return _set_prototype_of(Wrapper, Class);
|
|
146
135
|
};
|
|
147
|
-
return
|
|
136
|
+
return _wrap_native_super(Class);
|
|
148
137
|
}
|
|
149
|
-
function
|
|
138
|
+
function _is_native_reflect_construct() {
|
|
150
139
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
151
140
|
if (Reflect.construct.sham) return false;
|
|
152
141
|
if (typeof Proxy === "function") return true;
|
|
@@ -157,27 +146,27 @@ function _isNativeReflectConstruct() {
|
|
|
157
146
|
return false;
|
|
158
147
|
}
|
|
159
148
|
}
|
|
160
|
-
function
|
|
161
|
-
var hasNativeReflectConstruct =
|
|
149
|
+
function _create_super(Derived) {
|
|
150
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
162
151
|
return function _createSuperInternal() {
|
|
163
|
-
var Super =
|
|
152
|
+
var Super = _get_prototype_of(Derived), result;
|
|
164
153
|
if (hasNativeReflectConstruct) {
|
|
165
|
-
var NewTarget =
|
|
154
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
166
155
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
167
156
|
} else {
|
|
168
157
|
result = Super.apply(this, arguments);
|
|
169
158
|
}
|
|
170
|
-
return
|
|
159
|
+
return _possible_constructor_return(this, result);
|
|
171
160
|
};
|
|
172
161
|
}
|
|
173
162
|
var Select = /*#__PURE__*/ function(Element) {
|
|
174
163
|
_inherits(Select, Element);
|
|
175
|
-
var _super =
|
|
164
|
+
var _super = _create_super(Select);
|
|
176
165
|
function Select() {
|
|
177
|
-
|
|
166
|
+
_class_call_check(this, Select);
|
|
178
167
|
return _super.apply(this, arguments);
|
|
179
168
|
}
|
|
180
|
-
|
|
169
|
+
_create_class(Select, [
|
|
181
170
|
{
|
|
182
171
|
key: "onResize",
|
|
183
172
|
value: function onResize(resizeHandler, element) {} ///
|
|
@@ -200,9 +189,9 @@ var Select = /*#__PURE__*/ function(Element) {
|
|
|
200
189
|
}
|
|
201
190
|
]);
|
|
202
191
|
return Select;
|
|
203
|
-
}(
|
|
204
|
-
|
|
192
|
+
}(_wrap_native_super(_element.default));
|
|
193
|
+
_define_property(Select, "tagName", "select");
|
|
205
194
|
Object.assign(Select.prototype, _change.default);
|
|
206
195
|
var _default = Select;
|
|
207
196
|
|
|
208
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
197
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L3NlbGVjdC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEVsZW1lbnQgZnJvbSBcIi4uL2VsZW1lbnRcIjtcbmltcG9ydCBjaGFuZ2VNaXhpbnMgZnJvbSBcIi4uL21peGlucy9jaGFuZ2VcIjtcblxuY2xhc3MgU2VsZWN0IGV4dGVuZHMgRWxlbWVudCB7XG4gIG9uUmVzaXplKHJlc2l6ZUhhbmRsZXIsIGVsZW1lbnQpIHt9IC8vL1xuXG4gIG9mZlJlc2l6ZShyZXNpemVIYW5kbGVyLCBlbGVtZW50KSB7fSAgLy8vXG5cbiAgZ2V0VmFsdWUoKSB7IHJldHVybiB0aGlzLmRvbUVsZW1lbnQudmFsdWU7IH1cblxuICBzZXRWYWx1ZSh2YWx1ZSkgeyB0aGlzLmRvbUVsZW1lbnQudmFsdWUgPSB2YWx1ZTsgfVxuXG4gIHN0YXRpYyB0YWdOYW1lID0gXCJzZWxlY3RcIjtcbn1cblxuT2JqZWN0LmFzc2lnbihTZWxlY3QucHJvdG90eXBlLCBjaGFuZ2VNaXhpbnMpO1xuXG5leHBvcnQgZGVmYXVsdCBTZWxlY3Q7XG4iXSwibmFtZXMiOlsiU2VsZWN0Iiwib25SZXNpemUiLCJyZXNpemVIYW5kbGVyIiwiZWxlbWVudCIsIm9mZlJlc2l6ZSIsImdldFZhbHVlIiwiZG9tRWxlbWVudCIsInZhbH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