easy-navigation 2.1.49 → 2.1.51
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 +4305 -4440
- package/lib/accordion.js +50 -61
- package/lib/button/accordion.js +34 -34
- package/lib/button/navigation/accordion.js +34 -34
- package/lib/div/accordion.js +54 -65
- package/lib/example/accordion.js +31 -31
- package/lib/example/article/buttons.js +32 -32
- package/lib/example/article/codes.js +32 -32
- package/lib/example/article/headings.js +32 -32
- package/lib/example/article/home.js +33 -33
- package/lib/example/article/inputs.js +32 -32
- package/lib/example/article/links.js +32 -32
- package/lib/example/article/sections.js +32 -32
- package/lib/example/article.js +41 -52
- package/lib/example/articlesArray.js +9 -9
- package/lib/example/button/accordion.js +6 -6
- package/lib/example/button/link.js +30 -30
- package/lib/example/item/accordion.js +27 -27
- package/lib/example/navigation/accordion.js +6 -6
- package/lib/example/view.js +47 -58
- package/lib/example.js +6 -6
- package/lib/index.js +10 -10
- package/lib/item/accordion.js +54 -65
- package/lib/item/navigation/accordion.js +56 -67
- package/lib/list/navigation/accordion.js +46 -57
- package/lib/navigation/accordion.js +42 -53
- package/package.json +2 -2
|
@@ -8,44 +8,33 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var
|
|
11
|
+
var _easywithstyle = /*#__PURE__*/ _interop_require_default(require("easy-with-style"));
|
|
12
12
|
var _easy = require("easy");
|
|
13
|
-
var _accordion = /*#__PURE__*/
|
|
13
|
+
var _accordion = /*#__PURE__*/ _interop_require_default(require("../../item/navigation/accordion"));
|
|
14
14
|
var _array = require("../../utilities/array");
|
|
15
|
-
function
|
|
15
|
+
function _assert_this_initialized(self) {
|
|
16
16
|
if (self === void 0) {
|
|
17
17
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
18
18
|
}
|
|
19
19
|
return self;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function _class_call_check(instance, Constructor) {
|
|
22
22
|
if (!(instance instanceof Constructor)) {
|
|
23
23
|
throw new TypeError("Cannot call a class as a function");
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
function isNativeReflectConstruct() {
|
|
27
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
28
|
-
if (Reflect.construct.sham) return false;
|
|
29
|
-
if (typeof Proxy === "function") return true;
|
|
30
|
-
try {
|
|
31
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
32
|
-
return true;
|
|
33
|
-
} catch (e) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
26
|
function _construct(Parent, args, Class) {
|
|
38
|
-
if (
|
|
27
|
+
if (_is_native_reflect_construct()) {
|
|
39
28
|
_construct = Reflect.construct;
|
|
40
29
|
} else {
|
|
41
|
-
_construct = function
|
|
30
|
+
_construct = function construct(Parent, args, Class) {
|
|
42
31
|
var a = [
|
|
43
32
|
null
|
|
44
33
|
];
|
|
45
34
|
a.push.apply(a, args);
|
|
46
35
|
var Constructor = Function.bind.apply(Parent, a);
|
|
47
36
|
var instance = new Constructor();
|
|
48
|
-
if (Class)
|
|
37
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
49
38
|
return instance;
|
|
50
39
|
};
|
|
51
40
|
}
|
|
@@ -60,12 +49,12 @@ function _defineProperties(target, props) {
|
|
|
60
49
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
61
50
|
}
|
|
62
51
|
}
|
|
63
|
-
function
|
|
52
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
64
53
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
65
54
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
66
55
|
return Constructor;
|
|
67
56
|
}
|
|
68
|
-
function
|
|
57
|
+
function _define_property(obj, key, value) {
|
|
69
58
|
if (key in obj) {
|
|
70
59
|
Object.defineProperty(obj, key, {
|
|
71
60
|
value: value,
|
|
@@ -78,11 +67,11 @@ function _defineProperty(obj, key, value) {
|
|
|
78
67
|
}
|
|
79
68
|
return obj;
|
|
80
69
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
70
|
+
function _get_prototype_of(o) {
|
|
71
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
83
72
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
84
73
|
};
|
|
85
|
-
return
|
|
74
|
+
return _get_prototype_of(o);
|
|
86
75
|
}
|
|
87
76
|
function _inherits(subClass, superClass) {
|
|
88
77
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -95,30 +84,30 @@ function _inherits(subClass, superClass) {
|
|
|
95
84
|
configurable: true
|
|
96
85
|
}
|
|
97
86
|
});
|
|
98
|
-
if (superClass)
|
|
87
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
99
88
|
}
|
|
100
|
-
function
|
|
89
|
+
function _interop_require_default(obj) {
|
|
101
90
|
return obj && obj.__esModule ? obj : {
|
|
102
91
|
default: obj
|
|
103
92
|
};
|
|
104
93
|
}
|
|
105
|
-
function
|
|
94
|
+
function _is_native_function(fn) {
|
|
106
95
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
107
96
|
}
|
|
108
|
-
function
|
|
109
|
-
if (call && (
|
|
97
|
+
function _possible_constructor_return(self, call) {
|
|
98
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
110
99
|
return call;
|
|
111
100
|
}
|
|
112
|
-
return
|
|
101
|
+
return _assert_this_initialized(self);
|
|
113
102
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
103
|
+
function _set_prototype_of(o, p) {
|
|
104
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
116
105
|
o.__proto__ = p;
|
|
117
106
|
return o;
|
|
118
107
|
};
|
|
119
|
-
return
|
|
108
|
+
return _set_prototype_of(o, p);
|
|
120
109
|
}
|
|
121
|
-
function
|
|
110
|
+
function _tagged_template_literal(strings, raw) {
|
|
122
111
|
if (!raw) {
|
|
123
112
|
raw = strings.slice(0);
|
|
124
113
|
}
|
|
@@ -128,14 +117,14 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
128
117
|
}
|
|
129
118
|
}));
|
|
130
119
|
}
|
|
131
|
-
|
|
120
|
+
function _type_of(obj) {
|
|
132
121
|
"@swc/helpers - typeof";
|
|
133
122
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
134
|
-
}
|
|
135
|
-
function
|
|
123
|
+
}
|
|
124
|
+
function _wrap_native_super(Class) {
|
|
136
125
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
137
|
-
|
|
138
|
-
if (Class === null || !
|
|
126
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
127
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
139
128
|
if (typeof Class !== "function") {
|
|
140
129
|
throw new TypeError("Super expression must either be null or a function");
|
|
141
130
|
}
|
|
@@ -144,7 +133,7 @@ function _wrapNativeSuper(Class) {
|
|
|
144
133
|
_cache.set(Class, Wrapper);
|
|
145
134
|
}
|
|
146
135
|
function Wrapper() {
|
|
147
|
-
return _construct(Class, arguments,
|
|
136
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
148
137
|
}
|
|
149
138
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
150
139
|
constructor: {
|
|
@@ -154,11 +143,11 @@ function _wrapNativeSuper(Class) {
|
|
|
154
143
|
configurable: true
|
|
155
144
|
}
|
|
156
145
|
});
|
|
157
|
-
return
|
|
146
|
+
return _set_prototype_of(Wrapper, Class);
|
|
158
147
|
};
|
|
159
|
-
return
|
|
148
|
+
return _wrap_native_super(Class);
|
|
160
149
|
}
|
|
161
|
-
function
|
|
150
|
+
function _is_native_reflect_construct() {
|
|
162
151
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
163
152
|
if (Reflect.construct.sham) return false;
|
|
164
153
|
if (typeof Proxy === "function") return true;
|
|
@@ -169,21 +158,21 @@ function _isNativeReflectConstruct() {
|
|
|
169
158
|
return false;
|
|
170
159
|
}
|
|
171
160
|
}
|
|
172
|
-
function
|
|
173
|
-
var hasNativeReflectConstruct =
|
|
161
|
+
function _create_super(Derived) {
|
|
162
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
174
163
|
return function _createSuperInternal() {
|
|
175
|
-
var Super =
|
|
164
|
+
var Super = _get_prototype_of(Derived), result;
|
|
176
165
|
if (hasNativeReflectConstruct) {
|
|
177
|
-
var NewTarget =
|
|
166
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
178
167
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
179
168
|
} else {
|
|
180
169
|
result = Super.apply(this, arguments);
|
|
181
170
|
}
|
|
182
|
-
return
|
|
171
|
+
return _possible_constructor_return(this, result);
|
|
183
172
|
};
|
|
184
173
|
}
|
|
185
174
|
function _templateObject() {
|
|
186
|
-
var data =
|
|
175
|
+
var data = _tagged_template_literal([
|
|
187
176
|
"\n\n list-style-type: none;\n \n"
|
|
188
177
|
]);
|
|
189
178
|
_templateObject = function _templateObject() {
|
|
@@ -193,12 +182,12 @@ function _templateObject() {
|
|
|
193
182
|
}
|
|
194
183
|
var AccordionNavigationList = /*#__PURE__*/ function(Element) {
|
|
195
184
|
_inherits(AccordionNavigationList, Element);
|
|
196
|
-
var _super =
|
|
185
|
+
var _super = _create_super(AccordionNavigationList);
|
|
197
186
|
function AccordionNavigationList() {
|
|
198
|
-
|
|
187
|
+
_class_call_check(this, AccordionNavigationList);
|
|
199
188
|
return _super.apply(this, arguments);
|
|
200
189
|
}
|
|
201
|
-
|
|
190
|
+
_create_class(AccordionNavigationList, [
|
|
202
191
|
{
|
|
203
192
|
key: "getButtons",
|
|
204
193
|
value: function getButtons() {
|
|
@@ -247,12 +236,12 @@ var AccordionNavigationList = /*#__PURE__*/ function(Element) {
|
|
|
247
236
|
}
|
|
248
237
|
]);
|
|
249
238
|
return AccordionNavigationList;
|
|
250
|
-
}(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
239
|
+
}(_wrap_native_super(_easy.Element));
|
|
240
|
+
_define_property(AccordionNavigationList, "AccordionNavigationItem", _accordion.default);
|
|
241
|
+
_define_property(AccordionNavigationList, "tagName", "ul");
|
|
242
|
+
_define_property(AccordionNavigationList, "defaultProperties", {
|
|
254
243
|
className: "accordion-navigation"
|
|
255
244
|
});
|
|
256
|
-
var _default = (0,
|
|
245
|
+
var _default = (0, _easywithstyle.default)(AccordionNavigationList)(_templateObject());
|
|
257
246
|
|
|
258
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
247
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saXN0L25hdmlnYXRpb24vYWNjb3JkaW9uLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgd2l0aFN0eWxlIGZyb20gXCJlYXN5LXdpdGgtc3R5bGVcIjsgIC8vL1xuXG5pbXBvcnQgeyBFbGVtZW50IH0gZnJvbSBcImVhc3lcIjtcblxuaW1wb3J0IEFjY29yZGlvbk5hdmlnYXRpb25JdGVtIGZyb20gXCIuLi8uLi9pdGVtL25hdmlnYXRpb24vYWNjb3JkaW9uXCI7XG5cbmltcG9ydCB7IGd1YXJhbnRlZUFycmF5IH0gZnJvbSBcIi4uLy4uL3V0aWxpdGllcy9hcnJheVwiO1xuXG5jbGFzcyBBY2NvcmRpb25OYXZpZ2F0aW9uTGlzdCBleHRlbmRzIEVsZW1lbnQge1xuICBnZXRCdXR0b25zKCkge1xuICAgIGNvbnN0IG1heGltdW1EZXB0aCA9IDIsXG4gICAgICAgICAgYnV0dG9uRGVzY2VuZGFudEVsZW1lbnRzID0gdGhpcy5nZXREZXNj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BQW9CLEdBQUc7b0JBRXZELHFCQUVFLG9CQUFDWDt3QkFBd0JlLFVBQVVBO3dCQUFVRCxPQUFPQTt3QkFBT0QsTUFBTUE7d0JBQU1ULGFBQWFBOztnQkFHeEYsSUFDQUwsZ0JBQWdCVSxPQUFRLEdBQUc7Z0JBRWpDLE9BQU9WO1lBQ1Q7OztZQUVBa0IsS0FBQUE7bUJBQUFBLFNBQUFBLGdCQUFnQjtnQkFDZCxJQUFNQyw0QkFBNEIsSUFBSSxDQUFDNUIsTUFBTSxDQUFDNkIsSUFBSSxDQUFDLElBQUksR0FBSSxHQUFHO2dCQUU5RCxPQUFRO29CQUNORCwyQkFBQUE7Z0JBQ0Y7WUFDRjs7O1dBcERJbEM7cUJBQWdDb0MsYUFBTztBQXNEM0MsaUJBdERJcEMseUJBc0RHZ0IsMkJBQTBCQSxrQkFBdUI7QUFFeEQsaUJBeERJaEIseUJBd0RHcUMsV0FBVTtBQUVqQixpQkExRElyQyx5QkEwREdzQyxxQkFBb0I7SUFDekJDLFdBQVc7QUFDYjtJQUdGLFdBQWVDLElBQUFBLHNCQUFTLEVBQUN4QyJ9
|
|
@@ -9,41 +9,30 @@ Object.defineProperty(exports, "default", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
var _easy = require("easy");
|
|
12
|
-
var _accordion = /*#__PURE__*/
|
|
13
|
-
function
|
|
12
|
+
var _accordion = /*#__PURE__*/ _interop_require_default(require("../list/navigation/accordion"));
|
|
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 AccordionNavigation = /*#__PURE__*/ function(Element) {
|
|
174
163
|
_inherits(AccordionNavigation, Element);
|
|
175
|
-
var _super =
|
|
164
|
+
var _super = _create_super(AccordionNavigation);
|
|
176
165
|
function AccordionNavigation() {
|
|
177
|
-
|
|
166
|
+
_class_call_check(this, AccordionNavigation);
|
|
178
167
|
return _super.apply(this, arguments);
|
|
179
168
|
}
|
|
180
|
-
|
|
169
|
+
_create_class(AccordionNavigation, [
|
|
181
170
|
{
|
|
182
171
|
key: "childElements",
|
|
183
172
|
value: function childElements() {
|
|
@@ -190,11 +179,11 @@ var AccordionNavigation = /*#__PURE__*/ function(Element) {
|
|
|
190
179
|
}
|
|
191
180
|
]);
|
|
192
181
|
return AccordionNavigation;
|
|
193
|
-
}(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
182
|
+
}(_wrap_native_super(_easy.Element));
|
|
183
|
+
_define_property(AccordionNavigation, "AccordionNavigationList", _accordion.default);
|
|
184
|
+
_define_property(AccordionNavigation, "tagName", "nav");
|
|
185
|
+
_define_property(AccordionNavigation, "defaultProperties", {
|
|
197
186
|
className: "accordion"
|
|
198
187
|
});
|
|
199
188
|
|
|
200
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9uYXZpZ2F0aW9uL2FjY29yZGlvbi5qcyIsIjw8anN4LWNvbmZpZy1wcmFnbWEuanM+
|
|
189
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-navigation",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.51",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/easy-navigation",
|
|
7
7
|
"description": "A responsive accordion and associated navigation.",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"easy": "^14.1.3",
|
|
14
|
-
"easy-with-style": "^3.0.
|
|
14
|
+
"easy-with-style": "^3.0.199"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@swc/core": "^1.2.50",
|