easy 24.1.0 → 24.1.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.
Files changed (49) hide show
  1. package/.aiignore +12 -0
  2. package/.swcrc +4 -3
  3. package/example.js +672 -2711
  4. package/lib/bounds.js +50 -116
  5. package/lib/constants.js +23 -23
  6. package/lib/document.js +48 -97
  7. package/lib/element/body.js +7 -131
  8. package/lib/element/button.js +5 -129
  9. package/lib/element/checkbox.js +13 -160
  10. package/lib/element/input.js +7 -131
  11. package/lib/element/link.js +10 -156
  12. package/lib/element/select.js +6 -130
  13. package/lib/element/textarea.js +7 -131
  14. package/lib/element.js +245 -481
  15. package/lib/eventTypes.js +60 -60
  16. package/lib/example/preamble.js +2 -2
  17. package/lib/example/view/div.js +20 -169
  18. package/lib/example/view.js +9 -152
  19. package/lib/example.js +4 -4
  20. package/lib/index.js +22 -22
  21. package/lib/mixins/click.js +10 -10
  22. package/lib/mixins/customEvent.js +41 -84
  23. package/lib/mixins/element.js +28 -34
  24. package/lib/mixins/event.js +45 -50
  25. package/lib/mixins/focus.js +13 -13
  26. package/lib/mixins/fullScreen.js +11 -11
  27. package/lib/mixins/input.js +12 -12
  28. package/lib/mixins/jsx.js +42 -48
  29. package/lib/mixins/key.js +8 -8
  30. package/lib/mixins/mouse.js +14 -14
  31. package/lib/mixins/resize.js +6 -6
  32. package/lib/mixins/scroll.js +13 -13
  33. package/lib/mixins/selection.js +15 -15
  34. package/lib/mixins/state.js +6 -6
  35. package/lib/mixins/touch.js +10 -10
  36. package/lib/mouseButtons.js +8 -8
  37. package/lib/offset.js +14 -47
  38. package/lib/react.js +17 -31
  39. package/lib/textElement.js +61 -129
  40. package/lib/utilities/array.js +8 -38
  41. package/lib/utilities/async.js +5 -5
  42. package/lib/utilities/dom.js +17 -19
  43. package/lib/utilities/element.js +22 -44
  44. package/lib/utilities/elements.js +7 -11
  45. package/lib/utilities/name.js +2 -2
  46. package/lib/utilities/object.js +17 -47
  47. package/lib/utilities/string.js +3 -3
  48. package/lib/window.js +55 -152
  49. package/package.json +1 -1
@@ -8,140 +8,16 @@ Object.defineProperty(exports, "default", {
8
8
  return Button;
9
9
  }
10
10
  });
11
- var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
- var _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
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 _construct(Parent, args, Class) {
29
- if (_is_native_reflect_construct()) {
30
- _construct = Reflect.construct;
31
- } else {
32
- _construct = function construct(Parent, args, Class) {
33
- var a = [
34
- null
35
- ];
36
- a.push.apply(a, args);
37
- var Constructor = Function.bind.apply(Parent, a);
38
- var instance = new Constructor();
39
- if (Class) _set_prototype_of(instance, Class.prototype);
40
- return instance;
41
- };
42
- }
43
- return _construct.apply(null, arguments);
44
- }
45
- function _define_property(obj, key, value) {
46
- if (key in obj) {
47
- Object.defineProperty(obj, key, {
48
- value: value,
49
- enumerable: true,
50
- configurable: true,
51
- writable: true
52
- });
53
- } else {
54
- obj[key] = value;
55
- }
56
- return obj;
57
- }
58
- function _get_prototype_of(o) {
59
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
60
- return o.__proto__ || Object.getPrototypeOf(o);
61
- };
62
- return _get_prototype_of(o);
63
- }
64
- function _inherits(subClass, superClass) {
65
- if (typeof superClass !== "function" && superClass !== null) {
66
- throw new TypeError("Super expression must either be null or a function");
67
- }
68
- subClass.prototype = Object.create(superClass && superClass.prototype, {
69
- constructor: {
70
- value: subClass,
71
- writable: true,
72
- configurable: true
73
- }
74
- });
75
- if (superClass) _set_prototype_of(subClass, superClass);
76
- }
11
+ const _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
+ const _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
77
13
  function _interop_require_default(obj) {
78
14
  return obj && obj.__esModule ? obj : {
79
15
  default: obj
80
16
  };
81
17
  }
82
- function _is_native_function(fn) {
83
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
84
- }
85
- function _possible_constructor_return(self, call) {
86
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
87
- return call;
88
- }
89
- return _assert_this_initialized(self);
90
- }
91
- function _set_prototype_of(o, p) {
92
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
93
- o.__proto__ = p;
94
- return o;
95
- };
96
- return _set_prototype_of(o, p);
18
+ class Button extends _element.default {
19
+ static tagName = "button";
97
20
  }
98
- function _type_of(obj) {
99
- "@swc/helpers - typeof";
100
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
101
- }
102
- function _wrap_native_super(Class) {
103
- var _cache = typeof Map === "function" ? new Map() : undefined;
104
- _wrap_native_super = function wrapNativeSuper(Class) {
105
- if (Class === null || !_is_native_function(Class)) return Class;
106
- if (typeof Class !== "function") {
107
- throw new TypeError("Super expression must either be null or a function");
108
- }
109
- if (typeof _cache !== "undefined") {
110
- if (_cache.has(Class)) return _cache.get(Class);
111
- _cache.set(Class, Wrapper);
112
- }
113
- function Wrapper() {
114
- return _construct(Class, arguments, _get_prototype_of(this).constructor);
115
- }
116
- Wrapper.prototype = Object.create(Class.prototype, {
117
- constructor: {
118
- value: Wrapper,
119
- enumerable: false,
120
- writable: true,
121
- configurable: true
122
- }
123
- });
124
- return _set_prototype_of(Wrapper, Class);
125
- };
126
- return _wrap_native_super(Class);
127
- }
128
- function _is_native_reflect_construct() {
129
- try {
130
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
131
- } catch (_) {}
132
- return (_is_native_reflect_construct = function() {
133
- return !!result;
134
- })();
135
- }
136
- var Button = /*#__PURE__*/ function(Element) {
137
- _inherits(Button, Element);
138
- function Button() {
139
- _class_call_check(this, Button);
140
- return _call_super(this, Button, arguments);
141
- }
142
- return Button;
143
- }(_wrap_native_super(_element.default));
144
- _define_property(Button, "tagName", "button");
145
21
  Object.assign(Button.prototype, _focus.default);
146
22
 
147
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2J1dHRvbi5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEVsZW1lbnQgZnJvbSBcIi4uL2VsZW1lbnRcIjtcbmltcG9ydCBmb2N1c01peGlucyBmcm9tIFwiLi4vbWl4aW5zL2ZvY3VzXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEJ1dHRvbiBleHRlbmRzIEVsZW1lbnQge1xuICBzdGF0aWMgdGFnTmFtZSA9IFwiYnV0dG9uXCI7XG59XG5cbk9iamVjdC5hc3NpZ24oQnV0dG9uLnByb3RvdHlwZSwgZm9jdXNNaXhpbnMpO1xuIl0sIm5hbWVzIjpbIkJ1dHRvbiIsIkVsZW1lbnQiLCJ0YWdOYW1lIiwiT2JqZWN0IiwiYXNzaWduIiwicHJvdG90eXBlIiwiZm9jdXNNaXhpbnMiXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O2VBS3FCQTs7OzhEQUhEOzREQUNJOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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
10
10
  });
11
- var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
- var _input = /*#__PURE__*/ _interop_require_default(require("../mixins/input"));
13
- var _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
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 _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
+ const _input = /*#__PURE__*/ _interop_require_default(require("../mixins/input"));
13
+ const _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
92
14
  function _interop_require_default(obj) {
93
15
  return obj && obj.__esModule ? obj : {
94
16
  default: obj
95
17
  };
96
18
  }
97
- function _is_native_function(fn) {
98
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
99
- }
100
- function _possible_constructor_return(self, call) {
101
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
102
- return call;
19
+ class Checkbox extends _element.default {
20
+ isChecked() {
21
+ return this.domElement.checked;
103
22
  }
104
- return _assert_this_initialized(self);
105
- }
106
- function _set_prototype_of(o, p) {
107
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
108
- o.__proto__ = p;
109
- return o;
110
- };
111
- return _set_prototype_of(o, p);
112
- }
113
- function _type_of(obj) {
114
- "@swc/helpers - typeof";
115
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
116
- }
117
- function _wrap_native_super(Class) {
118
- var _cache = typeof Map === "function" ? new Map() : undefined;
119
- _wrap_native_super = function wrapNativeSuper(Class) {
120
- if (Class === null || !_is_native_function(Class)) return Class;
121
- if (typeof Class !== "function") {
122
- throw new TypeError("Super expression must either be null or a function");
123
- }
124
- if (typeof _cache !== "undefined") {
125
- if (_cache.has(Class)) return _cache.get(Class);
126
- _cache.set(Class, Wrapper);
127
- }
128
- function Wrapper() {
129
- return _construct(Class, arguments, _get_prototype_of(this).constructor);
130
- }
131
- Wrapper.prototype = Object.create(Class.prototype, {
132
- constructor: {
133
- value: Wrapper,
134
- enumerable: false,
135
- writable: true,
136
- configurable: true
137
- }
138
- });
139
- return _set_prototype_of(Wrapper, Class);
23
+ check(checked = true) {
24
+ this.domElement.checked = checked;
25
+ }
26
+ static tagName = "input";
27
+ static defaultProperties = {
28
+ type: "checkbox"
140
29
  };
141
- return _wrap_native_super(Class);
142
30
  }
143
- function _is_native_reflect_construct() {
144
- try {
145
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
146
- } catch (_) {}
147
- return (_is_native_reflect_construct = function() {
148
- return !!result;
149
- })();
150
- }
151
- var Checkbox = /*#__PURE__*/ function(Element) {
152
- _inherits(Checkbox, Element);
153
- function Checkbox() {
154
- _class_call_check(this, Checkbox);
155
- return _call_super(this, Checkbox, arguments);
156
- }
157
- _create_class(Checkbox, [
158
- {
159
- key: "isChecked",
160
- value: function isChecked() {
161
- return this.domElement.checked;
162
- }
163
- },
164
- {
165
- key: "check",
166
- value: function check() {
167
- var checked = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
168
- this.domElement.checked = checked;
169
- }
170
- }
171
- ]);
172
- return Checkbox;
173
- }(_wrap_native_super(_element.default));
174
- _define_property(Checkbox, "tagName", "input");
175
- _define_property(Checkbox, "defaultProperties", {
176
- type: "checkbox"
177
- });
178
31
  Object.assign(Checkbox.prototype, _input.default);
179
32
  Object.assign(Checkbox.prototype, _focus.default);
180
33
 
181
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2NoZWNrYm94LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgRWxlbWVudCBmcm9tIFwiLi4vZWxlbW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DSCxPQUFPQyxNQUFNLENBQUNWLFNBQVNXLFNBQVMsRUFBRUUsY0FBVyJ9
@@ -8,144 +8,20 @@ Object.defineProperty(exports, "default", {
8
8
  return Input;
9
9
  }
10
10
  });
11
- var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
- var _input = /*#__PURE__*/ _interop_require_default(require("../mixins/input"));
13
- var _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
14
- var _selection = /*#__PURE__*/ _interop_require_default(require("../mixins/selection"));
15
- function _assert_this_initialized(self) {
16
- if (self === void 0) {
17
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18
- }
19
- return self;
20
- }
21
- function _call_super(_this, derived, args) {
22
- derived = _get_prototype_of(derived);
23
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
24
- }
25
- function _class_call_check(instance, Constructor) {
26
- if (!(instance instanceof Constructor)) {
27
- throw new TypeError("Cannot call a class as a function");
28
- }
29
- }
30
- function _construct(Parent, args, Class) {
31
- if (_is_native_reflect_construct()) {
32
- _construct = Reflect.construct;
33
- } else {
34
- _construct = function construct(Parent, args, Class) {
35
- var a = [
36
- null
37
- ];
38
- a.push.apply(a, args);
39
- var Constructor = Function.bind.apply(Parent, a);
40
- var instance = new Constructor();
41
- if (Class) _set_prototype_of(instance, Class.prototype);
42
- return instance;
43
- };
44
- }
45
- return _construct.apply(null, arguments);
46
- }
47
- function _define_property(obj, key, value) {
48
- if (key in obj) {
49
- Object.defineProperty(obj, key, {
50
- value: value,
51
- enumerable: true,
52
- configurable: true,
53
- writable: true
54
- });
55
- } else {
56
- obj[key] = value;
57
- }
58
- return obj;
59
- }
60
- function _get_prototype_of(o) {
61
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
62
- return o.__proto__ || Object.getPrototypeOf(o);
63
- };
64
- return _get_prototype_of(o);
65
- }
66
- function _inherits(subClass, superClass) {
67
- if (typeof superClass !== "function" && superClass !== null) {
68
- throw new TypeError("Super expression must either be null or a function");
69
- }
70
- subClass.prototype = Object.create(superClass && superClass.prototype, {
71
- constructor: {
72
- value: subClass,
73
- writable: true,
74
- configurable: true
75
- }
76
- });
77
- if (superClass) _set_prototype_of(subClass, superClass);
78
- }
11
+ const _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
+ const _input = /*#__PURE__*/ _interop_require_default(require("../mixins/input"));
13
+ const _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
14
+ const _selection = /*#__PURE__*/ _interop_require_default(require("../mixins/selection"));
79
15
  function _interop_require_default(obj) {
80
16
  return obj && obj.__esModule ? obj : {
81
17
  default: obj
82
18
  };
83
19
  }
84
- function _is_native_function(fn) {
85
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
86
- }
87
- function _possible_constructor_return(self, call) {
88
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
89
- return call;
90
- }
91
- return _assert_this_initialized(self);
92
- }
93
- function _set_prototype_of(o, p) {
94
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
95
- o.__proto__ = p;
96
- return o;
97
- };
98
- return _set_prototype_of(o, p);
20
+ class Input extends _element.default {
21
+ static tagName = "input";
99
22
  }
100
- function _type_of(obj) {
101
- "@swc/helpers - typeof";
102
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
103
- }
104
- function _wrap_native_super(Class) {
105
- var _cache = typeof Map === "function" ? new Map() : undefined;
106
- _wrap_native_super = function wrapNativeSuper(Class) {
107
- if (Class === null || !_is_native_function(Class)) return Class;
108
- if (typeof Class !== "function") {
109
- throw new TypeError("Super expression must either be null or a function");
110
- }
111
- if (typeof _cache !== "undefined") {
112
- if (_cache.has(Class)) return _cache.get(Class);
113
- _cache.set(Class, Wrapper);
114
- }
115
- function Wrapper() {
116
- return _construct(Class, arguments, _get_prototype_of(this).constructor);
117
- }
118
- Wrapper.prototype = Object.create(Class.prototype, {
119
- constructor: {
120
- value: Wrapper,
121
- enumerable: false,
122
- writable: true,
123
- configurable: true
124
- }
125
- });
126
- return _set_prototype_of(Wrapper, Class);
127
- };
128
- return _wrap_native_super(Class);
129
- }
130
- function _is_native_reflect_construct() {
131
- try {
132
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
133
- } catch (_) {}
134
- return (_is_native_reflect_construct = function() {
135
- return !!result;
136
- })();
137
- }
138
- var Input = /*#__PURE__*/ function(Element) {
139
- _inherits(Input, Element);
140
- function Input() {
141
- _class_call_check(this, Input);
142
- return _call_super(this, Input, arguments);
143
- }
144
- return Input;
145
- }(_wrap_native_super(_element.default));
146
- _define_property(Input, "tagName", "input");
147
23
  Object.assign(Input.prototype, _input.default);
148
24
  Object.assign(Input.prototype, _focus.default);
149
25
  Object.assign(Input.prototype, _selection.default);
150
26
 
151
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2lucHV0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgRWxlbWVudCBmcm9tIFwiLi4vZWxlbWVudFwiO1xuaW1wb3J0IGlucHV0TWl4aW5zIGZyb20gXCIuLi9taXhpbnMvaW5wdXRcIjtcbmltcG9ydCBmb2N1c01peGlucyBmcm9tIFwiLi4vbWl4aW5zL2ZvY3VzXCI7XG5pbXBvcnQgc2VsZWN0aW9uTWl4aW5zIGZyb20gXCIuLi9taXhpbnMvc2VsZWN0aW9uXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIElucHV0IGV4dGVuZHMgRWxlbWVudCB7XG4gIHN0YXRpYyB0YWdOYW1lID0gXCJpbnB1dFwiO1xufVxuXG5PYmplY3QuYXNzaWduKElucHV0LnByb3RvdHlwZSwgaW5wdXRNaXhpbnMpO1xuT2JqZWN0LmFzc2lnbihJbnB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
- var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
- var _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
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 _construct(Parent, args, Class) {
29
- if (_is_native_reflect_construct()) {
30
- _construct = Reflect.construct;
31
- } else {
32
- _construct = function construct(Parent, args, Class) {
33
- var a = [
34
- null
35
- ];
36
- a.push.apply(a, args);
37
- var Constructor = Function.bind.apply(Parent, a);
38
- var instance = new Constructor();
39
- if (Class) _set_prototype_of(instance, Class.prototype);
40
- return instance;
41
- };
42
- }
43
- return _construct.apply(null, arguments);
44
- }
45
- function _defineProperties(target, props) {
46
- for(var i = 0; i < props.length; i++){
47
- var descriptor = props[i];
48
- descriptor.enumerable = descriptor.enumerable || false;
49
- descriptor.configurable = true;
50
- if ("value" in descriptor) descriptor.writable = true;
51
- Object.defineProperty(target, descriptor.key, descriptor);
52
- }
53
- }
54
- function _create_class(Constructor, protoProps, staticProps) {
55
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
56
- if (staticProps) _defineProperties(Constructor, staticProps);
57
- return Constructor;
58
- }
59
- function _define_property(obj, key, value) {
60
- if (key in obj) {
61
- Object.defineProperty(obj, key, {
62
- value: value,
63
- enumerable: true,
64
- configurable: true,
65
- writable: true
66
- });
67
- } else {
68
- obj[key] = value;
69
- }
70
- return obj;
71
- }
72
- function _get_prototype_of(o) {
73
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
74
- return o.__proto__ || Object.getPrototypeOf(o);
75
- };
76
- return _get_prototype_of(o);
77
- }
78
- function _inherits(subClass, superClass) {
79
- if (typeof superClass !== "function" && superClass !== null) {
80
- throw new TypeError("Super expression must either be null or a function");
81
- }
82
- subClass.prototype = Object.create(superClass && superClass.prototype, {
83
- constructor: {
84
- value: subClass,
85
- writable: true,
86
- configurable: true
87
- }
88
- });
89
- if (superClass) _set_prototype_of(subClass, superClass);
90
- }
11
+ const _element = /*#__PURE__*/ _interop_require_default(require("../element"));
12
+ const _focus = /*#__PURE__*/ _interop_require_default(require("../mixins/focus"));
91
13
  function _interop_require_default(obj) {
92
14
  return obj && obj.__esModule ? obj : {
93
15
  default: obj
94
16
  };
95
17
  }
96
- function _is_native_function(fn) {
97
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
98
- }
99
- function _possible_constructor_return(self, call) {
100
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
101
- return call;
18
+ class Link extends _element.default {
19
+ getHRef() {
20
+ return this.getAttribute("href");
102
21
  }
103
- return _assert_this_initialized(self);
104
- }
105
- function _set_prototype_of(o, p) {
106
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
107
- o.__proto__ = p;
108
- return o;
109
- };
110
- return _set_prototype_of(o, p);
111
- }
112
- function _type_of(obj) {
113
- "@swc/helpers - typeof";
114
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
115
- }
116
- function _wrap_native_super(Class) {
117
- var _cache = typeof Map === "function" ? new Map() : undefined;
118
- _wrap_native_super = function wrapNativeSuper(Class) {
119
- if (Class === null || !_is_native_function(Class)) return Class;
120
- if (typeof Class !== "function") {
121
- throw new TypeError("Super expression must either be null or a function");
122
- }
123
- if (typeof _cache !== "undefined") {
124
- if (_cache.has(Class)) return _cache.get(Class);
125
- _cache.set(Class, Wrapper);
126
- }
127
- function Wrapper() {
128
- return _construct(Class, arguments, _get_prototype_of(this).constructor);
129
- }
130
- Wrapper.prototype = Object.create(Class.prototype, {
131
- constructor: {
132
- value: Wrapper,
133
- enumerable: false,
134
- writable: true,
135
- configurable: true
136
- }
137
- });
138
- return _set_prototype_of(Wrapper, Class);
139
- };
140
- return _wrap_native_super(Class);
141
- }
142
- function _is_native_reflect_construct() {
143
- try {
144
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
145
- } catch (_) {}
146
- return (_is_native_reflect_construct = function() {
147
- return !!result;
148
- })();
149
- }
150
- var Link = /*#__PURE__*/ function(Element) {
151
- _inherits(Link, Element);
152
- function Link() {
153
- _class_call_check(this, Link);
154
- return _call_super(this, Link, arguments);
22
+ setHRef(href) {
23
+ return this.setAttribute("href", href);
155
24
  }
156
- _create_class(Link, [
157
- {
158
- key: "getHRef",
159
- value: function getHRef() {
160
- return this.getAttribute("href");
161
- }
162
- },
163
- {
164
- key: "setHRef",
165
- value: function setHRef(href) {
166
- return this.setAttribute("href", href);
167
- }
168
- }
169
- ]);
170
- return Link;
171
- }(_wrap_native_super(_element.default));
172
- _define_property(Link, "tagName", "a");
25
+ static tagName = "a";
26
+ }
173
27
  Object.assign(Link.prototype, _focus.default);
174
28
 
175
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L2xpbmsuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBFbGVtZW50IGZyb20gXCIuLi9lbGVtZW50XCI7XG5pbXBvcnQgZm9jdXNNaXhpbnMgZnJvbSBcIi4uL21peGlucy9mb2N1c1wiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBMaW5rIGV4dGVuZHMgRWxlbWVudCB7XG4gIGdldEhSZWYoKSB7IHJldHVybiB0aGlzLmdldEF0dHJpYnV0ZShcImhyZWZcIik7IH1cblxuICBzZXRIUmVmKGhyZWYpIHsgcmV0dXJuIHRoaXMuc2V0QXR0cm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